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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5bd7df91b4668904964e69e486f54f6977162982 | 2,300 | py | Python | tick2ohlc.py | nu11ptr/tick2ohlc | b9cc8cc148533dc4feb9c76aaeb7896600c53873 | [
"BSD-3-Clause"
] | 1 | 2021-10-19T03:10:33.000Z | 2021-10-19T03:10:33.000Z | tick2ohlc.py | nu11ptr/tick2ohlc | b9cc8cc148533dc4feb9c76aaeb7896600c53873 | [
"BSD-3-Clause"
] | null | null | null | tick2ohlc.py | nu11ptr/tick2ohlc | b9cc8cc148533dc4feb9c76aaeb7896600c53873 | [
"BSD-3-Clause"
] | null | null | null | import pandas as pd
import sys
# NOTE: Each list below must be divisible by last entry of prev list
# (15 by 5, 30 by 15, 1D by 6H, etc.)
_UNITS = [
["1min"],
["5min"],
["15min"],
["30min"],
["1H"],
["4H", "6H"],
["1D"],
["3D", "1W", "1M"],
]
_DATE_FORMAT = "%m/%d/%Y"
_TIME_FORMAT = "%H... | 27.380952 | 83 | 0.563913 | 305 | 2,300 | 4.088525 | 0.429508 | 0.060144 | 0.02085 | 0.027265 | 0.032077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016275 | 0.278696 | 2,300 | 83 | 84 | 27.710843 | 0.735383 | 0.126957 | 0 | 0.03125 | 0 | 0 | 0.1915 | 0.0145 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.03125 | 0.015625 | 0.109375 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bd87c7f3cf4dbb87910b47eb4c9320d786e3c84 | 3,131 | py | Python | promoterz/representation/chromosome.py | emillj/gekkoJaponicus | d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7 | [
"MIT"
] | null | null | null | promoterz/representation/chromosome.py | emillj/gekkoJaponicus | d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7 | [
"MIT"
] | null | null | null | promoterz/representation/chromosome.py | emillj/gekkoJaponicus | d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7 | [
"MIT"
] | 1 | 2021-11-29T20:18:25.000Z | 2021-11-29T20:18:25.000Z | #!/bin/python
from deap import base
from deap import creator
from deap import tools
from copy import deepcopy
import random
from .. import functions
getPromoterFromMap = lambda x: [x[z] for z in list(x.keys())]
def constructPhenotype(stratSettings, chrconf, Individue):
Settings = {}
GeneSize=2
R = lamb... | 30.696078 | 94 | 0.661131 | 344 | 3,131 | 5.982558 | 0.31686 | 0.036443 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010713 | 0.224848 | 3,131 | 101 | 95 | 31 | 0.837248 | 0.023315 | 0 | 0 | 0 | 0 | 0.028497 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 1 | 0.086957 | false | 0 | 0.086957 | 0 | 0.26087 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bd912416252f099d311b6a7bf71cbb0a03fb0aa | 1,124 | py | Python | Python/esys/lsm/vis/vtk/pointExtractor.py | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | Python/esys/lsm/vis/vtk/pointExtractor.py | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | Python/esys/lsm/vis/vtk/pointExtractor.py | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | #############################################################
## ##
## Copyright (c) 2003-2017 by The University of Queensland ##
## Centre for Geoscience Computing ##
## http://earth.uq.edu.au/centre-geoscience-computing ##
## ... | 40.142857 | 64 | 0.47242 | 88 | 1,124 | 5.943182 | 0.670455 | 0.072658 | 0.061185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016021 | 0.33363 | 1,124 | 27 | 65 | 41.62963 | 0.682243 | 0.341637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bd9266ab2b8b9521255499e10166243811219e3 | 2,266 | py | Python | modules/images/module_slap.py | Fogapod/KiwiBot | 49743118661abecaab86388cb94ff8a99f9011a8 | [
"MIT"
] | 18 | 2018-05-25T08:50:12.000Z | 2021-10-04T07:13:09.000Z | modules/images/module_slap.py | Fogapod/BotMyBot | 49743118661abecaab86388cb94ff8a99f9011a8 | [
"MIT"
] | 4 | 2018-10-20T21:10:38.000Z | 2019-06-25T13:12:07.000Z | modules/images/module_slap.py | Fogapod/BotMyBot | 49743118661abecaab86388cb94ff8a99f9011a8 | [
"MIT"
] | 6 | 2018-10-20T21:06:24.000Z | 2021-11-08T05:51:14.000Z | from objects.modulebase import ModuleBase
import discord
from io import BytesIO
from PIL import Image
from PIL.ImageOps import mirror
from utils.funcs import find_image
class Module(ModuleBase):
usage_doc = '{prefix}{aliases} [image]'
short_doc = 'Makes a slap meme'
long_doc = (
'Flags:\n'
... | 27.975309 | 85 | 0.566637 | 274 | 2,266 | 4.613139 | 0.416058 | 0.031646 | 0.033228 | 0.030063 | 0.099684 | 0.099684 | 0.099684 | 0.099684 | 0.099684 | 0.099684 | 0 | 0.019808 | 0.309356 | 2,266 | 80 | 86 | 28.325 | 0.787859 | 0 | 0 | 0.033333 | 0 | 0.016667 | 0.124007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.1 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bdaca6657ffcf8af132b8355ef2a3c0fd26d275 | 308 | py | Python | tests/test_helpers.py | pyapp-org/pyapp.aiosmtplib | f928a7eb838b041d279d974f7cb555964764a410 | [
"BSD-3-Clause"
] | null | null | null | tests/test_helpers.py | pyapp-org/pyapp.aiosmtplib | f928a7eb838b041d279d974f7cb555964764a410 | [
"BSD-3-Clause"
] | 20 | 2020-07-31T05:07:07.000Z | 2022-02-11T19:02:03.000Z | tests/test_helpers.py | pyapp-org/pyapp.aiosmtplib | f928a7eb838b041d279d974f7cb555964764a410 | [
"BSD-3-Clause"
] | null | null | null | from unittest.mock import Mock
from pyapp_ext.aiosmtplib import helpers
class TestEmail:
def test_init(self, monkeypatch):
mock_factory = Mock()
monkeypatch.setattr(helpers, "get_client", mock_factory)
helpers.Email(name="foo")
mock_factory.assert_called_with("foo")
| 22 | 64 | 0.707792 | 38 | 308 | 5.526316 | 0.657895 | 0.157143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201299 | 308 | 13 | 65 | 23.692308 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bdc283f9a85f238ab321674c1684e85da942ecb | 1,444 | py | Python | pywizlight/tests/test_bulb_light_strip_1_21_4.py | mikemakaroff/pywizlight | 0b32b917a064d9ca1be0ce9fb24ea68ce89993ed | [
"MIT"
] | 1 | 2022-03-30T22:42:51.000Z | 2022-03-30T22:42:51.000Z | pywizlight/tests/test_bulb_light_strip_1_21_4.py | mikemakaroff/pywizlight | 0b32b917a064d9ca1be0ce9fb24ea68ce89993ed | [
"MIT"
] | null | null | null | pywizlight/tests/test_bulb_light_strip_1_21_4.py | mikemakaroff/pywizlight | 0b32b917a064d9ca1be0ce9fb24ea68ce89993ed | [
"MIT"
] | null | null | null | """Tests for the Bulb API with a light strip."""
from typing import AsyncGenerator
import pytest
from pywizlight import PilotBuilder, wizlight
from pywizlight.bulblibrary import BulbClass, BulbType, Features, KelvinRange
from pywizlight.tests.fake_bulb import startup_bulb
@pytest.fixture()
async def light_strip() -... | 32.088889 | 85 | 0.701524 | 195 | 1,444 | 5.010256 | 0.441026 | 0.092119 | 0.046059 | 0.038895 | 0.13306 | 0.079836 | 0 | 0 | 0 | 0 | 0 | 0.036689 | 0.188366 | 1,444 | 44 | 86 | 32.818182 | 0.796928 | 0.029086 | 0 | 0.060606 | 0 | 0 | 0.041953 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0 | false | 0 | 0.151515 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bdc65f7f7f6d8254722d6ccff4a26998def2d9d | 47,068 | py | Python | casim/casim.py | pdebuyl/cancer_sim | 305492d5108e1fb50783e4f13ddf2e1cf5b08976 | [
"MIT"
] | 1 | 2022-02-16T03:34:44.000Z | 2022-02-16T03:34:44.000Z | casim/casim.py | pdebuyl/cancer_sim | 305492d5108e1fb50783e4f13ddf2e1cf5b08976 | [
"MIT"
] | 12 | 2020-03-16T20:59:21.000Z | 2020-09-18T08:41:09.000Z | casim/casim.py | pdebuyl/cancer_sim | 305492d5108e1fb50783e4f13ddf2e1cf5b08976 | [
"MIT"
] | 3 | 2020-09-16T12:41:19.000Z | 2021-03-11T23:19:24.000Z | # -*- coding: utf-8 -*-
#!/usr/bin/env python3
__author__ = 'Luka Opasic, MD'
__email__ = 'opasic@evolbio.mpg.de'
__version__ = '1.1.0'
from argparse import ArgumentParser
from operator import itemgetter
from random import shuffle
from scipy.sparse import lil_matrix
from time import sleep, time
from timeit import def... | 39.028192 | 225 | 0.640754 | 5,867 | 47,068 | 4.914948 | 0.123402 | 0.022472 | 0.018865 | 0.015259 | 0.353759 | 0.26134 | 0.196456 | 0.165661 | 0.144264 | 0.110522 | 0 | 0.008574 | 0.27643 | 47,068 | 1,205 | 226 | 39.060581 | 0.838124 | 0.287286 | 0 | 0.156986 | 0 | 0.00471 | 0.095262 | 0.003671 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103611 | false | 0 | 0.026688 | 0.031397 | 0.199372 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bde1f82acb41df2e414dc677ad1aaaf4d992610 | 7,296 | py | Python | asar_pi_applications/asar_web_server/asar_web_server/asar_web_server.py | ssnover/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 3 | 2021-01-07T07:46:50.000Z | 2021-11-17T10:48:39.000Z | asar_pi_applications/asar_web_server/asar_web_server/asar_web_server.py | ssnover/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 3 | 2018-02-19T20:30:30.000Z | 2018-04-20T23:25:29.000Z | asar_pi_applications/asar_web_server/asar_web_server/asar_web_server.py | ssnover95/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 1 | 2021-01-07T07:46:52.000Z | 2021-01-07T07:46:52.000Z | #!/usr/bin/python3
"""
file: app.py
purpose: Holds the view for the Flask web application and handling of the
database.
"""
from .gui_constants import GUI_CONSTANTS, DANGER, ENVIRONMENT, STATE
import datetime
from flask import Flask, request, session, g, redirect, url_for, abort, \
render_temp... | 30.915254 | 174 | 0.626234 | 865 | 7,296 | 5.117919 | 0.284393 | 0.033883 | 0.022137 | 0.031624 | 0.244635 | 0.181161 | 0.171222 | 0.139598 | 0.139598 | 0.120172 | 0 | 0.010095 | 0.253289 | 7,296 | 235 | 175 | 31.046809 | 0.802496 | 0.173383 | 0 | 0.177778 | 0 | 0 | 0.247273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118519 | false | 0 | 0.051852 | 0 | 0.259259 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5be18ef0ed38e04271a5246710a5e01dc9b41ee1 | 3,642 | py | Python | raster_aggregation/admin.py | geodesign/django-raster-aggregation | 2a4c155071f1f05923819da78f5f854b212b6926 | [
"BSD-3-Clause"
] | 9 | 2016-07-03T21:07:09.000Z | 2019-02-19T01:26:00.000Z | raster_aggregation/admin.py | geodesign/django-raster-aggregation | 2a4c155071f1f05923819da78f5f854b212b6926 | [
"BSD-3-Clause"
] | 2 | 2017-06-11T23:12:33.000Z | 2018-04-03T22:33:15.000Z | raster_aggregation/admin.py | geodesign/django-raster-aggregation | 2a4c155071f1f05923819da78f5f854b212b6926 | [
"BSD-3-Clause"
] | 6 | 2016-12-14T04:53:43.000Z | 2021-08-24T14:32:46.000Z | from __future__ import unicode_literals
from raster.models import RasterLayer
from django import forms
from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
from django.contrib.gis import admin
from django.http import HttpResponseRedirect
from django.shortcuts import render
from .models import AggregationAre... | 33.109091 | 102 | 0.661999 | 339 | 3,642 | 6.955752 | 0.40413 | 0.030534 | 0.028838 | 0.016964 | 0.057676 | 0.057676 | 0.027142 | 0 | 0 | 0 | 0 | 0.00037 | 0.257002 | 3,642 | 109 | 103 | 33.412844 | 0.871027 | 0.043383 | 0 | 0.093333 | 0 | 0 | 0.140179 | 0.015287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.12 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5be40c75d2881dfa910d5ccbe37999de02fdbebd | 3,043 | py | Python | differential-privacy-library-main/tests/tools/test_histogram2d.py | gonzalo-munillag/Exponential_Randomised_Response | 1ae2c867d77c6e92f1df0bb7120862e4f9aa15e4 | [
"MIT"
] | 597 | 2019-06-19T11:26:50.000Z | 2022-03-30T13:23:42.000Z | differential-privacy-library-main/tests/tools/test_histogram2d.py | gonzalo-munillag/Exponential_Randomised_Response | 1ae2c867d77c6e92f1df0bb7120862e4f9aa15e4 | [
"MIT"
] | 45 | 2019-06-20T08:03:31.000Z | 2022-03-30T14:02:02.000Z | differential-privacy-library-main/tests/tools/test_histogram2d.py | gonzalo-munillag/Exponential_Randomised_Response | 1ae2c867d77c6e92f1df0bb7120862e4f9aa15e4 | [
"MIT"
] | 163 | 2019-06-19T23:56:19.000Z | 2022-03-26T23:59:24.000Z | import numpy as np
from unittest import TestCase
from diffprivlib.accountant import BudgetAccountant
from diffprivlib.tools.histograms import histogram2d
from diffprivlib.utils import global_seed, PrivacyLeakWarning, BudgetError
class TestHistogram2d(TestCase):
def test_no_params(self):
x = np.array([1, ... | 37.109756 | 104 | 0.564574 | 462 | 3,043 | 3.616883 | 0.151515 | 0.075404 | 0.093357 | 0.048474 | 0.614602 | 0.562537 | 0.505087 | 0.499102 | 0.488929 | 0.488929 | 0 | 0.092082 | 0.261255 | 3,043 | 81 | 105 | 37.567901 | 0.651246 | 0.033848 | 0 | 0.491803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213115 | 1 | 0.147541 | false | 0 | 0.081967 | 0 | 0.245902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5be50f9d777ded17c518467854d968e5956e5137 | 11,453 | py | Python | rl_environments/RLBanditEnv.py | joedaws/lde2021 | ece9857667bab8691cf617ed56af561676945b60 | [
"MIT"
] | null | null | null | rl_environments/RLBanditEnv.py | joedaws/lde2021 | ece9857667bab8691cf617ed56af561676945b60 | [
"MIT"
] | null | null | null | rl_environments/RLBanditEnv.py | joedaws/lde2021 | ece9857667bab8691cf617ed56af561676945b60 | [
"MIT"
] | null | null | null |
import gym
import numpy as np
import torch
import stable_baselines3 as sb3
from stable_baselines3.common.evaluation import evaluate_policy
from stable_baselines3.common.env_util import make_vec_env
import pybullet_envs
import pandas as pd
import pickle
import os
import matplotlib.pyplot as plt
import seaborn as sns
s... | 42.735075 | 97 | 0.611805 | 1,464 | 11,453 | 4.614754 | 0.199454 | 0.03212 | 0.014654 | 0.019982 | 0.26717 | 0.223061 | 0.210036 | 0.181616 | 0.171551 | 0.130551 | 0 | 0.011357 | 0.269624 | 11,453 | 267 | 98 | 42.895131 | 0.796294 | 0.089671 | 0 | 0.24186 | 0 | 0 | 0.071616 | 0.00962 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102326 | false | 0 | 0.055814 | 0 | 0.209302 | 0.051163 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bedc842eb7b3b97c410dd8ff5e9293a731be138 | 12,016 | py | Python | natural_selection/genetic_programs/__init__.py | Zipfian-Science/natural-selection | 5bf04142a73f39a83e86ad0eb53ba0fecb365864 | [
"Apache-2.0"
] | null | null | null | natural_selection/genetic_programs/__init__.py | Zipfian-Science/natural-selection | 5bf04142a73f39a83e86ad0eb53ba0fecb365864 | [
"Apache-2.0"
] | 1 | 2021-02-26T10:10:43.000Z | 2021-02-26T10:10:43.000Z | natural_selection/genetic_programs/__init__.py | Zipfian-Science/natural-selection | 5bf04142a73f39a83e86ad0eb53ba0fecb365864 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Basic classes for running Genetic Algorithms.
"""
__author__ = "Justin Hocking"
__copyright__ = "Copyright 2021, Zipfian Science"
__credits__ = []
__license__ = ""
__version__ = "0.0.1"
__maintainer__ = "Justin Hocking"
__email__ = "justin.hocking@zipfian.science"
__status__ = "Development"
... | 35.134503 | 135 | 0.604194 | 1,428 | 12,016 | 4.935574 | 0.191877 | 0.032633 | 0.031356 | 0.037457 | 0.29441 | 0.26206 | 0.240778 | 0.229994 | 0.229994 | 0.229994 | 0 | 0.002769 | 0.308755 | 12,016 | 342 | 136 | 35.134503 | 0.845774 | 0.321072 | 0 | 0.368687 | 0 | 0 | 0.071925 | 0.010763 | 0 | 0 | 0 | 0 | 0.020202 | 1 | 0.131313 | false | 0 | 0.020202 | 0.015152 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bef9dd75f6bd3b7b7d6aa908b20235fbd72a39c | 615 | py | Python | tests/fixtures/uploads.py | ReeceHoffmann/virtool | f9befad060fe16fa29fb80124e674ac5a9c4f538 | [
"MIT"
] | 39 | 2016-10-31T23:28:59.000Z | 2022-01-15T00:00:42.000Z | tests/fixtures/uploads.py | ReeceHoffmann/virtool | f9befad060fe16fa29fb80124e674ac5a9c4f538 | [
"MIT"
] | 1,690 | 2017-02-07T23:39:48.000Z | 2022-03-31T22:30:44.000Z | tests/fixtures/uploads.py | ReeceHoffmann/virtool | f9befad060fe16fa29fb80124e674ac5a9c4f538 | [
"MIT"
] | 25 | 2017-02-08T18:25:31.000Z | 2021-09-20T22:55:25.000Z | import pytest
from sqlalchemy.ext.asyncio import AsyncSession
from virtool.uploads.models import Upload
@pytest.fixture
async def test_uploads(pg, fake, static_time):
user_1 = await fake.users.insert()
user_2 = await fake.users.insert()
upload_1 = Upload(id=1, name="test.fq.gz", type="reads", user=user_1... | 30.75 | 84 | 0.695935 | 97 | 615 | 4.237113 | 0.402062 | 0.036496 | 0.072993 | 0.087591 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.157724 | 615 | 19 | 85 | 32.368421 | 0.766409 | 0 | 0 | 0 | 0 | 0 | 0.086179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bf071101faa3aefed0673b302d38405eb0bab30 | 3,029 | py | Python | cuppa/methods/compile.py | chriskohlhoff/cuppa | c777adb5cd91e52ac06c87688e1a635a61f609d1 | [
"BSL-1.0"
] | 1 | 2021-08-31T22:05:15.000Z | 2021-08-31T22:05:15.000Z | cuppa/methods/compile.py | chriskohlhoff/cuppa | c777adb5cd91e52ac06c87688e1a635a61f609d1 | [
"BSL-1.0"
] | null | null | null | cuppa/methods/compile.py | chriskohlhoff/cuppa | c777adb5cd91e52ac06c87688e1a635a61f609d1 | [
"BSL-1.0"
] | null | null | null |
# Copyright Jamie Allsop 2013-2018
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#-------------------------------------------------------------------------------
# CompileMethod
#---------... | 36.493976 | 116 | 0.526576 | 321 | 3,029 | 4.806854 | 0.320872 | 0.038885 | 0.02722 | 0.029164 | 0.132858 | 0.132858 | 0 | 0 | 0 | 0 | 0 | 0.008604 | 0.309343 | 3,029 | 82 | 117 | 36.939024 | 0.728968 | 0.120502 | 0 | 0.074074 | 0 | 0 | 0.080529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.203704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bf4bd9bfb15b22cd17a71e718232ade00af3a48 | 593 | py | Python | format_turning.py | xiao-gy/daily_bz | 6a79c19d559039f2e015720079baea3a8d9ffd37 | [
"MIT"
] | 3 | 2021-04-13T00:18:20.000Z | 2021-07-15T08:25:22.000Z | format_turning.py | xiao-gy/daily_bz | 6a79c19d559039f2e015720079baea3a8d9ffd37 | [
"MIT"
] | null | null | null | format_turning.py | xiao-gy/daily_bz | 6a79c19d559039f2e015720079baea3a8d9ffd37 | [
"MIT"
] | 5 | 2021-05-05T12:58:19.000Z | 2021-09-12T10:28:33.000Z | import json
import os
try:
os.rename(os.path.join(os.getcwd(),'config','like.json'),os.path.join(os.getcwd(),'config','like_copy.json'))
except:
print("无法进行重命名")
f = open(os.path.join(os.getcwd(),'config','like_copy.json'),mode='r',encoding='utf8')
likes = json.loads(f.read())
list = {"likes":[{"name":"默认收藏夹... | 31.210526 | 113 | 0.639123 | 95 | 593 | 3.957895 | 0.431579 | 0.06383 | 0.106383 | 0.12766 | 0.388298 | 0.388298 | 0.388298 | 0.388298 | 0.292553 | 0 | 0 | 0.005455 | 0.072513 | 593 | 19 | 114 | 31.210526 | 0.678182 | 0 | 0 | 0 | 0 | 0 | 0.249158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bf81eaf34d29539cf6fc4ab7d86334be33a32aa | 8,440 | py | Python | Project/models/homography.py | iust-projects/Computer-Vision-IUST | 732c8f1eaf1df032f1b7ec0518756017117038af | [
"Apache-2.0"
] | null | null | null | Project/models/homography.py | iust-projects/Computer-Vision-IUST | 732c8f1eaf1df032f1b7ec0518756017117038af | [
"Apache-2.0"
] | 1 | 2020-12-22T09:02:20.000Z | 2020-12-22T09:02:20.000Z | Project/models/homography.py | iust-projects/Computer-Vision-IUST | 732c8f1eaf1df032f1b7ec0518756017117038af | [
"Apache-2.0"
] | null | null | null | # %% import libraries
import numpy as np
import random
import cv2
import PIL
import matplotlib.pyplot as plt
from copy import deepcopy
# %% 1 Extract Harris interest points
def get_points(img, threshold=0.1, coordinate=False):
"""
Extract harris points of given image
:param img: An image of type open c... | 36.223176 | 113 | 0.638981 | 1,222 | 8,440 | 4.235679 | 0.195581 | 0.044436 | 0.027821 | 0.00966 | 0.249227 | 0.194552 | 0.126159 | 0.084042 | 0.059699 | 0.034003 | 0 | 0.056197 | 0.240995 | 8,440 | 232 | 114 | 36.37931 | 0.751795 | 0.244668 | 0 | 0.084615 | 0 | 0 | 0.013391 | 0.008067 | 0 | 0 | 0 | 0 | 0.015385 | 1 | 0.053846 | false | 0 | 0.046154 | 0 | 0.161538 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bfc12035df037a7d9db7f30808756998f54bdee | 6,592 | py | Python | dataset/data.py | mondrasovic/reid_baseline_syncbn | 3d21a786fb1a0519caaa0572c649f750036689b5 | [
"MIT"
] | 1 | 2022-01-05T15:42:44.000Z | 2022-01-05T15:42:44.000Z | dataset/data.py | mondrasovic/reid_baseline_syncbn | 3d21a786fb1a0519caaa0572c649f750036689b5 | [
"MIT"
] | null | null | null | dataset/data.py | mondrasovic/reid_baseline_syncbn | 3d21a786fb1a0519caaa0572c649f750036689b5 | [
"MIT"
] | null | null | null | import torch
import os.path as osp
from PIL import Image
from torch.utils.data import Dataset
import numpy as np
from torchvision import transforms as T
import glob
import re
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
def read_image(img_path):
"""Keep reading image until succe... | 33.979381 | 103 | 0.556887 | 776 | 6,592 | 4.501289 | 0.21134 | 0.026052 | 0.032064 | 0.034354 | 0.271686 | 0.256227 | 0.214143 | 0.15574 | 0.105354 | 0.04008 | 0 | 0.003404 | 0.331614 | 6,592 | 193 | 104 | 34.15544 | 0.789378 | 0.106493 | 0 | 0.086667 | 0 | 0 | 0.092898 | 0.021521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.006667 | 0.06 | 0.006667 | 0.18 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bfc9c9dc6bfe8a46625975c2ef7e96d083e2b69 | 407 | py | Python | StarletteServer/functions.py | Amatobahn/starlette-boilerplate | 92e91bd30e918df45d3e2a09602833fd07f698f2 | [
"MIT"
] | 1 | 2021-11-30T20:08:17.000Z | 2021-11-30T20:08:17.000Z | StarletteServer/functions.py | Amatobahn/starlette-boilerplate | 92e91bd30e918df45d3e2a09602833fd07f698f2 | [
"MIT"
] | null | null | null | StarletteServer/functions.py | Amatobahn/starlette-boilerplate | 92e91bd30e918df45d3e2a09602833fd07f698f2 | [
"MIT"
] | 2 | 2019-07-13T11:27:21.000Z | 2020-01-27T07:13:09.000Z | from starlette.requests import Request
from starlette.responses import JSONResponse, Response
def hello_world(scope):
return Response("Hello World!")
def hello_world_form_data(scope):
async def parse(receive, send):
request = Request(scope, receive)
data = await request.form()
respon... | 25.4375 | 54 | 0.70516 | 48 | 407 | 5.895833 | 0.416667 | 0.106007 | 0.091873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206388 | 407 | 15 | 55 | 27.133333 | 0.876161 | 0 | 0 | 0 | 0 | 0 | 0.039312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5bff6a5a233a953254c76067336649d556192ab7 | 4,966 | py | Python | project/settings.py | panubo/panubo-dns | fce7cf8b26f06da749c659f24e7f6339997c4102 | [
"MIT"
] | null | null | null | project/settings.py | panubo/panubo-dns | fce7cf8b26f06da749c659f24e7f6339997c4102 | [
"MIT"
] | 1 | 2015-08-19T05:24:09.000Z | 2019-07-01T01:47:12.000Z | project/settings.py | panubo/panubo-dns | fce7cf8b26f06da749c659f24e7f6339997c4102 | [
"MIT"
] | 2 | 2016-06-06T09:48:24.000Z | 2021-04-19T15:33:50.000Z | """
Django settings for project.
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
PROJECT_PATH = os.path.abspath(os.path.split(__file__)[0])
ALLOWED_HOSTS = ['*']
# Application definition
INSTALLED_APPS = (
'django.contri... | 30.654321 | 118 | 0.681232 | 563 | 4,966 | 5.79929 | 0.35524 | 0.044104 | 0.029403 | 0.047473 | 0.106585 | 0.032466 | 0.032466 | 0 | 0 | 0 | 0 | 0.008778 | 0.174184 | 4,966 | 162 | 119 | 30.654321 | 0.787369 | 0.0882 | 0 | 0.034188 | 0 | 0 | 0.45765 | 0.302439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.008547 | 0.025641 | 0 | 0.025641 | 0.008547 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7505d44db8a60afab4853b6715130e001e8c0b30 | 587 | py | Python | src/extract/test.py | AutoKnowledge/AutoKnowledge | 1a9fce1449d9605dc0289ab13736d073453ed102 | [
"Apache-2.0"
] | 1 | 2021-02-24T10:22:19.000Z | 2021-02-24T10:22:19.000Z | src/extract/test.py | AutoKnowledge/AutoKnowledge | 1a9fce1449d9605dc0289ab13736d073453ed102 | [
"Apache-2.0"
] | null | null | null | src/extract/test.py | AutoKnowledge/AutoKnowledge | 1a9fce1449d9605dc0289ab13736d073453ed102 | [
"Apache-2.0"
] | null | null | null | '''
import analyze
any = analyze.Analyze()
# 吻别是由张学友演唱的一首歌曲。
#text = '《盗墓笔记》是2014年欢瑞世纪影视传媒股份有限公司出品的一部网络季播剧,改编自南派三叔所著的同名小说,由郑保瑞和罗永昌联合导演,李易峰、杨洋、唐嫣、刘天佐、张智尧、魏巍等主演。'
#text = '姚明1980年9月12日出生于上海市徐汇区,祖籍江苏省苏州市吴江区震泽镇,前中国职业篮球运动员,司职中锋,现任中职联公司董事长兼总经理。'
knowledge = any.knowledge(text)
print(knowledge)
'''
from medext import getTripl... | 39.133333 | 156 | 0.810903 | 62 | 587 | 7.677419 | 0.774194 | 0.037815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025362 | 0.059625 | 587 | 14 | 157 | 41.928571 | 0.836957 | 0.749574 | 0 | 0 | 0 | 0 | 0.410072 | 0.280576 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
75075401a18228befc57b214cb804403c7d028e7 | 4,460 | py | Python | alfred-workflow-py3/tests/test_workflow_xml.py | kw-lee/alfdaumdict | fde5c54fb5e8eb30bd6308c4a6086e46b60f101b | [
"MIT"
] | 1 | 2022-03-19T10:27:12.000Z | 2022-03-19T10:27:12.000Z | alfred-workflow-py3/tests/test_workflow_xml.py | kw-lee/alfdaumdict | fde5c54fb5e8eb30bd6308c4a6086e46b60f101b | [
"MIT"
] | null | null | null | alfred-workflow-py3/tests/test_workflow_xml.py | kw-lee/alfdaumdict | fde5c54fb5e8eb30bd6308c4a6086e46b60f101b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2017 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2017-05-06
#
"""Unit tests for Workflow's XML feedback generation."""
import sys
from contextlib import contextmanager
from xml.etree import Eleme... | 26.081871 | 87 | 0.609865 | 547 | 4,460 | 4.888483 | 0.224863 | 0.037397 | 0.053852 | 0.028422 | 0.456245 | 0.439791 | 0.415856 | 0.415856 | 0.415856 | 0.415856 | 0 | 0.004709 | 0.238117 | 4,460 | 170 | 88 | 26.235294 | 0.782225 | 0.085874 | 0 | 0.504 | 0 | 0 | 0.144662 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.04 | false | 0 | 0.048 | 0 | 0.088 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
750808c8295fb8a3000d23694263942f06120b62 | 4,618 | py | Python | executables/adjusted_ranking_experiments.py | mberr/rank-based-evaluation | 76a0847eecf4350d92783e9773d6fc6b6c69ca51 | [
"MIT"
] | 5 | 2021-02-16T01:04:39.000Z | 2021-09-01T01:36:02.000Z | executables/adjusted_ranking_experiments.py | mberr/rank-based-evaluation | 76a0847eecf4350d92783e9773d6fc6b6c69ca51 | [
"MIT"
] | null | null | null | executables/adjusted_ranking_experiments.py | mberr/rank-based-evaluation | 76a0847eecf4350d92783e9773d6fc6b6c69ca51 | [
"MIT"
] | null | null | null | # coding=utf-8
"""Evaluation of different training and test sizes."""
import argparse
import logging
import random
import mlflow
import numpy
import torch
import tqdm
from kgm.data import get_dataset_by_name
from kgm.eval.matching import evaluate_matching_model
from kgm.models import GCNAlign
from kgm.modules import ... | 31.848276 | 87 | 0.561498 | 484 | 4,618 | 5.136364 | 0.340909 | 0.016895 | 0.04103 | 0.012872 | 0.055511 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0247 | 0.351234 | 4,618 | 144 | 88 | 32.069444 | 0.805073 | 0.083369 | 0 | 0.064815 | 0 | 0 | 0.052244 | 0.006649 | 0 | 0 | 0 | 0 | 0.009259 | 1 | 0.009259 | false | 0 | 0.12037 | 0 | 0.12963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
750a34fed3230d5f5f9e5491dc14d2f490974ee6 | 5,204 | py | Python | microsoft/gestures/gesture_container.py | dany74q/python-microsoft-project-prague-sdk | abfea98d75e16c2d8862973e61970d99122f9cec | [
"MIT"
] | 1 | 2017-07-30T10:17:38.000Z | 2017-07-30T10:17:38.000Z | microsoft/gestures/gesture_container.py | dany74q/python-microsoft-project-prague-sdk | abfea98d75e16c2d8862973e61970d99122f9cec | [
"MIT"
] | null | null | null | microsoft/gestures/gesture_container.py | dany74q/python-microsoft-project-prague-sdk | abfea98d75e16c2d8862973e61970d99122f9cec | [
"MIT"
] | null | null | null | from microsoft.gestures.fingertip_placement_relation import FingertipPlacementRelation
from microsoft.gestures.fingertip_distance_relation import FingertipDistanceRelation
from xml.etree.ElementTree import Element, SubElement, Comment, tostring
from microsoft.gestures.relative_placement import RelativePlacement
from mi... | 57.186813 | 166 | 0.683128 | 555 | 5,204 | 6.099099 | 0.225225 | 0.041359 | 0.08065 | 0.047858 | 0.274446 | 0.258789 | 0.218316 | 0.161595 | 0.14712 | 0.14712 | 0 | 0.002952 | 0.21887 | 5,204 | 91 | 167 | 57.186813 | 0.829766 | 0 | 0 | 0.073171 | 0 | 0 | 0.072046 | 0.005187 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0 | 0.182927 | 0.012195 | 0.304878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
750d8e497e21c46d3ed340b4abc7623e18ad44e4 | 7,027 | py | Python | pygraph/domination.py | jysh1214/pygraph | fba581ce5e259854a4b86163c4fb61030e663a81 | [
"MIT"
] | null | null | null | pygraph/domination.py | jysh1214/pygraph | fba581ce5e259854a4b86163c4fb61030e663a81 | [
"MIT"
] | null | null | null | pygraph/domination.py | jysh1214/pygraph | fba581ce5e259854a4b86163c4fb61030e663a81 | [
"MIT"
] | null | null | null | from .get_imformation import GI
class DM:
def __init__(self, adj_matrix, ins_matrix):
self.Adjacency_Matrix = adj_matrix
self.Insidence_Matrix = ins_matrix
self.N = len(self.Adjacency_Matrix)
### Packing: Find Maximal ###
def clique(self):
"""
Returns:
... | 27.342412 | 81 | 0.477871 | 820 | 7,027 | 3.931707 | 0.134146 | 0.045596 | 0.020471 | 0.034119 | 0.505583 | 0.462779 | 0.405707 | 0.343052 | 0.322891 | 0.322891 | 0 | 0.006401 | 0.421944 | 7,027 | 256 | 82 | 27.449219 | 0.787297 | 0.120677 | 0 | 0.369565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0 | 0.007246 | 0 | 0.144928 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
750db8dedf746751bad013c1015bec9f1774f4f4 | 680 | py | Python | game/combat/effects/moveeffect/cure.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 5 | 2021-06-25T16:44:38.000Z | 2021-12-31T01:29:00.000Z | game/combat/effects/moveeffect/cure.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | null | null | null | game/combat/effects/moveeffect/cure.py | Sipondo/ulix-dexflow | de46482fe08e3d600dd5da581f0524b55e5df961 | [
"MIT"
] | 1 | 2021-06-25T20:33:47.000Z | 2021-06-25T20:33:47.000Z | from .basemoveeffect import BaseMoveEffect
from game.combat.effects.genericeffect import GenericEffect
class Cure(BaseMoveEffect):
def after_action(self):
if self.scene.board.random_roll(self.move.chance):
target_effects = self.scene.get_effects_on_target(self.move.target)
for stat... | 37.777778 | 84 | 0.616176 | 79 | 680 | 5.177215 | 0.518987 | 0.132029 | 0.06846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 680 | 17 | 85 | 40 | 0.852083 | 0 | 0 | 0 | 0 | 0 | 0.104412 | 0.072059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
750e4085fb2729c790fdc37560668ec0186b9389 | 2,945 | py | Python | mlserve/utils.py | jettify/mlserve | 571152e4475738e0b01fcbde166d95a3636b3c5f | [
"Apache-2.0"
] | 17 | 2018-08-06T09:38:17.000Z | 2018-08-14T10:55:58.000Z | mlserve/utils.py | ml-libs/mlserve | 571152e4475738e0b01fcbde166d95a3636b3c5f | [
"Apache-2.0"
] | 63 | 2018-09-07T21:40:16.000Z | 2022-02-10T17:11:13.000Z | mlserve/utils.py | jettify/mlserve | 571152e4475738e0b01fcbde166d95a3636b3c5f | [
"Apache-2.0"
] | 1 | 2019-05-06T10:18:59.000Z | 2019-05-06T10:18:59.000Z | import json
import os
import trafaret as t
import yaml
from dataclasses import dataclass, asdict
from pathlib import Path
from typing import Any, List, Dict
ModelMeta = t.Dict(
{
t.Key('name'): t.String,
t.Key('description'): t.String,
t.Key('model_path'): t.String,
t.Key('data_s... | 27.018349 | 79 | 0.609168 | 396 | 2,945 | 4.419192 | 0.239899 | 0.029714 | 0.036571 | 0.044 | 0.139429 | 0.101714 | 0.101714 | 0.101714 | 0.101714 | 0.101714 | 0 | 0.018717 | 0.238031 | 2,945 | 108 | 80 | 27.268519 | 0.761141 | 0.012903 | 0 | 0.094118 | 0 | 0 | 0.105336 | 0 | 0 | 0 | 0 | 0.009259 | 0 | 1 | 0.047059 | false | 0 | 0.082353 | 0.011765 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
750f07c7e86e349dd91bdbbb50528afd0a003a01 | 2,844 | py | Python | crawlergooglescholar/get_picts.py | vignif/Crawler-google-scholar | 5e95114d253ef5d160148422af240f034a3e5623 | [
"MIT"
] | null | null | null | crawlergooglescholar/get_picts.py | vignif/Crawler-google-scholar | 5e95114d253ef5d160148422af240f034a3e5623 | [
"MIT"
] | null | null | null | crawlergooglescholar/get_picts.py | vignif/Crawler-google-scholar | 5e95114d253ef5d160148422af240f034a3e5623 | [
"MIT"
] | null | null | null | """this script crawls for the profile pictures of researchers in google scholar
and saves them in a folder called [figures]
the crawler exploit the informations via the description of the tags in the html of google scholar
be aware that too many requests to a server might interrupt your script, please
... | 30.913043 | 102 | 0.621308 | 386 | 2,844 | 4.466321 | 0.440415 | 0.076566 | 0.030162 | 0.031323 | 0.074246 | 0.074246 | 0 | 0 | 0 | 0 | 0 | 0.005332 | 0.274613 | 2,844 | 91 | 103 | 31.252747 | 0.830344 | 0.257384 | 0 | 0.036364 | 0 | 0 | 0.125181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.109091 | 0 | 0.218182 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7510b10f0b56bd6f23e065d973fded7927aa8141 | 3,438 | py | Python | kelas_2c/nurul.py | idamfadilah/belajarpython | 72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811 | [
"MIT"
] | 1 | 2020-01-13T15:21:11.000Z | 2020-01-13T15:21:11.000Z | kelas_2c/nurul.py | idamfadilah/belajarpython | 72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811 | [
"MIT"
] | 32 | 2019-11-21T08:46:48.000Z | 2020-01-12T07:53:02.000Z | kelas_2c/nurul.py | idamfadilah/belajarpython | 72c5108a7f44d8b8f33dc5d5b1bd4f8a83f8b811 | [
"MIT"
] | 437 | 2019-11-21T06:11:13.000Z | 2021-04-22T22:11:23.000Z | import csv
import matplotlib.pyplot as plt
import requests
class nurul:
def ganjilgenap(self):
with open('kelas_2c/nurul.csv') as files:
reader=csv.reader(files, delimiter=',')
for row in reader:
if int(row[0])%2 == 1:
print(row[0],"merupakan Bi... | 29.135593 | 219 | 0.538685 | 457 | 3,438 | 4.021882 | 0.420131 | 0.016322 | 0.021763 | 0.026115 | 0.296518 | 0.226333 | 0.22198 | 0.194777 | 0.194777 | 0.194777 | 0 | 0.108878 | 0.30541 | 3,438 | 118 | 220 | 29.135593 | 0.660804 | 0.072717 | 0 | 0.238095 | 0 | 0 | 0.17856 | 0.045269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130952 | false | 0 | 0.035714 | 0 | 0.178571 | 0.130952 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
75110cf2b69cd80e1422da4c443d622bdec91b65 | 1,227 | py | Python | yandex_algorithm2/home1b.py | erjan/coding_exercises | 53ba035be85f1e7a12b4d4dbf546863324740467 | [
"Apache-2.0"
] | null | null | null | yandex_algorithm2/home1b.py | erjan/coding_exercises | 53ba035be85f1e7a12b4d4dbf546863324740467 | [
"Apache-2.0"
] | null | null | null | yandex_algorithm2/home1b.py | erjan/coding_exercises | 53ba035be85f1e7a12b4d4dbf546863324740467 | [
"Apache-2.0"
] | null | null | null | '''
Витя работает недалеко от одной из станций кольцевой линии Московского метро, а живет рядом с другой станцией той же линии. Требуется выяснить, мимо какого наименьшего количества промежуточных станций необходимо проехать Вите по кольцу, чтобы добраться с работы домой.
Формат ввода
Станции пронумерованы подряд нату... | 35.057143 | 268 | 0.712306 | 187 | 1,227 | 4.620321 | 0.572193 | 0.045139 | 0.048611 | 0.032407 | 0.034722 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014257 | 0.199674 | 1,227 | 34 | 269 | 36.088235 | 0.85947 | 0.703341 | 0 | 0 | 0 | 0 | 0.022535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7515c9edf4c6cfe592909aca896e0ddefbb578de | 7,110 | py | Python | Udemy_Py_DataScience_ML/Sec15_LinearReg.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | Udemy_Py_DataScience_ML/Sec15_LinearReg.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | Udemy_Py_DataScience_ML/Sec15_LinearReg.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | ####################################
# author: Gonzalo Salazar
# course: Python for Data Science and Machine Learning Bootcamp
# purpose: lecture notes
# description: Section 15 - Linear Regression
# other: N/A
####################################
#%%
import os
from numpy.lib.function_base import corrcoef
import panda... | 38.852459 | 97 | 0.715752 | 1,063 | 7,110 | 4.709313 | 0.347131 | 0.014982 | 0.019776 | 0.019177 | 0.195565 | 0.173592 | 0.166001 | 0.137435 | 0.10867 | 0.093088 | 0 | 0.00859 | 0.181294 | 7,110 | 183 | 98 | 38.852459 | 0.8514 | 0.621378 | 0 | 0.275862 | 0 | 0 | 0.134181 | 0.033238 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.155172 | 0 | 0.155172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
75160826b98614b47f394cd26909f4c19c70ebbb | 1,994 | py | Python | src/lib_example/hypot.py | atpage/cuda_intro | 01dcebdadb961ada4f3532b847f259ac4ea4e615 | [
"MIT"
] | null | null | null | src/lib_example/hypot.py | atpage/cuda_intro | 01dcebdadb961ada4f3532b847f259ac4ea4e615 | [
"MIT"
] | 2 | 2016-02-09T17:39:02.000Z | 2016-05-09T14:44:26.000Z | src/lib_example/hypot.py | atpage/cuda_intro | 01dcebdadb961ada4f3532b847f259ac4ea4e615 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
import argparse
from ctypes import *
import sys
################################ Load library: ################################
lib_name = 'libhypot.so'
try:
# try to use the one the OS finds (e.g. in /usr/local/lib)
libhypot = CDLL(lib_name)
except OSError:
# lib... | 32.688525 | 91 | 0.474925 | 224 | 1,994 | 4.142857 | 0.491071 | 0.022629 | 0.054957 | 0.061422 | 0.117457 | 0.080819 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.165496 | 1,994 | 60 | 92 | 33.233333 | 0.552885 | 0.140923 | 0 | 0 | 0 | 0 | 0.23946 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.137931 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
751835fbbe2d4d0b3a1f8607d3b130e6bcbf8669 | 560 | py | Python | tests/conftest.py | Frederik-Baetens/pytest-inmanta | 5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | Frederik-Baetens/pytest-inmanta | 5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | Frederik-Baetens/pytest-inmanta | 5cebff7b2bb9ad9005a3d68a25df87ee1fc0512c | [
"Apache-2.0"
] | null | null | null | import pytest
import pytest_inmanta.plugin
import os
import sys
import pkg_resources
pytest_plugins = ["pytester"]
@pytest.fixture(autouse=True)
def set_cwd(testdir):
pytest_inmanta.plugin.CURDIR = os.getcwd()
@pytest.fixture(scope="function", autouse=True)
def deactive_venv():
old_os_path = os.environ.ge... | 20.740741 | 72 | 0.728571 | 78 | 560 | 4.987179 | 0.423077 | 0.092545 | 0.097686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 560 | 26 | 73 | 21.538462 | 0.82766 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.263158 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
75195768b9bfe7c08dd3ea0eaa74f62fb37dc728 | 1,546 | py | Python | tests/test_vaccination.py | covid-19-impact-lab/sid | d867f55d4d005b01c672bd2edd0e1dc974cb182b | [
"MIT"
] | 18 | 2020-04-18T09:18:52.000Z | 2021-10-19T02:42:39.000Z | tests/test_vaccination.py | covid-19-impact-lab/sid | d867f55d4d005b01c672bd2edd0e1dc974cb182b | [
"MIT"
] | 143 | 2020-04-18T16:58:20.000Z | 2022-03-07T22:16:03.000Z | tests/test_vaccination.py | covid-19-impact-lab/sid | d867f55d4d005b01c672bd2edd0e1dc974cb182b | [
"MIT"
] | 1 | 2021-01-07T07:38:53.000Z | 2021-01-07T07:38:53.000Z | import itertools
from contextlib import ExitStack as does_not_raise # noqa: N813
import pandas as pd
import pytest
from sid.vaccination import vaccinate_individuals
@pytest.mark.integration
@pytest.mark.parametrize(
"vaccination_models, expectation, expected",
[
({}, does_not_raise(), pd.Series([Fal... | 29.169811 | 88 | 0.513583 | 139 | 1,546 | 5.582734 | 0.42446 | 0.070876 | 0.096649 | 0.109536 | 0.39433 | 0.25 | 0.25 | 0.25 | 0.25 | 0.118557 | 0 | 0.048554 | 0.373868 | 1,546 | 52 | 89 | 29.730769 | 0.753099 | 0.006468 | 0 | 0.1875 | 0 | 0 | 0.111473 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0.020833 | false | 0 | 0.104167 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
751abaf1ab249f31eecee3f3846c229b7dc366a5 | 12,216 | py | Python | main.py | dumpmemory/W2NER | fb1b6eb1111eb001b1c965097d995244b840bdda | [
"MIT"
] | 128 | 2021-12-21T04:20:17.000Z | 2022-03-31T03:05:53.000Z | main.py | dumpmemory/W2NER | fb1b6eb1111eb001b1c965097d995244b840bdda | [
"MIT"
] | 15 | 2022-01-07T02:39:58.000Z | 2022-03-30T14:12:30.000Z | main.py | dumpmemory/W2NER | fb1b6eb1111eb001b1c965097d995244b840bdda | [
"MIT"
] | 24 | 2021-12-21T05:06:08.000Z | 2022-03-31T13:42:13.000Z | import argparse
import json
import numpy as np
import prettytable as pt
import torch
import torch.autograd
import torch.nn as nn
import transformers
from sklearn.metrics import precision_recall_fscore_support, f1_score
from torch.utils.data import DataLoader
import config
import data_loader
import utils
... | 39.406452 | 126 | 0.564014 | 1,454 | 12,216 | 4.483494 | 0.147868 | 0.034515 | 0.065194 | 0.022089 | 0.544562 | 0.512655 | 0.47538 | 0.408958 | 0.398527 | 0.398527 | 0 | 0.014328 | 0.314424 | 12,216 | 309 | 127 | 39.533981 | 0.76406 | 0.016372 | 0 | 0.399123 | 0 | 0 | 0.070855 | 0.003846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.061404 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7528a707d7cd810fb6f1250d9781c45b722c4ed4 | 3,965 | py | Python | tools/pylib/uvmap.py | maxymilianz/demoscene | 7d912e77f160a3ad695f567b381a78215fd8be5d | [
"Artistic-2.0"
] | null | null | null | tools/pylib/uvmap.py | maxymilianz/demoscene | 7d912e77f160a3ad695f567b381a78215fd8be5d | [
"Artistic-2.0"
] | null | null | null | tools/pylib/uvmap.py | maxymilianz/demoscene | 7d912e77f160a3ad695f567b381a78215fd8be5d | [
"Artistic-2.0"
] | null | null | null | from __future__ import print_function
from math import atan2, cos, sin, pi, sqrt, tan
from utils import dist, lerp, frpart
from array import array
from PIL import Image
def FancyEye(x, y):
a = atan2(x, y)
r = dist(x, y, 0.0, 0.0)
if r == 0:
return (0, 0)
u = 0.04 * y + 0.06 * cos(a * 3.0) /... | 26.433333 | 74 | 0.473644 | 656 | 3,965 | 2.829268 | 0.179878 | 0.022629 | 0.016164 | 0.03556 | 0.277478 | 0.264547 | 0.210668 | 0.210668 | 0.196121 | 0.16056 | 0 | 0.052262 | 0.353342 | 3,965 | 149 | 75 | 26.610738 | 0.671607 | 0 | 0 | 0.247788 | 0 | 0 | 0.027491 | 0 | 0 | 0 | 0.001513 | 0 | 0 | 1 | 0.115044 | false | 0.00885 | 0.044248 | 0 | 0.265487 | 0.035398 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
752cb11b33632675f903629216e71f86426bc4b6 | 1,687 | py | Python | stabilizer/llrd.py | VigneshBaskar/stabilizer | 970a55a6da4e57596cbc953830160057138719e8 | [
"Apache-2.0"
] | 22 | 2021-09-17T09:51:07.000Z | 2022-03-24T04:19:26.000Z | stabilizer/llrd.py | VigneshBaskar/stabilizer | 970a55a6da4e57596cbc953830160057138719e8 | [
"Apache-2.0"
] | 4 | 2021-09-18T07:57:27.000Z | 2021-09-27T19:54:54.000Z | stabilizer/llrd.py | VigneshBaskar/stabilizer | 970a55a6da4e57596cbc953830160057138719e8 | [
"Apache-2.0"
] | 5 | 2021-09-17T12:21:12.000Z | 2022-03-28T04:57:58.000Z | def get_optimizer_parameters_with_llrd(model, peak_lr, multiplicative_factor):
num_encoder_layers = len(model.transformer.encoder.layer)
# Task specific layer gets the peak_lr
tsl_parameters = [
{
"params": [param for name, param in model.task_specific_layer.named_parameters()],
... | 46.861111 | 101 | 0.662122 | 196 | 1,687 | 5.433673 | 0.234694 | 0.033803 | 0.123944 | 0.078873 | 0.517371 | 0.49108 | 0.483568 | 0.406573 | 0.367136 | 0.309859 | 0 | 0.000782 | 0.241849 | 1,687 | 35 | 102 | 48.2 | 0.8319 | 0.189093 | 0 | 0 | 0 | 0 | 0.104993 | 0.043319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
752d121311dd12e755c6822eb5eb0468f439d38f | 4,812 | py | Python | python_parser/parser/glasMeasure.py | marcelscode/glasnost | e54ce9ece91433df8ac73229d01e06c012a7b8d8 | [
"BSD-3-Clause"
] | 58 | 2015-04-25T10:47:27.000Z | 2022-03-31T15:37:58.000Z | python_parser/parser/glasMeasure.py | marcelscode/glasnost | e54ce9ece91433df8ac73229d01e06c012a7b8d8 | [
"BSD-3-Clause"
] | 1 | 2017-03-29T11:33:33.000Z | 2018-01-02T20:19:28.000Z | python_parser/parser/glasMeasure.py | marcelscode/glasnost | e54ce9ece91433df8ac73229d01e06c012a7b8d8 | [
"BSD-3-Clause"
] | 18 | 2016-02-11T14:06:58.000Z | 2022-03-15T11:13:39.000Z | # Glasnost Parser v2.
# Developed 2011/2012 by Hadi Asghari (http://deeppacket.info)
#
# Statistics about test streams
class GlasMeasurement:
"""" Class to hold statistics about one test stream """
def __init__(self, direction, port_typ, flow_typ, tcp_port):
assert direction in ['u','d']
... | 39.442623 | 152 | 0.568786 | 724 | 4,812 | 3.595304 | 0.223757 | 0.064541 | 0.033807 | 0.021514 | 0.286208 | 0.217441 | 0.075298 | 0.075298 | 0.075298 | 0.075298 | 0 | 0.022867 | 0.291147 | 4,812 | 121 | 153 | 39.768595 | 0.740252 | 0.128845 | 0 | 0.141176 | 0 | 0.011765 | 0.044376 | 0 | 0 | 0 | 0 | 0 | 0.070588 | 1 | 0.188235 | false | 0 | 0 | 0.023529 | 0.329412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
752daa07c16402e3055f39a32f880e876f78b385 | 2,563 | py | Python | GPy_ABCD/Kernels/linearOffsetKernel.py | juanluislm/GPy-ABCD | 63aa3a8a83148e0aaf8691ac3f69bced6fbaf600 | [
"BSD-3-Clause"
] | null | null | null | GPy_ABCD/Kernels/linearOffsetKernel.py | juanluislm/GPy-ABCD | 63aa3a8a83148e0aaf8691ac3f69bced6fbaf600 | [
"BSD-3-Clause"
] | null | null | null | GPy_ABCD/Kernels/linearOffsetKernel.py | juanluislm/GPy-ABCD | 63aa3a8a83148e0aaf8691ac3f69bced6fbaf600 | [
"BSD-3-Clause"
] | 1 | 2021-01-21T12:52:37.000Z | 2021-01-21T12:52:37.000Z | import numpy as np
from GPy.kern.src.kern import Kern
from GPy.core.parameterization import Param
from paramz.transformations import Logexp
from paramz.caching import Cache_this
class LinearWithOffset(Kern):
"""
Linear kernel with horizontal offset
.. math::
k(x,y) = \sigma^2 (x - o)(y - o)
... | 34.173333 | 148 | 0.65002 | 358 | 2,563 | 4.519553 | 0.298883 | 0.061805 | 0.020396 | 0.024104 | 0.163782 | 0.163782 | 0.140297 | 0.091471 | 0.091471 | 0.066749 | 0 | 0.009307 | 0.245416 | 2,563 | 74 | 149 | 34.635135 | 0.827301 | 0.273508 | 0 | 0.052632 | 0 | 0 | 0.040782 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.157895 | false | 0 | 0.131579 | 0.026316 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
752e21ffea89f00b97756d8ff46ca51435646c62 | 12,829 | py | Python | OCT_reader_demo.py | kai-neuhaus/OCT_file_tools | 1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a | [
"MIT"
] | null | null | null | OCT_reader_demo.py | kai-neuhaus/OCT_file_tools | 1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a | [
"MIT"
] | null | null | null | OCT_reader_demo.py | kai-neuhaus/OCT_file_tools | 1272b4d68822dc8ac9b0d7031c9b1b95b5b4a79a | [
"MIT"
] | null | null | null | # This file shows some example usage of Python functions to read an OCT file.
# To use exectute this test reader, scroll to the bottom and pass an OCT file to the function unzip_OCTFile.
# Find the comment #Example usage.
#
# Additional modules to be installed should be 'xmltodict', 'shutil', and 'gdown'.
# Tested in P... | 44.391003 | 140 | 0.706057 | 1,769 | 12,829 | 4.982476 | 0.219333 | 0.019061 | 0.023712 | 0.036646 | 0.447243 | 0.402201 | 0.387679 | 0.372589 | 0.321761 | 0.272975 | 0 | 0.010271 | 0.157612 | 12,829 | 288 | 141 | 44.545139 | 0.805311 | 0.280926 | 0 | 0.296296 | 0 | 0.006173 | 0.198729 | 0.023963 | 0 | 0 | 0 | 0 | 0.006173 | 1 | 0.055556 | false | 0 | 0.074074 | 0 | 0.179012 | 0.123457 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
752e72698ce6c406e4123fed3e680fc56ab5c8db | 7,281 | py | Python | varsome_api/vcf.py | definitelysean/varsome-api-client-python | 43ebeb65baf94e745a2f0e8ec326ed09f681bf24 | [
"Apache-2.0"
] | 23 | 2018-01-12T20:09:19.000Z | 2022-02-26T13:39:36.000Z | varsome_api/vcf.py | definitelysean/varsome-api-client-python | 43ebeb65baf94e745a2f0e8ec326ed09f681bf24 | [
"Apache-2.0"
] | 3 | 2018-01-15T11:10:40.000Z | 2019-05-20T07:37:20.000Z | varsome_api/vcf.py | definitelysean/varsome-api-client-python | 43ebeb65baf94e745a2f0e8ec326ed09f681bf24 | [
"Apache-2.0"
] | 11 | 2018-01-12T11:07:56.000Z | 2021-09-29T18:02:27.000Z | # Copyright 2018 Saphetor S.A.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 49.195946 | 119 | 0.631232 | 897 | 7,281 | 4.915273 | 0.265329 | 0.030166 | 0.027217 | 0.024949 | 0.09526 | 0.034021 | 0.020413 | 0 | 0 | 0 | 0 | 0.006952 | 0.288834 | 7,281 | 147 | 120 | 49.530612 | 0.844535 | 0.226617 | 0 | 0.104167 | 0 | 0 | 0.11537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052083 | false | 0.010417 | 0.072917 | 0 | 0.145833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
752ee5b4eeb5208d629fa9b4144505411d1f467e | 77,806 | py | Python | bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | null | null | null | bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | null | null | null | bin/ADFRsuite/CCSBpckgs/DejaVu2/ColormapGui.py | AngelRuizMoreno/Jupyter_Dock_devel | 6d23bc174d5294d1e9909a0a1f9da0713042339e | [
"MIT"
] | 1 | 2021-11-04T21:48:14.000Z | 2021-11-04T21:48:14.000Z | ################################################################################
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
## License as published by the Free Software Foundation; either
## version 2.1 of the License, or (at your op... | 37.623791 | 102 | 0.527029 | 8,144 | 77,806 | 5.010928 | 0.112598 | 0.008233 | 0.009263 | 0.005121 | 0.388223 | 0.318288 | 0.270774 | 0.225024 | 0.208091 | 0.191428 | 0 | 0.012273 | 0.36537 | 77,806 | 2,067 | 103 | 37.641993 | 0.814189 | 0.23727 | 0 | 0.427344 | 0 | 0 | 0.022413 | 0 | 0 | 0 | 0 | 0 | 0.003125 | 1 | 0.055469 | false | 0.002344 | 0.014063 | 0 | 0.096875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7531c0f4b4056b7e460c08361366e9674000dff4 | 1,861 | py | Python | migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py | tuxji/RACK | 74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf | [
"BSD-3-Clause"
] | 4 | 2021-07-02T08:58:05.000Z | 2022-02-02T03:02:32.000Z | migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py | tuxji/RACK | 74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf | [
"BSD-3-Clause"
] | 309 | 2020-11-02T19:46:14.000Z | 2022-03-24T21:35:28.000Z | migration/rack/commits/commit90f2d4f55668786ffa01bba2a646c7468849c97d.py | tuxji/RACK | 74b59b9a89b48cf2da91d7d9ac23ab3408e32bcf | [
"BSD-3-Clause"
] | 7 | 2020-11-30T22:22:06.000Z | 2022-02-02T03:09:12.000Z | # Copyright (c) 2021, Galois, Inc.
#
# All Rights Reserved
#
# This material is based upon work supported by the Defense Advanced Research
# Projects Agency (DARPA) under Contract No. FA8750-20-C-0203.
#
# Any opinions, findings and conclusions or recommendations expressed in this
# material are those of the author(s) ... | 29.078125 | 78 | 0.631381 | 183 | 1,861 | 6.196721 | 0.453552 | 0.071429 | 0.089947 | 0.077601 | 0.300705 | 0.300705 | 0.300705 | 0.206349 | 0.206349 | 0.121693 | 0 | 0.03165 | 0.286943 | 1,861 | 63 | 79 | 29.539683 | 0.822909 | 0.222461 | 0 | 0.367347 | 0 | 0 | 0.15122 | 0.027875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040816 | 0 | 0.040816 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7531c29be32f4d71954813624b8633e9ae001662 | 1,215 | py | Python | part5/operations_overloading_3_2.py | MADTeacher/python_basics | 06ae43d8063c1c8426a4fbb53443b6d1ee727951 | [
"MIT"
] | null | null | null | part5/operations_overloading_3_2.py | MADTeacher/python_basics | 06ae43d8063c1c8426a4fbb53443b6d1ee727951 | [
"MIT"
] | null | null | null | part5/operations_overloading_3_2.py | MADTeacher/python_basics | 06ae43d8063c1c8426a4fbb53443b6d1ee727951 | [
"MIT"
] | 4 | 2020-10-04T12:24:14.000Z | 2022-01-16T17:01:59.000Z | class MyRange:
def __init__(self, start, stop, step=1):
self.start = start
self.stop = stop
self.step = step
def __iter__(self):
return MyRangeIterator(self)
class MyRangeIterator:
def __init__(self, myrange_object):
self.my_range = myrange_object
self.coun... | 27.613636 | 69 | 0.609877 | 166 | 1,215 | 4.114458 | 0.216867 | 0.071742 | 0.080527 | 0.10981 | 0.250366 | 0.250366 | 0.194729 | 0.10981 | 0.10981 | 0.10981 | 0 | 0.010204 | 0.274074 | 1,215 | 44 | 70 | 27.613636 | 0.764172 | 0.106173 | 0 | 0.129032 | 0 | 0 | 0.1 | 0.019444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0 | 0.032258 | 0.258065 | 0.225806 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
753a71640be1f2fee9267c9fd8f2b67b64a0df78 | 2,484 | py | Python | Chapter3/Cantonese/Onset-only/functional_load_onset_can.py | AndreaCeolin/Functionalism_Contrast_Change | 1557a4c76c253c7db292e503d6bd5cff5cea2d93 | [
"MIT"
] | null | null | null | Chapter3/Cantonese/Onset-only/functional_load_onset_can.py | AndreaCeolin/Functionalism_Contrast_Change | 1557a4c76c253c7db292e503d6bd5cff5cea2d93 | [
"MIT"
] | null | null | null | Chapter3/Cantonese/Onset-only/functional_load_onset_can.py | AndreaCeolin/Functionalism_Contrast_Change | 1557a4c76c253c7db292e503d6bd5cff5cea2d93 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
This script has been used perform functional load calculations on CANCORP.
author: Andrea Ceolin
date: February 2021
'''
from collections import Counter
import math
'''
Get the token frequencies of the corpus
'''
words_tokens = Counter()
for line in open('cantonese... | 29.571429 | 109 | 0.67351 | 348 | 2,484 | 4.678161 | 0.405172 | 0.067568 | 0.081695 | 0.103194 | 0.19656 | 0.19656 | 0.08231 | 0.08231 | 0.08231 | 0.08231 | 0 | 0.01286 | 0.217391 | 2,484 | 84 | 110 | 29.571429 | 0.824588 | 0.276167 | 0 | 0.055556 | 0 | 0 | 0.023876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.138889 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
753d0a15ee14b8c547bc4f3f4bb5ef8f44343ac6 | 15,401 | py | Python | src/agents.py | YounesZ/RL_trading | 69f1bfad4cdfac7a53ac64e3c8404477cbafeb74 | [
"MIT"
] | 1 | 2018-10-20T07:53:21.000Z | 2018-10-20T07:53:21.000Z | src/agents.py | YounesZ/RL_trading | 69f1bfad4cdfac7a53ac64e3c8404477cbafeb74 | [
"MIT"
] | null | null | null | src/agents.py | YounesZ/RL_trading | 69f1bfad4cdfac7a53ac64e3c8404477cbafeb74 | [
"MIT"
] | null | null | null | import random
import matplotlib.pyplot as plt
import tensorflow as tf
import keras as K
from os import path
from src.lib import *
#from src.logging import *
from copy import deepcopy
from datetime import datetime
class Agent:
def __init__(self, model, batch_size=12, discount_factor=0.95,
buffer_size=200, pre... | 31.62423 | 129 | 0.703006 | 2,366 | 15,401 | 4.396872 | 0.148774 | 0.034894 | 0.021244 | 0.031049 | 0.46304 | 0.430261 | 0.385946 | 0.364414 | 0.29876 | 0.26377 | 0 | 0.013108 | 0.147977 | 15,401 | 487 | 130 | 31.62423 | 0.779683 | 0.105383 | 0 | 0.24911 | 0 | 0 | 0.033439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131673 | false | 0.007117 | 0.032028 | 0.003559 | 0.238434 | 0.007117 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
753d88404d166a84eabbbafeb2f4b21a47e63a44 | 3,036 | py | Python | day03.py | alberto-re/adventoofcode2021 | 0cb32368ec2d0418d5b36fd566aaee3ed979017e | [
"MIT"
] | null | null | null | day03.py | alberto-re/adventoofcode2021 | 0cb32368ec2d0418d5b36fd566aaee3ed979017e | [
"MIT"
] | null | null | null | day03.py | alberto-re/adventoofcode2021 | 0cb32368ec2d0418d5b36fd566aaee3ed979017e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# --- Day 3: Binary Diagnostic ---
from typing import Dict, List, Tuple
from copy import deepcopy
MOST_COMMON = 1
LEAST_COMMON = 0
EXAMPLE = """\
00100
11110
10110
10111
10101
01111
00111
11100
10000
11001
00010
01010\
"""
def lines_to_matrix(lines: List[str]) -> List[List[str]]:
matrix... | 25.3 | 88 | 0.65975 | 425 | 3,036 | 4.505882 | 0.258824 | 0.075196 | 0.023499 | 0.039687 | 0.402611 | 0.355614 | 0.345692 | 0.244386 | 0.244386 | 0.22141 | 0 | 0.055072 | 0.204545 | 3,036 | 119 | 89 | 25.512605 | 0.737888 | 0.017787 | 0 | 0.181818 | 0 | 0 | 0.067785 | 0.007047 | 0 | 0 | 0 | 0 | 0.113636 | 1 | 0.045455 | false | 0 | 0.022727 | 0 | 0.113636 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
753f674ed26d4491ca57d504a35abe01191fc849 | 1,760 | py | Python | 3_1.py | Nutella-duck/nutella_agent | f9b28dcf4a97ad316732f6ce891037f4391da18d | [
"MIT"
] | null | null | null | 3_1.py | Nutella-duck/nutella_agent | f9b28dcf4a97ad316732f6ce891037f4391da18d | [
"MIT"
] | null | null | null | 3_1.py | Nutella-duck/nutella_agent | f9b28dcf4a97ad316732f6ce891037f4391da18d | [
"MIT"
] | null | null | null | # 데이터 다운로드
from keras.datasets import imdb
(train_data, train_labels), (test_data, test_labels) = imdb.load_data(num_words=10000)
# 데이터 변환
import numpy as np
def vectorize_sequences(sequences, dimension=10000):
results = np.zeros((len(sequences), dimension))
for i, sequence in enumerate(sequences):
r... | 27.936508 | 89 | 0.684659 | 234 | 1,760 | 4.948718 | 0.376068 | 0.025907 | 0.060449 | 0.049223 | 0.159758 | 0.159758 | 0.159758 | 0.159758 | 0.159758 | 0.091537 | 0 | 0.028812 | 0.191477 | 1,760 | 62 | 90 | 28.387097 | 0.784961 | 0.020455 | 0 | 0.05 | 0 | 0 | 0.064065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
75447c4c912f2a5090056786cfa6c9e6c3619652 | 413 | py | Python | configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py | Xlinford/video_mmseg | 28c905b38b10f857301a584ce95949ecf1ec7e0d | [
"Apache-2.0"
] | null | null | null | configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py | Xlinford/video_mmseg | 28c905b38b10f857301a584ce95949ecf1ec7e0d | [
"Apache-2.0"
] | null | null | null | configs/video/camvid/memory_r50-d8_640x640_80k_camvid_video.py | Xlinford/video_mmseg | 28c905b38b10f857301a584ce95949ecf1ec7e0d | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../../_base_/models/memory_r50-d8.py', '../../_base_/datasets/camvid_video.py',
'../../_base_/default_runtime.py', '../../_base_/schedules/schedule_80k.py'
]
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005)
model = dict(
decode_head=dict(num_classes=12), auxiliary_head=di... | 37.545455 | 84 | 0.677966 | 61 | 413 | 4.245902 | 0.688525 | 0.069498 | 0.084942 | 0.138996 | 0.15444 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08311 | 0.096852 | 413 | 10 | 85 | 41.3 | 0.61126 | 0 | 0 | 0 | 0 | 0 | 0.364078 | 0.34466 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
754ca8a8829402ac4848e0cd1a56270189f5a5eb | 2,195 | py | Python | mamprefs/__init__.py | arubertoson/maya-mamprefs | 0bf972322416499c51b67ad083600d3cbaa5d0e7 | [
"MIT"
] | null | null | null | mamprefs/__init__.py | arubertoson/maya-mamprefs | 0bf972322416499c51b67ad083600d3cbaa5d0e7 | [
"MIT"
] | 7 | 2016-01-10T09:48:48.000Z | 2016-07-28T20:40:55.000Z | mamprefs/__init__.py | arubertoson/maya-mamprefs | 0bf972322416499c51b67ad083600d3cbaa5d0e7 | [
"MIT"
] | null | null | null | """
"""
import os
import json
import logging
from maya import cmds
__title__ = 'mayaprefs'
__version__ = '0.1.6'
__author__ = 'Marcus Albertsson <marcus.arubertoson@gmail.com>'
__url__ = 'http://github.com/arubertoson/maya-mayaprefs'
__license__ = 'MIT'
__copyright__ = 'Copyright 2016 Marcus Albertsson'
... | 23.351064 | 68 | 0.627335 | 273 | 2,195 | 4.714286 | 0.417582 | 0.037296 | 0.03108 | 0.040404 | 0.09324 | 0.037296 | 0 | 0 | 0 | 0 | 0 | 0.00492 | 0.259226 | 2,195 | 93 | 69 | 23.602151 | 0.786593 | 0.133485 | 0 | 0 | 0 | 0 | 0.127794 | 0.038395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.019608 | 0.098039 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
754e707729e5a852fcfee89bbfbf837d1fd7207c | 2,973 | py | Python | pysph/examples/rigid_body/bouncing_cube.py | nauaneed/pysph | 9cb9a859934939307c65a25cbf73e4ecc83fea4a | [
"BSD-3-Clause"
] | 293 | 2017-05-26T14:41:15.000Z | 2022-03-28T09:56:16.000Z | pysph/examples/rigid_body/bouncing_cube.py | nauaneed/pysph | 9cb9a859934939307c65a25cbf73e4ecc83fea4a | [
"BSD-3-Clause"
] | 217 | 2017-05-29T15:48:14.000Z | 2022-03-24T16:16:55.000Z | pysph/examples/rigid_body/bouncing_cube.py | nauaneed/pysph | 9cb9a859934939307c65a25cbf73e4ecc83fea4a | [
"BSD-3-Clause"
] | 126 | 2017-05-25T19:17:32.000Z | 2022-03-25T11:23:24.000Z | """A cube bouncing inside a box. (5 seconds)
This is used to test the rigid body equations.
"""
import numpy as np
from pysph.base.kernels import CubicSpline
from pysph.base.utils import get_particle_array_rigid_body
from pysph.sph.equation import Group
from pysph.sph.integrator import EPECIntegrator
from pysph.so... | 30.649485 | 79 | 0.539522 | 418 | 2,973 | 3.739234 | 0.287081 | 0.040307 | 0.038388 | 0.042226 | 0.227127 | 0.180422 | 0.143314 | 0.143314 | 0.143314 | 0.143314 | 0 | 0.041185 | 0.330306 | 2,973 | 96 | 80 | 30.96875 | 0.743847 | 0.064918 | 0 | 0.142857 | 0 | 0 | 0.012992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0.114286 | 0 | 0.214286 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7550b302b143fc382ccf3fdfe9024a6e71f17aa5 | 4,986 | py | Python | jarvis_cli/admin.py | clb6/jarvis-cli | 44dfe0a94243e444eaddc72496efd677be9272e7 | [
"Apache-2.0"
] | null | null | null | jarvis_cli/admin.py | clb6/jarvis-cli | 44dfe0a94243e444eaddc72496efd677be9272e7 | [
"Apache-2.0"
] | 3 | 2016-09-08T03:20:33.000Z | 2016-12-08T05:19:57.000Z | jarvis_cli/admin.py | clb6/jarvis-cli | 44dfe0a94243e444eaddc72496efd677be9272e7 | [
"Apache-2.0"
] | null | null | null | import subprocess, os, time, shutil
from datetime import datetime
import jarvis_cli as jc
from jarvis_cli import config, client
from jarvis_cli.client import log_entry as cle
def create_snapshot(environment, config_map):
snapshot_filepath = "jarvis_snapshot_{0}_{1}.tar.gz".format(environment,
datetime... | 33.918367 | 86 | 0.648416 | 641 | 4,986 | 4.786271 | 0.294852 | 0.049544 | 0.023468 | 0.024446 | 0.191656 | 0.180574 | 0.133638 | 0.133638 | 0.110169 | 0.110169 | 0 | 0.005392 | 0.256117 | 4,986 | 146 | 87 | 34.150685 | 0.821785 | 0.124148 | 0 | 0.126316 | 0 | 0 | 0.077773 | 0.006903 | 0 | 0 | 0 | 0.006849 | 0 | 1 | 0.147368 | false | 0.010526 | 0.052632 | 0.031579 | 0.305263 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7551478291616d2c374c6237ba8190235b7df550 | 4,609 | py | Python | examples/quickstart_mxnet/client.py | Chris-george-anil/flower | 98fb2fcde273c1226cc1f2e1638c1e4d8f35815c | [
"Apache-2.0"
] | 895 | 2020-03-22T20:34:16.000Z | 2022-03-31T15:20:42.000Z | examples/quickstart_mxnet/client.py | Chris-george-anil/flower | 98fb2fcde273c1226cc1f2e1638c1e4d8f35815c | [
"Apache-2.0"
] | 322 | 2020-02-19T10:16:33.000Z | 2022-03-31T09:49:08.000Z | examples/quickstart_mxnet/client.py | Chris-george-anil/flower | 98fb2fcde273c1226cc1f2e1638c1e4d8f35815c | [
"Apache-2.0"
] | 234 | 2020-03-31T10:52:16.000Z | 2022-03-31T14:04:42.000Z | """Flower client example using MXNet for MNIST classification.
The code is generally adapted from:
https://mxnet.apache.org/api/python/docs/tutorials/packages/gluon/image/mnist.html
"""
import flwr as fl
import numpy as np
import mxnet as mx
from mxnet import nd
from mxnet import gluon
from mxnet.gluon import nn
fro... | 33.642336 | 87 | 0.62378 | 586 | 4,609 | 4.737201 | 0.274744 | 0.039625 | 0.020173 | 0.025937 | 0.349424 | 0.332133 | 0.31268 | 0.31268 | 0.290346 | 0.256484 | 0 | 0.012899 | 0.259926 | 4,609 | 136 | 88 | 33.889706 | 0.800938 | 0.057713 | 0 | 0.235849 | 0 | 0 | 0.044542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084906 | false | 0 | 0.075472 | 0 | 0.235849 | 0.028302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
755336617545c70fccce90a28a65b00fb6da7a58 | 2,116 | py | Python | driver/eater.py | riastrad/newSeer | 0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13 | [
"MIT"
] | null | null | null | driver/eater.py | riastrad/newSeer | 0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13 | [
"MIT"
] | 5 | 2017-03-27T17:22:16.000Z | 2017-04-25T03:14:56.000Z | driver/eater.py | riastrad/newSeer | 0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# @Author: Josh Erb <josh.erb>
# @Date: 27-Feb-2017 11:02
# @Email: josh.erb@excella.com
# @Last modified by: josh.erb
# @Last modified time: 27-Feb-2017 11:02
"""
Main driver script for ingesting RSS data. Uses the ArticleFeed() object
from the feeder.py script and a dictionary of public... | 29.802817 | 92 | 0.577977 | 255 | 2,116 | 4.737255 | 0.513725 | 0.023179 | 0.014901 | 0.018212 | 0.021523 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014731 | 0.165879 | 2,116 | 70 | 93 | 30.228571 | 0.669688 | 0.409263 | 0 | 0.086957 | 0 | 0 | 0.400227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
755568c409e234d158d2eba42024254a2b722778 | 919 | py | Python | app/main.py | DanNduati/fastapi | f575d3f51e91aaf2d342e43c613795c01bd9229c | [
"MIT"
] | 1 | 2021-12-21T16:27:16.000Z | 2021-12-21T16:27:16.000Z | app/main.py | DanNduati/FastAPI-social-API | c4270a035b263e434ab49de98c183060e81e0181 | [
"MIT"
] | 1 | 2021-12-18T14:54:16.000Z | 2021-12-19T13:56:11.000Z | app/main.py | DanNduati/fastapi | f575d3f51e91aaf2d342e43c613795c01bd9229c | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.routers import auth
from . import models
from .database import engine
from .routers import posts, users, auth, votes
#create our posts table if its not present
models.Base.metadata.create_all(bind=engine)
# aplication instance
app... | 23.564103 | 50 | 0.710555 | 114 | 919 | 5.631579 | 0.54386 | 0.062305 | 0.099688 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003942 | 0.171926 | 919 | 39 | 51 | 23.564103 | 0.839685 | 0.115343 | 0 | 0 | 0 | 0 | 0.134568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.193548 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
755e3ccae90e818b543931a7a80b80c4d6d28e00 | 1,569 | py | Python | src/fftIfftTests.py | vberthiaume/vblandr | dbd139e7b6172b9dbc97707ff4874bc398de7aaa | [
"Apache-2.0"
] | null | null | null | src/fftIfftTests.py | vberthiaume/vblandr | dbd139e7b6172b9dbc97707ff4874bc398de7aaa | [
"Apache-2.0"
] | 10 | 2016-08-29T20:06:05.000Z | 2016-10-27T20:40:58.000Z | src/fftIfftTests.py | vberthiaume/vblandr | dbd139e7b6172b9dbc97707ff4874bc398de7aaa | [
"Apache-2.0"
] | null | null | null | import subprocess as sp
import scikits.audiolab
import numpy as np
from scipy.fftpack import fft, ifft
from scipy.io import wavfile
#--CONVERT MP3 TO WAV------------------------------------------
song_path = '/home/gris/Music/vblandr/test_small/punk/07 Alkaline Trio - Only Love.mp3'
command = [ 'ffmpeg',
'-i'... | 35.659091 | 124 | 0.615679 | 213 | 1,569 | 4.42723 | 0.497653 | 0.084836 | 0.041357 | 0.063627 | 0.065748 | 0.065748 | 0 | 0 | 0 | 0 | 0 | 0.032184 | 0.16826 | 1,569 | 43 | 125 | 36.488372 | 0.690421 | 0.463352 | 0 | 0 | 0 | 0.045455 | 0.20919 | 0.096735 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.227273 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7560a82fac322ef2d8c50e83c01dd45192035ed7 | 372 | py | Python | MIC/LCD12864/urls.py | blacksea3/MainMIC | 02f226bce63c6b85f6922420fff4da885e6c24a3 | [
"Apache-2.0"
] | null | null | null | MIC/LCD12864/urls.py | blacksea3/MainMIC | 02f226bce63c6b85f6922420fff4da885e6c24a3 | [
"Apache-2.0"
] | null | null | null | MIC/LCD12864/urls.py | blacksea3/MainMIC | 02f226bce63c6b85f6922420fff4da885e6c24a3 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.http import HttpResponseRedirect
from LCD12864.views import *
def auto_redirect(request):
return HttpResponseRedirect('/MIC/index/')
urlpatterns = patterns('',
url(r'index/$', index),
url(r'search/$', search),
url(r'update_database/... | 24.8 | 51 | 0.704301 | 45 | 372 | 5.733333 | 0.533333 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015823 | 0.150538 | 372 | 15 | 52 | 24.8 | 0.800633 | 0 | 0 | 0 | 0 | 0 | 0.117962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7562fcbbdac668092cdb6d5710b89f8c5f901a32 | 6,259 | py | Python | visgraph/tests/test_graphcore.py | vEpiphyte/vivisect | 14947a53c6781175f0aa83d49cc16c524a2e23a3 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-12-23T19:23:17.000Z | 2020-12-23T19:23:17.000Z | visgraph/tests/test_graphcore.py | vEpiphyte/vivisect | 14947a53c6781175f0aa83d49cc16c524a2e23a3 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | visgraph/tests/test_graphcore.py | vEpiphyte/vivisect | 14947a53c6781175f0aa83d49cc16c524a2e23a3 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-12-23T19:23:58.000Z | 2020-12-23T19:23:58.000Z | import unittest
import visgraph.graphcore as v_graphcore
s1paths = [
('a','c','f'),
('a','b','d','f'),
('a','b','e','f'),
]
s2paths = [
('a','b'),
('a','b','c'),
]
class GraphCoreTest(unittest.TestCase):
def getSampleGraph1(self):
# simple branching/merging graph
g = v_graphc... | 28.321267 | 95 | 0.537466 | 751 | 6,259 | 4.447403 | 0.147803 | 0.075449 | 0.026946 | 0.046707 | 0.544012 | 0.474252 | 0.46497 | 0.337425 | 0.287725 | 0.249701 | 0 | 0.013252 | 0.288704 | 6,259 | 220 | 96 | 28.45 | 0.736972 | 0.010705 | 0 | 0.320513 | 0 | 0 | 0.041478 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.096154 | false | 0 | 0.012821 | 0 | 0.134615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3287946bcd7a026ba36e730bf9b3548a5dd79b1 | 4,029 | py | Python | chatty_goose/agents/chat.py | saileshnankani/chatty-goose | ef3a27119d6825a96ae85d1453d6b4eac4ed22b7 | [
"Apache-2.0"
] | 24 | 2021-03-08T09:53:59.000Z | 2022-03-17T06:47:06.000Z | chatty_goose/agents/chat.py | saileshnankani/chatty-goose | ef3a27119d6825a96ae85d1453d6b4eac4ed22b7 | [
"Apache-2.0"
] | 10 | 2021-03-08T13:35:54.000Z | 2021-11-15T03:32:37.000Z | chatty_goose/agents/chat.py | saileshnankani/chatty-goose | ef3a27119d6825a96ae85d1453d6b4eac4ed22b7 | [
"Apache-2.0"
] | 8 | 2021-03-03T00:37:18.000Z | 2021-08-01T00:50:47.000Z | import logging
from chatty_goose.cqr import Hqe, Ntr
from chatty_goose.pipeline import RetrievalPipeline
from chatty_goose.settings import HqeSettings, NtrSettings
from chatty_goose.types import CqrType, PosFilter
from parlai.core.agents import Agent, register_agent
from pyserini.search import SimpleSearcher
@regist... | 44.274725 | 131 | 0.641598 | 498 | 4,029 | 5.044177 | 0.303213 | 0.050159 | 0.094745 | 0.035828 | 0.155653 | 0.10629 | 0.085589 | 0.085589 | 0.068471 | 0.068471 | 0 | 0.015098 | 0.227352 | 4,029 | 90 | 132 | 44.766667 | 0.791841 | 0.029784 | 0 | 0 | 0 | 0 | 0.219944 | 0.006152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0 | 0.119403 | 0 | 0.238806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f32993767d59acc690a30337b62cd5533087e465 | 5,639 | py | Python | analysis/utils.py | VUB-HYDR/2022_Vanderkelen_etal_GMD | eceb5507a00c96d559b9611125935577ab84991b | [
"MIT"
] | null | null | null | analysis/utils.py | VUB-HYDR/2022_Vanderkelen_etal_GMD | eceb5507a00c96d559b9611125935577ab84991b | [
"MIT"
] | null | null | null | analysis/utils.py | VUB-HYDR/2022_Vanderkelen_etal_GMD | eceb5507a00c96d559b9611125935577ab84991b | [
"MIT"
] | null | null | null | """
Utils and functions to for MizuRoute postprocessing on Cheyenne
Inne Vanderkelen - March 2021
"""
import numpy as np
def set_plot_param():
"""Set my own customized plotting parameters"""
import matplotlib as mpl
mpl.rc('xtick',labelsize=12)
mpl.rc('ytick',labelsize=12)
mpl.rc('axes',tit... | 34.384146 | 124 | 0.609328 | 699 | 5,639 | 4.793991 | 0.320458 | 0.016413 | 0.010743 | 0.014324 | 0.163533 | 0.078186 | 0.043569 | 0.022083 | 0.022083 | 0.022083 | 0 | 0.01658 | 0.283384 | 5,639 | 164 | 125 | 34.384146 | 0.81267 | 0.316368 | 0 | 0.171053 | 0 | 0 | 0.092345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.039474 | 0 | 0.236842 | 0.039474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f32c7c7a86c83603395a612781c31e2718a2e153 | 14,611 | py | Python | fhirstore/fhirstore.py | arkhn/pyfhirstore | dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6 | [
"Apache-2.0"
] | 15 | 2019-10-04T14:29:42.000Z | 2021-12-27T09:15:07.000Z | fhirstore/fhirstore.py | arkhn/pyfhirstore | dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6 | [
"Apache-2.0"
] | 34 | 2019-10-08T16:37:26.000Z | 2020-11-30T17:51:59.000Z | fhirstore/fhirstore.py | arkhn/pyfhirstore | dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6 | [
"Apache-2.0"
] | 1 | 2020-12-14T06:13:19.000Z | 2020-12-14T06:13:19.000Z | import sys
import logging
from typing import Union, Dict, Optional
import json
from elasticsearch import Elasticsearch
from elasticsearch.exceptions import (
NotFoundError as ESNotFoundError,
RequestError as ESRequestError,
AuthenticationException as ESAuthenticationException,
)
import pydantic
from pymong... | 39.596206 | 100 | 0.605024 | 1,566 | 14,611 | 5.53576 | 0.17433 | 0.063675 | 0.013496 | 0.016611 | 0.409044 | 0.359557 | 0.321952 | 0.312493 | 0.312493 | 0.306264 | 0 | 0.000787 | 0.304497 | 14,611 | 368 | 101 | 39.703804 | 0.852293 | 0.202519 | 0 | 0.287554 | 0 | 0 | 0.147434 | 0.014752 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051502 | false | 0 | 0.081545 | 0.004292 | 0.291845 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f330826045b7dfd8da77b8e1ad7b89465919a84a | 3,684 | py | Python | Binary Tree/7.1-binary_tree.py | neeveermoree/data_structures_and_algorithms | 8aa37cade53539909383fb9d4952b13ca19c931a | [
"MIT"
] | null | null | null | Binary Tree/7.1-binary_tree.py | neeveermoree/data_structures_and_algorithms | 8aa37cade53539909383fb9d4952b13ca19c931a | [
"MIT"
] | null | null | null | Binary Tree/7.1-binary_tree.py | neeveermoree/data_structures_and_algorithms | 8aa37cade53539909383fb9d4952b13ca19c931a | [
"MIT"
] | null | null | null | from utils_queue import Queue
class _Node:
__slots__ = '_val', '_left', '_right'
def __init__(self, val, left=None, right=None):
self._val = val
self._left = left
self._right = right
class BinaryTree:
__slots__ = '_root'
def __init__(self, root=None):
self._root = roo... | 24.891892 | 57 | 0.580347 | 439 | 3,684 | 4.548975 | 0.15262 | 0.088132 | 0.055083 | 0.08012 | 0.429644 | 0.370556 | 0.305458 | 0.305458 | 0.305458 | 0.305458 | 0 | 0.020784 | 0.307818 | 3,684 | 147 | 58 | 25.061224 | 0.762353 | 0 | 0 | 0.221154 | 0 | 0 | 0.085544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0 | 0.009615 | 0.009615 | 0.192308 | 0.221154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3334adaaf08994c3d3ed59dde038655efaef8ef | 3,798 | py | Python | src/MATGenerator.py | yumataesu/TouchDesigner-ShaderBuilder | 5f9e8300603afc91cd60bf0c91061d11401520d1 | [
"MIT"
] | 1 | 2022-02-13T13:19:56.000Z | 2022-02-13T13:19:56.000Z | src/MATGenerator.py | yumataesu/TouchDesigner-ShaderBuilder | 5f9e8300603afc91cd60bf0c91061d11401520d1 | [
"MIT"
] | null | null | null | src/MATGenerator.py | yumataesu/TouchDesigner-ShaderBuilder | 5f9e8300603afc91cd60bf0c91061d11401520d1 | [
"MIT"
] | null | null | null | import platform
class MATGenerator:
def __init__(self, ownerComp):
self.ownerComp = ownerComp
self.OUT_glsl_struct = ''
self.OUT_pixel = ''
self.OUT_vertex = ''
self.use_alpha_hashed = False
self.Update(self.ownerComp.op('in1'))
def eval_template(self, tmpl_dat_name, ctx):
t = op.ShaderB... | 26.013699 | 112 | 0.614007 | 534 | 3,798 | 4.264045 | 0.219101 | 0.049188 | 0.02108 | 0.043917 | 0.288538 | 0.234958 | 0.21827 | 0.207729 | 0.184014 | 0.153711 | 0 | 0.007177 | 0.229595 | 3,798 | 145 | 113 | 26.193103 | 0.771018 | 0.009742 | 0 | 0.314815 | 0 | 0 | 0.175166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.009259 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f335a88172969ef4b07ebc46cdb0148f28a15f96 | 8,820 | py | Python | mixtas/mixtas/pedidos/views.py | stad-team/stad-mixtas | 68513f247eeedd7f731d18339891146634619af1 | [
"MIT"
] | null | null | null | mixtas/mixtas/pedidos/views.py | stad-team/stad-mixtas | 68513f247eeedd7f731d18339891146634619af1 | [
"MIT"
] | null | null | null | mixtas/mixtas/pedidos/views.py | stad-team/stad-mixtas | 68513f247eeedd7f731d18339891146634619af1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
STAD TEAM
~~~~~~~~~~
"""
from __future__ import absolute_import, unicode_literals, print_function
import win32print
import win32ui
from escpos import printer
from datetime import datetime
from .models import Mesas, DetalleOrden, Simbolos, Menu, Folio
from rest_framework.viewsets import M... | 30.413793 | 125 | 0.566667 | 831 | 8,820 | 5.939832 | 0.216607 | 0.037885 | 0.033428 | 0.040113 | 0.449352 | 0.38513 | 0.307942 | 0.263371 | 0.247569 | 0.247569 | 0 | 0.016084 | 0.316213 | 8,820 | 289 | 126 | 30.519031 | 0.802355 | 0.062245 | 0 | 0.4 | 0 | 0.005 | 0.152335 | 0.005094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035 | false | 0 | 0.055 | 0 | 0.205 | 0.195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f337e2d1736dd597f92bbbb31718a4f5323d8684 | 2,656 | py | Python | setup.py | batterseapower/hdf5storage | 9ccec8818e11c2a66a0e834bd2be2e3d3a6761b7 | [
"BSD-2-Clause"
] | null | null | null | setup.py | batterseapower/hdf5storage | 9ccec8818e11c2a66a0e834bd2be2e3d3a6761b7 | [
"BSD-2-Clause"
] | null | null | null | setup.py | batterseapower/hdf5storage | 9ccec8818e11c2a66a0e834bd2be2e3d3a6761b7 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2013-2020, Freja Nordsiek
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions ... | 42.15873 | 110 | 0.707078 | 330 | 2,656 | 5.666667 | 0.587879 | 0.019251 | 0.018182 | 0.024599 | 0.098396 | 0.072727 | 0.072727 | 0.072727 | 0.072727 | 0.072727 | 0 | 0.017013 | 0.203313 | 2,656 | 62 | 111 | 42.83871 | 0.86673 | 0.486822 | 0 | 0 | 0 | 0.030303 | 0.488407 | 0.016455 | 0 | 0 | 0.006731 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.060606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f338e98f4e08bde2d9d5d0b8509480a59736e419 | 3,192 | py | Python | polaris_health/util/log.py | pjns-lb/polaris-gslb | d5c4f1865ceb4311a6c36c7c6d23462565864e98 | [
"BSD-3-Clause"
] | 225 | 2015-09-02T16:53:34.000Z | 2022-03-19T16:52:32.000Z | polaris_health/util/log.py | pjns-lb/polaris-gslb | d5c4f1865ceb4311a6c36c7c6d23462565864e98 | [
"BSD-3-Clause"
] | 60 | 2015-09-08T09:39:00.000Z | 2022-02-01T10:42:34.000Z | polaris_health/util/log.py | pjns-lb/polaris-gslb | d5c4f1865ceb4311a6c36c7c6d23462565864e98 | [
"BSD-3-Clause"
] | 77 | 2015-09-08T16:23:21.000Z | 2022-03-19T15:57:23.000Z | # -*- coding: utf-8 -*-
import logging
import logging.config
from polaris_health import Error, config
__all__ = [ 'setup', 'setup_debug' ]
LOG = logging.getLogger(__name__)
LOG.addHandler(logging.NullHandler())
FORMAT = '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
class DatagramText(logging.handlers.Data... | 23.470588 | 68 | 0.518797 | 292 | 3,192 | 5.530822 | 0.349315 | 0.044582 | 0.034056 | 0.017337 | 0.178328 | 0.1387 | 0.1387 | 0.1387 | 0.101548 | 0.101548 | 0 | 0.001408 | 0.332393 | 3,192 | 135 | 69 | 23.644444 | 0.756452 | 0.114662 | 0 | 0.290698 | 0 | 0 | 0.232808 | 0.047278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.034884 | 0 | 0.104651 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3395aa0c5cc601517f789fbb804e0b43eadb2eb | 4,147 | py | Python | osbrain/tests/test_agent_sync_publications_handlers.py | RezaBehzadpour/osbrain | 1b7061bfa6bcfa2176685081fd39c5c971107d51 | [
"Apache-2.0"
] | 176 | 2016-07-12T20:05:32.000Z | 2022-01-18T10:12:07.000Z | osbrain/tests/test_agent_sync_publications_handlers.py | RezaBehzadpour/osbrain | 1b7061bfa6bcfa2176685081fd39c5c971107d51 | [
"Apache-2.0"
] | 358 | 2016-08-04T09:21:35.000Z | 2021-10-15T07:20:07.000Z | osbrain/tests/test_agent_sync_publications_handlers.py | RezaBehzadpour/osbrain | 1b7061bfa6bcfa2176685081fd39c5c971107d51 | [
"Apache-2.0"
] | 50 | 2016-07-17T11:52:36.000Z | 2021-05-10T14:48:45.000Z | """
Test file for synchronized publications handlers.
"""
import pytest
from osbrain import Agent
from osbrain import run_agent
from osbrain.helper import wait_agent_attr
from .common import append_received
class ServerSyncPub(Agent):
def on_init(self):
self.received = []
self.bind('SYNC_PUB', a... | 30.718519 | 79 | 0.67591 | 518 | 4,147 | 5.281853 | 0.250965 | 0.023026 | 0.019006 | 0.020468 | 0.498904 | 0.44481 | 0.349415 | 0.340643 | 0.26864 | 0.236111 | 0 | 0.002766 | 0.215336 | 4,147 | 134 | 80 | 30.947761 | 0.838045 | 0.195804 | 0 | 0.317073 | 0 | 0 | 0.139155 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 1 | 0.121951 | false | 0 | 0.060976 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3407e32f5f6523d6af3047286ae165f92497d48 | 1,988 | py | Python | webserver.py | ChaunceyXCX/e_gate | 1df172c1293b54ec9d47410b90bf5bd00c43e96b | [
"MIT"
] | null | null | null | webserver.py | ChaunceyXCX/e_gate | 1df172c1293b54ec9d47410b90bf5bd00c43e96b | [
"MIT"
] | null | null | null | webserver.py | ChaunceyXCX/e_gate | 1df172c1293b54ec9d47410b90bf5bd00c43e96b | [
"MIT"
] | null | null | null | import picoweb
import gpio
import network
import ujson
import wlanauto
app = picoweb.WebApp("SafeGate")
@app.route("/")
def index(req, resp):
yield from picoweb.start_response(resp)
htmFile = open('./static/gate.html','r')
for line in htmFile:
yield from resp.awrite(b""+line)
# yield from resp.... | 28 | 78 | 0.678068 | 269 | 1,988 | 4.899628 | 0.275093 | 0.102428 | 0.078907 | 0.115326 | 0.379363 | 0.379363 | 0.379363 | 0.379363 | 0.379363 | 0.379363 | 0 | 0.00185 | 0.184105 | 1,988 | 71 | 79 | 28 | 0.810728 | 0.012072 | 0 | 0.177419 | 0 | 0 | 0.094753 | 0.010698 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.016129 | 0.080645 | 0 | 0.225806 | 0.048387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3416451d8e96fafe38d11507d5a845e008e0c70 | 9,046 | py | Python | dnn_reco/export_model.py | mxmeier/dnn_reco | c26ca45c7e0f9b160a99598d25e29779a674707f | [
"MIT"
] | null | null | null | dnn_reco/export_model.py | mxmeier/dnn_reco | c26ca45c7e0f9b160a99598d25e29779a674707f | [
"MIT"
] | null | null | null | dnn_reco/export_model.py | mxmeier/dnn_reco | c26ca45c7e0f9b160a99598d25e29779a674707f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function
import os
import shutil
import glob
import click
import ruamel.yaml as yaml
import tensorflow as tf
from dnn_reco import misc
from dnn_reco.setup_manager import SetupManager
from dnn_reco.data_handler import DataHandler
from ... | 40.565022 | 79 | 0.612425 | 1,044 | 9,046 | 5.021073 | 0.210728 | 0.054941 | 0.022892 | 0.024418 | 0.185807 | 0.162724 | 0.10187 | 0.028997 | 0.015261 | 0 | 0 | 0.003473 | 0.236016 | 9,046 | 222 | 80 | 40.747748 | 0.755028 | 0.162282 | 0 | 0.076389 | 0 | 0 | 0.219251 | 0.063102 | 0 | 0 | 0 | 0.004505 | 0 | 1 | 0.013889 | false | 0 | 0.083333 | 0 | 0.097222 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f341934b753020a83775024239d87aaaed4b7ee7 | 11,379 | py | Python | neuralparticles/scripts/run_punet.py | senliontec/NeuralParticles | 8ede22bfb43e60be175b9cef19045c1c7b1ffb73 | [
"MIT"
] | null | null | null | neuralparticles/scripts/run_punet.py | senliontec/NeuralParticles | 8ede22bfb43e60be175b9cef19045c1c7b1ffb73 | [
"MIT"
] | null | null | null | neuralparticles/scripts/run_punet.py | senliontec/NeuralParticles | 8ede22bfb43e60be175b9cef19045c1c7b1ffb73 | [
"MIT"
] | null | null | null | import numpy as np
import h5py
import keras
import keras.backend as K
from glob import glob
import json
import math, scipy
from scipy.optimize import linear_sum_assignment
import time
from collections import OrderedDict
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import keras
from neura... | 37.065147 | 330 | 0.61508 | 1,722 | 11,379 | 3.842044 | 0.138211 | 0.031741 | 0.016929 | 0.031741 | 0.370012 | 0.330411 | 0.294135 | 0.279625 | 0.27237 | 0.214631 | 0 | 0.024215 | 0.2161 | 11,379 | 306 | 331 | 37.186275 | 0.717489 | 0.06635 | 0 | 0.222222 | 0 | 0 | 0.079402 | 0.01172 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.101852 | 0 | 0.101852 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3437fdf05ac2adaef08bbdcb3bffd59e965cdee | 1,120 | py | Python | client/src/service/send_cheat_state.py | y-yu/qrand | b041c3c9cccaf20ee24a0ad90c81b89d3dc753bf | [
"MIT"
] | 3 | 2020-02-02T09:04:21.000Z | 2020-02-09T07:25:59.000Z | client/src/service/send_cheat_state.py | y-yu/qrand | b041c3c9cccaf20ee24a0ad90c81b89d3dc753bf | [
"MIT"
] | null | null | null | client/src/service/send_cheat_state.py | y-yu/qrand | b041c3c9cccaf20ee24a0ad90c81b89d3dc753bf | [
"MIT"
] | null | null | null | from ..repository import quantum, qrand_api_caller
from random import Random
from qulacs import QuantumState
from qulacs.gate import H
# クライアントがチートをするためのサービス。
class PostCheatStateService:
def __init__(
self,
random_impl: Random,
send_qubit_impl: qrand_api_caller.QRandApiRepository,
):
... | 27.317073 | 72 | 0.63125 | 128 | 1,120 | 5.25 | 0.453125 | 0.059524 | 0.077381 | 0.059524 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01827 | 0.266964 | 1,120 | 40 | 73 | 28 | 0.800244 | 0.111607 | 0 | 0 | 0 | 0 | 0.0273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f347cd2141e29b71f96f81b6d7df95e5fa292a36 | 1,655 | py | Python | ecc_attack_code/ecc_attack.py | gbanegas/SDCECC | 987017be79448b2a0d786b9fe9f5f1b99aa14e1f | [
"Apache-2.0"
] | null | null | null | ecc_attack_code/ecc_attack.py | gbanegas/SDCECC | 987017be79448b2a0d786b9fe9f5f1b99aa14e1f | [
"Apache-2.0"
] | null | null | null | ecc_attack_code/ecc_attack.py | gbanegas/SDCECC | 987017be79448b2a0d786b9fe9f5f1b99aa14e1f | [
"Apache-2.0"
] | null | null | null | import random
import math
from itertools import product
from ecc_types import *
def bitfield(n):
return [int(digit) for digit in bin(n)[2:]]
class AttackECC():
def __init__(self, ecc, gen_ed25519):
self.ecc = ecc
self.gen_data = gen_ed25519
self.to_divide = float(2**self.ecc.get_k())... | 27.583333 | 104 | 0.524471 | 255 | 1,655 | 3.121569 | 0.254902 | 0.050251 | 0.035176 | 0.015075 | 0.103015 | 0.103015 | 0.067839 | 0 | 0 | 0 | 0 | 0.021978 | 0.340181 | 1,655 | 59 | 105 | 28.050847 | 0.70696 | 0.030211 | 0 | 0 | 0 | 0 | 0.01995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0 | 0.085106 | 0.021277 | 0.297872 | 0.106383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f349db6f7d61685b49d49c7f0b47f4281e88cd8e | 2,913 | py | Python | tests/utilities.py | Terrencebosco/lambdata-dspt7-tb | 9a5be4e6e0fea1801393253221fcca0511ded83c | [
"MIT"
] | null | null | null | tests/utilities.py | Terrencebosco/lambdata-dspt7-tb | 9a5be4e6e0fea1801393253221fcca0511ded83c | [
"MIT"
] | null | null | null | tests/utilities.py | Terrencebosco/lambdata-dspt7-tb | 9a5be4e6e0fea1801393253221fcca0511ded83c | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
# helper function for dropping columns with nan values.
def drop_high_nan(df, num_nans):
'''
drop columns with preselected number of nans
df = selected dataframe
num_nans = the number of nans as a threshold t... | 31.663043 | 79 | 0.645726 | 413 | 2,913 | 4.372881 | 0.300242 | 0.03876 | 0.054264 | 0.076412 | 0.147841 | 0.078627 | 0.078627 | 0 | 0 | 0 | 0 | 0.008019 | 0.272228 | 2,913 | 92 | 80 | 31.663043 | 0.843868 | 0.415036 | 0 | 0 | 0 | 0 | 0.007687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.085714 | 0 | 0.371429 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f34a82741807c790a71d945cf37f449008072a15 | 4,963 | py | Python | main.py | Nircek/telnet-communicator-server | 24abe728879225e4a1fa75ef17056f9de38088fb | [
"MIT"
] | null | null | null | main.py | Nircek/telnet-communicator-server | 24abe728879225e4a1fa75ef17056f9de38088fb | [
"MIT"
] | 6 | 2019-04-22T14:08:04.000Z | 2019-06-28T09:10:44.000Z | main.py | Nircek/telnet-communicator-server | 24abe728879225e4a1fa75ef17056f9de38088fb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# MIT License
# Copyright (c) 2019 Nircek
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy... | 32.437908 | 85 | 0.574048 | 613 | 4,963 | 4.579119 | 0.319739 | 0.053438 | 0.011756 | 0.016031 | 0.124332 | 0.069825 | 0.03705 | 0.03705 | 0.03705 | 0.03705 | 0 | 0.007173 | 0.325811 | 4,963 | 152 | 86 | 32.651316 | 0.831739 | 0.222849 | 0 | 0.382114 | 0 | 0 | 0.027372 | 0 | 0 | 0 | 0.002086 | 0 | 0 | 1 | 0.121951 | false | 0.03252 | 0.02439 | 0 | 0.170732 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f34b3398d34130125064588eeea3a67c4b10f9ab | 1,082 | py | Python | apps/accounts/events.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 206 | 2015-10-15T07:05:08.000Z | 2021-02-19T11:48:36.000Z | apps/accounts/events.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 8 | 2017-10-16T10:18:31.000Z | 2022-03-09T14:24:27.000Z | apps/accounts/events.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 61 | 2015-10-15T08:12:44.000Z | 2022-03-10T12:25:06.000Z | # Python Standard Library Imports
# Third Party (PyPI) Imports
import rollbar
# HTK Imports
from htk.utils import htk_setting
from htk.utils.notifications import slack_notify
def failed_recaptcha_on_login(user, request=None):
extra_data = {
'user' : {
'id': user.id,
'username': u... | 24.590909 | 75 | 0.651571 | 118 | 1,082 | 5.754237 | 0.347458 | 0.088365 | 0.035346 | 0.05891 | 0.276878 | 0.276878 | 0.276878 | 0.132548 | 0 | 0 | 0 | 0 | 0.254159 | 1,082 | 43 | 76 | 25.162791 | 0.841388 | 0.064695 | 0 | 0.137931 | 0 | 0 | 0.212302 | 0.061508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f34bef219deb20fe6f67ee4c3842b697e7cda3a6 | 501 | py | Python | Exercícios/ex042.py | JefterV/Cursoemvideo.py | e65ac53a4e38793be3039d360e7127e1c5d51030 | [
"MIT"
] | 3 | 2020-11-24T17:20:34.000Z | 2020-12-03T01:19:31.000Z | Exercícios/ex042.py | JefterV/Cursoemvideo.py | e65ac53a4e38793be3039d360e7127e1c5d51030 | [
"MIT"
] | null | null | null | Exercícios/ex042.py | JefterV/Cursoemvideo.py | e65ac53a4e38793be3039d360e7127e1c5d51030 | [
"MIT"
] | 1 | 2021-01-03T00:48:48.000Z | 2021-01-03T00:48:48.000Z | import playsound
r1 = int(input('Segmento um: '))
r2 = int(input('Segmento dois: '))
r3 = int(input('Segmento três: '))
if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2:
print('Os segmentos acima, PODEM formar um triangulo', end=' ')
if r1 == r2 and r2 == r3:
playsound.playsound('rllx.mp3', tr)
... | 33.4 | 67 | 0.59481 | 71 | 501 | 4.197183 | 0.422535 | 0.053691 | 0.161074 | 0.14094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056 | 0.251497 | 501 | 15 | 68 | 33.4 | 0.738667 | 0 | 0 | 0.133333 | 0 | 0 | 0.340637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f34c12ad843b85b4615c748246bcb5d45ef5266f | 9,584 | py | Python | data_extraction/updatedb.py | amajee11us/driving-data-collection-reference-kit | 92eb839e55c0f0c65992b62aa71c3f63ecad4925 | [
"BSD-3-Clause"
] | 10 | 2019-12-04T06:30:03.000Z | 2022-01-04T23:09:14.000Z | data_extraction/updatedb.py | amajee11us/driving-data-collection-reference-kit | 92eb839e55c0f0c65992b62aa71c3f63ecad4925 | [
"BSD-3-Clause"
] | 6 | 2019-01-24T05:39:52.000Z | 2021-03-16T05:25:00.000Z | data_extraction/updatedb.py | amajee11us/driving-data-collection-reference-kit | 92eb839e55c0f0c65992b62aa71c3f63ecad4925 | [
"BSD-3-Clause"
] | 8 | 2019-02-11T03:11:56.000Z | 2021-08-18T08:00:51.000Z | #!/usr/bin/env python
'''
Updates db will all info.json files found in the provided dir path.
This is gnerally used to update db periodically from all info.json files available in dataset
Params:
dataset_path - dir containing rosbag file to search for corresponding info.json files
Copyright (C) 2019 Intel Corpor... | 36.030075 | 135 | 0.632095 | 1,144 | 9,584 | 5.216783 | 0.229895 | 0.022788 | 0.017426 | 0.022118 | 0.443029 | 0.421079 | 0.414879 | 0.414879 | 0.414879 | 0.400134 | 0 | 0.011809 | 0.257826 | 9,584 | 266 | 136 | 36.030075 | 0.827218 | 0.156928 | 0 | 0.52356 | 0 | 0 | 0.175132 | 0.002843 | 0 | 0 | 0 | 0.007519 | 0 | 1 | 0.026178 | false | 0 | 0.062827 | 0 | 0.104712 | 0.052356 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f34e8ae9da4353d89753677155c3922a13e63d3a | 336 | py | Python | TPs/TP7/compute_pi.py | Aympab/BigDataHadoopSparkDaskCourse | 42f9e0475cbd7c5db240ccc6dc00c19b9006012a | [
"Apache-2.0"
] | null | null | null | TPs/TP7/compute_pi.py | Aympab/BigDataHadoopSparkDaskCourse | 42f9e0475cbd7c5db240ccc6dc00c19b9006012a | [
"Apache-2.0"
] | null | null | null | TPs/TP7/compute_pi.py | Aympab/BigDataHadoopSparkDaskCourse | 42f9e0475cbd7c5db240ccc6dc00c19b9006012a | [
"Apache-2.0"
] | 1 | 2022-01-31T17:14:27.000Z | 2022-01-31T17:14:27.000Z | import findspark
findspark.init()
import pyspark
import random
sc = pyspark.SparkContext(appName="Pi")
num_samples = 100000000
def inside(p):
x, y = random.random(), random.random()
return x*x + y*y < 1
count = sc.parallelize(range(0, num_samples)).filter(inside).count()
pi = 4 * count / num_samples
print... | 16.8 | 68 | 0.696429 | 50 | 336 | 4.62 | 0.54 | 0.12987 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.160714 | 336 | 19 | 69 | 17.684211 | 0.776596 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f34f25a84c269a3d04e4b16d8fc56c5a7bc7f675 | 4,296 | py | Python | utils.py | bmack/example-repository-offline | 2cf9c2c26ef35b60d669d863b8346b8b6213f584 | [
"MIT"
] | null | null | null | utils.py | bmack/example-repository-offline | 2cf9c2c26ef35b60d669d863b8346b8b6213f584 | [
"MIT"
] | null | null | null | utils.py | bmack/example-repository-offline | 2cf9c2c26ef35b60d669d863b8346b8b6213f584 | [
"MIT"
] | null | null | null | # common utilities for other scripts
from tuf import repository_tool as rt
import os
import shutil
# shorthand to create keypairs
def write_and_import_keypair(keystorefolder, filename):
pathpriv = keystorefolder + '/{}_key'.format(filename)
pathpub = '{}.pub'.format(pathpriv)
rt.generate_and_write_ed2551... | 47.208791 | 107 | 0.79027 | 527 | 4,296 | 6.119545 | 0.212524 | 0.055814 | 0.044651 | 0.059535 | 0.662016 | 0.631938 | 0.584806 | 0.584806 | 0.47938 | 0.457674 | 0 | 0.006621 | 0.121043 | 4,296 | 90 | 108 | 47.733333 | 0.847458 | 0.166899 | 0 | 0.451613 | 0 | 0 | 0.046029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0.048387 | 0.193548 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f34f5a1bf3d1e8af420a24b49d952e59caad3230 | 1,186 | py | Python | utils/util.py | xzhang2016/tfagent | 433df751f0c5cbe3d730d8e912a05a2430dd165b | [
"BSD-2-Clause"
] | null | null | null | utils/util.py | xzhang2016/tfagent | 433df751f0c5cbe3d730d8e912a05a2430dd165b | [
"BSD-2-Clause"
] | 1 | 2020-06-11T17:03:22.000Z | 2020-06-11T17:03:22.000Z | utils/util.py | xzhang2016/tfagent | 433df751f0c5cbe3d730d8e912a05a2430dd165b | [
"BSD-2-Clause"
] | 3 | 2017-04-19T15:38:31.000Z | 2019-05-07T21:18:52.000Z | import urllib.request
import os
def merge_dict_sum(dict1, dict2):
"""
Merge two dictionaries and add values of common keys.
Values of the input dicts can be any addable objects, like numeric, str, list.
"""
dict3 = {**dict1, **dict2}
for key, value in dict3.items():
if key in dict1 and ... | 26.355556 | 82 | 0.598651 | 163 | 1,186 | 4.282209 | 0.460123 | 0.057307 | 0.034384 | 0.051576 | 0.386819 | 0.386819 | 0.292264 | 0.292264 | 0.292264 | 0.292264 | 0 | 0.02657 | 0.301855 | 1,186 | 44 | 83 | 26.954545 | 0.816425 | 0.231872 | 0 | 0.296296 | 0 | 0 | 0.002326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.074074 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f350076941ab65f9dd7c2c16db5664edfd92e574 | 1,096 | py | Python | qnn/input/havlicek_data_handler.py | bjader/quantum-neural-network | 3f23e14fac8700d3f48593f0727c6da59af5f77f | [
"MIT"
] | 9 | 2021-06-08T14:02:38.000Z | 2022-03-08T10:14:22.000Z | qnn/input/havlicek_data_handler.py | bjader/quantum-neural-network | 3f23e14fac8700d3f48593f0727c6da59af5f77f | [
"MIT"
] | null | null | null | qnn/input/havlicek_data_handler.py | bjader/quantum-neural-network | 3f23e14fac8700d3f48593f0727c6da59af5f77f | [
"MIT"
] | 1 | 2021-06-12T16:28:53.000Z | 2021-06-12T16:28:53.000Z | import numpy as np
from qiskit import QuantumRegister, QuantumCircuit
from qiskit.circuit import Parameter
from input.data_handler import DataHandler
class HavlicekDataHandler(DataHandler):
"""
Data encoding based on Havlicek et al. Nature 567, pp209–212 (2019). For quantum circuit diagram see Fig. 4 in
... | 29.621622 | 114 | 0.611314 | 149 | 1,096 | 4.328859 | 0.42953 | 0.046512 | 0.04031 | 0.049612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034308 | 0.281934 | 1,096 | 36 | 115 | 30.444444 | 0.78399 | 0.116788 | 0 | 0 | 0 | 0 | 0.007384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.173913 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f350d58a0b541e697505f5ba96c2ceb95944d171 | 1,951 | py | Python | prep_cars_data.py | ppik/loxodon | c9d3148ec70f281ba28b3b39e1d843db2fd9a3ac | [
"MIT"
] | null | null | null | prep_cars_data.py | ppik/loxodon | c9d3148ec70f281ba28b3b39e1d843db2fd9a3ac | [
"MIT"
] | 1 | 2018-01-18T09:04:47.000Z | 2018-01-18T14:29:13.000Z | prep_cars_data.py | ppik/loxodon | c9d3148ec70f281ba28b3b39e1d843db2fd9a3ac | [
"MIT"
] | 1 | 2018-01-17T14:14:52.000Z | 2018-01-17T14:14:52.000Z | #!/usr/bin/env python
import os
from os.path import basename, dirname, exists
from glob import glob
from random import seed, sample
from math import ceil
import shutil
from scipy.io import loadmat
DATA_PATH = 'data/'
VALID_RATIO = 0.2
seed(20171111)
info = loadmat(DATA_PATH + 'cars_annos.mat')
class_names = []
fo... | 24.08642 | 129 | 0.650436 | 280 | 1,951 | 4.435714 | 0.375 | 0.070853 | 0.041868 | 0.041063 | 0.175523 | 0.143317 | 0.10628 | 0.10628 | 0.10628 | 0.10628 | 0 | 0.017869 | 0.196822 | 1,951 | 80 | 130 | 24.3875 | 0.774729 | 0.087135 | 0 | 0.085106 | 0 | 0 | 0.122599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.170213 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3510b1c13e2b0996f72d7df7b7e4d5ce6187252 | 4,318 | py | Python | LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/test_photos.py | liks79/moving-to-serverless-renew | 2f173071ab387654d4cc851a0b39130613906378 | [
"MIT"
] | 6 | 2019-08-21T04:13:34.000Z | 2019-10-29T07:15:39.000Z | LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/test_photos.py | liks79/moving-to-serverless-renew | 2f173071ab387654d4cc851a0b39130613906378 | [
"MIT"
] | 89 | 2019-07-31T02:29:54.000Z | 2022-03-12T01:03:22.000Z | LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/test_photos.py | michaelrishiforrester/moving-to-serverless-renew | 27cbcbde9db3d2bc66212fe4f768563d25f64c19 | [
"MIT"
] | 4 | 2019-08-02T03:00:35.000Z | 2020-02-26T18:44:03.000Z | """
cloudalbum/tests/test_photos.py
~~~~~~~~~~~~~~~~~~~~~~~
Test cases for photos REST API
:description: CloudAlbum is a fully featured sample application for 'Moving to AWS serverless' training course
:copyright: © 2019 written by Dayoungle Jun, Sungshik Jou.
:license: MIT, see LICENSE for mor... | 37.224138 | 114 | 0.630153 | 487 | 4,318 | 5.457906 | 0.386037 | 0.028969 | 0.03386 | 0.042889 | 0.394658 | 0.364184 | 0.349887 | 0.34462 | 0.318284 | 0.318284 | 0 | 0.03567 | 0.246874 | 4,318 | 115 | 115 | 37.547826 | 0.781365 | 0.117184 | 0 | 0.375 | 0 | 0 | 0.158595 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.068182 | false | 0.011364 | 0.125 | 0 | 0.204545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f352ff7f4b31c7040c5ea7317ed22c6aa5e813c5 | 932 | py | Python | wav_to_mp3_to_wav/post_mp3_information_retrieval.py | LiquidFun/stegowav | 89ef0b40c52c834febffeeefba30eccbb0862e29 | [
"Apache-2.0"
] | null | null | null | wav_to_mp3_to_wav/post_mp3_information_retrieval.py | LiquidFun/stegowav | 89ef0b40c52c834febffeeefba30eccbb0862e29 | [
"Apache-2.0"
] | null | null | null | wav_to_mp3_to_wav/post_mp3_information_retrieval.py | LiquidFun/stegowav | 89ef0b40c52c834febffeeefba30eccbb0862e29 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from tempfile import TemporaryDirectory
from wav_steganography.wav_file import WAVFile
from wav_to_mp3_to_wav.analyze_flipped_bits import find_matching_audio_file, convert_to_file_format_and_back
def compare_headers(file_path):
with TemporaryDirectory() as tmp_dir:
wav_file = WAV... | 33.285714 | 108 | 0.748927 | 127 | 932 | 5.070866 | 0.448819 | 0.062112 | 0.069876 | 0.065217 | 0.080745 | 0.080745 | 0 | 0 | 0 | 0 | 0 | 0.010165 | 0.155579 | 932 | 27 | 109 | 34.518519 | 0.808132 | 0 | 0 | 0 | 0 | 0 | 0.135193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f353b7a18dac9fe20b5fa12a9cc76abc354a1603 | 4,896 | py | Python | Tp2/ej3/FBorrosificador.py | luisemacsel/IA2 | b99e19df3cd689d1c6cb42cd83cd71d6302e89eb | [
"MIT"
] | null | null | null | Tp2/ej3/FBorrosificador.py | luisemacsel/IA2 | b99e19df3cd689d1c6cb42cd83cd71d6302e89eb | [
"MIT"
] | null | null | null | Tp2/ej3/FBorrosificador.py | luisemacsel/IA2 | b99e19df3cd689d1c6cb42cd83cd71d6302e89eb | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
"""
La funcion se encarga de buscar el valor de fuerza que le corresponde para ese valor f en el rango elegido
Buscavalor(max,rango,funcion):
max:valor obtenido de la funcion figual
rango: rango de la funcion de f de la FAM
funcion: es la funcion da... | 26.181818 | 110 | 0.612337 | 764 | 4,896 | 3.924084 | 0.234293 | 0.036024 | 0.033022 | 0.024016 | 0.156104 | 0.099066 | 0.093062 | 0.03936 | 0.023349 | 0.023349 | 0 | 0.065535 | 0.217729 | 4,896 | 186 | 111 | 26.322581 | 0.717232 | 0.122345 | 0 | 0.280992 | 0 | 0 | 0.002587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07438 | false | 0 | 0.016529 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f353cc9934915d2b7584b135ed41a08d4e931189 | 2,883 | py | Python | impl/dlsgs/transformer/derived.py | ju-kreber/Transformers-and-GANs-for-LTL-sat | 45fe14815562dd3e0d3705573ce9358bfbdc22b3 | [
"MIT"
] | null | null | null | impl/dlsgs/transformer/derived.py | ju-kreber/Transformers-and-GANs-for-LTL-sat | 45fe14815562dd3e0d3705573ce9358bfbdc22b3 | [
"MIT"
] | null | null | null | impl/dlsgs/transformer/derived.py | ju-kreber/Transformers-and-GANs-for-LTL-sat | 45fe14815562dd3e0d3705573ce9358bfbdc22b3 | [
"MIT"
] | null | null | null | # implementation based on DeepLTL https://github.com/reactive-systems/deepltl
import tensorflow as tf
import dlsgs.transformer.positional_encoding as pe
from dlsgs.transformer.base import Transformer, TransformerEncoder
from dlsgs.transformer.common import create_padding_mask
class EncoderOnlyTransformer(Transform... | 44.353846 | 140 | 0.680194 | 327 | 2,883 | 5.743119 | 0.293578 | 0.095847 | 0.027689 | 0.031949 | 0.184771 | 0.138445 | 0.082002 | 0.044728 | 0.044728 | 0 | 0 | 0.00352 | 0.211585 | 2,883 | 64 | 141 | 45.046875 | 0.822701 | 0.109261 | 0 | 0 | 0 | 0 | 0.11222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.022727 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f357486dc273f59930f7e3c9ba8e47b6209add12 | 1,574 | py | Python | pyDipole/particles.py | rakab/pyDipole | 2793db6db951e9e5e79e064430a0faf6636d3a2a | [
"BSD-3-Clause"
] | null | null | null | pyDipole/particles.py | rakab/pyDipole | 2793db6db951e9e5e79e064430a0faf6636d3a2a | [
"BSD-3-Clause"
] | null | null | null | pyDipole/particles.py | rakab/pyDipole | 2793db6db951e9e5e79e064430a0faf6636d3a2a | [
"BSD-3-Clause"
] | null | null | null | __all__ = [
'Particle',
'particles',
]
"""
Style: name: [mass(string),isQCD(bool)]
"""
particle_table = {
'u' : ['0' , True],
'ubar' : ['0' , True],
't' : ['mt', True],
'tbar' : ['mt', True],
'e' : ['0' , False],
'ebar' : ['0' , False],
... | 24.984127 | 85 | 0.527954 | 180 | 1,574 | 4.372222 | 0.361111 | 0.060991 | 0.045743 | 0.025413 | 0.143583 | 0.121982 | 0.121982 | 0.121982 | 0.121982 | 0 | 0 | 0.011483 | 0.336086 | 1,574 | 62 | 86 | 25.387097 | 0.741627 | 0 | 0 | 0.081633 | 0 | 0 | 0.109365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0 | 0.040816 | 0.204082 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f359c6c0485b2afb42cd60a1563a6e6b2a3277bc | 677 | py | Python | shadow.py | luctalatinian/pygame_stealth | 9d7db47ed23621aa038f7c5e06dcab0c6b33de66 | [
"MIT"
] | null | null | null | shadow.py | luctalatinian/pygame_stealth | 9d7db47ed23621aa038f7c5e06dcab0c6b33de66 | [
"MIT"
] | null | null | null | shadow.py | luctalatinian/pygame_stealth | 9d7db47ed23621aa038f7c5e06dcab0c6b33de66 | [
"MIT"
] | 1 | 2018-07-09T20:56:10.000Z | 2018-07-09T20:56:10.000Z | import pygame
class Shadow:
# shadow color
COLOR = (32, 32, 32, 192)
# unit size in pixels of a shadow
# length/width multiples are passed to the constructor
# to determine individual shadow size
U = 32
def __init__(self, posX, posY, width, length):
self.posX = pos... | 28.208333 | 63 | 0.5613 | 84 | 677 | 4.47619 | 0.416667 | 0.06383 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029279 | 0.344165 | 677 | 23 | 64 | 29.434783 | 0.817568 | 0.196455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f35e505927276af6aead2233d5ffc470b867a7a9 | 9,500 | py | Python | ixia_orch/setup/__main__.py | QualiSystemsLab/TechRepo | 5abb0769ad0299ed6bad5d40b0b98c8179eaa030 | [
"Apache-2.0"
] | null | null | null | ixia_orch/setup/__main__.py | QualiSystemsLab/TechRepo | 5abb0769ad0299ed6bad5d40b0b98c8179eaa030 | [
"Apache-2.0"
] | null | null | null | ixia_orch/setup/__main__.py | QualiSystemsLab/TechRepo | 5abb0769ad0299ed6bad5d40b0b98c8179eaa030 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cloudshell.helpers.scripts.cloudshell_dev_helpers as dev_helpers
from cloudshell.api.cloudshell_api import InputNameValue
from cloudshell.workflow.orchestration.sandbox import Sandbox
from cloudshell.workflow.orchestration.setup.default_setup_orchestrator import... | 51.075269 | 187 | 0.669368 | 968 | 9,500 | 6.359504 | 0.213843 | 0.055231 | 0.064977 | 0.038012 | 0.491391 | 0.416017 | 0.376218 | 0.32976 | 0.296134 | 0.265432 | 0 | 0.004206 | 0.249158 | 9,500 | 185 | 188 | 51.351351 | 0.858825 | 0.245789 | 0 | 0.14433 | 0 | 0 | 0.143425 | 0.020321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041237 | false | 0.030928 | 0.051546 | 0 | 0.092784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f35f42825e9ec49afa9f00f36718a54a1f778562 | 2,470 | py | Python | src/sparkmon/mlflow_utils.py | stephanecollot/sparkmon | ca7aee915e0f1db2fb82d41e08a0a2d782236e23 | [
"MIT"
] | 11 | 2021-07-05T12:57:54.000Z | 2022-01-30T05:25:27.000Z | src/sparkmon/mlflow_utils.py | stephanecollot/sparkmon | ca7aee915e0f1db2fb82d41e08a0a2d782236e23 | [
"MIT"
] | 83 | 2021-07-12T22:14:16.000Z | 2022-03-28T22:33:13.000Z | src/sparkmon/mlflow_utils.py | stephanecollot/sparkmon | ca7aee915e0f1db2fb82d41e08a0a2d782236e23 | [
"MIT"
] | 2 | 2021-07-13T09:44:39.000Z | 2021-12-01T11:12:37.000Z | # Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, mo... | 38.59375 | 101 | 0.748583 | 363 | 2,470 | 4.988981 | 0.460055 | 0.048592 | 0.044174 | 0.022087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002494 | 0.188259 | 2,470 | 63 | 102 | 39.206349 | 0.900748 | 0.61417 | 0 | 0.076923 | 0 | 0 | 0.001103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.192308 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f35faf6124800bbcd57e33c69660b190bc9d8905 | 1,854 | py | Python | service/microservice.py | SFDigitalServices/bluebeam-microservice | bb529f291b3399e29b71dd754e77c73f759c7762 | [
"MIT"
] | 1 | 2020-05-28T17:38:12.000Z | 2020-05-28T17:38:12.000Z | service/microservice.py | SFDigitalServices/bluebeam-microservice | bb529f291b3399e29b71dd754e77c73f759c7762 | [
"MIT"
] | 3 | 2021-02-10T02:34:39.000Z | 2022-01-07T23:28:51.000Z | service/microservice.py | SFDigitalServices/bluebeam-microservice | bb529f291b3399e29b71dd754e77c73f759c7762 | [
"MIT"
] | null | null | null | """Main application module"""
import os
import json
import jsend
import sentry_sdk
import falcon
from .resources.db import create_session
from .resources.welcome import Welcome
from .resources.submission import Submission
from .resources.export import Export, ExportStatus
from .resources.login import Login
def start_s... | 33.107143 | 77 | 0.69849 | 229 | 1,854 | 5.519651 | 0.388646 | 0.033228 | 0.043513 | 0.026899 | 0.039557 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003958 | 0.182309 | 1,854 | 55 | 78 | 33.709091 | 0.829815 | 0.226537 | 0 | 0 | 0 | 0 | 0.077536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.294118 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f35fc9e10ba11e3ac0a41499770d8ee424ef0361 | 1,458 | py | Python | apps/accounts/serializers/user_serializer.py | vicobits/django-wise | 3fdc01eabdff459b31e016f9f6d1cafc19c5a292 | [
"MIT"
] | 5 | 2020-04-11T20:11:48.000Z | 2021-03-16T23:58:01.000Z | apps/accounts/serializers/user_serializer.py | victoraguilarc/django-wise | 3fdc01eabdff459b31e016f9f6d1cafc19c5a292 | [
"MIT"
] | 5 | 2020-04-11T20:17:56.000Z | 2021-06-16T19:18:29.000Z | apps/accounts/serializers/user_serializer.py | victoraguilarc/django-wise | 3fdc01eabdff459b31e016f9f6d1cafc19c5a292 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from rest_framework import serializers
from apps.accounts.models import User
from apps.accounts.api.error_codes import AccountsErrorCodes
from apps.contrib.api.exceptions.base import SerializerFieldExceptionMixin
PASSWORD_MAX_LENGTH = User._meta.get_field('password').max_length # noqa: WPS43... | 26.509091 | 87 | 0.650892 | 154 | 1,458 | 5.941558 | 0.545455 | 0.02623 | 0.034973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006261 | 0.233196 | 1,458 | 54 | 88 | 27 | 0.812165 | 0.066529 | 0 | 0.146341 | 0 | 0 | 0.132299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0.04878 | 0.097561 | 0 | 0.243902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f361061823963f88458df17e30230bb3e0fa2a85 | 3,013 | py | Python | biodata/api/views/other.py | znatty22/biodataservice | a3eeb137d2e727a0fc58437b185f2637bc4665ed | [
"Apache-2.0"
] | null | null | null | biodata/api/views/other.py | znatty22/biodataservice | a3eeb137d2e727a0fc58437b185f2637bc4665ed | [
"Apache-2.0"
] | null | null | null | biodata/api/views/other.py | znatty22/biodataservice | a3eeb137d2e727a0fc58437b185f2637bc4665ed | [
"Apache-2.0"
] | null | null | null | """
Views for endpoints that are not part of the biodata CRUD API
"""
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from django.conf import settings
from django.db import models
import django_rq
from rq.job import Job, NoSuchJobError, JobSt... | 26.901786 | 76 | 0.593097 | 368 | 3,013 | 4.6875 | 0.345109 | 0.052754 | 0.026087 | 0.038261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004833 | 0.313309 | 3,013 | 111 | 77 | 27.144144 | 0.828903 | 0.109525 | 0 | 0.12987 | 0 | 0 | 0.150915 | 0.008384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064935 | false | 0 | 0.116883 | 0.012987 | 0.285714 | 0.038961 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f367913e08216490dbf81b44ad9a97732b5bc0a3 | 5,099 | py | Python | tests/test_data_handling.py | LLR-ILD/alldecays | 08e51e99385ae7ca96edefddafd715e1d8cac3d3 | [
"Apache-2.0"
] | null | null | null | tests/test_data_handling.py | LLR-ILD/alldecays | 08e51e99385ae7ca96edefddafd715e1d8cac3d3 | [
"Apache-2.0"
] | null | null | null | tests/test_data_handling.py | LLR-ILD/alldecays | 08e51e99385ae7ca96edefddafd715e1d8cac3d3 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pytest
from conftest import channel1_path, channel_polarized_path, decay_names
import alldecays
@pytest.mark.parametrize("data_type", ["polarized", "unpolarized"])
def test_name_changes_work(data_type, channel1, channel_polarized):
channel = dict(polarized=channel_polarized, unpolarized... | 35.409722 | 80 | 0.740341 | 719 | 5,099 | 4.895688 | 0.179416 | 0.079545 | 0.029545 | 0.030682 | 0.419034 | 0.300852 | 0.192045 | 0.169318 | 0.101136 | 0.045455 | 0 | 0.026555 | 0.15807 | 5,099 | 143 | 81 | 35.657343 | 0.793385 | 0 | 0 | 0.036364 | 0 | 0 | 0.041381 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 1 | 0.081818 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f36b2d045e4b5fb8f6739e6b9464ce4f48c00174 | 1,614 | py | Python | elections/forms.py | zinaukarenku/zkr-platform | 8daf7d1206c482f1f8e0bcd54d4fde783e568774 | [
"Apache-2.0"
] | 2 | 2018-11-16T21:45:17.000Z | 2019-02-03T19:55:46.000Z | elections/forms.py | zinaukarenku/zkr-platform | 8daf7d1206c482f1f8e0bcd54d4fde783e568774 | [
"Apache-2.0"
] | 13 | 2018-08-17T19:12:11.000Z | 2022-03-11T23:27:41.000Z | elections/forms.py | zinaukarenku/zkr-platform | 8daf7d1206c482f1f8e0bcd54d4fde783e568774 | [
"Apache-2.0"
] | null | null | null | from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Div, Submit
from django import forms
from django.forms.utils import ErrorList
from web.models import Municipality
from django.utils.translation import gettext_lazy as _
class MayorCandidatesFiltersForm(forms.Form):
municipality = ... | 35.866667 | 120 | 0.672243 | 176 | 1,614 | 5.943182 | 0.397727 | 0.076482 | 0.028681 | 0.06501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23544 | 1,614 | 44 | 121 | 36.681818 | 0.84765 | 0 | 0 | 0 | 0 | 0 | 0.069393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.171429 | 0.028571 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f36bb2734cf8a06f514d97eb5b2c6edbcf20fc1d | 988 | py | Python | DataBatcher.py | malfusion/furnace | 2d2a31212f0d67a99743a125eee1825da2af2182 | [
"MIT"
] | null | null | null | DataBatcher.py | malfusion/furnace | 2d2a31212f0d67a99743a125eee1825da2af2182 | [
"MIT"
] | 1 | 2021-01-28T20:27:14.000Z | 2021-01-28T20:27:14.000Z | DataBatcher.py | malfusion/furnace | 2d2a31212f0d67a99743a125eee1825da2af2182 | [
"MIT"
] | null | null | null | from collections import deque
class DataBatcher:
def __init__(self, keyFunc, valFunc=None):
self.keyFunc = keyFunc
self.valFunc = valFunc
self.prevKey = None
self.batches = deque()
self.batch = None
def addData(self, data):
key = self.keyFunc(data)
... | 24.7 | 71 | 0.563765 | 109 | 988 | 5.073395 | 0.311927 | 0.113924 | 0.070524 | 0.068716 | 0.148282 | 0.148282 | 0.148282 | 0.148282 | 0 | 0 | 0 | 0 | 0.337045 | 988 | 39 | 72 | 25.333333 | 0.844275 | 0 | 0 | 0.222222 | 0 | 0 | 0.027356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.037037 | 0.037037 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f36c464ee68faaf7ed9c2d48de3665e5eff18856 | 1,309 | py | Python | Dynamic Programming/chess.py | roycek7/operation_research | 37f01b7fcd93494a7de38459c324132516724b99 | [
"MIT"
] | 1 | 2021-04-17T17:33:30.000Z | 2021-04-17T17:33:30.000Z | Dynamic Programming/chess.py | roycek7/operation_research | 37f01b7fcd93494a7de38459c324132516724b99 | [
"MIT"
] | null | null | null | Dynamic Programming/chess.py | roycek7/operation_research | 37f01b7fcd93494a7de38459c324132516724b99 | [
"MIT"
] | null | null | null | """
Chess Strategy
Vladimir is playing Keith in a two-game chess match. Winning a game scores one match point and drawing a game scores
a half match point. After the two games are played, the player with more match points is declared the champion.
If the two players are tied after two games, they continue playing until... | 42.225806 | 118 | 0.657754 | 231 | 1,309 | 3.727273 | 0.372294 | 0.041812 | 0.03252 | 0.037166 | 0.092915 | 0.023229 | 0 | 0 | 0 | 0 | 0 | 0.04499 | 0.252865 | 1,309 | 30 | 119 | 43.633333 | 0.835378 | 0.656226 | 0 | 0.153846 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f36d640e79dacaedb0c4acb228f021e81749af5f | 4,261 | py | Python | tests/unit/test_book_reads.py | josealobato/go-over | ebc012a4d74a81fc729419f4ea670b9d6b4271bb | [
"MIT"
] | null | null | null | tests/unit/test_book_reads.py | josealobato/go-over | ebc012a4d74a81fc729419f4ea670b9d6b4271bb | [
"MIT"
] | 7 | 2022-02-13T09:21:55.000Z | 2022-03-02T07:56:31.000Z | tests/unit/test_book_reads.py | josealobato/go-over | ebc012a4d74a81fc729419f4ea670b9d6b4271bb | [
"MIT"
] | null | null | null | # More info at: https://vald-phoenix.github.io/pylint-errors/
# pylint: disable=C0114
# pylint: disable=C0116
from datetime import datetime
import pytest
from go_over.goodreads import Book, BookRead, Bookshelf
# pylint: disable=C0301
# Line too long
BOOKS = [
{"Book Id": "00", "Title": "Book 0", "Author": "Cervan... | 32.526718 | 139 | 0.663459 | 682 | 4,261 | 3.964809 | 0.165689 | 0.053254 | 0.072115 | 0.04142 | 0.691938 | 0.657914 | 0.596524 | 0.411243 | 0.348003 | 0.307322 | 0 | 0.080313 | 0.190566 | 4,261 | 131 | 140 | 32.526718 | 0.703682 | 0.186811 | 0 | 0.468354 | 0 | 0 | 0.141153 | 0 | 0 | 0 | 0 | 0 | 0.341772 | 1 | 0.189873 | false | 0 | 0.037975 | 0 | 0.227848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3718eeff96e99b364364254176ffbb225e3ed47 | 993 | py | Python | gym_collision_avoidance/experiments/src/test_pytorch.py | meghdeepj/Social-Navigation-Simulator | 806d304081bf5ff4fc7a0a58defb050627375865 | [
"MIT"
] | null | null | null | gym_collision_avoidance/experiments/src/test_pytorch.py | meghdeepj/Social-Navigation-Simulator | 806d304081bf5ff4fc7a0a58defb050627375865 | [
"MIT"
] | null | null | null | gym_collision_avoidance/experiments/src/test_pytorch.py | meghdeepj/Social-Navigation-Simulator | 806d304081bf5ff4fc7a0a58defb050627375865 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
print(torch.cuda.is_available())
device=torch.device("cpu")
# device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
print(device)
class PatNet(nn.Module):
## HYPERPARAMTERS
def __init__(self, nA, ... | 26.837838 | 73 | 0.635448 | 139 | 993 | 4.410072 | 0.388489 | 0.071778 | 0.042414 | 0.065253 | 0.101142 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030383 | 0.237664 | 993 | 37 | 74 | 26.837838 | 0.779392 | 0.205438 | 0 | 0 | 0 | 0 | 0.011538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.04 | 0.16 | 0 | 0.4 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f37405eeefd850d1e3f3acef5be96b619c25c9aa | 11,125 | py | Python | templates/illumraw2call.py | lvclark/h3agwas | 5e42e60123b819d3c331a91b25ee50846e55af3b | [
"MIT"
] | 62 | 2016-08-29T11:27:35.000Z | 2022-03-10T17:16:14.000Z | templates/illumraw2call.py | lvclark/h3agwas | 5e42e60123b819d3c331a91b25ee50846e55af3b | [
"MIT"
] | 33 | 2016-12-26T13:48:19.000Z | 2021-12-05T13:34:06.000Z | templates/illumraw2call.py | lvclark/h3agwas | 5e42e60123b819d3c331a91b25ee50846e55af3b | [
"MIT"
] | 50 | 2017-04-15T04:17:43.000Z | 2022-03-30T07:26:01.000Z | #! /usr/bin/env python
from __future__ import print_function
import argparse
import os
import sys
import struct
from numpy import empty, uint32,fromfile,uint16
# we avoid the use of backslashes to assist in templatising the code for Nextflow
TAB=unichr(9)
EOL=unichr(10)
FID_nSNPsRead = 1000
FID_IlluminaID ... | 35.657051 | 152 | 0.598382 | 1,523 | 11,125 | 4.243598 | 0.2239 | 0.018103 | 0.034195 | 0.01114 | 0.153334 | 0.111403 | 0.086338 | 0.051215 | 0.043169 | 0.035278 | 0 | 0.010824 | 0.277483 | 11,125 | 311 | 153 | 35.771704 | 0.793232 | 0.087551 | 0 | 0.060729 | 0 | 0 | 0.129292 | 0.009923 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.024292 | 0.008097 | 0.145749 | 0.032389 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3756e26ce73e2ba77e2e0abfa79281d0a6b2617 | 18,090 | py | Python | spacy/lang/ru/tokenizer_exceptions.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | 1 | 2019-11-27T13:14:04.000Z | 2019-11-27T13:14:04.000Z | spacy/lang/ru/tokenizer_exceptions.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | 2 | 2022-02-21T05:50:08.000Z | 2022-03-15T03:19:49.000Z | spacy/lang/ru/tokenizer_exceptions.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | null | null | null | from ..tokenizer_exceptions import BASE_EXCEPTIONS
from ...symbols import ORTH, NORM
from ...util import update_exc
_exc = {}
_abbrev_exc = [
# Weekdays abbreviations
{ORTH: "пн", NORM: "понедельник"},
{ORTH: "вт", NORM: "вторник"},
{ORTH: "ср", NORM: "среда"},
{ORTH: "чт", NORM: "четверг"},
{... | 45 | 88 | 0.58513 | 2,224 | 18,090 | 4.748201 | 0.222572 | 0.073485 | 0.033239 | 0.018939 | 0.383239 | 0.28286 | 0.17642 | 0.104451 | 0.085985 | 0.085985 | 0 | 0.005333 | 0.191487 | 18,090 | 401 | 89 | 45.112219 | 0.716669 | 0.021117 | 0 | 0.078378 | 0 | 0 | 0.461795 | 0.01136 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008108 | 0 | 0.008108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |