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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e301361c2e14c0505f41c597c35065ab55a1f653 | 1,468 | py | Python | twistedlilypad/packets/result_packet.py | flaminscotsman/TwistedLilypad | 3d43250af2663b33e3fef209a196920beaf696b7 | [
"MIT"
] | 1 | 2015-01-17T20:01:33.000Z | 2015-01-17T20:01:33.000Z | twistedlilypad/packets/result_packet.py | flaminscotsman/TwistedLilypad | 3d43250af2663b33e3fef209a196920beaf696b7 | [
"MIT"
] | null | null | null | twistedlilypad/packets/result_packet.py | flaminscotsman/TwistedLilypad | 3d43250af2663b33e3fef209a196920beaf696b7 | [
"MIT"
] | null | null | null | from struct import unpack_from, calcsize, pack
from .abstract_packet import AbstractPacket, AbstractPacketCodec, StatusCode
class PacketResult(AbstractPacket):
opcode = 0x02
def __init__(self, sequenceID, statusCode, payload=None):
self.sequenceID = sequenceID
self.statusCode = statusCode
... | 31.913043 | 106 | 0.669619 | 140 | 1,468 | 6.935714 | 0.3 | 0.082389 | 0.055613 | 0.065911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003568 | 0.236376 | 1,468 | 45 | 107 | 32.622222 | 0.862623 | 0 | 0 | 0.060606 | 0 | 0 | 0.01158 | 0 | 0 | 0 | 0.002725 | 0 | 0.030303 | 1 | 0.151515 | false | 0 | 0.060606 | 0.030303 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e3014b0e1d8f5e15e735a95c54ffd98eaf794f5a | 333 | py | Python | reunition/apps/alumni/forms.py | reunition/reunition | a68d4555092f41f5712c6f7061aa35e816a6283e | [
"MIT"
] | null | null | null | reunition/apps/alumni/forms.py | reunition/reunition | a68d4555092f41f5712c6f7061aa35e816a6283e | [
"MIT"
] | null | null | null | reunition/apps/alumni/forms.py | reunition/reunition | a68d4555092f41f5712c6f7061aa35e816a6283e | [
"MIT"
] | null | null | null | from django import forms as f
from . import models as m
class NoteAddForm(f.Form):
notes = f.CharField(label='Notes', widget=f.Textarea)
contacted = f.ChoiceField(label='Did you make contact with this person?',
required=False,
choices=m.Note.CONTAC... | 27.75 | 77 | 0.60961 | 41 | 333 | 4.926829 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303303 | 333 | 11 | 78 | 30.272727 | 0.87069 | 0 | 0 | 0 | 0 | 0 | 0.129129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e30260fa432a7bdcbe8f37843625d70d96cd40d2 | 317 | py | Python | MRCareerCounter.py | analytics2go/extra-galactic | d7508cb3fb5848062b31b70e31a0af8a48b3f67a | [
"Apache-2.0"
] | null | null | null | MRCareerCounter.py | analytics2go/extra-galactic | d7508cb3fb5848062b31b70e31a0af8a48b3f67a | [
"Apache-2.0"
] | null | null | null | MRCareerCounter.py | analytics2go/extra-galactic | d7508cb3fb5848062b31b70e31a0af8a48b3f67a | [
"Apache-2.0"
] | null | null | null | from mrjob.job import MRJob
class MRJobCounter(MRJob):
def mapper(self, key, line):
(xID, jobID, sOccur, timestamp) = line.split('\t')
yield sOccur, 1
def reducer(self, sOccur, occurences):
yield sOccur, sum(occurences)
if __name__ == '__main__':
MRJobCounter.run()
| 24.384615 | 59 | 0.621451 | 37 | 317 | 5.108108 | 0.702703 | 0.116402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.258675 | 317 | 12 | 60 | 26.416667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e30a51f940788e8d596470a01ea580526f29a885 | 3,641 | py | Python | simpy_demo/main.py | NealAnalyticsLLC/bonsai_simpy_demo | c8852255878964f324a7e15b3905ab6701e3685e | [
"MIT"
] | null | null | null | simpy_demo/main.py | NealAnalyticsLLC/bonsai_simpy_demo | c8852255878964f324a7e15b3905ab6701e3685e | [
"MIT"
] | 1 | 2022-03-28T21:27:01.000Z | 2022-03-29T03:58:33.000Z | simpy_demo/main.py | NealAnalyticsLLC/bonsai_simpy_demo | c8852255878964f324a7e15b3905ab6701e3685e | [
"MIT"
] | 1 | 2022-03-29T03:42:03.000Z | 2022-03-29T03:42:03.000Z | import json
import os
import time
from typing import Dict
import dotenv
from microsoft_bonsai_api.simulator.client import BonsaiClient, BonsaiClientConfig
from microsoft_bonsai_api.simulator.generated.models import (
SimulatorInterface,
SimulatorState,
SimulatorSessionResponse,
)
import hospital_sim
DEF... | 28.445313 | 83 | 0.668498 | 405 | 3,641 | 5.77037 | 0.28642 | 0.042362 | 0.023107 | 0.032092 | 0.18742 | 0.070175 | 0.044502 | 0.044502 | 0.044502 | 0 | 0 | 0.001798 | 0.236199 | 3,641 | 127 | 84 | 28.669291 | 0.838547 | 0.006317 | 0 | 0 | 1 | 0 | 0.12237 | 0.021041 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102273 | false | 0 | 0.090909 | 0.022727 | 0.272727 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e30ac7e3c5c7e01adaafee89b5e54739bab0bffc | 1,475 | py | Python | api/queries/goods_query/migrations/0001_squashed_0002_goodsquery_clc_control_list_entry.py | uktrade/lite-ap | 4e1a57956bd921992b4a6e2b8fbacbba5720960d | [
"MIT"
] | 3 | 2019-05-15T09:30:39.000Z | 2020-04-22T16:14:23.000Z | api/queries/goods_query/migrations/0001_squashed_0002_goodsquery_clc_control_list_entry.py | uktrade/lite-ap | 4e1a57956bd921992b4a6e2b8fbacbba5720960d | [
"MIT"
] | 85 | 2019-04-24T10:39:35.000Z | 2022-03-21T14:52:12.000Z | api/queries/goods_query/migrations/0001_squashed_0002_goodsquery_clc_control_list_entry.py | uktrade/lite-ap | 4e1a57956bd921992b4a6e2b8fbacbba5720960d | [
"MIT"
] | 1 | 2021-01-17T11:12:19.000Z | 2021-01-17T11:12:19.000Z | # Generated by Django 3.1.8 on 2021-04-26 07:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
replaces = [('goods_query', '0001_initial'), ('goods_query', '0002_goodsquery_clc_control_list_entry')]
initial = True
dependencies = [
... | 40.972222 | 189 | 0.627797 | 164 | 1,475 | 5.45122 | 0.45122 | 0.061521 | 0.04698 | 0.073826 | 0.373602 | 0.373602 | 0.306488 | 0.203579 | 0.154362 | 0.154362 | 0 | 0.037102 | 0.232542 | 1,475 | 35 | 190 | 42.142857 | 0.75265 | 0.030508 | 0 | 0 | 1 | 0 | 0.193978 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e30bd2a83a1242b0d2634d7ab7ff0c64b6f7e86a | 6,452 | py | Python | pysigep/client.py | Python-Devs-Brasil/pysigep | 1d0c79fc695bbd898aae5499d90f2aec7f553e13 | [
"MIT"
] | 3 | 2020-01-06T11:49:16.000Z | 2021-08-24T22:53:30.000Z | pysigep/client.py | Python-Devs-Brasil/pysigep | 1d0c79fc695bbd898aae5499d90f2aec7f553e13 | [
"MIT"
] | null | null | null | pysigep/client.py | Python-Devs-Brasil/pysigep | 1d0c79fc695bbd898aae5499d90f2aec7f553e13 | [
"MIT"
] | 1 | 2019-09-19T14:10:50.000Z | 2019-09-19T14:10:50.000Z | import zeep
from .utils import URLS, validar, trim, gera_digito_verificador
class SOAPClient:
def __init__(self, usuario, senha, ambiente):
"""Inicializa atributos da classe SOAPClient
Arguments:
usuario {str} -- login de acesso do SIGEPWeb
senha {str} -- senha de acesso... | 33.257732 | 122 | 0.595629 | 647 | 6,452 | 5.853168 | 0.326121 | 0.020333 | 0.021125 | 0.024294 | 0.118299 | 0.105625 | 0.080275 | 0.027462 | 0.027462 | 0.019541 | 0 | 0.000457 | 0.321451 | 6,452 | 193 | 123 | 33.430052 | 0.86455 | 0.389957 | 0 | 0.186047 | 0 | 0 | 0.128781 | 0 | 0 | 0 | 0 | 0.020725 | 0 | 1 | 0.104651 | false | 0 | 0.023256 | 0.011628 | 0.22093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e325c7f6a618ceeabc9655ae7f807d38d0dac8bf | 711 | py | Python | instance/config.py | SimonAwiti/sentIT-endpoints | 914b5cba4b82442cc7a9a01adaee321948d6abfa | [
"MIT"
] | null | null | null | instance/config.py | SimonAwiti/sentIT-endpoints | 914b5cba4b82442cc7a9a01adaee321948d6abfa | [
"MIT"
] | null | null | null | instance/config.py | SimonAwiti/sentIT-endpoints | 914b5cba4b82442cc7a9a01adaee321948d6abfa | [
"MIT"
] | null | null | null | import os
"""Application configuration"""
class Config(object):
"""Base config class"""
DEBUG = True
SECRET = os.getenv("SECRET_KEY")
class DevelopmentConfig(Config):
"""Development configurations"""
DEBUG = True
class TestingConfig(Config):
"""Testing configurations"""
DEBUG = True
... | 19.75 | 40 | 0.670886 | 64 | 711 | 7.40625 | 0.390625 | 0.075949 | 0.097046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205345 | 711 | 35 | 41 | 20.314286 | 0.838938 | 0.177215 | 0 | 0.190476 | 0 | 0 | 0.096591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e32744e86ebffaed9e85aec326b4fd52069449dd | 4,965 | py | Python | src/ahbicht/expressions/enums.py | Hochfrequenz/ahbicht | 90f6c8b5d7270dd1bc1c5e7aa4217f263e5e7d11 | [
"MIT"
] | null | null | null | src/ahbicht/expressions/enums.py | Hochfrequenz/ahbicht | 90f6c8b5d7270dd1bc1c5e7aa4217f263e5e7d11 | [
"MIT"
] | 48 | 2021-08-31T15:00:47.000Z | 2022-03-25T18:32:51.000Z | src/ahbicht/expressions/enums.py | Hochfrequenz/ahbicht | 90f6c8b5d7270dd1bc1c5e7aa4217f263e5e7d11 | [
"MIT"
] | null | null | null | """
Enums used in AHB and condition expressions.
"""
from enum import Enum, unique
from typing import Dict, Literal, Union
from marshmallow import Schema, fields, post_dump, post_load, pre_load
@unique
class ModalMark(str, Enum):
"""
A modal mark describes if information are obligatory or not. The German ter... | 37.613636 | 119 | 0.689426 | 706 | 4,965 | 4.842776 | 0.310198 | 0.040948 | 0.016379 | 0.052647 | 0.251536 | 0.240129 | 0.240129 | 0.22375 | 0.22375 | 0.22375 | 0 | 0.016423 | 0.227392 | 4,965 | 131 | 120 | 37.900763 | 0.872784 | 0.230816 | 0 | 0.0625 | 0 | 0 | 0.040952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.09375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e32aa9cd95254b89250d7efa90eea7aae2e3cd1d | 851 | py | Python | tests/test_fuel.py | opticrd/fuel-price-extractor-api | ce585f3246f4541116b4d1e43a6742d8c285697a | [
"MIT"
] | 2 | 2022-02-28T17:23:49.000Z | 2022-02-28T20:27:25.000Z | tests/test_fuel.py | opticrd/fuel-price-extractor-api | ce585f3246f4541116b4d1e43a6742d8c285697a | [
"MIT"
] | 2 | 2022-02-22T14:27:44.000Z | 2022-02-22T21:07:19.000Z | tests/test_fuel.py | opticrd/fuel-price-extractor-api | ce585f3246f4541116b4d1e43a6742d8c285697a | [
"MIT"
] | null | null | null | import unittest
from datetime import date
import requests
from fuel import Fuel
class TestFuel(unittest.TestCase):
def setUp(self) -> None:
self.fuel = Fuel()
self.number = 5
def test_prices(self):
self.assertIsInstance(self.fuel.prices, dict)
self.number = 10
def test... | 25.787879 | 73 | 0.678026 | 112 | 851 | 4.910714 | 0.330357 | 0.101818 | 0.065455 | 0.070909 | 0.227273 | 0.196364 | 0.196364 | 0 | 0 | 0 | 0 | 0.015129 | 0.223267 | 851 | 32 | 74 | 26.59375 | 0.816944 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.217391 | false | 0 | 0.173913 | 0 | 0.434783 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e32b3eac78d98450cf78fefcfa53168515fab609 | 818 | py | Python | schools/ranking/migrations/0003_auto_20170316_1712.py | NewsNerdsAtCoJMC/ProjectTicoTeam5 | 63f559fe26430299029e7e2729c6e11a12270627 | [
"MIT"
] | null | null | null | schools/ranking/migrations/0003_auto_20170316_1712.py | NewsNerdsAtCoJMC/ProjectTicoTeam5 | 63f559fe26430299029e7e2729c6e11a12270627 | [
"MIT"
] | null | null | null | schools/ranking/migrations/0003_auto_20170316_1712.py | NewsNerdsAtCoJMC/ProjectTicoTeam5 | 63f559fe26430299029e7e2729c6e11a12270627 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-16 17:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ranking', '0002_auto_20170316_1706'),
]
operations = [
migrations.RenameFie... | 24.787879 | 48 | 0.570905 | 78 | 818 | 5.794872 | 0.628205 | 0.059735 | 0.126106 | 0.119469 | 0.39823 | 0.39823 | 0.216814 | 0.216814 | 0 | 0 | 0 | 0.062724 | 0.317848 | 818 | 32 | 49 | 25.5625 | 0.747312 | 0.08313 | 0 | 0.48 | 1 | 0 | 0.115127 | 0.03079 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e32f3ec2a067664844435076f42603b451f1ce95 | 352 | py | Python | ex035/exercicio035.py | ArthurAlesi/Python-Exercicios-CursoEmVideo | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | [
"MIT"
] | null | null | null | ex035/exercicio035.py | ArthurAlesi/Python-Exercicios-CursoEmVideo | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | [
"MIT"
] | null | null | null | ex035/exercicio035.py | ArthurAlesi/Python-Exercicios-CursoEmVideo | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | [
"MIT"
] | null | null | null | # Desenvolva um programa que leia o comprimento de 3 reretas e diga se
# elas podem ou nao formar um triângulo
l1 = float(input("Diga o primeiro lado"))
l2 = float(input("Diga o segundo lado"))
l3 = float(input("Diga o terceiro lado"))
if (l1 + l2 < l3) or (l1 + l3 < l2) or (l1 > l2 + l3):
print("Não é triângulo"... | 32 | 70 | 0.664773 | 61 | 352 | 3.836066 | 0.557377 | 0.128205 | 0.179487 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046595 | 0.207386 | 352 | 11 | 71 | 32 | 0.792115 | 0.301136 | 0 | 0 | 0 | 0 | 0.348361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e33cbd542318dd062953dfecb2759c866da9739f | 1,303 | py | Python | tests/requests/test_sns.py | chuckwondo/aws-lambda-typing | 8417ab67f2492be1508fe38b2c34bc106619a56d | [
"MIT"
] | null | null | null | tests/requests/test_sns.py | chuckwondo/aws-lambda-typing | 8417ab67f2492be1508fe38b2c34bc106619a56d | [
"MIT"
] | null | null | null | tests/requests/test_sns.py | chuckwondo/aws-lambda-typing | 8417ab67f2492be1508fe38b2c34bc106619a56d | [
"MIT"
] | null | null | null | from aws_lambda_typing.requests import SNSPublish, SNSPublishBatch
def test_sns_publish() -> None:
request: SNSPublish = {
"Message": "Hello World",
"MessageAttributes": {
"string": {
"DataType": "string",
"StringValue": "string",
"Binary... | 28.955556 | 66 | 0.447429 | 74 | 1,303 | 7.783784 | 0.472973 | 0.024306 | 0.034722 | 0.059028 | 0.541667 | 0.541667 | 0.541667 | 0.541667 | 0.541667 | 0.541667 | 0 | 0 | 0.417498 | 1,303 | 44 | 67 | 29.613636 | 0.758893 | 0 | 0 | 0.55 | 0 | 0 | 0.331543 | 0.053722 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | true | 0 | 0.025 | 0 | 0.075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e33f90d28fe816ea4ea8255df6517f7380b4d80b | 2,823 | py | Python | examples/request_sender_test.py | problemfighter/pf-flask-rest-com | 1421ff9213fa4f8d5ccaa60800b745a67ae90bdc | [
"Apache-2.0"
] | 3 | 2022-01-04T13:02:07.000Z | 2022-01-15T09:08:32.000Z | examples/request_sender_test.py | problemfighter/pf-flask-rest-com | 1421ff9213fa4f8d5ccaa60800b745a67ae90bdc | [
"Apache-2.0"
] | null | null | null | examples/request_sender_test.py | problemfighter/pf-flask-rest-com | 1421ff9213fa4f8d5ccaa60800b745a67ae90bdc | [
"Apache-2.0"
] | null | null | null | import json
import requests
BASE_URL = "http://127.0.0.1:5000/"
def test__query_data():
response = requests.get(BASE_URL + "query-data?name=hmtmcse.com&age=7")
response_data = response.json()
assert response.status_code == 200, "Should be 200"
assert response_data["name"] == "hmtmcse.com"
asser... | 32.448276 | 127 | 0.668084 | 382 | 2,823 | 4.680628 | 0.138743 | 0.161074 | 0.130872 | 0.09396 | 0.796421 | 0.716443 | 0.676734 | 0.607383 | 0.607383 | 0.57047 | 0 | 0.024214 | 0.166135 | 2,823 | 86 | 128 | 32.825581 | 0.735344 | 0 | 0 | 0.52459 | 0 | 0.016393 | 0.213603 | 0.057032 | 0 | 0 | 0 | 0 | 0.377049 | 1 | 0.114754 | false | 0 | 0.032787 | 0 | 0.147541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e34999b63611478289a40166a2d665c802a4fd4f | 593 | py | Python | jool_exporter_tests.py | zajdee/jool-exporter | 8e249aa1fa52d3c606bfb17c9643cbae1ab1595d | [
"BSD-2-Clause"
] | 4 | 2020-12-19T01:07:29.000Z | 2021-12-02T18:35:28.000Z | jool_exporter_tests.py | zajdee/jool-exporter | 8e249aa1fa52d3c606bfb17c9643cbae1ab1595d | [
"BSD-2-Clause"
] | 2 | 2021-05-14T14:29:27.000Z | 2021-12-02T23:02:31.000Z | jool_exporter_tests.py | zajdee/jool-exporter | 8e249aa1fa52d3c606bfb17c9643cbae1ab1595d | [
"BSD-2-Clause"
] | 1 | 2021-12-02T18:35:32.000Z | 2021-12-02T18:35:32.000Z | #!/usr/bin/env python3
# This source code is licensed under the BSD license found in the
# LICENSE file in the root directory of this source tree.
# coding=utf8
import unittest
from unittest.mock import Mock
import jool_exporter
# Turn off logging for unit tests - Comment out to enable
jool_exporter.LOG = Mock()
... | 21.962963 | 65 | 0.733558 | 83 | 593 | 5.048193 | 0.674699 | 0.114558 | 0.057279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004124 | 0.182125 | 593 | 26 | 66 | 22.807692 | 0.859794 | 0.352445 | 0 | 0 | 0 | 0 | 0.021108 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e35306d87c88af9170e0fba0d4facf0dd4b8a7e5 | 33,311 | py | Python | helloworld/services/devops/devops_service.py | jpotter/angel | 66e98f73621a735c7e5a7f3a70926ad99dd39f3e | [
"Apache-2.0"
] | null | null | null | helloworld/services/devops/devops_service.py | jpotter/angel | 66e98f73621a735c7e5a7f3a70926ad99dd39f3e | [
"Apache-2.0"
] | null | null | null | helloworld/services/devops/devops_service.py | jpotter/angel | 66e98f73621a735c7e5a7f3a70926ad99dd39f3e | [
"Apache-2.0"
] | null | null | null |
import os
import re
import sys
import time
from devops.generic_service import GenericService
from angel.util.pidfile import is_pid_in_pidfile_running
from angel.util.checksum import get_md5_of_path_contents
from devops.simple_cache import simple_cache_get, simple_cache_set
from angel.stats.disk_stats import disk_stats... | 50.701674 | 212 | 0.620246 | 4,323 | 33,311 | 4.590099 | 0.183669 | 0.022678 | 0.018344 | 0.029028 | 0.297284 | 0.244872 | 0.167162 | 0.117623 | 0.070151 | 0.045759 | 0 | 0.016404 | 0.280778 | 33,311 | 656 | 213 | 50.778963 | 0.811837 | 0.201765 | 0 | 0.249438 | 0 | 0.020225 | 0.15365 | 0.019879 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006742 | 0.022472 | null | null | 0.069663 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e355025617a76b630badb25478aa30c8c7a46e3f | 2,053 | py | Python | models.py | Nelestya/baseapp | b5b429b8c31f05e0854bd1acab578d0736d53987 | [
"MIT"
] | null | null | null | models.py | Nelestya/baseapp | b5b429b8c31f05e0854bd1acab578d0736d53987 | [
"MIT"
] | null | null | null | models.py | Nelestya/baseapp | b5b429b8c31f05e0854bd1acab578d0736d53987 | [
"MIT"
] | null | null | null | from django.db import models
#Abstract class
class Recently(models.Model):
created = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)
def update_recent(self):
"""
return True if is updated recently
"""
return (datetime.now() - self.upda... | 24.152941 | 88 | 0.64491 | 228 | 2,053 | 5.622807 | 0.320175 | 0.093604 | 0.112324 | 0.149766 | 0.481279 | 0.436037 | 0.331513 | 0.204368 | 0.204368 | 0.204368 | 0 | 0.012771 | 0.237214 | 2,053 | 84 | 89 | 24.440476 | 0.805875 | 0.040916 | 0 | 0.37037 | 0 | 0 | 0.055671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12963 | false | 0 | 0.018519 | 0.092593 | 0.796296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e35dcbca120c335c6300ab9546584e532658ae6f | 1,226 | py | Python | example/experiment.py | mondus/astunparse | be345194ca691f5283ac8eb96b820b35a816bbbd | [
"PSF-2.0"
] | null | null | null | example/experiment.py | mondus/astunparse | be345194ca691f5283ac8eb96b820b35a816bbbd | [
"PSF-2.0"
] | null | null | null | example/experiment.py | mondus/astunparse | be345194ca691f5283ac8eb96b820b35a816bbbd | [
"PSF-2.0"
] | null | null | null | import ast
import sys
import inspect
import codegen
import astpretty
def func1():
return 1
agent_func = """
@flamegpu_device_function
def helper(x: numpy.int16) -> int :
return x**2
@flamegpu_agent_function
def pred_output_location(message_in: MessageBruteForce, message_out: MessageBruteForce):
... | 20.779661 | 88 | 0.651713 | 165 | 1,226 | 4.745455 | 0.454545 | 0.038314 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026681 | 0.235726 | 1,226 | 58 | 89 | 21.137931 | 0.808965 | 0.132137 | 0 | 0 | 0 | 0 | 0.807001 | 0.293283 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.128205 | 0.025641 | 0.230769 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e36109f89af1a6f6adc5b25bd22e8a7a9bae3a09 | 3,452 | py | Python | library/failover_group_create.py | codepipe/netapp-ansible | bfde5aa3c2bc44bbd73a8b892c31f0a9f2a41162 | [
"MIT"
] | 17 | 2016-09-30T00:02:31.000Z | 2020-08-02T00:54:57.000Z | library/failover_group_create.py | EricSherrill/netapp-ansible | bfde5aa3c2bc44bbd73a8b892c31f0a9f2a41162 | [
"MIT"
] | 1 | 2017-06-05T08:40:11.000Z | 2017-06-05T08:40:11.000Z | library/failover_group_create.py | EricSherrill/netapp-ansible | bfde5aa3c2bc44bbd73a8b892c31f0a9f2a41162 | [
"MIT"
] | 13 | 2016-09-30T16:23:12.000Z | 2020-10-12T06:26:05.000Z | #!/usr/bin/python
import sys
import json
try:
from NaServer import *
NASERVER_AVAILABLE = True
except ImportError:
NASERVER_AVAILABLE = False
if not NASERVER_AVAILABLE:
module.fail_json(msg="The NetApp Manageability SDK library is not installed")
DOCUMENTATTION = '''
---
module: failover_group_create
vers... | 24.834532 | 217 | 0.700174 | 442 | 3,452 | 5.339367 | 0.321267 | 0.110169 | 0.040678 | 0.025424 | 0.019492 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00822 | 0.189455 | 3,452 | 138 | 218 | 25.014493 | 0.835239 | 0.004635 | 0 | 0.154545 | 0 | 0.009091 | 0.509753 | 0.026492 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0.054545 | 0.045455 | 0 | 0.072727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e36344c0b0f420be9694368b1962b28ae4b6791d | 3,974 | py | Python | workon/forms/image.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/forms/image.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/forms/image.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
import re
import os
import logging
from django.conf import settings
from django import forms as base_forms
from django.template import Context
from django.forms.widgets import ClearableFileInput
from django.utils.encoding import force_unicode
from django.template.loader import render_to_string
from ... | 32.57377 | 117 | 0.629844 | 457 | 3,974 | 5.286652 | 0.319475 | 0.036424 | 0.02649 | 0.023593 | 0.079056 | 0.033113 | 0.033113 | 0 | 0 | 0 | 0 | 0.001362 | 0.260946 | 3,974 | 122 | 118 | 32.57377 | 0.821246 | 0.075239 | 0 | 0.075949 | 0 | 0 | 0.127633 | 0.035838 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.139241 | null | null | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3665421c248d65d042eefd9d2bc60018014e313 | 1,104 | py | Python | tests/test_signature.py | octosign/desktop-blockchain | 2915b78b0d25821f5d14871b128eef67bbdaf678 | [
"MIT"
] | null | null | null | tests/test_signature.py | octosign/desktop-blockchain | 2915b78b0d25821f5d14871b128eef67bbdaf678 | [
"MIT"
] | null | null | null | tests/test_signature.py | octosign/desktop-blockchain | 2915b78b0d25821f5d14871b128eef67bbdaf678 | [
"MIT"
] | null | null | null | import unittest
from octosignblockchain.signature import Signature
from .web3_mock import Web3
class TestSignature(unittest.TestCase):
def test_instance(self):
signature = Signature('Janko', 'ax3', '0x123')
self.assertEqual(signature.name, 'Janko')
self.assertEqual(signature.hash, 'ax3')
... | 32.470588 | 88 | 0.669384 | 105 | 1,104 | 6.961905 | 0.361905 | 0.164159 | 0.229822 | 0.110807 | 0.161423 | 0.161423 | 0.161423 | 0.161423 | 0.161423 | 0 | 0 | 0.042286 | 0.207428 | 1,104 | 33 | 89 | 33.454545 | 0.793143 | 0 | 0 | 0.083333 | 0 | 0 | 0.118659 | 0.043478 | 0 | 0 | 0.022645 | 0 | 0.375 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e36bf1f20029c16bb37060529f813e76a1b0573b | 173 | py | Python | kiwipycon-rust-2016/fib-iterator.py | rbtcollins/reveal.js | 245187ab20113731eda8e16bf76da453940e7e3a | [
"MIT"
] | 7 | 2015-08-02T00:31:16.000Z | 2021-11-10T15:00:01.000Z | kiwipycon-rust-2016/fib-iterator.py | rbtcollins/reveal.js | 245187ab20113731eda8e16bf76da453940e7e3a | [
"MIT"
] | null | null | null | kiwipycon-rust-2016/fib-iterator.py | rbtcollins/reveal.js | 245187ab20113731eda8e16bf76da453940e7e3a | [
"MIT"
] | 1 | 2017-07-22T16:26:07.000Z | 2017-07-22T16:26:07.000Z | #!/usr/bin/python3.5
def fib(n: int):
fibs = [1, 1]
for _ in range(max(n-2, 0)):
fibs.append(fibs[-1] + fibs[-2])
return fibs[n-1]
print("%s" % fib(38))
| 21.625 | 40 | 0.520231 | 32 | 173 | 2.78125 | 0.65625 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.236994 | 173 | 7 | 41 | 24.714286 | 0.590909 | 0.109827 | 0 | 0 | 0 | 0 | 0.013072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e36c8e374606672a74c3e4a88bd2af92ea2b54e4 | 5,261 | py | Python | src/random_search/TrialGenerator.py | UKPLab/thesis2018-tk_mtl_sequence_tagging | c2041097b1f6f895183d14ef06f60632bc30a34f | [
"Apache-2.0"
] | 9 | 2018-06-25T09:59:19.000Z | 2022-03-05T07:08:12.000Z | src/random_search/TrialGenerator.py | UKPLab/thesis2018-tk_mtl_sequence_tagging | c2041097b1f6f895183d14ef06f60632bc30a34f | [
"Apache-2.0"
] | 7 | 2020-01-28T22:26:24.000Z | 2022-02-09T23:43:33.000Z | src/random_search/TrialGenerator.py | UKPLab/thesis2018-tk_mtl_sequence_tagging | c2041097b1f6f895183d14ef06f60632bc30a34f | [
"Apache-2.0"
] | null | null | null | """
Module of the `TrialGenerator` class.
The trial generator takes a list of intervals and returns a randomly sampled trial from these intervals.
"""
import numpy as np
INTERVAL_TYPE_LIST = "list"
INTERVAL_TYPE_DISCRETE = "discrete"
INTERVAL_TYPE_CONTINUOUS = "continuous"
class Interval(object):
def __init__(... | 41.101563 | 120 | 0.587341 | 594 | 5,261 | 5.011785 | 0.23064 | 0.161236 | 0.064494 | 0.08868 | 0.232449 | 0.197514 | 0.142425 | 0.130333 | 0.101444 | 0 | 0 | 0.003962 | 0.328265 | 5,261 | 127 | 121 | 41.425197 | 0.838427 | 0 | 0 | 0.032787 | 0 | 0 | 0.08113 | 0 | 0 | 0 | 0 | 0 | 0.098361 | 0 | null | null | 0 | 0.016393 | null | null | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e36fa4d83691711ccf1becfcba7aceddb5084e6f | 1,310 | py | Python | xen/xen-4.2.2/tools/tests/utests/run_all_tests.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2018-02-02T00:15:26.000Z | 2018-02-02T00:15:26.000Z | xen/xen-4.2.2/tools/tests/utests/run_all_tests.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | null | null | null | xen/xen-4.2.2/tools/tests/utests/run_all_tests.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2019-05-27T09:47:18.000Z | 2019-05-27T09:47:18.000Z | #============================================================================
# This library is free software; you can redistribute it and/or
# modify it under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
# This library is distributed in the hope th... | 39.69697 | 77 | 0.625191 | 167 | 1,310 | 4.784431 | 0.568862 | 0.060075 | 0.060075 | 0.070088 | 0.325407 | 0.185232 | 0.085106 | 0 | 0 | 0 | 0 | 0.018634 | 0.139695 | 1,310 | 32 | 78 | 40.9375 | 0.690328 | 0.69313 | 0 | 0 | 0 | 0 | 0.020779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e374ebf8cead0cd6a47d2bc338d77bec55c2183e | 2,836 | py | Python | utils/flow_query_and_save.py | GEANT-DataPlaneProgramming/int-analytics | c6796f74f509babb715e458551899245b6781894 | [
"Apache-2.0"
] | 3 | 2021-10-01T20:21:12.000Z | 2022-03-20T13:43:27.000Z | utils/flow_query_and_save.py | GEANT-DataPlaneProgramming/-In_band_telemetry_visualisation | c6796f74f509babb715e458551899245b6781894 | [
"Apache-2.0"
] | 1 | 2021-09-08T13:29:03.000Z | 2021-09-08T13:29:03.000Z | utils/flow_query_and_save.py | GEANT-DataPlaneProgramming/In_band_telemetry_visualisation | c6796f74f509babb715e458551899245b6781894 | [
"Apache-2.0"
] | 1 | 2021-10-06T12:44:35.000Z | 2021-10-06T12:44:35.000Z | from influxdb import InfluxDBClient
import time
import pandas as pd
from pprint import pprint
import pickle
import pandas as pd
from datetime import datetime, timedelta
import os
host = 'hs-04.ipa.psnc.pl'
port = 8086
"""Instantiate a connection to the InfluxDB."""
user = 'root'
password = 'root'
dbname = 'int_teleme... | 32.597701 | 177 | 0.64457 | 390 | 2,836 | 4.548718 | 0.35641 | 0.045096 | 0.018602 | 0.016911 | 0.196167 | 0.149944 | 0.110485 | 0.110485 | 0.110485 | 0.110485 | 0 | 0.036873 | 0.206276 | 2,836 | 86 | 178 | 32.976744 | 0.751222 | 0.032087 | 0 | 0.031746 | 0 | 0.031746 | 0.201041 | 0.010405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.063492 | 0.126984 | 0 | 0.206349 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e37b0c8d208e011922842e605dcfca1f5773f5c4 | 1,707 | py | Python | demo/demo1.py | pombredanne/topicmodeling | 45b8ba30a1716138dd884d6e993cd792bc90a15a | [
"MIT"
] | 1 | 2015-01-29T03:19:15.000Z | 2015-01-29T03:19:15.000Z | demo/demo1.py | pombredanne/topicmodeling | 45b8ba30a1716138dd884d6e993cd792bc90a15a | [
"MIT"
] | null | null | null | demo/demo1.py | pombredanne/topicmodeling | 45b8ba30a1716138dd884d6e993cd792bc90a15a | [
"MIT"
] | null | null | null | from sys import argv, exit
import sys
import numpy as np
from os import path
from scipy.sparse import csr_matrix
from cPickle import dump
sys.path.append(path.abspath(path.join(path.dirname(__file__), "..")))
from LDA import TCVB0
#this demo is assumed to work with famous 20-newsgroups-dataset
#get this version http... | 23.708333 | 79 | 0.658465 | 257 | 1,707 | 4.287938 | 0.435798 | 0.024501 | 0.034483 | 0.018149 | 0.07441 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018423 | 0.205038 | 1,707 | 71 | 80 | 24.042254 | 0.793662 | 0.082015 | 0 | 0.083333 | 0 | 0 | 0.13738 | 0.013419 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.145833 | null | null | 0.145833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e37fb04a4fc0b33969025ef090364b836db8a365 | 769 | py | Python | utility-scripts/python/_old/listScripts.py | chocobearz/xnat-image-viewer-plugin | 99b0aa2fd04e0390a3df920fa1c8b5569cdeb5ec | [
"BSD-3-Clause"
] | null | null | null | utility-scripts/python/_old/listScripts.py | chocobearz/xnat-image-viewer-plugin | 99b0aa2fd04e0390a3df920fa1c8b5569cdeb5ec | [
"BSD-3-Clause"
] | null | null | null | utility-scripts/python/_old/listScripts.py | chocobearz/xnat-image-viewer-plugin | 99b0aa2fd04e0390a3df920fa1c8b5569cdeb5ec | [
"BSD-3-Clause"
] | null | null | null | import sys
import os
def main():
scriptPath = "../utils/"
"""
from os import listdir
from os.path import isfile, join
onlyfiles = [ f for f in listdir(mypath) if isfile(join(mypath,f)) ]
print onlyfiles
"""
s = []
prependStr = '<script type="text/javascript... | 21.361111 | 78 | 0.486346 | 87 | 769 | 4.206897 | 0.471264 | 0.032787 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.353706 | 769 | 35 | 79 | 21.971429 | 0.736419 | 0.053316 | 0 | 0 | 0 | 0 | 0.13587 | 0.039855 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e382e94bfe04770741d1b8c0d4308306b13565b0 | 1,652 | py | Python | providers/resources.py | stunn3r/matos | 34c03d56c8eb358682edfc991434163cbab102e6 | [
"RSA-MD"
] | null | null | null | providers/resources.py | stunn3r/matos | 34c03d56c8eb358682edfc991434163cbab102e6 | [
"RSA-MD"
] | null | null | null | providers/resources.py | stunn3r/matos | 34c03d56c8eb358682edfc991434163cbab102e6 | [
"RSA-MD"
] | null | null | null | from .config import PROVIDERS, PROVIDER_RESOURCE_MANAGER
from .gcp.gcp_config import RESOURCE_TYPE_REQUESTS
# TODO: Logging needs to be initialise and apply.
class Resource:
def __init__(self,
provider: str,
):
if provider not in PROVIDERS:
raise Exception(f... | 33.04 | 159 | 0.554479 | 163 | 1,652 | 5.386503 | 0.294479 | 0.136674 | 0.068337 | 0.04328 | 0.287016 | 0.287016 | 0.287016 | 0.207289 | 0.207289 | 0.207289 | 0 | 0 | 0.368644 | 1,652 | 49 | 160 | 33.714286 | 0.841802 | 0.067191 | 0 | 0.277778 | 0 | 0 | 0.033531 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.083333 | false | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e382eb2c663b6e77148a844045e554c63ffd289e | 4,683 | py | Python | demo/demo3.py | peterbe/configman | 724d80b25a0ebbb2e75ad69e92a6611494cd68b4 | [
"BSD-3-Clause"
] | null | null | null | demo/demo3.py | peterbe/configman | 724d80b25a0ebbb2e75ad69e92a6611494cd68b4 | [
"BSD-3-Clause"
] | null | null | null | demo/demo3.py | peterbe/configman | 724d80b25a0ebbb2e75ad69e92a6611494cd68b4 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (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.mozil... | 40.37069 | 79 | 0.716208 | 697 | 4,683 | 4.74175 | 0.375897 | 0.01059 | 0.015129 | 0.016641 | 0.122239 | 0.057489 | 0.023601 | 0.023601 | 0.023601 | 0.023601 | 0 | 0.009722 | 0.209268 | 4,683 | 115 | 80 | 40.721739 | 0.882798 | 0.682255 | 0 | 0.114286 | 0 | 0 | 0.098885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3863c54230eb33d7bfff5c22c666e2ee6a8d993 | 4,381 | py | Python | utils/mod_download.py | kpagacz/NMDownloader | 670652949b538319ee945071e030119e630ec6a1 | [
"MIT"
] | null | null | null | utils/mod_download.py | kpagacz/NMDownloader | 670652949b538319ee945071e030119e630ec6a1 | [
"MIT"
] | 20 | 2019-03-16T14:42:54.000Z | 2019-04-10T19:40:41.000Z | utils/mod_download.py | kpagacz/NMDownloader | 670652949b538319ee945071e030119e630ec6a1 | [
"MIT"
] | null | null | null | # -*- coding = utf-8 *-*
# MIT License
#
# Copyright (c) 2019 Konrad Pagacz
#
# 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
# ... | 34.226563 | 97 | 0.643917 | 609 | 4,381 | 4.536946 | 0.364532 | 0.040536 | 0.031849 | 0.009772 | 0.19544 | 0.170467 | 0.117988 | 0.10713 | 0.10713 | 0.078176 | 0 | 0.022486 | 0.269117 | 4,381 | 127 | 98 | 34.496063 | 0.8401 | 0.302899 | 0 | 0.086957 | 0 | 0 | 0.133842 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0 | null | null | 0 | 0.086957 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3874b9dd3c74a7ffcd1ec925ce1cbaf13ab2fde | 2,474 | py | Python | src/ralph/lib/polymorphic/tests/migrations/0001_initial.py | DoNnMyTh/ralph | 97b91639fa68965ad3fd9d0d2652a6545a2a5b72 | [
"Apache-2.0"
] | 1,668 | 2015-01-01T12:51:20.000Z | 2022-03-29T09:05:35.000Z | src/ralph/lib/polymorphic/tests/migrations/0001_initial.py | hq-git/ralph | e2448caf02d6e5abfd81da2cff92aefe0a534883 | [
"Apache-2.0"
] | 2,314 | 2015-01-02T13:26:26.000Z | 2022-03-29T04:06:03.000Z | src/ralph/lib/polymorphic/tests/migrations/0001_initial.py | hq-git/ralph | e2448caf02d6e5abfd81da2cff92aefe0a534883 | [
"Apache-2.0"
] | 534 | 2015-01-05T12:40:28.000Z | 2022-03-29T21:10:12.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
]
operations = [
migrations.CreateModel(
name='PolymorphicModel... | 39.269841 | 192 | 0.593775 | 204 | 2,474 | 7.019608 | 0.303922 | 0.067039 | 0.045391 | 0.059358 | 0.689246 | 0.670391 | 0.600559 | 0.600559 | 0.600559 | 0.600559 | 0 | 0.005663 | 0.286176 | 2,474 | 62 | 193 | 39.903226 | 0.80521 | 0.008488 | 0 | 0.642857 | 0 | 0 | 0.230518 | 0.178703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.089286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b5ebd09ae59e0c6e84169d3183e0752148dc2fc | 2,793 | py | Python | dcoder/decryption.py | NightZan999/dcoder | be4d22c63ddd5abd98f9eb355dd8bd61714cd84f | [
"MIT"
] | null | null | null | dcoder/decryption.py | NightZan999/dcoder | be4d22c63ddd5abd98f9eb355dd8bd61714cd84f | [
"MIT"
] | null | null | null | dcoder/decryption.py | NightZan999/dcoder | be4d22c63ddd5abd98f9eb355dd8bd61714cd84f | [
"MIT"
] | null | null | null | import string
class Decryption:
def caesar2text(self, encrypted_text,shift = 3):
translated = ""
for symbol in encrypted_text:
if symbol == " ":
translated += " "
elif symbol.isupper():
num = string.ascii_uppercase.find(symbol) - s... | 27.653465 | 66 | 0.392052 | 260 | 2,793 | 4.146154 | 0.226923 | 0.045455 | 0.022263 | 0.040816 | 0.371058 | 0.343228 | 0.324675 | 0.324675 | 0.324675 | 0.324675 | 0 | 0.021914 | 0.509846 | 2,793 | 101 | 67 | 27.653465 | 0.765522 | 0 | 0 | 0.447368 | 0 | 0 | 0.004083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.013158 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b625882fdd24815c4be05834c7a9ee9a5f458c6 | 2,826 | py | Python | TTC_utils/evaluating.py | tmilne5/Trust-the-Critics | 4e641ef4b1db9fcb76f35b3ce4132fbdb127e5be | [
"MIT"
] | null | null | null | TTC_utils/evaluating.py | tmilne5/Trust-the-Critics | 4e641ef4b1db9fcb76f35b3ce4132fbdb127e5be | [
"MIT"
] | null | null | null | TTC_utils/evaluating.py | tmilne5/Trust-the-Critics | 4e641ef4b1db9fcb76f35b3ce4132fbdb127e5be | [
"MIT"
] | 1 | 2021-11-29T19:27:11.000Z | 2021-11-29T19:27:11.000Z | """
FID evaluation function used by misalignments.py
"""
import os
import shutil
import numpy as np
import torch
from pytorch_fid import fid_score
from generate_samples import save_individuals_v2
def fid_eval(generator,
real_data,
directory,
inception_net,
noise):
... | 47.1 | 124 | 0.62385 | 359 | 2,826 | 4.735376 | 0.35376 | 0.051765 | 0.052941 | 0.017647 | 0.156471 | 0.095294 | 0.095294 | 0.055294 | 0.055294 | 0 | 0 | 0.009892 | 0.248762 | 2,826 | 60 | 125 | 47.1 | 0.790862 | 0.480538 | 0 | 0 | 1 | 0 | 0.034532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.2 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b62e5b704f040619545d5a6556fb819f71dcd6f | 1,361 | py | Python | html_telegraph_poster/errors.py | bhumikapaharia/html-telegraph-poster | e3bab4b7a602931eb9b891c6befbb6b2ded7e22c | [
"MIT"
] | 1 | 2020-12-20T06:07:10.000Z | 2020-12-20T06:07:10.000Z | html_telegraph_poster/errors.py | bhumikapaharia/html-telegraph-poster | e3bab4b7a602931eb9b891c6befbb6b2ded7e22c | [
"MIT"
] | null | null | null | html_telegraph_poster/errors.py | bhumikapaharia/html-telegraph-poster | e3bab4b7a602931eb9b891c6befbb6b2ded7e22c | [
"MIT"
] | null | null | null | # coding=utf8
class Error(Exception):
pass
class TitleRequiredError(Error):
pass
class TextRequiredError(Error):
pass
class APITokenRequiredError(Error):
pass
class GetImageRequestError(Error):
pass
class ImageUploadHTTPError(Error):
pass
class FileTypeNotSupported(Error):
pass... | 20.938462 | 73 | 0.695077 | 134 | 1,361 | 6.813433 | 0.350746 | 0.088719 | 0.107338 | 0.052574 | 0.203724 | 0.128149 | 0 | 0 | 0 | 0 | 0 | 0.003791 | 0.224835 | 1,361 | 64 | 74 | 21.265625 | 0.861611 | 0.021308 | 0 | 0.394737 | 0 | 0 | 0.078254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.236842 | 0 | 0 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8b63ab676e9ccea292882cf69548d256536573c3 | 2,083 | py | Python | 2018/08/memory_maneuver.py | GeoffRiley/AdventOfCode | 27fe8670a1923cb3b0675784f5e855ad18c29c93 | [
"Unlicense"
] | 2 | 2020-12-12T03:18:45.000Z | 2021-12-17T00:35:33.000Z | 2018/08/memory_maneuver.py | GeoffRiley/AdventOfCode | 27fe8670a1923cb3b0675784f5e855ad18c29c93 | [
"Unlicense"
] | null | null | null | 2018/08/memory_maneuver.py | GeoffRiley/AdventOfCode | 27fe8670a1923cb3b0675784f5e855ad18c29c93 | [
"Unlicense"
] | null | null | null | class Tree(object):
def __init__(self):
self.children = []
self.metadata = []
def add_child(self, leaf):
self.children.append(leaf)
def add_metadata(self, metadata):
self.metadata.append(metadata)
def sum_metadata(self):
metasum = sum(self.metadata)
for... | 26.367089 | 72 | 0.598176 | 272 | 2,083 | 4.323529 | 0.231618 | 0.05102 | 0.061224 | 0.028912 | 0.146259 | 0.122449 | 0.122449 | 0.122449 | 0.122449 | 0.122449 | 0 | 0.02027 | 0.289486 | 2,083 | 78 | 73 | 26.705128 | 0.774324 | 0.019683 | 0 | 0.135593 | 0 | 0 | 0.061305 | 0.038254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20339 | false | 0 | 0 | 0.033898 | 0.372881 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b6d126aa55bb3cfddd5bf5174876322cd1be123 | 1,178 | py | Python | tests/fate_of_dice/common/dice/test_dice.py | bonczeq/FateOfDice | ce1704ac490f55bc600c0963958d4175104e85e5 | [
"MIT"
] | null | null | null | tests/fate_of_dice/common/dice/test_dice.py | bonczeq/FateOfDice | ce1704ac490f55bc600c0963958d4175104e85e5 | [
"MIT"
] | null | null | null | tests/fate_of_dice/common/dice/test_dice.py | bonczeq/FateOfDice | ce1704ac490f55bc600c0963958d4175104e85e5 | [
"MIT"
] | null | null | null | import unittest
from unittest import mock
from fate_of_dice.common.dice import Dice
class TestDice(unittest.TestCase):
def test_value(self):
value: int = 20
dice = Dice(value)
self.assertEqual(dice.value, value)
self.assertEqual(int(dice), value)
self.assertEqual(str(dic... | 28.047619 | 73 | 0.635823 | 158 | 1,178 | 4.56962 | 0.278481 | 0.074792 | 0.149584 | 0.138504 | 0.32687 | 0.163435 | 0.163435 | 0.096953 | 0.096953 | 0 | 0 | 0.04281 | 0.226655 | 1,178 | 41 | 74 | 28.731707 | 0.749726 | 0 | 0 | 0 | 0 | 0 | 0.039898 | 0.033107 | 0 | 0 | 0 | 0 | 0.464286 | 1 | 0.107143 | false | 0 | 0.107143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b6d5e2899d0391e64a472020beaad23d7762f2d | 927 | py | Python | djedi/middleware/__init__.py | Mojken/djedi-cms | 9c110094436caffb198a1f41d8c90ca29b8a1c72 | [
"BSD-3-Clause"
] | 41 | 2015-01-28T21:16:45.000Z | 2021-10-13T08:56:59.000Z | djedi/middleware/__init__.py | Mojken/djedi-cms | 9c110094436caffb198a1f41d8c90ca29b8a1c72 | [
"BSD-3-Clause"
] | 49 | 2015-03-19T14:17:49.000Z | 2022-03-31T13:25:29.000Z | djedi/middleware/__init__.py | Mojken/djedi-cms | 9c110094436caffb198a1f41d8c90ca29b8a1c72 | [
"BSD-3-Clause"
] | 29 | 2015-03-18T14:22:18.000Z | 2022-03-24T10:37:20.000Z | import cio
from cio.pipeline import pipeline
class DjediMiddleware(object):
def __init__(self, get_response=None):
self.get_response = get_response
def __call__(self, request):
response = self.process_request(request)
if not response:
try:
response = self.... | 28.090909 | 68 | 0.598706 | 92 | 927 | 5.836957 | 0.336957 | 0.081937 | 0.083799 | 0.096834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32794 | 927 | 32 | 69 | 28.96875 | 0.861958 | 0.021575 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b6ddaa7d896a262c443d0b4decc8c6d9e47479c | 5,181 | py | Python | lib/xos-genx/xos-genx-tests/test_validator.py | mary-grace/xos | 3e269834d29f936757f5091183c9b5188ed5cb9e | [
"Apache-2.0"
] | 66 | 2015-01-29T20:56:45.000Z | 2021-07-01T09:56:44.000Z | lib/xos-genx/xos-genx-tests/test_validator.py | mary-grace/xos | 3e269834d29f936757f5091183c9b5188ed5cb9e | [
"Apache-2.0"
] | 112 | 2015-01-30T19:59:09.000Z | 2017-04-08T16:43:40.000Z | lib/xos-genx/xos-genx-tests/test_validator.py | mary-grace/xos | 3e269834d29f936757f5091183c9b5188ed5cb9e | [
"Apache-2.0"
] | 66 | 2015-02-09T17:35:36.000Z | 2021-03-24T12:31:19.000Z | # Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 34.771812 | 121 | 0.620344 | 564 | 5,181 | 5.554965 | 0.281915 | 0.080753 | 0.07022 | 0.057453 | 0.646345 | 0.646345 | 0.646345 | 0.646345 | 0.628471 | 0.628471 | 0 | 0.012543 | 0.276781 | 5,181 | 148 | 122 | 35.006757 | 0.823592 | 0.116194 | 0 | 0.621053 | 0 | 0 | 0.35298 | 0.054777 | 0 | 0 | 0 | 0 | 0.147368 | 1 | 0.052632 | false | 0 | 0.073684 | 0 | 0.136842 | 0.189474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b6effe48ff1a5137dc5c4d9dbd9d6f3341907d2 | 435 | py | Python | examples/basic.py | adalekin/connexion-buzz | c96beebb26ef84858b5131ba2f3c1a0b9152b137 | [
"BSD-3-Clause"
] | null | null | null | examples/basic.py | adalekin/connexion-buzz | c96beebb26ef84858b5131ba2f3c1a0b9152b137 | [
"BSD-3-Clause"
] | null | null | null | examples/basic.py | adalekin/connexion-buzz | c96beebb26ef84858b5131ba2f3c1a0b9152b137 | [
"BSD-3-Clause"
] | null | null | null | import http
import connexion
import connexion_buzz
class MyException(connexion_buzz.ConnexionBuzz):
status_code = http.HTTPStatus.BAD_REQUEST
def index():
raise MyException("basic test")
app = connexion.FlaskApp(__name__, specification_dir="openapi/")
app.app.register_error_handler(
connexion_buzz.C... | 18.913043 | 85 | 0.790805 | 55 | 435 | 5.945455 | 0.618182 | 0.159021 | 0.238532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.108046 | 435 | 22 | 86 | 19.772727 | 0.832474 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b7b054adb91a831d6f60c559fb444a0e3946fa1 | 843 | py | Python | A@Home/usb_test.py | taiwenko/python | c13c170405f4cac1d1c191413f8b61e21052d8b3 | [
"MIT"
] | null | null | null | A@Home/usb_test.py | taiwenko/python | c13c170405f4cac1d1c191413f8b61e21052d8b3 | [
"MIT"
] | null | null | null | A@Home/usb_test.py | taiwenko/python | c13c170405f4cac1d1c191413f8b61e21052d8b3 | [
"MIT"
] | 1 | 2019-08-30T04:00:34.000Z | 2019-08-30T04:00:34.000Z | import os
import time
import subprocess
from datetime import datetime
for x in range(1,51):
mount_usb = "adb -s alt" + str(x) + ":4321 shell mount -t vfat /dev/block/sda1 /mnt/sdcard > /dev/null"
connect_alt = "adb connect alt" + str(x) + ":4321 > /dev/null"
alt_root = "adb -s alt" + str(x) + ":432... | 36.652174 | 162 | 0.6121 | 135 | 843 | 3.755556 | 0.385185 | 0.047337 | 0.055227 | 0.086785 | 0.398422 | 0.398422 | 0.34714 | 0.34714 | 0.34714 | 0.34714 | 0 | 0.045045 | 0.209964 | 843 | 22 | 163 | 38.318182 | 0.716216 | 0 | 0 | 0.3 | 0 | 0.05 | 0.282325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b7e73125c0ea5274ebbc3a5cb483e70790073b9 | 2,387 | py | Python | boa/unfreeze/__init__.py | malice-labs/boa | 49c1fd24e2050f8e08409a6871b7e30c6d1e27f7 | [
"MIT"
] | 3 | 2020-08-10T04:24:45.000Z | 2022-03-16T07:22:11.000Z | boa/unfreeze/__init__.py | malice-labs/boa | 49c1fd24e2050f8e08409a6871b7e30c6d1e27f7 | [
"MIT"
] | 15 | 2020-08-09T22:01:32.000Z | 2022-03-18T04:15:53.000Z | boa/unfreeze/__init__.py | malice-labs/boa | 49c1fd24e2050f8e08409a6871b7e30c6d1e27f7 | [
"MIT"
] | 2 | 2021-02-04T16:25:57.000Z | 2021-12-20T20:07:58.000Z | """
__init__.py
Defines a base class used by all unfreezers in order to keep consistent
across the API definitions, and implements a helper function to parse out the type
of installer using Yara.
"""
import os
import abc
import traceback
import typing as t
import yara
class UnfreezeException(Exception):... | 27.436782 | 92 | 0.652702 | 304 | 2,387 | 4.990132 | 0.417763 | 0.023731 | 0.039552 | 0.019776 | 0.022413 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003911 | 0.250105 | 2,387 | 86 | 93 | 27.755814 | 0.843575 | 0.281944 | 0 | 0.148936 | 0 | 0 | 0.024522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148936 | false | 0.085106 | 0.12766 | 0.021277 | 0.382979 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8b844a34574a6e6071d880489cafd3aa722d30e3 | 3,199 | py | Python | tests/use_case/test_inference.py | mathisi-ai/message-passing-neural-network | d6e27fcf05d06268a461e5f9d9cf81b7e3a5dc09 | [
"MIT"
] | null | null | null | tests/use_case/test_inference.py | mathisi-ai/message-passing-neural-network | d6e27fcf05d06268a461e5f9d9cf81b7e3a5dc09 | [
"MIT"
] | 1 | 2020-12-13T10:37:03.000Z | 2020-12-13T10:37:03.000Z | tests/use_case/test_inference.py | mathisi-ai/message-passing-neural-network | d6e27fcf05d06268a461e5f9d9cf81b7e3a5dc09 | [
"MIT"
] | null | null | null | import os
from datetime import datetime
from unittest import TestCase
from message_passing_nn.data.data_preprocessor import DataPreprocessor
from message_passing_nn.infrastructure.graph_dataset import GraphDataset
from message_passing_nn.model import Loader, Inferencer
from message_passing_nn.use_case import Inference... | 48.469697 | 118 | 0.695842 | 351 | 3,199 | 5.994302 | 0.356125 | 0.096958 | 0.109791 | 0.057034 | 0.204848 | 0.034221 | 0 | 0 | 0 | 0 | 0 | 0.00524 | 0.224445 | 3,199 | 65 | 119 | 49.215385 | 0.842805 | 0.007815 | 0 | 0.075472 | 0 | 0 | 0.142316 | 0.076365 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0.056604 | false | 0.113208 | 0.226415 | 0 | 0.301887 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8b993f92b0e1437732b7d3778c3f2055192ff0a4 | 1,474 | py | Python | domain/user.py | LeoOsipovHSE/vkca | 6a1952572124cb0f82b9705c168f875bca52caa2 | [
"Apache-2.0"
] | null | null | null | domain/user.py | LeoOsipovHSE/vkca | 6a1952572124cb0f82b9705c168f875bca52caa2 | [
"Apache-2.0"
] | null | null | null | domain/user.py | LeoOsipovHSE/vkca | 6a1952572124cb0f82b9705c168f875bca52caa2 | [
"Apache-2.0"
] | null | null | null | # coding: utf8
__author__ = 'Lev'
import datetime
from resources import GENDERS
class User:
def __init__(self, user_id, full_name, birth_date, gender, reg_date):
if not isinstance(user_id, int):
raise ValueError('user constructor error: bad user id')
if not full_name:
... | 37.794872 | 88 | 0.622117 | 182 | 1,474 | 4.824176 | 0.247253 | 0.092255 | 0.1082 | 0.170843 | 0.332574 | 0.252847 | 0.123007 | 0.123007 | 0.123007 | 0 | 0 | 0.002836 | 0.282225 | 1,474 | 38 | 89 | 38.789474 | 0.827032 | 0.008141 | 0 | 0 | 0 | 0 | 0.16737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0.033333 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b9cc49e4e3057fb7d5557df08311e10e2cc4da0 | 277 | py | Python | pyjns/__init__.py | jinong-devteam/pyjns | c99b0972c773ca2c067543ddc35891ed3bb9427f | [
"BSD-3-Clause"
] | null | null | null | pyjns/__init__.py | jinong-devteam/pyjns | c99b0972c773ca2c067543ddc35891ed3bb9427f | [
"BSD-3-Clause"
] | null | null | null | pyjns/__init__.py | jinong-devteam/pyjns | c99b0972c773ca2c067543ddc35891ed3bb9427f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016-2017 JiNong Inc. All right reserved.
#
__title__ = 'python-pyjns'
__version__ = '0.40'
__author__ = 'Kim, JoonYong'
__email__ = 'joonyong.jinong@gmail.com'
__copyright__ = 'Copyright 2016-2017 JiNong Inc.'
| 21.307692 | 57 | 0.696751 | 36 | 277 | 4.805556 | 0.75 | 0.092486 | 0.16185 | 0.196532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084034 | 0.140794 | 277 | 12 | 58 | 23.083333 | 0.642857 | 0.353791 | 0 | 0 | 0 | 0 | 0.491329 | 0.144509 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b9ef10161269ef814af67f6c138198d48cc4b41 | 1,114 | py | Python | scratch.py | drh4kor/webformhax | 2ca7717acf0d4d29e30860490da3ef28d49099bc | [
"MIT"
] | null | null | null | scratch.py | drh4kor/webformhax | 2ca7717acf0d4d29e30860490da3ef28d49099bc | [
"MIT"
] | null | null | null | scratch.py | drh4kor/webformhax | 2ca7717acf0d4d29e30860490da3ef28d49099bc | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
loginURL='http://10.10.1.20/cgi-bin/login.cgi'
binaryPath='/usr/bin/firefox'
binary = FirefoxBinary(binaryPath)
driver = webdriver.Firefox(firefox_binary=binary)
driver.implicitly_wait(60)
driver.get(loginURL)
inputEle... | 30.944444 | 74 | 0.771993 | 156 | 1,114 | 5.211538 | 0.365385 | 0.073801 | 0.125461 | 0.140221 | 0.386224 | 0.386224 | 0.386224 | 0.386224 | 0.386224 | 0.386224 | 0 | 0.024121 | 0.106822 | 1,114 | 35 | 75 | 31.828571 | 0.792965 | 0 | 0 | 0.275862 | 0 | 0 | 0.131957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ba5176dfbc5a47f0ca1d03c683e9b33a245a16c | 573 | py | Python | easyrest/models.py | suneel0101/django-easyrest | 62c5a8883d5e7adcea8cd95846881acb31991c85 | [
"MIT"
] | null | null | null | easyrest/models.py | suneel0101/django-easyrest | 62c5a8883d5e7adcea8cd95846881acb31991c85 | [
"MIT"
] | 3 | 2020-02-11T22:12:09.000Z | 2021-06-10T17:40:29.000Z | easyrest/models.py | suneel0101/django-easyrest | 62c5a8883d5e7adcea8cd95846881acb31991c85 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
class APIKey(models.Model):
token = models.CharField(unique=True, max_length=16)
user = models.ForeignKey('auth.user')
def save(self, *args, **kwargs):
# Generate unique token
unique = False
while not unique:... | 31.833333 | 71 | 0.631763 | 70 | 573 | 5.071429 | 0.514286 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.260035 | 573 | 17 | 72 | 33.705882 | 0.82783 | 0.036649 | 0 | 0 | 0 | 0 | 0.016364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8ba74e5560b16e78e685fc2b08cdcaf0e8bb130b | 528 | py | Python | training_v1_backup/training/multiagent_a2c_reference/launch.py | prasoonpatidar/multiagentRL-resource-sharing | e63ba7fc3c7ab019e9fd109cd45b739e3322152f | [
"MIT"
] | null | null | null | training_v1_backup/training/multiagent_a2c_reference/launch.py | prasoonpatidar/multiagentRL-resource-sharing | e63ba7fc3c7ab019e9fd109cd45b739e3322152f | [
"MIT"
] | null | null | null | training_v1_backup/training/multiagent_a2c_reference/launch.py | prasoonpatidar/multiagentRL-resource-sharing | e63ba7fc3c7ab019e9fd109cd45b739e3322152f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 19 20:13:05 2020
"""
#.\venv\Scripts\activate
import matplotlib
matplotlib.use('AGG')
import tensorflow as tf
import runner
import environment as env
def main():
# tf.config.experimental.set_visible_devices([], 'GPU')
# tf.config.experimental.list... | 21.12 | 60 | 0.647727 | 72 | 528 | 4.541667 | 0.722222 | 0.04893 | 0.122324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071599 | 0.206439 | 528 | 24 | 61 | 22 | 0.708831 | 0.422348 | 0 | 0 | 0 | 0 | 0.041045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8ba84f4c78041dd8380bec5878df177507d6ca76 | 4,158 | py | Python | agents/test/conftest.py | marc4gov/tokenspice2 | 1993383674f35b20e11e54606b3dac8e4c05c0f9 | [
"Apache-2.0"
] | 1 | 2021-01-12T08:06:21.000Z | 2021-01-12T08:06:21.000Z | agents/test/conftest.py | marc4gov/tokenspice2 | 1993383674f35b20e11e54606b3dac8e4c05c0f9 | [
"Apache-2.0"
] | null | null | null | agents/test/conftest.py | marc4gov/tokenspice2 | 1993383674f35b20e11e54606b3dac8e4c05c0f9 | [
"Apache-2.0"
] | null | null | null |
from enforce_typing import enforce_types # type: ignore[import]
import pytest
from agents import AgentWallet, BaseAgent
from web3tools import web3util, web3wallet
from web3tools.web3util import toBase18
from web3engine import bfactory, bpool, datatoken, dtfactory, globaltokens
from util.constants import POOL_WEIGHT_D... | 31.5 | 85 | 0.727754 | 546 | 4,158 | 5.232601 | 0.20696 | 0.049002 | 0.044802 | 0.058803 | 0.313266 | 0.122506 | 0.088204 | 0.067903 | 0.031502 | 0 | 0 | 0.023873 | 0.183983 | 4,158 | 131 | 86 | 31.740458 | 0.818155 | 0.075998 | 0 | 0.222222 | 0 | 0 | 0.012787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0.020202 | 0.070707 | 0.10101 | 0.40404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
8bae9c662020c44ff8c62f7a6f0dd38464892cec | 300 | py | Python | source-code-from-author-book/Listings-for-Second-Edition/listing_8_2.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_8_2.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_8_2.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | def __getitem__(self,idx):
if idx < self.lastIndex:
return self.myArray[idx]
else:
raise LookupError('index out of bounds')
def __setitem__(self,idx,val):
if idx < self.lastIndex:
self.myArray[idx] = val
else:
raise LookupError('index out of bounds')
| 25 | 48 | 0.633333 | 39 | 300 | 4.666667 | 0.435897 | 0.076923 | 0.098901 | 0.197802 | 0.395604 | 0.395604 | 0.395604 | 0 | 0 | 0 | 0 | 0 | 0.26 | 300 | 11 | 49 | 27.272727 | 0.81982 | 0 | 0 | 0.6 | 0 | 0 | 0.126667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bb204f684da4c25c7dad4b26cb448d857507ef8 | 331 | py | Python | pyportfolio/utils/misc.py | dstephens99/pyportfolio | 8fe3a2f6e0319d0c233d59ca1c4cd321d5ee59f8 | [
"BSD-3-Clause"
] | 2 | 2017-04-10T01:48:43.000Z | 2017-07-03T19:33:06.000Z | pyportfolio/utils/misc.py | dstephens99/pyportfolio | 8fe3a2f6e0319d0c233d59ca1c4cd321d5ee59f8 | [
"BSD-3-Clause"
] | null | null | null | pyportfolio/utils/misc.py | dstephens99/pyportfolio | 8fe3a2f6e0319d0c233d59ca1c4cd321d5ee59f8 | [
"BSD-3-Clause"
] | 2 | 2017-04-10T01:48:57.000Z | 2020-12-01T01:43:43.000Z | import inspect
def get_required_args(f, d):
"""
:param f: function
:param d: dictionary of arguments
:return: dictionary of arguments, reduced to only the ones required by
function
"""
args = inspect.getargspec(f)[0]
if args[0] == 'self':
args = args[1:]
return {k: d[k] for ... | 23.642857 | 74 | 0.613293 | 48 | 331 | 4.1875 | 0.583333 | 0.119403 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012397 | 0.268882 | 331 | 13 | 75 | 25.461538 | 0.818182 | 0.398792 | 0 | 0 | 0 | 0 | 0.023392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bb2a3fda8ac550693d8dc4dc892016d99507469 | 306 | py | Python | addons14/project_task_add_very_high/models/project_task.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | 1 | 2021-06-10T14:59:13.000Z | 2021-06-10T14:59:13.000Z | addons14/project_task_add_very_high/models/project_task.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | null | null | null | addons14/project_task_add_very_high/models/project_task.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | 1 | 2021-04-09T09:44:44.000Z | 2021-04-09T09:44:44.000Z | # Copyright 2016-2020 Onestein (<https://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProjectTask(models.Model):
_inherit = "project.task"
priority = fields.Selection(selection_add=[("2", "High"), ("3", "Very High")])
| 27.818182 | 82 | 0.689542 | 42 | 306 | 4.97619 | 0.785714 | 0.076555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045113 | 0.130719 | 306 | 10 | 83 | 30.6 | 0.740602 | 0.388889 | 0 | 0 | 0 | 0 | 0.146739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8bb488c4360251e502585bd6dfb7552115391079 | 2,400 | py | Python | src/pyobo/sources/reactome.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | src/pyobo/sources/reactome.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | src/pyobo/sources/reactome.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Converter for Reactome."""
import logging
from typing import Iterable
import pandas as pd
from tqdm import tqdm
from ..constants import SPECIES_REMAPPING
from ..extract import get_name_id_mapping
from ..io_utils import multidict
from ..path_utils import ensure_df
from ..struct import Obo,... | 32 | 100 | 0.702917 | 311 | 2,400 | 5.180064 | 0.324759 | 0.031037 | 0.039727 | 0.05959 | 0.107387 | 0.063315 | 0 | 0 | 0 | 0 | 0 | 0.000507 | 0.17875 | 2,400 | 74 | 101 | 32.432432 | 0.816844 | 0.09 | 0 | 0 | 0 | 0 | 0.147806 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.042553 | false | 0 | 0.191489 | 0 | 0.255319 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bb7df561e9b4db20042851bead87dd338988a13 | 534 | py | Python | PRM_Django_REST_API/users/migrations/0003_alter_profile_projects.py | maciejKusy/Project_Risk_Management_Django_REST_API | f654a3dedbe395d5ad80a3572e22bc0502326a48 | [
"MIT"
] | null | null | null | PRM_Django_REST_API/users/migrations/0003_alter_profile_projects.py | maciejKusy/Project_Risk_Management_Django_REST_API | f654a3dedbe395d5ad80a3572e22bc0502326a48 | [
"MIT"
] | null | null | null | PRM_Django_REST_API/users/migrations/0003_alter_profile_projects.py | maciejKusy/Project_Risk_Management_Django_REST_API | f654a3dedbe395d5ad80a3572e22bc0502326a48 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-11 19:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("projects", "0007_remove_project_users_assigned"),
("users", "0002_alter_profile_user"),
]
operations = [
migrations.AlterField(
... | 24.272727 | 80 | 0.599251 | 54 | 534 | 5.740741 | 0.740741 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060367 | 0.286517 | 534 | 21 | 81 | 25.428571 | 0.753281 | 0.08427 | 0 | 0.133333 | 1 | 0 | 0.23614 | 0.117043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bb9b0b57ec211657fac8b0297e616ca5117cd1c | 4,680 | py | Python | AR1/reduction/antenna_pointing/concat_pointing_csv.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | null | null | null | AR1/reduction/antenna_pointing/concat_pointing_csv.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | 21 | 2019-09-16T15:26:53.000Z | 2022-01-11T09:14:39.000Z | AR1/reduction/antenna_pointing/concat_pointing_csv.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | 1 | 2019-11-11T11:47:54.000Z | 2019-11-11T11:47:54.000Z | #!/usr/bin/python
##Concat list of .csv files generated by analyse_point_source_scan
# python concat_pointing_csv.py -a m063 -e -v *.csv
#
# Revision History:
# * (Ruby) Initial implementation
import optparse
import numpy
import matplotlib.pyplot as plt
# Simple function that reads in a file and writes it to a concat... | 34.411765 | 135 | 0.641667 | 658 | 4,680 | 4.440729 | 0.31459 | 0.033881 | 0.032854 | 0.041068 | 0.173169 | 0.106092 | 0.049966 | 0.049966 | 0.021218 | 0 | 0 | 0.010109 | 0.217949 | 4,680 | 135 | 136 | 34.666667 | 0.788251 | 0.138675 | 0 | 0.166667 | 1 | 0 | 0.192317 | 0.031429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0.010417 | 0.03125 | 0 | 0.052083 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bbc4bfdc7a29fe44d34771b9e42272100052604 | 1,763 | py | Python | tests/test_vortex.py | LeeDongGeon1996/Stock.Indicators.Python | b706d00279a8ab5f2794417ddef1bf45e1c48587 | [
"Apache-2.0"
] | 13 | 2021-11-09T13:16:31.000Z | 2022-03-28T00:30:30.000Z | tests/test_vortex.py | LeeDongGeon1996/Stock.Indicators.Python | b706d00279a8ab5f2794417ddef1bf45e1c48587 | [
"Apache-2.0"
] | 162 | 2021-11-03T15:57:17.000Z | 2022-03-30T15:32:20.000Z | tests/test_vortex.py | LeeDongGeon1996/Stock.Indicators.Python | b706d00279a8ab5f2794417ddef1bf45e1c48587 | [
"Apache-2.0"
] | 5 | 2021-11-04T13:35:05.000Z | 2022-01-06T10:27:38.000Z | import pytest
from stock_indicators import indicators
class TestVortex:
def test_standard(self, quotes):
results = indicators.get_vortex(quotes, 14)
assert 502 == len(results)
assert 488 == len(list(filter(lambda x: x.pvi is not None, results)))
r = results[13]
... | 31.482143 | 77 | 0.560976 | 228 | 1,763 | 4.258772 | 0.276316 | 0.102987 | 0.090628 | 0.102987 | 0.437693 | 0.292482 | 0.281153 | 0.090628 | 0 | 0 | 0 | 0.082008 | 0.322178 | 1,763 | 55 | 78 | 32.054545 | 0.730544 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.439024 | 1 | 0.121951 | false | 0 | 0.073171 | 0 | 0.219512 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bbd22ddc7d2eed38d4ce89f82d94796d095df5b | 1,144 | py | Python | qatrack/qa/migrations/0005_auto_20171103_2158.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 20 | 2021-03-11T18:37:32.000Z | 2022-03-23T19:38:07.000Z | qatrack/qa/migrations/0005_auto_20171103_2158.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 75 | 2021-02-12T02:37:33.000Z | 2022-03-29T20:56:16.000Z | qatrack/qa/migrations/0005_auto_20171103_2158.py | randlet/qatrackplus-ci | ba11d39a07382b11394aaffd0df692b4ddc6239b | [
"MIT"
] | 5 | 2021-04-07T15:46:53.000Z | 2021-09-18T16:55:00.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-04 01:58
from __future__ import unicode_literals
from django.db import migrations, models
from qatrack.qa.models import BOOLEAN
from qatrack.qa.utils import get_bool_tols, get_internal_user
def create_bool_tolerances(apps, schema):
Tolerance = app... | 28.6 | 210 | 0.711538 | 143 | 1,144 | 5.468531 | 0.524476 | 0.071611 | 0.046036 | 0.061381 | 0.143223 | 0.143223 | 0.143223 | 0.143223 | 0.143223 | 0.143223 | 0 | 0.035332 | 0.183566 | 1,144 | 39 | 211 | 29.333333 | 0.801927 | 0.059441 | 0 | 0.083333 | 1 | 0 | 0.178006 | 0.021435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bc1137f30d20ebc11bcb3593b105842c6bbc860 | 1,646 | py | Python | client/python-client/design.py | colesteere/updated-gabriel-proxy-server | d3c94ef03952f8612f76af1e7e42dd89f0c6f401 | [
"Apache-2.0"
] | 7 | 2020-02-04T10:58:58.000Z | 2021-11-26T07:37:22.000Z | client/python-client/design.py | colesteere/updated-gabriel-proxy-server | d3c94ef03952f8612f76af1e7e42dd89f0c6f401 | [
"Apache-2.0"
] | 1 | 2021-02-19T03:56:10.000Z | 2021-02-19T03:56:10.000Z | client/python-client/design.py | colesteere/updated-gabriel-proxy-server | d3c94ef03952f8612f76af1e7e42dd89f0c6f401 | [
"Apache-2.0"
] | 8 | 2019-12-05T10:05:36.000Z | 2021-01-27T14:09:53.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'design.ui'
#
# Created: Tue Jun 14 16:57:25 2016
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attribu... | 35.782609 | 79 | 0.72418 | 173 | 1,646 | 6.786127 | 0.439306 | 0.072402 | 0.068143 | 0.0954 | 0.139693 | 0.139693 | 0.139693 | 0.139693 | 0.139693 | 0.139693 | 0 | 0.025055 | 0.175577 | 1,646 | 45 | 80 | 36.577778 | 0.840088 | 0.12819 | 0 | 0.2 | 1 | 0 | 0.059607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.033333 | 0.1 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bc5a573f98c7aec87b9df9a710b3d0519e58ef9 | 2,137 | py | Python | helpers/season_helper.py | jaredhasenklein/the-blue-alliance | 2da84f1362a2ff6735264881aa24bd334f0a884b | [
"MIT"
] | null | null | null | helpers/season_helper.py | jaredhasenklein/the-blue-alliance | 2da84f1362a2ff6735264881aa24bd334f0a884b | [
"MIT"
] | null | null | null | helpers/season_helper.py | jaredhasenklein/the-blue-alliance | 2da84f1362a2ff6735264881aa24bd334f0a884b | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta, tzinfo
from pytz import timezone, UTC
EST = timezone('EST')
class SeasonHelper:
""" General season-information helper methods """
@staticmethod
def is_kickoff_at_least_one_day_away(date=datetime.now(UTC), year=datetime.now().year):
"""
Returns T... | 46.456522 | 163 | 0.694899 | 303 | 2,137 | 4.745875 | 0.333333 | 0.043811 | 0.052156 | 0.066064 | 0.376217 | 0.228095 | 0.228095 | 0 | 0 | 0 | 0 | 0.021972 | 0.211979 | 2,137 | 45 | 164 | 47.488889 | 0.831948 | 0.358914 | 0 | 0.2 | 0 | 0 | 0.002313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.08 | 0 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8bc81ee476440ed4c86cee4e0293c3690df1ba0e | 1,349 | py | Python | cracking_the_coding_interview_qs/2.5/sum_lists_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | cracking_the_coding_interview_qs/2.5/sum_lists_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | cracking_the_coding_interview_qs/2.5/sum_lists_test.py | angelusualle/algorithms | 86286a49db2a755bc57330cb455bcbd8241ea6be | [
"Apache-2.0"
] | null | null | null | import unittest
from sum_lists import Linked_List, Node, sum_lists_bwd, sum_lists_fwd
class Test_Case_Sum_Lists_Bwd_fwd(unittest.TestCase):
def test_sum_lists_bwd(self):
list_1 = Linked_List(None)
list_1.head = Node(7)
list_1.head.next = Node(1)
list_1.head.next.next = Node(6)
... | 33.725 | 69 | 0.610823 | 207 | 1,349 | 3.657005 | 0.173913 | 0.06605 | 0.071334 | 0.095112 | 0.686922 | 0.686922 | 0.686922 | 0.686922 | 0.686922 | 0.602378 | 0 | 0.039378 | 0.284655 | 1,349 | 40 | 70 | 33.725 | 0.745078 | 0 | 0 | 0.486486 | 0 | 0 | 0.005926 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 1 | 0.054054 | false | 0 | 0.054054 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bceba923709816de83578cf55096857cca937e9 | 2,482 | py | Python | pyansible/plugins/rados.py | bdastur/spam | 3c363302412d15bdb391f62bf90348243e456af2 | [
"Apache-2.0"
] | 7 | 2015-12-10T00:09:32.000Z | 2021-08-30T18:41:31.000Z | pyansible/plugins/rados.py | bdastur/spam | 3c363302412d15bdb391f62bf90348243e456af2 | [
"Apache-2.0"
] | 5 | 2016-03-18T18:20:04.000Z | 2021-09-23T23:20:56.000Z | pyansible/plugins/rados.py | bdastur/spam | 3c363302412d15bdb391f62bf90348243e456af2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SPAM Rados Module
"""
import spam.ansirunner
import re
class Rados(object):
"""
SPAM Rados class
"""
def __init__(self):
"""
Initialize Rados class.
"""
self.runner = spam.ansirunner.AnsibleRunner()
def rados_df(s... | 29.903614 | 77 | 0.474214 | 242 | 2,482 | 4.669421 | 0.380165 | 0.042478 | 0.028319 | 0.040708 | 0.074336 | 0.074336 | 0.074336 | 0.074336 | 0.074336 | 0.074336 | 0 | 0.002086 | 0.420629 | 2,482 | 82 | 78 | 30.268293 | 0.783727 | 0.026189 | 0 | 0 | 0 | 0 | 0.124824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.041667 | 0.041667 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bd5edbd55f4a9359d8796a69c41c9295b2c427a | 1,412 | py | Python | cflearn_deploy/data/transforms.py | carefree0910/carefree-learn-deploy | 53fa62d2bac52e396ed16e82ab0210459b6f13f0 | [
"MIT"
] | 1 | 2021-09-02T09:35:53.000Z | 2021-09-02T09:35:53.000Z | cflearn_deploy/data/transforms.py | carefree0910/carefree-learn-deploy | 53fa62d2bac52e396ed16e82ab0210459b6f13f0 | [
"MIT"
] | null | null | null | cflearn_deploy/data/transforms.py | carefree0910/carefree-learn-deploy | 53fa62d2bac52e396ed16e82ab0210459b6f13f0 | [
"MIT"
] | null | null | null | import numpy as np
from typing import Any
from typing import List
from ..toolkit import min_max_normalize
from ..toolkit import imagenet_normalize
class ImagenetNormalize:
def __call__(self, img: np.ndarray) -> np.ndarray:
img = min_max_normalize(img)
img = imagenet_normalize(img)
return... | 25.672727 | 69 | 0.616147 | 179 | 1,412 | 4.553073 | 0.312849 | 0.088344 | 0.067485 | 0.068712 | 0.231902 | 0.182822 | 0.182822 | 0.139877 | 0.100614 | 0.100614 | 0 | 0.019324 | 0.266997 | 1,412 | 54 | 70 | 26.148148 | 0.768116 | 0.008499 | 0 | 0.128205 | 0 | 0 | 0.009299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.128205 | 0.051282 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bd6475f585721a38f982e0a12e2266a00c189b4 | 1,452 | py | Python | src/services/database/repositories/user.py | Fom123/fastapi-project | ce7926367824ad3836fbdbfec366f19e2c6f5b4c | [
"MIT"
] | 17 | 2021-09-12T14:08:30.000Z | 2022-03-29T12:07:31.000Z | src/services/database/repositories/user.py | Fom123/fastapi-project | ce7926367824ad3836fbdbfec366f19e2c6f5b4c | [
"MIT"
] | null | null | null | src/services/database/repositories/user.py | Fom123/fastapi-project | ce7926367824ad3836fbdbfec366f19e2c6f5b4c | [
"MIT"
] | 4 | 2021-09-30T13:06:42.000Z | 2022-03-29T15:05:59.000Z | import typing
from decimal import Decimal
from sqlalchemy.exc import IntegrityError
from src.services.database import UnableToDelete
from src.services.database.models import User
from src.services.database.repositories.base import BaseRepository, Model
from src.utils.database_utils import manual_cast, filter_payload
... | 38.210526 | 120 | 0.702479 | 189 | 1,452 | 5.195767 | 0.322751 | 0.04888 | 0.065173 | 0.08554 | 0.219959 | 0.13442 | 0.13442 | 0.09776 | 0.09776 | 0.09776 | 0 | 0 | 0.202479 | 1,452 | 37 | 121 | 39.243243 | 0.848014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.037037 | 0.259259 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8bdb5b276d0ad773d6fc42a9d642dafc4b13537b | 340 | py | Python | fython/module/get_module.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 41 | 2016-01-21T05:14:45.000Z | 2021-11-24T20:37:21.000Z | fython/module/get_module.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 5 | 2016-01-21T05:36:37.000Z | 2016-08-22T19:26:51.000Z | fython/module/get_module.py | nicolasessisbreton/fython | 988f5a94cee8b16b0000501a22239195c73424a1 | [
"Apache-2.0"
] | 3 | 2016-01-23T04:03:44.000Z | 2016-08-21T15:58:38.000Z | from pickle import load
from ..config import *
from .fymodule import FyModule
from .fortmodule import FortModule
from .somodule import SoModule
def get_module(url, stack):
if url.ext in exts.fy:
m = FyModule()
m.get_and_parse(url, stack)
elif url.ext in exts.fort:
m = FortModule(url, stack)
else:
m = SoMo... | 18.888889 | 34 | 0.729412 | 54 | 340 | 4.537037 | 0.462963 | 0.097959 | 0.065306 | 0.097959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179412 | 340 | 18 | 35 | 18.888889 | 0.878136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8bdfd57e99a47d2f956c8bee3f692aec8eaf27e7 | 542 | py | Python | data_service.py | mauriciosoares01/DuPontAnalisys | 5a66792be21a64a65a145a58de64b8fa4d2f5a1c | [
"MIT"
] | 1 | 2020-02-28T03:16:52.000Z | 2020-02-28T03:16:52.000Z | data_service.py | mauriciosoares01/DuPontAnalisys | 5a66792be21a64a65a145a58de64b8fa4d2f5a1c | [
"MIT"
] | null | null | null | data_service.py | mauriciosoares01/DuPontAnalisys | 5a66792be21a64a65a145a58de64b8fa4d2f5a1c | [
"MIT"
] | null | null | null | # coding=utf-8
# this file colect all the needed data to applys Dupont model
# use the same pattern in the csv structure to works porperly with your data
import pandas as pd
def financial():
financial_data = pd.read_csv("financial_data.csv")
return(financial_data)
def ipca():
ipca = pd.read_csv("ipca.... | 20.074074 | 77 | 0.682657 | 86 | 542 | 4.186047 | 0.453488 | 0.066667 | 0.1 | 0.077778 | 0.127778 | 0.127778 | 0 | 0 | 0 | 0 | 0 | 0.002288 | 0.193727 | 542 | 26 | 78 | 20.846154 | 0.82151 | 0.273063 | 0 | 0.153846 | 0 | 0 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8be1456f2555878213cf37510812fb57b9dba1b9 | 666 | py | Python | backend/utlis/crypt.py | shuttlesworthNEO/ClashHacks-methOD | 51838d819549770cb5e4fd0b0716432114668f7b | [
"MIT"
] | null | null | null | backend/utlis/crypt.py | shuttlesworthNEO/ClashHacks-methOD | 51838d819549770cb5e4fd0b0716432114668f7b | [
"MIT"
] | null | null | null | backend/utlis/crypt.py | shuttlesworthNEO/ClashHacks-methOD | 51838d819549770cb5e4fd0b0716432114668f7b | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import theano
from keras.layers import Dense
from keras.models import Model,load_model
def crypto(x):
encoder = load_model("/home/vasu/all_projects/Hackathons/ClashHacks-methOD/backend/utlis/encoder.h5")
x = list(x)
for ix in range(len(x)):
x[ix] = int(x[ix], 16)
y = ... | 18 | 102 | 0.668168 | 120 | 666 | 3.65 | 0.475 | 0.073059 | 0.047945 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030686 | 0.168168 | 666 | 37 | 103 | 18 | 0.759928 | 0 | 0 | 0 | 0 | 0 | 0.116942 | 0.115442 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8be9e9cf119652eba7170cff83ed00fbd7393e3e | 1,783 | py | Python | Courses/HyperskillPython/Password Hacker/4.py | searayeah/sublime-snippets | deff53a06948691cd5e5d7dcfa85515ddd8fab0b | [
"MIT"
] | null | null | null | Courses/HyperskillPython/Password Hacker/4.py | searayeah/sublime-snippets | deff53a06948691cd5e5d7dcfa85515ddd8fab0b | [
"MIT"
] | null | null | null | Courses/HyperskillPython/Password Hacker/4.py | searayeah/sublime-snippets | deff53a06948691cd5e5d7dcfa85515ddd8fab0b | [
"MIT"
] | null | null | null | import json
import sys
import socket
import itertools
import string
args = sys.argv
letters = string.ascii_uppercase + string.ascii_lowercase + string.digits
def generator():
for letter in letters:
yield letter
def all_possible_word_cases(word):
return list(map(lambda x: "".join(x), itertools.prod... | 28.301587 | 117 | 0.617499 | 213 | 1,783 | 5.028169 | 0.384977 | 0.074697 | 0.074697 | 0.047619 | 0.325864 | 0.253968 | 0.194211 | 0.194211 | 0.194211 | 0.194211 | 0 | 0.007491 | 0.251262 | 1,783 | 62 | 118 | 28.758065 | 0.794757 | 0 | 0 | 0.133333 | 0 | 0.022222 | 0.132922 | 0.042625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.177778 | 0.111111 | 0.022222 | 0.288889 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8be9fb71aea70c0be9bae2aaeb355d5676dedf35 | 477 | py | Python | demisto_sdk/commands/common/content/tests/objects/root_objects/documentation/documentation_test.py | sturmianseq/demisto-sdk | 67ce7ee70ccd557d661e03a60469301c5cbcb9c0 | [
"MIT"
] | 42 | 2019-11-07T13:02:00.000Z | 2022-03-29T03:39:04.000Z | demisto_sdk/commands/common/content/tests/objects/root_objects/documentation/documentation_test.py | sturmianseq/demisto-sdk | 67ce7ee70ccd557d661e03a60469301c5cbcb9c0 | [
"MIT"
] | 1,437 | 2019-11-07T13:02:25.000Z | 2022-03-31T12:48:11.000Z | demisto_sdk/commands/common/content/tests/objects/root_objects/documentation/documentation_test.py | sturmianseq/demisto-sdk | 67ce7ee70ccd557d661e03a60469301c5cbcb9c0 | [
"MIT"
] | 46 | 2019-12-09T21:44:30.000Z | 2022-03-24T17:36:45.000Z | from demisto_sdk.commands.common.constants import DOCUMENTATION_DIR
from demisto_sdk.commands.common.content.objects.root_objects import \
Documentation
from demisto_sdk.commands.common.tools import src_root
TEST_DATA = src_root() / 'tests' / 'test_files'
TEST_CONTENT_REPO = TEST_DATA / 'content_slim'
DOC = TEST_C... | 34.071429 | 70 | 0.790356 | 66 | 477 | 5.424242 | 0.469697 | 0.092179 | 0.117318 | 0.184358 | 0.234637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1174 | 477 | 13 | 71 | 36.692308 | 0.850356 | 0 | 0 | 0 | 0 | 0 | 0.085954 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
473304c26d6f3bb7da78e68ccedd009a35797764 | 537 | py | Python | libsortvis/algos/cyclesort.py | tknuth/sortvis | 22b6713a46f560f33d63cf8620b57bfdabfd557e | [
"MIT"
] | 117 | 2015-01-30T18:03:38.000Z | 2022-02-21T23:54:42.000Z | libsortvis/algos/cyclesort.py | tknuth/sortvis | 22b6713a46f560f33d63cf8620b57bfdabfd557e | [
"MIT"
] | 5 | 2016-07-04T17:41:13.000Z | 2020-01-25T21:04:28.000Z | libsortvis/algos/cyclesort.py | tknuth/sortvis | 22b6713a46f560f33d63cf8620b57bfdabfd557e | [
"MIT"
] | 23 | 2015-03-06T05:15:59.000Z | 2021-12-19T20:00:51.000Z |
def cyclesort(lst):
for i in range(len(lst)):
if i != lst[i]:
n = i
while 1:
tmp = lst[int(n)]
if n != i:
lst[int(n)] = last_value
lst.log()
else:
lst[int(n)] = None
... | 23.347826 | 44 | 0.299814 | 55 | 537 | 2.854545 | 0.363636 | 0.152866 | 0.178344 | 0.089172 | 0.33121 | 0.33121 | 0.33121 | 0.33121 | 0.33121 | 0.33121 | 0 | 0.004673 | 0.60149 | 537 | 22 | 45 | 24.409091 | 0.728972 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4734329a140b585ba891fdf58e01315cf1ff08b7 | 4,390 | py | Python | asaplib/kde/density_estimation.py | BingqingCheng/ASAP | a92dd34eaa092dcbe46163e000ebd2ccee22f8ae | [
"MIT"
] | 74 | 2020-01-09T10:38:39.000Z | 2022-03-04T15:09:05.000Z | asaplib/kde/density_estimation.py | FelixWodaczek/ASAP | d34a064cd7e409ad8b5ae0dec4f1c0a621717773 | [
"MIT"
] | 31 | 2020-01-30T13:15:42.000Z | 2022-03-03T05:42:51.000Z | asaplib/kde/density_estimation.py | FelixWodaczek/ASAP | d34a064cd7e409ad8b5ae0dec4f1c0a621717773 | [
"MIT"
] | 14 | 2020-02-23T15:03:31.000Z | 2022-03-04T15:04:04.000Z | """
class and methods for performing kernel density estimation
"""
import numpy as np
from scipy.stats import gaussian_kde
from sklearn.neighbors import KernelDensity
class Kernel_Density_Base:
"""
Base class for performing kernel density estimation
"""
def __init__(self):
self.acronym = 'none'... | 35.12 | 122 | 0.632802 | 581 | 4,390 | 4.681583 | 0.282272 | 0.043015 | 0.050735 | 0.029412 | 0.320588 | 0.294118 | 0.245588 | 0.213235 | 0.213235 | 0.213235 | 0 | 0.0022 | 0.275171 | 4,390 | 124 | 123 | 35.403226 | 0.852608 | 0.489522 | 0 | 0.340426 | 0 | 0 | 0.059947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0.042553 | 0.06383 | 0.021277 | 0.446809 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
473980f32dd1633e344d3852a1e227656234def2 | 224 | py | Python | scripts/nslookup_script.py | penelopeom/capstone_prototype | b871343133e9d3f7dc77c98a437d4b4fa6da320d | [
"MIT"
] | null | null | null | scripts/nslookup_script.py | penelopeom/capstone_prototype | b871343133e9d3f7dc77c98a437d4b4fa6da320d | [
"MIT"
] | null | null | null | scripts/nslookup_script.py | penelopeom/capstone_prototype | b871343133e9d3f7dc77c98a437d4b4fa6da320d | [
"MIT"
] | null | null | null | import socket
def nslookup_func(address):
result =""
try:
result_list = socket.gethostbyaddr(address)
result += result_list[0]
except:
result += "NO RESULTS FOUND"
return result | 18.666667 | 51 | 0.611607 | 24 | 224 | 5.583333 | 0.666667 | 0.19403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.299107 | 224 | 12 | 52 | 18.666667 | 0.847134 | 0 | 0 | 0 | 0 | 0 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
473be3baaa587029a944d0f67b6d4f37fbc47be1 | 698 | py | Python | my_games/snake/lib/model/game.py | hsadler/learn-pygame | 66cccd0908048fc7686abdc2004d53a2045aa14c | [
"MIT"
] | null | null | null | my_games/snake/lib/model/game.py | hsadler/learn-pygame | 66cccd0908048fc7686abdc2004d53a2045aa14c | [
"MIT"
] | null | null | null | my_games/snake/lib/model/game.py | hsadler/learn-pygame | 66cccd0908048fc7686abdc2004d53a2045aa14c | [
"MIT"
] | null | null | null |
# game model
# - holds global game properties
class Game():
def __init__(self, config):
self.config = config
self.pygame = config.pygame
self.screen = self.pygame.display.set_mode(
(
self.config.SCREEN_PX_WIDTH,
self.config.SCREEN_PX_HEIGHT
)
)
self.clock = self.pygame.time.Clock()
self.... | 17.45 | 45 | 0.696275 | 97 | 698 | 4.865979 | 0.298969 | 0.084746 | 0.072034 | 0.076271 | 0.127119 | 0.127119 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190544 | 698 | 39 | 46 | 17.897436 | 0.835398 | 0.058739 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0 | 0.074074 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
475acc3280f55472da68cf82c7eac5eb9d821630 | 3,546 | py | Python | Utility/Torch/tests/test_Sparse.py | smithblack-0/Utility | 875ab69fffad1412174d9d0a1de70edc1fd64152 | [
"MIT"
] | null | null | null | Utility/Torch/tests/test_Sparse.py | smithblack-0/Utility | 875ab69fffad1412174d9d0a1de70edc1fd64152 | [
"MIT"
] | null | null | null | Utility/Torch/tests/test_Sparse.py | smithblack-0/Utility | 875ab69fffad1412174d9d0a1de70edc1fd64152 | [
"MIT"
] | null | null | null | import unittest
import torch
import torch_sparse
from Utility.Torch.Sparse import Parameter
class test_SparseParameter(unittest.TestCase):
def test_allocate(self):
""" Test whether the initializer works at reserving memory"""
default_parameter = Sparse.SparseParameter(13)
custom_shape_par... | 37.723404 | 108 | 0.690073 | 445 | 3,546 | 5.233708 | 0.267416 | 0.078145 | 0.051524 | 0.036067 | 0.276943 | 0.187205 | 0.072993 | 0.072993 | 0.039502 | 0.039502 | 0 | 0.021185 | 0.214608 | 3,546 | 94 | 109 | 37.723404 | 0.815081 | 0.038353 | 0 | 0.035088 | 0 | 0 | 0.064865 | 0 | 0 | 0 | 0 | 0 | 0.280702 | 0 | null | null | 0 | 0.070175 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
475f63c0b42dda520fdb69fab80788ef42b1644e | 373 | py | Python | auditlog/migrations/0002_auto_20180728_1015.py | Lewes/ecssweb | 62c332757c24d7edac52a04121d8b77eced783a1 | [
"MIT"
] | 4 | 2021-03-17T21:09:18.000Z | 2022-03-03T17:10:51.000Z | auditlog/migrations/0002_auto_20180728_1015.py | Lewes/ecssweb | 62c332757c24d7edac52a04121d8b77eced783a1 | [
"MIT"
] | 15 | 2018-08-21T19:01:06.000Z | 2022-03-11T23:29:26.000Z | auditlog/migrations/0002_auto_20180728_1015.py | Lewes/ecssweb | 62c332757c24d7edac52a04121d8b77eced783a1 | [
"MIT"
] | 2 | 2018-08-21T18:46:36.000Z | 2021-11-13T16:23:53.000Z | # Generated by Django 2.0.5 on 2018-07-28 09:15
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('auditlog', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='auditlog',
options={'permissions': (('view_... | 20.722222 | 79 | 0.595174 | 37 | 373 | 5.945946 | 0.783784 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069853 | 0.270777 | 373 | 17 | 80 | 21.941176 | 0.738971 | 0.120643 | 0 | 0 | 1 | 0 | 0.211656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4761719b5209c059686b689ed2d29fd7972fab37 | 209 | py | Python | lab4_ZHANG_ZHENG_YANG/Python/biolog/__init__.py | cvemeki/Computational-motor-control | cf02c77bff44ffdff63630c445b35b657a1d2b6c | [
"Apache-2.0"
] | null | null | null | lab4_ZHANG_ZHENG_YANG/Python/biolog/__init__.py | cvemeki/Computational-motor-control | cf02c77bff44ffdff63630c445b35b657a1d2b6c | [
"Apache-2.0"
] | null | null | null | lab4_ZHANG_ZHENG_YANG/Python/biolog/__init__.py | cvemeki/Computational-motor-control | cf02c77bff44ffdff63630c445b35b657a1d2b6c | [
"Apache-2.0"
] | null | null | null | """ Log module init including LOGGER and logstr """
from .log import Logger
LOGGER = Logger()
debug = LOGGER.debug
info = LOGGER.info
warning = LOGGER.warning
error = LOGGER.error
critical = LOGGER.critical
| 19 | 51 | 0.746411 | 28 | 209 | 5.571429 | 0.5 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 209 | 10 | 52 | 20.9 | 0.886364 | 0.205742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4766f6b4b1720f390bcd41abceb3778179594518 | 1,673 | py | Python | ipypublish/filters_pandoc/tests/test_jinja_filter.py | awesome-archive/ipypublish | 90027b35e849a127ea21cf3163889491b40a11d2 | [
"BSD-3-Clause"
] | null | null | null | ipypublish/filters_pandoc/tests/test_jinja_filter.py | awesome-archive/ipypublish | 90027b35e849a127ea21cf3163889491b40a11d2 | [
"BSD-3-Clause"
] | null | null | null | ipypublish/filters_pandoc/tests/test_jinja_filter.py | awesome-archive/ipypublish | 90027b35e849a127ea21cf3163889491b40a11d2 | [
"BSD-3-Clause"
] | null | null | null | from ipypublish.filters_pandoc.main import jinja_filter
from ipypublish.filters_pandoc.utils import create_ipub_meta
def test_basic():
out_str = jinja_filter(
"a", "rst", {}, {}
)
assert out_str == "a"
def test_reference():
out_str = jinja_filter(
"@label", "rst", {}, {}
)
... | 20.9125 | 72 | 0.557681 | 195 | 1,673 | 4.410256 | 0.225641 | 0.111628 | 0.102326 | 0.15814 | 0.569767 | 0.519767 | 0.519767 | 0.447674 | 0.447674 | 0.196512 | 0 | 0 | 0.27376 | 1,673 | 79 | 73 | 21.177215 | 0.707819 | 0.025105 | 0 | 0.245283 | 0 | 0 | 0.166974 | 0 | 0 | 0 | 0 | 0.012658 | 0.150943 | 1 | 0.150943 | false | 0 | 0.037736 | 0 | 0.188679 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
476acc5c36b5317141f9102c1237a2f338a53407 | 632 | py | Python | lib/mpdebug/dbgeng/__init__.py | clayne/syringe-1 | 4a431aa65c371a2018fca95145a3952ba802a609 | [
"BSD-2-Clause"
] | 25 | 2015-04-14T21:53:46.000Z | 2022-03-30T19:15:24.000Z | lib/mpdebug/dbgeng/__init__.py | clayne/syringe-1 | 4a431aa65c371a2018fca95145a3952ba802a609 | [
"BSD-2-Clause"
] | 5 | 2020-03-23T20:19:59.000Z | 2021-05-24T19:38:31.000Z | lib/mpdebug/dbgeng/__init__.py | clayne/syringe-1 | 4a431aa65c371a2018fca95145a3952ba802a609 | [
"BSD-2-Clause"
] | 7 | 2015-07-31T13:26:37.000Z | 2021-03-05T19:35:37.000Z | import _PyDbgEng
from . import host,breakpoint
def local(handle=0):
intf = _PyDbgEng.Create()
return host.dbgeng(intf, handle)
def remoteserver(remote):
intf = _PyDbgEng.Create()
handle = intf.ConnectProcessServer(remote)
return host.dbgeng(intf, handle)
def remote(remote):
# raise NotImplemen... | 28.727273 | 118 | 0.713608 | 81 | 632 | 5.407407 | 0.567901 | 0.082192 | 0.109589 | 0.136986 | 0.205479 | 0.13242 | 0 | 0 | 0 | 0 | 0 | 0.03071 | 0.175633 | 632 | 21 | 119 | 30.095238 | 0.809981 | 0.314873 | 0 | 0.266667 | 0 | 0 | 0.018779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
476fff56f2e9d0295474e505e27b0573043c23d6 | 200 | py | Python | server/uvicorn.conf.py | natebwangsut/python-react-app | 0a7ee04931359e1e0d1fae61b81221e8d42d8a4f | [
"MIT"
] | null | null | null | server/uvicorn.conf.py | natebwangsut/python-react-app | 0a7ee04931359e1e0d1fae61b81221e8d42d8a4f | [
"MIT"
] | 3 | 2021-09-01T19:42:18.000Z | 2022-02-17T21:43:53.000Z | server/uvicorn.conf.py | natebwangsut/python-react-app | 0a7ee04931359e1e0d1fae61b81221e8d42d8a4f | [
"MIT"
] | null | null | null | import multiprocessing
# Server socket
bind = "0.0.0.0:8000"
# Worker process
workers = multiprocessing.cpu_count()
# Web configuration
keepalive = 5
# Logging
errorlog = "-"
# loglevel = "error"
| 13.333333 | 37 | 0.715 | 24 | 200 | 5.916667 | 0.833333 | 0.042254 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053892 | 0.165 | 200 | 14 | 38 | 14.285714 | 0.796407 | 0.365 | 0 | 0 | 0 | 0 | 0.107438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
477f130a462c2e51cd2e9cf7690a975d24b716c0 | 273 | py | Python | Part 1/Chapter 6/exercise_6.8.py | kg55555/pypractice | 1867f001b3d2a7174ea00d7b9e2fa22e9f1877ef | [
"MIT"
] | null | null | null | Part 1/Chapter 6/exercise_6.8.py | kg55555/pypractice | 1867f001b3d2a7174ea00d7b9e2fa22e9f1877ef | [
"MIT"
] | null | null | null | Part 1/Chapter 6/exercise_6.8.py | kg55555/pypractice | 1867f001b3d2a7174ea00d7b9e2fa22e9f1877ef | [
"MIT"
] | null | null | null | pet1 = {'name': 'mr.bubbles', "type":'dog', "owner" : 'joe'}
pet2 = {'name': 'spot', "type":'cat', "owner" : 'bob'}
pet3 = {'name': 'chester', "type":'horse', "owner" : 'chloe'}
pets = [pet1, pet2, pet3]
for pet in pets:
print(pet['name'], pet['type'], pet['owner'])
| 30.333333 | 61 | 0.542125 | 37 | 273 | 4 | 0.567568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.153846 | 273 | 8 | 62 | 34.125 | 0.614719 | 0 | 0 | 0 | 0 | 0 | 0.347985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47860bb5d47bb13d62287d7255a2e6bc3c23eda9 | 2,497 | py | Python | shared/modules/map_product_module.py | fduthilleul/scap-security-guide | f9b67869600f6c20dcb0ba83801578cec1a51bba | [
"BSD-3-Clause"
] | null | null | null | shared/modules/map_product_module.py | fduthilleul/scap-security-guide | f9b67869600f6c20dcb0ba83801578cec1a51bba | [
"BSD-3-Clause"
] | null | null | null | shared/modules/map_product_module.py | fduthilleul/scap-security-guide | f9b67869600f6c20dcb0ba83801578cec1a51bba | [
"BSD-3-Clause"
] | null | null | null | import re
# SSG Makefile to official product name mapping
CHROMIUM = 'Google Chromium Browser'
FEDORA = 'Fedora'
FIREFOX = 'Mozilla Firefox'
JRE = 'Java Runtime Environment'
RHEL = 'Red Hat Enterprise Linux'
WEBMIN = 'Webmin'
DEBIAN = 'Debian'
UBUNTU = 'Ubuntu'
RHEVM = 'Red Hat Enterprise Virtualization Manager'
EAP =... | 30.084337 | 79 | 0.635162 | 287 | 2,497 | 5.439024 | 0.317073 | 0.086483 | 0.182575 | 0.026906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003761 | 0.254706 | 2,497 | 82 | 80 | 30.45122 | 0.835035 | 0.044453 | 0 | 0 | 0 | 0 | 0.231933 | 0.008824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.014706 | 0 | 0.279412 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4789c75a37aec847fe7860c76db8393db5c20cee | 1,320 | py | Python | Chapter02/Activity2.01/juggler/projectm/migrations/0001_initial.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 97 | 2021-03-01T12:54:30.000Z | 2022-03-28T02:57:26.000Z | Chapter02/Activity2.01/juggler/projectm/migrations/0001_initial.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 81 | 2020-08-27T04:56:04.000Z | 2022-03-12T00:53:40.000Z | Chapter02/Activity2.01/juggler/projectm/migrations/0001_initial.py | PacktPublishing/Web-Development-Projects-with-Django | 531bc4d58d614888cc81b7fd6f8ec859f5a65217 | [
"MIT"
] | 163 | 2020-12-25T14:38:38.000Z | 2022-03-30T10:31:40.000Z | # Generated by Django 3.0.2 on 2020-01-08 18:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
... | 37.714286 | 115 | 0.598485 | 139 | 1,320 | 5.568345 | 0.503597 | 0.041344 | 0.036176 | 0.056848 | 0.204134 | 0.204134 | 0.204134 | 0.204134 | 0.204134 | 0.204134 | 0 | 0.020683 | 0.267424 | 1,320 | 34 | 116 | 38.823529 | 0.779731 | 0.034091 | 0 | 0.37037 | 1 | 0 | 0.15868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
478dcc71506a4775bc7b7078fc8b3600d886910d | 652 | py | Python | leetcode/1005.py | zi-NaN/algorithm_exercise | 817916a62774145fe6387b715f76c5badbf99197 | [
"MIT"
] | null | null | null | leetcode/1005.py | zi-NaN/algorithm_exercise | 817916a62774145fe6387b715f76c5badbf99197 | [
"MIT"
] | null | null | null | leetcode/1005.py | zi-NaN/algorithm_exercise | 817916a62774145fe6387b715f76c5badbf99197 | [
"MIT"
] | 1 | 2018-11-21T05:14:07.000Z | 2018-11-21T05:14:07.000Z | '''
Author: ZHAO Zinan
Created: 10. March 2019
1005. Maximize Sum Of Array After K Negations
'''
class Solution:
def largestSumAfterKNegations(self, A: List[int], K: int) -> int:
A.sort()
for index, a in enumerate(A):
if a <= 0:
if K > 0:
... | 23.285714 | 70 | 0.369632 | 74 | 652 | 3.256757 | 0.527027 | 0.024896 | 0.033195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054839 | 0.52454 | 652 | 28 | 71 | 23.285714 | 0.722581 | 0.136503 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
478f5cca59d50816085983846f9692af4b2ae34e | 1,233 | py | Python | debian-11-datasafe3/storage-check.py | mijofa/bootstrap2020 | 38f557f4f0e72eaefe366f12f6adac3e2f9c9abd | [
"MIT"
] | null | null | null | debian-11-datasafe3/storage-check.py | mijofa/bootstrap2020 | 38f557f4f0e72eaefe366f12f6adac3e2f9c9abd | [
"MIT"
] | null | null | null | debian-11-datasafe3/storage-check.py | mijofa/bootstrap2020 | 38f557f4f0e72eaefe366f12f6adac3e2f9c9abd | [
"MIT"
] | 1 | 2022-01-10T05:01:51.000Z | 2022-01-10T05:01:51.000Z | #!/usr/bin/python3
# GOAL: rsnapshot will error when /srv/backup is 100% full, but
# we want a warning when it's NEARLY full.
#
# Usually we use nagios for that, but
# an NRPE backdoor just for that is yukky.
#
# NOTE: End users can query df at any time via SFTP.
# NOTE: we use SI not IEC because it'... | 35.228571 | 74 | 0.636659 | 184 | 1,233 | 4.206522 | 0.597826 | 0.05168 | 0.046512 | 0.036176 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019149 | 0.237632 | 1,233 | 34 | 75 | 36.264706 | 0.803191 | 0.427413 | 0 | 0 | 0 | 0 | 0.155844 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4791be7339b204d9310b7910900ced874bf3d476 | 687 | py | Python | problems/chapter06/Ysi/6-4.py | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | 1 | 2021-07-07T15:46:58.000Z | 2021-07-07T15:46:58.000Z | problems/chapter06/Ysi/6-4.py | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | 5 | 2021-06-05T14:16:41.000Z | 2021-07-10T07:08:28.000Z | problems/chapter06/Ysi/6-4.py | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | null | null | null | def main():
N, M = map(int, input().split())
a = list(map(int, input().split()))
A = a[-1]
def is_ok(mid):
last = a[0]
count = 1
for i in range(1,N):
if a[i] - last >= mid:
count += 1
last = a[i]
if count >= M... | 19.628571 | 39 | 0.365357 | 86 | 687 | 2.802326 | 0.406977 | 0.062241 | 0.091286 | 0.13278 | 0.141079 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023324 | 0.500728 | 687 | 35 | 40 | 19.628571 | 0.6793 | 0 | 0 | 0.071429 | 0 | 0 | 0.011628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0 | 0 | 0.178571 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47960c606fa20c836922cc5999b6521fbbd4ce60 | 2,717 | py | Python | class06.py | benjaminnow/njcssa-python-practice-probs | 7f55652e968257be676b5df88e8aff50459bd9bb | [
"BSD-3-Clause"
] | 1 | 2018-12-23T23:44:21.000Z | 2018-12-23T23:44:21.000Z | class06.py | benjaminnow/njcssa-python-practice-probs | 7f55652e968257be676b5df88e8aff50459bd9bb | [
"BSD-3-Clause"
] | 4 | 2019-01-12T19:10:48.000Z | 2019-02-24T01:34:05.000Z | class06.py | njcssa/njcssa-python-practice-probs | 731acc2d836430f3868e80365c0f296df0a53253 | [
"BSD-3-Clause"
] | 8 | 2018-12-16T16:10:22.000Z | 2019-03-16T02:36:45.000Z | #######################################################################################
# 6.1
# Make a while loop with a counter variable which counts up to 100
# This program should print the numbers 1-100 on the terminal.
#######################################################################################
# 6.2
... | 47.666667 | 91 | 0.549135 | 380 | 2,717 | 3.926316 | 0.4 | 0.016086 | 0.02681 | 0.018767 | 0.029491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03206 | 0.161943 | 2,717 | 57 | 92 | 47.666667 | 0.623188 | 0.739418 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
479b60ec43658e9dfb64911294693994056db5b7 | 1,757 | py | Python | src/qibo/tests/test_core_circuit_backpropagation.py | mofeing/qibo | 3eb675ba893bf35f103d41a8a64c86aae9cbf616 | [
"Apache-2.0"
] | 81 | 2020-09-04T10:54:40.000Z | 2021-05-17T13:20:38.000Z | src/qibo/tests/test_core_circuit_backpropagation.py | mofeing/qibo | 3eb675ba893bf35f103d41a8a64c86aae9cbf616 | [
"Apache-2.0"
] | 201 | 2020-08-24T08:41:33.000Z | 2021-05-18T12:23:19.000Z | src/qibo/tests/test_core_circuit_backpropagation.py | mofeing/qibo | 3eb675ba893bf35f103d41a8a64c86aae9cbf616 | [
"Apache-2.0"
] | 20 | 2021-06-11T18:13:09.000Z | 2022-03-28T07:32:09.000Z | """Tests Tensorflow's backpropagation when using `tf.Variable` parameters."""
import numpy as np
import pytest
from qibo import K, gates
from qibo.models import Circuit
def test_variable_backpropagation(backend):
if not K.supports_gradients:
pytest.skip("Backpropagation is not supported by {}.".format(K.n... | 34.45098 | 78 | 0.656232 | 270 | 1,757 | 4.185185 | 0.285185 | 0.022124 | 0.031858 | 0.023894 | 0.653097 | 0.59469 | 0.578761 | 0.516814 | 0.461947 | 0.461947 | 0 | 0.039202 | 0.20148 | 1,757 | 50 | 79 | 35.14 | 0.766215 | 0.144565 | 0 | 0.342857 | 0 | 0 | 0.058902 | 0 | 0 | 0 | 0 | 0.02 | 0.114286 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
479d3dc75560e8458a404ebfbc1628deee545fce | 3,567 | py | Python | scripts/chi-to-json.py | paperquest/paperquest.github.io | cbbaf5ee454d1b39122eb4d85422e03974271b6a | [
"MIT"
] | 14 | 2016-06-07T04:31:59.000Z | 2022-02-20T23:27:14.000Z | scripts/chi-to-json.py | paperquest/paperquest.github.io | cbbaf5ee454d1b39122eb4d85422e03974271b6a | [
"MIT"
] | null | null | null | scripts/chi-to-json.py | paperquest/paperquest.github.io | cbbaf5ee454d1b39122eb4d85422e03974271b6a | [
"MIT"
] | 1 | 2018-06-02T03:40:06.000Z | 2018-06-02T03:40:06.000Z | ################################################################################
#
# Parses a tab-separated dataset file of papers from CHI and UIST and
# turns it into JSON. Each row in the file has the columns:
#
# 1. conference
# 2. year
# 3. title
# 4. abstract
# 5. authors
# 6. doi
# 7. references
#
# where auth... | 34.970588 | 83 | 0.60499 | 498 | 3,567 | 4.295181 | 0.407631 | 0.02431 | 0.025245 | 0.014025 | 0.055166 | 0.023375 | 0.023375 | 0.023375 | 0.023375 | 0 | 0 | 0.032812 | 0.265209 | 3,567 | 101 | 84 | 35.316832 | 0.783289 | 0.429493 | 0 | 0 | 0 | 0 | 0.124764 | 0.013863 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025641 | 0.051282 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
479d5b939bdaf41c8ed67d6958bbe4b3b6316bd0 | 5,072 | py | Python | titta/Tobii_dummy.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | 25 | 2019-09-06T13:26:31.000Z | 2021-12-09T08:44:26.000Z | titta/Tobii_dummy.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | 13 | 2020-02-20T22:26:42.000Z | 2022-03-24T09:30:11.000Z | titta/Tobii_dummy.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | 9 | 2019-04-29T08:22:22.000Z | 2022-01-20T18:54:43.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 01 14:11:57 2017
@author: Marcus
"""
from psychopy import visual, core, event
import time
from titta import helpers_tobii as helpers
from threading import Thread
import numpy as np
class Connect(Thread):
"""
Create a class that simplifies life for peopl... | 29.149425 | 92 | 0.496057 | 525 | 5,072 | 4.638095 | 0.358095 | 0.022998 | 0.023409 | 0.011088 | 0.145791 | 0.145791 | 0.13963 | 0.13963 | 0.13963 | 0.115811 | 0 | 0.013298 | 0.40694 | 5,072 | 174 | 93 | 29.149425 | 0.79621 | 0.170741 | 0 | 0.116279 | 0 | 0 | 0.054127 | 0.01543 | 0 | 0 | 0 | 0.005747 | 0 | 1 | 0.209302 | false | 0 | 0.05814 | 0 | 0.325581 | 0.104651 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47ac0e6748006697cbe602687d1d29c98fc0a833 | 2,869 | py | Python | finalproject/projectapp/migrations/0001_initial.py | LiteWilliamNguyen/ITC285CAPSTONE-PROJECT-CLASS | 3e2519e341de614e194265210596eb62467b2b1f | [
"Apache-2.0"
] | null | null | null | finalproject/projectapp/migrations/0001_initial.py | LiteWilliamNguyen/ITC285CAPSTONE-PROJECT-CLASS | 3e2519e341de614e194265210596eb62467b2b1f | [
"Apache-2.0"
] | null | null | null | finalproject/projectapp/migrations/0001_initial.py | LiteWilliamNguyen/ITC285CAPSTONE-PROJECT-CLASS | 3e2519e341de614e194265210596eb62467b2b1f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2 on 2019-06-07 18:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | 40.985714 | 125 | 0.56396 | 260 | 2,869 | 6.080769 | 0.288462 | 0.068311 | 0.050601 | 0.066414 | 0.600253 | 0.514864 | 0.474383 | 0.474383 | 0.421885 | 0.421885 | 0 | 0.014421 | 0.299059 | 2,869 | 69 | 126 | 41.57971 | 0.771755 | 0.014988 | 0 | 0.419355 | 1 | 0 | 0.104462 | 0.014873 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048387 | 0 | 0.112903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47bed11112cdf971a49537b2216b7d4773ec8264 | 481 | py | Python | micoenv/__init__.py | adijunn/Rainbow_ddpg-fork | 424fa47cb3ba59476aa8991d33be08e7ebf64886 | [
"MIT"
] | 70 | 2019-01-04T13:42:56.000Z | 2022-03-25T02:55:59.000Z | micoenv/__init__.py | adijunn/Rainbow_ddpg-fork | 424fa47cb3ba59476aa8991d33be08e7ebf64886 | [
"MIT"
] | 17 | 2019-05-27T12:25:02.000Z | 2022-03-11T23:37:44.000Z | micoenv/__init__.py | adijunn/Rainbow_ddpg-fork | 424fa47cb3ba59476aa8991d33be08e7ebf64886 | [
"MIT"
] | 13 | 2019-01-10T16:02:35.000Z | 2021-04-10T22:46:16.000Z | from gym.envs.registration import register
register(
id="Pusher-v1",
entry_point="micoenv.mico_robot_env:MicoEnv",
kwargs={
"randomize_arm": True,
"randomize_camera": True,
"randomize_textures": True,
"randomize_objects": True,
"normal_textures": True,
"done_a... | 21.863636 | 49 | 0.600832 | 50 | 481 | 5.48 | 0.76 | 0.142336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011396 | 0.27027 | 481 | 21 | 50 | 22.904762 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.409186 | 0.06263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47c00b3e8a9256f02130f6cca137e7277bbcc990 | 2,775 | py | Python | btn_cache/api_types.py | AllSeeingEyeTolledEweSew/btn_cache | 79b079f267b05cbfc43d321f0a03e5c90ad244ba | [
"0BSD"
] | null | null | null | btn_cache/api_types.py | AllSeeingEyeTolledEweSew/btn_cache | 79b079f267b05cbfc43d321f0a03e5c90ad244ba | [
"0BSD"
] | null | null | null | btn_cache/api_types.py | AllSeeingEyeTolledEweSew/btn_cache | 79b079f267b05cbfc43d321f0a03e5c90ad244ba | [
"0BSD"
] | null | null | null | # Copyright (c) 2021 AllSeeingEyeTolledEweSew
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERC... | 19.405594 | 79 | 0.671712 | 309 | 2,775 | 6.003236 | 0.449838 | 0.021563 | 0.025876 | 0.029111 | 0.036658 | 0.036658 | 0 | 0 | 0 | 0 | 0 | 0.006686 | 0.245405 | 2,775 | 142 | 80 | 19.542254 | 0.879179 | 0.233874 | 0 | 0.188679 | 0 | 0 | 0.128727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04717 | 0 | 0.650943 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
47c0c3727bba1681a88d2a6eeded9f760bc10205 | 2,254 | py | Python | larcv/app/UBImageMod/test/test_croplarflow.py | NuTufts/larcv2 | bc0129c67b5fd1d1a4f17402732b12d14b1dd561 | [
"MIT"
] | null | null | null | larcv/app/UBImageMod/test/test_croplarflow.py | NuTufts/larcv2 | bc0129c67b5fd1d1a4f17402732b12d14b1dd561 | [
"MIT"
] | 1 | 2018-08-31T15:37:21.000Z | 2018-08-31T15:37:21.000Z | larcv/app/UBImageMod/test/test_croplarflow.py | NuTufts/larcv2 | bc0129c67b5fd1d1a4f17402732b12d14b1dd561 | [
"MIT"
] | 1 | 2018-06-07T07:34:22.000Z | 2018-06-07T07:34:22.000Z | import ROOT as rt
from larcv import larcv
import sys
sys.argv.append("-b")
#superafile = "/media/hdd2/taritree/larflow/xfer/larcv_5477923_0.root"
superafile = "../../../../../testdata/larcv_5482426_95.root"
io = larcv.IOManager(larcv.IOManager.kBOTH)
io.add_in_file( superafile )
io.set_out_file( "baka.root" )
io.ini... | 22.316832 | 73 | 0.714286 | 232 | 2,254 | 6.823276 | 0.508621 | 0.031586 | 0.016425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021654 | 0.098492 | 2,254 | 100 | 74 | 22.54 | 0.757382 | 0.117569 | 0 | 0.054054 | 0 | 0 | 0.548208 | 0.133266 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040541 | null | null | 0.067568 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47cdbb483ac43addc4ac6cdbc2adde9c5896feb6 | 4,198 | py | Python | impede-app/server/py/common_filters.py | ThatSnail/impede | 126a85a4efc6d6699a383b86ffcef35743cafb33 | [
"MIT"
] | 1 | 2016-02-01T22:54:02.000Z | 2016-02-01T22:54:02.000Z | impede-app/server/py/common_filters.py | ThatSnail/impede | 126a85a4efc6d6699a383b86ffcef35743cafb33 | [
"MIT"
] | null | null | null | impede-app/server/py/common_filters.py | ThatSnail/impede | 126a85a4efc6d6699a383b86ffcef35743cafb33 | [
"MIT"
] | null | null | null |
""" Module containing classes to generate common filters.
NOTE THAT ALL FILTERS ASSUME HIGH INPUT IMPEDANCE!!
"""
from math import pi
from graph import Node, Edge, Graph
from resistor import Resistor
from capacitor import Capacitor
from opamp import Opamp
from filter import Filter
class LowPassFilter(object):
... | 31.096296 | 83 | 0.623392 | 533 | 4,198 | 4.778612 | 0.155722 | 0.066745 | 0.045936 | 0.044759 | 0.63722 | 0.577542 | 0.499411 | 0.454653 | 0.454653 | 0.394582 | 0 | 0.014159 | 0.27656 | 4,198 | 134 | 84 | 31.328358 | 0.824498 | 0.223916 | 0 | 0.396825 | 1 | 0 | 0.010523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.047619 | 0.095238 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47d10455e8ed1690dfa715c751fcda9c236b2408 | 1,744 | py | Python | tests/test_lifecycle.py | thehq/python-wamptest | 4830afae50b70a0bd6ccd147ad9c09e9c1237973 | [
"MIT"
] | null | null | null | tests/test_lifecycle.py | thehq/python-wamptest | 4830afae50b70a0bd6ccd147ad9c09e9c1237973 | [
"MIT"
] | null | null | null | tests/test_lifecycle.py | thehq/python-wamptest | 4830afae50b70a0bd6ccd147ad9c09e9c1237973 | [
"MIT"
] | null | null | null | import unittest
import wamptest
from autobahn.wamp.exception import ApplicationError
class MainLifecycleTests(unittest.TestCase):
class ExampleTestCase(wamptest.TestCase):
_setup_class_count = 0
_setup_count = 0
_teardown_count = 0
_teardown_class_count = 0
# TEST OVERRI... | 26.830769 | 71 | 0.613532 | 185 | 1,744 | 5.518919 | 0.27027 | 0.058766 | 0.044074 | 0.043095 | 0.203722 | 0.135162 | 0 | 0 | 0 | 0 | 0 | 0.013969 | 0.302179 | 1,744 | 64 | 72 | 27.25 | 0.824979 | 0.007454 | 0 | 0.106383 | 0 | 0 | 0.010411 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 1 | 0.212766 | false | 0 | 0.06383 | 0 | 0.319149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47dd094a0f752e20721c10cfffb3e1deb5958e6e | 390 | py | Python | 29 Execution_Time/time123.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | 3 | 2021-05-08T13:11:41.000Z | 2021-05-14T02:43:20.000Z | 29 Execution_Time/time123.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | null | null | null | 29 Execution_Time/time123.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | null | null | null | import time
initial = time.time()
#print(initial)
k = 0
while(k<10):
print("This is sandy program")
k+=1
print("while loop execution time: ", time.time() - initial, "Seconds")
initial2 = time.time()
for i in range(1000000):
print("T")
print("for loop execution time: ", time.time() - initial2, "Seconds")
... | 22.941176 | 70 | 0.676923 | 56 | 390 | 4.714286 | 0.446429 | 0.212121 | 0.098485 | 0.159091 | 0.189394 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039275 | 0.151282 | 390 | 17 | 71 | 22.941176 | 0.758308 | 0.035897 | 0 | 0 | 0 | 0 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.384615 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47f4d008a7f3ab9a478a2a5a99d1231336817c38 | 2,131 | py | Python | components/tweetcard.py | jgarabedian/blm-twitter | e2a7fce01f73803d14e58cfef00097c854088d5e | [
"MIT"
] | 1 | 2022-01-07T20:07:28.000Z | 2022-01-07T20:07:28.000Z | components/tweetcard.py | jgarabedian/blm-twitter | e2a7fce01f73803d14e58cfef00097c854088d5e | [
"MIT"
] | null | null | null | components/tweetcard.py | jgarabedian/blm-twitter | e2a7fce01f73803d14e58cfef00097c854088d5e | [
"MIT"
] | null | null | null | import dash_html_components as html
import dash_bootstrap_components as dbc
import pandas as pd
def create_deck(df: pd.DataFrame, city: str) -> html.Div:
"""
Create a deck of tweets
:param df: dataframe to get tweets of
:param city: string of city to filter on
:return: list of child elements
"... | 33.825397 | 99 | 0.386673 | 163 | 2,131 | 4.895706 | 0.453988 | 0.052632 | 0.080201 | 0.093985 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.533083 | 2,131 | 62 | 100 | 34.370968 | 0.80201 | 0.062881 | 0 | 0.26 | 0 | 0 | 0.134078 | 0.041138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.06 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47f83ea29ac5990f4f6801dbd3a308425c405ecf | 7,416 | py | Python | lib/semeval_to_R_input.py | cltl/WSD_error_analysis | a53a781b1f4fa0c52cf4389c7b14599b840d0f87 | [
"Apache-2.0"
] | 1 | 2016-08-12T05:14:26.000Z | 2016-08-12T05:14:26.000Z | lib/semeval_to_R_input.py | cltl/WSD_error_analysis | a53a781b1f4fa0c52cf4389c7b14599b840d0f87 | [
"Apache-2.0"
] | null | null | null | lib/semeval_to_R_input.py | cltl/WSD_error_analysis | a53a781b1f4fa0c52cf4389c7b14599b840d0f87 | [
"Apache-2.0"
] | null | null | null | #import built-in modules
import os
import cPickle
from collections import defaultdict
#installed module or modules in this folder
from lxml import etree
import utils
class Semeval2R():
'''
using the global variables defined in ../logistic_regression.sh
(1) a csv file is generated based on those settings.
... | 34.816901 | 87 | 0.486111 | 722 | 7,416 | 4.81856 | 0.250693 | 0.023283 | 0.022995 | 0.028744 | 0.048002 | 0.022995 | 0 | 0 | 0 | 0 | 0 | 0.007082 | 0.428803 | 7,416 | 213 | 88 | 34.816901 | 0.814212 | 0.069849 | 0 | 0.033613 | 0 | 0 | 0.046634 | 0.004015 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008403 | 0.042017 | null | null | 0.05042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a00ab52797e150be97c83b2db891405a6c1f7b2 | 6,290 | py | Python | Gradebook/Gdata.py | KyleBenson/AGrader | 0d752ec78cd0edd21584ac39bde4802c2f2b4584 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2016-01-09T01:02:31.000Z | 2016-01-09T01:02:31.000Z | Gradebook/Gdata.py | KyleBenson/AGrader | 0d752ec78cd0edd21584ac39bde4802c2f2b4584 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | Gradebook/Gdata.py | KyleBenson/AGrader | 0d752ec78cd0edd21584ac39bde4802c2f2b4584 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | # Gdata Gradebook connector class
# @author: Kyle Benson
# (c) Kyle Benson 2012
from AGrader.Gradebook.BaseGradebook import BaseGradebook
from threading import Thread
# defaults that don't really do anything, just serve as flags to show the values are unset
DEFAULT_USERNAME='some_user@gmail.com'
DEFAULT_SPREADSHEET='... | 38.82716 | 135 | 0.597615 | 716 | 6,290 | 5.174581 | 0.347765 | 0.021053 | 0.02915 | 0.022942 | 0.074494 | 0.034548 | 0.02834 | 0.020513 | 0 | 0 | 0 | 0.003484 | 0.315421 | 6,290 | 161 | 136 | 39.068323 | 0.856944 | 0.214785 | 0 | 0.112245 | 0 | 0 | 0.109353 | 0.005755 | 0 | 0 | 0 | 0.012422 | 0 | 1 | 0.05102 | false | 0.040816 | 0.040816 | 0 | 0.132653 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a053d08d5acec06c3e15333eb1bd739f083635b | 304 | py | Python | setup.py | AlexandrePicosson/helm-doc | 6bef2683919ff86af03135b5423070a209af0822 | [
"MIT"
] | null | null | null | setup.py | AlexandrePicosson/helm-doc | 6bef2683919ff86af03135b5423070a209af0822 | [
"MIT"
] | null | null | null | setup.py | AlexandrePicosson/helm-doc | 6bef2683919ff86af03135b5423070a209af0822 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="helm-doc",
version="0.1.0",
py_modules=[
"helmdoc",
],
package=find_packages(),
install_requires=["wheel", "Click", "pyyaml"],
entry_points="""
[console_scripts]
helm-doc=helmdoc:cli
""",
)
| 19 | 50 | 0.582237 | 33 | 304 | 5.181818 | 0.787879 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.253289 | 304 | 15 | 51 | 20.266667 | 0.740088 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a08d53d7a6c2d950af0a0b94336a564b9bc1a27 | 631 | py | Python | PnfChartGen/Parameters.py | kncsolutions/dhelm-pnf-chart-generator | 86011dadd8451551c802ab45ae4031834dec973c | [
"Apache-2.0"
] | 4 | 2019-09-11T08:14:33.000Z | 2022-02-28T17:51:51.000Z | PnfChartGen/Parameters.py | kncsolutions/dhelm-pnf-chart-generator | 86011dadd8451551c802ab45ae4031834dec973c | [
"Apache-2.0"
] | null | null | null | PnfChartGen/Parameters.py | kncsolutions/dhelm-pnf-chart-generator | 86011dadd8451551c802ab45ae4031834dec973c | [
"Apache-2.0"
] | 5 | 2020-05-02T18:33:32.000Z | 2022-01-17T04:17:57.000Z | # -*- coding: utf-8 -*-
"""
**Parameters.py**
- Copyright (c) 2019, KNC Solutions Private Limited.
- License: 'Apache License, Version 2.0'.
- version: 1.0.0
"""
import pandas as pd
"""
"""
class DataSource:
GLOBAL_DATA_FEED = 'gfeed'
QUANDL = 'quandl'
ZERODHA = 'zerodha'
class EXCHNA... | 15.390244 | 56 | 0.602219 | 75 | 631 | 4.92 | 0.626667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021231 | 0.253566 | 631 | 40 | 57 | 15.775 | 0.762208 | 0.240887 | 0 | 0 | 0 | 0 | 0.147651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9a0aa20e521ba9843ca18cde7831d40287411a95 | 1,914 | py | Python | app/cogs/bridge.py | AL0YSI0US/discord-research-bot | ced03574c04f70dd471cbb9276e03b674011ee5e | [
"MIT"
] | 7 | 2021-06-17T21:34:08.000Z | 2021-08-19T06:01:11.000Z | app/cogs/bridge.py | metagov/discord-research-bot | d375f909028deb1739e08f42d26ee019728b1c13 | [
"MIT"
] | null | null | null | app/cogs/bridge.py | metagov/discord-research-bot | d375f909028deb1739e08f42d26ee019728b1c13 | [
"MIT"
] | 2 | 2021-08-19T05:51:10.000Z | 2021-08-22T03:11:38.000Z | from helpers import message_to_embed
from typing import Generator, Optional
from discord.channel import TextChannel
from discord.ext import commands
from database import is_admin, db
import discord
class BridgeCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
@commands... | 35.444444 | 80 | 0.665099 | 255 | 1,914 | 4.87451 | 0.309804 | 0.090105 | 0.051488 | 0.074014 | 0.104586 | 0.037007 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 1,914 | 53 | 81 | 36.113208 | 0.856552 | 0.029781 | 0 | 0 | 0 | 0 | 0.017953 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.025641 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a115fad9d934849ef1517c670714922d49176de | 8,220 | py | Python | vortexasdk/endpoints/vessel_availability_result.py | V0RT3X4/python-sdk | 4cffae83b90a58a56f1a534057fa1ca1c8671e05 | [
"Apache-2.0"
] | 9 | 2019-11-13T17:14:55.000Z | 2019-11-18T16:06:13.000Z | vortexasdk/endpoints/vessel_availability_result.py | VorTECHsa/python-sdk | d85aabd8d9843e4d04d857360492bea002c2b24b | [
"Apache-2.0"
] | 114 | 2020-01-08T11:08:24.000Z | 2022-03-30T16:42:23.000Z | vortexasdk/endpoints/vessel_availability_result.py | V0RT3X4/python-sdk | 4cffae83b90a58a56f1a534057fa1ca1c8671e05 | [
"Apache-2.0"
] | 6 | 2020-05-28T00:09:02.000Z | 2022-03-14T03:52:44.000Z | import functools
import os
from multiprocessing.pool import Pool
from typing import List
from vortexasdk.api.vessel_availability import VesselAvailability
import pandas as pd
from vortexasdk.api.entity_flattening import convert_to_flat_dict
from vortexasdk.api.search_result import Result
from vortexasdk.result_conver... | 37.027027 | 135 | 0.613382 | 869 | 8,220 | 5.506329 | 0.176064 | 0.144201 | 0.249948 | 0.103657 | 0.168443 | 0.142947 | 0.142111 | 0.142111 | 0.142111 | 0.13187 | 0 | 0.024016 | 0.285766 | 8,220 | 221 | 136 | 37.19457 | 0.791007 | 0.657908 | 0 | 0 | 0 | 0 | 0.206679 | 0.119093 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.238095 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.