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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
931ce2c197d421817f1dc3003b3f4057ed11e098 | 554 | py | Python | multibot/models/event_component.py | AlberLC/multibot | 74e2d5ee5b6e11acbb2f8b572224badd7c1dae2a | [
"MIT"
] | 4 | 2022-01-26T09:20:04.000Z | 2022-03-19T11:15:32.000Z | multibot/models/event_component.py | AlberLC/multibot | 74e2d5ee5b6e11acbb2f8b572224badd7c1dae2a | [
"MIT"
] | null | null | null | multibot/models/event_component.py | AlberLC/multibot | 74e2d5ee5b6e11acbb2f8b572224badd7c1dae2a | [
"MIT"
] | null | null | null | from __future__ import annotations # todo0 remove in 3.11
__all__ = ['EventComponent']
from typing import Any, TypeVar
from flanautils import DCMongoBase, FlanaBase
T = TypeVar('T', bound='EventComponent')
class EventComponent(DCMongoBase, FlanaBase):
def _json_repr(self) -> Any:
return {k: v for k, ... | 30.777778 | 113 | 0.698556 | 78 | 554 | 4.705128 | 0.461538 | 0.021798 | 0.059946 | 0.092643 | 0.408719 | 0.408719 | 0.408719 | 0.408719 | 0.408719 | 0.408719 | 0 | 0.008753 | 0.17509 | 554 | 17 | 114 | 32.588235 | 0.794311 | 0.036101 | 0 | 0 | 0 | 0 | 0.163534 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
93277a64f7c7bfb48619b6bcdddb181aa5063927 | 4,278 | py | Python | application/tests/test_proc_plumb_control_integration.py | roguextech/Waterloo-Rocketry-topside | 345e7d47efdac04c2c5f70d55f83bd77acdbb511 | [
"MIT"
] | 4 | 2020-04-18T00:40:55.000Z | 2021-06-10T04:04:09.000Z | application/tests/test_proc_plumb_control_integration.py | roguextech/Waterloo-Rocketry-topside | 345e7d47efdac04c2c5f70d55f83bd77acdbb511 | [
"MIT"
] | 82 | 2020-04-15T21:26:04.000Z | 2022-02-04T04:50:07.000Z | application/tests/test_proc_plumb_control_integration.py | roguextech/Waterloo-Rocketry-topside | 345e7d47efdac04c2c5f70d55f83bd77acdbb511 | [
"MIT"
] | 8 | 2020-04-21T17:54:36.000Z | 2022-02-28T16:14:21.000Z | import textwrap
import topside as top
from ..procedures_bridge import ProceduresBridge
from ..plumbing_bridge import PlumbingBridge
from ..controls_bridge import ControlsBridge
def make_plumbing_engine():
pdl = textwrap.dedent("""\
name: example
body:
- component:
name: injector_valve
... | 34.5 | 92 | 0.65568 | 486 | 4,278 | 5.518519 | 0.168724 | 0.047726 | 0.038777 | 0.073826 | 0.752051 | 0.752051 | 0.721849 | 0.692767 | 0.662192 | 0.662192 | 0 | 0.009746 | 0.208509 | 4,278 | 123 | 93 | 34.780488 | 0.782339 | 0 | 0 | 0.578431 | 0 | 0 | 0.220664 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.039216 | false | 0 | 0.04902 | 0 | 0.098039 | 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 |
9327c4a47df98da3b4c1bea3532fa6c11e036100 | 147 | py | Python | ejercicio28.py | julianamendez11/JulianaMendez_ejercicio28 | 4e51a466c4528fe858e12aaf77b44bcfe05f7490 | [
"MIT"
] | null | null | null | ejercicio28.py | julianamendez11/JulianaMendez_ejercicio28 | 4e51a466c4528fe858e12aaf77b44bcfe05f7490 | [
"MIT"
] | null | null | null | ejercicio28.py | julianamendez11/JulianaMendez_ejercicio28 | 4e51a466c4528fe858e12aaf77b44bcfe05f7490 | [
"MIT"
] | null | null | null |
import numpy as np
import matplotlib.pyplot as plt
plt.figure()
data = np.loadtxt("temperaturas.dat")
plt.show(data)
plt.savefig("calor.png") | 18.375 | 37 | 0.734694 | 23 | 147 | 4.695652 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129252 | 147 | 8 | 38 | 18.375 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0.168919 | 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 |
93617e911db37a8aca755387ebe67c49868f9acb | 103 | py | Python | ex4-8.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | ex4-8.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | ex4-8.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | cube = []
for value in range(1, 11):
cube_value = value**3
cube.append(cube_value)
print(cube)
| 17.166667 | 27 | 0.650485 | 17 | 103 | 3.823529 | 0.588235 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.203884 | 103 | 5 | 28 | 20.6 | 0.743902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
93754e0605fff33e7663adea471fe56ebf2bd7f3 | 1,026 | py | Python | cache.py | yosemiteyss/lru_cache | 71500105ada5b359ac98a6ed734482a0492f7662 | [
"MIT"
] | null | null | null | cache.py | yosemiteyss/lru_cache | 71500105ada5b359ac98a6ed734482a0492f7662 | [
"MIT"
] | null | null | null | cache.py | yosemiteyss/lru_cache | 71500105ada5b359ac98a6ed734482a0492f7662 | [
"MIT"
] | null | null | null | import time
from cache_entry import CacheEntry
class Cache:
def __init__(self, size):
self.size = size
self.queue = []
def __reorder_queue(self):
self.queue = sorted(self.queue, key=lambda entry: entry.accessed_at, reverse=True)
def is_full(self):
return len(self.queue) >=... | 24.428571 | 90 | 0.609162 | 139 | 1,026 | 4.323741 | 0.302158 | 0.179701 | 0.033278 | 0.056572 | 0.206323 | 0.133111 | 0.133111 | 0.133111 | 0.133111 | 0.133111 | 0 | 0.00542 | 0.280702 | 1,026 | 42 | 91 | 24.428571 | 0.808943 | 0 | 0 | 0.071429 | 0 | 0 | 0.012658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.321429 | false | 0 | 0.071429 | 0.178571 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fa88e3c16682fc63f5dd57e4737a841de66bdc78 | 207 | py | Python | Web_Application/__init__.py | DhrubojyotiBis1/dibasol | 13025e5feb6daa812dd29545fe3e3f1cf56637b7 | [
"MIT"
] | null | null | null | Web_Application/__init__.py | DhrubojyotiBis1/dibasol | 13025e5feb6daa812dd29545fe3e3f1cf56637b7 | [
"MIT"
] | null | null | null | Web_Application/__init__.py | DhrubojyotiBis1/dibasol | 13025e5feb6daa812dd29545fe3e3f1cf56637b7 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///database.db'
db = SQLAlchemy(app)
from Web_Application import route | 23 | 63 | 0.797101 | 28 | 207 | 5.607143 | 0.5 | 0.11465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 207 | 9 | 64 | 23 | 0.853261 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fabada617703a2dd45a9295c6805b58be0dbf5b3 | 6,600 | py | Python | boto3_type_annotations/boto3_type_annotations/appstream/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 119 | 2018-12-01T18:20:57.000Z | 2022-02-02T10:31:29.000Z | boto3_type_annotations/boto3_type_annotations/appstream/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 15 | 2018-11-16T00:16:44.000Z | 2021-11-13T03:44:18.000Z | boto3_type_annotations/boto3_type_annotations/appstream/client.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 11 | 2019-05-06T05:26:51.000Z | 2021-09-28T15:27:59.000Z | from typing import Optional
from botocore.client import BaseClient
from typing import Dict
from typing import Union
from botocore.paginate import Paginator
from botocore.waiter import Waiter
from typing import List
class Client(BaseClient):
def associate_fleet(self, FleetName: str, StackName: str) -> Dict:
... | 42.857143 | 440 | 0.687121 | 766 | 6,600 | 5.818538 | 0.159269 | 0.08324 | 0.106125 | 0.070675 | 0.634059 | 0.518959 | 0.465335 | 0.315683 | 0.247027 | 0.16289 | 0 | 0 | 0.213182 | 6,600 | 153 | 441 | 43.137255 | 0.858271 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0.461538 | 0.067308 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fac9149791f933286e43aa83497c773622551e85 | 274 | py | Python | inventory/admin.py | TechNic11/Try-Django-3.2 | aefa2770e0361701a56465825e3ac74a23587087 | [
"MIT"
] | 136 | 2021-03-16T07:43:17.000Z | 2022-03-31T17:20:24.000Z | inventory/admin.py | Nirmal-coder/Django-blog | dda1d9986cdf62cd2d498a3be90cae4351552c05 | [
"MIT"
] | 3 | 2021-09-02T08:47:06.000Z | 2021-10-04T16:13:38.000Z | inventory/admin.py | Nirmal-coder/Django-blog | dda1d9986cdf62cd2d498a3be90cae4351552c05 | [
"MIT"
] | 211 | 2021-04-17T20:13:53.000Z | 2022-03-31T11:26:51.000Z | from django.contrib import admin
# Register your models here.
from .models import InventoryRequest
class InventoryRequestAdmin(admin.ModelAdmin):
list_display = ['user', 'name', 'total', 'unit', 'status']
admin.site.register(InventoryRequest, InventoryRequestAdmin) | 24.909091 | 62 | 0.773723 | 29 | 274 | 7.275862 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116788 | 274 | 11 | 63 | 24.909091 | 0.871901 | 0.094891 | 0 | 0 | 0 | 0 | 0.093117 | 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 |
fadf446bc6327fdb4312c1ece6a14c17334b07b4 | 167 | py | Python | notebooks/my_second_notebook.py | jfear/vscode_demo | 08cc92a574d0ed642d99ab221cab41efe8259434 | [
"MIT"
] | null | null | null | notebooks/my_second_notebook.py | jfear/vscode_demo | 08cc92a574d0ed642d99ab221cab41efe8259434 | [
"MIT"
] | null | null | null | notebooks/my_second_notebook.py | jfear/vscode_demo | 08cc92a574d0ed642d99ab221cab41efe8259434 | [
"MIT"
] | null | null | null | # %%
import numpy as np
import matplotlib.pyplot as plt
# %% [markdown]
# # My Second Notebook
# %%
print("Hello Word!")
# %%
plt.hist(np.random.normal(size=1000))
| 12.846154 | 37 | 0.652695 | 23 | 167 | 4.73913 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0.167665 | 167 | 12 | 38 | 13.916667 | 0.755396 | 0.251497 | 0 | 0 | 0 | 0 | 0.09322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.25 | 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 |
faf5b052f4e283d2eaec7f5bb69db327cc5a2b4e | 266 | py | Python | leetcode/557. Reverse Words in a String III/main.py | huangshiyu13/AlgProblems | 70e687e448ab3761d1f8d338ba10bed81b03d6e3 | [
"MIT"
] | null | null | null | leetcode/557. Reverse Words in a String III/main.py | huangshiyu13/AlgProblems | 70e687e448ab3761d1f8d338ba10bed81b03d6e3 | [
"MIT"
] | null | null | null | leetcode/557. Reverse Words in a String III/main.py | huangshiyu13/AlgProblems | 70e687e448ab3761d1f8d338ba10bed81b03d6e3 | [
"MIT"
] | 1 | 2021-05-28T03:13:01.000Z | 2021-05-28T03:13:01.000Z | class Solution(object):
def reverse(self,s):
return s[::-1]
def reverseWords(self, s):
"""
:type s: str
:rtype: str
"""
strs = s.split(' ')
strs = map(self.reverse, strs)
return ' '.join(strs) | 20.461538 | 38 | 0.466165 | 30 | 266 | 4.133333 | 0.566667 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.37594 | 266 | 13 | 39 | 20.461538 | 0.740964 | 0.090226 | 0 | 0 | 0 | 0 | 0.009479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4f028b5999f6c8399332499dc65b70b550bd9270 | 361 | py | Python | openregistry/assets/compound/subscribers/event_handlers.py | bdmbdsm/openregistry.assets.compound | 18a0b799d52275dbe03dfd7823d08ab51544efb2 | [
"Apache-2.0"
] | null | null | null | openregistry/assets/compound/subscribers/event_handlers.py | bdmbdsm/openregistry.assets.compound | 18a0b799d52275dbe03dfd7823d08ab51544efb2 | [
"Apache-2.0"
] | 17 | 2017-09-11T10:38:57.000Z | 2019-01-31T10:10:26.000Z | openregistry/assets/compound/subscribers/event_handlers.py | bdmbdsm/openregistry.assets.compound | 18a0b799d52275dbe03dfd7823d08ab51544efb2 | [
"Apache-2.0"
] | 7 | 2017-09-08T09:53:51.000Z | 2018-09-14T10:57:36.000Z | # -*- coding: utf-8 -*-
from pyramid.events import subscriber
from openregistry.assets.core.events import AssetInitializeEvent
from openregistry.assets.core.utils import get_now
@subscriber(AssetInitializeEvent, _internal_type="compound")
def tender_init_handler(event):
""" initialization handler for compound ass... | 32.818182 | 64 | 0.783934 | 43 | 361 | 6.44186 | 0.627907 | 0.086643 | 0.158845 | 0.187726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003125 | 0.113573 | 361 | 10 | 65 | 36.1 | 0.8625 | 0.182825 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
4f02c1c4285c8cb4d767750f8507a6f5921e8ea5 | 1,680 | py | Python | tensorflow/contrib/lookup/__init__.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | 6 | 2022-02-04T18:12:24.000Z | 2022-03-21T23:57:12.000Z | Lib/site-packages/tensorflow/contrib/lookup/__init__.py | shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings | 1fa4cd6a566c8745f455fc3d2273208f21f88ced | [
"bzip2-1.0.6"
] | 1 | 2021-05-20T00:58:04.000Z | 2021-05-20T00:58:04.000Z | Lib/site-packages/tensorflow/contrib/lookup/__init__.py | shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings | 1fa4cd6a566c8745f455fc3d2273208f21f88ced | [
"bzip2-1.0.6"
] | 1 | 2022-02-08T03:53:23.000Z | 2022-02-08T03:53:23.000Z | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 31.698113 | 81 | 0.756548 | 196 | 1,680 | 6.219388 | 0.540816 | 0.049221 | 0.045939 | 0.026251 | 0.16735 | 0.065628 | 0 | 0 | 0 | 0 | 0 | 0.005468 | 0.129167 | 1,680 | 52 | 82 | 32.307692 | 0.827751 | 0.792857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0.166667 | 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 |
4f09ef6c2d34d7661dc1c439c3e7d581de68e898 | 266 | py | Python | Python/List-1/same_first_last.py | LucasHenrique-dev/exerc-cios-codingbat | ff92db10387757b9a2e3f72be6b7e51824b1ffa6 | [
"MIT"
] | 2 | 2020-12-09T13:36:44.000Z | 2021-08-16T01:17:16.000Z | Python/List-1/same_first_last.py | LucasHenrique-dev/exerc-cios-codingbat | ff92db10387757b9a2e3f72be6b7e51824b1ffa6 | [
"MIT"
] | null | null | null | Python/List-1/same_first_last.py | LucasHenrique-dev/exerc-cios-codingbat | ff92db10387757b9a2e3f72be6b7e51824b1ffa6 | [
"MIT"
] | null | null | null | """
Dada uma lista numérica "nums", retorne true se ela possuir uma tamanho de pelo menos
"1" e o seu primeiro elemento coincidir com o último.
"""
def same_first_last(nums):
return len(nums) >= 1 and nums[0] == nums[-1]
print(same_first_last([1, 2, 3, 1]))
| 22.166667 | 85 | 0.684211 | 47 | 266 | 3.787234 | 0.723404 | 0.101124 | 0.146067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036866 | 0.184211 | 266 | 11 | 86 | 24.181818 | 0.78341 | 0.522556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
87897d739dd65a6072a9a0e7a26420a1a72ce149 | 1,354 | py | Python | CoinClub/Backend/CoinClub_Liquid_Exchange/Exchanges/Basic_Liquidity_Algorithm.py | WietseWind/CoinClub_Framework | 7dfb7c0d670ba2da063b087a07c3f76c320c3659 | [
"MIT"
] | 19 | 2021-04-10T02:33:37.000Z | 2022-02-08T00:40:30.000Z | CoinClub/Backend/CoinClub_Liquid_Exchange/Exchanges/Basic_Liquidity_Algorithm.py | WietseWind/CoinClub_Framework | 7dfb7c0d670ba2da063b087a07c3f76c320c3659 | [
"MIT"
] | null | null | null | CoinClub/Backend/CoinClub_Liquid_Exchange/Exchanges/Basic_Liquidity_Algorithm.py | WietseWind/CoinClub_Framework | 7dfb7c0d670ba2da063b087a07c3f76c320c3659 | [
"MIT"
] | 8 | 2021-06-18T07:54:50.000Z | 2022-02-11T03:31:48.000Z | from FORMAT import Config
class Strategies:
def __init__(self):
print("Start Algo")
#self.Liquid(1.5,0.25,10)
self.Liquid_Mean(1,0.015,3)
def Liquid(self,Price,Deviation,set,count=0):
if count == 0:
Current_Price = Price
Config.Config_file()
... | 24.618182 | 62 | 0.615953 | 166 | 1,354 | 4.837349 | 0.295181 | 0.156912 | 0.190535 | 0.219178 | 0.516812 | 0.479452 | 0.383562 | 0.383562 | 0.242839 | 0.242839 | 0 | 0.019057 | 0.263663 | 1,354 | 54 | 63 | 25.074074 | 0.786359 | 0.017725 | 0 | 0.358974 | 0 | 0 | 0.093303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.025641 | 0 | 0.410256 | 0.25641 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
879477f8badb5f3e66791b24662e822a8fe80f6b | 248 | py | Python | python/kata/6-kyu/Valid Braces/solution.py | Carlososuna11/codewars-handbook | a0e7c9ac5ad19cfaed3ad463c04616daa3fed82e | [
"MIT"
] | null | null | null | python/kata/6-kyu/Valid Braces/solution.py | Carlososuna11/codewars-handbook | a0e7c9ac5ad19cfaed3ad463c04616daa3fed82e | [
"MIT"
] | null | null | null | python/kata/6-kyu/Valid Braces/solution.py | Carlososuna11/codewars-handbook | a0e7c9ac5ad19cfaed3ad463c04616daa3fed82e | [
"MIT"
] | null | null | null | def validBraces(string):
while len(string) !=0:
if '{}' in string or '[]' in string or '()' in string:
string = string.replace('{}','').replace('()','').replace('[]','')
else:
return False
return True | 35.428571 | 78 | 0.495968 | 26 | 248 | 4.730769 | 0.538462 | 0.195122 | 0.162602 | 0.195122 | 0.227642 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0.290323 | 248 | 7 | 79 | 35.428571 | 0.693182 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87a2eacff4fa6e92465e43a4be8a6041a0f52269 | 144 | py | Python | cosmos/core/functions/exceptions/handler.py | MrFreemanser/Bot | b17e0ddf95ea475da38f8e270affd6c5709b2cb1 | [
"MIT"
] | null | null | null | cosmos/core/functions/exceptions/handler.py | MrFreemanser/Bot | b17e0ddf95ea475da38f8e270affd6c5709b2cb1 | [
"MIT"
] | null | null | null | cosmos/core/functions/exceptions/handler.py | MrFreemanser/Bot | b17e0ddf95ea475da38f8e270affd6c5709b2cb1 | [
"MIT"
] | null | null | null | import sentry_sdk as sentry
class ExceptionHandler(object):
def __init__(self, bot):
self.bot = bot
self.sentry = sentry
| 16 | 31 | 0.659722 | 18 | 144 | 5 | 0.611111 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263889 | 144 | 8 | 32 | 18 | 0.849057 | 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 |
87b091c07a58c1fe33000b564c0ff7e828ab6988 | 620 | py | Python | samples/zeromq/infrastructure_manager/databasemanager.py | Neoklosch/fog_node_prototype | d3f07d9d161d97ec2c19f66167dfb26eb9c6e616 | [
"Apache-2.0"
] | null | null | null | samples/zeromq/infrastructure_manager/databasemanager.py | Neoklosch/fog_node_prototype | d3f07d9d161d97ec2c19f66167dfb26eb9c6e616 | [
"Apache-2.0"
] | null | null | null | samples/zeromq/infrastructure_manager/databasemanager.py | Neoklosch/fog_node_prototype | d3f07d9d161d97ec2c19f66167dfb26eb9c6e616 | [
"Apache-2.0"
] | 1 | 2017-08-29T20:37:12.000Z | 2017-08-29T20:37:12.000Z | import os
from decorators.singleton import Singleton
from tinydb import TinyDB, Query
@Singleton
class DatabaseManager(object):
def __init__(self):
self.db = TinyDB(os.path.abspath('infrastructure_manager/repositories/nodes.json'))
def get_all_nodes(self):
return self.db.all()
def add_n... | 22.962963 | 91 | 0.640323 | 86 | 620 | 4.488372 | 0.418605 | 0.093264 | 0.07772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002088 | 0.227419 | 620 | 26 | 92 | 23.846154 | 0.803758 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0.074194 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
87c2dd8a7ac3009c906dc20ab1909e198348b67b | 87 | py | Python | examples/colab_python/ch3/md7/1.py | chunlin-pan/DYSTA | 2f93ba044e35b0a465dd8200bd64f85a14d73fe4 | [
"BSD-3-Clause"
] | null | null | null | examples/colab_python/ch3/md7/1.py | chunlin-pan/DYSTA | 2f93ba044e35b0a465dd8200bd64f85a14d73fe4 | [
"BSD-3-Clause"
] | null | null | null | examples/colab_python/ch3/md7/1.py | chunlin-pan/DYSTA | 2f93ba044e35b0a465dd8200bd64f85a14d73fe4 | [
"BSD-3-Clause"
] | 1 | 2020-08-26T11:46:54.000Z | 2020-08-26T11:46:54.000Z | name = "Jack"
pwd = "1234"
if name == "Jack" and pwd == "1234":
print('Hello Jack') | 21.75 | 36 | 0.563218 | 13 | 87 | 3.769231 | 0.615385 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.218391 | 87 | 4 | 37 | 21.75 | 0.602941 | 0 | 0 | 0 | 0 | 0 | 0.295455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87e0c4bb908df1c9b2a08eb7efc213da40771fe4 | 171 | py | Python | examples/measures.py | yantantether/sonarqube-py | 332c15e4e6ea41016d042c05461f6a9c786be11a | [
"MIT"
] | 4 | 2020-08-09T20:27:52.000Z | 2022-01-15T15:28:38.000Z | examples/measures.py | yantantether/sonarqube-py | 332c15e4e6ea41016d042c05461f6a9c786be11a | [
"MIT"
] | 5 | 2020-03-24T18:09:04.000Z | 2021-10-05T11:11:09.000Z | examples/measures.py | yantantether/sonarqube-py | 332c15e4e6ea41016d042c05461f6a9c786be11a | [
"MIT"
] | 2 | 2020-02-26T17:03:11.000Z | 2020-07-15T14:57:52.000Z | from .config import sq
measures = sq.get_measures(component='uk.nhs.nhsbsa.filetransformation:file-transformation-server:release', metricKeys=['ncloc'])
print(measures)
| 28.5 | 129 | 0.80117 | 21 | 171 | 6.47619 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064327 | 171 | 5 | 130 | 34.2 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.423529 | 0.394118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
87eacd4cc5bd323665aace716043ad9b7b933d8f | 104 | py | Python | tests/non_ascii.py | elihschiff/ranking-h | f636fb1c9e2d41ad26e0508c269719bfecfdf7a7 | [
"MIT"
] | null | null | null | tests/non_ascii.py | elihschiff/ranking-h | f636fb1c9e2d41ad26e0508c269719bfecfdf7a7 | [
"MIT"
] | null | null | null | tests/non_ascii.py | elihschiff/ranking-h | f636fb1c9e2d41ad26e0508c269719bfecfdf7a7 | [
"MIT"
] | null | null | null | import util
def test_non_ascii_supported():
res = util.send_query("Café")
assert len(res) > 0
| 14.857143 | 33 | 0.682692 | 16 | 104 | 4.1875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.201923 | 104 | 6 | 34 | 17.333333 | 0.795181 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e208b8ae82f59c2cf80b89cac20b03875bdde585 | 982 | py | Python | zarr/__init__.py | jmswaney/zarr | aab8b396ba970b2755a3a5d35f64e3e06843a8ef | [
"MIT"
] | null | null | null | zarr/__init__.py | jmswaney/zarr | aab8b396ba970b2755a3a5d35f64e3e06843a8ef | [
"MIT"
] | null | null | null | zarr/__init__.py | jmswaney/zarr | aab8b396ba970b2755a3a5d35f64e3e06843a8ef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# flake8: noqa
from __future__ import absolute_import, print_function, division
from zarr.core import Array
from zarr.creation import (empty, zeros, ones, full, array, empty_like, zeros_like,
ones_like, full_like, open_array, open_like, create)
from zarr.storage impo... | 49.1 | 83 | 0.700611 | 108 | 982 | 6.157407 | 0.527778 | 0.108271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002656 | 0.233198 | 982 | 19 | 84 | 51.684211 | 0.880478 | 0.034623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.066667 | 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 |
3553fb4febaf95e964ad2cccd58e2178617547c9 | 10,121 | py | Python | scrapy_ufcstats/scrapy_ufcstats/items.py | jasonminsookim/scraping_ufcstats | 81c9b2fb7c368cf4866713a5663bc0176a8bd00b | [
"MIT"
] | null | null | null | scrapy_ufcstats/scrapy_ufcstats/items.py | jasonminsookim/scraping_ufcstats | 81c9b2fb7c368cf4866713a5663bc0176a8bd00b | [
"MIT"
] | 2 | 2021-03-31T19:15:04.000Z | 2021-12-13T20:03:41.000Z | scrapy_ufcstats/scrapy_ufcstats/items.py | jasonminsookim/scraping_ufcstats | 81c9b2fb7c368cf4866713a5663bc0176a8bd00b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class ScrapyUfcstatsItem(scrapy.Item):
# define the fields for your item here like:
division = scrapy.Field()
fighter_1 = scrapy.Field()
... | 33.292763 | 59 | 0.681356 | 1,747 | 10,121 | 3.464224 | 0.043503 | 0.512558 | 0.279247 | 0.136484 | 0.843688 | 0.332122 | 0.019167 | 0.019167 | 0.019167 | 0 | 0 | 0.061414 | 0.203636 | 10,121 | 303 | 60 | 33.40264 | 0.689454 | 0.032408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.042254 | 0.003521 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 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 |
359122eaadbe36ea3bccb164c26710189653a201 | 302 | py | Python | menpo/__init__.py | yuxiang-zhou/menpo | 01deaf3808cbe7a3d9db5542ac9d9f53cd81743a | [
"BSD-3-Clause"
] | 1 | 2021-04-20T00:36:57.000Z | 2021-04-20T00:36:57.000Z | menpo/__init__.py | yuxiang-zhou/menpo | 01deaf3808cbe7a3d9db5542ac9d9f53cd81743a | [
"BSD-3-Clause"
] | 1 | 2019-03-09T16:01:46.000Z | 2019-03-09T16:01:46.000Z | menpo/__init__.py | yuxiang-zhou/menpo | 01deaf3808cbe7a3d9db5542ac9d9f53cd81743a | [
"BSD-3-Clause"
] | 1 | 2020-05-01T09:55:57.000Z | 2020-05-01T09:55:57.000Z | from . import base
from . import feature
from . import image
from . import io
from . import landmark
from . import math
from . import model
from . import shape
from . import transform
from . import visualize
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
| 18.875 | 39 | 0.771523 | 42 | 302 | 5.357143 | 0.380952 | 0.444444 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168874 | 302 | 15 | 40 | 20.133333 | 0.896414 | 0 | 0 | 0 | 0 | 0 | 0.023179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.846154 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
359165ba374e8fea41ac3e38ef50e97822ed9596 | 6,983 | py | Python | nabu/neuralnetworks/trainers/loss_functions.py | imatge-upc/speech-2018-janna | f87d942a7225d7b38e0a650d27da8276a1954c47 | [
"MIT"
] | 3 | 2019-02-15T03:28:42.000Z | 2019-06-29T14:39:58.000Z | nabu/neuralnetworks/trainers/loss_functions.py | imatge-upc/speech-2018-janna | f87d942a7225d7b38e0a650d27da8276a1954c47 | [
"MIT"
] | null | null | null | nabu/neuralnetworks/trainers/loss_functions.py | imatge-upc/speech-2018-janna | f87d942a7225d7b38e0a650d27da8276a1954c47 | [
"MIT"
] | 1 | 2019-04-19T06:58:47.000Z | 2019-04-19T06:58:47.000Z | '''@file loss_functions.py
contains functions to compute the training loss'''
import tensorflow as tf
from nabu.neuralnetworks.components import ops
def factory(loss_function):
'''factory method for the loss function
args:
loss_function: the required loss function
returns:
a callable los... | 33.252381 | 80 | 0.609051 | 839 | 6,983 | 4.83671 | 0.1323 | 0.0621 | 0.051257 | 0.070971 | 0.742977 | 0.726713 | 0.713652 | 0.696649 | 0.65796 | 0.644899 | 0 | 0.002537 | 0.322641 | 6,983 | 209 | 81 | 33.411483 | 0.855391 | 0.360876 | 0 | 0.421687 | 0 | 0 | 0.039665 | 0.011231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0 | 0.024096 | 0 | 0.180723 | 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 |
35a275ebb5ca6c8a3549e15c8c920c75229d6c43 | 231 | py | Python | woollylib/bp/optimizer/backpropagation.py | woolly-of-cv/woolly-lib | e77a6d035349f4f98141aa7832779dfcbf79a1a8 | [
"MIT"
] | null | null | null | woollylib/bp/optimizer/backpropagation.py | woolly-of-cv/woolly-lib | e77a6d035349f4f98141aa7832779dfcbf79a1a8 | [
"MIT"
] | null | null | null | woollylib/bp/optimizer/backpropagation.py | woolly-of-cv/woolly-lib | e77a6d035349f4f98141aa7832779dfcbf79a1a8 | [
"MIT"
] | null | null | null | import torch
from torch.optim import SGD
torch.manual_seed(1)
def get_sgd_optimizer(model, lr, momentum=0, weight_decay=0):
return SGD(model.parameters(), lr=lr, momentum=momentum, weight_decay=weight_decay, nesterov=True)
| 23.1 | 102 | 0.779221 | 36 | 231 | 4.833333 | 0.583333 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014634 | 0.112554 | 231 | 9 | 103 | 25.666667 | 0.834146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 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 | 1 | 0 | 0 | 0 | 3 |
35ab8222739c02c547653f6613b559cbc7312763 | 832 | py | Python | irec/offline_experiments/evaluation_policies/base.py | irec-org/irec | a7ec8a53dcb6489c31f64d7192720baca50e0049 | [
"MIT"
] | 2 | 2022-02-09T17:50:20.000Z | 2022-02-09T17:50:22.000Z | irec/offline_experiments/evaluation_policies/base.py | irec-org/irec | a7ec8a53dcb6489c31f64d7192720baca50e0049 | [
"MIT"
] | 1 | 2022-03-16T15:29:03.000Z | 2022-03-17T01:20:02.000Z | irec/offline_experiments/evaluation_policies/base.py | irec-org/irec | a7ec8a53dcb6489c31f64d7192720baca50e0049 | [
"MIT"
] | null | null | null | from typing import Tuple
from irec.environment.dataset import Dataset
from irec.recommendation.agents.base import Agent
"""Evaluation Policies.
This module implements several assessment policies that will define how
to assess the agent after the recommendation process.
"""
class EvaluationPolicy:
"""EvaluationP... | 26 | 73 | 0.658654 | 90 | 832 | 6.022222 | 0.544444 | 0.103321 | 0.099631 | 0.092251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276442 | 832 | 32 | 74 | 26 | 0.900332 | 0.36899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
35b2877a11a668db23c5c2e3c67579487aef07ad | 511 | py | Python | api/search_indexes.py | a0919610611/Library | 0787afeab535089b9609509a40598dab4f308c06 | [
"MIT"
] | null | null | null | api/search_indexes.py | a0919610611/Library | 0787afeab535089b9609509a40598dab4f308c06 | [
"MIT"
] | 2 | 2016-12-01T07:36:20.000Z | 2016-12-01T10:36:44.000Z | api/search_indexes.py | a0919610611/Library | 0787afeab535089b9609509a40598dab4f308c06 | [
"MIT"
] | 3 | 2016-11-28T17:04:29.000Z | 2016-11-30T17:21:23.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from api.models import Book
from haystack import indexes
class BookIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
title = indexes.CharField(model_attr='title')
author = indexes.CharField(model_attr='a... | 28.388889 | 62 | 0.710372 | 66 | 511 | 5.393939 | 0.590909 | 0.179775 | 0.176966 | 0.210674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004684 | 0.164384 | 511 | 17 | 63 | 30.058824 | 0.82904 | 0.084149 | 0 | 0 | 0 | 0 | 0.032189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.181818 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
35b79ddbdb2260e561ce75361cf15af58d8e5829 | 1,589 | py | Python | scripts/merchantLogin.py | FrankWhoee/Serv | 2b4e343cf7067c27dd1dbcffa5557bb7630acc19 | [
"MIT"
] | 2 | 2020-01-12T09:58:09.000Z | 2020-01-13T00:02:08.000Z | scripts/merchantLogin.py | FrankWhoee/Serv | 2b4e343cf7067c27dd1dbcffa5557bb7630acc19 | [
"MIT"
] | 3 | 2021-02-08T20:39:29.000Z | 2021-06-02T00:51:48.000Z | scripts/merchantLogin.py | FrankWhoee/Serv | 2b4e343cf7067c27dd1dbcffa5557bb7630acc19 | [
"MIT"
] | 1 | 2020-01-13T04:36:57.000Z | 2020-01-13T04:36:57.000Z | import requests
import os
import json
import datetime
import time
import phonenumbers
from google.cloud import firestore
from flask import Flask, request, render_template, send_from_directory, session, flash, redirect
from flask_wtf import FlaskForm
from wtforms import SelectMultipleField, TextAreaField, SubmitField, S... | 42.945946 | 125 | 0.717432 | 179 | 1,589 | 6.284916 | 0.441341 | 0.04 | 0.030222 | 0.048 | 0.142222 | 0.142222 | 0.08 | 0 | 0 | 0 | 0 | 0.001513 | 0.16803 | 1,589 | 37 | 126 | 42.945946 | 0.848714 | 0.023285 | 0 | 0.125 | 0 | 0 | 0.11412 | 0.014184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.09375 | 0.4375 | 0 | 0.71875 | 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 |
35be07543b268930d457fb6678a19a81c6bd1bc4 | 259 | py | Python | backpack/core/derivatives/conv_transpose2d.py | jabader97/backpack | 089daafa0d611e13901fd7ecf8a0d708ce7a5928 | [
"MIT"
] | 395 | 2019-10-04T09:37:52.000Z | 2022-03-29T18:00:56.000Z | backpack/core/derivatives/conv_transpose2d.py | jabader97/backpack | 089daafa0d611e13901fd7ecf8a0d708ce7a5928 | [
"MIT"
] | 78 | 2019-10-11T18:56:43.000Z | 2022-03-23T01:49:54.000Z | backpack/core/derivatives/conv_transpose2d.py | jabader97/backpack | 089daafa0d611e13901fd7ecf8a0d708ce7a5928 | [
"MIT"
] | 50 | 2019-10-03T16:31:10.000Z | 2022-03-15T19:36:14.000Z | """Partial derivatives for `torch.nn.ConvTranspose2d`."""
from backpack.core.derivatives.conv_transposend import ConvTransposeNDDerivatives
class ConvTranspose2DDerivatives(ConvTransposeNDDerivatives):
def __init__(self):
super().__init__(N=2)
| 28.777778 | 81 | 0.791506 | 24 | 259 | 8.166667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.108108 | 259 | 8 | 82 | 32.375 | 0.835498 | 0.196911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
35c38a80e8dbc2c9cea18c0c12718accfafde117 | 1,716 | py | Python | oslo_messaging/_drivers/zmq_driver/client/zmq_response.py | kbespalov/state.oslo.messaging | a5bedf7f84ee0762e0cfdef583cf494c3b80b843 | [
"Apache-1.1"
] | null | null | null | oslo_messaging/_drivers/zmq_driver/client/zmq_response.py | kbespalov/state.oslo.messaging | a5bedf7f84ee0762e0cfdef583cf494c3b80b843 | [
"Apache-1.1"
] | null | null | null | oslo_messaging/_drivers/zmq_driver/client/zmq_response.py | kbespalov/state.oslo.messaging | a5bedf7f84ee0762e0cfdef583cf494c3b80b843 | [
"Apache-1.1"
] | null | null | null | # Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 29.586207 | 78 | 0.670746 | 236 | 1,716 | 4.59322 | 0.381356 | 0.045203 | 0.064576 | 0.02952 | 0.0369 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006275 | 0.256993 | 1,716 | 57 | 79 | 30.105263 | 0.843922 | 0.337413 | 0 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.03125 | 0.21875 | 0.53125 | 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 |
35d3fd63ba0229f2d4a735c7853feb94e977b8ef | 994 | py | Python | pytoda/datasets/__init__.py | PaccMann/paccmann_datasets | 0cb0cee349ffab8e227f09f7df0a8bca6a71f22e | [
"MIT"
] | 14 | 2019-11-01T12:45:56.000Z | 2022-03-11T15:38:31.000Z | pytoda/datasets/__init__.py | PaccMann/paccmann_datasets | 0cb0cee349ffab8e227f09f7df0a8bca6a71f22e | [
"MIT"
] | 74 | 2019-11-12T19:36:27.000Z | 2022-02-28T08:19:37.000Z | pytoda/datasets/__init__.py | PaccMann/paccmann_datasets | 0cb0cee349ffab8e227f09f7df0a8bca6a71f22e | [
"MIT"
] | 2 | 2021-08-14T11:15:07.000Z | 2021-08-25T06:42:01.000Z | """Initialize the dataset module."""
from .annotated_dataset import AnnotatedDataset # noqa
from .base_dataset import ConcatKeyDataset, DatasetDelegator, KeyDataset # noqa
from .distributional_dataset import DistributionalDataset # noqa
from .drug_affinity_dataset import DrugAffinityDataset # noqa
from .drug_sensit... | 47.333333 | 80 | 0.832998 | 96 | 994 | 8.40625 | 0.447917 | 0.193309 | 0.04461 | 0.057001 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12173 | 994 | 20 | 81 | 49.7 | 0.924399 | 0.096579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.684211 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
35de99c4d3b14035874556ceae965a85ed893b1f | 298 | py | Python | tests/asgi/conftest.py | glennlaughlin/ariadne-relay | ed1c5c8aa68ac160c5fddae2d010cfc8fb52528d | [
"BSD-3-Clause"
] | 18 | 2021-05-24T22:25:11.000Z | 2022-03-31T10:28:50.000Z | tests/asgi/conftest.py | glennlaughlin/ariadne-relay | ed1c5c8aa68ac160c5fddae2d010cfc8fb52528d | [
"BSD-3-Clause"
] | 15 | 2021-05-23T20:59:12.000Z | 2022-03-04T11:12:49.000Z | tests/asgi/conftest.py | glennlaughlin/ariadne-relay | ed1c5c8aa68ac160c5fddae2d010cfc8fb52528d | [
"BSD-3-Clause"
] | 5 | 2021-05-25T13:28:12.000Z | 2022-02-02T08:51:34.000Z | from ariadne.asgi import GraphQL
from graphql import GraphQLSchema
import pytest
from starlette.testclient import TestClient
@pytest.fixture
def app(schema: GraphQLSchema) -> GraphQL:
return GraphQL(schema)
@pytest.fixture
def client(app: GraphQL) -> TestClient:
return TestClient(app)
| 19.866667 | 43 | 0.785235 | 36 | 298 | 6.5 | 0.416667 | 0.111111 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14094 | 298 | 14 | 44 | 21.285714 | 0.914063 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
ea125b7bee9cb6877b48a2243747474140b583b2 | 366 | py | Python | common/models.py | liguo941001/Back-stage | 484498c37381abdb81a70bc9e697f3462a3988d8 | [
"MIT"
] | null | null | null | common/models.py | liguo941001/Back-stage | 484498c37381abdb81a70bc9e697f3462a3988d8 | [
"MIT"
] | null | null | null | common/models.py | liguo941001/Back-stage | 484498c37381abdb81a70bc9e697f3462a3988d8 | [
"MIT"
] | null | null | null | # coding: utf-8
from common.gvars import db
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
age = db.Column(db.Integer)
name = db.Column(db.String)
gender = db.Column(db.Boolean) # 性别, True: Male, False: Female
birthday = db.Column(db.DateTime) # ... | 24.4 | 67 | 0.655738 | 54 | 366 | 4.351852 | 0.611111 | 0.204255 | 0.255319 | 0.144681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003448 | 0.20765 | 366 | 14 | 68 | 26.142857 | 0.806897 | 0.147541 | 0 | 0 | 0 | 0 | 0.016287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 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 |
ea1b11933cda432136ad2fccecd69b3fdddbd0b9 | 2,046 | py | Python | 10_bargain_box_kung_fu/DHCP Hijack.py | mumbo-pro/network-penetration | 30fcc70a0bdb094e2339951785d4d72b0373a71f | [
"MIT"
] | 3 | 2020-07-25T13:36:02.000Z | 2021-06-03T19:59:13.000Z | 10_bargain_box_kung_fu/DHCP Hijack.py | mumbo-pro/understanding-network-hacks | 30fcc70a0bdb094e2339951785d4d72b0373a71f | [
"MIT"
] | null | null | null | 10_bargain_box_kung_fu/DHCP Hijack.py | mumbo-pro/understanding-network-hacks | 30fcc70a0bdb094e2339951785d4d72b0373a71f | [
"MIT"
] | 2 | 2019-07-12T10:04:23.000Z | 2019-07-18T17:57:59.000Z | #!/usr/bin/python 2 3 import sys 4 import getopt 5 import random 6 import scapy.all as scapy 7 8 dev = "eth0" 9 gateway = None 10 nameserver = None 11 dhcpserver = None 12 client_net = "192.168.1." 13 filter = "udp port 67" 14 15 def handle_packet(packet): 16 eth = packet.getlayer(scapy.Ether) 17 ip = packet.getlayer(... | 409.2 | 968 | 0.699413 | 390 | 2,046 | 3.602564 | 0.5 | 0.049822 | 0.067616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13237 | 0.154448 | 2,046 | 5 | 969 | 409.2 | 0.679769 | 0.764418 | 0 | 0 | 0 | 0 | 0.072765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea5148959d6bbfcaf469c6e744ace5b4ae147a88 | 1,797 | py | Python | ecl/virtual_network_appliance/v1/virtual_network_appliance_plan.py | nttcom/eclsdk | 866bea3290806332f677344982f39cb8e5155480 | [
"Apache-2.0"
] | 5 | 2017-04-07T06:23:04.000Z | 2019-11-19T00:52:34.000Z | ecl/virtual_network_appliance/v1/virtual_network_appliance_plan.py | nttcom/eclsdk | 866bea3290806332f677344982f39cb8e5155480 | [
"Apache-2.0"
] | 16 | 2018-09-12T11:14:40.000Z | 2021-04-19T09:02:44.000Z | ecl/virtual_network_appliance/v1/virtual_network_appliance_plan.py | nttcom/eclsdk | 866bea3290806332f677344982f39cb8e5155480 | [
"Apache-2.0"
] | 14 | 2017-05-11T14:26:26.000Z | 2021-07-14T14:00:06.000Z | # -*- coding: utf-8 -*-
from . import base
from ecl.virtual_network_appliance import virtual_network_appliance_service
from ecl import resource2
class VirtualNetworkAppliancePlan(base.VirtualNetworkApplianceBaseResource):
resources_key = "virtual_network_appliance_plans"
resource_key = "virtual_network_appli... | 40.840909 | 77 | 0.745687 | 201 | 1,797 | 6.477612 | 0.318408 | 0.172043 | 0.282642 | 0.228111 | 0.239631 | 0.061444 | 0 | 0 | 0 | 0 | 0 | 0.010745 | 0.171397 | 1,797 | 43 | 78 | 41.790698 | 0.863667 | 0.344463 | 0 | 0 | 0 | 0 | 0.188306 | 0.079966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.956522 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ea637c4c067a3b305be3d869b14d0abe63450ae0 | 318 | py | Python | pages/migrations/0008_basepage_body.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 4 | 2017-01-29T00:38:41.000Z | 2019-09-04T14:30:24.000Z | pages/migrations/0008_basepage_body.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 74 | 2017-10-02T04:42:54.000Z | 2022-01-13T00:44:16.000Z | pages/migrations/0008_basepage_body.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 3 | 2017-03-24T23:26:46.000Z | 2019-10-21T01:16:03.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-24 17:44
from __future__ import unicode_literals
from django.db import migrations
import wagtail.wagtailcore.fields
class Migration(migrations.Migration):
dependencies = [
('pages', '0007_populate_pages'),
]
operations = [
]
| 18.705882 | 48 | 0.685535 | 39 | 318 | 5.410256 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082677 | 0.201258 | 318 | 16 | 49 | 19.875 | 0.748032 | 0.213836 | 0 | 0 | 1 | 0 | 0.097166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ea74b05e2f48ffe18da7f4eee5b3647e00805c7e | 55,485 | py | Python | pysnmp/Nortel-MsCarrier-MscPassport-TrunksMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Nortel-MsCarrier-MscPassport-TrunksMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Nortel-MsCarrier-MscPassport-TrunksMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Nortel-MsCarrier-MscPassport-TrunksMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-TrunksMIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:19:50 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4... | 146.398417 | 9,140 | 0.771416 | 5,985 | 55,485 | 7.151546 | 0.062657 | 0.009813 | 0.013177 | 0.017569 | 0.464044 | 0.422036 | 0.395168 | 0.385122 | 0.359049 | 0.321363 | 0 | 0.086621 | 0.080346 | 55,485 | 378 | 9,141 | 146.785714 | 0.75219 | 0.006668 | 0 | 0 | 0 | 0 | 0.135067 | 0.063605 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.172507 | 0.024259 | 0 | 0.024259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ea9284ea7363a4eedfb14c47fa8bea30f3158150 | 2,252 | py | Python | tianshou/env/maenv.py | Leeqh666/tianshou | f71db624bee67b6170caaa06b0d3f68901b87985 | [
"MIT"
] | 1 | 2021-03-10T12:02:01.000Z | 2021-03-10T12:02:01.000Z | tianshou/env/maenv.py | Leeqh666/tianshou | f71db624bee67b6170caaa06b0d3f68901b87985 | [
"MIT"
] | null | null | null | tianshou/env/maenv.py | Leeqh666/tianshou | f71db624bee67b6170caaa06b0d3f68901b87985 | [
"MIT"
] | 1 | 2020-08-31T05:51:05.000Z | 2020-08-31T05:51:05.000Z | import gym
import numpy as np
from typing import Tuple
from abc import ABC, abstractmethod
class MultiAgentEnv(ABC, gym.Env):
"""The interface for multi-agent environments. Multi-agent environments
must be wrapped as :class:`~tianshou.env.MultiAgentEnv`. Here is the usage:
::
env = MultiAgentEnv(... | 37.533333 | 79 | 0.613233 | 292 | 2,252 | 4.691781 | 0.44863 | 0.030657 | 0.021898 | 0.026277 | 0.046715 | 0.046715 | 0.046715 | 0.046715 | 0 | 0 | 0 | 0.001262 | 0.296181 | 2,252 | 59 | 80 | 38.169492 | 0.863091 | 0.738011 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.214286 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ea95d7bfcfc2077db41994f2969fdb7227f51bf3 | 343 | py | Python | 03 - Loops/go_through.py | MarquezLuis96/Python-Basic-Course | 8441bbf671df23c1b309f7c9a596657b9d84c0e9 | [
"MIT"
] | null | null | null | 03 - Loops/go_through.py | MarquezLuis96/Python-Basic-Course | 8441bbf671df23c1b309f7c9a596657b9d84c0e9 | [
"MIT"
] | null | null | null | 03 - Loops/go_through.py | MarquezLuis96/Python-Basic-Course | 8441bbf671df23c1b309f7c9a596657b9d84c0e9 | [
"MIT"
] | null | null | null | def ask_name():
name = input("Write your name: ")
return name
def go_through(name):
for i in name:
print(i)
print("\n")
def go_Through_(name):
for i in name:
print(i.upper())
print("\n")
def run():
n = ask_name()
go_through(n)
go_Through_(n)
if __name__ =... | 13.192308 | 37 | 0.542274 | 50 | 343 | 3.4 | 0.36 | 0.211765 | 0.141176 | 0.188235 | 0.376471 | 0.376471 | 0.376471 | 0.376471 | 0.376471 | 0.376471 | 0 | 0 | 0.309038 | 343 | 26 | 38 | 13.192308 | 0.7173 | 0 | 0 | 0.235294 | 0 | 0 | 0.084302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0 | 0.294118 | 0.235294 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5760272e8acca699fefdc7556a5a826acdb360b6 | 106 | py | Python | src/522. Longest Uncommon Subsequence II.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/522. Longest Uncommon Subsequence II.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/522. Longest Uncommon Subsequence II.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def findLUSlength(self, strs):
"""
:type strs: List[str]
:rtype: int
"""
| 15.142857 | 31 | 0.622642 | 13 | 106 | 5.076923 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198113 | 106 | 6 | 32 | 17.666667 | 0.776471 | 0.311321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
577b106be710187dbe6267878d6b12bfc1a97f7c | 2,997 | py | Python | utils/palette_davis.py | Nitin-Mane/dense-ulearn-vos | 9e39d359a53a2343522ce5820fdf27223a4ffcb4 | [
"Apache-2.0"
] | 157 | 2021-11-11T13:45:48.000Z | 2022-03-14T03:06:09.000Z | utils/palette_davis.py | Nitin-Mane/dense-ulearn-vos | 9e39d359a53a2343522ce5820fdf27223a4ffcb4 | [
"Apache-2.0"
] | 11 | 2021-11-20T11:53:47.000Z | 2022-03-30T01:51:56.000Z | utils/palette_davis.py | Nitin-Mane/dense-ulearn-vos | 9e39d359a53a2343522ce5820fdf27223a4ffcb4 | [
"Apache-2.0"
] | 16 | 2021-11-12T09:19:45.000Z | 2022-03-16T10:32:39.000Z | palette_str = '''0 0 0
128 0 0
0 128 0
128 128 0
0 0 128
128 0 128
0 128 128
128 128 128
64 0 0
191 0 0
64 128 0
191 128 0
64 0 128
191 0 128
64 128 128
191 128 128
0 64 0
128 64 0
0 191 0
128 191 0
0 64 128
128 64 128
22 22 22
23 23 23
24 24 24
25 25 25
26 26 26
27 27 27
28 28 28
29 29 29
30 30 30
31 31 31
32 32 32
33... | 11.438931 | 93 | 0.723724 | 801 | 2,997 | 2.705368 | 0.318352 | 0.030457 | 0.016613 | 0.008306 | 0.041994 | 0.010152 | 0 | 0 | 0 | 0 | 0 | 0.912846 | 0.264932 | 2,997 | 261 | 94 | 11.482759 | 0.070813 | 0 | 0 | 0.007692 | 0 | 0 | 0.928262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007692 | 0 | 0.007692 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57b3af0b7551d6b5b74b00688f19ef617fb66ec4 | 708 | py | Python | run_crawler.py | ahmedshahriar/bd-ponno | 4ffd537d66ed05fe297a4d81d5ea414fbcdaa26c | [
"Apache-2.0"
] | 3 | 2022-03-09T19:29:36.000Z | 2022-03-17T03:01:50.000Z | run_crawler.py | ahmedshahriar/bd-ponno | 4ffd537d66ed05fe297a4d81d5ea414fbcdaa26c | [
"Apache-2.0"
] | null | null | null | run_crawler.py | ahmedshahriar/bd-ponno | 4ffd537d66ed05fe297a4d81d5ea414fbcdaa26c | [
"Apache-2.0"
] | null | null | null | import logging
import subprocess
def subprocess_cmd(command):
process = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
proc_stdout = process.communicate()[0].strip()
logging.info(proc_stdout)
subprocess_cmd('python manage.py startech_crawl')
subprocess_cmd('python manage.py ryans_crawl')
... | 33.714286 | 75 | 0.809322 | 98 | 708 | 5.602041 | 0.326531 | 0.260474 | 0.346084 | 0.455373 | 0.57377 | 0.52459 | 0 | 0 | 0 | 0 | 0 | 0.001546 | 0.086158 | 708 | 20 | 76 | 35.4 | 0.846986 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 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 |
57bf71fe451b338a0d39730b5c88d3ae20f3b376 | 135 | py | Python | shared_schema_tenants/apps.py | rishikesh67/django-shared-schema-tenants | ed3bcddf80a7838979fe1be2045dfa16b545beed | [
"MIT"
] | 20 | 2017-08-29T02:36:32.000Z | 2021-12-06T21:29:46.000Z | shared_schema_tenants/apps.py | rishikesh67/django-shared-schema-tenants | ed3bcddf80a7838979fe1be2045dfa16b545beed | [
"MIT"
] | 35 | 2017-08-18T06:28:31.000Z | 2021-09-02T01:53:09.000Z | shared_schema_tenants/apps.py | rishikesh67/django-shared-schema-tenants | ed3bcddf80a7838979fe1be2045dfa16b545beed | [
"MIT"
] | 9 | 2018-06-17T22:04:13.000Z | 2022-03-18T09:27:18.000Z | # -*- coding: utf-8
from django.apps import AppConfig
class SharedSchemaTenantsConfig(AppConfig):
name = 'shared_schema_tenants'
| 19.285714 | 43 | 0.762963 | 15 | 135 | 6.733333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.140741 | 135 | 6 | 44 | 22.5 | 0.862069 | 0.125926 | 0 | 0 | 0 | 0 | 0.181034 | 0.181034 | 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 |
57d3ee15d15183fe3bae46becf2c542417d457ff | 186 | py | Python | clearml/utilities/pigar/log.py | arielleoren/clearml | 01f0be9895272c483129bab784a43cbd002022a7 | [
"Apache-2.0"
] | 2,097 | 2019-06-11T14:36:25.000Z | 2020-12-21T03:52:59.000Z | clearml/utilities/pigar/log.py | arielleoren/clearml | 01f0be9895272c483129bab784a43cbd002022a7 | [
"Apache-2.0"
] | 347 | 2020-12-23T22:38:48.000Z | 2022-03-31T20:01:06.000Z | clearml/utilities/pigar/log.py | arielleoren/clearml | 01f0be9895272c483129bab784a43cbd002022a7 | [
"Apache-2.0"
] | 256 | 2019-06-11T14:36:28.000Z | 2020-12-18T08:32:47.000Z | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
import logging.handlers
logger = logging.getLogger('pigar')
logger.setLevel(logging.WARNING)
| 18.6 | 64 | 0.768817 | 22 | 186 | 6.227273 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.112903 | 186 | 9 | 65 | 20.666667 | 0.824242 | 0.112903 | 0 | 0 | 0 | 0 | 0.030675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
57f3807d2fade643b8d849ed63166d5e6d34f287 | 219 | py | Python | app/templates/template/shared/app/config.py | jamrizzi/generator-cfoundation | d7913ecfaaffb22920a730f375e680590b2cf6bc | [
"MIT"
] | null | null | null | app/templates/template/shared/app/config.py | jamrizzi/generator-cfoundation | d7913ecfaaffb22920a730f375e680590b2cf6bc | [
"MIT"
] | null | null | null | app/templates/template/shared/app/config.py | jamrizzi/generator-cfoundation | d7913ecfaaffb22920a730f375e680590b2cf6bc | [
"MIT"
] | null | null | null | NAME = '<%= name %>'
AUTHOR = '<%= authorName %>'
VERSION = '<%= version %>'
COPYRIGHT = '<%= moment().format('YYYY') %>'
BANNER = '''
dot v''' + VERSION + '''
Copyright (c) ''' + COPYRIGHT + ' ' + AUTHOR + '''
'''
| 16.846154 | 50 | 0.479452 | 18 | 219 | 5.833333 | 0.666667 | 0.304762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210046 | 219 | 12 | 51 | 18.25 | 0.606936 | 0 | 0 | 0 | 0 | 0 | 0.406393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
17a7cc124969e4d8a66b176368efcd282e2400dc | 3,196 | py | Python | utils/bbox_ops.py | Tenvence/instance-set-prediction-net | 3dca2853a3da479264b9e55da3fe1e7d522a2079 | [
"Apache-2.0"
] | null | null | null | utils/bbox_ops.py | Tenvence/instance-set-prediction-net | 3dca2853a3da479264b9e55da3fe1e7d522a2079 | [
"Apache-2.0"
] | null | null | null | utils/bbox_ops.py | Tenvence/instance-set-prediction-net | 3dca2853a3da479264b9e55da3fe1e7d522a2079 | [
"Apache-2.0"
] | null | null | null | import torch
import albumentations.augmentations.bbox_utils as bbox_utils
def convert_bboxes_xywh_xyxy(bboxes):
cx, cy, w, h = bboxes.unbind(dim=-1)
b = [cx - 0.5 * w, cy - 0.5 * h, cx + 0.5 * w, cy + 0.5 * h]
return torch.stack(b, dim=-1)
def get_area(bboxes):
wh = (bboxes[..., 2:] - bboxes[..., :2... | 36.735632 | 130 | 0.627034 | 472 | 3,196 | 4.103814 | 0.152542 | 0.130098 | 0.067114 | 0.065049 | 0.80795 | 0.755292 | 0.703149 | 0.660299 | 0.531234 | 0.495096 | 0 | 0.04894 | 0.188048 | 3,196 | 86 | 131 | 37.162791 | 0.697495 | 0.116395 | 0 | 0.346154 | 0 | 0 | 0.00569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.038462 | 0 | 0.346154 | 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 |
17ac8eb3cddfff839498e1f10cc166ebbeda0e10 | 77 | py | Python | pynonymizer/__init__.py | rwnx/pynonymizer | c4054aabe49e2e61c89d309e5b622f87203c18bf | [
"MIT"
] | 5 | 2021-11-19T17:43:27.000Z | 2022-03-22T11:02:13.000Z | pynonymizer/__init__.py | rwnx/pynonymizer | c4054aabe49e2e61c89d309e5b622f87203c18bf | [
"MIT"
] | 15 | 2021-11-19T14:42:45.000Z | 2022-02-23T22:07:32.000Z | pynonymizer/__init__.py | rwnx/pynonymizer | c4054aabe49e2e61c89d309e5b622f87203c18bf | [
"MIT"
] | 4 | 2021-11-30T06:48:38.000Z | 2022-02-17T14:42:42.000Z | __version__ = "1.22.0"
from pynonymizer.pynonymize import pynonymize as run
| 19.25 | 52 | 0.792208 | 11 | 77 | 5.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0.12987 | 77 | 3 | 53 | 25.666667 | 0.791045 | 0 | 0 | 0 | 0 | 0 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
17d42e9445351157660a12d4b769bf96458fedcd | 71 | py | Python | src/inois/utils/application_mode_keys.py | rmcmillan4/inois-python-client | eb0835e775c14498c180728dce39e2abd244d304 | [
"MIT"
] | null | null | null | src/inois/utils/application_mode_keys.py | rmcmillan4/inois-python-client | eb0835e775c14498c180728dce39e2abd244d304 | [
"MIT"
] | null | null | null | src/inois/utils/application_mode_keys.py | rmcmillan4/inois-python-client | eb0835e775c14498c180728dce39e2abd244d304 | [
"MIT"
] | null | null | null | class ApplicationModeKeys:
SEARCH = "search"
UPLOAD = "upload"
| 17.75 | 26 | 0.676056 | 6 | 71 | 8 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225352 | 71 | 3 | 27 | 23.666667 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
aa04d2589752c0ec34e39eb5b5d1516be5c212be | 6,505 | py | Python | cogs/snakes.py | pratham1729/PAPdevs | 47ccecaf27a7a34101edaa6180dcf05a6f554619 | [
"MIT"
] | 4 | 2022-03-11T14:35:45.000Z | 2022-03-13T08:07:48.000Z | cogs/snakes.py | pratham1729/PAPdevs | 47ccecaf27a7a34101edaa6180dcf05a6f554619 | [
"MIT"
] | null | null | null | cogs/snakes.py | pratham1729/PAPdevs | 47ccecaf27a7a34101edaa6180dcf05a6f554619 | [
"MIT"
] | 2 | 2022-03-13T08:39:21.000Z | 2022-03-13T16:47:56.000Z | import discord
from discord.ext import commands
import random
player1=""
player2=""
turn=""
p1=0
p2=0
gameOver=True
board=[]
snake={45:6,60:19,77:17,87:37,89:11,94:69,99:9}
ladder={7:26,16:39,13:55,40:78,44:76,47:68,49:91,61:96}
class cog6(commands.Cog):
def __init__(self,client):
self.client=client
@c... | 43.366667 | 154 | 0.529131 | 722 | 6,505 | 4.470914 | 0.174515 | 0.315985 | 0.505576 | 0.644052 | 0.583024 | 0.549566 | 0.549566 | 0.549566 | 0.549566 | 0.549566 | 0 | 0.040411 | 0.326672 | 6,505 | 150 | 155 | 43.366667 | 0.696575 | 0 | 0 | 0.507353 | 0 | 0 | 0.36182 | 0.004304 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.022059 | 0 | 0.044118 | 0.007353 | 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 |
aa051144f6c1e239099d0dce839569bfaabcadd8 | 250 | py | Python | reviews/managers.py | JostCrow/django-reviews | c7dd403e839352bc3a8cd8446abf718e93aa3ab7 | [
"BSD-3-Clause"
] | 27 | 2015-04-27T18:29:07.000Z | 2021-08-13T08:00:49.000Z | reviews/managers.py | JostCrow/django-reviews | c7dd403e839352bc3a8cd8446abf718e93aa3ab7 | [
"BSD-3-Clause"
] | 6 | 2015-05-22T10:02:24.000Z | 2021-02-18T07:35:46.000Z | reviews/managers.py | JostCrow/django-reviews | c7dd403e839352bc3a8cd8446abf718e93aa3ab7 | [
"BSD-3-Clause"
] | 9 | 2015-05-22T15:16:31.000Z | 2021-05-09T14:56:18.000Z | # django imports
from django.db import models
class ActiveManager(models.Manager):
"""
An extended manager to return active objects.
"""
def active(self):
return super(ActiveManager, self).get_queryset().filter(active=True)
| 22.727273 | 76 | 0.7 | 30 | 250 | 5.8 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196 | 250 | 10 | 77 | 25 | 0.865672 | 0.244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 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 |
aa2cdff37803adcbb5076285d29b0ef8abff35e2 | 347 | py | Python | spec/python/test_nav_parent_false2.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 11 | 2018-04-01T03:58:15.000Z | 2021-08-14T09:04:55.000Z | spec/python/test_nav_parent_false2.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 73 | 2016-07-20T10:27:15.000Z | 2020-12-17T18:56:46.000Z | spec/python/test_nav_parent_false2.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 37 | 2016-08-15T08:25:56.000Z | 2021-08-28T14:48:46.000Z | # Autogenerated from KST: please remove this line if doing any edits by hand!
import unittest
from nav_parent_false2 import NavParentFalse2
class TestNavParentFalse2(unittest.TestCase):
def test_nav_parent_false2(self):
with NavParentFalse2.from_file('src/fixed_struct.bin') as r:
self.assertE... | 31.545455 | 77 | 0.766571 | 47 | 347 | 5.510638 | 0.787234 | 0.069498 | 0.11583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024138 | 0.164265 | 347 | 10 | 78 | 34.7 | 0.868966 | 0.216138 | 0 | 0 | 1 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
aa31cd86888c10efc040d734667d1e6dca5d8194 | 5,969 | py | Python | arekit/contrib/bert/io_utils.py | nicolay-r/AREk | 19c39ec0dc9a17464cade03b9c4da0c6d1d21191 | [
"MIT"
] | null | null | null | arekit/contrib/bert/io_utils.py | nicolay-r/AREk | 19c39ec0dc9a17464cade03b9c4da0c6d1d21191 | [
"MIT"
] | null | null | null | arekit/contrib/bert/io_utils.py | nicolay-r/AREk | 19c39ec0dc9a17464cade03b9c4da0c6d1d21191 | [
"MIT"
] | null | null | null | from os.path import join, exists
from arekit.common.data.input.writers.tsv import TsvWriter
from arekit.common.data.row_ids.multiple import MultipleIDProvider
from arekit.common.data.storages.base import BaseRowsStorage
from arekit.common.data.views.opinions import BaseOpinionStorageView
from arekit.common.data.views.... | 40.060403 | 107 | 0.674317 | 698 | 5,969 | 5.468481 | 0.232092 | 0.064972 | 0.028294 | 0.040084 | 0.433063 | 0.365208 | 0.33115 | 0.210113 | 0.159287 | 0.089075 | 0 | 0 | 0.2451 | 5,969 | 148 | 108 | 40.331081 | 0.847093 | 0.151282 | 0 | 0.149425 | 0 | 0 | 0.040759 | 0.028854 | 0 | 0 | 0 | 0.013514 | 0.103448 | 1 | 0.206897 | false | 0 | 0.103448 | 0.091954 | 0.54023 | 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 |
aa45b4d05c0b7d0c94acdd0a3a66a28457857fe6 | 421 | py | Python | PEInfo/setup.py | winest/PEInfo | d3589d10208670b53f4f1785cdf6f44b2143b8fe | [
"BSD-3-Clause"
] | 3 | 2020-12-18T05:52:15.000Z | 2021-12-31T06:25:53.000Z | PEInfo/setup.py | winest/PEInfo | d3589d10208670b53f4f1785cdf6f44b2143b8fe | [
"BSD-3-Clause"
] | null | null | null | PEInfo/setup.py | winest/PEInfo | d3589d10208670b53f4f1785cdf6f44b2143b8fe | [
"BSD-3-Clause"
] | 3 | 2020-03-02T05:26:59.000Z | 2021-12-31T06:25:56.000Z | from distutils.core import setup
import py2exe
setup(
console = [{"script" : "PEInfo.py"}] ,
zipfile = None ,
options = {
"py2exe" : {
"bundle_files" : 1 ,
"compressed" : True ,
"includes" ... | 30.071429 | 96 | 0.370546 | 26 | 421 | 5.961538 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014634 | 0.513064 | 421 | 14 | 97 | 30.071429 | 0.741463 | 0 | 0 | 0 | 0 | 0 | 0.194313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a4b3882813b83386e7cd6edd8559193ab73d7bea | 133 | py | Python | aiida_lsmo/__init__.py | ltalirz/aiida-lsmo | 38a839af63686320ab070fada89241860e095b9e | [
"MIT"
] | null | null | null | aiida_lsmo/__init__.py | ltalirz/aiida-lsmo | 38a839af63686320ab070fada89241860e095b9e | [
"MIT"
] | null | null | null | aiida_lsmo/__init__.py | ltalirz/aiida-lsmo | 38a839af63686320ab070fada89241860e095b9e | [
"MIT"
] | null | null | null | """
aiida_lsmo
AiiDA workflows for the LSMO laboratory at EPFL
"""
from __future__ import absolute_import
__version__ = "1.0.0a1"
| 13.3 | 47 | 0.759398 | 19 | 133 | 4.789474 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.157895 | 133 | 9 | 48 | 14.777778 | 0.776786 | 0.443609 | 0 | 0 | 0 | 0 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a4b68ba23def8ffa38e11fd77dd274f2111c5e80 | 1,329 | py | Python | tests/tests.py | MikeArnhold/python-functional-pipe | 0acf17d27e61d508e850bd818430a10a31a84f33 | [
"MIT"
] | null | null | null | tests/tests.py | MikeArnhold/python-functional-pipe | 0acf17d27e61d508e850bd818430a10a31a84f33 | [
"MIT"
] | null | null | null | tests/tests.py | MikeArnhold/python-functional-pipe | 0acf17d27e61d508e850bd818430a10a31a84f33 | [
"MIT"
] | null | null | null | """Tests"""
from unittest import TestCase
from functional.pipe import PipeArbitrary, PipeUnary
class PipeUnaryTests(TestCase):
"""test Pipe class"""
def test_init(self) -> None:
"""init func first in pipe"""
def double(value: int) -> float:
return float(value * 2)
stack... | 22.525424 | 52 | 0.570354 | 165 | 1,329 | 4.521212 | 0.272727 | 0.037534 | 0.085791 | 0.0563 | 0.670241 | 0.670241 | 0.670241 | 0.670241 | 0.670241 | 0.39008 | 0 | 0.028785 | 0.294206 | 1,329 | 58 | 53 | 22.913793 | 0.766525 | 0.085026 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.357143 | 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 |
a4c19252f43ade2050453c96510fbc585006891d | 130 | py | Python | test/09_setup_cfg/setup.py | Chia-Network/cibuildwheel | 9013ad27ca9a2d03f5ccc5b60b39773661a757ce | [
"BSD-2-Clause"
] | 1 | 2020-04-18T22:30:09.000Z | 2020-04-18T22:30:09.000Z | test/09_setup_cfg/setup.py | ax3l/cibuildwheel | 95678f3d5d2014ebcf3258de7ebe2854fc8ccd5e | [
"BSD-2-Clause"
] | null | null | null | test/09_setup_cfg/setup.py | ax3l/cibuildwheel | 95678f3d5d2014ebcf3258de7ebe2854fc8ccd5e | [
"BSD-2-Clause"
] | 1 | 2021-05-12T14:17:33.000Z | 2021-05-12T14:17:33.000Z | from setuptools import (
Extension,
setup,
)
setup(
ext_modules=[Extension('spam.spam', sources=['spam/spam.c'])],
)
| 14.444444 | 66 | 0.638462 | 15 | 130 | 5.466667 | 0.666667 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 130 | 8 | 67 | 16.25 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a4e69a40110d75d7a37a05997015139b2b56c155 | 88 | py | Python | Desafios Phyton/Exercicio07.py | Maralha/CursoEmVideo-Phyton | 194bf0a2425ae31e98fdf24b98f332bbc8c7d69e | [
"MIT"
] | null | null | null | Desafios Phyton/Exercicio07.py | Maralha/CursoEmVideo-Phyton | 194bf0a2425ae31e98fdf24b98f332bbc8c7d69e | [
"MIT"
] | null | null | null | Desafios Phyton/Exercicio07.py | Maralha/CursoEmVideo-Phyton | 194bf0a2425ae31e98fdf24b98f332bbc8c7d69e | [
"MIT"
] | null | null | null | nome = input("Qual e o seu nome?")
print ("Prazer em te conhecer {:=^20}!".format(nome)) | 44 | 53 | 0.647727 | 15 | 88 | 3.8 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.136364 | 88 | 2 | 53 | 44 | 0.723684 | 0 | 0 | 0 | 0 | 0 | 0.539326 | 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 |
a4eabbb67be49325ad975dedfc410036e0b3ea44 | 443 | py | Python | src/camera.py | frostblooded/agar_io_clone | ddd581d3a2c4471296e318207d62339c2d2b80f8 | [
"MIT"
] | null | null | null | src/camera.py | frostblooded/agar_io_clone | ddd581d3a2c4471296e318207d62339c2d2b80f8 | [
"MIT"
] | null | null | null | src/camera.py | frostblooded/agar_io_clone | ddd581d3a2c4471296e318207d62339c2d2b80f8 | [
"MIT"
] | null | null | null | from src import constants
from pygame.math import Vector2
class Camera:
position = Vector2(0, 0)
followed_character = None
zoom = 1
@staticmethod
def update():
if Camera.followed_character:
Camera.position = Camera.followed_character.position
Camera.zoom = constan... | 26.058824 | 108 | 0.69526 | 48 | 443 | 6.229167 | 0.479167 | 0.227425 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.243792 | 443 | 16 | 109 | 27.6875 | 0.877612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.583333 | 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 |
a4f66bd4134a98668f8c275a51eddd26b4107c81 | 3,032 | py | Python | pysnmp/IANA-RTPROTO-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/IANA-RTPROTO-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/IANA-RTPROTO-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module IANA-RTPROTO-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IANA-RTPROTO-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:02:20 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | 104.551724 | 493 | 0.725923 | 337 | 3,032 | 6.522255 | 0.462908 | 0.062784 | 0.019108 | 0.072793 | 0.395814 | 0.305732 | 0.305732 | 0.305732 | 0.267516 | 0.267516 | 0 | 0.091673 | 0.096966 | 3,032 | 28 | 494 | 108.285714 | 0.711103 | 0.10752 | 0 | 0.105263 | 0 | 0 | 0.279941 | 0.016314 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3510dd1693263c939508c30bf72644b8a36a9a58 | 290 | py | Python | docs/modules/greeting.py | astronmax/SteganoBot | c4b68b49c0463770dfd365c8df26544957212214 | [
"Apache-2.0"
] | null | null | null | docs/modules/greeting.py | astronmax/SteganoBot | c4b68b49c0463770dfd365c8df26544957212214 | [
"Apache-2.0"
] | null | null | null | docs/modules/greeting.py | astronmax/SteganoBot | c4b68b49c0463770dfd365c8df26544957212214 | [
"Apache-2.0"
] | null | null | null | from vkbottle.bot import Blueprint, Message
async def hello_message(message: Message):
"""
Saves user to users_info dictionary
Greets user and calls a keyboard for them
:param message: "привет<!>", "Привет<!>", "начать<!>", "Начать<!>"
:return: None
"""
pass
| 22.307692 | 70 | 0.644828 | 35 | 290 | 5.285714 | 0.8 | 0.151351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22069 | 290 | 12 | 71 | 24.166667 | 0.818584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
3545a8c9017f86927241953e2536594628da3340 | 772 | py | Python | update/generator/tools.py | itemmanager/bungieapi | 0c4326f88ea0f28a1dcab683dc08c8d21c940fc1 | [
"MIT"
] | 5 | 2022-01-06T21:05:53.000Z | 2022-02-12T19:58:11.000Z | update/generator/tools.py | itemmanager/bungieapi | 0c4326f88ea0f28a1dcab683dc08c8d21c940fc1 | [
"MIT"
] | 8 | 2021-12-25T02:40:56.000Z | 2022-03-28T03:31:41.000Z | update/generator/tools.py | itemmanager/bungieapi | 0c4326f88ea0f28a1dcab683dc08c8d21c940fc1 | [
"MIT"
] | 1 | 2022-01-30T23:53:25.000Z | 2022-01-30T23:53:25.000Z | import typing as t
PREAMBLE = "# generated by update to not change manually"
def indentation(input: t.Iterator[str], indentation: int) -> t.Iterator[str]:
yield from prefix(input, indentation * " ")
def prefix(input: t.Iterator[str], prefix: str) -> t.Iterator[str]:
for line in input:
yield f"{... | 25.733333 | 77 | 0.680052 | 105 | 772 | 4.92381 | 0.352381 | 0.139265 | 0.185687 | 0.098646 | 0.15087 | 0.15087 | 0.15087 | 0.15087 | 0.15087 | 0.15087 | 0 | 0 | 0.186529 | 772 | 29 | 78 | 26.62069 | 0.823248 | 0 | 0 | 0.117647 | 1 | 0 | 0.156736 | 0.037565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
10262e7b6ba7319544121741cc7f607f292d13ee | 46,917 | py | Python | etl/parsers/etw/Microsoft_Windows_AppxPackagingOM.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 104 | 2020-03-04T14:31:31.000Z | 2022-03-28T02:59:36.000Z | etl/parsers/etw/Microsoft_Windows_AppxPackagingOM.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 7 | 2020-04-20T09:18:39.000Z | 2022-03-19T17:06:19.000Z | etl/parsers/etw/Microsoft_Windows_AppxPackagingOM.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 16 | 2020-03-05T18:55:59.000Z | 2022-03-01T10:19:28.000Z | # -*- coding: utf-8 -*-
"""
Microsoft-Windows-AppxPackagingOM
GUID : ba723d81-0d0c-4f1e-80c8-54740f508ddf
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
from... | 29.470477 | 123 | 0.677047 | 4,941 | 46,917 | 6.253795 | 0.055657 | 0.090097 | 0.174563 | 0.112621 | 0.931553 | 0.931553 | 0.675761 | 0.675761 | 0.675761 | 0.675761 | 0 | 0.151543 | 0.198308 | 46,917 | 1,591 | 124 | 29.489001 | 0.669981 | 0.002131 | 0 | 0.543987 | 0 | 0 | 0.258951 | 0.143202 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003228 | 0 | 0.282486 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
103dc25f7e10bb8b1193870bef170f9e6805ab83 | 633 | py | Python | apps/graphing/urls.py | commtrack/commtrack-old-to-del | cc9c22754ac192a45483cef609bdcf09aa990340 | [
"BSD-3-Clause"
] | 1 | 2017-05-19T07:23:00.000Z | 2017-05-19T07:23:00.000Z | apps/graphing/urls.py | commtrack/commtrack-old-to-del | cc9c22754ac192a45483cef609bdcf09aa990340 | [
"BSD-3-Clause"
] | null | null | null | apps/graphing/urls.py | commtrack/commtrack-old-to-del | cc9c22754ac192a45483cef609bdcf09aa990340 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^inspector/(?P<table_name>.*)/$', 'graphing.views.inspector'),
(r'^showgraph/$', 'graphing.views.show_allgraphs'),
(r'^showgraph/(?P<graph_id>\d+)/$', 'graphing.views.view_graph'),
(r'^showgraph/all/$', 'graphing.... | 45.214286 | 89 | 0.606635 | 72 | 633 | 5.180556 | 0.458333 | 0.27882 | 0.136729 | 0.085791 | 0.107239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162717 | 633 | 13 | 90 | 48.692308 | 0.703774 | 0 | 0 | 0 | 0 | 0 | 0.609795 | 0.478673 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
105dac0088a02c0c7ce69d1f5bcf5363c0de279d | 231 | py | Python | roll.py | Zipcoder/DE-2d1-Dice-Roller | ce7e054b3d7a20e24219e1bbdb1f2de4d6a4e847 | [
"MIT"
] | null | null | null | roll.py | Zipcoder/DE-2d1-Dice-Roller | ce7e054b3d7a20e24219e1bbdb1f2de4d6a4e847 | [
"MIT"
] | null | null | null | roll.py | Zipcoder/DE-2d1-Dice-Roller | ce7e054b3d7a20e24219e1bbdb1f2de4d6a4e847 | [
"MIT"
] | 8 | 2021-07-08T00:50:17.000Z | 2021-11-24T02:31:09.000Z | # roll a "die" some number of times.
# roll - run it once and go into a loop
# roll 1 - produce a number 1-6 random and print it
# roll 2 - produce two numbers 1-6 and print them
# roll 3 - produce three numbers and print them.
#
| 28.875 | 51 | 0.69697 | 45 | 231 | 3.577778 | 0.555556 | 0.149068 | 0.149068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039548 | 0.233766 | 231 | 7 | 52 | 33 | 0.870057 | 0.939394 | 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 |
105f7fbc96aa9eb0ed4e0e29b515c7ef39e1efd7 | 318 | py | Python | ch08/08_15.py | leeseedong/book-cryptocurrency | 58c0bb3f5a80f8cc73ba47c4839be3bd33c9d67c | [
"Apache-2.0"
] | 121 | 2019-03-23T13:53:06.000Z | 2022-03-28T15:15:03.000Z | ch08/08_15.py | leeseedong/book-cryptocurrency | 58c0bb3f5a80f8cc73ba47c4839be3bd33c9d67c | [
"Apache-2.0"
] | 3 | 2021-04-14T14:31:26.000Z | 2021-05-09T13:46:14.000Z | ch08/08_15.py | leeseedong/book-cryptocurrency | 58c0bb3f5a80f8cc73ba47c4839be3bd33c9d67c | [
"Apache-2.0"
] | 114 | 2019-03-21T13:43:03.000Z | 2022-03-31T18:42:11.000Z | import pykorbit
email = "ceo_jo@gmail.com"
password = "mypassword"
key = "TVMtMRtcap22CRnFeegege84cNDuTJVmvv9FaGWJTRriY7b8cWKIez7eGGkzan0"
secret = "MEasLLFhahGAyUucm7refegEEgpvBfTUe3A2DiMA48o4egegEEv9pBmLUq4e3pM"
korbit = pykorbit.Korbit(email, password, key, secret)
balance = korbit.get_balances()
print(balance)
| 28.909091 | 74 | 0.833333 | 26 | 318 | 10.115385 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061644 | 0.081761 | 318 | 10 | 75 | 31.8 | 0.839041 | 0 | 0 | 0 | 0 | 0 | 0.477987 | 0.396226 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.125 | 0 | 0.125 | 0.125 | 1 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1084fa0e0fadb3a28515fe1d3e5932714fb3e977 | 9,845 | py | Python | evaluation/eval_overlap.py | playing-code/ANCE_test | 80ae493af4e771274153ba5ce0d5b1793b1d7e11 | [
"MIT"
] | null | null | null | evaluation/eval_overlap.py | playing-code/ANCE_test | 80ae493af4e771274153ba5ce0d5b1793b1d7e11 | [
"MIT"
] | null | null | null | evaluation/eval_overlap.py | playing-code/ANCE_test | 80ae493af4e771274153ba5ce0d5b1793b1d7e11 | [
"MIT"
] | null | null | null | import sys
sys.path += ['../utils']
import csv
from tqdm import tqdm
import collections
import gzip
import pickle
import numpy as np
import faiss
import os
import pytrec_eval
import json
from msmarco_eval import quality_checks_qids, compute_metrics, load_reference
checkpoint = 0
data_type = 0
t... | 38.759843 | 139 | 0.74322 | 1,487 | 9,845 | 4.492266 | 0.110962 | 0.037725 | 0.057635 | 0.046108 | 0.76018 | 0.706437 | 0.690719 | 0.668114 | 0.638174 | 0.624102 | 0 | 0.055659 | 0.131336 | 9,845 | 253 | 140 | 38.913043 | 0.725444 | 0.385576 | 0 | 0.252101 | 0 | 0 | 0.159385 | 0.080566 | 0 | 0 | 0 | 0 | 0.008403 | 1 | 0.008403 | false | 0.201681 | 0.10084 | 0 | 0.117647 | 0.109244 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
10ab49be9f7f9959e2005dc1bfd8a98858194d6f | 830 | py | Python | acosh.py | psorus/f | 5802e06cba304fd670cf5142b6444b4890c27667 | [
"MIT"
] | null | null | null | acosh.py | psorus/f | 5802e06cba304fd670cf5142b6444b4890c27667 | [
"MIT"
] | null | null | null | acosh.py | psorus/f | 5802e06cba304fd670cf5142b6444b4890c27667 | [
"MIT"
] | null | null | null | from param1 import *
from collector import *
from transform import addtrafo,addinv
# from sin import *
# from mult import *
# from value import *
import fmath
import math
class acosh(param1):
def __init__(s,p):
param1.__init__(s)
s.q=p
def diff(s,by)->'mult':
return s.q.diff(by)/fmath.sqrt(fmath.squa... | 21.842105 | 68 | 0.643373 | 136 | 830 | 3.860294 | 0.301471 | 0.022857 | 0.085714 | 0.097143 | 0.198095 | 0.198095 | 0.198095 | 0.118095 | 0.118095 | 0 | 0 | 0.013177 | 0.177108 | 830 | 38 | 69 | 21.842105 | 0.75549 | 0.06747 | 0 | 0.137931 | 0 | 0 | 0.105058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.172414 | 0.172414 | 0.724138 | 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 |
10b9779f9c590e85c297aaf057d9a980d130db2d | 2,995 | py | Python | aliyun-python-sdk-ft/aliyunsdkft/request/v20150101/RpcFlowControlPassApiRequest.py | xiaozhao1/aliyun-openapi-python-sdk | 7297b69619fbe18a053ce552df9ab378b7c5719f | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-ft/aliyunsdkft/request/v20150101/RpcFlowControlPassApiRequest.py | xiaozhao1/aliyun-openapi-python-sdk | 7297b69619fbe18a053ce552df9ab378b7c5719f | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-ft/aliyunsdkft/request/v20150101/RpcFlowControlPassApiRequest.py | xiaozhao1/aliyun-openapi-python-sdk | 7297b69619fbe18a053ce552df9ab378b7c5719f | [
"Apache-2.0"
] | 1 | 2021-01-26T05:01:42.000Z | 2021-01-26T05:01:42.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 31.197917 | 72 | 0.78197 | 403 | 2,995 | 5.612903 | 0.260546 | 0.03183 | 0.074271 | 0.090186 | 0.164456 | 0.164456 | 0.164456 | 0 | 0 | 0 | 0 | 0.00451 | 0.111519 | 2,995 | 96 | 73 | 31.197917 | 0.845547 | 0.251753 | 0 | 0 | 0 | 0 | 0.126406 | 0.009447 | 0 | 0 | 0 | 0 | 0 | 1 | 0.480769 | false | 0.038462 | 0.019231 | 0.230769 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
52a461e660c82d11495a4231c646aa01ebef93cf | 153 | py | Python | interest_rate.py | chapman-cpsc-230/hw1-gmontesdeoca | 18a2b88292a51c93d4da9385e05dd2dab563ef41 | [
"MIT"
] | null | null | null | interest_rate.py | chapman-cpsc-230/hw1-gmontesdeoca | 18a2b88292a51c93d4da9385e05dd2dab563ef41 | [
"MIT"
] | 1 | 2016-02-25T05:59:43.000Z | 2016-02-25T05:59:43.000Z | interest_rate.py | chapman-cpsc-230/hw1-gmontesdeoca | 18a2b88292a51c93d4da9385e05dd2dab563ef41 | [
"MIT"
] | null | null | null | a=1000
b=(1+.05/100)
c= a*(b**3)
print "At an interest rate of 5 percent after three years, the initial amount deposited will have grown to", c, "euros"
| 30.6 | 119 | 0.705882 | 31 | 153 | 3.483871 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.163399 | 153 | 4 | 120 | 38.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.679739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
52d64532e71c21a36d82eba1b7d826ddfd06ac31 | 2,930 | py | Python | lol_graph_directed.py | louzounlab/List-of-Lists | 212feee58422ecf652849cb87835fabc4b576856 | [
"MIT"
] | 1 | 2021-02-23T15:58:50.000Z | 2021-02-23T15:58:50.000Z | lol_graph_directed.py | louzounlab/List-of-Lists | 212feee58422ecf652849cb87835fabc4b576856 | [
"MIT"
] | null | null | null | lol_graph_directed.py | louzounlab/List-of-Lists | 212feee58422ecf652849cb87835fabc4b576856 | [
"MIT"
] | 1 | 2021-06-27T11:43:32.000Z | 2021-06-27T11:43:32.000Z | from collections import OrderedDict
from lol_graph import *
# Directed Lol Graph Wrapper
class DLGW:
def __init__(self, weighted=True):
self.lol_directed = LolGraph(directed=True, weighted=weighted)
self.reversed_lol = LolGraph(directed=True, weighted=weighted)
def convert(self, gra... | 32.197802 | 84 | 0.656655 | 398 | 2,930 | 4.595477 | 0.178392 | 0.126299 | 0.164024 | 0.195189 | 0.419902 | 0.267906 | 0.080919 | 0.044833 | 0.044833 | 0 | 0 | 0.012234 | 0.246758 | 2,930 | 90 | 85 | 32.555556 | 0.816493 | 0.060751 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.370968 | false | 0 | 0.032258 | 0.290323 | 0.758065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
52d86839affb1b49deb6245f41295f4e637f29ae | 948 | py | Python | flowtorch/bijectors/tanh.py | sankethvedula/flowtorch | 44a0f0eff842dd33ca17b01f4e02d8cdda005aa8 | [
"MIT"
] | 29 | 2020-12-19T00:29:42.000Z | 2021-08-12T19:11:47.000Z | flowtorch/bijectors/tanh.py | sankethvedula/flowtorch | 44a0f0eff842dd33ca17b01f4e02d8cdda005aa8 | [
"MIT"
] | 30 | 2020-12-29T04:42:38.000Z | 2021-02-19T22:29:38.000Z | flowtorch/bijectors/tanh.py | sankethvedula/flowtorch | 44a0f0eff842dd33ca17b01f4e02d8cdda005aa8 | [
"MIT"
] | 1 | 2021-05-06T21:25:45.000Z | 2021-05-06T21:25:45.000Z | # Copyright (c) Meta Platforms, Inc
import math
from typing import Optional
import torch
import torch.distributions.constraints as constraints
import torch.nn.functional as F
from flowtorch.bijectors.fixed import Fixed
class Tanh(Fixed):
r"""
Transform via the mapping :math:`y = \tanh(x)`.
"""
codom... | 23.7 | 63 | 0.60865 | 121 | 948 | 4.719008 | 0.396694 | 0.211909 | 0.1331 | 0.161121 | 0.302977 | 0.302977 | 0.302977 | 0.302977 | 0.302977 | 0.203152 | 0 | 0.014451 | 0.270042 | 948 | 39 | 64 | 24.307692 | 0.810694 | 0.086498 | 0 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.206897 | 0.103448 | 0.482759 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
52de15de2667308cccdeb002b9a3dd0ef89ffe27 | 298 | py | Python | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Intro_to_Python/assignments/A01_hello_world.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Intro_to_Python/assignments/A01_hello_world.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Intro_to_Python/assignments/A01_hello_world.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | """ Assignment 1
Write a short script that will get some information from the user, reformat
the information and print it back to the terminal. """
name = input("What is your name? ")
favorite_color = input("What is your favorite color? ")
print(f"{name}'s favorite color is {favorite_color}.")
| 29.8 | 75 | 0.734899 | 47 | 298 | 4.617021 | 0.638298 | 0.239631 | 0.101382 | 0.138249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004016 | 0.16443 | 298 | 9 | 76 | 33.111111 | 0.86747 | 0.469799 | 0 | 0 | 0 | 0 | 0.613333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5e14917617938084c6c7940293d028ced957ce5a | 1,863 | py | Python | tests/plugins/azure_test.py | xs4free/detect-secrets | 30d0edd0a18b783d97f6fed4c71ac592247233f9 | [
"Apache-2.0"
] | null | null | null | tests/plugins/azure_test.py | xs4free/detect-secrets | 30d0edd0a18b783d97f6fed4c71ac592247233f9 | [
"Apache-2.0"
] | null | null | null | tests/plugins/azure_test.py | xs4free/detect-secrets | 30d0edd0a18b783d97f6fed4c71ac592247233f9 | [
"Apache-2.0"
] | null | null | null | import pytest
from detect_secrets.plugins.azure import AzureDetector
class TestAzureDetector:
@pytest.mark.parametrize(
'payload, should_flag',
[
('DefaultEndpointsProtocol=http;AccountName=account1;AccountKey=Abc1deF23gHIjkLmnOpQRStuVwxYZAB4CDeFG56hIJK7LMnoPq8RSTuVw9x0yz/A1BCDEFGhi/J... | 74.52 | 258 | 0.764359 | 176 | 1,863 | 8.034091 | 0.511364 | 0.028289 | 0.042433 | 0.082744 | 0.507779 | 0.427157 | 0.427157 | 0.427157 | 0.30976 | 0.30976 | 0 | 0.09058 | 0.111111 | 1,863 | 24 | 259 | 77.625 | 0.763285 | 0 | 0 | 0 | 0 | 0.25 | 0.720344 | 0.505636 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.2 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5e2ee2a71fd55b08ac07cd63c87cba2a1e9ea464 | 78 | py | Python | blynkapi/__init__.py | mohsinmkhan/blynkapi | 4602d2142c7dc711a1b4e3a5e423c10266da5062 | [
"MIT"
] | 23 | 2016-08-28T19:48:47.000Z | 2021-02-04T04:38:58.000Z | blynkapi/__init__.py | mohsinmkhan/blynkapi | 4602d2142c7dc711a1b4e3a5e423c10266da5062 | [
"MIT"
] | 4 | 2016-10-13T21:53:32.000Z | 2018-07-02T15:17:26.000Z | blynkapi/__init__.py | mohsinmkhan/blynkapi | 4602d2142c7dc711a1b4e3a5e423c10266da5062 | [
"MIT"
] | 12 | 2017-01-23T01:09:32.000Z | 2021-02-04T04:39:00.000Z | from .Blynk import Blynk
__author__ = "xandr2@gmail.com"
__ALL__ = ['Blynk'] | 15.6 | 31 | 0.717949 | 10 | 78 | 4.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.141026 | 78 | 5 | 32 | 15.6 | 0.701493 | 0 | 0 | 0 | 0 | 0 | 0.265823 | 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 |
5e3b5f9563da6af22a121e0487df0c8857e6d6df | 77 | py | Python | pymusicterm/__main__.py | EGAMAGZ/Terminal-Music-Player | fc5ce7d9cef6ee98f2dde1784d363a8002584d96 | [
"MIT"
] | 2 | 2020-07-12T20:43:06.000Z | 2020-08-07T06:16:12.000Z | pymusicterm/__main__.py | EGAMAGZ/Terminal-Music-Player | fc5ce7d9cef6ee98f2dde1784d363a8002584d96 | [
"MIT"
] | null | null | null | pymusicterm/__main__.py | EGAMAGZ/Terminal-Music-Player | fc5ce7d9cef6ee98f2dde1784d363a8002584d96 | [
"MIT"
] | null | null | null | import pymusicterm
ಠ_ಠ="I just want to tell you 'Hi!' "
pymusicterm.main()
| 12.833333 | 36 | 0.714286 | 13 | 77 | 4.153846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 77 | 5 | 37 | 15.4 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0.38961 | 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 |
eaa79366ff6ea6dc0efc842848a9e11191a52ed4 | 228 | py | Python | simple_project/students/urls.py | jklemm/python-clean-architecture | ba4de66a8db815b51980e1582a2e0d94f3f25ae7 | [
"Unlicense"
] | null | null | null | simple_project/students/urls.py | jklemm/python-clean-architecture | ba4de66a8db815b51980e1582a2e0d94f3f25ae7 | [
"Unlicense"
] | null | null | null | simple_project/students/urls.py | jklemm/python-clean-architecture | ba4de66a8db815b51980e1582a2e0d94f3f25ae7 | [
"Unlicense"
] | null | null | null | from django.urls import path
from students.views import StudentsView, StudentsAddView
urlpatterns = [
path('manage', StudentsView.as_view(), name='index'),
path('add', StudentsAddView.as_view(), name='students_add')
]
| 25.333333 | 63 | 0.736842 | 27 | 228 | 6.111111 | 0.592593 | 0.072727 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127193 | 228 | 8 | 64 | 28.5 | 0.829146 | 0 | 0 | 0 | 0 | 0 | 0.114035 | 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 |
eacfe8c09a09871166f15f1efff5baa14550773e | 163 | py | Python | benchmarks/vs-elm-test/anyNumericInt/hypo.py | lemol/elm-minithesis | 7d017828532a9437961c0a79c2139015e20eb824 | [
"BSD-3-Clause"
] | null | null | null | benchmarks/vs-elm-test/anyNumericInt/hypo.py | lemol/elm-minithesis | 7d017828532a9437961c0a79c2139015e20eb824 | [
"BSD-3-Clause"
] | null | null | null | benchmarks/vs-elm-test/anyNumericInt/hypo.py | lemol/elm-minithesis | 7d017828532a9437961c0a79c2139015e20eb824 | [
"BSD-3-Clause"
] | null | null | null | import hypothesis.strategies as st
from hypothesis import given
@given(st.integers(min_value = 0, max_value=10000))
def test(i):
print(i)
assert f < 5000
| 20.375 | 51 | 0.730061 | 26 | 163 | 4.5 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.171779 | 163 | 7 | 52 | 23.285714 | 0.792593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
eaf17a96399e6bdd806bc1335e2fb322a1cd6eb9 | 370 | py | Python | lec9.py | widnerlr/isat252 | 4196a8b1c6f4c75c3f5d8f64164014103b695077 | [
"MIT"
] | null | null | null | lec9.py | widnerlr/isat252 | 4196a8b1c6f4c75c3f5d8f64164014103b695077 | [
"MIT"
] | null | null | null | lec9.py | widnerlr/isat252 | 4196a8b1c6f4c75c3f5d8f64164014103b695077 | [
"MIT"
] | null | null | null | """
lec9
class
"""
class car: #class name
maker = 'toyota' #attribute
def __init__(self,input_model):
self.model = input_model
def report(self):
#return the attribute of the instance
return self.maker,self.model
#my_car= car('corolla')
#print(my_car.repor... | 18.5 | 45 | 0.608108 | 48 | 370 | 4.479167 | 0.4375 | 0.093023 | 0.093023 | 0.148837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003663 | 0.262162 | 370 | 20 | 46 | 18.5 | 0.783883 | 0.410811 | 0 | 0 | 0 | 0 | 0.029268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
eafbc368058d1d1f41600d7cc22d4de7d2a9425c | 80 | py | Python | Chapter 09/ch9_2.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 09/ch9_2.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 09/ch9_2.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | prizes = {'1st': 'Gold', '2nd' : 'Silver', '3rd': 'Bronze'}
print(list(prizes)) | 40 | 60 | 0.575 | 10 | 80 | 4.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0.125 | 80 | 2 | 61 | 40 | 0.614286 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 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 |
d800567ef2e463dcb3e4c574e51749b68f6f934b | 498 | py | Python | estruturas/no.py | italoaalves/projeto-ed | 0fb37c54f3ae1d13f63bd2cf5112cc592eb38a92 | [
"Apache-2.0"
] | null | null | null | estruturas/no.py | italoaalves/projeto-ed | 0fb37c54f3ae1d13f63bd2cf5112cc592eb38a92 | [
"Apache-2.0"
] | null | null | null | estruturas/no.py | italoaalves/projeto-ed | 0fb37c54f3ae1d13f63bd2cf5112cc592eb38a92 | [
"Apache-2.0"
] | null | null | null | class Node:
def __init__(self, dado=None) -> None:
self.__dado: object = dado
self.__prox = None
@property
def dado(self) -> object:
return self.__dado
@property
def prox(self) -> object:
return self.__prox
@dado.setter
def dado(self, novoDado) -> None:
... | 20.75 | 42 | 0.582329 | 59 | 498 | 4.542373 | 0.254237 | 0.149254 | 0.089552 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307229 | 498 | 23 | 43 | 21.652174 | 0.776812 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d809b2e326b7be23b83433782448b4a0092c470a | 27,499 | py | Python | tests/test_geofileops_singlelayer_gpd.py | theroggy/geofile_ops | 1b5ab42169d5c3332c0d8298c5a036257cfd68d5 | [
"BSD-3-Clause"
] | null | null | null | tests/test_geofileops_singlelayer_gpd.py | theroggy/geofile_ops | 1b5ab42169d5c3332c0d8298c5a036257cfd68d5 | [
"BSD-3-Clause"
] | 26 | 2021-12-01T07:46:53.000Z | 2022-03-30T23:40:43.000Z | tests/test_geofileops_singlelayer_gpd.py | theroggy/geofile_ops | 1b5ab42169d5c3332c0d8298c5a036257cfd68d5 | [
"BSD-3-Clause"
] | 1 | 2021-11-30T17:51:34.000Z | 2021-11-30T17:51:34.000Z | # -*- coding: utf-8 -*-
"""
Tests for operations using GeoPandas.
"""
import json
import math
from pathlib import Path
import sys
import geopandas as gpd
import pytest
import shapely.geometry as sh_geom
# Add path so the local geofileops packages are found
sys.path.insert(0, str(Path(__file__).resolve().parent.paren... | 38.193056 | 88 | 0.683734 | 3,423 | 27,499 | 5.2565 | 0.095238 | 0.056689 | 0.027233 | 0.02023 | 0.771078 | 0.733619 | 0.70633 | 0.67454 | 0.662758 | 0.646974 | 0 | 0.013165 | 0.221063 | 27,499 | 719 | 89 | 38.246175 | 0.826844 | 0.144733 | 0 | 0.614545 | 0 | 0 | 0.103292 | 0.046714 | 0 | 0 | 0 | 0.001391 | 0.241818 | 1 | 0.018182 | false | 0 | 0.025455 | 0 | 0.043636 | 0.003636 | 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 |
d83b159ea5dd9e2ac008325c5920824088dc8b93 | 263 | py | Python | Networking/Packets/Incoming/QuestRedeemResponsePacket.py | henriquelino/pyrelay | b448cca3accc9a566616b756a03958ba096a5ebf | [
"MIT"
] | 26 | 2020-07-24T05:47:02.000Z | 2022-03-31T16:03:13.000Z | Networking/Packets/Incoming/QuestRedeemResponsePacket.py | henriquelino/pyrelay | b448cca3accc9a566616b756a03958ba096a5ebf | [
"MIT"
] | 17 | 2020-07-27T08:11:19.000Z | 2022-03-29T05:26:16.000Z | Networking/Packets/Incoming/QuestRedeemResponsePacket.py | henriquelino/pyrelay | b448cca3accc9a566616b756a03958ba096a5ebf | [
"MIT"
] | 16 | 2021-01-20T14:30:37.000Z | 2022-03-18T05:31:51.000Z | class QuestRedeemResponsePacket:
def __init__(self):
self.type = "QUESTREDEEMRESPONSE"
self.ok = False
self.message = ""
def read(self, reader):
self.ok = reader.readBool()
self.message = reader.readStr()
| 26.3 | 42 | 0.589354 | 25 | 263 | 6.04 | 0.56 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304183 | 263 | 9 | 43 | 29.222222 | 0.825137 | 0 | 0 | 0 | 0 | 0 | 0.074803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc275162496c4a8091abcb53d14d26ec9516725d | 2,797 | py | Python | tensorforce/agents/trpo_agent.py | matthewwilfred/tensorforce | 0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c | [
"Apache-2.0",
"MIT"
] | 1 | 2021-08-23T19:49:03.000Z | 2021-08-23T19:49:03.000Z | tensorforce/agents/trpo_agent.py | matthewwilfred/tensorforce | 0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c | [
"Apache-2.0",
"MIT"
] | null | null | null | tensorforce/agents/trpo_agent.py | matthewwilfred/tensorforce | 0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c | [
"Apache-2.0",
"MIT"
] | null | null | null | # Copyright 2017 reinforce.io. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 39.394366 | 103 | 0.728638 | 349 | 2,797 | 5.756447 | 0.487106 | 0.029866 | 0.023892 | 0.035839 | 0.110503 | 0.087606 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.174115 | 2,797 | 70 | 104 | 39.957143 | 0.860606 | 0.848767 | 0 | 0 | 0 | 0 | 0.030717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 1 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dc398041f056791efd4c835b34d93d4e31465ab0 | 2,027 | py | Python | src/softfab/SplashPage.py | boxingbeetle/softfab | 0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14 | [
"BSD-3-Clause"
] | 20 | 2019-02-07T17:03:04.000Z | 2020-03-16T20:45:19.000Z | src/softfab/SplashPage.py | boxingbeetle/softfab | 0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14 | [
"BSD-3-Clause"
] | 36 | 2019-02-11T08:57:16.000Z | 2020-09-29T05:32:08.000Z | src/softfab/SplashPage.py | boxingbeetle/softfab | 0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14 | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
from typing import Iterator
from softfab.Page import FabResource, PageProcessor
from softfab.UIPage import UIPage
from softfab.authentication import NoAuthPage
from softfab.response import ResponseHeaders
from softfab.userlib import User
from softfab.webgui import unorderedList... | 32.693548 | 77 | 0.690676 | 218 | 2,027 | 6.321101 | 0.518349 | 0.055878 | 0.020319 | 0.026125 | 0.043541 | 0.043541 | 0 | 0 | 0 | 0 | 0 | 0.004447 | 0.223483 | 2,027 | 61 | 78 | 33.229508 | 0.871029 | 0.210163 | 0 | 0 | 0 | 0 | 0.048397 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.216216 | false | 0.027027 | 0.216216 | 0.081081 | 0.594595 | 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 |
dc4b3651baa23c4f826e6bcc96db7e845733219d | 158 | py | Python | chapter 02/factorial.py | bpbpublications/Python-Data-Persistence | 444cd44b2853c05a84e59e85d4f705ef74395204 | [
"MIT"
] | 6 | 2020-08-16T12:55:01.000Z | 2022-03-08T13:06:23.000Z | chapter 02/factorial.py | bpbpublications/Python-Data-Persistence | 444cd44b2853c05a84e59e85d4f705ef74395204 | [
"MIT"
] | null | null | null | chapter 02/factorial.py | bpbpublications/Python-Data-Persistence | 444cd44b2853c05a84e59e85d4f705ef74395204 | [
"MIT"
] | 1 | 2020-08-16T12:57:39.000Z | 2020-08-16T12:57:39.000Z | #factorial.py
n=int(input("enter number.."))
#calculating factorial of n
f=1
for i in range(1,n+1):
f=f*i
print ('factorial of {} = {}'.format(n,f))
| 19.75 | 42 | 0.613924 | 29 | 158 | 3.344828 | 0.586207 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.177215 | 158 | 7 | 43 | 22.571429 | 0.723077 | 0.240506 | 0 | 0 | 0 | 0 | 0.290598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
dc6fd617ddc352a6de7413a9c64808472356ca56 | 347 | py | Python | docs/cornell CS class/lesson 7. Specifications/demos/bad.py | LizzieDeng/kalman_fliter_analysis | 50e728f32c496c3fcbb8ca3ee00857b999b88d99 | [
"MIT"
] | null | null | null | docs/cornell CS class/lesson 7. Specifications/demos/bad.py | LizzieDeng/kalman_fliter_analysis | 50e728f32c496c3fcbb8ca3ee00857b999b88d99 | [
"MIT"
] | null | null | null | docs/cornell CS class/lesson 7. Specifications/demos/bad.py | LizzieDeng/kalman_fliter_analysis | 50e728f32c496c3fcbb8ca3ee00857b999b88d99 | [
"MIT"
] | null | null | null | """
A module with a badly specified function
Author: Walker M. White
Date: February 14, 2019
"""
import introcs
def number_vowels(w):
"""
Returns: number of vowels in string w.
Parameter w: The text to check for vowels
Precondition: w string w/ at least one letter and only letters
"""
# We... | 19.277778 | 66 | 0.682997 | 52 | 347 | 4.538462 | 0.826923 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.244957 | 347 | 17 | 67 | 20.411765 | 0.877863 | 0.766571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dc706f0751dd0cce26a16065ac4a5d6df20a4773 | 353 | py | Python | corpora/bnc/base.py | bbonf/perfectextractor | 5a5e485f17cd61431d049d95bbe25ec05c19588a | [
"MIT"
] | null | null | null | corpora/bnc/base.py | bbonf/perfectextractor | 5a5e485f17cd61431d049d95bbe25ec05c19588a | [
"MIT"
] | null | null | null | corpora/bnc/base.py | bbonf/perfectextractor | 5a5e485f17cd61431d049d95bbe25ec05c19588a | [
"MIT"
] | null | null | null | import glob
import os
BNC_CONFIG = os.path.join(os.path.dirname(__file__), 'bnc.cfg')
class BaseBNC(object):
def get_config(self):
return BNC_CONFIG
def list_filenames(self, dir_name):
return sorted(glob.glob(os.path.join(dir_name, '*.xml')))
def get_genre(self, tree):
return tr... | 22.0625 | 65 | 0.665722 | 52 | 353 | 4.307692 | 0.557692 | 0.080357 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003484 | 0.186969 | 353 | 15 | 66 | 23.533333 | 0.777003 | 0 | 0 | 0 | 0 | 0 | 0.067989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.3 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dc7b23c8bbda9a40f02fda339010a089bc3a0350 | 101 | py | Python | bot.py | KyrelJerome/Social-Media-Manager | 9b173fe2b2325314a2316cff0dcf848e3e6b4166 | [
"MIT"
] | null | null | null | bot.py | KyrelJerome/Social-Media-Manager | 9b173fe2b2325314a2316cff0dcf848e3e6b4166 | [
"MIT"
] | null | null | null | bot.py | KyrelJerome/Social-Media-Manager | 9b173fe2b2325314a2316cff0dcf848e3e6b4166 | [
"MIT"
] | null | null | null | class PostBot():
def post(self, header, images):
raise NotImplementedError
def setup
| 20.2 | 35 | 0.663366 | 11 | 101 | 6.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257426 | 101 | 4 | 36 | 25.25 | 0.893333 | 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 |
dc96ddfd738f80c5e525e8a0b989c7b720d187bb | 573 | py | Python | netdevice/forms.py | lkmhaqer/gtools-python | cff6d80525b78a4fadfb686566489fbe1687d889 | [
"MIT"
] | 5 | 2016-10-31T17:46:17.000Z | 2022-02-02T00:40:49.000Z | netdevice/forms.py | lkmhaqer/gtools-python | cff6d80525b78a4fadfb686566489fbe1687d889 | [
"MIT"
] | 33 | 2018-05-09T06:07:50.000Z | 2021-09-22T17:39:56.000Z | netdevice/forms.py | lkmhaqer/gtools-python | cff6d80525b78a4fadfb686566489fbe1687d889 | [
"MIT"
] | 1 | 2020-05-14T21:44:25.000Z | 2020-05-14T21:44:25.000Z | # file: netdevice/forms.py
from django import forms
from netdevice.models import router, interface, logical_interface, vrf
class RouterForm(forms.ModelForm):
class Meta:
model = router
fields = ('__all__')
class VrfForm(forms.ModelForm):
class Meta:
model = vrf
fields = ... | 16.852941 | 70 | 0.645724 | 58 | 573 | 6.068966 | 0.37931 | 0.159091 | 0.215909 | 0.261364 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263525 | 573 | 33 | 71 | 17.363636 | 0.834123 | 0.041885 | 0 | 0.444444 | 0 | 0 | 0.051188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
dc97fbb94c217f2cbb131069ecb4323856bd7350 | 158 | py | Python | ML/auto_game/virtual_key/2.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | ML/auto_game/virtual_key/2.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | ML/auto_game/virtual_key/2.py | PiscesDream/Ideas | 9ba710e62472f183ae4525f35659cd265c71392e | [
"Apache-2.0"
] | null | null | null | from evdev import uinput, ecodes as e
with uinput.UInput() as ui:
ui.write(e.EV_KEY, e.KEY_LEFTSHIFT, 1)
ui.write(e.EV_KEY, e.KEY_A, 1)
ui.syn()
| 22.571429 | 42 | 0.664557 | 32 | 158 | 3.15625 | 0.5 | 0.138614 | 0.158416 | 0.19802 | 0.336634 | 0.336634 | 0.336634 | 0 | 0 | 0 | 0 | 0.015748 | 0.196203 | 158 | 6 | 43 | 26.333333 | 0.779528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 |
f49ff797ac24f650541e017343dfe0a03ecba2e9 | 799 | py | Python | src/server_3D/API/Rice/baseClasses/anyObject.py | robertpardillo/Funnel | f45e419f55e085bbb95e17c47b4c94a7c625ba9b | [
"MIT"
] | 1 | 2021-05-18T16:10:49.000Z | 2021-05-18T16:10:49.000Z | src/server_3D/API/Rice/baseClasses/anyObject.py | robertpardillo/Funnel | f45e419f55e085bbb95e17c47b4c94a7c625ba9b | [
"MIT"
] | null | null | null | src/server_3D/API/Rice/baseClasses/anyObject.py | robertpardillo/Funnel | f45e419f55e085bbb95e17c47b4c94a7c625ba9b | [
"MIT"
] | null | null | null |
class AnyObject(object):
"""
def get_address(self):
order_list = self.parentsDict.order_list
address = list()
for i in range(len(order_list))[::-1]:
if isinstance(self.parentsDict[order_list[i]], Collection):
continue
elif isinstance(se... | 28.535714 | 72 | 0.544431 | 87 | 799 | 4.850575 | 0.390805 | 0.149289 | 0.094787 | 0.170616 | 0.274882 | 0.165877 | 0 | 0 | 0 | 0 | 0 | 0.007547 | 0.336671 | 799 | 27 | 73 | 29.592593 | 0.788679 | 0.637046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
f4a1b67a2d763126130a6e6983541453c2665da6 | 68 | py | Python | youtube_dl/version.py | snsjajnnz/hjj | 2ca7ed41fed73cf37581b07d0c67d3bad8a6acc3 | [
"Unlicense"
] | null | null | null | youtube_dl/version.py | snsjajnnz/hjj | 2ca7ed41fed73cf37581b07d0c67d3bad8a6acc3 | [
"Unlicense"
] | null | null | null | youtube_dl/version.py | snsjajnnz/hjj | 2ca7ed41fed73cf37581b07d0c67d3bad8a6acc3 | [
"Unlicense"
] | null | null | null | from __future__ import unicode_literals
__version__ = '2017.12.28'
| 17 | 39 | 0.808824 | 9 | 68 | 5.111111 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.117647 | 68 | 3 | 40 | 22.666667 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f4af5b2aee2ee4bb3fe7b240fa5d20d23f2fcc96 | 5,612 | py | Python | src/bairstow/autocorr.py | luk036/bairstow | 706cd2592df1a4336f52764f2db4e7b706e3c9e6 | [
"MIT"
] | null | null | null | src/bairstow/autocorr.py | luk036/bairstow | 706cd2592df1a4336f52764f2db4e7b706e3c9e6 | [
"MIT"
] | null | null | null | src/bairstow/autocorr.py | luk036/bairstow | 706cd2592df1a4336f52764f2db4e7b706e3c9e6 | [
"MIT"
] | null | null | null | from math import acos, cos, sqrt
from typing import List
from .rootfinding import Options
from .rootfinding import delta, horner
from .vector2 import vector2
from .lds import Vdcorput
PI = acos(-1.0)
def initial_autocorr(pa: List[float]) -> List[vector2]:
"""[summary]
Args:
pa (List[float]): [descr... | 29.536842 | 88 | 0.493942 | 819 | 5,612 | 3.352869 | 0.145299 | 0.03496 | 0.032047 | 0.024763 | 0.742535 | 0.728332 | 0.71595 | 0.699199 | 0.676621 | 0.676621 | 0 | 0.066172 | 0.351034 | 5,612 | 189 | 89 | 29.693122 | 0.687809 | 0.316465 | 0 | 0.673077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048077 | false | 0 | 0.057692 | 0 | 0.173077 | 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 |
f4b870ca6980df0f537aa6e18bbf0dc5914f3920 | 233 | py | Python | web/kwmo/kwmo/model/kcd/kcd_user.py | tmbx/kas | 0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc | [
"BSD-3-Clause"
] | null | null | null | web/kwmo/kwmo/model/kcd/kcd_user.py | tmbx/kas | 0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc | [
"BSD-3-Clause"
] | null | null | null | web/kwmo/kwmo/model/kcd/kcd_user.py | tmbx/kas | 0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc | [
"BSD-3-Clause"
] | null | null | null | from kwmo.model.kcd.meta import metadata, Session
__metadata__ = metadata
__session__ = Session
from elixir import *
class KcdUser(Entity):
# Options
using_options(shortnames=True, tablename="kcd_kws_users", autoload=True)
| 23.3 | 76 | 0.776824 | 29 | 233 | 5.862069 | 0.689655 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137339 | 233 | 9 | 77 | 25.888889 | 0.845771 | 0.030043 | 0 | 0 | 0 | 0 | 0.058296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f4cb094f58b31f8ed4ba18d7f7c9b461d2ff7ef5 | 208 | py | Python | syncany/taskers/config/parser.py | snower/syncany | 32d32907a155618678d5b2335cd8a70192ed1e6f | [
"MIT"
] | 5 | 2018-08-15T13:45:30.000Z | 2021-03-18T01:51:47.000Z | syncany/taskers/config/parser.py | snower/syncany | 32d32907a155618678d5b2335cd8a70192ed1e6f | [
"MIT"
] | null | null | null | syncany/taskers/config/parser.py | snower/syncany | 32d32907a155618678d5b2335cd8a70192ed1e6f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# 2021/10/29
# create by: snower
class Parser(object):
def __init__(self, content):
self.content = content
def parse(self):
raise NotImplementedError | 20.8 | 33 | 0.600962 | 24 | 208 | 5.041667 | 0.791667 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059603 | 0.274038 | 208 | 10 | 34 | 20.8 | 0.741722 | 0.240385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f4fda717a9df051dfbbfb007169bf52e41de3aa5 | 964 | py | Python | marmot/features/phrase/punctuation_bigram_feature_extractor.py | qe-team/marmot | 38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff | [
"0BSD"
] | 19 | 2015-08-21T13:06:37.000Z | 2021-07-26T09:56:29.000Z | marmot/features/phrase/punctuation_bigram_feature_extractor.py | qe-team/marmot | 38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff | [
"0BSD"
] | 36 | 2015-01-13T13:01:07.000Z | 2016-06-22T06:59:59.000Z | marmot/features/phrase/punctuation_bigram_feature_extractor.py | qe-team/marmot | 38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff | [
"0BSD"
] | 8 | 2015-12-11T16:41:47.000Z | 2019-04-08T16:28:40.000Z | import string
from marmot.features.feature_extractor import FeatureExtractor
class PunctuationBigramFeatureExtractor(FeatureExtractor):
'''
Number of punctuation marks in source and target:
<source_number>_<target_number>
'''
def __init__(self):
self.punctuation = string.punctuation
... | 28.352941 | 65 | 0.661826 | 114 | 964 | 5.298246 | 0.315789 | 0.082781 | 0.06457 | 0.043046 | 0.119205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.257261 | 964 | 33 | 66 | 29.212121 | 0.837989 | 0.084025 | 0 | 0.095238 | 0 | 0 | 0.053302 | 0.038239 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
760e8f85d82480ec471d9d38640c2d815558a781 | 285 | py | Python | lasp/device/__init__.py | asceenl/lasp | 7cc77b073a91eb7470b449604544d9f57faf32e9 | [
"MIT"
] | null | null | null | lasp/device/__init__.py | asceenl/lasp | 7cc77b073a91eb7470b449604544d9f57faf32e9 | [
"MIT"
] | null | null | null | lasp/device/__init__.py | asceenl/lasp | 7cc77b073a91eb7470b449604544d9f57faf32e9 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
__all__ = ['DAQConfiguration']
from .lasp_daqconfig import DAQConfiguration, DAQInputChannel, DeviceInfo
from .lasp_rtaudio import (RtAudio,
get_numpy_dtype_from_format_string,
get_sampwidth_from_format_string)
| 40.714286 | 73 | 0.687719 | 28 | 285 | 6.464286 | 0.642857 | 0.088398 | 0.176796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.249123 | 285 | 6 | 74 | 47.5 | 0.841122 | 0.059649 | 0 | 0 | 0 | 0 | 0.059925 | 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 |
7611c0c3999470a16c2b9e7953509d429215a8fc | 132 | py | Python | terrascript/provider/softlayer.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/provider/softlayer.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | terrascript/provider/softlayer.py | amlodzianowski/python-terrascript | 1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49 | [
"BSD-2-Clause"
] | null | null | null | # terrascript/provider/softlayer.py
import terrascript
class softlayer(terrascript.Provider):
pass
__all__ = ["softlayer"]
| 12 | 38 | 0.757576 | 13 | 132 | 7.384615 | 0.615385 | 0.395833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143939 | 132 | 10 | 39 | 13.2 | 0.849558 | 0.25 | 0 | 0 | 0 | 0 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
57ff0e9c76bc8bd9857c47177fd89f425fd6e37d | 242 | py | Python | todo/exceptions.py | WolfXeHD/gtd.py | 429ad8e9091254a10069158ba77ae9fe2b971141 | [
"BSD-3-Clause"
] | 31 | 2017-11-08T20:46:57.000Z | 2022-03-15T07:23:54.000Z | todo/exceptions.py | WolfXeHD/gtd.py | 429ad8e9091254a10069158ba77ae9fe2b971141 | [
"BSD-3-Clause"
] | 11 | 2017-12-03T22:14:30.000Z | 2020-08-17T22:17:47.000Z | todo/exceptions.py | WolfXeHD/gtd.py | 429ad8e9091254a10069158ba77ae9fe2b971141 | [
"BSD-3-Clause"
] | 10 | 2018-03-26T17:18:19.000Z | 2022-01-30T08:03:44.000Z | class GTDException(Exception):
'''single parameter indicates exit code for the interpreter, because
this exception typically results in a return of control to the terminal'''
def __init__(self, errno):
self.errno = errno
| 34.571429 | 78 | 0.727273 | 31 | 242 | 5.548387 | 0.83871 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206612 | 242 | 6 | 79 | 40.333333 | 0.895833 | 0.566116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5256338f13e05a7a17492eb1a808fc6ba1bc0486 | 2,126 | py | Python | apps/gallery/models.py | itsMagondu/MaMaSe | 0287e092121155314e76124425ef26bb4154847f | [
"Apache-2.0"
] | 3 | 2016-03-08T15:15:00.000Z | 2020-03-05T05:32:19.000Z | apps/gallery/models.py | itsMagondu/MaMaSe | 0287e092121155314e76124425ef26bb4154847f | [
"Apache-2.0"
] | 65 | 2015-09-25T13:32:12.000Z | 2022-03-11T23:22:12.000Z | apps/gallery/models.py | itsMagondu/MaMaSe | 0287e092121155314e76124425ef26bb4154847f | [
"Apache-2.0"
] | 2 | 2017-05-16T07:56:10.000Z | 2020-06-06T06:01:31.000Z | from django.db import models
'''
from wagtail.wagtailimages.edit_handlers import ImageChooserPanel
from wagtail.wagtailadmin.edit_handlers import FieldPanel
from wagtail.wagtailcore.models import Page
class Gallery(Page):
image1 = models.ForeignKey(
'wagtailimages.Image',
null=True,
blank=T... | 27.61039 | 65 | 0.64064 | 213 | 2,126 | 6.206573 | 0.183099 | 0.081694 | 0.131619 | 0.154312 | 0.571861 | 0.571861 | 0.571861 | 0.571861 | 0.376702 | 0.376702 | 0 | 0.026266 | 0.247883 | 2,126 | 76 | 66 | 27.973684 | 0.8005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.