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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46050f0313b8f6689be0dd243bed51976d5b3a58 | 417 | py | Python | mldash/web/path.py | K-A-R-T/JacMLDash | 5cb5d66da32ac55002319301f82d1db9091f0c56 | [
"MIT"
] | 5 | 2019-09-07T09:35:19.000Z | 2022-03-09T14:33:44.000Z | mldash/web/path.py | K-A-R-T/JacMLDash | 5cb5d66da32ac55002319301f82d1db9091f0c56 | [
"MIT"
] | null | null | null | mldash/web/path.py | K-A-R-T/JacMLDash | 5cb5d66da32ac55002319301f82d1db9091f0c56 | [
"MIT"
] | 1 | 2021-03-17T04:17:06.000Z | 2021-03-17T04:17:06.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : template.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 09/05/2019
#
# This file is part of JacMLDash.
# Distributed under terms of the MIT license.
import os.path as osp
def get_template_path():
return osp.join(osp.dirname(__file__... | 19.857143 | 56 | 0.685851 | 61 | 417 | 4.459016 | 0.721311 | 0.044118 | 0.095588 | 0.125 | 0.227941 | 0.227941 | 0.227941 | 0 | 0 | 0 | 0 | 0.029155 | 0.177458 | 417 | 20 | 57 | 20.85 | 0.763848 | 0.508393 | 0 | 0 | 0 | 0 | 0.087179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | true | 0 | 0.2 | 0.4 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
460dd5d6bfcffee8f44590d33e703134dfed0628 | 267 | py | Python | rankings/admin.py | rubenvanerk/finswimmingrankings | 610f335b4cfae34d1c68abae9d93de3f64044dd1 | [
"MIT"
] | null | null | null | rankings/admin.py | rubenvanerk/finswimmingrankings | 610f335b4cfae34d1c68abae9d93de3f64044dd1 | [
"MIT"
] | 1 | 2020-06-05T19:58:08.000Z | 2020-06-05T19:58:08.000Z | rankings/admin.py | rubenvanerk/finswimmingrankings | 610f335b4cfae34d1c68abae9d93de3f64044dd1 | [
"MIT"
] | null | null | null | from django.contrib import admin
from rankings.models import *
# Register your models here.
admin.site.register(IndividualResult)
admin.site.register(Competition)
admin.site.register(Event)
admin.site.register(RelayOrder)
admin.site.register(Athlete)
| 20.538462 | 38 | 0.779026 | 33 | 267 | 6.30303 | 0.484848 | 0.216346 | 0.408654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127341 | 267 | 12 | 39 | 22.25 | 0.892704 | 0.097378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1ca70fd205f7f0df3c357a934b5d054428f5e679 | 23 | py | Python | jsondb/__init__.py | tallus/jsondb | 962ad7c093c8993a6346935ebefce14afa4a68eb | [
"MIT"
] | 1 | 2020-04-27T09:55:39.000Z | 2020-04-27T09:55:39.000Z | jsondb/__init__.py | tallus/jsondb | 962ad7c093c8993a6346935ebefce14afa4a68eb | [
"MIT"
] | null | null | null | jsondb/__init__.py | tallus/jsondb | 962ad7c093c8993a6346935ebefce14afa4a68eb | [
"MIT"
] | null | null | null | __all__ = [ "jsondb" ]
| 11.5 | 22 | 0.565217 | 2 | 23 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 23 | 1 | 23 | 23 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1ca8cfaa3e0265da1e6ce8ecc9f21afcf7191ad6 | 498 | py | Python | department-app/models/department.py | V1ckeyR/department | 5e6e1620179f70dd13fbdaf2cabbefe5fac95aeb | [
"MIT"
] | 2 | 2021-05-22T18:03:21.000Z | 2021-12-10T17:03:01.000Z | department-app/models/department.py | V1ckeyR/department | 5e6e1620179f70dd13fbdaf2cabbefe5fac95aeb | [
"MIT"
] | null | null | null | department-app/models/department.py | V1ckeyR/department | 5e6e1620179f70dd13fbdaf2cabbefe5fac95aeb | [
"MIT"
] | null | null | null | """This module contains ORM model that represents Department entity"""
from rest.db import db
class Department(db.Model):
"""ORM model"""
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(100), nullable=False)
employees = db.relationship('Employee', lazy=True, cascade="all, dele... | 29.294118 | 77 | 0.662651 | 67 | 498 | 4.791045 | 0.61194 | 0.074766 | 0.062305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.192771 | 498 | 16 | 78 | 31.125 | 0.791045 | 0.184739 | 0 | 0 | 0 | 0 | 0.116456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1cb284ad7ac5dea470642a9c565018e8bd5bf860 | 156 | py | Python | tests/helper.py | willmaclean/MedCAT | 528a4765acbdf04acf8a8bd90a4f19bc1e3e33c3 | [
"MIT"
] | 243 | 2019-07-18T05:48:43.000Z | 2022-03-29T17:35:47.000Z | tests/helper.py | willmaclean/MedCAT | 528a4765acbdf04acf8a8bd90a4f19bc1e3e33c3 | [
"MIT"
] | 65 | 2020-05-27T14:29:48.000Z | 2022-03-09T11:31:47.000Z | tests/helper.py | willmaclean/MedCAT | 528a4765acbdf04acf8a8bd90a4f19bc1e3e33c3 | [
"MIT"
] | 63 | 2019-07-07T16:37:00.000Z | 2022-03-09T10:29:08.000Z | import unittest
class AsyncMock(unittest.mock.MagicMock):
async def __call__(self, *args, **kwargs):
return super().__call__(*args, **kwargs)
| 22.285714 | 48 | 0.692308 | 18 | 156 | 5.555556 | 0.777778 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 156 | 6 | 49 | 26 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1cb83d24df43a7eda0e7332db228801cb875cd7a | 448 | py | Python | TableFormatters/common.py | christophersanborn/HTLCProductsSim | b0abc3fc76244461454f39f13fcf092beb2d6b25 | [
"MIT"
] | 2 | 2019-11-16T19:54:58.000Z | 2019-12-09T16:43:54.000Z | TableFormatters/common.py | christophersanborn/HTLCProductsSim | b0abc3fc76244461454f39f13fcf092beb2d6b25 | [
"MIT"
] | null | null | null | TableFormatters/common.py | christophersanborn/HTLCProductsSim | b0abc3fc76244461454f39f13fcf092beb2d6b25 | [
"MIT"
] | 2 | 2020-09-27T15:29:55.000Z | 2020-12-29T09:32:10.000Z | # common.py
#
# Module common infrastructure
#
_FORMATTERS = dict()
def register_formatter(descriptor):
"""Decorator that registers a formatter class"""
def passthrough(cls):
_FORMATTERS[descriptor] = cls
return cls
return passthrough
def get_formatter(descriptor):
if not descriptor i... | 22.4 | 52 | 0.694196 | 48 | 448 | 6.333333 | 0.583333 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 448 | 19 | 53 | 23.578947 | 0.868571 | 0.183036 | 0 | 0 | 0 | 0 | 0.072829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.181818 | 0 | 0 | 0.545455 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1cc7d3ff8e1c803f0a7d22ac1ef2e280b48423e4 | 442 | py | Python | edmunds/support/serviceprovider.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 4 | 2017-09-07T13:39:50.000Z | 2018-05-31T16:14:50.000Z | edmunds/support/serviceprovider.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 103 | 2017-03-19T15:58:21.000Z | 2018-07-11T20:36:17.000Z | edmunds/support/serviceprovider.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 2 | 2017-10-14T15:20:11.000Z | 2018-04-20T09:55:44.000Z |
from edmunds.globals import abc, ABC
class ServiceProvider(ABC):
"""
The Service Provider
"""
def __init__(self, app):
"""
Initialize the application
:param app: The application
:type app: edmunds.application.Application
"""
self.app = app
... | 17.68 | 55 | 0.549774 | 41 | 442 | 5.829268 | 0.512195 | 0.083682 | 0.150628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.359729 | 442 | 24 | 56 | 18.416667 | 0.844523 | 0.355204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1ce278ff80347145952aa276f0f028f1aa140dec | 276 | py | Python | weather_api/serializers.py | Akshay-Anand010/Rest_framework_readOnly | b6a2a4b774a4ea848783571ecdc5cded5c4d8db0 | [
"MIT"
] | null | null | null | weather_api/serializers.py | Akshay-Anand010/Rest_framework_readOnly | b6a2a4b774a4ea848783571ecdc5cded5c4d8db0 | [
"MIT"
] | null | null | null | weather_api/serializers.py | Akshay-Anand010/Rest_framework_readOnly | b6a2a4b774a4ea848783571ecdc5cded5c4d8db0 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Description
class DescriptionSerializer(serializers.ModelSerializer):
#serializes the description
class Meta:
model=Description
fields=['id','weather_description','temprature','created_on']
| 25.090909 | 69 | 0.76087 | 27 | 276 | 7.666667 | 0.740741 | 0.154589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 276 | 10 | 70 | 27.6 | 0.892241 | 0.094203 | 0 | 0 | 0 | 0 | 0.164659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1ceb53b09ba8419a718f13d7bd7a0c31e558021a | 1,510 | py | Python | e/mail-relay/web/apps/core/migrations/0082_auto_20180320_1602.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | e/mail-relay/web/apps/core/migrations/0082_auto_20180320_1602.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | e/mail-relay/web/apps/core/migrations/0082_auto_20180320_1602.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0081_auto_20180320_1549'),
]
operations = [
migrations.RenameField(
model_name='customersummary',
... | 27.454545 | 44 | 0.557616 | 133 | 1,510 | 5.93985 | 0.240602 | 0.212658 | 0.263291 | 0.303797 | 0.713924 | 0.693671 | 0.693671 | 0.693671 | 0.589873 | 0.172152 | 0 | 0.017017 | 0.338411 | 1,510 | 54 | 45 | 27.962963 | 0.773774 | 0.013907 | 0 | 0.5 | 0 | 0 | 0.222596 | 0.015467 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.104167 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1cf508199cbd0764682bf5bdcd24b98f81e53734 | 1,151 | py | Python | tonks/vision/helpers.py | vanderveld/tonks | e87afbd9614b276b443b4a7527fd1fda01a8be4c | [
"BSD-3-Clause"
] | null | null | null | tonks/vision/helpers.py | vanderveld/tonks | e87afbd9614b276b443b4a7527fd1fda01a8be4c | [
"BSD-3-Clause"
] | null | null | null | tonks/vision/helpers.py | vanderveld/tonks | e87afbd9614b276b443b4a7527fd1fda01a8be4c | [
"BSD-3-Clause"
] | null | null | null | from creevey.ops.image import centercrop
import numpy as np
from PIL import Image
import torch.nn as nn
def center_crop_pil_image(img):
"""
Helper function to crop the center out of images.
Utilizes the centercrop function from `creevey`
Parameters
----------
img: array
PIL image arr... | 24.489362 | 85 | 0.638575 | 156 | 1,151 | 4.551282 | 0.519231 | 0.033803 | 0.016901 | 0.019718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008454 | 0.280626 | 1,151 | 46 | 86 | 25.021739 | 0.849034 | 0.415291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e801a0a3b4b9d2fd4dafbd830a72cf73ae12039b | 51 | py | Python | weblog/settings/production.py | ajoyatgithub/django_site | a77c60a752b17a4e84c972850f1b98e3ae174dc8 | [
"MIT"
] | 1 | 2015-12-18T06:40:53.000Z | 2015-12-18T06:40:53.000Z | weblog/settings/production.py | ajoyatgithub/django_site | a77c60a752b17a4e84c972850f1b98e3ae174dc8 | [
"MIT"
] | 6 | 2016-05-08T15:09:36.000Z | 2021-06-10T18:43:19.000Z | weblog/settings/production.py | ajoyoommen/django_site | a77c60a752b17a4e84c972850f1b98e3ae174dc8 | [
"MIT"
] | null | null | null | from weblog.settings.base import *
DEBUG = False
| 10.2 | 34 | 0.745098 | 7 | 51 | 5.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 51 | 4 | 35 | 12.75 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e80b867f0983595a1479af0e9a76e9899a48527c | 114 | py | Python | login.py | Yqzero/test98 | f1b3d3ce2ea2b23e64e4f4fd0b9fe06cffae78ed | [
"MIT"
] | null | null | null | login.py | Yqzero/test98 | f1b3d3ce2ea2b23e64e4f4fd0b9fe06cffae78ed | [
"MIT"
] | null | null | null | login.py | Yqzero/test98 | f1b3d3ce2ea2b23e64e4f4fd0b9fe06cffae78ed | [
"MIT"
] | null | null | null | num1 = 11
num2 = 22
num3 = 33
num4 = 44
num5 = 55
num6 = 66
num7 = 77
num8 = 88
num10 = 100
numm11 = 111
| 5.7 | 12 | 0.570175 | 20 | 114 | 3.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.453333 | 0.342105 | 114 | 19 | 13 | 6 | 0.413333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
08fd409e0038bb7da6e43c86677b01f8e1ec4734 | 652 | py | Python | fastapi_lazy/models/models.py | loftwah/fastapi-lazy | 6012b87ab6bb1bcfe32dc0ec36093a105bdcb6a9 | [
"MIT"
] | 74 | 2021-10-02T23:30:29.000Z | 2022-02-28T19:55:54.000Z | fastapi_lazy/models/models.py | loftwah/fastapi-lazy | 6012b87ab6bb1bcfe32dc0ec36093a105bdcb6a9 | [
"MIT"
] | 11 | 2021-10-03T11:32:03.000Z | 2022-01-27T21:40:17.000Z | fastapi_lazy/models/models.py | loftwah/fastapi-lazy | 6012b87ab6bb1bcfe32dc0ec36093a105bdcb6a9 | [
"MIT"
] | 10 | 2021-10-03T03:50:22.000Z | 2022-02-25T07:13:51.000Z | from pydantic import BaseModel
class User(BaseModel):
"""
User model
Args:
BaseModel (pydantic.BaseModel): Base model for pydantic
"""
name: str
email: str
password: str
class ShowUser(BaseModel):
"""
Show user model
Args:
BaseModel (pydantic.BaseModel): Ba... | 14.173913 | 63 | 0.576687 | 67 | 652 | 5.597015 | 0.328358 | 0.117333 | 0.144 | 0.208 | 0.541333 | 0.541333 | 0.541333 | 0.541333 | 0.541333 | 0.394667 | 0 | 0 | 0.33589 | 652 | 45 | 64 | 14.488889 | 0.866051 | 0.406442 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.076923 | 0 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1c03c3c2c90068618ed6a9f6b07d6d1e82ebab7d | 218 | py | Python | django_jinja/apps.py | hartym/django-jinja | 97c93c37b5d9ccc4b2ae34e1fc2f63929780e271 | [
"BSD-3-Clause"
] | null | null | null | django_jinja/apps.py | hartym/django-jinja | 97c93c37b5d9ccc4b2ae34e1fc2f63929780e271 | [
"BSD-3-Clause"
] | null | null | null | django_jinja/apps.py | hartym/django-jinja | 97c93c37b5d9ccc4b2ae34e1fc2f63929780e271 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
from django_jinja import base
class DjangoJinjaAppConfig(AppConfig):
name = "django_jinja"
verbose_name = "Django Jinja"
def ready(self):
base.env.initialize()
| 18.166667 | 38 | 0.720183 | 26 | 218 | 5.923077 | 0.615385 | 0.214286 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201835 | 218 | 11 | 39 | 19.818182 | 0.885057 | 0 | 0 | 0 | 0 | 0 | 0.110599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c0abc4e2daea142aad6448100cacf6af6e65bd0 | 891 | py | Python | app/main/forms.py | ErastusNjaramba/Pitch | d51b2e284bef3752b16b9f129916eb956fd60897 | [
"MIT"
] | null | null | null | app/main/forms.py | ErastusNjaramba/Pitch | d51b2e284bef3752b16b9f129916eb956fd60897 | [
"MIT"
] | null | null | null | app/main/forms.py | ErastusNjaramba/Pitch | d51b2e284bef3752b16b9f129916eb956fd60897 | [
"MIT"
] | null | null | null |
from flask_wtf import FlaskForm
from wtforms import StringField,PasswordField,SubmitField,BooleanField,TextAreaField,SelectField
from wtforms.validators import Required,Email,EqualTo
from wtforms import ValidationError
from ..models import User
class updateProfile(FlaskForm):
bio = TextAreaField('Tell us about yo... | 44.55 | 179 | 0.75982 | 91 | 891 | 7.395604 | 0.450549 | 0.106984 | 0.102526 | 0.104012 | 0.121843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1156 | 891 | 20 | 180 | 44.55 | 0.854061 | 0 | 0 | 0.125 | 0 | 0 | 0.182941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.3125 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
1c14c04313c0a3d1058a89045afc63bf3e539645 | 1,142 | py | Python | stocks/tools/proxy.py | pchaos/wanggeService | 839f7c6c52a685fcdc4b6a70cf8e9d6c8cc78255 | [
"MIT"
] | 11 | 2018-05-15T18:02:31.000Z | 2020-05-07T03:57:33.000Z | stocks/tools/proxy.py | pchaos/wanggeService | 839f7c6c52a685fcdc4b6a70cf8e9d6c8cc78255 | [
"MIT"
] | 1 | 2018-05-16T11:27:32.000Z | 2018-07-07T10:56:58.000Z | stocks/tools/proxy.py | pchaos/wanggeService | 839f7c6c52a685fcdc4b6a70cf8e9d6c8cc78255 | [
"MIT"
] | 13 | 2018-05-15T18:02:27.000Z | 2022-03-23T06:18:29.000Z | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
@File : proxy.py
Description :
@Author : pchaos
date: 18-6-13
-------------------------------------------------
Change Activity:
18-6-13:
@Contact : p19992003#gmail.com
-----------------... | 22.84 | 103 | 0.492119 | 118 | 1,142 | 4.669492 | 0.533898 | 0.054446 | 0.018149 | 0.079855 | 0.094374 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065909 | 0.229422 | 1,142 | 49 | 104 | 23.306122 | 0.560227 | 0.365149 | 0 | 0 | 0 | 0 | 0.188925 | 0.071661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1c16165c8f1caacc4026717da55c78ca4bfeecd6 | 6,203 | py | Python | tests/unit/test_github_webhook_lambda.py | smatsumt/github-slack-integration-lambda | 9546aeb2b78e0cf911000deca75143958d7921ff | [
"MIT"
] | 1 | 2020-04-26T07:54:54.000Z | 2020-04-26T07:54:54.000Z | tests/unit/test_github_webhook_lambda.py | smatsumt/github-slack-integration-lambda | 9546aeb2b78e0cf911000deca75143958d7921ff | [
"MIT"
] | null | null | null | tests/unit/test_github_webhook_lambda.py | smatsumt/github-slack-integration-lambda | 9546aeb2b78e0cf911000deca75143958d7921ff | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
from pathlib import Path
from unittest.mock import MagicMock
SCRIPT_PATH = Path(__file__).parent.resolve()
def test_find_mentioned_user():
""" メッセージ中の mention を拾うことのテスト """
import github_webhook_lambda
# 通常のケース
r = github_webhook_lambda._fi... | 47.351145 | 172 | 0.750605 | 753 | 6,203 | 5.875166 | 0.166003 | 0.088156 | 0.128843 | 0.098101 | 0.765145 | 0.737342 | 0.70321 | 0.665009 | 0.624548 | 0.624548 | 0 | 0.011099 | 0.128486 | 6,203 | 130 | 173 | 47.715385 | 0.807251 | 0.074641 | 0 | 0.505747 | 0 | 0.045977 | 0.274947 | 0.065004 | 0 | 0 | 0 | 0 | 0.172414 | 1 | 0.08046 | false | 0 | 0.114943 | 0 | 0.195402 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c42031629c254017278935e32527500eb389956 | 567 | py | Python | PythonLearnig/Algorithms_Part_2/Ex19DirectedEdge.py | dhivadeekshi/Algorithms-Samples | cadd159d835ce64d51d786eafc25c40e35540353 | [
"MIT"
] | null | null | null | PythonLearnig/Algorithms_Part_2/Ex19DirectedEdge.py | dhivadeekshi/Algorithms-Samples | cadd159d835ce64d51d786eafc25c40e35540353 | [
"MIT"
] | null | null | null | PythonLearnig/Algorithms_Part_2/Ex19DirectedEdge.py | dhivadeekshi/Algorithms-Samples | cadd159d835ce64d51d786eafc25c40e35540353 | [
"MIT"
] | null | null | null | class DirectedEdge:
def __init__(self, v, w, weight):
self.v = v
self.w = w
self.weight = weight
def from_v(self):
return self.v
def to_v(self):
return self.w
def get_weight(self):
return self.weight
def compare_to(self, that):
return self... | 18.9 | 68 | 0.585538 | 79 | 567 | 3.848101 | 0.329114 | 0.065789 | 0.138158 | 0.098684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012255 | 0.280423 | 567 | 29 | 69 | 19.551724 | 0.732843 | 0 | 0 | 0 | 0 | 0 | 0.102293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.368421 | false | 0 | 0 | 0.263158 | 0.684211 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1c47fbfef732fe271a24cdb151acef2779e5603d | 644 | py | Python | tools/telemetry/telemetry/unittest_util/options_for_unittests.py | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | telemetry/telemetry/testing/options_for_unittests.py | kind-john/catapult | 29635376119833f172a58a48a3282d353ce55d2b | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | telemetry/telemetry/testing/options_for_unittests.py | kind-john/catapult | 29635376119833f172a58a48a3282d353ce55d2b | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # Copyright 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This module provides the global variable options_for_unittests.
This is set to a BrowserOptions object by the test harness, or None
if unit tests are not... | 19.515152 | 72 | 0.734472 | 99 | 644 | 4.707071 | 0.626263 | 0.038627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00956 | 0.187888 | 644 | 32 | 73 | 20.125 | 0.881453 | 0.635093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1c68b4f424a0da44ffc827943f46d39c2fba5a58 | 328 | py | Python | bin/parse_payload.py | timscchao/ingics-message-parser-py | 865eca5fc8245d2b9b577085a201eaa3c139ada1 | [
"MIT"
] | null | null | null | bin/parse_payload.py | timscchao/ingics-message-parser-py | 865eca5fc8245d2b9b577085a201eaa3c139ada1 | [
"MIT"
] | 1 | 2021-05-20T07:11:34.000Z | 2021-05-20T07:11:34.000Z | bin/parse_payload.py | timscchao/ingics-message-parser-py | 865eca5fc8245d2b9b577085a201eaa3c139ada1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import pprint
from igsparser import PayloadParser as parser
if len(sys.argv) > 1:
pprint.pprint(vars(parser.parse(sys.argv[1])))
else:
print('Usage: {} <Beacon Payload>'.format(sys.argv[0]))
print('Example: {} \'02010612FF590080BC330100FFFFFFFF000004000000\''.format(sys.ar... | 27.333333 | 93 | 0.716463 | 43 | 328 | 5.465116 | 0.627907 | 0.119149 | 0.068085 | 0.119149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124567 | 0.118902 | 328 | 11 | 94 | 29.818182 | 0.688581 | 0.060976 | 0 | 0 | 0 | 0 | 0.127036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
1c78045c92954fdfe10203815646b3577bc558c1 | 796 | py | Python | tools/vis/3d/containers/TrajectoriesContainer.py | sieniven/rlss | b1f7ff1abf316242a0644b76559ad921fbca3099 | [
"MIT"
] | null | null | null | tools/vis/3d/containers/TrajectoriesContainer.py | sieniven/rlss | b1f7ff1abf316242a0644b76559ad921fbca3099 | [
"MIT"
] | null | null | null | tools/vis/3d/containers/TrajectoriesContainer.py | sieniven/rlss | b1f7ff1abf316242a0644b76559ad921fbca3099 | [
"MIT"
] | null | null | null | from std_msgs.msg import ColorRGBA
class TrajectoriesContainer:
def __init__(self):
self.trajectories = {}
self.last_markers = {}
def robot_ids(self):
return [id for id in self.trajectories]
def setRobotTrajectory(self, _robot_id, _trajectory):
self.trajectories[_robot_id]... | 29.481481 | 83 | 0.657035 | 93 | 796 | 5.311828 | 0.354839 | 0.161943 | 0.091093 | 0.093117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246231 | 796 | 27 | 84 | 29.481481 | 0.823333 | 0 | 0 | 0.105263 | 0 | 0 | 0.003764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.105263 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1c877b91033def2e9a63f01765cde127eefaeffd | 10,698 | py | Python | sdk/python/pulumi_hcloud/snapshot.py | pulumi/pulumi-hcloud | 332962b39a3a9f23e466eb3b7abc1347af1a118f | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2020-08-06T18:30:45.000Z | 2022-02-21T09:49:51.000Z | sdk/python/pulumi_hcloud/snapshot.py | pulumi/pulumi-hcloud | 332962b39a3a9f23e466eb3b7abc1347af1a118f | [
"ECL-2.0",
"Apache-2.0"
] | 71 | 2020-07-02T11:19:44.000Z | 2022-03-25T19:34:21.000Z | sdk/python/pulumi_hcloud/snapshot.py | pulumi/pulumi-hcloud | 332962b39a3a9f23e466eb3b7abc1347af1a118f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-07-21T19:46:49.000Z | 2020-07-21T19:46:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 37.80212 | 169 | 0.624977 | 1,229 | 10,698 | 5.231082 | 0.131001 | 0.073573 | 0.070929 | 0.042464 | 0.743817 | 0.720952 | 0.697309 | 0.675999 | 0.65189 | 0.632136 | 0 | 0.001668 | 0.271453 | 10,698 | 282 | 170 | 37.93617 | 0.823197 | 0.321462 | 0 | 0.634483 | 1 | 0 | 0.07797 | 0.004586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151724 | false | 0.006897 | 0.034483 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98f1088467dec110ac27090b66afce18a0897a8e | 407 | py | Python | ibm/cloudsql.py | dlminvestments/VM-1 | 20541e50b0b48b32dc269ac470cd1b548fdbcd87 | [
"Apache-2.0"
] | null | null | null | ibm/cloudsql.py | dlminvestments/VM-1 | 20541e50b0b48b32dc269ac470cd1b548fdbcd87 | [
"Apache-2.0"
] | 474 | 2020-12-23T22:22:55.000Z | 2022-03-30T18:10:11.000Z | ibm/cloudsql.py | dlminvestments/VM-1 | 20541e50b0b48b32dc269ac470cd1b548fdbcd87 | [
"Apache-2.0"
] | 1 | 2020-12-23T23:56:24.000Z | 2020-12-23T23:56:24.000Z | pip install ibmcloudsql
git clone git@github.com:IBM-Cloud/sql-query-clients.git cd sql-query-client/Python pip install -e .
python -m pytest pytest
jdbc:ibmcloudsql:crn:v1:bluemix:public:sql-query:us-south:a/8d2dc1f31e654e19a5a65d3f71090d1e:8a33a30d-d641-4b4c-bde4-1443ab3f799e::?targetcosurl=cos://us-south/sql-8a3... | 40.7 | 208 | 0.818182 | 60 | 407 | 5.55 | 0.683333 | 0.072072 | 0.096096 | 0.12012 | 0.192192 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213542 | 0.056511 | 407 | 9 | 209 | 45.222222 | 0.653646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98f3adbc41eb0869b163bdee7051227012e50218 | 50 | py | Python | ore/teams/__init__.py | lukegb/Ore-python | 1d1c73795406fa52ae969726feb89f7aedbc4afc | [
"MIT"
] | 1 | 2016-05-24T14:49:42.000Z | 2016-05-24T14:49:42.000Z | ore/teams/__init__.py | gratimax/ore-old | 1d1c73795406fa52ae969726feb89f7aedbc4afc | [
"MIT"
] | null | null | null | ore/teams/__init__.py | gratimax/ore-old | 1d1c73795406fa52ae969726feb89f7aedbc4afc | [
"MIT"
] | null | null | null | default_app_config = 'ore.teams.apps.TeamsConfig'
| 25 | 49 | 0.82 | 7 | 50 | 5.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 50 | 1 | 50 | 50 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0.52 | 0.52 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98f8a4a4522d2cfb50c98971dd6d6db35d37bd27 | 1,842 | py | Python | src/mex/simplex/maximizer_class.py | lecepe00/mex_simplex | ab103bc7df4a8fa73daac4469c50eae43a55ffca | [
"MIT"
] | 1 | 2021-05-12T02:34:49.000Z | 2021-05-12T02:34:49.000Z | src/mex/simplex/maximizer_class.py | lecepe00/mex_simplex | ab103bc7df4a8fa73daac4469c50eae43a55ffca | [
"MIT"
] | 12 | 2021-05-14T04:44:07.000Z | 2021-05-20T22:23:12.000Z | src/mex/simplex/maximizer_class.py | lecepe00/mex_simplex | ab103bc7df4a8fa73daac4469c50eae43a55ffca | [
"MIT"
] | 1 | 2021-05-12T17:04:52.000Z | 2021-05-12T17:04:52.000Z | import numpy as np
from mex.simplex.simplex_networks import create_matrix
from mex.simplex.problem_definition import constrain, obj, maxz
from mex.utils.general import generates_matrix, generate_tableau
class Maximizer():
"""
Maximize the objective function
Args:
A (matrix):
b (vector):... | 25.583333 | 122 | 0.574376 | 218 | 1,842 | 4.715596 | 0.344037 | 0.019455 | 0.035019 | 0.013619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.30456 | 1,842 | 71 | 123 | 25.943662 | 0.791569 | 0.396308 | 0 | 0 | 1 | 0 | 0.003333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
98fd868b129ac0a1706492cbe7c85a0574a8b6ca | 498 | py | Python | papertracker/admin.py | netmsys/conf-analysis | 20945710646ac346caff5d2d7b45a44402721426 | [
"Apache-2.0"
] | null | null | null | papertracker/admin.py | netmsys/conf-analysis | 20945710646ac346caff5d2d7b45a44402721426 | [
"Apache-2.0"
] | null | null | null | papertracker/admin.py | netmsys/conf-analysis | 20945710646ac346caff5d2d7b45a44402721426 | [
"Apache-2.0"
] | 1 | 2020-08-28T10:36:15.000Z | 2020-08-28T10:36:15.000Z | from django.contrib import admin
# Register your models here.
from .models import Institution, Area, Paper, Author, Organization, Conference, Category, ConfAuthor, ConfPaper, CSCat
admin.site.register(Institution)
admin.site.register(Area)
admin.site.register(Paper)
admin.site.register(Author)
admin.site.reg... | 31.125 | 119 | 0.795181 | 62 | 498 | 6.387097 | 0.322581 | 0.227273 | 0.429293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098394 | 498 | 15 | 120 | 33.2 | 0.88196 | 0.052209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98fdd76bf7fd27757ae667f58a28716b36637d4e | 8,127 | py | Python | tests/blueprints/slack/slash_command_test.py | Thornycrackers-Forks/busy-beaver | e47d481d217e137ecc2a9e450b9a101b508ce50f | [
"MIT"
] | null | null | null | tests/blueprints/slack/slash_command_test.py | Thornycrackers-Forks/busy-beaver | e47d481d217e137ecc2a9e450b9a101b508ce50f | [
"MIT"
] | null | null | null | tests/blueprints/slack/slash_command_test.py | Thornycrackers-Forks/busy-beaver | e47d481d217e137ecc2a9e450b9a101b508ce50f | [
"MIT"
] | null | null | null | import pytest
from busy_beaver.blueprints.slack.slash_command import (
command_not_found,
disconnect_github,
display_help_text,
link_github,
next_event,
relink_github,
upcoming_events,
)
from busy_beaver.config import FULL_INSTALLATION_WORKSPACE_IDS
from busy_beaver.models import GitHubSumm... | 30.552632 | 87 | 0.719577 | 972 | 8,127 | 5.688272 | 0.131687 | 0.075963 | 0.112136 | 0.151384 | 0.783505 | 0.748417 | 0.73847 | 0.703744 | 0.652559 | 0.583107 | 0 | 0.017055 | 0.1559 | 8,127 | 265 | 88 | 30.667925 | 0.788921 | 0.01292 | 0 | 0.532258 | 0 | 0 | 0.1389 | 0.007439 | 0 | 0 | 0 | 0 | 0.134409 | 1 | 0.102151 | false | 0 | 0.021505 | 0.005376 | 0.145161 | 0.005376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c70724be2a7b5d97bb1957043848e0c86a2ec383 | 1,050 | py | Python | example.py | developius/ControlRoom | 004b7b62f7af4d8d82b44d18a21228cb3afdcecd | [
"Apache-2.0"
] | null | null | null | example.py | developius/ControlRoom | 004b7b62f7af4d8d82b44d18a21228cb3afdcecd | [
"Apache-2.0"
] | null | null | null | example.py | developius/ControlRoom | 004b7b62f7af4d8d82b44d18a21228cb3afdcecd | [
"Apache-2.0"
] | null | null | null | import mcpi.minecraft as minecraft
import mcpi.block as block
from controlroom import ControlRoom
import time
mc = minecraft.Minecraft.create()
cr = ControlRoom(mc)
# Hunger Games-like tree chase (try changing the threat to "lava" or "water"
#mc.postToChat("We're hunting one of you down...")
#duration = cr.chase(bloc... | 36.206897 | 101 | 0.707619 | 173 | 1,050 | 4.283237 | 0.491329 | 0.032389 | 0.020243 | 0.032389 | 0.120108 | 0.040486 | 0.040486 | 0.040486 | 0.040486 | 0 | 0 | 0.026667 | 0.142857 | 1,050 | 28 | 102 | 37.5 | 0.796667 | 0.80381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c70ba137bb7aab77d244477a669299cc82122329 | 126 | py | Python | nhc2_coco/coco_fan_speed.py | nielsvissers/nhc2-coco | 4afd0ef568a72c9e6a4ad68e56467aaf62044c53 | [
"MIT"
] | 4 | 2020-04-15T11:33:31.000Z | 2022-03-04T17:20:26.000Z | nhc2_coco/coco_fan_speed.py | nielsvissers/nhc2-coco | 4afd0ef568a72c9e6a4ad68e56467aaf62044c53 | [
"MIT"
] | 5 | 2021-01-28T22:01:57.000Z | 2021-12-19T14:56:56.000Z | nhc2_coco/coco_fan_speed.py | nielsvissers/nhc2-coco | 4afd0ef568a72c9e6a4ad68e56467aaf62044c53 | [
"MIT"
] | 12 | 2020-01-15T19:49:55.000Z | 2022-03-04T17:20:27.000Z | from enum import Enum
class CoCoFanSpeed(Enum):
LOW = 'Low'
MEDIUM = 'Medium'
HIGH = 'High'
BOOST = 'Boost'
| 14 | 25 | 0.595238 | 15 | 126 | 5 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 126 | 8 | 26 | 15.75 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c70d787de59fe17b8b54a5bcb62e203ac26a5b0d | 3,239 | py | Python | pepega/src/VirtualMachine/VMContext.py | dendy1/pepega | f95a138c000bc90f7cd6c38496de441107b42dbc | [
"MIT"
] | null | null | null | pepega/src/VirtualMachine/VMContext.py | dendy1/pepega | f95a138c000bc90f7cd6c38496de441107b42dbc | [
"MIT"
] | null | null | null | pepega/src/VirtualMachine/VMContext.py | dendy1/pepega | f95a138c000bc90f7cd6c38496de441107b42dbc | [
"MIT"
] | null | null | null | from typing import List
from src.Exceptions import VirtualMachineScopeOrderError, VirtualMachineInvalidOperationError
from src.VirtualMachine.OPCodes import OPCode
from src.VirtualMachine.Scope import Scope
from src.VirtualMachine.Values import Value, CustomFunctionValue
class CallContext:
def __init__(self, sco... | 31.446602 | 114 | 0.70176 | 384 | 3,239 | 5.598958 | 0.223958 | 0.100465 | 0.102326 | 0.030698 | 0.167907 | 0.082326 | 0.032558 | 0 | 0 | 0 | 0 | 0.003146 | 0.214881 | 3,239 | 102 | 115 | 31.754902 | 0.842312 | 0.028404 | 0 | 0.191781 | 0 | 0 | 0.028308 | 0 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0.315068 | false | 0 | 0.068493 | 0.136986 | 0.561644 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c71b9c696aff7461f209700c2274562ee509ff2b | 375 | py | Python | kolibri/core/utils/csv.py | MBKayro/kolibri | 0a38a5fb665503cf8f848b2f65938e73bfaa5989 | [
"MIT"
] | 545 | 2016-01-19T19:26:55.000Z | 2022-03-20T00:13:04.000Z | kolibri/core/utils/csv.py | MBKayro/kolibri | 0a38a5fb665503cf8f848b2f65938e73bfaa5989 | [
"MIT"
] | 8,329 | 2016-01-19T19:32:02.000Z | 2022-03-31T21:23:12.000Z | kolibri/core/utils/csv.py | MBKayro/kolibri | 0a38a5fb665503cf8f848b2f65938e73bfaa5989 | [
"MIT"
] | 493 | 2016-01-19T19:26:48.000Z | 2022-03-28T14:35:05.000Z | import io
import sys
def open_csv_for_writing(filepath):
if sys.version_info[0] < 3:
return io.open(filepath, "wb")
return io.open(filepath, "w", newline="", encoding="utf-8-sig")
def open_csv_for_reading(filepath):
if sys.version_info[0] < 3:
return io.open(filepath, "rb")
return io... | 25 | 67 | 0.658667 | 58 | 375 | 4.12069 | 0.431034 | 0.133891 | 0.200837 | 0.334728 | 0.569038 | 0.384937 | 0.384937 | 0.384937 | 0.384937 | 0.384937 | 0 | 0.019544 | 0.181333 | 375 | 14 | 68 | 26.785714 | 0.758958 | 0 | 0 | 0.2 | 0 | 0 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c7323abb8bab3782480b50c87ab621189e9b745b | 3,122 | py | Python | docker/app/app/backend/apps/_archive/accounts_old/registration/backend.py | JTarball/tetherbox | cae7a4bb6e29da0f34670f8c8d228faf5f909f3a | [
"0BSD"
] | 1 | 2018-02-26T07:26:30.000Z | 2018-02-26T07:26:30.000Z | docker/app/app/backend/apps/_archive/accounts_old/registration/backend.py | JTarball/docker-django-polymer-starter-kit | b5250030b1646e29567c15d01ba4668c6ad535c9 | [
"0BSD"
] | null | null | null | docker/app/app/backend/apps/_archive/accounts_old/registration/backend.py | JTarball/docker-django-polymer-starter-kit | b5250030b1646e29567c15d01ba4668c6ad535c9 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python
"""
accounts.registration.backend
=============================
Main backend object controlling activation and registration
of users
"""
from django.contrib.sites.models import Site, RequestSite
from project.settings import base as settings
from .models import RegistrationProfil... | 35.885057 | 146 | 0.676169 | 356 | 3,122 | 5.786517 | 0.365169 | 0.026699 | 0.021845 | 0.024757 | 0.224272 | 0.130097 | 0.130097 | 0.130097 | 0.130097 | 0.130097 | 0 | 0.001699 | 0.245996 | 3,122 | 86 | 147 | 36.302326 | 0.873407 | 0.044523 | 0 | 0.135135 | 0 | 0 | 0.075935 | 0.048481 | 0 | 0 | 0 | 0.011628 | 0 | 0 | null | null | 0.054054 | 0.135135 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c749fbfb5f3e2fbb94220220e1a5eee21c0397e2 | 112,289 | py | Python | libcsp/bindings/python/pycspauto.py | srjustice/kubos | ff33c17a7b5335d981cd0a49c65874f9f733338d | [
"Apache-2.0"
] | 60 | 2017-01-12T18:14:33.000Z | 2018-01-05T00:15:13.000Z | libcsp/bindings/python/pycspauto.py | srjustice/kubos | ff33c17a7b5335d981cd0a49c65874f9f733338d | [
"Apache-2.0"
] | 120 | 2016-10-26T20:18:32.000Z | 2018-01-05T23:27:36.000Z | libcsp/bindings/python/pycspauto.py | srjustice/kubos | ff33c17a7b5335d981cd0a49c65874f9f733338d | [
"Apache-2.0"
] | 20 | 2016-11-23T15:25:37.000Z | 2018-01-06T21:52:07.000Z | '''Wrapper for csp.h
Generated with:
/usr/local/bin/ctypesgen.py --all-headers -I../../build/include -I../../include ../../include/csp/csp.h ../../include/csp/drivers/i2c.h ../../include/csp/drivers/usart.h ../../include/csp/interfaces/csp_if_can.h ../../include/csp/interfaces/csp_if_i2c.h ../../include/csp/interfaces... | 23.181049 | 404 | 0.672835 | 16,685 | 112,289 | 4.234522 | 0.084267 | 0.063125 | 0.039913 | 0.056544 | 0.665081 | 0.630872 | 0.566076 | 0.488061 | 0.378002 | 0.313532 | 0 | 0.045289 | 0.192788 | 112,289 | 4,843 | 405 | 23.185835 | 0.734193 | 0.282049 | 0 | 0.477217 | 1 | 0 | 0.053147 | 0.003523 | 0 | 0 | 0 | 0.000206 | 0.001232 | 0 | null | null | 0.141934 | 0.003079 | null | null | 0.004926 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c76af1478e03de3125cee41b3fe4c67ac4d55d94 | 94 | py | Python | flowchem/components/devices/Manson/__init__.py | cambiegroup/flowchem | f835c79c09ebc3b84c8aacdabbecede4bb9603f2 | [
"MIT"
] | 6 | 2021-12-19T11:28:03.000Z | 2022-02-10T10:33:51.000Z | flowchem/components/devices/Manson/__init__.py | cambiegroup/flowchem | f835c79c09ebc3b84c8aacdabbecede4bb9603f2 | [
"MIT"
] | 18 | 2021-11-22T11:19:27.000Z | 2022-03-11T14:28:28.000Z | flowchem/components/devices/Manson/__init__.py | cambiegroup/flowchem | f835c79c09ebc3b84c8aacdabbecede4bb9603f2 | [
"MIT"
] | null | null | null | """ Manson devices """
from .manson import MansonPowerSupply
__all__ = ["MansonPowerSupply"]
| 18.8 | 37 | 0.744681 | 8 | 94 | 8.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 94 | 4 | 38 | 23.5 | 0.804878 | 0.148936 | 0 | 0 | 0 | 0 | 0.236111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c76c2d9fb41bba59459dfe20f8b8284c40d292df | 101 | py | Python | karabo/error.py | i4Ds/Karabo-Pipeline | c9a7f120b08b56af93bb953e284b33c107fd865c | [
"MIT"
] | null | null | null | karabo/error.py | i4Ds/Karabo-Pipeline | c9a7f120b08b56af93bb953e284b33c107fd865c | [
"MIT"
] | 42 | 2022-01-27T14:12:46.000Z | 2022-03-31T14:21:26.000Z | karabo/error.py | i4Ds/Karabo-Pipeline | c9a7f120b08b56af93bb953e284b33c107fd865c | [
"MIT"
] | null | null | null |
class KaraboException(Exception):
"""
Base Exception thrown by the Karabo Pipeline
"""
| 14.428571 | 48 | 0.663366 | 10 | 101 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247525 | 101 | 6 | 49 | 16.833333 | 0.881579 | 0.435644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7703e0600cfbade3edbabdc4cdf9e0d665d7e1d | 208 | py | Python | biography/serializers/ideology.py | The-Politico/politico-civic-biography | 1b4b9dfdb64cfaeee9536c72f8bdfc6882194625 | [
"MIT"
] | null | null | null | biography/serializers/ideology.py | The-Politico/politico-civic-biography | 1b4b9dfdb64cfaeee9536c72f8bdfc6882194625 | [
"MIT"
] | 3 | 2020-02-11T23:33:36.000Z | 2021-06-10T21:06:50.000Z | biography/serializers/ideology.py | The-Politico/politico-civic-biography | 1b4b9dfdb64cfaeee9536c72f8bdfc6882194625 | [
"MIT"
] | null | null | null | from biography.models import Ideology
from rest_framework import serializers
class IdeologySerializer(serializers.ModelSerializer):
class Meta:
model = Ideology
exclude = ('biography',)
| 23.111111 | 54 | 0.745192 | 20 | 208 | 7.7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 208 | 8 | 55 | 26 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.043269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c7893ad1fe73d844f51e9916c76a510ebc26bb33 | 796 | py | Python | deformetrica/core/models/__init__.py | coolteemf/coolteemf-deformetrica | f965d6ecc0d04f243e487468a9dafe9fe864eed2 | [
"MIT"
] | 1 | 2021-05-05T10:21:05.000Z | 2021-05-05T10:21:05.000Z | deformetrica/core/models/__init__.py | bsauty/deformetrica_metric_learning | d9cabcd28646435d961d22204945c681f5f4d3f1 | [
"MIT"
] | null | null | null | deformetrica/core/models/__init__.py | bsauty/deformetrica_metric_learning | d9cabcd28646435d961d22204945c681f5f4d3f1 | [
"MIT"
] | null | null | null |
from .abstract_statistical_model import AbstractStatisticalModel
from .affine_atlas import AffineAtlas
from .bayesian_atlas import BayesianAtlas
from .deep_pga import DeepPga
from .deterministic_atlas import DeterministicAtlas
from .geodesic_regression import GeodesicRegression
from .longitudinal_atlas import Longitud... | 53.066667 | 118 | 0.889447 | 84 | 796 | 8.011905 | 0.595238 | 0.065379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080402 | 796 | 14 | 119 | 56.857143 | 0.919399 | 0.359296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c79a91a99a15f3c7997111ea559316fb66301ddb | 1,407 | py | Python | jogos1/classejogos.py | CarolineVeleda/jogo2 | 8c9350d0f7a2c16804829568ec542fd41d52b8c8 | [
"MIT"
] | null | null | null | jogos1/classejogos.py | CarolineVeleda/jogo2 | 8c9350d0f7a2c16804829568ec542fd41d52b8c8 | [
"MIT"
] | null | null | null | jogos1/classejogos.py | CarolineVeleda/jogo2 | 8c9350d0f7a2c16804829568ec542fd41d52b8c8 | [
"MIT"
] | null | null | null | from datetime import datetime
class Jogo:
def __init__(self,nome,genero,lancamento):
self._nome = nome
#self._lancamento = format(datetime.strptime(str(lancamento),"%d-%m-%Y"),"%d-%m-%Y")
#if(isinstance(lancamento, datetime.date)):
#self._lancamento = lancamento
... | 29.93617 | 99 | 0.617626 | 166 | 1,407 | 4.885542 | 0.210843 | 0.120838 | 0.014797 | 0.069051 | 0.135635 | 0.135635 | 0.135635 | 0.135635 | 0.135635 | 0.135635 | 0 | 0 | 0.260128 | 1,407 | 46 | 100 | 30.586957 | 0.779059 | 0.109453 | 0 | 0.121212 | 0 | 0 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0 | 0.030303 | 0.151515 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c7a82269771f077950ddaec2b0d7e94a0632f83a | 55 | py | Python | colonist_ql/ql/game_state.py | zactodd/ColonistQLearning | 55691adec6331fd73ccc787ba48cf703a35f8baa | [
"MIT"
] | null | null | null | colonist_ql/ql/game_state.py | zactodd/ColonistQLearning | 55691adec6331fd73ccc787ba48cf703a35f8baa | [
"MIT"
] | 1 | 2020-06-02T10:12:06.000Z | 2020-06-02T10:12:06.000Z | colonist_ql/ql/game_state.py | zactodd/ColonistQLearning | 55691adec6331fd73ccc787ba48cf703a35f8baa | [
"MIT"
] | 2 | 2020-06-01T18:25:04.000Z | 2020-07-04T18:52:26.000Z | def get_actions(game_state):
NotImplementedError()
| 18.333333 | 28 | 0.781818 | 6 | 55 | 6.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 55 | 2 | 29 | 27.5 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7b7196753c34f8bafcc5f3d46e93c3f835017c3 | 120 | py | Python | hackerrank/5. math/2.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | hackerrank/5. math/2.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | hackerrank/5. math/2.py | Eurydia/Xian-assignment | 4a7e4bcd3d4999ea7429054fec1792064c96ff30 | [
"MIT"
] | null | null | null | import math
ab = int(input())
bc = int(input())
print(str(round(math.degrees(math.atan2(ab, bc)))) +f"\N{DEGREE SIGN}")
| 24 | 71 | 0.658333 | 21 | 120 | 3.761905 | 0.714286 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.1 | 120 | 4 | 72 | 30 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7d1774099ceff6cbcaa9e33edd749db21e0f8e0 | 4,581 | py | Python | temboo/core/Library/NYTimes/MostPopular/GetMostShared.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/NYTimes/MostPopular/GetMostShared.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/NYTimes/MostPopular/GetMostShared.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | # -*- coding: utf-8 -*-
###############################################################################
#
# GetMostShared
# Retrieves information for the blog posts and articles that are most frequently shared.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Ver... | 42.416667 | 212 | 0.68282 | 567 | 4,581 | 5.442681 | 0.343915 | 0.012962 | 0.023331 | 0.029164 | 0.25081 | 0.114064 | 0.103694 | 0.032404 | 0.032404 | 0.032404 | 0 | 0.006561 | 0.201484 | 4,581 | 107 | 213 | 42.813084 | 0.837069 | 0.50382 | 0 | 0 | 0 | 0 | 0.055287 | 0.022544 | 0 | 0 | 0 | 0 | 0 | 1 | 0.371429 | false | 0 | 0.142857 | 0.142857 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c7d7ac0783f304b9d7b5bae4e662780f1719b6eb | 620 | py | Python | utils/utils.py | DenverCoder1/dev-pro-tips-bot | 1d36a6514f7573800c687759ca63bb5a0d786816 | [
"MIT"
] | 13 | 2021-09-14T20:37:36.000Z | 2022-02-12T11:41:37.000Z | utils/utils.py | DenverCoder1/dev-pro-tips-bot | 1d36a6514f7573800c687759ca63bb5a0d786816 | [
"MIT"
] | 1 | 2022-03-23T04:40:11.000Z | 2022-03-23T04:40:11.000Z | utils/utils.py | DenverCoder1/dev-pro-tips-bot | 1d36a6514f7573800c687759ca63bb5a0d786816 | [
"MIT"
] | 6 | 2021-11-21T19:39:12.000Z | 2022-03-13T02:02:41.000Z | import re
import nextcord
import config
def blockquote(string: str) -> str:
"""Add blockquotes to a string"""
# inserts > at the start of string and after new lines
# as long as it is not at the end of the string
return re.sub(r"(^|\n)(?!$)", r"\1> ", string.strip())
def custom_id(view: str, id: int... | 32.631579 | 75 | 0.630645 | 100 | 620 | 3.89 | 0.53 | 0.015424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004107 | 0.214516 | 620 | 19 | 75 | 32.631579 | 0.794661 | 0.382258 | 0 | 0 | 0 | 0 | 0.128065 | 0.079019 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c7df7e0e9ced20433cf1c445f7d541b8b42083cf | 118 | py | Python | docs/settings.py | kuc2477/news | 215f87e6ce1a7fc99175596e6fd5b4b50a3179c6 | [
"MIT"
] | 2 | 2016-01-21T04:16:57.000Z | 2016-04-27T04:46:13.000Z | docs/settings.py | kuc2477/news | 215f87e6ce1a7fc99175596e6fd5b4b50a3179c6 | [
"MIT"
] | null | null | null | docs/settings.py | kuc2477/news | 215f87e6ce1a7fc99175596e6fd5b4b50a3179c6 | [
"MIT"
] | null | null | null | SECRET_KEY = '00000000'
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'news'
]
| 16.857143 | 34 | 0.661017 | 12 | 118 | 6.333333 | 0.833333 | 0.342105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.186441 | 118 | 6 | 35 | 19.666667 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0.491525 | 0.228814 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7e1e3a916cf608927e3ce75bd64248e377c8ec4 | 131 | py | Python | prim5.py | Nebula139/Sky2.5 | 20d637e33c716b91c9a9b464a0151053745ffab2 | [
"MIT"
] | null | null | null | prim5.py | Nebula139/Sky2.5 | 20d637e33c716b91c9a9b464a0151053745ffab2 | [
"MIT"
] | null | null | null | prim5.py | Nebula139/Sky2.5 | 20d637e33c716b91c9a9b464a0151053745ffab2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
a = [1, 2, 3]
b = [*a, 4, 5, 6]
if __name__ == '__main__':
print(b)
| 13.1 | 27 | 0.450382 | 21 | 131 | 2.428571 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.29771 | 131 | 9 | 28 | 14.555556 | 0.467391 | 0.328244 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7e5cf0da928344870ccfc0276d16f6bd0133c6a | 1,401 | py | Python | tests/mocks/features.py | timgates42/lore | cfca2b459e2b333b8400c0751be2856cedb5eedd | [
"MIT"
] | 1,549 | 2017-11-09T10:45:41.000Z | 2022-02-25T02:11:43.000Z | tests/mocks/features.py | timgates42/lore | cfca2b459e2b333b8400c0751be2856cedb5eedd | [
"MIT"
] | 65 | 2018-01-08T22:57:59.000Z | 2022-03-07T18:32:08.000Z | tests/mocks/features.py | timgates42/lore | cfca2b459e2b333b8400c0751be2856cedb5eedd | [
"MIT"
] | 129 | 2018-01-10T21:39:30.000Z | 2022-03-18T05:40:00.000Z | import logging
from lore.features.base import BaseFeatureExporter
from lore.features.s3 import S3FeatureExporter
import pandas as pd
import inflection
logger = logging.getLogger(__name__)
class UserWarehouseSearchesFeature(S3FeatureExporter):
def __init__(self):
super(UserWarehouseSearchesFeature, self)._... | 28.02 | 130 | 0.722341 | 161 | 1,401 | 6.118012 | 0.434783 | 0.036548 | 0.045685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017573 | 0.147038 | 1,401 | 49 | 131 | 28.591837 | 0.806695 | 0.453961 | 0 | 0 | 0 | 0 | 0.081191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.294118 | 0.235294 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c7e71f7bd3eb450a122acce995eba91491d1fbc0 | 3,288 | py | Python | tests/test_candidates.py | lueckem/sudoku_solver | c5409ccc7df06a318a9cc33e0a2009e9a8e650e4 | [
"MIT"
] | null | null | null | tests/test_candidates.py | lueckem/sudoku_solver | c5409ccc7df06a318a9cc33e0a2009e9a8e650e4 | [
"MIT"
] | null | null | null | tests/test_candidates.py | lueckem/sudoku_solver | c5409ccc7df06a318a9cc33e0a2009e9a8e650e4 | [
"MIT"
] | null | null | null | from unittest import TestCase
import numpy as np
from candidates import initialize_candidates, discard
from data.processing import str_to_numpy
class TestCandidates(TestCase):
def test_discard(self):
dim, blksize = 9, 3
puzzle = np.ones((dim, dim), dtype=np.int64) * -1
cands = np.ones((di... | 55.728814 | 116 | 0.684611 | 416 | 3,288 | 5.317308 | 0.153846 | 0.191682 | 0.238698 | 0.260398 | 0.616184 | 0.601266 | 0.56736 | 0.498192 | 0.428571 | 0.379295 | 0 | 0.144727 | 0.18674 | 3,288 | 58 | 117 | 56.689655 | 0.682498 | 0.040146 | 0 | 0.170732 | 0 | 0 | 0.102857 | 0.102857 | 0 | 0 | 0 | 0 | 0.512195 | 1 | 0.04878 | false | 0 | 0.097561 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7e79fb114c547cb8f12dda37b6ad115a567891d | 5,526 | py | Python | veracode/API/admin.py | ctcampbell/veracode-python | 519706785c4ab18c3392cd64fd79d7894adde10e | [
"BSD-3-Clause"
] | null | null | null | veracode/API/admin.py | ctcampbell/veracode-python | 519706785c4ab18c3392cd64fd79d7894adde10e | [
"BSD-3-Clause"
] | null | null | null | veracode/API/admin.py | ctcampbell/veracode-python | 519706785c4ab18c3392cd64fd79d7894adde10e | [
"BSD-3-Clause"
] | null | null | null | from veracode.API.core import REST
class DeleteUser(REST):
""" class: veracode.API.admin.DeleteUser
params: dynamic, see veracode.SDK.admin.DeleteUser for more info
returns: XML data from veracode API
"""
def __init__(self, args=None):
super(DeleteUser, self).__init__(... | 28.050761 | 94 | 0.613102 | 630 | 5,526 | 5.212698 | 0.071429 | 0.090438 | 0.063946 | 0.079172 | 0.71894 | 0.619976 | 0.493301 | 0.493301 | 0.493301 | 0.493301 | 0 | 0.006415 | 0.266558 | 5,526 | 197 | 95 | 28.050761 | 0.803849 | 0.338943 | 0 | 0.658228 | 0 | 0 | 0.07883 | 0.009218 | 0 | 0 | 0 | 0 | 0 | 1 | 0.329114 | false | 0 | 0.012658 | 0.164557 | 0.670886 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c7e7d230972ac832869e73eaa8ab4eaf48c958b8 | 309 | py | Python | recipe_modules/bucket_util/__init__.py | yjbanov/flutter-recipes | c54fa704ca199cf519272b4bbfd310e1831dff23 | [
"BSD-3-Clause"
] | 2 | 2021-04-09T06:07:28.000Z | 2021-04-10T01:42:23.000Z | recipe_modules/bucket_util/__init__.py | yjbanov/flutter-recipes | c54fa704ca199cf519272b4bbfd310e1831dff23 | [
"BSD-3-Clause"
] | null | null | null | recipe_modules/bucket_util/__init__.py | yjbanov/flutter-recipes | c54fa704ca199cf519272b4bbfd310e1831dff23 | [
"BSD-3-Clause"
] | 1 | 2021-09-28T16:26:46.000Z | 2021-09-28T16:26:46.000Z | DEPS = [
'depot_tools/depot_tools',
'depot_tools/gsutil',
'flutter/os_utils',
'flutter/zip',
'recipe_engine/buildbucket',
'recipe_engine/file',
'recipe_engine/path',
'recipe_engine/properties',
'recipe_engine/runtime',
'recipe_engine/step',
'recipe_engine/uuid',
]
| 22.071429 | 32 | 0.656958 | 34 | 309 | 5.647059 | 0.5 | 0.4375 | 0.15625 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190939 | 309 | 13 | 33 | 23.769231 | 0.768 | 0 | 0 | 0 | 0 | 0 | 0.679612 | 0.300971 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1be11c37e91c21179e971a892f4ac50422f4a81a | 185 | py | Python | configs/mask_rcnn/mask_rcnn_r101_fpn_mstrain-poly_3x_coco.py | qingswu/mmdetection | 321eb30034602085821b710108fb4ce4323f69f9 | [
"Apache-2.0"
] | 271 | 2021-06-19T08:41:11.000Z | 2022-03-31T05:42:42.000Z | configs/mask_rcnn/mask_rcnn_r101_fpn_mstrain-poly_3x_coco.py | qingswu/mmdetection | 321eb30034602085821b710108fb4ce4323f69f9 | [
"Apache-2.0"
] | 48 | 2021-07-06T07:17:12.000Z | 2022-03-14T11:38:36.000Z | configs/mask_rcnn/mask_rcnn_r101_fpn_mstrain-poly_3x_coco.py | qingswu/mmdetection | 321eb30034602085821b710108fb4ce4323f69f9 | [
"Apache-2.0"
] | 54 | 2021-07-07T08:40:49.000Z | 2022-03-16T05:02:35.000Z | _base_ = [
'../common/mstrain-poly_3x_coco_instance.py',
'../_base_/models/mask_rcnn_r50_fpn.py'
]
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
| 26.428571 | 76 | 0.713514 | 24 | 185 | 5.083333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054217 | 0.102703 | 185 | 6 | 77 | 30.833333 | 0.680723 | 0 | 0 | 0 | 0 | 0 | 0.551351 | 0.551351 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1bf3cd21736917f2c32bb93bc51a4bd0c2aa5b37 | 24 | py | Python | conf.py | chandancolab/08_entity_extraction_es | 7f794b928f59407a2f76590de3283a2fbb58ba51 | [
"Apache-2.0"
] | 1 | 2016-12-15T09:49:17.000Z | 2016-12-15T09:49:17.000Z | conf.py | chandancolab/08_entity_extraction_es | 7f794b928f59407a2f76590de3283a2fbb58ba51 | [
"Apache-2.0"
] | null | null | null | conf.py | chandancolab/08_entity_extraction_es | 7f794b928f59407a2f76590de3283a2fbb58ba51 | [
"Apache-2.0"
] | 2 | 2019-03-04T08:58:34.000Z | 2019-11-26T09:38:59.000Z | INLINKS_THRESHOLD = 400
| 12 | 23 | 0.833333 | 3 | 24 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.125 | 24 | 1 | 24 | 24 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1bffc077f88c5bb7cff18e7d324ab06304ae9ed6 | 135 | py | Python | exercicios/ex014.py | DeyvisonR/curso_python | 983b634d39f542369628ae48c7449ea75fd1ebbd | [
"MIT"
] | null | null | null | exercicios/ex014.py | DeyvisonR/curso_python | 983b634d39f542369628ae48c7449ea75fd1ebbd | [
"MIT"
] | null | null | null | exercicios/ex014.py | DeyvisonR/curso_python | 983b634d39f542369628ae48c7449ea75fd1ebbd | [
"MIT"
] | null | null | null | c = float(input('digite a temperatura em C°: '))
f = ((9 * c) / 5) + 32
print('a temperatura de {}C° corresponde a {}F°'.format(c, f))
| 33.75 | 62 | 0.585185 | 27 | 135 | 3.037037 | 0.592593 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.185185 | 135 | 3 | 63 | 45 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.503704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4030053b2f1e49b4f02c840d594ec6dce293531c | 119 | py | Python | winef/kzlelf/settings.py | kzlknight/winef | 83bf0e3b4a66bcbb35ece36632edff60abcd62c3 | [
"MIT"
] | null | null | null | winef/kzlelf/settings.py | kzlknight/winef | 83bf0e3b4a66bcbb35ece36632edff60abcd62c3 | [
"MIT"
] | null | null | null | winef/kzlelf/settings.py | kzlknight/winef | 83bf0e3b4a66bcbb35ece36632edff60abcd62c3 | [
"MIT"
] | null | null | null | class Settings():
class QQ():
position_a = (10,10)
position_c = (1500,10)
size = (300,400)
| 19.833333 | 30 | 0.504202 | 15 | 119 | 3.866667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 0.344538 | 119 | 5 | 31 | 23.8 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
404961cdeebc441c0e2eede3119e41920c90cca8 | 2,937 | py | Python | app/models.py | phoebekaranja/Cleaning-service | 554ef04abac1fd48042389fbbf4774802e80e910 | [
"MIT"
] | null | null | null | app/models.py | phoebekaranja/Cleaning-service | 554ef04abac1fd48042389fbbf4774802e80e910 | [
"MIT"
] | 1 | 2019-02-21T07:26:34.000Z | 2019-02-21T07:26:34.000Z | app/models.py | phoebekaranja/Cleaning-service | 554ef04abac1fd48042389fbbf4774802e80e910 | [
"MIT"
] | 6 | 2019-02-19T09:03:28.000Z | 2019-02-21T06:38:35.000Z | from . import db
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
class User(UserMixin,db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer,primary_key = True)
username = db.Column(d... | 29.969388 | 78 | 0.670412 | 384 | 2,937 | 4.960938 | 0.28125 | 0.08399 | 0.104987 | 0.08399 | 0.298688 | 0.248819 | 0.224672 | 0.164829 | 0.095538 | 0.044094 | 0 | 0.009021 | 0.207354 | 2,937 | 97 | 79 | 30.278351 | 0.809278 | 0.089547 | 0 | 0.196721 | 1 | 0 | 0.069542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147541 | false | 0.163934 | 0.081967 | 0.065574 | 0.819672 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4052ff783e15c98938512e7e0a177b749e96b269 | 1,349 | py | Python | Chapter-04/guessPasswordTests.py | ELxffy/evolutionary-computation | e61457e6749425568eba544dea2c3b2199e06b88 | [
"MIT"
] | null | null | null | Chapter-04/guessPasswordTests.py | ELxffy/evolutionary-computation | e61457e6749425568eba544dea2c3b2199e06b88 | [
"MIT"
] | null | null | null | Chapter-04/guessPasswordTests.py | ELxffy/evolutionary-computation | e61457e6749425568eba544dea2c3b2199e06b88 | [
"MIT"
] | null | null | null | import genetic
import datetime
import unittest
def get_fitness(genes, target):
return sum(1 for expected, actual in zip(target, genes) if expected == actual)
def display(candidate, startTime):
timeDiff = datetime.datetime.now() - startTime
print("{}\t{}\t{}".format(''.join(candidate.Genes), candidate.Fi... | 32.119048 | 99 | 0.685693 | 147 | 1,349 | 6.081633 | 0.367347 | 0.02349 | 0.020134 | 0.050336 | 0.186801 | 0.186801 | 0.128635 | 0.128635 | 0 | 0 | 0 | 0.000943 | 0.213491 | 1,349 | 42 | 100 | 32.119048 | 0.841659 | 0 | 0 | 0.068966 | 0 | 0 | 0.092593 | 0.04 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.275862 | false | 0.137931 | 0.103448 | 0.068966 | 0.517241 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4067b8ec7622327304a21326bb6edd190edaba07 | 1,142 | py | Python | tests/test_plugin_2.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | 3 | 2020-07-05T04:04:18.000Z | 2021-02-05T16:19:55.000Z | tests/test_plugin_2.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | null | null | null | tests/test_plugin_2.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | 1 | 2020-04-27T15:21:53.000Z | 2020-04-27T15:21:53.000Z | import rastervision as rv
from rastervision.augmentor import (Augmentor, AugmentorConfig,
AugmentorConfigBuilder)
from rastervision.protos.augmentor_pb2 import AugmentorConfig as AugmentorConfigMsg
NOOP_AUGMENTOR = 'NOOP_AUGMENTOR'
class NoopAugmentor(Augmentor):
def process(s... | 27.853659 | 83 | 0.695271 | 110 | 1,142 | 6.872727 | 0.390909 | 0.068783 | 0.058201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001144 | 0.234676 | 1,142 | 40 | 84 | 28.55 | 0.863844 | 0 | 0 | 0 | 0 | 0 | 0.012259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0.037037 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4068206103321cbdf1d9fd9cb451bdcd24371ea7 | 6,163 | py | Python | rank10.py | muzudho/practice-pandas | d4030a4ae5abd75a20902bfea249d6bd3cfe906c | [
"MIT"
] | null | null | null | rank10.py | muzudho/practice-pandas | d4030a4ae5abd75a20902bfea249d6bd3cfe906c | [
"MIT"
] | null | null | null | rank10.py | muzudho/practice-pandas | d4030a4ae5abd75a20902bfea249d6bd3cfe906c | [
"MIT"
] | null | null | null | import os
import pandas as pd
df = pd.read_csv(
"{}/practice-pandas/data/test-participant.csv".format(os.getcwd()), sep=',', engine='python')
"""
print(df.head(1000))
ID GENRE_CODE
0 1 Red
1 2 Red
2 3 Blue
3 4 Blue
4 5 Green
5 6 Blue
6 7 ... | 22.32971 | 97 | 0.429174 | 1,081 | 6,163 | 2.428307 | 0.118409 | 0.032 | 0.037333 | 0.026667 | 0.032381 | 0.025143 | 0.025143 | 0.025143 | 0.025143 | 0.025143 | 0 | 0.416612 | 0.509654 | 6,163 | 275 | 98 | 22.410909 | 0.452019 | 0.010547 | 0 | 0 | 0 | 0 | 0.205414 | 0.070064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
406f54c3a80ece3484341ec4152d794d34907d43 | 24 | py | Python | guitarfan/scrapy/__init__.py | timgates42/GuitarFan | 1a6d6bcc7708cbb214648e7f5657728f6c27c48a | [
"MIT"
] | 48 | 2015-02-02T02:25:07.000Z | 2022-03-11T12:39:39.000Z | guitarfan/scrapy/__init__.py | timgates42/GuitarFan | 1a6d6bcc7708cbb214648e7f5657728f6c27c48a | [
"MIT"
] | 2 | 2015-09-13T14:00:41.000Z | 2021-08-04T16:28:25.000Z | guitarfan/scrapy/__init__.py | timgates42/GuitarFan | 1a6d6bcc7708cbb214648e7f5657728f6c27c48a | [
"MIT"
] | 16 | 2015-01-09T08:15:13.000Z | 2020-06-20T11:07:49.000Z | __author__ = 'jinzemin'
| 12 | 23 | 0.75 | 2 | 24 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
408429d06772254e75b32a35b2b019e001519176 | 250 | py | Python | if/python/c_func.py | yabaud/libharu | d84867ebf9f3de6afd661d2cdaff102457fbc371 | [
"Zlib"
] | 1,118 | 2015-01-09T10:40:33.000Z | 2022-03-28T08:19:56.000Z | if/python/c_func.py | yabaud/libharu | d84867ebf9f3de6afd661d2cdaff102457fbc371 | [
"Zlib"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | if/python/c_func.py | yabaud/libharu | d84867ebf9f3de6afd661d2cdaff102457fbc371 | [
"Zlib"
] | 394 | 2015-01-23T17:06:52.000Z | 2022-03-25T03:50:06.000Z | def printf(format, *optional):
#print 'format="%s"' % format
#print 'optional="%s"' % optional
if len(optional)==1:
optional=optional[0]
if format.endswith('\n'):
format=format[:-1]
print format % optional
| 27.777778 | 38 | 0.572 | 29 | 250 | 4.931034 | 0.413793 | 0.195804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016216 | 0.26 | 250 | 8 | 39 | 31.25 | 0.756757 | 0.24 | 0 | 0 | 0 | 0 | 0.011111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
408c758024b708b0787c480b8c25fd43cd0f5310 | 1,505 | py | Python | twitterarchive/models.py | kezabelle/django-twitterarchive | 702fa48314e58da2a2cfcc6227ce745836f40534 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | twitterarchive/models.py | kezabelle/django-twitterarchive | 702fa48314e58da2a2cfcc6227ce745836f40534 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | twitterarchive/models.py | kezabelle/django-twitterarchive | 702fa48314e58da2a2cfcc6227ce745836f40534 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from collections import namedtuple
from django.db.models import ForeignKey
from django.utils.encoding import python_2_unicode_compatible
from .base.models import TweetAuthorBase, TweetBase, TweetURLBase, \
Tweet... | 24.672131 | 79 | 0.756811 | 169 | 1,505 | 6.47929 | 0.349112 | 0.038356 | 0.09589 | 0.09863 | 0.13516 | 0.13516 | 0 | 0 | 0 | 0 | 0 | 0.001601 | 0.1701 | 1,505 | 60 | 80 | 25.083333 | 0.8751 | 0.013953 | 0 | 0 | 0 | 0 | 0.076248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0.027027 | 0.162162 | 0.216216 | 0.918919 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
408d1dce79f9eb7c7b78a1ec2abc6eabc6824363 | 11,355 | py | Python | forseti/formula.py | Bram-Hub/Forseti | 6431f710f9b4b9d9c79bf14f3e7d66e2ed57bd34 | [
"MIT"
] | 4 | 2018-08-14T23:08:14.000Z | 2020-09-08T19:04:03.000Z | forseti/formula.py | Bram-Hub/Forseti | 6431f710f9b4b9d9c79bf14f3e7d66e2ed57bd34 | [
"MIT"
] | 7 | 2015-04-23T21:28:20.000Z | 2016-02-26T16:10:48.000Z | forseti/formula.py | Bram-Hub/Forseti | 6431f710f9b4b9d9c79bf14f3e7d66e2ed57bd34 | [
"MIT"
] | 3 | 2019-01-16T21:04:36.000Z | 2021-02-16T09:43:48.000Z | # -*- coding: utf-8 -*-
"""
Predicate for use within Forseti
"""
# pylint: disable=too-few-public-methods,missing-docstring
class Formula(object):
args = []
def __init__(self):
pass
def __repr__(self):
raise NotImplementedError("Not implemented")
def __str__(self):
raise Not... | 24.524838 | 87 | 0.547952 | 1,234 | 11,355 | 4.686386 | 0.1094 | 0.055335 | 0.028532 | 0.078852 | 0.54591 | 0.510116 | 0.486599 | 0.431783 | 0.36296 | 0.344112 | 0 | 0.010499 | 0.32893 | 11,355 | 463 | 88 | 24.524838 | 0.748163 | 0.076794 | 0 | 0.605442 | 0 | 0 | 0.037775 | 0 | 0 | 0 | 0 | 0.00216 | 0 | 1 | 0.265306 | false | 0.003401 | 0 | 0.12585 | 0.62585 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
40a516792c4c730df94eb52441847a5e5dffb777 | 1,052 | py | Python | lib/music21/ext/nbconvert/exporters/fullhtml.py | lasconic/randomsheetmusic | 862e2991b38531d6c2122c809cf6a7745653df57 | [
"MIT"
] | 2 | 2016-12-29T04:34:53.000Z | 2017-08-01T20:36:18.000Z | lib/music21/ext/nbconvert/exporters/fullhtml.py | lasconic/randomsheetmusic | 862e2991b38531d6c2122c809cf6a7745653df57 | [
"MIT"
] | null | null | null | lib/music21/ext/nbconvert/exporters/fullhtml.py | lasconic/randomsheetmusic | 862e2991b38531d6c2122c809cf6a7745653df57 | [
"MIT"
] | null | null | null | """
Exporter for exporting full HTML documents.
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this soft... | 31.878788 | 78 | 0.382129 | 70 | 1,052 | 5.728571 | 0.728571 | 0.0399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004362 | 0.128327 | 1,052 | 33 | 79 | 31.878788 | 0.432933 | 0.711977 | 0 | 0 | 0 | 0 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
40a9de9a3bc47d9645352a676e5f60623aacb8e3 | 1,417 | py | Python | src/interface_py/h2o4gpu/__init__.base.py | just4jc/h2o4gpu | 76700083643ec227818c5fd29659bd426a9d06c0 | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/interface_py/h2o4gpu/__init__.base.py | just4jc/h2o4gpu | 76700083643ec227818c5fd29659bd426a9d06c0 | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/interface_py/h2o4gpu/__init__.base.py | just4jc/h2o4gpu | 76700083643ec227818c5fd29659bd426a9d06c0 | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # pylint: skip-file
"""
:copyright: 2017 H2O.ai, Inc.
:license: Apache License Version 2.0 (see LICENSE for details)
"""
#Skip pylint b / c this is automatically concatenated at compile time
#with other init files
# TODO: grab this from BUILD_INFO.txt or __about__.py
__version__ = "0.2.0.9999"
DAAL_SUPPORTED=True
t... | 32.953488 | 70 | 0.822159 | 186 | 1,417 | 6.134409 | 0.473118 | 0.173532 | 0.063103 | 0.084137 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016013 | 0.11856 | 1,417 | 42 | 71 | 33.738095 | 0.897518 | 0.179252 | 0 | 0 | 0 | 0 | 0.012153 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0 | false | 0 | 0.83871 | 0 | 0.83871 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
40d7b7373f975543ea05a4acc4be94edc68b409b | 367 | py | Python | python/EXERCICIO 35 - ANALISANDO TRIANGULO.py | debor4h/exerciciosPython | a18d88c6e98bc49005bfcb8badeb712007c16d69 | [
"MIT"
] | 1 | 2022-03-15T02:25:17.000Z | 2022-03-15T02:25:17.000Z | python/EXERCICIO 35 - ANALISANDO TRIANGULO.py | debor4h/exerciciosPython | a18d88c6e98bc49005bfcb8badeb712007c16d69 | [
"MIT"
] | null | null | null | python/EXERCICIO 35 - ANALISANDO TRIANGULO.py | debor4h/exerciciosPython | a18d88c6e98bc49005bfcb8badeb712007c16d69 | [
"MIT"
] | null | null | null | #poder ou nao formar um triangulo
print('='*25)
a = float(input('Digite o 1º segmento: '))
b = float(input('Digite o 2º segmento: '))
c = float(input('Digite o 3º segmento: '))
print('='*25)
if a+b>c and b+c>a and c+a>b:
print('Os segmentos acima podem formar um triângulo.')
else:
print('Os segmentos acima ... | 22.9375 | 62 | 0.659401 | 63 | 367 | 3.84127 | 0.444444 | 0.099174 | 0.198347 | 0.210744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.174387 | 367 | 16 | 63 | 22.9375 | 0.768977 | 0.087193 | 0 | 0.3 | 0 | 0 | 0.486567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
40eeac9de3a790e94062864bb5cc6d5a6902f38f | 1,205 | py | Python | pyzoo/zoo/orca/learn/base_estimator.py | Asjidkalam/analytics-zoo | 0afa8437abc3e5cf5289d2cfde68b237a45f9d0d | [
"Apache-2.0"
] | null | null | null | pyzoo/zoo/orca/learn/base_estimator.py | Asjidkalam/analytics-zoo | 0afa8437abc3e5cf5289d2cfde68b237a45f9d0d | [
"Apache-2.0"
] | 1 | 2021-01-20T15:41:01.000Z | 2021-01-20T15:41:01.000Z | pyzoo/zoo/orca/learn/base_estimator.py | Asjidkalam/analytics-zoo | 0afa8437abc3e5cf5289d2cfde68b237a45f9d0d | [
"Apache-2.0"
] | 1 | 2020-12-21T11:48:49.000Z | 2020-12-21T11:48:49.000Z | #
# Copyright 2018 Analytics Zoo 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 agreed to... | 27.386364 | 74 | 0.718672 | 147 | 1,205 | 5.877551 | 0.585034 | 0.069444 | 0.219907 | 0.237269 | 0.181713 | 0.127315 | 0.127315 | 0 | 0 | 0 | 0 | 0.008403 | 0.209959 | 1,205 | 43 | 75 | 28.023256 | 0.89916 | 0.4639 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.05 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
40ef9bb2a9a8b3be166d76c47c8faedeb61cb012 | 9,578 | py | Python | src/tarski/syntax/sorts.py | hectorpal/tarski | db59e24bd55fecd289759c0712fd216558feff14 | [
"Apache-2.0"
] | null | null | null | src/tarski/syntax/sorts.py | hectorpal/tarski | db59e24bd55fecd289759c0712fd216558feff14 | [
"Apache-2.0"
] | null | null | null | src/tarski/syntax/sorts.py | hectorpal/tarski | db59e24bd55fecd289759c0712fd216558feff14 | [
"Apache-2.0"
] | null | null | null | import itertools
from typing import Generator, Set
from .. import errors as err
class Sort:
""" A logical sort (aka type)
Sorts are uniquely identified by their name (i.e. we don't allow two sorts with different characteristics
but the same name). Hence, implementation-wise, we can hash and compa... | 37.124031 | 118 | 0.640739 | 1,371 | 9,578 | 4.371262 | 0.212983 | 0.021692 | 0.023361 | 0.015852 | 0.244118 | 0.203404 | 0.178542 | 0.15685 | 0.136493 | 0.123477 | 0 | 0.005994 | 0.268428 | 9,578 | 257 | 119 | 37.268482 | 0.849294 | 0.318125 | 0 | 0.226415 | 0 | 0 | 0.057084 | 0 | 0 | 0 | 0 | 0.011673 | 0.012579 | 1 | 0.232704 | false | 0.006289 | 0.037736 | 0.056604 | 0.522013 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
40f619a4d4d35a3039af8c99180d6b7f684b2c71 | 130 | py | Python | tasks/common.py | Lee-W/internet_archiver | e3f2a12da1ae3e3e4f6ba22aa2d3b7f3e1894628 | [
"MIT"
] | null | null | null | tasks/common.py | Lee-W/internet_archiver | e3f2a12da1ae3e3e4f6ba22aa2d3b7f3e1894628 | [
"MIT"
] | null | null | null | tasks/common.py | Lee-W/internet_archiver | e3f2a12da1ae3e3e4f6ba22aa2d3b7f3e1894628 | [
"MIT"
] | 2 | 2021-05-28T02:45:21.000Z | 2021-10-04T15:19:52.000Z | VENV_PREFIX = "poetry run"
_COMMON_TARGETS = ["wayback_machine_saver", "tests"]
COMMON_TARGETS_AS_STR = " ".join(_COMMON_TARGETS)
| 32.5 | 52 | 0.776923 | 17 | 130 | 5.352941 | 0.764706 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092308 | 130 | 3 | 53 | 43.333333 | 0.771186 | 0 | 0 | 0 | 0 | 0 | 0.284615 | 0.161538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc0b85ad4f047d09b59b5aa3f850c64288a3a6e5 | 334 | py | Python | pyrep/objects/graph.py | Luukgr/PyRep | e51b872fa5bad4999f07af43a194ebdf5c75a9b4 | [
"MIT"
] | null | null | null | pyrep/objects/graph.py | Luukgr/PyRep | e51b872fa5bad4999f07af43a194ebdf5c75a9b4 | [
"MIT"
] | null | null | null | pyrep/objects/graph.py | Luukgr/PyRep | e51b872fa5bad4999f07af43a194ebdf5c75a9b4 | [
"MIT"
] | null | null | null | from pyrep.objects.object import Object
from pyrep.const import ObjectType
from pyrep.backend import vrep
class Graph(Object):
"""A point with orientation.
Dummies are multipurpose objects that can have many different applications.
"""
def _get_requested_type(self) -> ObjectType:
return Obj... | 22.266667 | 79 | 0.745509 | 42 | 334 | 5.857143 | 0.714286 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191617 | 334 | 14 | 80 | 23.857143 | 0.911111 | 0.305389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.166667 | 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 | 1 | 1 | 1 | 0 | 0 | 3 |
dc11d53afd2b3ffcee2c5bb984fac31b202efd66 | 2,946 | py | Python | marvinbot/models.py | BotDevGroup/marvin | f91119e7b3fc99d23ff309c45c53edd5e7c0bde4 | [
"MIT"
] | 8 | 2016-09-30T19:37:12.000Z | 2021-10-11T15:54:33.000Z | marvinbot/models.py | BotDevGroup/marvin | f91119e7b3fc99d23ff309c45c53edd5e7c0bde4 | [
"MIT"
] | 2 | 2018-09-22T19:50:32.000Z | 2019-08-28T23:26:50.000Z | marvinbot/models.py | BotDevGroup/marvin | f91119e7b3fc99d23ff309c45c53edd5e7c0bde4 | [
"MIT"
] | 4 | 2017-04-10T14:24:45.000Z | 2017-10-26T13:58:42.000Z | from uuid import uuid5, NAMESPACE_X500
from passlib.context import CryptContext
from marvinbot.utils import localized_date
from marvinbot.utils.mongoengine import EnumField
from marvinbot.defaults import (
DEFAULT_ROLE, ADMIN_ROLE, OWNER_ROLE,
POWER_USERS, RoleType
)
import mongoengine
bot_security_context = ... | 28.326923 | 99 | 0.657841 | 358 | 2,946 | 5.24581 | 0.298883 | 0.034079 | 0.028754 | 0.019169 | 0.091587 | 0.068158 | 0.068158 | 0 | 0 | 0 | 0 | 0.003626 | 0.251188 | 2,946 | 103 | 100 | 28.601942 | 0.847688 | 0.059403 | 0 | 0.171053 | 0 | 0 | 0.017767 | 0 | 0 | 0 | 0 | 0.009709 | 0 | 1 | 0.197368 | false | 0.118421 | 0.078947 | 0.105263 | 0.657895 | 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 | 1 | 1 | 0 | 0 | 3 |
dc12792b399656b8fdc8050e14b259840a479948 | 972 | py | Python | _MOM/_DBW/_SAW/_PG/Attr.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | 6 | 2016-12-10T17:51:10.000Z | 2021-10-11T07:51:48.000Z | _MOM/_DBW/_SAW/_PG/Attr.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | null | null | null | _MOM/_DBW/_SAW/_PG/Attr.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | 3 | 2020-03-29T07:37:03.000Z | 2021-01-21T16:08:40.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2016 Mag. Christian Tanzer All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
# #*** <License> ************************************************************#
# This module is part of the package MOM.DBW.SAW.PG.
#
# This module is licensed under the t... | 27.771429 | 78 | 0.561728 | 126 | 972 | 4.166667 | 0.547619 | 0.08 | 0.12 | 0.104762 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024204 | 0.192387 | 972 | 34 | 79 | 28.588235 | 0.635669 | 0.661523 | 0 | 0 | 0 | 0 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
904fa50cfcd88943ea9b6cbcded61bcf6a508f26 | 1,130 | py | Python | tests/test_api.py | a4k-openproject/a4kStreaming | c9674ddfede5b322496e79ec2a265d0af192d2f8 | [
"MIT"
] | 18 | 2021-01-20T23:33:17.000Z | 2022-01-11T07:51:16.000Z | tests/test_api.py | newt-sc/a4kStreaming | c9674ddfede5b322496e79ec2a265d0af192d2f8 | [
"MIT"
] | 1 | 2021-02-04T18:20:52.000Z | 2021-02-04T18:20:52.000Z | tests/test_api.py | newt-sc/a4kStreaming | c9674ddfede5b322496e79ec2a265d0af192d2f8 | [
"MIT"
] | 4 | 2021-01-17T23:46:29.000Z | 2022-01-23T22:20:24.000Z | # -*- coding: utf-8 -*-
from .common import pytest, api
def test_api_mocking():
def get_error_msg(e):
return str(e.value).replace('\'', '')
with pytest.raises(ImportError) as e:
api.A4kStreamingApi()
assert get_error_msg(e) == "No module named xbmc"
with pytest.raises(ImportError) as... | 36.451613 | 112 | 0.660177 | 143 | 1,130 | 5.118881 | 0.244755 | 0.172131 | 0.090164 | 0.098361 | 0.777322 | 0.777322 | 0.777322 | 0.777322 | 0.669399 | 0.5 | 0 | 0.008724 | 0.188496 | 1,130 | 30 | 113 | 37.666667 | 0.789531 | 0.018584 | 0 | 0.238095 | 0 | 0 | 0.208672 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1 | 0.095238 | false | 0 | 0.285714 | 0.047619 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9053c239cdc466bc7965890ddcc6da0e085e1df7 | 26 | py | Python | test.py | JuliaNeumann/nltk_book_exercises | 2021832e3c9ff3a1a911de9b86094efb0e696f00 | [
"MIT"
] | 44 | 2017-11-11T01:49:12.000Z | 2022-03-25T08:09:04.000Z | test.py | ramashwink/nltk_book_exercises | 2021832e3c9ff3a1a911de9b86094efb0e696f00 | [
"MIT"
] | null | null | null | test.py | ramashwink/nltk_book_exercises | 2021832e3c9ff3a1a911de9b86094efb0e696f00 | [
"MIT"
] | 29 | 2017-10-05T02:59:42.000Z | 2022-03-25T08:08:38.000Z | montyTest = 'Monty Python' | 26 | 26 | 0.769231 | 3 | 26 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
909196560d95fc1651865fa34b789657dd5ab10f | 446 | py | Python | modnet/modnet/tests/test_utils.py | lcsr-lab/MODNET | 6f120c18278dc316a2ef1887a11a987a95afd290 | [
"MIT"
] | 1 | 2021-09-03T13:05:19.000Z | 2021-09-03T13:05:19.000Z | modnet/modnet/tests/test_utils.py | lcsr-lab/MODNET | 6f120c18278dc316a2ef1887a11a987a95afd290 | [
"MIT"
] | 13 | 2020-06-02T20:55:57.000Z | 2020-06-21T23:56:54.000Z | modnet/modnet/tests/test_utils.py | arielvinas/MODNET | 6f120c18278dc316a2ef1887a11a987a95afd290 | [
"MIT"
] | null | null | null | from ..utils import is_combinational, is_sequential
def test_is_combinational():
logic_unit = " LUT4_L"
assert is_combinational(logic_unit)
def test_is_not_combinational():
logic_unit = " FDD"
assert not is_combinational(logic_unit)
def test_is_sequential():
logic_unit = " FDD"
assert i... | 20.272727 | 51 | 0.735426 | 61 | 446 | 4.95082 | 0.245902 | 0.238411 | 0.119205 | 0.238411 | 0.430464 | 0.298013 | 0.218543 | 0 | 0 | 0 | 0 | 0.00551 | 0.186099 | 446 | 21 | 52 | 21.238095 | 0.826446 | 0 | 0 | 0.307692 | 0 | 0 | 0.058296 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
90a4c23cafe67e10f9e56074a6150381584a4b35 | 2,383 | py | Python | python/Adafruit_Python_BMP/examples/simpletest.py | drav/WeatherPod | 956a3907d4641c1a055569a102f6315b45124524 | [
"MIT"
] | null | null | null | python/Adafruit_Python_BMP/examples/simpletest.py | drav/WeatherPod | 956a3907d4641c1a055569a102f6315b45124524 | [
"MIT"
] | null | null | null | python/Adafruit_Python_BMP/examples/simpletest.py | drav/WeatherPod | 956a3907d4641c1a055569a102f6315b45124524 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2014 Adafruit Industries
# Author: Tony DiCola
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights... | 45.826923 | 81 | 0.772556 | 370 | 2,383 | 4.940541 | 0.5 | 0.04814 | 0.008753 | 0.013129 | 0.032823 | 0.032823 | 0.032823 | 0.032823 | 0 | 0 | 0 | 0.036798 | 0.156106 | 2,383 | 51 | 82 | 46.72549 | 0.872203 | 0.827948 | 0 | 0 | 0 | 0 | 0.247978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
90a7dc9239a88cb6f9b5b17ce5c026deceae5e22 | 327 | py | Python | examples/nlp/albert_squad_pytorch/constants.py | gh-determined-ai/determined | 9a1ab33a3a356b69681b3351629fef4ab98ddb56 | [
"Apache-2.0"
] | 1,729 | 2020-04-27T17:36:40.000Z | 2022-03-31T05:48:39.000Z | examples/nlp/albert_squad_pytorch/constants.py | ChrisW09/determined | 5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0 | [
"Apache-2.0"
] | 1,940 | 2020-04-27T17:34:14.000Z | 2022-03-31T23:02:28.000Z | examples/nlp/albert_squad_pytorch/constants.py | ChrisW09/determined | 5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0 | [
"Apache-2.0"
] | 214 | 2020-04-27T19:57:28.000Z | 2022-03-29T08:17:16.000Z | from transformers import (
BertConfig,
BertTokenizer,
BertForQuestionAnswering,
AlbertConfig,
AlbertTokenizer,
AlbertForQuestionAnswering
)
MODEL_CLASSES = {
"bert": (BertConfig, BertTokenizer, BertForQuestionAnswering),
"albert": (AlbertConfig, AlbertTokenizer, AlbertForQuestionAnsweri... | 23.357143 | 74 | 0.749235 | 19 | 327 | 12.842105 | 0.684211 | 0.188525 | 0.385246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171254 | 327 | 13 | 75 | 25.153846 | 0.900369 | 0 | 0 | 0 | 0 | 0 | 0.030581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 1 | 0 | 1 | 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 | 3 |
90abfd85ef9287a7bf5552ccd8fc64014780af15 | 4,191 | py | Python | attic/testsuite/platform.py | rpodgorny/attic | 939e75467e586c493e3484ed7fc9d50c753d533f | [
"BSD-3-Clause"
] | 851 | 2015-01-01T07:22:18.000Z | 2022-03-28T01:54:27.000Z | attic/testsuite/platform.py | rpodgorny/attic | 939e75467e586c493e3484ed7fc9d50c753d533f | [
"BSD-3-Clause"
] | 290 | 2015-01-01T16:31:13.000Z | 2022-02-14T07:46:12.000Z | attic/testsuite/platform.py | rpodgorny/attic | 939e75467e586c493e3484ed7fc9d50c753d533f | [
"BSD-3-Clause"
] | 143 | 2015-01-04T12:21:52.000Z | 2022-03-11T14:02:39.000Z | import os
import shutil
import sys
import tempfile
import unittest
from attic.platform import acl_get, acl_set
from attic.testsuite import AtticTestCase
ACCESS_ACL = """
user::rw-
user:root:rw-:0
user:9999:r--:9999
group::r--
group:root:r--:0
group:9999:r--:9999
mask::rw-
other::r--
""".strip().encode('ascii')
DEFAU... | 39.914286 | 190 | 0.701503 | 630 | 4,191 | 4.52381 | 0.149206 | 0.075789 | 0.049123 | 0.041053 | 0.823158 | 0.756842 | 0.725263 | 0.682807 | 0.627368 | 0.592982 | 0 | 0.042818 | 0.136244 | 4,191 | 104 | 191 | 40.298077 | 0.744475 | 0 | 0 | 0.481928 | 0 | 0.048193 | 0.3 | 0.15895 | 0 | 0 | 0 | 0 | 0.168675 | 1 | 0.144578 | false | 0 | 0.084337 | 0.012048 | 0.289157 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
90afc3e90ee41ed99360d0b5debb47a7bc9488c9 | 63 | py | Python | modnet/hyper_opt/__init__.py | sparks-baird/modnet | 2b4a88aa8a3323756b6daee52450569cddd0068b | [
"MIT"
] | 32 | 2020-05-22T11:47:37.000Z | 2022-03-28T12:55:40.000Z | modnet/hyper_opt/__init__.py | sparks-baird/modnet | 2b4a88aa8a3323756b6daee52450569cddd0068b | [
"MIT"
] | 43 | 2020-06-12T21:09:15.000Z | 2022-03-28T21:05:43.000Z | modnet/hyper_opt/__init__.py | sparks-baird/modnet | 2b4a88aa8a3323756b6daee52450569cddd0068b | [
"MIT"
] | 22 | 2020-06-19T12:03:02.000Z | 2022-01-17T16:13:38.000Z | from .fit_genetic import FitGenetic
__all__ = ("FitGenetic",)
| 15.75 | 35 | 0.761905 | 7 | 63 | 6.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 63 | 3 | 36 | 21 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
90c3b2b64a4f7872c3fc5c991c6cc5844ccd5851 | 130 | py | Python | botemu_back/start.py | jj11hh/schoolwork-utils | dae96ed1a609891b3d7c1120907ad4019bed4a4c | [
"MIT"
] | null | null | null | botemu_back/start.py | jj11hh/schoolwork-utils | dae96ed1a609891b3d7c1120907ad4019bed4a4c | [
"MIT"
] | null | null | null | botemu_back/start.py | jj11hh/schoolwork-utils | dae96ed1a609891b3d7c1120907ad4019bed4a4c | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
from bin.app import App
if __name__ == "__main__":
App().start()
exit(0)
| 14.444444 | 26 | 0.584615 | 19 | 130 | 3.578947 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.207692 | 130 | 8 | 27 | 16.25 | 0.631068 | 0.330769 | 0 | 0 | 0 | 0 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
90c97e401bd3649d1f5f31081874b0743040ae0d | 307 | py | Python | scripts/Empty_PyCSW_Scripts/common/__init__.py | Dan-Eli/FGP_Docs | 4486a7052863f3ad9c4eb6dfc3a6c6e117bdabe7 | [
"MIT"
] | null | null | null | scripts/Empty_PyCSW_Scripts/common/__init__.py | Dan-Eli/FGP_Docs | 4486a7052863f3ad9c4eb6dfc3a6c6e117bdabe7 | [
"MIT"
] | null | null | null | scripts/Empty_PyCSW_Scripts/common/__init__.py | Dan-Eli/FGP_Docs | 4486a7052863f3ad9c4eb6dfc3a6c6e117bdabe7 | [
"MIT"
] | null | null | null | '''
This is the __init__.py file for the PyCSW common scripts.
author :kballantyne
date :20190304
version :1.1
python_version :2.7.5
#================================================================================================================
'''
__all__ = ['pycsw_func'] | 27.909091 | 113 | 0.387622 | 26 | 307 | 4.192308 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051587 | 0.179153 | 307 | 11 | 114 | 27.909091 | 0.380952 | 0.889251 | 0 | 0 | 0 | 0 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
90cfcd78a14db770b9e35dce2688545c117f141a | 173 | py | Python | bin/importtest.py | tjoneslo/pypdflite | ac2501f30d6619eae9dea5644717575ca9263d0a | [
"MIT"
] | 7 | 2016-05-19T02:23:42.000Z | 2020-04-16T16:19:13.000Z | bin/importtest.py | tjoneslo/pypdflite | ac2501f30d6619eae9dea5644717575ca9263d0a | [
"MIT"
] | 5 | 2016-11-29T19:21:39.000Z | 2019-08-18T09:44:25.000Z | bin/importtest.py | tjoneslo/pypdflite | ac2501f30d6619eae9dea5644717575ca9263d0a | [
"MIT"
] | 6 | 2017-01-23T02:12:52.000Z | 2020-07-07T22:34:44.000Z | from pypdflite import PDFLite
from pypdflite import PDFColor
def main(test_dir):
writer = PDFLite
color = PDFColor('green')
if __name__ == '__main__':
main()
| 15.727273 | 30 | 0.699422 | 21 | 173 | 5.333333 | 0.666667 | 0.232143 | 0.339286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208092 | 173 | 10 | 31 | 17.3 | 0.817518 | 0 | 0 | 0 | 0 | 0 | 0.075145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
90e47a3f8c2024440139c3adec5b5a842849744f | 584 | py | Python | loss.py | sowmyamanojna/CS6910-Deep-Learning-Assignment-1 | e46d3a82bdfb61d7527ed3daf9250bb4ce228854 | [
"MIT"
] | null | null | null | loss.py | sowmyamanojna/CS6910-Deep-Learning-Assignment-1 | e46d3a82bdfb61d7527ed3daf9250bb4ce228854 | [
"MIT"
] | null | null | null | loss.py | sowmyamanojna/CS6910-Deep-Learning-Assignment-1 | e46d3a82bdfb61d7527ed3daf9250bb4ce228854 | [
"MIT"
] | null | null | null | import numpy as np
################################################
# Loss
################################################
class CrossEntropy():
def __init__(self):
pass
def calc_loss(self, t, y):
self.t = t
self.y = y
loss = -np.sum(np.sum(self.t*np.log(self.y)))
return loss
def diff(self):
... | 17.69697 | 48 | 0.513699 | 86 | 584 | 3.325581 | 0.255814 | 0.122378 | 0.062937 | 0.104895 | 0.517483 | 0.370629 | 0.370629 | 0.370629 | 0.370629 | 0.370629 | 0 | 0.002128 | 0.195205 | 584 | 32 | 49 | 18.25 | 0.606383 | 0.006849 | 0 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0.086957 | 0.043478 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
90ff2a5845008cb2e31fbc8935a03fe2003b6b35 | 5,341 | py | Python | opaflib/parsetab_pdf_brute_end.py | feliam/opaf | f9908c26af1bf28cc29f3d647dcd9f55d631d732 | [
"MIT"
] | 2 | 2019-11-23T14:46:35.000Z | 2022-01-21T16:09:47.000Z | opaflib/parsetab_pdf_brute_end.py | feliam/opaf | f9908c26af1bf28cc29f3d647dcd9f55d631d732 | [
"MIT"
] | null | null | null | opaflib/parsetab_pdf_brute_end.py | feliam/opaf | f9908c26af1bf28cc29f3d647dcd9f55d631d732 | [
"MIT"
] | 1 | 2019-09-06T21:04:39.000Z | 2019-09-06T21:04:39.000Z |
# opaflib/parsetab_pdf_brute_end.py
# This file is automatically generated. Do not edit.
_tabversion = '3.2'
_lr_method = 'LALR'
_lr_signature = 'v\xc8s\x99\xa0\x80\x10\xa9\xcbe\x07\xb2\x86\xf3\xc42'
_lr_action_items = {'DOUBLE_GREATER_THAN_SIGN':([5,7,9,11,12,13,14,15,16,17,19,20,21,22,26,],[-17,9,-15,-10,-6,-... | 87.557377 | 1,554 | 0.65044 | 1,011 | 5,341 | 3.22453 | 0.143422 | 0.12362 | 0.142638 | 0.029448 | 0.26411 | 0.243558 | 0.215031 | 0.159202 | 0.118712 | 0.11319 | 0 | 0.167462 | 0.058603 | 5,341 | 60 | 1,555 | 89.016667 | 0.480907 | 0.015727 | 0 | 0.039216 | 1 | 0.019608 | 0.474586 | 0.09328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
290fdb04a1419c60be31cf8ae3aa687b48d7341d | 8,304 | py | Python | strategy2.py | makersauce/stocks | 490d76d6bd280631804c5152a78362e5e1fe5c8f | [
"MIT"
] | 1 | 2017-11-22T15:58:55.000Z | 2017-11-22T15:58:55.000Z | strategy2.py | dundermane/stocks | 490d76d6bd280631804c5152a78362e5e1fe5c8f | [
"MIT"
] | null | null | null | strategy2.py | dundermane/stocks | 490d76d6bd280631804c5152a78362e5e1fe5c8f | [
"MIT"
] | null | null | null | ##Stragegy File
###INTERSECTING WATERFALL STRATEGY
###When 5,10,30 day moving averages intersect and make a triangle
## with 30 day on top, 10 day in middle and 5 day on the bottom,
## Buy at when the percent increase from MARKET to 30_DAY reaches threshold UNLESS the 5 day average exceeds the 10 day or 30 day.
## S... | 50.634146 | 219 | 0.561777 | 1,067 | 8,304 | 4.197751 | 0.200562 | 0.150033 | 0.200045 | 0.220362 | 0.544988 | 0.520652 | 0.470418 | 0.417727 | 0.380442 | 0.364814 | 0 | 0.03131 | 0.307683 | 8,304 | 163 | 220 | 50.944785 | 0.747782 | 0.095014 | 0 | 0.21 | 0 | 0 | 0.092216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.07 | null | null | 0.07 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
291b9e03d384cb20edcff7b0cbde3d7941433e09 | 192 | py | Python | mayan/apps/document_states/handlers.py | garrans/mayan-edms | e95e90cc47447a1ae72629271652824aa9868572 | [
"Apache-2.0"
] | null | null | null | mayan/apps/document_states/handlers.py | garrans/mayan-edms | e95e90cc47447a1ae72629271652824aa9868572 | [
"Apache-2.0"
] | null | null | null | mayan/apps/document_states/handlers.py | garrans/mayan-edms | e95e90cc47447a1ae72629271652824aa9868572 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from .models import Workflow
def launch_workflow(sender, instance, created, **kwargs):
if created:
Workflow.objects.launch_for(instance)
| 21.333333 | 57 | 0.765625 | 23 | 192 | 6.086957 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161458 | 192 | 8 | 58 | 24 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
29253b16abb04475485d6b6b229fceac42d86e2d | 361 | py | Python | 16.Functional Programming with Python - SW/01.First Class Functions/closure_basic_print.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 3 | 2020-06-01T04:17:18.000Z | 2020-12-18T03:05:55.000Z | 16.Functional Programming with Python - SW/01.First Class Functions/closure_basic_print.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 1 | 2020-04-25T08:01:59.000Z | 2020-04-25T08:01:59.000Z | 16.Functional Programming with Python - SW/01.First Class Functions/closure_basic_print.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 7 | 2020-04-26T10:02:36.000Z | 2021-06-08T05:12:46.000Z | def create_printer():
my_favourite_number = 123
def printer():
print(f"My Favourite Number is {my_favourite_number}")
return printer
# Closure
# As we can see, the output will be 123. Which means my_printer can still access to my_favourite_number which is outer scope.
# this is what Closure is
my... | 25.785714 | 125 | 0.736842 | 56 | 361 | 4.553571 | 0.517857 | 0.172549 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02069 | 0.196676 | 361 | 13 | 126 | 27.769231 | 0.858621 | 0.429363 | 0 | 0 | 0 | 0 | 0.217822 | 0.10396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0.857143 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
29395a40671ff8116ca1a376aefdf92c4a5723ea | 280 | py | Python | contest/abc152/D.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc152/D.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc152/D.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | n = int(input())
ans = 0
cnt = [[0] * 9 for _ in range(9)]
for i in range(1, n + 1):
one = str(i)
if one[-1] == '0':
continue
cnt[int(one[0]) - 1][int(one[-1]) - 1] += 1
for i in range(9):
for j in range(9):
ans += cnt[i][j] * cnt[j][i]
print(ans)
| 21.538462 | 47 | 0.467857 | 56 | 280 | 2.321429 | 0.321429 | 0.215385 | 0.184615 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076142 | 0.296429 | 280 | 12 | 48 | 23.333333 | 0.583756 | 0 | 0 | 0 | 0 | 0 | 0.003571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
297c0d18ba139e229f15718aaed9393097d67011 | 213 | py | Python | pyfsdb/obsolete/dbsplitter.py | gawseed/pyfsdb | 40cd3125827189ced722ad5773765077adea595f | [
"MIT"
] | 1 | 2022-02-09T03:17:49.000Z | 2022-02-09T03:17:49.000Z | pyfsdb/obsolete/dbsplitter.py | gawseed/pyfsdb | 40cd3125827189ced722ad5773765077adea595f | [
"MIT"
] | 1 | 2021-02-24T22:15:45.000Z | 2021-02-25T00:58:17.000Z | pyfsdb/obsolete/dbsplitter.py | gawseed/pyfsdb | 40cd3125827189ced722ad5773765077adea595f | [
"MIT"
] | 1 | 2020-09-28T13:04:08.000Z | 2020-09-28T13:04:08.000Z | import sys
import pyfsdb.tools.pdbsplitter
def main():
sys.stderr.write("dbsplitter is obsolete; please use pdbsplitter instead\n")
pyfsdb.tools.pdbsplitter.main()
if __name__ == '__main__':
main()
| 19.363636 | 80 | 0.723005 | 27 | 213 | 5.407407 | 0.666667 | 0.150685 | 0.30137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159624 | 213 | 10 | 81 | 21.3 | 0.815642 | 0 | 0 | 0 | 0 | 0 | 0.300469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2986770a6ad7db3c940205e16bd38920f1c0c3f5 | 445 | py | Python | tools/leetcode.062.Unique Paths/leetcode.062.Unique Paths.submission4.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.062.Unique Paths/leetcode.062.Unique Paths.submission4.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.062.Unique Paths/leetcode.062.Unique Paths.submission4.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution:
# @param {integer} m
# @param {integer} n
# @return {integer}
def uniquePaths(self, m, n):
if m == 1 or n == 1: return 1
dp = [[0 for j in range(n+1)] for i in range(m+1)]
for j in range(1,n+1):
dp[1][j] = 1
for i in range(2,m+1):
... | 445 | 445 | 0.420225 | 77 | 445 | 2.428571 | 0.272727 | 0.187166 | 0.096257 | 0.176471 | 0.320856 | 0.192513 | 0.192513 | 0.192513 | 0.192513 | 0.192513 | 0 | 0.068441 | 0.408989 | 445 | 1 | 445 | 445 | 0.642586 | 0.123596 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4620514aa33926c5e6f2e5059e36ebc2a8e45c92 | 31,673 | py | Python | testsuite/implementations/test_coverage_feedback.py | freingruber/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | 91 | 2022-01-24T07:32:34.000Z | 2022-03-31T23:37:15.000Z | testsuite/implementations/test_coverage_feedback.py | zeusguy/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | null | null | null | testsuite/implementations/test_coverage_feedback.py | zeusguy/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | 11 | 2022-01-24T14:21:12.000Z | 2022-03-31T23:37:23.000Z | # Copyright 2022 @ReneFreingruber
#
# 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... | 43.151226 | 168 | 0.705838 | 4,389 | 31,673 | 4.932103 | 0.128275 | 0.11281 | 0.162563 | 0.237816 | 0.74195 | 0.722779 | 0.689842 | 0.665173 | 0.657505 | 0.638148 | 0 | 0.020132 | 0.164115 | 31,673 | 733 | 169 | 43.210096 | 0.797507 | 0.180659 | 0 | 0.56422 | 0 | 0.080275 | 0.311494 | 0.044477 | 0 | 0 | 0.000155 | 0 | 0.041284 | 1 | 0.006881 | false | 0.004587 | 0.006881 | 0 | 0.016055 | 0.03211 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 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 | 3 |
4635f6affc4b2edb29050b7f7e41bce08337e8de | 2,701 | py | Python | elstruct/elstruct/reader/__init__.py | sjklipp/autoio | e2b471e9c9dec933319c98a30d4d519ca5d47645 | [
"Apache-2.0"
] | null | null | null | elstruct/elstruct/reader/__init__.py | sjklipp/autoio | e2b471e9c9dec933319c98a30d4d519ca5d47645 | [
"Apache-2.0"
] | 1 | 2022-02-15T19:35:14.000Z | 2022-02-15T19:35:14.000Z | elstruct/elstruct/reader/__init__.py | sjklipp/autoio | e2b471e9c9dec933319c98a30d4d519ca5d47645 | [
"Apache-2.0"
] | 13 | 2020-06-24T05:21:11.000Z | 2021-05-05T19:58:30.000Z | """ Electronic structure program output reading module
"""
# energy
from elstruct.reader._reader import programs
from elstruct.reader._reader import energy
# gradient
from elstruct.reader._reader import gradient_programs
from elstruct.reader._reader import gradient
# hessian
from elstruct.reader._reader import hessian... | 30.011111 | 65 | 0.792299 | 321 | 2,701 | 6.330218 | 0.137072 | 0.188976 | 0.283465 | 0.377953 | 0.658465 | 0.643701 | 0.266732 | 0 | 0 | 0 | 0 | 0.00258 | 0.138837 | 2,701 | 89 | 66 | 30.348315 | 0.871023 | 0.072195 | 0 | 0 | 0 | 0 | 0.195486 | 0.068924 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.484848 | 0 | 0.484848 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
465467a3ba0808cd194a1481b7f02c9f1b578cb2 | 596 | py | Python | maths/radians.py | JB1959/Python | b6ca263983933c3ecc06ed0083dd11b6faf870c8 | [
"MIT"
] | 145,614 | 2016-07-21T05:40:05.000Z | 2022-03-31T22:17:22.000Z | maths/radians.py | Agha-Muqarib/Python | 04f156a8973d6156a4357e0717d9eb0aa264d086 | [
"MIT"
] | 3,987 | 2016-07-28T17:31:25.000Z | 2022-03-30T23:07:46.000Z | maths/radians.py | Agha-Muqarib/Python | 04f156a8973d6156a4357e0717d9eb0aa264d086 | [
"MIT"
] | 40,014 | 2016-07-26T15:14:41.000Z | 2022-03-31T22:23:03.000Z | from math import pi
def radians(degree: float) -> float:
"""
Coverts the given angle from degrees to radians
https://en.wikipedia.org/wiki/Radian
>>> radians(180)
3.141592653589793
>>> radians(92)
1.6057029118347832
>>> radians(274)
4.782202150464463
>>> radians(109.82)
1.... | 19.866667 | 83 | 0.627517 | 75 | 596 | 4.853333 | 0.666667 | 0.043956 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210643 | 0.243289 | 596 | 29 | 84 | 20.551724 | 0.596452 | 0.604027 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
46795d2f75c01e86a6ea0e632a8a0656981f1506 | 569 | py | Python | Algo and DSA/LeetCode-Solutions-master/Python/number-complement.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | Algo and DSA/LeetCode-Solutions-master/Python/number-complement.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | Algo and DSA/LeetCode-Solutions-master/Python/number-complement.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | # Time: O(1)
# Space: O(1)
class Solution(object):
def findComplement(self, num):
"""
:type num: int
:rtype: int
"""
return 2 ** (len(bin(num)) - 2) - 1 - num
class Solution2(object):
def findComplement(self, num):
i = 1
while i <= num:
i <... | 21.074074 | 77 | 0.509666 | 74 | 569 | 3.891892 | 0.445946 | 0.09375 | 0.239583 | 0.28125 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039788 | 0.337434 | 569 | 26 | 78 | 21.884615 | 0.724138 | 0.089631 | 0 | 0.214286 | 0 | 0 | 0.016529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4687e6db1e5b2049dedf2aa03d6a2c98edc38b40 | 11,748 | py | Python | tests/validate_tx_test.py | mewald55/pycoin_ypub-zpub | 8c7933802288e2ab33bf611659447fe24b96ada5 | [
"MIT"
] | null | null | null | tests/validate_tx_test.py | mewald55/pycoin_ypub-zpub | 8c7933802288e2ab33bf611659447fe24b96ada5 | [
"MIT"
] | null | null | null | tests/validate_tx_test.py | mewald55/pycoin_ypub-zpub | 8c7933802288e2ab33bf611659447fe24b96ada5 | [
"MIT"
] | null | null | null | import binascii
import io
import unittest
from pycoinzpub.block import Block
from pycoinzpub.serialize import h2b
from pycoinzpub.tx.script import tools
from pycoinzpub.tx.Tx import Tx
class ValidatingTest(unittest.TestCase):
def test_validate(self):
# block 80971
block_80971_cs = '00000000001126... | 58.447761 | 115 | 0.757576 | 850 | 11,748 | 10.148235 | 0.255294 | 0.046371 | 0.054255 | 0.030837 | 0.266984 | 0.246928 | 0.231046 | 0.217598 | 0.204266 | 0.201484 | 0 | 0.335031 | 0.181137 | 11,748 | 200 | 116 | 58.74 | 0.561642 | 0.039411 | 0 | 0.191358 | 0 | 0 | 0.483854 | 0.46895 | 0 | 0 | 0 | 0 | 0.160494 | 1 | 0.018519 | false | 0 | 0.04321 | 0 | 0.074074 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
468cd6f0373cea4314d96b3a9ab8437692a34159 | 4,663 | py | Python | src/chembl_webservices/tests/test_text_search.py | BNext-IQT/chembl_webservices_py3 | 42ccb39f0121835ca7ee9ac8ddd04cb513998079 | [
"Apache-2.0"
] | 5 | 2020-10-23T11:56:59.000Z | 2021-06-05T16:30:10.000Z | src/chembl_webservices/tests/test_text_search.py | BNext-IQT/chembl_webservices_py3 | 42ccb39f0121835ca7ee9ac8ddd04cb513998079 | [
"Apache-2.0"
] | 9 | 2020-02-11T08:01:40.000Z | 2021-06-10T19:41:03.000Z | src/chembl_webservices/tests/test_text_search.py | BNext-IQT/chembl_webservices_py3 | 42ccb39f0121835ca7ee9ac8ddd04cb513998079 | [
"Apache-2.0"
] | 4 | 2020-02-11T10:45:22.000Z | 2021-06-07T01:48:02.000Z |
from chembl_webservices.tests import BaseWebServiceTestCase
class BaseSearchTestCase(BaseWebServiceTestCase):
# def test_search_endpoint(self, query):
# pass
def test_max_limit(self):
pass
class ActivitySearchTestCase(BaseSearchTestCase):
pass
class AssaySearchTestCase(BaseSearchTe... | 33.070922 | 94 | 0.635857 | 511 | 4,663 | 5.661448 | 0.219178 | 0.091946 | 0.055997 | 0.027653 | 0.172831 | 0.103007 | 0.049775 | 0 | 0 | 0 | 0 | 0.025942 | 0.214669 | 4,663 | 141 | 95 | 33.070922 | 0.764063 | 0.830796 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.444444 | 0.055556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
468fb49ceeb3645e1f7ff1dd15aabb332b41e2d7 | 98 | py | Python | django/dialogue/dialogue_app/apps.py | windrises/dialogue.moe | c9b9fd3504a52c176107ef6030adb020a6f0ec16 | [
"MIT"
] | 162 | 2019-06-28T10:14:03.000Z | 2022-03-23T12:30:42.000Z | django/dialogue/dialogue_app/apps.py | windrises/dialogue.moe | c9b9fd3504a52c176107ef6030adb020a6f0ec16 | [
"MIT"
] | 2 | 2019-08-11T20:33:51.000Z | 2022-02-27T21:04:26.000Z | django/dialogue/dialogue_app/apps.py | windrises/dialogue.moe | c9b9fd3504a52c176107ef6030adb020a6f0ec16 | [
"MIT"
] | 7 | 2019-06-29T08:21:37.000Z | 2022-02-14T14:21:03.000Z | from django.apps import AppConfig
class DialogueAppConfig(AppConfig):
name = 'dialogue_app'
| 16.333333 | 35 | 0.77551 | 11 | 98 | 6.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 5 | 36 | 19.6 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
46b6ce2c3aaeac9ec521f177b93958f0fb7d13e4 | 260 | py | Python | setup.py | biwin/Django-1.8-Openshift | 4e636b4b622a5e89b5f73c19676a23155a9c2c6c | [
"MIT"
] | null | null | null | setup.py | biwin/Django-1.8-Openshift | 4e636b4b622a5e89b5f73c19676a23155a9c2c6c | [
"MIT"
] | null | null | null | setup.py | biwin/Django-1.8-Openshift | 4e636b4b622a5e89b5f73c19676a23155a9c2c6c | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='django-on-openshift',
version='3.0',
description='Django on OpenShift',
author='Biwin John',
author_email='mail@biwinjohn.com',
url='https://github.com/biwin/django-on-openshift',
)
| 26 | 57 | 0.653846 | 32 | 260 | 5.28125 | 0.6875 | 0.142012 | 0.301775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009569 | 0.196154 | 260 | 9 | 58 | 28.888889 | 0.799043 | 0 | 0 | 0 | 0 | 0 | 0.434615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d3bfe5f8ce023a9de0f177598accb1f08efce5b0 | 228 | py | Python | yi/nn/dropout.py | soloist-v/yi | d7c04fe6266441d2629ba35f69c9fc659a52b370 | [
"MIT"
] | null | null | null | yi/nn/dropout.py | soloist-v/yi | d7c04fe6266441d2629ba35f69c9fc659a52b370 | [
"MIT"
] | null | null | null | yi/nn/dropout.py | soloist-v/yi | d7c04fe6266441d2629ba35f69c9fc659a52b370 | [
"MIT"
] | null | null | null | from .base import Module
from ..core import dropout
class Dropout(Module):
def __init__(self, prob=0.5):
super().__init__()
self.prob = prob
def forward(self, x):
return dropout(x, self.prob)
| 17.538462 | 36 | 0.622807 | 31 | 228 | 4.322581 | 0.548387 | 0.179104 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.258772 | 228 | 12 | 37 | 19 | 0.781065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d3ccc011355e7c6057e1b978f732d6b9c557da8f | 1,325 | py | Python | testix/argumentexpectations.py | sachibalata/testix | 8c1acf839c00753609a809ca4ab5942956d29656 | [
"MIT"
] | 3 | 2016-09-24T16:56:48.000Z | 2020-01-08T14:15:19.000Z | testix/argumentexpectations.py | haarcuba/testix | 9cd7975a4b0baf6cadfab8d9405f6d19defe8372 | [
"MIT"
] | 32 | 2019-05-03T20:08:47.000Z | 2022-02-19T13:53:26.000Z | testix/argumentexpectations.py | sachibalata/testix | 8c1acf839c00753609a809ca4ab5942956d29656 | [
"MIT"
] | 1 | 2021-08-23T10:30:51.000Z | 2021-08-23T10:30:51.000Z | from testix import fake
import pprint
class ArgumentExpectation( object ):
def __init__( self, value ):
self.expectedValue = value
def ok( self, value ):
raise Exception( "must override this" )
def __repr__( self ):
WORKAROUND_PFORMAT_BREAKS_LONG_STRINGS = 100000
return pprint.pformat( self.expectedValue,... | 24.090909 | 91 | 0.739623 | 151 | 1,325 | 6.15894 | 0.298013 | 0.067742 | 0.058065 | 0.090323 | 0.405376 | 0.296774 | 0.212903 | 0.212903 | 0.212903 | 0.212903 | 0 | 0.007246 | 0.166792 | 1,325 | 54 | 92 | 24.537037 | 0.835145 | 0 | 0 | 0.425 | 0 | 0 | 0.044528 | 0.015849 | 0 | 0 | 0 | 0 | 0 | 1 | 0.35 | false | 0 | 0.05 | 0.2 | 0.825 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d3e77e68b58d2e6beea94d8ba9b80d988634187d | 971 | py | Python | api_gpcr/views.py | penglian518/protwis | d81b0aaeb0821dcca1979926dc18c1a70a3ca654 | [
"Apache-2.0"
] | 3 | 2019-03-06T13:35:38.000Z | 2020-08-05T15:31:29.000Z | api_gpcr/views.py | penglian518/protwis | d81b0aaeb0821dcca1979926dc18c1a70a3ca654 | [
"Apache-2.0"
] | null | null | null | api_gpcr/views.py | penglian518/protwis | d81b0aaeb0821dcca1979926dc18c1a70a3ca654 | [
"Apache-2.0"
] | null | null | null | from rest_framework import views
from rest_framework.response import Response
from api.views import *
import json
import logging
class HelixBoxView(views.APIView):
"""
Get SVG source code for a protein's helix box plot
\n/plot/helixbox/{entry_name}/
\n{entry_name} is a protein identifier from Unipro... | 27.742857 | 73 | 0.675592 | 144 | 971 | 4.416667 | 0.333333 | 0.169811 | 0.069182 | 0.056604 | 0.657233 | 0.657233 | 0.657233 | 0.657233 | 0.657233 | 0.657233 | 0 | 0.002635 | 0.218332 | 971 | 35 | 74 | 27.742857 | 0.83531 | 0.326468 | 0 | 0.4 | 0 | 0 | 0.006359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.733333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
d3f2a9c22145d24b66bfbb1fc39857f625d6e349 | 1,243 | py | Python | exceptions.py | CPSuperstore/BattleshAPy | 9e6395952397f2d4c61350b2a67adc3e64f27868 | [
"MIT"
] | 1 | 2021-10-20T15:43:15.000Z | 2021-10-20T15:43:15.000Z | exceptions.py | CPSuperstore/BattleshAPy | 9e6395952397f2d4c61350b2a67adc3e64f27868 | [
"MIT"
] | null | null | null | exceptions.py | CPSuperstore/BattleshAPy | 9e6395952397f2d4c61350b2a67adc3e64f27868 | [
"MIT"
] | null | null | null | class BattleshAPIException(Exception):
pass
class GameNotStartedException(BattleshAPIException):
pass
class NotYourTurnException(BattleshAPIException):
pass
class AlreadyRegisteredException(BattleshAPIException):
pass
class ShipInTheWayException(BattleshAPIException):
pass
class Insufficie... | 18.014493 | 58 | 0.795656 | 79 | 1,243 | 12.493671 | 0.367089 | 0.118541 | 0.352584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010446 | 0.152856 | 1,243 | 68 | 59 | 18.279412 | 0.926876 | 0 | 0 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.35 | 0 | 0 | 0.35 | 0 | 0 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d3f726b3bee3a930211be18d5ea076ddaaf9f9fc | 599 | py | Python | utils.py | clamsproject/app-fastpunct | 138a79a4d2bdc1e6c2ede036973e417fb9a41a86 | [
"Apache-2.0"
] | null | null | null | utils.py | clamsproject/app-fastpunct | 138a79a4d2bdc1e6c2ede036973e417fb9a41a86 | [
"Apache-2.0"
] | 5 | 2021-09-20T15:11:30.000Z | 2022-01-21T00:39:52.000Z | utils.py | clamsproject/app-fastpunct | 138a79a4d2bdc1e6c2ede036973e417fb9a41a86 | [
"Apache-2.0"
] | null | null | null | import collections
class Identifiers(object):
"""Utility class to generate annotation identifiers. You could, but don't have
to, reset this each time you start a new view. This works only for new views
since it does not check for identifiers of annotations already in the list
of annotations."""
... | 23.96 | 82 | 0.689482 | 77 | 599 | 5.363636 | 0.623377 | 0.101695 | 0.159806 | 0.174334 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002165 | 0.228715 | 599 | 24 | 83 | 24.958333 | 0.891775 | 0.405676 | 0 | 0.2 | 1 | 0 | 0.011976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.