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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4a8f1c9ad6f0ccb1d2ae2b103e06e9bd4856b7b | 176 | py | Python | application.py | tg2648/cu-rooms-app | 5e95979291425416a00d698e35d3ae691214c394 | [
"MIT"
] | null | null | null | application.py | tg2648/cu-rooms-app | 5e95979291425416a00d698e35d3ae691214c394 | [
"MIT"
] | 1 | 2021-04-20T14:56:31.000Z | 2021-04-20T14:56:31.000Z | application.py | tg2648/cu-reports-app | 851388320be9382d56c0dbdc89c26f761b4e3e7e | [
"MIT"
] | null | null | null | """
Main entrance to the application
"""
# Local application imports
from app import create_app
application = create_app()
if __name__ == '__main__':
application.run()
| 13.538462 | 32 | 0.721591 | 21 | 176 | 5.571429 | 0.666667 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176136 | 176 | 12 | 33 | 14.666667 | 0.806897 | 0.335227 | 0 | 0 | 0 | 0 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
a4a931cd9c68a5df93242f34898afc65338359fe | 1,577 | py | Python | adminlte_base/filters.py | kyzima-spb/adminlte-base | ebde36922b249144bec821f35716eb11466c0a83 | [
"MIT"
] | null | null | null | adminlte_base/filters.py | kyzima-spb/adminlte-base | ebde36922b249144bec821f35716eb11466c0a83 | [
"MIT"
] | null | null | null | adminlte_base/filters.py | kyzima-spb/adminlte-base | ebde36922b249144bec821f35716eb11466c0a83 | [
"MIT"
] | null | null | null | """
Provides ready-made implementations for filters used in templates.
"""
from string import Template
import arrow
from dateutil import tz
from .constants import ThemeColor
__all__ = ('humanize', 'if_true', 'navbar_skin', 'sidebar_skin', 'replace_with_flag')
def humanize(dt, locale='en_us', time_zone=None):
... | 27.189655 | 96 | 0.676601 | 218 | 1,577 | 4.784404 | 0.376147 | 0.052733 | 0.028763 | 0.038351 | 0.111218 | 0.111218 | 0.070949 | 0.070949 | 0 | 0 | 0 | 0.002385 | 0.202283 | 1,577 | 57 | 97 | 27.666667 | 0.826709 | 0.242232 | 0 | 0.2 | 0 | 0 | 0.141997 | 0.038726 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.133333 | 0 | 0.633333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8efc34239b806a5be69058b4d7b7dc2ff6ac6be5 | 571 | py | Python | src/timematic/_utils.py | MicaelJarniac/timematic | d678d361048006e3fed47134599406fd05aa5c01 | [
"MIT"
] | 1 | 2021-12-05T01:20:33.000Z | 2021-12-05T01:20:33.000Z | src/timematic/_utils.py | MicaelJarniac/timematic | d678d361048006e3fed47134599406fd05aa5c01 | [
"MIT"
] | 6 | 2021-12-05T01:09:35.000Z | 2021-12-23T00:24:39.000Z | src/timematic/_utils.py | MicaelJarniac/timematic | d678d361048006e3fed47134599406fd05aa5c01 | [
"MIT"
] | null | null | null | from datetime import time, timedelta
from .constants import S_IN_H, S_IN_MIN, US_IN_S
from .units import Microseconds
def time_in_microseconds(time: time) -> Microseconds:
return Microseconds(
(time.hour * S_IN_H + time.minute * S_IN_MIN + time.second) * US_IN_S
+ time.microsecond
)
def sub... | 28.55 | 79 | 0.716287 | 77 | 571 | 5.064935 | 0.363636 | 0.030769 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197898 | 571 | 19 | 80 | 30.052632 | 0.851528 | 0.031524 | 0 | 0 | 0 | 0 | 0.036298 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.230769 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8efcfd2362bfe5ae491ccbf81f72fcd96e189df8 | 1,951 | py | Python | challenges/slippy/slippy.py | nickbjohnson4224/greyhat-crypto-ctf-2014 | 62d03ecf1126edc04944dc9183fa2ba01ed974e7 | [
"MIT"
] | 4 | 2015-04-18T02:25:20.000Z | 2018-12-17T20:46:07.000Z | challenges/slippy/slippy.py | nickbjohnson4224/greyhat-crypto-ctf-2014 | 62d03ecf1126edc04944dc9183fa2ba01ed974e7 | [
"MIT"
] | null | null | null | challenges/slippy/slippy.py | nickbjohnson4224/greyhat-crypto-ctf-2014 | 62d03ecf1126edc04944dc9183fa2ba01ed974e7 | [
"MIT"
] | null | null | null | import os
import hashlib
import struct
class SlippyCipher(object):
def __init__(self, key):
pass
def weak_block_encrypt(self, block, subkey):
"""
This is a pretty terrible block cipher. Thankfully, we can make it
much stronger through iteration.
"""
# N.B. 2xy... | 26.364865 | 79 | 0.560738 | 254 | 1,951 | 4.255906 | 0.468504 | 0.040703 | 0.030527 | 0.038853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032736 | 0.342389 | 1,951 | 73 | 80 | 26.726027 | 0.809821 | 0.29062 | 0 | 0.090909 | 0 | 0 | 0.008574 | 0 | 0 | 0 | 0.01403 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.090909 | 0 | 0.393939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8efdd8c871a88c76fc7ceb4c336a5a93c1acb925 | 2,278 | py | Python | scripts/move_ptu_touch.py | westpoint-robotics/virtual_ptu | 05b694ae3d9f7b8dfc87953d6675b387a9b94cc8 | [
"BSD-2-Clause"
] | 2 | 2020-01-23T10:23:58.000Z | 2021-07-07T23:57:19.000Z | scripts/move_ptu_touch.py | westpoint-robotics/virtual_ptu | 05b694ae3d9f7b8dfc87953d6675b387a9b94cc8 | [
"BSD-2-Clause"
] | null | null | null | scripts/move_ptu_touch.py | westpoint-robotics/virtual_ptu | 05b694ae3d9f7b8dfc87953d6675b387a9b94cc8 | [
"BSD-2-Clause"
] | 1 | 2020-11-09T10:10:25.000Z | 2020-11-09T10:10:25.000Z | #!/usr/bin/env python
PKG = 'virtual_ptu'
import roslib; roslib.load_manifest(PKG)
import time
from math import pi
from threading import Thread
import rospy
from sensor_msgs.msg import Joy
from std_msgs.msg import Float64
from dynamixel_controllers.srv import *
from dynamixel_msgs.msg import JointState as JointStat... | 31.638889 | 102 | 0.704565 | 332 | 2,278 | 4.563253 | 0.295181 | 0.055446 | 0.055446 | 0.052805 | 0.320792 | 0.279208 | 0.212541 | 0.043564 | 0 | 0 | 0 | 0.010695 | 0.179104 | 2,278 | 71 | 103 | 32.084507 | 0.799465 | 0.00878 | 0 | 0.037736 | 0 | 0 | 0.090909 | 0.020843 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.188679 | 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 |
8efe1478d3ec56587d8ba5a476b0946cdf0e7b69 | 497 | py | Python | data_importer/shapefiles.py | aaronfraint/data-importer | a1d99af225647c9014ccfee9b767cacf12c5aba9 | [
"MIT"
] | null | null | null | data_importer/shapefiles.py | aaronfraint/data-importer | a1d99af225647c9014ccfee9b767cacf12c5aba9 | [
"MIT"
] | null | null | null | data_importer/shapefiles.py | aaronfraint/data-importer | a1d99af225647c9014ccfee9b767cacf12c5aba9 | [
"MIT"
] | null | null | null | from pathlib import Path
from postgis_helpers import PostgreSQL
def import_shapefiles(folder: Path, db: PostgreSQL):
""" Import all shapefiles within a folder into SQL.
"""
endings = [".shp", ".SHP"]
for ending in endings:
for shp_path in folder.rglob(f"*{ending}"):
print(shp_pa... | 27.611111 | 69 | 0.617706 | 64 | 497 | 4.625 | 0.53125 | 0.094595 | 0.060811 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002695 | 0.253521 | 497 | 17 | 70 | 29.235294 | 0.795148 | 0.094567 | 0 | 0 | 0 | 0 | 0.059361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8eff569d1513419b933ce455c07cd38c889275df | 5,499 | py | Python | main.py | mr-glt/NCAEP-2 | 73c3c9713359792f376c63760ea34d8661be5bde | [
"MIT"
] | null | null | null | main.py | mr-glt/NCAEP-2 | 73c3c9713359792f376c63760ea34d8661be5bde | [
"MIT"
] | null | null | null | main.py | mr-glt/NCAEP-2 | 73c3c9713359792f376c63760ea34d8661be5bde | [
"MIT"
] | null | null | null | import time
import csv
from tentacle_pi.TSL2561 import TSL2561
from Adafruit_BME280 import *
from ctypes import *
from picamera import PiCamera
from time import sleep
from datetime import datetime
sensor = BME280(mode=BME280_OSAMPLE_8)
tsl = TSL2561(0x39,"/dev/i2c-1")
tsl.enable_autogain()
tsl.set_time(0... | 35.025478 | 349 | 0.685034 | 761 | 5,499 | 4.708279 | 0.229961 | 0.195367 | 0.035166 | 0.078147 | 0.315936 | 0.177505 | 0.056377 | 0.056377 | 0.031259 | 0.031259 | 0 | 0.057756 | 0.178214 | 5,499 | 156 | 350 | 35.25 | 0.735118 | 0.008001 | 0 | 0.055118 | 0 | 0 | 0.109118 | 0.020766 | 0 | 0 | 0.00151 | 0 | 0 | 0 | null | null | 0.023622 | 0.062992 | null | null | 0.102362 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8effc6fed0c9c72b342bbcc7c4980aec016627c3 | 594 | py | Python | spyder/utils/introspection/tests/test_plugin_client.py | aglotero/spyder | 075d32fa359b728416de36cb0e744715fa5e3943 | [
"MIT"
] | 1 | 2019-06-12T17:31:10.000Z | 2019-06-12T17:31:10.000Z | spyder/utils/introspection/tests/test_plugin_client.py | aglotero/spyder | 075d32fa359b728416de36cb0e744715fa5e3943 | [
"MIT"
] | 1 | 2020-10-29T19:53:11.000Z | 2020-10-29T19:53:11.000Z | spyder/utils/introspection/tests/test_plugin_client.py | aglotero/spyder | 075d32fa359b728416de36cb0e744715fa5e3943 | [
"MIT"
] | 1 | 2019-01-16T06:51:50.000Z | 2019-01-16T06:51:50.000Z | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
#
"""Tests for plugin_client.py."""
# Test library imports
import pytest
# Local imports
from spyder.utils.introspection.plugin_client import PluginClient
from spyder.utils.introspection.manager import PL... | 22.846154 | 65 | 0.750842 | 76 | 594 | 5.671053 | 0.565789 | 0.092807 | 0.069606 | 0.12993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001972 | 0.146465 | 594 | 25 | 66 | 23.76 | 0.846154 | 0.361953 | 0 | 0 | 0 | 0 | 0.052486 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 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 |
f10c4f715463aae0420f7d30649d31e85be3ade9 | 282 | py | Python | d/driver/servo/servo.py | desireevl/astro-pointer | 5dbd0502001f954a8fed06d449e8fd47c39ff4db | [
"MIT"
] | 2 | 2017-10-24T07:20:18.000Z | 2021-11-02T18:53:36.000Z | d/driver/servo/servo.py | desireevl/astro-pointer | 5dbd0502001f954a8fed06d449e8fd47c39ff4db | [
"MIT"
] | 2 | 2017-07-15T13:23:06.000Z | 2017-08-27T06:03:37.000Z | d/driver/servo/servo.py | desireevl/astro-pointer | 5dbd0502001f954a8fed06d449e8fd47c39ff4db | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)
p = GPIO.PWM(18, 50)
p.start(2.5)
while True:
p.ChangeDutyCycle(2.5) # 0 degree
time.sleep(1)
p.ChangeDutyCycle(6.75)
time.sleep(1)
p.ChangeDutyCycle(10.5)
time.sleep(1)
| 15.666667 | 37 | 0.663121 | 50 | 282 | 3.74 | 0.52 | 0.256684 | 0.160428 | 0.117647 | 0.278075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087336 | 0.187943 | 282 | 17 | 38 | 16.588235 | 0.729258 | 0.028369 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f114f3321b6fdf25b1584a06be01c873aa796896 | 623 | py | Python | predictFromGPR.py | KarlRong/Eye-controlled-e-reader | ab1dea6b4639325916ee01215c2ee3d7f8a4279b | [
"MIT"
] | 1 | 2021-02-20T03:13:42.000Z | 2021-02-20T03:13:42.000Z | predictFromGPR.py | KarlRong/Eye-controlled-e-reader | ab1dea6b4639325916ee01215c2ee3d7f8a4279b | [
"MIT"
] | null | null | null | predictFromGPR.py | KarlRong/Eye-controlled-e-reader | ab1dea6b4639325916ee01215c2ee3d7f8a4279b | [
"MIT"
] | null | null | null | import matlab.engine
import time
class GPR(object):
def __init__(self):
future = matlab.engine.start_matlab(async=True)
self.eng = future.result()
# self.eng = matlab.engine.start_matlab()
def predictGPR(self, data):
x = self.eng.predictFromGPR_X(data)
y = self.eng.pre... | 18.878788 | 55 | 0.558587 | 81 | 623 | 4.098765 | 0.444444 | 0.105422 | 0.10241 | 0.138554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018476 | 0.304976 | 623 | 32 | 56 | 19.46875 | 0.748268 | 0.0626 | 0 | 0 | 0 | 0 | 0.025773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f11aa3806f6712d5a537b3d499925f123d91c566 | 2,071 | py | Python | misc/python/materialize/checks/roles.py | guswynn/materialize | f433173ed71f511d91311769ec58c2d427dd6c3b | [
"MIT"
] | null | null | null | misc/python/materialize/checks/roles.py | guswynn/materialize | f433173ed71f511d91311769ec58c2d427dd6c3b | [
"MIT"
] | 157 | 2021-12-28T19:17:45.000Z | 2022-03-31T17:44:27.000Z | misc/python/materialize/checks/roles.py | guswynn/materialize | f433173ed71f511d91311769ec58c2d427dd6c3b | [
"MIT"
] | null | null | null | # Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software... | 26.551282 | 77 | 0.502173 | 194 | 2,071 | 5.298969 | 0.376289 | 0.087549 | 0.140078 | 0.145914 | 0.354086 | 0.348249 | 0.301556 | 0.212062 | 0.11284 | 0.11284 | 0 | 0.009129 | 0.418155 | 2,071 | 77 | 78 | 26.896104 | 0.843983 | 0.173346 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.102564 | 0.153846 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
f11e898bb3cc69859bc26dd3adea8d7297d45ac2 | 265 | py | Python | Back/generalchatroom/urls.py | sadeghjafari5528/404- | 0499b93cc473ec4def96d95364180eb4f4dafb11 | [
"MIT"
] | null | null | null | Back/generalchatroom/urls.py | sadeghjafari5528/404- | 0499b93cc473ec4def96d95364180eb4f4dafb11 | [
"MIT"
] | 1 | 2020-12-27T14:59:35.000Z | 2020-12-27T14:59:35.000Z | Back/generalchatroom/urls.py | sadeghjafari5528/404- | 0499b93cc473ec4def96d95364180eb4f4dafb11 | [
"MIT"
] | 2 | 2020-10-30T08:08:32.000Z | 2020-10-30T20:47:51.000Z | from django.urls import path
from . import views
urlpatterns = [
path('generalchatroom/', views.index, name='index'),
path('generalchatroom/<str:room_name>/', views.room, name='room'),
path('show_Message/', views.show_Message, name='show_Message'),
]
| 26.5 | 70 | 0.698113 | 33 | 265 | 5.484848 | 0.424242 | 0.18232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 265 | 9 | 71 | 29.444444 | 0.786957 | 0 | 0 | 0 | 0 | 0 | 0.309434 | 0.120755 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
f120683de88bbe504dd5894222d1e81ca2837fa2 | 1,159 | py | Python | gerapy/pipelines/mongodb.py | hantmac/Gerapy | 41b1221dba2b89b89ca98f6bfbcc045cafdac469 | [
"MIT"
] | 2,888 | 2017-06-30T03:59:06.000Z | 2022-03-29T18:07:25.000Z | gerapy/pipelines/mongodb.py | hantmac/Gerapy | 41b1221dba2b89b89ca98f6bfbcc045cafdac469 | [
"MIT"
] | 194 | 2017-09-26T16:32:21.000Z | 2022-03-22T11:20:45.000Z | gerapy/pipelines/mongodb.py | hantmac/Gerapy | 41b1221dba2b89b89ca98f6bfbcc045cafdac469 | [
"MIT"
] | 620 | 2017-09-03T20:37:56.000Z | 2022-03-25T04:04:26.000Z | import pymongo
from twisted.internet.threads import deferToThread
class MongoDBPipeline(object):
def __init__(self, mongodb_uri, mongodb_database):
self.mongodb_uri = mongodb_uri
self.mongodb_database = mongodb_database
@classmethod
def from_crawler(cls, crawler):
return cls(
... | 35.121212 | 69 | 0.686799 | 130 | 1,159 | 5.869231 | 0.307692 | 0.078637 | 0.055046 | 0.055046 | 0.141547 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235548 | 1,159 | 33 | 70 | 35.121212 | 0.861174 | 0 | 0 | 0 | 0 | 0 | 0.023276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f1211a7af1dc70f4a232b3f2c52b8921f878097c | 1,698 | py | Python | bookorbooks/account/models/parent_profile_model.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | 1 | 2021-08-10T22:24:17.000Z | 2021-08-10T22:24:17.000Z | bookorbooks/account/models/parent_profile_model.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | bookorbooks/account/models/parent_profile_model.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
from constants.account_strings import AccountStrings
from django.db import models
from django.conf import settings
from country.models import City
from django.db.models.signals import post_delete
from django.dispatch import receiver
class ParentProfile(models.Model):
... | 36.12766 | 90 | 0.677267 | 184 | 1,698 | 6.01087 | 0.407609 | 0.099458 | 0.090416 | 0.162749 | 0.245027 | 0.112116 | 0.112116 | 0.112116 | 0 | 0 | 0 | 0.003167 | 0.256184 | 1,698 | 46 | 91 | 36.913043 | 0.872526 | 0.040047 | 0 | 0.108108 | 0 | 0 | 0.054206 | 0.026791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.189189 | 0.054054 | 0.459459 | 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 |
f12cd8653fdaefa59be32673163e107d4d1ac0a8 | 1,900 | py | Python | setup/remove_nexus5_bloat.py | hacker131/dotfiles | aff08a2c78c9668a8178712d17888fa9ce934e59 | [
"Apache-2.0"
] | 71 | 2015-02-10T03:28:20.000Z | 2021-11-04T16:11:45.000Z | setup/remove_nexus5_bloat.py | hacker131/dotfiles | aff08a2c78c9668a8178712d17888fa9ce934e59 | [
"Apache-2.0"
] | 11 | 2015-04-04T06:09:51.000Z | 2020-01-09T08:28:28.000Z | setup/remove_nexus5_bloat.py | hacker131/dotfiles | aff08a2c78c9668a8178712d17888fa9ce934e59 | [
"Apache-2.0"
] | 21 | 2015-02-10T03:28:26.000Z | 2021-11-04T16:11:47.000Z | # Run this script using Monkeyrunner.
import commands
import time
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
_PACKAGES_TO_BE_DISABLED = (
'com.google.android.apps.magazines',
'com.google.android.apps.plus',
'com.google.android.keep',
'com.google.android.play.games',
'com.google.android.... | 27.536232 | 75 | 0.734211 | 260 | 1,900 | 5.153846 | 0.426923 | 0.065672 | 0.059701 | 0.060448 | 0.114925 | 0.083582 | 0 | 0 | 0 | 0 | 0 | 0.019089 | 0.145263 | 1,900 | 68 | 76 | 27.941176 | 0.806034 | 0.161053 | 0 | 0.043478 | 0 | 0 | 0.249526 | 0.149716 | 0 | 0 | 0 | 0 | 0.043478 | 0 | null | null | 0 | 0.065217 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f136a69034e0a95650b8c7461e3b407ac80aab6e | 798 | py | Python | src/evaluation/evaluate_character_predictor.py | Zhenye-Na/crnn-pytorch | 2af43d4ce2ddf31978b41d1e402e220df8189230 | [
"MIT"
] | 39 | 2020-03-08T15:56:02.000Z | 2022-02-18T01:03:19.000Z | src/evaluation/evaluate_character_predictor.py | Zhenye-Na/crnn-pytorch | 2af43d4ce2ddf31978b41d1e402e220df8189230 | [
"MIT"
] | 2 | 2020-10-14T17:36:34.000Z | 2020-12-10T09:08:33.000Z | src/evaluation/evaluate_character_predictor.py | Zhenye-Na/crnn-pytorch | 2af43d4ce2ddf31978b41d1e402e220df8189230 | [
"MIT"
] | 7 | 2020-06-16T18:31:08.000Z | 2022-01-13T05:26:57.000Z | """Run validation test for CharacterPredictor."""
import os
from pathlib import Path
from time import time
import unittest
from text_recognizer.datasets import EmnistDataset
from text_recognizer.character_predictor import CharacterPredictor
os.environ["CUDA_VISIBLE_DEVICES"] = ""
SUPPORT_DIRNAME = Path(__file__).par... | 30.692308 | 76 | 0.718045 | 89 | 798 | 6.235955 | 0.561798 | 0.064865 | 0.064865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007669 | 0.182957 | 798 | 25 | 77 | 31.92 | 0.843558 | 0.053885 | 0 | 0 | 0 | 0 | 0.096128 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f13f3fd64eb1156c7534b2b658be89322aef850c | 1,964 | py | Python | mmf/datasets/builders/csi/dataset.py | alisonreboud/mmf | c47fc2b4f5feef0704f2743f3fcabe04af655817 | [
"BSD-3-Clause"
] | null | null | null | mmf/datasets/builders/csi/dataset.py | alisonreboud/mmf | c47fc2b4f5feef0704f2743f3fcabe04af655817 | [
"BSD-3-Clause"
] | null | null | null | mmf/datasets/builders/csi/dataset.py | alisonreboud/mmf | c47fc2b4f5feef0704f2743f3fcabe04af655817 | [
"BSD-3-Clause"
] | null | null | null |
import copy
import json
import os
import numpy as np
import omegaconf
import torch
from mmf.common.sample import Sample
from mmf.datasets.mmf_dataset import MMFDataset
from mmf.utils.general import get_mmf_root
from mmf.utils.visualize import visualize_images
from PIL import Image
from torchvision import transforms
... | 28.463768 | 78 | 0.664969 | 237 | 1,964 | 5.227848 | 0.409283 | 0.104923 | 0.033898 | 0.027441 | 0.074253 | 0.074253 | 0.074253 | 0.074253 | 0 | 0 | 0 | 0.001366 | 0.254582 | 1,964 | 68 | 79 | 28.882353 | 0.844945 | 0.122709 | 0 | 0 | 0 | 0 | 0.1 | 0.015205 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f14749353026ded08e25da97f65d0c8981438ecc | 1,600 | py | Python | packages/syft/src/syft/core/node/common/node_service/heritage_update/heritage_update_messages.py | callezenwaka/PySyft | 2545c302441cfe727ec095c4f9aa136bff02be32 | [
"Apache-1.1"
] | 1 | 2021-09-14T10:56:43.000Z | 2021-09-14T10:56:43.000Z | packages/syft/src/syft/core/node/common/node_service/heritage_update/heritage_update_messages.py | callezenwaka/PySyft | 2545c302441cfe727ec095c4f9aa136bff02be32 | [
"Apache-1.1"
] | 2 | 2021-04-02T10:12:44.000Z | 2021-04-02T10:12:50.000Z | packages/syft/src/syft/core/node/common/node_service/heritage_update/heritage_update_messages.py | callezenwaka/PySyft | 2545c302441cfe727ec095c4f9aa136bff02be32 | [
"Apache-1.1"
] | 1 | 2021-08-19T12:23:01.000Z | 2021-08-19T12:23:01.000Z | # stdlib
from typing import Optional
# third party
from google.protobuf.reflection import GeneratedProtocolMessageType
# relative
from ...... import serialize
from ......proto.core.node.common.service.heritage_update_service_pb2 import (
HeritageUpdateMessage as HeritageUpdateMessage_PB,
)
from .....common.messag... | 33.333333 | 82 | 0.7275 | 158 | 1,600 | 7.075949 | 0.316456 | 0.068873 | 0.112701 | 0.059034 | 0.051878 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002299 | 0.184375 | 1,600 | 47 | 83 | 34.042553 | 0.854406 | 0.016875 | 0 | 0.054054 | 1 | 0 | 0.013384 | 0.013384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.243243 | 0.081081 | 0.459459 | 0 | 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 |
f14b7a619801744f708b7a536cc304ea6fb1882a | 661 | py | Python | all_cnn_96/t7_to_hdf5.py | ganow/keras-information-dropout | ec75ebec5c7305a7c6d20d754c789f4d6273ff65 | [
"BSD-3-Clause"
] | 16 | 2017-01-09T03:17:53.000Z | 2019-08-02T10:54:58.000Z | all_cnn_96/t7_to_hdf5.py | ganow/keras-information-dropout | ec75ebec5c7305a7c6d20d754c789f4d6273ff65 | [
"BSD-3-Clause"
] | null | null | null | all_cnn_96/t7_to_hdf5.py | ganow/keras-information-dropout | ec75ebec5c7305a7c6d20d754c789f4d6273ff65 | [
"BSD-3-Clause"
] | 4 | 2017-03-19T15:16:40.000Z | 2019-06-19T19:33:31.000Z | import torchfile
import h5py
dataset_types = ('train', 'valid', 'test')
dataset_path = 'data/cluttered_{}.t7'
outpath = 'data/cluttered_mnist.h5'
with h5py.File(outpath, 'w') as hf:
for dataset_type in dataset_types:
inpath = dataset_path.format(dataset_type)
print('... load {}'.format(inpath))
o = tor... | 34.789474 | 91 | 0.66112 | 92 | 661 | 4.554348 | 0.380435 | 0.157518 | 0.202864 | 0.095465 | 0.200477 | 0.109785 | 0 | 0 | 0 | 0 | 0 | 0.00692 | 0.125567 | 661 | 18 | 92 | 36.722222 | 0.717993 | 0 | 0 | 0 | 0 | 0 | 0.225416 | 0.034796 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.214286 | 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 |
f14f3735d20b45bdd03b0f11fa224cc961d4857e | 2,871 | py | Python | pattern-example-google.py | kemalcanbora/python-examples | b5b483ac137172221b6d1244eb3816bf60ed34e7 | [
"MIT"
] | 1 | 2021-01-04T18:46:25.000Z | 2021-01-04T18:46:25.000Z | pattern-example-google.py | Pervinsr/python-examples | b5b483ac137172221b6d1244eb3816bf60ed34e7 | [
"MIT"
] | null | null | null | pattern-example-google.py | Pervinsr/python-examples | b5b483ac137172221b6d1244eb3816bf60ed34e7 | [
"MIT"
] | 1 | 2021-01-04T18:46:18.000Z | 2021-01-04T18:46:18.000Z | # pattern library example querying Google using the context and terms option to get weights and comparisons
# author: James Campbell
# Date Created: 2015 05 18
# to install pattern, it is simple via pip: pip install pattern
import sys # need this to pass arguments at the command line
from termcolor import colored # aw... | 39.328767 | 107 | 0.654127 | 378 | 2,871 | 4.920635 | 0.39418 | 0.03871 | 0.073118 | 0.033871 | 0.172043 | 0.172043 | 0.146237 | 0.146237 | 0.096774 | 0.048387 | 0 | 0.009669 | 0.243469 | 2,871 | 72 | 108 | 39.875 | 0.846685 | 0.273772 | 0 | 0.109091 | 0 | 0 | 0.216908 | 0.013043 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f14ffec2ed34aa9351aeaeced17a66d91ef7a5b8 | 3,530 | py | Python | server/models.py | sjkdmpy/noBlindEyez | 41beadf97e3f580f31a1659af0b51b131fa24f74 | [
"MIT"
] | null | null | null | server/models.py | sjkdmpy/noBlindEyez | 41beadf97e3f580f31a1659af0b51b131fa24f74 | [
"MIT"
] | null | null | null | server/models.py | sjkdmpy/noBlindEyez | 41beadf97e3f580f31a1659af0b51b131fa24f74 | [
"MIT"
] | null | null | null | from tortoise.models import Model
from tortoise import fields
from tortoise.validators import MinLengthValidator
from tortoise.contrib.pydantic import pydantic_model_creator, pydantic_queryset_creator
from enum import Enum
from server.validators.custom import (
validate_longitude,
validate_latitude
)
class Incident... | 29.663866 | 112 | 0.773371 | 408 | 3,530 | 6.47549 | 0.272059 | 0.054126 | 0.08327 | 0.039743 | 0.271764 | 0.110144 | 0.031794 | 0.031794 | 0 | 0 | 0 | 0.0045 | 0.118697 | 3,530 | 118 | 113 | 29.915254 | 0.844744 | 0.030028 | 0 | 0.21519 | 0 | 0 | 0.091415 | 0.010548 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063291 | false | 0.012658 | 0.075949 | 0.063291 | 0.696203 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f155a6a5e7d203c7602005e18f70bc88b9e14b91 | 1,513 | py | Python | app/blog/forms.py | chaos-soft/velvet | 71edabaa6e25308e76af82b76eb62c159d2b3368 | [
"MIT"
] | null | null | null | app/blog/forms.py | chaos-soft/velvet | 71edabaa6e25308e76af82b76eb62c159d2b3368 | [
"MIT"
] | null | null | null | app/blog/forms.py | chaos-soft/velvet | 71edabaa6e25308e76af82b76eb62c159d2b3368 | [
"MIT"
] | null | null | null | from datetime import datetime
from common.forms import DocumentForm
from common.functions import create_thumbnail, delete_thumbnail
from django import forms
from django.conf import settings
from django.utils.dateformat import format
from .models import Article
class ArticleForm(DocumentForm):
UPLOAD_TO = 'blog/... | 29.666667 | 80 | 0.653668 | 168 | 1,513 | 5.767857 | 0.386905 | 0.093911 | 0.090815 | 0.111455 | 0.094943 | 0.094943 | 0.094943 | 0 | 0 | 0 | 0 | 0 | 0.242564 | 1,513 | 50 | 81 | 30.26 | 0.84555 | 0 | 0 | 0 | 0 | 0 | 0.068738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.166667 | 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 |
f1562944bdd25d20b89e5c7ed5d7ad347602e202 | 1,690 | py | Python | src/view/gtkview/msgSupport.py | iivvoo-abandoned/most | a53e3ce4913e1886c5933387f0139db2a96f7e53 | [
"BSD-3-Clause"
] | null | null | null | src/view/gtkview/msgSupport.py | iivvoo-abandoned/most | a53e3ce4913e1886c5933387f0139db2a96f7e53 | [
"BSD-3-Clause"
] | null | null | null | src/view/gtkview/msgSupport.py | iivvoo-abandoned/most | a53e3ce4913e1886c5933387f0139db2a96f7e53 | [
"BSD-3-Clause"
] | null | null | null | """
generic routines for classes / widgets that support printing of irc messages
"""
# $Id: msgSupport.py,v 1.11 2002/02/24 23:08:24 ivo Exp $
from gtk import *
from GDK import *
from libglade import *
red = GdkColor(-1, 0, 0)
blue = GdkColor(0, 0, -1)
class msgSupport:
def __init__(self):
pass
... | 26 | 80 | 0.543195 | 230 | 1,690 | 3.952174 | 0.282609 | 0.079208 | 0.138614 | 0.158416 | 0.50165 | 0.449945 | 0.449945 | 0.388339 | 0.381738 | 0.308031 | 0 | 0.023256 | 0.287574 | 1,690 | 64 | 81 | 26.40625 | 0.731728 | 0.032544 | 0 | 0.311111 | 0 | 0 | 0.04898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022222 | 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 |
f15d8c2c72a127c52a84768780aa3d8500420fd4 | 383 | py | Python | app/__init__.py | zjurelinac/FM-Radio | d8368b09ffd2ee0d54b8d95c5221667bc5586a54 | [
"MIT"
] | null | null | null | app/__init__.py | zjurelinac/FM-Radio | d8368b09ffd2ee0d54b8d95c5221667bc5586a54 | [
"MIT"
] | null | null | null | app/__init__.py | zjurelinac/FM-Radio | d8368b09ffd2ee0d54b8d95c5221667bc5586a54 | [
"MIT"
] | null | null | null | from flask import Flask
from flask.ext.mail import Mail
from peewee import *
import os
cwd = os.getcwd()
frontend_dest = os.path.join( cwd, 'frontend/' )
app = Flask( __name__, static_url_path = '', static_folder = frontend_dest )
app.config.from_object( 'config' )
mail = Mail( app )
db = SqliteDatabase( app.config... | 22.529412 | 76 | 0.720627 | 54 | 383 | 4.925926 | 0.481481 | 0.067669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159269 | 383 | 16 | 77 | 23.9375 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.060052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f15fbe1171cf1e6b1f73848c454eff987cd7bb42 | 4,376 | py | Python | hard-gists/a1178bf10729a27184b1/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | murmur-collectd.py | TF2Stadium/murmur-collectd-docker | 4b4562f824961dfb83a1b631537b7ac7010acfa5 | [
"Unlicense"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | murmur-collectd.py | TF2Stadium/murmur-collectd-docker | 4b4562f824961dfb83a1b631537b7ac7010acfa5 | [
"Unlicense"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | #!/usr/bin/env python
# -*- coding: utf-8
#
# murmurCollectd.py - "murmur stats (User/Bans/Uptime/Channels)" script for collectd
# Copyright (c) 2015, Nils / 0rokita@informatik.uni-hamburg.de
#
# munin-murmur.py - "murmur stats (User/Bans/Uptime/Channels)" script for munin.
# Copyright (c) 2014, Natenom / natenom@naten... | 34.456693 | 95 | 0.743144 | 605 | 4,376 | 5.358678 | 0.447934 | 0.022209 | 0.00802 | 0.010487 | 0.099321 | 0.084516 | 0.069093 | 0.069093 | 0.069093 | 0.041949 | 0 | 0.011221 | 0.164991 | 4,376 | 126 | 96 | 34.730159 | 0.876026 | 0.544104 | 0 | 0.044444 | 0 | 0 | 0.152487 | 0.01767 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022222 | 0.088889 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f16c15479aafc673f31a3823f130596412e67832 | 803 | py | Python | apps/fithm-gateway/apps/user/router.py | sergio1221/flask-backend | 11a9e0db5b5e664fcc820919d97039738176ac62 | [
"BSD-3-Clause"
] | 3 | 2022-03-04T03:05:55.000Z | 2022-03-04T09:02:32.000Z | apps/fithm-gateway/apps/user/router.py | sergio1221/flask-backend | 11a9e0db5b5e664fcc820919d97039738176ac62 | [
"BSD-3-Clause"
] | null | null | null | apps/fithm-gateway/apps/user/router.py | sergio1221/flask-backend | 11a9e0db5b5e664fcc820919d97039738176ac62 | [
"BSD-3-Clause"
] | null | null | null | from flask_restx import Namespace, Resource
from flask import request
from .lib.parser import UserParser
from .view import UserView
from libs.depends.entry import container
from libs.middleware.auth import login_required, active_required
user = Namespace('user', path='/users', decorators=[active_required(), l... | 22.305556 | 90 | 0.65878 | 95 | 803 | 5.505263 | 0.4 | 0.040153 | 0.053537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22665 | 803 | 35 | 91 | 22.942857 | 0.84219 | 0.023661 | 0 | 0 | 0 | 0 | 0.053836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.095238 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f16e274984b9092a57870f2282b1c9b505629d58 | 445 | py | Python | 4/test_main.py | felixb/advent-of-code-2017 | 634d98e8887b12e269374a713185c81ec940cca1 | [
"MIT"
] | null | null | null | 4/test_main.py | felixb/advent-of-code-2017 | 634d98e8887b12e269374a713185c81ec940cca1 | [
"MIT"
] | null | null | null | 4/test_main.py | felixb/advent-of-code-2017 | 634d98e8887b12e269374a713185c81ec940cca1 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import unittest
from main import run_1, run_2
class Test(unittest.TestCase):
def test_1(self):
self.assertEqual(run_1("aa bb cc dd ee\naa bb cc dd aa\naa bb cc dd aaa"), 2)
def test_2(self):
self.assertEqual(
run_2("abcde fghij\nabcde xyz ecdab\na ab abc a... | 23.421053 | 119 | 0.647191 | 75 | 445 | 3.653333 | 0.626667 | 0.043796 | 0.065693 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026946 | 0.249438 | 445 | 18 | 120 | 24.722222 | 0.793413 | 0.049438 | 0 | 0 | 0 | 0.090909 | 0.36019 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.454545 | 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 |
f17208934805a94987b7c2da902bc95cce3c8cd2 | 1,380 | py | Python | python/celerite2/__init__.py | jacksonloper/celerite2 | e413e28dc43ba33e67960b51a9cbbac43c2f58df | [
"MIT"
] | 38 | 2020-10-10T02:43:53.000Z | 2022-03-30T09:59:21.000Z | python/celerite2/__init__.py | jacksonloper/celerite2 | e413e28dc43ba33e67960b51a9cbbac43c2f58df | [
"MIT"
] | 34 | 2020-10-06T18:50:47.000Z | 2022-01-28T10:33:04.000Z | python/celerite2/__init__.py | jacksonloper/celerite2 | e413e28dc43ba33e67960b51a9cbbac43c2f58df | [
"MIT"
] | 6 | 2020-11-09T18:12:54.000Z | 2022-02-03T20:20:59.000Z | # -*- coding: utf-8 -*-
__all__ = ["__version__", "terms", "GaussianProcess"]
from . import terms
from .celerite2_version import __version__
from .numpy import GaussianProcess
__uri__ = "https://celerite2.readthedocs.io"
__author__ = "Daniel Foreman-Mackey"
__email__ = "foreman.mackey@gmail.com"
__license__ = "MIT"
_... | 32.857143 | 79 | 0.666667 | 164 | 1,380 | 5.359756 | 0.646341 | 0.059158 | 0.03413 | 0.052332 | 0.177474 | 0.177474 | 0.11149 | 0.11149 | 0.11149 | 0 | 0 | 0.066487 | 0.193478 | 1,380 | 41 | 80 | 33.658537 | 0.72327 | 0.015217 | 0 | 0.052632 | 0 | 0.026316 | 0.821665 | 0.05748 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.078947 | 0 | 0 | 0 | 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 |
f177871f4ee7535e957b30f2d0f0b935c177f516 | 2,057 | py | Python | rasa_core/channels/rasa_chat.py | tupac56/rasa_core | db59aef0d371066513f810a41dd2584c6049c39c | [
"Apache-2.0"
] | null | null | null | rasa_core/channels/rasa_chat.py | tupac56/rasa_core | db59aef0d371066513f810a41dd2584c6049c39c | [
"Apache-2.0"
] | null | null | null | rasa_core/channels/rasa_chat.py | tupac56/rasa_core | db59aef0d371066513f810a41dd2584c6049c39c | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import requests
from flask import Blueprint, request, jsonify, abort
from flask_cors import CORS, cross_origin
from rasa_core.channels import CollectingO... | 29.385714 | 70 | 0.623724 | 228 | 2,057 | 5.377193 | 0.377193 | 0.039152 | 0.052202 | 0.04894 | 0.034258 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004003 | 0.271269 | 2,057 | 69 | 71 | 29.811594 | 0.813876 | 0.038892 | 0 | 0.122449 | 0 | 0 | 0.075788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.22449 | 0.020408 | 0.510204 | 0.081633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f177b9419c538d49f220683e18bef4171a80a495 | 2,238 | py | Python | project/submissions/avneesh/astar_path.py | naveenmoto/lablet102 | 24de9daa4ae75cbde93567a3239ede43c735cf03 | [
"MIT"
] | 1 | 2021-07-09T16:48:44.000Z | 2021-07-09T16:48:44.000Z | project/submissions/avneesh/astar_path.py | naveenmoto/lablet102 | 24de9daa4ae75cbde93567a3239ede43c735cf03 | [
"MIT"
] | null | null | null | project/submissions/avneesh/astar_path.py | naveenmoto/lablet102 | 24de9daa4ae75cbde93567a3239ede43c735cf03 | [
"MIT"
] | null | null | null | """
Generates a path on the given occupancy grid (map of
the environment)
"""
import networkx as nx
from grid_loader import Grid
import numpy as np
def euclidean(node1, node2):
x1, y1 = node1
x2, y2 = node2
return ((x1-x2)**2+(y1-y2)**2)**0.5
class AStar:
# Constructor
def __init__(self)... | 36.096774 | 90 | 0.58311 | 315 | 2,238 | 3.990476 | 0.352381 | 0.044551 | 0.043755 | 0.022275 | 0.031822 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02068 | 0.330206 | 2,238 | 61 | 91 | 36.688525 | 0.817879 | 0.306971 | 0 | 0 | 1 | 0 | 0.006047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.1 | 0 | 0.366667 | 0 | 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 |
f17e62076f5b5b01b9a326e3406e0c9452c62c15 | 424 | py | Python | tasfie/migrations/0007_auto_20190820_0007.py | mablue/Specialized-Procurement-and-Sales-Management-System-for-East-Azarbaijan-Gas-Company | da071bd199a92d571228a1d823a7fa1f52275604 | [
"MIT"
] | 30 | 2019-08-18T14:57:39.000Z | 2022-03-15T22:09:09.000Z | tasfie/migrations/0007_auto_20190820_0007.py | mablue/Specialized-Procurement-and-Sales-Management-System-for-East-Azarbaijan-Gas-Company | da071bd199a92d571228a1d823a7fa1f52275604 | [
"MIT"
] | 3 | 2021-03-19T00:46:32.000Z | 2021-09-22T01:29:08.000Z | tasfie/migrations/0007_auto_20190820_0007.py | mablue/Specialized-Procurement-and-Sales-Management-System-for-East-Azarbaijan-Gas-Company | da071bd199a92d571228a1d823a7fa1f52275604 | [
"MIT"
] | 7 | 2019-08-20T14:04:28.000Z | 2021-06-29T06:43:08.000Z | # Generated by Django 2.2.4 on 2019-08-20 00:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tasfie', '0006_auto_20190818_1448'),
]
operations = [
migrations.AlterField(
model_name='tasfie',
name='bank',
... | 22.315789 | 91 | 0.608491 | 48 | 424 | 5.25 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109677 | 0.268868 | 424 | 18 | 92 | 23.555556 | 0.703226 | 0.106132 | 0 | 0 | 1 | 0 | 0.132626 | 0.061008 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f18b155d894b1520d80f5e21e506a93af23b8241 | 1,155 | py | Python | tests/test_sections_Fillet.py | iamlikeme/sections | 62f288ec2912bbbf25da105d12cf5e242475b484 | [
"MIT"
] | null | null | null | tests/test_sections_Fillet.py | iamlikeme/sections | 62f288ec2912bbbf25da105d12cf5e242475b484 | [
"MIT"
] | 32 | 2015-07-06T20:11:55.000Z | 2015-07-19T21:46:17.000Z | tests/test_sections_Fillet.py | iamlikeme/sections | 62f288ec2912bbbf25da105d12cf5e242475b484 | [
"MIT"
] | 2 | 2018-11-16T11:04:21.000Z | 2019-05-17T12:51:58.000Z | import unittest
import sys
from math import pi
sys.path.insert(0, "..")
from sections.sections import Fillet
import test_sections_generic as generic
class TestPhysicalProperties(generic.TestPhysicalProperties, unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.sectclass = Fillet
... | 33.970588 | 88 | 0.666667 | 149 | 1,155 | 5.033557 | 0.362416 | 0.106667 | 0.173333 | 0.2 | 0.432 | 0.378667 | 0.378667 | 0.378667 | 0.241333 | 0.241333 | 0 | 0.141907 | 0.219048 | 1,155 | 33 | 89 | 35 | 0.689579 | 0 | 0 | 0 | 0 | 0 | 0.015584 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.32 | 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 |
74b05bed229426c3ebeba8f502be2c857f285d13 | 1,248 | py | Python | Testing/doctesting.py | lvolkmann/couch-to-coder-python-exercises | afecb696d93eead9ba50613dc0723f2eca92d11a | [
"MIT"
] | null | null | null | Testing/doctesting.py | lvolkmann/couch-to-coder-python-exercises | afecb696d93eead9ba50613dc0723f2eca92d11a | [
"MIT"
] | null | null | null | Testing/doctesting.py | lvolkmann/couch-to-coder-python-exercises | afecb696d93eead9ba50613dc0723f2eca92d11a | [
"MIT"
] | null | null | null | """
Create docstring tests for the following functions
"""
import doctest
# Example
def get_area_rect(length, width):
"""Returns area of rectangle
>>> get_area_rect(5 , 5)
25
>>> get_area_rect(5 , 0)
Traceback (most recent call last):
...
ValueError
>>> g... | 21.894737 | 65 | 0.491186 | 141 | 1,248 | 4.205674 | 0.41844 | 0.05059 | 0.074199 | 0.060708 | 0.124789 | 0.124789 | 0 | 0 | 0 | 0 | 0 | 0.028112 | 0.401442 | 1,248 | 56 | 66 | 22.285714 | 0.76573 | 0.442308 | 0 | 0.235294 | 0 | 0 | 0.010661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
74b5b63d6c175d797b181db1cf48de62299931c5 | 267 | py | Python | Codeforces/C_Nice_Garland.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/C_Nice_Garland.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/C_Nice_Garland.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | n=int(input())
s=input()
l=["RGB","RBG","GRB","GBR","BGR","BRG"]
mn=10**10
ans=""
for i in l:
t=i
t=t*((n+3)//3)
t=t[0:n]
c=0
for j in range(n):
if t[j]!=s[j]:
c+=1
if c < mn:
mn=c
ans=t
print(mn)
print(ans) | 14.833333 | 39 | 0.411985 | 56 | 267 | 1.964286 | 0.464286 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.325843 | 267 | 18 | 40 | 14.833333 | 0.561111 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74b92230f45a715437e427738468c8452edf0ca6 | 365 | py | Python | tf_encrypted/player/player.py | bendecoste/tf-encrypted | 00c9b80435411299a518f777de644c61d64cceea | [
"Apache-2.0"
] | null | null | null | tf_encrypted/player/player.py | bendecoste/tf-encrypted | 00c9b80435411299a518f777de644c61d64cceea | [
"Apache-2.0"
] | null | null | null | tf_encrypted/player/player.py | bendecoste/tf-encrypted | 00c9b80435411299a518f777de644c61d64cceea | [
"Apache-2.0"
] | null | null | null | from typing import Optional
import tensorflow as tf
class Player(object):
def __init__(self, name: str, index: int, device_name: str, host: Optional[str] = None) -> None:
self.name = name
self.index = index
self.device_name = device_name
self.host = host
def player(player: Playe... | 22.8125 | 100 | 0.668493 | 50 | 365 | 4.72 | 0.42 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235616 | 365 | 15 | 101 | 24.333333 | 0.845878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 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 |
74beb552e7f6318c1f30e7287f4fcc59400e5b5a | 820 | py | Python | aws/approveParticipants.py | stevencdang/data_proc_lib | 7ecc93efa726ace808019c744980c5c9e0f0f329 | [
"MIT"
] | null | null | null | aws/approveParticipants.py | stevencdang/data_proc_lib | 7ecc93efa726ace808019c744980c5c9e0f0f329 | [
"MIT"
] | null | null | null | aws/approveParticipants.py | stevencdang/data_proc_lib | 7ecc93efa726ace808019c744980c5c9e0f0f329 | [
"MIT"
] | null | null | null | import mongohq
import mturk
priming_exp = {'desc': "rare vs common individual brainstorming",
"hit_id": '3ZURAPD288NJZ4HUTVEJXT1RKF51F5'
}
if __name__ == '__main__':
params = mongohq.ideagenstest
db = mongohq.get_mongodb(params['url'],
params['port'],
... | 24.848485 | 65 | 0.603659 | 84 | 820 | 5.690476 | 0.595238 | 0.041841 | 0.037657 | 0.054393 | 0.133891 | 0.133891 | 0.133891 | 0.133891 | 0 | 0 | 0 | 0.01528 | 0.281707 | 820 | 32 | 66 | 25.625 | 0.796265 | 0.092683 | 0 | 0.086957 | 0 | 0 | 0.253711 | 0.040486 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74bff4afba516cca4e142b1507cd7664378974f1 | 3,511 | py | Python | doc/examples/skeleton_behaviour.py | andrewbest-tri/py_trees | 8d08e625878ea801a09083f9ec8c3b47d7c3d8d1 | [
"BSD-3-Clause"
] | 201 | 2019-02-27T08:42:11.000Z | 2022-03-19T10:09:04.000Z | doc/examples/skeleton_behaviour.py | andrewbest-tri/py_trees | 8d08e625878ea801a09083f9ec8c3b47d7c3d8d1 | [
"BSD-3-Clause"
] | 119 | 2019-02-25T10:21:29.000Z | 2022-03-08T18:04:05.000Z | doc/examples/skeleton_behaviour.py | andrewbest-tri/py_trees | 8d08e625878ea801a09083f9ec8c3b47d7c3d8d1 | [
"BSD-3-Clause"
] | 59 | 2019-03-20T08:31:11.000Z | 2022-03-03T08:22:23.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import py_trees
import random
class Foo(py_trees.behaviour.Behaviour):
def __init__(self, name):
"""
Minimal one-time initialisation. A good rule of thumb is
to only include the initialisation relevant for being able
to insert this be... | 37.752688 | 111 | 0.624324 | 437 | 3,511 | 4.942792 | 0.416476 | 0.032407 | 0.02963 | 0.046296 | 0.241204 | 0.031481 | 0 | 0 | 0 | 0 | 0 | 0.000807 | 0.294503 | 3,511 | 92 | 112 | 38.163043 | 0.871215 | 0.583879 | 0 | 0 | 0 | 0 | 0.121154 | 0.036538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74c0ac718c69f8a01b1c4612cef772887cb199b5 | 20,163 | py | Python | lbrynet/schema/claim.py | abueide/lbry | 7f5deaf6c80422a30b3714d4bf12e028756ed9fe | [
"MIT"
] | null | null | null | lbrynet/schema/claim.py | abueide/lbry | 7f5deaf6c80422a30b3714d4bf12e028756ed9fe | [
"MIT"
] | null | null | null | lbrynet/schema/claim.py | abueide/lbry | 7f5deaf6c80422a30b3714d4bf12e028756ed9fe | [
"MIT"
] | null | null | null | import os.path
import json
from string import ascii_letters
from typing import List, Tuple, Iterator, TypeVar, Generic
from decimal import Decimal, ROUND_UP
from binascii import hexlify, unhexlify
from google.protobuf.json_format import MessageToDict
from google.protobuf.message import DecodeError
from hachoir.parser ... | 26.8125 | 95 | 0.614889 | 2,399 | 20,163 | 5.000417 | 0.10296 | 0.087112 | 0.035428 | 0.01984 | 0.275175 | 0.217573 | 0.123291 | 0.101617 | 0.052101 | 0.03943 | 0 | 0.00485 | 0.284234 | 20,163 | 751 | 96 | 26.848202 | 0.826358 | 0 | 0 | 0.1875 | 0 | 0 | 0.044636 | 0 | 0 | 0 | 0 | 0 | 0.005357 | 1 | 0.219643 | false | 0.001786 | 0.030357 | 0.082143 | 0.441071 | 0.001786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74c2bb0da33b52e878b8e71c1ccb8a38275b36c5 | 8,806 | py | Python | montlake/tslasso/main.py | sjkoelle/montlake | b908a43e0c00763bd1cf86120eaa6bdf7d8d1196 | [
"Apache-2.0"
] | 8 | 2021-11-24T19:39:24.000Z | 2021-12-03T01:30:14.000Z | montlake/tslasso/main.py | sjkoelle/montlake | b908a43e0c00763bd1cf86120eaa6bdf7d8d1196 | [
"Apache-2.0"
] | null | null | null | montlake/tslasso/main.py | sjkoelle/montlake | b908a43e0c00763bd1cf86120eaa6bdf7d8d1196 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/tslasso.main.ipynb (unless otherwise specified).
__all__ = ['run_exp']
# Cell
from ..atomgeom.features import get_features,get_D_feats_feats
from ..atomgeom.utils import get_atoms_4
from ..simulations.rigidethanol import get_rigid_ethanol_data
from ..utils.utils import... | 41.149533 | 178 | 0.683738 | 1,093 | 8,806 | 5.247027 | 0.21409 | 0.032956 | 0.038361 | 0.011508 | 0.192851 | 0.137053 | 0.121186 | 0.078989 | 0.074106 | 0.056844 | 0 | 0.018923 | 0.21985 | 8,806 | 214 | 179 | 41.149533 | 0.815866 | 0.059051 | 0 | 0.121951 | 1 | 0 | 0.047659 | 0.00254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006098 | false | 0 | 0.115854 | 0 | 0.121951 | 0.036585 | 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 |
74c9b7b6708519261b754ff66a4041367ce192ac | 2,678 | py | Python | addonpayments/api/common/requests.py | javisenberg/addonpayments-Python-SDK | 8c7b60fd4d245dd588d9f230c17ffde4e8ed33ac | [
"MIT"
] | 2 | 2018-04-11T13:53:38.000Z | 2018-12-09T13:10:18.000Z | addonpayments/api/common/requests.py | javisenberg/addonpayments-Python-SDK | 8c7b60fd4d245dd588d9f230c17ffde4e8ed33ac | [
"MIT"
] | 2 | 2019-03-28T12:49:16.000Z | 2019-03-28T12:52:09.000Z | addonpayments/api/common/requests.py | javisenberg/addonpayments-Python-SDK | 8c7b60fd4d245dd588d9f230c17ffde4e8ed33ac | [
"MIT"
] | 8 | 2017-07-10T13:32:23.000Z | 2021-08-23T10:55:52.000Z | # -*- encoding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import attr
from attr import ib as Field
from addonpayments.validators import RequestValidator
from addonpayments.utils import GenerationUtils
from addonpayments.mixins import HashMixin
from addonpayments.api.mixins import XmlMixin
... | 36.189189 | 116 | 0.700896 | 321 | 2,678 | 5.744548 | 0.389408 | 0.029826 | 0.034707 | 0.040672 | 0.066703 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002917 | 0.231889 | 2,678 | 73 | 117 | 36.684932 | 0.893534 | 0.463032 | 0 | 0 | 0 | 0 | 0.015244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.241379 | 0 | 0.689655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74e6d1aec21c6b8ae4217e18b92f0da2c35c87d4 | 16,763 | py | Python | packages/python/pyfora/Connection.py | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | packages/python/pyfora/Connection.py | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | packages/python/pyfora/Connection.py | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | # Copyright 2015 Ufora 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 agreed to i... | 35.742004 | 112 | 0.598222 | 1,286 | 16,763 | 7.776827 | 0.25661 | 0.018998 | 0.019498 | 0.019498 | 0.220478 | 0.149185 | 0.143786 | 0.090791 | 0.071293 | 0.071293 | 0 | 0.003573 | 0.3321 | 16,763 | 468 | 113 | 35.818376 | 0.889693 | 0.050826 | 0 | 0.457516 | 0 | 0 | 0.069162 | 0.009489 | 0 | 0 | 0 | 0 | 0.006536 | 0 | null | null | 0.013072 | 0.035948 | null | null | 0.003268 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74e7abc6008593b06ec62962ab7c8bbb23cc66f3 | 1,378 | py | Python | tests/test_comment.py | muze-interviews/muze-lark-interview | e33d3f43644c8cd4352531c4a0eec53b2abfcb45 | [
"MIT"
] | null | null | null | tests/test_comment.py | muze-interviews/muze-lark-interview | e33d3f43644c8cd4352531c4a0eec53b2abfcb45 | [
"MIT"
] | 1 | 2020-10-06T18:21:25.000Z | 2020-10-06T18:21:25.000Z | tests/test_comment.py | muze-interviews/muze-lark-interview | e33d3f43644c8cd4352531c4a0eec53b2abfcb45 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import unittest
from lark.lark import Lark
def DynamicEarleyLark(grammar, **kwargs):
return Lark(grammar, lexer='dynamic', parser='earley', **kwargs)
class TestParserComments(unittest.TestCase):
def make_test_parser(self):
# Create a pars... | 29.319149 | 100 | 0.618287 | 157 | 1,378 | 5.261147 | 0.43949 | 0.060533 | 0.090799 | 0.163438 | 0.322034 | 0.288136 | 0.288136 | 0.106538 | 0.106538 | 0 | 0 | 0.008806 | 0.258345 | 1,378 | 46 | 101 | 29.956522 | 0.799413 | 0.207547 | 0 | 0.214286 | 0 | 0 | 0.111933 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.142857 | false | 0 | 0.142857 | 0.071429 | 0.392857 | 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 |
74ea8e7d8763c269d1abe73d2bb76f9a26b60525 | 396 | py | Python | catalog/bindings/csw/title_1.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/title_1.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/title_1.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
__NAMESPACE__ = "http://www.opengis.net/ows"
@dataclass
class Title1:
"""
Title of this resource, normally used for display to a human.
"""
class Meta:
name = "Title"
namespace = "http://www.opengis.net/ows"
value: str = field(
de... | 18 | 65 | 0.565657 | 42 | 396 | 5.238095 | 0.761905 | 0.118182 | 0.145455 | 0.209091 | 0.263636 | 0.263636 | 0 | 0 | 0 | 0 | 0 | 0.003663 | 0.310606 | 396 | 21 | 66 | 18.857143 | 0.802198 | 0.15404 | 0 | 0 | 0 | 0 | 0.203762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 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 |
74ec212874f27353cba1e9dc28dc0faa45da5485 | 1,945 | py | Python | openpnm/integrators/_scipy.py | lixuekai2001/OpenPNM | 9026f0fed427d37f4caf1a79e4a7684490d52cf6 | [
"MIT"
] | 2 | 2019-08-24T09:17:40.000Z | 2020-07-05T07:21:21.000Z | openpnm/integrators/_scipy.py | xu-kai-xu/OpenPNM | 61d5fc4729a0a29291cf6c53c07c4246e7a13714 | [
"MIT"
] | null | null | null | openpnm/integrators/_scipy.py | xu-kai-xu/OpenPNM | 61d5fc4729a0a29291cf6c53c07c4246e7a13714 | [
"MIT"
] | null | null | null | from scipy.integrate import solve_ivp
from openpnm.integrators import Integrator
from openpnm.algorithms._solution import TransientSolution
__all__ = ['ScipyRK45']
class ScipyRK45(Integrator):
"""Brief description of 'ScipyRK45'"""
def __init__(self, atol=1e-6, rtol=1e-6, verbose=False, linsolver=None):
... | 34.732143 | 76 | 0.600514 | 242 | 1,945 | 4.756198 | 0.466942 | 0.039096 | 0.047785 | 0.065161 | 0.140747 | 0.10947 | 0.10947 | 0.10947 | 0.057341 | 0.057341 | 0 | 0.015849 | 0.318766 | 1,945 | 55 | 77 | 35.363636 | 0.85283 | 0.493059 | 0 | 0 | 0 | 0 | 0.034351 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74ef4a7a7df0ad02852b74711cc87c70dcb36100 | 185 | py | Python | wk1_functions.py | RitRa/Programming-for-Data-Analysis | 242c9436978c9791586367b2599496f0414b3e04 | [
"Apache-2.0"
] | null | null | null | wk1_functions.py | RitRa/Programming-for-Data-Analysis | 242c9436978c9791586367b2599496f0414b3e04 | [
"Apache-2.0"
] | null | null | null | wk1_functions.py | RitRa/Programming-for-Data-Analysis | 242c9436978c9791586367b2599496f0414b3e04 | [
"Apache-2.0"
] | null | null | null | # Rita Raher 21/09/18 week 1
# function for the Greatest Common Divisor
def gcd(a, b):
while b > 0:
a, b = b, a % b
return(a)
print(gcd(50, 20))
print(gcd(22, 143)) | 20.555556 | 42 | 0.578378 | 35 | 185 | 3.057143 | 0.714286 | 0.056075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12782 | 0.281081 | 185 | 9 | 43 | 20.555556 | 0.676692 | 0.362162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.333333 | 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 |
74ef78c6ce2b5d6bcf8866ee81c3ec2f414c9427 | 10,624 | py | Python | splat/helpers/purgeUser.py | samskivert/splatd | 6d751733941c5a47bad290de0087e4f710e991e9 | [
"BSD-3-Clause"
] | null | null | null | splat/helpers/purgeUser.py | samskivert/splatd | 6d751733941c5a47bad290de0087e4f710e991e9 | [
"BSD-3-Clause"
] | null | null | null | splat/helpers/purgeUser.py | samskivert/splatd | 6d751733941c5a47bad290de0087e4f710e991e9 | [
"BSD-3-Clause"
] | null | null | null | # purgeUser.py vi:ts=4:sw=4:expandtab:
#
# LDAP User Purging Helper.
# Author:
# Nick Barkas <snb@threerings.net>
#
# Copyright (c) 2006 Three Rings Design, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following ... | 43.186992 | 161 | 0.609469 | 1,213 | 10,624 | 5.306678 | 0.309151 | 0.022215 | 0.054529 | 0.018642 | 0.173528 | 0.136865 | 0.115582 | 0.091658 | 0.054684 | 0.037595 | 0 | 0.004333 | 0.304876 | 10,624 | 245 | 162 | 43.363265 | 0.867299 | 0.28012 | 0 | 0.22293 | 0 | 0.006369 | 0.11981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057325 | 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 |
2d0044f7c17f5af59e67ca3922e46a7911ccddf9 | 597 | py | Python | backend/apps/projects/efficiency/urls.py | wuchaofan1654/tester | ff38d42e06cbdfa04882e8e95ada2dd93e6609f2 | [
"MIT"
] | null | null | null | backend/apps/projects/efficiency/urls.py | wuchaofan1654/tester | ff38d42e06cbdfa04882e8e95ada2dd93e6609f2 | [
"MIT"
] | null | null | null | backend/apps/projects/efficiency/urls.py | wuchaofan1654/tester | ff38d42e06cbdfa04882e8e95ada2dd93e6609f2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Create by sandy at 16:34 09/12/2021
Description: ToDo
"""
from django.urls import re_path
from rest_framework.routers import DefaultRouter
from apps.projects.efficiency.views import EfficiencyModelViewSet, ModuleModelViewSet
router = DefaultRouter()
router.register(r'efficiency', Efficienc... | 27.136364 | 85 | 0.760469 | 71 | 597 | 6.267606 | 0.605634 | 0.040449 | 0.067416 | 0.121348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024254 | 0.102178 | 597 | 21 | 86 | 28.428571 | 0.80597 | 0.127303 | 0 | 0 | 0 | 0 | 0.142578 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d0993f6f4263de822b6c1597855ed5cb39da8c0 | 3,092 | py | Python | scripts/vim/bin/generate_kinds.py | n13l/OpenAAA | 31f07d9b756e81d864acdf1da360633aa09e92f1 | [
"MIT"
] | 10 | 2015-05-06T09:15:54.000Z | 2020-07-08T14:23:17.000Z | scripts/vim/bin/generate_kinds.py | n13l/OpenAAA | 31f07d9b756e81d864acdf1da360633aa09e92f1 | [
"MIT"
] | null | null | null | scripts/vim/bin/generate_kinds.py | n13l/OpenAAA | 31f07d9b756e81d864acdf1da360633aa09e92f1 | [
"MIT"
] | 9 | 2016-05-27T17:20:46.000Z | 2019-08-19T00:23:17.000Z | #!/usr/bin/env python2
#-*- coding: utf-8 -*-
import re
import sys
import os.path
import clang.cindex
# you can use this dictionary to map some kinds to better
# textual representation than just the number
mapping = {
1 : 't' , # CXCursor_UnexposedDecl (A declaration whose specific kind is not
# e... | 35.136364 | 104 | 0.641656 | 421 | 3,092 | 4.615202 | 0.472684 | 0.014411 | 0.010808 | 0.005147 | 0.016469 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024855 | 0.219276 | 3,092 | 87 | 105 | 35.54023 | 0.780033 | 0.494179 | 0 | 0.0625 | 0 | 0 | 0.168304 | 0.018337 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d0a2e958ee96a30fa19005830b130e9fda545a4 | 4,301 | py | Python | slot/w/bow.py | qwewqa/dl | d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0 | [
"Apache-2.0"
] | null | null | null | slot/w/bow.py | qwewqa/dl | d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0 | [
"Apache-2.0"
] | null | null | null | slot/w/bow.py | qwewqa/dl | d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0 | [
"Apache-2.0"
] | null | null | null | from slot import WeaponBase
from slot.w import agito_buffs
class HDT1_Valkyries_Blaze(WeaponBase):
ele = ['flame']
wt = 'bow'
att = 734
s3 = {
"dmg" : 3*3.16 ,
"sp" : 6750 ,
"startup" : 0.1 ,
"recovery" : 2.73 ,
"hit" : 3 ,
... | 23.631868 | 54 | 0.466403 | 469 | 4,301 | 4.151386 | 0.202559 | 0.0868 | 0.053416 | 0.087314 | 0.471495 | 0.437596 | 0.328711 | 0.232152 | 0.232152 | 0.232152 | 0 | 0.08883 | 0.390142 | 4,301 | 182 | 55 | 23.631868 | 0.65345 | 0.057196 | 0 | 0.6625 | 0 | 0 | 0.105094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0125 | 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 |
2d0b4dccf9091dd763c93268525b8622fa9671bb | 10,237 | py | Python | automatic_design_program.py | joaocarvalhoopen/Design_Asymmetrical_Inverted_Schmitt_Trigger_Single_Supply_program | f001991f094710a57c9ffed4dc54993fef9b6edc | [
"MIT"
] | 1 | 2021-08-21T17:05:43.000Z | 2021-08-21T17:05:43.000Z | automatic_design_program.py | joaocarvalhoopen/Design_Asymmetrical_Inverted_Schmitt_Trigger_Single_Supply_program | f001991f094710a57c9ffed4dc54993fef9b6edc | [
"MIT"
] | null | null | null | automatic_design_program.py | joaocarvalhoopen/Design_Asymmetrical_Inverted_Schmitt_Trigger_Single_Supply_program | f001991f094710a57c9ffed4dc54993fef9b6edc | [
"MIT"
] | null | null | null | ##############################################################
# #
# Automatic design of an #
# Asymmetrical Inverted Schmitt-Trigger with Single Supply #
# for E24 resistors scale #
# ... | 47.836449 | 107 | 0.606721 | 1,283 | 10,237 | 4.465316 | 0.137958 | 0.106825 | 0.113458 | 0.069646 | 0.58265 | 0.50864 | 0.445977 | 0.380346 | 0.331821 | 0.316809 | 0 | 0.038456 | 0.286217 | 10,237 | 213 | 108 | 48.061033 | 0.745586 | 0.178861 | 0 | 0.152778 | 0 | 0.006944 | 0.162906 | 0.050955 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.006944 | 0 | 0.131944 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2d0eeafadcd30cc9db6f5b50f0a00c908fc18287 | 637 | py | Python | apps/network/tests/database/test_role.py | AmrMKayid/PyGrid | 695a041649f7cfab6acc7d1495e2a6132f65d529 | [
"Apache-2.0"
] | null | null | null | apps/network/tests/database/test_role.py | AmrMKayid/PyGrid | 695a041649f7cfab6acc7d1495e2a6132f65d529 | [
"Apache-2.0"
] | null | null | null | apps/network/tests/database/test_role.py | AmrMKayid/PyGrid | 695a041649f7cfab6acc7d1495e2a6132f65d529 | [
"Apache-2.0"
] | null | null | null | import pytest
from src.users.role import Role
from .presets.role import role_metrics
@pytest.mark.parametrize(
("name, can_edit_settings, can_create_users," "can_edit_roles, can_manage_roles"),
role_metrics,
)
def test_create_role_object(
name,
can_edit_settings,
can_create_users,
can_edit_ro... | 22.75 | 86 | 0.717425 | 86 | 637 | 4.883721 | 0.27907 | 0.133333 | 0.142857 | 0.171429 | 0.590476 | 0.47381 | 0.419048 | 0.280952 | 0.280952 | 0.280952 | 0 | 0 | 0.202512 | 637 | 27 | 87 | 23.592593 | 0.826772 | 0 | 0 | 0 | 0 | 0 | 0.11617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.166667 | 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 |
2d108020bc02955b67b83c220db63f246b3207ba | 1,765 | py | Python | app.py | JixunMoe/pi-cctv | bbb2ede3816363a4112ba871b593a47b32d490f9 | [
"MIT"
] | 2 | 2017-12-25T03:20:00.000Z | 2018-12-05T16:50:01.000Z | app.py | JixunMoe/pi-cctv | bbb2ede3816363a4112ba871b593a47b32d490f9 | [
"MIT"
] | null | null | null | app.py | JixunMoe/pi-cctv | bbb2ede3816363a4112ba871b593a47b32d490f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import time, os, io, picamera, threading
from flask import Flask, request, session, url_for, redirect, render_template, g, Response, send_file
# configuration
DATABASE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'minitwit.db')
DEBUG = False
SECRET_KEY = 'This is a very secrey k... | 21.790123 | 101 | 0.633428 | 253 | 1,765 | 4.229249 | 0.41502 | 0.045794 | 0.016822 | 0.026168 | 0.127103 | 0.127103 | 0.074766 | 0.074766 | 0.074766 | 0.074766 | 0 | 0.014461 | 0.216431 | 1,765 | 80 | 102 | 22.0625 | 0.759219 | 0.116147 | 0 | 0.163636 | 0 | 0 | 0.074026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0.054545 | 0.036364 | 0.054545 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2d1fcfbb9ac5f1191d6446adbce621d1b0737832 | 809 | py | Python | scraper/views.py | jazzify/newsify_back | ba3ce295aa37329bdfdd4a2d05cfe48de42713b0 | [
"BSD-3-Clause"
] | null | null | null | scraper/views.py | jazzify/newsify_back | ba3ce295aa37329bdfdd4a2d05cfe48de42713b0 | [
"BSD-3-Clause"
] | 21 | 2020-02-03T16:11:09.000Z | 2022-02-10T11:09:56.000Z | scraper/views.py | jazzify/newsify_back | ba3ce295aa37329bdfdd4a2d05cfe48de42713b0 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import viewsets, mixins
from rest_framework.response import Response
from scraper.models import Post
from scraper.serializers import PostSerializer
class PostViewSet(viewsets.GenericViewSet, mixins.RetrieveModelMixin, mixins.ListModelMixin):
queryset = Post.objects.all()
serializer_class ... | 36.772727 | 93 | 0.724351 | 100 | 809 | 5.66 | 0.46 | 0.127208 | 0.058304 | 0.068905 | 0.107774 | 0.077739 | 0 | 0 | 0 | 0 | 0 | 0.003063 | 0.192831 | 809 | 21 | 94 | 38.52381 | 0.863706 | 0 | 0 | 0 | 0 | 0 | 0.013597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 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 |
2d235f6fbaf7b71105157a52e345fbb79ec20144 | 18,417 | py | Python | abstractions.py | Koruption/CSV-Dataset-Generator | 134226c2982519e12cc24a68988d2c7156cba7ed | [
"MIT"
] | null | null | null | abstractions.py | Koruption/CSV-Dataset-Generator | 134226c2982519e12cc24a68988d2c7156cba7ed | [
"MIT"
] | null | null | null | abstractions.py | Koruption/CSV-Dataset-Generator | 134226c2982519e12cc24a68988d2c7156cba7ed | [
"MIT"
] | null | null | null | from random_username.generate import generate_username
from random_address import real_random_address
from typing import Any, Dict, List, Tuple
from prettytable import PrettyTable
from datetime import timedelta
from datetime import datetime
from json import load
import random
import names
import uuid
import csv
def r... | 37.585714 | 179 | 0.608677 | 2,274 | 18,417 | 4.683817 | 0.100704 | 0.108159 | 0.056333 | 0.052389 | 0.503427 | 0.431039 | 0.399493 | 0.375176 | 0.367853 | 0.355084 | 0 | 0.010251 | 0.284954 | 18,417 | 489 | 180 | 37.662577 | 0.798542 | 0.042678 | 0 | 0.424242 | 1 | 0 | 0.068055 | 0.005396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129477 | false | 0 | 0.030303 | 0.019284 | 0.360882 | 0.013774 | 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 |
2d28f85fb08a694f9cb09f467f66fe6b0012ba89 | 442 | py | Python | Desafios/Desafio 015 (Aluguel de carros).py | Kimberly07-Ernane/Pythondesafios | d5bdf9ad412f73c66d0fda558740923925a78a7b | [
"MIT"
] | null | null | null | Desafios/Desafio 015 (Aluguel de carros).py | Kimberly07-Ernane/Pythondesafios | d5bdf9ad412f73c66d0fda558740923925a78a7b | [
"MIT"
] | null | null | null | Desafios/Desafio 015 (Aluguel de carros).py | Kimberly07-Ernane/Pythondesafios | d5bdf9ad412f73c66d0fda558740923925a78a7b | [
"MIT"
] | null | null | null | #Desafio15
# Escreva um programa que pergunte a quantidade de Km percorridos por um carro alugado
#e a quantidade de dias pelos quais ele foi alugado
#Calcule o preço a pagar, sabendo que o carro custa R$60 por dia e R$0,15 por Km rodado.
dias=int(input('A quantidade de dias que você alugou o carro: '))
km=float(inpu... | 44.2 | 88 | 0.730769 | 84 | 442 | 3.845238 | 0.52381 | 0.136223 | 0.160991 | 0.092879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035422 | 0.169683 | 442 | 9 | 89 | 49.111111 | 0.844687 | 0.522624 | 0 | 0 | 0 | 0 | 0.541063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
2d307c396bb03508172365b0153ec4bd029c3154 | 291 | py | Python | NetworkX/Example_2_Drawing.py | Farhad-UPC/Zero-Touch_Network_Slicing | bcd3938e30853a3a669250dc0d7f4547381c0255 | [
"MIT"
] | null | null | null | NetworkX/Example_2_Drawing.py | Farhad-UPC/Zero-Touch_Network_Slicing | bcd3938e30853a3a669250dc0d7f4547381c0255 | [
"MIT"
] | null | null | null | NetworkX/Example_2_Drawing.py | Farhad-UPC/Zero-Touch_Network_Slicing | bcd3938e30853a3a669250dc0d7f4547381c0255 | [
"MIT"
] | null | null | null | import networkx as nx
import matplotlib.pyplot as plt
G=nx.cubical_graph() #Return the 3-regular Platonic Cubical graph.
plt.subplot(121) #subplot(nrows, ncols, index)
nx.draw(G) # default spring_layout
plt.subplot(122)
nx.draw(G, pos=nx.circular_layout(G), nodecolor='r', edge_color='b')
| 29.1 | 68 | 0.762887 | 49 | 291 | 4.44898 | 0.653061 | 0.110092 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02682 | 0.103093 | 291 | 9 | 69 | 32.333333 | 0.808429 | 0.323024 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
2d38a2f69395fb4f0ca7dc55477af8756aafa7f8 | 495 | py | Python | AbstractSearchEngine/utils/stemmer.py | canuse/arXiv_explorer | 6e8e4a5dbe5cd19e773ba245ed4addbf5e608684 | [
"MIT"
] | null | null | null | AbstractSearchEngine/utils/stemmer.py | canuse/arXiv_explorer | 6e8e4a5dbe5cd19e773ba245ed4addbf5e608684 | [
"MIT"
] | 13 | 2020-12-23T14:07:48.000Z | 2021-02-08T13:53:49.000Z | AbstractSearchEngine/utils/stemmer.py | canuse/arXiv_explorer | 6e8e4a5dbe5cd19e773ba245ed4addbf5e608684 | [
"MIT"
] | null | null | null | from Stemmer import Stemmer
from AbstractSearchEngine.db.StemHistory import update_stem_history, query_origin_word
from functools import lru_cache
stemmer = Stemmer('porter')
def stem(term, record=False):
"""
stem word
"""
stemmed_word = stemmer.stemWord(term)
if record:
update_stem_histo... | 20.625 | 86 | 0.725253 | 62 | 495 | 5.548387 | 0.435484 | 0.09593 | 0.098837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009975 | 0.189899 | 495 | 23 | 87 | 21.521739 | 0.84788 | 0.042424 | 0 | 0 | 0 | 0 | 0.013544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2d3a1d72d1eb505628d630848e2fbe961f484923 | 3,056 | py | Python | api.py | ignaloidas/savetheplanet-backend | b6edc2231d6ca41452f85a59f8e6fc171bbfecbb | [
"MIT"
] | null | null | null | api.py | ignaloidas/savetheplanet-backend | b6edc2231d6ca41452f85a59f8e6fc171bbfecbb | [
"MIT"
] | 1 | 2021-02-08T23:10:34.000Z | 2021-02-08T23:10:34.000Z | api.py | ignaloidas/savetheplanet-backend | b6edc2231d6ca41452f85a59f8e6fc171bbfecbb | [
"MIT"
] | null | null | null | from datetime import datetime
import pytz
from firebase_admin import auth
from flask import Blueprint, abort, jsonify, request
from flask_login import login_user
from app import db
from models import User, FirebaseSubscription
from utils import generate_random_string, require_authentication
api = Blueprint("api", __... | 22.80597 | 76 | 0.675393 | 407 | 3,056 | 4.938575 | 0.233415 | 0.043781 | 0.023881 | 0.027861 | 0.321393 | 0.286567 | 0.226866 | 0.19602 | 0.19602 | 0.19602 | 0 | 0.021434 | 0.206152 | 3,056 | 133 | 77 | 22.977444 | 0.80709 | 0 | 0 | 0.333333 | 0 | 0 | 0.104385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.133333 | 0.088889 | 0.011111 | 0.222222 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2d3cbf7dea24af91e9a6e94a8adfc9fd349a1c0f | 545 | py | Python | libs/http.py | BreakUnrealGod/TanTan | 043454a76ee27d61e7d9aede7818f9127e34aaf2 | [
"MIT"
] | 1 | 2019-07-05T07:22:57.000Z | 2019-07-05T07:22:57.000Z | libs/http.py | BreakUnrealGod/TanTan | 043454a76ee27d61e7d9aede7818f9127e34aaf2 | [
"MIT"
] | 10 | 2019-12-04T23:38:04.000Z | 2022-02-10T09:53:59.000Z | swiper/libs/http.py | lijiaqipy/test1 | ab628a794ab67e153b929c819c876c5a676ab068 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.http import JsonResponse
from common import errors
def render_json(code=errors.OK, data=None):
"""
自定义 json 输出
:param code:
:param data:
:return:
"""
result = {
'code': code
}
if data:
result['data'] = data
if set... | 19.464286 | 80 | 0.618349 | 65 | 545 | 5.030769 | 0.507692 | 0.110092 | 0.183486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002475 | 0.258716 | 545 | 27 | 81 | 20.185185 | 0.806931 | 0.084404 | 0 | 0 | 0 | 0 | 0.080679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
741c9e7628e1a5f4f777198b1772fad67348f341 | 855 | py | Python | SDKs/Aspose.Imaging-Cloud-SDK-for-Python/asposeimagingcloud/models/JpegProperties.py | naeem244/Aspose.Imaging-for-Cloud | 20585a2163f34624d7a46641092444747360f3e3 | [
"MIT"
] | null | null | null | SDKs/Aspose.Imaging-Cloud-SDK-for-Python/asposeimagingcloud/models/JpegProperties.py | naeem244/Aspose.Imaging-for-Cloud | 20585a2163f34624d7a46641092444747360f3e3 | [
"MIT"
] | null | null | null | SDKs/Aspose.Imaging-Cloud-SDK-for-Python/asposeimagingcloud/models/JpegProperties.py | naeem244/Aspose.Imaging-for-Cloud | 20585a2163f34624d7a46641092444747360f3e3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
class JpegProperties(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.... | 30.535714 | 102 | 0.594152 | 85 | 855 | 5.929412 | 0.517647 | 0.065476 | 0.039683 | 0.047619 | 0.150794 | 0.150794 | 0.150794 | 0.150794 | 0.150794 | 0.150794 | 0 | 0 | 0.305263 | 855 | 27 | 103 | 31.666667 | 0.848485 | 0.392982 | 0 | 0 | 1 | 0 | 0.248394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
741cf31605b9c34f222dee24dda7ce27a0b14f3c | 3,683 | py | Python | ffa/webapp/api.py | kschweizer/fresnofieldarchers | c044ff5bea66289124d23c4955454749029319e4 | [
"MIT"
] | null | null | null | ffa/webapp/api.py | kschweizer/fresnofieldarchers | c044ff5bea66289124d23c4955454749029319e4 | [
"MIT"
] | 7 | 2020-06-21T03:53:27.000Z | 2022-02-14T22:53:42.000Z | ffa/webapp/api.py | kschweizer/fresnofieldarchers | c044ff5bea66289124d23c4955454749029319e4 | [
"MIT"
] | null | null | null | from rest_framework import permissions, viewsets
from rest_framework.permissions import BasePermission, IsAdminUser, SAFE_METHODS
from django.http import HttpResponse
from django.core import serializers
from webapp.models import Blogpost, Image, Album, Event, About, PinnedEvent
from knox.auth import TokenAuthentication... | 37.969072 | 134 | 0.731469 | 392 | 3,683 | 6.716837 | 0.260204 | 0.03646 | 0.091151 | 0.113938 | 0.44398 | 0.418914 | 0.27801 | 0.27801 | 0.248386 | 0.248386 | 0 | 0.00363 | 0.177301 | 3,683 | 97 | 135 | 37.969072 | 0.865347 | 0.029867 | 0 | 0.295775 | 0 | 0 | 0.038946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0 | 0.112676 | 0.014085 | 0.732394 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
741e2ecf2b4d778dbe75c5402fbdb98affab7fb5 | 3,304 | py | Python | data/transforms/build.py | moranxiachong/PersonReID-VAAL | 86948ef70793455487cd61709486653827e51bda | [
"Apache-2.0"
] | 2 | 2022-01-03T07:34:49.000Z | 2022-01-19T08:42:56.000Z | data/transforms/build.py | moranxiachong/PersonReID-VAAL | 86948ef70793455487cd61709486653827e51bda | [
"Apache-2.0"
] | null | null | null | data/transforms/build.py | moranxiachong/PersonReID-VAAL | 86948ef70793455487cd61709486653827e51bda | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
"""
@author: liaoxingyu
@contact: liaoxingyu2@jd.com
"""
import torchvision.transforms as T
import random
import numpy as np
import PIL
from .transforms import RandomErasing
class AddGaussianNoise(object):
def __call__(self, img):
std = random.uniform(0, 1.0)
if std > 0.5:
... | 31.169811 | 89 | 0.577785 | 395 | 3,304 | 4.721519 | 0.225316 | 0.132976 | 0.064343 | 0.0563 | 0.722252 | 0.712064 | 0.697051 | 0.697051 | 0.639142 | 0.597855 | 0 | 0.01374 | 0.295097 | 3,304 | 105 | 90 | 31.466667 | 0.787033 | 0.060835 | 0 | 0.690476 | 0 | 0 | 0.035934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.059524 | 0 | 0.178571 | 0.071429 | 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 |
7427249b7f462a33fbf5f41e580865e48e4713e4 | 694 | py | Python | reroute.py | ItsCinnabar/Novoserve-Auto-Reroute | 83b3e67a8b003e97b3f8f67e4f9a96d8f61c7d4d | [
"MIT"
] | 1 | 2020-07-13T11:16:51.000Z | 2020-07-13T11:16:51.000Z | reroute.py | ItsCinnabar/Novoserve-Auto-Reroute | 83b3e67a8b003e97b3f8f67e4f9a96d8f61c7d4d | [
"MIT"
] | null | null | null | reroute.py | ItsCinnabar/Novoserve-Auto-Reroute | 83b3e67a8b003e97b3f8f67e4f9a96d8f61c7d4d | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
import pyderman
#Install chrome driver
driver_path = pyderman.install(browser=pyderman.chrome,overwrite=True,verbose=False)
options=Options()
options.headless=True
with webdriver.Chrome(executable_path=driver_path, option... | 28.916667 | 84 | 0.697406 | 90 | 694 | 5.322222 | 0.6 | 0.087683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009124 | 0.210375 | 694 | 23 | 85 | 30.173913 | 0.864964 | 0.030259 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.157895 | 0.210526 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
74294a44c0aacb926a827f622334dc597bf7f7e3 | 1,910 | py | Python | signal_filter/filter_mpi_version_no_mpi.py | pycroscopy/distUSID | 2054896710e395d13d03319d35eb81085534b85f | [
"MIT"
] | 1 | 2021-03-21T07:01:24.000Z | 2021-03-21T07:01:24.000Z | signal_filter/filter_mpi_version_no_mpi.py | pycroscopy/mpiUSID | 2054896710e395d13d03319d35eb81085534b85f | [
"MIT"
] | null | null | null | signal_filter/filter_mpi_version_no_mpi.py | pycroscopy/mpiUSID | 2054896710e395d13d03319d35eb81085534b85f | [
"MIT"
] | 1 | 2019-06-07T16:45:44.000Z | 2019-06-07T16:45:44.000Z | import h5py
from signal_filter.fft import LowPassFilter
from signal_filter.mpi_signal_filter import SignalFilter
h5_path = 'giv_raw.h5'
h5_f = h5py.File(h5_path, mode='r+')
h5_grp = h5_f['Measurement_000/Channel_000']
h5_main = h5_grp['Raw_Data']
samp_rate = h5_grp.attrs['IO_samp_rate_[Hz]']
num_spectral_pts = h5_ma... | 34.107143 | 126 | 0.740838 | 317 | 1,910 | 4.100946 | 0.419558 | 0.027692 | 0.027692 | 0.041538 | 0.09 | 0.073846 | 0.041538 | 0 | 0 | 0 | 0 | 0.033919 | 0.135602 | 1,910 | 55 | 127 | 34.727273 | 0.753483 | 0.009424 | 0 | 0 | 0 | 0 | 0.16341 | 0.079041 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.153846 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
742a80b84a39a27a20c28a691d84d3b219de70b4 | 2,282 | py | Python | semester/migrations/0001_initial.py | aashutoshrathi/Student-Lifecycle-Management | c8ad67db3bde989de6d612454ace57084da272c0 | [
"MIT"
] | 9 | 2018-03-01T16:01:08.000Z | 2021-02-21T16:01:29.000Z | semester/migrations/0001_initial.py | aashutoshrathi/Student-Lifecycle-Management | c8ad67db3bde989de6d612454ace57084da272c0 | [
"MIT"
] | 2 | 2018-03-01T18:16:11.000Z | 2018-03-03T16:12:24.000Z | semester/migrations/0001_initial.py | aashutoshrathi/Student-Lifecycle-Management | c8ad67db3bde989de6d612454ace57084da272c0 | [
"MIT"
] | 1 | 2019-12-04T18:20:48.000Z | 2019-12-04T18:20:48.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-10-08 18:57
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | 43.056604 | 318 | 0.563103 | 254 | 2,282 | 4.948819 | 0.366142 | 0.064439 | 0.063644 | 0.076372 | 0.251392 | 0.229912 | 0.170247 | 0.170247 | 0.170247 | 0.170247 | 0 | 0.017512 | 0.274321 | 2,282 | 52 | 319 | 43.884615 | 0.741546 | 0.029798 | 0 | 0.295455 | 1 | 0 | 0.163275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.159091 | 0 | 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 |
742c77d63238d231c5dd63146f52cac04703efba | 772 | py | Python | jsonmsgpack.py | JuncoJet/python-performance-tuning | 16be280e1f42034c4c7623f40fb9c8f86ca7dfaf | [
"BSD-2-Clause"
] | 3 | 2018-02-24T08:15:55.000Z | 2020-01-15T02:04:11.000Z | jsonmsgpack.py | JuncoJet/python-performance-tuning | 16be280e1f42034c4c7623f40fb9c8f86ca7dfaf | [
"BSD-2-Clause"
] | null | null | null | jsonmsgpack.py | JuncoJet/python-performance-tuning | 16be280e1f42034c4c7623f40fb9c8f86ca7dfaf | [
"BSD-2-Clause"
] | null | null | null | import timeit,json
import msgpack
def test1():
global dic,data1
data1=json.dumps(dic)
return data1
def test2():
global dic,data2
data2=msgpack.packb(dic)
return data2
def test3():
global data1
return json.loads(data1)
def test4():
global data2
return msgpack.unpackb(data2)
t... | 23.393939 | 82 | 0.686528 | 117 | 772 | 4.393162 | 0.358974 | 0.085603 | 0.108949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08209 | 0.132124 | 772 | 32 | 83 | 24.125 | 0.685075 | 0 | 0 | 0 | 0 | 0 | 0.218912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | 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 |
742c93781865c88484550f40711fbb73076d5d74 | 237 | py | Python | ProgsByDataset/ArxivMAG/convert_mallet_to_lda.py | ashwath92/MastersThesis | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | [
"MIT"
] | 5 | 2020-11-05T07:11:54.000Z | 2021-08-04T21:37:28.000Z | ProgsByDataset/ArxivMAG/convert_mallet_to_lda.py | ashwath92/MastersThesis | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | [
"MIT"
] | null | null | null | ProgsByDataset/ArxivMAG/convert_mallet_to_lda.py | ashwath92/MastersThesis | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | [
"MIT"
] | 4 | 2020-11-05T06:04:38.000Z | 2021-08-02T16:25:42.000Z | import gensim
ldamallet = LdaMallet.load('/home/ashwath/Programs/ArxivCS/LDA/ldamallet_arxiv.model')
lda = gensim.models.wrappers.ldamallet.malletmodel2ldamodel(ldamallet, gamma_threshold=0.001, iterations=50)
lda.save('lda_arxiv.model') | 59.25 | 108 | 0.827004 | 31 | 237 | 6.225806 | 0.677419 | 0.103627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030837 | 0.042194 | 237 | 4 | 109 | 59.25 | 0.819383 | 0 | 0 | 0 | 0 | 0 | 0.298319 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
742dd883cff675ce3c9800e2f1bb3cc11eea9bd2 | 396 | py | Python | salda_engine/personal/models.py | landges/salda | 1245ded53e9680ed4f7f85139e5347dd8c894289 | [
"MIT"
] | null | null | null | salda_engine/personal/models.py | landges/salda | 1245ded53e9680ed4f7f85139e5347dd8c894289 | [
"MIT"
] | null | null | null | salda_engine/personal/models.py | landges/salda | 1245ded53e9680ed4f7f85139e5347dd8c894289 | [
"MIT"
] | null | null | null | from django.db import models
import datetime
from django.contrib.auth.models import User
# Create your models here.
class Review(models.Model):
user = models.ForeignKey(User,blank=True,null=True,on_delete=models.CASCADE)
mark = models.IntegerField()
text = models.TextField()
created = models.DateTimeField(auto_now... | 30.461538 | 77 | 0.782828 | 57 | 396 | 5.315789 | 0.631579 | 0.066007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108586 | 396 | 13 | 78 | 30.461538 | 0.858357 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.1 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
743deb7024276f8510b6ee7db9e2898c933a43e6 | 929 | py | Python | cifar10/selfsup/transforms.py | phymhan/essl | 23a4bfb1ef1e298cea7a2a392097a1097863d8ac | [
"MIT"
] | null | null | null | cifar10/selfsup/transforms.py | phymhan/essl | 23a4bfb1ef1e298cea7a2a392097a1097863d8ac | [
"MIT"
] | null | null | null | cifar10/selfsup/transforms.py | phymhan/essl | 23a4bfb1ef1e298cea7a2a392097a1097863d8ac | [
"MIT"
] | null | null | null | import torchvision.transforms as T
def aug_transform(crop, base_transform, cfg, extra_t=[]):
""" augmentation transform generated from config """
return T.Compose(
[
T.RandomApply(
[T.ColorJitter(cfg.cj0, cfg.cj1, cfg.cj2, cfg.cj3)], p=cfg.cj_p
),
T.... | 27.323529 | 79 | 0.546825 | 106 | 929 | 4.59434 | 0.518868 | 0.057495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.337998 | 929 | 33 | 80 | 28.151515 | 0.77561 | 0.089343 | 0 | 0.08 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.04 | 0.04 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
743ff14456903adc96896606d3ed742317daab9b | 2,451 | py | Python | config/__init__.py | MCC-WH/Token | eadc301f2df9e1851633be1b63c273659af0da49 | [
"MIT"
] | 30 | 2021-12-12T03:34:01.000Z | 2022-03-05T23:42:00.000Z | config/__init__.py | MCC-WH/Token | eadc301f2df9e1851633be1b63c273659af0da49 | [
"MIT"
] | 2 | 2021-12-29T14:55:05.000Z | 2022-01-23T06:31:07.000Z | config/__init__.py | MCC-WH/Token | eadc301f2df9e1851633be1b63c273659af0da49 | [
"MIT"
] | 2 | 2021-12-15T06:51:59.000Z | 2022-01-08T06:06:55.000Z | import argparse
from torch import cuda
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument('--directory', metavar='EXPORT_DIR', help='destination where trained network should be saved')
parser.add_argument('--training-dataset', default='GLDv2', help='training dataset: (default: GLDv2)')... | 72.088235 | 239 | 0.709098 | 354 | 2,451 | 4.805085 | 0.378531 | 0.126984 | 0.239859 | 0.044092 | 0.266902 | 0.151675 | 0.151675 | 0.042328 | 0 | 0 | 0 | 0.021356 | 0.121175 | 2,451 | 33 | 240 | 74.272727 | 0.768338 | 0 | 0 | 0 | 0 | 0.033333 | 0.372501 | 0.008568 | 0.033333 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
744ecdc7843866fdf0f6d1b16abfb941700435ca | 9,163 | py | Python | src/outpost/django/campusonline/api.py | medunigraz/outpost.django.campusonline | 06776bce7556e438c1e00a96aaa9271a7aac8fe4 | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/campusonline/api.py | medunigraz/outpost.django.campusonline | 06776bce7556e438c1e00a96aaa9271a7aac8fe4 | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/campusonline/api.py | medunigraz/outpost.django.campusonline | 06776bce7556e438c1e00a96aaa9271a7aac8fe4 | [
"BSD-2-Clause"
] | null | null | null | from django.utils import timezone
from django_filters.rest_framework import DjangoFilterBackend
from drf_haystack.viewsets import HaystackViewSet
from rest_flex_fields.views import FlexFieldsMixin
from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.viewsets import ReadOnlyModelViewSet
f... | 30.34106 | 87 | 0.750955 | 795 | 9,163 | 8.363522 | 0.213836 | 0.049632 | 0.062566 | 0.056399 | 0.433449 | 0.347872 | 0.190705 | 0.110393 | 0.073996 | 0.073996 | 0 | 0 | 0.165885 | 9,163 | 301 | 88 | 30.44186 | 0.869946 | 0.09462 | 0 | 0.297753 | 0 | 0 | 0.023881 | 0.002736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039326 | false | 0 | 0.05618 | 0.016854 | 0.691011 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7450d45c4b35740ce2fd6834643b1ce0067c7672 | 10,970 | py | Python | fly_plot_lib/animate_matrix.py | ROB7-StayHumble/multi_tracker | 1c56650f2af00b84a0cd0f95392727026eae12ce | [
"MIT"
] | null | null | null | fly_plot_lib/animate_matrix.py | ROB7-StayHumble/multi_tracker | 1c56650f2af00b84a0cd0f95392727026eae12ce | [
"MIT"
] | null | null | null | fly_plot_lib/animate_matrix.py | ROB7-StayHumble/multi_tracker | 1c56650f2af00b84a0cd0f95392727026eae12ce | [
"MIT"
] | null | null | null | import numpy as np
import cv2
import matplotlib
import matplotlib.pyplot as plt
import time
NAN = np.nan
def get_indices(x, y, xmesh, ymesh, radius=1, colors=None):
# pull out non NAN numbers only
x = x[np.isfinite(x)]
y = y[np.isfinite(y)]
ix = [np.argmin( np.abs( xmesh-xval ) ) for xval in x]
iy... | 36.812081 | 261 | 0.555515 | 1,475 | 10,970 | 3.959322 | 0.120678 | 0.032363 | 0.037842 | 0.049486 | 0.718836 | 0.697774 | 0.666096 | 0.625685 | 0.608904 | 0.596233 | 0 | 0.021609 | 0.316591 | 10,970 | 297 | 262 | 36.936027 | 0.75737 | 0.051869 | 0 | 0.534653 | 0 | 0 | 0.012888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024752 | null | null | 0.039604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7458ee783c856dfa5f5929c121abd5f7ba0fabb5 | 2,556 | py | Python | aclients/err_msg.py | tinybees/aclients | d00306e6f418456f2a656141d62f0b4504b46259 | [
"MIT"
] | 9 | 2018-12-25T08:35:42.000Z | 2021-06-04T07:11:38.000Z | aclients/err_msg.py | lpcheng1208/aclients | 27acb0552619cfeccbb5a3869d14a0dcdd4749bc | [
"MIT"
] | 3 | 2019-08-15T08:50:51.000Z | 2020-07-17T13:48:01.000Z | eclients/err_msg.py | tinybees/eclients | 365723d9a4ed2c709c16d5ad90f2a443940edb82 | [
"MIT"
] | 4 | 2019-08-15T08:49:08.000Z | 2019-11-18T14:14:45.000Z | #!/usr/bin/env python3
# coding=utf-8
"""
@author: guoyanfeng
@software: PyCharm
@time: 18-12-25 下午2:42
可配置消息模块
"""
__all__ = ("mysql_msg", "mongo_msg", "http_msg", "schema_msg")
# mysql 从1到100
mysql_msg = {
1: {"msg_code": 1, "msg_zh": "MySQL插入数据失败.", "msg_en": "MySQL insert data failed.",
"description"... | 43.322034 | 111 | 0.638106 | 287 | 2,556 | 5.484321 | 0.369338 | 0.066709 | 0.14676 | 0.034308 | 0.111817 | 0.03939 | 0 | 0 | 0 | 0 | 0 | 0.044434 | 0.181142 | 2,556 | 58 | 112 | 44.068966 | 0.707597 | 0.07277 | 0 | 0 | 0 | 0 | 0.621553 | 0.045397 | 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 |
745b9915daa66118fc9cee7ef88f60d0ef6b2e90 | 1,690 | py | Python | zonarPy/ac_basic.py | SvenGastauer/zonarPy | f6488f92a672d1761ef26c1931938491b967f144 | [
"MIT"
] | null | null | null | zonarPy/ac_basic.py | SvenGastauer/zonarPy | f6488f92a672d1761ef26c1931938491b967f144 | [
"MIT"
] | null | null | null | zonarPy/ac_basic.py | SvenGastauer/zonarPy | f6488f92a672d1761ef26c1931938491b967f144 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 12:48:05 2020
@author: sven
"""
import numpy as np
def nearfield(f,c,theta):
"""
Compute the nearfield
Parameters
----------
f : numeric
Transducer Frequency in kHz [kHz].
c : numeric
Ambient sound speed [m/s].
theta : numeric
3dB angle or beam width in ... | 19.651163 | 83 | 0.614793 | 303 | 1,690 | 3.409241 | 0.306931 | 0.011617 | 0.033882 | 0.03485 | 0.419167 | 0.352372 | 0.325266 | 0.325266 | 0.325266 | 0.325266 | 0 | 0.111852 | 0.201183 | 1,690 | 86 | 84 | 19.651163 | 0.653333 | 0.447337 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0.083333 | 0.458333 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
745e588e440fd6e5e8fbfd847e8a9566d0428613 | 1,205 | py | Python | api/v1/viewsets/session/assets.py | blockomat2100/vulnman | 835ff3aae1168d8e2fa5556279bc86efd2e46472 | [
"MIT"
] | null | null | null | api/v1/viewsets/session/assets.py | blockomat2100/vulnman | 835ff3aae1168d8e2fa5556279bc86efd2e46472 | [
"MIT"
] | 23 | 2021-12-01T10:00:38.000Z | 2021-12-11T11:43:13.000Z | api/v1/viewsets/session/assets.py | blockomat2100/vulnman | 835ff3aae1168d8e2fa5556279bc86efd2e46472 | [
"MIT"
] | null | null | null | from rest_framework import mixins
from apps.assets import models
from api.v1.generics import ProjectSessionViewSet
from api.v1.serializers import assets as serializers
class HostViewSet(mixins.ListModelMixin, mixins.RetrieveModelMixin, ProjectSessionViewSet):
serializer_class = serializers.HostSerializer
quer... | 41.551724 | 101 | 0.821577 | 112 | 1,205 | 8.6875 | 0.348214 | 0.08222 | 0.106886 | 0.180884 | 0.611511 | 0.611511 | 0.611511 | 0.611511 | 0.181912 | 0 | 0 | 0.001854 | 0.104564 | 1,205 | 28 | 102 | 43.035714 | 0.899907 | 0 | 0 | 0.2 | 0 | 0 | 0.06971 | 0.06971 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 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 |
74621cfd82da71312a6734096a8549d4d6ca5a56 | 9,380 | py | Python | nucleus/iam/reset.py | 1x-eng/PROTON | 2f27352f7eb9b46642325d800fcdb98ba5c99596 | [
"BSD-3-Clause"
] | 31 | 2018-09-28T05:00:02.000Z | 2021-11-09T11:06:57.000Z | nucleus/iam/reset.py | PruthviKumarBK/PROTON | 2f27352f7eb9b46642325d800fcdb98ba5c99596 | [
"BSD-3-Clause"
] | 23 | 2019-05-17T08:48:07.000Z | 2020-01-20T22:34:28.000Z | nucleus/iam/reset.py | 1x-eng/PROTON | 2f27352f7eb9b46642325d800fcdb98ba5c99596 | [
"BSD-3-Clause"
] | 7 | 2018-09-28T16:57:35.000Z | 2019-11-23T07:36:41.000Z | #
# Copyright (c) 2018, Pruthvi Kumar All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this list of conditions and the follo... | 52.696629 | 120 | 0.507356 | 843 | 9,380 | 5.437722 | 0.313167 | 0.019634 | 0.027923 | 0.033595 | 0.235384 | 0.160558 | 0.138089 | 0.123691 | 0.123691 | 0.123691 | 0 | 0.005335 | 0.420469 | 9,380 | 177 | 121 | 52.99435 | 0.837932 | 0.15661 | 0 | 0.30597 | 0 | 0 | 0.193839 | 0.012931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037313 | false | 0.156716 | 0.067164 | 0 | 0.171642 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
746e3a563e9b35bea22f246aa3114bb517f2d6f0 | 3,858 | py | Python | tests/test_models.py | dimdamop/single-neuron | fa649bcd2c7cc68b46c87e63e3c5869f772fecdf | [
"MIT"
] | null | null | null | tests/test_models.py | dimdamop/single-neuron | fa649bcd2c7cc68b46c87e63e3c5869f772fecdf | [
"MIT"
] | 2 | 2019-02-21T19:16:02.000Z | 2019-02-21T20:12:33.000Z | tests/test_models.py | dimdamop/single-neuron | fa649bcd2c7cc68b46c87e63e3c5869f772fecdf | [
"MIT"
] | null | null | null | # Author: Dimitrios Damopoulos
# MIT license (see LICENCE.txt in the top-level folder)
import unittest
import numpy as np
from numpy import random
from numpy import linalg as LA
from sklearn.linear_model import LinearRegression, LogisticRegression
from single_neuron import models as models
from single_neuron import... | 29.676923 | 81 | 0.61042 | 531 | 3,858 | 4.216573 | 0.346516 | 0.025011 | 0.024565 | 0.033497 | 0.298347 | 0.269763 | 0.219741 | 0.191157 | 0.154533 | 0.125056 | 0 | 0.021542 | 0.314152 | 3,858 | 129 | 82 | 29.906977 | 0.824641 | 0.242872 | 0 | 0.246575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136986 | false | 0.109589 | 0.09589 | 0 | 0.287671 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7470f671a4669b48d998f4e87a43c124c7f04765 | 720 | py | Python | exploits/sword/sessionregeneration.py | PinkRoccade-Local-Government-OSS/PinkWave | ebbcf71989317f5560f7f7770cb701e6c06a4ac9 | [
"Apache-2.0"
] | 1 | 2017-11-18T13:34:38.000Z | 2017-11-18T13:34:38.000Z | exploits/sword/sessionregeneration.py | PinkRoccade-Local-Government-OSS/PinkWave | ebbcf71989317f5560f7f7770cb701e6c06a4ac9 | [
"Apache-2.0"
] | 1 | 2021-06-01T22:02:12.000Z | 2021-06-01T22:02:12.000Z | exploits/sword/sessionregeneration.py | PinkRoccade-Local-Government-OSS/PinkWave | ebbcf71989317f5560f7f7770cb701e6c06a4ac9 | [
"Apache-2.0"
] | 1 | 2022-01-25T23:01:24.000Z | 2022-01-25T23:01:24.000Z | """
Logs into webapplication and verifies that session id is changed to prevent session fixation.
* Valid login required
"""
__author__ = "sword"
import sys
from os.path import dirname,abspath
# Importing PinkWave extensions
sys.path.append(dirname(dirname(dirname(abspath(__file__)))))
from extensions.Util import Ut... | 26.666667 | 93 | 0.745833 | 91 | 720 | 5.813187 | 0.615385 | 0.05293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008143 | 0.147222 | 720 | 26 | 94 | 27.692308 | 0.85342 | 0.205556 | 0 | 0 | 0 | 0 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 1 |
747459457ad7561f2041500f824e1a0d23f7e974 | 797 | py | Python | py/py_0405_a_rectangular_tiling.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0405_a_rectangular_tiling.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0405_a_rectangular_tiling.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 405: A rectangular tiling
# https://projecteuler.net/problem=405
#
# We wish to tile a rectangle whose length is twice its width. Let T(0) be the
# tiling consisting of a single rectangle. For n > 0, let T(n) be obtained
# from T(n-1) by replacing all tiles in the following man... | 30.653846 | 79 | 0.685069 | 142 | 797 | 3.774648 | 0.605634 | 0.014925 | 0.018657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089172 | 0.212045 | 797 | 25 | 80 | 31.88 | 0.764331 | 0.776662 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
747f73cfb0ed20f215accbdd0e5f31478d3aaef4 | 208 | py | Python | sibyl/util/DownloadProgressBar.py | fahminlb33/sibyl_eeg | dadb8e52d25ba51a66870d0296cc3e1af0ec0f37 | [
"MIT"
] | 1 | 2021-11-16T06:37:09.000Z | 2021-11-16T06:37:09.000Z | sibyl/util/DownloadProgressBar.py | fahminlb33/sibyl_eeg | dadb8e52d25ba51a66870d0296cc3e1af0ec0f37 | [
"MIT"
] | null | null | null | sibyl/util/DownloadProgressBar.py | fahminlb33/sibyl_eeg | dadb8e52d25ba51a66870d0296cc3e1af0ec0f37 | [
"MIT"
] | null | null | null | from tqdm import tqdm
class DownloadProgressBar(tqdm):
def update_to(self, b=1, bsize=1, tsize=None):
if tsize is not None:
self.total = tsize
self.update(b * bsize - self.n)
| 26 | 50 | 0.625 | 31 | 208 | 4.16129 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.274038 | 208 | 7 | 51 | 29.714286 | 0.84106 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7480f20e0bba775ab02a9b178bb4e49f993c62a3 | 1,106 | py | Python | mylights.py | brettonw/mywizlight | d619bf3398c1f3dc3c3e0cef7be9aeea0ac197ca | [
"MIT"
] | null | null | null | mylights.py | brettonw/mywizlight | d619bf3398c1f3dc3c3e0cef7be9aeea0ac197ca | [
"MIT"
] | null | null | null | mylights.py | brettonw/mywizlight | d619bf3398c1f3dc3c3e0cef7be9aeea0ac197ca | [
"MIT"
] | null | null | null | import sys;
from pywizlight.bulb import PilotBuilder, PilotParser, wizlight
lightIpsByName = {
"office": "192.168.1.217",
"nook": "192.168.1.230",
"nook": "192.168.1.230",
"nook": "192.168.1.230",
"nook": "192.168.1.230",
"nook": "192.168.1.230",
"nook": "192.168.1.230",
"no... | 29.105263 | 63 | 0.563291 | 143 | 1,106 | 4.356643 | 0.328671 | 0.11557 | 0.134831 | 0.194222 | 0.247191 | 0.247191 | 0.247191 | 0.247191 | 0.247191 | 0.247191 | 0 | 0.148418 | 0.256781 | 1,106 | 37 | 64 | 29.891892 | 0.609489 | 0.059675 | 0 | 0.3125 | 0 | 0 | 0.253616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.25 | 0.09375 | 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 |
74838c524214d481b51552b4f33dcebad6786309 | 4,336 | py | Python | python/scripts/dev/m3dev_tuning.py | ahoarau/m3meka | 237739f0266ce60aaa3013b0d2b22fc07b6374c4 | [
"MIT"
] | 1 | 2015-06-19T12:14:18.000Z | 2015-06-19T12:14:18.000Z | python/scripts/dev/m3dev_tuning.py | semeyerz/m3meka | 6e5d6b73ad3ebdd8429497923e601eae65d8b2fe | [
"MIT"
] | null | null | null | python/scripts/dev/m3dev_tuning.py | semeyerz/m3meka | 6e5d6b73ad3ebdd8429497923e601eae65d8b2fe | [
"MIT"
] | 2 | 2015-11-27T09:25:54.000Z | 2021-08-16T16:29:22.000Z | #!/usr/bin/python
import m3.toolbox as m3t
import m3.actuator_ec as m3aec
import m3.actuator as m3a
import m3.ctrl_simple as m3cs
import m3.pwr as m3power
import argparse
class M3Tuning:
def __init__(self):
self.comps = {'act': {'name': 'm3actuator_', 'type':m3a.M3Actuator, 'child_name':'act_ec_component' }, ... | 40.148148 | 110 | 0.709871 | 637 | 4,336 | 4.616954 | 0.204082 | 0.045903 | 0.028562 | 0.034682 | 0.463108 | 0.417885 | 0.388303 | 0.33118 | 0.252295 | 0.188371 | 0 | 0.014392 | 0.134686 | 4,336 | 108 | 111 | 40.148148 | 0.769456 | 0.14322 | 0 | 0.253165 | 0 | 0 | 0.149757 | 0.005666 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075949 | null | null | 0.126582 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
748726ee062af2037227d0d4f7616429616f4f03 | 340 | py | Python | tests/test_domains.py | Marak/hook.io-sdk-python | 722b04eb0832ef712d5dcd491899996088e1aa8b | [
"Unlicense"
] | 1 | 2021-06-15T11:52:44.000Z | 2021-06-15T11:52:44.000Z | tests/test_domains.py | Marak/hook.io-sdk-python | 722b04eb0832ef712d5dcd491899996088e1aa8b | [
"Unlicense"
] | null | null | null | tests/test_domains.py | Marak/hook.io-sdk-python | 722b04eb0832ef712d5dcd491899996088e1aa8b | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
def test_domains(sdk):
res = sdk.domains.all(anonymous=True)
assert 'error' in res
assert res['error'] is True
assert res['type'] == 'unauthorized-role-access'
assert res['role'] == 'domain::find'
assert 'domain::find' in res['message']
res = sdk.domains.all()
asser... | 30.909091 | 52 | 0.638235 | 48 | 340 | 4.5 | 0.5 | 0.125 | 0.12037 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194118 | 340 | 10 | 53 | 34 | 0.788321 | 0.058824 | 0 | 0 | 0 | 0 | 0.22884 | 0.075235 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
749487a4625cb5b4773a7acb6b38472c8ed58183 | 1,050 | py | Python | nonce_source.py | jake-billings/research-blockchain | 7b167d9572a169566b9cf21f1a0bdc18086b877f | [
"MIT"
] | 5 | 2017-07-20T19:46:42.000Z | 2020-02-13T16:03:09.000Z | nonce_source.py | jake-billings/research-blockchain | 7b167d9572a169566b9cf21f1a0bdc18086b877f | [
"MIT"
] | null | null | null | nonce_source.py | jake-billings/research-blockchain | 7b167d9572a169566b9cf21f1a0bdc18086b877f | [
"MIT"
] | null | null | null | import os
import random
sys_random = random.SystemRandom()
from PIL import Image
import images
import cStringIO
class NonceSource:
def __init__(self, root):
self.interesting_filenames = os.listdir(root)
self.interesting_images = []
for name in self.interesting_filenames:
se... | 27.631579 | 79 | 0.64 | 124 | 1,050 | 5.217742 | 0.435484 | 0.11592 | 0.097372 | 0.049459 | 0.080371 | 0.080371 | 0.080371 | 0 | 0 | 0 | 0 | 0.016582 | 0.253333 | 1,050 | 38 | 80 | 27.631579 | 0.808673 | 0 | 0 | 0 | 0 | 0 | 0.026641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
749680e14ad6e6343bdf3a3133d4e35409c6aa0a | 1,249 | py | Python | pressiotools/io/array_read.py | Pressio/pressio-hyperreduction | 3beba2532ccac64262fca81fbc35a9f0ce223620 | [
"BSD-3-Clause"
] | null | null | null | pressiotools/io/array_read.py | Pressio/pressio-hyperreduction | 3beba2532ccac64262fca81fbc35a9f0ce223620 | [
"BSD-3-Clause"
] | 19 | 2020-03-17T15:10:54.000Z | 2021-03-23T17:46:27.000Z | pressiotools/io/array_read.py | Pressio/pressio-tools | 3beba2532ccac64262fca81fbc35a9f0ce223620 | [
"BSD-3-Clause"
] | null | null | null |
import numpy as np
import math
from pressiotools import linalg as la
def read_binary_array(fileName, nCols):
# read a numpy array from a binary file "fileName"
if nCols==1:
return np.fromfile(fileName)
else:
array = np.fromfile(fileName)
nRows = int(len(array) / float(nCols))
return array.reshap... | 30.463415 | 79 | 0.728583 | 187 | 1,249 | 4.791444 | 0.379679 | 0.072545 | 0.100446 | 0.051339 | 0.165179 | 0.082589 | 0.082589 | 0.082589 | 0 | 0 | 0 | 0.005797 | 0.171337 | 1,249 | 40 | 80 | 31.225 | 0.859903 | 0.253002 | 0 | 0.185185 | 0 | 0 | 0.019459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.111111 | 0.037037 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
749fe6056fe652f9d7a484f88b63b4fbaa9203ef | 1,152 | py | Python | dragoncord-bot/test.py | Dragoncord-for-discord/dragoncord | 0face867644b4b52e9814a69b325080842ac1c28 | [
"MIT"
] | null | null | null | dragoncord-bot/test.py | Dragoncord-for-discord/dragoncord | 0face867644b4b52e9814a69b325080842ac1c28 | [
"MIT"
] | null | null | null | dragoncord-bot/test.py | Dragoncord-for-discord/dragoncord | 0face867644b4b52e9814a69b325080842ac1c28 | [
"MIT"
] | null | null | null | @bot.command()
async def help1(ctx):
cpage = discord.Embed(
title = 'Команды бота | Версия бота: 2.5',
description = f"say - Повторяет что Вы говорите.\nban - Банит участника.\nmute - Мутит участника.\ninfobot - Тут инфы о боте и создателя.\nuser - Информация о участника.\navatar - Аватарка у уч... | 52.363636 | 587 | 0.612847 | 124 | 1,152 | 5.693548 | 0.693548 | 0.05949 | 0.056657 | 0.070822 | 0.223796 | 0.223796 | 0.223796 | 0.223796 | 0.223796 | 0.223796 | 0 | 0.008475 | 0.282986 | 1,152 | 22 | 588 | 52.363636 | 0.846247 | 0 | 0 | 0.363636 | 0 | 0.045455 | 0.560071 | 0.045053 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
74a62dc8d5b2a1ec17bd6906584e2cd6a717e1ca | 2,014 | py | Python | WeatherStation/rtcds1307.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | 3 | 2017-09-03T17:17:44.000Z | 2017-12-10T12:26:46.000Z | WeatherStation/rtcds1307.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | null | null | null | WeatherStation/rtcds1307.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | 2 | 2017-10-01T01:10:55.000Z | 2018-07-15T19:49:29.000Z | # RTC clock with DS1307
#
# 2017-0225 various tests, since micropython 1.8.7 changes RTC interface
# Sources:
# ESP8266 - connection to RTC, I2C-connection with NodeMCU
# MicroPython class RTC: https://micropython.org/resources/docs/en/latest/wipy/library/machine.RTC.html
# class RTC is only for WiPy board, but als... | 30.515152 | 103 | 0.697617 | 322 | 2,014 | 4.344721 | 0.437888 | 0.025733 | 0.025733 | 0.040029 | 0.075768 | 0.075768 | 0.075768 | 0.075768 | 0.075768 | 0.075768 | 0 | 0.047305 | 0.170804 | 2,014 | 65 | 104 | 30.984615 | 0.790419 | 0.688183 | 0 | 0.35 | 0 | 0 | 0.367347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.55 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7766a1f0a102b28ee53d1459509099140006e4b7 | 171 | py | Python | hello_world_mujoco_base.py | BolunDai0216/PyMuJoCoBase | 3d9250feacd6129e44d99342663616aaf06c5d43 | [
"MIT"
] | 5 | 2022-03-23T03:15:25.000Z | 2022-03-30T06:25:42.000Z | hello_world_mujoco_base.py | BolunDai0216/PyMuJoCoBase | 3d9250feacd6129e44d99342663616aaf06c5d43 | [
"MIT"
] | null | null | null | hello_world_mujoco_base.py | BolunDai0216/PyMuJoCoBase | 3d9250feacd6129e44d99342663616aaf06c5d43 | [
"MIT"
] | null | null | null | from mujoco_base import MuJoCoBase
def main():
xml_path = "./xml/ball.xml"
mjb = MuJoCoBase(xml_path)
mjb.simulate()
if __name__ == "__main__":
main()
| 14.25 | 34 | 0.643275 | 22 | 171 | 4.5 | 0.636364 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 171 | 11 | 35 | 15.545455 | 0.744361 | 0 | 0 | 0 | 0 | 0 | 0.128655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
776ae95803e086150bb7101b7e7b86d5c3f509a7 | 3,516 | py | Python | calvinextras/calvinsys/web/pushbullet/Pushbullet.py | gabrielcercel/calvin-base | c0315f100643230d65aed1745e1c22df3e7a7c2c | [
"Apache-2.0"
] | 334 | 2015-06-04T15:14:28.000Z | 2022-02-09T11:14:17.000Z | calvinextras/calvinsys/web/pushbullet/Pushbullet.py | gabrielcercel/calvin-base | c0315f100643230d65aed1745e1c22df3e7a7c2c | [
"Apache-2.0"
] | 89 | 2015-06-13T19:15:35.000Z | 2019-12-03T19:23:20.000Z | calvinextras/calvinsys/web/pushbullet/Pushbullet.py | gabrielcercel/calvin-base | c0315f100643230d65aed1745e1c22df3e7a7c2c | [
"Apache-2.0"
] | 112 | 2015-06-06T19:16:54.000Z | 2020-10-19T01:27:55.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2017 Ericsson AB
#
# 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 ... | 31.963636 | 91 | 0.596416 | 406 | 3,516 | 5.054187 | 0.37931 | 0.023392 | 0.012671 | 0.015595 | 0.078947 | 0.078947 | 0.078947 | 0.078947 | 0.045809 | 0.045809 | 0 | 0.003653 | 0.299204 | 3,516 | 109 | 92 | 32.256881 | 0.82914 | 0.178612 | 0 | 0.164384 | 0 | 0 | 0.22085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054795 | 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 |
776b40bc6a47bf9021770a693933afd252b7c30d | 3,653 | py | Python | openpyscad/util.py | Samoxiaki/openpyscad | 2e20c8f764e1ed27fcdec17e8b5d32bccdf21421 | [
"MIT"
] | null | null | null | openpyscad/util.py | Samoxiaki/openpyscad | 2e20c8f764e1ed27fcdec17e8b5d32bccdf21421 | [
"MIT"
] | null | null | null | openpyscad/util.py | Samoxiaki/openpyscad | 2e20c8f764e1ed27fcdec17e8b5d32bccdf21421 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from .base import BaseObject
from .boolean import Union
from .shapes_3d import *
from .transformations import *
__all__ = ['Workspace', 'PolyhedronBuilder']
class Workspace(BaseObject):
def __init__(self, position=[0,0,0], rotation=[0,0,0], color=Non... | 25.193103 | 82 | 0.685464 | 485 | 3,653 | 4.940206 | 0.220619 | 0.062604 | 0.09015 | 0.022955 | 0.279215 | 0.216611 | 0.147746 | 0.069282 | 0.069282 | 0.069282 | 0 | 0.009754 | 0.186148 | 3,653 | 144 | 83 | 25.368056 | 0.796165 | 0.005749 | 0 | 0.214286 | 0 | 0 | 0.071721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05102 | 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 |
7771a1348669a9e92cdc0a4da02fa9b6e5832464 | 1,088 | py | Python | src/commands/actions/download_entity.py | jherrerotardon/spies | ec855b3c1bd207c8ee2beb829e446fa575354c59 | [
"Apache-2.0"
] | null | null | null | src/commands/actions/download_entity.py | jherrerotardon/spies | ec855b3c1bd207c8ee2beb829e446fa575354c59 | [
"Apache-2.0"
] | null | null | null | src/commands/actions/download_entity.py | jherrerotardon/spies | ec855b3c1bd207c8ee2beb829e446fa575354c59 | [
"Apache-2.0"
] | null | null | null | from pyframework.commands.action import Action
from pyframework.exceptions.custom_exceptions import ArgumentException
from ...triggers.entity_info_trigger import EntityInfoTrigger, AbstractTrigger
class DownloadEntity(Action):
"""Concrete action to download entities (restaurants) from place. """
_name = 'do... | 28.631579 | 78 | 0.661765 | 119 | 1,088 | 5.798319 | 0.420168 | 0.072464 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233456 | 1,088 | 37 | 79 | 29.405405 | 0.827338 | 0.056985 | 0 | 0 | 0 | 0 | 0.118822 | 0.02734 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 0.045455 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7773f5e7b4e7e699e5baeacd7fe432d0ed8c4ee1 | 3,150 | py | Python | birdseye/actions.py | emmair/BirdsEye | 3ca1814b8f007388cfabf7ec928af2316a395e1a | [
"Apache-2.0"
] | null | null | null | birdseye/actions.py | emmair/BirdsEye | 3ca1814b8f007388cfabf7ec928af2316a395e1a | [
"Apache-2.0"
] | null | null | null | birdseye/actions.py | emmair/BirdsEye | 3ca1814b8f007388cfabf7ec928af2316a395e1a | [
"Apache-2.0"
] | null | null | null | import random
import itertools
import numpy as np
class Actions(object):
"""Common base class for action methods
Parameters
----------
action_space : tuple
Set of tuples defining combinations of actions
for all dimensions
"""
def __init__(self, action_space... | 30 | 82 | 0.629524 | 372 | 3,150 | 5.102151 | 0.258065 | 0.075342 | 0.047418 | 0.033193 | 0.101686 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004365 | 0.272698 | 3,150 | 104 | 83 | 30.288462 | 0.824094 | 0.256825 | 0 | 0.04 | 0 | 0 | 0.070935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.06 | 0.04 | 0.48 | 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 |
7776dbbd73cbd0943d79ffead78dc86cfbb669e2 | 10,254 | py | Python | home.admin/BlitzTUI/blitztui/ui/qcode.py | PatrickScheich/raspiblitz | b7ed559c2ef566ff496e563d6f2ffca14bef1352 | [
"MIT"
] | 1,908 | 2018-07-17T19:44:19.000Z | 2022-03-31T15:58:27.000Z | home.admin/BlitzTUI/blitztui/ui/qcode.py | PatrickScheich/raspiblitz | b7ed559c2ef566ff496e563d6f2ffca14bef1352 | [
"MIT"
] | 2,553 | 2018-07-17T14:19:30.000Z | 2022-03-30T14:08:48.000Z | home.admin/BlitzTUI/blitztui/ui/qcode.py | PatrickScheich/raspiblitz | b7ed559c2ef566ff496e563d6f2ffca14bef1352 | [
"MIT"
] | 514 | 2018-07-18T08:50:10.000Z | 2022-03-31T20:50:04.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'designer/qcode.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_DialogShowQrCode(object):
def setupUi(self, DialogShowQrCode... | 49.298077 | 109 | 0.71143 | 1,075 | 10,254 | 6.652093 | 0.170233 | 0.024612 | 0.018459 | 0.022374 | 0.398126 | 0.347364 | 0.326388 | 0.308628 | 0.301916 | 0.301916 | 0 | 0.016041 | 0.179247 | 10,254 | 207 | 110 | 49.536232 | 0.83365 | 0.018334 | 0 | 0.248705 | 1 | 0 | 0.071883 | 0.016007 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010363 | false | 0 | 0.015544 | 0 | 0.031088 | 0 | 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 |
77913827f476c2415778df67be6429373470d937 | 1,882 | py | Python | server/opendp_apps/communication/email_client.py | opendifferentialprivacy/opendp-ux | 2669602d0a65f6a83d9e9916cbf753c38fd64c94 | [
"MIT"
] | 6 | 2021-05-25T18:50:58.000Z | 2022-03-23T19:52:15.000Z | server/opendp_apps/communication/email_client.py | opendp/dpcreator | 6ba3c58ecdcd81ca1f4533a14ce7604eccf6a646 | [
"MIT"
] | 298 | 2021-05-19T17:34:09.000Z | 2022-03-29T18:45:22.000Z | server/opendp_apps/communication/email_client.py | opendp/dpcreator | 6ba3c58ecdcd81ca1f4533a14ce7604eccf6a646 | [
"MIT"
] | 2 | 2020-10-16T22:03:24.000Z | 2020-11-15T22:45:19.000Z | import os
from sendgrid import sendgrid, Email, Content, Mail, To
from django.conf import settings
class SendGridAPIError(Exception):
pass
class EmailClient(object):
def __init__(self, from_email=None, api_key=None):
self.from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
... | 37.64 | 108 | 0.63762 | 244 | 1,882 | 4.696721 | 0.352459 | 0.073298 | 0.073298 | 0.039267 | 0.148342 | 0.09075 | 0.068063 | 0.068063 | 0.068063 | 0 | 0 | 0.00212 | 0.24814 | 1,882 | 49 | 109 | 38.408163 | 0.807774 | 0.178533 | 0 | 0 | 0 | 0 | 0.148798 | 0.033138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.09375 | 0 | 0.25 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7797ba9b8e78f7c518aa5d04ea99606c72938a01 | 1,146 | py | Python | project/forms/admin_unit_member.py | DanielGrams/gsevp | e94034f7b64de76f38754b56455e83092378261f | [
"MIT"
] | 1 | 2021-06-01T14:49:18.000Z | 2021-06-01T14:49:18.000Z | project/forms/admin_unit_member.py | DanielGrams/gsevp | e94034f7b64de76f38754b56455e83092378261f | [
"MIT"
] | 286 | 2020-12-04T14:13:00.000Z | 2022-03-09T19:05:16.000Z | project/forms/admin_unit_member.py | DanielGrams/gsevpt | a92f71694388e227e65ed1b24446246ee688d00e | [
"MIT"
] | null | null | null | from flask_babelex import lazy_gettext
from flask_wtf import FlaskForm
from wtforms import SubmitField
from wtforms.fields.html5 import EmailField
from wtforms.validators import DataRequired
from project.forms.widgets import MultiCheckboxField
class InviteAdminUnitMemberForm(FlaskForm):
email = EmailField(lazy_g... | 33.705882 | 74 | 0.787958 | 111 | 1,146 | 8.009009 | 0.315315 | 0.148481 | 0.148481 | 0.125984 | 0.43757 | 0.43757 | 0.340832 | 0.281215 | 0.150731 | 0 | 0 | 0.000982 | 0.111693 | 1,146 | 33 | 75 | 34.727273 | 0.872299 | 0 | 0 | 0.227273 | 0 | 0 | 0.075916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
779e55c69d785772eafd0cec0710fe5368686a32 | 8,831 | py | Python | terraform/environments/core-logging/lambda/index.py | cherrymu/modernisation-platform | 3da1d1c101be9eb78b6e3d52030ca488c410a728 | [
"MIT"
] | 1 | 2022-02-28T23:04:23.000Z | 2022-02-28T23:04:23.000Z | terraform/environments/core-logging/lambda/index.py | cherrymu/modernisation-platform | 3da1d1c101be9eb78b6e3d52030ca488c410a728 | [
"MIT"
] | null | null | null | terraform/environments/core-logging/lambda/index.py | cherrymu/modernisation-platform | 3da1d1c101be9eb78b6e3d52030ca488c410a728 | [
"MIT"
] | null | null | null | import boto3
import base64
from botocore.exceptions import ClientError
import json
athena_client = boto3.client('athena', region_name='eu-west-2')
sts_client = boto3.client('sts')
ssm_client = boto3.client('ssm', region_name='eu-west-2')
query_location='s3://athena-cloudtrail-query'
athena_db="mod_cloudtrail_logs"
at... | 38.064655 | 141 | 0.560072 | 829 | 8,831 | 5.851628 | 0.296743 | 0.034014 | 0.0235 | 0.024737 | 0.274376 | 0.250876 | 0.232736 | 0.210678 | 0.154813 | 0.110493 | 0 | 0.004951 | 0.359642 | 8,831 | 231 | 142 | 38.229437 | 0.852697 | 0.148454 | 0 | 0.257485 | 0 | 0.011976 | 0.491727 | 0.113157 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023952 | null | null | 0.077844 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77a437b4efc543e2b5c4e20a3d3efe05cd1c6275 | 1,549 | py | Python | wagtail_simple_gallery/migrations/0001_initial.py | MorezMartin/wagtail-simple-gallery | b00ce687b060306149db3f69c0dad4a865cb0789 | [
"MIT"
] | 41 | 2017-02-03T03:30:36.000Z | 2022-03-23T08:09:59.000Z | wagtail_simple_gallery/migrations/0001_initial.py | MorezMartin/wagtail-simple-gallery | b00ce687b060306149db3f69c0dad4a865cb0789 | [
"MIT"
] | 11 | 2016-10-07T10:52:50.000Z | 2020-03-30T16:49:09.000Z | wagtail_simple_gallery/migrations/0001_initial.py | MorezMartin/wagtail-simple-gallery | b00ce687b060306149db3f69c0dad4a865cb0789 | [
"MIT"
] | 13 | 2016-11-25T16:56:38.000Z | 2021-08-19T06:39:09.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-10-07 12:48
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagtailcore',... | 44.257143 | 219 | 0.651388 | 183 | 1,549 | 5.377049 | 0.535519 | 0.04065 | 0.042683 | 0.067073 | 0.119919 | 0.069106 | 0.069106 | 0 | 0 | 0 | 0 | 0.020833 | 0.225307 | 1,549 | 34 | 220 | 45.558824 | 0.799167 | 0.043254 | 0 | 0 | 1 | 0 | 0.273834 | 0.014875 | 0.038462 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77a76fe7f7594c6bce1fc59b806dcefb50f45392 | 334 | py | Python | pysynphot/test/utils.py | axru5812/pysynphot | 527cb4ce55355c78ace5130a2fd8ca81a31ac1e6 | [
"BSD-3-Clause"
] | null | null | null | pysynphot/test/utils.py | axru5812/pysynphot | 527cb4ce55355c78ace5130a2fd8ca81a31ac1e6 | [
"BSD-3-Clause"
] | null | null | null | pysynphot/test/utils.py | axru5812/pysynphot | 527cb4ce55355c78ace5130a2fd8ca81a31ac1e6 | [
"BSD-3-Clause"
] | null | null | null | import pytest
# This is to mark tests that require access to CDBS
try:
use_cdbs = pytest.mark.skipif(not pytest.config.getoption('--cdbs'),
reason='need --cdbs option to run')
except AttributeError: # Not using pytest
use_cdbs = pytest.mark.skipif(True, reason='need --cdbs op... | 37.111111 | 75 | 0.655689 | 46 | 334 | 4.717391 | 0.543478 | 0.064516 | 0.119816 | 0.156682 | 0.442396 | 0.230415 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242515 | 334 | 8 | 76 | 41.75 | 0.857708 | 0.197605 | 0 | 0 | 0 | 0 | 0.211321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77abb4c5dec4c0ab63eba51ffa28cf8463f678ca | 1,314 | py | Python | bootimgpack/pack_bootimg.py | hchyhchyxh/tools | 1df75df832b607128b7e80e2e1a256f973315446 | [
"Apache-2.0"
] | 45 | 2015-07-01T04:42:58.000Z | 2021-08-20T18:01:45.000Z | bootimgpack/pack_bootimg.py | hchyhchyxh/tools | 1df75df832b607128b7e80e2e1a256f973315446 | [
"Apache-2.0"
] | 17 | 2015-07-08T06:41:18.000Z | 2018-06-23T08:03:56.000Z | bootimgpack/pack_bootimg.py | hchyhchyxh/tools | 1df75df832b607128b7e80e2e1a256f973315446 | [
"Apache-2.0"
] | 100 | 2015-07-01T08:20:49.000Z | 2022-02-11T16:56:35.000Z | #!/usr/bin/python
# Copyright 2015 duanqz
#
# 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... | 25.269231 | 98 | 0.682648 | 195 | 1,314 | 4.435897 | 0.553846 | 0.069364 | 0.034682 | 0.036994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016865 | 0.232877 | 1,314 | 51 | 99 | 25.764706 | 0.84127 | 0.451294 | 0 | 0 | 0 | 0 | 0.057026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77acb2d013368fa2708ba0833ada03c1ca7d93b3 | 553 | py | Python | algorithms/kth-smallest-element-in-a-bst.py | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 41 | 2018-07-03T07:35:30.000Z | 2021-09-25T09:33:43.000Z | algorithms/kth-smallest-element-in-a-bst.py | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 2 | 2018-07-23T10:50:11.000Z | 2020-10-06T07:34:29.000Z | algorithms/kth-smallest-element-in-a-bst.py | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 7 | 2018-07-06T13:43:18.000Z | 2020-10-06T02:29:57.000Z | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def traversal(self, root):
if root:
yield from self.traversal(root.left)
yield root.val
yield... | 24.043478 | 49 | 0.531646 | 66 | 553 | 4.393939 | 0.469697 | 0.134483 | 0.175862 | 0.151724 | 0.17931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002833 | 0.361664 | 553 | 22 | 50 | 25.136364 | 0.818697 | 0.35443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.