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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5e43a99de22c1fdf783de896ed194d1284926a1 | 36,418 | py | Python | upconvert/writer/geda.py | EasyPCB/schematic-file-converter | 0d575171e2aa19a35ca15d5e39c716287d885ec4 | [
"Apache-2.0"
] | 1 | 2020-09-05T03:41:18.000Z | 2020-09-05T03:41:18.000Z | upconvert/writer/geda.py | EasyPCB/schematic-file-converter | 0d575171e2aa19a35ca15d5e39c716287d885ec4 | [
"Apache-2.0"
] | null | null | null | upconvert/writer/geda.py | EasyPCB/schematic-file-converter | 0d575171e2aa19a35ca15d5e39c716287d885ec4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
# pylint: disable=C0302
""" This module provides a writer class to generate valid gEDA
file format data from a OpenJSON design. The module does
not generate embedded symbols but writes each symbol to
its own symbol file to reduce the amount of data in the
schematic file. This also... | 35.186473 | 87 | 0.574853 | 4,258 | 36,418 | 4.776421 | 0.13457 | 0.021241 | 0.013079 | 0.012538 | 0.199085 | 0.138804 | 0.114908 | 0.093274 | 0.078277 | 0.063477 | 0 | 0.013857 | 0.342111 | 36,418 | 1,034 | 88 | 35.220503 | 0.83501 | 0.307156 | 0 | 0.15873 | 1 | 0 | 0.030865 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 1 | 0.056437 | false | 0 | 0.026455 | 0 | 0.146384 | 0 | 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 |
d5e4d1420f78fd5ddfd3e2569df373d4d39f0b04 | 1,107 | py | Python | lotus/broker/Redis.py | vvtops/lotus | 6b191f779e28a0e473864d8eda77c29b6b4d3557 | [
"MIT"
] | null | null | null | lotus/broker/Redis.py | vvtops/lotus | 6b191f779e28a0e473864d8eda77c29b6b4d3557 | [
"MIT"
] | null | null | null | lotus/broker/Redis.py | vvtops/lotus | 6b191f779e28a0e473864d8eda77c29b6b4d3557 | [
"MIT"
] | null | null | null | import asyncio
from lotus.task import Task
from lotus.broker import IBroker
from aredis import StrictRedis
class RedisBroker(IBroker):
""" Redis queue, for async workers """
def __init__(self, host: str, port: int, password: str = '', name_queue="lotus_tasks"):
self._redis = StrictRedis(host=host, ... | 28.384615 | 91 | 0.647696 | 145 | 1,107 | 4.710345 | 0.441379 | 0.052709 | 0.061493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.232159 | 1,107 | 38 | 92 | 29.131579 | 0.797647 | 0.052394 | 0 | 0 | 0 | 0 | 0.036688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.095238 | 0.190476 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d5f34bed3cef099720710636d939dd6a745dfdc3 | 3,416 | py | Python | char_example.py | ZigaSajovic/rNet | 6c50b5bb9d2979fcdac63bfb81a4c6425db78e31 | [
"CC-BY-4.0"
] | 11 | 2017-03-02T03:09:59.000Z | 2021-06-16T00:14:59.000Z | char_example.py | ZigaSajovic/rNet | 6c50b5bb9d2979fcdac63bfb81a4c6425db78e31 | [
"CC-BY-4.0"
] | null | null | null | char_example.py | ZigaSajovic/rNet | 6c50b5bb9d2979fcdac63bfb81a4c6425db78e31 | [
"CC-BY-4.0"
] | 1 | 2018-01-08T13:48:20.000Z | 2018-01-08T13:48:20.000Z | import rNet as rNet
import numpy as np
def generate(net,seed_,num_to_gen):
net.reset()
x=np.zeros((1,1,vocab_size))
x[0,0,seed_]=1
out=index_to_char[seed_]
for t in range(0,num_to_gen):
p=net(x)[0,0,:]
ix = np.random.choice(range(vocab_size), p=p.ravel())
x=np.zeros(x.shape)... | 37.955556 | 145 | 0.666276 | 573 | 3,416 | 3.773124 | 0.253054 | 0.054117 | 0.038853 | 0.049954 | 0.236818 | 0.172063 | 0.107308 | 0.107308 | 0.107308 | 0.107308 | 0 | 0.031911 | 0.183548 | 3,416 | 90 | 146 | 37.955556 | 0.743277 | 0.063525 | 0 | 0.053333 | 1 | 0 | 0.065769 | 0.00783 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.026667 | 0 | 0.053333 | 0.093333 | 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 |
d5f496d587640847e7c0905891e254eeaa95cc7a | 17,974 | py | Python | bin/decompiler/destacker/instructiontranslator.py | ncbray/pystream | 70bba5646d6512adb6803564c22268d3424c66d8 | [
"Apache-2.0"
] | 6 | 2015-09-19T18:22:33.000Z | 2020-11-29T15:21:17.000Z | bin/decompiler/destacker/instructiontranslator.py | ncbray/pystream | 70bba5646d6512adb6803564c22268d3424c66d8 | [
"Apache-2.0"
] | 1 | 2015-08-04T08:03:46.000Z | 2015-08-04T08:03:46.000Z | bin/decompiler/destacker/instructiontranslator.py | ncbray/pystream | 70bba5646d6512adb6803564c22268d3424c66d8 | [
"Apache-2.0"
] | 1 | 2019-12-09T08:27:09.000Z | 2019-12-09T08:27:09.000Z | # Copyright 2011 Nicholas Bray
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 22.694444 | 100 | 0.700345 | 2,519 | 17,974 | 4.905915 | 0.161175 | 0.036009 | 0.029455 | 0.046529 | 0.418029 | 0.374252 | 0.277067 | 0.243405 | 0.205859 | 0.166046 | 0 | 0.002276 | 0.168744 | 17,974 | 791 | 101 | 22.723135 | 0.824844 | 0.130911 | 0 | 0.282869 | 0 | 0 | 0.008676 | 0 | 0 | 0 | 0.000257 | 0.001264 | 0.037849 | 0 | null | null | 0.003984 | 0.033865 | 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 |
d5fd840a1d792d254da7474a4395e72a365828d1 | 852 | py | Python | django/docs/releases/1.7.4.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/releases/1.7.4.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/releases/1.7.4.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | XXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXX XXXXX XXXXXXX XXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXX XXX XXXXX
XXXXXX XXXXX XXXXX XXXXXXX XXXX XX XXXXXX
XXXXXXXX
XXXXXXXX
X XXXXX X XXXXXXXXX XXXXX XXXX XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXX XX
XXXXXXXXXXXXXXXXXX XXXXX XXXXXXXXX XXXXXXXXXXXXXXXXXX
X XXXX XXX XXXXXXXXXXX XXXX... | 31.555556 | 79 | 0.859155 | 100 | 852 | 7.32 | 0.2 | 0.045082 | 0.038251 | 0.043716 | 0.057377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140845 | 852 | 26 | 80 | 32.769231 | 1 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9101086228704bbdf4b642b9bb69cb2d0a5a19af | 626 | py | Python | setup.py | NiklasRosenstein-Python/nr.dnn | 785fb4b5adba69080c0c827c0fb13a038890ab8b | [
"MIT"
] | null | null | null | setup.py | NiklasRosenstein-Python/nr.dnn | 785fb4b5adba69080c0c827c0fb13a038890ab8b | [
"MIT"
] | null | null | null | setup.py | NiklasRosenstein-Python/nr.dnn | 785fb4b5adba69080c0c827c0fb13a038890ab8b | [
"MIT"
] | null | null | null |
import setuptools
def readme():
with open('README.md', encoding='utf8') as fp:
return fp.read()
def requirements():
with open('requirements.txt') as fp:
return fp.readlines()
setuptools.setup(
name = 'nr.dnn',
version = '1.0.0',
author = 'Niklas Rosenstein',
author_email = 'rosensteinniklas@gmai... | 24.076923 | 60 | 0.682109 | 75 | 626 | 5.586667 | 0.68 | 0.038186 | 0.047733 | 0.057279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00759 | 0.158147 | 626 | 25 | 61 | 25.04 | 0.787476 | 0 | 0 | 0 | 0 | 0 | 0.2512 | 0.0416 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | true | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
910119ac71c847a86caf1b750d1739448aa4e53c | 4,759 | py | Python | test/test_utils/constants.py | mapr/maprdb-python-client | ea7b7f1fb6c212e76bd799867e272eafd345f2e2 | [
"Apache-2.0"
] | 3 | 2020-04-01T12:01:50.000Z | 2022-03-23T01:18:36.000Z | test/test_utils/constants.py | mapr/maprdb-python-client | ea7b7f1fb6c212e76bd799867e272eafd345f2e2 | [
"Apache-2.0"
] | 7 | 2019-02-10T19:31:09.000Z | 2022-02-08T17:04:17.000Z | test/test_utils/constants.py | mapr/maprdb-python-client | ea7b7f1fb6c212e76bd799867e272eafd345f2e2 | [
"Apache-2.0"
] | 3 | 2020-05-27T09:52:32.000Z | 2021-09-07T14:16:43.000Z | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import *
from ojai.types.OTime import OTime
from ojai.types.OTimestamp import OTimesta... | 52.296703 | 112 | 0.460391 | 481 | 4,759 | 4.2079 | 0.214137 | 0.121047 | 0.199111 | 0.141304 | 0.636858 | 0.636858 | 0.632905 | 0.589427 | 0.589427 | 0.589427 | 0 | 0.073916 | 0.36037 | 4,759 | 90 | 113 | 52.877778 | 0.590999 | 0.025426 | 0 | 0.1625 | 0 | 0.0125 | 0.301683 | 0.035606 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0375 | 0.1 | 0 | 0.1 | 0.0125 | 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 |
9104cb72300c5f4478d473ae5f9e223fb4aabab6 | 12,696 | py | Python | xmount/xmount_socket.py | NelisW/cadquery-models | 8788eb42323ef321ebf594345cc3d2d8d56e1a70 | [
"Unlicense"
] | 2 | 2021-05-31T00:05:54.000Z | 2021-06-23T11:51:37.000Z | xmount/xmount_socket.py | NelisW/cadquery-models | 8788eb42323ef321ebf594345cc3d2d8d56e1a70 | [
"Unlicense"
] | null | null | null | xmount/xmount_socket.py | NelisW/cadquery-models | 8788eb42323ef321ebf594345cc3d2d8d56e1a70 | [
"Unlicense"
] | 1 | 2021-06-16T14:19:03.000Z | 2021-06-16T14:19:03.000Z | import cadquery as cq
import cadquery.selectors as cqs
import logging, importlib
from types import SimpleNamespace as Measures
import utilities # local directory import
# Outline shape of an X-Mount Type M socket for smartphones and other small mobile devices.
# Selective reloading to pick up changes made between scr... | 45.669065 | 121 | 0.618147 | 1,863 | 12,696 | 4.114868 | 0.247987 | 0.018262 | 0.012914 | 0.007827 | 0.136447 | 0.108009 | 0.054787 | 0.034568 | 0.015393 | 0.009131 | 0 | 0.033178 | 0.29017 | 12,696 | 277 | 122 | 45.833935 | 0.817466 | 0.54466 | 0 | 0.177215 | 0 | 0 | 0.014375 | 0 | 0 | 0 | 0 | 0.028881 | 0 | 1 | 0.018987 | false | 0.006329 | 0.037975 | 0 | 0.063291 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
91050ed32114e481139bb295082c7cb7f69d6654 | 502 | py | Python | CryptoDetails/CryptoDetails/pipelines.py | LegionAnkit/YahooScrypto | 515cdca4df74ea59594939ec127ed55baa0ea204 | [
"MIT"
] | null | null | null | CryptoDetails/CryptoDetails/pipelines.py | LegionAnkit/YahooScrypto | 515cdca4df74ea59594939ec127ed55baa0ea204 | [
"MIT"
] | null | null | null | CryptoDetails/CryptoDetails/pipelines.py | LegionAnkit/YahooScrypto | 515cdca4df74ea59594939ec127ed55baa0ea204 | [
"MIT"
] | null | null | null | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: c
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
import pymongo
class CryptodetailsPipeline(object):
def __init__(self):
self.conn = pymongo.MongoC... | 22.818182 | 66 | 0.76494 | 69 | 502 | 5.463768 | 0.681159 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011682 | 0.14741 | 502 | 21 | 67 | 23.904762 | 0.869159 | 0.332669 | 0 | 0 | 0 | 0 | 0.088146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 |
910a961ad1f8503b1d23b682572706186cece59c | 3,109 | py | Python | 04-GPU-accelerators/04-PyOpenCL/07-multi_kernel/multi_kernel.py | javierip/parallel-processing-teaching-toolkit | dd2339fbcab86365e24efa3d6cf01165e46fdbdd | [
"Apache-2.0"
] | 4 | 2017-07-11T02:16:20.000Z | 2020-04-26T00:50:22.000Z | 04-GPU-accelerators/04-PyOpenCL/07-multi_kernel/multi_kernel.py | javierip/parallel-processing-teaching-toolkit | dd2339fbcab86365e24efa3d6cf01165e46fdbdd | [
"Apache-2.0"
] | 1 | 2017-07-16T21:25:34.000Z | 2017-07-16T21:25:34.000Z | 04-GPU-accelerators/04-PyOpenCL/07-multi_kernel/multi_kernel.py | javierip/parallel-processing-teaching-toolkit | dd2339fbcab86365e24efa3d6cf01165e46fdbdd | [
"Apache-2.0"
] | 6 | 2017-07-05T22:25:39.000Z | 2018-09-19T10:02:32.000Z | # -*- coding: utf-8 -*-
# Parallel Processing Teaching Toolkit
# PyOpenCL - Example 07
# Multiple Kernels Execution
# https://github.com/javierip/parallel-processing-teaching-toolkit
import pyopencl as cl
import numpy as np
import time # For measure the running times
VECTOR_SIZE = 50000 # Elements of vector
# C... | 29.609524 | 104 | 0.740109 | 564 | 3,109 | 3.81383 | 0.203901 | 0.052999 | 0.059507 | 0.066946 | 0.528126 | 0.501627 | 0.470014 | 0.470014 | 0.437006 | 0.295676 | 0 | 0.018791 | 0.127051 | 3,109 | 104 | 105 | 29.894231 | 0.773766 | 0.175298 | 0 | 0.171875 | 0 | 0.046875 | 0.238694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046875 | null | null | 0.171875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
910b1c5a462905b6e0b9c2f0811923362063ca65 | 2,219 | py | Python | defaultGen.py | Antoine-Meloche/Art-Generator | 39de2c43b14f01c1820d2df44e46e61dd749512f | [
"MIT"
] | 3 | 2022-01-31T12:38:18.000Z | 2022-03-12T03:50:57.000Z | defaultGen.py | Antoine-Meloche/Art-Generator | 39de2c43b14f01c1820d2df44e46e61dd749512f | [
"MIT"
] | null | null | null | defaultGen.py | Antoine-Meloche/Art-Generator | 39de2c43b14f01c1820d2df44e46e61dd749512f | [
"MIT"
] | null | null | null | import PIL
from PIL import Image, ImageDraw
import math
def generate(width, height, fg, bkg, n, steps, substeps, length, angleincr, angle, exportPath):
bkg_color = (int(bkg[1:3], base=16), int(bkg[3:5], base=16), int(bkg[5:7], base=16))
image = Image.new('RGB', (width, height), color=bkg_color)
draw = Imag... | 28.818182 | 95 | 0.53808 | 297 | 2,219 | 3.989899 | 0.242424 | 0.017722 | 0.112236 | 0.03038 | 0.529114 | 0.512236 | 0.512236 | 0.512236 | 0.512236 | 0.512236 | 0 | 0.037402 | 0.313204 | 2,219 | 76 | 96 | 29.197368 | 0.740157 | 0 | 0 | 0.25 | 1 | 0 | 0.001352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.053571 | 0 | 0.214286 | 0 | 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 |
9115f2f6db12ddad886c49520f5d0a7008488850 | 28,315 | py | Python | gen_simulation.py | sergirubio/SimulatorDS | 71bba81172488fe060521fef7fa9dbc4de9b8c59 | [
"CC-BY-3.0"
] | 5 | 2017-02-27T12:35:49.000Z | 2020-12-06T03:45:29.000Z | gen_simulation.py | sergirubio/SimulatorDS | 71bba81172488fe060521fef7fa9dbc4de9b8c59 | [
"CC-BY-3.0"
] | 16 | 2017-02-01T07:45:44.000Z | 2022-03-25T08:50:03.000Z | gen_simulation.py | sergirubio/SimulatorDS | 71bba81172488fe060521fef7fa9dbc4de9b8c59 | [
"CC-BY-3.0"
] | 4 | 2016-12-23T19:19:09.000Z | 2018-01-31T11:55:11.000Z | #!/usr/bin/env python
import os,sys,threading,pickle,time,traceback,random,math
import PyTango,fandango as fn
from fandango import check_device,check_attribute,Struct,defaultdict
import fandango.tango as ft
__doc__ = """
gen_simulation.py: script to export Tango devices and generate simulators
Usage:
gen_simula... | 36.916558 | 115 | 0.537136 | 3,643 | 28,315 | 4.076036 | 0.136975 | 0.004041 | 0.007879 | 0.005657 | 0.168159 | 0.11031 | 0.080409 | 0.068355 | 0.054347 | 0.033403 | 0 | 0.007298 | 0.312802 | 28,315 | 766 | 116 | 36.964752 | 0.755833 | 0.061593 | 0 | 0.11324 | 0 | 0.001742 | 0.194227 | 0.017224 | 0 | 0 | 0 | 0.002611 | 0.005226 | 0 | null | null | 0.001742 | 0.019164 | null | null | 0.116725 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9116da4a3dac592474f16b80330bb946c551d13c | 841 | py | Python | 2020/day02/day02.py | winks/adventofcode | 6d2a97c148048a2d95b62862d1fe11d5760bd79f | [
"0BSD"
] | null | null | null | 2020/day02/day02.py | winks/adventofcode | 6d2a97c148048a2d95b62862d1fe11d5760bd79f | [
"0BSD"
] | 1 | 2019-12-08T14:45:28.000Z | 2019-12-27T23:11:11.000Z | 2020/day02/day02.py | winks/adventofcode | 6d2a97c148048a2d95b62862d1fe11d5760bd79f | [
"0BSD"
] | null | null | null | import sys
fname = '../input/day02/input.txt'
part1 = True
if len(sys.argv) > 1 and sys.argv[1] == '2':
part1 = False
valid = 0
with open(fname) as fh:
for line in fh.readlines():
parts = line.split(':')
passw = parts[1].strip()
parts = parts[0].split(' ')
match = parts[1]
... | 25.484848 | 72 | 0.450654 | 114 | 841 | 3.324561 | 0.350877 | 0.063325 | 0.042216 | 0.084433 | 0.084433 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063241 | 0.398335 | 841 | 32 | 73 | 26.28125 | 0.685771 | 0 | 0 | 0.074074 | 0 | 0 | 0.033333 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.185185 | 0.037037 | 0 | 0.037037 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91170a6d4872c6755f94640f5849f68e5a01dd45 | 283 | py | Python | drugs/urls.py | GPCRmd/GPCRmd | 7dc75359ace4a00c1597bdb7a86ebee17d51f09c | [
"Apache-2.0"
] | 3 | 2019-03-06T13:35:38.000Z | 2020-08-05T15:31:29.000Z | drugs/urls.py | GPCRmd/GPCRmd | 7dc75359ace4a00c1597bdb7a86ebee17d51f09c | [
"Apache-2.0"
] | null | null | null | drugs/urls.py | GPCRmd/GPCRmd | 7dc75359ace4a00c1597bdb7a86ebee17d51f09c | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from drugs import views
urlpatterns = [
url(r'^drugbrowser', views.drugbrowser, name='drugbrowser'),
url(r'^drugstatistics', views.drugstatistics, name='drugstatistics'),
url(r'^drugmapping', views.drugmapping, name='drugmapping'),
] | 31.444444 | 74 | 0.724382 | 32 | 283 | 6.40625 | 0.4375 | 0.058537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130742 | 283 | 9 | 75 | 31.444444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.264085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
9118a89b420bcad2442ef391036ed5a1ca0deaf3 | 420 | py | Python | landlord/migrations/0013_apartment_number_of_pets.py | manishwins/Greenline | 28085358eb6d8e500075067747f242e457117c44 | [
"Apache-2.0"
] | null | null | null | landlord/migrations/0013_apartment_number_of_pets.py | manishwins/Greenline | 28085358eb6d8e500075067747f242e457117c44 | [
"Apache-2.0"
] | null | null | null | landlord/migrations/0013_apartment_number_of_pets.py | manishwins/Greenline | 28085358eb6d8e500075067747f242e457117c44 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.7 on 2021-07-09 14:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('landlord', '0012_auto_20210629_1203'),
]
operations = [
migrations.AddField(
model_name='apartment',
name='number_of... | 22.105263 | 74 | 0.616667 | 48 | 420 | 5.25 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110749 | 0.269048 | 420 | 18 | 75 | 23.333333 | 0.710098 | 0.107143 | 0 | 0 | 1 | 0 | 0.144772 | 0.061662 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9119542be37f8717e7a0db12fa77adce681b0dd7 | 5,080 | py | Python | uliweb/i18n/i18ntool.py | timgates42/uliweb | 80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1 | [
"BSD-2-Clause"
] | 202 | 2015-01-12T08:10:48.000Z | 2021-11-08T09:04:32.000Z | uliweb/i18n/i18ntool.py | timgates42/uliweb | 80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1 | [
"BSD-2-Clause"
] | 30 | 2015-01-01T09:07:17.000Z | 2021-06-03T12:58:45.000Z | uliweb/i18n/i18ntool.py | timgates42/uliweb | 80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1 | [
"BSD-2-Clause"
] | 58 | 2015-01-12T03:28:54.000Z | 2022-01-14T01:58:08.000Z | import os
from optparse import make_option
from uliweb.core import SimpleFrame
from uliweb.utils.common import pkg
from uliweb.core.commands import Command
#def getfiles(path):
# files_list = []
# if os.path.exists(os.path.abspath(os.path.normpath(path))):
# if os.path.isfile(path):
# ... | 48.846154 | 161 | 0.61063 | 617 | 5,080 | 4.87034 | 0.277147 | 0.047587 | 0.016306 | 0.025624 | 0.210649 | 0.167388 | 0.167388 | 0.141431 | 0.127121 | 0.11381 | 0 | 0.00671 | 0.266535 | 5,080 | 103 | 162 | 49.320388 | 0.799785 | 0.110236 | 0 | 0.1 | 0 | 0.0375 | 0.299955 | 0.023388 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1125 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9122b1bea89116266b38af95aa9b831ea0c6576f | 793 | py | Python | apex_rostest/apex_launchtest/setup.py | oswinso/launch | abaa861f68f60b77585284c6ebf9fcd5bea419db | [
"Apache-2.0"
] | null | null | null | apex_rostest/apex_launchtest/setup.py | oswinso/launch | abaa861f68f60b77585284c6ebf9fcd5bea419db | [
"Apache-2.0"
] | null | null | null | apex_rostest/apex_launchtest/setup.py | oswinso/launch | abaa861f68f60b77585284c6ebf9fcd5bea419db | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
import glob
package_name = 'apex_launchtest'
setup(
name=package_name,
version='0.1',
description='Apex integration test runner and utilities',
author='Pete Baughman',
author_email='pete.baughman@apex.ai',
data_files=[
('share/ament... | 25.580645 | 84 | 0.636822 | 85 | 793 | 5.705882 | 0.576471 | 0.202062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0.203026 | 793 | 30 | 85 | 26.433333 | 0.764241 | 0.025221 | 0 | 0.083333 | 0 | 0 | 0.431347 | 0.209845 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
912fd038e4d54f30b3bd4c3ea82bc6f78ea84dd8 | 4,817 | py | Python | barcode_GOLD.py | leydaniel/barcode-attendance | dd65e678b52279b5c98002e4fc22aafccdc14c9c | [
"MIT"
] | null | null | null | barcode_GOLD.py | leydaniel/barcode-attendance | dd65e678b52279b5c98002e4fc22aafccdc14c9c | [
"MIT"
] | null | null | null | barcode_GOLD.py | leydaniel/barcode-attendance | dd65e678b52279b5c98002e4fc22aafccdc14c9c | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys, time
import RPi.GPIO as GPIO #import GPIO for LED's
from datetime import datetime
import requests, gspread #import gspread API to communicate with Google Sheets
sys.path.append('/usr/lib/python2.7/dist-packages')
from oauth2client.client import SignedJwtAssertionCredentials
errflag = 0 #... | 51.795699 | 183 | 0.726593 | 695 | 4,817 | 4.988489 | 0.31223 | 0.046149 | 0.043842 | 0.048457 | 0.286992 | 0.250937 | 0.250937 | 0.232478 | 0.232478 | 0.141333 | 0 | 0.027007 | 0.162134 | 4,817 | 92 | 184 | 52.358696 | 0.832012 | 0.346274 | 0 | 0.222222 | 0 | 0 | 0.242728 | 0.091144 | 0 | 0 | 0 | 0 | 0.024691 | 0 | null | null | 0 | 0.061728 | null | null | 0.049383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
912fee20ae984cd86937bb19615b98ea3bdc79e5 | 339 | py | Python | merlin/music/admin.py | zwernberg/merlin | f5877768a7e5fa9337a610111cf84f9a2cd61d0f | [
"MIT"
] | null | null | null | merlin/music/admin.py | zwernberg/merlin | f5877768a7e5fa9337a610111cf84f9a2cd61d0f | [
"MIT"
] | null | null | null | merlin/music/admin.py | zwernberg/merlin | f5877768a7e5fa9337a610111cf84f9a2cd61d0f | [
"MIT"
] | null | null | null | from django.contrib import admin
from adminsortable.admin import SortableAdmin
from merlin.music.models import Song, Category
# Register your models here.
class SongAdmin(SortableAdmin):
list_display = ['__str__', 'artist', 'category', 'fan_votes']
admin.site.register(Category, SortableAdmin)
admin.site.registe... | 26.076923 | 65 | 0.787611 | 41 | 339 | 6.365854 | 0.585366 | 0.068966 | 0.130268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112094 | 339 | 12 | 66 | 28.25 | 0.86711 | 0.076696 | 0 | 0 | 0 | 0 | 0.096463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9137aada2b2f169c32bac71ddf683cf9e0147718 | 13,090 | py | Python | tests/selenium/scripts/locationsTest.py | unimauro/eden | b739d334e6828d0db14b3790f2f5e2666fc83576 | [
"MIT"
] | null | null | null | tests/selenium/scripts/locationsTest.py | unimauro/eden | b739d334e6828d0db14b3790f2f5e2666fc83576 | [
"MIT"
] | null | null | null | tests/selenium/scripts/locationsTest.py | unimauro/eden | b739d334e6828d0db14b3790f2f5e2666fc83576 | [
"MIT"
] | null | null | null | from sahanaTest import SahanaTest
import unittest, time, re
import copy
class LocationTest(SahanaTest):
"""
Test the locationWidget - This is done using the shelter registry
All tests can assume that they will be logged in with the admin account at the start.
Any test that requires a d... | 52.995951 | 107 | 0.660504 | 1,247 | 13,090 | 6.729751 | 0.178027 | 0.074714 | 0.158723 | 0.131077 | 0.550048 | 0.471282 | 0.337703 | 0.227479 | 0.204004 | 0.072688 | 0 | 0.004477 | 0.249274 | 13,090 | 246 | 108 | 53.211382 | 0.849496 | 0.053094 | 0 | 0.140541 | 0 | 0 | 0.18442 | 0.099066 | 0 | 0 | 0 | 0 | 0.016216 | 0 | null | null | 0.021622 | 0.016216 | null | null | 0.016216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9137ae30dbe39d3f30713feb054931f305dd297d | 1,740 | py | Python | pages/loganalysiscenter_page/oracle_collection.py | yucheng6039/WebAuto | 13fa954dd58407ee23e89be89f73cb97f5c11108 | [
"Apache-2.0"
] | null | null | null | pages/loganalysiscenter_page/oracle_collection.py | yucheng6039/WebAuto | 13fa954dd58407ee23e89be89f73cb97f5c11108 | [
"Apache-2.0"
] | null | null | null | pages/loganalysiscenter_page/oracle_collection.py | yucheng6039/WebAuto | 13fa954dd58407ee23e89be89f73cb97f5c11108 | [
"Apache-2.0"
] | null | null | null | import random
import uuid
from common.po_base import El
from common.po_base import Page
from common.page_action import PageAction
from selenium.webdriver import Chrome
from config import Driver_Path
class LogHome(Page):
# 可以这么写单个元素
sidebar_element = El("侧边栏菜单", x="//span[text()='首页']")
key1 = El("ip/主机名"... | 30 | 87 | 0.612069 | 228 | 1,740 | 4.54386 | 0.421053 | 0.040541 | 0.098456 | 0.046332 | 0.105212 | 0.042471 | 0 | 0 | 0 | 0 | 0 | 0.016776 | 0.212069 | 1,740 | 57 | 88 | 30.526316 | 0.738877 | 0.116092 | 0 | 0.078947 | 0 | 0 | 0.282523 | 0.18594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.184211 | 0 | 0.763158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
913ae98f1273bc14337dfcd5f4168994d84b4ed0 | 326 | py | Python | Codechef/PLIT2020/GRUBAN.py | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | 2 | 2018-12-11T14:37:24.000Z | 2022-01-23T18:11:54.000Z | Codechef/PLIT2020/GRUBAN.py | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | Codechef/PLIT2020/GRUBAN.py | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | t = int(raw_input())
for h in range(t):
n,k = map(long,raw_input().split())
max1 = -1
l = []
for i in range(1,100000):
if(n%i == 0):
l.append(i)
l.append(n/i)
l.sort()
for i in l:
c = (k*(k+1))/2
if(i*c > n): continue
if((n-i*c) % i !=0): continue
max1 = i
prin... | 14.173913 | 37 | 0.469325 | 63 | 326 | 2.396825 | 0.412698 | 0.039735 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067873 | 0.322086 | 326 | 23 | 38 | 14.173913 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
91424bb3d8234de5a33e8642f34716ba18687d93 | 378 | py | Python | tasks/experts/tools/try.py | mwschouten/procapp | 79e4824088270ae0b65243190659eb37df334421 | [
"MIT"
] | null | null | null | tasks/experts/tools/try.py | mwschouten/procapp | 79e4824088270ae0b65243190659eb37df334421 | [
"MIT"
] | null | null | null | tasks/experts/tools/try.py | mwschouten/procapp | 79e4824088270ae0b65243190659eb37df334421 | [
"MIT"
] | null | null | null | class Setting:
def __init__(self, name,
default=None,
mandatory=True):
self.name = name
self.mandatory = mandatory
def validated(self,a):
return a
def set(self, val):
self.value = self.validated(val)
print 'Value of {} is now {}'... | 21 | 59 | 0.544974 | 46 | 378 | 4.391304 | 0.521739 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330688 | 378 | 18 | 60 | 21 | 0.798419 | 0 | 0 | 0 | 0 | 0 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
914622ebf1f39c62a169c31cfa503b9461d32d9c | 557 | py | Python | actions/lib/action.py | martezr/stackstorm-vra7 | 916dea20ae21b984e8dd1ebc8c02ebd2ca149be6 | [
"Apache-2.0"
] | 1 | 2017-08-05T04:09:48.000Z | 2017-08-05T04:09:48.000Z | actions/lib/action.py | martezr/stackstorm-vra7 | 916dea20ae21b984e8dd1ebc8c02ebd2ca149be6 | [
"Apache-2.0"
] | null | null | null | actions/lib/action.py | martezr/stackstorm-vra7 | 916dea20ae21b984e8dd1ebc8c02ebd2ca149be6 | [
"Apache-2.0"
] | null | null | null | from vraapiclient import catalog
from st2actions.runners.pythonrunner import Action
class vRealizeAutomationAction(Action):
def __init__(self, config):
super(vRealizeAutomationAction, self).__init__(config)
self.vra7 = self._get_client()
def _get_client(self):
hostname = self.config['... | 30.944444 | 77 | 0.694794 | 56 | 557 | 6.696429 | 0.428571 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004535 | 0.208259 | 557 | 17 | 78 | 32.764706 | 0.845805 | 0 | 0 | 0 | 0 | 0 | 0.05386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.153846 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e66d398211c881fad08ff4b52efde76fa3681951 | 4,205 | py | Python | pyop4/opbase/opflowcontrol.py | cindy0123/duty-util01 | c582a7c5dfc6585e421b1b72b2876741b0839c95 | [
"MIT"
] | null | null | null | pyop4/opbase/opflowcontrol.py | cindy0123/duty-util01 | c582a7c5dfc6585e421b1b72b2876741b0839c95 | [
"MIT"
] | null | null | null | pyop4/opbase/opflowcontrol.py | cindy0123/duty-util01 | c582a7c5dfc6585e421b1b72b2876741b0839c95 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 27 14:51:01 2017
@author: marshals
"""
from openv import op4env
from opgit import basegit
from opErrCtl import opErrCtl
import re, os, time, sys
import glob
from opstage import opstage
class opflowcontrol(opstage):
def __init__(self, *args, **k... | 38.227273 | 119 | 0.585731 | 562 | 4,205 | 4.140569 | 0.202847 | 0.06575 | 0.055866 | 0.038676 | 0.275892 | 0.230339 | 0.189944 | 0.162441 | 0.128062 | 0.128062 | 0 | 0.011901 | 0.280618 | 4,205 | 109 | 120 | 38.577982 | 0.757355 | 0.070155 | 0 | 0.352941 | 0 | 0 | 0.072377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011765 | 0.070588 | null | null | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e672e0810d7fe3f583330aedd6926a3bba651185 | 1,310 | py | Python | lib/googlecloudsdk/command_lib/util/resource_map/declarative/declarative_map.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/googlecloudsdk/command_lib/util/resource_map/declarative/declarative_map.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/command_lib/util/resource_map/declarative/declarative_map.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 35.405405 | 77 | 0.775573 | 185 | 1,310 | 5.237838 | 0.551351 | 0.06192 | 0.049536 | 0.033024 | 0.092879 | 0.092879 | 0.092879 | 0.092879 | 0.092879 | 0.092879 | 0 | 0.008014 | 0.142748 | 1,310 | 36 | 78 | 36.388889 | 0.854853 | 0.536641 | 0 | 0 | 0 | 0 | 0.080756 | 0.046392 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
e6736a601695e055ad5d49b8880cf1e0391374d2 | 4,590 | py | Python | transtory/shanghaimetro/dbdefs.py | feynfan13/transtory | 4dd48033fdcd95b4a0dbc19f5b26d15b4b533979 | [
"MIT"
] | 1 | 2018-12-20T08:05:11.000Z | 2018-12-20T08:05:11.000Z | transtory/shanghaimetro/dbdefs.py | feynfan13/transtory | 4dd48033fdcd95b4a0dbc19f5b26d15b4b533979 | [
"MIT"
] | null | null | null | transtory/shanghaimetro/dbdefs.py | feynfan13/transtory | 4dd48033fdcd95b4a0dbc19f5b26d15b4b533979 | [
"MIT"
] | null | null | null | """
Shanghai Metro database definitions
"""
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy import Column, Integer, Text, Float
ShmDbModel = declarative_base()
# Section for lines
class Line(ShmDbModel):
"""Shangh... | 33.50365 | 110 | 0.68976 | 575 | 4,590 | 5.372174 | 0.276522 | 0.092587 | 0.092263 | 0.089026 | 0.282616 | 0.258336 | 0.258336 | 0.192943 | 0.192943 | 0.138556 | 0 | 0.011205 | 0.202832 | 4,590 | 136 | 111 | 33.75 | 0.833014 | 0.323965 | 0 | 0.342466 | 0 | 0 | 0.11444 | 0 | 0 | 0 | 0 | 0.007353 | 0 | 1 | 0.041096 | false | 0.013699 | 0.054795 | 0.027397 | 0.972603 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e68044a3e4c504611b9c05635090ed72561cd27d | 325 | py | Python | electrum-merchant/logger.py | ch4ot1c/electrum-merchant | d8f410cc0454a5236ee3076ebb95e94578d114e4 | [
"MIT"
] | null | null | null | electrum-merchant/logger.py | ch4ot1c/electrum-merchant | d8f410cc0454a5236ee3076ebb95e94578d114e4 | [
"MIT"
] | null | null | null | electrum-merchant/logger.py | ch4ot1c/electrum-merchant | d8f410cc0454a5236ee3076ebb95e94578d114e4 | [
"MIT"
] | null | null | null | import logging
_console_handler = logging.StreamHandler()
_console_handler.setLevel(logging.DEBUG)
_formatter = logging.Formatter('[%(asctime)s] [%(levelname)s] %(message)s')
_console_handler.setFormatter(_formatter)
log = logging.getLogger('electrum-merchant')
log.setLevel(logging.DEBUG)
log.addHandler(_console_hand... | 29.545455 | 75 | 0.806154 | 37 | 325 | 6.810811 | 0.486486 | 0.222222 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058462 | 325 | 10 | 76 | 32.5 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.178462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6862a88d0102ad0e50e8070bee84fda3d3e91c3 | 10,745 | py | Python | shinkansen_simulator/timetable/tests/test_get_timetable.py | togashigg/shinkansen-simulator | 099beb3c0ccc4b045fc78f02540a61fa12d8a3e4 | [
"CC0-1.0"
] | null | null | null | shinkansen_simulator/timetable/tests/test_get_timetable.py | togashigg/shinkansen-simulator | 099beb3c0ccc4b045fc78f02540a61fa12d8a3e4 | [
"CC0-1.0"
] | null | null | null | shinkansen_simulator/timetable/tests/test_get_timetable.py | togashigg/shinkansen-simulator | 099beb3c0ccc4b045fc78f02540a61fa12d8a3e4 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# test_get_timetable.py: get_timetable.py用ユニットテスト
import os
import sys
import shutil
import unittest
package_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
src_path = os.path.join(package_path, 'src')
if src_path not in sys.path:
sys.path.append(src_path)
from get_timet... | 40.243446 | 311 | 0.55356 | 1,148 | 10,745 | 5.060105 | 0.198606 | 0.074884 | 0.038733 | 0.051644 | 0.624892 | 0.597177 | 0.547771 | 0.496471 | 0.439318 | 0.399725 | 0 | 0.227207 | 0.296696 | 10,745 | 266 | 312 | 40.394737 | 0.537118 | 0.034155 | 0 | 0.396313 | 0 | 0.004608 | 0.258941 | 0.026 | 0 | 0 | 0 | 0 | 0.133641 | 1 | 0.046083 | false | 0.009217 | 0.023041 | 0 | 0.082949 | 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 |
e69456a4a8e658ee5c27f5e6059ce88a43c8a0f5 | 6,036 | py | Python | generate_flu_subtrees_dataset_run.py | neherlab/treetime_validation | c9760194712396ea5f5c33a9215eddbd3d13bfc1 | [
"MIT"
] | 4 | 2019-01-28T06:47:48.000Z | 2021-04-22T16:31:37.000Z | generate_flu_subtrees_dataset_run.py | neherlab/treetime_validation | c9760194712396ea5f5c33a9215eddbd3d13bfc1 | [
"MIT"
] | 1 | 2020-04-03T14:42:11.000Z | 2020-04-03T14:42:11.000Z | generate_flu_subtrees_dataset_run.py | neherlab/treetime_validation | c9760194712396ea5f5c33a9215eddbd3d13bfc1 | [
"MIT"
] | 1 | 2020-03-25T06:58:45.000Z | 2020-03-25T06:58:45.000Z | #!/usr/bin/env python
import treetime
import numpy as np
import os,sys
import datetime
import subprocess
import re
import utility_functions_flu as flu_utils
import utility_functions_general as gen_utils
from utility_functions_beast import run_beast, read_beast_log
aln_name = "./resources/flu_H3N2/H3N2_HA_2011_2013.fa... | 35.093023 | 115 | 0.608847 | 799 | 6,036 | 4.301627 | 0.219024 | 0.074193 | 0.03055 | 0.019203 | 0.324702 | 0.222869 | 0.178935 | 0.156532 | 0.115799 | 0.090195 | 0 | 0.016837 | 0.271869 | 6,036 | 171 | 116 | 35.298246 | 0.765188 | 0.01607 | 0 | 0.19403 | 0 | 0.007463 | 0.112049 | 0.059231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022388 | false | 0.052239 | 0.067164 | 0 | 0.104478 | 0.037313 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e69d9c304960a41cd1ba0d4e88e88f9e50c1e2fc | 1,498 | py | Python | sc/migrations/0001_initial.py | taojy123/SettingsCloud | 0a174ec1c0b1535beada2bf7480ef7bd0c12a79e | [
"MIT"
] | null | null | null | sc/migrations/0001_initial.py | taojy123/SettingsCloud | 0a174ec1c0b1535beada2bf7480ef7bd0c12a79e | [
"MIT"
] | null | null | null | sc/migrations/0001_initial.py | taojy123/SettingsCloud | 0a174ec1c0b1535beada2bf7480ef7bd0c12a79e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-12-26 03:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Settin... | 48.322581 | 402 | 0.632176 | 224 | 1,498 | 4.142857 | 0.46875 | 0.082974 | 0.051724 | 0.051724 | 0.142241 | 0.142241 | 0.064655 | 0.064655 | 0.064655 | 0 | 0 | 0.12603 | 0.189586 | 1,498 | 30 | 403 | 49.933333 | 0.638386 | 0.045394 | 0 | 0 | 1 | 0.181818 | 0.405046 | 0.337772 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 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 |
e6a31e210390f90c41fa5c79a88aaf5e27310ba4 | 491 | py | Python | r2c_isg/structures/versions/npm_version.py | returntocorp/inputset-generator | c33952cc5683e9e70b24f76936c42ec8e354d121 | [
"MIT"
] | 3 | 2019-11-02T20:14:34.000Z | 2020-01-23T21:47:20.000Z | r2c_isg/structures/versions/npm_version.py | returntocorp/inputset-generator | c33952cc5683e9e70b24f76936c42ec8e354d121 | [
"MIT"
] | 19 | 2019-09-18T01:48:07.000Z | 2021-11-04T11:20:48.000Z | r2c_isg/structures/versions/npm_version.py | returntocorp/inputset-generator | c33952cc5683e9e70b24f76936c42ec8e354d121 | [
"MIT"
] | 3 | 2019-11-15T22:31:13.000Z | 2020-03-10T10:19:39.000Z | from r2c_isg.structures.versions import Version
class NpmVersion(Version):
def check_guarantees(self) -> None:
"""Guarantees a version string."""
assert 'version' in self.uuids_, \
'Npm version guarantees not met; ' \
'version string must be provided.'
def to_inputset(... | 32.733333 | 70 | 0.637475 | 55 | 491 | 5.581818 | 0.636364 | 0.09772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00271 | 0.248473 | 491 | 14 | 71 | 35.071429 | 0.829268 | 0.173116 | 0 | 0 | 0 | 0 | 0.21519 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6a5fa47b8f53897ed5ae83ea01bb633999c5cd2 | 253 | py | Python | Chapter 8 - Functions & Recursion/10_pr_06.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 8 - Functions & Recursion/10_pr_06.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 8 - Functions & Recursion/10_pr_06.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | 1 | 2021-04-21T10:23:08.000Z | 2021-04-21T10:23:08.000Z | #Function to remove a given word from a list and strip it at the same time.
def remove_and_split(string, word):
newStr = string.replace(word, "")
return newStr.strip()
this = " Root is a Computer "
n = remove_and_split(this, "Root")
print(n) | 28.111111 | 75 | 0.699605 | 42 | 253 | 4.119048 | 0.642857 | 0.104046 | 0.16185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193676 | 253 | 9 | 76 | 28.111111 | 0.848039 | 0.29249 | 0 | 0 | 0 | 0 | 0.145251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 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 |
e6a7ba999191ed4c1934a54309588f85ef98416f | 739 | py | Python | durable_functions_hello_world/DurableFunctionsHttpStart/__init__.py | neuggs/durable-functions | f170b5373d84d7dd65e6a70a1ded2904a07292f4 | [
"MIT"
] | null | null | null | durable_functions_hello_world/DurableFunctionsHttpStart/__init__.py | neuggs/durable-functions | f170b5373d84d7dd65e6a70a1ded2904a07292f4 | [
"MIT"
] | null | null | null | durable_functions_hello_world/DurableFunctionsHttpStart/__init__.py | neuggs/durable-functions | f170b5373d84d7dd65e6a70a1ded2904a07292f4 | [
"MIT"
] | null | null | null | # This function an HTTP starter function for Durable Functions.
# Before running this sample, please:
# - create a Durable orchestration function
# - create a Durable activity function (default name is "Hello")
# - add azure-functions-durable to requirements.txt
# - run pip install -r requirements.txt
import logging
... | 38.894737 | 86 | 0.772666 | 98 | 739 | 5.734694 | 0.612245 | 0.053381 | 0.049822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140731 | 739 | 19 | 87 | 38.894737 | 0.885039 | 0.392422 | 0 | 0 | 0 | 0 | 0.13544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
e6a999dec522af4654c422b11efeec06a052c87f | 658 | py | Python | tests/test_datafile.py | arza-zara/castero | d06eed76944c4b36073073dbc43ddb706aacde6f | [
"MIT"
] | null | null | null | tests/test_datafile.py | arza-zara/castero | d06eed76944c4b36073073dbc43ddb706aacde6f | [
"MIT"
] | null | null | null | tests/test_datafile.py | arza-zara/castero | d06eed76944c4b36073073dbc43ddb706aacde6f | [
"MIT"
] | null | null | null | import os
from unittest import mock
from castero.datafile import DataFile
from castero.downloadqueue import DownloadQueue
def test_datafile_download(display):
display.change_status = mock.MagicMock(name="change_status")
mydownloadqueue = DownloadQueue()
url = "https://travis-ci.org/"
DataFile.downloa... | 27.416667 | 64 | 0.715805 | 74 | 658 | 6.175676 | 0.472973 | 0.210066 | 0.131291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00381 | 0.202128 | 658 | 23 | 65 | 28.608696 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.18693 | 0.100304 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.05 | false | 0.05 | 0.2 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6aa2d30789416a1399de055f32c6eab76e0c6fb | 190 | py | Python | Python Book/13. Complex Loops - Exam Problems/03_stop_number/stop_number.py | alexanderivanov2/Softuni-Software-Engineering | 8adb96f445f1da17dbb6eded9e9594319154c7e7 | [
"MIT"
] | null | null | null | Python Book/13. Complex Loops - Exam Problems/03_stop_number/stop_number.py | alexanderivanov2/Softuni-Software-Engineering | 8adb96f445f1da17dbb6eded9e9594319154c7e7 | [
"MIT"
] | null | null | null | Python Book/13. Complex Loops - Exam Problems/03_stop_number/stop_number.py | alexanderivanov2/Softuni-Software-Engineering | 8adb96f445f1da17dbb6eded9e9594319154c7e7 | [
"MIT"
] | null | null | null | N = int(input())
M = int(input())
S = int(input())
for num in range(M, N - 1, - 1):
if num % 2 == 0 and num % 3 == 0:
if num == S:
break
print(num, end=" ") | 19 | 37 | 0.426316 | 32 | 190 | 2.53125 | 0.5625 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05042 | 0.373684 | 190 | 10 | 38 | 19 | 0.630252 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6b29d198ecf4d4ab48dc3da04b082c9d2aee6db | 3,024 | py | Python | crowd_detection/object_detect_single.py | naitikshukla/drone | f855994cfb1a9515989e95656f52efe4b0e58e8b | [
"Unlicense"
] | 1 | 2017-07-31T21:31:55.000Z | 2017-07-31T21:31:55.000Z | crowd_detection/object_detect_single.py | naitikshukla/drone | f855994cfb1a9515989e95656f52efe4b0e58e8b | [
"Unlicense"
] | 1 | 2020-07-19T04:59:41.000Z | 2020-07-19T04:59:41.000Z | crowd_detection/object_detect_single.py | naitikshukla/drone | f855994cfb1a9515989e95656f52efe4b0e58e8b | [
"Unlicense"
] | null | null | null | # Import the required modules
import dlib
import cv2
import argparse as ap
import get_points
def run(source=0, dispLoc=False):
# Create the VideoCapture object
cam = cv2.VideoCapture(source)
# If Camera Device is not opened, exit the program
if not cam.isOpened():
print ("Video device or file ... | 33.6 | 87 | 0.605159 | 391 | 3,024 | 4.613811 | 0.388747 | 0.023282 | 0.031596 | 0.036585 | 0.170177 | 0.170177 | 0.146896 | 0.146896 | 0.146896 | 0.146896 | 0 | 0.024943 | 0.270833 | 3,024 | 89 | 88 | 33.977528 | 0.793197 | 0.200397 | 0 | 0.295082 | 0 | 0 | 0.17 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065574 | null | null | 0.114754 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e6b834cfefc2f1d003cb091921579cdefdc46ba4 | 2,997 | py | Python | proxy.py | QairexStudio/proxy | d69fb306042399448ac9100656228def1131b9ab | [
"MIT"
] | null | null | null | proxy.py | QairexStudio/proxy | d69fb306042399448ac9100656228def1131b9ab | [
"MIT"
] | null | null | null | proxy.py | QairexStudio/proxy | d69fb306042399448ac9100656228def1131b9ab | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
from fake_useragent import UserAgent
import time
import sys
import os
class proxy:
def get(*number):
ua = UserAgent()
att = []
req = requests.get("https://sslproxies.org/", headers={"user-agent": ua.firefox})
beat = BeautifulSoup(req.tex... | 44.073529 | 182 | 0.451451 | 274 | 2,997 | 4.927007 | 0.354015 | 0.153333 | 0.122222 | 0.177778 | 0.467407 | 0.467407 | 0.467407 | 0.345185 | 0.24 | 0.171852 | 0 | 0.006452 | 0.431098 | 2,997 | 67 | 183 | 44.731343 | 0.785337 | 0 | 0 | 0.439394 | 0 | 0 | 0.118785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.257576 | 0.015152 | 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 |
e6bae09d937c72bacb29a771cd97384e3230b4d2 | 18,009 | py | Python | code/projects/bookmanager/book/views.py | redxyb/Django | 534b0e14fb313d3e766cf4f0725d7c10f1e02ca2 | [
"MIT"
] | null | null | null | code/projects/bookmanager/book/views.py | redxyb/Django | 534b0e14fb313d3e766cf4f0725d7c10f1e02ca2 | [
"MIT"
] | null | null | null | code/projects/bookmanager/book/views.py | redxyb/Django | 534b0e14fb313d3e766cf4f0725d7c10f1e02ca2 | [
"MIT"
] | null | null | null | import os
from django.core.paginator import Paginator
from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect
import re, time, socket
from django.urls import reverse
from book.models import BookInfo, UserBooks, User, BookComment
from django.views.decorators.csrf impor... | 39.754967 | 224 | 0.58965 | 1,959 | 18,009 | 5.290454 | 0.129148 | 0.039367 | 0.062331 | 0.039946 | 0.561849 | 0.504245 | 0.439116 | 0.395504 | 0.335199 | 0.283578 | 0 | 0.004043 | 0.285802 | 18,009 | 453 | 225 | 39.754967 | 0.801742 | 0.072519 | 0 | 0.384164 | 0 | 0 | 0.1144 | 0.023232 | 0.002933 | 0 | 0 | 0 | 0 | 1 | 0.061584 | false | 0.079179 | 0.026393 | 0.002933 | 0.246334 | 0.01173 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6c51a38cd6d0277489dd0a5ed61ae6720e87fe3 | 2,377 | py | Python | SVassembly/extract_reads_by_barcode_2_1_new.py | AV321/SVPackage | c9c625af7f5047ddb43ae79f8beb2ce9aadf7697 | [
"MIT"
] | null | null | null | SVassembly/extract_reads_by_barcode_2_1_new.py | AV321/SVPackage | c9c625af7f5047ddb43ae79f8beb2ce9aadf7697 | [
"MIT"
] | null | null | null | SVassembly/extract_reads_by_barcode_2_1_new.py | AV321/SVPackage | c9c625af7f5047ddb43ae79f8beb2ce9aadf7697 | [
"MIT"
] | 1 | 2019-01-22T19:16:24.000Z | 2019-01-22T19:16:24.000Z | #!/usr/bin/env python
import csv
import pysam
#import distance
#import editdistance
from itertools import izip_longest, islice
import gzip
import sys
import time
import io
#from bisect import bisect_left
"""def calcmin(x_num,x_list):
#dist = min(x_list, key=lambda x:abs(x-x_num))
dist = min(abs(x_list - x_num))
r... | 25.55914 | 140 | 0.675642 | 402 | 2,377 | 3.863184 | 0.358209 | 0.046362 | 0.030908 | 0.028976 | 0.034771 | 0.034771 | 0.034771 | 0 | 0 | 0 | 0 | 0.036082 | 0.183845 | 2,377 | 92 | 141 | 25.836957 | 0.764433 | 0.18679 | 0 | 0.047619 | 0 | 0 | 0.067686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e6cde9f864ad0e61e01c01db1ea1d4f4c0d51e9e | 765 | py | Python | medcv/utils/arg_support.py | szuboy/medcv | e8810718b860dd0241d4fbe323bfe5c6906a4f71 | [
"Apache-2.0"
] | 8 | 2021-04-26T12:18:18.000Z | 2021-09-25T13:53:40.000Z | medcv/utils/arg_support.py | helloGuangdong/medcv | e8810718b860dd0241d4fbe323bfe5c6906a4f71 | [
"Apache-2.0"
] | 1 | 2021-05-02T07:12:31.000Z | 2021-05-02T07:12:31.000Z | medcv/utils/arg_support.py | helloGuangdong/medcv | e8810718b860dd0241d4fbe323bfe5c6906a4f71 | [
"Apache-2.0"
] | 1 | 2021-04-26T12:18:26.000Z | 2021-04-26T12:18:26.000Z | # !/usr/bin/env python
# -*- coding:utf-8 -*-
import functools
from inspect import signature
def expected_type(*type_args, **type_kwargs):
def decorator(fn):
@functools.wraps(fn)
def checker(*args, **kwargs):
fn_signature = signature(fn)
input_value = fn_signature.bind(*ar... | 33.26087 | 106 | 0.623529 | 95 | 765 | 4.863158 | 0.452632 | 0.095238 | 0.051948 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001764 | 0.258824 | 765 | 22 | 107 | 34.772727 | 0.813051 | 0.053595 | 0 | 0 | 0 | 0 | 0.034771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6d4262eb776d6e6f44c43057732f4717cec68cb | 38,260 | py | Python | env/gym_nav/envs/morris_env.py | liuandrew/training-rl-algo | ca56d65209de0bf88ac1e1db2269bb7daac4da47 | [
"MIT"
] | null | null | null | env/gym_nav/envs/morris_env.py | liuandrew/training-rl-algo | ca56d65209de0bf88ac1e1db2269bb7daac4da47 | [
"MIT"
] | null | null | null | env/gym_nav/envs/morris_env.py | liuandrew/training-rl-algo | ca56d65209de0bf88ac1e1db2269bb7daac4da47 | [
"MIT"
] | null | null | null | import numpy as np
import gym
from gym import spaces
import math
MAX_MARCH = 20
EPSILON = 0.1
DEG_TO_RAD = 0.0174533
WINDOW_SIZE = [300, 300]
#
# Objects
#
def generate_box(pos=None, size=[10, 25], inside_window=True, color=(255, 255, 255), is_goal=False,
is_visible=True, is_obstacle=True):
'''
... | 38.685541 | 129 | 0.576947 | 4,884 | 38,260 | 4.36077 | 0.09869 | 0.012489 | 0.017701 | 0.007888 | 0.483426 | 0.437553 | 0.40093 | 0.382196 | 0.378721 | 0.360644 | 0 | 0.021485 | 0.326059 | 38,260 | 989 | 130 | 38.685541 | 0.804499 | 0.21827 | 0 | 0.477663 | 1 | 0 | 0.032679 | 0.001613 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082474 | false | 0.005155 | 0.010309 | 0.006873 | 0.176976 | 0.006873 | 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 |
e6d612be7d1b3395217f7b5f09b09f049dd1dcdb | 1,569 | py | Python | DSP Lab 5/callback_demos/record_and_play_ver2.py | bubbledoodle/EL-GY-6183-Digital-Signal-Processing-LAB | fe8b00357f04a39806664d56eb4f9e9c681fb49e | [
"MIT"
] | null | null | null | DSP Lab 5/callback_demos/record_and_play_ver2.py | bubbledoodle/EL-GY-6183-Digital-Signal-Processing-LAB | fe8b00357f04a39806664d56eb4f9e9c681fb49e | [
"MIT"
] | null | null | null | DSP Lab 5/callback_demos/record_and_play_ver2.py | bubbledoodle/EL-GY-6183-Digital-Signal-Processing-LAB | fe8b00357f04a39806664d56eb4f9e9c681fb49e | [
"MIT"
] | null | null | null | # record_and_play.py
# Record audio from microphone and play to speaker using callback
# This program defines the block to be 1 frame.
# Assignment: Modify to allow longer blocksize. Do this by changing frames_per_buffer
import pyaudio
import wave
import time
import struct
from myfunctions import clip16, play_wav
f... | 22.73913 | 85 | 0.698534 | 217 | 1,569 | 4.926267 | 0.474654 | 0.037418 | 0.028064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02502 | 0.210325 | 1,569 | 68 | 86 | 23.073529 | 0.837772 | 0.27406 | 0 | 0 | 0 | 0 | 0.038256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6d92c38e2a3f7e7f463b708e9169d16e8f70ccb | 415 | py | Python | backend/core/migrations/0034_auto_20210422_1141.py | ethosdev/poap-fun | a4ef4f8f0fd9ad1b3dc925c7024078783ae9e3c5 | [
"MIT"
] | 8 | 2020-10-20T04:49:29.000Z | 2022-02-27T00:03:49.000Z | backend/core/migrations/0034_auto_20210422_1141.py | ethosdev/poap-fun | a4ef4f8f0fd9ad1b3dc925c7024078783ae9e3c5 | [
"MIT"
] | 17 | 2021-03-19T15:08:08.000Z | 2021-09-22T19:37:31.000Z | backend/core/migrations/0034_auto_20210422_1141.py | ethosdev/poap-fun | a4ef4f8f0fd9ad1b3dc925c7024078783ae9e3c5 | [
"MIT"
] | 8 | 2021-04-28T22:29:26.000Z | 2022-03-28T16:47:47.000Z | # Generated by Django 3.0.7 on 2021-04-22 14:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0033_raffle_published'),
]
operations = [
migrations.AlterField(
model_name='raffle',
name='one_address_one_... | 21.842105 | 70 | 0.619277 | 45 | 415 | 5.555556 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062706 | 0.26988 | 415 | 18 | 71 | 23.055556 | 0.762376 | 0.108434 | 0 | 0 | 1 | 0 | 0.179348 | 0.057065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6d94a49779368d32bd86089d5135def9b0c523f | 1,788 | py | Python | src/utils/utility.py | neurologists/ionic | c5ee19fa764f870b15c8858009d5de9d7c200a43 | [
"MIT"
] | null | null | null | src/utils/utility.py | neurologists/ionic | c5ee19fa764f870b15c8858009d5de9d7c200a43 | [
"MIT"
] | 5 | 2018-10-23T12:53:59.000Z | 2018-10-23T13:32:11.000Z | src/utils/utility.py | KaggleBuoys/ionic | c5ee19fa764f870b15c8858009d5de9d7c200a43 | [
"MIT"
] | null | null | null | #
# Stephen Vondenstein, Matthew Buckley
# 10/08/2018
#
import os
# TODO: generalize to create from model param file
# Ensure model parameters match internal param specification
# Also formalizes what's passed into the actual model
def generate_params(config):
params = {
'optimizer': {
'learnin... | 24.493151 | 86 | 0.577181 | 234 | 1,788 | 4.311966 | 0.384615 | 0.019822 | 0.017839 | 0.02775 | 0.362735 | 0.362735 | 0.362735 | 0.362735 | 0.362735 | 0.362735 | 0 | 0.020032 | 0.302013 | 1,788 | 73 | 87 | 24.493151 | 0.788462 | 0.115772 | 0 | 0.327273 | 0 | 0 | 0.070521 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.145455 | false | 0 | 0.018182 | 0.018182 | 0.272727 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e6db3b499fca20974e68d37a3801b5e5ff18a6aa | 3,580 | py | Python | RsInstrument/Internal/Types.py | Rohde-Schwarz/RsInstruments | 67d06dfa32434bfa97243d1d5d33957e1393146f | [
"MIT"
] | 17 | 2021-03-15T11:21:38.000Z | 2022-03-21T09:28:05.000Z | RsInstrument/Internal/Types.py | Rohde-Schwarz/RsInstruments | 67d06dfa32434bfa97243d1d5d33957e1393146f | [
"MIT"
] | 3 | 2021-08-25T15:10:55.000Z | 2022-03-16T12:08:26.000Z | RsInstrument/Internal/Types.py | Rohde-Schwarz/RsInstruments | 67d06dfa32434bfa97243d1d5d33957e1393146f | [
"MIT"
] | 6 | 2021-04-18T08:46:51.000Z | 2022-03-31T10:33:44.000Z | """Data type class for the variables containing all the methods related to data types."""
from enum import Enum, auto
from typing import Any
class DataType(Enum):
"""Data type of a variable in the driver."""
String = auto()
RawString = auto()
Integer = auto()
IntegerExt = auto()
Boolean = auto()
Float = auto(... | 27.751938 | 91 | 0.704469 | 470 | 3,580 | 5.325532 | 0.168085 | 0.139033 | 0.115062 | 0.060727 | 0.303236 | 0.220935 | 0.179385 | 0.130244 | 0.130244 | 0.130244 | 0 | 0.002761 | 0.190503 | 3,580 | 128 | 92 | 27.96875 | 0.860939 | 0.211453 | 0 | 0.207921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09901 | false | 0 | 0.019802 | 0 | 0.594059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6db5c6df64bf26158c9a83c1d3911640b714509 | 486 | py | Python | q5.py | qadeerassan/python-data-structures-I-a3 | ce4eacb01d939256b7dd7e30b745c8adb071abc6 | [
"MIT"
] | null | null | null | q5.py | qadeerassan/python-data-structures-I-a3 | ce4eacb01d939256b7dd7e30b745c8adb071abc6 | [
"MIT"
] | null | null | null | q5.py | qadeerassan/python-data-structures-I-a3 | ce4eacb01d939256b7dd7e30b745c8adb071abc6 | [
"MIT"
] | null | null | null | """
----------------------------------------------------
q5.py
Tests mirror_stack
----------------------------------------------------
Author: Qadeer Assan
ID: 160257370
Email: assa7370@mylaurier.ca
_updated_="2018-01-23"
----------------------------------------------------
"""
from asgn03 import mirror_stac... | 27 | 86 | 0.471193 | 46 | 486 | 4.717391 | 0.73913 | 0.152074 | 0.138249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05492 | 0.100823 | 486 | 17 | 87 | 28.588235 | 0.441648 | 0.555556 | 0 | 0 | 0 | 0 | 0.326316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
e6e18aef06b6089bca5a4b912412ebc22f4e5784 | 677 | py | Python | geoJSON.py | extwiii/C-Python | 166d7abd032e0d3d150b4374b51bb1ce4d1ff3a0 | [
"Apache-2.0"
] | null | null | null | geoJSON.py | extwiii/C-Python | 166d7abd032e0d3d150b4374b51bb1ce4d1ff3a0 | [
"Apache-2.0"
] | null | null | null | geoJSON.py | extwiii/C-Python | 166d7abd032e0d3d150b4374b51bb1ce4d1ff3a0 | [
"Apache-2.0"
] | null | null | null | import urllib
import json
# serviceurl = 'http://maps.googleapis.com/maps/api/geocode/json?'
serviceurl = 'http://python-data.dr-chuck.net/geojson?'
while True:
address = raw_input('Enter location: ')
if len(address) < 1 : break
url = serviceurl + urllib.urlencode({'sensor':'false', 'address': address})
... | 23.344828 | 79 | 0.621861 | 85 | 677 | 4.917647 | 0.694118 | 0.066986 | 0.086124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01145 | 0.225997 | 677 | 28 | 80 | 24.178571 | 0.78626 | 0.175775 | 0 | 0 | 0 | 0 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e6f050da21b7a621fc68921228a803748f3e1e7f | 15,436 | py | Python | Codes/3D/3D_composable_solvers_RT0.py | msarrafj/HPC_composableSolver | 119d29494a04960449db6ac6f4f4294431d4a4cf | [
"MIT"
] | null | null | null | Codes/3D/3D_composable_solvers_RT0.py | msarrafj/HPC_composableSolver | 119d29494a04960449db6ac6f4f4294431d4a4cf | [
"MIT"
] | null | null | null | Codes/3D/3D_composable_solvers_RT0.py | msarrafj/HPC_composableSolver | 119d29494a04960449db6ac6f4f4294431d4a4cf | [
"MIT"
] | null | null | null | """
Governing equations: Double porosity/permeability
Formulation: Stabilized mixed CG formulation
Problem: 3D convergence - Square domain
Run as:
python example_composable_solvers.py <rtol> <show_monitor> <solver_type> <amg_type> <nx> <element>
where:
<rtol> = relative solver tolerance
<show_monitor> = T... | 35.40367 | 223 | 0.633584 | 2,326 | 15,436 | 4.010318 | 0.152193 | 0.014151 | 0.030017 | 0.028302 | 0.475879 | 0.42217 | 0.393439 | 0.309284 | 0.28913 | 0.270047 | 0 | 0.065628 | 0.13922 | 15,436 | 435 | 224 | 35.485057 | 0.636336 | 0.231407 | 0 | 0.1841 | 0 | 0.083682 | 0.373279 | 0.239393 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020921 | null | null | 0.125523 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e6f08aed98f39468205d6a632a74da272b8ed295 | 656 | py | Python | mission_api/serializers.py | JustinWingChungHui/OITS_UI | 3456f1938d0cabd4476e7e986f374cf550ab9ccd | [
"MIT"
] | null | null | null | mission_api/serializers.py | JustinWingChungHui/OITS_UI | 3456f1938d0cabd4476e7e986f374cf550ab9ccd | [
"MIT"
] | 7 | 2020-06-06T15:49:53.000Z | 2021-06-09T17:46:06.000Z | mission_api/serializers.py | JustinWingChungHui/OITS_UI | 3456f1938d0cabd4476e7e986f374cf550ab9ccd | [
"MIT"
] | 1 | 2020-05-01T18:09:19.000Z | 2020-05-01T18:09:19.000Z | from oits_params.models import OitsParams
from rest_framework import serializers
# Serializers define the API representation.
class OitsParamsSerializer(serializers.ModelSerializer):
'''
Defines fields to be serialised for a mission
'''
class Meta:
model = OitsParams
fields = ('id','uid... | 31.238095 | 94 | 0.690549 | 68 | 656 | 6.602941 | 0.661765 | 0.115813 | 0.062361 | 0.106904 | 0.231626 | 0.231626 | 0.231626 | 0.231626 | 0.231626 | 0 | 0 | 0 | 0.202744 | 656 | 21 | 95 | 31.238095 | 0.858509 | 0.228659 | 0 | 0.4 | 0 | 0 | 0.189076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
e6f0da25cf049d461b56b946943739fa7b23f2fe | 1,082 | py | Python | src/webtsainterface/api.py | LimnoTech/WEBTSA | f67ccfac0e4d101a6c67f50fabe5c171303bede3 | [
"BSD-3-Clause"
] | null | null | null | src/webtsainterface/api.py | LimnoTech/WEBTSA | f67ccfac0e4d101a6c67f50fabe5c171303bede3 | [
"BSD-3-Clause"
] | 2 | 2021-09-03T18:47:04.000Z | 2021-12-16T21:27:54.000Z | src/webtsainterface/api.py | LimnoTech/WEBTSA | f67ccfac0e4d101a6c67f50fabe5c171303bede3 | [
"BSD-3-Clause"
] | null | null | null | from tastypie.resources import ModelResource
from tastypie import fields
from webtsaservices.api import v1_api
from webtsainterface.models import SearchFacet, DataSeriesField
class DataSeriesFieldResource(ModelResource):
field_name = fields.CharField('field_name')
class Meta:
queryset = DataSeriesFie... | 30.914286 | 85 | 0.720887 | 108 | 1,082 | 7.092593 | 0.453704 | 0.046997 | 0.044386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003417 | 0.18854 | 1,082 | 35 | 86 | 30.914286 | 0.869021 | 0 | 0 | 0.08 | 0 | 0 | 0.069252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.16 | 0.04 | 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 |
e6f1f97211678fa81a95c548bb8ef13f0144615c | 14,365 | py | Python | tests/pytests/test_dawn_driver.py | jlaura/ale | fd964a8ce94bdd8aed944547442e9d17d0b5ca61 | [
"Unlicense"
] | null | null | null | tests/pytests/test_dawn_driver.py | jlaura/ale | fd964a8ce94bdd8aed944547442e9d17d0b5ca61 | [
"Unlicense"
] | null | null | null | tests/pytests/test_dawn_driver.py | jlaura/ale | fd964a8ce94bdd8aed944547442e9d17d0b5ca61 | [
"Unlicense"
] | null | null | null | from collections import namedtuple
from unittest import mock
import pytest
import ale
from ale.drivers import dawn_drivers
from ale.base import data_naif
from ale.drivers.dawn_drivers import DawnFcPds3NaifSpiceDriver
# 'Mock' the spice module where it is imported
from conftest import SimpleSpice, get_mockkernels
s... | 32.871854 | 205 | 0.54953 | 1,567 | 14,365 | 4.770262 | 0.356733 | 0.004013 | 0.014716 | 0.018729 | 0.178729 | 0.154381 | 0.128829 | 0.128829 | 0.122408 | 0.117592 | 0 | 0.137367 | 0.369579 | 14,365 | 436 | 206 | 32.947248 | 0.688052 | 0.027358 | 0 | 0.178771 | 0 | 0.002793 | 0.959318 | 0.121043 | 0 | 0 | 0 | 0 | 0.002793 | 1 | 0.005587 | false | 0 | 0.022346 | 0.002793 | 0.030726 | 0 | 0 | 0 | 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 |
e6f8cc38068c2faa96eec2cf7744bbab2d64666e | 7,926 | py | Python | uncompyle2/__init__.py | Alpha-Demon404/unfrozen_binary | 27687459efda028582259b2544fdeb701ae50409 | [
"MIT"
] | 12 | 2015-10-17T14:23:56.000Z | 2018-11-19T10:58:37.000Z | uncompyle2/__init__.py | Alpha-Demon404/unfrozen_binary | 27687459efda028582259b2544fdeb701ae50409 | [
"MIT"
] | 2 | 2019-02-02T19:39:26.000Z | 2021-01-24T21:20:36.000Z | uncompyle2/__init__.py | Alpha-Demon404/unfrozen_binary | 27687459efda028582259b2544fdeb701ae50409 | [
"MIT"
] | 2 | 2020-05-01T09:37:05.000Z | 2020-10-18T18:14:30.000Z | # Copyright (c) 1999 John Aycock
# Copyright (c) 2000 by hartmut Goebel <h.goebel@crazy-compilers.com>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# ... | 34.46087 | 104 | 0.621499 | 1,011 | 7,926 | 4.7636 | 0.317507 | 0.013081 | 0.014535 | 0.011836 | 0.085963 | 0.057309 | 0.057309 | 0.046927 | 0.046927 | 0.028239 | 0 | 0.012432 | 0.27946 | 7,926 | 229 | 105 | 34.611354 | 0.830853 | 0.21726 | 0 | 0.270073 | 0 | 0 | 0.070547 | 0 | 0 | 0 | 0 | 0.004367 | 0.014599 | 0 | null | null | 0.014599 | 0.043796 | null | null | 0.072993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e6fbca9808f2806db8ee2d773028150b1c488db4 | 853 | py | Python | twilioconfig/migrations/0002_phoneownership.py | ph00lt0/websms | 1f9ef48fd2fe1540770dc90022b142aed3d7d214 | [
"MIT"
] | null | null | null | twilioconfig/migrations/0002_phoneownership.py | ph00lt0/websms | 1f9ef48fd2fe1540770dc90022b142aed3d7d214 | [
"MIT"
] | null | null | null | twilioconfig/migrations/0002_phoneownership.py | ph00lt0/websms | 1f9ef48fd2fe1540770dc90022b142aed3d7d214 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-06 08:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import phonenumber_field.modelfields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL... | 32.807692 | 118 | 0.66823 | 92 | 853 | 6.054348 | 0.641304 | 0.043088 | 0.050269 | 0.078995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033033 | 0.219226 | 853 | 25 | 119 | 34.12 | 0.803303 | 0.052755 | 0 | 0 | 1 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6fc846cdc003b34e43987d49a93b48033634010 | 43,447 | py | Python | tests/test_estimation.py | ashish-ram/lifetimes | 86f93c3153e7941ef75c2b6327d86a10623ed7dd | [
"MIT"
] | null | null | null | tests/test_estimation.py | ashish-ram/lifetimes | 86f93c3153e7941ef75c2b6327d86a10623ed7dd | [
"MIT"
] | null | null | null | tests/test_estimation.py | ashish-ram/lifetimes | 86f93c3153e7941ef75c2b6327d86a10623ed7dd | [
"MIT"
] | null | null | null | from __future__ import print_function
import numpy as np
import pandas as pd
import numpy.testing as npt
import pytest
import os
from collections import OrderedDict
import lifetimes.estimation as estimation
import lifetimes.utils as utils
from lifetimes.datasets import load_cdnow_summary, load_cdnow_summary_data_wit... | 47.173724 | 175 | 0.659171 | 5,473 | 43,447 | 4.888544 | 0.091723 | 0.120351 | 0.042123 | 0.044702 | 0.778322 | 0.7282 | 0.680845 | 0.637227 | 0.604784 | 0.590693 | 0 | 0.044081 | 0.221488 | 43,447 | 920 | 176 | 47.225 | 0.746925 | 0.046585 | 0 | 0.467787 | 0 | 0.001401 | 0.061442 | 0.00646 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.089636 | false | 0 | 0.014006 | 0.004202 | 0.116247 | 0.001401 | 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 |
e6fdf344199721996a3819f1943bc9505c04f6ca | 832 | py | Python | main.py | gtpash/mm2018 | b4ef9ed771d0a40040026dd9dc5724a9ff8edb18 | [
"MIT"
] | null | null | null | main.py | gtpash/mm2018 | b4ef9ed771d0a40040026dd9dc5724a9ff8edb18 | [
"MIT"
] | null | null | null | main.py | gtpash/mm2018 | b4ef9ed771d0a40040026dd9dc5724a9ff8edb18 | [
"MIT"
] | null | null | null | #going to try a basic tf model using keras
#localpath
import os
path = 'C:\\Users\\graha\\Dropbox\\Graham\\documents\\GitHub\\mm2018'
os.chdir(path)
import math
import numpy as np
import pandas as pd
import tensorflow as tf
import keras
data_dir = 'C:\\Users\\graha\\Dropbox\\Graham\\documents\\SportsAna... | 26.83871 | 97 | 0.713942 | 133 | 832 | 4.308271 | 0.511278 | 0.073298 | 0.052356 | 0.062827 | 0.17103 | 0.115183 | 0 | 0 | 0 | 0 | 0 | 0.009986 | 0.157452 | 832 | 30 | 98 | 27.733333 | 0.807418 | 0.234375 | 0 | 0 | 0 | 0 | 0.341137 | 0.287625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | 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 |
fc000658184ed69ac243c5bc027b4bc1681515bb | 1,830 | py | Python | python/src/main/python/pyalink/alink/tests/examples/from_docs/test_prophetpredictbatchop.py | wenwei8268/Alink | c00702538c95a32403985ebd344eb6aeb81749a7 | [
"Apache-2.0"
] | null | null | null | python/src/main/python/pyalink/alink/tests/examples/from_docs/test_prophetpredictbatchop.py | wenwei8268/Alink | c00702538c95a32403985ebd344eb6aeb81749a7 | [
"Apache-2.0"
] | null | null | null | python/src/main/python/pyalink/alink/tests/examples/from_docs/test_prophetpredictbatchop.py | wenwei8268/Alink | c00702538c95a32403985ebd344eb6aeb81749a7 | [
"Apache-2.0"
] | null | null | null | import unittest
from pyalink.alink import *
import numpy as np
import pandas as pd
class TestProphetPredictBatchOp(unittest.TestCase):
def test_prophetpredictbatchop(self):
import time, datetime
import numpy as np
import pandas as pd
downloader = AlinkGlobalConfiguration.ge... | 37.346939 | 105 | 0.53224 | 160 | 1,830 | 6.05 | 0.4875 | 0.092975 | 0.17562 | 0.309917 | 0.352273 | 0.06405 | 0.06405 | 0.06405 | 0 | 0 | 0 | 0.04665 | 0.355738 | 1,830 | 49 | 106 | 37.346939 | 0.774385 | 0 | 0 | 0.093023 | 0 | 0 | 0.057346 | 0.012015 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0.023256 | 0.162791 | 0 | 0.209302 | 0.023256 | 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 |
fc0031204acc940e9531c0e166dfd9bd6a5e7f43 | 2,562 | py | Python | setup.py | MolSSI/dqm_server | ceff64fe032590095e0f865bc1d0c2da4684404e | [
"BSD-3-Clause"
] | null | null | null | setup.py | MolSSI/dqm_server | ceff64fe032590095e0f865bc1d0c2da4684404e | [
"BSD-3-Clause"
] | null | null | null | setup.py | MolSSI/dqm_server | ceff64fe032590095e0f865bc1d0c2da4684404e | [
"BSD-3-Clause"
] | 1 | 2018-03-12T16:50:54.000Z | 2018-03-12T16:50:54.000Z | import setuptools
import versioneer
short_description = "A distributed compute and database platform for quantum chemistry."
try:
with open("README.md", "r") as handle:
long_description = handle.read()
except FileNotFoundError:
long_description = short_description
if __name__ == "__main__":
setu... | 32.025 | 88 | 0.521468 | 229 | 2,562 | 5.672489 | 0.624454 | 0.057737 | 0.04157 | 0.046189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029324 | 0.347775 | 2,562 | 79 | 89 | 32.43038 | 0.748055 | 0.065574 | 0 | 0.057971 | 0 | 0 | 0.342414 | 0.068315 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0 | false | 0 | 0.028986 | 0 | 0.028986 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fc0e977187db6d86ce4fed5f31e97292bf5bec8c | 945 | py | Python | jwt_auth/serializers.py | codertx/lightil | 8f3b78047cc885729c4922fc5221e274cc8e1d4f | [
"MIT"
] | 1 | 2019-05-31T09:19:09.000Z | 2019-05-31T09:19:09.000Z | jwt_auth/serializers.py | codertx/Lidict | 8f3b78047cc885729c4922fc5221e274cc8e1d4f | [
"MIT"
] | null | null | null | jwt_auth/serializers.py | codertx/Lidict | 8f3b78047cc885729c4922fc5221e274cc8e1d4f | [
"MIT"
] | null | null | null | from .models import User
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
password = serializers.CharField(max_length=20, min_length=8, trim_whitespace=False, write_only=True)
class Meta:
model = User
fields = ('id', 'nickname', 'username', 'email', 'pa... | 37.8 | 105 | 0.712169 | 111 | 945 | 5.945946 | 0.540541 | 0.118182 | 0.048485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003958 | 0.197884 | 945 | 24 | 106 | 39.375 | 0.866755 | 0.227513 | 0 | 0 | 0 | 0 | 0.075862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.266667 | 0.133333 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fc261a748ff70a73bb52303a19d6d10b9ecc35c4 | 682 | py | Python | 1-9/1. add/add.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | 1 | 2021-11-30T05:03:24.000Z | 2021-11-30T05:03:24.000Z | 1-9/1. add/add.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | null | null | null | 1-9/1. add/add.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | 2 | 2021-04-18T05:26:43.000Z | 2021-11-28T18:46:43.000Z | from itertools import zip_longest
# def add(matrix1, matrix2):
# return [
# [sum(elements) for elements in zip(row1, row2)]
# for row1, row2 in zip(matrix1, matrix2)
# ]
# def add(*matrices):
# return [
# [sum(elements) for elements in zip(*rows)]
# for rows in zip(*matric... | 26.230769 | 93 | 0.596774 | 90 | 682 | 4.488889 | 0.488889 | 0.074257 | 0.126238 | 0.148515 | 0.324257 | 0.24505 | 0.24505 | 0 | 0 | 0 | 0 | 0.016842 | 0.303519 | 682 | 25 | 94 | 27.28 | 0.833684 | 0.524927 | 0 | 0 | 0 | 0 | 0.11859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc27ac12cd99bc4b5196fd48a3122b3753f08514 | 876 | py | Python | pfwra/common/migrations/0001_initial.py | johnkellehernz/pfwra | 5b8c718bb2f1aaa34e9a718e07baf270294f7ba6 | [
"MIT"
] | null | null | null | pfwra/common/migrations/0001_initial.py | johnkellehernz/pfwra | 5b8c718bb2f1aaa34e9a718e07baf270294f7ba6 | [
"MIT"
] | null | null | null | pfwra/common/migrations/0001_initial.py | johnkellehernz/pfwra | 5b8c718bb2f1aaa34e9a718e07baf270294f7ba6 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.11 on 2021-03-24 20:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagtailimages', '0023_add_choose_permissions'),
]
operations = [
migrations.CreateMode... | 33.692308 | 158 | 0.626712 | 100 | 876 | 5.38 | 0.6 | 0.04461 | 0.052045 | 0.081784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.238584 | 876 | 25 | 159 | 35.04 | 0.772114 | 0.052511 | 0 | 0 | 1 | 0 | 0.138889 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc2c0640e1931d81ea6653d2050e6ea09156583a | 1,405 | py | Python | src/normal_deriv.py | jcrist1/iterated_bdry_solver | e1205a87ba4c29c2bff1ab299e608e02b78e0076 | [
"MIT"
] | null | null | null | src/normal_deriv.py | jcrist1/iterated_bdry_solver | e1205a87ba4c29c2bff1ab299e608e02b78e0076 | [
"MIT"
] | null | null | null | src/normal_deriv.py | jcrist1/iterated_bdry_solver | e1205a87ba4c29c2bff1ab299e608e02b78e0076 | [
"MIT"
] | null | null | null | from dolfin import *
import numpy as np
def get_facet_normal(V,boundaries,bval):
mesh=V.mesh()
mesh.init(0,2)
mesh.init(2,3)
normal0=Function(V)
normal1=Function(V)
normal2=Function(V)
normal=[normal0,normal1,normal2]
coords=mesh.coordinates()
cells=mesh.cells()
iV=vertex_to_dof_map(V)
facetlist... | 23.416667 | 48 | 0.622776 | 229 | 1,405 | 3.790393 | 0.310044 | 0.069124 | 0.044931 | 0.034562 | 0.057604 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050523 | 0.182918 | 1,405 | 59 | 49 | 23.813559 | 0.705575 | 0.160142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | 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 |
fc2e76f246f28411d4ee9715af8fbd646031978c | 50,235 | py | Python | pypy/rlib/rbigint.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/rlib/rbigint.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | null | null | null | pypy/rlib/rbigint.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | from pypy.rlib.rarithmetic import LONG_BIT, intmask, r_uint, r_ulonglong
from pypy.rlib.rarithmetic import ovfcheck, r_longlong
import math, sys
# It took many days of debugging and testing, until
# I (chris) finally understood how things work and where
# to expect overflows in the division code.
# In the end, I deci... | 30.298552 | 79 | 0.5405 | 7,181 | 50,235 | 3.699624 | 0.126166 | 0.013701 | 0.003915 | 0.00414 | 0.272481 | 0.212595 | 0.176121 | 0.149923 | 0.123574 | 0.096812 | 0 | 0.026487 | 0.355907 | 50,235 | 1,657 | 80 | 30.316838 | 0.794598 | 0.227511 | 0 | 0.416196 | 0 | 0 | 0.019118 | 0.002654 | 0 | 0 | 0.000126 | 0 | 0.033898 | 0 | null | null | 0 | 0.002825 | 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 |
fc300c7870fa93414109b2dac36a4798fc8b9055 | 3,633 | py | Python | pypy/doc/test/test_whatsnew.py | yxzoro/pypy | 6e47b3d3e5513d9639a21554963a6ace172ccfee | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | pypy/doc/test/test_whatsnew.py | yxzoro/pypy | 6e47b3d3e5513d9639a21554963a6ace172ccfee | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | pypy/doc/test/test_whatsnew.py | yxzoro/pypy | 6e47b3d3e5513d9639a21554963a6ace172ccfee | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | import py
import pypy
from commands import getoutput, getstatusoutput
ROOT = py.path.local(pypy.__file__).dirpath().dirpath()
def parse_doc(s):
startrev = None
branches = set()
def parseline(line):
_, value = line.split(':', 1)
return value.strip()
#
for line in s.splitlines():
... | 31.051282 | 94 | 0.621525 | 437 | 3,633 | 5.05492 | 0.304348 | 0.03531 | 0.030783 | 0.025351 | 0.145767 | 0.076053 | 0.076053 | 0.076053 | 0.076053 | 0 | 0 | 0.013628 | 0.252684 | 3,633 | 116 | 95 | 31.318966 | 0.8 | 0.097715 | 0 | 0.155556 | 0 | 0 | 0.215182 | 0.015917 | 0 | 0 | 0 | 0 | 0.077778 | 0 | null | null | 0 | 0.033333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc3191471b1432372d7cb4c568cc224866692ff7 | 860 | py | Python | tests/test_formatter.py | natansilva/sql_formatter | 69cbd128db405c45b42694da4c4741ec664446e6 | [
"MIT"
] | null | null | null | tests/test_formatter.py | natansilva/sql_formatter | 69cbd128db405c45b42694da4c4741ec664446e6 | [
"MIT"
] | null | null | null | tests/test_formatter.py | natansilva/sql_formatter | 69cbd128db405c45b42694da4c4741ec664446e6 | [
"MIT"
] | null | null | null | import formatter.formatter as fm
import pytest
import os
dirname = os.path.dirname(__file__)
dirname = os.path.join(dirname, 'data_test/')
# @pytest.mark.skip(reason='in development')
def test_format_file_simple():
filename = os.path.join(dirname, 'simple_input_string.sql')
simple_input_string = fm.read_file(... | 33.076923 | 65 | 0.765116 | 121 | 860 | 5.132231 | 0.239669 | 0.057971 | 0.080515 | 0.136876 | 0.724638 | 0.724638 | 0.602254 | 0.486312 | 0.486312 | 0.338164 | 0 | 0 | 0.119767 | 860 | 25 | 66 | 34.4 | 0.820343 | 0.098837 | 0 | 0.117647 | 0 | 0 | 0.137306 | 0.124352 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.294118 | 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 |
fc330c59e7be71b4d98e2f663da05238e6be127a | 476 | py | Python | code/app/notejam/__init__.py | mendrugory/opensouthcode2019 | f8dce5b0777451d10bd42bf3f634e590adb3812c | [
"MIT"
] | 1 | 2019-05-22T10:01:50.000Z | 2019-05-22T10:01:50.000Z | code/app/notejam/__init__.py | mendrugory/opensouthcode2019 | f8dce5b0777451d10bd42bf3f634e590adb3812c | [
"MIT"
] | null | null | null | code/app/notejam/__init__.py | mendrugory/opensouthcode2019 | f8dce5b0777451d10bd42bf3f634e590adb3812c | [
"MIT"
] | null | null | null | import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager
from flask.ext.mail import Mail
app = Flask(__name__)
app.config.from_object('notejam.config.Config')
db = SQLAlchemy(app)
from models import *
db.init_app(app)
db.create_all()
db.session.commit()
... | 19.04 | 47 | 0.789916 | 73 | 476 | 4.972603 | 0.342466 | 0.099174 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111345 | 476 | 24 | 48 | 19.833333 | 0.858156 | 0 | 0 | 0 | 0 | 0 | 0.056723 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.388889 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc3663cba4f812643659def24299108da360ed0a | 257 | py | Python | benchmark/python/for.py | srijan-paul/snap | 93bd7bed27008910bdce706f4545a06c3445e242 | [
"MIT"
] | 29 | 2021-02-01T15:36:40.000Z | 2022-03-27T08:28:28.000Z | benchmark/python/for.py | srijan-paul/snap | 93bd7bed27008910bdce706f4545a06c3445e242 | [
"MIT"
] | 12 | 2021-01-23T15:21:10.000Z | 2022-03-27T14:13:28.000Z | benchmark/python/for.py | srijan-paul/snap | 93bd7bed27008910bdce706f4545a06c3445e242 | [
"MIT"
] | 3 | 2021-03-02T09:13:25.000Z | 2021-07-26T11:41:10.000Z | from __future__ import print_function
# Map "range" to an efficient range in both Python 2 and 3.
try:
range = xrange
except NameError:
pass
list_ = []
for i in range(0, 1000000):
list_.append(i)
sum_ = 0
for i in list_:
sum_ += i
print(sum_) | 16.0625 | 59 | 0.684825 | 43 | 257 | 3.837209 | 0.651163 | 0.048485 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055276 | 0.225681 | 257 | 16 | 60 | 16.0625 | 0.773869 | 0.22179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fc36c4d51f9674b92a7dd9c92d5a72f7dfd077ab | 1,389 | py | Python | setup.py | grnydawn/uxml2dict | c7ca89d92c5d4a4a8344ef6e9b60d6a2b5cb37a3 | [
"MIT"
] | null | null | null | setup.py | grnydawn/uxml2dict | c7ca89d92c5d4a4a8344ef6e9b60d6a2b5cb37a3 | [
"MIT"
] | null | null | null | setup.py | grnydawn/uxml2dict | c7ca89d92c5d4a4a8344ef6e9b60d6a2b5cb37a3 | [
"MIT"
] | null | null | null | "uxml2dict setup module."
def main():
from setuptools import setup
from uxml2dict import Xml2Dict as x2d
install_requires = ["microapp>=0.2.3", "xmltodict"]
setup(
name=x2d._name_,
version=x2d._version_,
description=x2d._description_,
long_description=x2d._long_descri... | 32.302326 | 74 | 0.596112 | 130 | 1,389 | 6.123077 | 0.530769 | 0.119347 | 0.157035 | 0.163317 | 0.077889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029087 | 0.282217 | 1,389 | 42 | 75 | 33.071429 | 0.769308 | 0.016559 | 0 | 0 | 0 | 0 | 0.384449 | 0.015839 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.108108 | 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 |
fc375110c4df2f0e5848464bd1765e8ad830b826 | 555 | py | Python | 07.Multi/NewDB.py | sarincr/SQLite-with-Python | 3237b5c7d29f45b7f9d432d8f1e4efabf313a74c | [
"MIT"
] | 1 | 2022-02-14T04:44:39.000Z | 2022-02-14T04:44:39.000Z | 07.Multi/NewDB.py | sarincr/SQLite-with-Python | 3237b5c7d29f45b7f9d432d8f1e4efabf313a74c | [
"MIT"
] | null | null | null | 07.Multi/NewDB.py | sarincr/SQLite-with-Python | 3237b5c7d29f45b7f9d432d8f1e4efabf313a74c | [
"MIT"
] | null | null | null |
import sqlite3
conn = sqlite3.connect('NewDB.db')
cursor = conn.cursor()
table ="""CREATE TABLE STUDENT(NAME VARCHAR(255), CLASS VARCHAR(255), SECTION VARCHAR(255));"""
cursor.execute(table)
cursor.execute('''INSERT INTO STUDENT VALUES ('John', '8', 'A')''')
cursor.execute('''INSERT INTO STUDENT VALUES ('Ad... | 19.821429 | 95 | 0.661261 | 75 | 555 | 4.893333 | 0.493333 | 0.177112 | 0.155313 | 0.188011 | 0.294278 | 0.294278 | 0 | 0 | 0 | 0 | 0 | 0.031185 | 0.133333 | 555 | 27 | 96 | 20.555556 | 0.731809 | 0 | 0 | 0 | 0 | 0 | 0.493694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.142857 | 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 |
fc37cd4d479b94fa3f5768d9496eace0c8659d39 | 410 | py | Python | app_quis/migrations/0007_alter_pergunta_imagem.py | naelallves/proj_sinal_transito | bc8b82c1809b8ff97996227bbefc07f42ea5f736 | [
"MIT"
] | null | null | null | app_quis/migrations/0007_alter_pergunta_imagem.py | naelallves/proj_sinal_transito | bc8b82c1809b8ff97996227bbefc07f42ea5f736 | [
"MIT"
] | null | null | null | app_quis/migrations/0007_alter_pergunta_imagem.py | naelallves/proj_sinal_transito | bc8b82c1809b8ff97996227bbefc07f42ea5f736 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-30 14:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app_quis', '0006_pergunta_imagem'),
]
operations = [
migrations.AlterField(
model_name='pergunta',
name='imagem',
... | 21.578947 | 74 | 0.607317 | 44 | 410 | 5.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063758 | 0.273171 | 410 | 18 | 75 | 22.777778 | 0.755034 | 0.109756 | 0 | 0 | 1 | 0 | 0.143251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc3b500a9fd9cdb01a92e1487dce1a8dc8d06f2d | 3,953 | py | Python | scripts/path_planner_node.py | ajaykrishna1878/omnibase-automation | 09240a87f86dbfc2e0829f6c0a16dac4fe81f4de | [
"MIT"
] | null | null | null | scripts/path_planner_node.py | ajaykrishna1878/omnibase-automation | 09240a87f86dbfc2e0829f6c0a16dac4fe81f4de | [
"MIT"
] | null | null | null | scripts/path_planner_node.py | ajaykrishna1878/omnibase-automation | 09240a87f86dbfc2e0829f6c0a16dac4fe81f4de | [
"MIT"
] | 1 | 2021-05-22T06:43:38.000Z | 2021-05-22T06:43:38.000Z | #!/usr/bin/env python
from matplotlib import pyplot as plt
from shapely.geometry import LineString
from shapely.geometry import Point
from matplotlib.patches import Circle
import random
import numpy as np
import math
import sys
import rospy
treex = [0] # initialising the rrt tree array with start point i... | 30.882813 | 118 | 0.647609 | 566 | 3,953 | 4.462898 | 0.326855 | 0.030879 | 0.015835 | 0.019794 | 0.065717 | 0.049089 | 0.049089 | 0.049089 | 0 | 0 | 0 | 0.025775 | 0.22464 | 3,953 | 127 | 119 | 31.125984 | 0.798369 | 0.299519 | 0 | 0.090909 | 0 | 0 | 0.010879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116883 | 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 |
fc3ec699b44dddacac07161d661199b981d57a9c | 3,586 | py | Python | src/RelativeDepthDataset.py | JasonQSY/YouTube3D | a7368eed26b7275794950fa0defc45a7af32067b | [
"BSD-3-Clause"
] | 102 | 2019-07-04T20:12:48.000Z | 2022-01-14T09:50:57.000Z | src/RelativeDepthDataset.py | JasonQSY/YouTube3D | a7368eed26b7275794950fa0defc45a7af32067b | [
"BSD-3-Clause"
] | 5 | 2019-07-22T00:30:44.000Z | 2020-09-06T04:14:37.000Z | src/RelativeDepthDataset.py | JasonQSY/YouTube3D | a7368eed26b7275794950fa0defc45a7af32067b | [
"BSD-3-Clause"
] | 12 | 2019-07-09T02:36:41.000Z | 2022-02-05T03:08:09.000Z | import numpy as np
import random
from utils import save_obj, load_obj
import torch
from torch.utils import data
import cv2
import os
import h5py
from ReDWebNet import resNet_data_preprocess
#######################################################################
##### ATTENTION:
##### When using this dataset, set the... | 30.649573 | 132 | 0.661461 | 527 | 3,586 | 4.278937 | 0.320683 | 0.03459 | 0.02439 | 0.019956 | 0.103769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023225 | 0.1715 | 3,586 | 116 | 133 | 30.913793 | 0.735779 | 0.168154 | 0 | 0.083333 | 0 | 0 | 0.11366 | 0.045535 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.097222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fc3f1bc2918af33344e7a0aa2c9ca98ec511a9f5 | 4,843 | py | Python | tests/test_middleware.py | random1st/cloudwatch-metrics | 33094115abd595f3af472008e0002498aaddf33b | [
"MIT"
] | 1 | 2021-03-24T20:32:06.000Z | 2021-03-24T20:32:06.000Z | tests/test_middleware.py | random1st/cloudwatch-metrics | 33094115abd595f3af472008e0002498aaddf33b | [
"MIT"
] | null | null | null | tests/test_middleware.py | random1st/cloudwatch-metrics | 33094115abd595f3af472008e0002498aaddf33b | [
"MIT"
] | 2 | 2020-04-30T12:56:00.000Z | 2020-05-18T09:57:06.000Z | import time
from pytest import fixture
class MockHttpRequest:
_encoding = None
_upload_handlers = []
def __init__(self):
self.GET = {}
self.POST = {}
self.COOKIES = {}
self.META = {}
self.FILES = {}
self.path = ''
self.path_info = ''
self.me... | 35.610294 | 113 | 0.672104 | 515 | 4,843 | 6.005825 | 0.180583 | 0.027158 | 0.048497 | 0.055286 | 0.618817 | 0.605561 | 0.605561 | 0.605561 | 0.605561 | 0.605561 | 0 | 0.028384 | 0.243444 | 4,843 | 135 | 114 | 35.874074 | 0.815775 | 0 | 0 | 0.46729 | 0 | 0 | 0.083832 | 0.038199 | 0 | 0 | 0 | 0 | 0.11215 | 1 | 0.102804 | false | 0.009346 | 0.074766 | 0 | 0.345794 | 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 |
fc405b07dbf624ab1ce928202081589029f3815b | 10,653 | py | Python | samples/sqlrestore.py | catalogicsoftware/ecxclient | fa37484bac47bd25f2526905a57999459f995c78 | [
"Apache-2.0"
] | 6 | 2017-02-18T03:22:09.000Z | 2021-04-23T08:24:40.000Z | samples/sqlrestore.py | catalogicsoftware/ecxclient | fa37484bac47bd25f2526905a57999459f995c78 | [
"Apache-2.0"
] | null | null | null | samples/sqlrestore.py | catalogicsoftware/ecxclient | fa37484bac47bd25f2526905a57999459f995c78 | [
"Apache-2.0"
] | null | null | null | #
# Script to update and run an existing SQL restore job
# --restore parameter is always required
# Use the --cancel="True" parameter to cancel an active restore job
# --source, --tinst, and --tdb, parameters are required for restore
# --start, --end, and --backup are optional to determine copy version used for restore... | 47.346667 | 129 | 0.650803 | 1,263 | 10,653 | 5.424386 | 0.17023 | 0.017516 | 0.024084 | 0.029631 | 0.455554 | 0.384032 | 0.340388 | 0.292366 | 0.272223 | 0.225077 | 0 | 0.007549 | 0.179292 | 10,653 | 224 | 130 | 47.558036 | 0.776049 | 0.057073 | 0 | 0.278947 | 0 | 0 | 0.23686 | 0.007679 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010526 | 0.036842 | null | null | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fc41d76f58d62136606fcb5ee8fcd6fcf638b3e7 | 1,606 | py | Python | py/src/ai/h2o/sparkling/H2OConf.py | salliewalecka/sparkling-water | 497306fbc7f4f374fe367f1303289db13be4ec48 | [
"Apache-2.0"
] | null | null | null | py/src/ai/h2o/sparkling/H2OConf.py | salliewalecka/sparkling-water | 497306fbc7f4f374fe367f1303289db13be4ec48 | [
"Apache-2.0"
] | null | null | null | py/src/ai/h2o/sparkling/H2OConf.py | salliewalecka/sparkling-water | 497306fbc7f4f374fe367f1303289db13be4ec48 | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 43.405405 | 111 | 0.737235 | 209 | 1,606 | 5.62201 | 0.5311 | 0.051064 | 0.030638 | 0.061277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0.200498 | 1,606 | 36 | 112 | 44.611111 | 0.902648 | 0.467621 | 0 | 0 | 0 | 0 | 0.159905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc441f47a7b4b8bf2243c918a8d4f37e3ccc6489 | 325 | py | Python | WorkingwithJson.py | T3chn3/Automate | b841c8d865706c12b4f5b1dfaf4c2504c4896f38 | [
"MIT"
] | null | null | null | WorkingwithJson.py | T3chn3/Automate | b841c8d865706c12b4f5b1dfaf4c2504c4896f38 | [
"MIT"
] | null | null | null | WorkingwithJson.py | T3chn3/Automate | b841c8d865706c12b4f5b1dfaf4c2504c4896f38 | [
"MIT"
] | null | null | null | import json
#reading
stringOfJsonData = '{"name": "Bob", "isCat": true, "miceCaught": 0, "felineIQ": null}'
jsonDataAsPythonValue = json.loads(stringOfJsonData)
print(jsonDataAsPythonValue)
#alt print
print("\n")
print("Again with Dumps() \n")
print(json.dumps(jsonDataAsPythonValue))
#writing
#forma... | 20.3125 | 87 | 0.707692 | 33 | 325 | 6.969697 | 0.666667 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003584 | 0.141538 | 325 | 16 | 88 | 20.3125 | 0.820789 | 0.101538 | 0 | 0 | 0 | 0.142857 | 0.321168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc4d31afa3fe492ba99fc1768f5080236bcc0dc9 | 2,227 | py | Python | hdc/core/map/mapper.py | hashmapinc/hdc | 34bbd4bd889629d80614410332a0bb6e1ee5b329 | [
"Apache-2.0"
] | null | null | null | hdc/core/map/mapper.py | hashmapinc/hdc | 34bbd4bd889629d80614410332a0bb6e1ee5b329 | [
"Apache-2.0"
] | null | null | null | hdc/core/map/mapper.py | hashmapinc/hdc | 34bbd4bd889629d80614410332a0bb6e1ee5b329 | [
"Apache-2.0"
] | null | null | null | # Copyright © 2020 Hashmap, 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 or agre... | 44.54 | 112 | 0.597665 | 256 | 2,227 | 4.988281 | 0.503906 | 0.046985 | 0.03289 | 0.025059 | 0.058731 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006523 | 0.31163 | 2,227 | 49 | 113 | 45.44898 | 0.825832 | 0.333184 | 0 | 0 | 0 | 0 | 0.235778 | 0.057574 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.173913 | false | 0 | 0.130435 | 0.043478 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fc5113256ef18fd2c72fa5c4182ccd9df06aa8c1 | 9,133 | py | Python | python/dlxapi/models/field_tag_added_event.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | null | null | null | python/dlxapi/models/field_tag_added_event.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | 1 | 2020-08-20T17:31:43.000Z | 2020-08-20T17:31:43.000Z | python/dlxapi/models/field_tag_added_event.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Decision Lens API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import... | 27.509036 | 204 | 0.594 | 1,095 | 9,133 | 4.736073 | 0.113242 | 0.065947 | 0.166602 | 0.145777 | 0.567682 | 0.457192 | 0.400501 | 0.316815 | 0.224065 | 0.140956 | 0 | 0.015832 | 0.31534 | 9,133 | 331 | 205 | 27.592145 | 0.81353 | 0.341509 | 0 | 0.087838 | 1 | 0 | 0.058044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.027027 | 0 | 0.317568 | 0.013514 | 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 |
fc542c7ebd42f821dcdb175ade71b08c1c0c994d | 1,411 | py | Python | gb.py | bingoohuang/pump | 73cd6c5c90af47d8a1d2036b62c5288a464c7417 | [
"MIT"
] | 6 | 2019-07-02T07:34:18.000Z | 2022-03-17T09:29:07.000Z | gb.py | bingoohuang/pump | 73cd6c5c90af47d8a1d2036b62c5288a464c7417 | [
"MIT"
] | null | null | null | gb.py | bingoohuang/pump | 73cd6c5c90af47d8a1d2036b62c5288a464c7417 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
import os
# which find that program is executable or not
def which(program):
def is_exe(f):
return os.path.isfile(f) and os.access(f, os.X_OK)
fp, _ = os.path.split(program)
if fp:
if is_exe(program):
return program
else:
for ... | 30.673913 | 115 | 0.663359 | 217 | 1,411 | 4.202765 | 0.423963 | 0.046053 | 0.055921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002629 | 0.191354 | 1,411 | 45 | 116 | 31.355556 | 0.79667 | 0.046067 | 0 | 0 | 0 | 0 | 0.226935 | 0.021577 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fc62b7347aee5980c6f45261cda0b1a0f86b4989 | 3,240 | py | Python | Platforms/Web/Processing/Api/Discord/Configs/Regulardisabledchannels/delete.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 2 | 2017-09-14T08:07:55.000Z | 2021-05-18T05:05:05.000Z | Platforms/Web/Processing/Api/Discord/Configs/Regulardisabledchannels/delete.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 111 | 2018-04-15T14:32:14.000Z | 2021-03-28T21:06:29.000Z | Platforms/Web/Processing/Api/Discord/Configs/Regulardisabledchannels/delete.py | The-CJ/Phaazebot | 83a9563d210718071d4e2cdcca3b212c87abaf51 | [
"MIT"
] | 1 | 2018-04-15T13:24:44.000Z | 2018-04-15T13:24:44.000Z | from typing import TYPE_CHECKING, List
if TYPE_CHECKING:
from Platforms.Discord.main_discord import PhaazebotDiscord
from Platforms.Web.main_web import PhaazebotWeb
import json
import discord
from aiohttp.web import Response
from Utils.Classes.discordregulardisabledchannel import DiscordRegularDisabledChannel
from U... | 43.783784 | 149 | 0.821296 | 387 | 3,240 | 6.757106 | 0.273902 | 0.037476 | 0.030593 | 0.027533 | 0.159847 | 0.159847 | 0.129254 | 0.116252 | 0.086424 | 0.086424 | 0 | 0.002377 | 0.091049 | 3,240 | 73 | 150 | 44.383562 | 0.885569 | 0.026543 | 0 | 0 | 0 | 0 | 0.106411 | 0.010739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.28 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc6bdd666f216b51e80f38860ece5e2ed5c3d026 | 2,898 | py | Python | mss/constants.py | IgorZyktin/MediaStorageSystem | df8d260581cb806eb54f320d63aa674c6175c17e | [
"MIT"
] | 2 | 2021-03-06T16:07:30.000Z | 2021-03-17T10:27:25.000Z | mss/constants.py | IgorZyktin/MediaStorageSystem | df8d260581cb806eb54f320d63aa674c6175c17e | [
"MIT"
] | null | null | null | mss/constants.py | IgorZyktin/MediaStorageSystem | df8d260581cb806eb54f320d63aa674c6175c17e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Constant values.
"""
__version__ = '2021.03.27'
# image sizes
RES_TINY = 'TINY'
RES_SMALL = 'SMALL'
RES_MEAN = 'MEAN'
RES_BIG = 'BIG'
RES_HUGE = 'HUGE'
IMAGE_SIZES = {RES_TINY, RES_SMALL, RES_MEAN, RES_BIG, RES_HUGE}
# threshold for sizes
THRESHOLD_TINY = 0.1
THRESHOLD_SMALL = 1.0
THRESHO... | 30.1875 | 83 | 0.346446 | 286 | 2,898 | 5.898601 | 0.43007 | 0.017783 | 0.015412 | 0.020154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02069 | 0.299517 | 2,898 | 95 | 84 | 30.505263 | 0.439409 | 0.046584 | 0 | 0 | 0 | 0 | 0.597455 | 0.101455 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc6d5db08d817d48896e3f3f0f8f1fb5e49f8877 | 758 | py | Python | setup.py | moul/prettytable-extras | 6caf5077261cdb2387d709cce1db6b5c3055d278 | [
"BSD-3-Clause"
] | 3 | 2015-08-28T14:06:44.000Z | 2021-04-24T08:18:49.000Z | setup.py | moul/prettytable-extras | 6caf5077261cdb2387d709cce1db6b5c3055d278 | [
"BSD-3-Clause"
] | 1 | 2019-08-31T19:05:12.000Z | 2019-08-31T19:05:12.000Z | setup.py | moul/prettytable-extras | 6caf5077261cdb2387d709cce1db6b5c3055d278 | [
"BSD-3-Clause"
] | 4 | 2015-03-24T08:30:41.000Z | 2019-05-06T13:08:45.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='prettytable-extras',
version='0.1.0',
packages=find_packages(),
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'License :: OSI Appro... | 27.071429 | 75 | 0.622691 | 84 | 758 | 5.511905 | 0.690476 | 0.146868 | 0.107991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020513 | 0.228232 | 758 | 27 | 76 | 28.074074 | 0.77094 | 0.055409 | 0 | 0.090909 | 0 | 0 | 0.484594 | 0.032213 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc6e666ac6bee0b2629adef0564e5f1385c94246 | 3,078 | py | Python | pype/plugins/maya/load/load_rig.py | tws0002/pype | 80b1aad9990f6c7efabf0430a3da6633054bf4a8 | [
"MIT"
] | null | null | null | pype/plugins/maya/load/load_rig.py | tws0002/pype | 80b1aad9990f6c7efabf0430a3da6633054bf4a8 | [
"MIT"
] | null | null | null | pype/plugins/maya/load/load_rig.py | tws0002/pype | 80b1aad9990f6c7efabf0430a3da6633054bf4a8 | [
"MIT"
] | null | null | null | from maya import cmds
import pype.maya.plugin
from avalon import api, maya
import os
from pypeapp import config
class RigLoader(pype.maya.plugin.ReferenceLoader):
"""Specific loader for rigs
This automatically creates an instance for animators upon load.
"""
families = ["rig"]
representations ... | 32.0625 | 74 | 0.57115 | 334 | 3,078 | 5.215569 | 0.437126 | 0.029851 | 0.015499 | 0.018944 | 0.06946 | 0.06946 | 0.06085 | 0.040184 | 0.040184 | 0 | 0 | 0.004308 | 0.321313 | 3,078 | 95 | 75 | 32.4 | 0.829584 | 0.118908 | 0 | 0 | 0 | 0 | 0.124164 | 0 | 0 | 0 | 0 | 0.010526 | 0.05 | 1 | 0.05 | false | 0 | 0.083333 | 0 | 0.266667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fc7017c39261433a58c6da29cef17203cea14f77 | 483 | py | Python | sklearn_genetic/parameters.py | Raul9595/Sklearn-genetic-opt | b2b729fe70989c14d7c6170bf9b46f390ee1d36b | [
"MIT"
] | 1 | 2021-06-24T08:36:28.000Z | 2021-06-24T08:36:28.000Z | sklearn_genetic/parameters.py | kari-d/Sklearn-genetic-opt | e4a76a5a4c73d456c3a0b426f5703e77c3175e66 | [
"MIT"
] | null | null | null | sklearn_genetic/parameters.py | kari-d/Sklearn-genetic-opt | e4a76a5a4c73d456c3a0b426f5703e77c3175e66 | [
"MIT"
] | null | null | null | import enum
class ExtendedEnum(enum.Enum):
@classmethod
def list(cls):
return list(map(lambda c: c.value, cls))
class Algorithms(ExtendedEnum):
eaSimple = "eaSimple"
eaMuPlusLambda = "eaMuPlusLambda"
eaMuCommaLambda = "eaMuCommaLambda"
class Criteria(ExtendedEnum):
max = "max"
... | 18.576923 | 48 | 0.677019 | 51 | 483 | 6.294118 | 0.45098 | 0.087227 | 0.105919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 483 | 25 | 49 | 19.32 | 0.849206 | 0 | 0 | 0 | 0 | 0 | 0.171843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.058824 | 0.941176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc7237d7f9bbb3451e540a9cd0d066c8a6a529f4 | 190 | py | Python | tests/ttest.py | tlatkowski/tf-feature-selection | 910f03764a675841eaf4578415ae697d78860b81 | [
"MIT"
] | 9 | 2018-04-23T13:43:58.000Z | 2021-09-08T03:32:38.000Z | tests/ttest.py | amineremache/tf-feature-selection | 86a62e28211f854944822b4aefffae582fa060d8 | [
"MIT"
] | 18 | 2017-12-05T10:29:07.000Z | 2021-08-25T14:42:51.000Z | tests/ttest.py | amineremache/tf-feature-selection | 86a62e28211f854944822b4aefffae582fa060d8 | [
"MIT"
] | 4 | 2018-01-05T04:33:26.000Z | 2020-01-20T03:41:27.000Z | import tensorflow as tf
class TtestSelectionTest(tf.test.TestCase):
def testTtestCorrectScore(self):
raise NotImplementedError
if __name__ == '__main__':
tf.test.main()
| 15.833333 | 43 | 0.721053 | 20 | 190 | 6.45 | 0.8 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189474 | 190 | 11 | 44 | 17.272727 | 0.837662 | 0 | 0 | 0 | 0 | 0 | 0.042105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
fc7259aa80a38fe2a2a3b4ae45e873f250dd2fea | 1,537 | py | Python | src/config.py | snakers4/pyarmor | cba32d36ceb8129b54e9fd610f5fcc7fa0a0b0af | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | src/config.py | snakers4/pyarmor | cba32d36ceb8129b54e9fd610f5fcc7fa0a0b0af | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | src/config.py | snakers4/pyarmor | cba32d36ceb8129b54e9fd610f5fcc7fa0a0b0af | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | from sys import platform
version = '6.6.2'
# The corresponding version of pytransform.so
core_version = 'r41.15'
version_info = '''
PyArmor is a command line tool used to obfuscate python scripts, bind
obfuscated scripts to fixed machine or expire obfuscated scripts.
For more information, refer to https://pyarmor.r... | 29.557692 | 86 | 0.739753 | 213 | 1,537 | 5.211268 | 0.549296 | 0.028829 | 0.041441 | 0.045045 | 0.172973 | 0.172973 | 0.172973 | 0.10991 | 0.10991 | 0.10991 | 0 | 0.034944 | 0.124919 | 1,537 | 51 | 87 | 30.137255 | 0.790335 | 0.027977 | 0 | 0.058824 | 0 | 0.058824 | 0.660188 | 0.014075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 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 |
fc73abd2d855b1331a166092f57cfecdff5c015e | 1,480 | py | Python | support/plot_tree.py | greggj2016/hibachi | 141095c75a863b30f715373c84e2ed38d6824bf3 | [
"MIT"
] | 6 | 2018-06-10T08:18:20.000Z | 2021-10-03T18:34:10.000Z | support/plot_tree.py | greggj2016/hibachi | 141095c75a863b30f715373c84e2ed38d6824bf3 | [
"MIT"
] | null | null | null | support/plot_tree.py | greggj2016/hibachi | 141095c75a863b30f715373c84e2ed38d6824bf3 | [
"MIT"
] | 7 | 2018-04-30T07:06:50.000Z | 2021-01-17T18:40:34.000Z | #!/usr/bin/env python
#==============================================================================
#
# FILE: plots.py
#
# USAGE: import plots (from hib.py)
#
# DESCRIPTION: graphing routines.
#
# UPDATES:
# AUTHOR: Pete Schmitt (discovery (iMac)), pschmitt@upenn.edu
# ... | 33.636364 | 79 | 0.541892 | 175 | 1,480 | 4.468571 | 0.548571 | 0.023018 | 0.053708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022843 | 0.201351 | 1,480 | 43 | 80 | 34.418605 | 0.638748 | 0.358784 | 0 | 0 | 0 | 0 | 0.041274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc7e362613f441b454a59870e69494a9864fc927 | 1,996 | py | Python | flappy/QAgent.py | hakosaj/PygameAI | d5aec86b3e1ff3adccdba3691361f3562af0984b | [
"MIT"
] | null | null | null | flappy/QAgent.py | hakosaj/PygameAI | d5aec86b3e1ff3adccdba3691361f3562af0984b | [
"MIT"
] | 7 | 2020-07-30T23:43:30.000Z | 2022-03-12T00:21:01.000Z | flappy/QAgent.py | hakosaj/PygameAI | d5aec86b3e1ff3adccdba3691361f3562af0984b | [
"MIT"
] | null | null | null | import sys
import numpy as np
import os
import random
import time
import pygame
import math
from constants import *
from chromosome import Chromosome
from bird import Bird
from selection import *
from pillar import Pillar
from pygame.locals import *
# ata = np.zeros((580,600,2))
# y: [-280,300]
# x: [600,0]
"""Agent... | 24.641975 | 72 | 0.578657 | 254 | 1,996 | 4.531496 | 0.374016 | 0.038228 | 0.020851 | 0.022589 | 0.119896 | 0.076455 | 0.031277 | 0.031277 | 0 | 0 | 0 | 0.031479 | 0.315631 | 1,996 | 80 | 73 | 24.95 | 0.811127 | 0.346693 | 0 | 0.129032 | 0 | 0 | 0.016716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.419355 | 0 | 0.677419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc7f302c1ea20c6cb861fcea5b55bcfe848fcaef | 2,773 | py | Python | code/fastai_ext/run_kfold.py | jandremarais/TabularLearner | 7905b06a31fc6e0b0adf6a13a0fb445bdfe00c96 | [
"MIT"
] | 14 | 2019-07-15T07:38:36.000Z | 2021-12-08T23:54:15.000Z | code/fastai_ext/run_kfold.py | jandremarais/TabularLearner | 7905b06a31fc6e0b0adf6a13a0fb445bdfe00c96 | [
"MIT"
] | 2 | 2019-05-07T13:56:51.000Z | 2019-08-08T01:27:58.000Z | code/fastai_ext/run_kfold.py | jandremarais/TabularLearner | 7905b06a31fc6e0b0adf6a13a0fb445bdfe00c96 | [
"MIT"
] | 2 | 2021-03-23T11:06:45.000Z | 2021-03-23T11:34:48.000Z | import fastai
from fastai import URLs
from fastai.datasets import untar_data
from fastai.tabular.data import TabularList
from fastai_ext.model import tabular_learner, dae_learner
from fastai.tabular.transform import FillMissing, Normalize, Categorify
from sklearn.model_selection import KFold
import pandas as pd
import ... | 38.513889 | 122 | 0.742517 | 398 | 2,773 | 4.899497 | 0.376884 | 0.051282 | 0.033333 | 0.036923 | 0.114872 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0.011864 | 0.148936 | 2,773 | 71 | 123 | 39.056338 | 0.814407 | 0.036783 | 0 | 0.115385 | 0 | 0 | 0.086336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc80a8d884a3ee70f696246652d770fa8950f7bc | 40,175 | py | Python | sympy/polys/domains/tests/test_domains.py | gutow/sympy | 4ea45a565d4736463362718dce29f55e6687f9e1 | [
"BSD-3-Clause"
] | null | null | null | sympy/polys/domains/tests/test_domains.py | gutow/sympy | 4ea45a565d4736463362718dce29f55e6687f9e1 | [
"BSD-3-Clause"
] | null | null | null | sympy/polys/domains/tests/test_domains.py | gutow/sympy | 4ea45a565d4736463362718dce29f55e6687f9e1 | [
"BSD-3-Clause"
] | null | null | null | """Tests for classes defining properties of ground domains, e.g. ZZ, QQ, ZZ[x] ... """
from sympy import I, S, sqrt, sin, oo, Poly, Float, Integer, Rational, pi
from sympy.abc import x, y, z
from sympy.core.compatibility import HAS_GMPY
from sympy.polys.domains import (ZZ, QQ, RR, CC, FF, GF, EX, ZZ_gmpy,
ZZ_pyt... | 35.026155 | 122 | 0.588475 | 7,451 | 40,175 | 3.069252 | 0.035163 | 0.022651 | 0.103634 | 0.062967 | 0.73803 | 0.666273 | 0.582054 | 0.521142 | 0.444488 | 0.396519 | 0 | 0.046873 | 0.237436 | 40,175 | 1,146 | 123 | 35.056719 | 0.699602 | 0.011948 | 0 | 0.104301 | 0 | 0 | 0.002923 | 0.000605 | 0 | 0 | 0 | 0 | 0.732258 | 1 | 0.045161 | false | 0 | 0.015054 | 0.001075 | 0.062366 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc80afe27e61936fb212a15613eaedd437aaf0f2 | 249 | py | Python | link_flags.py | flupes/aaiq | b862ec46a5b31bafa50fc25ab0af1211b88b2b7d | [
"Apache-2.0"
] | 2 | 2020-10-21T16:09:50.000Z | 2021-04-29T01:24:02.000Z | link_flags.py | flupes/aaqim | b862ec46a5b31bafa50fc25ab0af1211b88b2b7d | [
"Apache-2.0"
] | null | null | null | link_flags.py | flupes/aaqim | b862ec46a5b31bafa50fc25ab0af1211b88b2b7d | [
"Apache-2.0"
] | null | null | null | Import("env")
#
# Add -m32 to the linker (since PlatformIo is not capable directly!)
# (and since we are at it, make everyting statically linked ;-)
#
env.Append(
LINKFLAGS=[
"-m32",
"-static-libgcc",
"-static-libstdc++"
]
)
| 16.6 | 68 | 0.614458 | 31 | 249 | 4.935484 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020942 | 0.232932 | 249 | 14 | 69 | 17.785714 | 0.780105 | 0.514056 | 0 | 0 | 0 | 0 | 0.327586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc8332331c381cb483e4c61f2d5e3f787ed8dae6 | 454 | py | Python | pages/migrations/0002_book_image_src.py | renadalkhlafat/bookshelf | d86518a698bd07a0249d0006836383f39a3f3fa7 | [
"MIT"
] | null | null | null | pages/migrations/0002_book_image_src.py | renadalkhlafat/bookshelf | d86518a698bd07a0249d0006836383f39a3f3fa7 | [
"MIT"
] | null | null | null | pages/migrations/0002_book_image_src.py | renadalkhlafat/bookshelf | d86518a698bd07a0249d0006836383f39a3f3fa7 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-17 16:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='book',
name='image_src',
fiel... | 23.894737 | 132 | 0.618943 | 54 | 454 | 5.148148 | 0.814815 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075802 | 0.244493 | 454 | 18 | 133 | 25.222222 | 0.734694 | 0.099119 | 0 | 0 | 1 | 0.083333 | 0.285012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc85f6a91af1df47e65670f9cd66931f97ef83e5 | 410 | py | Python | odoo-13.0/addons/rating/__manifest__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/rating/__manifest__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | odoo-13.0/addons/rating/__manifest__.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
{
'name': 'Customer Rating',
'version': '1.0',
'category': 'Productivity',
'description': """
This module allows a customer to give rating.
""",
'depends': [
'mail',
],
'data': [
'views/rating_view.xml',
'views/rating_template.xml',
'se... | 20.5 | 45 | 0.531707 | 41 | 410 | 5.243902 | 0.853659 | 0.102326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010067 | 0.273171 | 410 | 19 | 46 | 21.578947 | 0.711409 | 0.05122 | 0 | 0.111111 | 0 | 0 | 0.565891 | 0.191214 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc86a551396add327037b1215889fdd0c8f66be9 | 2,034 | py | Python | _unittest/test_30_Q2D.py | beliaev-maksim/pyaedt | c549de1d0c80f3598afc5475817a332bb6d6df57 | [
"MIT"
] | 12 | 2021-07-01T06:35:12.000Z | 2021-09-22T15:53:07.000Z | _unittest/test_30_Q2D.py | beliaev-maksim/pyaedt | c549de1d0c80f3598afc5475817a332bb6d6df57 | [
"MIT"
] | 111 | 2021-07-01T16:02:36.000Z | 2021-09-29T12:36:44.000Z | _unittest/test_30_Q2D.py | beliaev-maksim/pyaedt | c549de1d0c80f3598afc5475817a332bb6d6df57 | [
"MIT"
] | 5 | 2021-07-09T14:24:59.000Z | 2021-09-07T12:42:03.000Z | import os
# Setup paths for module imports
from _unittest.conftest import scratch_path
import gc
# Import required modules
from pyaedt import Q2d
from pyaedt.generic.filesystem import Scratch
test_project_name = "coax_Q2D"
class TestClass:
def setup_class(self):
# set a scratch directory and the enviro... | 37.666667 | 94 | 0.70354 | 273 | 2,034 | 5.029304 | 0.358974 | 0.120175 | 0.05244 | 0.046613 | 0.388929 | 0.348143 | 0.302986 | 0.302986 | 0.302986 | 0.302986 | 0 | 0.025408 | 0.187316 | 2,034 | 53 | 95 | 38.377358 | 0.805203 | 0.054081 | 0 | 0.210526 | 0 | 0 | 0.051563 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.210526 | false | 0 | 0.131579 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc884d6ef5b79a1d6872bef9bb5ac167ec0998ca | 9,853 | py | Python | newQ/Tesla2.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | newQ/Tesla2.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | newQ/Tesla2.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/next-greater-element-iii/description/'
# Time: O(n)
# Space: O(n)
#
# Description: same as 556. Next Greater Element III
# //xinzyang@tesla.com
# // Next closest bigger number with the same digits
# // You have to create a function that takes a positive integer number and re... | 36.357934 | 108 | 0.552116 | 1,081 | 9,853 | 5.019426 | 0.218316 | 0.043126 | 0.076668 | 0.021931 | 0.199042 | 0.119978 | 0.119978 | 0.098046 | 0.077405 | 0.077405 | 0 | 0.062544 | 0.273013 | 9,853 | 270 | 109 | 36.492593 | 0.69496 | 0.052674 | 0 | 0.214612 | 0 | 0.03653 | 0.992591 | 0.280146 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009132 | 0 | 0.041096 | 0.118721 | 0 | 0 | 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 |
fc89aef21d81f2886ec22d67e3363b5b97a10f28 | 664 | py | Python | Clase3/Letras.py | JoseCordobaEAN/EstructurasDeDatosUE4P | 86a5c426d83d9d9ae86656c3c78324a1c07f608d | [
"MIT"
] | 2 | 2019-08-17T21:15:47.000Z | 2019-09-21T12:15:19.000Z | Clase3/Letras.py | JoseCordobaEAN/EstructurasDeDatosUE4P | 86a5c426d83d9d9ae86656c3c78324a1c07f608d | [
"MIT"
] | null | null | null | Clase3/Letras.py | JoseCordobaEAN/EstructurasDeDatosUE4P | 86a5c426d83d9d9ae86656c3c78324a1c07f608d | [
"MIT"
] | null | null | null | def es_vocal(letra):
"""
Decide si una letra es vocal
>>> es_vocal('A')
True
>>> es_vocal('ae')
False
>>> es_vocal('Z')
False
>>> es_vocal('o')
True
:param letra:
:return:
"""
return len(letra) == 1 and letra in 'aeiouAEIOU'
def contar_vocales(texto):
"""
... | 16.6 | 52 | 0.528614 | 80 | 664 | 4.25 | 0.4625 | 0.144118 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015695 | 0.328313 | 664 | 40 | 53 | 16.6 | 0.746637 | 0.49247 | 0 | 0 | 0 | 0 | 0.044053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 |
fc99c4d5f7dc7dd5cb0a3ce86b930e6d104167df | 823 | py | Python | bluebottle/time_based/migrations/0039_auto_20201130_1313.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/time_based/migrations/0039_auto_20201130_1313.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/time_based/migrations/0039_auto_20201130_1313.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2020-11-30 12:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('time_based', '0038_timebasedactivity_preparation'),
]
operations = [
migra... | 26.548387 | 95 | 0.601458 | 79 | 823 | 6.037975 | 0.582278 | 0.056604 | 0.109015 | 0.125786 | 0.222222 | 0.222222 | 0.222222 | 0 | 0 | 0 | 0 | 0.037543 | 0.287971 | 823 | 30 | 96 | 27.433333 | 0.776451 | 0.08384 | 0 | 0.304348 | 1 | 0 | 0.191744 | 0.045273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc9bb41757ff89ef9793c877b689a4c9f271d902 | 21,859 | py | Python | generate_spectra_pages.py | GASKAP/GASKAP-HI-Absorption-Pipeline | b4a01de81d7d77d153199523a50d5e9bda4fe056 | [
"MIT"
] | null | null | null | generate_spectra_pages.py | GASKAP/GASKAP-HI-Absorption-Pipeline | b4a01de81d7d77d153199523a50d5e9bda4fe056 | [
"MIT"
] | null | null | null | generate_spectra_pages.py | GASKAP/GASKAP-HI-Absorption-Pipeline | b4a01de81d7d77d153199523a50d5e9bda4fe056 | [
"MIT"
] | null | null | null | # GenerateSpectraPages.py
import argparse
import os
import time
from astropy.coordinates import SkyCoord
from astropy.io import ascii, votable
from astropy.io.votable import parse_single_table, from_table, writeto
from astropy.table import Column, Table
import astropy.units as u
import numpy as np
def parseargs():
... | 50.599537 | 250 | 0.640743 | 3,061 | 21,859 | 4.381248 | 0.149298 | 0.028186 | 0.02662 | 0.014167 | 0.531504 | 0.475281 | 0.442025 | 0.42234 | 0.402133 | 0.37089 | 0 | 0.071321 | 0.207832 | 21,859 | 431 | 251 | 50.716937 | 0.703165 | 0.015234 | 0 | 0.336232 | 1 | 0.057971 | 0.308898 | 0.051305 | 0 | 0 | 0 | 0.00232 | 0 | 1 | 0.04058 | false | 0 | 0.026087 | 0 | 0.092754 | 0.06087 | 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 |
fca0c60359dfd751e9e3430ce59bdf3741ee365e | 1,139 | py | Python | scripts/run_cnn_pgu.py | mnonnenm/WeatherBench | 0a0ce19ba7e17981e9fc4fbf37f34113a0ab31be | [
"MIT"
] | 1 | 2021-05-03T13:51:27.000Z | 2021-05-03T13:51:27.000Z | scripts/run_cnn_pgu.py | mnonnenm/WeatherBench | 0a0ce19ba7e17981e9fc4fbf37f34113a0ab31be | [
"MIT"
] | 1 | 2020-03-27T01:08:56.000Z | 2020-03-27T01:08:56.000Z | scripts/run_cnn_pgu.py | mnonnenm/WeatherBench | 0a0ce19ba7e17981e9fc4fbf37f34113a0ab31be | [
"MIT"
] | 2 | 2021-03-21T12:26:27.000Z | 2021-08-12T06:28:31.000Z | #!/usr/bin/env python
import os
def mkdir_p(dir):
'''make a directory (dir) if it doesn't exist'''
if not os.path.exists(dir):
os.mkdir(dir)
job_directory = "%s/jobs" %os.getcwd()
# Make top level directories
mkdir_p(job_directory)
jn = 'weatherbench_cnn_pgpu_test_2D'
job_file = os.path.join(jo... | 32.542857 | 94 | 0.661984 | 175 | 1,139 | 4.217143 | 0.451429 | 0.227642 | 0.176152 | 0.154472 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.148376 | 1,139 | 34 | 95 | 33.5 | 0.750515 | 0.079017 | 0 | 0 | 0 | 0 | 0.425144 | 0.18714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d7837d76ff84ba7311a006331585cd6a28aa1f9 | 3,415 | py | Python | member_variable_sorter/member_variable_sorter.py | CORDEA/android-command-line-tools | fcfe65010f6bd7b9eacc79a084f7f20b0e5ebcdc | [
"Apache-2.0"
] | null | null | null | member_variable_sorter/member_variable_sorter.py | CORDEA/android-command-line-tools | fcfe65010f6bd7b9eacc79a084f7f20b0e5ebcdc | [
"Apache-2.0"
] | null | null | null | member_variable_sorter/member_variable_sorter.py | CORDEA/android-command-line-tools | fcfe65010f6bd7b9eacc79a084f7f20b0e5ebcdc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding:utf-8
#
# Copyright 2015-2016 Yoshihiro Tanaka
# 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 requi... | 28.22314 | 121 | 0.573939 | 453 | 3,415 | 4.309051 | 0.311258 | 0.036885 | 0.040984 | 0.033811 | 0.127049 | 0.03791 | 0.03791 | 0.03791 | 0.03791 | 0.03791 | 0 | 0.015612 | 0.268521 | 3,415 | 120 | 122 | 28.458333 | 0.765813 | 0.194436 | 0 | 0.228916 | 0 | 0.012048 | 0.134164 | 0.052786 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024096 | null | null | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.