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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a1b3de82b0cb02451c59c3a93b30506f022268a | 188 | py | Python | config/urls.py | laactech/django-security-headers-example | 86ea0b7209f8871c32100ada31fe00aa4a8e9f63 | [
"BSD-3-Clause"
] | 1 | 2019-10-09T22:08:27.000Z | 2019-10-09T22:08:27.000Z | config/urls.py | laactech/django-security-headers-example | 86ea0b7209f8871c32100ada31fe00aa4a8e9f63 | [
"BSD-3-Clause"
] | 7 | 2020-06-05T23:45:57.000Z | 2022-02-10T10:40:54.000Z | config/urls.py | laactech/django-security-headers-example | 86ea0b7209f8871c32100ada31fe00aa4a8e9f63 | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path
from django_security_headers_example.core.views import LandingPageView
urlpatterns = [
path("", view=LandingPageView.as_view(), name="landing_page"),
]
| 20.888889 | 70 | 0.776596 | 23 | 188 | 6.130435 | 0.73913 | 0.141844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 188 | 8 | 71 | 23.5 | 0.849398 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
28b3ccf3dc2b42165b93b678794b29f7f7e89aa1 | 545 | py | Python | calchas_datamodel/idExpression.py | s-i-newton/calchas-datamodel | eda5e2de37849d6d4766cd680bc75fec8e923f85 | [
"Apache-2.0"
] | null | null | null | calchas_datamodel/idExpression.py | s-i-newton/calchas-datamodel | eda5e2de37849d6d4766cd680bc75fec8e923f85 | [
"Apache-2.0"
] | 2 | 2017-06-01T14:14:09.000Z | 2017-06-20T10:01:13.000Z | calchas_datamodel/idExpression.py | s-i-newton/calchas | 13472f837605eff26010a28af9981ba8750e9af9 | [
"Apache-2.0"
] | null | null | null | from .abstractExpression import AbstractExpression
from typing import TypeVar
T = TypeVar('T')
class IdExpression(AbstractExpression):
def __init__(self, id_: T):
self.id = id_
def __repr__(self) -> str:
return str(self.id)
def __eq__(self, other) -> bool:
if self is other:
... | 20.961538 | 50 | 0.60367 | 67 | 545 | 4.626866 | 0.373134 | 0.116129 | 0.058065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.300917 | 545 | 25 | 51 | 21.8 | 0.813648 | 0 | 0 | 0 | 0 | 0 | 0.001835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.111111 | 0.166667 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
28d465fa30e0433de2c84494a0e0f5ac46a9f8f7 | 1,978 | py | Python | src/adage/decorators.py | lukasheinrich/dagger | 353c15cd97ff5150eff128f34cf1666c78826524 | [
"MIT"
] | 31 | 2018-07-12T10:33:39.000Z | 2021-12-01T22:49:42.000Z | src/adage/decorators.py | lukasheinrich/dagger | 353c15cd97ff5150eff128f34cf1666c78826524 | [
"MIT"
] | 10 | 2021-02-15T20:13:43.000Z | 2022-02-03T00:48:34.000Z | src/adage/decorators.py | lukasheinrich/dagger | 353c15cd97ff5150eff128f34cf1666c78826524 | [
"MIT"
] | 3 | 2019-05-31T18:04:15.000Z | 2021-08-23T12:00:18.000Z | import functools
def adageop(func):
"""
Decorator that adds a 's' attribute to a function
The attribute can be used to partially define
the function call, except for the 'adageobj'
keyword argument, the return value is a
single-argument ('adageobj') function
"""
def partial(*args,**kwar... | 30.90625 | 92 | 0.664307 | 262 | 1,978 | 4.992366 | 0.358779 | 0.030581 | 0.025994 | 0.03211 | 0.220183 | 0.220183 | 0.220183 | 0.220183 | 0.220183 | 0.220183 | 0 | 0 | 0.255308 | 1,978 | 63 | 93 | 31.396825 | 0.887984 | 0.371082 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.323529 | false | 0.029412 | 0.088235 | 0.147059 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e904784d726457730b96e531625f80ef01e860f9 | 906 | py | Python | test/top.py | persianpros/transmissionrpc | 5e6a8487ca7684459ef9d3b375b207535ae2b9dd | [
"MIT"
] | null | null | null | test/top.py | persianpros/transmissionrpc | 5e6a8487ca7684459ef9d3b375b207535ae2b9dd | [
"MIT"
] | null | null | null | test/top.py | persianpros/transmissionrpc | 5e6a8487ca7684459ef9d3b375b207535ae2b9dd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# 2013-03, Erik Svensson <erik.public@gmail.com>
# Licensed under the MIT license.
import unittest
import transmissionrpc
class TopTest(unittest.TestCase):
def testConstants(self):
self.assertTrue(isinstance(transmissionrpc.__author__, str))
self.assertTrue(isin... | 39.391304 | 142 | 0.738411 | 87 | 906 | 7.229885 | 0.471264 | 0.133545 | 0.228935 | 0.372019 | 0.36725 | 0.155803 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.155629 | 906 | 22 | 143 | 41.181818 | 0.810458 | 0.110375 | 0 | 0 | 0 | 0 | 0.008974 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e9225ac8234cba226c9c33772de98e2d065d77b6 | 349 | py | Python | chapter2/bandit.py | mtrazzi/understanding-rl | 83a9b7608c805189a39b4ef81893f6ebe982f9e1 | [
"MIT"
] | 95 | 2020-04-26T12:36:07.000Z | 2020-05-02T13:23:47.000Z | chapter2/bandit.py | 3outeille/rl-book-challenge | b02595b0aec3e9632ef5d9814e925384931089bd | [
"MIT"
] | 2 | 2020-09-24T20:29:29.000Z | 2021-11-27T11:17:45.000Z | chapter2/bandit.py | 3outeille/rl-book-challenge | b02595b0aec3e9632ef5d9814e925384931089bd | [
"MIT"
] | 15 | 2020-04-27T04:10:02.000Z | 2020-04-30T21:42:04.000Z | import numpy as np
class Bandit:
def __init__(self, k=10, mean=0):
self.k = k
self.q = np.random.randn(k) + mean
self.old_q = [q_val for q_val in self.q] # copy
def max_action(self):
return np.argmax(self.q)
def reward(self, action):
return np.random.normal(self.q[action])
def reset(se... | 19.388889 | 52 | 0.638968 | 63 | 349 | 3.396825 | 0.444444 | 0.116822 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.226361 | 349 | 17 | 53 | 20.529412 | 0.781481 | 0.011461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3a8e21c35da0565b1474e19643e2481a81691a35 | 14,317 | py | Python | utils/lists.py | luciano1337/legion-bot | 022d1ef9eb77a26b57929f800dd55770206f8852 | [
"MIT"
] | null | null | null | utils/lists.py | luciano1337/legion-bot | 022d1ef9eb77a26b57929f800dd55770206f8852 | [
"MIT"
] | null | null | null | utils/lists.py | luciano1337/legion-bot | 022d1ef9eb77a26b57929f800dd55770206f8852 | [
"MIT"
] | null | null | null | pozehug = [
'https://media1.tenor.com/images/4d89d7f963b41a416ec8a55230dab31b/tenor.gif?itemid=5166500',
'https://media1.tenor.com/images/c7efda563983124a76d319813155bd8e/tenor.gif?itemid=15900664',
'https://media1.tenor.com/images/daffa3b7992a08767168614178cce7d6/tenor.gif?itemid=15249774',
'https://media1.... | 91.775641 | 1,661 | 0.777607 | 2,339 | 14,317 | 4.758444 | 0.415562 | 0.03558 | 0.051752 | 0.061456 | 0.120934 | 0.014106 | 0.007907 | 0 | 0 | 0 | 0 | 0.089014 | 0.145491 | 14,317 | 155 | 1,662 | 92.367742 | 0.820745 | 0 | 0 | 0 | 0 | 0.233766 | 0.938255 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3a8feafe3391c0ddd2f78fb39a9371d4374c0a73 | 1,441 | py | Python | netlog_viewer/netlog_viewer_build/netlog_viewer_dev_server_config.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | netlog_viewer/netlog_viewer_build/netlog_viewer_dev_server_config.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | netlog_viewer/netlog_viewer_build/netlog_viewer_dev_server_config.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 698 | 2015-06-02T19:18:35.000Z | 2022-03-29T16:57:15.000Z | # Copyright (c) 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import os
import netlog_viewer_project
import webapp2
from webapp2 import Route
def _RelPathToUnixPath(p):
return p.replace(os.sep, '/'... | 26.2 | 72 | 0.727967 | 170 | 1,441 | 6.029412 | 0.476471 | 0.070244 | 0.074146 | 0.105366 | 0.207805 | 0.12 | 0.12 | 0 | 0 | 0 | 0 | 0.005887 | 0.174879 | 1,441 | 54 | 73 | 26.685185 | 0.856182 | 0.199167 | 0 | 0 | 0 | 0 | 0.077661 | 0.021815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.030303 | 0.151515 | 0.181818 | 0.69697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3aac3f6414867b633dea9c7d45394cdd79f87b50 | 39 | py | Python | cont.py | peterkimutai/continue1 | fe6dd88f6beeb0a93a41deef942d753b0d914cbc | [
"Unlicense"
] | null | null | null | cont.py | peterkimutai/continue1 | fe6dd88f6beeb0a93a41deef942d753b0d914cbc | [
"Unlicense"
] | null | null | null | cont.py | peterkimutai/continue1 | fe6dd88f6beeb0a93a41deef942d753b0d914cbc | [
"Unlicense"
] | null | null | null |
i="meee"
u="you"
print(i," and ",u)
| 5.571429 | 18 | 0.487179 | 8 | 39 | 2.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 39 | 6 | 19 | 6.5 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3ab8056bbcfb11d7cb0f257beb6843279b5e80cf | 86 | py | Python | reliabilipy/__init__.py | rafaelvalero/omegapy | 5cc6288f9b0d6101de87229ce0f3a392ff3d1e8a | [
"MIT"
] | 1 | 2022-01-08T20:46:43.000Z | 2022-01-08T20:46:43.000Z | reliabilipy/__init__.py | rafaelvalero/omegapy | 5cc6288f9b0d6101de87229ce0f3a392ff3d1e8a | [
"MIT"
] | null | null | null | reliabilipy/__init__.py | rafaelvalero/omegapy | 5cc6288f9b0d6101de87229ce0f3a392ff3d1e8a | [
"MIT"
] | null | null | null | from ._reliabili import reliability_analysis
__all__ = [
"reliability_analysis",
] | 21.5 | 44 | 0.77907 | 8 | 86 | 7.5 | 0.75 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 86 | 4 | 45 | 21.5 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.229885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3aba1d78d37e1173705ea143efeb8730018f6cb1 | 1,296 | py | Python | pynasqm/trajectories/get_reference_job.py | PotentialParadox/pynasqm | 1bd51299b6ca7f8229d8a15428515d53a358903c | [
"MIT"
] | 1 | 2020-03-13T22:34:03.000Z | 2020-03-13T22:34:03.000Z | pynasqm/trajectories/get_reference_job.py | PotentialParadox/pynasqm | 1bd51299b6ca7f8229d8a15428515d53a358903c | [
"MIT"
] | null | null | null | pynasqm/trajectories/get_reference_job.py | PotentialParadox/pynasqm | 1bd51299b6ca7f8229d8a15428515d53a358903c | [
"MIT"
] | null | null | null | from functools import singledispatch
from pynasqm.trajectories.fluorescence import Fluorescence
from pynasqm.trajectories.absorption import Absorption
@singledispatch
def get_reference_job(traj_data):
raise NotImplementedError(f"traj_data type not supported by get_refer\n"\
f"{traj_da... | 35.027027 | 91 | 0.765432 | 178 | 1,296 | 5.179775 | 0.213483 | 0.164859 | 0.058568 | 0.110629 | 0.71692 | 0.603037 | 0.455531 | 0.455531 | 0.455531 | 0.455531 | 0 | 0 | 0.157407 | 1,296 | 36 | 92 | 36 | 0.844322 | 0 | 0 | 0.363636 | 0 | 0 | 0.152006 | 0.01929 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.181818 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3ac1c768c158dc838dfae0e6094464208e94f0f5 | 434 | py | Python | feature_generation/normalize/rolling_mean.py | s0lvang/ideal-pancake | f7a55f622b02b03a987d74cfdff1c51288bfb657 | [
"MIT"
] | 6 | 2020-09-22T06:54:51.000Z | 2021-03-25T05:38:05.000Z | feature_generation/normalize/rolling_mean.py | s0lvang/ideal-pancake | f7a55f622b02b03a987d74cfdff1c51288bfb657 | [
"MIT"
] | 12 | 2020-09-21T13:20:49.000Z | 2021-04-07T08:01:12.000Z | feature_generation/normalize/rolling_mean.py | s0lvang/ideal-pancake | f7a55f622b02b03a987d74cfdff1c51288bfb657 | [
"MIT"
] | null | null | null | def rolling_mean(data):
return [take_rolling_mean(df) for df in data]
def take_rolling_mean(df):
window = 20
columns_to_take_rolling_mean = [
"pupil_diameter",
"saccade_duration",
"duration",
"saccade_length",
]
for column in columns_to_take_rolling_mean:
df... | 25.529412 | 67 | 0.645161 | 57 | 434 | 4.614035 | 0.421053 | 0.209125 | 0.228137 | 0.193916 | 0.18251 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.24424 | 434 | 16 | 68 | 27.125 | 0.795732 | 0.048387 | 0 | 0 | 0 | 0 | 0.16545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.076923 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3aef79b3128b41665021c29aae4c84fa02130963 | 246 | py | Python | tests/test-config.py | kjdoyle/elyra | bfb79a8e84c85b7d0f39bb168224aed69dbbd808 | [
"Apache-2.0"
] | 2 | 2020-05-23T11:21:31.000Z | 2020-06-03T22:52:09.000Z | tests/test-config.py | kjdoyle/elyra | bfb79a8e84c85b7d0f39bb168224aed69dbbd808 | [
"Apache-2.0"
] | null | null | null | tests/test-config.py | kjdoyle/elyra | bfb79a8e84c85b7d0f39bb168224aed69dbbd808 | [
"Apache-2.0"
] | 1 | 2020-05-17T15:19:13.000Z | 2020-05-17T15:19:13.000Z | c.Session.debug = True
c.LabApp.token = 'test'
c.LabApp.open_browser = False
c.NotebookApp.port_retries = 0
c.LabApp.workspaces_dir = './build/cypress-tests'
c.FileContentsManager.root_dir = './build/cypress-tests'
c.LabApp.quit_button = False
| 30.75 | 56 | 0.764228 | 37 | 246 | 4.945946 | 0.621622 | 0.153005 | 0.163934 | 0.218579 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004484 | 0.093496 | 246 | 7 | 57 | 35.142857 | 0.816144 | 0 | 0 | 0 | 0 | 0 | 0.186992 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aafb1cf5d24f222fa6f06ff100c89a778fe48350 | 179 | py | Python | accounts/urls.py | Julmgc/Course-Organizer | b383f2845474314186a2ac6589885af890889da8 | [
"MIT"
] | null | null | null | accounts/urls.py | Julmgc/Course-Organizer | b383f2845474314186a2ac6589885af890889da8 | [
"MIT"
] | null | null | null | accounts/urls.py | Julmgc/Course-Organizer | b383f2845474314186a2ac6589885af890889da8 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import UserLogin, UserRegister
urlpatterns = [
path("accounts/", UserRegister.as_view()),
path("login/", UserLogin.as_view()),
]
| 22.375 | 46 | 0.709497 | 21 | 179 | 5.952381 | 0.619048 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145251 | 179 | 7 | 47 | 25.571429 | 0.816993 | 0 | 0 | 0 | 0 | 0 | 0.083799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
aafefeb23bc5b42fc6c15fe4bf23b8763287d5b4 | 357 | py | Python | carbontracker/predictor.py | leondz/carbontracker | f8b4542f4a0f803d053401b53a3cc367281b31a9 | [
"MIT"
] | 186 | 2020-05-02T20:51:48.000Z | 2022-03-30T09:33:44.000Z | carbontracker/predictor.py | johnjdailey/carbontracker | 1c9307b5fc2a408667f3a19c12c2b45be08354b2 | [
"MIT"
] | 43 | 2020-05-10T12:44:26.000Z | 2022-03-09T11:12:11.000Z | carbontracker/predictor.py | johnjdailey/carbontracker | 1c9307b5fc2a408667f3a19c12c2b45be08354b2 | [
"MIT"
] | 10 | 2020-05-04T11:20:04.000Z | 2022-02-16T03:02:39.000Z | import numpy as np
# TODO: Do advanced prediction based on profiling work.
def predict_energy(total_epochs, epoch_energy_usages):
avg_epoch_energy = np.mean(epoch_energy_usages)
return total_epochs * avg_epoch_energy
def predict_time(total_epochs, epoch_times):
avg_epoch_time = np.mean(epoch_times)
... | 27.461538 | 55 | 0.792717 | 54 | 357 | 4.87037 | 0.444444 | 0.1673 | 0.121673 | 0.152091 | 0.190114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148459 | 357 | 12 | 56 | 29.75 | 0.865132 | 0.148459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c909851fe73dcfad421fb6354ea395215029d6a8 | 689 | py | Python | tests/test-vext-pth.py | NomAnor/vext | adea4b593ae4c82da0965ec1addaa1cd6d5b396c | [
"MIT"
] | 62 | 2015-03-25T15:56:38.000Z | 2021-01-07T21:32:27.000Z | tests/test-vext-pth.py | NomAnor/vext | adea4b593ae4c82da0965ec1addaa1cd6d5b396c | [
"MIT"
] | 73 | 2015-02-13T16:02:31.000Z | 2021-01-17T19:35:10.000Z | tests/test-vext-pth.py | NomAnor/vext | adea4b593ae4c82da0965ec1addaa1cd6d5b396c | [
"MIT"
] | 8 | 2016-01-24T16:16:46.000Z | 2020-09-23T17:56:47.000Z | import os
import unittest
from vext.install import DEFAULT_PTH_CONTENT
class TestVextPTH(unittest.TestCase):
# Preliminary test, that verifies that
def test_can_exec_pth_content(self):
# Stub test, verify lines starting with 'import' in the pth can
# be exec'd and doesn't raise any exceptions... | 28.708333 | 73 | 0.683599 | 92 | 689 | 4.913043 | 0.586957 | 0.088496 | 0.112832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245283 | 689 | 23 | 74 | 29.956522 | 0.869231 | 0.37881 | 0 | 0 | 0 | 0 | 0.054502 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c916bd42a9f49b86089b3c70e101b95ec26db97d | 198 | py | Python | Lecture 28/Lecture28HWAssignment4.py | AtharvaJoshi21/PythonPOC | 6b95eb5bab7b28e9811e43b39e863faf2ee7565b | [
"MIT"
] | 1 | 2019-04-27T15:37:04.000Z | 2019-04-27T15:37:04.000Z | Lecture 28/Lecture28HWAssignment4.py | AtharvaJoshi21/PythonPOC | 6b95eb5bab7b28e9811e43b39e863faf2ee7565b | [
"MIT"
] | null | null | null | Lecture 28/Lecture28HWAssignment4.py | AtharvaJoshi21/PythonPOC | 6b95eb5bab7b28e9811e43b39e863faf2ee7565b | [
"MIT"
] | 1 | 2020-08-14T06:57:08.000Z | 2020-08-14T06:57:08.000Z | # WAP to accept a filename from user and print all words starting with capital letters.
def main():
inputFilePath = input("Please enter file name: ")
if __name__ == "__main__":
main() | 24.75 | 87 | 0.686869 | 27 | 198 | 4.740741 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 198 | 8 | 88 | 24.75 | 0.831169 | 0.429293 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9195aa10c6d748883a1b2125a3a031fa6170f06 | 1,380 | py | Python | deluca/envs/lung/__init__.py | AlexanderJYu/deluca | 9e8b0d84d2eb0a58ff82a951b42881bdb2dc9f00 | [
"Apache-2.0"
] | null | null | null | deluca/envs/lung/__init__.py | AlexanderJYu/deluca | 9e8b0d84d2eb0a58ff82a951b42881bdb2dc9f00 | [
"Apache-2.0"
] | null | null | null | deluca/envs/lung/__init__.py | AlexanderJYu/deluca | 9e8b0d84d2eb0a58ff82a951b42881bdb2dc9f00 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 32.857143 | 76 | 0.695652 | 212 | 1,380 | 4.462264 | 0.5 | 0.063425 | 0.042283 | 0.033827 | 0.071882 | 0.071882 | 0.071882 | 0.071882 | 0.071882 | 0 | 0 | 0.021505 | 0.191304 | 1,380 | 41 | 77 | 33.658537 | 0.825269 | 0.478986 | 0 | 0 | 0 | 0 | 0.027221 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c93112ec790fae5b416d3ab6e0ee349a48489f55 | 49,239 | py | Python | FBDParser/charmaps/symbols.py | jonix6/fbdparser | 617a79bf9062092e4fa971bbd66da02cd9d45124 | [
"MIT"
] | 7 | 2021-03-15T08:43:56.000Z | 2022-01-09T11:56:43.000Z | FBDParser/charmaps/symbols.py | jonix6/fbdparser | 617a79bf9062092e4fa971bbd66da02cd9d45124 | [
"MIT"
] | null | null | null | FBDParser/charmaps/symbols.py | jonix6/fbdparser | 617a79bf9062092e4fa971bbd66da02cd9d45124 | [
"MIT"
] | 3 | 2021-09-07T09:40:16.000Z | 2022-01-11T10:32:23.000Z | # -*- coding: utf-8 -*-
def gb2unicode_simple(x):
a, b = (x & 0xFF00) >> 8, x & 0x00FF
if 0xAA <= a <= 0xAF and 0xA1 <= b <= 0xFE:
return 0xE000 + (a - 0xAA) * 0x5E + b - 0xA1
elif 0xA1 <= a <= 0xA7 and (0x40 <= b <= 0x7E or 0x80 <= b <= 0xA0):
return 0xE4C6 + (a - 0xA1) * 0x60 + (0x3F + b ... | 28.744308 | 88 | 0.518268 | 6,110 | 49,239 | 4.314894 | 0.772177 | 0.000303 | 0.000455 | 0.000303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.334979 | 0.333394 | 49,239 | 1,712 | 89 | 28.761098 | 0.439326 | 0.220232 | 0 | 0.020996 | 0 | 0 | 0.001686 | 0 | 0 | 0 | 0.532759 | 0 | 0 | 1 | 0.0024 | false | 0 | 0 | 0.0006 | 0.006599 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9544ffadc07ec885bd33e7c84ffb14a0d5a171b | 555 | py | Python | puzzles/easy/puzzle8e.py | mhw32/Code-Boola-Python-Workshop | 08bc551b173ff372a267592f58586adb52c582e3 | [
"MIT"
] | null | null | null | puzzles/easy/puzzle8e.py | mhw32/Code-Boola-Python-Workshop | 08bc551b173ff372a267592f58586adb52c582e3 | [
"MIT"
] | null | null | null | puzzles/easy/puzzle8e.py | mhw32/Code-Boola-Python-Workshop | 08bc551b173ff372a267592f58586adb52c582e3 | [
"MIT"
] | null | null | null | # ------------------------------------
# CODE BOOLA 2015 PYTHON WORKSHOP
# Mike Wu, Jonathan Chang, Kevin Tan
# Puzzle Challenges Number 8
# ------------------------------------
# INSTRUCTIONS:
# Write a function that takes an integer
# as its argument and converts it to a
# string. Return the first character of
... | 21.346154 | 46 | 0.585586 | 75 | 555 | 4.333333 | 0.76 | 0.064615 | 0.055385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038031 | 0.194595 | 555 | 25 | 47 | 22.2 | 0.689038 | 0.881081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c973d138beb4bdeb8b96079770c98d55a9dad08e | 693 | py | Python | app/ZeroKnowledge/bbs.py | MilkyBoat/AttriChain | ad3a7e5cc58e4add21ffd289d925f73e3367210b | [
"MIT"
] | 5 | 2020-07-10T21:00:28.000Z | 2022-02-23T01:41:01.000Z | app/ZeroKnowledge/bbs.py | MilkyBoat/AttriChain | ad3a7e5cc58e4add21ffd289d925f73e3367210b | [
"MIT"
] | null | null | null | app/ZeroKnowledge/bbs.py | MilkyBoat/AttriChain | ad3a7e5cc58e4add21ffd289d925f73e3367210b | [
"MIT"
] | 4 | 2020-09-13T14:31:45.000Z | 2022-03-23T04:06:38.000Z | from ZeroKnowledge import primality
import random
def goodPrime(p):
return p % 4 == 3 and primality.probablyPrime(p, accuracy=100)
def findGoodPrime(numBits=512):
candidate = 1
while not goodPrime(candidate):
candidate = random.getrandbits(numBits)
return candidate
def makeModulus(numBits=5... | 21 | 66 | 0.685426 | 87 | 693 | 5.367816 | 0.528736 | 0.12848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056261 | 0.204906 | 693 | 32 | 67 | 21.65625 | 0.791289 | 0 | 0 | 0 | 0 | 0 | 0.011544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.181818 | 0.636364 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c977bbeabde9764661a77f5cb005a889127439bd | 534 | py | Python | yeti/core/entities/malware.py | Darkheir/TibetanBrownBear | c3843daa4f84730e733c2dde1cda7739e6cdad8e | [
"Apache-2.0"
] | 9 | 2018-01-15T22:44:24.000Z | 2021-05-28T11:13:03.000Z | yeti/core/entities/malware.py | Darkheir/TibetanBrownBear | c3843daa4f84730e733c2dde1cda7739e6cdad8e | [
"Apache-2.0"
] | 140 | 2018-01-12T10:07:47.000Z | 2021-08-02T23:03:49.000Z | yeti/core/entities/malware.py | Darkheir/TibetanBrownBear | c3843daa4f84730e733c2dde1cda7739e6cdad8e | [
"Apache-2.0"
] | 11 | 2018-01-16T19:49:35.000Z | 2022-01-18T16:30:34.000Z | """Detail Yeti's Malware object structure."""
from .entity import Entity
class Malware(Entity):
"""Malware Yeti object.
Extends the Malware STIX2 definition.
"""
_collection_name = 'entities'
type = 'malware'
@property
def name(self):
return self._stix_object.name
@property... | 19.777778 | 50 | 0.683521 | 62 | 534 | 5.693548 | 0.451613 | 0.093484 | 0.11898 | 0.152975 | 0.203966 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.224719 | 534 | 26 | 51 | 20.538462 | 0.850242 | 0.185393 | 0 | 0.214286 | 0 | 0 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.214286 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c979df9649b375b708736b82938ddd72a6f161b7 | 161 | py | Python | Retired/How many times mentioned.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | Retired/How many times mentioned.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | Retired/How many times mentioned.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | from collections import Counter
def count_mentioned(con,names):
con=con.lower()
res=[con.count(i.lower()) for i in names]
return res if res else None | 32.2 | 45 | 0.714286 | 27 | 161 | 4.222222 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180124 | 161 | 5 | 46 | 32.2 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a32929c2bf6ce5c743f0108e1a7c3d364e872fd0 | 299 | py | Python | server/entities/log_group.py | thulio/watchlogs | 17469f77851ce0cab916c472f9f508790b6157bf | [
"MIT"
] | 1 | 2019-12-30T16:32:47.000Z | 2019-12-30T16:32:47.000Z | server/entities/log_group.py | thulio/watchlogs | 17469f77851ce0cab916c472f9f508790b6157bf | [
"MIT"
] | null | null | null | server/entities/log_group.py | thulio/watchlogs | 17469f77851ce0cab916c472f9f508790b6157bf | [
"MIT"
] | null | null | null | class LogGroup(object):
def __init__(self, name, streams=None):
self.name = name
self.streams = streams
@classmethod
def from_dict(cls, group_dict):
return LogGroup(group_dict['logGroupName'])
def __eq__(self, other):
return self.name == other.name
| 24.916667 | 51 | 0.64214 | 36 | 299 | 5.027778 | 0.5 | 0.132597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250836 | 299 | 11 | 52 | 27.181818 | 0.808036 | 0 | 0 | 0 | 0 | 0 | 0.040134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a364c15aa063e5f5b9ce9b053b0dc00b7991aba9 | 45 | py | Python | config.py | grimpy/glunit | ed8b8fabc8539abe94a9bf93418b95d006283066 | [
"MIT"
] | null | null | null | config.py | grimpy/glunit | ed8b8fabc8539abe94a9bf93418b95d006283066 | [
"MIT"
] | null | null | null | config.py | grimpy/glunit | ed8b8fabc8539abe94a9bf93418b95d006283066 | [
"MIT"
] | 1 | 2019-03-02T12:32:40.000Z | 2019-03-02T12:32:40.000Z | GITLAB_URL = "XXXXXX"
GITLAB_TOKEN = "XXXXX"
| 15 | 22 | 0.733333 | 6 | 45 | 5.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 45 | 2 | 23 | 22.5 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.244444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a37f3e393c9a970f74e1fb50bf59be6bc0954abc | 504 | py | Python | scripts/tests/snapshots/snap_etc_test.py | Duroktar/Wolf | c192d5c27eb2098e440f7726eb1bff40ed004db5 | [
"Apache-2.0"
] | 105 | 2018-02-07T22:07:47.000Z | 2022-03-31T18:16:47.000Z | scripts/tests/snapshots/snap_etc_test.py | Duroktar/Wolf | c192d5c27eb2098e440f7726eb1bff40ed004db5 | [
"Apache-2.0"
] | 57 | 2018-02-07T23:07:41.000Z | 2021-11-21T17:14:06.000Z | scripts/tests/snapshots/snap_etc_test.py | Duroktar/Wolf | c192d5c27eb2098e440f7726eb1bff40ed004db5 | [
"Apache-2.0"
] | 10 | 2018-02-24T23:44:51.000Z | 2022-03-02T07:52:27.000Z | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['test_etc 1'] = '[{"lineno": 2, "value": "tup = (1, 2, 3)"}, {"lineno": 3, "source": ["tup\\n"], "value": "(1, 2, 3)"}, {"lineno": 5, "value":... | 45.818182 | 335 | 0.56746 | 67 | 504 | 4.179104 | 0.567164 | 0.121429 | 0.021429 | 0.064286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046296 | 0.142857 | 504 | 10 | 336 | 50.4 | 0.601852 | 0.123016 | 0 | 0 | 0 | 0.25 | 0.722096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a396f80d3df39bc129b954b6343810b69c00e0ea | 291 | py | Python | weldx/tags/measurement/source.py | CagtayFabry/weldx | 463f949d4fa54b5edafa2268cb862716865a62c2 | [
"BSD-3-Clause"
] | 13 | 2020-02-20T07:45:02.000Z | 2021-12-10T13:15:47.000Z | weldx/tags/measurement/source.py | BAMWelDX/weldx | ada4e67fa00cdb80a0b954057f4e685b846c9fe5 | [
"BSD-3-Clause"
] | 675 | 2020-02-20T07:47:00.000Z | 2022-03-31T15:17:19.000Z | weldx/tags/measurement/source.py | CagtayFabry/weldx | 463f949d4fa54b5edafa2268cb862716865a62c2 | [
"BSD-3-Clause"
] | 5 | 2020-09-02T07:19:17.000Z | 2021-12-05T08:57:50.000Z | from weldx.asdf.util import dataclass_serialization_class
from weldx.measurement import SignalSource
__all__ = ["SignalSource", "SignalSourceConverter"]
SignalSourceConverter = dataclass_serialization_class(
class_type=SignalSource, class_name="measurement/source", version="0.1.0"
)
| 29.1 | 77 | 0.821306 | 31 | 291 | 7.387097 | 0.580645 | 0.078603 | 0.235808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011321 | 0.089347 | 291 | 9 | 78 | 32.333333 | 0.85283 | 0 | 0 | 0 | 0 | 0 | 0.19244 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a3a546b361a588aac685878f310be185f371649f | 538 | py | Python | pypxl/errors.py | Kile/pypxl | 0aabe5492386bffc1e246100cb55448bbac521ec | [
"MIT"
] | 1 | 2021-04-02T09:05:33.000Z | 2021-04-02T09:05:33.000Z | pypxl/errors.py | Kile/pypxl | 0aabe5492386bffc1e246100cb55448bbac521ec | [
"MIT"
] | null | null | null | pypxl/errors.py | Kile/pypxl | 0aabe5492386bffc1e246100cb55448bbac521ec | [
"MIT"
] | null | null | null | class PxlapiException(Exception):
"""
The base exception for anything related to pypxl
"""
pass
class InvalidFlag(PxlapiException):
pass
class InvalidFilter(PxlapiException):
pass
class InvalidEyes(PxlapiException):
pass
class TooManyCharacters(PxlapiException):
pass
class InvalidSa... | 18.551724 | 75 | 0.728625 | 52 | 538 | 7.538462 | 0.519231 | 0.160714 | 0.306122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204461 | 538 | 29 | 76 | 18.551724 | 0.915888 | 0.223048 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6e5f8bfb8859c97984af510e67f81278396d3ad6 | 277 | py | Python | 1 ano/logica-de-programacao/list-telefone-lucio.py | ThiagoPereira232/tecnico-informatica | 6b55ecf34501b38052943acf1b37074e3472ce6e | [
"MIT"
] | 1 | 2021-09-24T16:26:04.000Z | 2021-09-24T16:26:04.000Z | 1 ano/logica-de-programacao/list-telefone-lucio.py | ThiagoPereira232/tecnico-informatica | 6b55ecf34501b38052943acf1b37074e3472ce6e | [
"MIT"
] | null | null | null | 1 ano/logica-de-programacao/list-telefone-lucio.py | ThiagoPereira232/tecnico-informatica | 6b55ecf34501b38052943acf1b37074e3472ce6e | [
"MIT"
] | null | null | null | n = [0,0,0,0,0,0,0,0,0,0]
t = [0,0,0,0,0,0,0,0,0,0]
c=0
while(c<10):
n[c]=input("Digite o nome")
t[c]=input("Digite o telefone")
c+=1
const=""
while(const!="fim"):
cons=input("Digite nome a consultar")
if(n[c]==const):
print(f"TEl: {t[c]}")
c+=1 | 21.307692 | 41 | 0.516245 | 62 | 277 | 2.306452 | 0.33871 | 0.251748 | 0.335664 | 0.391608 | 0.13986 | 0.13986 | 0.13986 | 0.13986 | 0.13986 | 0.13986 | 0 | 0.113122 | 0.202166 | 277 | 13 | 42 | 21.307692 | 0.533937 | 0 | 0 | 0.153846 | 0 | 0 | 0.241007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e710c139901b3edb6aaa6a1f60ac54de8da8353 | 209 | py | Python | mrq_monitor.py | HyokaChen/violet | b89ddb4f909c2a40e76d89b665949e55086a7a80 | [
"Apache-2.0"
] | 1 | 2020-07-29T15:49:35.000Z | 2020-07-29T15:49:35.000Z | mrq_monitor.py | HyokaChen/violet | b89ddb4f909c2a40e76d89b665949e55086a7a80 | [
"Apache-2.0"
] | 1 | 2019-12-19T10:19:57.000Z | 2019-12-19T11:15:28.000Z | mrq_monitor.py | EmptyChan/violet | b89ddb4f909c2a40e76d89b665949e55086a7a80 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created with IntelliJ IDEA.
Description:
User: jinhuichen
Date: 3/28/2018 4:17 PM
Description:
"""
from mrq.dashboard.app import main
if __name__ == '__main__':
main() | 16.076923 | 34 | 0.650718 | 28 | 209 | 4.571429 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065476 | 0.196172 | 209 | 13 | 35 | 16.076923 | 0.696429 | 0.569378 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6e74495ac01d11fb500db642fc48819334b6af0a | 140 | py | Python | k8s/the-project/kubeless/ok-func.py | cjimti/mk | b303e147da77776baf5fee337e356ebeccbe2c01 | [
"MIT"
] | 1 | 2019-04-18T09:52:48.000Z | 2019-04-18T09:52:48.000Z | k8s/the-project/kubeless/ok-func.py | cjimti/mk | b303e147da77776baf5fee337e356ebeccbe2c01 | [
"MIT"
] | null | null | null | k8s/the-project/kubeless/ok-func.py | cjimti/mk | b303e147da77776baf5fee337e356ebeccbe2c01 | [
"MIT"
] | null | null | null | import requests
def ok(event, context):
url = "http://ok:8080/"
response = requests.request("GET", url)
return response.text
| 15.555556 | 43 | 0.65 | 18 | 140 | 5.055556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.207143 | 140 | 8 | 44 | 17.5 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6e824c90d5cc97b09e96bf2d9fa8d40cff2f3778 | 1,797 | py | Python | goatools/gosubdag/utils.py | camiloaruiz/goatools | 3da97251ccb6c5e90b616c3f625513f8aba5aa10 | [
"BSD-2-Clause"
] | null | null | null | goatools/gosubdag/utils.py | camiloaruiz/goatools | 3da97251ccb6c5e90b616c3f625513f8aba5aa10 | [
"BSD-2-Clause"
] | null | null | null | goatools/gosubdag/utils.py | camiloaruiz/goatools | 3da97251ccb6c5e90b616c3f625513f8aba5aa10 | [
"BSD-2-Clause"
] | null | null | null | """Small lightweight utilities used frequently in GOATOOLS."""
__copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang, All rights reserved."
__author__ = "DV Klopfenstein"
def extract_kwargs(args, exp_keys, exp_elems):
"""Return user-specified keyword args in a dictionary and a set (for True/False ite... | 41.790698 | 94 | 0.668893 | 289 | 1,797 | 4.010381 | 0.207612 | 0.041415 | 0.038827 | 0.051769 | 0.788611 | 0.735979 | 0.712683 | 0.695427 | 0.695427 | 0.695427 | 0 | 0.014793 | 0.247635 | 1,797 | 42 | 95 | 42.785714 | 0.842456 | 0.342237 | 0 | 0.571429 | 0 | 0 | 0.079654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e82b8d1720684c00d864fb512765fbff3379ce5 | 309 | py | Python | nicos_ess/ymir/setups/forwarder.py | ebadkamil/nicos | 0355a970d627aae170c93292f08f95759c97f3b5 | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-03-26T10:30:45.000Z | 2021-03-26T10:30:45.000Z | nicos_ess/ymir/setups/forwarder.py | ebadkamil/nicos | 0355a970d627aae170c93292f08f95759c97f3b5 | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_ess/ymir/setups/forwarder.py | ebadkamil/nicos | 0355a970d627aae170c93292f08f95759c97f3b5 | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 3 | 2020-08-04T18:35:05.000Z | 2021-04-16T11:22:08.000Z | description = 'Monitors the status of the Forwarder'
devices = dict(
KafkaForwarder=device(
'nicos_ess.devices.forwarder.EpicsKafkaForwarder',
description='Monitors the status of the Forwarder',
statustopic='UTGARD_forwarderStatus',
brokers=['172.30.242.20:9092']),
)
| 30.9 | 59 | 0.68932 | 32 | 309 | 6.59375 | 0.6875 | 0.180095 | 0.208531 | 0.265403 | 0.398104 | 0.398104 | 0.398104 | 0 | 0 | 0 | 0 | 0.056911 | 0.203884 | 309 | 9 | 60 | 34.333333 | 0.800813 | 0 | 0 | 0 | 0 | 0 | 0.514563 | 0.223301 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e942a1e8c0fd4f03d779fd36629d8f97651ff14 | 364 | py | Python | tests/tfgraph/utils/test_datasets.py | tfgraph/tfgraph | 19ae968b3060275c631dc601757646abaf1f58a1 | [
"Apache-2.0"
] | 4 | 2017-07-23T13:48:35.000Z | 2021-12-03T18:11:50.000Z | tests/tfgraph/utils/test_datasets.py | tfgraph/tfgraph | 19ae968b3060275c631dc601757646abaf1f58a1 | [
"Apache-2.0"
] | 21 | 2017-07-23T13:15:20.000Z | 2020-09-28T02:13:11.000Z | tests/tfgraph/utils/test_datasets.py | tfgraph/tfgraph | 19ae968b3060275c631dc601757646abaf1f58a1 | [
"Apache-2.0"
] | 1 | 2017-07-28T10:28:04.000Z | 2017-07-28T10:28:04.000Z | import tfgraph
def test_data_sets_naive_4():
assert tfgraph.DataSets.naive_4().shape == (8, 2)
def test_data_sets_naive_6():
assert tfgraph.DataSets.naive_6().shape == (9, 2)
def test_data_sets_compose():
assert tfgraph.DataSets.compose_from_path("./datasets/wiki-Vote/wiki-Vote.csv",
... | 24.266667 | 81 | 0.653846 | 51 | 364 | 4.372549 | 0.45098 | 0.09417 | 0.147982 | 0.201794 | 0.255605 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.211538 | 364 | 14 | 82 | 26 | 0.728223 | 0 | 0 | 0 | 0 | 0 | 0.093407 | 0.093407 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.375 | true | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ea886c1faad67e0969ccc2de41ff81ea08b3480 | 196 | py | Python | app/forms.py | haibincoder/DjangoTensorflow | 7fc606fa5121f0c48d7c8e649775094d86e6387a | [
"MIT"
] | 17 | 2018-07-21T04:14:09.000Z | 2022-03-09T08:32:49.000Z | app/forms.py | haibincoder/DjangoTensorflow | 7fc606fa5121f0c48d7c8e649775094d86e6387a | [
"MIT"
] | 24 | 2020-01-28T22:11:42.000Z | 2022-03-11T23:47:43.000Z | app/forms.py | haibincoder/DjangoTensorflow | 7fc606fa5121f0c48d7c8e649775094d86e6387a | [
"MIT"
] | 7 | 2018-12-13T08:55:07.000Z | 2021-06-26T08:08:01.000Z | from django import forms
#from app.models import Image
# class ImageForm(forms.ModelForm):
# class Meta:
# model = Image
# name = ['name']
# location = ['location']
| 17.818182 | 35 | 0.591837 | 21 | 196 | 5.52381 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290816 | 196 | 10 | 36 | 19.6 | 0.834532 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6ecdc7cb0a885b814b6a6f30cd78f9066a128b3b | 381 | py | Python | flask_miracle/__init__.py | tdpsk/flask-miracle-acl | 426a9845854678d00108cf5f91ada9323968b524 | [
"BSD-2-Clause"
] | 2 | 2018-01-17T15:57:38.000Z | 2018-02-06T00:03:16.000Z | flask_miracle/__init__.py | tdpsk/flask-miracle-acl | 426a9845854678d00108cf5f91ada9323968b524 | [
"BSD-2-Clause"
] | null | null | null | flask_miracle/__init__.py | tdpsk/flask-miracle-acl | 426a9845854678d00108cf5f91ada9323968b524 | [
"BSD-2-Clause"
] | null | null | null | '''
flask_miracle
-------------
This module provides a fabric layer between the Flask framework and the
Miracle ACL library.
:copyright: (c) 2017 by Timo Puschkasch.
:license: BSD, see LICENSE for more details.
'''
from .base import Acl
from .functions import check_all, check_any, set_current_... | 27.214286 | 75 | 0.716535 | 53 | 381 | 4.981132 | 0.716981 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.191601 | 381 | 13 | 76 | 29.307692 | 0.844156 | 0.543307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6ecf4bd8dbec5f43c3a5dbb66ff367208ec1e14c | 73 | py | Python | virustotal_intelligence/__init__.py | elastic/opencti-connector-vti | 52bd6e8c40a8b96f34316b87d4550f308844abbe | [
"Apache-2.0"
] | 1 | 2022-02-11T13:36:11.000Z | 2022-02-11T13:36:11.000Z | virustotal_intelligence/__init__.py | elastic/opencti-connector-vti | 52bd6e8c40a8b96f34316b87d4550f308844abbe | [
"Apache-2.0"
] | null | null | null | virustotal_intelligence/__init__.py | elastic/opencti-connector-vti | 52bd6e8c40a8b96f34316b87d4550f308844abbe | [
"Apache-2.0"
] | null | null | null | __version__ = "5.1.3"
LOGGER_NAME = "connector.virustotal_intelligence"
| 18.25 | 49 | 0.780822 | 9 | 73 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.09589 | 73 | 3 | 50 | 24.333333 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.520548 | 0.452055 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ed16212d719203dc9c8b385ee044edff5accf55 | 205 | py | Python | html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 8 | 2019-04-09T21:13:05.000Z | 2021-11-23T17:25:18.000Z | html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 21 | 2021-03-31T19:48:22.000Z | 2022-03-12T00:24:53.000Z | html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 11 | 2019-04-12T01:20:16.000Z | 2021-11-23T17:25:02.000Z | import time
def main(request, response):
delay = float(request.GET.first("ms", 500))
time.sleep(delay / 1E3);
return [("Content-type", "text/javascript")], "export let delayedLoaded = true;"
| 25.625 | 84 | 0.663415 | 26 | 205 | 5.230769 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02924 | 0.165854 | 205 | 7 | 85 | 29.285714 | 0.766082 | 0 | 0 | 0 | 0 | 0 | 0.297561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6ed9b7c639af766ee8c222459a703935071b14fd | 1,625 | py | Python | shuttl/Storage.py | shuttl-io/shuttl-cms | 50c85db0de42e901c371561270be6425cc65eccc | [
"MIT"
] | 2 | 2017-06-26T18:06:58.000Z | 2017-10-11T21:45:29.000Z | shuttl/Storage.py | shuttl-io/shuttl-cms | 50c85db0de42e901c371561270be6425cc65eccc | [
"MIT"
] | null | null | null | shuttl/Storage.py | shuttl-io/shuttl-cms | 50c85db0de42e901c371561270be6425cc65eccc | [
"MIT"
] | null | null | null | import boto3 as aws
import botocore
from shuttl import app
## Class for AWS S3 storage
class Storage:
bucket = None ##< the bucket the file belongs to
s3 = aws.resource("s3") ##< The s3 instance
@classmethod
def GetBucket(cls, bucketName):
try:
cls.bucket = cls.s3.Bucket(bucketN... | 28.508772 | 93 | 0.603692 | 167 | 1,625 | 5.862275 | 0.305389 | 0.110317 | 0.122574 | 0.163432 | 0.546476 | 0.482125 | 0.482125 | 0.42288 | 0.210419 | 0.210419 | 0 | 0.007143 | 0.310769 | 1,625 | 56 | 94 | 29.017857 | 0.866964 | 0.044923 | 0 | 0.604167 | 0 | 0 | 0.051133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.208333 | 0.0625 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6edbba4a74356991de5aa46330579ce20ab0026e | 245 | py | Python | Controller/hone_control.py | pupeng/hone | 8fb2618a51478049c73158f1d54e7165a37dffcf | [
"BSD-3-Clause"
] | 5 | 2017-02-18T12:39:13.000Z | 2021-03-29T09:21:58.000Z | Controller/hone_control.py | pupeng/hone | 8fb2618a51478049c73158f1d54e7165a37dffcf | [
"BSD-3-Clause"
] | null | null | null | Controller/hone_control.py | pupeng/hone | 8fb2618a51478049c73158f1d54e7165a37dffcf | [
"BSD-3-Clause"
] | 7 | 2015-08-12T10:08:21.000Z | 2018-08-30T12:55:25.000Z | # Copyright (c) 2011-2013 Peng Sun. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the COPYRIGHT file.
# hone_control.py
# a placeholder file for any control jobs HONE runtime generates
| 35 | 72 | 0.767347 | 42 | 245 | 4.452381 | 0.880952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039801 | 0.179592 | 245 | 6 | 73 | 40.833333 | 0.890547 | 0.95102 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e17097d88bd49914581f2dfe02ed8fa34bee9d4 | 254 | py | Python | backend/authentication/admin.py | jklewis99/hypertriviation | e12be87e978505fb3a73f4fc606173f41a3aee81 | [
"MIT"
] | 1 | 2022-03-27T19:39:07.000Z | 2022-03-27T19:39:07.000Z | backend/authentication/admin.py | jklewis99/hypertriviation | e12be87e978505fb3a73f4fc606173f41a3aee81 | [
"MIT"
] | 5 | 2022-03-27T19:32:54.000Z | 2022-03-31T23:25:44.000Z | backend/authentication/admin.py | jklewis99/hypertriviation | e12be87e978505fb3a73f4fc606173f41a3aee81 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import HypertriviationUser
class HypertriviationUserAdmin(admin.ModelAdmin):
model = HypertriviationUser
# Register your models here.
admin.site.register(HypertriviationUser, HypertriviationUserAdmin) | 25.4 | 66 | 0.838583 | 24 | 254 | 8.875 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106299 | 254 | 10 | 66 | 25.4 | 0.938326 | 0.102362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6e18dbf82c0ab208ca098975575465ec97248c7b | 269 | py | Python | backend/validators/authorization_val.py | NelsonM9/senaSoft | d72b5ed32b86a53aac962ec440d84ecce4555780 | [
"Apache-2.0"
] | null | null | null | backend/validators/authorization_val.py | NelsonM9/senaSoft | d72b5ed32b86a53aac962ec440d84ecce4555780 | [
"Apache-2.0"
] | null | null | null | backend/validators/authorization_val.py | NelsonM9/senaSoft | d72b5ed32b86a53aac962ec440d84ecce4555780 | [
"Apache-2.0"
] | null | null | null | from marshmallow import validate, fields, Schema
class AuthorizationVal(Schema):
id_auth = fields.Str(required=True, validator=validate.Length(max=10))
id_o = fields.Str(required=True, validator=validate.Length(max=10))
file_a = fields.Raw(required=True)
| 38.428571 | 74 | 0.758364 | 37 | 269 | 5.432432 | 0.567568 | 0.179104 | 0.169154 | 0.208955 | 0.487562 | 0.487562 | 0.487562 | 0.487562 | 0.487562 | 0 | 0 | 0.016949 | 0.122677 | 269 | 6 | 75 | 44.833333 | 0.834746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6e2ec7ad4cbde5fb55995e9127da176c9b74eb60 | 167 | py | Python | app/config.py | akabbeke/sd44_server | 7755567c7b273a5ac23b2aacc52477dd4a11d290 | [
"MIT"
] | null | null | null | app/config.py | akabbeke/sd44_server | 7755567c7b273a5ac23b2aacc52477dd4a11d290 | [
"MIT"
] | null | null | null | app/config.py | akabbeke/sd44_server | 7755567c7b273a5ac23b2aacc52477dd4a11d290 | [
"MIT"
] | null | null | null | import yaml
import os
config_file = os.path.join(os.path.dirname(__file__), "config/config.yml")
with open(config_file, 'r') as stream:
CONFIG = yaml.load(stream) | 27.833333 | 74 | 0.736527 | 27 | 167 | 4.333333 | 0.555556 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11976 | 167 | 6 | 75 | 27.833333 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6e362218fdee0a3ed3f2a33dd6f1acddc1fd9111 | 106 | py | Python | native_shortuuid/apps.py | foundertherapy/django-nativeshortuuidfield | 47e5a5d5c0f4caedbadb88ed6ac279f513ae522a | [
"MIT"
] | 5 | 2020-09-30T00:21:05.000Z | 2022-01-10T08:56:47.000Z | native_shortuuid/apps.py | foundertherapy/django-nativeshortuuidfield | 47e5a5d5c0f4caedbadb88ed6ac279f513ae522a | [
"MIT"
] | 1 | 2020-03-11T15:39:44.000Z | 2020-03-11T15:39:44.000Z | native_shortuuid/apps.py | foundertherapy/django-nativeshortuuidfield | 47e5a5d5c0f4caedbadb88ed6ac279f513ae522a | [
"MIT"
] | 1 | 2021-03-03T12:49:52.000Z | 2021-03-03T12:49:52.000Z | from django.apps import AppConfig
class NativeShortuuidConfig(AppConfig):
name = 'native_shortuuid'
| 17.666667 | 39 | 0.792453 | 11 | 106 | 7.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 106 | 5 | 40 | 21.2 | 0.912088 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6e3ac431c3e1e4eb2271fa87cec379de652a2355 | 588 | py | Python | tests/tests/test_analysis/test_utils.py | klavinslab/coral | 17f59591211562a59a051f474cd6cecba4829df9 | [
"MIT"
] | 34 | 2015-12-26T22:13:51.000Z | 2021-11-17T11:46:37.000Z | tests/tests/test_analysis/test_utils.py | klavinslab/coral | 17f59591211562a59a051f474cd6cecba4829df9 | [
"MIT"
] | 13 | 2015-09-11T23:27:51.000Z | 2018-06-25T20:44:28.000Z | tests/tests/test_analysis/test_utils.py | klavinslab/coral | 17f59591211562a59a051f474cd6cecba4829df9 | [
"MIT"
] | 14 | 2015-10-08T17:08:48.000Z | 2022-02-22T04:25:54.000Z | '''
Tests for utils submodule of the analysis module.
'''
from nose.tools import assert_equal, assert_raises
from coral import analysis, DNA, RNA, Peptide
def test_utils():
test_DNA = DNA('ATAGCGATACGAT')
test_RNA = RNA('AUGCGAUAGCGAU')
test_peptide = Peptide('msvkkkpvqg')
test_str = 'msvkkkpvgq'
... | 29.4 | 71 | 0.748299 | 77 | 588 | 5.467532 | 0.376623 | 0.104513 | 0.199525 | 0.23753 | 0.353919 | 0.285036 | 0.285036 | 0 | 0 | 0 | 0 | 0 | 0.139456 | 588 | 19 | 72 | 30.947368 | 0.832016 | 0.083333 | 0 | 0 | 0 | 0 | 0.111321 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e4d07aff129e622dcf6a63b48636b52ecc07cc1 | 74 | py | Python | python/828.unique-letter-string.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/828.unique-letter-string.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/828.unique-letter-string.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def uniqueLetterString(self, S: str) -> int:
| 18.5 | 48 | 0.608108 | 8 | 74 | 5.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283784 | 74 | 3 | 49 | 24.666667 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e4dee90bdd936152cb862e03942c4be61d9a3e5 | 249 | py | Python | 2.datatype/1.number_typecasting.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | 2.datatype/1.number_typecasting.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | 2.datatype/1.number_typecasting.py | Tazri/Python | f7ca625800229c8a7e20b64810d6e162ccb6b09f | [
"DOC"
] | null | null | null | number_int = int("32");
number_float= float(32);
number_complex = complex(3222342332432435435345324435324523423);
print(type(number_int),": ",number_int);
print(type(number_float),": ",number_float);
print(type(number_complex),": ",number_complex); | 35.571429 | 64 | 0.767068 | 30 | 249 | 6.066667 | 0.266667 | 0.148352 | 0.247253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174468 | 0.056225 | 249 | 7 | 65 | 35.571429 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6e535cb6e52945115eb6d7ac8b6103b52efc86b8 | 92 | py | Python | app_kasir/apps.py | rizkyarwn/projectkasir | 6524a052bcb52534524db1c5fba05d31a0f0d801 | [
"MIT"
] | 2 | 2018-06-28T10:52:47.000Z | 2018-06-28T10:52:48.000Z | app_kasir/apps.py | rizkyarwn/projectkasir | 6524a052bcb52534524db1c5fba05d31a0f0d801 | [
"MIT"
] | null | null | null | app_kasir/apps.py | rizkyarwn/projectkasir | 6524a052bcb52534524db1c5fba05d31a0f0d801 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AppKasirConfig(AppConfig):
name = 'app_kasir'
| 15.333333 | 33 | 0.76087 | 11 | 92 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 34 | 18.4 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2819b274258b4f59c03325199e582718bece2d5e | 536 | py | Python | edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/__init__.py | BeeGroup-cimne/module_edinet | 0cda52e9d6222a681f85567e9bf0f7e5885ebf5e | [
"MIT"
] | null | null | null | edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/__init__.py | BeeGroup-cimne/module_edinet | 0cda52e9d6222a681f85567e9bf0f7e5885ebf5e | [
"MIT"
] | 13 | 2021-03-25T22:24:38.000Z | 2022-03-12T00:56:45.000Z | edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/__init__.py | BeeGroup-cimne/module_edinet | 0cda52e9d6222a681f85567e9bf0f7e5885ebf5e | [
"MIT"
] | 1 | 2019-03-13T09:49:56.000Z | 2019-03-13T09:49:56.000Z | from constantMonthlyModel import ConstantMonthlyModel
from constantModel import ConstantModel
from twoParameterModel import TwoParameterModel
from threeParameterModel import ThreeParameterModel
from anyModel import AnyModelFactory
from schoolModel import SchoolModel, SchoolModelFactory
from recurrentModel import Recurr... | 44.666667 | 64 | 0.902985 | 48 | 536 | 10.083333 | 0.395833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089552 | 536 | 11 | 65 | 48.727273 | 0.991803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
284932efb61177d76bc830e6f9381821ff06ec7e | 997 | py | Python | classes/migrations/0007_auto_20201206_1223.py | henrylameck/school_management_system | 38c270977d001d28f2338eb90fffc3e8c2598d06 | [
"MIT"
] | null | null | null | classes/migrations/0007_auto_20201206_1223.py | henrylameck/school_management_system | 38c270977d001d28f2338eb90fffc3e8c2598d06 | [
"MIT"
] | 3 | 2021-06-05T00:01:48.000Z | 2021-09-22T19:39:12.000Z | classes/migrations/0007_auto_20201206_1223.py | henrylameck/school_management_system | 38c270977d001d28f2338eb90fffc3e8c2598d06 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-12-06 09:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('classes', '0006_auto_20201205_2224'),
]
operations = [
migrations.RemoveField(
model_name='classsyllabus',
name='compo... | 26.236842 | 53 | 0.563691 | 83 | 997 | 6.674699 | 0.46988 | 0.081227 | 0.198556 | 0.234657 | 0.570397 | 0.50722 | 0.427798 | 0.427798 | 0.427798 | 0.427798 | 0 | 0.044709 | 0.326981 | 997 | 37 | 54 | 26.945946 | 0.780924 | 0.043129 | 0 | 0.580645 | 1 | 0 | 0.143908 | 0.02416 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2853e0d7d747d6c3288b88732191d861e6eecd97 | 427 | py | Python | scipy/ndimage/tests/__init__.py | Ennosigaeon/scipy | 2d872f7cf2098031b9be863ec25e366a550b229c | [
"BSD-3-Clause"
] | 9,095 | 2015-01-02T18:24:23.000Z | 2022-03-31T20:35:31.000Z | scipy/ndimage/tests/__init__.py | Ennosigaeon/scipy | 2d872f7cf2098031b9be863ec25e366a550b229c | [
"BSD-3-Clause"
] | 11,500 | 2015-01-01T01:15:30.000Z | 2022-03-31T23:07:35.000Z | scipy/ndimage/tests/__init__.py | Ennosigaeon/scipy | 2d872f7cf2098031b9be863ec25e366a550b229c | [
"BSD-3-Clause"
] | 5,838 | 2015-01-05T11:56:42.000Z | 2022-03-31T23:21:19.000Z |
from __future__ import annotations
from typing import List, Type
import numpy
# list of numarray data types
integer_types: List[Type] = [
numpy.int8, numpy.uint8, numpy.int16, numpy.uint16,
numpy.int32, numpy.uint32, numpy.int64, numpy.uint64]
float_types: List[Type] = [numpy.float32, numpy.float64]
comple... | 26.6875 | 63 | 0.754098 | 59 | 427 | 5.305085 | 0.457627 | 0.127796 | 0.166134 | 0.172524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.138173 | 427 | 15 | 64 | 28.466667 | 0.788043 | 0.063232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
285a8bab289bfb8c666439b93d30129bb0e1ff4e | 2,076 | py | Python | src/network/topology.py | joelwanner/smtax | 7d46f02cb3f15f2057022c574e0f3a8e5236d647 | [
"MIT"
] | null | null | null | src/network/topology.py | joelwanner/smtax | 7d46f02cb3f15f2057022c574e0f3a8e5236d647 | [
"MIT"
] | null | null | null | src/network/topology.py | joelwanner/smtax | 7d46f02cb3f15f2057022c574e0f3a8e5236d647 | [
"MIT"
] | null | null | null | from network.route import *
class Host(object):
def __init__(self, name, r, s, a=1):
self.name = name
self.receiving_cap = r
self.sending_cap = s
self.amp_factor = a
self.links = []
def add_link(self, l):
self.links.append(l)
def __str__(self):
if... | 23.590909 | 102 | 0.560694 | 292 | 2,076 | 3.684932 | 0.226027 | 0.052045 | 0.051115 | 0.047398 | 0.173792 | 0.123606 | 0.107807 | 0.074349 | 0.074349 | 0.074349 | 0 | 0.01174 | 0.302505 | 2,076 | 87 | 103 | 23.862069 | 0.731354 | 0.023603 | 0 | 0.131148 | 0 | 0 | 0.038025 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.245902 | false | 0 | 0.032787 | 0.081967 | 0.557377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
285ef9691cdce93a606e382f9fdd9a1cebb1c5b6 | 232 | py | Python | views.py | Rexypoo/shortnsweet | e773f01f2fdd6630b8d649232b48a753aa387c4f | [
"Apache-2.0"
] | null | null | null | views.py | Rexypoo/shortnsweet | e773f01f2fdd6630b8d649232b48a753aa387c4f | [
"Apache-2.0"
] | null | null | null | views.py | Rexypoo/shortnsweet | e773f01f2fdd6630b8d649232b48a753aa387c4f | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import get_object_or_404, redirect, render
from .models import ShortURL
def redirect_alias(request, short_name):
shorturl = get_object_or_404(ShortURL, alias=short_name)
return redirect(shorturl.url)
| 29 | 64 | 0.806034 | 33 | 232 | 5.393939 | 0.575758 | 0.101124 | 0.123596 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029557 | 0.125 | 232 | 7 | 65 | 33.142857 | 0.847291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
286195dbc7f21dde0f07a4dbc6375c32996ea510 | 561 | py | Python | oppadc/osutimingpoint.py | jamuwu/oppadc.py | 3faca744143575f0a4f12f213745b0f311973526 | [
"MIT"
] | 8 | 2019-11-01T00:03:52.000Z | 2021-01-02T18:33:31.000Z | oppadc/osutimingpoint.py | jamuwu/oppadc.py | 3faca744143575f0a4f12f213745b0f311973526 | [
"MIT"
] | 7 | 2019-12-16T16:29:07.000Z | 2021-02-22T01:01:22.000Z | oppadc/osutimingpoint.py | jamuwu/oppadc.py | 3faca744143575f0a4f12f213745b0f311973526 | [
"MIT"
] | 9 | 2019-12-16T21:58:21.000Z | 2022-02-02T12:18:45.000Z | class OsuTimingPoint(object):
"""
representats a timingpoint in osu
if change is False:
ms_per_beat = -100.0 * bpm_multiplier
"""
def __init__(self, starttime:float or str=0.0, ms_per_beat:float or str=-100.0, change:bool=False):
self.starttime:float = float(starttime)
self.ms_per_beat:float = float(ms_... | 29.526316 | 128 | 0.71836 | 87 | 561 | 4.229885 | 0.402299 | 0.067935 | 0.122283 | 0.076087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022774 | 0.139037 | 561 | 18 | 129 | 31.166667 | 0.73913 | 0.178253 | 0 | 0 | 0 | 0.111111 | 0.256637 | 0.121681 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
286ba9afaaf93ad96524d8cf507a1bf2ad30a104 | 2,862 | py | Python | port_mapping.py | sbalasa/CiscoFMC | 024c9b6df3513e1e4a8e3e3f976a0c67b58c1909 | [
"MIT"
] | 1 | 2021-11-09T03:56:29.000Z | 2021-11-09T03:56:29.000Z | port_mapping.py | sbalasa/CiscoFMC | 024c9b6df3513e1e4a8e3e3f976a0c67b58c1909 | [
"MIT"
] | null | null | null | port_mapping.py | sbalasa/CiscoFMC | 024c9b6df3513e1e4a8e3e3f976a0c67b58c1909 | [
"MIT"
] | 1 | 2021-11-09T03:56:06.000Z | 2021-11-09T03:56:06.000Z | ports = {
"ssh": {"type": "PortLiteral", "port": "22", "protocol": "6",},
"udp/netbios-dgm": {"type": "PortLiteral", "port": "138", "protocol": "17",},
"udp/netbios-ns": {"type": "PortLiteral", "port": "137", "protocol": "17",},
"tcp/ssh": {"type": "PortLiteral", "port": "22", "protocol": "6",},
... | 57.24 | 82 | 0.490217 | 279 | 2,862 | 5.028674 | 0.175627 | 0.395581 | 0.4469 | 0.094084 | 0.776907 | 0.755524 | 0.513899 | 0.275125 | 0.162509 | 0.162509 | 0 | 0.062904 | 0.189029 | 2,862 | 49 | 83 | 58.408163 | 0.541577 | 0 | 0 | 0.22449 | 0 | 0 | 0.50551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
28846fa1c1e9c7ab3ae95eddc73455be7f366a02 | 196 | py | Python | Source Code/web/backend/files_app/fileapi/urls.py | creosB/Virtual-pdf-library | edb334b16dfd0d3c616683f6fbb370e54f489560 | [
"CC0-1.0"
] | 11 | 2021-12-20T01:51:56.000Z | 2022-01-01T10:17:47.000Z | Source Code/web/backend/files_app/fileapi/urls.py | creosB/Virtual-pdf-library | edb334b16dfd0d3c616683f6fbb370e54f489560 | [
"CC0-1.0"
] | null | null | null | Source Code/web/backend/files_app/fileapi/urls.py | creosB/Virtual-pdf-library | edb334b16dfd0d3c616683f6fbb370e54f489560 | [
"CC0-1.0"
] | 1 | 2021-12-21T08:47:56.000Z | 2021-12-21T08:47:56.000Z | from django.urls import path
from .views import FileList, FileDetail
urlpatterns = [
path('',FileList.as_view()),
path('<int:pk>/',FileDetail.as_view()), # individual items from django
] | 24.5 | 74 | 0.704082 | 25 | 196 | 5.44 | 0.6 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147959 | 196 | 8 | 75 | 24.5 | 0.814371 | 0.142857 | 0 | 0 | 0 | 0 | 0.053892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
288fb0e62147ed4c6a19e3faeb3476a5404525aa | 270 | py | Python | rasterio/errors.py | clembou/rasterio | 57169c31dae04e1319b4c4b607345475a7122910 | [
"BSD-3-Clause"
] | null | null | null | rasterio/errors.py | clembou/rasterio | 57169c31dae04e1319b4c4b607345475a7122910 | [
"BSD-3-Clause"
] | null | null | null | rasterio/errors.py | clembou/rasterio | 57169c31dae04e1319b4c4b607345475a7122910 | [
"BSD-3-Clause"
] | null | null | null | """A module of errors."""
class RasterioIOError(IOError):
"""A failure to open a dataset using the presently registered drivers."""
class RasterioDriverRegistrationError(ValueError):
"""To be raised when, eg, _gdal.GDALGetDriverByName("MEM") returns NULL"""
| 27 | 78 | 0.733333 | 31 | 270 | 6.354839 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144444 | 270 | 9 | 79 | 30 | 0.852814 | 0.577778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
95419b554583bc803a43eac8c57ec34a913022a2 | 626 | py | Python | app/models/encryption.py | janaSunrise/ZeroCOM | 7197684ce708f080fe215b0a6e57c12836e4c0ab | [
"Apache-2.0"
] | 6 | 2021-03-27T08:58:04.000Z | 2021-05-23T17:07:09.000Z | app/models/encryption.py | janaSunrise/ZeroCOM | 7197684ce708f080fe215b0a6e57c12836e4c0ab | [
"Apache-2.0"
] | 2 | 2021-05-30T08:06:53.000Z | 2021-06-02T17:02:06.000Z | app/models/encryption.py | janaSunrise/ZeroCOM | 7197684ce708f080fe215b0a6e57c12836e4c0ab | [
"Apache-2.0"
] | null | null | null | import rsa
class RSA:
@classmethod
def generate_keys(cls, size: int = 512) -> tuple:
return rsa.newkeys(size)
@classmethod
def export_key_pkcs1(cls, public_key: rsa.PublicKey, format: str = "PEM") -> bytes:
return rsa.PublicKey.save_pkcs1(public_key, format=format)
@classmethod
... | 31.3 | 106 | 0.693291 | 83 | 626 | 5.036145 | 0.385542 | 0.133971 | 0.052632 | 0.08134 | 0.095694 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015936 | 0.198083 | 626 | 19 | 107 | 32.947368 | 0.816733 | 0 | 0 | 0.285714 | 1 | 0 | 0.01278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.285714 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
9554dabbb9a81e2fbde331f2e40edcaa0f221585 | 805 | py | Python | bslparloursite/videolibrary/models.py | natfarleydev/thebslparlour | ebb2588282cdb2a977ec6c5f8d82cec4e8fd1f99 | [
"CC0-1.0"
] | 1 | 2016-01-06T23:13:11.000Z | 2016-01-06T23:13:11.000Z | bslparloursite/videolibrary/models.py | natfarleydev/thebslparlour | ebb2588282cdb2a977ec6c5f8d82cec4e8fd1f99 | [
"CC0-1.0"
] | 4 | 2021-03-18T20:15:04.000Z | 2021-06-10T17:52:31.000Z | bslparloursite/videolibrary/models.py | natfarleydev/thebslparlour | ebb2588282cdb2a977ec6c5f8d82cec4e8fd1f99 | [
"CC0-1.0"
] | null | null | null | from django.db import models
from django.utils import timezone
from sizefield.models import FileSizeField
# Create your models here.
class Video(models.Model):
sha224 = models.CharField(max_length=56, unique=True)
filename = models.CharField(max_length=200)
dropbox_directory = models.CharField(max_length=... | 29.814815 | 75 | 0.720497 | 102 | 805 | 5.490196 | 0.5 | 0.133929 | 0.160714 | 0.214286 | 0.258929 | 0.114286 | 0.114286 | 0 | 0 | 0 | 0 | 0.028832 | 0.181366 | 805 | 26 | 76 | 30.961538 | 0.820941 | 0.029814 | 0 | 0.105263 | 0 | 0 | 0.003851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0.105263 | 0.947368 | 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 | 1 | 1 | 0 | 0 | 3 |
95583195ca817a2531ead6462fb4ef3915b9a847 | 12,140 | py | Python | src/awkward1/operations/reducers.py | martindurant/awkward-1.0 | a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38 | [
"BSD-3-Clause"
] | null | null | null | src/awkward1/operations/reducers.py | martindurant/awkward-1.0 | a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38 | [
"BSD-3-Clause"
] | null | null | null | src/awkward1/operations/reducers.py | martindurant/awkward-1.0 | a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/jpivarski/awkward-1.0/blob/master/LICENSE
from __future__ import absolute_import
import numpy
import awkward1._util
import awkward1._connect._numpy
import awkward1.layout
import awkward1.operations.convert
def count(array, axis=None, keepdims=False, maskidentity=False)... | 48.174603 | 236 | 0.647117 | 1,520 | 12,140 | 5.099342 | 0.082895 | 0.04851 | 0.080506 | 0.120759 | 0.8506 | 0.809186 | 0.720165 | 0.660173 | 0.607018 | 0.593601 | 0 | 0.013476 | 0.229819 | 12,140 | 251 | 237 | 48.366534 | 0.815508 | 0.014498 | 0 | 0.515695 | 0 | 0 | 0.011038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107623 | false | 0 | 0.026906 | 0 | 0.327354 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9579e725a92b212adbfbee1f939f56455d5e30da | 22 | py | Python | nextfeed/settings/__init__.py | Nurdok/nextfeed | 197818310bbf7134badc2ef5ed11ab5ede7fdb35 | [
"MIT"
] | 1 | 2015-08-09T10:42:04.000Z | 2015-08-09T10:42:04.000Z | nextfeed/settings/__init__.py | Nurdok/nextfeed | 197818310bbf7134badc2ef5ed11ab5ede7fdb35 | [
"MIT"
] | null | null | null | nextfeed/settings/__init__.py | Nurdok/nextfeed | 197818310bbf7134badc2ef5ed11ab5ede7fdb35 | [
"MIT"
] | null | null | null | __author__ = 'Rachum'
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9581c71bce4ce0b38517044c9d5a2c496d783a78 | 585 | py | Python | find_nb.py | DemetriusStorm/100daysofcode | ce87a596b565c5740ae3c48adac91cba779b3833 | [
"MIT"
] | null | null | null | find_nb.py | DemetriusStorm/100daysofcode | ce87a596b565c5740ae3c48adac91cba779b3833 | [
"MIT"
] | null | null | null | find_nb.py | DemetriusStorm/100daysofcode | ce87a596b565c5740ae3c48adac91cba779b3833 | [
"MIT"
] | null | null | null | """
Your task is to construct a building which will be a pile of n cubes.
The cube at the bottom will have a volume of n^3, the cube above will have volume of (n-1)^3 and so on until the top
which will have a volume of 1^3.
You are given the total volume m of the building. Being given m can you find the number n of cub... | 45 | 119 | 0.711111 | 129 | 585 | 3.209302 | 0.418605 | 0.077295 | 0.043478 | 0.072464 | 0.082126 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024123 | 0.220513 | 585 | 13 | 120 | 45 | 0.883772 | 0.940171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
958ba96c16c5793bb5abfd2bf23b7c56685312b0 | 615 | py | Python | src/models.py | mchuck/tiny-ssg | 52998288daea9fe592b8e6ce769eca782db591cd | [
"MIT"
] | null | null | null | src/models.py | mchuck/tiny-ssg | 52998288daea9fe592b8e6ce769eca782db591cd | [
"MIT"
] | null | null | null | src/models.py | mchuck/tiny-ssg | 52998288daea9fe592b8e6ce769eca782db591cd | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import List, Dict, Any
@dataclass
class WebsitePage:
title: str
body: str
tags: List[str]
created_at: str
url: str
slug: str
meta: Dict
@dataclass
class WebsiteTag:
name: str
slug: str
pages: List[WebsitePage]
@dataclass
class Web... | 16.184211 | 45 | 0.689431 | 74 | 615 | 5.675676 | 0.432432 | 0.166667 | 0.047619 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24065 | 615 | 37 | 46 | 16.621622 | 0.899358 | 0.026016 | 0 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0 | true | 0 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
959cbddc7a775bd66392c574ba57d0e444a033d9 | 736 | py | Python | backend-service/users-service/app/app/models/user.py | abhishek70/python-petclinic-microservices | e15a41a668958f35f1b962487cd2360c5c150f0b | [
"MIT"
] | 2 | 2021-05-19T07:21:59.000Z | 2021-09-15T17:30:08.000Z | backend-service/users-service/app/app/models/user.py | abhishek70/python-petclinic-microservices | e15a41a668958f35f1b962487cd2360c5c150f0b | [
"MIT"
] | null | null | null | backend-service/users-service/app/app/models/user.py | abhishek70/python-petclinic-microservices | e15a41a668958f35f1b962487cd2360c5c150f0b | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING
from sqlalchemy import Boolean, Column, Integer, String
from sqlalchemy.orm import relationship
from app.db.base_class import Base
if TYPE_CHECKING:
from .pet import Pet # noqa: F401
class User(Base):
id = Column(Integer, primary_key=True, index=True, autoincrement=True, nul... | 38.736842 | 90 | 0.744565 | 99 | 736 | 5.434343 | 0.454545 | 0.120818 | 0.126394 | 0.122677 | 0.148699 | 0.148699 | 0.148699 | 0.148699 | 0 | 0 | 0 | 0.011164 | 0.148098 | 736 | 18 | 91 | 40.888889 | 0.84689 | 0.013587 | 0 | 0 | 0 | 0 | 0.01105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.333333 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
95a3853b501cce7a1c286e558ccff9a6692b3e3f | 171 | py | Python | Ekeopara_Praise/Phase 2/LIST/Day43 Tasks/Task3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Ekeopara_Praise/Phase 2/LIST/Day43 Tasks/Task3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Ekeopara_Praise/Phase 2/LIST/Day43 Tasks/Task3.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | '''3. Write a Python program to split a list into different variables. '''
universalList = [(1, 2, 3), ('w', 'e', 's')]
lst1, lst2 = universalList
print(lst1)
print(lst2) | 28.5 | 74 | 0.654971 | 26 | 171 | 4.307692 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.157895 | 171 | 6 | 75 | 28.5 | 0.722222 | 0.391813 | 0 | 0 | 0 | 0 | 0.030612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
95b6aab732ea16915f09231a8049e60f6f242ea6 | 593 | py | Python | flaskr/commands.py | aicioara-old/flask_tutorial2 | acb5c6fa2743f2f060ad6a3a26cc7eef56b6490b | [
"MIT"
] | null | null | null | flaskr/commands.py | aicioara-old/flask_tutorial2 | acb5c6fa2743f2f060ad6a3a26cc7eef56b6490b | [
"MIT"
] | null | null | null | flaskr/commands.py | aicioara-old/flask_tutorial2 | acb5c6fa2743f2f060ad6a3a26cc7eef56b6490b | [
"MIT"
] | null | null | null | import os
import datetime
import click
from flask.cli import with_appcontext
from werkzeug.security import generate_password_hash
def init_app(app):
app.cli.add_command(init_db_command)
@click.command('init-db')
@with_appcontext
def init_db_command():
"""Clear the existing data and create new tables."""
... | 20.448276 | 82 | 0.735245 | 84 | 593 | 5.011905 | 0.452381 | 0.071259 | 0.095012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153457 | 593 | 28 | 83 | 21.178571 | 0.838645 | 0.077572 | 0 | 0 | 1 | 0 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.111111 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
95c1052429e03206d9d42e4ca673e5f48a3f3906 | 35,774 | py | Python | bridge_sim/internal/make/ps_question.py | jerbaroo/bridge-sim | c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af | [
"MIT"
] | 2 | 2020-05-12T11:41:49.000Z | 2020-08-10T15:00:58.000Z | bridge_sim/internal/make/ps_question.py | barischrooneyj/bridge-sim | c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af | [
"MIT"
] | 48 | 2020-05-11T23:58:22.000Z | 2020-09-18T20:28:52.000Z | bridge_sim/internal/make/ps_question.py | jerbaroo/bridge-sim | c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af | [
"MIT"
] | 1 | 2020-05-27T12:43:37.000Z | 2020-05-27T12:43:37.000Z | import os
from copy import deepcopy
import matplotlib.pyplot as plt
import numpy as np
from bridge_sim import model, sim, temperature, traffic, plot, util
from bridge_sim.model import Config, Point, Bridge
from bridge_sim.plot.util import equal_lims
from bridge_sim.sim.responses import without
from bridge_sim.util im... | 38.138593 | 148 | 0.587494 | 4,536 | 35,774 | 4.431878 | 0.079806 | 0.026364 | 0.020146 | 0.021589 | 0.754763 | 0.722529 | 0.70104 | 0.682336 | 0.670348 | 0.65433 | 0 | 0.033771 | 0.288981 | 35,774 | 937 | 149 | 38.179296 | 0.756487 | 0.055571 | 0 | 0.566106 | 0 | 0.004808 | 0.078018 | 0.003812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016827 | false | 0 | 0.012019 | 0.001202 | 0.03125 | 0.014423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
252492e17fae91abe1251ab7bb4d09c4949ed235 | 37,380 | py | Python | pacu/models/awsapi/iotanalytics.py | RyanJarv/Pacu2 | 27df4bcf296fc8f467d3dc671a47bf9519ce7a24 | [
"MIT"
] | 1 | 2022-03-09T14:51:54.000Z | 2022-03-09T14:51:54.000Z | pacu/models/awsapi/iotanalytics.py | RyanJarv/Pacu2 | 27df4bcf296fc8f467d3dc671a47bf9519ce7a24 | [
"MIT"
] | null | null | null | pacu/models/awsapi/iotanalytics.py | RyanJarv/Pacu2 | 27df4bcf296fc8f467d3dc671a47bf9519ce7a24 | [
"MIT"
] | null | null | null | # generated by datamodel-codegen:
# filename: openapi.yaml
# timestamp: 2021-12-31T02:50:50+00:00
from __future__ import annotations
from datetime import datetime
from enum import Enum
from typing import Annotated, Any, List, Optional
from pydantic import BaseModel, Extra, Field
class ResourceNotFoundExceptio... | 24.511475 | 640 | 0.736811 | 3,550 | 37,380 | 7.670704 | 0.170423 | 0.02611 | 0.032316 | 0.018361 | 0.28552 | 0.242591 | 0.206639 | 0.189857 | 0.168301 | 0.147663 | 0 | 0.008648 | 0.17718 | 37,380 | 1,524 | 641 | 24.527559 | 0.876711 | 0.196522 | 0 | 0.333797 | 1 | 0.001391 | 0.014664 | 0.007765 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.102921 | 0.006954 | 0 | 0.840056 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
253330ec00e3e989dc1286f84a83a5c56cf85fc5 | 332 | py | Python | rylog/__init__.py | Ryan-Holben/rylog | 0f81fc8031b5c008f87ce367ebeabd443ef341f8 | [
"MIT"
] | null | null | null | rylog/__init__.py | Ryan-Holben/rylog | 0f81fc8031b5c008f87ce367ebeabd443ef341f8 | [
"MIT"
] | null | null | null | rylog/__init__.py | Ryan-Holben/rylog | 0f81fc8031b5c008f87ce367ebeabd443ef341f8 | [
"MIT"
] | null | null | null | """
rylog
Logging happening in a 3-dimensional Cartesian product of:
1. The logging level: [debug, info, warn, error]
2. The logging category: e.g. software event, action, output
3. The detected function/method: e.g. my_class.class_method or foo
"""
from .misc import *
from .server import *
from .clie... | 25.538462 | 70 | 0.701807 | 50 | 332 | 4.62 | 0.74 | 0.08658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.198795 | 332 | 12 | 71 | 27.666667 | 0.853383 | 0.746988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
25428819afdb8bcef5f733f483e2dfff517079e7 | 956 | py | Python | configs.py | rudyn2/visual-odometry | 1ee37ac6669e1429461f23ccc02d5ae9a349409c | [
"MIT"
] | null | null | null | configs.py | rudyn2/visual-odometry | 1ee37ac6669e1429461f23ccc02d5ae9a349409c | [
"MIT"
] | null | null | null | configs.py | rudyn2/visual-odometry | 1ee37ac6669e1429461f23ccc02d5ae9a349409c | [
"MIT"
] | null | null | null | import cv2
class StereoSGBMConfig:
min_disparity = 0
num_disparities = 16*10
sad_window_size = 3
uniqueness_ratio = 5
p1 = 16*sad_window_size*sad_window_size
p2 = 96*sad_window_size*sad_window_size
pre_filter_cap = 63
speckle_window_size = 0
speckle_range = 0
disp_max_diff = 1
... | 21.727273 | 47 | 0.65272 | 130 | 956 | 4.407692 | 0.407692 | 0.209424 | 0.226876 | 0.111693 | 0.366492 | 0.272251 | 0.09075 | 0 | 0 | 0 | 0 | 0.079826 | 0.279289 | 956 | 43 | 48 | 22.232558 | 0.751814 | 0 | 0 | 0.216216 | 0 | 0 | 0.067992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.783784 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
255a812a0890850fc537c0377c504771edd7d281 | 261 | py | Python | app/main.py | athul/jimbru | bc22449dbfbea19d9605e6271a154dbc7037bafb | [
"MIT"
] | 42 | 2020-11-12T11:34:29.000Z | 2022-01-17T11:40:29.000Z | app/main.py | athul/jimbru | bc22449dbfbea19d9605e6271a154dbc7037bafb | [
"MIT"
] | 1 | 2021-06-09T11:41:49.000Z | 2021-06-09T11:41:49.000Z | app/main.py | athul/jimbru | bc22449dbfbea19d9605e6271a154dbc7037bafb | [
"MIT"
] | 2 | 2021-03-17T18:16:15.000Z | 2021-06-08T17:29:38.000Z | from fastapi import FastAPI
try:
from routes import analytics,templates,auth
except:
from .routes import analytics,templates,auth
app = FastAPI()
app.include_router(analytics.router)
app.include_router(templates.router)
app.include_router(auth.authr) | 21.75 | 48 | 0.800766 | 35 | 261 | 5.885714 | 0.371429 | 0.145631 | 0.23301 | 0.242718 | 0.368932 | 0.368932 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114943 | 261 | 12 | 49 | 21.75 | 0.891775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
256b83c7f65a2f6d348541c27824ba4aba67696c | 1,649 | py | Python | policytools/master_list/actions_master_list_base.py | samkeen/policy-tools | 5183a710ac7b3816c6b6f3f8493d410712018873 | [
"Apache-2.0"
] | 1 | 2021-04-03T12:16:53.000Z | 2021-04-03T12:16:53.000Z | policytools/master_list/actions_master_list_base.py | samkeen/policy-tools | 5183a710ac7b3816c6b6f3f8493d410712018873 | [
"Apache-2.0"
] | 6 | 2019-05-07T03:36:58.000Z | 2021-02-02T22:49:53.000Z | policytools/master_list/actions_master_list_base.py | samkeen/policy-tools | 5183a710ac7b3816c6b6f3f8493d410712018873 | [
"Apache-2.0"
] | null | null | null | import logging
from abc import ABC, abstractmethod
logger = logging.getLogger(__name__)
class ActionsMasterListBase(ABC):
"""
Base class meant to hold the entire Set of IAM resource actions.
It is up to a concrete class to implement a source document parser (parse_actions_source)
"""
def __init_... | 28.431034 | 116 | 0.62644 | 190 | 1,649 | 5.147368 | 0.331579 | 0.08589 | 0.08589 | 0.042945 | 0.177914 | 0.177914 | 0.106339 | 0.106339 | 0.106339 | 0.106339 | 0 | 0 | 0.29715 | 1,649 | 57 | 117 | 28.929825 | 0.843831 | 0.322013 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.055556 | 0.111111 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
256d49d818eb371b9cdddf6e67c307560654cf96 | 969 | py | Python | src/hydep/simplerom.py | CORE-GATECH-GROUP/hydep | 3cb65325eb03251629b3aaa8c3895a002e05d55d | [
"MIT"
] | 2 | 2020-11-12T03:08:07.000Z | 2021-10-04T22:09:48.000Z | src/hydep/simplerom.py | CORE-GATECH-GROUP/hydep | 3cb65325eb03251629b3aaa8c3895a002e05d55d | [
"MIT"
] | 2 | 2020-11-25T16:24:29.000Z | 2021-08-28T23:19:39.000Z | src/hydep/simplerom.py | CORE-GATECH-GROUP/hydep | 3cb65325eb03251629b3aaa8c3895a002e05d55d | [
"MIT"
] | 1 | 2020-11-12T03:08:10.000Z | 2020-11-12T03:08:10.000Z | """
Simple reduced order solver.
More of a no-op, in that it doesn't actually
perform a flux solution
"""
import numpy
from hydep.internal.features import FeatureCollection
from hydep.internal import TransportResult
from .lib import ReducedOrderSolver
class SimpleROSolver(ReducedOrderSolver):
"""The simplest r... | 26.916667 | 85 | 0.693498 | 112 | 969 | 5.919643 | 0.553571 | 0.058824 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216718 | 969 | 35 | 86 | 27.685714 | 0.873518 | 0.394221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
25713c734ac79b5bf287eaff619cf02ebcde4535 | 449 | py | Python | TopQuarkAnalysis/TopEventProducers/python/sequences/ttGenEvent_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | TopQuarkAnalysis/TopEventProducers/python/sequences/ttGenEvent_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | TopQuarkAnalysis/TopEventProducers/python/sequences/ttGenEvent_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
#
# produce ttGenEvent with all necessary ingredients
#
from TopQuarkAnalysis.TopEventProducers.producers.TopInitSubset_cfi import *
from TopQuarkAnalysis.TopEventProducers.producers.TopDecaySubset_cfi import *
from TopQuarkAnalysis.TopEventProducers.producers.TtGenEvtProducer_... | 28.0625 | 79 | 0.830735 | 43 | 449 | 8.604651 | 0.627907 | 0.162162 | 0.3 | 0.372973 | 0.297297 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109131 | 449 | 15 | 80 | 29.933333 | 0.925 | 0.109131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c27e04a4ce8b186ea59a6dc9c61fb5fd29af829e | 134 | py | Python | python-lab-file/64_capitalizefirshchar.py | zshashz/py1729 | 3281ae2a20c665ebcc0d53840cc95143cbe6861b | [
"MIT"
] | 1 | 2021-01-22T09:03:59.000Z | 2021-01-22T09:03:59.000Z | python-lab-file/64_capitalizefirshchar.py | zshashz/py1729 | 3281ae2a20c665ebcc0d53840cc95143cbe6861b | [
"MIT"
] | null | null | null | python-lab-file/64_capitalizefirshchar.py | zshashz/py1729 | 3281ae2a20c665ebcc0d53840cc95143cbe6861b | [
"MIT"
] | 2 | 2021-05-04T11:29:38.000Z | 2021-11-03T13:09:48.000Z | # Program 64 : Capitalize the First Character of a String
my_string = input()
cap_string = my_string.capitalize()
print(cap_string) | 19.142857 | 57 | 0.768657 | 20 | 134 | 4.95 | 0.65 | 0.161616 | 0.282828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.149254 | 134 | 7 | 58 | 19.142857 | 0.850877 | 0.410448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c2b13350784cb8342c6137b9b2e68b9d9cf9a32f | 46,745 | py | Python | covidatx/plot.py | Mlograda/covidatx | 336bd5874ec5c6915f621ff3960ea10f70f6319c | [
"MIT"
] | null | null | null | covidatx/plot.py | Mlograda/covidatx | 336bd5874ec5c6915f621ff3960ea10f70f6319c | [
"MIT"
] | null | null | null | covidatx/plot.py | Mlograda/covidatx | 336bd5874ec5c6915f621ff3960ea10f70f6319c | [
"MIT"
] | null | null | null | from .data import CovidData
import datetime as dt
from matplotlib.offsetbox import AnchoredText
import pandas as pd
import seaborn as sns
import geopandas as gpd
import matplotlib.pyplot as plt
plt.style.use('ggplot')
def pan_duration(date):
"""Return the duration in days of the pandemic.
As... | 40.647826 | 79 | 0.58571 | 5,938 | 46,745 | 4.458909 | 0.092119 | 0.012992 | 0.010198 | 0.008725 | 0.773388 | 0.741096 | 0.720965 | 0.694527 | 0.676172 | 0.654266 | 0 | 0.033876 | 0.290833 | 46,745 | 1,149 | 80 | 40.683203 | 0.764827 | 0.231918 | 0 | 0.652677 | 0 | 0 | 0.207836 | 0.025339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041968 | false | 0 | 0.018813 | 0 | 0.06657 | 0.007236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c2d017d8eee0b960215a2642618960e9f03da11f | 245 | py | Python | src/allyoucanuse/etc/hashing.py | kunlubrain/allyoucanuse | c206d53fa9948cb335b406805d52125921fb71cf | [
"MIT"
] | null | null | null | src/allyoucanuse/etc/hashing.py | kunlubrain/allyoucanuse | c206d53fa9948cb335b406805d52125921fb71cf | [
"MIT"
] | null | null | null | src/allyoucanuse/etc/hashing.py | kunlubrain/allyoucanuse | c206d53fa9948cb335b406805d52125921fb71cf | [
"MIT"
] | null | null | null | from typing import Union, Iterable
import hashlib
def hash_id(seeds:Union[str, Iterable], n:int=32)->str:
"""For the moment, use the default simple python hash func
"""
h = hashlib.sha256(''.join(seeds)).hexdigest()[:n]
return h | 30.625 | 62 | 0.681633 | 37 | 245 | 4.486486 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024752 | 0.17551 | 245 | 8 | 63 | 30.625 | 0.79703 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c2d3808ea07cbe15ac6fd167c1f1d94408d838e4 | 32 | py | Python | src/constants.py | argho28/Translation | 11e24df4deb29d37dfb1f48cf686cef75eb68397 | [
"MIT"
] | 15 | 2019-09-26T09:59:14.000Z | 2021-08-14T16:54:42.000Z | src/constants.py | argho28/Translation | 11e24df4deb29d37dfb1f48cf686cef75eb68397 | [
"MIT"
] | 9 | 2020-03-24T17:53:25.000Z | 2022-01-13T01:36:39.000Z | src/constants.py | argho28/Translation | 11e24df4deb29d37dfb1f48cf686cef75eb68397 | [
"MIT"
] | 3 | 2019-12-30T15:35:32.000Z | 2021-01-05T18:02:41.000Z | MODEL_PATH = "./model/model.pt"
| 16 | 31 | 0.6875 | 5 | 32 | 4.2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 32 | 1 | 32 | 32 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c2d54bc8670fa3bdf4a2db5b9a515c8fa9d07665 | 189 | py | Python | testspeed/__init__.py | sc-1123/testspeed | 0dc560f9019087275d29eba2e4dfc351ba89566e | [
"MIT"
] | 1 | 2019-07-29T03:12:10.000Z | 2019-07-29T03:12:10.000Z | testspeed/__init__.py | sc-1123/testspeed | 0dc560f9019087275d29eba2e4dfc351ba89566e | [
"MIT"
] | null | null | null | testspeed/__init__.py | sc-1123/testspeed | 0dc560f9019087275d29eba2e4dfc351ba89566e | [
"MIT"
] | null | null | null | name = "testspeed"
from time import time
from sys import argv
from os import system
tic = time()
system('python %s' % (argv[1]))
toc = time()
print('used %s seconds' % (toc - tic))
| 21 | 39 | 0.640212 | 29 | 189 | 4.172414 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.21164 | 189 | 8 | 40 | 23.625 | 0.805369 | 0 | 0 | 0 | 0 | 0 | 0.18232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c2db90e9e6960ed73fac71500e3d37978e19257c | 1,714 | py | Python | renderer/console.py | deeredman1991/CreepSmash | 566b87c6d70f3663016f1c6d41d63432f9d0e785 | [
"MIT"
] | null | null | null | renderer/console.py | deeredman1991/CreepSmash | 566b87c6d70f3663016f1c6d41d63432f9d0e785 | [
"MIT"
] | null | null | null | renderer/console.py | deeredman1991/CreepSmash | 566b87c6d70f3663016f1c6d41d63432f9d0e785 | [
"MIT"
] | null | null | null | import tools.libtcod.libtcodpy as libtcod
class Console(object):
def __init__(self, x=[0,0], y=[0,0], parent_console=None):
self._settings = {
"x": x,
"y": y,
"Parent_Console": parent_console
}
self._settings["Width"] = int(max(self._settings["x"][1], se... | 39.860465 | 157 | 0.625438 | 207 | 1,714 | 4.985507 | 0.188406 | 0.267442 | 0.088178 | 0.085271 | 0.306202 | 0.174419 | 0.174419 | 0.174419 | 0.120155 | 0 | 0 | 0.016504 | 0.222287 | 1,714 | 43 | 157 | 39.860465 | 0.757689 | 0.085181 | 0 | 0.1875 | 0 | 0 | 0.061381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.03125 | 0.1875 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
c2ed8ec4755fb9cd0f0e90d7dcf10e9cf020ad38 | 8,759 | py | Python | core/migrations/0001_initial.py | vlafranca/stream_framework_example | 3af636c591d4a278f3720f64118d86aeb8091714 | [
"MIT"
] | 102 | 2015-01-18T15:02:34.000Z | 2021-12-07T17:22:12.000Z | core/migrations/0001_initial.py | vlafranca/stream_framework_example | 3af636c591d4a278f3720f64118d86aeb8091714 | [
"MIT"
] | 11 | 2015-01-04T14:42:11.000Z | 2022-01-13T04:58:10.000Z | core/migrations/0001_initial.py | vlafranca/stream_framework_example | 3af636c591d4a278f3720f64118d86aeb8091714 | [
"MIT"
] | 53 | 2015-01-12T07:11:10.000Z | 2021-07-28T08:40:02.000Z | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Item'
db.create_table(u'core_item', (
(u'id', self.gf('django.db.models.fields.A... | 56.509677 | 187 | 0.553488 | 965 | 8,759 | 4.918135 | 0.119171 | 0.109566 | 0.188791 | 0.269701 | 0.761694 | 0.714496 | 0.693847 | 0.655499 | 0.611252 | 0.5059 | 0 | 0.006595 | 0.22103 | 8,759 | 154 | 188 | 56.876623 | 0.688993 | 0.022034 | 0 | 0.285714 | 0 | 0 | 0.50713 | 0.299205 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015038 | false | 0.007519 | 0.030075 | 0 | 0.067669 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c2edaf37adb691a52b1dfd785bf639490dc75f3a | 3,309 | py | Python | desicos/abaqus/conecyl/__init__.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 1 | 2020-10-22T22:15:24.000Z | 2020-10-22T22:15:24.000Z | desicos/abaqus/conecyl/__init__.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 1 | 2020-10-09T12:42:02.000Z | 2020-10-09T12:42:02.000Z | desicos/abaqus/conecyl/__init__.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 2 | 2020-07-14T07:45:31.000Z | 2020-12-29T00:22:41.000Z | r"""
===================================================
ConeCyl (:mod:`desicos.abaqus.conecyl`)
===================================================
.. currentmodule:: desicos.abaqus.conecyl
Cone/Cylinder Model
=====================
Figure 1 provides a schematic view of the typical model created using this
module. T... | 30.925234 | 91 | 0.676337 | 507 | 3,309 | 4.287968 | 0.370809 | 0.054738 | 0.020699 | 0.041398 | 0.168353 | 0.078197 | 0.078197 | 0.063477 | 0.063477 | 0.063477 | 0 | 0.083149 | 0.178604 | 3,309 | 106 | 92 | 31.216981 | 0.716703 | 0.977637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c2f022d833125248ec963e921ce8841d3ad389bf | 1,230 | py | Python | rpython/jit/backend/ppc/regname.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 381 | 2018-08-18T03:37:22.000Z | 2022-02-06T23:57:36.000Z | rpython/jit/backend/ppc/regname.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 16 | 2018-09-22T18:12:47.000Z | 2022-02-22T20:03:59.000Z | rpython/jit/backend/ppc/regname.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 55 | 2015-08-16T02:41:30.000Z | 2022-03-20T20:33:35.000Z | class _R(int):
def __repr__(self):
return "r%s"%(super(_R, self).__repr__(),)
__str__ = __repr__
class _F(int):
def __repr__(self):
return "fr%s"%(super(_F, self).__repr__(),)
__str__ = __repr__
class _V(int):
def __repr__(self):
return "vr%s"%(super(_V, self).__repr__(),)
... | 41 | 78 | 0.591057 | 195 | 1,230 | 3.435897 | 0.794872 | 0.026866 | 0.044776 | 0.062687 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253952 | 0.228455 | 1,230 | 29 | 79 | 42.413793 | 0.452055 | 0 | 0 | 0.24 | 0 | 0 | 0.008943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0 | 0.12 | 0.48 | 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 | 1 | 0 | 0 | 0 | 3 |
c2f186277f31c8ec4b6c844878711153981d3676 | 920 | py | Python | common/utilities/message_utilities.py | uk-gov-mirror/nhsconnect.integration-adaptor-mhs | bf090a17659da738401667997a10695d8b75b94b | [
"Apache-2.0"
] | 15 | 2019-08-06T16:08:12.000Z | 2021-05-24T13:14:39.000Z | common/utilities/message_utilities.py | uk-gov-mirror/nhsconnect.integration-adaptor-mhs | bf090a17659da738401667997a10695d8b75b94b | [
"Apache-2.0"
] | 75 | 2019-04-25T13:59:02.000Z | 2021-09-15T06:05:36.000Z | common/utilities/message_utilities.py | uk-gov-mirror/nhsconnect.integration-adaptor-mhs | bf090a17659da738401667997a10695d8b75b94b | [
"Apache-2.0"
] | 7 | 2019-11-12T15:26:34.000Z | 2021-04-11T07:23:56.000Z | import uuid
import datetime
import utilities.file_utilities as file_utilities
EBXML_TIMESTAMP_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
def get_uuid():
"""Generate a UUID suitable for sending in messages to Spine.
:return: A string representation of the UUID.
"""
return str(uuid.uuid4()).upper()
def get_times... | 27.878788 | 97 | 0.738043 | 122 | 920 | 5.327869 | 0.393443 | 0.08 | 0.083077 | 0.115385 | 0.335385 | 0.283077 | 0.184615 | 0.184615 | 0.184615 | 0.184615 | 0 | 0.001295 | 0.16087 | 920 | 32 | 98 | 28.75 | 0.840674 | 0.248913 | 0 | 0 | 1 | 0 | 0.055891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6c184b2174364e3e55c83631e166cd7d528e99e1 | 60 | py | Python | app/comic/container_exec/__init__.py | EYRA-Benchmark/grand-challenge.org | 8264c19fa1a30ffdb717d765e2aa2e6ceccaab17 | [
"Apache-2.0"
] | 2 | 2019-06-28T09:23:55.000Z | 2020-03-18T05:52:13.000Z | app/comic/container_exec/__init__.py | EYRA-Benchmark/comic | 8264c19fa1a30ffdb717d765e2aa2e6ceccaab17 | [
"Apache-2.0"
] | 112 | 2019-08-12T15:13:27.000Z | 2022-03-21T15:49:40.000Z | app/comic/container_exec/__init__.py | EYRA-Benchmark/grand-challenge.org | 8264c19fa1a30ffdb717d765e2aa2e6ceccaab17 | [
"Apache-2.0"
] | 1 | 2020-03-19T14:19:57.000Z | 2020-03-19T14:19:57.000Z | default_app_config = "comic.container_exec.apps.CoreConfig"
| 30 | 59 | 0.85 | 8 | 60 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 60 | 1 | 60 | 60 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0.6 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6c1cda3f913ecea499264b75e17f95a35ff6a498 | 443 | py | Python | lantz/qt/widgets/__init__.py | mtsolmn/lantz-qt | 72cb16bd3aafe33caa1a822ac2ba98b3425d4420 | [
"BSD-3-Clause"
] | 1 | 2020-05-13T08:29:16.000Z | 2020-05-13T08:29:16.000Z | lantz/qt/widgets/__init__.py | mtsolmn/lantz-qt | 72cb16bd3aafe33caa1a822ac2ba98b3425d4420 | [
"BSD-3-Clause"
] | null | null | null | lantz/qt/widgets/__init__.py | mtsolmn/lantz-qt | 72cb16bd3aafe33caa1a822ac2ba98b3425d4420 | [
"BSD-3-Clause"
] | 3 | 2019-09-24T16:49:10.000Z | 2020-09-23T17:53:20.000Z | # -*- coding: utf-8 -*-
"""
lantz.qt.widgets
~~~~~~~~~~~~~~~~
PyQt widgets wrapped to work with lantz.
:copyright: 2018 by Lantz Authors, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from . import feat, nonnumeric, numeric
from .common import WidgetMixin, Childr... | 27.6875 | 68 | 0.711061 | 50 | 443 | 6.3 | 0.7 | 0.044444 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013661 | 0.173815 | 443 | 16 | 69 | 27.6875 | 0.846995 | 0.471783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6c6a90b147afe488a76460582fd0b95042612fc0 | 135 | py | Python | PySpace/using_sys.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | PySpace/using_sys.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | PySpace/using_sys.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# 文件名:using_sys.py
import sys
print('命令行参数如下:')
for i in sys.argv:
print(i)
print('\n\nPython路径为:',sys.path,'\n') | 15 | 37 | 0.674074 | 24 | 135 | 3.75 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.103704 | 135 | 9 | 37 | 15 | 0.735537 | 0.251852 | 0 | 0 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6c8d08da4457f70f71f8796a1ee31a832ff90488 | 190 | py | Python | day08/test04.py | jaywoong/python | 99daedd5a9418b72b2d5c3b800080e730eb9b3ea | [
"Apache-2.0"
] | null | null | null | day08/test04.py | jaywoong/python | 99daedd5a9418b72b2d5c3b800080e730eb9b3ea | [
"Apache-2.0"
] | null | null | null | day08/test04.py | jaywoong/python | 99daedd5a9418b72b2d5c3b800080e730eb9b3ea | [
"Apache-2.0"
] | null | null | null | from value import Account
acc1 = Account(10000, 3.2)
print(acc1)
acc1.__balance = 100000000
print(acc1)
print(acc1.getBalance())
print(acc1.getInterest())
acc1.setInterest(2.8)
print(acc1)
| 17.272727 | 26 | 0.763158 | 28 | 190 | 5.107143 | 0.535714 | 0.314685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151163 | 0.094737 | 190 | 10 | 27 | 19 | 0.680233 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.555556 | 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 | 1 | 0 | 3 |
665d3713837abc4149228da527c02f71d0d908ef | 1,151 | py | Python | tests/test_cli.py | joshbduncan/word-search-generator | 3c527f0371cbe4550a24403c660d1c6511b4cf79 | [
"MIT"
] | 4 | 2021-09-18T21:21:54.000Z | 2022-03-02T03:53:54.000Z | tests/test_cli.py | joshbduncan/word-search-generator | 3c527f0371cbe4550a24403c660d1c6511b4cf79 | [
"MIT"
] | 4 | 2021-09-18T21:50:33.000Z | 2022-03-22T04:29:33.000Z | tests/test_cli.py | joshbduncan/word-search-generator | 3c527f0371cbe4550a24403c660d1c6511b4cf79 | [
"MIT"
] | 1 | 2021-11-17T14:53:50.000Z | 2021-11-17T14:53:50.000Z | import os
import pathlib
import tempfile
TEMP_DIR = tempfile.TemporaryDirectory()
def test_entrypoint():
exit_status = os.system("word-search --help")
assert exit_status == 0
def test_no_words_provided():
exit_status = os.system("word-search")
assert os.WEXITSTATUS(exit_status) == 1
def test_jus... | 26.159091 | 84 | 0.709818 | 173 | 1,151 | 4.508671 | 0.248555 | 0.179487 | 0.107692 | 0.161538 | 0.711538 | 0.701282 | 0.482051 | 0.382051 | 0.371795 | 0.266667 | 0 | 0.00733 | 0.170287 | 1,151 | 43 | 85 | 26.767442 | 0.809424 | 0 | 0 | 0.222222 | 0 | 0 | 0.228497 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 1 | 0.259259 | false | 0 | 0.111111 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
666d3c5b51416d64a4d8d00ca1cc2533f85b4bf8 | 296 | py | Python | venv/Lib/site-packages/IPython/terminal/ptshell.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | venv/Lib/site-packages/IPython/terminal/ptshell.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | venv/Lib/site-packages/IPython/terminal/ptshell.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | raise DeprecationWarning("""DEPRECATED:
After Popular request and decision from the BDFL:
`IPython.terminal.ptshell` has been moved back to `IPython.terminal.interactiveshell`
during the beta cycle (after IPython 5.0.beta3) Sorry about that.
This file will be removed in 5.0 rc or final.
""")
| 32.888889 | 85 | 0.777027 | 45 | 296 | 5.111111 | 0.844444 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.138514 | 296 | 8 | 86 | 37 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.888514 | 0.206081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
669f60ed987d448932641383a9784e17ffb52883 | 836 | py | Python | tests/scheduler_test.py | peng4217/scylla | aa5133d7c6d565c95651fc75b26ad605da0982cd | [
"Apache-2.0"
] | 3,556 | 2018-04-28T22:59:40.000Z | 2022-03-28T22:20:07.000Z | tests/scheduler_test.py | peng4217/scylla | aa5133d7c6d565c95651fc75b26ad605da0982cd | [
"Apache-2.0"
] | 120 | 2018-05-20T11:49:00.000Z | 2022-03-07T00:08:55.000Z | tests/scheduler_test.py | peng4217/scylla | aa5133d7c6d565c95651fc75b26ad605da0982cd | [
"Apache-2.0"
] | 518 | 2018-05-27T01:42:25.000Z | 2022-03-25T12:38:32.000Z | import pytest
from scylla.scheduler import Scheduler, cron_schedule
@pytest.fixture
def scheduler():
return Scheduler()
def test_start(mocker, scheduler):
process_start = mocker.patch('multiprocessing.Process.start')
thread_start = mocker.patch('threading.Thread.start')
scheduler.start()
proc... | 23.885714 | 78 | 0.744019 | 100 | 836 | 5.98 | 0.34 | 0.108696 | 0.110368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155502 | 836 | 34 | 79 | 24.588235 | 0.847026 | 0.180622 | 0 | 0 | 0 | 0 | 0.135693 | 0.135693 | 0 | 0 | 0 | 0.029412 | 0.176471 | 1 | 0.235294 | false | 0.058824 | 0.117647 | 0.058824 | 0.411765 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
66c4c0ab19cb9fa1cb71b15b0da8a32e24b51bb6 | 5,491 | py | Python | Linuxu.py | Jefferson-Hsu/Linuxu-shell | 2bbc42248e05ac01f8d3466479bb8106833c7ab1 | [
"MIT"
] | 1 | 2022-03-04T05:53:33.000Z | 2022-03-04T05:53:33.000Z | Linuxu.py | Jefferson-Hsu/Linuxu-shell | 2bbc42248e05ac01f8d3466479bb8106833c7ab1 | [
"MIT"
] | null | null | null | Linuxu.py | Jefferson-Hsu/Linuxu-shell | 2bbc42248e05ac01f8d3466479bb8106833c7ab1 | [
"MIT"
] | null | null | null | #library
import os
#string aphoto
print(" _ _ _ _ __ __ _ _ .____ .__ ")
print("| | | | ___| | | __\\ \\ / /__ _ __| | __| | | | |__| ____ __ _____ _____ __ ")
print("| |_| |/ _ \\ | |/ _ \\ \\ /\\ / / _ \\|... | 44.282258 | 152 | 0.24094 | 275 | 5,491 | 4.396364 | 0.338182 | 0.198511 | 0.079404 | 0.049628 | 0.06617 | 0.034739 | 0.034739 | 0.034739 | 0.034739 | 0.034739 | 0 | 0.011095 | 0.491167 | 5,491 | 124 | 153 | 44.282258 | 0.421618 | 0.024039 | 0 | 0.410526 | 0 | 0.042105 | 0.626168 | 0.174953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.031579 | 0.021053 | 0 | 0.021053 | 0.589474 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
dd1d3ef072d0bbe5516060cc303f3f2982632867 | 305 | py | Python | django_obfuscator/testobfuscator/models.py | vishnuc91/obfuscator-date | d4424cb7823dbf20543c5cc2bc0ce48d8d62a69a | [
"Apache-2.0"
] | null | null | null | django_obfuscator/testobfuscator/models.py | vishnuc91/obfuscator-date | d4424cb7823dbf20543c5cc2bc0ce48d8d62a69a | [
"Apache-2.0"
] | null | null | null | django_obfuscator/testobfuscator/models.py | vishnuc91/obfuscator-date | d4424cb7823dbf20543c5cc2bc0ce48d8d62a69a | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
class MyModel(models.Model):
aname = models.CharField(max_length=100, null=True, blank=True)
anint = models.IntegerField(default=999)
astring = models.CharField(max_length=50)
date = models.DateField('Date', null=True, blank=True)
| 30.5 | 67 | 0.734426 | 42 | 305 | 5.285714 | 0.642857 | 0.135135 | 0.162162 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0.147541 | 305 | 9 | 68 | 33.888889 | 0.823077 | 0.078689 | 0 | 0 | 0 | 0 | 0.014337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
dd27497c195aa372001cc5557855526c81484bc2 | 263 | py | Python | nameyourapp/routes.py | WhereWeCanShare/minipy | 485e9c4f122aa56ed8389d0ea7b5c16d59179aed | [
"BSD-3-Clause"
] | null | null | null | nameyourapp/routes.py | WhereWeCanShare/minipy | 485e9c4f122aa56ed8389d0ea7b5c16d59179aed | [
"BSD-3-Clause"
] | null | null | null | nameyourapp/routes.py | WhereWeCanShare/minipy | 485e9c4f122aa56ed8389d0ea7b5c16d59179aed | [
"BSD-3-Clause"
] | null | null | null | from flask import Blueprint
main = Blueprint('main', __name__)
@main.route('/')
def main_index():
return '<div align="center"><img src="https://source.unsplash.com/1200x800/?technology,matrix,hacker,women"><p>Thanks Unsplash for nice photo</p></div>', 200
| 29.222222 | 161 | 0.714829 | 37 | 263 | 4.945946 | 0.810811 | 0.142077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042373 | 0.102662 | 263 | 8 | 162 | 32.875 | 0.733051 | 0 | 0 | 0 | 0 | 0.2 | 0.562738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.4 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
dd341ee91f7a33f3e372a0311daf89a77f9a9148 | 349 | py | Python | tests/test_license_screening.py | sthagen/python-scaling-tribble | 2bb2e41185ae2b0108f341751d0e4a2187909683 | [
"MIT"
] | null | null | null | tests/test_license_screening.py | sthagen/python-scaling-tribble | 2bb2e41185ae2b0108f341751d0e4a2187909683 | [
"MIT"
] | 18 | 2021-02-14T15:17:17.000Z | 2021-02-14T17:46:27.000Z | tests/test_license_screening.py | sthagen/python-scaling-tribble | 2bb2e41185ae2b0108f341751d0e4a2187909683 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=missing-docstring,unused-import,reimported
import pytest # type: ignore
import tests.context as ctx
import license_screening.license_screening as lis
def test_parse_ok_empty_string():
assert lis.parse('') is NotImplemented
def test_parse_ok_known_tree():
assert l... | 21.8125 | 60 | 0.744986 | 49 | 349 | 5.102041 | 0.693878 | 0.128 | 0.096 | 0.112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0.137536 | 349 | 15 | 61 | 23.266667 | 0.82392 | 0.266476 | 0 | 0 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | true | 0 | 0.428571 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
06bd33902db8a6c06128727e29c0eae037cf9894 | 378 | py | Python | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/NV/fragment_program.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/NV/fragment_program.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/NV/fragment_program.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | '''OpenGL extension NV.fragment_program
This module customises the behaviour of the
OpenGL.raw.GL.NV.fragment_program to provide a more
Python-friendly API
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions, wrapper
from OpenGL.GL import glget
import ctypes
from OpenGL.raw.GL.... | 31.5 | 56 | 0.812169 | 55 | 378 | 5.527273 | 0.6 | 0.131579 | 0.167763 | 0.085526 | 0.184211 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121693 | 378 | 12 | 57 | 31.5 | 0.915663 | 0.481481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
06d39356c17a9b2e38d63f8d9aaf9f0140911fdf | 46 | py | Python | wafw00f/__init__.py | nofunofunofunofun/wafw00f | a1c3f3a045077d893cd9ed970f5d687b590abfa5 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T09:15:04.000Z | 2022-03-22T09:15:04.000Z | wafw00f/__init__.py | nofunofunofunofun/wafw00f | a1c3f3a045077d893cd9ed970f5d687b590abfa5 | [
"BSD-3-Clause"
] | null | null | null | wafw00f/__init__.py | nofunofunofunofun/wafw00f | a1c3f3a045077d893cd9ed970f5d687b590abfa5 | [
"BSD-3-Clause"
] | 1 | 2021-01-11T17:26:14.000Z | 2021-01-11T17:26:14.000Z | #!/usr/bin/env python
__version__ = '0.9.6'
| 9.2 | 21 | 0.630435 | 8 | 46 | 3.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.152174 | 46 | 4 | 22 | 11.5 | 0.564103 | 0.434783 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06da67599586f6f3ad731d357524246723f211dc | 331 | py | Python | python/demo-django/code/character/models.py | denisroldan/talentum-2015-examples | 4980f49dca56a55d26722f4f6d1fdd88e06f38dd | [
"MIT"
] | null | null | null | python/demo-django/code/character/models.py | denisroldan/talentum-2015-examples | 4980f49dca56a55d26722f4f6d1fdd88e06f38dd | [
"MIT"
] | null | null | null | python/demo-django/code/character/models.py | denisroldan/talentum-2015-examples | 4980f49dca56a55d26722f4f6d1fdd88e06f38dd | [
"MIT"
] | null | null | null | from django.db import models
from game.models import Game
class Character(models.Model):
name = models.CharField(max_length=250)
game = models.ManyToManyField(Game, related_name='characters')
def __unicode__(self):
return "{0}".format(self.name)
def __str__(self):
return "{0}".format... | 25.461538 | 66 | 0.694864 | 43 | 331 | 5.116279 | 0.55814 | 0.090909 | 0.1 | 0.154545 | 0.227273 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0.01845 | 0.181269 | 331 | 13 | 67 | 25.461538 | 0.793358 | 0 | 0 | 0.222222 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
06dc17868ef7177e219fa324d4ee2030cbe721d0 | 51 | py | Python | appengine/src/greenday_core/settings/__init__.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 6 | 2018-07-31T16:48:07.000Z | 2020-02-01T03:17:51.000Z | appengine/src/greenday_core/settings/__init__.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 41 | 2018-08-07T16:43:07.000Z | 2020-06-05T18:54:50.000Z | appengine/src/greenday_core/settings/__init__.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 1 | 2018-08-07T16:40:18.000Z | 2018-08-07T16:40:18.000Z | """
Modules to configure Django's settings
"""
| 12.75 | 42 | 0.647059 | 6 | 51 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 51 | 3 | 43 | 17 | 0.825 | 0.745098 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06e51ad894ceaca1307a132e1efdb1fe4242fe80 | 17,008 | py | Python | batches.py | NRHelmi/ldbc_snb_data_converter | 42eb5dfbe8b46bcb4d8ad56e1fd988e7635deea3 | [
"Apache-2.0"
] | 2 | 2021-01-22T10:07:18.000Z | 2021-02-09T18:13:28.000Z | batches.py | NRHelmi/ldbc_snb_data_converter | 42eb5dfbe8b46bcb4d8ad56e1fd988e7635deea3 | [
"Apache-2.0"
] | 5 | 2021-02-11T23:12:05.000Z | 2021-05-21T12:16:29.000Z | batches.py | szarnyasg/ldbc-example-graph | 1fd52bc60d50cf5184ee1331369d754db2b8489f | [
"Apache-2.0"
] | 1 | 2022-03-24T20:02:23.000Z | 2022-03-24T20:02:23.000Z | import duckdb
from datetime import date
from dateutil.relativedelta import relativedelta
import os
import shutil
con = duckdb.connect(database='ldbc.duckdb', read_only=False)
# batches are selected from the [network_start_date, network_end_date) interval,
# each batch denotes a [batch_start_date, batch_end_date) wher... | 50.619048 | 350 | 0.596954 | 1,834 | 17,008 | 5.331516 | 0.082879 | 0.067498 | 0.047249 | 0.051544 | 0.859071 | 0.779096 | 0.688178 | 0.579464 | 0.487012 | 0.400491 | 0 | 0.012676 | 0.281044 | 17,008 | 335 | 351 | 50.770149 | 0.786964 | 0.039393 | 0 | 0.591912 | 0 | 0.088235 | 0.798039 | 0.23207 | 0 | 0 | 0 | 0.002985 | 0 | 1 | 0 | false | 0 | 0.018382 | 0 | 0.018382 | 0.003676 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
66436d46f2399420648d1ae5afad1941d5ac5dfe | 981 | py | Python | python/PythonForNetworkEngineers/Lesson3/exercise4.py | ModestTG/scripts | 91517b1238267185852816f73e7f7221012faa8b | [
"MIT"
] | null | null | null | python/PythonForNetworkEngineers/Lesson3/exercise4.py | ModestTG/scripts | 91517b1238267185852816f73e7f7221012faa8b | [
"MIT"
] | null | null | null | python/PythonForNetworkEngineers/Lesson3/exercise4.py | ModestTG/scripts | 91517b1238267185852816f73e7f7221012faa8b | [
"MIT"
] | null | null | null | from __future__ import print_function, unicode_literals, division
arp_table = [('10.220.88.1', '0062.ec29.70fe'),
('10.220.88.20', 'c89c.1dea.0eb6'),
('10.220.88.21', '1c6a.7aaf.576c'),
('10.220.88.28', '5254.aba8.9aea'),
('10.220.88.29', '5254.abbe.5b7b'),
... | 39.24 | 73 | 0.489297 | 142 | 981 | 3.302817 | 0.528169 | 0.149254 | 0.208955 | 0.055437 | 0.063966 | 0 | 0 | 0 | 0 | 0 | 0 | 0.336123 | 0.269113 | 981 | 25 | 74 | 39.24 | 0.317992 | 0 | 0 | 0 | 0 | 0 | 0.372709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0.086957 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.