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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c312d3df5fa9ab8f7a6f8ac914b7e99d7693a0a | 26,513 | py | Python | bot/venv/lib/python3.7/site-packages/pyglet/text/document.py | manaccac/sc2_bot | 3aa8b3711378b71fd0a44662cdd7148846e39530 | [
"MIT"
] | 2 | 2021-05-16T07:39:38.000Z | 2021-05-30T22:04:42.000Z | bot/venv/lib/python3.7/site-packages/pyglet/text/document.py | manaccac/sc2_bot | 3aa8b3711378b71fd0a44662cdd7148846e39530 | [
"MIT"
] | null | null | null | bot/venv/lib/python3.7/site-packages/pyglet/text/document.py | manaccac/sc2_bot | 3aa8b3711378b71fd0a44662cdd7148846e39530 | [
"MIT"
] | 2 | 2020-10-21T15:34:59.000Z | 2020-11-19T15:23:55.000Z | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# Copyright (c) 2008-2020 pyglet contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follo... | 35.635753 | 116 | 0.637725 | 3,258 | 26,513 | 5.091774 | 0.17833 | 0.010248 | 0.010127 | 0.010248 | 0.374766 | 0.321719 | 0.225933 | 0.181566 | 0.14383 | 0.127976 | 0 | 0.005815 | 0.273602 | 26,513 | 743 | 117 | 35.683715 | 0.855548 | 0.549127 | 0 | 0.333333 | 0 | 0 | 0.041076 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 1 | 0.213675 | false | 0 | 0.029915 | 0.029915 | 0.397436 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c31644e34f36e9c15521e45bf2ad4962a95bf18 | 7,085 | py | Python | nucleusSegmentation/script/run_docker_segment.py | SBU-BMI/pathomics_analysis | c9348e1b3dfa80c8bc2edb7bef257efbb27393a4 | [
"BSD-3-Clause"
] | null | null | null | nucleusSegmentation/script/run_docker_segment.py | SBU-BMI/pathomics_analysis | c9348e1b3dfa80c8bc2edb7bef257efbb27393a4 | [
"BSD-3-Clause"
] | 8 | 2016-12-28T14:33:35.000Z | 2018-08-02T01:00:23.000Z | nucleusSegmentation/script/run_docker_segment.py | SBU-BMI/pathomics_analysis | c9348e1b3dfa80c8bc2edb7bef257efbb27393a4 | [
"BSD-3-Clause"
] | 4 | 2017-03-20T16:25:56.000Z | 2020-10-14T14:32:49.000Z | #!/usr/bin/env python
import sys
import os
import subprocess
import getopt
import random
def print_help():
print 'run_docker_segment [-h|command <arguments>]'
print ' Commands: '
print ' start - Start a docker instance for segmentation. '
print ' remove - Kill and remove docker instance.... | 32.800926 | 109 | 0.582922 | 969 | 7,085 | 4.075335 | 0.172343 | 0.065333 | 0.039504 | 0.060775 | 0.365915 | 0.307166 | 0.254495 | 0.231704 | 0.206128 | 0.143074 | 0 | 0.014099 | 0.299224 | 7,085 | 215 | 110 | 32.953488 | 0.781269 | 0.002823 | 0 | 0.27027 | 0 | 0.005405 | 0.333381 | 0.027888 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.383784 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7c37226cb1e46607e5de84d021e8eafe2bba9456 | 2,996 | py | Python | bscpylgtv/endpoints.py | chros73/bscpylgtv | 0ddd475f4b46dea8d521758c8c81d1a811020730 | [
"MIT"
] | 17 | 2021-10-02T02:24:22.000Z | 2022-03-06T22:22:06.000Z | bscpylgtv/endpoints.py | chros73/bscpylgtv | 0ddd475f4b46dea8d521758c8c81d1a811020730 | [
"MIT"
] | 2 | 2021-12-17T08:03:48.000Z | 2021-12-25T12:40:06.000Z | bscpylgtv/endpoints.py | chros73/bscpylgtv | 0ddd475f4b46dea8d521758c8c81d1a811020730 | [
"MIT"
] | 1 | 2021-12-16T10:54:03.000Z | 2021-12-16T10:54:03.000Z | # webOS TV public SSAP API endpoints
GET_SERVICES = "api/getServiceList"
SET_MUTE = "audio/setMute"
GET_AUDIO_STATUS = "audio/getStatus"
GET_VOLUME = "audio/getVolume"
SET_VOLUME = "audio/setVolume"
VOLUME_UP = "audio/volumeUp"
VOLUME_DOWN = "audio/volumeDown"
GET_CURRENT_APP_INFO = "com.webos.applicationManager/getFor... | 46.092308 | 79 | 0.821762 | 380 | 2,996 | 6.228947 | 0.360526 | 0.081115 | 0.114068 | 0.028728 | 0.147867 | 0.08872 | 0.060837 | 0 | 0 | 0 | 0 | 0.002144 | 0.066088 | 2,996 | 64 | 80 | 46.8125 | 0.843817 | 0.023698 | 0 | 0 | 0 | 0 | 0.597536 | 0.469199 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c3ac319ec71bfb120623d98f3744be49bc4a97a | 552 | py | Python | setup.py | martijnbentum/partial_date | 1edf0d8978d6e7f7b699a7d70400b79577bc311f | [
"MIT"
] | null | null | null | setup.py | martijnbentum/partial_date | 1edf0d8978d6e7f7b699a7d70400b79577bc311f | [
"MIT"
] | null | null | null | setup.py | martijnbentum/partial_date | 1edf0d8978d6e7f7b699a7d70400b79577bc311f | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name='partial-date',
version = '0.1',
author = 'Martijn Bentum, Mojtaba Kandroodi',
author_email = 'm.bentum@let.ru.nl',
description = 'a custom django model field to represent dates with varying specificity',
long_description = '',
long_description_content_type = 'text/markd... | 32.470588 | 89 | 0.724638 | 67 | 552 | 5.850746 | 0.80597 | 0.056122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010482 | 0.13587 | 552 | 16 | 90 | 34.5 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.494565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c3c7ee163839ba0692a7e305755389a43749ddc | 1,665 | py | Python | 035/solution.py | klen/euler | 269d765a2070f08ede45604909f6b5000917ee2f | [
"MIT"
] | 1 | 2015-01-28T09:15:30.000Z | 2015-01-28T09:15:30.000Z | 035/solution.py | klen/euler | 269d765a2070f08ede45604909f6b5000917ee2f | [
"MIT"
] | null | null | null | 035/solution.py | klen/euler | 269d765a2070f08ede45604909f6b5000917ee2f | [
"MIT"
] | null | null | null | # coding: utf-8
""" Project Euler problem #35. """
import math as mt
import re
def problem():
""" Solve the problem.
The number, 197, is called a circular prime because all rotations of the
digits: 197, 971, and 719, are themselves prime.
There are thirteen such primes below 100: 2, 3, 5, 7, 11, 1... | 21.907895 | 77 | 0.542342 | 226 | 1,665 | 3.911504 | 0.442478 | 0.033937 | 0.036199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058394 | 0.341742 | 1,665 | 75 | 78 | 22.2 | 0.748175 | 0.007808 | 0 | 0.162162 | 0 | 0 | 0.014617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7c41641f7e195a13aede161412ad3ee99305abfb | 3,548 | py | Python | test/functional/feature_notifications.py | Phonemetra/TurboCoin | 041f807a3f68bb4b6d9b6c39235e71f1598153d9 | [
"MIT"
] | null | null | null | test/functional/feature_notifications.py | Phonemetra/TurboCoin | 041f807a3f68bb4b6d9b6c39235e71f1598153d9 | [
"MIT"
] | null | null | null | test/functional/feature_notifications.py | Phonemetra/TurboCoin | 041f807a3f68bb4b6d9b6c39235e71f1598153d9 | [
"MIT"
] | 3 | 2021-04-03T09:11:50.000Z | 2021-04-03T09:12:31.000Z | #!/usr/bin/env python3
# Copyright (c) 2014-2019 TurboCoin
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the -alertnotify, -blocknotify and -walletnotify options."""
import os
from test_framework.address import ADDRESS_B... | 48.60274 | 152 | 0.669391 | 433 | 3,548 | 5.316397 | 0.321016 | 0.062554 | 0.074283 | 0.042572 | 0.469157 | 0.397915 | 0.347524 | 0.308427 | 0.308427 | 0.308427 | 0 | 0.013396 | 0.221533 | 3,548 | 72 | 153 | 49.277778 | 0.820058 | 0.217587 | 0 | 0.136364 | 0 | 0 | 0.077927 | 0 | 0 | 0 | 0 | 0.013889 | 0.090909 | 1 | 0.068182 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c436d6bdcddc8a619241ed958e29c35c922fd0d | 11,670 | py | Python | src/reporter/tests/test_1T1E1A.py | cnoelle/ngsi-timeseries-api | 77ed420c0a7532bcc13d941c0402f457cc40407a | [
"MIT"
] | null | null | null | src/reporter/tests/test_1T1E1A.py | cnoelle/ngsi-timeseries-api | 77ed420c0a7532bcc13d941c0402f457cc40407a | [
"MIT"
] | null | null | null | src/reporter/tests/test_1T1E1A.py | cnoelle/ngsi-timeseries-api | 77ed420c0a7532bcc13d941c0402f457cc40407a | [
"MIT"
] | null | null | null | from conftest import QL_URL, crate_translator as translator
from datetime import datetime
from exceptions.exceptions import AmbiguousNGSIIdError
from reporter.tests.utils import insert_test_data
from utils.common import assert_equal_time_index_arrays
import pytest
import requests
entity_type = 'Room'
entity_id = 'Room... | 27.202797 | 78 | 0.609769 | 1,481 | 11,670 | 4.598244 | 0.129642 | 0.021145 | 0.029956 | 0.042438 | 0.771072 | 0.712628 | 0.643612 | 0.628488 | 0.578414 | 0.545521 | 0 | 0.087984 | 0.256898 | 11,670 | 428 | 79 | 27.266355 | 0.697302 | 0.052871 | 0 | 0.493789 | 0 | 0 | 0.146919 | 0.04712 | 0 | 0 | 0 | 0 | 0.164596 | 1 | 0.052795 | false | 0 | 0.021739 | 0 | 0.07764 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c48ed31e0918742d19393260098ba452844c242 | 7,213 | py | Python | data/ar20.5ab_solvated/openmm/omm_restraints.py | chrisbarnettster/bjoc-paper-2020-sm | 55055a03516cbee7341ee250ff5e33a40bee70c8 | [
"MIT"
] | null | null | null | data/ar20.5ab_solvated/openmm/omm_restraints.py | chrisbarnettster/bjoc-paper-2020-sm | 55055a03516cbee7341ee250ff5e33a40bee70c8 | [
"MIT"
] | null | null | null | data/ar20.5ab_solvated/openmm/omm_restraints.py | chrisbarnettster/bjoc-paper-2020-sm | 55055a03516cbee7341ee250ff5e33a40bee70c8 | [
"MIT"
] | null | null | null | """
Generated by CHARMM-GUI (http://www.charmm-gui.org)
omm_restratins.py
This module contains restraint functions for OpenMM.
Correspondance: jul316@lehigh.edu or wonpil@lehigh.edu
Last update: March 29, 2017
"""
from simtk.unit import *
from simtk.openmm import *
from simtk.openmm.app import *
def restraints(sys... | 48.409396 | 86 | 0.546791 | 726 | 7,213 | 5.352617 | 0.18595 | 0.04246 | 0.028307 | 0.039629 | 0.509264 | 0.462172 | 0.448276 | 0.435924 | 0.389089 | 0.371333 | 0 | 0.039465 | 0.33606 | 7,213 | 148 | 87 | 48.736486 | 0.771977 | 0.051712 | 0 | 0.5 | 1 | 0 | 0.05536 | 0.035003 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008065 | false | 0 | 0.024194 | 0 | 0.040323 | 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 |
7c4f5110d5b6dad740cfd06d07df21836fe3be4a | 4,857 | py | Python | sdk/python/pulumi_equinix_metal/get_operating_system.py | rawkode/pulumi-equinix-metal | 915d768709ced7d2caed563c1823302f378c4317 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_equinix_metal/get_operating_system.py | rawkode/pulumi-equinix-metal | 915d768709ced7d2caed563c1823302f378c4317 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_equinix_metal/get_operating_system.py | rawkode/pulumi-equinix-metal | 915d768709ced7d2caed563c1823302f378c4317 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from . import _utilities... | 33.729167 | 153 | 0.643401 | 544 | 4,857 | 5.509191 | 0.261029 | 0.08008 | 0.032032 | 0.05005 | 0.153487 | 0.087421 | 0.087421 | 0 | 0 | 0 | 0 | 0.002483 | 0.253655 | 4,857 | 143 | 154 | 33.965035 | 0.824276 | 0.227507 | 0 | 0.125 | 1 | 0 | 0.136414 | 0.031737 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102273 | false | 0 | 0.056818 | 0.045455 | 0.272727 | 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 |
7c521ac022037b79a4d6b6c4b942b2b5bf9169d0 | 11,390 | py | Python | ib_miniprojects_backend/settings/base.py | RajeshKumar1490/iB_hubs_mini_project | f7126092400fb9a62fb4bff643dae7cda3a8d9d2 | [
"MIT"
] | null | null | null | ib_miniprojects_backend/settings/base.py | RajeshKumar1490/iB_hubs_mini_project | f7126092400fb9a62fb4bff643dae7cda3a8d9d2 | [
"MIT"
] | 2 | 2021-09-07T07:06:00.000Z | 2021-09-07T07:24:26.000Z | ib_miniprojects_backend/settings/base.py | RajeshKumar1490/iB_hubs_mini_project | f7126092400fb9a62fb4bff643dae7cda3a8d9d2 | [
"MIT"
] | null | null | null | """
Django settings for ib_miniprojects_backend project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""... | 33.5 | 115 | 0.608516 | 1,101 | 11,390 | 6.059946 | 0.294278 | 0.03702 | 0.030576 | 0.026229 | 0.297212 | 0.201589 | 0.165917 | 0.150779 | 0.11301 | 0.090528 | 0 | 0.008677 | 0.220896 | 11,390 | 340 | 116 | 33.5 | 0.743182 | 0.187621 | 0 | 0.160156 | 1 | 0 | 0.497871 | 0.301714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027344 | 0.015625 | 0 | 0.015625 | 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 |
7c52f4ec296ded024ed1e2661250002bd1123347 | 626 | py | Python | atlas/foundations_spec/src/test/helpers/test_set_up_inheritence.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_spec/src/test/helpers/test_set_up_inheritence.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_spec/src/test/helpers/test_set_up_inheritence.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
import unittest
from foundations_spec.helpers.spec import Spec
from foundations_spec.helpers import *
from mock import MagicMock
class TestSetUpInheritence(unittest.TestCase):
class MockSpecBase(Spec):
@set_up
def set_up(self):
self.called = True
class MockSpec(MockSpecBase):
... | 20.866667 | 46 | 0.666134 | 72 | 626 | 5.680556 | 0.388889 | 0.07824 | 0.09291 | 0.127139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246006 | 626 | 29 | 47 | 21.586207 | 0.866525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.2 | false | 0.05 | 0.2 | 0 | 0.55 | 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 |
7c5b6a2fad57bb31c63d82d7a07596e69fb1d1da | 609 | py | Python | cookbook/c06/p07_namespace_xml.py | itpubs/python3-cookbook | 140f5e4cc0416b9674edca7f4c901b1f58fc1415 | [
"Apache-2.0"
] | 3 | 2018-05-10T01:13:08.000Z | 2018-06-17T12:34:07.000Z | cookbook/c06/p07_namespace_xml.py | itpubs/python3-cookbook | 140f5e4cc0416b9674edca7f4c901b1f58fc1415 | [
"Apache-2.0"
] | 2 | 2020-09-19T17:10:23.000Z | 2020-10-17T16:43:52.000Z | cookbook/c06/p07_namespace_xml.py | itpubs/python3-cookbook | 140f5e4cc0416b9674edca7f4c901b1f58fc1415 | [
"Apache-2.0"
] | 1 | 2020-12-22T06:33:18.000Z | 2020-12-22T06:33:18.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Topic: 处理含命名空间的XML文档
Desc :
"""
class XMLNamespaces:
def __init__(self, **kwargs):
self.namespaces = {}
for name, uri in kwargs.items():
self.register(name, uri)
def register(self, name, uri):
self.namespaces[name] = '{'... | 24.36 | 67 | 0.602627 | 75 | 609 | 4.666667 | 0.586667 | 0.08 | 0.057143 | 0.097143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.211823 | 609 | 25 | 67 | 24.36 | 0.716667 | 0.279146 | 0 | 0 | 0 | 0 | 0.088578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c5f6b19e84f6be9f70962fe1da67d81f1e3e398 | 9,365 | py | Python | similarity_map_utils.py | ndexbio/ndex-enrich | 22115bcaa322369c1b7553fc45333866e579346d | [
"BSD-2-Clause"
] | 1 | 2020-10-20T18:34:28.000Z | 2020-10-20T18:34:28.000Z | similarity_map_utils.py | ndexbio/ndex-enrich | 22115bcaa322369c1b7553fc45333866e579346d | [
"BSD-2-Clause"
] | null | null | null | similarity_map_utils.py | ndexbio/ndex-enrich | 22115bcaa322369c1b7553fc45333866e579346d | [
"BSD-2-Clause"
] | null | null | null | from __future__ import division
from ndex.networkn import NdexGraph
import data_model as dm
import operator
from math import sqrt
# TODO: only one edge between each pair of nodes. Take the best one.
def create_similarity_map_from_enrichment_files(map_name, directory, e_set_name, min_subsumption, max_edges=3, ext_lin... | 51.740331 | 249 | 0.620929 | 1,168 | 9,365 | 4.628425 | 0.169521 | 0.047725 | 0.056604 | 0.048835 | 0.535331 | 0.483722 | 0.418239 | 0.393822 | 0.385498 | 0.356271 | 0 | 0.01103 | 0.283609 | 9,365 | 180 | 250 | 52.027778 | 0.794753 | 0.071436 | 0 | 0.353846 | 0 | 0.030769 | 0.140224 | 0.035373 | 0 | 0 | 0 | 0.005556 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.023077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7c6193eb9eea8be400f4d264f8a2c11b836423c6 | 14,493 | py | Python | sdk/python/pulumi_azure_native/sqlvirtualmachine/sql_virtual_machine.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/sqlvirtualmachine/sql_virtual_machine.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/sqlvirtualmachine/sql_virtual_machine.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | 48.634228 | 305 | 0.686331 | 1,532 | 14,493 | 6.162533 | 0.143603 | 0.044275 | 0.034212 | 0.036225 | 0.547294 | 0.349645 | 0.18801 | 0.137803 | 0.082618 | 0.071179 | 0 | 0.005036 | 0.219002 | 14,493 | 297 | 306 | 48.79798 | 0.829049 | 0.250328 | 0 | 0.139665 | 1 | 0 | 0.237829 | 0.155941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122905 | false | 0.005587 | 0.044693 | 0.011173 | 0.290503 | 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 |
7c647918ccc4378bf3abfa28a37ef6e8b30c233f | 1,121 | py | Python | posthog/tasks/calculate_cohort.py | sbauch/posthog | 220ba7777acd8bdcea04e2f279c1eec20b8c7b04 | [
"MIT"
] | null | null | null | posthog/tasks/calculate_cohort.py | sbauch/posthog | 220ba7777acd8bdcea04e2f279c1eec20b8c7b04 | [
"MIT"
] | null | null | null | posthog/tasks/calculate_cohort.py | sbauch/posthog | 220ba7777acd8bdcea04e2f279c1eec20b8c7b04 | [
"MIT"
] | null | null | null | import logging
import time
from celery import shared_task
from dateutil.relativedelta import relativedelta
from django.db.models import Q
from django.utils import timezone
from posthog.celery import app
from posthog.ee import check_ee_enabled
from posthog.models import Cohort
logger = logging.getLogger(__name__)
@... | 32.970588 | 115 | 0.728814 | 150 | 1,121 | 5.273333 | 0.386667 | 0.08091 | 0.049305 | 0.072061 | 0.262958 | 0.209861 | 0.209861 | 0.209861 | 0.209861 | 0.209861 | 0 | 0.005252 | 0.150758 | 1,121 | 33 | 116 | 33.969697 | 0.82563 | 0 | 0 | 0.16 | 0 | 0 | 0.115968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.36 | 0 | 0.44 | 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 |
7c64b24eaa11b31793a85c03b7effa0ae62efd18 | 12,667 | py | Python | tensordispenser.py | shencebebetterme/pyTN | ae999bbda7f10352b36cf4eba16e1e029a0a68d4 | [
"MIT"
] | null | null | null | tensordispenser.py | shencebebetterme/pyTN | ae999bbda7f10352b36cf4eba16e1e029a0a68d4 | [
"MIT"
] | null | null | null | tensordispenser.py | shencebebetterme/pyTN | ae999bbda7f10352b36cf4eba16e1e029a0a68d4 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
""" A module that generates and stores various results of different
coarse-graining algorithms for different lattice models. The point is
that when a tensor is requested, the module checks whether it already is
stored on the hard drive, and returns it if it is. If not it generates it,
stores it on t... | 36.399425 | 77 | 0.590195 | 1,707 | 12,667 | 4.208553 | 0.162859 | 0.034243 | 0.025334 | 0.003341 | 0.429287 | 0.365535 | 0.334354 | 0.278675 | 0.23441 | 0.217706 | 0 | 0.016792 | 0.275993 | 12,667 | 347 | 78 | 36.504323 | 0.766547 | 0.15797 | 0 | 0.355731 | 1 | 0 | 0.109193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.047431 | 0 | 0.13834 | 0.059289 | 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 |
7c6627074849173eb159320eae2eac20dc9a84b9 | 7,483 | py | Python | gen.py | kalpitthakkar/pathfinder | b23a2d79b8af828e6f0b7e7e8787345c6e457e1a | [
"MIT"
] | 1 | 2021-03-02T19:10:23.000Z | 2021-03-02T19:10:23.000Z | gen.py | kalpitthakkar/pathfinder | b23a2d79b8af828e6f0b7e7e8787345c6e457e1a | [
"MIT"
] | null | null | null | gen.py | kalpitthakkar/pathfinder | b23a2d79b8af828e6f0b7e7e8787345c6e457e1a | [
"MIT"
] | null | null | null | import numpy as np
import os, glob
import argparse
from generate_random_splits import generate_random_splits
def prepare_sample_label_map(args, split, limit=200):
basedir = args.data
split_name = args.splits[split]
metadir = os.path.join(basedir, split_name, 'metadata')
with open(os.path.join(metadir... | 46.478261 | 163 | 0.567553 | 951 | 7,483 | 4.290221 | 0.279706 | 0.022059 | 0.029412 | 0.023529 | 0.319608 | 0.292402 | 0.245833 | 0.206618 | 0.189951 | 0.172794 | 0 | 0.015619 | 0.306962 | 7,483 | 160 | 164 | 46.76875 | 0.771115 | 0.043565 | 0 | 0 | 1 | 0.015152 | 0.092439 | 0.012699 | 0 | 0 | 0 | 0 | 0.015152 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.121212 | 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 |
7c67a3b7fa79251040b1f8fd6031a86f567bc8f6 | 825 | py | Python | activate.py | LuckyMagpie/Cocktail | 58f0a87edd0e501321ff71ecbf825a278fcecc96 | [
"MIT"
] | 3 | 2016-02-04T00:54:31.000Z | 2016-12-15T20:48:05.000Z | activate.py | LuckyMagpie/Cocktail | 58f0a87edd0e501321ff71ecbf825a278fcecc96 | [
"MIT"
] | null | null | null | activate.py | LuckyMagpie/Cocktail | 58f0a87edd0e501321ff71ecbf825a278fcecc96 | [
"MIT"
] | null | null | null | import cPickle
from scipy import signal
import librosa
import adaptfilt
from sys import argv
with open("netFile.pkl", "rb") as arch:
net = cPickle.load(arch)
y,sr = librosa.load(argv[1], duration=10.0)
w = y
for i in xrange(int(argv[2])):
r, s, n = net.activate(w)
r = abs(int(round(r)))
s = abs(int(... | 24.264706 | 126 | 0.644848 | 142 | 825 | 3.739437 | 0.556338 | 0.011299 | 0.011299 | 0.052731 | 0.101695 | 0.101695 | 0.101695 | 0.101695 | 0 | 0 | 0 | 0.018663 | 0.220606 | 825 | 33 | 127 | 25 | 0.807154 | 0.324848 | 0 | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.277778 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c6884a0ce78b1ff184a0a851379e602de7d6633 | 282 | py | Python | isic_cli/oauth.py | ImageMarkup/isic-cli | 2dd86f918443c69df601e560760d430b7f958095 | [
"Apache-2.0"
] | null | null | null | isic_cli/oauth.py | ImageMarkup/isic-cli | 2dd86f918443c69df601e560760d430b7f958095 | [
"Apache-2.0"
] | null | null | null | isic_cli/oauth.py | ImageMarkup/isic-cli | 2dd86f918443c69df601e560760d430b7f958095 | [
"Apache-2.0"
] | null | null | null | from girder_cli_oauth_client import GirderCliOAuthClient
def get_oauth_client(
oauth_url: str = 'https://api.isic-archive.com/oauth',
client_id: str = 'RpCzc4hFjv5gOJdM2DM2nBdokOviOh5ne63Tpn7Q',
):
client = GirderCliOAuthClient(oauth_url, client_id)
return client
| 28.2 | 64 | 0.776596 | 32 | 282 | 6.5625 | 0.59375 | 0.157143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032922 | 0.138298 | 282 | 9 | 65 | 31.333333 | 0.831276 | 0 | 0 | 0 | 0 | 0 | 0.262411 | 0.141844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 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 |
7c6b0a76bf4827dfc90346db8f835ea7696b50cb | 1,678 | py | Python | openapi_server/models/search_result_level6_all_of.py | havardhuns/graphsense-REST | e2b2c851fc6fd7bba06de66a7abdb82cb76ad1d0 | [
"MIT"
] | null | null | null | openapi_server/models/search_result_level6_all_of.py | havardhuns/graphsense-REST | e2b2c851fc6fd7bba06de66a7abdb82cb76ad1d0 | [
"MIT"
] | null | null | null | openapi_server/models/search_result_level6_all_of.py | havardhuns/graphsense-REST | e2b2c851fc6fd7bba06de66a7abdb82cb76ad1d0 | [
"MIT"
] | null | null | null | # coding: utf-8
from datetime import date, datetime
from typing import List, Dict, Type
from openapi_server.models.base_model_ import Model
from openapi_server.models.search_result_leaf import SearchResultLeaf
from openapi_server import util
class SearchResultLevel6AllOf(Model):
"""NOTE: This class is auto gen... | 26.21875 | 96 | 0.65733 | 181 | 1,678 | 5.977901 | 0.375691 | 0.033272 | 0.160813 | 0.064695 | 0.237523 | 0.203327 | 0.203327 | 0.116451 | 0.116451 | 0 | 0 | 0.008892 | 0.262813 | 1,678 | 63 | 97 | 26.634921 | 0.865804 | 0.421335 | 0 | 0.086957 | 0 | 0 | 0.045894 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.217391 | 0 | 0.521739 | 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 |
7c6b267960c160cdd0b2b543cb76d2d9ad90a161 | 1,671 | py | Python | tb-ssp-gcp/modules/commit_terraform.py | MatStacey/tb-gcp | 7ad894b528fc54e7365239481148c890aad30073 | [
"Apache-2.0"
] | null | null | null | tb-ssp-gcp/modules/commit_terraform.py | MatStacey/tb-gcp | 7ad894b528fc54e7365239481148c890aad30073 | [
"Apache-2.0"
] | null | null | null | tb-ssp-gcp/modules/commit_terraform.py | MatStacey/tb-gcp | 7ad894b528fc54e7365239481148c890aad30073 | [
"Apache-2.0"
] | 1 | 2021-09-07T15:07:25.000Z | 2021-09-07T15:07:25.000Z | # Copyright 2019 The Tranquility Base Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 47.742857 | 156 | 0.758229 | 236 | 1,671 | 5.211864 | 0.504237 | 0.04878 | 0.053659 | 0.065854 | 0.339024 | 0.339024 | 0.281301 | 0.281301 | 0.281301 | 0.198374 | 0 | 0.008984 | 0.134051 | 1,671 | 34 | 157 | 49.147059 | 0.84105 | 0.338121 | 0 | 0 | 0 | 0 | 0.1163 | 0.077839 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7c7165d34c2a619412583d6af412bc24c7271cb9 | 1,150 | py | Python | 5. WEB/app/geo/migrations/0001_initial.py | doyaguillo1997/Data2Gether | 125e3e54060b342a473480f8cb1a913fc54f55ed | [
"MIT"
] | 1 | 2021-10-03T10:19:14.000Z | 2021-10-03T10:19:14.000Z | 5. WEB/app/geo/migrations/0001_initial.py | doyaguillo1997/Data2Gether | 125e3e54060b342a473480f8cb1a913fc54f55ed | [
"MIT"
] | null | null | null | 5. WEB/app/geo/migrations/0001_initial.py | doyaguillo1997/Data2Gether | 125e3e54060b342a473480f8cb1a913fc54f55ed | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-06-03 10:08
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
nam... | 33.823529 | 114 | 0.603478 | 117 | 1,150 | 5.846154 | 0.435897 | 0.05848 | 0.070175 | 0.078947 | 0.505848 | 0.505848 | 0.461988 | 0.461988 | 0.461988 | 0.461988 | 0 | 0.025913 | 0.261739 | 1,150 | 33 | 115 | 34.848485 | 0.779741 | 0.037391 | 0 | 0.461538 | 1 | 0 | 0.097738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c72f8cf401cea192be997f13785362f6d96b5b3 | 1,326 | py | Python | src/utilities.py | sadda/Turtles_Covid | b27660f72e27da03033ce764d13402c24410e2c9 | [
"MIT"
] | null | null | null | src/utilities.py | sadda/Turtles_Covid | b27660f72e27da03033ce764d13402c24410e2c9 | [
"MIT"
] | null | null | null | src/utilities.py | sadda/Turtles_Covid | b27660f72e27da03033ce764d13402c24410e2c9 | [
"MIT"
] | null | null | null | import numpy as np
import ipywidgets as widgets
import imageio
def generate_slider(mode='float', **kwargs):
if mode == 'float':
return widgets.FloatSlider(**kwargs)
elif mode == 'int':
return widgets.IntSlider(**kwargs)
else:
raise(Exception('Slider mode should be float or int')) ... | 25.5 | 83 | 0.613876 | 193 | 1,326 | 4.139896 | 0.357513 | 0.04005 | 0.055069 | 0.070088 | 0.285357 | 0.285357 | 0.285357 | 0.285357 | 0.285357 | 0.285357 | 0 | 0.052685 | 0.255656 | 1,326 | 51 | 84 | 26 | 0.756839 | 0.026395 | 0 | 0.447368 | 1 | 0 | 0.040341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.078947 | 0.026316 | 0.394737 | 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 |
7c7b185edffdd2be89ab1f9ae6af5f2e667771f3 | 1,494 | py | Python | tests/functional/scripts/pyi_absolute_ld_library_path.py | yoda-vid/pyinstaller | 419f349dad721a253b19d9c596e251818132d6ba | [
"Apache-2.0"
] | 2 | 2017-02-08T22:22:09.000Z | 2020-10-08T12:28:36.000Z | tests/functional/scripts/pyi_absolute_ld_library_path.py | 416426/pyinstaller | 0f2b2e921433ab5a510c7efdb21d9c1d7cfbc645 | [
"Apache-2.0"
] | 3 | 2020-04-06T15:48:37.000Z | 2021-03-23T10:22:21.000Z | tests/functional/scripts/pyi_absolute_ld_library_path.py | 416426/pyinstaller | 0f2b2e921433ab5a510c7efdb21d9c1d7cfbc645 | [
"Apache-2.0"
] | 4 | 2018-06-04T20:40:37.000Z | 2020-10-13T22:38:40.000Z | #-----------------------------------------------------------------------------
# Copyright (c) 2005-2021, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License (version 2
# or later) with exception for distributing the bootloader.
#
# The full license is in the file COPYING.txt... | 35.571429 | 78 | 0.682731 | 202 | 1,494 | 4.876238 | 0.470297 | 0.063959 | 0.092386 | 0.038579 | 0.052792 | 0.052792 | 0 | 0 | 0 | 0 | 0 | 0.012317 | 0.130522 | 1,494 | 41 | 79 | 36.439024 | 0.745958 | 0.504016 | 0 | 0 | 0 | 0 | 0.249311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.105263 | 0 | 0.105263 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c7c337eb1d664c7524fab12b2a7509b64330611 | 1,236 | py | Python | messages/migrations/0001_initial.py | AminAliH47/PicoStyle | 768daccc6f28f08aa848318d633af1a19544e499 | [
"Apache-2.0"
] | 19 | 2022-02-16T20:00:08.000Z | 2022-03-08T17:38:59.000Z | messages/migrations/0001_initial.py | AminAliH47/PicoStyle | 768daccc6f28f08aa848318d633af1a19544e499 | [
"Apache-2.0"
] | 3 | 2022-02-16T20:59:11.000Z | 2022-02-23T20:40:12.000Z | messages/migrations/0001_initial.py | AminAliH47/PicoStyle | 768daccc6f28f08aa848318d633af1a19544e499 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.9 on 2022-02-12 08:44
import ckeditor_uploader.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.... | 35.314286 | 178 | 0.616505 | 126 | 1,236 | 5.873016 | 0.579365 | 0.059459 | 0.059459 | 0.059459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020811 | 0.261327 | 1,236 | 34 | 179 | 36.352941 | 0.789704 | 0.036408 | 0 | 0 | 1 | 0 | 0.118587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.296296 | 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 |
7c7ca69c369d0e8c630876af014e4df2367a496a | 674 | py | Python | src/tests/test_app.py | wojwarych/too-hot | 3492c11910a66de34f6473b98eacccef6ada37b5 | [
"MIT"
] | null | null | null | src/tests/test_app.py | wojwarych/too-hot | 3492c11910a66de34f6473b98eacccef6ada37b5 | [
"MIT"
] | null | null | null | src/tests/test_app.py | wojwarych/too-hot | 3492c11910a66de34f6473b98eacccef6ada37b5 | [
"MIT"
] | null | null | null | import sys
import pytest
from fastapi.testclient import TestClient
from ..main import app
from ..models import Sequence
from .factories import fake_sequence
client = TestClient(app)
def test_list_sequences_returns_correct_data_on_200(mock_sequences, mongodb):
response = client.get("/sequences/")
assert re... | 25.923077 | 79 | 0.765579 | 88 | 674 | 5.590909 | 0.443182 | 0.085366 | 0.073171 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020583 | 0.135015 | 674 | 25 | 80 | 26.96 | 0.823328 | 0 | 0 | 0 | 0 | 0 | 0.04451 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7c7d35629b903f7d5b0fa7a176d23f765f5621c5 | 184 | py | Python | sphinx/tello/source/_static/code/python/control-program/app.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 26 | 2020-05-05T08:07:43.000Z | 2022-02-12T03:28:15.000Z | sphinx/tello/source/_static/code/python/control-program/app.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 19 | 2021-03-10T00:33:51.000Z | 2022-03-02T13:04:32.000Z | sphinx/tello/source/_static/code/python/control-program/app.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 2 | 2022-01-09T16:48:21.000Z | 2022-02-19T17:06:50.000Z | import tello
from ui import TelloUI
def main():
drone = tello.Tello('', 8889)
vplayer = TelloUI(drone)
vplayer.root.mainloop()
if __name__ == '__main__':
main()
| 14.153846 | 35 | 0.630435 | 22 | 184 | 4.909091 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.23913 | 184 | 12 | 36 | 15.333333 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c7f85cb7a069424b390f0881127ae3709c09c44 | 14,195 | py | Python | pyyaks/shell.py | sot/pyyaks | bb150bfc146aab1b548a5cea9061ef71ee5584ec | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2015-01-29T08:09:35.000Z | 2015-01-29T08:09:35.000Z | pyyaks/shell.py | sot/pyyaks | bb150bfc146aab1b548a5cea9061ef71ee5584ec | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2019-08-06T17:46:34.000Z | 2019-10-28T19:56:05.000Z | pyyaks/shell.py | sot/pyyaks | bb150bfc146aab1b548a5cea9061ef71ee5584ec | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Utilities to run subprocesses"""
from __future__ import print_function, division, absolute_import
import re
import os
import sys
import time
import signal
import subprocess
import logging
import pyyaks.context
import pyyaks.logger
import pyyaks.pexpe... | 35.84596 | 100 | 0.619937 | 1,802 | 14,195 | 4.834073 | 0.236404 | 0.014464 | 0.001378 | 0.00551 | 0.185742 | 0.133624 | 0.108828 | 0.102858 | 0.095511 | 0.086098 | 0 | 0.003832 | 0.282987 | 14,195 | 395 | 101 | 35.936709 | 0.852034 | 0.424657 | 0 | 0.103093 | 0 | 0 | 0.065849 | 0.003299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123711 | false | 0.051546 | 0.103093 | 0 | 0.324742 | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7c8188bfa9de3bf412df603ce875dca6fe9f0370 | 9,929 | py | Python | src/options.py | code-gen/coarse2fine | 8e1ab7a65a131925f42834f5dd4f3b63c898dc49 | [
"MIT"
] | null | null | null | src/options.py | code-gen/coarse2fine | 8e1ab7a65a131925f42834f5dd4f3b63c898dc49 | [
"MIT"
] | 2 | 2019-05-10T14:42:39.000Z | 2019-05-20T16:19:19.000Z | src/options.py | code-gen/coarse2fine | 8e1ab7a65a131925f42834f5dd4f3b63c898dc49 | [
"MIT"
] | null | null | null | def set_common_options(parser):
# data
parser.add_argument('-root_dir', default='', help="Path to the root directory.")
parser.add_argument('-dataset', default='src', help="Name of dataset.")
# GPU
parser.add_argument('-cuda', action='store_true', help="Whether to use CUDA or not")
parser.add_a... | 62.05625 | 173 | 0.724544 | 1,427 | 9,929 | 4.884373 | 0.220743 | 0.1033 | 0.195122 | 0.036585 | 0.304017 | 0.201578 | 0.149928 | 0.131851 | 0.086801 | 0.075036 | 0 | 0.010525 | 0.138785 | 9,929 | 159 | 174 | 62.446541 | 0.804584 | 0.03948 | 0 | 0.04717 | 0 | 0.018868 | 0.461215 | 0.021682 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04717 | false | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c8ca82a213dbf6a13b486939664160520403084 | 1,576 | py | Python | setup.py | madtreat/django-address | 3cec1d8916593fd02053c9a388a2d94fe1d8ed34 | [
"BSD-3-Clause"
] | null | null | null | setup.py | madtreat/django-address | 3cec1d8916593fd02053c9a388a2d94fe1d8ed34 | [
"BSD-3-Clause"
] | null | null | null | setup.py | madtreat/django-address | 3cec1d8916593fd02053c9a388a2d94fe1d8ed34 | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
from setuptools import find_packages, setup
version = '0.2.1'
if sys.argv[-1] == 'tag':
print("Tagging the version on github:")
os.system("git tag -a %s -m 'version %s'" % (version, version))
os.system("git push --tags")
sys.exit()
setup(
name='django-address',
version=v... | 31.52 | 87 | 0.608503 | 176 | 1,576 | 5.369318 | 0.517045 | 0.140741 | 0.185185 | 0.110053 | 0.107937 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015561 | 0.225254 | 1,576 | 49 | 88 | 32.163265 | 0.758395 | 0 | 0 | 0 | 0 | 0 | 0.494924 | 0.027919 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069767 | 0 | 0.069767 | 0.023256 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c8d2af5cbd29e6496d0104f0549b651e70fdccb | 2,236 | py | Python | pleque/core/fluxfunctions.py | kripnerl/pleque | af351c4aa4a40aa5bb5bdaa8083575344c0827e2 | [
"MIT"
] | 13 | 2018-11-08T11:59:37.000Z | 2022-03-14T20:17:38.000Z | pleque/core/fluxfunctions.py | kripnerl/pleque | af351c4aa4a40aa5bb5bdaa8083575344c0827e2 | [
"MIT"
] | 18 | 2018-07-31T12:17:37.000Z | 2020-05-19T08:36:42.000Z | pleque/core/fluxfunctions.py | kripnerl/pleque | af351c4aa4a40aa5bb5bdaa8083575344c0827e2 | [
"MIT"
] | 3 | 2018-08-26T07:50:04.000Z | 2021-12-03T11:44:57.000Z | #from collections.abc import Sequence
#import itertools
import numpy as np
import types
#import xarray
#from pleque.utils.decorators import deprecated
class FluxFunctions:
# def interpolate(self, coords, data)
# def interpolate(self, R, Z, data):
# pass
def __init__(self, equi):
# _flux... | 33.878788 | 115 | 0.625671 | 299 | 2,236 | 4.441472 | 0.287625 | 0.051205 | 0.026355 | 0.024096 | 0.248494 | 0.248494 | 0.248494 | 0.248494 | 0.248494 | 0.248494 | 0 | 0.001214 | 0.263417 | 2,236 | 65 | 116 | 34.4 | 0.8051 | 0.278175 | 0 | 0.133333 | 0 | 0 | 0.018856 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.166667 | false | 0 | 0.1 | 0.066667 | 0.433333 | 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 |
7c8fc1787c849fd84b2b1b419e959b8c2b1fb757 | 710 | py | Python | allennlp/tests/models/biaffine_dependency_parser_multilang_test.py | tony-tong-punchh/allennlp | 9a13ab570025a0c1659986009d2abddb2e652020 | [
"Apache-2.0"
] | 6 | 2019-05-27T03:24:30.000Z | 2021-01-23T14:32:45.000Z | allennlp/tests/models/biaffine_dependency_parser_multilang_test.py | tony-tong-punchh/allennlp | 9a13ab570025a0c1659986009d2abddb2e652020 | [
"Apache-2.0"
] | 1 | 2021-01-21T12:10:10.000Z | 2021-01-21T12:10:10.000Z | allennlp/tests/models/biaffine_dependency_parser_multilang_test.py | tony-tong-punchh/allennlp | 9a13ab570025a0c1659986009d2abddb2e652020 | [
"Apache-2.0"
] | 3 | 2019-09-05T05:55:14.000Z | 2021-06-20T05:12:06.000Z | from allennlp.common.testing.model_test_case import ModelTestCase
class BiaffineDependencyParserMultilangTest(ModelTestCase):
def setUp(self):
super(BiaffineDependencyParserMultilangTest, self).setUp()
self.set_up_model(self.FIXTURES_ROOT / "biaffine_dependency_parser_multilang" / "experiment.json... | 44.375 | 106 | 0.76338 | 85 | 710 | 5.917647 | 0.505882 | 0.04175 | 0.065606 | 0.089463 | 0.186879 | 0.186879 | 0.186879 | 0.186879 | 0.186879 | 0.186879 | 0 | 0 | 0.159155 | 710 | 15 | 107 | 47.333333 | 0.842546 | 0 | 0 | 0.181818 | 0 | 0 | 0.109859 | 0.08169 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c906fd3c0edf8eebfe0b29b100d3a3e98a1472e | 14,876 | py | Python | pyocd/target/builtin/target_CY8C6xx7.py | juhhov/pyOCD | 0965f7f038622ef1d933af5c6916c482a28244ff | [
"Apache-2.0"
] | null | null | null | pyocd/target/builtin/target_CY8C6xx7.py | juhhov/pyOCD | 0965f7f038622ef1d933af5c6916c482a28244ff | [
"Apache-2.0"
] | null | null | null | pyocd/target/builtin/target_CY8C6xx7.py | juhhov/pyOCD | 0965f7f038622ef1d933af5c6916c482a28244ff | [
"Apache-2.0"
] | null | null | null | # pyOCD debugger
# Copyright (c) 2006-2013 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# 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... | 47.075949 | 103 | 0.651385 | 1,412 | 14,876 | 6.707507 | 0.318697 | 0.038011 | 0.047513 | 0.050681 | 0.597297 | 0.567311 | 0.525182 | 0.482526 | 0.482526 | 0.474923 | 0 | 0.349289 | 0.26694 | 14,876 | 315 | 104 | 47.225397 | 0.519211 | 0.077306 | 0 | 0.434263 | 0 | 0 | 0.061715 | 0 | 0 | 0 | 0.367441 | 0 | 0 | 1 | 0.023904 | false | 0 | 0.039841 | 0 | 0.095618 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c93e735c69a5c44f2c6c1d0b5ffd8fc24410f15 | 5,063 | py | Python | openerp/addons/document_webdav/document_webdav.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | 3 | 2016-01-29T14:39:49.000Z | 2018-12-29T22:42:00.000Z | openerp/addons/document_webdav/document_webdav.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | 2 | 2016-03-23T14:29:41.000Z | 2017-02-20T17:11:30.000Z | openerp/addons/document_webdav/document_webdav.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affe... | 39.554688 | 100 | 0.635592 | 632 | 5,063 | 4.996835 | 0.373418 | 0.030399 | 0.018999 | 0.027866 | 0.362255 | 0.362255 | 0.334389 | 0.312856 | 0.281824 | 0.257125 | 0 | 0.007103 | 0.22141 | 5,063 | 127 | 101 | 39.866142 | 0.794013 | 0.35157 | 0 | 0.370968 | 0 | 0 | 0.217723 | 0.028211 | 0 | 0 | 0 | 0.015748 | 0 | 1 | 0.048387 | false | 0 | 0.048387 | 0 | 0.354839 | 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 |
7c9484567269b2d75c7edb1303bdac5cdb1fd6bc | 1,792 | py | Python | tests/bugs/core_2780_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_2780_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_2780_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_2780
# title: Include client library version and protocol version in mon$attachments
# decription:
# tracker_id: CORE-2780
# min_versions: ['3.0']
# versions: 3.0
# qmid:
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 3.... | 31.438596 | 177 | 0.628906 | 259 | 1,792 | 4.15444 | 0.474903 | 0.011152 | 0.011152 | 0.01487 | 0.066915 | 0.066915 | 0 | 0 | 0 | 0 | 0 | 0.05225 | 0.231027 | 1,792 | 56 | 178 | 32 | 0.728592 | 0.138951 | 0 | 0.057143 | 0 | 0.057143 | 0.686479 | 0.147616 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0.028571 | false | 0 | 0.057143 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7c97b51910991c676252dc83ff09de81e78aec93 | 37,794 | py | Python | pkg/Python27/Lib/site-packages/win32comext/axscript/client/framework.py | jkolokotronis/ds_mod_tools | d9fd4def34f6adfd0e2b176d0a9bf2a3dfd43f93 | [
"MIT"
] | 1 | 2017-08-07T14:52:02.000Z | 2017-08-07T14:52:02.000Z | Lib/site-packages/win32comext/axscript/client/framework.py | adzhou/Python27 | a7113b69d54a04cc780143241c2f1fe81939ad3a | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/win32comext/axscript/client/framework.py | adzhou/Python27 | a7113b69d54a04cc780143241c2f1fe81939ad3a | [
"bzip2-1.0.6"
] | null | null | null | """AXScript Client Framework
This module provides a core framework for an ActiveX Scripting client.
Derived classes actually implement the AX Client itself, including the
scoping rules, etc.
There are classes defined for the engine itself, and for ScriptItems
"""
import sys
from win32com.axscript imp... | 37.089303 | 194 | 0.723184 | 4,386 | 37,794 | 6.157091 | 0.175103 | 0.012664 | 0.014071 | 0.018996 | 0.344677 | 0.285058 | 0.256212 | 0.215405 | 0.177893 | 0.155675 | 0 | 0.004956 | 0.183151 | 37,794 | 1,018 | 195 | 37.125737 | 0.869785 | 0.208049 | 0 | 0.407008 | 0 | 0 | 0.047883 | 0.006763 | 0 | 0 | 0.000827 | 0 | 0.012129 | 0 | null | null | 0.018868 | 0.024259 | null | null | 0.01752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7c9833c323300d8652c3e4ca793dfb2e14100172 | 2,246 | py | Python | where/parsers/vlbi_netcdf.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 16 | 2018-08-31T10:31:11.000Z | 2022-03-15T16:07:24.000Z | where/parsers/vlbi_netcdf.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 5 | 2018-07-13T14:04:24.000Z | 2021-06-17T02:14:44.000Z | where/parsers/vlbi_netcdf.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 15 | 2018-06-07T05:45:24.000Z | 2022-03-15T16:07:27.000Z | """A parser for reading VLBI data from vgosDb files
Description:
------------
Reads data from files in the vgosDb files as defined in [1]. The data is organized in multiple smaller database
files based on netCDF.
References:
-----------
..[1] vgosDb format
ftp://gemini.gsfc.nasa.gov/pub/misc/jmg/VLBI_Structure_... | 29.168831 | 111 | 0.598397 | 261 | 2,246 | 5.05364 | 0.509579 | 0.026535 | 0.031842 | 0.025777 | 0.133434 | 0.133434 | 0.084913 | 0.084913 | 0 | 0 | 0 | 0.037547 | 0.288513 | 2,246 | 76 | 112 | 29.552632 | 0.78786 | 0.238201 | 0 | 0.045455 | 0 | 0 | 0.052476 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.204545 | 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 |
7c9cb31c62791e22122e31104191065e2a81f48c | 438 | py | Python | config.py | jacekmusial/crispy-pastebin-train-anything | be1d285ae4b4157a23040d2ad0cda20c2c2b6833 | [
"Apache-2.0"
] | null | null | null | config.py | jacekmusial/crispy-pastebin-train-anything | be1d285ae4b4157a23040d2ad0cda20c2c2b6833 | [
"Apache-2.0"
] | null | null | null | config.py | jacekmusial/crispy-pastebin-train-anything | be1d285ae4b4157a23040d2ad0cda20c2c2b6833 | [
"Apache-2.0"
] | null | null | null | # -- coding: utf-8 --
###database
host=""
user=""
passwd=""
db="pastebin"
#recommended charset to catch properly every char, including Japanese, Polish, Emoji, etc.
charset="utf8mb4"
table="P2"
###logger (In this project I use https://github.com/912d/restlogging)
restlogger="http://localhost:8080"
###directory
# th... | 23.052632 | 103 | 0.726027 | 61 | 438 | 5.213115 | 0.901639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028947 | 0.13242 | 438 | 18 | 104 | 24.333333 | 0.807895 | 0.66895 | 0 | 0 | 0 | 0 | 0.287879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c9fc5c066c807c5280b06d9a427a606e6557501 | 2,746 | py | Python | classy_vision/optim/param_scheduler/classy_vision_param_scheduler.py | newstzpz/ClassyVision-1 | 5c85ce180c40cb8696c0da60581db683242f38a6 | [
"MIT"
] | 1 | 2021-04-09T08:32:22.000Z | 2021-04-09T08:32:22.000Z | classy_vision/optim/param_scheduler/classy_vision_param_scheduler.py | newstzpz/ClassyVision-1 | 5c85ce180c40cb8696c0da60581db683242f38a6 | [
"MIT"
] | null | null | null | classy_vision/optim/param_scheduler/classy_vision_param_scheduler.py | newstzpz/ClassyVision-1 | 5c85ce180c40cb8696c0da60581db683242f38a6 | [
"MIT"
] | 1 | 2020-08-24T22:45:49.000Z | 2020-08-24T22:45:49.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from enum import Enum
from typing import Any, Dict
class UpdateInterval(Enum):
"""
Enum for specifying update... | 30.511111 | 87 | 0.642389 | 325 | 2,746 | 5.356923 | 0.44 | 0.088455 | 0.016083 | 0.022975 | 0.076967 | 0.049397 | 0.049397 | 0.049397 | 0.049397 | 0 | 0 | 0.005105 | 0.286599 | 2,746 | 89 | 88 | 30.853933 | 0.883614 | 0.515659 | 0 | 0.08 | 0 | 0 | 0.186504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.08 | 0 | 0.52 | 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 |
7cab69931b36f21d8d4a9baad08de04189ebcd79 | 2,441 | py | Python | python/reachable_states_color_map.py | st34-satoshi/quixo-cpp | 9d71c506bea91d8a12253d527958ac0c04d0327e | [
"MIT"
] | null | null | null | python/reachable_states_color_map.py | st34-satoshi/quixo-cpp | 9d71c506bea91d8a12253d527958ac0c04d0327e | [
"MIT"
] | null | null | null | python/reachable_states_color_map.py | st34-satoshi/quixo-cpp | 9d71c506bea91d8a12253d527958ac0c04d0327e | [
"MIT"
] | null | null | null | # each number (o number and x number) to table
# ex)
# o+x = 4
# o, x = 0, 4 = 1810
# o, x = 1, 3 = 1612
# o, x = 2, 2 = 1442
# o, x = 3, 1 = 2180
# o, x = 4, 0 = 1810
import matplotlib.pyplot as plt
import math
data_file_name = "notReachable"
# data_file_name = "noRNL"
def number_type(number):
if number == 0:... | 31.294872 | 112 | 0.60467 | 424 | 2,441 | 3.34434 | 0.242925 | 0.120592 | 0.126939 | 0.180536 | 0.390691 | 0.390691 | 0.332863 | 0.270804 | 0.270804 | 0.229901 | 0 | 0.038731 | 0.238427 | 2,441 | 77 | 113 | 31.701299 | 0.724045 | 0.411717 | 0 | 0 | 0 | 0 | 0.070362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.054054 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cae644a612291ebcbb4fedf3c7cfaa73ea92427 | 5,457 | py | Python | aea/cli/transfer.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | aea/cli/transfer.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | aea/cli/transfer.py | valory-xyz/agents-aea | 8f38efa96041b0156ed1ae328178e395dbabf2fc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2022 Valory AG
# Copyright 2018-2021 Fetch.AI Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ... | 32.289941 | 152 | 0.676562 | 684 | 5,457 | 5.254386 | 0.296784 | 0.015582 | 0.013912 | 0.016694 | 0.094046 | 0.047301 | 0.047301 | 0.047301 | 0.027824 | 0.027824 | 0 | 0.005285 | 0.202492 | 5,457 | 168 | 153 | 32.482143 | 0.820542 | 0.278175 | 0 | 0.127273 | 0 | 0.027273 | 0.161887 | 0.006517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027273 | false | 0.072727 | 0.1 | 0 | 0.145455 | 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 |
7cb94607ba8c76e6b6e14a104e5cdca26df10b1d | 11,978 | py | Python | code/cube.py | drewnicolette/rubiksCubeMagic | f11f0dc04b4563d9de4459f2d718b921f914e503 | [
"W3C"
] | null | null | null | code/cube.py | drewnicolette/rubiksCubeMagic | f11f0dc04b4563d9de4459f2d718b921f914e503 | [
"W3C"
] | null | null | null | code/cube.py | drewnicolette/rubiksCubeMagic | f11f0dc04b4563d9de4459f2d718b921f914e503 | [
"W3C"
] | null | null | null | #Copyright 2012 David W. Hogg (NYU).
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle
from matplotlib.patches import Polygon
class Cube(object):
"""
Cube
----
Initialize with arguments:
- `N`, the side length (the cube is `N`x`N`x`N`)
- optional `whit... | 38.88961 | 109 | 0.477041 | 1,644 | 11,978 | 3.448905 | 0.181265 | 0.026455 | 0.029982 | 0.016931 | 0.379365 | 0.370899 | 0.343739 | 0.298413 | 0.254145 | 0.237566 | 0 | 0.044183 | 0.361329 | 11,978 | 307 | 110 | 39.016287 | 0.696993 | 0.030723 | 0 | 0.246637 | 0 | 0 | 0.017611 | 0 | 0 | 0 | 0 | 0 | 0.008969 | 0 | null | null | 0 | 0.017937 | null | null | 0.004484 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7cbbbe08b77d2ebcc476f4c3dbef986dc4b74ea9 | 2,123 | py | Python | policy/migrations/0001_initial.py | hasmeed/democrance_backend | 27d3bafd3ae1d241aa13b211769903b2051192c0 | [
"Unlicense"
] | null | null | null | policy/migrations/0001_initial.py | hasmeed/democrance_backend | 27d3bafd3ae1d241aa13b211769903b2051192c0 | [
"Unlicense"
] | null | null | null | policy/migrations/0001_initial.py | hasmeed/democrance_backend | 27d3bafd3ae1d241aa13b211769903b2051192c0 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.2 on 2022-02-03 14:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('customer', '0002_alter_dccustomer_email'),
]
operations = [
migrations.CreateModel(
... | 46.152174 | 155 | 0.595855 | 222 | 2,123 | 5.536036 | 0.369369 | 0.062653 | 0.068348 | 0.081367 | 0.615134 | 0.577705 | 0.514239 | 0.514239 | 0.514239 | 0.514239 | 0 | 0.029004 | 0.252944 | 2,123 | 45 | 156 | 47.177778 | 0.745902 | 0.020254 | 0 | 0.526316 | 1 | 0 | 0.135707 | 0.012993 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cbc30f3ae2d02a2c50f0c7de3740c6d4b76494a | 1,192 | py | Python | msr/knn_retriever/retriever_config.py | real-tesco/Multi-Step-Reasoning | 12c57714c490c5ef5aea9ecabce2143ca89d90b2 | [
"Apache-2.0"
] | null | null | null | msr/knn_retriever/retriever_config.py | real-tesco/Multi-Step-Reasoning | 12c57714c490c5ef5aea9ecabce2143ca89d90b2 | [
"Apache-2.0"
] | null | null | null | msr/knn_retriever/retriever_config.py | real-tesco/Multi-Step-Reasoning | 12c57714c490c5ef5aea9ecabce2143ca89d90b2 | [
"Apache-2.0"
] | null | null | null | import argparse
import logging
logger = logging.getLogger()
def str2bool(v):
return v.lower() in ('yes', 'true', 't', '1', 'y')
def get_args(parser=None):
if parser is None:
parser = argparse.ArgumentParser()
parser.register('type', 'bool', str2bool)
parser.add_argument('-pretrain', t... | 36.121212 | 109 | 0.687919 | 164 | 1,192 | 4.829268 | 0.432927 | 0.125 | 0.236111 | 0.050505 | 0.063131 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023881 | 0.156879 | 1,192 | 32 | 110 | 37.25 | 0.764179 | 0 | 0 | 0 | 0 | 0 | 0.244966 | 0.075503 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.086957 | 0.043478 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cc0d2f833d89e711af3121b18175571c384fba6 | 1,672 | py | Python | setup.py | terencehonles/pyannotate | cbc58558a94f89aa4cbe289e5f11ffed123406f4 | [
"Apache-2.0"
] | 1,363 | 2017-11-13T23:46:52.000Z | 2022-03-31T17:23:58.000Z | setup.py | terencehonles/pyannotate | cbc58558a94f89aa4cbe289e5f11ffed123406f4 | [
"Apache-2.0"
] | 91 | 2017-11-14T18:48:00.000Z | 2022-03-10T09:21:27.000Z | setup.py | terencehonles/pyannotate | cbc58558a94f89aa4cbe289e5f11ffed123406f4 | [
"Apache-2.0"
] | 65 | 2017-11-16T05:38:02.000Z | 2022-02-11T15:38:21.000Z | #!/usr/bin/env python
import os
from setuptools import setup
def get_long_description():
filename = os.path.join(os.path.dirname(__file__), 'README.md')
with open(filename) as f:
return f.read()
setup(name='pyannotate',
version='1.2.0',
description="PyAnnotate: Auto-generate PEP-484 annot... | 38 | 98 | 0.586124 | 165 | 1,672 | 5.775758 | 0.539394 | 0.139559 | 0.183631 | 0.136411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021488 | 0.276316 | 1,672 | 43 | 99 | 38.883721 | 0.766116 | 0.011962 | 0 | 0.051282 | 0 | 0 | 0.490612 | 0.062386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.051282 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ccac747e356821b9f2801ec8780f2f2c58cbcc9 | 3,030 | py | Python | cache_helpers/request/real.py | jorrete/django-cache-helpers | ceeecba478326a333d8021721e58321b43cfd400 | [
"MIT"
] | 1 | 2020-05-19T12:57:24.000Z | 2020-05-19T12:57:24.000Z | cache_helpers/request/real.py | jorrete/django-cache-helpers | ceeecba478326a333d8021721e58321b43cfd400 | [
"MIT"
] | null | null | null | cache_helpers/request/real.py | jorrete/django-cache-helpers | ceeecba478326a333d8021721e58321b43cfd400 | [
"MIT"
] | null | null | null | import requests
import uuid
from django.conf import settings
from ..utils import set_cache_bust_status
from ..settings import logger
from .helpers import BaseRequestMixin, BaseRequestCommand
def get_session(basic_auth=None, login=None):
session = requests.session()
kwargs = {}
if basic_auth:
... | 30 | 97 | 0.618152 | 351 | 3,030 | 5.150997 | 0.233618 | 0.084624 | 0.033186 | 0.049779 | 0.331858 | 0.287611 | 0.238938 | 0.238938 | 0.196903 | 0.196903 | 0 | 0.001337 | 0.259736 | 3,030 | 100 | 98 | 30.3 | 0.804726 | 0.011551 | 0 | 0.202703 | 0 | 0 | 0.092883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0.054054 | 0.081081 | 0.013514 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7ccbdeeafdd9fb532f4c3d4823784085357a74ac | 16,459 | py | Python | pydal/helpers/rest.py | RekGRpth/pydal | af50952e263454f02edaa492a3d390099ac74012 | [
"BSD-3-Clause"
] | 1 | 2019-03-20T06:17:42.000Z | 2019-03-20T06:17:42.000Z | pydal/helpers/rest.py | RekGRpth/pydal | af50952e263454f02edaa492a3d390099ac74012 | [
"BSD-3-Clause"
] | null | null | null | pydal/helpers/rest.py | RekGRpth/pydal | af50952e263454f02edaa492a3d390099ac74012 | [
"BSD-3-Clause"
] | null | null | null | import re
from .regex import REGEX_SEARCH_PATTERN, REGEX_SQUARE_BRACKETS
from .._compat import long
def to_num(num):
result = 0
try:
result = long(num)
except NameError as e:
result = int(num)
return result
class RestParser(object):
def __init__(self, db):
self.db = db
... | 45.093151 | 88 | 0.356948 | 1,333 | 16,459 | 4.367592 | 0.145536 | 0.056682 | 0.06235 | 0.057712 | 0.472175 | 0.379423 | 0.344212 | 0.286843 | 0.248368 | 0.236688 | 0 | 0.013046 | 0.529619 | 16,459 | 364 | 89 | 45.217033 | 0.738956 | 0.08591 | 0 | 0.333333 | 0 | 0 | 0.062551 | 0.001489 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012579 | false | 0 | 0.009434 | 0 | 0.066038 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cd36537824d0a498a75e53ff97186b871d3959b | 6,874 | py | Python | AssetInvestment/views.py | Janspiry/AssetInvestment | b305236748187873cfd849f943f9ae5529a0c85d | [
"Apache-2.0"
] | 2 | 2021-02-28T08:34:44.000Z | 2021-04-09T17:27:11.000Z | AssetInvestment/views.py | Janspiry/AssetInvestment | b305236748187873cfd849f943f9ae5529a0c85d | [
"Apache-2.0"
] | null | null | null | AssetInvestment/views.py | Janspiry/AssetInvestment | b305236748187873cfd849f943f9ae5529a0c85d | [
"Apache-2.0"
] | 2 | 2021-02-28T08:34:46.000Z | 2021-09-10T13:22:30.000Z | from django.shortcuts import render, redirect
from .forms.login import LoginForm, RegisterForm
from django.http import HttpResponse, JsonResponse
from .models import User, Portfolio, Asset, tData
from django.contrib.auth import logout
import time
import os
import random
# from django.conf import settings
from Django im... | 39.505747 | 140 | 0.612162 | 744 | 6,874 | 5.627688 | 0.201613 | 0.106998 | 0.048722 | 0.020062 | 0.442321 | 0.385001 | 0.355625 | 0.338906 | 0.313351 | 0.297588 | 0 | 0.003804 | 0.235089 | 6,874 | 174 | 141 | 39.505747 | 0.792507 | 0.092523 | 0 | 0.310078 | 0 | 0 | 0.173878 | 0.058549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085271 | false | 0.062016 | 0.077519 | 0.015504 | 0.294574 | 0.015504 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7cd5ad6843404a4564bc707775809fe71ddae1e3 | 2,112 | py | Python | src/parser/cc_query_parser.py | vollov/py-parser | dc50886de0b2f72dfae7020ff325eddfa90a83c4 | [
"MIT"
] | null | null | null | src/parser/cc_query_parser.py | vollov/py-parser | dc50886de0b2f72dfae7020ff325eddfa90a83c4 | [
"MIT"
] | null | null | null | src/parser/cc_query_parser.py | vollov/py-parser | dc50886de0b2f72dfae7020ff325eddfa90a83c4 | [
"MIT"
] | null | null | null | import os,ntpath
class ClearCaseQueryParser:
def __init__(self):
print 'init'
self.file_set = set()
def load(self, file_path):
print 'loading ...'
#self.file_buffer = []
try:
with open(file_path, "r") as file_handler:
lines = fil... | 31.522388 | 66 | 0.541193 | 245 | 2,112 | 4.432653 | 0.330612 | 0.051565 | 0.040516 | 0.027624 | 0.163904 | 0.128913 | 0.128913 | 0.128913 | 0.128913 | 0.128913 | 0 | 0.003682 | 0.357008 | 2,112 | 67 | 67 | 31.522388 | 0.796024 | 0.252841 | 0 | 0 | 0 | 0 | 0.056905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7ce40a41bc2276a7ab087a3b613325dbc70ba9a6 | 1,167 | py | Python | GatherDataSetScripts/Video.py | ferendo/Skipperino-Kripperino-Machine-Learino | 26c85592debf5c8f77d3fa1631091e010ecc7725 | [
"MIT"
] | null | null | null | GatherDataSetScripts/Video.py | ferendo/Skipperino-Kripperino-Machine-Learino | 26c85592debf5c8f77d3fa1631091e010ecc7725 | [
"MIT"
] | null | null | null | GatherDataSetScripts/Video.py | ferendo/Skipperino-Kripperino-Machine-Learino | 26c85592debf5c8f77d3fa1631091e010ecc7725 | [
"MIT"
] | null | null | null | import json
class Video:
video_id = ""
video_published_at = ""
game_starting_time = []
is_game_starting_time_checked = False
video_file_location = ""
is_video_downloaded = False
def __init__(self, video_id, video_published_at, game_starting_time, is_game_starting_time_checked,
... | 36.46875 | 112 | 0.718081 | 156 | 1,167 | 4.782051 | 0.179487 | 0.160858 | 0.214477 | 0.120643 | 0.369973 | 0.302949 | 0.171582 | 0.171582 | 0.171582 | 0.171582 | 0 | 0 | 0.212511 | 1,167 | 31 | 113 | 37.645161 | 0.811752 | 0 | 0 | 0 | 0 | 0 | 0.095116 | 0.02485 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7cec4250240624b033789c439d2fb1bd443be4ff | 1,115 | py | Python | tests/test_model_validator.py | d53dave/cgopt | a655d87a8577d18a7a714431f4237e4c9ebbf7e8 | [
"MIT"
] | 1 | 2018-08-11T18:58:16.000Z | 2018-08-11T18:58:16.000Z | tests/test_model_validator.py | d53dave/cgopt | a655d87a8577d18a7a714431f4237e4c9ebbf7e8 | [
"MIT"
] | 1 | 2018-03-07T19:54:44.000Z | 2018-03-07T19:54:44.000Z | tests/test_model_validator.py | d53dave/cgopt | a655d87a8577d18a7a714431f4237e4c9ebbf7e8 | [
"MIT"
] | 1 | 2018-01-10T19:30:10.000Z | 2018-01-10T19:30:10.000Z | import pytest
from pyhocon import ConfigFactory
from context import ModelValidator
@pytest.fixture
def internal_conf():
return ConfigFactory.parse_file('csaopt/internal/csaopt-internal.conf')
@pytest.fixture
def conf():
return ConfigFactory.parse_string("""
{
remote {
a... | 22.755102 | 81 | 0.61704 | 125 | 1,115 | 5.232 | 0.432 | 0.061162 | 0.073395 | 0.133028 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032383 | 0.307623 | 1,115 | 48 | 82 | 23.229167 | 0.814767 | 0 | 0 | 0.085714 | 0 | 0 | 0.321973 | 0.032287 | 0 | 0 | 0 | 0 | 0.085714 | 1 | 0.171429 | false | 0.028571 | 0.085714 | 0.114286 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7cf034f8833b4a9d8d56924b9fcfc148954f3a69 | 492 | py | Python | Data Structures and Algorithms/LeetCode Algo Solutions/MEDIUM DIFFICULTY PROBLEMS/ReverseWordsInAString.py | akkik04/Python-DataStructures-and-Algorithms | 8db63173218e5a9205dbb325935c71fec93b695c | [
"MIT"
] | 1 | 2022-01-22T18:19:07.000Z | 2022-01-22T18:19:07.000Z | Data Structures and Algorithms/LeetCode Algo Solutions/MEDIUM DIFFICULTY PROBLEMS/ReverseWordsInAString.py | akkik04/Python-DataStructures-and-Algorithms | 8db63173218e5a9205dbb325935c71fec93b695c | [
"MIT"
] | null | null | null | Data Structures and Algorithms/LeetCode Algo Solutions/MEDIUM DIFFICULTY PROBLEMS/ReverseWordsInAString.py | akkik04/Python-DataStructures-and-Algorithms | 8db63173218e5a9205dbb325935c71fec93b695c | [
"MIT"
] | null | null | null | # REVERSE WORDS IN A STRING LEETCODE SOLUTION:
# creating a class.
class Solution(object):
# creating a function to solve the problem.
def reverseWords(self, s):
# code to create a variable to store the split version of the given string.
word_list = s.split()
# code to rev... | 30.75 | 84 | 0.646341 | 68 | 492 | 4.632353 | 0.5 | 0.047619 | 0.095238 | 0.107937 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29065 | 492 | 16 | 85 | 30.75 | 0.902579 | 0.577236 | 0 | 0 | 0 | 0 | 0.005348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
7cf19d8e0d5c1f79c9037a5cc391783ea42e41d0 | 1,108 | py | Python | activity.py | yolannel/CTKBlockchain | 8c78c492f93d2624efc09bb1d4fa3905fe98bce1 | [
"MIT"
] | null | null | null | activity.py | yolannel/CTKBlockchain | 8c78c492f93d2624efc09bb1d4fa3905fe98bce1 | [
"MIT"
] | null | null | null | activity.py | yolannel/CTKBlockchain | 8c78c492f93d2624efc09bb1d4fa3905fe98bce1 | [
"MIT"
] | null | null | null | import random
import os
def run(a):
i = random.randint(1, 8)
for x in range(0, int(a)):
i = random.randint(1, 9)
if i <= 3:
firstTrans()
elif 3 < i <= 6:
secTrans()
elif i == 7:
firstMine()
else:
secMine()
def firstTrans... | 25.767442 | 95 | 0.501805 | 153 | 1,108 | 3.633987 | 0.372549 | 0.093525 | 0.100719 | 0.064748 | 0.73741 | 0.679856 | 0.651079 | 0.651079 | 0.651079 | 0.651079 | 0 | 0.076456 | 0.256318 | 1,108 | 42 | 96 | 26.380952 | 0.598301 | 0 | 0 | 0.3125 | 0 | 0 | 0.16426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.0625 | 0 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b0edad7a8a021bb6faf6799f4472befe1851e5e | 474 | py | Python | mysite/webapp1/utils.py | obaidr76/CKD | c92faa6e08c2a896f467a54ee5d1186a47325553 | [
"Apache-2.0"
] | null | null | null | mysite/webapp1/utils.py | obaidr76/CKD | c92faa6e08c2a896f467a54ee5d1186a47325553 | [
"Apache-2.0"
] | 2 | 2019-04-16T17:35:43.000Z | 2019-04-27T18:34:54.000Z | mysite/webapp1/utils.py | obaidr76/CKD | c92faa6e08c2a896f467a54ee5d1186a47325553 | [
"Apache-2.0"
] | 1 | 2019-04-16T06:31:14.000Z | 2019-04-16T06:31:14.000Z | from io import BytesIO
from django.http import HttpResponse
from django.template.loader import get_template
from xhtml2pdf import pisa
def render_to_pdf(template_src, context_dict={}):
template = get_template(template_src)
html = template.render(context_dict)
result = BytesIO()
pdf = pisa.pisaDocument... | 36.461538 | 78 | 0.751055 | 63 | 474 | 5.507937 | 0.539683 | 0.057637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004988 | 0.154008 | 474 | 13 | 79 | 36.461538 | 0.860349 | 0 | 0 | 0 | 0 | 0 | 0.042105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.583333 | 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 |
6b1208ebf6d886c2509498b3cadbb6ae9eb07298 | 58,787 | py | Python | rmgpy/data/base.py | speth/RMG-Py | 1d2c2b684580396e984459d9347628a5ceb80e2e | [
"MIT"
] | 1 | 2020-01-14T09:12:22.000Z | 2020-01-14T09:12:22.000Z | rmgpy/data/base.py | speth/RMG-Py | 1d2c2b684580396e984459d9347628a5ceb80e2e | [
"MIT"
] | null | null | null | rmgpy/data/base.py | speth/RMG-Py | 1d2c2b684580396e984459d9347628a5ceb80e2e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# #
# RMG - Reaction Mechanism Generator #
# ... | 42.599275 | 215 | 0.550666 | 6,460 | 58,787 | 4.993808 | 0.133282 | 0.012647 | 0.006293 | 0.004464 | 0.254681 | 0.214631 | 0.190298 | 0.170676 | 0.14597 | 0.13168 | 0 | 0.00506 | 0.337711 | 58,787 | 1,379 | 216 | 42.630167 | 0.823522 | 0.118342 | 0 | 0.334559 | 0 | 0.003676 | 0.094791 | 0.017129 | 0 | 0 | 0 | 0 | 0.003676 | 0 | null | null | 0.003676 | 0.015931 | 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 |
6b143eb8b287f9a0db8cd2681e0e3262022488d6 | 6,883 | py | Python | tests/test_sim_manager.py | jdrusso/westpa | 676fdafe23b4ae8229d311b01df051ecde5b331c | [
"MIT"
] | 1 | 2022-02-04T17:07:28.000Z | 2022-02-04T17:07:28.000Z | tests/test_sim_manager.py | jdrusso/westpa | 676fdafe23b4ae8229d311b01df051ecde5b331c | [
"MIT"
] | 4 | 2022-01-24T18:13:36.000Z | 2022-02-18T06:19:05.000Z | tests/test_sim_manager.py | SHZ66/westpa | c91711bf8f1f75359c0d4d28765a6d587dfd6adc | [
"MIT"
] | null | null | null | import argparse
import os
from unittest import TestCase
from unittest.mock import MagicMock
import tempfile
import pytest
import numpy as np
import westpa
from westpa.core.binning.assign import RectilinearBinMapper
from westpa.core.segment import Segment
from westpa.core.states import BasisState
from westpa.core.sim_... | 38.027624 | 114 | 0.706378 | 936 | 6,883 | 4.889957 | 0.192308 | 0.13109 | 0.171291 | 0.070789 | 0.381473 | 0.251475 | 0.188988 | 0.151846 | 0.12825 | 0.101376 | 0 | 0.016173 | 0.191486 | 6,883 | 180 | 115 | 38.238889 | 0.806289 | 0.013076 | 0 | 0.07971 | 0 | 0 | 0.02416 | 0.005303 | 0 | 0 | 0 | 0.005556 | 0.086957 | 1 | 0.210145 | false | 0.007246 | 0.086957 | 0 | 0.311594 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b1b35e78da2ea2a1fb634621f852f4098250215 | 1,167 | py | Python | src/python/competition/tasks/episodictask.py | miyamotok0105/Mario_AI_Competition2009 | 2fb527b45c9590deabb781f2959e458bc3882b72 | [
"MIT"
] | 1 | 2020-12-22T03:46:18.000Z | 2020-12-22T03:46:18.000Z | src/python/competition/tasks/episodictask.py | miyamotok0105/Mario_AI_Competition2009 | 2fb527b45c9590deabb781f2959e458bc3882b72 | [
"MIT"
] | null | null | null | src/python/competition/tasks/episodictask.py | miyamotok0105/Mario_AI_Competition2009 | 2fb527b45c9590deabb781f2959e458bc3882b72 | [
"MIT"
] | 3 | 2020-11-22T11:49:41.000Z | 2020-12-07T02:21:27.000Z | __author__="Sergey Karakovskiy, sergey at idsia fullstop ch"
__date__ ="$May 12, 2009 11:46:44 PM$"
from task import Task
class EpisodicTask(Task):
"""
Documentation
"""
# tracking cumulative reward
cumReward = 0
# tracking the number of samples
samples = 0
def reset(self):
... | 27.139535 | 87 | 0.633248 | 138 | 1,167 | 5.297101 | 0.536232 | 0.053352 | 0.030096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02019 | 0.278492 | 1,167 | 42 | 88 | 27.785714 | 0.847981 | 0.365039 | 0 | 0 | 0 | 0 | 0.146552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b1bfaaf259ac2376cabcfbcff8fadb107b28138 | 458 | py | Python | publication_backbone/admin/publicationgroupadmin.py | Excentrics/publication-backbone | 65c9820308b09a6ae1086c265f8d49e36f3724b9 | [
"BSD-3-Clause"
] | 6 | 2016-05-19T14:59:51.000Z | 2020-03-19T10:08:29.000Z | publication_backbone/admin/publicationgroupadmin.py | Excentrics/publication-backbone | 65c9820308b09a6ae1086c265f8d49e36f3724b9 | [
"BSD-3-Clause"
] | null | null | null | publication_backbone/admin/publicationgroupadmin.py | Excentrics/publication-backbone | 65c9820308b09a6ae1086c265f8d49e36f3724b9 | [
"BSD-3-Clause"
] | null | null | null | #-*- coding: utf-8 -*-
from django.contrib import admin
from publication_backbone.models import PublicationGroup
class PublicationGroupAdmin(admin.ModelAdmin):
save_on_top = True
list_display = ('name', 'slug', 'date_added', 'last_modified',)
search_fields = ['name', 'slug', ]
prepopulated_fields ... | 24.105263 | 67 | 0.724891 | 50 | 458 | 6.46 | 0.72 | 0.049536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002558 | 0.146288 | 458 | 18 | 68 | 25.444444 | 0.823529 | 0.045852 | 0 | 0 | 0 | 0 | 0.107798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.777778 | 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 |
6b1e233f382a8391d69ae7c1bb11c2165e3a8c3b | 11,336 | py | Python | utils/common_util.py | haodaohong/zimt8 | 41c1a8493775002b8a29075125b362991035cfe8 | [
"Apache-2.0"
] | 1 | 2021-09-30T05:46:44.000Z | 2021-09-30T05:46:44.000Z | utils/common_util.py | haodaohong/zimt8 | 41c1a8493775002b8a29075125b362991035cfe8 | [
"Apache-2.0"
] | null | null | null | utils/common_util.py | haodaohong/zimt8 | 41c1a8493775002b8a29075125b362991035cfe8 | [
"Apache-2.0"
] | 1 | 2021-09-24T15:46:39.000Z | 2021-09-24T15:46:39.000Z | # -*- coding: utf-8 -*-
import datetime
import decimal
import json
import logging
import os
import platform
import time
from subprocess import call
import pip
import psutil
from django.core.serializers.json import DjangoJSONEncoder
from django.http import HttpResponse
from utils.except_util import GetException
fro... | 29.066667 | 116 | 0.552664 | 1,263 | 11,336 | 4.779889 | 0.206651 | 0.032798 | 0.054663 | 0.029816 | 0.503727 | 0.466457 | 0.43896 | 0.417757 | 0.382972 | 0.338247 | 0 | 0.009472 | 0.282904 | 11,336 | 389 | 117 | 29.141388 | 0.733178 | 0.090685 | 0 | 0.433673 | 0 | 0 | 0.076815 | 0.025181 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6b20d054e2035c67e2e139507df0123975a96a21 | 4,128 | py | Python | recipes/test_models.py | UW-GAC/pie | 89ae277f5ba1357580d78c3527f26200686308a6 | [
"MIT"
] | null | null | null | recipes/test_models.py | UW-GAC/pie | 89ae277f5ba1357580d78c3527f26200686308a6 | [
"MIT"
] | 3 | 2020-01-02T20:17:06.000Z | 2020-01-04T21:13:09.000Z | recipes/test_models.py | UW-GAC/pie | 89ae277f5ba1357580d78c3527f26200686308a6 | [
"MIT"
] | 1 | 2021-10-29T22:15:27.000Z | 2021-10-29T22:15:27.000Z | """Test functions and classes for recipes.models."""
from datetime import datetime
from django.core.exceptions import ValidationError
from django.test import TestCase
from . import factories
from . import models
class UnitRecipeTest(TestCase):
def test_model_saving(self):
"""Test that you can save a U... | 44.387097 | 111 | 0.720446 | 442 | 4,128 | 6.529412 | 0.230769 | 0.118503 | 0.033264 | 0.149688 | 0.628552 | 0.469161 | 0.459806 | 0.3614 | 0.310811 | 0.23666 | 0 | 0.002389 | 0.188711 | 4,128 | 92 | 112 | 44.869565 | 0.859361 | 0.174661 | 0 | 0.413793 | 0 | 0 | 0.027594 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 1 | 0.224138 | false | 0.017241 | 0.086207 | 0 | 0.344828 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b20f253dea8fd246adfebd6e09341cbdfe806ff | 1,229 | py | Python | graphene_django_jwt/migrations/0001_initial.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | graphene_django_jwt/migrations/0001_initial.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | graphene_django_jwt/migrations/0001_initial.py | Speedy1991/graphene-django-jwt | d5a09785fdda31328e6a6dbdbbdf3436c9275435 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-26 13:42
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 37.242424 | 170 | 0.62083 | 129 | 1,229 | 5.744186 | 0.51938 | 0.103914 | 0.037787 | 0.059379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019544 | 0.25061 | 1,229 | 32 | 171 | 38.40625 | 0.785016 | 0.036615 | 0 | 0 | 1 | 0 | 0.13621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.28 | 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 |
6b2336a376afb9dff94fe24d3a5de53d892d0ea7 | 5,928 | py | Python | pdf4me/Pdf4mePythonClientApi/pdf4me/model/notification.py | pdf4me/pdf4me-clientapi-python | 17a1c1baae861369084d658475be56be42ca92d0 | [
"MIT"
] | 1 | 2020-06-30T22:18:17.000Z | 2020-06-30T22:18:17.000Z | pdf4me/Pdf4mePythonClientApi/pdf4me/model/notification.py | pdf4me/pdf4me-clientapi-python | 17a1c1baae861369084d658475be56be42ca92d0 | [
"MIT"
] | null | null | null | pdf4me/Pdf4mePythonClientApi/pdf4me/model/notification.py | pdf4me/pdf4me-clientapi-python | 17a1c1baae861369084d658475be56be42ca92d0 | [
"MIT"
] | 1 | 2018-07-10T17:40:37.000Z | 2018-07-10T17:40:37.000Z | # coding: utf-8
"""
Pdf4me
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class... | 29.939394 | 125 | 0.610661 | 691 | 5,928 | 5.026049 | 0.188133 | 0.043766 | 0.065649 | 0.087532 | 0.453786 | 0.378635 | 0.328822 | 0.268068 | 0.145983 | 0.098186 | 0 | 0.015981 | 0.303306 | 5,928 | 197 | 126 | 30.091371 | 0.824939 | 0.336538 | 0 | 0.068966 | 1 | 0 | 0.06474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16092 | false | 0 | 0.034483 | 0 | 0.344828 | 0.022989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b234d3cb25ccbad7b30e09d1ab879533ce07403 | 1,817 | py | Python | bin/analysis/representation_categories.py | rlouf/socio-spatial-stratification | 0b6229248882253548efed2442fd04d69cb617e4 | [
"BSD-3-Clause"
] | 1 | 2016-06-22T14:13:07.000Z | 2016-06-22T14:13:07.000Z | bin/analysis/representation_categories.py | rlouf/patterns-of-segregation | 0b6229248882253548efed2442fd04d69cb617e4 | [
"BSD-3-Clause"
] | 1 | 2015-05-26T16:04:44.000Z | 2015-06-14T16:25:10.000Z | bin/analysis/representation_categories.py | rlouf/socio-spatial-stratification | 0b6229248882253548efed2442fd04d69cb617e4 | [
"BSD-3-Clause"
] | 4 | 2016-03-22T10:48:03.000Z | 2018-01-27T03:11:50.000Z | """category_representation.py
Compute the representation of the original categories in the dataset and the
variance obtained for the null model.
"""
import csv
import marble as mb
#
# Import a list of MSA
#
msa = {}
with open('data/names/msa.csv', 'r') as source:
reader = csv.reader(source, delimiter='\t')
r... | 29.306452 | 88 | 0.550908 | 232 | 1,817 | 4.301724 | 0.288793 | 0.088176 | 0.038076 | 0.03006 | 0.452906 | 0.452906 | 0.452906 | 0.372745 | 0.372745 | 0.372745 | 0 | 0.004039 | 0.318657 | 1,817 | 61 | 89 | 29.786885 | 0.8021 | 0.079252 | 0 | 0.514286 | 0 | 0 | 0.167109 | 0.084218 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6b23c8c0f3ae5a12a86bf5944510c0113aadf898 | 7,268 | py | Python | Python/tree_editor/Node.py | Fornost461/drafts | 39f56fb16ebf206077e5f8617741aa93623195af | [
"CC0-1.0"
] | null | null | null | Python/tree_editor/Node.py | Fornost461/drafts | 39f56fb16ebf206077e5f8617741aa93623195af | [
"CC0-1.0"
] | null | null | null | Python/tree_editor/Node.py | Fornost461/drafts | 39f56fb16ebf206077e5f8617741aa93623195af | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
#todo:
# update system
# urls
# attributes: subscribers, subscriptions
class Node:
def __init__(self, value = ''):
if not isinstance(value, str):
raise TypeError
self.value = value
self.children = []
self.parent = None
self... | 33.187215 | 116 | 0.555311 | 823 | 7,268 | 4.622114 | 0.1774 | 0.039432 | 0.029443 | 0.039958 | 0.256046 | 0.189274 | 0.15694 | 0.095163 | 0.068349 | 0.04837 | 0 | 0.008095 | 0.354155 | 7,268 | 218 | 117 | 33.33945 | 0.802301 | 0.09645 | 0 | 0.219858 | 0 | 0 | 0.020974 | 0 | 0 | 0 | 0 | 0.004587 | 0 | 0 | null | null | 0 | 0 | null | null | 0.070922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6b2b01e85a06279b38afcd23e031c09add1d99f5 | 934 | py | Python | exercises/collatz-conjecture/collatz_conjecture_test.py | kishankj/python | 82042de746128127502e109111e6c4e8ab002af6 | [
"MIT"
] | 1 | 2020-06-14T17:26:54.000Z | 2020-06-14T17:26:54.000Z | exercises/collatz-conjecture/collatz_conjecture_test.py | kishankj/python | 82042de746128127502e109111e6c4e8ab002af6 | [
"MIT"
] | 1 | 2019-07-23T14:55:16.000Z | 2019-07-23T16:58:25.000Z | exercises/collatz-conjecture/collatz_conjecture_test.py | kishankj/python | 82042de746128127502e109111e6c4e8ab002af6 | [
"MIT"
] | 1 | 2020-12-08T14:52:16.000Z | 2020-12-08T14:52:16.000Z | import unittest
from collatz_conjecture import steps
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.1
class CollatzConjectureTest(unittest.TestCase):
def test_zero_steps_for_one(self):
self.assertEqual(steps(1), 0)
def test_divide_if_even(self):
self.assertEqual(s... | 25.944444 | 75 | 0.706638 | 115 | 934 | 5.426087 | 0.504348 | 0.067308 | 0.121795 | 0.153846 | 0.314103 | 0.314103 | 0.314103 | 0.314103 | 0.189103 | 0 | 0 | 0.031957 | 0.195931 | 934 | 35 | 76 | 26.685714 | 0.798935 | 0.09743 | 0 | 0.095238 | 0 | 0 | 0.011905 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 1 | 0.333333 | false | 0 | 0.095238 | 0.047619 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b389017b56dd1f3004104f9941349716c20cb66 | 2,583 | py | Python | tests/plugins/test_vk.py | oe-mirrors/streamlink-27 | 850ccdfdd32ff41cd5034881174cc34442f1589c | [
"BSD-2-Clause"
] | 1 | 2019-09-14T10:19:47.000Z | 2019-09-14T10:19:47.000Z | tests/plugins/test_vk.py | oe-mirrors/streamlink-27 | 850ccdfdd32ff41cd5034881174cc34442f1589c | [
"BSD-2-Clause"
] | 2 | 2021-06-09T14:13:58.000Z | 2021-09-27T19:14:46.000Z | tests/plugins/test_vk.py | Billy2011/streamlink | 5f99ec52e0a9c315aeee00b96287edc45adaccd3 | [
"BSD-2-Clause"
] | 4 | 2021-04-21T19:01:55.000Z | 2021-09-27T18:31:39.000Z | import pytest
import requests_mock as rm
from streamlink import Streamlink
from streamlink.exceptions import NoStreamsError
from streamlink.plugins.vk import VK
from tests.plugins import PluginCanHandleUrl
class TestPluginCanHandleUrlVK(PluginCanHandleUrl):
__plugin__ = VK
should_match = [
"https://... | 33.545455 | 114 | 0.674797 | 322 | 2,583 | 5.26087 | 0.319876 | 0.070838 | 0.12987 | 0.079693 | 0.359504 | 0.311688 | 0.273908 | 0.24085 | 0.195986 | 0.195986 | 0 | 0.213383 | 0.172667 | 2,583 | 76 | 115 | 33.986842 | 0.579317 | 0.029423 | 0 | 0.177419 | 0 | 0.080645 | 0.518385 | 0.028777 | 0 | 0 | 0 | 0 | 0.048387 | 1 | 0.016129 | false | 0 | 0.096774 | 0 | 0.177419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b3bdf0a552df04d74f2a10cfb07eb637b319707 | 881 | py | Python | pycellau_example_3d.py | JBaguley/pycellau | f3b6059e8195a525e4438db2611ad97153b74406 | [
"MIT"
] | null | null | null | pycellau_example_3d.py | JBaguley/pycellau | f3b6059e8195a525e4438db2611ad97153b74406 | [
"MIT"
] | null | null | null | pycellau_example_3d.py | JBaguley/pycellau | f3b6059e8195a525e4438db2611ad97153b74406 | [
"MIT"
] | null | null | null | import pycellau
class Spreader(pycellau.Cell3D):
on = "O"
off = "#"
def update(self, model):
counter = 0
for i in range(9):
if model.getGrid()[(self.y-1+(i//3))%model.y][(self.x-1+(i%3))%model.x].s == self.on:
counter += 1
if self.s == self.off and counte... | 31.464286 | 97 | 0.241771 | 63 | 881 | 3.380952 | 0.47619 | 0.070423 | 0.028169 | 0.075117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.199773 | 881 | 27 | 98 | 32.62963 | 0.280851 | 0 | 0 | 0.375 | 0 | 0 | 0.115778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b40d6a658960b129c560722c2a18952e5b55f1b | 284 | py | Python | setup.py | jonyboi396825/COM-Server | e4e8a1a5e9f86c1036ebb7ac3d39c20b63e7e905 | [
"MIT"
] | 4 | 2021-11-09T04:11:51.000Z | 2022-01-30T01:03:16.000Z | setup.py | jonyboi396825/COM-Server | e4e8a1a5e9f86c1036ebb7ac3d39c20b63e7e905 | [
"MIT"
] | 55 | 2021-11-15T16:36:25.000Z | 2022-03-10T04:48:08.000Z | setup.py | jonyboi396825/COM-Server | e4e8a1a5e9f86c1036ebb7ac3d39c20b63e7e905 | [
"MIT"
] | 1 | 2021-11-12T02:14:07.000Z | 2021-11-12T02:14:07.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
install_requires=[
"setuptools>=58.5.3",
"wheel>=0.37.0",
"pyserial>=3.5",
"flask_restful>=0.3.9",
"flask-cors>=3.0.10",
"waitress>=2.0.0"
]
)
| 17.75 | 31 | 0.510563 | 39 | 284 | 3.666667 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107317 | 0.278169 | 284 | 15 | 32 | 18.933333 | 0.590244 | 0.151408 | 0 | 0 | 0 | 0 | 0.405858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b411d8d213f36d0ce4be35c25875ebe691ef12e | 3,236 | py | Python | src/fora/remote_settings.py | oddlama/forge | d09b0f309ce7dcda79dc03765473b48732c71845 | [
"MIT"
] | 14 | 2021-12-17T10:38:27.000Z | 2022-03-02T01:20:01.000Z | src/fora/remote_settings.py | oddlama/forge | d09b0f309ce7dcda79dc03765473b48732c71845 | [
"MIT"
] | 2 | 2022-01-11T13:31:09.000Z | 2022-02-03T15:41:43.000Z | src/fora/remote_settings.py | oddlama/forge | d09b0f309ce7dcda79dc03765473b48732c71845 | [
"MIT"
] | 2 | 2022-02-03T15:20:51.000Z | 2022-02-03T15:45:11.000Z | """
Provides a class that represents execution defaults for a remote host.
"""
from __future__ import annotations
from typing import Any, Optional
from dataclasses import dataclass
@dataclass
class ResolvedRemoteSettings:
"""
This class stores a resolved version of the RemoteSettings object,
it only has m... | 41.487179 | 94 | 0.626391 | 436 | 3,236 | 4.538991 | 0.243119 | 0.048509 | 0.080849 | 0.072764 | 0.214755 | 0.043456 | 0.043456 | 0.043456 | 0.043456 | 0.043456 | 0 | 0 | 0.294499 | 3,236 | 77 | 95 | 42.025974 | 0.866842 | 0.226823 | 0 | 0.133333 | 0 | 0 | 0.037399 | 0.01275 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.066667 | 0 | 0.555556 | 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 |
6b450962964f29dd560165c9eec5898a6d3ee4fc | 8,573 | py | Python | Desistencia_Classificacao/main.py | luizfmgarcia/Desistencia_ClassificacaoAM | ec13b20283132ccfe7436d78ce51d2e9638db00d | [
"MIT"
] | null | null | null | Desistencia_Classificacao/main.py | luizfmgarcia/Desistencia_ClassificacaoAM | ec13b20283132ccfe7436d78ce51d2e9638db00d | [
"MIT"
] | null | null | null | Desistencia_Classificacao/main.py | luizfmgarcia/Desistencia_ClassificacaoAM | ec13b20283132ccfe7436d78ce51d2e9638db00d | [
"MIT"
] | null | null | null | import genData
import ioData
import numpy as np
from sklearn import svm
from sklearn.model_selection import cross_val_score
from sklearn.preprocessing import StandardScaler
from sklearn.decomposition import PCA
#======================================================================================================... | 47.627778 | 210 | 0.623819 | 1,069 | 8,573 | 4.847521 | 0.246024 | 0.038595 | 0.040139 | 0.026245 | 0.4533 | 0.425125 | 0.373601 | 0.306445 | 0.306445 | 0.267464 | 0 | 0.008832 | 0.194331 | 8,573 | 180 | 211 | 47.627778 | 0.741422 | 0.144524 | 0 | 0.31746 | 0 | 0.031746 | 0.354583 | 0.04104 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.31746 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6b469753cb42e6cc99f4f4b76c6068c828ce07b7 | 1,306 | py | Python | minjector/injection/providers.py | MichaelSchneeberger/minjector | 64655483e53f49696e6ef6a3b45ca7bca8ab2dfb | [
"MIT"
] | null | null | null | minjector/injection/providers.py | MichaelSchneeberger/minjector | 64655483e53f49696e6ef6a3b45ca7bca8ab2dfb | [
"MIT"
] | null | null | null | minjector/injection/providers.py | MichaelSchneeberger/minjector | 64655483e53f49696e6ef6a3b45ca7bca8ab2dfb | [
"MIT"
] | null | null | null | import functools
import inspect
from minjector.providers.providerbase import ProviderBase
from minjector.providers.singletonprovider import SingletonProvider
from minjector.readermonad.readermonadop import ReaderMonadOp
def provides(key, singleton=False):
def wrapper(func):
argspec = inspect.getfullargsp... | 37.314286 | 105 | 0.618683 | 122 | 1,306 | 6.57377 | 0.409836 | 0.048628 | 0.054863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001094 | 0.300153 | 1,306 | 35 | 106 | 37.314286 | 0.876368 | 0.022971 | 0 | 0.076923 | 0 | 0 | 0.04549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.192308 | 0.038462 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6b4715fb6a9186fd50c7884ac45eda3562ce3047 | 8,025 | py | Python | arithmetic4py/src/pagerank/pygraph/classes/digraph.py | gwdgithubnom/monkey-clever | 05290c33f7f2cf1de752e68f99464b92c02a9faf | [
"MIT"
] | 159 | 2018-02-06T02:13:38.000Z | 2022-03-16T02:20:11.000Z | project/CodePy2/extra/python-graph-master/temp/pygraph/classes/digraph.py | gorff/Toric-Code-Correlated-Error-Decoder | c43cf34c22f03334add078f5d02e6604e5c89cba | [
"MIT"
] | 3 | 2018-04-10T20:34:31.000Z | 2018-05-02T12:38:10.000Z | contrib/python-graph/core/pygraph/classes/digraph.py | libsmelt/Simulator | dad65cf14259f2e4b190620832d17e842b28a613 | [
"MIT"
] | 40 | 2018-02-21T10:18:10.000Z | 2022-03-20T01:38:08.000Z | # Copyright (c) 2007-2009 Pedro Matiello <pmatiello@gmail.com>
# Christian Muise <christian.muise@gmail.com>
# Johannes Reinhardt <jreinhardt@ist-dein-freund.de>
# Nathan Davis <davisn90210@gmail.com>
# Zsolt Haraszti <zsolt... | 30.865385 | 103 | 0.58729 | 989 | 8,025 | 4.672396 | 0.237614 | 0.046743 | 0.044146 | 0.018394 | 0.293443 | 0.23523 | 0.199091 | 0.157109 | 0.131573 | 0.131573 | 0 | 0.002598 | 0.328598 | 8,025 | 259 | 104 | 30.984556 | 0.855048 | 0.489346 | 0 | 0.070423 | 0 | 0 | 0.044958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211268 | false | 0 | 0.056338 | 0 | 0.422535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b4b55839a635e9e1a532650434c2d4a3679748f | 17,952 | py | Python | GM2AUTOSAR_MM/transformation/models/MapDistributable_MDL.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 3 | 2017-06-02T19:26:27.000Z | 2021-06-14T04:25:45.000Z | GM2AUTOSAR_MM/transformation/models/MapDistributable_MDL.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 8 | 2016-08-24T07:04:07.000Z | 2017-05-26T16:22:47.000Z | GM2AUTOSAR_MM/transformation/models/MapDistributable_MDL.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 1 | 2019-10-31T06:00:23.000Z | 2019-10-31T06:00:23.000Z | """
__MapDistributable_MDL.py_____________________________________________________
Automatically generated AToM3 Model File (Do not modify directly)
Author: levi
Modified: Fri Aug 23 15:40:27 2013
______________________________________________________________________________
"""
from stickylink import *
from widthXfil... | 35.408284 | 80 | 0.724098 | 2,190 | 17,952 | 5.730137 | 0.089498 | 0.049247 | 0.036656 | 0.0408 | 0.439079 | 0.374691 | 0.355327 | 0.31628 | 0.304008 | 0.270221 | 0 | 0.066859 | 0.168505 | 17,952 | 506 | 81 | 35.478261 | 0.773833 | 0.140931 | 0 | 0.267045 | 1 | 0 | 0.054484 | 0.00365 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002841 | false | 0 | 0.119318 | 0 | 0.122159 | 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 |
860cdd45705ad38566075e7c5c8f6a6ff7b93152 | 1,532 | py | Python | data_wrangling_with_mongodb/Lesson_3_Problem_Set/01-Auditing_Data_Quality/audit.py | robinl3680/udacity-course | 308daf62479f9bf6f4256eb19313631f1bb4c5da | [
"MIT"
] | 68 | 2016-07-28T07:24:57.000Z | 2021-10-09T19:28:48.000Z | data_wrangling_with_mongodb/Lesson_3_Problem_Set/01-Auditing_Data_Quality/audit.py | robinl3680/udacity-course | 308daf62479f9bf6f4256eb19313631f1bb4c5da | [
"MIT"
] | null | null | null | data_wrangling_with_mongodb/Lesson_3_Problem_Set/01-Auditing_Data_Quality/audit.py | robinl3680/udacity-course | 308daf62479f9bf6f4256eb19313631f1bb4c5da | [
"MIT"
] | 105 | 2016-10-19T03:56:33.000Z | 2022-03-15T02:12:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
In this problem set you work with cities infobox data, audit it, come up with a cleaning idea and then clean it up.
In the first exercise we want you to audit the datatypes that can be found in some particular fields in the dataset.
The possible types of values can be:
... | 32.595745 | 134 | 0.697781 | 223 | 1,532 | 4.721973 | 0.524664 | 0.023742 | 0.037987 | 0.036087 | 0.117759 | 0.093067 | 0.093067 | 0 | 0 | 0 | 0 | 0.007229 | 0.187337 | 1,532 | 46 | 135 | 33.304348 | 0.838554 | 0.508486 | 0 | 0 | 0 | 0 | 0.320755 | 0 | 0 | 0 | 0 | 0.021739 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.388889 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
861148e1bff9fb3f7e807ffb0dab02b14833e2e6 | 5,610 | py | Python | darling_ansible/python_venv/lib/python3.7/site-packages/oci/core/models/copy_boot_volume_backup_details.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/core/models/copy_boot_volume_backup_details.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/core/models/copy_boot_volume_backup_details.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | 1 | 2020-06-25T03:12:58.000Z | 2020-06-25T03:12:58.000Z | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 35.283019 | 245 | 0.683066 | 686 | 5,610 | 5.380466 | 0.237609 | 0.110539 | 0.039014 | 0.060146 | 0.649418 | 0.546193 | 0.484963 | 0.418857 | 0.418857 | 0.418857 | 0 | 0.004779 | 0.254011 | 5,610 | 158 | 246 | 35.506329 | 0.87718 | 0.614439 | 0 | 0.068182 | 0 | 0 | 0.077447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0.045455 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8611dd1a89f0bbceff9b306650bc302eaddc87db | 353 | py | Python | lib/connection_asymmetry_landscape.py | babsey/spiking-activity-dynamics | 7db80e6e70dfea6baddf8d6338644273a5d685ec | [
"MIT"
] | 10 | 2021-02-09T16:42:37.000Z | 2022-01-10T07:37:00.000Z | lib/connection_asymmetry_landscape.py | babsey/spiking-activity-dynamics | 7db80e6e70dfea6baddf8d6338644273a5d685ec | [
"MIT"
] | null | null | null | lib/connection_asymmetry_landscape.py | babsey/spiking-activity-dynamics | 7db80e6e70dfea6baddf8d6338644273a5d685ec | [
"MIT"
] | 3 | 2021-02-10T18:12:31.000Z | 2021-09-13T07:40:01.000Z | # -*- coding: utf-8 -*-
#
# connectivity_assymetry_landscape.py
#
# Copyright 2017 Sebastian Spreizer
# The MIT License
import numpy as np
import local_values_landscape as lvl
__all__ = [
'move',
'landscapes',
]
def move(nrow):
return np.array([1, nrow + 1, nrow, nrow - 1, -1, -nrow - 1, -nrow, -nrow + ... | 16.809524 | 83 | 0.660057 | 48 | 353 | 4.6875 | 0.604167 | 0.088889 | 0.053333 | 0.088889 | 0.133333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0.039007 | 0.201133 | 353 | 20 | 84 | 17.65 | 0.758865 | 0.303116 | 0 | 0 | 0 | 0 | 0.058577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
8614902188fc853fdd91b3a0f9b13d8816d8e93f | 1,679 | py | Python | Filtering Patterns/top10.py | amnghd/Map_Reduce_Design_Patterns | 13a44850f95d8b4bab12f17094149182eaa09801 | [
"MIT"
] | null | null | null | Filtering Patterns/top10.py | amnghd/Map_Reduce_Design_Patterns | 13a44850f95d8b4bab12f17094149182eaa09801 | [
"MIT"
] | null | null | null | Filtering Patterns/top10.py | amnghd/Map_Reduce_Design_Patterns | 13a44850f95d8b4bab12f17094149182eaa09801 | [
"MIT"
] | 1 | 2020-09-07T14:10:51.000Z | 2020-09-07T14:10:51.000Z | #!/usr/bin/python
"""
Your mapper function should print out 10 lines containing longest posts, sorted in
ascending order from shortest to longest.
Please do not use global variables and do not change the "main" function.
"""
import sys
import csv
def mapper():
top_10 = [[0, None] for i in range(10)]
reader = c... | 31.092593 | 89 | 0.510423 | 247 | 1,679 | 3.380567 | 0.348178 | 0.102994 | 0.11497 | 0.100599 | 0.194012 | 0.074252 | 0.074252 | 0.074252 | 0.074252 | 0.074252 | 0 | 0.076923 | 0.210244 | 1,679 | 53 | 90 | 31.679245 | 0.55279 | 0.18106 | 0 | 0.051282 | 0 | 0 | 0.345788 | 0.322344 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.051282 | false | 0 | 0.076923 | 0 | 0.128205 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8617a10c3dd0ed6623f563fd985cac6b439fe3f6 | 286 | py | Python | ProtoTestPython/toilet_fullflush.py | tferguson3/awsc | 017cfefbe072ac4525368cae2402c3b562effea2 | [
"MIT"
] | null | null | null | ProtoTestPython/toilet_fullflush.py | tferguson3/awsc | 017cfefbe072ac4525368cae2402c3b562effea2 | [
"MIT"
] | null | null | null | ProtoTestPython/toilet_fullflush.py | tferguson3/awsc | 017cfefbe072ac4525368cae2402c3b562effea2 | [
"MIT"
] | 1 | 2018-09-07T17:30:16.000Z | 2018-09-07T17:30:16.000Z | #!/usr/bin/python
import Adafruit_BBIO.GPIO as GPIO
import time
GPIO.setup("P8_16", GPIO.OUT) #direction
GPIO.setup("P8_18", GPIO.OUT) #PWM
GPIO.output("P8_18", GPIO.HIGH)
GPIO.output("P8_16", GPIO.LOW)
time.sleep(2.25)
GPIO.output("P8_16", GPIO.HIGH)
time.sleep(4)
GPIO.cleanup()
| 16.823529 | 40 | 0.72028 | 52 | 286 | 3.846154 | 0.461538 | 0.06 | 0.12 | 0.14 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073359 | 0.094406 | 286 | 16 | 41 | 17.875 | 0.698842 | 0.097902 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8618722abc769d35217e1603f4f83f4de2a2bb82 | 694 | py | Python | manage.py | Lee-W/Sentence-Labeling-Bot | 9f7403e3090c363f36f0c08aa453ca7f1ae35973 | [
"MIT"
] | null | null | null | manage.py | Lee-W/Sentence-Labeling-Bot | 9f7403e3090c363f36f0c08aa453ca7f1ae35973 | [
"MIT"
] | null | null | null | manage.py | Lee-W/Sentence-Labeling-Bot | 9f7403e3090c363f36f0c08aa453ca7f1ae35973 | [
"MIT"
] | null | null | null | import os
from flask import current_app
from flask_script import Manager, Shell
from flask_migrate import MigrateCommand
from labelingbot import create_app, db
from labelingbot.models import User
def make_shell_context():
return dict(app=current_app, db=db, User=User)
manager = Manager(create_app)
manager.add... | 21.6875 | 73 | 0.760807 | 96 | 694 | 5.21875 | 0.416667 | 0.053892 | 0.083832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134006 | 694 | 31 | 74 | 22.387097 | 0.833611 | 0 | 0 | 0 | 0 | 0 | 0.089337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.333333 | 0.047619 | 0.47619 | 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 |
86196c9e8ef6dc927ed329d1b80392e58c09cdd2 | 1,691 | py | Python | python/python demo/tree.py | guweimo/Previous-exercises | 2c8017d2724dc0ba4cb1d952e2e4338424585cb7 | [
"MIT"
] | null | null | null | python/python demo/tree.py | guweimo/Previous-exercises | 2c8017d2724dc0ba4cb1d952e2e4338424585cb7 | [
"MIT"
] | null | null | null | python/python demo/tree.py | guweimo/Previous-exercises | 2c8017d2724dc0ba4cb1d952e2e4338424585cb7 | [
"MIT"
] | null | null | null | class binaryTree(object):
def __init__(self,value):
self.value = value
self.leftBranch = None
self.rightBranch = None
self.parent = None
def setLeftBranch(self, node):
self.leftBranch = node
def setRightBranch(self, node):
self.rightBranch = node
def setPa... | 21.405063 | 54 | 0.627439 | 210 | 1,691 | 5.014286 | 0.27619 | 0.047483 | 0.066477 | 0.083571 | 0.043685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047468 | 0.252513 | 1,691 | 78 | 55 | 21.679487 | 0.785601 | 0 | 0 | 0.030769 | 0 | 0 | 0.004731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
861f168d18b47fc25d978593cb406b3ffde5e969 | 55,187 | py | Python | Tests/test_ast.py | tinyg/ironpython2 | 4e48642dee8785707dbdda330ac4dba19e1174a9 | [
"Apache-2.0"
] | null | null | null | Tests/test_ast.py | tinyg/ironpython2 | 4e48642dee8785707dbdda330ac4dba19e1174a9 | [
"Apache-2.0"
] | null | null | null | Tests/test_ast.py | tinyg/ironpython2 | 4e48642dee8785707dbdda330ac4dba19e1174a9 | [
"Apache-2.0"
] | null | null | null | import sys, itertools, unittest
from test import test_support
from StringIO import StringIO
import ast
import types
def to_tuple(t):
if t is None or isinstance(t, (basestring, int, long, complex)):
return t
elif isinstance(t, list):
return [to_tuple(e) for e in t]
result = [t.__class__.__n... | 40.019579 | 368 | 0.521971 | 7,395 | 55,187 | 3.824341 | 0.092901 | 0.078498 | 0.026095 | 0.05509 | 0.599166 | 0.542909 | 0.48209 | 0.459849 | 0.435699 | 0.413104 | 0 | 0.039122 | 0.260315 | 55,187 | 1,378 | 369 | 40.048621 | 0.653683 | 0.060304 | 0 | 0.320334 | 0 | 0.014856 | 0.193195 | 0.007839 | 0 | 0 | 0.000194 | 0.000726 | 0.1987 | 0 | null | null | 0.038069 | 0.019499 | null | null | 0.031569 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8620412c21c4cd0f7a76789b6204acb5ab49fe9a | 960 | py | Python | xxmodularsynth/midi/cv_tool.py | xavierxeon-music/MusicTools | 05c74218df18c4ee385895b721c7ad24ea0df552 | [
"MIT"
] | null | null | null | xxmodularsynth/midi/cv_tool.py | xavierxeon-music/MusicTools | 05c74218df18c4ee385895b721c7ad24ea0df552 | [
"MIT"
] | null | null | null | xxmodularsynth/midi/cv_tool.py | xavierxeon-music/MusicTools | 05c74218df18c4ee385895b721c7ad24ea0df552 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from rtmidi.midiconstants import MODULATION
class CVTool:
def __init__(self, output, channel, controller=MODULATION):
self._output = output
self._channel = channel
self._controller = controller
self._pitch = 24 # minimium pitch of A190-5
self._ve... | 22.325581 | 71 | 0.639583 | 106 | 960 | 5.462264 | 0.320755 | 0.103627 | 0.103627 | 0.103627 | 0.189983 | 0.141623 | 0.141623 | 0.141623 | 0 | 0 | 0 | 0.015559 | 0.263542 | 960 | 42 | 72 | 22.857143 | 0.803395 | 0.047917 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.04 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8621336dfe1dd1d235a5fc6e26328f3e1f231f83 | 2,162 | py | Python | Make-Sense-of-Census/code.py | pavanmakineni/ga-learner-dsb-repo | 64dc6352bc1f8f223beb32cdf4adf402d8ce67a6 | [
"MIT"
] | null | null | null | Make-Sense-of-Census/code.py | pavanmakineni/ga-learner-dsb-repo | 64dc6352bc1f8f223beb32cdf4adf402d8ce67a6 | [
"MIT"
] | null | null | null | Make-Sense-of-Census/code.py | pavanmakineni/ga-learner-dsb-repo | 64dc6352bc1f8f223beb32cdf4adf402d8ce67a6 | [
"MIT"
] | null | null | null | # --------------
# Importing header files
import numpy as np
# Path of the file has been stored in variable called 'path'
data = np.genfromtxt(path,delimiter=",",skip_header=1)
print("\nData: \n\n",data)
print("\nType of data: \n\n",type(data))
#New record
new_record=[[50, 9, 4, 1, 0, 0, 40, 0]]
#new_re... | 20.018519 | 62 | 0.659112 | 358 | 2,162 | 3.748603 | 0.223464 | 0.071535 | 0.052161 | 0.023845 | 0.080477 | 0.080477 | 0.032787 | 0 | 0 | 0 | 0 | 0.037954 | 0.159112 | 2,162 | 107 | 63 | 20.205607 | 0.70022 | 0.173451 | 0 | 0 | 0 | 0 | 0.102625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.017544 | 0.421053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
862371dd1785734acd7cd4104a10d0b5903de88b | 2,666 | py | Python | mriutils/metrics/synthesis.py | kuangmeng/MRIUtils | 3a79e8104071deb0dc17c402ac878f94161d9b4a | [
"MIT"
] | null | null | null | mriutils/metrics/synthesis.py | kuangmeng/MRIUtils | 3a79e8104071deb0dc17c402ac878f94161d9b4a | [
"MIT"
] | null | null | null | mriutils/metrics/synthesis.py | kuangmeng/MRIUtils | 3a79e8104071deb0dc17c402ac878f94161d9b4a | [
"MIT"
] | null | null | null | import numpy as np
from skimage.measure import compare_ssim
from skimage.measure import compare_psnr
class Synthesis:
def __init__(self, test, pred, classes):
if '.npy' in test:
self.test = np.load(test)
else:
self.test = test
if '.npy' in pred:
self.pre... | 38.637681 | 96 | 0.475619 | 382 | 2,666 | 3.089005 | 0.146597 | 0.067797 | 0.067797 | 0.081356 | 0.718644 | 0.666102 | 0.640678 | 0.640678 | 0.640678 | 0.640678 | 0 | 0.013959 | 0.408852 | 2,666 | 68 | 97 | 39.205882 | 0.734772 | 0 | 0 | 0.650794 | 0 | 0 | 0.086272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0 | 0.047619 | 0 | 0.174603 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8626936234050c0de10ef25a7ff7e0b0281b435d | 1,043 | py | Python | camera/main.py | kaori-nu/study-picamera-examples | 10190fdf01423f8eeb14d00c7b78764647565ea0 | [
"MIT"
] | null | null | null | camera/main.py | kaori-nu/study-picamera-examples | 10190fdf01423f8eeb14d00c7b78764647565ea0 | [
"MIT"
] | null | null | null | camera/main.py | kaori-nu/study-picamera-examples | 10190fdf01423f8eeb14d00c7b78764647565ea0 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, Response
# from processor.simple_streamer import SimpleStreamer as VideoCamera
# from processor.pedestrian_detector import PedestrianDetector as VideoCamera
# from processor.motion_detector import MotionDetector as VideoCamera
# from processor.qr_detector import QRDetector as V... | 30.676471 | 77 | 0.738255 | 138 | 1,043 | 5.398551 | 0.456522 | 0.104698 | 0.114094 | 0.174497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004556 | 0.158198 | 1,043 | 33 | 78 | 31.606061 | 0.843964 | 0.259827 | 0 | 0 | 0 | 0 | 0.168188 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.238095 | 0.095238 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
862c0141733538835fe1756a478b2058dcbb41aa | 4,818 | py | Python | lionel_bot.py | 0lionelzhang0/chat_plays_go | 59f58c5a9d121ee93504d6ad30c14d5967b3e3f9 | [
"MIT"
] | 1 | 2021-08-07T18:31:26.000Z | 2021-08-07T18:31:26.000Z | lionel_bot.py | 0lionelzhang0/chat_plays_go | 59f58c5a9d121ee93504d6ad30c14d5967b3e3f9 | [
"MIT"
] | null | null | null | lionel_bot.py | 0lionelzhang0/chat_plays_go | 59f58c5a9d121ee93504d6ad30c14d5967b3e3f9 | [
"MIT"
] | null | null | null | # importing the requests library
import requests
import json
import socket, string
import time
import re
import threading
import chat_plays_go as cpg
import queue
import time
CHANNEL = "t4rquin"
USERNAME = # Your bots nick
OAUTH = # OAuth
class Chatbot:
def __init__(self):
# Some basic variables used to c... | 30.1125 | 101 | 0.547945 | 570 | 4,818 | 4.538596 | 0.261404 | 0.034016 | 0.046386 | 0.018554 | 0.232702 | 0.140704 | 0.115964 | 0.092772 | 0.092772 | 0.092772 | 0 | 0.011413 | 0.327107 | 4,818 | 159 | 102 | 30.301887 | 0.786552 | 0.08489 | 0 | 0.262295 | 0 | 0 | 0.079481 | 0.005693 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02459 | 0.07377 | null | null | 0.065574 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
86383d9e9cc9bc7f584217b3da4014e123a2ce20 | 929 | py | Python | pinax/middleware/security.py | jpic/pinax | a9b30e437e4298d74101b45cec0d4dba9702cdd1 | [
"MIT"
] | 1 | 2019-02-12T04:45:09.000Z | 2019-02-12T04:45:09.000Z | pinax/middleware/security.py | jpic/pinax | a9b30e437e4298d74101b45cec0d4dba9702cdd1 | [
"MIT"
] | null | null | null | pinax/middleware/security.py | jpic/pinax | a9b30e437e4298d74101b45cec0d4dba9702cdd1 | [
"MIT"
] | 1 | 2019-02-12T04:45:40.000Z | 2019-02-12T04:45:40.000Z | import re
from django.conf import settings
MASK_IN_EXCEPTION_EMAIL= ["password", "mail", "protected", "private"]
mask_re = re.compile("(" + "|".join(MASK_IN_EXCEPTION_EMAIL) + ")", re.I)
class HideSensistiveFieldsMiddleware(object):
"""
A middleware that masks sensitive fields when an exception occurs,
... | 29.03125 | 73 | 0.622174 | 106 | 929 | 5.320755 | 0.509434 | 0.156028 | 0.159574 | 0.132979 | 0.205674 | 0.205674 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276642 | 929 | 31 | 74 | 29.967742 | 0.839286 | 0.107643 | 0 | 0.105263 | 0 | 0 | 0.070457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.105263 | 0 | 0.263158 | 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 |
863856b7cc7ac06ebfb3fee2ee8464aad00a4ecf | 1,063 | py | Python | LIS3DH_constants.py | chisl/LIS3DH-py2 | 797b5093570f971109e21775b8cc50f4eb47651a | [
"MIT"
] | null | null | null | LIS3DH_constants.py | chisl/LIS3DH-py2 | 797b5093570f971109e21775b8cc50f4eb47651a | [
"MIT"
] | null | null | null | LIS3DH_constants.py | chisl/LIS3DH-py2 | 797b5093570f971109e21775b8cc50f4eb47651a | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""LIS3DH: MEMS digital output motion sensor ultra low-power high performance 3-axes 'nano' accelerometer"""
__author__ = "ChISL"
__copyright__ = "TBD"
__credits__ = ["ST Microelectronics"]
__license__ = "TBD"
__version__ = "Version 0.1"
__maintainer__ = "ht... | 19.327273 | 108 | 0.672625 | 178 | 1,063 | 3.58427 | 0.679775 | 0.021944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113022 | 0.234243 | 1,063 | 54 | 109 | 19.685185 | 0.670762 | 0.206021 | 0 | 0 | 0 | 0 | 0.088836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.818182 | 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 |
86389cf250ce932ae72c47adf70325e3778cbc69 | 691 | py | Python | Methods/Geometry/Segment/get_middle.py | Superomeg4/pyleecan | 2b695b5f39e77475a07aa0ea89489fb0a9659337 | [
"Apache-2.0"
] | 2 | 2020-06-29T13:48:37.000Z | 2021-06-15T07:34:05.000Z | Methods/Geometry/Segment/get_middle.py | Superomeg4/pyleecan | 2b695b5f39e77475a07aa0ea89489fb0a9659337 | [
"Apache-2.0"
] | null | null | null | Methods/Geometry/Segment/get_middle.py | Superomeg4/pyleecan | 2b695b5f39e77475a07aa0ea89489fb0a9659337 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""@package Methods.Geometry.Segment.get_middle
Compute the coordinate of the middle of a Segment method
@date Created on Wed May 04 11:07:56 2016
@copyright (C) 2015-2016 EOMYS ENGINEERING.
@author pierre_b
@todo unittest it
"""
def get_middle(self):
"""Return the point at the middle of t... | 20.939394 | 56 | 0.617945 | 102 | 691 | 4.156863 | 0.598039 | 0.04717 | 0.07783 | 0.061321 | 0.099057 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065476 | 0.270622 | 691 | 32 | 57 | 21.59375 | 0.775794 | 0.694645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86393ed004e1d3ac0ec55dea14f9205b21b752a9 | 8,972 | py | Python | google/appengine/ext/mapreduce/mapreduce_pipeline.py | MiCHiLU/google_appengine_sdk | 3da9f20d7e65e26c4938d2c4054bc4f39cbc5522 | [
"Apache-2.0"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | google/appengine/ext/mapreduce/mapreduce_pipeline.py | MiCHiLU/google_appengine_sdk | 3da9f20d7e65e26c4938d2c4054bc4f39cbc5522 | [
"Apache-2.0"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | google/appengine/ext/mapreduce/mapreduce_pipeline.py | MiCHiLU/google_appengine_sdk | 3da9f20d7e65e26c4938d2c4054bc4f39cbc5522 | [
"Apache-2.0"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# 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 o... | 31.591549 | 80 | 0.687249 | 1,072 | 8,972 | 5.568097 | 0.232276 | 0.032166 | 0.028648 | 0.029486 | 0.397889 | 0.360697 | 0.23421 | 0.189814 | 0.122634 | 0.122634 | 0 | 0.00119 | 0.250669 | 8,972 | 283 | 81 | 31.70318 | 0.886658 | 0.06342 | 0 | 0.285714 | 0 | 0 | 0.081519 | 0.007445 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092857 | 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 |
863c1c06b551ae3423398cb4713e4dc9a8caa3e9 | 3,951 | py | Python | tinder_bot.py | RadoslawBRD/TinderBot | 92720265af38e3abd24c21046dda149740295014 | [
"MIT"
] | null | null | null | tinder_bot.py | RadoslawBRD/TinderBot | 92720265af38e3abd24c21046dda149740295014 | [
"MIT"
] | null | null | null | tinder_bot.py | RadoslawBRD/TinderBot | 92720265af38e3abd24c21046dda149740295014 | [
"MIT"
] | null | null | null | #virtualenv <name>
#venv\Script\activate
#python -i tinder_bot.py
from time import sleep
from selenium import webdriver
import random
class TinderBot():
def __init__(self):
options = webdriver.ChromeOptions()
options.add_argument("start-maximized")
self.driver = webdriver.Chrom... | 36.583333 | 144 | 0.555049 | 487 | 3,951 | 4.328542 | 0.287474 | 0.093928 | 0.07685 | 0.129507 | 0.418406 | 0.407495 | 0.38852 | 0.38852 | 0.342505 | 0.297913 | 0 | 0.017066 | 0.302961 | 3,951 | 107 | 145 | 36.925234 | 0.748366 | 0.137434 | 0 | 0.176471 | 0 | 0.073529 | 0.218316 | 0.161004 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.073529 | 0.044118 | 0 | 0.147059 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
863f6b161517f1fd1781a7f321e8e951dddc2b3b | 786 | py | Python | nnet/ConstNode.py | guoguolan1991/learn_tensorflow | eb8216d4bd03615361093d16295a0b082ad297fd | [
"Apache-2.0"
] | 1 | 2018-10-15T14:00:11.000Z | 2018-10-15T14:00:11.000Z | nnet/ConstNode.py | guoguolan1991/learn_tensorflow | eb8216d4bd03615361093d16295a0b082ad297fd | [
"Apache-2.0"
] | null | null | null | nnet/ConstNode.py | guoguolan1991/learn_tensorflow | eb8216d4bd03615361093d16295a0b082ad297fd | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
# 输出恒唯1的节点
from functools import reduce
class ConstNode(object):
def __init__(self, layer_index, node_index):
'''
:param layer_index: 节点所属层的编号
:param node_index: 节点的编号
'''
self.layer_index = layer_index
self.node_index = node_index
self.down... | 23.117647 | 98 | 0.590331 | 85 | 786 | 5.223529 | 0.411765 | 0.09009 | 0.063063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01107 | 0.310433 | 786 | 33 | 99 | 23.818182 | 0.808118 | 0.12341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
863fe51913b6f26ddd8a6b394ce44a524019af03 | 1,617 | py | Python | cogwheels/helpers/utils.py | ababic/django-app-utils | 7a5f423498854dbec936b06bbaf88f7106259144 | [
"MIT"
] | 4 | 2018-06-27T22:44:34.000Z | 2021-02-03T16:55:54.000Z | cogwheels/helpers/utils.py | ababic/django-app-utils | 7a5f423498854dbec936b06bbaf88f7106259144 | [
"MIT"
] | 15 | 2018-07-15T10:01:40.000Z | 2019-10-30T08:15:14.000Z | cogwheels/helpers/utils.py | ababic/django-cogwheels | 7a5f423498854dbec936b06bbaf88f7106259144 | [
"MIT"
] | null | null | null | class AttrReferToMethodHelper:
"""
Each settings helper defines several instances of this class as attributes,
to provide a cleaner way to access Django models, Python modules and other
objects from setting values. Each instance essentially just forwards
request to the relevant 'get_x()' method on t... | 42.552632 | 79 | 0.726654 | 192 | 1,617 | 5.791667 | 0.390625 | 0.089029 | 0.080935 | 0.094424 | 0.205036 | 0.061151 | 0 | 0 | 0 | 0 | 0 | 0.000781 | 0.207792 | 1,617 | 37 | 80 | 43.702703 | 0.867291 | 0.490414 | 0 | 0 | 0 | 0 | 0.04106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
863ffc555ffe77ca2ac07da7cd9bfc809480f613 | 2,161 | py | Python | tests/ut/python/nn/test_pooling.py | unseenme/mindspore | 4ba052f0cd9146ac0ccc4880a778706f1b2d0af8 | [
"Apache-2.0"
] | null | null | null | tests/ut/python/nn/test_pooling.py | unseenme/mindspore | 4ba052f0cd9146ac0ccc4880a778706f1b2d0af8 | [
"Apache-2.0"
] | null | null | null | tests/ut/python/nn/test_pooling.py | unseenme/mindspore | 4ba052f0cd9146ac0ccc4880a778706f1b2d0af8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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... | 29.202703 | 78 | 0.614993 | 284 | 2,161 | 4.542254 | 0.411972 | 0.046512 | 0.074419 | 0.039535 | 0.31938 | 0.31938 | 0.31938 | 0.268992 | 0.208527 | 0.065116 | 0 | 0.031804 | 0.243406 | 2,161 | 74 | 79 | 29.202703 | 0.757187 | 0.312355 | 0 | 0.309524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.095238 | 0.071429 | 0.452381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8642878764570d2c66b284a70f488334cc309126 | 338 | py | Python | src/db/function/Querry.py | JulesWall/Discord-py-bot-base | 6d89d74b5e6e0a603f171c791f96bb33ecbb41e8 | [
"MIT"
] | 1 | 2021-02-15T11:09:47.000Z | 2021-02-15T11:09:47.000Z | src/db/function/Querry.py | JulesWall/Discord-py-bot-base | 6d89d74b5e6e0a603f171c791f96bb33ecbb41e8 | [
"MIT"
] | 18 | 2021-02-15T10:57:33.000Z | 2021-05-17T18:08:48.000Z | src/db/function/Querry.py | JulesWall/Discord-py-bot-base | 6d89d74b5e6e0a603f171c791f96bb33ecbb41e8 | [
"MIT"
] | null | null | null | import pymysql
pymysql.install_as_MySQLdb()
import MySQLdb
from config import *
def Querry(sql):
db = MySQLdb.connect(user=USERDATABASE, passwd=PASSWORDDATABASE, host="localhost", db=DATABASE)
cursor, sql = db.cursor(), str(sql)
cursor.execute(sql)
db.commit()
data = cursor.fetchall()
db.close... | 26 | 99 | 0.704142 | 43 | 338 | 5.488372 | 0.627907 | 0.063559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174556 | 338 | 13 | 100 | 26 | 0.845878 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8646070b0bc0972af7e6106fac909bcbc2896816 | 2,786 | py | Python | tmpauthenticator/__init__.py | druuu/tmpauthenticator | ba49f8fcbbe2938b72b8abeb47336f62c584d158 | [
"BSD-3-Clause"
] | null | null | null | tmpauthenticator/__init__.py | druuu/tmpauthenticator | ba49f8fcbbe2938b72b8abeb47336f62c584d158 | [
"BSD-3-Clause"
] | null | null | null | tmpauthenticator/__init__.py | druuu/tmpauthenticator | ba49f8fcbbe2938b72b8abeb47336f62c584d158 | [
"BSD-3-Clause"
] | null | null | null | import uuid
from traitlets import Bool
from tornado import gen
from jupyterhub.auth import Authenticator
from jupyterhub.handlers import BaseHandler
from jupyterhub.utils import url_path_join
class TmpAuthenticateHandler(BaseHandler):
"""
Handler for /tmplogin
Creates a new user with a random UUID, and... | 30.955556 | 78 | 0.649318 | 361 | 2,786 | 4.864266 | 0.371191 | 0.031891 | 0.055809 | 0.041002 | 0.05467 | 0.03303 | 0 | 0 | 0 | 0 | 0 | 0.000502 | 0.284279 | 2,786 | 89 | 79 | 31.303371 | 0.88014 | 0.255564 | 0 | 0 | 0 | 0 | 0.171066 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.1 | false | 0 | 0.12 | 0.02 | 0.38 | 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 |
864a157619ea29d4194cdaff348eff0dd6e2d33c | 1,538 | py | Python | todoistext/ItemEnterEventListener.py | cmuench/ulauncher-todoist-ext | 58161d693ddf62b0f453b3c887c4ffc8eec1c1ca | [
"MIT"
] | 13 | 2019-11-26T18:32:29.000Z | 2021-12-20T21:08:02.000Z | todoistext/ItemEnterEventListener.py | cmuench/ulauncher-todoist-ext | 58161d693ddf62b0f453b3c887c4ffc8eec1c1ca | [
"MIT"
] | 9 | 2019-08-31T17:18:29.000Z | 2021-05-04T11:03:55.000Z | todoistext/ItemEnterEventListener.py | cmuench/ulauncher-todoist-ext | 58161d693ddf62b0f453b3c887c4ffc8eec1c1ca | [
"MIT"
] | 6 | 2020-03-06T13:31:16.000Z | 2022-02-23T17:01:55.000Z | import logging
from ulauncher.api.client.EventListener import EventListener
from ulauncher.api.shared.action.DoNothingAction import DoNothingAction
from ulauncher.api.shared.action.RenderResultListAction import \
RenderResultListAction
from ulauncher.api.shared.item.ExtensionResultItem import ExtensionResultItem
... | 35.767442 | 87 | 0.675553 | 151 | 1,538 | 6.688742 | 0.344371 | 0.051485 | 0.063366 | 0.065347 | 0.055446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239922 | 1,538 | 42 | 88 | 36.619048 | 0.863986 | 0 | 0 | 0 | 0 | 0 | 0.056567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.241379 | 0 | 0.517241 | 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 |
8653c7a6142ec0ec5cc153cbee6b67d368719280 | 3,904 | py | Python | gs/email/config.py | groupserver/gs.email | 2b68b3600aafb29a4a56ef5eab3d6ea1805baee1 | [
"ZPL-2.1"
] | null | null | null | gs/email/config.py | groupserver/gs.email | 2b68b3600aafb29a4a56ef5eab3d6ea1805baee1 | [
"ZPL-2.1"
] | null | null | null | gs/email/config.py | groupserver/gs.email | 2b68b3600aafb29a4a56ef5eab3d6ea1805baee1 | [
"ZPL-2.1"
] | null | null | null | # -*- coding: utf-8 -*-
############################################################################
#
# Copyright © 2014, 2015 OnlineGroups.net and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany th... | 40.247423 | 76 | 0.64498 | 431 | 3,904 | 5.777262 | 0.364269 | 0.052209 | 0.025703 | 0.015663 | 0.048996 | 0.032932 | 0.032932 | 0.032932 | 0 | 0 | 0 | 0.003576 | 0.21209 | 3,904 | 96 | 77 | 40.666667 | 0.805592 | 0.341189 | 0 | 0 | 0 | 0 | 0.119434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0.058824 | 0.215686 | 0 | 0.235294 | 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 |
865613d16d1ce4e3e9adc6f3b3900154752c0815 | 1,178 | py | Python | declarations_site/spotter/sender.py | li-ar/declarations.com.ua | 343cd86cc5a4bd895f2859ed896728f6416ac223 | [
"MIT"
] | 32 | 2015-04-01T15:17:35.000Z | 2021-05-02T20:46:33.000Z | declarations_site/spotter/sender.py | li-ar/declarations.com.ua | 343cd86cc5a4bd895f2859ed896728f6416ac223 | [
"MIT"
] | 52 | 2015-03-23T21:37:04.000Z | 2022-02-10T07:27:13.000Z | declarations_site/spotter/sender.py | li-ar/declarations.com.ua | 343cd86cc5a4bd895f2859ed896728f6416ac223 | [
"MIT"
] | 18 | 2015-03-16T22:10:44.000Z | 2021-11-01T12:56:12.000Z | from time import sleep
from django.core.mail import get_connection
from django.core.mail.message import EmailMultiAlternatives
def send_mail(subject, message, from_email, recipient_list,
fail_silently=False, auth_user=None, auth_password=None,
connection=None, html_message=None, timeout=No... | 36.8125 | 110 | 0.63073 | 136 | 1,178 | 5.286765 | 0.455882 | 0.072323 | 0.038943 | 0.05007 | 0.100139 | 0.100139 | 0 | 0 | 0 | 0 | 0 | 0.003654 | 0.303056 | 1,178 | 31 | 111 | 38 | 0.872107 | 0.12309 | 0 | 0 | 0 | 0 | 0.008885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.130435 | 0 | 0.217391 | 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 |
86564a579cf23b527204d7310ddb853b6506d9ea | 1,050 | py | Python | smartsheet/__init__.py | bromic007/smartsheet-python-sdk | ef256b7421a65a56a7138dc2b3eb5d69a1a06590 | [
"Apache-2.0"
] | 106 | 2015-02-21T14:26:32.000Z | 2022-03-31T05:56:53.000Z | smartsheet/__init__.py | bromic007/smartsheet-python-sdk | ef256b7421a65a56a7138dc2b3eb5d69a1a06590 | [
"Apache-2.0"
] | 94 | 2015-02-09T13:16:00.000Z | 2022-03-16T06:37:41.000Z | smartsheet/__init__.py | bromic007/smartsheet-python-sdk | ef256b7421a65a56a7138dc2b3eb5d69a1a06590 | [
"Apache-2.0"
] | 85 | 2015-02-06T22:05:25.000Z | 2022-03-16T06:22:59.000Z | # pylint: disable=C0111,C0413
# Smartsheet Python SDK.
#
# Copyright 2016 Smartsheet.com, Inc.
#
# 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.... | 32.8125 | 84 | 0.764762 | 149 | 1,050 | 5.174497 | 0.590604 | 0.077821 | 0.023346 | 0.041505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024859 | 0.157143 | 1,050 | 31 | 85 | 33.870968 | 0.846328 | 0.582857 | 0 | 0 | 0 | 0 | 0.157143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.