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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26941f15190450548abb826ab5e7dae30c53951d | 1,062 | py | Python | database/chemprop/endpoint_acceptable_parameters.py | mshobair/invitro_cheminformatics | 17201496c73453accd440646a1ee81726119a59c | [
"MIT"
] | null | null | null | database/chemprop/endpoint_acceptable_parameters.py | mshobair/invitro_cheminformatics | 17201496c73453accd440646a1ee81726119a59c | [
"MIT"
] | null | null | null | database/chemprop/endpoint_acceptable_parameters.py | mshobair/invitro_cheminformatics | 17201496c73453accd440646a1ee81726119a59c | [
"MIT"
] | null | null | null | import datetime
from database.chemprop.endpoints import Endpoints
from database.chemprop.parameters import Parameters
from database.database_schemas import Schemas
from sqlalchemy import Column, Integer, String, DateTime, ForeignKey
from sqlalchemy.orm import relationship
from database.base import Base
class Endpoi... | 37.928571 | 80 | 0.785311 | 122 | 1,062 | 6.639344 | 0.352459 | 0.080247 | 0.049383 | 0.081481 | 0.209877 | 0.209877 | 0.135802 | 0.135802 | 0.135802 | 0 | 0 | 0.006479 | 0.12806 | 1,062 | 27 | 81 | 39.333333 | 0.868251 | 0.063089 | 0 | 0 | 0 | 0 | 0.055612 | 0.030334 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
13fa947a98ef38378e4092dccc8d0f5bf6aced03 | 2,009 | py | Python | label_mapping.py | YoushaaMurhij/CenterPoint_Segmentation_Head | 0610c1da18994f494a8609d983ffa21d62d7d876 | [
"MIT"
] | null | null | null | label_mapping.py | YoushaaMurhij/CenterPoint_Segmentation_Head | 0610c1da18994f494a8609d983ffa21d62d7d876 | [
"MIT"
] | null | null | null | label_mapping.py | YoushaaMurhij/CenterPoint_Segmentation_Head | 0610c1da18994f494a8609d983ffa21d62d7d876 | [
"MIT"
] | null | null | null | label_name_mapping = {
0: "unlabeled",
1: "outlier",
10: "car",
11: "bicycle",
13: "bus",
15: "motorcycle",
16: "on-rails",
18: "truck",
20: "other-vehicle",
30: "person",
31: "bicyclist",
32: "motorcyclist",
40: "road",
44: "parking",
48: "sidewalk",
49: ... | 14.992537 | 31 | 0.442509 | 279 | 2,009 | 3.172043 | 0.336918 | 0.040678 | 0.024859 | 0.00904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29595 | 0.360876 | 2,009 | 134 | 32 | 14.992537 | 0.393302 | 0.011448 | 0 | 0.030769 | 0 | 0 | 0.244568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
13fca46c746999501de84f40b50ef047a4b2c610 | 295 | py | Python | archives/02/tootle/tests/test_state.py | asmodehn/caerbannog | 47bb1138190748041a4c0d02e522c0924a9af962 | [
"MIT"
] | 1 | 2019-01-22T20:57:45.000Z | 2019-01-22T20:57:45.000Z | archives/03/footle/tests/test_state.py | asmodehn/functional-python | 47bb1138190748041a4c0d02e522c0924a9af962 | [
"MIT"
] | 3 | 2019-03-14T17:33:39.000Z | 2019-03-14T18:09:42.000Z | archives/03/footle/tests/test_state.py | asmodehn/caerbannog | 47bb1138190748041a4c0d02e522c0924a9af962 | [
"MIT"
] | null | null | null | from state import TurtleState
# TODO : improve... but with useful things for illustrating the point...
def test_move(distance):
s = TurtleState()
s.move(distance)
def test_turn(angle):
s = TurtleState()
s.turn(angle)
def test_random_path():
s = TurtleState
# TODO
| 15.526316 | 72 | 0.671186 | 39 | 295 | 4.974359 | 0.589744 | 0.108247 | 0.134021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223729 | 295 | 18 | 73 | 16.388889 | 0.847162 | 0.254237 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cd08e29c15d2756e6bc4a870585c434ad2c07d7a | 2,935 | py | Python | plots.py | klowrey/speed_arch | edb002b6d57915fa5e2024b36eb66acf30a7130a | [
"MIT"
] | null | null | null | plots.py | klowrey/speed_arch | edb002b6d57915fa5e2024b36eb66acf30a7130a | [
"MIT"
] | null | null | null | plots.py | klowrey/speed_arch | edb002b6d57915fa5e2024b36eb66acf30a7130a | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
acc = np.array([7.95549917, 7.46641684, 8.16141701, 8.80025005, 7.29208231,
7.73391724, 8.16333294, 9.02033329, 7.60566664, 7.88175011,
7.77574968, 8.79116631, 8.24524975, 8.98549938, 7.3717494 ,
7.32324982, 8.14583302, 8.53608322, 9.301250... | 56.442308 | 79 | 0.65247 | 415 | 2,935 | 4.614458 | 0.544578 | 0.007311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.763809 | 0.173424 | 2,935 | 51 | 80 | 57.54902 | 0.025556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.042553 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cd094ee5dcfd76a9bf766f06eb8cdcb0b8027094 | 4,485 | py | Python | tests/test_geojson.py | geographika/mappyfile-geojson | 9525bb840ae243a0f5072730f6432bf98dcacbe9 | [
"MIT"
] | 8 | 2018-08-08T06:47:38.000Z | 2022-01-30T13:25:35.000Z | tests/test_geojson.py | geographika/mappyfile-geojson | 9525bb840ae243a0f5072730f6432bf98dcacbe9 | [
"MIT"
] | 4 | 2020-09-24T05:28:19.000Z | 2022-03-29T22:18:13.000Z | tests/test_geojson.py | geographika/mappyfile-geojson | 9525bb840ae243a0f5072730f6432bf98dcacbe9 | [
"MIT"
] | 1 | 2018-08-08T06:47:42.000Z | 2018-08-08T06:47:42.000Z | import os
import json
import geojson
import mappyfile_geojson
import mappyfile
import pytest
def get_geojson(fn):
tests = os.path.dirname(os.path.realpath(__file__))
fn = os.path.join(tests, fn)
with open(fn) as f:
gj = geojson.load(f)
return gj
def test_point():
gj ... | 19.933333 | 68 | 0.515942 | 595 | 4,485 | 3.818487 | 0.146218 | 0.019366 | 0.011884 | 0.088028 | 0.699824 | 0.679137 | 0.666373 | 0.652289 | 0.652289 | 0.605634 | 0 | 0.118935 | 0.388852 | 4,485 | 224 | 69 | 20.022321 | 0.70996 | 0.022965 | 0 | 0.753846 | 0 | 0 | 0.587913 | 0.010231 | 0 | 0 | 0 | 0 | 0.041026 | 1 | 0.051282 | false | 0 | 0.030769 | 0 | 0.087179 | 0.05641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cd0e89b4b693cd65319eaacf6298dcfed09dbd78 | 594 | py | Python | fsttest/__init__.py | eddieantonio/fsttest | 8ff71a9aa41a70a30832fa219b72e7478872c16f | [
"MIT"
] | null | null | null | fsttest/__init__.py | eddieantonio/fsttest | 8ff71a9aa41a70a30832fa219b72e7478872c16f | [
"MIT"
] | 1 | 2020-01-27T21:43:04.000Z | 2020-01-28T15:57:05.000Z | fsttest/__init__.py | eddieantonio/fsttest | 8ff71a9aa41a70a30832fa219b72e7478872c16f | [
"MIT"
] | 1 | 2021-04-26T17:46:19.000Z | 2021-04-26T17:46:19.000Z | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""
FST test -- test your Foma finite-state transducers!
"""
from .__version__ import VERSION as __version__
from ._fst import FST
from ._results import FailedTestResult, PassedTestResult, TestResults
from ._run import execute_test_case, run_tests
from ._test_case import... | 22.846154 | 69 | 0.725589 | 62 | 594 | 6.580645 | 0.5 | 0.058824 | 0.073529 | 0.088235 | 0.112745 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00404 | 0.166667 | 594 | 25 | 70 | 23.76 | 0.820202 | 0.161616 | 0 | 0 | 0 | 0 | 0.235174 | 0.047035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0.352941 | 0 | 0.352941 | 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 | 0 | 0 | 0 | 2 |
cd10ef939588bc49c75df0d3a2c4ba2f987aa04b | 1,164 | py | Python | benchmark_runner.py | mamrehn/simplification | cb43ccadcbe011b89845142910d844b0bf7ca510 | [
"MIT"
] | null | null | null | benchmark_runner.py | mamrehn/simplification | cb43ccadcbe011b89845142910d844b0bf7ca510 | [
"MIT"
] | null | null | null | benchmark_runner.py | mamrehn/simplification | cb43ccadcbe011b89845142910d844b0bf7ca510 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Standalone benchmark runner
"""
import cProfile
import pstats
import profile
import numpy as np
print("Running Rust + Cython benchmarks")
# calibrate
pr = profile.Profile()
calibration = np.mean([pr.calibrate(100000) for x in xrange(5)])
# add the bias
profile.Profil... | 35.272727 | 135 | 0.803265 | 160 | 1,164 | 5.58125 | 0.30625 | 0.167973 | 0.161254 | 0.194849 | 0.615901 | 0.615901 | 0.515118 | 0.483763 | 0 | 0 | 0 | 0.01012 | 0.066151 | 1,164 | 32 | 136 | 36.375 | 0.811408 | 0.079897 | 0 | 0 | 0 | 0 | 0.50283 | 0.416038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.277778 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cd3eb5a68afae376fb0cdba9c6455dc19c74e74f | 3,552 | py | Python | src/application/models.py | Chitrank-Dixit/WikiG | 74d99a16afc635a991c17de8d237eb4f6eccbe86 | [
"CNRI-Python"
] | 1 | 2015-11-05T03:51:44.000Z | 2015-11-05T03:51:44.000Z | src/application/models.py | Chitrank-Dixit/WikiG | 74d99a16afc635a991c17de8d237eb4f6eccbe86 | [
"CNRI-Python"
] | null | null | null | src/application/models.py | Chitrank-Dixit/WikiG | 74d99a16afc635a991c17de8d237eb4f6eccbe86 | [
"CNRI-Python"
] | null | null | null | """
models.py
App Engine datastore models
Documentation: https://developers.google.com/appengine/docs/python/ndb/entities
"""
from google.appengine.ext import ndb
from google.appengine.ext import blobstore
from google.appengine.api import users
import functools
import flask
from flaskext import login
from flaskex... | 23.368421 | 155 | 0.677928 | 498 | 3,552 | 4.646586 | 0.232932 | 0.051858 | 0.025929 | 0.031115 | 0.373379 | 0.288678 | 0.195333 | 0.195333 | 0.135696 | 0.135696 | 0 | 0.001702 | 0.17286 | 3,552 | 151 | 156 | 23.523179 | 0.785909 | 0.0808 | 0 | 0.236559 | 0 | 0 | 0.032988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236559 | false | 0 | 0.150538 | 0.16129 | 0.709677 | 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 | 0 | 0 | 0 | 2 |
cd517441104b9bb84c95422e46c5a618c55415fc | 79 | py | Python | project/enums/string_types_enum.py | vinibiavatti1/PythonFlaskCms | e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023 | [
"MIT"
] | null | null | null | project/enums/string_types_enum.py | vinibiavatti1/PythonFlaskCms | e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023 | [
"MIT"
] | null | null | null | project/enums/string_types_enum.py | vinibiavatti1/PythonFlaskCms | e43a4db84d1f77a5f66b1f8fcb9dc96e05e6c023 | [
"MIT"
] | null | null | null | """
String format type value enumeration.
"""
TRUE = '1'
FALSE = '0'
NONE = ''
| 11.285714 | 37 | 0.594937 | 10 | 79 | 4.7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0.202532 | 79 | 6 | 38 | 13.166667 | 0.714286 | 0.468354 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cd68c50658ac006c458874597809bf7939658dff | 83 | py | Python | examples/object/reference/change_list.py | zqmillet/kinopico_python_book | 0db4b0a904a1ba1b7e90cf971871e134941aeb65 | [
"MIT"
] | null | null | null | examples/object/reference/change_list.py | zqmillet/kinopico_python_book | 0db4b0a904a1ba1b7e90cf971871e134941aeb65 | [
"MIT"
] | null | null | null | examples/object/reference/change_list.py | zqmillet/kinopico_python_book | 0db4b0a904a1ba1b7e90cf971871e134941aeb65 | [
"MIT"
] | null | null | null | a = [1, 2, 3]
b = a
a[0] = 'gouliguojiashengsiyi'
print('a =', a)
print('b =', b)
| 11.857143 | 29 | 0.506024 | 15 | 83 | 2.8 | 0.533333 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.216867 | 83 | 6 | 30 | 13.833333 | 0.584615 | 0 | 0 | 0 | 0 | 0 | 0.313253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 2 |
cd6b149fb6473adbe7fd7149968a3e8e9f36d8bd | 901 | py | Python | src/conversion_spec_file_reader.py | Eldar1205/exchanger-python-demo-app | 6733ff6044555f8c4639dc6e25baf4ef51401fd9 | [
"MIT"
] | 7 | 2021-08-31T09:03:39.000Z | 2021-09-27T13:45:58.000Z | src/conversion_spec_file_reader.py | Eldar1205/exchanger-python-demo-app | 6733ff6044555f8c4639dc6e25baf4ef51401fd9 | [
"MIT"
] | null | null | null | src/conversion_spec_file_reader.py | Eldar1205/exchanger-python-demo-app | 6733ff6044555f8c4639dc6e25baf4ef51401fd9 | [
"MIT"
] | null | null | null | import aiofiles
import asyncstdlib
from pydantic.types import PositiveFloat
from conversion_parameters import ConversionParameters
from conversion_spec import ConversionSpec, Currency
from conversion_spec_provider import ConversionSpecProvider
class ConversionSpecFileReader(ConversionSpecProvider):
async def pro... | 37.541667 | 109 | 0.783574 | 87 | 901 | 7.827586 | 0.367816 | 0.10279 | 0.129222 | 0.082232 | 0.10279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175361 | 901 | 23 | 110 | 39.173913 | 0.916555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
cd887102450875f1d2f5fd98ea87c44fd4dd0888 | 303 | py | Python | Python/8/SquareSum/square_sum.py | hwakabh/codewars | 7afce5a7424d35abc55c350301ac134f2d3edd3d | [
"MIT"
] | null | null | null | Python/8/SquareSum/square_sum.py | hwakabh/codewars | 7afce5a7424d35abc55c350301ac134f2d3edd3d | [
"MIT"
] | 6 | 2020-02-21T17:01:59.000Z | 2021-05-04T07:04:41.000Z | Python/8/SquareSum/square_sum.py | hwakabh/codewars | 7afce5a7424d35abc55c350301ac134f2d3edd3d | [
"MIT"
] | null | null | null | import sys
def square_sum(numbers):
return sum([n ** 2 for n in numbers])
if __name__ == "__main__":
if len(sys.argv) == 1:
nums = [int(e) for e in input('>>> Enter the numbers with comma-separeted: ').split(',')]
print(square_sum(numbers=nums))
else:
sys.exit(1) | 23.307692 | 97 | 0.590759 | 45 | 303 | 3.755556 | 0.666667 | 0.106509 | 0.189349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.247525 | 303 | 13 | 98 | 23.307692 | 0.72807 | 0 | 0 | 0 | 0 | 0 | 0.174342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
cd88a71325bc436cee432caaafbbae9750fb46b0 | 5,710 | py | Python | spatial_ops/lazy_loader.py | LucaMarconato/spatial_ops | 86e5b8557db9efa2ca263098ed47c16de05fab00 | [
"MIT"
] | null | null | null | spatial_ops/lazy_loader.py | LucaMarconato/spatial_ops | 86e5b8557db9efa2ca263098ed47c16de05fab00 | [
"MIT"
] | null | null | null | spatial_ops/lazy_loader.py | LucaMarconato/spatial_ops | 86e5b8557db9efa2ca263098ed47c16de05fab00 | [
"MIT"
] | null | null | null | import os
import pickle
from abc import ABC, abstractmethod
import h5py
import numpy as np
from .folders import get_pickle_lazy_loader_data_path, hdf5_lazy_loader_data_path
from .unpickler import CustomUnpickler
class LazyLoaderAssociatedInstance:
# when implementing this method in a derived class add an unique... | 33.588235 | 117 | 0.680911 | 716 | 5,710 | 5.157821 | 0.243017 | 0.026537 | 0.053615 | 0.029245 | 0.388573 | 0.277552 | 0.232061 | 0.170593 | 0.122394 | 0.098565 | 0 | 0.007151 | 0.240806 | 5,710 | 169 | 118 | 33.786982 | 0.844752 | 0.164098 | 0 | 0.4375 | 0 | 0 | 0.037621 | 0.019756 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223214 | false | 0.053571 | 0.080357 | 0.035714 | 0.473214 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
cd8f015fd57b190763452236dbe2f747d3309b7f | 837 | py | Python | tests/test_set.py | maxslarsson/tennis-probability | f26021b305e2b8abd87acad846454f7ce02e9199 | [
"MIT"
] | null | null | null | tests/test_set.py | maxslarsson/tennis-probability | f26021b305e2b8abd87acad846454f7ce02e9199 | [
"MIT"
] | null | null | null | tests/test_set.py | maxslarsson/tennis-probability | f26021b305e2b8abd87acad846454f7ce02e9199 | [
"MIT"
] | null | null | null | import pytest
from tennis_probability import set, InvalidInput, InvalidProbability, NegativeNumber
def test_set():
assert set(0, 0, 0) == 0
assert set(0, 0, 0.50) == 0.5
assert set(0, 0, 1) == 1
# Test valid inputs
assert set(5, 3, 0.13) == 0.008146509339015371
assert set(2, 2, 0.37) == 0.024... | 27.9 | 84 | 0.628435 | 120 | 837 | 4.366667 | 0.308333 | 0.026718 | 0.183206 | 0.062977 | 0.364504 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185827 | 0.241338 | 837 | 29 | 85 | 28.862069 | 0.63937 | 0.076464 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.047619 | true | 0 | 0.095238 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 2 |
26aacebd7375e02a1085b024169371e35da36aab | 59 | py | Python | project1/tests/q0.py | ucsb-int5/int5-f19-notebooks | 5b3d1ee6964d9357f211f4706787403ec5a3079c | [
"MIT"
] | 1 | 2019-10-02T21:43:12.000Z | 2019-10-02T21:43:12.000Z | project1/tests/q0.py | ucsb-int5/int5-f19-notebooks | 5b3d1ee6964d9357f211f4706787403ec5a3079c | [
"MIT"
] | 3 | 2019-12-14T06:20:14.000Z | 2019-12-14T07:12:33.000Z | project1/tests/q0.py | ucsb-int5/int5-f19-notebooks | 5b3d1ee6964d9357f211f4706787403ec5a3079c | [
"MIT"
] | 3 | 2019-10-02T18:36:06.000Z | 2019-12-03T18:16:45.000Z | test = { 'name': 'q0',
'points': 0,
'suites': []} | 19.666667 | 24 | 0.389831 | 6 | 59 | 3.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.305085 | 59 | 3 | 25 | 19.666667 | 0.512195 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
26b4086be5d9ece68d83031748858af8aef6a984 | 663 | py | Python | indjections/packages/django-allauth.py | pandichef/indjections | e8f0e62cf648607ed50330ac69dd12e9fc0cf710 | [
"BSD-2-Clause"
] | 7 | 2020-07-20T00:33:15.000Z | 2020-07-24T04:14:53.000Z | indjections/packages/django-allauth.py | pandichef/indjections | e8f0e62cf648607ed50330ac69dd12e9fc0cf710 | [
"BSD-2-Clause"
] | 17 | 2020-07-20T03:17:06.000Z | 2020-07-27T07:36:25.000Z | indjections/packages/django-allauth.py | pandichef/indjections | e8f0e62cf648607ed50330ac69dd12e9fc0cf710 | [
"BSD-2-Clause"
] | null | null | null | settings = """
try:
AUTHENTICATION_BACKENDS += [
"django.contrib.auth.backends.ModelBackend",
"allauth.account.auth_backends.AuthenticationBackend",
]
except NameError:
AUTHENTICATION_BACKENDS = [
"django.contrib.auth.backends.ModelBackend",
"allauth.account.auth_backends.Aut... | 24.555556 | 62 | 0.680241 | 61 | 663 | 7.295082 | 0.52459 | 0.107865 | 0.125843 | 0.157303 | 0.476404 | 0.476404 | 0.476404 | 0.476404 | 0.476404 | 0.476404 | 0 | 0.001838 | 0.179487 | 663 | 26 | 63 | 25.5 | 0.816176 | 0 | 0 | 0.25 | 0 | 0 | 0.950226 | 0.535445 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
26b7cad7376280941d68826426ca4c361383c494 | 351 | py | Python | templates/checkcel/BrasExplor_Pictures_template.py | mboudet/braskoload | 8f39f2d68638a683e0d8e5065b33a218afe370cb | [
"MIT"
] | null | null | null | templates/checkcel/BrasExplor_Pictures_template.py | mboudet/braskoload | 8f39f2d68638a683e0d8e5065b33a218afe370cb | [
"MIT"
] | null | null | null | templates/checkcel/BrasExplor_Pictures_template.py | mboudet/braskoload | 8f39f2d68638a683e0d8e5065b33a218afe370cb | [
"MIT"
] | null | null | null | from checkcel import Checkplate
from checkcel.validators import SetValidator, NoValidator
from collections import OrderedDict
class MyTemplate(Checkplate):
validators = OrderedDict([
("name@Population", NoValidator()),
("Picture", NoValidator()),
("Type", SetValidator(valid_values=["whole ... | 29.25 | 74 | 0.706553 | 31 | 351 | 7.967742 | 0.612903 | 0.097166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173789 | 351 | 11 | 75 | 31.909091 | 0.851724 | 0 | 0 | 0 | 0 | 0 | 0.133903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
26be0d11d5b6b76d30765326da6c34a562d5f111 | 621 | py | Python | stock_experiment_sbb_with_vectors_of_ones.py | dvirg/auctions | da706f3d11b9582c7f811de9f50b96b43ac8cbd0 | [
"MIT"
] | 1 | 2021-11-20T19:27:45.000Z | 2021-11-20T19:27:45.000Z | stock_experiment_sbb_with_vectors_of_ones.py | dvirg/auctions | da706f3d11b9582c7f811de9f50b96b43ac8cbd0 | [
"MIT"
] | null | null | null | stock_experiment_sbb_with_vectors_of_ones.py | dvirg/auctions | da706f3d11b9582c7f811de9f50b96b43ac8cbd0 | [
"MIT"
] | null | null | null | #!python3
"""
Simulation experiment for our AAAI 2020 paper, with recipes that are vectors of ones.
Comparing McAfee's double auction to our SBB auctions.
Author: Dvir Gilor
Since: 2020-08
"""
from experiment_stock import experiment
from mcafee_protocol import mcafee_trade_reduction
from trade_reduction_protocol ... | 27 | 97 | 0.84219 | 87 | 621 | 5.724138 | 0.517241 | 0.084337 | 0.052209 | 0.11245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023381 | 0.10467 | 621 | 22 | 98 | 28.227273 | 0.872302 | 0.297907 | 0 | 0 | 0 | 0 | 0.185446 | 0.138498 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
26c5a8a0093950f0c391d5d30211cf53ae6f042f | 5,022 | py | Python | padevents/events.py | muffin-rice/pad-cogs | 820ecf08f9569a3d7cf3264d0eb9567264b42edf | [
"MIT"
] | 2 | 2020-09-25T01:57:21.000Z | 2020-10-02T13:46:48.000Z | padevents/events.py | muffin-rice/pad-cogs | 820ecf08f9569a3d7cf3264d0eb9567264b42edf | [
"MIT"
] | 43 | 2020-08-29T06:16:39.000Z | 2020-10-29T12:00:15.000Z | padevents/events.py | muffin-rice/pad-cogs | 820ecf08f9569a3d7cf3264d0eb9567264b42edf | [
"MIT"
] | 6 | 2020-08-31T04:37:55.000Z | 2020-10-19T05:09:17.000Z | import datetime
from datetime import timedelta
from typing import Callable, Collection, TYPE_CHECKING
import pytz
from tsutils.formatting import normalize_server_name
from tsutils.time import JP_TIMEZONE, KR_TIMEZONE, NA_TIMEZONE
from padevents.enums import DungeonType, EventLength
if TYPE_CHECKING:
from dbcog.m... | 36.656934 | 107 | 0.666866 | 683 | 5,022 | 4.664714 | 0.204978 | 0.040804 | 0.035154 | 0.045198 | 0.30634 | 0.250471 | 0.234777 | 0.186127 | 0.124922 | 0.099184 | 0 | 0.007941 | 0.22262 | 5,022 | 136 | 108 | 36.926471 | 0.808145 | 0.029669 | 0 | 0.06 | 0 | 0 | 0.05327 | 0.02427 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.08 | 0.13 | 0.62 | 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 | 0 | 0 | 0 | 2 |
26def15c65ab2e4480b9091dca33bf04179a4722 | 3,705 | py | Python | test_package/conanfile.py | sintef-ocean/conan-casadi | 70a14829ca3b3ec4cdff8b254e3c060b345c1e79 | [
"MIT"
] | null | null | null | test_package/conanfile.py | sintef-ocean/conan-casadi | 70a14829ca3b3ec4cdff8b254e3c060b345c1e79 | [
"MIT"
] | null | null | null | test_package/conanfile.py | sintef-ocean/conan-casadi | 70a14829ca3b3ec4cdff8b254e3c060b345c1e79 | [
"MIT"
] | null | null | null | from conans import ConanFile, CMake, tools, RunEnvironment
class CasadiTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = ("cmake_paths", "cmake", "virtualrunenv", "virtualenv")
_cmake = None
def _configure_cmake(self):
if self._cmake is None:
se... | 42.102273 | 88 | 0.612146 | 393 | 3,705 | 5.615776 | 0.300254 | 0.104667 | 0.161758 | 0.220208 | 0.027186 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00074 | 0.270985 | 3,705 | 87 | 89 | 42.586207 | 0.816364 | 0.05857 | 0 | 0.1 | 0 | 0 | 0.236986 | 0.018119 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.2 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
26e08af32bb2b5d0bbed9fd354924f064bde0ecf | 254 | py | Python | ma.py | AmandaKhol/DLT-Blockchain | ee464b0d7b55bffe791eb0b814513620430bfa1c | [
"MIT"
] | 1 | 2021-04-05T18:59:04.000Z | 2021-04-05T18:59:04.000Z | ma.py | AmandaKhol/DLT-Blockchain | ee464b0d7b55bffe791eb0b814513620430bfa1c | [
"MIT"
] | null | null | null | ma.py | AmandaKhol/DLT-Blockchain | ee464b0d7b55bffe791eb0b814513620430bfa1c | [
"MIT"
] | null | null | null | """
title : ma.py
description : Marshmallow object
author : Amanda Garcia-Garcia
version : 0
usage : python server_api.py
python_version : 3.6.1
"""
from flask_marshmallow import Marshmallow
ma = Marshmallow() | 19.538462 | 41 | 0.629921 | 29 | 254 | 5.413793 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.291339 | 254 | 13 | 42 | 19.538462 | 0.85 | 0.716535 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
26ec29318bc12813be99da269d94707649d0104c | 3,244 | py | Python | prisma/generated/models.py | mao-shonen/prisma-client-py-tortoise-orm | e26d8451ea0775bd7ddfec42f663510434537a77 | [
"MIT"
] | null | null | null | prisma/generated/models.py | mao-shonen/prisma-client-py-tortoise-orm | e26d8451ea0775bd7ddfec42f663510434537a77 | [
"MIT"
] | null | null | null | prisma/generated/models.py | mao-shonen/prisma-client-py-tortoise-orm | e26d8451ea0775bd7ddfec42f663510434537a77 | [
"MIT"
] | null | null | null | __doc__ = '''
This file is generated by the `prisma-client-py-tortoise-orm (0.2.2)`,
Please do not modify directly.
repository: https://github.com/mao-shonen/prisma-client-py-tortoise-orm
'''
import typing
from enum import Enum
from tortoise import fields
from tortoise.models import Model
from prisma import base as b... | 30.317757 | 203 | 0.633785 | 406 | 3,244 | 5.004926 | 0.302956 | 0.023622 | 0.035433 | 0.047244 | 0.313484 | 0.214075 | 0.15502 | 0.122539 | 0.075787 | 0 | 0 | 0.008661 | 0.217016 | 3,244 | 107 | 204 | 30.317757 | 0.781496 | 0.203761 | 0 | 0.14 | 1 | 0.04 | 0.160752 | 0.012526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0.02 | 0.1 | 0.06 | 0.82 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f80c608952146d7fe3d7ed75d5f4bc0dc27ba8ce | 774 | py | Python | pyretri/index/dim_processor/dim_processors_impl/l2_normalize.py | dongan-beta/PyRetri | 8756d5d5813a5211b58855373b6c6cd33d7a11f6 | [
"Apache-2.0"
] | 1,063 | 2020-04-21T12:42:05.000Z | 2022-03-31T06:32:50.000Z | pyretri/index/dim_processor/dim_processors_impl/l2_normalize.py | dongan-beta/PyRetri | 8756d5d5813a5211b58855373b6c6cd33d7a11f6 | [
"Apache-2.0"
] | 39 | 2020-05-07T07:24:19.000Z | 2022-02-02T23:49:23.000Z | pyretri/index/dim_processor/dim_processors_impl/l2_normalize.py | dongan-beta/PyRetri | 8756d5d5813a5211b58855373b6c6cd33d7a11f6 | [
"Apache-2.0"
] | 174 | 2020-04-26T04:33:11.000Z | 2022-03-17T02:58:45.000Z | # -*- coding: utf-8 -*-
import numpy as np
from ..dim_processors_base import DimProcessorBase
from ...registry import DIMPROCESSORS
from sklearn.preprocessing import normalize
from typing import Dict, List
@DIMPROCESSORS.register
class L2Normalize(DimProcessorBase):
"""
L2 normalize the features.
"""
... | 27.642857 | 75 | 0.666667 | 94 | 774 | 5.287234 | 0.574468 | 0.072435 | 0.064386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008375 | 0.228682 | 774 | 27 | 76 | 28.666667 | 0.824121 | 0.241602 | 0 | 0 | 0 | 0 | 0.003759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.416667 | 0.083333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f80e19316ce840fcc2138b746a64f522d8f4566b | 866 | py | Python | app/wqFull/G200/testAll.py | fkwai/geolearn | 30cb4353d22af5020a48100d07ab04f465a315b0 | [
"MIT"
] | null | null | null | app/wqFull/G200/testAll.py | fkwai/geolearn | 30cb4353d22af5020a48100d07ab04f465a315b0 | [
"MIT"
] | null | null | null | app/wqFull/G200/testAll.py | fkwai/geolearn | 30cb4353d22af5020a48100d07ab04f465a315b0 | [
"MIT"
] | 2 | 2021-04-04T02:45:59.000Z | 2022-03-19T09:41:39.000Z |
import pandas as pd
from hydroDL.data import usgs, gageII, gridMET, ntn, GLASS, transform, dbBasin
import numpy as np
import matplotlib.pyplot as plt
from hydroDL.post import axplot, figplot
from hydroDL import kPath, utils
import json
import os
import importlib
from hydroDL.master import basinFull
from hydroDL.app.wa... | 29.862069 | 78 | 0.706697 | 109 | 866 | 5.614679 | 0.633028 | 0.089869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045267 | 0.158199 | 866 | 28 | 79 | 30.928571 | 0.794239 | 0.094688 | 0 | 0 | 0 | 0 | 0.085897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.52381 | 0 | 0.52381 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f810c90f204568fd67dca941d0e6266424f5517d | 261 | py | Python | test/unit/bot/test_bot.py | kubicki14/BurtTheCardKing | d0854ea08ffdffee687830097b0645069e263d9d | [
"MIT"
] | null | null | null | test/unit/bot/test_bot.py | kubicki14/BurtTheCardKing | d0854ea08ffdffee687830097b0645069e263d9d | [
"MIT"
] | 1 | 2020-03-04T04:39:20.000Z | 2020-03-04T04:39:20.000Z | test/unit/bot/test_bot.py | kubicki14/BurtTheCardKing | d0854ea08ffdffee687830097b0645069e263d9d | [
"MIT"
] | null | null | null | import pytest
from bot.bot import Bot
class TestBotClass:
# Can't instantiate abstract classes. skipping test for abstract class.
def setup(self):
self.bot = 1
def test_init(self):
test_bot = 1
assert test_bot == self.bot
| 20.076923 | 75 | 0.659004 | 37 | 261 | 4.567568 | 0.540541 | 0.08284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.272031 | 261 | 12 | 76 | 21.75 | 0.878947 | 0.264368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f8125fde876b086f96371a2951d0cf190eba3f48 | 1,437 | py | Python | Hackerrank/30DaysOfCode/Day9-Recursion3.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | Hackerrank/30DaysOfCode/Day9-Recursion3.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | Hackerrank/30DaysOfCode/Day9-Recursion3.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | """
Hackerrank
Day 9: Recursion 3
https://www.hackerrank.com/challenges/30-recursion/problem?h_r=email&unlock_token=bc6d5f3963afb26ed0b2f69c3f4f3ddb1826e1b2&utm_campaign=30_days_of_code_continuous&utm_medium=email&utm_source=daily_reminder
Objective
Today, we are learning about an algorithmic concept called recursion.... | 22.809524 | 205 | 0.76618 | 213 | 1,437 | 5.079812 | 0.56338 | 0.047135 | 0.036969 | 0.051756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030151 | 0.169102 | 1,437 | 63 | 206 | 22.809524 | 0.876047 | 0.770355 | 0 | 0 | 0 | 0 | 0.06875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f8126dd049c2dae8dffb8bb81f37f683297e9ca7 | 408 | py | Python | todolist/main/models.py | gda2048/TODOlist | cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f | [
"MIT"
] | 1 | 2019-12-19T19:04:02.000Z | 2019-12-19T19:04:02.000Z | todolist/main/models.py | gda2048/TODOlist | cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f | [
"MIT"
] | 5 | 2020-02-12T02:57:13.000Z | 2021-12-13T20:02:16.000Z | todolist/main/models.py | gda2048/TODOlist | cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f | [
"MIT"
] | null | null | null | from django.db import models
class Card(models.Model):
"""
Stores all information about the TODOlist item
"""
id = models.AutoField(primary_key=True)
name = models.CharField('Название', max_length=50)
description = models.TextField('Описание', max_length=500)
is_archived = models.BooleanFi... | 29.142857 | 68 | 0.70098 | 50 | 408 | 5.56 | 0.8 | 0.064748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01506 | 0.186275 | 408 | 14 | 69 | 29.142857 | 0.822289 | 0.112745 | 0 | 0 | 0 | 0 | 0.080692 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
f816d939ecc6c4f196c356dcf81afa3b4caf0b94 | 2,175 | py | Python | aioauth/responses.py | grmnz/aioauth | e69c989bc81284d60798599816c39ff91074a24b | [
"MIT"
] | null | null | null | aioauth/responses.py | grmnz/aioauth | e69c989bc81284d60798599816c39ff91074a24b | [
"MIT"
] | null | null | null | aioauth/responses.py | grmnz/aioauth | e69c989bc81284d60798599816c39ff91074a24b | [
"MIT"
] | null | null | null | """
.. code-block:: python
from aioauth import responses
Response objects used throughout the project.
----
"""
from dataclasses import dataclass, field
from http import HTTPStatus
from typing import Dict
from .collections import HTTPHeaderDict
from .constances import default_headers
from .types import ErrorTyp... | 20.518868 | 111 | 0.722299 | 241 | 2,175 | 6.394191 | 0.381743 | 0.07268 | 0.031149 | 0.033744 | 0.240104 | 0.173913 | 0.173913 | 0.153147 | 0.105127 | 0.105127 | 0 | 0.00225 | 0.182529 | 2,175 | 105 | 112 | 20.714286 | 0.864454 | 0.44 | 0 | 0.302326 | 0 | 0 | 0.00542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.139535 | 0 | 0.813953 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f82ef0c0ee2c3fc021e7566fc3d68636a538299f | 596 | py | Python | scripts/load_sample_data.py | thobbs/logsandra | a17abc995dcb0573f3db2f714c1b47d3aff8b20a | [
"MIT"
] | 7 | 2015-05-18T13:00:54.000Z | 2018-08-06T08:27:57.000Z | scripts/load_sample_data.py | thobbs/logsandra | a17abc995dcb0573f3db2f714c1b47d3aff8b20a | [
"MIT"
] | null | null | null | scripts/load_sample_data.py | thobbs/logsandra | a17abc995dcb0573f3db2f714c1b47d3aff8b20a | [
"MIT"
] | 4 | 2015-06-16T11:09:53.000Z | 2020-04-27T19:25:57.000Z | #!/usr/bin/env python
import sys
import os
sys.path.append(os.path.join(os.path.dirname('__file__'), '..', 'src'))
from random import randint
from datetime import datetime, timedelta
from logsandra.model.client import CassandraClient
client = CassandraClient('test', 'localhost', 9160, 3)
keywords = ['foo', 'bar', ... | 28.380952 | 76 | 0.697987 | 84 | 596 | 4.892857 | 0.630952 | 0.029197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044487 | 0.13255 | 596 | 20 | 77 | 29.8 | 0.750484 | 0.033557 | 0 | 0 | 0 | 0 | 0.170435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.384615 | null | null | 0.076923 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f837f76576c4f735618a20e51681085aeb556de5 | 251 | py | Python | led/hhh/rta2.py | tushar-tdm/osvi | 813499162b7f487ccafa8c08d3e5bf6d05b074de | [
"CC-BY-3.0"
] | 3 | 2020-02-21T01:16:26.000Z | 2020-07-12T08:06:11.000Z | led/hhh/rta2.py | tushar-tdm/osvi | 813499162b7f487ccafa8c08d3e5bf6d05b074de | [
"CC-BY-3.0"
] | 6 | 2020-02-11T23:27:43.000Z | 2022-03-11T23:34:39.000Z | led/hhh/rta2.py | tushar-tdm/osvi | 813499162b7f487ccafa8c08d3e5bf6d05b074de | [
"CC-BY-3.0"
] | null | null | null | import os
import sys
import serial
import time
import struct
ser = serial.Serial('/dev/ttyACM0',9600)
led = sys.argv[1]
act = sys.argv[2]
l = str(led)
"""a = str(act)"""
time.sleep(5)
ser.write(struct.pack(l.encode())
""" ser.write(l.encode()) """
| 14.764706 | 40 | 0.661355 | 43 | 251 | 3.860465 | 0.534884 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.131474 | 251 | 16 | 41 | 15.6875 | 0.724771 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.454545 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f8430cf263194ac34b0078e29e9eec8808714370 | 255 | py | Python | ex10.6.py | Dikaeinstein/Think_Python | 370cb5af25230ff20994206e2d8023fd1d4c2c74 | [
"MIT"
] | null | null | null | ex10.6.py | Dikaeinstein/Think_Python | 370cb5af25230ff20994206e2d8023fd1d4c2c74 | [
"MIT"
] | null | null | null | ex10.6.py | Dikaeinstein/Think_Python | 370cb5af25230ff20994206e2d8023fd1d4c2c74 | [
"MIT"
] | null | null | null | def is_anagram ( word1, word2 ):
'''
Returns True if word1 is 'anagram' of word2 or False if otherwise.
word1: str
word2: str
'''
return sorted(word1) == sorted(word2)
print(is_anagram("silence", "listen"))
| 19.615385 | 70 | 0.576471 | 31 | 255 | 4.677419 | 0.580645 | 0.186207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045198 | 0.305882 | 255 | 13 | 71 | 19.615385 | 0.774011 | 0.34902 | 0 | 0 | 0 | 0 | 0.093525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f86d356d798352c0185a9ec2592dc21b131a7ed8 | 337 | py | Python | logconfig.py | Erick-Faster/gerbot-api | 36d723c7e9df525b99fd4eff2da318e9046e7734 | [
"Apache-2.0"
] | null | null | null | logconfig.py | Erick-Faster/gerbot-api | 36d723c7e9df525b99fd4eff2da318e9046e7734 | [
"Apache-2.0"
] | null | null | null | logconfig.py | Erick-Faster/gerbot-api | 36d723c7e9df525b99fd4eff2da318e9046e7734 | [
"Apache-2.0"
] | null | null | null |
import logging
import logging.config
logging.config.fileConfig('./instance/logging.conf')
# create logger
logger = logging.getLogger('Cognitive-API')
# 'application' code
'''
logger.debug('debug message')
logger.info('info message')
logger.warning('warn message')
logger.error('error message')
logger.critical('criti... | 19.823529 | 52 | 0.756677 | 40 | 337 | 6.375 | 0.5 | 0.203922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086053 | 337 | 17 | 53 | 19.823529 | 0.827922 | 0.094955 | 0 | 0 | 0 | 0 | 0.257143 | 0.164286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 2 |
f870be2bd112b621b44e0d7642b1d268ee31edf5 | 728 | py | Python | subscriptions/subscription.py | iamsharmaapoorv/availability-checker | 02fc28f495140f74fa38c02a3e4a5111e196151f | [
"MIT"
] | null | null | null | subscriptions/subscription.py | iamsharmaapoorv/availability-checker | 02fc28f495140f74fa38c02a3e4a5111e196151f | [
"MIT"
] | null | null | null | subscriptions/subscription.py | iamsharmaapoorv/availability-checker | 02fc28f495140f74fa38c02a3e4a5111e196151f | [
"MIT"
] | null | null | null | from products.product import Product
from notifications.notification import Notification
from clients.client import Client
class Subscription:
def __init__(self, product: Product, timing: int):
self.notifications = []
self.product = product
self.timing = timing
def add_notification(se... | 33.090909 | 67 | 0.696429 | 75 | 728 | 6.653333 | 0.36 | 0.11022 | 0.072144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228022 | 728 | 21 | 68 | 34.666667 | 0.8879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f87515fbbdca8d3d26053fb65bc3d5ece4d188b8 | 290 | py | Python | cursoDePythonNaPratica/aula18 - telegram.py | wemerson-henrique/kivy | 3cb6061a2d19b01e86c3738206f30c8a853763d4 | [
"MIT"
] | null | null | null | cursoDePythonNaPratica/aula18 - telegram.py | wemerson-henrique/kivy | 3cb6061a2d19b01e86c3738206f30c8a853763d4 | [
"MIT"
] | null | null | null | cursoDePythonNaPratica/aula18 - telegram.py | wemerson-henrique/kivy | 3cb6061a2d19b01e86c3738206f30c8a853763d4 | [
"MIT"
] | null | null | null | import telepot
# Não criei um bot no telegram ainda, dessa forma este codigo não funciona
# TODO: Criar bot no telegram e pegar chave
bot = telepot.Bot("Aqui vai minha chave do Telegram")
def recebendoMsg(msg):
print(msg['text'])
bot.message_loop(recebendoMsg)
while True:
pass | 20.714286 | 74 | 0.741379 | 45 | 290 | 4.755556 | 0.733333 | 0.046729 | 0.121495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17931 | 290 | 14 | 75 | 20.714286 | 0.89916 | 0.393103 | 0 | 0 | 0 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f88205db59ac35f6745b81386eb53c57775a1972 | 3,164 | py | Python | gcode_gen/gcode.py | tulth/gcode_gen | d6e276f2074d4fe66755b2ae06c5b4d85583c563 | [
"BSD-3-Clause"
] | null | null | null | gcode_gen/gcode.py | tulth/gcode_gen | d6e276f2074d4fe66755b2ae06c5b4d85583c563 | [
"BSD-3-Clause"
] | null | null | null | gcode_gen/gcode.py | tulth/gcode_gen | d6e276f2074d4fe66755b2ae06c5b4d85583c563 | [
"BSD-3-Clause"
] | null | null | null | '''
Library for gcode commands objects that render to strings.
'''
from .number import num2str
from .point import XYZ
class GcodePoint(XYZ):
def __str__(self):
ret_list = []
for label, val in zip(('X', 'Y', 'Z'), self.xyz):
if val is not None:
ret_list.append('{}{}'.for... | 24.913386 | 71 | 0.60335 | 400 | 3,164 | 4.3925 | 0.27 | 0.072851 | 0.09391 | 0.034149 | 0.310188 | 0.187251 | 0.172453 | 0.172453 | 0.164485 | 0.164485 | 0 | 0.009125 | 0.23799 | 3,164 | 126 | 72 | 25.111111 | 0.719618 | 0.155499 | 0 | 0.214286 | 0 | 0 | 0.02662 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0.271429 | false | 0 | 0.028571 | 0.028571 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f8837ac94ce790820bfbaf796665ce3cc290523c | 101 | py | Python | ex1.py | luismachado/python_project_euler | 79798ee00c18f4f8cc1b397aa7c92f8175a3ed33 | [
"MIT"
] | null | null | null | ex1.py | luismachado/python_project_euler | 79798ee00c18f4f8cc1b397aa7c92f8175a3ed33 | [
"MIT"
] | null | null | null | ex1.py | luismachado/python_project_euler | 79798ee00c18f4f8cc1b397aa7c92f8175a3ed33 | [
"MIT"
] | null | null | null | sum = 0
for x in range(1,1000):
if x%3 == 0 or x%5 == 0:
sum += x
print ("Total is:", sum) | 14.428571 | 26 | 0.485149 | 22 | 101 | 2.227273 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 0.316832 | 101 | 7 | 27 | 14.428571 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
f8885de2c1bf956e3ffc0a2b8c32753cd240d5eb | 2,679 | py | Python | can_decoder/Frame.py | justinwald99/can_decoder | abfdd839856745f88b3fc3a58c8bedbdd05d5616 | [
"MIT"
] | 17 | 2020-08-18T02:34:57.000Z | 2022-03-16T16:26:53.000Z | can_decoder/Frame.py | justinwald99/can_decoder | abfdd839856745f88b3fc3a58c8bedbdd05d5616 | [
"MIT"
] | 4 | 2020-09-09T04:18:28.000Z | 2022-02-23T10:29:14.000Z | can_decoder/Frame.py | justinwald99/can_decoder | abfdd839856745f88b3fc3a58c8bedbdd05d5616 | [
"MIT"
] | 3 | 2021-08-18T18:30:43.000Z | 2022-02-21T07:11:09.000Z | from typing import List, Optional
from can_decoder.Signal import Signal
class Frame(object):
id = 0 # type: int
size = 0 # type: int
signals = None # type: List[Signal]
multiplexer = None # type: Optional[Signal]
def __init__(
self,
frame_id: int,
fram... | 29.43956 | 117 | 0.528182 | 297 | 2,679 | 4.649832 | 0.346801 | 0.031861 | 0.011586 | 0.028965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004332 | 0.39679 | 2,679 | 90 | 118 | 29.766667 | 0.850248 | 0.181411 | 0 | 0.122807 | 0 | 0.017544 | 0.052388 | 0 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.105263 | false | 0.052632 | 0.035088 | 0.035088 | 0.333333 | 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 | 0 | 0 | 0 | 2 |
f888a9124299142dae94af378de65454815c28dd | 268 | py | Python | Curso_de_Python_ Curso_em_Video/PythonTeste/operadoresAritmeticosEx007.py | DanilooSilva/Cursos_de_Python | 8f167a4c6e16f01601e23b6f107578aa1454472d | [
"MIT"
] | null | null | null | Curso_de_Python_ Curso_em_Video/PythonTeste/operadoresAritmeticosEx007.py | DanilooSilva/Cursos_de_Python | 8f167a4c6e16f01601e23b6f107578aa1454472d | [
"MIT"
] | null | null | null | Curso_de_Python_ Curso_em_Video/PythonTeste/operadoresAritmeticosEx007.py | DanilooSilva/Cursos_de_Python | 8f167a4c6e16f01601e23b6f107578aa1454472d | [
"MIT"
] | null | null | null | largura = float(input('Digite a largura da parede: '))
altura = float(input('Digite a altura da parede: '))
area = largura * altura
tinta = area / 2
print('A área da parede é de {}'.format(area))
print('Será necessário para pintar {} litros de tinta'.format(tinta))
| 29.777778 | 69 | 0.697761 | 41 | 268 | 4.560976 | 0.512195 | 0.128342 | 0.171123 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004444 | 0.160448 | 268 | 8 | 70 | 33.5 | 0.826667 | 0 | 0 | 0 | 0 | 0 | 0.466418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f888dc9c7ee0e666487347bc03cdcb3278274bed | 174 | py | Python | terraform.py | kyleslater/254-space-log | 7496ff4e134b1a916580d8c0f8a0493e4863e9a2 | [
"MIT"
] | null | null | null | terraform.py | kyleslater/254-space-log | 7496ff4e134b1a916580d8c0f8a0493e4863e9a2 | [
"MIT"
] | null | null | null | terraform.py | kyleslater/254-space-log | 7496ff4e134b1a916580d8c0f8a0493e4863e9a2 | [
"MIT"
] | null | null | null | #Kyle Slater
import re
def terraformable(content:str):
pattern = re.compile("\"TerraformState\":\"Terraformable\"")
matches = pattern.findall(content)
return len(matches) | 24.857143 | 61 | 0.752874 | 20 | 174 | 6.55 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097701 | 174 | 7 | 62 | 24.857143 | 0.834395 | 0.063218 | 0 | 0 | 0 | 0 | 0.018405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f88a9c72050c19a376ad171a7a2391d21f7e3ac6 | 256 | py | Python | bugzilla_service/bzservice_flask/app/tests/test_flaskr.py | 5GEVE/5G-EVE-PORTAL-BACKEND-tsb | 3fe3140b26d30e7e7ff1a034315183eaed60a599 | [
"MIT"
] | null | null | null | bugzilla_service/bzservice_flask/app/tests/test_flaskr.py | 5GEVE/5G-EVE-PORTAL-BACKEND-tsb | 3fe3140b26d30e7e7ff1a034315183eaed60a599 | [
"MIT"
] | 3 | 2021-02-08T20:38:29.000Z | 2021-06-02T00:55:43.000Z | file_storage_service/tests/test_flaskr.py | 5GEVE/5G-EVE-PORTAL-BACKEND-fs | 27d5d10fa39e3007cfee2e48e3b95047abf2c144 | [
"MIT"
] | null | null | null | import os
import tempfile
import requests
api_url = "http://127.0.0.1:8989"
def test_no_token():
"""Request home without token"""
response = requests.get(api_url+"/isvalid")
print(response.status_code)
assert response.status_code == 401 | 23.272727 | 47 | 0.707031 | 37 | 256 | 4.72973 | 0.702703 | 0.068571 | 0.205714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060748 | 0.164063 | 256 | 11 | 48 | 23.272727 | 0.757009 | 0.101563 | 0 | 0 | 0 | 0 | 0.128889 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f8b628877707fa6132110ae047367879935e3268 | 444 | py | Python | mezzanine_pagedown/defaults.py | eht16/mezzanine-pagedown | e6090f5713097e664e85b279a4a17febb73b00a1 | [
"BSD-2-Clause"
] | 94 | 2015-01-28T15:46:02.000Z | 2020-11-02T12:56:15.000Z | mezzanine_pagedown/defaults.py | eht16/mezzanine-pagedown | e6090f5713097e664e85b279a4a17febb73b00a1 | [
"BSD-2-Clause"
] | 56 | 2015-04-05T03:18:41.000Z | 2021-08-29T00:50:57.000Z | mezzanine_pagedown/defaults.py | eht16/mezzanine-pagedown | e6090f5713097e664e85b279a4a17febb73b00a1 | [
"BSD-2-Clause"
] | 38 | 2015-08-26T08:10:12.000Z | 2021-06-11T19:36:31.000Z | from mezzanine.conf import register_setting
register_setting(
name="PAGEDOWN_SERVER_SIDE_PREVIEW",
description="Render previews on the server using the same "
"converter that generates the actual pages.",
editable=False,
default=False,
)
register_setting(
name="PAGEDOWN_MARKDOWN_E... | 24.666667 | 73 | 0.725225 | 49 | 444 | 6.408163 | 0.673469 | 0.143312 | 0.121019 | 0.171975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193694 | 444 | 17 | 74 | 26.117647 | 0.877095 | 0 | 0 | 0.285714 | 0 | 0 | 0.443694 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
f8bab3dc683ade4a29b7e25ca1a99e68f49ac849 | 462 | py | Python | 30/00/1.py | pylangstudy/201707 | c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6 | [
"CC0-1.0"
] | null | null | null | 30/00/1.py | pylangstudy/201707 | c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6 | [
"CC0-1.0"
] | 46 | 2017-06-30T22:19:07.000Z | 2017-07-31T22:51:31.000Z | 30/00/1.py | pylangstudy/201707 | c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6 | [
"CC0-1.0"
] | null | null | null | def RetT(): print('True'); return True
def RetF(): print('False'); return False
print('----- or -----')
RetT() or RetF()
RetF() or RetT() #第一引数が偽のときにのみ、第二引数が評価されます。
print('----- and -----')
RetT() and RetF() #第一引数が真のときにのみ、第二引数が評価されます。
RetF() and RetT() #第一引数が真のときにのみ、第二引数が評価されます。
print('----- not -----')
print(not Tr... | 25.666667 | 53 | 0.645022 | 61 | 462 | 4.885246 | 0.262295 | 0.11745 | 0.080537 | 0.107383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12987 | 462 | 17 | 54 | 27.176471 | 0.741294 | 0.272727 | 0 | 0 | 0 | 0 | 0.160121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | true | 0 | 0 | 0 | 0.153846 | 0.692308 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
f8d06ccac9f1d3cb709d0653c37332224ffae6f4 | 20,941 | py | Python | pysnmp/DPS-MIB-V38.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/DPS-MIB-V38.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/DPS-MIB-V38.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module DPS-MIB-V38 (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DPS-MIB-V38
# Produced by pysmi-0.3.4 at Mon Apr 29 18:39:21 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 146.440559 | 2,200 | 0.719641 | 2,567 | 20,941 | 5.870666 | 0.082197 | 0.060916 | 0.091374 | 0.019907 | 0.6142 | 0.574253 | 0.531918 | 0.520902 | 0.470405 | 0.455806 | 0 | 0.085467 | 0.082565 | 20,941 | 142 | 2,201 | 147.471831 | 0.698938 | 0.01509 | 0 | 0 | 0 | 0 | 0.230258 | 0.002134 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 0.044444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6ef1936814cf84ad0a8d2c89da28ee0ee1c74c44 | 929 | py | Python | _correlation_grad.py | jgorgenucsd/corr_tf | ad777821283f7d18d8bdd04d584e12df9a3fba69 | [
"BSD-2-Clause"
] | 22 | 2017-12-27T07:37:14.000Z | 2021-11-15T05:51:44.000Z | _correlation_grad.py | jgorgenucsd/corr_tf | ad777821283f7d18d8bdd04d584e12df9a3fba69 | [
"BSD-2-Clause"
] | 4 | 2018-04-03T17:08:43.000Z | 2019-08-07T08:55:24.000Z | _correlation_grad.py | jgorgenucsd/corr_tf | ad777821283f7d18d8bdd04d584e12df9a3fba69 | [
"BSD-2-Clause"
] | 12 | 2018-02-06T02:35:12.000Z | 2022-03-02T07:18:19.000Z | #!/usr/bin/env python3
"""
Gradients for inner product.
"""
import tensorflow as tf
from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import sparse_ops
correlation_grad_module = tf.load_op_library('./build/libcorrelation_grad.so')
@ops.RegisterGradien... | 38.708333 | 163 | 0.750269 | 130 | 929 | 5.230769 | 0.492308 | 0.088235 | 0.088235 | 0.067647 | 0.094118 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0.003802 | 0.1507 | 929 | 23 | 164 | 40.391304 | 0.858048 | 0.427341 | 0 | 0 | 0 | 0 | 0.128834 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6efc120e05e2c5cbca1587bd26026c11c811582c | 2,257 | py | Python | python homework 2.py | pkpatricia/python34 | 5ee4f864444b8835f8ee6cf416bc9fd1d969595b | [
"bzip2-1.0.6"
] | null | null | null | python homework 2.py | pkpatricia/python34 | 5ee4f864444b8835f8ee6cf416bc9fd1d969595b | [
"bzip2-1.0.6"
] | null | null | null | python homework 2.py | pkpatricia/python34 | 5ee4f864444b8835f8ee6cf416bc9fd1d969595b | [
"bzip2-1.0.6"
] | null | null | null | Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
>>> ================================ RESTART ================================... | 27.52439 | 94 | 0.438635 | 274 | 2,257 | 3.609489 | 0.434307 | 0.144591 | 0.105157 | 0.137513 | 0.524773 | 0.478261 | 0.358948 | 0.316481 | 0.264914 | 0.240647 | 0 | 0.102278 | 0.124945 | 2,257 | 81 | 95 | 27.864198 | 0.398481 | 0 | 0 | 0.469136 | 0 | 0 | 0.025698 | 0.011963 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6efda603db469ce3236855097b257374262f3443 | 178 | py | Python | Python/Samples/Flyweight/Flyweight_models.py | plasroom46/DesignPattern.Sample | 86c05c5ae356cb01f3d075f248c45da3e6534d07 | [
"MIT"
] | 9 | 2019-03-14T01:54:31.000Z | 2021-11-26T13:00:32.000Z | Python/Samples/Flyweight/Flyweight_models.py | plasroom46/DesignPattern.Sample | 86c05c5ae356cb01f3d075f248c45da3e6534d07 | [
"MIT"
] | null | null | null | Python/Samples/Flyweight/Flyweight_models.py | plasroom46/DesignPattern.Sample | 86c05c5ae356cb01f3d075f248c45da3e6534d07 | [
"MIT"
] | 2 | 2019-08-19T06:00:04.000Z | 2021-07-15T01:23:52.000Z | class Content:
def __init__(self, id="", value=""):
if(id == ""):
raise TypeError
else:
self.id = id
self.value = value
| 17.8 | 40 | 0.438202 | 18 | 178 | 4.111111 | 0.611111 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.426966 | 178 | 9 | 41 | 19.777778 | 0.72549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 2 |
6efe244e5a0524f99c737e6f3d3da045c5866cd7 | 101 | py | Python | hello.py | zhuiyue568/test27 | f96438c29711b62000eb363ff32c059529a0e142 | [
"MIT"
] | null | null | null | hello.py | zhuiyue568/test27 | f96438c29711b62000eb363ff32c059529a0e142 | [
"MIT"
] | null | null | null | hello.py | zhuiyue568/test27 | f96438c29711b62000eb363ff32c059529a0e142 | [
"MIT"
] | null | null | null | name="zhuiyue"
num="123456"
num=111
num3=333
str="keep going"
num4=666
num5=888
num5=777
num6=999
| 7.769231 | 16 | 0.722772 | 19 | 101 | 3.842105 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.329545 | 0.128713 | 101 | 12 | 17 | 8.416667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.23 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
3e0b03ec64f84131a309427f748ab4fc729497d0 | 1,723 | py | Python | sustainableCityManagement/main_project/Population_API/views_population.py | Josh-repository/Dashboard-CityManager- | 6287881be9fb2c6274a755ce5d75ad355346468a | [
"RSA-MD"
] | null | null | null | sustainableCityManagement/main_project/Population_API/views_population.py | Josh-repository/Dashboard-CityManager- | 6287881be9fb2c6274a755ce5d75ad355346468a | [
"RSA-MD"
] | null | null | null | sustainableCityManagement/main_project/Population_API/views_population.py | Josh-repository/Dashboard-CityManager- | 6287881be9fb2c6274a755ce5d75ad355346468a | [
"RSA-MD"
] | 1 | 2021-05-13T16:33:18.000Z | 2021-05-13T16:33:18.000Z | from django.http import JsonResponse
from django.http import HttpResponse
from rest_framework.views import APIView
from .store_population import StorePopulation
import time as processTiming
import uuid
# API to fetch Ireland population used by frontend. The result consist of population estimate and year.
class Ireland... | 39.159091 | 103 | 0.62101 | 175 | 1,723 | 5.988571 | 0.36 | 0.045802 | 0.026718 | 0.038168 | 0.740458 | 0.740458 | 0.664122 | 0.664122 | 0.664122 | 0.664122 | 0 | 0.003279 | 0.291933 | 1,723 | 44 | 104 | 39.159091 | 0.855738 | 0.175276 | 0 | 0.526316 | 0 | 0 | 0.09386 | 0.031757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.315789 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3e1d0a3af98bd0674017ebccc343c54e9d715f7e | 325 | py | Python | reactivex/scheduler/mainloop/__init__.py | christiansandberg/RxPY | 036027d2858ea6c9d45839c863bd791e5bb50c36 | [
"MIT"
] | null | null | null | reactivex/scheduler/mainloop/__init__.py | christiansandberg/RxPY | 036027d2858ea6c9d45839c863bd791e5bb50c36 | [
"MIT"
] | null | null | null | reactivex/scheduler/mainloop/__init__.py | christiansandberg/RxPY | 036027d2858ea6c9d45839c863bd791e5bb50c36 | [
"MIT"
] | null | null | null | from .gtkscheduler import GtkScheduler
from .pygamescheduler import PyGameScheduler
from .qtscheduler import QtScheduler
from .tkinterscheduler import TkinterScheduler
from .wxscheduler import WxScheduler
__all__ = [
"GtkScheduler",
"PyGameScheduler",
"QtScheduler",
"TkinterScheduler",
"WxScheduler... | 23.214286 | 46 | 0.775385 | 26 | 325 | 9.538462 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 325 | 13 | 47 | 25 | 0.901818 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3e1f67673a3fc56ac1f18b117525630eebc9c6b7 | 207 | py | Python | convenient_ai/nlp/spacy/types/RulePattern.py | leftshiftone/convenient-nlp | 8f24ff070ffaa2117af02ae16aaf00bc4d7cf32f | [
"MIT"
] | null | null | null | convenient_ai/nlp/spacy/types/RulePattern.py | leftshiftone/convenient-nlp | 8f24ff070ffaa2117af02ae16aaf00bc4d7cf32f | [
"MIT"
] | null | null | null | convenient_ai/nlp/spacy/types/RulePattern.py | leftshiftone/convenient-nlp | 8f24ff070ffaa2117af02ae16aaf00bc4d7cf32f | [
"MIT"
] | null | null | null | import dataclasses
from dataclasses import dataclass
@dataclass
class RulePattern:
id: str
label: str
pattern: str
@property
def as_dict(self):
return dataclasses.asdict(self)
| 14.785714 | 39 | 0.695652 | 24 | 207 | 5.958333 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246377 | 207 | 13 | 40 | 15.923077 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0.1 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3e1ff4f3721e11c343d5fecb39e8c79bd6aafa15 | 1,014 | py | Python | cocos2d/tools/cocos2d-console/plugins/plugin_run.py | meiry/Cocos2d-x-EarthWarrior3D-win-desktop-version | 6611cf5bfac64e22f0b053681ef9bf563f93f06c | [
"MIT"
] | 7 | 2015-05-19T07:54:48.000Z | 2021-12-17T06:01:24.000Z | cocos2d/tools/cocos2d-console/plugins/plugin_run.py | meiry/Cocos2d-x-EarthWarrior3D-win-desktop-version | 6611cf5bfac64e22f0b053681ef9bf563f93f06c | [
"MIT"
] | null | null | null | cocos2d/tools/cocos2d-console/plugins/plugin_run.py | meiry/Cocos2d-x-EarthWarrior3D-win-desktop-version | 6611cf5bfac64e22f0b053681ef9bf563f93f06c | [
"MIT"
] | 4 | 2015-11-24T06:27:16.000Z | 2021-05-29T10:50:44.000Z | #!/usr/bin/python
# ----------------------------------------------------------------------------
# cocos2d "install" plugin
#
# Authr: Luis Parravicini
#
# License: MIT
# ----------------------------------------------------------------------------
'''
"run" plugin for cocos2d command line tool
'''
__docformat__ = 'res... | 24.142857 | 78 | 0.554241 | 101 | 1,014 | 5.435644 | 0.594059 | 0.081967 | 0.058288 | 0.069217 | 0.094718 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006188 | 0.203156 | 1,014 | 41 | 79 | 24.731707 | 0.673267 | 0.316568 | 0 | 0.15 | 0 | 0 | 0.209653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.15 | 0.15 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
3e28b00c8be476ae7052942943b00801e357b52e | 4,337 | py | Python | cpauto/objects/threat.py | krnnrt/cpauto | 6076ee0e3f55769aac5b2480453d82f99371a31f | [
"Apache-2.0"
] | 16 | 2016-12-07T02:45:31.000Z | 2022-01-20T11:46:24.000Z | cpauto/objects/threat.py | krnnrt/cpauto | 6076ee0e3f55769aac5b2480453d82f99371a31f | [
"Apache-2.0"
] | 2 | 2017-07-20T21:12:27.000Z | 2021-09-09T14:57:01.000Z | cpauto/objects/threat.py | krnnrt/cpauto | 6076ee0e3f55769aac5b2480453d82f99371a31f | [
"Apache-2.0"
] | 5 | 2017-07-28T14:06:25.000Z | 2021-09-06T12:01:18.000Z | # -*- coding: utf-8 -*-
# Copyright 2016 Dana James Traversie and Check Point Software Technologies, Ltd. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:/... | 44.255102 | 113 | 0.679733 | 569 | 4,337 | 5.107206 | 0.28471 | 0.084997 | 0.068135 | 0.063317 | 0.504818 | 0.504818 | 0.48073 | 0.48073 | 0.466965 | 0.438059 | 0 | 0.010035 | 0.218815 | 4,337 | 97 | 114 | 44.71134 | 0.847698 | 0.677888 | 0 | 0 | 0 | 0 | 0.092575 | 0.020251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0 | 0.866667 | 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 | 0 | 1 | 0 | 0 | 2 |
3e70d3317c13de0952315e701a55b920df03ec85 | 1,441 | py | Python | 20210607_fizzbuzz.py | sayloren/codechallenges | b31b64c176a1c03c937e915f3b60657669495681 | [
"Apache-2.0"
] | null | null | null | 20210607_fizzbuzz.py | sayloren/codechallenges | b31b64c176a1c03c937e915f3b60657669495681 | [
"Apache-2.0"
] | null | null | null | 20210607_fizzbuzz.py | sayloren/codechallenges | b31b64c176a1c03c937e915f3b60657669495681 | [
"Apache-2.0"
] | null | null | null | # code golf challenge
# https://code.golf/fizz-buzz#python
# wren 20210607
# Print the numbers from 1 to 100 inclusive, each on their own line.
# If, however, the number is a multiple of three then print Fizz instead,
# and if the number is a multiple of five then print Buzz.
# For numbers which are multiples of both ... | 46.483871 | 92 | 0.725191 | 254 | 1,441 | 4.114173 | 0.358268 | 0.051675 | 0.038278 | 0.076555 | 0.254545 | 0.254545 | 0.149282 | 0.149282 | 0.149282 | 0.149282 | 0 | 0.039233 | 0.204025 | 1,441 | 30 | 93 | 48.033333 | 0.87184 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.833333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
3e7a7495c3ea96af4211a7bee33396978138c459 | 605 | py | Python | docs/examples/best_practices/dynamic_configuration/cdk_appconfig.py | ran-isenberg/aws-lambda-handler-cookbook | adfe58dacd87315151265818869bb842c7eb4971 | [
"MIT"
] | 61 | 2022-02-07T05:21:14.000Z | 2022-03-27T14:11:30.000Z | docs/examples/best_practices/dynamic_configuration/cdk_appconfig.py | ran-isenberg/aws-lambda-handler-cookbook | adfe58dacd87315151265818869bb842c7eb4971 | [
"MIT"
] | 17 | 2022-02-26T05:25:31.000Z | 2022-03-16T20:02:46.000Z | docs/examples/best_practices/dynamic_configuration/cdk_appconfig.py | ran-isenberg/aws-lambda-handler-cookbook | adfe58dacd87315151265818869bb842c7eb4971 | [
"MIT"
] | 4 | 2022-02-17T16:35:27.000Z | 2022-03-07T03:13:07.000Z | from aws_cdk import Stack
from aws_lambda_handler_cookbook.service_stack.configuration.configuration_construct import ConfigurationStore
from aws_lambda_handler_cookbook.service_stack.constants import CONFIGURATION_NAME, ENVIRONMENT, SERVICE_NAME
from constructs import Construct
class CookBookConfigurationStack(Stack... | 43.214286 | 124 | 0.809917 | 68 | 605 | 6.852941 | 0.485294 | 0.045064 | 0.055794 | 0.085837 | 0.171674 | 0.171674 | 0.171674 | 0 | 0 | 0 | 0 | 0 | 0.115702 | 605 | 13 | 125 | 46.538462 | 0.871028 | 0.054545 | 0 | 0 | 0 | 0 | 0.021053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3e82a49073596a4c986e7e70b3ddc02848ac39cb | 385 | py | Python | tests/fixtures.py | hdsr-mid/string_finder | 64aa38afa562beddc897a0fcb84bf39e53b935fd | [
"MIT"
] | null | null | null | tests/fixtures.py | hdsr-mid/string_finder | 64aa38afa562beddc897a0fcb84bf39e53b935fd | [
"MIT"
] | null | null | null | tests/fixtures.py | hdsr-mid/string_finder | 64aa38afa562beddc897a0fcb84bf39e53b935fd | [
"MIT"
] | null | null | null | from pathlib import Path
from string_finder.constants import TEST_DATA_DIR
from typing import List
import pytest
@pytest.fixture
def caw_xml_paths() -> List[Path]:
xml_dir = TEST_DATA_DIR / "xmls"
assert xml_dir.is_dir()
_paths = [x for x in xml_dir.iterdir()]
assert len(_paths) == 4, f"expected 4 xm... | 25.666667 | 90 | 0.719481 | 63 | 385 | 4.142857 | 0.52381 | 0.091954 | 0.084291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.184416 | 385 | 14 | 91 | 27.5 | 0.824841 | 0 | 0 | 0 | 0 | 0 | 0.161039 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e445d667e0d2518eeb5e300fca8baeaa532b0501 | 427 | py | Python | t_mongo.py | iloghyr/easy_python | b750f6817d54562b23630e2419bace19da0abf8b | [
"Apache-2.0"
] | 1 | 2018-03-01T02:42:52.000Z | 2018-03-01T02:42:52.000Z | t_mongo.py | iloghyr/easy_python | b750f6817d54562b23630e2419bace19da0abf8b | [
"Apache-2.0"
] | null | null | null | t_mongo.py | iloghyr/easy_python | b750f6817d54562b23630e2419bace19da0abf8b | [
"Apache-2.0"
] | null | null | null | #!/bin/env python
#coding: utf-8
import pymongo
print [x for x in range(2)]
con = pymongo.MongoClient("localhost", 27017)
db = con.mars
collection = db.users
data = collection.find_one({"username":"hyr"})
print data
data['age'] = 225
print collection.update({"_idd":data['_id']}, data)
print collection.find_one({"u... | 17.08 | 70 | 0.683841 | 63 | 427 | 4.555556 | 0.587302 | 0.146341 | 0.118467 | 0.174216 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02981 | 0.135831 | 427 | 24 | 71 | 17.791667 | 0.747967 | 0.257611 | 0 | 0 | 0 | 0 | 0.132686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e462bb80e8e5cfe48f10d58ffcdefb6c7a4fc2ec | 680 | py | Python | test.py | jsayles/LPD8806 | 6f13b65ae92f3bd903df684459964b8f5f621942 | [
"MIT"
] | null | null | null | test.py | jsayles/LPD8806 | 6f13b65ae92f3bd903df684459964b8f5f621942 | [
"MIT"
] | null | null | null | test.py | jsayles/LPD8806 | 6f13b65ae92f3bd903df684459964b8f5f621942 | [
"MIT"
] | null | null | null | import time
from lightpi.hardware import strip, string1, string2
DELAY_SEC = 0.3
# Test the RGB Strip
strip.red()
time.sleep(DELAY_SEC)
strip.green()
time.sleep(DELAY_SEC)
strip.blue()
time.sleep(DELAY_SEC)
strip.off()
# Test the LED Strings
string1.on()
time.sleep(DELAY_SEC)
string1.off()
time.sleep(DELAY_SEC)
st... | 17.435897 | 80 | 0.535294 | 79 | 680 | 4.518987 | 0.367089 | 0.156863 | 0.235294 | 0.285714 | 0.378151 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020067 | 0.120588 | 680 | 38 | 81 | 17.894737 | 0.576923 | 0.079412 | 0 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e4710ca29b9a5a6a2747143e02042c64942aa376 | 1,865 | py | Python | src/blockchain/crypto_tools/__init__.py | ParisNeo/blockchain | 8bc2768a3e89088e202ea89e5f301576f6f9d95c | [
"MIT"
] | null | null | null | src/blockchain/crypto_tools/__init__.py | ParisNeo/blockchain | 8bc2768a3e89088e202ea89e5f301576f6f9d95c | [
"MIT"
] | null | null | null | src/blockchain/crypto_tools/__init__.py | ParisNeo/blockchain | 8bc2768a3e89088e202ea89e5f301576f6f9d95c | [
"MIT"
] | null | null | null | """
"""
from Crypto.PublicKey import RSA
from Crypto.Hash import SHA256
from Crypto.Signature import PKCS1_v1_5
from base58 import b58encode, b58decode
# ================= cryptography helpers ======================================
def hash(data):
"""Hash some data
"""
# Hash the stuff we need to hash
... | 26.267606 | 92 | 0.642895 | 229 | 1,865 | 5.157205 | 0.292576 | 0.076207 | 0.020322 | 0.032176 | 0.201524 | 0.165961 | 0.108383 | 0.071126 | 0.071126 | 0 | 0 | 0.029696 | 0.223592 | 1,865 | 70 | 93 | 26.642857 | 0.785912 | 0.368901 | 0 | 0.2 | 0 | 0 | 0.005525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0 | 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 | 0 | 1 | 0 | 0 | 2 |
e472f3485c0e5680d2198a1ae932c5d7712b5057 | 19,303 | py | Python | tools/unit_tests/test_config_transforms.py | dice-project/DICE-deployment-service | e209c6a061a78f170e81cfc03d2959af0283ed15 | [
"Apache-2.0"
] | 2 | 2018-04-03T20:45:26.000Z | 2022-02-07T19:53:42.000Z | tools/unit_tests/test_config_transforms.py | dice-project/DICE-deployment-service | e209c6a061a78f170e81cfc03d2959af0283ed15 | [
"Apache-2.0"
] | 3 | 2016-11-15T10:41:43.000Z | 2020-03-16T07:49:03.000Z | tools/unit_tests/test_config_transforms.py | dice-project/DICE-deployment-service | e209c6a061a78f170e81cfc03d2959af0283ed15 | [
"Apache-2.0"
] | 2 | 2018-07-04T11:37:12.000Z | 2022-02-07T19:53:43.000Z | import unittest
import copy
import os
import tempfile
from config_tool.utils import *
class TestConfigurationTransformation(unittest.TestCase):
@classmethod
def setUpClass(cls):
base_path = os.path.dirname(os.path.realpath(__file__))
file_path = os.path.join(base_path, 'files')
def f... | 38.528942 | 80 | 0.600425 | 2,018 | 19,303 | 5.577304 | 0.11893 | 0.046202 | 0.043003 | 0.023456 | 0.751044 | 0.733363 | 0.703687 | 0.64016 | 0.619014 | 0.568014 | 0 | 0.018903 | 0.301145 | 19,303 | 500 | 81 | 38.606 | 0.815419 | 0.193649 | 0 | 0.540984 | 0 | 0 | 0.230759 | 0.114677 | 0 | 0 | 0 | 0 | 0.15082 | 1 | 0.059016 | false | 0 | 0.032787 | 0.003279 | 0.098361 | 0.216393 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e4797fdc0550e8c83ce7e94b28483dfdbf77d5d3 | 344 | py | Python | 02. Programacion estructurada/05. datos tupla/e1.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null | 02. Programacion estructurada/05. datos tupla/e1.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null | 02. Programacion estructurada/05. datos tupla/e1.py | Cidryl/python-desde-cero | fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276 | [
"MIT"
] | null | null | null | def cargar_fecha():
dd=int(input("Ingrese numero de dia:"))
mm=int(input("Ingrese numero de mes:"))
aa=int(input("Ingrese numero de año:"))
tupla = (dd,mm,aa)
return tupla
def imprimir_fecha(fecha):
print(fecha[0],fecha[1],fecha[2],sep="/")
# bloque principal
fecha=cargar_fecha(... | 22.933333 | 46 | 0.639535 | 50 | 344 | 4.32 | 0.48 | 0.111111 | 0.208333 | 0.291667 | 0.319444 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.197674 | 344 | 15 | 47 | 22.933333 | 0.771739 | 0.046512 | 0 | 0 | 0 | 0 | 0.214058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.3 | 0.1 | 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 | 0 | 0 | 2 |
e483e0a6252d9a8ff4f77f42bb3708e55acf3498 | 330 | py | Python | flask/part3_templates/ex3-app/students2.py | macloo/python-beginners | 1124922cd57d3f647eacafa0b82948587514d4bd | [
"MIT"
] | 42 | 2018-03-25T22:41:57.000Z | 2022-01-08T21:23:02.000Z | flask/part3_templates/ex3-app/students2.py | pavanpatil45/python-beginners | 1124922cd57d3f647eacafa0b82948587514d4bd | [
"MIT"
] | null | null | null | flask/part3_templates/ex3-app/students2.py | pavanpatil45/python-beginners | 1124922cd57d3f647eacafa0b82948587514d4bd | [
"MIT"
] | 17 | 2018-03-20T00:56:57.000Z | 2022-01-12T06:36:18.000Z | # two templates are used in this app
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/student/<idnum>')
def student(idnum):
return render_template('student.html', id=idnum)
if __name__ == '__main__':
app.run(de... | 20.625 | 52 | 0.70303 | 46 | 330 | 4.717391 | 0.565217 | 0.193548 | 0.184332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148485 | 330 | 15 | 53 | 22 | 0.772242 | 0.10303 | 0 | 0 | 0 | 0 | 0.16041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
e4b4e1f9c8eb01d9ce9d5ca44f6c9f1bce4a4c9a | 91 | py | Python | travian4api/resources.py | ihoromi4/travian4api | 1fa9023d62d8dfca00f5276eff13868ddc057811 | [
"BSD-3-Clause"
] | 2 | 2022-03-08T20:50:08.000Z | 2022-03-08T20:50:13.000Z | travian4api/resources.py | ihoromi4/travian4api | 1fa9023d62d8dfca00f5276eff13868ddc057811 | [
"BSD-3-Clause"
] | null | null | null | travian4api/resources.py | ihoromi4/travian4api | 1fa9023d62d8dfca00f5276eff13868ddc057811 | [
"BSD-3-Clause"
] | 2 | 2021-03-10T18:43:53.000Z | 2021-12-18T13:31:22.000Z |
RESOURCE_TYPES = ['lumber', 'clay', 'iron', 'crop']
LUMBER = 0
CLAY = 1
IRON = 2
CROP = 3
| 13 | 51 | 0.593407 | 14 | 91 | 3.785714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.208791 | 91 | 6 | 52 | 15.166667 | 0.680556 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e4c4cb3330bd82155cdbb03b29afb2dbeedea99b | 23,602 | py | Python | pysnmp-with-texts/NSCHippiSonet-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/NSCHippiSonet-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/NSCHippiSonet-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module NSCHippiSonet-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NSCHippiSonet-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:25:03 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | 125.542553 | 3,243 | 0.800398 | 2,606 | 23,602 | 7.249041 | 0.150422 | 0.069875 | 0.12228 | 0.013128 | 0.401673 | 0.263829 | 0.190143 | 0.100259 | 0.094966 | 0.088825 | 0 | 0.047579 | 0.087238 | 23,602 | 187 | 3,244 | 126.213904 | 0.829318 | 0.013897 | 0 | 0 | 0 | 0.038889 | 0.222093 | 0.001891 | 0 | 0 | 0 | 0 | 0.005556 | 1 | 0 | false | 0 | 0.038889 | 0 | 0.038889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e4e47a927be1df6a8c7ab23bada3a5ee286f11b3 | 590 | py | Python | bootstrapvz/plugins/insecure/tasks.py | null0000/bootstrap-vz | 003cdd9808bac90383b4c46738507bd7e1daa268 | [
"Apache-2.0"
] | null | null | null | bootstrapvz/plugins/insecure/tasks.py | null0000/bootstrap-vz | 003cdd9808bac90383b4c46738507bd7e1daa268 | [
"Apache-2.0"
] | null | null | null | bootstrapvz/plugins/insecure/tasks.py | null0000/bootstrap-vz | 003cdd9808bac90383b4c46738507bd7e1daa268 | [
"Apache-2.0"
] | null | null | null | from bootstrapvz.base import Task
from bootstrapvz.common import phases
import os
import shutil
class EnableInsecureAccess(Task):
description = 'Enabling shell access via /dev/ttyS1'
phase = phases.system_modification
@classmethod
def run(cls, info):
# Append a line to /etc/inittab launching /bin/bash on
# /... | 31.052632 | 81 | 0.754237 | 83 | 590 | 5.228916 | 0.578313 | 0.110599 | 0.082949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005871 | 0.133898 | 590 | 18 | 82 | 32.777778 | 0.843444 | 0.108475 | 0 | 0 | 0 | 0 | 0.116635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e4ec28c7bf7bd90f9b875de7df12fd87fba4eede | 4,961 | py | Python | atlas/foundations_contrib/src/test/models/test_queued_job.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_contrib/src/test/models/test_queued_job.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_contrib/src/test/models/test_queued_job.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
import unittest
from mock import Mock
from foundations_spec.helpers import let, let_patch_mock, let_patch_instance, set_up
from foundations_spec.helpers.spec import Spec
from foundations_contrib.models.queued_job import QueuedJob
from fakeredis import FakeRedis
class TestQueuedJob(Spec):
mock_time = let_patc... | 31.598726 | 97 | 0.702882 | 656 | 4,961 | 4.96189 | 0.126524 | 0.058372 | 0.043932 | 0.0553 | 0.621813 | 0.546237 | 0.531797 | 0.458065 | 0.423041 | 0.397849 | 0 | 0.00512 | 0.212659 | 4,961 | 156 | 98 | 31.801282 | 0.828213 | 0 | 0 | 0.37069 | 0 | 0 | 0.018952 | 0.009879 | 0 | 0 | 0 | 0 | 0.077586 | 1 | 0.215517 | false | 0 | 0.163793 | 0.051724 | 0.517241 | 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 | 0 | 1 | 0 | 0 | 2 |
e4f43253efd72ee6f97db976bf7d874a78157c8f | 347 | py | Python | psim/packages/tictoc/__init__.py | bburns/psimPython | 610321313a220bc413560daaf64ff2274ae05c02 | [
"MIT"
] | null | null | null | psim/packages/tictoc/__init__.py | bburns/psimPython | 610321313a220bc413560daaf64ff2274ae05c02 | [
"MIT"
] | null | null | null | psim/packages/tictoc/__init__.py | bburns/psimPython | 610321313a220bc413560daaf64ff2274ae05c02 | [
"MIT"
] | null | null | null | """
tictoc
matlab-like tic and toc functions
see https://stackoverflow.com/questions/5849800/what-is-the-python-equivalent-of-matlabs-tic-and-toc-functions
"""
import time
tics = []
def tic():
tics.append(time.process_time())
def toc():
if len(tics) == 0:
return None
else:
return time.p... | 17.35 | 110 | 0.665706 | 49 | 347 | 4.673469 | 0.673469 | 0.052402 | 0.078603 | 0.157205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028269 | 0.184438 | 347 | 19 | 111 | 18.263158 | 0.780919 | 0.435159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9001723e3ad1821cbe597698ec69edc8b0731984 | 839 | py | Python | uninas/modules/modules/cnn.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 18 | 2020-11-22T16:03:08.000Z | 2022-03-15T12:11:46.000Z | uninas/modules/modules/cnn.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 2 | 2022-01-04T08:10:17.000Z | 2022-01-05T08:13:14.000Z | uninas/modules/modules/cnn.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 6 | 2021-03-08T07:08:52.000Z | 2022-02-24T12:00:43.000Z | import torch
import torch.nn as nn
class SqueezeModule(nn.Module):
def forward(self, x: torch.Tensor) -> torch.Tensor:
return x.squeeze()
class GapSqueezeModule(nn.Module):
""" global average pooling and squeezing """
def __init__(self):
super().__init__()
self.gap = nn.Adaptive... | 27.064516 | 95 | 0.640048 | 113 | 839 | 4.575221 | 0.318584 | 0.12766 | 0.081238 | 0.087041 | 0.237911 | 0.237911 | 0.237911 | 0.237911 | 0.166344 | 0 | 0 | 0.004594 | 0.221692 | 839 | 30 | 96 | 27.966667 | 0.787136 | 0.042908 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0.1 | 0.65 | 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 | 0 | 1 | 0 | 0 | 2 |
900c0768bdb748b6c9e90f7a675de1895a6d4acc | 4,386 | py | Python | app/api/V1/views/auth_endpoints.py | eduhmik/Store-Manager-api | 50395d39758800784fbd0b3e516b8bedc900cdeb | [
"MIT"
] | null | null | null | app/api/V1/views/auth_endpoints.py | eduhmik/Store-Manager-api | 50395d39758800784fbd0b3e516b8bedc900cdeb | [
"MIT"
] | 8 | 2018-10-24T01:33:32.000Z | 2019-10-21T17:36:01.000Z | app/api/V1/views/auth_endpoints.py | eduhmik/Store-Manager-api | 50395d39758800784fbd0b3e516b8bedc900cdeb | [
"MIT"
] | 1 | 2018-10-19T21:57:48.000Z | 2018-10-19T21:57:48.000Z | from flask import Flask, request, jsonify, Blueprint, json, make_response
from flask_restplus import Resource, reqparse, Api, Namespace, fields
from ..models.user_model import User
api = Namespace('Register Endpoint', description='A collection of register endpoints for the user model')
ns = Namespace('Users Endpoints... | 33.227273 | 105 | 0.559052 | 452 | 4,386 | 5.303097 | 0.280973 | 0.045056 | 0.060075 | 0.083438 | 0.347101 | 0.27451 | 0.206508 | 0.173133 | 0.111389 | 0.057572 | 0 | 0.009015 | 0.317145 | 4,386 | 131 | 106 | 33.480916 | 0.791319 | 0 | 0 | 0.367925 | 0 | 0 | 0.196797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.084906 | 0.028302 | null | null | 0.009434 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9037ec295216061bb4362e12f89dff7a2894c6f3 | 3,125 | py | Python | profesionales/migrations/0005_auto_20190928_2338.py | cluster311/ggg | 262173c66fe40ada30083d439a79f16f841f5772 | [
"BSD-3-Clause"
] | 6 | 2020-03-16T02:51:16.000Z | 2020-11-10T00:58:01.000Z | profesionales/migrations/0005_auto_20190928_2338.py | cluster311/ggg | 262173c66fe40ada30083d439a79f16f841f5772 | [
"BSD-3-Clause"
] | 204 | 2019-09-19T02:00:57.000Z | 2022-02-10T10:48:52.000Z | profesionales/migrations/0005_auto_20190928_2338.py | cluster311/ggg | 262173c66fe40ada30083d439a79f16f841f5772 | [
"BSD-3-Clause"
] | 3 | 2019-09-16T22:59:24.000Z | 2022-03-21T22:52:44.000Z | # Generated by Django 2.2.4 on 2019-09-28 23:38
import address.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('address', '0002_auto_20160213_1726'),
('profesionales', '0004_auto_20190927_0004'),
]
... | 38.580247 | 377 | 0.57824 | 276 | 3,125 | 6.42029 | 0.387681 | 0.11851 | 0.146727 | 0.176072 | 0.360609 | 0.327878 | 0.056433 | 0.056433 | 0 | 0 | 0 | 0.025945 | 0.27232 | 3,125 | 80 | 378 | 39.0625 | 0.753298 | 0.0144 | 0 | 0.540541 | 1 | 0 | 0.260234 | 0.014945 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040541 | 0 | 0.081081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
90429ee16f26834b4fd4e1ca6831ceabda97033d | 298 | py | Python | api/applications/migrations/0042_merge_20201213_0228.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 3 | 2019-05-15T09:30:39.000Z | 2020-04-22T16:14:23.000Z | api/applications/migrations/0042_merge_20201213_0228.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 85 | 2019-04-24T10:39:35.000Z | 2022-03-21T14:52:12.000Z | api/applications/migrations/0042_merge_20201213_0228.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 1 | 2021-01-17T11:12:19.000Z | 2021-01-17T11:12:19.000Z | # Generated by Django 2.2.16 on 2020-12-13 02:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("applications", "0041_goodonapplication_is_precedent"),
("applications", "0041_goodonapplicationdocument"),
]
operations = []
| 21.285714 | 64 | 0.694631 | 31 | 298 | 6.548387 | 0.806452 | 0.157635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.194631 | 298 | 13 | 65 | 22.923077 | 0.745833 | 0.154362 | 0 | 0 | 1 | 0 | 0.356 | 0.26 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
5f50dd9219cff3c1253c4849dd5381638d312cc3 | 1,214 | py | Python | py/py_0736_paths_to_equality.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0736_paths_to_equality.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0736_paths_to_equality.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 736: Paths to Equality
# https://projecteuler.net/problem=736
#
# Define two functions on lattice points:$r(x,y) = (x+1,2y)$$s(x,y) =
# (2x,y+1)$A path to equality of length $n$ for a pair $(a,b)$ is a sequence
# $\Big((a_1,b_1),(a_2,b_2),\ldots,(a_n,b_n)\Big)$, where:$(a_1,b_1... | 40.466667 | 213 | 0.651565 | 237 | 1,214 | 3.202532 | 0.409283 | 0.065876 | 0.073781 | 0.01581 | 0.096179 | 0.071146 | 0 | 0 | 0 | 0 | 0 | 0.112195 | 0.155684 | 1,214 | 29 | 214 | 41.862069 | 0.628293 | 0.846787 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5f54a49151f01f5e6cf35cf93d8091376f6fa1d7 | 431 | py | Python | doping_test/Standard.py | Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool | eb359ba618f0022dcd403edc99904f3ef2940e65 | [
"MIT"
] | null | null | null | doping_test/Standard.py | Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool | eb359ba618f0022dcd403edc99904f3ef2940e65 | [
"MIT"
] | null | null | null | doping_test/Standard.py | Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool | eb359ba618f0022dcd403edc99904f3ef2940e65 | [
"MIT"
] | null | null | null | class Standard(object):
"""Abstract class for representation of Standard LTS"""
def __init__(self):
super(Standard, self).__init__()
def get_any_trace(self, boundary):
# Return any of the traces of standard LTS S
raise NotImplementedError('Abstract method not implemented!')
def get_traces(self, boundary):
... | 30.785714 | 63 | 0.756381 | 56 | 431 | 5.625 | 0.517857 | 0.063492 | 0.08254 | 0.24127 | 0.330159 | 0.330159 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150812 | 431 | 13 | 64 | 33.153846 | 0.860656 | 0.313225 | 0 | 0.285714 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5f72433b75556b159f57faa7593653f49eb2cb21 | 3,557 | py | Python | T53/webapp/accounts/models.py | DevelopAppWithMe/Hackathon_5.0 | 6af503a995721c04986931d6a29d8f946ceaa067 | [
"MIT"
] | null | null | null | T53/webapp/accounts/models.py | DevelopAppWithMe/Hackathon_5.0 | 6af503a995721c04986931d6a29d8f946ceaa067 | [
"MIT"
] | null | null | null | T53/webapp/accounts/models.py | DevelopAppWithMe/Hackathon_5.0 | 6af503a995721c04986931d6a29d8f946ceaa067 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
from django.contrib.auth.models import (
AbstractBaseUser,
BaseUserManager,
PermissionsMixin,
)
from django.core.validators import RegexValidator
from django.db import models
class UserManager(BaseUserManager):
def create_user(self, phone_numb... | 32.336364 | 104 | 0.687939 | 448 | 3,557 | 5.285714 | 0.261161 | 0.092905 | 0.035473 | 0.048142 | 0.420186 | 0.377956 | 0.295608 | 0.271115 | 0.22973 | 0.22973 | 0 | 0.023214 | 0.21282 | 3,557 | 109 | 105 | 32.633028 | 0.8225 | 0.080967 | 0 | 0.307692 | 0 | 0 | 0.128449 | 0.006438 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.051282 | 0.051282 | 0.564103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
5f82a8065c53d38a11111b87bd83da3803a657ae | 1,981 | py | Python | django-server/fras/attendance/utils.py | ArleneAndrews/Facial-Recognition-Attendance-System | 104d17e56af87358974331ef491949b557ab2f01 | [
"MIT"
] | 52 | 2019-01-29T14:46:17.000Z | 2022-01-14T16:11:37.000Z | django-server/fras/attendance/utils.py | etrigaen47/Facial-Recognition-Attendance-System | ad0bd18cf9582cc12002baf8c92f6638f632c46e | [
"MIT"
] | 13 | 2018-11-04T12:29:48.000Z | 2020-02-11T23:47:35.000Z | django-server/fras/attendance/utils.py | etrigaen47/Facial-Recognition-Attendance-System | ad0bd18cf9582cc12002baf8c92f6638f632c46e | [
"MIT"
] | 16 | 2019-03-07T11:07:16.000Z | 2021-08-13T07:19:28.000Z | def convert_str_to_date(string):
from datetime import datetime
datetime.strptime(string, "%Y-%m-%d %H:%M:%S.%f")
def create_database():
from attendance.models.Student import Student
from attendance.models.WorkingDay import WorkingDay
from attendance.models.LectureAttendance import LectureAttendanc... | 43.065217 | 106 | 0.704695 | 232 | 1,981 | 5.793103 | 0.327586 | 0.171131 | 0.180804 | 0.227679 | 0.443452 | 0.403274 | 0.354167 | 0.318452 | 0.125 | 0.125 | 0 | 0.043451 | 0.186774 | 1,981 | 45 | 107 | 44.022222 | 0.790813 | 0 | 0 | 0.2 | 0 | 0 | 0.116667 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.142857 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5f972ab5ab25213d75c3f56834078dbd2a9d9668 | 706 | py | Python | python/src/day06.py | azuline/aoc2020 | 849b48adf3a67ac0eeb485818e38a4b3a72fc03a | [
"Apache-2.0"
] | 3 | 2020-12-09T11:36:31.000Z | 2020-12-11T01:41:52.000Z | python/src/day06.py | azuline/aoc2020 | 849b48adf3a67ac0eeb485818e38a4b3a72fc03a | [
"Apache-2.0"
] | null | null | null | python/src/day06.py | azuline/aoc2020 | 849b48adf3a67ac0eeb485818e38a4b3a72fc03a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from itertools import chain
from pathlib import Path
from typing import List
INPUT_FILE = Path.cwd().parent / "inputs" / "day06.txt"
AnswerGroup = List[str]
def transform_input(input: str) -> List[AnswerGroup]:
return [x.split("\n") for x in input.strip().split("\n\n")]
def part1(groups... | 23.533333 | 75 | 0.660057 | 110 | 706 | 4.127273 | 0.472727 | 0.099119 | 0.039648 | 0.105727 | 0.229075 | 0.171806 | 0.171806 | 0.171806 | 0 | 0 | 0 | 0.013699 | 0.172805 | 706 | 29 | 76 | 24.344828 | 0.763699 | 0.028329 | 0 | 0 | 0 | 0 | 0.108029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.1875 | 0.5625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
5f98d7e1817b744273f69d626fee4ccb8dd5c371 | 319 | py | Python | pythonProject/MUNDO 2/Desafio 57.py | lucasjlgc/Aulas-de-Python- | 6aaed1c660487a680e9c449210600ccdfa326612 | [
"MIT"
] | null | null | null | pythonProject/MUNDO 2/Desafio 57.py | lucasjlgc/Aulas-de-Python- | 6aaed1c660487a680e9c449210600ccdfa326612 | [
"MIT"
] | 1 | 2021-06-25T15:29:11.000Z | 2021-06-25T15:29:11.000Z | pythonProject/MUNDO 2/Desafio 57.py | lucasjlgc/Aulas-de-Python- | 6aaed1c660487a680e9c449210600ccdfa326612 | [
"MIT"
] | null | null | null | #Leia o sexo de uma pessoa, só aceite as letras M ou F; Caso contrario, peça a digitação novamente
sexo= str(input('Digite seu sexo [M/F]: ')).strip().upper()[0]
while sexo not in 'MF':
sexo=str(input('DIGITE O SEXO [M/F]: ')).strip().upper()[0]
print('seu sexo é {} e está registrado com sucesso!'.format(sexo)) | 39.875 | 98 | 0.670846 | 57 | 319 | 3.754386 | 0.666667 | 0.046729 | 0.11215 | 0.168224 | 0.158879 | 0.158879 | 0 | 0 | 0 | 0 | 0 | 0.007435 | 0.15674 | 319 | 8 | 99 | 39.875 | 0.788104 | 0.304075 | 0 | 0 | 0 | 0 | 0.405405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5f9e9628295536489ee271571858b5c113c24c7c | 99,362 | py | Python | Scripts/generated/protocolbuffers/Social_pb2.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/generated/protocolbuffers/Social_pb2.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/generated/protocolbuffers/Social_pb2.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: D:\dev\TS4\_deploy\Client\Releasex64\Python\Generated\protocolbuffers\Social_pb2.py
# Compiled at: 2020-12-13 14:24:09
# Size of sourc... | 31.050625 | 10,693 | 0.763723 | 11,997 | 99,362 | 6.098275 | 0.056431 | 0.056642 | 0.046309 | 0.03957 | 0.719126 | 0.679419 | 0.561119 | 0.522314 | 0.511939 | 0.501415 | 0 | 0.043324 | 0.119351 | 99,362 | 3,200 | 10,694 | 31.050625 | 0.792704 | 0.003351 | 0 | 0.785005 | 0 | 0.003525 | 0.23742 | 0.208012 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002884 | 0 | 0.025953 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5fc115feb7229821fab8bd49844fdb6a161d73e2 | 408 | py | Python | deploy/api/src/schemas/koe_favorite_schema.py | bonybody/2020_hew_app | d09cdafd55348ed70424a443d8619114cae3d27f | [
"MIT"
] | 1 | 2021-06-03T02:54:51.000Z | 2021-06-03T02:54:51.000Z | deploy/api/src/schemas/koe_favorite_schema.py | bonybody/agri | d09cdafd55348ed70424a443d8619114cae3d27f | [
"MIT"
] | 19 | 2021-01-01T09:48:51.000Z | 2021-04-08T09:11:30.000Z | deploy/api/src/schemas/koe_favorite_schema.py | bonybody/agri | d09cdafd55348ed70424a443d8619114cae3d27f | [
"MIT"
] | 1 | 2021-09-28T11:54:25.000Z | 2021-09-28T11:54:25.000Z | import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from database.database import ma
from models import KoeFavorite
from .user_schema import UserSchema
from .koe_schema import KoeSchema
class KoeFavoriteSchema(ma.SQLAlchemyAutoSchema):
Koe = ma.Nested(KoeSch... | 25.5 | 77 | 0.742647 | 52 | 408 | 5.711538 | 0.461538 | 0.060606 | 0.087542 | 0.10101 | 0.107744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 408 | 15 | 78 | 27.2 | 0.883929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
395b088785153a0b12425d78d2c97981d28c0b99 | 584 | py | Python | bluebottle/test/factory_models/pages.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/test/factory_models/pages.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/test/factory_models/pages.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | from builtins import object
from datetime import timedelta
import factory
from django.utils.timezone import now
from bluebottle.pages.models import Page
from .accounts import BlueBottleUserFactory
class PageFactory(factory.DjangoModelFactory):
class Meta(object):
model = Page
language = 'en'
ti... | 27.809524 | 66 | 0.741438 | 70 | 584 | 6.171429 | 0.571429 | 0.069444 | 0.097222 | 0.101852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006148 | 0.164384 | 584 | 20 | 67 | 29.2 | 0.879098 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.933333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
39671833a02d25c6d6b9a61a074e54f03e6112e8 | 1,124 | py | Python | decision_tree/dt_author_id.py | ncfausti/udacity-machine-learning | 223eb1821e739d048d278629a2e466b3f2af8912 | [
"MIT"
] | null | null | null | decision_tree/dt_author_id.py | ncfausti/udacity-machine-learning | 223eb1821e739d048d278629a2e466b3f2af8912 | [
"MIT"
] | null | null | null | decision_tree/dt_author_id.py | ncfausti/udacity-machine-learning | 223eb1821e739d048d278629a2e466b3f2af8912 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
this is the code to accompany the Lesson 3 (decision tree) mini-project
use an DT to identify emails from the Enron corpus by their authors
Sara has label 0
Chris has label 1
"""
import sys
from time import time
sys.path.append("../tools/")
from email_preprocess impor... | 24.434783 | 75 | 0.674377 | 143 | 1,124 | 5.167832 | 0.545455 | 0.070365 | 0.027064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.146797 | 1,124 | 46 | 76 | 24.434783 | 0.763295 | 0.336299 | 0 | 0 | 0 | 0 | 0.069847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.375 | 0 | 0.4375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
397474e797b04315ff3ee3188dba1be27f9df132 | 752 | py | Python | fullthrottleapp/models.py | Pranjali16/FullThrottle-Project | bb6fbd3783d22c2e47ad85687e18f02a30c69799 | [
"Apache-2.0"
] | null | null | null | fullthrottleapp/models.py | Pranjali16/FullThrottle-Project | bb6fbd3783d22c2e47ad85687e18f02a30c69799 | [
"Apache-2.0"
] | null | null | null | fullthrottleapp/models.py | Pranjali16/FullThrottle-Project | bb6fbd3783d22c2e47ad85687e18f02a30c69799 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractBaseUser
class User(AbstractBaseUser, models.Model):
"""User Model"""
name = models.CharField(max_length=500, blank=True, null=True)
tz = models.CharField(max_length=500, blank=True, null=True)
USERNAME_FIELD = 'name... | 34.181818 | 91 | 0.679521 | 95 | 752 | 5.221053 | 0.4 | 0.090726 | 0.145161 | 0.193548 | 0.370968 | 0.370968 | 0.370968 | 0.370968 | 0.370968 | 0.193548 | 0 | 0.020134 | 0.207447 | 752 | 21 | 92 | 35.809524 | 0.812081 | 0.042553 | 0 | 0 | 0 | 0 | 0.024745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
39ab4f35e7e866e763852b3e23d066d864569549 | 1,120 | py | Python | conti_wc.py | saturn99/cleaks | c826c973d9695c3bfc31bf580b470267792807e7 | [
"MIT"
] | 6 | 2022-03-01T10:33:52.000Z | 2022-03-05T22:26:27.000Z | conti_wc.py | saturn99/cleaks | c826c973d9695c3bfc31bf580b470267792807e7 | [
"MIT"
] | 1 | 2022-03-01T13:40:29.000Z | 2022-03-01T13:40:29.000Z | conti_wc.py | saturn99/cleaks | c826c973d9695c3bfc31bf580b470267792807e7 | [
"MIT"
] | 2 | 2022-03-01T10:40:57.000Z | 2022-03-01T13:21:23.000Z | # -*- coding: utf-8 -*-
# import libraries
import os
from PIL import Image
import nltk
import numpy as np
import matplotlib.pyplot as plt
import random
from scipy.ndimage import gaussian_gradient_magnitude
from wordcloud import WordCloud, ImageColorGenerator, STOPWORDS
# import mask image. Search for stencil image... | 25.454545 | 103 | 0.738393 | 155 | 1,120 | 5.23871 | 0.619355 | 0.033251 | 0.03202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026261 | 0.15 | 1,120 | 43 | 104 | 26.046512 | 0.826681 | 0.241071 | 0 | 0 | 0 | 0 | 0.114422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.444444 | 0.055556 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
39abb2ca3dacb04c99f9108d126a09ef92f5c7d4 | 1,824 | py | Python | swift_cloud_py/validate_safety_restrictions/validate.py | stijnfleuren/swift_cloud_api | 30f3b6c1fd80e5cfa5ce11e1daa08a09ab1e4e9b | [
"MIT"
] | 3 | 2021-05-25T18:29:38.000Z | 2021-08-03T17:04:29.000Z | swift_cloud_py/validate_safety_restrictions/validate.py | stijnfleuren/swift_cloud_api | 30f3b6c1fd80e5cfa5ce11e1daa08a09ab1e4e9b | [
"MIT"
] | null | null | null | swift_cloud_py/validate_safety_restrictions/validate.py | stijnfleuren/swift_cloud_api | 30f3b6c1fd80e5cfa5ce11e1daa08a09ab1e4e9b | [
"MIT"
] | null | null | null | from swift_cloud_py.entities.control_output.fixed_time_schedule import FixedTimeSchedule
from swift_cloud_py.entities.intersection.intersection import Intersection
from swift_cloud_py.validate_safety_restrictions.validate_bounds import validate_bounds
from swift_cloud_py.validate_safety_restrictions.validate_completene... | 67.555556 | 111 | 0.838268 | 223 | 1,824 | 6.556054 | 0.29148 | 0.06156 | 0.116279 | 0.076607 | 0.407661 | 0.374829 | 0.314637 | 0.314637 | 0.143639 | 0 | 0 | 0.001862 | 0.116776 | 1,824 | 26 | 112 | 70.153846 | 0.905649 | 0.272478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.5 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
39ad13fb0f9312898dcd01e19fe49f2a734c1783 | 58 | py | Python | pyjpboatrace/utils/__init__.py | miyamamoto/pyjpboatrace | fbc4a794d1f03e2ed7dfcafcb20c43098c1434a6 | [
"MIT"
] | null | null | null | pyjpboatrace/utils/__init__.py | miyamamoto/pyjpboatrace | fbc4a794d1f03e2ed7dfcafcb20c43098c1434a6 | [
"MIT"
] | null | null | null | pyjpboatrace/utils/__init__.py | miyamamoto/pyjpboatrace | fbc4a794d1f03e2ed7dfcafcb20c43098c1434a6 | [
"MIT"
] | null | null | null | from .str2num import str2num
__all__ = [
'str2num'
]
| 9.666667 | 28 | 0.655172 | 6 | 58 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.241379 | 58 | 5 | 29 | 11.6 | 0.704545 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 2 |
39ae3c36550302817294c61764f3350d2f47cf3d | 2,168 | py | Python | snippets/integers.py | rhishi/python-snippets | 60020d3a187d7687b38b6b58f74ceb03a37983b9 | [
"Apache-2.0"
] | null | null | null | snippets/integers.py | rhishi/python-snippets | 60020d3a187d7687b38b6b58f74ceb03a37983b9 | [
"Apache-2.0"
] | null | null | null | snippets/integers.py | rhishi/python-snippets | 60020d3a187d7687b38b6b58f74ceb03a37983b9 | [
"Apache-2.0"
] | null | null | null | import sys
# First: to understand the uses of "format" below, read these:
# Format String Syntax https://docs.python.org/2/library/string.html#formatstrings
# Format Specification Mini-Language https://docs.python.org/2/library/string.html#formatspec
# In Python 2, there are two integer types: int, long.
# int i... | 38.714286 | 95 | 0.652675 | 377 | 2,168 | 3.753316 | 0.374005 | 0.035336 | 0.045936 | 0.019788 | 0.20636 | 0.171025 | 0.171025 | 0.050883 | 0 | 0 | 0 | 0.075029 | 0.194649 | 2,168 | 55 | 96 | 39.418182 | 0.735395 | 0.646218 | 0 | 0.111111 | 0 | 0 | 0.258152 | 0 | 0 | 0 | 0.012228 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
39b6bd6353821651a0a01cf687e78a807a34d494 | 337 | py | Python | tests/base_test_case.py | caoziyao/orm | 24121b8b10910c121a5dff19c6fd9f25ec7f425c | [
"MIT"
] | 1 | 2016-10-30T14:41:39.000Z | 2016-10-30T14:41:39.000Z | tests/base_test_case.py | caoziyao/orm | 24121b8b10910c121a5dff19c6fd9f25ec7f425c | [
"MIT"
] | null | null | null | tests/base_test_case.py | caoziyao/orm | 24121b8b10910c121a5dff19c6fd9f25ec7f425c | [
"MIT"
] | null | null | null | # coding: utf-8
"""
@author: csy
@license: (C) Copyright 2017-2018
@contact: wyzycao@gmail.com
@time: 2018/11/22
@desc:
"""
import unittest
from orm.data_base import Database
class BaseTestCase(unittest.TestCase):
def setUp(self):
url = 'mysql://root:zy123456@localhost/wiki?charset=utf8'
self.db... | 18.722222 | 65 | 0.688427 | 46 | 337 | 5.021739 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085409 | 0.166172 | 337 | 17 | 66 | 19.823529 | 0.736655 | 0.341246 | 0 | 0 | 0 | 0 | 0.228972 | 0.228972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
39c42e302788d37384d6aba69dfd98df2d11d258 | 1,000 | py | Python | datasets/linear/parking/lr.py | diego1q2w/lregret | 823c7f609559d1012ed52f619b1aa1297d5f2517 | [
"Apache-2.0"
] | null | null | null | datasets/linear/parking/lr.py | diego1q2w/lregret | 823c7f609559d1012ed52f619b1aa1297d5f2517 | [
"Apache-2.0"
] | null | null | null | datasets/linear/parking/lr.py | diego1q2w/lregret | 823c7f609559d1012ed52f619b1aa1297d5f2517 | [
"Apache-2.0"
] | null | null | null | import os
from datetime import datetime
import time
import pandas as pd
from datasets.linear import LinearProblem
from regresion.linear.feature import PolFeatures
from regresion.linear.linear import LinearRegression
class ParkingProblem(LinearProblem):
def dataset_title(self) -> str:
return "Parking"
... | 29.411765 | 100 | 0.678 | 120 | 1,000 | 5.458333 | 0.533333 | 0.042748 | 0.058015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018727 | 0.199 | 1,000 | 33 | 101 | 30.30303 | 0.799001 | 0.062 | 0 | 0 | 0 | 0 | 0.091006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.35 | 0.05 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
39c714143377ff9b1982f6d7182df1f2ee8d4c39 | 244 | py | Python | output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_max_length_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_max_length_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_max_length_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.name.schema_instance.nistschema_sv_iv_atomic_name_max_length_1_xsd.nistschema_sv_iv_atomic_name_max_length_1 import NistschemaSvIvAtomicNameMaxLength1
__all__ = [
"NistschemaSvIvAtomicNameMaxLength1",
]
| 40.666667 | 186 | 0.889344 | 30 | 244 | 6.533333 | 0.633333 | 0.153061 | 0.142857 | 0.204082 | 0.346939 | 0.346939 | 0.346939 | 0.346939 | 0 | 0 | 0 | 0.017391 | 0.057377 | 244 | 5 | 187 | 48.8 | 0.834783 | 0 | 0 | 0 | 0 | 0 | 0.139344 | 0.139344 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 2 |
39cf488b67a5b1e7312e55ca067c9bf0bfbe9c6e | 156 | py | Python | receives/pytest.py | felixsch/receives | 0d149e3a24c0377ac60d502736299c9f4348244a | [
"MIT"
] | null | null | null | receives/pytest.py | felixsch/receives | 0d149e3a24c0377ac60d502736299c9f4348244a | [
"MIT"
] | null | null | null | receives/pytest.py | felixsch/receives | 0d149e3a24c0377ac60d502736299c9f4348244a | [
"MIT"
] | null | null | null |
import pytest
from receives.receiver import Receiver
@pytest.fixture
def receive():
receiver = Receiver()
yield receiver
receiver.finalize()
| 14.181818 | 38 | 0.730769 | 17 | 156 | 6.705882 | 0.588235 | 0.280702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 156 | 10 | 39 | 15.6 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
39d67d232e49de41fe6fece39a3376037a1fe5cc | 1,650 | py | Python | simulator/card_defs.py | NewLordVile/alphasheep | 2a86cf0009b686edafee8c80aa961d7075a5bd46 | [
"MIT"
] | 8 | 2019-11-25T22:05:58.000Z | 2022-01-19T23:48:39.000Z | simulator/card_defs.py | NewLordVile/alphasheep | 2a86cf0009b686edafee8c80aa961d7075a5bd46 | [
"MIT"
] | 5 | 2019-12-23T12:43:40.000Z | 2020-03-19T19:16:46.000Z | simulator/card_defs.py | NewLordVile/alphasheep | 2a86cf0009b686edafee8c80aa961d7075a5bd46 | [
"MIT"
] | 4 | 2020-03-14T21:25:29.000Z | 2022-01-27T22:59:31.000Z | """
Definitions for Card, Suit, Pip, etc.
WARN: DO NOT CHANGE THE ENUMS IN THIS FILE!
Changing the values might affect the ordering of the state/action space of agents, and will break compatibility with previously
saved model checkpoints.
"""
from enum import IntEnum
class Suit(IntEnum):
schellen = 0
herz =... | 23.571429 | 129 | 0.633333 | 250 | 1,650 | 4.044 | 0.484 | 0.039565 | 0.029674 | 0.047478 | 0.057369 | 0.057369 | 0.057369 | 0 | 0 | 0 | 0 | 0.023411 | 0.275152 | 1,650 | 69 | 130 | 23.913043 | 0.821906 | 0.349697 | 0 | 0.121951 | 0 | 0 | 0.006623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.02439 | 0.121951 | 0.707317 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
39ef2ca7f17378b96bb6865f18c59fdf8633759c | 680 | py | Python | src/nodeforge/StartEngine.py | nsk89/nodeforge | 51e798092cfaf52112cfdc96af359633741da799 | [
"BSD-3-Clause"
] | null | null | null | src/nodeforge/StartEngine.py | nsk89/nodeforge | 51e798092cfaf52112cfdc96af359633741da799 | [
"BSD-3-Clause"
] | 1 | 2018-10-21T05:30:32.000Z | 2018-10-31T05:53:18.000Z | src/nodeforge/StartEngine.py | nsk89/nodeforge | 51e798092cfaf52112cfdc96af359633741da799 | [
"BSD-3-Clause"
] | 2 | 2018-10-31T05:56:34.000Z | 2018-10-31T05:57:36.000Z | """
This file should be imported at the bottom of configure.py
TODO:
All of this may be moved into a single function in the future
so people can choose a reactor in configure.py
"""
from twisted.internet import reactor
from twisted.internet.task import LoopingCall
from threading import currentThread, Thread... | 29.565217 | 68 | 0.744118 | 98 | 680 | 5.163265 | 0.653061 | 0.043478 | 0.075099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003617 | 0.186765 | 680 | 23 | 68 | 29.565217 | 0.911392 | 0.457353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f2d47c8b76e7230c4405127adcd43ba0cfb587fd | 2,386 | py | Python | client/elementtype.py | Schille/weimar-graphstore | 76b47f98fba419ec6290628b56a202c60d8f2d46 | [
"MIT"
] | 2 | 2016-08-27T04:51:01.000Z | 2020-09-05T01:34:41.000Z | client/elementtype.py | Schille/weimar-graphstore | 76b47f98fba419ec6290628b56a202c60d8f2d46 | [
"MIT"
] | null | null | null | client/elementtype.py | Schille/weimar-graphstore | 76b47f98fba419ec6290628b56a202c60d8f2d46 | [
"MIT"
] | null | null | null | """
.. module:: elementtype.py
:platform: Linux
.. moduleauthor:: Michael Schilonka <michael@schilonka.de>
"""
import logging
class ElementType(object):
'''
The ElementType class is an in-memory representation of a graph element
type. It provides some functions to operate on all entities of the sam... | 24.854167 | 82 | 0.60855 | 270 | 2,386 | 5.114815 | 0.292593 | 0.055757 | 0.063722 | 0.072411 | 0.267922 | 0.230268 | 0.157857 | 0.157857 | 0.157857 | 0.157857 | 0 | 0 | 0.30637 | 2,386 | 95 | 83 | 25.115789 | 0.834441 | 0.344091 | 0 | 0.214286 | 0 | 0 | 0.009181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.071429 | 0.035714 | 0 | 0.607143 | 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 | 0 | 0 | 0 | 2 |
f2e440f4b6da4c3dc8c1545aee15d9066fc4d3f5 | 724 | py | Python | codility-python/util/test_strings.py | mforoni/codility | be5005e96612dd7bb33b88bb76a590d28084b032 | [
"MIT"
] | null | null | null | codility-python/util/test_strings.py | mforoni/codility | be5005e96612dd7bb33b88bb76a590d28084b032 | [
"MIT"
] | null | null | null | codility-python/util/test_strings.py | mforoni/codility | be5005e96612dd7bb33b88bb76a590d28084b032 | [
"MIT"
] | null | null | null | import unittest
import util.strings as strings
class TestStrings(unittest.TestCase):
def test_first_index_of(self):
self.assertEqual(1, strings.first_index_of('1', "0103003004"))
self.assertEqual(20, strings.first_index_of('f', "post this text on a form"))
def test_last_index_of(self):
... | 31.478261 | 97 | 0.686464 | 103 | 724 | 4.572816 | 0.330097 | 0.089172 | 0.076433 | 0.133758 | 0.473461 | 0.314225 | 0.18259 | 0.144374 | 0.144374 | 0.144374 | 0 | 0.078727 | 0.175414 | 724 | 22 | 98 | 32.909091 | 0.710218 | 0 | 0 | 0 | 0 | 0 | 0.176796 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f2e72fd64f8c76f1c9fc74fe2d074f594b42d146 | 215 | py | Python | src/output_module.py | abhishekpandeyIT/Virtual_Intelligent_Personal_Agent | 786261fbcf1468bcbaee9f6d17aea3f3cc06f81e | [
"Apache-2.0"
] | null | null | null | src/output_module.py | abhishekpandeyIT/Virtual_Intelligent_Personal_Agent | 786261fbcf1468bcbaee9f6d17aea3f3cc06f81e | [
"Apache-2.0"
] | null | null | null | src/output_module.py | abhishekpandeyIT/Virtual_Intelligent_Personal_Agent | 786261fbcf1468bcbaee9f6d17aea3f3cc06f81e | [
"Apache-2.0"
] | null | null | null | import assistantResume
from speak_module import speak
from database import speak_is_on
def output(o):
# For command line input
if speak_is_on():
speak(o)
print(assistantResume.name +": "+o+"\n") | 23.888889 | 44 | 0.702326 | 31 | 215 | 4.709677 | 0.612903 | 0.150685 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 215 | 9 | 44 | 23.888889 | 0.848837 | 0.102326 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f2f2ed4004131258cff5093c7d766ecf35ed6781 | 848 | py | Python | orders/migrations/0005_auto_20210619_0848.py | garrett-rh/Slice-of-a-Pizza | 0e30e3a27b0e65e77cd52db1ef7db0470dea7a3f | [
"MIT"
] | 2 | 2020-05-15T10:20:13.000Z | 2021-04-03T12:38:37.000Z | orders/migrations/0005_auto_20210619_0848.py | garrett-rh/Slice-of-a-Pizza | 0e30e3a27b0e65e77cd52db1ef7db0470dea7a3f | [
"MIT"
] | 2 | 2020-05-15T10:39:42.000Z | 2021-11-26T03:01:19.000Z | orders/migrations/0005_auto_20210619_0848.py | garrett-rh/Slice-of-a-Pizza | 0e30e3a27b0e65e77cd52db1ef7db0470dea7a3f | [
"MIT"
] | 1 | 2021-11-12T12:10:57.000Z | 2021-11-12T12:10:57.000Z | # Generated by Django 3.2.4 on 2021-06-19 08:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0004_auto_20210619_0847'),
]
operations = [
migrations.AlterField(
model_name='dinner_platters',
name='Top... | 29.241379 | 99 | 0.604953 | 84 | 848 | 5.964286 | 0.547619 | 0.11976 | 0.149701 | 0.173653 | 0.443114 | 0.359281 | 0.359281 | 0 | 0 | 0 | 0 | 0.050162 | 0.271226 | 848 | 28 | 100 | 30.285714 | 0.760518 | 0.053066 | 0 | 0.363636 | 1 | 0 | 0.191011 | 0.028714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f2f8aa778931cc06d7071bcf8a708498a3154677 | 5,244 | py | Python | cc_plugin_eustace/eustace_global_attrs.py | eustace-data/cc-plugin-eustace | 4b44d287433b632ea6f859cd72d5dd4b8c361cee | [
"BSD-2-Clause"
] | null | null | null | cc_plugin_eustace/eustace_global_attrs.py | eustace-data/cc-plugin-eustace | 4b44d287433b632ea6f859cd72d5dd4b8c361cee | [
"BSD-2-Clause"
] | null | null | null | cc_plugin_eustace/eustace_global_attrs.py | eustace-data/cc-plugin-eustace | 4b44d287433b632ea6f859cd72d5dd4b8c361cee | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""
cc_plugin_eustace.eustace_global_attrs
Compliance Test Suite: Check core global attributes in EUSTACE files
"""
import os
from netCDF4 import Dataset
# Import base objects from compliance checker
from compliance_checker.base import Result, BaseNCCheck, GenericFile
# Restrict which vocabs w... | 46.821429 | 153 | 0.474256 | 425 | 5,244 | 5.668235 | 0.291765 | 0.079701 | 0.07472 | 0.105853 | 0.618514 | 0.554172 | 0.554172 | 0.406393 | 0.203404 | 0.203404 | 0 | 0.017014 | 0.405988 | 5,244 | 111 | 154 | 47.243243 | 0.75634 | 0.045385 | 0 | 0.371795 | 0 | 0.012821 | 0.153954 | 0.014615 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0.012821 | 0.051282 | 0.192308 | 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 | 0 | 0 | 0 | 2 |
f2fc68a089e1541439b963f873f1136d0c533af5 | 705 | py | Python | final_project/machinetranslation/tests/tests.py | NicoFRizzo/xzceb-flask_eng_fr | 71c8a4c970e7a179f496ff0960d5fae2bba0ffc1 | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/tests/tests.py | NicoFRizzo/xzceb-flask_eng_fr | 71c8a4c970e7a179f496ff0960d5fae2bba0ffc1 | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/tests/tests.py | NicoFRizzo/xzceb-flask_eng_fr | 71c8a4c970e7a179f496ff0960d5fae2bba0ffc1 | [
"Apache-2.0"
] | null | null | null | import unittest
import translator
class TestTranslator(unittest.TestCase):
def test_one_e2f(self):
respopnse = translator.english_to_french('IBM Translator')
self.assertEqual(respopnse, 'Traducteur IBM')
def test_un_f2e(self):
respopnse = translator.french_to_english('Traducteur IB... | 32.045455 | 66 | 0.695035 | 77 | 705 | 6.051948 | 0.350649 | 0.060086 | 0.197425 | 0.128755 | 0.32618 | 0.32618 | 0 | 0 | 0 | 0 | 0 | 0.007117 | 0.202837 | 705 | 22 | 67 | 32.045455 | 0.822064 | 0 | 0 | 0 | 0 | 0 | 0.124646 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
840025939ea1c2adbcc0cc3524f18c7230eb6fad | 374 | py | Python | exercicios-python/ex031.py | anavesilva/python-introduction | d85fb9381e348262584fd2942e4818ee822adbe5 | [
"MIT"
] | null | null | null | exercicios-python/ex031.py | anavesilva/python-introduction | d85fb9381e348262584fd2942e4818ee822adbe5 | [
"MIT"
] | null | null | null | exercicios-python/ex031.py | anavesilva/python-introduction | d85fb9381e348262584fd2942e4818ee822adbe5 | [
"MIT"
] | null | null | null | # Custo da viagem
distancia = float(input('Qual a distância da sua viagem? '))
valor1 = distancia * 0.5
valor2 = distancia * 0.45
print('Você está prestes a começar uma viagem de {}Km/h.'.format(distancia))
if distancia <= 200:
print('O preço de sua passagem será de R${:.2f}.'.format(valor1))
else:
print('O pre... | 37.4 | 76 | 0.687166 | 61 | 374 | 4.213115 | 0.557377 | 0.077821 | 0.085603 | 0.101167 | 0.303502 | 0.303502 | 0.303502 | 0.303502 | 0.303502 | 0.303502 | 0 | 0.044728 | 0.163102 | 374 | 9 | 77 | 41.555556 | 0.776358 | 0.040107 | 0 | 0 | 0 | 0 | 0.456583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
840d5087c07149f28ccd99ef85cfdb7e07ab4198 | 1,005 | py | Python | src/deterministicpasswordgenerator/compile.py | jelford/deterministic-password-generator | ad839a2e0d82e1742227a686c248d2ad03ef2fc1 | [
"MIT"
] | 1 | 2016-08-22T22:48:50.000Z | 2016-08-22T22:48:50.000Z | src/deterministicpasswordgenerator/compile.py | jelford/deterministic-password-generator | ad839a2e0d82e1742227a686c248d2ad03ef2fc1 | [
"MIT"
] | null | null | null | src/deterministicpasswordgenerator/compile.py | jelford/deterministic-password-generator | ad839a2e0d82e1742227a686c248d2ad03ef2fc1 | [
"MIT"
] | null | null | null | import zipfile
from getpass import getpass
import os
import stat
import tempfile
from os import path
from .crypto import encrypt
def compile_ruleset(ruleset_path, ruleset_encryption_password=None, output_path=None):
output_path = output_path or os.getcwd()
ruleset_encryption_password = ruleset_encryption_pa... | 34.655172 | 120 | 0.769154 | 129 | 1,005 | 5.728682 | 0.356589 | 0.094723 | 0.135318 | 0.101489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001174 | 0.152239 | 1,005 | 28 | 121 | 35.892857 | 0.866197 | 0 | 0 | 0 | 0 | 0 | 0.060697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.2 | 0.35 | 0 | 0.4 | 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 | 0 | 0 | 0 | 2 |
8412473069d247b24941bba95ee50eaf3af4a33f | 521 | py | Python | tests/forked/test_update.py | rarity-adventure/rarity-names | e940b8bea296823faf003ecb9ab8735820ff54d1 | [
"MIT"
] | null | null | null | tests/forked/test_update.py | rarity-adventure/rarity-names | e940b8bea296823faf003ecb9ab8735820ff54d1 | [
"MIT"
] | null | null | null | tests/forked/test_update.py | rarity-adventure/rarity-names | e940b8bea296823faf003ecb9ab8735820ff54d1 | [
"MIT"
] | 2 | 2021-09-22T01:34:17.000Z | 2022-02-09T06:04:51.000Z | import brownie
def test_update(n1, barb, barb2, owner):
tx = n1.update_capitalization(1, "coNan", {'from': owner})
assert tx.events["NameUpdated"].values() == (1, "Conan", "coNan")
assert n1.summoner_name(1) == "coNan"
def test_update_fails(n1, barb, barb2, owner, accounts):
with brownie.reverts("!... | 32.5625 | 69 | 0.662188 | 67 | 521 | 5.044776 | 0.432836 | 0.071006 | 0.195266 | 0.204142 | 0.189349 | 0.189349 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.165067 | 521 | 16 | 70 | 32.5625 | 0.742529 | 0 | 0 | 0 | 0 | 0 | 0.17433 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.