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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38d0fa4ea9b45b23d1899422d99902c626cd0585 | 164 | py | Python | Particle.py | ganeshsaiavula/Binray-PSO-For-Feature-Selection | c947fb32ac96717dc433ed8ae4f62663b8239ace | [
"Unlicense"
] | 3 | 2020-08-12T09:02:13.000Z | 2021-11-22T02:01:09.000Z | Particle.py | ganeshsaiavula/Binray-PSO-For-Feature-Selection | c947fb32ac96717dc433ed8ae4f62663b8239ace | [
"Unlicense"
] | null | null | null | Particle.py | ganeshsaiavula/Binray-PSO-For-Feature-Selection | c947fb32ac96717dc433ed8ae4f62663b8239ace | [
"Unlicense"
] | 1 | 2020-04-06T03:06:37.000Z | 2020-04-06T03:06:37.000Z | import numpy as np
class Particle():
def __init__(self):
self._pos = None
self._velocity = None
self._fitness = None
self._personalBest = None
| 18.222222 | 28 | 0.664634 | 21 | 164 | 4.809524 | 0.666667 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 164 | 9 | 29 | 18.222222 | 0.821138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
c7fff3dd9782629531117a50a4ac7edfb6f1071b | 166 | py | Python | rockstreet/album/urls.py | CeMenezesJunior/DevWebDjango | 7b442411b6444f1c7c3c781ef8e5fdad73a476e0 | [
"MIT"
] | null | null | null | rockstreet/album/urls.py | CeMenezesJunior/DevWebDjango | 7b442411b6444f1c7c3c781ef8e5fdad73a476e0 | [
"MIT"
] | null | null | null | rockstreet/album/urls.py | CeMenezesJunior/DevWebDjango | 7b442411b6444f1c7c3c781ef8e5fdad73a476e0 | [
"MIT"
] | null | null | null | from django.urls import path
from album import views
app_name = 'album'
urlpatterns = [
path('<int:id>/<slug:slug_do_album>', views.index, name='albumdetail')
] | 20.75 | 74 | 0.716867 | 24 | 166 | 4.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138554 | 166 | 8 | 75 | 20.75 | 0.811189 | 0 | 0 | 0 | 0 | 0 | 0.269461 | 0.173653 | 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 |
2a1396b2cd0c9268dbfa524466d9fc2332de60c6 | 1,507 | py | Python | test/tests/member_descriptor_ics.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:28:45.000Z | 2020-02-06T14:28:45.000Z | test/tests/member_descriptor_ics.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/member_descriptor_ics.py | jmgc/pyston | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-02-06T14:29:00.000Z | 2020-02-06T14:29:00.000Z | # skip-if: True
# this currently prints the wrong result in a release build
# run_args: -n
# statcheck: noninit_count('slowpath_member_descriptor_get') <= 1500
# Right now this will fail for the access with the try-block.
# All other accesses should be re-written.
import descr_test
def f(o, expect_exc):
# print... | 32.06383 | 73 | 0.689449 | 231 | 1,507 | 4.307359 | 0.380952 | 0.140704 | 0.21005 | 0.045226 | 0.080402 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009942 | 0.199071 | 1,507 | 46 | 74 | 32.76087 | 0.814416 | 0.212342 | 0 | 0 | 0 | 0 | 0.126378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.6875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2a1e1a5030ee2bf247ea88414d2456394ac486e1 | 169 | py | Python | DistSys/tormentor_plot.py | DistributedML/TorML | f41a0378f5e46e578c6bd9c8bfd56037d1a228cf | [
"MIT"
] | 10 | 2018-07-02T01:48:58.000Z | 2021-09-01T09:27:18.000Z | DistSys/tormentor_plot.py | DistributedML/TorML | f41a0378f5e46e578c6bd9c8bfd56037d1a228cf | [
"MIT"
] | null | null | null | DistSys/tormentor_plot.py | DistributedML/TorML | f41a0378f5e46e578c6bd9c8bfd56037d1a228cf | [
"MIT"
] | 3 | 2017-10-19T21:20:59.000Z | 2022-02-23T21:39:01.000Z | import numpy as np
import matplotlib.pyplot as plt
data = np.loadtxt("lossflush10_3.csv", delimiter=',')
fig = plt.figure()
plt.plot(data)
fig.savefig("loss10_3.jpeg") | 24.142857 | 53 | 0.739645 | 27 | 169 | 4.555556 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039735 | 0.106509 | 169 | 7 | 54 | 24.142857 | 0.774834 | 0 | 0 | 0 | 0 | 0 | 0.182353 | 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 |
2a2aa57e822a1c50a491446ff279317d865fe036 | 49 | py | Python | newton/__init__.py | samirelanduk/newton | 3d70d44653d0ac93162b7ae72a1258f1729d2154 | [
"MIT"
] | null | null | null | newton/__init__.py | samirelanduk/newton | 3d70d44653d0ac93162b7ae72a1258f1729d2154 | [
"MIT"
] | null | null | null | newton/__init__.py | samirelanduk/newton | 3d70d44653d0ac93162b7ae72a1258f1729d2154 | [
"MIT"
] | null | null | null | __author__ = "Sam Ireland"
__version__ = "0.1.0"
| 16.333333 | 26 | 0.693878 | 7 | 49 | 3.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.142857 | 49 | 2 | 27 | 24.5 | 0.547619 | 0 | 0 | 0 | 0 | 0 | 0.326531 | 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 |
2a3324eab73ffaedaac6af9ec837e784563fbff6 | 87 | py | Python | Apis/canino/apps.py | fredmanre/RefugioPerro | cab8049dbb93e8f5bd94903890b59f9554177620 | [
"MIT"
] | 2 | 2017-04-25T10:14:08.000Z | 2020-10-19T04:12:26.000Z | Apis/canino/apps.py | fredmanre/RefugioPerro | cab8049dbb93e8f5bd94903890b59f9554177620 | [
"MIT"
] | null | null | null | Apis/canino/apps.py | fredmanre/RefugioPerro | cab8049dbb93e8f5bd94903890b59f9554177620 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CaninoConfig(AppConfig):
name = 'canino'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 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 |
2a513516d6f42a8b08001d42324a27872b10ba54 | 1,073 | py | Python | catalog/migrations/0002_auto_20180218_1835.py | esalascolas/blog_diari | 43f6d22db745a38559fc2dcb8ea52c39a9d28753 | [
"MIT"
] | null | null | null | catalog/migrations/0002_auto_20180218_1835.py | esalascolas/blog_diari | 43f6d22db745a38559fc2dcb8ea52c39a9d28753 | [
"MIT"
] | 13 | 2020-02-11T22:06:44.000Z | 2022-02-10T08:23:36.000Z | catalog/migrations/0002_auto_20180218_1835.py | esalascolas/blog_diari | 43f6d22db745a38559fc2dcb8ea52c39a9d28753 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-02-18 17:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='country',
name='cant_miss',
... | 27.512821 | 64 | 0.552656 | 100 | 1,073 | 5.79 | 0.44 | 0.15544 | 0.198618 | 0.233161 | 0.677029 | 0.677029 | 0.29361 | 0 | 0 | 0 | 0 | 0.045267 | 0.320596 | 1,073 | 38 | 65 | 28.236842 | 0.748971 | 0.041938 | 0 | 0.53125 | 1 | 0 | 0.108187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 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 |
2a6aef16e5df3e62c0b3160738fe21eb01c4137b | 1,163 | py | Python | rest_search/forms.py | jlaine/django-rest-search | 5a5fad6204cc0b8e64b3c42c6cb172ecc80379c0 | [
"BSD-2-Clause"
] | 7 | 2016-12-06T10:09:18.000Z | 2021-09-02T01:43:18.000Z | rest_search/forms.py | jlaine/django-rest-search | 5a5fad6204cc0b8e64b3c42c6cb172ecc80379c0 | [
"BSD-2-Clause"
] | 5 | 2020-10-05T08:26:18.000Z | 2021-12-14T14:24:33.000Z | rest_search/forms.py | jlaine/django-rest-search | 5a5fad6204cc0b8e64b3c42c6cb172ecc80379c0 | [
"BSD-2-Clause"
] | 3 | 2017-05-02T13:51:26.000Z | 2021-09-01T15:03:56.000Z | # -*- coding: utf-8 -*-
from django import forms
class SearchMixin(object):
"""
Mixin to help build ElasticSearch queries.
"""
def get_query(self):
"""
Returns the query to be executed by ElasticSearch.
"""
return self._score_query(self._build_query())
def _build... | 21.537037 | 62 | 0.566638 | 127 | 1,163 | 4.952756 | 0.393701 | 0.047695 | 0.108108 | 0.127186 | 0.122417 | 0.085851 | 0 | 0 | 0 | 0 | 0 | 0.001247 | 0.310404 | 1,163 | 53 | 63 | 21.943396 | 0.783042 | 0.139295 | 0 | 0.214286 | 0 | 0 | 0.062302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.035714 | 0.178571 | 0.678571 | 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 |
2a6fbb2d28c0d4750d1097f25a4fff498e537a37 | 793 | py | Python | server/processes/serializers/generic_execution_method_capability_serializer.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | server/processes/serializers/generic_execution_method_capability_serializer.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | 6 | 2021-11-01T01:35:40.000Z | 2022-02-11T03:33:06.000Z | server/processes/serializers/generic_execution_method_capability_serializer.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | from typing import Any
from ..models import Task
from ..execution_methods import UnknownExecutionMethod
from .base_execution_method_capability_serializer import (
BaseExecutionMethodCapabilitySerializer
)
class GenericExecutionMethodCapabilitySerializer(BaseExecutionMethodCapabilitySerializer):
def get_execu... | 33.041667 | 90 | 0.757881 | 85 | 793 | 6.835294 | 0.423529 | 0.129088 | 0.129088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167718 | 793 | 23 | 91 | 34.478261 | 0.880303 | 0 | 0 | 0 | 0 | 0 | 0.034048 | 0.034048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0.176471 | 0.764706 | 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 |
2a73835b02015d583360bac038fd72dd79492de9 | 1,077 | py | Python | client.py | Keystone365/PythonChat | 027526c0a1347bb0ccf30d529a34a82f436a3152 | [
"MIT"
] | 2 | 2019-04-30T23:29:43.000Z | 2019-05-24T11:33:52.000Z | client.py | Keystone365/PythonChat | 027526c0a1347bb0ccf30d529a34a82f436a3152 | [
"MIT"
] | 7 | 2019-04-18T06:19:57.000Z | 2019-04-21T05:49:53.000Z | client.py | Keystone365/PythonChat | 027526c0a1347bb0ccf30d529a34a82f436a3152 | [
"MIT"
] | null | null | null |
from src.Client.ClientController import ClientController
from datetime import datetime
'''
Author: Andrew Christianson
March 2019
Description:
TCP TKinter Multi Client Python Chat Project.
'''
if __name__ == '__main__':
print('PythonChat 2019 Client running')
print('Startup: ' + datetime.now().strftime('%Y-%m-... | 28.342105 | 130 | 0.49675 | 107 | 1,077 | 4.925234 | 0.607477 | 0.193548 | 0.273245 | 0.341556 | 0.102467 | 0.102467 | 0.102467 | 0.102467 | 0.102467 | 0.102467 | 0 | 0.011364 | 0.182916 | 1,077 | 37 | 131 | 29.108108 | 0.5875 | 0.031569 | 0 | 0 | 0 | 0 | 0.327839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.105263 | 0 | 0.105263 | 0.368421 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2a7a0b07c447a68ced565fe66f3ce2052a93758e | 877 | py | Python | raytracing/components.py | antho214/RayTracing | 2df997a38fb257975790c56c2b0c20634069208d | [
"MIT"
] | null | null | null | raytracing/components.py | antho214/RayTracing | 2df997a38fb257975790c56c2b0c20634069208d | [
"MIT"
] | null | null | null | raytracing/components.py | antho214/RayTracing | 2df997a38fb257975790c56c2b0c20634069208d | [
"MIT"
] | null | null | null | from .matrix import *
from .matrixgroup import *
from math import *
class System4f(MatrixGroup):
def __init__(self,f1, f2, diameter1=float('+Inf'), diameter2=float('+Inf'), label=''):
elements = []
elements.append(Space(d=f1))
elements.append(Lens(f=f1, diameter=diameter1))
element... | 32.481481 | 90 | 0.652223 | 106 | 877 | 5.245283 | 0.254717 | 0.226619 | 0.205036 | 0.215827 | 0.456835 | 0.363309 | 0.241007 | 0.147482 | 0 | 0 | 0 | 0.022663 | 0.194983 | 877 | 26 | 91 | 33.730769 | 0.764873 | 0 | 0 | 0.380952 | 0 | 0 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.333333 | 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 |
aa49c23c2db65cf6c177c3dfb32123d382f31049 | 1,065 | py | Python | app/models.py | dennisnyamweya/Neighbourhood | 28d4d208c7d2af407d9f64dce3f2cc8a66603df6 | [
"MIT"
] | null | null | null | app/models.py | dennisnyamweya/Neighbourhood | 28d4d208c7d2af407d9f64dce3f2cc8a66603df6 | [
"MIT"
] | 7 | 2021-03-19T03:36:59.000Z | 2022-02-10T12:48:51.000Z | app/models.py | dennisnyamweya/Neighbourhood | 28d4d208c7d2af407d9f64dce3f2cc8a66603df6 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Hood(models.Model):
# admin = models.ForeignKey(User,on_delete=models.CASCADE,default=None)
name = models.CharField(max_length=20)
location = models.CharField(max_length=100)
count = models.Integer... | 32.272727 | 75 | 0.70892 | 138 | 1,065 | 5.297101 | 0.333333 | 0.098495 | 0.147743 | 0.19699 | 0.719562 | 0.683995 | 0.555404 | 0.47606 | 0.355677 | 0.355677 | 0 | 0.022805 | 0.176526 | 1,065 | 33 | 76 | 32.272727 | 0.810718 | 0.153052 | 0 | 0.590909 | 0 | 0 | 0.03782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0.136364 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
aa4e673dda1ef6b4e39e66b3aed4b704072666be | 1,018 | py | Python | miniFrame/miniFrame/middleware.py | lzc978/common | d42d676ec1801cbccaaaf34c6caf9dcc8899931f | [
"MIT"
] | 2 | 2020-07-10T09:24:40.000Z | 2021-09-03T09:15:10.000Z | miniFrame/miniFrame/middleware.py | lzc978/common | d42d676ec1801cbccaaaf34c6caf9dcc8899931f | [
"MIT"
] | null | null | null | miniFrame/miniFrame/middleware.py | lzc978/common | d42d676ec1801cbccaaaf34c6caf9dcc8899931f | [
"MIT"
] | null | null | null | # coding:utf-8
"""
用来存放中间件的模块,中间建将用主要有两个,一个是是在构建请求体之前执行,另一个是在构建响应体之后执行
本框架的中间件将以类的形式,通过自定义类创建时指定的元类,实现父类自动注册继承与他的子类
"""
from miniFrame.utils import _MiniFrameMetaClass
class BaseMiddleWare(object, metaclass=_MiniFrameMetaClass):
def before_request(self, env):
"""
在构建请求体对象之前执行,返回的数据可以是 env字典 或者 r... | 23.136364 | 62 | 0.643418 | 98 | 1,018 | 6.510204 | 0.5 | 0.062696 | 0.065831 | 0.094044 | 0.200627 | 0.131661 | 0.131661 | 0.131661 | 0 | 0 | 0 | 0.001372 | 0.28389 | 1,018 | 43 | 63 | 23.674419 | 0.8738 | 0.468566 | 0 | 0.307692 | 0 | 0 | 0.02005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.307692 | 0.076923 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
aa5949cbb91296dc0923ad53af97056094112c8d | 539 | py | Python | core/context.py | wmww/instigate | bc4f77d2cc40a57a0757ca4f460d5a9bc8a076ae | [
"MIT"
] | null | null | null | core/context.py | wmww/instigate | bc4f77d2cc40a57a0757ca4f460d5a9bc8a076ae | [
"MIT"
] | null | null | null | core/context.py | wmww/instigate | bc4f77d2cc40a57a0757ca4f460d5a9bc8a076ae | [
"MIT"
] | null | null | null | from .text import TextCtx
from typing import Optional
class Info:
def __init__(self, text: TextCtx) -> None:
self.text = text
info_instance: Optional[Info] = None
def set_info(instance: Info) -> None:
global info_instance
info_instance = instance
def info() -> Info:
assert info_instance is ... | 23.434783 | 71 | 0.688312 | 75 | 539 | 4.76 | 0.453333 | 0.235294 | 0.061625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233766 | 539 | 22 | 72 | 24.5 | 0.864407 | 0.113173 | 0 | 0 | 0 | 0 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.266667 | false | 0 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
aa8526a209f4bda0b64cc4e8276aebdb169548a6 | 74 | py | Python | pool/player.py | qbeer/pool | ab60d184156c170461d8cf7677f7366928d09410 | [
"MIT"
] | null | null | null | pool/player.py | qbeer/pool | ab60d184156c170461d8cf7677f7366928d09410 | [
"MIT"
] | null | null | null | pool/player.py | qbeer/pool | ab60d184156c170461d8cf7677f7366928d09410 | [
"MIT"
] | 1 | 2020-12-29T13:25:44.000Z | 2020-12-29T13:25:44.000Z | from enum import Enum
class Player(Enum):
Player1 = 1
Player2 = 2 | 14.8 | 21 | 0.662162 | 11 | 74 | 4.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.27027 | 74 | 5 | 22 | 14.8 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aa8aa1949be2bac35e8d0fb40dc5725a9a107f00 | 10,193 | py | Python | tools/wcloud/wcloud/actions/wcloud_actions.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | 15 | 2015-03-12T12:15:41.000Z | 2021-12-20T17:53:24.000Z | tools/wcloud/wcloud/actions/wcloud_actions.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | 44 | 2015-01-07T09:22:05.000Z | 2017-01-31T22:44:21.000Z | tools/wcloud/wcloud/actions/wcloud_actions.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | 22 | 2015-01-13T13:55:48.000Z | 2021-12-16T17:07:00.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2012 onwards University of Deusto
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# This software consists of contributions made by many individuals,
# listed below:
#
# Auth... | 34.319865 | 127 | 0.702149 | 1,348 | 10,193 | 5.134273 | 0.264837 | 0.023407 | 0.026008 | 0.020806 | 0.222945 | 0.140009 | 0.125993 | 0.125993 | 0.125993 | 0.079902 | 0 | 0.004077 | 0.205828 | 10,193 | 296 | 128 | 34.435811 | 0.850896 | 0.14765 | 0 | 0.236111 | 0 | 0 | 0.091587 | 0.021147 | 0 | 0 | 0 | 0.010135 | 0 | 0 | null | null | 0.055556 | 0.118056 | null | null | 0.048611 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
aabc964a4692fc80c38a10e88550c99ed828cad3 | 9,508 | py | Python | test_agenda.py | dhillonsh/Project10 | 9aad97a71b0e93e0acef85dffdb74ca212b93f44 | [
"Artistic-2.0"
] | null | null | null | test_agenda.py | dhillonsh/Project10 | 9aad97a71b0e93e0acef85dffdb74ca212b93f44 | [
"Artistic-2.0"
] | null | null | null | test_agenda.py | dhillonsh/Project10 | 9aad97a71b0e93e0acef85dffdb74ca212b93f44 | [
"Artistic-2.0"
] | null | null | null | from agenda import *
#import arrow
def test_noEvents():
#8AM to 5PM on 1 day
singleDay = agenda("2016-11-17T00:00:00-08:00","2016-11-17T00:00:00-08:00","2016-11-17T08:00:00-08:00", "2016-11-17T17:00:00-08:00", [])
assert len(singleDay) == 1
assert arrow.get(singleDay[0]['start']).format('YYYY-MM-DD HH:mm') ==... | 70.955224 | 219 | 0.667648 | 1,624 | 9,508 | 3.905788 | 0.057266 | 0.109727 | 0.064323 | 0.068107 | 0.825319 | 0.699038 | 0.615639 | 0.604288 | 0.594041 | 0.585212 | 0 | 0.222093 | 0.094552 | 9,508 | 133 | 220 | 71.488722 | 0.514694 | 0.03639 | 0 | 0.037037 | 0 | 0 | 0.445586 | 0.185752 | 0 | 0 | 0 | 0 | 0.740741 | 1 | 0.046296 | false | 0 | 0.009259 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
aacedab37fc2f98aa44411ede7301d7af92d9215 | 218 | py | Python | app/commons/functions.py | handdola/ai-chatbot | f0a336afb873db10b7a5f068b4e1eaa07bf62967 | [
"MIT"
] | 3 | 2017-12-27T19:29:27.000Z | 2018-01-07T02:51:44.000Z | app/commons/functions.py | handdola/ai-chatbot | f0a336afb873db10b7a5f068b4e1eaa07bf62967 | [
"MIT"
] | 108 | 2018-03-26T05:44:22.000Z | 2020-12-14T15:08:38.000Z | app/commons/functions.py | handdola/ai-chatbot | f0a336afb873db10b7a5f068b4e1eaa07bf62967 | [
"MIT"
] | 1 | 2019-05-30T10:50:49.000Z | 2019-05-30T10:50:49.000Z | from datetime import datetime
import parsedatetime as pdt
def dateFromString(timeString):
cal = pdt.Calendar()
now = datetime.now()
result = str(cal.parseDT(timeString.strip(), now)[0])
return result
| 21.8 | 57 | 0.711009 | 27 | 218 | 5.740741 | 0.666667 | 0.180645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.183486 | 218 | 9 | 58 | 24.222222 | 0.865169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
2aa02a4244d1f2c3c094e41d353f0e4e4c1f7d35 | 1,843 | py | Python | src/backtracking/tests/test_vertex_coloring.py | seahrh/coding-interview | 517d19e7e88c02acec4aa6336bc20206ce3f1897 | [
"MIT"
] | null | null | null | src/backtracking/tests/test_vertex_coloring.py | seahrh/coding-interview | 517d19e7e88c02acec4aa6336bc20206ce3f1897 | [
"MIT"
] | null | null | null | src/backtracking/tests/test_vertex_coloring.py | seahrh/coding-interview | 517d19e7e88c02acec4aa6336bc20206ce3f1897 | [
"MIT"
] | null | null | null | from backtracking.vertex_coloring import *
class TestVertexColoring:
def test_when_graph_has_one_node(self):
assert vertex_coloring(graph=[[False]], m=1) == {(1,)}
def test_case_1(self):
assert vertex_coloring(graph=[[False, True], [True, False]], m=2) == {
(1, 2),
... | 29.725806 | 87 | 0.424851 | 198 | 1,843 | 3.813131 | 0.141414 | 0.233113 | 0.189404 | 0.254305 | 0.750993 | 0.692715 | 0.577483 | 0.468874 | 0.468874 | 0.468874 | 0 | 0.041549 | 0.425393 | 1,843 | 61 | 88 | 30.213115 | 0.671388 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.019231 | 0 | 0.192308 | 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 |
2aa8374ec652a1a733a7ed5e27977b12d2d8bdd5 | 120 | py | Python | Python Scripts/lesson_48_demo.py | jessequinn/udemy_python_complete | b97e657dea2a8680557949f01ac80d3230c82c41 | [
"MIT"
] | null | null | null | Python Scripts/lesson_48_demo.py | jessequinn/udemy_python_complete | b97e657dea2a8680557949f01ac80d3230c82c41 | [
"MIT"
] | null | null | null | Python Scripts/lesson_48_demo.py | jessequinn/udemy_python_complete | b97e657dea2a8680557949f01ac80d3230c82c41 | [
"MIT"
] | null | null | null | a = b = c = d = 12
print(c)
a, b = 12, 13
print(a, b)
a, b = b, a
print("a is {}".format(a))
print("b is {}".format(b)) | 15 | 26 | 0.491667 | 28 | 120 | 2.107143 | 0.321429 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.233333 | 120 | 8 | 27 | 15 | 0.576087 | 0 | 0 | 0 | 0 | 0 | 0.115702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 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 |
2ac346f2d4a5a1c9d3fe2bcbae900f9256ed8095 | 230 | py | Python | oeeBackend/quality_issues/serializer.py | yamenmarquez/oee_django | b192ecab930aac0922599b6a8fadf7e92350e5a7 | [
"MIT"
] | null | null | null | oeeBackend/quality_issues/serializer.py | yamenmarquez/oee_django | b192ecab930aac0922599b6a8fadf7e92350e5a7 | [
"MIT"
] | null | null | null | oeeBackend/quality_issues/serializer.py | yamenmarquez/oee_django | b192ecab930aac0922599b6a8fadf7e92350e5a7 | [
"MIT"
] | 1 | 2018-09-13T22:36:55.000Z | 2018-09-13T22:36:55.000Z | from rest_framework.serializers import ModelSerializer
from .models import QualityIssue
class QualityIssueSerializer(ModelSerializer):
class Meta:
model = QualityIssue
fields = ('pk', 'q_issue', 'rework_rate') | 32.857143 | 54 | 0.747826 | 23 | 230 | 7.347826 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 230 | 7 | 55 | 32.857143 | 0.889474 | 0 | 0 | 0 | 0 | 0 | 0.08658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 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 |
6309197bb434e3ee553b370d1d93a0a4c02ee3a2 | 778 | py | Python | azure/eventhub/__init__.py | konstantinmiller/azure-event-hubs-python | dbae1477ea49ec87b162fc52fb0a259a4b97ca96 | [
"MIT"
] | null | null | null | azure/eventhub/__init__.py | konstantinmiller/azure-event-hubs-python | dbae1477ea49ec87b162fc52fb0a259a4b97ca96 | [
"MIT"
] | null | null | null | azure/eventhub/__init__.py | konstantinmiller/azure-event-hubs-python | dbae1477ea49ec87b162fc52fb0a259a4b97ca96 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 38.9 | 94 | 0.582262 | 72 | 778 | 6.222222 | 0.694444 | 0.100446 | 0.189732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005926 | 0.132391 | 778 | 19 | 95 | 40.947368 | 0.657778 | 0.48072 | 0 | 0 | 0 | 0 | 0.012563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
6317fe02ff8fa981ebe44ded987c94135c814875 | 398 | py | Python | tests/examples/g_lists_and_tuples/tests_lists_and_tuples.py | acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-ChristianHamilton77 | ee6156890c5ca581fe1e18cec58f5bbd4010d088 | [
"MIT"
] | null | null | null | tests/examples/g_lists_and_tuples/tests_lists_and_tuples.py | acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-ChristianHamilton77 | ee6156890c5ca581fe1e18cec58f5bbd4010d088 | [
"MIT"
] | null | null | null | tests/examples/g_lists_and_tuples/tests_lists_and_tuples.py | acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-ChristianHamilton77 | ee6156890c5ca581fe1e18cec58f5bbd4010d088 | [
"MIT"
] | null | null | null | import unittest
from src.examples.g_lists_and_tuples.lists import test_config
from src.examples.g_lists_and_tuples.lists import find_item_in_list
class Test_Config(unittest.TestCase):
def test_configuration(self):
self.assertEqual(True, test_config())
def test_find_item(self):
list1 = ["c++",... | 30.615385 | 67 | 0.746231 | 58 | 398 | 4.810345 | 0.448276 | 0.107527 | 0.107527 | 0.114695 | 0.293907 | 0.293907 | 0.293907 | 0.293907 | 0.293907 | 0 | 0 | 0.005865 | 0.143216 | 398 | 12 | 68 | 33.166667 | 0.812317 | 0 | 0 | 0 | 0 | 0 | 0.037688 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2d62f439f1cf176214a7eccd870c1593d6dd6f0a | 121 | py | Python | TD/TD7/Code/Python/1.py | sumaxime/LIFAP1 | b5da0395de9775cd8b319b56af7a6d0257d542db | [
"MIT"
] | 1 | 2019-06-19T08:40:24.000Z | 2019-06-19T08:40:24.000Z | TD/TD7/Code/Python/1.py | sumaxime/LIFAP1 | b5da0395de9775cd8b319b56af7a6d0257d542db | [
"MIT"
] | 13 | 2016-11-15T16:44:23.000Z | 2016-12-16T09:42:48.000Z | TD/TD7/Code/Python/1.py | sumaxime/LIFAP1 | b5da0395de9775cd8b319b56af7a6d0257d542db | [
"MIT"
] | 1 | 2019-12-06T11:48:09.000Z | 2019-12-06T11:48:09.000Z | #!/usr/bin/python
# Déclarer et initialiser à 0 un tableau à 2 dimension
tab = [[0 for i in range(5)] for j in range(5)]
| 30.25 | 54 | 0.68595 | 25 | 121 | 3.32 | 0.76 | 0.168675 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 0.190083 | 121 | 3 | 55 | 40.333333 | 0.795918 | 0.570248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2d643a769c84c6cc8767e62978ce2092f1ddaa32 | 180 | py | Python | C_Tut/quizz/urls.py | jaydeep11/C-tutorial-web-application | 3ec0225efda834fe93a678d887044906124de59b | [
"MIT"
] | null | null | null | C_Tut/quizz/urls.py | jaydeep11/C-tutorial-web-application | 3ec0225efda834fe93a678d887044906124de59b | [
"MIT"
] | null | null | null | C_Tut/quizz/urls.py | jaydeep11/C-tutorial-web-application | 3ec0225efda834fe93a678d887044906124de59b | [
"MIT"
] | null | null | null | from django.urls import path
from .views import QuizTake
app_name='quizz'
urlpatterns=[
#quiz/3/
path('<int:tutorial_id>/',view=QuizTake.as_view(),name='quiz_question'),
] | 22.5 | 76 | 0.722222 | 26 | 180 | 4.846154 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.116667 | 180 | 8 | 77 | 22.5 | 0.786164 | 0.038889 | 0 | 0 | 0 | 0 | 0.208092 | 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 |
2d8304e94d6dde0734ec7acfda5cc1290ad0e41b | 98 | py | Python | Documents/Scripts/1.2 - Dia e Hora.py | ozumaru/CiscoDevNet---Python | 15acbea5e4f92c362434598d3b40e03211f01f14 | [
"MIT"
] | null | null | null | Documents/Scripts/1.2 - Dia e Hora.py | ozumaru/CiscoDevNet---Python | 15acbea5e4f92c362434598d3b40e03211f01f14 | [
"MIT"
] | null | null | null | Documents/Scripts/1.2 - Dia e Hora.py | ozumaru/CiscoDevNet---Python | 15acbea5e4f92c362434598d3b40e03211f01f14 | [
"MIT"
] | 1 | 2022-02-24T00:21:11.000Z | 2022-02-24T00:21:11.000Z | from datetime import datetime
agora = datetime.today().strftime('%d-%m-%Y_%Hh%Mm')
print(agora) | 19.6 | 52 | 0.714286 | 15 | 98 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 98 | 5 | 53 | 19.6 | 0.784091 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 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 |
2d84495349852fdee5706368f64d293e899519f7 | 2,355 | py | Python | home/models.py | Earth-Turtle/CS3240Fall-project | f98a462cb0665051f2a26b6f6ffd76b6a33d7b3e | [
"MIT"
] | null | null | null | home/models.py | Earth-Turtle/CS3240Fall-project | f98a462cb0665051f2a26b6f6ffd76b6a33d7b3e | [
"MIT"
] | null | null | null | home/models.py | Earth-Turtle/CS3240Fall-project | f98a462cb0665051f2a26b6f6ffd76b6a33d7b3e | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
# Category Model: For creating policy categories
class Category(models.Model):
title = models.CharField(max_length=255)
slug = models.SlugField(null=True)
def __str__(self):
return self.title... | 33.642857 | 102 | 0.729512 | 299 | 2,355 | 5.578595 | 0.307692 | 0.116906 | 0.140288 | 0.18705 | 0.396882 | 0.322542 | 0.208633 | 0.161871 | 0.06235 | 0.06235 | 0 | 0.01883 | 0.165605 | 2,355 | 69 | 103 | 34.130435 | 0.830025 | 0.151592 | 0 | 0.297872 | 0 | 0 | 0.004518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0 | 0.06383 | 0.12766 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2d97a6c4451cccd81391f5e8e6978d46fb758918 | 179 | py | Python | demo/examples/accounting/urls.py | sahama/django-material | 7d3b2d36de60cbc060ee80f6ad4746e89d22cd5c | [
"BSD-3-Clause"
] | null | null | null | demo/examples/accounting/urls.py | sahama/django-material | 7d3b2d36de60cbc060ee80f6ad4746e89d22cd5c | [
"BSD-3-Clause"
] | 1 | 2022-02-09T12:39:45.000Z | 2022-02-09T12:39:45.000Z | demo/examples/accounting/urls.py | sahama/django-material | 7d3b2d36de60cbc060ee80f6ad4746e89d22cd5c | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path
from django.views import generic
urlpatterns = [
path('', generic.TemplateView.as_view(template_name="accounting/index.html"), name="index"),
]
| 22.375 | 96 | 0.748603 | 23 | 179 | 5.73913 | 0.695652 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117318 | 179 | 7 | 97 | 25.571429 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0.145251 | 0.117318 | 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 |
2d9b62eff96128baadd19854264075e9cb717329 | 343 | py | Python | recursion/permutation_strings.py | neerajp99/algorithms | 1d6885d2a895821ac511fa8a46913d34db2511ca | [
"MIT"
] | 1 | 2021-06-17T07:59:42.000Z | 2021-06-17T07:59:42.000Z | recursion/permutation_strings.py | neerajp99/algorithms | 1d6885d2a895821ac511fa8a46913d34db2511ca | [
"MIT"
] | null | null | null | recursion/permutation_strings.py | neerajp99/algorithms | 1d6885d2a895821ac511fa8a46913d34db2511ca | [
"MIT"
] | 1 | 2022-01-13T08:42:31.000Z | 2022-01-13T08:42:31.000Z | # Creating all the permutation combinations of a given string
def gen_permutations(values, left, right = ""):
if len(left) == 0:
values.append(right)
else:
for i in range(len(left)):
gen_permutations(values, left[:i] + left[i+1:], right + left[i])
values = []
gen_permutations(values... | 31.181818 | 76 | 0.641399 | 47 | 343 | 4.617021 | 0.574468 | 0.207373 | 0.290323 | 0.230415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.218659 | 343 | 11 | 77 | 31.181818 | 0.802239 | 0.172012 | 0 | 0 | 0 | 0 | 0.014134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.111111 | 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 |
2db7006082782a3c89bb58872daf041e188457cd | 3,710 | py | Python | migrations/0017_profile.py | kensonman/webframe | 45b5be33bb0341ab9658a05d577f82f0dd922c7e | [
"Apache-2.0"
] | 1 | 2017-04-22T11:29:05.000Z | 2017-04-22T11:29:05.000Z | migrations/0017_profile.py | kensonman/webframe | 45b5be33bb0341ab9658a05d577f82f0dd922c7e | [
"Apache-2.0"
] | null | null | null | migrations/0017_profile.py | kensonman/webframe | 45b5be33bb0341ab9658a05d577f82f0dd922c7e | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-27 05:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import uuid
import webframe.CurrentUserMiddleware
import webframe.models
class Migration(migrations.Migration):
dependencies = [... | 82.444444 | 859 | 0.719946 | 429 | 3,710 | 6.109557 | 0.265734 | 0.208317 | 0.155666 | 0.160244 | 0.417779 | 0.337657 | 0.21404 | 0.199924 | 0.199924 | 0.18161 | 0 | 0.012749 | 0.133154 | 3,710 | 44 | 860 | 84.318182 | 0.802239 | 0.012129 | 0 | 0.052632 | 1 | 0 | 0.395577 | 0.359541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.184211 | 0 | 0.263158 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2db83926c6065578e1dc484612799ce9f2bc9f53 | 142 | py | Python | 02/0211/py.py | kkdg/python-jogging | 6dd076bd7e4e28b877770731081448f4dc4b26d0 | [
"Apache-2.0"
] | 2 | 2015-01-08T00:34:41.000Z | 2015-01-08T13:26:00.000Z | 02/0211/py.py | kkdg/python-jogging | 6dd076bd7e4e28b877770731081448f4dc4b26d0 | [
"Apache-2.0"
] | null | null | null | 02/0211/py.py | kkdg/python-jogging | 6dd076bd7e4e28b877770731081448f4dc4b26d0 | [
"Apache-2.0"
] | null | null | null |
words = ['cat', 'window', 'defense']
for w in words:
print w, len(w)
for w in words[:]:
if len(w) > 6:
words.insert(0, w)
| 12.909091 | 36 | 0.514085 | 24 | 142 | 3.041667 | 0.541667 | 0.109589 | 0.164384 | 0.30137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.295775 | 142 | 10 | 37 | 14.2 | 0.71 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2db854b6e7192df175c3094289ef1795cb9abaca | 254 | py | Python | Week1/exercise7.py | tb2010/pynet | bb206d7ff0d183f62ca8549b596011de6a28b3d4 | [
"MIT"
] | null | null | null | Week1/exercise7.py | tb2010/pynet | bb206d7ff0d183f62ca8549b596011de6a28b3d4 | [
"MIT"
] | null | null | null | Week1/exercise7.py | tb2010/pynet | bb206d7ff0d183f62ca8549b596011de6a28b3d4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Example 7 - read Yaml and JSON files and pretty print contents
import yaml
import json
from pprint import pprint
with open("my-list.yml") as f:
pprint(yaml.load(f))
with open("my-list.json") as f:
pprint(json.load(f))
| 18.142857 | 64 | 0.700787 | 45 | 254 | 3.955556 | 0.555556 | 0.089888 | 0.11236 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 0.177165 | 254 | 13 | 65 | 19.538462 | 0.84689 | 0.326772 | 0 | 0 | 0 | 0 | 0.136905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
2dc66a9a3f793b0039bdf8b5197563346552d562 | 138 | py | Python | PycharmProjects/pythonexercicios/aulas anteriores/ex014.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | PycharmProjects/pythonexercicios/aulas anteriores/ex014.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | PycharmProjects/pythonexercicios/aulas anteriores/ex014.py | zmixtv1/cev-Python | edce04f86d943d9af070bf3c5e89575ff796ec9e | [
"MIT"
] | null | null | null | cel = float(input('Qual a temperatura em °c:'))
fah = (cel * (9/5)+32)
print('a temperatura de {}°C corresponde a {}°F'.format(cel, fah))
| 34.5 | 66 | 0.630435 | 27 | 138 | 3.333333 | 0.666667 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.144928 | 138 | 3 | 67 | 46 | 0.70339 | 0 | 0 | 0 | 0 | 0 | 0.471014 | 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 |
2dd961327e0ac5bc39f1f36acb7fbc3a949cd6ad | 181 | py | Python | 07/number_10.py | lluxury/pcc_exercise | 947ca87aeb1d58a1c28eb26b851cc45fbbe3809e | [
"MIT"
] | null | null | null | 07/number_10.py | lluxury/pcc_exercise | 947ca87aeb1d58a1c28eb26b851cc45fbbe3809e | [
"MIT"
] | null | null | null | 07/number_10.py | lluxury/pcc_exercise | 947ca87aeb1d58a1c28eb26b851cc45fbbe3809e | [
"MIT"
] | null | null | null | number=input("Please input a number:\n")
if int(number) %10==0:
print("This number is an integer multiple of 10")
else:
print("This number is not an integer multiple of 10") | 36.2 | 57 | 0.701657 | 32 | 181 | 3.96875 | 0.5625 | 0.141732 | 0.23622 | 0.267717 | 0.330709 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04698 | 0.176796 | 181 | 5 | 57 | 36.2 | 0.805369 | 0 | 0 | 0 | 0 | 0 | 0.593407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
9305a6fa682f92ff3d016293e7a3020cb21406ef | 309 | py | Python | liveproject/liveproject/liveupdate/urls.py | xiaklizrum/python-web-development-with-django-book-examples | 0180e8b8dd33f42d60e9fbed516965f22d9ff529 | [
"MIT"
] | null | null | null | liveproject/liveproject/liveupdate/urls.py | xiaklizrum/python-web-development-with-django-book-examples | 0180e8b8dd33f42d60e9fbed516965f22d9ff529 | [
"MIT"
] | 9 | 2021-05-12T07:39:02.000Z | 2022-03-12T00:58:41.000Z | liveproject/liveproject/liveupdate/urls.py | xiaklizrum/python-web-development-with-django-book-examples | 0180e8b8dd33f42d60e9fbed516965f22d9ff529 | [
"MIT"
] | null | null | null | from django.urls import path
from django.views.generic import ListView
from liveproject.liveupdate.views import updates_after
from liveproject.liveupdate.models import Update
urlpatterns = [
path('', ListView.as_view(queryset=Update.objects.all())),
path('updates-after/<int:id>/', updates_after),
]
| 30.9 | 62 | 0.776699 | 40 | 309 | 5.925 | 0.55 | 0.151899 | 0.21097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106796 | 309 | 9 | 63 | 34.333333 | 0.858696 | 0 | 0 | 0 | 0 | 0 | 0.074434 | 0.074434 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
930fdf80e626cb93a2bda951834bc1cb5f4cf20f | 554 | py | Python | pyqtgraph/graphicsItems/ItemGroup.py | cycomanic/pyqtgraph | 108b115aa56c5fc8fd7a398f26e705b8f8717c0f | [
"MIT"
] | 5 | 2019-03-08T05:30:20.000Z | 2021-05-15T07:33:50.000Z | pyqtgraph/graphicsItems/ItemGroup.py | cycomanic/pyqtgraph | 108b115aa56c5fc8fd7a398f26e705b8f8717c0f | [
"MIT"
] | 1 | 2019-01-14T09:00:21.000Z | 2019-01-14T09:00:21.000Z | pyqtgraph/graphicsItems/ItemGroup.py | cycomanic/pyqtgraph | 108b115aa56c5fc8fd7a398f26e705b8f8717c0f | [
"MIT"
] | 1 | 2018-11-16T18:19:58.000Z | 2018-11-16T18:19:58.000Z | from pyqtgraph.Qt import QtGui, QtCore
from .GraphicsObject import GraphicsObject
__all__ = ['ItemGroup']
class ItemGroup(GraphicsObject):
"""
Replacement for QGraphicsItemGroup
"""
def __init__(self, *args):
GraphicsObject.__init__(self, *args)
if hasattr(self, "ItemHasNoContents"... | 23.083333 | 48 | 0.637184 | 52 | 554 | 6.557692 | 0.557692 | 0.070381 | 0.070381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263538 | 554 | 23 | 49 | 24.086957 | 0.835784 | 0.061372 | 0 | 0 | 0 | 0 | 0.05169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.071429 | 0.142857 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
9319d54cad32c9b6130a33eea4deffd2e5fba244 | 126 | py | Python | BDServer/httpGetRequest.py | Ermaolaoye233/Basic-Diet | 711c03ec55c40b2c8e47583ea5641ef590514bd6 | [
"MIT"
] | 1 | 2020-10-01T15:03:45.000Z | 2020-10-01T15:03:45.000Z | BDServer/httpGetRequest.py | Ermaolaoye233/Basic-Diet | 711c03ec55c40b2c8e47583ea5641ef590514bd6 | [
"MIT"
] | null | null | null | BDServer/httpGetRequest.py | Ermaolaoye233/Basic-Diet | 711c03ec55c40b2c8e47583ea5641ef590514bd6 | [
"MIT"
] | null | null | null | import requests
# Send get request
r = requests.get("http://127.0.0.1:5000/api/Food/description/10000000000")
print(r.text)
| 18 | 74 | 0.738095 | 21 | 126 | 4.428571 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 0.095238 | 126 | 6 | 75 | 21 | 0.631579 | 0.126984 | 0 | 0 | 0 | 0 | 0.5 | 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 |
9321f4163ba9acaba8625414d28e210ca84ddecf | 4,300 | py | Python | tests/test_eml_subset.py | PASTAplus/dex | d04fcf756b77856f4be0585dd7f5d38795751247 | [
"Apache-2.0"
] | 3 | 2021-11-22T05:47:02.000Z | 2021-11-30T20:40:13.000Z | tests/test_eml_subset.py | PASTAplus/dex | d04fcf756b77856f4be0585dd7f5d38795751247 | [
"Apache-2.0"
] | 40 | 2020-12-16T03:31:59.000Z | 2022-03-31T19:11:45.000Z | tests/test_eml_subset.py | PASTAplus/dex | d04fcf756b77856f4be0585dd7f5d38795751247 | [
"Apache-2.0"
] | 1 | 2020-04-21T01:23:25.000Z | 2020-04-21T01:23:25.000Z | import logging
import pathlib
import pprint
import random
import subprocess
import sys
import _pytest.pathlib
import lxml
import numpy as np
import pandas as pd
import pandas_profiling
import lxml.etree
import dex.eml_subset
import dex.main
import dex.util
log = logging.getLogger(__name__)
dex_path = _pytest.pathli... | 31.386861 | 118 | 0.671628 | 725 | 4,300 | 3.76 | 0.234483 | 0.228907 | 0.334556 | 0.434336 | 0.602715 | 0.545121 | 0.430301 | 0.408657 | 0.408657 | 0.396919 | 0 | 0.093256 | 0.162093 | 4,300 | 136 | 119 | 31.617647 | 0.663336 | 0.158372 | 0 | 0.212121 | 0 | 0.060606 | 0.266436 | 0.176086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.227273 | 0.015152 | 0.30303 | 0.060606 | 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 |
9332ec2a5b2b352a512f2a25b6607e251ab32dee | 581 | py | Python | autoelective/rule.py | lhydave/PKUAutoElective | c18ad77abc948f81656905728b529ad5c145873a | [
"MIT"
] | 566 | 2019-02-19T01:38:43.000Z | 2022-03-26T17:40:30.000Z | autoelective/rule.py | Theia-4869/PKUElective2022Spring | 7c4c1f1afcf366c028ddc10bd1543f1677664770 | [
"MIT"
] | 71 | 2019-09-09T05:56:01.000Z | 2022-03-11T23:40:47.000Z | autoelective/rule.py | Theia-4869/PKUElective2022Spring | 7c4c1f1afcf366c028ddc10bd1543f1677664770 | [
"MIT"
] | 290 | 2019-02-19T01:38:46.000Z | 2022-03-20T15:58:19.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# filename: rule.py
# modified: 2020-02-20
class Mutex(object):
__slots__ = ["_cids",]
def __init__(self, cids):
self._cids = cids
@property
def cids(self):
return self._cids
class Delay(object):
__slots__ = ["_cid","_threshold"]
... | 16.6 | 39 | 0.592083 | 67 | 581 | 4.761194 | 0.432836 | 0.075235 | 0.131661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026442 | 0.283993 | 581 | 34 | 40 | 17.088235 | 0.740385 | 0.141136 | 0 | 0.157895 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.263158 | false | 0 | 0 | 0.157895 | 0.631579 | 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 |
9377cff486dadfa7e3e62013c2163910456a4d7d | 159 | py | Python | 14partialfunction.py | zuosc/PythonCode | 3592f5780fc9e335fa880a1f7e9aac0e9d33439e | [
"MIT"
] | 1 | 2017-09-24T19:06:55.000Z | 2017-09-24T19:06:55.000Z | 14partialfunction.py | zuosc/PythonCode | 3592f5780fc9e335fa880a1f7e9aac0e9d33439e | [
"MIT"
] | null | null | null | 14partialfunction.py | zuosc/PythonCode | 3592f5780fc9e335fa880a1f7e9aac0e9d33439e | [
"MIT"
] | null | null | null | # _*_ coding:utf8 _*_
# Power by zuosc 2016-10-16
# Partial Function 偏函数
import functools
int2 = functools.partial(int, base=2)
print(int2('101001010101'))
| 15.9 | 37 | 0.72956 | 22 | 159 | 5.090909 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0.144654 | 159 | 9 | 38 | 17.666667 | 0.647059 | 0.415094 | 0 | 0 | 0 | 0 | 0.136364 | 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 |
fa88610f0051ee195c653f47bcced3f651efef32 | 592 | py | Python | cluster_tools/utils/function_utils.py | constantinpape/cluster_tools | a7e88545b58f8315723bc47583916e1900a7892d | [
"MIT"
] | 28 | 2018-12-09T22:11:52.000Z | 2022-02-01T16:48:23.000Z | cluster_tools/utils/function_utils.py | constantinpape/cluster_tools | a7e88545b58f8315723bc47583916e1900a7892d | [
"MIT"
] | 16 | 2019-01-27T10:59:33.000Z | 2022-01-11T09:09:24.000Z | cluster_tools/utils/function_utils.py | constantinpape/cluster_tools | a7e88545b58f8315723bc47583916e1900a7892d | [
"MIT"
] | 11 | 2018-12-09T22:11:56.000Z | 2021-08-08T20:10:13.000Z | from datetime import datetime
from subprocess import check_output
# TODO log-levels
# stdout is always piped to file, sowe can use it as logging
def log(msg):
print("%s: %s" % (str(datetime.now()), msg))
def log_block_success(block_id):
print("%s: processed block %i" % (str(datetime.now()), block_id))
def... | 25.73913 | 75 | 0.668919 | 95 | 592 | 4.021053 | 0.505263 | 0.04712 | 0.109948 | 0.089005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002028 | 0.16723 | 592 | 22 | 76 | 26.909091 | 0.772819 | 0.199324 | 0 | 0 | 0 | 0 | 0.121277 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.363636 | false | 0 | 0.181818 | 0 | 0.636364 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fa9b9308a06155a70e6c372a306668467b9c24be | 1,464 | py | Python | src/bxutils/ssl/ssl_serializer.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 12 | 2019-11-06T17:39:10.000Z | 2022-03-01T11:26:19.000Z | src/bxutils/ssl/ssl_serializer.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 8 | 2019-11-06T21:31:11.000Z | 2021-06-02T00:46:50.000Z | src/bxutils/ssl/ssl_serializer.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 5 | 2019-11-14T18:08:11.000Z | 2022-02-08T09:36:22.000Z | from typing import Union
from cryptography import x509
from cryptography.hazmat import backends
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKeyWithSerialization
from cryptography.hazmat.primitives.serialization import Encoding, P... | 36.6 | 108 | 0.794399 | 171 | 1,464 | 6.654971 | 0.263158 | 0.084359 | 0.077329 | 0.084359 | 0.129174 | 0.061511 | 0.061511 | 0.061511 | 0 | 0 | 0 | 0.016858 | 0.108607 | 1,464 | 39 | 109 | 37.538462 | 0.855172 | 0 | 0 | 0 | 0 | 0 | 0.013661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.291667 | 0.25 | 0.916667 | 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 |
fab6abc7cdadc83fd85725c04378e84132f66616 | 296 | py | Python | howto_custom_datagenerator.py | makermotion/tensorflowhowto | 1c908ed57bba1abfe3dc3de446ea3782cc7d2527 | [
"MIT"
] | null | null | null | howto_custom_datagenerator.py | makermotion/tensorflowhowto | 1c908ed57bba1abfe3dc3de446ea3782cc7d2527 | [
"MIT"
] | null | null | null | howto_custom_datagenerator.py | makermotion/tensorflowhowto | 1c908ed57bba1abfe3dc3de446ea3782cc7d2527 | [
"MIT"
] | null | null | null | import tensorflow as tf
# this custom data generator example is made for image data
class CustomDataGenerator(tf.keras.utils.Sequence):
def __init__(self, batch_size):
self.batch_size = batch_size
def __getitem__(self):
pass
def __len__(self):
pass
| 18.5 | 59 | 0.679054 | 38 | 296 | 4.894737 | 0.684211 | 0.145161 | 0.139785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256757 | 296 | 15 | 60 | 19.733333 | 0.845455 | 0.192568 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.25 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
facf603db7181f5e60a2bad92007270dde01069a | 5,292 | py | Python | api/vm/urls.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 97 | 2016-11-15T14:44:23.000Z | 2022-03-13T18:09:15.000Z | api/vm/urls.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 334 | 2016-11-17T19:56:57.000Z | 2022-03-18T10:45:53.000Z | api/vm/urls.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 33 | 2017-01-02T16:04:13.000Z | 2022-02-07T19:20:24.000Z | from django.conf.urls import patterns, url, include
from django.conf import settings
urlpatterns = patterns(
'api.vm.views',
# other
# /vm/<hostname_or_uuid>/screenshot - get, create
url(r'^(?P<hostname_or_uuid>[A-Za-z0-9\._-]+)/screenshot/$',
'vm_screenshot', name='api_vm_screenshot'),
#... | 44.470588 | 100 | 0.614135 | 792 | 5,292 | 3.786616 | 0.083333 | 0.143381 | 0.200734 | 0.058019 | 0.686896 | 0.534512 | 0.316439 | 0.303768 | 0.303768 | 0.303768 | 0 | 0.01355 | 0.163265 | 5,292 | 118 | 101 | 44.847458 | 0.663731 | 0.257559 | 0 | 0.060606 | 0 | 0.151515 | 0.610026 | 0.433933 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
faeca0ba20df2941fb68b1389490ccd8ef29f88f | 635 | py | Python | speedian/annotations.py | TAG-Epic/speedcord-command-handler | 1b4104554d52dfa603ee7eb690131248c22c34b9 | [
"MIT"
] | 2 | 2021-02-08T08:26:29.000Z | 2021-02-08T16:50:35.000Z | speedian/annotations.py | TAG-Epic/speedcord-command-handler | 1b4104554d52dfa603ee7eb690131248c22c34b9 | [
"MIT"
] | 1 | 2021-05-28T06:53:14.000Z | 2021-05-28T13:50:49.000Z | speedian/annotations.py | TAG-Epic/speedcord-command-handler | 1b4104554d52dfa603ee7eb690131248c22c34b9 | [
"MIT"
] | 1 | 2021-05-28T06:46:44.000Z | 2021-05-28T06:46:44.000Z | """
Created by Epic at 12/31/20
"""
from .types import Command, Option
def addmod(mod, mod_type):
def inner(func):
mods = getattr(func, mod_type, [])
mods.append(mod)
setattr(func, mod_type, mods)
return func
return inner
def command(*args, **kwargs):
def inner(func):
... | 22.678571 | 112 | 0.648819 | 79 | 635 | 5.151899 | 0.443038 | 0.051597 | 0.058968 | 0.07371 | 0.152334 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018256 | 0.223622 | 635 | 27 | 113 | 23.518519 | 0.807302 | 0.04252 | 0 | 0.25 | 0 | 0 | 0.021667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0.125 | 0.6875 | 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 |
faeec26aefe1b268f677d7a44fa78c2ad7785791 | 356 | py | Python | test_problem12.py | lunatunez/eular_python | 496ad7a66501dea15e0d84493412dc3d9d71c68f | [
"MIT"
] | null | null | null | test_problem12.py | lunatunez/eular_python | 496ad7a66501dea15e0d84493412dc3d9d71c68f | [
"MIT"
] | null | null | null | test_problem12.py | lunatunez/eular_python | 496ad7a66501dea15e0d84493412dc3d9d71c68f | [
"MIT"
] | null | null | null | import problem12
def test_trianglenum_call1_returns1():
gen = problem12.triangles()
assert next(gen) == 1
def test_trianglenum_call2_returns3():
gen = problem12.triangles()
next(gen)
assert next(gen) == 3
def test_trianglenum_call3_returns6():
gen = problem12.triangles()
next(gen)
... | 17.8 | 38 | 0.682584 | 44 | 356 | 5.318182 | 0.409091 | 0.179487 | 0.230769 | 0.213675 | 0.380342 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060284 | 0.207865 | 356 | 19 | 39 | 18.736842 | 0.769504 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
faef90ad42ffc8cdbb5077c2ed3eadfeef4e616a | 1,004 | py | Python | datar/all.py | stjordanis/datar | 4e2b5db026ad35918954576badef9951928c0cb1 | [
"MIT"
] | 110 | 2021-03-09T04:10:40.000Z | 2022-03-13T10:28:20.000Z | datar/all.py | sthagen/datar | 1218a549e2f0547c7b5a824ca6d9adf1bf96ba46 | [
"MIT"
] | 54 | 2021-06-20T18:53:44.000Z | 2022-03-29T22:13:07.000Z | datar/all.py | sthagen/datar | 1218a549e2f0547c7b5a824ca6d9adf1bf96ba46 | [
"MIT"
] | 11 | 2021-06-18T03:03:14.000Z | 2022-02-25T11:48:26.000Z | """Import all constants, verbs and functions"""
from . import f
from .base import _no_warn as _ # don't override from datar.all import _no_warn
from .base import _builtin_names as _base_builtin_names
from .base import *
from .base import _warn as _
from .datar import *
from .dplyr import _no_warn as _
from .dplyr impo... | 29.529412 | 80 | 0.768924 | 148 | 1,004 | 4.797297 | 0.304054 | 0.253521 | 0.078873 | 0.039437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160359 | 1,004 | 33 | 81 | 30.424242 | 0.84223 | 0.201195 | 0 | 0 | 0 | 0 | 0.001263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
faefa257d14da219fd8331a9752628d4f0a4f800 | 861 | py | Python | h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_insert_mssing_values.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_insert_mssing_values.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_insert_mssing_values.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from random import randrange
from h2o.frame import H2OFrame
from h2o.utils.typechecks import assert_is_type
import numpy as np
import random
def h2o_H2OFrame_insert_missing_values():
"""
P... | 31.888889 | 105 | 0.767712 | 124 | 861 | 5.096774 | 0.419355 | 0.110759 | 0.166139 | 0.213608 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046419 | 0.124274 | 861 | 26 | 106 | 33.115385 | 0.791777 | 0.095238 | 0 | 0 | 0 | 0 | 0.090433 | 0.047182 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.055556 | false | 0 | 0.5 | 0 | 0.555556 | 0.055556 | 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 |
4f008510b862583ff2f1485dd25ae88d27c59863 | 250 | py | Python | alanmanderson-python/Managers/healerManager.py | alanmanderson/bc18-scaffold | 4b345f1178e989dd15f078c9f30ebf16d6a2d157 | [
"MIT"
] | null | null | null | alanmanderson-python/Managers/healerManager.py | alanmanderson/bc18-scaffold | 4b345f1178e989dd15f078c9f30ebf16d6a2d157 | [
"MIT"
] | null | null | null | alanmanderson-python/Managers/healerManager.py | alanmanderson/bc18-scaffold | 4b345f1178e989dd15f078c9f30ebf16d6a2d157 | [
"MIT"
] | null | null | null | import battlecode as bc
from Managers.robotManager import RobotManager
class HealerManager(RobotManager):
def __init__(self, controller):
self.controller = controller
def handle(self, unit):
self.buildOrAttack(unit)
self.move(unit)
| 22.727273 | 46 | 0.764 | 29 | 250 | 6.448276 | 0.586207 | 0.149733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156 | 250 | 10 | 47 | 25 | 0.886256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4f0978acc00c797294b7f784caa36cc72f2c90e8 | 734 | py | Python | migrations/versions/0352_set_valid_uk_phone_number_and_toggle_2fa_mode_to_email.py | TechforgoodCAST/notifications-api | 242d2f67ff3a3febbc41cdf6da1e18e14512c0ce | [
"MIT"
] | null | null | null | migrations/versions/0352_set_valid_uk_phone_number_and_toggle_2fa_mode_to_email.py | TechforgoodCAST/notifications-api | 242d2f67ff3a3febbc41cdf6da1e18e14512c0ce | [
"MIT"
] | 3 | 2021-02-18T10:57:01.000Z | 2021-02-26T06:29:24.000Z | migrations/versions/0352_set_valid_uk_phone_number_and_toggle_2fa_mode_to_email.py | bitzesty/notifications-api | 3e8d02792d19931e0cb5881feb2630b545a1140d | [
"MIT"
] | null | null | null | """
Revision ID: 65fa84b9271b
Revises: 428551b7cf6f
Create Date: 2021-03-10 13:17:24.647527
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
revision = '65fa84b9271b'
down_revision = '428551b7cf6f'
def upgrade():
op.execute("update users set mobile_number = '+447123... | 30.583333 | 116 | 0.747956 | 98 | 734 | 5.530612 | 0.459184 | 0.066421 | 0.110701 | 0.147601 | 0.546125 | 0.546125 | 0.546125 | 0.416974 | 0.258303 | 0.258303 | 0 | 0.269592 | 0.13079 | 734 | 23 | 117 | 31.913043 | 0.579937 | 0.118529 | 0 | 0 | 0 | 0.363636 | 0.627943 | 0.238619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87a37a45c97b5ed221b6c5ea1485a4914fc3b2bf | 781 | py | Python | tests/test_rabbitmq_connection_data.py | johnsmith400/bunny-storm | 2bec24bc475dc84ff83f8415de4a836a9356c949 | [
"MIT"
] | 16 | 2021-09-15T07:08:14.000Z | 2022-01-24T15:25:29.000Z | tests/test_rabbitmq_connection_data.py | johnsmith400/bunny-storm | 2bec24bc475dc84ff83f8415de4a836a9356c949 | [
"MIT"
] | 1 | 2021-11-28T06:52:59.000Z | 2021-11-28T18:39:22.000Z | tests/test_rabbitmq_connection_data.py | johnsmith400/bunny-storm | 2bec24bc475dc84ff83f8415de4a836a9356c949 | [
"MIT"
] | 4 | 2021-09-14T13:47:34.000Z | 2022-03-23T19:36:32.000Z | from bunny_storm import RabbitMQConnectionData
def test_connection_data_creation() -> None:
# Arrange
expected_user = "user"
expected_pass = "pass"
expected_host = "8.8.8.8"
default_port = 5672
default_vhost = "/"
expected_uri = f"amqp://{expected_user}:{expected_pass}@{expected_host}:{de... | 32.541667 | 112 | 0.742638 | 92 | 781 | 5.967391 | 0.315217 | 0.204007 | 0.218579 | 0.080146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012289 | 0.166453 | 781 | 23 | 113 | 33.956522 | 0.831029 | 0.023047 | 0 | 0 | 0 | 0 | 0.113307 | 0.092227 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.066667 | false | 0.266667 | 0.066667 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
87b664c4149da6d4f5a5cd9664392e9bb3d393ea | 235 | py | Python | setup.py | rom1mouret/cheatmeal | b73ff30f49c84076fe35a3f45b4a385d73ba0681 | [
"Apache-2.0"
] | 1 | 2018-08-28T06:02:37.000Z | 2018-08-28T06:02:37.000Z | setup.py | rom1mouret/cheatmeal | b73ff30f49c84076fe35a3f45b4a385d73ba0681 | [
"Apache-2.0"
] | null | null | null | setup.py | rom1mouret/cheatmeal | b73ff30f49c84076fe35a3f45b4a385d73ba0681 | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
setup(
name = 'cheatmeal',
packages = ['cheatmeal'],
version = '0.1.0',
description = 'improvements over conventional autoencoders',
author='Romain Mouret mouret.romain@gmail.com'
)
| 26.111111 | 64 | 0.689362 | 26 | 235 | 6.230769 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.187234 | 235 | 8 | 65 | 29.375 | 0.832461 | 0 | 0 | 0 | 0 | 0 | 0.438298 | 0.097872 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87b71c87ad706d9e4bd401362cd032947e5f4c38 | 482 | py | Python | spotty/deployment/abstract_cloud_instance/abstract_bucket_manager.py | greglira/spotty | 0b5073621ba8e19be75b6f9701e6c9971b6d17fb | [
"MIT"
] | 246 | 2018-09-03T09:09:48.000Z | 2020-07-18T21:07:15.000Z | spotty/deployment/abstract_cloud_instance/abstract_bucket_manager.py | greglira/spotty | 0b5073621ba8e19be75b6f9701e6c9971b6d17fb | [
"MIT"
] | 42 | 2018-10-09T19:41:56.000Z | 2020-06-15T22:55:58.000Z | spotty/deployment/abstract_cloud_instance/abstract_bucket_manager.py | greglira/spotty | 0b5073621ba8e19be75b6f9701e6c9971b6d17fb | [
"MIT"
] | 27 | 2018-10-09T22:16:40.000Z | 2020-06-08T22:26:00.000Z | from abc import ABC
from spotty.deployment.abstract_cloud_instance.resources.abstract_bucket import AbstractBucket
class AbstractBucketManager(ABC):
def __init__(self, project_name: str):
self._project_name = project_name
@property
def project_name(self) -> str:
return self._project_name... | 25.368421 | 94 | 0.740664 | 53 | 482 | 6.433962 | 0.471698 | 0.16129 | 0.131965 | 0.170088 | 0.281525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195021 | 482 | 18 | 95 | 26.777778 | 0.878866 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
87d40f15c5667ceae3ffa9917c4c291ea4c0914a | 3,606 | py | Python | gd/memory/data.py | nekitdev/gd.py | b9d5e29c09f953f54b9b648fb677e987d9a8e103 | [
"MIT"
] | 58 | 2020-09-30T16:51:22.000Z | 2022-02-13T17:27:48.000Z | gd/memory/data.py | NeKitDS/gd.py | b9d5e29c09f953f54b9b648fb677e987d9a8e103 | [
"MIT"
] | 30 | 2019-07-29T12:03:41.000Z | 2020-09-15T17:01:37.000Z | gd/memory/data.py | NeKitDS/gd.py | b9d5e29c09f953f54b9b648fb677e987d9a8e103 | [
"MIT"
] | 20 | 2019-12-06T03:16:57.000Z | 2020-09-16T17:45:27.000Z | from struct import calcsize as get_size, pack, unpack
from gd.enums import ByteOrder
from gd.memory.utils import bits, class_property
from gd.typing import TYPE_CHECKING, Any, Dict, Generic, Tuple, Type, TypeVar, Union, cast
if TYPE_CHECKING:
from gd.memory.state import BaseState
__all__ = ("Data",)
T = TypeVar... | 24.364865 | 96 | 0.612035 | 458 | 3,606 | 4.59607 | 0.150655 | 0.062708 | 0.038005 | 0.045606 | 0.257482 | 0.122565 | 0.100713 | 0.074109 | 0.074109 | 0.074109 | 0 | 0.001517 | 0.268719 | 3,606 | 147 | 97 | 24.530612 | 0.796739 | 0.010538 | 0 | 0.160377 | 0 | 0 | 0.02862 | 0.010943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235849 | false | 0 | 0.04717 | 0.160377 | 0.603774 | 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 |
87d6df447acfc4a484c7e127e0ef3c05a615fcd2 | 55 | py | Python | Workshop_Coding/src/_solutions/time_series_analysis_050.py | chrisbilliard/python | 462aeb5230bc34a66c87079f2ec0e216e1c9074c | [
"MIT"
] | 2 | 2018-04-23T11:01:29.000Z | 2018-04-25T12:51:06.000Z | Workshop_Coding/src/_solutions/time_series_analysis_050.py | chrisbilliard/python | 462aeb5230bc34a66c87079f2ec0e216e1c9074c | [
"MIT"
] | null | null | null | Workshop_Coding/src/_solutions/time_series_analysis_050.py | chrisbilliard/python | 462aeb5230bc34a66c87079f2ec0e216e1c9074c | [
"MIT"
] | 1 | 2018-10-21T19:59:50.000Z | 2018-10-21T19:59:50.000Z | ## Solution Challenge 5
data_monthly.anomaly.describe() | 27.5 | 31 | 0.818182 | 7 | 55 | 6.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.072727 | 55 | 2 | 31 | 27.5 | 0.843137 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87eacbb20b9be4a9ced74b05f5cb61c8a193c639 | 109 | py | Python | path_manager/files/output_file.py | sweetcolor/internet_market_scraper | f7eb8c9ade2c0a956ba5d5b7e6173010c85afed6 | [
"MIT"
] | null | null | null | path_manager/files/output_file.py | sweetcolor/internet_market_scraper | f7eb8c9ade2c0a956ba5d5b7e6173010c85afed6 | [
"MIT"
] | null | null | null | path_manager/files/output_file.py | sweetcolor/internet_market_scraper | f7eb8c9ade2c0a956ba5d5b7e6173010c85afed6 | [
"MIT"
] | null | null | null | import abc
class OutputFile(abc.ABC):
def __init__(self, extension: str):
self.ext = extension
| 15.571429 | 39 | 0.669725 | 14 | 109 | 4.928571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229358 | 109 | 6 | 40 | 18.166667 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3559da080e6f9845547191841d305f700f2a7294 | 141 | py | Python | Assignments/convert_temperature_celcius_in_farenheit.py | siddharth-143/Python | 293f4643a3a13e3b82d23fd8922db54dbb0f12bc | [
"MIT"
] | null | null | null | Assignments/convert_temperature_celcius_in_farenheit.py | siddharth-143/Python | 293f4643a3a13e3b82d23fd8922db54dbb0f12bc | [
"MIT"
] | null | null | null | Assignments/convert_temperature_celcius_in_farenheit.py | siddharth-143/Python | 293f4643a3a13e3b82d23fd8922db54dbb0f12bc | [
"MIT"
] | null | null | null | celsius = int(input("Enter the temperature in celcius : "))
farenheit = (celsius * 1.8) + 32
print("Temperature in farenhit is : ",farenheit) | 47 | 59 | 0.70922 | 19 | 141 | 5.263158 | 0.789474 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.148936 | 141 | 3 | 60 | 47 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.450704 | 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 |
3562458fe0be3e8bf40cb80e65446997d6927b23 | 246 | py | Python | Message/Parameters/Humidity.py | BateauNautilus/drivesimulator | 290382f9c196a0daeca7a45a9abb792d1a035c8c | [
"MIT"
] | 1 | 2015-10-08T04:03:58.000Z | 2015-10-08T04:03:58.000Z | Message/Parameters/Humidity.py | BateauNautilus/drivesimulator | 290382f9c196a0daeca7a45a9abb792d1a035c8c | [
"MIT"
] | null | null | null | Message/Parameters/Humidity.py | BateauNautilus/drivesimulator | 290382f9c196a0daeca7a45a9abb792d1a035c8c | [
"MIT"
] | null | null | null | from Message.Parameters.Parameter import Parameter, ParameterType
class Humidity(Parameter):
def __init__(self, humidity=0.0):
super(Humidity, self).__init__(value=humidity, length=2, type=ParameterType.IEEEFloat, resolution=0.01)
| 30.75 | 111 | 0.768293 | 30 | 246 | 6.033333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.121951 | 246 | 7 | 112 | 35.142857 | 0.810185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3568d96f6cc5a9e4c49ee6c2445ba2de8754f6ca | 3,860 | py | Python | task/classifyapp/template_vars.py | Marvinmw/ncc2 | 01d662d6cf219ca3e359a880aa66d365d12d2817 | [
"BSD-3-Clause"
] | 161 | 2018-06-24T04:35:08.000Z | 2022-03-29T20:19:52.000Z | task/classifyapp/template_vars.py | LIANGKE23/ncc | 6eb87486a42708d730da212d42d52a0c4690cd5e | [
"BSD-3-Clause"
] | 28 | 2018-12-24T01:08:53.000Z | 2022-03-03T08:19:32.000Z | task/classifyapp/template_vars.py | LIANGKE23/ncc | 6eb87486a42708d730da212d42d52a0c4690cd5e | [
"BSD-3-Clause"
] | 58 | 2018-06-24T04:35:03.000Z | 2021-11-02T21:34:49.000Z | # NCC: Neural Code Comprehension
# https://github.com/spcl/ncc
# Copyright 2018 ETH Zurich
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
# 1. Redistributions of source code must retain the above... | 33.565217 | 120 | 0.693782 | 488 | 3,860 | 5.260246 | 0.395492 | 0.038956 | 0.021426 | 0.037008 | 0.252435 | 0.211921 | 0.178029 | 0.142968 | 0.087261 | 0.087261 | 0 | 0.007744 | 0.19715 | 3,860 | 115 | 121 | 33.565217 | 0.820587 | 0.422021 | 0 | 0.380952 | 0 | 0 | 0.053061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.063492 | 0.15873 | 0.698413 | 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 |
357512822742b7f43f6d03e2dd893ed2b8d36c95 | 182 | py | Python | tasks/__init__.py | martiert/aiosparkapi | 19d7856482ee96ef6e19557f1d7a1f6b99e8dc62 | [
"MIT"
] | null | null | null | tasks/__init__.py | martiert/aiosparkapi | 19d7856482ee96ef6e19557f1d7a1f6b99e8dc62 | [
"MIT"
] | null | null | null | tasks/__init__.py | martiert/aiosparkapi | 19d7856482ee96ef6e19557f1d7a1f6b99e8dc62 | [
"MIT"
] | null | null | null | import os
from invoke import Collection
from . import test
while not os.path.isdir('tasks'):
os.chdir('..')
ns = Collection()
ns.add_collection(Collection.from_module(test))
| 15.166667 | 47 | 0.725275 | 26 | 182 | 5 | 0.576923 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 182 | 11 | 48 | 16.545455 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
358432417dbee3f3dac33c2d8fdcd8ef8e8b1a9b | 161 | py | Python | lectures/code/mr_reducer.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 4 | 2015-08-10T17:46:55.000Z | 2020-04-18T21:09:03.000Z | lectures/code/mr_reducer.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | null | null | null | lectures/code/mr_reducer.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 2 | 2019-04-24T03:31:02.000Z | 2019-05-13T07:36:06.000Z | def reducer(key, values):
# key is a word string
# values is a list of 1's corresponding
# to a mapper finding that word
yield key, sum(values) | 32.2 | 43 | 0.658385 | 27 | 161 | 3.925926 | 0.703704 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.273292 | 161 | 5 | 44 | 32.2 | 0.897436 | 0.559006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3590da38d91641e796aa9031bbd81dcb87d2efc8 | 2,882 | py | Python | genanki/apkg_schema.py | gzzo/genanki | 6ceffc1b707ad67efa2adf4534d143a142487df8 | [
"MIT"
] | 1,010 | 2017-02-14T09:44:26.000Z | 2022-03-30T13:51:46.000Z | genanki/apkg_schema.py | gzzo/genanki | 6ceffc1b707ad67efa2adf4534d143a142487df8 | [
"MIT"
] | 96 | 2017-02-14T09:29:45.000Z | 2022-03-15T13:38:43.000Z | genanki/apkg_schema.py | gzzo/genanki | 6ceffc1b707ad67efa2adf4534d143a142487df8 | [
"MIT"
] | 115 | 2017-03-31T20:23:55.000Z | 2022-03-24T13:14:16.000Z | APKG_SCHEMA = '''
CREATE TABLE col (
id integer primary key,
crt integer not null,
mod integer not null,
scm integer not null,
ver integer not null,
dty integer not null,
usn integer not null,
ls ... | 38.945946 | 55 | 0.45628 | 320 | 2,882 | 4.0625 | 0.234375 | 0.269231 | 0.430769 | 0.065385 | 0.169231 | 0.106154 | 0.106154 | 0.058462 | 0 | 0 | 0 | 0.024918 | 0.470854 | 2,882 | 73 | 56 | 39.479452 | 0.827541 | 0 | 0 | 0.191781 | 0 | 0 | 0.992713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
359289186f8915ecbbaf96d7016346388c5d7152 | 198 | py | Python | Flask/wsgi.py | JhonatasMenezes/Projetos_Python | f1989a8cb1c428fdae98da770f8db149b8b8587d | [
"MIT"
] | 3 | 2021-07-15T22:58:00.000Z | 2022-02-18T17:42:00.000Z | Flask/wsgi.py | JhonatasMenezes/Projetos_Python | f1989a8cb1c428fdae98da770f8db149b8b8587d | [
"MIT"
] | 1 | 2021-10-01T17:52:49.000Z | 2021-10-01T17:52:49.000Z | Flask/wsgi.py | JhonatasMenezes/Projetos_Python | f1989a8cb1c428fdae98da770f8db149b8b8587d | [
"MIT"
] | null | null | null | def application(environ, start_response):
body = b'Hello World!\n'
status = '200 OK'
headers = [('Content-type', 'text/plain')]
start_response(status, headers)
return [body]
| 28.285714 | 46 | 0.636364 | 24 | 198 | 5.166667 | 0.791667 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.217172 | 198 | 7 | 47 | 28.285714 | 0.780645 | 0 | 0 | 0 | 0 | 0 | 0.211055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
359e85be8a2d61be475f1ea8a969ab9f67efbf95 | 5,600 | py | Python | tests/import_helpers/test_import_record.py | ahonnecke/mypy_boto3_builder | 38b002d62ceae5488a6d963aadec9157d3c807da | [
"MIT"
] | 258 | 2020-01-24T09:49:05.000Z | 2022-03-31T14:58:30.000Z | tests/import_helpers/test_import_record.py | ahonnecke/mypy_boto3_builder | 38b002d62ceae5488a6d963aadec9157d3c807da | [
"MIT"
] | 131 | 2020-02-12T16:03:36.000Z | 2022-03-31T18:24:29.000Z | tests/import_helpers/test_import_record.py | ahonnecke/mypy_boto3_builder | 38b002d62ceae5488a6d963aadec9157d3c807da | [
"MIT"
] | 21 | 2020-06-05T12:48:17.000Z | 2022-02-13T06:07:54.000Z | from unittest.mock import MagicMock, patch
import pytest
from mypy_boto3_builder.import_helpers.import_record import ImportRecord
from mypy_boto3_builder.import_helpers.import_string import ImportString
class TestImportRecord:
def test_str(self) -> None:
source_mock = MagicMock()
source_mock.__s... | 52.830189 | 100 | 0.692679 | 609 | 5,600 | 6.1133 | 0.10509 | 0.135375 | 0.118184 | 0.097771 | 0.733817 | 0.60462 | 0.442117 | 0.22079 | 0.162235 | 0.097233 | 0 | 0.003278 | 0.182857 | 5,600 | 105 | 101 | 53.333333 | 0.810315 | 0 | 0 | 0.098901 | 0 | 0 | 0.105 | 0.010714 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.120879 | false | 0 | 0.736264 | 0 | 0.868132 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
35b00dd9c7926dc1875fe9a5e4154f04fc49496c | 115 | py | Python | test.py | xushizhe1997/homework | ea6504448d94af8698b273a60e6e41f4f821c969 | [
"Apache-2.0"
] | null | null | null | test.py | xushizhe1997/homework | ea6504448d94af8698b273a60e6e41f4f821c969 | [
"Apache-2.0"
] | null | null | null | test.py | xushizhe1997/homework | ea6504448d94af8698b273a60e6e41f4f821c969 | [
"Apache-2.0"
] | null | null | null | # _*_coding:utf8-
for i in range(10):
print(i)
break
if 0:
print('hahah')
else:
print(';lalalal')
| 11.5 | 21 | 0.565217 | 17 | 115 | 3.705882 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.26087 | 115 | 9 | 22 | 12.777778 | 0.694118 | 0.130435 | 0 | 0 | 0 | 0 | 0.132653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
35cbf66a7fd75feebeff4cd2b599cf27ec8c14cf | 324 | py | Python | SAGA/__init__.py | sagasurvey/saga | 341eb9984ff12668aa498f81d99d13fc1a4691c8 | [
"MIT"
] | 2 | 2017-08-25T22:25:38.000Z | 2020-12-29T18:58:51.000Z | SAGA/__init__.py | sagasurvey/saga | 341eb9984ff12668aa498f81d99d13fc1a4691c8 | [
"MIT"
] | 18 | 2017-08-27T04:51:33.000Z | 2022-03-04T15:28:50.000Z | SAGA/__init__.py | sagasurvey/saga | 341eb9984ff12668aa498f81d99d13fc1a4691c8 | [
"MIT"
] | 2 | 2017-08-26T22:42:55.000Z | 2018-06-17T13:28:07.000Z | """
This is the top directory of the SAGA package
"""
from . import _warning_control
from .database import Database
from .hosts import FieldCatalog, HostCatalog, HostCuts
from .objects import ObjectCatalog, ObjectCuts
from .quickstart import QuickStart
from .targets import TargetSelection
from .version import __versio... | 27 | 54 | 0.817901 | 40 | 324 | 6.475 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132716 | 324 | 11 | 55 | 29.454545 | 0.921708 | 0.138889 | 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 |
35e6054f087399e47ced07cbfa014c8dc90517d2 | 71 | py | Python | src/lib/tabnanny.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 10 | 2015-11-13T17:02:40.000Z | 2021-02-09T23:21:05.000Z | src/lib/tabnanny.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 43 | 2015-06-03T17:59:23.000Z | 2021-09-17T10:45:21.000Z | src/lib/tabnanny.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 13 | 2017-07-02T03:16:46.000Z | 2021-07-05T14:53:56.000Z | raise NotImplementedError("tabnanny is not yet implemented in Skulpt")
| 35.5 | 70 | 0.830986 | 9 | 71 | 6.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 71 | 1 | 71 | 71 | 0.936508 | 0 | 0 | 0 | 0 | 0 | 0.577465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
35e7809c0f3e66e8d5a5a6479665aeb3e4fe8894 | 2,926 | py | Python | app/models.py | WaruiAlfred/bloggers-site | d451a3e13ab1514d9b060bc5c609961ff341af22 | [
"MIT"
] | null | null | null | app/models.py | WaruiAlfred/bloggers-site | d451a3e13ab1514d9b060bc5c609961ff341af22 | [
"MIT"
] | null | null | null | app/models.py | WaruiAlfred/bloggers-site | d451a3e13ab1514d9b060bc5c609961ff341af22 | [
"MIT"
] | null | null | null | from sqlalchemy.orm import backref
from . import db
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
# User mode... | 30.164948 | 77 | 0.708817 | 403 | 2,926 | 4.980149 | 0.25062 | 0.071749 | 0.089686 | 0.071749 | 0.348281 | 0.275037 | 0.275037 | 0.21425 | 0.14848 | 0.14848 | 0 | 0.005724 | 0.164046 | 2,926 | 97 | 77 | 30.164948 | 0.8148 | 0.095352 | 0 | 0.230769 | 1 | 0 | 0.08448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169231 | false | 0.138462 | 0.092308 | 0.076923 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ea3c5c458aad654d0f404c008f1778b188a7f71c | 610 | py | Python | ppq/quantization/quantizer/__init__.py | ZhangZhiPku/ppq | a994334bf086bccd1d1c188654a8bd95416148bc | [
"Apache-2.0"
] | null | null | null | ppq/quantization/quantizer/__init__.py | ZhangZhiPku/ppq | a994334bf086bccd1d1c188654a8bd95416148bc | [
"Apache-2.0"
] | null | null | null | ppq/quantization/quantizer/__init__.py | ZhangZhiPku/ppq | a994334bf086bccd1d1c188654a8bd95416148bc | [
"Apache-2.0"
] | null | null | null | from .AcademicQuantizer import (ACADEMIC_INT4_Quantizer,
ACADEMIC_Mix_Quantizer, ACADEMICQuantizer)
from .base import BaseQuantizer
from .DSPQuantizer import PPL_DSP_Quantizer
from .MetaxQuantizer import MetaxChannelwiseQuantizer, MetaxTensorwiseQuantizer
from .MyQuantizer import ExtQuan... | 50.833333 | 79 | 0.803279 | 53 | 610 | 9.037736 | 0.54717 | 0.05428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003929 | 0.165574 | 610 | 11 | 80 | 55.454545 | 0.937132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.818182 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ea453d00679f71a81c2082bd83d241f1fa6b55b2 | 2,612 | py | Python | test/common/test_mapping.py | thatch/BitSwanPump | 98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f | [
"BSD-3-Clause"
] | 17 | 2019-02-14T09:26:03.000Z | 2022-03-11T09:23:52.000Z | test/common/test_mapping.py | thatch/BitSwanPump | 98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f | [
"BSD-3-Clause"
] | 91 | 2019-05-06T18:59:02.000Z | 2022-01-11T06:22:32.000Z | test/common/test_mapping.py | thatch/BitSwanPump | 98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f | [
"BSD-3-Clause"
] | 10 | 2019-04-23T08:48:58.000Z | 2022-02-13T14:24:28.000Z | from unittest.mock import MagicMock
import bspump.unittest
import bspump.common
class TestMappingKeysProcessor(bspump.unittest.ProcessorTestCase):
def test_mapping_keys_processor(self):
events = [
(None, {'foo': 'bar'}),
(None, {'fizz': 'buzz'}),
(None, {'spam': 'eggs'}),
]
self.set_up_processor(bs... | 19.787879 | 68 | 0.645865 | 275 | 2,612 | 6.025455 | 0.170909 | 0.028968 | 0.112251 | 0.123114 | 0.785757 | 0.785757 | 0.785757 | 0.604707 | 0.604707 | 0.604707 | 0 | 0 | 0.173813 | 2,612 | 131 | 69 | 19.938931 | 0.767841 | 0 | 0 | 0.516129 | 0 | 0 | 0.084259 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.064516 | false | 0 | 0.032258 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea52e2320d22544bf3984e1be2c964b0b789e983 | 252 | py | Python | lightsteem/broadcast/utils.py | emre/lightsteem | 0fc29a517c20d881cbdbb15b43add4bcf3af242e | [
"MIT"
] | 25 | 2018-08-02T05:57:51.000Z | 2020-04-09T02:38:49.000Z | lightsteem/broadcast/utils.py | emre/lightsteem | 0fc29a517c20d881cbdbb15b43add4bcf3af242e | [
"MIT"
] | 16 | 2018-08-02T18:19:01.000Z | 2018-10-11T20:29:18.000Z | lighthive/broadcast/utils.py | emre/lighthive | 4cc637c710c32d321bf5434d0ba41e0643db0d85 | [
"MIT"
] | 5 | 2020-03-22T23:53:23.000Z | 2022-01-03T10:01:27.000Z | from builtins import bytes
def compat_bytes(item, encoding=None):
if hasattr(item, '__bytes__'):
return item.__bytes__()
else:
if encoding:
return bytes(item, encoding)
else:
return bytes(item)
| 21 | 40 | 0.599206 | 28 | 252 | 5.071429 | 0.464286 | 0.190141 | 0.239437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313492 | 252 | 11 | 41 | 22.909091 | 0.820809 | 0 | 0 | 0.222222 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ea722a87eabd0d28dba45610f7c0c6c7d69f638e | 741 | py | Python | tool/connection_string_popup.py | ianagbip1oti/file-to-db-tool | c41b6e891795ed51cf77d2daaabcb7198fdea204 | [
"MIT"
] | 7 | 2018-07-22T04:45:44.000Z | 2020-04-09T13:31:17.000Z | tool/connection_string_popup.py | ianagbip1oti/file-to-db-tool | c41b6e891795ed51cf77d2daaabcb7198fdea204 | [
"MIT"
] | 14 | 2018-07-22T06:29:38.000Z | 2019-02-26T09:04:15.000Z | tool/connection_string_popup.py | ianagbip1oti/file-to-db-tool | c41b6e891795ed51cf77d2daaabcb7198fdea204 | [
"MIT"
] | 1 | 2019-02-26T09:18:41.000Z | 2019-02-26T09:18:41.000Z | from tkinter import *
from tkinter.simpledialog import Dialog
from tool.settings import Settings
class ConnectionStringPopup(Dialog):
def body(self, master):
Label(master=master,
text='Connection String:',
font=Settings.font_small) \
.grid(row=0, sticky='W',
padx=Settings.padding_x,
pady=... | 27.444444 | 56 | 0.728745 | 92 | 741 | 5.543478 | 0.434783 | 0.219608 | 0.235294 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.174089 | 741 | 26 | 57 | 28.5 | 0.828431 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.35 | 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 |
ea903df2639fddca2fa3cf29f71c5aae5a83d8ed | 4,078 | py | Python | xinaprocessor/helper.py | xina-ai/xinaprocessor | 6dbb5ede3ee12bad0a32ed8fcce32d65d0cc4c40 | [
"MIT"
] | 1 | 2022-02-23T07:28:24.000Z | 2022-02-23T07:28:24.000Z | xinaprocessor/helper.py | xina-ai/xinaprocessor | 6dbb5ede3ee12bad0a32ed8fcce32d65d0cc4c40 | [
"MIT"
] | null | null | null | xinaprocessor/helper.py | xina-ai/xinaprocessor | 6dbb5ede3ee12bad0a32ed8fcce32d65d0cc4c40 | [
"MIT"
] | 1 | 2021-06-18T14:34:40.000Z | 2021-06-18T14:34:40.000Z | from typing import List
from xinaprocessor.constants import *
import re
import emoji
import random
from collections import Counter
def replace_list(list_chars, text, replace_with=""):
chars = "".join(list_chars)
return re.sub(f"[{chars}]", replace_with, text)
def remove_extra_spaces(text: str, keep_spaces=1... | 31.369231 | 105 | 0.664541 | 620 | 4,078 | 4.212903 | 0.233871 | 0.056279 | 0.046325 | 0.037519 | 0.243109 | 0.195253 | 0.160796 | 0.137825 | 0.08193 | 0.08193 | 0 | 0.008057 | 0.178274 | 4,078 | 130 | 106 | 31.369231 | 0.771412 | 0.094654 | 0 | 0.126582 | 0 | 0 | 0.096227 | 0.009568 | 0 | 0 | 0 | 0 | 0.050633 | 1 | 0.316456 | false | 0 | 0.075949 | 0.177215 | 0.696203 | 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 |
ea9b24bbf3afc0b40bbc58aad216783fb6fa2293 | 107 | py | Python | edapack/__init__.py | EDAPack/edapack | 2611e5fd8ce915e512c193cec7a7aea04579658d | [
"Apache-2.0"
] | 9 | 2018-12-27T19:04:05.000Z | 2021-05-01T16:33:25.000Z | edapack/__init__.py | EDAPack/edapack | 2611e5fd8ce915e512c193cec7a7aea04579658d | [
"Apache-2.0"
] | 2 | 2019-01-14T06:34:55.000Z | 2020-02-06T09:25:44.000Z | edapack/__init__.py | EDAPack/edapack | 2611e5fd8ce915e512c193cec7a7aea04579658d | [
"Apache-2.0"
] | 4 | 2019-08-23T12:31:33.000Z | 2021-03-19T13:27:27.000Z |
try:
from edapack.version import version as __version__
except ImportError:
__version__ = "unknown"
| 13.375 | 52 | 0.766355 | 12 | 107 | 6.166667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17757 | 107 | 7 | 53 | 15.285714 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 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 |
576d5a05de9113f3b42115e832bfcfc38aba7ec2 | 290 | py | Python | 074.py | reiyw/nlp100 | d664e30a7e75de1730a672f705b4d76548c45bb8 | [
"MIT"
] | null | null | null | 074.py | reiyw/nlp100 | d664e30a7e75de1730a672f705b4d76548c45bb8 | [
"MIT"
] | null | null | null | 074.py | reiyw/nlp100 | d664e30a7e75de1730a672f705b4d76548c45bb8 | [
"MIT"
] | null | null | null | # % cat 074.sh
# #!/usr/bin/env bash
#
# ./snowball_stemmer.py <(./rm_stopwords.py <(ruby -ane 'puts $F.select {|w| w =~ /^[a-z\-]{3,}$|\+1|-1/}.join(" ")' <(echo $1)) stopwords.txt) | sed 's/^/_ /' | classias-tag -m sentiment5.model -w
# % ./074.sh 'that was an awful movie'
# -1:-1.10032
| 41.428571 | 197 | 0.562069 | 48 | 290 | 3.333333 | 0.791667 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072581 | 0.144828 | 290 | 6 | 198 | 48.333333 | 0.572581 | 0.951724 | 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 |
57761b0cb9aef10aeef3bc23cddb387dd92e77eb | 21,574 | py | Python | out.py | prince21298/Basic-python | 59964a3200310a089b31c5a46526fcd7db7ad288 | [
"MIT"
] | 3 | 2019-03-12T04:05:36.000Z | 2020-08-13T07:06:31.000Z | out.py | prince21298/Basic-python | 59964a3200310a089b31c5a46526fcd7db7ad288 | [
"MIT"
] | null | null | null | out.py | prince21298/Basic-python | 59964a3200310a089b31c5a46526fcd7db7ad288 | [
"MIT"
] | null | null | null |
#radom function to print 5 even randomly
# import random
# i=0
# while i<5:
# a=random.randint(1,20)
# if a%2==0:
# print a
# i=i+1
# import random
# list1=[1,2,3,4,5,6,7,8,9,10]
# a=random.choice(list1)
# print a
#radom function to print 5 even randomly
# import random
# list1=[1,2,3,4,5,6,7,8,9,10]
# i... | 22.426195 | 175 | 0.483869 | 3,329 | 21,574 | 3.128567 | 0.085611 | 0.079213 | 0.100816 | 0.032261 | 0.7012 | 0.67614 | 0.655305 | 0.648488 | 0.637926 | 0.627748 | 0 | 0.07726 | 0.206267 | 21,574 | 961 | 176 | 22.449532 | 0.530951 | 0.917679 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 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 |
579b5f9863fab1da1228fe2aaa3eb580567f182b | 6,103 | py | Python | src/parser.py | strellic/PulseLang | 72730ec4c2967f004e9bf19dcd7bbef097824973 | [
"MIT"
] | 1 | 2020-09-24T05:57:25.000Z | 2020-09-24T05:57:25.000Z | src/parser.py | strellic/PulseLang | 72730ec4c2967f004e9bf19dcd7bbef097824973 | [
"MIT"
] | null | null | null | src/parser.py | strellic/PulseLang | 72730ec4c2967f004e9bf19dcd7bbef097824973 | [
"MIT"
] | null | null | null | # Pulse parser
from sly import Parser
from error import error
from lexer import PulseLexer
from ast import *
class PulseParser(Parser):
tokens = PulseLexer.tokens
precedence = (
('left', 'AND', 'NOT'),
('nonassoc', 'LT', 'LE', 'GT', 'GE', 'EQ', 'NE'),
('left', 'PLUS', 'MINUS'),
... | 26.419913 | 89 | 0.615435 | 736 | 6,103 | 4.976902 | 0.173913 | 0.06006 | 0.12012 | 0.052416 | 0.389571 | 0.233688 | 0.166257 | 0.085176 | 0.067158 | 0.067158 | 0 | 0.003056 | 0.249386 | 6,103 | 230 | 90 | 26.534783 | 0.796551 | 0.001966 | 0 | 0.242938 | 0 | 0 | 0.202004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259887 | false | 0 | 0.028249 | 0.225989 | 0.553672 | 0.022599 | 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 |
579bb51ad5a47e80e822e6f66d9147dacd22ad28 | 410 | py | Python | booking/tests/factories/__init__.py | gafderks/dbase | 4089cf220740afd7fcc0ae68fcd6185829a60eae | [
"Apache-2.0"
] | null | null | null | booking/tests/factories/__init__.py | gafderks/dbase | 4089cf220740afd7fcc0ae68fcd6185829a60eae | [
"Apache-2.0"
] | 281 | 2020-04-03T15:22:46.000Z | 2022-03-31T20:53:28.000Z | booking/tests/factories/__init__.py | gafderks/dbase | 4089cf220740afd7fcc0ae68fcd6185829a60eae | [
"Apache-2.0"
] | null | null | null | from .event import EventFactory
from .rate_class import RateClassFactory
from .material import MaterialFactory
from .location import LocationFactory
from .category import CategoryFactory
from .material_alias import MaterialAliasFactory
from .material_attachment import MaterialAttachmentFactory
from .material_image impo... | 37.272727 | 58 | 0.878049 | 44 | 410 | 8.090909 | 0.522727 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 410 | 10 | 59 | 41 | 0.962162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
57b6ea5445beb3f0b4162cbb0e9ef1f99fd2fca5 | 488 | py | Python | 3_kivi.py | arcyfelix/GUI-with-Kivy | 65910bb8159fa64b51157e23f9d1018aa5ec1131 | [
"Apache-2.0"
] | null | null | null | 3_kivi.py | arcyfelix/GUI-with-Kivy | 65910bb8159fa64b51157e23f9d1018aa5ec1131 | [
"Apache-2.0"
] | null | null | null | 3_kivi.py | arcyfelix/GUI-with-Kivy | 65910bb8159fa64b51157e23f9d1018aa5ec1131 | [
"Apache-2.0"
] | null | null | null | from kivy.app import App
#kivy.require("1.8.0")
from kivy.uix.label import Label
from kivy.uix.widget import Widget
from kivy.lang import Builder
#from kivy.lang import Builder
#Builder.load_file('simple_kv_script3.kv')
Builder.load_string("
")
# All the graphical data for the widget is stored in file 3_kivi.kv
cla... | 19.52 | 67 | 0.729508 | 77 | 488 | 4.402597 | 0.519481 | 0.117994 | 0.132743 | 0.106195 | 0.147493 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017199 | 0.165984 | 488 | 25 | 68 | 19.52 | 0.815725 | 0.321721 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.076923 | 0.307692 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
57bcd4074f4dc5521d33d22e3712728c83df1137 | 400 | py | Python | catch/datasets/human_polyomavirus_3.py | broadinstitute/catch | 2fedca15f921116f580de8b2ae7ac9972932e59e | [
"MIT"
] | 58 | 2018-01-24T16:31:37.000Z | 2022-02-25T07:46:35.000Z | catch/datasets/human_polyomavirus_3.py | broadinstitute/catch | 2fedca15f921116f580de8b2ae7ac9972932e59e | [
"MIT"
] | 29 | 2018-04-17T17:36:06.000Z | 2022-02-25T11:48:58.000Z | catch/datasets/human_polyomavirus_3.py | broadinstitute/catch | 2fedca15f921116f580de8b2ae7ac9972932e59e | [
"MIT"
] | 16 | 2018-05-23T12:19:41.000Z | 2021-08-09T04:16:00.000Z | """Dataset with 'Human polyomavirus 3' sequences.
A dataset with 11 'Human polyomavirus 3' genomes.
THIS PYTHON FILE WAS GENERATED BY A COMPUTER PROGRAM! DO NOT EDIT!
"""
import sys
from catch.datasets import GenomesDatasetSingleChrom
ds = GenomesDatasetSingleChrom(__name__, __file__, __spec__)
ds.add_fasta_path(... | 25 | 70 | 0.7925 | 54 | 400 | 5.5 | 0.685185 | 0.171717 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014245 | 0.1225 | 400 | 15 | 71 | 26.666667 | 0.831909 | 0.4125 | 0 | 0 | 1 | 0 | 0.149123 | 0.149123 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
57d415b05403e425526a649ee5c4d6958112af4d | 1,086 | py | Python | demo/migrations/0002_record.py | faustineinsun/taxi-info | 683a1eacfc18c3e6f5a74245c798634929c959b5 | [
"MIT"
] | null | null | null | demo/migrations/0002_record.py | faustineinsun/taxi-info | 683a1eacfc18c3e6f5a74245c798634929c959b5 | [
"MIT"
] | null | null | null | demo/migrations/0002_record.py | faustineinsun/taxi-info | 683a1eacfc18c3e6f5a74245c798634929c959b5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('demo', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Record',
fields=[
... | 36.2 | 114 | 0.59116 | 105 | 1,086 | 5.857143 | 0.466667 | 0.219512 | 0.263415 | 0.35122 | 0.473171 | 0.430894 | 0 | 0 | 0 | 0 | 0 | 0.029077 | 0.271639 | 1,086 | 29 | 115 | 37.448276 | 0.74842 | 0.019337 | 0 | 0 | 0 | 0 | 0.151458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.043478 | 0.086957 | 0 | 0.217391 | 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 |
57dbcbbf137b25120727144349486e2f7d73177e | 556 | py | Python | ivpgan/molnet/__init__.py | bbrighttaer/ivpgan | 3d2bf479b7445c5bf00f74b03cc4cde07a4ce27e | [
"MIT"
] | 6 | 2019-12-04T16:44:56.000Z | 2021-09-09T01:48:21.000Z | ivpgan/molnet/__init__.py | bbrighttaer/ivpgan | 3d2bf479b7445c5bf00f74b03cc4cde07a4ce27e | [
"MIT"
] | null | null | null | ivpgan/molnet/__init__.py | bbrighttaer/ivpgan | 3d2bf479b7445c5bf00f74b03cc4cde07a4ce27e | [
"MIT"
] | 4 | 2019-12-06T09:00:25.000Z | 2020-10-10T00:51:42.000Z | from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from .load_function.davis_dataset import load_davis
from .load_function.kiba_dataset import load_kiba
from .load_function.kinase_datasets import load_kinases
from .load_function.metz_dataset import load_metz
f... | 42.769231 | 71 | 0.890288 | 84 | 556 | 5.369048 | 0.238095 | 0.141907 | 0.283814 | 0.159645 | 0.115299 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007828 | 0.080935 | 556 | 12 | 72 | 46.333333 | 0.874755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.090909 | 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 |
57e18ba8a02e66f8c6b25381e98e4e4144e42477 | 6,165 | py | Python | src/genie/libs/parser/iosxe/tests/ShowInterfacesMtu/cli/equal/golden_output3_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowInterfacesMtu/cli/equal/golden_output3_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowInterfacesMtu/cli/equal/golden_output3_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | expected_output = {
"interfaces":{
"FortyGigabitEthernet1/0/1":{
"mtu":1500
},
"FortyGigabitEthernet1/0/2":{
"mtu":1500
},
"FortyGigabitEthernet1/0/3":{
"mtu":1500
},
"FortyGigabitEthernet1/0/4":{
"mtu":1500
},
"FortyGigabitEth... | 20.827703 | 37 | 0.443958 | 492 | 6,165 | 5.554878 | 0.132114 | 0.248445 | 0.327845 | 0.339554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198113 | 0.381022 | 6,165 | 296 | 38 | 20.827703 | 0.518082 | 0 | 0 | 0.327703 | 0 | 0 | 0.409828 | 0.266948 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57e82fe9c7516c6485f5de8907a0ae5ed8c40b59 | 989 | py | Python | tests/test_path_loop.py | cprogrammer1994/python-bezier | 964df4dcfab05e63d4c97c6f37cfbef80fe155fd | [
"MIT"
] | null | null | null | tests/test_path_loop.py | cprogrammer1994/python-bezier | 964df4dcfab05e63d4c97c6f37cfbef80fe155fd | [
"MIT"
] | null | null | null | tests/test_path_loop.py | cprogrammer1994/python-bezier | 964df4dcfab05e63d4c97c6f37cfbef80fe155fd | [
"MIT"
] | null | null | null | import numpy as np
import pytest
import bezier
def test_last_point_loop():
a_pos, a_dir = (0.0, 0.0, 0.0), (0.0, 1.414, 0.0)
b_pos, b_dir = (1.0, 0.0, 0.0), (0.0, -1.414, 0.0)
pt1 = bezier.path([(a_pos, a_dir), (b_pos, b_dir)], 0.0, loop=True)
np.testing.assert_almost_equal(pt1, a_pos)
pt2 = be... | 28.257143 | 72 | 0.623862 | 204 | 989 | 2.720588 | 0.166667 | 0.115315 | 0.118919 | 0.12973 | 0.796396 | 0.796396 | 0.785586 | 0.724324 | 0.484685 | 0.484685 | 0 | 0.093481 | 0.177958 | 989 | 34 | 73 | 29.088235 | 0.589176 | 0 | 0 | 0.285714 | 0 | 0 | 0.008089 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57f35f4a2cbec828354a13ece16e13fc2863e8cc | 67 | py | Python | src/pypidev/__init__.py | bassaer/pypidev | 392c07353425b7c3de2cde707775a698e1181909 | [
"Apache-2.0"
] | null | null | null | src/pypidev/__init__.py | bassaer/pypidev | 392c07353425b7c3de2cde707775a698e1181909 | [
"Apache-2.0"
] | null | null | null | src/pypidev/__init__.py | bassaer/pypidev | 392c07353425b7c3de2cde707775a698e1181909 | [
"Apache-2.0"
] | null | null | null | from .core import Hello
__all__ = ['Hello']
__version__ = "1.0.1"
| 13.4 | 23 | 0.671642 | 10 | 67 | 3.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.164179 | 67 | 4 | 24 | 16.75 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 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 |
17da4c2839e039dea268ead99ef98966edf67465 | 226 | py | Python | Tests/test_local_sensitivity.py | ayush9pandey/sbmlReduce | 0612bbb1def5c1aa5f8d3ca125998d0fefa46e53 | [
"BSD-3-Clause"
] | 3 | 2020-08-10T20:21:07.000Z | 2021-09-21T19:47:41.000Z | Tests/test_local_sensitivity.py | ayush9pandey/sbmlReduce | 0612bbb1def5c1aa5f8d3ca125998d0fefa46e53 | [
"BSD-3-Clause"
] | 13 | 2020-10-14T21:46:17.000Z | 2021-09-20T22:18:32.000Z | Tests/test_local_sensitivity.py | ayush9pandey/AutoReduce | 0612bbb1def5c1aa5f8d3ca125998d0fefa46e53 | [
"BSD-3-Clause"
] | 1 | 2020-07-21T23:19:47.000Z | 2020-07-21T23:19:47.000Z |
# Copyright (c) 2020, Build-A-Cell. All rights reserved.
# See LICENSE file in the project root directory for details.
from unittest import TestCase
from unittest.mock import mock_open, patch
import libsbml
import warnings | 28.25 | 62 | 0.792035 | 34 | 226 | 5.235294 | 0.823529 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020942 | 0.154867 | 226 | 8 | 63 | 28.25 | 0.910995 | 0.50885 | 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 |
17f56c85bfa70004bae26dc9fd170482b39fb238 | 1,408 | py | Python | optimus/outliers/template_outlier_class.py | atwoodjw/Optimus | 938463cec41a6683d2077c9afc7d6ba05c3b993f | [
"Apache-2.0"
] | null | null | null | optimus/outliers/template_outlier_class.py | atwoodjw/Optimus | 938463cec41a6683d2077c9afc7d6ba05c3b993f | [
"Apache-2.0"
] | null | null | null | optimus/outliers/template_outlier_class.py | atwoodjw/Optimus | 938463cec41a6683d2077c9afc7d6ba05c3b993f | [
"Apache-2.0"
] | null | null | null | # TODO: We shold implement this has and interface
class TemplateOutlierClass:
"""
This is a template class to expand the outliers methods
Also you need to add the function to outliers.py
"""
def __init__(self, df, columns, any_param):
"""
:param df:
:param columns:
... | 21.014925 | 62 | 0.541903 | 163 | 1,408 | 4.619632 | 0.306748 | 0.087649 | 0.051793 | 0.037185 | 0.371846 | 0.371846 | 0.302789 | 0.302789 | 0.302789 | 0.169987 | 0 | 0 | 0.377841 | 1,408 | 66 | 63 | 21.333333 | 0.859589 | 0.446023 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.352941 | false | 0 | 0 | 0 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
17f5d8a2e5d3d4f024cf4e97a8759e4bd91b02e2 | 1,028 | py | Python | pandas-exercises.py | SoyStillGood/pandas-homework | d4d147c535cca5880b8be29b55652ace2468c9b5 | [
"MIT"
] | null | null | null | pandas-exercises.py | SoyStillGood/pandas-homework | d4d147c535cca5880b8be29b55652ace2468c9b5 | [
"MIT"
] | null | null | null | pandas-exercises.py | SoyStillGood/pandas-homework | d4d147c535cca5880b8be29b55652ace2468c9b5 | [
"MIT"
] | null | null | null | import argparse
import pandas as pd
def main():
parser = argparse.ArgumentParser()
parser.add_argument("-f", "--file", dest="file", help="input data file")
args = parser.parse_args()
file = args.file
insurance = pd.read_csv(filepath_or_buffer=file, header=0)
insurance_df = pd.DataFrame(data=i... | 31.151515 | 76 | 0.67607 | 131 | 1,028 | 5.061069 | 0.427481 | 0.282051 | 0.313725 | 0.104072 | 0.3273 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0.031927 | 0.146887 | 1,028 | 33 | 77 | 31.151515 | 0.724059 | 0.062257 | 0 | 0 | 0 | 0 | 0.133956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.136364 | 0.5 | 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 |
aa0078261845ac47e4624f8ead9ca05ce109d4ce | 700 | py | Python | configexample.py | HeroGamers/WatchDog | 701aa5e319d8611d3b110ea3d1f9e52c575ef413 | [
"MIT"
] | null | null | null | configexample.py | HeroGamers/WatchDog | 701aa5e319d8611d3b110ea3d1f9e52c575ef413 | [
"MIT"
] | null | null | null | configexample.py | HeroGamers/WatchDog | 701aa5e319d8611d3b110ea3d1f9e52c575ef413 | [
"MIT"
] | null | null | null | import os
os.environ["prefix"] = "COMMAND PREFIX HERE"
os.environ["token"] = "TOKEN HERE"
os.environ["botlog"] = "CHANNEL ID FOR LOGS"
os.environ["banlistguild"] = "GUILD ID FOR GUILD TO SYNC BANS FROM/TO"
os.environ["appealguild"] = "GUILD ID FOR GUILD WHERE BAN APPEALS ARE MADE"
os.environ["debugEnabled"] = "True O... | 36.842105 | 75 | 0.717143 | 103 | 700 | 4.834951 | 0.456311 | 0.23494 | 0.072289 | 0.064257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124286 | 700 | 18 | 76 | 38.888889 | 0.812398 | 0 | 0 | 0 | 0 | 0 | 0.608571 | 0.098571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aa1511e186197416ffbb856907981b4e7ded9073 | 118 | py | Python | hypo.py | ibirnam/code-review-demo | c8d08e84186d33dcbfcc2d354ac32dd8ad166e97 | [
"MIT"
] | null | null | null | hypo.py | ibirnam/code-review-demo | c8d08e84186d33dcbfcc2d354ac32dd8ad166e97 | [
"MIT"
] | null | null | null | hypo.py | ibirnam/code-review-demo | c8d08e84186d33dcbfcc2d354ac32dd8ad166e97 | [
"MIT"
] | null | null | null | side_a = 15
side_b = 6
def calculateHypotenuse():
side_c = sqrt(side_a * side_a + side_b * side_b)
return side_c
| 16.857143 | 50 | 0.70339 | 22 | 118 | 3.409091 | 0.454545 | 0.2 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0.20339 | 118 | 6 | 51 | 19.666667 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aa1cd54a9b39a7db6493376ad315ddf58e7fe2f2 | 1,622 | py | Python | Exemples cours 5/Personne.py | geocot/coursPython | 74f634a96146c2244f859b9d449534330d9542fb | [
"Apache-2.0"
] | null | null | null | Exemples cours 5/Personne.py | geocot/coursPython | 74f634a96146c2244f859b9d449534330d9542fb | [
"Apache-2.0"
] | null | null | null | Exemples cours 5/Personne.py | geocot/coursPython | 74f634a96146c2244f859b9d449534330d9542fb | [
"Apache-2.0"
] | null | null | null | class Personne:
'Ceci fait une personne'
def __init__(self, prenom, nom):
self._nom = nom
self._prenom = prenom
self._carte = []
def getPrenom(self):
return self._prenom
def setPrenom(self, prenom):
if type(prenom) == str:
self._prenom = pren... | 31.192308 | 126 | 0.603576 | 182 | 1,622 | 5.038462 | 0.302198 | 0.098146 | 0.035987 | 0.055616 | 0.100327 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0.012766 | 0.275586 | 1,622 | 51 | 127 | 31.803922 | 0.76766 | 0.045006 | 0 | 0.166667 | 0 | 0 | 0.128422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.309524 | false | 0 | 0 | 0.166667 | 0.547619 | 0.02381 | 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 |
a4b06336c5b2853dcd3b21d98d059ea13e598e69 | 2,671 | py | Python | invenio_saml/__init__.py | mb-wali/invenio-SAML | e98cf07c2f935af4648246d48b8096d24fcaa45e | [
"MIT"
] | 2 | 2019-07-29T13:37:36.000Z | 2021-05-27T08:49:52.000Z | invenio_saml/__init__.py | mb-wali/invenio-SAML | e98cf07c2f935af4648246d48b8096d24fcaa45e | [
"MIT"
] | 14 | 2019-07-29T13:59:07.000Z | 2021-05-27T08:35:52.000Z | invenio_saml/__init__.py | mb-wali/invenio-SAML | e98cf07c2f935af4648246d48b8096d24fcaa45e | [
"MIT"
] | 12 | 2019-10-06T22:13:16.000Z | 2021-07-12T09:10:22.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2019 Esteban J. Garcia Gabancho.
#
# Invenio-SAML is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Invenio module that provides SAML integration.
This module is a thin layer on between Inven... | 35.144737 | 79 | 0.607638 | 329 | 2,671 | 4.817629 | 0.486322 | 0.015773 | 0.015142 | 0.017666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006322 | 0.289405 | 2,671 | 75 | 80 | 35.613333 | 0.828767 | 0.932235 | 0 | 0 | 0 | 0 | 0.130178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a4b91e9352b4a0ad68983fad2343cdf3492109b7 | 152 | py | Python | cmpdata.py | TaufiqHassan/cmdata | 467200b7c3c21af5da13487d0317b64f575a0cd0 | [
"MIT"
] | 1 | 2021-08-23T05:32:45.000Z | 2021-08-23T05:32:45.000Z | cmpdata.py | TaufiqHassan/cmdata | 467200b7c3c21af5da13487d0317b64f575a0cd0 | [
"MIT"
] | null | null | null | cmpdata.py | TaufiqHassan/cmdata | 467200b7c3c21af5da13487d0317b64f575a0cd0 | [
"MIT"
] | 1 | 2021-10-09T05:45:33.000Z | 2021-10-09T05:45:33.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 7 14:40:38 2020
@author: Taufiq
"""
from cmpdata.cli import main
if __name__=='__main__':
main()
| 12.666667 | 35 | 0.618421 | 23 | 152 | 3.73913 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099174 | 0.203947 | 152 | 11 | 36 | 13.818182 | 0.61157 | 0.493421 | 0 | 0 | 0 | 0 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a4c110d166ee884894d0bccb9e0906ec890c6fe8 | 1,556 | py | Python | ocean_lib/common/ddo/status_helper.py | LinuxIsCool/ocean.py | da44b96620f5e941583e26e772bbebb3813740dc | [
"Apache-2.0"
] | null | null | null | ocean_lib/common/ddo/status_helper.py | LinuxIsCool/ocean.py | da44b96620f5e941583e26e772bbebb3813740dc | [
"Apache-2.0"
] | null | null | null | ocean_lib/common/ddo/status_helper.py | LinuxIsCool/ocean.py | da44b96620f5e941583e26e772bbebb3813740dc | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2021 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from ocean_lib.common.agreements.service_types import ServiceTypes
def enable_flag(ddo, flag_name):
"""
:return: None
"""
metadata_service = ddo.get_service(ServiceTypes.METADATA)
if not metadata_service:
... | 28.290909 | 75 | 0.695373 | 187 | 1,556 | 5.588235 | 0.262032 | 0.244019 | 0.263158 | 0.237321 | 0.686124 | 0.678469 | 0.599043 | 0.502392 | 0.502392 | 0.463158 | 0 | 0.004819 | 0.199871 | 1,556 | 54 | 76 | 28.814815 | 0.834538 | 0.172879 | 0 | 0.62963 | 0 | 0 | 0.068016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.037037 | 0 | 0.296296 | 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 |
a4c1355f6f73418e96025b57b3e2dc5d7676c45d | 578 | py | Python | adalink.py | pomplesiegel/Adafruit_Adalink | 30d168c9c12abf424df9c49a0545eefae3f670cc | [
"MIT"
] | 119 | 2015-07-25T10:28:52.000Z | 2022-01-26T02:22:27.000Z | adalink.py | pomplesiegel/Adafruit_Adalink | 30d168c9c12abf424df9c49a0545eefae3f670cc | [
"MIT"
] | 23 | 2015-08-27T03:05:51.000Z | 2022-03-16T12:37:41.000Z | adalink.py | pomplesiegel/Adafruit_Adalink | 30d168c9c12abf424df9c49a0545eefae3f670cc | [
"MIT"
] | 31 | 2015-07-25T13:46:17.000Z | 2022-03-16T06:36:11.000Z | # Adalink main entry point for PyInstaller.
#
# This is necessary because pointing PyInstaller at the adalink.main module
# directly will produce an executable that doesn't work (it fails to resolve
# the relative imports). Instead this module serves as a simple 'bootstrap'
# that imports adalink and calls its main wi... | 34 | 77 | 0.768166 | 87 | 578 | 5.011494 | 0.643678 | 0.100917 | 0.09633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17128 | 578 | 16 | 78 | 36.125 | 0.91023 | 0.83391 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a4d5ea0f29b7847c728b1ef591cb1437bedf5e5f | 484 | py | Python | flocka/forms/change_password.py | sleekslush/flocka | 3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68 | [
"BSD-2-Clause"
] | 1 | 2018-10-09T14:09:12.000Z | 2018-10-09T14:09:12.000Z | flocka/forms/change_password.py | sleekslush/flocka | 3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68 | [
"BSD-2-Clause"
] | 11 | 2017-03-22T15:26:05.000Z | 2017-06-01T20:17:52.000Z | flocka/forms/change_password.py | sleekslush/flocka | 3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68 | [
"BSD-2-Clause"
] | null | null | null | from flask_wtf import Form
from wtforms import PasswordField
from wtforms import validators
class ChangePasswordForm(Form):
current_password = PasswordField(
u'Current Password', validators=[validators.required()])
password = PasswordField(
u'New Password', validators=[validators.required(), v... | 37.230769 | 99 | 0.745868 | 50 | 484 | 7.16 | 0.42 | 0.117318 | 0.234637 | 0.301676 | 0.273743 | 0.273743 | 0 | 0 | 0 | 0 | 0 | 0.002433 | 0.150826 | 484 | 12 | 100 | 40.333333 | 0.868613 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.8 | 0.3 | 0 | 0.7 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a4e3a40ad9a2b05fd182f7dd56f9442a446c6a13 | 81 | py | Python | mmocr/models/common/detectors/__init__.py | hongxuenong/mmocr | e8e3a059f8f2e4fca96af37751c33563fc48e2ba | [
"Apache-2.0"
] | 2,261 | 2021-04-08T03:45:41.000Z | 2022-03-31T23:37:46.000Z | mmocr/models/common/detectors/__init__.py | hongxuenong/mmocr | e8e3a059f8f2e4fca96af37751c33563fc48e2ba | [
"Apache-2.0"
] | 789 | 2021-04-08T05:40:13.000Z | 2022-03-31T09:42:39.000Z | mmocr/models/common/detectors/__init__.py | hongxuenong/mmocr | e8e3a059f8f2e4fca96af37751c33563fc48e2ba | [
"Apache-2.0"
] | 432 | 2021-04-08T03:56:16.000Z | 2022-03-30T18:44:43.000Z | from .single_stage import SingleStageDetector
__all__ = ['SingleStageDetector']
| 20.25 | 45 | 0.82716 | 7 | 81 | 8.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098765 | 81 | 3 | 46 | 27 | 0.849315 | 0 | 0 | 0 | 0 | 0 | 0.234568 | 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 |
352ec1dc7ba67fc423ec1eb0b1708348618f4a4a | 1,146 | py | Python | tsadm/site/urls.py | jctincan/tsadm-webapp | f67ac891c58b240434260692cdf0ed8b6b9dcef6 | [
"BSD-3-Clause"
] | null | null | null | tsadm/site/urls.py | jctincan/tsadm-webapp | f67ac891c58b240434260692cdf0ed8b6b9dcef6 | [
"BSD-3-Clause"
] | null | null | null | tsadm/site/urls.py | jctincan/tsadm-webapp | f67ac891c58b240434260692cdf0ed8b6b9dcef6 | [
"BSD-3-Clause"
] | null | null | null |
from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^admin/$', 'tsadm.site.views.admin', name='admin'),
url(r'^index/$', 'tsadm.site.views.index', name='index'),
url(r'^(\w+)/(\w+)/$', 'tsadm.site.views.dashboard', name='dashboard'),
url(r'^(\w+)/(\w+)/log/$', 'tsadm... | 44.076923 | 95 | 0.576789 | 167 | 1,146 | 3.904192 | 0.179641 | 0.079755 | 0.279141 | 0.092025 | 0.294479 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0.007722 | 0.095986 | 1,146 | 25 | 96 | 45.84 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0.615721 | 0.420087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
101fae748d57e15a602dfcaa09c47b775c2a8f4e | 313 | py | Python | elif_bayindir/phase_1/python_basic_1/day_3/q7.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | elif_bayindir/phase_1/python_basic_1/day_3/q7.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | elif_bayindir/phase_1/python_basic_1/day_3/q7.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | # Question 7
# Test a number is in range
import math
num = float(input("Enter a number: "))
if num in range(100, 1000):
print("Your number is in range (100, 1000)")
else num in range(100, 2000):
print("Your number is in range (100, 2000)")
else:
print("Your number is smaller than 100 or larger than 2000")
| 22.357143 | 61 | 0.693291 | 56 | 313 | 3.875 | 0.446429 | 0.16129 | 0.184332 | 0.207373 | 0.248848 | 0.248848 | 0.248848 | 0 | 0 | 0 | 0 | 0.141732 | 0.188498 | 313 | 13 | 62 | 24.076923 | 0.712598 | 0.115016 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.375 | 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 |
10243ed8db320b39884cf6ec3cfb95472e1a3845 | 739 | py | Python | reference/defisheye-test.py | darkenvy/hyperion-eye | 9871b78d332044ef7af6f1c0a9d4c3387b3197df | [
"MIT"
] | null | null | null | reference/defisheye-test.py | darkenvy/hyperion-eye | 9871b78d332044ef7af6f1c0a9d4c3387b3197df | [
"MIT"
] | null | null | null | reference/defisheye-test.py | darkenvy/hyperion-eye | 9871b78d332044ef7af6f1c0a9d4c3387b3197df | [
"MIT"
] | null | null | null | # Read an example image and acquire its size
# img = cv2.imread("calibration_samples/2016-07-13-124020.jpg")
# h, w = img.shape[:2]
# # Generate new camera matrix from parameters
# newcameramatrix, roi = cv2.getOptimalNewCameraMatrix(K, d, (w,h), 0)
# # Generate look-up tables for remapping the camera ima... | 38.894737 | 103 | 0.699594 | 109 | 739 | 4.697248 | 0.59633 | 0.011719 | 0.019531 | 0.039063 | 0.042969 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058537 | 0.167794 | 739 | 18 | 104 | 41.055556 | 0.773984 | 0.921516 | 0 | null | 1 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.