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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
005275ffc230ec92bee5ce893b5981ac62fa9054 | 3,293 | py | Python | library/ucs_vlan_find.py | dsoper2/ucsm-ansible-1 | 9eef898d016e8e2c5f07990385ec1b8885edc533 | [
"NTP"
] | 54 | 2017-05-30T19:22:23.000Z | 2021-12-17T07:36:55.000Z | library/ucs_vlan_find.py | dsoper2/ucsm-ansible-1 | 9eef898d016e8e2c5f07990385ec1b8885edc533 | [
"NTP"
] | 50 | 2017-05-10T07:37:09.000Z | 2021-07-26T18:23:30.000Z | library/ucs_vlan_find.py | dsoper2/ucsm-ansible-1 | 9eef898d016e8e2c5f07990385ec1b8885edc533 | [
"NTP"
] | 54 | 2017-05-08T05:31:23.000Z | 2021-11-16T09:34:32.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | 26.991803 | 107 | 0.64379 | 422 | 3,293 | 4.893365 | 0.433649 | 0.020339 | 0.015981 | 0.021308 | 0.16368 | 0.147216 | 0.119128 | 0.057143 | 0.057143 | 0.057143 | 0 | 0.020166 | 0.232007 | 3,293 | 121 | 108 | 27.214876 | 0.795571 | 0.039174 | 0 | 0.181818 | 0 | 0.010101 | 0.573101 | 0.00981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010101 | false | 0.020202 | 0.030303 | 0 | 0.040404 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc37b7d3f91a095814758d351ed6ae362f360126 | 5,934 | py | Python | arbiter.py | camerongivler/bitcoin-utils | 86e7ba95ef016b24c33fe819a9879b387f7f70f9 | [
"MIT"
] | null | null | null | arbiter.py | camerongivler/bitcoin-utils | 86e7ba95ef016b24c33fe819a9879b387f7f70f9 | [
"MIT"
] | null | null | null | arbiter.py | camerongivler/bitcoin-utils | 86e7ba95ef016b24c33fe819a9879b387f7f70f9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import sys
import time
import traceback
from itertools import combinations
from multiprocessing.pool import ThreadPool
from exchangebase import ExchangeBase
from exchangepair import ExchangePair
from gdaxapi import Gdax
from krakenapi import Kraken
class Arbiter:
def __init__(se... | 41.496503 | 117 | 0.531345 | 638 | 5,934 | 4.818182 | 0.289969 | 0.057254 | 0.027651 | 0.030254 | 0.217632 | 0.146389 | 0.106051 | 0.090436 | 0.090436 | 0.090436 | 0 | 0.015957 | 0.366363 | 5,934 | 142 | 118 | 41.788732 | 0.801596 | 0.152005 | 0 | 0.082474 | 0 | 0 | 0.047486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020619 | false | 0 | 0.103093 | 0 | 0.134021 | 0.103093 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc3a46291852e6e6df74967b9e59f3edcd3b7c15 | 2,289 | py | Python | demos/dlgr/demos/rumour_stuff_chain/extend_hit.py | allisonmorgan/Dallinger | f171e28c352854a3c6ed6b21f25362cd933b17dc | [
"MIT"
] | 1 | 2019-08-01T16:15:44.000Z | 2019-08-01T16:15:44.000Z | demos/dlgr/demos/rumour_stuff_chain/extend_hit.py | allisonmorgan/Dallinger | f171e28c352854a3c6ed6b21f25362cd933b17dc | [
"MIT"
] | null | null | null | demos/dlgr/demos/rumour_stuff_chain/extend_hit.py | allisonmorgan/Dallinger | f171e28c352854a3c6ed6b21f25362cd933b17dc | [
"MIT"
] | null | null | null | import boto3
import sys
import numpy as np
import random
import time
# endpoint_url = 'https://mturk-requester-sandbox.us-east-1.amazonaws.com'
endpoint_url = 'https://mturk-requester.us-east-1.amazonaws.com'
##Remember to put the AWS credential in ~/.aws/credential like below:
#######
#[default]
#aws_access_key_id = ... | 48.702128 | 138 | 0.769332 | 316 | 2,289 | 5.35443 | 0.370253 | 0.059102 | 0.05792 | 0.059102 | 0.339244 | 0.20922 | 0.20922 | 0.20922 | 0.20922 | 0.134752 | 0 | 0.01391 | 0.120577 | 2,289 | 46 | 139 | 49.76087 | 0.826627 | 0.261249 | 0 | 0.290323 | 0 | 0 | 0.186339 | 0.065908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16129 | 0 | 0.16129 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc3bb136570430d6501e2f8f63227f6e1d115c10 | 6,018 | py | Python | tests/test_manager.py | rscalzo/sami | 7ac5632e018cdf2384f5ff067c503177684f61c8 | [
"BSD-3-Clause"
] | 1 | 2021-12-07T08:30:38.000Z | 2021-12-07T08:30:38.000Z | tests/test_manager.py | rscalzo/sami | 7ac5632e018cdf2384f5ff067c503177684f61c8 | [
"BSD-3-Clause"
] | null | null | null | tests/test_manager.py | rscalzo/sami | 7ac5632e018cdf2384f5ff067c503177684f61c8 | [
"BSD-3-Clause"
] | 3 | 2021-02-15T19:51:59.000Z | 2021-05-04T05:48:46.000Z | from __future__ import print_function
import pytest
from tempfile import mkdtemp
from glob import glob
import shutil
import fnmatch
import os
import os.path
import sami
TEST_DIR = os.path.join(os.path.split(__file__)[0], "test_data")
# Note: if the test data is changed, then these lists must be updated
# (too hard... | 38.088608 | 106 | 0.674643 | 777 | 6,018 | 4.996139 | 0.214929 | 0.096342 | 0.061824 | 0.050232 | 0.529109 | 0.519062 | 0.472437 | 0.463679 | 0.412159 | 0.40881 | 0 | 0.040374 | 0.218013 | 6,018 | 157 | 107 | 38.33121 | 0.78453 | 0.137421 | 0 | 0.141509 | 0 | 0 | 0.153801 | 0.036462 | 0 | 0 | 0 | 0 | 0.160377 | 1 | 0.160377 | false | 0.009434 | 0.103774 | 0 | 0.301887 | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc3c03312a697ba2de1761ab5b8ccb3cbedb8ca1 | 1,536 | py | Python | test/test_add_contact.py | galarina1880/python_training | f8fefdd484f4409cb6f43be1d791b50306e5bb2d | [
"Apache-2.0"
] | null | null | null | test/test_add_contact.py | galarina1880/python_training | f8fefdd484f4409cb6f43be1d791b50306e5bb2d | [
"Apache-2.0"
] | null | null | null | test/test_add_contact.py | galarina1880/python_training | f8fefdd484f4409cb6f43be1d791b50306e5bb2d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from model.contact import Contact
def test_add_contact(app):
old_contacts = app.contact.get_contact_list()
contact = Contact(firstname='firstname', middlename='middlename', lastname='lastname', nickname='nick', title='title', company='company', address='address', home='home phone', mob... | 64 | 438 | 0.684245 | 199 | 1,536 | 5.105528 | 0.311558 | 0.086614 | 0.070866 | 0.082677 | 0.492126 | 0.395669 | 0.395669 | 0.326772 | 0.326772 | 0.326772 | 0 | 0.019259 | 0.121094 | 1,536 | 23 | 439 | 66.782609 | 0.733333 | 0.445313 | 0 | 0 | 0 | 0 | 0.180737 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cc3e5392334cf15bfc02e165a4492d59caf3fc7b | 1,585 | py | Python | colorswatch-translator.py | MartyMacGyver/color-swatch-tool | a1351e459a4bea4da2e3dfaf881221109595fa21 | [
"Apache-2.0"
] | null | null | null | colorswatch-translator.py | MartyMacGyver/color-swatch-tool | a1351e459a4bea4da2e3dfaf881221109595fa21 | [
"Apache-2.0"
] | null | null | null | colorswatch-translator.py | MartyMacGyver/color-swatch-tool | a1351e459a4bea4da2e3dfaf881221109595fa21 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2015-2017 Martin F. Falatic
#
# 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
#
# Unl... | 31.7 | 77 | 0.565931 | 201 | 1,585 | 4.38806 | 0.557214 | 0.068027 | 0.030612 | 0.036281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024434 | 0.302839 | 1,585 | 49 | 78 | 32.346939 | 0.773756 | 0.403785 | 0 | 0 | 0 | 0 | 0.130184 | 0.056452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cc3ffb8f152bd3e99ff55c7878559254b86ef957 | 11,024 | py | Python | broker/test_setup/nas/run_jobs.py | ebloc/ebloc-broker | 776a8d9d4642ed1ba4726c94da68d61bd81c098b | [
"MIT"
] | 3 | 2021-12-11T19:26:57.000Z | 2021-12-30T00:17:23.000Z | broker/test_setup/nas/run_jobs.py | ebloc/ebloc-broker | 776a8d9d4642ed1ba4726c94da68d61bd81c098b | [
"MIT"
] | null | null | null | broker/test_setup/nas/run_jobs.py | ebloc/ebloc-broker | 776a8d9d4642ed1ba4726c94da68d61bd81c098b | [
"MIT"
] | 1 | 2021-09-18T11:38:07.000Z | 2021-09-18T11:38:07.000Z | #!/usr/bin/env python3
import os.path
import random
from pathlib import Path
from random import randint
from pymongo import MongoClient
from web3.logs import DISCARD
from broker import cfg
from broker._utils import _log
from broker._utils._log import console_ruler
from broker._utils.tools import _time, _timestamp, c... | 44.273092 | 120 | 0.61484 | 1,314 | 11,024 | 4.916286 | 0.210046 | 0.040867 | 0.044427 | 0.009907 | 0.412848 | 0.390402 | 0.315944 | 0.270743 | 0.225697 | 0.200619 | 0 | 0.083586 | 0.251179 | 11,024 | 248 | 121 | 44.451613 | 0.69897 | 0.040004 | 0 | 0.235849 | 0 | 0.028302 | 0.349082 | 0.148078 | 0 | 0 | 0.015906 | 0 | 0 | 1 | 0.018868 | false | 0.014151 | 0.075472 | 0 | 0.103774 | 0.023585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc4031a6954bcf042bbc85f87eefa7a1869a0a28 | 8,441 | py | Python | src/models/basic.py | ewanlee/mackrl | 6dd505aa09830f16c35a022f67e255db935c807e | [
"Apache-2.0"
] | 26 | 2019-10-28T09:01:45.000Z | 2021-09-20T08:56:12.000Z | src/models/basic.py | ewanlee/mackrl | 6dd505aa09830f16c35a022f67e255db935c807e | [
"Apache-2.0"
] | 1 | 2020-07-25T06:50:05.000Z | 2020-07-25T06:50:05.000Z | src/models/basic.py | ewanlee/mackrl | 6dd505aa09830f16c35a022f67e255db935c807e | [
"Apache-2.0"
] | 6 | 2019-12-18T12:02:57.000Z | 2021-03-03T13:15:47.000Z | from torch.autograd import Variable
import torch.nn.functional as F
import torch.nn as nn
import torch as th
from components.transforms import _to_batch, _from_batch, _check_inputs_validity, _tdim, _vdim
class DQN(nn.Module):
def __init__(self, input_shapes, n_actions, output_type=None, output_shapes=None, layer_... | 39.260465 | 120 | 0.621016 | 1,144 | 8,441 | 4.356643 | 0.133741 | 0.083066 | 0.075642 | 0.043339 | 0.727929 | 0.66573 | 0.64065 | 0.604133 | 0.551966 | 0.512039 | 0 | 0.006382 | 0.257434 | 8,441 | 214 | 121 | 39.443925 | 0.788768 | 0.136358 | 0 | 0.460993 | 0 | 0 | 0.069813 | 0 | 0 | 0 | 0 | 0 | 0.035461 | 1 | 0.070922 | false | 0.014184 | 0.035461 | 0 | 0.177305 | 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 |
cc40fcfa271ed898e5b820a6656b997eb787c958 | 401 | py | Python | 02 - Estruturas de controle/ex041.py | epedropaulo/MyPython | cdb3602a01aedac26047f5b11a36a2262d4cc2ea | [
"MIT"
] | null | null | null | 02 - Estruturas de controle/ex041.py | epedropaulo/MyPython | cdb3602a01aedac26047f5b11a36a2262d4cc2ea | [
"MIT"
] | null | null | null | 02 - Estruturas de controle/ex041.py | epedropaulo/MyPython | cdb3602a01aedac26047f5b11a36a2262d4cc2ea | [
"MIT"
] | null | null | null | from datetime import date
nascimento = int(input('Digite o ano de nascimento: '))
idade = date.today().year - nascimento
print(f'Ele tem {idade} anos.')
if idade <= 9:
lugar = 'mirim'
elif idade <= 14:
lugar = 'infantil'
elif idade <= 19:
lugar = 'junior'
elif idade <= 25:
lugar = 'sênior'
... | 23.588235 | 56 | 0.618454 | 55 | 401 | 4.509091 | 0.672727 | 0.108871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023026 | 0.241895 | 401 | 16 | 57 | 25.0625 | 0.792763 | 0 | 0 | 0 | 0 | 0 | 0.309091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cc45ba5985dd0e3782dd94c105224f3ada5ebf10 | 1,159 | py | Python | scripts/collect_infer.py | TsaiTung-Chen/wtbd | 60fb153eec88e83c04ad4eac3c4a94188a28eeac | [
"MIT"
] | null | null | null | scripts/collect_infer.py | TsaiTung-Chen/wtbd | 60fb153eec88e83c04ad4eac3c4a94188a28eeac | [
"MIT"
] | null | null | null | scripts/collect_infer.py | TsaiTung-Chen/wtbd | 60fb153eec88e83c04ad4eac3c4a94188a28eeac | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 27 18:11:58 2021
@author: TSAI, TUNG-CHEN
@update: 2021/10/05
"""
MODEL_NAME = 'PhysicalCNN'
DIRECTORY = r"../dataset/preprocessed/data/"
WALK = True
SUBSET = 'all'
from wtbd.infer import infer
from wtbd.utils import print_info
from wtbd.data_c... | 26.953488 | 79 | 0.449525 | 96 | 1,159 | 5.25 | 0.541667 | 0.047619 | 0.055556 | 0.06746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023732 | 0.200173 | 1,159 | 42 | 80 | 27.595238 | 0.519957 | 0.378775 | 0 | 0 | 0 | 0 | 0.082504 | 0.041252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.277778 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc48fd52654d6c5c9dcc17149850ed8b8aa26647 | 2,262 | py | Python | coll_plw.py | flychensc/apple | 1b85d05e589b3c53b0ac4df29f53d4793c1a3686 | [
"Apache-2.0"
] | 2 | 2018-12-18T13:00:22.000Z | 2020-01-08T07:40:52.000Z | coll_plw.py | flychensc/apple | 1b85d05e589b3c53b0ac4df29f53d4793c1a3686 | [
"Apache-2.0"
] | null | null | null | coll_plw.py | flychensc/apple | 1b85d05e589b3c53b0ac4df29f53d4793c1a3686 | [
"Apache-2.0"
] | 1 | 2019-04-23T00:16:37.000Z | 2019-04-23T00:16:37.000Z | """
排列五的概率输出
"""
from lottery import get_history
import pandas as pd
import dash
import dash_html_components as html
import dash_core_components as dcc
CODE = '排列五'
MIN = 1
COUNT = 200
def _calc_prob(num, datas):
"""
计算num在datas里的概率
e.g.:
num = 1
data = [[2,3],[1,7],[3,6]]
retun... | 23.5625 | 78 | 0.516799 | 299 | 2,262 | 3.792642 | 0.367893 | 0.015873 | 0.021164 | 0.047619 | 0.101411 | 0.082892 | 0.082892 | 0.054674 | 0.054674 | 0.054674 | 0 | 0.046113 | 0.328912 | 2,262 | 95 | 79 | 23.810526 | 0.700922 | 0.115385 | 0 | 0.035088 | 0 | 0 | 0.059252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.087719 | 0 | 0.192982 | 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 |
cc490adc1922a89384ac9296797453d77a47df06 | 1,947 | py | Python | shipper/build.py | obukhov-sergey/shipper | 574b30b2b76087d6ebb8ccf9824e175bd1c9d123 | [
"Apache-2.0"
] | 1 | 2021-11-27T14:40:26.000Z | 2021-11-27T14:40:26.000Z | shipper/build.py | obukhov-sergey/shipper | 574b30b2b76087d6ebb8ccf9824e175bd1c9d123 | [
"Apache-2.0"
] | null | null | null | shipper/build.py | obukhov-sergey/shipper | 574b30b2b76087d6ebb8ccf9824e175bd1c9d123 | [
"Apache-2.0"
] | 1 | 2021-11-27T14:40:27.000Z | 2021-11-27T14:40:27.000Z | """
Copyright [2013] [Rackspace]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | 29.5 | 75 | 0.657422 | 250 | 1,947 | 5.068 | 0.484 | 0.047356 | 0.020521 | 0.025257 | 0.140489 | 0.140489 | 0.077348 | 0.077348 | 0.077348 | 0.077348 | 0 | 0.00545 | 0.24602 | 1,947 | 65 | 76 | 29.953846 | 0.857629 | 0.366718 | 0 | 0.388889 | 0 | 0 | 0.05995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.305556 | 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 |
cc4ce47e67db9699366e5b5fb9b6dab99a776e52 | 581 | py | Python | platformio_script.py | aircarto/Nebulo | 3134def3810e5c9579350a63299a33670583a722 | [
"MIT"
] | 1 | 2021-12-27T01:07:26.000Z | 2021-12-27T01:07:26.000Z | platformio_script.py | aircarto/Nebulo | 3134def3810e5c9579350a63299a33670583a722 | [
"MIT"
] | null | null | null | platformio_script.py | aircarto/Nebulo | 3134def3810e5c9579350a63299a33670583a722 | [
"MIT"
] | null | null | null | Import("env")
import hashlib
import os
import shutil
def _file_md5_hexdigest(fname):
return hashlib.md5(open(fname, 'rb').read()).hexdigest()
def after_build(source, target, env):
if not os.path.exists("builds"):
os.mkdir("builds")
lang = env.GetProjectOption('lang')
target_name = lang.lower(... | 26.409091 | 67 | 0.695353 | 84 | 581 | 4.642857 | 0.47619 | 0.053846 | 0.082051 | 0.097436 | 0.133333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.146299 | 581 | 21 | 68 | 27.666667 | 0.770161 | 0 | 0 | 0 | 0 | 0 | 0.19105 | 0.153184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0.066667 | 0.466667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cc4e03aa9fb9cf8d29ed71ffc7fbde9900f6b98a | 8,184 | py | Python | htmldiffer/utils.py | IYIagnus/htmldiffer | 0778e8771905db57f57f32d84471d35cf9a0f39d | [
"MIT"
] | 9 | 2017-10-06T01:39:54.000Z | 2021-08-21T12:59:27.000Z | htmldiffer/utils.py | IYIagnus/htmldiffer | 0778e8771905db57f57f32d84471d35cf9a0f39d | [
"MIT"
] | 21 | 2017-09-08T04:03:12.000Z | 2021-12-23T12:28:44.000Z | htmldiffer/utils.py | anastasia/htmldiff | 2a4e770eca6f742216afd33a1a6e82bb25f5fea0 | [
"MIT"
] | 10 | 2017-10-06T01:40:03.000Z | 2021-12-23T12:30:11.000Z | import re
import os
from bs4 import BeautifulSoup
from . import settings
def html2list(html_string, level='word'):
"""
:param html_string: any ol' html string you've got
level: either 'word' or 'character'. If level='word', elements will be words.
If level='character', elem... | 30.651685 | 115 | 0.568793 | 1,031 | 8,184 | 4.376334 | 0.240543 | 0.031915 | 0.014628 | 0.006649 | 0.143617 | 0.079787 | 0.052305 | 0.038121 | 0.038121 | 0.024823 | 0 | 0.007047 | 0.306452 | 8,184 | 266 | 116 | 30.766917 | 0.787879 | 0.299731 | 0 | 0.2 | 0 | 0 | 0.054666 | 0 | 0 | 0 | 0 | 0.003759 | 0 | 1 | 0.144828 | false | 0 | 0.027586 | 0.082759 | 0.324138 | 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 |
cc53da809995bfcf906eeef477759efe194c27ed | 1,157 | py | Python | node/trust.py | cflynn07/OpenBazaar | 439511e9c81a658cdad2014b02d3fdf13abab5c4 | [
"MIT"
] | null | null | null | node/trust.py | cflynn07/OpenBazaar | 439511e9c81a658cdad2014b02d3fdf13abab5c4 | [
"MIT"
] | null | null | null | node/trust.py | cflynn07/OpenBazaar | 439511e9c81a658cdad2014b02d3fdf13abab5c4 | [
"MIT"
] | null | null | null | import obelisk
import logging
import bitcoin
from twisted.internet import reactor
_log = logging.getLogger('trust')
TESTNET = False
def burnaddr_from_guid(guid_hex):
_log.debug("burnaddr_from_guid: %s", guid_hex)
if TESTNET:
guid_hex = '6f' + guid_hex
else:
guid_hex = '00' + guid_hex
... | 21.425926 | 59 | 0.673293 | 153 | 1,157 | 4.921569 | 0.437909 | 0.074369 | 0.063745 | 0.053121 | 0.061089 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013393 | 0.225583 | 1,157 | 53 | 60 | 21.830189 | 0.827009 | 0.11841 | 0 | 0 | 0 | 0 | 0.159606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.137931 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cc58d71d7ae86ba704bcdd360c5f0a8dc49d8018 | 1,446 | py | Python | yogit/yogit/logger.py | jmaneyrol69/yogit | 347a6ee990e066eab36432dbae93ee05c681f329 | [
"MIT"
] | 17 | 2019-07-15T08:01:08.000Z | 2022-02-16T20:07:20.000Z | yogit/yogit/logger.py | jmaneyrol69/yogit | 347a6ee990e066eab36432dbae93ee05c681f329 | [
"MIT"
] | 5 | 2019-07-16T12:49:08.000Z | 2020-10-20T15:27:41.000Z | yogit/yogit/logger.py | jmaneyrol69/yogit | 347a6ee990e066eab36432dbae93ee05c681f329 | [
"MIT"
] | 4 | 2019-07-16T12:38:46.000Z | 2020-10-19T12:51:37.000Z | """
Application logger
"""
import logging
import os
import sys
from yogit import get_name, get_version
from yogit.yogit.paths import get_log_path, SETTINGS_DIR
def get_logger(stdout=False, logger_name=get_name(), version=get_version()):
"""
Create and configure a logger using a given name.
"""
os.ma... | 24.931034 | 76 | 0.677732 | 173 | 1,446 | 5.421965 | 0.381503 | 0.085288 | 0.059701 | 0.053305 | 0.153518 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215076 | 1,446 | 57 | 77 | 25.368421 | 0.826432 | 0.085754 | 0 | 0 | 0 | 0 | 0.067757 | 0.021028 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.142857 | 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 |
cc5982992e201503c11c0734dd8dc758ba63e2ee | 488 | py | Python | sane_logger/sane_logger.py | JesseAldridge/sane_logger | d8850a67f7ffe6cd3d8b25ef5a9d482a254870bc | [
"MIT"
] | 1 | 2021-06-06T15:37:13.000Z | 2021-06-06T15:37:13.000Z | sane_logger/sane_logger.py | JesseAldridge/sane_logger | d8850a67f7ffe6cd3d8b25ef5a9d482a254870bc | [
"MIT"
] | null | null | null | sane_logger/sane_logger.py | JesseAldridge/sane_logger | d8850a67f7ffe6cd3d8b25ef5a9d482a254870bc | [
"MIT"
] | null | null | null | import logging, sys
def sane_logger(log_level=logging.INFO):
logger = logging.getLogger()
logger.setLevel(log_level)
sh = logging.StreamHandler(sys.stdout)
formatter = logging.Formatter(
'[%(asctime)s] %(levelname)s [%(filename)s.%(funcName)s:%(lineno)d] %(message)s',
datefmt='%a, %d %b %Y %H:%M:%S %... | 24.4 | 85 | 0.684426 | 66 | 488 | 4.878788 | 0.575758 | 0.062112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145492 | 488 | 19 | 86 | 25.684211 | 0.772182 | 0 | 0 | 0 | 0 | 0.066667 | 0.241803 | 0.077869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | 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 |
cc5a9edbb995731c204cc21e2a54a1a17f5290cd | 7,104 | py | Python | core_tools/drivers/hardware/virtual_gate_matrix.py | opietx/core_tools | d5bd2d4beed74791b80ff5bdabd67774403763ef | [
"BSD-2-Clause"
] | null | null | null | core_tools/drivers/hardware/virtual_gate_matrix.py | opietx/core_tools | d5bd2d4beed74791b80ff5bdabd67774403763ef | [
"BSD-2-Clause"
] | null | null | null | core_tools/drivers/hardware/virtual_gate_matrix.py | opietx/core_tools | d5bd2d4beed74791b80ff5bdabd67774403763ef | [
"BSD-2-Clause"
] | null | null | null | from core_tools.data.SQL.SQL_connection_mgr import SQL_database_manager
from core_tools.drivers.hardware.hardware_SQL_backend import virtual_gate_queries
import time
import numpy as np
def lamda_do_nothing(matrix):
return matrix
class virtual_gate_matrix():
def __init__(self, name, gates, v_gates, data,
... | 36.244898 | 125 | 0.649352 | 1,019 | 7,104 | 4.19529 | 0.138371 | 0.072047 | 0.059649 | 0.015439 | 0.413099 | 0.34386 | 0.25076 | 0.208187 | 0.208187 | 0.185731 | 0 | 0.004123 | 0.248874 | 7,104 | 195 | 126 | 36.430769 | 0.797039 | 0.035473 | 0 | 0.20438 | 0 | 0 | 0.059671 | 0.006761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145985 | false | 0 | 0.029197 | 0.036496 | 0.29927 | 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 |
cc61601dbf922a6709fa7e843196b29dbf744599 | 54,648 | py | Python | outlier-analyzer-wrapper/cal_outlier.py | vasu018/outlier-analyzers | a46102e90f7c87560efa2f33dff3b337561486b5 | [
"Apache-2.0"
] | null | null | null | outlier-analyzer-wrapper/cal_outlier.py | vasu018/outlier-analyzers | a46102e90f7c87560efa2f33dff3b337561486b5 | [
"Apache-2.0"
] | null | null | null | outlier-analyzer-wrapper/cal_outlier.py | vasu018/outlier-analyzers | a46102e90f7c87560efa2f33dff3b337561486b5 | [
"Apache-2.0"
] | null | null | null | import sys
import re
import json
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
from sklearn.preprocessing import MultiLabelBinarizer
from scipy.spatial.distance import cdist
from colorama import Fore, Style
from kneed impo... | 34.326633 | 170 | 0.549114 | 6,327 | 54,648 | 4.55113 | 0.111427 | 0.007293 | 0.007293 | 0.008752 | 0.308144 | 0.246327 | 0.223303 | 0.202153 | 0.184546 | 0.172009 | 0 | 0.021633 | 0.338512 | 54,648 | 1,591 | 171 | 34.348209 | 0.774932 | 0.20654 | 0 | 0.32319 | 0 | 0.001049 | 0.076594 | 0.019148 | 0 | 0 | 0 | 0.001257 | 0 | 1 | 0.027282 | false | 0.001049 | 0.017838 | 0 | 0.07765 | 0.098636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc61b60657d94c8b13604d637733f5892011c4df | 748 | py | Python | war.py | hiraokusky/pronwar | bfc9afb958dcd0523578075a734350007d3f55ff | [
"MIT"
] | null | null | null | war.py | hiraokusky/pronwar | bfc9afb958dcd0523578075a734350007d3f55ff | [
"MIT"
] | null | null | null | war.py | hiraokusky/pronwar | bfc9afb958dcd0523578075a734350007d3f55ff | [
"MIT"
] | null | null | null | import json
from collections import OrderedDict
import pprint
import json
import sys
# prons = sys.argv
prons = ['pron1.json', 'pron2.json','pron3.json','pron4.json']
def war(pron):
with open(pron, encoding='utf8') as f:
d_update = json.load(f, object_pairs_hook=OrderedDict)
synset = {}
... | 29.92 | 85 | 0.580214 | 99 | 748 | 4.333333 | 0.444444 | 0.065268 | 0.090909 | 0.083916 | 0.172494 | 0.172494 | 0.172494 | 0.172494 | 0.172494 | 0 | 0 | 0.010753 | 0.254011 | 748 | 24 | 86 | 31.166667 | 0.758065 | 0.02139 | 0 | 0.2 | 0 | 0 | 0.167139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 0 | 0.35 | 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 |
cc62fe75b877b6b99c9222c7927faf2a48f691e2 | 506 | py | Python | tkinter/grid-pack/example-1.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 140 | 2017-02-21T22:49:04.000Z | 2022-03-22T17:51:58.000Z | tkinter/grid-pack/example-1.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 5 | 2017-12-02T19:55:00.000Z | 2021-09-22T23:18:39.000Z | tkinter/grid-pack/example-1.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 79 | 2017-01-25T10:53:33.000Z | 2022-03-11T16:13:57.000Z | #!/usr/bin/env python3
'''set frame height 10%, 80%, 10%'''
import tkinter as tk
root = tk.Tk()
root.geometry('400x300')
header = tk.Frame(root, bg='green')
content = tk.Frame(root, bg='red')
footer = tk.Frame(root, bg='green')
root.columnconfigure(0, weight=1) # 100%
root.rowconfigure(0, weight=1) # 10%
root.rowc... | 21.083333 | 40 | 0.679842 | 82 | 506 | 4.195122 | 0.426829 | 0.061047 | 0.09593 | 0.113372 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073661 | 0.114625 | 506 | 23 | 41 | 22 | 0.694196 | 0.136364 | 0 | 0 | 0 | 0 | 0.074941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
cc66060295d57944997a0a9eb2202003307a5a50 | 825 | py | Python | server/dataplay/usersvc/service.py | data2068/dataplay3 | 6834bbf589cefa6007176da3577b5146eda70f52 | [
"Apache-2.0"
] | 153 | 2019-04-19T22:14:43.000Z | 2022-03-17T08:48:46.000Z | server/dataplay/usersvc/service.py | diandian11/dataplay3 | 59d41028e9fc1d64f5abc0ede93a4f8b9184854c | [
"Apache-2.0"
] | 10 | 2019-04-14T16:10:11.000Z | 2021-01-04T02:54:13.000Z | server/dataplay/usersvc/service.py | diandian11/dataplay3 | 59d41028e9fc1d64f5abc0ede93a4f8b9184854c | [
"Apache-2.0"
] | 51 | 2019-04-14T16:02:52.000Z | 2022-03-05T00:52:42.000Z | from sanic import Blueprint
from sanic import response
from sanic.log import logger
from sanic_openapi import doc
from .user import get_user, get_routes
user_svc = Blueprint('user_svc')
@user_svc.get('/currentUser', strict_slashes=True)
@doc.summary('get current user info')
async def user(request):
try:
... | 26.612903 | 53 | 0.699394 | 111 | 825 | 5.09009 | 0.315315 | 0.063717 | 0.127434 | 0.070796 | 0.417699 | 0.258407 | 0.152212 | 0.152212 | 0 | 0 | 0 | 0.018072 | 0.195152 | 825 | 30 | 54 | 27.5 | 0.832831 | 0 | 0 | 0.25 | 0 | 0 | 0.147879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.208333 | 0 | 0.375 | 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 |
cc6617c6b503c309c32e9fd739483b4b5f04738c | 15,071 | py | Python | dnabot/test_ot2_scripts/purification_template_2.8_test.py | BASIC-DNA-ASSEMBLY/dnabot | d53710d58a4ae3fb2e950f2ca21765fe25abc2e8 | [
"MIT"
] | 3 | 2019-11-17T17:28:55.000Z | 2019-11-19T19:24:58.000Z | dnabot/test_ot2_scripts/purification_template_2.8_test.py | BASIC-DNA-ASSEMBLY/dnabot | d53710d58a4ae3fb2e950f2ca21765fe25abc2e8 | [
"MIT"
] | 2 | 2019-11-15T20:33:03.000Z | 2019-11-16T12:41:55.000Z | dnabot/test_ot2_scripts/purification_template_2.8_test.py | BASIC-DNA-ASSEMBLY/dnabot | d53710d58a4ae3fb2e950f2ca21765fe25abc2e8 | [
"MIT"
] | 7 | 2019-11-15T20:21:19.000Z | 2019-11-25T11:53:27.000Z | from opentrons import protocol_api
# Rename to 'purification_template' and paste into 'template_ot2_scripts' folder in DNA-BOT to use
metadata = {
'apiLevel': '2.8',
'protocolName': 'purification_template',
'description': 'Implements magbead purification reactions for BASIC assembly usin... | 47.393082 | 159 | 0.618141 | 1,865 | 15,071 | 4.821984 | 0.19571 | 0.023352 | 0.025687 | 0.010119 | 0.433559 | 0.404426 | 0.340265 | 0.301901 | 0.278772 | 0.258312 | 0 | 0.022544 | 0.317165 | 15,071 | 317 | 160 | 47.542587 | 0.851326 | 0.457169 | 0 | 0.12931 | 0 | 0 | 0.045306 | 0.017235 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0 | 0.008621 | 0 | 0.025862 | 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 |
cc6abadfa6473eb99280316b2542ed0cff6cc265 | 3,056 | py | Python | Features/CAI.py | jcg/d-tailor | 7ea83bcf7a2cda21eb8727575ff2b20ac8b49606 | [
"BSD-2-Clause"
] | 14 | 2016-05-19T08:31:44.000Z | 2021-08-05T08:56:56.000Z | Features/CAI.py | jcg/d-tailor | 7ea83bcf7a2cda21eb8727575ff2b20ac8b49606 | [
"BSD-2-Clause"
] | 1 | 2018-09-25T12:00:23.000Z | 2018-12-10T18:42:31.000Z | Features/CAI.py | jcg/d-tailor | 7ea83bcf7a2cda21eb8727575ff2b20ac8b49606 | [
"BSD-2-Clause"
] | 4 | 2016-06-23T21:40:49.000Z | 2021-02-02T03:05:35.000Z | '''
Created on Nov 16, 2011
@author: jcg
'''
from Features.Feature import Feature
import Functions
from uuid import uuid4
class CAI(Feature):
"""
CAI Feature
solution - solution where CAI should be computed
label - some label to append to the name
cai_range - start and end position to... | 51.79661 | 200 | 0.571008 | 341 | 3,056 | 4.920821 | 0.313783 | 0.085221 | 0.035757 | 0.045292 | 0.123957 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009073 | 0.350785 | 3,056 | 58 | 201 | 52.689655 | 0.836694 | 0.179647 | 0 | 0.055556 | 0 | 0 | 0.050061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.111111 | 0 | 0.305556 | 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 |
cc6c1dd9f30f9947c241979383cf14113417045e | 17,690 | py | Python | ebot_main/scripts/task5.py | Jovian-Dsouza/sahayak_bot | 3565e910218e73e95ed8ce9b9d92dfcbe537894e | [
"MIT"
] | 3 | 2021-10-02T10:36:48.000Z | 2022-03-18T15:47:17.000Z | ebot_main/scripts/task5.py | Jovian-Dsouza/sahayak_bot | 3565e910218e73e95ed8ce9b9d92dfcbe537894e | [
"MIT"
] | 2 | 2021-10-06T07:21:57.000Z | 2022-03-04T03:20:27.000Z | ebot_main/scripts/task5.py | Jovian-Dsouza/sahayak_bot | 3565e910218e73e95ed8ce9b9d92dfcbe537894e | [
"MIT"
] | 1 | 2021-09-06T16:34:45.000Z | 2021-09-06T16:34:45.000Z | #! /usr/bin/env python
'''
This node uses the detection_info topic and performs the actual Ur5 arm manipulation
'''
import rospy
import random
from math import pi, sin, cos
from geometry_msgs.msg import Point, Quaternion, Pose, PointStamped, PoseStamped
from std_msgs.msg import Header
from object_msgs.msg import Obj... | 28.624595 | 111 | 0.656981 | 2,307 | 17,690 | 4.789337 | 0.124404 | 0.032582 | 0.032582 | 0.036474 | 0.629559 | 0.582858 | 0.514436 | 0.493981 | 0.452801 | 0.43651 | 0 | 0.022219 | 0.229112 | 17,690 | 617 | 112 | 28.670989 | 0.788003 | 0.097456 | 0 | 0.46875 | 0 | 0.002404 | 0.119858 | 0.031831 | 0 | 0 | 0 | 0.003241 | 0 | 1 | 0.096154 | false | 0 | 0.028846 | 0 | 0.182692 | 0.067308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc6ca3b5cf9fc18b22965b52903b9910ca3fbede | 2,224 | py | Python | attacks.py | giuscri/thesis | d7aa0a8476f53ad304495b437841af1a8d6c87d4 | [
"MIT"
] | null | null | null | attacks.py | giuscri/thesis | d7aa0a8476f53ad304495b437841af1a8d6c87d4 | [
"MIT"
] | 10 | 2018-05-11T08:40:48.000Z | 2018-06-29T16:14:27.000Z | attacks.py | giuscri/thesis | d7aa0a8476f53ad304495b437841af1a8d6c87d4 | [
"MIT"
] | null | null | null | import tensorflow as tf
from cleverhans.attacks import FastGradientMethod
from cleverhans.utils_keras import KerasModelWrapper
from keras.utils import to_categorical
import keras.backend as K
import numpy as np
from functools import lru_cache
from pickle import loads, dumps
from models import filter_correctly_class... | 34.215385 | 86 | 0.748201 | 330 | 2,224 | 4.70303 | 0.254545 | 0.090206 | 0.036082 | 0.06701 | 0.375644 | 0.246778 | 0.183634 | 0.121778 | 0.121778 | 0.121778 | 0 | 0.007023 | 0.167716 | 2,224 | 64 | 87 | 34.75 | 0.831442 | 0 | 0 | 0.085106 | 0 | 0 | 0.013489 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.06383 | false | 0 | 0.191489 | 0 | 0.319149 | 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 |
cc749c4fcb4807611aed92e6a739be63d7aba80c | 1,746 | py | Python | demos/matplotlib/gradient_chart.py | 0lru/p3ui | 162c6c68f4a55ec109a593c8ced66a62520b5602 | [
"MIT"
] | 21 | 2021-07-22T21:33:01.000Z | 2022-02-12T15:17:46.000Z | demos/matplotlib/gradient_chart.py | 0lru/p3ui | 162c6c68f4a55ec109a593c8ced66a62520b5602 | [
"MIT"
] | 3 | 2021-07-26T19:00:39.000Z | 2021-12-12T09:29:09.000Z | demos/matplotlib/gradient_chart.py | 0lru/p3ui | 162c6c68f4a55ec109a593c8ced66a62520b5602 | [
"MIT"
] | 2 | 2021-07-23T04:57:21.000Z | 2021-12-15T22:51:45.000Z | from p3ui import *
import matplotlib.pyplot as plt
import numpy as np
def gradient_image(ax, extent, direction=0.3, cmap_range=(0, 1), **kwargs):
phi = direction * np.pi / 2
v = np.array([np.cos(phi), np.sin(phi)])
X = np.array([[v @ [1, 0], v @ [1, 1]],
[v @ [0, 0], v @ [0, 1]]])
a,... | 34.92 | 138 | 0.555556 | 256 | 1,746 | 3.679688 | 0.402344 | 0.010616 | 0.047771 | 0.044586 | 0.121019 | 0.121019 | 0.121019 | 0 | 0 | 0 | 0 | 0.0456 | 0.284078 | 1,746 | 49 | 139 | 35.632653 | 0.708 | 0.075029 | 0 | 0.051282 | 0 | 0 | 0.013648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.076923 | 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 |
cc757cd407448942e86aaa6d46fed30c9d25b05b | 816 | py | Python | Stack/StackOperations.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | Stack/StackOperations.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | Stack/StackOperations.py | prash-kr-meena/GoogleR | 27aca71e51cc2442e604e07ab00406a98d8d63a4 | [
"Apache-2.0"
] | null | null | null | from collections import deque
"""
Operations
* Enqueue
* Dequeue
* Peek (first element)
* Size
* IsEmpty
* Print
"""
def demo_queue_operation_using_deque():
stack = deque()
# enqueue - inserting at the Right
stack.append(1)
stack.append(2)
stack.append(3)
stack.append(4)
stack.append(5)
... | 16.653061 | 42 | 0.610294 | 108 | 816 | 4.462963 | 0.37963 | 0.136929 | 0.107884 | 0.095436 | 0.427386 | 0.207469 | 0.207469 | 0.207469 | 0.207469 | 0.207469 | 0 | 0.030844 | 0.245098 | 816 | 48 | 43 | 17 | 0.751623 | 0.17402 | 0 | 0.363636 | 0 | 0 | 0.015152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.045455 | 0.045455 | 0 | 0.090909 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc7685e77b5702f2bcf63b723074355167f96c83 | 7,664 | py | Python | app/data_model/find_songs.py | TemsyChen/Spotifinder | b069ffcd63bd7654e1afd51cde3288c9678d121a | [
"MIT"
] | null | null | null | app/data_model/find_songs.py | TemsyChen/Spotifinder | b069ffcd63bd7654e1afd51cde3288c9678d121a | [
"MIT"
] | 3 | 2021-04-23T22:52:32.000Z | 2021-04-26T04:02:51.000Z | app/data_model/find_songs.py | TemsyChen/Spotifinder | b069ffcd63bd7654e1afd51cde3288c9678d121a | [
"MIT"
] | 6 | 2021-04-28T21:14:10.000Z | 2021-10-15T01:47:55.000Z | '''
Contains the implementation of the FindSongs class.
'''
from re import compile as rcompile
from zipfile import ZipFile
from os.path import dirname
import pandas as pd
from tensorflow.keras.models import load_model
from sklearn.neighbors import NearestNeighbors
from joblib import load
DIR = dirname(__file__)
rex =... | 41.204301 | 99 | 0.656315 | 1,056 | 7,664 | 4.629735 | 0.233902 | 0.01575 | 0.02209 | 0.012272 | 0.250358 | 0.199836 | 0.170382 | 0.143792 | 0.136838 | 0.100839 | 0 | 0.005262 | 0.256133 | 7,664 | 185 | 100 | 41.427027 | 0.852307 | 0.429541 | 0 | 0.075949 | 0 | 0 | 0.081146 | 0.007464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0 | 0.088608 | 0 | 0.189873 | 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 |
cc7c0a236ab84be9186e7062cc86b20f502b6f05 | 7,270 | py | Python | src/academia_tag_recommender/classwise_classifier.py | gefei-htw/academia_tag_recommender | aea56d36e16584824ef217d1f2caaee3414098f8 | [
"MIT"
] | null | null | null | src/academia_tag_recommender/classwise_classifier.py | gefei-htw/academia_tag_recommender | aea56d36e16584824ef217d1f2caaee3414098f8 | [
"MIT"
] | null | null | null | src/academia_tag_recommender/classwise_classifier.py | gefei-htw/academia_tag_recommender | aea56d36e16584824ef217d1f2caaee3414098f8 | [
"MIT"
] | 1 | 2021-01-29T19:41:47.000Z | 2021-01-29T19:41:47.000Z | """This module handles classifier calculation."""
from academia_tag_recommender.definitions import MODELS_PATH
from sklearn.model_selection import train_test_split
from sklearn.model_selection import GridSearchCV
from sklearn.metrics import make_scorer, recall_score
from sklearn.model_selection import StratifiedKFold
f... | 31.068376 | 122 | 0.573315 | 889 | 7,270 | 4.528684 | 0.183352 | 0.0539 | 0.062842 | 0.053651 | 0.205912 | 0.148286 | 0.148286 | 0.132389 | 0.132389 | 0.132389 | 0 | 0.002277 | 0.335488 | 7,270 | 233 | 123 | 31.201717 | 0.831091 | 0.392572 | 0 | 0.048193 | 0 | 0 | 0.014096 | 0.006357 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156627 | false | 0 | 0.108434 | 0.012048 | 0.433735 | 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 |
cc8419824483cd3b9a3d2944955bdaa815ca7106 | 2,332 | py | Python | Lib/site-packages/node/tests/test_nodespace.py | Dr8Ninja/ShareSpace | 7b445783a313cbdebb1938e824e98370a42def5f | [
"MIT"
] | 11 | 2015-04-02T17:47:44.000Z | 2020-10-26T20:27:43.000Z | Lib/site-packages/node/tests/test_nodespace.py | Dr8Ninja/ShareSpace | 7b445783a313cbdebb1938e824e98370a42def5f | [
"MIT"
] | 5 | 2017-01-18T11:05:42.000Z | 2019-03-30T06:19:21.000Z | Lib/site-packages/node/tests/test_nodespace.py | Dr8Ninja/ShareSpace | 7b445783a313cbdebb1938e824e98370a42def5f | [
"MIT"
] | 2 | 2015-09-15T06:50:22.000Z | 2016-12-01T11:12:01.000Z | from node.behaviors import Adopt
from node.behaviors import DefaultInit
from node.behaviors import Nodespaces
from node.behaviors import Nodify
from node.behaviors import OdictStorage
from node.tests import NodeTestCase
from odict import odict
from plumber import plumbing
#############################################... | 29.15 | 79 | 0.565609 | 206 | 2,332 | 6.029126 | 0.228155 | 0.157005 | 0.107085 | 0.092593 | 0.321256 | 0.141707 | 0.075684 | 0 | 0 | 0 | 0 | 0.002101 | 0.183533 | 2,332 | 79 | 80 | 29.518987 | 0.65021 | 0.007719 | 0 | 0.230769 | 0 | 0 | 0.096241 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.057692 | false | 0.038462 | 0.153846 | 0 | 0.269231 | 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 |
cc85a942cbf7b59c5567afa83b5cd9d0434c51dd | 3,673 | py | Python | extract/river/extract_rivers.py | parkermac/LO | 09e0197de7f2166bfa835ec62018b7a8fbfa7379 | [
"MIT"
] | 1 | 2022-01-31T23:12:22.000Z | 2022-01-31T23:12:22.000Z | extract/river/extract_rivers.py | parkermac/LO | 09e0197de7f2166bfa835ec62018b7a8fbfa7379 | [
"MIT"
] | 1 | 2022-03-18T23:51:54.000Z | 2022-03-21T18:02:44.000Z | extract/river/extract_rivers.py | parkermac/LO | 09e0197de7f2166bfa835ec62018b7a8fbfa7379 | [
"MIT"
] | null | null | null | """
Extract as-run river time series.
To test on mac:
run extract_rivers -gtx cas6_v3_lo8b -0 2019.07.04 -1 2019.07.04
To run on perigee:
run extract_rivers -gtx cas6_v3_lo8b -0 2018.01.01 -1 2018.01.10
run extract_rivers -gtx cas6_v3_lo8b -0 2018.01.01 -1 2018.12.31
Performance: takes 23 sec per year on perigee
M... | 28.253846 | 121 | 0.659406 | 600 | 3,673 | 3.925 | 0.371667 | 0.020807 | 0.019108 | 0.024204 | 0.177919 | 0.172399 | 0.139278 | 0.139278 | 0.107856 | 0.107856 | 0 | 0.038031 | 0.198203 | 3,673 | 129 | 122 | 28.472868 | 0.76163 | 0.319902 | 0 | 0.123288 | 0 | 0 | 0.151454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.109589 | 0 | 0.109589 | 0.041096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cc884c667af3244727045d36ce0f98e65a2527d2 | 6,361 | py | Python | laia/models/kws/dortmund_phocnet.py | basbeu/PyLaia | d14458484b56622204b1730a7d53220c5d0f1bc1 | [
"MIT"
] | 2 | 2020-09-10T13:31:17.000Z | 2021-07-31T09:44:17.000Z | laia/models/kws/dortmund_phocnet.py | basbeu/PyLaia | d14458484b56622204b1730a7d53220c5d0f1bc1 | [
"MIT"
] | 1 | 2020-12-06T18:11:52.000Z | 2020-12-06T18:19:38.000Z | laia/models/kws/dortmund_phocnet.py | basbeu/PyLaia | d14458484b56622204b1730a7d53220c5d0f1bc1 | [
"MIT"
] | 2 | 2020-04-20T13:40:56.000Z | 2020-10-17T11:59:55.000Z | from __future__ import absolute_import
import math
import operator
from collections import OrderedDict
from functools import reduce
from typing import Union, Sequence, Optional
import torch
from laia.data import PaddedTensor
from laia.nn.pyramid_maxpool_2d import PyramidMaxPool2d
from laia.nn.temporal_pyramid_maxpoo... | 41.575163 | 88 | 0.564377 | 813 | 6,361 | 4.265683 | 0.184502 | 0.07872 | 0.068627 | 0.095156 | 0.395329 | 0.395329 | 0.372837 | 0.309977 | 0.309977 | 0.284602 | 0 | 0.056284 | 0.304512 | 6,361 | 152 | 89 | 41.848684 | 0.727622 | 0.076246 | 0 | 0.079646 | 0 | 0 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 1 | 0.070796 | false | 0 | 0.088496 | 0.00885 | 0.230089 | 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 |
cc8a2d2f86634a18b7bce0839a293dfedd5c4feb | 1,541 | py | Python | robocute/widget/__init__.py | kfields/robocute | f6f15ab74266053da5fe4ede3cc81310a62146e5 | [
"MIT"
] | 1 | 2015-08-24T21:58:34.000Z | 2015-08-24T21:58:34.000Z | robocute/widget/__init__.py | kfields/robocute | f6f15ab74266053da5fe4ede3cc81310a62146e5 | [
"MIT"
] | null | null | null | robocute/widget/__init__.py | kfields/robocute | f6f15ab74266053da5fe4ede3cc81310a62146e5 | [
"MIT"
] | null | null | null | import pyglet
from pyglet.gl import *
from robocute.node import *
from robocute.vu import *
from robocute.shape import Rect
class WidgetVu(Vu):
def __init__(self, node):
super().__init__(node)
#
self.content = Rect()
#
self.margin_top = 5
self.margin_b... | 27.035088 | 81 | 0.541856 | 178 | 1,541 | 4.522472 | 0.241573 | 0.149068 | 0.069565 | 0.032298 | 0.181366 | 0.129193 | 0 | 0 | 0 | 0 | 0 | 0.006141 | 0.365996 | 1,541 | 57 | 82 | 27.035088 | 0.81781 | 0.010383 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.119048 | 0 | 0.357143 | 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 |
cc8d3cb600d5b30b2c38ef88bbba0a6183336176 | 8,954 | py | Python | sp3-diffusion/extract-convert.py | robfairh/npre555-cp03 | 2aea7ae2df4a720c5d09003f98192f8986a6d107 | [
"BSD-3-Clause"
] | null | null | null | sp3-diffusion/extract-convert.py | robfairh/npre555-cp03 | 2aea7ae2df4a720c5d09003f98192f8986a6d107 | [
"BSD-3-Clause"
] | 2 | 2021-01-04T12:29:30.000Z | 2021-02-01T11:13:45.000Z | sp3-diffusion/extract-convert.py | robfairh/npre555-cp03 | 2aea7ae2df4a720c5d09003f98192f8986a6d107 | [
"BSD-3-Clause"
] | null | null | null | # This script is based on moltres/python/extractSerpent2GCs.py
import os
import numpy as np
import argparse
import subprocess
import serpentTools as sT
def makePropertiesDir(
outdir,
filebase,
mapFile,
unimapFile,
serp1=False,
fromMain=False):
""" Takes in a mapping... | 38.594828 | 78 | 0.52256 | 916 | 8,954 | 5.069869 | 0.272926 | 0.027132 | 0.042205 | 0.049957 | 0.447244 | 0.406546 | 0.372308 | 0.372308 | 0.359819 | 0.359819 | 0 | 0.016878 | 0.364753 | 8,954 | 231 | 79 | 38.761905 | 0.799578 | 0.094036 | 0 | 0.41954 | 0 | 0 | 0.096758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005747 | false | 0 | 0.028736 | 0 | 0.034483 | 0.022989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc8e5699c6d924eefec86f5ef76ba0da8a0749bf | 63,581 | py | Python | ms1searchpy/main.py | markmipt/ms1searchpy | 1fae3ba9ca25ac151b34110d333820f0a063ee11 | [
"Apache-2.0"
] | 6 | 2020-01-28T12:29:02.000Z | 2022-02-01T14:43:44.000Z | ms1searchpy/main.py | markmipt/ms1searchpy | 1fae3ba9ca25ac151b34110d333820f0a063ee11 | [
"Apache-2.0"
] | 3 | 2021-07-30T01:28:05.000Z | 2021-11-25T09:14:31.000Z | ms1searchpy/main.py | markmipt/ms1searchpy | 1fae3ba9ca25ac151b34110d333820f0a063ee11 | [
"Apache-2.0"
] | 2 | 2020-07-23T10:01:10.000Z | 2021-05-04T12:46:04.000Z | import os
from . import utils
import numpy as np
from scipy.stats import scoreatpercentile
from scipy.optimize import curve_fit
from scipy import exp
import operator
from copy import copy, deepcopy
from collections import defaultdict, Counter
import re
from pyteomics import parser, mass, fasta, auxiliary as aux, achrom... | 37.466706 | 276 | 0.564225 | 8,352 | 63,581 | 4.07136 | 0.073994 | 0.030349 | 0.014557 | 0.004117 | 0.68142 | 0.633425 | 0.601517 | 0.593195 | 0.578138 | 0.553111 | 0 | 0.018811 | 0.316069 | 63,581 | 1,696 | 277 | 37.488797 | 0.76316 | 0.029112 | 0 | 0.614855 | 0 | 0.000766 | 0.05699 | 0.006033 | 0 | 0 | 0 | 0.00059 | 0 | 1 | 0.015314 | false | 0.000766 | 0.04977 | 0.002297 | 0.078867 | 0.032159 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc930b4f7f09f8fa1727fc2d776abafb2a109c6e | 5,991 | py | Python | tests/test_contrib/test_prepredict.py | uricod/yellowbrick | 6fb2e9b7e5b2998c6faa4dcca81a4b0f91bf29b4 | [
"Apache-2.0"
] | 1 | 2017-03-03T03:26:54.000Z | 2017-03-03T03:26:54.000Z | tests/test_contrib/test_prepredict.py | uricod/yellowbrick | 6fb2e9b7e5b2998c6faa4dcca81a4b0f91bf29b4 | [
"Apache-2.0"
] | 1 | 2021-11-10T18:06:19.000Z | 2021-11-10T18:06:19.000Z | tests/test_contrib/test_prepredict.py | uricod/yellowbrick | 6fb2e9b7e5b2998c6faa4dcca81a4b0f91bf29b4 | [
"Apache-2.0"
] | null | null | null | # tests.test_contrib.test_prepredict
# Test the prepredict estimator.
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Mon Jul 12 07:07:33 2021 -0400
#
# ID: test_prepredict.py [] benjamin@bengfort.com $
"""
Test the prepredict estimator.
"""
##########################################################... | 32.037433 | 93 | 0.624604 | 726 | 5,991 | 5.044077 | 0.269972 | 0.019115 | 0.037684 | 0.0355 | 0.358274 | 0.278263 | 0.259694 | 0.232933 | 0.232933 | 0.209995 | 0 | 0.02437 | 0.212318 | 5,991 | 186 | 94 | 32.209677 | 0.751642 | 0.223335 | 0 | 0.139785 | 0 | 0 | 0.025112 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 1 | 0.075269 | false | 0 | 0.139785 | 0 | 0.225806 | 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 |
cc93993829d4a8f1dc6a847d22783d8908c2b006 | 2,259 | py | Python | examples/metrics/fc/example_idtxl_wrapper_multi.py | HelmchenLabSoftware/mesostat-dev | 8baa7120b892fe0df893cdcf0f20f49876643d75 | [
"MIT"
] | null | null | null | examples/metrics/fc/example_idtxl_wrapper_multi.py | HelmchenLabSoftware/mesostat-dev | 8baa7120b892fe0df893cdcf0f20f49876643d75 | [
"MIT"
] | null | null | null | examples/metrics/fc/example_idtxl_wrapper_multi.py | HelmchenLabSoftware/mesostat-dev | 8baa7120b892fe0df893cdcf0f20f49876643d75 | [
"MIT"
] | null | null | null | import os, sys
import numpy as np
import matplotlib.pyplot as plt
# Export library path
rootname = "mesoscopic-functional-connectivity"
thispath = os.path.dirname(os.path.abspath(__file__))
rootpath = os.path.join(thispath[:thispath.index(rootname)], rootname)
print("Appending project path", rootpath)
sys.path.append(... | 29.723684 | 93 | 0.660912 | 279 | 2,259 | 5.258065 | 0.512545 | 0.02454 | 0.03272 | 0.023177 | 0.035446 | 0.035446 | 0 | 0 | 0 | 0 | 0 | 0.019702 | 0.168659 | 2,259 | 76 | 94 | 29.723684 | 0.761448 | 0.234617 | 0 | 0 | 0 | 0 | 0.169279 | 0.021317 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc97881f01338acc3697d0a0591a9ee19e6dbad9 | 1,747 | py | Python | project.py | blendacosta/CIP_FinalProject | 8f50298d1b35cffe4569f5a78a158d6d699fa532 | [
"MIT"
] | null | null | null | project.py | blendacosta/CIP_FinalProject | 8f50298d1b35cffe4569f5a78a158d6d699fa532 | [
"MIT"
] | null | null | null | project.py | blendacosta/CIP_FinalProject | 8f50298d1b35cffe4569f5a78a158d6d699fa532 | [
"MIT"
] | null | null | null | '''
A Gameplay Mechanic [TS4]
By CozyGnomes (https://cozygnomes.tumblr.com/)
This is an existing document that contains several things you can do in your gameplay on TS4.
This program comes with the intention of automatically generating the related phrase without
having to sear... | 37.170213 | 112 | 0.661133 | 233 | 1,747 | 4.849785 | 0.506438 | 0.069027 | 0.030089 | 0.035398 | 0.120354 | 0.120354 | 0 | 0 | 0 | 0 | 0 | 0.004601 | 0.253578 | 1,747 | 47 | 113 | 37.170213 | 0.861963 | 0.39439 | 0 | 0.193548 | 0 | 0.032258 | 0.218656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.032258 | 0 | 0.16129 | 0.322581 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc9d27fc8106d84826a9bc91142a53251a35c56a | 62,936 | py | Python | niimpy/preprocess.py | CxAalto/niimpy | ffd20f9c6aba1671d9035f47715d1649ced0e6e7 | [
"MIT"
] | 5 | 2021-11-23T12:05:23.000Z | 2022-02-11T12:57:50.000Z | niimpy/preprocess.py | niima-project/niimpy | 975470507b1f8836d9e29d43601e345612b06a62 | [
"MIT"
] | 62 | 2021-07-16T09:17:18.000Z | 2022-03-16T11:27:50.000Z | niimpy/preprocess.py | niima-project/niimpy | 975470507b1f8836d9e29d43601e345612b06a62 | [
"MIT"
] | 6 | 2021-09-07T13:06:57.000Z | 2022-03-14T11:26:30.000Z | ################################################################################
# This is the main file for preprocessing smartphone sensor data #
# #
# Contributors: Anna Hakala & Ana Triana ... | 42.182306 | 270 | 0.668981 | 8,346 | 62,936 | 4.936856 | 0.072849 | 0.030677 | 0.014805 | 0.015678 | 0.664855 | 0.624275 | 0.597845 | 0.573866 | 0.544839 | 0.531199 | 0 | 0.010402 | 0.191909 | 62,936 | 1,491 | 271 | 42.210597 | 0.799717 | 0.204319 | 0 | 0.528455 | 0 | 0.005807 | 0.195521 | 0.013224 | 0 | 0 | 0 | 0.004024 | 0.091754 | 1 | 0.030197 | false | 0.002323 | 0.012776 | 0 | 0.074332 | 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 |
cc9e3bc94eb629f76a855b39c6d9abe102c7440e | 15,570 | py | Python | analog-voltage-control/analogVoltageController.py | jsbangsund/measurement-automation-tools | d2c2fd58b3a6884945081cb9a9ad87366da4a10e | [
"MIT"
] | 2 | 2018-09-27T09:47:47.000Z | 2022-03-24T09:53:04.000Z | analog-voltage-control/analogVoltageController.py | jsbangsund/measurement-automation-tools | d2c2fd58b3a6884945081cb9a9ad87366da4a10e | [
"MIT"
] | null | null | null | analog-voltage-control/analogVoltageController.py | jsbangsund/measurement-automation-tools | d2c2fd58b3a6884945081cb9a9ad87366da4a10e | [
"MIT"
] | null | null | null | # imports
import visa
import numpy as np
import os
import csv
import time
import datetime
import tkinter as tk
from tkinter.filedialog import askopenfilename, askdirectory
from tkinter.ttk import Frame, Button, Style,Treeview, Scrollbar, Checkbutton
from functools import partial
import serial
# This app uses an arduino... | 48.504673 | 107 | 0.617213 | 2,014 | 15,570 | 4.65144 | 0.189176 | 0.055508 | 0.032451 | 0.036507 | 0.371477 | 0.30316 | 0.230252 | 0.197267 | 0.162468 | 0.126921 | 0 | 0.020344 | 0.248619 | 15,570 | 321 | 108 | 48.504673 | 0.780409 | 0.107065 | 0 | 0.134831 | 0 | 0 | 0.135457 | 0.039879 | 0 | 0 | 0.000722 | 0 | 0 | 1 | 0.082397 | false | 0 | 0.041199 | 0 | 0.146067 | 0.033708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cca08eaaa789f720d1578ebb6f7b99357f1739e1 | 7,298 | py | Python | marble-plotter-dous/src/main/python/server.py | paser4se/marble | 35da5ac8ff24ff7f30a135cbabf57f60f06f54e3 | [
"Apache-2.0"
] | 2 | 2017-06-05T13:06:06.000Z | 2021-06-23T13:53:33.000Z | marble-plotter-dous/src/main/python/server.py | paser4se/marble | 35da5ac8ff24ff7f30a135cbabf57f60f06f54e3 | [
"Apache-2.0"
] | 35 | 2015-07-21T15:09:24.000Z | 2020-07-08T09:06:08.000Z | marble-plotter-dous/src/main/python/server.py | paser4se/marble | 35da5ac8ff24ff7f30a135cbabf57f60f06f54e3 | [
"Apache-2.0"
] | 5 | 2015-06-16T09:40:39.000Z | 2020-11-05T08:13:57.000Z | # Rest Server
from flask import Flask, jsonify, abort, request
# Eureka client
from eureka.client import EurekaClient
# Background tasks
import threading
import atexit
import logging
import socket
import netifaces as ni
import sys
import os
import time
# Plotter libs
from io import BytesIO
import pymongo
from pymongo ... | 29.075697 | 121 | 0.565908 | 766 | 7,298 | 5.227154 | 0.368146 | 0.037463 | 0.02997 | 0.025475 | 0.111139 | 0.05994 | 0.05994 | 0.05994 | 0.032967 | 0 | 0 | 0.010654 | 0.331187 | 7,298 | 250 | 122 | 29.192 | 0.80967 | 0.084955 | 0 | 0.106145 | 0 | 0 | 0.082507 | 0 | 0 | 0 | 0 | 0.004 | 0 | 1 | 0.039106 | false | 0 | 0.100559 | 0 | 0.173184 | 0.011173 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cca2be577b6cb5b5ef2f77c8c187c1f9904195fb | 2,687 | py | Python | django_docutils/favicon/rst/transforms/favicon.py | tony/django-docutils | ed3e089728507a0f579a62bcb182f283bc59929c | [
"MIT"
] | 10 | 2017-04-28T00:19:10.000Z | 2020-07-22T15:27:09.000Z | django_docutils/favicon/rst/transforms/favicon.py | tony/django-docutils | ed3e089728507a0f579a62bcb182f283bc59929c | [
"MIT"
] | 231 | 2017-01-17T04:47:51.000Z | 2022-03-30T03:03:42.000Z | django_docutils/favicon/rst/transforms/favicon.py | tony/django-docutils | ed3e089728507a0f579a62bcb182f283bc59929c | [
"MIT"
] | 1 | 2019-01-25T14:42:15.000Z | 2019-01-25T14:42:15.000Z | import tldextract
from django.db.models import Q
from docutils import nodes
from docutils.transforms import Transform
from django_docutils.favicon.models import get_favicon_model
from ..nodes import icon
Favicon = get_favicon_model()
def resolve_favicon(url):
"""Given a URL to a website, see if a Favicon exist... | 30.885057 | 81 | 0.61965 | 351 | 2,687 | 4.683761 | 0.37037 | 0.048662 | 0.018248 | 0.015815 | 0.091241 | 0.053528 | 0.053528 | 0.053528 | 0 | 0 | 0 | 0.001583 | 0.294753 | 2,687 | 86 | 82 | 31.244186 | 0.865963 | 0.314477 | 0 | 0.133333 | 0 | 0 | 0.045737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cca383b23457a782befbce9c96268d9161502ad0 | 1,733 | py | Python | xnmt/model_context.py | marcintustin/xnmt | f315fc5e493d25746bbde46d2c89cea3410d43df | [
"Apache-2.0"
] | null | null | null | xnmt/model_context.py | marcintustin/xnmt | f315fc5e493d25746bbde46d2c89cea3410d43df | [
"Apache-2.0"
] | null | null | null | xnmt/model_context.py | marcintustin/xnmt | f315fc5e493d25746bbde46d2c89cea3410d43df | [
"Apache-2.0"
] | null | null | null | import dynet as dy
import os
from xnmt.serializer import Serializable
class ModelContext(Serializable):
yaml_tag = u'!ModelContext'
def __init__(self):
self.dropout = 0.0
self.weight_noise = 0.0
self.default_layer_dim = 512
self.dynet_param_collection = None
self.serialize_params = ["dropout", ... | 38.511111 | 100 | 0.709175 | 262 | 1,733 | 4.435115 | 0.293893 | 0.068847 | 0.111876 | 0.04389 | 0.025818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013167 | 0.16734 | 1,733 | 44 | 101 | 39.386364 | 0.7921 | 0 | 0 | 0 | 0 | 0 | 0.045009 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.190476 | false | 0 | 0.071429 | 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 |
cca508227383d8fc79a193435ae1d2995d0eb8b7 | 3,100 | py | Python | utils.py | Akshayvm98/Django-School | 723d52db2cd3bc7665680a3adaf8687f97836d48 | [
"MIT"
] | 26 | 2015-08-04T00:13:27.000Z | 2021-03-19T01:01:14.000Z | utils.py | Akshayvm98/Django-School | 723d52db2cd3bc7665680a3adaf8687f97836d48 | [
"MIT"
] | null | null | null | utils.py | Akshayvm98/Django-School | 723d52db2cd3bc7665680a3adaf8687f97836d48 | [
"MIT"
] | 28 | 2015-01-19T15:10:15.000Z | 2020-10-27T11:22:21.000Z | import csv
from django.http import HttpResponse, HttpResponseForbidden
from django.template.defaultfilters import slugify
from django.db.models.loading import get_model
def export(qs, fields=None):
model = qs.model
response = HttpResponse(mimetype='text/csv')
response['Content-Disposition'] = 'attachment; ... | 36.470588 | 179 | 0.639032 | 397 | 3,100 | 4.874055 | 0.355164 | 0.041344 | 0.020155 | 0.026357 | 0.034109 | 0.034109 | 0 | 0 | 0 | 0 | 0 | 0.001279 | 0.243226 | 3,100 | 84 | 180 | 36.904762 | 0.823529 | 0.086129 | 0 | 0 | 0 | 0 | 0.041222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.192308 | 0 | 0.326923 | 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 |
ccae60674a2d5d72a4d3496efd86de39ff78e0dc | 13,807 | py | Python | src/python/pants/backend/docker/util_rules/docker_build_context_test.py | asherf/pants | e010b93c4123b4446a631cac5db0b7ea15634686 | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/docker/util_rules/docker_build_context_test.py | asherf/pants | e010b93c4123b4446a631cac5db0b7ea15634686 | [
"Apache-2.0"
] | 14 | 2021-05-03T13:54:41.000Z | 2022-03-30T10:20:58.000Z | src/python/pants/backend/docker/util_rules/docker_build_context_test.py | asherf/pants | e010b93c4123b4446a631cac5db0b7ea15634686 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from textwrap import dedent
from typing import Any, ContextManager
import pytest
from pants.backend.docker.subsystems.dockerfile_parser import rules a... | 32.640662 | 99 | 0.557833 | 1,453 | 13,807 | 5.084652 | 0.150723 | 0.046021 | 0.030319 | 0.032756 | 0.483487 | 0.407282 | 0.376827 | 0.347185 | 0.285869 | 0.250406 | 0 | 0.008836 | 0.319693 | 13,807 | 422 | 100 | 32.718009 | 0.777707 | 0.050916 | 0 | 0.347962 | 0 | 0 | 0.209768 | 0.062193 | 0 | 0 | 0 | 0 | 0.040752 | 1 | 0.031348 | false | 0 | 0.081505 | 0 | 0.115987 | 0.003135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccb0f6edadd14edc784ea01c369c3b62583b31ca | 5,100 | py | Python | src/rescuexport/dal.py | karlicoss/rescuexport | 69f5275bfa7cb39a1ba74b99312b605ba340916a | [
"MIT"
] | 6 | 2019-11-28T10:56:53.000Z | 2022-01-10T21:07:40.000Z | src/rescuexport/dal.py | karlicoss/rescuexport | 69f5275bfa7cb39a1ba74b99312b605ba340916a | [
"MIT"
] | null | null | null | src/rescuexport/dal.py | karlicoss/rescuexport | 69f5275bfa7cb39a1ba74b99312b605ba340916a | [
"MIT"
] | 1 | 2020-12-08T14:16:53.000Z | 2020-12-08T14:16:53.000Z | #!/usr/bin/env python3
import logging
from pathlib import Path
import json
from datetime import datetime, timedelta
from typing import Set, Sequence, Any, Iterator
from dataclasses import dataclass
from .exporthelpers.dal_helper import PathIsh, Json, Res, datetime_naive
from .exporthelpers.logging_helper import LazyLo... | 31.097561 | 122 | 0.550392 | 631 | 5,100 | 4.353407 | 0.432647 | 0.009829 | 0.011649 | 0.016017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014799 | 0.350784 | 5,100 | 163 | 123 | 31.288344 | 0.81486 | 0.123137 | 0 | 0.053097 | 0 | 0.00885 | 0.110596 | 0 | 0 | 0 | 0 | 0.006135 | 0 | 1 | 0.061947 | false | 0 | 0.097345 | 0 | 0.221239 | 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 |
ccb20b99e03872ed73a498ac6c05de75181ce2b4 | 1,287 | py | Python | MuonAnalysis/MuonAssociators/python/muonHLTL1Match_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | MuonAnalysis/MuonAssociators/python/muonHLTL1Match_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | MuonAnalysis/MuonAssociators/python/muonHLTL1Match_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from MuonAnalysis.MuonAssociators.muonL1Match_cfi import *
muonHLTL1Match = cms.EDProducer("HLTL1MuonMatcher",
muonL1MatcherParameters,
# Reconstructed muons
src = cms.InputTag("muons"),
# L1 Muon collection, and preselection on that collection
... | 40.21875 | 186 | 0.679876 | 143 | 1,287 | 6.097902 | 0.664336 | 0.045872 | 0.025229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0.226884 | 1,287 | 31 | 187 | 41.516129 | 0.861307 | 0.574981 | 0 | 0 | 0 | 0 | 0.144 | 0.054 | 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 |
ccb315a349fc8cff12751a9ddd2a5e9db7858230 | 632 | py | Python | Curso_em_Video_py3/ex082.py | Rodrigo98Matos/Projetos_py | 6428e2c09d28fd8a717743f4434bc788e7d7d3cc | [
"MIT"
] | 1 | 2021-05-11T12:39:43.000Z | 2021-05-11T12:39:43.000Z | Curso_em_Video_py3/ex082.py | Rodrigo98Matos/Projetos_py | 6428e2c09d28fd8a717743f4434bc788e7d7d3cc | [
"MIT"
] | null | null | null | Curso_em_Video_py3/ex082.py | Rodrigo98Matos/Projetos_py | 6428e2c09d28fd8a717743f4434bc788e7d7d3cc | [
"MIT"
] | null | null | null | lista = list()
while True:
lista.append(int(input("Digite um número inteiro:\t")))
while True:
p = str(input("Digitar mais números?\t").strip())[0].upper()
if p in 'SN':
break
else:
print("\033[31mDigite uma opção válida!\033[m")
if p == 'N':
break
par... | 26.333333 | 140 | 0.568038 | 102 | 632 | 3.519608 | 0.480392 | 0.044568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079741 | 0.265823 | 632 | 23 | 141 | 27.478261 | 0.693966 | 0 | 0 | 0.26087 | 0 | 0.043478 | 0.349684 | 0.06962 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccb69ce91869d886c281dd5c097515346b3bb141 | 844 | py | Python | pyskel_bc/cli.py | smnorris/pyskel_bc | d8bdec3e15da6268c9b6a0f3be1fdd6af9737d21 | [
"Apache-2.0"
] | null | null | null | pyskel_bc/cli.py | smnorris/pyskel_bc | d8bdec3e15da6268c9b6a0f3be1fdd6af9737d21 | [
"Apache-2.0"
] | null | null | null | pyskel_bc/cli.py | smnorris/pyskel_bc | d8bdec3e15da6268c9b6a0f3be1fdd6af9737d21 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Province of British Columbia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 30.142857 | 76 | 0.740521 | 133 | 844 | 4.669173 | 0.646617 | 0.096618 | 0.041868 | 0.05153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011445 | 0.171801 | 844 | 27 | 77 | 31.259259 | 0.876967 | 0.726303 | 0 | 0 | 0 | 0 | 0.070755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 |
ccb6b1cc30ddbfae5e44890354c45b22ed3bc398 | 757 | py | Python | solutions/python3/558.py | sm2774us/amazon_interview_prep_2021 | f580080e4a6b712b0b295bb429bf676eb15668de | [
"MIT"
] | 42 | 2020-08-02T07:03:49.000Z | 2022-03-26T07:50:15.000Z | solutions/python3/558.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | null | null | null | solutions/python3/558.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | 40 | 2020-02-08T02:50:24.000Z | 2022-03-26T15:38:10.000Z | class Solution:
def intersect(self, q1, q2):
if q1.isLeaf:
return q1.val and q1 or q2
elif q2.isLeaf:
return q2.val and q2 or q1
else:
tLeft = self.intersect(q1.topLeft, q2.topLeft)
tRight = self.intersect(q1.topRight, q2.topRight)
... | 47.3125 | 136 | 0.587847 | 97 | 757 | 4.587629 | 0.278351 | 0.116854 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034682 | 0.314399 | 757 | 16 | 137 | 47.3125 | 0.822736 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ccba7105c97f04202293ba5c9e3bb9286a1e1c30 | 1,745 | py | Python | tests/test_main.py | giulionf/GetOldTweets3 | 038b8fed7da27300e6c611d3c0fd617588075a58 | [
"MIT"
] | null | null | null | tests/test_main.py | giulionf/GetOldTweets3 | 038b8fed7da27300e6c611d3c0fd617588075a58 | [
"MIT"
] | null | null | null | tests/test_main.py | giulionf/GetOldTweets3 | 038b8fed7da27300e6c611d3c0fd617588075a58 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import time
import GetOldTweets3 as Got3
if sys.version_info[0] < 3:
raise Exception("Python 2.x is not supported. Please upgrade to 3.x")
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
def test_username():
tweet_criteria =... | 33.557692 | 92 | 0.681948 | 228 | 1,745 | 5.004386 | 0.346491 | 0.091148 | 0.059597 | 0.084137 | 0.638913 | 0.638913 | 0.603856 | 0.574058 | 0.574058 | 0.574058 | 0 | 0.060732 | 0.169628 | 1,745 | 51 | 93 | 34.215686 | 0.726708 | 0.024642 | 0 | 0.5 | 0 | 0 | 0.157647 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ccbaa690673254ea1cda4e119201ebd6a7af3c57 | 421 | py | Python | extsum/__main__.py | streof/extsum | 45949a6a6aff65ceaf2a4bdc70f5b4d9660fca5f | [
"MIT"
] | null | null | null | extsum/__main__.py | streof/extsum | 45949a6a6aff65ceaf2a4bdc70f5b4d9660fca5f | [
"MIT"
] | null | null | null | extsum/__main__.py | streof/extsum | 45949a6a6aff65ceaf2a4bdc70f5b4d9660fca5f | [
"MIT"
] | null | null | null | import extsum as ext
URL = "https://i.picsum.photos/id/42/1/1.jpg"
# Uncomment for random Picsum photo
# URL = "https://picsum.photos/1/1"
if __name__ == '__main__':
# Init
photo = ext.Load(URL)
photo_parsed = ext.Parse(photo)
# Print found ID (if any)
id_found = photo_parsed.find_id()
if id_... | 23.388889 | 45 | 0.631829 | 67 | 421 | 3.761194 | 0.507463 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.230404 | 421 | 17 | 46 | 24.764706 | 0.759259 | 0.228029 | 0 | 0 | 0 | 0 | 0.2625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
ccbaec8553da0b692edf4bc23f5c78797c64aa03 | 931 | py | Python | rplugin/python3/denite/kind/lab_browse.py | lighttiger2505/denite-lab | 611e5e081d049d79999a8c0a0f38c2466d8ca970 | [
"MIT"
] | 1 | 2018-02-26T15:27:03.000Z | 2018-02-26T15:27:03.000Z | rplugin/python3/denite/kind/lab_browse.py | lighttiger2505/denite-lab | 611e5e081d049d79999a8c0a0f38c2466d8ca970 | [
"MIT"
] | null | null | null | rplugin/python3/denite/kind/lab_browse.py | lighttiger2505/denite-lab | 611e5e081d049d79999a8c0a0f38c2466d8ca970 | [
"MIT"
] | null | null | null | import subprocess
from .base import Base
class Kind(Base):
def __init__(self, vim):
super().__init__(vim)
self.name = 'lab_browse'
self.default_action = 'lab_browse'
def action_lab_browse(self, context):
for target in context['targets']:
iid = target['word']
... | 30.032258 | 64 | 0.525242 | 87 | 931 | 5.413793 | 0.574713 | 0.076433 | 0.055202 | 0.093418 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005199 | 0.380236 | 931 | 30 | 65 | 31.033333 | 0.811092 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.208333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccbbb657919673062f15afd66c5a069d9e36de11 | 3,358 | py | Python | Betsy/Betsy/modules/plot_sample_pca.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | 9 | 2017-01-13T02:38:41.000Z | 2021-04-08T00:44:39.000Z | Betsy/Betsy/modules/plot_sample_pca.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | null | null | null | Betsy/Betsy/modules/plot_sample_pca.py | jefftc/changlab | 11da8c415afefcba0b0216238387c75aeb3a56ac | [
"MIT"
] | 4 | 2017-01-05T16:25:25.000Z | 2019-12-12T20:07:38.000Z | from Module import AbstractModule
class Module(AbstractModule):
def __init__(self):
AbstractModule.__init__(self)
def run(
self, network, antecedents, out_attributes, user_options, num_cores,
outfile):
from genomicode import filelib
from genomicode import parallel
... | 32.921569 | 76 | 0.532758 | 418 | 3,358 | 4.114833 | 0.313397 | 0.055814 | 0.065116 | 0.016279 | 0.153488 | 0.139535 | 0.126744 | 0.063953 | 0.063953 | 0.063953 | 0 | 0.015686 | 0.316557 | 3,358 | 101 | 77 | 33.247525 | 0.733769 | 0.584276 | 0 | 0 | 0 | 0 | 0.087665 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0.090909 | false | 0 | 0.121212 | 0.030303 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ccbc5e88899c66f97d3d1a9a12e0ddc302dbc43e | 1,098 | py | Python | scripts/seg_vs_dog_plots.py | AbigailMcGovern/platelet-segmentation | 46cd87b81fc44473b07a2bebed1e6134b2582348 | [
"BSD-3-Clause"
] | 1 | 2022-02-01T23:40:38.000Z | 2022-02-01T23:40:38.000Z | scripts/seg_vs_dog_plots.py | AbigailMcGovern/platelet-segmentation | 46cd87b81fc44473b07a2bebed1e6134b2582348 | [
"BSD-3-Clause"
] | 3 | 2021-03-12T02:03:15.000Z | 2021-03-31T00:39:05.000Z | scripts/seg_vs_dog_plots.py | AbigailMcGovern/platelet-segmentation | 46cd87b81fc44473b07a2bebed1e6134b2582348 | [
"BSD-3-Clause"
] | 1 | 2021-04-06T23:23:32.000Z | 2021-04-06T23:23:32.000Z | from plots import plot_experiment_APs, plot_experiment_no_diff, experiment_VI_plots
import os
# paths, names, title, out_dir, out_name
data_dir = '/Users/amcg0011/Data/pia-tracking/dl-results/210512_150843_seed_z-1_y-1_x-1_m_centg'
suffix = 'seed_z-1_y-1_x-1_m_centg'
out_dir = os.path.join(data_dir, 'DL-vs-Dog')
ap_pat... | 64.588235 | 106 | 0.736794 | 202 | 1,098 | 3.638614 | 0.247525 | 0.07619 | 0.095238 | 0.133333 | 0.429932 | 0.353742 | 0.319728 | 0.319728 | 0.22449 | 0.17415 | 0 | 0.0316 | 0.106557 | 1,098 | 17 | 107 | 64.588235 | 0.717635 | 0.222222 | 0 | 0 | 0 | 0.071429 | 0.443008 | 0.364277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccc14d33e30db584c95153ccde86ea32ce7c48be | 8,331 | py | Python | wavelet_prosody_toolkit/wavelet_prosody_toolkit/cwt_global_spectrum.py | eugenemfu/TTS_HW | 34b3a32da2904578ddbd86bfd9529798cc3a1e9f | [
"BSD-3-Clause"
] | 115 | 2019-08-06T08:34:33.000Z | 2022-02-15T09:44:40.000Z | wavelet_prosody_toolkit/wavelet_prosody_toolkit/cwt_global_spectrum.py | eugenemfu/TTS_HW | 34b3a32da2904578ddbd86bfd9529798cc3a1e9f | [
"BSD-3-Clause"
] | 11 | 2019-08-13T15:27:07.000Z | 2022-03-28T15:59:39.000Z | wavelet_prosody_toolkit/wavelet_prosody_toolkit/cwt_global_spectrum.py | eugenemfu/TTS_HW | 34b3a32da2904578ddbd86bfd9529798cc3a1e9f | [
"BSD-3-Clause"
] | 32 | 2019-01-30T12:00:15.000Z | 2022-03-28T10:06:39.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
AUTHOR
- Antti Suni <antti.suni@helsinki.fi>
- Sébastien Le Maguer <lemagues@tcd.ie>
DESCRIPTION
usage: cwt_global_spectrum.py [-h] [-v] [-o OUTPUT]
[-P]
input_file
Tool for extracting global wavel... | 35.451064 | 171 | 0.591886 | 996 | 8,331 | 4.822289 | 0.370482 | 0.023319 | 0.016864 | 0.014991 | 0.043514 | 0.026858 | 0.026858 | 0 | 0 | 0 | 0 | 0.018619 | 0.226383 | 8,331 | 234 | 172 | 35.602564 | 0.72661 | 0.271396 | 0 | 0.018349 | 0 | 0 | 0.114477 | 0.004088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018349 | false | 0.009174 | 0.110092 | 0 | 0.137615 | 0.018349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccc2302b262199c91606683ac0c0ea01d97056a4 | 1,649 | py | Python | betahex/training/supervised.py | StarvingMarvin/betahex | 0626cf4d003e94423f34f3d83149702a5557ddb8 | [
"MIT"
] | 2 | 2019-03-17T07:09:14.000Z | 2020-05-04T17:40:51.000Z | betahex/training/supervised.py | StarvingMarvin/betahex | 0626cf4d003e94423f34f3d83149702a5557ddb8 | [
"MIT"
] | null | null | null | betahex/training/supervised.py | StarvingMarvin/betahex | 0626cf4d003e94423f34f3d83149702a5557ddb8 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow.contrib import learn
from betahex.features import Features
from betahex.training.common import make_train_model, make_policy_input_fn, accuracy
from betahex.models import MODEL
tf.logging.set_verbosity(tf.logging.INFO)
def main(unused_argv):
# Load training and eval data... | 25.765625 | 84 | 0.627653 | 205 | 1,649 | 4.8 | 0.463415 | 0.035569 | 0.045732 | 0.051829 | 0.075203 | 0.075203 | 0.075203 | 0.075203 | 0.075203 | 0 | 0 | 0.030604 | 0.266828 | 1,649 | 63 | 85 | 26.174603 | 0.783292 | 0.016374 | 0 | 0 | 0 | 0 | 0.116667 | 0.065432 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.106383 | 0 | 0.12766 | 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 |
ccc373e2e0f33ced1981ea3d8ae722d60f288cc2 | 9,747 | py | Python | MeterToTransPairingScripts.py | sandialabs/distribution-system-model-calibration | 55493cc03b8ebcc5a0f2e7d2ff9092cb2e608f90 | [
"BSD-3-Clause"
] | 1 | 2021-11-12T21:30:35.000Z | 2021-11-12T21:30:35.000Z | MeterTransformerPairing/MeterToTransPairingScripts.py | sandialabs/distribution-system-model-calibration | 55493cc03b8ebcc5a0f2e7d2ff9092cb2e608f90 | [
"BSD-3-Clause"
] | null | null | null | MeterTransformerPairing/MeterToTransPairingScripts.py | sandialabs/distribution-system-model-calibration | 55493cc03b8ebcc5a0f2e7d2ff9092cb2e608f90 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
BSD 3-Clause License
Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software.
Redistribution and use in source and binary forms, with or without... | 48.492537 | 344 | 0.733149 | 1,245 | 9,747 | 5.719679 | 0.395181 | 0.006319 | 0.010111 | 0.015447 | 0.124982 | 0.10771 | 0.074287 | 0.053082 | 0.053082 | 0.053082 | 0 | 0.032297 | 0.13912 | 9,747 | 200 | 345 | 48.735 | 0.816351 | 0.560993 | 0 | 0.037736 | 0 | 0 | 0.184976 | 0.07601 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.113208 | 0 | 0.113208 | 0.132075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccc51ab14667f22cd9b5eaba86b2724ac98a38f4 | 10,726 | py | Python | mcdc_tnt/pyk_kernels/all/advance.py | jpmorgan98/MCDC-TNT-2 | c437596097caa9af56df95213e7f64db38aac40e | [
"BSD-3-Clause"
] | 1 | 2022-02-26T02:12:12.000Z | 2022-02-26T02:12:12.000Z | mcdc_tnt/pyk_kernels/all/advance.py | jpmorgan98/MCDC-TNT-2 | c437596097caa9af56df95213e7f64db38aac40e | [
"BSD-3-Clause"
] | null | null | null | mcdc_tnt/pyk_kernels/all/advance.py | jpmorgan98/MCDC-TNT-2 | c437596097caa9af56df95213e7f64db38aac40e | [
"BSD-3-Clause"
] | 1 | 2022-02-09T22:39:42.000Z | 2022-02-09T22:39:42.000Z | import math
import numpy as np
import pykokkos as pk
@pk.workload
class Advance_cycle:
def __init__(self, num_part, p_pos_x, p_pos_y, p_pos_z, p_dir_y, p_dir_z, p_dir_x, p_mesh_cell, p_speed, p_time, dx, mesh_total_xsec, L, p_dist_travled, p_end_trans, rands):
self.p_pos_x: pk.View1D[pk.double] = p... | 35.516556 | 312 | 0.591274 | 1,737 | 10,726 | 3.290155 | 0.096718 | 0.041295 | 0.027122 | 0.047594 | 0.545932 | 0.44392 | 0.36028 | 0.314611 | 0.245144 | 0.173928 | 0 | 0.021447 | 0.291441 | 10,726 | 301 | 313 | 35.634552 | 0.730526 | 0.067406 | 0 | 0.197605 | 0 | 0 | 0.009725 | 0.003089 | 0 | 0 | 0 | 0 | 0.02994 | 1 | 0.05988 | false | 0 | 0.017964 | 0 | 0.095808 | 0.041916 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ccc6026c8a78ded0d003eb1ba605983fe1d65590 | 1,123 | py | Python | facerec/face_util.py | seanbenhur/sih2020 | f8b5988425185ed3c85872b98b622932895f932b | [
"MIT"
] | null | null | null | facerec/face_util.py | seanbenhur/sih2020 | f8b5988425185ed3c85872b98b622932895f932b | [
"MIT"
] | null | null | null | facerec/face_util.py | seanbenhur/sih2020 | f8b5988425185ed3c85872b98b622932895f932b | [
"MIT"
] | null | null | null | import face_recognition as fr
def compare_faces(file1, file2):
"""
Compare two images and return True / False for matching.
"""
# Load the jpg files into numpy arrays
image1 = fr.load_image_file(file1)
image2 = fr.load_image_file(file2)
# Get the face encodings for each face in each im... | 33.029412 | 107 | 0.664292 | 159 | 1,123 | 4.553459 | 0.383648 | 0.049724 | 0.030387 | 0.041436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02019 | 0.250223 | 1,123 | 33 | 108 | 34.030303 | 0.839667 | 0.37667 | 0 | 0 | 0 | 0 | 0.098336 | 0.071104 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ccc6e968fc2455af2569e67afae509ff5c1e5fc0 | 3,354 | py | Python | src/correlation/dataset_correlation.py | sakdag/crime-data-analysis | 9c95238c6aaf1394f68be59e26e8c6d75f669d7e | [
"MIT"
] | null | null | null | src/correlation/dataset_correlation.py | sakdag/crime-data-analysis | 9c95238c6aaf1394f68be59e26e8c6d75f669d7e | [
"MIT"
] | null | null | null | src/correlation/dataset_correlation.py | sakdag/crime-data-analysis | 9c95238c6aaf1394f68be59e26e8c6d75f669d7e | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import pyproj as pyproj
import shapely as shapely
from shapely.geometry import Point
from haversine import haversine
import src.config.column_names as col_names
def correlate_and_save(crime_df: pd.DataFrame,
census_df: pd.DataFrame,
... | 46.583333 | 129 | 0.707812 | 461 | 3,354 | 4.793926 | 0.219089 | 0.079186 | 0.088688 | 0.079638 | 0.570588 | 0.567873 | 0.566516 | 0.543891 | 0.400905 | 0.363801 | 0 | 0.00833 | 0.212582 | 3,354 | 71 | 130 | 47.239437 | 0.828474 | 0.059332 | 0 | 0.296296 | 0 | 0 | 0.023492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.12963 | 0 | 0.203704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
cccd71a65c5bf63a13dfaa2062a6d5203e62b9ef | 2,386 | py | Python | blog/resources/tag.py | espstan/fBlog | 7c63d117a3bbae3da80b3e8d7f731ae89036eb0d | [
"MIT"
] | 2 | 2019-06-17T13:55:36.000Z | 2019-06-19T22:40:06.000Z | blog/resources/tag.py | espstan/fBlog | 7c63d117a3bbae3da80b3e8d7f731ae89036eb0d | [
"MIT"
] | 35 | 2019-06-17T07:00:49.000Z | 2020-02-17T09:41:53.000Z | blog/resources/tag.py | espstan/fBlog | 7c63d117a3bbae3da80b3e8d7f731ae89036eb0d | [
"MIT"
] | null | null | null | from flask_restful import Resource
from flask_restful import reqparse
from sqlalchemy.exc import SQLAlchemyError
from config import Configuration
from models.tag import TagModel as TM
class Tag(Resource):
parser = reqparse.RequestParser()
parser.add_argument('name',
type=str,
... | 31.394737 | 106 | 0.55658 | 287 | 2,386 | 4.43554 | 0.285714 | 0.091909 | 0.059701 | 0.07227 | 0.545954 | 0.545954 | 0.545954 | 0.468971 | 0.468971 | 0.43912 | 0 | 0.009197 | 0.316429 | 2,386 | 75 | 107 | 31.813333 | 0.771306 | 0 | 0 | 0.508475 | 0 | 0 | 0.093462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.084746 | 0.016949 | 0.40678 | 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 |
ccd0e580fc925afb48c3d9bac3c4c4c1b73ecf0c | 5,493 | py | Python | Agent.py | 594zyc/CMCC_DialogSystem | 9d85f4c319677bf5e682a562041b908fc3135a17 | [
"Apache-2.0"
] | 1 | 2019-11-20T16:36:30.000Z | 2019-11-20T16:36:30.000Z | Agent.py | 594zyc/CMCC_DialogSystem | 9d85f4c319677bf5e682a562041b908fc3135a17 | [
"Apache-2.0"
] | null | null | null | Agent.py | 594zyc/CMCC_DialogSystem | 9d85f4c319677bf5e682a562041b908fc3135a17 | [
"Apache-2.0"
] | null | null | null | """
结合所有的 Manager,实现text-in text-out的交互式 agent 的接口
"""
import os
import sys
import time
import argparse
import logging
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(BASE_DIR, '../..'))
os.environ["CUDA_VISIBLE_DEVICES"]="1"
from DM.DST.StateTracking import DialogStateTracker
from D... | 34.54717 | 97 | 0.54178 | 647 | 5,493 | 4.502318 | 0.315301 | 0.026777 | 0.034329 | 0.043254 | 0.214212 | 0.174734 | 0.108823 | 0.108823 | 0.108823 | 0.066941 | 0 | 0.015844 | 0.310577 | 5,493 | 158 | 98 | 34.765823 | 0.744917 | 0.026397 | 0 | 0.145161 | 0 | 0.008065 | 0.143797 | 0.023684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040323 | false | 0 | 0.080645 | 0 | 0.145161 | 0.08871 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae9f5ca026e9179a91eee39f486434f7618b47ec | 1,698 | py | Python | Object Detection and Tracking HSV color space.py | shivtejshete/Advanced_Image_Processing | b5a7ef94a44ab0b3bd9fa4a70d843099af70079e | [
"MIT"
] | null | null | null | Object Detection and Tracking HSV color space.py | shivtejshete/Advanced_Image_Processing | b5a7ef94a44ab0b3bd9fa4a70d843099af70079e | [
"MIT"
] | null | null | null | Object Detection and Tracking HSV color space.py | shivtejshete/Advanced_Image_Processing | b5a7ef94a44ab0b3bd9fa4a70d843099af70079e | [
"MIT"
] | null | null | null | import numpy as np
import cv2
#sample function - dummy callback function
def nothing(x):
pass
#capture live video
cap = cv2.VideoCapture(0)
#window for trackbars
cv2.namedWindow('Track')
#defining trackbars to control HSV values of given video stream
cv2.createTrackbar('L_HUE', 'Track', 0, 255, noth... | 29.789474 | 86 | 0.6596 | 241 | 1,698 | 4.514523 | 0.352697 | 0.09375 | 0.059743 | 0.124081 | 0.159926 | 0.159007 | 0.128676 | 0 | 0 | 0 | 0 | 0.046426 | 0.200825 | 1,698 | 57 | 87 | 29.789474 | 0.755343 | 0.206714 | 0 | 0 | 0 | 0 | 0.113193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.030303 | 0.060606 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ae9fdc83392f9acd375ec6b842e275792831330a | 15,934 | py | Python | tools/run_tests/xds_k8s_test_driver/tests/url_map/fault_injection_test.py | echo80313/grpc | 93cdc8b77e7b3fe4a3afec1c9c7e29b3f02ec3cf | [
"Apache-2.0"
] | null | null | null | tools/run_tests/xds_k8s_test_driver/tests/url_map/fault_injection_test.py | echo80313/grpc | 93cdc8b77e7b3fe4a3afec1c9c7e29b3f02ec3cf | [
"Apache-2.0"
] | 4 | 2022-02-27T18:59:37.000Z | 2022-02-27T18:59:53.000Z | tools/run_tests/xds_k8s_test_driver/tests/url_map/fault_injection_test.py | echo80313/grpc | 93cdc8b77e7b3fe4a3afec1c9c7e29b3f02ec3cf | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 43.654795 | 80 | 0.622756 | 1,649 | 15,934 | 5.754397 | 0.198302 | 0.037939 | 0.015175 | 0.028665 | 0.625777 | 0.604384 | 0.591632 | 0.583729 | 0.577616 | 0.566762 | 0 | 0.01431 | 0.289507 | 15,934 | 364 | 81 | 43.774725 | 0.823867 | 0.138572 | 0 | 0.659498 | 0 | 0 | 0.114666 | 0.017427 | 0 | 0 | 0 | 0 | 0.136201 | 1 | 0.075269 | false | 0.003584 | 0.028674 | 0.007168 | 0.157706 | 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 |
aea011bdabd2351b652997696862bc1051c59d81 | 647 | py | Python | reports/migrations/0103_auto_20190224_1000.py | CMU-TRP/podd-api | 6eb5c4598f848f75d131287163cd9babf2a0a0fc | [
"MIT"
] | 3 | 2020-04-26T06:28:50.000Z | 2021-04-05T08:02:26.000Z | reports/migrations/0103_auto_20190224_1000.py | CMU-TRP/podd-api | 6eb5c4598f848f75d131287163cd9babf2a0a0fc | [
"MIT"
] | 10 | 2020-06-05T17:36:10.000Z | 2022-03-11T23:16:42.000Z | reports/migrations/0103_auto_20190224_1000.py | CMU-TRP/podd-api | 6eb5c4598f848f75d131287163cd9babf2a0a0fc | [
"MIT"
] | 5 | 2021-04-08T08:43:49.000Z | 2021-11-27T06:36:46.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('reports', '0102_recordspec_group_key'),
]
operations = [
migrations.AlterField(
model_name='reportimage',
... | 23.962963 | 50 | 0.591963 | 59 | 647 | 6.220339 | 0.610169 | 0.108992 | 0.13624 | 0.158038 | 0.52861 | 0.52861 | 0.288828 | 0.288828 | 0.288828 | 0.288828 | 0 | 0.024336 | 0.301391 | 647 | 26 | 51 | 24.884615 | 0.787611 | 0.032458 | 0 | 0.5 | 0 | 0 | 0.121795 | 0.040064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
aea133a870e185a7ab120fb1bfa33b1fd3b07e6f | 5,196 | py | Python | AKSDataOpsDemo/scripts/evaluate.py | cloudmelon/aks-severless | ade3b6a110444c09bc4c0ff44cb232cb09ddebe7 | [
"MIT"
] | 6 | 2019-12-06T22:55:41.000Z | 2019-12-10T23:57:40.000Z | AKSDataOpsDemo/scripts/evaluate.py | cloudmelon/aks-severless | ade3b6a110444c09bc4c0ff44cb232cb09ddebe7 | [
"MIT"
] | null | null | null | AKSDataOpsDemo/scripts/evaluate.py | cloudmelon/aks-severless | ade3b6a110444c09bc4c0ff44cb232cb09ddebe7 | [
"MIT"
] | 2 | 2019-12-26T16:25:44.000Z | 2020-09-02T22:43:41.000Z | import argparse
import os, json, sys
import azureml.core
from azureml.core import Workspace
from azureml.core import Experiment
from azureml.core.model import Model
import azureml.core
from azureml.core import Run
from azureml.core.webservice import AciWebservice, Webservice
from azureml.core.conda_dependencies import... | 33.960784 | 106 | 0.746151 | 745 | 5,196 | 4.974497 | 0.208054 | 0.109822 | 0.03238 | 0.03238 | 0.281975 | 0.208311 | 0.103346 | 0.051268 | 0.033999 | 0.033999 | 0 | 0.003579 | 0.13953 | 5,196 | 152 | 107 | 34.184211 | 0.825319 | 0.038876 | 0 | 0.117117 | 0 | 0 | 0.240763 | 0.004819 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.108108 | 0 | 0.108108 | 0.279279 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aea32992cb3ebb2d5d93b2c9d53e7b2172d6b5d0 | 2,048 | py | Python | tools/instruction.py | mzins/MIPS-CPU-SIM | 0f6723c668266447035c5010c67abdd041324d1a | [
"MIT"
] | null | null | null | tools/instruction.py | mzins/MIPS-CPU-SIM | 0f6723c668266447035c5010c67abdd041324d1a | [
"MIT"
] | null | null | null | tools/instruction.py | mzins/MIPS-CPU-SIM | 0f6723c668266447035c5010c67abdd041324d1a | [
"MIT"
] | null | null | null | from tools import instruction_helpers
from tools.errors import InstructionNotFound
from logs.logconfig import log_config
LOG = log_config()
class Instruction:
binary_instruction = ""
def __init__(self):
inst = raw_input("Please type a single command\n")
self.opcode = None
self.binary... | 37.236364 | 100 | 0.657715 | 233 | 2,048 | 5.536481 | 0.274678 | 0.171318 | 0.088372 | 0.111628 | 0.405426 | 0.33876 | 0.287597 | 0.253488 | 0.253488 | 0.253488 | 0 | 0.009464 | 0.226074 | 2,048 | 54 | 101 | 37.925926 | 0.804416 | 0 | 0 | 0.052632 | 0 | 0 | 0.114314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.078947 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
aea38d32840ca9cfc7b545135134ea487ccba8a9 | 19,377 | py | Python | projects/views.py | msherman64/portal | e5399ef2ed3051d7c9a46c660f028c666ae22ca6 | [
"Apache-2.0"
] | null | null | null | projects/views.py | msherman64/portal | e5399ef2ed3051d7c9a46c660f028c666ae22ca6 | [
"Apache-2.0"
] | null | null | null | projects/views.py | msherman64/portal | e5399ef2ed3051d7c9a46c660f028c666ae22ca6 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from chameleon.decorators import terms_required
from django.contrib import messages
from django.http import (
Http404,
HttpResponseForbidden,
HttpResponse,
HttpResponseRedirect,
HttpResponseNotAllowed,
... | 35.489011 | 95 | 0.588533 | 1,927 | 19,377 | 5.766476 | 0.16191 | 0.025738 | 0.016199 | 0.009719 | 0.351152 | 0.307865 | 0.266559 | 0.212113 | 0.178906 | 0.145608 | 0 | 0.003573 | 0.321206 | 19,377 | 545 | 96 | 35.554128 | 0.841253 | 0.045311 | 0 | 0.344519 | 0 | 0 | 0.172432 | 0.018545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024609 | false | 0 | 0.058166 | 0 | 0.136465 | 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 |
aea75e1eb83214dedb643e0e6cd5c7568f6bf1b4 | 2,193 | py | Python | listeners/pipe.py | ggilestro/majordomo | d111c1dd1a4c4b8d2cdaa9651b51ece60a1b648d | [
"MIT"
] | null | null | null | listeners/pipe.py | ggilestro/majordomo | d111c1dd1a4c4b8d2cdaa9651b51ece60a1b648d | [
"MIT"
] | null | null | null | listeners/pipe.py | ggilestro/majordomo | d111c1dd1a4c4b8d2cdaa9651b51ece60a1b648d | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# pipe.py
#
# Copyright 2014 Giorgio Gilestro <gg@kozak>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Licen... | 28.480519 | 96 | 0.617419 | 271 | 2,193 | 4.911439 | 0.523985 | 0.06311 | 0.029301 | 0.042825 | 0.061608 | 0.042074 | 0 | 0 | 0 | 0 | 0 | 0.011465 | 0.284086 | 2,193 | 76 | 97 | 28.855263 | 0.836306 | 0.430917 | 0 | 0 | 0 | 0 | 0.109229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.1 | 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 |
aea97cde74c5b76516a1287e08c111bed632fb99 | 1,608 | py | Python | scripts/android-patch.py | rasaha91/react-native-macos | 5da5441c1d98596683590bc076541560db61ff82 | [
"CC-BY-4.0",
"MIT"
] | 2,114 | 2020-05-06T10:05:45.000Z | 2022-03-31T23:19:28.000Z | scripts/android-patch.py | rasaha91/react-native-macos | 5da5441c1d98596683590bc076541560db61ff82 | [
"CC-BY-4.0",
"MIT"
] | 623 | 2020-05-05T21:24:26.000Z | 2022-03-30T21:00:31.000Z | scripts/android-patch.py | rasaha91/react-native-macos | 5da5441c1d98596683590bc076541560db61ff82 | [
"CC-BY-4.0",
"MIT"
] | 85 | 2020-05-05T23:09:40.000Z | 2022-03-29T10:12:42.000Z | import os
import sys
# A Python script that can be used to determine which files that require
# patching have been touched between two points in the repo.
def shell(command):
stream = os.popen(command)
result = stream.read()
stream.close()
return result
def get_patches():
patches = {}
for fil... | 34.212766 | 77 | 0.625622 | 222 | 1,608 | 4.36036 | 0.387387 | 0.065083 | 0.027893 | 0.03719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019917 | 0.250622 | 1,608 | 46 | 78 | 34.956522 | 0.783402 | 0.080224 | 0 | 0 | 0 | 0 | 0.094851 | 0.015583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.052632 | 0 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
aeaabc6f5b0d5b7cf3ded3141d91ff7d3817bb49 | 5,624 | py | Python | src/example_publish_pypi_medium/asm-enforce-ready-signatures.py | lrhazi/example-publish-pypi | 135bc75b0e37225b1879cb79d644f709977f1f3d | [
"MIT"
] | null | null | null | src/example_publish_pypi_medium/asm-enforce-ready-signatures.py | lrhazi/example-publish-pypi | 135bc75b0e37225b1879cb79d644f709977f1f3d | [
"MIT"
] | null | null | null | src/example_publish_pypi_medium/asm-enforce-ready-signatures.py | lrhazi/example-publish-pypi | 135bc75b0e37225b1879cb79d644f709977f1f3d | [
"MIT"
] | null | null | null | import json
from docopt import docopt
from bigip_utils.logger import logger
from bigip_utils.bigip import *
#
# This script enforces all attack signatures that are ready to be enforced:
# https://support.f5.com/csp/article/K60640453?utm_source=f5support&utm_medium=RSS
#
__doc__ = """
Usage:
enforce-read... | 43.9375 | 163 | 0.618243 | 667 | 5,624 | 5.001499 | 0.253373 | 0.056954 | 0.055156 | 0.03747 | 0.290468 | 0.181655 | 0.181655 | 0.16307 | 0.16307 | 0.16307 | 0 | 0.004168 | 0.274716 | 5,624 | 127 | 164 | 44.283465 | 0.81368 | 0.048186 | 0 | 0.229358 | 0 | 0.036697 | 0.380471 | 0.061541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027523 | false | 0.027523 | 0.036697 | 0 | 0.091743 | 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 |
aeabb21d13fb47406449b6804d29f4983877b33d | 13,358 | py | Python | farb/sysinstall.py | samskivert/farbot | d88f16dcbd23d7ca3b7fdcf341c9346c0ab21bb8 | [
"BSD-3-Clause"
] | null | null | null | farb/sysinstall.py | samskivert/farbot | d88f16dcbd23d7ca3b7fdcf341c9346c0ab21bb8 | [
"BSD-3-Clause"
] | null | null | null | farb/sysinstall.py | samskivert/farbot | d88f16dcbd23d7ca3b7fdcf341c9346c0ab21bb8 | [
"BSD-3-Clause"
] | null | null | null | # sysinstall.py vi:ts=4:sw=4:expandtab:
#
# Copyright (c) 2006-2008 Three Rings Design, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the a... | 33.562814 | 96 | 0.643584 | 1,382 | 13,358 | 6.183068 | 0.2822 | 0.012873 | 0.025278 | 0.015448 | 0.200819 | 0.176712 | 0.114921 | 0.094441 | 0.078057 | 0.078057 | 0 | 0.003629 | 0.277961 | 13,358 | 397 | 97 | 33.647355 | 0.882322 | 0.423566 | 0 | 0.213873 | 0 | 0 | 0.049159 | 0.002992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086705 | false | 0 | 0.023121 | 0 | 0.271676 | 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 |
aeb2c65fe32f5a74d10e3aa724b39a7ca6e18fa4 | 8,153 | py | Python | wpscan_out_parse/parser/_cli_parser.py | clivewalkden/wpscan_out_parse | dff46aa2e98390afc79b7bb622eb4c01d066fbb5 | [
"MIT"
] | 1 | 2021-06-24T08:35:15.000Z | 2021-06-24T08:35:15.000Z | wpscan_out_parse/parser/_cli_parser.py | clivewalkden/wpscan_out_parse | dff46aa2e98390afc79b7bb622eb4c01d066fbb5 | [
"MIT"
] | null | null | null | wpscan_out_parse/parser/_cli_parser.py | clivewalkden/wpscan_out_parse | dff46aa2e98390afc79b7bb622eb4c01d066fbb5 | [
"MIT"
] | null | null | null | import re
from typing import Any, Dict, Sequence, List, Optional, Tuple
from .base import Parser
from .components import InterestingFinding
from .results import WPScanResults
#################### CLI PARSER ######################
class WPScanCliParser(Parser):
"""Main interface to parse WPScan CLI output.
... | 36.725225 | 135 | 0.531461 | 855 | 8,153 | 4.933333 | 0.218713 | 0.027738 | 0.012802 | 0.018966 | 0.163585 | 0.122807 | 0.083689 | 0.045045 | 0.016596 | 0 | 0 | 0.002346 | 0.372501 | 8,153 | 221 | 136 | 36.891403 | 0.822127 | 0.214277 | 0 | 0.192857 | 0 | 0 | 0.071858 | 0.003414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064286 | false | 0 | 0.035714 | 0 | 0.171429 | 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 |
aeb3a40599bade079c5b02f2bf2cc33038b720fa | 3,220 | py | Python | tests/animation/generator/test_animation.py | OrangeUtan/MCMetagen | 0293ea14bf1c6b1bae58741f9876ba662930b43d | [
"MIT"
] | null | null | null | tests/animation/generator/test_animation.py | OrangeUtan/MCMetagen | 0293ea14bf1c6b1bae58741f9876ba662930b43d | [
"MIT"
] | null | null | null | tests/animation/generator/test_animation.py | OrangeUtan/MCMetagen | 0293ea14bf1c6b1bae58741f9876ba662930b43d | [
"MIT"
] | null | null | null | import pytest
from mcanitexgen.animation.generator import Animation, GeneratorError
def frame(index: int, time: int):
return {"index": index, "time": time}
class Test_append:
def test(self):
anim1 = Animation(0, 10, [frame(0, 10)])
anim2 = Animation(10, 20, [frame(0, 10)])
anim1.ap... | 29.009009 | 87 | 0.491304 | 372 | 3,220 | 4.174731 | 0.166667 | 0.100451 | 0.07727 | 0.040567 | 0.596909 | 0.430779 | 0.405666 | 0.358017 | 0.324533 | 0.324533 | 0 | 0.094823 | 0.358075 | 3,220 | 110 | 88 | 29.272727 | 0.656507 | 0 | 0 | 0.378947 | 0 | 0 | 0.064907 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.084211 | false | 0 | 0.021053 | 0.010526 | 0.136842 | 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 |
aeb447aba93643942a7e8b9f82a86a22f927bf04 | 2,214 | py | Python | bin/mircx_polsplit.py | jdmonnier/mircx_mystic | 45bf8491117674157b39f49cfe0c92c5ec6da500 | [
"MIT"
] | 1 | 2022-01-13T19:32:51.000Z | 2022-01-13T19:32:51.000Z | bin/mircx_polsplit.py | jdmonnier/mircx_mystic | 45bf8491117674157b39f49cfe0c92c5ec6da500 | [
"MIT"
] | null | null | null | bin/mircx_polsplit.py | jdmonnier/mircx_mystic | 45bf8491117674157b39f49cfe0c92c5ec6da500 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
"""
This is a "quick and dirty" solution to getting polarization data through the pipeline.
This script creates new fits files with independent polarization states.
Make sure you have plenty of diskspace.
"""
from __future__ import print_function
import argparse
import os
from time import sleep... | 32.558824 | 103 | 0.62421 | 325 | 2,214 | 4.206154 | 0.470769 | 0.013168 | 0.026335 | 0.015362 | 0.115582 | 0.115582 | 0.035113 | 0 | 0 | 0 | 0 | 0.02109 | 0.228997 | 2,214 | 67 | 104 | 33.044776 | 0.779731 | 0.121951 | 0 | 0.092593 | 0 | 0 | 0.274043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.111111 | 0 | 0.12963 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aeb5bac5587511509d5243a09d8d7dc4620f3a3a | 3,233 | py | Python | mars/dataframe/datasource/core.py | HarshCasper/mars | 4c12c968414d666c7a10f497bc22de90376b1932 | [
"Apache-2.0"
] | 2 | 2019-03-29T04:11:10.000Z | 2020-07-08T10:19:54.000Z | mars/dataframe/datasource/core.py | HarshCasper/mars | 4c12c968414d666c7a10f497bc22de90376b1932 | [
"Apache-2.0"
] | null | null | null | mars/dataframe/datasource/core.py | HarshCasper/mars | 4c12c968414d666c7a10f497bc22de90376b1932 | [
"Apache-2.0"
] | null | null | null | # Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# 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 a... | 33.677083 | 82 | 0.631921 | 381 | 3,233 | 5.207349 | 0.383202 | 0.065524 | 0.030242 | 0.027218 | 0.108871 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012153 | 0.287349 | 3,233 | 95 | 83 | 34.031579 | 0.848958 | 0.274977 | 0 | 0.224138 | 0 | 0 | 0.064683 | 0.03191 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.068966 | 0.034483 | 0.37931 | 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 |
aeb5f63f02d815be3691dc63ea53c88a38fdabc3 | 1,759 | py | Python | scripts/chengyu.py | cfeibiao/chinese-xinhua | fc39a885e6bbd6d79576997bea53682af4e8f596 | [
"MIT"
] | 9,321 | 2018-02-10T09:17:33.000Z | 2022-03-31T11:39:38.000Z | scripts/chengyu.py | cfeibiao/chinese-xinhua | fc39a885e6bbd6d79576997bea53682af4e8f596 | [
"MIT"
] | 48 | 2018-07-30T12:35:49.000Z | 2022-03-11T03:49:24.000Z | scripts/chengyu.py | cfeibiao/chinese-xinhua | fc39a885e6bbd6d79576997bea53682af4e8f596 | [
"MIT"
] | 2,255 | 2018-03-12T09:54:37.000Z | 2022-03-31T10:17:47.000Z | # -*- coding: utf-8 -*-
"""
author: pwxcoo
date: 2018-02-05
description: 抓取下载成语并保存
"""
import requests, json
from bs4 import BeautifulSoup
def downloader(url):
"""
下载成语并保存
"""
response = requests.get(url)
if response.status_code != 200:
print(f'{url} is failed!')
return
... | 32.574074 | 100 | 0.582149 | 234 | 1,759 | 4.264957 | 0.388889 | 0.084168 | 0.04509 | 0.076152 | 0.382766 | 0.240481 | 0.164329 | 0.106212 | 0 | 0 | 0 | 0.035845 | 0.222854 | 1,759 | 54 | 101 | 32.574074 | 0.694221 | 0.048891 | 0 | 0.058824 | 0 | 0 | 0.172226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.058824 | 0 | 0.147059 | 0.147059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aeba289fa36713ab8da25a19a9e51eb95799d065 | 6,125 | py | Python | iadmin/filters.py | saxix/django-iadmin | 675317e8f0b4142eaf351595da27c065637a83ba | [
"BSD-1-Clause"
] | 1 | 2015-06-23T09:24:12.000Z | 2015-06-23T09:24:12.000Z | iadmin/filters.py | saxix/django-iadmin | 675317e8f0b4142eaf351595da27c065637a83ba | [
"BSD-1-Clause"
] | null | null | null | iadmin/filters.py | saxix/django-iadmin | 675317e8f0b4142eaf351595da27c065637a83ba | [
"BSD-1-Clause"
] | null | null | null | from django.contrib.admin.filters import RelatedFieldListFilter, AllValuesFieldListFilter
from django.db import models
from django.db.models.query_utils import Q
from django.utils.translation import ugettext as _
from django.utils.encoding import smart_unicode
class CellFilter(object):
title = ""
menu_labels ... | 37.576687 | 112 | 0.629388 | 692 | 6,125 | 5.302023 | 0.186416 | 0.057236 | 0.04906 | 0.043881 | 0.501499 | 0.473699 | 0.458981 | 0.458981 | 0.432815 | 0.419733 | 0 | 0.000442 | 0.260408 | 6,125 | 162 | 113 | 37.808642 | 0.809492 | 0 | 0 | 0.346457 | 0 | 0 | 0.077224 | 0.020245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11811 | false | 0.007874 | 0.047244 | 0.023622 | 0.393701 | 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 |
aebcb1ae1aa0b22cd2b6d96651c21aa61504ef82 | 504 | py | Python | DGF/resolvers/change.py | LonguCodes/DGF | bd344eff34cbe6438f71631e2cc103f1c4584e09 | [
"MIT"
] | null | null | null | DGF/resolvers/change.py | LonguCodes/DGF | bd344eff34cbe6438f71631e2cc103f1c4584e09 | [
"MIT"
] | null | null | null | DGF/resolvers/change.py | LonguCodes/DGF | bd344eff34cbe6438f71631e2cc103f1c4584e09 | [
"MIT"
] | null | null | null | from .utils import get_filters, get_values, get_relations, set_values, set_relations
def default_resolve(schema, model, data, **kwargs):
filters = get_filters(schema, data)
return model.objects.filter(**filters)
def default_execute(schema, data, raw_data, **kwargs):
values = get_values(schema, raw_data)... | 28 | 84 | 0.712302 | 66 | 504 | 5.212121 | 0.348485 | 0.061047 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 504 | 17 | 85 | 29.647059 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.416667 | 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 |
aec0c6a44b056aadc36e40e0073e2808b0d0bb55 | 10,463 | py | Python | mvg_distributions/sqrt_gamma_gaussian.py | Liang813/tf_mvg | 01bc681a8b3aac5dcf0837d481b963f4968eb777 | [
"MIT"
] | 21 | 2019-04-04T07:46:54.000Z | 2021-12-15T18:06:35.000Z | mvg_distributions/sqrt_gamma_gaussian.py | Liang813/tf_mvg | 01bc681a8b3aac5dcf0837d481b963f4968eb777 | [
"MIT"
] | 8 | 2019-03-01T10:08:30.000Z | 2021-10-04T13:00:11.000Z | mvg_distributions/sqrt_gamma_gaussian.py | Liang813/tf_mvg | 01bc681a8b3aac5dcf0837d481b963f4968eb777 | [
"MIT"
] | 7 | 2019-12-18T23:41:44.000Z | 2021-11-21T10:15:48.000Z | import numpy as np
import tensorflow as tf
from tensorflow_probability.python.distributions import seed_stream
import tensorflow_probability as tfp
import mvg_distributions.covariance_representations as cov_rep
from mvg_distributions.gamma import SqrtGamma
tfd = tfp.distributions
tfb = tfp.bijectors
class SqrtGamma... | 43.057613 | 119 | 0.640925 | 1,510 | 10,463 | 4.163576 | 0.156291 | 0.051535 | 0.049626 | 0.033084 | 0.431684 | 0.395419 | 0.367584 | 0.333386 | 0.333386 | 0.322252 | 0 | 0.010617 | 0.270859 | 10,463 | 242 | 120 | 43.235537 | 0.813475 | 0.252604 | 0 | 0.2 | 0 | 0 | 0.006873 | 0.00304 | 0 | 0 | 0 | 0 | 0.013793 | 1 | 0.137931 | false | 0 | 0.041379 | 0.027586 | 0.317241 | 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 |
aec3ddbaacba1c772ca5cc048314681c7330681e | 3,606 | py | Python | anymail/webhooks/sendinblue.py | alee/django-anymail | acca6a46e17143caadb0445d7bdeb2f1eb00b71b | [
"BSD-3-Clause"
] | 1,324 | 2016-03-10T04:57:52.000Z | 2022-03-31T15:14:58.000Z | anymail/webhooks/sendinblue.py | alee/django-anymail | acca6a46e17143caadb0445d7bdeb2f1eb00b71b | [
"BSD-3-Clause"
] | 208 | 2016-03-10T03:40:59.000Z | 2022-03-22T23:16:08.000Z | anymail/webhooks/sendinblue.py | alee/django-anymail | acca6a46e17143caadb0445d7bdeb2f1eb00b71b | [
"BSD-3-Clause"
] | 129 | 2016-03-10T09:24:52.000Z | 2022-02-07T05:37:24.000Z | import json
from datetime import datetime
from django.utils.timezone import utc
from .base import AnymailBaseWebhookView
from ..signals import AnymailTrackingEvent, EventType, RejectReason, tracking
class SendinBlueTrackingWebhookView(AnymailBaseWebhookView):
"""Handler for SendinBlue delivery and engagement tr... | 42.928571 | 111 | 0.640044 | 408 | 3,606 | 5.544118 | 0.426471 | 0.049514 | 0.024315 | 0.015031 | 0.06366 | 0.027409 | 0 | 0 | 0 | 0 | 0 | 0.002624 | 0.260122 | 3,606 | 83 | 112 | 43.445783 | 0.845202 | 0.278979 | 0 | 0.098361 | 0 | 0 | 0.074806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0.016393 | 0.081967 | 0 | 0.213115 | 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 |
aeca5f1921632d7c1be82445181945bbbb66f42a | 901 | py | Python | cogs/insult.py | nikhilvayeda/Bhendi-Bot-3 | 2268e4310b91d6f3d62fe7bb642c3a57f623e215 | [
"MIT"
] | 8 | 2020-10-02T04:35:01.000Z | 2021-11-08T10:38:32.000Z | cogs/insult.py | nikhilvayeda/Bhendi-Bot-3 | 2268e4310b91d6f3d62fe7bb642c3a57f623e215 | [
"MIT"
] | 8 | 2020-10-05T07:45:38.000Z | 2021-03-13T22:02:28.000Z | cogs/insult.py | nikhilvayeda/Bhendi-Bot-3 | 2268e4310b91d6f3d62fe7bb642c3a57f623e215 | [
"MIT"
] | 2 | 2020-10-15T05:38:13.000Z | 2020-10-29T11:41:16.000Z | import json
import requests
import discord
from discord.ext import commands
class Fun_insult(commands.Cog):
def __init__(self, client):
self.client = client
@commands.command()
async def insult(self, ctx):
'''insult command'''
_res = requests.get(url='https://evilinsu... | 26.5 | 96 | 0.593785 | 103 | 901 | 4.980583 | 0.553398 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017323 | 0.295228 | 901 | 33 | 97 | 27.30303 | 0.790551 | 0 | 0 | 0 | 0 | 0 | 0.151122 | 0 | 0 | 0 | 0.009445 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 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 |
aecc522dc3defa35037e11a7262e7658ad5e8c35 | 1,873 | py | Python | util/monitor.py | reservoirlabs/G2-Mininet | 4e0dd6b5367a1d51ee65310e59fc3b0ba55575b8 | [
"BSD-3-Clause"
] | 2 | 2021-08-20T08:29:49.000Z | 2022-02-25T02:08:26.000Z | util/monitor.py | reservoirlabs/G2-Mininet | 4e0dd6b5367a1d51ee65310e59fc3b0ba55575b8 | [
"BSD-3-Clause"
] | 2 | 2019-11-27T09:54:35.000Z | 2019-12-05T15:52:03.000Z | util/monitor.py | reservoirlabs/G2-Mininet | 4e0dd6b5367a1d51ee65310e59fc3b0ba55575b8 | [
"BSD-3-Clause"
] | 2 | 2020-03-12T14:38:06.000Z | 2022-03-20T10:15:13.000Z | """
G2_RIGHTS.
This module defines Monitor class to monitor CPU and memory utilization.
Pre-requisite non-standard Python module(s):
psutil
"""
import time
import threading
import psutil
class Monitor():
def __init__(self, interval=1):
""" Monitor constructor.
Args:
interval (i... | 25.310811 | 91 | 0.549386 | 204 | 1,873 | 4.980392 | 0.460784 | 0.043307 | 0.035433 | 0.037402 | 0.057087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004858 | 0.34063 | 1,873 | 73 | 92 | 25.657534 | 0.817814 | 0.379605 | 0 | 0.071429 | 0 | 0 | 0.046021 | 0.032598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.107143 | 0 | 0.321429 | 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 |
aecfc854993f2f476c1f4760e4745a5af412f1bd | 15,322 | py | Python | spiders/spiders/spiders/qunar.py | jiangxuewen16/hq-crawler | f03ec1e454513307e335943f224f4d927eaf2bbf | [
"MIT"
] | 1 | 2021-02-25T08:33:40.000Z | 2021-02-25T08:33:40.000Z | spiders/spiders/spiders/qunar.py | jiangxuewen16/hq-crawler | f03ec1e454513307e335943f224f4d927eaf2bbf | [
"MIT"
] | null | null | null | spiders/spiders/spiders/qunar.py | jiangxuewen16/hq-crawler | f03ec1e454513307e335943f224f4d927eaf2bbf | [
"MIT"
] | 2 | 2021-03-08T07:25:16.000Z | 2021-12-07T15:28:02.000Z | # -*- coding: utf-8 -*-
import json
import math
import random
import time
import requests
import scrapy
from scrapy.http import HtmlResponse
from scrapy import Request
from spiders.common import OTA
from spiders.items.spot import spot
from spiders.items.price import price
class QunarSpider(scrapy.Spider):
# 标签 ... | 48.487342 | 424 | 0.547513 | 1,674 | 15,322 | 4.783154 | 0.164277 | 0.055077 | 0.059573 | 0.016486 | 0.449482 | 0.408642 | 0.385163 | 0.352941 | 0.329712 | 0.300862 | 0 | 0.034479 | 0.328025 | 15,322 | 315 | 425 | 48.64127 | 0.743201 | 0.041705 | 0 | 0.282258 | 0 | 0.024194 | 0.200343 | 0.023626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03629 | false | 0.008065 | 0.048387 | 0 | 0.205645 | 0.084677 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aed49e56a367c6273f6328e65eb9c26caf7bc5da | 5,941 | py | Python | stage_2_semantic/not_used/subsample.py | grtzsohalf/Audio-Phonetic-and-Semantic-Embedding | 1207cb61ec4587f38817b030a1e92cb315ebd178 | [
"MIT"
] | 2 | 2019-08-09T00:49:25.000Z | 2019-09-30T06:37:07.000Z | stage_2_semantic/not_used/subsample.py | grtzsohalf/Audio-Phonetic-and-Semantic-Embedding | 1207cb61ec4587f38817b030a1e92cb315ebd178 | [
"MIT"
] | null | null | null | stage_2_semantic/not_used/subsample.py | grtzsohalf/Audio-Phonetic-and-Semantic-Embedding | 1207cb61ec4587f38817b030a1e92cb315ebd178 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import os
import sys
import random
import math
from tqdm import tqdm
from collections import Counter
import operator
import numpy as np
FLAGS = None
next_random = 1
def subsampling_bool(freq, sampling):
global next_random
next_random = (next_random * 25214903917 + 11)... | 35.57485 | 104 | 0.508669 | 681 | 5,941 | 4.232012 | 0.18649 | 0.038862 | 0.064886 | 0.04372 | 0.386884 | 0.236641 | 0.217557 | 0.138793 | 0.11381 | 0.079806 | 0 | 0.015629 | 0.375358 | 5,941 | 166 | 105 | 35.789157 | 0.760981 | 0.016496 | 0 | 0.220779 | 0 | 0 | 0.107534 | 0.011644 | 0 | 0 | 0.001027 | 0 | 0 | 1 | 0.019481 | false | 0 | 0.058442 | 0 | 0.090909 | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aed4b5966f761ef3662819b99d5360ad4611d44f | 819 | py | Python | scripts/hofstede_csv_to_dict.py | tuejari/yoshi-2 | 2247e2c2820928c0e8ecd1b535a72ca74a5c5281 | [
"Apache-2.0"
] | 2 | 2021-12-02T14:05:40.000Z | 2021-12-27T08:49:48.000Z | scripts/hofstede_csv_to_dict.py | tuejari/yoshi-2 | 2247e2c2820928c0e8ecd1b535a72ca74a5c5281 | [
"Apache-2.0"
] | null | null | null | scripts/hofstede_csv_to_dict.py | tuejari/yoshi-2 | 2247e2c2820928c0e8ecd1b535a72ca74a5c5281 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
# Read the Hofstede indices into a pandas dataframe
data = pd.read_csv("..\\data\\Hofstede Insights - Manual 2021-05-13.csv", delimiter=",", index_col="country")
# Transform all data in the dataframe to strings
data["pdi"] = data["pdi"].astype(str)
data["idv"] = data["idv"].astype(str)
dat... | 40.95 | 132 | 0.62149 | 120 | 819 | 4.225 | 0.475 | 0.071006 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01203 | 0.188034 | 819 | 20 | 133 | 40.95 | 0.750376 | 0.3663 | 0 | 0 | 0 | 0 | 0.261719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
aed8dca665c2fddde4b08f8f8f84ab30b49b9928 | 10,397 | py | Python | classes/App.py | JeanExtreme002/Aim-Coach | 25369e036073bc1fe95efdcad34b6648b1498672 | [
"BSD-3-Clause"
] | 1 | 2019-07-31T18:21:10.000Z | 2019-07-31T18:21:10.000Z | classes/App.py | JeanExtreme002/Aim-Training | 25369e036073bc1fe95efdcad34b6648b1498672 | [
"BSD-3-Clause"
] | null | null | null | classes/App.py | JeanExtreme002/Aim-Training | 25369e036073bc1fe95efdcad34b6648b1498672 | [
"BSD-3-Clause"
] | null | null | null | from classes.Display import Display
from classes.FinalScoreboard import FinalScoreboard
from classes.Sounds import Sounds
from classes.TargetArea import TargetArea
from classes.Target import Target
from classes.Text import Text
from classes.Timer import Timer
from time import time
import pygame
class App(object):
... | 33.756494 | 141 | 0.598346 | 1,205 | 10,397 | 4.922822 | 0.26639 | 0.028827 | 0.019724 | 0.022421 | 0.19791 | 0.109069 | 0.082266 | 0.054956 | 0.04147 | 0.04147 | 0 | 0.019442 | 0.32721 | 10,397 | 307 | 142 | 33.86645 | 0.828592 | 0.214485 | 0 | 0.22905 | 0 | 0.005587 | 0.018474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044693 | false | 0 | 0.050279 | 0 | 0.26257 | 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 |
aeda62809d73ce75af8f774735efd74dd45b137f | 3,501 | py | Python | tests/conftest.py | kown7/pymergevcd | b4716b5aff49c7c496cae4f70fda0e5d52231e1b | [
"MIT"
] | 1 | 2021-02-27T21:22:16.000Z | 2021-02-27T21:22:16.000Z | tests/conftest.py | kown7/pymergevcd | b4716b5aff49c7c496cae4f70fda0e5d52231e1b | [
"MIT"
] | 1 | 2021-10-21T18:44:59.000Z | 2021-10-21T18:44:59.000Z | tests/conftest.py | kown7/pymergevcd | b4716b5aff49c7c496cae4f70fda0e5d52231e1b | [
"MIT"
] | null | null | null | """Provide test fixtures"""
import logging
import os
import pytest
import vcd
@pytest.fixture
def dummy_vcd_file(tmpdir):
"""Create vcd file with random data"""
filename = os.path.sep.join([str(tmpdir), 'test.vcd'])
with open(filename, 'w+') as fptr:
with vcd.VCDWriter(fptr, timescale=(10, 'ns'),... | 46.065789 | 79 | 0.509854 | 399 | 3,501 | 4.320802 | 0.255639 | 0.070186 | 0.060325 | 0.030162 | 0.358469 | 0.243039 | 0.105568 | 0.032483 | 0 | 0 | 0 | 0.054635 | 0.362182 | 3,501 | 75 | 80 | 46.68 | 0.717421 | 0.044844 | 0 | 0.145161 | 0 | 0 | 0.071514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.064516 | 0 | 0.129032 | 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 |
aedc557dd8c720698321e37793a35e36a2e095e9 | 1,408 | py | Python | bot.py | tungr/CoeusBot | 90bdc869a1f8c077a1f88dcf1335d20a19d49fee | [
"MIT"
] | null | null | null | bot.py | tungr/CoeusBot | 90bdc869a1f8c077a1f88dcf1335d20a19d49fee | [
"MIT"
] | null | null | null | bot.py | tungr/CoeusBot | 90bdc869a1f8c077a1f88dcf1335d20a19d49fee | [
"MIT"
] | null | null | null | import discord, os
from discord.ext import commands
from discord.ext.commands import has_permissions, bot_has_permissions
from dotenv import load_dotenv
client = commands.Bot(command_prefix='-')
client.remove_command('help')
client.remove_command('reload')
# Loads a cog
@client.command()
@has_permissions(administrato... | 30.608696 | 69 | 0.736506 | 200 | 1,408 | 5.07 | 0.315 | 0.08284 | 0.100592 | 0.09073 | 0.572978 | 0.478304 | 0.478304 | 0.478304 | 0.465483 | 0.374753 | 0 | 0.006452 | 0.119318 | 1,408 | 46 | 70 | 30.608696 | 0.81129 | 0.049716 | 0 | 0.416667 | 0 | 0 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aede0775f444057271755bf3520984120506d311 | 2,177 | py | Python | setup.py | llaurabat91/topic-modelling-tools | 9b53f52e5671005642faf065e993e19f0b249e5c | [
"MIT"
] | null | null | null | setup.py | llaurabat91/topic-modelling-tools | 9b53f52e5671005642faf065e993e19f0b249e5c | [
"MIT"
] | null | null | null | setup.py | llaurabat91/topic-modelling-tools | 9b53f52e5671005642faf065e993e19f0b249e5c | [
"MIT"
] | null | null | null | import sys
from setuptools import setup
from setuptools.extension import Extension
### unit tests for this package
import topicmodel_tests
### set include dirs for numpy
try:
import numpy
except ImportError:
numpy_already_installed = False
from distutils.sysconfig import get_python_lib
include_numpy_... | 28.272727 | 117 | 0.618741 | 242 | 2,177 | 5.384298 | 0.450413 | 0.038373 | 0.046048 | 0.092095 | 0.161167 | 0.121259 | 0.121259 | 0.121259 | 0.121259 | 0.121259 | 0 | 0.013174 | 0.2678 | 2,177 | 76 | 118 | 28.644737 | 0.804266 | 0.079467 | 0 | 0.295082 | 0 | 0 | 0.300703 | 0.111446 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.147541 | 0 | 0.147541 | 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 |
aedff3138bbb43e485ad12558c8ec12fb523b030 | 3,311 | py | Python | game/tests/models/test_ownership.py | gafderks/monopoly-vue | 4d18938508412476b19d205258a6339ff1f5975a | [
"MIT"
] | null | null | null | game/tests/models/test_ownership.py | gafderks/monopoly-vue | 4d18938508412476b19d205258a6339ff1f5975a | [
"MIT"
] | 172 | 2020-10-01T18:38:15.000Z | 2022-03-28T19:20:11.000Z | game/tests/models/test_ownership.py | gafderks/monopoly-vue | 4d18938508412476b19d205258a6339ff1f5975a | [
"MIT"
] | null | null | null | import datetime
from unittest import mock
import pytz
from django.core.exceptions import ValidationError
from django.db import IntegrityError
from django.test import TestCase
from game.models import Ownership, Game, Player, RealEstate
from game.tests.factories.ownership import OwnershipFactory
from game.tests.factori... | 39.416667 | 85 | 0.712776 | 364 | 3,311 | 6.299451 | 0.181319 | 0.052769 | 0.049717 | 0.045792 | 0.370693 | 0.358046 | 0.330571 | 0.254688 | 0.155255 | 0.109027 | 0 | 0.00341 | 0.20296 | 3,311 | 83 | 86 | 39.891566 | 0.865479 | 0 | 0 | 0.422535 | 0 | 0 | 0.007551 | 0.007551 | 0 | 0 | 0 | 0 | 0.211268 | 1 | 0.126761 | false | 0 | 0.140845 | 0 | 0.28169 | 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 |
aee3b41530ad1d83d280d311e7b96dac16a5ac08 | 12,327 | py | Python | crop_rotator/core/classes.py | Bahusson/crop_rotator | c1d86d36ce1867a84b927708f92c62c7815250a4 | [
"MIT"
] | 1 | 2021-05-08T07:04:45.000Z | 2021-05-08T07:04:45.000Z | crop_rotator/core/classes.py | Bahusson/crop_rotator | c1d86d36ce1867a84b927708f92c62c7815250a4 | [
"MIT"
] | 80 | 2020-11-18T20:35:12.000Z | 2021-06-13T08:08:36.000Z | crop_rotator/core/classes.py | Bahusson/crop_rotator | c1d86d36ce1867a84b927708f92c62c7815250a4 | [
"MIT"
] | null | null | null | from .snippets import (
remove_repeating,
flare,
list_appending_long,
level_off,
)
import itertools
import copy
from core.models import RotatorAdminPanel
class PageLoad(object):
"""Zwraca tyle języków ile mamy zainstalowane
w ustawieniach w zakładce LANGUAGES w formacie naprzemiennym
p... | 35.834302 | 101 | 0.564695 | 1,527 | 12,327 | 4.354289 | 0.199083 | 0.027373 | 0.019853 | 0.013536 | 0.332381 | 0.283802 | 0.258084 | 0.21898 | 0.21898 | 0.21898 | 0 | 0.021523 | 0.321571 | 12,327 | 343 | 102 | 35.938776 | 0.773526 | 0.095319 | 0 | 0.319588 | 0 | 0 | 0.032784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061856 | false | 0.003436 | 0.013746 | 0.006873 | 0.134021 | 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 |
aee4f9bbfdac79e9118eae4558fc269abff34caa | 11,972 | py | Python | ai/RLPlayer.py | Unn20/achtung_die_kurve | e2dbb1752c070cfc398e415d5a427384c0230f3c | [
"MIT"
] | null | null | null | ai/RLPlayer.py | Unn20/achtung_die_kurve | e2dbb1752c070cfc398e415d5a427384c0230f3c | [
"MIT"
] | null | null | null | ai/RLPlayer.py | Unn20/achtung_die_kurve | e2dbb1752c070cfc398e415d5a427384c0230f3c | [
"MIT"
] | null | null | null | import copy
import math
import random
import numpy as np
import torch
from game.Player import Player
class RLPlayer(Player):
def __init__(self, name, game_state, action_space, parameters={}):
super().__init__(name)
print(f"Player {name} parameters: {parameters}")
self.action_space = acti... | 43.064748 | 157 | 0.628383 | 1,502 | 11,972 | 4.796272 | 0.156458 | 0.021377 | 0.021655 | 0.022488 | 0.339534 | 0.257496 | 0.167407 | 0.162965 | 0.143809 | 0.113964 | 0 | 0.026331 | 0.254511 | 11,972 | 277 | 158 | 43.220217 | 0.78084 | 0.069078 | 0 | 0.214286 | 0 | 0.004762 | 0.026524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080952 | false | 0.004762 | 0.028571 | 0 | 0.171429 | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aee5927bf583c22f6d9d0f89495d9cdad0d60cd0 | 4,761 | py | Python | Intervention_Scenarios/helpers/what_if_helpers.py | tomtuamnuq/covasim-dds | 1e3ce8f9dda6908ca20040a3b532495de3bdc4c1 | [
"Apache-2.0"
] | 2 | 2022-03-11T09:48:19.000Z | 2022-03-20T09:06:31.000Z | Intervention_Scenarios/helpers/what_if_helpers.py | AzadehKSH/covasim-dds | 8bbaf4ffbebb4904ea56142d40043d2259ec7f25 | [
"Apache-2.0"
] | null | null | null | Intervention_Scenarios/helpers/what_if_helpers.py | AzadehKSH/covasim-dds | 8bbaf4ffbebb4904ea56142d40043d2259ec7f25 | [
"Apache-2.0"
] | null | null | null | from functools import partial
from typing import Tuple
import covasim as cv
import matplotlib.pyplot as plt
import numpy as np
import scipy.stats as st
def get_current_infected_ratio():
# Returns the current ratio of infected people in germany
number_infected = 651500 # https://www.deutschland.de/de/topic/p... | 38.707317 | 129 | 0.692502 | 690 | 4,761 | 4.572464 | 0.301449 | 0.042789 | 0.017433 | 0.035499 | 0.168621 | 0.117274 | 0.038035 | 0.017116 | 0 | 0 | 0 | 0.019639 | 0.197858 | 4,761 | 122 | 130 | 39.02459 | 0.806494 | 0.179164 | 0 | 0.1 | 0 | 0 | 0.01701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.066667 | 0.011111 | 0.244444 | 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 |
aee5c643860aef69edc1c551fc556f5c1921368e | 25,812 | py | Python | src/nba_history/player_data.py | odonnell31/nba_history | bfcaffa265ee193f1faf4e6786ddc7d2cbfc9142 | [
"MIT"
] | null | null | null | src/nba_history/player_data.py | odonnell31/nba_history | bfcaffa265ee193f1faf4e6786ddc7d2cbfc9142 | [
"MIT"
] | null | null | null | src/nba_history/player_data.py | odonnell31/nba_history | bfcaffa265ee193f1faf4e6786ddc7d2cbfc9142 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 16 11:45:09 2021
@author: Michael ODonnell
@purpose: scrape NBA draft picks by year
"""
# import needed libraries
import requests
from bs4 import BeautifulSoup
import pandas as pd
import time
# function to scrape a list of years of NBA Drafts
def scrape_draft_data(star... | 43.675127 | 200 | 0.535371 | 3,135 | 25,812 | 4.207974 | 0.100797 | 0.051698 | 0.04336 | 0.029109 | 0.698302 | 0.658657 | 0.628563 | 0.605973 | 0.5708 | 0.558065 | 0 | 0.019417 | 0.359523 | 25,812 | 591 | 201 | 43.675127 | 0.77843 | 0.15578 | 0 | 0.461095 | 0 | 0 | 0.156032 | 0.011534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023055 | false | 0 | 0.011527 | 0 | 0.057637 | 0.10951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aee96f06eaeca2b9830d780ade1fc0b516e69f02 | 1,915 | py | Python | sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/ext/assignmapper.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 5 | 2015-04-16T08:36:17.000Z | 2017-05-12T17:20:12.000Z | sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/ext/assignmapper.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | null | null | null | sqlalchemy/sqlalchemy-0.3.6+codebay/sqlalchemy/ext/assignmapper.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 4 | 2015-03-19T14:39:51.000Z | 2019-01-23T08:22:55.000Z | from sqlalchemy import mapper, util, Query, exceptions
import types
def monkeypatch_query_method(ctx, class_, name):
def do(self, *args, **kwargs):
query = Query(class_, session=ctx.current)
return getattr(query, name)(*args, **kwargs)
setattr(class_, name, classmethod(do))
def monkeypatch_obj... | 43.522727 | 171 | 0.632898 | 224 | 1,915 | 5.169643 | 0.348214 | 0.046632 | 0.048359 | 0.062176 | 0.252159 | 0.160622 | 0.063903 | 0.063903 | 0.063903 | 0 | 0 | 0 | 0.236031 | 1,915 | 43 | 172 | 44.534884 | 0.791524 | 0.016188 | 0 | 0.052632 | 0 | 0 | 0.118554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.289474 | 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 |
aeed0b8abb2aadc143c55c6677cfe9445bb8a6a9 | 1,316 | py | Python | examples/dictation grammar example.py | onchiptech/pyjsgf | f7ff26323e5e602ea10e7d302610c2fcb46234d6 | [
"MIT"
] | 40 | 2018-01-24T23:01:27.000Z | 2022-01-19T03:33:37.000Z | examples/dictation grammar example.py | onchiptech/pyjsgf | f7ff26323e5e602ea10e7d302610c2fcb46234d6 | [
"MIT"
] | 31 | 2018-03-01T07:58:27.000Z | 2022-01-13T12:07:45.000Z | examples/dictation grammar example.py | onchiptech/pyjsgf | f7ff26323e5e602ea10e7d302610c2fcb46234d6 | [
"MIT"
] | 21 | 2017-11-14T09:11:17.000Z | 2022-02-02T15:32:57.000Z | """
Example showing use of the jsgf.ext DictationGrammar class for matching and
compiling rules that use regular JSGF expansions like Literal and Sequence as
well as Dictation expansions.
"""
from jsgf import PublicRule, Sequence
from jsgf.ext import Dictation, DictationGrammar
def main():
# Create a simple rule... | 31.333333 | 79 | 0.718085 | 181 | 1,316 | 5.116022 | 0.430939 | 0.038877 | 0.055076 | 0.028078 | 0.174946 | 0.105832 | 0.047516 | 0 | 0 | 0 | 0 | 0.003791 | 0.198328 | 1,316 | 41 | 80 | 32.097561 | 0.873934 | 0.492401 | 0 | 0.125 | 0 | 0 | 0.115207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aef2d0ce8b0f340445dbcd09415dd30f5aa7f265 | 758 | py | Python | material/curso_em_video/ex085.py | sergiodealencar/courses | c9d86b27b0185cc82624b01ed76653dbc12554a3 | [
"MIT"
] | null | null | null | material/curso_em_video/ex085.py | sergiodealencar/courses | c9d86b27b0185cc82624b01ed76653dbc12554a3 | [
"MIT"
] | null | null | null | material/curso_em_video/ex085.py | sergiodealencar/courses | c9d86b27b0185cc82624b01ed76653dbc12554a3 | [
"MIT"
] | null | null | null | lista = [[], []]
valor = 0
for c in range(1, 8):
valor = int(input(f'Digite o {c}o. valor: '))
if valor % 2 == 0:
lista[0].append(valor)
else:
lista[1].append(valor)
print('-=' * 30)
print(f'Os valores pares digitados foram: {sorted(lista[0])}')
print(f'Os valores ímpres digitados foram: {so... | 29.153846 | 65 | 0.575198 | 115 | 758 | 3.791304 | 0.278261 | 0.126147 | 0.073395 | 0.137615 | 0.665138 | 0.600917 | 0.541284 | 0.541284 | 0.541284 | 0.426606 | 0 | 0.035058 | 0.209763 | 758 | 25 | 66 | 30.32 | 0.692821 | 0.51715 | 0 | 0 | 0 | 0 | 0.366477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |