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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
709d2ecc2a25d27169f47513f3f8dd9fbca3c82e | 311 | py | Python | sigtestv/stats/var_reduce.py | castorini/sigtestv | 1eea53191196ec492b73abc1e3895ffb02daab06 | [
"MIT"
] | null | null | null | sigtestv/stats/var_reduce.py | castorini/sigtestv | 1eea53191196ec492b73abc1e3895ffb02daab06 | [
"MIT"
] | 1 | 2019-12-15T20:27:30.000Z | 2019-12-15T20:27:30.000Z | sigtestv/stats/var_reduce.py | castorini/sigtestv | 1eea53191196ec492b73abc1e3895ffb02daab06 | [
"MIT"
] | null | null | null | import numpy as np
def cv_adjust(samples, control_samples, expected_control, cov=None):
if cov is None:
cov = np.cov(samples, control_samples)[0][1]
var = np.var(control_samples)
if var == 0: return samples
c = -cov / var
return samples + c * (control_samples - expected_control)
| 25.916667 | 68 | 0.672026 | 46 | 311 | 4.391304 | 0.413043 | 0.277228 | 0.207921 | 0.287129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012448 | 0.22508 | 311 | 11 | 69 | 28.272727 | 0.825726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 |
70a4c0378b007de942d1349a298346216fc1beed | 20,174 | py | Python | lambda_function.py | mr-yamraj/Alexa-Stack-overflow | 444a128f9a0a60fd561ad1f1918ae364d1d96374 | [
"MIT"
] | 3 | 2018-09-27T08:44:18.000Z | 2020-10-12T12:37:04.000Z | lambda_function.py | mr-yamraj/Alexa-Stack-overflow | 444a128f9a0a60fd561ad1f1918ae364d1d96374 | [
"MIT"
] | 2 | 2018-10-09T10:54:35.000Z | 2018-10-09T10:55:54.000Z | lambda_function.py | mr-yamraj/Alexa-Stack-overflow | 444a128f9a0a60fd561ad1f1918ae364d1d96374 | [
"MIT"
] | 2 | 2018-09-30T13:27:43.000Z | 2018-10-02T05:05:15.000Z | from alexa_response import get_session_attributes, get_response, give_response
from search import search_name, search_questions, search_answer
from output_speech import session_end_greetings, get_cancel_instructions, get_helping_instructions, no_correct_answer, no_questions, no_more_questions, next_related_question, ne... | 68.386441 | 272 | 0.713344 | 2,274 | 20,174 | 6.027265 | 0.079595 | 0.11039 | 0.040201 | 0.047497 | 0.830147 | 0.745294 | 0.675981 | 0.614257 | 0.585656 | 0.570845 | 0 | 0.001877 | 0.181372 | 20,174 | 295 | 273 | 68.386441 | 0.828035 | 0.0172 | 0 | 0.406844 | 0 | 0.007605 | 0.287351 | 0.025893 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019011 | null | null | 0.102662 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
562796b2a965909227903ffd18e970ce5247ab0c | 422 | py | Python | signallistmodel.py | Kh4l3tH/PySide-Utilities | 90e85e477bef04eeaba1898b839af69c8422c737 | [
"MIT"
] | null | null | null | signallistmodel.py | Kh4l3tH/PySide-Utilities | 90e85e477bef04eeaba1898b839af69c8422c737 | [
"MIT"
] | null | null | null | signallistmodel.py | Kh4l3tH/PySide-Utilities | 90e85e477bef04eeaba1898b839af69c8422c737 | [
"MIT"
] | null | null | null | from PySide import QtCore
class SignalListModel(QtCore.QAbstractListModel):
def __init__(self, list):
super().__init__()
self.list = list
self.list.changed.connect(self.layoutChanged.emit)
def rowCount(self, parent):
return len(self.list)
def data(self, index, role=QtCore... | 26.375 | 58 | 0.656398 | 50 | 422 | 5.38 | 0.54 | 0.148699 | 0.089219 | 0.171004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229858 | 422 | 15 | 59 | 28.133333 | 0.827692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.090909 | 0.636364 | 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 |
562c48b8ab9fcb91734294ddd4452ff476bcd0dc | 82 | py | Python | Chapter 8 - Functions & Recursion/03_default_arguments.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 8 - Functions & Recursion/03_default_arguments.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 8 - Functions & Recursion/03_default_arguments.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | 1 | 2021-04-21T10:23:08.000Z | 2021-04-21T10:23:08.000Z | def greet(name="Stranger"):
print("Good Day, " +name)
greet("Root")
greet()
| 11.714286 | 29 | 0.609756 | 11 | 82 | 4.545455 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 82 | 6 | 30 | 13.666667 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0.271605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
566776e25c10ed5dffb22db4be04eb074002def5 | 128 | py | Python | metagov/metagov/plugins/tsc/apps.py | ajnam12/gateway | 8e2265820687ff8091eeb43643df80e88d470fe4 | [
"MIT"
] | 8 | 2021-11-18T18:26:04.000Z | 2022-02-28T20:07:56.000Z | metagov/metagov/plugins/tsc/apps.py | ajnam12/gateway | 8e2265820687ff8091eeb43643df80e88d470fe4 | [
"MIT"
] | 38 | 2021-11-17T14:25:21.000Z | 2022-03-28T20:38:47.000Z | metagov/metagov/plugins/tsc/apps.py | ajnam12/gateway | 8e2265820687ff8091eeb43643df80e88d470fe4 | [
"MIT"
] | 2 | 2021-12-22T02:27:24.000Z | 2022-01-18T02:45:14.000Z | from django.apps import AppConfig
class PluginAppConfig(AppConfig):
name = "metagov.plugins.tsc"
label = "metagov_tsc" | 21.333333 | 33 | 0.742188 | 15 | 128 | 6.266667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164063 | 128 | 6 | 34 | 21.333333 | 0.878505 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
566bf62b5b889ad39caa95dc70667d02976a7b02 | 258 | py | Python | python_modules/libraries/dagster-shell/dagster_shell_tests/example_shell_script_op.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 4,606 | 2018-06-21T17:45:20.000Z | 2022-03-31T23:39:42.000Z | python_modules/libraries/dagster-shell/dagster_shell_tests/example_shell_script_op.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 6,221 | 2018-06-12T04:36:01.000Z | 2022-03-31T21:43:05.000Z | python_modules/libraries/dagster-shell/dagster_shell_tests/example_shell_script_op.py | dbatten5/dagster | d76e50295054ffe5a72f9b292ef57febae499528 | [
"Apache-2.0"
] | 619 | 2018-08-22T22:43:09.000Z | 2022-03-31T22:48:06.000Z | # pylint: disable=no-value-for-parameter
from dagster import file_relative_path, graph
from dagster_shell import create_shell_script_op
@graph
def my_graph():
a = create_shell_script_op(file_relative_path(__file__, "hello_world.sh"), name="a")
a()
| 25.8 | 88 | 0.77907 | 40 | 258 | 4.6 | 0.6 | 0.119565 | 0.173913 | 0.206522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120155 | 258 | 9 | 89 | 28.666667 | 0.810573 | 0.147287 | 0 | 0 | 0 | 0 | 0.068807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
569dcabeef4a9ce059b8427baab69fc0085038b7 | 148 | py | Python | examples/gallery1.py | rossbar/papyri | b2d8dc6b3b5f3a8ec6de5cd1edf32c52038e3910 | [
"MIT"
] | 29 | 2021-04-09T18:49:15.000Z | 2021-12-01T23:26:54.000Z | examples/gallery1.py | rossbar/papyri | b2d8dc6b3b5f3a8ec6de5cd1edf32c52038e3910 | [
"MIT"
] | 18 | 2022-01-31T20:44:17.000Z | 2022-03-24T19:21:37.000Z | examples/gallery1.py | rossbar/papyri | b2d8dc6b3b5f3a8ec6de5cd1edf32c52038e3910 | [
"MIT"
] | 6 | 2022-01-03T23:43:21.000Z | 2022-03-08T18:09:11.000Z | import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots()
x = np.arange(0, 10, 0.1)
ax.plot(x, np.sin(x))
ax.plot(x, np.cos(x))
| 16.444444 | 31 | 0.662162 | 32 | 148 | 3.0625 | 0.5625 | 0.091837 | 0.142857 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.155405 | 148 | 8 | 32 | 18.5 | 0.744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 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 |
3b08800b6936b6e15a8f922757b3774bf24e5c97 | 546 | py | Python | django_app/badzet/models.py | danesjenovdan/badzet | 413528d6b9036d438e8d47032b10d023f1512b12 | [
"Unlicense"
] | null | null | null | django_app/badzet/models.py | danesjenovdan/badzet | 413528d6b9036d438e8d47032b10d023f1512b12 | [
"Unlicense"
] | null | null | null | django_app/badzet/models.py | danesjenovdan/badzet | 413528d6b9036d438e8d47032b10d023f1512b12 | [
"Unlicense"
] | null | null | null | from django.db import models
class Budget(models.Model):
subject = models.CharField(max_length=256, blank=True, null=True)
konto = models.IntegerField(max_length=256, blank=True, null=True)
revenue_expenses = models.CharField(max_length=256, blank=True, null=True)
classification = models.CharField(max... | 45.5 | 78 | 0.750916 | 77 | 546 | 5.233766 | 0.324675 | 0.156328 | 0.225806 | 0.295285 | 0.669975 | 0.669975 | 0.669975 | 0.669975 | 0.669975 | 0 | 0 | 0.037815 | 0.128205 | 546 | 11 | 79 | 49.636364 | 0.808824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3b0b9322295a630ccbc1ba1cccc2edbd143f9eec | 568 | py | Python | GUI/WifiMonitor/plot.py | gchinellato/XD | f6c0134030c5e229a7b9c2621311c5204aed77af | [
"MIT"
] | 1 | 2019-10-15T20:31:39.000Z | 2019-10-15T20:31:39.000Z | GUI/WifiMonitor/plot.py | gchinellato/XD | f6c0134030c5e229a7b9c2621311c5204aed77af | [
"MIT"
] | null | null | null | GUI/WifiMonitor/plot.py | gchinellato/XD | f6c0134030c5e229a7b9c2621311c5204aed77af | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import time
import queue
import logging
#import matplotlib.pyplot as plt
import numpy as np
import threading
from PyQt5 import QtGui, QtCore, QtWidgets
import random
class Plot(QtCore.QThread):
def __init__(self, parent = None):
QtCore.QThread.__init__(self, parent)
self.parent ... | 20.285714 | 45 | 0.661972 | 71 | 568 | 5.140845 | 0.605634 | 0.082192 | 0.076712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.257042 | 568 | 27 | 46 | 21.037037 | 0.85545 | 0.144366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.388889 | 0 | 0.611111 | 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 |
3b1418d6a0affd9657c2362e1ddcb963feda2c1f | 295 | py | Python | helpers/__init__.py | LouisPi/PiPortableRecorder | 430a4b6e1e869cbd68fd89bbf97261710fd7db6b | [
"Apache-2.0",
"MIT"
] | 51 | 2017-12-03T21:59:13.000Z | 2021-01-02T17:13:34.000Z | helpers/__init__.py | LouisPi/PiPortableRecorder | 430a4b6e1e869cbd68fd89bbf97261710fd7db6b | [
"Apache-2.0",
"MIT"
] | 153 | 2017-10-27T19:59:46.000Z | 2020-01-14T23:58:57.000Z | helpers/__init__.py | LouisPi/PiPortableRecorder | 430a4b6e1e869cbd68fd89bbf97261710fd7db6b | [
"Apache-2.0",
"MIT"
] | 26 | 2017-11-16T11:10:56.000Z | 2022-03-29T18:44:48.000Z | from config_parse import read_config, write_config, read_or_create_config, save_config_gen, save_config_method_gen
from general import local_path_gen, flatten, Singleton
from runners import BooleanEvent, Oneshot, BackgroundRunner
from usability import ExitHelper
from logger import setup_logger
| 49.166667 | 114 | 0.877966 | 42 | 295 | 5.833333 | 0.571429 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094915 | 295 | 5 | 115 | 59 | 0.917603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3b23b8d5e1270ad8e1e4b6677ddc3f9ca40e6290 | 1,000 | py | Python | Training/run.py | GodGamer029/YangBot | 83f33a43a969aede25c00c9dab41eab2fb307c47 | [
"MIT"
] | 1 | 2020-01-21T15:38:18.000Z | 2020-01-21T15:38:18.000Z | Training/run.py | GodGamer029/YangBot | 83f33a43a969aede25c00c9dab41eab2fb307c47 | [
"MIT"
] | null | null | null | Training/run.py | GodGamer029/YangBot | 83f33a43a969aede25c00c9dab41eab2fb307c47 | [
"MIT"
] | null | null | null | from pathlib import Path
import importlib
from rlbottraining.common_exercises.bronze_goalie import BallRollingToGoalie as BronzeBallRollingToGoalie
from rlbottraining.common_exercises.silver_goalie import TryNotToOwnGoal
from rlbottraining.common_exercises.silver_striker import HookShot
from rlbottraining.common_exerc... | 28.571429 | 113 | 0.741 | 108 | 1,000 | 6.638889 | 0.490741 | 0.09484 | 0.128312 | 0.178522 | 0.105997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196 | 1,000 | 35 | 114 | 28.571429 | 0.891791 | 0 | 0 | 0.074074 | 0 | 0 | 0.033966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.444444 | 0 | 0.592593 | 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 |
3b2fa1aa1837eb7e3cd92f40591a6a65cf007a5e | 106 | py | Python | LearnPython3TheHardWay/ex6.py | lanjing99/UsePython | 19a84e3ef65dc326cf9c4bfccbf2d99c22f858a4 | [
"MIT"
] | null | null | null | LearnPython3TheHardWay/ex6.py | lanjing99/UsePython | 19a84e3ef65dc326cf9c4bfccbf2d99c22f858a4 | [
"MIT"
] | null | null | null | LearnPython3TheHardWay/ex6.py | lanjing99/UsePython | 19a84e3ef65dc326cf9c4bfccbf2d99c22f858a4 | [
"MIT"
] | null | null | null | joke_evaluation = "Isn't that joke so funny?! {}"
hilarious = 234
print(joke_evaluation.format(hilarious)) | 35.333333 | 49 | 0.764151 | 15 | 106 | 5.266667 | 0.733333 | 0.35443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.103774 | 106 | 3 | 50 | 35.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.271028 | 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 |
3b2fedb4502d661258fffe50314c41f45aae10bf | 2,256 | py | Python | ServerSide/migrations/0001_initial.py | Coullence/DRF_Percels-Couriers_API_V.0.0.2 | 906786115861b316f8ecf023c8af82f2dacff68e | [
"MIT"
] | null | null | null | ServerSide/migrations/0001_initial.py | Coullence/DRF_Percels-Couriers_API_V.0.0.2 | 906786115861b316f8ecf023c8af82f2dacff68e | [
"MIT"
] | null | null | null | ServerSide/migrations/0001_initial.py | Coullence/DRF_Percels-Couriers_API_V.0.0.2 | 906786115861b316f8ecf023c8af82f2dacff68e | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2021-03-25 09:59
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField... | 41.777778 | 114 | 0.564273 | 211 | 2,256 | 5.881517 | 0.303318 | 0.137792 | 0.183723 | 0.328767 | 0.67365 | 0.35697 | 0.35697 | 0.35697 | 0.35697 | 0.35697 | 0 | 0.045854 | 0.294326 | 2,256 | 53 | 115 | 42.566038 | 0.733668 | 0.02039 | 0 | 0.413043 | 1 | 0 | 0.101902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021739 | 0 | 0.108696 | 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 |
3b35fcbd8de2f1d1ef9bf59cafac14ca80d5fc45 | 307 | py | Python | boucanpy/core/black_listed_token/repos.py | bbhunter/boucanpy | 7d2fb105e7b1e90653a511534fb878bb62d02f17 | [
"MIT"
] | 34 | 2019-11-16T17:22:15.000Z | 2022-02-11T23:12:46.000Z | boucanpy/core/black_listed_token/repos.py | bbhunter/boucanpy | 7d2fb105e7b1e90653a511534fb878bb62d02f17 | [
"MIT"
] | 1 | 2021-02-09T09:34:55.000Z | 2021-02-10T21:46:20.000Z | boucanpy/core/black_listed_token/repos.py | bbhunter/boucanpy | 7d2fb105e7b1e90653a511534fb878bb62d02f17 | [
"MIT"
] | 9 | 2019-11-18T22:18:07.000Z | 2021-02-08T13:23:51.000Z | from boucanpy.core.base.repos import BaseRepo
from boucanpy.db.models.black_listed_token import BlackListedToken
from boucanpy.core.black_listed_token.data import BlackListedTokenData
class BlackListedTokenRepo(BaseRepo):
default_model = BlackListedToken
default_data_model = BlackListedTokenData
| 34.111111 | 70 | 0.856678 | 35 | 307 | 7.314286 | 0.542857 | 0.140625 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09772 | 307 | 8 | 71 | 38.375 | 0.924188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3b48e2fcd50922d500c5b40d6d2e580648ee04d9 | 574 | py | Python | Dataset/Leetcode/train/22/634.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/22/634.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/22/634.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, n):
"""
:type n: int
:rtype: List[str]
"""
res = []
def helper(path, left_count, right_count):
if right_count<left_count:
return
if not left_count and not right_count:
res... | 22.076923 | 63 | 0.468641 | 65 | 574 | 3.953846 | 0.384615 | 0.210117 | 0.163424 | 0.22179 | 0.459144 | 0.346304 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.425087 | 574 | 25 | 64 | 22.96 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0.003914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b4d98d9f41e925ad0f7648ac6f4362f6df69610 | 212 | py | Python | utils/end2end_anno/data/data_gen.py | VV123/NLIDB_gradient | f42a6f383d2d4ac41c354cf55df2a21507577b02 | [
"MIT"
] | null | null | null | utils/end2end_anno/data/data_gen.py | VV123/NLIDB_gradient | f42a6f383d2d4ac41c354cf55df2a21507577b02 | [
"MIT"
] | 1 | 2021-01-11T03:42:43.000Z | 2021-02-19T17:06:59.000Z | utils/end2end_anno/data/data_gen.py | VV123/NLIDB_gradient | f42a6f383d2d4ac41c354cf55df2a21507577b02 | [
"MIT"
] | null | null | null | import embed
from embed.embed import embed_data
from char.word2idx import word2idx
def _gen_bc_data():
embed_data(save=True)
word2idx(maxwlen=10, save=True)
if __name__ == '__main__':
_gen_bc_data()
| 21.2 | 35 | 0.75 | 32 | 212 | 4.46875 | 0.5 | 0.153846 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027933 | 0.15566 | 212 | 9 | 36 | 23.555556 | 0.77095 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.375 | 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 |
3b5119de30666116e1dd123df2cdae51595cf8df | 1,128 | py | Python | thenewboston_node/business_logic/tests/test_file_blockchain/test_get_block_chunk_file_path_meta_enhanced.py | nishp77/thenewboston-node | 158b1f1739b2c6c9c21c80e9da854ca141f1cf8f | [
"MIT"
] | 30 | 2021-03-05T22:08:17.000Z | 2021-09-23T02:45:45.000Z | thenewboston_node/business_logic/tests/test_file_blockchain/test_get_block_chunk_file_path_meta_enhanced.py | nishp77/thenewboston-node | 158b1f1739b2c6c9c21c80e9da854ca141f1cf8f | [
"MIT"
] | 148 | 2021-03-05T23:37:50.000Z | 2021-11-02T02:18:58.000Z | thenewboston_node/business_logic/tests/test_file_blockchain/test_get_block_chunk_file_path_meta_enhanced.py | nishp77/thenewboston-node | 158b1f1739b2c6c9c21c80e9da854ca141f1cf8f | [
"MIT"
] | 14 | 2021-03-05T21:58:46.000Z | 2021-10-15T17:27:52.000Z | import os.path
def test_get_block_chunk_file_path_meta_enhanced(file_blockchain_with_three_block_chunks):
blockchain = file_blockchain_with_three_block_chunks
meta = blockchain._get_block_chunk_file_path_meta_enhanced(
'00000000000000000000-00000000000000000002-block-chunk.msgpack'
)
assert me... | 47 | 104 | 0.765071 | 144 | 1,128 | 5.715278 | 0.236111 | 0.051033 | 0.065614 | 0.072904 | 0.72418 | 0.72418 | 0.622114 | 0.379101 | 0.295261 | 0.295261 | 0 | 0.271706 | 0.132092 | 1,128 | 23 | 105 | 49.043478 | 0.568948 | 0 | 0 | 0 | 0 | 0.142857 | 0.402482 | 0.400709 | 0 | 0 | 0 | 0 | 0.380952 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b70cb6efe5375322b14051d94e338662d43ac76 | 2,343 | py | Python | src/app/utils/memcached.py | chenweixu/bunnyc_mgr | 1243fa951c45c665442212247d682ce3d39aec08 | [
"Apache-2.0"
] | null | null | null | src/app/utils/memcached.py | chenweixu/bunnyc_mgr | 1243fa951c45c665442212247d682ce3d39aec08 | [
"Apache-2.0"
] | null | null | null | src/app/utils/memcached.py | chenweixu/bunnyc_mgr | 1243fa951c45c665442212247d682ce3d39aec08 | [
"Apache-2.0"
] | null | null | null | from pymemcache.client import Client
import json
def serialize_json(key, value):
"""
构造函数;用于将非 str 类型的数据转换成 str 类型存入memc
"""
# if type(value) == str:
# return value, 32
if type(value) == dict:
return json.dumps(value), 37
else:
return value, 32
def deserialize_json(ke... | 24.40625 | 65 | 0.556125 | 283 | 2,343 | 4.512367 | 0.318021 | 0.037588 | 0.046985 | 0.031323 | 0.028191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012579 | 0.321383 | 2,343 | 95 | 66 | 24.663158 | 0.790566 | 0.133163 | 0 | 0.083333 | 0 | 0 | 0.017748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216667 | false | 0 | 0.033333 | 0.116667 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3b8bd97f94e9d2b241df89f6d65a2f968cc976e0 | 72,117 | py | Python | pysnmp_mibs/DISMAN-EVENT-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2017-04-21T13:48:08.000Z | 2022-01-06T19:42:52.000Z | pysnmp_mibs/DISMAN-EVENT-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 1 | 2020-05-05T16:42:25.000Z | 2020-05-05T16:42:25.000Z | pysnmp_mibs/DISMAN-EVENT-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2020-02-08T20:28:49.000Z | 2021-09-14T13:36:46.000Z | #
# PySNMP MIB module DISMAN-EVENT-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/DISMAN-EVENT-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:07:55 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)... | 276.310345 | 5,990 | 0.749144 | 8,928 | 72,117 | 6.050851 | 0.096774 | 0.007441 | 0.034727 | 0.009255 | 0.463718 | 0.425549 | 0.402614 | 0.383621 | 0.352042 | 0.326293 | 0 | 0.03206 | 0.146221 | 72,117 | 260 | 5,991 | 277.373077 | 0.845319 | 0.004271 | 0 | 0 | 0 | 0.277778 | 0.554499 | 0.048482 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043651 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b93d98114bb663b911f6d2f3ed467c930f7ad2f | 164 | py | Python | dbes/urls.py | KlaasH/django-dbes | b6737ec72af8cefff4691c9167af5aa04ac62011 | [
"BSD-3-Clause"
] | null | null | null | dbes/urls.py | KlaasH/django-dbes | b6737ec72af8cefff4691c9167af5aa04ac62011 | [
"BSD-3-Clause"
] | null | null | null | dbes/urls.py | KlaasH/django-dbes | b6737ec72af8cefff4691c9167af5aa04ac62011 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import include, url
from . import views
urlpatterns = [
url(r'^(?P<uuid>[-\w]+)$', views.EmailDetail.as_view(), name="email-detail"),
]
| 20.5 | 81 | 0.658537 | 23 | 164 | 4.652174 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 164 | 7 | 82 | 23.428571 | 0.753521 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 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 |
8e7f3fece7a58650c6361fb3b9440ca90e180548 | 4,266 | py | Python | src/Model/Package/inconsistency.py | lancondrej/freeconf | 8d05d358ab24a85b775ad39f0bace8475fff792f | [
"Unlicense"
] | null | null | null | src/Model/Package/inconsistency.py | lancondrej/freeconf | 8d05d358ab24a85b775ad39f0bace8475fff792f | [
"Unlicense"
] | null | null | null | src/Model/Package/inconsistency.py | lancondrej/freeconf | 8d05d358ab24a85b775ad39f0bace8475fff792f | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
__author__ = 'Ondřej Lanč'
class Inconsistency(object):
"""This class is used for handling inconsistent states in non-container
entries. The entry is inconsistent if it is active, mandatory and its
value has not been set. Inconsistent entries can not be disabled... | 32.564885 | 75 | 0.664088 | 465 | 4,266 | 5.886022 | 0.187097 | 0.187066 | 0.092072 | 0.07015 | 0.742053 | 0.721228 | 0.721228 | 0.661308 | 0.642674 | 0.573621 | 0 | 0.002867 | 0.264182 | 4,266 | 130 | 76 | 32.815385 | 0.869067 | 0.353493 | 0 | 0.587302 | 0 | 0 | 0.004322 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 1 | 0.238095 | false | 0 | 0 | 0 | 0.349206 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ea9388b3db0063f99460ad7f27c2d665450b0b0 | 518 | py | Python | core/models.py | Neelamegam2000/QRcode-for-license | a6d4c9655c5ba52b24c1ea737797557f06e0fcbf | [
"MIT"
] | null | null | null | core/models.py | Neelamegam2000/QRcode-for-license | a6d4c9655c5ba52b24c1ea737797557f06e0fcbf | [
"MIT"
] | null | null | null | core/models.py | Neelamegam2000/QRcode-for-license | a6d4c9655c5ba52b24c1ea737797557f06e0fcbf | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
class Document(models.Model):
description = models.CharField(max_length=255, blank=True)
document = models.FileField(upload_to='documents/')
Email=models.EmailField(default='')
uploaded_at = models.DateTimeField(auto_now_add=True) ... | 34.533333 | 62 | 0.743243 | 67 | 518 | 5.492537 | 0.597015 | 0.122283 | 0.146739 | 0.195652 | 0.195652 | 0.195652 | 0.195652 | 0 | 0 | 0 | 0 | 0.018018 | 0.142857 | 518 | 14 | 63 | 37 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.028958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.181818 | 0.090909 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8eda26e5edac6845fd74189906177d5465a607fd | 418 | py | Python | tutos/workflows/migrations/0002_auto_20200510_2334.py | UVG-Teams/Tutos-System | 230dd9434f745c2e6e69e10f9908e9818c559d03 | [
"MIT"
] | null | null | null | tutos/workflows/migrations/0002_auto_20200510_2334.py | UVG-Teams/Tutos-System | 230dd9434f745c2e6e69e10f9908e9818c559d03 | [
"MIT"
] | null | null | null | tutos/workflows/migrations/0002_auto_20200510_2334.py | UVG-Teams/Tutos-System | 230dd9434f745c2e6e69e10f9908e9818c559d03 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-11 05:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('workflows', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='status',
name='next',
),
m... | 19 | 47 | 0.545455 | 40 | 418 | 5.625 | 0.7 | 0.186667 | 0.231111 | 0.266667 | 0.355556 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0.068592 | 0.337321 | 418 | 21 | 48 | 19.904762 | 0.743682 | 0.107656 | 0 | 0.4 | 1 | 0 | 0.110512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 |
d9211f4ac4553e6b34d1f0963e743ddad30340fa | 194 | py | Python | modules/board/forms.py | jobsifpb/jobs | 8406dc7677a97597e63396583ac2b191e5591758 | [
"MIT"
] | 8 | 2016-06-21T01:05:09.000Z | 2021-04-13T00:25:33.000Z | modules/board/forms.py | andreealencar/jobs | 8406dc7677a97597e63396583ac2b191e5591758 | [
"MIT"
] | 14 | 2016-06-15T00:33:15.000Z | 2016-10-01T02:39:09.000Z | modules/board/forms.py | andreealencar/jobs | 8406dc7677a97597e63396583ac2b191e5591758 | [
"MIT"
] | 5 | 2016-06-21T00:32:58.000Z | 2016-10-01T01:54:42.000Z | from django import forms
from .models import Job
from django.contrib.auth.models import User
class JobForm(forms.ModelForm):
class Meta:
model = Job
exclude = ('author',)
| 17.636364 | 43 | 0.685567 | 25 | 194 | 5.32 | 0.64 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231959 | 194 | 10 | 44 | 19.4 | 0.892617 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 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 |
d92caa0d6f999e2b1d2059c5fc328e7668b10d75 | 437 | py | Python | Lib/site-packages/jupyterlab_server/server.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/jupyterlab_server/server.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/jupyterlab_server/server.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | from jupyter_server import _tz as tz # noqa
from jupyter_server.base.handlers import ( # noqa
APIHandler,
FileFindHandler,
JupyterHandler,
json_errors,
)
from jupyter_server.extension.serverextension import ( # noqa
GREEN_ENABLED,
GREEN_OK,
RED_DISABLED,
RED_X,
)
from jupyter_server.s... | 27.3125 | 70 | 0.75286 | 55 | 437 | 5.727273 | 0.545455 | 0.174603 | 0.269841 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187643 | 437 | 15 | 71 | 29.133333 | 0.887324 | 0.05492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d930e3962938cbd1963c0482476954eb7e8d69d4 | 240 | py | Python | PyCharm/Exercicios/Aula7/ex014.py | fabiodarice/Python | 15ec1c7428f138be875111ac98ba38cf2eec1a93 | [
"MIT"
] | null | null | null | PyCharm/Exercicios/Aula7/ex014.py | fabiodarice/Python | 15ec1c7428f138be875111ac98ba38cf2eec1a93 | [
"MIT"
] | null | null | null | PyCharm/Exercicios/Aula7/ex014.py | fabiodarice/Python | 15ec1c7428f138be875111ac98ba38cf2eec1a93 | [
"MIT"
] | null | null | null | print('Vamos converter \033[31m°C\033[m em \033[31m°F\033[m')
c = float(input('Digite o valor em °C '))
print('O valor é {}°F'.format(((9 * c) / 5) + 32))
# Utilizado os parênteses no cálculo apenas para ficar mais fácil a leitura do código | 60 | 85 | 0.679167 | 50 | 240 | 3.34 | 0.68 | 0.071856 | 0.083832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098522 | 0.154167 | 240 | 4 | 85 | 60 | 0.704434 | 0.345833 | 0 | 0 | 0 | 0.333333 | 0.557692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d94a1ffff102ef748f8cd68a1af5f2878b7a38af | 5,214 | py | Python | python-midonetclient/src/midonetclient/neutron/loadbalancer.py | duarten/midonet | c7a5aa352a8038bdc6a463c68abc47bb411a1e7c | [
"Apache-2.0"
] | 221 | 2015-01-04T17:49:57.000Z | 2021-12-23T16:15:35.000Z | python-midonetclient/src/midonetclient/neutron/loadbalancer.py | duarten/midonet | c7a5aa352a8038bdc6a463c68abc47bb411a1e7c | [
"Apache-2.0"
] | 8 | 2018-05-24T13:36:03.000Z | 2021-02-19T16:01:43.000Z | python-midonetclient/src/midonetclient/neutron/loadbalancer.py | duarten/midonet | c7a5aa352a8038bdc6a463c68abc47bb411a1e7c | [
"Apache-2.0"
] | 95 | 2015-01-07T02:06:23.000Z | 2022-02-23T22:23:55.000Z | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2014 Midokura Europe SARL, All Rights Reserved.
# 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://w... | 36.978723 | 79 | 0.686038 | 703 | 5,214 | 4.820768 | 0.180654 | 0.14193 | 0.037179 | 0.058424 | 0.439363 | 0.353497 | 0.215403 | 0.175273 | 0.102685 | 0.030097 | 0 | 0.002702 | 0.219217 | 5,214 | 140 | 80 | 37.242857 | 0.829772 | 0.160146 | 0 | 0.04878 | 0 | 0 | 0.094788 | 0.031827 | 0 | 0 | 0 | 0 | 0 | 1 | 0.317073 | false | 0 | 0.036585 | 0.146341 | 0.634146 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d9541ebd4b1f49b07038690fc57bcc3728bde448 | 665 | py | Python | 2020_11_25/dojo_test.py | devppjr/dojo | de0bf116153bd1251dd948c18fc73ac41def0fa5 | [
"MIT"
] | 114 | 2015-03-10T22:17:42.000Z | 2022-03-09T17:49:48.000Z | 2020_11_25/dojo_test.py | devppjr/dojo | de0bf116153bd1251dd948c18fc73ac41def0fa5 | [
"MIT"
] | 9 | 2018-09-04T12:49:59.000Z | 2019-11-17T21:29:51.000Z | 2020_11_25/dojo_test.py | devppjr/dojo | de0bf116153bd1251dd948c18fc73ac41def0fa5 | [
"MIT"
] | 39 | 2015-01-29T01:20:56.000Z | 2022-02-17T16:26:25.000Z | import unittest
from dojo import comp_char, solve
class DojoTest(unittest.TestCase):
def test_compchar_1(self):
self.assertFalse(comp_char('e', 'd'))
def test_compchar_2(self):
self.assertTrue(comp_char('d', 'd'))
def test_compchar_3(self):
self.assertTrue(comp_char('e', 'e'))
... | 24.62963 | 75 | 0.642105 | 83 | 665 | 4.891566 | 0.457831 | 0.103448 | 0.110837 | 0.17734 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009328 | 0.193985 | 665 | 26 | 76 | 25.576923 | 0.748134 | 0 | 0 | 0 | 0 | 0 | 0.108271 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.352941 | false | 0 | 0.117647 | 0 | 0.529412 | 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 |
d96c5c95bcb9ba4c57dd6859c46151a6c9bf1d28 | 288 | py | Python | supervised/knn/base/KernelScaler.py | Danielto1404/ML-ALGO | 53dfca1ea0718d94586495493d5de3f446e238fd | [
"MIT"
] | 1 | 2021-03-11T17:32:13.000Z | 2021-03-11T17:32:13.000Z | supervised/knn/base/KernelScaler.py | Danielto1404/ML-ALGO | 53dfca1ea0718d94586495493d5de3f446e238fd | [
"MIT"
] | null | null | null | supervised/knn/base/KernelScaler.py | Danielto1404/ML-ALGO | 53dfca1ea0718d94586495493d5de3f446e238fd | [
"MIT"
] | null | null | null | class KernelScaler:
def __init__(self, value):
self.value = value
def scale(self, x):
if self.value == 0:
return float('inf')
return x / self.value
class WindowScaler(KernelScaler):
pass
class KNeighbourScaler(KernelScaler):
pass
| 16 | 37 | 0.611111 | 32 | 288 | 5.375 | 0.5 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.295139 | 288 | 17 | 38 | 16.941176 | 0.842365 | 0 | 0 | 0.181818 | 0 | 0 | 0.010417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.181818 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
794d9297da5d65c5f2b6ad7582e2d89e85450ce3 | 608 | py | Python | api/util/stub.py | aleibovici/datrium_natural_hazard_protection | 7ae593050765d8d30bbc08b436bbe334e59d985a | [
"Apache-2.0"
] | null | null | null | api/util/stub.py | aleibovici/datrium_natural_hazard_protection | 7ae593050765d8d30bbc08b436bbe334e59d985a | [
"Apache-2.0"
] | null | null | null | api/util/stub.py | aleibovici/datrium_natural_hazard_protection | 7ae593050765d8d30bbc08b436bbe334e59d985a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#**************************************************************
#* Copyright (c) 2017 Datrium, Inc. All rights reserved. *
#* -- Datrium Confidential -- *
#**************************************************************
from datrium.rpc.client.stub_factory impor... | 33.777778 | 68 | 0.524671 | 60 | 608 | 5.183333 | 0.616667 | 0.106109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.184211 | 608 | 17 | 69 | 35.764706 | 0.618952 | 0.480263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
79531e879f092a35fa6893f669deb7e3c9b2ecc6 | 23,106 | py | Python | test/ltc_test_vectors.py | tonymorony/pywallet | fe51f2e8c53407001583c6496534bc8b0e221a4b | [
"MIT"
] | 16 | 2017-10-13T12:22:36.000Z | 2021-05-06T08:26:04.000Z | test/ltc_test_vectors.py | prestonw/pywallet | fe51f2e8c53407001583c6496534bc8b0e221a4b | [
"MIT"
] | 1 | 2019-03-01T06:05:41.000Z | 2019-03-01T06:05:41.000Z | test/ltc_test_vectors.py | prestonw/pywallet | fe51f2e8c53407001583c6496534bc8b0e221a4b | [
"MIT"
] | 15 | 2017-11-21T22:49:35.000Z | 2021-04-26T23:22:18.000Z | ################################################################################################
# Test Functions
################################################################################################
from lib import coin_types
from lib.base import *
coin = coin_types.ltc
class bip32_tests:
def __init_... | 65.82906 | 210 | 0.787241 | 1,911 | 23,106 | 9.368917 | 0.182104 | 0.043007 | 0.045576 | 0.031278 | 0.395219 | 0.387511 | 0.386338 | 0.354223 | 0.346738 | 0.325905 | 0 | 0.152096 | 0.117329 | 23,106 | 350 | 211 | 66.017143 | 0.725766 | 0.012161 | 0 | 0.462121 | 0 | 0.041667 | 0.541945 | 0.416132 | 0 | 0 | 0 | 0 | 0.367424 | 0 | null | null | 0.162879 | 0.007576 | null | null | 0.223485 | 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 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7978a056cb701f81faa218c7a110cf51cb5dc7ba | 239 | py | Python | src/exceptions/exceptions.py | mariano-dim/ProyectoX | 22ae50f966dfe7ae730dee484449fd1ba0b64c28 | [
"MIT"
] | null | null | null | src/exceptions/exceptions.py | mariano-dim/ProyectoX | 22ae50f966dfe7ae730dee484449fd1ba0b64c28 | [
"MIT"
] | null | null | null | src/exceptions/exceptions.py | mariano-dim/ProyectoX | 22ae50f966dfe7ae730dee484449fd1ba0b64c28 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# Proyecto X
# variableDeclaration.py
#
# Creato el 15/09/2019
# Mariano Andres Di Maggio <mariano.dim@gmail.com>
#
class EndOfExpressionException(Exception):
pass
class SyntaxException(Exception):
pass
| 14.058824 | 51 | 0.719665 | 28 | 239 | 6.142857 | 0.857143 | 0.151163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040404 | 0.171548 | 239 | 16 | 52 | 14.9375 | 0.828283 | 0.518828 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
799e5480bb1d4e756bb23be5ca9862081981822b | 299 | py | Python | lib/oeqa/runtime/cases/rubygems_rubygems_simplecov_html.py | tuxable-ltd/meta-rubygems | e80630e79b64e1be8339e1add0ab07644ec99425 | [
"BSD-2-Clause"
] | null | null | null | lib/oeqa/runtime/cases/rubygems_rubygems_simplecov_html.py | tuxable-ltd/meta-rubygems | e80630e79b64e1be8339e1add0ab07644ec99425 | [
"BSD-2-Clause"
] | 141 | 2021-02-04T16:22:13.000Z | 2022-03-27T08:29:40.000Z | lib/oeqa/runtime/cases/rubygems_rubygems_simplecov_html.py | tuxable-ltd/meta-rubygems | e80630e79b64e1be8339e1add0ab07644ec99425 | [
"BSD-2-Clause"
] | 3 | 2021-02-04T14:02:01.000Z | 2022-02-02T16:46:52.000Z | from rubygems_utils import RubyGemsTestUtils
class RubyGemsTestrubygems_simplecov_html(RubyGemsTestUtils):
def test_gem_list_rubygems_simplecov_html(self):
self.gem_is_installed("simplecov-html")
def test_load_simplecov_html(self):
self.gem_is_loadable("simplecov-html")
| 27.181818 | 61 | 0.795987 | 36 | 299 | 6.194444 | 0.5 | 0.29148 | 0.152466 | 0.188341 | 0.233184 | 0.233184 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133779 | 299 | 10 | 62 | 29.9 | 0.861004 | 0 | 0 | 0 | 0 | 0 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
79a108c646c664fa17441c1aa2a1af76b60017be | 470 | py | Python | pytoolkit/evaluations/ss_test.py | ak110/pytoolk | 8eef7e0add7bbc0ced1f1f1d82ed245388cc6684 | [
"MIT"
] | 26 | 2018-12-03T23:02:56.000Z | 2020-08-07T06:33:21.000Z | pytoolkit/evaluations/ss_test.py | ak110/pytoolk | 8eef7e0add7bbc0ced1f1f1d82ed245388cc6684 | [
"MIT"
] | null | null | null | pytoolkit/evaluations/ss_test.py | ak110/pytoolk | 8eef7e0add7bbc0ced1f1f1d82ed245388cc6684 | [
"MIT"
] | 5 | 2019-08-10T11:10:59.000Z | 2020-11-18T02:39:37.000Z | import numpy as np
import pytoolkit as tk
def test_print_ss_binary():
y_true = np.zeros((2, 32, 32))
y_true[1, :, :] = 1
y_pred = np.zeros((2, 32, 32))
y_pred[:, :16, :16] = 1 # iou=0.25
tk.evaluations.print_ss(y_true, y_pred)
def test_print_ss_multi():
y_true = np.zeros((2, 32, 32, 3))
... | 23.5 | 43 | 0.57234 | 88 | 470 | 2.829545 | 0.284091 | 0.120482 | 0.128514 | 0.160643 | 0.706827 | 0.706827 | 0.706827 | 0.562249 | 0.562249 | 0.562249 | 0 | 0.116992 | 0.23617 | 470 | 19 | 44 | 24.736842 | 0.576602 | 0.03617 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
79bb1b41372abe7fbb5115e039168a6623b6d18d | 23 | py | Python | PyCUDAML/__init__.py | zhaoyan1117/PyCUDAML | b57bd0d85c7be68269b357f61aedb1ebebe4bd3a | [
"BSD-2-Clause"
] | null | null | null | PyCUDAML/__init__.py | zhaoyan1117/PyCUDAML | b57bd0d85c7be68269b357f61aedb1ebebe4bd3a | [
"BSD-2-Clause"
] | null | null | null | PyCUDAML/__init__.py | zhaoyan1117/PyCUDAML | b57bd0d85c7be68269b357f61aedb1ebebe4bd3a | [
"BSD-2-Clause"
] | null | null | null | __author__ = 'yanzhao'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 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 |
8dd387508ef326a4b28202c0106e8419845f3f8f | 1,776 | py | Python | pythia/opal/weaver/HeadMill.py | willic3/pythia | 2657b95a0c07fd3c914ab6b5f7ec89a8edba004c | [
"BSD-3-Clause"
] | 1 | 2015-11-30T08:01:39.000Z | 2015-11-30T08:01:39.000Z | pythia/opal/weaver/HeadMill.py | willic3/pythia | 2657b95a0c07fd3c914ab6b5f7ec89a8edba004c | [
"BSD-3-Clause"
] | 27 | 2018-05-24T18:31:25.000Z | 2021-10-16T03:57:52.000Z | pythia/opal/weaver/HeadMill.py | willic3/pythia | 2657b95a0c07fd3c914ab6b5f7ec89a8edba004c | [
"BSD-3-Clause"
] | 7 | 2019-07-19T02:30:56.000Z | 2021-06-02T22:00:01.000Z | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2005 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~... | 24 | 92 | 0.513514 | 186 | 1,776 | 4.860215 | 0.376344 | 0.165929 | 0.132743 | 0.110619 | 0.227876 | 0.150442 | 0.150442 | 0.077434 | 0.077434 | 0 | 0 | 0.018735 | 0.278716 | 1,776 | 73 | 93 | 24.328767 | 0.686963 | 0.210023 | 0 | 0.228571 | 0 | 0.028571 | 0.07781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0.028571 | 0.2 | 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 |
8df04a88450e100711e8323e5f4a7ad70584df7e | 858 | py | Python | examples/ch03/exercises_ch03/ex3_8.py | edson-gomes/Intro-to-Python | 00a2f549916616b0f2036401573e35d66317f998 | [
"MIT"
] | null | null | null | examples/ch03/exercises_ch03/ex3_8.py | edson-gomes/Intro-to-Python | 00a2f549916616b0f2036401573e35d66317f998 | [
"MIT"
] | null | null | null | examples/ch03/exercises_ch03/ex3_8.py | edson-gomes/Intro-to-Python | 00a2f549916616b0f2036401573e35d66317f998 | [
"MIT"
] | null | null | null | """(Aritmética, menor e maior) No exercício 2.10, você escreveu um script onde eram informados três inteiros e, então, eram mostrados a soma, a média, o produto, o menor e o maior desses valores. Reimplemente o script com um laço que pede quatro inteiros."""
import statistics
lista_inteiros = []
sentinela = 0
while ... | 45.157895 | 258 | 0.737762 | 134 | 858 | 4.649254 | 0.410448 | 0.208668 | 0.160514 | 0.168539 | 0.064205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01511 | 0.151515 | 858 | 18 | 259 | 47.666667 | 0.840659 | 0.293706 | 0 | 0 | 0 | 0.076923 | 0.636667 | 0.16 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.384615 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8df14a4c626e5bc9b25c5c1fdd24721e5ad45d3f | 205 | py | Python | core/urls.py | samshultz/techbitsdata | 753309cbfee7bfa9a08804786f29b37f2b058436 | [
"BSD-3-Clause"
] | null | null | null | core/urls.py | samshultz/techbitsdata | 753309cbfee7bfa9a08804786f29b37f2b058436 | [
"BSD-3-Clause"
] | null | null | null | core/urls.py | samshultz/techbitsdata | 753309cbfee7bfa9a08804786f29b37f2b058436 | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path("", views.Home.as_view(), name="index"),
path("<slug:slug>/", views.HomepageDetailView.as_view(), name="homepage_detail"),
] | 22.777778 | 85 | 0.682927 | 26 | 205 | 5.269231 | 0.615385 | 0.087591 | 0.145985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136585 | 205 | 9 | 86 | 22.777778 | 0.774011 | 0 | 0 | 0 | 0 | 0 | 0.15534 | 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 |
8df2c48b34f9b9dfd4d11c07dfecf8cc402b155c | 581 | py | Python | cockroach/interface.py | abhishekgahlot/cockroach-python | 72903f583da182530e208cf41644d74e1a7ef505 | [
"Apache-2.0"
] | 1 | 2015-11-05T19:20:27.000Z | 2015-11-05T19:20:27.000Z | cockroach/interface.py | abhishekgahlot/cockroach-python | 72903f583da182530e208cf41644d74e1a7ef505 | [
"Apache-2.0"
] | null | null | null | cockroach/interface.py | abhishekgahlot/cockroach-python | 72903f583da182530e208cf41644d74e1a7ef505 | [
"Apache-2.0"
] | null | null | null | from cockroach.proto import data_pb2
class TransactionOptions(object):
def __init__(self, name='', isolation=data_pb2.SERIALIZABLE):
self.name = name # concise description of txn for debugging.
self.isolation = isolation
class KVSender(object):
"""Interface for sending a request to a key-va... | 30.578947 | 83 | 0.67642 | 74 | 581 | 5.22973 | 0.716216 | 0.036176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004444 | 0.225473 | 581 | 18 | 84 | 32.277778 | 0.855556 | 0.375215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.1 | 0.1 | 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 |
8df36d4b412ac12472bc7bfc8b986d6bebaebc30 | 1,653 | py | Python | Lists.py | Russoul/Learn-Python | 1885c360efe53af625dd3ad7b2053b1a3af6d77c | [
"MIT"
] | null | null | null | Lists.py | Russoul/Learn-Python | 1885c360efe53af625dd3ad7b2053b1a3af6d77c | [
"MIT"
] | null | null | null | Lists.py | Russoul/Learn-Python | 1885c360efe53af625dd3ad7b2053b1a3af6d77c | [
"MIT"
] | null | null | null | from Maybe import *
class Nil:
# def __rpow__(self, other):
# return List(other, self)
def __eq__(self, other):
return type(other) == Nil
def __str__(self):
return "{}"
def __getitem__(self, i):
return nothing
nil = Nil()
def showListHelper(list):
if list == ni... | 21.192308 | 90 | 0.547489 | 232 | 1,653 | 3.74569 | 0.237069 | 0.041427 | 0.051784 | 0.036824 | 0.194476 | 0.103567 | 0.103567 | 0.103567 | 0 | 0 | 0 | 0.012931 | 0.298246 | 1,653 | 77 | 91 | 21.467532 | 0.736207 | 0.205082 | 0 | 0.288462 | 0 | 0 | 0.004601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.019231 | 0.173077 | 0.692308 | 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 |
8df983385e64b5a3039ee79d68eafa413b87632f | 576 | py | Python | serial_dictatorship/__init__.py | kkiyama117/serial_dictatorship | 49f1f2c7226cff259cda0e257172d6dcbc0765b7 | [
"MIT"
] | null | null | null | serial_dictatorship/__init__.py | kkiyama117/serial_dictatorship | 49f1f2c7226cff259cda0e257172d6dcbc0765b7 | [
"MIT"
] | null | null | null | serial_dictatorship/__init__.py | kkiyama117/serial_dictatorship | 49f1f2c7226cff259cda0e257172d6dcbc0765b7 | [
"MIT"
] | null | null | null | """
serial_dictatorship Library
---------------------
setumei ryaku
usage:
>>> import serial_dictatorship
>>> serial_dictatorship.run(["ACDEBF","BDCFAE","CADFBE","ABCDFE"])
Full documentation is got by sphinx .
:copyright: (c) 2019 by kkiyama117.
:license: MIT, see LICENSE for more details.
"""
from .api import ... | 32 | 77 | 0.760417 | 64 | 576 | 5.9375 | 0.609375 | 0.189474 | 0.134211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013725 | 0.114583 | 576 | 18 | 78 | 32 | 0.731373 | 0.508681 | 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 |
8dfe2a7c74d83c37c3cb440be44ca36c1eee5ab2 | 54,587 | py | Python | intensio/test/python/intermediate/output/basicRAT-example/VortoNfGfegODblkeRYcYAvYpBrdeamDnflfayHyXqNEeqHNodEvSsvKwIYOqzeP.py | Chudry/Intensio-Obfuscator | 62f6c8871704693ca79342efb03dcd2530d7614e | [
"MIT"
] | 1 | 2019-09-06T11:55:29.000Z | 2019-09-06T11:55:29.000Z | intensio/test/python/intermediate/output/basicRAT-example/VortoNfGfegODblkeRYcYAvYpBrdeamDnflfayHyXqNEeqHNodEvSsvKwIYOqzeP.py | Chudry/Intensio-Obfuscator | 62f6c8871704693ca79342efb03dcd2530d7614e | [
"MIT"
] | null | null | null | intensio/test/python/intermediate/output/basicRAT-example/VortoNfGfegODblkeRYcYAvYpBrdeamDnflfayHyXqNEeqHNodEvSsvKwIYOqzeP.py | Chudry/Intensio-Obfuscator | 62f6c8871704693ca79342efb03dcd2530d7614e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
aXhSdEzKhoRkrhgUFAmZobwFXNBAgLIHXoHiUrmYqpSLMkRKjAsrOGLhzGQwWePf = 'ZFgAnXSahzJqEdfOOBrgtxxwezkxKwiNYOtOZXHFhjAWWlpcrBQqRXhHXDeISbHT'
jTveswxWrLPlGEKvMhQWAQmvSdkveOqqvDbjpzsRSbJCWuMojpycTpmbvtNWMGHa = 'HNPaCVJyVTcFXXYHyMSqRbXaOVDSGVNwJmLbNtRGUJStSDRHUvntZLqumbSFjvPY'
TrkPkiFTTzLwBZgicwFHvYlLZcJjCd... | 133.791667 | 282 | 0.884844 | 1,008 | 54,587 | 47.90873 | 0.37004 | 0.012673 | 0.019134 | 0.020293 | 0.060341 | 0.040876 | 0.035368 | 0.035368 | 0.021536 | 0.021536 | 0 | 0.00067 | 0.097496 | 54,587 | 407 | 283 | 134.120393 | 0.97958 | 0.000769 | 0 | 0.158025 | 0 | 0 | 0.176778 | 0.175421 | 0 | 1 | 0 | 0 | 0 | 1 | 0.002469 | false | 0 | 0.02716 | 0 | 0.02963 | 0.002469 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5c1fa1902a1ab0b522c905dc2e2684e4462a3a94 | 30,649 | py | Python | pysnmp/Nortel-MsCarrier-MscPassport-UtpDpnTrunksMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Nortel-MsCarrier-MscPassport-UtpDpnTrunksMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Nortel-MsCarrier-MscPassport-UtpDpnTrunksMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Nortel-MsCarrier-MscPassport-UtpDpnTrunksMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-UtpDpnTrunksMIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:22:12 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by u... | 159.630208 | 5,626 | 0.787856 | 3,095 | 30,649 | 7.801939 | 0.078837 | 0.008531 | 0.01143 | 0.01524 | 0.453017 | 0.398849 | 0.368369 | 0.359299 | 0.353543 | 0.346337 | 0 | 0.077824 | 0.074717 | 30,649 | 191 | 5,627 | 160.465969 | 0.773652 | 0.012464 | 0 | 0 | 0 | 0 | 0.137385 | 0.058894 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.108696 | 0.054348 | 0 | 0.054348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5c1fd6f8e0ab89de6fe3a1d6bad5cefdff00341e | 60 | py | Python | py_hcl/dsl/tpe/clock.py | zhongzc/py-hcl | 5a2be0208f915377a1dae12509f1af016df6412b | [
"MIT"
] | null | null | null | py_hcl/dsl/tpe/clock.py | zhongzc/py-hcl | 5a2be0208f915377a1dae12509f1af016df6412b | [
"MIT"
] | null | null | null | py_hcl/dsl/tpe/clock.py | zhongzc/py-hcl | 5a2be0208f915377a1dae12509f1af016df6412b | [
"MIT"
] | null | null | null | from py_hcl.core.type.clock import ClockT
Clock = ClockT()
| 15 | 41 | 0.766667 | 10 | 60 | 4.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 60 | 3 | 42 | 20 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5c2b55d6e223e3ebc29918ccf5b0b156315109c4 | 77 | py | Python | pipert2/utils/consts/event_names.py | MayoG/PipeRT2 | 357bf8a5fd3f3fe2149b7b0317d2c39dde66561d | [
"MIT"
] | null | null | null | pipert2/utils/consts/event_names.py | MayoG/PipeRT2 | 357bf8a5fd3f3fe2149b7b0317d2c39dde66561d | [
"MIT"
] | null | null | null | pipert2/utils/consts/event_names.py | MayoG/PipeRT2 | 357bf8a5fd3f3fe2149b7b0317d2c39dde66561d | [
"MIT"
] | null | null | null | START_EVENT_NAME = "start"
STOP_EVENT_NAME = "stop"
KILL_EVENT_NAME = "kill"
| 19.25 | 26 | 0.766234 | 12 | 77 | 4.416667 | 0.416667 | 0.509434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 77 | 3 | 27 | 25.666667 | 0.779412 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
5c313094de8303f15c796b9c0f2e632a07f49161 | 157 | py | Python | game/main.py | grochavieira/py-arkanoid | 430e55b20fa43abbcb8becfd6b58938f8690fe12 | [
"MIT"
] | null | null | null | game/main.py | grochavieira/py-arkanoid | 430e55b20fa43abbcb8becfd6b58938f8690fe12 | [
"MIT"
] | null | null | null | game/main.py | grochavieira/py-arkanoid | 430e55b20fa43abbcb8becfd6b58938f8690fe12 | [
"MIT"
] | null | null | null | import pygame
import sys
import random
import settings
import engine
import game
game_state = game.GameState()
while True:
game_state.state_manager()
| 12.076923 | 30 | 0.789809 | 22 | 157 | 5.5 | 0.545455 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159236 | 157 | 12 | 31 | 13.083333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 |
5c3aa30e8727905fac724c277194b07011e6f926 | 95 | py | Python | webui/applications/grid/modules/database.py | pouyana/teireader | ac0a92d8b2e570eae1c0a03fd35a7b281eccd250 | [
"MIT"
] | 1 | 2017-08-14T00:13:48.000Z | 2017-08-14T00:13:48.000Z | webui/applications/grid/modules/database.py | pouyana/teireader | ac0a92d8b2e570eae1c0a03fd35a7b281eccd250 | [
"MIT"
] | null | null | null | webui/applications/grid/modules/database.py | pouyana/teireader | ac0a92d8b2e570eae1c0a03fd35a7b281eccd250 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sqlite3
conn = sqlite3.connect('drama.db') | 23.75 | 34 | 0.663158 | 14 | 95 | 4.5 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.115789 | 95 | 4 | 34 | 23.75 | 0.714286 | 0.442105 | 0 | 0 | 0 | 0 | 0.153846 | 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 |
5c3eddbe7f4ed910944b857b530ac37198c9855d | 42,896 | py | Python | intensio/test/python/advanced/output/basicRAT-example/core/toolkit.py | vflanker/py-confuser | a96ea578b94605a6a9c90e8c7402930b7cee7a06 | [
"MIT"
] | null | null | null | intensio/test/python/advanced/output/basicRAT-example/core/toolkit.py | vflanker/py-confuser | a96ea578b94605a6a9c90e8c7402930b7cee7a06 | [
"MIT"
] | null | null | null | intensio/test/python/advanced/output/basicRAT-example/core/toolkit.py | vflanker/py-confuser | a96ea578b94605a6a9c90e8c7402930b7cee7a06 | [
"MIT"
] | 1 | 2021-07-20T03:02:26.000Z | 2021-07-20T03:02:26.000Z | # -*- coding: utf-8 -*-
import datetime
GcgdrQHVZVKjocXzfNjlOWAszugaDjseVIUqWddCgjjnnQvPWZQSVBwfPKPRqmHoWqmTYdibxFGxzFzfJvlWWstflokTjZKdJVxZSdEuWHNNLroKvnAhijPQoUJnpuIN = 'zkIvwpSuHFtJKsCwoGmWrAnMqnuWqhvTyHdNXPiSSPEljBsZvbKJissPIVhbaVqykhHAfdCeNrrzvjdinmiGIoZrUjOlaimcenltjmgAPJQPhrUvDqiTNegxYRhwyDfh'
ASbBhExEsOGXgKOYFH... | 236.994475 | 286 | 0.937756 | 453 | 42,896 | 88.799117 | 0.461369 | 0.001094 | 0.019092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000049 | 0.05145 | 42,896 | 180 | 287 | 238.311111 | 0.988572 | 0.00049 | 0 | 0.067039 | 0 | 0 | 0.245702 | 0.241831 | 0 | 1 | 0 | 0 | 0 | 1 | 0.011173 | false | 0 | 0.022346 | 0 | 0.067039 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5c4a3680c7c3d3fc16f44acea19430efe141ee62 | 301 | py | Python | desafios/desafio007.py | genisyskernel/cursoemvideo-python | dec301e33933388c886fe78010f38adfb24dae82 | [
"MIT"
] | 1 | 2020-10-26T04:33:14.000Z | 2020-10-26T04:33:14.000Z | desafios/desafio007.py | genisyskernel/cursoemvideo-python | dec301e33933388c886fe78010f38adfb24dae82 | [
"MIT"
] | null | null | null | desafios/desafio007.py | genisyskernel/cursoemvideo-python | dec301e33933388c886fe78010f38adfb24dae82 | [
"MIT"
] | null | null | null | nota01 = float(input("\033[4;30mDigite a primeira nota: \033[m"))
nota02 = float(input("\033[4;20mDigite a segunda nota: \033[m"))
media = (nota01 + nota02) / 2
print("Media das notas \033[1;31m{0:.1f}\033[m e \033[1;32m{1:.1f}\033[m e igual: \033[1;34m{2:.1f}\033[m".format(nota01, nota02, media))
| 43 | 137 | 0.66113 | 58 | 301 | 3.431034 | 0.465517 | 0.100503 | 0.090452 | 0.140704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2397 | 0.112957 | 301 | 6 | 138 | 50.166667 | 0.505618 | 0 | 0 | 0 | 0 | 0.25 | 0.58804 | 0.229236 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
309070b24c7e33f972a72754248a0cd85696ddf7 | 1,639 | py | Python | test/unit/test_packages.py | jmgao/bfg9000 | 7ffb15aed8ea88ee454821e83aa8c42014ac8e34 | [
"BSD-3-Clause"
] | null | null | null | test/unit/test_packages.py | jmgao/bfg9000 | 7ffb15aed8ea88ee454821e83aa8c42014ac8e34 | [
"BSD-3-Clause"
] | null | null | null | test/unit/test_packages.py | jmgao/bfg9000 | 7ffb15aed8ea88ee454821e83aa8c42014ac8e34 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from bfg9000.packages import *
from bfg9000.path import Path
class TestPackage(unittest.TestCase):
def test_equality(self):
self.assertTrue(Package('foo', 'elf') == Package('foo', 'elf'))
self.assertFalse(Package('foo', 'elf') != Package('foo', 'elf'))
self.assertFalse(Pa... | 44.297297 | 73 | 0.607688 | 182 | 1,639 | 5.43956 | 0.148352 | 0.266667 | 0.131313 | 0.177778 | 0.766667 | 0.664646 | 0.568687 | 0.358586 | 0.275758 | 0.19798 | 0 | 0.005908 | 0.173887 | 1,639 | 36 | 74 | 45.527778 | 0.725258 | 0 | 0 | 0.071429 | 0 | 0 | 0.109213 | 0 | 0 | 0 | 0 | 0 | 0.714286 | 1 | 0.107143 | false | 0 | 0.107143 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3097ded105097fd72ee8a140f138a7f8dab82c6d | 1,261 | py | Python | practice_fall_2021/sorting_tournament.py | UPstartDeveloper/Problem_Solving_Practice | bd61333b3b056e82a94297e02bc05a17552e3496 | [
"MIT"
] | null | null | null | practice_fall_2021/sorting_tournament.py | UPstartDeveloper/Problem_Solving_Practice | bd61333b3b056e82a94297e02bc05a17552e3496 | [
"MIT"
] | null | null | null | practice_fall_2021/sorting_tournament.py | UPstartDeveloper/Problem_Solving_Practice | bd61333b3b056e82a94297e02bc05a17552e3496 | [
"MIT"
] | null | null | null | from typing import List
def bubble_sort(nums) -> List[int]:
"""Sorts numbers from in ascending order.
It is:
- quadratic time
- constant space
- stable
- iterative
- mutative
- internal algorithm
"""
# TODO: implement the algorithm!
pass
def insert... | 25.22 | 59 | 0.539255 | 178 | 1,261 | 3.747191 | 0.376404 | 0.047976 | 0.071964 | 0.089955 | 0.466267 | 0.457271 | 0.391304 | 0.391304 | 0.391304 | 0.391304 | 0 | 0.071101 | 0.308485 | 1,261 | 49 | 60 | 25.734694 | 0.693807 | 0.478192 | 0 | 0.25 | 0 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.25 | false | 0.25 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
30b08ad047600a9daaf612e594b87fa7e4679936 | 2,324 | py | Python | kqml/kqml_performative.py | bgyori/pykqml | 755b4f846dac4f51662c44a987a778f087c4f82d | [
"BSD-2-Clause"
] | 1 | 2022-03-28T12:53:45.000Z | 2022-03-28T12:53:45.000Z | kqml/kqml_performative.py | bgyori/pykqml | 755b4f846dac4f51662c44a987a778f087c4f82d | [
"BSD-2-Clause"
] | 13 | 2017-04-14T07:41:12.000Z | 2020-11-04T22:33:44.000Z | kqml/kqml_performative.py | bgyori/pykqml | 755b4f846dac4f51662c44a987a778f087c4f82d | [
"BSD-2-Clause"
] | 7 | 2017-08-15T15:43:46.000Z | 2020-11-04T20:48:34.000Z | from io import BytesIO
from kqml import KQMLObject
from . import kqml_reader
from . import kqml_list
from .kqml_token import KQMLToken
from .kqml_exceptions import KQMLBadPerformativeException
from .util import safe_decode, safe_encode
class KQMLPerformative(KQMLObject):
def __init__(self, objects):
if no... | 30.181818 | 80 | 0.615318 | 273 | 2,324 | 5.091575 | 0.282051 | 0.069065 | 0.05036 | 0.038849 | 0.146763 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00423 | 0.287866 | 2,324 | 76 | 81 | 30.578947 | 0.83565 | 0.042599 | 0 | 0.033898 | 0 | 0 | 0.054455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.237288 | false | 0 | 0.118644 | 0.135593 | 0.525424 | 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 |
30b57057a4710f99c09a70130758cde067cc898d | 40 | py | Python | kms/__init__.py | shamshad-npti/key-management-python | aaaa7e726f9941348192b5ea76bb4e8154b371ba | [
"Apache-2.0"
] | 1 | 2017-08-12T04:08:26.000Z | 2017-08-12T04:08:26.000Z | kms/__init__.py | shamshad-npti/key-management-python | aaaa7e726f9941348192b5ea76bb4e8154b371ba | [
"Apache-2.0"
] | 3 | 2019-10-07T05:06:59.000Z | 2021-02-08T20:23:15.000Z | kms/__init__.py | shamshad-npti/key-management-python | aaaa7e726f9941348192b5ea76bb4e8154b371ba | [
"Apache-2.0"
] | null | null | null | """
Package file
"""
__all__ = ["kms"]
| 6.666667 | 17 | 0.525 | 4 | 40 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 40 | 5 | 18 | 8 | 0.53125 | 0.3 | 0 | 0 | 0 | 0 | 0.15 | 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 |
30c3599ff9f4efeffbeca8fb7c06634e903655c8 | 1,151 | py | Python | tsengine/test/test_pool.py | ccccxjin/TsEngine | 5f8deed436eb9756be40f78a7bf52be9e910b501 | [
"MIT"
] | 1 | 2020-07-10T09:11:38.000Z | 2020-07-10T09:11:38.000Z | tsengine/test/test_pool.py | ccccxjin/tsengine | 5f8deed436eb9756be40f78a7bf52be9e910b501 | [
"MIT"
] | null | null | null | tsengine/test/test_pool.py | ccccxjin/tsengine | 5f8deed436eb9756be40f78a7bf52be9e910b501 | [
"MIT"
] | null | null | null | import pytest
class TestPool:
def test_pool_get(self, pool):
assert pool.checkedin == 1
assert pool.checkedout == 0
connection1 = pool.get()
assert pool.checkedin == 0
assert pool.checkedout == 1
connection2 = pool.get()
assert pool.checkedin == 0
as... | 27.404762 | 54 | 0.578627 | 135 | 1,151 | 4.888889 | 0.259259 | 0.227273 | 0.201515 | 0.077273 | 0.622727 | 0.622727 | 0.622727 | 0.501515 | 0.501515 | 0.287879 | 0 | 0.029831 | 0.330148 | 1,151 | 41 | 55 | 28.073171 | 0.8262 | 0 | 0 | 0.558824 | 0 | 0 | 0.04344 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.029412 | false | 0 | 0.029412 | 0 | 0.088235 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
30cc818fd561625f16aac0c780891ebea6d55b65 | 464 | py | Python | 0x07-python-test_driven_development/tests/102-tests.py | malu17/alx-higher_level_programming | 75a24d98c51116b737f339697c75855e34254d3a | [
"MIT"
] | 1 | 2022-02-07T12:13:18.000Z | 2022-02-07T12:13:18.000Z | 0x07-python-test_driven_development/tests/102-tests.py | malu17/alx-higher_level_programming | 75a24d98c51116b737f339697c75855e34254d3a | [
"MIT"
] | null | null | null | 0x07-python-test_driven_development/tests/102-tests.py | malu17/alx-higher_level_programming | 75a24d98c51116b737f339697c75855e34254d3a | [
"MIT"
] | 2 | 2021-01-12T01:57:44.000Z | 2021-03-24T18:24:56.000Z | import ctypes
lib = ctypes.CDLL('./libPython.so')
lib.print_python_string.argtypes = [ctypes.py_object]
s = "The spoon does not exist"
lib.print_python_string(s)
s = "ложка не существует"
lib.print_python_string(s)
s = "La cuillère n'existe pas"
lib.print_python_string(s)
s = "勺子不存在"
lib.print_python_string(s)
s = "숟가... | 24.421053 | 53 | 0.760776 | 81 | 464 | 4.148148 | 0.395062 | 0.190476 | 0.333333 | 0.47619 | 0.574405 | 0.574405 | 0.244048 | 0.244048 | 0.244048 | 0.244048 | 0 | 0 | 0.112069 | 464 | 18 | 54 | 25.777778 | 0.815534 | 0 | 0 | 0.411765 | 0 | 0 | 0.288793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.470588 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
30cfa96fc8650d55acf25a8ea4b00a0036095e8a | 687 | py | Python | prettyqt/core/itemselectionrange.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 7 | 2019-05-01T01:34:36.000Z | 2022-03-08T02:24:14.000Z | prettyqt/core/itemselectionrange.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 141 | 2019-04-16T11:22:01.000Z | 2021-04-14T15:12:36.000Z | prettyqt/core/itemselectionrange.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 5 | 2019-04-17T11:48:19.000Z | 2021-11-21T10:30:19.000Z | from __future__ import annotations
from typing import Iterator
from prettyqt.qt import QtCore
class ItemSelectionRange(QtCore.QItemSelectionRange):
def __contains__(self, other: QtCore.QModelIndex):
return self.contains(other)
def __bool__(self):
return not self.isEmpty()
def __iter__(... | 23.689655 | 57 | 0.69869 | 73 | 687 | 6.136986 | 0.465753 | 0.111607 | 0.066964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005505 | 0.206696 | 687 | 28 | 58 | 24.535714 | 0.816514 | 0.017467 | 0 | 0 | 0 | 0 | 0.011887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.166667 | 0.277778 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
30d0e10aed497f0d4e70d36b302c78b299f5888a | 278 | py | Python | Exercicios/exe031.py | EmersonLCruz/Python | a2f2bfdbdcce33ac5f8473b6438a04f9dbd8ce1e | [
"MIT"
] | null | null | null | Exercicios/exe031.py | EmersonLCruz/Python | a2f2bfdbdcce33ac5f8473b6438a04f9dbd8ce1e | [
"MIT"
] | null | null | null | Exercicios/exe031.py | EmersonLCruz/Python | a2f2bfdbdcce33ac5f8473b6438a04f9dbd8ce1e | [
"MIT"
] | null | null | null | distancia = float(input('Qual a distancia a ser percorrida na viagem?'))
if distancia <= 200.0:
valor = distancia * 0.5
print('Valor da sua passagem é R${:.2f}'.format(valor))
else:
valor = distancia * 0.45
print('Valor da sua passagem é R${:.2f}'.format(valor)) | 39.714286 | 72 | 0.658273 | 44 | 278 | 4.159091 | 0.545455 | 0.153005 | 0.163934 | 0.163934 | 0.415301 | 0.415301 | 0.415301 | 0.415301 | 0.415301 | 0.415301 | 0 | 0.048673 | 0.18705 | 278 | 7 | 73 | 39.714286 | 0.761062 | 0 | 0 | 0.285714 | 0 | 0 | 0.387097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 0 | 0 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
30e8fb9bd3ce9857f261152eceb3a065745538b2 | 133 | py | Python | output/models/ms_data/attribute/att_la006_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/attribute/att_la006_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/attribute/att_la006_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.attribute.att_la006_xsd.att_la006 import (
AttRef,
Doc,
)
__all__ = [
"AttRef",
"Doc",
]
| 13.3 | 69 | 0.639098 | 17 | 133 | 4.529412 | 0.764706 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.225564 | 133 | 9 | 70 | 14.777778 | 0.68932 | 0 | 0 | 0 | 0 | 0 | 0.067669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
30e9bf25b16347959a50b05df2776aab4f5c7a4f | 386 | py | Python | main/src/input_data/Readers/GeoTiffReader.py | Rob174/GenerationTerrain | 332620cf6bb4d3feb4e08012b5c6af8b8843d177 | [
"MIT"
] | null | null | null | main/src/input_data/Readers/GeoTiffReader.py | Rob174/GenerationTerrain | 332620cf6bb4d3feb4e08012b5c6af8b8843d177 | [
"MIT"
] | null | null | null | main/src/input_data/Readers/GeoTiffReader.py | Rob174/GenerationTerrain | 332620cf6bb4d3feb4e08012b5c6af8b8843d177 | [
"MIT"
] | 1 | 2021-10-29T23:26:29.000Z | 2021-10-29T23:26:29.000Z | import numpy as np
from pathlib import Path
import rasterio
class GeoTiffReader:
def __init__(self,path: Path):
self.path = path
self.file = rasterio.open(self.path)
def get_array(self):
return np.array(self.file.read(1),dtype=np.float32)
def get_tranformation_matrix(self):
... | 22.705882 | 61 | 0.678756 | 54 | 386 | 4.722222 | 0.462963 | 0.094118 | 0.094118 | 0.12549 | 0.196078 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.222798 | 386 | 17 | 62 | 22.705882 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0.181818 | 0.818182 | 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 |
30f9a21274b9eda61720dd32e6273fe48ae8bc4e | 96 | py | Python | Python_Basics/10_Nested_Loops_Lab/03_Even_Powers_2.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | Python_Basics/10_Nested_Loops_Lab/03_Even_Powers_2.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | Python_Basics/10_Nested_Loops_Lab/03_Even_Powers_2.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | import math
n = int(input())
curr = 1
for i in range(0,n+1,2):
print(curr)
curr=curr*4 | 12 | 24 | 0.59375 | 20 | 96 | 2.85 | 0.75 | 0.280702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 0.239583 | 96 | 8 | 25 | 12 | 0.712329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
a510d5652e2a94790e016df24b0ff6fe3ceaee54 | 2,288 | py | Python | python-the-hard-way/31-making-decisions.py | Valka7a/python-playground | f08d4374f2cec2e8b1afec3753854b1ec10ff480 | [
"MIT"
] | null | null | null | python-the-hard-way/31-making-decisions.py | Valka7a/python-playground | f08d4374f2cec2e8b1afec3753854b1ec10ff480 | [
"MIT"
] | null | null | null | python-the-hard-way/31-making-decisions.py | Valka7a/python-playground | f08d4374f2cec2e8b1afec3753854b1ec10ff480 | [
"MIT"
] | null | null | null | # Exercise 31: Making Decisions
print "You enter a dark room with two doors. Do you go through door #1 or door #2?"
door = raw_input("> ")
if door == "1":
print "There's a giant bear here eating a cheese cake. What do you do?"
print "1. Take the cake."
print "2. Scream at the bear."
print "3. Turn back quietly"
... | 26.917647 | 83 | 0.64729 | 386 | 2,288 | 3.823834 | 0.398964 | 0.052168 | 0.033875 | 0.054201 | 0.172087 | 0.099594 | 0.099594 | 0.039295 | 0.039295 | 0 | 0 | 0.016753 | 0.243444 | 2,288 | 85 | 84 | 26.917647 | 0.835933 | 0.131993 | 0 | 0.186441 | 0 | 0.016949 | 0.632643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.474576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
eb5a875fd8f475bdd425edda7263ef858c801271 | 2,068 | py | Python | api/tests/SerializerTest.py | dschien/greendoors-web | 26a10e909e6447f1709d27e58340f08372ce8f26 | [
"MIT"
] | null | null | null | api/tests/SerializerTest.py | dschien/greendoors-web | 26a10e909e6447f1709d27e58340f08372ce8f26 | [
"MIT"
] | 2 | 2020-06-05T17:29:54.000Z | 2021-06-10T18:58:13.000Z | api/tests/SerializerTest.py | dschien/greendoors-web | 26a10e909e6447f1709d27e58340f08372ce8f26 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.test import TestCase
from api.models import House
from api.serializers import NoteSerializer, FavouriteSerializer
from api.tests.constants import house_serializer_id_field
__author__ = 'schien'
class SerializerTest(TestCase):
fixtures = ['test_data.json']
... | 39.018868 | 103 | 0.662959 | 233 | 2,068 | 5.759657 | 0.206009 | 0.135618 | 0.232489 | 0.201192 | 0.668405 | 0.620715 | 0.599106 | 0.47392 | 0.47392 | 0.47392 | 0 | 0.021592 | 0.216151 | 2,068 | 52 | 104 | 39.769231 | 0.806292 | 0.333656 | 0 | 0.5 | 0 | 0 | 0.043382 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 0 | null | null | 0 | 0.178571 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb61863f7c375ddc940c9e650335a754255c09c6 | 198 | py | Python | Course-2-python_data_structures/searching_continue_strip.py | Mohamed2011-bit/-Python-For-Everybody-Coursera- | ec9686e0d21bb4f05436187abf36a1424bfd155a | [
"MIT"
] | 3 | 2020-06-06T05:48:03.000Z | 2022-01-15T23:27:13.000Z | Course-2-python_data_structures/searching_continue_strip.py | Mohamed2011-bit/-Python-For-Everybody-Coursera- | ec9686e0d21bb4f05436187abf36a1424bfd155a | [
"MIT"
] | null | null | null | Course-2-python_data_structures/searching_continue_strip.py | Mohamed2011-bit/-Python-For-Everybody-Coursera- | ec9686e0d21bb4f05436187abf36a1424bfd155a | [
"MIT"
] | 3 | 2021-03-24T22:05:38.000Z | 2022-03-27T13:45:30.000Z | fhand = open('mbox.txt')
for line in fhand:
line = line.rstrip()
# Skip all other lines
if not line.startswith('From:'):
continue
# Process the lines we want
print line
| 19.8 | 36 | 0.616162 | 28 | 198 | 4.357143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282828 | 198 | 9 | 37 | 22 | 0.859155 | 0.232323 | 0 | 0 | 0 | 0 | 0.087248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb680bda98435bbeb641abe9cd7bdc2f60367685 | 696 | py | Python | testaccept/test_builtins.py | erwan-lemonnier/klue-microservice-helloworld | df1346e6c42c9f11c41d50653a5b46ea5c6cd2a4 | [
"BSD-2-Clause"
] | null | null | null | testaccept/test_builtins.py | erwan-lemonnier/klue-microservice-helloworld | df1346e6c42c9f11c41d50653a5b46ea5c6cd2a4 | [
"BSD-2-Clause"
] | null | null | null | testaccept/test_builtins.py | erwan-lemonnier/klue-microservice-helloworld | df1346e6c42c9f11c41d50653a5b46ea5c6cd2a4 | [
"BSD-2-Clause"
] | null | null | null | import logging
from pymacaron.test import PyMacaronTestCase
from pymacaron.auth import generate_token
log = logging.getLogger(__name__)
class Test(PyMacaronTestCase):
def setUp(self):
super(Test, self).setUp()
self.verify_ssl = False
self.token = generate_token(user_id='test-jwt-token')... | 25.777778 | 61 | 0.704023 | 85 | 696 | 5.576471 | 0.364706 | 0.094937 | 0.082278 | 0.113924 | 0.28692 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212644 | 696 | 26 | 62 | 26.769231 | 0.864964 | 0.152299 | 0 | 0 | 1 | 0 | 0.023891 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.266667 | false | 0 | 0.2 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
eb68a3050a8dd96fb7bf290d72d037e7a83abe00 | 25 | py | Python | stograde/toolkit/global_vars.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | 7 | 2016-08-05T00:41:11.000Z | 2019-08-22T11:12:10.000Z | stograde/toolkit/global_vars.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | 145 | 2016-08-04T01:07:11.000Z | 2019-09-09T22:07:13.000Z | stograde/toolkit/global_vars.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | 3 | 2017-02-06T21:52:46.000Z | 2019-02-18T10:35:01.000Z | CI = False
DEBUG = False
| 8.333333 | 13 | 0.68 | 4 | 25 | 4.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24 | 25 | 2 | 14 | 12.5 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb7221f4aa07f1abd61378eaa5c4f1491ab76450 | 316 | py | Python | pinax/boxes/hooks.py | eldarion/django-boxes | 972d97db12453c13c402515abcd019d7f72227e3 | [
"MIT"
] | 3 | 2015-02-02T13:32:12.000Z | 2015-09-28T19:56:59.000Z | pinax/boxes/hooks.py | eldarion/django-boxes | 972d97db12453c13c402515abcd019d7f72227e3 | [
"MIT"
] | 1 | 2015-09-16T20:28:52.000Z | 2015-09-16T20:28:52.000Z | pinax/boxes/hooks.py | eldarion/django-boxes | 972d97db12453c13c402515abcd019d7f72227e3 | [
"MIT"
] | null | null | null | class DefaultHookSet(object):
def parse_content(self, content):
return content
class HookProxy(object):
def __getattr__(self, attr):
from .conf import settings # if put globally there is a race condition
return getattr(settings.PINAX_BOXES_HOOKSET, attr)
hookset = HookProxy()
| 21.066667 | 79 | 0.705696 | 38 | 316 | 5.684211 | 0.684211 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221519 | 316 | 14 | 80 | 22.571429 | 0.878049 | 0.129747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
eb7483b23ccfef9f797294671ff61f6edef9ee20 | 165 | py | Python | timeclock/server.py | mikejarrett/company-time-clock | 17a652719ef25a9b058551b1f4d3f05cddadc04a | [
"MIT"
] | null | null | null | timeclock/server.py | mikejarrett/company-time-clock | 17a652719ef25a9b058551b1f4d3f05cddadc04a | [
"MIT"
] | null | null | null | timeclock/server.py | mikejarrett/company-time-clock | 17a652719ef25a9b058551b1f4d3f05cddadc04a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logger
from settings import DEBUG
from webapp import app
if __name__ == '__main__':
app.run(debug=DEBUG)
| 15 | 26 | 0.684848 | 24 | 165 | 4.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.175758 | 165 | 10 | 27 | 16.5 | 0.764706 | 0.254545 | 0 | 0 | 0 | 0 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
eb9e7b335bcb49cea2f1db1416e5110e1605e6d2 | 1,077 | py | Python | final_project/machinetranslation/unit_tests/unit_tests.py | yl-miao/xzceb-flask_eng_fr | 916316b27fa447396a99314f41c643109ce22a7e | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/unit_tests/unit_tests.py | yl-miao/xzceb-flask_eng_fr | 916316b27fa447396a99314f41c643109ce22a7e | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/unit_tests/unit_tests.py | yl-miao/xzceb-flask_eng_fr | 916316b27fa447396a99314f41c643109ce22a7e | [
"Apache-2.0"
] | null | null | null | import unittest
import sys
sys.path.append('../machinetranslation')
from machinetranslation.translator import french_to_english, english_to_french
class TestMyModule(unittest.TestCase):
def test_f2e1(self):
self.assertEqual(french_to_english('Bonjour, comment vous êtes aujourd\'hui?'),'Hello, how are you t... | 38.464286 | 115 | 0.710306 | 143 | 1,077 | 5.06993 | 0.314685 | 0.077241 | 0.209655 | 0.137931 | 0.532414 | 0.486897 | 0.22069 | 0 | 0 | 0 | 0 | 0.013187 | 0.15506 | 1,077 | 27 | 116 | 39.888889 | 0.783516 | 0 | 0 | 0 | 0 | 0 | 0.174721 | 0.019517 | 0 | 0 | 0 | 0 | 0.347826 | 1 | 0.347826 | false | 0 | 0.130435 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ebb0f2bdc2101a3e98fd53268b7e8425beafcccd | 182 | py | Python | app/models/base.py | edementyev/aiogram-chatbot-template | a3c0b3b7c2f7f57e5c8ffee8e48e10aa6bf89101 | [
"MIT"
] | 1 | 2020-10-07T12:09:21.000Z | 2020-10-07T12:09:21.000Z | app/models/base.py | edementyev/aiogram-chatbot-template | a3c0b3b7c2f7f57e5c8ffee8e48e10aa6bf89101 | [
"MIT"
] | null | null | null | app/models/base.py | edementyev/aiogram-chatbot-template | a3c0b3b7c2f7f57e5c8ffee8e48e10aa6bf89101 | [
"MIT"
] | null | null | null | # Import all the models, so that Base has them before being
# imported by Alembic
from .chat import Chat
from .db import db
from .user import User
__all__ = ("db", "User", "Chat")
| 20.222222 | 59 | 0.714286 | 30 | 182 | 4.2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 182 | 8 | 60 | 22.75 | 0.857143 | 0.423077 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ebb91841103204739a76d300623df4a4ceeacb56 | 886 | py | Python | phytorch/utils/complex.py | emaballarin/phytorch | 68cf0a630e2fee9dd98f08639edcceb2389adf35 | [
"MIT"
] | 1 | 2022-01-21T06:59:20.000Z | 2022-01-21T06:59:20.000Z | phytorch/utils/complex.py | emaballarin/phytorch | 68cf0a630e2fee9dd98f08639edcceb2389adf35 | [
"MIT"
] | null | null | null | phytorch/utils/complex.py | emaballarin/phytorch | 68cf0a630e2fee9dd98f08639edcceb2389adf35 | [
"MIT"
] | 1 | 2021-04-27T00:45:47.000Z | 2021-04-27T00:45:47.000Z | from functools import update_wrapper
from typing import Callable, TypeVar
import torch
from torch import Tensor
complex_typemap = {
torch.float16: torch.complex32,
torch.float32: torch.complex64,
torch.float64: torch.complex128
}
def get_default_complex_dtype():
return complex_typemap[torch.get_def... | 23.945946 | 102 | 0.725734 | 129 | 886 | 4.751938 | 0.364341 | 0.04894 | 0.06199 | 0.065253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021798 | 0.171558 | 886 | 36 | 103 | 24.611111 | 0.813352 | 0.029345 | 0 | 0 | 0 | 0 | 0.002331 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.227273 | false | 0 | 0.181818 | 0.181818 | 0.636364 | 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 |
ccf2d76ad7eb540cbe97fb136dc83080a69a20db | 394 | py | Python | vo/weibo/SpiderWeiboUserInfoVO.py | genji9071/dark_spider | 8213fc92791506a3b2c99b696cd12ae330208d99 | [
"MIT"
] | null | null | null | vo/weibo/SpiderWeiboUserInfoVO.py | genji9071/dark_spider | 8213fc92791506a3b2c99b696cd12ae330208d99 | [
"MIT"
] | null | null | null | vo/weibo/SpiderWeiboUserInfoVO.py | genji9071/dark_spider | 8213fc92791506a3b2c99b696cd12ae330208d99 | [
"MIT"
] | null | null | null | from pydantic import BaseModel
class SpiderWeiboUserInfoVO(BaseModel):
user_id: str = None
user_nickname: str = None
user_weibo_count: int = None
user_video_weibo_count: int = None
is_verified: bool = None
user_description: str = None
is_male: bool = None
fans_count: int = None
fol... | 24.625 | 39 | 0.708122 | 54 | 394 | 4.907407 | 0.462963 | 0.132075 | 0.181132 | 0.128302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228426 | 394 | 15 | 40 | 26.266667 | 0.871711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
690f4ce845a9b05385ed31c04d1525aba3df9f50 | 410 | py | Python | backend/aware-api/Aware.Api.MachineLearningClient/Scripts/VideoDeepwareDetection.py | hafizhahmadzuhdi/aware | b4da8b70a0c33ad5cfb91bc58f08c84c6066a591 | [
"MIT"
] | null | null | null | backend/aware-api/Aware.Api.MachineLearningClient/Scripts/VideoDeepwareDetection.py | hafizhahmadzuhdi/aware | b4da8b70a0c33ad5cfb91bc58f08c84c6066a591 | [
"MIT"
] | null | null | null | backend/aware-api/Aware.Api.MachineLearningClient/Scripts/VideoDeepwareDetection.py | hafizhahmadzuhdi/aware | b4da8b70a0c33ad5cfb91bc58f08c84c6066a591 | [
"MIT"
] | null | null | null | import json
import random
class VideoAnalysisReport:
def __init__(self, filename, percentage):
self.filename = filename
self.percentage = percentage
def toJSON(self):
return json.dumps(self, default=lambda o: o.__dict__,
sort_keys=True, indent=4)
def analyzeVid... | 25.625 | 73 | 0.67561 | 45 | 410 | 5.955556 | 0.577778 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015924 | 0.234146 | 410 | 15 | 74 | 27.333333 | 0.83758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.181818 | 0.727273 | 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 |
6929931a73b1227982d276dca4ff076f97f30526 | 1,023 | py | Python | sharebears/all_tests.py | mgp/sharebears | aabb2c568707cea1107498a05d7f56bd772ef4fb | [
"Apache-2.0"
] | 1 | 2015-01-17T20:02:14.000Z | 2015-01-17T20:02:14.000Z | sharebears/all_tests.py | mgp/sharebears | aabb2c568707cea1107498a05d7f56bd772ef4fb | [
"Apache-2.0"
] | null | null | null | sharebears/all_tests.py | mgp/sharebears | aabb2c568707cea1107498a05d7f56bd772ef4fb | [
"Apache-2.0"
] | null | null | null | import unittest
import album_item_test
import db_test
import filters_test
import paragraph_item_test
import parser_test
import post_processor_test
import renderable_item_test
import url_decoder_github_test
import url_decoder_image_test
import url_decoder_test
import url_decoder_twitter_test
import url_decoder_youtube... | 25.575 | 49 | 0.809384 | 143 | 1,023 | 5.370629 | 0.202797 | 0.15625 | 0.200521 | 0.300781 | 0.272135 | 0.201823 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094819 | 1,023 | 39 | 50 | 26.230769 | 0.829374 | 0 | 0 | 0 | 0 | 0 | 0.007828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.393939 | 0 | 0.484848 | 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 |
692a6c4ca1a873c225677ee5bc94aa14339b731c | 1,154 | py | Python | test_valid_parentheses.py | keitheck/algorithm-and-solution-library | 817121468cf617d32dd2c4bf6c294c65d5dad636 | [
"MIT"
] | null | null | null | test_valid_parentheses.py | keitheck/algorithm-and-solution-library | 817121468cf617d32dd2c4bf6c294c65d5dad636 | [
"MIT"
] | 1 | 2019-10-21T16:13:31.000Z | 2021-06-01T22:16:09.000Z | test_valid_parentheses.py | keitheck/algorithm-and-solution-library | 817121468cf617d32dd2c4bf6c294c65d5dad636 | [
"MIT"
] | null | null | null | import pytest
from valid_parentheses import valid_parentheses
@pytest.fixture
def small_false():
return '([]lkd)('
@pytest.fixture
def medium_false():
return '([]lkd)(c))))'
@pytest.fixture
def long_true():
return 'dr^#s(gg[s]lkd)(l><<])()((fde0)56)'
@pytest.fixture
def small_no_paren():
return '... | 20.981818 | 54 | 0.707106 | 151 | 1,154 | 5.205298 | 0.311258 | 0.16285 | 0.081425 | 0.087786 | 0.398219 | 0.398219 | 0.348601 | 0.348601 | 0.348601 | 0.348601 | 0 | 0.010417 | 0.168111 | 1,154 | 54 | 55 | 21.37037 | 0.808333 | 0.194107 | 0 | 0.214286 | 0 | 0 | 0.097996 | 0.037862 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.357143 | false | 0 | 0.071429 | 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 |
692b59863e13f96399f308e346d554341eff0b0f | 735 | py | Python | blog/feeds.py | hayatbayramolsa/website | 22a00a1de8b5902c559e4b48df27fa5c1329f16a | [
"WTFPL"
] | 1 | 2020-02-07T17:38:14.000Z | 2020-02-07T17:38:14.000Z | blog/feeds.py | hayatbayramolsa/website | 22a00a1de8b5902c559e4b48df27fa5c1329f16a | [
"WTFPL"
] | null | null | null | blog/feeds.py | hayatbayramolsa/website | 22a00a1de8b5902c559e4b48df27fa5c1329f16a | [
"WTFPL"
] | null | null | null | from django.contrib.syndication.views import Feed
from django.utils.feedgenerator import Atom1Feed
from django.conf import settings
from .models import Post
class BlogRssFeed(Feed):
title = settings.BLOG['TITLE']
description = settings.BLOG['DESCRIPTION']
link = settings.BLOG['URL']
def items(self):... | 22.96875 | 49 | 0.702041 | 90 | 735 | 5.644444 | 0.411111 | 0.094488 | 0.090551 | 0.070866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006826 | 0.202721 | 735 | 31 | 50 | 23.709677 | 0.860068 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.190476 | 0.238095 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
693c90aed5ec31d683e7c4429e44d861d697c041 | 418 | py | Python | individual.py | work-acc/work-with-python | 232bd1a63311e44c8280c538b4a71fbaff5da8a2 | [
"MIT"
] | null | null | null | individual.py | work-acc/work-with-python | 232bd1a63311e44c8280c538b4a71fbaff5da8a2 | [
"MIT"
] | null | null | null | individual.py | work-acc/work-with-python | 232bd1a63311e44c8280c538b4a71fbaff5da8a2 | [
"MIT"
] | null | null | null | import math
x1 = int(input("Введите координаты вершина А:"))
y1 = int(input())
x2 = int(input("Введите координаты вершина B:"))
y2 = int(input())
x3 = int(input("Введите координаты вершина C:"))
y3 = int(input())
x4 = int(input("Введите координаты вершина D:"))
y4 = int(input())
S1 = math.fabs((x1-x2)*(y3-y2)-(y1-y2)*(... | 29.857143 | 49 | 0.636364 | 72 | 418 | 3.694444 | 0.361111 | 0.240602 | 0.225564 | 0.37594 | 0.481203 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 0.124402 | 418 | 13 | 50 | 32.153846 | 0.644809 | 0 | 0 | 0 | 0 | 0 | 0.294258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
696249121a6658734197996b55c1f88eec586883 | 85 | py | Python | iron_database/atoms/apps.py | renpj/Iron-Database | b480f372d99457fd09a162f313ec8e1cf02aa5bc | [
"MIT"
] | null | null | null | iron_database/atoms/apps.py | renpj/Iron-Database | b480f372d99457fd09a162f313ec8e1cf02aa5bc | [
"MIT"
] | null | null | null | iron_database/atoms/apps.py | renpj/Iron-Database | b480f372d99457fd09a162f313ec8e1cf02aa5bc | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AtomsConfig(AppConfig):
name = 'atoms'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 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 |
15f102be015053ad3422ee4e0ab37e9ffbc16006 | 501 | py | Python | src/fingerflow/matcher/matcher.py | jakubarendac/fingerflow | a0a53259ec575704d19ae0ae770335536e567583 | [
"MIT"
] | null | null | null | src/fingerflow/matcher/matcher.py | jakubarendac/fingerflow | a0a53259ec575704d19ae0ae770335536e567583 | [
"MIT"
] | null | null | null | src/fingerflow/matcher/matcher.py | jakubarendac/fingerflow | a0a53259ec575704d19ae0ae770335536e567583 | [
"MIT"
] | null | null | null | from .verify_net import VerifyNet
class Matcher:
def __init__(self, precision, verify_net_path):
self.__verification_module = VerifyNet(precision, verify_net_path)
def verify(self, anchor, sample):
return self.__verification_module.verify_fingerprints(anchor, sample)
def verify_batch(sel... | 31.3125 | 77 | 0.758483 | 61 | 501 | 5.754098 | 0.377049 | 0.182336 | 0.250712 | 0.125356 | 0.262108 | 0.262108 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165669 | 501 | 15 | 78 | 33.4 | 0.839713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.1 | 0.2 | 0.8 | 0.2 | 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 |
c60f62153b74b043872c633d77cc20495e4c0386 | 883 | py | Python | savu/plugins/basic_operations/value_substitution_tools.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 39 | 2015-03-30T14:03:42.000Z | 2022-03-16T16:50:33.000Z | savu/plugins/basic_operations/value_substitution_tools.py | elainehoml/Savu | e4772704606f71d6803d832084e10faa585e7358 | [
"Apache-2.0"
] | 670 | 2015-02-11T11:08:09.000Z | 2022-03-21T09:27:57.000Z | savu/plugins/basic_operations/value_substitution_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 ValueSubstitutionTools(PluginTools):
"""The function looks for a specific value in the provided second dataset
(e.g. a mask image) and substitutes it with a given value.
"""
def define_parameters(self):
"""
seek_value:
vi... | 33.961538 | 78 | 0.586636 | 98 | 883 | 5.214286 | 0.602041 | 0.029354 | 0.078278 | 0.097847 | 0.207436 | 0.207436 | 0.207436 | 0.207436 | 0.207436 | 0.207436 | 0 | 0.007005 | 0.353341 | 883 | 25 | 79 | 35.32 | 0.887916 | 0.671574 | 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 |
c62bcdfce15fb2f9a4180bc6c4cce15640c49406 | 152 | py | Python | federico/hello_world.py | angeloc/github-learning | 7dd7fdd84a137399eb76e92869b338f6a283c6bc | [
"MIT"
] | null | null | null | federico/hello_world.py | angeloc/github-learning | 7dd7fdd84a137399eb76e92869b338f6a283c6bc | [
"MIT"
] | 4 | 2018-10-09T20:55:26.000Z | 2020-10-16T18:33:01.000Z | federico/hello_world.py | angeloc/github-learning | 7dd7fdd84a137399eb76e92869b338f6a283c6bc | [
"MIT"
] | 8 | 2018-10-06T16:39:22.000Z | 2021-10-20T19:41:53.000Z | #!/usr/bin/python
print("ciao sono federico!")
from random import sample
list =[1, 2, 3, 4, 5]
print(sample(list,4))
num1=5
num2=7
print("provaprova")
| 15.2 | 28 | 0.690789 | 27 | 152 | 3.888889 | 0.777778 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075188 | 0.125 | 152 | 9 | 29 | 16.888889 | 0.714286 | 0.105263 | 0 | 0 | 0 | 0 | 0.214815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 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 |
d66a171669865ae897c0e975a36047d78a63640c | 187 | py | Python | core/src/main/python/wlsdeploy/tool/util/__init__.py | avijeetgorai/weblogic-deploy-tooling | 9f7f8a7a101a6f5c8381db84cba262d90b6bff25 | [
"Apache-2.0",
"MIT"
] | null | null | null | core/src/main/python/wlsdeploy/tool/util/__init__.py | avijeetgorai/weblogic-deploy-tooling | 9f7f8a7a101a6f5c8381db84cba262d90b6bff25 | [
"Apache-2.0",
"MIT"
] | null | null | null | core/src/main/python/wlsdeploy/tool/util/__init__.py | avijeetgorai/weblogic-deploy-tooling | 9f7f8a7a101a6f5c8381db84cba262d90b6bff25 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-02-13T04:08:39.000Z | 2020-02-13T04:08:39.000Z | """
Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
"""
| 37.4 | 101 | 0.748663 | 30 | 187 | 4.666667 | 0.966667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 0.13369 | 187 | 4 | 102 | 46.75 | 0.802469 | 0.951872 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d68ddd4bc31ee7b91dfe8f70434ace2feaab2267 | 171 | py | Python | gcd perfect.py | Xanonymous-GitHub/python_playground | c34b9c3c5c8a55b79e62c0f960b101e4eaf66a08 | [
"MIT"
] | null | null | null | gcd perfect.py | Xanonymous-GitHub/python_playground | c34b9c3c5c8a55b79e62c0f960b101e4eaf66a08 | [
"MIT"
] | null | null | null | gcd perfect.py | Xanonymous-GitHub/python_playground | c34b9c3c5c8a55b79e62c0f960b101e4eaf66a08 | [
"MIT"
] | null | null | null | def main():
n, m = list(map(int, input().split()))
print((gcd := lambda _m, _n: _m if not _n else gcd(_n, _m % _n))(m, n))
if __name__ == '__main__':
main()
| 21.375 | 75 | 0.54386 | 29 | 171 | 2.689655 | 0.551724 | 0.102564 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239766 | 171 | 7 | 76 | 24.428571 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.046784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d6a689f9459ec25363dac955322a63c517d74500 | 1,849 | py | Python | Python/DynamicProgramming/MatrixDP/Rod Cutting.py | rsamit26/Euler_Project | 84b7045cc676f2c46fac01bbb155904b3d87e20f | [
"MIT"
] | 20 | 2018-09-16T19:50:54.000Z | 2022-02-13T17:04:16.000Z | Python/DynamicProgramming/MatrixDP/Rod Cutting.py | rsamit26/Euler_Project | 84b7045cc676f2c46fac01bbb155904b3d87e20f | [
"MIT"
] | 1 | 2019-07-18T16:05:52.000Z | 2019-08-13T04:11:59.000Z | Python/DynamicProgramming/MatrixDP/Rod Cutting.py | rsamit26/Euler_Project | 84b7045cc676f2c46fac01bbb155904b3d87e20f | [
"MIT"
] | 16 | 2019-01-22T23:39:21.000Z | 2022-02-21T17:59:46.000Z | """
There is a rod of length N lying on x-axis with its left end at x = 0 and right end at x = N. Now, there are M weak
points on this rod denoted by positive integer values(all less than N) A1, A2, …, AM. You have to cut rod at all these
weak points. You can perform these cuts in any order. After a cut, rod gets divid... | 31.338983 | 118 | 0.617631 | 356 | 1,849 | 3.129213 | 0.379213 | 0.017953 | 0.039497 | 0.035009 | 0.138241 | 0.127469 | 0.127469 | 0.127469 | 0.077199 | 0.077199 | 0 | 0.062263 | 0.287723 | 1,849 | 58 | 119 | 31.87931 | 0.776765 | 0.977826 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.017241 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d6a8696bd2e7f5498784202ff966d3710cef51ba | 528 | py | Python | chapter-03/exercise008.py | krastin/pp-cs3.0 | 502be9aac2d84215db176864e443c219e5e26591 | [
"MIT"
] | null | null | null | chapter-03/exercise008.py | krastin/pp-cs3.0 | 502be9aac2d84215db176864e443c219e5e26591 | [
"MIT"
] | null | null | null | chapter-03/exercise008.py | krastin/pp-cs3.0 | 502be9aac2d84215db176864e443c219e5e26591 | [
"MIT"
] | null | null | null | from exercise004 import absolute_difference
def weeks_elapsed(day1:int, day2:int) -> int:
"""
day1 and day2 are days in the same year. Return the number of full weeks
that have elapsed between the two days.
>>> weeks_elapsed(3, 20)
2
>>> weeks_elapsed(20, 3)
2
>>> weeks_elapsed(8, 5)
... | 24 | 76 | 0.659091 | 81 | 528 | 4.160494 | 0.444444 | 0.320475 | 0.20178 | 0.089021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09201 | 0.217803 | 528 | 21 | 77 | 25.142857 | 0.723971 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0.571429 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ba399f48e8dc157bbe5e06aaf610680312f5abc7 | 554 | py | Python | programs/pgm09_03.py | danielsunzhongyuan/python_practice | 79bc88db1c52ee2f5607f6f9fec1bbacea2804ff | [
"Apache-2.0"
] | null | null | null | programs/pgm09_03.py | danielsunzhongyuan/python_practice | 79bc88db1c52ee2f5607f6f9fec1bbacea2804ff | [
"Apache-2.0"
] | null | null | null | programs/pgm09_03.py | danielsunzhongyuan/python_practice | 79bc88db1c52ee2f5607f6f9fec1bbacea2804ff | [
"Apache-2.0"
] | null | null | null | #
# This file contains the Python code from Program 9.3 of
# "Data Structures and Algorithms
# with Object-Oriented Design Patterns in Python"
# by Bruno R. Preiss.
#
# Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved.
#
# http://www.brpreiss.com/books/opus7/programs/pgm09_03.txt
#
class PrePostVisito... | 21.307692 | 69 | 0.669675 | 75 | 554 | 4.826667 | 0.746667 | 0.058011 | 0.09116 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.225632 | 554 | 25 | 70 | 22.16 | 0.818182 | 0.505415 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.3 | 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 |
ba458d931108de1c695dc2039b3126fd7c3f243e | 547 | py | Python | src/models/user.py | NurseHack4Health/LocAid | 3c2e735e9d0383934df47c7a42a9fe5f6523d9ab | [
"MIT"
] | null | null | null | src/models/user.py | NurseHack4Health/LocAid | 3c2e735e9d0383934df47c7a42a9fe5f6523d9ab | [
"MIT"
] | null | null | null | src/models/user.py | NurseHack4Health/LocAid | 3c2e735e9d0383934df47c7a42a9fe5f6523d9ab | [
"MIT"
] | 1 | 2021-05-15T18:20:29.000Z | 2021-05-15T18:20:29.000Z | import uuid
from src.data_layer.db_connector import Base
from sqlalchemy import Column, VARCHAR, FLOAT
from sqlalchemy.dialects.postgresql import UUID
class UserModel(Base):
"""
Define User database table ORM model
"""
__tablename__ = "user"
# Register columns
id = Column(UUID(as_uuid=True), ... | 30.388889 | 98 | 0.729433 | 72 | 547 | 5.430556 | 0.541667 | 0.132992 | 0.14578 | 0.184143 | 0.253197 | 0.253197 | 0 | 0 | 0 | 0 | 0 | 0.002203 | 0.170018 | 547 | 17 | 99 | 32.176471 | 0.859031 | 0.09872 | 0 | 0 | 0 | 0 | 0.008386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
ba54ccf003da9af22bdbf9883ace1c53e918725b | 274 | py | Python | leetcode/991.py | Cannizza-zzk/python_review | 5a04b3dbc8baa835780c039386529e20e69af81c | [
"Apache-2.0"
] | null | null | null | leetcode/991.py | Cannizza-zzk/python_review | 5a04b3dbc8baa835780c039386529e20e69af81c | [
"Apache-2.0"
] | null | null | null | leetcode/991.py | Cannizza-zzk/python_review | 5a04b3dbc8baa835780c039386529e20e69af81c | [
"Apache-2.0"
] | null | null | null | class Solution:
def brokenCalc(self, x: int, y: int) -> int:
if y <= x:
return x - y
else:
if y % 2 == 0:
return 1 + self.brokenCalc(x,y//2)
else:
return 2 + self.brokenCalc(x,(y+1)//2)
| 27.4 | 54 | 0.419708 | 37 | 274 | 3.108108 | 0.378378 | 0.052174 | 0.26087 | 0.278261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046053 | 0.445255 | 274 | 9 | 55 | 30.444444 | 0.710526 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba688cc839b4f487ded464047c001a6457883b72 | 156 | py | Python | utils/__init__.py | aliyun/Self-Evolving-Keypoint-Demo | 52a8bb312040bfbf5c2be02ac5d40ce3f0142026 | [
"MIT"
] | 25 | 2020-07-16T02:55:25.000Z | 2021-12-25T03:37:09.000Z | utils/__init__.py | aliyun/Self-Evolving-Keypoint-Demo | 52a8bb312040bfbf5c2be02ac5d40ce3f0142026 | [
"MIT"
] | 8 | 2020-08-20T04:36:51.000Z | 2021-03-24T12:31:37.000Z | utils/__init__.py | aliyun/Self-Evolving-Keypoint-Demo | 52a8bb312040bfbf5c2be02ac5d40ce3f0142026 | [
"MIT"
] | 2 | 2020-08-07T13:45:12.000Z | 2021-03-09T01:54:59.000Z | # __init__.py
from .tracker import Tracker
from .utils import GetGroupPatches
from .video import Video
__all__ = ['Tracker', 'GetGroupPatches', 'Video']
| 17.333333 | 49 | 0.75641 | 18 | 156 | 6.111111 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141026 | 156 | 8 | 50 | 19.5 | 0.820896 | 0.070513 | 0 | 0 | 0 | 0 | 0.190141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ba8276b99e8b4966ace5c473e247e1b766825197 | 58 | py | Python | gunpowder/points_spec.py | riels89/gunpowder | e523b49ca846a9fd46ab6fc0dd1040cc4a4d53b4 | [
"MIT"
] | null | null | null | gunpowder/points_spec.py | riels89/gunpowder | e523b49ca846a9fd46ab6fc0dd1040cc4a4d53b4 | [
"MIT"
] | null | null | null | gunpowder/points_spec.py | riels89/gunpowder | e523b49ca846a9fd46ab6fc0dd1040cc4a4d53b4 | [
"MIT"
] | null | null | null | from .graph_spec import GraphSpec
PointsSpec = GraphSpec
| 14.5 | 33 | 0.827586 | 7 | 58 | 6.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 3 | 34 | 19.333333 | 0.94 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ba8e0e76afaf379f6268e6c19c6f66ee8dae6e9e | 303 | py | Python | core/task/tasks.py | chiaki64/Windless | 12eef67e7c49bd131104c223539445ccd841edc1 | [
"MIT"
] | 10 | 2016-11-30T12:15:00.000Z | 2018-10-04T01:13:45.000Z | core/task/tasks.py | chiaki64/Windless | 12eef67e7c49bd131104c223539445ccd841edc1 | [
"MIT"
] | null | null | null | core/task/tasks.py | chiaki64/Windless | 12eef67e7c49bd131104c223539445ccd841edc1 | [
"MIT"
] | 3 | 2017-11-01T09:17:18.000Z | 2018-09-25T02:07:40.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from components.eternity import config
from task.celery import app
@app.task
def restart(x):
config.eternity['env']['flag'] = not config.eternity['env']['flag']
config.dumps(config.eternity)
return x
@app.task
def add(x, y):
return x+y
| 17.823529 | 71 | 0.663366 | 46 | 303 | 4.369565 | 0.521739 | 0.208955 | 0.099502 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.168317 | 303 | 16 | 72 | 18.9375 | 0.789683 | 0.141914 | 0 | 0.2 | 0 | 0 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
baa4f33f38461469944ad15d08df0660d203e893 | 881 | py | Python | idm/commands/__init__.py | PAVELNEDELKO1100/idmduty.github.io | 9b3e78912f2c4ed0e314693db0eff29f6780d21b | [
"MIT"
] | 24 | 2020-05-11T19:14:06.000Z | 2022-02-22T10:08:34.000Z | idm/commands/__init__.py | PAVELNEDELKO1100/idmduty.github.io | 9b3e78912f2c4ed0e314693db0eff29f6780d21b | [
"MIT"
] | 13 | 2020-05-10T00:45:33.000Z | 2022-01-31T11:59:06.000Z | idm/commands/__init__.py | PAVELNEDELKO1100/idmduty.github.io | 9b3e78912f2c4ed0e314693db0eff29f6780d21b | [
"MIT"
] | 18 | 2020-05-02T07:47:01.000Z | 2022-03-13T18:54:58.000Z | from .add_user import add_user
from .ban_expired import ban_expired
from .ban_get_reason import ban_get_reason
from .bind_chat import bind_chat
from .delete_messages import delete_messages
from .delete_messages_by_type import delete_messages_by_type
from .delete_messages_from_user import delete_messages_from_user... | 41.952381 | 79 | 0.859251 | 133 | 881 | 5.278195 | 0.263158 | 0.119658 | 0.076923 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115778 | 881 | 20 | 80 | 44.05 | 0.901155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.05 | 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 |
bac8c6cd76a43ca5bb27ce6b4476c8761f035b98 | 579 | py | Python | alphatwirl/roottree/__init__.py | shane-breeze/AlphaTwirl | 59dbd5348af31d02e133d43fd5bfaad6b99a155e | [
"BSD-3-Clause"
] | null | null | null | alphatwirl/roottree/__init__.py | shane-breeze/AlphaTwirl | 59dbd5348af31d02e133d43fd5bfaad6b99a155e | [
"BSD-3-Clause"
] | null | null | null | alphatwirl/roottree/__init__.py | shane-breeze/AlphaTwirl | 59dbd5348af31d02e133d43fd5bfaad6b99a155e | [
"BSD-3-Clause"
] | null | null | null | from .Events import Events
from .Branch import Branch
from .EventBuilderConfig import EventBuilderConfig
hasROOT = False
try:
import ROOT
hasROOT = True
except ImportError:
pass
if hasROOT:
from .build import BuildEvents
from .BEvents import BEvents
from .BEventBuilder import BEventBuilder
... | 27.571429 | 76 | 0.792746 | 57 | 579 | 8.035088 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17962 | 579 | 20 | 77 | 28.95 | 0.964211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.722222 | 0 | 0.722222 | 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 |
bad4e4afc69e31f3299889b53fc1f7dd34ce5189 | 102 | py | Python | mindsdb/api/http/namespaces/configs/config.py | yarenty/mindsdb | 9164bca6f45fd0f5ec329babe973f286ffe59709 | [
"MIT"
] | 261 | 2018-09-28T02:32:17.000Z | 2018-12-10T06:30:54.000Z | mindsdb/api/http/namespaces/configs/config.py | yarenty/mindsdb | 9164bca6f45fd0f5ec329babe973f286ffe59709 | [
"MIT"
] | 27 | 2018-09-26T08:49:11.000Z | 2018-12-10T14:42:52.000Z | mindsdb/api/http/namespaces/configs/config.py | yarenty/mindsdb | 9164bca6f45fd0f5ec329babe973f286ffe59709 | [
"MIT"
] | 46 | 2018-10-06T10:11:18.000Z | 2018-12-10T04:02:17.000Z | from flask_restx import Namespace
ns_conf = Namespace('config', description='Configuration changes')
| 25.5 | 66 | 0.813725 | 12 | 102 | 6.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 102 | 3 | 67 | 34 | 0.880435 | 0 | 0 | 0 | 0 | 0 | 0.264706 | 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 |
bae5d65bb06065775595d5ed8e0be17967a39537 | 88 | py | Python | Antenna.py | NuriaLorente/VRIpy | db18bd9682fd048707f0d9b9bfad2e1697131f94 | [
"MIT"
] | 1 | 2016-11-14T20:18:29.000Z | 2016-11-14T20:18:29.000Z | Antenna.py | NuriaLorente/VRIpy | db18bd9682fd048707f0d9b9bfad2e1697131f94 | [
"MIT"
] | null | null | null | Antenna.py | NuriaLorente/VRIpy | db18bd9682fd048707f0d9b9bfad2e1697131f94 | [
"MIT"
] | null | null | null | """ Antenna subclass for the Virtual Radio Interferometer """
class Antenna(Location): | 22 | 61 | 0.761364 | 10 | 88 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 88 | 4 | 62 | 22 | 0.881579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
baec1ea74c976b758c6ec2722c73a4708a1fb87a | 495 | py | Python | testing/math.py | muellerzr/test_repo | 268c11a6c420458816ee04c94fa0468c905e005b | [
"Apache-2.0"
] | null | null | null | testing/math.py | muellerzr/test_repo | 268c11a6c420458816ee04c94fa0468c905e005b | [
"Apache-2.0"
] | null | null | null | testing/math.py | muellerzr/test_repo | 268c11a6c420458816ee04c94fa0468c905e005b | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified).
__all__ = ['addition', 'multiplication']
# Cell
def addition(a:int,b:int) -> int:
"""
Performs addition of `a` and `b`
"""
return a + b
# Internal Cell
def _subtraction(a:int, b:int) -> int:
"""
Performs s... | 20.625 | 87 | 0.59596 | 68 | 495 | 4.25 | 0.382353 | 0.072664 | 0.051903 | 0.083045 | 0.352941 | 0.352941 | 0.155709 | 0 | 0 | 0 | 0 | 0.005391 | 0.250505 | 495 | 24 | 88 | 20.625 | 0.773585 | 0.440404 | 0 | 0 | 1 | 0 | 0.09607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
240c97aa00476436f6a6f9c8a8d47994c620b667 | 751 | py | Python | emgapi/migrations/0003_annotations.py | EBI-Metagenomics/ebi-metagenomics-api | 1f028902fe493583c5c8191dd5dae92cca9e15a9 | [
"Apache-2.0"
] | 6 | 2018-11-20T10:38:56.000Z | 2022-03-08T19:39:11.000Z | emgapi/migrations/0003_annotations.py | EBI-Metagenomics/ebi-metagenomics-api | 1f028902fe493583c5c8191dd5dae92cca9e15a9 | [
"Apache-2.0"
] | 33 | 2017-10-19T14:07:31.000Z | 2022-03-28T16:02:50.000Z | emgapi/migrations/0003_annotations.py | EBI-Metagenomics/ebi-metagenomics-api | 1f028902fe493583c5c8191dd5dae92cca9e15a9 | [
"Apache-2.0"
] | 2 | 2017-10-18T19:34:46.000Z | 2019-06-14T22:08:51.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-13 22:23
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('emgapi', '0002_cleanup_and_rename'),
]
operations ... | 25.896552 | 62 | 0.599201 | 74 | 751 | 5.864865 | 0.608108 | 0.200461 | 0.228111 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038113 | 0.266312 | 751 | 28 | 63 | 26.821429 | 0.749546 | 0.090546 | 0 | 0.285714 | 1 | 0 | 0.145588 | 0.033824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
24161a63947e798998810fe019bd5f79b481cb84 | 110 | py | Python | python/1080.py | clebsonc/UriOnlineJudge | 763cef77cf3d5088be34c54b0cf457c6ef90a88f | [
"MIT"
] | null | null | null | python/1080.py | clebsonc/UriOnlineJudge | 763cef77cf3d5088be34c54b0cf457c6ef90a88f | [
"MIT"
] | null | null | null | python/1080.py | clebsonc/UriOnlineJudge | 763cef77cf3d5088be34c54b0cf457c6ef90a88f | [
"MIT"
] | null | null | null | v = list()
for i in range(100):
v.append(int(raw_input().strip()))
print max(v)
print (v.index(max(v))+1)
| 18.333333 | 38 | 0.618182 | 22 | 110 | 3.045455 | 0.727273 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.145455 | 110 | 5 | 39 | 22 | 0.670213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
241afac1fc212e59a782efa7fea258cd70601391 | 58 | py | Python | testing/pandas/hello-pandas.py | JaBarosin/carbon-black-cloud-sdk-python | 0dc58a42f4ba29793ba046ac54d0953ac056ae0d | [
"MIT"
] | null | null | null | testing/pandas/hello-pandas.py | JaBarosin/carbon-black-cloud-sdk-python | 0dc58a42f4ba29793ba046ac54d0953ac056ae0d | [
"MIT"
] | null | null | null | testing/pandas/hello-pandas.py | JaBarosin/carbon-black-cloud-sdk-python | 0dc58a42f4ba29793ba046ac54d0953ac056ae0d | [
"MIT"
] | null | null | null | import pandas as pd
s = pd.Series([1, 6, 8, 10])
print(s)
| 14.5 | 28 | 0.62069 | 13 | 58 | 2.769231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0.189655 | 58 | 3 | 29 | 19.333333 | 0.659574 | 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 |
2434a0b6ab27abb6aa25dfdc430049235186c420 | 598 | py | Python | crypto/XOR2/solve/test.py | b01lers/b01lers-ctf-2021 | 1b6eb358bd0a36458fbefc72da2a88d9b3103faf | [
"MIT"
] | 6 | 2021-04-10T10:46:01.000Z | 2022-03-15T08:04:53.000Z | crypto/XOR2/solve/test.py | b01lers/b01lers-ctf-2021 | 1b6eb358bd0a36458fbefc72da2a88d9b3103faf | [
"MIT"
] | 1 | 2021-05-20T03:38:52.000Z | 2021-05-20T03:44:55.000Z | crypto/XOR2/solve/test.py | b01lers/b01lers-ctf-2021 | 1b6eb358bd0a36458fbefc72da2a88d9b3103faf | [
"MIT"
] | 3 | 2021-04-10T12:10:01.000Z | 2021-11-05T18:05:44.000Z | ctxt = open("chal2.enc", "rb").read()
key1= b'\x94\x9a\\\xf2B\xf1\xe1\xa6i\xe9\x18\x96k\x17\x97\xf5WDbw-\x03\\\r&\x8f+:\xa1-B\xd1\xbf-\xb98\xf5N\xc7>\xa4\x8a\xe8C\xd4E.2; \xc8\xf5\x9b'
key2= b'\xd5\xb6,EQI=\xee](\x86Q\xbb\x00\xce\xc3\x1a\xb2\x96]s\x9c\xdb\xec\x98\xd5\xba\x05W\xdb\x8b\x92;\xfa\x8a\xcb\x81\x1fy[\x0e\xe9... | 35.176471 | 221 | 0.657191 | 122 | 598 | 3.221311 | 0.795082 | 0.035623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.086957 | 598 | 16 | 222 | 37.375 | 0.565934 | 0 | 0 | 0 | 0 | 0.222222 | 0.612416 | 0.563758 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2439ed62fc4ec540ce4f19f3d882eb68992e0983 | 628 | py | Python | server/src/service/DbService.py | lixinyang123/ERP | 4df02d68c74067cd22589c5a397a85029b388665 | [
"MIT"
] | 4 | 2021-04-30T14:56:50.000Z | 2022-03-29T06:09:28.000Z | server/src/service/DbService.py | lixinyang123/ERP | 4df02d68c74067cd22589c5a397a85029b388665 | [
"MIT"
] | null | null | null | server/src/service/DbService.py | lixinyang123/ERP | 4df02d68c74067cd22589c5a397a85029b388665 | [
"MIT"
] | 1 | 2022-02-26T02:51:54.000Z | 2022-02-26T02:51:54.000Z | import sqlite3
from xml.dom.minidom import *
from util.Configuration import *
# 获取数据库连接
def getConnection():
return sqlite3.connect(Configuration().get("DatabaseCWD"))
# 释放数据库连接
def disposeConnection(conn):
conn.close()
# 数据库操作服务
class DbService:
# 构造器初始化操作表
def __init__(self, tableName: str):
... | 25.12 | 91 | 0.710191 | 66 | 628 | 6.69697 | 0.636364 | 0.040724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00969 | 0.178344 | 628 | 24 | 92 | 26.166667 | 0.846899 | 0.071656 | 0 | 0 | 0 | 0 | 0.045061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.214286 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.