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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4763416997df781bd573e3c234672ddfd3a200da | 394 | py | Python | examples/spot/sub_account/sub_account_futures_asset_transfer_history.py | Banging12/binance-connector-python | dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b | [
"MIT"
] | 512 | 2021-06-15T08:52:44.000Z | 2022-03-31T09:49:53.000Z | examples/spot/sub_account/sub_account_futures_asset_transfer_history.py | Banging12/binance-connector-python | dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b | [
"MIT"
] | 75 | 2021-06-20T13:49:50.000Z | 2022-03-30T02:45:31.000Z | examples/spot/sub_account/sub_account_futures_asset_transfer_history.py | Banging12/binance-connector-python | dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b | [
"MIT"
] | 156 | 2021-06-18T11:56:36.000Z | 2022-03-29T16:34:22.000Z | #!/usr/bin/env python
import logging
from binance.spot import Spot as Client
from binance.lib.utils import config_logging
config_logging(logging, logging.DEBUG)
key = ""
secret = ""
spot_client = Client(key, secret)
logging.info(
spot_client.sub_account_futures_asset_transfer_history(
email="",
... | 20.736842 | 73 | 0.730964 | 53 | 394 | 5.264151 | 0.622642 | 0.078853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009146 | 0.167513 | 394 | 18 | 74 | 21.888889 | 0.841463 | 0.172589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4765153b7928cbef30b909b4bfadf17b59957999 | 864 | py | Python | jubox/test/notebook/test_get.py | Miksus/jubox | daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5 | [
"MIT"
] | 1 | 2020-04-26T05:18:45.000Z | 2020-04-26T05:18:45.000Z | jubox/test/notebook/test_get.py | Miksus/jubox | daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5 | [
"MIT"
] | null | null | null | jubox/test/notebook/test_get.py | Miksus/jubox | daaf1e223e0a7c0a3bf9ae03b88d629c0f99d4d5 | [
"MIT"
] | null | null | null |
import pytest
from jubox import JupyterNotebook, RawCell, CodeCell, MarkdownCell
def test_get_tags():
nb = JupyterNotebook([
RawCell("first cell"),
RawCell("second cell", tags=["tagged"]),
RawCell("third cell", taggs=["Not this", "tagged"]),
])
nb_of_tags = nb.get(tags=["tagged"]... | 32 | 66 | 0.653935 | 113 | 864 | 4.79646 | 0.292035 | 0.059041 | 0.118081 | 0.088561 | 0.560886 | 0.391144 | 0.391144 | 0.391144 | 0.391144 | 0.391144 | 0 | 0.005755 | 0.195602 | 864 | 27 | 67 | 32 | 0.774101 | 0 | 0 | 0.545455 | 0 | 0 | 0.155093 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4768a467a8a3d8637a1d9c22d0a7cdad0dc93e1c | 4,286 | py | Python | src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py | aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract | 50e54945032d0eb4b47d9072d4c1d66cd169070a | [
"MIT-0"
] | null | null | null | src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py | aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract | 50e54945032d0eb4b47d9072d4c1d66cd169070a | [
"MIT-0"
] | null | null | null | src/main/python/TriggerTextExtractFromS3Image/trigger_text_extract_from_s3_image.py | aws-samples/social-graph-based-people-recommender-using-amazon-neptune-and-textract | 50e54945032d0eb4b47d9072d4c1d66cd169070a | [
"MIT-0"
] | null | null | null | #!/usr/bin/env python3
# -*- encoding: utf-8 -*-
# vim: tabstop=2 shiftwidth=2 softtabstop=2 expandtab
import sys
import json
import os
import urllib.parse
import traceback
import datetime
import boto3
DRY_RUN = (os.getenv('DRY_RUN', 'false') == 'true')
AWS_REGION = os.getenv('REGION_NAME', 'us-east-1')
KINESIS_STR... | 27.651613 | 112 | 0.614792 | 490 | 4,286 | 5.155102 | 0.363265 | 0.028504 | 0.04038 | 0.022565 | 0.108472 | 0.086302 | 0.068884 | 0.04038 | 0.04038 | 0 | 0 | 0.039132 | 0.236818 | 4,286 | 154 | 113 | 27.831169 | 0.733109 | 0.022632 | 0 | 0.085271 | 0 | 0.007752 | 0.369654 | 0.050418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03876 | false | 0 | 0.069767 | 0 | 0.124031 | 0.054264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
476b0de22ff656e62822acafc870dbc852e2d7da | 592 | py | Python | dynamic_programming_1/solution/1010.py | gpgun0/baekjoon_ | 0a3e87b9eafe1a6af4234ebbd2eebb7f67156414 | [
"MIT"
] | null | null | null | dynamic_programming_1/solution/1010.py | gpgun0/baekjoon_ | 0a3e87b9eafe1a6af4234ebbd2eebb7f67156414 | [
"MIT"
] | null | null | null | dynamic_programming_1/solution/1010.py | gpgun0/baekjoon_ | 0a3e87b9eafe1a6af4234ebbd2eebb7f67156414 | [
"MIT"
] | null | null | null | class Solution:
def combination(self, m, n):
if dp[m][n]:
return dp[m][n]
if m <= n:
dp[m][n] = 1
return dp[m][n]
if n == 1:
dp[m][n] = m
return dp[m][n]
dp[m][n] = self.combination(m-1, n-1)... | 22.769231 | 73 | 0.429054 | 88 | 592 | 2.863636 | 0.272727 | 0.087302 | 0.126984 | 0.15873 | 0.329365 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033803 | 0.400338 | 592 | 26 | 74 | 22.769231 | 0.676056 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.421053 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
476d9258256823afd9857d168e1439ac9c883a29 | 1,738 | py | Python | fireroadApi/fireroad_utils.py | zhang-lucy/coursehose | 21cbda0e7cc12a9d201585dbdd53d2eeacfade96 | [
"MIT"
] | 1 | 2020-09-20T17:29:24.000Z | 2020-09-20T17:29:24.000Z | fireroadApi/fireroad_utils.py | zhang-lucy/coursehose | 21cbda0e7cc12a9d201585dbdd53d2eeacfade96 | [
"MIT"
] | null | null | null | fireroadApi/fireroad_utils.py | zhang-lucy/coursehose | 21cbda0e7cc12a9d201585dbdd53d2eeacfade96 | [
"MIT"
] | null | null | null | import requests
import json
import re
def get_course_requirements(course_id):
link = "http://fireroad.mit.edu/requirements/get_json/" + course_id
r = requests.get(link)
j = r.json()["reqs"]
return j
def get_all_course_requirements():
major_reqs = {}
major_id_link = "https://fireroad.mit.edu/requirements/list_... | 28.966667 | 100 | 0.733026 | 259 | 1,738 | 4.606178 | 0.243243 | 0.052808 | 0.04694 | 0.065381 | 0.222129 | 0.154233 | 0.154233 | 0.154233 | 0.154233 | 0.154233 | 0 | 0.002609 | 0.117952 | 1,738 | 59 | 101 | 29.457627 | 0.775603 | 0.150748 | 0 | 0.097561 | 0 | 0 | 0.185841 | 0.015657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.073171 | 0 | 0.365854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
476df3fbd08fe0e200196618406d29ff175f3d41 | 4,423 | py | Python | examples/compare_transactions_speed_with_hive.py | TheCrazyGM/bhive | 1494e90a99123ecfc5efbd927258f9ba59443e2e | [
"MIT"
] | 2 | 2020-03-21T23:50:22.000Z | 2020-03-25T19:10:48.000Z | examples/compare_transactions_speed_with_hive.py | TheCrazyGM/bhive | 1494e90a99123ecfc5efbd927258f9ba59443e2e | [
"MIT"
] | null | null | null | examples/compare_transactions_speed_with_hive.py | TheCrazyGM/bhive | 1494e90a99123ecfc5efbd927258f9ba59443e2e | [
"MIT"
] | 1 | 2020-03-21T23:50:25.000Z | 2020-03-21T23:50:25.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import bytes
from builtins import chr
from builtins import range
from builtins import super
import random
from pprint import pprint
from binascii import hexl... | 34.286822 | 101 | 0.628759 | 536 | 4,423 | 5.011194 | 0.240672 | 0.035741 | 0.035741 | 0.022338 | 0.393894 | 0.388682 | 0.328369 | 0.328369 | 0.302308 | 0.302308 | 0 | 0.042125 | 0.259326 | 4,423 | 128 | 102 | 34.554688 | 0.777778 | 0 | 0 | 0.371681 | 0 | 0 | 0.099254 | 0.031201 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035398 | false | 0 | 0.247788 | 0 | 0.318584 | 0.088496 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
476f15ab6f480fa347487aaf78b33358b554c7b0 | 2,509 | py | Python | src/main/python/widgets/dialogs/rename_user_dialog.py | ivov/admin-stock | e2e1d53436878b6db68dcb85d0cca31223066ffb | [
"MIT"
] | 8 | 2019-11-02T22:32:30.000Z | 2021-08-16T08:29:39.000Z | src/main/python/widgets/dialogs/rename_user_dialog.py | ivov/admin-stock | e2e1d53436878b6db68dcb85d0cca31223066ffb | [
"MIT"
] | null | null | null | src/main/python/widgets/dialogs/rename_user_dialog.py | ivov/admin-stock | e2e1d53436878b6db68dcb85d0cca31223066ffb | [
"MIT"
] | 3 | 2019-12-10T16:23:49.000Z | 2021-11-01T20:22:16.000Z | from PyQt5 import QtWidgets, QtCore
from utils.styling import rename_user_dialog_title_style
class RenameUserDialog(QtWidgets.QDialog):
def __init__(self, parent=None):
super(RenameUserDialog, self).__init__(parent)
self.setWindowFlags(
QtCore.Qt.Dialog
| QtCore.Qt.Customiz... | 35.842857 | 77 | 0.687923 | 274 | 2,509 | 6.062044 | 0.339416 | 0.057797 | 0.062613 | 0.043347 | 0.17339 | 0.049368 | 0.049368 | 0.049368 | 0 | 0 | 0 | 0.004536 | 0.209247 | 2,509 | 69 | 78 | 36.362319 | 0.831653 | 0 | 0 | 0.037736 | 0 | 0 | 0.037465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.037736 | 0 | 0.113208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4771eb8f2f256c1d66ba7f41f070c11396af58fb | 6,053 | py | Python | bluetooth-audio/btspeaker.py | b23prodtm/balena-sound | 1ee886241485a302f88176c7dd880e986cf768c3 | [
"Apache-2.0"
] | null | null | null | bluetooth-audio/btspeaker.py | b23prodtm/balena-sound | 1ee886241485a302f88176c7dd880e986cf768c3 | [
"Apache-2.0"
] | 3 | 2019-11-20T17:49:37.000Z | 2020-06-01T23:09:10.000Z | bluetooth-audio/btspeaker.py | b23prodtm/balena-sound | 1ee886241485a302f88176c7dd880e986cf768c3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import bluetooth, sys, os, re, subprocess, time, getopt
BT_BLE = int(os.getenv('BT_BLE', 0))
BT_SCAN_TIMEOUT = int(os.getenv('BT_SCAN_TIMEOUT', 2))
if BT_BLE:
from gattlib import DiscoveryService
from ble_client import BleClient
def parse_argv (myenv, argv):
usage = 'Command line args: ... | 38.801282 | 123 | 0.544358 | 714 | 6,053 | 4.512605 | 0.240896 | 0.018622 | 0.022346 | 0.022346 | 0.216325 | 0.160459 | 0.15239 | 0.116698 | 0.068901 | 0.068901 | 0 | 0.014925 | 0.280522 | 6,053 | 155 | 124 | 39.051613 | 0.724914 | 0.075004 | 0 | 0.244444 | 0 | 0.007407 | 0.219002 | 0.010199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.022222 | 0 | 0.111111 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4774eea99e7f6cd1515737dfa6e6653b0d95171b | 4,369 | py | Python | bedpe_longrange/bedpe2longrange.py | ChenfuShi/tools_for_HiChIP | 0faa8b26a7c53922dd2de977d7df442dd2caeed7 | [
"BSD-3-Clause"
] | 5 | 2019-05-09T19:31:26.000Z | 2021-12-06T02:57:48.000Z | bedpe_longrange/bedpe2longrange.py | ChenfuShi/tools_for_HiChIP | 0faa8b26a7c53922dd2de977d7df442dd2caeed7 | [
"BSD-3-Clause"
] | null | null | null | bedpe_longrange/bedpe2longrange.py | ChenfuShi/tools_for_HiChIP | 0faa8b26a7c53922dd2de977d7df442dd2caeed7 | [
"BSD-3-Clause"
] | 4 | 2019-06-01T11:30:41.000Z | 2022-03-11T02:01:52.000Z | #########################################
# Author: Chenfu Shi
# Email: chenfu.shi@postgrad.manchester.ac.uk
# BSD-3-Clause License
# Copyright 2019 Chenfu Shi
# All rights reserved.
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ... | 48.010989 | 757 | 0.676127 | 612 | 4,369 | 4.802288 | 0.428105 | 0.005444 | 0.006125 | 0.005444 | 0.105478 | 0.089146 | 0.089146 | 0.089146 | 0.089146 | 0.046274 | 0 | 0.017084 | 0.196155 | 4,369 | 91 | 758 | 48.010989 | 0.819761 | 0.44152 | 0 | 0.081633 | 0 | 0 | 0.207088 | 0.028181 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081633 | 0 | 0.081633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4775e3e337b36b06c6774e19748eb643d6196b5f | 11,501 | py | Python | 0_get_Fink_features_xmatch.py | anaismoller/KNTrap | 9e1bc85576ab16c4cb6d4d4da74482061029d207 | [
"Apache-2.0"
] | null | null | null | 0_get_Fink_features_xmatch.py | anaismoller/KNTrap | 9e1bc85576ab16c4cb6d4d4da74482061029d207 | [
"Apache-2.0"
] | null | null | null | 0_get_Fink_features_xmatch.py | anaismoller/KNTrap | 9e1bc85576ab16c4cb6d4d4da74482061029d207 | [
"Apache-2.0"
] | null | null | null | # Year 2022
# Authors: Anais Möller based on fink-broker.org code
import os
import sys
import glob
import logging
import argparse
import numpy as np
import pandas as pd
from tqdm import tqdm
from pathlib import Path
from functools import partial
from astropy.table import Table
from astropy import units as u
from astro... | 31.423497 | 87 | 0.578558 | 1,484 | 11,501 | 4.237197 | 0.237871 | 0.021469 | 0.010178 | 0.013359 | 0.145515 | 0.072042 | 0.056139 | 0.056139 | 0.056139 | 0.056139 | 0 | 0.010797 | 0.299365 | 11,501 | 365 | 88 | 31.509589 | 0.769546 | 0.078863 | 0 | 0.221843 | 0 | 0 | 0.165118 | 0.026434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013652 | false | 0 | 0.061433 | 0 | 0.09215 | 0.023891 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4777fbaa35309f630f4ae07e90c983a041f15298 | 1,990 | py | Python | 2017/day11/src/main.py | stenbein/AdventOfCode | 3e8c24f7140dd9cdc687e176272af6a1302a9ca5 | [
"MIT"
] | 3 | 2018-04-08T10:40:52.000Z | 2018-12-06T02:37:23.000Z | 2017/day11/main.py | stenbein/AdventOfCode | 3e8c24f7140dd9cdc687e176272af6a1302a9ca5 | [
"MIT"
] | 2 | 2018-04-10T11:44:18.000Z | 2022-02-22T21:25:54.000Z | 2017/day11/src/main.py | stenbein/AdventOfCode | 3e8c24f7140dd9cdc687e176272af6a1302a9ca5 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
'''Day 11 of the 2017 advent of code'''
class HexCounter():
'''A hex maze walker object for
keeping track of our position'''
def __init__(self):
self.x = 0
self.y = 0
self.z = 0
self.furthest = 0
def move(self, direction):
... | 20.515464 | 65 | 0.477387 | 241 | 1,990 | 3.875519 | 0.369295 | 0.03212 | 0.074946 | 0.029979 | 0.335118 | 0.335118 | 0.24197 | 0.24197 | 0.134904 | 0.134904 | 0 | 0.021812 | 0.401005 | 1,990 | 96 | 66 | 20.729167 | 0.761745 | 0.153769 | 0 | 0.327273 | 0 | 0 | 0.042526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.163636 | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
477d41ca1c89e9e563388b140b23288438ed0562 | 7,613 | py | Python | Clients/pyClient/GUI.py | JulianWww/AlphaZero | 8eb754659793305eba7b9e636eeab37d9ccd45f7 | [
"MIT"
] | 1 | 2021-12-05T13:26:17.000Z | 2021-12-05T13:26:17.000Z | Clients/pyClient/GUI.py | JulianWww/AlphaZero | 8eb754659793305eba7b9e636eeab37d9ccd45f7 | [
"MIT"
] | null | null | null | Clients/pyClient/GUI.py | JulianWww/AlphaZero | 8eb754659793305eba7b9e636eeab37d9ccd45f7 | [
"MIT"
] | null | null | null | import tkinter as tk
from PIL import Image, ImageTk
from game import Game
from threading import Thread
import time
from gameSaver import sendFull
from Client import DummyAgent
class ConsoleAgent:
"""Agent running in the console for testing only"""
def render(self, state):
"render the state to the conso... | 31.853556 | 104 | 0.523053 | 899 | 7,613 | 4.34594 | 0.252503 | 0.040952 | 0.036857 | 0.019196 | 0.204761 | 0.176094 | 0.141797 | 0.112618 | 0.081136 | 0.081136 | 0 | 0.029108 | 0.36372 | 7,613 | 238 | 105 | 31.987395 | 0.777457 | 0.092736 | 0 | 0.13587 | 0 | 0 | 0.087238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.005435 | 0.038043 | 0 | 0.211957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47846ea157171c9a8c93b748212ec54fd187b2e7 | 1,418 | py | Python | samples/bot-handoff-es6/emulate-users.py | microsoftly/botbuilder-js | 538cb479b8596cdc209f5d70aa1a9000a0e6b360 | [
"MIT"
] | 1 | 2021-03-16T05:14:30.000Z | 2021-03-16T05:14:30.000Z | samples/bot-handoff-es6/emulate-users.py | microsoftly/botbuilder-js | 538cb479b8596cdc209f5d70aa1a9000a0e6b360 | [
"MIT"
] | 1 | 2018-03-26T05:25:54.000Z | 2018-03-26T05:26:18.000Z | samples/bot-handoff-es6/emulate-users.py | microsoftly/botbuilder-js | 538cb479b8596cdc209f5d70aa1a9000a0e6b360 | [
"MIT"
] | 1 | 2018-03-26T04:16:42.000Z | 2018-03-26T04:16:42.000Z | #!/usr/bin/python
import json, subprocess, sys, platform
from os.path import expanduser
if len (sys.argv) < 2 :
print("Usage: python " + sys.argv[0] + " username(s)")
sys.exit (1)
HOME=expanduser("~")
# determine paths
SYSTEM=platform.system()
if SYSTEM == 'Darwin':
SERVERJSON=HOME+'/Library/Application ... | 33.761905 | 106 | 0.673484 | 176 | 1,418 | 5.420455 | 0.494318 | 0.125786 | 0.016771 | 0.083857 | 0.209644 | 0.209644 | 0.138365 | 0.138365 | 0 | 0 | 0 | 0.005085 | 0.167842 | 1,418 | 42 | 107 | 33.761905 | 0.80339 | 0.100141 | 0 | 0.206897 | 0 | 0 | 0.314961 | 0.179528 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.068966 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4786b42fdf67185bb43692e8ca877d2f9dba7530 | 4,571 | py | Python | models/segnet.py | AntixK/Neural-Blocks | 018a44bbb703fc848234b95a3e604576bd9df88f | [
"MIT"
] | 3 | 2019-07-23T12:35:50.000Z | 2021-02-23T04:20:31.000Z | models/segnet.py | AntixK/Neural-Blocks | 018a44bbb703fc848234b95a3e604576bd9df88f | [
"MIT"
] | null | null | null | models/segnet.py | AntixK/Neural-Blocks | 018a44bbb703fc848234b95a3e604576bd9df88f | [
"MIT"
] | 1 | 2019-07-21T06:07:12.000Z | 2019-07-21T06:07:12.000Z | import torch
import torch.nn as nn
from NeuralBlocks.blocks.convnormrelu import ConvNormRelu
class segnetDown(nn.Module):
def __init__(self, in_channels, out_channels, norm=None, num_conv = 2):
super(segnetDown, self).__init__()
module = []
if num_conv < 2:
raise ValueError("Se... | 34.628788 | 93 | 0.584992 | 595 | 4,571 | 4.317647 | 0.206723 | 0.038147 | 0.024912 | 0.040872 | 0.393149 | 0.383418 | 0.354223 | 0.324251 | 0.293889 | 0.231997 | 0 | 0.022173 | 0.309342 | 4,571 | 131 | 94 | 34.89313 | 0.791574 | 0.046598 | 0 | 0.283951 | 0 | 0 | 0.041589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
478b01eea05155c0e098a1b65909d95f41833301 | 5,665 | py | Python | barbican-8.0.0/barbican/objects/container_consumer_meta.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 177 | 2015-01-02T09:35:53.000Z | 2022-02-26T01:43:55.000Z | barbican/objects/container_consumer_meta.py | kkutysllb/barbican | 7b14d983e0dce6dcffe9781b05c52335b8203fc7 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | barbican/objects/container_consumer_meta.py | kkutysllb/barbican | 7b14d983e0dce6dcffe9781b05c52335b8203fc7 | [
"Apache-2.0"
] | 87 | 2015-01-13T17:33:40.000Z | 2021-11-09T05:30:36.000Z | # Copyright 2018 Fujitsu.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 44.960317 | 79 | 0.642012 | 647 | 5,665 | 5.454405 | 0.267388 | 0.056107 | 0.039671 | 0.032871 | 0.548031 | 0.540096 | 0.456787 | 0.456787 | 0.456787 | 0.456787 | 0 | 0.001997 | 0.292851 | 5,665 | 125 | 80 | 45.32 | 0.878932 | 0.270079 | 0 | 0.435897 | 0 | 0 | 0.044433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.102564 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
478d445e00859e47118663015c1dca1d382e8e84 | 3,841 | py | Python | tests/sentry/api/endpoints/test_project_rules_configuration.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/api/endpoints/test_project_rules_configuration.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/api/endpoints/test_project_rules_configuration.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from django.core.urlresolvers import reverse
from mock import Mock, patch
from sentry.rules.registry import RuleRegistry
from sentry.testutils import APITestCase
class ProjectRuleConfigurationTest(APITestCase):
def setUp(self):
self.project.flags.has_issue_alerts_t... | 36.235849 | 100 | 0.640198 | 450 | 3,841 | 5.228889 | 0.237778 | 0.037399 | 0.035699 | 0.047599 | 0.674033 | 0.621334 | 0.533787 | 0.483638 | 0.402465 | 0.402465 | 0 | 0.00766 | 0.252278 | 3,841 | 105 | 101 | 36.580952 | 0.81163 | 0 | 0 | 0.460674 | 0 | 0 | 0.143713 | 0.099974 | 0 | 0 | 0 | 0 | 0.067416 | 1 | 0.101124 | false | 0 | 0.05618 | 0 | 0.179775 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
478df9b66c40c191cbb8cf8a0885ef1863ea295a | 3,297 | py | Python | train-script.py | praepunctis/chordtext | b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b | [
"MIT"
] | 1 | 2020-12-02T10:04:08.000Z | 2020-12-02T10:04:08.000Z | train-script.py | praepunctis/chordtext | b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b | [
"MIT"
] | null | null | null | train-script.py | praepunctis/chordtext | b58ea6fea7bf417e6e18daad6c4ce6ea878bd27b | [
"MIT"
] | null | null | null | # train-script.py
# Grab data from movie_data.csv and train a ML model.
# Kelly Fesler (c) Nov 2020
# Modified from Soumya Gupta (c) Jan 2020
# STEP 1: import -------------------------------------------
# Import libraries
import urllib.request
import os
import pandas as pd
import numpy as np
import nltk
import sklear... | 28.422414 | 73 | 0.668487 | 434 | 3,297 | 4.997696 | 0.380184 | 0.016598 | 0.018442 | 0.013831 | 0.077916 | 0.03965 | 0 | 0 | 0 | 0 | 0 | 0.01915 | 0.128905 | 3,297 | 115 | 74 | 28.669565 | 0.736072 | 0.330604 | 0 | 0.066667 | 0 | 0 | 0.20514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.2 | 0 | 0.233333 | 0.35 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
478eeb89ce278e9a0867db0565808bfedbcc11dc | 10,947 | py | Python | roerich/algorithms.py | HSE-LAMBDA/roerich | 17e178292593d1ea6a821b99705620ba066abd2a | [
"BSD-2-Clause"
] | 10 | 2020-12-01T13:58:27.000Z | 2022-01-17T12:01:31.000Z | roerich/algorithms.py | HSE-LAMBDA/roerich | 17e178292593d1ea6a821b99705620ba066abd2a | [
"BSD-2-Clause"
] | 3 | 2021-03-07T14:06:22.000Z | 2022-01-18T14:23:16.000Z | roerich/algorithms.py | HSE-LAMBDA/roerich | 17e178292593d1ea6a821b99705620ba066abd2a | [
"BSD-2-Clause"
] | 2 | 2020-12-01T14:04:36.000Z | 2022-03-24T12:52:32.000Z | from abc import ABCMeta, abstractmethod
from collections import defaultdict
from copy import deepcopy
from typing import Union, Type, Any, Tuple
import numpy as np
import torch
import torch.nn as nn
from scipy.signal import find_peaks_cwt
from .net import MyNN, MyNNRegressor
from .utils import autoregression_matrix, ... | 34.863057 | 128 | 0.567279 | 1,373 | 10,947 | 4.366351 | 0.185725 | 0.015847 | 0.031693 | 0.016347 | 0.258215 | 0.223019 | 0.18382 | 0.159299 | 0.097748 | 0.097748 | 0 | 0.010418 | 0.324838 | 10,947 | 313 | 129 | 34.974441 | 0.800704 | 0.237234 | 0 | 0.121951 | 0 | 0 | 0.011289 | 0 | 0 | 0 | 0 | 0.003195 | 0 | 1 | 0.085366 | false | 0.012195 | 0.079268 | 0 | 0.22561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4794b8cc274b020b95e48eb002f538acf5d6b189 | 4,484 | py | Python | data/create_train_test_split.py | chmo2019/CUB-200-with-TFOD-API | 8f46f2f91085f3e35829f8c7ce0289771ebb0294 | [
"MIT"
] | null | null | null | data/create_train_test_split.py | chmo2019/CUB-200-with-TFOD-API | 8f46f2f91085f3e35829f8c7ce0289771ebb0294 | [
"MIT"
] | null | null | null | data/create_train_test_split.py | chmo2019/CUB-200-with-TFOD-API | 8f46f2f91085f3e35829f8c7ce0289771ebb0294 | [
"MIT"
] | null | null | null | # import necessary libraries
import csv
from PIL import Image
import argparse
# create argument parser with PATH argument
ap = argparse.ArgumentParser()
ap.add_argument('-p', '--path', required=True,
help='''PATH to CUB_200_2011 folder i.e. folder with CUB 200 csv files
(make sure to include full path name for so ... | 32.258993 | 94 | 0.594558 | 655 | 4,484 | 3.90687 | 0.181679 | 0.158265 | 0.082063 | 0.046893 | 0.422821 | 0.333724 | 0.28136 | 0.28136 | 0.240719 | 0.14068 | 0 | 0.022033 | 0.159902 | 4,484 | 139 | 95 | 32.258993 | 0.657287 | 0.118644 | 0 | 0.188679 | 0 | 0.009434 | 0.20772 | 0.047994 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009434 | false | 0 | 0.028302 | 0 | 0.037736 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4795e4597ca4cff70deec87c952fb0febb0256f0 | 3,487 | py | Python | homework/1-AE/losses.py | Penchekrak/DeepGenerativeModels | 7ee829682e8ed51bc637e2c6def0b9f810f384bc | [
"MIT"
] | null | null | null | homework/1-AE/losses.py | Penchekrak/DeepGenerativeModels | 7ee829682e8ed51bc637e2c6def0b9f810f384bc | [
"MIT"
] | null | null | null | homework/1-AE/losses.py | Penchekrak/DeepGenerativeModels | 7ee829682e8ed51bc637e2c6def0b9f810f384bc | [
"MIT"
] | null | null | null | import torch
from torch import nn
class Criterion:
def __call__(self, model: nn.Module, batch_x: torch.Tensor, batch_y: torch.Tensor, *args, **kwargs):
pass
class Image2ImageMSELoss(Criterion):
def __init__(self):
self.mse_loss = nn.MSELoss()
def __repr__(self):
return repr(sel... | 32.896226 | 104 | 0.634069 | 486 | 3,487 | 4.263374 | 0.12963 | 0.052124 | 0.037162 | 0.046332 | 0.697876 | 0.666988 | 0.618726 | 0.59556 | 0.581081 | 0.581081 | 0 | 0.013323 | 0.24663 | 3,487 | 105 | 105 | 33.209524 | 0.775409 | 0 | 0 | 0.575 | 0 | 0 | 0.009751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.0125 | 0.025 | 0.05 | 0.425 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47981ad00b6fbe330d40b7fd3c56d0ca049b684c | 6,190 | py | Python | core/domain/wipeout_service_test.py | davehenton/oppia | 62a9e9ea8458632e39b8ab4cf15b0489ac1acad9 | [
"Apache-2.0"
] | 1 | 2021-01-22T03:24:52.000Z | 2021-01-22T03:24:52.000Z | core/domain/wipeout_service_test.py | davehenton/oppia | 62a9e9ea8458632e39b8ab4cf15b0489ac1acad9 | [
"Apache-2.0"
] | null | null | null | core/domain/wipeout_service_test.py | davehenton/oppia | 62a9e9ea8458632e39b8ab4cf15b0489ac1acad9 | [
"Apache-2.0"
] | 1 | 2020-06-25T21:43:01.000Z | 2020-06-25T21:43:01.000Z | # Copyright 2019 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 42.108844 | 80 | 0.745073 | 817 | 6,190 | 5.22399 | 0.19339 | 0.06373 | 0.054827 | 0.059278 | 0.628866 | 0.585052 | 0.500469 | 0.424321 | 0.387535 | 0.347235 | 0 | 0.009646 | 0.179321 | 6,190 | 146 | 81 | 42.39726 | 0.830512 | 0.115994 | 0 | 0.356436 | 0 | 0 | 0.027171 | 0 | 0 | 0 | 0 | 0 | 0.19802 | 1 | 0.069307 | false | 0 | 0.108911 | 0 | 0.227723 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4798901a83af76dc1807e8d5ec48f5223c016346 | 1,109 | py | Python | drf_to_s3/middleware.py | treyhunner/drf-to-s3 | 2384b7e277da0e795ab9e0241e829bcc4ca4dc77 | [
"MIT"
] | 28 | 2015-01-15T18:31:24.000Z | 2018-11-08T07:33:42.000Z | drf_to_s3/middleware.py | treyhunner/drf-to-s3 | 2384b7e277da0e795ab9e0241e829bcc4ca4dc77 | [
"MIT"
] | 10 | 2020-01-01T07:26:19.000Z | 2021-06-25T15:26:53.000Z | drf_to_s3/middleware.py | treyhunner/drf-to-s3 | 2384b7e277da0e795ab9e0241e829bcc4ca4dc77 | [
"MIT"
] | 7 | 2015-01-29T20:59:29.000Z | 2017-04-24T16:05:48.000Z | class UploadPrefixMiddleware(object):
'''
Sets a cookie with the upload prefix.
To be agnostic about your method of user authentication, this is
handled using middleware. It can't be in a signal, since the signal
handler doesn't have access to the response.
In most applications, the client alr... | 32.617647 | 85 | 0.682597 | 134 | 1,109 | 5.485075 | 0.567164 | 0.081633 | 0.040816 | 0.059864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001218 | 0.259693 | 1,109 | 33 | 86 | 33.606061 | 0.894032 | 0.448151 | 0 | 0 | 0 | 0 | 0.06947 | 0.045704 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
479926439a3bedce30e4792e3973470d8b31f04e | 14,157 | py | Python | deepcomp/util/env_setup.py | CN-UPB/DeepCoMP | f9f64873184bb53b5687ae62f8ba2b84da423692 | [
"MIT"
] | 19 | 2021-03-17T12:59:48.000Z | 2022-03-24T09:04:32.000Z | deepcomp/util/env_setup.py | CN-UPB/DeepCoMP | f9f64873184bb53b5687ae62f8ba2b84da423692 | [
"MIT"
] | 1 | 2021-03-08T16:27:49.000Z | 2021-03-08T16:27:49.000Z | deepcomp/util/env_setup.py | CN-UPB/DeepCoMP | f9f64873184bb53b5687ae62f8ba2b84da423692 | [
"MIT"
] | 6 | 2021-01-25T19:34:18.000Z | 2022-03-20T05:56:33.000Z | """Utility module for setting up different envs"""
import numpy as np
import structlog
from shapely.geometry import Point
from ray.rllib.agents.ppo import DEFAULT_CONFIG
from ray.rllib.env.multi_agent_env import MultiAgentEnv
from deepcomp.util.constants import SUPPORTED_ENVS, SUPPORTED_AGENTS, SUPPORTED_SHARING, SUPP... | 44.37931 | 128 | 0.67034 | 2,101 | 14,157 | 4.28415 | 0.20752 | 0.047995 | 0.025331 | 0.02833 | 0.283191 | 0.228752 | 0.200311 | 0.140096 | 0.113765 | 0.104211 | 0 | 0.027626 | 0.22526 | 14,157 | 318 | 129 | 44.518868 | 0.793034 | 0.282263 | 0 | 0.095745 | 0 | 0 | 0.084346 | 0.002109 | 0 | 0 | 0 | 0 | 0.031915 | 1 | 0.069149 | false | 0 | 0.074468 | 0 | 0.255319 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
479df66e863ce32ea10d321a13e0395597727f6a | 1,554 | py | Python | shopping.py | scharlau/shopping_exercise_p | f6b59ba38408dcd9f66f79814ad6a7df167e8fa1 | [
"Unlicense"
] | 1 | 2021-02-23T15:56:22.000Z | 2021-02-23T15:56:22.000Z | shopping.py | scharlau/shopping_exercise_p | f6b59ba38408dcd9f66f79814ad6a7df167e8fa1 | [
"Unlicense"
] | null | null | null | shopping.py | scharlau/shopping_exercise_p | f6b59ba38408dcd9f66f79814ad6a7df167e8fa1 | [
"Unlicense"
] | 3 | 2022-02-23T11:17:12.000Z | 2022-03-01T10:22:40.000Z | import sqlite3
from flask import Flask, render_template
app = Flask(__name__)
# database details - to remove some duplication
db_name = 'shopping_data.db'
@app.route('/')
def index():
return render_template('index.html')
@app.route('/customers')
def customers():
conn = sqlite3.connect(db_name)
conn.row_... | 28.254545 | 70 | 0.684041 | 203 | 1,554 | 5.108374 | 0.20197 | 0.081003 | 0.096432 | 0.077146 | 0.642237 | 0.603664 | 0.603664 | 0.526519 | 0.441659 | 0.441659 | 0 | 0.007075 | 0.181467 | 1,554 | 55 | 71 | 28.254545 | 0.808176 | 0.094595 | 0 | 0.418605 | 0 | 0 | 0.18331 | 0.03067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.046512 | 0.023256 | 0.27907 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
479e8f21283f73a7284a6977ee7935c8576954ca | 3,372 | py | Python | Month 01/Week 04/Day 03/a.py | KevinKnott/Coding-Review | 6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb | [
"MIT"
] | null | null | null | Month 01/Week 04/Day 03/a.py | KevinKnott/Coding-Review | 6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb | [
"MIT"
] | null | null | null | Month 01/Week 04/Day 03/a.py | KevinKnott/Coding-Review | 6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb | [
"MIT"
] | null | null | null | # Decode Ways: https://leetcode.com/problems/decode-ways/
# A message containing letters from A-Z can be encoded into numbers using the following mapping:
# 'A' -> "1"
# 'B' -> "2"
# ...
# 'Z' -> "26"
# To decode an encoded message, all the digits must be grouped then mapped back into letters using the reverse of th... | 34.762887 | 202 | 0.613582 | 543 | 3,372 | 3.810313 | 0.394107 | 0.009667 | 0.0116 | 0.010633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037005 | 0.318802 | 3,372 | 96 | 203 | 35.125 | 0.863735 | 0.638197 | 0 | 0.121212 | 0 | 0 | 0.002534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
479ebacd8680e1c9ee8fd4892014756c931c3f71 | 7,503 | py | Python | word2vec.py | online-behaviour/machine-learning | 2ff0e83905985ec644699ece44c75dd7422a7426 | [
"Apache-2.0"
] | 2 | 2017-08-18T13:14:38.000Z | 2021-09-02T07:45:41.000Z | word2vec.py | online-behaviour/machine-learning | 2ff0e83905985ec644699ece44c75dd7422a7426 | [
"Apache-2.0"
] | null | null | null | word2vec.py | online-behaviour/machine-learning | 2ff0e83905985ec644699ece44c75dd7422a7426 | [
"Apache-2.0"
] | 3 | 2020-11-18T11:55:45.000Z | 2021-04-27T10:02:27.000Z | #!/usr/bin/python -W all
"""
word2vec.py: process tweets with word2vec vectors
usage: word2vec.py [-x] [-m model-file [-l word-vector-length]] -w word-vector-file -T train-file -t test-file
notes:
- optional model file is a text file from which the word vector file is built
- option x writes tokeni... | 40.33871 | 114 | 0.702786 | 945 | 7,503 | 5.567196 | 0.303704 | 0.015206 | 0.012355 | 0.016157 | 0.136286 | 0.069188 | 0.063486 | 0.037635 | 0.037635 | 0.012925 | 0 | 0.012446 | 0.196855 | 7,503 | 185 | 115 | 40.556757 | 0.860604 | 0.283487 | 0 | 0.071429 | 0 | 0.007937 | 0.072439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.103175 | 0 | 0.134921 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47a1196cb4630db570dad1f74a29081f22292d56 | 291 | py | Python | Day 4/Ex3: Treasure Map.py | Nishi-16-K/100DaysCodeChallenge-Python- | 96df953bbc60c2bf8802cf31ed6c593469521482 | [
"MIT"
] | 1 | 2021-08-29T12:44:23.000Z | 2021-08-29T12:44:23.000Z | Day 4/Ex3: Treasure Map.py | Nishi-16-K/100DaysofCodeChallenge-Python | 96df953bbc60c2bf8802cf31ed6c593469521482 | [
"MIT"
] | null | null | null | Day 4/Ex3: Treasure Map.py | Nishi-16-K/100DaysofCodeChallenge-Python | 96df953bbc60c2bf8802cf31ed6c593469521482 | [
"MIT"
] | null | null | null | row1 = ["⬜️","⬜️","⬜️"]
row2 = ["⬜️","⬜️","⬜️"]
row3 = ["⬜️","⬜️","⬜️"]
map = [row1, row2, row3]
print(f"{row1}\n{row2}\n{row3}")
position = input("Where do you want to put the treasure? ")
col = int(position[0])
ro = int(position[1])
map[ro-1][col-1] = "X"
print(f"{row1}\n{row2}\n{row3}")
| 26.454545 | 59 | 0.515464 | 54 | 291 | 3.111111 | 0.444444 | 0.142857 | 0.107143 | 0.130952 | 0.238095 | 0.238095 | 0.238095 | 0 | 0 | 0 | 0 | 0.062745 | 0.123711 | 291 | 10 | 60 | 29.1 | 0.52549 | 0 | 0 | 0.2 | 0 | 0 | 0.350515 | 0.151203 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47a5912698e4015d5f8165df118a9d812fd9c116 | 488 | py | Python | wrong_settings.py | kutayg/gameQuest | 1730ea8810a54afff50fbb5eab8fb5290eed6222 | [
"MIT"
] | null | null | null | wrong_settings.py | kutayg/gameQuest | 1730ea8810a54afff50fbb5eab8fb5290eed6222 | [
"MIT"
] | null | null | null | wrong_settings.py | kutayg/gameQuest | 1730ea8810a54afff50fbb5eab8fb5290eed6222 | [
"MIT"
] | null | null | null | # © 2019 KidsCanCode LLC / All rights reserved.
# Game options/settings
TITLE = "Jumpy!"
WIDTH = 480
HEIGHT = 600
FPS = 60
# Environment options
GRAVITY = 9.8
# Player properties
PLAYER_ACC = 0.5
PLAYER_FRICTION = -0.01
PLAYER_JUMPPOWER = 10
# Define colors
# I changed the screen color to aqua, the platform color t... | 20.333333 | 98 | 0.684426 | 80 | 488 | 4.15 | 0.625 | 0.063253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15601 | 0.19877 | 488 | 24 | 99 | 20.333333 | 0.690537 | 0.442623 | 0 | 0 | 0 | 0 | 0.022556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47ab8c88580963ea081b14afd01ad6eaae957d96 | 1,091 | py | Python | Exercicios/Ex69.py | angeloridolfi/Python-CEV | fd11b7ea0725f83c84336b99304c50f183514245 | [
"MIT"
] | null | null | null | Exercicios/Ex69.py | angeloridolfi/Python-CEV | fd11b7ea0725f83c84336b99304c50f183514245 | [
"MIT"
] | null | null | null | Exercicios/Ex69.py | angeloridolfi/Python-CEV | fd11b7ea0725f83c84336b99304c50f183514245 | [
"MIT"
] | null | null | null | contmaior = 0
contahomi = 0
contamuie = 0
while True:
print('CADASTRE UMA PESSOA')
print('=-' * 19)
idade = int(input('INFORME SUA IDADE: '))
if idade > 18:
contmaior += 1
sexo = str(input('INFORME SEU SEXO <<M/F>>: ')).upper().strip()[0]
if sexo not in 'MF':
while True:
... | 33.060606 | 96 | 0.542621 | 140 | 1,091 | 4.228571 | 0.357143 | 0.054054 | 0.074324 | 0.065878 | 0.199324 | 0.199324 | 0.199324 | 0.111486 | 0.111486 | 0.111486 | 0 | 0.030928 | 0.288726 | 1,091 | 32 | 97 | 34.09375 | 0.731959 | 0 | 0 | 0.25 | 0 | 0 | 0.290559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.21875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47af52c1759d6ca7b81f36810e1191b6fa34e7eb | 11,920 | py | Python | non_local.py | yuxia201121/ADCTself-attention | 77d32034854f64a7aa24d45ae2c4e18f7616cf48 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | non_local.py | yuxia201121/ADCTself-attention | 77d32034854f64a7aa24d45ae2c4e18f7616cf48 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | non_local.py | yuxia201121/ADCTself-attention | 77d32034854f64a7aa24d45ae2c4e18f7616cf48 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 40.27027 | 127 | 0.560906 | 1,651 | 11,920 | 3.745003 | 0.101757 | 0.035096 | 0.021834 | 0.026686 | 0.631732 | 0.552644 | 0.500081 | 0.467572 | 0.467572 | 0.456898 | 0 | 0.065696 | 0.256795 | 11,920 | 295 | 128 | 40.40678 | 0.632238 | 0.450168 | 0 | 0.232143 | 0 | 0 | 0.09576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026786 | false | 0 | 0.026786 | 0 | 0.080357 | 0.357143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47b3262789a56b500e24bd5503fa34b4ab5f6bca | 1,031 | py | Python | evaluation/eval_frames.py | suleymanaslan/generative-rainbow | 9f8daac5e06565ef099c0913186f5a1d801ca52c | [
"MIT"
] | null | null | null | evaluation/eval_frames.py | suleymanaslan/generative-rainbow | 9f8daac5e06565ef099c0913186f5a1d801ca52c | [
"MIT"
] | null | null | null | evaluation/eval_frames.py | suleymanaslan/generative-rainbow | 9f8daac5e06565ef099c0913186f5a1d801ca52c | [
"MIT"
] | null | null | null | import numpy as np
import imageio
from evaluation.eval_utils import to_img_padded, format_img, init_evaluation
def save_frames(env, agent, pad, folder):
observation, ep_reward, done = env.reset(), 0, False
count = 0
while not done:
action, generated_next_observation = agent.act(observation, get_g... | 34.366667 | 87 | 0.681862 | 142 | 1,031 | 4.704225 | 0.380282 | 0.112275 | 0.065868 | 0.056886 | 0.161677 | 0.086826 | 0.086826 | 0 | 0 | 0 | 0 | 0.014599 | 0.202716 | 1,031 | 29 | 88 | 35.551724 | 0.798054 | 0 | 0 | 0 | 0 | 0 | 0.074685 | 0.074685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47b4d5911e43771cc3188d71f2b90fe1b6287fdc | 22,950 | py | Python | acme/HttpServer.py | ankraft/ACME-oneM2M-CSE | 03c23ea19b35dd6e0aec752d9631e2a76778c61c | [
"BSD-3-Clause"
] | 10 | 2020-09-25T08:49:19.000Z | 2022-03-30T01:29:22.000Z | acme/HttpServer.py | ankraft/ACME-oneM2M-CSE | 03c23ea19b35dd6e0aec752d9631e2a76778c61c | [
"BSD-3-Clause"
] | 14 | 2020-05-22T08:00:32.000Z | 2020-12-24T23:38:05.000Z | acme/HttpServer.py | ankraft/ACME-oneM2M-CSE | 03c23ea19b35dd6e0aec752d9631e2a76778c61c | [
"BSD-3-Clause"
] | 5 | 2020-05-22T03:43:20.000Z | 2021-05-25T06:54:59.000Z | #
# HttpServer.py
#
# (c) 2020 by Andreas Kraft
# License: BSD 3-Clause License. See the LICENSE file for further details.
#
# Server to implement the http part of the oneM2M Mcx communication interface.
#
from __future__ import annotations
import logging, sys, traceback, urllib3
from copy import deepcopy
from typing ... | 39.43299 | 223 | 0.699695 | 2,931 | 22,950 | 5.451382 | 0.211873 | 0.006259 | 0.010702 | 0.012768 | 0.214107 | 0.1728 | 0.148955 | 0.106209 | 0.087433 | 0.04694 | 0 | 0.002804 | 0.160959 | 22,950 | 581 | 224 | 39.500861 | 0.826963 | 0.276122 | 0 | 0.103125 | 0 | 0.01875 | 0.139558 | 0.047435 | 0 | 0 | 0 | 0.001721 | 0 | 1 | 0.08125 | false | 0 | 0.059375 | 0.003125 | 0.265625 | 0.003125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47b6367947784f5f8c60ac4a630ae41b0271c546 | 2,855 | py | Python | tests.py | dave-shawley/sprockets.mixins.statsd | 98dcce37d275a3ab96ef618b4756d7c4618a550a | [
"BSD-3-Clause"
] | 1 | 2016-04-18T14:43:28.000Z | 2016-04-18T14:43:28.000Z | tests.py | dave-shawley/sprockets.mixins.statsd | 98dcce37d275a3ab96ef618b4756d7c4618a550a | [
"BSD-3-Clause"
] | 1 | 2015-03-19T20:09:31.000Z | 2015-03-19T20:56:13.000Z | tests.py | dave-shawley/sprockets.mixins.statsd | 98dcce37d275a3ab96ef618b4756d7c4618a550a | [
"BSD-3-Clause"
] | 1 | 2021-07-21T16:45:20.000Z | 2021-07-21T16:45:20.000Z | """
Tests for the sprockets.mixins.statsd package
"""
import mock
import socket
try:
import unittest2 as unittest
except ImportError:
import unittest
from tornado import httputil
from tornado import web
from sprockets.mixins import statsd as statsd
class StatsdRequestHandler(statsd.RequestMetricsMixin,
... | 34.817073 | 77 | 0.633275 | 314 | 2,855 | 5.512739 | 0.254777 | 0.063547 | 0.020797 | 0.034662 | 0.622761 | 0.622761 | 0.586944 | 0.54535 | 0.54535 | 0.441363 | 0 | 0.018243 | 0.270403 | 2,855 | 81 | 78 | 35.246914 | 0.81277 | 0.015762 | 0 | 0.4 | 0 | 0 | 0.114959 | 0.045698 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.1 | false | 0.033333 | 0.133333 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47bbc3f593c6dfe99cc6291d9534d485f7b0f42d | 3,462 | py | Python | nussl/transformers/transformer_deep_clustering.py | KingStorm/nussl | 78edfdaad16845fc705cefb336a7e6e5923fbcd4 | [
"MIT"
] | 1 | 2018-10-22T19:30:45.000Z | 2018-10-22T19:30:45.000Z | dataHelper/nussl/transformers/transformer_deep_clustering.py | AleXander-Tsui/Audio-Localization-and-Seperation | 17d40e72b406d62ca5cb695938b50c6412f9524a | [
"MIT"
] | null | null | null | dataHelper/nussl/transformers/transformer_deep_clustering.py | AleXander-Tsui/Audio-Localization-and-Seperation | 17d40e72b406d62ca5cb695938b50c6412f9524a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Deep Clustering modeller class
"""
from .. import torch_imported
if torch_imported:
import torch
import torch.nn as nn
import numpy as np
class TransformerDeepClustering(nn.Module):
"""
Transformer Class for deep clustering
"""
def __init__(s... | 33.941176 | 94 | 0.625361 | 405 | 3,462 | 5.17037 | 0.279012 | 0.043458 | 0.033429 | 0.022923 | 0.077841 | 0.032474 | 0 | 0 | 0 | 0 | 0 | 0.019329 | 0.267764 | 3,462 | 101 | 95 | 34.277228 | 0.806706 | 0.09792 | 0 | 0.035088 | 0 | 0 | 0.028504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.122807 | 0 | 0.245614 | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47be1f989acf928be71983840ea1023cdafbcb67 | 1,569 | py | Python | Gallery/views.py | munganyendesandrine/GalleryApp | cb17eca8b814f212c1b78925d957b40380830f9b | [
"Unlicense",
"MIT"
] | null | null | null | Gallery/views.py | munganyendesandrine/GalleryApp | cb17eca8b814f212c1b78925d957b40380830f9b | [
"Unlicense",
"MIT"
] | null | null | null | Gallery/views.py | munganyendesandrine/GalleryApp | cb17eca8b814f212c1b78925d957b40380830f9b | [
"Unlicense",
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from .models import Image,Category,Location
def gallery_today(request):
gallery = Image.objects.all()
return render(request, 'all-galleries/today-gallery.html', {"gallery": gallery})
def search_results(request):
if 'category' in... | 34.108696 | 105 | 0.662843 | 187 | 1,569 | 5.449198 | 0.262032 | 0.070658 | 0.111874 | 0.129539 | 0.463199 | 0.463199 | 0.363101 | 0.363101 | 0.351325 | 0.351325 | 0 | 0.002415 | 0.208413 | 1,569 | 46 | 106 | 34.108696 | 0.818035 | 0.185468 | 0 | 0.083333 | 0 | 0 | 0.250786 | 0.103774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47c5b5de088c43f83c5e3e066561ed05afd513fb | 1,666 | py | Python | select_language.py | zhangenter/tetris | 300c668d9732cd037bfc6f47c289bd5ee4a009b2 | [
"Apache-2.0"
] | 3 | 2019-05-08T14:49:10.000Z | 2021-01-20T13:22:45.000Z | select_language.py | zhangenter/tetris | 300c668d9732cd037bfc6f47c289bd5ee4a009b2 | [
"Apache-2.0"
] | null | null | null | select_language.py | zhangenter/tetris | 300c668d9732cd037bfc6f47c289bd5ee4a009b2 | [
"Apache-2.0"
] | 2 | 2020-01-28T14:37:06.000Z | 2020-04-03T13:37:14.000Z | # -*- coding=utf-8 -*-
import pygame
from bf_form import BFForm
from bf_button import BFButton
from globals import LanguageConfigParser, LanguageLib
class SelectLanguageForm(BFForm):
def __init__(self, screen, after_close):
super(SelectLanguageForm, self).__init__(screen, after_close)
def select_langu... | 35.446809 | 137 | 0.660264 | 218 | 1,666 | 4.743119 | 0.334862 | 0.046422 | 0.081238 | 0.065764 | 0.046422 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019017 | 0.242497 | 1,666 | 46 | 138 | 36.217391 | 0.800317 | 0.012005 | 0 | 0.057143 | 0 | 0 | 0.016453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.114286 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47c64ebe5bf8c8e7b695f55fd8ecece7fcce4585 | 3,084 | py | Python | SpellingCorrection/SpellingCorrection.py | kxu776/Natural-Langauge-Processing | 61c863e6cccf6d745b7bfc630a803dcec89214a1 | [
"MIT"
] | null | null | null | SpellingCorrection/SpellingCorrection.py | kxu776/Natural-Langauge-Processing | 61c863e6cccf6d745b7bfc630a803dcec89214a1 | [
"MIT"
] | null | null | null | SpellingCorrection/SpellingCorrection.py | kxu776/Natural-Langauge-Processing | 61c863e6cccf6d745b7bfc630a803dcec89214a1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 4 14:09:44 2018
@author: VeNoMzZxHD
"""
import tkinter
from tkinter.filedialog import askopenfilename
from collections import Counter
import re
import string
#Returns string of text file
def readFile():
'''
tkinter.Tk().withdraw()
inputfilename = askopenfil... | 28.293578 | 97 | 0.648508 | 354 | 3,084 | 5.644068 | 0.358757 | 0.015015 | 0.03003 | 0.032032 | 0.143143 | 0.143143 | 0.122623 | 0.122623 | 0.092593 | 0.061061 | 0 | 0.007259 | 0.240597 | 3,084 | 109 | 98 | 28.293578 | 0.845858 | 0.133593 | 0 | 0.146341 | 0 | 0 | 0.029145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134146 | false | 0 | 0.060976 | 0.012195 | 0.353659 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47c7ce2b3e6297aeb01c2a6dd339609f2dbc4c40 | 9,826 | py | Python | src/derivation/FactNode.py | KDahlgren/orik | 4e66107cf2dc2cd1a30ba4bfbe15c1ad1c176c0f | [
"MIT"
] | 2 | 2018-01-23T22:08:32.000Z | 2018-03-11T18:32:53.000Z | src/derivation/FactNode.py | KDahlgren/orik | 4e66107cf2dc2cd1a30ba4bfbe15c1ad1c176c0f | [
"MIT"
] | 4 | 2017-10-24T19:13:40.000Z | 2018-06-05T22:16:45.000Z | src/derivation/FactNode.py | KDahlgren/orik | 4e66107cf2dc2cd1a30ba4bfbe15c1ad1c176c0f | [
"MIT"
] | 2 | 2017-10-24T18:55:45.000Z | 2018-01-26T05:11:38.000Z | #!/usr/bin/env python
# **************************************** #
#############
# IMPORTS #
#############
# standard python packages
import ConfigParser, copy, inspect, logging, os, sys
from Node import Node
if not os.path.abspath( __file__ + "/../../../lib/iapyx/src" ) in sys.path :
sys.path.append( os.path.ab... | 32.006515 | 134 | 0.479849 | 935 | 9,826 | 4.873797 | 0.165775 | 0.042133 | 0.035111 | 0.050472 | 0.396313 | 0.317972 | 0.253456 | 0.189379 | 0.189379 | 0.174896 | 0 | 0.002934 | 0.340932 | 9,826 | 306 | 135 | 32.111111 | 0.700741 | 0.119886 | 0 | 0.329545 | 0 | 0 | 0.166808 | 0.034065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039773 | false | 0.005682 | 0.017045 | 0 | 0.153409 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47ca2154dad4d9f3a8ceb261cf0f46981b5b61af | 2,656 | py | Python | sector/models.py | uktrade/invest | 15b84c511839b46e81608fca9762d2df3f6df16c | [
"MIT"
] | 1 | 2019-01-18T03:50:46.000Z | 2019-01-18T03:50:46.000Z | sector/models.py | uktrade/invest | 15b84c511839b46e81608fca9762d2df3f6df16c | [
"MIT"
] | 50 | 2018-01-24T18:04:08.000Z | 2019-01-03T03:30:30.000Z | sector/models.py | uktrade/invest | 15b84c511839b46e81608fca9762d2df3f6df16c | [
"MIT"
] | 2 | 2018-02-12T15:20:52.000Z | 2019-01-18T03:51:52.000Z | from django.db import models
from wagtail.admin.edit_handlers import FieldPanel, StreamFieldPanel
from wagtail.core.blocks import StructBlock, CharBlock
from wagtail.core.fields import StreamField
from wagtail.core.models import Page
from wagtail.images.edit_handlers import ImageChooserPanel
from wagtailmarkdown.block... | 29.511111 | 73 | 0.657756 | 259 | 2,656 | 6.594595 | 0.362934 | 0.032201 | 0.026347 | 0.032787 | 0.31733 | 0.31733 | 0.270492 | 0.221311 | 0.221311 | 0.221311 | 0 | 0.003953 | 0.237952 | 2,656 | 89 | 74 | 29.842697 | 0.839921 | 0.065512 | 0 | 0.477612 | 0 | 0 | 0.099798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.134328 | 0 | 0.402985 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47ca87bbbe5378196163b9f006e09077555d7b34 | 985 | py | Python | output/models/nist_data/atomic/id/schema_instance/nistschema_sv_iv_atomic_id_enumeration_5_xsd/nistschema_sv_iv_atomic_id_enumeration_5.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/id/schema_instance/nistschema_sv_iv_atomic_id_enumeration_5_xsd/nistschema_sv_iv_atomic_id_enumeration_5.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/id/schema_instance/nistschema_sv_iv_atomic_id_enumeration_5_xsd/nistschema_sv_iv_atomic_id_enumeration_5.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from enum import Enum
from typing import Optional
__NAMESPACE__ = "NISTSchema-SV-IV-atomic-ID-enumeration-5-NS"
class NistschemaSvIvAtomicIdEnumeration5Type(Enum):
BA = "ba"
CA = "ca"
EFOR = "efor"
HREGISTRY_AS_ON_WORK_U = "hregistry.as.on-work.u"
ITS_INCL... | 22.906977 | 68 | 0.636548 | 104 | 985 | 5.923077 | 0.423077 | 0.077922 | 0.090909 | 0.12987 | 0.332792 | 0.274351 | 0.274351 | 0.219156 | 0.219156 | 0 | 0 | 0.009472 | 0.249746 | 985 | 42 | 69 | 23.452381 | 0.824087 | 0 | 0 | 0.30303 | 0 | 0 | 0.250761 | 0.193909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47cc63cf4b5393de155d0003d5754fcb3e06068b | 889 | py | Python | tests/test_http_requests.py | andreygrechin/umbr_api | e9efd734a7395d25a1bab87c861b2cfee61e6a05 | [
"MIT"
] | 4 | 2021-01-11T02:14:59.000Z | 2022-02-15T09:20:25.000Z | tests/test_http_requests.py | andreygrechin/umbr_api | e9efd734a7395d25a1bab87c861b2cfee61e6a05 | [
"MIT"
] | null | null | null | tests/test_http_requests.py | andreygrechin/umbr_api | e9efd734a7395d25a1bab87c861b2cfee61e6a05 | [
"MIT"
] | 2 | 2021-12-14T10:20:00.000Z | 2022-02-20T01:05:18.000Z | #!/usr/bin/env python3
# pylint: disable=no-self-use
"""Test unit."""
import unittest
class TestCase(unittest.TestCase):
"""Main class."""
def test_send_post(self):
"""Call incorrect send_post, get None.""" # import requests
from umbr_api._http_requests import send_post
response = ... | 25.4 | 70 | 0.651294 | 108 | 889 | 5.064815 | 0.305556 | 0.058501 | 0.060329 | 0.115174 | 0.435101 | 0.435101 | 0.435101 | 0.296161 | 0.296161 | 0.296161 | 0 | 0.001468 | 0.233971 | 889 | 34 | 71 | 26.147059 | 0.801762 | 0.257593 | 0 | 0.1875 | 0 | 0 | 0.01746 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.1875 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47cd0ed87b30c0eeeb6aca7161bf214f8970893c | 4,802 | py | Python | sharpenCommander/dlgFind.py | cjng96/sharpenCommander | 0d3a95dccc617481d9976789feffc115520243e6 | [
"Apache-2.0"
] | null | null | null | sharpenCommander/dlgFind.py | cjng96/sharpenCommander | 0d3a95dccc617481d9976789feffc115520243e6 | [
"Apache-2.0"
] | null | null | null | sharpenCommander/dlgFind.py | cjng96/sharpenCommander | 0d3a95dccc617481d9976789feffc115520243e6 | [
"Apache-2.0"
] | null | null | null |
import os
import urwid
from .globalBase import *
from .urwidHelper import *
from .tool import *
#import dc
from .myutil import *
class DlgFind(cDialog):
def __init__(self, onExit=None):
super().__init__()
self.onExit = onExit
self.widgetFileList = mListBox(urwid.SimpleFocusListWalker(btn... | 27.44 | 106 | 0.659933 | 582 | 4,802 | 5.398625 | 0.300687 | 0.114577 | 0.056015 | 0.014004 | 0.254933 | 0.156906 | 0.141311 | 0.079567 | 0.049013 | 0.049013 | 0 | 0.006734 | 0.19596 | 4,802 | 174 | 107 | 27.597701 | 0.807045 | 0.082882 | 0 | 0.201681 | 0 | 0.008403 | 0.060247 | 0 | 0 | 0 | 0 | 0.005747 | 0 | 1 | 0.058824 | false | 0 | 0.05042 | 0 | 0.168067 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47d18703506147df7e77ebf700589e58f57e4508 | 350 | py | Python | running_sum.py | erjan/coding_exercises | 53ba035be85f1e7a12b4d4dbf546863324740467 | [
"Apache-2.0"
] | null | null | null | running_sum.py | erjan/coding_exercises | 53ba035be85f1e7a12b4d4dbf546863324740467 | [
"Apache-2.0"
] | null | null | null | running_sum.py | erjan/coding_exercises | 53ba035be85f1e7a12b4d4dbf546863324740467 | [
"Apache-2.0"
] | null | null | null | '''
Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]).
Return the running sum of nums.
'''
class Solution:
def runningSum(self, nums: List[int]) -> List[int]:
res = list()
for i in range(len(nums)):
res.append(sum(nums[:(i+1)]))
... | 21.875 | 97 | 0.58 | 55 | 350 | 3.745455 | 0.563636 | 0.067961 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007843 | 0.271429 | 350 | 15 | 98 | 23.333333 | 0.788235 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
47d3c6d2f3f9ad6b0e3ffc64b6de5590845ebff4 | 30,949 | py | Python | MagiskPatcher.py | affggh/Magisk_patcher | 77b7a90c821d45e0b090ee1905dfbca7028e9ac2 | [
"Apache-2.0"
] | 19 | 2022-01-27T11:12:43.000Z | 2022-03-06T00:09:47.000Z | MagiskPatcher.py | affggh/Magisk_patcher | 77b7a90c821d45e0b090ee1905dfbca7028e9ac2 | [
"Apache-2.0"
] | null | null | null | MagiskPatcher.py | affggh/Magisk_patcher | 77b7a90c821d45e0b090ee1905dfbca7028e9ac2 | [
"Apache-2.0"
] | 6 | 2022-01-28T15:51:19.000Z | 2022-02-20T17:39:46.000Z | #!/usr/bin/env python3
# 脚本 by affggh
# Apcache 2.0
import os
import sys
import shutil
import zipfile
import subprocess
import platform
import requests
if os.name == 'nt':
import tkinter as tk
if os.name == 'posix':
from mttkinter import mtTkinter as tk
# While Load some need thread funcion on Linux it wi... | 40.509162 | 267 | 0.534751 | 3,671 | 30,949 | 4.478071 | 0.178698 | 0.016424 | 0.014721 | 0.021717 | 0.334753 | 0.287365 | 0.246609 | 0.212665 | 0.179451 | 0.15962 | 0 | 0.030167 | 0.30379 | 30,949 | 763 | 268 | 40.562254 | 0.732213 | 0.060034 | 0 | 0.205371 | 0 | 0.00158 | 0.127353 | 0.016451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061611 | false | 0 | 0.023697 | 0.00158 | 0.113744 | 0.00316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47d719fa6ddaa13236b1671d0f097880df05054a | 3,010 | py | Python | solvers/shortest_path.py | Psychofun/Snake-Gym | 59646ef2213e4cc2a68e238d010f5e9f25826951 | [
"MIT"
] | null | null | null | solvers/shortest_path.py | Psychofun/Snake-Gym | 59646ef2213e4cc2a68e238d010f5e9f25826951 | [
"MIT"
] | null | null | null | solvers/shortest_path.py | Psychofun/Snake-Gym | 59646ef2213e4cc2a68e238d010f5e9f25826951 | [
"MIT"
] | null | null | null | import sys
sys.path.append("..")
from gym_snake.envs.node import Node
from gym_snake.envs.snake_env import action_to_vector
from gym_snake.envs.snake_env import SnakeAction
from gym_snake.envs.snake_env import SnakeCellState
from gym_snake.envs.snake_env import rotate_action_clockwise
from gym_snake.envs.snake... | 38.589744 | 168 | 0.639535 | 337 | 3,010 | 5.379822 | 0.225519 | 0.112521 | 0.052951 | 0.061776 | 0.323773 | 0.323773 | 0.290678 | 0.199669 | 0.118036 | 0.071704 | 0 | 0.002356 | 0.295017 | 3,010 | 77 | 169 | 39.090909 | 0.852026 | 0.08804 | 0 | 0.039216 | 0 | 0 | 0.000751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.019608 | 0.176471 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47d7a401f53299346b73e5c7c5fe542392290c13 | 22,070 | py | Python | progressbot.py | tchapley/ProgressBot | 60837055999cbddcad637a514dc8af2e748374a8 | [
"MIT"
] | null | null | null | progressbot.py | tchapley/ProgressBot | 60837055999cbddcad637a514dc8af2e748374a8 | [
"MIT"
] | 2 | 2021-03-31T18:38:57.000Z | 2021-12-13T19:46:50.000Z | progressbot.py | tchapley/ProgressBot | 60837055999cbddcad637a514dc8af2e748374a8 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
import asyncio
import logging
import sys
import requests
import datetime
from bs4 import BeautifulSoup
from util import *
from wowapi import WowApi, WowApiException, WowApiConfigException
from killpoints import KillPoints
from math import ceil
base_wow_progress = "http:/... | 37.343486 | 161 | 0.631899 | 2,964 | 22,070 | 4.640014 | 0.180162 | 0.004363 | 0.019996 | 0.012216 | 0.50629 | 0.483458 | 0.44354 | 0.405657 | 0.375191 | 0.364939 | 0 | 0.064321 | 0.168056 | 22,070 | 590 | 162 | 37.40678 | 0.684712 | 0.006751 | 0 | 0.340381 | 0 | 0.038055 | 0.249634 | 0.014085 | 0.002114 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02537 | 0 | 0.044397 | 0.059197 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47d9292775bb73955a326acc7b317a3683aeeec2 | 10,974 | py | Python | python_poc/adapters/fingrid_api_adapter.py | pervcomp/Procem | 6cefbf6c81b51af948feb9510d39820f8e6f113e | [
"MIT"
] | 1 | 2019-01-09T14:38:44.000Z | 2019-01-09T14:38:44.000Z | python_poc/adapters/fingrid_api_adapter.py | pervcomp/Procem | 6cefbf6c81b51af948feb9510d39820f8e6f113e | [
"MIT"
] | 4 | 2021-03-09T00:03:21.000Z | 2022-02-12T05:33:21.000Z | python_poc/adapters/fingrid_api_adapter.py | pervcomp/Procem | 6cefbf6c81b51af948feb9510d39820f8e6f113e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Module for reading and parsing values from Fingrid APIs."""
# Copyright (c) TUT Tampere University of Technology 2015-2018.
# This software has been developed in Procem-project funded by Business Finland.
# This code is licensed under the MIT license.
# See the LICENSE.txt in the project roo... | 43.896 | 118 | 0.609714 | 1,323 | 10,974 | 4.745276 | 0.185941 | 0.022937 | 0.02676 | 0.032494 | 0.229213 | 0.162472 | 0.133801 | 0.124881 | 0.124881 | 0.115642 | 0 | 0.005949 | 0.295334 | 10,974 | 249 | 119 | 44.072289 | 0.805897 | 0.162202 | 0 | 0.207447 | 0 | 0 | 0.082052 | 0.002417 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047872 | false | 0.005319 | 0.053191 | 0 | 0.18617 | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47e1291a9d383474886f3b6cb416cfcb840ff9bb | 1,514 | py | Python | containers/ice_block.py | craigtmoore/freezer_escape_room | 813144641c079db9ab73c873e354ffc57200a3dd | [
"MIT"
] | null | null | null | containers/ice_block.py | craigtmoore/freezer_escape_room | 813144641c079db9ab73c873e354ffc57200a3dd | [
"MIT"
] | null | null | null | containers/ice_block.py | craigtmoore/freezer_escape_room | 813144641c079db9ab73c873e354ffc57200a3dd | [
"MIT"
] | null | null | null | from typing import Set, List
from inspectable import Inspectable
from interactable import Interactable
from items import Batteries, Hammer
from usable import Usable
class IceBlock(Inspectable, Interactable):
def __init__(self):
super().__init__()
self.name = 'ice block'
self.description ... | 36.926829 | 118 | 0.640687 | 218 | 1,514 | 4.385321 | 0.431193 | 0.020921 | 0.037657 | 0.029289 | 0.109833 | 0.075314 | 0.075314 | 0.075314 | 0.075314 | 0.075314 | 0 | 0 | 0.287979 | 1,514 | 40 | 119 | 37.85 | 0.886827 | 0 | 0 | 0.129032 | 0 | 0.032258 | 0.395641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.16129 | 0 | 0.354839 | 0.258065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47e169f6fbed0c98822c2408dc1e36d39f35b41d | 463 | py | Python | scripts/make_json_dataset.py | sethah/deeptennis | a689c5f1d6f5ff1d665aec99b8db6262d3442c3a | [
"MIT"
] | 27 | 2018-11-23T21:37:14.000Z | 2021-11-22T08:44:35.000Z | scripts/make_json_dataset.py | sethah/deeptennis | a689c5f1d6f5ff1d665aec99b8db6262d3442c3a | [
"MIT"
] | 6 | 2019-07-09T16:26:56.000Z | 2021-05-17T17:29:42.000Z | scripts/make_json_dataset.py | sethah/deeptennis | a689c5f1d6f5ff1d665aec99b8db6262d3442c3a | [
"MIT"
] | 4 | 2019-06-11T06:44:30.000Z | 2021-02-27T14:49:02.000Z | import argparse
from pathlib import Path
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--frames-path", type=str)
parser.add_argument("--output-path", type=str)
args = parser.parse_args()
frame_paths = [p for p in Path(args.frames_path).iterdir()]
with open(... | 33.071429 | 63 | 0.652268 | 66 | 463 | 4.333333 | 0.515152 | 0.104895 | 0.118881 | 0.125874 | 0.174825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185745 | 463 | 13 | 64 | 35.615385 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.12311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47e20a2e721763c69d92b54d367291736f3e69c7 | 26,979 | py | Python | app/document/routes.py | DCGM/pero_ocr_web | e901027712827278f9ace914f6ccba16d3ac280f | [
"BSD-2-Clause"
] | 2 | 2020-05-07T13:58:31.000Z | 2021-01-27T09:33:07.000Z | app/document/routes.py | DCGM/pero_ocr_web | e901027712827278f9ace914f6ccba16d3ac280f | [
"BSD-2-Clause"
] | 47 | 2019-09-17T19:20:07.000Z | 2022-03-20T12:33:28.000Z | app/document/routes.py | DCGM/pero_ocr_web | e901027712827278f9ace914f6ccba16d3ac280f | [
"BSD-2-Clause"
] | 1 | 2019-10-02T10:42:35.000Z | 2019-10-02T10:42:35.000Z | import _thread
import sqlalchemy
from app.document import bp
from flask_login import login_required, current_user
from flask import render_template, redirect, url_for, request, send_file, flash, jsonify
from flask import current_app
from app.document.general import create_document, check_and_remove_document, save_image... | 38.376956 | 156 | 0.725305 | 3,706 | 26,979 | 4.966811 | 0.076902 | 0.043462 | 0.033031 | 0.018254 | 0.733634 | 0.676536 | 0.607649 | 0.567447 | 0.528875 | 0.49617 | 0 | 0.004363 | 0.167427 | 26,979 | 702 | 157 | 38.431624 | 0.81511 | 0.001705 | 0 | 0.483146 | 0 | 0 | 0.195811 | 0.075198 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082397 | false | 0 | 0.039326 | 0.007491 | 0.284644 | 0.001873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47e38cc73a4ca6342b90794377e31733e0fe8cef | 4,898 | py | Python | src/superdatabase3000/packet.py | JeanMax/SuperDatabase3000 | 836395c9b6ea2a5d53f81c22bb126e299f3e1bfc | [
"MIT"
] | 1 | 2020-03-30T13:49:29.000Z | 2020-03-30T13:49:29.000Z | src/superdatabase3000/packet.py | JeanMax/SuperDatabase3000 | 836395c9b6ea2a5d53f81c22bb126e299f3e1bfc | [
"MIT"
] | 5 | 2020-03-30T14:32:48.000Z | 2020-03-31T12:01:02.000Z | src/superdatabase3000/packet.py | JeanMax/SuperDatabase3000 | 836395c9b6ea2a5d53f81c22bb126e299f3e1bfc | [
"MIT"
] | null | null | null | """
This module defines a packet structure
(composed of: canari, payload, payload_size, and eventually an extra payload).
You'll find a 'pack' functions allowing you to create a packet
from a payload (btyes object) you want to send, and an 'unpack' function
that can extract a payload from a packet (as a bytes object to... | 32.223684 | 79 | 0.636178 | 609 | 4,898 | 4.962233 | 0.231527 | 0.06552 | 0.041694 | 0.023825 | 0.246525 | 0.230311 | 0.191595 | 0.191595 | 0.191595 | 0.098279 | 0 | 0.009893 | 0.277664 | 4,898 | 151 | 80 | 32.437086 | 0.844262 | 0.454675 | 0 | 0.325301 | 0 | 0 | 0.064188 | 0 | 0 | 0 | 0.003914 | 0.006623 | 0 | 1 | 0.048193 | false | 0 | 0.036145 | 0 | 0.156627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47e43b3b4e3f0031df6f61702eae33c0a872be24 | 1,095 | py | Python | microcosm_flask/swagger/api.py | Sinon/microcosm-flask | c1404ebc94459c8156b04f5e04490a330117524c | [
"Apache-2.0"
] | 11 | 2017-01-30T21:53:20.000Z | 2020-05-29T22:39:19.000Z | microcosm_flask/swagger/api.py | Sinon/microcosm-flask | c1404ebc94459c8156b04f5e04490a330117524c | [
"Apache-2.0"
] | 139 | 2016-03-09T19:09:59.000Z | 2021-09-03T17:14:00.000Z | microcosm_flask/swagger/api.py | Sinon/microcosm-flask | c1404ebc94459c8156b04f5e04490a330117524c | [
"Apache-2.0"
] | 10 | 2016-12-19T22:39:42.000Z | 2021-03-09T19:23:15.000Z | """
API interfaces for swagger operations.
"""
from typing import (
Any,
Iterable,
Mapping,
Tuple,
)
from marshmallow import Schema
from marshmallow.fields import Field
from microcosm_flask.swagger.parameters import Parameters
from microcosm_flask.swagger.schemas import Schemas
def build_schema(sch... | 23.804348 | 89 | 0.717808 | 133 | 1,095 | 5.789474 | 0.300752 | 0.085714 | 0.042857 | 0.064935 | 0.337662 | 0.280519 | 0.2 | 0.2 | 0.2 | 0.2 | 0 | 0 | 0.185388 | 1,095 | 45 | 90 | 24.333333 | 0.863229 | 0.200913 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.263158 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47e4a20a59666f230f44fc593c648ca410af9651 | 1,286 | py | Python | converter.py | GuzTech/uart_to_hdmi | b6ea4efa85a06e59406ffc3b034028f00d5a7cbf | [
"MIT"
] | 1 | 2020-07-04T01:09:00.000Z | 2020-07-04T01:09:00.000Z | converter.py | GuzTech/uart_to_hdmi | b6ea4efa85a06e59406ffc3b034028f00d5a7cbf | [
"MIT"
] | null | null | null | converter.py | GuzTech/uart_to_hdmi | b6ea4efa85a06e59406ffc3b034028f00d5a7cbf | [
"MIT"
] | null | null | null | import sys
import struct
if(len(sys.argv) != 5):
print("Usage: python converter.py <num_pixels_x> <num_pixels_y> <input file> <output file>\n")
else:
num_pixels_x = int(sys.argv[1])
num_pixels_y = int(sys.argv[2])
print(num_pixels_x)
has_alpha_channel = False
infile = open(sys.argv[3], "rb")
... | 30.619048 | 98 | 0.573872 | 192 | 1,286 | 3.630208 | 0.364583 | 0.167862 | 0.10043 | 0.074605 | 0.289813 | 0.289813 | 0.261119 | 0.219512 | 0.180775 | 0.086083 | 0 | 0.028047 | 0.27916 | 1,286 | 41 | 99 | 31.365854 | 0.72384 | 0.024883 | 0 | 0 | 0 | 0.032258 | 0.141374 | 0 | 0 | 0 | 0.007189 | 0 | 0.032258 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47e4f4051c67291e2bfd6264123e2f3ba68f0903 | 319 | py | Python | project_handwritten-character-recognition-with-convolutional-neural-network-master/Codes/remove_old_image.py | akash519-gif/Handwritten-letter-detection. | f49240bc3dcea5eb8f53bade66ccb49bf8809be6 | [
"Apache-2.0"
] | null | null | null | project_handwritten-character-recognition-with-convolutional-neural-network-master/Codes/remove_old_image.py | akash519-gif/Handwritten-letter-detection. | f49240bc3dcea5eb8f53bade66ccb49bf8809be6 | [
"Apache-2.0"
] | null | null | null | project_handwritten-character-recognition-with-convolutional-neural-network-master/Codes/remove_old_image.py | akash519-gif/Handwritten-letter-detection. | f49240bc3dcea5eb8f53bade66ccb49bf8809be6 | [
"Apache-2.0"
] | null | null | null | # import require package
import os
def remove_content(directory):
for file in os.scandir(directory):
print(file.path)
os.remove(file.path)
print("Old images has been deleted")
upload_dir = './uploads'
remove_content(upload_dir)
images_dir = './static/images'
remove_content(images_dir)
| 18.764706 | 44 | 0.705329 | 43 | 319 | 5.069767 | 0.534884 | 0.178899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188088 | 319 | 16 | 45 | 19.9375 | 0.841699 | 0.068966 | 0 | 0 | 0 | 0 | 0.172881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47e633e7aabb9cbd31dd0cb29459787e531f57cc | 15,271 | py | Python | src/scaffoldfitter/fitterstepfit.py | zekh167/scaffoldfitter | 357a312948464399433f29f19cdac4d7fd6061ef | [
"Apache-2.0"
] | null | null | null | src/scaffoldfitter/fitterstepfit.py | zekh167/scaffoldfitter | 357a312948464399433f29f19cdac4d7fd6061ef | [
"Apache-2.0"
] | null | null | null | src/scaffoldfitter/fitterstepfit.py | zekh167/scaffoldfitter | 357a312948464399433f29f19cdac4d7fd6061ef | [
"Apache-2.0"
] | null | null | null | """
Fit step for gross alignment and scale.
"""
from opencmiss.utils.zinc.field import assignFieldParameters, createFieldsDisplacementGradients
from opencmiss.utils.zinc.general import ChangeManager
from opencmiss.zinc.field import Field, FieldFindMeshLocation
from opencmiss.zinc.optimisation import Optimisation
from ... | 49.26129 | 185 | 0.71017 | 1,137 | 15,271 | 9.41161 | 0.218118 | 0.021493 | 0.010466 | 0.015699 | 0.213158 | 0.152229 | 0.094571 | 0.084104 | 0.074572 | 0.045977 | 0 | 0.005962 | 0.220156 | 15,271 | 309 | 186 | 49.420712 | 0.892602 | 0.209482 | 0 | 0.181373 | 0 | 0 | 0.060217 | 0.008796 | 0 | 0 | 0 | 0 | 0.063725 | 1 | 0.117647 | false | 0 | 0.029412 | 0.044118 | 0.29902 | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47eb8f87adf534b765a9c50c9659d9424a7c2ade | 1,315 | py | Python | createDB.py | ansh-mehta/COVID-19-Vaccine-Slot-Notifier | b09d163ebee960089edbd8b894e3b956745504df | [
"Apache-2.0"
] | null | null | null | createDB.py | ansh-mehta/COVID-19-Vaccine-Slot-Notifier | b09d163ebee960089edbd8b894e3b956745504df | [
"Apache-2.0"
] | 1 | 2021-09-11T18:06:33.000Z | 2021-09-11T18:06:33.000Z | createDB.py | ansh-mehta/COVID-19-Vaccine-Slot-Notifier | b09d163ebee960089edbd8b894e3b956745504df | [
"Apache-2.0"
] | null | null | null | import requests
import json
from pymongo import MongoClient, collection
client = MongoClient("mongodb://localhost:27017")
database = client["temp"]
states_districts = database["states_districts"]
states_districts.remove({})
headers = {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.... | 35.540541 | 175 | 0.719392 | 181 | 1,315 | 5.005525 | 0.364641 | 0.0883 | 0.057395 | 0.05298 | 0.121413 | 0.121413 | 0.121413 | 0.121413 | 0.121413 | 0.121413 | 0 | 0.032947 | 0.146008 | 1,315 | 37 | 176 | 35.540541 | 0.77382 | 0 | 0 | 0.060606 | 0 | 0.090909 | 0.317629 | 0.018997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47ecac75bfa5b5456323216191e97427a888010b | 3,989 | py | Python | model_conv.py | isn350/e_hir_GAN | 53cc7530b1c4bb7ee5250d7fc057b71ceb5726b4 | [
"MIT"
] | null | null | null | model_conv.py | isn350/e_hir_GAN | 53cc7530b1c4bb7ee5250d7fc057b71ceb5726b4 | [
"MIT"
] | null | null | null | model_conv.py | isn350/e_hir_GAN | 53cc7530b1c4bb7ee5250d7fc057b71ceb5726b4 | [
"MIT"
] | null | null | null | import tensorflow as tf
def xavier_init(size):
in_dim = size[0]
xavier_stddev = 1. / tf.sqrt(in_dim / 2.)
# return tf.random_normal(shape=size, stddev=xavier_stddev)
return xavier_stddev
def conv(x, w, b, stride, name):
with tf.variable_scope('conv'):
tf.summary.histogram('we... | 40.292929 | 124 | 0.552018 | 536 | 3,989 | 3.972015 | 0.177239 | 0.035228 | 0.091592 | 0.052607 | 0.503992 | 0.488962 | 0.404415 | 0.384688 | 0.364021 | 0.31752 | 0 | 0.056611 | 0.300326 | 3,989 | 98 | 125 | 40.704082 | 0.706199 | 0.014289 | 0 | 0.169014 | 0 | 0 | 0.044624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0.014085 | 0 | 0.183099 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47ed721213e9d40abe12f67af339888e2d8b6e5e | 12,488 | py | Python | squad_utils.py | ashtonteng/squad_exp | 0cdcb3e41783026e805fedbe671a9a69a90d8a86 | [
"MIT"
] | 1 | 2019-01-08T16:41:54.000Z | 2019-01-08T16:41:54.000Z | squad_utils.py | ashtonteng/squad_exp | 0cdcb3e41783026e805fedbe671a9a69a90d8a86 | [
"MIT"
] | null | null | null | squad_utils.py | ashtonteng/squad_exp | 0cdcb3e41783026e805fedbe671a9a69a90d8a86 | [
"MIT"
] | null | null | null | import numpy as np
# import matplotlib.pyplot as plt
# import pylab
import re
import itertools
import json
import collections
import multiprocessing as mp
import random
import sys
#sys.path.append("./src/")
#from proto import io as protoio
#from utils.multiprocessor_cpu import MultiProcessorCPU
'''
some general pre/p... | 32.605744 | 119 | 0.596493 | 1,463 | 12,488 | 5.084074 | 0.255639 | 0.043022 | 0.044367 | 0.017478 | 0.1452 | 0.080936 | 0.070449 | 0.051089 | 0.045577 | 0.045577 | 0 | 0.01018 | 0.252723 | 12,488 | 382 | 120 | 32.691099 | 0.786862 | 0.170964 | 0 | 0.103734 | 0 | 0.004149 | 0.092795 | 0.025141 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087137 | false | 0 | 0.033195 | 0.004149 | 0.20332 | 0.004149 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47f00c4575c588196fb02578a13c75df9196c8ba | 476 | py | Python | super_nft/blueprints/datasprint/datasprint.py | Blockchain-Key/Super-NFT | 3983621127636bf9d4da740a5ac60451a3e5bbe8 | [
"MIT"
] | 5 | 2021-05-02T00:06:41.000Z | 2021-11-30T10:34:08.000Z | super_nft/blueprints/datasprint/datasprint.py | Blockchain-Key/Super-NFT | 3983621127636bf9d4da740a5ac60451a3e5bbe8 | [
"MIT"
] | 3 | 2021-05-06T09:31:49.000Z | 2021-05-11T05:14:32.000Z | super_nft/blueprints/datasprint/datasprint.py | Blockchain-Key/Super-NFT | 3983621127636bf9d4da740a5ac60451a3e5bbe8 | [
"MIT"
] | 1 | 2021-05-06T15:34:24.000Z | 2021-05-06T15:34:24.000Z | # -*- coding: utf-8 -*-
"""User views."""
from flask import Blueprint, render_template, jsonify
from flask_login import login_required
from super_nft.extensions import csrf_protect
datasprint_bp = Blueprint("datasprint", __name__, url_prefix="/datasprint", static_folder="../static")
@csrf_protect.exempt
@datasprint_b... | 28 | 102 | 0.682773 | 57 | 476 | 5.45614 | 0.701754 | 0.057878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017456 | 0.157563 | 476 | 16 | 103 | 29.75 | 0.758105 | 0.071429 | 0 | 0 | 0 | 0 | 0.144495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.416667 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47f0f24b25872b88a91afd63b72991904ea663bc | 658 | py | Python | python/AULAS/aula20.py | Robert-Marchinhaki/primeiros-passos-Python | 515c2c418bfb941bd9af14cf598eca7fe2985592 | [
"MIT"
] | null | null | null | python/AULAS/aula20.py | Robert-Marchinhaki/primeiros-passos-Python | 515c2c418bfb941bd9af14cf598eca7fe2985592 | [
"MIT"
] | null | null | null | python/AULAS/aula20.py | Robert-Marchinhaki/primeiros-passos-Python | 515c2c418bfb941bd9af14cf598eca7fe2985592 | [
"MIT"
] | null | null | null | def linhas(cor, txt):
if pintar in cores:
print(cores[pintar])
print(txt)
cores = {'vermelho': '\033[31m',
'azul': '\033[34m',
'amarelo': '\033[33m',
'branco': '\033[30m',
'roxo': '\033[35m',
'verde': '\033[32m',
'ciano': '\033[36m',
'limp... | 26.32 | 71 | 0.542553 | 88 | 658 | 4.056818 | 0.556818 | 0.058824 | 0.056022 | 0.084034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091667 | 0.270517 | 658 | 24 | 72 | 27.416667 | 0.652083 | 0 | 0 | 0.1 | 0 | 0 | 0.354642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.05 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47f182f38e59b731af6d6326b1c317ab14b2b7e5 | 992 | py | Python | FatherSon/HelloWorld2_source_code/Listing_20-2.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | 1 | 2019-01-04T05:47:50.000Z | 2019-01-04T05:47:50.000Z | FatherSon/HelloWorld2_source_code/Listing_20-2.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | null | null | null | FatherSon/HelloWorld2_source_code/Listing_20-2.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | null | null | null | # Listing_20-2.py
# Copyright Warren & Csrter Sande, 2013
# Released under MIT license http://www.opensource.org/licenses/mit-license.php
# Version $version ----------------------------
# Adding an event handler for the button
import sys
from PyQt4 import QtCore, QtGui, uic
form_class = uic.loadUiType("... | 31 | 90 | 0.654234 | 127 | 992 | 5 | 0.535433 | 0.088189 | 0.047244 | 0.056693 | 0.075591 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016861 | 0.222782 | 992 | 31 | 91 | 32 | 0.806744 | 0.356855 | 0 | 0 | 0 | 0 | 0.021776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47f231b8a668477769e2a9abd3723ae4eedc3e54 | 1,072 | py | Python | raspberry/serial_stub.py | idf/Robot-In-Maze | 2301021c39f36a01ff97af26c54d41fedbe1608c | [
"MIT"
] | 16 | 2015-04-04T15:26:01.000Z | 2019-10-15T16:13:03.000Z | raspberry/serial_stub.py | idf/Robot-In-Maze | 2301021c39f36a01ff97af26c54d41fedbe1608c | [
"MIT"
] | null | null | null | raspberry/serial_stub.py | idf/Robot-In-Maze | 2301021c39f36a01ff97af26c54d41fedbe1608c | [
"MIT"
] | 7 | 2015-10-12T21:23:12.000Z | 2021-10-13T02:41:25.000Z | from serial_comminication import *
from utils.decorators import Override
__author__ = 'Danyang'
class SerialAPIStub(SerialAPI):
@Override(SerialAPI)
def __init__(self):
super(SerialAPIStub, self).__init__(production=False)
@Override(SerialAPI)
def command_put(self, function, parameter):
... | 38.285714 | 118 | 0.602612 | 115 | 1,072 | 5.434783 | 0.452174 | 0.0816 | 0.096 | 0.1152 | 0.224 | 0.224 | 0.224 | 0.224 | 0.224 | 0.224 | 0 | 0.035152 | 0.23041 | 1,072 | 27 | 119 | 39.703704 | 0.722424 | 0.051306 | 0 | 0.263158 | 0 | 0 | 0.108871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47f2d05914db9e80d9759d21867bc5761abeee91 | 1,550 | py | Python | algorithms/counting_sort.py | ArziPL/Other | 1319ac85b19a5c49fb70e902e3e37f2e7a192d0b | [
"MIT"
] | null | null | null | algorithms/counting_sort.py | ArziPL/Other | 1319ac85b19a5c49fb70e902e3e37f2e7a192d0b | [
"MIT"
] | null | null | null | algorithms/counting_sort.py | ArziPL/Other | 1319ac85b19a5c49fb70e902e3e37f2e7a192d0b | [
"MIT"
] | null | null | null | # Best : O(n + k)
# Avg : O(n + k)
# Worst O(n + k)
# Space worst : O(k) - CAN GET VERY BIG BIG
# k - range of values in array
# Take every number in arr then add += 1 to index of that number in temporary arrays, then
# for every index in temporary arrays add to final_arr that amount of that index number of
# how bi... | 34.444444 | 119 | 0.642581 | 259 | 1,550 | 3.76834 | 0.393822 | 0.053279 | 0.009221 | 0.018443 | 0.036885 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059329 | 0.249677 | 1,550 | 44 | 120 | 35.227273 | 0.77988 | 0.52129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47f4980d53b9e0ce1e873da3c9bbca1b3052a8de | 5,881 | py | Python | scheduler/notebooks/figures/evaluation/utils.py | akshayka/gavel | 40a22a725f2e70478483e98c9b07c6fc588e0c40 | [
"MIT"
] | 67 | 2020-09-07T11:50:03.000Z | 2022-03-31T04:09:08.000Z | scheduler/notebooks/figures/evaluation/utils.py | akshayka/gavel | 40a22a725f2e70478483e98c9b07c6fc588e0c40 | [
"MIT"
] | 7 | 2020-09-27T01:41:59.000Z | 2022-03-25T05:16:43.000Z | scheduler/notebooks/figures/evaluation/utils.py | akshayka/gavel | 40a22a725f2e70478483e98c9b07c6fc588e0c40 | [
"MIT"
] | 12 | 2020-10-13T14:31:01.000Z | 2022-02-14T05:44:38.000Z | import os
import random
import re
import numpy as np
np.set_printoptions(precision=3, suppress=True)
import sys; sys.path.append("../../..")
from job_table import JobTable
def get_logfile_paths_helper(directory_name):
logfile_paths = []
for root, _, file_names in os.walk(directory_name):
if len(file... | 38.188312 | 100 | 0.550757 | 814 | 5,881 | 3.762899 | 0.163391 | 0.037545 | 0.058766 | 0.020568 | 0.582109 | 0.553379 | 0.492981 | 0.445315 | 0.445315 | 0.409729 | 0 | 0.045798 | 0.324265 | 5,881 | 153 | 101 | 38.437909 | 0.724962 | 0 | 0 | 0.463768 | 0 | 0 | 0.065465 | 0.025676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.043478 | 0 | 0.210145 | 0.007246 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47f4fb021dc13ce9ce0d5ff354639ce8927eaf9b | 883 | py | Python | scripts/practice/FB-reRun/ MoveZeroesToEnd.py | bhimeshchauhan/competitive_programming | e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5 | [
"MIT"
] | null | null | null | scripts/practice/FB-reRun/ MoveZeroesToEnd.py | bhimeshchauhan/competitive_programming | e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5 | [
"MIT"
] | 8 | 2020-09-05T16:04:31.000Z | 2022-02-27T09:57:51.000Z | scripts/practice/FB-reRun/ MoveZeroesToEnd.py | bhimeshchauhan/competitive_programming | e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5 | [
"MIT"
] | null | null | null | """
Move Zeroes - https://leetcode.com/problems/move-zeroes/
Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements.
Note that you must do this in-place without making a copy of the array.
Example 1:
Input: nums = [0,1,0,3,12]
Output: [1,3,12,0,0]
... | 20.534884 | 121 | 0.583239 | 133 | 883 | 3.87218 | 0.578947 | 0.038835 | 0.038835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050081 | 0.298981 | 883 | 42 | 122 | 21.02381 | 0.781906 | 0.621744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47f6c684577e0c1a7c425c6ef180e8ab456e667e | 1,503 | py | Python | django_stormpath/id_site.py | stormpath/stormpath-django | af60eb5da2115d94ac313613c5d4e6b9f3d16157 | [
"Apache-2.0"
] | 36 | 2015-01-13T00:21:07.000Z | 2017-11-07T11:45:25.000Z | django_stormpath/id_site.py | stormpath/stormpath-django | af60eb5da2115d94ac313613c5d4e6b9f3d16157 | [
"Apache-2.0"
] | 55 | 2015-01-07T09:53:50.000Z | 2017-02-07T00:31:20.000Z | django_stormpath/id_site.py | stormpath/stormpath-django | af60eb5da2115d94ac313613c5d4e6b9f3d16157 | [
"Apache-2.0"
] | 24 | 2015-01-06T16:17:33.000Z | 2017-04-21T14:00:16.000Z | from django.contrib.auth import login as django_login
from django.contrib.auth import logout as django_logout
from django.http import HttpResponseRedirect
from django.shortcuts import resolve_url
from django.conf import settings
from .backends import StormpathIdSiteBackend
ID_SITE_STATUS_AUTHENTICATED = 'AUTHENTICAT... | 28.358491 | 73 | 0.809714 | 185 | 1,503 | 6.151351 | 0.221622 | 0.084359 | 0.086116 | 0.073814 | 0.332162 | 0.140598 | 0.140598 | 0.140598 | 0.140598 | 0.140598 | 0 | 0 | 0.133067 | 1,503 | 52 | 74 | 28.903846 | 0.873369 | 0 | 0 | 0.114286 | 0 | 0 | 0.051231 | 0.031936 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.171429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47f782c40ce2bf55510e810deac00bf9b89ac029 | 445 | py | Python | dp/sequence/perfect-square.py | windowssocket/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T02:29:40.000Z | 2020-02-05T03:28:16.000Z | dp/sequence/perfect-square.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 1 | 2019-03-08T13:22:32.000Z | 2019-03-08T13:22:32.000Z | dp/sequence/perfect-square.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T11:50:24.000Z | 2018-11-27T12:31:01.000Z | # https://leetcode.com/problems/perfect-squares/description/
# dp alg, time complexity: O(n^2)
class Solution(object):
def numSquares(self, n):
"""
:type n: int
:rtype: int
"""
dp = [n for _ in range(n+1)]
dp[0] = 0
for i in range(1, n+1):
j = 1... | 22.25 | 60 | 0.438202 | 65 | 445 | 2.984615 | 0.507692 | 0.030928 | 0.030928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.404494 | 445 | 19 | 61 | 23.421053 | 0.69434 | 0.260674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47f8383750414c949b888bd3081dff4a804800b1 | 1,416 | py | Python | Projetos_Pessoais/projeto_sorteio/sorteio.py | thiagomath/Python | dd73154e347c75a65a74e047ba880cc1f7dc1f91 | [
"MIT"
] | null | null | null | Projetos_Pessoais/projeto_sorteio/sorteio.py | thiagomath/Python | dd73154e347c75a65a74e047ba880cc1f7dc1f91 | [
"MIT"
] | null | null | null | Projetos_Pessoais/projeto_sorteio/sorteio.py | thiagomath/Python | dd73154e347c75a65a74e047ba880cc1f7dc1f91 | [
"MIT"
] | null | null | null | # Programa para sorteio
from tkinter import *
'''import PySimpleGUI as sg'''
'''
#Layout
layout = [
[sg.Text('Nome:'), sg.Input()],
[sg.Button('OK')]
]
#Janela
janela = sg.Window('Janela teste', layout)
#Interação
eventos, valores = janela.Read()
#Mensagem
print(f'Olá {valores[0]}, obrigado por usar PySimple... | 24.413793 | 91 | 0.699859 | 200 | 1,416 | 4.885 | 0.485 | 0.039918 | 0.033777 | 0.042989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023908 | 0.143362 | 1,416 | 57 | 92 | 24.842105 | 0.781533 | 0.094633 | 0 | 0 | 0 | 0 | 0.186325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47fa30bd997d1a1670c7fee27600bd53764e519c | 481 | py | Python | flask_tutorial/flask_sqlite3/__init__.py | ftconan/python3 | eb63ba33960072f792ecce6db809866b38c402f8 | [
"MIT"
] | 1 | 2018-12-19T22:07:56.000Z | 2018-12-19T22:07:56.000Z | flask_tutorial/flask_sqlite3/__init__.py | ftconan/python3 | eb63ba33960072f792ecce6db809866b38c402f8 | [
"MIT"
] | 12 | 2020-03-14T05:32:26.000Z | 2022-03-12T00:08:49.000Z | flask_tutorial/flask_sqlite3/__init__.py | ftconan/python3 | eb63ba33960072f792ecce6db809866b38c402f8 | [
"MIT"
] | 1 | 2018-12-19T22:08:00.000Z | 2018-12-19T22:08:00.000Z | """
@author: magician
@file: __init__.py.py
@date: 2020/9/7
"""
from flask import Flask
from flask_tutorial.flask_sqlite3.flask_sqlite3 import SQLite3
app = Flask(__name__)
app.config.from_pyfile('the-config.cfg')
db = SQLite3(app)
@app.route('/')
def show_all():
"""
show_all
@return:
"""
# ... | 17.814815 | 62 | 0.636175 | 66 | 481 | 4.409091 | 0.515152 | 0.061856 | 0.103093 | 0.14433 | 0.268041 | 0.268041 | 0.268041 | 0.268041 | 0.268041 | 0 | 0 | 0.036458 | 0.201663 | 481 | 26 | 63 | 18.5 | 0.721354 | 0.276507 | 0 | 0 | 0 | 0 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47fd0f1fa3538b0a659731489a61f441085833ad | 516 | py | Python | str_to_ num.py | maiconloure/Learning_Python | 2999508909ace5f8ca0708cdea93b82abaaeafb2 | [
"MIT"
] | null | null | null | str_to_ num.py | maiconloure/Learning_Python | 2999508909ace5f8ca0708cdea93b82abaaeafb2 | [
"MIT"
] | null | null | null | str_to_ num.py | maiconloure/Learning_Python | 2999508909ace5f8ca0708cdea93b82abaaeafb2 | [
"MIT"
] | null | null | null | """Transformando um string de numeros, em uma lista
com conjunto de numeros separads por \n"""
matrix = "1 2 3 4\n4 5 6 5\n7 8 9 6\n8 7 6 7"
print(matrix)
matrix = matrix.split("\n")
print(matrix)
matrix2 = []
for n in range(len(matrix)):
matrix[n] = matrix[n].split()
matrix[n] = list(map(int, matrix[n])) # E... | 28.666667 | 85 | 0.672481 | 91 | 516 | 3.813187 | 0.549451 | 0.100865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052133 | 0.182171 | 516 | 18 | 86 | 28.666667 | 0.770142 | 0.341085 | 0 | 0.153846 | 0 | 0 | 0.108434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
47ff4464ecaa8b0b0480823b9cf4bf43b54abcec | 3,520 | py | Python | pdf_poc/search.py | cr0hn/TestingBench | 37975343cf9ccb019e8dc42404b5b321285b04b3 | [
"BSD-3-Clause"
] | 5 | 2018-05-10T19:50:29.000Z | 2018-05-10T20:07:08.000Z | pdf_poc/search.py | cr0hn/TestingBench | 37975343cf9ccb019e8dc42404b5b321285b04b3 | [
"BSD-3-Clause"
] | null | null | null | pdf_poc/search.py | cr0hn/TestingBench | 37975343cf9ccb019e8dc42404b5b321285b04b3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from collections import defaultdict
from PyPDF2 import PdfFileReader
from PyPDF2.pdf import PageObject, ContentStream, TextStringObject, u_, i, b_
def is_continuation(content, item):
if content.operations[item - 1][1] == b_("Tm"):
# Search previous "Tm"
for bef in range(-2, -15, -1):
... | 23.311258 | 77 | 0.658523 | 501 | 3,520 | 4.447106 | 0.283433 | 0.076302 | 0.084829 | 0.041293 | 0.307899 | 0.245512 | 0.186266 | 0.156643 | 0.156643 | 0.123429 | 0 | 0.02012 | 0.19517 | 3,520 | 151 | 78 | 23.311258 | 0.766325 | 0.186932 | 0 | 0.340909 | 0 | 0 | 0.042209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.034091 | 0 | 0.193182 | 0.011364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a0316a49bbe3e0c8ccbf65e47f3d0ad6d7d1eaf | 6,299 | py | Python | src/folio_migration_tools/folder_structure.py | chadmcinnis/folio_migration_tools | 39ee044a713a34c323324a956e3e8b54ee05c194 | [
"MIT"
] | 1 | 2022-03-30T07:48:33.000Z | 2022-03-30T07:48:33.000Z | src/folio_migration_tools/folder_structure.py | chadmcinnis/folio_migration_tools | 39ee044a713a34c323324a956e3e8b54ee05c194 | [
"MIT"
] | 76 | 2022-02-04T16:36:49.000Z | 2022-03-31T11:20:29.000Z | src/folio_migration_tools/folder_structure.py | chadmcinnis/folio_migration_tools | 39ee044a713a34c323324a956e3e8b54ee05c194 | [
"MIT"
] | 1 | 2022-02-02T17:19:05.000Z | 2022-02-02T17:19:05.000Z | import logging
import sys
from pathlib import Path
import time
from folio_uuid.folio_namespaces import FOLIONamespaces
class FolderStructure:
def __init__(
self,
base_path: Path,
object_type: FOLIONamespaces,
migration_task_name: str,
iteration_identifier: str,
add... | 42.275168 | 98 | 0.680743 | 814 | 6,299 | 4.932432 | 0.170762 | 0.054795 | 0.038356 | 0.044832 | 0.423412 | 0.290162 | 0.196015 | 0.095143 | 0.054795 | 0.015193 | 0 | 0.000409 | 0.223845 | 6,299 | 148 | 99 | 42.560811 | 0.820822 | 0.002064 | 0 | 0.04918 | 0 | 0 | 0.223584 | 0.104233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040984 | false | 0 | 0.040984 | 0 | 0.090164 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a03f4a30283fc5811ab209f5fab981571d780d6 | 6,064 | py | Python | ftrl_noise.py | google-research/DP-FTRL | 513500a8e31e412972a7d457e9c66756e4a48348 | [
"Apache-2.0"
] | 8 | 2021-04-09T18:00:18.000Z | 2022-03-11T01:13:13.000Z | ftrl_noise.py | google-research/DP-FTRL | 513500a8e31e412972a7d457e9c66756e4a48348 | [
"Apache-2.0"
] | 1 | 2021-08-18T04:59:42.000Z | 2021-12-08T00:24:24.000Z | ftrl_noise.py | google-research/DP-FTRL | 513500a8e31e412972a7d457e9c66756e4a48348 | [
"Apache-2.0"
] | 3 | 2021-11-05T15:42:31.000Z | 2022-03-03T07:38:46.000Z | # Copyright 2021 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | 32.956522 | 121 | 0.59812 | 845 | 6,064 | 4.184615 | 0.224852 | 0.029412 | 0.027998 | 0.035633 | 0.464649 | 0.444853 | 0.429581 | 0.429581 | 0.429581 | 0.369344 | 0 | 0.013596 | 0.296504 | 6,064 | 184 | 122 | 32.956522 | 0.815284 | 0.297823 | 0 | 0.411765 | 0 | 0 | 0.022614 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 1 | 0.107843 | false | 0 | 0.029412 | 0.009804 | 0.22549 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a04e9a41ace038d4a501f35036632f201b9f71d | 2,782 | py | Python | ladder/tests/test_models.py | jzahedieh/django-tennis-ladder | 03a9fc9ec6d0830ac1d6648428eca11755eabb00 | [
"MIT"
] | 13 | 2015-04-30T21:07:20.000Z | 2021-01-08T13:52:14.000Z | ladder/tests/test_models.py | jzahedieh/django-tennis-ladder | 03a9fc9ec6d0830ac1d6648428eca11755eabb00 | [
"MIT"
] | 13 | 2015-04-05T22:48:14.000Z | 2021-12-12T17:29:16.000Z | ladder/tests/test_models.py | jzahedieh/django-tennis-ladder | 03a9fc9ec6d0830ac1d6648428eca11755eabb00 | [
"MIT"
] | 5 | 2016-10-12T16:24:09.000Z | 2019-11-26T10:16:44.000Z | from django.test import TestCase
from ladder.models import Player, Result, League, Season
from django.db.models import Avg
class PlayerModelTest(TestCase):
def test_player_stats(self):
"""
Tests a player stats is calculated correctly.
"""
# fresh player test
player = Player... | 36.605263 | 107 | 0.638749 | 321 | 2,782 | 5.35514 | 0.233645 | 0.08726 | 0.104712 | 0.046539 | 0.093077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016206 | 0.245866 | 2,782 | 76 | 108 | 36.605263 | 0.803146 | 0.13156 | 0 | 0 | 0 | 0 | 0.074307 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 1 | 0.046512 | false | 0 | 0.069767 | 0 | 0.162791 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a06d9877e200d7e5cdcb16fe42f60b4884f0200 | 6,779 | py | Python | src/authub/idp/google.py | fantix/authub | 1f8a30fe32c579e556d2b962f258e0f99527a006 | [
"BSD-3-Clause"
] | null | null | null | src/authub/idp/google.py | fantix/authub | 1f8a30fe32c579e556d2b962f258e0f99527a006 | [
"BSD-3-Clause"
] | null | null | null | src/authub/idp/google.py | fantix/authub | 1f8a30fe32c579e556d2b962f258e0f99527a006 | [
"BSD-3-Clause"
] | null | null | null | """Google OpenID Connect identity provider."""
from uuid import UUID
from fastapi import Depends, status, Request
from pydantic import BaseModel
from .base import IdPRouter, oauth
from ..http import get_edgedb_pool
from ..models import IdPClient, Identity as BaseIdentity, Href, User
from ..orm import ExtendedComputa... | 27.445344 | 95 | 0.621478 | 796 | 6,779 | 5.081658 | 0.198492 | 0.069221 | 0.051669 | 0.0267 | 0.374536 | 0.317676 | 0.218541 | 0.211619 | 0.184178 | 0.164895 | 0 | 0.008005 | 0.262871 | 6,779 | 246 | 96 | 27.556911 | 0.801481 | 0.038649 | 0 | 0.25 | 0 | 0 | 0.140287 | 0.027562 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040816 | 0 | 0.30102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a0859c884c636f6f47e39ee23feff85000d7d1d | 656 | py | Python | 412.fizz-buzz.py | SprintGhost/LeetCode | cdf1a86c83f2daedf674a871c4161da7e8fad17c | [
"Unlicense"
] | 1 | 2019-03-26T13:49:14.000Z | 2019-03-26T13:49:14.000Z | 412.fizz-buzz.py | SprintGhost/LeetCode | cdf1a86c83f2daedf674a871c4161da7e8fad17c | [
"Unlicense"
] | 5 | 2020-01-04T15:13:06.000Z | 2020-08-31T14:20:23.000Z | 412.fizz-buzz.py | SprintGhost/LeetCode | cdf1a86c83f2daedf674a871c4161da7e8fad17c | [
"Unlicense"
] | null | null | null | #
# @lc app=leetcode.cn id=412 lang=python3
#
# [412] Fizz Buzz
#
# Accepted
# 8/8 cases passed (48 ms)
# Your runtime beats 76.37 % of python3 submissions
# Your memory usage beats 25 % of python3 submissions (14.5 MB)
# @lc code=start
class Solution:
def fizzBuzz(self, n: int):
result = list()
f... | 22.62069 | 63 | 0.532012 | 87 | 656 | 4.011494 | 0.632184 | 0.137536 | 0.111748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0726 | 0.349085 | 656 | 28 | 64 | 23.428571 | 0.744731 | 0.349085 | 0 | 0 | 0 | 0 | 0.038647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a08f540ce3f12537d5b6d4be1caf8051f4c1c27 | 5,875 | py | Python | selector/from_model.py | uberkinder/Robusta-AutoML | 9faee4c17ad9f37b09760f9fffea715cdbf2d1fb | [
"MIT"
] | 2 | 2019-04-26T19:40:31.000Z | 2019-10-12T15:18:29.000Z | selector/from_model.py | uberkinder/Robusta-AutoML | 9faee4c17ad9f37b09760f9fffea715cdbf2d1fb | [
"MIT"
] | null | null | null | selector/from_model.py | uberkinder/Robusta-AutoML | 9faee4c17ad9f37b09760f9fffea715cdbf2d1fb | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn.model_selection import check_cv
from sklearn.exceptions import NotFittedError
from sklearn.base import clone, is_classifier
from robusta.importance import get_importance
from robusta.crossval import crossval
from .base import _Selector
# Original: sklearn.feature_... | 30.440415 | 79 | 0.637787 | 696 | 5,875 | 5.258621 | 0.280172 | 0.069126 | 0.018579 | 0.009836 | 0.072131 | 0.036612 | 0 | 0 | 0 | 0 | 0 | 0.001656 | 0.280681 | 5,875 | 192 | 80 | 30.598958 | 0.864411 | 0.389617 | 0 | 0.109756 | 0 | 0 | 0.043927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.219512 | 0 | 0.365854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a0a7b6a486f4199dd2e8181f3e83788c1d07d18 | 1,875 | py | Python | trainer.py | jinxixiang/PC-TMB | c6f2fc62629c7f026865774cdfb9d826464397ea | [
"MIT"
] | null | null | null | trainer.py | jinxixiang/PC-TMB | c6f2fc62629c7f026865774cdfb9d826464397ea | [
"MIT"
] | null | null | null | trainer.py | jinxixiang/PC-TMB | c6f2fc62629c7f026865774cdfb9d826464397ea | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch_optimizer as optim
import pandas as pd
# customized libs
import criterions
import models
import datasets
def get_model(conf):
net = getattr(models, conf.Model.base)
return net(**conf.Model.params)
def get_loss(conf):
conf_loss = conf.Loss.base_loss
as... | 29.296875 | 99 | 0.670933 | 255 | 1,875 | 4.72549 | 0.227451 | 0.079668 | 0.059751 | 0.034855 | 0.254772 | 0.204979 | 0.150207 | 0.150207 | 0.150207 | 0.090456 | 0 | 0.000687 | 0.224 | 1,875 | 64 | 100 | 29.296875 | 0.827491 | 0.008 | 0 | 0.081633 | 0 | 0 | 0.021517 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.081633 | false | 0 | 0.142857 | 0 | 0.306122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a0b750755a4f2eb69f71eb1f7890678edaaee12 | 1,733 | py | Python | falmer/search/queries.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 2 | 2017-04-27T19:35:59.000Z | 2017-06-13T16:19:33.000Z | falmer/search/queries.py | sussexstudent/falmer | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 975 | 2017-04-13T11:31:07.000Z | 2022-02-10T07:46:18.000Z | falmer/search/queries.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 3 | 2018-05-09T06:42:25.000Z | 2020-12-10T18:29:30.000Z | import graphene
from fuzzywuzzy import process
from falmer.search.types import SearchQuery
from falmer.search.utils import get_falmer_results_for_term, get_msl_results_for_term, \
SearchTermResponseData
def get_item_id(item):
model = item.__class__.__name__ if hasattr(item, '__class__') else 'MSL'
if mod... | 28.883333 | 88 | 0.623774 | 201 | 1,733 | 5.079602 | 0.298507 | 0.114594 | 0.054848 | 0.037218 | 0.084231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002433 | 0.288517 | 1,733 | 59 | 89 | 29.372881 | 0.825629 | 0 | 0 | 0 | 0 | 0 | 0.028275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.090909 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a0ef79b4f00de681e34f8ae67dfe78a084e7151 | 700 | py | Python | SYMBOLS/heart.py | charansaim1819/Python_Patterns | 02e636855003346ec84c3d69f2be174dc9e9e3cb | [
"MIT"
] | null | null | null | SYMBOLS/heart.py | charansaim1819/Python_Patterns | 02e636855003346ec84c3d69f2be174dc9e9e3cb | [
"MIT"
] | null | null | null | SYMBOLS/heart.py | charansaim1819/Python_Patterns | 02e636855003346ec84c3d69f2be174dc9e9e3cb | [
"MIT"
] | null | null | null | #Shape of heart:
def for_heart():
"""printing shape of'heart' using for loop"""
for row in range(6):
for col in range(7):
if row-col==2 or row+col==8 or col%3!=0 and row==0 or col%3==0 and row==1:
print("*",end=" ")
else:
print(" ",end=" "... | 24.137931 | 87 | 0.4 | 103 | 700 | 2.699029 | 0.271845 | 0.028777 | 0.071942 | 0.143885 | 0.52518 | 0.52518 | 0 | 0 | 0 | 0 | 0 | 0.060914 | 0.437143 | 700 | 28 | 88 | 25 | 0.64467 | 0.141429 | 0 | 0.4 | 0 | 0 | 0.014235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a14a2d004a0836d3daffc7ee2ad09d95986fb4d | 2,190 | py | Python | runtests.py | ojii/django-statictemplate | 73a541b19ff39e92b02de5d2ee74e4df7d486d81 | [
"BSD-3-Clause"
] | 4 | 2015-09-28T10:06:45.000Z | 2019-09-20T05:53:03.000Z | runtests.py | ojii/django-statictemplate | 73a541b19ff39e92b02de5d2ee74e4df7d486d81 | [
"BSD-3-Clause"
] | 8 | 2015-06-15T13:06:43.000Z | 2018-12-23T13:37:20.000Z | runtests.py | ojii/django-statictemplate | 73a541b19ff39e92b02de5d2ee74e4df7d486d81 | [
"BSD-3-Clause"
] | 2 | 2015-09-23T05:07:00.000Z | 2015-10-20T15:43:19.000Z | # !/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
urlpatterns = [
]
DEFAULT_SETTINGS = dict(
INSTALLED_APPS=[
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'statictemplate',
],
DATABASES={
'default': {
'ENGINE': '... | 28.815789 | 70 | 0.622374 | 192 | 2,190 | 6.958333 | 0.5 | 0.114521 | 0.094311 | 0.139222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004893 | 0.253425 | 2,190 | 75 | 71 | 29.2 | 0.812232 | 0.044749 | 0 | 0.048387 | 0 | 0 | 0.447797 | 0.364943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.064516 | 0 | 0.080645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a1583710b1d1ad4cc13f28020664d7f22387e1e | 585 | py | Python | Courses/YandexAlgo/1/petya_the_inventor.py | searayeah/sublime-snippets | deff53a06948691cd5e5d7dcfa85515ddd8fab0b | [
"MIT"
] | null | null | null | Courses/YandexAlgo/1/petya_the_inventor.py | searayeah/sublime-snippets | deff53a06948691cd5e5d7dcfa85515ddd8fab0b | [
"MIT"
] | null | null | null | Courses/YandexAlgo/1/petya_the_inventor.py | searayeah/sublime-snippets | deff53a06948691cd5e5d7dcfa85515ddd8fab0b | [
"MIT"
] | null | null | null | x = input()
z = input()
splitter = [x[i:] for i in range(len(x))]
found_splitter = False
next_z = ""
for i in range(1, len(x) + 1):
if z[:i] in splitter:
found_splitter = True
next_z = z[i:]
if next_z[: len(x)] == x:
break
if i == len(z):
break
if next_z == "":
... | 19.5 | 49 | 0.471795 | 87 | 585 | 3.034483 | 0.252874 | 0.151515 | 0.079545 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011268 | 0.393162 | 585 | 29 | 50 | 20.172414 | 0.732394 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a1837e6b67fec245ab3af4f52d7d449ca21cff5 | 4,013 | py | Python | nvtabular/ds_writer.py | benfred/NVTabular | 5ab6d557868ac01eda26e9725a1a6e5bf7eda007 | [
"Apache-2.0"
] | null | null | null | nvtabular/ds_writer.py | benfred/NVTabular | 5ab6d557868ac01eda26e9725a1a6e5bf7eda007 | [
"Apache-2.0"
] | null | null | null | nvtabular/ds_writer.py | benfred/NVTabular | 5ab6d557868ac01eda26e9725a1a6e5bf7eda007 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2020, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 32.104 | 82 | 0.595315 | 526 | 4,013 | 4.382129 | 0.315589 | 0.039046 | 0.032538 | 0.024729 | 0.167896 | 0.118872 | 0.093709 | 0.093709 | 0.060738 | 0.060738 | 0 | 0.009747 | 0.309743 | 4,013 | 124 | 83 | 32.362903 | 0.822383 | 0.179666 | 0 | 0.159091 | 0 | 0 | 0.014373 | 0.006422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.238636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a18608a6d3310b926afa6ca71ff25504d52035f | 481 | py | Python | example/my_hook.py | Globidev/github-docker-hook | 716de2f79ca30221edd2b70f3f7c85e5d033bae9 | [
"MIT"
] | 2 | 2015-09-24T07:38:07.000Z | 2015-11-05T18:33:43.000Z | example/my_hook.py | Globidev/github-docker-hook | 716de2f79ca30221edd2b70f3f7c85e5d033bae9 | [
"MIT"
] | 2 | 2015-11-04T17:34:14.000Z | 2015-11-09T02:05:31.000Z | example/my_hook.py | Globidev/github-docker-hook | 716de2f79ca30221edd2b70f3f7c85e5d033bae9 | [
"MIT"
] | null | null | null | ROUTE = '/push'
PORT = 4242
IMAGE_NAME = 'globidocker/github-hook'
import docker
cli = docker.Client()
from lib.git import clone_tmp
def on_push(data, logger):
url = data['repository']['html_url']
logger.info('Cloning repository: "{}"...'.format(url))
with clone_tmp(url) as repo:
logger.info(... | 19.24 | 58 | 0.634096 | 63 | 481 | 4.730159 | 0.571429 | 0.134228 | 0.100671 | 0.127517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010499 | 0.2079 | 481 | 24 | 59 | 20.041667 | 0.771654 | 0 | 0 | 0 | 0 | 0 | 0.22869 | 0.047817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a1861ac2df97b1bcfbdb3654e5d9c31f32e9e49 | 12,403 | py | Python | scripts/TestSuite/run_tests.py | ghorwin/MasterSim | 281b71e228435ca8fa02319bf2ce86b66b8b2b45 | [
"BSD-3-Clause"
] | 5 | 2021-11-17T07:12:54.000Z | 2022-03-16T15:06:39.000Z | scripts/TestSuite/run_tests.py | ghorwin/MasterSim | 281b71e228435ca8fa02319bf2ce86b66b8b2b45 | [
"BSD-3-Clause"
] | 25 | 2021-09-09T07:39:13.000Z | 2022-01-23T13:00:19.000Z | scripts/TestSuite/run_tests.py | ghorwin/MasterSim | 281b71e228435ca8fa02319bf2ce86b66b8b2b45 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Solver test suite runner script, used for
# * regression tests (default)
# * test-init runs (with --test-init option)
# * performance evaluation (with --performance option)
#
# 1. Regression tests (the default)
# - runs set of projects and compares physical results and solver stats
# - meant t... | 33.252011 | 120 | 0.689511 | 1,582 | 12,403 | 5.365992 | 0.246523 | 0.01555 | 0.014018 | 0.016492 | 0.284486 | 0.233007 | 0.215809 | 0.208976 | 0.208976 | 0.198139 | 0 | 0.007303 | 0.194066 | 12,403 | 372 | 121 | 33.341398 | 0.841937 | 0.299605 | 0 | 0.410138 | 0 | 0 | 0.231685 | 0.00245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013825 | false | 0 | 0.0553 | 0 | 0.101382 | 0.165899 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a1b2360ed8259c0fd8d46c53ed3e0ed659879cf | 4,815 | py | Python | sigr/Anechoic.py | JerameyATyler/sigR | 25c895648c5f90f57baa95f2cdd097cd33259a07 | [
"MIT"
] | null | null | null | sigr/Anechoic.py | JerameyATyler/sigR | 25c895648c5f90f57baa95f2cdd097cd33259a07 | [
"MIT"
] | null | null | null | sigr/Anechoic.py | JerameyATyler/sigR | 25c895648c5f90f57baa95f2cdd097cd33259a07 | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset
class Anechoic(Dataset):
def __init__(self, root, ttv, download=False, transform=None, target_transform=None, columns=None,
output_path=None):
from pathlib import Path
import os
ttvs = ['train', 'test', 'validate']
assert ttv ... | 37.038462 | 119 | 0.627414 | 584 | 4,815 | 5 | 0.195205 | 0.061644 | 0.048973 | 0.030822 | 0.353082 | 0.240753 | 0.17774 | 0.17774 | 0.17774 | 0.139384 | 0 | 0.000851 | 0.267705 | 4,815 | 129 | 120 | 37.325581 | 0.827283 | 0 | 0 | 0.138614 | 0 | 0.009901 | 0.142887 | 0.05026 | 0 | 0 | 0 | 0 | 0.059406 | 1 | 0.069307 | false | 0 | 0.188119 | 0.009901 | 0.326733 | 0.039604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a1b3e2dbb66fc996ec081ab5ef13e302246dd49 | 1,410 | py | Python | scripts/update_covid_tracking_data.py | TomGoBravo/covid-data-public | 76cdf384f4e6b5088f0a8105a4fabc37c899015c | [
"MIT"
] | null | null | null | scripts/update_covid_tracking_data.py | TomGoBravo/covid-data-public | 76cdf384f4e6b5088f0a8105a4fabc37c899015c | [
"MIT"
] | null | null | null | scripts/update_covid_tracking_data.py | TomGoBravo/covid-data-public | 76cdf384f4e6b5088f0a8105a4fabc37c899015c | [
"MIT"
] | null | null | null | import logging
import datetime
import pathlib
import pytz
import requests
import pandas as pd
DATA_ROOT = pathlib.Path(__file__).parent.parent / "data"
_logger = logging.getLogger(__name__)
class CovidTrackingDataUpdater(object):
"""Updates the covid tracking data."""
HISTORICAL_STATE_DATA_URL = "http://covi... | 30 | 75 | 0.685816 | 179 | 1,410 | 5.156425 | 0.513966 | 0.098592 | 0.055255 | 0.047671 | 0.099675 | 0.099675 | 0.099675 | 0.099675 | 0.099675 | 0 | 0 | 0 | 0.205674 | 1,410 | 46 | 76 | 30.652174 | 0.824107 | 0.085816 | 0 | 0.060606 | 0 | 0 | 0.150546 | 0.019501 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.181818 | 0.060606 | 0.484848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a21fd4ed5ae1c86fb6e590a1edd2f37df8e132c | 1,220 | py | Python | CustomerProfiles/delete-customer-profile.py | adavidw/sample-code-python | e02f8856c11439cebd67d98fb43431cd4b95316e | [
"MIT"
] | 36 | 2015-11-18T22:35:39.000Z | 2022-03-21T10:13:23.000Z | CustomerProfiles/delete-customer-profile.py | adavidw/sample-code-python | e02f8856c11439cebd67d98fb43431cd4b95316e | [
"MIT"
] | 23 | 2016-02-02T06:09:16.000Z | 2020-03-06T22:54:55.000Z | CustomerProfiles/delete-customer-profile.py | adavidw/sample-code-python | e02f8856c11439cebd67d98fb43431cd4b95316e | [
"MIT"
] | 82 | 2015-11-22T11:46:33.000Z | 2022-03-18T02:46:48.000Z | import os, sys
import imp
from authorizenet import apicontractsv1
from authorizenet.apicontrollers import *
constants = imp.load_source('modulename', 'constants.py')
def delete_customer_profile(customerProfileId):
merchantAuth = apicontractsv1.merchantAuthenticationType()
merchantAuth.name = constants.apiLogi... | 38.125 | 120 | 0.788525 | 108 | 1,220 | 8.824074 | 0.481481 | 0.078699 | 0.066107 | 0.044071 | 0.125918 | 0.125918 | 0.125918 | 0 | 0 | 0 | 0 | 0.004717 | 0.131148 | 1,220 | 31 | 121 | 39.354839 | 0.89434 | 0 | 0 | 0 | 0 | 0 | 0.119672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.26087 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a25b6f7b3f250cb0ca3c95cee4acba5e53203f1 | 3,659 | py | Python | python/xskipper/indexbuilder.py | guykhazma/xskipper | 058712e744e912bd5b22bc337b9d9ff2fc6b1036 | [
"Apache-2.0"
] | 31 | 2021-01-27T15:03:18.000Z | 2021-12-13T11:09:58.000Z | python/xskipper/indexbuilder.py | guykhazma/xskipper | 058712e744e912bd5b22bc337b9d9ff2fc6b1036 | [
"Apache-2.0"
] | 20 | 2021-02-01T16:42:17.000Z | 2022-01-26T10:48:59.000Z | python/xskipper/indexbuilder.py | guykhazma/xskipper | 058712e744e912bd5b22bc337b9d9ff2fc6b1036 | [
"Apache-2.0"
] | 12 | 2021-01-27T14:50:11.000Z | 2021-08-10T22:13:46.000Z | # Copyright 2021 IBM Corp.
# SPDX-License-Identifier: Apache-2.0
from pyspark.sql.dataframe import DataFrame
from py4j.java_collections import MapConverter
class IndexBuilder:
"""
Helper class for building indexes
:param sparkSession: SparkSession object
:param uri: the URI of the dataset / the ident... | 38.114583 | 108 | 0.625854 | 391 | 3,659 | 5.792839 | 0.329923 | 0.082561 | 0.033554 | 0.03532 | 0.32936 | 0.234879 | 0.153201 | 0.153201 | 0.153201 | 0.153201 | 0 | 0.00276 | 0.306914 | 3,659 | 95 | 109 | 38.515789 | 0.890379 | 0.378245 | 0 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.046512 | 0 | 0.348837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a26ea77dac1512349aaac759f21f3e326122e27 | 746 | py | Python | src/graphs/python/bfs/src/bfs.py | djeada/GraphAlgorithms | 0961303ec20430f90053a4efb9074185f96dfddc | [
"MIT"
] | 2 | 2021-05-31T13:01:33.000Z | 2021-12-20T19:48:18.000Z | src/graphs/python/bfs/src/bfs.py | djeada/GraphAlgorithms | 0961303ec20430f90053a4efb9074185f96dfddc | [
"MIT"
] | null | null | null | src/graphs/python/bfs/src/bfs.py | djeada/GraphAlgorithms | 0961303ec20430f90053a4efb9074185f96dfddc | [
"MIT"
] | null | null | null | from graph import Graph
def bfs(graph, source, destination):
if not (graph.contains(source) and graph.contains(destination)):
return float("inf")
distances = dict()
visited = dict()
for vertex in graph.vertices():
distances[vertex] = float("inf")
visited[vertex]... | 21.314286 | 69 | 0.548257 | 81 | 746 | 5.024691 | 0.407407 | 0.063882 | 0.078624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004124 | 0.349866 | 746 | 34 | 70 | 21.941176 | 0.835052 | 0 | 0 | 0 | 0 | 0 | 0.008427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a27eb495106ade83e880e4a8a449d48c322f96d | 2,708 | py | Python | bin/main.py | ubern-mia/point-cloud-segmentation-miccai2019 | b131b62dc5016de53611f3a743c56cc0061e050f | [
"MIT"
] | 20 | 2019-10-14T06:03:10.000Z | 2022-02-04T04:44:38.000Z | bin/main.py | ubern-mia/point-cloud-segmentation-miccai2019 | b131b62dc5016de53611f3a743c56cc0061e050f | [
"MIT"
] | 11 | 2019-06-10T12:31:23.000Z | 2022-03-12T00:04:28.000Z | bin/main.py | fabianbalsiger/point-cloud-segmentation-miccai2019 | b131b62dc5016de53611f3a743c56cc0061e050f | [
"MIT"
] | 3 | 2019-11-06T14:06:44.000Z | 2021-08-11T18:46:25.000Z | import argparse
import os.path
import sys
sys.path.append(
os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir)))
import pymia.deeplearning.logging as log
import tensorflow as tf
import pc.configuration.config as cfg
import pc.data.handler as hdlr
import pc.data.split as split
import pc.model.... | 33.85 | 113 | 0.679838 | 336 | 2,708 | 5.303571 | 0.375 | 0.055556 | 0.02862 | 0.029181 | 0.035915 | 0.035915 | 0 | 0 | 0 | 0 | 0 | 0.000482 | 0.233383 | 2,708 | 79 | 114 | 34.278481 | 0.8579 | 0.124077 | 0 | 0 | 0 | 0 | 0.070614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.24 | 0 | 0.26 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a287484855658cc91349375e1c4b8e475ab1fe0 | 1,317 | py | Python | manage_env.py | sandeep-gh/OpenBSDRemoteIT | 1690e67b6e2eb106c5350c75915065457fb1b9b2 | [
"MIT"
] | null | null | null | manage_env.py | sandeep-gh/OpenBSDRemoteIT | 1690e67b6e2eb106c5350c75915065457fb1b9b2 | [
"MIT"
] | null | null | null | manage_env.py | sandeep-gh/OpenBSDRemoteIT | 1690e67b6e2eb106c5350c75915065457fb1b9b2 | [
"MIT"
] | null | null | null | import os
import pickle
from deployConfig import workDir
import sys
env_fp = f"{workDir}/env.pickle"
def add_to_env(varname, path):
with open(env_fp, "rb") as fh:
envvars = pickle.load(fh)
if varname in envvars.keys():
if path not in envvars[varname]:
envvars[varname].append(path)... | 28.630435 | 90 | 0.59757 | 196 | 1,317 | 3.857143 | 0.290816 | 0.039683 | 0.05291 | 0.068783 | 0.526455 | 0.462963 | 0.312169 | 0.312169 | 0.261905 | 0.100529 | 0 | 0.012745 | 0.225513 | 1,317 | 45 | 91 | 29.266667 | 0.728431 | 0.279423 | 0 | 0.266667 | 0 | 0 | 0.117834 | 0.04034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a29485e3ae58c67b4c0c486240c276c76016ab2 | 3,328 | py | Python | redress/tests/test_geometries.py | maximlamare/REDRESS | a6caa9924d0f6df7ed49f188b35a7743fde1486e | [
"MIT"
] | 1 | 2021-09-16T08:03:31.000Z | 2021-09-16T08:03:31.000Z | redress/tests/test_geometries.py | maximlamare/REDRESS | a6caa9924d0f6df7ed49f188b35a7743fde1486e | [
"MIT"
] | null | null | null | redress/tests/test_geometries.py | maximlamare/REDRESS | a6caa9924d0f6df7ed49f188b35a7743fde1486e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Unittests for the GDAl tools.
This file is part of the REDRESS algorithm
M. Lamare, M. Dumont, G. Picard (IGE, CEN).
"""
import pytest
from geojson import Polygon, Feature, FeatureCollection, dump
from redress.geospatial.gdal_ops import (build_poly_from_coords,
... | 36.571429 | 73 | 0.60607 | 455 | 3,328 | 4.279121 | 0.298901 | 0.03698 | 0.053416 | 0.058552 | 0.315871 | 0.232152 | 0.232152 | 0.198254 | 0.161274 | 0.161274 | 0 | 0.103277 | 0.275541 | 3,328 | 90 | 74 | 36.977778 | 0.704272 | 0.255409 | 0 | 0.177778 | 0 | 0 | 0.009877 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 1 | 0.088889 | false | 0 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a2cec396ceac73b9f9e17a3fefcecf0959ae15d | 33,258 | py | Python | utility/visualize.py | richban/behavioral.neuroevolution | bb850bda919a772538dc86a9624a6e86623f9b80 | [
"Apache-2.0"
] | null | null | null | utility/visualize.py | richban/behavioral.neuroevolution | bb850bda919a772538dc86a9624a6e86623f9b80 | [
"Apache-2.0"
] | 2 | 2020-03-31T01:45:13.000Z | 2020-09-25T23:39:43.000Z | utility/visualize.py | richban/behavioral.neuroevolution | bb850bda919a772538dc86a9624a6e86623f9b80 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import os
import csv
import graphviz
import numpy as np
import plotly.graph_objs as go
import plotly
import plotly.plotly as py
import matplotlib.pyplot as plt
import matplotlib.pylab as pylab
import copy
import warnings
import matplotlib as mpl
from plotly.offline import download... | 25.7017 | 115 | 0.500992 | 3,806 | 33,258 | 4.306096 | 0.130321 | 0.017024 | 0.015864 | 0.016597 | 0.56782 | 0.536396 | 0.498383 | 0.470682 | 0.44359 | 0.407468 | 0 | 0.039828 | 0.356786 | 33,258 | 1,294 | 116 | 25.7017 | 0.7263 | 0.04002 | 0 | 0.583015 | 0 | 0 | 0.124329 | 0.006406 | 0 | 0 | 0 | 0 | 0.001908 | 1 | 0.023855 | false | 0 | 0.013359 | 0 | 0.062023 | 0.000954 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a2d4e4783b1e8d97223132070735cfa9ed1e2ca | 1,683 | py | Python | CUMCM2014/Problem-A/2014-A-Python_SC/梯度图.py | Amoiensis/Mathmatic_Modeling_CUMCM | c64ec097d764ec3ae14e26e840bf5642be372d7c | [
"Apache-2.0"
] | 27 | 2019-08-30T07:09:53.000Z | 2021-08-29T07:37:24.000Z | CUMCM2014/Problem-A/2014-A-Python_SC/梯度图.py | Amoiensis/Mathmatic_Modeling_CUMCM | c64ec097d764ec3ae14e26e840bf5642be372d7c | [
"Apache-2.0"
] | 2 | 2020-08-10T03:11:32.000Z | 2020-08-24T13:39:24.000Z | CUMCM2014/Problem-A/2014-A-Python_SC/梯度图.py | Amoiensis/Mathmatic_Modeling_CUMCM | c64ec097d764ec3ae14e26e840bf5642be372d7c | [
"Apache-2.0"
] | 28 | 2019-12-14T03:54:42.000Z | 2022-03-12T14:38:22.000Z | # -*- coding: utf-8 -*-
"""
---------------------------------------------
File Name: 粗避障
Desciption:
Author: fanzhiwei
date: 2019/9/5 9:58
---------------------------------------------
Change Activity: 2019/9/5 9:58
-------------------------------------... | 29.017241 | 65 | 0.633393 | 203 | 1,683 | 5.009852 | 0.374384 | 0.06883 | 0.058997 | 0.013766 | 0.184857 | 0.167158 | 0.096362 | 0.096362 | 0.096362 | 0.096362 | 0 | 0.029971 | 0.187166 | 1,683 | 58 | 66 | 29.017241 | 0.71345 | 0.215092 | 0 | 0.060606 | 0 | 0 | 0.030488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.151515 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a337713256137d5fcba2e7758391c4a3d42f204 | 4,156 | py | Python | scripts/figures/kernels.py | qbhan/sample_based_MCdenoising | 92f5220802ef0668105cdee5fd7e2af8a66201db | [
"Apache-2.0"
] | 78 | 2019-10-02T01:34:46.000Z | 2022-03-21T11:18:04.000Z | scripts/figures/kernels.py | qbhan/sample_based_MCdenoising | 92f5220802ef0668105cdee5fd7e2af8a66201db | [
"Apache-2.0"
] | 17 | 2019-10-04T17:04:00.000Z | 2021-05-17T19:02:12.000Z | scripts/figures/kernels.py | qbhan/sample_based_MCdenoising | 92f5220802ef0668105cdee5fd7e2af8a66201db | [
"Apache-2.0"
] | 18 | 2019-10-03T05:02:21.000Z | 2021-06-22T15:54:15.000Z | import os
import argparse
import logging
import numpy as np
import torch as th
from torch.utils.data import DataLoader
from torchvision import transforms
import ttools
from ttools.modules.image_operators import crop_like
import rendernet.dataset as dset
import rendernet.modules.preprocessors as pre
import rendernet.... | 31.24812 | 113 | 0.677334 | 606 | 4,156 | 4.493399 | 0.292079 | 0.036724 | 0.025707 | 0.012853 | 0.144326 | 0.099523 | 0.060962 | 0.017628 | 0.017628 | 0.017628 | 0 | 0.007906 | 0.178296 | 4,156 | 132 | 114 | 31.484848 | 0.789458 | 0.0077 | 0 | 0 | 0 | 0 | 0.102377 | 0.005822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.166667 | 0 | 0.185185 | 0.009259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a3726435cdad9b9e21619560262a26d9cbff99c | 299 | py | Python | scripts/alan/clean_pycache.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | 2 | 2020-06-18T03:25:52.000Z | 2020-06-18T07:33:45.000Z | scripts/alan/clean_pycache.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | 15 | 2021-01-28T07:11:04.000Z | 2021-05-24T07:11:37.000Z | scripts/alan/clean_pycache.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | null | null | null | def clean_pycache(dir_, ignores=''):
import shutil
for path in dir_.glob('**/__pycache__'):
if ignores and path.match(ignores):
continue
shutil.rmtree(path)
if __name__ == "__main__":
from pathlib import Path
clean_pycache(Path(__file__).parents[2])
| 19.933333 | 44 | 0.638796 | 36 | 299 | 4.75 | 0.638889 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004425 | 0.244147 | 299 | 14 | 45 | 21.357143 | 0.752212 | 0 | 0 | 0 | 0 | 0 | 0.073579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a4004b98dc117b5e58a273f30a560e340d87721 | 1,345 | py | Python | csv_merge_col.py | adrianpope/VelocityCompression | eb35f586b18890da93a7ad2e287437118c0327a2 | [
"BSD-3-Clause"
] | null | null | null | csv_merge_col.py | adrianpope/VelocityCompression | eb35f586b18890da93a7ad2e287437118c0327a2 | [
"BSD-3-Clause"
] | null | null | null | csv_merge_col.py | adrianpope/VelocityCompression | eb35f586b18890da93a7ad2e287437118c0327a2 | [
"BSD-3-Clause"
] | null | null | null | import sys
import numpy as np
import pandas as pd
def df_add_keys(df):
ax = df['fof_halo_angmom_x']
ay = df['fof_halo_angmom_y']
az = df['fof_halo_angmom_z']
mag = np.sqrt(ax**2 + ay**2 + az**2)
dx = ax/mag
dy = ay/mag
dz = az/mag
df['fof_halo_angmom_dx'] = dx
df['fof_halo_angmom_d... | 24.907407 | 104 | 0.594052 | 224 | 1,345 | 3.254464 | 0.294643 | 0.061728 | 0.111111 | 0.144033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043611 | 0.266915 | 1,345 | 53 | 105 | 25.377358 | 0.69574 | 0 | 0 | 0 | 0 | 0.021739 | 0.188848 | 0.020818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.065217 | 0 | 0.152174 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a4099a116dd4efb8f2b5619fb34ffe71a578a58 | 1,845 | py | Python | scripts/check-silknow-urls.py | silknow/crawler | d2632cea9b98ab64a8bca56bc70b34edd3c2de31 | [
"Apache-2.0"
] | 1 | 2019-04-21T07:09:52.000Z | 2019-04-21T07:09:52.000Z | scripts/check-silknow-urls.py | silknow/crawler | d2632cea9b98ab64a8bca56bc70b34edd3c2de31 | [
"Apache-2.0"
] | 35 | 2019-01-21T23:53:52.000Z | 2022-02-12T04:28:17.000Z | scripts/check-silknow-urls.py | silknow/crawler | d2632cea9b98ab64a8bca56bc70b34edd3c2de31 | [
"Apache-2.0"
] | null | null | null | import argparse
import csv
import os
parser = argparse.ArgumentParser()
parser.add_argument('-i', '--input', help="Input path of the missing urls CSV file")
parser.add_argument('-o', '--output', help="Output directory where the new CSV files will be stored")
parser.add_argument('-q', '--quiet', action='store_true', he... | 38.4375 | 105 | 0.666667 | 253 | 1,845 | 4.715415 | 0.312253 | 0.040235 | 0.033529 | 0.026823 | 0.283319 | 0.24979 | 0.189438 | 0.135792 | 0.068734 | 0.068734 | 0 | 0.002041 | 0.203252 | 1,845 | 47 | 106 | 39.255319 | 0.809524 | 0 | 0 | 0.055556 | 0 | 0 | 0.156098 | 0.026558 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9a40c18aa2fcf755b162532d605ac1593ac74650 | 2,302 | py | Python | Trabajo 3/auxFunc.py | francaracuel/UGR-GII-CCIA-4-VC-Vision_por_computador-17-18-Practicas | cb801eb5dfc4a8ea0300eae66a3b9bb2943fe8ab | [
"Apache-2.0"
] | 1 | 2019-01-28T09:43:41.000Z | 2019-01-28T09:43:41.000Z | Trabajo 3/auxFunc.py | francaracuel/UGR-GII-CCIA-4-VC-Vision_por_computador-17-18-Practicas | cb801eb5dfc4a8ea0300eae66a3b9bb2943fe8ab | [
"Apache-2.0"
] | null | null | null | Trabajo 3/auxFunc.py | francaracuel/UGR-GII-CCIA-4-VC-Vision_por_computador-17-18-Practicas | cb801eb5dfc4a8ea0300eae66a3b9bb2943fe8ab | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 21 11:20:06 2017
@author: NPB
"""
import cv2
import pickle
def loadDictionary(filename):
with open(filename,"rb") as fd:
feat=pickle.load(fd)
return feat["accuracy"],feat["labels"], feat["dictionary"]
def loadAux(filename, flagPatches):
if flagPatch... | 26.45977 | 69 | 0.613814 | 307 | 2,302 | 4.576547 | 0.374593 | 0.008541 | 0.037011 | 0.038434 | 0.241993 | 0.186477 | 0.146619 | 0.118149 | 0.118149 | 0.118149 | 0 | 0.031414 | 0.253258 | 2,302 | 86 | 70 | 26.767442 | 0.785922 | 0.222415 | 0 | 0.320755 | 0 | 0 | 0.068439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.037736 | 0 | 0.188679 | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |