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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dbad96b0fa05c373ff9f7995b182a8597ec11299 | 1,387 | py | Python | src/django/giraffe/blat/management/commands/reset_app.py | addgene/giraffe | c7d3b1f000ceea83e6c98cce06cd2a0f9e4f4c2c | [
"MIT"
] | 4 | 2016-10-13T15:46:06.000Z | 2018-08-22T21:43:28.000Z | src/django/giraffe/blat/management/commands/reset_app.py | addgene/giraffe | c7d3b1f000ceea83e6c98cce06cd2a0f9e4f4c2c | [
"MIT"
] | null | null | null | src/django/giraffe/blat/management/commands/reset_app.py | addgene/giraffe | c7d3b1f000ceea83e6c98cce06cd2a0f9e4f4c2c | [
"MIT"
] | 1 | 2015-07-26T21:42:31.000Z | 2015-07-26T21:42:31.000Z | from django.core.management.base import AppCommand, CommandError
from django.core.management.sql import sql_reset
from django.core.management.color import no_style
from django.db import connections
class Command(AppCommand):
help = "**********\nThis command resets data for any django app, the difference with the b... | 47.827586 | 370 | 0.626532 | 165 | 1,387 | 5.157576 | 0.466667 | 0.047004 | 0.049354 | 0.084606 | 0.054054 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0.005035 | 0.284066 | 1,387 | 28 | 371 | 49.535714 | 0.851964 | 0 | 0 | 0 | 0 | 0.038462 | 0.290555 | 0.031723 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.115385 | 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 |
dbb81ecf1571a74c986e0ef5e76802273692f79e | 1,106 | py | Python | data_interrogator/admin/views.py | s-i-l-k-e/django-data-interrogator | 0284168b81aaa31a8df84f3ea52166eded8a4362 | [
"MIT"
] | null | null | null | data_interrogator/admin/views.py | s-i-l-k-e/django-data-interrogator | 0284168b81aaa31a8df84f3ea52166eded8a4362 | [
"MIT"
] | null | null | null | data_interrogator/admin/views.py | s-i-l-k-e/django-data-interrogator | 0284168b81aaa31a8df84f3ea52166eded8a4362 | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import user_passes_test
from django.utils.decorators import method_decorator
from data_interrogator.admin.forms import AdminInvestigationForm, AdminPivotTableForm
from data_interrogator.interrogators import Allowable
from data_interrogator.views import InterrogationView, Interrogati... | 35.677419 | 103 | 0.824593 | 104 | 1,106 | 8.567308 | 0.509615 | 0.026936 | 0.06734 | 0.058361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118445 | 1,106 | 30 | 104 | 36.866667 | 0.913846 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.095238 | 0.238095 | 0.047619 | 0.904762 | 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 |
dbb832b244c092d5e626be322221a0dd99c61a02 | 327 | py | Python | configs/pspnet/pspnet_r18-d8_512x512_80k_loveda.py | heytanay/mmsegmentation | 7ddd2fe2ecff9c95999bd00ec05cc37eafb558f8 | [
"Apache-2.0"
] | 11 | 2022-02-04T01:09:45.000Z | 2022-03-08T05:49:16.000Z | configs/pspnet/pspnet_r18-d8_512x512_80k_loveda.py | heytanay/mmsegmentation | 7ddd2fe2ecff9c95999bd00ec05cc37eafb558f8 | [
"Apache-2.0"
] | 2 | 2022-02-25T03:07:23.000Z | 2022-03-08T12:54:05.000Z | configs/pspnet/pspnet_r18-d8_512x512_80k_loveda.py | heytanay/mmsegmentation | 7ddd2fe2ecff9c95999bd00ec05cc37eafb558f8 | [
"Apache-2.0"
] | 2 | 2021-04-23T05:32:00.000Z | 2021-11-11T02:45:08.000Z | _base_ = './pspnet_r50-d8_512x512_80k_loveda.py'
model = dict(
backbone=dict(
depth=18,
init_cfg=dict(
type='Pretrained', checkpoint='open-mmlab://resnet18_v1c')),
decode_head=dict(
in_channels=512,
channels=128,
),
auxiliary_head=dict(in_channels=256, channel... | 27.25 | 72 | 0.629969 | 40 | 327 | 4.85 | 0.775 | 0.082474 | 0.103093 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108 | 0.235474 | 327 | 11 | 73 | 29.727273 | 0.668 | 0 | 0 | 0 | 0 | 0 | 0.220183 | 0.189602 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
dbbba499caecc6c455f90595eccf7b64b710a2e3 | 263 | py | Python | apps/utils/format/url_format.py | think-wang/osroom | 67bb5bbd7a63fbaeb0d919738859444b54500152 | [
"BSD-2-Clause"
] | 1 | 2020-04-03T08:01:07.000Z | 2020-04-03T08:01:07.000Z | apps/utils/format/url_format.py | dhgdhg/osroom | 4d693eaab96503cadd391bf924bffedcd931a07c | [
"BSD-2-Clause"
] | null | null | null | apps/utils/format/url_format.py | dhgdhg/osroom | 4d693eaab96503cadd391bf924bffedcd931a07c | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*-coding:utf-8-*-
from tld import get_tld
__author__ = "Allen Woo"
def get_domain(url):
'''
获取url中的全域名
:param url:
:return:
'''
res = get_tld(url, as_object=True)
return "{}.{}".format(res.subdomain, res.tld) | 18.785714 | 49 | 0.604563 | 36 | 263 | 4.194444 | 0.722222 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.212928 | 263 | 14 | 49 | 18.785714 | 0.724638 | 0.269962 | 0 | 0 | 0 | 0 | 0.083333 | 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 |
dbbca7079e41d333542d3d27bb46afa6aecbe834 | 1,580 | py | Python | test/test_catalog_manager.py | weknowtraining/athena-glue-service-logs | b7cf77408486f2bfa941b8609617ed47aa3e2d02 | [
"Apache-2.0"
] | 133 | 2018-09-17T12:43:14.000Z | 2022-03-15T20:03:12.000Z | test/test_catalog_manager.py | weknowtraining/athena-glue-service-logs | b7cf77408486f2bfa941b8609617ed47aa3e2d02 | [
"Apache-2.0"
] | 22 | 2018-11-19T21:51:04.000Z | 2022-03-08T12:13:19.000Z | test/test_catalog_manager.py | weknowtraining/athena-glue-service-logs | b7cf77408486f2bfa941b8609617ed47aa3e2d02 | [
"Apache-2.0"
] | 46 | 2018-10-04T04:27:26.000Z | 2022-03-01T03:28:38.000Z | # pylint: skip-file
from athena_glue_service_logs.catalog_manager import BaseCatalogManager
def test_class_init(mocker):
mocker.patch.multiple(BaseCatalogManager, __abstractmethods__=set())
base_catalog = BaseCatalogManager('us-west-2', 'dbname', 'tablename', 's3://somewhere')
assert base_catalog.databas... | 50.967742 | 119 | 0.79557 | 185 | 1,580 | 6.405405 | 0.297297 | 0.064979 | 0.086076 | 0.106329 | 0.751055 | 0.71308 | 0.683544 | 0.580591 | 0.580591 | 0.580591 | 0 | 0.005571 | 0.091139 | 1,580 | 30 | 120 | 52.666667 | 0.819638 | 0.010759 | 0 | 0.285714 | 0 | 0 | 0.317745 | 0.244715 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.142857 | 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 |
dbc13915cb653c37c09279f81347a4bfea838dd2 | 3,686 | py | Python | src_taxonomy/bubble_tree_map.py | sanja7s/SR_Twitter | 2eb499c9aa25ba6e9860cd77eac6832890d2c126 | [
"MIT"
] | null | null | null | src_taxonomy/bubble_tree_map.py | sanja7s/SR_Twitter | 2eb499c9aa25ba6e9860cd77eac6832890d2c126 | [
"MIT"
] | null | null | null | src_taxonomy/bubble_tree_map.py | sanja7s/SR_Twitter | 2eb499c9aa25ba6e9860cd77eac6832890d2c126 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import random
from ete2 import Tree, TreeStyle, NodeStyle, faces, AttrFace, CircleFace, TextFace
def layout(node):
if not node.is_root():
# Add node name to laef nodes
#N = AttrFace("name", fsize=14, fgcolor="black")
#faces.add_face_to_node(N, node, 0)
#pass
fa... | 24.091503 | 98 | 0.655724 | 588 | 3,686 | 3.986395 | 0.292517 | 0.023891 | 0.011945 | 0.017918 | 0.200085 | 0.138652 | 0.104949 | 0.104949 | 0.104949 | 0.074232 | 0 | 0.023435 | 0.189636 | 3,686 | 153 | 99 | 24.091503 | 0.761299 | 0.223549 | 0 | 0.088889 | 0 | 0 | 0.109463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022222 | null | null | 0.1 | 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 |
dbc290ad28df369cc2a5189c66e670824982c619 | 28,719 | py | Python | compass/core/_scrapers/member.py | MrNoScript/compass-interface-core | 8c945ef36f7bee396bd5a744404eaa88d280a845 | [
"MIT"
] | null | null | null | compass/core/_scrapers/member.py | MrNoScript/compass-interface-core | 8c945ef36f7bee396bd5a744404eaa88d280a845 | [
"MIT"
] | null | null | null | compass/core/_scrapers/member.py | MrNoScript/compass-interface-core | 8c945ef36f7bee396bd5a744404eaa88d280a845 | [
"MIT"
] | null | null | null | from __future__ import annotations
import re
import time
from typing import get_args, Literal, TYPE_CHECKING, Union
from lxml import html
from compass.core.interface_base import InterfaceBase
from compass.core.logger import logger
from compass.core.schemas import member as schema
from compass.core.settings import Se... | 41.262931 | 132 | 0.568126 | 3,153 | 28,719 | 4.994925 | 0.174437 | 0.020255 | 0.008254 | 0.011429 | 0.260461 | 0.189409 | 0.160455 | 0.123436 | 0.099879 | 0.090037 | 0 | 0.011589 | 0.305965 | 28,719 | 695 | 133 | 41.322302 | 0.778547 | 0.281765 | 0 | 0.10061 | 0 | 0.006098 | 0.213864 | 0.081701 | 0 | 0 | 0 | 0.01295 | 0.003049 | 1 | 0.021341 | false | 0.02439 | 0.039634 | 0 | 0.097561 | 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 |
dbc52992fc79a5adada939783cc09ffe329b0264 | 1,623 | py | Python | konnection/settings/local.py | IanSeng/CMPUT404_PROJECT | 80acd2c57de4b091e0e66ad9f5f2df17801bf09e | [
"W3C-20150513"
] | null | null | null | konnection/settings/local.py | IanSeng/CMPUT404_PROJECT | 80acd2c57de4b091e0e66ad9f5f2df17801bf09e | [
"W3C-20150513"
] | null | null | null | konnection/settings/local.py | IanSeng/CMPUT404_PROJECT | 80acd2c57de4b091e0e66ad9f5f2df17801bf09e | [
"W3C-20150513"
] | null | null | null | from konnection.settings.base import *
from pathlib import Path
import os
import dotenv
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent.parent
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
SECRET_KEY = 'temporaryKey'... | 31.211538 | 122 | 0.653112 | 191 | 1,623 | 5.450262 | 0.554974 | 0.020173 | 0.060519 | 0.042267 | 0.153698 | 0.092219 | 0.092219 | 0 | 0 | 0 | 0 | 0.027216 | 0.20764 | 1,623 | 52 | 123 | 31.211538 | 0.782271 | 0.360444 | 0 | 0.176471 | 0 | 0 | 0.296982 | 0.095424 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.117647 | 0 | 0.117647 | 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 |
dbc6414ac2f786d426d11b5f7b21e310e975369d | 23,614 | py | Python | pyx12/test/test_x12context.py | arenius/pyx12 | 537493deaa0b8e18a3fa72eb1b3eeae9ef043b11 | [
"BSD-3-Clause"
] | 1 | 2019-11-06T21:22:28.000Z | 2019-11-06T21:22:28.000Z | pyx12/test/test_x12context.py | arenius/pyx12 | 537493deaa0b8e18a3fa72eb1b3eeae9ef043b11 | [
"BSD-3-Clause"
] | null | null | null | pyx12/test/test_x12context.py | arenius/pyx12 | 537493deaa0b8e18a3fa72eb1b3eeae9ef043b11 | [
"BSD-3-Clause"
] | 1 | 2021-04-12T14:32:41.000Z | 2021-04-12T14:32:41.000Z | import unittest
#import tempfile
try:
from StringIO import StringIO
except:
from io import StringIO
import pyx12.error_handler
from pyx12.errors import EngineError # , X12PathError
import pyx12.x12context
import pyx12.params
from pyx12.test.x12testdata import datafiles
class X12fileTestCase(unittest.TestCas... | 38.210356 | 125 | 0.598247 | 2,840 | 23,614 | 4.833451 | 0.091549 | 0.062942 | 0.030961 | 0.036716 | 0.776717 | 0.700517 | 0.641801 | 0.609383 | 0.562468 | 0.517739 | 0 | 0.122283 | 0.269289 | 23,614 | 617 | 126 | 38.272285 | 0.673254 | 0.021343 | 0 | 0.582178 | 0 | 0.005941 | 0.109331 | 0.01719 | 0 | 0 | 0.001039 | 0 | 0.20396 | 1 | 0.126733 | false | 0.007921 | 0.015842 | 0 | 0.182178 | 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 |
dbce1d6ebf5fac46543c3b47688a5f1e1c7cc668 | 8,981 | py | Python | dmarc_storage.py | Schramp/dmarc-monitoring | 619a162f71a788e81d92ca281ec0bdcf13c2e8e8 | [
"MIT"
] | 1 | 2020-05-25T05:09:18.000Z | 2020-05-25T05:09:18.000Z | dmarc_storage.py | Schramp/dmarc-monitoring | 619a162f71a788e81d92ca281ec0bdcf13c2e8e8 | [
"MIT"
] | 30 | 2019-08-12T05:10:50.000Z | 2021-07-21T04:25:02.000Z | dmarc_storage.py | Schramp/dmarc-monitoring | 619a162f71a788e81d92ca281ec0bdcf13c2e8e8 | [
"MIT"
] | 1 | 2022-03-12T19:24:24.000Z | 2022-03-12T19:24:24.000Z | import sqlite3
import os
import datetime
__all__ = ['DMARCStorage', 'totimestamp']
def totimestamp(datetime_object):
if datetime_object.utcoffset() is not None:
utc_naive = datetime_object.replace(tzinfo=None) - datetime_object.utcoffset()
else:
utc_naive = datetime_object
return (utc_nai... | 49.894444 | 118 | 0.565639 | 1,012 | 8,981 | 4.75 | 0.156126 | 0.059705 | 0.078635 | 0.044934 | 0.462867 | 0.370917 | 0.302476 | 0.270647 | 0.255669 | 0.23861 | 0 | 0.004403 | 0.342501 | 8,981 | 179 | 119 | 50.173184 | 0.809653 | 0.04465 | 0 | 0.227586 | 0 | 0 | 0.471 | 0.044929 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.055172 | 0.02069 | 0 | 0.262069 | 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 |
dbd0c614614154cd50e0792871e7aa778a2a1459 | 557 | py | Python | setup.py | mcdruid/sumologic-python-sdk | cb1d649d0166976fb104866e9174a41bd558b817 | [
"Apache-2.0"
] | 4 | 2019-05-09T01:31:15.000Z | 2019-12-08T03:35:32.000Z | setup.py | blaise-sumo/sumologic-python-sdk | 97c38fc2d493b94741fd17711923ec7e39264610 | [
"Apache-2.0"
] | null | null | null | setup.py | blaise-sumo/sumologic-python-sdk | 97c38fc2d493b94741fd17711923ec7e39264610 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="sumologic-sdk",
version="0.1.9",
packages=find_packages(),
install_requires=['requests>=2.2.1'],
# PyPI metadata
author="Yoway Buorn, Melchi Salins",
author_email="it@sumologic.com, melchisalins@icloud.com",
description="Sumo Logi... | 32.764706 | 121 | 0.716338 | 71 | 557 | 5.549296 | 0.746479 | 0.068528 | 0.091371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012848 | 0.16158 | 557 | 16 | 122 | 34.8125 | 0.830835 | 0.023339 | 0 | 0 | 0 | 0 | 0.512915 | 0.042435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
dbd6cc6412096e169b145a7b948ae52708971c75 | 1,311 | py | Python | home/migrations/0010_auto_20180206_1625.py | RomanMahar/personalsite | ad0c7880e0ccfe81ea53b8bad8e0d4fcf0c5830b | [
"MIT"
] | null | null | null | home/migrations/0010_auto_20180206_1625.py | RomanMahar/personalsite | ad0c7880e0ccfe81ea53b8bad8e0d4fcf0c5830b | [
"MIT"
] | 10 | 2020-06-05T17:26:09.000Z | 2022-01-13T00:39:44.000Z | home/migrations/0010_auto_20180206_1625.py | RomanMahar/personalsite | ad0c7880e0ccfe81ea53b8bad8e0d4fcf0c5830b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-02-06 16:25
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0028_merge'),
('home', '0009_remove_... | 36.416667 | 158 | 0.62624 | 137 | 1,311 | 5.832117 | 0.576642 | 0.04005 | 0.052566 | 0.082603 | 0.157697 | 0.157697 | 0.157697 | 0.157697 | 0.157697 | 0.157697 | 0 | 0.031093 | 0.239512 | 1,311 | 35 | 159 | 37.457143 | 0.770311 | 0.051869 | 0 | 0.178571 | 1 | 0 | 0.166129 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.214286 | 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 |
dbdce6502afcfa5e2708f1c6de7ac5e46b73c5d7 | 3,303 | py | Python | template/misc.py | da-h/tf-boilerplate | ab8409c935d3fcbed07bbefd1cb0049d45283222 | [
"MIT"
] | null | null | null | template/misc.py | da-h/tf-boilerplate | ab8409c935d3fcbed07bbefd1cb0049d45283222 | [
"MIT"
] | null | null | null | template/misc.py | da-h/tf-boilerplate | ab8409c935d3fcbed07bbefd1cb0049d45283222 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow.python.training.session_run_hook import SessionRunArgs
# Define data loaders #####################################
# See https://gist.github.com/peterroelants/9956ec93a07ca4e9ba5bc415b014bcca
class IteratorInitializerHook(tf.train.SessionRunHook):
"""Hook to initialise data... | 32.70297 | 126 | 0.666969 | 386 | 3,303 | 5.430052 | 0.34715 | 0.030057 | 0.031011 | 0.032443 | 0.337786 | 0.313931 | 0.289122 | 0.289122 | 0.289122 | 0.289122 | 0 | 0.008089 | 0.214048 | 3,303 | 100 | 127 | 33.03 | 0.799307 | 0.17802 | 0 | 0.338983 | 0 | 0.016949 | 0.134909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20339 | false | 0.016949 | 0.033898 | 0 | 0.355932 | 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 |
dbddc1c2c35c862c97e10c987a1255308c864f59 | 2,825 | py | Python | examples/dehydrogenation/3-property-mappings/mappings_from_ontology/run_w_onto.py | TorgeirUstad/dlite | 1d7b4ccec0e76799a25992534cd295a80d83878a | [
"MIT"
] | null | null | null | examples/dehydrogenation/3-property-mappings/mappings_from_ontology/run_w_onto.py | TorgeirUstad/dlite | 1d7b4ccec0e76799a25992534cd295a80d83878a | [
"MIT"
] | null | null | null | examples/dehydrogenation/3-property-mappings/mappings_from_ontology/run_w_onto.py | TorgeirUstad/dlite | 1d7b4ccec0e76799a25992534cd295a80d83878a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from typing import Dict, AnyStr
from pathlib import Path
from ontopy import get_ontology
import dlite
from dlite.mappings import make_instance
# Setup dlite paths
thisdir = Path(__file__).parent.absolute()
rootdir = thisdir.parent.parent
workflow1dir = rootdir / '1-simple-workflow'
entitiesdir... | 31.388889 | 75 | 0.735929 | 377 | 2,825 | 5.427056 | 0.413793 | 0.034213 | 0.01955 | 0.024438 | 0.150538 | 0.094819 | 0.065494 | 0.034213 | 0.034213 | 0.034213 | 0 | 0.016617 | 0.169204 | 2,825 | 89 | 76 | 31.741573 | 0.855134 | 0.463009 | 0 | 0 | 0 | 0 | 0.193103 | 0.062759 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 0 | 0.21875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91551c7d6fac7874ebf8acc4dfa5dfb4b2e853a5 | 6,479 | py | Python | forms.py | lendoo73/my_idea_boxes | c0d0e7bbd0b64ae35146f3792cd477d1ec8461b5 | [
"MIT"
] | null | null | null | forms.py | lendoo73/my_idea_boxes | c0d0e7bbd0b64ae35146f3792cd477d1ec8461b5 | [
"MIT"
] | null | null | null | forms.py | lendoo73/my_idea_boxes | c0d0e7bbd0b64ae35146f3792cd477d1ec8461b5 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed, FileRequired
from wtforms import StringField, PasswordField, BooleanField, TextAreaField, SubmitField, RadioField, HiddenField
from wtforms.fields.html5 import DateField, IntegerField
from wtforms.validators import ValidationError, DataR... | 40.49375 | 113 | 0.679426 | 567 | 6,479 | 7.680776 | 0.215168 | 0.197015 | 0.10333 | 0.062687 | 0.479679 | 0.46062 | 0.378875 | 0.347646 | 0.223192 | 0.223192 | 0 | 0.002705 | 0.201111 | 6,479 | 160 | 114 | 40.49375 | 0.838679 | 0 | 0 | 0.314286 | 0 | 0 | 0.183025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.214286 | 0.042857 | 0 | 0.635714 | 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 |
915a53aa4a7088b23b53c3227ab2635547e8ba50 | 1,593 | py | Python | setup.py | abhiomkar/couchdbkit | 035062b504b57c1cc6e576be47fb05423fb1ddb3 | [
"MIT"
] | 1 | 2021-06-03T21:34:38.000Z | 2021-06-03T21:34:38.000Z | setup.py | abhiomkar/couchdbkit | 035062b504b57c1cc6e576be47fb05423fb1ddb3 | [
"MIT"
] | null | null | null | setup.py | abhiomkar/couchdbkit | 035062b504b57c1cc6e576be47fb05423fb1ddb3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -
#
# This file is part of couchdbkit released under the MIT license.
# See the NOTICE for more information.
import os
import sys
if not hasattr(sys, 'version_info') or sys.version_info < (2, 5, 0, 'final'):
raise SystemExit("couchdbkit requires Python 2.5 or later.")
from setuptools import ... | 27 | 77 | 0.626491 | 165 | 1,593 | 5.915152 | 0.672727 | 0.055328 | 0.028689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.252982 | 1,593 | 58 | 78 | 27.465517 | 0.811765 | 0.075957 | 0 | 0.045455 | 0 | 0 | 0.466258 | 0.114519 | 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 |
9163be87e7924e53bd340c783bc5110d591ba91f | 1,386 | py | Python | fairseq/scoring/__init__.py | fairseq-FT/fairseq | 18725499144c1bba7c151b796ba774e59d36eaa9 | [
"MIT"
] | 33 | 2021-01-06T18:03:55.000Z | 2022-03-28T12:07:44.000Z | fairseq/scoring/__init__.py | fairseq-FT/fairseq | 18725499144c1bba7c151b796ba774e59d36eaa9 | [
"MIT"
] | 8 | 2021-06-11T03:11:37.000Z | 2022-03-08T19:15:42.000Z | fairseq/scoring/__init__.py | fairseq-FT/fairseq | 18725499144c1bba7c151b796ba774e59d36eaa9 | [
"MIT"
] | 14 | 2021-05-17T06:55:01.000Z | 2022-03-28T12:07:42.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import importlib
import os
from abc import ABC, abstractmethod
from fairseq import registry
from omegaconf import DictConfig
class BaseSco... | 24.315789 | 87 | 0.665945 | 178 | 1,386 | 5.039326 | 0.460674 | 0.031215 | 0.024526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229437 | 1,386 | 56 | 88 | 24.75 | 0.839888 | 0.166667 | 0 | 0.114286 | 0 | 0 | 0.034813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.057143 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
916d6d6dc88be47cd9a443a50f8be165dfb36ec7 | 3,167 | py | Python | io_import_rbsp/rbsp/rpak_materials.py | snake-biscuits/io_import_rbsp | 0de47dc70c373cc0417cc222d5d83e6dde72068b | [
"MIT"
] | 7 | 2021-09-30T11:13:00.000Z | 2022-03-25T16:19:19.000Z | io_import_rbsp/rbsp/rpak_materials.py | snake-biscuits/io_import_rbsp | 0de47dc70c373cc0417cc222d5d83e6dde72068b | [
"MIT"
] | 1 | 2021-11-15T18:36:51.000Z | 2021-11-15T18:36:51.000Z | io_import_rbsp/rbsp/rpak_materials.py | snake-biscuits/io_import_rbsp | 0de47dc70c373cc0417cc222d5d83e6dde72068b | [
"MIT"
] | null | null | null | # by MrSteyk & Dogecore
# TODO: extraction instructions & testing
import json
import os.path
from typing import List
import bpy
loaded_materials = {}
MATERIAL_LOAD_PATH = "" # put your path here
# normal has special logic
MATERIAL_INPUT_LINKING = {
"color": "Base Color",
"rough": "Roughness",
"spec": ... | 38.156627 | 115 | 0.649826 | 382 | 3,167 | 5.151832 | 0.23822 | 0.073171 | 0.065041 | 0.042683 | 0.398882 | 0.362297 | 0.344512 | 0.300813 | 0.202236 | 0.202236 | 0 | 0 | 0.250079 | 3,167 | 82 | 116 | 38.621951 | 0.828632 | 0.07515 | 0 | 0.328125 | 0 | 0 | 0.14863 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.046875 | false | 0 | 0.0625 | 0 | 0.1875 | 0.015625 | 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 |
916f9138f4bbb1766481eef3ea77cac318445838 | 3,291 | py | Python | aardvark/conf/reaper_conf.py | ttsiouts/aardvark | cbf29f332df86814dd581152faf863c0d29ae41c | [
"Apache-2.0"
] | null | null | null | aardvark/conf/reaper_conf.py | ttsiouts/aardvark | cbf29f332df86814dd581152faf863c0d29ae41c | [
"Apache-2.0"
] | null | null | null | aardvark/conf/reaper_conf.py | ttsiouts/aardvark | cbf29f332df86814dd581152faf863c0d29ae41c | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 European Organization for Nuclear Research.
# 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/LIC... | 32.91 | 79 | 0.671832 | 439 | 3,291 | 4.98861 | 0.448747 | 0.027397 | 0.023744 | 0.021918 | 0.085845 | 0.077626 | 0.077626 | 0.077626 | 0.077626 | 0.077626 | 0 | 0.005337 | 0.259799 | 3,291 | 99 | 80 | 33.242424 | 0.893678 | 0.192343 | 0 | 0.314286 | 0 | 0 | 0.711691 | 0.031404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.014286 | 0 | 0.028571 | 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 |
9170343444c1172d149626528603249b2f63831c | 370 | py | Python | count_files.py | xuannianc/keras-retinanet | d1da39592042927aaf3b3eb905a308c327983bed | [
"Apache-2.0"
] | null | null | null | count_files.py | xuannianc/keras-retinanet | d1da39592042927aaf3b3eb905a308c327983bed | [
"Apache-2.0"
] | null | null | null | count_files.py | xuannianc/keras-retinanet | d1da39592042927aaf3b3eb905a308c327983bed | [
"Apache-2.0"
] | null | null | null | import csv
vat_filenames = set()
train_csv_filename = 'train_annotations.csv'
val_csv_filename = 'val_annotations.csv'
for csv_filename in [train_csv_filename, val_csv_filename]:
for line in csv.reader(open(csv_filename)):
vat_filename = line[0].split('/')[-1]
vat_filenames.add(vat_filename)
pr... | 30.833333 | 59 | 0.735135 | 53 | 370 | 4.792453 | 0.396226 | 0.259843 | 0.125984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006349 | 0.148649 | 370 | 11 | 60 | 33.636364 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.110811 | 0.056757 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 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 |
91708273d963214e9092983f15d8ef3340677e15 | 814 | py | Python | em Python/Roteiro7/Roteiro7__testes_dijkstra.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | em Python/Roteiro7/Roteiro7__testes_dijkstra.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | em Python/Roteiro7/Roteiro7__testes_dijkstra.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | from Roteiro7.Roteiro7__funcoes import GrafoComPesos
# .:: Arquivo de Testes do Algoritmo de Dijkstra ::. #
# --------------------------------------------------------------------------- #
grafo_aula = GrafoComPesos(
['E', 'A', 'B', 'C', 'D'],
{
'E-A': 1,
'E-C': 10,
'A-B': 2,
'B... | 22.611111 | 79 | 0.395577 | 103 | 814 | 3.048544 | 0.31068 | 0.025478 | 0.10828 | 0.025478 | 0.242038 | 0.210191 | 0 | 0 | 0 | 0 | 0 | 0.035413 | 0.271499 | 814 | 35 | 80 | 23.257143 | 0.494098 | 0.15602 | 0 | 0 | 0 | 0 | 0.208517 | 0.036711 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
917377628f552efbcce428798dd528e6e5fe7134 | 4,196 | py | Python | setup.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | 5 | 2018-10-09T13:39:31.000Z | 2020-03-26T18:39:49.000Z | setup.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | setup.py | aaron19950321/ICOM | d5bd0705776c505dd1df0a1c76a07fee2d218394 | [
"PSF-2.0",
"BSD-3-Clause"
] | 2 | 2018-10-09T13:39:36.000Z | 2018-10-09T23:18:39.000Z | import os, os.path
import subprocess
from distutils.core import setup
from py2exe.build_exe import py2exe
PROGRAM_NAME = 'icom_app'
PROGRAM_DESC = 'simple icom app'
NSIS_SCRIPT_TEMPLATE = r"""
!define py2exeOutputDirectory '{output_dir}\'
!define exe '{program_name}.exe'
; Uses solid LZMA compression. Ca... | 30.18705 | 81 | 0.580076 | 479 | 4,196 | 4.966597 | 0.440501 | 0.050862 | 0.025221 | 0.027743 | 0.072299 | 0.02438 | 0 | 0 | 0 | 0 | 0 | 0.011955 | 0.322212 | 4,196 | 139 | 82 | 30.18705 | 0.824543 | 0.07817 | 0 | 0.019048 | 0 | 0 | 0.42719 | 0.013702 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038095 | null | null | 0.019048 | 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 |
9176396ea025090d1e564363b18149e19bf37323 | 5,057 | py | Python | manager/tests/api_view_test_classes.py | UN-ICC/icc-digital-id-manager | aca0109b3202b292145326ec5523ee8f24691a83 | [
"Apache-2.0"
] | 3 | 2021-02-03T16:37:19.000Z | 2022-02-07T09:59:03.000Z | manager/tests/api_view_test_classes.py | UN-ICC/icc-digital-id-manager | aca0109b3202b292145326ec5523ee8f24691a83 | [
"Apache-2.0"
] | null | null | null | manager/tests/api_view_test_classes.py | UN-ICC/icc-digital-id-manager | aca0109b3202b292145326ec5523ee8f24691a83 | [
"Apache-2.0"
] | 2 | 2021-02-10T16:03:31.000Z | 2022-02-07T08:50:16.000Z | import pytest
from rest_framework import status
from rest_framework.test import APIClient
class TestBase:
__test__ = False
path = None
get_data = {}
put_data = {}
post_data = {}
delete_data = {}
requires_auth = True
implements_retrieve = False
implements_create = False
implemen... | 31.02454 | 84 | 0.721376 | 615 | 5,057 | 5.478049 | 0.117073 | 0.089047 | 0.12615 | 0.155833 | 0.648857 | 0.512615 | 0.453547 | 0.34669 | 0.304541 | 0.216978 | 0 | 0.022613 | 0.212972 | 5,057 | 162 | 85 | 31.216049 | 0.823869 | 0 | 0 | 0.441667 | 0 | 0 | 0.013447 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.166667 | false | 0 | 0.025 | 0.041667 | 0.508333 | 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 |
917a6b3b8a05d7c695e7c6d3cb38a9324f5ab905 | 302 | py | Python | mol/data/reader.py | TzuTingWei/mol | 9499925443f389d8e960b6d656f2953d21df3e3b | [
"MIT"
] | null | null | null | mol/data/reader.py | TzuTingWei/mol | 9499925443f389d8e960b6d656f2953d21df3e3b | [
"MIT"
] | null | null | null | mol/data/reader.py | TzuTingWei/mol | 9499925443f389d8e960b6d656f2953d21df3e3b | [
"MIT"
] | null | null | null | import os
from mol.util import read_xyz
dirname = os.path.dirname(os.path.abspath(__file__))
filename = os.path.join(dirname, 'look_and_say.dat')
with open(filename, 'r') as handle:
look_and_say = handle.read()
def get_molecule(filename):
return read_xyz(os.path.join(dirname, filename + ".xyz"))
| 25.166667 | 58 | 0.748344 | 49 | 302 | 4.387755 | 0.530612 | 0.111628 | 0.12093 | 0.15814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109272 | 302 | 11 | 59 | 27.454545 | 0.799257 | 0 | 0 | 0 | 0 | 0 | 0.069536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
917b8eb1f8726a411ad6e99afecc5eaca421cc08 | 1,793 | py | Python | misc/python/mango/application/main_driver/logstream.py | pymango/pymango | b55f831f0194b214e746b2dfb4d9c6671a1abc38 | [
"BSD-2-Clause"
] | 3 | 2020-05-11T03:23:17.000Z | 2021-03-16T09:01:48.000Z | misc/python/mango/application/main_driver/logstream.py | pymango/pymango | b55f831f0194b214e746b2dfb4d9c6671a1abc38 | [
"BSD-2-Clause"
] | null | null | null | misc/python/mango/application/main_driver/logstream.py | pymango/pymango | b55f831f0194b214e746b2dfb4d9c6671a1abc38 | [
"BSD-2-Clause"
] | 2 | 2017-03-04T11:03:40.000Z | 2020-08-01T10:01:36.000Z | __doc__ = \
"""
=======================================================================================
Main-driver :obj:`LogStream` variables (:mod:`mango.application.main_driver.logstream`)
=======================================================================================
.. currentmodule:: mango.application.ma... | 25.985507 | 108 | 0.665365 | 215 | 1,793 | 5.288372 | 0.362791 | 0.123131 | 0.118734 | 0.104661 | 0.394019 | 0.332454 | 0.332454 | 0.174142 | 0.077397 | 0.077397 | 0 | 0 | 0.126603 | 1,793 | 68 | 109 | 26.367647 | 0.726054 | 0.211378 | 0 | 0.095238 | 0 | 0 | 0.008721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 |
917c31411ccb8a75122b971cca9ce661e5940151 | 9,680 | py | Python | ucdev/cy7c65211/header.py | luftek/python-ucdev | 8d3c46d25551f1237e6a2f7a90d54c24bcb1d4f9 | [
"MIT"
] | 11 | 2015-07-08T01:28:01.000Z | 2022-01-26T14:29:47.000Z | ucdev/cy7c65211/header.py | luftek/python-ucdev | 8d3c46d25551f1237e6a2f7a90d54c24bcb1d4f9 | [
"MIT"
] | 5 | 2017-12-07T15:04:00.000Z | 2021-06-02T14:47:14.000Z | ucdev/cy7c65211/header.py | tai/python-ucdev | 8d3c46d25551f1237e6a2f7a90d54c24bcb1d4f9 | [
"MIT"
] | 4 | 2017-02-18T18:20:13.000Z | 2022-03-23T16:21:20.000Z | # -*- coding: utf-8-unix -*-
import platform
######################################################################
# Platform specific headers
######################################################################
if platform.system() == 'Linux':
src = """
typedef bool BOOL;
"""
#############################... | 25.882353 | 70 | 0.71095 | 1,210 | 9,680 | 5.194215 | 0.222314 | 0.058552 | 0.102466 | 0.078918 | 0.283055 | 0.258552 | 0.181543 | 0.16245 | 0.155768 | 0.135879 | 0 | 0.044482 | 0.208058 | 9,680 | 373 | 71 | 25.951743 | 0.775372 | 0.006921 | 0 | 0.33795 | 0 | 0 | 0.990889 | 0.152749 | 0 | 0 | 0.006432 | 0 | 0 | 1 | 0 | false | 0 | 0.00277 | 0 | 0.00277 | 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 |
917d1911394719c31fdc868c9c05aa1015cc7576 | 1,316 | py | Python | ljmc/energy.py | karnesh/Monte-Carlo-LJ | f33f08c247df963ca48b9d9f8456e26c0bb19923 | [
"MIT"
] | null | null | null | ljmc/energy.py | karnesh/Monte-Carlo-LJ | f33f08c247df963ca48b9d9f8456e26c0bb19923 | [
"MIT"
] | null | null | null | ljmc/energy.py | karnesh/Monte-Carlo-LJ | f33f08c247df963ca48b9d9f8456e26c0bb19923 | [
"MIT"
] | null | null | null | """
energy.py
function that computes the inter particle energy
It uses truncated 12-6 Lennard Jones potential
All the variables are in reduced units.
"""
def distance(atom1, atom2):
"""
Computes the square of inter particle distance
Minimum image convention is applied for distance calculatio... | 19.352941 | 101 | 0.544833 | 180 | 1,316 | 3.983333 | 0.483333 | 0.041841 | 0.050209 | 0.033473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041002 | 0.332827 | 1,316 | 67 | 102 | 19.641791 | 0.775626 | 0.037234 | 0 | 0 | 0 | 0 | 0.023952 | 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 |
917e0cc4efaf369d4d17aeaeb0fc5c964a039793 | 760 | py | Python | slender/tests/list/test_keep_if.py | torokmark/slender | 3bf815e22f7802ba48706f31ba608cf609e23e68 | [
"Apache-2.0"
] | 1 | 2020-01-10T21:51:46.000Z | 2020-01-10T21:51:46.000Z | slender/tests/list/test_keep_if.py | torokmark/slender | 3bf815e22f7802ba48706f31ba608cf609e23e68 | [
"Apache-2.0"
] | null | null | null | slender/tests/list/test_keep_if.py | torokmark/slender | 3bf815e22f7802ba48706f31ba608cf609e23e68 | [
"Apache-2.0"
] | null | null | null |
from unittest import TestCase
from expects import expect, equal, raise_error
from slender import List
class TestKeepIf(TestCase):
def test_keep_if_if_func_is_none(self):
e = List([1, 2, 3, 4, 5])
expect(e.keep_if(None).to_list()).to(equal([1, 2, 3, 4, 5]))
def test_keep_if_if_func_is_valid... | 28.148148 | 76 | 0.628947 | 133 | 760 | 3.323308 | 0.285714 | 0.108597 | 0.033937 | 0.045249 | 0.4819 | 0.475113 | 0.475113 | 0.350679 | 0.350679 | 0.246606 | 0 | 0.046667 | 0.210526 | 760 | 26 | 77 | 29.230769 | 0.69 | 0 | 0 | 0.1875 | 0 | 0 | 0.003968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 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 |
9187aae337945bbf532915814ef30a4e08766d0c | 10,938 | py | Python | python27/1.0/lib/linux/gevent/pool.py | jt6562/XX-Net | 7b78e4820a3c78c3ba3e75b3917129d17f00e9fc | [
"BSD-2-Clause"
] | 2 | 2017-04-24T03:04:45.000Z | 2017-09-19T03:38:37.000Z | python27/1.0/lib/linux/gevent/pool.py | TDUncle/XX-Net | 24b2af60dc0abc1c26211813064bb14c1e22bac8 | [
"BSD-2-Clause"
] | null | null | null | python27/1.0/lib/linux/gevent/pool.py | TDUncle/XX-Net | 24b2af60dc0abc1c26211813064bb14c1e22bac8 | [
"BSD-2-Clause"
] | 1 | 2019-04-19T09:11:54.000Z | 2019-04-19T09:11:54.000Z | # Copyright (c) 2009-2010 Denis Bilenko. See LICENSE for details.
"""Managing greenlets in a group.
The :class:`Group` class in this module abstracts a group of running greenlets.
When a greenlet dies, it's automatically removed from the group.
The :class:`Pool` which a subclass of :class:`Group` provides a way to li... | 31.162393 | 132 | 0.598555 | 1,288 | 10,938 | 4.944099 | 0.189441 | 0.028266 | 0.024026 | 0.020729 | 0.318781 | 0.281721 | 0.24152 | 0.226445 | 0.203832 | 0.17902 | 0 | 0.00329 | 0.305266 | 10,938 | 350 | 133 | 31.251429 | 0.834715 | 0.037484 | 0 | 0.403162 | 0 | 0 | 0.022311 | 0.002491 | 0 | 0 | 0 | 0.002857 | 0.007905 | 0 | null | null | 0.011858 | 0.027668 | 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 |
9192d6d1ce77aea0159f3db895468368ec72c08a | 592 | py | Python | setup.py | avryhof/ambient_api | 08194b5d8626801f2c2c7369adacb15eace54802 | [
"MIT"
] | 20 | 2018-12-24T15:40:49.000Z | 2022-01-10T18:58:41.000Z | setup.py | avryhof/ambient_api | 08194b5d8626801f2c2c7369adacb15eace54802 | [
"MIT"
] | 10 | 2018-08-17T02:01:45.000Z | 2021-01-08T23:34:59.000Z | setup.py | avryhof/ambient_api | 08194b5d8626801f2c2c7369adacb15eace54802 | [
"MIT"
] | 14 | 2018-06-13T23:40:12.000Z | 2022-01-05T06:34:13.000Z | from setuptools import setup
setup(
name="ambient_api",
version="1.5.6",
packages=["ambient_api"],
url="https://github.com/avryhof/ambient_api",
license="MIT",
author="Amos Vryhof",
author_email="amos@vryhofresearch.com",
description="A Python class for accessing the Ambient Weather API... | 29.6 | 72 | 0.640203 | 64 | 592 | 5.84375 | 0.765625 | 0.080214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.214527 | 592 | 19 | 73 | 31.157895 | 0.791398 | 0 | 0 | 0 | 0 | 0 | 0.535473 | 0.038851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 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 |
9192df0712738e90f6f197873c3a465c79101722 | 585 | py | Python | tests/llvm/static/test_main_is_found/test_main_is_found.py | ganeshutah/FPChecker | 53a471429762ace13f69733cb2f8b7227fc15b9f | [
"Apache-2.0"
] | 19 | 2019-09-28T16:15:45.000Z | 2022-02-15T15:11:28.000Z | tests/llvm/static/test_main_is_found/test_main_is_found.py | tanmaytirpankar/FPChecker | d3fe4bd9489c5705df58a67dbbc388ac1ebf56bf | [
"Apache-2.0"
] | 16 | 2020-02-01T18:43:00.000Z | 2021-12-22T14:47:39.000Z | tests/llvm/static/test_main_is_found/test_main_is_found.py | tanmaytirpankar/FPChecker | d3fe4bd9489c5705df58a67dbbc388ac1ebf56bf | [
"Apache-2.0"
] | 5 | 2020-07-27T18:15:36.000Z | 2021-11-01T18:43:34.000Z | #!/usr/bin/env python
import subprocess
import os
def setup_module(module):
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
os.chdir(THIS_DIR)
def teardown_module(module):
cmd = ["make clean"]
cmdOutput = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
def test_1():
cmd... | 22.5 | 82 | 0.666667 | 79 | 585 | 4.797468 | 0.56962 | 0.063325 | 0.126649 | 0.158311 | 0.337731 | 0.337731 | 0.337731 | 0.337731 | 0.337731 | 0.337731 | 0 | 0.004274 | 0.2 | 585 | 25 | 83 | 23.4 | 0.805556 | 0.034188 | 0 | 0.125 | 0 | 0 | 0.079929 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.1875 | false | 0.1875 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
91936b7f0195e57ee35ddf84cdb73c2bef559977 | 745 | py | Python | Dynamic_Programming/1259.Integer Replacement/Solution_BFS.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 12 | 2019-05-04T04:21:27.000Z | 2022-03-02T07:06:57.000Z | Dynamic_Programming/1259.Integer Replacement/Solution_BFS.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 1 | 2019-07-24T18:43:53.000Z | 2019-07-24T18:43:53.000Z | Dynamic_Programming/1259.Integer Replacement/Solution_BFS.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 10 | 2019-07-01T04:03:04.000Z | 2022-03-09T03:57:37.000Z | from collections import deque
class Solution:
"""
@param n: a positive integer
@return: the minimum number of replacements
"""
def integerReplacement(self, n):
# Write your code here
steps = 0
if n == 1:
return steps
queue = deque([n])
while q... | 23.28125 | 47 | 0.436242 | 76 | 745 | 4.263158 | 0.539474 | 0.064815 | 0.12963 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02584 | 0.480537 | 745 | 31 | 48 | 24.032258 | 0.81137 | 0.127517 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9197f982af32fc988794515b093dd5bf984c98a5 | 4,132 | py | Python | src/biota_models/vegetation/model/constants_json_create.py | Deltares/NBSDynamics | 4710da529d85b588ea249f6e2b4f4cac132bb34f | [
"MIT"
] | 2 | 2022-01-14T05:02:04.000Z | 2022-03-02T10:42:59.000Z | src/biota_models/vegetation/model/constants_json_create.py | Deltares/NBSDynamics | 4710da529d85b588ea249f6e2b4f4cac132bb34f | [
"MIT"
] | 35 | 2021-11-01T08:59:02.000Z | 2021-11-19T16:47:17.000Z | src/biota_models/vegetation/model/constants_json_create.py | Deltares/NBSDynamics | 4710da529d85b588ea249f6e2b4f4cac132bb34f | [
"MIT"
] | 1 | 2022-03-16T07:11:00.000Z | 2022-03-16T07:11:00.000Z | import json
schema = {
"Spartina": {
"ColStart": "2000-04-01",
"ColEnd": "2000-05-31",
"random": 7,
"mud_colonization": [0.0, 0.0],
"fl_dr": 0.005,
"Maximum age": 20,
"Number LifeStages": 2,
"initial root length": 0.05,
"initial shoot length":... | 43.494737 | 76 | 0.547193 | 580 | 4,132 | 3.841379 | 0.181034 | 0.010772 | 0.010772 | 0.007181 | 0.766158 | 0.706912 | 0.675045 | 0.593357 | 0.426391 | 0.373429 | 0 | 0.153587 | 0.281462 | 4,132 | 94 | 77 | 43.957447 | 0.596834 | 0.232091 | 0 | 0.282609 | 0 | 0 | 0.407702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.01087 | 0 | 0.01087 | 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 |
91993f87e0ff04f74f7a6f31b278e5b76bf7a8ba | 1,376 | py | Python | Stream-3/Full-Stack-Development/10.Custom-User-And-Email-Authentication/2.Custom-User-Model/auth_demo/accounts/models.py | GunnerJnr/_CodeInstitute | efba0984a3dc71558eef97724c85e274a712798c | [
"MIT"
] | 4 | 2017-10-10T14:00:40.000Z | 2021-01-27T14:08:26.000Z | Stream-3/Full-Stack-Development/10.Custom-User-And-Email-Authentication/2.Custom-User-Model/auth_demo/accounts/models.py | GunnerJnr/_CodeInstitute | efba0984a3dc71558eef97724c85e274a712798c | [
"MIT"
] | 115 | 2019-10-24T11:18:33.000Z | 2022-03-11T23:15:42.000Z | Stream-3/Full-Stack-Development/10.Custom-User-And-Email-Authentication/2.Custom-User-Model/auth_demo/accounts/models.py | GunnerJnr/_CodeInstitute | efba0984a3dc71558eef97724c85e274a712798c | [
"MIT"
] | 5 | 2017-09-22T21:42:39.000Z | 2020-02-07T02:18:11.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import AbstractUser, UserManager
from django.db import models
from django.utils import timezone
# Create your models here.
# Create our new user class
class AccountUserManager(UserManager):
def _create_user(self, usern... | 32 | 95 | 0.641715 | 167 | 1,376 | 5.155689 | 0.497006 | 0.03252 | 0.031359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001012 | 0.281977 | 1,376 | 42 | 96 | 32.761905 | 0.870445 | 0.303052 | 0 | 0 | 0 | 0 | 0.034325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.210526 | 0 | 0.473684 | 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 |
919b5dc79a4db8bc0c773739c3eacec33d693967 | 11,973 | py | Python | histoGAN.py | mahmoudnafifi/HistoGAN | 50be1482638ace3ec85d733e849dec494ede155b | [
"MIT"
] | 169 | 2020-11-25T07:42:26.000Z | 2022-03-30T03:08:35.000Z | histoGAN.py | mahmoudnafifi/HistoGAN | 50be1482638ace3ec85d733e849dec494ede155b | [
"MIT"
] | 22 | 2020-12-22T13:14:24.000Z | 2022-03-31T08:41:26.000Z | histoGAN.py | mahmoudnafifi/HistoGAN | 50be1482638ace3ec85d733e849dec494ede155b | [
"MIT"
] | 19 | 2020-11-28T17:28:46.000Z | 2022-02-23T06:09:23.000Z | """
If you find this code useful, please cite our paper:
Mahmoud Afifi, Marcus A. Brubaker, and Michael S. Brown. "HistoGAN:
Controlling Colors of GAN-Generated and Real Images via Color Histograms."
In CVPR, 2021.
@inproceedings{afifi2021histogan,
title={Histo{GAN}: Controlling Colors of {GAN}-Generated and R... | 39.127451 | 80 | 0.647791 | 1,554 | 11,973 | 4.725869 | 0.158301 | 0.044118 | 0.083333 | 0.023965 | 0.430283 | 0.323393 | 0.306236 | 0.290441 | 0.280093 | 0.259123 | 0 | 0.014808 | 0.227261 | 11,973 | 305 | 81 | 39.255738 | 0.778967 | 0.038336 | 0 | 0.241758 | 1 | 0 | 0.161669 | 0.02512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007326 | false | 0 | 0.040293 | 0 | 0.054945 | 0.029304 | 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 |
919b5e557651de3e6e934fa6c4b16a3e517ceea9 | 501 | py | Python | apps/careeropportunity/migrations/0003_careeropportunity_deadline.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 32 | 2017-02-22T13:38:38.000Z | 2022-03-31T23:29:54.000Z | apps/careeropportunity/migrations/0003_careeropportunity_deadline.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 694 | 2017-02-15T23:09:52.000Z | 2022-03-31T23:16:07.000Z | apps/careeropportunity/migrations/0003_careeropportunity_deadline.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 35 | 2017-09-02T21:13:09.000Z | 2022-02-21T11:30:30.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-10-05 18:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("careeropportunity", "0002_careeropportunity_job_type")]
operations = [
migrations.AddFie... | 26.368421 | 87 | 0.670659 | 54 | 501 | 6.037037 | 0.759259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053435 | 0.215569 | 501 | 18 | 88 | 27.833333 | 0.776081 | 0.135729 | 0 | 0 | 1 | 0 | 0.197674 | 0.072093 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
919c72f34a550015e3cadb40b602759ce1ee194d | 14,482 | py | Python | benchmark/python/ffi/benchmark_ffi.py | grygielski/incubator-mxnet | 45952e21a35e32a04b7607b121085973369a42db | [
"BSL-1.0",
"Apache-2.0"
] | 211 | 2016-06-06T08:32:36.000Z | 2021-07-03T16:50:16.000Z | benchmark/python/ffi/benchmark_ffi.py | grygielski/incubator-mxnet | 45952e21a35e32a04b7607b121085973369a42db | [
"BSL-1.0",
"Apache-2.0"
] | 42 | 2017-01-05T02:45:13.000Z | 2020-08-11T23:45:27.000Z | benchmark/python/ffi/benchmark_ffi.py | grygielski/incubator-mxnet | 45952e21a35e32a04b7607b121085973369a42db | [
"BSL-1.0",
"Apache-2.0"
] | 58 | 2016-10-27T07:37:08.000Z | 2021-07-03T16:50:17.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 51.90681 | 116 | 0.646596 | 1,922 | 14,482 | 4.74974 | 0.221124 | 0.177128 | 0.31986 | 0.072845 | 0.459634 | 0.367729 | 0.288531 | 0.193121 | 0.132873 | 0.073173 | 0 | 0.048544 | 0.160751 | 14,482 | 278 | 117 | 52.093525 | 0.702567 | 0.059039 | 0 | 0.028807 | 0 | 0 | 0.172216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028807 | false | 0 | 0.028807 | 0 | 0.082305 | 0.012346 | 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 |
91a824d6a95f0e9a4a572ff289971a58109b3c3c | 3,887 | py | Python | test/present.py | jchampio/apache-websocket | 18ad4ae2fc99381b8d75785f492a479f789b322b | [
"Apache-2.0"
] | 8 | 2015-09-10T21:49:25.000Z | 2022-02-02T04:39:00.000Z | test/present.py | jchampio/apache-websocket | 18ad4ae2fc99381b8d75785f492a479f789b322b | [
"Apache-2.0"
] | 34 | 2015-09-10T21:40:09.000Z | 2020-09-04T22:16:08.000Z | test/present.py | jchampio/apache-websocket | 18ad4ae2fc99381b8d75785f492a479f789b322b | [
"Apache-2.0"
] | 5 | 2016-01-22T05:16:54.000Z | 2017-10-18T12:28:02.000Z | #! /usr/bin/env python
#
# Presents the results of an Autobahn TestSuite run in TAP format.
#
# Copyright 2015 Jacob Champion
#
# 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://ww... | 28.792593 | 84 | 0.623874 | 496 | 3,887 | 4.818548 | 0.362903 | 0.025105 | 0.010879 | 0.013389 | 0.033473 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013107 | 0.273733 | 3,887 | 134 | 85 | 29.007463 | 0.83351 | 0.289426 | 0 | 0.026316 | 0 | 0 | 0.141492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.105263 | 0.078947 | 0 | 0.131579 | 0.118421 | 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 |
91a977f44ca6b26789c3c66246a46fa0280ee2a7 | 1,143 | py | Python | softwarecollections/scls/migrations/0004_other_repos_default_values.py | WEBZCC/softwarecollections | efee5c3c276033d526a0cdba504d43deff71581e | [
"BSD-3-Clause"
] | 39 | 2016-12-24T02:57:55.000Z | 2022-02-15T09:29:43.000Z | softwarecollections/scls/migrations/0004_other_repos_default_values.py | WEBZCC/softwarecollections | efee5c3c276033d526a0cdba504d43deff71581e | [
"BSD-3-Clause"
] | 32 | 2016-11-21T15:05:07.000Z | 2021-12-06T11:52:32.000Z | softwarecollections/scls/migrations/0004_other_repos_default_values.py | WEBZCC/softwarecollections | efee5c3c276033d526a0cdba504d43deff71581e | [
"BSD-3-Clause"
] | 13 | 2016-12-14T10:42:22.000Z | 2022-01-01T20:35:15.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scls', '0003_other_repos'),
]
operations = [
migrations.AlterField(
model_name='otherrepo',
name='ar... | 32.657143 | 185 | 0.582677 | 107 | 1,143 | 6.056075 | 0.420561 | 0.123457 | 0.154321 | 0.179012 | 0.552469 | 0.510802 | 0.381173 | 0.381173 | 0.16358 | 0 | 0 | 0.013095 | 0.265092 | 1,143 | 34 | 186 | 33.617647 | 0.758333 | 0.018373 | 0 | 0.428571 | 0 | 0 | 0.14375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 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 |
91ab6aa12f229c7b9ddab5414461949479dfe028 | 787 | py | Python | plugins/polio/migrations/0029_campaign_country.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | 29 | 2020-12-26T07:22:19.000Z | 2022-03-07T13:40:09.000Z | plugins/polio/migrations/0029_campaign_country.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | 150 | 2020-11-09T15:03:27.000Z | 2022-03-07T15:36:07.000Z | plugins/polio/migrations/0029_campaign_country.py | BLSQ/iaso | 95c8087c0182bdd576598eb8cd39c440e58e15d7 | [
"MIT"
] | 4 | 2020-11-09T10:38:13.000Z | 2021-10-04T09:42:47.000Z | # Generated by Django 3.1.13 on 2021-10-04 11:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("iaso", "0107_auto_20211001_1845"),
("polio", "0028_remove_campaign_budget_first_draft_submitted_at"),
]
op... | 28.107143 | 90 | 0.590851 | 83 | 787 | 5.385542 | 0.698795 | 0.053691 | 0.06264 | 0.098434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066298 | 0.310038 | 787 | 27 | 91 | 29.148148 | 0.756906 | 0.05845 | 0 | 0.095238 | 1 | 0 | 0.255751 | 0.101489 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 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 |
91ad7c273462430b62373174e1161a8ff1416f63 | 715 | py | Python | atcoder/corp/codethxfes2014a_e.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | atcoder/corp/codethxfes2014a_e.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | atcoder/corp/codethxfes2014a_e.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | r, c, m = map(int, input().split())
n = int(input())
op = [list(map(lambda x: int(x) - 1, input().split())) for _ in range(n)]
board = [[0 for _ in range(c)] for _ in range(r)]
for ra, rb, ca, cb in op:
for j in range(ra, rb + 1):
for k in range(ca, cb + 1):
board[j][k] += 1
cnt = 0
for i in ra... | 25.535714 | 73 | 0.439161 | 129 | 715 | 2.410853 | 0.24031 | 0.22508 | 0.096463 | 0.106109 | 0.205788 | 0.205788 | 0.205788 | 0.205788 | 0.205788 | 0.205788 | 0 | 0.036036 | 0.379021 | 715 | 27 | 74 | 26.481481 | 0.664414 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.04 | 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 |
91ae1121ab522c5ec74869736cdca27ee08ca053 | 3,080 | py | Python | halmodule.py | richteer/pyfatafl | 1faddcf5d9eb36cbc6952b9a8e8bb899989f7112 | [
"MIT"
] | null | null | null | halmodule.py | richteer/pyfatafl | 1faddcf5d9eb36cbc6952b9a8e8bb899989f7112 | [
"MIT"
] | null | null | null | halmodule.py | richteer/pyfatafl | 1faddcf5d9eb36cbc6952b9a8e8bb899989f7112 | [
"MIT"
] | null | null | null | from module import XMPPModule
import halutils
import pyfatafl
class Game():
self.players = []
self.xmpp = None
self.b = None
self.turn = ""
self.mod = None
def __init__(self, mod, p1, p2):
self.players = [p1, p2]
self.mod = mod
self.xmpp = mod.xmpp
self.xmpp.sendMsg(p2, "You have been challenged to play... | 29.615385 | 147 | 0.656494 | 461 | 3,080 | 4.370933 | 0.314534 | 0.051613 | 0.049132 | 0.039702 | 0.126551 | 0.048635 | 0.048635 | 0.048635 | 0.048635 | 0.048635 | 0 | 0.005255 | 0.196753 | 3,080 | 103 | 148 | 29.902913 | 0.809216 | 0.049675 | 0 | 0.156627 | 0 | 0 | 0.321465 | 0 | 0 | 0 | 0 | 0.009709 | 0 | 0 | null | null | 0 | 0.036145 | 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 |
91b495763107bc2ceb225b3984a8b4ffae309299 | 2,914 | py | Python | data_converter/data_converter.py | jkchen2/JshBot-plugins | b5999fecf0df067e34673ff193dcfbf8c7e2fde2 | [
"MIT"
] | 1 | 2021-08-09T19:28:49.000Z | 2021-08-09T19:28:49.000Z | data_converter/data_converter.py | jkchen2/JshBot-plugins | b5999fecf0df067e34673ff193dcfbf8c7e2fde2 | [
"MIT"
] | null | null | null | data_converter/data_converter.py | jkchen2/JshBot-plugins | b5999fecf0df067e34673ff193dcfbf8c7e2fde2 | [
"MIT"
] | 2 | 2017-07-14T00:15:54.000Z | 2019-03-02T09:46:21.000Z | import discord
from jshbot import utilities, data, configurations, plugins, logger
from jshbot.exceptions import BotException, ConfiguredBotException
from jshbot.commands import (
Command, SubCommand, Shortcut, ArgTypes, Attachment, Arg, Opt, MessageTypes, Response)
__version__ = '0.1.0'
CBException = ConfiguredB... | 38.853333 | 96 | 0.576527 | 351 | 2,914 | 4.652422 | 0.273504 | 0.072872 | 0.051439 | 0.060012 | 0.363748 | 0.256583 | 0.1782 | 0.147581 | 0.131047 | 0.083282 | 0 | 0.003923 | 0.300275 | 2,914 | 74 | 97 | 39.378378 | 0.796959 | 0.075841 | 0 | 0.095238 | 0 | 0 | 0.122899 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.047619 | false | 0.015873 | 0.063492 | 0.015873 | 0.174603 | 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 |
91b880c2b2d9577a02c8519251133c3cee61564c | 14,894 | py | Python | codes/elastoplasticity_spectralAnalysis/planeStress/slowWavePlaneStressSigDriven.py | adRenaud/research | 2f0062a1800d7a17577bbfc2393b084253d567f4 | [
"MIT"
] | 1 | 2021-06-18T14:52:03.000Z | 2021-06-18T14:52:03.000Z | codes/elastoplasticity_spectralAnalysis/planeStress/slowWavePlaneStressSigDriven.py | adRenaud/research | 2f0062a1800d7a17577bbfc2393b084253d567f4 | [
"MIT"
] | 1 | 2019-01-07T13:11:11.000Z | 2019-01-07T13:11:11.000Z | codes/elastoplasticity_spectralAnalysis/planeStress/slowWavePlaneStressSigDriven.py | adRenaud/research | 2f0062a1800d7a17577bbfc2393b084253d567f4 | [
"MIT"
] | null | null | null | # !\usr\bin\python
import numpy as np
from mpl_toolkits import mplot3d
import matplotlib.pyplot as plt
import scipy.optimize
from matplotlib import animation
from scipy.integrate import ode
import pdb
# Material parameters
rho = 7800.
E = 2.e11
nu = 0.3
mu = 0.5*E/(1.+nu)
kappa = E/(3.*(1.-2.*nu))
lamb = kappa-2.*mu/3... | 37.422111 | 216 | 0.589701 | 2,644 | 14,894 | 3.294629 | 0.131619 | 0.013776 | 0.007577 | 0.008725 | 0.362645 | 0.316841 | 0.239353 | 0.170474 | 0.1443 | 0.122259 | 0 | 0.127085 | 0.178998 | 14,894 | 397 | 217 | 37.516373 | 0.585296 | 0.110044 | 0 | 0.09894 | 0 | 0 | 0.022156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028269 | null | null | 0.007067 | 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 |
91c2124933101c4997c3e85497e979cf423b2846 | 10,418 | py | Python | Tests/test_ironmath.py | btddg28/ironpython | 8006238c19d08db5db9bada39d765143e631059e | [
"Apache-2.0"
] | null | null | null | Tests/test_ironmath.py | btddg28/ironpython | 8006238c19d08db5db9bada39d765143e631059e | [
"Apache-2.0"
] | null | null | null | Tests/test_ironmath.py | btddg28/ironpython | 8006238c19d08db5db9bada39d765143e631059e | [
"Apache-2.0"
] | null | null | null | #####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Apache License, Version 2.0. A
# copy of the license can be found in the License.html file at the root of th... | 41.015748 | 241 | 0.656748 | 1,016 | 10,418 | 6.690945 | 0.25689 | 0.090026 | 0.023683 | 0.011474 | 0.31877 | 0.230656 | 0.192262 | 0.150044 | 0.10915 | 0.10915 | 0 | 0.203911 | 0.209637 | 10,418 | 253 | 242 | 41.177866 | 0.621691 | 0.062584 | 0 | 0.333333 | 0 | 0 | 0.010129 | 0 | 0 | 0 | 0.053154 | 0 | 0.095238 | 1 | 0.068783 | false | 0.005291 | 0.037037 | 0.010582 | 0.121693 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91c59190736d04c98947f42fd90af017204111ac | 505 | py | Python | ndscheduler/server/handlers/index.py | symphonyrm/ndscheduler | e9a56ef345b25916a2b53d1ea3349efb532d63ce | [
"BSD-2-Clause"
] | null | null | null | ndscheduler/server/handlers/index.py | symphonyrm/ndscheduler | e9a56ef345b25916a2b53d1ea3349efb532d63ce | [
"BSD-2-Clause"
] | null | null | null | ndscheduler/server/handlers/index.py | symphonyrm/ndscheduler | e9a56ef345b25916a2b53d1ea3349efb532d63ce | [
"BSD-2-Clause"
] | null | null | null | """Serves the single page app web ui."""
import json
import tornado.gen
from ndscheduler import settings
from ndscheduler import utils
from ndscheduler.server.handlers import base
class Handler(base.BaseHandler):
"""Index page request handler."""
@tornado.gen.coroutine
def get(self):
"""Serve u... | 25.25 | 82 | 0.732673 | 69 | 505 | 5.231884 | 0.565217 | 0.124654 | 0.072022 | 0.088643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174257 | 505 | 19 | 83 | 26.578947 | 0.865707 | 0.229703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.7 | 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 |
91c6b0a778c821558e257de0d52e71c5f953c2bf | 801 | py | Python | Scripts/xbbtools/xbb_io.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 3 | 2017-10-23T21:53:57.000Z | 2019-09-23T05:14:12.000Z | Scripts/xbbtools/xbb_io.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | null | null | null | Scripts/xbbtools/xbb_io.py | eoc21/biopython | c0f8db8f55a506837c320459957a0ce99b0618b6 | [
"PostgreSQL"
] | 6 | 2020-02-26T16:34:20.000Z | 2020-03-04T15:34:00.000Z | #!/usr/bin/env python
# Created: Wed Jun 21 13:46:35 2000
# Last changed: Time-stamp: <00/12/02 14:18:23 thomas>
# Thomas.Sicheritz@molbio.uu.se, http://evolution.bmc.uu.se/~thomas
# File: xbb_io.py
import os, sys # os.system, sys.argv
sys.path.insert(0, '.')
sys.path.insert(0, os.path.expanduser('~thomas/cbs/python/... | 23.558824 | 81 | 0.604245 | 113 | 801 | 4.212389 | 0.663717 | 0.016807 | 0.054622 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045531 | 0.259675 | 801 | 33 | 82 | 24.272727 | 0.757167 | 0.260924 | 0 | 0 | 0 | 0 | 0.049658 | 0.047945 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.055556 | 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 |
91c92b40c4f1e26399a0ff522ec30f406f0ff98d | 934 | py | Python | nlp_annotator_api/server/app.py | IBM/deepsearch-nlp-annotator-api-example | 76c2c8fd83c1e6d51c51c7b581a8c3f273b23c40 | [
"Apache-2.0"
] | 3 | 2022-01-04T12:15:22.000Z | 2022-03-25T21:19:20.000Z | nlp_annotator_api/server/app.py | IBM/deepsearch-nlp-annotator-api-example | 76c2c8fd83c1e6d51c51c7b581a8c3f273b23c40 | [
"Apache-2.0"
] | null | null | null | nlp_annotator_api/server/app.py | IBM/deepsearch-nlp-annotator-api-example | 76c2c8fd83c1e6d51c51c7b581a8c3f273b23c40 | [
"Apache-2.0"
] | 5 | 2021-09-27T08:26:09.000Z | 2022-03-10T11:41:35.000Z | import logging
import os
import aiohttp.web
from connexion import AioHttpApp
from nlp_annotator_api.config.config import conf
from nlp_annotator_api.config.logging import setup_logging
from nlp_annotator_api.server.middleware.statsd_middleware import StatsdMiddleware
from nlp_annotator_api.server.signals.statsd_clien... | 26.685714 | 86 | 0.799786 | 128 | 934 | 5.421875 | 0.4375 | 0.086455 | 0.108069 | 0.10951 | 0.144092 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007168 | 0.103854 | 934 | 34 | 87 | 27.470588 | 0.821983 | 0 | 0 | 0 | 0 | 0 | 0.073876 | 0.025696 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.043478 | 0.347826 | 0 | 0.347826 | 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 |
91c9ae32ffd6100ceb2a8fceee2c2c30ae4e7dc4 | 3,518 | py | Python | dataactcore/migrations/versions/8692ab1298e1_replace_filerequest_with_filegeneration.py | brianherman/data-act-broker-backend | 80eb055b9d245046192f7ad4fd0be7d0e11d2dec | [
"CC0-1.0"
] | 1 | 2019-06-22T21:53:16.000Z | 2019-06-22T21:53:16.000Z | dataactcore/migrations/versions/8692ab1298e1_replace_filerequest_with_filegeneration.py | brianherman/data-act-broker-backend | 80eb055b9d245046192f7ad4fd0be7d0e11d2dec | [
"CC0-1.0"
] | 3 | 2021-08-22T11:47:45.000Z | 2022-03-29T22:06:49.000Z | dataactcore/migrations/versions/8692ab1298e1_replace_filerequest_with_filegeneration.py | brianherman/data-act-broker-backend | 80eb055b9d245046192f7ad4fd0be7d0e11d2dec | [
"CC0-1.0"
] | 1 | 2020-07-17T23:50:56.000Z | 2020-07-17T23:50:56.000Z | """replace FileRequest with FileGeneration
Revision ID: 8692ab1298e1
Revises: 4bbc47f2b48d
Create Date: 2018-10-24 14:54:39.278159
"""
# revision identifiers, used by Alembic.
revision = '8692ab1298e1'
down_revision = '4bbc47f2b48d'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as ... | 45.102564 | 158 | 0.726549 | 484 | 3,518 | 4.958678 | 0.200413 | 0.204167 | 0.04 | 0.05 | 0.529583 | 0.4725 | 0.44625 | 0.3575 | 0.283333 | 0.265 | 0 | 0.017025 | 0.115122 | 3,518 | 77 | 159 | 45.688312 | 0.753935 | 0.091245 | 0 | 0.078431 | 0 | 0 | 0.376701 | 0.160177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.039216 | 0 | 0.117647 | 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 |
91d4aad729e6a3ae80ef7ec7692d7daf662bb479 | 1,127 | py | Python | setup.py | garnaat/details | 07f2fc7f27b29a6ddcda918abf6ae0882450319e | [
"Apache-2.0"
] | 27 | 2015-03-01T10:54:32.000Z | 2021-09-08T14:52:30.000Z | setup.py | garnaat/details | 07f2fc7f27b29a6ddcda918abf6ae0882450319e | [
"Apache-2.0"
] | 3 | 2015-01-29T08:26:13.000Z | 2017-02-14T09:35:06.000Z | setup.py | garnaat/details | 07f2fc7f27b29a6ddcda918abf6ae0882450319e | [
"Apache-2.0"
] | 7 | 2015-03-26T13:53:34.000Z | 2017-05-23T20:58:28.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
requires = [
]
setup(
name='details',
version=open(os.path.join('details', '_version')).read(),
description='Tools for processing AWS detailed billing reports',
long_description=open('README.md').read(),
author='Mitch G... | 30.459459 | 68 | 0.632653 | 117 | 1,127 | 6.034188 | 0.581197 | 0.161473 | 0.212465 | 0.110482 | 0.076487 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011312 | 0.215617 | 1,127 | 36 | 69 | 31.305556 | 0.78733 | 0.017746 | 0 | 0 | 0 | 0 | 0.517179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91d7cad5b4e7e6fe780b392c22b198941b8e6380 | 10,434 | py | Python | server/splunkdj/views.py | splunk/splunk-webframework | a4179558616f5f4fcbfa2b54e9179f30e6395264 | [
"Apache-2.0"
] | 31 | 2015-01-20T12:49:17.000Z | 2022-02-21T05:21:44.000Z | server/splunkdj/views.py | splunk/splunk-webframework | a4179558616f5f4fcbfa2b54e9179f30e6395264 | [
"Apache-2.0"
] | 2 | 2015-07-08T19:40:41.000Z | 2018-04-26T21:34:35.000Z | server/splunkdj/views.py | splunk/splunk-webframework | a4179558616f5f4fcbfa2b54e9179f30e6395264 | [
"Apache-2.0"
] | 8 | 2015-02-26T13:19:45.000Z | 2022-03-27T08:34:20.000Z | import sys
import pprint
import json
import datetime
import uuid
import urllib
import types
import traceback
from django.core.urlresolvers import reverse, resolve
from django.http import HttpResponseRedirect, Http404, HttpResponseServerError, HttpResponseNotFound
from django.conf import settings
from django.contrib.aut... | 37.804348 | 119 | 0.637531 | 1,256 | 10,434 | 5.11465 | 0.246019 | 0.00934 | 0.010274 | 0.012142 | 0.132783 | 0.074408 | 0.051681 | 0.051681 | 0.051681 | 0.051681 | 0 | 0.00382 | 0.247364 | 10,434 | 275 | 120 | 37.941818 | 0.814211 | 0.072168 | 0 | 0.096916 | 0 | 0.008811 | 0.16369 | 0.025256 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096916 | null | null | 0.008811 | 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 |
91d867e70ec797fb77cf3fedd501ea6a1aca218d | 8,301 | py | Python | wbia/plottool/interact_keypoints.py | mmulich/wildbook-ia | 81b405e2bfaa3f6c30a546fb6dc6e6488e9b2663 | [
"Apache-2.0"
] | null | null | null | wbia/plottool/interact_keypoints.py | mmulich/wildbook-ia | 81b405e2bfaa3f6c30a546fb6dc6e6488e9b2663 | [
"Apache-2.0"
] | null | null | null | wbia/plottool/interact_keypoints.py | mmulich/wildbook-ia | 81b405e2bfaa3f6c30a546fb6dc6e6488e9b2663 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
import utool as ut
import six
from . import draw_func2 as df2
from wbia.plottool import plot_helpers as ph
from wbia.plottool import interact_helpers as ih
from wbia.plottool.viz_featrow import draw_feat_row
from wbia.plottool.viz_keypoints import show_keypoints
from wbia.plottool... | 39.15566 | 113 | 0.563787 | 1,035 | 8,301 | 4.393237 | 0.201932 | 0.037387 | 0.024632 | 0.021553 | 0.554651 | 0.506928 | 0.490653 | 0.451067 | 0.444469 | 0.362657 | 0 | 0.010508 | 0.312131 | 8,301 | 211 | 114 | 39.341232 | 0.785814 | 0.292013 | 0 | 0.435115 | 0 | 0 | 0.061973 | 0 | 0 | 0 | 0 | 0.014218 | 0 | 1 | 0.068702 | false | 0.022901 | 0.10687 | 0 | 0.183206 | 0.007634 | 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 |
91da549f96f9ccca48e20a796a48546be83febae | 206 | py | Python | exercises/ja/exc_03_16_01.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 2,085 | 2019-04-17T13:10:40.000Z | 2022-03-30T21:51:46.000Z | exercises/ja/exc_03_16_01.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 79 | 2019-04-18T14:42:55.000Z | 2022-03-07T08:15:43.000Z | exercises/ja/exc_03_16_01.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 361 | 2019-04-17T13:34:32.000Z | 2022-03-28T04:42:45.000Z | import spacy
nlp = spacy.load("ja_core_news_sm")
text = (
"チックフィレイはジョージア州カレッジパークに本社を置く、"
"チキンサンドを専門とするアメリカのファストフードレストランチェーンです。"
)
# トークナイズのみ行う
doc = nlp(text)
print([token.text for token in doc])
| 17.166667 | 42 | 0.73301 | 23 | 206 | 6.434783 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150485 | 206 | 11 | 43 | 18.727273 | 0.845714 | 0.048544 | 0 | 0 | 0 | 0 | 0.407216 | 0.329897 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91db99963a9d2cafd0fa8e863ed2ec3e7df55f3e | 1,320 | py | Python | opendatatools/common/ui_util.py | harveywwu/OpenData | cf421465dd9b11fdbb2fbf4d00512e3aaf09d070 | [
"Apache-2.0"
] | null | null | null | opendatatools/common/ui_util.py | harveywwu/OpenData | cf421465dd9b11fdbb2fbf4d00512e3aaf09d070 | [
"Apache-2.0"
] | null | null | null | opendatatools/common/ui_util.py | harveywwu/OpenData | cf421465dd9b11fdbb2fbf4d00512e3aaf09d070 | [
"Apache-2.0"
] | 1 | 2020-05-29T00:26:59.000Z | 2020-05-29T00:26:59.000Z | # -*- coding: UTF-8 -*-
import sys, time
class ShowProcess():
"""
显示处理进度的类
调用该类相关函数即可实现处理进度的显示
"""
i = 0 # 当前的处理进度
max_steps = 0 # 总共需要处理的次数
max_arrow = 50 #进度条的长度
infoDone = 'done'
# 初始化函数,需要知道总共的处理次数
def __init__(self, max_steps, infoDone = 'Done'):
self.max_steps = ... | 26.938776 | 77 | 0.526515 | 157 | 1,320 | 4.197452 | 0.394904 | 0.121396 | 0.091047 | 0.036419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025054 | 0.304545 | 1,320 | 49 | 78 | 26.938776 | 0.69281 | 0.159848 | 0 | 0.060606 | 0 | 0 | 0.027645 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | 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 |
91e4401665d568cd4d6102a4a69c6d2f7668744f | 602 | py | Python | backend/api/v1/dialogs/urls.py | donicrazy/ChatApp | ab129a9c0706bbb972cbce43283ba6e06d144635 | [
"MIT"
] | null | null | null | backend/api/v1/dialogs/urls.py | donicrazy/ChatApp | ab129a9c0706bbb972cbce43283ba6e06d144635 | [
"MIT"
] | 7 | 2021-03-19T04:47:13.000Z | 2022-01-13T02:02:46.000Z | backend/api/v1/dialogs/urls.py | donicrazy/ChatApp | ab129a9c0706bbb972cbce43283ba6e06d144635 | [
"MIT"
] | null | null | null | from django.urls import path
from backend.api.v1.dialogs.views import (
DialogListCreateView,
DialogRetrieveUpdateDestroyAPIView,
DialogMembershipListCreateView,
DialogMessageListCreateView,
DialogMessageRetrieveUpdateDestroyAPIView,
)
urlpatterns = [
path('', DialogListCreateView.as_view()),
... | 35.411765 | 83 | 0.770764 | 45 | 602 | 10.2 | 0.488889 | 0.065359 | 0.087146 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001876 | 0.114618 | 602 | 16 | 84 | 37.625 | 0.859287 | 0 | 0 | 0 | 0 | 0 | 0.074751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91e4f118680c4b4128c740a76beaad48599ab626 | 848 | py | Python | datamart/tests/test_Dimension.py | josemrsantos/zoopla_datamart | f3a3af8071199deeb712d1814aecb6cc3cd88d57 | [
"MIT"
] | 1 | 2016-02-01T20:27:25.000Z | 2016-02-01T20:27:25.000Z | datamart/tests/test_Dimension.py | josemrsantos/zoopla_datamart | f3a3af8071199deeb712d1814aecb6cc3cd88d57 | [
"MIT"
] | null | null | null | datamart/tests/test_Dimension.py | josemrsantos/zoopla_datamart | f3a3af8071199deeb712d1814aecb6cc3cd88d57 | [
"MIT"
] | null | null | null | from ..datamart import *
def test_create_dimension():
dimension = Dimension("test_dimension")
assert dimension.is_degenerate == False
def test_create_dimension_insert_2_identical_lines():
''' with 2 identical lines, only one gets stored
'''
dimension = Dimension("test_dimension")
dimension.add... | 33.92 | 69 | 0.732311 | 99 | 848 | 6.040404 | 0.313131 | 0.180602 | 0.100334 | 0.110368 | 0.670569 | 0.576923 | 0.576923 | 0.448161 | 0.304348 | 0.304348 | 0 | 0.015493 | 0.162736 | 848 | 24 | 70 | 35.333333 | 0.826761 | 0.128538 | 0 | 0.411765 | 1 | 0 | 0.087379 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.176471 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
91e82476dc55d0591c20d0a5e9975a53641bca72 | 6,711 | py | Python | examples/Word2Vec_AverageVectorsTuto.py | noiseux1523/Deep-Belief-Network | 6eb364a85fb128a33c539e5e414ef451f24e499d | [
"MIT"
] | 1 | 2019-08-20T12:13:34.000Z | 2019-08-20T12:13:34.000Z | examples/Word2Vec_AverageVectorsTuto.py | noiseux1523/Deep-Belief-Network | 6eb364a85fb128a33c539e5e414ef451f24e499d | [
"MIT"
] | null | null | null | examples/Word2Vec_AverageVectorsTuto.py | noiseux1523/Deep-Belief-Network | 6eb364a85fb128a33c539e5e414ef451f24e499d | [
"MIT"
] | null | null | null | # Author: Angela Chapman
# Date: 8/6/2014
#
# This file contains code to accompany the Kaggle tutorial
# "Deep learning goes to the movies". The code in this file
# is for Parts 2 and 3 of the tutorial, which cover how to
# train a model using Word2Vec.
#
# *************************************** #
# ****** Re... | 37.915254 | 118 | 0.670094 | 848 | 6,711 | 5.220519 | 0.336085 | 0.022363 | 0.018071 | 0.007454 | 0.121075 | 0.109781 | 0.094421 | 0.062345 | 0.062345 | 0.029365 | 0 | 0.016003 | 0.236477 | 6,711 | 177 | 119 | 37.915254 | 0.84797 | 0.336463 | 0 | 0.048193 | 0 | 0 | 0.170927 | 0.031721 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108434 | null | null | 0.108434 | 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 |
91eebd9cfe8ecc166ed16501e2c6d724f724535d | 4,110 | py | Python | theory/model/form.py | ralfonso/theory | 41684969313cfc545d74b306e409fd5bf21387b3 | [
"MIT"
] | 4 | 2015-07-03T19:53:59.000Z | 2016-04-25T03:03:56.000Z | theory/model/form.py | ralfonso/theory | 41684969313cfc545d74b306e409fd5bf21387b3 | [
"MIT"
] | null | null | null | theory/model/form.py | ralfonso/theory | 41684969313cfc545d74b306e409fd5bf21387b3 | [
"MIT"
] | 2 | 2020-03-29T22:02:29.000Z | 2021-07-13T07:17:19.000Z | import formencode
import pylons
from pylons import app_globals as g
class OutputSchema(formencode.Schema):
allow_extra_fields = False
enabled = formencode.validators.Int()
class ConfigForm(formencode.Schema):
allow_extra_fields = True
filter_extra_fields = True
#pre_validators = [formencode.Nest... | 42.8125 | 139 | 0.682968 | 503 | 4,110 | 5.435388 | 0.324056 | 0.12436 | 0.095099 | 0.07425 | 0.287125 | 0.243599 | 0.163862 | 0.154353 | 0.154353 | 0.078274 | 0 | 0.003728 | 0.216788 | 4,110 | 95 | 140 | 43.263158 | 0.845604 | 0.051095 | 0 | 0.063492 | 0 | 0 | 0.087419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.031746 | 0.047619 | null | null | 0.031746 | 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 |
37d29492156d47c44672b00f04cedb7fbbdcf78e | 5,880 | py | Python | networks/mobilenet.py | softsys4ai/FlexiBO | 1406d67e5bd14d6b7210e724e6b239889f210db6 | [
"MIT"
] | 8 | 2020-06-23T07:05:18.000Z | 2021-10-24T02:38:14.000Z | networks/mobilenet.py | softsys4ai/FlexiBO | 1406d67e5bd14d6b7210e724e6b239889f210db6 | [
"MIT"
] | null | null | null | networks/mobilenet.py | softsys4ai/FlexiBO | 1406d67e5bd14d6b7210e724e6b239889f210db6 | [
"MIT"
] | 3 | 2020-01-06T10:49:12.000Z | 2020-04-20T03:26:33.000Z | # Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 35.209581 | 96 | 0.671769 | 799 | 5,880 | 4.798498 | 0.274093 | 0.039645 | 0.039124 | 0.037559 | 0.321857 | 0.283255 | 0.250913 | 0.242045 | 0.214398 | 0.183881 | 0 | 0.030847 | 0.222619 | 5,880 | 166 | 97 | 35.421687 | 0.807919 | 0.277551 | 0 | 0.115385 | 0 | 0 | 0.038731 | 0.008701 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | 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 |
37d2de39d6a42eafed34788e36c34749e153b301 | 500 | py | Python | info.py | altfool/mri_face_detection | 3117f7f00c98efe2260936146ce6b5454b059672 | [
"MIT"
] | 1 | 2021-11-13T02:42:49.000Z | 2021-11-13T02:42:49.000Z | info.py | altfool/mri_face_detection | 3117f7f00c98efe2260936146ce6b5454b059672 | [
"MIT"
] | null | null | null | info.py | altfool/mri_face_detection | 3117f7f00c98efe2260936146ce6b5454b059672 | [
"MIT"
] | null | null | null | import numpy as np
img_dtype = np.float32
imgX, imgY, imgZ = (256, 256, 150)
imgs_path_withfaces = '../dataset/withfaces'
imgs_path_nofaces = '../dataset/nofaces'
imgX_dwt1, imgY_dwt1, imgZ_dwt1 = (128, 128, 75)
imgs_path_withfaces_dwt = './dataset/withfaces'
imgs_path_nofaces_dwt = './dataset/nofaces'
dwt_flag = (... | 27.777778 | 54 | 0.752 | 76 | 500 | 4.565789 | 0.342105 | 0.184438 | 0.195965 | 0.138329 | 0.317003 | 0.138329 | 0 | 0 | 0 | 0 | 0 | 0.060185 | 0.136 | 500 | 17 | 55 | 29.411765 | 0.743056 | 0 | 0 | 0 | 0 | 0 | 0.148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37d53dc9e4eafc3370db20f7342e6ffdb10aeb9f | 24,609 | py | Python | src/pretalx/orga/urls.py | martinheidegger/pretalx | d812e665c1c5ce29df3eafc1985af08e4d986fef | [
"Apache-2.0"
] | null | null | null | src/pretalx/orga/urls.py | martinheidegger/pretalx | d812e665c1c5ce29df3eafc1985af08e4d986fef | [
"Apache-2.0"
] | null | null | null | src/pretalx/orga/urls.py | martinheidegger/pretalx | d812e665c1c5ce29df3eafc1985af08e4d986fef | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import include, url
from django.views.generic.base import RedirectView
from pretalx.event.models.event import SLUG_CHARS
from pretalx.orga.views import cards
from .views import (
admin,
auth,
cfp,
dashboard,
event,
mails,
organiser,
person,
plugins,
review... | 40.54201 | 91 | 0.358771 | 1,657 | 24,609 | 5.234762 | 0.138805 | 0.08439 | 0.138344 | 0.021905 | 0.420221 | 0.316117 | 0.200599 | 0.068711 | 0.028706 | 0.021674 | 0 | 0.007509 | 0.512983 | 24,609 | 606 | 92 | 40.608911 | 0.716229 | 0 | 0 | 0.444444 | 0 | 0.004975 | 0.208745 | 0.113129 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.004975 | 0.008292 | 0 | 0.008292 | 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 |
37db93135f06b7cc7a06b9ea9f0839b0af335d54 | 6,889 | py | Python | src/ITN/srmg/core/RiemannianRight.py | Yulv-git/Awesome-Ultrasound-Standard-Plane-Detection | 2e35afaa891badf5a235b5d995102e4dc8a4cf0d | [
"MIT"
] | 1 | 2022-03-24T06:54:36.000Z | 2022-03-24T06:54:36.000Z | src/ITN/srmg/core/RiemannianRight.py | Yulv-git/Awesome-Ultrasound-Standard-Plane-Detection | 2e35afaa891badf5a235b5d995102e4dc8a4cf0d | [
"MIT"
] | null | null | null | src/ITN/srmg/core/RiemannianRight.py | Yulv-git/Awesome-Ultrasound-Standard-Plane-Detection | 2e35afaa891badf5a235b5d995102e4dc8a4cf0d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
'''
Author: Shuangchi He / Yulv
Email: yulvchi@qq.com
Date: 2022-03-19 10:33:38
Motto: Entities should not be multiplied unnecessarily.
LastEditors: Shuangchi He
LastEditTime: 2022-03-23 00:52:55
FilePath: /Awesome-Ultrasound-Standard-Plane-Detection/src/ITN/srmg/core/RiemannianRigh... | 27.556 | 108 | 0.609958 | 953 | 6,889 | 4.408185 | 0.376705 | 0.005237 | 0.015711 | 0.011426 | 0.240895 | 0.197096 | 0.179243 | 0.179243 | 0.179243 | 0.179243 | 0 | 0.034612 | 0.266076 | 6,889 | 249 | 109 | 27.666667 | 0.796282 | 0.650167 | 0 | 0.304348 | 0 | 0 | 0.05653 | 0 | 0 | 0 | 0 | 0.024096 | 0 | 1 | 0.130435 | false | 0 | 0.057971 | 0 | 0.333333 | 0.057971 | 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 |
37dc25007d47db4fa96ca0730b82167ce6738233 | 4,658 | py | Python | v0449gRpc_pb2.py | StormDev87/VPH_bot_python | ae83a0b61e234912c0136ef0f176e7a88603ff28 | [
"MIT"
] | 1 | 2022-02-28T16:20:33.000Z | 2022-02-28T16:20:33.000Z | v0449gRpc_pb2.py | StormDev87/VPH_bot_python | ae83a0b61e234912c0136ef0f176e7a88603ff28 | [
"MIT"
] | null | null | null | v0449gRpc_pb2.py | StormDev87/VPH_bot_python | ae83a0b61e234912c0136ef0f176e7a88603ff28 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: v0449gRpc.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
from go... | 43.12963 | 790 | 0.800129 | 527 | 4,658 | 6.658444 | 0.239089 | 0.042747 | 0.056996 | 0.054716 | 0.266743 | 0.167569 | 0.165289 | 0.165289 | 0.129952 | 0 | 0 | 0.090549 | 0.077716 | 4,658 | 107 | 791 | 43.53271 | 0.726257 | 0.145771 | 0 | 0.210526 | 1 | 0.013158 | 0.29336 | 0.181772 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065789 | 0 | 0.065789 | 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 |
37de891f427c0291be7aba179849ea2f6a86e5c6 | 281 | py | Python | Python/Programming Basics/Simple Calculations/17. Daily Earnings.py | teodoramilcheva/softuni-software-engineering | 98dc9faa66f42570f6538fd7ef186d2bd1d39bff | [
"MIT"
] | null | null | null | Python/Programming Basics/Simple Calculations/17. Daily Earnings.py | teodoramilcheva/softuni-software-engineering | 98dc9faa66f42570f6538fd7ef186d2bd1d39bff | [
"MIT"
] | null | null | null | Python/Programming Basics/Simple Calculations/17. Daily Earnings.py | teodoramilcheva/softuni-software-engineering | 98dc9faa66f42570f6538fd7ef186d2bd1d39bff | [
"MIT"
] | null | null | null | workdays = float(input())
daily_tips = float(input())
exchange_rate = float(input())
salary = workdays * daily_tips
annual_income = salary * 12 + salary * 2.5
net_income = annual_income - annual_income * 25 / 100
result = net_income / 365 * exchange_rate
print('%.2f' % result)
| 23.416667 | 53 | 0.711744 | 39 | 281 | 4.897436 | 0.512821 | 0.157068 | 0.188482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055085 | 0.160142 | 281 | 11 | 54 | 25.545455 | 0.754237 | 0 | 0 | 0 | 0 | 0 | 0.014235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
37e0cdbd73052a4cfa66dd46c357ae89f7505242 | 424 | py | Python | python/p21.py | tonyfg/project_euler | 3a9e6352a98faaa506056b42160c91bffe93838c | [
"WTFPL"
] | null | null | null | python/p21.py | tonyfg/project_euler | 3a9e6352a98faaa506056b42160c91bffe93838c | [
"WTFPL"
] | null | null | null | python/p21.py | tonyfg/project_euler | 3a9e6352a98faaa506056b42160c91bffe93838c | [
"WTFPL"
] | null | null | null | #Q: Evaluate the sum of all the amicable numbers under 10000.
#A: 31626
def divisor_sum(n):
return sum([i for i in xrange (1, n//2+1) if not n%i])
def sum_amicable(start, end):
sum = 0
for i in xrange(start, end):
tmp = divisor_sum(i)
if i == divisor_sum(tmp) and i != tmp:
... | 26.5 | 61 | 0.610849 | 77 | 424 | 3.298701 | 0.493506 | 0.11811 | 0.047244 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.273585 | 424 | 15 | 62 | 28.266667 | 0.753247 | 0.261792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 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 |
37e4f2c4b90817314cd77bae4c4800a1c5a1cfd8 | 11,933 | py | Python | alerter/src/monitorables/nodes/chainlink_node.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 41 | 2019-08-23T12:40:42.000Z | 2022-03-28T11:06:02.000Z | alerter/src/monitorables/nodes/chainlink_node.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 147 | 2019-08-30T22:09:48.000Z | 2022-03-30T08:46:26.000Z | alerter/src/monitorables/nodes/chainlink_node.py | SimplyVC/panic | 2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d | [
"Apache-2.0"
] | 3 | 2019-09-03T21:12:28.000Z | 2021-08-18T14:27:56.000Z | from datetime import datetime
from typing import Optional, Dict, List, Union
from schema import Schema, Or
from src.monitorables.nodes.node import Node
from src.utils.exceptions import InvalidDictSchemaException
class ChainlinkNode(Node):
def __init__(self, node_name: str, node_id: str, parent_id: str) -> None:... | 37.407524 | 80 | 0.67636 | 1,466 | 11,933 | 5.090723 | 0.108458 | 0.079325 | 0.111483 | 0.037518 | 0.646791 | 0.404395 | 0.257939 | 0.223771 | 0.192952 | 0.171513 | 0 | 0 | 0.252661 | 11,933 | 318 | 81 | 37.525157 | 0.836847 | 0.185704 | 0 | 0.217617 | 0 | 0 | 0.039777 | 0.024369 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217617 | false | 0 | 0.025907 | 0.072539 | 0.378238 | 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 |
37eb1b0657a210c55097430b315fbcd465c4cdfe | 814 | py | Python | policykit/django_db_logger/migrations/0002_initial.py | mashton/policyk | 623523d76d63c06b6d559ad7b477d80512fbd2e7 | [
"MIT"
] | 78 | 2020-05-08T17:25:38.000Z | 2022-01-13T05:44:50.000Z | policykit/django_db_logger/migrations/0002_initial.py | mashton/policyk | 623523d76d63c06b6d559ad7b477d80512fbd2e7 | [
"MIT"
] | 302 | 2020-02-20T07:04:30.000Z | 2022-02-25T17:44:23.000Z | policykit/django_db_logger/migrations/0002_initial.py | mashton/policyk | 623523d76d63c06b6d559ad7b477d80512fbd2e7 | [
"MIT"
] | 13 | 2020-04-17T19:44:26.000Z | 2022-02-25T17:18:04.000Z | # Generated by Django 3.2.2 on 2021-09-02 15:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('django_db_logger', '0001_initial'),
('policyengine', '0001_initial'),
]
operations = [
... | 29.071429 | 134 | 0.638821 | 89 | 814 | 5.730337 | 0.438202 | 0.078431 | 0.082353 | 0.129412 | 0.521569 | 0.521569 | 0.34902 | 0.34902 | 0.34902 | 0.34902 | 0 | 0.037097 | 0.238329 | 814 | 27 | 135 | 30.148148 | 0.785484 | 0.055283 | 0 | 0.3 | 1 | 0 | 0.179922 | 0.056063 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 |
37eb8f04b291f998b42a8e819f9ce512c5fabcfb | 277 | py | Python | code/doubanUtils.py | verazuo/douban_crawler | 042e870c74df8b6f4eb1cd2af3b90d5b6699ab8f | [
"MIT"
] | 1 | 2021-04-03T12:41:29.000Z | 2021-04-03T12:41:29.000Z | code/doubanUtils.py | verazuo/douban_crawler | 042e870c74df8b6f4eb1cd2af3b90d5b6699ab8f | [
"MIT"
] | null | null | null | code/doubanUtils.py | verazuo/douban_crawler | 042e870c74df8b6f4eb1cd2af3b90d5b6699ab8f | [
"MIT"
] | null | null | null | import requests
import re
from bs4 import BeautifulSoup
def nextPageLink(sess,soup,page,head=""):
NextPage=soup.find(class_='next').link.get('href')
req=sess.get(head + NextPage)
print(f'第{page}页:',req.status_code)
return BeautifulSoup(req.text,'html.parser') | 27.7 | 54 | 0.722022 | 41 | 277 | 4.829268 | 0.731707 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004115 | 0.122744 | 277 | 10 | 55 | 27.7 | 0.8107 | 0 | 0 | 0 | 0 | 0 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0.125 | 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 |
37ebf327c9046920009b45cecc899607501e8a37 | 2,530 | py | Python | sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/__init__.py | RAY-316/azure-sdk-for-python | 4f7790deaf46c6f4e965f099f36eb73a7954ad5b | [
"MIT"
] | null | null | null | sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/__init__.py | RAY-316/azure-sdk-for-python | 4f7790deaf46c6f4e965f099f36eb73a7954ad5b | [
"MIT"
] | null | null | null | sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/__init__.py | RAY-316/azure-sdk-for-python | 4f7790deaf46c6f4e965f099f36eb73a7954ad5b | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 40.806452 | 94 | 0.729644 | 202 | 2,530 | 8.935644 | 0.351485 | 0.121884 | 0.079224 | 0.115789 | 0.289197 | 0.145152 | 0 | 0 | 0 | 0 | 0 | 0.005644 | 0.159684 | 2,530 | 61 | 95 | 41.47541 | 0.843368 | 0.235178 | 0 | 0 | 0 | 0 | 0.196242 | 0.131524 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.470588 | 0 | 0.470588 | 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 |
37f57e46f9f9adb655b1a0930224aed655bce6c7 | 1,396 | py | Python | tests/test_app/library/loans/admin.py | Pijuli/django-jazzmin | e3f9d45183d58f78bf4c6793969490631a84681d | [
"MIT"
] | 972 | 2020-05-12T19:51:01.000Z | 2022-03-31T20:18:33.000Z | tests/test_app/library/loans/admin.py | Pijuli/django-jazzmin | e3f9d45183d58f78bf4c6793969490631a84681d | [
"MIT"
] | 290 | 2020-05-12T17:35:21.000Z | 2022-03-31T15:18:59.000Z | tests/test_app/library/loans/admin.py | Pijuli/django-jazzmin | e3f9d45183d58f78bf4c6793969490631a84681d | [
"MIT"
] | 166 | 2020-06-11T10:50:47.000Z | 2022-03-24T12:19:00.000Z | from django.contrib import admin
from django.urls import path
from .models import BookLoan, Library
from .views import CustomView
class BookLoanInline(admin.StackedInline):
model = BookLoan
extra = 1
readonly_fields = ("id", "duration")
fields = (
"book",
"imprint",
"status",
... | 25.851852 | 85 | 0.593123 | 146 | 1,396 | 5.527397 | 0.472603 | 0.034696 | 0.048327 | 0.064436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000961 | 0.254298 | 1,396 | 53 | 86 | 26.339623 | 0.774256 | 0.026504 | 0 | 0 | 0 | 0 | 0.180524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.55 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
37f98cbd357a8c5c3fa954e32959aafbe7a7882b | 653 | py | Python | sina_spider/items.py | yanwen0614/Weibo | 5d85e39d0cf7fc848bf5a06df08acbf38661db8d | [
"Apache-2.0"
] | null | null | null | sina_spider/items.py | yanwen0614/Weibo | 5d85e39d0cf7fc848bf5a06df08acbf38661db8d | [
"Apache-2.0"
] | null | null | null | sina_spider/items.py | yanwen0614/Weibo | 5d85e39d0cf7fc848bf5a06df08acbf38661db8d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy import Item, Field
class TweetsItem(Item):
# define the fields for your item here like:
Author = Field()
Title = Field()
Create_time = Fie... | 18.138889 | 51 | 0.603369 | 80 | 653 | 4.8125 | 0.575 | 0.036364 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002075 | 0.261868 | 653 | 36 | 52 | 18.138889 | 0.796681 | 0.278714 | 0 | 0.272727 | 0 | 0 | 0.017204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.045455 | 0.045455 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
37fa8681617c1303e48ae88c3c02ae64abad5b16 | 9,259 | py | Python | emission/core/wrapper/client.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | null | null | null | emission/core/wrapper/client.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | 1 | 2017-08-31T19:54:16.000Z | 2017-08-31T19:54:16.000Z | emission/core/wrapper/client.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | null | null | null | import json
import logging
import dateutil.parser
from datetime import datetime
# Our imports
from emission.core.get_database import get_profile_db, get_client_db, get_pending_signup_db
import emission.clients.common
class Client:
def __init__(self, clientName):
# TODO: write background process to ensure that t... | 38.102881 | 186 | 0.696836 | 1,172 | 9,259 | 5.430034 | 0.259386 | 0.037398 | 0.028284 | 0.032527 | 0.181961 | 0.130264 | 0.118165 | 0.112979 | 0.080453 | 0.080453 | 0 | 0.001235 | 0.212766 | 9,259 | 242 | 187 | 38.260331 | 0.871862 | 0.233827 | 0 | 0.368421 | 0 | 0.011696 | 0.130515 | 0.017166 | 0 | 0 | 0 | 0.004132 | 0 | 0 | null | null | 0 | 0.064327 | null | null | 0.005848 | 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 |
5302a9b7f4d36ed1d8c39a9e74b3775344df1bd4 | 2,028 | py | Python | HoursSelect.py | Maxahoy/ClassVolumeSilencer | 9a05f9dd4efbbbddc74377a27027fa40b2167d02 | [
"MIT"
] | null | null | null | HoursSelect.py | Maxahoy/ClassVolumeSilencer | 9a05f9dd4efbbbddc74377a27027fa40b2167d02 | [
"MIT"
] | null | null | null | HoursSelect.py | Maxahoy/ClassVolumeSilencer | 9a05f9dd4efbbbddc74377a27027fa40b2167d02 | [
"MIT"
] | null | null | null | """
This is how I'm gonna schedule hours
IDEA: import the format example file that I'm using and is saved in the same directory
"""
import csv
import pprint
from tkinter import *
from tkinter.filedialog import askopenfilename
import StringProcessing
def selectHoursFile():
Tk().withdraw() # we don't want a fu... | 28.971429 | 113 | 0.607988 | 318 | 2,028 | 3.877358 | 0.430818 | 0.051906 | 0.029197 | 0.025953 | 0.193025 | 0.163828 | 0.147607 | 0.147607 | 0.131387 | 0.131387 | 0 | 0.123833 | 0.207594 | 2,028 | 69 | 114 | 29.391304 | 0.643435 | 0.233728 | 0 | 0 | 0 | 0 | 0.003831 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.086957 | false | 0 | 0.217391 | 0 | 0.347826 | 0.173913 | 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 |
53066ef029d7bd3ef7be8bb9baad9578898d6c71 | 2,325 | py | Python | projection.py | ogawan/nisa | d758e41e4983cc35477e81d944689b0226f00ef5 | [
"MIT"
] | null | null | null | projection.py | ogawan/nisa | d758e41e4983cc35477e81d944689b0226f00ef5 | [
"MIT"
] | null | null | null | projection.py | ogawan/nisa | d758e41e4983cc35477e81d944689b0226f00ef5 | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
def nisa_projection(years=30, annual_deposit=80, initial_budget=100):
"""
This is a function to plot deposit of TSUMITATE NISA
Parameters:
---------------
years: integer
How many years are you going to continue?
annual_depoist: integer
Annual deposit in... | 21.728972 | 76 | 0.594409 | 317 | 2,325 | 4.271293 | 0.33123 | 0.076809 | 0.011817 | 0.020679 | 0.636632 | 0.636632 | 0.636632 | 0.636632 | 0.636632 | 0.636632 | 0 | 0.050058 | 0.261075 | 2,325 | 106 | 77 | 21.933962 | 0.738068 | 0.287742 | 0 | 0.509804 | 0 | 0 | 0.036008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.058824 | 0 | 0.098039 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
53104f17c4720a21e638155abf65cadc6cce2788 | 24,765 | py | Python | src/poretitioner/utils/filtering.py | uwmisl/poretitioner | 0ff9f67a3b25fdcb460b11c970b2ed366da07da7 | [
"MIT"
] | 2 | 2021-03-11T21:27:16.000Z | 2021-03-18T00:58:22.000Z | src/poretitioner/utils/filtering.py | uwmisl/poretitioner | 0ff9f67a3b25fdcb460b11c970b2ed366da07da7 | [
"MIT"
] | 12 | 2021-02-19T19:36:05.000Z | 2021-03-24T15:38:02.000Z | src/poretitioner/utils/filtering.py | uwmisl/poretitioner | 0ff9f67a3b25fdcb460b11c970b2ed366da07da7 | [
"MIT"
] | null | null | null | """
=========
filtering.py
=========
This module provides more granular filtering for captures.
You can customize your own filters too.
"""
from __future__ import annotations
import re
from abc import ABC, ABCMeta, abstractmethod
from dataclasses import dataclass
from json import JSONEncoder
from pathlib import Posi... | 31.190176 | 171 | 0.666828 | 3,036 | 24,765 | 5.326416 | 0.170619 | 0.015027 | 0.008843 | 0.011688 | 0.286315 | 0.257127 | 0.217612 | 0.182858 | 0.176241 | 0.157133 | 0 | 0.003861 | 0.247083 | 24,765 | 793 | 172 | 31.229508 | 0.863402 | 0.42023 | 0 | 0.248387 | 0 | 0.009677 | 0.075717 | 0.003594 | 0 | 0 | 0 | 0.007566 | 0 | 1 | 0.174194 | false | 0.051613 | 0.051613 | 0.051613 | 0.448387 | 0.003226 | 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 |
5315716313b67d48f560713c76b83b311d4a39e6 | 13,110 | py | Python | tests/test_db.py | beloglazov/openstack-neat | a5a853ae2affb0cdc582e3ab641737f5ebd3d0a7 | [
"Apache-2.0"
] | 34 | 2015-01-04T08:02:37.000Z | 2022-02-19T14:43:47.000Z | tests/test_db.py | beloglazov/openstack-neat | a5a853ae2affb0cdc582e3ab641737f5ebd3d0a7 | [
"Apache-2.0"
] | 3 | 2015-01-23T07:45:15.000Z | 2019-07-03T11:16:27.000Z | tests/test_db.py | beloglazov/openstack-neat | a5a853ae2affb0cdc582e3ab641737f5ebd3d0a7 | [
"Apache-2.0"
] | 22 | 2015-01-14T17:54:46.000Z | 2021-08-09T06:09:17.000Z | # Copyright 2012 Anton Beloglazov
#
# 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 agreed to in writ... | 36.825843 | 94 | 0.555683 | 1,802 | 13,110 | 3.813541 | 0.099334 | 0.037544 | 0.026193 | 0.037835 | 0.74025 | 0.677532 | 0.638242 | 0.579162 | 0.544529 | 0.532451 | 0 | 0.055386 | 0.300381 | 13,110 | 355 | 95 | 36.929577 | 0.693851 | 0.042182 | 0 | 0.565916 | 0 | 0 | 0.06091 | 0 | 0 | 0 | 0 | 0 | 0.125402 | 0 | null | null | 0 | 0.016077 | 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 |
53186bfab87cf033e365cec1f3ce308e9a8c439b | 32,090 | py | Python | src/python/triangula/chassis.py | peterbrazil/brazil | 3823dca6f05b6946251800125d45069048d1bca1 | [
"Apache-2.0"
] | null | null | null | src/python/triangula/chassis.py | peterbrazil/brazil | 3823dca6f05b6946251800125d45069048d1bca1 | [
"Apache-2.0"
] | null | null | null | src/python/triangula/chassis.py | peterbrazil/brazil | 3823dca6f05b6946251800125d45069048d1bca1 | [
"Apache-2.0"
] | null | null | null | from math import cos, sin, degrees, radians, pi
from time import time
from euclid import Vector2, Point2
from numpy import array as np_array
from numpy.linalg import solve as np_solve
__author__ = 'tom'
def test():
chassis = HoloChassis(wheels=[
HoloChassis.OmniWheel(position=Point2(1, 0), angle=0, radi... | 51.508828 | 120 | 0.67186 | 4,464 | 32,090 | 4.759409 | 0.146281 | 0.01012 | 0.013838 | 0.008237 | 0.189636 | 0.132543 | 0.104443 | 0.077991 | 0.057187 | 0.052057 | 0 | 0.010755 | 0.269804 | 32,090 | 622 | 121 | 51.59164 | 0.895954 | 0.010969 | 0 | 0.212766 | 0 | 0 | 0.023068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026596 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5319f9beb8c0372d2483c2292e3473295821dc00 | 12,467 | py | Python | libs/PureCloudPlatformClientV2/models/management_unit.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | 1 | 2021-10-08T20:46:45.000Z | 2021-10-08T20:46:45.000Z | libs/PureCloudPlatformClientV2/models/management_unit.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | null | null | null | libs/PureCloudPlatformClientV2/models/management_unit.py | rocketbot-cl/genesysCloud | dd9d9b5ebb90a82bab98c0d88b9585c22c91f333 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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 applica... | 29.612827 | 208 | 0.599422 | 1,410 | 12,467 | 5.146099 | 0.158156 | 0.039691 | 0.132304 | 0.040518 | 0.501792 | 0.422409 | 0.366593 | 0.343716 | 0.321665 | 0.293275 | 0 | 0.002374 | 0.324216 | 12,467 | 420 | 209 | 29.683333 | 0.858872 | 0.466111 | 0 | 0.104575 | 0 | 0 | 0.099775 | 0.014468 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202614 | false | 0 | 0.03268 | 0 | 0.359477 | 0.006536 | 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 |
531dc0c210eb864fa15db98132f5b9dc46d4e0b4 | 3,140 | py | Python | verteste/ui/ui_about.py | Chum4k3r/Verteste | 216c04468ff14c392ee3c6aebe12a0fa0e98767c | [
"MIT"
] | null | null | null | verteste/ui/ui_about.py | Chum4k3r/Verteste | 216c04468ff14c392ee3c6aebe12a0fa0e98767c | [
"MIT"
] | null | null | null | verteste/ui/ui_about.py | Chum4k3r/Verteste | 216c04468ff14c392ee3c6aebe12a0fa0e98767c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'aboutdialog.ui'
##
## Created by: Qt User Interface Compiler version 6.1.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
###############... | 36.941176 | 117 | 0.653503 | 360 | 3,140 | 5.591667 | 0.325 | 0.138599 | 0.107799 | 0.111277 | 0.28763 | 0.090909 | 0.090909 | 0.090909 | 0 | 0 | 0 | 0.023893 | 0.186943 | 3,140 | 84 | 118 | 37.380952 | 0.764591 | 0.103822 | 0 | 0 | 1 | 0 | 0.09981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.057692 | 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 |
5322c20dd329a34737e71921f9eef02bff3f4b61 | 691 | py | Python | pkgs/applications/virtualization/virt-manager/custom_runner.py | mornfall/nixpkgs | 0eb6f056b9ce3e32dbc3297f298472aef19f8c73 | [
"MIT"
] | 1 | 2015-03-10T08:51:43.000Z | 2015-03-10T08:51:43.000Z | pkgs/applications/virtualization/virt-manager/custom_runner.py | mornfall/nixpkgs | 0eb6f056b9ce3e32dbc3297f298472aef19f8c73 | [
"MIT"
] | null | null | null | pkgs/applications/virtualization/virt-manager/custom_runner.py | mornfall/nixpkgs | 0eb6f056b9ce3e32dbc3297f298472aef19f8c73 | [
"MIT"
] | null | null | null | #!/usr/bin/python -t
# this script was written to use /etc/nixos/nixpkgs/pkgs/development/python-modules/generic/wrap.sh
# which already automates python executable wrapping by extending the PATH/pythonPath
# from http://docs.python.org/library/subprocess.html
# Warning Invoking the system shell with shell=True can be... | 49.357143 | 171 | 0.798842 | 107 | 691 | 5.093458 | 0.719626 | 0.058716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11288 | 691 | 13 | 172 | 53.153846 | 0.88907 | 0.612156 | 0 | 0 | 0 | 0 | 0.311787 | 0.296578 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
53233f3a8dea82db62a5a19f4e770dd7fed41add | 3,331 | py | Python | napari/layers/_source.py | napari/napari-gui | 9beb1a0b797890718e1c4f372cbd6256747f9101 | [
"BSD-3-Clause"
] | 7 | 2018-07-03T17:35:46.000Z | 2018-11-07T15:48:58.000Z | napari/layers/_source.py | guiwitz/napari | 1546f18ecc13364d5415623a9c11ed760ff043e2 | [
"BSD-3-Clause"
] | 120 | 2018-09-04T22:05:13.000Z | 2019-03-02T01:13:57.000Z | napari/layers/_source.py | napari/napari-gui | 9beb1a0b797890718e1c4f372cbd6256747f9101 | [
"BSD-3-Clause"
] | 8 | 2018-09-04T21:48:26.000Z | 2019-01-29T04:48:30.000Z | from __future__ import annotations
from contextlib import contextmanager
from contextvars import ContextVar
from typing import Optional, Tuple
from magicgui.widgets import FunctionGui
from pydantic import BaseModel
class Source(BaseModel):
"""An object to store the provenance of a layer.
Parameters
---... | 33.31 | 97 | 0.691684 | 441 | 3,331 | 5.097506 | 0.419501 | 0.063612 | 0.009786 | 0.015125 | 0.040925 | 0.040925 | 0.040925 | 0.040925 | 0.040925 | 0 | 0 | 0 | 0.221255 | 3,331 | 99 | 98 | 33.646465 | 0.866615 | 0.664365 | 0 | 0 | 0 | 0 | 0.014444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.230769 | 0 | 0.653846 | 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 |
532376f847c7965500c6f9f56d9f6308f976ea4f | 1,599 | py | Python | tests/unit/test_BaseDirection.py | vpalex999/project-mars | 6e21c5acfe6105a7b7c87a79770e7420bda46f26 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_BaseDirection.py | vpalex999/project-mars | 6e21c5acfe6105a7b7c87a79770e7420bda46f26 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_BaseDirection.py | vpalex999/project-mars | 6e21c5acfe6105a7b7c87a79770e7420bda46f26 | [
"Apache-2.0"
] | null | null | null | import pytest
import src.constants as cnst
from src.directions import BaseDirection
@pytest.fixture
def base_direction():
return BaseDirection()
def test_init_BaseDirection(base_direction):
assert isinstance(base_direction, BaseDirection)
def test_current_direction_is(base_direction):
assert base_dir... | 35.533333 | 94 | 0.707942 | 232 | 1,599 | 4.594828 | 0.150862 | 0.172608 | 0.180113 | 0.157599 | 0.681051 | 0.603189 | 0.473734 | 0.426829 | 0.401501 | 0.311445 | 0 | 0 | 0.126329 | 1,599 | 44 | 95 | 36.340909 | 0.763064 | 0.02439 | 0 | 0 | 0 | 0 | 0.017352 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.133333 | false | 0 | 0.1 | 0.033333 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5326222cf04cc16e106a9b078150b32472ee3fb7 | 1,520 | py | Python | resources/models/Image.py | sphildreth/roadie-python | 1465ac0f4282356ab5a074020b4f0a9f28058a86 | [
"MIT"
] | null | null | null | resources/models/Image.py | sphildreth/roadie-python | 1465ac0f4282356ab5a074020b4f0a9f28058a86 | [
"MIT"
] | null | null | null | resources/models/Image.py | sphildreth/roadie-python | 1465ac0f4282356ab5a074020b4f0a9f28058a86 | [
"MIT"
] | null | null | null | import io
from PIL import Image as PILImage
from sqlalchemy import Column, ForeignKey, LargeBinary, Index, Integer, String
from resources.models.ModelBase import Base
class Image(Base):
# If this is used then the image is stored in the database
image = Column(LargeBinary(length=16777215), default=None)
#... | 38 | 117 | 0.647368 | 199 | 1,520 | 4.864322 | 0.512563 | 0.024793 | 0.016529 | 0.024793 | 0.053719 | 0.053719 | 0.053719 | 0.053719 | 0 | 0 | 0 | 0.020354 | 0.256579 | 1,520 | 39 | 118 | 38.974359 | 0.836283 | 0.200658 | 0 | 0 | 0 | 0 | 0.029777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.148148 | 0.074074 | 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 |
53288d2b29e82fc8c4f0e83a7806673cbfd64265 | 538 | py | Python | dont_worry.py | karianjahi/fahrer_minijob | 020a9de27b77f8e0bcdec198a37cfb7f1d4736ed | [
"MIT"
] | null | null | null | dont_worry.py | karianjahi/fahrer_minijob | 020a9de27b77f8e0bcdec198a37cfb7f1d4736ed | [
"MIT"
] | null | null | null | dont_worry.py | karianjahi/fahrer_minijob | 020a9de27b77f8e0bcdec198a37cfb7f1d4736ed | [
"MIT"
] | null | null | null | class Hey:
def __init__(jose, name="mours"):
jose.name = name
def get_name(jose):
return jose.name
class Person(object):
def __init__(self, name, phone):
self.name = name
self.phone = phone
class Teenager(Person):
def __init__(self, *args, **kwargs):
self.website... | 26.9 | 55 | 0.615242 | 68 | 538 | 4.485294 | 0.426471 | 0.068852 | 0.072131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007282 | 0.234201 | 538 | 20 | 56 | 26.9 | 0.73301 | 0.042751 | 0 | 0 | 0 | 0 | 0.083495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
532b482d23a5934d3f01f1f60135af259bfe9eb5 | 449 | py | Python | tests/zoo/tree.py | dynalz/odmantic | f20f08f8ab1768534c1e743f7539bfe4f8c73bdd | [
"0BSD"
] | 486 | 2020-10-19T05:33:53.000Z | 2022-03-30T12:54:57.000Z | tests/zoo/tree.py | dynalz/odmantic | f20f08f8ab1768534c1e743f7539bfe4f8c73bdd | [
"0BSD"
] | 183 | 2020-10-19T18:15:25.000Z | 2022-03-31T04:59:21.000Z | tests/zoo/tree.py | dynalz/odmantic | f20f08f8ab1768534c1e743f7539bfe4f8c73bdd | [
"0BSD"
] | 53 | 2020-10-19T09:35:01.000Z | 2022-03-31T20:39:51.000Z | import enum
from typing import Dict, List
from odmantic.field import Field
from odmantic.model import Model
class TreeKind(str, enum.Enum):
BIG = "big"
SMALL = "small"
class TreeModel(Model):
name: str = Field(primary_key=True, default="Acacia des montagnes")
average_size: float = Field(mongo_name=... | 22.45 | 71 | 0.721604 | 61 | 449 | 5.196721 | 0.590164 | 0.07571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184855 | 449 | 19 | 72 | 23.631579 | 0.86612 | 0 | 0 | 0 | 0 | 0 | 0.071269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
532d64eb017b0350df305fd05c57bebebc901080 | 6,729 | py | Python | dash_daq/Slider.py | luiztauffer/dash-daq | 4975093449bdc4d7ff4cd366ac82a847cdf24c34 | [
"MIT"
] | null | null | null | dash_daq/Slider.py | luiztauffer/dash-daq | 4975093449bdc4d7ff4cd366ac82a847cdf24c34 | [
"MIT"
] | null | null | null | dash_daq/Slider.py | luiztauffer/dash-daq | 4975093449bdc4d7ff4cd366ac82a847cdf24c34 | [
"MIT"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Slider(Component):
"""A Slider component.
A slider component with support for
a target value.
Keyword arguments:
- id (string; optional):
The ID used to identify this component in Dash callbac... | 38.895954 | 651 | 0.693862 | 879 | 6,729 | 5.262799 | 0.281001 | 0.081712 | 0.018158 | 0.011241 | 0.257242 | 0.21444 | 0.207955 | 0.207955 | 0.207955 | 0.207955 | 0 | 0.000948 | 0.216228 | 6,729 | 172 | 652 | 39.122093 | 0.876185 | 0.716897 | 0 | 0 | 1 | 0 | 0.203899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 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 |
53315defe5a40f6e5f9bc740259ebb1dfe1b3225 | 3,515 | py | Python | __init__.py | NeonJarbas/skill-ddg | 48476ad650e72f68ee7e96dd92c6d18f841ce6ec | [
"Apache-2.0"
] | null | null | null | __init__.py | NeonJarbas/skill-ddg | 48476ad650e72f68ee7e96dd92c6d18f841ce6ec | [
"Apache-2.0"
] | null | null | null | __init__.py | NeonJarbas/skill-ddg | 48476ad650e72f68ee7e96dd92c6d18f841ce6ec | [
"Apache-2.0"
] | null | null | null | # 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 agreed to in writing, software
# distributed under the... | 35.867347 | 82 | 0.62276 | 438 | 3,515 | 4.876712 | 0.383562 | 0.029494 | 0.042135 | 0.025281 | 0.068352 | 0.048689 | 0 | 0 | 0 | 0 | 0 | 0.005074 | 0.271124 | 3,515 | 97 | 83 | 36.237113 | 0.828649 | 0.244666 | 0 | 0.171875 | 0 | 0.015625 | 0.094584 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.140625 | false | 0 | 0.078125 | 0.015625 | 0.296875 | 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 |
533191e519d8de6668af0108951a5877a4213bac | 6,639 | py | Python | openstack_lease_it/openstack_lease_it/settings.py | LAL/openstack-lease-it | 4ff983911825eac886fa6f76d6efc25225a698b7 | [
"Apache-2.0"
] | null | null | null | openstack_lease_it/openstack_lease_it/settings.py | LAL/openstack-lease-it | 4ff983911825eac886fa6f76d6efc25225a698b7 | [
"Apache-2.0"
] | 11 | 2017-04-13T16:48:16.000Z | 2017-11-22T08:13:39.000Z | openstack_lease_it/openstack_lease_it/settings.py | LAL/openstack-lease-it | 4ff983911825eac886fa6f76d6efc25225a698b7 | [
"Apache-2.0"
] | 3 | 2017-04-06T09:08:40.000Z | 2021-05-25T08:15:00.000Z | """
Django settings for openstack_lease_it project.
Generated by 'django-admin startproject' using Django 1.8.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
#... | 31.023364 | 89 | 0.658081 | 714 | 6,639 | 5.953782 | 0.355742 | 0.053634 | 0.05928 | 0.043284 | 0.230064 | 0.19713 | 0.18184 | 0.127029 | 0.109151 | 0.090332 | 0 | 0.006681 | 0.210875 | 6,639 | 213 | 90 | 31.169014 | 0.804734 | 0.219009 | 0 | 0.225166 | 1 | 0.006623 | 0.437391 | 0.240148 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02649 | 0 | 0.02649 | 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 |
533284cf96b1c69f9f29a622772bb5c570e08d44 | 3,619 | py | Python | rigl/experimental/jax/pruning/pruning.py | vishalbelsare/rigl | f18abc7d82ae3acc6736068408a0186c9efa575c | [
"Apache-2.0"
] | 276 | 2019-11-25T22:05:45.000Z | 2022-03-30T11:55:34.000Z | rigl/experimental/jax/pruning/pruning.py | vishalbelsare/rigl | f18abc7d82ae3acc6736068408a0186c9efa575c | [
"Apache-2.0"
] | 10 | 2020-02-26T14:53:50.000Z | 2021-09-08T16:27:28.000Z | rigl/experimental/jax/pruning/pruning.py | vishalbelsare/rigl | f18abc7d82ae3acc6736068408a0186c9efa575c | [
"Apache-2.0"
] | 54 | 2019-11-26T18:50:33.000Z | 2022-03-29T20:08:08.000Z | # coding=utf-8
# Copyright 2021 RigL Authors.
#
# 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 agree... | 37.697917 | 100 | 0.716773 | 540 | 3,619 | 4.690741 | 0.368519 | 0.047769 | 0.017766 | 0.021319 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005957 | 0.211384 | 3,619 | 95 | 101 | 38.094737 | 0.88157 | 0.522244 | 0 | 0 | 0 | 0 | 0.001203 | 0 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.051282 | false | 0 | 0.128205 | 0 | 0.230769 | 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 |
5333f0221e4e3679432478592dc87f3e97d8ca99 | 3,643 | py | Python | venv/Lib/site-packages/dash_bootstrap_components/_components/CardLink.py | hanzzhu/chadle | ac1d63b0410bb43f3fab362bb00abfc2e8790b9d | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/dash_bootstrap_components/_components/CardLink.py | hanzzhu/chadle | ac1d63b0410bb43f3fab362bb00abfc2e8790b9d | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/dash_bootstrap_components/_components/CardLink.py | hanzzhu/chadle | ac1d63b0410bb43f3fab362bb00abfc2e8790b9d | [
"Apache-2.0"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class CardLink(Component):
"""A CardLink component.
Use card link to add consistently styled links to your cards. Links can be
used like buttons, external links, or internal Dash style links.
Keyword arg... | 42.360465 | 349 | 0.705188 | 485 | 3,643 | 5.175258 | 0.391753 | 0.071713 | 0.025498 | 0.018327 | 0.090837 | 0.07012 | 0.07012 | 0.07012 | 0.07012 | 0.07012 | 0 | 0.002084 | 0.209717 | 3,643 | 85 | 350 | 42.858824 | 0.869746 | 0.607192 | 0 | 0 | 1 | 0 | 0.191011 | 0.017556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 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 |
533866f2077fc08488ebf544ff7c3db315b050b5 | 283 | py | Python | src/marion/marion/urls/__init__.py | OmenApps/marion | f501674cafbd91f0bbad7454e4dcf3527cf4445e | [
"MIT"
] | 7 | 2021-04-06T20:33:31.000Z | 2021-09-30T23:29:24.000Z | src/marion/marion/urls/__init__.py | OmenApps/marion | f501674cafbd91f0bbad7454e4dcf3527cf4445e | [
"MIT"
] | 23 | 2020-09-09T15:01:50.000Z | 2022-01-03T08:58:36.000Z | src/marion/marion/urls/__init__.py | OmenApps/marion | f501674cafbd91f0bbad7454e4dcf3527cf4445e | [
"MIT"
] | 2 | 2020-12-14T10:07:07.000Z | 2021-06-29T00:20:43.000Z | """Urls for the marion application"""
from django.urls import include, path
from rest_framework import routers
from .. import views
router = routers.DefaultRouter()
router.register(r"requests", views.DocumentRequestViewSet)
urlpatterns = [
path("", include(router.urls)),
]
| 18.866667 | 58 | 0.749117 | 33 | 283 | 6.393939 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134276 | 283 | 14 | 59 | 20.214286 | 0.861224 | 0.109541 | 0 | 0 | 0 | 0 | 0.03252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
533adf5d76752741ed41f712b78044d29524e61c | 2,455 | py | Python | tbx/core/migrations/0111_move_sign_up_form_into_new_app.py | arush15june/wagtail-torchbox | c4d06e096c72bd8007975dc016133024f9d27fab | [
"MIT"
] | null | null | null | tbx/core/migrations/0111_move_sign_up_form_into_new_app.py | arush15june/wagtail-torchbox | c4d06e096c72bd8007975dc016133024f9d27fab | [
"MIT"
] | null | null | null | tbx/core/migrations/0111_move_sign_up_form_into_new_app.py | arush15june/wagtail-torchbox | c4d06e096c72bd8007975dc016133024f9d27fab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2019-01-15 22:49
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wagtailsearchpromotions', '0002_capitalizeverbose'),
('wagtailcore', '0040_page_draft_title... | 31.474359 | 100 | 0.619959 | 177 | 2,455 | 8.310734 | 0.40113 | 0.099932 | 0.123725 | 0.14276 | 0.197145 | 0.197145 | 0 | 0 | 0 | 0 | 0 | 0.021469 | 0.279022 | 2,455 | 77 | 101 | 31.883117 | 0.809605 | 0.028106 | 0 | 0.470588 | 1 | 0 | 0.303399 | 0.149811 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.102941 | 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 |
534038a8e2bcedd293d3b518dec4b55832e33688 | 407 | py | Python | .history/List of Capstone Projects/FibonacciSequence_20200516134123.py | EvanthiosPapadopoulos/Python3 | ab773fd458e365c1510f98ecac65965234c881e8 | [
"MIT"
] | 1 | 2020-05-18T17:50:00.000Z | 2020-05-18T17:50:00.000Z | .history/List of Capstone Projects/FibonacciSequence_20200516134123.py | EvanthiosPapadopoulos/Python3 | ab773fd458e365c1510f98ecac65965234c881e8 | [
"MIT"
] | null | null | null | .history/List of Capstone Projects/FibonacciSequence_20200516134123.py | EvanthiosPapadopoulos/Python3 | ab773fd458e365c1510f98ecac65965234c881e8 | [
"MIT"
] | null | null | null | '''
Fibonacci Sequence
'''
import HeaderOfFiles
def fibonacciSeq(number):
'''
Generate Fibonacci Sequence to the given number.
'''
a = 1
b = 1
for i in range(number):
yield a
a,b = b,a+b
while True:
try:
f = int(input("Enter a number for Fibonacci: "... | 15.074074 | 56 | 0.547912 | 51 | 407 | 4.372549 | 0.627451 | 0.152466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.346437 | 407 | 27 | 57 | 15.074074 | 0.830827 | 0.164619 | 0 | 0 | 1 | 0 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0.071429 | 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 |
5342baca137d0ce393a0884db4bee3c92fc045d0 | 1,503 | py | Python | tests/simple_gan_test.py | alanpeixinho/NiftyNet | 9a17022a71985974f9e5ca992c765d55860fdd7d | [
"Apache-2.0"
] | null | null | null | tests/simple_gan_test.py | alanpeixinho/NiftyNet | 9a17022a71985974f9e5ca992c765d55860fdd7d | [
"Apache-2.0"
] | null | null | null | tests/simple_gan_test.py | alanpeixinho/NiftyNet | 9a17022a71985974f9e5ca992c765d55860fdd7d | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, print_function
import unittest
import os
import tensorflow as tf
from tensorflow.keras import regularizers
from niftynet.network.simple_gan import SimpleGAN
from tests.niftynet_testcase import NiftyNetTestCase
class SimpleGANTest(NiftyNetTestCase):
def test_3d_reg_shape(s... | 30.673469 | 65 | 0.642715 | 199 | 1,503 | 4.613065 | 0.301508 | 0.058824 | 0.074074 | 0.104575 | 0.679739 | 0.679739 | 0.62963 | 0.62963 | 0.62963 | 0.62963 | 0 | 0.035398 | 0.24817 | 1,503 | 48 | 66 | 31.3125 | 0.776991 | 0 | 0 | 0.611111 | 0 | 0 | 0.005323 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.055556 | false | 0 | 0.194444 | 0 | 0.277778 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
534549f2acefb6ab739ca7a1aa4369dcb66352ae | 5,771 | py | Python | snoopy/server/transforms/Maltego.py | aiddenkeli/Snoopy | dd76180145981b3574b419edce39dbb060bd8c8c | [
"MIT"
] | 432 | 2015-01-07T09:56:32.000Z | 2022-03-28T12:15:42.000Z | snoopy/server/transforms/Maltego.py | aiddenkeli/Snoopy | dd76180145981b3574b419edce39dbb060bd8c8c | [
"MIT"
] | 9 | 2015-01-31T10:07:28.000Z | 2021-09-10T08:13:47.000Z | snoopy/server/transforms/Maltego.py | aiddenkeli/Snoopy | dd76180145981b3574b419edce39dbb060bd8c8c | [
"MIT"
] | 135 | 2015-01-07T15:06:35.000Z | 2022-01-24T02:19:55.000Z | #!/usr/bin/python
#
# This might be horrible code...
# ...but it works
# Feel free to re-write in a better way
# And if you want to - send it to us, we'll update ;)
# maltego@paterva.com (2010/10/18)
#
import sys
from xml.dom import minidom
class MaltegoEntity(object):
value = "";
weight = 100;
displayInformation ... | 28.428571 | 234 | 0.665916 | 648 | 5,771 | 5.895062 | 0.271605 | 0.073298 | 0.018848 | 0.050262 | 0.143979 | 0.107853 | 0.067016 | 0.067016 | 0.067016 | 0.049738 | 0 | 0.006943 | 0.176399 | 5,771 | 202 | 235 | 28.569307 | 0.79676 | 0.061688 | 0 | 0.117647 | 0 | 0 | 0.17877 | 0.06947 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014706 | null | null | 0.191176 | 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 |
53472d85e82afcf0ecb7050477e184968c938897 | 1,017 | py | Python | metadeploy/api/migrations/0050_add_clickthrough_agreement.py | sfdc-qbranch/MetaDeploy | d22547b3814dbec6aefa4d86b9f81c6f175c1b67 | [
"BSD-3-Clause"
] | 33 | 2019-03-20T15:34:39.000Z | 2022-03-30T15:59:40.000Z | metadeploy/api/migrations/0050_add_clickthrough_agreement.py | sfdc-qbranch/MetaDeploy | d22547b3814dbec6aefa4d86b9f81c6f175c1b67 | [
"BSD-3-Clause"
] | 2,718 | 2019-02-27T19:46:07.000Z | 2022-03-11T23:18:09.000Z | metadeploy/api/migrations/0050_add_clickthrough_agreement.py | sfdc-qbranch/MetaDeploy | d22547b3814dbec6aefa4d86b9f81c6f175c1b67 | [
"BSD-3-Clause"
] | 28 | 2019-03-28T04:57:16.000Z | 2022-02-04T16:49:25.000Z | # Generated by Django 2.1.5 on 2019-02-12 21:18
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("api", "0049_add_all_other_translations")]
operations = [
migrations.CreateModel(
name="ClickThroughAgreement... | 27.486486 | 63 | 0.474926 | 81 | 1,017 | 5.82716 | 0.691358 | 0.050847 | 0.059322 | 0.09322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032646 | 0.427729 | 1,017 | 36 | 64 | 28.25 | 0.778351 | 0.044248 | 0 | 0.166667 | 1 | 0 | 0.117526 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5347c20f1c46f18f1b8fe3023d484d25d1b6adf3 | 14,306 | py | Python | pub_ingest.py | mconlon17/vivo-pub-ingest | 7c03ecdd6dc5418121a6b92de1572d1cc63f5cb5 | [
"BSD-3-Clause"
] | null | null | null | pub_ingest.py | mconlon17/vivo-pub-ingest | 7c03ecdd6dc5418121a6b92de1572d1cc63f5cb5 | [
"BSD-3-Clause"
] | 1 | 2015-04-04T01:38:51.000Z | 2015-04-04T01:38:51.000Z | pubs/pub_ingest.py | mconlon17/vivo-1.5-improvement | 44d8335eb7bbe518374a53c0e1f9f39014023ee7 | [
"BSD-3-Clause"
] | null | null | null | #!/user/bin/env/python
"""
pub_ingest.py -- Read a bibtex file and make VIVO RDF
The following objects will be made as needed:
-- publisher
-- journal
-- information resource
-- timestamp for the information resource
-- people
-- authorships
-- concepts
The result... | 37.255208 | 97 | 0.636306 | 1,843 | 14,306 | 4.781877 | 0.157895 | 0.030183 | 0.046295 | 0.01634 | 0.249404 | 0.196982 | 0.157381 | 0.136389 | 0.12822 | 0.117781 | 0 | 0.007377 | 0.241996 | 14,306 | 383 | 98 | 37.35248 | 0.80533 | 0.032853 | 0 | 0.189591 | 0 | 0.018587 | 0.315857 | 0.027016 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018587 | null | null | 0.200743 | 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 |
534843a13bac167037ca6701e9e5332c6dec3235 | 2,986 | py | Python | src/vanilla_pytorch/prune_model.py | f2010126/LTH_Master | 709472e7e7962fbf3a56a620c536fb03d359734f | [
"MIT"
] | null | null | null | src/vanilla_pytorch/prune_model.py | f2010126/LTH_Master | 709472e7e7962fbf3a56a620c536fb03d359734f | [
"MIT"
] | 1 | 2021-06-30T13:35:32.000Z | 2021-06-30T13:35:32.000Z | src/vanilla_pytorch/prune_model.py | f2010126/LTH_Master | 709472e7e7962fbf3a56a620c536fb03d359734f | [
"MIT"
] | 1 | 2021-06-30T13:22:15.000Z | 2021-06-30T13:22:15.000Z | import torch.nn.utils.prune as prune
import torch
from src.vanilla_pytorch.utils import count_rem_weights
from src.vanilla_pytorch.models.linearnets import LeNet, init_weights
from src.vanilla_pytorch.models.resnets import Resnets
def remove_pruning(model):
for i, (name, module) in enumerate(model.named_modules()... | 38.779221 | 101 | 0.662425 | 432 | 2,986 | 4.449074 | 0.259259 | 0.056191 | 0.041623 | 0.041623 | 0.547347 | 0.541623 | 0.506244 | 0.483351 | 0.467222 | 0.433923 | 0 | 0.019239 | 0.216678 | 2,986 | 76 | 102 | 39.289474 | 0.80248 | 0.244809 | 0 | 0.380952 | 0 | 0 | 0.070136 | 0.01086 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.095238 | false | 0 | 0.119048 | 0 | 0.261905 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
53487b0b2e562895d1a372a23c376324cd33f385 | 3,484 | py | Python | tensorflow_federated/python/research/utils/checkpoint_utils_test.py | mcognetta/federated | fa0c1a00b5d77768bc2f38f503f3ef1a65693945 | [
"Apache-2.0"
] | null | null | null | tensorflow_federated/python/research/utils/checkpoint_utils_test.py | mcognetta/federated | fa0c1a00b5d77768bc2f38f503f3ef1a65693945 | [
"Apache-2.0"
] | null | null | null | tensorflow_federated/python/research/utils/checkpoint_utils_test.py | mcognetta/federated | fa0c1a00b5d77768bc2f38f503f3ef1a65693945 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2019, The TensorFlow Federated Authors.
#
# 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 ... | 35.55102 | 77 | 0.751148 | 505 | 3,484 | 4.956436 | 0.336634 | 0.035957 | 0.040751 | 0.027966 | 0.443068 | 0.425489 | 0.387535 | 0.387535 | 0.387535 | 0.322413 | 0 | 0.023074 | 0.154133 | 3,484 | 97 | 78 | 35.917526 | 0.826264 | 0.326349 | 0 | 0.244898 | 0 | 0 | 0.013877 | 0 | 0 | 0 | 0 | 0.010309 | 0.061224 | 1 | 0.061224 | false | 0 | 0.142857 | 0.020408 | 0.326531 | 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 |
534883bea976b0a78d54a9c4ba718667cfc4884f | 2,923 | py | Python | website/models/user.py | alexli0707/pyforum | 4f5ea4a0b07e094e24410ae699016590b9c20d59 | [
"Apache-2.0"
] | 4 | 2016-10-13T02:03:55.000Z | 2017-04-05T03:21:46.000Z | website/models/user.py | alexli0707/pyforum | 4f5ea4a0b07e094e24410ae699016590b9c20d59 | [
"Apache-2.0"
] | null | null | null | website/models/user.py | alexli0707/pyforum | 4f5ea4a0b07e094e24410ae699016590b9c20d59 | [
"Apache-2.0"
] | 1 | 2019-01-01T09:36:28.000Z | 2019-01-01T09:36:28.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import peewee
from flask import current_app,abort
from flask.ext.login import AnonymousUserMixin, UserMixin
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from peewee import Model, IntegerField, CharField,PrimaryKeyField
from website.app import db_wr... | 27.317757 | 99 | 0.63599 | 332 | 2,923 | 5.454819 | 0.322289 | 0.046383 | 0.039757 | 0.046383 | 0.261734 | 0.226394 | 0.197681 | 0.123689 | 0.123689 | 0.123689 | 0 | 0.008858 | 0.266165 | 2,923 | 106 | 100 | 27.575472 | 0.835431 | 0.034211 | 0 | 0.315068 | 0 | 0 | 0.03592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123288 | false | 0.109589 | 0.109589 | 0.041096 | 0.534247 | 0.027397 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.