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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d956047c3de32766ac806b27254bef71c655cb4a | 325 | py | Python | prefect/controllers/util.py | dschien/energy-aggregator | 421638029c5066c3182e8c94424abf5a6b05c1ea | [
"MIT"
] | 4 | 2016-06-15T14:11:44.000Z | 2016-11-02T14:45:13.000Z | prefect/controllers/util.py | dschien/energy-aggregator | 421638029c5066c3182e8c94424abf5a6b05c1ea | [
"MIT"
] | null | null | null | prefect/controllers/util.py | dschien/energy-aggregator | 421638029c5066c3182e8c94424abf5a6b05c1ea | [
"MIT"
] | null | null | null | from prefect.controllers.common import BaseController
from prefect.controllers.prefect import PrefectController
def get_controller_for_site_name(site_name) -> BaseController:
if site_name.lower() == 'badock':
c = PrefectController.for_badock()
else:
c = PrefectController.for_goldney()
retu... | 29.545455 | 62 | 0.750769 | 37 | 325 | 6.378378 | 0.540541 | 0.101695 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 325 | 10 | 63 | 32.5 | 0.874074 | 0 | 0 | 0 | 0 | 0 | 0.018462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d96520a7cc519879db031872639250dafe205a2c | 945 | py | Python | tests/test_environment.py | Bogdanp/mold | 1a8508b2c9dd59d24f3c41a1aca37970e39fa43d | [
"MIT"
] | 2 | 2015-06-22T11:48:44.000Z | 2021-07-05T06:07:03.000Z | tests/test_environment.py | Bogdanp/mold | 1a8508b2c9dd59d24f3c41a1aca37970e39fa43d | [
"MIT"
] | null | null | null | tests/test_environment.py | Bogdanp/mold | 1a8508b2c9dd59d24f3c41a1aca37970e39fa43d | [
"MIT"
] | null | null | null | import pytest
from mold import Environment
from mold.environment import TemplateNotFoundError
from .common import rel
env = Environment(rel("fixtures"))
def test_notfound():
with pytest.raises(TemplateNotFoundError):
env.get_template("idontexist.mold.html")
def test_alltags():
template = env.get_... | 22.5 | 92 | 0.726984 | 123 | 945 | 5.439024 | 0.325203 | 0.083707 | 0.104634 | 0.125561 | 0.200299 | 0.200299 | 0.156951 | 0 | 0 | 0 | 0 | 0.005 | 0.153439 | 945 | 41 | 93 | 23.04878 | 0.83125 | 0 | 0 | 0 | 0 | 0 | 0.140741 | 0 | 0 | 0 | 0 | 0 | 0.28 | 1 | 0.24 | false | 0 | 0.16 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d969aaa5f071def4c19cb66155bb4e9ed920d1ff | 273 | py | Python | src/mon/main.py | ygclub/wxapp_backend_ygclub | ae02b8dc26442289cb96d90fcb8b069c2ede52f1 | [
"MIT"
] | null | null | null | src/mon/main.py | ygclub/wxapp_backend_ygclub | ae02b8dc26442289cb96d90fcb8b069c2ede52f1 | [
"MIT"
] | null | null | null | src/mon/main.py | ygclub/wxapp_backend_ygclub | ae02b8dc26442289cb96d90fcb8b069c2ede52f1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import Flask
application = Flask(__name__)
route = application.route
application.debug = True
@route('/')
def index():
return "Hello World"
def main():
application.debug = True
application.run()
if __name__ == "__main__":
main()
| 14.368421 | 29 | 0.684982 | 33 | 273 | 5.30303 | 0.575758 | 0.182857 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004367 | 0.161172 | 273 | 18 | 30 | 15.166667 | 0.759825 | 0.076923 | 0 | 0.166667 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.333333 | 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 |
d96a918a4f4d572964ea4801c7762b51db3826fe | 14,280 | py | Python | azure-mgmt-web/azure/mgmt/web/models/__init__.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | azure-mgmt-web/azure/mgmt/web/models/__init__.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | azure-mgmt-web/azure/mgmt/web/models/__init__.py | HydAu/AzureSDKForPython | 5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of ... | 37.090909 | 95 | 0.810154 | 1,187 | 14,280 | 9.51727 | 0.343724 | 0.03824 | 0.01133 | 0.00956 | 0.114013 | 0.107993 | 0.107993 | 0.107993 | 0.107993 | 0.107993 | 0 | 0.0004 | 0.12514 | 14,280 | 384 | 96 | 37.1875 | 0.903866 | 0.061835 | 0 | 0 | 0 | 0 | 0.244617 | 0.12956 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.406077 | 0 | 0.406077 | 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 |
d96d570e0e272a536bf97b4bdf5678dd8a20eabd | 552 | py | Python | Python Programs/check-for-rectangle-or-square.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | 2 | 2021-06-26T21:50:59.000Z | 2021-09-18T04:55:51.000Z | Python Programs/check-for-rectangle-or-square.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | null | null | null | Python Programs/check-for-rectangle-or-square.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | null | null | null | Check for Rectangle or Square
The length L and breadth B of a rectangle is passed as input. If L is equal to B then the program must print "square". Else it must print "rectangle".
Input Format:
The first line contains the value of L
The second line contains the value of B
Output Format:
The first line contains the va... | 20.444444 | 150 | 0.746377 | 99 | 552 | 4.171717 | 0.424242 | 0.087167 | 0.108959 | 0.145278 | 0.22276 | 0.164649 | 0.164649 | 0 | 0 | 0 | 0 | 0.024229 | 0.177536 | 552 | 26 | 151 | 21.230769 | 0.88326 | 0 | 0 | 0.24 | 0 | 0 | 0.054446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d96ead593faf891d39b831719fe5f71a5ee726d6 | 4,579 | py | Python | emotion_analysis.py | nitish-pandey/Emotion-Classification | fd9fbcc69cc493e4048619c8e71f77c0e5321e6e | [
"MIT"
] | null | null | null | emotion_analysis.py | nitish-pandey/Emotion-Classification | fd9fbcc69cc493e4048619c8e71f77c0e5321e6e | [
"MIT"
] | null | null | null | emotion_analysis.py | nitish-pandey/Emotion-Classification | fd9fbcc69cc493e4048619c8e71f77c0e5321e6e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Emotion-Analysis.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Hg2TKSPhWyjQZJDEyHaQxuRiD-A7_WtQ
#Imports
"""
import pandas as pd
import numpy as np
import os
import random
import re
import nltk
nltk.download('punk... | 28.092025 | 103 | 0.68836 | 643 | 4,579 | 4.85381 | 0.353033 | 0.038449 | 0.103172 | 0.12528 | 0.233899 | 0.155399 | 0.081384 | 0.036527 | 0.036527 | 0 | 0 | 0.008468 | 0.148941 | 4,579 | 163 | 104 | 28.092025 | 0.792404 | 0.11378 | 0 | 0.021978 | 1 | 0 | 0.195035 | 0.037625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021978 | false | 0 | 0.153846 | 0 | 0.197802 | 0.032967 | 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 |
d96ed6266042a01bacd89679ed99e796232beef3 | 611 | py | Python | cmsplugin_simple_markdown/migrations_django/0002_auto_20160417_1727.py | been-there-done-that/cmsplugin-simple-markdown | fae907f31b80ef5711ff4e3388368190d3765f05 | [
"BSD-3-Clause"
] | 1 | 2016-06-13T20:57:21.000Z | 2016-06-13T20:57:21.000Z | cmsplugin_simple_markdown/migrations_django/0002_auto_20160417_1727.py | been-there-done-that/cmsplugin-simple-markdown | fae907f31b80ef5711ff4e3388368190d3765f05 | [
"BSD-3-Clause"
] | 8 | 2015-04-19T11:38:43.000Z | 2016-10-22T16:31:10.000Z | cmsplugin_simple_markdown/migrations_django/0002_auto_20160417_1727.py | been-there-done-that/cmsplugin-simple-markdown | fae907f31b80ef5711ff4e3388368190d3765f05 | [
"BSD-3-Clause"
] | 9 | 2015-04-15T08:56:19.000Z | 2020-11-21T23:39:17.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cmsplugin_simple_markdown', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='simplemarkdownp... | 30.55 | 236 | 0.689034 | 60 | 611 | 6.716667 | 0.616667 | 0.208437 | 0.171216 | 0.143921 | 0.203474 | 0.203474 | 0 | 0 | 0 | 0 | 0 | 0.016194 | 0.191489 | 611 | 19 | 237 | 32.157895 | 0.799595 | 0.03437 | 0 | 0 | 0 | 0 | 0.314626 | 0.19898 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
d9716c91c5c287887fab54c5b32b487f4e3937fc | 2,903 | py | Python | scripts/get_iperf_tcp_statistics.py | noironetworks/gbp-scale-tester | 23bc1683edb1c34f0fa00617623b997c23dba9f1 | [
"Apache-2.0"
] | null | null | null | scripts/get_iperf_tcp_statistics.py | noironetworks/gbp-scale-tester | 23bc1683edb1c34f0fa00617623b997c23dba9f1 | [
"Apache-2.0"
] | null | null | null | scripts/get_iperf_tcp_statistics.py | noironetworks/gbp-scale-tester | 23bc1683edb1c34f0fa00617623b997c23dba9f1 | [
"Apache-2.0"
] | null | null | null | import json
import os
import re
import sys
src_grp = sys.argv[1]
dest_grp = sys.argv[2]
fileid = sys.argv[3]
filedir = os.getcwd()
def get_list_of_filenames():
file_list = []
p = re.compile(ur'tcptesttrafficclient*%s.*%s.*%s' %(src_grp, dest_grp, fileid))
for file in os.listdir(filedir):
if re.s... | 30.557895 | 84 | 0.54392 | 340 | 2,903 | 4.417647 | 0.297059 | 0.11984 | 0.129827 | 0.037284 | 0.174434 | 0.149134 | 0.098535 | 0.098535 | 0.098535 | 0.098535 | 0 | 0.014728 | 0.321736 | 2,903 | 94 | 85 | 30.882979 | 0.748095 | 0.293145 | 0 | 0.042553 | 0 | 0 | 0.072778 | 0.017222 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085106 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d974e970fa2d6a43b4d3dba335369c56eec7da81 | 2,425 | py | Python | cytomine/models/__init__.py | cytomine/Cytomine-python-client | afd46c1a6bf88914610e961531979597f8efaf22 | [
"Apache-2.0"
] | 23 | 2015-04-28T07:58:25.000Z | 2021-05-21T09:37:29.000Z | cytomine/models/__init__.py | cytomine/Cytomine-python-client | afd46c1a6bf88914610e961531979597f8efaf22 | [
"Apache-2.0"
] | 27 | 2017-01-12T15:11:39.000Z | 2022-03-29T07:06:46.000Z | cytomine/models/__init__.py | cytomine/Cytomine-python-client | afd46c1a6bf88914610e961531979597f8efaf22 | [
"Apache-2.0"
] | 14 | 2016-09-02T19:51:54.000Z | 2022-02-02T14:35:19.000Z | # -*- coding: utf-8 -*-
# * Copyright (c) 2009-2018. Authors: see NOTICE file.
# *
# * 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... | 65.540541 | 175 | 0.811959 | 238 | 2,425 | 8.222689 | 0.689076 | 0.030659 | 0.013286 | 0.016352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010237 | 0.113814 | 2,425 | 36 | 176 | 67.361111 | 0.900419 | 0.256082 | 0 | 0 | 0 | 0 | 0.101174 | 0.025713 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.631579 | 0 | 0.631579 | 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 |
d978126c9088ce3017da6219b5461ea7133f4925 | 1,065 | py | Python | lab4/fully-basic.py | li-xin-yi/security-summer-labs | ded1e709fa3a8a5189156f7ec1e9da5d7fb0e665 | [
"MIT"
] | null | null | null | lab4/fully-basic.py | li-xin-yi/security-summer-labs | ded1e709fa3a8a5189156f7ec1e9da5d7fb0e665 | [
"MIT"
] | null | null | null | lab4/fully-basic.py | li-xin-yi/security-summer-labs | ded1e709fa3a8a5189156f7ec1e9da5d7fb0e665 | [
"MIT"
] | 1 | 2021-07-30T14:37:41.000Z | 2021-07-30T14:37:41.000Z | from Pyfhel import Pyfhel
# create an empty Pyfhel object
HE = Pyfhel()
# initialize a context with plaintext modulo 65537
HE.contextGen(p=65537)
# generate a (public/private) key pair
HE.keyGen()
# encrypt two integers
num1 = HE.encryptInt(114)
num2 = HE.encryptInt(514)
# print the last 16 bytes of ciphertexts
pr... | 28.026316 | 79 | 0.719249 | 169 | 1,065 | 4.39645 | 0.343195 | 0.064603 | 0.087483 | 0.080754 | 0.238223 | 0.238223 | 0.109018 | 0 | 0 | 0 | 0 | 0.047059 | 0.122066 | 1,065 | 37 | 80 | 28.783784 | 0.747594 | 0.175587 | 0 | 0 | 1 | 0 | 0.455696 | 0.204833 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.380952 | 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 |
d9856e1f33a72fe772b270dff8e1b58d61cead97 | 497 | py | Python | PP0506A.py | lwojcik/plspoj-problems | 30bfc07ffcd9f1a33b02d52d10747fc0861559ea | [
"MIT"
] | 1 | 2018-01-03T18:38:48.000Z | 2018-01-03T18:38:48.000Z | PP0506A.py | lwojcik/plspoj-problems | 30bfc07ffcd9f1a33b02d52d10747fc0861559ea | [
"MIT"
] | null | null | null | PP0506A.py | lwojcik/plspoj-problems | 30bfc07ffcd9f1a33b02d52d10747fc0861559ea | [
"MIT"
] | null | null | null | t = int(raw_input())
for u in range(0,t):
try:
p = int(raw_input())
punkty = ()
wspolrzedne = ()
for v in range(0,p):
try:
z = raw_input().split()
punkty = punkty.append(z[0])
wspolrzedne = wspolrzedne.append(z[1]).append(z... | 22.590909 | 67 | 0.428571 | 51 | 497 | 4.117647 | 0.45098 | 0.114286 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018939 | 0.468813 | 497 | 21 | 68 | 23.666667 | 0.776515 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d988d9498d88706f390a05350a0637862ac7782d | 35,734 | py | Python | approximate_value_function.py | barafundle/poisson | 6f66a51dcf9a82c06970c82f091cb32ce9f3c255 | [
"CC0-1.0"
] | null | null | null | approximate_value_function.py | barafundle/poisson | 6f66a51dcf9a82c06970c82f091cb32ce9f3c255 | [
"CC0-1.0"
] | null | null | null | approximate_value_function.py | barafundle/poisson | 6f66a51dcf9a82c06970c82f091cb32ce9f3c255 | [
"CC0-1.0"
] | null | null | null | # Basic Python 2.7.16 code for computing the latex/tikz figures of the paper
#
# 'Dispatching to Parallel Servers: Solutions of Poisson's Equation for First-Policy Improvement'
#
# Author: Olivier Bilenne (https://orcid.org/0000-0003-1376-8281)
#
# Library II
#
from math import cos,acos,sin,pi,factorial,exp,sq... | 44.170581 | 317 | 0.501623 | 4,849 | 35,734 | 3.638276 | 0.067849 | 0.034293 | 0.017685 | 0.032649 | 0.541435 | 0.467521 | 0.390489 | 0.352965 | 0.321335 | 0.26607 | 0 | 0.031574 | 0.350339 | 35,734 | 808 | 318 | 44.225248 | 0.728365 | 0.099653 | 0 | 0.38326 | 0 | 0.010279 | 0.05872 | 0.026496 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001468 | 0.002937 | null | null | 0.014684 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d98c8c063030cfccf4f8a4b2c75e4cb52059df52 | 921 | py | Python | blender/2.79/scripts/addons/mesh_extra_tools/icons/icons.py | uzairakbar/bpy2.79 | 3a3e0004ac6783c4e4b89d939e4432de99026a85 | [
"MIT"
] | 2 | 2019-03-20T13:10:46.000Z | 2019-05-15T20:00:31.000Z | engine/2.80/scripts/addons/mesh_extra_tools/icons/icons.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | null | null | null | engine/2.80/scripts/addons/mesh_extra_tools/icons/icons.py | byteinc/Phasor | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | [
"Unlicense"
] | 4 | 2020-02-19T20:02:26.000Z | 2022-02-11T18:47:56.000Z | import os
import bpy
import bpy.utils.previews
mesh_check_icon_collections = {}
mesh_check_icons_loaded = False
def load_icons():
global mesh_check_icon_collections
global mesh_check_icons_loaded
if mesh_check_icons_loaded:
return mesh_check_icon_collections["main"]
custom_icons = bpy.utils... | 26.314286 | 84 | 0.751357 | 129 | 921 | 4.96124 | 0.286822 | 0.182813 | 0.142188 | 0.2625 | 0.4 | 0.184375 | 0.121875 | 0 | 0 | 0 | 0 | 0 | 0.152009 | 921 | 34 | 85 | 27.088235 | 0.819462 | 0 | 0 | 0.26087 | 0 | 0 | 0.060803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.304348 | 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 |
d991b7529be086bd9593513d5015b1fe2eb88f4b | 4,743 | py | Python | catfood.py | raylewisdesign/DoubanCatFood | 54680694024b28730a5c8374be0121caf0417cea | [
"MIT"
] | null | null | null | catfood.py | raylewisdesign/DoubanCatFood | 54680694024b28730a5c8374be0121caf0417cea | [
"MIT"
] | null | null | null | catfood.py | raylewisdesign/DoubanCatFood | 54680694024b28730a5c8374be0121caf0417cea | [
"MIT"
] | 1 | 2020-09-24T02:35:42.000Z | 2020-09-24T02:35:42.000Z | import getpass
import smtplib
from email.mime.text import MIMEText
from email.utils import formataddr
import urllib.request, urllib.parse, urllib.error
import ssl
import json
import time
import re
import os
import sys
# Email setting for notification
def Email(sender, password, recipient, emailsub, emailmsg, smtpsever... | 42.348214 | 175 | 0.5895 | 573 | 4,743 | 4.837696 | 0.378709 | 0.021645 | 0.025253 | 0.027417 | 0.045815 | 0.045815 | 0.045815 | 0.036436 | 0.025253 | 0 | 0 | 0.023392 | 0.278937 | 4,743 | 111 | 176 | 42.72973 | 0.787135 | 0.062408 | 0 | 0.157895 | 0 | 0.010526 | 0.19982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031579 | false | 0.063158 | 0.115789 | 0 | 0.168421 | 0.084211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d99355c160292df2b678338384aeaf12d08e0271 | 3,724 | py | Python | Iris_Dataset/iris_data_loader.py | Chirayu-sopho/Sleep_Disorder_Classification | 1566c26b79ec089943cbeec5e4b9ed41e601477c | [
"Apache-2.0"
] | null | null | null | Iris_Dataset/iris_data_loader.py | Chirayu-sopho/Sleep_Disorder_Classification | 1566c26b79ec089943cbeec5e4b9ed41e601477c | [
"Apache-2.0"
] | null | null | null | Iris_Dataset/iris_data_loader.py | Chirayu-sopho/Sleep_Disorder_Classification | 1566c26b79ec089943cbeec5e4b9ed41e601477c | [
"Apache-2.0"
] | null | null | null | '''
import sklearn
from sklearn import svm
import random
from random import shuffle
import numpy as np
file1 = open("iris.data", "r")
temp_counter = 0
pattern_temp = []
pattern = []
correct_class = []
for line in file1.readlines():
line=line.split(',')
pattern_temp.append([])
for i in range(len(l... | 26.411348 | 76 | 0.70247 | 551 | 3,724 | 4.53902 | 0.166969 | 0.098761 | 0.016793 | 0.047981 | 0.347061 | 0.287085 | 0.268693 | 0.259096 | 0.206317 | 0.185526 | 0 | 0.026885 | 0.180988 | 3,724 | 141 | 77 | 26.411348 | 0.793115 | 0.024168 | 0 | 0.216216 | 0 | 0 | 0.003658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d994b104ab2ff7a37c9bd23d9ccd0a6f686a54ff | 344 | py | Python | services/ssh/create_60_sec_jwt.py | jrsouth/lagoon | 47abca41f689f9af7ff5ce2d36dd4b3ec72b2fd5 | [
"Apache-2.0"
] | 418 | 2017-08-30T12:40:36.000Z | 2021-06-11T17:59:54.000Z | services/ssh/create_60_sec_jwt.py | jrsouth/lagoon | 47abca41f689f9af7ff5ce2d36dd4b3ec72b2fd5 | [
"Apache-2.0"
] | 1,514 | 2017-08-30T14:00:02.000Z | 2021-06-15T23:20:20.000Z | services/ssh/create_60_sec_jwt.py | jrsouth/lagoon | 47abca41f689f9af7ff5ce2d36dd4b3ec72b2fd5 | [
"Apache-2.0"
] | 144 | 2017-08-30T20:06:50.000Z | 2021-06-03T07:56:59.000Z | #!/usr/bin/env python3
import os
import jwt
from datetime import datetime, timezone, timedelta
iat = datetime.now(timezone.utc)
exp = iat + timedelta(minutes=1)
payload = {'exp': exp, 'iat': iat, 'role': 'admin', 'aud': os.environ['JWTAUDIENCE'], 'sub': 'ssh'}
print(jwt.encode(payload, os.environ['JWTSECRET'], algor... | 28.666667 | 99 | 0.697674 | 47 | 344 | 5.106383 | 0.659574 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01634 | 0.110465 | 344 | 11 | 100 | 31.272727 | 0.767974 | 0.061047 | 0 | 0 | 0 | 0 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d999731263773925fa9cb13a07e9c4a3a21196cb | 600 | py | Python | astropy/io/misc/asdf/tests/__init__.py | mehrdad-shokri/astropy | abd73b51277694338c8eca7639da956dcd06f207 | [
"BSD-3-Clause"
] | 4 | 2021-03-25T15:49:56.000Z | 2021-12-15T09:10:04.000Z | astropy/io/misc/asdf/tests/__init__.py | mehrdad-shokri/astropy | abd73b51277694338c8eca7639da956dcd06f207 | [
"BSD-3-Clause"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | astropy/io/misc/asdf/tests/__init__.py | mehrdad-shokri/astropy | abd73b51277694338c8eca7639da956dcd06f207 | [
"BSD-3-Clause"
] | 3 | 2021-03-28T16:13:00.000Z | 2021-07-16T10:27:25.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
# Define a constant to know if the entry points are installed, since this impacts
# whether we can run the tests.
import pytest
from pkg_resources import iter_entry_points
entry_points = [entry.name for entry in iter_entry_points... | 33.333333 | 83 | 0.766667 | 93 | 600 | 4.752688 | 0.548387 | 0.223982 | 0.10181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004 | 0.166667 | 600 | 17 | 84 | 35.294118 | 0.88 | 0.321667 | 0 | 0 | 0 | 0 | 0.201493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
79431e9906a970cf446a0d91f888bb980a251074 | 631 | py | Python | Dataset/Leetcode/valid/88/455.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/88/455.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/88/455.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None:
"""
Do not return anything, modify nums1 in-place instead.
"""
left, right, index = m - 1, n - 1, m + n - 1
while left >= 0 and right >= 0:
if nums2[right] >= nums1[left]:
... | 31.55 | 78 | 0.423138 | 76 | 631 | 3.513158 | 0.421053 | 0.052434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063584 | 0.451664 | 631 | 19 | 79 | 33.210526 | 0.708092 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7946ce633331354ca9497b9f24c80f10a3b1734d | 213 | py | Python | c-series/c015.py | TheLurkingCat/ZeroJudge | 6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee | [
"MIT"
] | 1 | 2018-10-21T10:03:42.000Z | 2018-10-21T10:03:42.000Z | c-series/c015.py | TheLurkingCat/ZeroJudge | 6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee | [
"MIT"
] | null | null | null | c-series/c015.py | TheLurkingCat/ZeroJudge | 6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee | [
"MIT"
] | 2 | 2018-10-12T16:40:11.000Z | 2021-04-05T12:05:36.000Z | a = int(input())
for _ in range(a):
x = input()
y = x[::-1]
counter = 0
while x != y or not counter:
x = str(int(x) + int(y))
y = x[::-1]
counter += 1
print(counter, x)
| 19.363636 | 32 | 0.43662 | 34 | 213 | 2.705882 | 0.470588 | 0.043478 | 0.065217 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.375587 | 213 | 10 | 33 | 21.3 | 0.661654 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 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 |
794db2220704cf1bbb75a99b3efef99da6b82704 | 3,247 | py | Python | tests/test_path_encoding.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 76 | 2015-03-01T11:46:57.000Z | 2022-02-18T10:57:44.000Z | tests/test_path_encoding.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 119 | 2015-01-14T11:53:08.000Z | 2022-03-30T08:22:50.000Z | tests/test_path_encoding.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 46 | 2015-02-09T23:50:57.000Z | 2022-01-06T16:04:40.000Z | # coding=utf-8
import unittest
from urllib.parse import quote
from bugsnag.event import Event
from bugsnag.configuration import (Configuration, RequestConfiguration)
class PathEncodingTest(unittest.TestCase):
environ = {
'SCRIPT_NAME': '',
'SERVER_NAME': 'localhost',
'SERVER_PORT': '80',... | 26.614754 | 75 | 0.59963 | 321 | 3,247 | 5.862928 | 0.327103 | 0.046759 | 0.089267 | 0.044633 | 0.685441 | 0.685441 | 0.669501 | 0.669501 | 0.624867 | 0.624867 | 0 | 0.010092 | 0.298121 | 3,247 | 121 | 76 | 26.834711 | 0.81527 | 0.092701 | 0 | 0.564706 | 0 | 0.011765 | 0.105138 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 1 | 0.047059 | false | 0 | 0.094118 | 0 | 0.164706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79501c57ac300f7d4a0952562fb48b17595a8309 | 695 | py | Python | fable/fable_sources/fable/test/tst_show_calls.py | hickerson/bbn | 17ef63ad1717553ab2abb50592f8de79228c8523 | [
"MIT"
] | 4 | 2016-09-30T15:03:39.000Z | 2021-03-25T13:27:08.000Z | fable/fable_sources/fable/test/tst_show_calls.py | hickerson/bbn | 17ef63ad1717553ab2abb50592f8de79228c8523 | [
"MIT"
] | 1 | 2018-04-18T14:41:18.000Z | 2018-04-20T19:33:52.000Z | fable/fable_sources/fable/test/tst_show_calls.py | hickerson/bbn | 17ef63ad1717553ab2abb50592f8de79228c8523 | [
"MIT"
] | 3 | 2016-04-19T18:20:30.000Z | 2019-04-03T14:54:29.000Z | from __future__ import division
def run(args):
assert len(args) == 0
import libtbx.load_env
from cStringIO import StringIO
import os
op = os.path
t_dir = libtbx.env.under_dist(
module_name="fable", path="test/valid", test=op.isdir)
excluded_file_names = set("""\
blockdata_unnamed.f
""".splitlines())
... | 27.8 | 58 | 0.705036 | 106 | 695 | 4.301887 | 0.518868 | 0.070175 | 0.074561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003448 | 0.165468 | 695 | 24 | 59 | 28.958333 | 0.782759 | 0 | 0 | 0 | 0 | 0 | 0.070504 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | null | null | 0 | 0.26087 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7954247882ce3bb79e0a8cb4db7509bc5f6619ee | 857 | py | Python | plugin/taskmage2/utils/functional.py | willjp/vim-taskmage | adcf809ccf1768753eca4dadaf6279b34e8d5699 | [
"BSD-2-Clause"
] | 1 | 2017-11-28T14:12:03.000Z | 2017-11-28T14:12:03.000Z | plugin/taskmage2/utils/functional.py | willjp/vim-taskmage | adcf809ccf1768753eca4dadaf6279b34e8d5699 | [
"BSD-2-Clause"
] | 16 | 2017-08-13T18:01:26.000Z | 2020-11-17T04:55:43.000Z | plugin/taskmage2/utils/functional.py | willjp/vim-taskmage | adcf809ccf1768753eca4dadaf6279b34e8d5699 | [
"BSD-2-Clause"
] | null | null | null | import functools
def pipeline(data, fn_list):
""" Runs all functions in `fn_list` on `data` .
Each is expected to return a new copy of `data` .
"""
return functools.reduce(
lambda a, x: map(x, a),
fn_list,
data,
)
def multifilter(filters, result):
""" Applies multiple... | 20.404762 | 53 | 0.565928 | 103 | 857 | 4.563107 | 0.524272 | 0.038298 | 0.051064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010545 | 0.336056 | 857 | 41 | 54 | 20.902439 | 0.815466 | 0.245041 | 0 | 0.086957 | 0 | 0 | 0.013158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0.086957 | 0.478261 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
796872b40aa2e858dee612b34274dfdffd16aead | 1,087 | py | Python | tests/test_htmlelement_functions.py | Bystroushaak/pyDHTMLParser | 8444bd9f78f94b0d94ece8115a5f1c23fd71e641 | [
"MIT"
] | 4 | 2017-05-18T00:21:22.000Z | 2022-02-28T02:34:34.000Z | tests/test_htmlelement_functions.py | Bystroushaak/pyDHTMLParser | 8444bd9f78f94b0d94ece8115a5f1c23fd71e641 | [
"MIT"
] | 16 | 2015-02-14T06:27:23.000Z | 2020-06-10T05:54:59.000Z | tests/test_htmlelement_functions.py | Bystroushaak/pyDHTMLParser | 8444bd9f78f94b0d94ece8115a5f1c23fd71e641 | [
"MIT"
] | 2 | 2016-01-25T14:35:05.000Z | 2020-04-12T21:02:30.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Interpreter version: python 2.7
#
# Imports =====================================================================
import dhtmlparser
from dhtmlparser import first
from dhtmlparser.htmlelement import _rotate_buff
from dhtmlparser.htmlelement import _closeElements
# Fu... | 23.12766 | 79 | 0.564857 | 126 | 1,087 | 4.753968 | 0.293651 | 0.220367 | 0.116861 | 0.1202 | 0.397329 | 0.270451 | 0.083472 | 0 | 0 | 0 | 0 | 0.027586 | 0.199632 | 1,087 | 46 | 80 | 23.630435 | 0.66092 | 0.212512 | 0 | 0.296296 | 0 | 0 | 0.022379 | 0 | 0 | 0 | 0 | 0 | 0.296296 | 1 | 0.074074 | false | 0 | 0.148148 | 0 | 0.222222 | 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 |
796a8cdfcc8ad54537a3aa767ff8ec0057156993 | 729 | py | Python | social_network/posts/models.py | mupastir/social_network | ff75f63210aea719bc39bedf6b9571bba09f4174 | [
"MIT"
] | 1 | 2021-05-17T07:18:01.000Z | 2021-05-17T07:18:01.000Z | social_network/posts/models.py | mupastir/social_network | ff75f63210aea719bc39bedf6b9571bba09f4174 | [
"MIT"
] | null | null | null | social_network/posts/models.py | mupastir/social_network | ff75f63210aea719bc39bedf6b9571bba09f4174 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _
class Post(models.Model):
title = models.CharField(max_length=144, blank=False)
content = models.TextField(max_length=4096)
author = models.ForeignKey('users.User', on_delete=models.CASCADE)
class Meta:
uniqu... | 29.16 | 70 | 0.677641 | 89 | 729 | 5.325843 | 0.460674 | 0.092827 | 0.088608 | 0.132911 | 0.301688 | 0.301688 | 0.219409 | 0.219409 | 0.219409 | 0 | 0 | 0.012069 | 0.20439 | 729 | 24 | 71 | 30.375 | 0.805172 | 0 | 0 | 0.222222 | 0 | 0 | 0.076818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.611111 | 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 |
797410251f4b0fd2a780cd721c16e768494b1834 | 575 | py | Python | mongo-to-sql/mongo_to_sql/process/import.py | wgarlock/mongo-to-sql | b421d48b822c9d8443f76492230987886de34a9d | [
"MIT"
] | null | null | null | mongo-to-sql/mongo_to_sql/process/import.py | wgarlock/mongo-to-sql | b421d48b822c9d8443f76492230987886de34a9d | [
"MIT"
] | 1 | 2021-01-24T21:07:52.000Z | 2021-01-24T21:07:52.000Z | mongo-to-sql/mongo_to_sql/process/import.py | wgarlock/mongo-to-sql | b421d48b822c9d8443f76492230987886de34a9d | [
"MIT"
] | null | null | null | import environ
import os
from mongo_to_sql.databases import mongo, postgres
directory = '/Users/wgarlock/Documents/all_collections'
root = environ.Path(__file__) - 4
BASE_DIR = root()
env = environ.Env(DEBUG=(bool, False))
env.read_env(os.path.join(BASE_DIR, '.migrate_config'))
mongo_database = mongo.MongoDatabase()... | 30.263158 | 98 | 0.78087 | 81 | 575 | 5.345679 | 0.617284 | 0.124711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001976 | 0.12 | 575 | 18 | 99 | 31.944444 | 0.853755 | 0.045217 | 0 | 0 | 0 | 0 | 0.239488 | 0.074954 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7979f26e12a5ee11b62ed51c35e5e36061afd861 | 3,215 | py | Python | Python/HistogramColouringZoom.py | tomchaplin/Multithreaded_Mandelbrot | c2b814e802cbeebf1677daacc19598ca78c73edf | [
"MIT"
] | null | null | null | Python/HistogramColouringZoom.py | tomchaplin/Multithreaded_Mandelbrot | c2b814e802cbeebf1677daacc19598ca78c73edf | [
"MIT"
] | null | null | null | Python/HistogramColouringZoom.py | tomchaplin/Multithreaded_Mandelbrot | c2b814e802cbeebf1677daacc19598ca78c73edf | [
"MIT"
] | null | null | null | import Image
import ImageColor
import time
centerX = 0.28693186889504513
centerY = 0.014286693904085048
zoomIterations = 200
finalZoom = 10000000
width = 192
height = 108
startRangeY = 0.1
startRangeX = startRangeY * float(width) / float(height)
max_iteration = 2000
colour = [20, 125, 19]
img = Image... | 33.489583 | 102 | 0.535303 | 430 | 3,215 | 3.962791 | 0.262791 | 0.049296 | 0.037559 | 0.019366 | 0.140258 | 0.106808 | 0.096831 | 0.072183 | 0.072183 | 0.04108 | 0 | 0.071993 | 0.330327 | 3,215 | 95 | 103 | 33.842105 | 0.719461 | 0.119129 | 0 | 0.109589 | 0 | 0 | 0.03784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041096 | null | null | 0.041096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7984d3dff14c1bdc6d3566882984db76142dffc6 | 2,599 | py | Python | experimentor/views/components/file_selector.py | aquilesC/experimentor | 1a70760912ef40f0e2aaee44ed1a1e5594fd5b45 | [
"MIT"
] | 4 | 2020-05-15T04:07:25.000Z | 2020-09-30T22:20:46.000Z | experimentor/views/components/file_selector.py | aquilesC/experimentor | 1a70760912ef40f0e2aaee44ed1a1e5594fd5b45 | [
"MIT"
] | null | null | null | experimentor/views/components/file_selector.py | aquilesC/experimentor | 1a70760912ef40f0e2aaee44ed1a1e5594fd5b45 | [
"MIT"
] | null | null | null | # ##############################################################################
# Copyright (c) 2021 Aquiles Carattino, Dispertech B.V. #
# file_selector.py is part of Experimentor. #
# This file is released under an MIT license. ... | 39.378788 | 117 | 0.598692 | 310 | 2,599 | 4.948387 | 0.409677 | 0.036506 | 0.039113 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005241 | 0.265871 | 2,599 | 66 | 118 | 39.378788 | 0.798742 | 0.480954 | 0 | 0 | 0 | 0 | 0.002904 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0.043478 | 0.26087 | 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 |
79886baeaa3843cc9fd2360f03b754462d9668ce | 1,031 | py | Python | common/log.py | kollad/turbo-ninja | 9c3f66b2af64aec01f522d19b309cfdd723e67cf | [
"MIT"
] | null | null | null | common/log.py | kollad/turbo-ninja | 9c3f66b2af64aec01f522d19b309cfdd723e67cf | [
"MIT"
] | 1 | 2017-12-14T05:35:38.000Z | 2017-12-14T05:35:38.000Z | common/log.py | kollad/turbo-ninja | 9c3f66b2af64aec01f522d19b309cfdd723e67cf | [
"MIT"
] | null | null | null | from yaml import load
from logging import config
import os
def setup_logger(settings):
"""
Settings object
:param settings: Settings
:type settings: dict
:return:
"""
with open(os.path.join("logging.yaml")) as logging_config:
log_config = load(logging_config)
configure_logs(s... | 20.215686 | 70 | 0.592629 | 118 | 1,031 | 5.076271 | 0.355932 | 0.058431 | 0.050083 | 0.083472 | 0.123539 | 0.123539 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305529 | 1,031 | 50 | 71 | 20.62 | 0.836592 | 0.181377 | 0 | 0.32 | 0 | 0 | 0.056628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.08 | 0.12 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
79a134402bf62f8e79c0c7e2716d8dd0cc681f10 | 9,251 | py | Python | chmap/data/corrections/lbcc/LBCC_generate_theoretic_plots.py | predsci/CHD | 35f29d1b62861f4ffed57b38d18689b282664bcf | [
"Apache-2.0"
] | 3 | 2021-06-29T00:23:47.000Z | 2021-09-17T18:29:05.000Z | chmap/data/corrections/lbcc/LBCC_generate_theoretic_plots.py | predsci/CHD | 35f29d1b62861f4ffed57b38d18689b282664bcf | [
"Apache-2.0"
] | null | null | null | chmap/data/corrections/lbcc/LBCC_generate_theoretic_plots.py | predsci/CHD | 35f29d1b62861f4ffed57b38d18689b282664bcf | [
"Apache-2.0"
] | 1 | 2021-12-08T06:26:18.000Z | 2021-12-08T06:26:18.000Z | """
Generate beta and y plots of lbcc theoretic method for each instrument
- beta and y over time
- beta and y v. mu
Queries parameter values from database
"""
import os
import time
import numpy as np
import datetime
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.lines import Line2D
from ch... | 39.875 | 116 | 0.657551 | 1,364 | 9,251 | 4.197214 | 0.213343 | 0.018166 | 0.033537 | 0.019913 | 0.497817 | 0.476856 | 0.466026 | 0.439825 | 0.427249 | 0.393886 | 0 | 0.020607 | 0.213166 | 9,251 | 231 | 117 | 40.047619 | 0.765902 | 0.163226 | 0 | 0.363636 | 1 | 0 | 0.08125 | 0.010547 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012987 | 0.071429 | 0 | 0.071429 | 0.019481 | 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 |
79a8293e8d5067ac30889939e6bd5de98dec71b8 | 7,502 | py | Python | assets/views.py | khwaab11/faceuser_recognition | d2047aa22b009f40e6c0c1d43b47de1ebded2ff2 | [
"MIT"
] | 1 | 2021-04-14T10:46:50.000Z | 2021-04-14T10:46:50.000Z | assets/views.py | khwaab11/faceuser_recognition | d2047aa22b009f40e6c0c1d43b47de1ebded2ff2 | [
"MIT"
] | 1 | 2020-10-01T14:08:57.000Z | 2020-10-01T14:08:57.000Z | assets/views.py | khwaab11/faceuser_recognition | d2047aa22b009f40e6c0c1d43b47de1ebded2ff2 | [
"MIT"
] | 3 | 2020-10-01T13:58:45.000Z | 2021-04-14T10:46:52.000Z | from django.shortcuts import render,redirect
# Create your views here.
from django.http import HttpResponse, JsonResponse
from .models import Login
from .models import Profile
from .models import Contact
from django.views.decorators.csrf import csrf_exempt
from .forms import LoginForm
from .forms import ProfileForm
im... | 32.617391 | 126 | 0.732338 | 1,018 | 7,502 | 5.3222 | 0.212181 | 0.062938 | 0.038575 | 0.028793 | 0.221853 | 0.100406 | 0.100406 | 0.079365 | 0.062016 | 0.062016 | 0 | 0.006441 | 0.130765 | 7,502 | 230 | 127 | 32.617391 | 0.824413 | 0.017329 | 0 | 0.215385 | 0 | 0 | 0.188595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092308 | false | 0.092308 | 0.076923 | 0.030769 | 0.328205 | 0.020513 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
79b31e55c4e584bd88cdc48d73bd738e9b50d7a8 | 298 | py | Python | Desafios/Desafio 010 (Conversor de moedas).py | Kimberly07-Ernane/Pythondesafios | d5bdf9ad412f73c66d0fda558740923925a78a7b | [
"MIT"
] | null | null | null | Desafios/Desafio 010 (Conversor de moedas).py | Kimberly07-Ernane/Pythondesafios | d5bdf9ad412f73c66d0fda558740923925a78a7b | [
"MIT"
] | null | null | null | Desafios/Desafio 010 (Conversor de moedas).py | Kimberly07-Ernane/Pythondesafios | d5bdf9ad412f73c66d0fda558740923925a78a7b | [
"MIT"
] | null | null | null | #Desafio10
#Crie um programa que leia quanto dinheiro uma pessoa tem na carteira
#e mostre quantos dólares ela pode comprar
#Considere US$1,00 = R$3,27
rs=float(input('Quanto dinheiro você tem na carteira?: R$ '))
dolar = rs/3.27
print('Com R${:.2f} você pode comprar US${:.2f}'.format(rs,dolar))
| 33.111111 | 69 | 0.724832 | 53 | 298 | 4.075472 | 0.679245 | 0.12963 | 0.12037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050781 | 0.14094 | 298 | 8 | 70 | 37.25 | 0.792969 | 0.483221 | 0 | 0 | 0 | 0 | 0.546667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79b563c3ea0f700c556b6db2d9adc1b6d526627a | 466 | py | Python | universal_billing_system/migrations/0002_auto_20191016_1814.py | EmmanuelMuchiri/JamboPay | a4912cd81c35faa91791de44eda4fd92b75d4581 | [
"MIT"
] | null | null | null | universal_billing_system/migrations/0002_auto_20191016_1814.py | EmmanuelMuchiri/JamboPay | a4912cd81c35faa91791de44eda4fd92b75d4581 | [
"MIT"
] | null | null | null | universal_billing_system/migrations/0002_auto_20191016_1814.py | EmmanuelMuchiri/JamboPay | a4912cd81c35faa91791de44eda4fd92b75d4581 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-10-16 15:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('universal_billing_system', '0001_initial'),
]
operations = [
migrations.Al... | 22.190476 | 54 | 0.628755 | 52 | 466 | 5.403846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063584 | 0.257511 | 466 | 20 | 55 | 23.3 | 0.748555 | 0.148069 | 0 | 0 | 1 | 0 | 0.13198 | 0.060914 | 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 |
79bc73d33268da153a2a225cae1ba37bcbb05b35 | 891 | py | Python | week09/authentication/sitapp/app/auth/views.py | cbchoi/sit32006 | 746481d0c03d5aad6096338b077c3d032eeb3775 | [
"MIT"
] | null | null | null | week09/authentication/sitapp/app/auth/views.py | cbchoi/sit32006 | 746481d0c03d5aad6096338b077c3d032eeb3775 | [
"MIT"
] | null | null | null | week09/authentication/sitapp/app/auth/views.py | cbchoi/sit32006 | 746481d0c03d5aad6096338b077c3d032eeb3775 | [
"MIT"
] | null | null | null | from flask import render_template, redirect, request, url_for, flash
from flask_login import login_user, login_required, logout_user
from ..models import User
from .forms import LoginForm
from . import auth
@auth.route('/login', methods=['GET', 'POST'])
def login():
form = LoginForm()
if form.validate_on_su... | 35.64 | 70 | 0.725028 | 128 | 891 | 4.90625 | 0.453125 | 0.028662 | 0.031847 | 0.047771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140292 | 891 | 25 | 71 | 35.64 | 0.819843 | 0.057239 | 0 | 0 | 0 | 0 | 0.159314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.130435 | 0.217391 | 0 | 0.434783 | 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 |
79becefb13614e93ef4b811d53ba7cf619b7089c | 797 | py | Python | implementations/permutation.py | e-liyai/python_algorithms | 90c099dc2ca27211228c3e0189ffcbe7889b9d2e | [
"MIT"
] | null | null | null | implementations/permutation.py | e-liyai/python_algorithms | 90c099dc2ca27211228c3e0189ffcbe7889b9d2e | [
"MIT"
] | null | null | null | implementations/permutation.py | e-liyai/python_algorithms | 90c099dc2ca27211228c3e0189ffcbe7889b9d2e | [
"MIT"
] | null | null | null | def permutation(input_list):
if len(input_list) == 0:
return []
elif len(input_list) == 1:
return [input_list]
else:
result = []
for i in range(len(input_list)):
element = input_list[i]
other_elements = input_list[:i] + input_list[i + 1:]
f... | 29.518519 | 64 | 0.550816 | 100 | 797 | 4.19 | 0.23 | 0.343675 | 0.171838 | 0.066826 | 0.577566 | 0.49642 | 0.49642 | 0.381862 | 0.381862 | 0.381862 | 0 | 0.015238 | 0.34128 | 797 | 26 | 65 | 30.653846 | 0.782857 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.208333 | 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 |
79c2de15676c369fe4b10bee24ada88b27d9413c | 327 | py | Python | wagtailvideos/permissions.py | pythontrade/wagtailvideos | dd9078e7b2784399ba3995b520b91db48d5661c8 | [
"BSD-3-Clause"
] | null | null | null | wagtailvideos/permissions.py | pythontrade/wagtailvideos | dd9078e7b2784399ba3995b520b91db48d5661c8 | [
"BSD-3-Clause"
] | null | null | null | wagtailvideos/permissions.py | pythontrade/wagtailvideos | dd9078e7b2784399ba3995b520b91db48d5661c8 | [
"BSD-3-Clause"
] | null | null | null | from wagtail.core.permission_policies.collections import (
CollectionOwnershipPermissionPolicy)
from wagtailvideos import get_video_model
from wagtailvideos.models import Video
permission_policy = CollectionOwnershipPermissionPolicy(
get_video_model(),
auth_model=Video,
owner_field_name='uploaded_by_u... | 27.25 | 58 | 0.831804 | 34 | 327 | 7.676471 | 0.617647 | 0.130268 | 0.099617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116208 | 327 | 11 | 59 | 29.727273 | 0.903114 | 0 | 0 | 0 | 0 | 0 | 0.04893 | 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 |
79c4709203205a1ed9a3e6bdd499770cb962edf1 | 251 | py | Python | 4 kyu/Memoized Log Cutting.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 4 kyu/Memoized Log Cutting.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 4 kyu/Memoized Log Cutting.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def cut_log(p, n):
maximum=[0]
for j in range(1, n+1):
comp=-float("inf")
for i in range(1, j+1): # Two nested loops = Θ(n^2)
comp=max(p[i-1+1]+maximum[j-i], comp)
maximum.append(comp)
return maximum[-1] | 31.375 | 59 | 0.525896 | 46 | 251 | 2.847826 | 0.521739 | 0.10687 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050562 | 0.290837 | 251 | 8 | 60 | 31.375 | 0.685393 | 0.099602 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79d0d7c49abbabc0f5cabaf6d81ff3b3a84f7164 | 15,086 | py | Python | composer/callbacks/callback_hparams.py | Landanjs/composer | de75822706bc8a33e7d487b33a0b994944b9c806 | [
"Apache-2.0"
] | 1 | 2021-11-09T22:58:46.000Z | 2021-11-09T22:58:46.000Z | composer/callbacks/callback_hparams.py | Landanjs/composer | de75822706bc8a33e7d487b33a0b994944b9c806 | [
"Apache-2.0"
] | null | null | null | composer/callbacks/callback_hparams.py | Landanjs/composer | de75822706bc8a33e7d487b33a0b994944b9c806 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 MosaicML Composer authors
# SPDX-License-Identifier: Apache-2.0
"""Hyperparameters for callbacks."""
from __future__ import annotations
import abc
import textwrap
from dataclasses import asdict, dataclass
from typing import Optional, Union
import yahp as hp
from composer.callbacks.checkpoint_saver ... | 46.561728 | 135 | 0.670025 | 1,755 | 15,086 | 5.673504 | 0.177208 | 0.025108 | 0.02089 | 0.020789 | 0.419906 | 0.345686 | 0.286432 | 0.271367 | 0.250276 | 0.240836 | 0 | 0.003547 | 0.233859 | 15,086 | 323 | 136 | 46.705882 | 0.857934 | 0.46109 | 0 | 0.132867 | 0 | 0 | 0.282951 | 0.030683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062937 | false | 0.006993 | 0.125874 | 0 | 0.531469 | 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 |
8dace3b44c19ee7d76662d4ba2b60321a1734987 | 769 | py | Python | Maximum_Binary_Tree.py | linan-zhou/leetcode_solutions | dfa5518740f586d59bc8471694efeda017e5a174 | [
"MIT"
] | null | null | null | Maximum_Binary_Tree.py | linan-zhou/leetcode_solutions | dfa5518740f586d59bc8471694efeda017e5a174 | [
"MIT"
] | null | null | null | Maximum_Binary_Tree.py | linan-zhou/leetcode_solutions | dfa5518740f586d59bc8471694efeda017e5a174 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def constructMaximumBinaryTree(self, nums):
"""
:type nums: List[int]
:rtype: TreeNode
"""
... | 27.464286 | 70 | 0.524057 | 84 | 769 | 4.75 | 0.416667 | 0.045113 | 0.170426 | 0.185464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.375813 | 769 | 28 | 71 | 27.464286 | 0.822917 | 0.096229 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.227273 | 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 |
8dad0b672af9504f6aea8f13477048c6a9b91090 | 287 | py | Python | tests/e2e/utils/load_balancer/common.py | awslabs/kubeflow-manifests | 0e96ae335e7fa3eac94bdd3a6cda5dbaffa29ddb | [
"Apache-2.0"
] | 40 | 2021-11-10T22:14:52.000Z | 2022-03-28T20:48:16.000Z | tests/e2e/utils/load_balancer/common.py | awslabs/kubeflow-manifests | 0e96ae335e7fa3eac94bdd3a6cda5dbaffa29ddb | [
"Apache-2.0"
] | 105 | 2021-11-03T00:16:01.000Z | 2022-03-31T23:51:05.000Z | tests/e2e/utils/load_balancer/common.py | awslabs/kubeflow-manifests | 0e96ae335e7fa3eac94bdd3a6cda5dbaffa29ddb | [
"Apache-2.0"
] | 19 | 2021-11-08T19:15:18.000Z | 2022-03-16T23:08:21.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import yaml
import logging
logger = logging.getLogger(__name__)
CONFIG_FILE = "./utils/load_balancer/config.yaml"
LB_KUSTOMIZE_PATH = "../../deployment/add-ons/load-balancer/"
| 23.916667 | 68 | 0.763066 | 39 | 287 | 5.410256 | 0.846154 | 0.113744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007782 | 0.10453 | 287 | 11 | 69 | 26.090909 | 0.81323 | 0.355401 | 0 | 0 | 0 | 0 | 0.395604 | 0.395604 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8dbcd6669242fc682dccc3448bf5783e0d9c00bd | 253 | py | Python | examples/sample_program.py | GProulx/PyCuber | e44b5ba48c831b964ce73d046fb813222771853f | [
"MIT"
] | 199 | 2015-01-16T15:28:37.000Z | 2022-03-19T10:59:59.000Z | examples/sample_program.py | user4194304/PyCuber | e44b5ba48c831b964ce73d046fb813222771853f | [
"MIT"
] | 15 | 2015-04-27T09:03:41.000Z | 2020-06-25T05:43:58.000Z | examples/sample_program.py | user4194304/PyCuber | e44b5ba48c831b964ce73d046fb813222771853f | [
"MIT"
] | 63 | 2015-01-16T15:28:39.000Z | 2022-02-06T15:17:37.000Z | import sys
import os
import pycuber as pc
from pycuber.solver import CFOPSolver
c = pc.Cube()
alg = pc.Formula()
random_alg = alg.random()
c(random_alg)
solver = CFOPSolver(c)
solution = solver.solve(suppress_progress_messages=True)
print(solution)
| 15.8125 | 56 | 0.770751 | 38 | 253 | 5.026316 | 0.552632 | 0.115183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 253 | 15 | 57 | 16.866667 | 0.868182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8dc6604fac47cf3675144724e9657051751b89fb | 1,561 | py | Python | hot.py | idir0609/FeedRss | 872f981a69af05af90165bd20ffef5ebd3c7b608 | [
"MIT"
] | null | null | null | hot.py | idir0609/FeedRss | 872f981a69af05af90165bd20ffef5ebd3c7b608 | [
"MIT"
] | null | null | null | hot.py | idir0609/FeedRss | 872f981a69af05af90165bd20ffef5ebd3c7b608 | [
"MIT"
] | null | null | null | import feedparser
import json
import urllib
import webbrowser
hot = feedparser.parse("http://www.billboard.com/rss/charts/hot-100")
print "================================"
print "= BILLBOARD HOT 100 ="
print "================================"
print ""
#for x in range(0,len(hot['entries'])):
for x in rang... | 41.078947 | 181 | 0.655349 | 204 | 1,561 | 4.95098 | 0.357843 | 0.059406 | 0.043564 | 0.071287 | 0.562376 | 0.475248 | 0.425743 | 0.425743 | 0.354455 | 0.354455 | 0 | 0.033479 | 0.119795 | 1,561 | 37 | 182 | 42.189189 | 0.701601 | 0.234465 | 0 | 0.333333 | 0 | 0.041667 | 0.489487 | 0.053827 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.291667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8dcad38e31a1bc261e08188649fd1f1ec9ed387f | 407 | py | Python | webhookforwarder/constants.py | colajam93/webhook-forwarder | 60cfa9e52cfad5d604091d96f6c2bbd48445471a | [
"MIT"
] | null | null | null | webhookforwarder/constants.py | colajam93/webhook-forwarder | 60cfa9e52cfad5d604091d96f6c2bbd48445471a | [
"MIT"
] | null | null | null | webhookforwarder/constants.py | colajam93/webhook-forwarder | 60cfa9e52cfad5d604091d96f6c2bbd48445471a | [
"MIT"
] | null | null | null | class OUTGOING:
TOKEN = 'token'
TEAM_ID = 'team_id'
TEAM_DOMAIN = 'team_domain'
CHANNEL_ID = 'channel_id'
CHANNEL_NAME = 'channel_name'
TIMESTAMP = 'timestamp'
USER_ID = 'user_id'
USER_NAME = 'user_name'
TEXT = 'text'
TRIGGER_WORD = 'trigger_word'
class INCOMING:
USER_NAME ... | 21.421053 | 33 | 0.636364 | 51 | 407 | 4.705882 | 0.352941 | 0.1 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255528 | 407 | 18 | 34 | 22.611111 | 0.792079 | 0 | 0 | 0.125 | 0 | 0 | 0.285012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8dcf3fe0802cc5db3c59f5abe89b2eaa4c6a9f15 | 184 | py | Python | cvxpy/reductions/dgp2dcp/atom_canonicalizers/quad_over_lin_canon.py | TShimko126/cvxpy | 8b89b3f8ef7daba1db39f5029e4902f06c75b29f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-07-11T11:20:38.000Z | 2019-07-11T11:20:38.000Z | cvxpy/reductions/dgp2dcp/atom_canonicalizers/quad_over_lin_canon.py | TShimko126/cvxpy | 8b89b3f8ef7daba1db39f5029e4902f06c75b29f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cvxpy/reductions/dgp2dcp/atom_canonicalizers/quad_over_lin_canon.py | TShimko126/cvxpy | 8b89b3f8ef7daba1db39f5029e4902f06c75b29f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | from cvxpy.atoms.affine.vec import vec
def quad_over_lin_canon(expr, args):
x = vec(args[0])
y = args[1]
numerator = sum(2 * xi for xi in x)
return numerator - y, []
| 20.444444 | 39 | 0.630435 | 32 | 184 | 3.53125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.244565 | 184 | 8 | 40 | 23 | 0.791367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8dd814660ba5d0659fbbf052d3811f072e5f9d38 | 671 | py | Python | tests/endpoints/test_events.py | tmnhat2001/yelp-fusion-api | 91e9e2b763efd96f12fd926484e1a32921421f1c | [
"MIT"
] | null | null | null | tests/endpoints/test_events.py | tmnhat2001/yelp-fusion-api | 91e9e2b763efd96f12fd926484e1a32921421f1c | [
"MIT"
] | null | null | null | tests/endpoints/test_events.py | tmnhat2001/yelp-fusion-api | 91e9e2b763efd96f12fd926484e1a32921421f1c | [
"MIT"
] | null | null | null | from yelpfusion.endpoints.events import Events
def test_events_get(requests_mock):
mock_api = requests_mock.get("https://api.yelp.com/v3/events/abc", json={})
Events("test-key").get("abc", locale="en_US")
assert mock_api.called is True
def test_events_search(requests_mock):
mock_api = requests_moc... | 25.807692 | 84 | 0.721311 | 101 | 671 | 4.594059 | 0.29703 | 0.155172 | 0.084052 | 0.122845 | 0.586207 | 0.586207 | 0.532328 | 0.532328 | 0.532328 | 0.368534 | 0 | 0.005128 | 0.128167 | 671 | 25 | 85 | 26.84 | 0.788034 | 0 | 0 | 0.230769 | 0 | 0 | 0.217586 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8dda9744b2c601118755c8634433d400dcb100a7 | 16,116 | py | Python | app/views.py | sredmond/apc | 646cfa307837ffd3b5c11bae4d398b127918c8ca | [
"MIT"
] | null | null | null | app/views.py | sredmond/apc | 646cfa307837ffd3b5c11bae4d398b127918c8ca | [
"MIT"
] | null | null | null | app/views.py | sredmond/apc | 646cfa307837ffd3b5c11bae4d398b127918c8ca | [
"MIT"
] | null | null | null | '''
HTML is only at main link text, class log, hw, and additional
TODO
Verify MainLink content
Resource files
(Modify rendering options?)
TODO
Form validation! I need to make sure Dr. Dann doesn't enter any weird html
Verify main link content
Visual
Carousel Item
Angular preview
Force image to be a certain size... | 34.883117 | 275 | 0.663874 | 2,205 | 16,116 | 4.710204 | 0.177324 | 0.020797 | 0.017524 | 0.023108 | 0.290583 | 0.254381 | 0.217986 | 0.207298 | 0.174658 | 0.162141 | 0 | 0.006282 | 0.199988 | 16,116 | 461 | 276 | 34.958785 | 0.799271 | 0.146128 | 0 | 0.199367 | 0 | 0.003165 | 0.168015 | 0.031445 | 0 | 0 | 0 | 0.006508 | 0 | 0 | null | null | 0.012658 | 0.03481 | null | null | 0.009494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8de00c1dba0703ad00f7125a73e63373118ce38f | 4,163 | py | Python | creators_py/test/test_api.py | creatorssyn/creators_py | affdec7ea5fe060e2f10607baefc78ca0d7f4aa2 | [
"MIT"
] | null | null | null | creators_py/test/test_api.py | creatorssyn/creators_py | affdec7ea5fe060e2f10607baefc78ca0d7f4aa2 | [
"MIT"
] | null | null | null | creators_py/test/test_api.py | creatorssyn/creators_py | affdec7ea5fe060e2f10607baefc78ca0d7f4aa2 | [
"MIT"
] | null | null | null | import unittest, sys, os, hashlib, subprocess, shlex
from creators_py import creators_api
# This is a demo user key. These tests are written specifically
# for this user. They will fail if the API key is changed.
creators_api.api_key = 'B8C31227882C3C10D954BD11A67DF138125C895B'
api_username = 'cr_api_demo'
api_passw... | 40.417476 | 114 | 0.641845 | 507 | 4,163 | 5.015779 | 0.230769 | 0.168698 | 0.066064 | 0.046795 | 0.577271 | 0.490366 | 0.427448 | 0.278018 | 0.261895 | 0.201337 | 0 | 0.024058 | 0.241172 | 4,163 | 103 | 115 | 40.417476 | 0.780943 | 0.06774 | 0 | 0.082192 | 0 | 0 | 0.079928 | 0.028195 | 0 | 0 | 0 | 0 | 0.465753 | 1 | 0.109589 | false | 0.041096 | 0.027397 | 0 | 0.178082 | 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 |
8de646b01dc77ee90095b936b900b7e2e9bd4fd9 | 713 | py | Python | F_Advanced_Data_Structures/ads_02_02_hash.py | Oscar-Oliveira/Data-Structures-Algorithms | 4f75a5aa1e525a5b59944a2cc15f670f0b216a80 | [
"MIT"
] | null | null | null | F_Advanced_Data_Structures/ads_02_02_hash.py | Oscar-Oliveira/Data-Structures-Algorithms | 4f75a5aa1e525a5b59944a2cc15f670f0b216a80 | [
"MIT"
] | null | null | null | F_Advanced_Data_Structures/ads_02_02_hash.py | Oscar-Oliveira/Data-Structures-Algorithms | 4f75a5aa1e525a5b59944a2cc15f670f0b216a80 | [
"MIT"
] | null | null | null | """
Hash table - example
"""
import ads_02_00_DB as DB
from B_Data_Structures.hashtable import HashTable
#ht.HashTable.SIZE = 20
def main():
agenda = HashTable()
print(agenda)
print()
for user in DB.user_to_add:
if agenda.insert(user[0], user):
print("User was a... | 19.27027 | 58 | 0.576438 | 89 | 713 | 4.449438 | 0.550562 | 0.138889 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031434 | 0.286115 | 713 | 36 | 59 | 19.805556 | 0.746562 | 0.060309 | 0 | 0.217391 | 0 | 0 | 0.161342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.130435 | 0.478261 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8de7b9adf3ce22fe30e0f3fb46f8621ff3c92614 | 741 | py | Python | test/test_run_sequence.py | shirazb/pytorch-autograd-checkpointing | a31513208fe085365db6d8d7a4a4fad72e18d95b | [
"MIT"
] | 1 | 2019-10-14T16:52:02.000Z | 2019-10-14T16:52:02.000Z | test/test_run_sequence.py | shirazb/pytorch-autograd-checkpointing | a31513208fe085365db6d8d7a4a4fad72e18d95b | [
"MIT"
] | null | null | null | test/test_run_sequence.py | shirazb/pytorch-autograd-checkpointing | a31513208fe085365db6d8d7a4a4fad72e18d95b | [
"MIT"
] | 1 | 2019-08-31T22:00:27.000Z | 2019-08-31T22:00:27.000Z | import pytest
import numpy as np
import torch
import pytorch_autograd_checkpointing as c
from .testing_utils import mk_seq
def test_run_sequence():
N = 20
M = 300
compute_costs = np.random.rand(2, N+2) * 10
memory_costs = np.random.randint(2, high=60, size=(2,N+2), dtype=np.int16)
err, C, D = c.... | 24.7 | 104 | 0.651822 | 119 | 741 | 3.907563 | 0.546218 | 0.077419 | 0.055914 | 0.060215 | 0.107527 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0.045614 | 0.230769 | 741 | 29 | 105 | 25.551724 | 0.770175 | 0.026991 | 0 | 0 | 0 | 0 | 0.037552 | 0 | 0 | 0 | 0 | 0.034483 | 0.047619 | 1 | 0.047619 | false | 0 | 0.238095 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8dec81c8f9c639dc89068e765f1c83ea8b609c49 | 8,954 | py | Python | pipeline/1.prepare_data.py | mengbiping/caffe | de9c114bb761e3ddc930e18edb5bf6cac3b2f799 | [
"Intel",
"BSD-2-Clause"
] | 1 | 2015-12-16T05:19:27.000Z | 2015-12-16T05:19:27.000Z | pipeline/1.prepare_data.py | mengbiping/caffe | de9c114bb761e3ddc930e18edb5bf6cac3b2f799 | [
"Intel",
"BSD-2-Clause"
] | null | null | null | pipeline/1.prepare_data.py | mengbiping/caffe | de9c114bb761e3ddc930e18edb5bf6cac3b2f799 | [
"Intel",
"BSD-2-Clause"
] | 3 | 2015-07-22T08:13:09.000Z | 2015-12-24T08:54:41.000Z | #!/usr/bin/python
# Take a folder as input. The folder contains several folders in it, each
# containing certain number of images. We treat the folder names as the label
# for the containing images.
# The output will be:
# 1. two folders of images, train and val
# 2. two text files, train.txt and val.txt containing the... | 34.976563 | 83 | 0.699241 | 1,265 | 8,954 | 4.761265 | 0.178656 | 0.022912 | 0.024905 | 0.02092 | 0.254856 | 0.215341 | 0.144612 | 0.099784 | 0.06857 | 0.01295 | 0 | 0.007625 | 0.179808 | 8,954 | 255 | 84 | 35.113725 | 0.8125 | 0.07572 | 0 | 0.033333 | 0 | 0 | 0.133699 | 0.022216 | 0 | 0 | 0 | 0 | 0.016667 | 0 | null | null | 0 | 0.066667 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8df0ddf28bc070774adcde8e5a319fc613020235 | 10,281 | py | Python | templation/views.py | qdqmedia/django-templation | 30f2e71f317bf635ace8cce119aface3fe89e876 | [
"BSD-3-Clause"
] | 7 | 2015-12-14T23:22:12.000Z | 2021-04-15T20:24:23.000Z | templation/views.py | qdqmedia/django-templation | 30f2e71f317bf635ace8cce119aface3fe89e876 | [
"BSD-3-Clause"
] | null | null | null | templation/views.py | qdqmedia/django-templation | 30f2e71f317bf635ace8cce119aface3fe89e876 | [
"BSD-3-Clause"
] | null | null | null | """
Mixin to add in your CCBV to store the object.pk as resource to be fetched in
the template.
"""
from __future__ import absolute_import
import sys
from django.conf import settings
from django.http import HttpResponseServerError
from django.template import Template, Context
from django.views.static import serve
from ... | 37.521898 | 79 | 0.612392 | 1,226 | 10,281 | 5.050571 | 0.285481 | 0.023256 | 0.013566 | 0.006783 | 0.075097 | 0.0625 | 0.02584 | 0.02584 | 0.02584 | 0.02584 | 0 | 0.025588 | 0.243556 | 10,281 | 273 | 80 | 37.659341 | 0.770606 | 0.04698 | 0 | 0.128099 | 0 | 0.024793 | 0.810875 | 0.112653 | 0.004132 | 0 | 0.001233 | 0 | 0 | 1 | 0.016529 | false | 0 | 0.041322 | 0.004132 | 0.099174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8df6da1c477bfc35d6181130d563e6f101925983 | 1,945 | py | Python | datacamp-master/22-introduction-to-time-series-analysis-in-python/01-correlation-and-autocorrelation/06-a-popular-strategy-using-autocorrelation.py | vitthal10/datacamp | 522d2b192656f7f6563bf6fc33471b048f1cf029 | [
"MIT"
] | 1 | 2020-06-11T01:32:36.000Z | 2020-06-11T01:32:36.000Z | 22-introduction-to-time-series-analysis-in-python/01-correlation-and-autocorrelation/06-a-popular-strategy-using-autocorrelation.py | AndreasFerox/DataCamp | 41525d7252f574111f4929158da1498ee1e73a84 | [
"MIT"
] | null | null | null | 22-introduction-to-time-series-analysis-in-python/01-correlation-and-autocorrelation/06-a-popular-strategy-using-autocorrelation.py | AndreasFerox/DataCamp | 41525d7252f574111f4929158da1498ee1e73a84 | [
"MIT"
] | 1 | 2021-08-08T05:09:52.000Z | 2021-08-08T05:09:52.000Z | '''
A Popular Strategy Using Autocorrelation
One puzzling anomaly with stocks is that investors tend to overreact to news. Following large jumps, either up or down, stock prices tend to reverse. This is described as mean reversion in stock prices: prices tend to bounce back, or revert, towards previous levels after la... | 74.807692 | 503 | 0.792288 | 311 | 1,945 | 4.948553 | 0.446945 | 0.070175 | 0.038986 | 0.033788 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009756 | 0.156812 | 1,945 | 26 | 504 | 74.807692 | 0.928659 | 0.892031 | 0 | 0 | 0 | 0 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8dfb9051adfc965f10dd775f31b7452434ca4a45 | 5,111 | py | Python | tests/unit/time_manager/db/dao/test_user.py | krjakbrjak/time_management | 54ed55ddf0da9500722da4d0aafbc71ebfccc205 | [
"MIT"
] | null | null | null | tests/unit/time_manager/db/dao/test_user.py | krjakbrjak/time_management | 54ed55ddf0da9500722da4d0aafbc71ebfccc205 | [
"MIT"
] | 8 | 2021-11-10T11:05:34.000Z | 2021-11-14T16:07:25.000Z | tests/unit/time_manager/db/dao/test_user.py | krjakbrjak/time_management | 54ed55ddf0da9500722da4d0aafbc71ebfccc205 | [
"MIT"
] | null | null | null | from typing import Optional
import pytest
from time_manager.db.exceptions import IntegrityError, ItemNotFound
from time_manager.db.sql.base import session_scope
from time_manager.db.sql.models.user import User
from time_manager.db.sql.user import UserDao
from time_manager.schemas.user import UserDBBase
@pytest.mark... | 28.082418 | 85 | 0.599687 | 645 | 5,111 | 4.677519 | 0.12093 | 0.069606 | 0.080212 | 0.025522 | 0.736493 | 0.647663 | 0.641034 | 0.617832 | 0.60358 | 0.56944 | 0 | 0.010218 | 0.272354 | 5,111 | 181 | 86 | 28.237569 | 0.801022 | 0 | 0 | 0.543624 | 0 | 0 | 0.05224 | 0 | 0 | 0 | 0 | 0 | 0.248322 | 1 | 0.026846 | false | 0.181208 | 0.04698 | 0 | 0.073826 | 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 |
5c039c2cee3f025b2f48621920fe944c595e3846 | 2,734 | py | Python | manage.py | nosarthur/ckc00 | 4c30180b622cb8d0dfffba8bb3fb4eb6c7be5598 | [
"MIT"
] | null | null | null | manage.py | nosarthur/ckc00 | 4c30180b622cb8d0dfffba8bb3fb4eb6c7be5598 | [
"MIT"
] | 1 | 2017-10-17T03:23:29.000Z | 2017-10-17T03:23:29.000Z | manage.py | nosarthur/ckc00 | 4c30180b622cb8d0dfffba8bb3fb4eb6c7be5598 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import imp
import json
from datetime import datetime
from flask_script import Manager
from migrate.versioning import api
from app import create_app
from app import db
from app.models import User
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
@manager.... | 27.616162 | 67 | 0.657279 | 366 | 2,734 | 4.743169 | 0.325137 | 0.03629 | 0.065668 | 0.039747 | 0.314516 | 0.286866 | 0.21659 | 0.21659 | 0.21659 | 0.164171 | 0 | 0.003711 | 0.211412 | 2,734 | 98 | 68 | 27.897959 | 0.801484 | 0.049378 | 0 | 0.355263 | 0 | 0 | 0.166279 | 0.063953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0.078947 | 0.144737 | 0 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5c09b84446add6ad99099928ccca7a85bd652749 | 7,947 | py | Python | regym/rl_algorithms/MCTS/simultaneous_mcts.py | Danielhp95/Generalized-RL-Self-Play-Framework | 64e02e143070ca6eb8bc8f898c431f59cd229341 | [
"MIT"
] | 1 | 2019-06-20T12:40:57.000Z | 2019-06-20T12:40:57.000Z | regym/rl_algorithms/MCTS/simultaneous_mcts.py | Danielhp95/Generalized-RL-Self-Play-Framework | 64e02e143070ca6eb8bc8f898c431f59cd229341 | [
"MIT"
] | 1 | 2019-01-29T18:43:32.000Z | 2019-01-31T17:31:39.000Z | regym/rl_algorithms/MCTS/simultaneous_mcts.py | Danielhp95/Generalized-RL-Self-Play-Framework | 64e02e143070ca6eb8bc8f898c431f59cd229341 | [
"MIT"
] | 2 | 2019-01-29T17:37:55.000Z | 2019-03-22T11:15:58.000Z | from typing import List, Dict, Callable, Tuple
from math import sqrt
import random
import gym
from regym.rl_algorithms.MCTS.selection_strategies import UCB1, PUCT
from regym.rl_algorithms.MCTS.simultaneous_open_loop_node import SimultaneousOpenLoopNode
from regym.rl_algorithms.MCTS.util import random_rollout_policy
... | 45.936416 | 108 | 0.687933 | 1,046 | 7,947 | 5.09847 | 0.239006 | 0.050628 | 0.024939 | 0.021001 | 0.181324 | 0.150384 | 0.110257 | 0.100131 | 0.080255 | 0.080255 | 0 | 0.001003 | 0.247389 | 7,947 | 172 | 109 | 46.203488 | 0.890654 | 0.485089 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.081081 | false | 0 | 0.094595 | 0 | 0.243243 | 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 |
5c1b5d0c38806248faca09a7c6e0113f2bcc99ea | 199 | py | Python | Ekeopara_Praise/Phase 1/Python Basic 2/Day17 Tasks/Task4.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Ekeopara_Praise/Phase 1/Python Basic 2/Day17 Tasks/Task4.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Ekeopara_Praise/Phase 1/Python Basic 2/Day17 Tasks/Task4.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | '''4. Write a Python program to add two positive integers without using the '+' operator.
Note: Use bit wise operations to add two numbers.'''
num1 = 4
num2 = 34
num3 = num1.__add__(num2)
print(num3) | 33.166667 | 89 | 0.728643 | 33 | 199 | 4.272727 | 0.757576 | 0.070922 | 0.113475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 0.165829 | 199 | 6 | 90 | 33.166667 | 0.789157 | 0.683417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c489e63292f98500e4d30bb270c1e91e1ca1028 | 1,824 | py | Python | Projects/Random Password Generator/main.py | Abbhiishek/Python | 3ad5310ca29469f353f9afa99531f01273eec6bd | [
"MIT"
] | 1 | 2022-02-04T07:04:34.000Z | 2022-02-04T07:04:34.000Z | Projects/Random Password Generator/main.py | Abbhiishek/Python | 3ad5310ca29469f353f9afa99531f01273eec6bd | [
"MIT"
] | 12 | 2022-02-13T12:10:32.000Z | 2022-02-17T09:36:49.000Z | Projects/Random Password Generator/main.py | Abbhiishek/Python | 3ad5310ca29469f353f9afa99531f01273eec6bd | [
"MIT"
] | null | null | null | import random, string
from tkinter import *
import pyperclip
#Initialize Window
root =Tk()
root.geometry("1920x1080") #size of the window by default
#title of our window
root.title("Random Password Generator")
# ------------------- Random Password generator function
output_pass = StringVar()
all_combi = ... | 35.764706 | 165 | 0.693531 | 246 | 1,824 | 5.073171 | 0.422764 | 0.043269 | 0.036058 | 0.024038 | 0.184295 | 0.184295 | 0.110577 | 0.110577 | 0.110577 | 0.110577 | 0 | 0.028105 | 0.161184 | 1,824 | 51 | 166 | 35.764706 | 0.787582 | 0.267544 | 0 | 0 | 0 | 0 | 0.156463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.666667 | 0.125 | 0 | 0.208333 | 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 |
30852e36552baa47e881900c3936c8b515b9a61f | 552 | py | Python | api/tacticalrmm/apiv2/urls.py | BaDTaG/tacticalrmm | 7bdd8c4626e0629d393edb5dec2541150d1802ef | [
"MIT"
] | 1 | 2021-01-19T20:39:02.000Z | 2021-01-19T20:39:02.000Z | api/tacticalrmm/apiv2/urls.py | BaDTaG/tacticalrmm | 7bdd8c4626e0629d393edb5dec2541150d1802ef | [
"MIT"
] | null | null | null | api/tacticalrmm/apiv2/urls.py | BaDTaG/tacticalrmm | 7bdd8c4626e0629d393edb5dec2541150d1802ef | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
from apiv3 import views as v3_views
urlpatterns = [
path("newagent/", v3_views.NewAgent.as_view()),
path("meshexe/", v3_views.MeshExe.as_view()),
path("saltminion/", v3_views.SaltMinion.as_view()),
path("<str:agentid>/saltminion/", v3_views.SaltMinion.as... | 36.8 | 69 | 0.695652 | 74 | 552 | 4.986486 | 0.256757 | 0.130081 | 0.189702 | 0.146341 | 0.444444 | 0.200542 | 0.200542 | 0 | 0 | 0 | 0 | 0.016495 | 0.121377 | 552 | 14 | 70 | 39.428571 | 0.74433 | 0 | 0 | 0 | 0 | 0 | 0.190217 | 0.092391 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 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 |
3092117f7377913be3ab0f23b06beb4b1d800bf8 | 4,251 | py | Python | a10sdk/core/gslb/gslb_policy_geo_location.py | deepfield/a10sdk-python | bfaa58099f51f085d5e91652d1d1a3fd5c529d5d | [
"Apache-2.0"
] | 16 | 2015-05-20T07:26:30.000Z | 2021-01-23T11:56:57.000Z | a10sdk/core/gslb/gslb_policy_geo_location.py | deepfield/a10sdk-python | bfaa58099f51f085d5e91652d1d1a3fd5c529d5d | [
"Apache-2.0"
] | 6 | 2015-03-24T22:07:11.000Z | 2017-03-28T21:31:18.000Z | a10sdk/core/gslb/gslb_policy_geo_location.py | deepfield/a10sdk-python | bfaa58099f51f085d5e91652d1d1a3fd5c529d5d | [
"Apache-2.0"
] | 23 | 2015-03-29T15:43:01.000Z | 2021-06-02T17:12:01.000Z | from a10sdk.common.A10BaseClass import A10BaseClass
class IpMultipleFields(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param ip_addr2_sub: {"type": "string", "description": "Specify IP address range", "format": "ipv4-address"}
:param ip_sub: {"type": "string", "... | 44.747368 | 528 | 0.634909 | 504 | 4,251 | 5.255952 | 0.202381 | 0.09513 | 0.049075 | 0.0906 | 0.722159 | 0.693469 | 0.693469 | 0.693469 | 0.653832 | 0.653832 | 0 | 0.021656 | 0.196189 | 4,251 | 94 | 529 | 45.223404 | 0.753585 | 0.667608 | 0 | 0.441176 | 0 | 0 | 0.080442 | 0.037855 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.029412 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
309aa0abb28fff13a27ea83a7c279af8f8124dfd | 2,622 | py | Python | preprint/config.py | jonathansick/preprint | dff4921c5f8ab30fc7eee26db8b9da335221349e | [
"BSD-2-Clause"
] | 5 | 2015-02-05T22:16:35.000Z | 2016-09-09T04:20:55.000Z | preprint/config.py | jonathansick/preprint | dff4921c5f8ab30fc7eee26db8b9da335221349e | [
"BSD-2-Clause"
] | 3 | 2015-08-10T20:28:49.000Z | 2015-08-10T20:50:48.000Z | preprint/config.py | jonathansick/preprint | dff4921c5f8ab30fc7eee26db8b9da335221349e | [
"BSD-2-Clause"
] | 1 | 2020-10-30T04:42:05.000Z | 2020-10-30T04:42:05.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
Manager for configuration defaults.
"""
import os
import json
class Configurations(object):
"""Configurations determines and provides default settings that can
be overriden by the user on the command line.
Configurations are set at two levels:
1. There ar... | 30.137931 | 79 | 0.616705 | 334 | 2,622 | 4.745509 | 0.389222 | 0.039748 | 0.030284 | 0.020189 | 0.055521 | 0.037855 | 0.037855 | 0 | 0 | 0 | 0 | 0.001553 | 0.263158 | 2,622 | 86 | 80 | 30.488372 | 0.818841 | 0.021358 | 0 | 0 | 0 | 0 | 0.109445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
309f3ffe2fd0dd5afa3b565d68ffb8498585efc0 | 790 | py | Python | kedro_vertexai/data_models.py | getindata/kedro-vertexai | 0624574e6c5fc8023cfc5cf2762e925b60057d33 | [
"Apache-2.0"
] | 2 | 2022-03-23T12:01:25.000Z | 2022-03-31T10:24:37.000Z | kedro_vertexai/data_models.py | getindata/kedro-vertexai | 0624574e6c5fc8023cfc5cf2762e925b60057d33 | [
"Apache-2.0"
] | 14 | 2022-03-11T14:14:00.000Z | 2022-03-29T11:37:57.000Z | kedro_vertexai/data_models.py | getindata/kedro-vertexai | 0624574e6c5fc8023cfc5cf2762e925b60057d33 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from typing import Optional
# Source: https://cloud.google.com/vertex-ai/docs/reference/rest/v1/PipelineState
class PipelineStatus:
PIPELINE_STATE_UNSPECIFIED = "PIPELINE_STATE_UNSPECIFIED"
PIPELINE_STATE_QUEUED = "PIPELINE_STATE_QUEUED"
PIPELINE_STATE_PENDING = "PIPELINE... | 34.347826 | 81 | 0.802532 | 91 | 790 | 6.549451 | 0.461538 | 0.392617 | 0.080537 | 0.107383 | 0.588926 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001456 | 0.13038 | 790 | 22 | 82 | 35.909091 | 0.866084 | 0.1 | 0 | 0 | 0 | 0 | 0.29055 | 0.29055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.941176 | 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 |
30a1f3ba95faf120e570f0a7878eef5dda988f0c | 1,687 | py | Python | python/convert-java-logs-to-csv-file/logs/Logs.py | MarioCodes/ProyectosClaseDAM | df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9 | [
"Apache-2.0"
] | null | null | null | python/convert-java-logs-to-csv-file/logs/Logs.py | MarioCodes/ProyectosClaseDAM | df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9 | [
"Apache-2.0"
] | 17 | 2019-06-14T12:30:46.000Z | 2022-02-18T11:38:50.000Z | python/convert-java-logs-to-csv-file/logs/Logs.py | MarioCodes/ProyectosClaseDAM | df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9 | [
"Apache-2.0"
] | null | null | null | """
Created on May 08, 2019
@author: msanchez
"""
from logs.SVWLogs import SVWLogs
from utils.FileUtils import FileUtils
class Logs(object):
""" Sets the main structure to follow, to modify it in a future with other Log structures.
Attributes:
svw_logs specific, encapsulated solution to c... | 37.488889 | 118 | 0.698281 | 244 | 1,687 | 4.536885 | 0.405738 | 0.072267 | 0.059621 | 0.030714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004648 | 0.234736 | 1,687 | 44 | 119 | 38.340909 | 0.852827 | 0.365145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 |
30a56a5848cf5ddb621cc0ed0234fb9f82cc581f | 378 | py | Python | setup.py | GarderieGenie/django-tenant-users | cf152cc5905f369477a5d07f6f48b908a2eb0877 | [
"MIT"
] | null | null | null | setup.py | GarderieGenie/django-tenant-users | cf152cc5905f369477a5d07f6f48b908a2eb0877 | [
"MIT"
] | null | null | null | setup.py | GarderieGenie/django-tenant-users | cf152cc5905f369477a5d07f6f48b908a2eb0877 | [
"MIT"
] | 1 | 2021-09-07T21:03:09.000Z | 2021-09-07T21:03:09.000Z | import setuptools
import versioneer
setuptools.setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
name="django-tenant-users",
description="A Django app to manage users in a multitenant environment",
packages=setuptools.find_namespace_packages(include=['tenant_users', 'tena... | 31.5 | 92 | 0.759259 | 43 | 378 | 6.488372 | 0.534884 | 0.157706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124339 | 378 | 11 | 93 | 34.363636 | 0.8429 | 0 | 0 | 0 | 0 | 0 | 0.301587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30ae8e7586e9b2250a40f950f123eda9c83cd35e | 4,170 | py | Python | register/migrations/0002_competitor_knockout_participants_referee_tournament_tournamentprofiles.py | MrChase95/Sistema_Judocas | 8a25c39dc884919ea3eba8a1f3f48c7c4ae95044 | [
"MIT"
] | 2 | 2019-10-09T01:01:59.000Z | 2019-11-10T01:11:24.000Z | register/migrations/0002_competitor_knockout_participants_referee_tournament_tournamentprofiles.py | MrChase95/Sistema_Judocas | 8a25c39dc884919ea3eba8a1f3f48c7c4ae95044 | [
"MIT"
] | 17 | 2019-10-19T03:50:39.000Z | 2021-06-10T19:21:19.000Z | register/migrations/0002_competitor_knockout_participants_referee_tournament_tournamentprofiles.py | MrChase95/Sistema_Judocas | 8a25c39dc884919ea3eba8a1f3f48c7c4ae95044 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-11-16 19:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('register', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 52.78481 | 230 | 0.628537 | 400 | 4,170 | 6.31 | 0.2175 | 0.066561 | 0.061014 | 0.09588 | 0.578843 | 0.491284 | 0.457211 | 0.457211 | 0.438986 | 0.397781 | 0 | 0.007894 | 0.240528 | 4,170 | 78 | 231 | 53.461538 | 0.789075 | 0.010791 | 0 | 0.513889 | 1 | 0 | 0.243755 | 0.124181 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.083333 | 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 |
30b1a1436ffe506a31b5fd8bd2c2d3a15ff30608 | 4,975 | py | Python | seizure/io.py | phareskrad/seizure-detection | 01da41fd0006afddda0bc87e1a7613c73d37a712 | [
"MIT"
] | null | null | null | seizure/io.py | phareskrad/seizure-detection | 01da41fd0006afddda0bc87e1a7613c73d37a712 | [
"MIT"
] | null | null | null | seizure/io.py | phareskrad/seizure-detection | 01da41fd0006afddda0bc87e1a7613c73d37a712 | [
"MIT"
] | null | null | null | import os.path
import numpy as np
import pandas as pd
import scipy.io
import common.utils.time as time
from common.parser import Parser
class SeizureParser(Parser):
"""
Parse seizure data to desired format for training and prediction
"""
def __init__(self, data_dir, target, pipeline):
self.dat... | 37.126866 | 107 | 0.494874 | 582 | 4,975 | 4.056701 | 0.225086 | 0.043202 | 0.045743 | 0.040661 | 0.32698 | 0.245659 | 0.188056 | 0.166878 | 0.145701 | 0.145701 | 0 | 0.009462 | 0.38392 | 4,975 | 133 | 108 | 37.406015 | 0.760848 | 0.148141 | 0 | 0.1875 | 0 | 0 | 0.096665 | 0.0087 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.072917 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
30b62c76140a578d52160b71e2da7db2f6ce6bb2 | 1,358 | py | Python | petit_type_system/ast_utils.py | tinyest-org/petit_type_system | a9b6e6f954b5c0d8828aab6bbaf854707f579014 | [
"Apache-2.0"
] | null | null | null | petit_type_system/ast_utils.py | tinyest-org/petit_type_system | a9b6e6f954b5c0d8828aab6bbaf854707f579014 | [
"Apache-2.0"
] | 5 | 2021-03-01T10:42:30.000Z | 2021-07-21T08:21:20.000Z | petit_type_system/ast_utils.py | tinyest-org/petit_type_system | a9b6e6f954b5c0d8828aab6bbaf854707f579014 | [
"Apache-2.0"
] | null | null | null | """
This contains the function used to automatically detect the name of assignements using ast parsing features
"""
import ast
import inspect
from typing import Optional
import executing
class AstFailure(Exception):
...
class TooManyAssignments(Exception):
...
def get_parent_assign(node: ast.AST) -> ast... | 24.690909 | 107 | 0.648748 | 169 | 1,358 | 5.142012 | 0.473373 | 0.034522 | 0.034522 | 0.043728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001007 | 0.268778 | 1,358 | 54 | 108 | 25.148148 | 0.874119 | 0.148012 | 0 | 0.210526 | 0 | 0 | 0.129371 | 0.019231 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30c22ad9c7f4b6a7394960e7f88f9ca52f210e77 | 38,613 | py | Python | test/testsvnp4_actions.py | wgsyd/SCMReplication | fa1cf05cc6119f674fefe46823131a96c1b57cfa | [
"Unlicense"
] | 2 | 2016-10-06T01:14:25.000Z | 2016-10-21T15:07:49.000Z | test/testsvnp4_actions.py | wgnet/SCMReplication | fa1cf05cc6119f674fefe46823131a96c1b57cfa | [
"Unlicense"
] | null | null | null | test/testsvnp4_actions.py | wgnet/SCMReplication | fa1cf05cc6119f674fefe46823131a96c1b57cfa | [
"Unlicense"
] | 1 | 2016-10-20T06:28:36.000Z | 2016-10-20T06:28:36.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''test replication of depots in svn repository.
'''
import os
import unittest
import tempfile
from testcommon import (obliterate_all_depots,
BuildTestException,
get_p4d_from_docker,
set_p4d_unicode_... | 43.532131 | 89 | 0.579209 | 4,570 | 38,613 | 4.503501 | 0.073742 | 0.045042 | 0.060055 | 0.038871 | 0.767018 | 0.728002 | 0.65337 | 0.59069 | 0.530392 | 0.473203 | 0 | 0.010181 | 0.328465 | 38,613 | 886 | 90 | 43.581264 | 0.783533 | 0.020045 | 0 | 0.460641 | 0 | 0 | 0.123408 | 0.048362 | 0 | 0 | 0 | 0 | 0.007289 | 1 | 0.112245 | false | 0.001458 | 0.021866 | 0 | 0.14723 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30c2aedf76ded965f511b90729871f91812a1105 | 729 | py | Python | kivy/model/InPort.py | synth2014/SimMyIdea | 533d0d0adda1755e7f3dcc6e8435a1ed8d797882 | [
"Apache-2.0"
] | null | null | null | kivy/model/InPort.py | synth2014/SimMyIdea | 533d0d0adda1755e7f3dcc6e8435a1ed8d797882 | [
"Apache-2.0"
] | null | null | null | kivy/model/InPort.py | synth2014/SimMyIdea | 533d0d0adda1755e7f3dcc6e8435a1ed8d797882 | [
"Apache-2.0"
] | null | null | null | # The InPort class
from model.OutPort import OutPort
class InPort(object):
""" Represents a single input port for a Node. Internally maintains a reference
to the port which feeds this port. Does not create a new port of its own.
"""
def __init__(self, feederPort: OutPort):
""" Initialize... | 27 | 83 | 0.66118 | 82 | 729 | 5.841463 | 0.54878 | 0.11691 | 0.087683 | 0.11691 | 0.275574 | 0.275574 | 0.275574 | 0 | 0 | 0 | 0 | 0 | 0.253772 | 729 | 26 | 84 | 28.038462 | 0.878676 | 0.021948 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | 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 |
30caea2866036ea3606531ccf6fcd706c723e66a | 2,671 | py | Python | tests/integration/test_run_distillation_agent.py | medipixel/rl_algorithms | 96bceb9d65c6d66fca59c4115cd7947f87b87ebc | [
"MIT"
] | 466 | 2019-02-14T15:06:01.000Z | 2022-03-28T03:08:10.000Z | tests/integration/test_run_distillation_agent.py | blakcapple/rl_algorithms | 96bceb9d65c6d66fca59c4115cd7947f87b87ebc | [
"MIT"
] | 138 | 2019-02-15T05:44:17.000Z | 2021-12-15T06:00:55.000Z | tests/integration/test_run_distillation_agent.py | medipixel/reinforcement_learning_examples | c5f7d1d60dcefb3050d75c5c657207183bd8db65 | [
"MIT"
] | 86 | 2019-02-25T15:52:29.000Z | 2022-03-08T06:30:36.000Z | """Test only one step of distillation file for training."""
import os
import pickle
import re
import shutil
import subprocess
def check_distillation_agent(config: str, run_file: str):
"""Test that 1 episode of run file works well."""
cmd = (
f"python {run_file} --cfg-path {config} --integration-test ... | 31.05814 | 128 | 0.654811 | 366 | 2,671 | 4.519126 | 0.349727 | 0.029021 | 0.048368 | 0.067715 | 0.081016 | 0.070133 | 0.03023 | 0 | 0 | 0 | 0 | 0.007886 | 0.240359 | 2,671 | 85 | 129 | 31.423529 | 0.807294 | 0.147136 | 0 | 0.068966 | 0 | 0.017241 | 0.250225 | 0.080252 | 0 | 0 | 0 | 0.011765 | 0.068966 | 1 | 0.051724 | false | 0 | 0.086207 | 0 | 0.137931 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
30ce479561fc9e97bd0ac2cee757720029ddc000 | 1,012 | py | Python | cloudwatchiter/tests/abc_expression_test.py | jniedrauer/cloudwatchiter | 223e58b5a00f424e0ae4000b09f7741a65cbb314 | [
"MIT"
] | null | null | null | cloudwatchiter/tests/abc_expression_test.py | jniedrauer/cloudwatchiter | 223e58b5a00f424e0ae4000b09f7741a65cbb314 | [
"MIT"
] | null | null | null | cloudwatchiter/tests/abc_expression_test.py | jniedrauer/cloudwatchiter | 223e58b5a00f424e0ae4000b09f7741a65cbb314 | [
"MIT"
] | null | null | null | # pylint: disable-all
import pytest
from cloudwatchiter.abc_expression import AbstractExpression
def abc(cls):
cls.__abstractmethods__ = set()
cls.element_count = 2
cls.valid_types = ('cron', 'rate')
return cls
def test_invalid_init():
cls = abc(AbstractExpression)
with pytest.raises(ValueErr... | 23.534884 | 60 | 0.646245 | 118 | 1,012 | 5.372881 | 0.305085 | 0.066246 | 0.15142 | 0.132492 | 0.376972 | 0.209779 | 0.148265 | 0.148265 | 0.148265 | 0.148265 | 0 | 0.017699 | 0.218379 | 1,012 | 42 | 61 | 24.095238 | 0.783818 | 0.018775 | 0 | 0.242424 | 0 | 0 | 0.053481 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 1 | 0.212121 | false | 0 | 0.060606 | 0 | 0.30303 | 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 |
30db0a56e30f25ebe14f4ce3b1fff356eacccd48 | 308 | py | Python | modules/!hello_world.py | cernymichal/go2 | 82869e12a4fed4f9a61b55b81b3453a14fa42d5d | [
"Unlicense"
] | null | null | null | modules/!hello_world.py | cernymichal/go2 | 82869e12a4fed4f9a61b55b81b3453a14fa42d5d | [
"Unlicense"
] | null | null | null | modules/!hello_world.py | cernymichal/go2 | 82869e12a4fed4f9a61b55b81b3453a14fa42d5d | [
"Unlicense"
] | null | null | null | import asyncio
name = "Hello world"
description = """
Example module
hi, hello: Sends 'Hello world!'
"""
async def OnReady(client, modules):
print("Hello world!")
async def Hello(client, message):
await message.channel.send("Hello world!")
functions = {
"hello": Hello,
"hi": Hello
}
| 13.391304 | 46 | 0.652597 | 37 | 308 | 5.432432 | 0.567568 | 0.199005 | 0.149254 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201299 | 308 | 22 | 47 | 14 | 0.817073 | 0 | 0 | 0 | 0 | 0 | 0.295455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.071429 | 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 |
30f91abe49e2faf4564e3a27d8fc9f135cdec44a | 349 | py | Python | analytics/urls.py | ragesh-kr/plate | e1344441ac307ea47549e48aea8aa53539ae6214 | [
"MIT"
] | null | null | null | analytics/urls.py | ragesh-kr/plate | e1344441ac307ea47549e48aea8aa53539ae6214 | [
"MIT"
] | null | null | null | analytics/urls.py | ragesh-kr/plate | e1344441ac307ea47549e48aea8aa53539ae6214 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('', views.analysis, name = 'analyticshome'),
path('analysis/', views.analysis, name = 'analytics'),
path('analyseDaysTrend/', views.daysTrend, name = 'daysTrend'),
path('priceTrend/', views.priceTrend, ... | 26.846154 | 67 | 0.687679 | 37 | 349 | 6.486486 | 0.432432 | 0.083333 | 0.141667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160458 | 349 | 12 | 68 | 29.083333 | 0.819113 | 0 | 0 | 0 | 0 | 0 | 0.223496 | 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 |
30fa9cc0c01a45e75fa3160a16ec4ef3586e65cc | 5,998 | py | Python | crusher/config.py | JudahRockLuberto/crusher | 2a71d33c980fc0cf37e144ca9527f1c2d9ed5f8d | [
"MIT"
] | 2 | 2021-10-16T03:44:04.000Z | 2021-10-16T03:44:06.000Z | crusher/config.py | JudahRockLuberto/crusher | 2a71d33c980fc0cf37e144ca9527f1c2d9ed5f8d | [
"MIT"
] | null | null | null | crusher/config.py | JudahRockLuberto/crusher | 2a71d33c980fc0cf37e144ca9527f1c2d9ed5f8d | [
"MIT"
] | 4 | 2020-02-28T18:52:16.000Z | 2022-03-29T12:15:20.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Configurations of the analysis."""
import yaml
__all__ = [
'parse_config'
]
DEFAULT_MAP_CONFIG = {
# About radial bins
'rad': {
'n_rad': 18, 'r_min': 0.5, 'r_max': None, 'linear': False,
},
'detect': {
'threshold': 1e8, 'bkg_ratio':... | 27.897674 | 97 | 0.578026 | 752 | 5,998 | 4.367021 | 0.132979 | 0.088307 | 0.073082 | 0.079172 | 0.408953 | 0.297199 | 0.297199 | 0.228989 | 0.166261 | 0.079781 | 0 | 0.004662 | 0.284762 | 5,998 | 214 | 98 | 28.028037 | 0.760839 | 0.158386 | 0 | 0.097744 | 0 | 0 | 0.112653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.007519 | 0 | 0.330827 | 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 |
a509616846db7fbd88e633aba3baf07ded1ccc51 | 1,178 | py | Python | 2015/05/fc_2015_05_24.py | mfwarren/FreeCoding | 58ac87f35ad2004a3514782556762ee0ed72c39a | [
"MIT"
] | null | null | null | 2015/05/fc_2015_05_24.py | mfwarren/FreeCoding | 58ac87f35ad2004a3514782556762ee0ed72c39a | [
"MIT"
] | 1 | 2015-04-27T01:43:45.000Z | 2015-04-27T01:43:45.000Z | 2015/05/fc_2015_05_24.py | mfwarren/FreeCoding | 58ac87f35ad2004a3514782556762ee0ed72c39a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# imports go here
import pandas as pd
import plotly.plotly as py
from plotly.graph_objs import *
#
# Free Coding session for 2015-05-24
# Written by Matt Warren
#
years = list(range(2015, 2045))
YEARS_TO_SIMULATE = 30
INFLATION_RATE = 0.02
KWH_PRICE = 0.10 # 2015 dollars
INSTALL_COST_PER_W... | 22.653846 | 102 | 0.674024 | 182 | 1,178 | 4.159341 | 0.445055 | 0.138705 | 0.217966 | 0.142668 | 0.058124 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055675 | 0.207131 | 1,178 | 51 | 103 | 23.098039 | 0.754818 | 0.116299 | 0 | 0 | 0 | 0 | 0.074612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.088235 | 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 |
a50c0cefe1afdf6d493b8f24c04b739f6f81de80 | 1,780 | py | Python | tests/experiment_random_query.py | raynoldng/nusmods-planner | 5657c52cdefe35b7d272c3762d85185ca2a442c9 | [
"MIT"
] | 7 | 2017-07-19T07:06:43.000Z | 2022-01-04T01:47:27.000Z | tests/experiment_random_query.py | raynoldng/nusmods-planner | 5657c52cdefe35b7d272c3762d85185ca2a442c9 | [
"MIT"
] | null | null | null | tests/experiment_random_query.py | raynoldng/nusmods-planner | 5657c52cdefe35b7d272c3762d85185ca2a442c9 | [
"MIT"
] | 1 | 2018-09-08T06:35:26.000Z | 2018-09-08T06:35:26.000Z | '''
For semester 1
Experiment to see if randomizing the queries will result in a new timetable
Note that this is not a strict requirement
'''
import unittest
import sys
from z3 import *
sys.path.append('../nusmodsplanner')
import queryParserBV
import querySolverBV
import mod_utils
import random
SEMESTER = 'AY1718S1'
... | 32.363636 | 96 | 0.670787 | 180 | 1,780 | 6.477778 | 0.544444 | 0.015437 | 0.041166 | 0.054889 | 0.102916 | 0.102916 | 0.102916 | 0.102916 | 0 | 0 | 0 | 0.068513 | 0.229213 | 1,780 | 54 | 97 | 32.962963 | 0.781341 | 0.07809 | 0 | 0 | 0 | 0 | 0.195279 | 0.031474 | 0 | 0 | 0 | 0 | 0.030303 | 0 | null | null | 0 | 0.212121 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a512103cb7b20cc83cb37376de4eabffe321bf09 | 4,994 | py | Python | sensor.py | rkoebrugge/plugwise-stretch | 2874b6cbcb7ad1f33c2e02aa0d72bb81bda23348 | [
"MIT"
] | 1 | 2020-05-02T08:47:35.000Z | 2020-05-02T08:47:35.000Z | sensor.py | rkoebrugge/hacs-plugwise-stretch-component | 2874b6cbcb7ad1f33c2e02aa0d72bb81bda23348 | [
"MIT"
] | null | null | null | sensor.py | rkoebrugge/hacs-plugwise-stretch-component | 2874b6cbcb7ad1f33c2e02aa0d72bb81bda23348 | [
"MIT"
] | null | null | null | """
@ Author : Rutger Koebrugge
@ Date : 04/11/2020
@ Description : Plugwise stretch Sensor - Monitor plugwise circles
"""
VERSION = '0.0.1'
DOMAIN = "plugwise-stretch"
SENSOR_PREFIX = 'plugwise_'
CONF_HOST = "host"
CONF_PASSWORD = 'password'
import json
import logging
import base64
import time
import req... | 29.904192 | 152 | 0.639567 | 562 | 4,994 | 5.457295 | 0.297153 | 0.039126 | 0.022824 | 0.013042 | 0.016303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00811 | 0.259311 | 4,994 | 166 | 153 | 30.084337 | 0.821033 | 0.122147 | 0 | 0.053097 | 0 | 0 | 0.085033 | 0.011002 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097345 | false | 0.061947 | 0.132743 | 0.044248 | 0.300885 | 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 |
a51c20626e01ebb497571c5ed25d4df08f448347 | 518 | py | Python | business/orders/migrations/0009_auto_20200522_1837.py | daniel-waruo/e-commerse-api | 6b080039398fb4099a34335317d649dd67783f63 | [
"Apache-2.0"
] | 6 | 2019-11-21T10:09:49.000Z | 2021-06-19T09:52:59.000Z | business/orders/migrations/0009_auto_20200522_1837.py | daniel-waruo/e-commerse-api | 6b080039398fb4099a34335317d649dd67783f63 | [
"Apache-2.0"
] | null | null | null | business/orders/migrations/0009_auto_20200522_1837.py | daniel-waruo/e-commerse-api | 6b080039398fb4099a34335317d649dd67783f63 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.4 on 2020-05-22 15:37
from django.db import migrations
import shortuuidfield.fields
class Migration(migrations.Migration):
dependencies = [
('orders', '0008_auto_20200324_1337'),
]
operations = [
migrations.AlterField(
model_name='order',
... | 25.9 | 167 | 0.664093 | 56 | 518 | 6.035714 | 0.785714 | 0.118343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092269 | 0.225869 | 518 | 19 | 168 | 27.263158 | 0.750623 | 0.086873 | 0 | 0 | 1 | 0 | 0.123142 | 0.095541 | 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 |
eb542649afdd970c8c42c3eedde307317325f5ac | 688 | py | Python | GreatHistory/authapp/models.py | PlagueEvgeny/GreatHistory | 893af162f7b510fdff621612f9fd4a24e1de2a75 | [
"MIT"
] | null | null | null | GreatHistory/authapp/models.py | PlagueEvgeny/GreatHistory | 893af162f7b510fdff621612f9fd4a24e1de2a75 | [
"MIT"
] | null | null | null | GreatHistory/authapp/models.py | PlagueEvgeny/GreatHistory | 893af162f7b510fdff621612f9fd4a24e1de2a75 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.core.validators import RegexValidator
from django.db import models
class UserProfile(AbstractUser):
phone_validator = RegexValidator(
regex=r'^\+?1?\d{9, 15}$',
message=('Введите номер до 15 знаков')
)
phone_number = models.Ch... | 28.666667 | 92 | 0.68314 | 87 | 688 | 5.252874 | 0.597701 | 0.065646 | 0.052516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014625 | 0.204942 | 688 | 23 | 93 | 29.913043 | 0.820841 | 0 | 0 | 0.111111 | 0 | 0 | 0.082849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.055556 | 0.611111 | 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 |
eb5840cd9485e0653053088fc7efc12735a224eb | 8,333 | py | Python | Server/ghost.py | tongtzeho/MonstersCastle | 7a7cc97c4401edab8b8d1cd7907f2bb69f3521c7 | [
"MIT"
] | 1 | 2018-07-11T14:19:24.000Z | 2018-07-11T14:19:24.000Z | Server/ghost.py | tongtzeho/TDFPSOnline | 7a7cc97c4401edab8b8d1cd7907f2bb69f3521c7 | [
"MIT"
] | null | null | null | Server/ghost.py | tongtzeho/TDFPSOnline | 7a7cc97c4401edab8b8d1cd7907f2bb69f3521c7 | [
"MIT"
] | null | null | null | # Monsters Castle Ghost (Small Monster)
# Python 2.7.14
import struct, time, random, math
import ball
class ghost:
def __init__(self, id, scene): # [0, 1, 2] for [Left, Mid, Right]
self.debug = False
self.scene = scene
self.id = id
self.hp = 150
self.maxHp = 150
self.position = [0.0, 0.0, 0.... | 39.306604 | 227 | 0.625225 | 1,228 | 8,333 | 4.239414 | 0.150651 | 0.103726 | 0.047445 | 0.070688 | 0.384556 | 0.319631 | 0.245294 | 0.205532 | 0.192854 | 0.192854 | 0 | 0.078132 | 0.205928 | 8,333 | 212 | 228 | 39.306604 | 0.708629 | 0.075603 | 0 | 0.258883 | 0 | 0 | 0.010324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010152 | null | null | 0.025381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb5a5cd2a390693a9d8337ce9ca3a044dd25fc64 | 3,419 | py | Python | bs/parseamos.py | chaelir/bamsurgeon | a989a1400a4a0a84dcca73aa0ec63f8ff63955e6 | [
"MIT"
] | null | null | null | bs/parseamos.py | chaelir/bamsurgeon | a989a1400a4a0a84dcca73aa0ec63f8ff63955e6 | [
"MIT"
] | null | null | null | bs/parseamos.py | chaelir/bamsurgeon | a989a1400a4a0a84dcca73aa0ec63f8ff63955e6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys,re
class ContigReads:
def __init__(self, eid):
self.eid = eid
self.srcs = [] # read numbers from velvet
self.reads = [] # read names
def addsrc(self,src):
self.srcs.append(src)
def getReadNames(self,seqs):
for src in self.srcs:
... | 29.991228 | 78 | 0.473823 | 353 | 3,419 | 4.529745 | 0.254958 | 0.017511 | 0.043777 | 0.026266 | 0.095059 | 0.022514 | 0 | 0 | 0 | 0 | 0 | 0.001967 | 0.405089 | 3,419 | 113 | 79 | 30.256637 | 0.784169 | 0.08599 | 0 | 0.267442 | 0 | 0 | 0.024843 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0 | null | null | 0 | 0.011628 | null | null | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb5fc45de21296c38dc827d40d4fdce732638db4 | 438 | py | Python | Estacionamento/core/migrations/0005_auto_20180821_2331.py | 1ricardo66/Django2.0 | e29afefc908723525d60ea40da353a7ab5b27d1c | [
"Apache-2.0"
] | 1 | 2018-08-21T12:26:02.000Z | 2018-08-21T12:26:02.000Z | Estacionamento/core/migrations/0005_auto_20180821_2331.py | 1ricardo66/Django2.0 | e29afefc908723525d60ea40da353a7ab5b27d1c | [
"Apache-2.0"
] | null | null | null | Estacionamento/core/migrations/0005_auto_20180821_2331.py | 1ricardo66/Django2.0 | e29afefc908723525d60ea40da353a7ab5b27d1c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-21 23:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_auto_20180821_2328'),
]
operations = [
migrations.AlterField(
model_name='cliente',
name='key',
... | 19.909091 | 47 | 0.559361 | 43 | 438 | 5.604651 | 0.790698 | 0.058091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10473 | 0.324201 | 438 | 21 | 48 | 20.857143 | 0.709459 | 0.10274 | 0 | 0.133333 | 1 | 0 | 0.102302 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb622afaaa34319f565b4f13f188f90eb3a88771 | 442 | py | Python | LeetCode/0388. Longest Absolute File Path/solution.py | InnoFang/oh-my-algorithms | f559dba371ce725a926725ad28d5e1c2facd0ab2 | [
"Apache-2.0"
] | 1 | 2017-03-31T15:24:01.000Z | 2017-03-31T15:24:01.000Z | LeetCode/0388. Longest Absolute File Path/solution.py | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | null | null | null | LeetCode/0388. Longest Absolute File Path/solution.py | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | null | null | null | """
26 / 26 test cases passed.
Runtime: 36 ms
Memory Usage: 15 MB
"""
class Solution:
def lengthLongestPath(self, input: str) -> int:
ans = 0
level_depth = {-1: 0}
for path in input.split('\n'):
depth = path.count('\t')
level_depth[depth] = level_depth[depth - 1] + le... | 27.625 | 75 | 0.536199 | 58 | 442 | 4.017241 | 0.603448 | 0.171674 | 0.193133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.330317 | 442 | 15 | 76 | 29.466667 | 0.746622 | 0.138009 | 0 | 0 | 0 | 0 | 0.013405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 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 |
eb68193179925781dd3648caefd2a11e6b0e51cd | 522 | py | Python | Python/43 Incorrect Regex.py | hnwarid/HackerRankExercises | 5f6f710387b61cbf225e51517e702009659f4416 | [
"MIT"
] | null | null | null | Python/43 Incorrect Regex.py | hnwarid/HackerRankExercises | 5f6f710387b61cbf225e51517e702009659f4416 | [
"MIT"
] | null | null | null | Python/43 Incorrect Regex.py | hnwarid/HackerRankExercises | 5f6f710387b61cbf225e51517e702009659f4416 | [
"MIT"
] | null | null | null | # Enter your code here. Read input from STDIN. Print output to STDOUT
import re
test_cases = int(input())
for test_case in range(test_cases):
try:
regex_pattern = input().strip()
regex_error_test = bool(re.compile(regex_pattern))
print(regex_error_test)
except re.error as e:
... | 18 | 69 | 0.59387 | 78 | 522 | 3.858974 | 0.602564 | 0.079734 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032995 | 0.245211 | 522 | 29 | 70 | 18 | 0.730964 | 0.417625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb7085822ea2507acf821722f75945521a0cc43a | 4,034 | py | Python | server.py | palmpilot71/CMPUT404-assignment-webserver | 68d95703e5cb58a742525f01602c88eeb01e3ad6 | [
"Apache-2.0"
] | null | null | null | server.py | palmpilot71/CMPUT404-assignment-webserver | 68d95703e5cb58a742525f01602c88eeb01e3ad6 | [
"Apache-2.0"
] | null | null | null | server.py | palmpilot71/CMPUT404-assignment-webserver | 68d95703e5cb58a742525f01602c88eeb01e3ad6 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import SocketServer, os
# Copyright 2013 Abram Hindle, Eddie Antonio Santos, Carson McLean
#
# 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/lice... | 34.775862 | 92 | 0.655925 | 509 | 4,034 | 5.035363 | 0.365422 | 0.106126 | 0.032774 | 0.038627 | 0.173234 | 0.129536 | 0.118611 | 0.09208 | 0.09208 | 0.081155 | 0 | 0.029066 | 0.240952 | 4,034 | 115 | 93 | 35.078261 | 0.807642 | 0.26351 | 0 | 0.177419 | 0 | 0 | 0.122067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016129 | 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 |
eb7aebc7ee584ef6dad6fb792da39b4615e09703 | 576 | py | Python | lama/utilities/zoomer.py | MiaRatkovic/LAMA | 3ccfed0864001c8c270861e23cc81bc43d7d25c9 | [
"Apache-2.0"
] | null | null | null | lama/utilities/zoomer.py | MiaRatkovic/LAMA | 3ccfed0864001c8c270861e23cc81bc43d7d25c9 | [
"Apache-2.0"
] | null | null | null | lama/utilities/zoomer.py | MiaRatkovic/LAMA | 3ccfed0864001c8c270861e23cc81bc43d7d25c9 | [
"Apache-2.0"
] | 1 | 2021-07-06T05:34:53.000Z | 2021-07-06T05:34:53.000Z | import SimpleITK as sitk
import os
from pathlib import Path
from lama import common
import nrrd
import numpy as np
from scipy import ndimage
target_dir = Path(os.getcwd())
volpaths = common.get_file_paths(target_dir)
scaled = "scaled"
print(target_dir)
print('zooming')
for path in volpaths:
vol, v_head = nrrd.r... | 21.333333 | 97 | 0.715278 | 88 | 576 | 4.579545 | 0.511364 | 0.08933 | 0.074442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.170139 | 576 | 26 | 98 | 22.153846 | 0.834728 | 0 | 0 | 0 | 0 | 0 | 0.048696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
eb7c478a7b272cb1589543279887747765797677 | 236 | py | Python | utils/config.py | akarealemil/trainbot | c58c191bcb5e0f576ea70b7d7d5a40595636311c | [
"BSD-3-Clause"
] | null | null | null | utils/config.py | akarealemil/trainbot | c58c191bcb5e0f576ea70b7d7d5a40595636311c | [
"BSD-3-Clause"
] | 1 | 2021-10-02T20:22:00.000Z | 2021-10-02T20:22:00.000Z | utils/config.py | akarealemil/trainbot | c58c191bcb5e0f576ea70b7d7d5a40595636311c | [
"BSD-3-Clause"
] | null | null | null | import sys
sys.dont_write_bytecode = True
TOKEN = "NjkyNzQwMDk5NDIyNjgzMjQ2.Xny6_A.AuxMUh6o9fsVRmL_VpnoEZKUI2Q"
PREFIX = "tb!"
STATUS = "Station Bot Beta | v1.1"
OWNERS = [607190287894446081] # list of user ids (ints)
prefixes = "tb!" | 29.5 | 69 | 0.758475 | 30 | 236 | 5.833333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126829 | 0.131356 | 236 | 8 | 70 | 29.5 | 0.726829 | 0.097458 | 0 | 0 | 0 | 0 | 0.415094 | 0.278302 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb7f480263d83515d504db8484f2f0d4f3154fd5 | 3,245 | py | Python | byt/middleware/supervisor.py | burchardtist/byt | 327c4c6561bec2df42e56b01164988f135ad60f6 | [
"MIT"
] | 1 | 2020-09-02T15:26:11.000Z | 2020-09-02T15:26:11.000Z | byt/middleware/supervisor.py | burchardtist/byt | 327c4c6561bec2df42e56b01164988f135ad60f6 | [
"MIT"
] | null | null | null | byt/middleware/supervisor.py | burchardtist/byt | 327c4c6561bec2df42e56b01164988f135ad60f6 | [
"MIT"
] | null | null | null | from typing import Dict, List, Set, Type
from uuid import UUID
from panek.object_relations import ObjectRelationMapper
import byt.middleware.typing as t
from byt.ecs.component import IComponent
from byt.ecs.entity import Entity
from byt.ecs.system import ISystem
from byt.middleware.utils import make_iterable
class ... | 38.176471 | 105 | 0.673035 | 388 | 3,245 | 5.494845 | 0.224227 | 0.032833 | 0.032833 | 0.042214 | 0.222326 | 0.149156 | 0.093809 | 0.052533 | 0 | 0 | 0 | 0 | 0.235747 | 3,245 | 84 | 106 | 38.630952 | 0.859677 | 0.028043 | 0 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.19403 | false | 0 | 0.119403 | 0.044776 | 0.41791 | 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 |
eb87c6aac2eeeccc2aae39c3d9fd7c9a419bf9af | 3,705 | py | Python | ai.py | enj/color-game | ee1d725b2320dd992f7892d9ca204b85738bed95 | [
"MIT"
] | null | null | null | ai.py | enj/color-game | ee1d725b2320dd992f7892d9ca204b85738bed95 | [
"MIT"
] | null | null | null | ai.py | enj/color-game | ee1d725b2320dd992f7892d9ca204b85738bed95 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from sys import exit
from collections import deque
from colorgame.models import colors_short, PATTERN_LENGTH
def ai_guess(game, guess):
'''Helper function for attempting a guess by the computer for
a game. It prints dialogs that show the user what is happening.
Ex... | 38.59375 | 82 | 0.639676 | 533 | 3,705 | 4.348968 | 0.318949 | 0.045298 | 0.032355 | 0.020708 | 0.105263 | 0.089733 | 0.04918 | 0.04918 | 0.04918 | 0.04918 | 0 | 0.005015 | 0.300405 | 3,705 | 95 | 83 | 39 | 0.888889 | 0.324426 | 0 | 0.14 | 0 | 0 | 0.050356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb8f5dc76fc28c1e728d0b9035426acd5a55a17b | 331 | py | Python | seguranca-da-informacao/tools1/threads.py | henryspaul/cursos-dio | 6227c9fc09ca957aa933a2f032e21fe9efb5ca42 | [
"MIT"
] | null | null | null | seguranca-da-informacao/tools1/threads.py | henryspaul/cursos-dio | 6227c9fc09ca957aa933a2f032e21fe9efb5ca42 | [
"MIT"
] | null | null | null | seguranca-da-informacao/tools1/threads.py | henryspaul/cursos-dio | 6227c9fc09ca957aa933a2f032e21fe9efb5ca42 | [
"MIT"
] | null | null | null | from threading import Thread
import time
def car(speed, pilot):
route = 0
while route <= 100:
route += speed
time.sleep(0.5)
print(f'Pilot: {pilot}, Km {route} \n')
t_car1 = Thread(target = car, args = [20, 'Paul'])
t_car2 = Thread(target = car, args = [10, 'Del'])
t_car1.start()
t_c... | 20.6875 | 50 | 0.598187 | 50 | 331 | 3.88 | 0.58 | 0.051546 | 0.154639 | 0.195876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055777 | 0.241692 | 331 | 16 | 51 | 20.6875 | 0.717131 | 0 | 0 | 0 | 0 | 0 | 0.108434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0.083333 | 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 |
eb96f30697cf815c4030732a211821af5f2d429d | 2,107 | py | Python | asopimx/hidr.py | packdstack/asopimx | f2f6e56f0df6f2207759783b22a4f4b4b6d388ea | [
"MIT"
] | null | null | null | asopimx/hidr.py | packdstack/asopimx | f2f6e56f0df6f2207759783b22a4f4b4b6d388ea | [
"MIT"
] | null | null | null | asopimx/hidr.py | packdstack/asopimx | f2f6e56f0df6f2207759783b22a4f4b4b6d388ea | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import hid
import traceback
hid_max_pkt_size = 64
if __name__ == '__main__':
import argparse
import sys
import binascii
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--descriptor', help='Print Descriptor', action='store_true')
args = parser.parse_args(... | 33.444444 | 91 | 0.49739 | 261 | 2,107 | 3.881226 | 0.394636 | 0.039487 | 0.039487 | 0.025666 | 0.100691 | 0.065153 | 0.065153 | 0.065153 | 0.065153 | 0.065153 | 0 | 0.009673 | 0.362126 | 2,107 | 62 | 92 | 33.983871 | 0.744048 | 0.07926 | 0 | 0.137255 | 0 | 0 | 0.105998 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0 | false | 0.019608 | 0.098039 | 0 | 0.098039 | 0.215686 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
eb9beed17c96a3018b9e466415bfaf330fac8408 | 407 | py | Python | setup.py | axevalley/template_to_pdf | d134c4a5af2fad714cfd15e5ed53e2398f42cbf6 | [
"MIT"
] | null | null | null | setup.py | axevalley/template_to_pdf | d134c4a5af2fad714cfd15e5ed53e2398f42cbf6 | [
"MIT"
] | null | null | null | setup.py | axevalley/template_to_pdf | d134c4a5af2fad714cfd15e5ed53e2398f42cbf6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='template_to_pdf',
version='1.1',
description='Converts jinja2 templates to HTML and PDF',
author='Luke Shiner',
author_email='luke@lukeshiner.com',
url='http://www.lukeshiner.com',
keywords=['template', 'html', ... | 25.4375 | 60 | 0.668305 | 50 | 407 | 5.32 | 0.7 | 0.090226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011869 | 0.17199 | 407 | 15 | 61 | 27.133333 | 0.777448 | 0.04914 | 0 | 0 | 0 | 0 | 0.365285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
eba2fe67008d457fbdf25cb54616b69d28024ef5 | 1,569 | py | Python | scripts/plotImg.py | richarms/shapelets | 30d3cec36dd300fe836d9e60d144819748470b55 | [
"BSD-3-Clause"
] | 18 | 2015-02-25T20:23:24.000Z | 2022-01-21T08:42:46.000Z | scripts/plotImg.py | richarms/shapelets | 30d3cec36dd300fe836d9e60d144819748470b55 | [
"BSD-3-Clause"
] | 12 | 2015-05-04T09:32:24.000Z | 2016-03-31T06:26:45.000Z | scripts/plotImg.py | richarms/shapelets | 30d3cec36dd300fe836d9e60d144819748470b55 | [
"BSD-3-Clause"
] | 4 | 2016-12-07T12:51:24.000Z | 2019-11-21T09:31:30.000Z | #!/usr/bin/env python
"""
Generic Image Plotter
"""
import sys
from matplotlib import pyplot as plt
import shapelets
if __name__ == '__main__':
from optparse import OptionParser
o = OptionParser()
o.set_usage('%prog [options] FITS_IMAGE')
o.set_description(__doc__)
o.add_option('-r', '--region', d... | 30.764706 | 98 | 0.597833 | 209 | 1,569 | 4.373206 | 0.511962 | 0.036105 | 0.021882 | 0.013129 | 0.118162 | 0.118162 | 0.056893 | 0.056893 | 0 | 0 | 0 | 0.005556 | 0.196941 | 1,569 | 50 | 99 | 31.38 | 0.719841 | 0.022307 | 0 | 0.052632 | 0 | 0 | 0.215712 | 0.05992 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebaa989f5cfb188315ac26d119bb86e8e02665a1 | 16,238 | py | Python | src/modules/MagnetCommunication.py | LisaWillig/LabWare_UDKM | 6e85b52b163a0887ef1add256bba629197f01c8c | [
"MIT"
] | 1 | 2021-05-20T19:06:33.000Z | 2021-05-20T19:06:33.000Z | src/modules/Magnet_Communication.py | LisaWillig/LabWare_UDKM | 6e85b52b163a0887ef1add256bba629197f01c8c | [
"MIT"
] | null | null | null | src/modules/Magnet_Communication.py | LisaWillig/LabWare_UDKM | 6e85b52b163a0887ef1add256bba629197f01c8c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
MagnetCommunication.py
Author: Lisa Willig
Created on Mon Dec 18 15:35:21 2017
Last Edited: 06.12.2018
Python Version: 3.6.5
4G Magnet Power Supply
Class for sending commands to 4G Magnet Power Supply
IMPORTANT: Magnet has to be in remote mode, can only
be set loc... | 31.653021 | 80 | 0.622737 | 1,960 | 16,238 | 5.113265 | 0.159694 | 0.025943 | 0.027539 | 0.028537 | 0.372181 | 0.253842 | 0.180902 | 0.128318 | 0.113151 | 0.096987 | 0 | 0.018079 | 0.284641 | 16,238 | 513 | 81 | 31.653021 | 0.84418 | 0.623106 | 0 | 0.23301 | 0 | 0 | 0.037802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.252427 | false | 0 | 0.009709 | 0 | 0.485437 | 0.135922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ebaea528e0b55d779ce31fc6efe6c964187476a5 | 4,020 | py | Python | sawtooth_toy.py | harmonic-minimization/harmoni_manuscript_codes | 6cecd98208b3955d0a20b1d258cc06477e615edf | [
"MIT"
] | 1 | 2021-12-16T08:00:15.000Z | 2021-12-16T08:00:15.000Z | sawtooth_toy.py | harmonic-minimization/harmoni_manuscript_codes | 6cecd98208b3955d0a20b1d258cc06477e615edf | [
"MIT"
] | null | null | null | sawtooth_toy.py | harmonic-minimization/harmoni_manuscript_codes | 6cecd98208b3955d0a20b1d258cc06477e615edf | [
"MIT"
] | null | null | null | """
-----------------------------------------------------------------------
Harmoni: a Novel Method for Eliminating Spurious Neuronal Interactions due to the Harmonic Components in Neuronal Data
Mina Jamshidi Idaji, Juanli Zhang, Tilman Stephani, Guido Nolte, Klaus-Robert Mueller, Arno Villringer, Vadim V. Nikulin
http... | 34.956522 | 120 | 0.61393 | 567 | 4,020 | 4.269841 | 0.343915 | 0.039653 | 0.019827 | 0.02974 | 0.279637 | 0.182156 | 0.110698 | 0.074762 | 0.074762 | 0.074762 | 0 | 0.067435 | 0.114677 | 4,020 | 114 | 121 | 35.263158 | 0.612813 | 0.417662 | 0 | 0.075472 | 0 | 0 | 0.133708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.056604 | 0.09434 | 0 | 0.09434 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ebb162fe6cbc9f4d1d77a941efdc59654bac66ff | 2,363 | py | Python | code/components/journal.py | mtshen/py_selenium | 8f89837ada2507eb280bb71ca46df938f7c2f628 | [
"MIT"
] | null | null | null | code/components/journal.py | mtshen/py_selenium | 8f89837ada2507eb280bb71ca46df938f7c2f628 | [
"MIT"
] | null | null | null | code/components/journal.py | mtshen/py_selenium | 8f89837ada2507eb280bb71ca46df938f7c2f628 | [
"MIT"
] | null | null | null | # 日志系统
import os
import time
import random
# 步骤组模板
stepsTemplate = """
步骤组: {name}
开始时间: {startTime}
----------------------------------------------
{stepLog}
步骤结束
{errorLog}
结束时间: {endTime}
总耗时: {time}ms
"""
# 步骤模板
# TODO: 步骤组带s, 步骤不带s
stepTemplate = """
步骤{index}: {name}
{runLog}
结果: {result}
开始时间: {startTime}
结束时... | 25.684783 | 112 | 0.57427 | 268 | 2,363 | 5.048507 | 0.354478 | 0.053215 | 0.048041 | 0.051737 | 0.226903 | 0.215817 | 0.14782 | 0.14782 | 0.14782 | 0.14782 | 0 | 0.007279 | 0.244181 | 2,363 | 91 | 113 | 25.967033 | 0.75028 | 0.025815 | 0 | 0.117647 | 0 | 0 | 0.160488 | 0.040122 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.058824 | false | 0 | 0.044118 | 0 | 0.132353 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ebbe11bef4bcd08412bce68d418bacd6a6cb1817 | 4,031 | py | Python | iosxr_eznc/rpc.py | mirceaulinic/iosxr-eznc | 4e88d3a60518f068a34457448a355c0c4a7c3b71 | [
"Apache-2.0",
"BSD-3-Clause"
] | 4 | 2016-08-05T14:57:26.000Z | 2017-05-26T22:02:35.000Z | iosxr_eznc/rpc.py | mirceaulinic/iosxr-eznc | 4e88d3a60518f068a34457448a355c0c4a7c3b71 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2017-03-01T02:51:39.000Z | 2019-10-04T20:51:50.000Z | iosxr_eznc/rpc.py | mirceaulinic/iosxr-eznc | 4e88d3a60518f068a34457448a355c0c4a7c3b71 | [
"Apache-2.0",
"BSD-3-Clause"
] | 4 | 2016-08-20T17:12:49.000Z | 2019-07-25T03:59:15.000Z | # -*- coding: utf-8 -*-
# Copyright 2016 CloudFlare, Inc. All rights reserved.
#
# The contents of this file are 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... | 28.792857 | 82 | 0.61548 | 464 | 4,031 | 5.105603 | 0.299569 | 0.047277 | 0.098776 | 0.086112 | 0.332208 | 0.187421 | 0.097932 | 0 | 0 | 0 | 0 | 0.004228 | 0.295956 | 4,031 | 139 | 83 | 29 | 0.830514 | 0.224262 | 0 | 0.325 | 0 | 0 | 0.029977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.025 | 0.1375 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ebc29431fef7fb9794c77db028f7b6ec94e0d35c | 7,701 | py | Python | apptools/apptools-android-tests/apptools/comm.py | JianfengXu/crosswalk-test-suite | 6fb6ef9d89235743ee8b867fd2541c5bdf388786 | [
"BSD-3-Clause"
] | null | null | null | apptools/apptools-android-tests/apptools/comm.py | JianfengXu/crosswalk-test-suite | 6fb6ef9d89235743ee8b867fd2541c5bdf388786 | [
"BSD-3-Clause"
] | null | null | null | apptools/apptools-android-tests/apptools/comm.py | JianfengXu/crosswalk-test-suite | 6fb6ef9d89235743ee8b867fd2541c5bdf388786 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2015 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this
# list of conditions and t... | 36.325472 | 98 | 0.63693 | 969 | 7,701 | 4.977296 | 0.304438 | 0.016587 | 0.024881 | 0.021149 | 0.24943 | 0.179349 | 0.147419 | 0.111134 | 0.095791 | 0.095791 | 0 | 0.010399 | 0.238281 | 7,701 | 211 | 99 | 36.49763 | 0.811797 | 0.203091 | 0 | 0.234177 | 0 | 0 | 0.154766 | 0.024566 | 0 | 0 | 0 | 0 | 0.101266 | 0 | null | null | 0 | 0.056962 | null | null | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ebc439e07093df0bcfe8685c5aafd19991464247 | 507 | py | Python | maro/data_lib/ecr/__init__.py | zhawan/maro | d8c98deea4296cdcb90efd1fb59bc571cec3a2ef | [
"MIT"
] | null | null | null | maro/data_lib/ecr/__init__.py | zhawan/maro | d8c98deea4296cdcb90efd1fb59bc571cec3a2ef | [
"MIT"
] | null | null | null | maro/data_lib/ecr/__init__.py | zhawan/maro | d8c98deea4296cdcb90efd1fb59bc571cec3a2ef | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from .ecr_data_container_helpers import data_from_dumps, data_from_generator, EcrDataContainerWrapper
from .ecr_data_container import EcrDataContainer
from .ecr_data_dump import dump_from_config
from .ecr_data_loader import load_from_folder
from ... | 46.090909 | 156 | 0.830375 | 66 | 507 | 5.939394 | 0.424242 | 0.071429 | 0.112245 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09073 | 507 | 11 | 156 | 46.090909 | 0.850325 | 0.134122 | 0 | 0 | 0 | 0 | 0.26087 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 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 |
ebc46d28921879347c8e651603ffa38238258b31 | 780 | py | Python | setup.py | ericflo/django-session-user | 22ca037ef1761f0cea3d747f7a9188b0d284e854 | [
"BSD-3-Clause"
] | 1 | 2017-08-07T02:52:20.000Z | 2017-08-07T02:52:20.000Z | setup.py | ericflo/django-session-user | 22ca037ef1761f0cea3d747f7a9188b0d284e854 | [
"BSD-3-Clause"
] | null | null | null | setup.py | ericflo/django-session-user | 22ca037ef1761f0cea3d747f7a9188b0d284e854 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='django-session-user',
version=__import__('sessionuser').__version__,
description='Stores the user\'s information in the session, reucing database queries by a lot.',
long_description=open('README.txt').read(),
author='Eric Florenzano',
au... | 35.454545 | 100 | 0.655128 | 82 | 780 | 6.085366 | 0.792683 | 0.052104 | 0.068136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001623 | 0.210256 | 780 | 22 | 101 | 35.454545 | 0.808442 | 0 | 0 | 0 | 0 | 0 | 0.455826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.095238 | 0 | 0.095238 | 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 |
ebcde96aee22ebbd724abbc436365fd4be9aaf82 | 1,476 | py | Python | pset6/readability.py | D3adsec9ja/cs50x-works | 9cdc6f4007315324ca69f4756bb3e26e1eaa6929 | [
"BSD-3-Clause"
] | null | null | null | pset6/readability.py | D3adsec9ja/cs50x-works | 9cdc6f4007315324ca69f4756bb3e26e1eaa6929 | [
"BSD-3-Clause"
] | null | null | null | pset6/readability.py | D3adsec9ja/cs50x-works | 9cdc6f4007315324ca69f4756bb3e26e1eaa6929 | [
"BSD-3-Clause"
] | null | null | null | from cs50 import get_string
def get_text():
# Prompt for text. If user enters an empty string, prompt again.
while True:
word = get_string("Text: ")
if word != "":
return word
def text_parser(text):
# Helper function for parse input text.
letters = count_letters(text)
... | 23.0625 | 75 | 0.624661 | 211 | 1,476 | 4.265403 | 0.317536 | 0.066667 | 0.093333 | 0.06 | 0.155556 | 0.044444 | 0.044444 | 0 | 0 | 0 | 0 | 0.031107 | 0.259485 | 1,476 | 64 | 76 | 23.0625 | 0.792315 | 0.22019 | 0 | 0 | 0 | 0 | 0.048994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.028571 | 0.085714 | 0.428571 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebd0f8a35e0cc734c7ac99d852860f318c08a16b | 352 | py | Python | datahub/email_ingestion/__init__.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 6 | 2019-12-02T16:11:24.000Z | 2022-03-18T10:02:02.000Z | datahub/email_ingestion/__init__.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 1,696 | 2019-10-31T14:08:37.000Z | 2022-03-29T12:35:57.000Z | datahub/email_ingestion/__init__.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 9 | 2019-11-22T12:42:03.000Z | 2021-09-03T14:25:05.000Z | """
Generic functionality for processing emails from a mail server.
This is used by datahub.interaction.email_processors for creating DIT interactions from
calendar invitations.
"""
from datahub.email_ingestion.mailbox import MailboxHandler
default_app_config = 'datahub.email_ingestion.apps.EmailIngestionConfig'
mai... | 29.333333 | 87 | 0.838068 | 42 | 352 | 6.880952 | 0.761905 | 0.083045 | 0.145329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102273 | 352 | 11 | 88 | 32 | 0.914557 | 0.494318 | 0 | 0 | 0 | 0 | 0.288235 | 0.288235 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.