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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed2c6801dbdaa250f7f7f896985d72858d1ae89d | 1,604 | py | Python | utils/__init__.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | 13 | 2020-11-05T04:22:51.000Z | 2022-02-27T08:44:50.000Z | utils/__init__.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | null | null | null | utils/__init__.py | MeGustas-5427/SQL_Tutorials | 627372c2d5d8656d72645830c9a1fae1df278fc7 | [
"Apache-2.0"
] | 2 | 2020-11-10T10:01:20.000Z | 2021-04-07T02:33:29.000Z | import typing
from enum import Enum, EnumMeta
class ChoiceEnumMeta(EnumMeta):
def __getattribute__(cls, name: str) -> typing.Any:
attr = super().__getattribute__(name)
if isinstance(attr, Enum):
return attr.value
return attr
def __iter__(cls):
if hasattr(cls, "__ad... | 24.676923 | 88 | 0.539277 | 159 | 1,604 | 5.176101 | 0.36478 | 0.034022 | 0.051033 | 0.047388 | 0.36452 | 0.36452 | 0.36452 | 0.335358 | 0.213852 | 0.092345 | 0 | 0.003788 | 0.341646 | 1,604 | 64 | 89 | 25.0625 | 0.775568 | 0.352868 | 0 | 0.076923 | 0 | 0 | 0.024313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0.038462 | 0.615385 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
ed3682ac8f2dea4d907d69081251623cc725bd64 | 276 | py | Python | python assignments/list/q2_solution.py | AkantaRai/alecto | 3432ab874cc620098eb31e7f3cbce12e74cc6cec | [
"MIT"
] | null | null | null | python assignments/list/q2_solution.py | AkantaRai/alecto | 3432ab874cc620098eb31e7f3cbce12e74cc6cec | [
"MIT"
] | null | null | null | python assignments/list/q2_solution.py | AkantaRai/alecto | 3432ab874cc620098eb31e7f3cbce12e74cc6cec | [
"MIT"
] | null | null | null | #Q2.Make a list of ten students in your class. Print the name of each student whose name ends with ‘a’.
word='a'
list=['akriti','aman','benisha','bipin','bipesh','carin','carol','cavin','janisha','jeevan']
for i in range(0,10):
if list[i][-1]==word:
print(list[i]) | 46 | 103 | 0.648551 | 48 | 276 | 3.729167 | 0.75 | 0.055866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021186 | 0.144928 | 276 | 6 | 104 | 46 | 0.737288 | 0.369565 | 0 | 0 | 0 | 0 | 0.327586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed3924c0226206ec7404c393769553d280859f34 | 3,269 | py | Python | trove/common/rpc/service.py | zh-f/trove | 4998becb4da14547798cece21858282761409052 | [
"Apache-2.0"
] | 1 | 2017-11-24T10:28:48.000Z | 2017-11-24T10:28:48.000Z | trove/common/rpc/service.py | 2020human/trove-new | 012da9a334bc4e9c7711dc918eea3f011463ec82 | [
"Apache-2.0"
] | null | null | null | trove/common/rpc/service.py | 2020human/trove-new | 012da9a334bc4e9c7711dc918eea3f011463ec82 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 OpenStack Foundation
# Copyright 2013 Rackspace Hosting
# Copyright 2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a co... | 36.322222 | 79 | 0.683084 | 424 | 3,269 | 5.132075 | 0.415094 | 0.027574 | 0.04136 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008846 | 0.239217 | 3,269 | 89 | 80 | 36.730337 | 0.866104 | 0.272255 | 0 | 0 | 0 | 0 | 0.039016 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.055556 | false | 0.018519 | 0.259259 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed39b1bca90ce363a99a57df80ceba9503fe5670 | 1,104 | py | Python | fairseq/data/encoders/fastbpe.py | ksboy/fairseq | 97154aa441769f7b335e8908392d7fb1b4b8de24 | [
"MIT"
] | 7 | 2019-08-10T03:55:19.000Z | 2020-12-31T08:50:47.000Z | fairseq/data/encoders/fastbpe.py | ksboy/fairseq | 97154aa441769f7b335e8908392d7fb1b4b8de24 | [
"MIT"
] | null | null | null | fairseq/data/encoders/fastbpe.py | ksboy/fairseq | 97154aa441769f7b335e8908392d7fb1b4b8de24 | [
"MIT"
] | 2 | 2019-08-11T19:14:17.000Z | 2020-07-24T11:30:44.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from fairseq import file_utils
from fairseq.data.encoders import register_bpe
@register_bpe('fastbpe')
class fastBPE(object):
@staticmet... | 31.542857 | 81 | 0.620471 | 143 | 1,104 | 4.678322 | 0.531469 | 0.047833 | 0.035874 | 0.032885 | 0.050822 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001245 | 0.272645 | 1,104 | 34 | 82 | 32.470588 | 0.83188 | 0.167572 | 0 | 0 | 0 | 0 | 0.14693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.227273 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ed3a8b26af54f5d1a72524c756d8d9678104e1c0 | 1,137 | py | Python | strapi_python_api.py | sherjil/strapi_python | 01c45dd36df3a755d07513d047f350674926e968 | [
"Apache-2.0"
] | 1 | 2021-01-01T21:08:17.000Z | 2021-01-01T21:08:17.000Z | strapi_python_api.py | sherjil/strapi_python | 01c45dd36df3a755d07513d047f350674926e968 | [
"Apache-2.0"
] | null | null | null | strapi_python_api.py | sherjil/strapi_python | 01c45dd36df3a755d07513d047f350674926e968 | [
"Apache-2.0"
] | null | null | null | import requests, json
########## GET JWT TOKEN ##########
auth = { 'identifier' : '<email or username>', 'password' : '<password>' }
r = requests.post('http://<Server IP>:1337/auth/local', data=auth)
print(r.json())
tokenAuth = r.json()
print(tokenAuth['jwt'])
token = 'Bearer ' + tokenAuth['jwt']
########## CHECK... | 27.071429 | 111 | 0.649077 | 139 | 1,137 | 5.309353 | 0.460432 | 0.054201 | 0.065041 | 0.086721 | 0.127371 | 0.075881 | 0 | 0 | 0 | 0 | 0 | 0.02008 | 0.124011 | 1,137 | 41 | 112 | 27.731707 | 0.720884 | 0.180299 | 0 | 0 | 0 | 0 | 0.404005 | 0.030624 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.0625 | 0 | 0.0625 | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed3b40ea8e7ea1884ec3841e0d6e8e8605dadd14 | 578 | py | Python | predictor/apps.py | Sapphirine/LeaguePredictor | fe9153ea36ca31b79b91cf652c6dbcbb36146a22 | [
"MIT"
] | 2 | 2015-12-09T13:56:14.000Z | 2016-04-27T07:53:47.000Z | predictor/apps.py | Sapphirine/LeaguePredictor | fe9153ea36ca31b79b91cf652c6dbcbb36146a22 | [
"MIT"
] | null | null | null | predictor/apps.py | Sapphirine/LeaguePredictor | fe9153ea36ca31b79b91cf652c6dbcbb36146a22 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.conf import settings
from threading import RLock
class MyAppConfig(AppConfig):
name = 'predictor'
verbose_name = 'League Predictor'
def ready(self):
import sys, os
sys.path.append('{0}/python/build'.format(settings.SPARK_HOME))
sys.pat... | 27.52381 | 71 | 0.678201 | 72 | 578 | 5.375 | 0.5 | 0.093023 | 0.131783 | 0.072351 | 0.103359 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00883 | 0.216263 | 578 | 20 | 72 | 28.9 | 0.845475 | 0 | 0 | 0 | 0 | 0 | 0.105536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 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 | 0 | 0 | 0 | 1 |
ed3b4c1a14508b0d2fb2afb9e4a9f8bd293e8765 | 3,003 | py | Python | pyinaturalist/v1/projects.py | eduramirezh/pyinaturalist | e5da7ced7fae31f27310868bdb2d349bdff8e0d4 | [
"MIT"
] | null | null | null | pyinaturalist/v1/projects.py | eduramirezh/pyinaturalist | e5da7ced7fae31f27310868bdb2d349bdff8e0d4 | [
"MIT"
] | null | null | null | pyinaturalist/v1/projects.py | eduramirezh/pyinaturalist | e5da7ced7fae31f27310868bdb2d349bdff8e0d4 | [
"MIT"
] | null | null | null | from pyinaturalist.constants import PROJECT_ORDER_BY_PROPERTIES, JsonResponse, MultiInt
from pyinaturalist.converters import convert_all_coordinates, convert_all_timestamps
from pyinaturalist.docs import document_request_params
from pyinaturalist.docs import templates as docs
from pyinaturalist.pagination import add_pa... | 34.918605 | 98 | 0.688645 | 343 | 3,003 | 5.83965 | 0.393586 | 0.054918 | 0.043934 | 0.049925 | 0.327509 | 0.327509 | 0.284573 | 0.284573 | 0.284573 | 0.284573 | 0 | 0.022015 | 0.213453 | 3,003 | 85 | 99 | 35.329412 | 0.825995 | 0.508825 | 0 | 0.363636 | 0 | 0 | 0.073282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ed3f5af9cad6c88f3d3dcde3793a9b27b0d4be16 | 2,880 | py | Python | comicstreamerlib/main.py | Timmy-B/ComicStreamer | b82acc9a76be10f4afd1cd46575d7284f2d9dfd4 | [
"Apache-2.0"
] | 1 | 2020-02-24T05:27:28.000Z | 2020-02-24T05:27:28.000Z | comicstreamerlib/main.py | Timmy-B/ComicStreamer | b82acc9a76be10f4afd1cd46575d7284f2d9dfd4 | [
"Apache-2.0"
] | null | null | null | comicstreamerlib/main.py | Timmy-B/ComicStreamer | b82acc9a76be10f4afd1cd46575d7284f2d9dfd4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import time
import logging
import logging.handlers
import platform
import signal
import utils
from config import ComicStreamerConfig
from comicstreamerlib.folders import AppFolders
from options import Options
from server import APIServer
#from gui import GUIThread
cla... | 29.690722 | 109 | 0.595139 | 301 | 2,880 | 5.657807 | 0.405316 | 0.10687 | 0.037581 | 0.01879 | 0.066941 | 0.043453 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.309375 | 2,880 | 96 | 110 | 30 | 0.851684 | 0.135764 | 0 | 0.032258 | 0 | 0 | 0.051313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.225806 | null | null | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed3fd49aa53810169e335612e1e1f2c4a94de105 | 1,884 | py | Python | tests/test_mask.py | akikuno/cstag | 9e48c8a825a30f36f0b72da27b310f0b5ca2cf74 | [
"MIT"
] | null | null | null | tests/test_mask.py | akikuno/cstag | 9e48c8a825a30f36f0b72da27b310f0b5ca2cf74 | [
"MIT"
] | 7 | 2022-03-15T23:42:50.000Z | 2022-03-19T10:04:39.000Z | tests/test_mask.py | akikuno/cstag | 9e48c8a825a30f36f0b72da27b310f0b5ca2cf74 | [
"MIT"
] | null | null | null | import src.cstag as cstag
import pytest
def test_basic():
CSTAG = "cs:Z:=ACGT*ac+gg-cc=T"
CIGAR = "5M2I2D1M"
QUAL = "AA!!!!AA"
assert cstag.mask(CSTAG, CIGAR, QUAL) == "cs:Z:=ACNN*an+ng-cc=T"
def test_softclip():
CSTAG = "cs:Z:=ACGT*ac+gg-cc=T"
CIGAR = "2S5M2I2D1M"
QUAL = "AAAA!!!!AA"
... | 26.914286 | 88 | 0.60138 | 294 | 1,884 | 3.789116 | 0.221088 | 0.035009 | 0.057451 | 0.136445 | 0.714542 | 0.714542 | 0.675045 | 0.675045 | 0.675045 | 0.547576 | 0 | 0.043626 | 0.221338 | 1,884 | 69 | 89 | 27.304348 | 0.715746 | 0 | 0 | 0.490566 | 0 | 0 | 0.276539 | 0.111465 | 0 | 0 | 0 | 0 | 0.150943 | 1 | 0.150943 | false | 0 | 0.037736 | 0 | 0.188679 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed41708e98a76684fa044314b18d71aa88559444 | 2,787 | py | Python | codechef/long-challenge/CORUS.py | Zenix27/data-structure-and-algorithms | 7570a65f40c8fbb8a08845be749f507f58ed773f | [
"MIT"
] | 81 | 2020-05-22T14:22:04.000Z | 2021-12-18T10:11:23.000Z | codechef/long-challenge/CORUS.py | Zenix27/data-structure-and-algorithms | 7570a65f40c8fbb8a08845be749f507f58ed773f | [
"MIT"
] | 4 | 2020-08-06T21:08:00.000Z | 2021-03-31T16:07:50.000Z | codechef/long-challenge/CORUS.py | Zenix27/data-structure-and-algorithms | 7570a65f40c8fbb8a08845be749f507f58ed773f | [
"MIT"
] | 37 | 2020-05-22T14:25:21.000Z | 2021-12-30T03:13:13.000Z | """
[Isolation Centers](https://www.codechef.com/MAY20B/problems/CORUS)
As a health expert, Vinay is keeping a close watch on the ongoing pandemic of coronavirus disease (COVID-19). He
thought of a different situation where there are 26 types of viruses, named "aorona", "borona", "corona", …, "zorona".
You are given a... | 36.194805 | 119 | 0.720847 | 485 | 2,787 | 4.14433 | 0.4 | 0.053731 | 0.052239 | 0.033831 | 0.075622 | 0.031841 | 0.031841 | 0.031841 | 0 | 0 | 0 | 0.020728 | 0.221026 | 2,787 | 76 | 120 | 36.671053 | 0.900967 | 0.848224 | 0 | 0 | 0 | 0 | 0.019277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed448ff1081af9e4fd92343fbbd5d7dc0d24a1f2 | 378 | py | Python | pwnables/rusty_shop/solve.py | cclauss/fbctf-2019-challenges | 4353c2ce588cf097ac6ca9bcf7b943a99742ac75 | [
"MIT"
] | 213 | 2019-06-14T18:28:40.000Z | 2021-12-27T14:44:45.000Z | pwnables/rusty_shop/solve.py | cclauss/fbctf-2019-challenges | 4353c2ce588cf097ac6ca9bcf7b943a99742ac75 | [
"MIT"
] | 2 | 2020-06-05T21:14:51.000Z | 2021-06-10T21:34:03.000Z | pwnables/rusty_shop/solve.py | cclauss/fbctf-2019-challenges | 4353c2ce588cf097ac6ca9bcf7b943a99742ac75 | [
"MIT"
] | 59 | 2019-06-17T17:35:29.000Z | 2021-12-04T22:26:37.000Z | from pwn import *
# Create item
print('1')
FUNC = 0x701e40
#FUNC = 0x41414141 + 0x18
vtable_ptr = FUNC-0x18
print(p64(vtable_ptr) * 8) # name - pointer to fake vtable
print('bob') # description
print('1.23') # price
# Add item to basket
print('4')
print('1') # second item, added above
print('28823037615171174... | 19.894737 | 59 | 0.65873 | 56 | 378 | 4.410714 | 0.642857 | 0.072874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179153 | 0.187831 | 378 | 18 | 60 | 21 | 0.625407 | 0.439153 | 0 | 0.181818 | 0 | 0 | 0.143564 | 0 | 0 | 0 | 0.059406 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.727273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ed44cc0b09c0aeb616863d849ac4b4d5667e9d9f | 2,239 | py | Python | detectron/modeling/name_compat.py | singhnarotam1997/Detectron | ecc6b25fc8869486126f1384b4e6e042a718bd5b | [
"Apache-2.0"
] | 60 | 2021-08-07T09:16:52.000Z | 2022-03-14T09:09:00.000Z | detectron/modeling/name_compat.py | singhnarotam1997/Detectron | ecc6b25fc8869486126f1384b4e6e042a718bd5b | [
"Apache-2.0"
] | 4 | 2021-10-14T02:44:49.000Z | 2022-03-14T08:18:20.000Z | detectron/modeling/name_compat.py | singhnarotam1997/Detectron | ecc6b25fc8869486126f1384b4e6e042a718bd5b | [
"Apache-2.0"
] | 11 | 2021-11-01T00:30:37.000Z | 2021-12-08T10:01:52.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
##############################################################################
"""Handle mapping from old network building ... | 40.709091 | 80 | 0.748102 | 342 | 2,239 | 4.564327 | 0.374269 | 0.081999 | 0.066624 | 0.076874 | 0.411275 | 0.376682 | 0.376682 | 0.304933 | 0.304933 | 0.304933 | 0 | 0.008511 | 0.160339 | 2,239 | 54 | 81 | 41.462963 | 0.821809 | 0.58017 | 0 | 0 | 0 | 0 | 0.503555 | 0.503555 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.3 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed469459b7456ba098ed41637c3f6bc11b069949 | 798 | py | Python | recommendation/test/conftest.py | quiddity-wp/translation-recs-app | 68deba5cd190c34f09fd9b6c72eb95d7f6e6dd31 | [
"Apache-2.0"
] | 5 | 2016-05-11T03:23:33.000Z | 2020-03-03T12:37:17.000Z | recommendation/test/conftest.py | quiddity-wp/translation-recs-app | 68deba5cd190c34f09fd9b6c72eb95d7f6e6dd31 | [
"Apache-2.0"
] | 24 | 2016-05-12T03:39:14.000Z | 2021-01-27T15:54:27.000Z | recommendation/test/conftest.py | quiddity-wp/translation-recs-app | 68deba5cd190c34f09fd9b6c72eb95d7f6e6dd31 | [
"Apache-2.0"
] | 9 | 2016-05-13T01:40:24.000Z | 2020-03-03T12:38:52.000Z | import pytest
import responses
from recommendation.utils import configuration
from recommendation.utils import logger
import recommendation
@pytest.fixture(scope='function', autouse=True)
def change_config_and_setup_responses(request):
"""
This changes the config file that is loaded to test_recommendation.in... | 31.92 | 95 | 0.70802 | 89 | 798 | 6.067416 | 0.595506 | 0.066667 | 0.085185 | 0.107407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219298 | 798 | 24 | 96 | 33.25 | 0.866774 | 0.229323 | 0 | 0 | 0 | 0 | 0.067682 | 0.054146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ed478d20c907dc7355934570e9fca684ea150337 | 4,730 | py | Python | src/radical/ensemblemd/tests/test_link_input_data.py | chemlove/radical.ensemblemd | 0ec4b127760d2fee88d4eae1768fecec4bdd6b21 | [
"MIT"
] | null | null | null | src/radical/ensemblemd/tests/test_link_input_data.py | chemlove/radical.ensemblemd | 0ec4b127760d2fee88d4eae1768fecec4bdd6b21 | [
"MIT"
] | null | null | null | src/radical/ensemblemd/tests/test_link_input_data.py | chemlove/radical.ensemblemd | 0ec4b127760d2fee88d4eae1768fecec4bdd6b21 | [
"MIT"
] | null | null | null | """ Tests cases
"""
import os
import sys
import glob
import unittest
from radical.ensemblemd import Kernel
from radical.ensemblemd import Pipeline
from radical.ensemblemd import EnsemblemdError
from radical.ensemblemd import SingleClusterEnvironment
# ------------------------------------------------------------------... | 31.533333 | 135 | 0.524736 | 446 | 4,730 | 5.352018 | 0.221973 | 0.058651 | 0.049016 | 0.045245 | 0.614998 | 0.614998 | 0.536238 | 0.485128 | 0.392124 | 0.340595 | 0 | 0.008894 | 0.286892 | 4,730 | 149 | 136 | 31.744966 | 0.698784 | 0.294926 | 0 | 0.430233 | 0 | 0 | 0.075137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.081395 | 0.093023 | 0 | 0.22093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed52243131d6f7b02eaccb971539c1d44fa24c3e | 9,130 | py | Python | src/trajectory/data.py | dkkim93/vicon_optitrack_merge | b0e03d2cb404115dd36ac91fc58e46a29bd6003c | [
"MIT"
] | null | null | null | src/trajectory/data.py | dkkim93/vicon_optitrack_merge | b0e03d2cb404115dd36ac91fc58e46a29bd6003c | [
"MIT"
] | null | null | null | src/trajectory/data.py | dkkim93/vicon_optitrack_merge | b0e03d2cb404115dd36ac91fc58e46a29bd6003c | [
"MIT"
] | null | null | null | import numpy as np
from transformation import Transformation
class Data(object):
def __init__(self):
self.vicon_lists = []
self.vicon_ts = []
self.vicon_x = []
self.vicon_y = []
self.vicon_z = []
self.vicon_qw = []
self.vicon_qx = []
... | 44.320388 | 107 | 0.577985 | 1,382 | 9,130 | 3.494935 | 0.059334 | 0.165631 | 0.081988 | 0.064596 | 0.753209 | 0.546791 | 0.398551 | 0.371014 | 0.313458 | 0.255694 | 0 | 0.01082 | 0.301533 | 9,130 | 205 | 108 | 44.536585 | 0.746589 | 0.016648 | 0 | 0.023669 | 0 | 0 | 0.006132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011834 | null | null | 0.071006 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed54633a3ea2e7de1b713d813cef12f989ef5802 | 15,086 | py | Python | utils/vim-lldb/python-vim-lldb/lldb_controller.py | nathawes/swift-lldb | 3cbf7470e0f9191ec1fc1c69ce8048c1dc64ec77 | [
"Apache-2.0"
] | 427 | 2018-05-29T14:21:02.000Z | 2022-03-16T03:17:54.000Z | utils/vim-lldb/python-vim-lldb/lldb_controller.py | DalavanCloud/lldb | e913eaf2468290fb94c767d474d611b41a84dd69 | [
"Apache-2.0"
] | 25 | 2018-07-23T08:34:15.000Z | 2021-11-05T07:13:36.000Z | utils/vim-lldb/python-vim-lldb/lldb_controller.py | DalavanCloud/lldb | e913eaf2468290fb94c767d474d611b41a84dd69 | [
"Apache-2.0"
] | 52 | 2018-07-19T19:57:32.000Z | 2022-03-11T16:05:38.000Z |
#
# This file defines the layer that talks to lldb
#
import os
import re
import sys
import lldb
import vim
from vim_ui import UI
# =================================================
# Convert some enum value to its string counterpart
# =================================================
# Shamelessly copy/pasted from ... | 36.439614 | 109 | 0.580008 | 1,712 | 15,086 | 5.067173 | 0.247664 | 0.032968 | 0.015216 | 0.011066 | 0.225706 | 0.168646 | 0.154352 | 0.137752 | 0.117003 | 0.106167 | 0 | 0.00399 | 0.318905 | 15,086 | 413 | 110 | 36.527845 | 0.840292 | 0.109373 | 0 | 0.25 | 0 | 0 | 0.05096 | 0.004099 | 0 | 0 | 0 | 0.009685 | 0.003731 | 0 | null | null | 0.014925 | 0.022388 | null | null | 0.018657 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed591f0b865ee29ff5b66844aa2103fdbd88b151 | 3,255 | py | Python | docs/source/conf.py | meinardmueller/libtsm | 8deaedb4999eb586af24a688431e167319ed0063 | [
"MIT"
] | 10 | 2021-06-24T14:48:16.000Z | 2022-02-18T12:30:17.000Z | docs/source/conf.py | meinardmueller/libtsm | 8deaedb4999eb586af24a688431e167319ed0063 | [
"MIT"
] | 2 | 2021-11-24T16:18:26.000Z | 2022-03-12T12:44:08.000Z | docs/source/conf.py | meinardmueller/libtsm | 8deaedb4999eb586af24a688431e167319ed0063 | [
"MIT"
] | 1 | 2022-03-17T17:48:39.000Z | 2022-03-17T17:48:39.000Z | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 34.62766 | 89 | 0.696467 | 445 | 3,255 | 4.979775 | 0.411236 | 0.027076 | 0.022563 | 0.017599 | 0.120036 | 0.075812 | 0.075812 | 0.053249 | 0 | 0 | 0 | 0.002508 | 0.14255 | 3,255 | 93 | 90 | 35 | 0.791473 | 0.515822 | 0 | 0 | 0 | 0 | 0.254051 | 0.044718 | 0 | 0 | 0 | 0.010753 | 0.04878 | 1 | 0.04878 | false | 0 | 0.097561 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed5998c434bf46a31ceea99a03f65fd1cfdb96bf | 903 | py | Python | yatranepal/migrations/0002_packages.py | TimilsinaBimal/Visit-Nepal-2020 | 437e045b673f917e1be57f055b0d66cc7eab28fd | [
"MIT"
] | 1 | 2020-10-19T14:48:48.000Z | 2020-10-19T14:48:48.000Z | yatranepal/migrations/0002_packages.py | TimilsinaBimal/Visit-Nepal-2020 | 437e045b673f917e1be57f055b0d66cc7eab28fd | [
"MIT"
] | 6 | 2020-05-12T07:00:08.000Z | 2022-03-12T00:15:19.000Z | yatranepal/migrations/0002_packages.py | TimilsinaBimal/Visit-Nepal-2020 | 437e045b673f917e1be57f055b0d66cc7eab28fd | [
"MIT"
] | 1 | 2020-01-08T07:44:23.000Z | 2020-01-08T07:44:23.000Z | # Generated by Django 2.2.6 on 2020-01-05 12:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('yatranepal', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Packages',
fields=[
('i... | 33.444444 | 114 | 0.571429 | 79 | 903 | 6.443038 | 0.696203 | 0.058939 | 0.070727 | 0.094303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037209 | 0.285714 | 903 | 26 | 115 | 34.730769 | 0.751938 | 0.049834 | 0 | 0 | 1 | 0 | 0.16472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed5c28d5072c34ce1701f0caa9ffb20916fc33d2 | 5,895 | py | Python | scripts/generate_results_polynomial.py | duembgen/continuous-localization | 5af96876c40e39b208ac17b83c415eeb22109c57 | [
"MIT"
] | null | null | null | scripts/generate_results_polynomial.py | duembgen/continuous-localization | 5af96876c40e39b208ac17b83c415eeb22109c57 | [
"MIT"
] | null | null | null | scripts/generate_results_polynomial.py | duembgen/continuous-localization | 5af96876c40e39b208ac17b83c415eeb22109c57 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
generate_results_polynomial.py: Generate polynomial results (average over many linear movements).
"""
import sys
sys.path.append('../source/')
import matplotlib.pyplot as plt
import matplotlib
import numpy as np
import pandas as pd
from public_data_utils import rea... | 36.614907 | 118 | 0.615098 | 766 | 5,895 | 4.492167 | 0.265013 | 0.027899 | 0.021796 | 0.010171 | 0.204882 | 0.181343 | 0.152281 | 0.128451 | 0.128451 | 0.112177 | 0 | 0.013182 | 0.266497 | 5,895 | 160 | 119 | 36.84375 | 0.782609 | 0.109924 | 0 | 0.176471 | 1 | 0 | 0.085262 | 0.012924 | 0 | 0 | 0 | 0 | 0.009804 | 1 | 0 | false | 0 | 0.078431 | 0 | 0.078431 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed5d3c3b422f3ee2f6a1f5db06b410f56638384b | 76,605 | py | Python | tests/test_serialization.py | robgolding/msrest-for-python | 271c36c5c7a9d5315fbef61f8b2cf829aff8415f | [
"MIT"
] | null | null | null | tests/test_serialization.py | robgolding/msrest-for-python | 271c36c5c7a9d5315fbef61f8b2cf829aff8415f | [
"MIT"
] | null | null | null | tests/test_serialization.py | robgolding/msrest-for-python | 271c36c5c7a9d5315fbef61f8b2cf829aff8415f | [
"MIT"
] | null | null | null | #--------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""), ... | 32.681314 | 200 | 0.547171 | 7,944 | 76,605 | 5.096425 | 0.083837 | 0.05187 | 0.026676 | 0.03458 | 0.681445 | 0.637825 | 0.597515 | 0.557798 | 0.527343 | 0.495332 | 0 | 0.029378 | 0.308165 | 76,605 | 2,343 | 201 | 32.695262 | 0.734518 | 0.029228 | 0 | 0.542012 | 0 | 0.001183 | 0.153449 | 0.02098 | 0 | 0 | 0 | 0.000427 | 0.171006 | 0 | null | null | 0.001775 | 0.010059 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed5df940ffeb4069e92574e58be2fe7cf772c612 | 715 | py | Python | ws/handler/login.py | fabaff/automate-ws | a9442f287692787e3f253e1ff23758bec8f3902e | [
"MIT"
] | null | null | null | ws/handler/login.py | fabaff/automate-ws | a9442f287692787e3f253e1ff23758bec8f3902e | [
"MIT"
] | null | null | null | ws/handler/login.py | fabaff/automate-ws | a9442f287692787e3f253e1ff23758bec8f3902e | [
"MIT"
] | null | null | null | import aiohttp_jinja2
from aiohttp import web
from aiohttp_security import remember
from ws.authorization import check_credentials
from ws.handler.index import Handler as Parent
class Handler(Parent):
@aiohttp_jinja2.template("index.html")
async def post(self, request):
response = web.HTTPFound("/")
... | 31.086957 | 87 | 0.703497 | 80 | 715 | 6.225 | 0.475 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003559 | 0.213986 | 715 | 22 | 88 | 32.5 | 0.882562 | 0 | 0 | 0 | 0 | 0 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.176471 | 0.294118 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed63278ef3944eddf0d6c06004e55b47009e77fc | 401 | py | Python | Chapter02/recipe1.py | pnll/Natural-Language-Processing-with-Python-Cookbook | bed010b10f7d754cd9b7cc0d18fc8d09a2ea14c8 | [
"MIT"
] | null | null | null | Chapter02/recipe1.py | pnll/Natural-Language-Processing-with-Python-Cookbook | bed010b10f7d754cd9b7cc0d18fc8d09a2ea14c8 | [
"MIT"
] | null | null | null | Chapter02/recipe1.py | pnll/Natural-Language-Processing-with-Python-Cookbook | bed010b10f7d754cd9b7cc0d18fc8d09a2ea14c8 | [
"MIT"
] | null | null | null | namesList = ['유나', '지은', '스튜어트', '케빈']
sentence = '우리 강아지는 소파 위에서 잔다'
names = ';'.join(namesList)
print(type(names), ':', names)
wordList = sentence.split(' ')
print((type(wordList)), ':', wordList)
additionExample = '파이썬' + '파이썬' + '파이썬'
multiplicationExample = '파이썬' * 2
print('텍스트 덧셈 :', additionExample)
print('텍스... | 25.0625 | 40 | 0.645885 | 49 | 401 | 5.285714 | 0.591837 | 0.069498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008671 | 0.137157 | 401 | 16 | 41 | 25.0625 | 0.739884 | 0 | 0 | 0 | 0 | 0 | 0.174129 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ed64e3d5a95fe7a8842aa8d08b5a5c5818c048d9 | 11,903 | py | Python | show-adapt-tell/pretrain_CNN_D.py | tsenghungchen/show-adapt-and-tell | 6daf82e519bbbf70fdd54d659ba17efb665395b5 | [
"MIT"
] | 166 | 2017-08-15T04:22:56.000Z | 2021-11-08T11:57:02.000Z | show-adapt-tell/pretrain_CNN_D.py | sususushi/show-adapt-and-tell | 6daf82e519bbbf70fdd54d659ba17efb665395b5 | [
"MIT"
] | 16 | 2017-08-25T10:18:46.000Z | 2021-10-30T18:30:12.000Z | show-adapt-tell/pretrain_CNN_D.py | sususushi/show-adapt-and-tell | 6daf82e519bbbf70fdd54d659ba17efb665395b5 | [
"MIT"
] | 49 | 2017-08-25T09:29:09.000Z | 2021-12-07T10:46:51.000Z | from __future__ import division
import os
import time
import tensorflow as tf
import numpy as np
from tqdm import tqdm
from highway import *
import pdb
class D_pretrained():
def __init__(self, sess, dataset, negative_dataset, D_info, conf=None, l2_reg_lambda=0.2):
self.sess = sess
self.batch_size ... | 50.223629 | 131 | 0.62228 | 1,603 | 11,903 | 4.353088 | 0.15471 | 0.042562 | 0.059616 | 0.027228 | 0.316566 | 0.263829 | 0.199771 | 0.158928 | 0.129837 | 0.115936 | 0 | 0.015918 | 0.250525 | 11,903 | 236 | 132 | 50.436441 | 0.766282 | 0.058977 | 0 | 0.106061 | 0 | 0 | 0.061135 | 0.01271 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040404 | null | null | 0.040404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed66947c4b329e0a232383041ca41af23801803d | 3,383 | py | Python | ansible/venv/lib/python2.7/site-packages/ansible/modules/commands/script.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 17 | 2017-06-07T23:15:01.000Z | 2021-08-30T14:32:36.000Z | ansible/venv/lib/python2.7/site-packages/ansible/modules/commands/script.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 9 | 2017-06-25T03:31:52.000Z | 2021-05-17T23:43:12.000Z | ansible/venv/lib/python2.7/site-packages/ansible/modules/commands/script.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 3 | 2018-05-26T21:31:22.000Z | 2019-09-28T17:00:45.000Z | # Copyright: (c) 2012, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterface'],
... | 37.175824 | 157 | 0.715933 | 510 | 3,383 | 4.7 | 0.392157 | 0.041302 | 0.037964 | 0.037547 | 0.312057 | 0.303713 | 0.20776 | 0.182728 | 0.130997 | 0.068419 | 0 | 0.013821 | 0.208691 | 3,383 | 90 | 158 | 37.588889 | 0.881584 | 0.037541 | 0 | 0.21519 | 0 | 0.088608 | 0.932063 | 0.064863 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012658 | 0 | 0.012658 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed68e68ffd2d97fc384c53d2d8493ddd4a5b4667 | 6,252 | py | Python | src/sage/stats/distributions/discrete_gaussian_polynomial.py | dimpase/sagetrac-mirror | 473cd41f19ec23df7e207391cfb0cf41c7c4ef46 | [
"BSL-1.0"
] | null | null | null | src/sage/stats/distributions/discrete_gaussian_polynomial.py | dimpase/sagetrac-mirror | 473cd41f19ec23df7e207391cfb0cf41c7c4ef46 | [
"BSL-1.0"
] | null | null | null | src/sage/stats/distributions/discrete_gaussian_polynomial.py | dimpase/sagetrac-mirror | 473cd41f19ec23df7e207391cfb0cf41c7c4ef46 | [
"BSL-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
r"""
Discrete Gaussian Samplers for `\ZZ[x]`
This class realizes oracles which returns polynomials in `\ZZ[x]`
where each coefficient is sampled independently with a probability
proportional to `\exp(-(x-c)²/(2σ²))`.
AUTHORS:
- Martin Albrecht, Robert Fitzpatrick, Daniel Cabracas, Florian Göp... | 44.657143 | 142 | 0.663468 | 776 | 6,252 | 5.29768 | 0.314433 | 0.006811 | 0.081732 | 0.043785 | 0.375334 | 0.345415 | 0.333009 | 0.311117 | 0.311117 | 0.311117 | 0 | 0.025431 | 0.22009 | 6,252 | 139 | 143 | 44.978417 | 0.817678 | 0.801504 | 0 | 0 | 0 | 0 | 0.100478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed6930ffd337f64034ec2681eb16df00a771d76a | 1,765 | py | Python | python/runtime/dbapi/__init__.py | hebafer/sqlflow | d77416ae1dced412728783abee2d1008720d51f9 | [
"Apache-2.0"
] | 4,742 | 2019-04-09T23:56:31.000Z | 2022-03-29T04:00:05.000Z | python/runtime/dbapi/__init__.py | hebafer/sqlflow | d77416ae1dced412728783abee2d1008720d51f9 | [
"Apache-2.0"
] | 1,386 | 2019-04-09T20:43:26.000Z | 2022-01-29T00:44:24.000Z | python/runtime/dbapi/__init__.py | hebafer/sqlflow | d77416ae1dced412728783abee2d1008720d51f9 | [
"Apache-2.0"
] | 750 | 2019-04-09T23:14:53.000Z | 2022-03-23T12:42:33.000Z | # Copyright 2020 The SQLFlow Authors. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 34.607843 | 76 | 0.710482 | 237 | 1,765 | 5.274262 | 0.561181 | 0.048 | 0.0512 | 0.0256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.21813 | 1,765 | 50 | 77 | 35.3 | 0.897101 | 0.526346 | 0 | 0 | 0 | 0 | 0.102922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ed6b72ece10ebfaf558016eef7a3e217f77a0185 | 1,503 | py | Python | bitquant/sql/stmt.py | rosspalmer/bitQuant | 424745deeef8ee6af6a32f8c508903c2da727f8d | [
"MIT"
] | 27 | 2015-02-22T22:01:27.000Z | 2021-06-24T15:38:03.000Z | bitquant/sql/stmt.py | rosspalmer/bitQuant | 424745deeef8ee6af6a32f8c508903c2da727f8d | [
"MIT"
] | 17 | 2015-03-05T09:02:38.000Z | 2015-08-14T20:21:42.000Z | bitquant/sql/stmt.py | rosspalmer/bitQuant | 424745deeef8ee6af6a32f8c508903c2da727f8d | [
"MIT"
] | 10 | 2015-03-04T08:20:44.000Z | 2020-03-18T03:24:26.000Z | from ..data import tools
from sqlalchemy.sql import select
def auth():
txt = open('auth_sql', 'r')
typ = int(txt.readline().rstrip('\n'))
if typ == 1:
file_path = txt.readline().rstrip('\n')
engine_str = 'sqlite+pysqlite:///%s' % file_path
if typ == 2:
host = txt.readline().rst... | 31.3125 | 81 | 0.540918 | 190 | 1,503 | 4.221053 | 0.294737 | 0.082294 | 0.127182 | 0.134663 | 0.259352 | 0.127182 | 0 | 0 | 0 | 0 | 0 | 0.001843 | 0.27811 | 1,503 | 47 | 82 | 31.978723 | 0.737327 | 0.011311 | 0 | 0 | 0 | 0 | 0.064016 | 0.032345 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04878 | 0.04878 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed6cf366d88f48a0a4fc4695b6b0a44d48157e5a | 1,521 | py | Python | BOGGLE/GUI/model.py | katiewimmer/sima_boggle | 3f109dd105621eeb0c6a3674afd325bc502aab16 | [
"MIT"
] | null | null | null | BOGGLE/GUI/model.py | katiewimmer/sima_boggle | 3f109dd105621eeb0c6a3674afd325bc502aab16 | [
"MIT"
] | 5 | 2020-10-13T20:41:43.000Z | 2020-10-28T18:40:32.000Z | BOGGLE/GUI/model.py | katiewimmer/sima_boggle | 3f109dd105621eeb0c6a3674afd325bc502aab16 | [
"MIT"
] | 10 | 2020-10-09T02:11:02.000Z | 2020-11-21T02:26:57.000Z | def random_board():
'''
Creates the dice which have letters on each side --> Array of length 6 per die
'''
self.cube_one = ["A","A","E","E","G","N"]
self.cube_two = ["A","O","O","T","T","W"]
self.cube_three = ["D","I","S","T","T","Y"]
self.cube_four = ["E","I","O","S","S","T"]
self.c... | 43.457143 | 148 | 0.558185 | 257 | 1,521 | 3.143969 | 0.284047 | 0.316832 | 0.069307 | 0.066832 | 0.027228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003147 | 0.164366 | 1,521 | 35 | 149 | 43.457143 | 0.632573 | 0.051282 | 0 | 0 | 0 | 0 | 0.068118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed7164aac1415d9f22fdd5c061de4ccbb4eea124 | 2,771 | py | Python | lc0819_most_common_word.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | 8 | 2019-03-18T06:37:24.000Z | 2022-01-30T07:50:58.000Z | lc0819_most_common_word.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | null | null | null | lc0819_most_common_word.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | null | null | null | """Leetcode 819. Most Common Word
Easy
URL: https://leetcode.com/problems/most-common-word/
Given a paragraph and a list of banned words, return the most frequent word that
is not in the list of banned words.
It is guaranteed there is at least one word that isn't banned,
and that the answer is unique.
Words in the l... | 29.795699 | 82 | 0.64345 | 394 | 2,771 | 4.489848 | 0.365482 | 0.014132 | 0.023742 | 0.02883 | 0.134539 | 0.134539 | 0.109666 | 0.109666 | 0.066704 | 0.066704 | 0 | 0.00892 | 0.271743 | 2,771 | 92 | 83 | 30.119565 | 0.867691 | 0.072176 | 0 | 0 | 0 | 0 | 0.071502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed73d5b1643f463405c311f5d444f23ccb61d6dc | 19,378 | py | Python | models/event.py | ebot1234/the-blue-alliance | f4ec33bddc4e742b1ef44795ac942bdc4ad94d25 | [
"MIT"
] | null | null | null | models/event.py | ebot1234/the-blue-alliance | f4ec33bddc4e742b1ef44795ac942bdc4ad94d25 | [
"MIT"
] | null | null | null | models/event.py | ebot1234/the-blue-alliance | f4ec33bddc4e742b1ef44795ac942bdc4ad94d25 | [
"MIT"
] | null | null | null | from google.appengine.ext import ndb
from google.appengine.ext.ndb.tasklets import Future
import datetime
import json
import re
from consts.playoff_type import PlayoffType
from consts.district_type import DistrictType
from consts.event_type import EventType
from context_cache import context_cache
from helpers.locatio... | 34.541889 | 139 | 0.626071 | 2,331 | 19,378 | 5.020592 | 0.161304 | 0.044177 | 0.017944 | 0.013672 | 0.249338 | 0.203538 | 0.186021 | 0.153379 | 0.126122 | 0.107152 | 0 | 0.004499 | 0.288781 | 19,378 | 560 | 140 | 34.603571 | 0.844652 | 0.071473 | 0 | 0.316629 | 0 | 0.002278 | 0.019038 | 0.001661 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052392 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed7adf21768887ba906e01e97c6039854ebc4c3c | 369 | py | Python | tests/test_compatible.py | starofrainnight/ipgetter2 | c4419bb689651d99be6f26fba2492f314a4f9892 | [
"Apache-2.0"
] | 6 | 2020-04-05T19:32:02.000Z | 2021-08-04T05:14:15.000Z | tests/test_compatible.py | starofrainnight/ipgetter2 | c4419bb689651d99be6f26fba2492f314a4f9892 | [
"Apache-2.0"
] | 6 | 2019-08-24T13:58:05.000Z | 2020-10-19T15:46:07.000Z | tests/test_compatible.py | starofrainnight/ipgetter2 | c4419bb689651d99be6f26fba2492f314a4f9892 | [
"Apache-2.0"
] | 2 | 2020-01-11T14:45:41.000Z | 2020-04-10T08:38:11.000Z | # -*- coding: utf-8 -*-
"""Tests for `compatible` package."""
def test_backport_random():
"""Test the backport randome for python 3.5"""
import random
from ipgetter2.compatible import backport_random_choices
population = range(1, 6)
choices = backport_random_choices(random._inst, population)
... | 24.6 | 63 | 0.693767 | 46 | 369 | 5.413043 | 0.630435 | 0.168675 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023179 | 0.181572 | 369 | 14 | 64 | 26.357143 | 0.801325 | 0.257453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ed7ca675901dac4a05b5b153e90289a8c7841e5e | 9,624 | py | Python | sdk/python/pulumi_azure_nextgen/apimanagement/v20190101/user.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_nextgen/apimanagement/v20190101/user.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_nextgen/apimanagement/v20190101/user.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | 45.183099 | 665 | 0.642145 | 1,109 | 9,624 | 5.359784 | 0.192065 | 0.055518 | 0.056528 | 0.038358 | 0.417059 | 0.288358 | 0.222073 | 0.148385 | 0.064939 | 0.050471 | 0 | 0.01079 | 0.25852 | 9,624 | 212 | 666 | 45.396226 | 0.822169 | 0.261118 | 0 | 0.145038 | 1 | 0 | 0.191795 | 0.083545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10687 | false | 0.022901 | 0.053435 | 0.015267 | 0.267176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed7f6a78d0cfabc658c3530309545cd7da62aa10 | 8,474 | py | Python | python/qitoolchain/test/test_qipackage.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | python/qitoolchain/test/test_qipackage.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | python/qitoolchain/test/test_qipackage.py | vbarbaresi/qibuild | eab6b815fe0af49ea5c41ccddcd0dff2363410e1 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the COPYING file.
import os
import pytest
import qisys.archive
from qisys.test.conftest import skip_on_win
import qitoolchain.qipackage
# allow the existing foo/bar/ba... | 34.447154 | 83 | 0.688695 | 1,161 | 8,474 | 4.913006 | 0.14298 | 0.053296 | 0.081346 | 0.069425 | 0.64709 | 0.600631 | 0.554348 | 0.538569 | 0.538569 | 0.495792 | 0 | 0.009378 | 0.144324 | 8,474 | 245 | 84 | 34.587755 | 0.777272 | 0.034812 | 0 | 0.478947 | 0 | 0.005263 | 0.197185 | 0.005998 | 0 | 0 | 0 | 0 | 0.147368 | 0 | null | null | 0 | 0.026316 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed8594cebd91d25461b71e11ba0fd083d1c1a375 | 2,533 | py | Python | mappingpedia/rmljson.py | oeg-upm/mappingpedia-userinterface | 1738b32f704bbf66f1ed8b78c99c71d49b208d43 | [
"Apache-2.0"
] | 3 | 2017-12-01T13:22:31.000Z | 2020-07-07T12:05:28.000Z | mappingpedia/rmljson.py | oeg-upm/mappingpedia-userinterface | 1738b32f704bbf66f1ed8b78c99c71d49b208d43 | [
"Apache-2.0"
] | 29 | 2017-11-23T10:37:34.000Z | 2018-05-10T08:06:24.000Z | mappingpedia/rmljson.py | oeg-upm/mappingpedia-userinterface | 1738b32f704bbf66f1ed8b78c99c71d49b208d43 | [
"Apache-2.0"
] | 1 | 2017-12-01T13:22:52.000Z | 2017-12-01T13:22:52.000Z | # -*- coding: utf-8 -*-
import json
t1 = """
{
"name": "abc",
"dict1": {"A": "aa", "B": "bb"},
"list2": [1,2],
"list1": [1,2,3]
}
"""
t2 = """
{
"name": "abc",
"dict1": {"A": "aa", "B": "bb"},
"list2": [1,2],
"list1": [1,2,3],
"dict2": {"list2_1": [1,2,3,4]}
}
"""
t3 = """
{
"name": "abc",
"dict1": {"A": "aa", "B": ... | 22.415929 | 114 | 0.489143 | 374 | 2,533 | 3.112299 | 0.221925 | 0.130584 | 0.061856 | 0.044674 | 0.304983 | 0.166667 | 0.166667 | 0.166667 | 0.137457 | 0.137457 | 0 | 0.043406 | 0.290565 | 2,533 | 112 | 115 | 22.616071 | 0.604341 | 0.138571 | 0 | 0.289474 | 0 | 0.039474 | 0.354495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.065789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed89474145ad00b4bfd4b580cb69fbe010dca4d6 | 595 | py | Python | core/templatetags/core_extras.py | vitorpvcampos/django-zdesk | b630a468a12b41f4a95c991d81bfcbf5973b5532 | [
"MIT"
] | 2 | 2020-02-27T13:17:24.000Z | 2021-01-29T19:03:53.000Z | core/templatetags/core_extras.py | vitorpvcampos/django-zdesk | b630a468a12b41f4a95c991d81bfcbf5973b5532 | [
"MIT"
] | 236 | 2020-01-31T20:26:36.000Z | 2022-03-18T16:10:36.000Z | core/templatetags/core_extras.py | vitorpvcampos/django-zdesk | b630a468a12b41f4a95c991d81bfcbf5973b5532 | [
"MIT"
] | 1 | 2020-08-13T15:02:03.000Z | 2020-08-13T15:02:03.000Z | import locale
from django import template
register = template.Library()
@register.filter(name='as_percentage_of')
def as_percentage_of(part, whole):
try:
return float(part) / whole * 100
except (ValueError, ZeroDivisionError):
return ""
@register.filter(name='currency_display')
def currenc... | 22.884615 | 62 | 0.72605 | 78 | 595 | 5.384615 | 0.525641 | 0.095238 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.152941 | 595 | 25 | 63 | 23.8 | 0.825397 | 0 | 0 | 0 | 0 | 0 | 0.087395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ed8b2a215f0afa221d668fd749b9953fdd20cb09 | 2,474 | py | Python | src/ralph/assets/utils.py | andrzej-jankowski/ralph | 68ec18a66b8fe47ddf1c082c3ce2d82b2cd430dc | [
"Apache-2.0"
] | null | null | null | src/ralph/assets/utils.py | andrzej-jankowski/ralph | 68ec18a66b8fe47ddf1c082c3ce2d82b2cd430dc | [
"Apache-2.0"
] | null | null | null | src/ralph/assets/utils.py | andrzej-jankowski/ralph | 68ec18a66b8fe47ddf1c082c3ce2d82b2cd430dc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf import settings
from django.db import transaction
class DNSaaSPublisherMixin:
"""Generate data formatted for DNSaaS auto txt update"""
def get_auto_txt_data(self):
data = []
for purpose_name, content in (
('class_name', self.configuration_pa... | 35.855072 | 108 | 0.622878 | 299 | 2,474 | 4.90301 | 0.337793 | 0.081173 | 0.085948 | 0.047067 | 0.098226 | 0.068895 | 0.047749 | 0 | 0 | 0 | 0 | 0.001135 | 0.287793 | 2,474 | 68 | 109 | 36.382353 | 0.830874 | 0.251011 | 0 | 0 | 1 | 0 | 0.046525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed8bb39a699831f26bec05a1c9ed80025b96da1b | 794 | py | Python | sample_project/backend/migrations/0002_song.py | morlandi/editing-django-models-in-the-frontend | 26e444199c51d170e331732d101b9a4ff01c1b00 | [
"MIT"
] | 5 | 2020-02-14T13:19:05.000Z | 2021-06-23T11:18:35.000Z | sample_project/backend/migrations/0002_song.py | morlandi/editing-django-models-in-the-frontend | 26e444199c51d170e331732d101b9a4ff01c1b00 | [
"MIT"
] | 1 | 2019-03-25T13:15:42.000Z | 2019-04-09T06:30:58.000Z | sample_project/backend/migrations/0002_song.py | morlandi/editing-django-models-in-the-frontend | 26e444199c51d170e331732d101b9a4ff01c1b00 | [
"MIT"
] | 3 | 2021-02-18T17:09:32.000Z | 2021-07-17T06:11:38.000Z | # Generated by Django 2.1.1 on 2018-09-23 18:34
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('backend', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Song',
... | 29.407407 | 144 | 0.59068 | 82 | 794 | 5.646341 | 0.646341 | 0.051836 | 0.060475 | 0.095032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04007 | 0.277078 | 794 | 26 | 145 | 30.538462 | 0.766551 | 0.056675 | 0 | 0 | 1 | 0 | 0.100402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed8bcb82e04c3126d4317be2c09231571fd7e3a2 | 1,518 | py | Python | explorer/rpcdaemon.py | bitstein/elements-explorer | ec9e5caa1bc6f209d2fbcea9d9d240075b7a179e | [
"MIT"
] | null | null | null | explorer/rpcdaemon.py | bitstein/elements-explorer | ec9e5caa1bc6f209d2fbcea9d9d240075b7a179e | [
"MIT"
] | null | null | null | explorer/rpcdaemon.py | bitstein/elements-explorer | ec9e5caa1bc6f209d2fbcea9d9d240075b7a179e | [
"MIT"
] | null | null | null |
import requests
import json
RPC_ALLOWED_CALLS = [
"getblockchaininfo",
"getblock",
"getblockhash",
"getrawtransaction",
"getblockstats",
"getrawmempool",
"getmempoolentry",
'savemempool',
]
class RpcCaller(object):
def __init__(self, address, user, password,
**kw... | 28.641509 | 133 | 0.586957 | 155 | 1,518 | 5.593548 | 0.419355 | 0.103806 | 0.034602 | 0.046136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001843 | 0.285244 | 1,518 | 52 | 134 | 29.192308 | 0.797235 | 0.045455 | 0 | 0 | 0 | 0 | 0.200692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.076923 | 0.051282 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed8bd66cb26f31bcb97c65f4e0263e9c14058f3b | 10,680 | py | Python | simulation/v1_to_v2.py | wagnew3/Amodal-3D-Reconstruction-for-Robotic-Manipulationvia-Stability-and-Connectivity--Release | f55c6b0fac44d9d749e7804d99169a39d30c2111 | [
"MIT"
] | null | null | null | simulation/v1_to_v2.py | wagnew3/Amodal-3D-Reconstruction-for-Robotic-Manipulationvia-Stability-and-Connectivity--Release | f55c6b0fac44d9d749e7804d99169a39d30c2111 | [
"MIT"
] | null | null | null | simulation/v1_to_v2.py | wagnew3/Amodal-3D-Reconstruction-for-Robotic-Manipulationvia-Stability-and-Connectivity--Release | f55c6b0fac44d9d749e7804d99169a39d30c2111 | [
"MIT"
] | null | null | null | """ This code is a python script that essentially replicates the code in simulating_data.ipynb
As a script, this can be called many times with a bash script. This helps when I need to kill
the process due to the weird memory leak in PyBullet.
To call this script:
$:~ python generate_data.py <start_sce... | 33.584906 | 125 | 0.617041 | 1,321 | 10,680 | 4.72975 | 0.267222 | 0.019046 | 0.015365 | 0.025928 | 0.239437 | 0.196063 | 0.158771 | 0.130282 | 0.108035 | 0.097791 | 0 | 0.014075 | 0.288202 | 10,680 | 317 | 126 | 33.690852 | 0.807814 | 0.132397 | 0 | 0.132979 | 0 | 0.005319 | 0.227559 | 0.094568 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058511 | null | null | 0.047872 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71e95434ff2965a235252773854859daef95863c | 1,986 | py | Python | src/olympia/constants/licenses.py | mstriemer/olympia | 2e700c20e0a8ed3f0dd389d1521c3798bf7ed7f7 | [
"BSD-3-Clause"
] | 1 | 2020-04-07T07:21:25.000Z | 2020-04-07T07:21:25.000Z | src/olympia/constants/licenses.py | mstriemer/olympia | 2e700c20e0a8ed3f0dd389d1521c3798bf7ed7f7 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/constants/licenses.py | mstriemer/olympia | 2e700c20e0a8ed3f0dd389d1521c3798bf7ed7f7 | [
"BSD-3-Clause"
] | 2 | 2018-03-04T00:11:22.000Z | 2019-12-14T09:45:55.000Z | from django.utils.translation import ugettext_lazy as _lazy
# Built-in Licenses
class _LicenseBase(object):
"""Base class for built-in licenses."""
icons = '' # CSS classes. See zamboni.css for a list.
some_rights = True
class LICENSE_COPYRIGHT(_LicenseBase):
id = 1
name = _lazy(u'All Rights Re... | 30.090909 | 79 | 0.698389 | 291 | 1,986 | 4.536082 | 0.237113 | 0.081818 | 0.1 | 0.072727 | 0.545455 | 0.490152 | 0.418182 | 0.315152 | 0.128788 | 0 | 0 | 0.019136 | 0.18429 | 1,986 | 65 | 80 | 30.553846 | 0.795679 | 0.046828 | 0 | 0 | 0 | 0 | 0.372216 | 0.059385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022222 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
71ed668ec8147bb71a4068d279376a29ff2df562 | 6,122 | py | Python | deep_disfluency/corpus/create_fake_timing_corpus.py | Nagasaki45/deep_disfluency | 4c57a194433af9601ebef0e4c9a451cce4c06252 | [
"MIT"
] | 34 | 2019-05-07T15:19:13.000Z | 2022-02-22T08:30:11.000Z | deep_disfluency/corpus/create_fake_timing_corpus.py | Nagasaki45/deep_disfluency | 4c57a194433af9601ebef0e4c9a451cce4c06252 | [
"MIT"
] | 14 | 2017-05-18T17:18:33.000Z | 2019-02-21T15:52:15.000Z | deep_disfluency/corpus/create_fake_timing_corpus.py | Nagasaki45/deep_disfluency | 4c57a194433af9601ebef0e4c9a451cce4c06252 | [
"MIT"
] | 13 | 2017-12-02T00:54:44.000Z | 2019-04-04T03:54:21.000Z | import csv
from corpus_util import add_word_continuation_tags
def get_tag_data_from_corpus_file(f):
"""Loads from file into four lists of lists of strings of equal length:
one for utterance iDs (IDs))
one for words (seq),
one for pos (pos_seq)
one for tags (targets)."""
f = open(f)
prin... | 38.746835 | 83 | 0.54443 | 694 | 6,122 | 4.59366 | 0.226225 | 0.061167 | 0.071518 | 0.029799 | 0.381744 | 0.309598 | 0.258783 | 0.243099 | 0.243099 | 0.195107 | 0 | 0.006228 | 0.344332 | 6,122 | 158 | 84 | 38.746835 | 0.787992 | 0.089023 | 0 | 0.271186 | 0 | 0 | 0.042735 | 0.022145 | 0 | 0 | 0 | 0 | 0.008475 | 0 | null | null | 0 | 0.016949 | null | null | 0.067797 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71f4de9050031fd130650ac84d9138fbc8f7f813 | 20,754 | py | Python | tests/providers/apache/hive/transfers/test_mysql_to_hive.py | daemon-demon/airflow | 6f96e81f0123b30750fb68ec496246023bf63f35 | [
"Apache-2.0"
] | 2 | 2020-10-23T18:55:03.000Z | 2021-07-13T04:45:49.000Z | tests/providers/apache/hive/transfers/test_mysql_to_hive.py | daemon-demon/airflow | 6f96e81f0123b30750fb68ec496246023bf63f35 | [
"Apache-2.0"
] | 20 | 2021-01-23T12:33:08.000Z | 2021-12-07T22:30:37.000Z | tests/providers/apache/hive/transfers/test_mysql_to_hive.py | daemon-demon/airflow | 6f96e81f0123b30750fb68ec496246023bf63f35 | [
"Apache-2.0"
] | 2 | 2020-10-23T18:55:05.000Z | 2022-02-16T21:53:10.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 37.462094 | 95 | 0.506649 | 2,095 | 20,754 | 4.770406 | 0.184248 | 0.036422 | 0.039624 | 0.045027 | 0.670502 | 0.654693 | 0.65069 | 0.647488 | 0.635081 | 0.627677 | 0 | 0.06896 | 0.372555 | 20,754 | 553 | 96 | 37.529837 | 0.69851 | 0.036234 | 0 | 0.635135 | 0 | 0 | 0.254046 | 0.137732 | 0 | 0 | 0 | 0 | 0.02027 | 1 | 0.018018 | false | 0 | 0.024775 | 0 | 0.045045 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71fb93b8835c8179535783f4dcfa063f7832b6c3 | 491 | py | Python | my_portal/projects/resources.py | cgajagon/my_portal | cea810512528ea4ef30bbc7e14873fa25ed2f54f | [
"MIT"
] | null | null | null | my_portal/projects/resources.py | cgajagon/my_portal | cea810512528ea4ef30bbc7e14873fa25ed2f54f | [
"MIT"
] | null | null | null | my_portal/projects/resources.py | cgajagon/my_portal | cea810512528ea4ef30bbc7e14873fa25ed2f54f | [
"MIT"
] | null | null | null | from django.db import IntegrityError
from my_portal.projects import models
from import_export import resources, fields, widgets
class SupplierResource(resources.ModelResource):
class Meta:
model = models.Supplier
class ProjectResource(resources.ModelResource):
customer = fields.Field(
attribu... | 28.882353 | 72 | 0.731161 | 51 | 491 | 6.960784 | 0.568627 | 0.123944 | 0.078873 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191446 | 491 | 17 | 73 | 28.882353 | 0.894207 | 0 | 0 | 0.153846 | 0 | 0 | 0.054878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9c005e4877627c971b14963326e6222e5c349af0 | 2,215 | py | Python | IPython/kernel/tests/test_launcher.py | ptwobrussell/ipython | 70362b811aced1ceb429433875ac0861c4d0729d | [
"BSD-3-Clause-Clear"
] | 1 | 2021-09-15T18:16:07.000Z | 2021-09-15T18:16:07.000Z | IPython/kernel/tests/test_launcher.py | ptwobrussell/ipython | 70362b811aced1ceb429433875ac0861c4d0729d | [
"BSD-3-Clause-Clear"
] | null | null | null | IPython/kernel/tests/test_launcher.py | ptwobrussell/ipython | 70362b811aced1ceb429433875ac0861c4d0729d | [
"BSD-3-Clause-Clear"
] | null | null | null | """Tests for kernel utility functions
Authors
-------
* MinRK
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2011, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed ... | 34.609375 | 78 | 0.370203 | 192 | 2,215 | 4.244792 | 0.380208 | 0.058896 | 0.051534 | 0.06135 | 0.125153 | 0.125153 | 0.062577 | 0 | 0 | 0 | 0 | 0.01255 | 0.208578 | 2,215 | 63 | 79 | 35.15873 | 0.452367 | 0.373363 | 0 | 0 | 0 | 0 | 0.165689 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.030303 | false | 0 | 0.121212 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c04f3b150112bf8b2e03a64885455a0173ddb0e | 4,452 | py | Python | Widen/LC1223_Dice_Roll_Simulation.py | crazywiden/Leetcode_daily_submit | 15637e260ab547022ac0c828dd196337bd8d50a3 | [
"MIT"
] | null | null | null | Widen/LC1223_Dice_Roll_Simulation.py | crazywiden/Leetcode_daily_submit | 15637e260ab547022ac0c828dd196337bd8d50a3 | [
"MIT"
] | null | null | null | Widen/LC1223_Dice_Roll_Simulation.py | crazywiden/Leetcode_daily_submit | 15637e260ab547022ac0c828dd196337bd8d50a3 | [
"MIT"
] | null | null | null | """
1223. Dice Roll Simulation
A die simulator generates a random number from 1 to 6 for each roll. You introduced a constraint to the generator such that it cannot roll the number i more than rollMax[i] (1-indexed) consecutive times.
Given an array of integers rollMax and an integer n, return the number of distinct ... | 32.49635 | 305 | 0.557502 | 725 | 4,452 | 3.371034 | 0.277241 | 0.013093 | 0.011047 | 0.00982 | 0.246727 | 0.163257 | 0.140344 | 0.115794 | 0.077332 | 0.065057 | 0 | 0.05442 | 0.318958 | 4,452 | 137 | 306 | 32.49635 | 0.751649 | 0.409479 | 0 | 0.253521 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098592 | false | 0 | 0.014085 | 0 | 0.366197 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c0a9d6a28110598a1fb517207776c86a7a06ff2 | 731 | py | Python | rpmreq/exception.py | softwarefactory-project/rpmreq | b9b30cf6a184929db23ac86c8cc037592ee8b6be | [
"Apache-2.0"
] | null | null | null | rpmreq/exception.py | softwarefactory-project/rpmreq | b9b30cf6a184929db23ac86c8cc037592ee8b6be | [
"Apache-2.0"
] | null | null | null | rpmreq/exception.py | softwarefactory-project/rpmreq | b9b30cf6a184929db23ac86c8cc037592ee8b6be | [
"Apache-2.0"
] | 1 | 2019-03-10T10:07:04.000Z | 2019-03-10T10:07:04.000Z | class RPMReqException(Exception):
msg_fmt = "An unknown error occurred"
def __init__(self, msg=None, **kwargs):
self.kwargs = kwargs
if not msg:
try:
msg = self.msg_fmt % kwargs
except Exception:
msg = self.msg_fmt
super(RPMReqExce... | 26.107143 | 73 | 0.652531 | 83 | 731 | 5.566265 | 0.506024 | 0.090909 | 0.181818 | 0.056277 | 0.125541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248974 | 731 | 27 | 74 | 27.074074 | 0.84153 | 0 | 0 | 0 | 0 | 0 | 0.229822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c0add63c49153ef3d56e582862189b5ff61708c | 3,036 | py | Python | tests/utils/test_extendable_enum.py | ZackPashkin/toloka-kit | 8f650e5d8cdded1949ca633cf78f9b851ce839bb | [
"Apache-2.0"
] | 153 | 2021-02-06T13:41:11.000Z | 2022-03-19T17:51:01.000Z | tests/utils/test_extendable_enum.py | ZackPashkin/toloka-kit | 8f650e5d8cdded1949ca633cf78f9b851ce839bb | [
"Apache-2.0"
] | 29 | 2021-01-15T12:54:37.000Z | 2022-02-07T07:45:32.000Z | tests/utils/test_extendable_enum.py | ZackPashkin/toloka-kit | 8f650e5d8cdded1949ca633cf78f9b851ce839bb | [
"Apache-2.0"
] | 17 | 2021-01-29T15:20:04.000Z | 2022-01-30T07:21:03.000Z | import pytest
from enum import Enum
from toloka.client._converter import converter
from toloka.util._extendable_enum import extend_enum, ExtendableStrEnum
from toloka.client.primitives.base import BaseTolokaObject
@pytest.fixture
def test_enum():
class TestEnum(Enum):
A = 'a'
B = 'b'
return ... | 27.853211 | 84 | 0.684783 | 397 | 3,036 | 4.982368 | 0.153652 | 0.191102 | 0.218402 | 0.157735 | 0.394843 | 0.299292 | 0.122346 | 0.122346 | 0.043478 | 0.043478 | 0 | 0.000411 | 0.198287 | 3,036 | 108 | 85 | 28.111111 | 0.812243 | 0.007905 | 0 | 0.12 | 0 | 0 | 0.033234 | 0 | 0 | 0 | 0 | 0 | 0.346667 | 1 | 0.106667 | false | 0.04 | 0.066667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c0d50811f0ec320435404fafde81e8e288376fa | 3,861 | py | Python | alipay/aop/api/domain/AlipayEbppIndustryBillNettingRefundModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/AlipayEbppIndustryBillNettingRefundModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/AlipayEbppIndustryBillNettingRefundModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.IndustryExtendField import IndustryExtendField
class AlipayEbppIndustryBillNettingRefundModel(object):
def __init__(self):
self._alipay_bill_no = None
self._i... | 34.168142 | 103 | 0.618752 | 462 | 3,861 | 4.82684 | 0.123377 | 0.131839 | 0.178924 | 0.216592 | 0.427354 | 0.302691 | 0.154709 | 0.136771 | 0.083408 | 0.050224 | 0 | 0.000733 | 0.293188 | 3,861 | 112 | 104 | 34.473214 | 0.816416 | 0.010878 | 0 | 0.115789 | 0 | 0 | 0.088073 | 0.027261 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136842 | false | 0 | 0.031579 | 0.052632 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c0df04086246c00c59d7d3313cde1e56be79ae2 | 32,968 | py | Python | peripheral/tc_u2212/config/tc.py | Techdisc/Microchip | ea8391c689c4badbe2f9ac5181e21bbd5d9d1e54 | [
"0BSD"
] | null | null | null | peripheral/tc_u2212/config/tc.py | Techdisc/Microchip | ea8391c689c4badbe2f9ac5181e21bbd5d9d1e54 | [
"0BSD"
] | null | null | null | peripheral/tc_u2212/config/tc.py | Techdisc/Microchip | ea8391c689c4badbe2f9ac5181e21bbd5d9d1e54 | [
"0BSD"
] | null | null | null | # coding: utf-8
"""*****************************************************************************
* Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* re... | 50.103343 | 198 | 0.71442 | 3,056 | 32,968 | 7.46695 | 0.145288 | 0.038564 | 0.01341 | 0.014944 | 0.351242 | 0.315965 | 0.236207 | 0.186204 | 0.164118 | 0.149349 | 0 | 0.007057 | 0.140409 | 32,968 | 657 | 199 | 50.179604 | 0.798158 | 0.027785 | 0 | 0.29065 | 0 | 0 | 0.156064 | 0.062971 | 0 | 0 | 0.000204 | 0 | 0 | 0 | null | null | 0 | 0.002033 | null | null | 0.002033 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c0f01f158dd3c080de4fcae5809c2798e298868 | 19,645 | py | Python | src/python/infant_eeg/tobii_controller.py | jbonaiuto/infant_eeg | 6368e253f9990dbfd9717f2d862c0b0c46d64f3b | [
"MIT"
] | null | null | null | src/python/infant_eeg/tobii_controller.py | jbonaiuto/infant_eeg | 6368e253f9990dbfd9717f2d862c0b0c46d64f3b | [
"MIT"
] | null | null | null | src/python/infant_eeg/tobii_controller.py | jbonaiuto/infant_eeg | 6368e253f9990dbfd9717f2d862c0b0c46d64f3b | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# Tobii controller for PsychoPy
# authors: Hiroyuki Sogo, Horea Christian
# - Tobii SDK 3.0 is required
#
import datetime
import os
from math import degrees, atan2
# from psychopy.tools.monitorunittools import pix2deg
from psychopy.misc import pix2deg
import tobii.sdk.mainloop
import tobii.sdk.tim... | 42.156652 | 146 | 0.541359 | 2,179 | 19,645 | 4.791648 | 0.153281 | 0.044249 | 0.037927 | 0.020688 | 0.321617 | 0.265109 | 0.226032 | 0.164448 | 0.133416 | 0.123934 | 0 | 0.020857 | 0.33861 | 19,645 | 465 | 147 | 42.247312 | 0.782729 | 0.051362 | 0 | 0.259777 | 0 | 0.00838 | 0.075536 | 0.008035 | 0.002793 | 0 | 0.001093 | 0 | 0 | 0 | null | null | 0.01676 | 0.041899 | null | null | 0.053073 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c24f5cc97a3729775090bf11274b77404d3b00f | 386 | py | Python | src/genius/migrations/0002_create_class_created_on.py | VikrantAgrahari/littlegenius | f7a7d5f2ecacb862317df35e83de4ae43b5a1bc9 | [
"MIT"
] | null | null | null | src/genius/migrations/0002_create_class_created_on.py | VikrantAgrahari/littlegenius | f7a7d5f2ecacb862317df35e83de4ae43b5a1bc9 | [
"MIT"
] | null | null | null | src/genius/migrations/0002_create_class_created_on.py | VikrantAgrahari/littlegenius | f7a7d5f2ecacb862317df35e83de4ae43b5a1bc9 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-15 11:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('genius', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='create_class',
name='created_on',
... | 20.315789 | 54 | 0.598446 | 42 | 386 | 5.380952 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069091 | 0.287565 | 386 | 18 | 55 | 21.444444 | 0.752727 | 0.11658 | 0 | 0 | 1 | 0 | 0.117994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c26442b6400cae7e75fad9cb4ec1782d857f76f | 1,861 | py | Python | petstagram/petstagram/main/views/pet_photos.py | Didomitko/python-web-frameworks-demo-repo- | 335750ac819d39cc78a7e467608b194aef23359f | [
"MIT"
] | null | null | null | petstagram/petstagram/main/views/pet_photos.py | Didomitko/python-web-frameworks-demo-repo- | 335750ac819d39cc78a7e467608b194aef23359f | [
"MIT"
] | null | null | null | petstagram/petstagram/main/views/pet_photos.py | Didomitko/python-web-frameworks-demo-repo- | 335750ac819d39cc78a7e467608b194aef23359f | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import render, redirect
from django.urls import reverse_lazy
from django.views.generic import DetailView, CreateView, UpdateView
from django.views import generic as views
from petstagram.main.models import PetPhoto
class PetPhotoDetailsVi... | 30.016129 | 80 | 0.713057 | 229 | 1,861 | 5.593886 | 0.349345 | 0.056206 | 0.04918 | 0.058548 | 0.174863 | 0.135831 | 0.056206 | 0.056206 | 0 | 0 | 0 | 0.00196 | 0.177324 | 1,861 | 61 | 81 | 30.508197 | 0.834749 | 0 | 0 | 0.073171 | 0 | 0 | 0.122647 | 0.051103 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.146341 | 0.04878 | 0.756098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9c2ee3d0ff8181f7621d9bb7d43281da5152f39d | 844 | py | Python | main.py | kennith/auto-detect-color-scheme | 268aabafc72add01d08d8847181549503cb07858 | [
"MIT"
] | null | null | null | main.py | kennith/auto-detect-color-scheme | 268aabafc72add01d08d8847181549503cb07858 | [
"MIT"
] | null | null | null | main.py | kennith/auto-detect-color-scheme | 268aabafc72add01d08d8847181549503cb07858 | [
"MIT"
] | null | null | null | import sublime
import sublime_plugin
from .vendor.darkdetect import isDark, isLight
def plugin_loaded():
auto_color_scheme = AutoColorSchemeCommand(sublime_plugin.TextCommand)
auto_color_scheme.run(sublime_plugin.TextCommand)
class AutoColorSchemeCommand(sublime_plugin.TextCommand):
def run(self, edit):
if isDar... | 29.103448 | 80 | 0.776066 | 108 | 844 | 5.935185 | 0.351852 | 0.085803 | 0.112324 | 0.143526 | 0.230889 | 0.143526 | 0.143526 | 0.143526 | 0 | 0 | 0 | 0 | 0.109005 | 844 | 28 | 81 | 30.142857 | 0.852394 | 0 | 0 | 0 | 0 | 0 | 0.279621 | 0.126777 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.136364 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c3281dc40a8f896a58e4cd1bf2dc009eb08254e | 2,868 | py | Python | ignorance/utils.py | snark/ignorance | c9ec7881165e309c6d18cf00d8d62c9b80ea1168 | [
"0BSD"
] | 9 | 2015-11-30T14:59:46.000Z | 2020-05-06T13:48:05.000Z | ignorance/utils.py | snark/ignorance | c9ec7881165e309c6d18cf00d8d62c9b80ea1168 | [
"0BSD"
] | 4 | 2019-04-29T17:07:18.000Z | 2020-11-19T23:04:43.000Z | ignorance/utils.py | snark/ignorance | c9ec7881165e309c6d18cf00d8d62c9b80ea1168 | [
"0BSD"
] | 4 | 2016-03-04T08:22:16.000Z | 2021-03-29T23:23:07.000Z | # -*- coding: utf-8 -*-
import collections
import os
import re
try:
# pathlib is in python stdlib in python 3.5+
from pathlib import Path
except ImportError:
from pathlib2 import Path
whitespace_re = re.compile(r'(\\ )+$')
IGNORE_RULE_FIELDS = [
'pattern', 'regex', # Basic values
'negation', 'dir... | 30.83871 | 76 | 0.478731 | 321 | 2,868 | 4.161994 | 0.367601 | 0.067365 | 0.02021 | 0.022455 | 0.174401 | 0.106287 | 0.07485 | 0.07485 | 0.041916 | 0.02994 | 0 | 0.00883 | 0.368201 | 2,868 | 92 | 77 | 31.173913 | 0.728477 | 0.162134 | 0 | 0.186667 | 0 | 0 | 0.062316 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.053333 | false | 0 | 0.08 | 0.026667 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c32be62cd2881603cadd496b11d335c1e3cab43 | 2,657 | py | Python | homeassistant/components/rainmachine/config_flow.py | galihmelon/core | 0c852b5f816c9b21f244b7acebfcc952ff29b937 | [
"Apache-2.0"
] | null | null | null | homeassistant/components/rainmachine/config_flow.py | galihmelon/core | 0c852b5f816c9b21f244b7acebfcc952ff29b937 | [
"Apache-2.0"
] | 47 | 2020-07-15T06:41:53.000Z | 2022-03-31T06:01:46.000Z | homeassistant/components/rainmachine/config_flow.py | tedsluis/home-assistant | cc776214772c51d0db808852306fa6762b9616e1 | [
"Apache-2.0"
] | 1 | 2018-08-03T20:06:38.000Z | 2018-08-03T20:06:38.000Z | """Config flow to configure the RainMachine component."""
from regenmaschine import Client
from regenmaschine.errors import RainMachineError
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.const import CONF_IP_ADDRESS, CONF_PASSWORD, CONF_PORT, CONF_SSL
from homeassistant.helpers i... | 34.064103 | 83 | 0.635679 | 315 | 2,657 | 5.050794 | 0.333333 | 0.073539 | 0.065368 | 0.037712 | 0.210559 | 0.065368 | 0.032684 | 0 | 0 | 0 | 0 | 0.000528 | 0.287542 | 2,657 | 77 | 84 | 34.506494 | 0.839937 | 0.108393 | 0 | 0 | 0 | 0 | 0.00703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0.087719 | 0.122807 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9c3d22da28627e4eb812cece35f1dabc5f67a7d8 | 526 | py | Python | Django/makeplan/videos/migrations/0003_auto_20190822_1829.py | taoyan/python | 3fbb1e534ec91b33cd2ac690966d7253c2f5d757 | [
"MIT"
] | 1 | 2019-05-04T09:21:52.000Z | 2019-05-04T09:21:52.000Z | Django/makeplan/videos/migrations/0003_auto_20190822_1829.py | taoyan/python | 3fbb1e534ec91b33cd2ac690966d7253c2f5d757 | [
"MIT"
] | 26 | 2020-07-18T02:02:54.000Z | 2022-02-26T10:49:58.000Z | Django/makeplan/videos/migrations/0003_auto_20190822_1829.py | taoyan/python | 3fbb1e534ec91b33cd2ac690966d7253c2f5d757 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-08-22 10:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('videos', '0002_video_content_template'),
]
operations = [
migrations.Alter... | 25.047619 | 117 | 0.640684 | 60 | 526 | 5.383333 | 0.733333 | 0.092879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054455 | 0.231939 | 526 | 20 | 118 | 26.3 | 0.74505 | 0.131179 | 0 | 0 | 1 | 0 | 0.193833 | 0.112335 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c3dbe9401a67d0e425160fdd76bd5948352156e | 1,382 | py | Python | api/src/authentication/tests/base_test.py | KITHU/demo-api | bcf62a600c9b6dd574266bff5d8f629fbb11528f | [
"MIT"
] | null | null | null | api/src/authentication/tests/base_test.py | KITHU/demo-api | bcf62a600c9b6dd574266bff5d8f629fbb11528f | [
"MIT"
] | null | null | null | api/src/authentication/tests/base_test.py | KITHU/demo-api | bcf62a600c9b6dd574266bff5d8f629fbb11528f | [
"MIT"
] | null | null | null | import json
from rest_framework.test import APIClient
from django.test import TestCase
from api.src.authentication.models import User
class BaseTest(TestCase):
def setUp(self):
self.LOGIN_URL = '/api/v1/auth/login/'
self.REGISTER_URL = '/api/v1/auth/register/'
self.CUSTOMER_PROFILES_URL... | 27.098039 | 80 | 0.573806 | 157 | 1,382 | 4.904459 | 0.407643 | 0.046753 | 0.062338 | 0.054545 | 0.067532 | 0.067532 | 0 | 0 | 0 | 0 | 0 | 0.029532 | 0.289436 | 1,382 | 51 | 81 | 27.098039 | 0.754582 | 0 | 0 | 0 | 0 | 0 | 0.208966 | 0.049168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.083333 | 0.111111 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9c4c339b52050cac5c6968da9af85bcc99c84bc0 | 2,879 | py | Python | inv_check/inv_check.py | aas-integration/integration-test2 | dc9a9b4593cd59841f0d8348056cbff80a9c2a21 | [
"MIT"
] | 3 | 2016-10-10T20:18:51.000Z | 2018-05-01T19:42:10.000Z | inv_check/inv_check.py | aas-integration/integration-test2 | dc9a9b4593cd59841f0d8348056cbff80a9c2a21 | [
"MIT"
] | 38 | 2016-08-22T03:20:25.000Z | 2018-06-11T19:13:05.000Z | inv_check/inv_check.py | aas-integration/integration-test2 | dc9a9b4593cd59841f0d8348056cbff80a9c2a21 | [
"MIT"
] | 7 | 2016-08-29T17:37:42.000Z | 2022-01-28T00:30:10.000Z | import sys, os
import subprocess
import traceback
import urllib
import zipfile
import ontology_to_daikon
import common
daikon_jar = common.get_jar("daikon.jar")
DAIKON_SPLITTER = "====================="
def run_daikon_on_dtrace_file(dtrace_file, classpath=daikon_jar, checked_invariant=None):
cmd = ["java", "-class... | 35.9875 | 124 | 0.723515 | 415 | 2,879 | 4.706024 | 0.281928 | 0.0553 | 0.052227 | 0.053763 | 0.203277 | 0.18382 | 0.137225 | 0.074757 | 0.074757 | 0.051203 | 0 | 0.002095 | 0.170893 | 2,879 | 79 | 125 | 36.443038 | 0.816087 | 0.08892 | 0 | 0.068966 | 0 | 0 | 0.151678 | 0.0434 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12069 | null | null | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c4fa9bd73ca89b4952ce2a4e657208bd575d816 | 1,384 | py | Python | examples/pyqt_builtins_composed_into_class.py | Hc10b/py3traits | 713eec35a5a2f4eba6801c1c7660b863eb692bcc | [
"Apache-2.0"
] | 25 | 2015-05-25T20:27:43.000Z | 2020-08-30T16:37:59.000Z | examples/pyqt_builtins_composed_into_class.py | Hc10b/py3traits | 713eec35a5a2f4eba6801c1c7660b863eb692bcc | [
"Apache-2.0"
] | 2 | 2017-11-02T09:02:37.000Z | 2020-06-16T20:39:56.000Z | examples/pyqt_builtins_composed_into_class.py | Hc10b/py3traits | 713eec35a5a2f4eba6801c1c7660b863eb692bcc | [
"Apache-2.0"
] | 3 | 2015-05-25T20:34:13.000Z | 2020-06-16T13:51:37.000Z | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
import sys
from pytraits import add_traits, setproperty
try:
from PyQt5.QtWidgets import QSpinBox, QApplication, QLineEdit
# We need an application to get things done.
app = QApplication(sys.argv)
# Define a controller that encapsulates handling of two ... | 34.6 | 102 | 0.71315 | 175 | 1,384 | 5.605714 | 0.52 | 0.03262 | 0.024465 | 0.038736 | 0.042813 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00542 | 0.200145 | 1,384 | 39 | 103 | 35.487179 | 0.880759 | 0.315029 | 0 | 0.1 | 0 | 0 | 0.258271 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | false | 0.1 | 0.2 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9c51e7500f9f84b7fd9fa0c4efe0760648c1e466 | 1,539 | py | Python | pykasso/abrechnung.py | pekh/pykasso | 86ece737d62ce28aef00805a19a789714e788453 | [
"MIT"
] | null | null | null | pykasso/abrechnung.py | pekh/pykasso | 86ece737d62ce28aef00805a19a789714e788453 | [
"MIT"
] | null | null | null | pykasso/abrechnung.py | pekh/pykasso | 86ece737d62ce28aef00805a19a789714e788453 | [
"MIT"
] | null | null | null |
from collections import defaultdict
from dataclasses import dataclass
from datetime import date, datetime
from decimal import Decimal
from typing import Dict, List
@dataclass(eq=True, frozen=True)
class Mitglied:
name: str
vorname: str
anrede: str = 'Hallo'
strasse: str = ''
plz: str = ''
ort... | 26.084746 | 92 | 0.638077 | 162 | 1,539 | 6.037037 | 0.475309 | 0.02454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000866 | 0.249513 | 1,539 | 58 | 93 | 26.534483 | 0.845887 | 0.059779 | 0 | 0.045455 | 0 | 0 | 0.038115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.113636 | 0.022727 | 0.568182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9c52a1915ced4d10d0f0aa75922d02b3724230b9 | 1,760 | py | Python | app/post_office/mailgun.py | michel-rodrigues/viggio_backend | f419f0b939209722e1eb1e272f33de172cd5c1f1 | [
"MIT"
] | null | null | null | app/post_office/mailgun.py | michel-rodrigues/viggio_backend | f419f0b939209722e1eb1e272f33de172cd5c1f1 | [
"MIT"
] | null | null | null | app/post_office/mailgun.py | michel-rodrigues/viggio_backend | f419f0b939209722e1eb1e272f33de172cd5c1f1 | [
"MIT"
] | null | null | null | import abc
import requests
import os
from project_configuration.celery import app
class MailCarrier(abc.ABC):
def __init__(self, sender):
self._sender = sender
def _build_request_data(self, mail_request):
template_data = mail_request.template.data
data = {f'v:{field}': getattr(templ... | 24.444444 | 95 | 0.686364 | 218 | 1,760 | 5.178899 | 0.229358 | 0.146147 | 0.049601 | 0.067316 | 0.435784 | 0.370239 | 0.315323 | 0.315323 | 0.283437 | 0.283437 | 0 | 0 | 0.213068 | 1,760 | 71 | 96 | 24.788732 | 0.815162 | 0 | 0 | 0.346939 | 0 | 0 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0.020408 | 0.081633 | 0.040816 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c5619616a9af7fa1de78a8b5d1539fdb45383a2 | 1,058 | py | Python | python/async-workers-queue/app/main.py | vd2org/snippets | 06716f4af60dc0af2951222b8c1e5baf5064cc6b | [
"WTFPL"
] | null | null | null | python/async-workers-queue/app/main.py | vd2org/snippets | 06716f4af60dc0af2951222b8c1e5baf5064cc6b | [
"WTFPL"
] | null | null | null | python/async-workers-queue/app/main.py | vd2org/snippets | 06716f4af60dc0af2951222b8c1e5baf5064cc6b | [
"WTFPL"
] | null | null | null | import signal
from aiohttp import ClientSession
from asyncio import PriorityQueue, Event
from asyncio import get_event_loop, gather
from logging import getLogger
from .reader import reader
from .settings import Settings
from .worker import worker
def main(settings: Settings, logger=getLogger('runner.main')):
"""... | 27.128205 | 119 | 0.733459 | 138 | 1,058 | 5.449275 | 0.398551 | 0.047872 | 0.047872 | 0.079787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15879 | 1,058 | 38 | 120 | 27.842105 | 0.844944 | 0.029301 | 0 | 0 | 0 | 0 | 0.057786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.32 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9c56478759ad9aa3c5f58e3544f588ca1a795f61 | 1,646 | py | Python | setup.py | codeclassroom/cc-judge | 830172e5e4c940dac684675ed63ed8cb1ae73b02 | [
"MIT"
] | 19 | 2019-10-19T08:49:53.000Z | 2022-01-08T21:08:14.000Z | setup.py | codeclassroom/cc-judge | 830172e5e4c940dac684675ed63ed8cb1ae73b02 | [
"MIT"
] | 6 | 2019-11-24T07:40:21.000Z | 2020-07-31T17:29:16.000Z | setup.py | codeclassroom/cc-judge | 830172e5e4c940dac684675ed63ed8cb1ae73b02 | [
"MIT"
] | 4 | 2020-02-25T11:50:37.000Z | 2021-07-08T10:28:16.000Z | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="coderunner",
version="1.0",
license="MIT",
author="Bhupesh Varshney",
author_email="varshneybhupesh@gmail.com",
description="A judge for your programs, run and test your programs using... | 40.146341 | 135 | 0.647023 | 171 | 1,646 | 6.169591 | 0.567251 | 0.090047 | 0.118483 | 0.123223 | 0.116588 | 0.081517 | 0 | 0 | 0 | 0 | 0 | 0.016717 | 0.200486 | 1,646 | 40 | 136 | 41.15 | 0.784954 | 0 | 0 | 0.052632 | 0 | 0.026316 | 0.608141 | 0.015188 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.026316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c57067cdaa7ffdfff3cbbc1df5b87bdcea756ff | 343 | py | Python | apps/fyle/migrations/0002_auto_20201221_0814.py | fylein/fyle-xero-api | ba81af058dc413fc801d4cf7d1a8961bd42df469 | [
"MIT"
] | null | null | null | apps/fyle/migrations/0002_auto_20201221_0814.py | fylein/fyle-xero-api | ba81af058dc413fc801d4cf7d1a8961bd42df469 | [
"MIT"
] | 6 | 2020-12-24T10:24:02.000Z | 2021-11-30T05:04:53.000Z | apps/fyle/migrations/0002_auto_20201221_0814.py | fylein/fyle-xero-api | ba81af058dc413fc801d4cf7d1a8961bd42df469 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-12-21 08:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('fyle', '0001_initial'),
]
operations = [
migrations.AlterModelTable(
name='expensegroupsettings',
table='expense_group_setti... | 19.055556 | 47 | 0.609329 | 34 | 343 | 6.058824 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077236 | 0.282799 | 343 | 17 | 48 | 20.176471 | 0.760163 | 0.131195 | 0 | 0 | 1 | 0 | 0.195946 | 0.074324 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c58f2207aed8a95ccc579faab8777a38efda4ab | 2,139 | py | Python | ingestion/src/metadata/generated/schema/entity/services/dashboardService.py | rongfengliang/OpenMetadata | f91bcc03f63cd193d40a21ce25a398cddb389fa4 | [
"Apache-2.0"
] | null | null | null | ingestion/src/metadata/generated/schema/entity/services/dashboardService.py | rongfengliang/OpenMetadata | f91bcc03f63cd193d40a21ce25a398cddb389fa4 | [
"Apache-2.0"
] | null | null | null | ingestion/src/metadata/generated/schema/entity/services/dashboardService.py | rongfengliang/OpenMetadata | f91bcc03f63cd193d40a21ce25a398cddb389fa4 | [
"Apache-2.0"
] | null | null | null | # generated by datamodel-codegen:
# filename: schema/entity/services/dashboardService.json
# timestamp: 2021-10-21T16:10:22+00:00
from __future__ import annotations
from enum import Enum
from typing import Optional
from pydantic import AnyUrl, BaseModel, Field, constr
from ...type import basic, schedule
clas... | 33.952381 | 108 | 0.682562 | 235 | 2,139 | 6.187234 | 0.429787 | 0.110041 | 0.123796 | 0.068776 | 0.19326 | 0.05227 | 0 | 0 | 0 | 0 | 0 | 0.012597 | 0.220664 | 2,139 | 62 | 109 | 34.5 | 0.859628 | 0.059841 | 0 | 0.039216 | 1 | 0 | 0.330842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.039216 | 0.098039 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c5ec0e70b0a96e03f71f7d616731ab3d4dd5061 | 12,200 | py | Python | ovirt-guest-agent/GuestAgentLinux2.py | edwardbadboy/ovirtagent-ubuntu | a2c8dd5daafa4d647284aa3b0322005452fac584 | [
"Apache-2.0"
] | null | null | null | ovirt-guest-agent/GuestAgentLinux2.py | edwardbadboy/ovirtagent-ubuntu | a2c8dd5daafa4d647284aa3b0322005452fac584 | [
"Apache-2.0"
] | null | null | null | ovirt-guest-agent/GuestAgentLinux2.py | edwardbadboy/ovirtagent-ubuntu | a2c8dd5daafa4d647284aa3b0322005452fac584 | [
"Apache-2.0"
] | 1 | 2018-10-16T08:49:58.000Z | 2018-10-16T08:49:58.000Z | #
# Copyright 2010-2012 Red Hat, Inc. and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 34.857143 | 79 | 0.570328 | 1,362 | 12,200 | 4.974303 | 0.269457 | 0.025092 | 0.016531 | 0.015941 | 0.184797 | 0.136089 | 0.112325 | 0.070406 | 0.050185 | 0.038672 | 0 | 0.006523 | 0.321475 | 12,200 | 349 | 80 | 34.95702 | 0.811911 | 0.073852 | 0 | 0.197761 | 0 | 0.003731 | 0.130158 | 0.014216 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014925 | 0.063433 | null | null | 0.037313 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c6326667ed9d6d87ce81364d08a182bc0935132 | 347 | py | Python | sample-teams/teamA/robot1.py | xlcteam/py-soccersim | 933db01d55acd516513687481a2a73ed9adfef9f | [
"Apache-2.0"
] | null | null | null | sample-teams/teamA/robot1.py | xlcteam/py-soccersim | 933db01d55acd516513687481a2a73ed9adfef9f | [
"Apache-2.0"
] | null | null | null | sample-teams/teamA/robot1.py | xlcteam/py-soccersim | 933db01d55acd516513687481a2a73ed9adfef9f | [
"Apache-2.0"
] | null | null | null | def act(robot):
val = robot.ir_sensor.read()
if val == 1:
robot.forward(200)
if val == 2:
robot.forward_right(200)
if val == 3:
robot.reverse_right(200)
if val == 4 or val == 5:
robot.reverse(200)
if val == 6:
robot.reverse_left(200)
if val == 7:
... | 23.133333 | 32 | 0.536023 | 51 | 347 | 3.54902 | 0.411765 | 0.165746 | 0.220994 | 0.143646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107759 | 0.331412 | 347 | 14 | 33 | 24.785714 | 0.672414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c6929cafc5b59298f6fe027869f456b1263c0b3 | 14,314 | py | Python | src/oci/file_storage/models/snapshot.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/file_storage/models/snapshot.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/file_storage/models/snapshot.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 32.531818 | 245 | 0.638047 | 1,763 | 14,314 | 4.982416 | 0.128191 | 0.076503 | 0.07969 | 0.038934 | 0.691143 | 0.60872 | 0.547814 | 0.479736 | 0.45082 | 0.45082 | 0 | 0.006965 | 0.27784 | 14,314 | 439 | 246 | 32.605923 | 0.842798 | 0.592008 | 0 | 0.087719 | 0 | 0 | 0.116623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.017544 | 0.017544 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c71796fd5a7d0c22f48daf8051d155f12f115c3 | 6,570 | py | Python | src/make_unicode_egcb_data.py | FLORG1/oniguruma | f8d6744efe50eb9aeb59d59e46d58979acf831d6 | [
"BSD-2-Clause"
] | 27 | 2020-01-27T16:07:53.000Z | 2022-02-16T04:36:03.000Z | MdeModulePkg/Universal/RegularExpressionDxe/oniguruma/src/make_unicode_egcb_data.py | ESdove/edk2_exploring | 34ff32b45f43d233d9696e7c8e3de68ea3000a7b | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | 21 | 2019-10-18T13:07:05.000Z | 2019-11-14T08:10:56.000Z | MdeModulePkg/Universal/RegularExpressionDxe/oniguruma/src/make_unicode_egcb_data.py | ESdove/edk2_exploring | 34ff32b45f43d233d9696e7c8e3de68ea3000a7b | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | 5 | 2020-08-27T07:21:43.000Z | 2021-09-02T11:57:15.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# make_unicode_egcb_data.py
# Copyright (c) 2017-2019 K.Kosako
import sys
import re
MAX_CODE_POINT = 0x10ffff
PR_TOTAL_REG = re.compile("#\s*Total\s+(?:code\s+points|elements):")
PR_LINE_REG = re.compile("([0-9A-Fa-f]+)(?:..([0-9A-Fa-f]+))?\s*;\s*(\w+)")
PA_LINE_REG = re.... | 24.514925 | 115 | 0.627854 | 1,038 | 6,570 | 3.851638 | 0.238921 | 0.030015 | 0.018009 | 0.016008 | 0.257379 | 0.137069 | 0.087044 | 0.07904 | 0.049025 | 0.049025 | 0 | 0.027048 | 0.22344 | 6,570 | 267 | 116 | 24.606742 | 0.756566 | 0.015677 | 0 | 0.169082 | 0 | 0.014493 | 0.305607 | 0.044919 | 0 | 0 | 0.002478 | 0 | 0 | 0 | null | null | 0 | 0.009662 | null | null | 0.091787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c72b44805cbb6cd1368fd5fe1662958e4f5b9c7 | 822 | py | Python | tests/conftest.py | samuelcolvin/async-redis | 1828a346453c9e95d9f7f3e771b92e97b1ebe5e0 | [
"MIT"
] | 9 | 2020-04-26T17:03:46.000Z | 2021-03-02T14:48:16.000Z | tests/conftest.py | samuelcolvin/async-redis | 1828a346453c9e95d9f7f3e771b92e97b1ebe5e0 | [
"MIT"
] | null | null | null | tests/conftest.py | samuelcolvin/async-redis | 1828a346453c9e95d9f7f3e771b92e97b1ebe5e0 | [
"MIT"
] | 1 | 2020-04-26T18:43:40.000Z | 2020-04-26T18:43:40.000Z | import asyncio
from pytest import fixture
from async_redis import ConnectionSettings, Redis, connect
from async_redis.connection import RawConnection, create_raw_connection
@fixture(name='settings')
def fix_settings(loop):
return ConnectionSettings()
@fixture(name='raw_connection')
def fix_raw_connection(loop... | 28.344828 | 82 | 0.782238 | 104 | 822 | 5.942308 | 0.288462 | 0.067961 | 0.116505 | 0.194175 | 0.252427 | 0.252427 | 0.148867 | 0.148867 | 0.148867 | 0 | 0 | 0 | 0.118005 | 822 | 28 | 83 | 29.357143 | 0.852414 | 0 | 0 | 0.2 | 0 | 0 | 0.042579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.2 | 0.05 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c75d5bf9706578e7796526f10447ce6190a8c51 | 7,750 | py | Python | docs/users_guide/conf.py | shayan-najd/GrowableGHC | d7e3b6162b506ef9348a4b0af6f8d55213a8d7ef | [
"BSD-3-Clause"
] | 2 | 2017-08-01T13:25:35.000Z | 2017-08-07T14:14:08.000Z | docs/users_guide/conf.py | Acidburn0zzz/ghc | 2f29f198bfd04aadfae3b5a6152c855f9bb999d6 | [
"BSD-3-Clause"
] | null | null | null | docs/users_guide/conf.py | Acidburn0zzz/ghc | 2f29f198bfd04aadfae3b5a6152c855f9bb999d6 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# GHC User's Guide documentation build configuration file
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
import sys
import os
# Support for :base-ref:, etc.
sys.path.insert(0, os.path.abspath('.'))
from ghc_config import extlinks, version
import ghc_con... | 33.695652 | 95 | 0.627355 | 966 | 7,750 | 4.933747 | 0.350932 | 0.012589 | 0.014687 | 0.008183 | 0.154008 | 0.117289 | 0.102392 | 0.102392 | 0.072178 | 0.072178 | 0 | 0.00472 | 0.234581 | 7,750 | 229 | 96 | 33.842795 | 0.798719 | 0.342581 | 0 | 0.112903 | 0 | 0 | 0.222709 | 0.004383 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c7c4d98031843ede6fd7afcd003e88a93651293 | 433 | py | Python | src/models.py | sarboleda22/Report-Generator | 38a24302de775cfc3b72b6b28feb4dc6dc37b3b7 | [
"MIT"
] | 1 | 2017-08-16T20:42:13.000Z | 2017-08-16T20:42:13.000Z | src/models.py | sarboleda22/Report-Generator | 38a24302de775cfc3b72b6b28feb4dc6dc37b3b7 | [
"MIT"
] | 1 | 2021-06-01T22:44:53.000Z | 2021-06-01T22:44:53.000Z | src/models.py | sarboleda22/Report-Generator | 38a24302de775cfc3b72b6b28feb4dc6dc37b3b7 | [
"MIT"
] | null | null | null | """
File used for defining all the models of the app
"""
from app import db
class Slide(db.Model):
object_id = db.Column(db.Integer, primary_key=True) #May need to add UUID for increased security
name = db.Column(db.String(80))
content = db.Column(db.Text)
def __init__(self, name, content):
self.name = name
s... | 24.055556 | 97 | 0.702079 | 70 | 433 | 4.185714 | 0.6 | 0.081911 | 0.102389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00551 | 0.161663 | 433 | 17 | 98 | 25.470588 | 0.801653 | 0.212471 | 0 | 0 | 0 | 0 | 0.051205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9c7f86ee132d0e8469ddec3d08b9ee99a9b2d126 | 1,226 | py | Python | rdp/metadata/factory.py | tgweber/rdp | f53de01494a9f3a34af579998073d46df85a9c16 | [
"Apache-2.0"
] | null | null | null | rdp/metadata/factory.py | tgweber/rdp | f53de01494a9f3a34af579998073d46df85a9c16 | [
"Apache-2.0"
] | null | null | null | rdp/metadata/factory.py | tgweber/rdp | f53de01494a9f3a34af579998073d46df85a9c16 | [
"Apache-2.0"
] | null | null | null | ################################################################################
# Copyright: Tobias Weber 2020
#
# Apache 2.0 License
#
# This file contains all code related to metadata factories
#
################################################################################
from rdp.metadata import Metadata, OaiPm... | 30.65 | 93 | 0.545677 | 115 | 1,226 | 5.765217 | 0.513043 | 0.084465 | 0.045249 | 0.078431 | 0.153846 | 0.153846 | 0.153846 | 0.153846 | 0.153846 | 0.153846 | 0 | 0.006586 | 0.256933 | 1,226 | 39 | 94 | 31.435897 | 0.721186 | 0.453507 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
92c6611eb368695832fb5fb1b10eefaa7198ce8b | 1,476 | py | Python | user_service/resources/auth.py | lewisemm/vistagrid-backend-k8 | 08a4753b12db00962a4be94276b76d32b8304272 | [
"MIT"
] | null | null | null | user_service/resources/auth.py | lewisemm/vistagrid-backend-k8 | 08a4753b12db00962a4be94276b76d32b8304272 | [
"MIT"
] | 1 | 2021-02-02T10:23:25.000Z | 2021-02-02T10:23:25.000Z | user_service/resources/auth.py | lewisemm/vistagrid-backend-k8 | 08a4753b12db00962a4be94276b76d32b8304272 | [
"MIT"
] | null | null | null | from flask_jwt_extended import (
create_access_token,
jwt_required,
get_jwt_identity
)
from flask_restful import reqparse, Resource
from user_service.models import User as UserModel
class UserAuth(Resource):
def __init__(self):
self.parser = reqparse.RequestParser()
self.parser.add_arg... | 30.122449 | 77 | 0.586043 | 165 | 1,476 | 5.054545 | 0.393939 | 0.065947 | 0.043165 | 0.05036 | 0.064748 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014764 | 0.311653 | 1,476 | 48 | 78 | 30.75 | 0.806102 | 0 | 0 | 0.139535 | 0 | 0 | 0.140921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.093023 | 0.069767 | 0 | 0.325581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
92c72609f58165fe5900dbf9547a45d3a347d8d5 | 802 | py | Python | tests/syft/core/node/common/action/save_object_action_test.py | chinmayshah99/PySyft | c26c7c9478df37da7d0327a67a5987c2dfd91cbe | [
"MIT"
] | 2 | 2020-03-06T15:51:52.000Z | 2020-03-08T13:14:24.000Z | tests/syft/core/node/common/action/save_object_action_test.py | chinmayshah99/PySyft | c26c7c9478df37da7d0327a67a5987c2dfd91cbe | [
"MIT"
] | 5 | 2020-12-03T21:06:20.000Z | 2020-12-31T03:46:57.000Z | tests/syft/core/node/common/action/save_object_action_test.py | chinmayshah99/PySyft | c26c7c9478df37da7d0327a67a5987c2dfd91cbe | [
"MIT"
] | 1 | 2020-09-29T06:21:17.000Z | 2020-09-29T06:21:17.000Z | # third party
import torch as th
# syft absolute
import syft as sy
from syft.core.common.uid import UID
from syft.core.io.address import Address
from syft.core.io.location import SpecificLocation
from syft.core.node.common.action.save_object_action import SaveObjectAction
def test_save_object_action_serde() -> None:... | 27.655172 | 76 | 0.72818 | 117 | 802 | 4.888889 | 0.42735 | 0.055944 | 0.083916 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.167082 | 802 | 28 | 77 | 28.642857 | 0.844311 | 0.128429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
92cd2095e80e4e97f90b152c1f55fdc9db62a756 | 906 | py | Python | TopInterviewQuestions/EasyCollection/03_LinkedList/LinkedListCycle.py | seokg/leetcode2021 | 731d8c7fdf0cfa618d3dae45a24333b88c5c46fc | [
"MIT"
] | null | null | null | TopInterviewQuestions/EasyCollection/03_LinkedList/LinkedListCycle.py | seokg/leetcode2021 | 731d8c7fdf0cfa618d3dae45a24333b88c5c46fc | [
"MIT"
] | null | null | null | TopInterviewQuestions/EasyCollection/03_LinkedList/LinkedListCycle.py | seokg/leetcode2021 | 731d8c7fdf0cfa618d3dae45a24333b88c5c46fc | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def hasCycle(self, head: ListNode) -> bool:
while head:
if not hasattr(head, 'flag'):
head.flag = False
... | 22.65 | 58 | 0.390728 | 79 | 906 | 4.379747 | 0.455696 | 0.115607 | 0.069364 | 0.092486 | 0.132948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.541943 | 906 | 40 | 59 | 22.65 | 0.833735 | 0.412804 | 0 | 0 | 0 | 0 | 0.007722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92cd56818a4f4666ad70ddb1c97929882a242b2e | 770 | py | Python | SmartFoxServer_PRO_1.6.6/Server/lib/Lib/test/test_md5.py | ChisdealHD/DetlasWorldLinux | 336465a4df1a48c9a273329fc7a09d8099c4e4d5 | [
"MIT"
] | 8 | 2016-11-24T09:38:31.000Z | 2021-04-23T13:04:48.000Z | SmartFoxServer_PRO_1.6.6/Server/lib/Lib/test/test_md5.py | ChisdealHD/DetlasWorldLinux | 336465a4df1a48c9a273329fc7a09d8099c4e4d5 | [
"MIT"
] | 4 | 2018-02-22T07:42:13.000Z | 2021-12-13T10:53:09.000Z | SmartFoxServer_PRO_1.6.6/Server/lib/Lib/test/test_md5.py | ChisdealHD/DetlasWorldLinux | 336465a4df1a48c9a273329fc7a09d8099c4e4d5 | [
"MIT"
] | 4 | 2015-09-09T11:54:37.000Z | 2018-05-26T05:08:14.000Z | # Testing md5 module
import string
from md5 import md5
def hexstr(s):
h = string.hexdigits
r = ''
for c in s:
i = ord(c)
r = r + h[(i >> 4) & 0xF] + h[i & 0xF]
return r
def md5test(s):
return 'MD5 ("' + s + '") = ' + hexstr(md5(s).digest())
print 'MD5 test suite:'
print md5test('... | 24.83871 | 97 | 0.685714 | 93 | 770 | 5.677419 | 0.462366 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174603 | 0.181818 | 770 | 30 | 98 | 25.666667 | 0.663492 | 0.066234 | 0 | 0 | 0 | 0 | 0.360335 | 0.234637 | 0 | 0 | 0.00838 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.391304 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92cf76ddea67a027006195c399cd2ce093f14533 | 3,412 | py | Python | sdk/python/pulumi_azure_native/features/v20210701/_inputs.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/features/v20210701/_inputs.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/features/v20210701/_inputs.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 38.337079 | 124 | 0.676143 | 382 | 3,412 | 5.832461 | 0.209424 | 0.10368 | 0.102334 | 0.118492 | 0.527828 | 0.438959 | 0.253142 | 0.177289 | 0.05386 | 0.05386 | 0 | 0.000373 | 0.214537 | 3,412 | 88 | 125 | 38.772727 | 0.83097 | 0.190504 | 0 | 0.12963 | 1 | 0 | 0.133308 | 0.105806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92d0352900d8cc43afb2fe930116fc346823f059 | 3,504 | py | Python | update.py | yinquan529/platform-external-chromium-trace | 8252ae6b83ea65cf871e7981e981da07379f5a0f | [
"BSD-3-Clause"
] | 1 | 2019-01-22T02:36:35.000Z | 2019-01-22T02:36:35.000Z | update.py | yinquan529/platform-external-chromium-trace | 8252ae6b83ea65cf871e7981e981da07379f5a0f | [
"BSD-3-Clause"
] | null | null | null | update.py | yinquan529/platform-external-chromium-trace | 8252ae6b83ea65cf871e7981e981da07379f5a0f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python2.6
import httplib, json, optparse, os, urllib, shutil, subprocess, sys
output_css_file = 'style.css'
output_js_file = 'script.js'
upstream_svn = 'http://trace-viewer.googlecode.com/svn/trunk/'
script_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
trace_viewer_dir = os.path.join(script_dir, 't... | 34.019417 | 96 | 0.686929 | 501 | 3,504 | 4.624751 | 0.37525 | 0.03798 | 0.033664 | 0.036254 | 0.09495 | 0.091498 | 0 | 0 | 0 | 0 | 0 | 0.006154 | 0.16524 | 3,504 | 102 | 97 | 34.352941 | 0.785983 | 0.08419 | 0 | 0.128205 | 0 | 0 | 0.27054 | 0.029366 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 0.141026 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92db32b176b65774c27ba7d1500c895336c47e3e | 387 | py | Python | ec2_list.py | aksl337/aws_handler | 10d1cba203f28f532590a71a77b82982f7461f59 | [
"MIT"
] | null | null | null | ec2_list.py | aksl337/aws_handler | 10d1cba203f28f532590a71a77b82982f7461f59 | [
"MIT"
] | null | null | null | ec2_list.py | aksl337/aws_handler | 10d1cba203f28f532590a71a77b82982f7461f59 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import boto3
import clipboard
ec2 = boto3.resource('ec2')
def list_ec2():
for instance in ec2.instances.all():
instance.load()
print(instance.id, instance.state, instance.public_dns_name)
if instance.state['Name'] == 'running' or instance.state['Name'] == 'pending':... | 21.5 | 86 | 0.666667 | 50 | 387 | 5.04 | 0.56 | 0.154762 | 0.134921 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022436 | 0.193798 | 387 | 17 | 87 | 22.764706 | 0.785256 | 0.05168 | 0 | 0 | 0 | 0 | 0.068306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92dbdd4335234ba5ddcd58fd099b5f19cfc0d0f0 | 5,126 | py | Python | TIDALDL-PY/tidal_dl/lang/spanish.py | Frikilinux/tidal-dl-test | 2ed222f6e4f7f082345442a25fc1b399d8929879 | [
"Apache-2.0"
] | null | null | null | TIDALDL-PY/tidal_dl/lang/spanish.py | Frikilinux/tidal-dl-test | 2ed222f6e4f7f082345442a25fc1b399d8929879 | [
"Apache-2.0"
] | null | null | null | TIDALDL-PY/tidal_dl/lang/spanish.py | Frikilinux/tidal-dl-test | 2ed222f6e4f7f082345442a25fc1b399d8929879 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : spanish.py
@Time : 2021/05/12
@Author : Frikilinux & JavierSC
@Version : 2.1
@Contact :
@Desc :
'''
class LangSpanish(object):
SETTING = "AJUSTES"
VALUE = "VALORES"
SETTING_DOWNLOAD_PATH = "Ruta de descarga"
SE... | 47.027523 | 116 | 0.68533 | 704 | 5,126 | 4.78267 | 0.335227 | 0.014256 | 0.034749 | 0.021384 | 0.260172 | 0.164538 | 0.120582 | 0.089397 | 0.079596 | 0.058806 | 0 | 0.016173 | 0.203863 | 5,126 | 108 | 117 | 47.462963 | 0.805195 | 0.051892 | 0 | 0 | 0 | 0.069767 | 0.489873 | 0.029958 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
92df2dc27496de4f55557284d2886c7a879e6d6e | 2,149 | py | Python | myportfolio/website/migrations/0002_auto_20171218_1417.py | CCecilia/myportfolio | 6bc61e97359c36076510dfcca11a96ca1cec4384 | [
"MIT"
] | null | null | null | myportfolio/website/migrations/0002_auto_20171218_1417.py | CCecilia/myportfolio | 6bc61e97359c36076510dfcca11a96ca1cec4384 | [
"MIT"
] | null | null | null | myportfolio/website/migrations/0002_auto_20171218_1417.py | CCecilia/myportfolio | 6bc61e97359c36076510dfcca11a96ca1cec4384 | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2017-12-18 14:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Tutorial',
fields=[
('id', m... | 39.796296 | 135 | 0.561657 | 200 | 2,149 | 5.895 | 0.39 | 0.038168 | 0.055131 | 0.072095 | 0.57676 | 0.494487 | 0.401187 | 0.328244 | 0.253605 | 0.253605 | 0 | 0.020395 | 0.292694 | 2,149 | 53 | 136 | 40.54717 | 0.755263 | 0.020009 | 0 | 0.574468 | 1 | 0 | 0.137833 | 0.010932 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92e0520131432b987c5ef809e269df87190ac748 | 1,773 | py | Python | services/sandbox/src/users.py | tinh-sau-di-v/hitbsecconf-ctf-2021 | cbf2f3c8cb3493989f5dcc8dedd353c03f1f5506 | [
"MIT"
] | 16 | 2021-08-27T23:13:06.000Z | 2022-01-13T06:09:04.000Z | services/sandbox/src/users.py | tinh-sau-di-v/hitbsecconf-ctf-2021 | cbf2f3c8cb3493989f5dcc8dedd353c03f1f5506 | [
"MIT"
] | null | null | null | services/sandbox/src/users.py | tinh-sau-di-v/hitbsecconf-ctf-2021 | cbf2f3c8cb3493989f5dcc8dedd353c03f1f5506 | [
"MIT"
] | 3 | 2021-08-28T10:17:01.000Z | 2021-12-10T09:33:44.000Z | from datetime import datetime, timedelta
from typing import Optional
from jose import jwt
from passlib.context import CryptContext
from sqlalchemy import select, insert
import database
import settings
password_crypt_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
class UserAlreadyExists(Exception):
... | 32.236364 | 92 | 0.768754 | 235 | 1,773 | 5.582979 | 0.302128 | 0.091463 | 0.030488 | 0.02439 | 0.259146 | 0.207317 | 0.179878 | 0.179878 | 0.179878 | 0.179878 | 0 | 0.001956 | 0.1348 | 1,773 | 54 | 93 | 32.833333 | 0.853325 | 0 | 0 | 0.060606 | 0 | 0 | 0.007332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.30303 | 0.212121 | 0.060606 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
92e42beb0b26a51b635d2fa11cedf2e195766cc4 | 27,824 | py | Python | Lib/hTools2/modules/unicode.py | gferreira/hTools2 | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | [
"BSD-3-Clause"
] | 11 | 2015-01-06T15:43:56.000Z | 2019-07-27T00:35:20.000Z | Lib/hTools2/modules/unicode.py | gferreira/hTools2 | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | [
"BSD-3-Clause"
] | 2 | 2017-05-17T10:11:46.000Z | 2018-11-21T21:43:43.000Z | Lib/hTools2/modules/unicode.py | gferreira/hTools2 | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | [
"BSD-3-Clause"
] | 4 | 2015-01-10T13:58:50.000Z | 2019-12-18T15:40:14.000Z | # [h] hTools2.modules.unicode
from collections import OrderedDict
'''Tools to work with Unicode, convert glyph names to hex/unicode etc.'''
def clear_unicodes(font):
'''Remove unicodes from all glyphs in the font.'''
for g in font:
g.unicodes = []
font.update()
def auto_unicodes(font, custom_uni... | 25.248639 | 149 | 0.548052 | 2,892 | 27,824 | 5.25242 | 0.704703 | 0.002633 | 0.00395 | 0.00474 | 0.024753 | 0.005003 | 0.005003 | 0.005003 | 0.005003 | 0 | 0 | 0.240443 | 0.285509 | 27,824 | 1,101 | 150 | 25.271571 | 0.523642 | 0.055132 | 0 | 0.007976 | 0 | 0 | 0.465941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004985 | false | 0 | 0.000997 | 0 | 0.010967 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92e897a4dcceff6aa9654afd66c7e4535649daad | 2,678 | py | Python | fan_tools/django/contrib/postgres/indexes.py | micro-fan/fan_tools | 6e146ac4bf6fbe5119a03eb931498c45776a8928 | [
"MIT"
] | 1 | 2021-12-29T19:27:34.000Z | 2021-12-29T19:27:34.000Z | fan_tools/django/contrib/postgres/indexes.py | micro-fan/fan_tools | 6e146ac4bf6fbe5119a03eb931498c45776a8928 | [
"MIT"
] | 1 | 2021-10-30T18:47:05.000Z | 2021-10-30T18:47:05.000Z | fan_tools/django/contrib/postgres/indexes.py | micro-fan/fan_tools | 6e146ac4bf6fbe5119a03eb931498c45776a8928 | [
"MIT"
] | null | null | null | from django.db.models import Index
class LTreeIndex(Index):
def create_sql(self, model, schema_editor, using='', **kwargs):
"""
Update ltree label path when parent/child relationships changed
Taken from: https://github.com/peopledoc/django-ltree-demo
"""
return """
... | 37.194444 | 91 | 0.607916 | 342 | 2,678 | 4.491228 | 0.260234 | 0.104818 | 0.109375 | 0.044271 | 0.535156 | 0.397135 | 0.208333 | 0.108073 | 0.070313 | 0 | 0 | 0 | 0.32711 | 2,678 | 71 | 92 | 37.71831 | 0.852386 | 0.045556 | 0 | 0.272727 | 0 | 0 | 0.911252 | 0.191759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.018182 | 0 | 0.072727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92f15e2a910a9d60bb5cfae72598bcf345cf0fc4 | 944 | py | Python | core/management/commands/queue_process_coordinates.py | johnscancella/open-oni | fe6eeee437b8701cf9d54a5f5dc62fc4bbeb3999 | [
"Apache-2.0"
] | null | null | null | core/management/commands/queue_process_coordinates.py | johnscancella/open-oni | fe6eeee437b8701cf9d54a5f5dc62fc4bbeb3999 | [
"Apache-2.0"
] | null | null | null | core/management/commands/queue_process_coordinates.py | johnscancella/open-oni | fe6eeee437b8701cf9d54a5f5dc62fc4bbeb3999 | [
"Apache-2.0"
] | null | null | null | import os
import logging
from django.core.management.base import BaseCommand
from django.core.management.base import CommandError
from core.management.commands import configure_logging
from core import tasks
configure_logging('queue_process_coordinates.config',
'queue_process_coordinates_%s.log' % ... | 31.466667 | 105 | 0.706568 | 116 | 944 | 5.577586 | 0.491379 | 0.139104 | 0.106646 | 0.074189 | 0.1051 | 0.1051 | 0 | 0 | 0 | 0 | 0 | 0.001342 | 0.210805 | 944 | 29 | 106 | 32.551724 | 0.867114 | 0 | 0 | 0 | 0 | 0 | 0.251059 | 0.09428 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92f39f4fed6fd13ad0b9009384704d3dac28b766 | 4,287 | py | Python | aprel/basics/trajectory.py | dnoursi/APReL | b1ab215ca983b2ae4c058e25506bd7fcb68bf211 | [
"MIT"
] | null | null | null | aprel/basics/trajectory.py | dnoursi/APReL | b1ab215ca983b2ae4c058e25506bd7fcb68bf211 | [
"MIT"
] | null | null | null | aprel/basics/trajectory.py | dnoursi/APReL | b1ab215ca983b2ae4c058e25506bd7fcb68bf211 | [
"MIT"
] | null | null | null | """Modules that are related to environment trajectories."""
from typing import List, Tuple, Union
import time
import numpy as np
from moviepy.editor import VideoFileClip, vfx
from aprel.basics import Environment
class Trajectory:
"""
A class for keeping trajectories that consist of a sequence of state-actio... | 42.87 | 112 | 0.672265 | 557 | 4,287 | 5.091562 | 0.265709 | 0.045839 | 0.031735 | 0.022214 | 0.265162 | 0.232017 | 0.189704 | 0.156559 | 0.156559 | 0.134697 | 0 | 0.002467 | 0.243527 | 4,287 | 99 | 113 | 43.30303 | 0.872032 | 0.480756 | 0 | 0.095238 | 0 | 0 | 0.044983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.119048 | 0 | 0.5 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92f736c45dc44956b74c1d3978d9d80f57eff26e | 692 | py | Python | project_euler/solutions/problem_29.py | cryvate/project-euler | 6ed13880d7916c34554559f5f71662a863735eda | [
"MIT"
] | null | null | null | project_euler/solutions/problem_29.py | cryvate/project-euler | 6ed13880d7916c34554559f5f71662a863735eda | [
"MIT"
] | 9 | 2017-02-20T23:41:40.000Z | 2017-04-16T15:36:54.000Z | project_euler/solutions/problem_29.py | cryvate/project-euler | 6ed13880d7916c34554559f5f71662a863735eda | [
"MIT"
] | null | null | null | from collections import Counter
from ..library.number_theory.primes import generate_prime_factors_multiplicity
def solve(bound: int=100) -> int:
counters = []
for n in range(2, bound + 1):
counter = Counter()
for prime, multiplicity in generate_prime_factors_multiplicity(n):
cou... | 23.862069 | 78 | 0.611272 | 83 | 692 | 5.012048 | 0.409639 | 0.163462 | 0.057692 | 0.09375 | 0.240385 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.284682 | 692 | 28 | 79 | 24.714286 | 0.820202 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92f81b2c2e50c4f1b5e478cc03a02866b23e6c63 | 983 | py | Python | scripts/build_singularity_container.py | mens-artis/Auto-PyTorch | da8528d5cb1d5ac6a9050eaa84a332a5a11ee6d5 | [
"Apache-2.0"
] | 1,657 | 2018-12-26T09:42:58.000Z | 2022-03-31T04:59:25.000Z | scripts/build_singularity_container.py | mens-artis/Auto-PyTorch | da8528d5cb1d5ac6a9050eaa84a332a5a11ee6d5 | [
"Apache-2.0"
] | 320 | 2019-01-11T05:04:48.000Z | 2022-03-31T13:11:04.000Z | scripts/build_singularity_container.py | mens-artis/Auto-PyTorch | da8528d5cb1d5ac6a9050eaa84a332a5a11ee6d5 | [
"Apache-2.0"
] | 208 | 2018-12-01T08:16:59.000Z | 2022-03-30T19:20:02.000Z | import os, subprocess
if __name__ == "__main__":
move_into_container = list()
if input("Do you want to move some of your local files into to container? This will overwrite files from origin/master. (y/n) ").startswith("y"):
for f in sorted(os.listdir()):
if input("Move %s into container (y/... | 54.611111 | 149 | 0.670397 | 140 | 983 | 4.514286 | 0.428571 | 0.164557 | 0.188291 | 0.060127 | 0.06962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188199 | 983 | 17 | 150 | 57.823529 | 0.79198 | 0 | 0 | 0.125 | 0 | 0.0625 | 0.409969 | 0.052899 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.0625 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92faef9780d80e126590d1940b62ec1be4a0cab9 | 892 | py | Python | historical_exercises/api-scripts.exercises/show_history.py | mvdbeek/bioblend-tutorial | 4b5a254e05bbdc1c376eb4840167796374efce0e | [
"MIT"
] | 12 | 2015-07-07T13:24:55.000Z | 2020-07-18T19:03:45.000Z | historical_exercises/api-scripts.exercises/show_history.py | mvdbeek/bioblend-tutorial | 4b5a254e05bbdc1c376eb4840167796374efce0e | [
"MIT"
] | 3 | 2015-11-01T20:54:05.000Z | 2020-07-15T18:48:16.000Z | historical_exercises/api-scripts.exercises/show_history.py | mvdbeek/bioblend-tutorial | 4b5a254e05bbdc1c376eb4840167796374efce0e | [
"MIT"
] | 13 | 2015-07-06T08:27:22.000Z | 2021-05-28T13:08:04.000Z | #!/usr/bin/env python
import sys
import json
import output
import requests
BASE_URL = 'http://localhost:8080'
# -----------------------------------------------------------------------------
# http://galaxy-central.readthedocs.org/en/latest/lib/galaxy.webapps.galaxy.api.html#galaxy.webapps.galaxy.api.histories.Histor... | 30.758621 | 145 | 0.552691 | 95 | 892 | 5.031579 | 0.557895 | 0.08159 | 0.119247 | 0.138075 | 0.188285 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006631 | 0.154709 | 892 | 28 | 146 | 31.857143 | 0.627321 | 0.58296 | 0 | 0 | 0 | 0 | 0.110803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92faf48bc53b3501ce3196c0627a4f88eb093bfa | 1,772 | py | Python | configs/kitti_config.py | wqdun/MobileNet | 8d4f673a8deeeeae9998f069dafb0d68f399cbb8 | [
"Apache-2.0"
] | 1,698 | 2017-04-19T12:37:58.000Z | 2022-03-25T09:32:53.000Z | configs/kitti_config.py | wqdun/MobileNet | 8d4f673a8deeeeae9998f069dafb0d68f399cbb8 | [
"Apache-2.0"
] | 83 | 2017-04-21T08:34:17.000Z | 2022-03-13T09:41:26.000Z | configs/kitti_config.py | wqdun/MobileNet | 8d4f673a8deeeeae9998f069dafb0d68f399cbb8 | [
"Apache-2.0"
] | 576 | 2017-04-20T15:07:30.000Z | 2022-03-03T06:37:22.000Z | from easydict import EasyDict as edict
import numpy as np
config = edict()
config.IMG_HEIGHT = 375
config.IMG_WIDTH = 1242
# TODO(shizehao): infer fea shape in run time
config.FEA_HEIGHT = 12
config.FEA_WIDTH = 39
config.EPSILON = 1e-16
config.LOSS_COEF_BBOX = 5.0
config.LOSS_COEF_CONF_POS = 75.0
config.LOSS_COEF_... | 21.349398 | 79 | 0.568849 | 270 | 1,772 | 3.577778 | 0.37037 | 0.055901 | 0.056936 | 0.046584 | 0.229814 | 0.180124 | 0.180124 | 0.180124 | 0.093168 | 0.093168 | 0 | 0.095385 | 0.266366 | 1,772 | 82 | 80 | 21.609756 | 0.647692 | 0.079571 | 0 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.017544 | false | 0 | 0.035088 | 0 | 0.070175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
130225e87dab0d7378b5176329068282d554c99c | 1,783 | py | Python | hangman..py | codesopenly/Hangman | d506478b7ff8e2824cc2a5f0daeaa945cb73c36c | [
"MIT"
] | null | null | null | hangman..py | codesopenly/Hangman | d506478b7ff8e2824cc2a5f0daeaa945cb73c36c | [
"MIT"
] | null | null | null | hangman..py | codesopenly/Hangman | d506478b7ff8e2824cc2a5f0daeaa945cb73c36c | [
"MIT"
] | 1 | 2020-10-15T13:34:11.000Z | 2020-10-15T13:34:11.000Z | # Write your code here
import random
word2 = random.choice(['python', 'java', 'kotlin', 'javascript'])
word3 = word2
word3 = list(word3)
for i in range(len(word2)):
word3[i] = '-'
word3 = ''.join([str(elem) for elem in word3])
print("H A N G M A N")
input1 = []
i = 0
while i < 8:
word3 = ''.join([str(ele... | 31.280702 | 88 | 0.443073 | 204 | 1,783 | 3.872549 | 0.338235 | 0.044304 | 0.055696 | 0.070886 | 0.329114 | 0.329114 | 0.303797 | 0.303797 | 0.179747 | 0 | 0 | 0.033676 | 0.400449 | 1,783 | 56 | 89 | 31.839286 | 0.705332 | 0.05272 | 0 | 0.354167 | 0 | 0 | 0.182789 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0 | false | 0 | 0.020833 | 0 | 0.020833 | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13022c9cb74775a410db2a2184f94cb04035a3b2 | 224 | py | Python | tests/test_json_decode.py | joergschultzelutter/activesoup | 1a455b338dc7ec0c2b0b06c47d16b7c57550d4c8 | [
"MIT"
] | 33 | 2016-04-10T09:35:07.000Z | 2022-03-15T22:20:34.000Z | tests/test_json_decode.py | joergschultzelutter/activesoup | 1a455b338dc7ec0c2b0b06c47d16b7c57550d4c8 | [
"MIT"
] | 5 | 2016-09-17T15:39:04.000Z | 2021-05-29T15:27:45.000Z | tests/test_json_decode.py | joergschultzelutter/activesoup | 1a455b338dc7ec0c2b0b06c47d16b7c57550d4c8 | [
"MIT"
] | 7 | 2016-09-17T15:32:22.000Z | 2022-03-15T22:23:30.000Z | from activesoup import driver
def test_json_response_decoded_as_json_object(localwebserver):
d = driver.Driver()
resp = d.get(f"http://localhost:{localwebserver.port}/json?foo=bar")
assert resp["foo"] == "bar"
| 28 | 72 | 0.727679 | 31 | 224 | 5.064516 | 0.709677 | 0.076433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133929 | 224 | 7 | 73 | 32 | 0.809278 | 0 | 0 | 0 | 0 | 0 | 0.254464 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13085edd5dc9b34b5bd7d7bd5a10235a2df3586a | 417 | py | Python | custom/deployer/tasks.py | jalandis/orchestration-test-spike | 0c124260a7f2c1e9680881ebaa1c5c4eeb63c4de | [
"MIT"
] | null | null | null | custom/deployer/tasks.py | jalandis/orchestration-test-spike | 0c124260a7f2c1e9680881ebaa1c5c4eeb63c4de | [
"MIT"
] | null | null | null | custom/deployer/tasks.py | jalandis/orchestration-test-spike | 0c124260a7f2c1e9680881ebaa1c5c4eeb63c4de | [
"MIT"
] | null | null | null | import os
import invoke
def get_pylint_args():
for root, dirs, files in os.walk("{}/deployer".format(os.getcwd())):
for file in files:
if file.endswith(".py"):
yield os.path.join(root, file)
@invoke.task
def pylint(ctx):
invoke.run("pylint " + " ".join(get_pylint_args()), echo=True)... | 24.529412 | 72 | 0.635492 | 62 | 417 | 4.209677 | 0.532258 | 0.068966 | 0.099617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194245 | 417 | 16 | 73 | 26.0625 | 0.776786 | 0 | 0 | 0.153846 | 0 | 0 | 0.136691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
130d3e0251bf9cc7e6814fe61987bbdecbec3836 | 16,005 | py | Python | Scripts/TypeRig GUI/Panel/Metrics.py | twardoch/TypeRig | 121838d98ed41160dbebf575d0a5623def0ce256 | [
"BSD-3-Clause"
] | 1 | 2020-07-11T06:18:49.000Z | 2020-07-11T06:18:49.000Z | Scripts/TypeRig GUI/Panel/Metrics.py | twardoch/TypeRig | 121838d98ed41160dbebf575d0a5623def0ce256 | [
"BSD-3-Clause"
] | null | null | null | Scripts/TypeRig GUI/Panel/Metrics.py | twardoch/TypeRig | 121838d98ed41160dbebf575d0a5623def0ce256 | [
"BSD-3-Clause"
] | null | null | null | #FLM: Glyph: Metrics
# ----------------------------------------
# (C) Vassil Kateliev, 2018 (http://www.kateliev.com)
# (C) Karandash Type Foundry (http://www.karandash.eu)
#-----------------------------------------
# No warranties. By using this you agree
# that you use it at your own risk!
# - Init
global pLayers
g... | 35.966292 | 153 | 0.716026 | 2,222 | 16,005 | 4.987399 | 0.135464 | 0.054954 | 0.017325 | 0.043313 | 0.486916 | 0.407508 | 0.361938 | 0.314564 | 0.275763 | 0.257896 | 0 | 0.025127 | 0.129709 | 16,005 | 445 | 154 | 35.966292 | 0.770479 | 0.066979 | 0 | 0.320988 | 0 | 0 | 0.08047 | 0.002953 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018519 | null | null | 0.003086 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13100a9e81087fc88a744f2b9c1d4768ebd0a490 | 560 | py | Python | raciocinio_algoritmico/4- 25-03-2020/04.py | PedroMoreira87/python | 7f8ed2d17ba12a8089618477b2738e3b1c809e74 | [
"MIT"
] | null | null | null | raciocinio_algoritmico/4- 25-03-2020/04.py | PedroMoreira87/python | 7f8ed2d17ba12a8089618477b2738e3b1c809e74 | [
"MIT"
] | null | null | null | raciocinio_algoritmico/4- 25-03-2020/04.py | PedroMoreira87/python | 7f8ed2d17ba12a8089618477b2738e3b1c809e74 | [
"MIT"
] | null | null | null | """matriz = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
print(matriz[0][0])
print(matriz[0][1])
print(matriz[0][2])
print(matriz[1][0])
print(matriz[1][1])
print(matriz[1][2])
print(matriz[2][0])
print(matriz[2][1])
print(matriz[2][2])
print(matriz[0][0] + matriz[0][1] + matriz[0][2] + matriz[1][0] + matriz[1][1] + matriz[1][2] ... | 28 | 142 | 0.560714 | 106 | 560 | 2.962264 | 0.169811 | 0.38535 | 0.101911 | 0.057325 | 0.095541 | 0.095541 | 0.095541 | 0.095541 | 0.095541 | 0.095541 | 0 | 0.12 | 0.151786 | 560 | 19 | 143 | 29.473684 | 0.541053 | 0.646429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1311de40a12b9692c52d2fe8551d8024e1b12b8b | 1,508 | py | Python | python/setup.py | wangmiao1981/sparkMeasure | 8020d18f51827ceb75eca5842a22f2c5f0249819 | [
"Apache-2.0"
] | 453 | 2017-03-30T04:21:03.000Z | 2022-03-31T12:00:40.000Z | python/setup.py | wangmiao1981/sparkMeasure | 8020d18f51827ceb75eca5842a22f2c5f0249819 | [
"Apache-2.0"
] | 35 | 2017-11-04T00:27:14.000Z | 2022-03-04T09:06:30.000Z | python/setup.py | wangmiao1981/sparkMeasure | 8020d18f51827ceb75eca5842a22f2c5f0249819 | [
"Apache-2.0"
] | 101 | 2017-04-20T15:43:22.000Z | 2022-03-19T00:37:44.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
description = 'Python API for sparkMeasure, a tool for performance troubleshooting of Apache Spark workloads'
long_description = """SparkMeasure is a tool for performance troubleshooting of Apache Spark workloads.
It simplifies the collection and an... | 41.888889 | 131 | 0.738064 | 188 | 1,508 | 5.845745 | 0.558511 | 0.054595 | 0.070974 | 0.043676 | 0.21838 | 0.101911 | 0.101911 | 0.101911 | 0.101911 | 0 | 0 | 0.009539 | 0.165782 | 1,508 | 35 | 132 | 43.085714 | 0.86407 | 0.013263 | 0 | 0 | 0 | 0.033333 | 0.66308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1316a474cebee23fb0524633d785b494f9e188ed | 1,705 | py | Python | resource/pypi/cffi-1.9.1/demo/api.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null | resource/pypi/cffi-1.9.1/demo/api.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null | resource/pypi/cffi-1.9.1/demo/api.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null | import cffi
from cffi import FFI
class PythonFFI(FFI):
def __init__(self, backend=None):
FFI.__init__(self, backend=backend)
self._pyexports = {}
def pyexport(self, signature):
tp = self._typeof(signature, consider_function_as_funcptr=True)
def decorator(func):
... | 27.063492 | 73 | 0.521408 | 187 | 1,705 | 4.550802 | 0.331551 | 0.061105 | 0.052879 | 0.054054 | 0.056404 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0055 | 0.360117 | 1,705 | 62 | 74 | 27.5 | 0.774519 | 0 | 0 | 0.08 | 0 | 0 | 0.093731 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0 | null | null | 0 | 0.04 | null | null | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13197e542b7d135850541ebba475b9a613e07d76 | 1,667 | py | Python | eworkshop/utils/models.py | frankfern/eWorkshop-api | 4c8a377e67e42c10ae1a762efca9af2c27a2a561 | [
"MIT"
] | null | null | null | eworkshop/utils/models.py | frankfern/eWorkshop-api | 4c8a377e67e42c10ae1a762efca9af2c27a2a561 | [
"MIT"
] | null | null | null | eworkshop/utils/models.py | frankfern/eWorkshop-api | 4c8a377e67e42c10ae1a762efca9af2c27a2a561 | [
"MIT"
] | null | null | null | from django.db import models
from django.core.validators import RegexValidator
class TimeModel(models.Model):
""" Model that can be inherit to obtain fields like
create time and modified time"""
created = models.DateTimeField(
'created at', auto_now_add=True, help_text='Date time on which objec... | 32.686275 | 93 | 0.675465 | 214 | 1,667 | 5.158879 | 0.420561 | 0.081522 | 0.081522 | 0.108696 | 0.237319 | 0.186594 | 0.132246 | 0.065217 | 0.065217 | 0 | 0 | 0.02521 | 0.214757 | 1,667 | 50 | 94 | 33.34 | 0.818182 | 0.118176 | 0 | 0.181818 | 0 | 0 | 0.171843 | 0.015873 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
131b6e7be9ee6094f88a5d04551eb60c54dce4c4 | 4,205 | py | Python | examples/tweet.py | abdelrahman93/python-twitter | 7fce807400356511c4aaa0883613e0d952060279 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-03-31T10:13:05.000Z | 2022-01-11T19:33:55.000Z | examples/tweet.py | orientchen/python-twitter | 7fce807400356511c4aaa0883613e0d952060279 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-05-28T22:52:39.000Z | 2021-05-28T22:52:39.000Z | examples/tweet.py | orientchen/python-twitter | 7fce807400356511c4aaa0883613e0d952060279 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-02-22T04:21:35.000Z | 2017-01-14T10:53:50.000Z | #!/usr/bin/python2.4
'''Post a message to twitter'''
__author__ = 'dewitt@google.com'
import ConfigParser
import getopt
import os
import sys
import twitter
USAGE = '''Usage: tweet [options] message
This script posts a message to Twitter.
Options:
-h --help : print this help
--consumer-key : the twit... | 29.612676 | 91 | 0.707967 | 524 | 4,205 | 5.532443 | 0.288168 | 0.056916 | 0.052432 | 0.034495 | 0.115212 | 0.030355 | 0.030355 | 0 | 0 | 0 | 0 | 0.001765 | 0.191677 | 4,205 | 141 | 92 | 29.822695 | 0.851133 | 0.004518 | 0 | 0.081081 | 0 | 0.009009 | 0.383486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.036036 | 0.045045 | null | null | 0.045045 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.