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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b956096a685b20f00da869cdcd8130f809207afe | 1,113 | py | Python | Utilities/vtkTclTest2Py/expr.py | jasper-yeh/VtkDotNet | 84b56f781cb511694e4380cebfb245bbefe2560b | [
"BSD-3-Clause"
] | 3 | 2020-06-20T23:31:06.000Z | 2021-01-11T02:17:16.000Z | Utilities/vtkTclTest2Py/expr.py | jasper-yeh/VtkDotNet | 84b56f781cb511694e4380cebfb245bbefe2560b | [
"BSD-3-Clause"
] | 1 | 2020-12-01T23:21:02.000Z | 2020-12-02T23:44:43.000Z | Utilities/vtkTclTest2Py/expr.py | jasper-yeh/VtkDotNet | 84b56f781cb511694e4380cebfb245bbefe2560b | [
"BSD-3-Clause"
] | 5 | 2015-10-09T04:12:29.000Z | 2021-12-15T16:57:11.000Z | """Evalues a tcl expr expression."""
import math
def expr(caller_globals_dict, caller_localvars_dict, arguments):
"""the arguments to expr in tcl are passed as individual arguments to this
method.
eg [expr sin(20)*$a] becomes expr.expr("sin","(","20",")","*", a)"""
eval_str = "eval(\"\"\""
for arg ... | 37.1 | 78 | 0.522013 | 134 | 1,113 | 4.179104 | 0.395522 | 0.1125 | 0.135714 | 0.082143 | 0.128571 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.349506 | 1,113 | 29 | 79 | 38.37931 | 0.767956 | 0.127583 | 0 | 0.1 | 0 | 0 | 0.046693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b956dcde4f9ab4643b74e47665b8a80eb8e8796f | 324 | py | Python | Device/testgpio.py | EnceladusIApetus/TrailSafe | 3e3c24b9dd8af08207275fb74927bbbbbc98a02b | [
"MIT"
] | null | null | null | Device/testgpio.py | EnceladusIApetus/TrailSafe | 3e3c24b9dd8af08207275fb74927bbbbbc98a02b | [
"MIT"
] | null | null | null | Device/testgpio.py | EnceladusIApetus/TrailSafe | 3e3c24b9dd8af08207275fb74927bbbbbc98a02b | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
def test(channel):
print 'interrupt'
GPIO.add_event_detect(18, GPIO.FALLING, callback=test, bouncetime=300)
try:
while(True):
'fdfd'
except KeyboardInterrupt:
GPIO.cleanup()
GPIO.cleanu... | 18 | 70 | 0.725309 | 48 | 324 | 4.791667 | 0.6875 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025455 | 0.151235 | 324 | 17 | 71 | 19.058824 | 0.810909 | 0 | 0 | 0.153846 | 0 | 0 | 0.040123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b95b368aa3a423c0027eb7b96040b88dec4ff6de | 829 | py | Python | tests/test_config_flow.py | maxim31cote/hacs-hubitat | 07f429e530797db2616466bee0e74c80d5724b22 | [
"MIT"
] | null | null | null | tests/test_config_flow.py | maxim31cote/hacs-hubitat | 07f429e530797db2616466bee0e74c80d5724b22 | [
"MIT"
] | null | null | null | tests/test_config_flow.py | maxim31cote/hacs-hubitat | 07f429e530797db2616466bee0e74c80d5724b22 | [
"MIT"
] | null | null | null | import hubitatmaker
import pytest
@pytest.mark.asyncio
async def test_validate_input(mocker) -> None:
check_called = False
async def check_config():
nonlocal check_called
check_called = True
FakeHub = mocker.patch.object(hubitatmaker, "Hub")
mocker.patch.object(FakeHub.return_value, ... | 29.607143 | 78 | 0.694813 | 102 | 829 | 5.401961 | 0.382353 | 0.117967 | 0.108893 | 0.166969 | 0.413793 | 0.413793 | 0.413793 | 0.413793 | 0.413793 | 0.319419 | 0 | 0 | 0.189385 | 829 | 27 | 79 | 30.703704 | 0.81994 | 0 | 0 | 0.142857 | 0 | 0 | 0.096502 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b95b7c7a106a76223d46d76e7c185e276311a71d | 9,754 | py | Python | plugins/login.py | Hydrayt777/IG-DL-Bot--TG | c90d411d99f684438d073902bf0ddbf8d7c40cca | [
"MIT"
] | 1 | 2021-11-15T13:14:57.000Z | 2021-11-15T13:14:57.000Z | plugins/login.py | Hydrayt777/hydraDlbotv5 | c90d411d99f684438d073902bf0ddbf8d7c40cca | [
"MIT"
] | null | null | null | plugins/login.py | Hydrayt777/hydraDlbotv5 | c90d411d99f684438d073902bf0ddbf8d7c40cca | [
"MIT"
] | null | null | null | #MIT License
#Copyright (c) 2021 subinps
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, dis... | 49.262626 | 422 | 0.646914 | 1,275 | 9,754 | 4.881569 | 0.230588 | 0.045951 | 0.062661 | 0.065553 | 0.681395 | 0.672076 | 0.672076 | 0.672076 | 0.660508 | 0.660508 | 0 | 0.00296 | 0.237954 | 9,754 | 197 | 423 | 49.51269 | 0.826719 | 0.10693 | 0 | 0.626506 | 0 | 0.042169 | 0.326892 | 0.071889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.024096 | 0.042169 | 0 | 0.072289 | 0.006024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b95bcd3cebc34241fc1b6dfc1e1dea87c76135f0 | 3,048 | py | Python | validators/src/HostOSValidation.py | alexandruavadanii/cm-plugins | 5c3f9f389f46f719579ac4cd4065490b1723ebff | [
"Apache-2.0"
] | null | null | null | validators/src/HostOSValidation.py | alexandruavadanii/cm-plugins | 5c3f9f389f46f719579ac4cd4065490b1723ebff | [
"Apache-2.0"
] | null | null | null | validators/src/HostOSValidation.py | alexandruavadanii/cm-plugins | 5c3f9f389f46f719579ac4cd4065490b1723ebff | [
"Apache-2.0"
] | 1 | 2021-04-24T16:48:17.000Z | 2021-04-24T16:48:17.000Z | #!/usr/bin/python
# Copyright 2019 Nokia
#
# 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 i... | 40.64 | 118 | 0.69357 | 411 | 3,048 | 4.927007 | 0.326034 | 0.065185 | 0.084444 | 0.022222 | 0.043457 | 0.043457 | 0.043457 | 0.017778 | 0 | 0 | 0 | 0.011236 | 0.211614 | 3,048 | 74 | 119 | 41.189189 | 0.831461 | 0.183071 | 0 | 0 | 0 | 0.022222 | 0.173667 | 0.028271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.177778 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b95e90378037c28039f8c07001a58729af6188e4 | 9,206 | py | Python | tests/test_pyd.py | kinke/autowrap | 2f042df3f292aa39b1da0b9607fbe3424f56ff4a | [
"BSD-3-Clause"
] | null | null | null | tests/test_pyd.py | kinke/autowrap | 2f042df3f292aa39b1da0b9607fbe3424f56ff4a | [
"BSD-3-Clause"
] | null | null | null | tests/test_pyd.py | kinke/autowrap | 2f042df3f292aa39b1da0b9607fbe3424f56ff4a | [
"BSD-3-Clause"
] | null | null | null | import os
is_pyd = os.environ.get('PYD')
is_pynih = os.environ.get('PYNIH')
def test_array():
import pytest
from pyd import Foo, get, set, test
f = Foo(2)
# the bug only exists for pyd, not pynih
if is_pyd:
# FIXME - see #54
with pytest.raises(AttributeError):
assert ... | 24.226316 | 74 | 0.561156 | 1,435 | 9,206 | 3.508014 | 0.149826 | 0.091776 | 0.027811 | 0.02066 | 0.279102 | 0.244934 | 0.18534 | 0.159913 | 0.136869 | 0.097338 | 0 | 0.086836 | 0.294482 | 9,206 | 379 | 75 | 24.290237 | 0.688222 | 0.04584 | 0 | 0.216607 | 0 | 0 | 0.085607 | 0.004794 | 0 | 0 | 0 | 0.002639 | 0.516245 | 1 | 0.054152 | false | 0 | 0.079422 | 0.00722 | 0.144404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9640603d557dab153728d257a4a64379fa6d39e | 3,196 | py | Python | tests/bugs/core_1402_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_1402_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_1402_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_1402
# title: CREATE VIEW without column list when UNION is used
# decription:
# tracker_id: CORE-1402
# min_versions: ['2.5.0']
# versions: 2.5.0
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 2.5.0
# resour... | 30.150943 | 119 | 0.58761 | 483 | 3,196 | 3.726708 | 0.26294 | 0.066111 | 0.133333 | 0.08 | 0.401111 | 0.388889 | 0.367778 | 0.367778 | 0.367778 | 0.362222 | 0 | 0.042695 | 0.340426 | 3,196 | 105 | 120 | 30.438095 | 0.811195 | 0.074781 | 0 | 0.302632 | 0 | 0.026316 | 0.828862 | 0.007131 | 0 | 0 | 0 | 0 | 0.013158 | 1 | 0.013158 | false | 0 | 0.026316 | 0 | 0.039474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b964e4fd733940f49f25a981ab668a3585a59f04 | 956 | py | Python | GARCH.py | tutan0558/Stevens-FE800-Group16-18Spring | 8683fe4e1b7971403d3c5db16ebf5ba5a0f75af4 | [
"BSD-2-Clause"
] | null | null | null | GARCH.py | tutan0558/Stevens-FE800-Group16-18Spring | 8683fe4e1b7971403d3c5db16ebf5ba5a0f75af4 | [
"BSD-2-Clause"
] | null | null | null | GARCH.py | tutan0558/Stevens-FE800-Group16-18Spring | 8683fe4e1b7971403d3c5db16ebf5ba5a0f75af4 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 28 14:32:29 2018
@author: 79127
"""
import pandas as pd
import numpy as np
import statsmodels.formula.api as smf
import statsmodels.tsa.api as smt
import statsmodels.api as sm
import scipy.stats as scs
from arch import ConstantMean, GARCH, Normal
impo... | 19.12 | 73 | 0.683054 | 151 | 956 | 4.291391 | 0.556291 | 0.104938 | 0.040123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058215 | 0.191423 | 956 | 49 | 74 | 19.510204 | 0.780078 | 0.077406 | 0 | 0 | 0 | 0 | 0.033939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.423077 | 0 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b966a3d83b7dfe595496b246b6a74d958010919a | 6,530 | py | Python | Git_Add_Scripts/fracture_grid.py | kwentz10/Cellular_Automata | 7156c1b6f70b29231ef83d8026e3c7fff4680d72 | [
"MIT"
] | null | null | null | Git_Add_Scripts/fracture_grid.py | kwentz10/Cellular_Automata | 7156c1b6f70b29231ef83d8026e3c7fff4680d72 | [
"MIT"
] | null | null | null | Git_Add_Scripts/fracture_grid.py | kwentz10/Cellular_Automata | 7156c1b6f70b29231ef83d8026e3c7fff4680d72 | [
"MIT"
] | null | null | null | #! /usr/env/python
"""Create 2D grid with randomly generated fractures.
fracture_grid: creates and returns a 2D grid with randomly generated fractures.
The grid contains the value 1 where fractures (one cell wide) exist, and
0 elsewhere. The idea is to use this for simulations based on weathering and
erosion o... | 31.095238 | 82 | 0.621593 | 924 | 6,530 | 4.340909 | 0.264069 | 0.033657 | 0.012466 | 0.011967 | 0.213662 | 0.153827 | 0.119172 | 0.098729 | 0.078783 | 0.078783 | 0 | 0.016801 | 0.298162 | 6,530 | 209 | 83 | 31.244019 | 0.85839 | 0.635835 | 0 | 0.12963 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.037037 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9672e00aeba56fb9a172c87835d143ec0779be3 | 695 | py | Python | inci/migrations/0003_auto_20170416_0153.py | cyriellecoppe/cosmeticlabeldecoder_api | fe87137c23df18cd465201079412b29f915b1b15 | [
"MIT"
] | 1 | 2019-05-17T14:55:49.000Z | 2019-05-17T14:55:49.000Z | inci/migrations/0003_auto_20170416_0153.py | cyriellecoppe/cosmeticlabeldecoder_api | fe87137c23df18cd465201079412b29f915b1b15 | [
"MIT"
] | null | null | null | inci/migrations/0003_auto_20170416_0153.py | cyriellecoppe/cosmeticlabeldecoder_api | fe87137c23df18cd465201079412b29f915b1b15 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-16 01:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inci', '0002_auto_20170309_0447'),
]
operations = [
migrations.AlterField(
... | 26.730769 | 91 | 0.620144 | 69 | 695 | 6.072464 | 0.652174 | 0.095465 | 0.119332 | 0.138425 | 0.434368 | 0.434368 | 0.243437 | 0.243437 | 0 | 0 | 0 | 0.063953 | 0.257554 | 695 | 25 | 92 | 27.8 | 0.748062 | 0.097842 | 0 | 0.333333 | 1 | 0 | 0.184295 | 0.036859 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b974f46e239be59ee136054235e7e74acc0e4797 | 388 | py | Python | spaceplanner/app_logic/calendar_functions.py | prznoc/osplanner | c58ff129fde3f1513738cf27f9d3692fb7d549ea | [
"MIT"
] | null | null | null | spaceplanner/app_logic/calendar_functions.py | prznoc/osplanner | c58ff129fde3f1513738cf27f9d3692fb7d549ea | [
"MIT"
] | null | null | null | spaceplanner/app_logic/calendar_functions.py | prznoc/osplanner | c58ff129fde3f1513738cf27f9d3692fb7d549ea | [
"MIT"
] | null | null | null | from datetime import datetime
#Python 3.8 adds fromisocalendar() to replace this
def date_from_isoweek(iso_year, iso_weeknumber, iso_weekday):
iso_weekday = iso_weekday + 1 #code below assumes that monday is 1, adding is required to keep monday as 0
return datetime.strptime(
'{:04d} {:02d} {:d}'.format... | 43.111111 | 110 | 0.713918 | 59 | 388 | 4.525424 | 0.661017 | 0.149813 | 0.074906 | 0.149813 | 0.224719 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.180412 | 388 | 8 | 111 | 48.5 | 0.811321 | 0.319588 | 0 | 0 | 0 | 0 | 0.099237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9763c8bd143eaaa5ab0238f138fc08f2cee8ca8 | 3,176 | py | Python | mediapipe/framework/formats/object_detection/anchor_pb2.py | nishantg96/HandTrack-MP | bcbf584e0a47d301923f54d0187324ae7423c6d4 | [
"Apache-2.0"
] | null | null | null | mediapipe/framework/formats/object_detection/anchor_pb2.py | nishantg96/HandTrack-MP | bcbf584e0a47d301923f54d0187324ae7423c6d4 | [
"Apache-2.0"
] | null | null | null | mediapipe/framework/formats/object_detection/anchor_pb2.py | nishantg96/HandTrack-MP | bcbf584e0a47d301923f54d0187324ae7423c6d4 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/framework/formats/object_detection/anchor.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from... | 34.901099 | 257 | 0.748111 | 421 | 3,176 | 5.384798 | 0.275534 | 0.045876 | 0.05558 | 0.050728 | 0.459197 | 0.423908 | 0.38509 | 0.340097 | 0.340097 | 0.340097 | 0 | 0.033984 | 0.129093 | 3,176 | 90 | 258 | 35.288889 | 0.785611 | 0.078715 | 0 | 0.394366 | 1 | 0.014085 | 0.175342 | 0.131507 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.070423 | 0 | 0.070423 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9796a17298ea8065bda3caffa9e727b01b1fc10 | 590 | py | Python | 2019/08/part1.py | SabatierBoris/adventofcode | 19849a209e4e6d9d73ef5a5458c1831061a3ea42 | [
"MIT"
] | null | null | null | 2019/08/part1.py | SabatierBoris/adventofcode | 19849a209e4e6d9d73ef5a5458c1831061a3ea42 | [
"MIT"
] | null | null | null | 2019/08/part1.py | SabatierBoris/adventofcode | 19849a209e4e6d9d73ef5a5458c1831061a3ea42 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
from common import get_layers, parse_infos
def main():
wide = int(sys.stdin.readline().strip())
tall = int(sys.stdin.readline().strip())
data = sys.stdin.readline().strip()
layers = get_layers(data, wide, tall)
layers_infos = [parse_infos(layer) for layer in ... | 18.4375 | 59 | 0.640678 | 85 | 590 | 4.2 | 0.411765 | 0.089636 | 0.134454 | 0.176471 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010823 | 0.216949 | 590 | 31 | 60 | 19.032258 | 0.761905 | 0.035593 | 0 | 0 | 0 | 0 | 0.019366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0.058824 | 0.294118 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b97ceb9f63776562a4e5c0596b648db55a9244f3 | 6,160 | py | Python | webinterface/src/WebComponents/Sources/EPG.py | Mariusz1970/enigma2-plugins-1 | 126d31d075c156f32b09d4321ebe1a17f93a5bd6 | [
"OLDAP-2.3"
] | 1 | 2020-01-27T22:53:56.000Z | 2020-01-27T22:53:56.000Z | webinterface/src/WebComponents/Sources/EPG.py | Mariusz1970/enigma2-plugins-1 | 126d31d075c156f32b09d4321ebe1a17f93a5bd6 | [
"OLDAP-2.3"
] | null | null | null | webinterface/src/WebComponents/Sources/EPG.py | Mariusz1970/enigma2-plugins-1 | 126d31d075c156f32b09d4321ebe1a17f93a5bd6 | [
"OLDAP-2.3"
] | 11 | 2015-02-26T20:59:14.000Z | 2021-09-20T08:23:03.000Z | # -*- coding: UTF-8 -*-
from Components.Sources.Source import Source
from enigma import eServiceCenter, eServiceReference, eEPGCache
class EPG(Source):
BOUQUETNOW = 0
BOUQUETNEXT = 1
SERVICENOW = 2
SERVICENEXT = 3
SERVICE = 4
SEARCH = 5
BOUQUET = 6
MULTI = 7
SEARCHSIMILAR = 8
BOUQUETNOWNEXT = 9
def __init_... | 23.157895 | 132 | 0.645617 | 752 | 6,160 | 5.269947 | 0.175532 | 0.024224 | 0.025233 | 0.035327 | 0.354529 | 0.301539 | 0.241231 | 0.215493 | 0.196821 | 0.169064 | 0 | 0.018331 | 0.229545 | 6,160 | 265 | 133 | 23.245283 | 0.816688 | 0.013799 | 0 | 0.408257 | 0 | 0 | 0.12883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009174 | null | null | 0.027523 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b97e029eff57fea4d78022e3d3a5424678cdd6c4 | 372 | py | Python | examples/mpu6050_simpletest.py | FoamyGuy/Adafruit_CircuitPython_MPU6050 | d7a9ea7e748ee0ccea888f9da75927c89884a3cf | [
"MIT"
] | 1 | 2021-04-15T03:18:21.000Z | 2021-04-15T03:18:21.000Z | examples/mpu6050_simpletest.py | FoamyGuy/Adafruit_CircuitPython_MPU6050 | d7a9ea7e748ee0ccea888f9da75927c89884a3cf | [
"MIT"
] | null | null | null | examples/mpu6050_simpletest.py | FoamyGuy/Adafruit_CircuitPython_MPU6050 | d7a9ea7e748ee0ccea888f9da75927c89884a3cf | [
"MIT"
] | null | null | null | import time
import board
import busio
import adafruit_mpu6050
i2c = busio.I2C(board.SCL, board.SDA)
mpu = adafruit_mpu6050.MPU6050(i2c)
while True:
print("Acceleration: X:%.2f, Y: %.2f, Z: %.2f m/s^2"%(mpu.acceleration))
print("Gyro X:%.2f, Y: %.2f, Z: %.2f degrees/s"%(mpu.gyro))
print("Temperature: %.2f ... | 24.8 | 76 | 0.655914 | 58 | 372 | 4.172414 | 0.465517 | 0.123967 | 0.033058 | 0.049587 | 0.07438 | 0.07438 | 0 | 0 | 0 | 0 | 0 | 0.076433 | 0.155914 | 372 | 14 | 77 | 26.571429 | 0.694268 | 0 | 0 | 0 | 0 | 0 | 0.274194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
b97e9590fc48f0e15bad1ea55bd9a3544961ee3c | 3,913 | py | Python | Bot/utility/_resp.py | AryamanSrii/Mecha-Karen | 4a5c7318f8c458495eee72a13be5db8a0113ed28 | [
"Apache-2.0"
] | 1 | 2021-07-17T11:39:32.000Z | 2021-07-17T11:39:32.000Z | Bot/utility/_resp.py | AryamanSrii/Mecha-Karen | 4a5c7318f8c458495eee72a13be5db8a0113ed28 | [
"Apache-2.0"
] | null | null | null | Bot/utility/_resp.py | AryamanSrii/Mecha-Karen | 4a5c7318f8c458495eee72a13be5db8a0113ed28 | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/python
"""
Copyright ©️: 2020 Seniatical / _-*™#7519
License: Apache 2.0
A permissive license whose main conditions require preservation of copyright and license notices.
Contributors provide an express grant of patent rights.
Licensed works, modifications, and larger works may be distributed under ... | 63.112903 | 170 | 0.656018 | 601 | 3,913 | 4.276206 | 0.559068 | 0.003891 | 0.003891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007431 | 0.277792 | 3,913 | 61 | 171 | 64.147541 | 0.900566 | 0.148991 | 0 | 0 | 0 | 0.021739 | 0.801901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b97f5b56047a90ddd28b48349e2ca605397e0cfc | 5,252 | py | Python | tests/autokeras/blocks/basic_test.py | utkarshgupta137/autokeras | b5a35fec17a753df2a0613685aa969006f821bfc | [
"MIT"
] | null | null | null | tests/autokeras/blocks/basic_test.py | utkarshgupta137/autokeras | b5a35fec17a753df2a0613685aa969006f821bfc | [
"MIT"
] | null | null | null | tests/autokeras/blocks/basic_test.py | utkarshgupta137/autokeras | b5a35fec17a753df2a0613685aa969006f821bfc | [
"MIT"
] | null | null | null | import kerastuner
import pytest
import tensorflow as tf
from tensorflow.python.util import nest
from autokeras import blocks
from autokeras.blocks import basic
from tests import utils
def test_resnet_build_return_tensor():
block = blocks.ResNetBlock()
outputs = block.build(
kerastuner.HyperParameter... | 25.619512 | 63 | 0.72658 | 654 | 5,252 | 5.574924 | 0.117737 | 0.09051 | 0.059243 | 0.036204 | 0.801426 | 0.696105 | 0.65085 | 0.591607 | 0.572408 | 0.462699 | 0 | 0.011612 | 0.163747 | 5,252 | 204 | 64 | 25.745098 | 0.818534 | 0 | 0 | 0.563025 | 0 | 0 | 0.022087 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.184874 | false | 0 | 0.058824 | 0 | 0.243697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9817f1981dde1a38a398bf41871cd047afb778e | 1,212 | py | Python | setup.py | wrap-api/python-nasa | 575d86afa8782d7681e3f97f38451964bffa1ac8 | [
"MIT"
] | null | null | null | setup.py | wrap-api/python-nasa | 575d86afa8782d7681e3f97f38451964bffa1ac8 | [
"MIT"
] | 8 | 2021-11-08T04:08:16.000Z | 2021-11-15T02:09:15.000Z | setup.py | wrap-api/python-nasa | 575d86afa8782d7681e3f97f38451964bffa1ac8 | [
"MIT"
] | null | null | null | from typing import List, Text
import nasa
from setuptools import setup
with open("README.md") as readme_file:
readme: Text = readme_file.read()
requirements: List[Text] = ["requests", "pillow"]
test_requirements: List[Text] = ["requests", "pre-commit", "pillow", "wheel"]
setup(
name="python-nasa",
vers... | 31.076923 | 79 | 0.675743 | 141 | 1,212 | 5.617021 | 0.574468 | 0.030303 | 0.050505 | 0.070707 | 0.085859 | 0.085859 | 0.085859 | 0.085859 | 0 | 0 | 0 | 0.005061 | 0.184818 | 1,212 | 38 | 80 | 31.894737 | 0.796559 | 0 | 0 | 0 | 0 | 0.030303 | 0.389439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b985aa86c96b7226d2bac9af603c63b698be7f36 | 993 | py | Python | vigobusbot/exceptions.py | David-Lor/VigoBus-TelegramBot | 2cbba9a6565e7f8c92953e79b9ca4247d53f4b33 | [
"Apache-2.0"
] | 8 | 2019-07-18T21:33:04.000Z | 2022-03-26T15:07:14.000Z | vigobusbot/exceptions.py | David-Lor/VigoBus-TelegramBot | 2cbba9a6565e7f8c92953e79b9ca4247d53f4b33 | [
"Apache-2.0"
] | 3 | 2021-09-10T19:53:36.000Z | 2021-09-10T19:53:37.000Z | vigobusbot/exceptions.py | David-Lor/VigoBus-TelegramBot | 2cbba9a6565e7f8c92953e79b9ca4247d53f4b33 | [
"Apache-2.0"
] | 3 | 2019-09-24T15:43:23.000Z | 2020-04-18T17:48:29.000Z | """EXCEPTIONS
Custom and imported exceptions used over all the project.
"""
# # Installed # #
from aiogram.utils.exceptions import MessageNotModified
__all__ = (
"GetterException", "GetterInternalException", "GetterAPIException", "GetterTimedOut", "StopNotExist",
"MessageNotModified", "UserRateLimit"
)
clas... | 23.642857 | 105 | 0.72709 | 107 | 993 | 6.71028 | 0.523364 | 0.034819 | 0.044568 | 0.058496 | 0.125348 | 0.097493 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17422 | 993 | 41 | 106 | 24.219512 | 0.87561 | 0.386707 | 0 | 0.352941 | 0 | 0 | 0.199295 | 0.040564 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.352941 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b986eccad2e6437b0762e1c64fa34061c9f22c96 | 5,764 | py | Python | pyswarms/utils/plotters/formatters.py | jole6826/pyswarms | d8bf200ea57cf013e158160d91423513c220e478 | [
"MIT"
] | 1 | 2019-03-07T06:41:43.000Z | 2019-03-07T06:41:43.000Z | pyswarms/utils/plotters/formatters.py | jole6826/pyswarms | d8bf200ea57cf013e158160d91423513c220e478 | [
"MIT"
] | null | null | null | pyswarms/utils/plotters/formatters.py | jole6826/pyswarms | d8bf200ea57cf013e158160d91423513c220e478 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Plot Formatters
This module implements helpful classes to format your plots or create meshes.
"""
# Import modules
import numpy as np
from attr import attrs, attrib
from attr.validators import instance_of
from matplotlib import cm, colors
@attrs
class Designer(object):
"""Designer c... | 33.707602 | 81 | 0.655621 | 772 | 5,764 | 4.831606 | 0.282383 | 0.034853 | 0.041823 | 0.046917 | 0.270509 | 0.203485 | 0.153887 | 0.153887 | 0.094906 | 0.027346 | 0 | 0.014649 | 0.242019 | 5,764 | 170 | 82 | 33.905882 | 0.839094 | 0.649896 | 0 | 0.119048 | 0 | 0 | 0.020548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.095238 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9901bbc8194d3733ca0a91f13eeff1a5de5833d | 7,597 | py | Python | custom1/custom1/report/sts_item_summary/sts_item_summary.py | jof2jc/custom1 | e7dc6ddaf4a40688082e84f69a9ea4bce13cb2ac | [
"MIT"
] | null | null | null | custom1/custom1/report/sts_item_summary/sts_item_summary.py | jof2jc/custom1 | e7dc6ddaf4a40688082e84f69a9ea4bce13cb2ac | [
"MIT"
] | null | null | null | custom1/custom1/report/sts_item_summary/sts_item_summary.py | jof2jc/custom1 | e7dc6ddaf4a40688082e84f69a9ea4bce13cb2ac | [
"MIT"
] | null | null | null | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import msgprint, _
from frappe.utils import flt
def execute(filters=None):
if not filters: filters = {}
columns = get_colu... | 36.004739 | 133 | 0.672239 | 1,161 | 7,597 | 4.178295 | 0.137812 | 0.046176 | 0.043084 | 0.042878 | 0.417234 | 0.341373 | 0.323232 | 0.323232 | 0.323232 | 0.31375 | 0 | 0.025742 | 0.161379 | 7,597 | 210 | 134 | 36.17619 | 0.735677 | 0.119389 | 0 | 0.266187 | 0 | 0.05036 | 0.425082 | 0.051035 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035971 | null | null | 0.035971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b99078720b3ceea4d8ec8cb246a6a3ce3ac65787 | 834 | py | Python | ARCIT/migrations/0002_auto_20201207_1441.py | s0hailAnsari/ARCIT | b1d6a0596efaa887a498c518e6a387adc7ec12c6 | [
"MIT"
] | null | null | null | ARCIT/migrations/0002_auto_20201207_1441.py | s0hailAnsari/ARCIT | b1d6a0596efaa887a498c518e6a387adc7ec12c6 | [
"MIT"
] | 20 | 2021-04-19T11:31:48.000Z | 2021-09-07T07:51:10.000Z | ARCIT/migrations/0002_auto_20201207_1441.py | s0hailAnsari/ARCIT | b1d6a0596efaa887a498c518e6a387adc7ec12c6 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.11 on 2020-12-07 09:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ARCIT', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='user',
old_name='is_student',
... | 24.529412 | 53 | 0.549161 | 79 | 834 | 5.607595 | 0.518987 | 0.081264 | 0.117381 | 0.13544 | 0.519187 | 0.361174 | 0.361174 | 0.194131 | 0 | 0 | 0 | 0.036232 | 0.33813 | 834 | 33 | 54 | 25.272727 | 0.766304 | 0.055156 | 0 | 0.518519 | 1 | 0 | 0.13486 | 0.029262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b999a607197efca1a20d62d2fbcd27ee78bb82e0 | 2,166 | py | Python | dipole/helper.py | thisch/pydipole | e496177fe60c3ec1d3b28d2dc843c0fd54b5757c | [
"MIT"
] | null | null | null | dipole/helper.py | thisch/pydipole | e496177fe60c3ec1d3b28d2dc843c0fd54b5757c | [
"MIT"
] | null | null | null | dipole/helper.py | thisch/pydipole | e496177fe60c3ec1d3b28d2dc843c0fd54b5757c | [
"MIT"
] | null | null | null | import logging
import cmath
import numpy as np
LG = logging.getLogger('pyd.hp')
def unit_vectors(thetamax=7.5, ngrid=32):
thetamax = np.radians(thetamax)
pls = np.linspace(0, 2*np.pi, ngrid)
tls = np.linspace(0, thetamax, ngrid)
P, T = np.meshgrid(pls, tls)
# Raux = np.hypot(P, T - np.pi / 2)
... | 28.88 | 79 | 0.487996 | 338 | 2,166 | 3.059172 | 0.227811 | 0.017408 | 0.023211 | 0.026112 | 0.089942 | 0.058994 | 0.015474 | 0.015474 | 0 | 0 | 0 | 0.028433 | 0.334257 | 2,166 | 74 | 80 | 29.27027 | 0.688627 | 0.054017 | 0 | 0.157895 | 0 | 0 | 0.020069 | 0 | 0 | 0 | 0 | 0.013514 | 0.035088 | 1 | 0.035088 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9a29495d2d2426fdea9088bac0fd24c9edb5edb | 1,607 | py | Python | dag.py | HugoS99/DagTest | e575ce34775ef72b238a5ab0f16499157f10483d | [
"MIT"
] | null | null | null | dag.py | HugoS99/DagTest | e575ce34775ef72b238a5ab0f16499157f10483d | [
"MIT"
] | null | null | null | dag.py | HugoS99/DagTest | e575ce34775ef72b238a5ab0f16499157f10483d | [
"MIT"
] | null | null | null | from airflow import DAG
from datetime import datetime, timedelta
from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
from airflow.operators.dummy_operator import DummyOperator
default_args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime.utcnow(),
... | 34.191489 | 92 | 0.517113 | 144 | 1,607 | 5.597222 | 0.479167 | 0.029777 | 0.032258 | 0.104218 | 0.17866 | 0.17866 | 0.126551 | 0.126551 | 0.126551 | 0.126551 | 0 | 0.009814 | 0.365899 | 1,607 | 47 | 93 | 34.191489 | 0.781158 | 0 | 0 | 0.25641 | 0 | 0 | 0.175995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.102564 | 0.102564 | 0 | 0.102564 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b9a32684eb1a93070c93efb24e9b6af9c395e136 | 293 | py | Python | selenium/click_page.py | letitgone/python-in-action | 5cd2912afdf439f575f97c5bba9bcd001bd9a6e5 | [
"MIT"
] | 1 | 2020-12-26T14:32:49.000Z | 2020-12-26T14:32:49.000Z | selenium/click_page.py | letitgone/python-in-action | 5cd2912afdf439f575f97c5bba9bcd001bd9a6e5 | [
"MIT"
] | null | null | null | selenium/click_page.py | letitgone/python-in-action | 5cd2912afdf439f575f97c5bba9bcd001bd9a6e5 | [
"MIT"
] | null | null | null | # @Author ZhangGJ
# @Date 2021/04/09 17:08
from selenium import webdriver
from selenium.webdriver import ActionChains
driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
above = driver.find_element_by_id('s-usersetting-top')
ActionChains(driver).move_to_element(above).perform()
| 26.636364 | 54 | 0.784983 | 42 | 293 | 5.357143 | 0.738095 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044776 | 0.085324 | 293 | 10 | 55 | 29.3 | 0.794776 | 0.129693 | 0 | 0 | 0 | 0 | 0.150794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
b9a5b2551c3bc380350bcc061a681ed9f5575a06 | 9,045 | py | Python | cls_demo/realtime_communication_model.py | GalphaXie/LaoX | b7e8f9744292dc052c870e4d873052e9bfec19ee | [
"MIT"
] | null | null | null | cls_demo/realtime_communication_model.py | GalphaXie/LaoX | b7e8f9744292dc052c870e4d873052e9bfec19ee | [
"MIT"
] | 12 | 2020-03-24T17:39:25.000Z | 2022-03-12T00:01:24.000Z | cls_demo/realtime_communication_model.py | GalphaXie/LaoX | b7e8f9744292dc052c870e4d873052e9bfec19ee | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# file: realtime_communication_model.py
# Created by Guang at 19-8-6
# description:
# *-* coding:utf8 *-*
# 即时通信模块, 参考参考
import random
import time
class Message(object):
def __init__(self, msgarr=[], toacc=''):
self.msgbody = msgarr # 此处为MsgDict对象实例的列表或者空列表
self.toacc = toacc... | 28.533123 | 103 | 0.59016 | 981 | 9,045 | 5.321101 | 0.192661 | 0.034483 | 0.021073 | 0.024138 | 0.246552 | 0.211686 | 0.195594 | 0.174521 | 0.134291 | 0.134291 | 0 | 0.007754 | 0.28712 | 9,045 | 317 | 104 | 28.533123 | 0.801799 | 0.110006 | 0 | 0.417778 | 0 | 0 | 0.07018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.008889 | 0.008889 | 0.284444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9a869562182de5c84cd2e1d1a86c2d40cf9494d | 3,584 | py | Python | evaluation/nlp_util/parse_errors.py | jkkummerfeld/1ec-graph-parser | 1f42eb2737a841dac928652fd7e85d20afc0c6b1 | [
"0BSD"
] | 13 | 2017-07-14T21:03:40.000Z | 2021-11-17T11:23:56.000Z | evaluation/nlp_util/parse_errors.py | jkkummerfeld/1ec-graph-parser | 1f42eb2737a841dac928652fd7e85d20afc0c6b1 | [
"0BSD"
] | 1 | 2017-12-06T01:31:05.000Z | 2020-12-10T15:13:42.000Z | format-conversion/nlp_util/parse_errors.py | jkkummerfeld/1ec-graph-parser | 1f42eb2737a841dac928652fd7e85d20afc0c6b1 | [
"0BSD"
] | 1 | 2017-07-14T23:33:52.000Z | 2017-07-14T23:33:52.000Z | #!/usr/bin/env python
from collections import defaultdict
import pstree
class Parse_Error_Set:
def __init__(self, gold=None, test=None, include_terminals=False):
self.missing = []
self.crossing = []
self.extra = []
self.POS = []
self.spans = {}
if gold is not None and test is not None:
errors = get_... | 27.358779 | 85 | 0.672712 | 558 | 3,584 | 4.182796 | 0.146953 | 0.03856 | 0.023565 | 0.018852 | 0.361611 | 0.319623 | 0.231362 | 0.202228 | 0.173093 | 0.173093 | 0 | 0.012478 | 0.195033 | 3,584 | 130 | 86 | 27.569231 | 0.796534 | 0.024554 | 0 | 0.232143 | 0 | 0 | 0.033792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017857 | null | null | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9a892884a37af59f59a4f065d31a0e10ff40535 | 1,093 | py | Python | backend/venv/src/api/views.py | AkashSDas/camps_for_champs | 1bf7e51905b5b3efc47f94ffcfde7167dace4475 | [
"MIT"
] | null | null | null | backend/venv/src/api/views.py | AkashSDas/camps_for_champs | 1bf7e51905b5b3efc47f94ffcfde7167dace4475 | [
"MIT"
] | null | null | null | backend/venv/src/api/views.py | AkashSDas/camps_for_champs | 1bf7e51905b5b3efc47f94ffcfde7167dace4475 | [
"MIT"
] | null | null | null | from django.http import JsonResponse
from rest_framework import viewsets
from rest_framework.permissions import IsAdminUser
from .models import Gallery
from .serializers import GallerySerializer
# =============================
# Home view
# =============================
def home_view(req, *args, **kwargs):
retur... | 29.540541 | 98 | 0.62763 | 102 | 1,093 | 6.578431 | 0.54902 | 0.076006 | 0.050671 | 0.074516 | 0.154993 | 0.154993 | 0.154993 | 0.154993 | 0 | 0 | 0 | 0 | 0.182983 | 1,093 | 36 | 99 | 30.361111 | 0.7514 | 0.191217 | 0 | 0 | 0 | 0 | 0.074286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.238095 | 0.047619 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9a91a664498a616c5d25d199cef5d4e2885ed61 | 746 | py | Python | Firewall/copyright.py | d4rkl0rd3r3b05/Firewall | 1721d19846e4dbb98f5ac38ff3722b6f6fd17afc | [
"MIT"
] | 2 | 2015-05-12T22:11:19.000Z | 2019-04-02T01:36:03.000Z | Firewall/copyright.py | d4rkl0rd3r3b05/Firewall | 1721d19846e4dbb98f5ac38ff3722b6f6fd17afc | [
"MIT"
] | 1 | 2021-08-10T06:59:53.000Z | 2021-08-10T06:59:53.000Z | Firewall/copyright.py | d4rkl0rd3r3b05/Firewall | 1721d19846e4dbb98f5ac38ff3722b6f6fd17afc | [
"MIT"
] | 3 | 2015-08-18T08:45:02.000Z | 2021-08-10T07:00:18.000Z | from Tkinter import *
def cprght(prntwin):
mainwin=Toplevel(master=prntwin)
mainwin.title("COPYRIGHT :")
mainwin.resizable(0,0)
root=Frame(mainwin,relief=SOLID,borderwidth=1,bg="black")
#logo
cplogo = PhotoImage(file="icon/copylogo.gif")
logo=Label(root,image=cplogo,relief=FLAT,bg="green")
... | 32.434783 | 113 | 0.654155 | 109 | 746 | 4.477064 | 0.633028 | 0.04918 | 0.079918 | 0.069672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017628 | 0.163539 | 746 | 22 | 114 | 33.909091 | 0.764423 | 0.010724 | 0 | 0 | 0 | 0 | 0.153533 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9ada4b49fa01c65202834bb2149fac614aba7db | 321 | py | Python | visitorx/visitorx/migrations/0002_remove_visit_session_id.py | 1-0/visitorx | be2e9057f74fb3804c05a70ecb769c82cdcf95b1 | [
"MIT"
] | null | null | null | visitorx/visitorx/migrations/0002_remove_visit_session_id.py | 1-0/visitorx | be2e9057f74fb3804c05a70ecb769c82cdcf95b1 | [
"MIT"
] | null | null | null | visitorx/visitorx/migrations/0002_remove_visit_session_id.py | 1-0/visitorx | be2e9057f74fb3804c05a70ecb769c82cdcf95b1 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-19 17:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('visitorx', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='visit',
name='session_id',
),
]... | 17.833333 | 47 | 0.582555 | 34 | 321 | 5.411765 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084821 | 0.302181 | 321 | 17 | 48 | 18.882353 | 0.736607 | 0.140187 | 0 | 0 | 1 | 0 | 0.127737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9b3ed040b838431b20041755c4180ffe1464738 | 854 | py | Python | apps/pkce/migrations/0001_squashed_0002_auto_20210513_1812.py | CMSgov/bluebutton-web-server | 3e7bfb049a2b6bd64fdc4eeae7512b461ccbe682 | [
"Apache-2.0"
] | 25 | 2017-12-10T00:48:31.000Z | 2022-03-25T01:29:13.000Z | apps/pkce/migrations/0001_squashed_0002_auto_20210513_1812.py | EmmaIvy/bluebutton-web-server | 7dbb1a65532c56a905bc825d6a7f170bf6f311c8 | [
"Apache-2.0"
] | 298 | 2017-12-05T05:53:32.000Z | 2022-03-21T19:29:03.000Z | apps/pkce/migrations/0001_squashed_0002_auto_20210513_1812.py | EmmaIvy/bluebutton-web-server | 7dbb1a65532c56a905bc825d6a7f170bf6f311c8 | [
"Apache-2.0"
] | 31 | 2017-12-04T16:01:12.000Z | 2021-09-26T22:34:55.000Z | # Generated by Django 2.2.22 on 2021-05-13 19:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from oauth2_provider import settings as oauth2_settings
class Migration(migrations.Migration):
replaces = [('pkce', '0001_initial')]
initial = True
... | 29.448276 | 160 | 0.649883 | 93 | 854 | 5.806452 | 0.591398 | 0.044444 | 0.051852 | 0.081481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050382 | 0.233021 | 854 | 28 | 161 | 30.5 | 0.774046 | 0.053864 | 0 | 0 | 1 | 0 | 0.10794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9bb5434cdafaef78795cc55d98bbd7522c12cfa | 3,659 | py | Python | PlaidCTF/2017/pykemon/run.py | PurpEth/solved-hacking-problem | 6f289d1647eb9c091caa580c7aae673e3ba02952 | [
"Unlicense"
] | 1 | 2021-08-24T22:16:41.000Z | 2021-08-24T22:16:41.000Z | PlaidCTF/2017/pykemon/run.py | PurpEth/solved-hacking-problem | 6f289d1647eb9c091caa580c7aae673e3ba02952 | [
"Unlicense"
] | null | null | null | PlaidCTF/2017/pykemon/run.py | PurpEth/solved-hacking-problem | 6f289d1647eb9c091caa580c7aae673e3ba02952 | [
"Unlicense"
] | null | null | null | from flask import Flask, request, session, render_template, render_template_string
from random import randint
from pykemon import *
import json
import os
import re
app = Flask(__name__, static_url_path="", static_folder="static")
app.secret_key = 'XXXXXXXXX'
class PageTemplate(object):
def __init__(self, templa... | 27.30597 | 133 | 0.560262 | 459 | 3,659 | 4.379085 | 0.254902 | 0.031841 | 0.032836 | 0.027861 | 0.308458 | 0.280597 | 0.249751 | 0.199005 | 0.199005 | 0.163184 | 0 | 0.00915 | 0.283137 | 3,659 | 133 | 134 | 27.511278 | 0.757148 | 0 | 0 | 0.383178 | 0 | 0 | 0.206067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056075 | null | null | 0.046729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9bf929b859b3369ac8988bfcf684531e37524c9 | 3,458 | py | Python | tests/qnn/conftest.py | ryanlevy/pennylane | fb03b09d17267ebd0b9050432f9eeb84b5dff200 | [
"Apache-2.0"
] | 539 | 2018-11-13T08:45:42.000Z | 2020-07-27T18:17:16.000Z | tests/qnn/conftest.py | ryanlevy/pennylane | fb03b09d17267ebd0b9050432f9eeb84b5dff200 | [
"Apache-2.0"
] | 588 | 2018-11-14T10:21:47.000Z | 2020-07-28T06:27:14.000Z | tests/qnn/conftest.py | ryanlevy/pennylane | fb03b09d17267ebd0b9050432f9eeb84b5dff200 | [
"Apache-2.0"
] | 165 | 2018-11-13T18:58:56.000Z | 2020-07-27T17:18:17.000Z | # Copyright 2018-2020 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | 38.853933 | 103 | 0.658762 | 509 | 3,458 | 4.398821 | 0.310413 | 0.075034 | 0.062528 | 0.040197 | 0.543993 | 0.510049 | 0.510049 | 0.510049 | 0.510049 | 0.510049 | 0 | 0.033582 | 0.224986 | 3,458 | 88 | 104 | 39.295455 | 0.801866 | 0.39705 | 0 | 0.823529 | 0 | 0 | 0.026706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.058824 | 0 | 0.215686 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9c7c34c40a25ca1b028f245b411ef0a268aba31 | 517 | py | Python | setup.py | arcamens/django-commadecimal | 99e83412c443ba5f737e63fc1b21b2fffd8b59af | [
"MIT"
] | 1 | 2018-09-02T21:51:56.000Z | 2018-09-02T21:51:56.000Z | setup.py | iogf/django-commadecimal | 99e83412c443ba5f737e63fc1b21b2fffd8b59af | [
"MIT"
] | 2 | 2020-02-12T01:00:55.000Z | 2020-06-05T18:33:19.000Z | setup.py | iogf/django-commadecimal | 99e83412c443ba5f737e63fc1b21b2fffd8b59af | [
"MIT"
] | null | null | null | #! /usr/bin/env python
from distutils.core import setup
setup(name="commadecimal",
version="1.0.0",
description="",
packages=["commadecimal"],
author="Iury O. G. Figueiredo",
author_email="ioliveira@id.uff.br",
url='https://github.com/iogf/django-commadecimal',
download_url='... | 6.986486 | 74 | 0.574468 | 52 | 517 | 5.673077 | 0.75 | 0.054237 | 0.094915 | 0.115254 | 0.264407 | 0.264407 | 0.264407 | 0 | 0 | 0 | 0 | 0.007916 | 0.266925 | 517 | 73 | 75 | 7.082192 | 0.770449 | 0.040619 | 0 | 0 | 0 | 0 | 0.440367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9c9808e98698f5edb8ed2996b096c4e625535cd | 700 | py | Python | weCodeBlog/migrations/0004_auto_20210808_1505.py | ridaomar/weCode | 80f36f1e407da545158c595364a77175a136c4ae | [
"MIT"
] | null | null | null | weCodeBlog/migrations/0004_auto_20210808_1505.py | ridaomar/weCode | 80f36f1e407da545158c595364a77175a136c4ae | [
"MIT"
] | null | null | null | weCodeBlog/migrations/0004_auto_20210808_1505.py | ridaomar/weCode | 80f36f1e407da545158c595364a77175a136c4ae | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-08 13:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('weCodeBlog', '0003_auto_20210805_1927'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | 26.923077 | 117 | 0.575714 | 70 | 700 | 5.628571 | 0.7 | 0.060914 | 0.060914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075356 | 0.298571 | 700 | 25 | 118 | 28 | 0.727088 | 0.064286 | 0 | 0.105263 | 1 | 0 | 0.114855 | 0.035222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9cbdc3c412d0381af436e1c72306c3481d8a2b3 | 534 | py | Python | xiachufang/xiachufang/spiders/category.py | syaning/yummy | 50f0601e0090c1e25a4759f5af416c24f7faaafa | [
"MIT"
] | null | null | null | xiachufang/xiachufang/spiders/category.py | syaning/yummy | 50f0601e0090c1e25a4759f5af416c24f7faaafa | [
"MIT"
] | null | null | null | xiachufang/xiachufang/spiders/category.py | syaning/yummy | 50f0601e0090c1e25a4759f5af416c24f7faaafa | [
"MIT"
] | null | null | null | from scrapy import Spider
from xiachufang.items import CategoryItem
from xiachufang.util import base_url, domains
class CategoryListSpider(Spider):
name = 'category'
allowed_domains = domains
start_urls = ['http://www.xiachufang.com/category/']
def parse(self, response):
for sel in response.c... | 31.411765 | 68 | 0.638577 | 65 | 534 | 5.184615 | 0.630769 | 0.083086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004843 | 0.226592 | 534 | 16 | 69 | 33.375 | 0.811138 | 0 | 0 | 0 | 0 | 0 | 0.151685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9d13de5e32d573af36517618371c795c760e832 | 327 | py | Python | user/migrations/0017_remove_profile_following.py | akindele214/181hub_2 | 48b8814b5f66ad87f9a54721506076ddf70fe9bc | [
"MIT"
] | 1 | 2020-05-20T08:42:49.000Z | 2020-05-20T08:42:49.000Z | user/migrations/0017_remove_profile_following.py | akindele214/181hub_2 | 48b8814b5f66ad87f9a54721506076ddf70fe9bc | [
"MIT"
] | 14 | 2020-03-24T17:31:08.000Z | 2022-03-11T23:59:30.000Z | user/migrations/0017_remove_profile_following.py | akindele214/181hub_2 | 48b8814b5f66ad87f9a54721506076ddf70fe9bc | [
"MIT"
] | 1 | 2020-04-13T12:37:37.000Z | 2020-04-13T12:37:37.000Z | # Generated by Django 2.1.7 on 2019-04-03 15:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0016_profile_follower'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='following',
),... | 18.166667 | 47 | 0.590214 | 34 | 327 | 5.588235 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082609 | 0.296636 | 327 | 17 | 48 | 19.235294 | 0.743478 | 0.137615 | 0 | 0 | 1 | 0 | 0.146429 | 0.075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9d7ccfa053da18f15297cf4223437dc1d45b52f | 2,255 | py | Python | tests_dissertation/source1d/test1a_load.py | DFNaiff/Dissertation | 8db72a0e588042a582053625ec58cde6a661f2a9 | [
"MIT"
] | null | null | null | tests_dissertation/source1d/test1a_load.py | DFNaiff/Dissertation | 8db72a0e588042a582053625ec58cde6a661f2a9 | [
"MIT"
] | null | null | null | tests_dissertation/source1d/test1a_load.py | DFNaiff/Dissertation | 8db72a0e588042a582053625ec58cde6a661f2a9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
sys.path.insert(0,"../../src")
sys.path.insert(0,"../credibleinterval")
import math
import functools
import time
import torch
import numpy as np
from scipy.special import gamma
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import pandas as pd
import seaborn ... | 27.168675 | 61 | 0.630155 | 373 | 2,255 | 3.729223 | 0.359249 | 0.01294 | 0.025881 | 0.030194 | 0.122933 | 0.069734 | 0.069015 | 0.043134 | 0.028756 | 0 | 0 | 0.039017 | 0.170288 | 2,255 | 83 | 62 | 27.168675 | 0.704436 | 0.520621 | 0 | 0 | 0 | 0 | 0.083573 | 0.022094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.361111 | 0.055556 | 0.472222 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
b9d7d527bbedcfd93893a1c684be573321224f5c | 501 | py | Python | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/projecteuler/euler002_even_fibs.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 5 | 2021-06-02T23:44:25.000Z | 2021-12-27T16:21:57.000Z | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/projecteuler/euler002_even_fibs.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 22 | 2021-05-31T01:33:25.000Z | 2021-10-18T18:32:39.000Z | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/projecteuler/euler002_even_fibs.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 3 | 2021-06-19T03:37:47.000Z | 2021-08-31T00:49:51.000Z | #!/usr/bin/env python
"""
Solution to Project Euler Problem 2
http://projecteuler.net/
by Apalala <apalala@gmail.com>
(cc) Attribution-ShareAlike
http://creativecommons.org/licenses/by-sa/3.0/
The sum of the fibonacci numbers less than 4000000
"""
from series import all_fibs
def even_fibs(m):
return (f for f i... | 16.16129 | 50 | 0.666667 | 81 | 501 | 3.962963 | 0.691358 | 0.074766 | 0.068536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04914 | 0.187625 | 501 | 30 | 51 | 16.7 | 0.739558 | 0.479042 | 0 | 0 | 0 | 0 | 0.031621 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.3 | false | 0 | 0.1 | 0.1 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9d9f0287c06e571a295502c2c120c2b3c2a043b | 858 | py | Python | DecisionTree/main.py | FindTheTruth/Machine-learning | 4a4f12ef3995e8ffa93679dbee71ea52095b5b2f | [
"Apache-2.0"
] | 3 | 2021-09-30T08:10:52.000Z | 2022-01-24T08:23:15.000Z | DecisionTree/main.py | FindTheTruth/Machine-learning | 4a4f12ef3995e8ffa93679dbee71ea52095b5b2f | [
"Apache-2.0"
] | null | null | null | DecisionTree/main.py | FindTheTruth/Machine-learning | 4a4f12ef3995e8ffa93679dbee71ea52095b5b2f | [
"Apache-2.0"
] | null | null | null | # This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import numpy as np
import operator
from BaseUtils import BaseUtils
from DecisionTree import DecisionTree
# Press the green ... | 40.857143 | 98 | 0.738928 | 127 | 858 | 4.818898 | 0.543307 | 0.065359 | 0.058824 | 0.068627 | 0.127451 | 0.127451 | 0.127451 | 0 | 0 | 0 | 0 | 0.008299 | 0.157343 | 858 | 20 | 99 | 42.9 | 0.838174 | 0.354312 | 0 | 0 | 0 | 0 | 0.120438 | 0.076642 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
b9dd0b7210e918163a31f594a92e91add4a26bba | 479 | py | Python | redis/commands/__init__.py | lazToum/redis-py | de56455dc5a3f7afc5e88278d7b3cb1e0f25bcc1 | [
"MIT"
] | null | null | null | redis/commands/__init__.py | lazToum/redis-py | de56455dc5a3f7afc5e88278d7b3cb1e0f25bcc1 | [
"MIT"
] | null | null | null | redis/commands/__init__.py | lazToum/redis-py | de56455dc5a3f7afc5e88278d7b3cb1e0f25bcc1 | [
"MIT"
] | null | null | null | from .cluster import RedisClusterCommands
from .core import AsyncCoreCommands, CoreCommands
from .helpers import list_or_args
from .parser import CommandsParser
from .redismodules import RedisModuleCommands
from .sentinel import AsyncSentinelCommands, SentinelCommands
__all__ = [
"RedisClusterCommands",
"Comma... | 26.611111 | 61 | 0.778706 | 39 | 479 | 9.358974 | 0.487179 | 0.158904 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148225 | 479 | 17 | 62 | 28.176471 | 0.894608 | 0 | 0 | 0 | 0 | 0 | 0.273486 | 0.043841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b9e09ba5553a9ba86bc037f0126ff055705ddbee | 457 | py | Python | python/dynamic_graph/sot/torque_control/tests/test_magdwick.py | nim65s/sot-torque-control | 0277baa065e6addf16df804676d47597cf1b4b06 | [
"BSD-2-Clause"
] | 6 | 2017-11-01T20:14:53.000Z | 2020-04-03T04:51:07.000Z | python/dynamic_graph/sot/torque_control/tests/test_magdwick.py | nim65s/sot-torque-control | 0277baa065e6addf16df804676d47597cf1b4b06 | [
"BSD-2-Clause"
] | 52 | 2017-03-31T21:24:38.000Z | 2021-11-03T08:27:46.000Z | python/dynamic_graph/sot/torque_control/tests/test_magdwick.py | nim65s/sot-torque-control | 0277baa065e6addf16df804676d47597cf1b4b06 | [
"BSD-2-Clause"
] | 14 | 2017-04-06T20:03:27.000Z | 2020-07-28T14:20:42.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 3 14:01:08 2017
@author: adelpret
"""
from dynamic_graph.sot.torque_control.madgwickahrs import MadgwickAHRS
dt = 0.001
imu_filter = MadgwickAHRS('imu_filter')
imu_filter.init(dt)
imu_filter.setBeta(0.0)
for i in range(10):
imu_filter.accelerometer.value = (0.0, 0... | 22.85 | 70 | 0.708972 | 77 | 457 | 4.051948 | 0.558442 | 0.230769 | 0.115385 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086735 | 0.142232 | 457 | 19 | 71 | 24.052632 | 0.709184 | 0.16849 | 0 | 0 | 0 | 0 | 0.026882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9e103bf12ed3019a3bdfa3917705bebb6e173fd | 445 | py | Python | setup.py | UCL-RITS/DashPy-kpi | 3fc85fe18017cf8dcda4e0ed389774c73396b1f7 | [
"MIT"
] | null | null | null | setup.py | UCL-RITS/DashPy-kpi | 3fc85fe18017cf8dcda4e0ed389774c73396b1f7 | [
"MIT"
] | null | null | null | setup.py | UCL-RITS/DashPy-kpi | 3fc85fe18017cf8dcda4e0ed389774c73396b1f7 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="DashPykpi",
version="0.1.1",
description='Functions to create KPI info for RSD Dashboard from Github',
url='https://github.com/UCL-RITS/DashPy-kpi',
author='Benjamin A. Laken',
author_email='b.laken@ucl.ac.uk',
license='MIT',
pack... | 29.666667 | 77 | 0.667416 | 58 | 445 | 5.051724 | 0.741379 | 0.081911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008043 | 0.161798 | 445 | 14 | 78 | 31.785714 | 0.77748 | 0 | 0 | 0 | 0 | 0 | 0.402247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9e44c86bb52617653c18db9a7aaa938925072bf | 1,780 | py | Python | src/backend/tests/factories/crawler_factory.py | KentShikama/recordexpungPDX | 4d3d14339e9f408ae466b867615101bdee42e98b | [
"MIT"
] | null | null | null | src/backend/tests/factories/crawler_factory.py | KentShikama/recordexpungPDX | 4d3d14339e9f408ae466b867615101bdee42e98b | [
"MIT"
] | null | null | null | src/backend/tests/factories/crawler_factory.py | KentShikama/recordexpungPDX | 4d3d14339e9f408ae466b867615101bdee42e98b | [
"MIT"
] | null | null | null | from typing import Tuple, List, Dict
import requests_mock
from expungeservice.crawler.request import URL
from expungeservice.models.ambiguous import AmbiguousRecord
from expungeservice.models.record import Record, Question
from expungeservice.record_creator import RecordCreator
from tests.fixtures.post_login_page imp... | 43.414634 | 120 | 0.703933 | 204 | 1,780 | 5.946078 | 0.406863 | 0.074196 | 0.079143 | 0.037923 | 0.229184 | 0.229184 | 0.168178 | 0.168178 | 0.168178 | 0.168178 | 0 | 0.019009 | 0.172472 | 1,780 | 40 | 121 | 44.5 | 0.804481 | 0 | 0 | 0.1875 | 0 | 0 | 0.117416 | 0.012921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.03125 | 0.3125 | 0.03125 | 0.46875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b9eb8a963ea6a3670e0b6a8d9250e2d173e0dc54 | 10,526 | py | Python | tests/test_data.py | RBrearton/nexusformat | 229eb8105113a8660461c7b9150bfc769959455a | [
"BSD-3-Clause-Clear"
] | null | null | null | tests/test_data.py | RBrearton/nexusformat | 229eb8105113a8660461c7b9150bfc769959455a | [
"BSD-3-Clause-Clear"
] | null | null | null | tests/test_data.py | RBrearton/nexusformat | 229eb8105113a8660461c7b9150bfc769959455a | [
"BSD-3-Clause-Clear"
] | null | null | null | import numpy as np
import pytest
import warnings
from nexusformat.nexus import *
x = NXfield(2 * np.linspace(0.0, 10.0, 11, dtype=np.float64), name="x")
y = NXfield(3 * np.linspace(0.0, 5.0, 6, dtype=np.float64), name="y")
z = NXfield(4 * np.linspace(0.0, 2.0, 3, dtype=np.float64), name="z")
v = NXfield(np.linspace(0,... | 28.069333 | 80 | 0.613718 | 1,708 | 10,526 | 3.690281 | 0.096604 | 0.066635 | 0.053625 | 0.07425 | 0.592734 | 0.5142 | 0.466921 | 0.42218 | 0.396002 | 0.322386 | 0 | 0.053468 | 0.198651 | 10,526 | 374 | 81 | 28.144385 | 0.693776 | 0 | 0 | 0.235772 | 0 | 0 | 0.053582 | 0 | 0 | 0 | 0 | 0 | 0.52439 | 1 | 0.060976 | false | 0 | 0.01626 | 0 | 0.077236 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9f10b05209e1c411c64e674e84a5adb19f902fe | 837 | py | Python | test/test_passport.py | francesconazzaro/telepota | 571b9fec6bedecf487df121644d8c673e6c5fd8f | [
"MIT"
] | 30 | 2020-07-27T07:11:44.000Z | 2022-03-20T19:01:22.000Z | test/test_passport.py | francesconazzaro/telepota | 571b9fec6bedecf487df121644d8c673e6c5fd8f | [
"MIT"
] | 5 | 2021-03-23T04:53:01.000Z | 2022-02-19T20:31:57.000Z | test/test_passport.py | francesconazzaro/telepota | 571b9fec6bedecf487df121644d8c673e6c5fd8f | [
"MIT"
] | 3 | 2021-04-01T12:42:21.000Z | 2022-03-20T18:33:02.000Z | import time
import telepot
from telepot.utils import clean_data
import telepot.test_settings as st
class AdminBot(telepot.Bot):
def on_chat_message(self, msg):
content_type, chat_type, chat_id = telepot.glance(msg)
print(chat_id)
bot.sendAnimation(chat_id, open('TestFiles/tenor.gif', 'rb')... | 27.9 | 110 | 0.701314 | 124 | 837 | 4.516129 | 0.395161 | 0.064286 | 0.085714 | 0.067857 | 0.225 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0.002907 | 0.178017 | 837 | 29 | 111 | 28.862069 | 0.811047 | 0 | 0 | 0 | 0 | 0 | 0.137395 | 0.02509 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.190476 | 0 | 0.380952 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b9f1a1585a9b5a41503caa80b5d0be36f4dd591c | 593 | py | Python | app/migrations/0003_auto_20200513_0322.py | raptor419/delhiration | a12938e041803d7dbc3480bdf880e3f49ddd2c1a | [
"MIT"
] | null | null | null | app/migrations/0003_auto_20200513_0322.py | raptor419/delhiration | a12938e041803d7dbc3480bdf880e3f49ddd2c1a | [
"MIT"
] | null | null | null | app/migrations/0003_auto_20200513_0322.py | raptor419/delhiration | a12938e041803d7dbc3480bdf880e3f49ddd2c1a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-05-12 21:52
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('app', '0002_auto_20200513_0257'),
]
operations =... | 23.72 | 70 | 0.610455 | 63 | 593 | 5.587302 | 0.634921 | 0.056818 | 0.090909 | 0.119318 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072941 | 0.283305 | 593 | 24 | 71 | 24.708333 | 0.755294 | 0.075885 | 0 | 0.333333 | 1 | 0 | 0.07326 | 0.042125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9f1f0d83697f96cdd7865851537907c29821221 | 6,299 | py | Python | parser/fase2/team29/analizer_pl/interpreter.py | estabanmike/tytus | b43684b31d7b140fea1724b55e5c62b6a8c2672b | [
"MIT"
] | null | null | null | parser/fase2/team29/analizer_pl/interpreter.py | estabanmike/tytus | b43684b31d7b140fea1724b55e5c62b6a8c2672b | [
"MIT"
] | null | null | null | parser/fase2/team29/analizer_pl/interpreter.py | estabanmike/tytus | b43684b31d7b140fea1724b55e5c62b6a8c2672b | [
"MIT"
] | null | null | null | from re import S
from sys import path
from os.path import dirname as dir
path.append(dir(path[0]))
from analizer_pl.C3D.operations import block
from analizer_pl.reports import BnfGrammar
from analizer_pl.abstract import global_env
import analizer_pl.grammar as grammar
def traducir(input):
result = grammar.parse(... | 25.710204 | 89 | 0.66328 | 805 | 6,299 | 5.180124 | 0.258385 | 0.016787 | 0.023022 | 0.042206 | 0.448441 | 0.421103 | 0.388489 | 0.313429 | 0.296643 | 0.296643 | 0 | 0.017949 | 0.230513 | 6,299 | 244 | 90 | 25.815574 | 0.842377 | 0.002858 | 0 | 0.401869 | 0 | 0.009346 | 0.6423 | 0.071667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014019 | false | 0 | 0.051402 | 0 | 0.084112 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9f20b2792db4de4d651af24d3f9f669a77b1338 | 3,213 | py | Python | slixmpp/plugins/xep_0172/user_nick.py | isabella232/slixmpp | e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a | [
"BSD-3-Clause"
] | null | null | null | slixmpp/plugins/xep_0172/user_nick.py | isabella232/slixmpp | e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a | [
"BSD-3-Clause"
] | 1 | 2021-02-24T07:58:40.000Z | 2021-02-24T07:58:40.000Z | slixmpp/plugins/xep_0172/user_nick.py | isabella232/slixmpp | e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a | [
"BSD-3-Clause"
] | null | null | null | """
Slixmpp: The Slick XMPP Library
Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout
This file is part of Slixmpp.
See the file LICENSE for copying permission.
"""
import logging
from slixmpp.stanza.message import Message
from slixmpp.stanza.presence import Presence
from slixmpp.xmlstream impo... | 38.25 | 86 | 0.610955 | 355 | 3,213 | 5.430986 | 0.315493 | 0.062241 | 0.028527 | 0.03112 | 0.401452 | 0.378631 | 0.378631 | 0.378631 | 0.378631 | 0.325726 | 0 | 0.021828 | 0.315593 | 3,213 | 83 | 87 | 38.710843 | 0.854934 | 0.356676 | 0 | 0.055556 | 0 | 0 | 0.049622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.222222 | 0 | 0.527778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9f2c3e301451e9869809b2e00c5ecbf6a7f4270 | 1,235 | py | Python | src/data/user_data.py | r-anime/modbot | 52e8f251273435e0146bd8d6633ff22549e138aa | [
"MIT"
] | 3 | 2020-07-06T08:26:12.000Z | 2021-04-20T05:31:38.000Z | src/data/user_data.py | r-anime/modbot | 52e8f251273435e0146bd8d6633ff22549e138aa | [
"MIT"
] | 8 | 2021-06-01T03:49:28.000Z | 2022-03-18T02:27:43.000Z | src/data/user_data.py | r-anime/modbot | 52e8f251273435e0146bd8d6633ff22549e138aa | [
"MIT"
] | 1 | 2021-04-20T05:30:46.000Z | 2021-04-20T05:30:46.000Z | from typing import Optional
from sqlalchemy.sql import text
from data.base_data import BaseModel, BaseData
class UserModel(BaseModel):
# Originally users were supposed to have an int/base36 id field just like posts/comments,
# but turns out suspended users DON'T HAVE A VISIBLE ID. Thanks Reddit!
_table ... | 26.847826 | 120 | 0.617004 | 142 | 1,235 | 5.239437 | 0.549296 | 0.067204 | 0.043011 | 0.05914 | 0.16129 | 0.096774 | 0.096774 | 0 | 0 | 0 | 0 | 0.003401 | 0.28583 | 1,235 | 45 | 121 | 27.444444 | 0.840136 | 0.169231 | 0 | 0.086957 | 0 | 0 | 0.099078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9f576034bcd11099fb4a182e3623ea33a8b41b2 | 492 | py | Python | tests/sim_cothread_ioc.py | mdavidsaver/pythonSoftIOC | 797c3f662b8461ecc5054928cac79149234888f6 | [
"Apache-2.0"
] | 7 | 2015-10-13T07:33:35.000Z | 2020-10-20T16:01:59.000Z | tests/sim_cothread_ioc.py | mdavidsaver/pythonSoftIOC | 797c3f662b8461ecc5054928cac79149234888f6 | [
"Apache-2.0"
] | 57 | 2021-07-29T13:00:57.000Z | 2022-03-04T14:45:39.000Z | tests/sim_cothread_ioc.py | mdavidsaver/pythonSoftIOC | 797c3f662b8461ecc5054928cac79149234888f6 | [
"Apache-2.0"
] | 3 | 2018-06-29T13:01:11.000Z | 2021-01-22T17:12:38.000Z | from argparse import ArgumentParser
from softioc import softioc, builder, pvlog
if __name__ == "__main__":
import cothread
# Being run as an IOC, so parse args and set prefix
parser = ArgumentParser()
parser.add_argument('prefix', help="The PV prefix for the records")
parsed_args = parser.parse_... | 23.428571 | 71 | 0.715447 | 61 | 492 | 5.557377 | 0.590164 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205285 | 492 | 20 | 72 | 24.6 | 0.867008 | 0.123984 | 0 | 0 | 0 | 0 | 0.100467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
b9f766924aaa8647306208be7f4453e2bc32d573 | 2,647 | py | Python | appium/webdriver/extensions/log_event.py | salabogdan/python-client | 66208fdbbc8f0a8b0e90376b404135b57e797fa5 | [
"Apache-2.0"
] | 1,383 | 2015-01-02T20:38:52.000Z | 2022-03-30T13:20:42.000Z | appium/webdriver/extensions/log_event.py | ayvnkhan/python-client | ba408b74f0d30fc06a51e77f68fc5cfd4ac8f99a | [
"Apache-2.0"
] | 460 | 2015-01-06T22:10:41.000Z | 2022-03-31T14:35:28.000Z | appium/webdriver/extensions/log_event.py | mykola-mokhnach/python-client | 2a462becfe31dc4e18559ba246b0856fd3eb2488 | [
"Apache-2.0"
] | 554 | 2015-01-06T13:36:05.000Z | 2022-03-30T10:20:20.000Z | #!/usr/bin/env python
# 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, software... | 35.293333 | 109 | 0.651303 | 328 | 2,647 | 5.204268 | 0.432927 | 0.035149 | 0.015231 | 0.018746 | 0.062097 | 0.022261 | 0 | 0 | 0 | 0 | 0 | 0.006073 | 0.253495 | 2,647 | 74 | 110 | 35.77027 | 0.857794 | 0.540612 | 0 | 0 | 0 | 0 | 0.113524 | 0.068115 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.210526 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9fad910e2826e2320437290f9f898138dd26632 | 4,700 | py | Python | examples/python/EventBuilder.py | jstrube/lcio | 763eb323df33d3b0c4240e6b6feb7d0a27b790d5 | [
"BSD-3-Clause"
] | null | null | null | examples/python/EventBuilder.py | jstrube/lcio | 763eb323df33d3b0c4240e6b6feb7d0a27b790d5 | [
"BSD-3-Clause"
] | null | null | null | examples/python/EventBuilder.py | jstrube/lcio | 763eb323df33d3b0c4240e6b6feb7d0a27b790d5 | [
"BSD-3-Clause"
] | null | null | null | '''
Created on May 17, 2013
Example for creating LCIO events and filling them with MCParticles and SimTrackerHits.
@author: <a href="mailto:christian.grefe@cern.ch">Christian Grefe</a>
'''
from pyLCIO import EVENT, IMPL, IOIMPL, UTIL
from ROOT import TVector3, TLorentzVector, TRandom3, TMath
from time import time
i... | 36.153846 | 98 | 0.623617 | 473 | 4,700 | 6.173362 | 0.424947 | 0.015411 | 0.010274 | 0.019178 | 0.022603 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026882 | 0.28766 | 4,700 | 129 | 99 | 36.434109 | 0.845281 | 0.127872 | 0 | 0 | 0 | 0 | 0.048304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a00d59f915d1deb28030e4ddc60b94ab1650aaa | 498 | py | Python | src/netbox_example/api/serializers.py | steffann/netbox-example-plugin | 9f1c22ae60bb21e7d4685219eb76687c62f0161e | [
"Apache-2.0"
] | 4 | 2020-01-19T04:14:07.000Z | 2020-06-03T17:36:19.000Z | src/netbox_example/api/serializers.py | steffann/netbox-example-plugin | 9f1c22ae60bb21e7d4685219eb76687c62f0161e | [
"Apache-2.0"
] | null | null | null | src/netbox_example/api/serializers.py | steffann/netbox-example-plugin | 9f1c22ae60bb21e7d4685219eb76687c62f0161e | [
"Apache-2.0"
] | 1 | 2020-09-17T17:02:43.000Z | 2020-09-17T17:02:43.000Z | from rest_framework import serializers
from dcim.api.nested_serializers import NestedDeviceSerializer
from ..models import DeviceExample, Example
#
# Examples
#
class ExampleSerializer(serializers.ModelSerializer):
class Meta:
model = Example
fields = ['id', 'name', 'value']
class DeviceExampl... | 21.652174 | 62 | 0.710843 | 45 | 498 | 7.822222 | 0.533333 | 0.147727 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192771 | 498 | 22 | 63 | 22.636364 | 0.875622 | 0.016064 | 0 | 0.166667 | 0 | 0 | 0.057613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6a00e774d29d815a621542443e602fdd43441862 | 1,152 | py | Python | packages/pyre/flow/Status.py | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | 3 | 2019-08-02T21:02:47.000Z | 2021-09-08T13:59:43.000Z | packages/pyre/flow/Status.py | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | null | null | null | packages/pyre/flow/Status.py | lijun99/pyre | 004dfd4c06489b4ba5b32877338ca6440f2d523b | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2019 all rights reserved
#
# externals
import weakref
# support
import pyre
# declaration
class Status(pyre.tracker):
"""
A helper that watches over a component's traits and records value changes
"""
# public data
raw = T... | 18.285714 | 78 | 0.554688 | 131 | 1,152 | 4.816794 | 0.580153 | 0.038035 | 0.041204 | 0.057052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011827 | 0.33941 | 1,152 | 62 | 79 | 18.580645 | 0.817346 | 0.394965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6a039639c098c63ad091934c27f2c1cc5c7257fa | 6,479 | py | Python | tensorflowTUT/tf20_RNN2.2/Movfan_sin.py | Wendroff/Learn-Tensorflow-from-Movfan | 4a93485735b4ecacac609f61ef470c56c569dffe | [
"MIT"
] | null | null | null | tensorflowTUT/tf20_RNN2.2/Movfan_sin.py | Wendroff/Learn-Tensorflow-from-Movfan | 4a93485735b4ecacac609f61ef470c56c569dffe | [
"MIT"
] | null | null | null | tensorflowTUT/tf20_RNN2.2/Movfan_sin.py | Wendroff/Learn-Tensorflow-from-Movfan | 4a93485735b4ecacac609f61ef470c56c569dffe | [
"MIT"
] | 1 | 2020-10-28T10:49:18.000Z | 2020-10-28T10:49:18.000Z |
"""
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
Run this script on tensorflow r0.10. Errors appear when using lower versions.
"""
#%%
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
#%%
BATCH_START = 0
<<<<<<< HEAD:tensorfl... | 39.03012 | 113 | 0.615681 | 917 | 6,479 | 4.095965 | 0.246456 | 0.036209 | 0.022364 | 0.027955 | 0.178115 | 0.158413 | 0.09558 | 0.078541 | 0.038605 | 0.027689 | 0 | 0.027071 | 0.247415 | 6,479 | 165 | 114 | 39.266667 | 0.743232 | 0.130421 | 0 | 0.084034 | 0 | 0 | 0.037701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02521 | null | null | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a078e6c51c94e19edcfeb402a723b4d29fdbaf5 | 256 | py | Python | lab-examples/teste2.py | danhpaiva/university-202002-py | 005dfdc7df523ec4bb4be512e3e1f8a95f038a90 | [
"MIT"
] | 1 | 2020-10-30T13:23:38.000Z | 2020-10-30T13:23:38.000Z | lab-examples/teste2.py | danhpaiva/university-202002-py | 005dfdc7df523ec4bb4be512e3e1f8a95f038a90 | [
"MIT"
] | null | null | null | lab-examples/teste2.py | danhpaiva/university-202002-py | 005dfdc7df523ec4bb4be512e3e1f8a95f038a90 | [
"MIT"
] | null | null | null | import requests
r = requests.get('https://github.com/timeline.json')
print('Codigo de Retorno HTTP : ', r.status_code)
if (r.status_code == 200):
print()
print('JSON : ', r.json())
print()
else:
print('Nao houve sucesso na requisicao.')
| 19.692308 | 52 | 0.644531 | 36 | 256 | 4.527778 | 0.666667 | 0.110429 | 0.134969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014354 | 0.183594 | 256 | 12 | 53 | 21.333333 | 0.76555 | 0 | 0 | 0.222222 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6a0790bc4c38f2fc7290955386fd34bb61b64390 | 12,841 | py | Python | src/main/py/ltprg/model/obs.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | 11 | 2017-08-03T15:42:19.000Z | 2021-02-04T12:43:35.000Z | src/main/py/ltprg/model/obs.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | null | null | null | src/main/py/ltprg/model/obs.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | 1 | 2021-02-04T12:43:37.000Z | 2021-02-04T12:43:37.000Z | import torch
import torch.nn as nn
from ltprg.model.seq import sort_seq_tensors, unsort_seq_tensors, SequenceModel
from torch.autograd import Variable
class ObservationModel(nn.Module):
def __init__(self):
super(ObservationModel, self).__init__()
def forward(self, observation):
"""... | 44.27931 | 196 | 0.679153 | 1,610 | 12,841 | 5.075776 | 0.077019 | 0.097895 | 0.054821 | 0.0465 | 0.722467 | 0.704234 | 0.691997 | 0.633382 | 0.616006 | 0.562653 | 0 | 0.009708 | 0.221867 | 12,841 | 289 | 197 | 44.432526 | 0.808147 | 0.105521 | 0 | 0.539267 | 0 | 0 | 0.033063 | 0.006126 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125654 | false | 0.015707 | 0.020942 | 0.026178 | 0.251309 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a14590b1e11b48562f898e09f0f21b2a5e1af8c | 293 | py | Python | boards/esp32/libraries/legacy/projects/oled_lidar/oled_text_demo.py | iot49/IoT49 | 243673db2de477737e23a5da96cd60429c113f87 | [
"MIT"
] | null | null | null | boards/esp32/libraries/legacy/projects/oled_lidar/oled_text_demo.py | iot49/IoT49 | 243673db2de477737e23a5da96cd60429c113f87 | [
"MIT"
] | null | null | null | boards/esp32/libraries/legacy/projects/oled_lidar/oled_text_demo.py | iot49/IoT49 | 243673db2de477737e23a5da96cd60429c113f87 | [
"MIT"
] | null | null | null | from machine import I2C, Pin, RTC
from board import SDA, SCL
from oledfeather import OledFeather
import time
i2c = I2C(id=0, scl=Pin(SCL), sda=Pin(SDA), freq=100000)
oled = OledFeather(i2c)
while True:
oled.text(time.strftime('%A\n%b %d, %Y\n%H:%M:%S', RTC().now()))
time.sleep(1)
| 20.928571 | 68 | 0.675768 | 52 | 293 | 3.807692 | 0.596154 | 0.171717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.153584 | 293 | 13 | 69 | 22.538462 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.078498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6a1634bbb9c744ce4d51fc437b59e2a045265d27 | 533 | py | Python | my_snippets/preprocessing/remove_single-point_spikes.py | FilipDominec/gayplot | aabeee33f9b594952e88e31d94eead20b21ed674 | [
"MIT"
] | 6 | 2016-09-26T16:30:46.000Z | 2020-04-29T17:30:01.000Z | my_snippets/preprocessing/remove_single-point_spikes.py | FilipDominec/gayplot | aabeee33f9b594952e88e31d94eead20b21ed674 | [
"MIT"
] | 5 | 2016-08-25T15:51:35.000Z | 2018-06-14T17:12:42.000Z | my_snippets/preprocessing/remove_single-point_spikes.py | FilipDominec/gayplot | aabeee33f9b594952e88e31d94eead20b21ed674 | [
"MIT"
] | 4 | 2017-06-07T14:40:29.000Z | 2019-05-09T14:17:55.000Z | kernel = [1,0,1] # averaging of neighbors #kernel = np.exp(-np.linspace(-2,2,5)**2) ## Gaussian
kernel /= np.sum(kernel) # normalize
smooth = np.convolve(y, kernel, mode='same') # find the average value of neighbors
rms_noise = np.average((y[1:]-y[:-1])**2)**.5 # estimate what the average no... | 76.142857 | 119 | 0.667917 | 87 | 533 | 4 | 0.517241 | 0.068966 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029954 | 0.185741 | 533 | 6 | 120 | 88.833333 | 0.771889 | 0.472796 | 0 | 0 | 0 | 0 | 0.01476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a164212d9dd481154d21853b2b9faa1013a4bcc | 1,274 | py | Python | PhotoNAS/dataset.py | jjunhyub/2021_timetraveler | 5580a3466fb56208c277d194858d240d1d0dcb67 | [
"MIT"
] | 35 | 2019-12-10T03:00:46.000Z | 2021-03-23T02:28:03.000Z | PhotoNAS/dataset.py | jjunhyub/2021_timetraveler | 5580a3466fb56208c277d194858d240d1d0dcb67 | [
"MIT"
] | 4 | 2020-06-01T00:57:34.000Z | 2021-02-24T00:50:52.000Z | PhotoNAS/dataset.py | jjunhyub/2021_timetraveler | 5580a3466fb56208c277d194858d240d1d0dcb67 | [
"MIT"
] | 7 | 2020-03-17T07:39:40.000Z | 2021-02-10T14:01:47.000Z | import numpy as np
import os
import cv2
from torch.utils.data import Dataset
from torchvision import transforms
from PIL import Image
Image.MAX_IMAGE_PIXELS = None
from matplotlib import pyplot as plt
class TransferDataset(Dataset):
def __init__(self, content_dir):
super(TransferDataset, self).__init__()... | 29.627907 | 71 | 0.660126 | 159 | 1,274 | 5.031447 | 0.402516 | 0.1 | 0.0525 | 0.07125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.246468 | 1,274 | 42 | 72 | 30.333333 | 0.816667 | 0.096546 | 0 | 0 | 0 | 0 | 0.002616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.21875 | 0 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6a17c0eb0a0b17b095fcca06633c0b8c0b44dbdf | 145 | py | Python | competitive/AtCoder/ABC198/C.py | pn11/benkyokai | 9ebdc46b529e76b7196add26dbc1e62ad48e72b0 | [
"MIT"
] | null | null | null | competitive/AtCoder/ABC198/C.py | pn11/benkyokai | 9ebdc46b529e76b7196add26dbc1e62ad48e72b0 | [
"MIT"
] | 22 | 2020-03-24T16:24:47.000Z | 2022-02-26T15:51:18.000Z | competitive/AtCoder/ABC199/C.py | pn11/benkyokai | 9ebdc46b529e76b7196add26dbc1e62ad48e72b0 | [
"MIT"
] | null | null | null | import math
R, X, Y = [int(x) for x in input().split()]
dist = math.sqrt(X*X+Y*Y)
if dist < R:
print(2)
else:
print(math.ceil(dist/R))
| 14.5 | 43 | 0.57931 | 30 | 145 | 2.8 | 0.566667 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.213793 | 145 | 9 | 44 | 16.111111 | 0.72807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a18d3d4077d9ac8bb4d019b78f6dae29164fe3a | 2,619 | py | Python | sra/hg19/transform.py | nellore/runs | 5bd2e2a92a8a5b3dba90fe93080b9c7f11339e43 | [
"MIT"
] | 13 | 2015-12-07T21:28:24.000Z | 2019-11-08T22:42:39.000Z | sra/hg19/transform.py | nellore/runs | 5bd2e2a92a8a5b3dba90fe93080b9c7f11339e43 | [
"MIT"
] | null | null | null | sra/hg19/transform.py | nellore/runs | 5bd2e2a92a8a5b3dba90fe93080b9c7f11339e43 | [
"MIT"
] | 10 | 2015-12-21T15:41:03.000Z | 2020-06-04T04:31:41.000Z | #!/usr/bin/env python
"""
transform.py
Integrates metadata accumulated across files.
"""
srs_to_biosample = {}
with open('parsed_biosample_data.tsv') as parsed_stream:
biosample_header = '\t'.join([
'biosample_' + field.strip('"').replace(' ', '_') for field in parsed_stream.readline().strip().split('\t')
])... | 39.089552 | 118 | 0.66743 | 423 | 2,619 | 3.843972 | 0.174941 | 0.046125 | 0.054121 | 0.046125 | 0.305043 | 0.223862 | 0.156212 | 0.156212 | 0.111931 | 0.073801 | 0 | 0.009358 | 0.143184 | 2,619 | 66 | 119 | 39.681818 | 0.715241 | 0.032837 | 0 | 0.169811 | 0 | 0 | 0.107186 | 0.042631 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018868 | null | null | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a1dc555774deeac2de6d922060b637ac2677a66 | 271 | py | Python | implementation/hr_cut_the_sticks.py | jamesandreou/hackerrank-solutions | c5c6d7537a50ce146bb8de16f30ce0e42be16047 | [
"MIT"
] | null | null | null | implementation/hr_cut_the_sticks.py | jamesandreou/hackerrank-solutions | c5c6d7537a50ce146bb8de16f30ce0e42be16047 | [
"MIT"
] | null | null | null | implementation/hr_cut_the_sticks.py | jamesandreou/hackerrank-solutions | c5c6d7537a50ce146bb8de16f30ce0e42be16047 | [
"MIT"
] | null | null | null | # hackerrank - Algorithms: Cut the sticks
# Written by James Andreou, University of Waterloo
N = int(raw_input())
S = map(int, str.split(raw_input()))
while len(S) > 0:
S.sort()
min = S[0]
print len(S)
S = map(lambda x : x - min, S)
S = filter(lambda x : x > 0, S)
| 22.583333 | 50 | 0.634686 | 49 | 271 | 3.469388 | 0.591837 | 0.094118 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013953 | 0.206642 | 271 | 11 | 51 | 24.636364 | 0.776744 | 0.324723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a22689795691e226a8c87b48d3efb3a28245de2 | 248 | py | Python | Westmarch/westmarchSite/filters.py | HatlessStudios/Westmarch | 67c1a3de0b16ab5ab65a453ee84dc0b66db668d5 | [
"MIT"
] | 2 | 2018-09-23T19:31:57.000Z | 2018-09-23T19:39:12.000Z | Westmarch/westmarchSite/filters.py | HatlessStudios/Westmarch | 67c1a3de0b16ab5ab65a453ee84dc0b66db668d5 | [
"MIT"
] | 6 | 2018-09-24T09:01:39.000Z | 2018-09-25T15:00:14.000Z | Westmarch/westmarchSite/filters.py | HatlessStudios/Westmarch | 67c1a3de0b16ab5ab65a453ee84dc0b66db668d5 | [
"MIT"
] | 2 | 2018-10-31T16:34:32.000Z | 2020-10-18T18:36:04.000Z | import django_filters
from .models import Character
class CharacterFilter(django_filters.FilterSet):
class Meta:
model = Character
fields = {
'Level': ['lt', 'gt'],
'Class': ['exact'],
} | 24.8 | 49 | 0.548387 | 22 | 248 | 6.090909 | 0.727273 | 0.19403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.334677 | 248 | 10 | 50 | 24.8 | 0.812121 | 0 | 0 | 0 | 0 | 0 | 0.079167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a249d9ae9177211400369063104a93a9d141ce1 | 917 | py | Python | exploratory analysis/business anaysis/src/fig.py | anjanakethineni/Restaurant-Recommendations-with-Yelp | bef5a8d123a1c13678a922555533066a61c0f654 | [
"MIT"
] | 23 | 2018-11-17T09:35:22.000Z | 2021-11-24T11:27:13.000Z | exploratory analysis/business anaysis/src/fig.py | anjanakethineni/Restaurant-Recommendations-with-Yelp | bef5a8d123a1c13678a922555533066a61c0f654 | [
"MIT"
] | 1 | 2020-10-22T14:30:05.000Z | 2020-10-22T14:30:05.000Z | exploratory analysis/business anaysis/src/fig.py | anjanakethineni/Restaurant-Recommendations-with-Yelp | bef5a8d123a1c13678a922555533066a61c0f654 | [
"MIT"
] | 9 | 2019-11-20T17:44:22.000Z | 2022-03-19T09:21:25.000Z | # libraries and data
import matplotlib.pyplot as plt
import matplotlib.lines as mlines
import matplotlib.patches as mpatches
import numpy as np
import pandas as pd
import pprint
from tabulate import tabulate
def plot_line(X,Y,x_label,y_label,title,legend):
# style
plt.style.use('seaborn-darkgrid')
# line ... | 26.970588 | 85 | 0.682661 | 144 | 917 | 4.284722 | 0.458333 | 0.077796 | 0.038898 | 0.042139 | 0.090762 | 0.090762 | 0.090762 | 0.090762 | 0 | 0 | 0 | 0.022487 | 0.175573 | 917 | 33 | 86 | 27.787879 | 0.793651 | 0.25518 | 0 | 0 | 0 | 0 | 0.047548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.4375 | 0 | 0.5 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6a2945ae626c03b611d8dc122c27dc717fdf2a09 | 1,753 | py | Python | scripts/data_reader.py | autti/dbc_reader | c65e5b9bbf242a0a964e2efb073de9a58a7672d9 | [
"MIT"
] | null | null | null | scripts/data_reader.py | autti/dbc_reader | c65e5b9bbf242a0a964e2efb073de9a58a7672d9 | [
"MIT"
] | null | null | null | scripts/data_reader.py | autti/dbc_reader | c65e5b9bbf242a0a964e2efb073de9a58a7672d9 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import cantools
import rospy
import can
from pprint import pprint
from std_msgs.msg import Float32, String
from common import DATA_FILE, INTERFACE, CHANNEL
# can configuration
can.rc['interface'] = INTERFACE
can.rc['channel'] = CHANNEL
string_messages = set(['Cruise_State', 'Lkas_Action', 'Lkas_A... | 36.520833 | 109 | 0.667427 | 219 | 1,753 | 4.995434 | 0.369863 | 0.04479 | 0.041133 | 0.038391 | 0.131627 | 0.085923 | 0.085923 | 0.085923 | 0.085923 | 0.085923 | 0 | 0.004511 | 0.241301 | 1,753 | 47 | 110 | 37.297872 | 0.818045 | 0.033086 | 0 | 0 | 0 | 0 | 0.056147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a2a500f9746491d07393721990c43d5a0a685fe | 875 | py | Python | snipar/tests/utils.py | AlexTISYoung/snipar | dfb5beb96ce82aebac156f0b230109609393172d | [
"MIT"
] | 1 | 2019-10-18T13:49:37.000Z | 2019-10-18T13:49:37.000Z | snipar/tests/utils.py | AlexTISYoung/snipar | dfb5beb96ce82aebac156f0b230109609393172d | [
"MIT"
] | null | null | null | snipar/tests/utils.py | AlexTISYoung/snipar | dfb5beb96ce82aebac156f0b230109609393172d | [
"MIT"
] | null | null | null | import time
import logging
import unittest
import os
import warnings
tests_root = os.path.dirname(__file__)
output_root = os.path.join(tests_root, "tmp")
if not os.path.exists(output_root):
os.mkdir(output_root)
class SniparTest(unittest.TestCase):
p_value_threshold = 0.01
subsample_snp = 50
log = Fal... | 29.166667 | 123 | 0.661714 | 113 | 875 | 5.017699 | 0.504425 | 0.031746 | 0.035273 | 0.091711 | 0.285714 | 0.169312 | 0.169312 | 0.169312 | 0.169312 | 0.169312 | 0 | 0.008511 | 0.194286 | 875 | 30 | 124 | 29.166667 | 0.795745 | 0 | 0 | 0.08 | 0 | 0.08 | 0.165525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.2 | 0 | 0.52 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6a2f50988405588201518d4eae07e9ee1c791261 | 527 | py | Python | HW6/testcase1.py | miguel-mzbi/MachineLearning-DataMining | d589e89c85ccc7cba129c9a489c49f61a4298c5d | [
"MIT"
] | null | null | null | HW6/testcase1.py | miguel-mzbi/MachineLearning-DataMining | d589e89c85ccc7cba129c9a489c49f61a4298c5d | [
"MIT"
] | null | null | null | HW6/testcase1.py | miguel-mzbi/MachineLearning-DataMining | d589e89c85ccc7cba129c9a489c49f61a4298c5d | [
"MIT"
] | null | null | null | def main():
import pcalearn
import pcaproj
import numpy as np
F = 1
np.set_printoptions(precision=4)
X = np.array([
[-3, 2],
[-2, 1.5],
[-1, 1],
[0, 0.5],
[1, 0]
])
XTest = np.array([
[-3, 2],
[-2, 1.5],
[-1, 1],
... | 16.46875 | 37 | 0.40797 | 72 | 527 | 2.861111 | 0.388889 | 0.038835 | 0.07767 | 0.087379 | 0.184466 | 0.184466 | 0.184466 | 0.184466 | 0.184466 | 0.184466 | 0 | 0.083067 | 0.406072 | 527 | 32 | 38 | 16.46875 | 0.57508 | 0 | 0 | 0.444444 | 0 | 0 | 0.034091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a3327cb9b4ce4140a9c722d9c2db35d2c873987 | 2,140 | py | Python | examples/02_maps_and_templates/002_accessing_templates.py | FZJ-INM1-BDA/siibra-python | d4289801e3abaa252279b9c617c5744b733fe6b5 | [
"Apache-2.0"
] | 12 | 2021-04-13T21:25:26.000Z | 2022-03-21T13:41:19.000Z | examples/02_maps_and_templates/002_accessing_templates.py | FZJ-INM1-BDA/siibra-python | d4289801e3abaa252279b9c617c5744b733fe6b5 | [
"Apache-2.0"
] | 137 | 2021-04-14T07:18:50.000Z | 2022-03-31T19:22:39.000Z | examples/02_maps_and_templates/002_accessing_templates.py | FZJ-INM1-BDA/siibra-python | d4289801e3abaa252279b9c617c5744b733fe6b5 | [
"Apache-2.0"
] | 3 | 2021-04-29T09:36:51.000Z | 2022-01-17T10:53:55.000Z | # Copyright 2018-2021
# Institute of Neuroscience and Medicine (INM-1), Forschungszentrum Jülich GmbH
# 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/LICE... | 39.62963 | 288 | 0.757009 | 322 | 2,140 | 5.012422 | 0.540373 | 0.037175 | 0.016109 | 0.019827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019488 | 0.160748 | 2,140 | 53 | 289 | 40.377358 | 0.879176 | 0.843925 | 0 | 0 | 0 | 0 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a3683e9cf233c199577b991f35f8b4c21e2046e | 37,509 | py | Python | src/ClusterManager/job_manager.py | mikiec84/DLWorkspace | f7cd3f3a1c0abcec30faa5214e6aa87e82c3b65a | [
"MIT"
] | null | null | null | src/ClusterManager/job_manager.py | mikiec84/DLWorkspace | f7cd3f3a1c0abcec30faa5214e6aa87e82c3b65a | [
"MIT"
] | null | null | null | src/ClusterManager/job_manager.py | mikiec84/DLWorkspace | f7cd3f3a1c0abcec30faa5214e6aa87e82c3b65a | [
"MIT"
] | null | null | null | import json
import os
import time
import argparse
import uuid
import subprocess
import sys
import datetime
import copy
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)),"../storage"))
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)),"../utils"))
from jobs_tensorboard impo... | 44.284534 | 200 | 0.59911 | 3,793 | 37,509 | 5.856051 | 0.116794 | 0.016478 | 0.014857 | 0.036647 | 0.651585 | 0.605574 | 0.56582 | 0.534936 | 0.512426 | 0.460022 | 0 | 0.009392 | 0.259111 | 37,509 | 846 | 201 | 44.336879 | 0.789888 | 0.072249 | 0 | 0.459413 | 0 | 0.005181 | 0.199349 | 0.009649 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001727 | 0.044905 | null | null | 0.034542 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a3876311b4d96fd65793f615a14499833361626 | 2,608 | py | Python | experiments/reticulated/sieve/files/sieveDT.py | fabianmuehlboeck/monnom | 609b307d9fa9e6641443f34dbcc0b035b34d3044 | [
"BSD-3-Clause",
"MIT"
] | 2 | 2021-11-16T20:58:02.000Z | 2021-12-05T18:15:41.000Z | experiments/reticulated/sieve/files/sieveDT.py | fabianmuehlboeck/monnom | 609b307d9fa9e6641443f34dbcc0b035b34d3044 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | experiments/reticulated/sieve/files/sieveDT.py | fabianmuehlboeck/monnom | 609b307d9fa9e6641443f34dbcc0b035b34d3044 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | from retic.runtime import *
from retic.transient import *
from retic.typing import *
def check1(val):
try:
val.N
return val
except:
raise CheckError(val)
def check0(val):
try:
val.setrecursionlimit
return val
except:
raise CheckError(val)
def check4(val... | 26.343434 | 147 | 0.66411 | 350 | 2,608 | 4.711429 | 0.251429 | 0.141904 | 0.216495 | 0.060643 | 0.180109 | 0.180109 | 0.160097 | 0.037599 | 0.037599 | 0 | 0 | 0.018084 | 0.215491 | 2,608 | 98 | 148 | 26.612245 | 0.787879 | 0 | 0 | 0.285714 | 0 | 0 | 0.028374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.095238 | 0.035714 | 0.392857 | 0.011905 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a39bc9ed3ad9ed78458b16fa16ad84a64685132 | 1,300 | py | Python | cvdm/score/tests/test_hkdr.py | joyceho/cvdm | df386290221fd1388bef06104db0dd07978f91d9 | [
"MIT"
] | 2 | 2020-11-29T00:05:05.000Z | 2020-12-01T23:34:17.000Z | cvdm/score/tests/test_hkdr.py | joyceho/cvdm | df386290221fd1388bef06104db0dd07978f91d9 | [
"MIT"
] | null | null | null | cvdm/score/tests/test_hkdr.py | joyceho/cvdm | df386290221fd1388bef06104db0dd07978f91d9 | [
"MIT"
] | null | null | null | import numpy.testing as npt
from cvdm.score import hkdr_chd, HkdrCHD
from cvdm.score import hkdr_hf, HkdrHF
def test_hkdr_chd():
tmp = hkdr_chd(59, True, False, 5, 105, 2.3, 3.87)
npt.assert_almost_equal(tmp, 0.082, decimal=3)
def test_hkdr_chd_json():
chd = HkdrCHD()
tmp = chd.score({"index_age": ... | 30.232558 | 54 | 0.534615 | 192 | 1,300 | 3.427083 | 0.28125 | 0.054711 | 0.136778 | 0.182371 | 0.632219 | 0.414894 | 0.392097 | 0.392097 | 0.392097 | 0.392097 | 0 | 0.108447 | 0.326154 | 1,300 | 42 | 55 | 30.952381 | 0.642694 | 0 | 0 | 0.121212 | 0 | 0 | 0.088462 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.121212 | false | 0 | 0.090909 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a475cf6541d4e728c63558c578b1a96645ddcbe | 1,636 | py | Python | private/scripts/extras/timus_tag_retrieval.py | bansal-shubham/stopstalk-deployment | 6392eace490311be103292fdaff9ae215e4db7e6 | [
"MIT"
] | null | null | null | private/scripts/extras/timus_tag_retrieval.py | bansal-shubham/stopstalk-deployment | 6392eace490311be103292fdaff9ae215e4db7e6 | [
"MIT"
] | null | null | null | private/scripts/extras/timus_tag_retrieval.py | bansal-shubham/stopstalk-deployment | 6392eace490311be103292fdaff9ae215e4db7e6 | [
"MIT"
] | null | null | null | """
Copyright (c) 2015-2019 Raj Patel(raj454raj@gmail.com), StopStalk
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
... | 44.216216 | 82 | 0.717604 | 248 | 1,636 | 4.705645 | 0.564516 | 0.075407 | 0.022279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018576 | 0.210269 | 1,636 | 37 | 83 | 44.216216 | 0.884675 | 0 | 0 | 0 | 0 | 0.071429 | 0.164211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a47db0be78c47fc914af3991c0cb74a8ab99841 | 20,060 | py | Python | tests/test_odp.py | aeko-empt/ovs-dbg | 1415e10168923c7bf8710dd6a6b47d88a8d83457 | [
"Apache-2.0"
] | 7 | 2021-11-12T16:36:18.000Z | 2022-01-11T06:37:29.000Z | tests/test_odp.py | aeko-empt/ovs-dbg | 1415e10168923c7bf8710dd6a6b47d88a8d83457 | [
"Apache-2.0"
] | 43 | 2021-08-16T23:04:33.000Z | 2022-03-25T07:38:50.000Z | tests/test_odp.py | aeko-empt/ovs-dbg | 1415e10168923c7bf8710dd6a6b47d88a8d83457 | [
"Apache-2.0"
] | 4 | 2021-07-14T13:14:51.000Z | 2021-12-30T12:52:14.000Z | import netaddr
import pytest
from ovs_dbg.odp import ODPFlowFactory
from ovs_dbg.kv import KeyValue
from ovs_dbg.decoders import (
EthMask,
IPMask,
Mask32,
Mask16,
Mask8,
Mask128,
)
@pytest.mark.parametrize(
"input_string,expected",
[
(
"skb_priority(0x123),skb_mar... | 37.992424 | 292 | 0.302991 | 1,487 | 20,060 | 4.030262 | 0.141224 | 0.045386 | 0.045386 | 0.056733 | 0.681795 | 0.591523 | 0.513599 | 0.479226 | 0.427332 | 0.376606 | 0 | 0.132239 | 0.562712 | 20,060 | 527 | 293 | 38.064516 | 0.550958 | 0.016251 | 0 | 0.435547 | 0 | 0.035156 | 0.220148 | 0.123212 | 0 | 0 | 0.031095 | 0 | 0.019531 | 1 | 0.003906 | false | 0 | 0.009766 | 0 | 0.013672 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a4d2a06269e62f6cdad6ac66d3f2af00bb16e69 | 5,989 | py | Python | src/main/python/tokenizeExtended.py | DFKI-MLT/TransIns | 6712c78020cad738c65680c70061022afd2a2bb6 | [
"MIT"
] | 3 | 2021-07-23T07:37:22.000Z | 2022-02-18T09:02:42.000Z | src/main/python/tokenizeExtended.py | DFKI-MLT/TransIns | 6712c78020cad738c65680c70061022afd2a2bb6 | [
"MIT"
] | null | null | null | src/main/python/tokenizeExtended.py | DFKI-MLT/TransIns | 6712c78020cad738c65680c70061022afd2a2bb6 | [
"MIT"
] | 1 | 2022-01-17T20:07:34.000Z | 2022-01-17T20:07:34.000Z | import re
from six import text_type
from sacremoses import MosesTokenizer, MosesDetokenizer
class MosesTokenizerExtended(MosesTokenizer):
"""
Extended Moses tokenizer with Catalan support
"""
CA_MIDDLE_DOT = r"([^{}\s\.'\`\,\-·])".format(MosesTokenizer.IsAlnum), r" \1 "
CA_MIDDLE_DOT_NO_LOWER_F... | 38.146497 | 86 | 0.601603 | 660 | 5,989 | 5.342424 | 0.292424 | 0.132728 | 0.035735 | 0.059558 | 0.384572 | 0.32785 | 0.252127 | 0.238798 | 0.135564 | 0.135564 | 0 | 0.003403 | 0.313074 | 5,989 | 156 | 87 | 38.391026 | 0.852698 | 0.218734 | 0 | 0.253165 | 0 | 0 | 0.023118 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.025316 | false | 0 | 0.037975 | 0 | 0.151899 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a4d3071ec6ad9de3141ed02ee3d97306bb481e6 | 6,845 | py | Python | vst_sim/apps/04_generate-dataset-Dexterous_vacuum.py | huikul/Dexterous_grasp | badab43ab7b663deb312c613dfdd1efbf4a1b5c7 | [
"MIT"
] | null | null | null | vst_sim/apps/04_generate-dataset-Dexterous_vacuum.py | huikul/Dexterous_grasp | badab43ab7b663deb312c613dfdd1efbf4a1b5c7 | [
"MIT"
] | null | null | null | vst_sim/apps/04_generate-dataset-Dexterous_vacuum.py | huikul/Dexterous_grasp | badab43ab7b663deb312c613dfdd1efbf4a1b5c7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author : Hui Zhang
# E-mail : hui.zhang@kuleuven.be
# Description:
# Date : 21/10/2020 14:20
# File Name : generate-dataset-Dexterous_vacuum.py
import numpy as np
import sys
import pickle
import datetime
from vstsim.grasping.quality import PointGraspMetri... | 36.026316 | 118 | 0.626443 | 893 | 6,845 | 4.511758 | 0.278835 | 0.022586 | 0.019111 | 0.022338 | 0.359146 | 0.327377 | 0.300571 | 0.24547 | 0.190618 | 0.170266 | 0 | 0.017819 | 0.253908 | 6,845 | 189 | 119 | 36.216931 | 0.771098 | 0.134259 | 0 | 0.08547 | 1 | 0 | 0.109224 | 0.052682 | 0 | 0 | 0 | 0 | 0.008547 | 1 | 0.025641 | false | 0 | 0.162393 | 0 | 0.196581 | 0.042735 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbdf2e223970ec3ebbf87b7552ad3db1bbb973fc | 3,536 | py | Python | tests/keras/layers/embeddings/test_embeddings.py | rgerkin/psiz | d540738462b6436a08a472d5e349ca2b813e6d47 | [
"Apache-2.0"
] | null | null | null | tests/keras/layers/embeddings/test_embeddings.py | rgerkin/psiz | d540738462b6436a08a472d5e349ca2b813e6d47 | [
"Apache-2.0"
] | 1 | 2022-02-10T07:33:06.000Z | 2022-02-10T07:33:06.000Z | tests/keras/layers/embeddings/test_embeddings.py | rgerkin/psiz | d540738462b6436a08a472d5e349ca2b813e6d47 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 The PsiZ Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 28.516129 | 78 | 0.657523 | 435 | 3,536 | 5.165517 | 0.301149 | 0.088117 | 0.080107 | 0.039163 | 0.70583 | 0.684468 | 0.684468 | 0.684468 | 0.684468 | 0.657766 | 0 | 0.017023 | 0.219174 | 3,536 | 123 | 79 | 28.747967 | 0.796813 | 0.274321 | 0 | 0.684211 | 0 | 0 | 0.021566 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe13b7df61eea26d9ceb07dcc9bf84d412979f2 | 360 | py | Python | caesar_deco/cli.py | alejogaci/caesar_deco | 11e220bb9b65d4c79c6833caebff89ac307134a4 | [
"MIT"
] | null | null | null | caesar_deco/cli.py | alejogaci/caesar_deco | 11e220bb9b65d4c79c6833caebff89ac307134a4 | [
"MIT"
] | 3 | 2018-03-12T17:52:03.000Z | 2021-11-15T18:24:00.000Z | caesar_deco/cli.py | alejogaci/caesar_deco | 11e220bb9b65d4c79c6833caebff89ac307134a4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Console script for caesar_deco."""
import sys
import click
from caesar_deco.caesar_deco import caesar_decoder
@click.command()
@click.argument('texto', type=str)
def main(texto):
"""Console script for caesar_deco."""
caesar_decoder(texto)
return 0
if __name__ == "__main__":
... | 18.947368 | 50 | 0.686111 | 49 | 360 | 4.755102 | 0.571429 | 0.171674 | 0.137339 | 0.188841 | 0.223176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.166667 | 360 | 18 | 51 | 20 | 0.77 | 0.286111 | 0 | 0 | 0 | 0 | 0.053061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe339616888f2b737a98e6c6a48817c1a8da05e | 1,261 | py | Python | PyEMD/splines.py | jurg96/PyEMD | 0de9fa0ed07b0189f2759d3a138cdb9200906f9e | [
"Apache-2.0"
] | 2 | 2018-06-16T06:28:03.000Z | 2021-12-25T08:21:02.000Z | PyEMD/splines.py | jurg96/PyEMD | 0de9fa0ed07b0189f2759d3a138cdb9200906f9e | [
"Apache-2.0"
] | null | null | null | PyEMD/splines.py | jurg96/PyEMD | 0de9fa0ed07b0189f2759d3a138cdb9200906f9e | [
"Apache-2.0"
] | null | null | null | from __future__ import division
import numpy as np
from scipy.interpolate import Akima1DInterpolator
def cubic_spline_3pts(x, y, T):
"""
Apperently scipy.interpolate.interp1d does not support
cubic spline for less than 4 points.
"""
x0, x1, x2 = x
y0, y1, y2 = y
x1x0, x2x1 = ... | 24.72549 | 63 | 0.536875 | 224 | 1,261 | 2.90625 | 0.339286 | 0.02765 | 0.036866 | 0.023041 | 0.033794 | 0.033794 | 0.033794 | 0.033794 | 0 | 0 | 0 | 0.212155 | 0.282316 | 1,261 | 50 | 64 | 25.22 | 0.507182 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.090909 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe6006dd64710e19542cd48391a284fd051696c | 1,817 | py | Python | user_management/serializers.py | shvms/Mozart-backend | 2833febcb26c921facc844a3422fe3244864d828 | [
"MIT"
] | null | null | null | user_management/serializers.py | shvms/Mozart-backend | 2833febcb26c921facc844a3422fe3244864d828 | [
"MIT"
] | 6 | 2020-05-25T19:21:02.000Z | 2021-06-10T20:14:47.000Z | user_management/serializers.py | shvms/Mozart-backend | 2833febcb26c921facc844a3422fe3244864d828 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from django.contrib.auth import get_user_model
UserModel = get_user_model()
class UserSerializer(serializers.ModelSerializer):
"""
Used at the time of registration of users.
"""
first_name = serializers.CharField(required=True)
last_name = serializers.CharField(require... | 25.591549 | 79 | 0.670336 | 189 | 1,817 | 6.248677 | 0.343915 | 0.054191 | 0.071126 | 0.057578 | 0.292972 | 0.227773 | 0.227773 | 0.19475 | 0.19475 | 0.19475 | 0 | 0 | 0.198679 | 1,817 | 70 | 80 | 25.957143 | 0.811126 | 0.062741 | 0 | 0.36 | 0 | 0 | 0.150989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.06 | 0.04 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe7d178f2d963cfff1510e5915a9085a067eb51 | 284 | py | Python | Modulo-02/ex053/ex053.py | Matheus-Henrique-Burey/Curso-de-Python | 448aebaab96527affa1e45897a662bb0407c11c6 | [
"MIT"
] | null | null | null | Modulo-02/ex053/ex053.py | Matheus-Henrique-Burey/Curso-de-Python | 448aebaab96527affa1e45897a662bb0407c11c6 | [
"MIT"
] | null | null | null | Modulo-02/ex053/ex053.py | Matheus-Henrique-Burey/Curso-de-Python | 448aebaab96527affa1e45897a662bb0407c11c6 | [
"MIT"
] | null | null | null | frase = str(input('Digite uma frase: ')).strip().split()
junto = ''.join(frase).upper()
inverso = junto[::-1]
print(f'A frase {junto}')
print(f'Ivertida e {inverso}')
if inverso == junto:
print(f'A frase digitada é um palindromo')
else:
print('A frase não e um palindromo')
| 23.666667 | 56 | 0.65493 | 44 | 284 | 4.227273 | 0.545455 | 0.096774 | 0.075269 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0.158451 | 284 | 11 | 57 | 25.818182 | 0.774059 | 0 | 0 | 0 | 0 | 0 | 0.394366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
dbe8f5386ccca8c985063fd69ced7f870434e025 | 46,129 | py | Python | german_reflective_features.py | oanaucs/german_reflective_corpus | 3e4e162a5628551b7a967792beab688644b36176 | [
"MIT"
] | null | null | null | german_reflective_features.py | oanaucs/german_reflective_corpus | 3e4e162a5628551b7a967792beab688644b36176 | [
"MIT"
] | null | null | null | german_reflective_features.py | oanaucs/german_reflective_corpus | 3e4e162a5628551b7a967792beab688644b36176 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import sys
from flair.models import MultiTagger
from flair.data import Sentence
from flair.models import SequenceTagger
from pathlib import Path
import subprocess
import spacy
import pandas as pd
del_var=['a_func', 'a_num', 'adja', 'adjd', 'adv','PTKANT','ET','entry','itj',
'adver... | 47.55567 | 3,159 | 0.536712 | 6,112 | 46,129 | 4.00409 | 0.151832 | 0.016998 | 0.024517 | 0.028317 | 0.393127 | 0.36195 | 0.32685 | 0.293957 | 0.277489 | 0.261554 | 0 | 0.00892 | 0.283097 | 46,129 | 969 | 3,160 | 47.604747 | 0.731116 | 0.05502 | 0 | 0.43432 | 0 | 0 | 0.187855 | 0.002276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00355 | false | 0 | 0.017751 | 0.001183 | 0.023669 | 0.013018 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbeba7b11202d4dbae71865433cb0a6fdd7dfbe0 | 274 | py | Python | tree_bark_synthesis/LabelGeneration/blur.py | laitoch/tree-bark-synthesis | 0bd43d6699d2e05f62d144f310874f986bbd91d2 | [
"MIT"
] | null | null | null | tree_bark_synthesis/LabelGeneration/blur.py | laitoch/tree-bark-synthesis | 0bd43d6699d2e05f62d144f310874f986bbd91d2 | [
"MIT"
] | null | null | null | tree_bark_synthesis/LabelGeneration/blur.py | laitoch/tree-bark-synthesis | 0bd43d6699d2e05f62d144f310874f986bbd91d2 | [
"MIT"
] | null | null | null | from scipy.misc import imsave
import cv2
def blur(ai, output_file=None):
""" Create simple FDM.
Apply Gaussian blur params=(11,11).
"""
fdm = cv2.GaussianBlur(ai, (11,11), 0)
if output_file is not None:
imsave(output_file, fdm)
return fdm
| 19.571429 | 42 | 0.642336 | 41 | 274 | 4.219512 | 0.609756 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05314 | 0.244526 | 274 | 13 | 43 | 21.076923 | 0.782609 | 0.19708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dbf3d83b23bd61fefdeca4e8b7328db2acc70880 | 2,946 | py | Python | yardstick/tests/unit/benchmark/scenarios/availability/test_scenario_general.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 28 | 2017-02-07T07:46:42.000Z | 2021-06-30T08:11:06.000Z | yardstick/tests/unit/benchmark/scenarios/availability/test_scenario_general.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 6 | 2018-01-18T08:00:54.000Z | 2019-04-11T04:51:41.000Z | yardstick/tests/unit/benchmark/scenarios/availability/test_scenario_general.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 46 | 2016-12-13T10:05:47.000Z | 2021-02-18T07:33:06.000Z | ##############################################################################
# Copyright (c) 2016 Huan Li and others
# lihuansse@tongji.edu.cn
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distributio... | 38.25974 | 78 | 0.55499 | 281 | 2,946 | 5.683274 | 0.398577 | 0.12774 | 0.087664 | 0.055103 | 0.400125 | 0.329994 | 0.299937 | 0.27176 | 0.215404 | 0.215404 | 0 | 0.007139 | 0.28683 | 2,946 | 76 | 79 | 38.763158 | 0.752975 | 0.100475 | 0 | 0.338983 | 0 | 0 | 0.117813 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 1 | 0.084746 | false | 0.067797 | 0.067797 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dbf3e1848e4a1bf5381863fd4487a063dc57f60a | 2,596 | py | Python | 2018/07_TheSumofItsParts/test_step.py | deanearlwright/AdventOfCode | ca4cf6315c0efa38bd7748fb6f4bc99e7934871d | [
"MIT"
] | 1 | 2021-01-03T23:09:28.000Z | 2021-01-03T23:09:28.000Z | 2018/07_TheSumofItsParts/test_step.py | deanearlwright/AdventOfCode | ca4cf6315c0efa38bd7748fb6f4bc99e7934871d | [
"MIT"
] | 6 | 2020-12-26T21:02:42.000Z | 2020-12-26T21:02:52.000Z | 2018/07_TheSumofItsParts/test_step.py | deanearlwright/AdventOfCode | ca4cf6315c0efa38bd7748fb6f4bc99e7934871d | [
"MIT"
] | null | null | null | # ======================================================================
# The Sum of Its Parts
# Advent of Code 2018 Day 07 -- Eric Wastl -- https://adventofcode.com
#
# Python implementation by Dr. Dean Earl Wright III
# ======================================================================
# =====================... | 38.176471 | 72 | 0.313945 | 187 | 2,596 | 4.272727 | 0.42246 | 0.131414 | 0.100125 | 0.097622 | 0.479349 | 0.39174 | 0.257822 | 0.257822 | 0.165207 | 0.165207 | 0 | 0.012422 | 0.255778 | 2,596 | 67 | 73 | 38.746269 | 0.401139 | 0.718028 | 0 | 0.190476 | 0 | 0 | 0.187573 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.095238 | false | 0.047619 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbf4703702e5cb39546235b54985eab5c2c6490d | 11,226 | py | Python | authdata/views.py | mpassid/MPASSid-data | 1885721366165c768f2b66513f9c124b8aeaadb5 | [
"MIT"
] | null | null | null | authdata/views.py | mpassid/MPASSid-data | 1885721366165c768f2b66513f9c124b8aeaadb5 | [
"MIT"
] | 8 | 2018-05-03T05:39:38.000Z | 2021-03-19T21:59:25.000Z | authdata/views.py | mpassid/MPASSid-data | 1885721366165c768f2b66513f9c124b8aeaadb5 | [
"MIT"
] | 1 | 2019-09-25T05:33:42.000Z | 2019-09-25T05:33:42.000Z |
# -*- encoding: utf-8 -*-
# The MIT License (MIT)
#
# Copyright (c) 2014-2015 Haltu Oy, http://haltu.fi
#
# 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 with... | 42.203008 | 190 | 0.732051 | 1,409 | 11,226 | 5.662172 | 0.244145 | 0.023063 | 0.015041 | 0.018802 | 0.282903 | 0.252695 | 0.231386 | 0.213587 | 0.203309 | 0.203309 | 0 | 0.008017 | 0.177802 | 11,226 | 265 | 191 | 42.362264 | 0.856338 | 0.29013 | 0 | 0.227273 | 0 | 0 | 0.098679 | 0.019431 | 0 | 0 | 0 | 0.003774 | 0 | 1 | 0.038961 | false | 0 | 0.149351 | 0 | 0.532468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dbf7190512fc1e7b0746c80380731fda5522bb35 | 7,737 | py | Python | ceasiompy/WeightUnconventional/__specs__.py | jphkun/CEASIOMpy | 6425cfeb786019fccfc98aaa2fd676b2de466dac | [
"Apache-2.0"
] | 33 | 2018-11-20T16:34:40.000Z | 2022-03-29T07:26:18.000Z | ceasiompy/WeightUnconventional/__specs__.py | jphkun/CEASIOMpy | 6425cfeb786019fccfc98aaa2fd676b2de466dac | [
"Apache-2.0"
] | 54 | 2019-09-17T15:57:47.000Z | 2022-03-30T08:12:52.000Z | ceasiompy/WeightUnconventional/__specs__.py | jphkun/CEASIOMpy | 6425cfeb786019fccfc98aaa2fd676b2de466dac | [
"Apache-2.0"
] | 26 | 2018-11-30T14:33:44.000Z | 2022-03-22T07:30:18.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from ceasiompy.utils.moduleinterfaces import CPACSInOut, AIRCRAFT_XPATH, CEASIOM_XPATH
# ===== RCE integration =====
RCE = {
"name": "WeightUnconventional",
"description": "Estimate weights of unconventional aircraft",
"exec": "pwd\npython weightuncmain.py",... | 24.958065 | 118 | 0.675068 | 1,031 | 7,737 | 4.839961 | 0.208535 | 0.056112 | 0.070341 | 0.061323 | 0.613226 | 0.498196 | 0.373146 | 0.282164 | 0.222846 | 0.065531 | 0 | 0.015741 | 0.178881 | 7,737 | 309 | 119 | 25.038835 | 0.769715 | 0.026496 | 0 | 0.413534 | 0 | 0.015038 | 0.372591 | 0.117506 | 0 | 0 | 0 | 0.003236 | 0 | 1 | 0 | false | 0.078947 | 0.003759 | 0 | 0.003759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dbf8be7cc06003d1029fa422bb6a3826e45e1f1f | 3,331 | py | Python | Flask/loginRadius-flask-auth/validate.py | FuzzySid/engineering-blog-samples | 7521cb1ea6d4300a91142c9e30f09fbcebcf8a1e | [
"MIT"
] | null | null | null | Flask/loginRadius-flask-auth/validate.py | FuzzySid/engineering-blog-samples | 7521cb1ea6d4300a91142c9e30f09fbcebcf8a1e | [
"MIT"
] | null | null | null | Flask/loginRadius-flask-auth/validate.py | FuzzySid/engineering-blog-samples | 7521cb1ea6d4300a91142c9e30f09fbcebcf8a1e | [
"MIT"
] | null | null | null | """Validator Module"""
import re
from bson.objectid import ObjectId
def validate(data, regex):
"""Custom Validator"""
return True if re.match(regex, data) else False
def validate_password(password: str):
"""Password Validator"""
reg = r"\b^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!#%*?... | 34.697917 | 128 | 0.555389 | 403 | 3,331 | 4.540943 | 0.208437 | 0.065027 | 0.038251 | 0.065574 | 0.352459 | 0.298361 | 0.243716 | 0.243716 | 0.243716 | 0.186885 | 0 | 0.0068 | 0.293606 | 3,331 | 95 | 129 | 35.063158 | 0.770931 | 0.038127 | 0 | 0.280488 | 0 | 0.02439 | 0.277778 | 0.040088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.158537 | 0.02439 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dbfae42940c09b44d0936f6ac91a0b3a02da833d | 97,570 | py | Python | wind_resource_assessment/sat_processing.py | SatelliteApplicationsCatapult/WindRes | 858b0f44052dbb8435deac51bd6e10d3c00333da | [
"Apache-2.0"
] | 1 | 2021-06-08T15:12:10.000Z | 2021-06-08T15:12:10.000Z | wind_resource_assessment/sat_processing.py | SatelliteApplicationsCatapult/WindRes | 858b0f44052dbb8435deac51bd6e10d3c00333da | [
"Apache-2.0"
] | null | null | null | wind_resource_assessment/sat_processing.py | SatelliteApplicationsCatapult/WindRes | 858b0f44052dbb8435deac51bd6e10d3c00333da | [
"Apache-2.0"
] | 1 | 2021-02-22T17:29:09.000Z | 2021-02-22T17:29:09.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 14 16:41:53 2015
@author: Alberto S. Rabaneda
"""
import numpy as np
#from scipy.spatial import KDTree
from pandas import DataFrame
import pandas as pd
import dateutil.parser as parser
from scipy import special
import datetime
import sys
import itertools
im... | 51.137317 | 670 | 0.493697 | 12,629 | 97,570 | 3.730937 | 0.060654 | 0.058322 | 0.019016 | 0.018677 | 0.696379 | 0.657668 | 0.608706 | 0.574982 | 0.538414 | 0.501549 | 0 | 0.044713 | 0.331362 | 97,570 | 1,907 | 671 | 51.164132 | 0.677524 | 0.049001 | 0 | 0.494194 | 0 | 0 | 0.122432 | 0.023407 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008387 | 0.005806 | null | null | 0.014839 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbfcadb1c576fcec3a7e5a2abf1415dbecc399df | 310 | py | Python | test/tpm_test/subcmd.py | Basavaraja-MS/ec_cadence | 8d99bd934541cafc2a151bf4765877b10b4df0e9 | [
"BSD-3-Clause"
] | null | null | null | test/tpm_test/subcmd.py | Basavaraja-MS/ec_cadence | 8d99bd934541cafc2a151bf4765877b10b4df0e9 | [
"BSD-3-Clause"
] | null | null | null | test/tpm_test/subcmd.py | Basavaraja-MS/ec_cadence | 8d99bd934541cafc2a151bf4765877b10b4df0e9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Subcommand codes that specify the crypto module."""
# Keep these codes in sync with include/extension.h.
AES = 0
HASH = 1
| 28.181818 | 72 | 0.741935 | 52 | 310 | 4.423077 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.177419 | 310 | 10 | 73 | 31 | 0.878431 | 0.887097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbfd385d95b4fe79f3f980b86d4a86994cc96e0e | 912 | py | Python | tools/perf/page_sets/system_health/blank_stories.py | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:03.000Z | 2021-01-07T18:51:03.000Z | tools/perf/page_sets/system_health/blank_stories.py | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/perf/page_sets/system_health/blank_stories.py | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from page_sets.system_health import system_health_story
from telemetry import decorators
@decorators.Disabled('win') # crbug.com/656040
class BlankAboutBla... | 32.571429 | 77 | 0.725877 | 108 | 912 | 5.981481 | 0.694444 | 0.055728 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.191886 | 912 | 27 | 78 | 33.777778 | 0.861601 | 0.369518 | 0 | 0 | 0 | 0 | 0.11639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e000d72c6992a293a2234c9c8f77267ea81028f3 | 7,148 | py | Python | elements_sdk/models/cpu_stat.py | elements-storage/elements-sdk-python | 39c365fe079dcd5928c5fe1bbaa67389bd5a3d81 | [
"MIT"
] | 6 | 2020-11-16T23:15:18.000Z | 2022-03-14T03:56:12.000Z | elements_sdk/models/cpu_stat.py | elements-storage/elements-sdk-python | 39c365fe079dcd5928c5fe1bbaa67389bd5a3d81 | [
"MIT"
] | 1 | 2021-07-28T13:03:49.000Z | 2021-08-25T12:24:01.000Z | elements_sdk/models/cpu_stat.py | elements-storage/elements-sdk-python | 39c365fe079dcd5928c5fe1bbaa67389bd5a3d81 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
ELEMENTS API
The version of the OpenAPI document: 2
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from elements_sdk.configuration import Configuration
class CPUStat(object):
"""NOTE: This class is auto generated by OpenAPI G... | 28.031373 | 149 | 0.576525 | 932 | 7,148 | 4.213519 | 0.128755 | 0.06519 | 0.07945 | 0.077922 | 0.542399 | 0.4767 | 0.448689 | 0.396995 | 0.276802 | 0.255157 | 0 | 0.021532 | 0.324287 | 7,148 | 254 | 150 | 28.141732 | 0.791511 | 0.274482 | 0 | 0.084746 | 1 | 0 | 0.099821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152542 | false | 0 | 0.033898 | 0 | 0.322034 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0054ec12357b93d9d42c8e64c8b509b06b0e3c3 | 4,950 | py | Python | fill_cm2.py | fabianzott/LRZ_scripts | 631b2cfbb8be04063b996fd94db30f18f10bf147 | [
"MIT"
] | 1 | 2022-01-15T00:15:54.000Z | 2022-01-15T00:15:54.000Z | fill_cm2.py | fabianzott/LRZ_scripts | 631b2cfbb8be04063b996fd94db30f18f10bf147 | [
"MIT"
] | null | null | null | fill_cm2.py | fabianzott/LRZ_scripts | 631b2cfbb8be04063b996fd94db30f18f10bf147 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
##################################################################################################################################################
# #
# ... | 58.928571 | 148 | 0.316768 | 338 | 4,950 | 4.532544 | 0.473373 | 0.027415 | 0.02611 | 0.035248 | 0.104439 | 0.104439 | 0.060052 | 0.060052 | 0 | 0 | 0 | 0.017843 | 0.501818 | 4,950 | 83 | 149 | 59.638554 | 0.603406 | 0.508687 | 0 | 0.090909 | 0 | 0.022727 | 0.267635 | 0.088174 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e009082906e3d5fb86d0240c5a6e113f99bb8b9f | 26,758 | py | Python | keystone/tests/unit/test_v3_identity.py | jamielennox/keystone | b33cbef7841f00aa6bd103f2a76409bda6f86169 | [
"Apache-2.0"
] | null | null | null | keystone/tests/unit/test_v3_identity.py | jamielennox/keystone | b33cbef7841f00aa6bd103f2a76409bda6f86169 | [
"Apache-2.0"
] | null | null | null | keystone/tests/unit/test_v3_identity.py | jamielennox/keystone | b33cbef7841f00aa6bd103f2a76409bda6f86169 | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 42.271722 | 78 | 0.615778 | 3,294 | 26,758 | 4.774742 | 0.099879 | 0.035478 | 0.018438 | 0.013733 | 0.692586 | 0.644837 | 0.597978 | 0.528484 | 0.490781 | 0.430506 | 0 | 0.010028 | 0.269564 | 26,758 | 632 | 79 | 42.338608 | 0.794679 | 0.166791 | 0 | 0.527446 | 0 | 0 | 0.081541 | 0.019237 | 0 | 0 | 0 | 0.001582 | 0.107399 | 1 | 0.095465 | false | 0.159905 | 0.02148 | 0 | 0.136038 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e00950e06e7fd2d515b5ce0ce1ddbf429a4c0aac | 366 | py | Python | src/plugins/nonebot_plugin_bbdc/config.py | wevsmy/AwesomeBot | f30d46ff8360ebdf61f0ac7af815b9e08ce72fd7 | [
"MIT"
] | null | null | null | src/plugins/nonebot_plugin_bbdc/config.py | wevsmy/AwesomeBot | f30d46ff8360ebdf61f0ac7af815b9e08ce72fd7 | [
"MIT"
] | null | null | null | src/plugins/nonebot_plugin_bbdc/config.py | wevsmy/AwesomeBot | f30d46ff8360ebdf61f0ac7af815b9e08ce72fd7 | [
"MIT"
] | null | null | null | from pydantic import BaseSettings
class Config(BaseSettings):
# Your Config Here
webdriver_command_executor: str = 'http://localhost:4444/wd/hub'
# extension: path to the \*.crx file
webdriver_extension_filepath: str = '/mnt/d/wevsm/project/AwesomeBot/volumes/chrome/data/canvas-fingerprint-defend.crx... | 28.153846 | 123 | 0.724044 | 45 | 366 | 5.8 | 0.822222 | 0.084291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.169399 | 366 | 12 | 124 | 30.5 | 0.845395 | 0.139344 | 0 | 0 | 0 | 0.166667 | 0.36859 | 0.259615 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e00e55cca78543c1e652b2079ed5d1cf58412b04 | 7,342 | py | Python | src/logsnarf/app.py | blaedd/logsnarf | 482824a8a5100198c9747e8629f126a43d6ccc27 | [
"MIT"
] | null | null | null | src/logsnarf/app.py | blaedd/logsnarf | 482824a8a5100198c9747e8629f126a43d6ccc27 | [
"MIT"
] | null | null | null | src/logsnarf/app.py | blaedd/logsnarf | 482824a8a5100198c9747e8629f126a43d6ccc27 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable=invalid-name
"""Logsnarf application.
Application code to connect the various modules to do something useful..
"""
import os
import sys
import logging
import re
from twisted.python import usage
from twisted.internet import reactor
from oauth2client.servi... | 33.525114 | 78 | 0.612776 | 844 | 7,342 | 5.223934 | 0.330569 | 0.026537 | 0.014516 | 0.013609 | 0.048083 | 0.048083 | 0.020866 | 0.020866 | 0.020866 | 0 | 0 | 0.002884 | 0.291474 | 7,342 | 218 | 79 | 33.678899 | 0.844675 | 0.018251 | 0 | 0.087838 | 0 | 0 | 0.126431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101351 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e00f17796974e921206ab140981efebffd5ef2e9 | 2,593 | py | Python | examples/faq_matcher_load_from_trash.py | praekelt/feersum-nlu-api-wrappers | 6580e2bab2c8a764fe868a505330b3fee6029074 | [
"BSD-3-Clause"
] | 9 | 2017-10-10T12:24:23.000Z | 2021-08-18T14:07:51.000Z | examples/faq_matcher_load_from_trash.py | praekelt/feersum-nlu-api-wrappers | 6580e2bab2c8a764fe868a505330b3fee6029074 | [
"BSD-3-Clause"
] | 1 | 2020-12-06T11:03:25.000Z | 2021-04-14T05:21:23.000Z | examples/faq_matcher_load_from_trash.py | praekelt/feersum-nlu-api-wrappers | 6580e2bab2c8a764fe868a505330b3fee6029074 | [
"BSD-3-Clause"
] | 2 | 2019-02-12T08:26:06.000Z | 2022-02-01T09:39:47.000Z | """ Example: Shows how to load a pre-trained FAQ model from the store. """
import urllib3
import feersum_nlu
from feersum_nlu.rest import ApiException
from examples import feersumnlu_host, feersum_nlu_auth_token
# Configure API key authorization: APIKeyHeader
configuration = feersum_nlu.Configuration()
#... | 39.287879 | 117 | 0.726957 | 336 | 2,593 | 5.35119 | 0.303571 | 0.152948 | 0.077864 | 0.061179 | 0.394327 | 0.394327 | 0.327586 | 0.296997 | 0.273637 | 0.273637 | 0 | 0.001889 | 0.183186 | 2,593 | 65 | 118 | 39.892308 | 0.847026 | 0.16506 | 0 | 0.363636 | 0 | 0 | 0.23287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.522727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e0111261fe489f8a60a6e00a350296600bd9cac9 | 45,828 | py | Python | src/libpcap/_dlt.py | karpierz/libpcap | 6432ae6dd9cddcf0d160de927ca33231a1e2a3d0 | [
"BSD-3-Clause"
] | 42 | 2018-01-28T03:43:02.000Z | 2022-03-03T09:19:13.000Z | src/libpcap/_dlt.py | karpierz/libpcap | 6432ae6dd9cddcf0d160de927ca33231a1e2a3d0 | [
"BSD-3-Clause"
] | 9 | 2019-05-01T09:55:04.000Z | 2021-11-10T23:26:57.000Z | src/libpcap/_dlt.py | karpierz/libpcap | 6432ae6dd9cddcf0d160de927ca33231a1e2a3d0 | [
"BSD-3-Clause"
] | 12 | 2019-07-31T18:55:03.000Z | 2022-02-01T22:25:25.000Z | # Copyright (c) 2016-2021, Adam Karpierz
# Licensed under the BSD license
# https://opensource.org/licenses/BSD-3-Clause
# Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
# The Regents of the University of California. All rights reserved.
#
# This code is derived from the Stanford/CMU enet packet filt... | 33.647577 | 133 | 0.750546 | 7,564 | 45,828 | 4.451877 | 0.232417 | 0.01862 | 0.012473 | 0.008464 | 0.216339 | 0.17907 | 0.160717 | 0.140524 | 0.124785 | 0.108452 | 0 | 0.039863 | 0.176726 | 45,828 | 1,361 | 134 | 33.6723 | 0.85266 | 0.833879 | 0 | 0.03719 | 0 | 0 | 0.025326 | 0 | 0 | 0 | 0.004443 | 0 | 0 | 1 | 0 | false | 0 | 0.004132 | 0 | 0.004132 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e013555698bf84556768016dbe1e0987e028ae61 | 1,057 | py | Python | drllib/lib.py | the0demiurge/Deep-Reinforcement-Learning | d68113ad33afa12aff8fbb036b7240caf22ac1aa | [
"Apache-2.0"
] | 1 | 2020-01-01T02:50:11.000Z | 2020-01-01T02:50:11.000Z | drllib/lib.py | the0demiurge/Deep-Reinforcement-Learning | d68113ad33afa12aff8fbb036b7240caf22ac1aa | [
"Apache-2.0"
] | null | null | null | drllib/lib.py | the0demiurge/Deep-Reinforcement-Learning | d68113ad33afa12aff8fbb036b7240caf22ac1aa | [
"Apache-2.0"
] | 1 | 2020-07-10T13:26:20.000Z | 2020-07-10T13:26:20.000Z |
import torch
from random import randint, gauss
def get_device():
return torch.device("cuda:{}".format(randint(0, torch.cuda.device_count() - 1)) if torch.cuda.is_available() else "cpu")
class OrnsteinUhlenbeckProcess(object):
# Ornstein–Uhlenbeck process
def __init__(self, dt=1, theta=.15, sigma=1, num... | 27.815789 | 124 | 0.633869 | 161 | 1,057 | 4 | 0.335404 | 0.046584 | 0.018634 | 0.034161 | 0.059006 | 0.059006 | 0 | 0 | 0 | 0 | 0 | 0.015931 | 0.228004 | 1,057 | 37 | 125 | 28.567568 | 0.772059 | 0.024598 | 0 | 0 | 0 | 0 | 0.009728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.08 | 0.04 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.