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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8bd83ef3348ecb07cbc0077af75809711b547dc | 1,854 | py | Python | shuffles.py | trigunshin/tsm | 49d2de073b3fd44d5b11db7eaae4bb2f73e879e5 | [
"MIT"
] | null | null | null | shuffles.py | trigunshin/tsm | 49d2de073b3fd44d5b11db7eaae4bb2f73e879e5 | [
"MIT"
] | null | null | null | shuffles.py | trigunshin/tsm | 49d2de073b3fd44d5b11db7eaae4bb2f73e879e5 | [
"MIT"
] | null | null | null | class DE:
def __init__(self, reagent_per_craft, reagent_price, name="None"):
self.reagent_per_craft = reagent_per_craft
self.reagent_price = reagent_price
self.name = name
# DE constants
self.dust_per_shard = 20
self.base_dust_per_de = 10
self.shard_percent = .13
self.dust_percent = 1 - self.shard_perc... | 25.39726 | 93 | 0.699569 | 321 | 1,854 | 3.76947 | 0.286604 | 0.089256 | 0.049587 | 0.032231 | 0.382645 | 0.239669 | 0.198347 | 0.198347 | 0.178512 | 0.178512 | 0 | 0.112924 | 0.173679 | 1,854 | 72 | 94 | 25.75 | 0.676893 | 0.130529 | 0 | 0.352941 | 0 | 0 | 0.028678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a8c33681069acaae2033fe869b79a4d0ff978d9b | 352 | py | Python | Data Scientist Career Path/11. Foundations of Machine Learning Supervised Learning/4. Classification/1. KNN/2. distance2.py | myarist/Codecademy | 2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb | [
"MIT"
] | 23 | 2021-06-06T15:35:55.000Z | 2022-03-21T06:53:42.000Z | Data Scientist Career Path/11. Foundations of Machine Learning Supervised Learning/4. Classification/1. KNN/2. distance2.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | null | null | null | Data Scientist Career Path/11. Foundations of Machine Learning Supervised Learning/4. Classification/1. KNN/2. distance2.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | 9 | 2021-06-08T01:32:04.000Z | 2022-03-18T15:38:09.000Z | star_wars = [125, 1977]
raiders = [115, 1981]
mean_girls = [97, 2004]
def distance(movie1, movie2):
length_difference = (movie1[0] - movie2[0]) ** 2
year_difference = (movie1[1] - movie2[1]) ** 2
distance = (length_difference + year_difference) ** 0.5
return distance
print(distance(star_wars, raiders))
print(... | 29.333333 | 57 | 0.704545 | 49 | 352 | 4.877551 | 0.489796 | 0.100418 | 0.142259 | 0.175732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112957 | 0.144886 | 352 | 12 | 58 | 29.333333 | 0.681063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.2 | 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 |
a8c61e5243c6c942064264bca35ca2bc54368fbd | 2,404 | py | Python | tests/som/test_utilities.py | ifsm/apollon | c733591240f3a4d3825d61385bd19262bd76b43b | [
"BSD-3-Clause"
] | null | null | null | tests/som/test_utilities.py | ifsm/apollon | c733591240f3a4d3825d61385bd19262bd76b43b | [
"BSD-3-Clause"
] | 3 | 2021-03-25T05:35:43.000Z | 2021-05-06T04:51:58.000Z | tests/som/test_utilities.py | ifsm/apollon | c733591240f3a4d3825d61385bd19262bd76b43b | [
"BSD-3-Clause"
] | 1 | 2021-05-22T09:50:44.000Z | 2021-05-22T09:50:44.000Z | import unittest
from hypothesis import strategies as hst
from hypothesis import given
import numpy as np
from scipy.spatial import distance
from apollon.som import utilities as asu
from apollon.types import SomDims
dimension = hst.integers(min_value=2, max_value=50)
som_dims = hst.tuples(dimension, dimension, dimens... | 30.43038 | 76 | 0.667221 | 324 | 2,404 | 4.808642 | 0.305556 | 0.035944 | 0.060976 | 0.077022 | 0.289474 | 0.271502 | 0.215661 | 0.124519 | 0.124519 | 0.070603 | 0 | 0.012061 | 0.206739 | 2,404 | 78 | 77 | 30.820513 | 0.804929 | 0 | 0 | 0.21875 | 0 | 0 | 0.007018 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.1875 | false | 0.0625 | 0.21875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a8ca0a4f1ac18cf9ad0bd36810fcc5855a088368 | 1,816 | py | Python | bastion_ssh/plugins/ssh/ssh_transport.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 13 | 2016-06-17T18:29:53.000Z | 2021-08-02T04:46:04.000Z | bastion_ssh/plugins/ssh/ssh_transport.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 1 | 2019-02-21T08:32:01.000Z | 2019-02-28T08:11:11.000Z | bastion_ssh/plugins/ssh/ssh_transport.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 8 | 2016-03-15T09:12:13.000Z | 2020-09-29T09:00:25.000Z | import paramiko
import socket
import time
import logging
from paramiko.ssh_exception import SSHException
import bastion_ssh.errors
LOG = logging.getLogger(__name__)
class SSHTransport(object):
""" This object wraps a shell in yet another shell. When the shell is
switched into "simulate" mode it can just prin... | 39.478261 | 103 | 0.615088 | 189 | 1,816 | 5.746032 | 0.52381 | 0.055249 | 0.055249 | 0.044199 | 0.132597 | 0.066298 | 0 | 0 | 0 | 0 | 0 | 0.003994 | 0.310573 | 1,816 | 45 | 104 | 40.355556 | 0.863419 | 0 | 0 | 0.105263 | 0 | 0 | 0.089767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | 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 |
a8ca6afd58f5582e8baa366aa946f7b849805bf4 | 3,155 | py | Python | python/scripts/create_synology_package.py | olefriis/simplepvr | 8047d0f0de8caafcea89fbc42337273e34ed101c | [
"WTFPL"
] | 5 | 2015-01-27T01:11:36.000Z | 2022-03-22T20:54:55.000Z | python/scripts/create_synology_package.py | olefriis/simplepvr | 8047d0f0de8caafcea89fbc42337273e34ed101c | [
"WTFPL"
] | null | null | null | python/scripts/create_synology_package.py | olefriis/simplepvr | 8047d0f0de8caafcea89fbc42337273e34ed101c | [
"WTFPL"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from shutil import copytree, make_archive
import os
import sys
import shutil
def main(argv=None):
syno_package_dir = "syno_package"
build_dir = os.path.abspath(os.path.join(os.path.curdir, syno_package_dir))
os.mkdir(build_dir)
create_info(build_dir)
cop... | 33.56383 | 130 | 0.69065 | 435 | 3,155 | 4.781609 | 0.296552 | 0.034615 | 0.033654 | 0.03125 | 0.269712 | 0.211538 | 0.129808 | 0.054808 | 0.054808 | 0.054808 | 0 | 0.00193 | 0.178764 | 3,155 | 93 | 131 | 33.924731 | 0.800849 | 0.102377 | 0 | 0.03125 | 0 | 0 | 0.19051 | 0.030453 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.140625 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a8cf88adc482c528469b95d56966e04902fcfa50 | 751 | py | Python | alipay/aop/api/response/ZolozIdentificationUserWebQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/ZolozIdentificationUserWebQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/ZolozIdentificationUserWebQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class ZolozIdentificationUserWebQueryResponse(AlipayResponse):
def __init__(self):
super(ZolozIdentificationUserWebQueryResponse, self).__init__()
self._extern_info = None
... | 28.884615 | 112 | 0.728362 | 79 | 751 | 6.594937 | 0.405063 | 0.172745 | 0.107486 | 0.065259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001634 | 0.185087 | 751 | 25 | 113 | 30.04 | 0.849673 | 0.055925 | 0 | 0 | 0 | 0 | 0.031117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.0625 | 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 |
a8d02145c4c19e91aa8204924595bb957d46b7a0 | 1,063 | py | Python | tests/test_route.py | kr41/TraversalKit | 735f514bad7ad098d3a74a40219ca9425672afc8 | [
"BSD-2-Clause"
] | 4 | 2020-04-16T18:50:47.000Z | 2020-10-08T22:46:24.000Z | tests/test_route.py | kr41/TraversalKit | 735f514bad7ad098d3a74a40219ca9425672afc8 | [
"BSD-2-Clause"
] | null | null | null | tests/test_route.py | kr41/TraversalKit | 735f514bad7ad098d3a74a40219ca9425672afc8 | [
"BSD-2-Clause"
] | null | null | null | import re
from traversalkit.route import Node, Route
def test_node():
node = Node(object, name='foo')
assert str(node) == 'foo'
assert repr(node) == '<Node: foo>'
assert node.type == 'single'
node = Node(object, metaname='foo')
assert str(node) == '{foo}'
assert repr(node) == '<Node: {fo... | 24.72093 | 68 | 0.549389 | 133 | 1,063 | 4.37594 | 0.203008 | 0.123711 | 0.09622 | 0.123711 | 0.558419 | 0.558419 | 0.558419 | 0.505155 | 0.505155 | 0.505155 | 0 | 0.003699 | 0.237065 | 1,063 | 42 | 69 | 25.309524 | 0.713933 | 0 | 0 | 0.09375 | 0 | 0 | 0.131703 | 0 | 0 | 0 | 0 | 0 | 0.65625 | 1 | 0.0625 | false | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8d0300a0b6e0e47c7b71eb05adc79b68a341fe9 | 494 | py | Python | third-party/gtd/gtd/ml/tests/test_vocab.py | timpowellgit/phrasenode | a4dc105a69785f289a4e7998d078d6727686b94d | [
"Apache-2.0"
] | 81 | 2018-02-21T15:53:38.000Z | 2022-03-20T21:25:49.000Z | third-party/gtd/gtd/ml/tests/test_vocab.py | timpowellgit/phrasenode | a4dc105a69785f289a4e7998d078d6727686b94d | [
"Apache-2.0"
] | 14 | 2018-03-09T19:04:43.000Z | 2020-12-06T13:54:40.000Z | third-party/gtd/gtd/ml/tests/test_vocab.py | timpowellgit/phrasenode | a4dc105a69785f289a4e7998d078d6727686b94d | [
"Apache-2.0"
] | 38 | 2018-03-09T19:42:32.000Z | 2022-03-15T15:39:51.000Z | import numpy as np
import pytest
from gtd.ml.vocab import SimpleVocab, SimpleEmbeddings
@pytest.fixture
def vocab():
return SimpleVocab(['a', 'b', 'c'])
@pytest.fixture
def embeds(vocab):
array = np.eye(len(vocab))
return SimpleEmbeddings(array, vocab)
class TestSimpleVocab(object):
def test_save... | 21.478261 | 54 | 0.680162 | 64 | 494 | 5.1875 | 0.546875 | 0.078313 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198381 | 494 | 23 | 55 | 21.478261 | 0.838384 | 0 | 0 | 0.125 | 0 | 0 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a8d600443d9ed3cdab2a6642d0da08cbb669d0e2 | 531 | py | Python | app/apps/api/fields.py | lawi21/escriptorium | 6043b0cb3894bb308a37ed97a26114dcea883834 | [
"MIT"
] | 4 | 2021-09-21T09:15:24.000Z | 2022-02-12T13:36:33.000Z | app/apps/api/fields.py | lawi21/escriptorium | 6043b0cb3894bb308a37ed97a26114dcea883834 | [
"MIT"
] | 1 | 2021-11-30T12:04:11.000Z | 2021-11-30T12:04:11.000Z | app/apps/api/fields.py | stweil/escriptorium | 63a063f2dbecebe9f79aa6376e99030f49a02502 | [
"MIT"
] | 2 | 2021-11-10T09:39:52.000Z | 2022-01-10T08:52:40.000Z | from rest_framework import serializers
class DisplayChoiceField(serializers.ChoiceField):
def to_representation(self, obj):
if obj == '' and self.allow_blank:
return obj
return self._choices[obj]
def to_internal_value(self, data):
# To support inserts with the value
... | 27.947368 | 50 | 0.608286 | 63 | 531 | 4.984127 | 0.555556 | 0.031847 | 0.076433 | 0.10828 | 0.146497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305085 | 531 | 18 | 51 | 29.5 | 0.850949 | 0.062147 | 0 | 0 | 0 | 0 | 0.028226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a8d62dd143cfaa7484d9ba53251e81da63b011ba | 245 | py | Python | config.py | kendallnguyen/Rik-with-Personalization | 25f69336fda718d42d70d0927d2767f53bc74cc9 | [
"BSD-3-Clause"
] | null | null | null | config.py | kendallnguyen/Rik-with-Personalization | 25f69336fda718d42d70d0927d2767f53bc74cc9 | [
"BSD-3-Clause"
] | 1 | 2021-06-02T01:37:14.000Z | 2021-06-02T01:37:14.000Z | config.py | kendallnguyen/Rik-with-Personalization | 25f69336fda718d42d70d0927d2767f53bc74cc9 | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
SECRET_KEY = 'a unique and long key'
TITLE = 'Riki'
HISTORY_SHOW_MAX = 30
PIC_BASE = '/static/content/'
CONTENT_DIR = '///D:\\School\\Riki\\content'
USER_DIR = '///D:\\School\\Riki\\user'
NUMBER_OF_HISTORY = 5
PRIVATE = False
| 22.272727 | 44 | 0.689796 | 38 | 245 | 4.236842 | 0.736842 | 0.049689 | 0.124224 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018779 | 0.130612 | 245 | 10 | 45 | 24.5 | 0.737089 | 0.061224 | 0 | 0 | 0 | 0 | 0.412281 | 0.232456 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
763744ece2a80a9449e68a3f0f4a248f70473636 | 5,884 | py | Python | earth_enterprise/src/update_fusion_version.py | ezeeyahoo/earthenterprise | b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9 | [
"Apache-2.0"
] | 2,661 | 2017-03-20T22:12:50.000Z | 2022-03-30T09:43:19.000Z | earth_enterprise/src/update_fusion_version.py | ezeeyahoo/earthenterprise | b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9 | [
"Apache-2.0"
] | 1,531 | 2017-03-24T17:20:32.000Z | 2022-03-16T18:11:14.000Z | earth_enterprise/src/update_fusion_version.py | ezeeyahoo/earthenterprise | b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9 | [
"Apache-2.0"
] | 990 | 2017-03-24T11:54:28.000Z | 2022-03-22T11:51:47.000Z | #!/usr/bin/env python2.7
#
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 34.409357 | 80 | 0.657206 | 794 | 5,884 | 4.690176 | 0.251889 | 0.045381 | 0.041085 | 0.012084 | 0.155209 | 0.080559 | 0.055854 | 0.055854 | 0.04189 | 0.027927 | 0 | 0.009489 | 0.247791 | 5,884 | 170 | 81 | 34.611765 | 0.831902 | 0.118287 | 0 | 0.229167 | 0 | 0 | 0.141512 | 0.052685 | 0 | 0 | 0 | 0.005882 | 0.03125 | 0 | null | null | 0 | 0.0625 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
76382834b3e6d1bd42ca8dfa0eeea873d8bae293 | 3,750 | py | Python | simple_queue/circular_queue.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | simple_queue/circular_queue.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | simple_queue/circular_queue.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | ###############################################################
# LeetCode Problem Number : 622
# Difficulty Level : Medium
# URL : https://leetcode.com/problems/design-circular-queue/
###############################################################
class CircularQueue:
def __init__(self, size):
"""initializ... | 31.779661 | 100 | 0.531733 | 454 | 3,750 | 4.365639 | 0.257709 | 0.0444 | 0.027245 | 0.026236 | 0.304743 | 0.222503 | 0.204339 | 0.15439 | 0.115035 | 0.115035 | 0 | 0.013595 | 0.333067 | 3,750 | 117 | 101 | 32.051282 | 0.778888 | 0.172 | 0 | 0.254545 | 0 | 0 | 0.017848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163636 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
763907724f8db8c88c4d8c22e98c60a8639357df | 988 | py | Python | Farmacia/apps/compras/forms.py | cluco91/Django_Farmacia | 10d787533bcebac8ba35cf8a7feb10ffb14ca45f | [
"MIT"
] | 2 | 2018-11-06T04:05:20.000Z | 2020-05-28T23:19:23.000Z | Farmacia/apps/compras/forms.py | cluco91/Django_Farmacia | 10d787533bcebac8ba35cf8a7feb10ffb14ca45f | [
"MIT"
] | null | null | null | Farmacia/apps/compras/forms.py | cluco91/Django_Farmacia | 10d787533bcebac8ba35cf8a7feb10ffb14ca45f | [
"MIT"
] | 2 | 2018-11-06T04:12:17.000Z | 2019-11-21T18:34:26.000Z | from .models import * # Change as necessary
from django.forms import ModelForm
from django import forms
class TodoListForm(ModelForm):
class Meta:
model = Cabecera
exclude =('trabajador',)
widgets = {
'codigo': forms.TextInput(attrs={'class': 'form-control'}),
'distribuidor': forms.Select(attr... | 31.870968 | 136 | 0.66498 | 115 | 988 | 5.678261 | 0.382609 | 0.107198 | 0.150077 | 0.225115 | 0.50536 | 0.457887 | 0.189893 | 0.189893 | 0.189893 | 0.189893 | 0 | 0 | 0.149798 | 988 | 30 | 137 | 32.933333 | 0.777381 | 0.019231 | 0 | 0.173913 | 0 | 0 | 0.259566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.434783 | 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 |
763ac263825d961a584dbb5009254e9416f5d98b | 403 | py | Python | office365/sharepoint/sharing/sharingLinkInfo.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 544 | 2016-08-04T17:10:16.000Z | 2022-03-31T07:17:20.000Z | office365/sharepoint/sharing/sharingLinkInfo.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 438 | 2016-10-11T12:24:22.000Z | 2022-03-31T19:30:35.000Z | office365/sharepoint/sharing/sharingLinkInfo.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 202 | 2016-08-22T19:29:40.000Z | 2022-03-30T20:26:15.000Z | from office365.runtime.client_value import ClientValue
class SharingLinkInfo(ClientValue):
def __init__(self):
"""
Specifies the information about the tokenized sharing link.
"""
super(SharingLinkInfo, self).__init__()
self.AllowsAnonymousAccess = None
self.Applic... | 25.1875 | 67 | 0.669975 | 37 | 403 | 7.054054 | 0.675676 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010033 | 0.258065 | 403 | 15 | 68 | 26.866667 | 0.862876 | 0.146402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
763f5b91d4f0241599d4f3383a03ad84396a4d05 | 3,626 | py | Python | ansible/roles/blade.cumulus/library/ssh_user_alias.py | ClashTheBunny/cmdb | e75e22e04c91124cab10bbd3db25cea56bb82190 | [
"0BSD"
] | 111 | 2021-05-25T12:59:21.000Z | 2022-03-31T00:08:19.000Z | ansible/roles/blade.cumulus/library/ssh_user_alias.py | ClashTheBunny/cmdb | e75e22e04c91124cab10bbd3db25cea56bb82190 | [
"0BSD"
] | 2 | 2021-06-20T22:42:57.000Z | 2021-06-22T08:32:19.000Z | ansible/roles/blade.cumulus/library/ssh_user_alias.py | ClashTheBunny/cmdb | e75e22e04c91124cab10bbd3db25cea56bb82190 | [
"0BSD"
] | 22 | 2021-05-25T12:21:00.000Z | 2022-01-09T17:49:03.000Z | #!/usr/bin/python
DOCUMENTATION = """
---
module: ssh_user_alias.py
short_description: Create alias for users in SSH authorized_keys
options:
user:
description:
- base user to make alias for
groups:
description:
- list of groups we want our aliases to be in
"""
import os
import re
from ansible... | 27.059701 | 77 | 0.518753 | 442 | 3,626 | 4.11086 | 0.280543 | 0.036324 | 0.033021 | 0.037424 | 0.149147 | 0.142543 | 0.129884 | 0.037424 | 0.037424 | 0.037424 | 0 | 0.006209 | 0.333701 | 3,626 | 133 | 78 | 27.263158 | 0.745861 | 0.035025 | 0 | 0.188679 | 0 | 0 | 0.14748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009434 | false | 0.075472 | 0.028302 | 0 | 0.037736 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7647c6c98a56f763903f6beba69e6b5eba994dfd | 355 | py | Python | Python/CeV/Exercicios/ex67.py | WerickL/Learning | 5a9a488f0422454e612439b89093d5bc11242e65 | [
"MIT"
] | null | null | null | Python/CeV/Exercicios/ex67.py | WerickL/Learning | 5a9a488f0422454e612439b89093d5bc11242e65 | [
"MIT"
] | null | null | null | Python/CeV/Exercicios/ex67.py | WerickL/Learning | 5a9a488f0422454e612439b89093d5bc11242e65 | [
"MIT"
] | null | null | null | while True:
T = int(input('Digite um número para mostrar a tabuada:'))
if T > 0:
print(f"""{T} X 1 = {T*1}
{T} X 2 = {T*2}
{T} X 3 = {T*3}
{T} X 4 = {T*4}
{T} X 5 = {T*5}
{T} X 6 = {T*6}
{T} X 7 = {T*7}
{T} X 8 = {T*8}
{T} X 9 = {T*9}
{T} X 10 = {T*10}""")
elif T < 0:
break
print('Obrigado p... | 20.882353 | 62 | 0.459155 | 79 | 355 | 2.063291 | 0.43038 | 0.122699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096 | 0.295775 | 355 | 16 | 63 | 22.1875 | 0.556 | 0 | 0 | 0 | 0 | 0 | 0.684507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 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 |
764864d5e5681a3f1cf6a027fbe5d8e55756ce33 | 492 | py | Python | brain/tests/model/test_Position.py | siddharthkundu/raspberry-pi-os-image-builder | ffbb008668340e602722f98227048ed3e5243386 | [
"Apache-2.0"
] | null | null | null | brain/tests/model/test_Position.py | siddharthkundu/raspberry-pi-os-image-builder | ffbb008668340e602722f98227048ed3e5243386 | [
"Apache-2.0"
] | null | null | null | brain/tests/model/test_Position.py | siddharthkundu/raspberry-pi-os-image-builder | ffbb008668340e602722f98227048ed3e5243386 | [
"Apache-2.0"
] | null | null | null | import json
import random
import unittest
from model.position import Position
class PositionTest(unittest.TestCase):
def test_given_a_position_then_it_is_serializable(self):
x = random.randint(1, 100)
y = random.randint(1, 100)
z = random.randint(1, 100)
expected_json = {
... | 22.363636 | 70 | 0.599593 | 61 | 492 | 4.688525 | 0.47541 | 0.136364 | 0.146853 | 0.178322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.292683 | 492 | 21 | 71 | 23.428571 | 0.787356 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.375 | 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 |
764fb8d645c6726471284a10503fa2dd9e03d62c | 742 | py | Python | boundaries/ocd-division/country:ca/csd:3520005/2010/definition.py | imhangoo/represent-canada-data | 0d9cc818b343079f81a00c15438d79c079a10c9b | [
"OML"
] | null | null | null | boundaries/ocd-division/country:ca/csd:3520005/2010/definition.py | imhangoo/represent-canada-data | 0d9cc818b343079f81a00c15438d79c079a10c9b | [
"OML"
] | null | null | null | boundaries/ocd-division/country:ca/csd:3520005/2010/definition.py | imhangoo/represent-canada-data | 0d9cc818b343079f81a00c15438d79c079a10c9b | [
"OML"
] | null | null | null | import re
from datetime import date
import boundaries
boundaries.register('Toronto wards (2010)',
singular='Toronto ward',
domain='Toronto, ON',
last_updated=date(2018, 1, 16),
name_func=boundaries.attr('NAME'),
id_func=lambda f: re.sub(r'\A0', '', f.get('SCODE_NAME')),
authority='City of Toro... | 39.052632 | 143 | 0.718329 | 107 | 742 | 4.88785 | 0.607477 | 0.061185 | 0.042065 | 0.068834 | 0.25239 | 0.25239 | 0.25239 | 0.25239 | 0.25239 | 0.25239 | 0 | 0.069486 | 0.107817 | 742 | 18 | 144 | 41.222222 | 0.720544 | 0 | 0 | 0 | 0 | 0.125 | 0.533693 | 0.04717 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
764febeb69d950f167801757b7888fb245333fb9 | 564 | py | Python | guides/migrations/0016_participant_attending.py | kesara/ietf-guides | 64563b38713116372f6a5cd3c61b28aed8806785 | [
"BSD-3-Clause"
] | null | null | null | guides/migrations/0016_participant_attending.py | kesara/ietf-guides | 64563b38713116372f6a5cd3c61b28aed8806785 | [
"BSD-3-Clause"
] | null | null | null | guides/migrations/0016_participant_attending.py | kesara/ietf-guides | 64563b38713116372f6a5cd3c61b28aed8806785 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-11-08 04:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('guides', '0015_auto_20200220_1619'),
]
operations = [
migrations.AddField(... | 26.857143 | 157 | 0.62234 | 66 | 564 | 5.151515 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.234043 | 564 | 20 | 158 | 28.2 | 0.703704 | 0.12234 | 0 | 0 | 1 | 0 | 0.197154 | 0.046748 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76534b35ed1ea039c0bc403c91ed304557fc17e8 | 1,301 | py | Python | code/fastai_ext/fastai_ext/utils.py | jandremarais/TabularLearner | 7905b06a31fc6e0b0adf6a13a0fb445bdfe00c96 | [
"MIT"
] | 14 | 2019-07-15T07:38:36.000Z | 2021-12-08T23:54:15.000Z | code/fastai_ext/fastai_ext/utils.py | jandremarais/TabularLearner | 7905b06a31fc6e0b0adf6a13a0fb445bdfe00c96 | [
"MIT"
] | 2 | 2019-05-07T13:56:51.000Z | 2019-08-08T01:27:58.000Z | code/fastai_ext/fastai_ext/utils.py | jandremarais/TabularLearner | 7905b06a31fc6e0b0adf6a13a0fb445bdfe00c96 | [
"MIT"
] | 2 | 2021-03-23T11:06:45.000Z | 2021-03-23T11:34:48.000Z | from matplotlib import pyplot as plt
from fastai.callback import Callback
from fastai.callbacks import hook_output
def request_lr(learn, **kwargs):
learn.lr_find(**kwargs)
learn.recorder.plot()#suggestion=False
plt.show()
return float(input('Select LR: '))
def auto_lr(learn, **kwargs):
learn.lr_fi... | 31.731707 | 89 | 0.726364 | 190 | 1,301 | 4.705263 | 0.368421 | 0.060403 | 0.0783 | 0.060403 | 0.241611 | 0.192394 | 0.105145 | 0.105145 | 0.105145 | 0.105145 | 0 | 0.00271 | 0.149116 | 1,301 | 40 | 90 | 32.525 | 0.804878 | 0.012298 | 0 | 0.129032 | 0 | 0 | 0.008567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.096774 | 0 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
76549bdd860e5b0534df4df653bae473256af3d6 | 420 | py | Python | location_register/migrations/0022_auto_20210415_0936.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | location_register/migrations/0022_auto_20210415_0936.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | location_register/migrations/0022_auto_20210415_0936.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2021-04-15 09:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('location_register', '0021_auto_20210330_1650'),
]
operations = [
migrations.AlterModelOptions(
name='country',
options={'ord... | 23.333333 | 107 | 0.621429 | 43 | 420 | 5.906977 | 0.790698 | 0.086614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097484 | 0.242857 | 420 | 17 | 108 | 24.705882 | 0.701258 | 0.107143 | 0 | 0 | 1 | 0 | 0.284182 | 0.061662 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7659d842813eb1369f23a48a5f3fc4179d227968 | 1,587 | py | Python | psp/caget.py | slaclab/psp | e7d7f34b8519b17656c817169366e2c503b973aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | psp/caget.py | slaclab/psp | e7d7f34b8519b17656c817169366e2c503b973aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | psp/caget.py | slaclab/psp | e7d7f34b8519b17656c817169366e2c503b973aa | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-12-13T01:49:46.000Z | 2020-12-13T01:49:46.000Z | #!/usr/bin/env python
import pyca
from Pv import Pv
import sys
import time
from options import Options
def caget(pvname):
pv = Pv(pvname)
pv.connect(1.)
pv.get(False, 1.)
pv.disconnect()
return pv.value
if __name__ == '__main__':
options = Options(['pvnames'], ['connect_timeout','get_timeout'], ['ct... | 26.016393 | 84 | 0.584751 | 219 | 1,587 | 4.141553 | 0.324201 | 0.092613 | 0.039691 | 0.026461 | 0.099228 | 0.057332 | 0.057332 | 0.057332 | 0 | 0 | 0 | 0.017406 | 0.275992 | 1,587 | 60 | 85 | 26.45 | 0.771976 | 0.012602 | 0 | 0.176471 | 0 | 0 | 0.099617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098039 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
765fa39b48b1c34a3661a946579ff3b31afa469a | 4,643 | py | Python | null_model.py | CSB-IG/BioNetworkInference_ModularAnalysis | 59c7139f9ac51a5bf0c3dd5553674518b4aa719d | [
"MIT"
] | null | null | null | null_model.py | CSB-IG/BioNetworkInference_ModularAnalysis | 59c7139f9ac51a5bf0c3dd5553674518b4aa719d | [
"MIT"
] | null | null | null | null_model.py | CSB-IG/BioNetworkInference_ModularAnalysis | 59c7139f9ac51a5bf0c3dd5553674518b4aa719d | [
"MIT"
] | null | null | null | #written by SERGIO ANTONIO ALCALA CORONA
import sys
import itertools
import random
import math
import networkx as nx
def gnp_random_graph(p, diccionario, m, directed=False):
if directed:
G=nx.DiGraph()
else:
G=nx.Graph()
G.add_nodes_from(diccionario)
if p<=0:
return G
if p>=1:
re... | 21.298165 | 142 | 0.542537 | 683 | 4,643 | 3.604685 | 0.183016 | 0.021933 | 0.025589 | 0.031682 | 0.530057 | 0.439886 | 0.403737 | 0.37368 | 0.362307 | 0.3355 | 0 | 0.016459 | 0.188671 | 4,643 | 217 | 143 | 21.396313 | 0.637112 | 0.120181 | 0 | 0.390977 | 0 | 0 | 0.062674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037594 | null | null | 0.030075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
766a8310bb323f5aab7023fa78e5e7fa47fb3626 | 10,010 | py | Python | xmlutil/__init__.py | yangaound/xmlutil | eb174f0c0b8c66f4ad2693fbf802d61db30a2a82 | [
"MIT"
] | null | null | null | xmlutil/__init__.py | yangaound/xmlutil | eb174f0c0b8c66f4ad2693fbf802d61db30a2a82 | [
"MIT"
] | null | null | null | xmlutil/__init__.py | yangaound/xmlutil | eb174f0c0b8c66f4ad2693fbf802d61db30a2a82 | [
"MIT"
] | 1 | 2020-06-12T18:14:32.000Z | 2020-06-12T18:14:32.000Z | # -*- coding: utf-8 -*-
'''
Source:
https://github.com/yangaound/xmlutil
Created on 2016年12月24日
@author: albin
'''
import re
import abc
import itertools
from collections import defaultdict
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
import petl
try:
... | 36.007194 | 131 | 0.641758 | 1,233 | 10,010 | 5.044607 | 0.180049 | 0.033441 | 0.02701 | 0.023151 | 0.307878 | 0.236656 | 0.194212 | 0.159164 | 0.124759 | 0.106431 | 0 | 0.003822 | 0.241958 | 10,010 | 277 | 132 | 36.137184 | 0.815894 | 0.21019 | 0 | 0.203593 | 0 | 0.005988 | 0.021708 | 0.003792 | 0 | 0 | 0 | 0 | 0 | 1 | 0.221557 | false | 0.005988 | 0.077844 | 0.023952 | 0.491018 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
766df5897eeae0683618e3d044206455c9f44e56 | 1,212 | py | Python | explorebg/explore_auth/forms.py | bvoytash/Quiz-Application | 279a029b8e40513642bf002387f813d680a74ed7 | [
"MIT"
] | null | null | null | explorebg/explore_auth/forms.py | bvoytash/Quiz-Application | 279a029b8e40513642bf002387f813d680a74ed7 | [
"MIT"
] | null | null | null | explorebg/explore_auth/forms.py | bvoytash/Quiz-Application | 279a029b8e40513642bf002387f813d680a74ed7 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm, UsernameField
from importlib._common import _
UserModel = get_user_model()
class SignUpForm(UserCreationForm):
class Meta:
model = UserModel
fields =... | 44.888889 | 170 | 0.542904 | 101 | 1,212 | 6.445545 | 0.524752 | 0.046083 | 0.052227 | 0.064516 | 0.337942 | 0.337942 | 0.337942 | 0.337942 | 0.337942 | 0.337942 | 0 | 0.018065 | 0.360561 | 1,212 | 26 | 171 | 46.615385 | 0.821935 | 0 | 0 | 0.190476 | 0 | 0.095238 | 0.247525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.190476 | 0.190476 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
76716ef49f4968a74fcae4088fa1445f70f9c1b3 | 10,951 | py | Python | Trading_Strategies/ML/GA_ESN.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 51 | 2019-02-01T19:43:37.000Z | 2022-03-16T09:07:03.000Z | Trading_Strategies/ML/GA_ESN.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 2 | 2019-02-23T18:54:22.000Z | 2019-11-09T01:30:32.000Z | Trading_Strategies/ML/GA_ESN.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 35 | 2019-02-08T02:00:31.000Z | 2022-03-01T23:17:00.000Z | import pandas as pd
import numpy as np
from Features import *
def fitness(S, T, Close) :
F = pd.Series(0.0, index=Close.index)
if S.count() == 0:
print "No signal to evaluate"
return 1e10
for i in range(len(T)) :
if (i == 0) or (i == len(T)-1): continue
Close_j = Close[T.... | 31.288571 | 143 | 0.527714 | 1,554 | 10,951 | 3.631274 | 0.14157 | 0.009215 | 0.018607 | 0.023392 | 0.535176 | 0.48095 | 0.465355 | 0.412901 | 0.382421 | 0.368244 | 0 | 0.062049 | 0.31714 | 10,951 | 349 | 144 | 31.378224 | 0.692565 | 0.165738 | 0 | 0.292237 | 0 | 0 | 0.026883 | 0.007184 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068493 | null | null | 0.018265 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7676bf82b17069706528df86d631c379ab6af2c1 | 2,047 | py | Python | pyPack/HTML_constantes.py | slozano54/projetDNB | 6a7c1373b5c56e7df0c9af3b6d320343fe4955e2 | [
"FTL",
"Linux-OpenIB",
"CECILL-B"
] | 1 | 2021-03-06T09:53:57.000Z | 2021-03-06T09:53:57.000Z | pyPack/HTML_constantes.py | slozano54/projetDNB | 6a7c1373b5c56e7df0c9af3b6d320343fe4955e2 | [
"FTL",
"Linux-OpenIB",
"CECILL-B"
] | null | null | null | pyPack/HTML_constantes.py | slozano54/projetDNB | 6a7c1373b5c56e7df0c9af3b6d320343fe4955e2 | [
"FTL",
"Linux-OpenIB",
"CECILL-B"
] | null | null | null | #!/usr/bin/python3
#-*- coding: utf8 -*-
# @author : Sébastien LOZANO
"""
Générer les parties communes aux fichiers HTML.
On met les constantes dans des chaînes.
"""
pass
docTypeHead = (
"""
<!doctype html>
<html lang=\"fr\">
<head>
<meta charset=\"UTF-8\">
<meta http-equiv="content-type" content="tex... | 20.887755 | 173 | 0.560332 | 232 | 2,047 | 4.931034 | 0.478448 | 0.034965 | 0.038462 | 0.033217 | 0.23951 | 0.23951 | 0.23951 | 0.23951 | 0.23951 | 0.166084 | 0 | 0.028458 | 0.261847 | 2,047 | 98 | 174 | 20.887755 | 0.728657 | 0.074744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
767c1ef372543d029cb318e54c8d3ee0d14895c1 | 278 | py | Python | apps/consultants/urls.py | kradalby/kavik | 81f4008a14103f57d8ef57802a7e6ad5e8c39124 | [
"MIT"
] | null | null | null | apps/consultants/urls.py | kradalby/kavik | 81f4008a14103f57d8ef57802a7e6ad5e8c39124 | [
"MIT"
] | null | null | null | apps/consultants/urls.py | kradalby/kavik | 81f4008a14103f57d8ef57802a7e6ad5e8c39124 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
urlpatterns = patterns('apps.consultants.views',
url(r'^maillist/$', 'maillist', name='maillist'),
url(r'^vcf/$', 'vcf', name='vcf'),
url(r'^maillist/(?P<team_id>[0-9]{2}|(tl))/$', 'maillist', name='maillist'),
)
| 34.75 | 80 | 0.629496 | 38 | 278 | 4.578947 | 0.605263 | 0.068966 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.115108 | 278 | 7 | 81 | 39.714286 | 0.695122 | 0 | 0 | 0 | 0 | 0 | 0.413669 | 0.215827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
76838209ebca9a99a6f5dfc5efce94c21ef1782c | 8,390 | py | Python | opentelemetry-api/src/opentelemetry/_metrics/instrument.py | ekmixon/opentelemetry-python | 1f85268a6f00de4a771e0aaa8663ca6fbc07c575 | [
"Apache-2.0"
] | 1 | 2022-03-02T10:43:34.000Z | 2022-03-02T10:43:34.000Z | opentelemetry-api/src/opentelemetry/_metrics/instrument.py | ekmixon/opentelemetry-python | 1f85268a6f00de4a771e0aaa8663ca6fbc07c575 | [
"Apache-2.0"
] | null | null | null | opentelemetry-api/src/opentelemetry/_metrics/instrument.py | ekmixon/opentelemetry-python | 1f85268a6f00de4a771e0aaa8663ca6fbc07c575 | [
"Apache-2.0"
] | 1 | 2022-01-17T08:25:14.000Z | 2022-01-17T08:25:14.000Z | # Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 29.857651 | 80 | 0.697735 | 868 | 8,390 | 6.502304 | 0.240783 | 0.047838 | 0.035082 | 0.026577 | 0.34107 | 0.320695 | 0.290043 | 0.276931 | 0.203402 | 0.203402 | 0 | 0.00091 | 0.214541 | 8,390 | 280 | 81 | 29.964286 | 0.855539 | 0.164958 | 0 | 0.381503 | 0 | 0 | 0.017949 | 0 | 0 | 0 | 0 | 0.003571 | 0 | 1 | 0.16763 | false | 0.069364 | 0.034682 | 0.052023 | 0.433526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7689d615b96878a83eeba67b7cb97ee43ce585b9 | 4,000 | py | Python | main/gdalwarp.py | crschmidt/labs-rectifier | eb384cb6948459ec7391eaf4cb7ce6d39b95aa3b | [
"BSD-3-Clause-Clear"
] | 6 | 2015-07-03T01:08:36.000Z | 2019-11-19T23:53:04.000Z | main/gdalwarp.py | alfcrisci/labs-rectifier | 0bb91d20dc00b133e3ec1936e09c974788550315 | [
"BSD-3-Clause-Clear"
] | 1 | 2020-05-13T18:45:18.000Z | 2020-05-13T18:45:18.000Z | main/gdalwarp.py | alfcrisci/labs-rectifier | 0bb91d20dc00b133e3ec1936e09c974788550315 | [
"BSD-3-Clause-Clear"
] | 4 | 2015-08-26T21:35:39.000Z | 2020-04-21T21:37:04.000Z | from ctypes import CDLL, Structure, c_char_p, c_double, c_void_p, c_int, pointer
try:
libgdal = CDLL("libgdal.so")
except OSError:
try:
libgdal = CDLL("libgdal1.so")
except OSError:
libgdal = CDLL("libgdal1.4.0.so.1")
libgdal.CPLGetLastErrorMsg.restype = c_char_p
libgdal.GDALCreateGCPTrans... | 37.037037 | 80 | 0.58325 | 447 | 4,000 | 5.055928 | 0.284116 | 0.027876 | 0.010619 | 0.019469 | 0.418584 | 0.418584 | 0.409735 | 0.409735 | 0.372566 | 0.372566 | 0 | 0.233368 | 0.28225 | 4,000 | 107 | 81 | 37.383178 | 0.553814 | 0.28325 | 0 | 0.169014 | 0 | 0 | 0.022931 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 1 | 0.084507 | false | 0 | 0.028169 | 0 | 0.28169 | 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 |
768aa0a270977c3ae7a4b6b47d157bab4d7890b3 | 566 | py | Python | day1.py | willjrh/Advent-of-code-21 | d3073e985b7c0d6b1fac88f6f5b885eb78c7ca6c | [
"MIT"
] | null | null | null | day1.py | willjrh/Advent-of-code-21 | d3073e985b7c0d6b1fac88f6f5b885eb78c7ca6c | [
"MIT"
] | null | null | null | day1.py | willjrh/Advent-of-code-21 | d3073e985b7c0d6b1fac88f6f5b885eb78c7ca6c | [
"MIT"
] | null | null | null | import numpy as np
def day_1(file: str):
"""Read in day 1 part 1 input and count increasing values"""
with open(file) as f:
data_in = f.read()
# convert data to float
data = [float(i) for i in data_in.split()]
# Part 1
print(sum(np.diff(np.array(data)) > 0))
# Part 2
convolut... | 18.866667 | 64 | 0.577739 | 92 | 566 | 3.402174 | 0.467391 | 0.051118 | 0.038339 | 0.089457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031553 | 0.272085 | 566 | 29 | 65 | 19.517241 | 0.728155 | 0.160777 | 0 | 0 | 0 | 0 | 0.055675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.066667 | 0 | 0.2 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
768c1c01ec9ef538247b67999082cbaa2ba137f8 | 348 | py | Python | examples/python/corepy/typecheck.py | airgiser/ucb | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | 1 | 2022-01-08T14:59:44.000Z | 2022-01-08T14:59:44.000Z | examples/python/corepy/typecheck.py | airgiser/just-for-fun | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | null | null | null | examples/python/corepy/typecheck.py | airgiser/just-for-fun | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | null | null | null | #!/usr/bin/python
def displayNumType(val):
print val, 'is',
if isinstance(val, (int, long, float, complex)):
print 'a number of type:', type(val).__name__
else:
print 'not a number at all!'
displayNumType(23)
displayNumType(999999999999999999999L)
displayNumType(23.3)
displayNumType(-2+3.2... | 23.2 | 53 | 0.689655 | 44 | 348 | 5.363636 | 0.659091 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100694 | 0.172414 | 348 | 14 | 54 | 24.857143 | 0.71875 | 0.045977 | 0 | 0 | 0 | 0 | 0.135952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
768fa9d9d0ddc5ebbd3b77e343c8a977e3a48c54 | 2,313 | py | Python | core/src/zeit/wochenmarkt/sources.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 5 | 2019-05-16T09:51:29.000Z | 2021-05-31T09:30:03.000Z | core/src/zeit/wochenmarkt/sources.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 107 | 2019-05-24T12:19:02.000Z | 2022-03-23T15:05:56.000Z | core/src/zeit/wochenmarkt/sources.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 3 | 2020-08-14T11:01:17.000Z | 2022-01-08T17:32:19.000Z | import zc.sourcefactory.contextual
import zc.sourcefactory.source
import zeit.cms.content.contentsource
import zeit.cms.content.sources
import zeit.wochenmarkt.interfaces
import zope.interface
import zope.schema.interfaces
class RecipeCategoriesSource(
zc.sourcefactory.contextual.BasicContextualSourceFactory)... | 32.125 | 77 | 0.728923 | 217 | 2,313 | 7.686636 | 0.290323 | 0.080935 | 0.104916 | 0.048561 | 0.591127 | 0.558753 | 0.558753 | 0.558753 | 0.558753 | 0.447242 | 0 | 0 | 0.197147 | 2,313 | 71 | 78 | 32.577465 | 0.898223 | 0.077821 | 0 | 0.425532 | 0 | 0 | 0.040075 | 0.030174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170213 | false | 0 | 0.191489 | 0.085106 | 0.744681 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7692d5e61a54da91d6eadd57e1425295e1c0fb12 | 3,407 | py | Python | GUIfiles/ui_mainWindow.py | NicolasJacson/cam2ascii | 4c9e7a777a00e77d974181dac3f18218472aa1b3 | [
"MIT"
] | 1 | 2021-06-03T16:12:28.000Z | 2021-06-03T16:12:28.000Z | GUIfiles/ui_mainWindow.py | NicolasJacson/cam2ascii | 4c9e7a777a00e77d974181dac3f18218472aa1b3 | [
"MIT"
] | null | null | null | GUIfiles/ui_mainWindow.py | NicolasJacson/cam2ascii | 4c9e7a777a00e77d974181dac3f18218472aa1b3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'mainWindowWYIqrE.ui'
##
## Created by: Qt User Interface Compiler version 5.14.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
#########... | 38.715909 | 147 | 0.650132 | 371 | 3,407 | 5.96496 | 0.401617 | 0.081338 | 0.02169 | 0.016268 | 0.089471 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057275 | 0.174934 | 3,407 | 87 | 148 | 39.16092 | 0.729989 | 0.068389 | 0 | 0.144928 | 1 | 0.014493 | 0.189396 | 0.009003 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.043478 | 0 | 0.086957 | 0 | 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 |
7693dbe4802c9115d9a632a4af2c424a6481f788 | 8,558 | py | Python | src/2-initialize.py | abroniewski/DBLP-Research-Paper-Graph-Modeling | 560bc8c869210b6f2c70cdbadfcba40ec73be727 | [
"MIT"
] | null | null | null | src/2-initialize.py | abroniewski/DBLP-Research-Paper-Graph-Modeling | 560bc8c869210b6f2c70cdbadfcba40ec73be727 | [
"MIT"
] | null | null | null | src/2-initialize.py | abroniewski/DBLP-Research-Paper-Graph-Modeling | 560bc8c869210b6f2c70cdbadfcba40ec73be727 | [
"MIT"
] | null | null | null | from utils import Neo4jConnection
import time
def delete_all_existing_nodes():
print(f"Deleting all existing nodes and edges.")
tic = time.perf_counter()
query_delete_all_existing_nodes = '''
MATCH (n) DETACH DELETE n
'''
conn.query(query_delete_all_existing_nodes, db='neo4j')
toc = tim... | 46.765027 | 119 | 0.698645 | 1,243 | 8,558 | 4.647627 | 0.233307 | 0.062316 | 0.036351 | 0.021811 | 0.372685 | 0.274191 | 0.202354 | 0.196988 | 0.155444 | 0.133806 | 0 | 0.005398 | 0.199112 | 8,558 | 183 | 120 | 46.765027 | 0.837467 | 0.077588 | 0 | 0.261438 | 0 | 0.052288 | 0.706537 | 0.091339 | 0 | 0 | 0 | 0.005464 | 0 | 1 | 0.039216 | false | 0 | 0.019608 | 0 | 0.058824 | 0.091503 | 0 | 0 | 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 |
76950df8cec22dacf3d59af5a6c48df59b6d4da6 | 3,126 | py | Python | MHD/FEniCS/StabNS/NSpreconditioner.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2020-10-25T13:30:20.000Z | 2021-08-10T21:27:30.000Z | MHD/FEniCS/StabNS/NSpreconditioner.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | null | null | null | MHD/FEniCS/StabNS/NSpreconditioner.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2019-10-28T16:12:13.000Z | 2020-01-13T13:59:44.000Z | import petsc4py
import sys
petsc4py.init(sys.argv)
from petsc4py import PETSc
import numpy as np
from dolfin import tic, toc
class BaseMyPC(object):
def setup(self, pc):
pass
def reset(self, pc):
pass
def apply(self, pc, x, y):
raise NotImplementedError
def applyT(self, pc, x, y)... | 23.155556 | 97 | 0.548624 | 454 | 3,126 | 3.729075 | 0.196035 | 0.049616 | 0.030715 | 0.037803 | 0.512109 | 0.484938 | 0.418783 | 0.359716 | 0.329002 | 0.294152 | 0 | 0.033775 | 0.299104 | 3,126 | 134 | 98 | 23.328358 | 0.738932 | 0.013756 | 0 | 0.391304 | 0 | 0 | 0.009753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021739 | 0.054348 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
769af5929a88b791fc2b68ba56dbcdd5afc52ba3 | 1,197 | py | Python | storm/base/pd.py | italiangrid/grinder-load-testsuite | fcff4592a2f8d4a3d13774e895d26adc442e72c4 | [
"Apache-2.0"
] | null | null | null | storm/base/pd.py | italiangrid/grinder-load-testsuite | fcff4592a2f8d4a3d13774e895d26adc442e72c4 | [
"Apache-2.0"
] | null | null | null | storm/base/pd.py | italiangrid/grinder-load-testsuite | fcff4592a2f8d4a3d13774e895d26adc442e72c4 | [
"Apache-2.0"
] | null | null | null | from common import TestID, log_surl_call_result
from eu.emi.security.authn.x509.impl import PEMCredential
from exceptions import Exception
from jarray import array
from java.io import FileInputStream
from javax.net.ssl import X509ExtendedKeyManager
from net.grinder.plugin.http import HTTPRequest
from net.grinder.script... | 28.5 | 68 | 0.700919 | 157 | 1,197 | 5.273885 | 0.477707 | 0.048309 | 0.050725 | 0.041063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006383 | 0.214703 | 1,197 | 41 | 69 | 29.195122 | 0.874468 | 0 | 0 | 0 | 0 | 0 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 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 |
769f4ac482307aa48b599f30bea5b7e5ca30fff4 | 996 | py | Python | opyapi/schema/validators/validate_datetime.py | dkraczkowski/opyapi | 93f9ca4a39ec3dc0622e3248b96f2efad8323827 | [
"MIT"
] | 5 | 2019-06-05T19:06:56.000Z | 2020-05-02T07:57:51.000Z | opyapi/schema/validators/validate_datetime.py | dkraczkowski/opyapi | 93f9ca4a39ec3dc0622e3248b96f2efad8323827 | [
"MIT"
] | 12 | 2019-06-05T19:34:09.000Z | 2019-09-08T18:50:48.000Z | opyapi/schema/validators/validate_datetime.py | dkraczkowski/opyapi | 93f9ca4a39ec3dc0622e3248b96f2efad8323827 | [
"MIT"
] | 1 | 2019-06-05T20:03:26.000Z | 2019-06-05T20:03:26.000Z | from datetime import datetime
from typing import Optional
from opyapi.schema.errors import NotWithinMaximumBoundaryError
from opyapi.schema.errors import NotWithinMinimumBoundaryError
from opyapi.schema.errors import ValidationError
from opyapi.schema.formatters import format_datetime
def validate_datetime(
valu... | 33.2 | 92 | 0.733936 | 110 | 996 | 6.527273 | 0.354545 | 0.126741 | 0.089136 | 0.091922 | 0.189415 | 0.072423 | 0 | 0 | 0 | 0 | 0 | 0.004994 | 0.195783 | 996 | 29 | 93 | 34.344828 | 0.891386 | 0 | 0 | 0 | 0 | 0 | 0.220884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.136364 | 0.272727 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
76a01a77d2db1af5bcde3c85a756589c969b8bc9 | 1,301 | py | Python | tests/test_parameterized_interface.py | DamonGeorge/Parameterized | a7a5bc6f05ddd67f34992555fb74c550b65bfb8c | [
"MIT"
] | null | null | null | tests/test_parameterized_interface.py | DamonGeorge/Parameterized | a7a5bc6f05ddd67f34992555fb74c550b65bfb8c | [
"MIT"
] | null | null | null | tests/test_parameterized_interface.py | DamonGeorge/Parameterized | a7a5bc6f05ddd67f34992555fb74c550b65bfb8c | [
"MIT"
] | null | null | null | import json
from enum import Enum
import pytest
from parameterized import ParameterizedInterface
@pytest.fixture
def example_enum():
class TestEnum(Enum):
ONE = 1
TWO = 2
THREE = 3
return TestEnum
class TestParameterizedInterface:
def test_abc(self, example_enum):
clas... | 23.232143 | 75 | 0.592621 | 120 | 1,301 | 6.091667 | 0.358333 | 0.04788 | 0.075239 | 0.065663 | 0.413133 | 0.243502 | 0.175103 | 0.175103 | 0.175103 | 0.175103 | 0 | 0.003429 | 0.32744 | 1,301 | 55 | 76 | 23.654545 | 0.832 | 0.114527 | 0 | 0.351351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0.054054 | 0.108108 | 0 | 0.594595 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
76a6f4519c8a6d369f6e09f19140e6bd6885cdfe | 1,115 | py | Python | fiat/metric.py | chamhoo/Severstal | 29e7cf7083b6e5a6228379177dc83f6f85533e9a | [
"MIT"
] | null | null | null | fiat/metric.py | chamhoo/Severstal | 29e7cf7083b6e5a6228379177dc83f6f85533e9a | [
"MIT"
] | null | null | null | fiat/metric.py | chamhoo/Severstal | 29e7cf7083b6e5a6228379177dc83f6f85533e9a | [
"MIT"
] | null | null | null | """
auther: leechh
metric - large is better
"""
import tensorflow as tf
def dice():
def metric(y_true, y_pred):
smooth = 1e-8
y_true = tf.keras.backend.flatten(y_true)
y_pred = tf.keras.backend.flatten(y_pred)
intersection = tf.reduce_sum(tf.multiply(y_true, y_pred))
union... | 27.875 | 83 | 0.634081 | 163 | 1,115 | 4.110429 | 0.276074 | 0.08209 | 0.071642 | 0.119403 | 0.564179 | 0.408955 | 0.346269 | 0.346269 | 0.21194 | 0.128358 | 0 | 0.009434 | 0.239462 | 1,115 | 39 | 84 | 28.589744 | 0.78066 | 0.076233 | 0 | 0.25 | 0 | 0 | 0.039177 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.208333 | false | 0 | 0.041667 | 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 |
76a70b6292c4fc5aa8ec648e34ca1b486a3ae207 | 838 | py | Python | module/output_block.py | sc0ttms/SE-TFCN | 466a2d641c6ff4184c768c1e7aaf2b8a8158ce51 | [
"BSD-3-Clause"
] | 9 | 2022-01-18T05:30:33.000Z | 2022-03-09T02:25:11.000Z | module/output_block.py | sc0ttms/SE-TFCN | 466a2d641c6ff4184c768c1e7aaf2b8a8158ce51 | [
"BSD-3-Clause"
] | 1 | 2022-01-22T01:52:08.000Z | 2022-01-28T03:01:33.000Z | module/output_block.py | sc0ttms/SE-TFCN | 466a2d641c6ff4184c768c1e7aaf2b8a8158ce51 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import torch
import torch.nn as nn
from torchinfo import summary
class OutputBlock(nn.Module):
def __init__(self, num_channels):
super().__init__()
self.num_channels = num_channels
self.net = nn.Sequential(nn.Conv2d(self.num_channels[0], self.num_channels[1], ker... | 22.648649 | 114 | 0.626492 | 112 | 838 | 4.482143 | 0.473214 | 0.109562 | 0.119522 | 0.075697 | 0.10757 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028213 | 0.238663 | 838 | 36 | 115 | 23.277778 | 0.758621 | 0.128878 | 0 | 0 | 0 | 0 | 0.096819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.157895 | 0 | 0.368421 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
76ae263d013d427847ce34cebfb250c54e2bbbc6 | 10,062 | py | Python | lib/matplotlib/testing/compare.py | stefanv/matplotlib | 2c6c3695ef989ec86b7c43740462ef992685022f | [
"MIT",
"PSF-2.0",
"BSD-3-Clause"
] | 1 | 2015-02-13T19:39:31.000Z | 2015-02-13T19:39:31.000Z | lib/matplotlib/testing/compare.py | stefanv/matplotlib | 2c6c3695ef989ec86b7c43740462ef992685022f | [
"MIT",
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | lib/matplotlib/testing/compare.py | stefanv/matplotlib | 2c6c3695ef989ec86b7c43740462ef992685022f | [
"MIT",
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | #=======================================================================
""" A set of utilities for comparing results.
"""
#=======================================================================
import matplotlib
from matplotlib.testing.noseclasses import ImageComparisonFailure
import math
import operator
import os
i... | 35.55477 | 91 | 0.607235 | 1,197 | 10,062 | 5.039265 | 0.263993 | 0.010942 | 0.013926 | 0.019231 | 0.227454 | 0.198607 | 0.167109 | 0.15882 | 0.154841 | 0.154841 | 0 | 0.007549 | 0.249553 | 10,062 | 282 | 92 | 35.680851 | 0.791286 | 0.12741 | 0 | 0.280423 | 0 | 0 | 0.134501 | 0 | 0 | 0 | 0 | 0.003546 | 0.010582 | 0 | null | null | 0 | 0.068783 | 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 |
76b1202d21812815086f378853afe6fc91b65d67 | 826 | py | Python | caia/circrequests/steps/query_source_url.py | umd-lib/caia | b6fc6b7ceb1987e67d593d2a19d64f16645f6f7b | [
"Apache-2.0"
] | null | null | null | caia/circrequests/steps/query_source_url.py | umd-lib/caia | b6fc6b7ceb1987e67d593d2a19d64f16645f6f7b | [
"Apache-2.0"
] | 1 | 2020-06-16T11:22:58.000Z | 2020-06-16T11:22:58.000Z | caia/circrequests/steps/query_source_url.py | umd-lib/caia | b6fc6b7ceb1987e67d593d2a19d64f16645f6f7b | [
"Apache-2.0"
] | 1 | 2020-05-11T19:13:42.000Z | 2020-05-11T19:13:42.000Z | import logging
from typing import List
from caia.circrequests.circrequests_job_config import CircrequestsJobConfig
from caia.core.http import http_get_request
from caia.core.step import Step, StepResult
logger = logging.getLogger(__name__)
class QuerySourceUrl(Step):
"""
Queries the source url and stores a ... | 29.5 | 75 | 0.708232 | 100 | 826 | 5.44 | 0.46 | 0.082721 | 0.071691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188862 | 826 | 27 | 76 | 30.592593 | 0.81194 | 0.067797 | 0 | 0 | 0 | 0 | 0.148541 | 0.098143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.294118 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
76b16832c9e8bab415326b63ccec78b853cf6a7f | 4,407 | py | Python | cla_public/apps/base/tests/test_healthchecks.py | farrepa/cla_public | cc61c5d1c9a6b8a9b853c37a0214ade59214d2f2 | [
"MIT"
] | null | null | null | cla_public/apps/base/tests/test_healthchecks.py | farrepa/cla_public | cc61c5d1c9a6b8a9b853c37a0214ade59214d2f2 | [
"MIT"
] | null | null | null | cla_public/apps/base/tests/test_healthchecks.py | farrepa/cla_public | cc61c5d1c9a6b8a9b853c37a0214ade59214d2f2 | [
"MIT"
] | null | null | null | import unittest
import mock
import requests
from cla_public import app
from cla_public.apps.base import healthchecks
class DiskSpaceHealthcheckTest(unittest.TestCase):
@mock.patch("os.statvfs")
def test_disk_space_check_reports_on_available_and_total_space(self, stat_mock):
stat_mock.return_value.f_b... | 43.205882 | 115 | 0.712276 | 543 | 4,407 | 5.440147 | 0.176796 | 0.085647 | 0.066012 | 0.057888 | 0.732227 | 0.711916 | 0.688896 | 0.688896 | 0.610697 | 0.567366 | 0 | 0.017842 | 0.173361 | 4,407 | 101 | 116 | 43.633663 | 0.793028 | 0 | 0 | 0.532468 | 0 | 0 | 0.126617 | 0.021557 | 0 | 0 | 0 | 0 | 0.155844 | 1 | 0.142857 | false | 0.038961 | 0.064935 | 0 | 0.272727 | 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 |
76b9865c0f03683500b1f3e42853418e20d435fe | 562 | py | Python | test/tests/stack_limits.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/stack_limits.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/stack_limits.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | # Make sure we can recurse at least 900 times on the three different types
# of stacks that we have:
def recurse(n):
print n
if n > 0:
return recurse(n - 1)
return n
print "Recursing on main thread..."
recurse(900)
print "Recursing in a generator..."
def gen():
yield recurse(900)
print list(g... | 17.030303 | 74 | 0.676157 | 89 | 562 | 4.202247 | 0.516854 | 0.112299 | 0.080214 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046083 | 0.227758 | 562 | 32 | 75 | 17.5625 | 0.815668 | 0.170819 | 0 | 0.090909 | 0 | 0 | 0.168467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
76c0b2872304443946c6054baea35e59a913ed34 | 4,814 | py | Python | Code/sorting_recursive.py | caocmai/cs-2.1-trees-sorting | 3d014e90cdb0a8f0ef08d9e3973ac15a55794746 | [
"MIT"
] | null | null | null | Code/sorting_recursive.py | caocmai/cs-2.1-trees-sorting | 3d014e90cdb0a8f0ef08d9e3973ac15a55794746 | [
"MIT"
] | null | null | null | Code/sorting_recursive.py | caocmai/cs-2.1-trees-sorting | 3d014e90cdb0a8f0ef08d9e3973ac15a55794746 | [
"MIT"
] | null | null | null | #!python
def merge(items1, items2):
"""Merge given lists of items, each assumed to already be in sorted order,
and return a new list containing all items in sorted order.
TODO: Running time: ??? Why and under what conditions?
TODO: Memory usage: ??? Why and under what conditions?"""
merge_list = ... | 48.14 | 209 | 0.684047 | 722 | 4,814 | 4.480609 | 0.275623 | 0.022257 | 0.026275 | 0.018547 | 0.257496 | 0.162597 | 0.16136 | 0.079753 | 0.079753 | 0.079753 | 0 | 0.012669 | 0.245742 | 4,814 | 99 | 210 | 48.626263 | 0.87827 | 0.665351 | 0 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050505 | 0 | 1 | 0.097561 | false | 0.02439 | 0 | 0 | 0.243902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
76c1cdab0ecf43fe99a6d5d2e3ca6c76a993d0a5 | 2,197 | py | Python | ambari-server/src/main/resources/common-services/SQOOP/1.4.4.2.0/package/scripts/setup_atlas_sqoop.py | cas-packone/ambari-chs | 68033fbd4b810b6642853f2ad9128cbbd4e0cb7b | [
"Apache-2.0"
] | 3 | 2019-06-20T11:49:36.000Z | 2020-12-11T10:44:29.000Z | ambari-server/src/main/resources/common-services/SQOOP/1.4.4.2.0/package/scripts/setup_atlas_sqoop.py | cas-packone/ambari-chs | 68033fbd4b810b6642853f2ad9128cbbd4e0cb7b | [
"Apache-2.0"
] | null | null | null | ambari-server/src/main/resources/common-services/SQOOP/1.4.4.2.0/package/scripts/setup_atlas_sqoop.py | cas-packone/ambari-chs | 68033fbd4b810b6642853f2ad9128cbbd4e0cb7b | [
"Apache-2.0"
] | 1 | 2019-03-20T08:36:17.000Z | 2019-03-20T08:36:17.000Z | #!/usr/bin/env python
"""
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");... | 41.45283 | 130 | 0.762403 | 316 | 2,197 | 5.066456 | 0.424051 | 0.049969 | 0.061212 | 0.042473 | 0.102436 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00441 | 0.174329 | 2,197 | 52 | 131 | 42.25 | 0.87817 | 0.009103 | 0 | 0 | 0 | 0 | 0.030453 | 0.024079 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.28 | 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 |
76c83f55a9f5678d2051542be100fe86df575898 | 1,096 | py | Python | examples/e2e/conftest.py | anneschuth/pact-python | 23a512973198fc27cdba8ae5c91db2e774e7dc0b | [
"MIT"
] | null | null | null | examples/e2e/conftest.py | anneschuth/pact-python | 23a512973198fc27cdba8ae5c91db2e774e7dc0b | [
"MIT"
] | null | null | null | examples/e2e/conftest.py | anneschuth/pact-python | 23a512973198fc27cdba8ae5c91db2e774e7dc0b | [
"MIT"
] | null | null | null |
from testcontainers.compose import DockerCompose
import pytest
def pytest_addoption(parser):
parser.addoption(
"--publish-pact", type=str, action="store",
help="Upload generated pact file to pact broker with version"
)
parser.addoption(
"--provider-url", type=str, action="store",... | 27.4 | 71 | 0.634124 | 131 | 1,096 | 5.267176 | 0.564886 | 0.043478 | 0.037681 | 0.052174 | 0.063768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258212 | 1,096 | 39 | 72 | 28.102564 | 0.848708 | 0.157847 | 0 | 0.148148 | 1 | 0 | 0.208288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.185185 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76c9889c1ee5b5dc0364f78ee186e9ab8f8947f4 | 1,305 | py | Python | authors/apps/articles/pagination.py | C3real-kill3r/binary-jungle-backend | 5333138fbce901e75accf5487b10990979afa571 | [
"MIT"
] | null | null | null | authors/apps/articles/pagination.py | C3real-kill3r/binary-jungle-backend | 5333138fbce901e75accf5487b10990979afa571 | [
"MIT"
] | 8 | 2020-02-12T03:04:07.000Z | 2022-03-12T00:07:31.000Z | authors/apps/articles/pagination.py | C3real-kill3r/binary-jungle-backend | 5333138fbce901e75accf5487b10990979afa571 | [
"MIT"
] | null | null | null | from rest_framework.pagination import PageNumberPagination
from rest_framework.response import Response
class StandardResultsSetPagination(PageNumberPagination):
"""
A page number style that supports page numbers as
query params
`example usage`
http://localhost:8000/api/articles/?page=3
http:/... | 33.461538 | 82 | 0.682759 | 156 | 1,305 | 5.532051 | 0.532051 | 0.06489 | 0.039397 | 0.04635 | 0.07416 | 0.07416 | 0 | 0 | 0 | 0 | 0 | 0.017068 | 0.236782 | 1,305 | 38 | 83 | 34.342105 | 0.849398 | 0.321073 | 0 | 0 | 0 | 0 | 0.057647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0.052632 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4f12202e4e3532160ffb2d0191e65abadae620ce | 1,056 | py | Python | src/probabilistic_models/proba_model_test.py | pfreifer/zxcvbn | 22674a65bc6ff56281bdd5415ebdb30bb19811ef | [
"MIT"
] | null | null | null | src/probabilistic_models/proba_model_test.py | pfreifer/zxcvbn | 22674a65bc6ff56281bdd5415ebdb30bb19811ef | [
"MIT"
] | null | null | null | src/probabilistic_models/proba_model_test.py | pfreifer/zxcvbn | 22674a65bc6ff56281bdd5415ebdb30bb19811ef | [
"MIT"
] | null | null | null | import pickle
import probabilistic_models.grammar_utils as gru
import probabilistic_models.random_set as rs
from probabilistic_models import grammars
from probabilistic_models.probabilistic_model import probabilistic_model_guesses
fl = {
"1": "aaaaa123bb,ccc**azerty".split(","),
"2": "123jaaj!,888abc320,320ll... | 25.756098 | 80 | 0.719697 | 141 | 1,056 | 5.085106 | 0.460993 | 0.105997 | 0.069735 | 0.039052 | 0.069735 | 0.069735 | 0.069735 | 0 | 0 | 0 | 0 | 0.034521 | 0.149621 | 1,056 | 40 | 81 | 26.4 | 0.76392 | 0.050189 | 0 | 0 | 0 | 0 | 0.133 | 0.05 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.086957 | 0.217391 | 0.043478 | 0.347826 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4f169d763b6d334345a67b4520a7b08a34f9e2e2 | 1,954 | py | Python | app/api/v0_1/stack.py | andromia/solverstack-crud | fb012df72642bd136f03d415bafa1cc4836fa8af | [
"MIT"
] | null | null | null | app/api/v0_1/stack.py | andromia/solverstack-crud | fb012df72642bd136f03d415bafa1cc4836fa8af | [
"MIT"
] | 2 | 2020-07-02T03:15:19.000Z | 2020-07-13T18:55:01.000Z | app/api/v0_1/stack.py | andromia/solverstack-crud | fb012df72642bd136f03d415bafa1cc4836fa8af | [
"MIT"
] | 1 | 2020-06-29T00:20:03.000Z | 2020-06-29T00:20:03.000Z | from flask import request, jsonify, make_response
from flask_jwt_extended import jwt_required, get_jwt_identity
import logging
from . import bp, errors
from app import db
from app.models import Stack, StackChain
@bp.route("/stack", methods=["GET", "POST"])
@jwt_required
def stack():
if request.method == "GET":... | 27.914286 | 87 | 0.599795 | 238 | 1,954 | 4.823529 | 0.310924 | 0.076655 | 0.160279 | 0.097561 | 0.139373 | 0.06446 | 0.06446 | 0 | 0 | 0 | 0 | 0.007262 | 0.295292 | 1,954 | 69 | 88 | 28.318841 | 0.826434 | 0.033265 | 0 | 0.12766 | 0 | 0 | 0.160657 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.021277 | false | 0 | 0.12766 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
4f16ebba346f2418f1c9d0f9106e53695719c7d9 | 1,119 | py | Python | flask-06-SQL_Alchemy/code/models/item.py | ysabel31/Apprendre-Python | 0ab3ca7bcd90952ba1f788802fda9f2f94dde2d5 | [
"MIT"
] | null | null | null | flask-06-SQL_Alchemy/code/models/item.py | ysabel31/Apprendre-Python | 0ab3ca7bcd90952ba1f788802fda9f2f94dde2d5 | [
"MIT"
] | null | null | null | flask-06-SQL_Alchemy/code/models/item.py | ysabel31/Apprendre-Python | 0ab3ca7bcd90952ba1f788802fda9f2f94dde2d5 | [
"MIT"
] | 2 | 2017-11-15T10:39:35.000Z | 2020-01-14T17:44:43.000Z | from db import db
class ItemModel(db.Model):
__tablename__ = 'items'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80))
price = db.Column(db.Float(precision=2))
store_id = db.Column(db.Integer, db.ForeignKey('stores.id'))
store = db.relationship('StoreModel')
de... | 31.083333 | 83 | 0.616622 | 156 | 1,119 | 4.294872 | 0.461538 | 0.047761 | 0.059701 | 0.035821 | 0.056716 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004969 | 0.280608 | 1,119 | 36 | 84 | 31.083333 | 0.827329 | 0.208222 | 0 | 0.086957 | 0 | 0 | 0.037457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0.086957 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4f1b531c81e3e4a6511834b621184bbf3a8a4f01 | 706 | py | Python | KnnModel.py | gitmax681/hand-gesture-recognition | 258f2947f6eeefb1fe13ae91b033ac222ec63ec3 | [
"MIT"
] | 3 | 2021-08-08T01:28:06.000Z | 2022-03-19T11:17:47.000Z | KnnModel.py | gitmax681/hand-gesture-recognition | 258f2947f6eeefb1fe13ae91b033ac222ec63ec3 | [
"MIT"
] | null | null | null | KnnModel.py | gitmax681/hand-gesture-recognition | 258f2947f6eeefb1fe13ae91b033ac222ec63ec3 | [
"MIT"
] | null | null | null | """
Note: do not tweak this code unless you know what you're doing.'
"""
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from pandas import read_csv
import numpy as np
import json
from init import main
with open('config.json', 'r') as f:
_d = json.load(f)
... | 28.24 | 64 | 0.72238 | 115 | 706 | 4.269565 | 0.530435 | 0.044807 | 0.057026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014827 | 0.140227 | 706 | 24 | 65 | 29.416667 | 0.794069 | 0.090652 | 0 | 0 | 0 | 0 | 0.088328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4f1c2a44ad5fd30977561012e2b747e06b1a5b1c | 1,577 | py | Python | src/04_Programming_Hadoop_with_Spark/FilteredLowestRatedMovieDateFrame.py | MilovanTomasevic/The-Ultimate-Hands-On-Hadoop-Tame-your-Big-Data | 4a88adaa66743c951752354168d7bf7fe8847cbf | [
"MIT"
] | null | null | null | src/04_Programming_Hadoop_with_Spark/FilteredLowestRatedMovieDateFrame.py | MilovanTomasevic/The-Ultimate-Hands-On-Hadoop-Tame-your-Big-Data | 4a88adaa66743c951752354168d7bf7fe8847cbf | [
"MIT"
] | null | null | null | src/04_Programming_Hadoop_with_Spark/FilteredLowestRatedMovieDateFrame.py | MilovanTomasevic/The-Ultimate-Hands-On-Hadoop-Tame-your-Big-Data | 4a88adaa66743c951752354168d7bf7fe8847cbf | [
"MIT"
] | 1 | 2021-04-23T13:16:10.000Z | 2021-04-23T13:16:10.000Z | from pyspark.sql import SparkSession
from pyspark.sql import Row
from pyspark.sql import functions
def loadMovieNames():
movieNames = {}
with open('ml-100k/u.item') as f:
for line in f:
fields = line.split('|')
movieNames[int(fields[0])] = fields[1]
return movieNames
def parseInput(line):
fields = line.sp... | 29.203704 | 78 | 0.72416 | 215 | 1,577 | 5.269767 | 0.511628 | 0.029126 | 0.03707 | 0.052957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.161065 | 1,577 | 53 | 79 | 29.754717 | 0.840514 | 0 | 0 | 0 | 0 | 0 | 0.111727 | 0.034164 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4f2315370c390456fce5c77abcc688962601aed2 | 616 | py | Python | proj04/proj04.py | NathanaelLeclercq/VSA-literate-waddlee | 5e2a8eac5bef85c357ce255425c97303dfea1448 | [
"MIT"
] | null | null | null | proj04/proj04.py | NathanaelLeclercq/VSA-literate-waddlee | 5e2a8eac5bef85c357ce255425c97303dfea1448 | [
"MIT"
] | null | null | null | proj04/proj04.py | NathanaelLeclercq/VSA-literate-waddlee | 5e2a8eac5bef85c357ce255425c97303dfea1448 | [
"MIT"
] | null | null | null | # Name: Nathanael Leclercq
# Date: June 13
"""
proj04
Asks the user for a string and prints out whether or not the string is a palindrome.
"""\
mystring = raw_input("enter the word to see if it is a palindrome or not: ")
wordlist = [mystring]
#print wordlist
stringlist = []
for letter in mystring:
stringlis... | 17.111111 | 84 | 0.702922 | 86 | 616 | 4.976744 | 0.488372 | 0.102804 | 0.091122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01222 | 0.202922 | 616 | 36 | 85 | 17.111111 | 0.85947 | 0.295455 | 0 | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f2be6f82ada5f0f7897f132105a815011f5363d | 1,214 | py | Python | src/main/resources/scripts/plot.classification.py | pbloem/motive | 5423f12c3fca8e72d2e558710da3223dc75ab8ef | [
"MIT"
] | 6 | 2016-09-12T11:57:29.000Z | 2018-09-14T00:32:23.000Z | src/main/resources/scripts/plot.classification.py | pbloem/motive | 5423f12c3fca8e72d2e558710da3223dc75ab8ef | [
"MIT"
] | 2 | 2016-09-12T17:18:40.000Z | 2017-10-18T08:36:38.000Z | src/main/resources/scripts/plot.classification.py | pbloem/motive | 5423f12c3fca8e72d2e558710da3223dc75ab8ef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as p
import numpy as n
import pylab
import scipy.stats as stats
import networkx as nwx
import glob
import builtins
from matplotlib.pyplot import margins
import os.path
import json
from sklearn import svm, cross_validation, datas... | 22.481481 | 97 | 0.679572 | 184 | 1,214 | 4.38587 | 0.478261 | 0.039653 | 0.022305 | 0.037175 | 0.26518 | 0.208178 | 0.208178 | 0.208178 | 0.208178 | 0.208178 | 0 | 0.013766 | 0.162273 | 1,214 | 54 | 98 | 22.481481 | 0.779744 | 0.034596 | 0 | 0.171429 | 0 | 0 | 0.094017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.342857 | 0 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4f2f6abf2c0724bc044b62942aba730d7bc0aa47 | 1,667 | py | Python | observations/r/davis.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/davis.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/davis.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def davis(path):
"""Self-Reports of Height and Weight
The `Davis` data... | 25.257576 | 73 | 0.683863 | 233 | 1,667 | 4.772532 | 0.55794 | 0.028777 | 0.043165 | 0.041367 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007911 | 0.241752 | 1,667 | 65 | 74 | 25.646154 | 0.871835 | 0.503299 | 0 | 0 | 0 | 0 | 0.086675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4f300b4de4ced8b557c8ea06239de5b71d346c78 | 1,570 | py | Python | projects/research/text-processors/text_finders/for_analyse/def_finder.py | zaqwes8811/smart-vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | null | null | null | projects/research/text-processors/text_finders/for_analyse/def_finder.py | zaqwes8811/smart-vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | 11 | 2015-01-25T14:22:52.000Z | 2015-09-08T09:59:38.000Z | projects/research/text-processors/text_finders/for_analyse/def_finder.py | zaqwes8811/vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#-*- coding: utf-8 -*-
import str_finder as sf
import os
'''
file :
'''
defines = ['_2Ublock',
'_3Ublock',
'_3U_polovina_block',
'_Uniplex', # ;при активировании переключение Дупл/полудупл - внешней перемычкой. При деактивации режим Дупл/полудупл выбирается в _duplex
'_duplex', # ... | 27.54386 | 183 | 0.653503 | 210 | 1,570 | 4.780952 | 0.661905 | 0.017928 | 0.045817 | 0.033865 | 0.077689 | 0.077689 | 0 | 0 | 0 | 0 | 0 | 0.049233 | 0.210828 | 1,570 | 56 | 184 | 28.035714 | 0.760291 | 0.519745 | 0 | 0.236842 | 0 | 0 | 0.330816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f36e56ab1f1de92569ec65945c8ea9803c7a2b1 | 3,224 | py | Python | skdd/util.py | rlurye/skdd | 2366d155e78dabed991e4c11f93c399f797ca5e3 | [
"MIT"
] | null | null | null | skdd/util.py | rlurye/skdd | 2366d155e78dabed991e4c11f93c399f797ca5e3 | [
"MIT"
] | null | null | null | skdd/util.py | rlurye/skdd | 2366d155e78dabed991e4c11f93c399f797ca5e3 | [
"MIT"
] | null | null | null | import itertools
from collections import Counter
import math
from skdd.config import logger
# generate all rules for number of columns
def combinations(ncols):
l = list(range(0, ncols))
comb_list = []
for dilimeter in range(0, ncols):
sublist = list(l)
sublist.remove(dilimeter)
co... | 28.280702 | 109 | 0.556452 | 446 | 3,224 | 3.941704 | 0.210762 | 0.075085 | 0.043231 | 0.054608 | 0.156997 | 0.104664 | 0.080774 | 0.080774 | 0.080774 | 0.080774 | 0 | 0.011607 | 0.305211 | 3,224 | 113 | 110 | 28.530973 | 0.773214 | 0.082196 | 0 | 0.152174 | 1 | 0 | 0.067096 | 0.011522 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076087 | false | 0 | 0.043478 | 0 | 0.184783 | 0 | 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 |
4f38c9e5c91fbeb3f3ee0587b71602aa79c98dd1 | 574 | py | Python | test/pydata/test_datadict.py | NS2LPS/pyslave | adc30a4f762f42811587be1f10b08f1d2865098e | [
"MIT"
] | 1 | 2020-10-01T15:12:12.000Z | 2020-10-01T15:12:12.000Z | test/pydata/test_datadict.py | NS2LPS/pyslave | adc30a4f762f42811587be1f10b08f1d2865098e | [
"MIT"
] | null | null | null | test/pydata/test_datadict.py | NS2LPS/pyslave | adc30a4f762f42811587be1f10b08f1d2865098e | [
"MIT"
] | null | null | null | from pydata import Data, h5todata
import numpy as np
import os
import h5py
def test_Data(tmpdir):
o = Data(x=np.ones(3), y=np.ones(3), a=5, b='hh')
assert o.b=='hh'
assert o['a']==5
o.append(np.ones(5),np.ones(5))
o.save(os.path.join(tmpdir, 'test.txt'))
o.save(os.path.join(tmpdir, 'test.h5'))
... | 24.956522 | 54 | 0.599303 | 112 | 574 | 3.053571 | 0.321429 | 0.105263 | 0.081871 | 0.187135 | 0.482456 | 0.482456 | 0.418129 | 0.345029 | 0.187135 | 0.187135 | 0 | 0.050955 | 0.179443 | 574 | 22 | 55 | 26.090909 | 0.675159 | 0 | 0 | 0.222222 | 0 | 0 | 0.078534 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 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 |
4f45b0951d89600d47832030f4c27f08551315a5 | 420 | py | Python | test/test_fundmental.py | KunxiongWang/simonsc | 48969ff81cc7c256d3bd51ce1446d1fb4ad5825b | [
"Apache-2.0"
] | 2 | 2020-12-09T01:55:42.000Z | 2021-06-30T18:28:25.000Z | test/test_fundmental.py | KunxiongWang/simonsc | 48969ff81cc7c256d3bd51ce1446d1fb4ad5825b | [
"Apache-2.0"
] | 1 | 2020-12-31T06:09:56.000Z | 2020-12-31T06:09:56.000Z | test/test_fundmental.py | KunxiongWang/simonsc | 48969ff81cc7c256d3bd51ce1446d1fb4ad5825b | [
"Apache-2.0"
] | 10 | 2020-10-16T07:36:04.000Z | 2021-01-25T08:57:47.000Z | from simonsc.object.csmar_table import csmar_tables, csmar_class_dict
from simonsc import auth
from simonsc.utils import query
from simonsc.api import get_table_data
if __name__ == '__main__':
auth("quantresearch", "quantresearch")
for table in csmar_class_dict:
data_query = query(csmar_class_dict[ta... | 30 | 69 | 0.757143 | 60 | 420 | 4.883333 | 0.4 | 0.150171 | 0.143345 | 0.109215 | 0.143345 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005698 | 0.164286 | 420 | 13 | 70 | 32.307692 | 0.82906 | 0 | 0 | 0 | 0 | 0 | 0.080952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4f46476c7df9507283998986fb5da344c57ae274 | 597 | py | Python | mokapay/config/desktop.py | harpiya/mokapay | 3419af8f6117c23bf6beaf7762e688eb7c23c106 | [
"MIT"
] | null | null | null | mokapay/config/desktop.py | harpiya/mokapay | 3419af8f6117c23bf6beaf7762e688eb7c23c106 | [
"MIT"
] | null | null | null | mokapay/config/desktop.py | harpiya/mokapay | 3419af8f6117c23bf6beaf7762e688eb7c23c106 | [
"MIT"
] | null | null | null | # @Author: Saadettin Yasir AKEL <developer>
# @Date: 2019-01-21T13:42:26+03:00
# @Email: yasir@harpiya.com
# @Project: Harpiya Kurumsal Yönetim Sistemi
# @Filename: desktop.py
# @Last modified by: developer
# @Last modified time: 2019-01-21T13:54:28+03:00
# @License: MIT License. See license.txt
# @Copyright: Harp... | 24.875 | 48 | 0.691792 | 77 | 597 | 5.246753 | 0.766234 | 0.029703 | 0.054455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072144 | 0.164154 | 597 | 23 | 49 | 25.956522 | 0.737475 | 0.547739 | 0 | 0 | 0 | 0 | 0.361538 | 0.084615 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.166667 | 0.083333 | 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 |
4f469fd8f1200cb2c9ffaacc044c00d5bff08dee | 85 | py | Python | wthpython/spacial_nums/spacial_num.py | Nobodylesszb/python_study | 56c419df4c5deffa3d14c2ffb03c6a39a7d945be | [
"MIT"
] | null | null | null | wthpython/spacial_nums/spacial_num.py | Nobodylesszb/python_study | 56c419df4c5deffa3d14c2ffb03c6a39a7d945be | [
"MIT"
] | null | null | null | wthpython/spacial_nums/spacial_num.py | Nobodylesszb/python_study | 56c419df4c5deffa3d14c2ffb03c6a39a7d945be | [
"MIT"
] | null | null | null | a = 256
b = 256
print(a is b)
"""
output:True
"""
c = 257
d = 257
print(id(c),id(d)) | 8.5 | 18 | 0.541176 | 19 | 85 | 2.421053 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.223529 | 85 | 10 | 18 | 8.5 | 0.515152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
4f4b6d3bfd73229b24d9359f25ffd3293a390847 | 8,111 | py | Python | tests/classtime/brain/scheduling/test_schedule.py | rosshamish/classtime-implementation | 16e72f0c066b75077dc05cbba290d459348e55c9 | [
"MIT"
] | 1 | 2017-03-10T21:07:10.000Z | 2017-03-10T21:07:10.000Z | tests/classtime/brain/scheduling/test_schedule.py | rosshamish/classtime-implementation | 16e72f0c066b75077dc05cbba290d459348e55c9 | [
"MIT"
] | null | null | null | tests/classtime/brain/scheduling/test_schedule.py | rosshamish/classtime-implementation | 16e72f0c066b75077dc05cbba290d459348e55c9 | [
"MIT"
] | null | null | null |
import unittest
from classtime.brain.scheduling import Schedule
class TestSchedule(unittest.TestCase): #pylint: disable=R0904
@classmethod
def setup_class(cls):
pass
@classmethod
def teardown_class(cls):
pass
def test_section_add(self):
def assert_section_add(section, nu... | 30.264925 | 101 | 0.378991 | 643 | 8,111 | 4.660964 | 0.197512 | 0.058725 | 0.065065 | 0.065065 | 0.584251 | 0.55689 | 0.512513 | 0.487154 | 0.479813 | 0.451118 | 0 | 0.051565 | 0.519418 | 8,111 | 267 | 102 | 30.378277 | 0.717291 | 0.060412 | 0 | 0.515695 | 0 | 0 | 0.137382 | 0 | 0 | 0 | 0 | 0 | 0.06278 | 1 | 0.053812 | false | 0.008969 | 0.008969 | 0 | 0.071749 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f53a4a3ac67949d536f10692f60a38cb3af53fb | 392 | py | Python | home/migrations/0003_site_image.py | txcary/startpage | d9cf808383ac18c4f589860c87cf6ec695ef49f8 | [
"MIT"
] | null | null | null | home/migrations/0003_site_image.py | txcary/startpage | d9cf808383ac18c4f589860c87cf6ec695ef49f8 | [
"MIT"
] | null | null | null | home/migrations/0003_site_image.py | txcary/startpage | d9cf808383ac18c4f589860c87cf6ec695ef49f8 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2018-11-12 14:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0002_auto_20181112_1334'),
]
operations = [
migrations.AddField(
model_name='site',
name='image',
... | 20.631579 | 64 | 0.591837 | 43 | 392 | 5.27907 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.285714 | 392 | 18 | 65 | 21.777778 | 0.685714 | 0.114796 | 0 | 0 | 1 | 0 | 0.104348 | 0.066667 | 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 |
4f5989c441beb88d8e02158c335e3012837f9ef8 | 1,636 | py | Python | src/hive_udf/hive_udf_example.py | zpz/hive-udf | 2caf3bf1ac2c924a20c6400d8c9640c2e9242a75 | [
"MIT"
] | null | null | null | src/hive_udf/hive_udf_example.py | zpz/hive-udf | 2caf3bf1ac2c924a20c6400d8c9640c2e9242a75 | [
"MIT"
] | null | null | null | src/hive_udf/hive_udf_example.py | zpz/hive-udf | 2caf3bf1ac2c924a20c6400d8c9640c2e9242a75 | [
"MIT"
] | null | null | null | '''
This is an example UDF for Hive, to be processed by `make_udf` and used in tests.
UDFs should follow this example. The main points include:
1. The code in this module is written against the Python version that is
available on the Hive cluster.
2. Because this module runs in the environment on the server (wor... | 32.078431 | 81 | 0.716993 | 271 | 1,636 | 4.236162 | 0.450185 | 0.043554 | 0.020906 | 0.033101 | 0.095819 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.211491 | 1,636 | 50 | 82 | 32.72 | 0.885271 | 0.800734 | 0 | 0 | 0 | 0 | 0.069182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f5c679e45731495801f7cdbb86f7611e80be176 | 302 | py | Python | karabo_bridge/tests/test_server.py | European-XFEL/karabo-bridge-py | c4b2847b837ae7156640cb8f787fcf96ac7f632e | [
"BSD-3-Clause"
] | 6 | 2018-01-23T15:20:43.000Z | 2022-02-28T13:20:50.000Z | karabo_bridge/tests/test_server.py | European-XFEL/karabo-bridge | a56f2bb57eecd49ebcdc9077234df8e76e725a6f | [
"BSD-3-Clause"
] | 43 | 2018-01-24T16:12:49.000Z | 2021-05-27T14:56:42.000Z | karabo_bridge/tests/test_server.py | European-XFEL/karabo-bridge | a56f2bb57eecd49ebcdc9077234df8e76e725a6f | [
"BSD-3-Clause"
] | 4 | 2018-03-04T10:09:43.000Z | 2018-05-03T14:49:27.000Z | from karabo_bridge import Client
from .utils import compare_nested_dict
def test_req_rep(server, data):
for _ in range(3):
server.feed(data)
with Client(server.endpoint) as client:
for _ in range(3):
d, m = client.next()
compare_nested_dict(data, d)
| 21.571429 | 43 | 0.642384 | 43 | 302 | 4.302326 | 0.604651 | 0.140541 | 0.183784 | 0.118919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.271523 | 302 | 13 | 44 | 23.230769 | 0.831818 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f6014656b4f73829d83085af0febe9e75fc6783 | 2,451 | py | Python | var/spack/repos/builtin/packages/ispc/package.py | tomdele/spack | 06d0a7ea03c6b856a75bb9e8a040d15d6da3b81c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 9 | 2018-04-18T07:51:40.000Z | 2021-09-10T03:56:57.000Z | var/spack/repos/builtin/packages/ispc/package.py | tomdele/spack | 06d0a7ea03c6b856a75bb9e8a040d15d6da3b81c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 907 | 2018-04-18T11:17:57.000Z | 2022-03-31T13:20:25.000Z | var/spack/repos/builtin/packages/ispc/package.py | tomdele/spack | 06d0a7ea03c6b856a75bb9e8a040d15d6da3b81c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 29 | 2018-11-05T16:14:23.000Z | 2022-02-03T16:07:09.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
import platform
from spack import *
class Ispc(Package):
"""ispc is a compiler for a variant of the C pro... | 45.388889 | 102 | 0.667483 | 240 | 2,451 | 6.8 | 0.470833 | 0.04902 | 0.025735 | 0.033088 | 0.088235 | 0.050245 | 0.050245 | 0.050245 | 0 | 0 | 0 | 0.252981 | 0.212974 | 2,451 | 53 | 103 | 46.245283 | 0.593053 | 0.145655 | 0 | 0.081081 | 0 | 0.054054 | 0.452794 | 0.308285 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.081081 | 0 | 0.297297 | 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 |
4f63f8092cc139bb5b3e97299152f38b868f4d33 | 4,718 | py | Python | run.py | davidkiama/Passowrd-Locker | 791b9a64589810be143ecfe5dd82f2f6153e3989 | [
"Unlicense"
] | null | null | null | run.py | davidkiama/Passowrd-Locker | 791b9a64589810be143ecfe5dd82f2f6153e3989 | [
"Unlicense"
] | null | null | null | run.py | davidkiama/Passowrd-Locker | 791b9a64589810be143ecfe5dd82f2f6153e3989 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import random
from user import User
from credentials import Credentials
def create_user(username, password):
'''
Function to create a new user
'''
new_user = User(username, password)
return new_user
def check_password(password):
"""
Function to check if the passw... | 26.96 | 76 | 0.581602 | 491 | 4,718 | 5.458248 | 0.238289 | 0.020149 | 0.033582 | 0.035821 | 0.240672 | 0.204104 | 0.153358 | 0.135075 | 0.103731 | 0.103731 | 0 | 0.003729 | 0.317931 | 4,718 | 174 | 77 | 27.114943 | 0.829086 | 0.096863 | 0 | 0.304762 | 0 | 0 | 0.218978 | 0.017762 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.342857 | 0.028571 | 0 | 0.190476 | 0.27619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4f6411e2f11e27b97d17a3ec3f1c74a2f32e55e0 | 9,695 | py | Python | es.py | elliotxx/es-handle | 58ad3d385a74517e8c290b5e306603177de16d7e | [
"MIT"
] | 6 | 2017-08-31T13:41:53.000Z | 2018-05-24T09:47:49.000Z | es.py | elliotxx/es-handle | 58ad3d385a74517e8c290b5e306603177de16d7e | [
"MIT"
] | null | null | null | es.py | elliotxx/es-handle | 58ad3d385a74517e8c290b5e306603177de16d7e | [
"MIT"
] | 1 | 2017-10-19T02:17:22.000Z | 2017-10-19T02:17:22.000Z | #coding=utf8
'''
使用 python client 对 ElasticSearch 进行常用的增删改查操作
'''
from elasticsearch import Elasticsearch
import sys
import json
argname_list = ['cmd','addr','op','index','type','id']
default_host = '127.0.0.1'
default_port = '9200'
# 参数数量可能的范围 [Argument_Num_Min_Limit,Argument_Num_Max_Limit]
Argument_Num_Min_Limit = ... | 26.345109 | 121 | 0.525013 | 1,168 | 9,695 | 4.261986 | 0.22089 | 0.019285 | 0.028124 | 0.031338 | 0.327039 | 0.264564 | 0.209522 | 0.193853 | 0.164122 | 0.158297 | 0 | 0.007019 | 0.309335 | 9,695 | 367 | 122 | 26.416894 | 0.73641 | 0.061372 | 0 | 0.324873 | 0 | 0.035533 | 0.134365 | 0.009347 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015228 | null | null | 0.152284 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4f678caf11728353d7b017073daceb6a979a802b | 305 | py | Python | BAIT2123 Internet Of Things/Practical/Practical 7/test09.py | loozixuan/SoftwareSystemsDevelopment-Y2S1 | 98c74d191ad5655277b28849d0f63cd0400cee25 | [
"MIT"
] | 3 | 2021-12-22T11:23:45.000Z | 2022-01-06T04:31:08.000Z | BAIT2123 Internet Of Things/Practical/Practical 7/test09.py | loozixuan/SoftwareSystemsDevelopment-Y2S1 | 98c74d191ad5655277b28849d0f63cd0400cee25 | [
"MIT"
] | null | null | null | BAIT2123 Internet Of Things/Practical/Practical 7/test09.py | loozixuan/SoftwareSystemsDevelopment-Y2S1 | 98c74d191ad5655277b28849d0f63cd0400cee25 | [
"MIT"
] | null | null | null | from time import *
from grovepi import *
from paho.mqtt import publish
MQTT_BROKER = "192.168.56.1"
#MQTT_BROKER = "broker.emqx.io" #using public mqtt broker to act as publisher
MQTT_TOPIC = "HOME/KITCHEN"
data = input("Message Payload: ")
publish.single(MQTT_TOPIC, data, hostname=MQTT_BROKER) | 30.5 | 78 | 0.740984 | 46 | 305 | 4.804348 | 0.630435 | 0.180995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.154098 | 305 | 10 | 79 | 30.5 | 0.821705 | 0.245902 | 0 | 0 | 0 | 0 | 0.186364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4f787b310271eff8ff616e2e5f1124235eca3f16 | 1,063 | py | Python | src/project/ecommerce/models.py | Kaushal1011/django-ecommerce-graphql | 42f081189dd0465ac909f630b4638a5abd46417d | [
"MIT"
] | 7 | 2020-07-03T14:06:00.000Z | 2021-09-12T03:26:38.000Z | src/project/ecommerce/models.py | Kaushal1011/django-ecommerce-graphql | 42f081189dd0465ac909f630b4638a5abd46417d | [
"MIT"
] | 16 | 2020-07-19T12:31:26.000Z | 2021-06-15T05:47:11.000Z | src/project/ecommerce/models.py | Kaushal1011/django-ecommerce-graphql | 42f081189dd0465ac909f630b4638a5abd46417d | [
"MIT"
] | 6 | 2020-07-21T16:12:07.000Z | 2020-11-13T16:20:47.000Z | from django.db import models
from django.conf import settings
class Product(models.Model):
product_id = models.AutoField(primary_key=True)
product_name = models.CharField(max_length=100)
product_category = models.TextField()
product_price = models.FloatField()
product_discount_price = models.Float... | 35.433333 | 83 | 0.776105 | 135 | 1,063 | 5.911111 | 0.385185 | 0.055138 | 0.090226 | 0.120301 | 0.278195 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012931 | 0.126999 | 1,063 | 29 | 84 | 36.655172 | 0.846983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4f8cb06cdc995200e5f9ec6deb1f0c89e227c332 | 1,586 | py | Python | app/app.py | jhollowe/groceri.es | 6693ad1af38c925fe8180717421c9c5298cd1188 | [
"MIT"
] | null | null | null | app/app.py | jhollowe/groceri.es | 6693ad1af38c925fe8180717421c9c5298cd1188 | [
"MIT"
] | null | null | null | app/app.py | jhollowe/groceri.es | 6693ad1af38c925fe8180717421c9c5298cd1188 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from flask_babel import Babel, format_date
from config import Config
from slugify import slugify
import pycountry
app = Flask(__name__)
app.config.from_object(Config())
db = SQLAlchem... | 25.580645 | 78 | 0.735813 | 226 | 1,586 | 5.026549 | 0.367257 | 0.039613 | 0.044894 | 0.033451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002266 | 0.165195 | 1,586 | 62 | 79 | 25.580645 | 0.85574 | 0.172131 | 0 | 0 | 0 | 0 | 0.04238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.289474 | 0 | 0.605263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4f8e5b718a64351286c098419e412067fd72661c | 290 | py | Python | Lista3_11.py | AlessandroGoncalve/Lista3_Python | 68f18d0d0243b19e596df1309c502ae72fbaca37 | [
"MIT"
] | 12 | 2019-09-13T22:01:05.000Z | 2020-09-20T23:18:41.000Z | Lista3_11.py | AlessandroGoncalve/Lista3_Python | 68f18d0d0243b19e596df1309c502ae72fbaca37 | [
"MIT"
] | 1 | 2020-04-04T03:36:44.000Z | 2020-10-21T20:57:38.000Z | Lista3_11.py | AlessandroGoncalve/Lista3_Python | 68f18d0d0243b19e596df1309c502ae72fbaca37 | [
"MIT"
] | 12 | 2019-09-10T18:48:25.000Z | 2020-10-24T18:35:13.000Z | #Altere o programa anterior para mostrar no final a soma dos números.
n1 = int(input("Digite um número: "))
n2 = int(input("Digite outro número: "))
for i in range(n1 + 1, n2):
print(i)
for i in range(n2 + 1, n1):
print(i)
print("Soma dos números: ", i + i)
| 22.307692 | 70 | 0.593103 | 48 | 290 | 3.583333 | 0.541667 | 0.081395 | 0.162791 | 0.127907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037915 | 0.272414 | 290 | 12 | 71 | 24.166667 | 0.777251 | 0.234483 | 0 | 0.285714 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4f953b6412bee1483bde47b3fe491633e3732892 | 4,093 | py | Python | backend/core/tests.py | ES2-UFPI/404-portal | ac673d341a5a215441859fcd6184ff1e22a3fab4 | [
"Apache-2.0"
] | 1 | 2019-03-21T19:53:55.000Z | 2019-03-21T19:53:55.000Z | backend/core/tests.py | ES2-UFPI/404-portal | ac673d341a5a215441859fcd6184ff1e22a3fab4 | [
"Apache-2.0"
] | 46 | 2019-03-28T14:34:19.000Z | 2021-09-22T19:02:11.000Z | backend/core/tests.py | ES2-UFPI/404-portal | ac673d341a5a215441859fcd6184ff1e22a3fab4 | [
"Apache-2.0"
] | 1 | 2022-02-17T16:51:04.000Z | 2022-02-17T16:51:04.000Z | from django.test import TestCase
from django.urls import reverse
from ..core.models import Portal
USERNAME = "username_test"
PASSWORD = "password_test"
class PortalTestCase(TestCase):
@classmethod
def setUpTestData(self):
portal = Portal.objects.create()
portal.email = "teste@teste.com"
portal.nome_... | 40.127451 | 80 | 0.72514 | 504 | 4,093 | 5.78373 | 0.170635 | 0.154374 | 0.151286 | 0.047341 | 0.659005 | 0.586964 | 0.406175 | 0.314237 | 0.274099 | 0.250772 | 0 | 0.043131 | 0.144637 | 4,093 | 101 | 81 | 40.524752 | 0.789489 | 0 | 0 | 0.188889 | 0 | 0 | 0.188859 | 0.010261 | 0 | 0 | 0 | 0 | 0.344444 | 1 | 0.077778 | false | 0.077778 | 0.033333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4f98f14a6a96c2ae79cdc8ddef11fef4a7337d66 | 11,255 | py | Python | database_delivery_sdk/api/dbtask/create_custom_dbtask_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | database_delivery_sdk/api/dbtask/create_custom_dbtask_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | database_delivery_sdk/api/dbtask/create_custom_dbtask_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: create_custom_dbtask.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google... | 40.340502 | 895 | 0.766237 | 1,247 | 11,255 | 6.624699 | 0.131516 | 0.039705 | 0.045757 | 0.029052 | 0.573296 | 0.527902 | 0.482387 | 0.469556 | 0.449219 | 0.449219 | 0 | 0.032841 | 0.115327 | 11,255 | 278 | 896 | 40.485612 | 0.796826 | 0.051 | 0 | 0.647541 | 1 | 0.004098 | 0.225773 | 0.192502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.008197 | 0.020492 | 0 | 0.020492 | 0 | 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 |
4fa0841e5dae875699d909fdad8b3fbeaf0edc8d | 1,553 | py | Python | enaml/qt/qt_html.py | xtuzy/enaml | a1b5c0df71c665b6ef7f61d21260db92d77d9a46 | [
"BSD-3-Clause-Clear"
] | 1,080 | 2015-01-04T14:29:34.000Z | 2022-03-29T05:44:51.000Z | enaml/qt/qt_html.py | xtuzy/enaml | a1b5c0df71c665b6ef7f61d21260db92d77d9a46 | [
"BSD-3-Clause-Clear"
] | 308 | 2015-01-05T22:44:13.000Z | 2022-03-30T21:19:18.000Z | enaml/qt/qt_html.py | xtuzy/enaml | a1b5c0df71c665b6ef7f61d21260db92d77d9a46 | [
"BSD-3-Clause-Clear"
] | 123 | 2015-01-25T16:33:48.000Z | 2022-02-25T19:57:10.000Z | #------------------------------------------------------------------------------
# Copyright (c) 2013-2017, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
#------------------------------------------------... | 31.06 | 79 | 0.461043 | 131 | 1,553 | 5.412214 | 0.473282 | 0.056417 | 0.039492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006314 | 0.18416 | 1,553 | 49 | 80 | 31.693878 | 0.553275 | 0.582099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 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 |
4fa24ddbe81f295f9b4b52979b82d7c251a5ad95 | 1,030 | py | Python | tests/settings.py | jnsdrtlf/django-feather | 2126ab2c5a321339c378ca3c7475d8f90ab3eb6b | [
"Apache-2.0"
] | 17 | 2020-02-17T11:31:39.000Z | 2022-01-21T19:14:16.000Z | tests/settings.py | jnsdrtlf/django-feather | 2126ab2c5a321339c378ca3c7475d8f90ab3eb6b | [
"Apache-2.0"
] | 1 | 2021-04-17T22:10:18.000Z | 2021-05-11T11:21:22.000Z | tests/settings.py | jnsdrtlf/django-feather | 2126ab2c5a321339c378ca3c7475d8f90ab3eb6b | [
"Apache-2.0"
] | 1 | 2021-01-17T16:21:44.000Z | 2021-01-17T16:21:44.000Z | import os
BASE_DIR = os.path.dirname(__file__)
INSTALLED_APPS = (
"django.contrib.auth",
"django.contrib.sessions",
"django.contrib.contenttypes",
"django.contrib.admin",
"django_feather",
)
SECRET_KEY = "django-feather-test"
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAM... | 25.75 | 85 | 0.612621 | 95 | 1,030 | 6.421053 | 0.515789 | 0.167213 | 0.137705 | 0.203279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003836 | 0.240777 | 1,030 | 39 | 86 | 26.410256 | 0.776215 | 0 | 0 | 0 | 0 | 0 | 0.505825 | 0.364078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 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 |
4fac9263cc182e8767c2e35b511240070e220f86 | 984 | py | Python | queue_fair_adapter/queue_fair_django_service.py | Queue-Fair/python | 4846398d58809c4ff42d63b524c8162d5a39bb67 | [
"MIT"
] | null | null | null | queue_fair_adapter/queue_fair_django_service.py | Queue-Fair/python | 4846398d58809c4ff42d63b524c8162d5a39bb67 | [
"MIT"
] | null | null | null | queue_fair_adapter/queue_fair_django_service.py | Queue-Fair/python | 4846398d58809c4ff42d63b524c8162d5a39bb67 | [
"MIT"
] | null | null | null | from queue_fair_adapter.queue_fair_service import QueueFairService
class QueueFairDjangoService(QueueFairService):
def __init__(self, request, response):
self.request = request
self.response = response
self.isSecure = request.is_secure()
def setCookie(self, name, value, lif... | 35.142857 | 74 | 0.625 | 103 | 984 | 5.854369 | 0.446602 | 0.074627 | 0.043118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004249 | 0.28252 | 984 | 27 | 75 | 36.444444 | 0.849858 | 0.064024 | 0 | 0 | 0 | 0 | 0.014574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
96c3aff497836353276321e93fab6aaf70100ff9 | 448 | py | Python | tests/cases/files.py | HappyEinara/wingline | 08d67ad9f58c869c385f954def6af5fa92e968ff | [
"MIT"
] | null | null | null | tests/cases/files.py | HappyEinara/wingline | 08d67ad9f58c869c385f954def6af5fa92e968ff | [
"MIT"
] | null | null | null | tests/cases/files.py | HappyEinara/wingline | 08d67ad9f58c869c385f954def6af5fa92e968ff | [
"MIT"
] | null | null | null | """Test cases."""
from wingline.files import containers, formats
def case_dynamodb_jsonl_gz(data_dir):
"""Gzipped, DynamoDb-serialized JsonLines."""
# b2sum --length 64 --binary examples/data/dynamodb-tv-casts.jl.gz
# c8e2e027a73751df *examples/data/dynamodb-tv-casts.jl.gz
return (
data_dir... | 23.578947 | 70 | 0.65625 | 52 | 448 | 5.557692 | 0.576923 | 0.103806 | 0.155709 | 0.176471 | 0.391003 | 0.391003 | 0.214533 | 0 | 0 | 0 | 0 | 0.071023 | 0.214286 | 448 | 18 | 71 | 24.888889 | 0.75 | 0.386161 | 0 | 0 | 0 | 0 | 0.148289 | 0.087452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 |
96c8e0f6a62b9ef6fecb3c250e27f4cea5fe2c03 | 35,851 | py | Python | tests/test_session.py | EdwardBetts/pyspotify | 851c622e814dee59362d27d978251bd3891c59f7 | [
"Apache-2.0"
] | 2 | 2016-11-18T08:49:26.000Z | 2018-05-14T13:27:19.000Z | tests/test_session.py | spankders/pyspotify | b18ac0c72771e6c3418f0d57b775ae5c6e1ab44e | [
"Apache-2.0"
] | null | null | null | tests/test_session.py | spankders/pyspotify | b18ac0c72771e6c3418f0d57b775ae5c6e1ab44e | [
"Apache-2.0"
] | 1 | 2021-06-24T15:57:12.000Z | 2021-06-24T15:57:12.000Z | # encoding: utf-8
from __future__ import unicode_literals
import unittest
import spotify
from spotify.session import _SessionCallbacks
import tests
from tests import mock
@mock.patch('spotify.session.lib', spec=spotify.lib)
class SessionTest(unittest.TestCase):
def tearDown(self):
spotify._session_in... | 38.508056 | 79 | 0.707316 | 4,544 | 35,851 | 5.203565 | 0.060299 | 0.07638 | 0.037302 | 0.052781 | 0.790357 | 0.733305 | 0.690209 | 0.658575 | 0.631635 | 0.595898 | 0 | 0.006366 | 0.206884 | 35,851 | 930 | 80 | 38.549462 | 0.825209 | 0.026917 | 0 | 0.491654 | 0 | 0 | 0.035767 | 0.004704 | 0 | 0 | 0 | 0 | 0.203338 | 1 | 0.127466 | false | 0.003035 | 0.009105 | 0 | 0.14264 | 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 |
96cec5e08d18ef930d0b509cd2f3cefac1b3f862 | 272 | py | Python | eval_extra_tester_v4.py | dgudenius/football_win_predictions | b2a63b68f69c6ac7a16a7acb8e32b17991514c61 | [
"MIT"
] | 4 | 2020-11-30T10:02:21.000Z | 2021-11-19T21:32:13.000Z | eval_extra_tester_v4.py | dgudenius/football_win_predictions | b2a63b68f69c6ac7a16a7acb8e32b17991514c61 | [
"MIT"
] | null | null | null | eval_extra_tester_v4.py | dgudenius/football_win_predictions | b2a63b68f69c6ac7a16a7acb8e32b17991514c61 | [
"MIT"
] | 1 | 2021-02-11T09:18:03.000Z | 2021-02-11T09:18:03.000Z | from util2 import *
from Pythag_Win import *
from Combined4 import *
# Read historical games from CSV
games = Util2.read_games("data/nfl_games.csv")
# Forecast every game
Combined4.combined4(games)
# Evaluate our forecasts against Elo
Util2.evaluate_forecasts(games)
| 18.133333 | 46 | 0.786765 | 38 | 272 | 5.526316 | 0.526316 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.139706 | 272 | 14 | 47 | 19.428571 | 0.871795 | 0.3125 | 0 | 0 | 0 | 0 | 0.099448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
96ced3dbe64ff7967240c20f4e9b886421cb2c3f | 3,124 | py | Python | state_scrapper/state_scrapper/pipelines.py | nikmend/state-scrapper | 39c902320ea97605857ef74789e578dbdb7ccfd0 | [
"CC0-1.0"
] | null | null | null | state_scrapper/state_scrapper/pipelines.py | nikmend/state-scrapper | 39c902320ea97605857ef74789e578dbdb7ccfd0 | [
"CC0-1.0"
] | null | null | null | state_scrapper/state_scrapper/pipelines.py | nikmend/state-scrapper | 39c902320ea97605857ef74789e578dbdb7ccfd0 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exceptions import NotConfigured
import mysql.connector
import json
from itemadapter import ItemAdapter
from scrap... | 29.471698 | 94 | 0.602113 | 365 | 3,124 | 5.060274 | 0.336986 | 0.043313 | 0.029778 | 0.038982 | 0.208988 | 0.168923 | 0.079047 | 0 | 0 | 0 | 0 | 0.000892 | 0.28265 | 3,124 | 105 | 95 | 29.752381 | 0.823293 | 0.096671 | 0 | 0.27027 | 0 | 0 | 0.078975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175676 | false | 0.067568 | 0.067568 | 0.027027 | 0.351351 | 0.040541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
96d298b6f925c05619085642fb90e0a3827db7f0 | 503 | py | Python | kiestze_django/kiestze/migrations/0006_auto_20180721_0951.py | oSoc18/kiest_ze | 842eefcf3f6002ea90c2917682f625749398b33e | [
"Apache-2.0"
] | 3 | 2018-07-11T07:59:15.000Z | 2018-07-26T19:58:44.000Z | kiestze_django/kiestze/migrations/0006_auto_20180721_0951.py | oSoc18/kiest_ze | 842eefcf3f6002ea90c2917682f625749398b33e | [
"Apache-2.0"
] | 4 | 2018-08-11T13:55:50.000Z | 2019-12-28T15:41:30.000Z | kiestze_django/kiestze/migrations/0006_auto_20180721_0951.py | oSoc18/kiest_ze | 842eefcf3f6002ea90c2917682f625749398b33e | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.7 on 2018-07-21 09:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('kiestze', '0005_auto_20180721_0945'),
]
operations = [
migrations.RenameModel(
old_name='User_edits',
new_name='User_edit',
... | 22.863636 | 86 | 0.594433 | 53 | 503 | 5.396226 | 0.679245 | 0.111888 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086351 | 0.286282 | 503 | 21 | 87 | 23.952381 | 0.710306 | 0.089463 | 0 | 0.133333 | 1 | 0 | 0.234649 | 0.050439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 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 |
96d7a9a0cf620cea5b23269b180f95b1a4d32ced | 445 | py | Python | setup.py | anarkiwi/dovesnap | 51992cc1fdacc3b212dab61658f153188008d7f2 | [
"Apache-2.0"
] | 16 | 2020-09-09T07:50:38.000Z | 2021-12-13T20:48:47.000Z | setup.py | anarkiwi/dovesnap | 51992cc1fdacc3b212dab61658f153188008d7f2 | [
"Apache-2.0"
] | 20 | 2020-08-10T00:36:47.000Z | 2022-01-09T02:23:41.000Z | setup.py | anarkiwi/dovesnap | 51992cc1fdacc3b212dab61658f153188008d7f2 | [
"Apache-2.0"
] | 2 | 2020-05-19T14:57:05.000Z | 2020-07-09T19:19:18.000Z | """package setup."""
from setuptools import setup
setup(
name='dovesnap',
version=[ f.split('"')[1] for f in open('main.go', 'r').readlines() if 'version' in f ][0],
license='Apache License 2.0',
description='graphviz generator of dovesnap networks',
url='https://github.com/IQTLabs/dovesnap',
... | 29.666667 | 95 | 0.649438 | 60 | 445 | 4.766667 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023936 | 0.155056 | 445 | 14 | 96 | 31.785714 | 0.736702 | 0.031461 | 0 | 0 | 0 | 0 | 0.418824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96da315610313dfae0df991a92601744edb5c1d8 | 331 | py | Python | lang/py/pylib/code/difflib/difflib_unified.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | lang/py/pylib/code/difflib/difflib_unified.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | lang/py/pylib/code/difflib/difflib_unified.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | #!/usr/bin/env python
#
# Copyright 2007 Doug Hellmann.
#
"""Unified diff example
"""
#end_pymotw_header
import difflib
from difflib_data import *
diff = difflib.unified_diff(text1_lines,
text2_lines,
lineterm='',
)
print '\n'.join(l... | 18.388889 | 40 | 0.546828 | 34 | 331 | 5.147059 | 0.764706 | 0.125714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.347432 | 331 | 17 | 41 | 19.470588 | 0.782407 | 0.202417 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96de02504c972104a430004f89aea0bda190713e | 351 | py | Python | Strings/example_10.py | abdullahfareed454/PythonCourses | dd1c4666f180998ccf0e671fc999cfa3d43001bd | [
"MIT"
] | null | null | null | Strings/example_10.py | abdullahfareed454/PythonCourses | dd1c4666f180998ccf0e671fc999cfa3d43001bd | [
"MIT"
] | null | null | null | Strings/example_10.py | abdullahfareed454/PythonCourses | dd1c4666f180998ccf0e671fc999cfa3d43001bd | [
"MIT"
] | 1 | 2021-01-18T21:25:06.000Z | 2021-01-18T21:25:06.000Z | # -*- coding: utf-8 -*-
string1 = "Becomes"
string2 = "becomes"
string3 = "BEAR"
string4 = " bEautiful"
string1 = string1.lower()
# (string2 will pass unmodified)
string3 = string3.lower()
string4 = string4.strip().lower()
print(string1.startswith("be"))
print(string2.startswith("be"))
print(string3.startswith("be"))
p... | 25.071429 | 33 | 0.706553 | 41 | 351 | 6.04878 | 0.439024 | 0.193548 | 0.205645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050794 | 0.102564 | 351 | 13 | 34 | 27 | 0.736508 | 0.148148 | 0 | 0 | 0 | 0 | 0.121622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.363636 | 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 |
96e21665bf62437ea666f7cc8f9ff4fb5bf82206 | 7,711 | py | Python | integration/python/integration_api/models/identification.py | sumit4-ttn/SDK | b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff | [
"Apache-2.0"
] | null | null | null | integration/python/integration_api/models/identification.py | sumit4-ttn/SDK | b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff | [
"Apache-2.0"
] | null | null | null | integration/python/integration_api/models/identification.py | sumit4-ttn/SDK | b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Hydrogen Integration API
The Hydrogen Integration API # noqa: E501
OpenAPI spec version: 1.2.1
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Identification(ob... | 28.349265 | 172 | 0.60498 | 935 | 7,711 | 4.731551 | 0.127273 | 0.063291 | 0.126582 | 0.113924 | 0.530063 | 0.408906 | 0.355561 | 0.294078 | 0.190778 | 0.108951 | 0 | 0.015356 | 0.307483 | 7,711 | 271 | 173 | 28.453875 | 0.813109 | 0.328103 | 0 | 0.075 | 1 | 0 | 0.07012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.025 | 0 | 0.325 | 0.016667 | 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 |
96e7bd6c74ff43f28f4280ce939b28c673a619d8 | 1,705 | py | Python | tests/helpers/test_temperature.py | don66/home-assistant | a277470363c0758bb305410aad49c257ff8bac40 | [
"Apache-2.0"
] | 37 | 2018-05-22T07:17:26.000Z | 2022-03-03T13:14:46.000Z | tests/helpers/test_temperature.py | sara0871/https-wakatime.com-android-studio | 5a15b2c036b332c17d5f6a06664378e9273d684f | [
"Apache-2.0"
] | 125 | 2018-12-11T07:31:20.000Z | 2021-07-27T08:20:03.000Z | tests/helpers/test_temperature.py | sara0871/https-wakatime.com-android-studio | 5a15b2c036b332c17d5f6a06664378e9273d684f | [
"Apache-2.0"
] | 8 | 2018-05-30T20:05:26.000Z | 2021-02-19T14:17:05.000Z | """Tests Home Assistant temperature helpers."""
import unittest
from tests.common import get_test_home_assistant
from homeassistant.const import (
TEMP_CELSIUS, PRECISION_WHOLE, TEMP_FAHRENHEIT, PRECISION_HALVES,
PRECISION_TENTHS)
from homeassistant.helpers.temperature import display_temp
from homeassistant.u... | 34.1 | 73 | 0.687977 | 202 | 1,705 | 5.618812 | 0.311881 | 0.049339 | 0.070485 | 0.06696 | 0.214978 | 0.214978 | 0.191189 | 0.124229 | 0.086344 | 0 | 0 | 0.011219 | 0.215836 | 1,705 | 49 | 74 | 34.795918 | 0.837696 | 0.174194 | 0 | 0 | 0 | 0 | 0.030724 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 1 | 0.206897 | false | 0 | 0.172414 | 0 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
96f04acee94ea5c3a407b9b609f3363970802caa | 727 | py | Python | remove_duplicates.py | AnneliektH/EVEs_arthropod | 62f54c9db85d3ea6d7d78c319aa03e7eff733bb2 | [
"MIT"
] | null | null | null | remove_duplicates.py | AnneliektH/EVEs_arthropod | 62f54c9db85d3ea6d7d78c319aa03e7eff733bb2 | [
"MIT"
] | null | null | null | remove_duplicates.py | AnneliektH/EVEs_arthropod | 62f54c9db85d3ea6d7d78c319aa03e7eff733bb2 | [
"MIT"
] | null | null | null | #Anneliekter ter Horst, 2017
# load pandas
import pandas as pd
import sys
# load dataframe
df = pd.DataFrame.from_csv(sys.argv[1])
# sort on postion query start to keep highest later on
df.sort_values('position_on_query_start', inplace=True)
# drop duplicates based on start and direction keep first so highest
df.dr... | 27.961538 | 88 | 0.777166 | 117 | 727 | 4.675214 | 0.350427 | 0.073126 | 0.109689 | 0.065814 | 0.617916 | 0.617916 | 0.427788 | 0.427788 | 0.427788 | 0.427788 | 0 | 0.009434 | 0.125172 | 727 | 25 | 89 | 29.08 | 0.850629 | 0.422283 | 0 | 0 | 0 | 0 | 0.286408 | 0.218447 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96f0b2e6a2bc17012ea413bbb0f8c5e24cab6b3e | 260 | py | Python | setup.py | explabs/ad-ctf-paas-lib | f4d51878369a25a9b83fc30b15a5cd338e6bc9de | [
"Apache-2.0"
] | null | null | null | setup.py | explabs/ad-ctf-paas-lib | f4d51878369a25a9b83fc30b15a5cd338e6bc9de | [
"Apache-2.0"
] | null | null | null | setup.py | explabs/ad-ctf-paas-lib | f4d51878369a25a9b83fc30b15a5cd338e6bc9de | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='ad-ctf-paas-lib',
version='0.0.3',
packages=['checker'],
url='',
license='',
author='ivanh',
author_email='ivanhahanov13@gmail.com',
description='Library that help to write checkers'
)
| 20 | 53 | 0.638462 | 32 | 260 | 5.15625 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024038 | 0.2 | 260 | 12 | 54 | 21.666667 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 0.088462 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96f14504ef55e811a8832dee4a3504ce8ff79807 | 6,608 | py | Python | 2015/2015_07a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | 2015/2015_07a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | 2015/2015_07a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | input = """af AND ah -> ai
NOT lk -> ll
hz RSHIFT 1 -> is
NOT go -> gp
du OR dt -> dv
x RSHIFT 5 -> aa
at OR az -> ba
eo LSHIFT 15 -> es
ci OR ct -> cu
b RSHIFT 5 -> f
fm OR fn -> fo
NOT ag -> ah
v OR w -> x
g AND i -> j
an LSHIFT 15 -> ar
1 AND cx -> cy
jq AND jw -> jy
iu RSHIFT 5 -> ix
gl AND gm -> go
NOT bw -> bx
jp... | 16.729114 | 67 | 0.559171 | 1,458 | 6,608 | 2.532922 | 0.259945 | 0.018413 | 0.032494 | 0.038993 | 0.05524 | 0.04847 | 0.04847 | 0.04847 | 0.03818 | 0.03818 | 0 | 0.034046 | 0.306598 | 6,608 | 395 | 68 | 16.729114 | 0.771934 | 0.004389 | 0 | 0.018617 | 0 | 0 | 0.817366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00266 | false | 0 | 0 | 0 | 0.010638 | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96f19df01d59a9474dfbbf49d73c7121c49166e8 | 1,555 | py | Python | packages/M2Crypto-0.21.1/demo/medusa/virtual_handler.py | RaphaelPrevost/Back2Shops | 5f2d369e82fe2a7b9b3a6c55782319b23d142dfd | [
"CECILL-B"
] | null | null | null | packages/M2Crypto-0.21.1/demo/medusa/virtual_handler.py | RaphaelPrevost/Back2Shops | 5f2d369e82fe2a7b9b3a6c55782319b23d142dfd | [
"CECILL-B"
] | 6 | 2021-03-31T19:21:50.000Z | 2022-01-13T01:46:09.000Z | packages/M2Crypto-0.21.1/demo/medusa/virtual_handler.py | RaphaelPrevost/Back2Shops | 5f2d369e82fe2a7b9b3a6c55782319b23d142dfd | [
"CECILL-B"
] | null | null | null | # -*- Mode: Python; tab-width: 4 -*-
import socket
import default_handler
import re
HOST = re.compile ('Host: ([^:/]+).*', re.IGNORECASE)
get_header = default_handler.get_header
class virtual_handler:
"""HTTP request handler for an HTTP/1.0-style virtual host. Each
Virtual host must have a different IP"""
def... | 25.491803 | 97 | 0.715756 | 225 | 1,555 | 4.808889 | 0.355556 | 0.060998 | 0.062847 | 0.038817 | 0.4122 | 0.369686 | 0.369686 | 0.369686 | 0.369686 | 0.369686 | 0 | 0.009419 | 0.180707 | 1,555 | 60 | 98 | 25.916667 | 0.839874 | 0.021865 | 0 | 0.611111 | 0 | 0 | 0.124891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | 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 |
96f2475d12862d82c7489b55d50a31dc22a6efba | 1,069 | py | Python | 4/main.py | misterwilliam/advent-of-code | b8ddcbc5efcf62c7e5e4244339029783ac9f90b6 | [
"MIT"
] | null | null | null | 4/main.py | misterwilliam/advent-of-code | b8ddcbc5efcf62c7e5e4244339029783ac9f90b6 | [
"MIT"
] | null | null | null | 4/main.py | misterwilliam/advent-of-code | b8ddcbc5efcf62c7e5e4244339029783ac9f90b6 | [
"MIT"
] | null | null | null | import md5
import unittest
def GetDigest(string):
m = md5.new()
m.update(string)
return m.hexdigest()
def DoesStartWithZeros(string, numZeros):
return string[:numZeros] == "".join("0" for i in xrange(numZeros))
def Mine(string):
i = 1
while True:
digest = GetDigest(string + str(i))
... | 21.816327 | 83 | 0.65014 | 121 | 1,069 | 5.652893 | 0.421488 | 0.011696 | 0.023392 | 0.038012 | 0.239766 | 0.19883 | 0.19883 | 0.19883 | 0.19883 | 0.19883 | 0 | 0.073761 | 0.22638 | 1,069 | 49 | 84 | 21.816327 | 0.753325 | 0 | 0 | 0.333333 | 0 | 0 | 0.079439 | 0.029907 | 0 | 0 | 0 | 0 | 0.138889 | 0 | null | null | 0 | 0.055556 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96f25368966db1c291f6cb7432a6a1efedb904ad | 766 | py | Python | keyboards/inline/menu_profile_inline.py | vR4eslav/DatingBot | 62f9ccbe1a3d0c65dd8d650400a1b5595be893b5 | [
"Apache-2.0"
] | null | null | null | keyboards/inline/menu_profile_inline.py | vR4eslav/DatingBot | 62f9ccbe1a3d0c65dd8d650400a1b5595be893b5 | [
"Apache-2.0"
] | null | null | null | keyboards/inline/menu_profile_inline.py | vR4eslav/DatingBot | 62f9ccbe1a3d0c65dd8d650400a1b5595be893b5 | [
"Apache-2.0"
] | null | null | null | from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
async def get_profile_keyboard(verification):
markup = InlineKeyboardMarkup()
if not verification:
verification_btn = InlineKeyboardButton(text="✅ Верификация", callback_data="verification")
markup.row(verification_btn)
e... | 45.058824 | 99 | 0.763708 | 83 | 766 | 6.891566 | 0.493976 | 0.20979 | 0.062937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137076 | 766 | 16 | 100 | 47.875 | 0.859304 | 0 | 0 | 0 | 0 | 0 | 0.155352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.142857 | 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 |
96f28c37dddd1aa3433d23792cda6b094a260c88 | 1,469 | py | Python | pylark/api_service_drive_comment_patch.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 7 | 2021-08-18T00:42:05.000Z | 2022-03-14T09:49:15.000Z | pylark/api_service_drive_comment_patch.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | null | null | null | pylark/api_service_drive_comment_patch.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 1 | 2022-03-14T09:49:20.000Z | 2022-03-14T09:49:20.000Z | # Code generated by lark_sdk_gen. DO NOT EDIT.
from pylark.lark_request import RawRequestReq, _new_method_option
from pylark import lark_type, lark_type_sheet, lark_type_approval
import attr
import typing
import io
@attr.s
class UpdateDriveCommentPatchReq(object):
file_type: lark_type.FileType = attr.ib(
... | 33.386364 | 95 | 0.677332 | 178 | 1,469 | 5.348315 | 0.477528 | 0.042017 | 0.063025 | 0.039916 | 0.079832 | 0.079832 | 0.079832 | 0.079832 | 0.079832 | 0 | 0 | 0.019247 | 0.186521 | 1,469 | 43 | 96 | 34.162791 | 0.777406 | 0.13002 | 0 | 0.057143 | 1 | 0.028571 | 0.166667 | 0.018082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.028571 | 0.142857 | 0.028571 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96f501accdabaeb88d1162fdf86605358c0e0596 | 2,253 | py | Python | Commented/dfirwizard-v2.py | dlcowen/dfirwizard | 75b8fae0981bb07a7ae7c547e0865b47e385a976 | [
"Apache-2.0"
] | 60 | 2015-02-20T00:27:58.000Z | 2022-01-26T18:47:59.000Z | Commented/dfirwizard-v2.py | N4rr34n6/dfirwizard | 75b8fae0981bb07a7ae7c547e0865b47e385a976 | [
"Apache-2.0"
] | 1 | 2016-11-18T17:33:34.000Z | 2016-12-08T02:32:09.000Z | Commented/dfirwizard-v2.py | N4rr34n6/dfirwizard | 75b8fae0981bb07a7ae7c547e0865b47e385a976 | [
"Apache-2.0"
] | 12 | 2015-02-23T20:46:19.000Z | 2019-03-01T13:12:55.000Z | #!/usr/bin/python
# Sample program or step 2 in becoming a DFIR Wizard!
# No license as this code is simple and free!
import sys
import pytsk3
# Import for manipulation of timestamps into user readable information
import datetime
# Hardcode the name of the image file, without path info has to be in the same directory
... | 64.371429 | 132 | 0.780293 | 364 | 2,253 | 4.815934 | 0.467033 | 0.019966 | 0.030804 | 0.022818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011001 | 0.152685 | 2,253 | 35 | 133 | 64.371429 | 0.907281 | 0.652907 | 0 | 0 | 0 | 0 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
96f54daac83cf53045374627a83cf20f77b90b9d | 560 | py | Python | app/db/migrations/versions/ed535bd21f09_add_three_time_filed.py | zyxyuanxiao/fastapi-1 | ddc5273c82468e111bce1fd2c127da3642741a21 | [
"MIT"
] | 2 | 2020-03-24T14:14:18.000Z | 2021-12-08T02:29:59.000Z | app/db/migrations/versions/ed535bd21f09_add_three_time_filed.py | chr1043086360/fastapi-2 | ddc5273c82468e111bce1fd2c127da3642741a21 | [
"MIT"
] | null | null | null | app/db/migrations/versions/ed535bd21f09_add_three_time_filed.py | chr1043086360/fastapi-2 | ddc5273c82468e111bce1fd2c127da3642741a21 | [
"MIT"
] | 1 | 2020-03-11T03:22:00.000Z | 2020-03-11T03:22:00.000Z | """add three time filed
Revision ID: ed535bd21f09
Revises: 0a43e5b16392
Create Date: 2019-12-12 13:44:51.913300
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ed535bd21f09'
down_revision = '0a43e5b16392'
branch_labels = None
depends_on = None
def upgrade():... | 19.310345 | 65 | 0.6875 | 68 | 560 | 5.617647 | 0.632353 | 0.070681 | 0.109948 | 0.120419 | 0.335079 | 0.335079 | 0.335079 | 0.335079 | 0.335079 | 0.335079 | 0 | 0.116071 | 0.2 | 560 | 28 | 66 | 20 | 0.736607 | 0.539286 | 0 | 0.2 | 0 | 0 | 0.108597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
96f5f8e6fddb7803b99415656fedc86d0a299b33 | 828 | py | Python | notifyme.py | vsr/pyscripts | 387b7d84f06dc2b67514852cdf41dfd0993a0ab4 | [
"MIT"
] | null | null | null | notifyme.py | vsr/pyscripts | 387b7d84f06dc2b67514852cdf41dfd0993a0ab4 | [
"MIT"
] | null | null | null | notifyme.py | vsr/pyscripts | 387b7d84f06dc2b67514852cdf41dfd0993a0ab4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Notifies with a fortune cookie every X minutes.
Usage: "python notifyme.py 10" to notify every 10 minutes
"""
import os
import sys
import datetime
import time
import pynotify
def notify(count):
fortune = os.popen('fortune -n 100 -s', 'r').read()
time = datetime.datetime.now().strftime("... | 23.657143 | 71 | 0.625604 | 101 | 828 | 5.009901 | 0.594059 | 0.134387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0224 | 0.245169 | 828 | 34 | 72 | 24.352941 | 0.7872 | 0.019324 | 0 | 0.083333 | 0 | 0 | 0.104585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.208333 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8c002ead2aeec6be0364eac3bc48e26605f2f361 | 535 | py | Python | PythonExercicios/ex016.py | cedricgenaro/Python | 2ba952b42a9c49efaeb064e230db8d4426cd5ca8 | [
"MIT"
] | null | null | null | PythonExercicios/ex016.py | cedricgenaro/Python | 2ba952b42a9c49efaeb064e230db8d4426cd5ca8 | [
"MIT"
] | null | null | null | PythonExercicios/ex016.py | cedricgenaro/Python | 2ba952b42a9c49efaeb064e230db8d4426cd5ca8 | [
"MIT"
] | null | null | null | # Quebrando um número
'''Minha Solução'''
'''from math import floor
valor = float(input('Digite um valor: '))
numQuebrado = floor(valor)
print('O valor digitado foi {} e a sua porção inteira é {}'.format(valor, numQuebrado))'''
'''Solução Professor '''
'''from math import trunc
num = float(input('Digite um valor: '))... | 29.722222 | 90 | 0.674766 | 80 | 535 | 4.5125 | 0.3625 | 0.083102 | 0.132964 | 0.149584 | 0.628809 | 0.565097 | 0.565097 | 0.565097 | 0.565097 | 0.565097 | 0 | 0 | 0.153271 | 535 | 17 | 91 | 31.470588 | 0.796909 | 0.063551 | 0 | 0 | 0 | 0 | 0.519084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.