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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1943004bcf12619d2d6014523f9bbcfdf47bcdc0 | 3,259 | py | Python | Django/metricsapp/migrations/0001_initial.py | KiranGershenfeld/MogulMetrics | 99bfba34c867297949b0300182a9f8c59c97d946 | [
"MIT"
] | null | null | null | Django/metricsapp/migrations/0001_initial.py | KiranGershenfeld/MogulMetrics | 99bfba34c867297949b0300182a9f8c59c97d946 | [
"MIT"
] | null | null | null | Django/metricsapp/migrations/0001_initial.py | KiranGershenfeld/MogulMetrics | 99bfba34c867297949b0300182a9f8c59c97d946 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.4 on 2022-05-03 08:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='GeographyColumns',
fields=[
('id', models.B... | 42.881579 | 117 | 0.548635 | 313 | 3,259 | 5.5623 | 0.239617 | 0.113728 | 0.141872 | 0.185526 | 0.755313 | 0.709937 | 0.640437 | 0.553705 | 0.553705 | 0.50201 | 0 | 0.013363 | 0.311138 | 3,259 | 75 | 118 | 43.453333 | 0.762138 | 0.013808 | 0 | 0.573529 | 1 | 0 | 0.129826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014706 | 0 | 0.073529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
194b45f8641c65b9875760eba7c9acc20365e14b | 149 | py | Python | pinliner/__init__.py | zv/pinliner | 5bcd1301e62ee13108418febbbbcdd3cec9b9f42 | [
"Apache-2.0"
] | 53 | 2016-03-29T10:30:41.000Z | 2022-03-23T17:49:38.000Z | pinliner/__init__.py | zv/pinliner | 5bcd1301e62ee13108418febbbbcdd3cec9b9f42 | [
"Apache-2.0"
] | 4 | 2017-07-21T15:21:54.000Z | 2022-03-17T19:51:07.000Z | pinliner/__init__.py | zv/pinliner | 5bcd1301e62ee13108418febbbbcdd3cec9b9f42 | [
"Apache-2.0"
] | 9 | 2017-07-21T18:05:45.000Z | 2022-01-15T19:57:00.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
__author__ = 'Gorka Eguileor'
__email__ = 'gorka@eguileor.com'
__version__ = '0.2.0'
| 21.285714 | 38 | 0.718121 | 19 | 149 | 4.736842 | 0.789474 | 0.288889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031008 | 0.134228 | 149 | 6 | 39 | 24.833333 | 0.666667 | 0.14094 | 0 | 0 | 0 | 0 | 0.293651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
196631d48257b4c0bfe947d552c7685eba52be1f | 46 | py | Python | src/__init__.py | data-stories/chart-experiment | f4d7c86c32edca8bcb474cce5f6312138acf5cc9 | [
"MIT"
] | null | null | null | src/__init__.py | data-stories/chart-experiment | f4d7c86c32edca8bcb474cce5f6312138acf5cc9 | [
"MIT"
] | 1 | 2021-08-07T07:39:17.000Z | 2021-08-07T07:39:17.000Z | src/__init__.py | data-stories/chart-experiment | f4d7c86c32edca8bcb474cce5f6312138acf5cc9 | [
"MIT"
] | 1 | 2021-08-06T16:27:00.000Z | 2021-08-06T16:27:00.000Z | __all__ = ["data_setup", "generator", "tools"] | 46 | 46 | 0.673913 | 5 | 46 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 46 | 1 | 46 | 46 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0.510638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
196f429e8ff5d6d7553009a1f4439682bf0f07fe | 122 | py | Python | ievv_opensource/demo/project/develop/tasks.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | null | null | null | ievv_opensource/demo/project/develop/tasks.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | 37 | 2015-10-26T09:14:12.000Z | 2022-02-10T10:35:33.000Z | ievv_opensource/demo/project/develop/tasks.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | 1 | 2015-11-06T07:56:34.000Z | 2015-11-06T07:56:34.000Z | from django_rq import job
@job
def add(x, y):
print 'Add was called! with x:{}, y:{}'.format(x, y)
return x + y
| 15.25 | 56 | 0.590164 | 23 | 122 | 3.086957 | 0.652174 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245902 | 122 | 7 | 57 | 17.428571 | 0.771739 | 0 | 0 | 0 | 0 | 0 | 0.254098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
19a69c492b3bf647e36856d83fcbf96c135855f8 | 393 | py | Python | examples/plugin_examples/example_median_filter_tools.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 39 | 2015-03-30T14:03:42.000Z | 2022-03-16T16:50:33.000Z | examples/plugin_examples/example_median_filter_tools.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 670 | 2015-02-11T11:08:09.000Z | 2022-03-21T09:27:57.000Z | examples/plugin_examples/example_median_filter_tools.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 54 | 2015-02-13T14:09:52.000Z | 2022-01-24T13:57:09.000Z | from savu.plugins.plugin_tools import PluginTools
class ExampleMedianFilterTools(PluginTools):
"""
A plugin to filter each frame with a 3x3 median filter
"""
def define_parameters(self):
"""
kernel_size:
visibility: basic
dtype: list[int]
description... | 26.2 | 58 | 0.592875 | 42 | 393 | 5.47619 | 0.809524 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.3257 | 393 | 15 | 59 | 26.2 | 0.849057 | 0.455471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5fe8ba421f625dcc30751c5aaab2f87d0b20ccdf | 479 | py | Python | modules/example.py | CrushedPixel/skypy | b7d378be355153270086bf05cb01bccbdee5ecc0 | [
"Apache-2.0"
] | 6 | 2015-12-01T02:55:00.000Z | 2022-01-02T21:10:39.000Z | modules/example.py | CrushedPixel/skypy | b7d378be355153270086bf05cb01bccbdee5ecc0 | [
"Apache-2.0"
] | null | null | null | modules/example.py | CrushedPixel/skypy | b7d378be355153270086bf05cb01bccbdee5ecc0 | [
"Apache-2.0"
] | null | null | null | __author__ = 'mariusmetzger'
# the module's display name. If not defined, the file's base name is used
moduleName = "example"
# whenever a message is sent to one of the enabled chats by a user who is not blacklisted, this method is called
def on_message_status_change(skypebot, message, status):
pass
# whenever a... | 36.846154 | 112 | 0.76618 | 75 | 479 | 4.786667 | 0.6 | 0.038997 | 0.077994 | 0.100279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17119 | 479 | 13 | 113 | 36.846154 | 0.904282 | 0.597077 | 0 | 0 | 0 | 0 | 0.201058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
5fe94474847526c60f5e5632b6bc94891f1d181a | 1,166 | py | Python | engine/piece.py | virtualmadden/Chess.Client.Python | c4035063e03fec56c85d4d6e427edf032d00082e | [
"MIT"
] | null | null | null | engine/piece.py | virtualmadden/Chess.Client.Python | c4035063e03fec56c85d4d6e427edf032d00082e | [
"MIT"
] | null | null | null | engine/piece.py | virtualmadden/Chess.Client.Python | c4035063e03fec56c85d4d6e427edf032d00082e | [
"MIT"
] | null | null | null | from collections import namedtuple
class Piece(object):
Location = namedtuple("Location", ["row", "column"])
def __init__(self, color, value, location):
self.color = color
self.value = value
self.captured = False
self.Square = self.Location(int(location[0]), int(location[1]))
... | 21.2 | 71 | 0.623499 | 139 | 1,166 | 4.856115 | 0.230216 | 0.186667 | 0.25037 | 0.165926 | 0.423704 | 0.423704 | 0.423704 | 0.328889 | 0 | 0 | 0 | 0.010262 | 0.247856 | 1,166 | 54 | 72 | 21.592593 | 0.759407 | 0 | 0 | 0.25 | 0 | 0 | 0.039451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.03125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5ff14fb537c4189eecb786991f7556eb6a41e3fa | 409 | py | Python | realtime/view/messageView.py | mugbya/realtime_demo | 38424fcc5ded6195908d075814cb579645932d0c | [
"MIT"
] | null | null | null | realtime/view/messageView.py | mugbya/realtime_demo | 38424fcc5ded6195908d075814cb579645932d0c | [
"MIT"
] | null | null | null | realtime/view/messageView.py | mugbya/realtime_demo | 38424fcc5ded6195908d075814cb579645932d0c | [
"MIT"
] | null | null | null | # code=utf-8
import tornado.websocket
class MessageHandler(tornado.websocket.WebSocketHandler):
def open(self, *args, **kwargs):
self.application.message.register(self.callback)
def on_close(self):
self.application.message.un_register(self.callback)
def callback(self, result):
... | 22.722222 | 75 | 0.679707 | 48 | 409 | 5.729167 | 0.5625 | 0.116364 | 0.16 | 0.167273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01194 | 0.180929 | 409 | 17 | 76 | 24.058824 | 0.808955 | 0.0489 | 0 | 0 | 0 | 0 | 0.033766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5ff43357c7af60d324332cbf8f50dc469a9065c6 | 187 | py | Python | soundfleet/media/storage/rippers/dummy.py | Soundfleet/soundfleet | d2d8a6ac875372884e6494d618c54613f2fcd725 | [
"BSD-3-Clause"
] | null | null | null | soundfleet/media/storage/rippers/dummy.py | Soundfleet/soundfleet | d2d8a6ac875372884e6494d618c54613f2fcd725 | [
"BSD-3-Clause"
] | null | null | null | soundfleet/media/storage/rippers/dummy.py | Soundfleet/soundfleet | d2d8a6ac875372884e6494d618c54613f2fcd725 | [
"BSD-3-Clause"
] | null | null | null | from typing import IO
def essence(content: IO[bytes]) -> tuple[IO[bytes], int, str]:
content.seek(0)
size = len(content.read())
content.seek(0)
return content, size, ""
| 20.777778 | 62 | 0.636364 | 27 | 187 | 4.407407 | 0.62963 | 0.117647 | 0.201681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.203209 | 187 | 8 | 63 | 23.375 | 0.785235 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5ff80dc7e423841f18fc678c6a44e64ec77ece29 | 276 | py | Python | pl_sugar/validators.py | PressLabs/sugar | 0e7eb9a1c7b829689ba1158bbdc2bdadca5859df | [
"MIT"
] | null | null | null | pl_sugar/validators.py | PressLabs/sugar | 0e7eb9a1c7b829689ba1158bbdc2bdadca5859df | [
"MIT"
] | null | null | null | pl_sugar/validators.py | PressLabs/sugar | 0e7eb9a1c7b829689ba1158bbdc2bdadca5859df | [
"MIT"
] | null | null | null | from django.core.validators import RegexValidator
validate_dns_label = RegexValidator(r'^(?![0-9]+$)(?!-)(?![a-z0-9]+--)[a-z0-9-]{1,63}(?<!-)$',
message='Invalide DNS label.',
code='invalid_dns_label')
| 39.428571 | 94 | 0.485507 | 29 | 276 | 4.482759 | 0.689655 | 0.184615 | 0.061538 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04712 | 0.307971 | 276 | 6 | 95 | 46 | 0.633508 | 0 | 0 | 0 | 0 | 0.25 | 0.326087 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
270f75a8f0103e9a1c2bddcd3bdc508d47b7b8f1 | 383 | py | Python | EncounterList.py | quake0day/Jynx | bffce0cef67b2ac9684ddf71034427919136e9f0 | [
"MIT"
] | 1 | 2016-07-26T16:48:23.000Z | 2016-07-26T16:48:23.000Z | EncounterList.py | quake0day/Jynx | bffce0cef67b2ac9684ddf71034427919136e9f0 | [
"MIT"
] | null | null | null | EncounterList.py | quake0day/Jynx | bffce0cef67b2ac9684ddf71034427919136e9f0 | [
"MIT"
] | null | null | null | import sys, os
import ConfigParser
from flask import Flask, request, session, g, redirect, url_for, \
abort, render_template, flash
from flask_mongoalchemy import MongoAlchemy
from flask_mongoalchemy import BaseQuery
from dbConnection import getDb
db = getDb('baseconf')
class EncounterList(db.Document):
ID =... | 23.9375 | 66 | 0.75718 | 49 | 383 | 5.836735 | 0.632653 | 0.094406 | 0.146853 | 0.188811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172324 | 383 | 15 | 67 | 25.533333 | 0.902208 | 0 | 0 | 0 | 0 | 0 | 0.020888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.5 | 0.083333 | 0.833333 | 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 |
271e2344294c0234b3e1aabde8320b7a43c6d2ca | 635 | py | Python | accelbyte_py_sdk/api/dsm_controller/operations/config/__init__.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/dsm_controller/operations/config/__init__.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/dsm_controller/operations/config/__init__.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | # pylint: disable=line-too-long
from .list_config import ListConfig
from .save_config import SaveConfig
from .update_image import UpdateImage
from .create_image import CreateImage
from .import_images import ImportImages
from .get_config import GetConfig
from .update_config import UpdateConfig
from .update_deployment i... | 35.277778 | 47 | 0.867717 | 84 | 635 | 6.333333 | 0.428571 | 0.090226 | 0.045113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007005 | 0.100787 | 635 | 17 | 48 | 37.352941 | 0.924694 | 0.045669 | 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 |
27220cb79fed88b2bbaef20ae581fdb961f28998 | 511 | py | Python | gsw/freezing.py | ocesaulo/GSW-Python | 2d32f442df09784d2c2de3360056f588974d39e5 | [
"MIT"
] | null | null | null | gsw/freezing.py | ocesaulo/GSW-Python | 2d32f442df09784d2c2de3360056f588974d39e5 | [
"MIT"
] | null | null | null | gsw/freezing.py | ocesaulo/GSW-Python | 2d32f442df09784d2c2de3360056f588974d39e5 | [
"MIT"
] | null | null | null | """
Freezing-point functions.
"""
from ._wrapped_ufuncs import (
CT_freezing,
CT_freezing_first_derivatives,
CT_freezing_first_derivatives_poly,
CT_freezing_poly,
pot_enthalpy_ice_freezing,
pot_enthalpy_ice_freezing_first_derivatives,
pot_enthalpy_ice_freezing_first_derivatives_poly,
pot_enthalpy_ice_freezing_poly,
pr... | 22.217391 | 49 | 0.896282 | 75 | 511 | 5.386667 | 0.226667 | 0.193069 | 0.356436 | 0.217822 | 0.40099 | 0.188119 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050881 | 511 | 22 | 50 | 23.227273 | 0.83299 | 0.048924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
274c03c34b036fee6eb671b8f6cc4ba6dfa6732c | 1,330 | py | Python | preprocessing/load_transformer.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 87 | 2020-08-07T09:05:11.000Z | 2022-01-24T00:48:22.000Z | preprocessing/load_transformer.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 87 | 2020-08-07T19:12:10.000Z | 2022-02-08T14:46:34.000Z | preprocessing/load_transformer.py | jim-schwoebel/allie | d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e | [
"Apache-2.0"
] | 25 | 2020-08-07T20:03:08.000Z | 2022-03-16T07:33:25.000Z | '''
[58.0, 13.0, 36.0, 41.0, 128.0, 15.0, 16.0, 40.0, 162.0, 1.0, 14.0,
30.0, 29.0, 69.0, 80.0, 14.0, 1.0, 58.0, 65.0, 80.0, 60.0, 7.0,
12.0, 5.0, 18.0, 4.0, 139.0, 29.0, 61.0, 25.0, 24.0, 59.0, 0.0,
7.0, 180.0, 0.0, 0.0, 0.0, 6.0, 619.0, 159.0, 1.0, 0.0, 1.0, 5.0,
0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 19.0, 12.0, 0.0, 0.0... | 33.25 | 72 | 0.529323 | 241 | 1,330 | 2.917012 | 0.369295 | 0.088193 | 0.102418 | 0.096728 | 0.096728 | 0.071124 | 0.031294 | 0 | 0 | 0 | 0 | 0.272727 | 0.13985 | 1,330 | 40 | 73 | 33.25 | 0.341783 | 0.514286 | 0 | 0.263158 | 0 | 0 | 0.388013 | 0.277603 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0.473684 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
27621acea21891cd9ce0d6d1b604f548af6957e0 | 174 | py | Python | odxtools/globals.py | andlaus/odxtools | 8c4d806d7d23b9f87e571edffb3e90b7005688f4 | [
"MIT"
] | 11 | 2021-11-25T12:23:51.000Z | 2022-01-21T07:14:43.000Z | odxtools/globals.py | andlaus/odxtools | 8c4d806d7d23b9f87e571edffb3e90b7005688f4 | [
"MIT"
] | 12 | 2021-11-12T08:20:48.000Z | 2022-01-21T12:46:03.000Z | odxtools/globals.py | andlaus/odxtools | 8c4d806d7d23b9f87e571edffb3e90b7005688f4 | [
"MIT"
] | 13 | 2022-01-25T12:04:35.000Z | 2022-03-24T09:43:43.000Z | # SPDX-License-Identifier: MIT
# Copyright (c) 2022 MBition GmbH
import logging
logger = logging.getLogger('odxtools')
xsi = "{http://www.w3.org/2001/XMLSchema-instance}"
| 19.333333 | 51 | 0.735632 | 23 | 174 | 5.565217 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058442 | 0.114943 | 174 | 8 | 52 | 21.75 | 0.772727 | 0.344828 | 0 | 0 | 0 | 0 | 0.459459 | 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 |
27b92654a49980f1fc1af2599170fbf5114e01c0 | 1,126 | py | Python | api/v1/views.py | nathandarnell/sal | 464414a2666e39bdf5b4b0033a84d5129c93c053 | [
"Apache-2.0"
] | 215 | 2015-05-04T16:57:56.000Z | 2022-03-07T12:58:12.000Z | api/v1/views.py | nathandarnell/sal | 464414a2666e39bdf5b4b0033a84d5129c93c053 | [
"Apache-2.0"
] | 243 | 2015-07-04T18:10:56.000Z | 2022-02-27T18:52:40.000Z | api/v1/views.py | nathandarnell/sal | 464414a2666e39bdf5b4b0033a84d5129c93c053 | [
"Apache-2.0"
] | 90 | 2015-06-29T19:26:58.000Z | 2022-02-17T19:03:00.000Z | from django.http import HttpResponseGone
UNICORN = r"""
\
\
\\
API V1 is gone forever! \\
Just like me! >\/7
Laters... _.-(6' \
(=___._/` \
... | 34.121212 | 63 | 0.154529 | 35 | 1,126 | 4.571429 | 0.8 | 0.2875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019737 | 0.730018 | 1,126 | 32 | 64 | 35.1875 | 0.506579 | 0 | 0 | 0 | 0 | 0 | 0.868561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0.035714 | 0.107143 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27beeba8c80a2acde17dd11d0446d13b3b29d978 | 97 | py | Python | Hello.py | xiaohaiytao/Python1906Too | b442045090782a319f9ea67938efda5e50d88395 | [
"Apache-2.0"
] | 2 | 2019-07-30T02:29:57.000Z | 2019-07-30T02:30:30.000Z | Hello.py | xiaohaiytao/Python1906Learn | b442045090782a319f9ea67938efda5e50d88395 | [
"Apache-2.0"
] | null | null | null | Hello.py | xiaohaiytao/Python1906Learn | b442045090782a319f9ea67938efda5e50d88395 | [
"Apache-2.0"
] | null | null | null | print("asdasdasdasd!!!!")
print("你真是一个小天才")
# sadasd
print("TTTTTTTTTT")
print("看到一个项目我就蒙了") | 9.7 | 25 | 0.680412 | 9 | 97 | 7.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103093 | 97 | 10 | 26 | 9.7 | 0.758621 | 0.061856 | 0 | 0 | 0 | 0 | 0.488889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
27c7c6b7902cffb7f46fab8ab6ef669412cd23a4 | 31 | py | Python | main/results/__init__.py | wissembrdj/welink | ebc0cd4742578ad22014bd8067796e8cc1869f02 | [
"MIT"
] | null | null | null | main/results/__init__.py | wissembrdj/welink | ebc0cd4742578ad22014bd8067796e8cc1869f02 | [
"MIT"
] | null | null | null | main/results/__init__.py | wissembrdj/welink | ebc0cd4742578ad22014bd8067796e8cc1869f02 | [
"MIT"
] | null | null | null | __all__ = ["result", "results"] | 31 | 31 | 0.645161 | 3 | 31 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 31 | 1 | 31 | 31 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.40625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27cd0f4aa65588e0360b2b4c5e6ed38f1ee3b5b5 | 98 | py | Python | testformat.py | RostislavMisiuk/python | 4c2892d701644da56226ecda1dd1266715316b91 | [
"MIT"
] | null | null | null | testformat.py | RostislavMisiuk/python | 4c2892d701644da56226ecda1dd1266715316b91 | [
"MIT"
] | null | null | null | testformat.py | RostislavMisiuk/python | 4c2892d701644da56226ecda1dd1266715316b91 | [
"MIT"
] | null | null | null | firstname = ("Your firstname is:{},your lastname is:{}")
print(firstname.format("Bob" , "Marley")) | 49 | 56 | 0.683673 | 12 | 98 | 5.583333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091837 | 98 | 2 | 57 | 49 | 0.752809 | 0 | 0 | 0 | 0 | 0 | 0.494949 | 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 |
fd8e21200adcb5913941a76bc7edd85d3f430c66 | 228 | py | Python | src/filter.py | Timi-code/python-practice | f85f681aac5917f9fb3abcb7270a019d635a50b9 | [
"MIT"
] | null | null | null | src/filter.py | Timi-code/python-practice | f85f681aac5917f9fb3abcb7270a019d635a50b9 | [
"MIT"
] | null | null | null | src/filter.py | Timi-code/python-practice | f85f681aac5917f9fb3abcb7270a019d635a50b9 | [
"MIT"
] | null | null | null | def is_odd(n):
return n % 2 == 1
l = [1, 2, 3, 4, 5, 6, 7, 8, 9]
c = list(filter(is_odd, l))
print(c)
print(l)
def is_palindrome(n):
return str(n) == str(n)[::-1]
print(list(filter(is_palindrome, range(1, 1000))))
| 14.25 | 50 | 0.565789 | 46 | 228 | 2.717391 | 0.5 | 0.08 | 0.192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094444 | 0.210526 | 228 | 15 | 51 | 15.2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.222222 | 0.444444 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
fdc5a13cdc594279634bf1e530c59ab31cb9cf21 | 327 | py | Python | reverso_context_api/misc.py | aykim17/reverso_context_api | 1e696b4d9e0f64ac8bb014036a3e0982c53f4e28 | [
"MIT"
] | 34 | 2020-07-11T07:51:07.000Z | 2022-03-22T19:16:46.000Z | reverso_context_api/misc.py | aykim17/reverso_context_api | 1e696b4d9e0f64ac8bb014036a3e0982c53f4e28 | [
"MIT"
] | 3 | 2020-12-27T10:32:40.000Z | 2022-03-18T01:56:32.000Z | reverso_context_api/misc.py | aykim17/reverso_context_api | 1e696b4d9e0f64ac8bb014036a3e0982c53f4e28 | [
"MIT"
] | 5 | 2020-07-22T15:43:16.000Z | 2022-02-04T01:41:04.000Z | BASE_URL = "https://context.reverso.net/"
class ReversoException(Exception):
def __init__(self, error, **context):
super().__init__("Got error during communication with Reverso Context: {}".format(error))
self.context = context
def drop_none(d):
return {k: v for k, v in d.items() if v is not... | 27.25 | 97 | 0.672783 | 46 | 327 | 4.565217 | 0.673913 | 0.019048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192661 | 327 | 11 | 98 | 29.727273 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0.253823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 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 |
fdd11d3927747f70fc72bc630f4abd576b37460a | 124 | py | Python | apps/kemures/metrics/MRR/DAO/apps.py | DiegoCorrea/ouvidoMusical | e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5 | [
"MIT"
] | 1 | 2021-10-06T19:35:48.000Z | 2021-10-06T19:35:48.000Z | apps/kemures/metrics/MRR/DAO/apps.py | DiegoCorrea/ouvido_musical-Back | e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5 | [
"MIT"
] | null | null | null | apps/kemures/metrics/MRR/DAO/apps.py | DiegoCorrea/ouvido_musical-Back | e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MRRConfig(AppConfig):
name = 'apps.kemures.metrics.MRR.DAO'
label = 'MRR'
| 17.714286 | 41 | 0.709677 | 16 | 124 | 5.5 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177419 | 124 | 6 | 42 | 20.666667 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fdf20fc10e3734c0255a1ff6e356d9a7b0c26445 | 11,863 | pyp | Python | generate_yarnmodels/pyp/hylc2020/basket.pyp | kamleshbhalui/MADYPG | b91c7af0b7a1382fed0a5fb3147f13594ddec71e | [
"MIT"
] | null | null | null | generate_yarnmodels/pyp/hylc2020/basket.pyp | kamleshbhalui/MADYPG | b91c7af0b7a1382fed0a5fb3147f13594ddec71e | [
"MIT"
] | null | null | null | generate_yarnmodels/pyp/hylc2020/basket.pyp | kamleshbhalui/MADYPG | b91c7af0b7a1382fed0a5fb3147f13594ddec71e | [
"MIT"
] | null | null | null | *pattern # px py radius num_vertedges
0.0107037 0.0103 0.0009999 80
*Q # dofs: x y z t
-0.00516989 -0.00362864 0.000354054 0.0159776
-0.00420269 -0.00366254 0.00120278 0.0371434
-0.00290352 -0.00366745 0.00139109 0.0152211
-0.00160213 -0.0035558 0.00139925 -0.0207503
-0.000499916 -0.00358195 0.00072042 -0.0145... | 20.524221 | 49 | 0.723004 | 2,280 | 11,863 | 3.761404 | 0.429386 | 0.017024 | 0.006996 | 0.008396 | 0.057719 | 0.028801 | 0.028801 | 0.008629 | 0.008629 | 0 | 0 | 0.848704 | 0.160921 | 11,863 | 577 | 50 | 20.559792 | 0.012859 | 0.011549 | 0 | 0.115993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fdf4b6349868d50ea19b9f0933c6e2396de95f3f | 170 | py | Python | rna-transcription/rna_transcription.py | ikostan/python | a6d52ad74e36db1d2bf82ed15362c1e4341d741d | [
"Unlicense"
] | null | null | null | rna-transcription/rna_transcription.py | ikostan/python | a6d52ad74e36db1d2bf82ed15362c1e4341d741d | [
"Unlicense"
] | 121 | 2020-03-16T19:25:56.000Z | 2021-08-02T19:20:10.000Z | rna-transcription/rna_transcription.py | ikostan/python | a6d52ad74e36db1d2bf82ed15362c1e4341d741d | [
"Unlicense"
] | null | null | null | def to_rna(dna_strand):
dna = {'G': 'C',
'C': 'G',
'T': 'A',
'A': 'U'}
return ''.join(dna[char] for char in dna_strand.upper())
| 21.25 | 60 | 0.417647 | 24 | 170 | 2.833333 | 0.666667 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 170 | 7 | 61 | 24.285714 | 0.618182 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a906c2bfedf09662cd4cff757e2627f5046d4fdb | 322 | py | Python | auto_two_step_validation/providers.py | LucaCappelletti94/auto_two_step_validation | 9ee66fbb9a8628c4f9fb2adc69c12e951458304e | [
"MIT"
] | null | null | null | auto_two_step_validation/providers.py | LucaCappelletti94/auto_two_step_validation | 9ee66fbb9a8628c4f9fb2adc69c12e951458304e | [
"MIT"
] | null | null | null | auto_two_step_validation/providers.py | LucaCappelletti94/auto_two_step_validation | 9ee66fbb9a8628c4f9fb2adc69c12e951458304e | [
"MIT"
] | null | null | null | from .cellphone import messages
import re
def code(target_phone:str, pattern:str):
regex = re.compile(pattern)
for phone, content in messages():
if phone==target_phone or phone.lower() in content.lower():
return regex.findall(content).pop()
def tinder():
return code("TINDER", r"(\d{6})... | 29.272727 | 67 | 0.664596 | 45 | 322 | 4.711111 | 0.577778 | 0.103774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.195652 | 322 | 11 | 68 | 29.272727 | 0.814672 | 0 | 0 | 0 | 0 | 0 | 0.040248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e3027c998178be6939bf677bc9c8919879914249 | 1,489 | py | Python | aws/terminator/machine_learning.py | tremble/aws-terminator | 42baefdff6b509555b5958d206b8fbf5e78de0a2 | [
"Apache-2.0"
] | null | null | null | aws/terminator/machine_learning.py | tremble/aws-terminator | 42baefdff6b509555b5958d206b8fbf5e78de0a2 | [
"Apache-2.0"
] | null | null | null | aws/terminator/machine_learning.py | tremble/aws-terminator | 42baefdff6b509555b5958d206b8fbf5e78de0a2 | [
"Apache-2.0"
] | null | null | null | from . import DbTerminator, Terminator
class PollyLexicon(Terminator):
@staticmethod
def create(credentials):
def _paginate_polly_lexicons(client):
results = client.list_lexicons()
next_token = results.pop('NextToken', None)
while next_token:
next_le... | 32.369565 | 119 | 0.679651 | 147 | 1,489 | 6.680272 | 0.319728 | 0.069246 | 0.057026 | 0.089613 | 0.228106 | 0.228106 | 0.075356 | 0 | 0 | 0 | 0 | 0 | 0.222297 | 1,489 | 45 | 120 | 33.088889 | 0.848014 | 0 | 0 | 0.4 | 0 | 0 | 0.07589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.028571 | 0.142857 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e304be1e9c85b50c09b1f6b8830962ccc43e7631 | 64 | py | Python | nanoblocks/node/snapshot/__init__.py | ipazc/nanoblocks | d7433b60029e4bcda4c2c802c3ff05c53d7b220a | [
"MIT"
] | 3 | 2021-03-16T23:59:37.000Z | 2021-12-11T13:52:46.000Z | nanoblocks/node/snapshot/__init__.py | ipazc/nanoblocks | d7433b60029e4bcda4c2c802c3ff05c53d7b220a | [
"MIT"
] | 1 | 2021-04-02T14:11:02.000Z | 2021-06-16T00:03:33.000Z | nanoblocks/node/snapshot/__init__.py | ipazc/nanoblocks | d7433b60029e4bcda4c2c802c3ff05c53d7b220a | [
"MIT"
] | null | null | null | from .snapshot import NodeSnapshot
__all__ = ["NodeSnapshot"]
| 12.8 | 34 | 0.765625 | 6 | 64 | 7.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 64 | 4 | 35 | 16 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 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 |
e31eb199fa58e33ce97d1a85a221c9b230b573a8 | 267 | py | Python | icml_launchers/ml10_meta_test.py | icml2020submission6857/metarl | 9b66cefa2b6bcb6a38096d629ce8853b47c7171d | [
"MIT"
] | 2 | 2020-03-15T14:35:15.000Z | 2021-02-15T16:38:00.000Z | neurips_launchers/ml10_meta_test.py | neurips2020submission11699/metarl | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | [
"MIT"
] | null | null | null | neurips_launchers/ml10_meta_test.py | neurips2020submission11699/metarl | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | [
"MIT"
] | 1 | 2020-02-24T03:04:23.000Z | 2020-02-24T03:04:23.000Z | """This script is used for doing off-line meta testing."""
from metarl.envs.ml_wrapper import ML10WithPinnedGoal
from metarl.experiment.meta_test_helper import MetaTestHelper
if __name__ == "__main__":
MetaTestHelper.read_cmd(ML10WithPinnedGoal.get_test_tasks)
| 33.375 | 62 | 0.816479 | 35 | 267 | 5.828571 | 0.8 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016736 | 0.104869 | 267 | 7 | 63 | 38.142857 | 0.83682 | 0.194757 | 0 | 0 | 0 | 0 | 0.038278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e330e3e3ff73c7aebf2edb4e4a07ca968a86f557 | 2,178 | py | Python | cse/indexing/DeltaIndex.py | CodeLionX/CommentSearchEngine | 9ebab14b93865a3e18db32aaa0bdb9579163da4a | [
"MIT"
] | 2 | 2017-11-18T22:40:56.000Z | 2018-12-21T15:09:24.000Z | cse/indexing/DeltaIndex.py | CodeLionX/CommentSearchEngine | 9ebab14b93865a3e18db32aaa0bdb9579163da4a | [
"MIT"
] | 49 | 2017-10-26T14:58:58.000Z | 2018-02-11T23:50:50.000Z | cse/indexing/DeltaIndex.py | CodeLionX/CommentSearchEngine | 9ebab14b93865a3e18db32aaa0bdb9579163da4a | [
"MIT"
] | null | null | null | from sys import getsizeof
class DeltaIndex(object):
"""
Inverted Index (delta - in memory)
idf is not calculated until a delta merge is performed (see InvertedIndexWriter for that)
"""
ESTIMATION_MARGIN = 300
def __init__(self, entryContainerConstructor, entrySize=42):
self._deltaI... | 24.2 | 93 | 0.621212 | 220 | 2,178 | 5.868182 | 0.340909 | 0.167312 | 0.051123 | 0.049574 | 0.099148 | 0.043377 | 0 | 0 | 0 | 0 | 0 | 0.006515 | 0.295225 | 2,178 | 89 | 94 | 24.47191 | 0.834528 | 0.083104 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.240741 | false | 0 | 0.018519 | 0.111111 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e3342a0e29ece65c90565344228bc327b6c3c278 | 170 | py | Python | home/pedrosenarego/zorba/gestures/Searchgoogle.py | rv8flyboy/pyrobotlab | 4e04fb751614a5cb6044ea15dcfcf885db8be65a | [
"Apache-2.0"
] | 63 | 2015-02-03T18:49:43.000Z | 2022-03-29T03:52:24.000Z | home/pedrosenarego/zorba/gestures/Searchgoogle.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 16 | 2016-01-26T19:13:29.000Z | 2018-11-25T21:20:51.000Z | home/pedrosenarego/zorba/gestures/Searchgoogle.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 151 | 2015-01-03T18:55:54.000Z | 2022-03-04T07:04:23.000Z | import webbrowser
def searchGoogle(search):
search = search.replace(' ', '+')
webbrowser.open('https://www.google.com/search?gs_ivs=1&q=' + str(search))
True
| 21.25 | 76 | 0.670588 | 22 | 170 | 5.136364 | 0.772727 | 0.212389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.147059 | 170 | 7 | 77 | 24.285714 | 0.772414 | 0 | 0 | 0 | 0 | 0 | 0.252941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e35ebee3b89e88e098c78e9ac871b76a50315ab8 | 83,213 | py | Python | temporalio/workflow.py | cretz/temporal-sdk-python | 431ca1967d365556a9cf5aa9aac00243b71059f8 | [
"MIT"
] | 55 | 2022-01-31T22:02:22.000Z | 2022-03-30T11:17:21.000Z | temporalio/workflow.py | cretz/temporal-sdk-python | 431ca1967d365556a9cf5aa9aac00243b71059f8 | [
"MIT"
] | 7 | 2022-02-04T14:08:46.000Z | 2022-03-22T13:27:30.000Z | temporalio/workflow.py | cretz/temporal-sdk-python | 431ca1967d365556a9cf5aa9aac00243b71059f8 | [
"MIT"
] | 4 | 2022-01-31T17:31:49.000Z | 2022-03-29T01:04:46.000Z | """Utilities that can decorate or be called inside workflows."""
from __future__ import annotations
import asyncio
import inspect
import logging
import uuid
from abc import ABC, abstractmethod
from dataclasses import dataclass
from datetime import datetime, timedelta
from enum import IntEnum
from functools import par... | 35.439949 | 138 | 0.695048 | 9,261 | 83,213 | 6.048483 | 0.065652 | 0.059484 | 0.076265 | 0.076979 | 0.747353 | 0.719807 | 0.698313 | 0.675587 | 0.65786 | 0.638579 | 0 | 0.000537 | 0.216529 | 83,213 | 2,347 | 139 | 35.455049 | 0.858655 | 0.195907 | 0 | 0.722837 | 0 | 0.000651 | 0.040099 | 0.012999 | 0 | 0 | 0 | 0.001704 | 0.002602 | 1 | 0.061809 | false | 0.001952 | 0.011061 | 0.003904 | 0.15745 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ba2337175b5c325ee50cda6f9fec6d9346c85f8 | 941 | py | Python | pytrain/lib/ptmath.py | pytrain/pytrain-shallow | c873a6f11f1dd940da12e7c9a3c961507d064d9a | [
"MIT"
] | 20 | 2016-09-03T10:56:06.000Z | 2020-08-21T01:43:47.000Z | pytrain/lib/ptmath.py | pytrain/pytrain | c873a6f11f1dd940da12e7c9a3c961507d064d9a | [
"MIT"
] | 8 | 2016-11-14T12:33:38.000Z | 2017-07-14T15:43:53.000Z | pytrain/lib/ptmath.py | pytrain/pytrain | c873a6f11f1dd940da12e7c9a3c961507d064d9a | [
"MIT"
] | 7 | 2017-02-09T16:50:37.000Z | 2022-01-02T01:18:56.000Z | #
# library for mathmatics using by pytrain
#
# @ author becxer
# @ e-mail becxer87@gmail.com
#
from numpy import *
def euclidean (vx, vy):
return linalg.norm(vx - vy)
def manhattan (vx, vy):
return array(map(abs, vx - vy)).sum(axis = 0)
def cosine_similarity (vx, vy):
return dot(vx, vy) / (linalg.norm(... | 22.404762 | 60 | 0.571732 | 117 | 941 | 4.452991 | 0.435897 | 0.046065 | 0.057582 | 0.057582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013616 | 0.297556 | 941 | 41 | 61 | 22.95122 | 0.774584 | 0.088204 | 0 | 0 | 0 | 0 | 0.06228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0.192308 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8bbd426836c1660f9d0ad60f9aa4f413ec17b79d | 97 | py | Python | emailsignup/apps.py | megatron0000/ces22-xadrez-web | 10032f81952e1f816925f5af9c27f235dfbf360c | [
"MIT"
] | null | null | null | emailsignup/apps.py | megatron0000/ces22-xadrez-web | 10032f81952e1f816925f5af9c27f235dfbf360c | [
"MIT"
] | 8 | 2020-02-11T22:28:16.000Z | 2021-06-10T20:16:42.000Z | emailsignup/apps.py | megatron0000/ces22-xadrez-web | 10032f81952e1f816925f5af9c27f235dfbf360c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class EmailSignupConfig(AppConfig):
name = 'emailsignup'
| 16.166667 | 35 | 0.773196 | 10 | 97 | 7.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 36 | 19.4 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8bbfd7ef0f25d77cdd3e32516b6ee6dec378ea43 | 36 | py | Python | leanbase/constants.py | Leanbase/leanbase-python | f577c4d625c3968965807525fddcc0d77b94afd0 | [
"MIT"
] | null | null | null | leanbase/constants.py | Leanbase/leanbase-python | f577c4d625c3968965807525fddcc0d77b94afd0 | [
"MIT"
] | null | null | null | leanbase/constants.py | Leanbase/leanbase-python | f577c4d625c3968965807525fddcc0d77b94afd0 | [
"MIT"
] | null | null | null | STAFF_SEGMENT_INTERNAL_ID = "$STAFF" | 36 | 36 | 0.833333 | 5 | 36 | 5.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 36 | 1 | 36 | 36 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8bc10389da19d5412b622dc92d9edc49debd517b | 156 | py | Python | etcd/test-etcd-2.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null | etcd/test-etcd-2.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null | etcd/test-etcd-2.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null | import etcd
client = etcd.Client(host='192.168.138.121', port=4001)
client.write('/nodes/n2', 9999)
mod_obj = client.read('/nodes/n2').value
print mod_obj
| 22.285714 | 55 | 0.724359 | 27 | 156 | 4.111111 | 0.703704 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 0.089744 | 156 | 6 | 56 | 26 | 0.626761 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8bdbaf3a77acfc49ee9f19029d3ce2d014162f72 | 127 | py | Python | maml/__init__.py | materialsvirtuallab/maml | a01b44f8a8d42068c7d15cb15b1fae6324246853 | [
"BSD-3-Clause"
] | 161 | 2020-01-26T08:24:41.000Z | 2022-03-29T06:42:42.000Z | maml/__init__.py | materialsvirtuallab/maml | a01b44f8a8d42068c7d15cb15b1fae6324246853 | [
"BSD-3-Clause"
] | 195 | 2020-01-25T19:35:20.000Z | 2022-03-28T13:14:30.000Z | maml/__init__.py | materialsvirtuallab/maml | a01b44f8a8d42068c7d15cb15b1fae6324246853 | [
"BSD-3-Clause"
] | 46 | 2020-03-30T12:56:39.000Z | 2022-03-27T12:53:23.000Z | """
maml - materials machine learning
"""
__version__ = "2021.10.13"
__import__("pkg_resources").declare_namespace(__name__)
| 15.875 | 55 | 0.748031 | 14 | 127 | 5.785714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0.102362 | 127 | 7 | 56 | 18.142857 | 0.640351 | 0.259843 | 0 | 0 | 0 | 0 | 0.267442 | 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 |
8be39679519c54676395fdd54ac25698b2bcb415 | 1,568 | py | Python | rssht_controller_qt/data_access.py | guallo/remote-ssh-tunnel-controller-qt | 782a0d98c381e6715dfcb38bc6ff431c96b807fc | [
"MIT"
] | null | null | null | rssht_controller_qt/data_access.py | guallo/remote-ssh-tunnel-controller-qt | 782a0d98c381e6715dfcb38bc6ff431c96b807fc | [
"MIT"
] | null | null | null | rssht_controller_qt/data_access.py | guallo/remote-ssh-tunnel-controller-qt | 782a0d98c381e6715dfcb38bc6ff431c96b807fc | [
"MIT"
] | null | null | null | import paramiko
from rssht_controller_lib import factories
from rssht_controller_lib import data_access
class ResetSSHCAndRetryOnException:
def __init__(self, exceptions, sshc_factory=None):
assert tuple(exceptions)
self._exceptions = exceptions
self._sshc_factory = sshc_factory ... | 37.333333 | 94 | 0.685587 | 161 | 1,568 | 6.391304 | 0.31677 | 0.087464 | 0.062196 | 0.198251 | 0.47619 | 0.348882 | 0.348882 | 0.280855 | 0 | 0 | 0 | 0.004102 | 0.222577 | 1,568 | 41 | 95 | 38.243902 | 0.840033 | 0 | 0 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.225806 | false | 0 | 0.096774 | 0.096774 | 0.612903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
473e80c98e45d225889b11239bfc7619fca3d8de | 307 | py | Python | examples/get_help/views/start.py | drforse/aiogram_oop_framework | ee56b6a0893300fea43f01c2f4c4ea8b5fae1424 | [
"MIT"
] | null | null | null | examples/get_help/views/start.py | drforse/aiogram_oop_framework | ee56b6a0893300fea43f01c2f4c4ea8b5fae1424 | [
"MIT"
] | null | null | null | examples/get_help/views/start.py | drforse/aiogram_oop_framework | ee56b6a0893300fea43f01c2f4c4ea8b5fae1424 | [
"MIT"
] | null | null | null | from aiogram.types import Message
from aiogram.dispatcher.storage import FSMContext
from aiogram_oop_framework.views import CommandView
class Start(CommandView):
"""start doc"""
@classmethod
async def execute(cls, m: Message, state: FSMContext = None, **kwargs):
await m.answer('hi')
| 25.583333 | 75 | 0.732899 | 38 | 307 | 5.868421 | 0.710526 | 0.147982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169381 | 307 | 11 | 76 | 27.909091 | 0.87451 | 0.029316 | 0 | 0 | 0 | 0 | 0.006849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
47560a0c272ff78cfeb95b10db4956ffa05cddee | 279 | py | Python | examples/docs_snippets/docs_snippets/concepts/solids_pipelines/linear_pipeline.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 4,606 | 2018-06-21T17:45:20.000Z | 2022-03-31T23:39:42.000Z | examples/docs_snippets/docs_snippets/concepts/solids_pipelines/linear_pipeline.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 6,221 | 2018-06-12T04:36:01.000Z | 2022-03-31T21:43:05.000Z | examples/docs_snippets/docs_snippets/concepts/solids_pipelines/linear_pipeline.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 619 | 2018-08-22T22:43:09.000Z | 2022-03-31T22:48:06.000Z | # pylint: disable=unused-argument
# start_marker
from dagster import job, op
@op
def return_one(context) -> int:
return 1
@op
def add_one(context, number: int) -> int:
return number + 1
@job
def linear():
add_one(add_one(add_one(return_one())))
# end_marker
| 12.130435 | 43 | 0.681004 | 43 | 279 | 4.232558 | 0.488372 | 0.131868 | 0.098901 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.197133 | 279 | 22 | 44 | 12.681818 | 0.803571 | 0.197133 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4761ab5960ccdf1e7f3c5613ee9e93f788b9c00a | 941 | py | Python | kernels.py | javigm98/SVM | 4a609abcfe5dd87172582863d4ff4dfc7a71947f | [
"MIT"
] | null | null | null | kernels.py | javigm98/SVM | 4a609abcfe5dd87172582863d4ff4dfc7a71947f | [
"MIT"
] | null | null | null | kernels.py | javigm98/SVM | 4a609abcfe5dd87172582863d4ff4dfc7a71947f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 8 14:54:33 2021
@author: javig
"""
from abc import abstractmethod
import numpy as np
from math import exp, tanh
# General class to implement kernel functions
class Kernel():
def __init__(self):
pass
@abstractmethod
def func(self, x, y):
raise... | 23.525 | 56 | 0.591923 | 140 | 941 | 3.757143 | 0.357143 | 0.030418 | 0.098859 | 0.129278 | 0.306084 | 0.108365 | 0 | 0 | 0 | 0 | 0 | 0.020231 | 0.264612 | 941 | 40 | 57 | 23.525 | 0.739884 | 0.125399 | 0 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0.034483 | 0.103448 | 0.103448 | 0.62069 | 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 |
4762c0b688aecc5445d7ff259c27726245347c55 | 395 | py | Python | tests/test_00_misc.py | mgjeon/skymakercam | 3c1acab703d38e3bc299672f47153e40131ac4bd | [
"BSD-3-Clause"
] | null | null | null | tests/test_00_misc.py | mgjeon/skymakercam | 3c1acab703d38e3bc299672f47153e40131ac4bd | [
"BSD-3-Clause"
] | null | null | null | tests/test_00_misc.py | mgjeon/skymakercam | 3c1acab703d38e3bc299672f47153e40131ac4bd | [
"BSD-3-Clause"
] | 1 | 2021-12-12T11:20:25.000Z | 2021-12-12T11:20:25.000Z | # -*- coding: utf-8 -*-
#
# @Author: Florian Briegel (briegel@mpia.de)
# @Date: 2021-11-19
# @Filename: test_00_misc.py
# @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause)
import pytest
import asyncio
import logging
import uuid
from cluplus import __version__
from cluplus.proxy import Proxy, un... | 17.954545 | 74 | 0.713924 | 56 | 395 | 4.875 | 0.714286 | 0.029304 | 0.07326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03869 | 0.149367 | 395 | 21 | 75 | 18.809524 | 0.77381 | 0.460759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | true | 0 | 0.75 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
47646bf19936301dba5ee4a1e74c5dd93f4b1706 | 93 | py | Python | driverapp/apps.py | gabyxbinnaeah/Bus-Booking | 51d2a521f890986e4e7e17775708cec3cd71d2b4 | [
"MIT"
] | null | null | null | driverapp/apps.py | gabyxbinnaeah/Bus-Booking | 51d2a521f890986e4e7e17775708cec3cd71d2b4 | [
"MIT"
] | null | null | null | driverapp/apps.py | gabyxbinnaeah/Bus-Booking | 51d2a521f890986e4e7e17775708cec3cd71d2b4 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DriverappConfig(AppConfig):
name = 'driverapp'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
47991449e8debd0ae01111eeecfbf45816f9692a | 278 | py | Python | appPortas/admin.py | ValerioMedeiros/SCEFA | 9028b575f8813e309c01061f0c1f58776e225ae7 | [
"MIT"
] | null | null | null | appPortas/admin.py | ValerioMedeiros/SCEFA | 9028b575f8813e309c01061f0c1f58776e225ae7 | [
"MIT"
] | 4 | 2018-10-23T21:41:11.000Z | 2019-02-16T16:34:39.000Z | appPortas/admin.py | ValerioMedeiros/SCEFA | 9028b575f8813e309c01061f0c1f58776e225ae7 | [
"MIT"
] | 3 | 2019-01-20T01:34:41.000Z | 2019-10-21T20:32:46.000Z | from django.contrib import admin
from appPortas.models import *
# Register your models here.
admin.site.register(Grupo)
admin.site.register(Porta)
admin.site.register(GrupoPorta)
admin.site.register(GrupoPessoa)
admin.site.register(RegistroPorta)
admin.site.register(Horario)
| 23.166667 | 34 | 0.820144 | 37 | 278 | 6.162162 | 0.459459 | 0.236842 | 0.447368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07554 | 278 | 11 | 35 | 25.272727 | 0.88716 | 0.093525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
47bc72335997c52c214332d217c1ae2468060bef | 217 | py | Python | authApi/urls.py | lucasti-cba/AgendaClinica | 6b18a380cfd5337c9eb3be51086078a0993c41fe | [
"MIT"
] | 2 | 2022-03-19T20:59:32.000Z | 2022-03-31T20:07:21.000Z | authApi/urls.py | lucasti-cba/AgendaClinica | 6b18a380cfd5337c9eb3be51086078a0993c41fe | [
"MIT"
] | 12 | 2022-03-18T04:08:57.000Z | 2022-03-18T05:45:06.000Z | authApi/urls.py | lucasti-cba/AgendaClinica-BackEnd | 6b18a380cfd5337c9eb3be51086078a0993c41fe | [
"MIT"
] | null | null | null | from django.urls import path
from authApi.views import RegisterView
from rest_framework_simplejwt.views import TokenRefreshView
urlpatterns = [
path('register/', RegisterView.as_view(), name='auth_register'),
] | 27.125 | 68 | 0.792627 | 26 | 217 | 6.461538 | 0.692308 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115207 | 217 | 8 | 69 | 27.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.100917 | 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 |
47f5307626c34be6ec152e8fb8732c475f9fee11 | 892 | py | Python | backend/src/feature_extraction/flux.py | AnXi-TieGuanYin-Tea/MusicGenreClassifiaction | a0b9f621b0a5d2451180b12af7681756c5abd138 | [
"MIT"
] | 7 | 2018-05-01T19:39:17.000Z | 2020-01-02T17:11:05.000Z | backend/src/feature_extraction/flux.py | AnXi-TieGuanYin-Tea/MusicGenreClassifiaction | a0b9f621b0a5d2451180b12af7681756c5abd138 | [
"MIT"
] | 10 | 2018-12-10T22:16:43.000Z | 2020-08-27T18:23:45.000Z | backend/src/feature_extraction/flux.py | AnXi-TieGuanYin-Tea/MusicGenreClassifiaction | a0b9f621b0a5d2451180b12af7681756c5abd138 | [
"MIT"
] | 2 | 2021-04-16T08:20:17.000Z | 2022-01-06T14:06:44.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 17 23:14:28 2018
@author: Akihiro Inui
"""
import math
class Flux:
"""
Spectral Flux
"""
def __init__(self, sampling_rate: int):
"""
Init for spectral flux
:param sampling_rate: Sampling rate
"""
... | 25.485714 | 108 | 0.632287 | 108 | 892 | 5.009259 | 0.472222 | 0.240296 | 0.133087 | 0.138632 | 0.140481 | 0.140481 | 0 | 0 | 0 | 0 | 0 | 0.026194 | 0.272422 | 892 | 34 | 109 | 26.235294 | 0.807396 | 0.392377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9a24328ee235c65fa358a9ee3d4a10ccdfc5db73 | 497 | py | Python | eks.py | razaibi/eksmash | 3aa6f8476a39cf447ed3f2b17769bfea98775001 | [
"Apache-2.0"
] | null | null | null | eks.py | razaibi/eksmash | 3aa6f8476a39cf447ed3f2b17769bfea98775001 | [
"Apache-2.0"
] | null | null | null | eks.py | razaibi/eksmash | 3aa6f8476a39cf447ed3f2b17769bfea98775001 | [
"Apache-2.0"
] | null | null | null | import click
from commands.project import manager as project_manager
from commands.gen import webapi as webapi
from commands.gen import ddl as ddl
@click.group()
def cli():
"""
Initiate the eksm@$h ecosystem with the "eks" command.
The general syntax is :
eks <RESOURCE NAME> <ACTION> <... | 22.590909 | 60 | 0.710262 | 70 | 497 | 4.928571 | 0.471429 | 0.069565 | 0.150725 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201207 | 497 | 21 | 61 | 23.666667 | 0.869018 | 0.241449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0.090909 | 0.363636 | 0 | 0.454545 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
9a2447a9adadc6f38cbf5130f0a15211991ff8a8 | 623 | bzl | Python | foreign_cc/defs.bzl | jheaff1/rules_foreign_cc | e97f24e701cc33c0e4aa360d59b83eca0aa46111 | [
"Apache-2.0"
] | 521 | 2018-05-28T18:12:53.000Z | 2022-03-24T10:18:29.000Z | foreign_cc/defs.bzl | jheaff1/rules_foreign_cc | e97f24e701cc33c0e4aa360d59b83eca0aa46111 | [
"Apache-2.0"
] | 526 | 2018-04-25T04:00:47.000Z | 2022-03-31T13:41:43.000Z | foreign_cc/defs.bzl | jheaff1/rules_foreign_cc | e97f24e701cc33c0e4aa360d59b83eca0aa46111 | [
"Apache-2.0"
] | 170 | 2018-06-05T08:57:43.000Z | 2022-03-07T11:39:28.000Z | """Public entry point to all Foreign CC rules and supported APIs."""
load(":boost_build.bzl", _boost_build = "boost_build")
load(":cmake.bzl", _cmake = "cmake", _cmake_variant = "cmake_variant")
load(":configure.bzl", _configure_make = "configure_make", _configure_make_variant = "configure_make_variant")
load(":make.b... | 36.647059 | 110 | 0.770465 | 83 | 623 | 5.289157 | 0.240964 | 0.236902 | 0.200456 | 0.236902 | 0.514806 | 0.455581 | 0.300683 | 0.300683 | 0.300683 | 0.300683 | 0 | 0 | 0.105939 | 623 | 16 | 111 | 38.9375 | 0.788151 | 0.099518 | 0 | 0 | 0 | 0 | 0.261261 | 0.03964 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
9a427210c77ea4515186253c95e4c1abd7f488de | 49 | py | Python | climlab/domain/__init__.py | rabernat/climlab | d4af28f5850005aaa8fe1e17f0ae6182a4e25865 | [
"MIT"
] | 1 | 2021-08-19T19:40:19.000Z | 2021-08-19T19:40:19.000Z | climlab/domain/__init__.py | lijunde/climlab | d4af28f5850005aaa8fe1e17f0ae6182a4e25865 | [
"MIT"
] | null | null | null | climlab/domain/__init__.py | lijunde/climlab | d4af28f5850005aaa8fe1e17f0ae6182a4e25865 | [
"MIT"
] | 2 | 2021-05-06T21:11:19.000Z | 2021-08-19T19:40:20.000Z | __all__ = ['axis', 'domain', 'field', 'initial']
| 24.5 | 48 | 0.591837 | 5 | 49 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 49 | 1 | 49 | 49 | 0.581395 | 0 | 0 | 0 | 0 | 0 | 0.44898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7bf7266982e1f2b1e609f21360fb129a94965599 | 291 | py | Python | surround/django/coroutine/simple.py | sniegu/django-surround | e076ec92a6611a056899f3f4f74a24e676dafb5c | [
"MIT"
] | 1 | 2016-07-29T13:10:40.000Z | 2016-07-29T13:10:40.000Z | surround/django/coroutine/simple.py | sniegu/django-surround | e076ec92a6611a056899f3f4f74a24e676dafb5c | [
"MIT"
] | null | null | null | surround/django/coroutine/simple.py | sniegu/django-surround | e076ec92a6611a056899f3f4f74a24e676dafb5c | [
"MIT"
] | null | null | null | from surround.django import execution
from surround.django.logging import setupModuleLogger
setupModuleLogger(globals())
def execute_all(func, multi, max_parallel=None):
return execution.MultiResult({name: execution.execute(func, parameters) for name, parameters in multi.items()})
| 26.454545 | 115 | 0.800687 | 35 | 291 | 6.6 | 0.657143 | 0.103896 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106529 | 291 | 10 | 116 | 29.1 | 0.888462 | 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 | 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 |
d01b1f98000850ad96bfe7e1ecdbbf69ba45f202 | 341 | py | Python | init/modules/user_account.py | davidhampgonsalves/mix-tree | f9907d30ed13340ffb31239176b4de0bbba86f6a | [
"MIT"
] | null | null | null | init/modules/user_account.py | davidhampgonsalves/mix-tree | f9907d30ed13340ffb31239176b4de0bbba86f6a | [
"MIT"
] | null | null | null | init/modules/user_account.py | davidhampgonsalves/mix-tree | f9907d30ed13340ffb31239176b4de0bbba86f6a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf8
from gluon.html import *
from gluon.http import *
from gluon.validators import *
from gluon.sqlhtml import *
# request, response, session, cache, T, db(s)
# must be passed and cannot be imported!
#does this work?
#exec('from applications.%s.modules import xx as yy' %request.appl... | 26.230769 | 74 | 0.733138 | 52 | 341 | 4.807692 | 0.711538 | 0.144 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003448 | 0.14956 | 341 | 12 | 75 | 28.416667 | 0.858621 | 0.636364 | 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 |
d029036b776f489eee9a8ecf3ce257fa526808bf | 672 | py | Python | SimpleRandomString.py | cgiliberto/SimpleRandomString.py | cc4a59a84e000f77aac61cf3338598cf139fc31b | [
"MIT"
] | null | null | null | SimpleRandomString.py | cgiliberto/SimpleRandomString.py | cc4a59a84e000f77aac61cf3338598cf139fc31b | [
"MIT"
] | null | null | null | SimpleRandomString.py | cgiliberto/SimpleRandomString.py | cc4a59a84e000f77aac61cf3338598cf139fc31b | [
"MIT"
] | null | null | null | #Cryptographically secure random ascii string using system CSPRNG
#rather than random's, which is not cryptographically secure and
#was not intended for this purpose. SystemRandom() calls
#CryptGenRandom() on Windows and /dev/urandom on *nix.
#
# TODO: Incorporate secrets module
# TODO: Make this a proper command-line... | 35.368421 | 90 | 0.77381 | 91 | 672 | 5.681319 | 0.692308 | 0.088975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006981 | 0.147321 | 672 | 19 | 91 | 35.368421 | 0.895288 | 0.684524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d02b43204077eb8df77543e26464a949278ae22e | 2,465 | py | Python | src/fhir_helpers/resources/condition.py | anthem-ai/fhir-helpers | 803653f7ef64dbb41bdc24b06cb16425964058aa | [
"Apache-2.0"
] | null | null | null | src/fhir_helpers/resources/condition.py | anthem-ai/fhir-helpers | 803653f7ef64dbb41bdc24b06cb16425964058aa | [
"Apache-2.0"
] | null | null | null | src/fhir_helpers/resources/condition.py | anthem-ai/fhir-helpers | 803653f7ef64dbb41bdc24b06cb16425964058aa | [
"Apache-2.0"
] | null | null | null | from abc import abstractmethod
from datetime import datetime
from typing import Optional
from fhir_types import FHIR_Condition
from proto.google.fhir.proto.r4.core.resources import condition_pb2
from ..utils import (
convert_proto_date_time,
ensure_non_null_date,
parse_iso_datetime,
search,
search... | 28.662791 | 88 | 0.705882 | 285 | 2,465 | 5.898246 | 0.242105 | 0.045806 | 0.071386 | 0.061868 | 0.400357 | 0.385485 | 0.321237 | 0.321237 | 0.265318 | 0.265318 | 0 | 0.001517 | 0.197566 | 2,465 | 85 | 89 | 29 | 0.848332 | 0.020284 | 0 | 0.421875 | 0 | 0 | 0.016176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234375 | false | 0.046875 | 0.140625 | 0.15625 | 0.59375 | 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 |
d03e9a36362c795e7909fffc519f3b2be735f987 | 2,966 | py | Python | python_project/mfresh_project/mfresh_api/models.py | 452366we/python_web | 527342a1b238d5b3d1261caeb5c907a9a031be8e | [
"MIT"
] | null | null | null | python_project/mfresh_project/mfresh_api/models.py | 452366we/python_web | 527342a1b238d5b3d1261caeb5c907a9a031be8e | [
"MIT"
] | null | null | null | python_project/mfresh_project/mfresh_api/models.py | 452366we/python_web | 527342a1b238d5b3d1261caeb5c907a9a031be8e | [
"MIT"
] | null | null | null | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
# * Remove `managed = False` lines if ... | 41.194444 | 119 | 0.712407 | 419 | 2,966 | 4.947494 | 0.27685 | 0.099855 | 0.144235 | 0.188616 | 0.579836 | 0.509889 | 0.484322 | 0.479016 | 0.366618 | 0.117704 | 0 | 0.015606 | 0.179029 | 2,966 | 71 | 120 | 41.774648 | 0.835729 | 0.198247 | 0 | 0.204082 | 1 | 0 | 0.033827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.795918 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d03f9f8a096026e4845de084e4b601b4096b6aa8 | 781 | py | Python | metareserve/reservation_interface.py | ZhaoNeil/metareserve | 2bd82816d2b845a9ffcdd35d901f755cc1ca9d64 | [
"MIT"
] | null | null | null | metareserve/reservation_interface.py | ZhaoNeil/metareserve | 2bd82816d2b845a9ffcdd35d901f755cc1ca9d64 | [
"MIT"
] | null | null | null | metareserve/reservation_interface.py | ZhaoNeil/metareserve | 2bd82816d2b845a9ffcdd35d901f755cc1ca9d64 | [
"MIT"
] | 1 | 2021-10-05T12:26:42.000Z | 2021-10-05T12:26:42.000Z |
class ReservationInterface(object):
'''Perform a reservation, as specified by the reservation request.
Must return immediately without blocking.
Time-consuming reservation systems should use a separate thread for reservation logic.
Args:
reservationRequest (ReservationRequest): Object contain... | 28.925926 | 90 | 0.711908 | 76 | 781 | 7.302632 | 0.486842 | 0.043243 | 0.075676 | 0.100901 | 0.410811 | 0.410811 | 0.410811 | 0.410811 | 0.410811 | 0.410811 | 0 | 0 | 0.231754 | 781 | 27 | 91 | 28.925926 | 0.925 | 0.409731 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.4 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d08e9c425d1719f065ef9f75cb24df7de5c8cbb4 | 380 | py | Python | pal/model/logical_operand.py | mars-research/pal | 5977394cda8750ff5dcb89c2bf193ec1ef4cd137 | [
"MIT"
] | 26 | 2020-01-06T23:53:17.000Z | 2022-02-01T08:58:21.000Z | pal/model/logical_operand.py | mars-research/pal | 5977394cda8750ff5dcb89c2bf193ec1ef4cd137 | [
"MIT"
] | 30 | 2019-11-13T00:55:22.000Z | 2022-01-06T08:09:35.000Z | pal/model/logical_operand.py | mars-research/pal | 5977394cda8750ff5dcb89c2bf193ec1ef4cd137 | [
"MIT"
] | 14 | 2019-11-15T16:56:22.000Z | 2021-12-22T10:14:17.000Z | from dataclasses import dataclass, field as datafield
@dataclass
class LogicalOperand():
""" Models a logical (software) operand that an instruction operates on"""
name: str = ""
""" The name of this logical operand """
type: str = ""
"""
The type of this logical operand:
int8, int16... | 23.75 | 78 | 0.642105 | 45 | 380 | 5.422222 | 0.755556 | 0.04918 | 0.106557 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048951 | 0.247368 | 380 | 15 | 79 | 25.333333 | 0.804196 | 0.176316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d0aac0428a9f5889f9e43621db19df887e16b453 | 1,872 | py | Python | model/media.py | beda-software/fhir-py-experements | 363cfb894fa6f971b9be19340cae1b0a3a4377d8 | [
"MIT"
] | null | null | null | model/media.py | beda-software/fhir-py-experements | 363cfb894fa6f971b9be19340cae1b0a3a4377d8 | [
"MIT"
] | null | null | null | model/media.py | beda-software/fhir-py-experements | 363cfb894fa6f971b9be19340cae1b0a3a4377d8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/Media) on 2020-02-03.
# 2020, SMART Health IT.
import sys
from dataclasses import dataclass, field
from typing import ClassVar, Optional, List
from .annotation import Annotation
from .attac... | 38.204082 | 102 | 0.738782 | 215 | 1,872 | 6.409302 | 0.451163 | 0.05225 | 0.078374 | 0.04209 | 0.063861 | 0.063861 | 0.063861 | 0.063861 | 0.063861 | 0 | 0 | 0.015306 | 0.162393 | 1,872 | 49 | 103 | 38.204082 | 0.86352 | 0.160256 | 0 | 0 | 1 | 0 | 0.012234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.297297 | 0 | 0.972973 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d0b934877bad38a33be8b28aa8536313e70d5dc8 | 1,795 | py | Python | src/nn/matrix.py | krzem5/Python-NN | 3406863aba1acfee2f0da5e657a65e268fcaf4a6 | [
"BSD-3-Clause"
] | null | null | null | src/nn/matrix.py | krzem5/Python-NN | 3406863aba1acfee2f0da5e657a65e268fcaf4a6 | [
"BSD-3-Clause"
] | null | null | null | src/nn/matrix.py | krzem5/Python-NN | 3406863aba1acfee2f0da5e657a65e268fcaf4a6 | [
"BSD-3-Clause"
] | null | null | null | import random
__all__=["Matrix"]
class Matrix:
def __init__(self,w,h):
self.w=w
self.h=h
self.gen()
def __str__(self):
return self.__repr__()
def __repr__(self):
return str(self.data)
def gen(self):
self.data=[]
for y in range(0,self.h):
self.data+=[[0]*self.w]
return self
def random... | 14.834711 | 109 | 0.597214 | 382 | 1,795 | 2.748691 | 0.143979 | 0.093333 | 0.106667 | 0.077143 | 0.449524 | 0.379048 | 0.352381 | 0.309524 | 0.309524 | 0.288571 | 0 | 0.011708 | 0.191086 | 1,795 | 120 | 110 | 14.958333 | 0.711433 | 0 | 0 | 0.25 | 0 | 0 | 0.009471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.013889 | 0.111111 | 0.527778 | 0.013889 | 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 |
d0d0cb71220a37a2f5444678bf3e80be2973b62b | 992 | py | Python | remix/flatten_array/tests.py | samar-agrawal/remix | 5c7eba36baf16dae45a7b810ee6476d11d134b6a | [
"MIT"
] | null | null | null | remix/flatten_array/tests.py | samar-agrawal/remix | 5c7eba36baf16dae45a7b810ee6476d11d134b6a | [
"MIT"
] | null | null | null | remix/flatten_array/tests.py | samar-agrawal/remix | 5c7eba36baf16dae45a7b810ee6476d11d134b6a | [
"MIT"
] | null | null | null | '''Test the flattening object with some inputs'''
import unittest
from .flat import flat
class TestFlat(unittest.TestCase):
def test_nested_array(self):
self.assertEqual(flat([[1,2,[3]],4]), [1,2,3,4])
def test_empty_array(self):
self.assertIsNone(flat([]))
def test_multiple_blank_array... | 26.105263 | 91 | 0.574597 | 129 | 992 | 4.224806 | 0.372093 | 0.102752 | 0.244037 | 0.295413 | 0.20367 | 0.20367 | 0.188991 | 0.188991 | 0.13945 | 0.13945 | 0 | 0.038314 | 0.210685 | 992 | 37 | 92 | 26.810811 | 0.657727 | 0.043347 | 0 | 0 | 0 | 0 | 0.012725 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.375 | false | 0 | 0.083333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0ecaceec8dedc2b41f3a7f602919fc8238df3e2 | 8,989 | py | Python | swagger_client/models/get_corporations_corporation_id_membertracking_200_ok.py | rseichter/bootini-star | a80258f01a05e4df38748b8cb47dfadabd42c20d | [
"MIT"
] | null | null | null | swagger_client/models/get_corporations_corporation_id_membertracking_200_ok.py | rseichter/bootini-star | a80258f01a05e4df38748b8cb47dfadabd42c20d | [
"MIT"
] | null | null | null | swagger_client/models/get_corporations_corporation_id_membertracking_200_ok.py | rseichter/bootini-star | a80258f01a05e4df38748b8cb47dfadabd42c20d | [
"MIT"
] | null | null | null | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online # noqa: E501
OpenAPI spec version: 0.8.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class GetCorporationsCorporationIdMembertracking200Ok(object):
... | 31.651408 | 159 | 0.639671 | 983 | 8,989 | 5.607325 | 0.125127 | 0.056604 | 0.269231 | 0.217163 | 0.614478 | 0.482583 | 0.375907 | 0.347605 | 0.222242 | 0.120464 | 0 | 0.034114 | 0.282568 | 8,989 | 283 | 160 | 31.763251 | 0.820592 | 0.42997 | 0 | 0.076271 | 1 | 0 | 0.077158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169492 | false | 0 | 0.025424 | 0 | 0.330508 | 0.016949 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0fb45e23f04935e504111f8585b6c1d0d1e78d1 | 683 | py | Python | game/migrations/0005_auto_20190903_1508.py | taojy123/PokemonCard | b92a8c1f19a9b388d5de8c030bd2ca372d959d48 | [
"MIT"
] | null | null | null | game/migrations/0005_auto_20190903_1508.py | taojy123/PokemonCard | b92a8c1f19a9b388d5de8c030bd2ca372d959d48 | [
"MIT"
] | null | null | null | game/migrations/0005_auto_20190903_1508.py | taojy123/PokemonCard | b92a8c1f19a9b388d5de8c030bd2ca372d959d48 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-09-03 07:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('game', '0004_auto_20190902_2100'),
]
operations = [
migrations.AlterField(
model_name='battle',
name='winner',
... | 23.551724 | 49 | 0.553441 | 65 | 683 | 5.723077 | 0.569231 | 0.16129 | 0.201613 | 0.233871 | 0.486559 | 0.486559 | 0.486559 | 0.376344 | 0.376344 | 0.376344 | 0 | 0.074236 | 0.329429 | 683 | 28 | 50 | 24.392857 | 0.737991 | 0.065886 | 0 | 0.545455 | 1 | 0 | 0.09434 | 0.036164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
efadf322409e41a8afb5c1343d79b7cd026e2371 | 315 | py | Python | app/api/resources/account.py | JesperKauppinen/tic-tac-toe | 4ca47c66c6e955b5fd6ace6951e3aa42731dd2cc | [
"MIT"
] | 1 | 2022-03-01T12:42:06.000Z | 2022-03-01T12:42:06.000Z | app/api/resources/account.py | abanseka/tic-tac-toe | 4ca47c66c6e955b5fd6ace6951e3aa42731dd2cc | [
"MIT"
] | null | null | null | app/api/resources/account.py | abanseka/tic-tac-toe | 4ca47c66c6e955b5fd6ace6951e3aa42731dd2cc | [
"MIT"
] | 1 | 2022-02-22T15:16:25.000Z | 2022-02-22T15:16:25.000Z | from flask_restful import Resource
from flask_jwt_extended import jwt_required
from ..jwt import get_current_user
class AccountResource(Resource):
@jwt_required()
def get(self):
user = get_current_user()
return user.to_dict(rules=('-password', '-password_hash', '-races', '-statistics'))
| 26.25 | 91 | 0.72381 | 40 | 315 | 5.425 | 0.575 | 0.082949 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165079 | 315 | 11 | 92 | 28.636364 | 0.825095 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
efc95c0b750da58ced4615bbc9031fda3c5976b9 | 51 | py | Python | grades/__init__.py | dotkom/gradestats | daeb65cb8741a4aa30fe40fc2a53ec44749932ed | [
"Apache-2.0"
] | null | null | null | grades/__init__.py | dotkom/gradestats | daeb65cb8741a4aa30fe40fc2a53ec44749932ed | [
"Apache-2.0"
] | 6 | 2020-05-06T12:06:34.000Z | 2021-01-05T18:49:22.000Z | grades/__init__.py | dotkom/gradestats | daeb65cb8741a4aa30fe40fc2a53ec44749932ed | [
"Apache-2.0"
] | 2 | 2019-07-22T21:26:37.000Z | 2020-01-27T11:48:13.000Z | default_app_config = "grades.apps.GradesAppConfig"
| 25.5 | 50 | 0.843137 | 6 | 51 | 6.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 51 | 1 | 51 | 51 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
efcafcda4915a44ef1274c4084cd1f926d83c663 | 2,014 | py | Python | 07-basic-rsa/script2.py | mithi/simple-cryptography | 13559f8b4dd9da2545e6f8b3564fda5e33ae7410 | [
"MIT"
] | 49 | 2019-03-16T06:26:36.000Z | 2022-03-13T17:21:11.000Z | basic-cryptography-scripts/basic-cryptography-scripts/07-basic-rsa/script2.py | paulveillard/cybersecurity-cryptography | f081a793130550c68ef668b561f653c21231d5dc | [
"Apache-2.0"
] | 8 | 2019-03-11T05:11:51.000Z | 2019-03-15T18:12:30.000Z | basic-cryptography-scripts/basic-cryptography-scripts/07-basic-rsa/script2.py | paulveillard/cybersecurity-cryptography | f081a793130550c68ef668b561f653c21231d5dc | [
"Apache-2.0"
] | 11 | 2019-03-31T06:09:22.000Z | 2022-03-13T17:21:12.000Z | import textwrap
from gmpy2 import mpz
import gmpy2
from publickeysystem import encrypt_pipeline, decrypt_pipeline, compute_d, phi
c = "2209645186741038177630656113488341801741006978789283107173183914367613560012053800428232965047350942434394621975151225646583996794288946076454204058156474898801373486412045232522932017... | 24.864198 | 315 | 0.694638 | 223 | 2,014 | 6.103139 | 0.367713 | 0.05878 | 0.006613 | 0.019104 | 0.023512 | 0.023512 | 0 | 0 | 0 | 0 | 0 | 0.394034 | 0.201092 | 2,014 | 80 | 316 | 25.175 | 0.451833 | 0.048163 | 0 | 0.078431 | 0 | 0 | 0.449268 | 0.322699 | 0 | 0 | 0 | 0 | 0.019608 | 1 | 0.058824 | false | 0 | 0.078431 | 0 | 0.156863 | 0.45098 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
efd9822cf8f8e590dbb46c18f70d6d17fe38dfaa | 499 | py | Python | epi_judge_python/bst_from_preorder.py | shobhitmishra/CodingProblems | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | [
"MIT"
] | null | null | null | epi_judge_python/bst_from_preorder.py | shobhitmishra/CodingProblems | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | [
"MIT"
] | null | null | null | epi_judge_python/bst_from_preorder.py | shobhitmishra/CodingProblems | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | [
"MIT"
] | null | null | null | from typing import List, Optional
from bst_node import BstNode
from test_framework import generic_test
def rebuild_bst_from_preorder(preorder_sequence: List[int]
) -> Optional[BstNode]:
# TODO - you fill in here.
return None
if __name__ == '__main__':
exit(
generic... | 27.722222 | 66 | 0.597194 | 55 | 499 | 4.963636 | 0.527273 | 0.102564 | 0.21978 | 0.161172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.338677 | 499 | 17 | 67 | 29.352941 | 0.827273 | 0.048096 | 0 | 0 | 0 | 0 | 0.103594 | 0.044397 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.090909 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5604fb94312f2f5acc86790e13206f7e1b309f47 | 7,146 | py | Python | main.py | bhaveshAn/Lucy | 9ea97184c725a10a041af64cad0ef4b533be42ad | [
"MIT"
] | 1 | 2018-04-13T08:26:27.000Z | 2018-04-13T08:26:27.000Z | main.py | bhaveshAn/Lucy | 9ea97184c725a10a041af64cad0ef4b533be42ad | [
"MIT"
] | null | null | null | main.py | bhaveshAn/Lucy | 9ea97184c725a10a041af64cad0ef4b533be42ad | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, jsonify
import os
import subprocess
from textblob import TextBlob
from nltk.tokenize import word_tokenize
from actions.horoscope import tell_horoscope
from actions.define_subject import define_subject
from actions.news import business_news, agriculture_news, finance_n... | 54.549618 | 174 | 0.695214 | 944 | 7,146 | 5.001059 | 0.129237 | 0.210972 | 0.243169 | 0.364753 | 0.598602 | 0.534421 | 0.480195 | 0.45287 | 0.396526 | 0.396526 | 0 | 0.00142 | 0.211447 | 7,146 | 130 | 175 | 54.969231 | 0.83638 | 0 | 0 | 0.155738 | 0 | 0 | 0.06885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02459 | false | 0 | 0.131148 | 0.016393 | 0.180328 | 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 |
4bd6183bcf1ba648eee05a0cc01cbe1a0d46268b | 530 | py | Python | routing.py | alanshi/falcon | c2929b28fc96f98ff4015fdcc4b72424954caa4a | [
"MIT"
] | 7 | 2015-01-19T05:44:22.000Z | 2021-12-14T09:32:25.000Z | routing.py | alanshi/falcon | c2929b28fc96f98ff4015fdcc4b72424954caa4a | [
"MIT"
] | 1 | 2016-05-23T01:19:55.000Z | 2016-11-18T03:09:52.000Z | routing.py | alanshi/falcon | c2929b28fc96f98ff4015fdcc4b72424954caa4a | [
"MIT"
] | 1 | 2019-09-26T03:14:56.000Z | 2019-09-26T03:14:56.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Filename: routing.py
# -----------------------------------------------------------------
# 2014-10-01 created
import tornado.web
import config
import handler.index
routings = [
(r"/static/(.*)", tornado.web.StaticFileHandler, {"path": config.STATIC_PATH}),
(r"/up... | 24.090909 | 86 | 0.503774 | 49 | 530 | 5.387755 | 0.632653 | 0.113636 | 0.204545 | 0.234848 | 0.280303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019068 | 0.109434 | 530 | 22 | 87 | 24.090909 | 0.540254 | 0.315094 | 0 | 0 | 0 | 0 | 0.111486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4be0eb60e5f83ca0c0afe6460b79ea68f7dfbea3 | 2,429 | py | Python | metaclasses/better_metaclass.py | matheus2740/blog | 2fc831cdd64d887ea1ded1961cd3c465136de30a | [
"MIT"
] | null | null | null | metaclasses/better_metaclass.py | matheus2740/blog | 2fc831cdd64d887ea1ded1961cd3c465136de30a | [
"MIT"
] | null | null | null | metaclasses/better_metaclass.py | matheus2740/blog | 2fc831cdd64d887ea1ded1961cd3c465136de30a | [
"MIT"
] | null | null | null | from better_choices import Choices
class ChoicesMeta(type):
ALLOWED_TYPES = (int, long, float, str, unicode, bool, tuple)
def __init__(cls, name, bases, dct, **kwargs):
"""
Extract triplet information from the class definition itself,
and then return a Choices() object instea... | 34.211268 | 110 | 0.610951 | 302 | 2,429 | 4.65894 | 0.417219 | 0.063966 | 0.073916 | 0.034115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.308357 | 2,429 | 70 | 111 | 34.7 | 0.834524 | 0.271717 | 0 | 0 | 0 | 0 | 0.054619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.025641 | 0.153846 | 0.512821 | 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 |
ef00fe3d5732c04d039f98fd9950b51728efcefa | 176 | py | Python | test/field/test_regex.py | marrow/mongo | 1a8e5fe9047b6a5bb2eaeea95f3dc085c737067f | [
"MIT"
] | 22 | 2016-03-22T05:32:26.000Z | 2021-06-19T06:23:47.000Z | test/field/test_regex.py | marrow/mongo | 1a8e5fe9047b6a5bb2eaeea95f3dc085c737067f | [
"MIT"
] | 59 | 2016-02-19T22:21:33.000Z | 2022-01-17T19:40:44.000Z | test/field/test_regex.py | marrow/mongo | 1a8e5fe9047b6a5bb2eaeea95f3dc085c737067f | [
"MIT"
] | 5 | 2016-06-24T06:55:44.000Z | 2021-07-12T22:33:07.000Z | # encoding: utf-8
from __future__ import unicode_literals
from common import FieldExam
from marrow.mongo.field import Regex
class RegexField(FieldExam):
__field__ = Regex
| 16 | 39 | 0.806818 | 23 | 176 | 5.782609 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.142045 | 176 | 10 | 40 | 17.6 | 0.874172 | 0.085227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ef2eef0771c7c791071495a58416496af16fe4de | 186 | py | Python | 0309/exer3.py | viniciuSSimizu/linguagem_e_programacao_II | 5e50aee361a9599ed40aab78c2f1c51514882be2 | [
"MIT"
] | null | null | null | 0309/exer3.py | viniciuSSimizu/linguagem_e_programacao_II | 5e50aee361a9599ed40aab78c2f1c51514882be2 | [
"MIT"
] | null | null | null | 0309/exer3.py | viniciuSSimizu/linguagem_e_programacao_II | 5e50aee361a9599ed40aab78c2f1c51514882be2 | [
"MIT"
] | null | null | null | def soma_impar(x, y):
lista = None
if x % 2 == 0:
lista = range(x+1, y+1, 2)
else:
lista = range(x, y+1, 2)
print(sum(lista))
soma_impar(2, 20)
| 18.6 | 35 | 0.473118 | 32 | 186 | 2.6875 | 0.5 | 0.209302 | 0.255814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 0.365591 | 186 | 9 | 36 | 20.666667 | 0.644068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ef574c5935831438d125fa01ead6c991977f1b35 | 166 | py | Python | flask-sklearn/__init__.py | davislf2/flask-sklearn | 8accd2e5144ab5df18d7d793c8dd14ec213a3343 | [
"MIT"
] | 1 | 2019-06-26T14:36:37.000Z | 2019-06-26T14:36:37.000Z | flask-sklearn/__init__.py | davislf2/flask-sklearn | 8accd2e5144ab5df18d7d793c8dd14ec213a3343 | [
"MIT"
] | 1 | 2021-03-25T22:22:55.000Z | 2021-03-25T22:22:55.000Z | flask-sklearn/__init__.py | davislf2/flask_sklearn | 8accd2e5144ab5df18d7d793c8dd14ec213a3343 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Documentation about flask-sklearn"""
from .__version__ import __version__
__author__ = "Davis Hong"
__email__ = 'davislf2.net@gmail.com'
| 20.75 | 39 | 0.716867 | 19 | 166 | 5.421053 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.126506 | 166 | 7 | 40 | 23.714286 | 0.696552 | 0.337349 | 0 | 0 | 0 | 0 | 0.307692 | 0.211538 | 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 |
ef5a4e6a8408556f70babdb2396e647843c1b8fc | 489 | py | Python | tests/data/reference_files.py | jamiecook/AequilibraE | b1013d59cbeaf6fc4e1a944cf31f20460a2a4156 | [
"MIT"
] | null | null | null | tests/data/reference_files.py | jamiecook/AequilibraE | b1013d59cbeaf6fc4e1a944cf31f20460a2a4156 | [
"MIT"
] | null | null | null | tests/data/reference_files.py | jamiecook/AequilibraE | b1013d59cbeaf6fc4e1a944cf31f20460a2a4156 | [
"MIT"
] | null | null | null | import tempfile
from os.path import dirname, abspath, join
# For the graph tests
test_network = join(dirname(dirname(abspath(__file__))),'data', 'Final_Network.shp')
test_graph = join(dirname(dirname(abspath(__file__))),'data', 'test_graph.aeg')
path_test = tempfile.gettempdir()
gtfs_folder = join(dirname(dirname(abs... | 37.615385 | 84 | 0.758691 | 70 | 489 | 4.928571 | 0.371429 | 0.202899 | 0.208696 | 0.289855 | 0.405797 | 0.405797 | 0.214493 | 0 | 0 | 0 | 0 | 0 | 0.087935 | 489 | 13 | 85 | 37.615385 | 0.773543 | 0.083845 | 0 | 0 | 0 | 0 | 0.152466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
ef5be6244d531407f801e0bcc2a9249d9dfc0eec | 88 | py | Python | ansiscape/exceptions/__init__.py | cariad/ansiscape | 07118b68729fcdc2198fc69c35bb1e9ef1bb5b80 | [
"MIT"
] | null | null | null | ansiscape/exceptions/__init__.py | cariad/ansiscape | 07118b68729fcdc2198fc69c35bb1e9ef1bb5b80 | [
"MIT"
] | 30 | 2021-09-05T13:56:21.000Z | 2021-10-05T11:14:11.000Z | ansiscape/exceptions/__init__.py | cariad/ansiscape | 07118b68729fcdc2198fc69c35bb1e9ef1bb5b80 | [
"MIT"
] | null | null | null | from ansiscape.exceptions.attribute import AttributeError
__all__ = ["AttributeError"]
| 22 | 57 | 0.829545 | 8 | 88 | 8.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 88 | 3 | 58 | 29.333333 | 0.8625 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 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 |
324cd2e75e9dd668e303ecfb93b74e5890a5f048 | 83 | py | Python | djbs/apps.py | zachtib/djbs | acb443a9e9fbcc7b4965476b703d3ef71fc64688 | [
"MIT"
] | null | null | null | djbs/apps.py | zachtib/djbs | acb443a9e9fbcc7b4965476b703d3ef71fc64688 | [
"MIT"
] | null | null | null | djbs/apps.py | zachtib/djbs | acb443a9e9fbcc7b4965476b703d3ef71fc64688 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DjbsConfig(AppConfig):
name = 'djbs'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
325e5974241df4c8fc5a488680b26f5ef067b0cd | 62 | py | Python | learn.py | hx123123/Delivery-Detection-EAST | 16eff83b311fbb2090f91af4d23c196d0774677c | [
"MIT"
] | 1 | 2020-03-28T00:56:03.000Z | 2020-03-28T00:56:03.000Z | learn.py | arieshx/Delivery-Detection-EAST | 16eff83b311fbb2090f91af4d23c196d0774677c | [
"MIT"
] | null | null | null | learn.py | arieshx/Delivery-Detection-EAST | 16eff83b311fbb2090f91af4d23c196d0774677c | [
"MIT"
] | null | null | null | from tqdm import tqdm
for a in tqdm(range(10)):
print(a)
| 12.4 | 25 | 0.66129 | 12 | 62 | 3.416667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.225806 | 62 | 4 | 26 | 15.5 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
32743d98a22cf6e7f4229b47db747938bf0a5d37 | 118 | py | Python | web_scraping/ec2files/ec2file121.py | nikibhatt/Groa | fc2d4ae87cb825e6d54a0831c72be16541eebe61 | [
"MIT"
] | 1 | 2020-04-08T19:44:30.000Z | 2020-04-08T19:44:30.000Z | web_scraping/ec2files/ec2file121.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | null | null | null | web_scraping/ec2files/ec2file121.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | 1 | 2020-09-12T07:07:41.000Z | 2020-09-12T07:07:41.000Z | from scraper import *
s = Scraper(start=215622, end=217403, max_iter=30, scraper_instance=121)
s.scrape_letterboxd() | 39.333333 | 73 | 0.779661 | 18 | 118 | 4.944444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160377 | 0.101695 | 118 | 3 | 74 | 39.333333 | 0.679245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
327f37da6f78a7dd5468b71c2645fc12fd8d0bfb | 105 | py | Python | src/customerservice/apps.py | edbolivar/perfectpair-django | 798a88d16c6689bad2248add0e4e4958bda64545 | [
"MIT"
] | null | null | null | src/customerservice/apps.py | edbolivar/perfectpair-django | 798a88d16c6689bad2248add0e4e4958bda64545 | [
"MIT"
] | 9 | 2019-12-04T23:15:54.000Z | 2022-02-10T11:05:43.000Z | src/customerservice/apps.py | edbolivar/perfectpair | c165cff40353c602fe0dc418375b90e9b25de674 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CustomerserviceConfig(AppConfig):
name = 'customerservice'
| 17.5 | 39 | 0.790476 | 10 | 105 | 8.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 105 | 5 | 40 | 21 | 0.922222 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
32bc6c412e87b7efc2995252460a7569bdd704f5 | 141 | py | Python | Fight_modules/enumTest.py | Pebecko/Reknamorcen | c142971ce8ac0284080a16015124083da26b7d0d | [
"MIT"
] | null | null | null | Fight_modules/enumTest.py | Pebecko/Reknamorcen | c142971ce8ac0284080a16015124083da26b7d0d | [
"MIT"
] | null | null | null | Fight_modules/enumTest.py | Pebecko/Reknamorcen | c142971ce8ac0284080a16015124083da26b7d0d | [
"MIT"
] | null | null | null | from enum import Enum
class Difficulty(Enum):
lower = "lower"
medium = "medium"
hard = "hard"
diffuculty = Difficulty().lower
| 14.1 | 31 | 0.652482 | 16 | 141 | 5.75 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234043 | 141 | 9 | 32 | 15.666667 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 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 |
32c4a5a3079656f95128c5e55468d3cbab3eb3cd | 863 | py | Python | List/kbc_part_1.py | Ena-Sharma/Meraki_Solution | 1bfff62f6aeb69354712d0b5a9e46ddacff357f5 | [
"MIT"
] | null | null | null | List/kbc_part_1.py | Ena-Sharma/Meraki_Solution | 1bfff62f6aeb69354712d0b5a9e46ddacff357f5 | [
"MIT"
] | null | null | null | List/kbc_part_1.py | Ena-Sharma/Meraki_Solution | 1bfff62f6aeb69354712d0b5a9e46ddacff357f5 | [
"MIT"
] | null | null | null | question=["Ques 1: The weight of diamonds is usually measured in what?","Ques 2: Who of these politicians is this person talking about? ","Ques 3: Which state of India has the shortest coastline?","Ques 4: Vasant, Vinod, Mahasukh, Gautam and Rajesh are brothers related to whih of these business families?","Ques 5: Who ... | 107.875 | 396 | 0.714948 | 144 | 863 | 4.215278 | 0.645833 | 0.023064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006596 | 0.121669 | 863 | 8 | 397 | 107.875 | 0.794195 | 0 | 0 | 0 | 0 | 0.142857 | 0.716435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
08706fbc6d8a956a9ff5c8786a5e1380ebb95c07 | 891 | py | Python | tests/libs/test_replay_memory.py | neka-nat/distributed_rl | 99434bb8af100e1a490a0eb42b63b3198c75c32c | [
"MIT"
] | 72 | 2018-12-23T10:36:35.000Z | 2022-03-18T01:26:49.000Z | tests/libs/test_replay_memory.py | neka-nat/distributed_rl | 99434bb8af100e1a490a0eb42b63b3198c75c32c | [
"MIT"
] | 3 | 2019-09-17T15:23:09.000Z | 2020-12-13T07:03:57.000Z | tests/libs/test_replay_memory.py | neka-nat/distributed_rl | 99434bb8af100e1a490a0eb42b63b3198c75c32c | [
"MIT"
] | 10 | 2019-07-17T18:26:29.000Z | 2022-03-03T09:51:13.000Z | import sys
sys.path.append("../..")
import unittest
import numpy as np
import torch
from distributed_rl.libs import replay_memory
class TestReplayMemory(unittest.TestCase):
def test_compressed_deque(self):
# in-memory
dq = replay_memory.generate_deque(True, False, 10)
dq.append(1)
s... | 27 | 58 | 0.606061 | 117 | 891 | 4.478632 | 0.358974 | 0.229008 | 0.206107 | 0.229008 | 0.564886 | 0.484733 | 0.366412 | 0.366412 | 0.366412 | 0.366412 | 0 | 0.039454 | 0.260382 | 891 | 32 | 59 | 27.84375 | 0.75569 | 0.020202 | 0 | 0.535714 | 0 | 0 | 0.014943 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.035714 | false | 0 | 0.178571 | 0 | 0.25 | 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 |
08905fd99126729aded3e7174e93368e94ebd579 | 316 | py | Python | 2018-01/01_Jan/14/01-ObjAttribute.py | z727354123/pyCharmTest | 9cbd770e19929cb4feb3be2f13b60dc0b1f68b56 | [
"Apache-2.0"
] | null | null | null | 2018-01/01_Jan/14/01-ObjAttribute.py | z727354123/pyCharmTest | 9cbd770e19929cb4feb3be2f13b60dc0b1f68b56 | [
"Apache-2.0"
] | null | null | null | 2018-01/01_Jan/14/01-ObjAttribute.py | z727354123/pyCharmTest | 9cbd770e19929cb4feb3be2f13b60dc0b1f68b56 | [
"Apache-2.0"
] | null | null | null | # 定义一个类
class Person:
pass
person = Person()
person.name = "张三"
dictA = person.__dict__
dictA['name'] = "xxx"
person.age = 18
dictB = person.__dict__
a = person
print(dictA, type(dictA))
print(dictB, dictA is dictB)
print(person.name)
del person.name
del person.name
del person.age
print(a.__dict__ is dictA) | 15.047619 | 28 | 0.718354 | 49 | 316 | 4.387755 | 0.346939 | 0.186047 | 0.181395 | 0.265116 | 0.209302 | 0.209302 | 0.209302 | 0 | 0 | 0 | 0 | 0.007491 | 0.155063 | 316 | 21 | 29 | 15.047619 | 0.797753 | 0.015823 | 0 | 0.125 | 0 | 0 | 0.029032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0 | 0 | 0.0625 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0894c903e81bea5bbcb92c19c71a159286786e84 | 1,152 | py | Python | sherlock/migrations/0002_auto_20210414_2356.py | seanjhulse/sherlock | ed63ad512173f0ef3337add3a0a1ac886962988b | [
"MIT"
] | 1 | 2021-03-23T04:54:33.000Z | 2021-03-23T04:54:33.000Z | sherlock/migrations/0002_auto_20210414_2356.py | seanjhulse/sherlock | ed63ad512173f0ef3337add3a0a1ac886962988b | [
"MIT"
] | 67 | 2021-02-19T03:24:56.000Z | 2021-05-21T00:24:17.000Z | sherlock/migrations/0002_auto_20210414_2356.py | seanjhulse/sherlock | ed63ad512173f0ef3337add3a0a1ac886962988b | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-04-14 23:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sherlock', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='packet',
name='ack',
),
... | 24 | 62 | 0.503472 | 99 | 1,152 | 5.747475 | 0.454545 | 0.126538 | 0.210896 | 0.267135 | 0.56239 | 0.56239 | 0.140598 | 0.140598 | 0 | 0 | 0 | 0.034819 | 0.376736 | 1,152 | 47 | 63 | 24.510638 | 0.75766 | 0.039063 | 0 | 0.585366 | 1 | 0 | 0.089593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.097561 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
08a093a2296aa8d0c842c49889b8ceabfa8d9ff1 | 410 | py | Python | commons/serialization.py | credo-science/credo-classify | 1cc5e00a4df36c4069c0d0fbc19f579780b79ca5 | [
"MIT"
] | null | null | null | commons/serialization.py | credo-science/credo-classify | 1cc5e00a4df36c4069c0d0fbc19f579780b79ca5 | [
"MIT"
] | 8 | 2021-03-30T12:52:01.000Z | 2022-03-12T00:19:45.000Z | commons/serialization.py | credo-science/credo-classify | 1cc5e00a4df36c4069c0d0fbc19f579780b79ca5 | [
"MIT"
] | 1 | 2020-06-12T13:29:34.000Z | 2020-06-12T13:29:34.000Z | from django.db.models import QuerySet
from rest_framework.viewsets import ModelViewSet
def get_safe_query_set(q: QuerySet, action: str) -> QuerySet:
if action in ['list', 'retrive', 'check', 'summary']:
return q
return q.select_for_update()
class SafeModelViewSet(ModelViewSet):
def get_queryset(... | 29.285714 | 70 | 0.726829 | 54 | 410 | 5.314815 | 0.592593 | 0.10453 | 0.125436 | 0.10453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163415 | 410 | 13 | 71 | 31.538462 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0.056098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.888889 | 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 |
08abfbecc0bf06ecd4ff6ab4727dd0f1d153490d | 190 | py | Python | test/test_cli.py | dvdface/fiberhome-oltcli | 69727a26ea87dff5fb1e92c12d363d61d7bd46d8 | [
"MIT"
] | 1 | 2021-07-20T12:05:38.000Z | 2021-07-20T12:05:38.000Z | test/test_cli.py | dvdface/fiberhome-oltcli | 69727a26ea87dff5fb1e92c12d363d61d7bd46d8 | [
"MIT"
] | null | null | null | test/test_cli.py | dvdface/fiberhome-oltcli | 69727a26ea87dff5fb1e92c12d363d61d7bd46d8 | [
"MIT"
] | 1 | 2022-03-11T23:08:42.000Z | 2022-03-11T23:08:42.000Z | from oltcli.cli import OLTModel, OLTCLI
def test_oltcli():
oltcli = OLTCLI.get(OLTModel.AN6000_17, '10.182.33.210', 'GPON', 'GPON')
assert type(oltcli.get_authorization()) == list
| 27.142857 | 76 | 0.705263 | 27 | 190 | 4.851852 | 0.703704 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09816 | 0.142105 | 190 | 6 | 77 | 31.666667 | 0.705521 | 0 | 0 | 0 | 0 | 0 | 0.110526 | 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 |
08ace95dbaa4ae06c41d8630c016385085564022 | 215 | py | Python | endpoint_test/tester/__main__.py | pjongy/jauth | 6e09129e263fb64bc7523042715459ebe8215487 | [
"MIT"
] | 1 | 2020-09-08T08:15:53.000Z | 2020-09-08T08:15:53.000Z | endpoint_test/tester/__main__.py | pjongy/jauth | 6e09129e263fb64bc7523042715459ebe8215487 | [
"MIT"
] | 6 | 2020-08-03T07:32:45.000Z | 2021-08-15T13:15:30.000Z | endpoint_test/tester/__main__.py | pjongy/jauth | 6e09129e263fb64bc7523042715459ebe8215487 | [
"MIT"
] | 1 | 2020-08-19T08:33:44.000Z | 2020-08-19T08:33:44.000Z | import unittest
from endpoint_test.tester.test_user import TestUser
if __name__ == "__main__":
suite = unittest.TestLoader().loadTestsFromTestCase(TestUser)
unittest.TextTestRunner(verbosity=2).run(suite)
| 26.875 | 65 | 0.790698 | 24 | 215 | 6.666667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.111628 | 215 | 7 | 66 | 30.714286 | 0.832461 | 0 | 0 | 0 | 0 | 0 | 0.037209 | 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 |
08c28d94a601d46acbca049d87b30fff77e58d6e | 653 | py | Python | src/shared/modifications/__init__.py | MarcSkovMadsen/awesome-panel-starter | b76854882a041c7b955a59785d08e167ffef07af | [
"Apache-2.0"
] | 5 | 2021-01-04T16:39:09.000Z | 2021-08-03T15:26:49.000Z | src/shared/modifications/__init__.py | MarcSkovMadsen/awesome-panel-starter | b76854882a041c7b955a59785d08e167ffef07af | [
"Apache-2.0"
] | 6 | 2020-12-28T03:28:25.000Z | 2021-09-11T13:07:51.000Z | src/shared/modifications/__init__.py | MarcSkovMadsen/awesome-panel-starter | b76854882a041c7b955a59785d08e167ffef07af | [
"Apache-2.0"
] | 1 | 2021-09-15T20:08:44.000Z | 2021-09-15T20:08:44.000Z | """Contains various modifications, fixes, workarounds and hacks of Panel and other packages to
enable running this site.
Run the `src.modifications.apply` function to apply the modifications"""
import panel as pn
from awesome_panel_extensions.widgets.button import AwesomeButton
from ._server import get_server
def a... | 28.391304 | 94 | 0.750383 | 92 | 653 | 5.26087 | 0.565217 | 0.07438 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182236 | 653 | 22 | 95 | 29.681818 | 0.906367 | 0.640123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
08c6444c34d920655fdbeb3cb9a006e6210d5e49 | 1,335 | py | Python | apu/dp/null.py | afeldman/apu | 223cd54ce8696c504e08baa94b34debb4f8dc0a2 | [
"MIT"
] | null | null | null | apu/dp/null.py | afeldman/apu | 223cd54ce8696c504e08baa94b34debb4f8dc0a2 | [
"MIT"
] | null | null | null | apu/dp/null.py | afeldman/apu | 223cd54ce8696c504e08baa94b34debb4f8dc0a2 | [
"MIT"
] | null | null | null | """ null objects do nothing only marking the position as null"""
class Null:
""" Null Object implementation
This class ignores all parameters parsed to the object
on creation.
The created instances do nothing and mark an object
nor nothing
"""
def __init__(self, *args, **ka... | 22.627119 | 64 | 0.505618 | 133 | 1,335 | 4.864662 | 0.383459 | 0.069552 | 0.131376 | 0.162287 | 0.50541 | 0.463679 | 0.463679 | 0.358578 | 0.358578 | 0.228748 | 0 | 0 | 0.378277 | 1,335 | 58 | 65 | 23.017241 | 0.779518 | 0.462921 | 0 | 0.266667 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.466667 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
08d360c19953fed30b5fdf152c657ce02cdfbce6 | 2,012 | py | Python | tests/test_forms.py | jelford/activesoup | acb4c3c416b724cc68755e6c5673504c7480fcb3 | [
"MIT"
] | 33 | 2016-04-10T09:35:07.000Z | 2022-03-15T22:20:34.000Z | tests/test_forms.py | jelford/activesoup | acb4c3c416b724cc68755e6c5673504c7480fcb3 | [
"MIT"
] | 5 | 2016-09-17T15:39:04.000Z | 2021-05-29T15:27:45.000Z | tests/test_forms.py | jelford/activesoup | acb4c3c416b724cc68755e6c5673504c7480fcb3 | [
"MIT"
] | 7 | 2016-09-17T15:32:22.000Z | 2022-03-15T22:23:30.000Z | from activesoup import driver
def test_form_submission_includes_form_fields_which_arent_specified(localwebserver):
d = driver.Driver()
page = d.get(f"http://localhost:{localwebserver.port}/html/page_with_form.html")
result = page.form.submit({"visible_field": "my-value"})
assert result._raw_response.... | 32.983607 | 91 | 0.681412 | 251 | 2,012 | 5.195219 | 0.258964 | 0.02684 | 0.080521 | 0.103528 | 0.746933 | 0.709356 | 0.709356 | 0.709356 | 0.661043 | 0.572853 | 0 | 0.004132 | 0.158052 | 2,012 | 60 | 92 | 33.533333 | 0.765643 | 0 | 0 | 0.372093 | 0 | 0 | 0.327038 | 0.035785 | 0 | 0 | 0 | 0 | 0.116279 | 1 | 0.116279 | false | 0 | 0.023256 | 0 | 0.139535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 |
08d734abb20f6cf003035bb01b8987ae2e3a3d84 | 227 | py | Python | deneme.py | nehiridil/MLDays_nlp | 20d29d01836c82361cb1b656f2e98d7435a93622 | [
"MIT"
] | null | null | null | deneme.py | nehiridil/MLDays_nlp | 20d29d01836c82361cb1b656f2e98d7435a93622 | [
"MIT"
] | null | null | null | deneme.py | nehiridil/MLDays_nlp | 20d29d01836c82361cb1b656f2e98d7435a93622 | [
"MIT"
] | null | null | null | from base64 import encode
from gensim.models import KeyedVectors, Word2Vec
from gensim.models import KeyedVectors
word_vectors = KeyedVectors.load_word2vec_format('model', binary=True)
print(word_vectors.most_similar('sahip')) | 37.833333 | 70 | 0.84141 | 30 | 227 | 6.2 | 0.633333 | 0.107527 | 0.172043 | 0.236559 | 0.365591 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019139 | 0.079295 | 227 | 6 | 71 | 37.833333 | 0.870813 | 0 | 0 | 0 | 0 | 0 | 0.04386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
08db786987727f996580de9be2efd66f1181a44d | 46 | py | Python | classifiers/__init__.py | jcdesimp/NLP-ps3-SPR2017 | 2205f52e2629fb142fd54df2b8d4b8df9466687c | [
"MIT"
] | 1 | 2017-04-05T14:42:40.000Z | 2017-04-05T14:42:40.000Z | classifiers/__init__.py | jcdesimp/NLP-ps3 | 2205f52e2629fb142fd54df2b8d4b8df9466687c | [
"MIT"
] | null | null | null | classifiers/__init__.py | jcdesimp/NLP-ps3 | 2205f52e2629fb142fd54df2b8d4b8df9466687c | [
"MIT"
] | null | null | null | __all__ = ["event_type", "genre", "polarity"]
| 23 | 45 | 0.652174 | 5 | 46 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 46 | 1 | 46 | 46 | 0.609756 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
08ddda63c48c2ee8fc898e0b5167c5690e05ec07 | 962 | py | Python | composer/conftest.py | vmatsnev/python-docs-samples | 10efc854d67330925441e32a7fc7fb7379762fa4 | [
"Apache-2.0"
] | 1 | 2021-03-16T03:15:50.000Z | 2021-03-16T03:15:50.000Z | composer/conftest.py | vmatsnev/python-docs-samples | 10efc854d67330925441e32a7fc7fb7379762fa4 | [
"Apache-2.0"
] | null | null | null | composer/conftest.py | vmatsnev/python-docs-samples | 10efc854d67330925441e32a7fc7fb7379762fa4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 37 | 82 | 0.760915 | 149 | 962 | 4.90604 | 0.637584 | 0.082079 | 0.035568 | 0.043776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012594 | 0.174636 | 962 | 25 | 83 | 38.48 | 0.90806 | 0.809771 | 0 | 0 | 0 | 0 | 0.042424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3e933643212c58500772c2b180bff9dd9b4a9150 | 442 | py | Python | msibi/tests/test_error_calculation.py | ctk3b/ms-ibi | fe2bd543093531740cca4666721b0c0bb5be539f | [
"MIT"
] | 8 | 2017-06-14T18:37:56.000Z | 2019-11-19T18:00:18.000Z | msibi/tests/test_error_calculation.py | ctk3b/ms-ibi | fe2bd543093531740cca4666721b0c0bb5be539f | [
"MIT"
] | 22 | 2021-03-24T18:09:57.000Z | 2022-02-24T18:36:49.000Z | msibi/tests/test_error_calculation.py | ctk3b/ms-ibi | fe2bd543093531740cca4666721b0c0bb5be539f | [
"MIT"
] | 8 | 2017-06-13T21:22:56.000Z | 2021-03-24T16:17:29.000Z | import numpy as np
from msibi.utils.error_calculation import calc_similarity
def test_calc_similarity():
arr1 = np.ones(10)
arr2 = np.ones(10)
f_fit = calc_similarity(arr1, arr2)
assert f_fit == 1.0
arr2 = np.zeros(10)
f_fit = calc_similarity(arr1, arr2)
assert f_fit == 0.0
arr1 = n... | 23.263158 | 69 | 0.680995 | 69 | 442 | 4.188406 | 0.347826 | 0.290657 | 0.249135 | 0.228374 | 0.262976 | 0.262976 | 0.262976 | 0.262976 | 0.262976 | 0.262976 | 0 | 0.077143 | 0.208145 | 442 | 18 | 70 | 24.555556 | 0.748571 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 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 |
3eb2c7d66fb5267d8d8df6ebd9b3f460bf047399 | 76 | py | Python | SW Expert Academy/src/2063/solve.py | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | SW Expert Academy/src/2063/solve.py | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | SW Expert Academy/src/2063/solve.py | lstar2397/algorithms | 686ea882079e26111f86b5bd5a7ab1b14ccf0fa2 | [
"MIT"
] | null | null | null | n = int(input())
d = sorted(map(int, input().split()))
print(d[len(d) // 2]) | 25.333333 | 37 | 0.565789 | 14 | 76 | 3.071429 | 0.714286 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.118421 | 76 | 3 | 38 | 25.333333 | 0.626866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3eb7d269dbd5e9bcc8020d6342c1bf270fb3d6fd | 453 | py | Python | fastlane/models/__init__.py | marcelometal/fastlane | 829afd9a9b81110c47cab175cc40b892e0aebebd | [
"MIT"
] | 32 | 2019-02-19T01:37:57.000Z | 2022-03-19T22:12:23.000Z | fastlane/models/__init__.py | marcelometal/fastlane | 829afd9a9b81110c47cab175cc40b892e0aebebd | [
"MIT"
] | 15 | 2019-02-18T17:51:57.000Z | 2020-03-20T16:27:38.000Z | fastlane/models/__init__.py | marcelometal/fastlane | 829afd9a9b81110c47cab175cc40b892e0aebebd | [
"MIT"
] | 26 | 2019-02-14T20:00:11.000Z | 2020-01-24T18:12:57.000Z | """ isort:skip_file """
# 3rd Party
from flask_mongoengine import MongoEngine
db = MongoEngine() # isort:skip pylint: disable=invalid-name
from fastlane.models.task import Task # NOQA pylint: disable=unused-import,wrong-import-position
from fastlane.models.job import Job # NOQA pylint: disable=unused-import,wro... | 41.181818 | 113 | 0.796909 | 61 | 453 | 5.868852 | 0.393443 | 0.145251 | 0.150838 | 0.192737 | 0.519553 | 0.519553 | 0.519553 | 0.519553 | 0.385475 | 0.385475 | 0 | 0.002475 | 0.108168 | 453 | 10 | 114 | 45.3 | 0.883663 | 0.525386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 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 |
3eba37558ba126128a3299998faad65af93a0274 | 496 | py | Python | conversion/quiz_to_js/src/utils/file.py | ShaigroRB/misquiz | df23db4f320df79adcb71339ef95cecce48315ee | [
"MIT"
] | null | null | null | conversion/quiz_to_js/src/utils/file.py | ShaigroRB/misquiz | df23db4f320df79adcb71339ef95cecce48315ee | [
"MIT"
] | 1 | 2020-08-26T10:35:51.000Z | 2020-10-14T09:13:32.000Z | conversion/quiz_to_js/src/utils/file.py | ShaigroRB/misquiz | df23db4f320df79adcb71339ef95cecce48315ee | [
"MIT"
] | null | null | null | def compare_extension(filename: str, expected_extension: str):
""" Compare the extension of the given file with the expected extension """
return filename.endswith(expected_extension)
def get_compatible_filename(filename: str, extension: str):
""" Get the filename as a non-problematic string (replace ' ' ... | 49.6 | 106 | 0.689516 | 59 | 496 | 5.610169 | 0.457627 | 0.154079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149194 | 496 | 9 | 107 | 55.111111 | 0.78436 | 0.328629 | 0 | 0 | 0 | 0 | 0.018809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4126cdcd01253ce45c4096e414f84f0af03184e7 | 130 | py | Python | S4/S4 Library/simulation/interactions/utils/outcome_enums.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/interactions/utils/outcome_enums.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/interactions/utils/outcome_enums.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from sims4.tuning.dynamic_enum import DynamicEnum
class OutcomeResult(DynamicEnum):
NONE = 0
SUCCESS = 1
FAILURE = 2
| 18.571429 | 49 | 0.723077 | 16 | 130 | 5.8125 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.215385 | 130 | 6 | 50 | 21.666667 | 0.872549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
f5ab9018f440f92eb828c3957763a1701f8b1564 | 212 | py | Python | Curso em video/Desafios1-20/Desafio2.py | Ry18-2003/Python-Journey | c926a733a578f3686767a1189bdccb4df137856d | [
"MIT"
] | null | null | null | Curso em video/Desafios1-20/Desafio2.py | Ry18-2003/Python-Journey | c926a733a578f3686767a1189bdccb4df137856d | [
"MIT"
] | null | null | null | Curso em video/Desafios1-20/Desafio2.py | Ry18-2003/Python-Journey | c926a733a578f3686767a1189bdccb4df137856d | [
"MIT"
] | null | null | null | dia = input('Em que dia você nasceu? ')
mes = input('O mes que você nasceu? ')
ano = input('E o ano? ')
print(f'Em tão você nasceu no ano de {ano} no mes {mes} no dia {dia}, esta '
'correto isso?')
input()
| 30.285714 | 76 | 0.617925 | 39 | 212 | 3.358974 | 0.461538 | 0.229008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221698 | 212 | 6 | 77 | 35.333333 | 0.793939 | 0 | 0 | 0 | 0 | 0.166667 | 0.641509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
f5adf190f92395d871972bb5805e44ae19e9b661 | 256 | py | Python | python/hamming/hamming.py | rrkabra/exercism | 16de84acbafa385aac97058eaea0914d8ba2698e | [
"MIT"
] | null | null | null | python/hamming/hamming.py | rrkabra/exercism | 16de84acbafa385aac97058eaea0914d8ba2698e | [
"MIT"
] | null | null | null | python/hamming/hamming.py | rrkabra/exercism | 16de84acbafa385aac97058eaea0914d8ba2698e | [
"MIT"
] | null | null | null | def distance(strand_a, strand_b):
"""Return the hamming distance of given strands of DNA"""
if len(strand_a) != len(strand_b):
raise ValueError("Strand length doesn't match")
return sum(1 for a,b in zip(strand_a, strand_b) if a != b)
| 32 | 62 | 0.671875 | 44 | 256 | 3.772727 | 0.568182 | 0.126506 | 0.156627 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.210938 | 256 | 7 | 63 | 36.571429 | 0.816832 | 0.199219 | 0 | 0 | 0 | 0 | 0.135678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f5b009db4a601464a78c2c3736025e0af01ac036 | 253 | py | Python | django/views/decorators/gzip.py | PirosB3/django | 9b729ddd8f2040722971ccfb3b12f7d8162633d1 | [
"BSD-3-Clause"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | django/views/decorators/gzip.py | mradziej/django | 5d38965743a369981c9a738a298f467f854a2919 | [
"BSD-3-Clause"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | django/views/decorators/gzip.py | mradziej/django | 5d38965743a369981c9a738a298f467f854a2919 | [
"BSD-3-Clause"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | from django.utils.decorators import decorator_from_middleware
from django.middleware.gzip import GZipMiddleware
gzip_page = decorator_from_middleware(GZipMiddleware)
gzip_page.__doc__ = "Decorator for views that gzips pages if the client supports it."
| 42.166667 | 85 | 0.853755 | 34 | 253 | 6.058824 | 0.617647 | 0.097087 | 0.223301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098814 | 253 | 5 | 86 | 50.6 | 0.903509 | 0 | 0 | 0 | 0 | 0 | 0.249012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f5bff2c9d52984c6d7402001207459feaeb152f4 | 100 | py | Python | django_stripe/apps.py | itsnamgyu/api-demo | ddf726928bd7f1021143c4dbb530e3017a3edda9 | [
"MIT"
] | 1 | 2019-06-02T08:20:38.000Z | 2019-06-02T08:20:38.000Z | django_stripe/apps.py | itsnamgyu/api-demo | ddf726928bd7f1021143c4dbb530e3017a3edda9 | [
"MIT"
] | 12 | 2019-07-21T18:40:35.000Z | 2019-10-05T19:57:49.000Z | django_stripe/apps.py | itsnamgyu/django-template | 20f64974e0dda69cf8dcf0dac9e0a309f200fb61 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DjangoStripeConfig(AppConfig):
name = "django_stripe"
| 16.666667 | 36 | 0.78 | 11 | 100 | 7 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 100 | 5 | 37 | 20 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0.13 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f5e3019ea847c95591ac016800f9dbba6a9ed9bb | 16,381 | py | Python | gem/tests/test_management_commands.py | torchbox/molo-gem | e4050555b9890bb1c9bd00ec11b47d67030a53b2 | [
"BSD-2-Clause"
] | 1 | 2017-08-03T22:35:36.000Z | 2017-08-03T22:35:36.000Z | gem/tests/test_management_commands.py | torchbox/molo-gem | e4050555b9890bb1c9bd00ec11b47d67030a53b2 | [
"BSD-2-Clause"
] | 2 | 2017-05-17T00:51:51.000Z | 2017-06-06T10:35:05.000Z | gem/tests/test_management_commands.py | torchbox/molo-gem | e4050555b9890bb1c9bd00ec11b47d67030a53b2 | [
"BSD-2-Clause"
] | 1 | 2018-03-28T02:07:34.000Z | 2018-03-28T02:07:34.000Z | # -*- coding: UTF-8 -*-
from datetime import datetime
from django.contrib.sites.models import Site
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django_comments.models import Comment
from django.core.management import call_command
from django.test import Tes... | 42.002564 | 79 | 0.646786 | 1,711 | 16,381 | 5.952659 | 0.126242 | 0.070692 | 0.030928 | 0.045361 | 0.765243 | 0.722828 | 0.719784 | 0.705744 | 0.683554 | 0.587923 | 0 | 0.005633 | 0.252243 | 16,381 | 389 | 80 | 42.11054 | 0.8257 | 0.001282 | 0 | 0.610169 | 0 | 0 | 0.104536 | 0.054713 | 0 | 0 | 0 | 0 | 0.169492 | 1 | 0.016949 | false | 0 | 0.033898 | 0 | 0.053672 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.