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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a7fe776654c20e1290bc4e948072b1dcc063b7e | 2,007 | py | Python | util/query_jmx.py | perfsonar/esmond | 391939087321c1438d54cdadee3eb936b95f3e92 | [
"BSD-3-Clause-LBNL"
] | 3 | 2019-10-23T01:10:19.000Z | 2022-03-26T18:40:44.000Z | util/query_jmx.py | perfsonar/esmond | 391939087321c1438d54cdadee3eb936b95f3e92 | [
"BSD-3-Clause-LBNL"
] | 23 | 2018-12-05T20:30:04.000Z | 2020-11-11T19:20:57.000Z | util/query_jmx.py | perfsonar/esmond | 391939087321c1438d54cdadee3eb936b95f3e92 | [
"BSD-3-Clause-LBNL"
] | 3 | 2019-02-11T20:40:41.000Z | 2022-03-26T18:40:50.000Z | #!/usr/bin/env python3
"""
Code to issue calls to the cassandra MX4J http server and get stats.
"""
import os
import sys
from optparse import OptionParser
from esmond.api.client.jmx import CassandraJMX
def main():
usage = '%prog [ -U ]'
parser = OptionParser(usage=usage)
parser.add_option('-U', '--url',... | 38.596154 | 78 | 0.678127 | 268 | 2,007 | 4.854478 | 0.30597 | 0.11837 | 0.083013 | 0.036895 | 0.152191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004179 | 0.165421 | 2,007 | 51 | 79 | 39.352941 | 0.772537 | 0.044843 | 0 | 0 | 0 | 0 | 0.275013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.102564 | 0 | 0.128205 | 0.564103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5a8074c85da0b1531e270b6b0eaa82126e705010 | 1,294 | py | Python | apps/accounts/management/commands/amend_hostingproviders_stats.py | BR0kEN-/admin-portal | 0c38dc0d790031f45bf07660bce690e972fe2858 | [
"Apache-2.0"
] | null | null | null | apps/accounts/management/commands/amend_hostingproviders_stats.py | BR0kEN-/admin-portal | 0c38dc0d790031f45bf07660bce690e972fe2858 | [
"Apache-2.0"
] | null | null | null | apps/accounts/management/commands/amend_hostingproviders_stats.py | BR0kEN-/admin-portal | 0c38dc0d790031f45bf07660bce690e972fe2858 | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import BaseCommand
from django.db import connection
class Command(BaseCommand):
help = "Add missing id column for hostingstats."
def handle(self, *args, **options):
with connection.cursor() as cursor:
self.cursor = cursor
self.cursor.execute(
... | 38.058824 | 91 | 0.532457 | 122 | 1,294 | 5.459016 | 0.52459 | 0.189189 | 0.117117 | 0.054054 | 0.132132 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.358578 | 1,294 | 33 | 92 | 39.212121 | 0.790361 | 0 | 0 | 0 | 0 | 0 | 0.111429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5a81a24952b6eed80c202bd9ff7db7e295855534 | 2,088 | py | Python | piece.py | brouxco/quarto-solver | 12ae87f43d4a80137cb4394de9c399d8f9894da3 | [
"0BSD"
] | null | null | null | piece.py | brouxco/quarto-solver | 12ae87f43d4a80137cb4394de9c399d8f9894da3 | [
"0BSD"
] | null | null | null | piece.py | brouxco/quarto-solver | 12ae87f43d4a80137cb4394de9c399d8f9894da3 | [
"0BSD"
] | null | null | null | class Piece(object):
def __init__(self,
is_tall: bool = True,
is_dark: bool = True,
is_square: bool = True,
is_solid: bool = True,
string: str = None):
if string:
self.is_tall = (string[0] == "1")
se... | 32.625 | 56 | 0.531609 | 289 | 2,088 | 3.425606 | 0.16609 | 0.127273 | 0.145455 | 0.169697 | 0.442424 | 0.148485 | 0.036364 | 0 | 0 | 0 | 0 | 0.022256 | 0.375958 | 2,088 | 63 | 57 | 33.142857 | 0.737529 | 0 | 0 | 0 | 0 | 0 | 0.015326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.018182 | 0 | 0.018182 | 0.2 | 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 |
5a898eeb8ca1914311a3bfe38f233e0ef651e459 | 497 | py | Python | src/test/model/test_node.py | AstrorEnales/GenCoNet | c596d31a889f14499883fcdf74fdc67f927a806e | [
"MIT"
] | 2 | 2019-12-05T11:46:48.000Z | 2022-03-09T00:11:06.000Z | src/test/model/test_node.py | AstrorEnales/GenCoNet | c596d31a889f14499883fcdf74fdc67f927a806e | [
"MIT"
] | null | null | null | src/test/model/test_node.py | AstrorEnales/GenCoNet | c596d31a889f14499883fcdf74fdc67f927a806e | [
"MIT"
] | null | null | null | import unittest
from model import node
class DummyNode(node.Node):
def __init__(self, ids: [str], names: [str]):
super().__init__(ids, names)
self.primary_id_prefix = 'TEST'
class TestMethods(unittest.TestCase):
def test_label(self):
n = DummyNode([], [])
self.assertEqual(n.l... | 26.157895 | 83 | 0.615694 | 62 | 497 | 4.741935 | 0.403226 | 0.102041 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005128 | 0.215292 | 497 | 18 | 84 | 27.611111 | 0.748718 | 0 | 0 | 0 | 0 | 0 | 0.150905 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce4d63008769bb7f26121f3ebe84e27bc4d39e53 | 7,853 | py | Python | tools/sprite-editor/gui/direction_sprite_widget.py | jordsti/stigame | 6ac0ae737667b1c77da3ef5007f5c4a3a080045a | [
"MIT"
] | 8 | 2015-02-03T20:23:49.000Z | 2022-02-15T07:51:05.000Z | tools/sprite-editor/gui/direction_sprite_widget.py | jordsti/stigame | 6ac0ae737667b1c77da3ef5007f5c4a3a080045a | [
"MIT"
] | null | null | null | tools/sprite-editor/gui/direction_sprite_widget.py | jordsti/stigame | 6ac0ae737667b1c77da3ef5007f5c4a3a080045a | [
"MIT"
] | 2 | 2017-02-13T18:04:00.000Z | 2020-08-24T03:21:37.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'direction_sprite_widget.ui'
#
# Created: Wed Jul 30 18:37:40 2014
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUt... | 58.17037 | 99 | 0.741118 | 879 | 7,853 | 6.375427 | 0.166098 | 0.09743 | 0.086188 | 0.06424 | 0.365096 | 0.274268 | 0.154889 | 0.063526 | 0.029265 | 0.029265 | 0 | 0.020574 | 0.152044 | 7,853 | 134 | 100 | 58.604478 | 0.820994 | 0.029033 | 0 | 0.05042 | 1 | 0 | 0.090861 | 0.045299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042017 | false | 0 | 0.008403 | 0.02521 | 0.084034 | 0 | 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 |
ce53b07d3a1a59be1abb2c6bf2cf0cd25eb7f425 | 562 | py | Python | scripts/show_by_content_type.py | b-cube/Response-Identification-Info | d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e | [
"MIT"
] | null | null | null | scripts/show_by_content_type.py | b-cube/Response-Identification-Info | d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e | [
"MIT"
] | 1 | 2015-09-23T16:30:34.000Z | 2015-09-23T16:30:34.000Z | scripts/show_by_content_type.py | b-cube/Response-Identification-Info | d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e | [
"MIT"
] | 1 | 2020-03-25T09:41:03.000Z | 2020-03-25T09:41:03.000Z | import os
import glob
import json
for f in glob.glob('/Users/sparky/Documents/solr_responses/solr_20150922_docs/*.json'):
with open(f, 'r') as g:
data = json.loads(g.read())
headers = data.get('response_headers', [])
if not headers:
continue
headers = dict(
(k.strip().lower(),... | 28.1 | 87 | 0.617438 | 81 | 562 | 4.185185 | 0.530864 | 0.162242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020737 | 0.227758 | 562 | 19 | 88 | 29.578947 | 0.760369 | 0 | 0 | 0 | 0 | 0 | 0.199288 | 0.113879 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce5f3e28692a3faeaa82556c686295cb266a77ee | 300 | py | Python | src/utils/regex_utils/regex_utils.py | BichengWang/python-notebook | 83fae37432a2bf701566e85ab6d7e8e3d688a0ee | [
"MIT"
] | null | null | null | src/utils/regex_utils/regex_utils.py | BichengWang/python-notebook | 83fae37432a2bf701566e85ab6d7e8e3d688a0ee | [
"MIT"
] | null | null | null | src/utils/regex_utils/regex_utils.py | BichengWang/python-notebook | 83fae37432a2bf701566e85ab6d7e8e3d688a0ee | [
"MIT"
] | null | null | null | import re
def find_indices():
return [m.start(0) for m in re.finditer(reg, content)]
def find_content():
return re.findall(reg, content)
if __name__ == "__main__":
content = 'an example word:cat and word:dog'
reg = r'word:\w'
print(find_indices())
print(find_content())
| 17.647059 | 58 | 0.653333 | 45 | 300 | 4.088889 | 0.6 | 0.076087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.206667 | 300 | 16 | 59 | 18.75 | 0.768908 | 0 | 0 | 0 | 0 | 0 | 0.156667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.5 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ce6649c4f6c16cf45f7213f96f05b37dd34d751f | 4,936 | py | Python | test/test_hdf5.py | gonzalobg/hpc-container-maker | dd5486c3fbb0fce38d825173022908ef0f96f77e | [
"Apache-2.0"
] | 1 | 2021-01-04T00:29:22.000Z | 2021-01-04T00:29:22.000Z | test/test_hdf5.py | gonzalobg/hpc-container-maker | dd5486c3fbb0fce38d825173022908ef0f96f77e | [
"Apache-2.0"
] | null | null | null | test/test_hdf5.py | gonzalobg/hpc-container-maker | dd5486c3fbb0fce38d825173022908ef0f96f77e | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 37.393939 | 164 | 0.640194 | 772 | 4,936 | 4.034974 | 0.238342 | 0.024077 | 0.096308 | 0.030819 | 0.633066 | 0.633066 | 0.624077 | 0.61862 | 0.613804 | 0.602889 | 0 | 0.047343 | 0.195502 | 4,936 | 131 | 165 | 37.679389 | 0.737094 | 0.167747 | 0 | 0.5 | 0 | 0 | 0.006985 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.147059 | false | 0 | 0.176471 | 0 | 0.352941 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce6e3c09a2e66420e8e9c581cff7e8f8d2db23fe | 2,282 | py | Python | config/test.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | 1 | 2016-02-13T15:40:20.000Z | 2016-02-13T15:40:20.000Z | config/test.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | 3 | 2020-02-11T22:29:15.000Z | 2021-06-10T17:44:31.000Z | config/test.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Configuration parameters for the test subsystem."""
import os
from grr.lib import config_lib
# Default for running in the current directory
config_lib.DEFINE_constant_string(
"Test.srcdir",
os.path.normpath(os.path.dirname(__file__) + "/../.."),
"The directory containing the source... | 40.75 | 80 | 0.633655 | 288 | 2,282 | 4.815972 | 0.40625 | 0.077866 | 0.118962 | 0.06633 | 0.322278 | 0.279019 | 0.18385 | 0.18385 | 0.18385 | 0.141312 | 0 | 0.003599 | 0.2695 | 2,282 | 55 | 81 | 41.490909 | 0.828434 | 0.049956 | 0 | 0.2 | 0 | 0 | 0.524537 | 0.113426 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ce70b641f16acd29f6ec6fd771bef13d60610bff | 235 | py | Python | zad1_6.py | kamilhabrych/python-semestr5-lista1 | 65faeffe83bcc4706b2818e2e7802d986b19244b | [
"MIT"
] | null | null | null | zad1_6.py | kamilhabrych/python-semestr5-lista1 | 65faeffe83bcc4706b2818e2e7802d986b19244b | [
"MIT"
] | null | null | null | zad1_6.py | kamilhabrych/python-semestr5-lista1 | 65faeffe83bcc4706b2818e2e7802d986b19244b | [
"MIT"
] | null | null | null | x = int(input('Podaj pierwsza liczbe calkowita: '))
y = int(input('Podaj druga liczbe calkowita: '))
z = int(input('Podaj trzecia liczbe calkowita: '))
print()
if x > 10:
print(x)
if y > 10:
print(y)
if z > 10:
print(z) | 16.785714 | 51 | 0.617021 | 37 | 235 | 3.918919 | 0.378378 | 0.165517 | 0.268966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.221277 | 235 | 14 | 52 | 16.785714 | 0.759563 | 0 | 0 | 0 | 0 | 0 | 0.402542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
ce70fc922ee9bc7104f6b739b1a14c96b849d90a | 6,194 | py | Python | modules/bulletinGenerator_Kingsgrove.py | featherbear/swec-elvanto-automation | 7f330ca5a87623ca452170efb4845814a4fbc2ad | [
"MIT"
] | null | null | null | modules/bulletinGenerator_Kingsgrove.py | featherbear/swec-elvanto-automation | 7f330ca5a87623ca452170efb4845814a4fbc2ad | [
"MIT"
] | null | null | null | modules/bulletinGenerator_Kingsgrove.py | featherbear/swec-elvanto-automation | 7f330ca5a87623ca452170efb4845814a4fbc2ad | [
"MIT"
] | null | null | null | from mailmerge import MailMerge
import re
import os.path
from ElvantoAPIExtensions import Enums, Helpers
from modules.__stub__ import ModuleStub
class Module(ModuleStub):
__VERSION__ = "1.0"
__NAME__ = "bulletinGenerator_Kingsgrove"
# __executeTime__ = "16:00"
# __executeDay__ = "thursday"
setting... | 41.293333 | 165 | 0.610268 | 685 | 6,194 | 5.436496 | 0.394161 | 0.036251 | 0.040816 | 0.032223 | 0.104458 | 0.080559 | 0.057197 | 0 | 0 | 0 | 0 | 0.002292 | 0.295609 | 6,194 | 149 | 166 | 41.57047 | 0.851249 | 0.011947 | 0 | 0.077519 | 0 | 0.007752 | 0.484303 | 0.004578 | 0 | 0 | 0 | 0 | 0.007752 | 1 | 0.023256 | false | 0.069767 | 0.046512 | 0 | 0.124031 | 0.031008 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ce78d29afc746e1513a1eb1206ac1f0e6d11d03c | 3,791 | py | Python | powerfulseal/metriccollectors/prometheus_collector.py | snehalbiche/powerfulseal | 4ab70e0db8f33bd390d87e65c662774991483726 | [
"Apache-2.0"
] | 1 | 2018-07-12T22:04:51.000Z | 2018-07-12T22:04:51.000Z | powerfulseal/metriccollectors/prometheus_collector.py | kz/powerfulseal | 24276dd670777a72fed1780539ffe03f3bea63b9 | [
"Apache-2.0"
] | null | null | null | powerfulseal/metriccollectors/prometheus_collector.py | kz/powerfulseal | 24276dd670777a72fed1780539ffe03f3bea63b9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Bloomberg Finance L.P.
#
# 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 i... | 42.595506 | 86 | 0.69665 | 483 | 3,791 | 5.161491 | 0.306418 | 0.048135 | 0.048135 | 0.047734 | 0.287204 | 0.222222 | 0.185319 | 0.040112 | 0.040112 | 0.040112 | 0 | 0.004129 | 0.233448 | 3,791 | 88 | 87 | 43.079545 | 0.853751 | 0.217884 | 0 | 0 | 0 | 0 | 0.191381 | 0.04547 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.098039 | 0.058824 | 0 | 0.254902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ce7dcfa1ba0e4b637228e061f83bafab463cb61b | 766 | py | Python | servoblst.py | ForToffee/MeArm | 90fdd94fd96b53b3579c6d8132e8586188e3d344 | [
"MIT"
] | 1 | 2016-04-04T17:39:54.000Z | 2016-04-04T17:39:54.000Z | servoblst.py | ForToffee/MeArm | 90fdd94fd96b53b3579c6d8132e8586188e3d344 | [
"MIT"
] | null | null | null | servoblst.py | ForToffee/MeArm | 90fdd94fd96b53b3579c6d8132e8586188e3d344 | [
"MIT"
] | null | null | null | import time
import os
servos = {}
class ServoController:
def __init__(self):
os.system('sudo /home/pi/PiBits/ServoBlaster/user/servod')
def setAngle(self, servo_id, degrees):
if degrees > 90:
degrees = 90
elif degrees < -90:
degrees = -90
#http://www.raspberrypi.org/forums/viewtopic.php?f=44&t=36572... | 22.529412 | 68 | 0.680157 | 112 | 766 | 4.544643 | 0.508929 | 0.096267 | 0.047151 | 0.070727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045886 | 0.174935 | 766 | 33 | 69 | 23.212121 | 0.759494 | 0.13577 | 0 | 0 | 0 | 0 | 0.159091 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce815d6c526703afd41758b750594101532e6d14 | 724 | py | Python | warmup/sock_merchant.py | franloza/hackerrank | e66f5f5c4c1c7c0fe93146d29140692cd71625b7 | [
"MIT"
] | null | null | null | warmup/sock_merchant.py | franloza/hackerrank | e66f5f5c4c1c7c0fe93146d29140692cd71625b7 | [
"MIT"
] | null | null | null | warmup/sock_merchant.py | franloza/hackerrank | e66f5f5c4c1c7c0fe93146d29140692cd71625b7 | [
"MIT"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the sockMerchant function below.
def sockMerchant(n, ar):
socks = {}
for elem in ar:
if elem in socks:
socks[elem] += 1
else:
socks[elem] = 1
return sum(elem // 2 for elem in socks.va... | 19.567568 | 52 | 0.56768 | 101 | 724 | 3.90099 | 0.544554 | 0.030457 | 0.114213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.269337 | 724 | 36 | 53 | 20.111111 | 0.701323 | 0.429558 | 0 | 0 | 0 | 0 | 0.020151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ce882279c49c7c6dbe430df86a631892b7154111 | 3,342 | py | Python | tests/zzz_deprecated_unmaintained/obsmodel/TestZeroMeanGaussLocalStepSpeed.py | HongminWu/bnpy | 04c918cc1150ca8d9694c093633d539d9286a1b6 | [
"BSD-3-Clause"
] | 3 | 2018-07-02T03:50:23.000Z | 2019-05-16T03:23:55.000Z | tests/zzz_deprecated_unmaintained/obsmodel/TestZeroMeanGaussLocalStepSpeed.py | HongminWu/bnpy | 04c918cc1150ca8d9694c093633d539d9286a1b6 | [
"BSD-3-Clause"
] | 1 | 2021-01-07T01:33:06.000Z | 2021-01-07T01:33:06.000Z | tests/zzz_deprecated_unmaintained/obsmodel/TestZeroMeanGaussLocalStepSpeed.py | birlrobotics/bnpy | 8f297d8f3e4a56088d7755134c329f63a550be9e | [
"BSD-3-Clause"
] | 1 | 2020-09-01T13:21:18.000Z | 2020-09-01T13:21:18.000Z | import numpy as np
import scipy.linalg
import argparse
import time
from contextlib import contextmanager
def measureTime(f, nTrial=3):
def f_timer(*args, **kwargs):
times = list()
for rep in range(nTrial):
start = time.time()
result = f(*args, **kwargs)
end ... | 30.66055 | 102 | 0.620586 | 515 | 3,342 | 3.930097 | 0.215534 | 0.059783 | 0.038043 | 0.075593 | 0.681324 | 0.654644 | 0.61166 | 0.61166 | 0.523715 | 0.523715 | 0 | 0.030123 | 0.245063 | 3,342 | 108 | 103 | 30.944444 | 0.772097 | 0 | 0 | 0.25 | 0 | 0 | 0.057427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073529 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce8f967c1a3e2320cb9057b9e55d32dfed9aae91 | 2,019 | py | Python | app/python/query_strings.py | ProfessorUdGuru/toykinter | 66c0a9877df6b4b3034125566e687b7361085d2b | [
"Unlicense"
] | null | null | null | app/python/query_strings.py | ProfessorUdGuru/toykinter | 66c0a9877df6b4b3034125566e687b7361085d2b | [
"Unlicense"
] | null | null | null | app/python/query_strings.py | ProfessorUdGuru/toykinter | 66c0a9877df6b4b3034125566e687b7361085d2b | [
"Unlicense"
] | null | null | null | # query_strings.py
'''
Since Sqlite queries are inserted as string in Python code,
the queries can be stored here to save space in the modules
where they are used.
'''
delete_color_scheme = '''
DELETE FROM color_scheme
WHERE color_scheme_id = ?
'''
insert_color_scheme = '''
INSERT INT... | 20.393939 | 69 | 0.595344 | 241 | 2,019 | 4.626556 | 0.248963 | 0.10852 | 0.069955 | 0.09148 | 0.365919 | 0.288789 | 0.218834 | 0.120179 | 0.064574 | 0 | 0 | 0.007225 | 0.314512 | 2,019 | 98 | 70 | 20.602041 | 0.79841 | 0.078257 | 0 | 0.422535 | 0 | 0 | 0.765043 | 0.012034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce90ad08ae1e89a4b497c7dcbd24f5d92a0ba879 | 428 | py | Python | travel/migrations/0029_auto_20190514_2108.py | sausage-team/travel-notes | 3c2454ebad7764906c5ff30cbdfe296cb7c64eb4 | [
"MIT"
] | null | null | null | travel/migrations/0029_auto_20190514_2108.py | sausage-team/travel-notes | 3c2454ebad7764906c5ff30cbdfe296cb7c64eb4 | [
"MIT"
] | null | null | null | travel/migrations/0029_auto_20190514_2108.py | sausage-team/travel-notes | 3c2454ebad7764906c5ff30cbdfe296cb7c64eb4 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-14 13:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('travel', '0028_auto_20190514_1929'),
]
operations = [
migrations.AlterField(
model_name='user',
name='uid',
... | 22.526316 | 98 | 0.616822 | 48 | 428 | 5.395833 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161392 | 0.261682 | 428 | 18 | 99 | 23.777778 | 0.658228 | 0.10514 | 0 | 0 | 1 | 0 | 0.188976 | 0.154856 | 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 |
ce9550e5fc7912aecc7ac103430d2e2845e818b7 | 12,566 | gyp | Python | ui/gfx/gfx.gyp | cvsuser-chromium/chromium | acb8e8e4a7157005f527905b48dd48ddaa3b863a | [
"BSD-3-Clause"
] | 4 | 2017-04-05T01:51:34.000Z | 2018-02-15T03:11:54.000Z | ui/gfx/gfx.gyp | cvsuser-chromium/chromium | acb8e8e4a7157005f527905b48dd48ddaa3b863a | [
"BSD-3-Clause"
] | 1 | 2021-12-13T19:44:12.000Z | 2021-12-13T19:44:12.000Z | ui/gfx/gfx.gyp | cvsuser-chromium/chromium | acb8e8e4a7157005f527905b48dd48ddaa3b863a | [
"BSD-3-Clause"
] | 4 | 2017-04-05T01:52:03.000Z | 2022-02-13T17:58:45.000Z | # Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'gfx',
'type': '<(component)',
'dependencies': [
... | 29.990453 | 100 | 0.524988 | 1,392 | 12,566 | 4.427443 | 0.193966 | 0.035697 | 0.019633 | 0.017037 | 0.201038 | 0.118449 | 0.074963 | 0.041214 | 0.041214 | 0.041214 | 0 | 0.008554 | 0.320866 | 12,566 | 418 | 101 | 30.062201 | 0.713616 | 0.045758 | 0 | 0.222222 | 0 | 0 | 0.565584 | 0.293479 | 0 | 0 | 0 | 0.002392 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ceac7c7a86d7f596354c9e7181c0d362a2bc878a | 1,478 | py | Python | tests/test_mangling.py | ecoinvent/brightway2-parameters | 0b42466bf33655087e231364a7d677c6c114a046 | [
"BSD-3-Clause"
] | null | null | null | tests/test_mangling.py | ecoinvent/brightway2-parameters | 0b42466bf33655087e231364a7d677c6c114a046 | [
"BSD-3-Clause"
] | 1 | 2019-12-26T15:18:49.000Z | 2019-12-26T15:18:49.000Z | tests/test_mangling.py | ecoinvent/brightway2-parameters | 0b42466bf33655087e231364a7d677c6c114a046 | [
"BSD-3-Clause"
] | 1 | 2021-07-05T12:14:49.000Z | 2021-07-05T12:14:49.000Z | from bw2parameters import *
def test_mangle_formula():
given = "log(foo * bar) + 7 / baz"
prefix = "pre"
assert mangle_formula(given, prefix, ['bar']) == '(log((pre__foo * bar)) + (7 / pre__baz))'
def test_prefix_parameter_dict():
given = {
'a': {'formula': 'a + b / c', 'foo': True},
... | 35.190476 | 95 | 0.525034 | 191 | 1,478 | 3.816754 | 0.21466 | 0.030178 | 0.130316 | 0.164609 | 0.400549 | 0.351166 | 0.29904 | 0.238683 | 0.096022 | 0 | 0 | 0.014286 | 0.242219 | 1,478 | 41 | 96 | 36.04878 | 0.636607 | 0 | 0 | 0.111111 | 0 | 0 | 0.275372 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0 | 0.027778 | 0 | 0.111111 | 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 |
ceb07de7a23c054666d87af2b849db00c172593e | 819 | py | Python | Config/Texts/NFSW/NFSW.py | amiralirj/DarkHelper | 386eea58eb6b9766d6f900a83f87eeac0b8f09c2 | [
"MIT"
] | 34 | 2021-08-05T12:41:18.000Z | 2021-11-30T22:23:20.000Z | Config/Texts/NFSW/NFSW.py | amiralirj/DarkHelper | 386eea58eb6b9766d6f900a83f87eeac0b8f09c2 | [
"MIT"
] | 2 | 2021-08-29T10:32:02.000Z | 2021-08-31T12:10:29.000Z | Config/Texts/NFSW/NFSW.py | amiralirj/DarkHelper | 386eea58eb6b9766d6f900a83f87eeac0b8f09c2 | [
"MIT"
] | 5 | 2021-08-07T07:41:44.000Z | 2021-08-20T13:52:36.000Z | NFSW_Texts = [
'سکس'
,'گایید'
,' کص'
,'جنده'
,'کیر'
,'jnde'
,'jende'
,'kos'
,'pussy'
,'kir'
,'lashi'
,'لاشی'
,'jakesh'
,'جاکش'
,'مادر خراب'
,'madar kharab'
,'mde kharab'
,'khar kose'
,'fuck'
,'bitch'
,'haroomzade'
,'حرومی'
,'حرامزاده'
,'حرومزاده'
,'جندس'
,'کصه '
]
NFSW_Names=[
'خاله'
,'ج... | 14.625 | 45 | 0.577534 | 87 | 819 | 5.45977 | 0.689655 | 0.082105 | 0.071579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004458 | 0.178266 | 819 | 56 | 46 | 14.625 | 0.695394 | 0 | 0 | 0.037736 | 0 | 0 | 0.649673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cec69b53aae0a98c800aee68729ab0b6f22dfd50 | 1,976 | py | Python | cli/asciiart.py | Christophe1997/pyramid | d135c86329b6527d54535d95c0db8b5d2da6cc8c | [
"Apache-2.0"
] | null | null | null | cli/asciiart.py | Christophe1997/pyramid | d135c86329b6527d54535d95c0db8b5d2da6cc8c | [
"Apache-2.0"
] | null | null | null | cli/asciiart.py | Christophe1997/pyramid | d135c86329b6527d54535d95c0db8b5d2da6cc8c | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
"""Convert picture to asciiArt, requrie python3.6 or higher.
Dependence:
- fire
- PIL
- numpy
Usage:
- chmod +x asciiart.py
- asciiart.py ${path_to_image} [Height] [Width]
Also, you can remove the filetype ".py" and put it to $HOME/bin/ then enjoy it:)
One example:
*&&&&&&&&&... | 29.058824 | 87 | 0.34666 | 150 | 1,976 | 4.453333 | 0.573333 | 0.040419 | 0.023952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009053 | 0.273279 | 1,976 | 67 | 88 | 29.492537 | 0.456128 | 0.551113 | 0 | 0.148148 | 0 | 0 | 0.046644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.37037 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cec7fff35f1ea56bf0187cca1f5248b7d68f0fa3 | 14,729 | py | Python | main.py | ceciliazhang12/resource-reservation-system | d680582a41d39b1558b85d1e42f9006eb07caef8 | [
"Apache-2.0"
] | null | null | null | main.py | ceciliazhang12/resource-reservation-system | d680582a41d39b1558b85d1e42f9006eb07caef8 | [
"Apache-2.0"
] | null | null | null | main.py | ceciliazhang12/resource-reservation-system | d680582a41d39b1558b85d1e42f9006eb07caef8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 39.808108 | 136 | 0.63263 | 1,630 | 14,729 | 5.552147 | 0.160736 | 0.036464 | 0.032486 | 0.027845 | 0.499558 | 0.443978 | 0.365635 | 0.330608 | 0.242762 | 0.199558 | 0 | 0.005042 | 0.259352 | 14,729 | 369 | 137 | 39.915989 | 0.824549 | 0.068233 | 0 | 0.383142 | 0 | 0.003831 | 0.106896 | 0.01376 | 0.003831 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042146 | null | null | 0.003831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0c6a40a4bea2c4e73231cb976a84217ada08384c | 2,098 | py | Python | tests/test_utils.py | Guillerbr/python-pagseguro | 279eacf251e99a2f15d665f8193fcad0be6ea0bf | [
"MIT"
] | 115 | 2015-02-19T22:17:44.000Z | 2019-07-24T17:31:30.000Z | tests/test_utils.py | rubens8848/python-pagseguro | 08a8aa7f934b16d00948ead17a0e470a88f2479f | [
"MIT"
] | 49 | 2015-03-04T00:53:31.000Z | 2019-07-13T16:41:22.000Z | tests/test_utils.py | rubens8848/python-pagseguro | 08a8aa7f934b16d00948ead17a0e470a88f2479f | [
"MIT"
] | 53 | 2015-01-12T22:13:33.000Z | 2019-07-20T01:52:48.000Z | # -*- coding: utf-8 -*-
import datetime
from pagseguro.utils import (is_valid_cpf, is_valid_cnpj, is_valid_email,
parse_date)
from pagseguro.exceptions import PagSeguroValidationError
import pytest
from dateutil.tz import tzutc
def test_is_valid_email():
valid = 'test@email.com'
... | 26.897436 | 78 | 0.674452 | 259 | 2,098 | 5.227799 | 0.274131 | 0.108567 | 0.106352 | 0.265879 | 0.502954 | 0.426883 | 0.426883 | 0.121861 | 0 | 0 | 0 | 0.11253 | 0.216397 | 2,098 | 77 | 79 | 27.246753 | 0.709246 | 0.028122 | 0 | 0.173077 | 0 | 0 | 0.130157 | 0.012279 | 0 | 0 | 0 | 0 | 0.134615 | 1 | 0.076923 | false | 0 | 0.096154 | 0 | 0.173077 | 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 |
0c6dab3b29d248c78a200aec1e3449a5aeb04604 | 33,383 | py | Python | sandbox/riskModelsResultsEval.py | danbirks/PredictCode | b4d7010d13706c771ba57437e9c7589e5c94329b | [
"Artistic-2.0"
] | null | null | null | sandbox/riskModelsResultsEval.py | danbirks/PredictCode | b4d7010d13706c771ba57437e9c7589e5c94329b | [
"Artistic-2.0"
] | null | null | null | sandbox/riskModelsResultsEval.py | danbirks/PredictCode | b4d7010d13706c771ba57437e9c7589e5c94329b | [
"Artistic-2.0"
] | 2 | 2020-01-28T23:02:54.000Z | 2020-02-03T16:04:38.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed May 15 10:22:47 2019
@author: lawdfo
Purpose:
Read in the csv results file generated by (e.g.) riskModelsParamSweep.py
and report back some useful statistics.
"""
# Some fairly standard modules
import os, csv, lzma
import numpy as np
import matplotlib.pyplot as ... | 33.550754 | 130 | 0.623371 | 4,311 | 33,383 | 4.561123 | 0.143586 | 0.014596 | 0.012104 | 0.011392 | 0.342521 | 0.284748 | 0.244927 | 0.219244 | 0.202105 | 0.186747 | 0 | 0.016057 | 0.291076 | 33,383 | 994 | 131 | 33.584507 | 0.814798 | 0.18129 | 0 | 0.198454 | 1 | 0 | 0.100582 | 0.025904 | 0.002577 | 0 | 0 | 0 | 0 | 1 | 0.033505 | false | 0.002577 | 0.054124 | 0 | 0.110825 | 0.139175 | 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 |
0c6e32f7e7283b6370a0de49f39a51f43f1b82bb | 1,280 | py | Python | HIV model/others.py | omisolaidowu/HIV-story-telling | 290fbb9549ff0177fb2224553575aa24813fdc6a | [
"Apache-2.0"
] | null | null | null | HIV model/others.py | omisolaidowu/HIV-story-telling | 290fbb9549ff0177fb2224553575aa24813fdc6a | [
"Apache-2.0"
] | null | null | null | HIV model/others.py | omisolaidowu/HIV-story-telling | 290fbb9549ff0177fb2224553575aa24813fdc6a | [
"Apache-2.0"
] | null | null | null | '''
-*- coding: utf-8 -*-
Created on Fri Jan 17 12:34:15 2020
@author: Paul
'''
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import train_test_split
df=pd.read_excel(r'C:\Users\Paul\Desktop\Python projects\HIV_3.xlsx')
print(df)
... | 29.767442 | 158 | 0.683594 | 194 | 1,280 | 4.427835 | 0.608247 | 0.090803 | 0.125728 | 0.160652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089029 | 0.13125 | 1,280 | 42 | 159 | 30.47619 | 0.683453 | 0.249219 | 0 | 0 | 0 | 0 | 0.277839 | 0.058434 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 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 |
0c82f844757360c3545bf98aad68a6f84622e3da | 711 | py | Python | app/core/migrations/0009_auto_20210214_2113.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | app/core/migrations/0009_auto_20210214_2113.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | app/core/migrations/0009_auto_20210214_2113.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-14 18:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0008_auto_20210214_2039'),
]
operations = [
migrations.AlterField(
model_name='device',
name='ip_address',
... | 29.625 | 138 | 0.613221 | 88 | 711 | 4.818182 | 0.647727 | 0.09434 | 0.117925 | 0.136792 | 0.273585 | 0.273585 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 0.251758 | 711 | 23 | 139 | 30.913043 | 0.704887 | 0.063291 | 0 | 0.352941 | 1 | 0 | 0.180723 | 0.034639 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c85c0c3fc3e88d3d1512b447e6a7c16569279b2 | 1,376 | py | Python | nginx_rtmp_wizard/models.py | Gerhut/nginx-rtmp-wizard | c821c3bb262503ee26408b8b3bf4a252b49a29d6 | [
"Unlicense"
] | null | null | null | nginx_rtmp_wizard/models.py | Gerhut/nginx-rtmp-wizard | c821c3bb262503ee26408b8b3bf4a252b49a29d6 | [
"Unlicense"
] | 1 | 2021-06-10T20:32:59.000Z | 2021-06-10T20:32:59.000Z | nginx_rtmp_wizard/models.py | Gerhut/nginx-rtmp-wizard | c821c3bb262503ee26408b8b3bf4a252b49a29d6 | [
"Unlicense"
] | null | null | null | from django.conf import settings
from django.core import validators
from django.db import models
DEFAULT_RTMP_PORT = 1935
class Server(models.Model):
listen = models.PositiveIntegerField(
default=DEFAULT_RTMP_PORT,
unique=True,
validators=[
validators.MinValueValidator(1024),
... | 27.52 | 77 | 0.634448 | 140 | 1,376 | 6.05 | 0.385714 | 0.035419 | 0.053129 | 0.070838 | 0.085006 | 0.085006 | 0 | 0 | 0 | 0 | 0 | 0.015474 | 0.248547 | 1,376 | 49 | 78 | 28.081633 | 0.803675 | 0 | 0 | 0.236842 | 0 | 0 | 0.059593 | 0.021802 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.078947 | 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 |
0c914b89127421ea137b1e5268f255c0188586da | 775 | py | Python | contoh_2.py | sumarouno/4x4-Matrix-Keypad-Library-for-CHIP | 42794c3460818714fccc1c5a967e151504ef2ade | [
"MIT"
] | null | null | null | contoh_2.py | sumarouno/4x4-Matrix-Keypad-Library-for-CHIP | 42794c3460818714fccc1c5a967e151504ef2ade | [
"MIT"
] | null | null | null | contoh_2.py | sumarouno/4x4-Matrix-Keypad-Library-for-CHIP | 42794c3460818714fccc1c5a967e151504ef2ade | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from time import sleep
from sys import exit
import keypad_4x4_lib_sumar
kp =keypad_4x4_lib_sumar.keypad()
# Setup variables
attempt = "0000"
passcode = "1912"
counter = 0
# Loop while waiting for a keypress
while True:
# Loop to get a pressed digit
digit = None
while digit == None:
digit = ... | 18.452381 | 43 | 0.658065 | 111 | 775 | 4.540541 | 0.531532 | 0.035714 | 0.047619 | 0.06746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036184 | 0.215484 | 775 | 41 | 44 | 18.902439 | 0.792763 | 0.176774 | 0 | 0.074074 | 0 | 0 | 0.208861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.074074 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0c9646550e91efca615eedc91a6895d4f88c0e06 | 276 | py | Python | fdk_client/common/date_helper.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/common/date_helper.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/common/date_helper.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | from datetime import datetime
import pytz
from .constants import TIMEZONE
timezone = pytz.timezone(TIMEZONE)
def get_ist_now():
"""Returns Indian Standard Time datetime object.
Returns:
object -- Datetime object
"""
return datetime.now(timezone)
| 16.235294 | 52 | 0.710145 | 32 | 276 | 6.0625 | 0.5 | 0.14433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213768 | 276 | 16 | 53 | 17.25 | 0.894009 | 0.307971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0c998b3ac75eae9f76dce560875ced69e8123b01 | 6,511 | py | Python | cmdb_v0.1/apps/detail/models.py | codemaker-man/projects | 334aac28b72a7b466fba23df4db11e95df13a3ec | [
"MIT"
] | 1 | 2018-12-05T05:29:46.000Z | 2018-12-05T05:29:46.000Z | cmdb_v0.1/apps/detail/models.py | codemaker-man/projects | 334aac28b72a7b466fba23df4db11e95df13a3ec | [
"MIT"
] | null | null | null | cmdb_v0.1/apps/detail/models.py | codemaker-man/projects | 334aac28b72a7b466fba23df4db11e95df13a3ec | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from django.db import models
import django.utils.timezone as timezone
# 用户登录信息表(服务器、虚拟机)
class ConnectionInfo(models.Model):
# 用户连接相关信息
ssh_username = models.CharField(max_length=10, default='', verbose_name=u'ssh用户名', null=True)
ssh_userpasswd = models.CharField(max_length=40, defa... | 42.835526 | 109 | 0.714176 | 875 | 6,511 | 5.106286 | 0.213714 | 0.184646 | 0.15846 | 0.198747 | 0.649284 | 0.602283 | 0.547449 | 0.484781 | 0.435989 | 0.34624 | 0 | 0.024239 | 0.157272 | 6,511 | 151 | 110 | 43.119205 | 0.790049 | 0.083397 | 0 | 0.285714 | 0 | 0 | 0.119024 | 0.010943 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.040816 | 0.020408 | 0 | 0.744898 | 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 |
0c9b51976e219b5f5ddeb4bf2182d69d5aa73bdd | 1,202 | py | Python | backend/api/migrations/0002_auto_20210517_0943.py | luxu/django-vue-luxu | a4da215697df578074e354d43dd1d9995490d0db | [
"MIT"
] | null | null | null | backend/api/migrations/0002_auto_20210517_0943.py | luxu/django-vue-luxu | a4da215697df578074e354d43dd1d9995490d0db | [
"MIT"
] | null | null | null | backend/api/migrations/0002_auto_20210517_0943.py | luxu/django-vue-luxu | a4da215697df578074e354d43dd1d9995490d0db | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-05-17 12:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Pavilhao',
fiel... | 33.388889 | 117 | 0.578203 | 118 | 1,202 | 5.771186 | 0.474576 | 0.035242 | 0.096916 | 0.127753 | 0.349486 | 0.349486 | 0.349486 | 0.349486 | 0.349486 | 0.349486 | 0 | 0.025671 | 0.287022 | 1,202 | 35 | 118 | 34.342857 | 0.768961 | 0.035774 | 0 | 0.37931 | 1 | 0 | 0.079516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.172414 | 0 | 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 |
0ca263d5ceb8c0df9da68a027a9e2c49d50656ac | 268 | py | Python | data/landice-5g/tiff_to_shp.py | scottsfarley93/IceSheetsViz | f4af84f16af875c5753dca6b8c173c253d9218d4 | [
"MIT"
] | null | null | null | data/landice-5g/tiff_to_shp.py | scottsfarley93/IceSheetsViz | f4af84f16af875c5753dca6b8c173c253d9218d4 | [
"MIT"
] | 1 | 2017-02-28T18:49:04.000Z | 2017-02-28T18:49:55.000Z | data/landice-5g/tiff_to_shp.py | scottsfarley93/IceSheetsViz | f4af84f16af875c5753dca6b8c173c253d9218d4 | [
"MIT"
] | null | null | null | import os
for filename in os.listdir("rasters"):
print filename
f = filename.replace(".tiff", "")
tiff = "rasters/" + filename
out = "shapefiles/" + f + ".shp"
cmd = "gdal_polygonize.py " + tiff + " -f 'ESRI Shapefile' " + out
os.system(cmd)
| 24.363636 | 70 | 0.589552 | 33 | 268 | 4.757576 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242537 | 268 | 10 | 71 | 26.8 | 0.773399 | 0 | 0 | 0 | 0 | 0 | 0.279851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ca33e888a8c5506799931e71fe1070bf6588145 | 3,758 | py | Python | we_sensesim.py | y95847frank/GenSense | 0da122bea9b7bd51444748444700b5f788bd8a48 | [
"MIT"
] | 3 | 2018-05-31T05:52:18.000Z | 2019-12-20T07:15:56.000Z | we_sensesim.py | y95847frank/GenSense | 0da122bea9b7bd51444748444700b5f788bd8a48 | [
"MIT"
] | null | null | null | we_sensesim.py | y95847frank/GenSense | 0da122bea9b7bd51444748444700b5f788bd8a48 | [
"MIT"
] | null | null | null | import numpy as np
import sys
import utils
import os
from collections import defaultdict
from nltk.corpus import wordnet as wn
from scipy.spatial.distance import cosine
from scipy.spatial.distance import correlation
from numpy.linalg import norm
from scipy.stats import spearmanr, pearsonr
from utils import trim
import... | 33.256637 | 140 | 0.549228 | 475 | 3,758 | 4.208421 | 0.307368 | 0.030015 | 0.025013 | 0.01951 | 0.245623 | 0.191596 | 0.191596 | 0.131566 | 0.11906 | 0.11906 | 0 | 0.024496 | 0.326503 | 3,758 | 112 | 141 | 33.553571 | 0.76531 | 0.045769 | 0 | 0.101449 | 0 | 0 | 0.065465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.173913 | null | null | 0.101449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0cab395492740b9b3d338ab6d9a913dcbe6912e1 | 1,327 | py | Python | src/pages/random.py | jojo935/Kemono2 | bdfaf0ab2dd3c2c4a04805feea8e9fb6193cbd9b | [
"BSD-3-Clause"
] | null | null | null | src/pages/random.py | jojo935/Kemono2 | bdfaf0ab2dd3c2c4a04805feea8e9fb6193cbd9b | [
"BSD-3-Clause"
] | null | null | null | src/pages/random.py | jojo935/Kemono2 | bdfaf0ab2dd3c2c4a04805feea8e9fb6193cbd9b | [
"BSD-3-Clause"
] | null | null | null | from flask import Blueprint, redirect, url_for, g
from ..utils.utils import make_cache_key
from ..internals.cache.redis import get_conn
from ..internals.cache.flask_cache import cache
from ..internals.database.database import get_cursor
from ..lib.artist import get_artist, get_random_artist_keys
from ..lib.po... | 30.159091 | 116 | 0.699322 | 187 | 1,327 | 4.716578 | 0.245989 | 0.081633 | 0.068027 | 0.045351 | 0.160998 | 0.160998 | 0.099773 | 0.099773 | 0.099773 | 0 | 0 | 0.009294 | 0.189148 | 1,327 | 43 | 117 | 30.860465 | 0.810409 | 0 | 0 | 0.121212 | 0 | 0 | 0.064642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.30303 | 0 | 0.666667 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0cac991dc2d4d32121af9b2da9f1960fba266638 | 917 | py | Python | benchmark_constructor/file_normalizers/ContactSelectFileNormalizer.py | Kortemme-Lab/benchmark_set_construct | ee6c9e097ff49d370936b41f102ada006fb4441a | [
"MIT"
] | null | null | null | benchmark_constructor/file_normalizers/ContactSelectFileNormalizer.py | Kortemme-Lab/benchmark_set_construct | ee6c9e097ff49d370936b41f102ada006fb4441a | [
"MIT"
] | null | null | null | benchmark_constructor/file_normalizers/ContactSelectFileNormalizer.py | Kortemme-Lab/benchmark_set_construct | ee6c9e097ff49d370936b41f102ada006fb4441a | [
"MIT"
] | null | null | null | import os
from .FileNormalizer import FileNormalizer
class ContactSelectFileNormalizer(FileNormalizer):
'''ContactSelectFileNormalizer creates a pymol script that selects
residues which have contacts to asymmetric units.
'''
def __init__(self):
pass
def normalize_one_file(self, path, crystal_con... | 31.62069 | 94 | 0.691385 | 122 | 917 | 4.92623 | 0.5 | 0.139767 | 0.141431 | 0.133111 | 0.076539 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005413 | 0.194111 | 917 | 28 | 95 | 32.75 | 0.807848 | 0.123228 | 0 | 0 | 0 | 0 | 0.181013 | 0.08481 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.117647 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0cac9d083e4dfd2daccd29d3da4102e79f646255 | 1,919 | py | Python | neurovault/apps/statmaps/tests/test_qa.py | abitrolly/NeuroVault | e62bc65c8e0e58bff55bb9fa7cf11193dc54d734 | [
"MIT"
] | 68 | 2015-02-07T06:09:49.000Z | 2022-03-03T22:58:33.000Z | neurovault/apps/statmaps/tests/test_qa.py | abitrolly/NeuroVault | e62bc65c8e0e58bff55bb9fa7cf11193dc54d734 | [
"MIT"
] | 436 | 2015-01-01T01:01:13.000Z | 2021-11-07T18:24:00.000Z | neurovault/apps/statmaps/tests/test_qa.py | abitrolly/NeuroVault | e62bc65c8e0e58bff55bb9fa7cf11193dc54d734 | [
"MIT"
] | 60 | 2015-01-10T23:31:26.000Z | 2021-08-10T06:39:57.000Z | import os
import nibabel as nb
import numpy as np
from django.test import TestCase
from neurovault.apps.statmaps.models import BaseStatisticMap
from neurovault.apps.statmaps.utils import is_thresholded, infer_map_type
class QATest(TestCase):
def setUp(self):
this_path = os.path.abspath(os.path.dirname(... | 50.5 | 112 | 0.684211 | 283 | 1,919 | 4.480565 | 0.392226 | 0.063091 | 0.082808 | 0.094637 | 0.180599 | 0.180599 | 0.10489 | 0.085962 | 0.050473 | 0 | 0 | 0.024422 | 0.189161 | 1,919 | 38 | 113 | 50.5 | 0.790488 | 0.038041 | 0 | 0 | 0 | 0 | 0.072087 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | null | null | 0 | 0.2 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0caeebf4e3ed3af12c71f32665fdf047f4676dd8 | 497 | py | Python | backend/app/utils.py | dashdashforce/int20h-test-photo-viewer | 1720ec2c30685eac9d1e5ef9ecf3d389239ee566 | [
"MIT"
] | null | null | null | backend/app/utils.py | dashdashforce/int20h-test-photo-viewer | 1720ec2c30685eac9d1e5ef9ecf3d389239ee566 | [
"MIT"
] | 20 | 2019-02-04T21:57:59.000Z | 2019-02-10T21:50:17.000Z | backend/app/utils.py | dashdashforce/int20h-test-photo-viewer | 1720ec2c30685eac9d1e5ef9ecf3d389239ee566 | [
"MIT"
] | null | null | null |
from functools import reduce
from itertools import groupby
from operator import add, itemgetter
def merge_records_by(key, combine):
return lambda first, second: {
k: first[k] if k == key else combine(first[k], second[k])
for k in first
}
def merge_list_of_records_by(key, combine):
keypr... | 24.85 | 68 | 0.682093 | 69 | 497 | 4.782609 | 0.42029 | 0.081818 | 0.109091 | 0.172727 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227364 | 497 | 19 | 69 | 26.157895 | 0.859375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.071429 | 0.5 | 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 |
0cb93959fe2a17c6bba6b5049a41d091d98ecf1d | 1,174 | py | Python | slixmpp/plugins/xep_0421/stanza.py | cnngimenez/slixmpp | bb61f0f39dfba205282dab50c0f3a47b26145c74 | [
"BSD-3-Clause"
] | null | null | null | slixmpp/plugins/xep_0421/stanza.py | cnngimenez/slixmpp | bb61f0f39dfba205282dab50c0f3a47b26145c74 | [
"BSD-3-Clause"
] | null | null | null | slixmpp/plugins/xep_0421/stanza.py | cnngimenez/slixmpp | bb61f0f39dfba205282dab50c0f3a47b26145c74 | [
"BSD-3-Clause"
] | null | null | null | """
Slixmpp: The Slick XMPP Library
Copyright (C) 2020 "Maxime “pep” Buquet <pep@bouah.net>"
This file is part of Slixmpp.
See the file LICENSE for copying permission.
"""
from slixmpp.xmlstream import ElementBase
NS = 'urn:xmpp:occupant-id:0'
class OccupantId(ElementBase):
'''
An Occupant... | 28.634146 | 78 | 0.663543 | 164 | 1,174 | 4.75 | 0.536585 | 0.115533 | 0.057766 | 0.065469 | 0.238768 | 0.215661 | 0.138639 | 0.138639 | 0.138639 | 0.138639 | 0 | 0.016181 | 0.210392 | 1,174 | 40 | 79 | 29.35 | 0.824164 | 0.764055 | 0 | 0 | 0 | 0 | 0.192308 | 0.120879 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0cbd80d538ed5aeecd342647472ca2c49593352a | 3,110 | py | Python | TaxPy/data_processing/export_reads.py | stenglein-lab/TaxAssessor | 144599d1395627c4e86ab68a4d6d3e0785e606f0 | [
"MIT"
] | null | null | null | TaxPy/data_processing/export_reads.py | stenglein-lab/TaxAssessor | 144599d1395627c4e86ab68a4d6d3e0785e606f0 | [
"MIT"
] | 2 | 2016-11-29T19:48:27.000Z | 2016-12-09T17:18:56.000Z | TaxPy/data_processing/export_reads.py | stenglein-lab/TaxAssessor | 144599d1395627c4e86ab68a4d6d3e0785e606f0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import json
import timeit
import re
import TaxPy.db_management.db_wrap as TaxDb
from itertools import izip
def retrieveReads(userName,fileName,fileId,parentTaxId,query):
time1 = timeit.default_timer()
taxTree = loadTaxTree(userName,fileName)
time2 = timeit.default_timer()
print str... | 27.280702 | 76 | 0.618971 | 355 | 3,110 | 5.385915 | 0.278873 | 0.050209 | 0.047071 | 0.048117 | 0.376569 | 0.285565 | 0.259414 | 0.259414 | 0.23954 | 0.23954 | 0 | 0.009142 | 0.261415 | 3,110 | 113 | 77 | 27.522124 | 0.823248 | 0.005145 | 0 | 0.361446 | 0 | 0 | 0.107986 | 0.021339 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.024096 | 0.060241 | null | null | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cc0bf99ee01e613b032f7efe713db47ddaef6b6 | 1,137 | py | Python | ossdbtoolsservice/metadata/contracts/object_metadata.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 33 | 2019-05-27T13:04:35.000Z | 2022-03-17T13:33:05.000Z | ossdbtoolsservice/metadata/contracts/object_metadata.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 31 | 2019-06-10T01:55:47.000Z | 2022-03-09T07:27:49.000Z | ossdbtoolsservice/metadata/contracts/object_metadata.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 25 | 2019-05-13T18:39:24.000Z | 2021-11-16T03:07:33.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 34.454545 | 156 | 0.591029 | 116 | 1,137 | 5.646552 | 0.5 | 0.128244 | 0.109924 | 0.058015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004278 | 0.177661 | 1,137 | 32 | 157 | 35.53125 | 0.696257 | 0.358839 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.055556 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0cc52afa5bda9e011a3f67aa407ce29b267af421 | 1,409 | py | Python | Unit 7 Objects/LessonQ33.1.py | ItsMrTurtle/PythonChris | 4513dea336e68f48fabf480ad87bc538a323c2cd | [
"MIT"
] | null | null | null | Unit 7 Objects/LessonQ33.1.py | ItsMrTurtle/PythonChris | 4513dea336e68f48fabf480ad87bc538a323c2cd | [
"MIT"
] | null | null | null | Unit 7 Objects/LessonQ33.1.py | ItsMrTurtle/PythonChris | 4513dea336e68f48fabf480ad87bc538a323c2cd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed May 27 18:48:24 2020
@author: Christopher Cheng
"""
class Stack(object):
def __init__ (self):
self.stack = []
def get_stack_elements(self):
return self.stack.copy()
def add_one(self, item):
self.stack.append(item)
def add_many(self,ite... | 26.092593 | 71 | 0.581973 | 193 | 1,409 | 4.046632 | 0.316062 | 0.115237 | 0.057618 | 0.043534 | 0.203585 | 0.104994 | 0.053777 | 0 | 0 | 0 | 0 | 0.017822 | 0.28318 | 1,409 | 54 | 72 | 26.092593 | 0.755446 | 0.088715 | 0 | 0.266667 | 0 | 0 | 0.014107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.311111 | false | 0 | 0 | 0.088889 | 0.466667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cc75fc2057f1d904d4d63b853c8dc9ff11fc8ab | 987 | py | Python | featureflags/config.py | enverbisevac/ff-python-server-sdk | e7c809229d13517e0bf4b28fc0a556e693c9034e | [
"Apache-2.0"
] | null | null | null | featureflags/config.py | enverbisevac/ff-python-server-sdk | e7c809229d13517e0bf4b28fc0a556e693c9034e | [
"Apache-2.0"
] | null | null | null | featureflags/config.py | enverbisevac/ff-python-server-sdk | e7c809229d13517e0bf4b28fc0a556e693c9034e | [
"Apache-2.0"
] | null | null | null | """Configuration is a base class that has default values that you can change
during the instance of the client class"""
from typing import Callable
BASE_URL = "https://config.feature-flags.uat.harness.io/api/1.0"
MINUTE = 60
PULL_INTERVAL = 1 * MINUTE
class Config(object):
def __init__(self, base_url: str = BA... | 25.973684 | 76 | 0.64843 | 130 | 987 | 4.723077 | 0.415385 | 0.102606 | 0.053746 | 0.068404 | 0.120521 | 0.120521 | 0.120521 | 0 | 0 | 0 | 0 | 0.006897 | 0.265451 | 987 | 37 | 77 | 26.675676 | 0.84 | 0.114488 | 0 | 0.166667 | 0 | 0 | 0.058756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cc7dbac1b53714dc8579ed543f77deb34610c57 | 1,705 | py | Python | src/users/management/commands/populate_tables.py | pimpale/BQuest-Backend | b32833ee5053db1c47fa28f57273632eae43a5cc | [
"MIT"
] | null | null | null | src/users/management/commands/populate_tables.py | pimpale/BQuest-Backend | b32833ee5053db1c47fa28f57273632eae43a5cc | [
"MIT"
] | 51 | 2018-01-24T05:53:15.000Z | 2022-01-13T00:44:24.000Z | src/users/management/commands/populate_tables.py | pimpale/BQuest-Backend | b32833ee5053db1c47fa28f57273632eae43a5cc | [
"MIT"
] | 3 | 2020-04-22T03:21:37.000Z | 2020-12-15T22:45:52.000Z | from django.core.management.base import BaseCommand
from users.models import Major, Minor, Course
from django.db import IntegrityError
from os import path
import json
class Command(BaseCommand):
def _create_majors(self):
base_path = path.dirname(__file__)
majors_path = path.abspath(path.join(base_... | 32.788462 | 85 | 0.567742 | 183 | 1,705 | 5.027322 | 0.240437 | 0.052174 | 0.03913 | 0.052174 | 0.319565 | 0.319565 | 0.192391 | 0 | 0 | 0 | 0 | 0 | 0.337243 | 1,705 | 52 | 86 | 32.788462 | 0.814159 | 0 | 0 | 0.27907 | 0 | 0 | 0.026964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.069767 | 0.116279 | 0 | 0.232558 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ccb7361200b302e98746fb913273e875a9c713b | 593 | py | Python | 2019/06-hsctf/web-networked/solve.py | wani-hackase/wani-writeup | dd4ad0607d2f2193ad94c1ce65359294aa591681 | [
"MIT"
] | 25 | 2019-03-06T11:55:56.000Z | 2021-05-21T22:07:14.000Z | 2019/06-hsctf/web-networked/solve.py | wani-hackase/wani-writeup | dd4ad0607d2f2193ad94c1ce65359294aa591681 | [
"MIT"
] | 1 | 2020-06-25T07:27:15.000Z | 2020-06-25T07:27:15.000Z | 2019/06-hsctf/web-networked/solve.py | wani-hackase/wani-writeup | dd4ad0607d2f2193ad94c1ce65359294aa591681 | [
"MIT"
] | 1 | 2019-02-14T00:42:28.000Z | 2019-02-14T00:42:28.000Z | import requests
text = "0123456789abcdefghijklmnopqrstuvwxyz_}"
flag = "hsctf{"
for _ in range(30):
time = [0.1 for _ in range(38)]
for _ in range(5):
for i in range(38):
payload = {"password": flag + text[i]}
r = requests.post(
"https://networked-password.we... | 21.962963 | 77 | 0.563238 | 69 | 593 | 4.724638 | 0.492754 | 0.08589 | 0.092025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046117 | 0.305228 | 593 | 26 | 78 | 22.807692 | 0.745146 | 0 | 0 | 0 | 0 | 0 | 0.205734 | 0.064081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.0625 | 0 | 0.0625 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0ccc2e5ca0664e29a1337110f68367598882b29e | 3,936 | py | Python | azure-iot-device/azure/iot/device/iothub/models/message.py | elhorton/azure-iot-sdk-python | 484b804a64c245bd92930c13b970ff86f868b5fe | [
"MIT"
] | 1 | 2019-02-06T06:52:44.000Z | 2019-02-06T06:52:44.000Z | azure-iot-device/azure/iot/device/iothub/models/message.py | elhorton/azure-iot-sdk-python | 484b804a64c245bd92930c13b970ff86f868b5fe | [
"MIT"
] | null | null | null | azure-iot-device/azure/iot/device/iothub/models/message.py | elhorton/azure-iot-sdk-python | 484b804a64c245bd92930c13b970ff86f868b5fe | [
"MIT"
] | 1 | 2019-12-17T17:50:43.000Z | 2019-12-17T17:50:43.000Z | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""This mo... | 50.461538 | 298 | 0.649644 | 520 | 3,936 | 4.796154 | 0.301923 | 0.040096 | 0.027265 | 0.036087 | 0.262229 | 0.252606 | 0.252606 | 0.194868 | 0.157979 | 0.157979 | 0 | 0.00718 | 0.221545 | 3,936 | 77 | 299 | 51.116883 | 0.806789 | 0.690041 | 0 | 0 | 0 | 0 | 0.020038 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.125 | false | 0 | 0.03125 | 0.0625 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ccd4f9fbf2b5d4dda1cc40e475be33aa9ef28bc | 320 | py | Python | scraping/test001.py | flaviogf/Exemplos | fc666429f6e90c388e201fb7b7d5801e3c25bd25 | [
"MIT"
] | null | null | null | scraping/test001.py | flaviogf/Exemplos | fc666429f6e90c388e201fb7b7d5801e3c25bd25 | [
"MIT"
] | 5 | 2019-12-29T04:58:10.000Z | 2021-03-11T04:35:15.000Z | scraping/test001.py | flaviogf/Exemplos | fc666429f6e90c388e201fb7b7d5801e3c25bd25 | [
"MIT"
] | null | null | null | import pandas
import requests
with open('avengers.csv', 'w') as file:
file_url = 'https://raw.githubusercontent.com/fivethirtyeight/data/master/avengers/avengers.csv'
response = requests.get(file_url)
file.write(response.text)
with open('avengers.csv', 'r') as file:
data_frame = pandas.read_csv(file)
| 29.090909 | 100 | 0.73125 | 45 | 320 | 5.111111 | 0.555556 | 0.143478 | 0.13913 | 0.165217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13125 | 320 | 10 | 101 | 32 | 0.827338 | 0 | 0 | 0 | 0 | 0 | 0.340625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
0cdc773a241a8d2d5331293406b95caeb6731f44 | 926 | py | Python | tests/test_load_bin_log.py | bols-blue-org/pid_evaluation | af210f2ef7ca49681ff41f4531cfcbd83d70aca0 | [
"MIT"
] | 1 | 2020-08-27T06:30:53.000Z | 2020-08-27T06:30:53.000Z | tests/test_load_bin_log.py | bols-blue-org/ape | af210f2ef7ca49681ff41f4531cfcbd83d70aca0 | [
"MIT"
] | null | null | null | tests/test_load_bin_log.py | bols-blue-org/ape | af210f2ef7ca49681ff41f4531cfcbd83d70aca0 | [
"MIT"
] | null | null | null | import unittest
from ape.load_bin_log import LoadBinLog
class LoadBinTestCase(unittest.TestCase):
def test_LoadBinLogAll(self):
data = LoadBinLog("../tests/log_0_2020-5-1-14-53-42.bin")
self.assertGreater(len(data), 0, "no data")
def test_LoadBinLogString(self):
data = LoadBinLog("..... | 31.931034 | 92 | 0.637149 | 126 | 926 | 4.507937 | 0.388889 | 0.049296 | 0.126761 | 0.161972 | 0.394366 | 0.348592 | 0.348592 | 0.235915 | 0.235915 | 0.235915 | 0 | 0.091521 | 0.197624 | 926 | 28 | 93 | 33.071429 | 0.672948 | 0 | 0 | 0.1 | 0 | 0 | 0.224622 | 0.157667 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.35 | 0.05 | 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 |
0ce7201689d9142cf85fb513dc2bf55a86b13523 | 475 | py | Python | car/migrations/0004_sale_cc.py | jobkarani/carnect | 8675d025e56fc07439b88e873e72a21cbbe747a9 | [
"MIT"
] | null | null | null | car/migrations/0004_sale_cc.py | jobkarani/carnect | 8675d025e56fc07439b88e873e72a21cbbe747a9 | [
"MIT"
] | null | null | null | car/migrations/0004_sale_cc.py | jobkarani/carnect | 8675d025e56fc07439b88e873e72a21cbbe747a9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2022-01-10 12:39
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('car', '0003_auto_20220110_1507'),
]
operations = [
migrations.AddField(
model_name='sale',
... | 22.619048 | 86 | 0.621053 | 54 | 475 | 5.351852 | 0.777778 | 0.076125 | 0.131488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097701 | 0.267368 | 475 | 20 | 87 | 23.75 | 0.732759 | 0.094737 | 0 | 0 | 1 | 0 | 0.074766 | 0.053738 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ce87ae6e8e21068ebe0de253baf4eb583ece22f | 701 | py | Python | conv.py | aenco9/HCAP2021 | d194ba5eab7e361d67f6de3c62f9f17f896ebcf3 | [
"MIT"
] | null | null | null | conv.py | aenco9/HCAP2021 | d194ba5eab7e361d67f6de3c62f9f17f896ebcf3 | [
"MIT"
] | null | null | null | conv.py | aenco9/HCAP2021 | d194ba5eab7e361d67f6de3c62f9f17f896ebcf3 | [
"MIT"
] | null | null | null | import numpy as np
def convolucion(Ioriginal, kernel):
'''Método encargado de realizar una convolución a una imagen
Entrada:
Ioriginal - imagen original en forma de matríz
kernel - kernel para barrer la imagen
Salida:
res - imagen resultante'''
#fr - filas, cr - columnas
fr = len(Ioriginal)-(len(kernel)-1)
c... | 26.961538 | 61 | 0.664765 | 111 | 701 | 4.198198 | 0.405405 | 0.077253 | 0.085837 | 0.055794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012389 | 0.194009 | 701 | 26 | 62 | 26.961538 | 0.812389 | 0.410842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ce945d91f14b7115bc5eeecc89a0cbddf6f0ae2 | 2,925 | py | Python | radical_translations/agents/tests/test_models.py | kingsdigitallab/radical_translations | c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a | [
"MIT"
] | 3 | 2022-02-08T18:03:44.000Z | 2022-03-18T18:10:43.000Z | radical_translations/agents/tests/test_models.py | kingsdigitallab/radical_translations | c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a | [
"MIT"
] | 19 | 2020-05-11T15:36:35.000Z | 2022-02-08T11:26:40.000Z | radical_translations/agents/tests/test_models.py | kingsdigitallab/radical_translations | c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a | [
"MIT"
] | null | null | null | from collections import defaultdict
import pytest
from radical_translations.agents.models import Organisation, Person
pytestmark = pytest.mark.django_db
@pytest.mark.usefixtures("vocabulary")
class TestOrganisation:
def test_agent_type(self, title):
obj = Person(name="person name")
obj.save()
... | 31.793478 | 85 | 0.624274 | 379 | 2,925 | 4.686016 | 0.195251 | 0.070946 | 0.121622 | 0.134009 | 0.573198 | 0.518018 | 0.518018 | 0.429054 | 0.394144 | 0.350225 | 0 | 0.015895 | 0.247179 | 2,925 | 91 | 86 | 32.142857 | 0.790645 | 0 | 0 | 0.409091 | 0 | 0 | 0.163419 | 0.007521 | 0 | 0 | 0 | 0 | 0.409091 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ceb7ee6367f4094900b7a7ad37575ea6ba9548d | 5,680 | py | Python | minidump/streams/MiscInfoStream.py | lucasg/minidump | 18474e3221038abe866256e4e0eb255e33615110 | [
"MIT"
] | 1 | 2021-06-13T10:00:44.000Z | 2021-06-13T10:00:44.000Z | minidump/streams/MiscInfoStream.py | lucasg/minidump | 18474e3221038abe866256e4e0eb255e33615110 | [
"MIT"
] | null | null | null | minidump/streams/MiscInfoStream.py | lucasg/minidump | 18474e3221038abe866256e4e0eb255e33615110 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Author:
# Tamas Jos (@skelsec)
#
import io
import enum
#https://msdn.microsoft.com/en-us/library/windows/desktop/ms680388(v=vs.85).aspx
class MinidumpMiscInfo2Flags1(enum.IntFlag):
MINIDUMP_MISC1_PROCESS_ID = 0x00000001 #ProcessId is used.
MINIDUMP_MISC1_PROCESS_TIMES = 0x00000002 #Proce... | 42.074074 | 170 | 0.757394 | 673 | 5,680 | 6.270431 | 0.139673 | 0.043602 | 0.040521 | 0.064455 | 0.709005 | 0.697393 | 0.686256 | 0.664929 | 0.64455 | 0.64455 | 0 | 0.028994 | 0.13169 | 5,680 | 135 | 171 | 42.074074 | 0.826642 | 0.116021 | 0 | 0.582609 | 0 | 0 | 0.065122 | 0.009189 | 0 | 0 | 0.009988 | 0 | 0 | 1 | 0.06087 | false | 0 | 0.017391 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cec7a7b14ee446e6efc190805ad0c86fcf9567d | 2,565 | py | Python | test/python/transpiler/test_transpile.py | filemaster/qiskit-terra | 8672c407a5a0e34405315f82d5ad5847916e857e | [
"Apache-2.0"
] | null | null | null | test/python/transpiler/test_transpile.py | filemaster/qiskit-terra | 8672c407a5a0e34405315f82d5ad5847916e857e | [
"Apache-2.0"
] | null | null | null | test/python/transpiler/test_transpile.py | filemaster/qiskit-terra | 8672c407a5a0e34405315f82d5ad5847916e857e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2018, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
# pylint: disable=redefined-builtin
"""Tests basic functionality of the transpile function"""
from qiskit import QuantumReg... | 34.2 | 100 | 0.665107 | 332 | 2,565 | 4.975904 | 0.331325 | 0.021792 | 0.053269 | 0.058111 | 0.22276 | 0.22276 | 0.186441 | 0.186441 | 0.186441 | 0.127119 | 0 | 0.019857 | 0.234308 | 2,565 | 74 | 101 | 34.662162 | 0.821283 | 0.245224 | 0 | 0.35 | 0 | 0 | 0.016129 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0.15 | 0.15 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0cee3a5d83fc06ee8d80703cbf5bab61011eb8f9 | 7,039 | py | Python | repiko/module/calculator.py | liggest/RepiKoBot | 5a2aa511e747785ad341c60d809af2a2788963ab | [
"MIT"
] | 1 | 2021-07-29T13:23:58.000Z | 2021-07-29T13:23:58.000Z | repiko/module/calculator.py | liggest/RepiKoBot | 5a2aa511e747785ad341c60d809af2a2788963ab | [
"MIT"
] | null | null | null | repiko/module/calculator.py | liggest/RepiKoBot | 5a2aa511e747785ad341c60d809af2a2788963ab | [
"MIT"
] | null | null | null | import random
class Calculator():
symbol=["+","-","*","/","(",")"]
def __init__(self):
pass
def cal(self,s):
if self.isnumber(s[0]):
return s
elif s[0]=="error":
return ["error",s[1]]
elif "(" in s[0] or ")" in s[0]: #or "^" in s[0]:
el=sel... | 36.661458 | 76 | 0.356016 | 748 | 7,039 | 3.304813 | 0.118984 | 0.064725 | 0.024272 | 0.022249 | 0.542476 | 0.499191 | 0.492718 | 0.486246 | 0.486246 | 0.486246 | 0 | 0.025124 | 0.513709 | 7,039 | 191 | 77 | 36.853403 | 0.692667 | 0.018611 | 0 | 0.442623 | 0 | 0 | 0.025217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0.005464 | 0.005464 | 0 | 0.15847 | 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 |
0cf19d7af68dc81b523b12d529be9b1094af28ac | 891 | py | Python | setup.py | jjhelmus/break_my_python | 4f8165fa3ae2bbe72b21f49156598387ee18b94a | [
"BSD-3-Clause"
] | null | null | null | setup.py | jjhelmus/break_my_python | 4f8165fa3ae2bbe72b21f49156598387ee18b94a | [
"BSD-3-Clause"
] | null | null | null | setup.py | jjhelmus/break_my_python | 4f8165fa3ae2bbe72b21f49156598387ee18b94a | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup
with open('README.md') as f:
long_description = f.read()
setup(
name='break_my_python',
version='0.0.2',
description='This package tries to breaks your python interpreter, do not install it',
long_description=long_description,
author='Jonathan J. Helmus',
autho... | 31.821429 | 90 | 0.655443 | 108 | 891 | 5.277778 | 0.583333 | 0.2 | 0.263158 | 0.136842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015278 | 0.191919 | 891 | 27 | 91 | 33 | 0.776389 | 0 | 0 | 0 | 0 | 0 | 0.571268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 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 |
49078fb3338a8d88957f2187faa7b3d0420743af | 990 | py | Python | feladatok.py | python-feladatok-tesztekkel/-05-02-01-fuggvenyek-halado | 0528125ec429584b21a41635517a3c55dfba559a | [
"CC0-1.0"
] | null | null | null | feladatok.py | python-feladatok-tesztekkel/-05-02-01-fuggvenyek-halado | 0528125ec429584b21a41635517a3c55dfba559a | [
"CC0-1.0"
] | null | null | null | feladatok.py | python-feladatok-tesztekkel/-05-02-01-fuggvenyek-halado | 0528125ec429584b21a41635517a3c55dfba559a | [
"CC0-1.0"
] | null | null | null | # feladat.py
# 1. feladat
# Írjon függvényt szokoev_e néven
# A függvény térjen vissza igaz értékkel, ha a paraméterben megadott évszám szőköév
def szokoev_e(ev:int) -> bool:
# 2. feladat
# A függvény bemenő paraméterei az a, b, c egész számok
# Írjon kódot amely eredményeként az a változóba lesz a legnagyobb szám,... | 28.285714 | 153 | 0.756566 | 152 | 990 | 4.901316 | 0.565789 | 0.008054 | 0.056376 | 0.021477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.171717 | 990 | 34 | 154 | 29.117647 | 0.896341 | 0.734343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b3087eb0d5de6a063260501def92d99d71d6436 | 397 | py | Python | setup.py | TechAtNYU/api-python | 26cfa78208f30c41095484422cd1232aeddbfcb2 | [
"MIT"
] | null | null | null | setup.py | TechAtNYU/api-python | 26cfa78208f30c41095484422cd1232aeddbfcb2 | [
"MIT"
] | null | null | null | setup.py | TechAtNYU/api-python | 26cfa78208f30c41095484422cd1232aeddbfcb2 | [
"MIT"
] | null | null | null | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
description='Tech@NYU API Python Client',
author='TechatNYU',
url='https://github.com/TechAtNYU/pytnyu',
author_email='hello@techatnyu.org',
version='0.0.4',
install_requires=['requests'],
... | 23.352941 | 46 | 0.677582 | 46 | 397 | 5.782609 | 0.73913 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.176322 | 397 | 16 | 47 | 24.8125 | 0.804281 | 0 | 0 | 0 | 0 | 0 | 0.302267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b373158f05135f2dafba65a6ba39cdf0ba87c6d | 1,348 | py | Python | Badger/scripts/besdirac-wms-decaycard-get.py | zhangxt-ihep/IHEPDIRAC | fb53500a998adc43ff0c65c02caf492da2965de5 | [
"MIT"
] | null | null | null | Badger/scripts/besdirac-wms-decaycard-get.py | zhangxt-ihep/IHEPDIRAC | fb53500a998adc43ff0c65c02caf492da2965de5 | [
"MIT"
] | 1 | 2021-03-04T08:48:38.000Z | 2021-03-04T08:48:38.000Z | Badger/scripts/besdirac-wms-decaycard-get.py | zhangxt-ihep/IHEPDIRAC | fb53500a998adc43ff0c65c02caf492da2965de5 | [
"MIT"
] | 2 | 2020-08-26T06:36:51.000Z | 2021-03-04T08:08:34.000Z | #!/usr/bin/env python
import DIRAC
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Base import Script
Script.setUsageMessage( """
Insert random trigger file into the File Catalog
Usage:
%s [option] lfn
""" % Script.scriptName )
fcType = 'FileCatalog'
Script.parseCommandLine( ignoreErrors = False )
options = S... | 25.923077 | 96 | 0.557864 | 126 | 1,348 | 5.880952 | 0.515873 | 0.048583 | 0.037787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171365 | 1,348 | 51 | 97 | 26.431373 | 0.663384 | 0.04451 | 0 | 0.058824 | 0 | 0 | 0.322555 | 0.209779 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147059 | null | null | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b4263d7f857ffd13d9244963a213a2d55a3ea6f | 36,145 | py | Python | fandango/objects.py | rhomspuron/fandango | 51cc7659dfa7ea8c5890a993bbcc4c2049e45136 | [
"CC-BY-3.0"
] | null | null | null | fandango/objects.py | rhomspuron/fandango | 51cc7659dfa7ea8c5890a993bbcc4c2049e45136 | [
"CC-BY-3.0"
] | null | null | null | fandango/objects.py | rhomspuron/fandango | 51cc7659dfa7ea8c5890a993bbcc4c2049e45136 | [
"CC-BY-3.0"
] | null | null | null | #!/usr/bin/env python2.5
#############################################################################
##
## file : objects.py
##
## description : see below
##
## project : Tango Control System
##
## $Author: srubio@cells.es, tcoutinho@cells.es, homs@esrf.fr $
##
##
## $Revision: 2008 $
##
## copyleft : A... | 33.938967 | 89 | 0.56135 | 4,340 | 36,145 | 4.441014 | 0.150691 | 0.02231 | 0.009131 | 0.002179 | 0.230051 | 0.187455 | 0.165404 | 0.142212 | 0.131109 | 0.098008 | 0 | 0.005 | 0.313819 | 36,145 | 1,064 | 90 | 33.970865 | 0.772115 | 0.109171 | 0 | 0.280822 | 0 | 0 | 0.078391 | 0.004631 | 0 | 0 | 0 | 0.00282 | 0.005137 | 0 | null | null | 0.015411 | 0.035959 | null | null | 0.023973 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0b44a978913b26bbf0d8ab188b6560f82d0fe2d3 | 1,068 | py | Python | core/migrations/0044_auto_20190510_0921.py | raheemazeezabiodun/art-backend | 0bc47f3cf6f403101082f201c7fd1ca8108d5731 | [
"MIT"
] | 4 | 2018-03-12T23:49:01.000Z | 2020-07-06T17:37:29.000Z | core/migrations/0044_auto_20190510_0921.py | raheemazeezabiodun/art-backend | 0bc47f3cf6f403101082f201c7fd1ca8108d5731 | [
"MIT"
] | 259 | 2018-02-06T07:53:07.000Z | 2020-06-05T19:18:32.000Z | core/migrations/0044_auto_20190510_0921.py | raheemazeezabiodun/art-backend | 0bc47f3cf6f403101082f201c7fd1ca8108d5731 | [
"MIT"
] | 22 | 2018-01-25T14:02:05.000Z | 2020-06-24T20:37:01.000Z | # Generated by Django 2.1.7 on 2019-05-10 09:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0043_auto_20190424_1029'),
]
operations = [
migrations.RemoveField(
model_name='statetransition',
name='stat... | 38.142857 | 258 | 0.634831 | 105 | 1,068 | 6.333333 | 0.495238 | 0.108271 | 0.108271 | 0.126316 | 0.138346 | 0.138346 | 0 | 0 | 0 | 0 | 0 | 0.042579 | 0.230337 | 1,068 | 27 | 259 | 39.555556 | 0.766423 | 0.042135 | 0 | 0.380952 | 1 | 0 | 0.374143 | 0.065622 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 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 |
0b479dbf807c903d09638149ff0de16acee169e3 | 5,827 | py | Python | apis/python_interface_helpers/stk_env.py | davetrollope-fsml/sequence_toolkit | 49495f679aad1d7c134cf8a189cca1e8acc9f4bd | [
"MIT"
] | null | null | null | apis/python_interface_helpers/stk_env.py | davetrollope-fsml/sequence_toolkit | 49495f679aad1d7c134cf8a189cca1e8acc9f4bd | [
"MIT"
] | null | null | null | apis/python_interface_helpers/stk_env.py | davetrollope-fsml/sequence_toolkit | 49495f679aad1d7c134cf8a189cca1e8acc9f4bd | [
"MIT"
] | null | null | null | from stk_sequence import *
from stk_tcp_server import *
from stk_tcp_client import *
from stk_data_flow import *
from stk_options import stk_clear_cb
import time
class stk_callback:
def __init__(self):
self._caller = None
self._mapobj = None
pass
def add_callback_ref(self,caller):
self._caller = caller
def ... | 34.276471 | 104 | 0.763686 | 913 | 5,827 | 4.529025 | 0.144578 | 0.062878 | 0.027086 | 0.025393 | 0.50399 | 0.440871 | 0.407013 | 0.390085 | 0.359129 | 0.32237 | 0 | 0.001781 | 0.13283 | 5,827 | 169 | 105 | 34.47929 | 0.816545 | 0.101596 | 0 | 0.411765 | 0 | 0 | 0.008617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20915 | false | 0.039216 | 0.039216 | 0.026144 | 0.30719 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b47c0ccbeb35e2ac408d98bd973b27910abd4c8 | 1,163 | py | Python | readfile.py | y-azvd/perceptron | 3cd4cefc7ae54bd8a3df702300ee9797389fef4a | [
"MIT"
] | null | null | null | readfile.py | y-azvd/perceptron | 3cd4cefc7ae54bd8a3df702300ee9797389fef4a | [
"MIT"
] | null | null | null | readfile.py | y-azvd/perceptron | 3cd4cefc7ae54bd8a3df702300ee9797389fef4a | [
"MIT"
] | null | null | null | import numpy as np
##
## @brief function_description
##
## @param filename The filename
##
## @return description_of_the_return_value
##
def readfile(filename):
csvfile = open(filename, "r")
if not csvfile:
print "error"
return -1
rows = []
for row in csvfile:
if row[0] != '#' : # linhas ... | 23.26 | 71 | 0.674119 | 147 | 1,163 | 5.272109 | 0.503401 | 0.03871 | 0.04129 | 0.061935 | 0.092903 | 0.092903 | 0.092903 | 0 | 0 | 0 | 0 | 0.006501 | 0.206363 | 1,163 | 50 | 72 | 23.26 | 0.833153 | 0.436801 | 0 | 0 | 0 | 0 | 0.016181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b5048a8c70006e924308165169ee5c4fabe48fa | 934 | py | Python | asar_pi_applications/asar_vision/robot_distance_incorrect.py | ssnover/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 3 | 2021-01-07T07:46:50.000Z | 2021-11-17T10:48:39.000Z | asar_pi_applications/asar_vision/robot_distance_incorrect.py | ssnover/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 3 | 2018-02-19T20:30:30.000Z | 2018-04-20T23:25:29.000Z | asar_pi_applications/asar_vision/robot_distance_incorrect.py | ssnover95/msd-p18542 | 32bef466f9d5ba55429da2119a14081b3e411d0b | [
"MIT"
] | 1 | 2021-01-07T07:46:52.000Z | 2021-01-07T07:46:52.000Z | import numpy as np
from math import sqrt
def robot_distance_incorrect(robot_actual_location, hexagon_pixel_values):
distance_to_get_back = []
distances = []
pixel_distance = []
for i in range(0, len(hexagon_pixel_values)):
dist = sqrt((robot_actual_location[0] - hexagon_pixel_values[i][0]) ** ... | 44.47619 | 115 | 0.723769 | 131 | 934 | 4.824427 | 0.343511 | 0.10443 | 0.18038 | 0.080696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0.180942 | 934 | 20 | 116 | 46.7 | 0.8 | 0.175589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 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 |
0b5a82c329031fc6f172ed423012d36ab20bca44 | 10,817 | py | Python | testscripts/RDKB/component/WEBCONFIG/TS_WEBCONFIG_DisableRFC_QuerySyncParams.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/WEBCONFIG/TS_WEBCONFIG_DisableRFC_QuerySyncParams.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/WEBCONFIG/TS_WEBCONFIG_DisableRFC_QuerySyncParams.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2021 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 49.168182 | 194 | 0.665249 | 1,223 | 10,817 | 5.802126 | 0.224039 | 0.017756 | 0.023253 | 0.021421 | 0.517193 | 0.497322 | 0.477029 | 0.441375 | 0.412627 | 0.412627 | 0 | 0.007152 | 0.237312 | 10,817 | 219 | 195 | 49.392694 | 0.85297 | 0.132569 | 0 | 0.545455 | 0 | 0 | 0.321994 | 0.057092 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041322 | null | null | 0.297521 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0b61d6924578e04d8bbfa01176c73eece0bd32ef | 2,484 | py | Python | nova/tests/test_hooks.py | bopopescu/zknova | 8dd09199f5678697be228ffceeaf2c16f6d7319d | [
"Apache-2.0"
] | null | null | null | nova/tests/test_hooks.py | bopopescu/zknova | 8dd09199f5678697be228ffceeaf2c16f6d7319d | [
"Apache-2.0"
] | null | null | null | nova/tests/test_hooks.py | bopopescu/zknova | 8dd09199f5678697be228ffceeaf2c16f6d7319d | [
"Apache-2.0"
] | 1 | 2020-07-24T08:25:25.000Z | 2020-07-24T08:25:25.000Z | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 OpenStack, LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache... | 28.227273 | 78 | 0.654187 | 308 | 2,484 | 5.165584 | 0.435065 | 0.037712 | 0.016342 | 0.020113 | 0.090509 | 0.061596 | 0 | 0 | 0 | 0 | 0 | 0.012137 | 0.237118 | 2,484 | 87 | 79 | 28.551724 | 0.827441 | 0.272947 | 0 | 0.043478 | 0 | 0 | 0.043113 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 1 | 0.217391 | false | 0 | 0.065217 | 0.065217 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b649e46fb5914bfe7b320bbcd19fe8e80f42ef7 | 1,624 | py | Python | code_trunk/emb.py | chris4540/DD2430-ds-proj | b876efabe949392b27a7ebd4afb2be623174e287 | [
"MIT"
] | null | null | null | code_trunk/emb.py | chris4540/DD2430-ds-proj | b876efabe949392b27a7ebd4afb2be623174e287 | [
"MIT"
] | null | null | null | code_trunk/emb.py | chris4540/DD2430-ds-proj | b876efabe949392b27a7ebd4afb2be623174e287 | [
"MIT"
] | null | null | null | import torch
from network.siamese import SiameseNet
from network.resnet import ResidualEmbNetwork
import os
import numpy as np
from utils.datasets import DeepFashionDataset
from torchvision.transforms import Compose
from torchvision.transforms import Resize
from torchvision.transforms import ToTensor
from torchvision.t... | 28.491228 | 72 | 0.76601 | 225 | 1,624 | 5.36 | 0.435556 | 0.029851 | 0.082919 | 0.102819 | 0.135987 | 0.038143 | 0 | 0 | 0 | 0 | 0 | 0.034629 | 0.128695 | 1,624 | 56 | 73 | 29 | 0.817668 | 0.003695 | 0 | 0 | 0 | 0 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b6a970c6ea0942a3a8927c5faff7c9dff07c309 | 4,096 | py | Python | tests/testJobQueue.py | hartloff/Tango | 9dd867a596441e0e2ba1069017781dddb9c79bdb | [
"Apache-2.0"
] | 2 | 2020-10-30T03:01:55.000Z | 2021-03-25T03:18:12.000Z | tests/testJobQueue.py | hartloff/Tango | 9dd867a596441e0e2ba1069017781dddb9c79bdb | [
"Apache-2.0"
] | 7 | 2018-06-26T02:48:09.000Z | 2021-01-21T03:12:19.000Z | tests/testJobQueue.py | hartloff/Tango | 9dd867a596441e0e2ba1069017781dddb9c79bdb | [
"Apache-2.0"
] | 9 | 2018-09-28T23:48:48.000Z | 2021-10-03T20:29:48.000Z | import unittest
import redis
from jobQueue import JobQueue
from tangoObjects import TangoIntValue, TangoJob
from config import Config
class TestJobQueue(unittest.TestCase):
def setUp(self):
if Config.USE_REDIS:
__db = redis.StrictRedis(
Config.REDIS_HOSTNAME, Config.REDIS_PO... | 29.681159 | 63 | 0.619141 | 460 | 4,096 | 5.386957 | 0.206522 | 0.150121 | 0.06134 | 0.074253 | 0.459645 | 0.368846 | 0.292978 | 0.292978 | 0.25908 | 0.139629 | 0 | 0.027898 | 0.264893 | 4,096 | 137 | 64 | 29.89781 | 0.795085 | 0 | 0 | 0.349057 | 0 | 0 | 0.049561 | 0 | 0 | 0 | 0 | 0 | 0.207547 | 0 | null | null | 0 | 0.04717 | null | null | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0b6eaa68175183e78cc2a72bb734ce612395335a | 341 | py | Python | flask_webpack_bundle/config.py | briancappello/flask-webpack-bundle | 67896e6ade345e34721a8f9da156b65fc0646984 | [
"MIT"
] | null | null | null | flask_webpack_bundle/config.py | briancappello/flask-webpack-bundle | 67896e6ade345e34721a8f9da156b65fc0646984 | [
"MIT"
] | null | null | null | flask_webpack_bundle/config.py | briancappello/flask-webpack-bundle | 67896e6ade345e34721a8f9da156b65fc0646984 | [
"MIT"
] | null | null | null | import os
from flask_unchained import AppConfig
class Config(AppConfig):
WEBPACK_MANIFEST_PATH = os.path.join(
AppConfig.STATIC_FOLDER, 'assets', 'manifest.json')
class ProdConfig:
# use relative paths by default, ie, the same host as the backend
WEBPACK_ASSETS_HOST = ''
class StagingConfig(P... | 18.944444 | 69 | 0.730205 | 43 | 341 | 5.651163 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 341 | 17 | 70 | 20.058824 | 0.883636 | 0.184751 | 0 | 0 | 0 | 0 | 0.068841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.222222 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0b6fda84960a8cf5a23f750128dc700eaee71d2f | 2,458 | py | Python | touchdown/aws/elasticache/replication_group.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 14 | 2015-01-05T18:18:04.000Z | 2022-02-07T19:35:12.000Z | touchdown/aws/elasticache/replication_group.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 106 | 2015-01-06T00:17:13.000Z | 2019-09-07T00:35:32.000Z | touchdown/aws/elasticache/replication_group.py | yaybu/touchdown | 70ecda5191ce2d095bc074dcb23bfa1584464814 | [
"Apache-2.0"
] | 5 | 2015-01-30T10:18:24.000Z | 2022-02-07T19:35:13.000Z | # Copyright 2014 Isotoma Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 32.773333 | 83 | 0.746542 | 269 | 2,458 | 6.702602 | 0.565056 | 0.033278 | 0.01442 | 0.017748 | 0.10538 | 0.063228 | 0.063228 | 0 | 0 | 0 | 0 | 0.012255 | 0.170057 | 2,458 | 74 | 84 | 33.216216 | 0.871569 | 0.223759 | 0 | 0 | 0 | 0 | 0.256072 | 0.182682 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.093023 | 0.023256 | 0.697674 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b72b6b59c7098297806590340d0f99c8c866547 | 426 | py | Python | chartconvert/mpp.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | chartconvert/mpp.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | chartconvert/mpp.py | e-sailing/avnav | b3e8df4d6fa122b05309eee09197c716e29b64ec | [
"MIT"
] | null | null | null | #! /usr/bin/env python
#
# vim: ts=2 sw=2 et
#
import sys
#from wx.py.crust import Display
inchpm=39.3700
dpi=100
if len(sys.argv) >1:
dpi=int(sys.argv[1])
displaympp=1/(float(dpi)*inchpm)
print "display mpp=%f"%(displaympp)
mpp= 20037508.342789244 * 2 / 256
print "Level : mpp \t\t: scale"
for i in ra... | 16.384615 | 54 | 0.638498 | 78 | 426 | 3.487179 | 0.628205 | 0.051471 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133903 | 0.176056 | 426 | 25 | 55 | 17.04 | 0.641026 | 0.164319 | 0 | 0 | 0 | 0 | 0.216524 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0b740ea892a08bb96379c733e82f7e4324d439a4 | 684 | py | Python | examples/driving_in_traffic/scenarios/loop/scenario.py | zbzhu99/SMARTS | 652aa23e71bd4e2732e2742140cfcd0ec082a7da | [
"MIT"
] | 2 | 2021-12-13T12:41:54.000Z | 2021-12-16T03:10:24.000Z | examples/driving_in_traffic/scenarios/loop/scenario.py | zbzhu99/SMARTS | 652aa23e71bd4e2732e2742140cfcd0ec082a7da | [
"MIT"
] | null | null | null | examples/driving_in_traffic/scenarios/loop/scenario.py | zbzhu99/SMARTS | 652aa23e71bd4e2732e2742140cfcd0ec082a7da | [
"MIT"
] | null | null | null | from pathlib import Path
from smarts.sstudio import gen_scenario
from smarts.sstudio import types as t
traffic = t.Traffic(
flows=[
t.Flow(
route=t.RandomRoute(),
rate=60 * 60,
actors={t.TrafficActor(name="car", vehicle_type=vehicle_type): 1},
)
for vehi... | 20.117647 | 78 | 0.483918 | 65 | 684 | 4.938462 | 0.569231 | 0.102804 | 0.105919 | 0.143302 | 0.180685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012077 | 0.394737 | 684 | 33 | 79 | 20.727273 | 0.763285 | 0 | 0 | 0.333333 | 0 | 0 | 0.096491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0b7aa19dc4e53889b36908ba53b351bf9cbef5d2 | 6,444 | py | Python | calc/bond.py | RaphaelOneRepublic/financial-calculator | 2451b35a4cb52a6c254ae9fdae462dfebdc51e65 | [
"MIT"
] | 2 | 2020-12-10T13:00:43.000Z | 2020-12-19T16:59:48.000Z | calc/bond.py | RaphaelOneRepublic/financial-calculator | 2451b35a4cb52a6c254ae9fdae462dfebdc51e65 | [
"MIT"
] | null | null | null | calc/bond.py | RaphaelOneRepublic/financial-calculator | 2451b35a4cb52a6c254ae9fdae462dfebdc51e65 | [
"MIT"
] | null | null | null | import logging
from typing import Sequence
import numpy as np
from calc.optimize import root
class Bond(object):
"""
Represents a coupon paying bond.
Upon creation, the time to maturity, coupon periods per year, coupon rate must be provided.
If yield to maturity is provided, bond value would be igno... | 24.689655 | 113 | 0.542675 | 850 | 6,444 | 3.96 | 0.207059 | 0.047534 | 0.047534 | 0.037433 | 0.264409 | 0.247772 | 0.232917 | 0.144682 | 0.144682 | 0.144682 | 0 | 0.018824 | 0.340472 | 6,444 | 260 | 114 | 24.784615 | 0.773176 | 0.260708 | 0 | 0.221311 | 0 | 0 | 0.017548 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 1 | 0.221311 | false | 0 | 0.032787 | 0.008197 | 0.409836 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b7b1e425f8017f791073b532d42d48a2786d924 | 171 | py | Python | 13.py | kwoshvick/project-euler | d27370b0f22b51ad9ccb15afa912983d8fd8be5c | [
"MIT"
] | null | null | null | 13.py | kwoshvick/project-euler | d27370b0f22b51ad9ccb15afa912983d8fd8be5c | [
"MIT"
] | null | null | null | 13.py | kwoshvick/project-euler | d27370b0f22b51ad9ccb15afa912983d8fd8be5c | [
"MIT"
] | null | null | null | file = open("13")
sum = 0
for numbers in file:
#print(numbers.rstrip())
numbers = int(numbers)
sum += numbers;
print(sum)
sum = str(sum)
print(sum[:10])
| 10.6875 | 28 | 0.596491 | 25 | 171 | 4.08 | 0.52 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038168 | 0.233918 | 171 | 15 | 29 | 11.4 | 0.740458 | 0.134503 | 0 | 0 | 0 | 0 | 0.013605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
0b8210f4f1d6486c1ca027ea81ba3795882b8a8f | 3,433 | py | Python | tests/python/benchmarks/two_neighborhood_bench.py | sid17/weaver | f9074397ca854a777a873eaf409621de679f9749 | [
"BSD-3-Clause"
] | 163 | 2015-01-02T03:51:38.000Z | 2022-03-21T23:06:39.000Z | tests/python/benchmarks/two_neighborhood_bench.py | sid17/weaver | f9074397ca854a777a873eaf409621de679f9749 | [
"BSD-3-Clause"
] | 1 | 2015-04-08T23:17:06.000Z | 2015-04-24T15:25:26.000Z | tests/python/benchmarks/two_neighborhood_bench.py | sid17/weaver | f9074397ca854a777a873eaf409621de679f9749 | [
"BSD-3-Clause"
] | 20 | 2015-02-17T19:24:05.000Z | 2020-10-29T01:59:18.000Z | #! /usr/bin/env python
#
# ===============================================================
# Description: Two neighborhood benchmark
#
# Created: 2014-03-21 13:39:06
#
# Author: Ayush Dubey, dubey@cs.cornell.edu
#
# Copyright (C) 2013-2014, Cornell University, see the LICENSE
# ... | 26.206107 | 106 | 0.633265 | 492 | 3,433 | 4.227642 | 0.286585 | 0.0625 | 0.014423 | 0.026442 | 0.241827 | 0.161538 | 0.101923 | 0.075962 | 0.043269 | 0.043269 | 0 | 0.02567 | 0.217011 | 3,433 | 130 | 107 | 26.407692 | 0.74814 | 0.132537 | 0 | 0.23 | 0 | 0 | 0.057712 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0 | null | null | 0 | 0.06 | null | null | 0.07 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0b83f0ab273b13a1a169d3aa5355aab90ac31ca1 | 313 | py | Python | setup.py | cfbolz/syntaxerrors | 1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7 | [
"Apache-2.0",
"OpenSSL"
] | 5 | 2018-04-11T15:19:53.000Z | 2020-10-27T15:23:18.000Z | setup.py | cfbolz/syntaxerrors | 1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | setup.py | cfbolz/syntaxerrors | 1c7ecc8fd0d05253d5c55dee39802cfb86fb69f7 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='syntaxerrors',
version='0.0.1',
description='Report better SyntaxErrors',
author='Carl Friedrich Bolz-Tereick',
author_email='cfbolz@gmx.de',
packages=['syntaxerrors'],
package_dir={'': 'src'},
include_package_data=True,
)
| 24.076923 | 45 | 0.686901 | 36 | 313 | 5.833333 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011538 | 0.169329 | 313 | 12 | 46 | 26.083333 | 0.796154 | 0 | 0 | 0 | 0 | 0 | 0.313099 | 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 |
0b88cc0b918db3b0b9bc55668bf46c025033b785 | 2,237 | py | Python | authlib/oauth2/rfc6749/__init__.py | geoffwhittington/authlib | 096f2a41f4fb18f9850427f07d556d4b9ab97383 | [
"BSD-3-Clause"
] | null | null | null | authlib/oauth2/rfc6749/__init__.py | geoffwhittington/authlib | 096f2a41f4fb18f9850427f07d556d4b9ab97383 | [
"BSD-3-Clause"
] | null | null | null | authlib/oauth2/rfc6749/__init__.py | geoffwhittington/authlib | 096f2a41f4fb18f9850427f07d556d4b9ab97383 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
authlib.oauth2.rfc6749
~~~~~~~~~~~~~~~~~~~~~~
This module represents a direct implementation of
The OAuth 2.0 Authorization Framework.
https://tools.ietf.org/html/rfc6749
"""
from .wrappers import OAuth2Request, OAuth2Token, HttpRequest
from .errors import (
OAuth2... | 27.617284 | 67 | 0.743406 | 127 | 2,237 | 13.031496 | 0.598425 | 0.029003 | 0.042296 | 0.084592 | 0.496677 | 0.496677 | 0.496677 | 0.496677 | 0.298489 | 0.298489 | 0 | 0.009672 | 0.168082 | 2,237 | 80 | 68 | 27.9625 | 0.879635 | 0.097452 | 0 | 0 | 0 | 0 | 0.333166 | 0.174874 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.029851 | 0.119403 | 0 | 0.119403 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b88fa702aed7c893ac61d3d5a2bd66384c1a59d | 1,613 | py | Python | scripts/serial_command.py | philip-long/singletact-python-wrapper | 659796f614116db77f31d6b0cc1e0c963104948e | [
"MIT"
] | null | null | null | scripts/serial_command.py | philip-long/singletact-python-wrapper | 659796f614116db77f31d6b0cc1e0c963104948e | [
"MIT"
] | null | null | null | scripts/serial_command.py | philip-long/singletact-python-wrapper | 659796f614116db77f31d6b0cc1e0c963104948e | [
"MIT"
] | null | null | null | TIMEOUT=100
def GenerateWriteCommand(i2cAddress, ID, writeLocation, data):
i = 0
TIMEOUT = 100
command = bytearray(len(data)+15)
while (i < 4):
command[i] = 255
i += 1
command[4] = i2cAddress
command[5] = TIMEOUT
command[6] = ID
command[7] = 2
command[... | 23.042857 | 66 | 0.49349 | 199 | 1,613 | 4 | 0.18593 | 0.020101 | 0.052764 | 0.105528 | 0.522613 | 0.404523 | 0.326633 | 0.326633 | 0.302764 | 0.302764 | 0 | 0.113095 | 0.375078 | 1,613 | 70 | 67 | 23.042857 | 0.676587 | 0 | 0 | 0.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0.010356 | 0 | 0 | 1 | 0.046154 | false | 0 | 0 | 0 | 0.092308 | 0 | 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 |
0b89d5110511e9a326a0adf1605527ae76c9199c | 1,220 | py | Python | 1SiteRanking/create_kernel_density_map_arcpy.py | HCH2CHO/EmotionMap | bc572b4182637dcdd65e9a13c92f2fa0d9a3d680 | [
"MIT"
] | 3 | 2021-07-15T15:58:52.000Z | 2021-07-16T13:22:47.000Z | 1SiteRanking/create_kernel_density_map_arcpy.py | HCH2CHO/EmotionMap | bc572b4182637dcdd65e9a13c92f2fa0d9a3d680 | [
"MIT"
] | null | null | null | 1SiteRanking/create_kernel_density_map_arcpy.py | HCH2CHO/EmotionMap | bc572b4182637dcdd65e9a13c92f2fa0d9a3d680 | [
"MIT"
] | 4 | 2017-08-04T12:41:06.000Z | 2019-01-31T14:55:10.000Z | # coding:utf-8
# version:python2.7.3
# author:kyh
# import x,y data from txt and create kernel density map
import arcpy
from arcpy.sa import *
from arcpy import env
def read_point_data(filepath,i):
# Read data file and create shp file
with open(filepath, 'r') as pt_file:
pt=arcpy.Point()
ptGeo... | 33.888889 | 127 | 0.645902 | 172 | 1,220 | 4.447674 | 0.476744 | 0.067974 | 0.047059 | 0.070588 | 0.194771 | 0.194771 | 0 | 0 | 0 | 0 | 0 | 0.019527 | 0.202459 | 1,220 | 35 | 128 | 34.857143 | 0.766701 | 0.128689 | 0 | 0 | 0 | 0 | 0.276777 | 0.236019 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | 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 |
0b944182e57c98d2c412133b9ff0a2ad81333fdb | 737 | py | Python | setup.py | ZeroCater/zerocaterpy | 824af8613db0c5f203c0b2f7cebd830ee80eea5d | [
"MIT"
] | null | null | null | setup.py | ZeroCater/zerocaterpy | 824af8613db0c5f203c0b2f7cebd830ee80eea5d | [
"MIT"
] | null | null | null | setup.py | ZeroCater/zerocaterpy | 824af8613db0c5f203c0b2f7cebd830ee80eea5d | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='zerocater',
version='0.0.1',
description="Python interface to ZeroCater",
long_description='',
keywords='zerocater food delivery meal planning catering lunch',
author='ZeroCater',
author_email='tech@zerocater.com',
url='https://github.c... | 35.095238 | 76 | 0.63365 | 75 | 737 | 6.186667 | 0.68 | 0.008621 | 0.012931 | 0.073276 | 0.159483 | 0.159483 | 0 | 0 | 0 | 0 | 0 | 0.012281 | 0.226594 | 737 | 21 | 77 | 35.095238 | 0.801754 | 0 | 0 | 0 | 0 | 0 | 0.54065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b975c6ddf1a134fa942ba06d2fe6a39b749365f | 6,435 | py | Python | pdsensorvis/sensors/models.py | mickeykkim/masters-project-sphere | 6dbe0be877058e647f5e3822932e5a70f181bb53 | [
"MIT"
] | 2 | 2019-10-05T20:59:41.000Z | 2019-11-01T20:25:39.000Z | pdsensorvis/sensors/models.py | mickeykkim/masters-project-sphere | 6dbe0be877058e647f5e3822932e5a70f181bb53 | [
"MIT"
] | 6 | 2019-10-24T12:28:02.000Z | 2021-08-09T09:56:26.000Z | pdsensorvis/sensors/models.py | mickeykkim/masters-project-sphere | 6dbe0be877058e647f5e3822932e5a70f181bb53 | [
"MIT"
] | null | null | null | from django.db import models
from django.urls import reverse
from django.contrib.auth.models import User
from django.utils import timezone
import uuid
ANNOTATION = (
('asm', 'Asymmetry'),
('dst', 'Dystonia'),
('dsk', 'Dyskensia'),
('ebt', 'En Bloc Turning'),
('str', 'Short Stride Length'),
('mo... | 37.631579 | 116 | 0.685004 | 787 | 6,435 | 5.418043 | 0.208386 | 0.035647 | 0.050657 | 0.067542 | 0.585366 | 0.550657 | 0.523921 | 0.507036 | 0.446998 | 0.37031 | 0 | 0.009445 | 0.177312 | 6,435 | 170 | 117 | 37.852941 | 0.795995 | 0 | 0 | 0.343284 | 0 | 0.014925 | 0.261849 | 0.052991 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097015 | false | 0 | 0.037313 | 0.097015 | 0.626866 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b9809b2c18e28f3af61ecc6021ff494abd1e0f4 | 533 | py | Python | setup.py | soumyarani/mopac | 72f10fdd3ea3c9c61b6c808ca07ee9031b7d4aa8 | [
"MIT"
] | 20 | 2021-03-16T08:18:01.000Z | 2022-03-12T13:46:43.000Z | setup.py | soumyarani/mopac | 72f10fdd3ea3c9c61b6c808ca07ee9031b7d4aa8 | [
"MIT"
] | 1 | 2021-05-13T14:49:25.000Z | 2021-05-13T19:45:26.000Z | setup.py | soumyarani/mopac | 72f10fdd3ea3c9c61b6c808ca07ee9031b7d4aa8 | [
"MIT"
] | 5 | 2020-11-01T15:46:39.000Z | 2021-07-30T13:12:06.000Z | from distutils.core import setup
from setuptools import find_packages
setup(
name='mopac',
packages=find_packages(),
version='0.1',
description='Model-based policy optimization',
long_description=open('./README.md').read(),
author='',
author_email='',
url='',
entry_points={
... | 23.173913 | 62 | 0.626642 | 56 | 533 | 5.803571 | 0.696429 | 0.129231 | 0.129231 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.230769 | 533 | 22 | 63 | 24.227273 | 0.787805 | 0 | 0 | 0 | 0 | 0 | 0.292683 | 0.165103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.095238 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b9897a43237e684b6c66f4d6a3b18dc5aaad9da | 1,217 | py | Python | onetouch.py | kakoni/insulaudit | 18fe0802bafe5764882ac4e65e472fdc840baa45 | [
"MIT"
] | 1 | 2020-11-28T13:23:58.000Z | 2020-11-28T13:23:58.000Z | onetouch.py | kakoni/insulaudit | 18fe0802bafe5764882ac4e65e472fdc840baa45 | [
"MIT"
] | null | null | null | onetouch.py | kakoni/insulaudit | 18fe0802bafe5764882ac4e65e472fdc840baa45 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import user
import serial
from pprint import pprint, pformat
import insulaudit
from insulaudit.data import glucose
from insulaudit.log import io
from insulaudit.devices import onetouch2
import sys
PORT = '/dev/ttyUSB0'
def get_serial( port, timeout=2 ):
return serial.Serial( port, timeout=timeou... | 22.537037 | 89 | 0.67461 | 157 | 1,217 | 5.159236 | 0.414013 | 0.051852 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010235 | 0.197206 | 1,217 | 53 | 90 | 22.962264 | 0.818833 | 0.013147 | 0 | 0.095238 | 0 | 0 | 0.145121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.190476 | null | null | 0.380952 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0b9b80c225b518a078b36396f1fbccc56916e124 | 738 | py | Python | server/waitFramerate.py | mboerwinkle/RingGame | 5a9b6a6ea394c1e88689fa062d4d348383ab406a | [
"MIT"
] | null | null | null | server/waitFramerate.py | mboerwinkle/RingGame | 5a9b6a6ea394c1e88689fa062d4d348383ab406a | [
"MIT"
] | null | null | null | server/waitFramerate.py | mboerwinkle/RingGame | 5a9b6a6ea394c1e88689fa062d4d348383ab406a | [
"MIT"
] | null | null | null | import time
#Timing stuff
lastTime = None
prevFrameTime = 0;
def waitFramerate(T): #TODO if we have enough time, call the garbage collector
global lastTime, prevFrameTime
ctime = time.monotonic()
if lastTime:
frameTime = ctime-lastTime #how long the last frame took
sleepTime = T-frameTime #how much time is rem... | 32.086957 | 114 | 0.720867 | 103 | 738 | 5.165049 | 0.543689 | 0.033835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013093 | 0.172087 | 738 | 22 | 115 | 33.545455 | 0.85761 | 0.275068 | 0 | 0.210526 | 0 | 0 | 0.058491 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.105263 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0baeb09b96866048e3277bdd11b177c6f437a60e | 1,217 | py | Python | 01-Exercicios/Aula001/Ex2.py | AmandaRH07/Python_Entra21 | 4084962508f1597c0498d8b329e0f45e2ac55302 | [
"MIT"
] | null | null | null | 01-Exercicios/Aula001/Ex2.py | AmandaRH07/Python_Entra21 | 4084962508f1597c0498d8b329e0f45e2ac55302 | [
"MIT"
] | null | null | null | 01-Exercicios/Aula001/Ex2.py | AmandaRH07/Python_Entra21 | 4084962508f1597c0498d8b329e0f45e2ac55302 | [
"MIT"
] | null | null | null | #--- Exercício 2 - Variáveis
#--- Crie um menu para um sistema de cadastro de funcionários
#--- O menu deve ser impresso com a função format()
#--- As opções devem ser variáveis do tipo inteiro
#--- As descrições das opções serão:
#--- Cadastrar funcionário
#--- Listar funcionários
#--- Editar funcionário
#--... | 32.891892 | 92 | 0.676253 | 171 | 1,217 | 4.812866 | 0.415205 | 0.036452 | 0.066829 | 0.121507 | 0.234508 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012435 | 0.207067 | 1,217 | 36 | 93 | 33.805556 | 0.840415 | 0.470008 | 0 | 0 | 0 | 0 | 0.638669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bb4673a2136b7bf006e51e515e0e3d35ea020dd | 417 | py | Python | nlu_hyperopt/space.py | JulianGerhard21/nlu-hyperopt | 3d16fda97fa7cf1337b19395a57780e6e2dc9bd3 | [
"Apache-2.0"
] | null | null | null | nlu_hyperopt/space.py | JulianGerhard21/nlu-hyperopt | 3d16fda97fa7cf1337b19395a57780e6e2dc9bd3 | [
"Apache-2.0"
] | null | null | null | nlu_hyperopt/space.py | JulianGerhard21/nlu-hyperopt | 3d16fda97fa7cf1337b19395a57780e6e2dc9bd3 | [
"Apache-2.0"
] | 1 | 2021-07-08T11:40:27.000Z | 2021-07-08T11:40:27.000Z | from hyperopt import hp
# Define the search space here, e.g.
# from hyperopt.pyll.base import scope
# search_space = {
# 'epochs': hp.qloguniform('epochs', 0, 4, 2),
# 'max_df': hp.uniform('max_df', 1, 2),
# 'max_ngrams': scope.int(hp.quniform('max_ngram', 3, 9, 1))
# }
# Default search space: Try di... | 29.785714 | 65 | 0.654676 | 63 | 417 | 4.238095 | 0.555556 | 0.164794 | 0.127341 | 0.142322 | 0.292135 | 0.292135 | 0.292135 | 0.292135 | 0.292135 | 0 | 0 | 0.032164 | 0.179856 | 417 | 13 | 66 | 32.076923 | 0.748538 | 0.748201 | 0 | 0 | 0 | 0 | 0.125 | 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 |
0bb56b74527c4ab3380dff7d3851c648cd78de0c | 347 | py | Python | src/workflows/__init__.py | stufisher/python-workflows | f1f67bb56a0f8a6820762f68e2e59ade2da60a95 | [
"BSD-3-Clause"
] | null | null | null | src/workflows/__init__.py | stufisher/python-workflows | f1f67bb56a0f8a6820762f68e2e59ade2da60a95 | [
"BSD-3-Clause"
] | null | null | null | src/workflows/__init__.py | stufisher/python-workflows | f1f67bb56a0f8a6820762f68e2e59ade2da60a95 | [
"BSD-3-Clause"
] | null | null | null | __version__ = "2.18"
def version():
"""Returns the version number of the installed workflows package."""
return __version__
class Error(Exception):
"""Common class for exceptions deliberately raised by workflows package."""
class Disconnected(Error):
"""Indicates the connection could not be establ... | 23.133333 | 79 | 0.723343 | 42 | 347 | 5.785714 | 0.761905 | 0.131687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.178674 | 347 | 14 | 80 | 24.785714 | 0.842105 | 0.576369 | 0 | 0 | 0 | 0 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0bc0f8ad9a5e857c61031c1ca0a45f2bb10b8808 | 783 | py | Python | Exareme-Docker/src/mip-algorithms/HEALTH_CHECK/global.py | tchamabe1979/exareme | 462983e4feec7808e1fd447d02901502588a8879 | [
"MIT"
] | null | null | null | Exareme-Docker/src/mip-algorithms/HEALTH_CHECK/global.py | tchamabe1979/exareme | 462983e4feec7808e1fd447d02901502588a8879 | [
"MIT"
] | null | null | null | Exareme-Docker/src/mip-algorithms/HEALTH_CHECK/global.py | tchamabe1979/exareme | 462983e4feec7808e1fd447d02901502588a8879 | [
"MIT"
] | null | null | null | import sys
import json
from os import path
from argparse import ArgumentParser
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))) + '/utils/')
from algorithm_utils import set_algorithms_output_data
from health_check_lib import HealthCheckLocalDT
def main():
# Parse arguments
parse... | 27.964286 | 84 | 0.715198 | 100 | 783 | 5.26 | 0.51 | 0.041825 | 0.057034 | 0.087452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186462 | 783 | 27 | 85 | 29 | 0.825746 | 0.057471 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e7ea14302b331a9466a14df8ced10e7042b53923 | 7,081 | py | Python | core/data/dataloader/upb_kitti.py | nemodrive/awesome-semantic-segmentation-pytorch | fa0e4174004822ace0560cc046c2fbdb81f1e1b9 | [
"Apache-2.0"
] | null | null | null | core/data/dataloader/upb_kitti.py | nemodrive/awesome-semantic-segmentation-pytorch | fa0e4174004822ace0560cc046c2fbdb81f1e1b9 | [
"Apache-2.0"
] | null | null | null | core/data/dataloader/upb_kitti.py | nemodrive/awesome-semantic-segmentation-pytorch | fa0e4174004822ace0560cc046c2fbdb81f1e1b9 | [
"Apache-2.0"
] | null | null | null | """Pascal VOC Semantic Segmentation Dataset."""
import os
import torch
import numpy as np
from PIL import Image
from .segbase import SegmentationDataset
class VOCSegmentation(SegmentationDataset):
"""Pascal VOC Semantic Segmentation Dataset.
Parameters
----------
root : string
Path to VOCdev... | 36.880208 | 141 | 0.591018 | 876 | 7,081 | 4.550228 | 0.240868 | 0.044155 | 0.035123 | 0.019568 | 0.27421 | 0.223281 | 0.14576 | 0.103864 | 0.103864 | 0.103864 | 0 | 0.014173 | 0.282587 | 7,081 | 191 | 142 | 37.073298 | 0.770472 | 0.09815 | 0 | 0.130081 | 0 | 0 | 0.049421 | 0.016535 | 0 | 0 | 0 | 0 | 0.04065 | 0 | null | null | 0 | 0.04065 | null | null | 0.00813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e7ee6d842483ab8133f076264eb1658607e7ec98 | 5,558 | py | Python | FMWKubernetesMAA/OracleEnterpriseDeploymentAutomation/OracleWebCenterSites/charts/wc-sites/unicast.py | rishiagarwal-oracle/fmw-kubernetes | cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f | [
"UPL-1.0",
"MIT"
] | null | null | null | FMWKubernetesMAA/OracleEnterpriseDeploymentAutomation/OracleWebCenterSites/charts/wc-sites/unicast.py | rishiagarwal-oracle/fmw-kubernetes | cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f | [
"UPL-1.0",
"MIT"
] | null | null | null | FMWKubernetesMAA/OracleEnterpriseDeploymentAutomation/OracleWebCenterSites/charts/wc-sites/unicast.py | rishiagarwal-oracle/fmw-kubernetes | cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f | [
"UPL-1.0",
"MIT"
] | null | null | null | # Copyright (c) 2022, Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at
# https://oss.oracle.com/licenses/upl
import xml.dom.minidom
import re
import sys
def getManagedServerCount(domainHome):
# use the parse() function to load and parse an XML file
doc = xml.dom.... | 45.933884 | 161 | 0.737496 | 656 | 5,558 | 6.204268 | 0.239329 | 0.033415 | 0.014742 | 0.02801 | 0.659951 | 0.625553 | 0.573219 | 0.483538 | 0.479607 | 0.458477 | 0 | 0.016722 | 0.128463 | 5,558 | 120 | 162 | 46.316667 | 0.823493 | 0.115869 | 0 | 0.397727 | 0 | 0 | 0.250663 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034091 | null | null | 0.113636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e7f60dd013f54bbf4fa181ff948f295cdc87e462 | 1,893 | py | Python | tests/mock_dbcli_config.py | bluelabsio/db-facts | fc8faa59f450a5cc00a0e50160ca57e47291b375 | [
"Apache-2.0"
] | 2 | 2020-11-25T20:11:50.000Z | 2020-12-12T18:39:09.000Z | tests/mock_dbcli_config.py | bluelabsio/db-facts | fc8faa59f450a5cc00a0e50160ca57e47291b375 | [
"Apache-2.0"
] | 5 | 2020-01-24T15:05:50.000Z | 2020-02-29T13:34:40.000Z | tests/mock_dbcli_config.py | bluelabsio/db-facts | fc8faa59f450a5cc00a0e50160ca57e47291b375 | [
"Apache-2.0"
] | 1 | 2021-05-16T17:07:40.000Z | 2021-05-16T17:07:40.000Z | mock_dbcli_config = {
'exports_from': {
'lpass': {
'pull_lastpass_from': "{{ lastpass_entry }}",
},
'lpass_user_and_pass_only': {
'pull_lastpass_username_password_from': "{{ lastpass_entry }}",
},
'my-json-script': {
'json_script': [
... | 28.253731 | 86 | 0.43159 | 145 | 1,893 | 5.255172 | 0.406897 | 0.10105 | 0.104987 | 0.094488 | 0.238845 | 0.112861 | 0.112861 | 0.112861 | 0 | 0 | 0 | 0.008212 | 0.421025 | 1,893 | 66 | 87 | 28.681818 | 0.687044 | 0 | 0 | 0.106061 | 0 | 0 | 0.445325 | 0.116746 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 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 |
e7fca0855906e19926ef43a259b033f9d1d6ddb0 | 542 | py | Python | transform/indexed_transform.py | cviaai/unsupervised-heartbeat-anomaly-detection | 3586bf505256463c030422607e95e4cee40fa086 | [
"MIT"
] | 2 | 2020-10-14T05:50:25.000Z | 2021-05-11T03:42:02.000Z | transform/indexed_transform.py | cviaai/unsupervised-heartbeat-anomaly-detection | 3586bf505256463c030422607e95e4cee40fa086 | [
"MIT"
] | null | null | null | transform/indexed_transform.py | cviaai/unsupervised-heartbeat-anomaly-detection | 3586bf505256463c030422607e95e4cee40fa086 | [
"MIT"
] | null | null | null | from typing import Tuple, List
from transform.transformer import TimeSeriesTransformer
import numpy as np
class IndexedTransformer:
def __init__(self, transformer: TimeSeriesTransformer, padding: int, step: int):
self.transformer = transformer
self.padding = padding
self.step = step
... | 30.111111 | 84 | 0.695572 | 67 | 542 | 5.462687 | 0.447761 | 0.122951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215867 | 542 | 17 | 85 | 31.882353 | 0.861176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e7fca20cce05d1364eee53a17bec476012eb661d | 2,177 | py | Python | dropconnect/combine_pred_mod.py | zygmuntz/kaggle-cifar | 16936af9cf621d668c50491291e042a7849a1ac3 | [
"BSD-2-Clause"
] | 26 | 2015-01-12T18:00:50.000Z | 2020-12-19T23:49:16.000Z | dropconnect/combine_pred_mod.py | zygmuntz/kaggle-cifar | 16936af9cf621d668c50491291e042a7849a1ac3 | [
"BSD-2-Clause"
] | null | null | null | dropconnect/combine_pred_mod.py | zygmuntz/kaggle-cifar | 16936af9cf621d668c50491291e042a7849a1ac3 | [
"BSD-2-Clause"
] | 26 | 2015-01-10T22:35:01.000Z | 2020-01-15T08:56:53.000Z | #------------------------------------------
# this script combine result of different
# nets and report final result
#------------------------------------------
import sys
import numpy as np
from util import pickle, unpickle
def evaluate_result( result, text ):
# pre-condition check
num_batches = len( result[... | 30.661972 | 87 | 0.592559 | 291 | 2,177 | 4.243986 | 0.281787 | 0.051822 | 0.064777 | 0.046154 | 0.222672 | 0.02915 | 0 | 0 | 0 | 0 | 0 | 0.015682 | 0.238401 | 2,177 | 70 | 88 | 31.1 | 0.729192 | 0.216812 | 0 | 0.04878 | 0 | 0 | 0.078885 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0 | null | null | 0 | 0.073171 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e7fcb403c125d5647a5fdcb4339ffbade5bc81e8 | 1,556 | py | Python | goless/__init__.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | 1 | 2015-05-28T03:12:47.000Z | 2015-05-28T03:12:47.000Z | goless/__init__.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | null | null | null | goless/__init__.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | null | null | null | """
``goless`` introduces go-like channels and select to Python,
built on top of Stackless Python (and maybe one day gevent).
Use :func:`goless.chan` to create a synchronous or buffered channel.
Use :func:`goless.select` like you would the ``Select`` function in Go's reflect package
(since Python lacks a switch/case st... | 30.509804 | 88 | 0.703728 | 215 | 1,556 | 5.032558 | 0.534884 | 0.027726 | 0.02403 | 0.033272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00321 | 0.199229 | 1,556 | 50 | 89 | 31.12 | 0.865169 | 0.572622 | 0 | 0 | 0 | 0 | 0.001664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 |
e7fcf109cce1b1c57ca682a8b6f5606efb8ee46b | 643 | py | Python | data/test1.py | moses-alexander/simple-python-parser | a15f53a86d61fa5d98f5ade149d8c3a178ebfb50 | [
"BSD-3-Clause"
] | null | null | null | data/test1.py | moses-alexander/simple-python-parser | a15f53a86d61fa5d98f5ade149d8c3a178ebfb50 | [
"BSD-3-Clause"
] | null | null | null | data/test1.py | moses-alexander/simple-python-parser | a15f53a86d61fa5d98f5ade149d8c3a178ebfb50 | [
"BSD-3-Clause"
] | null | null | null | 1+2
3+5
7+8
6>7
abs(-3)
if 8 < 9: min(3,5)
else 4 < 5: abs(-2)
else 4 > 5: max(3, 7)
round(2.1)
round(3.6)
len("jfdgge")
type(4)
any(1, 3, 4)
any(0.0, 0.0, 0.0)
all("abc", "a")
all(0, 1)
bin(45)
lower("ABC")
upper("abc")
join("abc", "abc")
bool(0)
bool("abc")
ord('r')
chr(100)
str(130)
globals()
help()
hex(15)
oct(27)
... | 14.613636 | 196 | 0.62986 | 132 | 643 | 2.954545 | 0.5 | 0.025641 | 0.030769 | 0.030769 | 0.015385 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107078 | 0.143079 | 643 | 43 | 197 | 14.953488 | 0.600726 | 0.339036 | 0 | 0 | 0 | 0 | 0.07109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7ffb07502a866daacad535d6c162c3df47ed0fa | 1,075 | py | Python | 001-050/029-divide-two-integers.py | bbram10/leetcode-master | 565f5f0cb3c9720e59a78ddf2e5e6e829c70bac6 | [
"MIT"
] | 134 | 2017-01-16T11:17:44.000Z | 2022-03-16T17:13:26.000Z | 001-050/029-divide-two-integers.py | bbram10/leetcode-master | 565f5f0cb3c9720e59a78ddf2e5e6e829c70bac6 | [
"MIT"
] | 1 | 2019-11-18T02:10:51.000Z | 2019-11-18T02:10:51.000Z | 001-050/029-divide-two-integers.py | bbram10/leetcode-master | 565f5f0cb3c9720e59a78ddf2e5e6e829c70bac6 | [
"MIT"
] | 54 | 2017-07-17T01:24:00.000Z | 2022-02-06T05:28:44.000Z | """
STATEMENT
Divide two integers without using multiplication, division and mod operator.
CLARIFICATIONS
- Do I have to handle 32-bit integer overflow? Yes, return the MAX_INT in that case.
- Can the divisor be zero? Yes, return the MAX_INT.
EXAMPLES
34/3 -> 11
COMMENTS
- This solution is by tusizi in Leetcode (pic... | 27.564103 | 115 | 0.613953 | 144 | 1,075 | 4.493056 | 0.493056 | 0.061824 | 0.037094 | 0.046368 | 0.055641 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049673 | 0.288372 | 1,075 | 38 | 116 | 28.289474 | 0.796078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f000c275681d6eb860ca8edd89619bd04e3efa9d | 508 | py | Python | conv/setup.py | hughpyle/GW-BASIC | f0c1ef3c9655b36cd312d18e4620bb076f03afd3 | [
"MIT"
] | 26 | 2020-05-23T18:09:05.000Z | 2022-01-30T10:07:04.000Z | conv/setup.py | hughpyle/GW-BASIC | f0c1ef3c9655b36cd312d18e4620bb076f03afd3 | [
"MIT"
] | 1 | 2020-06-25T06:20:01.000Z | 2020-06-25T06:20:01.000Z | conv/setup.py | hughpyle/GW-BASIC | f0c1ef3c9655b36cd312d18e4620bb076f03afd3 | [
"MIT"
] | 4 | 2020-05-23T12:36:44.000Z | 2022-01-16T00:20:20.000Z | from setuptools import setup, find_packages
"""
https://tia.mat.br/posts/2020/06/21/converting-gwbasic-to-z80.html
"""
setup(
name="z80conv",
version='0.0.1',
author="lp",
description="Porting GW-BASIC from 8086 back to the Z80",
license="GPLv2",
packages=find_packages(),
long_description=... | 24.190476 | 66 | 0.661417 | 67 | 508 | 4.910448 | 0.701493 | 0.072948 | 0.121581 | 0.151976 | 0.273556 | 0.273556 | 0.273556 | 0.273556 | 0.273556 | 0.273556 | 0 | 0.077108 | 0.183071 | 508 | 20 | 67 | 25.4 | 0.715663 | 0 | 0 | 0 | 0 | 0 | 0.343318 | 0.057604 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f00829ce69ca21d2a75d867579f5065b5c43824d | 395 | py | Python | lib/locator/location_test.py | alt-locator/address-locator-python | 9f052dc7721223bde926723648790a17b06e9d7a | [
"MIT"
] | null | null | null | lib/locator/location_test.py | alt-locator/address-locator-python | 9f052dc7721223bde926723648790a17b06e9d7a | [
"MIT"
] | null | null | null | lib/locator/location_test.py | alt-locator/address-locator-python | 9f052dc7721223bde926723648790a17b06e9d7a | [
"MIT"
] | null | null | null | import location
import unittest
class LocationTest(unittest.TestCase):
def testToJson(self):
test_location = location.Location(name='foo',
local_ip_address={'en0': {'local_ip_address': '1.2.3.4'}})
test_json = test_location.to_json()
self.assertEqual(test_json['name'], 'foo')
self.assertEqual(... | 30.384615 | 78 | 0.698734 | 55 | 395 | 4.763636 | 0.418182 | 0.10687 | 0.21374 | 0.129771 | 0.267176 | 0.267176 | 0.267176 | 0.267176 | 0.267176 | 0.267176 | 0 | 0.02924 | 0.134177 | 395 | 12 | 79 | 32.916667 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.197468 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 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 |
f00b1f413db4083c2b4c12dfb8af15b799f387ae | 2,288 | py | Python | mtconnect/mtconnect_ros_bridge/scripts/closedoor.py | mtconnect/ros_bridge | b578e8c3edca83ea0de8ed15aff0f7733dd23e04 | [
"Apache-2.0"
] | 5 | 2015-04-30T21:51:46.000Z | 2019-03-18T06:24:38.000Z | mtconnect/mtconnect_ros_bridge/scripts/closedoor.py | CubeSpawn/ros_bridge | b578e8c3edca83ea0de8ed15aff0f7733dd23e04 | [
"Apache-2.0"
] | null | null | null | mtconnect/mtconnect_ros_bridge/scripts/closedoor.py | CubeSpawn/ros_bridge | b578e8c3edca83ea0de8ed15aff0f7733dd23e04 | [
"Apache-2.0"
] | 4 | 2016-02-21T20:04:31.000Z | 2021-01-04T13:48:41.000Z | #! /usr/bin/env python
"""
Copyright 2013 Southwest Research Institute
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 req... | 34.666667 | 96 | 0.723776 | 297 | 2,288 | 5.488215 | 0.491582 | 0.051534 | 0.029448 | 0.019632 | 0.033129 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004403 | 0.205857 | 2,288 | 65 | 97 | 35.2 | 0.89268 | 0.25 | 0 | 0 | 0 | 0 | 0.254579 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | 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 |
f00d8a2ff37a2b007fa4edfda74f6d8657793532 | 3,684 | py | Python | piton/lib/inquirer/questions.py | piton-package-manager/PPM | 19015b76184befe1e2daa63189a13b039787868d | [
"MIT"
] | 19 | 2016-04-08T04:00:07.000Z | 2021-11-12T19:36:56.000Z | piton/lib/inquirer/questions.py | LookLikeAPro/PPM | 19015b76184befe1e2daa63189a13b039787868d | [
"MIT"
] | 9 | 2017-01-03T13:39:47.000Z | 2022-01-15T20:38:20.000Z | piton/lib/inquirer/questions.py | LookLikeAPro/PPM | 19015b76184befe1e2daa63189a13b039787868d | [
"MIT"
] | 6 | 2017-04-01T03:38:45.000Z | 2021-05-06T11:25:31.000Z | # -*- coding: utf-8 -*-
"""
Module that implements the questions types
"""
import json
from . import errors
def question_factory(kind, *args, **kwargs):
for clazz in (Text, Password, Confirm, List, Checkbox):
if clazz.kind == kind:
return clazz(*args, **kwargs)
raise errors.UnknownQuesti... | 24.236842 | 72 | 0.604777 | 431 | 3,684 | 5.016241 | 0.236659 | 0.022202 | 0.030065 | 0.015726 | 0.123959 | 0.068455 | 0.068455 | 0.042553 | 0.042553 | 0 | 0 | 0.000774 | 0.29886 | 3,684 | 151 | 73 | 24.397351 | 0.836237 | 0.159338 | 0 | 0.053763 | 0 | 0 | 0.034907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.182796 | false | 0.043011 | 0.021505 | 0.064516 | 0.526882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f0123837d9cb8c6159b0ec92e3dc57d8e6054cf3 | 704 | py | Python | services/web/apps/main/pool/views.py | xUndero/noc | 9fb34627721149fcf7064860bd63887e38849131 | [
"BSD-3-Clause"
] | 1 | 2019-09-20T09:36:48.000Z | 2019-09-20T09:36:48.000Z | services/web/apps/main/pool/views.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | services/web/apps/main/pool/views.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# main.pool application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------... | 28.16 | 71 | 0.473011 | 57 | 704 | 5.754386 | 0.701754 | 0.064024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.143466 | 704 | 24 | 72 | 29.333333 | 0.529022 | 0.492898 | 0 | 0 | 0 | 0 | 0.077844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
f013b73782802e7be9ad94ff6ab1e1a0a57d6410 | 1,224 | py | Python | saleor/app/tests/test_models.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 15,337 | 2015-01-12T02:11:52.000Z | 2021-10-05T19:19:29.000Z | saleor/app/tests/test_models.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 7,486 | 2015-02-11T10:52:13.000Z | 2021-10-06T09:37:15.000Z | saleor/app/tests/test_models.py | aminziadna/saleor | 2e78fb5bcf8b83a6278af02551a104cfa555a1fb | [
"CC-BY-4.0"
] | 5,864 | 2015-01-16T14:52:54.000Z | 2021-10-05T23:01:15.000Z | from ...app.models import App
from ...webhook.event_types import WebhookEventType
def test_qs_for_event_type(payment_app):
qs = App.objects.for_event_type(WebhookEventType.PAYMENT_AUTHORIZE)
assert len(qs) == 1
assert qs[0] == payment_app
def test_qs_for_event_type_no_payment_permissions(payment_app):
... | 32.210526 | 88 | 0.768791 | 172 | 1,224 | 5.116279 | 0.186047 | 0.1125 | 0.136364 | 0.218182 | 0.6875 | 0.640909 | 0.617045 | 0.497727 | 0.497727 | 0.497727 | 0 | 0.005671 | 0.135621 | 1,224 | 37 | 89 | 33.081081 | 0.826087 | 0 | 0 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.185185 | false | 0 | 0.074074 | 0 | 0.259259 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.