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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1b0d0f7270ae5a49b20324d6bac9fd80de40cf21 | 1,226 | py | Python | src/magplan/xmd/tests/test_utils.py | f1nnix/magplan | 1bda6b53c6e96129e6634bff786b3052d04b0cef | [
"Unlicense"
] | 21 | 2018-12-14T09:08:11.000Z | 2022-01-28T14:33:24.000Z | src/magplan/xmd/tests/test_utils.py | f1nnix/magplan | 1bda6b53c6e96129e6634bff786b3052d04b0cef | [
"Unlicense"
] | 20 | 2019-01-11T20:40:01.000Z | 2022-01-30T16:01:38.000Z | src/magplan/xmd/tests/test_utils.py | f1nnix/magplan | 1bda6b53c6e96129e6634bff786b3052d04b0cef | [
"Unlicense"
] | 5 | 2019-02-08T01:21:51.000Z | 2021-11-25T17:43:04.000Z | import io
from unittest import TestCase
import pytest
from django.core.files import File
from django_dynamic_fixture import G
from magplan.models import Attachment
from magplan.xmd.utils import get_attachment_original_filename
@pytest.mark.django_db
class Test_get_attachment_original_filename(TestCase):
def set... | 33.135135 | 100 | 0.707993 | 149 | 1,226 | 5.630872 | 0.42953 | 0.128725 | 0.185936 | 0.13826 | 0.278903 | 0.221692 | 0.11919 | 0 | 0 | 0 | 0 | 0.017653 | 0.214519 | 1,226 | 36 | 101 | 34.055556 | 0.853583 | 0.079119 | 0 | 0.074074 | 0 | 0 | 0.109236 | 0.071936 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.111111 | false | 0 | 0.259259 | 0 | 0.407407 | 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 |
1b134054808512cec966fe38a018749a27aa30c8 | 1,437 | py | Python | jiant/tasks/lib/mbe.py | zlucia/jiant | 24aa148b6c617c82a635cd2a526dc4be5129e330 | [
"MIT"
] | null | null | null | jiant/tasks/lib/mbe.py | zlucia/jiant | 24aa148b6c617c82a635cd2a526dc4be5129e330 | [
"MIT"
] | null | null | null | jiant/tasks/lib/mbe.py | zlucia/jiant | 24aa148b6c617c82a635cd2a526dc4be5129e330 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from jiant.tasks.lib.templates.shared import labels_to_bimap
from jiant.tasks.lib.templates import multiple_choice as mc_template
from jiant.utils.python.io import read_jsonl
@dataclass
class Example(mc_template.Example):
@property
def task(self):
return MbeTask
@dataclass
class... | 24.775862 | 83 | 0.727905 | 194 | 1,437 | 5.159794 | 0.365979 | 0.05994 | 0.027972 | 0.033966 | 0.15984 | 0.107892 | 0.107892 | 0.107892 | 0.107892 | 0.107892 | 0 | 0.000821 | 0.152401 | 1,437 | 58 | 84 | 24.775862 | 0.821018 | 0 | 0 | 0.145833 | 0 | 0 | 0.050765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.0625 | 0.083333 | 0.0625 | 0.479167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b1be2d213dcec1a57e7aabc55b73fed9c642944 | 4,784 | py | Python | Scenarii/S_Bargaining.py | lesyk/Evolife | 8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a | [
"MIT"
] | null | null | null | Scenarii/S_Bargaining.py | lesyk/Evolife | 8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a | [
"MIT"
] | null | null | null | Scenarii/S_Bargaining.py | lesyk/Evolife | 8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a | [
"MIT"
] | null | null | null | ##############################################################################
# EVOLIFE www.dessalles.fr/Evolife Jean-Louis Dessalles #
# Telecom ParisTech 2014 www.dessalles.fr #
##############################################################################
... | 36.8 | 129 | 0.569607 | 547 | 4,784 | 4.897623 | 0.413163 | 0.053378 | 0.053751 | 0.034341 | 0.167227 | 0.120194 | 0.097051 | 0.068682 | 0.039567 | 0.039567 | 0 | 0.013797 | 0.212166 | 4,784 | 129 | 130 | 37.085271 | 0.697002 | 0.166179 | 0 | 0.151515 | 0 | 0 | 0.104334 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121212 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b1ea87d3f6b885e2e8969541f99adfc341e78c0 | 503 | py | Python | src/ResNeXt/filterPath.py | willyspinner/High-Performance-Face-Recognition | c5caad61be97fd20f9c47a727278ff938dc5cc8f | [
"MIT"
] | 300 | 2019-01-28T07:37:53.000Z | 2022-03-09T02:17:28.000Z | src/ResNeXt/filterPath.py | willyspinner/High-Performance-Face-Recognition | c5caad61be97fd20f9c47a727278ff938dc5cc8f | [
"MIT"
] | 15 | 2019-04-22T14:23:01.000Z | 2021-11-24T09:52:32.000Z | src/ResNeXt/filterPath.py | willyspinner/High-Performance-Face-Recognition | c5caad61be97fd20f9c47a727278ff938dc5cc8f | [
"MIT"
] | 67 | 2019-01-29T05:42:09.000Z | 2021-12-28T11:09:44.000Z | # /Volumes/usb1/ms2/
#
# /media/usbstick/MS_challenge1_train_data
#
#
def writeToFile(content):
with open('MStrainFloat2.lst', 'a') as f:
f.write(content)
with open('MStrainFloat.lst', 'r') as f:
lines = f.readlines()
counter = 0
content = ""
for line in lines:
line = line.replace("/Volumes/usb1/ms2/", "/media/... | 20.12 | 87 | 0.675944 | 69 | 503 | 4.84058 | 0.521739 | 0.065868 | 0.083832 | 0.113772 | 0.287425 | 0.287425 | 0.287425 | 0.287425 | 0.287425 | 0 | 0 | 0.030516 | 0.153082 | 503 | 24 | 88 | 20.958333 | 0.753521 | 0.117296 | 0 | 0.125 | 0 | 0 | 0.232877 | 0.093607 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b2697174f5d2dc5ca43b4d1d3656b250a65909a | 6,514 | py | Python | web/libraries/StoryMapJS/s3analysis/s3analysis.py | cainaru/d8-digital-stlawu | ad60dae2b9ce2bd51a6b7a96173c7139149dad2f | [
"MIT"
] | null | null | null | web/libraries/StoryMapJS/s3analysis/s3analysis.py | cainaru/d8-digital-stlawu | ad60dae2b9ce2bd51a6b7a96173c7139149dad2f | [
"MIT"
] | 4 | 2020-03-31T18:38:08.000Z | 2021-04-30T21:08:46.000Z | web/libraries/StoryMapJS/s3analysis/s3analysis.py | cainaru/d8-digital-stlawu | ad60dae2b9ce2bd51a6b7a96173c7139149dad2f | [
"MIT"
] | null | null | null | import importlib
import os
import sys
try:
import unicodecsv as csv
except ImportError:
print "warning: unicodecsv not found. Please install it"
import csv
from urlparse import urlparse
import json
settings_module = os.environ.setdefault('FLASK_SETTINGS_MODULE', 'core.settings.loc') # other StoryMap code ex... | 37.011364 | 136 | 0.610071 | 891 | 6,514 | 4.309764 | 0.280584 | 0.044531 | 0.03724 | 0.0125 | 0.095573 | 0.060417 | 0.060417 | 0.015104 | 0.015104 | 0 | 0 | 0.007998 | 0.270648 | 6,514 | 175 | 137 | 37.222857 | 0.800253 | 0.06724 | 0 | 0.155556 | 0 | 0 | 0.179632 | 0.017663 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007407 | 0.096296 | null | null | 0.051852 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1b4132a4baf2057e36f2ecc28e51f495bb745ea5 | 904 | py | Python | test.py | pibara-utopian/pycarvpath | 0c6f11888e1ee945714caf9a8c0d58759790b241 | [
"BSD-2-Clause"
] | null | null | null | test.py | pibara-utopian/pycarvpath | 0c6f11888e1ee945714caf9a8c0d58759790b241 | [
"BSD-2-Clause"
] | null | null | null | test.py | pibara-utopian/pycarvpath | 0c6f11888e1ee945714caf9a8c0d58759790b241 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
from carvpath import CarvPath,SparseFragment,BaseFragment
import unittest
class carvpathTest(unittest.TestCase):
# Positive test 1
def testsparse1(self):
cp1 = CarvPath([SparseFragment(1000)])
cp2 = CarvPath([SparseFragment(234)])
cp3 = cp1 + cp2
self.asse... | 31.172414 | 71 | 0.641593 | 102 | 904 | 5.598039 | 0.480392 | 0.049037 | 0.105079 | 0.070053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136812 | 0.215708 | 904 | 28 | 72 | 32.285714 | 0.668547 | 0.040929 | 0 | 0 | 0 | 0 | 0.084589 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 1 | 0.227273 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b4d3c8d19bc7d13fb4f64e67ea67e871925032b | 534 | py | Python | web/app.py | matesmajda/smart-home | 4cb23b3be1609f2d424931aa9add8466c08514cd | [
"Apache-2.0"
] | null | null | null | web/app.py | matesmajda/smart-home | 4cb23b3be1609f2d424931aa9add8466c08514cd | [
"Apache-2.0"
] | null | null | null | web/app.py | matesmajda/smart-home | 4cb23b3be1609f2d424931aa9add8466c08514cd | [
"Apache-2.0"
] | null | null | null | from flask import Flask
from service import light_controller as light_service
app = Flask('Smart Home')
RESPONSE_OK = ("", 200)
@app.route('/api/light/<room>/<type>/<command>', methods=['GET'])
def control_light(room, type, command):
light_service.control_light(room, type, command)
return RESPONSE_... | 25.428571 | 77 | 0.670412 | 75 | 534 | 4.533333 | 0.56 | 0.079412 | 0.114706 | 0.176471 | 0.158824 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024554 | 0.161049 | 534 | 20 | 78 | 26.7 | 0.734375 | 0 | 0 | 0 | 0 | 0 | 0.155642 | 0.066148 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.461538 | 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 |
1b4db3051a9f498462a0d0231b6db704dbce3464 | 3,742 | py | Python | base/db.py | stockminer/storm | cda77e4525a39381c590a7d7e828bb3cb2b923f1 | [
"Apache-2.0"
] | 2 | 2015-09-18T04:48:20.000Z | 2015-10-26T07:38:27.000Z | base/db.py | stockminer/storm | cda77e4525a39381c590a7d7e828bb3cb2b923f1 | [
"Apache-2.0"
] | null | null | null | base/db.py | stockminer/storm | cda77e4525a39381c590a7d7e828bb3cb2b923f1 | [
"Apache-2.0"
] | null | null | null | #!encoding=utf-8
'''
Created on 2015年10月12日
@author: Yafei
'''
import MySQLdb
import sys
class DB(object):
'''
classdocs
'''
def __init__(self, conf):
'''
Constructor
'''
self.db_host = conf.db_host
self.db_port = conf.db_port
self.db_user = conf.db_us... | 24.618421 | 121 | 0.62667 | 471 | 3,742 | 4.92569 | 0.339703 | 0.031034 | 0.046552 | 0.056897 | 0.318966 | 0.30819 | 0.272845 | 0.255172 | 0.255172 | 0.255172 | 0 | 0.017032 | 0.23116 | 3,742 | 152 | 122 | 24.618421 | 0.789364 | 0.004009 | 0 | 0.08 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0.08 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b4e05d442af93fd1b1c73d6a850c32f7feea2c9 | 565 | py | Python | raspberry-pi/fabfile.py | xnnyygn/auto-camera | 5f183832ce2559ed992a1c55daa5f6939b47d381 | [
"MIT"
] | null | null | null | raspberry-pi/fabfile.py | xnnyygn/auto-camera | 5f183832ce2559ed992a1c55daa5f6939b47d381 | [
"MIT"
] | null | null | null | raspberry-pi/fabfile.py | xnnyygn/auto-camera | 5f183832ce2559ed992a1c55daa5f6939b47d381 | [
"MIT"
] | null | null | null | from fabric.api import run, cd
from fabric.operations import put, prompt
CODE_DIR = '~/camera-agent'
PHOTO_DIR = '~/photos'
CONFIG_PATH = '~/settings.ini'
def deploy():
# TODO kill camera-agent process
# delete directory 'camera-agent'
run('rm -rf ' + CODE_DIR)
# TODO copy raspberry-pi files to 'camera-agent'... | 24.565217 | 61 | 0.647788 | 83 | 565 | 4.313253 | 0.554217 | 0.153631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180531 | 565 | 23 | 62 | 24.565217 | 0.773218 | 0.20708 | 0 | 0 | 0 | 0 | 0.238739 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b4e18ba3244b9b98d1cb28cf0261abcf12e670b | 3,464 | py | Python | stamps/config.py | ignacionf/stamps | 2d1e37f5acb5b4be62e815e640248c8a7fe71ca6 | [
"BSD-3-Clause"
] | null | null | null | stamps/config.py | ignacionf/stamps | 2d1e37f5acb5b4be62e815e640248c8a7fe71ca6 | [
"BSD-3-Clause"
] | null | null | null | stamps/config.py | ignacionf/stamps | 2d1e37f5acb5b4be62e815e640248c8a7fe71ca6 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
stamps.config
~~~~~~~~~~~~~
Stamps.com configuration.
:copyright: 2014 by Jonathan Zempel.
:license: BSD, see LICENSE for more details.
"""
from configparser import NoOptionError, NoSectionError, SafeConfigParser
from urllib.request import pathname2url
from urllib.pars... | 34.989899 | 79 | 0.635104 | 403 | 3,464 | 5.379653 | 0.327543 | 0.041974 | 0.051661 | 0.055351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009835 | 0.266166 | 3,464 | 98 | 80 | 35.346939 | 0.843037 | 0.422055 | 0 | 0.066667 | 0 | 0 | 0.083784 | 0.012973 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.044444 | false | 0.066667 | 0.088889 | 0 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b5bb0fda021f40d200c9ae75d3e1552f6c0651f | 1,357 | py | Python | accounts/migrations/0004_auto_20210121_2059.py | itsmegarvi/Inscribe | 8f0dcec4aced953bfc0e222dbe4fa1c88a9e60f1 | [
"Apache-2.0"
] | 1 | 2021-02-17T16:00:32.000Z | 2021-02-17T16:00:32.000Z | accounts/migrations/0004_auto_20210121_2059.py | itsmegarvi/Inscribe | 8f0dcec4aced953bfc0e222dbe4fa1c88a9e60f1 | [
"Apache-2.0"
] | 1 | 2021-02-15T09:46:11.000Z | 2021-02-15T09:46:11.000Z | accounts/migrations/0004_auto_20210121_2059.py | itsmegarvi/Inscribe | 8f0dcec4aced953bfc0e222dbe4fa1c88a9e60f1 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-21 15:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20210121_2039'),
]
operations = [
migrations.CreateM... | 38.771429 | 198 | 0.632277 | 142 | 1,357 | 5.894366 | 0.514085 | 0.038232 | 0.050179 | 0.078853 | 0.258065 | 0.203106 | 0.203106 | 0.203106 | 0.114695 | 0 | 0 | 0.030214 | 0.24392 | 1,357 | 34 | 199 | 39.911765 | 0.785575 | 0.033161 | 0 | 0.107143 | 1 | 0 | 0.178626 | 0.017557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.214286 | 0 | 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 |
1b5eace6e429e47060d59111f3679d7cdade0999 | 573 | py | Python | exps/grid.py | jeromedockes/cogspaces | 43ec3bc8daaa6b5d825527c0665bd12cb5e46618 | [
"BSD-2-Clause"
] | null | null | null | exps/grid.py | jeromedockes/cogspaces | 43ec3bc8daaa6b5d825527c0665bd12cb5e46618 | [
"BSD-2-Clause"
] | null | null | null | exps/grid.py | jeromedockes/cogspaces | 43ec3bc8daaa6b5d825527c0665bd12cb5e46618 | [
"BSD-2-Clause"
] | null | null | null | from joblib import Parallel, delayed
from sklearn.utils import check_random_state
from exps.train import run
seeds = check_random_state(42).randint(0, 100000, size=20).tolist()
# Takes 15 minutes on a 40 CPU computer
Parallel(n_jobs=40, verbose=10)(delayed(run)(estimator, seed)
for es... | 35.8125 | 78 | 0.671902 | 85 | 573 | 4.447059 | 0.6 | 0.058201 | 0.084656 | 0.042328 | 0.084656 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059497 | 0.237347 | 573 | 15 | 79 | 38.2 | 0.805492 | 0.198953 | 0 | 0 | 0 | 0 | 0.059211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1b68acd893556c56e8228f18fad448a6adc7cbed | 2,886 | py | Python | build/util/lastchange.py | zachlatta/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | 1 | 2021-09-24T22:49:10.000Z | 2021-09-24T22:49:10.000Z | build/util/lastchange.py | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | build/util/lastchange.py | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
lastchange.py -- Chromium revision fetching utility.
"""
import optparse
import os
import re
import subprocess
import sys
de... | 23.274194 | 73 | 0.626126 | 396 | 2,886 | 4.457071 | 0.356061 | 0.023796 | 0.01813 | 0.016997 | 0.236827 | 0.230028 | 0.230028 | 0.205099 | 0.205099 | 0.205099 | 0 | 0.007852 | 0.249827 | 2,886 | 123 | 74 | 23.463415 | 0.80739 | 0.10395 | 0 | 0.223684 | 0 | 0 | 0.093838 | 0.013539 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013158 | 0.065789 | null | null | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1b6944b1fc84ae87425e1a8c5cd765d370388f83 | 9,111 | py | Python | InjectionTools.py | yuliang419/TransitInject | 4eab006e70cbbfcb6202f5534f1b2c29ec142434 | [
"MIT"
] | 1 | 2020-10-20T03:29:14.000Z | 2020-10-20T03:29:14.000Z | InjectionTools.py | yuliang419/TransitInject | 4eab006e70cbbfcb6202f5534f1b2c29ec142434 | [
"MIT"
] | null | null | null | InjectionTools.py | yuliang419/TransitInject | 4eab006e70cbbfcb6202f5534f1b2c29ec142434 | [
"MIT"
] | null | null | null | import numpy as np
import urllib
from lxml import etree
import batman
import ldtk
from scipy.interpolate import interp1d
# from joblib import Parallel, delayed
import random
import matplotlib.pyplot as plt
from scipy.spatial.qhull import QhullError
import multiprocessing
import logging
import sys
def planet_gen_wrapp... | 35.313953 | 120 | 0.555921 | 1,224 | 9,111 | 4.060458 | 0.276961 | 0.018109 | 0.007243 | 0.01006 | 0.167807 | 0.130382 | 0.117505 | 0.077666 | 0.050704 | 0.050704 | 0 | 0.04164 | 0.306772 | 9,111 | 257 | 121 | 35.451362 | 0.74525 | 0.086708 | 0 | 0.196891 | 0 | 0 | 0.112831 | 0.012633 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.062176 | null | null | 0.015544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1b694d29d5beb77bb842578947bb57ed09e40e87 | 3,015 | py | Python | polls/core/tests.py | K0Te/django-polls | f9743eb6fbd26c2cea860ee3b175f63c5f090076 | [
"MIT"
] | null | null | null | polls/core/tests.py | K0Te/django-polls | f9743eb6fbd26c2cea860ee3b175f63c5f090076 | [
"MIT"
] | null | null | null | polls/core/tests.py | K0Te/django-polls | f9743eb6fbd26c2cea860ee3b175f63c5f090076 | [
"MIT"
] | null | null | null | from datetime import date
from django.shortcuts import resolve_url as r
from django.test import TestCase
from django.utils import timezone
from .models import Choice, Question
class IndexTest(TestCase):
def setUp(self):
Question.objects.create(text='What is your favorite color?')
Question.object... | 29.558824 | 89 | 0.600332 | 376 | 3,015 | 4.74734 | 0.239362 | 0.05098 | 0.066667 | 0.084034 | 0.545098 | 0.459384 | 0.340616 | 0.280112 | 0.280112 | 0.19944 | 0 | 0.009765 | 0.252736 | 3,015 | 101 | 90 | 29.851485 | 0.782512 | 0 | 0 | 0.356164 | 0 | 0 | 0.163516 | 0 | 0 | 0 | 0 | 0 | 0.178082 | 1 | 0.232877 | false | 0 | 0.068493 | 0 | 0.356164 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b69e845f97b7f14408d34a9867f0bf7022045e4 | 748 | py | Python | tests/mdp/test_mdp.py | DavidSlayback/rl-parsers | df33cd1814aaeac05b057330ccf742b3310f36df | [
"MIT"
] | null | null | null | tests/mdp/test_mdp.py | DavidSlayback/rl-parsers | df33cd1814aaeac05b057330ccf742b3310f36df | [
"MIT"
] | null | null | null | tests/mdp/test_mdp.py | DavidSlayback/rl-parsers | df33cd1814aaeac05b057330ccf742b3310f36df | [
"MIT"
] | 2 | 2020-09-27T15:02:32.000Z | 2021-08-24T22:43:21.000Z | import unittest
import numpy as np
from rl_parsers import MDP_Parser
class MDP_Test(unittest.TestCase):
def test_gridworld(self):
parser = MDP_Parser(optimize=False)
mdp = parser.parse_file('tests/mdp/gridworld.mdp')
self.assertEqual(mdp.discount, 0.95)
self.assertListEqual(mdp... | 27.703704 | 77 | 0.648396 | 100 | 748 | 4.78 | 0.53 | 0.056485 | 0.09205 | 0.041841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036667 | 0.197861 | 748 | 26 | 78 | 28.769231 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0.054813 | 0.030749 | 0 | 0 | 0 | 0 | 0.5625 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b6c55c884ad7f589153505ac695e852bd17eaad | 1,208 | py | Python | py-server/server.py | aidevnet/ztp | 147a1cdd548650e26e266c2a5a9f72bbe62bc607 | [
"BSD-2-Clause"
] | null | null | null | py-server/server.py | aidevnet/ztp | 147a1cdd548650e26e266c2a5a9f72bbe62bc607 | [
"BSD-2-Clause"
] | null | null | null | py-server/server.py | aidevnet/ztp | 147a1cdd548650e26e266c2a5a9f72bbe62bc607 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import csv
from flask import Flask
from flask import request, jsonify, make_response
app = Flask(__name__)
FILE ="serial-ip.csv"
@app.route('/device', methods=["GET"])
def get_all():
#print (request.args)
#print("Method {}".format(request.method))
... | 24.16 | 95 | 0.550497 | 143 | 1,208 | 4.517483 | 0.503497 | 0.060372 | 0.04644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020606 | 0.317053 | 1,208 | 49 | 96 | 24.653061 | 0.762424 | 0.07947 | 0 | 0.121212 | 0 | 0 | 0.131769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.060606 | 0.121212 | 0 | 0.242424 | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b78337de42b9f4ba15ccfccf01de442b6dca476 | 1,215 | py | Python | pdf_bot/__init__.py | Joy-nath/telegram-pdf-bot | ca04cb6dd816eeea9b223e788f22bb1b16244977 | [
"MIT"
] | null | null | null | pdf_bot/__init__.py | Joy-nath/telegram-pdf-bot | ca04cb6dd816eeea9b223e788f22bb1b16244977 | [
"MIT"
] | null | null | null | pdf_bot/__init__.py | Joy-nath/telegram-pdf-bot | ca04cb6dd816eeea9b223e788f22bb1b16244977 | [
"MIT"
] | null | null | null | import os
from http import HTTPStatus
from dotenv import load_dotenv
from flask import Flask, Response, request
from telegram import Update
from telegram.ext import messagequeue as mq
from telegram.ext.dispatcher import Dispatcher
from telegram.utils.request import Request
import pdf_bot.dispatcher as dp
import pdf_b... | 27 | 84 | 0.742387 | 171 | 1,215 | 5.081871 | 0.473684 | 0.055236 | 0.034522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010913 | 0.17037 | 1,215 | 44 | 85 | 27.613636 | 0.85119 | 0.051029 | 0 | 0 | 0 | 0 | 0.016522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.033333 | 0.366667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1b8188290776827e953663a7cb5361a2f3ad9d66 | 524 | py | Python | util/misc.py | arturb90/nl2pl | 2cd37bdd7c6f9f99349f1235001a1755ba169f4a | [
"MIT"
] | null | null | null | util/misc.py | arturb90/nl2pl | 2cd37bdd7c6f9f99349f1235001a1755ba169f4a | [
"MIT"
] | null | null | null | util/misc.py | arturb90/nl2pl | 2cd37bdd7c6f9f99349f1235001a1755ba169f4a | [
"MIT"
] | 1 | 2021-07-16T09:21:15.000Z | 2021-07-16T09:21:15.000Z | import time
from model.parser import LALR
def elapsed(since):
'''
Returns elapsed time since 'since'.
'''
now = time.time()
elapsed = now - since
return elapsed
def filter_dict(pred, dict_):
'''
Filters a dictionary based the predicate provided.
'''
for key, val in dict_.it... | 16.903226 | 54 | 0.603053 | 65 | 524 | 4.8 | 0.538462 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295802 | 524 | 30 | 55 | 17.466667 | 0.845528 | 0.192748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1b903996bf3a4d6575217be7a0c0dfa590f198b1 | 739 | py | Python | aws_load_balancer_policies/aws_alb_ssl_policy.py | panther-labs/panther-cli | 4e5c0a21570e1a02dada990fd91e324416afac96 | [
"MIT"
] | 4 | 2019-10-17T19:33:29.000Z | 2019-10-21T15:23:30.000Z | aws_load_balancer_policies/aws_alb_ssl_policy.py | panther-labs/panther-cli | 4e5c0a21570e1a02dada990fd91e324416afac96 | [
"MIT"
] | null | null | null | aws_load_balancer_policies/aws_alb_ssl_policy.py | panther-labs/panther-cli | 4e5c0a21570e1a02dada990fd91e324416afac96 | [
"MIT"
] | null | null | null | # Generated with the AWS CLI with the following command:
# aws elbv2 describe-ssl-policies --query 'SslPolicies[?SslProtocols==[`TLSv1.2`]].Name'
TLS_1_2_POLICIES = {
"ELBSecurityPolicy-TLS-1-2-2017-01",
"ELBSecurityPolicy-TLS-1-2-Ext-2018-06",
"ELBSecurityPolicy-FS-1-2-Res-2019-08",
"ELBSecurityPolic... | 36.95 | 99 | 0.688769 | 104 | 739 | 4.817308 | 0.557692 | 0.027944 | 0.03992 | 0.125749 | 0.161677 | 0.107784 | 0 | 0 | 0 | 0 | 0 | 0.077295 | 0.159675 | 739 | 19 | 100 | 38.894737 | 0.729469 | 0.273342 | 0 | 0 | 1 | 0 | 0.407129 | 0.326454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b90723921c5aa1d5ba8f7ca6918c0a96bca7b9b | 4,733 | py | Python | ev3dev2simulator/connector/MotorConnector.py | NielsOkker/ev3dev2simulator | fc0b89eae09634b34b9e64c989c5febc86e70ef1 | [
"MIT"
] | null | null | null | ev3dev2simulator/connector/MotorConnector.py | NielsOkker/ev3dev2simulator | fc0b89eae09634b34b9e64c989c5febc86e70ef1 | [
"MIT"
] | 2 | 2020-05-31T11:16:40.000Z | 2020-05-31T12:28:33.000Z | ev3dev2simulator/connector/MotorConnector.py | NielsOkker/ev3dev2simulator | fc0b89eae09634b34b9e64c989c5febc86e70ef1 | [
"MIT"
] | null | null | null | from ev3dev2simulator.connection.ClientSocket import get_client_socket
from ev3dev2simulator.connection.message.RotateCommand import RotateCommand
from ev3dev2simulator.connection.message.StopCommand import StopCommand
FOREVER_MOCK_SECONDS = 45
class MotorConnector:
"""
The MotorConnector class provides a tr... | 32.197279 | 99 | 0.622438 | 594 | 4,733 | 4.867003 | 0.205387 | 0.033207 | 0.020754 | 0.041508 | 0.379799 | 0.352819 | 0.328952 | 0.328952 | 0.316499 | 0.316499 | 0 | 0.01041 | 0.309951 | 4,733 | 146 | 100 | 32.417808 | 0.87477 | 0.399958 | 0 | 0.145455 | 0 | 0 | 0.003324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0 | 0.054545 | 0 | 0.418182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b90fbeee4806dcbf1677620592b4a689e6b5afc | 1,848 | py | Python | DFU/BuildDFUAutomation.py | eliericha/midi-commander-custom | c786f704c4fd06e105a757fff325ded8e54f599c | [
"MIT"
] | 12 | 2021-07-09T18:29:34.000Z | 2022-03-06T09:05:15.000Z | DFU/BuildDFUAutomation.py | eliericha/midi-commander-custom | c786f704c4fd06e105a757fff325ded8e54f599c | [
"MIT"
] | 10 | 2021-07-09T13:08:49.000Z | 2022-03-20T13:22:50.000Z | DFU/BuildDFUAutomation.py | eliericha/midi-commander-custom | c786f704c4fd06e105a757fff325ded8e54f599c | [
"MIT"
] | 5 | 2021-08-10T11:54:38.000Z | 2022-02-26T23:29:34.000Z | # This script automates the generation of the DFU file from the release build.
# File paths are generated relative to the repo, so should work where ever the repo is put.
#
# Requires pywinauto.
# pip install pywinauto
from pywinauto.application import Application
from pywinauto.timings import Timings
import time
f... | 36.96 | 118 | 0.772727 | 296 | 1,848 | 4.584459 | 0.385135 | 0.072955 | 0.058954 | 0.050111 | 0.23213 | 0.150332 | 0.084009 | 0 | 0 | 0 | 0 | 0.005959 | 0.091991 | 1,848 | 49 | 119 | 37.714286 | 0.802741 | 0.194805 | 0 | 0 | 1 | 0 | 0.223124 | 0.085193 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.192308 | 0 | 0.192308 | 0.038462 | 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 |
1b918ce3d9eb02c242fbf1ebd9a4e16555a12af4 | 436 | py | Python | hooks/post_gen_project.py | ErikFanderson/cookiecutter-python-project | 1fb39aaa97487f9d743b4da8ff63591e89f55085 | [
"MIT"
] | null | null | null | hooks/post_gen_project.py | ErikFanderson/cookiecutter-python-project | 1fb39aaa97487f9d743b4da8ff63591e89f55085 | [
"MIT"
] | null | null | null | hooks/post_gen_project.py | ErikFanderson/cookiecutter-python-project | 1fb39aaa97487f9d743b4da8ff63591e89f55085 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from subprocess import Popen
import pathlib
submodules = []
if __name__=='__main__':
Popen("git init",shell=True).wait()
for sm in submodules:
Popen(f"git submodule add {sm}",shell=True).wait()
if submodules:
Popen("git submodule update --init --recursive",shell=True... | 29.066667 | 74 | 0.662844 | 60 | 436 | 4.683333 | 0.5 | 0.160142 | 0.231317 | 0.128114 | 0.149466 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002778 | 0.174312 | 436 | 14 | 75 | 31.142857 | 0.777778 | 0.048165 | 0 | 0 | 0 | 0 | 0.289855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 |
1b9307390ce22586ff6f9d684c6fe0d697f99641 | 441 | py | Python | 0x0B-python-input_output/7-save_to_json_file.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | 0x0B-python-input_output/7-save_to_json_file.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | 0x0B-python-input_output/7-save_to_json_file.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/python3
"""This module contains a function that writes an
Object to a text file, using a JSON representation.
"""
import json
def save_to_json_file(my_obj, filename):
"""Writes an Object to a text file, using a JSON representation.
Arguments:
my_obj {obj} -- python object.
file... | 25.941176 | 68 | 0.653061 | 65 | 441 | 4.338462 | 0.553846 | 0.053191 | 0.099291 | 0.113475 | 0.347518 | 0.347518 | 0.347518 | 0.347518 | 0.347518 | 0.347518 | 0 | 0.0059 | 0.231293 | 441 | 16 | 69 | 27.5625 | 0.825959 | 0.585034 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b9791b9dacaa542877d2b291d6238097e8580f1 | 1,708 | py | Python | sdk/python/pulumi_apigateway/_inputs.py | justinvp/pulumi-apigateway | 09787a2728f9212d11b155ebeba71d2a95451360 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_apigateway/_inputs.py | justinvp/pulumi-apigateway | 09787a2728f9212d11b155ebeba71d2a95451360 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_apigateway/_inputs.py | justinvp/pulumi-apigateway | 09787a2728f9212d11b155ebeba71d2a95451360 | [
"Apache-2.0"
] | 2 | 2021-04-16T16:39:53.000Z | 2021-06-22T13:43:34.000Z | # coding=utf-8
# *** WARNING: this file was generated by Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from . import _utilities, _tables
import pul... | 29.964912 | 88 | 0.64637 | 206 | 1,708 | 5.194175 | 0.291262 | 0.102804 | 0.159813 | 0.123364 | 0.45514 | 0.345794 | 0.284112 | 0.166355 | 0.166355 | 0 | 0 | 0.000758 | 0.227166 | 1,708 | 56 | 89 | 30.5 | 0.809848 | 0.09192 | 0 | 0.142857 | 1 | 0 | 0.100971 | 0.066019 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.142857 | 0.071429 | 0.404762 | 0 | 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 |
1b9ab88a23de12fc95ac762bd368c0dee895cb3a | 2,063 | py | Python | akatsuki/thanos/migrations/0003_auto_20210829_1818.py | raun/vigilant-system | f535e16d63c7d48e550b52e4d1e833569cb43669 | [
"MIT"
] | null | null | null | akatsuki/thanos/migrations/0003_auto_20210829_1818.py | raun/vigilant-system | f535e16d63c7d48e550b52e4d1e833569cb43669 | [
"MIT"
] | 8 | 2021-09-08T14:13:53.000Z | 2021-09-09T02:12:44.000Z | akatsuki/thanos/migrations/0003_auto_20210829_1818.py | raun/vigilant-system | f535e16d63c7d48e550b52e4d1e833569cb43669 | [
"MIT"
] | 1 | 2021-08-29T05:17:43.000Z | 2021-08-29T05:17:43.000Z | # Generated by Django 3.2.6 on 2021-08-29 18:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('thanos', '0002_auto_2021... | 38.924528 | 152 | 0.607368 | 199 | 2,063 | 6.130653 | 0.38191 | 0.039344 | 0.057377 | 0.090164 | 0.412295 | 0.366393 | 0.3 | 0.189344 | 0.189344 | 0.189344 | 0 | 0.020516 | 0.267572 | 2,063 | 52 | 153 | 39.673077 | 0.786896 | 0.021813 | 0 | 0.282609 | 1 | 0 | 0.146329 | 0.054067 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ba2f844916c7c55e881bb2eb0b37cadd0f6a906 | 1,118 | py | Python | petfax/server.py | stackdump/factom-hackathon | 14ca64428121f4cb7b8aa18c76f452b7b79f0168 | [
"MIT"
] | null | null | null | petfax/server.py | stackdump/factom-hackathon | 14ca64428121f4cb7b8aa18c76f452b7b79f0168 | [
"MIT"
] | null | null | null | petfax/server.py | stackdump/factom-hackathon | 14ca64428121f4cb7b8aa18c76f452b7b79f0168 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from livereload import Server
import bitwrap_io.server
from bitwrap_io.api import Config
from bitwrap_io.server import app, pnml_editor
from flask_restful import Resource, Api
class VetChain(Resource):
""" save new Petri-Net XML definition """
def post(self, vetid):
machine_de... | 24.304348 | 81 | 0.660107 | 140 | 1,118 | 5.107143 | 0.578571 | 0.05035 | 0.041958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009302 | 0.230769 | 1,118 | 45 | 82 | 24.844444 | 0.822093 | 0.167263 | 0 | 0 | 0 | 0 | 0.08913 | 0.023913 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.04 | false | 0 | 0.2 | 0 | 0.32 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1baa4fbac611a6d9068bca12c9e9ed78c295f1aa | 1,326 | py | Python | comp313p_reactive_planner_controller/scripts/map_tester.py | zcabzjs/Robotics-cw2 | 08a9c56c5507788cfa711de9794afd66cb862af6 | [
"BSD-3-Clause"
] | null | null | null | comp313p_reactive_planner_controller/scripts/map_tester.py | zcabzjs/Robotics-cw2 | 08a9c56c5507788cfa711de9794afd66cb862af6 | [
"BSD-3-Clause"
] | null | null | null | comp313p_reactive_planner_controller/scripts/map_tester.py | zcabzjs/Robotics-cw2 | 08a9c56c5507788cfa711de9794afd66cb862af6 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import sys
import rospy
from nav_msgs.srv import GetMap
from comp313p_reactive_planner_controller.occupancy_grid import OccupancyGrid
from comp313p_reactive_planner_controller.search_grid import SearchGrid
from comp313p_reactive_planner_controller.grid_drawer import GridDrawer
# This class pings... | 31.571429 | 106 | 0.71267 | 149 | 1,326 | 6.14094 | 0.489933 | 0.038251 | 0.065574 | 0.088525 | 0.121311 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011472 | 0.211161 | 1,326 | 41 | 107 | 32.341463 | 0.863289 | 0.076923 | 0 | 0 | 0 | 0 | 0.099018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033333 | 0.2 | null | null | 0.233333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1baaf041d42b10f2b9e6bbb77092ffa352a07858 | 2,808 | py | Python | model.py | fluxTH/RadioLogger4 | d44c13886c93ec0ba64be8d6fce1d4600b49e993 | [
"blessing"
] | null | null | null | model.py | fluxTH/RadioLogger4 | d44c13886c93ec0ba64be8d6fce1d4600b49e993 | [
"blessing"
] | null | null | null | model.py | fluxTH/RadioLogger4 | d44c13886c93ec0ba64be8d6fce1d4600b49e993 | [
"blessing"
] | null | null | null | ###########################################################
# ORM Initialization
###########################################################
import json
from sqlalchemy import (
Column,
ForeignKey,
Integer,
String,
DateTime,
Text,
Enum,
)
from sqlalchemy.orm import relationship
from sqlalche... | 30.521739 | 105 | 0.622863 | 325 | 2,808 | 5.209231 | 0.246154 | 0.061429 | 0.05316 | 0.051979 | 0.236267 | 0.138216 | 0.069699 | 0.069699 | 0.069699 | 0.069699 | 0 | 0.00794 | 0.192664 | 2,808 | 91 | 106 | 30.857143 | 0.738862 | 0.00641 | 0 | 0.19403 | 0 | 0.014925 | 0.10824 | 0.007865 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.074627 | 0.059701 | 0.731343 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1bac7f2a02209aa3c1416e9cfc5dbdbd50ec2aad | 1,151 | py | Python | src/spinnaker_ros_lsm/src/jointangle_to_int64.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | 2 | 2020-11-01T13:22:11.000Z | 2020-11-01T13:22:20.000Z | src/spinnaker_ros_lsm/src/jointangle_to_int64.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | null | null | null | src/spinnaker_ros_lsm/src/jointangle_to_int64.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
'''
@author Nicolas Berberich
@date 07.09.2017
ROS node for converting joint sensor encoder values to degrees and radians.
'''
import rospy
from std_msgs.msg import Int64
from spinn_ros_msgs.msg import Myo_Joint_Angle
import numpy as np
def convert_angle():
'''
#topic: /to_spinnaker
... | 20.192982 | 128 | 0.677672 | 149 | 1,151 | 5.026846 | 0.516779 | 0.040053 | 0.045394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035996 | 0.227628 | 1,151 | 56 | 129 | 20.553571 | 0.806524 | 0.283232 | 0 | 0 | 0 | 0 | 0.10675 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.210526 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1bacfc265b86cfe88af89507263771e673a9fca6 | 10,098 | py | Python | sdk/python/pulumi_aws_native/timestream/table.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws_native/timestream/table.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws_native/timestream/table.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 44.09607 | 184 | 0.653694 | 1,170 | 10,098 | 5.384615 | 0.133333 | 0.066349 | 0.05127 | 0.030159 | 0.653492 | 0.574286 | 0.526032 | 0.493175 | 0.468571 | 0.431111 | 0 | 0.000132 | 0.24698 | 10,098 | 228 | 185 | 44.289474 | 0.82838 | 0.281442 | 0 | 0.397163 | 1 | 0 | 0.132756 | 0.033592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141844 | false | 0.007092 | 0.049645 | 0.007092 | 0.283688 | 0 | 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 |
1bb5269d4cdf01dc30f6d34313240f2a75be5789 | 5,043 | py | Python | clmm/plotting.py | 96RadhikaJadhav/CLMM | cd0508f82f9a6a4692fe785277ac25c73e89d0d7 | [
"BSD-3-Clause"
] | null | null | null | clmm/plotting.py | 96RadhikaJadhav/CLMM | cd0508f82f9a6a4692fe785277ac25c73e89d0d7 | [
"BSD-3-Clause"
] | null | null | null | clmm/plotting.py | 96RadhikaJadhav/CLMM | cd0508f82f9a6a4692fe785277ac25c73e89d0d7 | [
"BSD-3-Clause"
] | null | null | null | """A collection of scripts that can be used to plot the various quantities that CLMM models."""
import matplotlib.pyplot as plt
from .galaxycluster import GalaxyCluster
def plot_profiles(cluster=None, rbins=None, tangential_component=None, tangential_component_error=None,
cross_component=None, cross... | 45.432432 | 224 | 0.676581 | 639 | 5,043 | 5.209703 | 0.223787 | 0.119856 | 0.050466 | 0.030039 | 0.372184 | 0.312106 | 0.294983 | 0.258336 | 0.2304 | 0.20036 | 0 | 0 | 0.253421 | 5,043 | 110 | 225 | 45.845455 | 0.884197 | 0.456871 | 0 | 0.338983 | 0 | 0 | 0.125531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0.067797 | 0.033898 | 0 | 0.067797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1bb7f351e87f8b65266319e8795ddb9e3e9b0ea5 | 4,154 | py | Python | apps/users/tests/test_forms.py | bensternthal/affiliates | e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1 | [
"BSD-3-Clause"
] | null | null | null | apps/users/tests/test_forms.py | bensternthal/affiliates | e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1 | [
"BSD-3-Clause"
] | null | null | null | apps/users/tests/test_forms.py | bensternthal/affiliates | e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1 | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from django.core import mail
from django.forms import Form
from mock import patch
from nose.tools import eq_, ok_
from test_utils import TestCase
from users import forms
class EditProfileFormTests(TestCase):
def _form(self, **kwargs):
"""Default profile edit form."""
... | 29.884892 | 78 | 0.612662 | 488 | 4,154 | 5.006148 | 0.264344 | 0.085141 | 0.083504 | 0.045027 | 0.380679 | 0.329922 | 0.207122 | 0.120344 | 0.067131 | 0.036021 | 0 | 0.021767 | 0.259027 | 4,154 | 138 | 79 | 30.101449 | 0.77193 | 0.060424 | 0 | 0.288889 | 0 | 0 | 0.150438 | 0.013138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.222222 | 0.077778 | 0.055556 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1bc25d2905a6ec28f877db6a1883fd599be607eb | 7,262 | py | Python | tests/test_writer.py | hroncok/rst2txt | 9a497d7e277df9a84bc9a89f3a19a7736ab78ecb | [
"BSD-2-Clause"
] | 2 | 2019-05-15T12:31:37.000Z | 2020-09-09T08:10:17.000Z | tests/test_writer.py | hroncok/rst2txt | 9a497d7e277df9a84bc9a89f3a19a7736ab78ecb | [
"BSD-2-Clause"
] | null | null | null | tests/test_writer.py | hroncok/rst2txt | 9a497d7e277df9a84bc9a89f3a19a7736ab78ecb | [
"BSD-2-Clause"
] | 1 | 2021-03-31T09:46:33.000Z | 2021-03-31T09:46:33.000Z | # -*- coding: utf-8 -*-
"""
Test for text writer.
"""
from __future__ import print_function
import tempfile
import textwrap
from docutils.core import publish_string
import rst2txt
def assert_serialized(source, expected_output, settings=None):
source = textwrap.dedent(source)
expected_output = textwrap.dede... | 23.577922 | 74 | 0.441338 | 662 | 7,262 | 4.758308 | 0.243202 | 0.030476 | 0.090794 | 0.106667 | 0.709524 | 0.684762 | 0.66254 | 0.606032 | 0.559365 | 0.559365 | 0 | 0.012247 | 0.325392 | 7,262 | 307 | 75 | 23.654723 | 0.630741 | 0.006059 | 0 | 0.540909 | 0 | 0.004545 | 0.721637 | 0.118585 | 0 | 0 | 0 | 0 | 0.063636 | 1 | 0.059091 | false | 0 | 0.05 | 0 | 0.109091 | 0.013636 | 0 | 0 | 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 |
1bc382532c3353e71e7dceae633e1c14a30df43c | 998 | py | Python | stake/migrations/0001_initial.py | lurdray/iotex_staking | cf5886bb92869365b41f4a9ce45be846c9c6ec51 | [
"Apache-2.0"
] | null | null | null | stake/migrations/0001_initial.py | lurdray/iotex_staking | cf5886bb92869365b41f4a9ce45be846c9c6ec51 | [
"Apache-2.0"
] | null | null | null | stake/migrations/0001_initial.py | lurdray/iotex_staking | cf5886bb92869365b41f4a9ce45be846c9c6ec51 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.7 on 2022-01-24 16:28
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.CreateM... | 33.266667 | 114 | 0.612224 | 103 | 998 | 5.834951 | 0.582524 | 0.039933 | 0.046589 | 0.073211 | 0.1198 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028188 | 0.253507 | 998 | 29 | 115 | 34.413793 | 0.778523 | 0.04509 | 0 | 0 | 1 | 0 | 0.111462 | 0.028391 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bca0e909e09feec63176d078dcfee15f14ef06a | 541 | py | Python | src/the_tale/the_tale/game/heroes/migrations/0009_auto_20160319_1712.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/game/heroes/migrations/0009_auto_20160319_1712.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/game/heroes/migrations/0009_auto_20160319_1712.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-03-19 17:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('heroes', '0008_change_places_history_format'),
]
operations = [
migrations.RemoveField(
model_name='hero'... | 21.64 | 56 | 0.584104 | 55 | 541 | 5.563636 | 0.781818 | 0.058824 | 0.084967 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.297597 | 541 | 24 | 57 | 22.541667 | 0.752632 | 0.120148 | 0 | 0.25 | 1 | 0 | 0.175476 | 0.133192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bd3fe207be02c22aed167def654eb7cdcd195fb | 1,259 | py | Python | lang/py/rfc/21/SocketServer/async_server.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/rfc/21/SocketServer/async_server.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/rfc/21/SocketServer/async_server.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding:UTF-8
# 基于SocketServer的服务器
import socket
import threading
import SocketServer
class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):
def handle(self):
data = self.request.recv(1024)
cur_thread = threading.current_thread()
response = "{}:{... | 25.693878 | 77 | 0.69023 | 145 | 1,259 | 5.855172 | 0.475862 | 0.042403 | 0.056537 | 0.060071 | 0.077739 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01277 | 0.191422 | 1,259 | 48 | 78 | 26.229167 | 0.821218 | 0.045274 | 0 | 0 | 0 | 0 | 0.085071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030303 | 0.090909 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1bd44a975f616274984e478de5da51d0ef63259d | 3,151 | py | Python | scripts/create_validators.py | ingoha/pilight-1 | a319404034e761892a89c7205b6f1aff6ad8e205 | [
"MIT"
] | 5 | 2017-10-06T13:16:41.000Z | 2021-07-05T06:42:51.000Z | scripts/create_validators.py | ingoha/pilight-1 | a319404034e761892a89c7205b6f1aff6ad8e205 | [
"MIT"
] | 6 | 2016-10-19T09:46:38.000Z | 2022-03-01T18:00:05.000Z | scripts/create_validators.py | ingoha/pilight-1 | a319404034e761892a89c7205b6f1aff6ad8e205 | [
"MIT"
] | 8 | 2016-12-10T09:03:55.000Z | 2019-03-30T18:37:45.000Z | ''' This script reverse engineers the protocols defined in pilight.
It converts them to voloptuous schemes to allow protocol validation
before sending data to the pilight daemon.
'git' python package has to be installed.
TODO: use regex for numbers
'''
import re
import glob
import voluptuous as vo... | 32.153061 | 71 | 0.573786 | 373 | 3,151 | 4.715818 | 0.359249 | 0.081865 | 0.055713 | 0.04548 | 0.320637 | 0.295623 | 0.295623 | 0.295623 | 0.295623 | 0.295623 | 0 | 0.006132 | 0.327198 | 3,151 | 97 | 72 | 32.484536 | 0.823585 | 0.250714 | 0 | 0.466667 | 0 | 0 | 0.081395 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.05 | false | 0 | 0.066667 | 0 | 0.216667 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1bd68b28d8c64dd345a08272eb0f18a524da5c6e | 6,255 | py | Python | leetcode_python/Stack/baseball-game.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Stack/baseball-game.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | leetcode_python/Stack/baseball-game.py | yennanliu/Python_basics | 6a597442d39468295946cefbfb11d08f61424dc3 | [
"Unlicense"
] | null | null | null | """
682. Baseball Game
Easy
You are keeping score for a baseball game with strange rules. The game consists of several rounds, where the scores of past rounds may affect future rounds' scores.
At the beginning of the game, you start with an empty record. You are given a list of strings ops, where ops[i] is the ith o... | 30.512195 | 190 | 0.515108 | 882 | 6,255 | 3.653061 | 0.175737 | 0.050279 | 0.05121 | 0.048417 | 0.616387 | 0.567039 | 0.52576 | 0.490379 | 0.464308 | 0.454687 | 0 | 0.050676 | 0.33749 | 6,255 | 205 | 191 | 30.512195 | 0.726834 | 0.442366 | 0 | 0.759259 | 0 | 0 | 0.016617 | 0 | 0 | 0 | 0 | 0 | 0.064815 | 1 | 0.064815 | false | 0 | 0 | 0 | 0.203704 | 0.009259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bd6a6caa71854d84375e9c67599c513468cd9c2 | 2,823 | py | Python | tests/unit/utils/cache_provider.py | swilde/OpenSlides | 23ae32a75892005632784652d108836d1ba09da9 | [
"MIT"
] | 3 | 2021-02-11T20:45:58.000Z | 2022-02-09T21:59:42.000Z | tests/unit/utils/cache_provider.py | swilde/OpenSlides | 23ae32a75892005632784652d108836d1ba09da9 | [
"MIT"
] | 2 | 2021-11-02T15:48:16.000Z | 2022-03-02T08:38:19.000Z | tests/unit/utils/cache_provider.py | swilde/OpenSlides | 23ae32a75892005632784652d108836d1ba09da9 | [
"MIT"
] | 3 | 2021-01-18T11:44:05.000Z | 2022-01-19T16:00:23.000Z | from typing import Any, Callable, Dict, List
from openslides.utils.cache_providers import Cachable, MemoryCacheProvider
def restrict_elements(elements: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
"""
Adds the prefix 'restricted_' to all values except id.
"""
out = []
for element in elements:
... | 28.515152 | 88 | 0.601488 | 322 | 2,823 | 5.15528 | 0.242236 | 0.053012 | 0.072892 | 0.092771 | 0.471687 | 0.471687 | 0.471687 | 0.471687 | 0.40241 | 0.380723 | 0 | 0.016949 | 0.247609 | 2,823 | 98 | 89 | 28.806122 | 0.764595 | 0.075452 | 0 | 0.377049 | 0 | 0 | 0.120892 | 0.021127 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147541 | false | 0.016393 | 0.032787 | 0.114754 | 0.491803 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1bd6b6804b0cea77d67b807d4a13da9c6e74fa86 | 4,780 | py | Python | rkqc/tools/gui/ui/ESOPSynthesis.py | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 158 | 2016-07-21T10:45:05.000Z | 2022-03-25T00:56:20.000Z | rkqc/tools/gui/ui/ESOPSynthesis.py | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 35 | 2016-07-25T01:23:07.000Z | 2021-09-27T16:05:50.000Z | rkqc/tools/gui/ui/ESOPSynthesis.py | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 62 | 2016-08-29T17:28:11.000Z | 2021-12-29T17:55:58.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ESOPSynthesis.ui'
#
# Created: Wed May 11 17:29:16 2011
# by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except A... | 56.235294 | 148 | 0.729079 | 521 | 4,780 | 6.583493 | 0.191939 | 0.062974 | 0.073761 | 0.090962 | 0.468222 | 0.253936 | 0.043732 | 0.043732 | 0.043732 | 0.043732 | 0 | 0.024186 | 0.152301 | 4,780 | 84 | 149 | 56.904762 | 0.82231 | 0.045397 | 0 | 0 | 1 | 0 | 0.068072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.014286 | 0 | 0.057143 | 0 | 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 |
1bd85d1873c4b42c8b465294d73f6fd5c76d77ed | 9,292 | py | Python | spacekit/skopes/hst/svm/predict.py | hakkeray/spacekit | f57e3bab80efca418b898996366d4dfb186246e0 | [
"MIT"
] | 1 | 2020-10-14T18:04:07.000Z | 2020-10-14T18:04:07.000Z | spacekit/skopes/hst/svm/predict.py | hakkeray/spacekit | f57e3bab80efca418b898996366d4dfb186246e0 | [
"MIT"
] | null | null | null | spacekit/skopes/hst/svm/predict.py | hakkeray/spacekit | f57e3bab80efca418b898996366d4dfb186246e0 | [
"MIT"
] | null | null | null | """
This module generates predictions using a pre-trained ensemble neural network for unlabeled SVM regression test data and alignment images. The ensemble model is a combination of two neural networks: a MultiLayerPerceptron (for regression test data) and a 3D Image Convolutional Neural Network (CNN). The script inclu... | 33.666667 | 396 | 0.62656 | 1,268 | 9,292 | 4.481861 | 0.248423 | 0.038712 | 0.02094 | 0.017596 | 0.263241 | 0.224177 | 0.170333 | 0.156431 | 0.14517 | 0.128629 | 0 | 0.014277 | 0.2613 | 9,292 | 275 | 397 | 33.789091 | 0.813666 | 0.329638 | 0 | 0.127072 | 1 | 0.005525 | 0.213271 | 0.041451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022099 | false | 0 | 0.049724 | 0 | 0.088398 | 0.127072 | 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 |
9416afea7476965ed4206e1afa4b1c98c8a8e2e2 | 4,808 | py | Python | rascunho/ibge.py | maberf/draft | 0686cfd3938c844563dff7bdce1c4b76ad42ad6a | [
"MIT"
] | null | null | null | rascunho/ibge.py | maberf/draft | 0686cfd3938c844563dff7bdce1c4b76ad42ad6a | [
"MIT"
] | null | null | null | rascunho/ibge.py | maberf/draft | 0686cfd3938c844563dff7bdce1c4b76ad42ad6a | [
"MIT"
] | null | null | null | '''
Spider IPCA v.1
---------------
Captura variação do IPCA do site do IBGE
Para o Blog Ciência de Dados
Thiago Serra F. Carvalho (C073835)
'''
from selenium import webdriver
from bs4 import BeautifulSoup
import pandas as pd
import time
class Captura:
'''
PASSO 1: Abrir o navegador
O objeto webdriver é o... | 34.84058 | 111 | 0.540765 | 576 | 4,808 | 4.447917 | 0.385417 | 0.034348 | 0.021858 | 0.019906 | 0.072209 | 0.045277 | 0.045277 | 0.027322 | 0.027322 | 0.027322 | 0 | 0.010252 | 0.289933 | 4,808 | 138 | 112 | 34.84058 | 0.740187 | 0.239393 | 0 | 0.111111 | 0 | 0 | 0.212093 | 0.108963 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.041667 | false | 0 | 0.055556 | 0 | 0.152778 | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
941d7a4e476aa62949af65296740953c1199a191 | 1,815 | py | Python | stylegan/data_analysis.py | britt0508/ExplainedKinshipCorrect | e0e255ff9531af1436bb9a9fe07256e72a0061f7 | [
"BSD-Source-Code"
] | null | null | null | stylegan/data_analysis.py | britt0508/ExplainedKinshipCorrect | e0e255ff9531af1436bb9a9fe07256e72a0061f7 | [
"BSD-Source-Code"
] | null | null | null | stylegan/data_analysis.py | britt0508/ExplainedKinshipCorrect | e0e255ff9531af1436bb9a9fe07256e72a0061f7 | [
"BSD-Source-Code"
] | null | null | null | import csv
import pandas as pd
from ast import literal_eval
import matplotlib.pyplot as plt
import seaborn as sns
# DATA_PATH = "/content/drive/MyDrive/ExplainedKinshipData/data/all_pairs_also_unrelated_complete.csv"
# data = pd.read_csv(DATA_PATH, converters={"feat1": literal_eval, "feat2": literal_eval})
# print(dat... | 38.617021 | 122 | 0.722865 | 276 | 1,815 | 4.550725 | 0.438406 | 0.027866 | 0.045382 | 0.093153 | 0.253981 | 0.253981 | 0.253981 | 0.106688 | 0.106688 | 0.106688 | 0 | 0.060188 | 0.121212 | 1,815 | 46 | 123 | 39.456522 | 0.727273 | 0.590634 | 0 | 0 | 0 | 0 | 0.23783 | 0.13491 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9423c78a108248ff56d8221e0af10e55045879da | 396 | py | Python | api/serializers.py | AntonioAlfrz/SecuredHome | a3c06c81c20a0b3b00af1cc34296b9256cb00138 | [
"MIT"
] | null | null | null | api/serializers.py | AntonioAlfrz/SecuredHome | a3c06c81c20a0b3b00af1cc34296b9256cb00138 | [
"MIT"
] | null | null | null | api/serializers.py | AntonioAlfrz/SecuredHome | a3c06c81c20a0b3b00af1cc34296b9256cb00138 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from api.models import User, Log
class UserSerializer(serializers.ModelSerializer):
logs = serializers.RelatedField(many=True, read_only=True)
class Meta:
model = User
fields = ('name','token','logs')
class LogSerializer(serializers.ModelSerializer):
... | 26.4 | 62 | 0.689394 | 43 | 396 | 6.302326 | 0.604651 | 0.191882 | 0.103321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20202 | 396 | 15 | 63 | 26.4 | 0.857595 | 0 | 0 | 0.181818 | 0 | 0 | 0.070529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9423dad74e2310d3e32cf63739fb7581d69d1ba6 | 2,346 | py | Python | src/wallet/migrations/0008_migrate_trxs.py | uppsaladatavetare/foobar-api | c63e824ce246b15163e352f5150ef4ecbee81b96 | [
"MIT"
] | 16 | 2015-10-29T14:23:37.000Z | 2020-04-21T00:19:39.000Z | src/wallet/migrations/0008_migrate_trxs.py | uppsaladatavetare/foobar-api | c63e824ce246b15163e352f5150ef4ecbee81b96 | [
"MIT"
] | 74 | 2016-09-14T19:52:32.000Z | 2018-10-03T10:11:16.000Z | src/wallet/migrations/0008_migrate_trxs.py | uppsaladatavetare/foobar-api | c63e824ce246b15163e352f5150ef4ecbee81b96 | [
"MIT"
] | 7 | 2017-02-08T13:11:20.000Z | 2021-08-11T07:29:35.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-18 20:29
from __future__ import unicode_literals
import enum
from django.db.models import Sum
from django.db import migrations
from moneyed import Money
class TrxTypeOld(enum.Enum):
INCOMING = 0
OUTGOING = 1
class TrxType(enum.Enum):
FINAL... | 31.28 | 74 | 0.638534 | 270 | 2,346 | 5.411111 | 0.374074 | 0.028747 | 0.036961 | 0.049281 | 0.170431 | 0.084189 | 0.084189 | 0.084189 | 0.084189 | 0 | 0 | 0.026467 | 0.259165 | 2,346 | 74 | 75 | 31.702703 | 0.814154 | 0.078005 | 0 | 0.052632 | 1 | 0 | 0.044949 | 0.010658 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.017544 | false | 0 | 0.087719 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94273c713ab37d904542b3d0103d1a9ec8a8232d | 20,935 | py | Python | src/system/libs/python/seiscomp3/Shell.py | thefroid/seiscomp3 | 0b05d5550dcea000a93c7d9a39c5347d8786a91a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2015-09-17T22:43:50.000Z | 2017-11-29T20:27:11.000Z | src/system/libs/python/seiscomp3/Shell.py | thefroid/seiscomp3 | 0b05d5550dcea000a93c7d9a39c5347d8786a91a | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2016-04-26T00:03:09.000Z | 2017-12-05T02:24:50.000Z | src/system/libs/python/seiscomp3/Shell.py | salichon/seiscomp3 | 4f7715f9ff9a35e7912c379ebf10446d0bceaeb2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | ############################################################################
# Copyright (C) by gempa GmbH, GFZ Potsdam #
# #
# You can redistribute and/or modify this program under the #
# terms o... | 31.014815 | 96 | 0.459422 | 2,204 | 20,935 | 4.319419 | 0.113884 | 0.021534 | 0.032353 | 0.026471 | 0.616912 | 0.583718 | 0.564916 | 0.53792 | 0.522899 | 0.497479 | 0 | 0.00986 | 0.433198 | 20,935 | 674 | 97 | 31.060831 | 0.792432 | 0.052973 | 0 | 0.597826 | 0 | 0 | 0.211744 | 0.001481 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006522 | 0.01087 | null | null | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
942a3017af0e69609df179fb9df9ebaec85f8069 | 1,115 | py | Python | Python-tools/FaceSaver/face_saver.py | maikelronnau/studies | 794cde51ea69ed6eaee8e38d47dcff6d37fba8b7 | [
"MIT"
] | null | null | null | Python-tools/FaceSaver/face_saver.py | maikelronnau/studies | 794cde51ea69ed6eaee8e38d47dcff6d37fba8b7 | [
"MIT"
] | 2 | 2018-08-30T20:45:12.000Z | 2018-09-14T02:44:06.000Z | Python-tools/FaceSaver/face_saver.py | maikelronnau/studies | 794cde51ea69ed6eaee8e38d47dcff6d37fba8b7 | [
"MIT"
] | null | null | null | import numpy as np
import os
import cv2
from multiprocessing import Process
faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml')
def process_directory(directory):
print 'Processing {}: started'.format(directory)
images = os.listdir(directory)
for img in images:
image = cv2.imrea... | 29.342105 | 89 | 0.572197 | 137 | 1,115 | 4.627737 | 0.445255 | 0.012618 | 0.047319 | 0.089905 | 0.104101 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029077 | 0.290583 | 1,115 | 37 | 90 | 30.135135 | 0.77244 | 0 | 0 | 0 | 0 | 0 | 0.075336 | 0.027803 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
942e7f06e4223544b111045d0bf09989375fa72f | 505 | py | Python | start.py | davionchai/um-7009-bdaa | 9adc304a786e7438568f2f1b1f6ce4bdb079662c | [
"Apache-2.0"
] | null | null | null | start.py | davionchai/um-7009-bdaa | 9adc304a786e7438568f2f1b1f6ce4bdb079662c | [
"Apache-2.0"
] | 1 | 2022-01-18T09:41:25.000Z | 2022-01-18T09:41:25.000Z | start.py | davionchai/um-7009-bdaa | 9adc304a786e7438568f2f1b1f6ce4bdb079662c | [
"Apache-2.0"
] | null | null | null | # db init
from tinydb import TinyDB
from constants.directory import DB_PATH, TRAINING_PATH
def main():
initialize_db()
def initialize_db():
try:
if not TRAINING_PATH.exists():
print(f"Dir - [{TRAINING_PATH}] not found. Proceeding to create the dir.")
TRAINING_PATH.mkdir(paren... | 22.954545 | 86 | 0.659406 | 66 | 505 | 4.772727 | 0.545455 | 0.190476 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227723 | 505 | 21 | 87 | 24.047619 | 0.807692 | 0.013861 | 0 | 0 | 0 | 0 | 0.247984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94307fbfc839df25d3fad02f6fd8299ed5a1b1c1 | 877 | py | Python | leetcode/0-250/335-76. Minimum Window Substring.py | palash24/algorithms-and-data-structures | 164be7d1a501a21af808673888964bbab36243a1 | [
"MIT"
] | 23 | 2018-11-06T03:54:00.000Z | 2022-03-14T13:30:40.000Z | leetcode/0-250/335-76. Minimum Window Substring.py | palash24/algorithms-and-data-structures | 164be7d1a501a21af808673888964bbab36243a1 | [
"MIT"
] | null | null | null | leetcode/0-250/335-76. Minimum Window Substring.py | palash24/algorithms-and-data-structures | 164be7d1a501a21af808673888964bbab36243a1 | [
"MIT"
] | 5 | 2019-05-24T16:56:45.000Z | 2022-03-10T17:29:10.000Z | # 76. Minimum Window Substring
import collections
class Solution:
def minWindow(self, s: str, t: str) -> str:
cnt = collections.Counter(t)
fix_cnt = cnt.copy()
n = rem = len(t)
l = r = 0
ans = None
while r < len(s):
while r < len(s) and rem > 0:
... | 30.241379 | 68 | 0.371722 | 114 | 877 | 2.842105 | 0.324561 | 0.074074 | 0.061728 | 0.061728 | 0.067901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029748 | 0.50171 | 877 | 29 | 69 | 30.241379 | 0.71167 | 0.031927 | 0 | 0 | 0 | 0 | 0.021226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.16 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
943348300720cc80d81688b70013a870e1f308db | 5,680 | py | Python | hyperadmin/states.py | zbyte64/django-hyperadmin | 9ac2ae284b76efb3c50a1c2899f383a27154cb54 | [
"BSD-3-Clause"
] | 25 | 2015-01-26T11:37:22.000Z | 2021-04-05T17:21:05.000Z | hyperadmin/states.py | webcube/django-hyperadmin | c6fcbd227098ea02a2c1a2865664fbbef92107dc | [
"BSD-3-Clause"
] | 1 | 2015-04-13T04:19:49.000Z | 2015-04-13T04:19:49.000Z | hyperadmin/states.py | webcube/django-hyperadmin | c6fcbd227098ea02a2c1a2865664fbbef92107dc | [
"BSD-3-Clause"
] | 2 | 2017-05-24T13:33:17.000Z | 2019-11-14T06:24:48.000Z | from copy import copy
from django.utils.http import urlencode
from django.utils.datastructures import MergeDict
from django.http import QueryDict
from hyperadmin.links import LinkCollectionProvider, LinkCollectorMixin
class State(MergeDict):
def __init__(self, substates=[], data={}):
self.active_diction... | 31.910112 | 100 | 0.594542 | 633 | 5,680 | 5.127962 | 0.199052 | 0.04313 | 0.04313 | 0.020949 | 0.069008 | 0.069008 | 0.069008 | 0.069008 | 0.069008 | 0.069008 | 0 | 0.000252 | 0.300176 | 5,680 | 177 | 101 | 32.090395 | 0.816352 | 0.036092 | 0 | 0.137405 | 0 | 0 | 0.037509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21374 | false | 0 | 0.038168 | 0.083969 | 0.480916 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
944c0444be36853f3a762f2e2f840cd5bc072676 | 2,458 | py | Python | src/oci/cloud_guard/models/update_target_detector_rule_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/cloud_guard/models/update_target_detector_rule_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/cloud_guard/models/update_target_detector_rule_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 34.619718 | 245 | 0.704638 | 282 | 2,458 | 5.900709 | 0.425532 | 0.16226 | 0.054087 | 0.048077 | 0.323918 | 0.256611 | 0.168269 | 0.11899 | 0.11899 | 0.11899 | 0 | 0.009479 | 0.227421 | 2,458 | 70 | 246 | 35.114286 | 0.866772 | 0.523596 | 0 | 0 | 0 | 0 | 0.066866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
944d4863c2b49e4ad6cf9e7d921f530ca9d61704 | 1,174 | py | Python | generate_key.py | dfiel/TweetOrYeet | 8f92a2bf153d633b9954c221f4c0ade12491b90a | [
"MIT"
] | null | null | null | generate_key.py | dfiel/TweetOrYeet | 8f92a2bf153d633b9954c221f4c0ade12491b90a | [
"MIT"
] | null | null | null | generate_key.py | dfiel/TweetOrYeet | 8f92a2bf153d633b9954c221f4c0ade12491b90a | [
"MIT"
] | null | null | null | from cryptography.fernet import Fernet
import os
def validated_input():
while True:
text = input("Enter Choice: ")
if text != 'Y' and text != 'N':
print("Invalid Input")
print()
continue
return text
def generate_fernet_key():
if os.path.exists('fer... | 32.611111 | 88 | 0.517036 | 130 | 1,174 | 4.553846 | 0.546154 | 0.060811 | 0.057432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.373083 | 1,174 | 36 | 89 | 32.611111 | 0.804348 | 0 | 0 | 0.2 | 0 | 0 | 0.44766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.233333 | 0.466667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
944f7fb44853067aa20905eb80412dcbeeac8cdb | 449 | py | Python | detector/migrations/0003_alter_measurement_mode.py | SPIN-RD/data_analysis | b2ec9ca008781f3015ec3780a858de0dac4549b9 | [
"MIT"
] | null | null | null | detector/migrations/0003_alter_measurement_mode.py | SPIN-RD/data_analysis | b2ec9ca008781f3015ec3780a858de0dac4549b9 | [
"MIT"
] | null | null | null | detector/migrations/0003_alter_measurement_mode.py | SPIN-RD/data_analysis | b2ec9ca008781f3015ec3780a858de0dac4549b9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-21 12:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('detector', '0002_auto_20210821_1201'),
]
operations = [
migrations.AlterField(
model_name='measurement',
name='mode'... | 23.631579 | 109 | 0.628062 | 50 | 449 | 5.52 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099398 | 0.260579 | 449 | 18 | 110 | 24.944444 | 0.731928 | 0.100223 | 0 | 0 | 1 | 0 | 0.226368 | 0.057214 | 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 |
94556addbf8b82be0922fc6157fda0ff5c155248 | 7,195 | py | Python | json_handler/__init__.py | WexxanBest/json_handler | 2ba52718102ad882f03fd84969e39931910f8e1a | [
"MIT"
] | 1 | 2021-10-19T13:44:34.000Z | 2021-10-19T13:44:34.000Z | json_handler/__init__.py | WexxanBest/json_handler | 2ba52718102ad882f03fd84969e39931910f8e1a | [
"MIT"
] | null | null | null | json_handler/__init__.py | WexxanBest/json_handler | 2ba52718102ad882f03fd84969e39931910f8e1a | [
"MIT"
] | null | null | null | from pathlib import Path
import os
from json_handler.utils import save_as_json, load_from_json, create_new_file
class List(list):
def __init__(self, seq=(), on_change=None):
if on_change is None:
self.__on_change__ = lambda x: None
else:
self.__on_change__ = on_change
... | 29.979167 | 114 | 0.603197 | 881 | 7,195 | 4.430193 | 0.174801 | 0.061491 | 0.070715 | 0.032795 | 0.134512 | 0.076352 | 0.061491 | 0.061491 | 0.061491 | 0.061491 | 0 | 0.000391 | 0.288395 | 7,195 | 239 | 115 | 30.104603 | 0.761914 | 0.15747 | 0 | 0.099338 | 0 | 0 | 0.050291 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 1 | 0.238411 | false | 0 | 0.019868 | 0.092715 | 0.417219 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94718b16055ae616596fb158c43a68ad0465fe4b | 6,914 | py | Python | server/starsystem.py | remremrem/EV-Tribute | c7dd412eedad4b8eba0cf2d4c95d539d4b80c852 | [
"MIT"
] | 1 | 2015-06-23T03:48:03.000Z | 2015-06-23T03:48:03.000Z | server/starsystem.py | remremrem/EV-Tribute | c7dd412eedad4b8eba0cf2d4c95d539d4b80c852 | [
"MIT"
] | null | null | null | server/starsystem.py | remremrem/EV-Tribute | c7dd412eedad4b8eba0cf2d4c95d539d4b80c852 | [
"MIT"
] | null | null | null | import sys,os,random
class Body:
def __init__(self):
self.name = "Planet no. 1"
self.type = "body"
self.sprite = "null"
self.dock = 0
self.race = "human"
self.faction = "rebel"
self.wealth = 20 # in trillions
self.population = 70 # in bil... | 33.892157 | 122 | 0.448655 | 687 | 6,914 | 4.491994 | 0.149927 | 0.068049 | 0.081659 | 0.08814 | 0.392093 | 0.306546 | 0.220674 | 0.186325 | 0.147116 | 0.058328 | 0 | 0.025026 | 0.439398 | 6,914 | 203 | 123 | 34.059113 | 0.771156 | 0.029939 | 0 | 0.438503 | 0 | 0 | 0.037026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.005348 | null | null | 0.026738 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
947aad7e403fb4127e29b67ef21419ba51759e96 | 1,047 | py | Python | scripts/ssc/MNIST_preprocessing/dataloader_test.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | scripts/ssc/MNIST_preprocessing/dataloader_test.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | 1 | 2020-09-22T13:04:58.000Z | 2020-09-22T13:05:23.000Z | scripts/ssc/MNIST_preprocessing/dataloader_test.py | MrBellamonte/AEs-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | import os
import torch
import numpy as np
from torch.utils.data import TensorDataset, DataLoader
from src.data_preprocessing.witness_complex_offline.config import ConfigWC
from src.datasets.datasets import SwissRoll
if __name__ == "__main__":
n_samples = 5
#
labels = torch.from_numpy(np.array(range(n_sa... | 30.794118 | 82 | 0.69532 | 137 | 1,047 | 5.10219 | 0.474453 | 0.051502 | 0.042918 | 0.060086 | 0.263233 | 0.263233 | 0.263233 | 0.143062 | 0.143062 | 0 | 0 | 0.005814 | 0.178606 | 1,047 | 34 | 83 | 30.794118 | 0.806977 | 0.313276 | 0 | 0 | 0 | 0 | 0.157969 | 0.076164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
947ebed65bcada5a3f48803a1f559572a4c5fa9e | 2,688 | py | Python | Python/Compare the Triplets.py | lin826/Hackerrank-Codes | 6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403 | [
"MIT"
] | 70 | 2020-10-04T09:23:15.000Z | 2022-02-01T09:44:39.000Z | Python/Compare the Triplets.py | lin826/Hackerrank-Codes | 6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403 | [
"MIT"
] | 148 | 2020-06-05T15:32:12.000Z | 2020-11-01T08:29:01.000Z | Python/Compare the Triplets.py | lin826/Hackerrank-Codes | 6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403 | [
"MIT"
] | 298 | 2020-10-04T04:27:01.000Z | 2022-03-07T04:02:59.000Z | '''Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from 1 to 100 for three categories: problem clarity, originality, and difficulty.
The rating for Alice's challenge is the triplet a = (a[0], a[1], a[2]), and the rating for Bob's challenge is the t... | 22.214876 | 203 | 0.669271 | 480 | 2,688 | 3.7375 | 0.289583 | 0.016722 | 0.031215 | 0.008361 | 0.179487 | 0.133779 | 0.027871 | 0.027871 | 0.027871 | 0.027871 | 0 | 0.042125 | 0.222842 | 2,688 | 120 | 204 | 22.4 | 0.814744 | 0.81808 | 0 | 0 | 0 | 0 | 0.047817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
947f2096032e935caa47b5b4ee0ac97865845efd | 3,805 | py | Python | vitrage/datasources/collectd/driver.py | HoonMinJeongUm/Hunmin-vitrage | 37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6 | [
"Apache-2.0"
] | null | null | null | vitrage/datasources/collectd/driver.py | HoonMinJeongUm/Hunmin-vitrage | 37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6 | [
"Apache-2.0"
] | null | null | null | vitrage/datasources/collectd/driver.py | HoonMinJeongUm/Hunmin-vitrage | 37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 - Nokia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | 36.941748 | 77 | 0.673587 | 436 | 3,805 | 5.681193 | 0.332569 | 0.035527 | 0.035527 | 0.03149 | 0.05975 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00316 | 0.251511 | 3,805 | 102 | 78 | 37.303922 | 0.866573 | 0.150591 | 0 | 0.029412 | 0 | 0 | 0.037613 | 0.013677 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.132353 | 0.102941 | 0.455882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
947fa9c1086bcfac466ab21e8a33786309e91284 | 9,032 | py | Python | Intro to Python/gaussian_code_exercise.py | randymelder/udaipy | a537adc56abca3839ea396a07acebf396d8a2143 | [
"MIT"
] | null | null | null | Intro to Python/gaussian_code_exercise.py | randymelder/udaipy | a537adc56abca3839ea396a07acebf396d8a2143 | [
"MIT"
] | null | null | null | Intro to Python/gaussian_code_exercise.py | randymelder/udaipy | a537adc56abca3839ea396a07acebf396d8a2143 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Gaussian Code Exercise
#
# Read through the code below and fill out the TODOs. You'll find a cell at the end of the Jupyter notebook containing unit tests. After you've run the code cell with the Gaussian class, you can run the final cell to check that your code functions as ... | 32.724638 | 355 | 0.591563 | 1,178 | 9,032 | 4.472835 | 0.234295 | 0.018979 | 0.020497 | 0.01822 | 0.140824 | 0.087872 | 0.07193 | 0.037199 | 0.021636 | 0.021636 | 0 | 0.011381 | 0.32872 | 9,032 | 275 | 356 | 32.843636 | 0.857661 | 0.432795 | 0 | 0.183673 | 0 | 0 | 0.08456 | 0 | 0 | 0 | 0 | 0.025455 | 0.05102 | 1 | 0.112245 | false | 0.010204 | 0.061224 | 0 | 0.234694 | 0.061224 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
94838bd8944b9e189d4ca81ff812c5b01fdeeb24 | 6,667 | py | Python | server/get_metadata.py | arvados/get-evidence | 7a02bf157b33c1abaa6a04ba057e039cdcaa3652 | [
"CC-BY-3.0"
] | 2 | 2015-04-11T12:26:12.000Z | 2016-06-21T07:57:04.000Z | server/get_metadata.py | madprime/get-evidence | bd567ec94e83070ff5810d916b18167189658298 | [
"CC-BY-3.0"
] | null | null | null | server/get_metadata.py | madprime/get-evidence | bd567ec94e83070ff5810d916b18167189658298 | [
"CC-BY-3.0"
] | 3 | 2015-02-05T20:58:06.000Z | 2017-01-29T15:37:22.000Z | #!/usr/bin/python
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)
"""
usage: %prog genome_gff_file
"""
# Process the sorted genome GFF data and the json report of coding region
# coverage to get and return meta data.
import gzip
import re
import sys
from utils import gff
D... | 37.666667 | 79 | 0.649018 | 893 | 6,667 | 4.658455 | 0.24748 | 0.036779 | 0.019471 | 0.014423 | 0.171394 | 0.117308 | 0.0875 | 0.033413 | 0.017067 | 0 | 0 | 0.006954 | 0.266687 | 6,667 | 176 | 80 | 37.880682 | 0.843935 | 0.20444 | 0 | 0.083333 | 0 | 0 | 0.069709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
846eedd7c20cd488cf3fd340b15549f368cc5728 | 2,754 | py | Python | oled/render.py | laurence-diack/fluidsynth-opi | 570e85894f18dd1027558bcb2e9e4c2c1671d8ed | [
"MIT"
] | 17 | 2018-01-29T09:12:04.000Z | 2022-02-10T16:31:37.000Z | oled/render.py | AguaPotavel/ssd1306 | 4b7081b85ac7d7cc8d37ca0ffe0ed34bfae1fe0b | [
"MIT"
] | null | null | null | oled/render.py | AguaPotavel/ssd1306 | 4b7081b85ac7d7cc8d37ca0ffe0ed34bfae1fe0b | [
"MIT"
] | 11 | 2018-04-21T22:07:56.000Z | 2021-04-21T19:14:18.000Z | #!/usr/bin/env python
# The MIT License (MIT)
#
# Copyright (c) 2015 Richard Hull
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the righ... | 35.307692 | 79 | 0.704067 | 402 | 2,754 | 4.791045 | 0.477612 | 0.045691 | 0.012461 | 0.017134 | 0.043614 | 0.043614 | 0.033229 | 0.033229 | 0 | 0 | 0 | 0.014359 | 0.216049 | 2,754 | 77 | 80 | 35.766234 | 0.877721 | 0.77451 | 0 | 0 | 0 | 0 | 0.001828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
847868d3c9616a1cdde5e7750cd9b87f9b453bed | 988 | py | Python | application/__init__.py | oicr-gsi/dashi | 34bf96a7d447095df525df3ad27dbe10f4e3dde0 | [
"MIT"
] | 2 | 2020-03-27T21:20:20.000Z | 2022-02-09T07:42:51.000Z | application/__init__.py | oicr-gsi/dashi | 34bf96a7d447095df525df3ad27dbe10f4e3dde0 | [
"MIT"
] | 89 | 2019-06-06T18:31:19.000Z | 2022-03-07T20:38:36.000Z | application/__init__.py | oicr-gsi/dashi | 34bf96a7d447095df525df3ad27dbe10f4e3dde0 | [
"MIT"
] | 2 | 2019-06-06T17:50:53.000Z | 2019-06-06T17:52:32.000Z | from flask import Flask
from flask_caching import Cache
from prometheus_flask_exporter import PrometheusMetrics
import pandas
import sys
import numpy
## Set up Flask application, attach extensions, and load configuration
def create_app(debug=False):
# pandas debug options
pandas.set_option('display.max_rows',... | 26 | 70 | 0.711538 | 122 | 988 | 5.581967 | 0.434426 | 0.026432 | 0.044053 | 0.064611 | 0.073421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213563 | 988 | 37 | 71 | 26.702703 | 0.876448 | 0.211538 | 0 | 0 | 0 | 0 | 0.083225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.4 | 0 | 0.5 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
847e429caaf13eb7d884539ae5c14baada32ea44 | 2,469 | py | Python | src/samstatic_flask/app.py | city10th/samstatic_flask | f8a8934f724d85ab2eb7ae680aa7d14747377a94 | [
"MIT"
] | null | null | null | src/samstatic_flask/app.py | city10th/samstatic_flask | f8a8934f724d85ab2eb7ae680aa7d14747377a94 | [
"MIT"
] | null | null | null | src/samstatic_flask/app.py | city10th/samstatic_flask | f8a8934f724d85ab2eb7ae680aa7d14747377a94 | [
"MIT"
] | null | null | null | from functools import lru_cache
from flask import Flask
from flask.ctx import RequestContext
from .config import Option
from .ctx import RequestContextWithSamStatic
from .helper import set_samstatic_default_parm
class FlaskWithSamStatic(Flask):
def __init__(self, *Flask_args, **Flask_kwargs):
super().__i... | 44.089286 | 120 | 0.689753 | 288 | 2,469 | 5.600694 | 0.28125 | 0.213887 | 0.078115 | 0.069436 | 0.212647 | 0.119033 | 0.083075 | 0.083075 | 0.083075 | 0.083075 | 0 | 0.002067 | 0.216282 | 2,469 | 55 | 121 | 44.890909 | 0.831525 | 0.081409 | 0 | 0 | 0 | 0 | 0.090146 | 0.012815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.146341 | 0 | 0.414634 | 0.04878 | 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 |
847f1e5232818e65137a7c49cccb4f03a7eb9c35 | 3,334 | py | Python | deploy/auto_scaling.py | danielSbastos/blue-green-aws | bb78448edd2496d69f4802ef7337ce648a965be3 | [
"MIT"
] | null | null | null | deploy/auto_scaling.py | danielSbastos/blue-green-aws | bb78448edd2496d69f4802ef7337ce648a965be3 | [
"MIT"
] | null | null | null | deploy/auto_scaling.py | danielSbastos/blue-green-aws | bb78448edd2496d69f4802ef7337ce648a965be3 | [
"MIT"
] | null | null | null | import time
from deploy.support import Client
class AutoScaling:
def __init__(self, state_file_content):
self.auto_scaling_client = Client.auto_scaling()
self.state_file_content = state_file_content
def enter_standby(self, instances_ids, green_blue):
if not self.state_file_content[g... | 40.168675 | 99 | 0.670966 | 350 | 3,334 | 6.062857 | 0.265714 | 0.089067 | 0.158341 | 0.179076 | 0.500943 | 0.487276 | 0.359566 | 0.359566 | 0.28181 | 0.28181 | 0 | 0.005756 | 0.218356 | 3,334 | 82 | 100 | 40.658537 | 0.808519 | 0 | 0 | 0.149254 | 0 | 0 | 0.14847 | 0.039592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134328 | false | 0 | 0.029851 | 0.014925 | 0.238806 | 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 |
8485f70cfa4995ce66447c98e07379ae489ca9e8 | 10,556 | py | Python | hstgrism/grismapcorr.py | bkornpob/hstgrism | f65d37454c486e1681a9f70eecbc0f3ca83c2324 | [
"MIT"
] | null | null | null | hstgrism/grismapcorr.py | bkornpob/hstgrism | f65d37454c486e1681a9f70eecbc0f3ca83c2324 | [
"MIT"
] | null | null | null | hstgrism/grismapcorr.py | bkornpob/hstgrism | f65d37454c486e1681a9f70eecbc0f3ca83c2324 | [
"MIT"
] | null | null | null | # Kornpob Bhirombhakdi
# kbhirombhakdi@stsci.edu
import numpy as np
from scipy.interpolate import interp2d
import copy
class GrismApCorr:
"""
GrismApCorr is a class containing tables for aperture correction (i.e., apcorr = f(wavelength, apsize)) in aXe reduction. These tables are from ISRs. Interpolaton model... | 56.449198 | 313 | 0.464286 | 1,389 | 10,556 | 3.511159 | 0.263499 | 0.022145 | 0.02358 | 0.037728 | 0.198688 | 0.142711 | 0.121386 | 0.105598 | 0.105598 | 0.105598 | 0 | 0.230864 | 0.3849 | 10,556 | 186 | 314 | 56.752688 | 0.520253 | 0.184824 | 0 | 0.294872 | 0 | 0 | 0.098565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.019231 | 0 | 0.064103 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8489289f1dc2f046552b0600de1034290547537c | 348 | py | Python | EvoMusicCompanion/ea/util.py | Jerryhu1/MasterThesis | 0e9fe1b9ae7620bbf4c7546d8d408ccea992ec5b | [
"MIT"
] | null | null | null | EvoMusicCompanion/ea/util.py | Jerryhu1/MasterThesis | 0e9fe1b9ae7620bbf4c7546d8d408ccea992ec5b | [
"MIT"
] | null | null | null | EvoMusicCompanion/ea/util.py | Jerryhu1/MasterThesis | 0e9fe1b9ae7620bbf4c7546d8d408ccea992ec5b | [
"MIT"
] | null | null | null | from music21 import interval, pitch
def transpose_piece(piece, key):
k = piece.analyze('key')
if k.tonicPitchNameWithCase.islower():
return None
i = interval.Interval(k.tonic, pitch.Pitch(key))
new_piece = piece.transpose(i)
return new_piece
def flatten(l):
return [item for sublist ... | 19.333333 | 54 | 0.686782 | 49 | 348 | 4.816327 | 0.510204 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007326 | 0.215517 | 348 | 17 | 55 | 20.470588 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.008671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 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 |
848fe74589053694644bcad6b55e06f1a3933401 | 32,153 | py | Python | DNATool2/Mutation.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | 3 | 2016-11-11T06:11:03.000Z | 2021-09-12T22:13:51.000Z | DNATool2/Mutation.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | null | null | null | DNATool2/Mutation.py | shambo001/peat | 7a26e896aa9914b084a9064df09ed15df4047cf3 | [
"MIT"
] | 2 | 2016-02-15T16:10:36.000Z | 2018-02-27T10:33:21.000Z | #!/usr/bin/env python
#
# Protein Engineering Analysis Tool DataBase (PEATDB)
# Copyright (C) 2010 Damien Farrell & Jens Erik Nielsen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ver... | 30.134021 | 225 | 0.557055 | 3,920 | 32,153 | 4.417602 | 0.179337 | 0.026044 | 0.009239 | 0.010972 | 0.168043 | 0.122192 | 0.087313 | 0.064792 | 0.058902 | 0.05382 | 0 | 0.015229 | 0.317886 | 32,153 | 1,066 | 226 | 30.162289 | 0.774348 | 0.203185 | 0 | 0.166016 | 0 | 0.001953 | 0.074652 | 0.004312 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025391 | null | null | 0.037109 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
84939ced5befe433cb8498d6dccc5a7e55882a2e | 236 | py | Python | test_gcat.py | thecrux4020/black-widow | 2bf1926ecf9431f2e88cc677554264f86c393a19 | [
"MIT"
] | 1 | 2019-01-30T14:09:09.000Z | 2019-01-30T14:09:09.000Z | test_gcat.py | thecrux4020/black-widow | 2bf1926ecf9431f2e88cc677554264f86c393a19 | [
"MIT"
] | null | null | null | test_gcat.py | thecrux4020/black-widow | 2bf1926ecf9431f2e88cc677554264f86c393a19 | [
"MIT"
] | null | null | null | import gc2
gcat = gc2.Gcat()
gcat.checkCommands()
print gcat.pending_tasks
for task in gcat.pending_tasks:
gcat.sendEmail('daskjdajhdagdjhsagdsahdsgajdgashdfaghdasfdhas', task['task_id'])
gcat.delete_pending_task(task['task_id'])
| 19.666667 | 81 | 0.79661 | 30 | 236 | 6.066667 | 0.466667 | 0.131868 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009302 | 0.088983 | 236 | 11 | 82 | 21.454545 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.190678 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
849c298ed26bbbbaeb124ceca2c66f8a671e5b2d | 370 | py | Python | setup.py | abcdabcd987/torchprofile | 80cb62ee2401f3118188e44f8796f0f98fd7eebf | [
"MIT"
] | 216 | 2019-09-09T19:45:07.000Z | 2020-06-15T20:17:55.000Z | setup.py | tanglang96/torchprofile | e918353e95e19a6bc9e02794d5c96510ed858741 | [
"MIT"
] | 10 | 2020-08-27T05:00:31.000Z | 2022-03-18T11:10:09.000Z | setup.py | tanglang96/torchprofile | e918353e95e19a6bc9e02794d5c96510ed858741 | [
"MIT"
] | 16 | 2020-07-16T00:53:28.000Z | 2022-03-09T03:09:24.000Z | from setuptools import find_packages, setup
from torchprofile import __version__
setup(
name='torchprofile',
version=__version__,
packages=find_packages(exclude=['examples']),
install_requires=[
'numpy>=1.14',
'torch>=1.4',
'torchvision>=0.4',
],
url='https://github.com... | 21.764706 | 55 | 0.645946 | 40 | 370 | 5.7 | 0.7 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023729 | 0.202703 | 370 | 16 | 56 | 23.125 | 0.749153 | 0 | 0 | 0 | 0 | 0 | 0.281081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
849f1663037c03aefdc00d959fd1e18344b99975 | 806 | py | Python | mlflow/utils/mlflow_tags.py | kylemeyer1/mlflow | 56d080707853fedcb0ddc5febf4d30ff3e47000e | [
"Apache-2.0"
] | 2 | 2019-09-09T23:45:08.000Z | 2021-11-02T04:35:49.000Z | mlflow/utils/mlflow_tags.py | kylemeyer1/mlflow | 56d080707853fedcb0ddc5febf4d30ff3e47000e | [
"Apache-2.0"
] | null | null | null | mlflow/utils/mlflow_tags.py | kylemeyer1/mlflow | 56d080707853fedcb0ddc5febf4d30ff3e47000e | [
"Apache-2.0"
] | null | null | null | """
File containing all of the run tags in the mlflow. namespace.
"""
MLFLOW_DATABRICKS_NOTEBOOK_ID = "mlflow.databricks.notebookID"
MLFLOW_DATABRICKS_NOTEBOOK_PATH = "mlflow.databricks.notebookPath"
MLFLOW_DATABRICKS_WEBAPP_URL = "mlflow.databricks.webappURL"
MLFLOW_DATABRICKS_RUN_URL = "mlflow.databricks.runURL"
MLFL... | 42.421053 | 70 | 0.832506 | 106 | 806 | 5.943396 | 0.358491 | 0.304762 | 0.107937 | 0.07619 | 0.093651 | 0.093651 | 0.093651 | 0 | 0 | 0 | 0 | 0 | 0.07196 | 806 | 18 | 71 | 44.777778 | 0.842246 | 0.075682 | 0 | 0 | 0 | 0 | 0.423338 | 0.290366 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
84a012f24f108575663854888f3fc180d2554f18 | 1,783 | py | Python | tests/parse_string_jsc_test.py | xmzxmz/Python_jsonsimpleconfig | 7e7d15bb91c22156a8a54323b57bb0d5424dd06a | [
"MIT"
] | null | null | null | tests/parse_string_jsc_test.py | xmzxmz/Python_jsonsimpleconfig | 7e7d15bb91c22156a8a54323b57bb0d5424dd06a | [
"MIT"
] | null | null | null | tests/parse_string_jsc_test.py | xmzxmz/Python_jsonsimpleconfig | 7e7d15bb91c22156a8a54323b57bb0d5424dd06a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# * ********************************************************************* *
# * Copyright (C) 2020 by xmz *
# * ********************************************************************* *
"""
JSON Simple Config Tests - Parsing
"""
__author__ = "Marcin Ze... | 36.387755 | 113 | 0.35502 | 98 | 1,783 | 6.132653 | 0.55102 | 0.083195 | 0.036606 | 0.153078 | 0.163062 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003658 | 0.233315 | 1,783 | 48 | 114 | 37.145833 | 0.435991 | 0.320808 | 0 | 0 | 0 | 0 | 0.167164 | 0.077612 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84a0c42a501327d6e6e83f835c0bdd92be6060d5 | 13,096 | py | Python | holominecraft.py | jankais3r/HoloMinecraft | 2a78ead99a0a4287f0c6c8e616996a2c28affe95 | [
"MIT"
] | 4 | 2020-12-31T01:54:19.000Z | 2021-09-27T15:10:45.000Z | holominecraft.py | jankais3r/HoloMinecraft | 2a78ead99a0a4287f0c6c8e616996a2c28affe95 | [
"MIT"
] | null | null | null | holominecraft.py | jankais3r/HoloMinecraft | 2a78ead99a0a4287f0c6c8e616996a2c28affe95 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import math
import time
import ctypes
import socket
import urllib.request
from threading import Event, Thread
from socketserver import ThreadingMixIn
from http.server import BaseHTTPRequestHandler, HTTPServer
try:
import mss
except:
print('Inst... | 35.978022 | 391 | 0.60171 | 1,547 | 13,096 | 5.064641 | 0.267615 | 0.005871 | 0.019655 | 0.009955 | 0.355201 | 0.314359 | 0.284876 | 0.281302 | 0.256286 | 0.256286 | 0 | 0.041278 | 0.230452 | 13,096 | 363 | 392 | 36.077135 | 0.736158 | 0.01909 | 0 | 0.255319 | 0 | 0.033435 | 0.651295 | 0.210201 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009119 | false | 0.012158 | 0.048632 | 0 | 0.094225 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84a3e9346e45cdbf522211ee45267fc97ad43b01 | 2,079 | py | Python | service/src/repositories/job.py | xuqiongkai/ALTER | a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7 | [
"MIT"
] | 8 | 2019-09-18T01:14:07.000Z | 2022-02-05T03:43:24.000Z | service/src/repositories/job.py | xuqiongkai/ALTER | a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7 | [
"MIT"
] | 4 | 2019-11-15T03:09:52.000Z | 2022-03-24T15:01:55.000Z | service/src/repositories/job.py | xuqiongkai/ALTER | a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7 | [
"MIT"
] | 4 | 2019-09-17T22:17:30.000Z | 2022-02-05T03:43:28.000Z | from models import Job
from models import History
# class JobRepository:
# @staticmethod
# def get(user_id, task_id, doc_num):
# """ Query a user by name """
# return Job.query.filter_by(user_id=user_id, task_id=task_id, doc_num=doc_num).one()
# @staticmethod
# def create(user_id, task... | 30.130435 | 93 | 0.604137 | 278 | 2,079 | 4.327338 | 0.172662 | 0.069825 | 0.086451 | 0.089776 | 0.491272 | 0.39734 | 0.266002 | 0.154613 | 0.154613 | 0.154613 | 0 | 0 | 0.278499 | 2,079 | 68 | 94 | 30.573529 | 0.802 | 0.483405 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0.133333 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
84a49193faa3400bd4fa365a90e6b414e14d0e54 | 544 | py | Python | PyCharm/primer11.py | PervykhDarya/LR3 | 55a4c379c29e167eb3257b4cff4cf9b717906236 | [
"MIT"
] | null | null | null | PyCharm/primer11.py | PervykhDarya/LR3 | 55a4c379c29e167eb3257b4cff4cf9b717906236 | [
"MIT"
] | null | null | null | PyCharm/primer11.py | PervykhDarya/LR3 | 55a4c379c29e167eb3257b4cff4cf9b717906236 | [
"MIT"
] | null | null | null | # !/usr/bin/env python3
# -*- cosing: utf-8 -*-
if __name__ == "__main__":
with open("test.txt", "w", encoding="utf-8") as fileptr:
print(
"UTF-8 is a variable-width character encoding used for electronic communication.",
file=fileptr
)
print(
"UTF-8 is ... | 30.222222 | 94 | 0.544118 | 67 | 544 | 4.298507 | 0.701493 | 0.055556 | 0.104167 | 0.111111 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036212 | 0.340074 | 544 | 18 | 95 | 30.222222 | 0.766017 | 0.079044 | 0 | 0.428571 | 0 | 0 | 0.462926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84a547509ec65dec6e191c361cddf25cb75a0e8e | 1,153 | py | Python | backend/urls.py | worm2fed/itsphere_hakaton | 5a04741208497935396198bc5e6b93e133d90126 | [
"Unlicense"
] | null | null | null | backend/urls.py | worm2fed/itsphere_hakaton | 5a04741208497935396198bc5e6b93e133d90126 | [
"Unlicense"
] | null | null | null | backend/urls.py | worm2fed/itsphere_hakaton | 5a04741208497935396198bc5e6b93e133d90126 | [
"Unlicense"
] | null | null | null | import django
from django.conf import settings
from django.contrib import admin
from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter
from backend.views import IndexView
from rest_framework_jwt.views import obtain_jwt_token, verify_jwt_token
from apps.auth_api import views
router... | 28.121951 | 72 | 0.724198 | 151 | 1,153 | 5.384106 | 0.384106 | 0.03936 | 0.02583 | 0.051661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134432 | 1,153 | 40 | 73 | 28.825 | 0.814629 | 0.051171 | 0 | 0 | 0 | 0 | 0.105408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.310345 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
84abbac99b299b7a8c9758a8ae39816ceda356cf | 1,734 | py | Python | raiden/constants.py | anmolshl/raiden | f1cecb68cb43a2c00b2f719eadbe83137611a92a | [
"MIT"
] | null | null | null | raiden/constants.py | anmolshl/raiden | f1cecb68cb43a2c00b2f719eadbe83137611a92a | [
"MIT"
] | null | null | null | raiden/constants.py | anmolshl/raiden | f1cecb68cb43a2c00b2f719eadbe83137611a92a | [
"MIT"
] | null | null | null | UINT64_MAX = 2 ** 64 - 1
UINT64_MIN = 0
INT64_MAX = 2 ** 63 - 1
INT64_MIN = -(2 ** 63)
UINT256_MAX = 2 ** 256 - 1
# Deployed to Ropsten revival on 2017-09-03 from commit f4f8dcbe791b7be8bc15475f79ad9cbbfe15435b
ROPSTEN_REGISTRY_ADDRESS = '0x66eea3159A01d134DD64Bfe36fde4bE9ED9c1695'
ROPSTEN_DISCOVERY_ADDRESS = '0x1E3... | 26.272727 | 96 | 0.764706 | 238 | 1,734 | 5.369748 | 0.613445 | 0.00939 | 0.026604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165414 | 0.156286 | 1,734 | 65 | 97 | 26.676923 | 0.708134 | 0.363899 | 0 | 0 | 0 | 0 | 0.179487 | 0.115385 | 0.025641 | 0 | 0.115385 | 0.015385 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84ad50f2f03d0cad17c4fe4359296551cb23b81c | 2,550 | py | Python | microphone.py | nittika/music-transcription | 5468b30055ef45b54517ea3cd62d380a344977cc | [
"MIT"
] | 42 | 2015-02-07T19:19:39.000Z | 2022-03-23T20:00:13.000Z | microphone.py | nittika/music-transcription | 5468b30055ef45b54517ea3cd62d380a344977cc | [
"MIT"
] | 1 | 2021-08-05T12:56:27.000Z | 2021-08-05T12:56:27.000Z | microphone.py | nittika/music-transcription | 5468b30055ef45b54517ea3cd62d380a344977cc | [
"MIT"
] | 19 | 2015-06-10T19:38:32.000Z | 2021-03-12T00:28:19.000Z | # CITE http://people.csail.mit.edu/hubert/pyaudio/
import pyaudio, time
class Microphone(object):
"""Sets up an instance of a microphone recording stream using PyAudio."""
def __init__(self, format=None, channels=None, rate=None):
self.format = format or pyaudio.paInt16 # records in WAV format; 16-bit integers
s... | 30.357143 | 82 | 0.690588 | 339 | 2,550 | 5.147493 | 0.41003 | 0.052149 | 0.017192 | 0.024069 | 0.143266 | 0.143266 | 0.114613 | 0.114613 | 0.114613 | 0.114613 | 0 | 0.011247 | 0.198039 | 2,550 | 84 | 83 | 30.357143 | 0.842054 | 0.095686 | 0 | 0.178571 | 0 | 0 | 0.093442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84b1824993fb34ce81a489b1f8e43254234f59ba | 342 | py | Python | kitchen/check_in/migrations/0002_auto_20171214_1506.py | ZhukovGreen/kitchen-check-in | ce5327353cd9db32389da1678a37ac3d647b7c32 | [
"MIT"
] | null | null | null | kitchen/check_in/migrations/0002_auto_20171214_1506.py | ZhukovGreen/kitchen-check-in | ce5327353cd9db32389da1678a37ac3d647b7c32 | [
"MIT"
] | null | null | null | kitchen/check_in/migrations/0002_auto_20171214_1506.py | ZhukovGreen/kitchen-check-in | ce5327353cd9db32389da1678a37ac3d647b7c32 | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2017-12-14 15:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('check_in', '0001_initial'),
]
operations = [
migrations.AlterUniqueTogether(
name='lunch',
unique_together={('employee', 'date... | 19 | 51 | 0.587719 | 34 | 342 | 5.823529 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07377 | 0.28655 | 342 | 17 | 52 | 20.117647 | 0.737705 | 0.125731 | 0 | 0 | 1 | 0 | 0.124579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84b19438f6b673af236947b014e7e41a4f339821 | 4,063 | py | Python | message.py | Max00355/ByteMail-1 | 576f765da9fb88f23b4d5c46868e0ce16db83c7c | [
"MIT"
] | 4 | 2016-02-18T15:11:58.000Z | 2020-01-16T11:07:50.000Z | message.py | Max00355/ByteMail-1 | 576f765da9fb88f23b4d5c46868e0ce16db83c7c | [
"MIT"
] | 1 | 2021-03-06T00:07:14.000Z | 2021-03-06T00:15:26.000Z | message.py | Max00355/ByteMail-1 | 576f765da9fb88f23b4d5c46868e0ce16db83c7c | [
"MIT"
] | 1 | 2017-11-08T04:33:38.000Z | 2017-11-08T04:33:38.000Z | import db
import ssl
import json
import uuid
from rsa import *
import base64
import antispam
import aes
import time
def message(obj, ip, data):
addr = db.data.find("data", "all")[0]['addr']
msg = data['message']
from_ = data['from']
title = data['title']
to = data['to']
id = data['id']
as_n... | 39.067308 | 233 | 0.545656 | 518 | 4,063 | 4.200772 | 0.23166 | 0.022518 | 0.012868 | 0.025735 | 0.272978 | 0.22886 | 0.212316 | 0.161765 | 0.143382 | 0.090074 | 0 | 0.015956 | 0.290426 | 4,063 | 103 | 234 | 39.446602 | 0.738814 | 0.069161 | 0 | 0.154639 | 0 | 0 | 0.163087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092784 | null | null | 0.030928 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
84b391a0cb7210f33bf6584b75034c4d8d4bdff6 | 15,852 | py | Python | Python/impedance_heater.py | ultpnml/ult_instruments | 3c9dd6b26e993bba3e20c7f91af6510152850cfd | [
"BSD-3-Clause"
] | null | null | null | Python/impedance_heater.py | ultpnml/ult_instruments | 3c9dd6b26e993bba3e20c7f91af6510152850cfd | [
"BSD-3-Clause"
] | null | null | null | Python/impedance_heater.py | ultpnml/ult_instruments | 3c9dd6b26e993bba3e20c7f91af6510152850cfd | [
"BSD-3-Clause"
] | null | null | null | #This program monitors the 1K pot, sorb, and needle valve
#temperatures. If the temperatures are too high, the program
#will shut down the Keithley that controls the fixed impedance
#heater.
#Python 2 only
#TO DO: Python 3 compatibility
import thread
import time
import datetime
import traceback
import socket
import ... | 46.081395 | 136 | 0.563588 | 1,661 | 15,852 | 5.086093 | 0.15894 | 0.065696 | 0.032197 | 0.019531 | 0.490767 | 0.384351 | 0.297112 | 0.278646 | 0.260653 | 0.25142 | 0 | 0.014002 | 0.355728 | 15,852 | 343 | 137 | 46.215743 | 0.813179 | 0.031542 | 0 | 0.401929 | 0 | 0 | 0.114923 | 0.010044 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006431 | 0.025723 | null | null | 0.128617 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
84bbf74c66ef9175123833be8f994d71b7109552 | 262 | py | Python | 10 Days of Statistics/Day 6/Day 6 - The Central Limit Theorem II.py | BHAVJOT14/HackerRank-Solutions | 8fe0280f5ce150a28598be71dc7ab6f06318e4d5 | [
"MIT"
] | null | null | null | 10 Days of Statistics/Day 6/Day 6 - The Central Limit Theorem II.py | BHAVJOT14/HackerRank-Solutions | 8fe0280f5ce150a28598be71dc7ab6f06318e4d5 | [
"MIT"
] | null | null | null | 10 Days of Statistics/Day 6/Day 6 - The Central Limit Theorem II.py | BHAVJOT14/HackerRank-Solutions | 8fe0280f5ce150a28598be71dc7ab6f06318e4d5 | [
"MIT"
] | null | null | null |
import math
TICKETS = 250
STUDENTS = 100
MEAN = 2.4
SD = 2
MU = STUDENTS * MEAN
S = math.sqrt(100)*SD
def normal_distribution(x, mu, sd):
return 1/2*(1+math.erf((x-mu)/(sd*math.sqrt(2))))
print(round(normal_distribution(x=TICKETS, mu=MU, sd=S), 4)) | 16.375 | 60 | 0.648855 | 48 | 262 | 3.5 | 0.458333 | 0.071429 | 0.22619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078341 | 0.171756 | 262 | 16 | 60 | 16.375 | 0.695853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 0.3 | 0.1 | 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 |
84bc5d7d573cdb6bddc0ddf48f7da1392c0896e8 | 448 | py | Python | src/MapMyNotesApplication/migrations/versions/a533873cebfc_.py | Ryan-Gouldsmith/MajorProject-MapMyNotes | 2c350f68f992e454e88d3653e46e7607e224e3ae | [
"MIT"
] | null | null | null | src/MapMyNotesApplication/migrations/versions/a533873cebfc_.py | Ryan-Gouldsmith/MajorProject-MapMyNotes | 2c350f68f992e454e88d3653e46e7607e224e3ae | [
"MIT"
] | null | null | null | src/MapMyNotesApplication/migrations/versions/a533873cebfc_.py | Ryan-Gouldsmith/MajorProject-MapMyNotes | 2c350f68f992e454e88d3653e46e7607e224e3ae | [
"MIT"
] | null | null | null | """empty message
Revision ID: a533873cebfc
Revises: 6a19b5a07897
Create Date: 2016-03-03 17:58:46.629869
"""
# revision identifiers, used by Alembic.
revision = 'a533873cebfc'
down_revision = '6a19b5a07897'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('notes', sa.Column('module_... | 19.478261 | 107 | 0.743304 | 62 | 448 | 5.225806 | 0.612903 | 0.067901 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0.129464 | 448 | 22 | 108 | 20.363636 | 0.702564 | 0.316964 | 0 | 0 | 0 | 0 | 0.278523 | 0.07047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84c3cea9dc12aa3420d6ff9210c1914628e6a05f | 760 | py | Python | application/__init__.py | pauperbattlebox/mvb-api | d4cacad1c4763d82757ef7a7ed6d56f325ddf6f0 | [
"MIT"
] | null | null | null | application/__init__.py | pauperbattlebox/mvb-api | d4cacad1c4763d82757ef7a7ed6d56f325ddf6f0 | [
"MIT"
] | 5 | 2022-02-02T03:49:02.000Z | 2022-03-29T01:15:17.000Z | application/__init__.py | pauperbattlebox/mvb-api | d4cacad1c4763d82757ef7a7ed6d56f325ddf6f0 | [
"MIT"
] | null | null | null | from flask import Flask
from werkzeug.middleware.proxy_fix import ProxyFix
from .extensions import cache, db, limiter
current_version = "/api/v1/"
def create_app():
app = Flask(__name__)
app.config.from_pyfile("config.py")
db.init_app(app)
cache.init_app(app)
limiter.init_app(app)
from ap... | 21.714286 | 54 | 0.681579 | 101 | 760 | 4.940594 | 0.39604 | 0.06012 | 0.160321 | 0.096192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003436 | 0.234211 | 760 | 34 | 55 | 22.352941 | 0.853952 | 0 | 0 | 0 | 0 | 0 | 0.022368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.363636 | 0 | 0.454545 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
84cca71da31c1ea4b30e9f06c0f56ba5e046faf3 | 10,977 | py | Python | train.py | UB-A2IL-Lab/SemaFor-Fake-News | c61802d7683496c87970d3393787dd9c6dfcf230 | [
"MIT"
] | null | null | null | train.py | UB-A2IL-Lab/SemaFor-Fake-News | c61802d7683496c87970d3393787dd9c6dfcf230 | [
"MIT"
] | null | null | null | train.py | UB-A2IL-Lab/SemaFor-Fake-News | c61802d7683496c87970d3393787dd9c6dfcf230 | [
"MIT"
] | null | null | null | from __future__ import division
import sys
import argparse
import torch
import os
import torch.nn as nn
import torch.optim as optim
import numpy as np
import json
import pickle
from sklearn.metrics import average_precision_score
from torch.utils.data import Dataset, DataLoader
from dataloader import Loader
from model ... | 45.17284 | 166 | 0.672224 | 1,503 | 10,977 | 4.696607 | 0.193613 | 0.103272 | 0.19507 | 0.072532 | 0.432923 | 0.357699 | 0.302309 | 0.248902 | 0.182745 | 0.116164 | 0 | 0.01867 | 0.175367 | 10,977 | 242 | 167 | 45.359504 | 0.761158 | 0.039719 | 0 | 0.031579 | 0 | 0 | 0.15737 | 0.037442 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010526 | false | 0 | 0.084211 | 0 | 0.1 | 0.036842 | 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 |
84de102e5ee01fe8ec6a89f884d0e2ea1b8a60c6 | 943 | py | Python | setdb2env.py | rmayherr/python | 830aec82e3ab155b66d01032eac71bbe6f961fce | [
"MIT"
] | null | null | null | setdb2env.py | rmayherr/python | 830aec82e3ab155b66d01032eac71bbe6f961fce | [
"MIT"
] | null | null | null | setdb2env.py | rmayherr/python | 830aec82e3ab155b66d01032eac71bbe6f961fce | [
"MIT"
] | null | null | null | NodeName=AdminControl.getNode()
def SetDB2Variables():
WFound=0
WVariables={"DB2UNIVERSAL_JDBC_DRIVER_NATIVEPATH" : "/??????????ult/etc/DB2JDBC",
"MQ_INSTALL_ROOT" : "/?????????",
"DB2UNIVERSAL_JDBC_DRIVER_PATH" : "/?????????lt/etc/DB2JDBC/classes"}
Node=AdminConfig.getid("/Node:"+Node... | 42.863636 | 104 | 0.650053 | 95 | 943 | 6.368421 | 0.568421 | 0.054545 | 0.072727 | 0.046281 | 0.082645 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.179215 | 943 | 21 | 105 | 44.904762 | 0.770026 | 0 | 0 | 0 | 0 | 0 | 0.321315 | 0.155885 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
84e25762f2a9ce14a1245e3ca792cf375bb93498 | 859 | py | Python | utils.py | longyuanli/VSMHN | 13d5ad64474c3fcc4b1dab8ac27d4c97b0b43ca8 | [
"MIT"
] | 6 | 2021-02-08T10:35:33.000Z | 2021-09-16T02:02:38.000Z | utils.py | longyuanli/VSMHN | 13d5ad64474c3fcc4b1dab8ac27d4c97b0b43ca8 | [
"MIT"
] | null | null | null | utils.py | longyuanli/VSMHN | 13d5ad64474c3fcc4b1dab8ac27d4c97b0b43ca8 | [
"MIT"
] | 3 | 2021-02-20T01:55:59.000Z | 2022-03-05T12:13:48.000Z | def convert_wind_to_events(event_series, top_C, start_C):
flag = False
event_start = []
for i in range(len(event_series)):
if not flag:
if event_series[i] > top_C:
event_start.append(i)
flag = True
else:
if event_series[i] < top_C:
... | 40.904762 | 151 | 0.600698 | 131 | 859 | 3.648855 | 0.206107 | 0.230126 | 0.138075 | 0.069038 | 0.548117 | 0.39749 | 0.121339 | 0.121339 | 0 | 0 | 0 | 0.011236 | 0.274738 | 859 | 20 | 152 | 42.95 | 0.756019 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 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 |
84e7e0f70cf554ea76e8cfff8caa7e0e27d45a16 | 3,534 | py | Python | openfl/interface/pki.py | brandon-edwards/openfl | 9e0521252253eab09571dc2be40f46bfeaf9746a | [
"Apache-2.0"
] | 1 | 2021-07-14T08:43:55.000Z | 2021-07-14T08:43:55.000Z | openfl/interface/pki.py | brandon-edwards/openfl | 9e0521252253eab09571dc2be40f46bfeaf9746a | [
"Apache-2.0"
] | null | null | null | openfl/interface/pki.py | brandon-edwards/openfl | 9e0521252253eab09571dc2be40f46bfeaf9746a | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2020-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
"""PKI CLI."""
import logging
import os
from pathlib import Path
from click import group
from click import option
from click import pass_context
from click import password_option
from click import Path as ClickPath
from openfl.componen... | 32.722222 | 87 | 0.699491 | 535 | 3,534 | 4.431776 | 0.214953 | 0.073387 | 0.080135 | 0.08857 | 0.354703 | 0.317166 | 0.233657 | 0.097427 | 0.06706 | 0.06706 | 0 | 0.004733 | 0.162988 | 3,534 | 107 | 88 | 33.028037 | 0.796822 | 0.11262 | 0 | 0.150685 | 0 | 0 | 0.136527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0.136986 | 0.246575 | 0 | 0.342466 | 0.027397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
84f0abc2d883dc04a98da886bfd216c8f988f4d9 | 13,280 | py | Python | caproto/_state.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | 12 | 2019-05-25T14:26:25.000Z | 2022-01-24T09:10:18.000Z | caproto/_state.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | 333 | 2017-06-22T03:10:15.000Z | 2019-05-07T16:37:20.000Z | caproto/_state.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | 17 | 2019-07-03T18:17:22.000Z | 2022-03-22T00:24:20.000Z | # This module encodes the rules of the Channel Access protocol as nested
# dictionaries. (See the state machine diagram in the documentation,
# programmatically generated from these dictionaries.)
# There are two state machines, tracking circuit state and channel state. They
# are coupled: each time circuit state upda... | 36.383562 | 79 | 0.62613 | 1,184 | 13,280 | 6.834459 | 0.21875 | 0.023356 | 0.048196 | 0.017054 | 0.498146 | 0.456995 | 0.456995 | 0.456995 | 0.442165 | 0.442165 | 0 | 0.000655 | 0.310392 | 13,280 | 364 | 80 | 36.483516 | 0.882944 | 0.196536 | 0 | 0.478261 | 1 | 0 | 0.013989 | 0.004537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047431 | false | 0 | 0.007905 | 0.007905 | 0.094862 | 0 | 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 |
84f4f275de4aaf183a73aca520dcd247fdc93c0a | 454 | py | Python | Mundo1/aula9b.py | OliveiraVasconcelos/Python-CursoemVideo | bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3 | [
"MIT"
] | null | null | null | Mundo1/aula9b.py | OliveiraVasconcelos/Python-CursoemVideo | bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3 | [
"MIT"
] | null | null | null | Mundo1/aula9b.py | OliveiraVasconcelos/Python-CursoemVideo | bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3 | [
"MIT"
] | null | null | null | #variaveis
numero = int((input('Digite um número de 0 à 9999: ')))
digito = str(numero)
digito = len(digito)
u = numero // 1 % 10
d = numero // 10 % 10
c = numero // 100 % 10
m = numero // 1000 % 10
#calculo do programa
print(f'Digitos: {digito}')
print('Unidade: {}'.format(u))
print('Dezena: {}'.format(d))
print('Cen... | 23.894737 | 55 | 0.603524 | 67 | 454 | 4.089552 | 0.626866 | 0.043796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101828 | 0.156388 | 454 | 19 | 56 | 23.894737 | 0.613577 | 0.213656 | 0 | 0 | 0 | 0 | 0.253644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
84fd01e9dbec8c9bea817cd81494437461c66ffc | 13,843 | py | Python | templates/s3_redundant/s3_redundant.py | threefoldtech/0-templates | 4106bb3d4d1de305557bf4748a7d77ffeb302abb | [
"Apache-2.0"
] | 1 | 2019-01-20T17:50:53.000Z | 2019-01-20T17:50:53.000Z | templates/s3_redundant/s3_redundant.py | threefoldtech/0-templates | 4106bb3d4d1de305557bf4748a7d77ffeb302abb | [
"Apache-2.0"
] | 192 | 2018-08-01T13:31:16.000Z | 2020-05-29T09:41:06.000Z | templates/s3_redundant/s3_redundant.py | threefoldtech/0-templates | 4106bb3d4d1de305557bf4748a7d77ffeb302abb | [
"Apache-2.0"
] | 1 | 2018-08-09T12:30:52.000Z | 2018-08-09T12:30:52.000Z | from jumpscale import j
from zerorobot.service_collection import ServiceNotFoundError
from zerorobot.template.base import TemplateBase
from zerorobot.template.decorator import timeout
from zerorobot.template.state import (SERVICE_STATE_ERROR, SERVICE_STATE_OK,
SERVICE_STATE_SKIPPED... | 40.241279 | 115 | 0.617568 | 1,574 | 13,843 | 5.221728 | 0.132783 | 0.042828 | 0.036136 | 0.036379 | 0.499331 | 0.403334 | 0.346393 | 0.325587 | 0.29079 | 0.258182 | 0 | 0.013904 | 0.272629 | 13,843 | 343 | 116 | 40.358601 | 0.802364 | 0.057213 | 0 | 0.391144 | 0 | 0 | 0.156079 | 0.009803 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081181 | false | 0.321033 | 0.01845 | 0 | 0.166052 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1700ec1ccbfd51e5db12aff09d0aa481235902bf | 3,716 | py | Python | userprofile/views.py | carlinhus/steam-api | 69b8a0fc1d09bfc17fcaafeb5ca4ce00929c9738 | [
"MIT"
] | null | null | null | userprofile/views.py | carlinhus/steam-api | 69b8a0fc1d09bfc17fcaafeb5ca4ce00929c9738 | [
"MIT"
] | null | null | null | userprofile/views.py | carlinhus/steam-api | 69b8a0fc1d09bfc17fcaafeb5ca4ce00929c9738 | [
"MIT"
] | null | null | null | from django.shortcuts import render, render_to_response
from django.template import RequestContext
import urllib2
from django.http import HttpResponse, JsonResponse, HttpResponseRedirect
import json
from django.contrib.auth.decorators import login_required
from userprofile.forms import NewUserForm
from userprofile.mode... | 35.390476 | 166 | 0.684876 | 418 | 3,716 | 6.007177 | 0.358852 | 0.01593 | 0.019116 | 0.014337 | 0.325767 | 0.280366 | 0.280366 | 0.280366 | 0.280366 | 0.239745 | 0 | 0.007866 | 0.213132 | 3,716 | 105 | 167 | 35.390476 | 0.850889 | 0.406351 | 0 | 0.045455 | 0 | 0 | 0.092879 | 0.013416 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.227273 | 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 |
170797e30318807565bf34dfbae672930f4e5609 | 439 | py | Python | backend/migrations/0011_prefix_occurrences.py | ad-freiburg/qleverUI | 105ef23447eb691a5da8a4c92be3b4150aac72c6 | [
"Apache-2.0"
] | 4 | 2021-10-09T20:36:33.000Z | 2022-02-12T09:19:17.000Z | backend/migrations/0011_prefix_occurrences.py | ad-freiburg/qleverUI | 105ef23447eb691a5da8a4c92be3b4150aac72c6 | [
"Apache-2.0"
] | 29 | 2019-09-01T08:48:12.000Z | 2021-06-01T15:57:24.000Z | backend/migrations/0011_prefix_occurrences.py | ad-freiburg/qleverUI | 105ef23447eb691a5da8a4c92be3b4150aac72c6 | [
"Apache-2.0"
] | 4 | 2019-01-04T19:44:55.000Z | 2020-12-05T03:40:42.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-10-28 11:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0010_prefix'),
]
operations = [
migrations.AddField(
m... | 20.904762 | 49 | 0.6082 | 46 | 439 | 5.652174 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065831 | 0.273349 | 439 | 20 | 50 | 21.95 | 0.749216 | 0.150342 | 0 | 0 | 1 | 0 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca0e9eae2f2dcbbc14156259172bfc053e00d20b | 1,300 | py | Python | sites/income/models.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | sites/income/models.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | sites/income/models.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from django.db.models.signals import pre_delete
from scrapy_djangoitem import DjangoItem
from dynamic_scraper.models import Scraper, SchedulerRuntime
from django.dispatch import receiver
# Create your models here.
class IncomeWebsite(models.Model):
... | 28.26087 | 105 | 0.806923 | 164 | 1,300 | 6.189024 | 0.353659 | 0.044335 | 0.0867 | 0.050246 | 0.344828 | 0.291626 | 0.291626 | 0.291626 | 0.189163 | 0.151724 | 0 | 0.005159 | 0.105385 | 1,300 | 45 | 106 | 28.888889 | 0.867584 | 0.018462 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.206897 | 0.034483 | 0.724138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca0f63b4a43243ecb4df571525f505c8439bcd64 | 1,699 | py | Python | tabcmd/commands/user/remove_users_command.py | WillAyd/tabcmd | 1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15 | [
"MIT"
] | null | null | null | tabcmd/commands/user/remove_users_command.py | WillAyd/tabcmd | 1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15 | [
"MIT"
] | null | null | null | tabcmd/commands/user/remove_users_command.py | WillAyd/tabcmd | 1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15 | [
"MIT"
] | null | null | null | from tabcmd.parsers.remove_users_parser import RemoveUserParser
from .user_command import UserCommand
import tableauserverclient as TSC
from tabcmd.execution.logger_config import log
from ..auth.session import Session
class RemoveUserCommand(UserCommand):
"""
Command to remove users from the specified group
... | 40.452381 | 107 | 0.638611 | 196 | 1,699 | 5.285714 | 0.377551 | 0.069498 | 0.067568 | 0.07722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007899 | 0.254856 | 1,699 | 41 | 108 | 41.439024 | 0.810427 | 0.040612 | 0 | 0 | 0 | 0 | 0.119653 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.058824 | false | 0 | 0.147059 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ca1029b7a53eaca7b173f233726d151ed4e3e4bb | 287 | py | Python | src/ssadmin/tests.py | daimon99/ssadmin | 9a1470712bdca5b0db17895d4c8215555d6b1b04 | [
"MIT"
] | null | null | null | src/ssadmin/tests.py | daimon99/ssadmin | 9a1470712bdca5b0db17895d4c8215555d6b1b04 | [
"MIT"
] | null | null | null | src/ssadmin/tests.py | daimon99/ssadmin | 9a1470712bdca5b0db17895d4c8215555d6b1b04 | [
"MIT"
] | null | null | null | # coding: utf8
# Create your tests here.
from django.test.testcases import SimpleTestCase
class SSTestCase(SimpleTestCase):
allow_database_queries = True
def test_show_port(self):
from ssadmin.services import show_port
ret = show_port(10000)
print ret
| 22.076923 | 48 | 0.721254 | 36 | 287 | 5.583333 | 0.75 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.219512 | 287 | 12 | 49 | 23.916667 | 0.870536 | 0.125436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca18612a9923993cc12cc4b8a3f980bafef342c5 | 1,250 | py | Python | gbst_package/gbst/metrics.py | 360jinrong/GBST | 227ec7b5e6e64b6b944fd23ebd40fd9fd40b0925 | [
"Apache-2.0"
] | 18 | 2020-08-11T08:52:29.000Z | 2021-11-14T03:30:03.000Z | gbst_package/gbst/metrics.py | 360jinrong/GBST | 227ec7b5e6e64b6b944fd23ebd40fd9fd40b0925 | [
"Apache-2.0"
] | null | null | null | gbst_package/gbst/metrics.py | 360jinrong/GBST | 227ec7b5e6e64b6b944fd23ebd40fd9fd40b0925 | [
"Apache-2.0"
] | 5 | 2020-09-14T10:58:09.000Z | 2021-08-17T13:12:59.000Z | # coding: utf-8
"""The interface for user-defined metrics."""
import numpy as np
from sklearn.metrics import roc_auc_score
def evalauc(preds, deval):
"""
Average AUC metric as default, but written in python.
This serves as an example of implementing new metrics.
Parameters
----------
preds: t... | 30.487805 | 94 | 0.6168 | 175 | 1,250 | 4.297143 | 0.525714 | 0.021277 | 0.043883 | 0.026596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011892 | 0.26 | 1,250 | 40 | 95 | 31.25 | 0.801081 | 0.36 | 0 | 0 | 0 | 0 | 0.004054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.105263 | 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 |
ca19de4bc8996171592064df3589d26b00d32cbf | 7,561 | py | Python | beta_nmf.py | rserizel/groupNMF | 71d383c89348bd6fadfebce4c8d755dd2706e5dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2016-08-03T14:07:47.000Z | 2021-01-31T03:24:23.000Z | beta_nmf.py | rserizel/groupNMF | 71d383c89348bd6fadfebce4c8d755dd2706e5dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | beta_nmf.py | rserizel/groupNMF | 71d383c89348bd6fadfebce4c8d755dd2706e5dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2016-03-18T05:48:09.000Z | 2016-03-18T05:48:09.000Z | # -*- coding: utf-8 -*-
"""
beta\_nmf.py
~~~~~~~~~~~
.. topic:: Contents
The beta_nmf module includes the beta\_nmf class,
fit function and theano functions to compute updates and cost.
Copyright 2014-2016 Romain Serizel
This software is distributed under the terms of the GNU Public License
version 3 (... | 36.703883 | 78 | 0.470705 | 770 | 7,561 | 4.497403 | 0.268831 | 0.034652 | 0.041582 | 0.04447 | 0.243431 | 0.165752 | 0.115507 | 0.085475 | 0.068149 | 0.068149 | 0 | 0.0144 | 0.439757 | 7,561 | 205 | 79 | 36.882927 | 0.803116 | 0.005687 | 0 | 0.313559 | 0 | 0 | 0.039269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050847 | null | null | 0.042373 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ca23c15eb49a53f2c25651087356dbdbc52fa963 | 820 | py | Python | halo_app/infra/event_publisher.py | halo-framework/halo-app | 98e057b2f433d97d903589ac75a6c2544174bac8 | [
"MIT"
] | null | null | null | halo_app/infra/event_publisher.py | halo-framework/halo-app | 98e057b2f433d97d903589ac75a6c2544174bac8 | [
"MIT"
] | null | null | null | halo_app/infra/event_publisher.py | halo-framework/halo-app | 98e057b2f433d97d903589ac75a6c2544174bac8 | [
"MIT"
] | null | null | null | import json
import logging
from dataclasses import asdict
import abc
from halo_app.app.command import AbsHaloCommand
from halo_app.classes import AbsBaseClass
from halo_app.app.event import AbsHaloEvent
from halo_app.settingsx import settingsx
logger = logging.getLogger(__name__)
settings = settingsx()
class AbsPub... | 29.285714 | 74 | 0.746341 | 101 | 820 | 5.940594 | 0.346535 | 0.053333 | 0.073333 | 0.046667 | 0.28 | 0.28 | 0.28 | 0.14 | 0 | 0 | 0 | 0 | 0.152439 | 820 | 27 | 75 | 30.37037 | 0.863309 | 0 | 0 | 0 | 0 | 0 | 0.078049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
ca28cbc4e85934d115ae46089616dac574b16cc1 | 1,790 | py | Python | observations/r/earns.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/earns.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/earns.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def earns(path):
"""earns
Data loads lazily. Type data(earns) into the... | 22.948718 | 77 | 0.668715 | 250 | 1,790 | 4.628 | 0.564 | 0.006914 | 0.041487 | 0.039758 | 0.063959 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031884 | 0.22905 | 1,790 | 77 | 78 | 23.246753 | 0.806522 | 0.560894 | 0 | 0 | 0 | 0 | 0.094872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.