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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf763a4c8d592b78137aeb2e05f05552f4b74818 | 2,415 | py | Python | squealy/jinjasql_loader.py | zeeshankhan28/squealy | 5dfe9c5830ef74978f5defc872500fb710097408 | [
"MIT"
] | null | null | null | squealy/jinjasql_loader.py | zeeshankhan28/squealy | 5dfe9c5830ef74978f5defc872500fb710097408 | [
"MIT"
] | null | null | null | squealy/jinjasql_loader.py | zeeshankhan28/squealy | 5dfe9c5830ef74978f5defc872500fb710097408 | [
"MIT"
] | 1 | 2022-03-20T18:24:50.000Z | 2022-03-20T18:24:50.000Z | import datetime
from jinja2 import DictLoader
from jinja2 import Environment
from jinjasql import JinjaSql
from dateutil.relativedelta import relativedelta
from dateutil import rrule
from squealy.exceptions import InvalidDateRangeException
def configure_jinjasql():
"""
Configure the environment and return ji... | 34.014085 | 92 | 0.677433 | 301 | 2,415 | 5.242525 | 0.292359 | 0.108365 | 0.045627 | 0.043093 | 0.193283 | 0.137516 | 0.06654 | 0.045627 | 0 | 0 | 0 | 0.004651 | 0.198758 | 2,415 | 70 | 93 | 34.5 | 0.810853 | 0.086128 | 0 | 0.041667 | 0 | 0 | 0.236465 | 0.035632 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.145833 | 0.020833 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf78dd1874f5270c579ee607ac544063c7bfd4b9 | 21,782 | py | Python | assistant/bot.py | jdcarpinelli/dungeons | fb644ba30e2bbd04d019ac279e27fdedfa1b0110 | [
"MIT"
] | 1 | 2021-02-11T02:50:11.000Z | 2021-02-11T02:50:11.000Z | assistant/bot.py | jdcarpinelli/dungeons | fb644ba30e2bbd04d019ac279e27fdedfa1b0110 | [
"MIT"
] | 1 | 2020-06-18T04:13:53.000Z | 2020-06-20T17:34:59.000Z | assistant/bot.py | jdcarpinelli/dungeons | fb644ba30e2bbd04d019ac279e27fdedfa1b0110 | [
"MIT"
] | null | null | null | ## Dungeons and Dragons Assistant
# Discord bot to handle...
# dice rolling,
# relaying messages,
# roll tracking,
# and (maybe) eventually more!
#
# Copied and modified code from:
# https://realpython.com/how-to-make-a-discord-bot-python/
#
##
# Imports
import sys, os, time, random, datetime
import discord
from dis... | 35.533442 | 229 | 0.622441 | 2,679 | 21,782 | 5.025009 | 0.178798 | 0.021394 | 0.03209 | 0.030308 | 0.608825 | 0.584683 | 0.557941 | 0.536547 | 0.5104 | 0.492869 | 0 | 0.008871 | 0.265081 | 21,782 | 612 | 230 | 35.591503 | 0.832084 | 0.145533 | 0 | 0.405063 | 0 | 0.01519 | 0.334144 | 0.011353 | 0 | 0 | 0.000432 | 0 | 0 | 1 | 0.002532 | false | 0 | 0.020253 | 0.002532 | 0.078481 | 0.027848 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bf78e11629d9199d5d649ba8cfe17400cd17fd79 | 3,217 | py | Python | Custom_Functions/Model_Generator.py | knownstranger03/Human_Pose_Estimation | fad4b171ffc6514918990b5f48e439ca7f5b3184 | [
"MIT"
] | null | null | null | Custom_Functions/Model_Generator.py | knownstranger03/Human_Pose_Estimation | fad4b171ffc6514918990b5f48e439ca7f5b3184 | [
"MIT"
] | null | null | null | Custom_Functions/Model_Generator.py | knownstranger03/Human_Pose_Estimation | fad4b171ffc6514918990b5f48e439ca7f5b3184 | [
"MIT"
] | null | null | null | import keras
import tensorflow
from keras.applications.vgg16 import VGG16
from keras.engine.sequential import Sequential
from keras.layers import Flatten, Dense, Dropout, BatchNormalization, InputLayer, Conv2D, MaxPool2D, Activation, Concatenate,add
from keras.models import Model
import warnings
warnings.filterwar... | 45.957143 | 128 | 0.685421 | 417 | 3,217 | 5.153477 | 0.290168 | 0.067008 | 0.040949 | 0.040949 | 0.327594 | 0.272685 | 0.217776 | 0.180549 | 0.147976 | 0.084691 | 0 | 0.030338 | 0.200808 | 3,217 | 70 | 129 | 45.957143 | 0.805523 | 0.145477 | 0 | 0.220339 | 0 | 0 | 0.15365 | 0.104745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.152542 | 0 | 0.271186 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bf79ad59a70ac719097fc73bb371a6c0bcb6f953 | 1,719 | py | Python | rndt/templatetags/metadata_tags.py | pasing/geonode-rndt | 214a0d17d4b93ae22257550d209c27cad4885692 | [
"BSD-2-Clause"
] | null | null | null | rndt/templatetags/metadata_tags.py | pasing/geonode-rndt | 214a0d17d4b93ae22257550d209c27cad4885692 | [
"BSD-2-Clause"
] | 56 | 2021-01-19T10:06:06.000Z | 2021-09-10T15:31:47.000Z | rndt/templatetags/metadata_tags.py | pasing/geonode-rndt | 214a0d17d4b93ae22257550d209c27cad4885692 | [
"BSD-2-Clause"
] | 1 | 2022-03-20T11:18:01.000Z | 2022-03-20T11:18:01.000Z | from django import template
from django.core.validators import URLValidator
from geonode.base.models import Thesaurus, ThesaurusKeyword
from rndt.models import LayerRNDT
register = template.Library()
@register.filter
def get_thesaurus_about(thesaurus_id):
t = Thesaurus.objects.filter(id=thesaurus_id)
if t.ex... | 27.285714 | 72 | 0.737056 | 222 | 1,719 | 5.518018 | 0.225225 | 0.091429 | 0.097143 | 0.097959 | 0.383673 | 0.383673 | 0.222041 | 0.222041 | 0.16 | 0.086531 | 0 | 0 | 0.169284 | 1,719 | 62 | 73 | 27.725806 | 0.857843 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
bf7af33b2f34f609cedf99fe7194592e05e7a33f | 3,563 | py | Python | cycada/models/MDAN.py | Luodian/MADAN | 7a2918da44f5203b72652bc4cba0e70057482114 | [
"MIT"
] | 150 | 2019-10-29T01:22:31.000Z | 2022-02-16T02:09:31.000Z | cycada/models/MDAN.py | pikachusocute/MADAN | 7a2918da44f5203b72652bc4cba0e70057482114 | [
"MIT"
] | 6 | 2020-01-05T16:56:51.000Z | 2021-10-13T03:25:05.000Z | cycada/models/MDAN.py | pikachusocute/MADAN | 7a2918da44f5203b72652bc4cba0e70057482114 | [
"MIT"
] | 23 | 2019-11-04T15:46:29.000Z | 2022-01-16T09:10:01.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import torch
import torch.nn as nn
import torch.nn.functional as F
logger = logging.getLogger(__name__)
class GradientReversalLayer(torch.autograd.Function):
"""
Implement the gradient reversal layer for the convenience of domain adaptation neural netw... | 35.277228 | 101 | 0.727196 | 518 | 3,563 | 4.820463 | 0.250965 | 0.028034 | 0.030837 | 0.04205 | 0.257909 | 0.164998 | 0.136163 | 0.073688 | 0.073688 | 0.073688 | 0 | 0.013175 | 0.147909 | 3,563 | 100 | 102 | 35.63 | 0.809289 | 0.221162 | 0 | 0.051724 | 0 | 0 | 0.020864 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 1 | 0.086207 | false | 0 | 0.068966 | 0.017241 | 0.258621 | 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 | 0 | 0 | 1 | 0 |
bf7f1d14fd8adbed3cf841350eb294961b1fa9c9 | 776 | py | Python | test/hummingbot/connector/exchange/binance/test_binance_web_utils.py | pecuniafinance/hummingbot | 2cbb19c187a429d3e6000dc938617ca2a1f9f357 | [
"Apache-2.0"
] | 542 | 2021-12-17T22:34:31.000Z | 2022-03-31T14:36:23.000Z | test/hummingbot/connector/exchange/binance/test_binance_web_utils.py | pecuniafinance/hummingbot | 2cbb19c187a429d3e6000dc938617ca2a1f9f357 | [
"Apache-2.0"
] | 291 | 2021-12-17T20:07:53.000Z | 2022-03-31T11:07:23.000Z | test/hummingbot/connector/exchange/binance/test_binance_web_utils.py | pecuniafinance/hummingbot | 2cbb19c187a429d3e6000dc938617ca2a1f9f357 | [
"Apache-2.0"
] | 220 | 2021-12-17T12:41:23.000Z | 2022-03-31T23:03:22.000Z | import unittest
import hummingbot.connector.exchange.binance.binance_constants as CONSTANTS
from hummingbot.connector.exchange.binance import binance_web_utils as web_utils
class BinanceUtilTestCases(unittest.TestCase):
def test_public_rest_url(self):
path_url = "/TEST_PATH"
domain = "com"
... | 38.8 | 99 | 0.755155 | 101 | 776 | 5.465347 | 0.287129 | 0.076087 | 0.097826 | 0.123188 | 0.557971 | 0.485507 | 0.485507 | 0.485507 | 0.485507 | 0.485507 | 0 | 0 | 0.16366 | 776 | 19 | 100 | 40.842105 | 0.850539 | 0 | 0 | 0.285714 | 0 | 0 | 0.033505 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf7fc8a8b957b2b7bbdc53ff35693ae32e07145b | 1,915 | py | Python | stepik/python67/03_04_04.py | ornichola/learning-new | e567218d8887805e38b1361715d5e3bd51a6bcaf | [
"Unlicense"
] | 2 | 2019-05-24T20:10:16.000Z | 2020-07-11T06:06:43.000Z | stepik/python67/03_04_04.py | ornichola/learning-new | e567218d8887805e38b1361715d5e3bd51a6bcaf | [
"Unlicense"
] | null | null | null | stepik/python67/03_04_04.py | ornichola/learning-new | e567218d8887805e38b1361715d5e3bd51a6bcaf | [
"Unlicense"
] | 21 | 2019-03-11T20:25:05.000Z | 2022-02-28T13:53:10.000Z | #[STEPIK]
# Программирование на Python https://stepik.org/67
# 03_04_04 Файловый ввод/вывод
'''
Имеется файл с данными по успеваемости абитуриентов. Он представляет из себя набор строк, где в каждой строке записана следующая информация:
Фамилия;Оценка_по_математике;Оценка_по_физике;Оценка_по_русскому_языку
Поля внут... | 28.58209 | 196 | 0.734726 | 295 | 1,915 | 4.60339 | 0.484746 | 0.030928 | 0.013255 | 0.02651 | 0.078056 | 0.035346 | 0 | 0 | 0 | 0 | 0 | 0.065846 | 0.151436 | 1,915 | 67 | 197 | 28.58209 | 0.769231 | 0.54047 | 0 | 0 | 0 | 0 | 0.049369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf80a6ed202974e61e0995b343b524e3bec0665a | 1,921 | py | Python | baselines/PPO/src/model.py | dg10mcdos/mario-bmstew | 5b1806fc59dc88fd326a4e1de9c02284ba35f9f9 | [
"BSD-3-Clause"
] | null | null | null | baselines/PPO/src/model.py | dg10mcdos/mario-bmstew | 5b1806fc59dc88fd326a4e1de9c02284ba35f9f9 | [
"BSD-3-Clause"
] | null | null | null | baselines/PPO/src/model.py | dg10mcdos/mario-bmstew | 5b1806fc59dc88fd326a4e1de9c02284ba35f9f9 | [
"BSD-3-Clause"
] | null | null | null | """
@author: Viet Nguyen <nhviet1009@gmail.com>
"""
import torch.nn as nn
import torch.nn.functional as F
class PPO(nn.Module):
def __init__(self, num_inputs, num_actions): # num_states, num_actions (e.g. 4 & 7)
super(PPO, self).__init__()
self.conv1 = nn.Conv2d(num_inputs, 32, 3, stride=2, paddi... | 42.688889 | 129 | 0.5924 | 302 | 1,921 | 3.668874 | 0.298013 | 0.01083 | 0.032491 | 0.036101 | 0.192238 | 0.124549 | 0.086643 | 0.086643 | 0.086643 | 0.086643 | 0 | 0.094233 | 0.259761 | 1,921 | 44 | 130 | 43.659091 | 0.684951 | 0.320666 | 0 | 0 | 0 | 0 | 0.003123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.08 | 0 | 0.28 | 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 | 0 | 0 | 1 | 0 |
bf815a5689f21b9f61269d3af287f2332400836a | 2,423 | py | Python | ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | null | null | null | ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | 85 | 2020-07-24T00:04:28.000Z | 2022-02-10T10:35:15.000Z | ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | null | null | null | from typing import List, NoReturn
from rest_framework import routers
from rest_framework.request import Request
from rest_framework.response import Response
from ...exceptions import BadArgumentValue
from ...models.nodes import Hardware
from ...serialisers.nodes import HardwareSerialiser
from ._RoutedViewSet import R... | 35.115942 | 94 | 0.658275 | 270 | 2,423 | 5.811111 | 0.362963 | 0.10325 | 0.080306 | 0.030593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262897 | 2,423 | 68 | 95 | 35.632353 | 0.878499 | 0.294676 | 0 | 0.060606 | 0 | 0 | 0.10665 | 0.091593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.242424 | 0.030303 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf82e91afdcb5e0fddbe0747375ddf3b811c5754 | 10,575 | py | Python | edflow/util.py | rromb/edflow | 8681cadf1770ca1bc1515535768dc14cb0758b0f | [
"MIT"
] | 2 | 2021-03-10T13:42:12.000Z | 2021-03-10T14:29:53.000Z | edflow/util.py | rromb/edflow | 8681cadf1770ca1bc1515535768dc14cb0758b0f | [
"MIT"
] | null | null | null | edflow/util.py | rromb/edflow | 8681cadf1770ca1bc1515535768dc14cb0758b0f | [
"MIT"
] | null | null | null | """Some Utility functions, that make yur life easier but don't fit in any
better catorgory than util."""
import numpy as np
import os
import pickle
def linear_var(step, start, end, start_value, end_value, clip_min=0.0, clip_max=1.0):
r"""Linear from :math:`(a, \alpha)` to :math:`(b, \beta)`, i.e.
:math:`y = ... | 29.212707 | 85 | 0.564728 | 1,389 | 10,575 | 4.161987 | 0.226062 | 0.01972 | 0.032866 | 0.009687 | 0.236291 | 0.17644 | 0.136309 | 0.136309 | 0.11434 | 0.111399 | 0 | 0.008144 | 0.314894 | 10,575 | 361 | 86 | 29.293629 | 0.789786 | 0.317069 | 0 | 0.180412 | 0 | 0 | 0.030792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113402 | false | 0.046392 | 0.020619 | 0.005155 | 0.268041 | 0.061856 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bf84b8c96e2bdd65eb5bb3c0dbead6d4d0544cd5 | 2,459 | py | Python | src/Examples/Akihabara.Examples.OnRawIO/track.py | Amberarch/Akihabara | 22d3984cb225e199b955e6b13be90f1959978bc6 | [
"MIT"
] | 19 | 2021-09-13T21:29:58.000Z | 2022-03-01T13:44:23.000Z | src/Examples/Akihabara.Examples.OnRawIO/track.py | Amberarch/Akihabara | 22d3984cb225e199b955e6b13be90f1959978bc6 | [
"MIT"
] | 44 | 2021-09-13T15:27:46.000Z | 2022-01-18T13:13:09.000Z | src/Examples/Akihabara.Examples.OnRawIO/track.py | Amberarch/Akihabara | 22d3984cb225e199b955e6b13be90f1959978bc6 | [
"MIT"
] | 10 | 2021-09-15T16:15:46.000Z | 2022-01-21T01:14:54.000Z | #!/usr/bin/python
import argparse
import subprocess
class MediaMetadata:
def __init__(self, width, height, framerate):
self.width = width
self.height = height
self.framerate = framerate
def from_filepath(filepath):
output = subprocess.check_output([
"ffprobe", "-v"... | 33.22973 | 125 | 0.646198 | 338 | 2,459 | 4.56213 | 0.387574 | 0.023346 | 0.02594 | 0.028534 | 0.226329 | 0.160182 | 0.146563 | 0.098573 | 0.06096 | 0 | 0 | 0.007948 | 0.181375 | 2,459 | 73 | 126 | 33.684932 | 0.758073 | 0.134608 | 0 | 0 | 0 | 0 | 0.281073 | 0.083804 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.111111 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bf85e87ae27dbc7518de916f0330cd2331da96f8 | 1,698 | py | Python | resources/logforms/mdtex_fiction_yml_pdf.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 32 | 2016-08-27T01:31:42.000Z | 2022-03-21T08:59:28.000Z | resources/logforms/mdtex_fiction_yml_pdf.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 3 | 2016-08-27T00:51:47.000Z | 2019-08-26T13:23:04.000Z | resources/logforms/mdtex_fiction_yml_pdf.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 10 | 2016-08-28T14:14:41.000Z | 2021-03-18T03:24:22.000Z | #!/usr/bin/env python
#-*- coding: utf-8 -*-
##---------------------------------------------------------------------------------------
#
# Markdown
# fiction: includes only fiction blocks
# yml: uses a yaml Front Matter from config.txt
# pdf: is ready to convert to pdf (or latex) via pandoc
#
##-----------... | 31.444444 | 144 | 0.478799 | 177 | 1,698 | 4.519774 | 0.480226 | 0.06 | 0.045 | 0.0325 | 0.105 | 0.105 | 0.105 | 0.105 | 0.105 | 0.105 | 0 | 0.007893 | 0.253828 | 1,698 | 53 | 145 | 32.037736 | 0.62352 | 0.220848 | 0 | 0.068966 | 0 | 0 | 0.1373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0.034483 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf89b25245266126dba56862b20f23c850ea62d7 | 2,397 | py | Python | process.py | Swathisree/d3_Food_facts | cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0 | [
"OML"
] | null | null | null | process.py | Swathisree/d3_Food_facts | cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0 | [
"OML"
] | null | null | null | process.py | Swathisree/d3_Food_facts | cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0 | [
"OML"
] | null | null | null | import pandas as pd
import json
countries = pd.read_csv('tsv/products_countries.tsv', sep='\t')
categories = pd.read_csv('tsv/products_categories_full.tsv', sep='\t')
products = pd.read_csv('tsv/products.tsv', sep='\t')
combined = pd.merge(left = products, right = categories, on='code' )
combined = pd.merge(left=com... | 29.231707 | 122 | 0.622445 | 326 | 2,397 | 4.423313 | 0.322086 | 0.038141 | 0.018724 | 0.024965 | 0.191401 | 0.149792 | 0.149792 | 0.105409 | 0.105409 | 0.105409 | 0 | 0.017666 | 0.220693 | 2,397 | 81 | 123 | 29.592593 | 0.754283 | 0.035878 | 0 | 0 | 0 | 0 | 0.107499 | 0.036844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0.037736 | 0.056604 | 0.226415 | 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 | 0 | 0 | 1 | 0 |
bf8a442f7555ff5867a989ed32bf9d07c2238f69 | 10,207 | py | Python | src/bot.py | jannikbusse/DSA_BOT | 87b3972235e5c7b77ca24c8ab34d6d045b8dfeac | [
"MIT"
] | null | null | null | src/bot.py | jannikbusse/DSA_BOT | 87b3972235e5c7b77ca24c8ab34d6d045b8dfeac | [
"MIT"
] | 1 | 2020-11-09T23:29:15.000Z | 2020-11-09T23:29:15.000Z | src/bot.py | jannikbusse/DSA_BOT | 87b3972235e5c7b77ca24c8ab34d6d045b8dfeac | [
"MIT"
] | null | null | null | import discord
import queue
import db
import disc_api
import glob_vars
import time, threading
import dice
import helper
import logging
import re
stats = ["mu","kl","in","ch","ff","ge", "ko", "kk"] #careful: in is int in the db!
def is_int(s):
try:
int(s)
return True
except ValueError:
... | 33.13961 | 146 | 0.621828 | 1,335 | 10,207 | 4.619476 | 0.161798 | 0.065996 | 0.102157 | 0.141884 | 0.385601 | 0.280688 | 0.260256 | 0.16864 | 0.145614 | 0.143019 | 0 | 0.009067 | 0.232781 | 10,207 | 308 | 147 | 33.13961 | 0.778445 | 0.030371 | 0 | 0.25 | 0 | 0.004098 | 0.124621 | 0.004653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.040984 | 0 | 0.22541 | 0.020492 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bf8c232211d8a9e8eb6f6025337e301b97fed78a | 12,943 | py | Python | acms-pass/t.py | EtoDemerzel0427/Misc-Notes | d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26 | [
"MIT"
] | null | null | null | acms-pass/t.py | EtoDemerzel0427/Misc-Notes | d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26 | [
"MIT"
] | null | null | null | acms-pass/t.py | EtoDemerzel0427/Misc-Notes | d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26 | [
"MIT"
] | null | null | null | import argparse
import asyncio
import random
import signal
import sys
import time
import traceback
import yaml
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtNetwork import *
from PyQt5.QtWidgets import *
from b4 import *
class B4:
conf = dict()
groups = dict()
room_... | 37.956012 | 118 | 0.565402 | 1,647 | 12,943 | 4.27201 | 0.175471 | 0.039795 | 0.017055 | 0.012507 | 0.273451 | 0.203525 | 0.183485 | 0.145111 | 0.120665 | 0.089966 | 0 | 0.019772 | 0.296608 | 12,943 | 340 | 119 | 38.067647 | 0.753076 | 0.047052 | 0 | 0.061069 | 0 | 0.003817 | 0.107328 | 0.005258 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041985 | false | 0.030534 | 0.049618 | 0 | 0.122137 | 0.003817 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bf8ee76e1f64b536bad62c4443845e7dcf14d0c8 | 5,872 | py | Python | blenderneuron/blender/blendernode.py | Helveg/BlenderNEURON | 7297e6aa45722f35908b707d0020b0519a6bc60d | [
"MIT"
] | 19 | 2018-02-09T21:30:25.000Z | 2022-03-21T23:02:26.000Z | blenderneuron/blender/blendernode.py | Helveg/BlenderNEURON | 7297e6aa45722f35908b707d0020b0519a6bc60d | [
"MIT"
] | 30 | 2019-04-16T02:38:24.000Z | 2022-03-19T18:42:58.000Z | blenderneuron/blender/blendernode.py | Helveg/BlenderNEURON | 7297e6aa45722f35908b707d0020b0519a6bc60d | [
"MIT"
] | 5 | 2018-07-23T16:49:59.000Z | 2022-03-02T18:48:07.000Z | import bpy
from blenderneuron.blender.blenderroot import BlenderRoot
from blenderneuron.blender.blenderrootgroup import *
from blenderneuron.commnode import CommNode
class BlenderNode(CommNode):
def __init__(self, *args, **kwargs):
super(BlenderNode, self).__init__("Blender", *args, **kwargs)
... | 30.268041 | 81 | 0.56812 | 676 | 5,872 | 4.744083 | 0.252959 | 0.022451 | 0.016215 | 0.013096 | 0.110384 | 0.076084 | 0.067976 | 0.067976 | 0.067976 | 0 | 0 | 0.003957 | 0.354394 | 5,872 | 193 | 82 | 30.42487 | 0.841994 | 0.128236 | 0 | 0.142857 | 0 | 0 | 0.04469 | 0.00902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116071 | false | 0 | 0.053571 | 0.035714 | 0.25 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bf90f187c224578a009a7b143999adefdfe7e863 | 3,383 | py | Python | inventory/zero.py | fbartels/zero | 370becc20bc6b89b4453ce71af31c4e5da972372 | [
"MIT"
] | null | null | null | inventory/zero.py | fbartels/zero | 370becc20bc6b89b4453ce71af31c4e5da972372 | [
"MIT"
] | null | null | null | inventory/zero.py | fbartels/zero | 370becc20bc6b89b4453ce71af31c4e5da972372 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import sys
import argparse
import subprocess
try:
import json
except ImportError:
import simplejson as json
class ZeroInventory(object):
def __init__(self):
self.inventory = {}
self.read_cli_args()
# Called with `--list`.
if self.args.lis... | 32.219048 | 106 | 0.516406 | 331 | 3,383 | 5.132931 | 0.362538 | 0.037081 | 0.040024 | 0.02472 | 0.081224 | 0.081224 | 0.041201 | 0 | 0 | 0 | 0 | 0.002328 | 0.365061 | 3,383 | 105 | 107 | 32.219048 | 0.788641 | 0.155779 | 0 | 0.085714 | 0 | 0 | 0.107042 | 0.011972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.1 | 0.014286 | 0.2 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bf92f177f7ec59a72d055c6c761cbe15cbc82589 | 1,743 | py | Python | bms_fsm.py | dsoto/ASI-ENNOID-dashboard | 8391b4acee770306931c3cf46fd46ec6e96eb4ba | [
"CC-BY-4.0"
] | 1 | 2022-03-03T21:38:06.000Z | 2022-03-03T21:38:06.000Z | bms_fsm.py | dsoto/ASI-ENNOID-dashboard | 8391b4acee770306931c3cf46fd46ec6e96eb4ba | [
"CC-BY-4.0"
] | null | null | null | bms_fsm.py | dsoto/ASI-ENNOID-dashboard | 8391b4acee770306931c3cf46fd46ec6e96eb4ba | [
"CC-BY-4.0"
] | null | null | null | import board
import busio
import struct
import time
class BMS_FSM():
def __init__(self):
# self.bms_uart = busio.UART(board.TX, board.RX, baudrate=115200) # Feather M4
self.bms_uart = busio.UART(board.D18, board.D19, baudrate=115200) # Grand Central
self.bms_request = bytes([0x02, 0x01, 0x0... | 37.891304 | 106 | 0.567413 | 217 | 1,743 | 4.410138 | 0.373272 | 0.103448 | 0.045977 | 0.071055 | 0.282132 | 0.246604 | 0.075235 | 0 | 0 | 0 | 0 | 0.074014 | 0.286862 | 1,743 | 45 | 107 | 38.733333 | 0.695897 | 0.189902 | 0 | 0.148148 | 0 | 0 | 0.109364 | 0 | 0 | 0 | 0.017155 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.148148 | 0 | 0.296296 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf94ecc0db6e188b273d33a45521f2cb0f748165 | 7,660 | py | Python | further/pc_algorithm.py | alan-turing-institute/pcit | d8e3b7894d1ecbfed3a3405a31276ff4e9122f67 | [
"MIT"
] | 4 | 2018-11-06T09:54:44.000Z | 2022-01-19T20:23:50.000Z | further/pc_algorithm.py | alan-turing-institute/pcit | d8e3b7894d1ecbfed3a3405a31276ff4e9122f67 | [
"MIT"
] | 1 | 2018-02-04T18:10:43.000Z | 2018-02-04T18:10:43.000Z | further/pc_algorithm.py | alan-turing-institute/pcit | d8e3b7894d1ecbfed3a3405a31276ff4e9122f67 | [
"MIT"
] | 2 | 2018-12-26T10:06:25.000Z | 2020-03-19T03:37:32.000Z | import itertools
import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
from pcit.IndependenceTest import pred_indep
class descendants():
def __init__(self, skeleton):
self.skeleton = skeleton
self.desc = list()
def dir_desc(self, i):
n = self.skeleton.shape[1]
... | 37.184466 | 112 | 0.503916 | 1,052 | 7,660 | 3.54943 | 0.11692 | 0.192823 | 0.017675 | 0.036422 | 0.436797 | 0.369041 | 0.313069 | 0.271291 | 0.271291 | 0.229513 | 0 | 0.020694 | 0.375457 | 7,660 | 206 | 113 | 37.184466 | 0.759824 | 0.002611 | 0 | 0.308989 | 0 | 0 | 0.004058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08427 | false | 0.005618 | 0.02809 | 0 | 0.179775 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bf97afb110f8b2e8ba3c9d7ed701726cf642cd46 | 2,823 | py | Python | train.py | erick-alv/g-hgg | 2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee | [
"MIT"
] | null | null | null | train.py | erick-alv/g-hgg | 2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee | [
"MIT"
] | null | null | null | train.py | erick-alv/g-hgg | 2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee | [
"MIT"
] | null | null | null | import numpy as np
import time
from common import get_args, experiment_setup
from copy import deepcopy
import pickle
import tensorflow as tf
if __name__=='__main__':
# Getting arguments from command line + defaults
# Set up learning environment including, gym env, ddpg agent, hgg/normal learner, tester
args = get_... | 32.079545 | 93 | 0.735034 | 419 | 2,823 | 4.770883 | 0.28401 | 0.145073 | 0.078039 | 0.05953 | 0.241621 | 0.203102 | 0.14007 | 0.090545 | 0.058529 | 0 | 0 | 0.001233 | 0.138151 | 2,823 | 87 | 94 | 32.448276 | 0.820386 | 0.145944 | 0 | 0.072727 | 0 | 0 | 0.102671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.109091 | 0 | 0.109091 | 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 | 0 | 0 | 1 | 0 |
bf9c9f2ad47c2493e56e5746ab85cc6e452ae864 | 1,371 | py | Python | tests/fast/test_pickle.py | evinism/littlebaker | d4eac27c23999274397aecdb719c465b13306f26 | [
"MIT"
] | 19 | 2020-12-04T02:39:04.000Z | 2020-12-04T21:45:09.000Z | tests/fast/test_pickle.py | evinism/littlebaker | d4eac27c23999274397aecdb719c465b13306f26 | [
"MIT"
] | 13 | 2020-12-04T22:20:26.000Z | 2021-04-29T05:39:51.000Z | tests/fast/test_pickle.py | evinism/littlebaker | d4eac27c23999274397aecdb719c465b13306f26 | [
"MIT"
] | 1 | 2021-04-28T06:21:01.000Z | 2021-04-28T06:21:01.000Z | from tinybaker import Transform, InputTag, OutputTag, sequence
import pickle
class StepOne(Transform):
foo = InputTag("foo")
bar = OutputTag("bar")
def script(self):
with self.foo.open() as f:
data = f.read()
with self.bar.open() as f:
f.write(data)
class StepTwo... | 23.637931 | 66 | 0.557257 | 166 | 1,371 | 4.524096 | 0.283133 | 0.031957 | 0.065246 | 0.069241 | 0.263648 | 0.201065 | 0.095872 | 0.095872 | 0 | 0 | 0 | 0.002064 | 0.293217 | 1,371 | 57 | 67 | 24.052632 | 0.772962 | 0 | 0 | 0.238095 | 0 | 0 | 0.114515 | 0.03647 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf9d1c229636cf8e73b8136dc8f76f750b3401fc | 1,711 | py | Python | tests/actors/accessibility/test_accessibility.py | reapler/geckordp | 29dab2e6e691954a473e054fa95ba40a3ad10e53 | [
"MIT"
] | 1 | 2021-12-24T04:37:02.000Z | 2021-12-24T04:37:02.000Z | tests/actors/accessibility/test_accessibility.py | jpramosi/geckordp | 29dab2e6e691954a473e054fa95ba40a3ad10e53 | [
"MIT"
] | 1 | 2021-07-23T13:38:36.000Z | 2021-08-07T14:17:54.000Z | tests/actors/accessibility/test_accessibility.py | reapler/geckordp | 29dab2e6e691954a473e054fa95ba40a3ad10e53 | [
"MIT"
] | 1 | 2021-10-31T17:31:35.000Z | 2021-10-31T17:31:35.000Z | # pylint: disable=unused-import
import pytest
import tests.helpers.constants as constants
from tests.helpers.utils import *
from geckordp.rdp_client import RDPClient
from geckordp.actors.root import RootActor
from geckordp.actors.descriptors.tab import TabActor
from geckordp.actors.accessibility.accessibility import Ac... | 26.734375 | 89 | 0.670953 | 202 | 1,711 | 5.579208 | 0.331683 | 0.053239 | 0.031943 | 0.039042 | 0.261757 | 0.261757 | 0.233363 | 0.233363 | 0.194321 | 0 | 0 | 0.001524 | 0.233197 | 1,711 | 63 | 90 | 27.15873 | 0.85747 | 0.016949 | 0 | 0.384615 | 0 | 0 | 0.068452 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 1 | 0.096154 | false | 0 | 0.153846 | 0 | 0.269231 | 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 | 0 | 0 | 1 | 0 |
bfa007f01f0521a3952080258ba83656a9eeaff7 | 564 | py | Python | py/leetcode/DungeonGame.py | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | py/leetcode/DungeonGame.py | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | py/leetcode/DungeonGame.py | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | '''
Leetcode problem No 174 Dungeon Game
Solution written by Xuqiang Fang on 5 July, 2018
'''
class Solution(object):
def calculateMinimumHP(self, dungeon):
DP = [float("inf") for _ in dungeon[0]]
DP[-1] = 1
for i in reversed(xrange(len(dungeon))):
DP[-1] = max(DP[-1] - dungeon... | 26.857143 | 62 | 0.547872 | 85 | 564 | 3.552941 | 0.458824 | 0.029801 | 0.033113 | 0.125828 | 0.172185 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047859 | 0.296099 | 564 | 20 | 63 | 28.2 | 0.712846 | 0.150709 | 0 | 0 | 0 | 0 | 0.006369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfa0480628cbd64765f0e794d146b8b1cadeec58 | 10,288 | py | Python | pw_make_radcool_structure.py | parkerwray/tmm | 8c27a56163d33de5955611eee35864c4485d1b2b | [
"MIT"
] | null | null | null | pw_make_radcool_structure.py | parkerwray/tmm | 8c27a56163d33de5955611eee35864c4485d1b2b | [
"MIT"
] | null | null | null | pw_make_radcool_structure.py | parkerwray/tmm | 8c27a56163d33de5955611eee35864c4485d1b2b | [
"MIT"
] | null | null | null | """
Import relevant modules
"""
from __future__ import division, print_function, absolute_import
#from tmm.tmm_core import (coh_tmm, unpolarized_RT, ellips,
# position_resolved, find_in_structure_with_inf)
from wptherml.wptherml.datalib import datalib
import tmm.tmm_core as tmm
from numpy impor... | 39.569231 | 135 | 0.585051 | 1,490 | 10,288 | 3.951007 | 0.185235 | 0.05113 | 0.073042 | 0.022422 | 0.612027 | 0.554952 | 0.501444 | 0.491931 | 0.487685 | 0.446237 | 0 | 0.048148 | 0.160187 | 10,288 | 259 | 136 | 39.722008 | 0.633218 | 0.566874 | 0 | 0.16129 | 0 | 0 | 0.143344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.112903 | 0 | 0.112903 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfa0c62575bd34e4cba52c7f7400939a06bfae09 | 1,592 | py | Python | after/bayes.py | Windsooon/Comments | 47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9 | [
"MIT"
] | 1 | 2020-07-08T06:17:54.000Z | 2020-07-08T06:17:54.000Z | after/bayes.py | Windsooon/Comments | 47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9 | [
"MIT"
] | null | null | null | after/bayes.py | Windsooon/Comments | 47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9 | [
"MIT"
] | null | null | null | import os
import csv
import pickle
import pandas as pd
import numpy as np
import sklearn
from sklearn.model_selection import train_test_split, cross_val_score
from sklearn.model_selection import KFold
from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score
from sklearn.naive_bayes import Mu... | 31.215686 | 83 | 0.766332 | 232 | 1,592 | 5 | 0.344828 | 0.025862 | 0.034483 | 0.051724 | 0.053448 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008017 | 0.138191 | 1,592 | 50 | 84 | 31.84 | 0.837464 | 0.018216 | 0 | 0 | 0 | 0 | 0.017297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.268293 | 0 | 0.268293 | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfa123a46e6c48d9f51257a647096c4fc2fe9422 | 818 | py | Python | deprecated/printers/bov/tests/test_database.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | deprecated/printers/bov/tests/test_database.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | deprecated/printers/bov/tests/test_database.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | import os
import numpy as np
from pymt.grids import RasterField
from pymt.printers.bov.database import Database
def test_bov_database(tmpdir):
data = np.arange(6.)
field = RasterField((3, 2), (1., 1.), (0., 0.))
field.add_field("Elevation", data, centering="point")
with tmpdir.as_cwd():
db ... | 24.787879 | 72 | 0.625917 | 114 | 818 | 4.394737 | 0.438596 | 0.131737 | 0.071856 | 0.107784 | 0.277445 | 0.277445 | 0.277445 | 0.277445 | 0.277445 | 0.195609 | 0 | 0.034314 | 0.251834 | 818 | 32 | 73 | 25.5625 | 0.784314 | 0.141809 | 0 | 0.25 | 0 | 0 | 0.145923 | 0.090129 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.25 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfa18c419b9bddacf91037d88c2cff23c5558bdb | 8,820 | py | Python | flowws_keras_geometry/models/PDBInverseCoarseGrain.py | klarh/flowws-keras-geometry | f6768ff20fdbf85deacd234c116919219500ecbe | [
"MIT"
] | 2 | 2021-11-17T05:08:01.000Z | 2021-11-28T17:17:08.000Z | flowws_keras_geometry/models/PDBInverseCoarseGrain.py | klarh/flowws-keras-geometry | f6768ff20fdbf85deacd234c116919219500ecbe | [
"MIT"
] | null | null | null | flowws_keras_geometry/models/PDBInverseCoarseGrain.py | klarh/flowws-keras-geometry | f6768ff20fdbf85deacd234c116919219500ecbe | [
"MIT"
] | null | null | null |
import flowws
from flowws import Argument as Arg
import tensorflow as tf
from tensorflow import keras
from .internal import HUGE_FLOAT, PairwiseVectorDifference, \
PairwiseVectorDifferenceSum, VectorAttention, Vector2VectorAttention
class CoarseGrainAttention(Vector2VectorAttention):
def build(self, input_sh... | 41.023256 | 109 | 0.622222 | 1,095 | 8,820 | 4.8 | 0.206393 | 0.034627 | 0.020548 | 0.02188 | 0.276256 | 0.246195 | 0.209094 | 0.165335 | 0.165335 | 0.152397 | 0 | 0.007422 | 0.26678 | 8,820 | 214 | 110 | 41.214953 | 0.805319 | 0.028118 | 0 | 0.090361 | 0 | 0 | 0.123845 | 0.011461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054217 | false | 0 | 0.03012 | 0 | 0.156627 | 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 | 0 | 0 | 1 | 0 |
bfa221e1979ae3e08b502d632de23a867c0630aa | 3,565 | py | Python | DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py | puririshi98/benchmark | 79f554f1e1cf36f62994c78e0e6e5b360f554022 | [
"BSD-3-Clause"
] | null | null | null | DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py | puririshi98/benchmark | 79f554f1e1cf36f62994c78e0e6e5b360f554022 | [
"BSD-3-Clause"
] | null | null | null | DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py | puririshi98/benchmark | 79f554f1e1cf36f62994c78e0e6e5b360f554022 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2020, NVIDIA CORPORATION. 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 applic... | 38.75 | 87 | 0.722861 | 506 | 3,565 | 4.859684 | 0.304348 | 0.101667 | 0.03904 | 0.037414 | 0.616511 | 0.53843 | 0.53843 | 0.53843 | 0.53843 | 0.53843 | 0 | 0.013425 | 0.185133 | 3,565 | 91 | 88 | 39.175824 | 0.833046 | 0.289201 | 0 | 0.576923 | 0 | 0 | 0.031051 | 0.009156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.115385 | 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 | 0 | 0 | 1 | 0 |
bfa6e37ce663c12f0fdad157e24b3fc3bb9524e5 | 11,809 | py | Python | src/compas_fea/structure/material.py | franaudo/fea | e164256bac179116520d19d6fc54c98de0610896 | [
"MIT"
] | 28 | 2018-02-16T17:21:47.000Z | 2022-02-27T21:42:17.000Z | src/compas_fea/structure/material.py | franaudo/fea | e164256bac179116520d19d6fc54c98de0610896 | [
"MIT"
] | 115 | 2017-11-30T17:12:47.000Z | 2022-01-26T07:41:34.000Z | src/compas_fea/structure/material.py | franaudo/fea | e164256bac179116520d19d6fc54c98de0610896 | [
"MIT"
] | 13 | 2018-05-08T13:03:28.000Z | 2022-01-23T13:37:06.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from math import log
# Author(s): Andrew Liew (github.com/andrewliew)
__all__ = [
'Material',
'Concrete',
'ConcreteSmearedCrack',
'ConcreteDamagedPlasticity',
'ElasticIsotropic',
'St... | 26.242222 | 106 | 0.474807 | 1,349 | 11,809 | 4.034099 | 0.156412 | 0.061742 | 0.041896 | 0.041161 | 0.442852 | 0.376148 | 0.372473 | 0.314774 | 0.295663 | 0.286476 | 0 | 0.022158 | 0.296808 | 11,809 | 449 | 107 | 26.300668 | 0.633189 | 0.410873 | 0 | 0.386503 | 0 | 0 | 0.090792 | 0.008049 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07362 | false | 0 | 0.02454 | 0.006135 | 0.171779 | 0.030675 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfa749699de26602b2730662f9b8a7ff680aac28 | 365 | py | Python | utilities/mongodb/insert.py | sosomasox/adl | 1afc2f385cbae6f1d4fefa5534f194621e4460c4 | [
"MIT"
] | null | null | null | utilities/mongodb/insert.py | sosomasox/adl | 1afc2f385cbae6f1d4fefa5534f194621e4460c4 | [
"MIT"
] | null | null | null | utilities/mongodb/insert.py | sosomasox/adl | 1afc2f385cbae6f1d4fefa5534f194621e4460c4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from pymongo import MongoClient
import json
import ast
client = MongoClient('mongodb://localhost:27017/')
db = client.adl
collection = db.adlmodels
with open('../data/going_out.jsonl', 'r') as fp:
for data in fp.readlines():
data = data.strip()
data_dit = ast.literal_eval(d... | 22.8125 | 50 | 0.690411 | 51 | 365 | 4.843137 | 0.705882 | 0.05668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020067 | 0.180822 | 365 | 15 | 51 | 24.333333 | 0.80602 | 0.057534 | 0 | 0 | 0 | 0 | 0.145773 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfa8cb6c6419a3d2b51a4b0411b2675939d36c2f | 4,087 | py | Python | omnibus/code.py | wrmsr/omnibus | 3c4ef5eb17b0fff8593fa6a2284337bf193c18d3 | [
"BSD-3-Clause"
] | 2 | 2020-06-17T19:54:09.000Z | 2020-06-18T20:10:26.000Z | omnibus/code.py | wrmsr/omnibus | 3c4ef5eb17b0fff8593fa6a2284337bf193c18d3 | [
"BSD-3-Clause"
] | null | null | null | omnibus/code.py | wrmsr/omnibus | 3c4ef5eb17b0fff8593fa6a2284337bf193c18d3 | [
"BSD-3-Clause"
] | null | null | null | import dis
import gc
import opcode
import sys
import textwrap
import types
import typing as ta
from . import lang
Code = types.CodeType
Function = types.FunctionType
Frame = types.FrameType
CODE_ARGS = [
'argcount',
'kwonlyargcount',
'nlocals',
'stacksize',
'flags',
'code',
'consts',
... | 24.473054 | 116 | 0.663567 | 541 | 4,087 | 4.809612 | 0.330869 | 0.027671 | 0.055342 | 0.057648 | 0.076095 | 0.013836 | 0 | 0 | 0 | 0 | 0 | 0.007832 | 0.218987 | 4,087 | 166 | 117 | 24.620482 | 0.807331 | 0.092244 | 0 | 0.070175 | 0 | 0 | 0.101304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149123 | false | 0.017544 | 0.070175 | 0.096491 | 0.377193 | 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 | 0 | 0 | 1 | 0 |
bfa9f514b2c99066b32a9c8b4d3db858314b200e | 2,928 | py | Python | 2021/day20.py | tangarts/advent-of-code | 5879fbec1a5377d1288666a357b029f6345d4a5d | [
"MIT"
] | null | null | null | 2021/day20.py | tangarts/advent-of-code | 5879fbec1a5377d1288666a357b029f6345d4a5d | [
"MIT"
] | null | null | null | 2021/day20.py | tangarts/advent-of-code | 5879fbec1a5377d1288666a357b029f6345d4a5d | [
"MIT"
] | null | null | null |
from advent_of_code.core import parse_input, flatten
raw = """..#.#..#####.#.#.#.###.##.....###.##.#..###.####..#####..#....#..#..##..##
#..######.###...####..#..#####..##..#.#####...##.#.#..#.##..#.#......#.###
.######.###.####...#.##.##..#..#..#####.....#.#....###..#.##......#.....#.
.#..#..##..#...##.######.####.#... | 32.175824 | 117 | 0.470628 | 342 | 2,928 | 3.947368 | 0.248538 | 0.059259 | 0.022222 | 0.015556 | 0.12 | 0.12 | 0.088889 | 0.057778 | 0.057778 | 0.057778 | 0 | 0.031901 | 0.197063 | 2,928 | 90 | 118 | 32.533333 | 0.542322 | 0.06694 | 0 | 0.065574 | 0 | 0 | 0.218981 | 0.189069 | 0 | 0 | 0 | 0 | 0.016393 | 1 | 0.114754 | false | 0 | 0.016393 | 0 | 0.229508 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfac716a70e1d5acb5b1e13b1f148e9c8bcc5ce8 | 4,406 | py | Python | pytest_nodev/blacklists.py | nodev-io/pytest-wish | 14c9ef2a3891ac245fe572f6fb8e4649930349cb | [
"MIT"
] | 21 | 2016-02-25T18:00:39.000Z | 2021-12-13T02:58:24.000Z | pytest_nodev/blacklists.py | nodev-io/pytest-wish | 14c9ef2a3891ac245fe572f6fb8e4649930349cb | [
"MIT"
] | 18 | 2016-02-18T20:38:47.000Z | 2016-08-25T07:26:14.000Z | pytest_nodev/blacklists.py | nodev-io/pytest-wish | 14c9ef2a3891ac245fe572f6fb8e4649930349cb | [
"MIT"
] | 6 | 2016-02-26T13:45:41.000Z | 2016-08-25T05:45:58.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Alessandro Amici
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, ... | 27.886076 | 87 | 0.687472 | 519 | 4,406 | 5.741811 | 0.579961 | 0.02953 | 0.017114 | 0.020134 | 0.032215 | 0.032215 | 0.032215 | 0.032215 | 0 | 0 | 0 | 0.002254 | 0.194281 | 4,406 | 157 | 88 | 28.063694 | 0.837183 | 0.408534 | 0 | 0.020619 | 0 | 0 | 0.593518 | 0.324873 | 0 | 0 | 0 | 0.006369 | 0 | 1 | 0 | false | 0.030928 | 0.020619 | 0 | 0.020619 | 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 | 0 | 0 | 1 | 0 |
bfacebc149bcde45d8b837419f726ea675713269 | 4,574 | py | Python | streaming_plot_client.py | Sensirion/libsensors-python | dda92824ce073b4b25f8db90150e90f092275a39 | [
"BSD-3-Clause"
] | 21 | 2015-12-31T00:35:37.000Z | 2019-10-17T08:17:07.000Z | streaming_plot_client.py | Sensirion/libsensors-python | dda92824ce073b4b25f8db90150e90f092275a39 | [
"BSD-3-Clause"
] | 5 | 2015-09-28T13:47:44.000Z | 2018-12-12T22:36:09.000Z | streaming_plot_client.py | Sensirion/libsensors-python | dda92824ce073b4b25f8db90150e90f092275a39 | [
"BSD-3-Clause"
] | 15 | 2015-11-10T10:11:35.000Z | 2021-05-20T08:41:18.000Z | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Sample appplication that connects to a mqtt server and plots all sensor data.
It is possible to subscribe to only some sensors or to all of them by modifying
the subscription topic.
To run the script you need to install the paho MQTT library and PyQt as listed
in requir... | 32.671429 | 86 | 0.638828 | 561 | 4,574 | 5.081996 | 0.413547 | 0.024553 | 0.019642 | 0.013329 | 0.016836 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008517 | 0.255575 | 4,574 | 139 | 87 | 32.906475 | 0.828488 | 0.161128 | 0 | 0 | 0 | 0 | 0.052411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.06 | 0 | 0.18 | 0.01 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfadeebda3d888464f736b1d2628712419a57a4c | 4,550 | py | Python | services/backend/app/models.py | miguelalb/resume-portal-fastapi | 286f732510925c5ad3760ca2af82098ed78e0dd9 | [
"BSD-3-Clause"
] | 1 | 2022-02-28T02:29:02.000Z | 2022-02-28T02:29:02.000Z | services/backend/app/models.py | miguelalb/resume-portal-fastapi | 286f732510925c5ad3760ca2af82098ed78e0dd9 | [
"BSD-3-Clause"
] | null | null | null | services/backend/app/models.py | miguelalb/resume-portal-fastapi | 286f732510925c5ad3760ca2af82098ed78e0dd9 | [
"BSD-3-Clause"
] | null | null | null | import uuid
from datetime import datetime
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, Text
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
from app.database import Base
class BaseMixin(object):
... | 32.042254 | 86 | 0.705934 | 514 | 4,550 | 6.095331 | 0.22179 | 0.103415 | 0.043409 | 0.053623 | 0.421002 | 0.313438 | 0.282796 | 0.23428 | 0.175551 | 0.175551 | 0 | 0.000265 | 0.171429 | 4,550 | 141 | 87 | 32.269504 | 0.830769 | 0.024176 | 0 | 0.22 | 0 | 0 | 0.122463 | 0 | 0 | 0 | 0 | 0.007092 | 0 | 1 | 0.08 | false | 0.01 | 0.07 | 0.08 | 0.89 | 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 | 0 | 0 | 1 | 0 |
bfaff810f8ad02f15def8943b57bf4630603e431 | 1,597 | py | Python | python_src/tbd_audio_common/sound_maker.py | CMU-TBD/tbd_audio_common | 5afdaccbf1e5c8ad038ce849844cd85e846b8927 | [
"MIT-CMU",
"MIT"
] | null | null | null | python_src/tbd_audio_common/sound_maker.py | CMU-TBD/tbd_audio_common | 5afdaccbf1e5c8ad038ce849844cd85e846b8927 | [
"MIT-CMU",
"MIT"
] | null | null | null | python_src/tbd_audio_common/sound_maker.py | CMU-TBD/tbd_audio_common | 5afdaccbf1e5c8ad038ce849844cd85e846b8927 | [
"MIT-CMU",
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
import alloy.ros
import os
import wave
import actionlib
from tbd_ros_msgs.msg import (
playAudioAction,
playAudioGoal
)
class SoundMaker():
def __init__(self):
self._tbd_audio_client = actionlib.SimpleActionClient("playAudio", playAudioAction)
self._tb... | 29.574074 | 123 | 0.644333 | 195 | 1,597 | 4.994872 | 0.441026 | 0.057495 | 0.086242 | 0.129363 | 0.155031 | 0.155031 | 0.075975 | 0.075975 | 0 | 0 | 0 | 0 | 0.271133 | 1,597 | 53 | 124 | 30.132075 | 0.83677 | 0.166562 | 0 | 0.0625 | 0 | 0 | 0.026128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.21875 | 0 | 0.34375 | 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 | 0 | 0 | 1 | 0 |
bfb19827d57787b285507d6f0c699802654b2f05 | 1,474 | py | Python | webserver/ProjetoSS.py | jonnyff/Outliers_NASA-Space-Apps | 2713bad7df491e1c32ef2657f4e7e868c3e3777b | [
"Apache-2.0"
] | null | null | null | webserver/ProjetoSS.py | jonnyff/Outliers_NASA-Space-Apps | 2713bad7df491e1c32ef2657f4e7e868c3e3777b | [
"Apache-2.0"
] | null | null | null | webserver/ProjetoSS.py | jonnyff/Outliers_NASA-Space-Apps | 2713bad7df491e1c32ef2657f4e7e868c3e3777b | [
"Apache-2.0"
] | null | null | null | from flask import Flask, request, render_template
from flask import json
from requests.auth import HTTPBasicAuth
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
if request.method == 'POST':
ipcliente = request.remote_addr
programa = request.form['programa']
cmdc... | 35.095238 | 109 | 0.591588 | 163 | 1,474 | 5.251534 | 0.588957 | 0.049065 | 0.035047 | 0.014019 | 0.11215 | 0.044393 | 0.044393 | 0 | 0 | 0 | 0 | 0.053456 | 0.263908 | 1,474 | 41 | 110 | 35.95122 | 0.735484 | 0.069878 | 0 | 0.060606 | 0 | 0 | 0.260584 | 0.065693 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.181818 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfb4a6fbb8d580b5d2075aecbe9dbd0aeb08ff0b | 3,232 | py | Python | scripts/vramc/encoder.py | paulscottrobson/6502-basic | d4c360041bfa49427a506465e58bb0ef94beaa44 | [
"MIT"
] | 3 | 2021-09-30T19:34:11.000Z | 2021-10-31T06:55:50.000Z | scripts/vramc/encoder.py | paulscottrobson/6502-Basic | d4c360041bfa49427a506465e58bb0ef94beaa44 | [
"MIT"
] | null | null | null | scripts/vramc/encoder.py | paulscottrobson/6502-Basic | d4c360041bfa49427a506465e58bb0ef94beaa44 | [
"MIT"
] | 1 | 2021-12-07T21:58:44.000Z | 2021-12-07T21:58:44.000Z | # *****************************************************************************
# *****************************************************************************
#
# Name: encoder.py
# Author: Paul Robson (paul@robsons.org.uk)
# Date: 27th March 2021
# Purpose: Encode graphics
#
# *********************************... | 28.350877 | 107 | 0.534963 | 411 | 3,232 | 4.177616 | 0.377129 | 0.016308 | 0.013978 | 0.012813 | 0.024461 | 0.024461 | 0 | 0 | 0 | 0 | 0 | 0.030385 | 0.195545 | 3,232 | 113 | 108 | 28.60177 | 0.63 | 0.299196 | 0 | 0.029851 | 0 | 0 | 0.014885 | 0 | 0 | 0 | 0.017591 | 0 | 0.044776 | 1 | 0.074627 | false | 0.014925 | 0.029851 | 0 | 0.179104 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfb5034780b879d1244f12e00e78645edb6abd45 | 2,541 | py | Python | torchaudio/__init__.py | micmelesse/audio | e8cc7f9130135e8ab96d58b0225d5120da6a0804 | [
"BSD-2-Clause"
] | null | null | null | torchaudio/__init__.py | micmelesse/audio | e8cc7f9130135e8ab96d58b0225d5120da6a0804 | [
"BSD-2-Clause"
] | 1 | 2021-08-31T22:20:32.000Z | 2021-08-31T22:20:32.000Z | torchaudio/__init__.py | micmelesse/audio | e8cc7f9130135e8ab96d58b0225d5120da6a0804 | [
"BSD-2-Clause"
] | null | null | null | from torchaudio._internal import module_utils as _mod_utils # noqa: F401
if _mod_utils.is_module_available('torchaudio._torchaudio'):
# Note this import has two purposes
# 1. Make _torchaudio accessible by the other modules (regular import)
# 2. Register torchaudio's custom ops bound via TorchScript
#... | 35.291667 | 98 | 0.709957 | 326 | 2,541 | 5.40184 | 0.423313 | 0.03975 | 0.034072 | 0.034072 | 0.128336 | 0.128336 | 0.128336 | 0.128336 | 0.128336 | 0.074957 | 0 | 0.0065 | 0.212908 | 2,541 | 71 | 99 | 35.788732 | 0.874 | 0.610783 | 0 | 0 | 0 | 0 | 0.193312 | 0.022989 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.026316 | 0.184211 | 0 | 0.184211 | 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 | 0 | 0 | 1 | 0 |
bfb6340fbbc7e56129c9bfe9ba48fe36ac1730fd | 900 | py | Python | Aprendendo Python/cursopythonudamy/aula24_operadorternario.py | JlucasS777/Aprendendo-Python | a3a960260070f0d604c27fbbc41578a6ab11edb5 | [
"MIT"
] | null | null | null | Aprendendo Python/cursopythonudamy/aula24_operadorternario.py | JlucasS777/Aprendendo-Python | a3a960260070f0d604c27fbbc41578a6ab11edb5 | [
"MIT"
] | null | null | null | Aprendendo Python/cursopythonudamy/aula24_operadorternario.py | JlucasS777/Aprendendo-Python | a3a960260070f0d604c27fbbc41578a6ab11edb5 | [
"MIT"
] | null | null | null | # Operador Ternário
'''login_user = False
if login_user : # isso é o mesmo que if login_user == True:
msg = 'Usuário logado'
else:
msg = 'Usuário precisa logar'
print(msg)
print(i)'''
''' O código acima é o mesmo que :
'''
# login_user = False
# msg ='Usuário logado.'if login_user else ' Usuário precisa loga... | 30 | 111 | 0.628889 | 133 | 900 | 4.218045 | 0.496241 | 0.080214 | 0.058824 | 0.035651 | 0.114082 | 0.114082 | 0 | 0 | 0 | 0 | 0 | 0.016743 | 0.27 | 900 | 30 | 112 | 30 | 0.837139 | 0.314444 | 0 | 0 | 0 | 0 | 0.472855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfb69b8488c9035534337b7d04075f3c5e669cc8 | 471 | py | Python | images_of/entrypoints/bot.py | amici-ursi/ImagesOfNetwork | a8922c24b7e2b0df50282842ebb0998a3cb7d60a | [
"MIT"
] | 12 | 2016-04-23T23:24:44.000Z | 2018-09-17T04:07:56.000Z | images_of/entrypoints/bot.py | amici-ursi/ImagesOfNetwork | a8922c24b7e2b0df50282842ebb0998a3cb7d60a | [
"MIT"
] | 90 | 2016-04-10T06:12:23.000Z | 2017-07-24T14:15:38.000Z | images_of/entrypoints/bot.py | amici-ursi/ImagesOfNetwork | a8922c24b7e2b0df50282842ebb0998a3cb7d60a | [
"MIT"
] | 9 | 2016-04-24T21:30:21.000Z | 2020-06-15T13:45:12.000Z | import click
from images_of import command, settings, Reddit
from images_of.bot import Bot
@command
@click.option('--no-post', is_flag=True, help='Do not post to reddit.')
def main(no_post):
"""Reddit Network scraper and x-poster bot."""
r = Reddit('{} v6.0 /u/{}'.format(settings.NETWORK_NAME,
... | 22.428571 | 71 | 0.615711 | 67 | 471 | 4.104478 | 0.567164 | 0.065455 | 0.087273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005602 | 0.242038 | 471 | 20 | 72 | 23.55 | 0.764706 | 0.084926 | 0 | 0 | 0 | 0 | 0.122353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfb6e0c1a847c2bc7fe17d92901369d447464178 | 4,740 | py | Python | server/architext/verbs/edit_world.py | JimenaAndrea/architext | fb49624f7301902a357815af0ca5d320cfc6ddb6 | [
"MIT"
] | 3 | 2020-08-02T07:14:25.000Z | 2021-04-25T12:22:53.000Z | server/architext/verbs/edit_world.py | JimenaAndrea/architext | fb49624f7301902a357815af0ca5d320cfc6ddb6 | [
"MIT"
] | 130 | 2020-07-15T12:09:30.000Z | 2021-05-27T15:02:01.000Z | server/architext/verbs/edit_world.py | JimenaAndrea/architext | fb49624f7301902a357815af0ca5d320cfc6ddb6 | [
"MIT"
] | 1 | 2021-06-10T15:51:49.000Z | 2021-06-10T15:51:49.000Z | from . import verb
import textwrap
from .. import entities
import architext.strings as strings
class EditWorld(verb.Verb):
command = _('editworld')
permissions = verb.CREATOR
def __init__(self, session):
super().__init__(session)
self.world = self.session.user.room.world_state.get_world()
... | 41.217391 | 184 | 0.606962 | 549 | 4,740 | 4.978142 | 0.23133 | 0.076473 | 0.076839 | 0.087084 | 0.448225 | 0.362971 | 0.252836 | 0.225759 | 0.183315 | 0.107574 | 0 | 0.003014 | 0.3 | 4,740 | 115 | 185 | 41.217391 | 0.820675 | 0 | 0 | 0.235294 | 0 | 0.009804 | 0.182029 | 0.017718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068627 | false | 0 | 0.039216 | 0 | 0.186275 | 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 | 0 | 0 | 1 | 0 |
bfb7c5fc2640cb5beb6e90cd007956cfc19c4d95 | 569 | py | Python | count_and_say.py | lutianming/leetcode | 848c7470ff5fd23608cc954be23732f60488ed8a | [
"MIT"
] | null | null | null | count_and_say.py | lutianming/leetcode | 848c7470ff5fd23608cc954be23732f60488ed8a | [
"MIT"
] | null | null | null | count_and_say.py | lutianming/leetcode | 848c7470ff5fd23608cc954be23732f60488ed8a | [
"MIT"
] | null | null | null | class Solution:
# @return a string
def countAndSay(self, n):
say = '1'
for i in range(n-1):
say = self._count_say(say)
return say
def _count_say(self, s):
curr = None
count = 0
say = ""
for c in s:
if c == curr:
... | 21.884615 | 47 | 0.420035 | 68 | 569 | 3.455882 | 0.382353 | 0.034043 | 0.093617 | 0.119149 | 0.153191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.476274 | 569 | 25 | 48 | 22.76 | 0.768456 | 0.02812 | 0 | 0.181818 | 0 | 0 | 0.001815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.227273 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfb7d3cf4eee3e62630ca9d2b93475cfa95338cc | 2,510 | py | Python | src/1-prepare/cmftools/cmf_fldmap_downscale.py | DirkEilander/compound_hotspots | f9d7960633be80e8e24d2f2563df367cc3f060c6 | [
"BSD-3-Clause"
] | 1 | 2022-01-17T07:02:13.000Z | 2022-01-17T07:02:13.000Z | src/1-prepare/cmftools/cmf_fldmap_downscale.py | DirkEilander/compound_hotspots | f9d7960633be80e8e24d2f2563df367cc3f060c6 | [
"BSD-3-Clause"
] | null | null | null | src/1-prepare/cmftools/cmf_fldmap_downscale.py | DirkEilander/compound_hotspots | f9d7960633be80e8e24d2f2563df367cc3f060c6 | [
"BSD-3-Clause"
] | 1 | 2022-01-17T02:48:28.000Z | 2022-01-17T02:48:28.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import os
from os.path import join, dirname, realpath, basename
import rasterio
import click
import glob
import subprocess
import xarray as xr
import pandas as pd
from datetime import timedelta
from rasterio.transform import from_origin
@click.command()... | 33.918919 | 94 | 0.642231 | 366 | 2,510 | 4.26776 | 0.393443 | 0.028809 | 0.03073 | 0.020487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014209 | 0.186853 | 2,510 | 73 | 95 | 34.383562 | 0.751102 | 0.067331 | 0 | 0 | 0 | 0 | 0.087983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.203704 | 0 | 0.222222 | 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 | 0 | 0 | 1 | 0 |
bfb8ead9c6c7c310a5414613dd9bbb4a9dc0c78b | 5,083 | py | Python | scaling.py | samsalemi/OpenSim-Python-Simulation | f66bcce7aaaf3b4095d623b3ad2df484d123fa24 | [
"Apache-2.0"
] | 2 | 2021-11-01T20:21:23.000Z | 2021-11-26T03:14:25.000Z | scaling.py | samsalemi/OpenSim-Python-Simulation | f66bcce7aaaf3b4095d623b3ad2df484d123fa24 | [
"Apache-2.0"
] | null | null | null | scaling.py | samsalemi/OpenSim-Python-Simulation | f66bcce7aaaf3b4095d623b3ad2df484d123fa24 | [
"Apache-2.0"
] | null | null | null | # June 7 2018
# Author: Samuel Salemi
# University of Guelph Masters Graduate
# This script determines scaling factors and places them on model Gait2354
def scale():
import os
import opensim as osim
import shutil
import directories
# Global Directories
allDir = list(directori... | 38.801527 | 89 | 0.69821 | 501 | 5,083 | 7.061876 | 0.391218 | 0.054268 | 0.013567 | 0.011871 | 0.072923 | 0.054833 | 0.054833 | 0.054833 | 0.054833 | 0.054833 | 0 | 0.00905 | 0.217391 | 5,083 | 130 | 90 | 39.1 | 0.880342 | 0.277592 | 0 | 0.042254 | 0 | 0 | 0.054472 | 0.013761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.056338 | 0 | 0.084507 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfbbe34de6cfae26177dec781f0aff1524bf1b1b | 1,666 | py | Python | tirmite/bowtie2_wrappers.py | Adamtaranto/mapmite | e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b | [
"MIT"
] | 2 | 2019-05-30T00:46:27.000Z | 2019-12-18T11:01:49.000Z | tirmite/bowtie2_wrappers.py | Adamtaranto/mapmite | e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b | [
"MIT"
] | 10 | 2017-09-19T01:24:02.000Z | 2021-04-08T00:35:40.000Z | tirmite/bowtie2_wrappers.py | Adamtaranto/mapmite | e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b | [
"MIT"
] | 3 | 2019-12-18T11:01:51.000Z | 2021-09-02T01:26:34.000Z | import os
from shlex import quote
def _bowtie2build_cmd(bt2Path="bowtie2-build",IdxPath="db/GenIdx",genome=None):
'''Construct the bowtie2-build command'''
# Base command
cmd = ' '.join(['mkdir db &&',quote(bt2Path),quote(os.path.abspath(genome)),IdxPath])
return cmd
def _bowtie2_cmd(bt2Path="bowtie2",tirFasta=No... | 47.6 | 178 | 0.676471 | 243 | 1,666 | 4.613169 | 0.374486 | 0.057984 | 0.021409 | 0.035682 | 0.371097 | 0.335415 | 0.335415 | 0.335415 | 0.335415 | 0.271186 | 0 | 0.02686 | 0.128451 | 1,666 | 34 | 179 | 49 | 0.745179 | 0.365546 | 0 | 0.125 | 0 | 0.125 | 0.324952 | 0.021277 | 0 | 0 | 0.010638 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfbbe35054b047337e457c136d547a61c6afb53d | 2,716 | py | Python | action_blocking_helping_functions.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | 4 | 2021-01-15T10:49:33.000Z | 2021-12-31T08:11:35.000Z | action_blocking_helping_functions.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | null | null | null | action_blocking_helping_functions.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | null | null | null | from envs.flatland.observations.segment_graph import Graph
def get_coords(direction):
if direction == 0:
return -1, 0
elif direction == 1:
return 0, 1
elif direction == 2:
return 1, 0
elif direction == 3:
return 0, -1
def stop_deadlock_when_unavoidable(timestamp_segme... | 29.846154 | 118 | 0.591679 | 375 | 2,716 | 4.088 | 0.192 | 0.067841 | 0.117417 | 0.039139 | 0.313112 | 0.193085 | 0.193085 | 0.142205 | 0.142205 | 0.142205 | 0 | 0.033636 | 0.310383 | 2,716 | 90 | 119 | 30.177778 | 0.784837 | 0.082842 | 0 | 0.416667 | 0 | 0 | 0.002818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0 | 0.013889 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfbd4529c7fa51f7002af4f36973add53c6da978 | 997 | py | Python | venv/lib/python2.7/site-packages/ebcli/objects/event.py | zwachtel11/fruitful-backend | 45b8994917182e7b684b9e25944cc79c9494c9f3 | [
"MIT"
] | 4 | 2018-04-19T19:56:53.000Z | 2021-06-28T19:53:41.000Z | venv/lib/python2.7/site-packages/ebcli/objects/event.py | zwachtel11/fruitful-backend | 45b8994917182e7b684b9e25944cc79c9494c9f3 | [
"MIT"
] | 1 | 2020-06-03T13:57:07.000Z | 2020-06-22T10:27:48.000Z | venv/lib/python2.7/site-packages/ebcli/objects/event.py | zwachtel11/fruitful-backend | 45b8994917182e7b684b9e25944cc79c9494c9f3 | [
"MIT"
] | 3 | 2018-07-30T05:34:42.000Z | 2019-04-30T20:02:54.000Z | # Copyright 2014 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 39.88 | 85 | 0.718154 | 141 | 997 | 4.964539 | 0.524823 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.205617 | 997 | 24 | 86 | 41.541667 | 0.873737 | 0.537613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfbdb2606c7d9fbb6e570e314eadff3809426b49 | 13,493 | py | Python | com/vmware/vapi/bindings/struct.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | com/vmware/vapi/bindings/struct.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | com/vmware/vapi/bindings/struct.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | """
Bindings data classes
"""
__author__ = 'VMware, Inc.'
__copyright__ = 'Copyright 2015-2016 VMware, Inc. All rights reserved. -- VMware Confidential' # pylint: disable=line-too-long
import decimal
import json
import six
import sys
from vmware.vapi.bindings.common import raise_core_exception
from vmware.vapi.dat... | 34.955959 | 128 | 0.613207 | 1,607 | 13,493 | 4.969508 | 0.148102 | 0.038567 | 0.026296 | 0.019033 | 0.378162 | 0.339344 | 0.299274 | 0.269472 | 0.240671 | 0.204358 | 0 | 0.002849 | 0.29771 | 13,493 | 385 | 129 | 35.046753 | 0.839911 | 0.416957 | 0 | 0.175325 | 0 | 0 | 0.031823 | 0 | 0 | 0 | 0 | 0.005195 | 0 | 1 | 0.168831 | false | 0 | 0.064935 | 0.012987 | 0.396104 | 0.149351 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfc43a6e6874e02847e5dd1f797f3d3037107d33 | 1,572 | py | Python | tests/test_tk_file_extention_dialog.py | MaxWeise/Filebackup_Automation | fc4b7480897b34b1b3315f5505c0b96c8714202d | [
"MIT"
] | null | null | null | tests/test_tk_file_extention_dialog.py | MaxWeise/Filebackup_Automation | fc4b7480897b34b1b3315f5505c0b96c8714202d | [
"MIT"
] | null | null | null | tests/test_tk_file_extention_dialog.py | MaxWeise/Filebackup_Automation | fc4b7480897b34b1b3315f5505c0b96c8714202d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" Testsuite for the user text input
Created 15.12.2021
@author Max Weise
"""
import unittest
from unittest import TestCase
from backup_script.tk_file_extention_dialog import TextInputDialog
class Test_TextInputDialog(TestCase):
""" Testcase for the custom tkinter text input dialog."""
... | 30.230769 | 97 | 0.681934 | 198 | 1,572 | 5.111111 | 0.383838 | 0.088933 | 0.115613 | 0.047431 | 0.37747 | 0.249012 | 0.249012 | 0.177866 | 0.100791 | 0.100791 | 0 | 0.010492 | 0.211832 | 1,572 | 51 | 98 | 30.823529 | 0.806295 | 0.215649 | 0 | 0.153846 | 0 | 0 | 0.060884 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 1 | 0.115385 | false | 0 | 0.115385 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfc5e0326ff06b4f88532664293de1aca3963505 | 3,993 | py | Python | efls-data/xfl/data/local_join/worker.py | finalljx/Elastic-Federated-Learning-Solution | fb588fdc03a2c1598b40b36712b27bdffdd24258 | [
"Apache-2.0"
] | null | null | null | efls-data/xfl/data/local_join/worker.py | finalljx/Elastic-Federated-Learning-Solution | fb588fdc03a2c1598b40b36712b27bdffdd24258 | [
"Apache-2.0"
] | null | null | null | efls-data/xfl/data/local_join/worker.py | finalljx/Elastic-Federated-Learning-Solution | fb588fdc03a2c1598b40b36712b27bdffdd24258 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Alibaba Group Holding Limited. 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 ... | 46.430233 | 138 | 0.650889 | 539 | 3,993 | 4.680891 | 0.326531 | 0.022196 | 0.052319 | 0.045581 | 0.114546 | 0.075704 | 0.046373 | 0.031708 | 0 | 0 | 0 | 0.006816 | 0.2284 | 3,993 | 85 | 139 | 46.976471 | 0.812074 | 0.167042 | 0 | 0 | 0 | 0 | 0.110843 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 1 | 0.044118 | false | 0 | 0.132353 | 0 | 0.191176 | 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 | 0 | 0 | 1 | 0 |
bfc67912cacb053d18b81a8c4ccd2fa05884f9dd | 8,528 | py | Python | wifi12306.py | Arnie97/emu-screenshot-server | a50526c0d852cd61050ba2926d43c84241d57afb | [
"MIT"
] | 42 | 2018-01-16T10:48:58.000Z | 2020-08-28T07:34:56.000Z | wifi12306.py | Arnie97/emu-screenshot | a50526c0d852cd61050ba2926d43c84241d57afb | [
"MIT"
] | 1 | 2018-11-12T06:20:50.000Z | 2018-11-12T06:45:30.000Z | wifi12306.py | Arnie97/emu-screenshot | a50526c0d852cd61050ba2926d43c84241d57afb | [
"MIT"
] | 4 | 2018-06-09T02:29:45.000Z | 2020-08-07T11:47:52.000Z | #!/usr/bin/env python3
from datetime import date
from itertools import chain
from operator import itemgetter
from os.path import commonprefix
from tickets import API
from typing import Any, Iterable, Dict, List, Optional, Tuple
from util import repl, AttrDict
COMMENT_MAPPING = {
'A': "",
'B': "宿",
'C': "... | 33.443137 | 198 | 0.577744 | 992 | 8,528 | 4.72379 | 0.257056 | 0.044174 | 0.034144 | 0.017926 | 0.307298 | 0.245625 | 0.202732 | 0.148314 | 0.13679 | 0.13679 | 0 | 0.015521 | 0.297373 | 8,528 | 254 | 199 | 33.574803 | 0.766522 | 0.007505 | 0 | 0.256881 | 0 | 0.004587 | 0.142723 | 0.064425 | 0 | 0 | 0.001176 | 0 | 0 | 1 | 0.087156 | false | 0.004587 | 0.03211 | 0.03211 | 0.224771 | 0.03211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfc69200893675851efff0c9ed38ba8da908af17 | 1,648 | py | Python | tests/components/coronavirus/test_config_flow.py | basicpail/core | 5cc54618c5af3f75c08314bf2375cc7ac40d2b7e | [
"Apache-2.0"
] | 11 | 2018-02-16T15:35:47.000Z | 2020-01-14T15:20:00.000Z | tests/components/coronavirus/test_config_flow.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 79 | 2020-07-23T07:13:37.000Z | 2022-03-22T06:02:37.000Z | tests/components/coronavirus/test_config_flow.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11 | 2020-12-16T13:48:14.000Z | 2022-02-01T00:28:05.000Z | """Test the Coronavirus config flow."""
from unittest.mock import MagicMock, patch
from aiohttp import ClientError
from homeassistant import config_entries, setup
from homeassistant.components.coronavirus.const import DOMAIN, OPTION_WORLDWIDE
from homeassistant.core import HomeAssistant
async def test_form(hass: Ho... | 32.313725 | 79 | 0.703277 | 193 | 1,648 | 5.80829 | 0.352332 | 0.069581 | 0.040143 | 0.058876 | 0.332739 | 0.284567 | 0.256913 | 0.256913 | 0.256913 | 0.256913 | 0 | 0.004425 | 0.177184 | 1,648 | 50 | 80 | 32.96 | 0.822271 | 0.020024 | 0 | 0.153846 | 0 | 0 | 0.125162 | 0.04345 | 0 | 0 | 0 | 0 | 0.282051 | 1 | 0 | false | 0 | 0.128205 | 0 | 0.128205 | 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 | 0 | 0 | 1 | 0 |
bfc8836265bf50d2912b69d0feaa958739783ce7 | 64,150 | py | Python | src/view/perspective.py | struts2spring/sql-editor | 082868dd92cbd8f0f6715f734f9ebe64032cbe4a | [
"MIT"
] | 9 | 2018-10-15T04:57:37.000Z | 2021-12-07T07:39:35.000Z | src/view/perspective.py | struts2spring/sql-editor | 082868dd92cbd8f0f6715f734f9ebe64032cbe4a | [
"MIT"
] | 13 | 2018-10-19T11:52:44.000Z | 2021-09-08T00:39:30.000Z | src/view/perspective.py | struts2spring/sql-editor | 082868dd92cbd8f0f6715f734f9ebe64032cbe4a | [
"MIT"
] | 3 | 2018-10-25T11:08:04.000Z | 2021-02-23T08:28:31.000Z | import logging.config
import wx
from src.sqlite_executer.ConnectExecuteSqlite import SQLExecuter
from src.view.AutoCompleteTextCtrl import TextCtrlAutoComplete
# from src.view.TreePanel import CreatingTreePanel
from src.view.constants import *
from wx.lib.agw.aui.aui_constants import actionDragFloatingPane, A... | 47.589021 | 237 | 0.595479 | 6,624 | 64,150 | 5.596014 | 0.129378 | 0.010386 | 0.013219 | 0.012464 | 0.460586 | 0.390579 | 0.352568 | 0.311724 | 0.278245 | 0.265809 | 0 | 0.007771 | 0.287872 | 64,150 | 1,347 | 238 | 47.62435 | 0.803647 | 0.219111 | 0 | 0.300842 | 0 | 0 | 0.103892 | 0.012408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067389 | false | 0.002407 | 0.033694 | 0 | 0.134777 | 0.013237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfc96dc65fba4dfeccca21923ae5c19d56187622 | 1,042 | py | Python | pyscripts/truncate_lines.py | joseph62/Scripts | 13aab2a51957894f4d524b7a868cb7e51dbba980 | [
"MIT"
] | null | null | null | pyscripts/truncate_lines.py | joseph62/Scripts | 13aab2a51957894f4d524b7a868cb7e51dbba980 | [
"MIT"
] | null | null | null | pyscripts/truncate_lines.py | joseph62/Scripts | 13aab2a51957894f4d524b7a868cb7e51dbba980 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import sys
import argparse
import signal
DEFAULT_LINE_LENGTH = 80
def parse_arguments(args):
parser = argparse.ArgumentParser(
description="Trucate incoming lines to a specified length with an optional suffix"
)
parser.add_argument(
"-l", "--length", help="The ma... | 22.652174 | 90 | 0.642035 | 137 | 1,042 | 4.722628 | 0.467153 | 0.046368 | 0.055641 | 0.071097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008906 | 0.245681 | 1,042 | 45 | 91 | 23.155556 | 0.814249 | 0.021113 | 0 | 0.0625 | 0 | 0 | 0.20314 | 0.034347 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.09375 | 0 | 0.25 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfcb37f297e73011c6f83e4feb6d86e5b96b07bc | 30,944 | py | Python | mpisppy/opt/lshaped.py | Matthew-Signorotti/mpi-sppy | 5c6b4b8cd26af517ff09706d11751f2fb05b1b5f | [
"BSD-3-Clause"
] | null | null | null | mpisppy/opt/lshaped.py | Matthew-Signorotti/mpi-sppy | 5c6b4b8cd26af517ff09706d11751f2fb05b1b5f | [
"BSD-3-Clause"
] | null | null | null | mpisppy/opt/lshaped.py | Matthew-Signorotti/mpi-sppy | 5c6b4b8cd26af517ff09706d11751f2fb05b1b5f | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2020 by B. Knueven, D. Mildebrath, C. Muir, J-P Watson, and D.L. Woodruff
# This software is distributed under the 3-clause BSD License.
import pyomo.environ as pyo
import mpisppy.utils.sputils as sputils
import numpy as np
import itertools
import time
import sys
import mpisppy.spbase as spbase
from mpispp... | 39.824968 | 152 | 0.607226 | 3,863 | 30,944 | 4.660368 | 0.137458 | 0.020941 | 0.015997 | 0.014442 | 0.433817 | 0.385547 | 0.341332 | 0.297173 | 0.255791 | 0.238016 | 0 | 0.005302 | 0.317283 | 30,944 | 776 | 153 | 39.876289 | 0.846871 | 0.207601 | 0 | 0.358527 | 0 | 0 | 0.066363 | 0 | 0 | 0 | 0 | 0 | 0.00969 | 1 | 0.03876 | false | 0 | 0.034884 | 0.001938 | 0.091085 | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
bfcbc5d0c314cd0ac9510073757086968e66ea31 | 4,812 | py | Python | Features/NucleotideContent.py | jcg/d-tailor | 7ea83bcf7a2cda21eb8727575ff2b20ac8b49606 | [
"BSD-2-Clause"
] | 14 | 2016-05-19T08:31:44.000Z | 2021-08-05T08:56:56.000Z | Features/NucleotideContent.py | jcg/d-tailor | 7ea83bcf7a2cda21eb8727575ff2b20ac8b49606 | [
"BSD-2-Clause"
] | 1 | 2018-09-25T12:00:23.000Z | 2018-12-10T18:42:31.000Z | Features/NucleotideContent.py | jcg/d-tailor | 7ea83bcf7a2cda21eb8727575ff2b20ac8b49606 | [
"BSD-2-Clause"
] | 4 | 2016-06-23T21:40:49.000Z | 2021-02-02T03:05:35.000Z | '''
Created on Nov 16, 2011
@author: jcg
'''
from Features.Feature import Feature
import Functions
from uuid import uuid4
class NucleotideContent(Feature):
"""
Nucleotide Content Feature
solution - solution where nucleotide content should be computed
label - some label to append to the name
... | 43.745455 | 206 | 0.625104 | 461 | 4,812 | 6.266811 | 0.266811 | 0.041537 | 0.150225 | 0.082381 | 0.282451 | 0.217376 | 0.217376 | 0.217376 | 0.217376 | 0.217376 | 0 | 0.004993 | 0.292394 | 4,812 | 110 | 207 | 43.745455 | 0.843465 | 0.14256 | 0 | 0.323077 | 0 | 0 | 0.035105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138462 | false | 0 | 0.061538 | 0 | 0.353846 | 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 | 0 | 0 | 1 | 0 |
bfcdbaafa9988638af7ac347c436a853bc52d3ed | 6,090 | py | Python | python/etl/tests/spark/app/test_smartstore_src_to_log0.py | beobest2/delta | 0107d5322492c420a044fa41d90be03375606bea | [
"Apache-2.0"
] | 1 | 2021-12-01T00:35:13.000Z | 2021-12-01T00:35:13.000Z | python/etl/tests/spark/app/test_smartstore_src_to_log0.py | beobest2/delta | 0107d5322492c420a044fa41d90be03375606bea | [
"Apache-2.0"
] | null | null | null | python/etl/tests/spark/app/test_smartstore_src_to_log0.py | beobest2/delta | 0107d5322492c420a044fa41d90be03375606bea | [
"Apache-2.0"
] | null | null | null | from argparse import Namespace
import pytest
from laplace_spark.app.smartstore_src_to_log0 import SparkAppSmartstoreSrcToLog0
from laplace_spark.constants import DATE_ID_COLUMN_NAME
from laplace_spark.modules.provider import Provider
from laplace_spark.modules.utils.laplace_utils import LaplaceUtils
from tests.utils i... | 29.563107 | 98 | 0.691297 | 757 | 6,090 | 5.108322 | 0.110964 | 0.083786 | 0.074476 | 0.086889 | 0.670028 | 0.642358 | 0.559348 | 0.51849 | 0.468063 | 0.399535 | 0 | 0.009165 | 0.229557 | 6,090 | 205 | 99 | 29.707317 | 0.815004 | 0 | 0 | 0.52907 | 0 | 0 | 0.091133 | 0.06798 | 0 | 0 | 0 | 0 | 0.087209 | 1 | 0.098837 | false | 0 | 0.040698 | 0 | 0.145349 | 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 | 0 | 0 | 1 | 0 |
bfd04b70e5cd39ca29b574b5353e8f0319f41223 | 2,325 | py | Python | app.py | laurohen/api-flask-mysql | 3660d8828203476ea87b2580ed4b0508c0ea3af6 | [
"MIT"
] | null | null | null | app.py | laurohen/api-flask-mysql | 3660d8828203476ea87b2580ed4b0508c0ea3af6 | [
"MIT"
] | null | null | null | app.py | laurohen/api-flask-mysql | 3660d8828203476ea87b2580ed4b0508c0ea3af6 | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify, make_response
from flask_sqlalchemy import SQLAlchemy
from marshmallow import fields
from marshmallow_sqlalchemy import ModelSchema
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://username:password@host:port/database-name'
db = SQLAlchemy(app)
... | 26.420455 | 99 | 0.67828 | 315 | 2,325 | 4.787302 | 0.253968 | 0.059682 | 0.036472 | 0.043103 | 0.312997 | 0.264589 | 0.177719 | 0.157825 | 0.157825 | 0.157825 | 0 | 0.00676 | 0.172903 | 2,325 | 88 | 100 | 26.420455 | 0.777431 | 0.002151 | 0 | 0.21875 | 0 | 0 | 0.115567 | 0.061665 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.015625 | 0.0625 | 0.015625 | 0.421875 | 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 | 0 | 0 | 1 | 0 |
bfd196b146e9b5ea426e42cd1a578fe228ee3eac | 647 | py | Python | inspector/checks/constants.py | yoyowallet/inspector | a6ee3328a4dcf49b0e5b62d23195ed44f515a705 | [
"Apache-2.0"
] | 7 | 2019-03-03T14:47:47.000Z | 2020-10-31T00:26:52.000Z | inspector/checks/constants.py | yoyowallet/inspector | a6ee3328a4dcf49b0e5b62d23195ed44f515a705 | [
"Apache-2.0"
] | 2 | 2019-03-06T19:35:41.000Z | 2020-11-04T11:57:18.000Z | inspector/checks/constants.py | yoyowallet/inspector | a6ee3328a4dcf49b0e5b62d23195ed44f515a705 | [
"Apache-2.0"
] | 3 | 2019-03-03T16:29:44.000Z | 2020-10-31T00:47:01.000Z | from model_utils import Choices
RELATIONS = Choices(
(0, 'eq', '='),
(1, 'ne', '!='),
(2, 'gt', '>'),
(3, 'lt', '<'),
(4, 'ge', '>='),
(5, 'le', '<='),
)
STATUSES = Choices(
('NEW', 'New'),
('RUNNING', 'Running'),
('FINISHED', 'Finished'),
('ERROR', 'Error')
)
RESULTS = Choice... | 19.029412 | 50 | 0.479134 | 64 | 647 | 4.765625 | 0.5625 | 0.052459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024341 | 0.238022 | 647 | 33 | 51 | 19.606061 | 0.59432 | 0 | 0 | 0 | 0 | 0 | 0.338485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 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 | 0 | 0 | 1 | 0 |
bfd4a079399c71c1620bc498d4b73a09c55a55ad | 661 | bzl | Python | versions.bzl | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 16 | 2021-07-14T23:32:31.000Z | 2022-03-24T16:25:15.000Z | versions.bzl | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-20T20:39:47.000Z | 2021-09-16T20:57:59.000Z | versions.bzl | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-15T19:38:35.000Z | 2022-01-31T19:24:56.000Z | # Product versions live here (and only here). They should be bumped at every
# release.
#
# NOTE: This is parsable by both bazel and sh. Do not add arbitrary
# text here.
#
# Versions *must* adhere to semantic versioning rules. See http://semver.org/
#
# Don't forget to also update relevant docs and README.txt files. ... | 30.045455 | 77 | 0.750378 | 111 | 661 | 4.423423 | 0.63964 | 0.02444 | 0.03666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.15885 | 661 | 21 | 78 | 31.47619 | 0.861511 | 0.789713 | 0 | 0 | 0 | 0 | 0.224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bfd7afdce647ef41b496ff6aa9e1fd9678d81b54 | 542 | py | Python | Lesson 02.gf/intermediate_expressions.py | gfoo003/programming-together | 225e0a2255dd8da1f1ef32d2a88deea27c050f10 | [
"MIT"
] | null | null | null | Lesson 02.gf/intermediate_expressions.py | gfoo003/programming-together | 225e0a2255dd8da1f1ef32d2a88deea27c050f10 | [
"MIT"
] | null | null | null | Lesson 02.gf/intermediate_expressions.py | gfoo003/programming-together | 225e0a2255dd8da1f1ef32d2a88deea27c050f10 | [
"MIT"
] | null | null | null | name=input("hi, what's your name?")
age=input("how old are you?")
print("your name is ", name, "and you are ", age )
# int(x) = change string to integer
# str(x)= change integer to string
# to check type, print(type"x")
# you can only print "results" of the same type, unless doing string interpolation.
# difference b... | 30.111111 | 103 | 0.726937 | 88 | 542 | 4.477273 | 0.545455 | 0.040609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002183 | 0.154982 | 542 | 17 | 104 | 31.882353 | 0.858079 | 0.599631 | 0 | 0 | 0 | 0 | 0.326923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
449e221a47922edae38daf290f2bdc462fa87ed3 | 446 | py | Python | dueros/directive/Pay/Buy.py | Mryan2005/bot-sdk-python | f961aedf141e966badd5cd577ad8913dd9733998 | [
"Apache-2.0"
] | 70 | 2018-01-04T06:47:58.000Z | 2021-07-28T03:08:48.000Z | dueros/directive/Pay/Buy.py | mlzboy/bot-sdk-python | 664c90ec6d0abbb0844c030cd3114693a96b12ab | [
"Apache-2.0"
] | 16 | 2018-01-02T15:25:23.000Z | 2020-03-14T07:25:44.000Z | dueros/directive/Pay/Buy.py | mlzboy/bot-sdk-python | 664c90ec6d0abbb0844c030cd3114693a96b12ab | [
"Apache-2.0"
] | 32 | 2018-01-09T10:19:46.000Z | 2021-05-06T08:35:52.000Z | #!/usr/bin/env python3
# -*- encoding=utf-8 -*-
# description:
# author:jack
# create_time: 2019-07-04
from dueros.directive.BaseDirective import BaseDirective
class Buy(BaseDirective):
"""
用于生成Buy指令的类
"""
def __init__(self, product_id, token=''):
super(Buy, self).__init__('Connections.Send... | 21.238095 | 64 | 0.639013 | 50 | 446 | 5.48 | 0.72 | 0.065693 | 0.094891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028329 | 0.20852 | 446 | 20 | 65 | 22.3 | 0.747875 | 0.235426 | 0 | 0 | 0 | 0 | 0.149533 | 0.084112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44a2791177029781912dd84d5fb81d78441a1833 | 1,488 | py | Python | server-python3/test/test.py | Aaron-Ming/websocket_terminal | 42c24391d51c275eabf1f879fb312b9a3614f51e | [
"MIT"
] | 40 | 2016-11-20T09:48:27.000Z | 2021-04-02T00:29:14.000Z | server-python3/test/test.py | Aaron-Ming/websocket_terminal | 42c24391d51c275eabf1f879fb312b9a3614f51e | [
"MIT"
] | 6 | 2018-01-07T03:43:22.000Z | 2022-03-21T08:43:33.000Z | server-python3/test/test.py | glensc/websocket_terminal | 42c24391d51c275eabf1f879fb312b9a3614f51e | [
"MIT"
] | 20 | 2016-12-02T06:00:27.000Z | 2021-08-15T11:40:34.000Z | import threading
import sys
import subprocess
import eventlet
import eventlet.tpool
import eventlet.green.subprocess
from eventlet import green
eventlet.monkey_patch()
def consume(stream, pref=b'T> '):
print("CHK consume 1")
p = pref
while True:
print("CHK consume 2")
data = stream.rea... | 22.208955 | 118 | 0.640457 | 198 | 1,488 | 4.747475 | 0.328283 | 0.093617 | 0.111702 | 0.040426 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013169 | 0.234543 | 1,488 | 66 | 119 | 22.545455 | 0.812116 | 0.038978 | 0 | 0.042553 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.148936 | 0 | 0.276596 | 0.234043 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44a509e87a818b2445cd5c73173ed6b47ce8470d | 1,591 | py | Python | climatecontrol/cli_utils.py | daviskirk/climatecontrol | f1fed474d649eaf4d75ed5b7cdda333faef4bbd7 | [
"MIT"
] | 19 | 2018-01-19T13:42:18.000Z | 2022-02-27T22:20:39.000Z | climatecontrol/cli_utils.py | daviskirk/climatecontrol | f1fed474d649eaf4d75ed5b7cdda333faef4bbd7 | [
"MIT"
] | 27 | 2016-06-01T23:03:48.000Z | 2022-02-27T22:24:36.000Z | climatecontrol/cli_utils.py | daviskirk/climatecontrol | f1fed474d649eaf4d75ed5b7cdda333faef4bbd7 | [
"MIT"
] | 2 | 2017-07-10T09:49:55.000Z | 2018-01-10T12:38:34.000Z | """CLI utils for easy command line extras."""
import click
from climatecontrol import core
def click_settings_file_option(
settings_obj: core.Climate, click_obj=click, option_name="settings", **kw
):
"""Build a `click` option decorator.
Args:
settings_obj: settings object to load configuration ... | 26.081967 | 81 | 0.63105 | 194 | 1,591 | 4.979381 | 0.43299 | 0.062112 | 0.031056 | 0.060041 | 0.144928 | 0.080745 | 0 | 0 | 0 | 0 | 0 | 0.000868 | 0.275927 | 1,591 | 60 | 82 | 26.516667 | 0.837674 | 0.472659 | 0 | 0 | 0 | 0 | 0.086667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.227273 | 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 | 0 | 0 | 1 | 0 |
44aa2a1d82bec0cc44381f7808cea5fcad7ec790 | 2,888 | py | Python | utils.py | andreloezer/zombie-dice | 0a97f0d14a2c5ada480e416e4a3f3fc1f47f8c30 | [
"MIT"
] | null | null | null | utils.py | andreloezer/zombie-dice | 0a97f0d14a2c5ada480e416e4a3f3fc1f47f8c30 | [
"MIT"
] | null | null | null | utils.py | andreloezer/zombie-dice | 0a97f0d14a2c5ada480e416e4a3f3fc1f47f8c30 | [
"MIT"
] | null | null | null | """Miscellaneous functions goes in here.
"""
from os import system
from config import OS
from strings import UtilsStrings as Strings
def clear_console() -> None:
"""Clear console terminal.
"""
command = "clear"
if OS in ("nt", "dos"):
command = "cls"
system(command)
def char_input() -... | 27.245283 | 111 | 0.61115 | 354 | 2,888 | 4.912429 | 0.353107 | 0.020127 | 0.025877 | 0.041403 | 0.156412 | 0.117309 | 0.078206 | 0.078206 | 0.054054 | 0 | 0 | 0.003955 | 0.299515 | 2,888 | 105 | 112 | 27.504762 | 0.85566 | 0.345914 | 0 | 0.285714 | 0 | 0 | 0.010129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.125 | 0 | 0.339286 | 0.089286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44ac65411f95028d1ff96429ecd33acb3965c521 | 1,348 | py | Python | tests/test_analyser/test_sniffer_shpr.py | di-unipi-socc/micro-tosca | 5d5c9361b34eeabaed8955ddc62282607672bd81 | [
"MIT"
] | null | null | null | tests/test_analyser/test_sniffer_shpr.py | di-unipi-socc/micro-tosca | 5d5c9361b34eeabaed8955ddc62282607672bd81 | [
"MIT"
] | 3 | 2019-10-02T13:55:39.000Z | 2021-06-01T22:55:20.000Z | tests/test_analyser/test_sniffer_shpr.py | di-unipi-socc/microFreshener-core | 5d5c9361b34eeabaed8955ddc62282607672bd81 | [
"MIT"
] | null | null | null | from unittest import TestCase
from microfreshener.core.importer import YMLImporter
from microfreshener.core.analyser.sniffer import SharedPersistencySmellSniffer
from microfreshener.core.analyser.smell import SharedPersistencySmell
from microfreshener.core.model.groups import Edge
class TestSharedPersitence(TestCase... | 36.432432 | 78 | 0.714392 | 142 | 1,348 | 6.690141 | 0.34507 | 0.082105 | 0.092632 | 0.096842 | 0.450526 | 0.422105 | 0.309474 | 0.223158 | 0.223158 | 0 | 0 | 0.00546 | 0.184718 | 1,348 | 36 | 79 | 37.444444 | 0.858963 | 0 | 0 | 0.241379 | 0 | 0 | 0.029674 | 0.023739 | 0 | 0 | 0 | 0 | 0.275862 | 1 | 0.137931 | false | 0 | 0.241379 | 0 | 0.413793 | 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 | 0 | 0 | 1 | 0 |
44ad4566bf3e052d6f2cd5576c859905edc198bd | 9,068 | py | Python | geneal/applications/tsp/travelling_salesman_problem.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 47 | 2020-07-10T14:28:52.000Z | 2022-03-25T17:20:52.000Z | geneal/applications/tsp/travelling_salesman_problem.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 10 | 2020-08-08T16:35:40.000Z | 2022-03-08T00:07:19.000Z | geneal/applications/tsp/travelling_salesman_problem.py | NeveIsa/geneal | 064b0409912088886bf56fe9a729d74dac92a235 | [
"MIT"
] | 14 | 2020-08-07T20:49:18.000Z | 2022-03-31T17:55:47.000Z | import random
import time
from functools import reduce
import hashlib
from collections import defaultdict
import numpy as np
from numba import njit
from numba.core import types
from numba.typed import Dict
from geneal.applications.tsp.mutation_strategies import MutationStrategies
from geneal.genetic_algorithms import... | 31.929577 | 104 | 0.638619 | 1,089 | 9,068 | 5.115702 | 0.232323 | 0.063184 | 0.01436 | 0.037695 | 0.282714 | 0.225992 | 0.184348 | 0.17986 | 0.156166 | 0.132831 | 0 | 0.010563 | 0.269188 | 9,068 | 283 | 105 | 32.042403 | 0.830089 | 0.177658 | 0 | 0.069182 | 0 | 0 | 0.106451 | 0.0209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.075472 | 0 | 0.238994 | 0.012579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44aee10963b90c303639a9d3405aa32659f7cfd5 | 12,188 | py | Python | src/component/PlaylistDialog.py | renchangjiu/kon-windows | a20f33fc98cd197e1e601b5d97adecabee9176d8 | [
"MIT"
] | 2 | 2020-06-01T00:34:50.000Z | 2020-12-08T14:40:41.000Z | src/component/PlaylistDialog.py | renchangjiu/kon-windows | a20f33fc98cd197e1e601b5d97adecabee9176d8 | [
"MIT"
] | null | null | null | src/component/PlaylistDialog.py | renchangjiu/kon-windows | a20f33fc98cd197e1e601b5d97adecabee9176d8 | [
"MIT"
] | null | null | null | from PyQt5 import QtGui
from PyQt5.QtCore import Qt, QEvent, QModelIndex
from PyQt5.QtGui import QPixmap, QColor, QIcon, QCursor, QPainter, QPen
from PyQt5.QtWidgets import QWidget, QTableWidgetItem, \
QAction, QMenu, QLabel, QWidgetAction, QHBoxLayout
from src.Apps import Apps
from src.model.MusicList import Musi... | 44.808824 | 118 | 0.628159 | 1,318 | 12,188 | 5.694234 | 0.254932 | 0.063957 | 0.017588 | 0.021319 | 0.214657 | 0.164823 | 0.136975 | 0.10553 | 0.10553 | 0.10553 | 0 | 0.025868 | 0.248277 | 12,188 | 271 | 119 | 44.97417 | 0.793277 | 0.065967 | 0 | 0.074074 | 0 | 0.018519 | 0.149894 | 0.1276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069444 | false | 0.00463 | 0.037037 | 0 | 0.12037 | 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 | 0 | 0 | 1 | 0 |
44b09eface0e025db8dfa1c9489702d2607f4f1d | 8,486 | py | Python | linux/avnav_gui.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | linux/avnav_gui.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | linux/avnav_gui.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ts=2 sw=2 et ai
###############################################################################
# Copyright (c) 2012,2014 Andreas Vogel andreas@wellenvogel.net
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and a... | 36.895652 | 168 | 0.600283 | 929 | 8,486 | 5.427341 | 0.307858 | 0.01785 | 0.015867 | 0.013883 | 0.180087 | 0.12257 | 0.081515 | 0.047798 | 0.036692 | 0.036692 | 0 | 0.006312 | 0.27186 | 8,486 | 229 | 169 | 37.056769 | 0.809678 | 0.154018 | 0 | 0.359551 | 0 | 0 | 0.071234 | 0.003147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101124 | false | 0.039326 | 0.044944 | 0 | 0.219101 | 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 | 0 | 0 | 1 | 0 |
44b155e14a6c99695a7fb8ef157cc096fe1beb35 | 8,162 | py | Python | powermeterapatorec3.py | grillbaer/data-logger | f0d5b878e8f4a2f8eafcc8453d8f3b42c210558d | [
"Apache-2.0"
] | 9 | 2018-03-11T20:46:31.000Z | 2022-03-28T13:28:43.000Z | powermeterapatorec3.py | grillbaer/data-logger | f0d5b878e8f4a2f8eafcc8453d8f3b42c210558d | [
"Apache-2.0"
] | null | null | null | powermeterapatorec3.py | grillbaer/data-logger | f0d5b878e8f4a2f8eafcc8453d8f3b42c210558d | [
"Apache-2.0"
] | 1 | 2020-05-03T07:15:08.000Z | 2020-05-03T07:15:08.000Z | """
Communication with APATOR EC3 power meter to get its actual readings.
"""
from __future__ import annotations
__author__ = 'Holger Fleischmann'
__copyright__ = 'Copyright 2021, Holger Fleischmann, Bavaria/Germany'
__license__ = 'Apache License 2.0'
import logging
import time
from typing import NamedTuple, Optiona... | 33.314286 | 115 | 0.636364 | 1,004 | 8,162 | 4.947211 | 0.231076 | 0.034226 | 0.014496 | 0.018321 | 0.151399 | 0.057177 | 0.031005 | 0.017314 | 0.017314 | 0.017314 | 0 | 0.011017 | 0.277138 | 8,162 | 244 | 116 | 33.45082 | 0.830847 | 0.165523 | 0 | 0.11875 | 0 | 0 | 0.042166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1125 | false | 0 | 0.04375 | 0 | 0.35625 | 0.00625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44b2ed7cd64ff69161aa71d32d7a5abf6638b0c2 | 6,939 | py | Python | django/peering_coord/peering_policy.py | netsys-lab/scion-peering-coordinator | cd2fc9e9423242cafe90e71a54f4ad9e763acdae | [
"MIT"
] | null | null | null | django/peering_coord/peering_policy.py | netsys-lab/scion-peering-coordinator | cd2fc9e9423242cafe90e71a54f4ad9e763acdae | [
"MIT"
] | null | null | null | django/peering_coord/peering_policy.py | netsys-lab/scion-peering-coordinator | cd2fc9e9423242cafe90e71a54f4ad9e763acdae | [
"MIT"
] | null | null | null | """Functions for updating links according to peering policies"""
from django.db import transaction
from django.db.models import Q, QuerySet
from peering_coord.api.client_connection import ClientRegistry
from peering_coord.api.peering_pb2 import AsyncError
from peering_coord.models.ixp import VLAN, Interface, Owner
fr... | 40.817647 | 99 | 0.683816 | 978 | 6,939 | 4.616564 | 0.175869 | 0.033666 | 0.034552 | 0.035437 | 0.442082 | 0.407309 | 0.339092 | 0.32093 | 0.245183 | 0.223034 | 0 | 0.000555 | 0.221646 | 6,939 | 169 | 100 | 41.059172 | 0.835401 | 0.213143 | 0 | 0.194175 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038835 | false | 0 | 0.067961 | 0 | 0.126214 | 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 | 0 | 0 | 1 | 0 |
44b55411280b2c91c5d8253412bafa1ca94c9a7f | 33,900 | py | Python | momepy/dimension.py | AleFeli/momepy | fd68bdd2518e2c1cadce41a6059a93cebb2c1864 | [
"MIT"
] | 1 | 2021-06-19T05:41:30.000Z | 2021-06-19T05:41:30.000Z | momepy/dimension.py | AleFeli/momepy | fd68bdd2518e2c1cadce41a6059a93cebb2c1864 | [
"MIT"
] | null | null | null | momepy/dimension.py | AleFeli/momepy | fd68bdd2518e2c1cadce41a6059a93cebb2c1864 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# dimension.py
# definitions of dimension characters
import math
import numpy as np
import pandas as pd
import scipy as sp
from shapely.geometry import LineString, Point, Polygon
from tqdm import tqdm
from .shape import _make_circle
__all__ = [
"Area",
"Perimet... | 33.798604 | 146 | 0.578643 | 3,836 | 33,900 | 5.02633 | 0.125912 | 0.041388 | 0.030808 | 0.025725 | 0.583943 | 0.545822 | 0.494321 | 0.458586 | 0.423733 | 0.388777 | 0 | 0.018534 | 0.323569 | 33,900 | 1,002 | 147 | 33.832335 | 0.820113 | 0.430885 | 0 | 0.434466 | 0 | 0 | 0.034149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038835 | false | 0 | 0.024272 | 0 | 0.101942 | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44b618144cd7630733cffae5d1cb9672a7fba58e | 6,430 | py | Python | tests/test_db.py | craymaru/serverless-todo-backend | 5f0bd32b321e783fbdcab2714ccd0cdee30f6156 | [
"MIT"
] | 1 | 2020-12-08T09:16:27.000Z | 2020-12-08T09:16:27.000Z | tests/test_db.py | craymaru/serverless-todo-backend | 5f0bd32b321e783fbdcab2714ccd0cdee30f6156 | [
"MIT"
] | null | null | null | tests/test_db.py | craymaru/serverless-todo-backend | 5f0bd32b321e783fbdcab2714ccd0cdee30f6156 | [
"MIT"
] | null | null | null | import operator
import pytest
from chalice import NotFoundError
import app
from tests.testdata.ddb_items import TESTDATA_DDB_ITEMS
DEFAULT_USERNAME = 'default'
class TestDB:
pass
class TestListAllItems(TestDB):
def test_Return_all_items(self, mock):
"""list_all_items: すべてのアイテムを取得することができる"""
... | 38.502994 | 85 | 0.671851 | 719 | 6,430 | 5.724618 | 0.154381 | 0.056122 | 0.081633 | 0.040087 | 0.685374 | 0.652818 | 0.604956 | 0.587707 | 0.566812 | 0.566812 | 0 | 0.003942 | 0.210886 | 6,430 | 166 | 86 | 38.73494 | 0.806858 | 0.196112 | 0 | 0.524272 | 0 | 0 | 0.060397 | 0 | 0 | 0 | 0 | 0 | 0.106796 | 1 | 0.135922 | false | 0.009709 | 0.048544 | 0 | 0.252427 | 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 | 0 | 0 | 1 | 0 |
44b63f8dd16194a8fc997b6be8fdf43178a1bc65 | 11,651 | py | Python | src/vessel-drift-analysis/scripts/simulations/launch_drift.py | yosoyjay/project-nps-vessel-drift | 1cdc14ef87db31fa03b0c3bdc1d60c332727ef57 | [
"MIT"
] | null | null | null | src/vessel-drift-analysis/scripts/simulations/launch_drift.py | yosoyjay/project-nps-vessel-drift | 1cdc14ef87db31fa03b0c3bdc1d60c332727ef57 | [
"MIT"
] | null | null | null | src/vessel-drift-analysis/scripts/simulations/launch_drift.py | yosoyjay/project-nps-vessel-drift | 1cdc14ef87db31fa03b0c3bdc1d60c332727ef57 | [
"MIT"
] | null | null | null | #!python
"""Launch vessel drift simulations.
Methodology
-----------
For every week with forcing data, simulated vessels are launched from every cell where
a vessel was present in the AIS data.
The drift angle (up to 60 deg.), windage scaling (2% - 10% of 10 m), and left/right
direction is randomly assigned per simul... | 32.912429 | 122 | 0.618488 | 1,490 | 11,651 | 4.618121 | 0.239597 | 0.015114 | 0.030228 | 0.020927 | 0.224967 | 0.182677 | 0.126144 | 0.095771 | 0.083127 | 0.047377 | 0 | 0.029799 | 0.282808 | 11,651 | 353 | 123 | 33.005666 | 0.793562 | 0.167282 | 0 | 0.089494 | 0 | 0.015564 | 0.164349 | 0.100851 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023346 | false | 0.003891 | 0.050584 | 0 | 0.136187 | 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 | 0 | 0 | 1 | 0 |
44b6d6a32049f0dfb679101cd399346994e52f62 | 932 | py | Python | setup.py | bobbypaton/pyX-Struct | c6e7132f010635ebc95aea09cef75247271026de | [
"MIT"
] | 6 | 2018-09-01T21:00:20.000Z | 2022-01-11T11:13:38.000Z | setup.py | bobbypaton/pyX-Struct | c6e7132f010635ebc95aea09cef75247271026de | [
"MIT"
] | null | null | null | setup.py | bobbypaton/pyX-Struct | c6e7132f010635ebc95aea09cef75247271026de | [
"MIT"
] | null | null | null | from setuptools import setup
import io
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with io.open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name = 'pyxstruct',
packages = ['pyxstruct'],... | 33.285714 | 86 | 0.722103 | 124 | 932 | 5.282258 | 0.677419 | 0.091603 | 0.058015 | 0.091603 | 0.109924 | 0.109924 | 0.109924 | 0 | 0 | 0 | 0 | 0.01107 | 0.127682 | 932 | 27 | 87 | 34.518519 | 0.794588 | 0.0397 | 0 | 0 | 0 | 0.043478 | 0.365471 | 0.029148 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 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 | 0 | 0 | 1 | 0 |
44ba14a55225e2fca7e6776005ca90c19e46d4ef | 7,317 | py | Python | hypernets/tabular/ensemble/base_ensemble.py | Enpen/Hypernets | 5fbf01412ffaef310855d98f52f8cc169e96246b | [
"Apache-2.0"
] | null | null | null | hypernets/tabular/ensemble/base_ensemble.py | Enpen/Hypernets | 5fbf01412ffaef310855d98f52f8cc169e96246b | [
"Apache-2.0"
] | null | null | null | hypernets/tabular/ensemble/base_ensemble.py | Enpen/Hypernets | 5fbf01412ffaef310855d98f52f8cc169e96246b | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
__author__ = 'yangjian'
"""
"""
import copy
import pickle
from sklearn.model_selection import StratifiedKFold
from hypernets.utils import fs
class BaseEnsemble:
import numpy as np
def __init__(self, task, estimators, need_fit=False, n_folds=5, method='soft', random_state=9527):
... | 38.109375 | 111 | 0.574962 | 883 | 7,317 | 4.613817 | 0.150623 | 0.099656 | 0.022091 | 0.034364 | 0.425626 | 0.303387 | 0.22975 | 0.163476 | 0.121748 | 0.088856 | 0 | 0.009406 | 0.31707 | 7,317 | 191 | 112 | 38.308901 | 0.805884 | 0.030204 | 0 | 0.228758 | 0 | 0.006536 | 0.068907 | 0.029653 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.098039 | false | 0 | 0.03268 | 0.006536 | 0.196078 | 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 | 0 | 0 | 1 | 0 |
44bdf8f5ecb0e60fa1e48ee58697351e0ea1c854 | 3,456 | py | Python | KMeansClustering/clustering.py | saberzuko/MachineLearningAlgorithms | a7072e7342b0836f195325faed169f5d1de23f76 | [
"MIT"
] | null | null | null | KMeansClustering/clustering.py | saberzuko/MachineLearningAlgorithms | a7072e7342b0836f195325faed169f5d1de23f76 | [
"MIT"
] | null | null | null | KMeansClustering/clustering.py | saberzuko/MachineLearningAlgorithms | a7072e7342b0836f195325faed169f5d1de23f76 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.spatial import distance
import random
def mu_generator(X, K):
# Function to initialize the cluster centers
# The input is the training data X and the number of cluster centers
mu = []; rand_keys = []
for _ in range(K):
rand = random.randint(0, len(X)-1)
# T... | 39.724138 | 97 | 0.640625 | 503 | 3,456 | 4.310139 | 0.272366 | 0.135609 | 0.031365 | 0.017989 | 0.066421 | 0.021218 | 0.021218 | 0 | 0 | 0 | 0 | 0.005263 | 0.285301 | 3,456 | 86 | 98 | 40.186047 | 0.87247 | 0.409722 | 0 | 0.076923 | 0 | 0 | 0.001489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.057692 | 0 | 0.173077 | 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 | 0 | 0 | 1 | 0 |
44be7e179d9f24df461429aeb0c1ef7aff9ab585 | 3,060 | py | Python | utils/static_common_utils.py | UESTC-Liuxin/CVMI_Sementic_Segmentation | dc5bf6e940cf6961ef65abb6e7ec372f29d55249 | [
"Apache-2.0"
] | null | null | null | utils/static_common_utils.py | UESTC-Liuxin/CVMI_Sementic_Segmentation | dc5bf6e940cf6961ef65abb6e7ec372f29d55249 | [
"Apache-2.0"
] | null | null | null | utils/static_common_utils.py | UESTC-Liuxin/CVMI_Sementic_Segmentation | dc5bf6e940cf6961ef65abb6e7ec372f29d55249 | [
"Apache-2.0"
] | null | null | null | '''
Author: Liu Xin
Date: 2021-11-13 19:11:06
LastEditors: Liu Xin
LastEditTime: 2021-11-25 15:44:12
Description: 静态工具库
FilePath: /CVMI_Sementic_Segmentation/utils/static_common_utils.py
'''
import os
import random
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import warnings
from socket import g... | 27.321429 | 79 | 0.66634 | 414 | 3,060 | 4.775362 | 0.439614 | 0.042489 | 0.027314 | 0.028832 | 0.042994 | 0.028326 | 0.028326 | 0 | 0 | 0 | 0 | 0.015711 | 0.230392 | 3,060 | 112 | 80 | 27.321429 | 0.823779 | 0.285294 | 0 | 0.033333 | 0 | 0 | 0.07604 | 0.012912 | 0 | 0 | 0 | 0 | 0.016667 | 1 | 0.116667 | false | 0.016667 | 0.133333 | 0 | 0.35 | 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 | 0 | 0 | 1 | 0 |
44bf0a5052cbf6a144e0a5b040f0b62cdb2a95c6 | 230 | py | Python | receivers.py | MortalHappiness/mailer | cf7252d97ef42ac31f82e2745723c9d5629ac6a2 | [
"MIT"
] | null | null | null | receivers.py | MortalHappiness/mailer | cf7252d97ef42ac31f82e2745723c9d5629ac6a2 | [
"MIT"
] | null | null | null | receivers.py | MortalHappiness/mailer | cf7252d97ef42ac31f82e2745723c9d5629ac6a2 | [
"MIT"
] | null | null | null | import csv
def get_receivers():
"""
Return a list of receivers here
"""
with open("receivers.csv") as fin:
reader = csv.reader(fin)
receivers = [row[0] for row in reader]
return receivers
| 19.166667 | 46 | 0.591304 | 30 | 230 | 4.5 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.304348 | 230 | 11 | 47 | 20.909091 | 0.8375 | 0.134783 | 0 | 0 | 0 | 0 | 0.071038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
44bfddd8311b2ce5f5b9d04ea8832fb97c03d8da | 4,309 | py | Python | anime_downloader/scrapers/gogoanime/gogoanime_scraper.py | Amdrossa/Anime | 9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28 | [
"MIT"
] | 554 | 2020-04-15T20:22:50.000Z | 2022-03-31T11:07:53.000Z | anime_downloader/scrapers/gogoanime/gogoanime_scraper.py | Amdrossa/Anime | 9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28 | [
"MIT"
] | 44 | 2020-04-15T19:26:43.000Z | 2022-03-11T09:59:24.000Z | anime_downloader/scrapers/gogoanime/gogoanime_scraper.py | Amdrossa/Anime | 9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28 | [
"MIT"
] | 61 | 2020-04-16T19:17:04.000Z | 2022-03-27T14:51:54.000Z | import re
from util.Episode import Episode
from bs4 import BeautifulSoup
from extractors.jwplayer_extractor import JWPlayerExtractor
from scrapers.base_scraper import BaseScraper
from util.Color import printer
class GoGoAnimeScraper(BaseScraper):
def __init__(self, url, start_episode, end_episode, session, gui=No... | 38.81982 | 106 | 0.561383 | 489 | 4,309 | 4.695297 | 0.257669 | 0.018293 | 0.019164 | 0.028746 | 0.119338 | 0.093206 | 0.093206 | 0.062718 | 0.062718 | 0.062718 | 0 | 0.008395 | 0.336505 | 4,309 | 110 | 107 | 39.172727 | 0.794683 | 0.006034 | 0 | 0.134831 | 0 | 0 | 0.082243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078652 | false | 0 | 0.067416 | 0 | 0.258427 | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44bff82fd79a239bdafb6a54e8fdebc06260a17d | 1,355 | py | Python | mr_dale/config.py | evgeniy-tulyakov/mr-dale | 5a976ca11ba21e83a2adf2f9f4a77833a68da116 | [
"MIT"
] | null | null | null | mr_dale/config.py | evgeniy-tulyakov/mr-dale | 5a976ca11ba21e83a2adf2f9f4a77833a68da116 | [
"MIT"
] | null | null | null | mr_dale/config.py | evgeniy-tulyakov/mr-dale | 5a976ca11ba21e83a2adf2f9f4a77833a68da116 | [
"MIT"
] | null | null | null | '''
Constants necessary for the correct execution of this bot.
here, most of the values of the environment variables are extracted.
'''
from os import getenv
from pathlib import Path
# Base settings
PROJECT_PATH = Path(__file__).resolve().parent
UI_RESOURCES_PATH = PROJECT_PATH / 'ui_resources'
BOT_TOKEN = getenv('... | 23.77193 | 83 | 0.568266 | 132 | 1,355 | 5.621212 | 0.560606 | 0.09434 | 0.076819 | 0.070081 | 0.207547 | 0.118598 | 0 | 0 | 0 | 0 | 0 | 0.001031 | 0.284133 | 1,355 | 56 | 84 | 24.196429 | 0.763918 | 0.129889 | 0 | 0.195122 | 0 | 0.02439 | 0.401709 | 0.130769 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.04878 | 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 | 0 | 0 | 1 | 0 |
44c122eb2bc4fddfe34663b5e113bdd4620db9d3 | 1,305 | py | Python | work/plot.py | XUHUAKing/bigdata | 47cdccbd448eacf074c4521d5b40d1205b000fc6 | [
"CC-BY-4.0"
] | 6 | 2018-03-19T03:34:19.000Z | 2021-11-08T01:35:48.000Z | work/plot.py | XUHUAKing/bigdata | 47cdccbd448eacf074c4521d5b40d1205b000fc6 | [
"CC-BY-4.0"
] | null | null | null | work/plot.py | XUHUAKing/bigdata | 47cdccbd448eacf074c4521d5b40d1205b000fc6 | [
"CC-BY-4.0"
] | null | null | null | # needs a parameter to specify which training record to display
import matplotlib as mpl
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
import functions as fn
import sys
#from matplotlib.backends.backend_pdf import PdfPages
tdata, ttarget, tlabel = fn.get_training_data()
i ... | 30.348837 | 98 | 0.691954 | 238 | 1,305 | 3.680672 | 0.37395 | 0.045662 | 0.073059 | 0.034247 | 0.111872 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.123372 | 1,305 | 43 | 99 | 30.348837 | 0.72028 | 0.131034 | 0 | 0 | 0 | 0 | 0.033599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44c3145c6b5a8cac5b0e2f9068f7547381896e10 | 31,414 | py | Python | python/tests/nexus_helpers.py | arm61/scippneutron | 20283e7b8f8772776978c539f8664f889d1fbded | [
"BSD-3-Clause"
] | null | null | null | python/tests/nexus_helpers.py | arm61/scippneutron | 20283e7b8f8772776978c539f8664f889d1fbded | [
"BSD-3-Clause"
] | null | null | null | python/tests/nexus_helpers.py | arm61/scippneutron | 20283e7b8f8772776978c539f8664f889d1fbded | [
"BSD-3-Clause"
] | null | null | null | from dataclasses import dataclass
from typing import List, Union, Iterator, Optional, Dict, Any, Tuple
import h5py
import numpy as np
from enum import Enum
from contextlib import contextmanager
import json
from scippneutron.file_loading._json_nexus import LoadFromJson, MissingDataset
h5root = Union[h5py.File, h5py.Gro... | 41.773936 | 88 | 0.61046 | 3,706 | 31,414 | 4.886131 | 0.09606 | 0.030373 | 0.035178 | 0.027612 | 0.434725 | 0.357742 | 0.313397 | 0.262591 | 0.21173 | 0.151811 | 0 | 0.00595 | 0.299166 | 31,414 | 751 | 89 | 41.829561 | 0.816543 | 0.068441 | 0 | 0.223729 | 0 | 0 | 0.05033 | 0.008876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10339 | false | 0.00339 | 0.013559 | 0.00339 | 0.277966 | 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 | 0 | 0 | 1 | 0 |
44c41032c50ef5d1788dcc18837fdc341819e52a | 10,351 | py | Python | pyarpspoofer/arpspoofer.py | bocajspear1/pyarpspoofer | 5612e0c900c070d98743bb8fdd39743a0ce09cf2 | [
"MIT"
] | null | null | null | pyarpspoofer/arpspoofer.py | bocajspear1/pyarpspoofer | 5612e0c900c070d98743bb8fdd39743a0ce09cf2 | [
"MIT"
] | null | null | null | pyarpspoofer/arpspoofer.py | bocajspear1/pyarpspoofer | 5612e0c900c070d98743bb8fdd39743a0ce09cf2 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2018 Jacob Hartman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... | 34.274834 | 155 | 0.589025 | 1,315 | 10,351 | 4.364259 | 0.171863 | 0.035546 | 0.040774 | 0.016728 | 0.369228 | 0.306848 | 0.301795 | 0.268862 | 0.268862 | 0.239763 | 0 | 0.009074 | 0.318617 | 10,351 | 301 | 156 | 34.388704 | 0.804622 | 0.118636 | 0 | 0.386792 | 0 | 0 | 0.036232 | 0 | 0 | 0 | 0.003294 | 0 | 0 | 1 | 0.089623 | false | 0 | 0.037736 | 0.009434 | 0.160377 | 0.042453 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44c515b10ccba3215103fa7169a17fded5d650d8 | 298 | py | Python | tests/test_app/urls.py | emorozov/django-reversion | 43b732b29b1023d984b3deb73b03c7d691db520d | [
"BSD-3-Clause"
] | 1,735 | 2015-01-01T17:57:11.000Z | 2022-03-28T10:53:27.000Z | tests/test_app/urls.py | emorozov/django-reversion | 43b732b29b1023d984b3deb73b03c7d691db520d | [
"BSD-3-Clause"
] | 554 | 2015-01-02T17:31:31.000Z | 2022-02-22T10:30:04.000Z | tests/test_app/urls.py | emorozov/django-reversion | 43b732b29b1023d984b3deb73b03c7d691db520d | [
"BSD-3-Clause"
] | 368 | 2015-01-02T03:32:18.000Z | 2022-03-31T09:48:31.000Z | from django.urls import path
from test_app import views
urlpatterns = [
path("save-obj/", views.save_obj_view),
path("save-obj-error/", views.save_obj_error_view),
path("create-revision/", views.create_revision_view),
path("revision-mixin/", views.RevisionMixinView.as_view()),
]
| 27.090909 | 63 | 0.724832 | 41 | 298 | 5.04878 | 0.439024 | 0.135266 | 0.10628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127517 | 298 | 10 | 64 | 29.8 | 0.796154 | 0 | 0 | 0 | 0 | 0 | 0.184564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44cb0ba9c0f8df7004f8672416120408c2f977bc | 350 | py | Python | app/helpers.py | kilonzi/dukaone | 0563f1329f87df17424d6c058b46f6bdede46f2f | [
"MIT"
] | null | null | null | app/helpers.py | kilonzi/dukaone | 0563f1329f87df17424d6c058b46f6bdede46f2f | [
"MIT"
] | null | null | null | app/helpers.py | kilonzi/dukaone | 0563f1329f87df17424d6c058b46f6bdede46f2f | [
"MIT"
] | null | null | null | from db.models import *
def unpack_query_objects(objects) -> dict:
results = []
for object in objects:
results.append(object.to_dict())
return results
def stringify_object(object) -> dict:
str_obj = {}
object_dict = object.to_dict()
for i in object_dict.items():
str_obj[i[0]] =... | 23.333333 | 42 | 0.642857 | 50 | 350 | 4.3 | 0.46 | 0.139535 | 0.111628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007491 | 0.237143 | 350 | 14 | 43 | 25 | 0.797753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 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 | 0 | 0 | 1 | 0 |
44cdc0c7246c968a7e2f2abbae018d1456bcdfd9 | 8,239 | py | Python | src/lib/searchio/cmd/reload.py | cgxxv/alfred-searchio | f4a14cbe5350b83d6d962aa993abf01f14b60d33 | [
"MIT"
] | 304 | 2015-01-15T08:18:47.000Z | 2022-03-31T10:41:52.000Z | src/lib/searchio/cmd/reload.py | cgxxv/alfred-searchio | f4a14cbe5350b83d6d962aa993abf01f14b60d33 | [
"MIT"
] | 66 | 2015-03-14T18:10:36.000Z | 2022-03-27T11:33:56.000Z | src/lib/searchio/cmd/reload.py | cgxxv/alfred-searchio | f4a14cbe5350b83d6d962aa993abf01f14b60d33 | [
"MIT"
] | 36 | 2015-04-12T16:50:17.000Z | 2022-03-28T09:53:32.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2016 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2016-12-17
#
"""searchio reload [-h]
Update info.plist from saved searches.
Usage:
searchio reload [--defaults]
searchio -h
Options:
... | 29.320285 | 112 | 0.572157 | 993 | 8,239 | 4.699899 | 0.266868 | 0.02057 | 0.02057 | 0.019284 | 0.281766 | 0.236555 | 0.218556 | 0.192843 | 0.141847 | 0.141847 | 0 | 0.013266 | 0.258891 | 8,239 | 280 | 113 | 29.425 | 0.750573 | 0.115305 | 0 | 0.17619 | 0 | 0.047619 | 0.462771 | 0.090897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.038095 | 0 | 0.066667 | 0.004762 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d22b17f45772c546f11f4444520b63362e9cd5 | 766 | py | Python | slide_09/Exercicio04.py | lordjack/aula_python_slides | 38ad45ac1843fc83c3349addb9d49f7d182a574f | [
"MIT"
] | null | null | null | slide_09/Exercicio04.py | lordjack/aula_python_slides | 38ad45ac1843fc83c3349addb9d49f7d182a574f | [
"MIT"
] | null | null | null | slide_09/Exercicio04.py | lordjack/aula_python_slides | 38ad45ac1843fc83c3349addb9d49f7d182a574f | [
"MIT"
] | null | null | null | '''
Q04 - Faça um programa que leia uma matriz 3x3 de inteiros,
e apresente a Diagonal Principal desta Matriz.
'''
import random
# x = random.uniform(0, 10)
matriz = []
diagonalPrincipal = []
for i in range(0, 3, 1):
linha = []
for j in range(0, 3, 1):
# elemento = int(input("Digite o elemento da posi... | 23.212121 | 76 | 0.571802 | 117 | 766 | 3.74359 | 0.401709 | 0.09589 | 0.109589 | 0.123288 | 0.246575 | 0.246575 | 0.246575 | 0.182648 | 0.182648 | 0.182648 | 0 | 0.050523 | 0.250653 | 766 | 32 | 77 | 23.9375 | 0.712544 | 0.279373 | 0 | 0.5 | 0 | 0 | 0.059041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d38b1f211f5c9e46f3fcd73adf617055c70c17 | 4,268 | py | Python | examples/forest_fire_disjunctive.py | kevinmcareavey/pyactualcausality | 51367d768dde3b1b039373db5797efb087003cd4 | [
"MIT"
] | null | null | null | examples/forest_fire_disjunctive.py | kevinmcareavey/pyactualcausality | 51367d768dde3b1b039373db5797efb087003cd4 | [
"MIT"
] | null | null | null | examples/forest_fire_disjunctive.py | kevinmcareavey/pyactualcausality | 51367d768dde3b1b039373db5797efb087003cd4 | [
"MIT"
] | null | null | null | from frozendict import frozendict
from lib.halpern_pearl import Variable, CausalNetwork, CausalSetting, find_actual_causes, CausalFormula, PrimitiveEvent, \
Negation, find_trivial_explanations, EpistemicState, find_nontrivial_explanations, find_explanations, \
find_sufficient_causes
U_L, U_MD = Variable("U_L")... | 56.157895 | 192 | 0.751172 | 576 | 4,268 | 5.307292 | 0.125 | 0.026169 | 0.042525 | 0.035983 | 0.436703 | 0.384037 | 0.266928 | 0.251881 | 0.242395 | 0.168466 | 0 | 0.014635 | 0.119494 | 4,268 | 75 | 193 | 56.906667 | 0.797765 | 0.061621 | 0 | 0.107692 | 0 | 0 | 0.00975 | 0.00675 | 0 | 0 | 0 | 0 | 0.123077 | 1 | 0 | false | 0 | 0.030769 | 0 | 0.030769 | 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 | 0 | 0 | 1 | 0 |
44d42b43218cec56ddb7aa37023d60517545e56a | 23,816 | py | Python | fee/views.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | 1 | 2022-01-20T10:20:05.000Z | 2022-01-20T10:20:05.000Z | fee/views.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | null | null | null | fee/views.py | masoodazhar/-school-management-system | 6525b3d29d12f03e05d362d81b7c5855806f57d9 | [
"Apache-2.0"
] | 1 | 2022-01-20T10:20:31.000Z | 2022-01-20T10:20:31.000Z | from django.shortcuts import render, redirect
from student.models import Admission
from .forms import SearchChallan
from django.utils import timezone
from django.db.models import Q
from .models import Voucher
from payroll.models import Salary
from django import forms
from django.contrib import messages
from dj... | 41.204152 | 187 | 0.570961 | 2,569 | 23,816 | 5.038147 | 0.087583 | 0.057792 | 0.050684 | 0.02936 | 0.70316 | 0.63996 | 0.589817 | 0.551263 | 0.502666 | 0.486595 | 0 | 0.007044 | 0.314494 | 23,816 | 578 | 188 | 41.204152 | 0.785741 | 0.105097 | 0 | 0.470588 | 0 | 0 | 0.118384 | 0.019932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020362 | false | 0 | 0.052036 | 0 | 0.104072 | 0.020362 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d4708d8f3e8cbb68ded6ad9426b4bdf6c6ba43 | 6,211 | py | Python | interpolation/splines/filter_cubic.py | gboehl/interpolation.py | 25520556804dd104c5931c8a6bedfff65420025f | [
"BSD-2-Clause"
] | null | null | null | interpolation/splines/filter_cubic.py | gboehl/interpolation.py | 25520556804dd104c5931c8a6bedfff65420025f | [
"BSD-2-Clause"
] | null | null | null | interpolation/splines/filter_cubic.py | gboehl/interpolation.py | 25520556804dd104c5931c8a6bedfff65420025f | [
"BSD-2-Clause"
] | null | null | null | from __future__ import division
import numpy as np
import time
from numba import jit, njit
# used by njitted routines (frozen)
basis = np.array([1.0 / 6.0, 2.0 / 3.0, 1.0 / 6.0, 0.0])
@njit(cache=True)
def solve_deriv_interp_1d(bands, coefs):
M = coefs.shape[0] - 2
# Solve interpolating equations
# Fi... | 24.844 | 88 | 0.551924 | 1,045 | 6,211 | 3.186603 | 0.116746 | 0.054655 | 0.031532 | 0.045045 | 0.578078 | 0.478679 | 0.404805 | 0.348048 | 0.241742 | 0.18979 | 0 | 0.062683 | 0.285944 | 6,211 | 249 | 89 | 24.943775 | 0.688162 | 0.085976 | 0 | 0.301887 | 0 | 0 | 0.005659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.037736 | 0 | 0.157233 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d48337c78ce2e640508a61a6350b194e4ad2ee | 507 | py | Python | backend/product/urls.py | kmrul/Grocery-Store | a8abc99d66daf7c1dbf42a5bb9b563bda98b9e3c | [
"MIT"
] | null | null | null | backend/product/urls.py | kmrul/Grocery-Store | a8abc99d66daf7c1dbf42a5bb9b563bda98b9e3c | [
"MIT"
] | null | null | null | backend/product/urls.py | kmrul/Grocery-Store | a8abc99d66daf7c1dbf42a5bb9b563bda98b9e3c | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('product/', views.apiOverview, name='overview'),
path('product/list/', views.productList, name='product-list'),
path('product/detail/<str:pk>', views.productDetail, name='product-detail'),
path('product/create', views.productCreate, ... | 46.090909 | 80 | 0.706114 | 61 | 507 | 5.868852 | 0.377049 | 0.184358 | 0.083799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106509 | 507 | 11 | 81 | 46.090909 | 0.790287 | 0 | 0 | 0 | 0 | 0 | 0.354331 | 0.135827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44d4c378e92d06b8248254af3ada493cd9a99613 | 1,512 | py | Python | Train.py | jinsuyun/DriavablaMap_Segmentation | 8537f19f007f064ca2ab3a91bd25c714ecb50a48 | [
"BSD-3-Clause"
] | null | null | null | Train.py | jinsuyun/DriavablaMap_Segmentation | 8537f19f007f064ca2ab3a91bd25c714ecb50a48 | [
"BSD-3-Clause"
] | null | null | null | Train.py | jinsuyun/DriavablaMap_Segmentation | 8537f19f007f064ca2ab3a91bd25c714ecb50a48 | [
"BSD-3-Clause"
] | null | null | null | from tensorflow.keras.callbacks import ModelCheckpoint, LearningRateScheduler, TensorBoard
import tensorflow as tf
import Data
import Model
# import myslack
import os
import argparse
from tensorflow.python.client import device_lib
import warnings
warnings.filterwarnings("ignore")
parser = argparse.ArgumentParser(descr... | 25.627119 | 98 | 0.703042 | 215 | 1,512 | 4.804651 | 0.497674 | 0.027106 | 0.030978 | 0.046467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037125 | 0.162698 | 1,512 | 58 | 99 | 26.068966 | 0.778831 | 0.214286 | 0 | 0 | 0 | 0 | 0.127768 | 0.044293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.2 | 0 | 0.325 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d52e44864bf1ce0a5095905d078b5ae85da8b7 | 3,470 | py | Python | ui/custom_pb/custompb.py | magnusjwatson2786/Container-GUI | 42cbe1bb970fbabe5b5fde873425f262e9207d30 | [
"MIT"
] | null | null | null | ui/custom_pb/custompb.py | magnusjwatson2786/Container-GUI | 42cbe1bb970fbabe5b5fde873425f262e9207d30 | [
"MIT"
] | null | null | null | ui/custom_pb/custompb.py | magnusjwatson2786/Container-GUI | 42cbe1bb970fbabe5b5fde873425f262e9207d30 | [
"MIT"
] | null | null | null | from PySide6.QtCore import *
from PySide6.QtGui import *
from PySide6.QtWidgets import *
class CustomPb(QWidget):
def __init__(
self,
value = 0,
progress_width = 2,
# progress_length= 500,
is_rounded = False,
max_value = 100,
progress_color = "#ff79c6",
... | 31.545455 | 86 | 0.583285 | 391 | 3,470 | 5.023018 | 0.286445 | 0.07943 | 0.060591 | 0.032077 | 0.062118 | 0.039715 | 0.039715 | 0.039715 | 0 | 0 | 0 | 0.019907 | 0.319597 | 3,470 | 110 | 87 | 31.545455 | 0.811944 | 0.134582 | 0 | 0.064935 | 0 | 0 | 0.01845 | 0.008386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051948 | false | 0 | 0.038961 | 0 | 0.103896 | 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 | 0 | 0 | 1 | 0 |
44d52f169921ab9efb57ff8c6c57b8de676e6dfb | 1,301 | py | Python | camhudson/views/index.py | Hudson00/Hudson00.github.io | 75fede08521dc1e10cb2ce29e20c54c93e9e6db6 | [
"MIT"
] | null | null | null | camhudson/views/index.py | Hudson00/Hudson00.github.io | 75fede08521dc1e10cb2ce29e20c54c93e9e6db6 | [
"MIT"
] | null | null | null | camhudson/views/index.py | Hudson00/Hudson00.github.io | 75fede08521dc1e10cb2ce29e20c54c93e9e6db6 | [
"MIT"
] | null | null | null | """Cam Hudson Personal Website app's index.html view.
URLs handled in this file include:
/
"""
from flask import render_template, session
from camhudson.views.utility import create_index_card # Make linter shut up
import camhudson
@camhudson.app.route('/', methods=['GET'])
@camhudson.app.route('/index.html', methods... | 32.525 | 76 | 0.530361 | 138 | 1,301 | 4.913043 | 0.615942 | 0.064897 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.346656 | 1,301 | 39 | 77 | 33.358974 | 0.797647 | 0.106072 | 0 | 0.15625 | 0 | 0 | 0.316247 | 0.092963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.09375 | 0 | 0.15625 | 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 | 0 | 0 | 1 | 0 |
44d5d7d712b3b2f871108b46b0de197890de0365 | 2,661 | py | Python | ai_services/anomaly_detection/data_preprocessing_examples/oci_data_flow_based_examples/example_code/normalization.py | oracle-samples/oci-data-science-ai-samples | 3128787c1347a17f9dc2194f1a16a500ed08eb8e | [
"UPL-1.0",
"Apache-2.0"
] | null | null | null | ai_services/anomaly_detection/data_preprocessing_examples/oci_data_flow_based_examples/example_code/normalization.py | oracle-samples/oci-data-science-ai-samples | 3128787c1347a17f9dc2194f1a16a500ed08eb8e | [
"UPL-1.0",
"Apache-2.0"
] | null | null | null | ai_services/anomaly_detection/data_preprocessing_examples/oci_data_flow_based_examples/example_code/normalization.py | oracle-samples/oci-data-science-ai-samples | 3128787c1347a17f9dc2194f1a16a500ed08eb8e | [
"UPL-1.0",
"Apache-2.0"
] | 2 | 2022-03-28T07:27:28.000Z | 2022-03-28T21:18:36.000Z | from pyspark.sql import SparkSession
from pyspark.sql import functions as F
import argparse
from pyspark.ml.feature import MinMaxScaler, StandardScaler, VectorAssembler
def extract(row):
return (row.id,) + tuple(row.scaledFeatures.toArray().tolist()[:-1])
def normalize_data(df, scaler_type, columns):
"""
... | 33.2625 | 78 | 0.658023 | 295 | 2,661 | 5.810169 | 0.386441 | 0.029172 | 0.049592 | 0.049008 | 0.10035 | 0.032672 | 0 | 0 | 0 | 0 | 0 | 0.003349 | 0.214581 | 2,661 | 79 | 79 | 33.683544 | 0.816746 | 0.092822 | 0 | 0.034483 | 0 | 0 | 0.084954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0.017241 | 0.137931 | 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 | 0 | 0 | 1 | 0 |
44d71f0a51d5a31acbe4cd401e05ee26f9010239 | 3,051 | py | Python | deep_morphology/models/bert_tagger.py | juditacs/deep-morphology | 090c17e604499a3430ea835a6340fa3abdc6ea83 | [
"MIT"
] | 3 | 2019-10-16T12:25:37.000Z | 2021-01-16T00:31:37.000Z | deep_morphology/models/bert_tagger.py | juditacs/deep-morphology | 090c17e604499a3430ea835a6340fa3abdc6ea83 | [
"MIT"
] | 15 | 2018-09-12T20:26:44.000Z | 2018-11-09T20:10:37.000Z | deep_morphology/models/bert_tagger.py | juditacs/deep-morphology | 090c17e604499a3430ea835a6340fa3abdc6ea83 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 Judit Acs <judit@sch.bme.hu>
#
# Distributed under terms of the MIT license.
import torch
import torch.nn as nn
from pytorch_pretrained_bert import BertModel
from deep_morphology.models.base import BaseModel
from deep_morphology.mod... | 36.321429 | 90 | 0.640118 | 402 | 3,051 | 4.646766 | 0.318408 | 0.051392 | 0.041756 | 0.038544 | 0.174518 | 0.110278 | 0.087794 | 0.087794 | 0.087794 | 0.087794 | 0 | 0.010979 | 0.253687 | 3,051 | 83 | 91 | 36.759036 | 0.808959 | 0.054081 | 0 | 0.09375 | 0 | 0 | 0.034746 | 0.009729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.234375 | 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 | 0 | 0 | 1 | 0 |
44d7838cf86895dbb3bc71349d1a986ae126e5e6 | 4,246 | py | Python | python3/11.py | mn113/adventofcode2020 | 87e3062948444627eb95e1b81e8d1b6db9640ba0 | [
"MIT"
] | null | null | null | python3/11.py | mn113/adventofcode2020 | 87e3062948444627eb95e1b81e8d1b6db9640ba0 | [
"MIT"
] | null | null | null | python3/11.py | mn113/adventofcode2020 | 87e3062948444627eb95e1b81e8d1b6db9640ba0 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
part = 1
def read_input():
with open('../inputs/input11.txt') as fp:
lines = fp.readlines()
return [line.strip() for line in lines]
class Seat:
def __init__(self, x, y, state):
self.x = x
self.y = y
self.state = state
def __str__(self):
... | 27.217949 | 94 | 0.542393 | 560 | 4,246 | 4.023214 | 0.275 | 0.024412 | 0.04261 | 0.034621 | 0.110963 | 0.091434 | 0.059476 | 0 | 0 | 0 | 0 | 0.02152 | 0.321479 | 4,246 | 155 | 95 | 27.393548 | 0.7605 | 0.18488 | 0 | 0.090909 | 0 | 0 | 0.019203 | 0.00611 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141414 | false | 0 | 0 | 0.060606 | 0.30303 | 0.020202 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d7bf8fa8ad6da40c52b2f23d769cd6c11b59ae | 2,667 | py | Python | f5lbaasdriver/test/tempest/services/clients/l7policy_client.py | fsckss/f5-openstack-lbaasv2-driver | 678724d5b1eadad89a774af6d5e073512ba4998c | [
"Apache-2.0"
] | null | null | null | f5lbaasdriver/test/tempest/services/clients/l7policy_client.py | fsckss/f5-openstack-lbaasv2-driver | 678724d5b1eadad89a774af6d5e073512ba4998c | [
"Apache-2.0"
] | null | null | null | f5lbaasdriver/test/tempest/services/clients/l7policy_client.py | fsckss/f5-openstack-lbaasv2-driver | 678724d5b1eadad89a774af6d5e073512ba4998c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
u"""F5 Networks® LBaaSv2 L7 rules client for tempest tests."""
# Copyright 2016 F5 Networks Inc.
#
# 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/lic... | 39.220588 | 76 | 0.662542 | 354 | 2,667 | 4.918079 | 0.367232 | 0.041356 | 0.017231 | 0.031591 | 0.445721 | 0.445721 | 0.429064 | 0.412407 | 0.333716 | 0.333716 | 0 | 0.032474 | 0.214848 | 2,667 | 67 | 77 | 39.80597 | 0.798472 | 0.27934 | 0 | 0.487179 | 0 | 0 | 0.101975 | 0.067806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.076923 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |