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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed6a3ab7b10d68f5a936266b4ec7064d1ae865c6 | 313 | py | Python | utils/mgmt.py | robinagist/manic | b1bdefbb11c7489164a0c08bb092ffecb5900261 | [
"MIT"
] | 2 | 2018-09-06T05:39:11.000Z | 2020-10-13T21:40:06.000Z | utils/mgmt.py | robinagist/manic | b1bdefbb11c7489164a0c08bb092ffecb5900261 | [
"MIT"
] | 20 | 2018-01-20T05:00:23.000Z | 2018-01-25T17:55:00.000Z | utils/mgmt.py | robinagist/Manic-Mapped-Memory-Server | b1bdefbb11c7489164a0c08bb092ffecb5900261 | [
"MIT"
] | null | null | null | from utils.data import load_memfile_configs
from utils.server import plain_response
from sanic import response
def get_mappedfile_configs():
cfgs = load_memfile_configs()
return response.json(plain_response(cfgs, 0), status=200)
def created_mapped_file():
pass
def delete_mapped_file():
pass | 19.5625 | 61 | 0.776358 | 44 | 313 | 5.25 | 0.568182 | 0.077922 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015094 | 0.153355 | 313 | 16 | 62 | 19.5625 | 0.856604 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.2 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ed84e43c822be0079982b64c82f1405fcf82f103 | 1,114 | py | Python | poll/models/telemetry_models.py | mirokrastev/poll-website | 4f26cce3f838ab05de91f0e1dba34d9bc59927b4 | [
"MIT"
] | 3 | 2021-07-03T19:05:56.000Z | 2022-02-02T17:22:17.000Z | poll/models/telemetry_models.py | mirokrastev/poll-website | 4f26cce3f838ab05de91f0e1dba34d9bc59927b4 | [
"MIT"
] | null | null | null | poll/models/telemetry_models.py | mirokrastev/poll-website | 4f26cce3f838ab05de91f0e1dba34d9bc59927b4 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth import get_user_model
from poll.models.poll_models import Poll
class BasePollTelemetry(models.Model):
"""
This Base class gives a hint that in the future
more Telemetry classes could be implemented.
"""
poll = models.ForeignKey(db_index=True, ... | 27.85 | 91 | 0.72711 | 139 | 1,114 | 5.661871 | 0.489209 | 0.038119 | 0.041931 | 0.049555 | 0.099111 | 0.099111 | 0.099111 | 0 | 0 | 0 | 0 | 0 | 0.195691 | 1,114 | 39 | 92 | 28.564103 | 0.878348 | 0.213645 | 0 | 0.210526 | 0 | 0 | 0.031063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0.105263 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
ed874fc7d5498d0b2a5744718551a9a50f16e262 | 141 | py | Python | recumpiler/__init__.py | Toasterstein/recumpiler | 390957cfaa8f60ffeb24adb43b91981dd445c6b9 | [
"MIT"
] | null | null | null | recumpiler/__init__.py | Toasterstein/recumpiler | 390957cfaa8f60ffeb24adb43b91981dd445c6b9 | [
"MIT"
] | 8 | 2021-03-23T21:54:29.000Z | 2021-03-30T23:17:06.000Z | recumpiler/__init__.py | nklapste/recumpiler | 80efcfad995211c010f4d962221ab576ca50229f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""recumpiler
Recompile text to be semi-readable memey garbage.
"""
__version__ = (0, 0, 0)
| 14.1 | 49 | 0.638298 | 20 | 141 | 4.3 | 0.9 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.170213 | 141 | 9 | 50 | 15.666667 | 0.700855 | 0.737589 | 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 | 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 | 2 |
ed88b978abfea5e45767847b3da18555a2c06112 | 2,268 | py | Python | python/clx/analytics/detector.py | mdemoret-nv/clx | 3737706187d8f5720561e10b85cbd638c77b9267 | [
"Apache-2.0"
] | null | null | null | python/clx/analytics/detector.py | mdemoret-nv/clx | 3737706187d8f5720561e10b85cbd638c77b9267 | [
"Apache-2.0"
] | null | null | null | python/clx/analytics/detector.py | mdemoret-nv/clx | 3737706187d8f5720561e10b85cbd638c77b9267 | [
"Apache-2.0"
] | null | null | null | import logging
import torch
import torch.nn as nn
from abc import ABC, abstractmethod
log = logging.getLogger(__name__)
class Detector(ABC):
def __init__(self, lr=0.001):
self.lr = lr
self.__model = None
self.__optimizer = None
self.__criterion = nn.CrossEntropyLoss()
@proper... | 25.772727 | 76 | 0.618166 | 266 | 2,268 | 4.966165 | 0.323308 | 0.06813 | 0.031794 | 0.031794 | 0.145344 | 0.043906 | 0 | 0 | 0 | 0 | 0 | 0.006845 | 0.291446 | 2,268 | 87 | 77 | 26.068966 | 0.815184 | 0.165344 | 0 | 0.280702 | 0 | 0 | 0.011111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22807 | false | 0.052632 | 0.070175 | 0.052632 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ed89a6742f6b5bd9686166ceba6ffc217d6833e0 | 5,366 | py | Python | street_score/project/models.py | openplans/streetscore | ea27f70399b070d3199f236d99575c5962943d67 | [
"MIT"
] | 4 | 2017-01-02T22:30:44.000Z | 2019-10-08T20:50:02.000Z | street_score/project/models.py | openplans/streetscore | ea27f70399b070d3199f236d99575c5962943d67 | [
"MIT"
] | 3 | 2020-02-11T21:42:47.000Z | 2021-06-10T17:28:28.000Z | street_score/project/models.py | openplans/streetscore | ea27f70399b070d3199f236d99575c5962943d67 | [
"MIT"
] | 2 | 2017-03-09T12:24:57.000Z | 2019-12-20T20:39:24.000Z | import math
import random
from django.db import models
class TimeStampedModel (models.Model):
"""
Base model class for when you want to keep track of created and updated
times for model instances.
"""
created_datetime = models.DateTimeField(auto_now_add=True)
updated_datetime = models.DateTim... | 28.391534 | 89 | 0.617965 | 622 | 5,366 | 5.186495 | 0.307074 | 0.019839 | 0.033478 | 0.044637 | 0.149411 | 0.097954 | 0.066956 | 0.066956 | 0.066956 | 0.066956 | 0 | 0.013265 | 0.269474 | 5,366 | 188 | 90 | 28.542553 | 0.809694 | 0.095416 | 0 | 0.14433 | 0 | 0 | 0.081658 | 0.006281 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.123711 | false | 0 | 0.030928 | 0.041237 | 0.618557 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
71ea1c59255a1948249d1ed69284c07777e83df9 | 669 | py | Python | estafeta/core/__init__.py | Solunest/pyestafeta | cd24cea4973f5184f4cc7e72a653de8b22e32f69 | [
"MIT"
] | null | null | null | estafeta/core/__init__.py | Solunest/pyestafeta | cd24cea4973f5184f4cc7e72a653de8b22e32f69 | [
"MIT"
] | null | null | null | estafeta/core/__init__.py | Solunest/pyestafeta | cd24cea4973f5184f4cc7e72a653de8b22e32f69 | [
"MIT"
] | null | null | null |
from estafeta.core.client import EstafetaClient
user = None
password = None
id = None
account_number = None
production = None
from estafeta.core.error import EstafetaWrongData, EstafetaEmptyField
__url_label__ = [
'https://labelqa.estafeta.com/EstafetaLabel20/services/EstafetaLabelWS?wsdl',
'https://label.e... | 25.730769 | 81 | 0.762332 | 74 | 669 | 6.675676 | 0.432432 | 0.133603 | 0.145749 | 0.178138 | 0.518219 | 0.412955 | 0.198381 | 0 | 0 | 0 | 0 | 0.0067 | 0.107623 | 669 | 25 | 82 | 26.76 | 0.820771 | 0 | 0 | 0.105263 | 0 | 0 | 0.532934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.105263 | 0 | 0.105263 | 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 | 0 | 0 | 0 | 2 |
71eac23074999fc487a373bc24fa920adcc09f2f | 355 | py | Python | yunionclient/api/flavors.py | tb365/mcclient_python | 06647e7496b9e2c3aeb5ade1276c81871063159b | [
"Apache-2.0"
] | 3 | 2021-09-22T11:34:08.000Z | 2022-03-13T04:55:17.000Z | yunionclient/api/flavors.py | xhw20190116/python_yunionsdk | eb7c8c08300d38dac204ec4980a775abc9c7083a | [
"Apache-2.0"
] | 13 | 2019-06-06T08:25:41.000Z | 2021-07-16T07:26:10.000Z | yunionclient/api/flavors.py | xhw20190116/python_yunionsdk | eb7c8c08300d38dac204ec4980a775abc9c7083a | [
"Apache-2.0"
] | 7 | 2019-03-31T05:43:36.000Z | 2021-03-04T09:59:05.000Z | from yunionclient.common import base
class FlavorManager(base.StandaloneManager):
keyword = 'flavor'
keyword_plural = 'flavors'
_columns = ['ID', 'Name', 'VCPU_count', 'VMEM_size', 'Disk_size',
'Disk_backend', 'Ext_Bandwidth', 'Int_Bandwidth', 'is_public',
'Description', 'A... | 35.5 | 78 | 0.659155 | 36 | 355 | 6.194444 | 0.833333 | 0.071749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202817 | 355 | 9 | 79 | 39.444444 | 0.787986 | 0 | 0 | 0 | 0 | 0 | 0.377465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
71eb86a2745c8b7f4f02262f1b986e3f1a2ff12c | 238 | py | Python | app.py | MaggieChege/New_App | 75a2be55d50cf21305036c875af2120607ac33c0 | [
"MIT"
] | null | null | null | app.py | MaggieChege/New_App | 75a2be55d50cf21305036c875af2120607ac33c0 | [
"MIT"
] | null | null | null | app.py | MaggieChege/New_App | 75a2be55d50cf21305036c875af2120607ac33c0 | [
"MIT"
] | null | null | null | from flask import Blueprint
from flask_restful import Api
# from restful import Api
from resources.Hello import CategoryResource
api_bp = Blueprint('api', __name__)
api = Api(api_bp)
# Route
api.add_resource(CategoryResource, '/Hello') | 21.636364 | 44 | 0.794118 | 33 | 238 | 5.484848 | 0.424242 | 0.099448 | 0.176796 | 0.220994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12605 | 238 | 11 | 45 | 21.636364 | 0.870192 | 0.121849 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
71eee010313a8cf81a43634e4dc40236254335a2 | 464 | py | Python | kaneda/tasks/rq.py | APSL/kaneda | 739db48588d2237dd7710b16f23921d489182868 | [
"MIT"
] | 59 | 2016-05-03T20:17:59.000Z | 2019-09-05T18:35:21.000Z | kaneda/tasks/rq.py | APSL/kaneda | 739db48588d2237dd7710b16f23921d489182868 | [
"MIT"
] | 2 | 2018-07-25T21:51:18.000Z | 2019-07-31T22:51:09.000Z | kaneda/tasks/rq.py | APSL/kaneda | 739db48588d2237dd7710b16f23921d489182868 | [
"MIT"
] | 11 | 2016-05-20T19:07:46.000Z | 2021-09-10T17:43:58.000Z | from __future__ import absolute_import
from redis import Redis
from rq.decorators import job
from kaneda.utils import get_backend
backend = get_backend()
@job(queue='kaneda', connection=Redis())
def report(name, metric, value, tags, id_):
"""
RQ job to report metrics to the configured backend in kanedasett... | 23.2 | 75 | 0.724138 | 64 | 464 | 5.109375 | 0.546875 | 0.061162 | 0.097859 | 0.12844 | 0.165138 | 0.165138 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19181 | 464 | 19 | 76 | 24.421053 | 0.872 | 0.286638 | 0 | 0 | 0 | 0 | 0.019544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
71f079a62757b3209f276ed71f4e310438ef3cc4 | 248 | py | Python | fibo.py | Baibhabswain/pythonPrograms | 38380174f22e73b766b98754b00cd78a56b4bf59 | [
"MIT"
] | 1 | 2019-03-29T04:32:09.000Z | 2019-03-29T04:32:09.000Z | fibo.py | Baibhabswain/pythonPrograms | 38380174f22e73b766b98754b00cd78a56b4bf59 | [
"MIT"
] | null | null | null | fibo.py | Baibhabswain/pythonPrograms | 38380174f22e73b766b98754b00cd78a56b4bf59 | [
"MIT"
] | null | null | null | def main():
a=input("The enter the first number :")
b=input("The enter the second number :")
range=input("Please enter the range")
i=0;count=0;
print a
print b
while count!=range:
c=a+b
count +=1
print c
a=b
b=c
main() | 17.714286 | 42 | 0.608871 | 45 | 248 | 3.355556 | 0.422222 | 0.15894 | 0.172185 | 0.211921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.25 | 248 | 14 | 43 | 17.714286 | 0.795699 | 0 | 0 | 0 | 0 | 0 | 0.334746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.214286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71f7f60857c1f64d4455062df57530ef2f07c039 | 4,146 | py | Python | wrappers/python/virgil_crypto_lib/foundation/kdf1.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 26 | 2018-12-17T13:45:25.000Z | 2022-01-16T20:00:04.000Z | wrappers/python/virgil_crypto_lib/foundation/kdf1.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 4 | 2019-01-03T12:08:52.000Z | 2021-12-02T05:21:13.000Z | wrappers/python/virgil_crypto_lib/foundation/kdf1.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 8 | 2019-01-24T08:22:06.000Z | 2022-02-07T11:37:00.000Z | # Copyright (C) 2015-2021 Virgil Security, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# (1) Redistributions of source code must retain the above copyright
# notice, this li... | 37.017857 | 117 | 0.7137 | 592 | 4,146 | 4.766892 | 0.342905 | 0.065202 | 0.050673 | 0.053154 | 0.245571 | 0.228561 | 0.193125 | 0.134656 | 0.086464 | 0.086464 | 0 | 0.01459 | 0.206464 | 4,146 | 111 | 118 | 37.351351 | 0.843161 | 0.455379 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0 | 0.145455 | 0.036364 | 0.509091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
71f886304dcb6c6099a9de6e408e657ec12b3bde | 497 | py | Python | mysite/zoo/tests.py | leixiayang/django-python | 8faa84867af5645d3d3d8e67fe8020be4dc68551 | [
"Apache-2.0"
] | 54 | 2015-07-13T14:23:01.000Z | 2021-08-05T10:51:00.000Z | mysite/zoo/tests.py | leixiayang/django-python | 8faa84867af5645d3d3d8e67fe8020be4dc68551 | [
"Apache-2.0"
] | 32 | 2015-07-16T08:58:00.000Z | 2020-04-30T09:41:57.000Z | mysite/zoo/tests.py | leixiayang/django-python | 8faa84867af5645d3d3d8e67fe8020be4dc68551 | [
"Apache-2.0"
] | 31 | 2015-07-13T15:32:01.000Z | 2022-02-19T17:19:51.000Z | #!/usr/bin/env python
# encoding: utf-8
from django.test import TestCase
from zoo import models
class AnimalTestCase(TestCase):
"""Test animals' sound """
def test_dog_says(self):
"""test dog says woof or not
"""
dog = models.Dog(name='Snoopy')
self.assertEqual(dog.says()... | 18.407407 | 44 | 0.593561 | 64 | 497 | 4.546875 | 0.5 | 0.072165 | 0.075601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002747 | 0.267606 | 497 | 26 | 45 | 19.115385 | 0.796703 | 0.259557 | 0 | 0 | 0 | 0 | 0.062678 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
71fa640b3932ba3d1df289310da43d75dd4a2089 | 4,239 | py | Python | litex_boards/platforms/myminieye_runber.py | chmousset/litex-boards | c081177d77f37a4ea6cff150d42a69bd6f0abbc2 | [
"BSD-2-Clause"
] | null | null | null | litex_boards/platforms/myminieye_runber.py | chmousset/litex-boards | c081177d77f37a4ea6cff150d42a69bd6f0abbc2 | [
"BSD-2-Clause"
] | null | null | null | litex_boards/platforms/myminieye_runber.py | chmousset/litex-boards | c081177d77f37a4ea6cff150d42a69bd6f0abbc2 | [
"BSD-2-Clause"
] | null | null | null | #
# This file is part of LiteX-Boards.
#
# Copyright (c) 2021 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
# SPDX-License-Identifier: BSD-2-Clause
from migen import *
from litex.build.generic_platform import *
from litex.build.gowin.platform import GowinPlatform
from litex.build.openfpgaloader import ... | 36.543103 | 118 | 0.550366 | 490 | 4,239 | 4.632653 | 0.406122 | 0.277533 | 0.203524 | 0.077093 | 0.038326 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103147 | 0.190375 | 4,239 | 115 | 119 | 36.86087 | 0.558275 | 0.152394 | 0 | 0.1125 | 0 | 0 | 0.256927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0375 | false | 0 | 0.05 | 0.0125 | 0.1375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9c013815ab64fbbe61aec8c1d395c39f802c887c | 361 | py | Python | 2020/day_01/__main__.py | d02d33pak/Advent-Of-Code | 765b0302c256ad61864095a537a3f6379901b1c2 | [
"MIT"
] | null | null | null | 2020/day_01/__main__.py | d02d33pak/Advent-Of-Code | 765b0302c256ad61864095a537a3f6379901b1c2 | [
"MIT"
] | null | null | null | 2020/day_01/__main__.py | d02d33pak/Advent-Of-Code | 765b0302c256ad61864095a537a3f6379901b1c2 | [
"MIT"
] | null | null | null | """
Day 1 Main Module
"""
from day01 import parse_input, part1, part2
if __name__ == "__main__":
# trying out the new walrus[:=] oprtr in python
if (part := int(input("Enter Part: "))) == 1:
print(part1(parse_input("input.txt")))
elif part == 2:
print(part2(parse_input("input.txt")))
e... | 24.066667 | 51 | 0.595568 | 50 | 361 | 4.08 | 0.62 | 0.147059 | 0.147059 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039855 | 0.235457 | 361 | 14 | 52 | 25.785714 | 0.699275 | 0.177285 | 0 | 0 | 0 | 0 | 0.193772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9c01b072850e72696bc89430b3763e9313e105ec | 4,406 | py | Python | quiz_app/settings.py | ignasgri/Django_Quiz | c98969d4181350eaaf8883f3930d0e800c240a44 | [
"MIT"
] | null | null | null | quiz_app/settings.py | ignasgri/Django_Quiz | c98969d4181350eaaf8883f3930d0e800c240a44 | [
"MIT"
] | 6 | 2020-06-05T19:26:57.000Z | 2022-03-11T23:33:08.000Z | quiz_app/settings.py | ignasgri/Django_Quiz | c98969d4181350eaaf8883f3930d0e800c240a44 | [
"MIT"
] | null | null | null | """
Django settings for quiz_app project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
SITE_ID = 1
... | 27.886076 | 91 | 0.70631 | 529 | 4,406 | 5.706994 | 0.357278 | 0.068897 | 0.05101 | 0.057966 | 0.191123 | 0.157999 | 0.106327 | 0.106327 | 0.039748 | 0 | 0 | 0.015826 | 0.153881 | 4,406 | 158 | 92 | 27.886076 | 0.793991 | 0.276441 | 0 | 0 | 1 | 0 | 0.486221 | 0.360786 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05618 | 0.022472 | 0 | 0.022472 | 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 | 0 | 0 | 0 | 2 |
9c0f818ceccab853bd37e280f6cc450a37f8fe46 | 267 | bzl | Python | test/com/facebook/buck/skylark/parser/testdata/rule_with_wrong_types/attr_value_type/subdir/foo.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 8,027 | 2015-01-02T05:31:44.000Z | 2022-03-31T07:08:09.000Z | test/com/facebook/buck/skylark/parser/testdata/rule_with_wrong_types/attr_value_type/subdir/foo.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 2,355 | 2015-01-01T15:30:53.000Z | 2022-03-30T20:21:16.000Z | test/com/facebook/buck/skylark/parser/testdata/rule_with_wrong_types/attr_value_type/subdir/foo.bzl | Unknoob/buck | 2dfc734354b326f2f66896dde7746a11965d5a13 | [
"Apache-2.0"
] | 1,280 | 2015-01-09T03:29:04.000Z | 2022-03-30T15:14:14.000Z | """ Module docstring """
def _impl(_ctx):
""" Function docstring """
pass
some_rule = rule(
attrs = {
"attr1": attr.int(
default = 2,
mandatory = False,
),
"attr2": 5,
},
implementation = _impl,
)
| 15.705882 | 30 | 0.468165 | 23 | 267 | 5.26087 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.385768 | 267 | 16 | 31 | 16.6875 | 0.713415 | 0.134831 | 0 | 0 | 0 | 0 | 0.046083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0 | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9c10fde5b8d2158f51d8de9c32ce3619970e9b19 | 304 | py | Python | reservation_management/migrations/0021_delete_greenpass.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | 1 | 2022-03-10T11:34:14.000Z | 2022-03-10T11:34:14.000Z | reservation_management/migrations/0021_delete_greenpass.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | null | null | null | reservation_management/migrations/0021_delete_greenpass.py | mattiolato98/reservation-ninja | 0e50b218dd9d90f134868bade2ec2934283c12b5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-22 14:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reservation_management', '0020_greenpass'),
]
operations = [
migrations.DeleteModel(
name='GreenPass',
),
]
| 17.882353 | 53 | 0.615132 | 31 | 304 | 5.967742 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086364 | 0.276316 | 304 | 16 | 54 | 19 | 0.754545 | 0.148026 | 0 | 0 | 1 | 0 | 0.175097 | 0.085603 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9c120e73dce5cc77395baa84f359e42ae9ad94b0 | 3,878 | py | Python | demos/iaf_pop_demo.py | bionet/ted.python | 1698a7f792db23123003ae4e2d39b4c18f25f347 | [
"BSD-3-Clause"
] | 4 | 2015-12-07T14:02:36.000Z | 2018-11-27T22:07:38.000Z | demos/iaf_pop_demo.py | bionet/ted.python | 1698a7f792db23123003ae4e2d39b4c18f25f347 | [
"BSD-3-Clause"
] | null | null | null | demos/iaf_pop_demo.py | bionet/ted.python | 1698a7f792db23123003ae4e2d39b4c18f25f347 | [
"BSD-3-Clause"
] | 2 | 2016-10-06T06:01:05.000Z | 2021-01-22T18:41:18.000Z | #!/usr/bin/env python
"""
Demos of encoding and decoding algorithms using populations of
IAF neurons.
"""
# Copyright (c) 2009-2015, Lev Givon
# All rights reserved.
# Distributed under the terms of the BSD license:
# http://www.opensource.org/licenses/bsd-license
import sys
import numpy as np
# Set matplotlib back... | 27.309859 | 83 | 0.65936 | 623 | 3,878 | 3.913323 | 0.255217 | 0.059065 | 0.037326 | 0.054553 | 0.649303 | 0.649303 | 0.627974 | 0.627974 | 0.627974 | 0.627974 | 0 | 0.037692 | 0.226921 | 3,878 | 141 | 84 | 27.503546 | 0.775517 | 0.138216 | 0 | 0.6 | 0 | 0 | 0.131229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.07 | null | null | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9c1cb579481d40405b2d799f908616a3f2aa3b49 | 2,769 | py | Python | background/forms.py | BFlameSwift/AirplaneReservationSystem | bbabb0e258c72eb50fcbbf7ade437e38a39e6f02 | [
"MIT"
] | 3 | 2021-06-19T09:40:13.000Z | 2021-06-19T17:09:54.000Z | background/forms.py | BFlameSwift/AirplaneReservationSystem | bbabb0e258c72eb50fcbbf7ade437e38a39e6f02 | [
"MIT"
] | null | null | null | background/forms.py | BFlameSwift/AirplaneReservationSystem | bbabb0e258c72eb50fcbbf7ade437e38a39e6f02 | [
"MIT"
] | 1 | 2021-12-05T14:51:51.000Z | 2021-12-05T14:51:51.000Z |
from django import forms
class FlightrForm(forms.Form):
flight_number = forms.CharField(max_length=30, label="航班号", widget=forms.TextInput(attrs={'class': 'form-control'}))
plane_type_choices = [
('波音', (
('1', '747'),
('2', '777'),
('3', '787'),
)
... | 60.195652 | 129 | 0.679307 | 331 | 2,769 | 5.555891 | 0.256798 | 0.113649 | 0.137031 | 0.205546 | 0.734638 | 0.692224 | 0.603045 | 0.313214 | 0.313214 | 0.313214 | 0 | 0.018372 | 0.135067 | 2,769 | 46 | 130 | 60.195652 | 0.749478 | 0.078368 | 0 | 0.236842 | 0 | 0 | 0.155024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9c2218dead1aba52c67ce0344013c8ad1bd43a62 | 109 | py | Python | engine/config/constant.py | infiniteloop98/lazies-cmd | 46ac58f9b31942c6fa63b7ffa8d409e3a6b4df26 | [
"MIT"
] | 1 | 2022-02-19T08:39:17.000Z | 2022-02-19T08:39:17.000Z | engine/config/constant.py | infiniteloop98/lazies-cmd | 46ac58f9b31942c6fa63b7ffa8d409e3a6b4df26 | [
"MIT"
] | null | null | null | engine/config/constant.py | infiniteloop98/lazies-cmd | 46ac58f9b31942c6fa63b7ffa8d409e3a6b4df26 | [
"MIT"
] | null | null | null | APP_PROFILE_DIRECTORY_NAME = 'lazies-cmd'
DOSKEY_FILE_NAME = 'doskey.bat'
AUTO_RUN_REGISTRY_NAME = 'AutoRun'
| 27.25 | 41 | 0.816514 | 16 | 109 | 5.0625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082569 | 109 | 3 | 42 | 36.333333 | 0.81 | 0 | 0 | 0 | 0 | 0 | 0.247706 | 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 | 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 | 2 |
9c2374c54ba5c88122db3264039ec597c5b837e3 | 1,530 | py | Python | src/test/python/programmingtheiot/part01/unit/system/SystemMemUtilTaskTest.py | Zhengrui-Liu/FireAlarmingSysCDA | 26db6375a21ee9bdccba3d137e30d2e63ad6395c | [
"MIT"
] | null | null | null | src/test/python/programmingtheiot/part01/unit/system/SystemMemUtilTaskTest.py | Zhengrui-Liu/FireAlarmingSysCDA | 26db6375a21ee9bdccba3d137e30d2e63ad6395c | [
"MIT"
] | null | null | null | src/test/python/programmingtheiot/part01/unit/system/SystemMemUtilTaskTest.py | Zhengrui-Liu/FireAlarmingSysCDA | 26db6375a21ee9bdccba3d137e30d2e63ad6395c | [
"MIT"
] | null | null | null | #####
#
# This class is part of the Programming the Internet of Things
# project, and is available via the MIT License, which can be
# found in the LICENSE file at the top level of this repository.
#
# Copyright (c) 2020 by Andrew D. King
#
import logging
import unittest
from programmingtheiot.cda.system.SystemMem... | 26.842105 | 105 | 0.739869 | 190 | 1,530 | 5.915789 | 0.584211 | 0.029359 | 0.019573 | 0.030249 | 0.096085 | 0.046263 | 0 | 0 | 0 | 0 | 0 | 0.006192 | 0.155556 | 1,530 | 57 | 106 | 26.842105 | 0.863777 | 0.396732 | 0 | 0.083333 | 0 | 0 | 0.162664 | 0.052402 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.208333 | false | 0.083333 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9c25aa6fdaf3676c5515d5ada4dd3bbb5e192b55 | 25,225 | py | Python | src/fabricflow/fibc/api/fibcapis_pb2_grpc.py | RudSmith/beluganos | 7a3f8524e1d9d9313d96476c783a96096180654c | [
"Apache-2.0"
] | 119 | 2017-10-05T11:37:37.000Z | 2022-02-23T05:01:54.000Z | src/fabricflow/fibc/api/fibcapis_pb2_grpc.py | RudSmith/beluganos | 7a3f8524e1d9d9313d96476c783a96096180654c | [
"Apache-2.0"
] | 5 | 2017-10-23T00:49:09.000Z | 2020-08-17T14:58:16.000Z | src/fabricflow/fibc/api/fibcapis_pb2_grpc.py | RudSmith/beluganos | 7a3f8524e1d9d9313d96476c783a96096180654c | [
"Apache-2.0"
] | 17 | 2017-10-21T12:33:44.000Z | 2022-02-03T10:55:18.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import fibcapi_pb2 as fibcapi__pb2
import fibcapis_pb2 as fibcapis__pb2
class FIBCApApiStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
... | 40.949675 | 83 | 0.745966 | 2,401 | 25,225 | 7.565598 | 0.058726 | 0.058134 | 0.066061 | 0.077402 | 0.775888 | 0.628957 | 0.627195 | 0.568346 | 0.568346 | 0.552931 | 0 | 0.006402 | 0.176373 | 25,225 | 615 | 84 | 41.01626 | 0.867925 | 0.094509 | 0 | 0.515091 | 1 | 0 | 0.117994 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076459 | false | 0.076459 | 0.006036 | 0 | 0.098592 | 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 | 0 | 0 | 0 | 2 |
9c28065db1d863fb5b79db27e4909a5e2d4c5505 | 4,501 | py | Python | deepchem/metrics/score_function.py | hsjang001205/deepchem | 02fce35729826b1ef12a1cfa6519b491510217be | [
"MIT"
] | 1 | 2020-08-19T17:25:27.000Z | 2020-08-19T17:25:27.000Z | deepchem/metrics/score_function.py | swpper/deepchem | 510b9bf1805bc5a472c1a519700e6b128e06c651 | [
"MIT"
] | 1 | 2020-09-22T18:42:21.000Z | 2020-09-22T18:42:21.000Z | deepchem/metrics/score_function.py | swpper/deepchem | 510b9bf1805bc5a472c1a519700e6b128e06c651 | [
"MIT"
] | 1 | 2020-10-06T13:31:21.000Z | 2020-10-06T13:31:21.000Z | """Evaluation metrics."""
import numpy as np
from sklearn.metrics import matthews_corrcoef # noqa
from sklearn.metrics import recall_score # noqa
from sklearn.metrics import cohen_kappa_score
from sklearn.metrics import r2_score # noqa
from sklearn.metrics import mean_squared_error
from sklearn.metrics import mean_... | 27.278788 | 92 | 0.709842 | 661 | 4,501 | 4.712557 | 0.298033 | 0.069342 | 0.080899 | 0.107865 | 0.364045 | 0.273515 | 0.202889 | 0.16244 | 0.15313 | 0.10626 | 0 | 0.013359 | 0.18507 | 4,501 | 164 | 93 | 27.445122 | 0.835878 | 0.486559 | 0 | 0 | 0 | 0 | 0.050663 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.152174 | false | 0 | 0.369565 | 0 | 0.673913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9c47b2d078f8bff3deaa6bb4fad2e317c962efca | 2,657 | py | Python | mistral/mistral/api/controllers/v2/service.py | Toure/openstack_mistral_wip | 1c3d028cb7c918de74a3cb018c84d6c5ee42e3f1 | [
"Apache-2.0"
] | null | null | null | mistral/mistral/api/controllers/v2/service.py | Toure/openstack_mistral_wip | 1c3d028cb7c918de74a3cb018c84d6c5ee42e3f1 | [
"Apache-2.0"
] | null | null | null | mistral/mistral/api/controllers/v2/service.py | Toure/openstack_mistral_wip | 1c3d028cb7c918de74a3cb018c84d6c5ee42e3f1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Huawei Technologies Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 35.905405 | 79 | 0.686865 | 329 | 2,657 | 5.449848 | 0.468085 | 0.042945 | 0.048522 | 0.017847 | 0.041272 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004493 | 0.246142 | 2,657 | 73 | 80 | 36.39726 | 0.890664 | 0.306361 | 0 | 0.047619 | 0 | 0 | 0.095552 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.02381 | false | 0 | 0.309524 | 0 | 0.380952 | 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 | 0 | 0 | 0 | 2 |
9c49fd2b9580ad32f0138ff3ca8bca4fa9148e22 | 526 | py | Python | rsa-cipher/makeRsaKeys.py | mumbo-pro/cyrptography-algorithm | 8e08c027c361f94c547f8b4ede723401399c93ed | [
"Apache-2.0"
] | 1 | 2021-02-23T09:53:19.000Z | 2021-02-23T09:53:19.000Z | rsa-cipher/makeRsaKeys.py | mumbo-pro/cyrptography-algorithm | 8e08c027c361f94c547f8b4ede723401399c93ed | [
"Apache-2.0"
] | 1 | 2019-09-18T08:24:05.000Z | 2019-09-18T08:24:05.000Z | rsa-cipher/makeRsaKeys.py | mumbo-pro/cyrptography-algorithm | 8e08c027c361f94c547f8b4ede723401399c93ed | [
"Apache-2.0"
] | null | null | null | # RSA Key Generator
2. # http://inventwithpython.com/hacking (BSD Licensed) 3. 4. import random, sys, os, rabinMiller, cryptomath
The program imports the rabinMiller and cryptomath modules that we created in the last chapter, along with a few others.
Chapter 24 – Public Key Cryptography and the RSA Cipher 387... | 65.75 | 188 | 0.714829 | 79 | 526 | 4.759494 | 0.78481 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054374 | 0.195817 | 526 | 7 | 189 | 75.142857 | 0.832151 | 0.547529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9c4f8c513227a59417c089b50d394e43f128a12b | 478 | py | Python | 20.py | dexinl/kids_math | 48f6c37e221bbd2484ad19861c61e5ed7d3aa09e | [
"Apache-2.0"
] | null | null | null | 20.py | dexinl/kids_math | 48f6c37e221bbd2484ad19861c61e5ed7d3aa09e | [
"Apache-2.0"
] | null | null | null | 20.py | dexinl/kids_math | 48f6c37e221bbd2484ad19861c61e5ed7d3aa09e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import random
count = 20
test_set = []
while count:
a = random.randrange(3,20)
b = random.randrange(3,20)
if a > b and a - b > 1:
if (b, a-b) not in test_set:
test_set.append((b, a-b))
count -= 1
elif b > a and b - a > 1:
if (a, b-a) not in te... | 19.12 | 37 | 0.479079 | 80 | 478 | 2.7875 | 0.325 | 0.071749 | 0.121076 | 0.161435 | 0.224215 | 0.224215 | 0.224215 | 0 | 0 | 0 | 0 | 0.046667 | 0.372385 | 478 | 24 | 38 | 19.916667 | 0.696667 | 0.033473 | 0 | 0.111111 | 0 | 0 | 0.034707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9c5339840ef805187717d24fa9d11f6cf4589f50 | 6,574 | py | Python | e2e_tests/tests/config.py | winding-lines/determined | 231e1ac1df9d77cabc09b724ca2f8070eac0da73 | [
"Apache-2.0"
] | null | null | null | e2e_tests/tests/config.py | winding-lines/determined | 231e1ac1df9d77cabc09b724ca2f8070eac0da73 | [
"Apache-2.0"
] | null | null | null | e2e_tests/tests/config.py | winding-lines/determined | 231e1ac1df9d77cabc09b724ca2f8070eac0da73 | [
"Apache-2.0"
] | null | null | null | import os
from pathlib import Path
from typing import Any, Dict
from determined.common import util
MASTER_SCHEME = "http"
MASTER_IP = "localhost"
MASTER_PORT = "8080"
DET_VERSION = None
DEFAULT_MAX_WAIT_SECS = 1800
MAX_TASK_SCHEDULED_SECS = 30
MAX_TRIAL_BUILD_SECS = 90
DEFAULT_TF1_CPU_IMAGE = "determinedai/environm... | 32.068293 | 100 | 0.702616 | 930 | 6,574 | 4.697849 | 0.170968 | 0.059281 | 0.084688 | 0.065919 | 0.500572 | 0.434882 | 0.401007 | 0.401007 | 0.360266 | 0.327993 | 0 | 0.01542 | 0.141771 | 6,574 | 204 | 101 | 32.22549 | 0.758951 | 0 | 0 | 0.301471 | 0 | 0.029412 | 0.182537 | 0.095528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227941 | false | 0 | 0.029412 | 0.102941 | 0.485294 | 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 | 0 | 0 | 0 | 2 |
9c60736edd01d240f5a84615880cdfb0c36592cb | 2,876 | py | Python | services/model.py | theallknowng/eKheti | 85e74f26bde7454293617ba727002c5c81402140 | [
"MIT"
] | 1 | 2020-04-14T20:29:09.000Z | 2020-04-14T20:29:09.000Z | services/model.py | theallknowng/eKheti | 85e74f26bde7454293617ba727002c5c81402140 | [
"MIT"
] | 5 | 2020-09-26T01:11:17.000Z | 2022-02-10T02:01:36.000Z | services/model.py | theallknowng/eKheti | 85e74f26bde7454293617ba727002c5c81402140 | [
"MIT"
] | null | null | null | import pandas
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import KerasClassifier
from keras.utils import np_utils
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import KFold
from sklearn.preprocessing import LabelEncoder
from skle... | 54.264151 | 594 | 0.719402 | 473 | 2,876 | 4.342495 | 0.283298 | 0.017527 | 0.018987 | 0.036514 | 0.449854 | 0.393379 | 0.393379 | 0.378773 | 0.378773 | 0.378773 | 0 | 0.091875 | 0.084145 | 2,876 | 52 | 595 | 55.307692 | 0.687927 | 0.447497 | 0 | 0 | 0 | 0.032258 | 0.38364 | 0.072923 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.451613 | 0 | 0.516129 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9c6d0e66968fb03790c987f71d690038a6f4abfa | 3,029 | py | Python | contrib/functional_tests/functional/test_reorg.py | electrumsv/electrumsv | a2d9027ccec338cadfca778888e6ef7f077b1651 | [
"MIT"
] | 136 | 2019-01-10T15:49:09.000Z | 2022-02-20T04:46:39.000Z | contrib/functional_tests/functional/test_reorg.py | electrumsv/electrumsv | a2d9027ccec338cadfca778888e6ef7f077b1651 | [
"MIT"
] | 790 | 2019-01-07T01:53:35.000Z | 2022-03-30T23:04:28.000Z | contrib/functional_tests/functional/test_reorg.py | electrumsv/electrumsv | a2d9027ccec338cadfca778888e6ef7f077b1651 | [
"MIT"
] | 65 | 2019-01-10T23:55:30.000Z | 2021-12-19T06:47:13.000Z | """
Warning - this will reset all components back to a blank state before running the simulation
Runs node1, electrumx1 and electrumsv1 and loads the default wallet on the daemon (so that newly
submitted blocks will be synchronized by ElectrumSV
reorged txid: 'a1fa9460ca105c1396cd338f7fa202bf79a9d244d730e91e19f6302a0... | 35.22093 | 96 | 0.678772 | 348 | 3,029 | 5.66092 | 0.451149 | 0.030457 | 0.016751 | 0.033503 | 0.316751 | 0.316751 | 0.316751 | 0.224365 | 0.17868 | 0.17868 | 0 | 0.048899 | 0.250578 | 3,029 | 85 | 97 | 35.635294 | 0.818943 | 0.191482 | 0 | 0.290909 | 0 | 0.018182 | 0.148604 | 0.052545 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.054545 | false | 0.054545 | 0.181818 | 0 | 0.254545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9c6f86bf35dea92442e86d8e34f3dfcb1923875e | 1,336 | py | Python | BasicScripts/basics.py | TomasBelskis/PythonAutomation | dd2e30abb214e37d84a8952deb834074abdc84a2 | [
"MIT"
] | null | null | null | BasicScripts/basics.py | TomasBelskis/PythonAutomation | dd2e30abb214e37d84a8952deb834074abdc84a2 | [
"MIT"
] | null | null | null | BasicScripts/basics.py | TomasBelskis/PythonAutomation | dd2e30abb214e37d84a8952deb834074abdc84a2 | [
"MIT"
] | null | null | null | # Python Basics
# String concatenaton
added_strings = str(32) + "_342"
# Getting input
input_from_user = input()
# Basic print function
print(input_from_user)
# Mixing boolean and comparison operations
if (4 < 5) and (5 < 6):
print("True")
# Basic if & if else flow
if name == 'Alice':
print('Hi, Alice.')... | 19.940299 | 66 | 0.624251 | 195 | 1,336 | 4.246154 | 0.476923 | 0.025362 | 0.021739 | 0.039855 | 0.086957 | 0.041063 | 0 | 0 | 0 | 0 | 0 | 0.030632 | 0.242515 | 1,336 | 66 | 67 | 20.242424 | 0.787549 | 0.193862 | 0 | 0.095238 | 0 | 0 | 0.271617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.071429 | 0.047619 | null | null | 0.380952 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9c7a5adb483cec8b62999237b4fa84739552c994 | 2,414 | py | Python | databoard/databoard/default_config.py | glemaitre/ramp-board-1 | a5e9b423a55d196d38232fd94b2f7d53fb35d9d8 | [
"BSD-3-Clause"
] | null | null | null | databoard/databoard/default_config.py | glemaitre/ramp-board-1 | a5e9b423a55d196d38232fd94b2f7d53fb35d9d8 | [
"BSD-3-Clause"
] | null | null | null | databoard/databoard/default_config.py | glemaitre/ramp-board-1 | a5e9b423a55d196d38232fd94b2f7d53fb35d9d8 | [
"BSD-3-Clause"
] | null | null | null | import os
class Config(object):
# FLASK GENERAL CONFIG PARAMETERS
SECRET_KEY = os.getenv('DATABOARD_SECRET_KEY', 'abcdefghijkl')
# abs max upload file size, to throw 413, before saving it
WTF_CSRF_ENABLED = True
LOG_FILENAME = None # if None, output to screen
MAX_CONTENT_LENGTH = 1024 * 1024 ... | 30.948718 | 70 | 0.681856 | 284 | 2,414 | 5.471831 | 0.362676 | 0.087516 | 0.185972 | 0.081081 | 0.299871 | 0.265122 | 0.265122 | 0.236165 | 0.236165 | 0.20592 | 0 | 0.012358 | 0.195526 | 2,414 | 77 | 71 | 31.350649 | 0.787848 | 0.086164 | 0 | 0.160714 | 0 | 0 | 0.302489 | 0.193048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.017857 | 0.017857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9c7dd63e969ee9cd5df33ca5c30412f39a0774ab | 366 | py | Python | tests/utils/test_metrics.py | haochuanwei/hover | 53eb38c718e44445b18a97e391b7f90270802b04 | [
"MIT"
] | 251 | 2020-11-22T15:02:30.000Z | 2022-03-23T23:29:28.000Z | tests/utils/test_metrics.py | MaxCodeXTC/hover | feeb0e0c59295a3c883823ccef918dfe388b603c | [
"MIT"
] | 22 | 2020-12-03T07:50:27.000Z | 2022-02-26T01:43:41.000Z | tests/utils/test_metrics.py | MaxCodeXTC/hover | feeb0e0c59295a3c883823ccef918dfe388b603c | [
"MIT"
] | 14 | 2020-11-18T06:46:02.000Z | 2022-03-03T08:14:18.000Z | from hover.utils.metrics import classification_accuracy
import numpy as np
def test_classification_accuracy():
true = np.array([1, 2, 3, 4, 5, 6, 7, 7])
pred = np.array([1, 2, 3, 4, 5, 6, 7, 8])
accl = classification_accuracy(true, pred)
accr = classification_accuracy(pred, true)
assert np.allclose... | 33.272727 | 55 | 0.677596 | 59 | 366 | 4.118644 | 0.457627 | 0.36214 | 0.213992 | 0.074074 | 0.115226 | 0.115226 | 0.115226 | 0.115226 | 0.115226 | 0 | 0 | 0.06734 | 0.188525 | 366 | 10 | 56 | 36.6 | 0.750842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
92c00c62a4d73688ee5500b37708447cbeae1913 | 557 | py | Python | Authentication/migrations/0004_auto_20201115_1105.py | CHESyrian/Estebyan | 015c0a8e95d033af04ba949942da79a4f5a90488 | [
"MIT"
] | null | null | null | Authentication/migrations/0004_auto_20201115_1105.py | CHESyrian/Estebyan | 015c0a8e95d033af04ba949942da79a4f5a90488 | [
"MIT"
] | null | null | null | Authentication/migrations/0004_auto_20201115_1105.py | CHESyrian/Estebyan | 015c0a8e95d033af04ba949942da79a4f5a90488 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-11-15 09:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Authentication', '0003_auto_20201113_2210'),
]
operations = [
migrations.AlterField(
model_name='profiles',
name='Qu... | 23.208333 | 54 | 0.587074 | 54 | 557 | 5.944444 | 0.666667 | 0.124611 | 0.155763 | 0.180685 | 0.448598 | 0.255452 | 0 | 0 | 0 | 0 | 0 | 0.084833 | 0.301616 | 557 | 23 | 55 | 24.217391 | 0.74036 | 0.08079 | 0 | 0.470588 | 1 | 0 | 0.145098 | 0.045098 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 0 | 0 | 0 | 2 |
92c68dfb6fa34afab6acdb9718f1d8ef9da011d5 | 670 | py | Python | input_handler.py | Wyverns010/Body-Keypoints-Detection | 980445da5e87c898a00a8ef1c9e1e143d09d4643 | [
"Apache-2.0"
] | 1 | 2021-06-06T07:08:27.000Z | 2021-06-06T07:08:27.000Z | input_handler.py | Wyverns010/Body-Keypoints-Detection | 980445da5e87c898a00a8ef1c9e1e143d09d4643 | [
"Apache-2.0"
] | null | null | null | input_handler.py | Wyverns010/Body-Keypoints-Detection | 980445da5e87c898a00a8ef1c9e1e143d09d4643 | [
"Apache-2.0"
] | null | null | null | import os
import traceback
class InputHandler:
IMAGES_PARENT_FOLDER = './images'
def __init__(self):
filesList = []
def listFiles(self,path=''):
if path != '':
self.IMAGES_PARENT_FOLDER = path
try:
self.listFiles = [os.path.join(self.IMAGES_PAREN... | 25.769231 | 135 | 0.60597 | 73 | 670 | 5.246575 | 0.39726 | 0.156658 | 0.234987 | 0.229765 | 0.214099 | 0.214099 | 0.214099 | 0.214099 | 0 | 0 | 0 | 0 | 0.286567 | 670 | 26 | 136 | 25.769231 | 0.801255 | 0 | 0 | 0 | 0 | 0 | 0.023845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.388889 | 0.111111 | 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 | 0 | 0 | 2 |
92d42a0f362d457b4431027767a7c26d248663c3 | 6,206 | py | Python | contrib/antlrqueryparser/src/python/generate_asts.py | marblestation/montysolr | 50917b4d53caac633fe9d1965f175401b3edc77d | [
"Apache-2.0"
] | 24 | 2015-03-23T17:57:47.000Z | 2021-11-01T17:08:58.000Z | contrib/antlrqueryparser/src/python/generate_asts.py | marblestation/montysolr | 50917b4d53caac633fe9d1965f175401b3edc77d | [
"Apache-2.0"
] | 138 | 2015-01-02T16:47:51.000Z | 2022-02-26T02:44:07.000Z | contrib/antlrqueryparser/src/python/generate_asts.py | marblestation/montysolr | 50917b4d53caac633fe9d1965f175401b3edc77d | [
"Apache-2.0"
] | 10 | 2015-03-11T19:49:51.000Z | 2020-12-09T09:22:02.000Z |
import sys
import subprocess as sub
import os
"""
Simple utility script to generate HTML charts of how ANTLR parses
every query and what is the resulting AST.
"""
def run(grammar_name, basedir='',
cp='.:/dvt/antlr-142/lib/antlr-3.4-complete.jar:/x/dev/antlr-34/lib/antlr-3.4-complete.jar',
grammardi... | 30.722772 | 144 | 0.496616 | 728 | 6,206 | 4.120879 | 0.271978 | 0.02 | 0.016667 | 0.018667 | 0.166667 | 0.115333 | 0.092667 | 0.071333 | 0.071333 | 0.026 | 0 | 0.008808 | 0.341444 | 6,206 | 201 | 145 | 30.875622 | 0.725226 | 0.035933 | 0 | 0.158621 | 1 | 0.041379 | 0.175427 | 0.07099 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02069 | null | null | 0.062069 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
92dbf0257f2cb3330104352818f4db40e27c4927 | 513 | py | Python | guifw/models/port.py | luizerico/PyGuiFW | d79347db7d4bd9e09fbc53215d79c06ccf16bad5 | [
"MIT"
] | 1 | 2021-02-05T02:58:19.000Z | 2021-02-05T02:58:19.000Z | guifw/models/port.py | luizerico/PyGuiFW | d79347db7d4bd9e09fbc53215d79c06ccf16bad5 | [
"MIT"
] | 1 | 2018-11-09T16:10:50.000Z | 2018-11-09T16:10:50.000Z | guifw/models/port.py | luizerico/PyGuiFW | d79347db7d4bd9e09fbc53215d79c06ccf16bad5 | [
"MIT"
] | null | null | null | from django.db import models
from django import forms
from audit_log.models.managers import AuditLog
# Create your models here.
class Port(models.Model):
name = models.CharField(max_length=250)
port = models.CharField(max_length=250)
description = models.TextField(blank=True)
audit_log = AuditLog()... | 20.52 | 61 | 0.707602 | 67 | 513 | 5.283582 | 0.567164 | 0.056497 | 0.101695 | 0.135593 | 0.152542 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014634 | 0.20078 | 513 | 25 | 62 | 20.52 | 0.84878 | 0.155945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.214286 | 0.071429 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
92dc4e7fbdb299e18e1175c0718307d433b0cb15 | 386 | py | Python | app/backend/arm/migrations/0002_auto_20190924_1712.py | karstenv/nmp-arm | 47e45f0391820000f461ab6e994e20eacfffb457 | [
"Apache-2.0"
] | 2 | 2019-08-12T22:06:23.000Z | 2019-10-22T20:50:32.000Z | app/backend/arm/migrations/0002_auto_20190924_1712.py | karstenv/nmp-arm | 47e45f0391820000f461ab6e994e20eacfffb457 | [
"Apache-2.0"
] | 12 | 2019-07-10T18:11:31.000Z | 2022-02-10T08:47:57.000Z | app/backend/arm/migrations/0002_auto_20190924_1712.py | karstenv/nmp-arm | 47e45f0391820000f461ab6e994e20eacfffb457 | [
"Apache-2.0"
] | 6 | 2019-07-03T21:24:11.000Z | 2021-04-29T17:31:34.000Z | # Generated by Django 2.2.5 on 2019-09-25 00:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('arm', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='CautionMessage',
),
migrations.Dele... | 19.3 | 48 | 0.546632 | 34 | 386 | 6.176471 | 0.764706 | 0.2 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075397 | 0.34715 | 386 | 19 | 49 | 20.315789 | 0.757937 | 0.11658 | 0 | 0.307692 | 1 | 0 | 0.1375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
92df7af4ff3a17d2d4ea5d2cff4ae315569f3502 | 830 | py | Python | tests/dummy_repo/tvm/python/tvm/api.py | csullivan/ffi-navigator | ed47678f9cb8c6d3637bf3219d3cf7b2754b84bb | [
"Apache-2.0"
] | 148 | 2019-12-28T19:02:17.000Z | 2022-03-27T07:30:13.000Z | tests/dummy_repo/tvm/python/tvm/api.py | csullivan/ffi-navigator | ed47678f9cb8c6d3637bf3219d3cf7b2754b84bb | [
"Apache-2.0"
] | 21 | 2019-12-28T17:29:24.000Z | 2021-11-24T09:59:35.000Z | tests/dummy_repo/tvm/python/tvm/api.py | csullivan/ffi-navigator | ed47678f9cb8c6d3637bf3219d3cf7b2754b84bb | [
"Apache-2.0"
] | 17 | 2019-12-29T01:46:13.000Z | 2022-01-10T09:56:46.000Z | from ._ffi.base import string_types
from ._ffi.object import register_object, Object
from ._ffi.node import register_node, NodeBase
from ._ffi.node import convert_to_node as _convert_to_node
from ._ffi.node_generic import _scalar_type_inference
from ._ffi.function import Function
from ._ffi.function import _init_api, r... | 31.923077 | 87 | 0.812048 | 128 | 830 | 4.890625 | 0.359375 | 0.100639 | 0.052716 | 0.100639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01385 | 0.13012 | 830 | 25 | 88 | 33.2 | 0.853186 | 0 | 0 | 0 | 0 | 0 | 0.026506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.727273 | 0.045455 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
92f361f8ed017247a610edc6823b43b8f1e0fefd | 290 | py | Python | registerapp/api.py | RajapandiR/django-register | cf20829fe3515bdd3112a88a890d83d852f09bde | [
"MIT"
] | null | null | null | registerapp/api.py | RajapandiR/django-register | cf20829fe3515bdd3112a88a890d83d852f09bde | [
"MIT"
] | 6 | 2021-03-19T04:17:51.000Z | 2021-09-22T19:07:17.000Z | registerapp/api.py | RajapandiR/django-register | cf20829fe3515bdd3112a88a890d83d852f09bde | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from rest_framework.views import APIView
from registerapp import serializers
from registerapp import models
class RegisterViewSet(viewsets.ModelViewSet):
serializer_class = serializers.RegisterSerializer
queryset = models.RegisterPage.objects.all()
| 26.363636 | 50 | 0.855172 | 32 | 290 | 7.65625 | 0.59375 | 0.065306 | 0.138776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 290 | 10 | 51 | 29 | 0.938697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
92f9e01e28f69fd9e75ceb00e00af2fc86419292 | 1,618 | py | Python | api/models/indicator/child_objects/properties.py | taco-chainalysis/pypulsedive | e89a2651e1ef41a1a51ddbeabc1f914a0d4e467d | [
"MIT"
] | null | null | null | api/models/indicator/child_objects/properties.py | taco-chainalysis/pypulsedive | e89a2651e1ef41a1a51ddbeabc1f914a0d4e467d | [
"MIT"
] | null | null | null | api/models/indicator/child_objects/properties.py | taco-chainalysis/pypulsedive | e89a2651e1ef41a1a51ddbeabc1f914a0d4e467d | [
"MIT"
] | 1 | 2021-11-10T16:50:32.000Z | 2021-11-10T16:50:32.000Z | from .grandchild_objects import Cookies
from .grandchild_objects import Dns
from .grandchild_objects import Dom
from .grandchild_objects import Geo
#from .grandchild_objects import Http
#from .grandchild_objects import Meta
from .grandchild_objects import Ssl
#from .grandchild_objects import WhoIs
class Properties(obj... | 33.708333 | 83 | 0.642769 | 176 | 1,618 | 5.698864 | 0.176136 | 0.125623 | 0.215354 | 0.215354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249073 | 1,618 | 48 | 84 | 33.708333 | 0.825514 | 0.171199 | 0 | 0 | 0 | 0 | 0.054641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.131579 | 0 | 0.263158 | 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 | 0 | 0 | 0 | 2 |
92feee19e193679cb75cdd6152ceb20caad92e8b | 389 | gyp | Python | notification/app/node_modules/hiredis/binding.gyp | c2gconsulting/bulkpay | 224a52427f80a71f66613c367a5596cbd5e97294 | [
"MIT"
] | 208 | 2015-01-07T03:50:56.000Z | 2022-03-21T03:34:12.000Z | binding.gyp | badboy/hiredis-node-win | d113945a182ba1d616f8fba06e2d80dc9f09552b | [
"BSD-3-Clause"
] | 72 | 2015-01-11T09:54:16.000Z | 2019-11-21T14:07:43.000Z | binding.gyp | badboy/hiredis-node-win | d113945a182ba1d616f8fba06e2d80dc9f09552b | [
"BSD-3-Clause"
] | 55 | 2015-01-10T20:54:13.000Z | 2022-02-02T14:08:01.000Z | {
'targets': [
{
'target_name': 'hiredis',
'sources': [
'src/hiredis.cc'
, 'src/reader.cc'
],
'include_dirs': ["<!(node -e \"require('nan')\")"],
'dependencies': [
'deps/hiredis.gyp:hiredis-c'
],
'defines': [
'_GNU_SOURCE'
],
... | 16.913043 | 57 | 0.375321 | 29 | 389 | 4.896552 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004367 | 0.411311 | 389 | 22 | 58 | 17.681818 | 0.615721 | 0 | 0 | 0.136364 | 0 | 0 | 0.403599 | 0.066838 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
1310f38eea5f3635000289a9e4355d5205ba5668 | 551 | py | Python | mmdet/ops/orn/functions/__init__.py | JarvisUSTC/DARDet | debbf476e9750030db67f030a40cf8d4f03e46ee | [
"Apache-2.0"
] | 274 | 2021-04-06T15:46:06.000Z | 2022-03-31T02:00:10.000Z | mmdet/ops/orn/functions/__init__.py | JarvisUSTC/DARDet | debbf476e9750030db67f030a40cf8d4f03e46ee | [
"Apache-2.0"
] | 136 | 2021-07-11T11:26:54.000Z | 2022-03-31T02:45:34.000Z | mmdet/ops/orn/functions/__init__.py | JarvisUSTC/DARDet | debbf476e9750030db67f030a40cf8d4f03e46ee | [
"Apache-2.0"
] | 84 | 2021-05-29T06:58:14.000Z | 2022-03-31T07:44:10.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
from .active_rotating_filter import active_rotating_filter
from .active_rotating_filter import ActiveRotatingFilter
from .rotation_invariant_encoding import rotation_invariant_encoding
from .rotation_invariant_encoding import RotationI... | 61.222222 | 148 | 0.874773 | 56 | 551 | 8.214286 | 0.410714 | 0.184783 | 0.173913 | 0.104348 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072595 | 551 | 9 | 148 | 61.222222 | 0.900196 | 0.125227 | 0 | 0 | 0 | 0 | 0.245322 | 0.203742 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
131ebdee55bb427354a422cace3807e8ec4ae9ed | 3,039 | py | Python | src/production_ecommerce/account/models.py | sheriffbarrow/production-ecommerce | cb1a29795ff8e9b4aa95a78df50bb8aa3e5f4350 | [
"MIT"
] | 1 | 2020-08-18T16:23:03.000Z | 2020-08-18T16:23:03.000Z | src/production_ecommerce/account/models.py | sheriffbarrow/production-ecommerce | cb1a29795ff8e9b4aa95a78df50bb8aa3e5f4350 | [
"MIT"
] | 8 | 2020-06-06T01:06:35.000Z | 2021-09-08T01:35:58.000Z | src/production_ecommerce/account/models.py | sheriffbarrow/production-ecommerce | cb1a29795ff8e9b4aa95a78df50bb8aa3e5f4350 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
class MyAccountManager(BaseUserManager):
def create_user(self, email, username, password=None):
if not email:
raise ValueError('Users must have an email address')
if not username:
raise ValueError('Users m... | 33.395604 | 103 | 0.763738 | 418 | 3,039 | 5.409091 | 0.272727 | 0.035825 | 0.055728 | 0.074303 | 0.749226 | 0.676692 | 0.676692 | 0.651039 | 0.651039 | 0.651039 | 0 | 0.008403 | 0.138532 | 3,039 | 90 | 104 | 33.766667 | 0.855233 | 0.166173 | 0 | 0.636364 | 0 | 0 | 0.063366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0.060606 | 0.030303 | 0.090909 | 0.712121 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
13209dfae3637157d917f9f553a882a2aac83180 | 758 | py | Python | dbtmetabase/models/config.py | fernandobrito/dbt-metabase | a1fa5a2c7c5e3cf12ead8806d39f6bd3a212fb83 | [
"MIT"
] | null | null | null | dbtmetabase/models/config.py | fernandobrito/dbt-metabase | a1fa5a2c7c5e3cf12ead8806d39f6bd3a212fb83 | [
"MIT"
] | 1 | 2021-08-01T19:29:59.000Z | 2021-08-01T19:29:59.000Z | dbtmetabase/models/config.py | fernandobrito/dbt-metabase | a1fa5a2c7c5e3cf12ead8806d39f6bd3a212fb83 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import Optional, Iterable, Union
@dataclass
class MetabaseConfig:
# Metabase Client
database: str
host: str
user: str
password: str
# Metabase additional connection opts
use_http: bool = False
verify: Union[str, bool] = True
# Me... | 24.451613 | 59 | 0.700528 | 90 | 758 | 5.811111 | 0.5 | 0.063098 | 0.086042 | 0.154876 | 0.208413 | 0.14914 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224274 | 758 | 30 | 60 | 25.266667 | 0.889456 | 0.124011 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.047619 | 0.095238 | 0 | 0.904762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1325914730cb3ee047b3e9ac93790891768376c5 | 4,269 | py | Python | nps/migrations/0013_auto_20180314_1805.py | jak0203/nps-dash | 9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f | [
"MIT"
] | null | null | null | nps/migrations/0013_auto_20180314_1805.py | jak0203/nps-dash | 9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f | [
"MIT"
] | 1 | 2018-03-19T04:08:10.000Z | 2018-03-19T04:08:10.000Z | nps/migrations/0013_auto_20180314_1805.py | jak0203/nps-dash | 9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f | [
"MIT"
] | null | null | null | # Generated by Django 2.0.3 on 2018-03-15 01:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nps', '0012_auto_20180314_1600'),
]
operations = [
migrations.CreateModel(
name='ClientAggregations',
fields=[
... | 36.177966 | 114 | 0.575076 | 352 | 4,269 | 6.724432 | 0.235795 | 0.060837 | 0.109844 | 0.126743 | 0.689058 | 0.651035 | 0.624842 | 0.624842 | 0.417406 | 0.34305 | 0 | 0.013955 | 0.311783 | 4,269 | 117 | 115 | 36.487179 | 0.791695 | 0.010541 | 0 | 0.738739 | 1 | 0 | 0.231644 | 0.054477 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009009 | 0 | 0.036036 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1328cd1366c0161d1070168617ce0f27d9f43e15 | 246 | py | Python | virtual/lib/python3.6/site-packages/mako/__init__.py | kenmutuma001/Blog | 6b19a77b71694bbe9f5e84207de46c68f87ebc5e | [
"Unlicense"
] | 1 | 2019-04-24T21:53:37.000Z | 2019-04-24T21:53:37.000Z | virtual/lib/python3.6/site-packages/mako/__init__.py | kenmutuma001/Blog | 6b19a77b71694bbe9f5e84207de46c68f87ebc5e | [
"Unlicense"
] | 5 | 2021-03-19T00:19:04.000Z | 2022-01-13T01:12:44.000Z | virtual/lib/python3.6/site-packages/mako/__init__.py | kenmutuma001/Blog | 6b19a77b71694bbe9f5e84207de46c68f87ebc5e | [
"Unlicense"
] | 2 | 2019-11-30T10:33:16.000Z | 2021-02-03T06:29:40.000Z | # mako/__init__.py
# Copyright (C) 2006-2016 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
__version__ = '1.0.9'
| 27.333333 | 78 | 0.743902 | 40 | 246 | 4.375 | 0.8 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052381 | 0.146341 | 246 | 8 | 79 | 30.75 | 0.780952 | 0.857724 | 0 | 0 | 0 | 0 | 0.172414 | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1338002c0bb58e1ef6c0115a4fcc0293761a19a5 | 764 | py | Python | example/first_example/window/inputWindow/view.py | suuperhu/Pyside2MVCFramework | c28bd0fbb6b53bb2cdad8d0723b4251fc93319d6 | [
"MIT"
] | 1 | 2021-03-11T13:34:41.000Z | 2021-03-11T13:34:41.000Z | example/first_example/window/inputWindow/view.py | suuperhu/Pyside2MVCFramework | c28bd0fbb6b53bb2cdad8d0723b4251fc93319d6 | [
"MIT"
] | null | null | null | example/first_example/window/inputWindow/view.py | suuperhu/Pyside2MVCFramework | c28bd0fbb6b53bb2cdad8d0723b4251fc93319d6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
# @SoftwareIDE : PyCharm2020Pro
# @ProjectName : PySide2MVCFramework
# @FileName : view.py
# @Author : 胡守杰
# @Email : 2839414139@qq.com
# @ZhFileDescription :
# @EnFileDescription :
"""
import os
from pyside2mvcframework.core.v... | 26.344828 | 84 | 0.649215 | 78 | 764 | 6.153846 | 0.679487 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030457 | 0.22644 | 764 | 28 | 85 | 27.285714 | 0.781726 | 0.352094 | 0 | 0 | 0 | 0 | 0.149897 | 0.082136 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.538462 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
135906a75c8644d17899cd5046a70589324b71a2 | 3,595 | py | Python | python/py3study/pytorch-lab/demo-cifar.py | sillyemperor/langstudy | 937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1 | [
"MIT"
] | null | null | null | python/py3study/pytorch-lab/demo-cifar.py | sillyemperor/langstudy | 937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1 | [
"MIT"
] | null | null | null | python/py3study/pytorch-lab/demo-cifar.py | sillyemperor/langstudy | 937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1 | [
"MIT"
] | null | null | null | import torch
import torchvision
import torchvision.transforms as transforms
import os.path
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
transform = transforms.Compose(
[transforms.ToTensor(),
transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])
root = os.path.join(BASE_DIR, '../data/')
trainset ... | 28.307087 | 75 | 0.585535 | 584 | 3,595 | 3.57363 | 0.292808 | 0.114998 | 0.036895 | 0.034499 | 0.106852 | 0.100144 | 0.054624 | 0.034499 | 0.034499 | 0.034499 | 0 | 0.28437 | 0.231154 | 3,595 | 126 | 76 | 28.531746 | 0.470695 | 0.465925 | 0 | 0.047619 | 0 | 0 | 0.004329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.285714 | 0 | 0 | 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 | 2 |
135ad256377f1febc7ff1ea7598a8c696743a758 | 165 | py | Python | publishtimer/__init__.py | paragguruji/publishtimer | b0b68d6c4d450a2cc22d29725e43c2a1261f0f74 | [
"BSD-2-Clause"
] | null | null | null | publishtimer/__init__.py | paragguruji/publishtimer | b0b68d6c4d450a2cc22d29725e43c2a1261f0f74 | [
"BSD-2-Clause"
] | null | null | null | publishtimer/__init__.py | paragguruji/publishtimer | b0b68d6c4d450a2cc22d29725e43c2a1261f0f74 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 28 15:28:24 2016
@author: Parag Guruji, paragguruji@gmail.com
"""
from .helpers import setup_env
done = setup_env() | 16.5 | 44 | 0.678788 | 26 | 165 | 4.230769 | 0.884615 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094203 | 0.163636 | 165 | 10 | 45 | 16.5 | 0.702899 | 0.630303 | 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 | 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 | 2 |
136a6f790e3bad7ef05103763b29d85ab9987e87 | 595 | py | Python | day22.py | p88h/aoc2017 | a929a8c0894559b0d7dd3d0b58c076295087f4c8 | [
"Unlicense"
] | 1 | 2021-12-26T21:28:47.000Z | 2021-12-26T21:28:47.000Z | day22.py | p88h/aoc2017 | a929a8c0894559b0d7dd3d0b58c076295087f4c8 | [
"Unlicense"
] | null | null | null | day22.py | p88h/aoc2017 | a929a8c0894559b0d7dd3d0b58c076295087f4c8 | [
"Unlicense"
] | null | null | null | import io
grid = {}
y = 0
x = 0
for l in io.open("day22.in").read().splitlines():
for x in range(len(l)):
grid[(y,x)] = l[x]
y += 1
y = y // 2
x = x // 2
dx = 0
dy = -1
r = 0
for iter in range(10000000):
if (y,x) not in grid or grid[(y,x)] == '.':
(dy, dx) = (-dx, dy)
grid[(y,x)] = ... | 19.833333 | 49 | 0.381513 | 104 | 595 | 2.182692 | 0.278846 | 0.220264 | 0.237885 | 0.132159 | 0.176211 | 0.176211 | 0.176211 | 0.176211 | 0.176211 | 0.176211 | 0 | 0.049351 | 0.352941 | 595 | 30 | 50 | 19.833333 | 0.54026 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0.034483 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
136e61a21e482a156b8b710f63c002d29a6f7812 | 2,136 | py | Python | books/model/Instrumentation.py | nudglabs/books-python-wrappers | 8844eca8fe681542644a70749b72a6dc4e48c171 | [
"MIT"
] | 9 | 2015-04-01T08:59:49.000Z | 2022-01-27T01:27:45.000Z | books/model/Instrumentation.py | nudglabs/books-python-wrappers | 8844eca8fe681542644a70749b72a6dc4e48c171 | [
"MIT"
] | 3 | 2020-05-14T04:22:22.000Z | 2021-08-06T11:19:03.000Z | books/model/Instrumentation.py | nudglabs/books-python-wrappers | 8844eca8fe681542644a70749b72a6dc4e48c171 | [
"MIT"
] | 11 | 2016-04-14T10:59:36.000Z | 2020-08-19T13:26:05.000Z | #$Id$
class Instrumentation:
"""This class is used tocreate object for instrumentation."""
def __init__(self):
"""Initialize parameters for Instrumentation object."""
self.query_execution_time = ''
self.request_handling_time = ''
self.response_write_time = ''
self.page_c... | 25.428571 | 67 | 0.627341 | 239 | 2,136 | 5.25523 | 0.121339 | 0.171975 | 0.171975 | 0.191083 | 0.43949 | 0.28742 | 0.28742 | 0.070064 | 0.070064 | 0 | 0 | 0 | 0.295412 | 2,136 | 83 | 68 | 25.73494 | 0.834552 | 0.348315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.409091 | false | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
136ff9b25221822f1896aad526fbb94d03b405cd | 4,887 | py | Python | pcf/particle/gcp/storage/storage.py | davidyum/Particle-Cloud-Framework | f6325a60a3838f86bd73bf4071438e12f9c68f8d | [
"Apache-2.0"
] | null | null | null | pcf/particle/gcp/storage/storage.py | davidyum/Particle-Cloud-Framework | f6325a60a3838f86bd73bf4071438e12f9c68f8d | [
"Apache-2.0"
] | null | null | null | pcf/particle/gcp/storage/storage.py | davidyum/Particle-Cloud-Framework | f6325a60a3838f86bd73bf4071438e12f9c68f8d | [
"Apache-2.0"
] | null | null | null | from pcf.core.gcp_resource import GCPResource
from pcf.core import State
import logging
from google.cloud import storage
from google.cloud import exceptions
logger = logging.getLogger(__name__)
class Storage(GCPResource):
"""
This is the implementation of Google's storage service.
"""
flavor = "stor... | 28.91716 | 104 | 0.602415 | 559 | 4,887 | 5.071556 | 0.227191 | 0.049383 | 0.044444 | 0.040212 | 0.364374 | 0.328042 | 0.304762 | 0.282892 | 0.271605 | 0.224339 | 0 | 0.005618 | 0.30796 | 4,887 | 168 | 105 | 29.089286 | 0.832643 | 0.329036 | 0 | 0.101695 | 0 | 0 | 0.014936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.237288 | false | 0.016949 | 0.084746 | 0 | 0.576271 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1372983b8db0190678e8ab88123c2241d2b934f3 | 797 | py | Python | keylime/migrations/versions/8da20383f6e1_extend_ip_field.py | kkaarreell/keylime | e12658bb6dc945b694e298b8ac337a204ab86ed2 | [
"Apache-2.0"
] | 18 | 2016-10-19T13:57:32.000Z | 2019-01-12T21:35:43.000Z | keylime/migrations/versions/8da20383f6e1_extend_ip_field.py | kkaarreell/keylime | e12658bb6dc945b694e298b8ac337a204ab86ed2 | [
"Apache-2.0"
] | 72 | 2019-01-24T10:12:59.000Z | 2019-04-17T11:07:16.000Z | keylime/migrations/versions/8da20383f6e1_extend_ip_field.py | kkaarreell/keylime | e12658bb6dc945b694e298b8ac337a204ab86ed2 | [
"Apache-2.0"
] | 10 | 2017-03-27T20:58:08.000Z | 2018-07-30T12:59:27.000Z | """extend_ip_field
Revision ID: 8da20383f6e1
Revises: eeb702f77d7d
Create Date: 2021-01-14 10:50:56.275257
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "8da20383f6e1"
down_revision = "eeb702f77d7d"
branch_labels = None
depends_on = None
def upgrade(engine_n... | 18.534884 | 105 | 0.72522 | 104 | 797 | 5.317308 | 0.557692 | 0.072333 | 0.061483 | 0.065099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07958 | 0.164366 | 797 | 42 | 106 | 18.97619 | 0.750751 | 0.180678 | 0 | 0.142857 | 0 | 0 | 0.127132 | 0.068217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.095238 | 0 | 0.380952 | 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 | 0 | 0 | 0 | 2 |
1373c11e16cd5b0b44349e8fb881270741a3ce25 | 1,657 | py | Python | ucsrb/migrations/0013_auto_20180710_2040.py | Ecotrust/ucsrb | 29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12 | [
"MIT"
] | 1 | 2018-07-31T00:58:30.000Z | 2018-07-31T00:58:30.000Z | ucsrb/migrations/0013_auto_20180710_2040.py | Ecotrust/ucsrb | 29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12 | [
"MIT"
] | 264 | 2017-10-24T23:54:52.000Z | 2021-10-16T15:40:47.000Z | ucsrb/migrations/0013_auto_20180710_2040.py | Ecotrust/ucsrb | 29d97cf1f21537aaf24f38e7dedc7c8cfccf1f12 | [
"MIT"
] | 1 | 2019-07-16T06:37:45.000Z | 2019-07-16T06:37:45.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-07-10 20:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ucsrb', '0012_auto_20180710_1249'),
]
operations = [
migrations.AddField(
... | 32.490196 | 72 | 0.620398 | 149 | 1,657 | 6.637584 | 0.369128 | 0.127401 | 0.162791 | 0.191102 | 0.696663 | 0.662285 | 0.662285 | 0.662285 | 0.601618 | 0.530839 | 0 | 0.027661 | 0.280024 | 1,657 | 50 | 73 | 33.14 | 0.801341 | 0.041038 | 0 | 0.604651 | 1 | 0 | 0.240227 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.116279 | 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 | 0 | 0 | 0 | 2 |
137eb4fb88a280d57e223383a1252ee199ec52e5 | 14,714 | py | Python | bvs/background_verification/report/checks_status_report/checks_status_report.py | vhrspvl/vhrs-bvs | 56667039d9cc09ad0b092e5e6c5dd6598ff41e7b | [
"MIT"
] | 1 | 2021-08-19T11:16:47.000Z | 2021-08-19T11:16:47.000Z | bvs/background_verification/report/checks_status_report/checks_status_report.py | vhrspvl/vhrs-bvs | 56667039d9cc09ad0b092e5e6c5dd6598ff41e7b | [
"MIT"
] | null | null | null | bvs/background_verification/report/checks_status_report/checks_status_report.py | vhrspvl/vhrs-bvs | 56667039d9cc09ad0b092e5e6c5dd6598ff41e7b | [
"MIT"
] | 4 | 2018-03-21T05:57:54.000Z | 2020-11-26T00:37:29.000Z | # Copyright (c) 2013, VHRS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _, msgprint
from frappe.utils import (cint, cstr, date_diff, flt, getdate, money_in_words,
nowdate, rounded, today)
from datet... | 41.68272 | 130 | 0.436387 | 1,387 | 14,714 | 4.457823 | 0.075703 | 0.051431 | 0.068575 | 0.140223 | 0.766133 | 0.756914 | 0.673783 | 0.633673 | 0.633673 | 0.633673 | 0 | 0.026293 | 0.439106 | 14,714 | 352 | 131 | 41.801136 | 0.722889 | 0.006049 | 0 | 0.58651 | 0 | 0 | 0.198529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008798 | false | 0 | 0.02346 | 0 | 0.041056 | 0.002933 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 2 |
13842b8b9629fa8e84e1baad24f225b91291bacf | 6,553 | py | Python | hordak/migrations/0011_auto_20170225_2222.py | CodeBrew-LTD/django-hordak | efdfe503bf38b0a283790c5b4d27bd6bb28155e4 | [
"MIT"
] | 187 | 2016-12-12T10:58:11.000Z | 2022-03-27T08:14:19.000Z | hordak/migrations/0011_auto_20170225_2222.py | CodeBrew-LTD/django-hordak | efdfe503bf38b0a283790c5b4d27bd6bb28155e4 | [
"MIT"
] | 62 | 2016-12-10T00:12:47.000Z | 2022-03-16T09:23:05.000Z | hordak/migrations/0011_auto_20170225_2222.py | CodeBrew-LTD/django-hordak | efdfe503bf38b0a283790c5b4d27bd6bb28155e4 | [
"MIT"
] | 47 | 2016-12-12T11:07:31.000Z | 2022-03-15T20:30:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-02-25 22:22
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import django_smalluuid.models
class Migration(migrations.Migration):
dependencies = [("hordak",... | 40.202454 | 100 | 0.327789 | 504 | 6,553 | 4.168651 | 0.248016 | 0.012375 | 0.009995 | 0.014279 | 0.34079 | 0.34079 | 0.34079 | 0.302713 | 0.302713 | 0.302713 | 0 | 0.014318 | 0.520372 | 6,553 | 162 | 101 | 40.450617 | 0.654152 | 0.010377 | 0 | 0.329032 | 1 | 0 | 0.196544 | 0.017741 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.116129 | 0 | 0.135484 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
13847a22eab74e6541bf593e5d68249f802e533f | 1,398 | py | Python | redactor/utils.py | danlgz/django-wysiwyg-redactor | 755927ea2cb9db203c4a002b4da7ebfbf989dd64 | [
"BSD-3-Clause"
] | null | null | null | redactor/utils.py | danlgz/django-wysiwyg-redactor | 755927ea2cb9db203c4a002b4da7ebfbf989dd64 | [
"BSD-3-Clause"
] | null | null | null | redactor/utils.py | danlgz/django-wysiwyg-redactor | 755927ea2cb9db203c4a002b4da7ebfbf989dd64 | [
"BSD-3-Clause"
] | 2 | 2021-01-27T21:51:38.000Z | 2021-03-10T22:31:19.000Z | from django.core.exceptions import ImproperlyConfigured
from importlib import import_module
try:
from django.utils.encoding import force_text
except ImportError:
from django.utils.encoding import force_unicode as force_text
from django.utils.functional import Promise
import json
def import_class(path):
... | 24.964286 | 71 | 0.670243 | 170 | 1,398 | 5.364706 | 0.376471 | 0.04386 | 0.049342 | 0.050439 | 0.074561 | 0.074561 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.250358 | 1,398 | 55 | 72 | 25.418182 | 0.866412 | 0 | 0 | 0.146341 | 0 | 0 | 0.05794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.390244 | 0.02439 | 0.658537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
139025981058af435a2b6721ba93a59e2cb0b119 | 1,296 | py | Python | pushpluck/base.py | ejconlon/pushpluck | 4e5b8bcff6fe3955e8f25638268569f901815b5a | [
"MIT"
] | null | null | null | pushpluck/base.py | ejconlon/pushpluck | 4e5b8bcff6fe3955e8f25638268569f901815b5a | [
"MIT"
] | 2 | 2021-04-02T03:54:12.000Z | 2021-04-23T18:23:03.000Z | pushpluck/base.py | ejconlon/pushpluck | 4e5b8bcff6fe3955e8f25638268569f901815b5a | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from dataclasses import dataclass
from typing import Any, TypeVar
X = TypeVar('X')
class Closeable(metaclass=ABCMeta):
@abstractmethod
def close(self) -> None:
""" Close this to free resources and deny further use. """
raise NotImplementedError()
cla... | 24.923077 | 90 | 0.657407 | 158 | 1,296 | 5.291139 | 0.518987 | 0.075359 | 0.07177 | 0.078947 | 0.093301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00203 | 0.239969 | 1,296 | 51 | 91 | 25.411765 | 0.846701 | 0.29784 | 0 | 0.153846 | 0 | 0 | 0.075029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.115385 | 0.038462 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
139141d96476a62cf2a8695abfe754ae15ba668e | 2,057 | py | Python | test/cuberead/highres/test_default_high_res.py | CAB-LAB/cube-performance-test | 0ca7dbb56b2937004fb63f8aafdff21fb76263d4 | [
"MIT"
] | null | null | null | test/cuberead/highres/test_default_high_res.py | CAB-LAB/cube-performance-test | 0ca7dbb56b2937004fb63f8aafdff21fb76263d4 | [
"MIT"
] | null | null | null | test/cuberead/highres/test_default_high_res.py | CAB-LAB/cube-performance-test | 0ca7dbb56b2937004fb63f8aafdff21fb76263d4 | [
"MIT"
] | null | null | null | import time
import pytest
from test import config
from test.cube_utils import CubeUtils
ITERATIONS_NUM = getattr(config, 'iterations_num', 1)
ROUNDS_NUM = getattr(config, 'rounds_num', 10)
class TestDefaultHighRes:
@pytest.fixture(scope="class", autouse=True)
def cube_default(self):
cube_utils = Cu... | 33.177419 | 114 | 0.684492 | 246 | 2,057 | 5.479675 | 0.247967 | 0.081602 | 0.051929 | 0.071217 | 0.71365 | 0.71365 | 0.71365 | 0.65727 | 0.594955 | 0.594955 | 0 | 0.035779 | 0.198347 | 2,057 | 61 | 115 | 33.721311 | 0.781686 | 0.045698 | 0 | 0.363636 | 0 | 0 | 0.128323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
139180db13c406acb2f2910c85de0dfd5a8d2472 | 5,545 | py | Python | tests/components/test_dialogue_flow.py | dyoshiha/mindmeld | 95f0e8482594f00040766a2ee687e9c9338f5a74 | [
"Apache-2.0"
] | 1 | 2019-12-12T12:44:33.000Z | 2019-12-12T12:44:33.000Z | tests/components/test_dialogue_flow.py | AravindR7/mindmeld | 470bba73ac56b6388146212ddaf697097e81cec3 | [
"Apache-2.0"
] | null | null | null | tests/components/test_dialogue_flow.py | AravindR7/mindmeld | 470bba73ac56b6388146212ddaf697097e81cec3 | [
"Apache-2.0"
] | null | null | null | import pytest
from mindmeld.components import Conversation
def assert_reply(directives, templates, *, start_index=0, slots=None):
"""Asserts that the provided directives contain the specified reply
Args:
directives (list[dict[str, dict]]): list of directives returned by application
templates ... | 39.326241 | 99 | 0.741389 | 801 | 5,545 | 4.813983 | 0.184769 | 0.079876 | 0.046681 | 0.062241 | 0.727438 | 0.684647 | 0.659751 | 0.659751 | 0.639523 | 0.639523 | 0 | 0.003245 | 0.166456 | 5,545 | 140 | 100 | 39.607143 | 0.831026 | 0.116501 | 0 | 0.569892 | 0 | 0 | 0.164327 | 0.030347 | 0 | 0 | 0 | 0 | 0.397849 | 1 | 0.129032 | false | 0.064516 | 0.021505 | 0 | 0.172043 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
139ca9c9fd0f3cc444f7df8ee3874d848532508e | 616 | py | Python | test/library/draft/DataFrames/psahabu/AddSeries.py | jhh67/chapel | f041470e9b88b5fc4914c75aa5a37efcb46aa08f | [
"ECL-2.0",
"Apache-2.0"
] | 1,602 | 2015-01-06T11:26:31.000Z | 2022-03-30T06:17:21.000Z | test/library/draft/DataFrames/psahabu/AddSeries.py | jhh67/chapel | f041470e9b88b5fc4914c75aa5a37efcb46aa08f | [
"ECL-2.0",
"Apache-2.0"
] | 11,789 | 2015-01-05T04:50:15.000Z | 2022-03-31T23:39:19.000Z | test/library/draft/DataFrames/psahabu/AddSeries.py | jhh67/chapel | f041470e9b88b5fc4914c75aa5a37efcb46aa08f | [
"ECL-2.0",
"Apache-2.0"
] | 498 | 2015-01-08T18:58:18.000Z | 2022-03-20T15:37:45.000Z | import pandas as pd
I = ["A", "B", "C", "D", "E"]
oneDigit = pd.Series([1, 2, 3, 4, 5], pd.Index(I))
twoDigit = pd.Series([10, 20, 30, 40, 50], pd.Index(I))
print "addends:"
print oneDigit
print twoDigit
print
print "sum:"
print oneDigit + twoDigit
print
I2 = ["A", "B", "C"]
I3 = ["B", "C", "D", "E"]
X = pd.Series(... | 16.210526 | 55 | 0.576299 | 111 | 616 | 3.198198 | 0.351351 | 0.135211 | 0.143662 | 0.152113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055777 | 0.185065 | 616 | 37 | 56 | 16.648649 | 0.651394 | 0 | 0 | 0.366667 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
13a51bb2dfcddb562cef50eb73654bc85d1b9f01 | 666 | py | Python | Plugins/Aspose.Email Java for Python/tests/ProgrammingEmail/ManageAttachments/ManageAttachments.py | aspose-email/Aspose.Email-for-Java | cf4567e54f7979e7296c99bcae2c6477385d7735 | [
"MIT"
] | 24 | 2016-07-29T03:57:35.000Z | 2022-01-18T23:42:08.000Z | Plugins/Aspose.Email Java for Python/tests/ProgrammingEmail/ManageAttachments/ManageAttachments.py | asposeemail/Aspose_Email_Java | cf4567e54f7979e7296c99bcae2c6477385d7735 | [
"MIT"
] | 6 | 2017-07-24T13:08:43.000Z | 2022-01-01T21:51:25.000Z | Plugins/Aspose.Email Java for Python/tests/ProgrammingEmail/ManageAttachments/ManageAttachments.py | aspose-email/Aspose.Email-for-Java | cf4567e54f7979e7296c99bcae2c6477385d7735 | [
"MIT"
] | 25 | 2016-04-09T07:24:12.000Z | 2021-12-19T13:54:21.000Z | # To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
#if __name__ == "__main__":
# print "Hello World"
from ProgrammingEmail import ManageAttachments
import jpype
import os.path
asposeapispath... | 31.714286 | 94 | 0.735736 | 90 | 666 | 5.355556 | 0.622222 | 0.062241 | 0.049793 | 0.049793 | 0.095436 | 0.095436 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129129 | 666 | 21 | 95 | 31.714286 | 0.831034 | 0.345345 | 0 | 0 | 0 | 0 | 0.25814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
13a612e58dbc2d528c1a7b3b41902e48fed28775 | 739 | py | Python | HRMS/app/__init__.py | freestyletime/HumanResourceManagement | 4ec7f453fdae28d1a412d740849c9ee186757df8 | [
"MIT"
] | 1 | 2021-12-24T18:47:20.000Z | 2021-12-24T18:47:20.000Z | HRMS/app/__init__.py | freestyletime/HumanResourceManagement | 4ec7f453fdae28d1a412d740849c9ee186757df8 | [
"MIT"
] | null | null | null | HRMS/app/__init__.py | freestyletime/HumanResourceManagement | 4ec7f453fdae28d1a412d740849c9ee186757df8 | [
"MIT"
] | null | null | null | # 初始化模块
from config import Config
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
# 数据库操作对象
db = SQLAlchemy()
# 创建app
def create_app():
# flask操作对象
app = Flask(__name__)
# 通过配置文件读取并应用配置
app.config.from_object(Config)
# 初始化数据库
db.init_app(app)
# 员工管理子系统
from app.view i... | 19.972973 | 39 | 0.705007 | 89 | 739 | 5.707865 | 0.370787 | 0.068898 | 0.108268 | 0.167323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230041 | 739 | 36 | 40 | 20.527778 | 0.892794 | 0.133965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.421053 | 0 | 0.526316 | 0.263158 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
13adaa6947a03ff103153b1b8c14da5ac9aaa4b0 | 392 | py | Python | actors/models.py | rngallen/beyond_basics | 2cfb7d97699a733251e68357a70eada3d0278680 | [
"MIT"
] | null | null | null | actors/models.py | rngallen/beyond_basics | 2cfb7d97699a733251e68357a70eada3d0278680 | [
"MIT"
] | null | null | null | actors/models.py | rngallen/beyond_basics | 2cfb7d97699a733251e68357a70eada3d0278680 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _
# Create your models here.
class Actor(models.Model):
name = models.CharField(_("name"), max_length=200)
# if is_star he/she will be directed to hollywood else directed to commercial
is_star = models.BooleanField(_("is s... | 28 | 81 | 0.729592 | 56 | 392 | 4.910714 | 0.732143 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.181122 | 392 | 13 | 82 | 30.153846 | 0.847352 | 0.255102 | 0 | 0 | 0 | 0 | 0.041522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
13b1070ba0b79397d1d29eb7190ddb42cc92bb2c | 678 | py | Python | LeetCode/2019-08-03-384-Shuffle-an-Array.py | HeRuivio/-Algorithm | 1fbe6256630758fda3af68f469471ee246730afc | [
"MIT"
] | 5 | 2018-10-30T05:07:32.000Z | 2019-06-18T08:11:38.000Z | LeetCode/2019-08-03-384-Shuffle-an-Array.py | HeRuivio/-Algorithm | 1fbe6256630758fda3af68f469471ee246730afc | [
"MIT"
] | 1 | 2020-05-09T09:05:16.000Z | 2020-05-09T09:05:16.000Z | LeetCode/2019-08-03-384-Shuffle-an-Array.py | HeRuivio/-Algorithm | 1fbe6256630758fda3af68f469471ee246730afc | [
"MIT"
] | 2 | 2020-05-09T09:02:22.000Z | 2020-12-09T13:23:00.000Z | # -*- coding: utf-8 -*-
# @Author: 何睿
# @Create Date: 2019-08-03 10:48:30
# @Last Modified by: 何睿
# @Last Modified time: 2019-08-03 10:53:15
import copy
import random
from typing import List
class Solution:
def __init__(self, nums: List[int]):
self.shuffle_ = nums
self.orig... | 21.870968 | 69 | 0.581121 | 87 | 678 | 4.448276 | 0.551724 | 0.054264 | 0.041344 | 0.05168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061441 | 0.303835 | 678 | 30 | 70 | 22.6 | 0.758475 | 0.376106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
13ca207f4f2fb0793c69bd95418294b71cd89e2c | 467 | py | Python | Season 01 - Intro to Python/Episode 13 - Join.py | Pythobit/Python-tutorial | b0743eaa9c237c3578131ead1b3f2c295f11b7ee | [
"MIT"
] | 3 | 2021-02-19T18:33:00.000Z | 2021-08-03T14:56:50.000Z | Season 01 - Intro to Python/Episode 13 - Join.py | barawalojas/Python-tutorial | 3f4b2b073e421888b3d62ff634658317d9abcb9b | [
"MIT"
] | 1 | 2021-07-10T14:37:57.000Z | 2021-07-20T09:51:39.000Z | Season 01 - Intro to Python/Episode 13 - Join.py | barawalojas/Python-tutorial | 3f4b2b073e421888b3d62ff634658317d9abcb9b | [
"MIT"
] | 1 | 2021-08-02T05:39:38.000Z | 2021-08-02T05:39:38.000Z | # 13. Join
# it allows to print list a bit better
friends = ['Pythobit','boy','Pythoman']
print(f'My friends are {friends}.') # Output - My friends are ['Pythobit', 'boy', 'Pythoman'].
# So, the Output needs to be a bit clearer.
friends = ['Pythobit','boy','Pythoman']
friend = ', '.join(friends)
print(f'My friend... | 38.916667 | 98 | 0.663812 | 69 | 467 | 4.492754 | 0.536232 | 0.141935 | 0.245161 | 0.167742 | 0.354839 | 0.23871 | 0.23871 | 0 | 0 | 0 | 0 | 0.005249 | 0.184154 | 467 | 11 | 99 | 42.454545 | 0.808399 | 0.56531 | 0 | 0.4 | 0 | 0 | 0.44898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
13f7ddb9a41846fb5799958db3fabf2ed4eeb64a | 3,105 | py | Python | vaccine_card/logistic/models.py | Unanimad/lais_046_2020_etapa_2 | 630efc6b25a580be44b6cd50be6744a01221a2c4 | [
"Apache-2.0"
] | null | null | null | vaccine_card/logistic/models.py | Unanimad/lais_046_2020_etapa_2 | 630efc6b25a580be44b6cd50be6744a01221a2c4 | [
"Apache-2.0"
] | null | null | null | vaccine_card/logistic/models.py | Unanimad/lais_046_2020_etapa_2 | 630efc6b25a580be44b6cd50be6744a01221a2c4 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from vaccine_card.vaccination.models import Vaccine
class State(models.Model):
name = models.CharField(max_length=20, verbose_name='Nome')
class Meta:
verbose_name = 'Unidade Federativa'
def __str__(self):
return self.name
class City(models.Model):
nam... | 36.104651 | 111 | 0.738808 | 386 | 3,105 | 5.681347 | 0.23057 | 0.200638 | 0.095759 | 0.109439 | 0.557684 | 0.475604 | 0.428181 | 0.246238 | 0.207934 | 0.207934 | 0 | 0.007648 | 0.15781 | 3,105 | 85 | 112 | 36.529412 | 0.830975 | 0.03124 | 0 | 0.314815 | 0 | 0 | 0.091151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0.074074 | 0.851852 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b9139bb412d2bf193e04d2282744a0d621a61a94 | 2,413 | py | Python | withings_api/const.py | tiloc/python_withings_api | 64c9706ab70c93e4c54cc843a778ecd3f9960980 | [
"MIT"
] | null | null | null | withings_api/const.py | tiloc/python_withings_api | 64c9706ab70c93e4c54cc843a778ecd3f9960980 | [
"MIT"
] | null | null | null | withings_api/const.py | tiloc/python_withings_api | 64c9706ab70c93e4c54cc843a778ecd3f9960980 | [
"MIT"
] | null | null | null | """Constant values."""
STATUS_SUCCESS = (0,)
STATUS_AUTH_FAILED = (100, 101, 102, 200, 401)
STATUS_INVALID_PARAMS = (
201,
202,
203,
204,
205,
206,
207,
208,
209,
210,
211,
212,
213,
216,
217,
218,
220,
221,
223,
225,
227,
228,
... | 9.690763 | 50 | 0.390385 | 269 | 2,413 | 3.449814 | 0.973978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.64227 | 0.496063 | 2,413 | 248 | 51 | 9.729839 | 0.120888 | 0.006631 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 | 2 |
b915c0a9f384ec67869ab91a6425fc1e66fbe2a2 | 2,698 | py | Python | tests/bugs/core_6489_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_6489_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_6489_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | #coding:utf-8
#
# id: bugs.core_6489
# title: User without ALTER ANY ROLE privilege can use COMMENT ON ROLE
# decription:
# Test creates two users: one of them has no any rights, second is granted with 'alter any role' privilege.
# First user ('junior') must not hav... | 32.902439 | 124 | 0.648258 | 396 | 2,698 | 4.255051 | 0.368687 | 0.052226 | 0.049852 | 0.04273 | 0.208902 | 0.164392 | 0.047478 | 0.047478 | 0.047478 | 0.047478 | 0 | 0.066929 | 0.24685 | 2,698 | 81 | 125 | 33.308642 | 0.762303 | 0.316901 | 0 | 0.222222 | 0 | 0.022222 | 0.641955 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 1 | 0.022222 | false | 0.111111 | 0.044444 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b92725db4e0f08b5ebf9656b39a1e567c20d5ffb | 150 | py | Python | A/116A.py | johnggo/Codeforces-Solutions | 4127ae6f72294b5781fb94c42b69cfef570aae42 | [
"MIT"
] | 1 | 2020-08-25T19:59:11.000Z | 2020-08-25T19:59:11.000Z | A/116A.py | johnggo/Codeforces-Solutions | 4127ae6f72294b5781fb94c42b69cfef570aae42 | [
"MIT"
] | null | null | null | A/116A.py | johnggo/Codeforces-Solutions | 4127ae6f72294b5781fb94c42b69cfef570aae42 | [
"MIT"
] | null | null | null | # Time: 310 ms
# Memory: 1664 KB
n = int(input())
e = 0
s = 0
for i in range(n):
s =s- eval(input().replace(' ', '-'))
e = max(e, s)
print(e)
| 15 | 41 | 0.506667 | 29 | 150 | 2.62069 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.26 | 150 | 9 | 42 | 16.666667 | 0.603604 | 0.186667 | 0 | 0 | 0 | 0 | 0.016807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b934ce47dae53d305023f829683b8ba6f625367b | 1,362 | py | Python | packages/merlin/protocols/PrefixLayout.py | pyre/pyre | 0f903836f52450bf81216c5dfdfdfebb16090177 | [
"BSD-3-Clause"
] | 25 | 2018-04-23T01:45:39.000Z | 2021-12-10T06:01:23.000Z | packages/merlin/protocols/PrefixLayout.py | pyre/pyre | 0f903836f52450bf81216c5dfdfdfebb16090177 | [
"BSD-3-Clause"
] | 53 | 2018-05-31T04:55:00.000Z | 2021-10-07T21:41:32.000Z | packages/merlin/protocols/PrefixLayout.py | pyre/pyre | 0f903836f52450bf81216c5dfdfdfebb16090177 | [
"BSD-3-Clause"
] | 12 | 2018-04-23T22:50:40.000Z | 2022-02-20T17:27:23.000Z | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis <michael.aivazis@para-sim.com>
# (c) 1998-2021 all rights reserved
# support
import merlin
# the manager of intermediate and final build products
class PrefixLayout(merlin.protocol, family="merlin.layouts.prefix"):
"""
The manager of the all build products, b... | 23.482759 | 82 | 0.668135 | 161 | 1,362 | 5.645963 | 0.565217 | 0.158416 | 0.19802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008555 | 0.227606 | 1,362 | 57 | 83 | 23.894737 | 0.855513 | 0.262115 | 0 | 0 | 0 | 0 | 0.265413 | 0.021944 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b9514946d8170f94e426e1cbf736a481d8427c11 | 761 | py | Python | src/utils.py | f-grimaldi/explain_ML | 00892675be32bebd023b274270ccb05b798fb388 | [
"MIT"
] | 1 | 2020-08-03T08:23:31.000Z | 2020-08-03T08:23:31.000Z | src/utils.py | f-grimaldi/explain_ML | 00892675be32bebd023b274270ccb05b798fb388 | [
"MIT"
] | null | null | null | src/utils.py | f-grimaldi/explain_ML | 00892675be32bebd023b274270ccb05b798fb388 | [
"MIT"
] | null | null | null | from matplotlib import colors
import numpy as np
class SaveOutput:
def __init__(self):
self.outputs = []
def __call__(self, module, module_in, module_out):
self.outputs.append(module_out)
def clear(self):
self.outputs = []
class MidpointNormalize(colors.Normalize):
def __init... | 31.708333 | 89 | 0.659658 | 104 | 761 | 4.596154 | 0.480769 | 0.066946 | 0.046025 | 0.079498 | 0.112971 | 0.112971 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226018 | 761 | 23 | 90 | 33.086957 | 0.811545 | 0.107753 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b959064c37513b8eabaf61132941fe714e3a8dbc | 1,833 | py | Python | tests/mocks.py | davla/i3-live-tree | 8dc3917afdd09f53f7cf39653c2bf12cb0200983 | [
"MIT"
] | 1 | 2021-07-22T09:04:46.000Z | 2021-07-22T09:04:46.000Z | tests/mocks.py | davla/i3-live-tree | 8dc3917afdd09f53f7cf39653c2bf12cb0200983 | [
"MIT"
] | null | null | null | tests/mocks.py | davla/i3-live-tree | 8dc3917afdd09f53f7cf39653c2bf12cb0200983 | [
"MIT"
] | null | null | null | from unittest.mock import MagicMock, Mock
from i3ipc.aio import Con
import i3_live_tree.tree_serializer # noqa: F401
class MockConSerializer(Mock, Con):
"""Mock a generic i3ipc.aio.Con for serialization purposes
This Mock is meant to ease testing of i3ipc.aio.Con serialization methods,
which are mokey... | 30.55 | 78 | 0.67485 | 243 | 1,833 | 4.958848 | 0.390947 | 0.046473 | 0.045643 | 0.037344 | 0.122822 | 0.041494 | 0 | 0 | 0 | 0 | 0 | 0.010714 | 0.236225 | 1,833 | 59 | 79 | 31.067797 | 0.85 | 0.46263 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.125 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b95e87663683cd1ca4cf5da88872ac29da6e83c7 | 1,177 | py | Python | genesis/project.py | genialis/genesis-genapi | dfe9bcc8b332a8b9873db4ab9994b0cc10eb209a | [
"Apache-2.0"
] | 3 | 2020-01-24T17:03:23.000Z | 2021-03-16T03:20:31.000Z | genesis/project.py | genialis/genesis-genapi | dfe9bcc8b332a8b9873db4ab9994b0cc10eb209a | [
"Apache-2.0"
] | 1 | 2018-02-15T19:33:00.000Z | 2018-02-15T19:33:00.000Z | genesis/project.py | genialis/genesis-genapi | dfe9bcc8b332a8b9873db4ab9994b0cc10eb209a | [
"Apache-2.0"
] | 6 | 2015-05-27T10:14:46.000Z | 2021-01-01T06:35:40.000Z | """Project"""
from __future__ import absolute_import, division, print_function, unicode_literals
class GenProject(object):
"""Genesais project annotation."""
def __init__(self, data, gencloud):
for field in data:
setattr(self, field, data[field])
self.gencloud = gencloud
... | 30.973684 | 84 | 0.619371 | 154 | 1,177 | 4.564935 | 0.383117 | 0.051209 | 0.025605 | 0.065434 | 0.093883 | 0.093883 | 0.093883 | 0 | 0 | 0 | 0 | 0 | 0.246389 | 1,177 | 37 | 85 | 31.810811 | 0.792559 | 0.135939 | 0 | 0.090909 | 0 | 0 | 0.0555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.045455 | 0.090909 | 0.545455 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b970d836b7397be4bc4d63762c0eec8adfb90a91 | 611 | py | Python | source/monkeyPatches/__init__.py | lukaszgo1/nvda | 38a2efd1e1bff7db4471cb7afa03ab1590b7adef | [
"bzip2-1.0.6"
] | 19 | 2016-05-11T05:15:31.000Z | 2022-03-17T12:40:10.000Z | source/monkeyPatches/__init__.py | lukaszgo1/nvda | 38a2efd1e1bff7db4471cb7afa03ab1590b7adef | [
"bzip2-1.0.6"
] | 307 | 2015-08-27T11:22:33.000Z | 2022-03-29T10:43:34.000Z | source/monkeyPatches/__init__.py | lukaszgo1/nvda | 38a2efd1e1bff7db4471cb7afa03ab1590b7adef | [
"bzip2-1.0.6"
] | 14 | 2016-03-28T07:31:49.000Z | 2022-03-30T04:56:35.000Z | # A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2021 NV Access Limited
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.
from . import wxMonkeyPatches
applyWxMonkeyPatches = wxMonkeyPatches.apply
def applyMonkeyPatches():
# Apply several mon... | 30.55 | 86 | 0.761047 | 75 | 611 | 6.146667 | 0.773333 | 0.065076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020243 | 0.191489 | 611 | 19 | 87 | 32.157895 | 0.912955 | 0.605565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b97c828450c34038ee92e089e3f2b951d2113017 | 903 | py | Python | nipype/interfaces/spm/__init__.py | felixsc1/nipype | e722d6170593583f16ddfcb95473e5d30b5f1d7c | [
"Apache-2.0"
] | 8 | 2019-05-29T09:38:30.000Z | 2021-01-20T03:36:59.000Z | nipype/interfaces/spm/__init__.py | felixsc1/nipype | e722d6170593583f16ddfcb95473e5d30b5f1d7c | [
"Apache-2.0"
] | 12 | 2021-03-09T03:01:16.000Z | 2022-03-11T23:59:36.000Z | nipype/interfaces/spm/__init__.py | felixsc1/nipype | e722d6170593583f16ddfcb95473e5d30b5f1d7c | [
"Apache-2.0"
] | 1 | 2020-07-17T12:49:49.000Z | 2020-07-17T12:49:49.000Z | # -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""Top-level namespace for spm."""
from .base import (Info, SPMCommand, logger, no_spm, scans_for_fname,
scans_for_fnames)
from .preprocess import (FieldMap, Slic... | 53.117647 | 77 | 0.653378 | 82 | 903 | 7.134146 | 0.804878 | 0.02735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014837 | 0.253599 | 903 | 16 | 78 | 56.4375 | 0.853116 | 0.178295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b992a4ec960bcf3e39ba5a1bb6a8cd2e68be293e | 1,987 | py | Python | wexapi/models/ticker.py | madmis/wexapi | f5b1b9b566f767bca7d8fad1f08c3d1bca42355a | [
"MIT"
] | 3 | 2018-06-08T12:45:04.000Z | 2018-08-02T11:09:11.000Z | wexapi/models/ticker.py | madmis/wexapi | f5b1b9b566f767bca7d8fad1f08c3d1bca42355a | [
"MIT"
] | null | null | null | wexapi/models/ticker.py | madmis/wexapi | f5b1b9b566f767bca7d8fad1f08c3d1bca42355a | [
"MIT"
] | null | null | null | from decimal import Decimal
class Ticker(object):
def __init__(
self,
high: float,
low: float,
avg: float,
vol: float,
vol_cur: int,
last: float,
buy: float,
sell: float,
updated: int,
):
... | 20.27551 | 38 | 0.545546 | 234 | 1,987 | 4.504274 | 0.102564 | 0.093928 | 0.129032 | 0.159393 | 0.158444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.351283 | 1,987 | 97 | 39 | 20.484536 | 0.817688 | 0 | 0 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246753 | false | 0 | 0.012987 | 0.116883 | 0.38961 | 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 | 0 | 0 | 0 | 2 |
b9991711cbe60fa3459b0fb4cb64d023132610e8 | 896 | py | Python | accounts/admin.py | GuilhemN/site-interludes | 69873810d5b0168aa57277ba51805117e6c53874 | [
"MIT"
] | null | null | null | accounts/admin.py | GuilhemN/site-interludes | 69873810d5b0168aa57277ba51805117e6c53874 | [
"MIT"
] | 1 | 2022-03-24T10:41:10.000Z | 2022-03-24T12:39:30.000Z | accounts/admin.py | GuilhemN/site-interludes | 69873810d5b0168aa57277ba51805117e6c53874 | [
"MIT"
] | 1 | 2022-03-23T22:30:12.000Z | 2022-03-23T22:30:12.000Z | from django.contrib import admin
from django.contrib.auth.models import Group
from accounts.models import EmailUser
from shared.admin import ExportCsvMixin
# no need for groups - we only have regular users and superusers
admin.site.unregister(Group)
@admin.register(EmailUser)
class EmailUserAdmin(ExportCsvMixin, adm... | 37.333333 | 106 | 0.753348 | 117 | 896 | 5.529915 | 0.547009 | 0.037094 | 0.060278 | 0.078825 | 0.190108 | 0.190108 | 0.108192 | 0.108192 | 0 | 0 | 0 | 0.003769 | 0.111607 | 896 | 23 | 107 | 38.956522 | 0.809045 | 0.135045 | 0 | 0 | 0 | 0 | 0.3329 | 0.029909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.235294 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
b9a529f9f36fb2cce0a38f16148b6bc2117ab033 | 2,655 | py | Python | tests/test_bishop_generate.py | otaviocarvalho/chess-negamax | 21f1066611e581dac3257d3f46c71ca2b09b5964 | [
"MIT"
] | 6 | 2015-04-04T15:58:29.000Z | 2019-04-07T11:45:02.000Z | tests/test_bishop_generate.py | otaviocarvalho/chess-negamax | 21f1066611e581dac3257d3f46c71ca2b09b5964 | [
"MIT"
] | 1 | 2015-04-27T19:02:06.000Z | 2015-04-27T19:02:06.000Z | tests/test_bishop_generate.py | otaviocarvalho/chess-negamax | 21f1066611e581dac3257d3f46c71ca2b09b5964 | [
"MIT"
] | 3 | 2015-10-04T00:22:17.000Z | 2019-04-07T11:44:56.000Z | import unittest
from .helpers import StubBoard, StubPiece, C, WHITE, BLACK
class TestBishopGenerate(unittest.TestCase):
def get_bishop(self, board, team, position):
from chess.models import Bishop
return Bishop(board, team, position)
def compare_list(self, expected, results):
compared ... | 30.872093 | 58 | 0.581921 | 304 | 2,655 | 4.976974 | 0.230263 | 0.052875 | 0.058163 | 0.075347 | 0.678123 | 0.643754 | 0.643754 | 0.643754 | 0.643754 | 0.643754 | 0 | 0.017196 | 0.277213 | 2,655 | 86 | 59 | 30.872093 | 0.771235 | 0 | 0 | 0.492308 | 1 | 0 | 0.021837 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 1 | 0.107692 | false | 0 | 0.046154 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b9b4c8dedee4c99c1bae0987e46ca8c83899e4d8 | 1,435 | py | Python | icenews/api_important_words.py | sverrirab/icenews | 10a5e13d4dcd5e95f746c4fec9821b4b48fa440e | [
"Apache-2.0"
] | 4 | 2019-04-25T21:09:39.000Z | 2020-07-26T08:57:00.000Z | icenews/api_important_words.py | sverrirab/icenews | 10a5e13d4dcd5e95f746c4fec9821b4b48fa440e | [
"Apache-2.0"
] | 1 | 2019-08-11T00:27:18.000Z | 2019-08-12T17:36:42.000Z | icenews/api_important_words.py | sverrirab/icenews | 10a5e13d4dcd5e95f746c4fec9821b4b48fa440e | [
"Apache-2.0"
] | null | null | null | import logging
from pydantic import BaseModel, Field
from typing import List
from .similar import important_words
from .server import app
_MAX_LENGTH = 2000
logger = logging.getLogger(__name__)
class ImportantWordsResponse(BaseModel):
important_words: List[str] = Field(..., description="List of lemmas")
cla... | 25.625 | 97 | 0.724042 | 160 | 1,435 | 6.3 | 0.4 | 0.138889 | 0.056548 | 0.045635 | 0.464286 | 0.464286 | 0.464286 | 0.464286 | 0.464286 | 0.180556 | 0 | 0.008503 | 0.180488 | 1,435 | 55 | 98 | 26.090909 | 0.848639 | 0.066202 | 0 | 0.45 | 0 | 0 | 0.143498 | 0.018685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.4 | 0.025 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b9b51a38157d5d825f921ab19fba044fe3545044 | 206 | py | Python | try-except.py | kmarcini/Learn-Python---Full-Course-for-Beginners-Tutorial- | 8ea4ef004d86fdf393980fd356edcf5b769bfeac | [
"BSD-3-Clause"
] | null | null | null | try-except.py | kmarcini/Learn-Python---Full-Course-for-Beginners-Tutorial- | 8ea4ef004d86fdf393980fd356edcf5b769bfeac | [
"BSD-3-Clause"
] | null | null | null | try-except.py | kmarcini/Learn-Python---Full-Course-for-Beginners-Tutorial- | 8ea4ef004d86fdf393980fd356edcf5b769bfeac | [
"BSD-3-Clause"
] | null | null | null |
try:
# num = 10 / 0
number = int(input("Enter a number: "))
print(number)
# catch specific errors
except ZeroDivisionError as err:
print(err)
except ValueError:
print("Invalid input")
| 17.166667 | 43 | 0.650485 | 26 | 206 | 5.153846 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.237864 | 206 | 11 | 44 | 18.727273 | 0.834395 | 0.165049 | 0 | 0 | 0 | 0 | 0.172619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
b9b6f990f4ce20ca5842a3bb309cb667f69ccc3e | 453 | py | Python | arachne/hdl/xilinx/ps8/resources/pmu.py | shrine-maiden-heavy-industries/arachne | 1d0320bf6e77653656f8ce1874900743452dbac4 | [
"BSD-3-Clause"
] | 3 | 2021-09-13T20:23:42.000Z | 2022-01-19T13:12:32.000Z | arachne/hdl/xilinx/ps8/resources/pmu.py | shrine-maiden-heavy-industries/arachne | 1d0320bf6e77653656f8ce1874900743452dbac4 | [
"BSD-3-Clause"
] | null | null | null | arachne/hdl/xilinx/ps8/resources/pmu.py | shrine-maiden-heavy-industries/arachne | 1d0320bf6e77653656f8ce1874900743452dbac4 | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
from amaranth import *
from amaranth.build import *
from .common import PS8Resource, MIOSet
__all__ = (
'PMUResource',
)
class PMUResource(PS8Resource):
name = 'pmu'
claimable_mio = [ ]
def __init__(self):
super().__init__(0, 0, None, False)
def used_mio(... | 19.695652 | 46 | 0.699779 | 52 | 453 | 5.807692 | 0.653846 | 0.07947 | 0.099338 | 0.225166 | 0.258278 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013441 | 0.178808 | 453 | 22 | 47 | 20.590909 | 0.798387 | 0.116998 | 0 | 0.133333 | 0 | 0 | 0.035354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b9c4867749ea67a9a267a9e62cea575f210f9260 | 2,526 | py | Python | credentials.py | Machel54/-pass-locker- | 8ddf14cf755924ca903919177f9f878f65a08042 | [
"MIT"
] | null | null | null | credentials.py | Machel54/-pass-locker- | 8ddf14cf755924ca903919177f9f878f65a08042 | [
"MIT"
] | null | null | null | credentials.py | Machel54/-pass-locker- | 8ddf14cf755924ca903919177f9f878f65a08042 | [
"MIT"
] | 1 | 2020-01-29T02:05:49.000Z | 2020-01-29T02:05:49.000Z | import pyperclip
import random
import string
class Credential:
'''
class that generates new credentials
'''
credential_list = []
def __init__(self,username,sitename,password):
self.username = username
self.password = password
self.sitename = sitename
def save_credential(self):
'''
sav... | 30.071429 | 111 | 0.665479 | 276 | 2,526 | 5.952899 | 0.322464 | 0.093731 | 0.043822 | 0.047474 | 0.120511 | 0.088862 | 0.053561 | 0.053561 | 0 | 0 | 0 | 0.005269 | 0.248614 | 2,526 | 83 | 112 | 30.433735 | 0.860379 | 0.247427 | 0 | 0.130435 | 1 | 0 | 0.08656 | 0.052392 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.23913 | 0.065217 | 0 | 0.391304 | 0.043478 | 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 | 0 | 0 | 0 | 2 |
b9db51239c1e9a509c29f6e80aebfb0363b62210 | 194 | py | Python | atcoder/abc191/b.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | atcoder/abc191/b.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | atcoder/abc191/b.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | import sys
sys.setrecursionlimit(10000000)
input=lambda : sys.stdin.readline().rstrip()
n,x=map(int,input().split())
a=list(map(int,input().split()))
aa=list(filter(lambda b:b!=x,a))
print(*aa) | 24.25 | 44 | 0.71134 | 33 | 194 | 4.181818 | 0.606061 | 0.086957 | 0.15942 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043716 | 0.056701 | 194 | 8 | 45 | 24.25 | 0.710383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b9dc3713922fc2f091f8ac06b4fabec4e905eb4d | 1,647 | py | Python | venues/abstract_venue.py | weezel/BandEventNotifier | 55824ba26aba9882f46d1770ec5df592a5dc32bc | [
"0BSD"
] | null | null | null | venues/abstract_venue.py | weezel/BandEventNotifier | 55824ba26aba9882f46d1770ec5df592a5dc32bc | [
"0BSD"
] | 2 | 2020-02-10T19:37:47.000Z | 2020-02-10T19:44:54.000Z | venues/abstract_venue.py | weezel/BandEventNotifier | 55824ba26aba9882f46d1770ec5df592a5dc32bc | [
"0BSD"
] | null | null | null | import re
from abc import ABC, abstractmethod
from typing import Any, Dict, Generator
class IncorrectVenueImplementation(Exception):
pass
# class AbstractVenue(metaclass=ABC):
class AbstractVenue(ABC):
def __init__(self):
self.url = ""
self.name = ""
self.city = ""
self.count... | 27.45 | 66 | 0.57377 | 198 | 1,647 | 4.636364 | 0.348485 | 0.052288 | 0.042484 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008658 | 0.298725 | 1,647 | 59 | 67 | 27.915254 | 0.781818 | 0.041287 | 0 | 0.045455 | 0 | 0 | 0.042513 | 0.016497 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.181818 | false | 0.045455 | 0.068182 | 0.113636 | 0.477273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
b9df48f54330cde291fba9c3ce4e17b22e7c1da1 | 1,156 | py | Python | python/verifair/benchmarks/fairsquare/M_BN_F_SVM_A_Q.py | obastani/verifair | 1d5efea041330fa9fe8d59d976bdd3ef97aff417 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2019-11-05T20:40:40.000Z | 2020-09-16T03:13:54.000Z | python/verifair/benchmarks/fairsquare/M_BN_F_SVM_A_Q.py | obastani/verifair | 1d5efea041330fa9fe8d59d976bdd3ef97aff417 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | python/verifair/benchmarks/fairsquare/M_BN_F_SVM_A_Q.py | obastani/verifair | 1d5efea041330fa9fe8d59d976bdd3ef97aff417 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | from .helper import *
def sample(flag):
sex = step([(0,1,0.3307), (1,2,0.6693)])
if sex < 1:
capital_gain = gaussian(568.4105, 24248365.5428)
if capital_gain < 7298.0000:
age = gaussian(38.4208, 184.9151)
capital_loss = gaussian(86.5949, 157731.9553)
else:
... | 33.028571 | 85 | 0.569204 | 168 | 1,156 | 3.797619 | 0.452381 | 0.12069 | 0.081505 | 0.053292 | 0.040752 | 0.040752 | 0.040752 | 0 | 0 | 0 | 0 | 0.300743 | 0.301038 | 1,156 | 34 | 86 | 34 | 0.488861 | 0 | 0 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.032258 | 0 | 0.096774 | 0 | 0 | 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 | 2 |
b9e1517b77ef8c0c8643211eb516389a83db60f8 | 2,608 | py | Python | Phase-1/Python Basic 2/Day-24.py | emetowinner/python-challenges | 520da69da0f2632deb1e81136d2b62d40555a4aa | [
"MIT"
] | 3 | 2020-05-21T20:19:40.000Z | 2022-02-27T08:20:10.000Z | Phase-1/Python Basic 2/Day-24.py | emetowinner/python-challenges | 520da69da0f2632deb1e81136d2b62d40555a4aa | [
"MIT"
] | null | null | null | Phase-1/Python Basic 2/Day-24.py | emetowinner/python-challenges | 520da69da0f2632deb1e81136d2b62d40555a4aa | [
"MIT"
] | 4 | 2020-05-12T16:41:52.000Z | 2020-05-21T20:17:22.000Z | """
1. Write a Python program to reverse only the vowels of a given string.
Sample Output:
w3resuorce
Python
Perl
ASU
2. Write a Python program to check whether a given integer is a palindrome or not.
Note: An integer is a palindrome when it reads the same backward as forward. Negative numbers are not palindromic.
Sa... | 25.821782 | 204 | 0.717408 | 510 | 2,608 | 3.668627 | 0.290196 | 0.035275 | 0.064137 | 0.10155 | 0.285943 | 0.202031 | 0.173169 | 0.128274 | 0.128274 | 0.128274 | 0 | 0.122807 | 0.21319 | 2,608 | 100 | 205 | 26.08 | 0.788986 | 0.995782 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b9e1d3ca3ecc29b35600c2af35a03fcf35a771c0 | 3,413 | py | Python | etl/parsers/etw/Microsoft_Windows_IPxlatCfg.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 104 | 2020-03-04T14:31:31.000Z | 2022-03-28T02:59:36.000Z | etl/parsers/etw/Microsoft_Windows_IPxlatCfg.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 7 | 2020-04-20T09:18:39.000Z | 2022-03-19T17:06:19.000Z | etl/parsers/etw/Microsoft_Windows_IPxlatCfg.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 16 | 2020-03-05T18:55:59.000Z | 2022-03-01T10:19:28.000Z | # -*- coding: utf-8 -*-
"""
Microsoft-Windows-IPxlatCfg
GUID : 3e5ac668-af52-4c15-b99b-a3e7a6616ebd
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
from etl.p... | 29.17094 | 123 | 0.699092 | 391 | 3,413 | 5.936061 | 0.173913 | 0.09651 | 0.150797 | 0.120638 | 0.826368 | 0.826368 | 0.53813 | 0.53813 | 0.45196 | 0.45196 | 0 | 0.159204 | 0.175505 | 3,413 | 116 | 124 | 29.422414 | 0.665601 | 0.027542 | 0 | 0.404762 | 0 | 0 | 0.240483 | 0.14139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b9e6fcabd0b33c8ba893844382f8413f57f64840 | 262 | py | Python | driver/python/setup.py | wbaweto/QConf | 977a53d601eab2055fd8fb344b92f4026d178ad5 | [
"BSD-2-Clause"
] | 2,056 | 2015-03-23T04:51:13.000Z | 2022-03-20T11:57:36.000Z | driver/python/setup.py | xzz0329/QConf | f852f984de0b55bbca5bcb433a7be5af6383c449 | [
"BSD-2-Clause"
] | 116 | 2015-03-25T01:32:39.000Z | 2022-02-12T03:21:08.000Z | driver/python/setup.py | xzz0329/QConf | f852f984de0b55bbca5bcb433a7be5af6383c449 | [
"BSD-2-Clause"
] | 634 | 2015-03-24T11:51:22.000Z | 2022-01-28T04:22:19.000Z | from distutils.core import setup, Extension
setup(name = 'qconf_py', version = '1.2.2', ext_modules = [Extension('qconf_py', ['lib/python_qconf.cc'],
include_dirs=['/usr/local/include/qconf'],
extra_objects=['/usr/local/qconf/lib/libqconf.a']
)])
| 43.666667 | 105 | 0.683206 | 37 | 262 | 4.675676 | 0.675676 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0131 | 0.125954 | 262 | 5 | 106 | 52.4 | 0.742358 | 0 | 0 | 0 | 0 | 0 | 0.362595 | 0.209924 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b9ecb48aece2a2ca161d7bba9b3c95a928b2be7f | 728 | py | Python | scrapyproject/migrations/0003_auto_20170209_1025.py | sap9433/Distributed-Multi-User-Scrapy-System-with-a-Web-UI | 0676f7599f288409d0faf7b6211c171ce8c46a7a | [
"MIT"
] | 108 | 2017-03-14T05:40:13.000Z | 2022-03-03T12:35:49.000Z | scrapyproject/migrations/0003_auto_20170209_1025.py | sap9433/Distributed-Multi-User-Scrapy-System-with-a-Web-UI | 0676f7599f288409d0faf7b6211c171ce8c46a7a | [
"MIT"
] | 8 | 2017-03-14T05:40:13.000Z | 2018-10-13T07:07:29.000Z | scrapyproject/migrations/0003_auto_20170209_1025.py | sap9433/Distributed-Multi-User-Scrapy-System-with-a-Web-UI | 0676f7599f288409d0faf7b6211c171ce8c46a7a | [
"MIT"
] | 43 | 2017-04-19T12:18:07.000Z | 2021-11-25T09:37:17.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scrapyproject', '0002_auto_20170208_1738'),
]
operations = [
migrations.AlterField(
model_name='project',
... | 24.266667 | 53 | 0.575549 | 63 | 728 | 6.444444 | 0.539683 | 0.147783 | 0.184729 | 0.214286 | 0.509852 | 0.438424 | 0.339901 | 0.339901 | 0.339901 | 0.339901 | 0 | 0.033865 | 0.31044 | 728 | 29 | 54 | 25.103448 | 0.7749 | 0.028846 | 0 | 0.521739 | 0 | 0 | 0.134752 | 0.032624 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 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 | 0 | 0 | 0 | 2 |
b9ef44f166a7664004d3feffe782db268867e247 | 1,487 | py | Python | src/api/bkuser_core/audit/views.py | trueware/bk-user | 8c633e0a3821beb839ed120c4514c5733e675862 | [
"MIT"
] | null | null | null | src/api/bkuser_core/audit/views.py | trueware/bk-user | 8c633e0a3821beb839ed120c4514c5733e675862 | [
"MIT"
] | null | null | null | src/api/bkuser_core/audit/views.py | trueware/bk-user | 8c633e0a3821beb839ed120c4514c5733e675862 | [
"MIT"
] | 1 | 2021-12-31T06:48:41.000Z | 2021-12-31T06:48:41.000Z | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic... | 45.060606 | 115 | 0.799597 | 180 | 1,487 | 6.544444 | 0.611111 | 0.050934 | 0.119694 | 0.063667 | 0.104414 | 0.104414 | 0 | 0 | 0 | 0 | 0 | 0.008574 | 0.137189 | 1,487 | 32 | 116 | 46.46875 | 0.909587 | 0.471419 | 0 | 0.2 | 0 | 0 | 0.007712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.266667 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
b9f15c3b93c89d0226f4f6b8fd7503987d856e88 | 542 | py | Python | gamla/url_utils_test.py | hyroai/gamla | bfa05807685bd51cba7c4c9cc47f1f5e73e6f7ee | [
"MIT"
] | 17 | 2020-03-19T08:40:39.000Z | 2022-03-06T14:43:35.000Z | gamla/url_utils_test.py | hyroai/gamla | bfa05807685bd51cba7c4c9cc47f1f5e73e6f7ee | [
"MIT"
] | 39 | 2020-04-13T16:52:43.000Z | 2022-03-24T08:30:49.000Z | gamla/url_utils_test.py | uriva/gamla | 65b450a7761cbc13bdbc7a4216003932f18cf433 | [
"MIT"
] | 2 | 2019-11-13T15:13:51.000Z | 2019-12-10T15:19:04.000Z | from gamla import url_utils
def test_add_to_query_string1():
assert (
url_utils.add_to_query_string(
{"a": 123},
"https://www.domain.com/path?param1=param1#anchor",
)
== "https://www.domain.com/path?param1=param1&a=123#anchor"
)
def test_add_to_query_string2()... | 24.636364 | 67 | 0.586716 | 69 | 542 | 4.362319 | 0.333333 | 0.066445 | 0.13289 | 0.225914 | 0.790698 | 0.677741 | 0.677741 | 0.458472 | 0.458472 | 0.458472 | 0 | 0.055276 | 0.265683 | 542 | 21 | 68 | 25.809524 | 0.701005 | 0 | 0 | 0.352941 | 0 | 0 | 0.372694 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | true | 0 | 0.058824 | 0 | 0.176471 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b9f25a250dce61318cad2d5bfa0bebb70f70d2dc | 1,071 | py | Python | examples/temp_feie_shetland.py | nilsmkMET/roppy | c68d698fa4970174af2c7f7137bd4a3e5983b644 | [
"MIT"
] | null | null | null | examples/temp_feie_shetland.py | nilsmkMET/roppy | c68d698fa4970174af2c7f7137bd4a3e5983b644 | [
"MIT"
] | null | null | null | examples/temp_feie_shetland.py | nilsmkMET/roppy | c68d698fa4970174af2c7f7137bd4a3e5983b644 | [
"MIT"
] | null | null | null | import numpy as np
from netCDF4 import Dataset
# Import development version of roppy
import sys
sys.path = ['..'] + sys.path
import roppy
# --- EDIT -----------------
# ROMS file
romsfile = 'data/ocean_avg_example.nc'
# Section definition
lon0, lat0 = -0.67, 60.75 # Shetland
lon1, lat1 = 4.72, 60.75 # Feie
# --... | 22.787234 | 74 | 0.6676 | 170 | 1,071 | 4.170588 | 0.547059 | 0.021157 | 0.022567 | 0.03385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 0.176471 | 1,071 | 46 | 75 | 23.282609 | 0.752834 | 0.445378 | 0 | 0 | 0 | 0 | 0.085217 | 0.043478 | 0 | 0 | 0 | 0.021739 | 0 | 0 | null | null | 0 | 0.235294 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b9f59c6c5e552b8bde064c8fa9f25427a65b2006 | 158,531 | py | Python | pysnmp-with-texts/InternetThruway-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/InternetThruway-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/InternetThruway-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module InternetThruway-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/InternetThruway-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:58:27 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 127.231942 | 9,703 | 0.781809 | 18,325 | 158,531 | 6.76251 | 0.058718 | 0.073304 | 0.128281 | 0.013654 | 0.604157 | 0.466645 | 0.429759 | 0.384053 | 0.333812 | 0.282304 | 0 | 0.056798 | 0.093199 | 158,531 | 1,245 | 9,704 | 127.334137 | 0.805239 | 0.002094 | 0 | 0.009796 | 0 | 0.038367 | 0.290025 | 0.006233 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.000816 | 0.004898 | 0 | 0.034286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b9f778c162a3f42e748bada544f1b060ab9f29ed | 466 | py | Python | Condicionales anidados.py | gcardosov/PythonAprendeOrg | 0cad81f0a584c98389ca729a337d30581780e520 | [
"MIT"
] | 1 | 2018-03-07T05:26:12.000Z | 2018-03-07T05:26:12.000Z | Condicionales anidados.py | gcardosov/PythonAprendeOrg | 0cad81f0a584c98389ca729a337d30581780e520 | [
"MIT"
] | null | null | null | Condicionales anidados.py | gcardosov/PythonAprendeOrg | 0cad81f0a584c98389ca729a337d30581780e520 | [
"MIT"
] | null | null | null | pregunta = input('trabajas desde casa? ')
if pregunta == True:
print 'Eres afortunado'
if pregunta == False:
print 'Trabajas fuera de casa'
tiempo = input('Cuantos minutos haces al trabajo: ')
if tiempo == 0:
print 'trabajas desde casa'
elif tiempo <=20:
print 'Es po... | 20.26087 | 57 | 0.583691 | 56 | 466 | 4.857143 | 0.589286 | 0.095588 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022293 | 0.32618 | 466 | 22 | 58 | 21.181818 | 0.843949 | 0 | 0 | 0 | 0 | 0 | 0.371041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
b9fd9ad743eac1d46c7b5d951facfcfa09dbb1bf | 3,778 | py | Python | src/sentry/options/defaults.py | faulkner/sentry | f9dd4d0d7c683632cf02810c03bd42d7051ad010 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/options/defaults.py | faulkner/sentry | f9dd4d0d7c683632cf02810c03bd42d7051ad010 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/options/defaults.py | faulkner/sentry | f9dd4d0d7c683632cf02810c03bd42d7051ad010 | [
"BSD-3-Clause"
] | null | null | null | """
sentry.options.defaults
~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
from sentry.logging import LoggingFormat
from sentry.options import (
FLAG_IMMUTAB... | 43.425287 | 95 | 0.75172 | 491 | 3,778 | 5.560081 | 0.250509 | 0.118681 | 0.158242 | 0.190476 | 0.515751 | 0.445055 | 0.396703 | 0.367399 | 0.299267 | 0.198535 | 0 | 0.01011 | 0.109846 | 3,778 | 86 | 96 | 43.930233 | 0.801665 | 0.125993 | 0 | 0 | 0 | 0 | 0.207128 | 0.027109 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.017857 | 0.071429 | 0 | 0.071429 | 0.017857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6a05188139a9d21e9e36ba6e3d3eb0801c8187c7 | 416 | py | Python | cloudkeeperV1/plugins/cleanup_aws_loadbalancers/test/test_args.py | mesosphere/cloudkeeper | 11be262df5874c1033cfec9964bba1596cab6a36 | [
"Apache-2.0"
] | 99 | 2020-04-15T22:56:34.000Z | 2021-06-13T15:04:55.000Z | cloudkeeperV1/plugins/cleanup_aws_loadbalancers/test/test_args.py | mesosphere/cloudkeeper | 11be262df5874c1033cfec9964bba1596cab6a36 | [
"Apache-2.0"
] | null | null | null | cloudkeeperV1/plugins/cleanup_aws_loadbalancers/test/test_args.py | mesosphere/cloudkeeper | 11be262df5874c1033cfec9964bba1596cab6a36 | [
"Apache-2.0"
] | 14 | 2020-04-14T22:13:59.000Z | 2021-04-05T16:42:31.000Z | from cklib.args import get_arg_parser, ArgumentParser
from cloudkeeper_plugin_cleanup_aws_loadbalancers import CleanupAWSLoadbalancersPlugin
def test_args():
arg_parser = get_arg_parser()
CleanupAWSLoadbalancersPlugin.add_args(arg_parser)
arg_parser.parse_args()
assert ArgumentParser.args.cleanup_aws_... | 37.818182 | 86 | 0.834135 | 50 | 416 | 6.56 | 0.48 | 0.137195 | 0.210366 | 0.189024 | 0.286585 | 0.286585 | 0 | 0 | 0 | 0 | 0 | 0.00271 | 0.112981 | 416 | 10 | 87 | 41.6 | 0.886179 | 0 | 0 | 0 | 0 | 0 | 0.014423 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 | 0 | 0 | 0 | 2 |
6a15c95427effad3d19c61b8dfdb12b52e2999fa | 649 | py | Python | backend/accounts/migrations/0003_auto_20201115_1537.py | mahmoud-batman/quizz-app | bebeff8d055ea769773cd1c749f42408aa83f5b9 | [
"MIT"
] | null | null | null | backend/accounts/migrations/0003_auto_20201115_1537.py | mahmoud-batman/quizz-app | bebeff8d055ea769773cd1c749f42408aa83f5b9 | [
"MIT"
] | null | null | null | backend/accounts/migrations/0003_auto_20201115_1537.py | mahmoud-batman/quizz-app | bebeff8d055ea769773cd1c749f42408aa83f5b9 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-11-15 15:37
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_auto_20201115_1531'),
]
operations = [
migrations.AlterField(
model_name='customu... | 32.45 | 277 | 0.697997 | 71 | 649 | 6.309859 | 0.647887 | 0.111607 | 0.223214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081132 | 0.183359 | 649 | 19 | 278 | 34.157895 | 0.764151 | 0.069337 | 0 | 0 | 1 | 0 | 0.079734 | 0.038206 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6a1710262c6a5f82f36fe3fcc5a0ae77374c7e1e | 148 | py | Python | noxfile.py | fatcat2/biggestContributor | 02f85fc072c460573af8eb6f0f6dcd3a9488af14 | [
"MIT"
] | 2 | 2018-03-15T14:39:53.000Z | 2018-03-15T20:34:14.000Z | noxfile.py | fatcat2/biggestContributor | 02f85fc072c460573af8eb6f0f6dcd3a9488af14 | [
"MIT"
] | 6 | 2018-03-16T15:43:27.000Z | 2020-05-19T19:42:32.000Z | noxfile.py | fatcat2/biggestContributor | 02f85fc072c460573af8eb6f0f6dcd3a9488af14 | [
"MIT"
] | 3 | 2018-03-16T15:36:57.000Z | 2020-05-19T19:34:47.000Z | import nox
FILE_PATHS = ["utils", "main.py"]
@nox.session
def format(session):
session.install("black")
session.run("black", *FILE_PATHS)
| 16.444444 | 37 | 0.675676 | 20 | 148 | 4.9 | 0.65 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 148 | 8 | 38 | 18.5 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6a240de4a4b62bd30eb577321f80af837069962e | 2,029 | py | Python | backends/search/__init__.py | dev-easyshares/company | 61842839121f308619c59a8f52ab76c8b9dcdd30 | [
"MIT"
] | null | null | null | backends/search/__init__.py | dev-easyshares/company | 61842839121f308619c59a8f52ab76c8b9dcdd30 | [
"MIT"
] | null | null | null | backends/search/__init__.py | dev-easyshares/company | 61842839121f308619c59a8f52ab76c8b9dcdd30 | [
"MIT"
] | null | null | null | from company.choices import fr as choices
from mighty.errors import BackendError
import datetime, logging
logger = logging.getLogger(__name__)
CHOICES_APE = dict(choices.APE)
CHOICES_LEGALFORM = dict(choices.LEGALFORM)
CHOICES_SLICE = dict(choices.SLICE_EFFECTIVE)
class SearchBackend:
message = None
since_for... | 31.215385 | 90 | 0.670281 | 245 | 2,029 | 5.359184 | 0.289796 | 0.031988 | 0.10358 | 0.121858 | 0.464585 | 0.412795 | 0.301599 | 0.210206 | 0 | 0 | 0 | 0.003209 | 0.232134 | 2,029 | 65 | 91 | 31.215385 | 0.839538 | 0 | 0 | 0.235294 | 0 | 0 | 0.125616 | 0.044828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.058824 | 0.058824 | 0.019608 | 0.54902 | 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 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.