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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fb54307447ee337f3eed87f5107fb1860f710327 | 5,570 | py | Python | pubsub/animation/gol-keyboard.py | yanigisawa/coffee-scale | 8131f5485646fa6b9803ca13b3e20d02d9debfce | [
"MIT"
] | 13 | 2015-07-29T12:07:40.000Z | 2018-06-29T13:21:41.000Z | pubsub/animation/gol-keyboard.py | yanigisawa/coffee-scale | 8131f5485646fa6b9803ca13b3e20d02d9debfce | [
"MIT"
] | 4 | 2015-05-29T11:44:43.000Z | 2018-07-25T20:20:10.000Z | pubsub/animation/gol-keyboard.py | yanigisawa/coffee-scale | 8131f5485646fa6b9803ca13b3e20d02d9debfce | [
"MIT"
] | 7 | 2016-01-19T21:56:08.000Z | 2018-04-25T04:34:32.000Z | #!/usr/bin/env python
import curses
import random
import os
from samplebase import SampleBase
from threading import Thread, Lock
from golbase import GameOfLifeBase, Cell
COLUMNS = 'qwertyuiopasdfgh'
class KeyboardInput(GameOfLifeBase):
def __init__(self, *args, **kwargs):
super(KeyboardInput, self).__ini... | 32.573099 | 91 | 0.506463 | 777 | 5,570 | 3.589447 | 0.169884 | 0.187164 | 0.20796 | 0.348512 | 0.49516 | 0.490857 | 0.461456 | 0.155611 | 0.155611 | 0.03227 | 0 | 0.052833 | 0.344165 | 5,570 | 170 | 92 | 32.764706 | 0.710649 | 0.047935 | 0 | 0.059701 | 0 | 0 | 0.013611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08209 | false | 0.007463 | 0.044776 | 0 | 0.141791 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
fb6825e89d15e70c9f34a5ec48c405dd98af726c | 173 | py | Python | at/abc125/b.py | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | 1 | 2018-07-22T04:52:10.000Z | 2018-07-22T04:52:10.000Z | at/abc125/b.py | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | 1 | 2018-08-11T13:29:59.000Z | 2018-08-11T13:31:28.000Z | at/abc125/b.py | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | null | null | null | read = input
n = int(read())
V = map(int, read().split())
C = map(int, read().split())
A = list(zip(V,C))
mx = 0
for (v,c) in A:
if v > c:
mx += v - c
print(mx)
| 15.727273 | 28 | 0.491329 | 35 | 173 | 2.428571 | 0.485714 | 0.094118 | 0.235294 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.265896 | 173 | 10 | 29 | 17.3 | 0.661417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
fb6c2eefdf18b3813e37f7eb0c2454e468c5123b | 7,734 | py | Python | preflop.py | andrew732/EAS499 | a0b1435913a11a999cc83df475eb875d45e51ce1 | [
"MIT"
] | 1 | 2020-06-04T00:07:42.000Z | 2020-06-04T00:07:42.000Z | preflop.py | andrew732/EAS499 | a0b1435913a11a999cc83df475eb875d45e51ce1 | [
"MIT"
] | null | null | null | preflop.py | andrew732/EAS499 | a0b1435913a11a999cc83df475eb875d45e51ce1 | [
"MIT"
] | null | null | null | import random
def raise_first_in(position, hand):
# utg and utg+1 have same rfi ranges
utg = {"AA", "KK", "QQ", "JJ", "TT", "99", "88", "77", "AKs", "AQs", "AJs", "ATs", "A5s",
"KQs", "KJs", "KTs", "QJs", "QTs", "JTs", "J9s", "T9s", "98s",
"AKo", "AQo"}
utg2 = {"AA", "KK", "QQ", "JJ"... | 66.672414 | 121 | 0.371606 | 1,106 | 7,734 | 2.593128 | 0.190778 | 0.057183 | 0.014644 | 0.019526 | 0.418759 | 0.396095 | 0.373082 | 0.352162 | 0.330195 | 0.330195 | 0 | 0.222222 | 0.288984 | 7,734 | 115 | 122 | 67.252174 | 0.299327 | 0.022498 | 0 | 0.259615 | 0 | 0 | 0.217443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028846 | false | 0 | 0.009615 | 0 | 0.105769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
fb6f888d1a94ff653f63809144e23613024b710a | 4,030 | py | Python | tests/test_genutil_statistics.py | CDAT/genutil | 8772964ed2b0305590f94139974a300b49d113b7 | [
"BSD-3-Clause"
] | null | null | null | tests/test_genutil_statistics.py | CDAT/genutil | 8772964ed2b0305590f94139974a300b49d113b7 | [
"BSD-3-Clause"
] | 22 | 2018-03-22T10:10:32.000Z | 2021-01-01T22:25:41.000Z | tests/test_genutil_statistics.py | CDAT/genutil | 8772964ed2b0305590f94139974a300b49d113b7 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
import cdms2
import genutil
import os
import unittest
import cdat_info
import numpy
dump = False
class GENUTIL(unittest.TestCase):
def assertArraysEqual(self, A, nm, skip=False, dump=dump):
B = self.good(nm)
print("A-B max difference", numpy.abs(A - B).max(),... | 32.764228 | 88 | 0.56799 | 495 | 4,030 | 4.551515 | 0.19596 | 0.181092 | 0.198846 | 0.269862 | 0.69241 | 0.612961 | 0.582779 | 0.53573 | 0.489126 | 0.430093 | 0 | 0.038502 | 0.284615 | 4,030 | 122 | 89 | 33.032787 | 0.742976 | 0 | 0 | 0.20202 | 0 | 0 | 0.055831 | 0.011414 | 0 | 0 | 0 | 0 | 0.242424 | 1 | 0.030303 | false | 0 | 0.070707 | 0 | 0.111111 | 0.070707 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
fb7569bd5ee346713eb3e75ab0c018c658d99aea | 1,796 | py | Python | password_test.py | viola-kaveza/Password-Locker | 1426a0569a1f80a3ec71c510f939e454469355fb | [
"MIT"
] | null | null | null | password_test.py | viola-kaveza/Password-Locker | 1426a0569a1f80a3ec71c510f939e454469355fb | [
"MIT"
] | null | null | null | password_test.py | viola-kaveza/Password-Locker | 1426a0569a1f80a3ec71c510f939e454469355fb | [
"MIT"
] | null | null | null | import unittest
from password import Credential
class TestCredentials(unittest.TestCase):
def SetUp(self):
self.new_credential = Credential("Kaveza","Viola","Access","viola.kaveza@student.moringaschool.com") # create account object
def test_init(self):
self.assertEqual(self.new_credential... | 29.442623 | 132 | 0.704343 | 197 | 1,796 | 6.142132 | 0.228426 | 0.165289 | 0.126446 | 0.069421 | 0.379339 | 0.177686 | 0.177686 | 0.080992 | 0 | 0 | 0 | 0.021175 | 0.184855 | 1,796 | 61 | 133 | 29.442623 | 0.805328 | 0.011693 | 0 | 0.117647 | 0 | 0 | 0.124577 | 0.042841 | 0 | 0 | 0 | 0 | 0.205882 | 1 | 0.205882 | false | 0.058824 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fb862a4321edccd9a82ff2297fe5317b6a11644e | 343 | py | Python | datadog_checks_base/datadog_checks/base/stubs/common.py | justinsousa/integrations-core | 223e337492a04de517bc35ec85ddf921108fd8d2 | [
"BSD-3-Clause"
] | null | null | null | datadog_checks_base/datadog_checks/base/stubs/common.py | justinsousa/integrations-core | 223e337492a04de517bc35ec85ddf921108fd8d2 | [
"BSD-3-Clause"
] | 4 | 2019-07-03T02:53:19.000Z | 2019-07-10T14:52:14.000Z | datadog_checks_base/datadog_checks/base/stubs/common.py | justinsousa/integrations-core | 223e337492a04de517bc35ec85ddf921108fd8d2 | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from __future__ import division
from collections import namedtuple
MetricStub = namedtuple('MetricStub', 'name type value tags hostname')
ServiceCheckStub = namedtuple('ServiceCheckStub', 'check_id name status t... | 34.3 | 95 | 0.790087 | 43 | 343 | 6.186047 | 0.767442 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016835 | 0.134111 | 343 | 9 | 96 | 38.111111 | 0.878788 | 0.291545 | 0 | 0 | 0 | 0 | 0.405858 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fb8b82f729c02743729ae8e644347042ff7cb4b5 | 599 | py | Python | EXercise spyder.py | oluwapesealo/peseCSC102 | 649607fd5b78590e234e7cba44fcdfc987920bb0 | [
"MIT"
] | null | null | null | EXercise spyder.py | oluwapesealo/peseCSC102 | 649607fd5b78590e234e7cba44fcdfc987920bb0 | [
"MIT"
] | null | null | null | EXercise spyder.py | oluwapesealo/peseCSC102 | 649607fd5b78590e234e7cba44fcdfc987920bb0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 8 13:45:55 2021
@author: SST-LAB
"""
class Pet:
def __init__(self, name, age):
self.name = name
self.age = age
def show(self):
print(f"I am {self.name} and I am {self.age} years old")
def speak(self):
print("... | 17.114286 | 64 | 0.487479 | 88 | 599 | 3.272727 | 0.534091 | 0.125 | 0.125 | 0.177083 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041131 | 0.350584 | 599 | 35 | 65 | 17.114286 | 0.699229 | 0.126878 | 0 | 0.15 | 0 | 0 | 0.172481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fb8f097e08918b9c566ee5d69fa5b37acb328983 | 411 | py | Python | overhave/transport/http/gitlab_client/settings.py | TinkoffCreditSystems/overhave | b0ab705ef5c5c5a65fa0b14b173b64fd7310e187 | [
"Apache-2.0"
] | 33 | 2021-02-01T15:49:37.000Z | 2021-12-20T00:44:43.000Z | overhave/transport/http/gitlab_client/settings.py | TinkoffCreditSystems/overhave | b0ab705ef5c5c5a65fa0b14b173b64fd7310e187 | [
"Apache-2.0"
] | 46 | 2021-02-03T12:56:52.000Z | 2021-12-19T18:50:27.000Z | overhave/transport/http/gitlab_client/settings.py | TinkoffCreditSystems/overhave | b0ab705ef5c5c5a65fa0b14b173b64fd7310e187 | [
"Apache-2.0"
] | 1 | 2021-12-07T09:02:44.000Z | 2021-12-07T09:02:44.000Z | from typing import Optional
from overhave.transport.http import BaseHttpClientSettings
from overhave.transport.http.gitlab_client.objects import TokenType
class OverhaveGitlabClientSettings(BaseHttpClientSettings):
""" Settings for :class:`GitlabHttpClient`. """
auth_token: Optional[str] = None
token_ty... | 27.4 | 67 | 0.776156 | 42 | 411 | 7.452381 | 0.619048 | 0.076677 | 0.134185 | 0.159744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148418 | 411 | 14 | 68 | 29.357143 | 0.894286 | 0.094891 | 0 | 0 | 0 | 0 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fb90388e19b499284e1c6fec1b1805375f4faa45 | 591 | py | Python | day2.py | Mukulphougat/Python | 4a12e5cb4ddff81dc6675695fcd1bdba8f2e2dd2 | [
"MIT"
] | null | null | null | day2.py | Mukulphougat/Python | 4a12e5cb4ddff81dc6675695fcd1bdba8f2e2dd2 | [
"MIT"
] | null | null | null | day2.py | Mukulphougat/Python | 4a12e5cb4ddff81dc6675695fcd1bdba8f2e2dd2 | [
"MIT"
] | null | null | null | # Not using a middle name
def get_formatted_name(first_name, last_name, middle_name=' '):
if middle_name:
full_name = first_name + ' ' + middle_name + ' ' + last_name
else:
full_name = first_name + ' ' + last_name
return full_name.title()
magician = get_formatted_name('harry','potter')
prin... | 32.833333 | 68 | 0.7022 | 80 | 591 | 4.9125 | 0.325 | 0.137405 | 0.183206 | 0.173028 | 0.160305 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004107 | 0.175973 | 591 | 18 | 69 | 32.833333 | 0.802875 | 0.077834 | 0 | 0.133333 | 0 | 0 | 0.112339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.266667 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
fb9698e1b191d2f940f6c02309581fff7332f92e | 345 | py | Python | graph/__init__.py | Liangchengdeye/redisGraph | 5b7e516a3df7c2eb884cd7569d02c5d7dd62ce64 | [
"Apache-2.0"
] | null | null | null | graph/__init__.py | Liangchengdeye/redisGraph | 5b7e516a3df7c2eb884cd7569d02c5d7dd62ce64 | [
"Apache-2.0"
] | null | null | null | graph/__init__.py | Liangchengdeye/redisGraph | 5b7e516a3df7c2eb884cd7569d02c5d7dd62ce64 | [
"Apache-2.0"
] | 1 | 2019-06-21T12:05:19.000Z | 2019-06-21T12:05:19.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
@version: v1.0
@author: W_H_J
@license: Apache Licence
@contact: 415900617@qq.com
@software: PyCharm
@file: alipayTestOne.py
@time:
@describe:
"""
import sys
import os
sys.path.append(os.path.dirname(os.getcwd()))
sys.path.append(os.path.abspath(os.path.dirname... | 20.294118 | 72 | 0.675362 | 50 | 345 | 4.54 | 0.72 | 0.079295 | 0.114537 | 0.132159 | 0.167401 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040134 | 0.133333 | 345 | 17 | 72 | 20.294118 | 0.719064 | 0.550725 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fb9d7370beb7df10debe00f145f30bc1aadb76fc | 350 | py | Python | api/services/github.py | JonFarz/torqatadashboard | 783849cdd3520d87c6767c3f2ca0a093b089e79f | [
"MIT"
] | null | null | null | api/services/github.py | JonFarz/torqatadashboard | 783849cdd3520d87c6767c3f2ca0a093b089e79f | [
"MIT"
] | null | null | null | api/services/github.py | JonFarz/torqatadashboard | 783849cdd3520d87c6767c3f2ca0a093b089e79f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from typing import List
from api.clients import github
from api.models.github import UserRepoSize
async def get_size_of_repos(user_name: str) -> List[UserRepoSize]:
data = await github.get_user_repos(user_name)
return list(map(lambda x: UserRepoSize(user_name=user_name, repo_name=x['na... | 31.818182 | 108 | 0.762857 | 56 | 350 | 4.589286 | 0.517857 | 0.124514 | 0.101167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.12 | 350 | 10 | 109 | 35 | 0.831169 | 0.06 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fbaf424067e88d2638e8477ea3c7ce133f8538dd | 11,084 | py | Python | imtoolkit/TASTCode.py | ishikawalab/imtoolk | e0b2d06fe734d7084644c1357ba68bd9cf79a309 | [
"MIT"
] | 7 | 2020-10-15T11:28:21.000Z | 2022-01-01T07:46:09.000Z | imtoolkit/TASTCode.py | ishikawalab/imtoolk | e0b2d06fe734d7084644c1357ba68bd9cf79a309 | [
"MIT"
] | null | null | null | imtoolkit/TASTCode.py | ishikawalab/imtoolk | e0b2d06fe734d7084644c1357ba68bd9cf79a309 | [
"MIT"
] | 3 | 2021-01-15T08:50:24.000Z | 2022-01-19T03:19:17.000Z | # Copyright (c) IMToolkit Development Team
# This toolkit is released under the MIT License, see LICENSE.txt
import numpy as np
from .Modulator import PSK, StarQAM
class TASTCode(object):
"""Differential space-time shift keying using threaded algebraic space-time (DSTSK-TAST) coding, which was proposed in [1]. O... | 47.775862 | 269 | 0.432876 | 2,010 | 11,084 | 2.383582 | 0.149254 | 0.056356 | 0.040075 | 0.060113 | 0.438739 | 0.367355 | 0.352327 | 0.290962 | 0.180338 | 0.176164 | 0 | 0.216188 | 0.39363 | 11,084 | 231 | 270 | 47.982684 | 0.496652 | 0.253428 | 0 | 0.047904 | 0 | 0.005988 | 0.026212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02994 | false | 0 | 0.011976 | 0 | 0.065868 | 0.02994 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
fbb446e744851f1bc319b023809f896f3827457d | 1,044 | py | Python | scripts/tensorflow_serving_test.py | Lannister-Xiaolin/xl_tensorflow | 99e0f458769ee1e45ebf55c789961e40f7d2eeac | [
"Apache-2.0"
] | null | null | null | scripts/tensorflow_serving_test.py | Lannister-Xiaolin/xl_tensorflow | 99e0f458769ee1e45ebf55c789961e40f7d2eeac | [
"Apache-2.0"
] | 1 | 2020-11-13T18:52:23.000Z | 2020-11-13T18:52:23.000Z | scripts/tensorflow_serving_test.py | Lannister-Xiaolin/xl_tensorflow | 99e0f458769ee1e45ebf55c789961e40f7d2eeac | [
"Apache-2.0"
] | null | null | null | #!usr/bin/env python3
# -*- coding: UTF-8 -*-
# todo 待完成
import json
import numpy as np
import requests
from PIL import Image
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
import grpc
import tensorflow as tf
import base64
from tensorflow_serving.apis import predict_pb2
from tensorflow_serving.apis import predict... | 36 | 97 | 0.778736 | 153 | 1,044 | 5.143791 | 0.575163 | 0.035578 | 0.053367 | 0.063532 | 0.07878 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043067 | 0.088123 | 1,044 | 29 | 98 | 36 | 0.783613 | 0.103448 | 0 | 0.083333 | 0 | 0 | 0.115756 | 0 | 0 | 0 | 0 | 0.034483 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fbb93da3b62a9b696b4843bf7a3cad09f32a118e | 976 | py | Python | recipes/site_listers/hellofresh.py | cfeenstra67/recipes | a2d296500b4ff70e11ff3177a1092a033498f82a | [
"MIT"
] | null | null | null | recipes/site_listers/hellofresh.py | cfeenstra67/recipes | a2d296500b4ff70e11ff3177a1092a033498f82a | [
"MIT"
] | null | null | null | recipes/site_listers/hellofresh.py | cfeenstra67/recipes | a2d296500b4ff70e11ff3177a1092a033498f82a | [
"MIT"
] | null | null | null | import os
from typing import Iterator
from urllib.parse import urljoin
import scrapy
from lxml import etree
from recipes import DATA_DIR
from recipes.site_listers.base import PageCallback, SiteLister
class HelloFreshLister(SiteLister):
""" """
start_url = "https://www.hellofresh.com/sitemap_recipe_pages.xm... | 32.533333 | 86 | 0.684426 | 121 | 976 | 5.404959 | 0.595041 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002597 | 0.211066 | 976 | 29 | 87 | 33.655172 | 0.846753 | 0.077869 | 0 | 0 | 0 | 0 | 0.160674 | 0.032584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
fbc20a084e7cae4b763c0a0a40f8b16292a68dd8 | 527 | py | Python | lib/kb_dRep/impl/config.py | n1mus/dRep | 805c450d9fa4767567aa452ca1a744bb25c15813 | [
"MIT"
] | null | null | null | lib/kb_dRep/impl/config.py | n1mus/dRep | 805c450d9fa4767567aa452ca1a744bb25c15813 | [
"MIT"
] | 2 | 2020-06-09T23:48:03.000Z | 2022-02-17T21:51:31.000Z | lib/kb_dRep/impl/config.py | n1mus/dRep | 805c450d9fa4767567aa452ca1a744bb25c15813 | [
"MIT"
] | 3 | 2020-03-31T17:29:57.000Z | 2020-05-11T14:25:23.000Z | from dotmap import DotMap
import pandas as pd
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
pd.set_option('display.max_colwidth', 80)
config = dict(
debug=True,
)
app = DotMap(config) # global
def reset_globals():
app.clear()
app.u... | 18.172414 | 63 | 0.685009 | 77 | 527 | 4.493506 | 0.571429 | 0.057803 | 0.127168 | 0.208092 | 0.251445 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029083 | 0.151803 | 527 | 28 | 64 | 18.821429 | 0.744966 | 0.081594 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.111111 | 0.388889 | 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 | 1 | 0 | 0 | 0 | 2 |
fbc4a9e7271e42f5761617de899896cf6f705825 | 17,049 | py | Python | main.py | zliucr/crosslingual-slu | 517071a7168f76c2ee27ac280cae77924c472a26 | [
"MIT"
] | 17 | 2020-10-05T05:14:48.000Z | 2021-03-24T08:10:20.000Z | main.py | zliucr/crosslingual-slu | 517071a7168f76c2ee27ac280cae77924c472a26 | [
"MIT"
] | 1 | 2021-02-20T06:27:12.000Z | 2021-02-20T06:27:12.000Z | main.py | zliucr/crosslingual-slu | 517071a7168f76c2ee27ac280cae77924c472a26 | [
"MIT"
] | 1 | 2021-03-15T08:13:23.000Z | 2021-03-15T08:13:23.000Z |
from config import get_params
from src.utils import init_experiment
from src.data_loader import get_dataloader, dataloader4pretr
from src.model import ModelSLU, ModelSLU4Adv, ModelSLU4Pretr
from src.trainer import SLUTrainer
import random
import torch
import numpy as np
from tqdm import tqdm
import os
def random_see... | 76.111607 | 629 | 0.652179 | 2,574 | 17,049 | 3.894716 | 0.060606 | 0.067032 | 0.095761 | 0.069825 | 0.778653 | 0.735162 | 0.673317 | 0.665237 | 0.662843 | 0.651372 | 0 | 0.026487 | 0.213854 | 17,049 | 223 | 630 | 76.452915 | 0.72148 | 0.009033 | 0 | 0.397727 | 0 | 0.068182 | 0.112585 | 0.027717 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017045 | false | 0 | 0.056818 | 0.005682 | 0.079545 | 0.005682 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
fbca97e32e69270355a4b2ed7b6f3954590c7c51 | 503 | py | Python | robot/migrations/0014_auto_20200105_2205.py | Misschl/wechat | 8ce76dae32b1086bb83ee6e3fe64cf84845012c0 | [
"Apache-2.0"
] | 1 | 2020-01-07T06:51:19.000Z | 2020-01-07T06:51:19.000Z | robot/migrations/0014_auto_20200105_2205.py | Misschl/wechat | 8ce76dae32b1086bb83ee6e3fe64cf84845012c0 | [
"Apache-2.0"
] | null | null | null | robot/migrations/0014_auto_20200105_2205.py | Misschl/wechat | 8ce76dae32b1086bb83ee6e3fe64cf84845012c0 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.5 on 2020-01-05 22:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('robot', '0013_auto_20200105_2204'),
]
operations = [
migrations.RemoveField(
model_name='mapmessage',
name='puid',
... | 21.869565 | 63 | 0.574553 | 51 | 503 | 5.54902 | 0.764706 | 0.063604 | 0.134276 | 0.162544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097983 | 0.310139 | 503 | 22 | 64 | 22.863636 | 0.717579 | 0.089463 | 0 | 0.25 | 1 | 0 | 0.125 | 0.050439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fbe135f98402aadfc72eac12c4d14c762692a4ca | 386 | py | Python | livelossplot/inputs/generic_keras.py | vfdev-5/livelossplot | fbcb53e2a13cde978512e3745848698f6c392315 | [
"MIT"
] | 1 | 2020-05-11T22:09:44.000Z | 2020-05-11T22:09:44.000Z | livelossplot/inputs/generic_keras.py | vfdev-5/livelossplot | fbcb53e2a13cde978512e3745848698f6c392315 | [
"MIT"
] | null | null | null | livelossplot/inputs/generic_keras.py | vfdev-5/livelossplot | fbcb53e2a13cde978512e3745848698f6c392315 | [
"MIT"
] | null | null | null | from livelossplot.plot_losses import PlotLosses
class _PlotLossesCallback:
"""Base keras callback class for keras and tensorflow.keras"""
def __init__(self, **kwargs):
self.liveplot = PlotLosses(**kwargs)
def on_epoch_end(self, epoch, logs):
"""Send metrics to livelossplot"""
self... | 29.692308 | 66 | 0.683938 | 45 | 386 | 5.688889 | 0.622222 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202073 | 386 | 12 | 67 | 32.166667 | 0.831169 | 0.220207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
8377a0cd1c2ae0b5c7bbf88bc06364891d0830d0 | 371 | py | Python | company/InfyTQ/Fundamentals/03SET/debug.py | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | company/InfyTQ/Fundamentals/03SET/debug.py | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | company/InfyTQ/Fundamentals/03SET/debug.py | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | count = 0
i = 1
for baggage_weight in 29, 30, 31, 32, 28:
if(baggage_weight >= 1 and baggage_weight <= 30):
print("Passenger", i, ": Proceed for baggage check.")
i += 1
count += 1
else:
print("Passenger", i, ": Maximum baggage weight allowed is 30kg.")
i += 1
print("No.... | 26.5 | 74 | 0.587601 | 53 | 371 | 4.056604 | 0.54717 | 0.24186 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075188 | 0.283019 | 371 | 13 | 75 | 28.538462 | 0.733083 | 0 | 0 | 0.181818 | 0 | 0 | 0.3531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.272727 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8380fe3044194f5734e90dd1310f2856790296e5 | 768 | py | Python | venv/lib/python2.7/site-packages/plotnine/scales/scale_linetype.py | nuriale207/preprocesspack | cc06a9cb79c5e3b392371fcd8d1ccf7185e71821 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/plotnine/scales/scale_linetype.py | nuriale207/preprocesspack | cc06a9cb79c5e3b392371fcd8d1ccf7185e71821 | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/plotnine/scales/scale_linetype.py | nuriale207/preprocesspack | cc06a9cb79c5e3b392371fcd8d1ccf7185e71821 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
from mizani.palettes import manual_pal
from ..doctools import document
from ..exceptions import PlotnineError
from ..utils import alias
from .scale import scale_discrete, scale_continuous
linetypes = ['solid', 'dashed', 'dashdot', 'dotted']
@documen... | 22.588235 | 66 | 0.730469 | 84 | 768 | 6.392857 | 0.547619 | 0.096834 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175781 | 768 | 33 | 67 | 23.272727 | 0.848341 | 0.091146 | 0 | 0 | 0 | 0 | 0.158209 | 0.034328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.6875 | 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 | 1 | 0 | 0 | 2 |
839d661338b5b7dc9112d000b9e6aaaebd3e2022 | 1,412 | py | Python | python/fancontrol/control/controller_util.py | Bengt/FanControl | 6b3958230e5eacf175e84d9a5927d74cd3f6b83a | [
"MIT"
] | 9 | 2015-11-25T13:39:22.000Z | 2018-10-16T21:09:10.000Z | python/fancontrol/control/controller_util.py | Bengt/FanControl | 6b3958230e5eacf175e84d9a5927d74cd3f6b83a | [
"MIT"
] | 6 | 2019-07-04T13:45:08.000Z | 2022-01-15T18:30:10.000Z | python/fancontrol/control/controller_util.py | Bengt/FanControl | 6b3958230e5eacf175e84d9a5927d74cd3f6b83a | [
"MIT"
] | 3 | 2020-08-12T13:31:50.000Z | 2021-06-16T22:12:20.000Z | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from config.configuration import Configuration
def get_headrooms(temperatures):
"""
Calculate the thermal headroom for each sensor.
Thermal headroom is the remaining fraction of the temperature r... | 23.932203 | 76 | 0.668555 | 180 | 1,412 | 5.116667 | 0.338889 | 0.054289 | 0.052117 | 0.032573 | 0.045603 | 0.045603 | 0 | 0 | 0 | 0 | 0 | 0.013233 | 0.250708 | 1,412 | 58 | 77 | 24.344828 | 0.857278 | 0.242918 | 0 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.034483 | 0.586207 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
83b0266c4a27b30db098df5ce4aca26ae0b29ca2 | 4,815 | py | Python | md2html.py | ermuur/X-Road-EE-docs | 61d5c8cbdf3a3faa1d8cefe1e92986e34ac62bab | [
"MIT"
] | null | null | null | md2html.py | ermuur/X-Road-EE-docs | 61d5c8cbdf3a3faa1d8cefe1e92986e34ac62bab | [
"MIT"
] | null | null | null | md2html.py | ermuur/X-Road-EE-docs | 61d5c8cbdf3a3faa1d8cefe1e92986e34ac62bab | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# NB! Do not forget to copy all the necessary images!
import json
import re
import requests
import sys
HTML_START = """<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="github-markdown.css">
<style>
.markdown-body {{
box-sizing:... | 56.647059 | 252 | 0.749325 | 679 | 4,815 | 5.07511 | 0.273932 | 0.066744 | 0.059199 | 0.074289 | 0.632037 | 0.518282 | 0.449797 | 0.317179 | 0.18108 | 0.067905 | 0 | 0.010568 | 0.11568 | 4,815 | 84 | 253 | 57.321429 | 0.798732 | 0.026376 | 0 | 0.084507 | 0 | 0 | 0.747705 | 0.422412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.056338 | 0 | 0.070423 | 0.028169 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83cd87c84a831e827b0d70974cba527237033682 | 189 | py | Python | ztlearn/datasets/data_set.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 30 | 2018-03-12T19:16:27.000Z | 2021-12-16T05:32:38.000Z | ztlearn/datasets/data_set.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 4 | 2018-06-13T03:47:15.000Z | 2018-11-05T21:33:34.000Z | ztlearn/datasets/data_set.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 4 | 2018-04-30T07:42:47.000Z | 2022-01-31T11:35:53.000Z | # -*- coding: utf-8 -*-
class DataSet:
def __init__(self, data, target, describe = None):
self.data = data
self.target = target
self.describe = describe
| 21 | 54 | 0.566138 | 21 | 189 | 4.904762 | 0.571429 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.312169 | 189 | 8 | 55 | 23.625 | 0.784615 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83de788cfc67efca8d4bb71cc5faf665a816cd24 | 1,047 | py | Python | examples/__old/simplestacks_planarize.py | GeneKao/compas_rbe | e01a8d63a17f5d2ee8264962fe266d397c55e024 | [
"MIT"
] | 3 | 2019-01-30T18:10:53.000Z | 2020-10-09T17:27:39.000Z | examples/__old/simplestacks_planarize.py | GeneKao/compas_rbe | e01a8d63a17f5d2ee8264962fe266d397c55e024 | [
"MIT"
] | 7 | 2019-01-29T13:31:38.000Z | 2019-11-29T06:33:15.000Z | examples/__old/simplestacks_planarize.py | GeneKao/compas_rbe | e01a8d63a17f5d2ee8264962fe266d397c55e024 | [
"MIT"
] | 6 | 2019-01-29T13:08:23.000Z | 2020-03-31T12:53:06.000Z | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import compas
import compas_rbe
from compas_assembly.datastructures import Assembly
from compas_assembly.interfaces import assembly_interfaces_bestfit
from compas_assembly.interfaces import planarize_interface... | 24.348837 | 77 | 0.817574 | 132 | 1,047 | 6.204545 | 0.439394 | 0.06105 | 0.087912 | 0.068376 | 0.083028 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.117479 | 1,047 | 42 | 78 | 24.928571 | 0.874459 | 0.264565 | 0 | 0 | 0 | 0 | 0.043307 | 0.036745 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
83e2591c5fc198927eae2abeaed230ddd395f547 | 866 | py | Python | dnxdata/resource.py | DNXLabs/data | 5cffc55696e369a15ed4614fd3d6be647af69f31 | [
"Apache-2.0"
] | null | null | null | dnxdata/resource.py | DNXLabs/data | 5cffc55696e369a15ed4614fd3d6be647af69f31 | [
"Apache-2.0"
] | 2 | 2020-07-08T06:45:39.000Z | 2020-07-09T02:43:13.000Z | dnxdata/resource.py | DNXLabs/data | 5cffc55696e369a15ed4614fd3d6be647af69f31 | [
"Apache-2.0"
] | 1 | 2021-07-16T00:45:35.000Z | 2021-07-16T00:45:35.000Z | import boto3
import os
_session = boto3.session.Session()
region_name = _session.region_name
AWS_REGION = os.getenv("AWS_REGION", region_name)
S3_ENDPOINT_URL = os.getenv("S3_ENDPOINT_URL", None)
DYNAMODB_ENDPOINT_URL = os.getenv("DYNAMODB_ENDPOINT_URL", None)
# S3
s3_client = boto3.client('s3', region_name=AWS_REG... | 30.928571 | 104 | 0.80485 | 127 | 866 | 5.110236 | 0.149606 | 0.20339 | 0.160247 | 0.234206 | 0.31433 | 0.31433 | 0.31433 | 0.31433 | 0.31433 | 0.31433 | 0 | 0.02267 | 0.083141 | 866 | 27 | 105 | 32.074074 | 0.79471 | 0.031178 | 0 | 0 | 0 | 0 | 0.094838 | 0.02521 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
83e928d245e0f1c5cc8b7f59cb203cdd839332ab | 148 | py | Python | conf/gunicorn.conf.py | mayurnewase/Chatty | 431bf160e39fc04370e30db72a25129a15d1bb5e | [
"MIT"
] | null | null | null | conf/gunicorn.conf.py | mayurnewase/Chatty | 431bf160e39fc04370e30db72a25129a15d1bb5e | [
"MIT"
] | 11 | 2020-01-28T22:51:14.000Z | 2022-03-02T04:46:14.000Z | conf/gunicorn.conf.py | mayurnewase/Chatty | 431bf160e39fc04370e30db72a25129a15d1bb5e | [
"MIT"
] | null | null | null | open('/tmp/app-initialized', 'w').close()
bind = 'unix:///tmp/nginx.socket'
worker_class = 'gevent' # not necessary
timeout = 90 # not necesssary
| 29.6 | 41 | 0.682432 | 20 | 148 | 5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.128378 | 148 | 4 | 42 | 37 | 0.75969 | 0.189189 | 0 | 0 | 0 | 0 | 0.435897 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83ee7563c67e87f6fb1bb56338c8616fd3c243f6 | 243 | py | Python | Data Scientist Career Path/11. Foundations of Machine Learning Supervised Learning/3. Multiple/2. dataset.py | myarist/Codecademy | 2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb | [
"MIT"
] | 23 | 2021-06-06T15:35:55.000Z | 2022-03-21T06:53:42.000Z | Data Scientist Career Path/11. Foundations of Machine Learning Supervised Learning/3. Multiple/2. dataset.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | null | null | null | Data Scientist Career Path/11. Foundations of Machine Learning Supervised Learning/3. Multiple/2. dataset.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | 9 | 2021-06-08T01:32:04.000Z | 2022-03-18T15:38:09.000Z | import codecademylib3_seaborn
import pandas as pd
streeteasy = pd.read_csv("https://raw.githubusercontent.com/sonnynomnom/Codecademy-Machine-Learning-Fundamentals/master/StreetEasy/queens.csv")
df = pd.DataFrame(streeteasy)
print(df.head()) | 30.375 | 143 | 0.81893 | 31 | 243 | 6.354839 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004386 | 0.061728 | 243 | 8 | 144 | 30.375 | 0.859649 | 0 | 0 | 0 | 0 | 0.2 | 0.471311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
83ef5deb1c45e532c6046e23553bd3c5ffee0e15 | 353 | py | Python | tests/validation/test_clean_locale.py | StuartMacKay/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | 9 | 2020-05-16T20:26:33.000Z | 2021-11-02T06:24:46.000Z | tests/validation/test_clean_locale.py | StuartMacKay/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | 17 | 2019-06-22T09:41:22.000Z | 2020-09-11T06:25:21.000Z | tests/validation/test_clean_locale.py | ProjectBabbler/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | null | null | null | import unittest
from ebird.api.validation import clean_locale
class CleanLocaleTests(unittest.TestCase):
"""Tests for the clean_locale validation function."""
def test_case_corrected(self):
self.assertEqual("en_US", clean_locale("EN_us"))
def test_invalid_code(self):
self.assertRaises(V... | 25.214286 | 59 | 0.739377 | 44 | 353 | 5.704545 | 0.636364 | 0.175299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15864 | 353 | 13 | 60 | 27.153846 | 0.845118 | 0.133144 | 0 | 0 | 0 | 0 | 0.046667 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
83f59e0f6629c8d60192e58d6351e7a700060cc0 | 792 | py | Python | database/tests/factories.py | changchunlei/beiwe-backend | 88546daa6750a6b8a5a795b020cf47dbd0a09343 | [
"BSD-3-Clause"
] | 51 | 2018-01-12T01:51:44.000Z | 2022-03-10T00:06:34.000Z | database/tests/factories.py | changchunlei/beiwe-backend | 88546daa6750a6b8a5a795b020cf47dbd0a09343 | [
"BSD-3-Clause"
] | 213 | 2018-01-10T19:57:03.000Z | 2022-03-29T04:30:53.000Z | database/tests/factories.py | changchunlei/beiwe-backend | 88546daa6750a6b8a5a795b020cf47dbd0a09343 | [
"BSD-3-Clause"
] | 35 | 2018-03-08T03:28:53.000Z | 2022-03-11T13:58:44.000Z | import factory
from database.user_models import Researcher
class ResearcherFactory(factory.DjangoModelFactory):
class Meta:
model = Researcher
password = '1' # See `.set_password`
salt = '1' # See `.set_password`
username = factory.Faker('user_name')
@factory.post_generation
def s... | 33 | 97 | 0.675505 | 97 | 792 | 5.43299 | 0.587629 | 0.083491 | 0.026565 | 0.056926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.238636 | 792 | 23 | 98 | 34.434783 | 0.868988 | 0.450758 | 0 | 0 | 0 | 0 | 0.031088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.25 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
83f6726e312fd828ca07749784eeb15708fccee9 | 311 | py | Python | rest_framework_api_key/migrations/0003_auto_20180924_1006.py | orlax/djangorestframework-api-key | 325af11bc9d1d4daa5bb2a0f302834e68f9ffb47 | [
"MIT"
] | null | null | null | rest_framework_api_key/migrations/0003_auto_20180924_1006.py | orlax/djangorestframework-api-key | 325af11bc9d1d4daa5bb2a0f302834e68f9ffb47 | [
"MIT"
] | null | null | null | rest_framework_api_key/migrations/0003_auto_20180924_1006.py | orlax/djangorestframework-api-key | 325af11bc9d1d4daa5bb2a0f302834e68f9ffb47 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-24 10:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("rest_framework_api_key", "0002_auto_20180922_1759")]
operations = [
migrations.RenameField(model_name="apikey", old_name="key", new_name="token")
]
| 23.923077 | 85 | 0.717042 | 42 | 311 | 5.095238 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118774 | 0.160772 | 311 | 12 | 86 | 25.916667 | 0.701149 | 0.144695 | 0 | 0 | 1 | 0 | 0.223485 | 0.170455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
83f6fb2e6f6602be088fcb0425c5dd48d785df5c | 1,112 | py | Python | spam_lists/exceptions.py | piotr-rusin/spam-lists | bcd9ab275fca42bbff47bc4a0e82c8017893a834 | [
"MIT"
] | 7 | 2017-03-27T04:01:38.000Z | 2019-11-28T07:10:12.000Z | spam_lists/exceptions.py | piotr-rusin/spam-lists | bcd9ab275fca42bbff47bc4a0e82c8017893a834 | [
"MIT"
] | null | null | null | spam_lists/exceptions.py | piotr-rusin/spam-lists | bcd9ab275fca42bbff47bc4a0e82c8017893a834 | [
"MIT"
] | 4 | 2017-03-27T04:01:54.000Z | 2019-11-28T07:10:16.000Z | # -*- coding: utf-8 -*-
"""Classes of exceptions raised by the library."""
from __future__ import unicode_literals
class SpamListsError(Exception):
"""There was an error during testing a URL or host."""
class SpamListsValueError(SpamListsError, ValueError):
"""An inapropriate value was used in spam-lists li... | 25.272727 | 70 | 0.730216 | 131 | 1,112 | 6.160305 | 0.473282 | 0.05948 | 0.074349 | 0.096654 | 0.262701 | 0.262701 | 0.262701 | 0 | 0 | 0 | 0 | 0.005371 | 0.16277 | 1,112 | 43 | 71 | 25.860465 | 0.861439 | 0.44964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
83f9f90469b5c0244e44bca0acdd993b01c1abbc | 398 | py | Python | deliverable_model/converter_base.py | lanSeFangZhou/deliverable_model | b01c502286850879bc3f9be1dd6f369ad1181d07 | [
"Apache-2.0"
] | 2 | 2020-08-20T04:26:58.000Z | 2021-01-04T10:06:31.000Z | deliverable_model/converter_base.py | lanSeFangZhou/deliverable_model | b01c502286850879bc3f9be1dd6f369ad1181d07 | [
"Apache-2.0"
] | 6 | 2019-12-12T03:13:43.000Z | 2021-11-10T20:08:18.000Z | deliverable_model/converter_base.py | lanSeFangZhou/deliverable_model | b01c502286850879bc3f9be1dd6f369ad1181d07 | [
"Apache-2.0"
] | 4 | 2019-11-15T09:56:01.000Z | 2020-05-08T10:23:00.000Z | from typing import Tuple
class ConverterBase:
def __call__(self, *args, **kwargs) -> Tuple[list, dict]:
return self.call(*args, **kwargs)
def call(self, *args, **kwargs) -> Tuple[list, dict]:
raise NotImplementedError
def get_config(self) -> dict:
return {}
@classmethod
... | 23.411765 | 61 | 0.623116 | 45 | 398 | 5.377778 | 0.444444 | 0.123967 | 0.090909 | 0.123967 | 0.280992 | 0.280992 | 0.280992 | 0.280992 | 0 | 0 | 0 | 0 | 0.241206 | 398 | 16 | 62 | 24.875 | 0.801325 | 0 | 0 | 0 | 0 | 0 | 0.032663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.272727 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
83fba0774c3fbcd9c16646d242918e71e4dc2e6b | 3,883 | py | Python | slaid/commons/openslide.py | mdrio/slaid | 67c85f0d1702bced1c089bfb3c20ba1cfbc9c225 | [
"MIT"
] | null | null | null | slaid/commons/openslide.py | mdrio/slaid | 67c85f0d1702bced1c089bfb3c20ba1cfbc9c225 | [
"MIT"
] | null | null | null | slaid/commons/openslide.py | mdrio/slaid | 67c85f0d1702bced1c089bfb3c20ba1cfbc9c225 | [
"MIT"
] | null | null | null | # NAPARI LAZY OPENSLIDE
# Copyright (c) 2020, Trevor Manz
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# ... | 35.953704 | 81 | 0.715426 | 512 | 3,883 | 5.296875 | 0.371094 | 0.02323 | 0.016224 | 0.016962 | 0.136431 | 0.081121 | 0.081121 | 0.081121 | 0.050147 | 0.050147 | 0 | 0.001952 | 0.208344 | 3,883 | 107 | 82 | 36.28972 | 0.880286 | 0.400979 | 0 | 0.122807 | 0 | 0 | 0.014379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22807 | false | 0 | 0.140351 | 0.140351 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
83fda904441109b77800b364f855fdf002fa32b1 | 4,848 | py | Python | applications/MultilevelMonteCarloApplication/external_libraries/XMC/xmc/methodDefs_momentEstimator/updatePowerSums.py | HubertBalcerzak/Kratos | c15689d53f06dabb36dc44c13eeac73d3e183916 | [
"BSD-4-Clause"
] | null | null | null | applications/MultilevelMonteCarloApplication/external_libraries/XMC/xmc/methodDefs_momentEstimator/updatePowerSums.py | HubertBalcerzak/Kratos | c15689d53f06dabb36dc44c13eeac73d3e183916 | [
"BSD-4-Clause"
] | null | null | null | applications/MultilevelMonteCarloApplication/external_libraries/XMC/xmc/methodDefs_momentEstimator/updatePowerSums.py | HubertBalcerzak/Kratos | c15689d53f06dabb36dc44c13eeac73d3e183916 | [
"BSD-4-Clause"
] | null | null | null | # Import PyCOMPSs
# from exaqute.ExaquteTaskPyCOMPSs import * # to execute with runcompss
# from exaqute.ExaquteTaskHyperLoom import * # to execute with the IT4 scheduler
from exaqute.ExaquteTaskLocal import * # to execute with python3
def updatePowerSumsOrder2Dimension0(samples, power_sum_1, power_sum_2):
... | 46.171429 | 177 | 0.66151 | 671 | 4,848 | 4.421759 | 0.101341 | 0.2939 | 0.063701 | 0.040445 | 0.707112 | 0.703741 | 0.681496 | 0.613077 | 0.537243 | 0.486687 | 0 | 0.062687 | 0.239893 | 4,848 | 104 | 178 | 46.615385 | 0.742469 | 0.087665 | 0 | 0.477273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0 | 1 | 0.090909 | false | 0 | 0.011364 | 0.045455 | 0.193182 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83fde500c19312f6038aeca59241f127f2c3491a | 510 | py | Python | tests/telegram_test.py | SakshayMahna/Notifier-Bot | 79c0f2151cca1474c7fd1c1f1239f8aa6837715f | [
"MIT"
] | null | null | null | tests/telegram_test.py | SakshayMahna/Notifier-Bot | 79c0f2151cca1474c7fd1c1f1239f8aa6837715f | [
"MIT"
] | null | null | null | tests/telegram_test.py | SakshayMahna/Notifier-Bot | 79c0f2151cca1474c7fd1c1f1239f8aa6837715f | [
"MIT"
] | null | null | null | import pytest
import requests
from notifierbot.telegram.bot import TelegramBot
from notifierbot.telegram.config import TelegramConfig
from notifierbot.telegram.tf_callback import TelegramCallback
def test_telegram_bot():
config = TelegramConfig('', '')
bot = TelegramBot(config)
bot.add_message("Test ... | 26.842105 | 61 | 0.739216 | 56 | 510 | 6.589286 | 0.446429 | 0.121951 | 0.186992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.158824 | 510 | 19 | 62 | 26.842105 | 0.853147 | 0 | 0 | 0.142857 | 0 | 0 | 0.033268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.357143 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
83ff54143ee596fbb075ef1fb4a9e1aef044d9fc | 671 | py | Python | src/backup-explorer-cli/bkpctl/__init__.py | Bhaskers-Blu-Org2/service-fabric-backup-explorer | 1b1def3f47e85dad844e1ec8a6394624de0b7e33 | [
"MIT"
] | 14 | 2020-03-18T12:38:49.000Z | 2022-01-03T11:29:33.000Z | src/backup-explorer-cli/bkpctl/__init__.py | Bhaskers-Blu-Org2/service-fabric-backup-explorer | 1b1def3f47e85dad844e1ec8a6394624de0b7e33 | [
"MIT"
] | 3 | 2020-03-06T09:23:03.000Z | 2021-01-25T16:48:20.000Z | src/backup-explorer-cli/bkpctl/__init__.py | microsoft/service-fabric-backup-explorer | f371b6c08578ce752fd042df4d6aa0ac63963cfd | [
"MIT"
] | 7 | 2020-06-30T15:13:16.000Z | 2021-02-15T16:51:54.000Z | # -----------------------------------------------------------------------------
# Adapted from Microsoft OSS
# see https://github.com/Microsoft/service-fabric-cli
# -----------------------------------------------------------------------------
"""Azure Service Fabric Backup Explorer command line environment for queryin... | 41.9375 | 207 | 0.61699 | 70 | 671 | 5.714286 | 0.642857 | 0.065 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110283 | 671 | 15 | 208 | 44.733333 | 0.670017 | 0.813711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8606751c808ac7c5851702bdec954165f32be586 | 876 | py | Python | user.py | Antony590/Password-Locker | 1fc2bda3a2cb821af568f7cf06c99b3951a1f261 | [
"MIT"
] | null | null | null | user.py | Antony590/Password-Locker | 1fc2bda3a2cb821af568f7cf06c99b3951a1f261 | [
"MIT"
] | null | null | null | user.py | Antony590/Password-Locker | 1fc2bda3a2cb821af568f7cf06c99b3951a1f261 | [
"MIT"
] | null | null | null | class User:
user_list = []
def __init__(self,first_name,last_name,phone_number,email,username,password):
self.first_name = first_name
self.last_name = last_name
self.phone_number = phone_number
self.email = email
self.username = username
self.password = passwor... | 22.461538 | 81 | 0.61758 | 110 | 876 | 4.663636 | 0.281818 | 0.109162 | 0.070175 | 0.062378 | 0.304094 | 0.226121 | 0.226121 | 0.226121 | 0.226121 | 0.226121 | 0 | 0 | 0.303653 | 876 | 38 | 82 | 23.052632 | 0.840984 | 0 | 0 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0 | 0.035714 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f7a5cb906ea4dbada64676f21a0fdd424b3bc68c | 558 | py | Python | userprofile/forms.py | hpathipati/Quick-Tutor | 17476d79b87f51b12a6c8fc435d1a6506bff1e04 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | userprofile/forms.py | hpathipati/Quick-Tutor | 17476d79b87f51b12a6c8fc435d1a6506bff1e04 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null | userprofile/forms.py | hpathipati/Quick-Tutor | 17476d79b87f51b12a6c8fc435d1a6506bff1e04 | [
"PostgreSQL",
"Unlicense",
"MIT"
] | null | null | null |
from django import forms
from study.models import Student
class EditProfile(forms.Form):
first_name = forms.CharField(max_length=25)
last_name = forms.CharField(max_length=25)
email = forms.EmailField()
graduation_year = forms.ChoiceField(
choices=[(x, x) for x in range(2020, 2024)])
pict... | 34.875 | 94 | 0.695341 | 73 | 558 | 5.232877 | 0.643836 | 0.109948 | 0.133508 | 0.180628 | 0.151832 | 0.151832 | 0 | 0 | 0 | 0 | 0 | 0.03913 | 0.175627 | 558 | 15 | 95 | 37.2 | 0.791304 | 0 | 0 | 0 | 0 | 0 | 0.070018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.75 | 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 | 1 | 0 | 0 | 2 |
f7aa2bf1a979167ede22dd05cf7bb1e224265924 | 322 | py | Python | Day 5/day-5-3-exercise/main.py | Jean-Bi/100DaysOfCodePython | 2069d1366c58e7d5f4cd30cfc786e9c2e44b82ca | [
"MIT"
] | null | null | null | Day 5/day-5-3-exercise/main.py | Jean-Bi/100DaysOfCodePython | 2069d1366c58e7d5f4cd30cfc786e9c2e44b82ca | [
"MIT"
] | null | null | null | Day 5/day-5-3-exercise/main.py | Jean-Bi/100DaysOfCodePython | 2069d1366c58e7d5f4cd30cfc786e9c2e44b82ca | [
"MIT"
] | null | null | null | #Write your code below this row 👇
#Initializes the variable for the total
total_even_numbers = 0
#Goes through all even numbers
for even_number in range(2, 101, 2):
#Adds the current even number to the total
total_even_numbers += even_number
#Prints the total of even numbers from 1 to 100
print(total_even_numbe... | 26.833333 | 47 | 0.779503 | 57 | 322 | 4.280702 | 0.561404 | 0.22541 | 0.196721 | 0.139344 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037453 | 0.170807 | 322 | 12 | 48 | 26.833333 | 0.872659 | 0.57764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 1 | 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 | 2 |
f7c92105d970376c33461d47db5aa0ed7de07016 | 1,023 | py | Python | staff/tests/base.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 23 | 2015-10-28T14:08:23.000Z | 2021-09-11T21:38:41.000Z | staff/tests/base.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 4 | 2019-12-05T20:36:10.000Z | 2020-06-05T18:41:54.000Z | staff/tests/base.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 11 | 2015-10-28T15:49:56.000Z | 2021-09-14T14:18:36.000Z | from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from libya_site.tests.factories import UserFactory
class StaffUserMixin(object):
model = None
username = "staff_user"
email = "staff@example.com"
password = "password"
permissions = []
... | 33 | 92 | 0.646139 | 116 | 1,023 | 5.586207 | 0.405172 | 0.049383 | 0.052469 | 0.058642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264907 | 1,023 | 30 | 93 | 34.1 | 0.861702 | 0 | 0 | 0 | 0 | 0 | 0.034213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
f7d021a593fa9ef271bea95337a8ac6bc58aa547 | 2,470 | py | Python | user_test.py | Calebu6214/Password-locker | 55a074c45870b57ab5fb810643696e146ae9c875 | [
"MIT"
] | null | null | null | user_test.py | Calebu6214/Password-locker | 55a074c45870b57ab5fb810643696e146ae9c875 | [
"MIT"
] | null | null | null | user_test.py | Calebu6214/Password-locker | 55a074c45870b57ab5fb810643696e146ae9c875 | [
"MIT"
] | null | null | null | from credentials import Cred
import pyperclip
import unittest # Importing the unittest module
from user import User # Importing the user class
class TestUser(unittest.TestCase):
'''
Test class that defines test cases for the user class behaviours.
Args:
unittest.TestCase: TestCase class that help... | 28.068182 | 79 | 0.613765 | 317 | 2,470 | 4.618297 | 0.271293 | 0.062158 | 0.067623 | 0.060109 | 0.263661 | 0.215164 | 0.170765 | 0.087432 | 0.087432 | 0.087432 | 0 | 0.020595 | 0.292308 | 2,470 | 88 | 80 | 28.068182 | 0.816934 | 0.427935 | 0 | 0.241379 | 0 | 0 | 0.047658 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 1 | 0.206897 | false | 0.137931 | 0.137931 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f7d298b577c05a83086d20cb24ee8d1da2c3adc9 | 140 | py | Python | chap13/list1301.py | ytianjin/GitTest | a657f46098728ad90f7140fadad356e8561c9a7a | [
"MIT"
] | null | null | null | chap13/list1301.py | ytianjin/GitTest | a657f46098728ad90f7140fadad356e8561c9a7a | [
"MIT"
] | null | null | null | chap13/list1301.py | ytianjin/GitTest | a657f46098728ad90f7140fadad356e8561c9a7a | [
"MIT"
] | null | null | null | #向文件写入两行字符串
f = open('hello.txt', 'w') # 打开(文本+写入模式)
f.write('Hello!\n')
f.write('How are you?\n')
f.close() # 关闭 | 17.5 | 41 | 0.485714 | 22 | 140 | 3.090909 | 0.727273 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 140 | 8 | 42 | 17.5 | 0.68 | 0.178571 | 0 | 0 | 0 | 0 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7dfbb561270ace90a7fd9955825f57545ac9d18 | 1,990 | py | Python | Python/compare_arrays.py | shloch/CODING_PRACTICE | c79ed3c2b576d133fd7a446b0fd954362cf54b22 | [
"MIT"
] | null | null | null | Python/compare_arrays.py | shloch/CODING_PRACTICE | c79ed3c2b576d133fd7a446b0fd954362cf54b22 | [
"MIT"
] | null | null | null | Python/compare_arrays.py | shloch/CODING_PRACTICE | c79ed3c2b576d133fd7a446b0fd954362cf54b22 | [
"MIT"
] | 1 | 2022-03-12T06:43:31.000Z | 2022-03-12T06:43:31.000Z | # Given two arrays a and b write a function comp(a, b) (compSame(a, b) in Clojure) that
# checks whether the two arrays have the "same" elements, with the same multiplicities.
# "Same" means, here, that the elements in b are the elements in a squared, regardless of the order.
# Examples
# Valid arrays
# a = [121, 1... | 44.222222 | 110 | 0.651759 | 360 | 1,990 | 3.591667 | 0.319444 | 0.054138 | 0.059551 | 0.042537 | 0.351895 | 0.311678 | 0.311678 | 0.311678 | 0.29621 | 0.2529 | 0 | 0.224477 | 0.207538 | 1,990 | 45 | 111 | 44.222222 | 0.595434 | 0.865829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7e6e57fad50679f959ffacc6611da3080575306 | 522 | py | Python | formlibrary/models/distribution.py | arqaamio/Activity-ce | abdcd536b2900c38cf738a93c443b960fe53b5a8 | [
"Apache-2.0"
] | 60 | 2020-02-13T17:20:43.000Z | 2022-03-12T19:26:04.000Z | formlibrary/models/distribution.py | arqaamio/Activity-ce | abdcd536b2900c38cf738a93c443b960fe53b5a8 | [
"Apache-2.0"
] | 449 | 2020-02-12T22:18:00.000Z | 2022-03-11T23:36:59.000Z | formlibrary/models/distribution.py | arqaamio/Activity-ce | abdcd536b2900c38cf738a93c443b960fe53b5a8 | [
"Apache-2.0"
] | 31 | 2020-03-07T21:00:54.000Z | 2021-07-14T18:37:34.000Z | from django.db import models
from formlibrary.models import Service
class Distribution(Service):
"""
Distribution of items, or group of items, to individuals or households
Subject to future changes: https://github.com/hikaya-io/activity/issues/419
"""
# ? How would we handle a distribution of mult... | 40.153846 | 91 | 0.752874 | 70 | 522 | 5.571429 | 0.742857 | 0.053846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01373 | 0.162835 | 522 | 12 | 92 | 43.5 | 0.878719 | 0.44636 | 0 | 0 | 0 | 0 | 0.100372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 2 |
f7fc9e4e2112a5a70bcb9439c71a6b04f66e3cc3 | 1,209 | py | Python | smallinvoice/tests/accounts_tests.py | dreipol/smallinvoice | d56850c70542d92ca23385876ecb02f20b620077 | [
"MIT"
] | 1 | 2016-06-09T18:45:47.000Z | 2016-06-09T18:45:47.000Z | smallinvoice/tests/accounts_tests.py | dreipol/smallinvoice | d56850c70542d92ca23385876ecb02f20b620077 | [
"MIT"
] | null | null | null | smallinvoice/tests/accounts_tests.py | dreipol/smallinvoice | d56850c70542d92ca23385876ecb02f20b620077 | [
"MIT"
] | null | null | null | # coding=utf-8
import unittest
from smallinvoice.accounts import Account
from smallinvoice.tests import get_smallinvoice
def generate_account():
return Account(title='Testaccount',
institute='Familie Test',
number='Number123',
iban='Iban123',
... | 29.487805 | 65 | 0.616212 | 128 | 1,209 | 5.6875 | 0.390625 | 0.041209 | 0.071429 | 0.065934 | 0.318681 | 0.232143 | 0.120879 | 0.120879 | 0 | 0 | 0 | 0.021915 | 0.282878 | 1,209 | 40 | 66 | 30.225 | 0.817762 | 0.009926 | 0 | 0.066667 | 1 | 0 | 0.098745 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.233333 | false | 0 | 0.1 | 0.033333 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7900a0a926aa64ad95ee205dd355f50cf4263d59 | 470 | py | Python | example/manage.py | peterbe/django-jingo-offline-compressor | 282cb4a0cea3a0f3b4c9c00b8ee4be8ed9cf9ce7 | [
"BSD-3-Clause"
] | 1 | 2015-05-17T08:20:05.000Z | 2015-05-17T08:20:05.000Z | example/manage.py | peterbe/django-jingo-offline-compressor | 282cb4a0cea3a0f3b4c9c00b8ee4be8ed9cf9ce7 | [
"BSD-3-Clause"
] | null | null | null | example/manage.py | peterbe/django-jingo-offline-compressor | 282cb4a0cea3a0f3b4c9c00b8ee4be8ed9cf9ce7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import warnings
if __name__ == "__main__":
here = os.path.dirname(__file__)
there = os.path.join(here, '..')
there = os.path.abspath(there)
sys.path.insert(0, there)
print "NOTE Using jingo_offline_compressor from %s" % there
os.environ.setdefault("DJ... | 26.111111 | 71 | 0.725532 | 65 | 470 | 4.907692 | 0.615385 | 0.056426 | 0.068966 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002532 | 0.159574 | 470 | 17 | 72 | 27.647059 | 0.805063 | 0.042553 | 0 | 0 | 0 | 0 | 0.202673 | 0.10245 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
790291306b8d75507d391fba9b580cfd2e30e82e | 240 | py | Python | scripts/field/rienArrow.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/field/rienArrow.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/field/rienArrow.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # Created by MechAviv
# ID :: [140010000]
# Snow Island : Dangerous Forest
if not "o" in sm.getQuestEx(21019, "arr"):
sm.avatarOriented("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3")
sm.setQuestEx(21019, "arr", "o") | 40 | 85 | 0.720833 | 30 | 240 | 5.766667 | 0.833333 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095694 | 0.129167 | 240 | 6 | 86 | 40 | 0.732057 | 0.283333 | 0 | 0 | 0 | 0 | 0.402367 | 0.35503 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
79163a933fd9676a83952a9b814dd46d57978b13 | 315 | py | Python | test-stmary.py | linuxkay/python | 6c096e43e4a42bb3bd75f1075c63223f11cee645 | [
"MIT"
] | null | null | null | test-stmary.py | linuxkay/python | 6c096e43e4a42bb3bd75f1075c63223f11cee645 | [
"MIT"
] | null | null | null | test-stmary.py | linuxkay/python | 6c096e43e4a42bb3bd75f1075c63223f11cee645 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib
from lxml import html
import requests
page = requests.get('http://stmary-338.com/')
tree = html.fromstring(page.content)
info = tree.xpath('//*[@id="panel-w5840cbe2b571d-0-1-0"]/div/div/h6[1]')
for i in info:
print "ST MARY", i.encode(page.encoding)
| 28.636364 | 72 | 0.68254 | 51 | 315 | 4.215686 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061151 | 0.11746 | 315 | 10 | 73 | 31.5 | 0.71223 | 0.133333 | 0 | 0 | 0 | 0.125 | 0.295203 | 0.188192 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
791cc104fcacb80be454bff64c389543e9979b93 | 510 | py | Python | tests/conftest.py | brianl9995/biobionews | 11f41731510ee3f4c2a868cd867daf417a19d9fc | [
"MIT"
] | 1 | 2020-08-03T20:56:11.000Z | 2020-08-03T20:56:11.000Z | tests/conftest.py | brianl9995/biobionews | 11f41731510ee3f4c2a868cd867daf417a19d9fc | [
"MIT"
] | null | null | null | tests/conftest.py | brianl9995/biobionews | 11f41731510ee3f4c2a868cd867daf417a19d9fc | [
"MIT"
] | null | null | null | from unittest.mock import Mock
from _pytest.config import Config
import pytest
from pytest_mock import MockFixture
def pytest_configure(config: Config) -> None:
config.addinivalue_line("markers", "e2e: mark as end-to-end test.")
@pytest.fixture
def mock_requests_get(mocker: MockFixture) -> Mock:
mock = moc... | 26.842105 | 74 | 0.721569 | 69 | 510 | 5.101449 | 0.521739 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011601 | 0.154902 | 510 | 18 | 75 | 28.333333 | 0.805104 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
79245030f761d9bc6a521eed6c0b74225a78d770 | 1,044 | py | Python | spacy/lang/fr/lemmatizer/__init__.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 12 | 2019-03-20T20:43:47.000Z | 2020-04-13T11:10:52.000Z | spacy/lang/fr/lemmatizer/__init__.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 13 | 2018-06-05T11:54:40.000Z | 2019-07-02T11:33:14.000Z | spacy/lang/fr/lemmatizer/__init__.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 1 | 2020-09-02T07:24:59.000Z | 2020-09-02T07:24:59.000Z | # coding: utf8
from __future__ import unicode_literals
from .lookup import LOOKUP
from ._adjectives import ADJECTIVES
from ._adjectives_irreg import ADJECTIVES_IRREG
from ._adp_irreg import ADP_IRREG
from ._adverbs import ADVERBS
from ._auxiliary_verbs_irreg import AUXILIARY_VERBS_IRREG
from ._cconj_irreg import CCONJ... | 37.285714 | 96 | 0.781609 | 144 | 1,044 | 5.256944 | 0.215278 | 0.130779 | 0.075297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001105 | 0.133142 | 1,044 | 27 | 97 | 38.666667 | 0.835359 | 0.011494 | 0 | 0 | 0 | 0 | 0.057282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.761905 | 0 | 0.761905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f707015ee5157714c8c543d7b3e2ce79d2298d9d | 652 | py | Python | service/api/urls.py | mohammedyousuf051/playlist | 21c570fcff6d58855e139b4ecdaf91b92aba37e3 | [
"MIT"
] | null | null | null | service/api/urls.py | mohammedyousuf051/playlist | 21c570fcff6d58855e139b4ecdaf91b92aba37e3 | [
"MIT"
] | null | null | null | service/api/urls.py | mohammedyousuf051/playlist | 21c570fcff6d58855e139b4ecdaf91b92aba37e3 | [
"MIT"
] | null | null | null | from django.urls import include, path
from rest_framework import routers
from . import views
from .views import *
router = routers.DefaultRouter()
router.register(r"tracks", views.TrackViewSet)
urlpatterns = [
path("", include(router.urls)),
path('playlist/add', PlaylistAPIView.as_view()),
path('allplayl... | 32.6 | 84 | 0.71319 | 75 | 652 | 6.106667 | 0.413333 | 0.078603 | 0.229258 | 0.200873 | 0.270742 | 0.152838 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111963 | 652 | 19 | 85 | 34.315789 | 0.791019 | 0 | 0 | 0 | 0 | 0 | 0.208589 | 0.072086 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
f7181ee86ad8cc7e5af71dcdfa13dd1e97cf1945 | 4,658 | py | Python | python/download-all-data.py | wizzardz/vehicle-statistics-india | a54f84460ce3129d170510ce2c33799008b1a7a6 | [
"Apache-2.0"
] | null | null | null | python/download-all-data.py | wizzardz/vehicle-statistics-india | a54f84460ce3129d170510ce2c33799008b1a7a6 | [
"Apache-2.0"
] | null | null | null | python/download-all-data.py | wizzardz/vehicle-statistics-india | a54f84460ce3129d170510ce2c33799008b1a7a6 | [
"Apache-2.0"
] | null | null | null | import urllib.request
import json
import sys
import os
# specify the url format for downloading the json data
url_format = 'https://data.gov.in/node/{0}/datastore/export/json'
years = [2011, 2009, 2006, 2004, 2002]
# default data for constructing the urls for each States and union teritories
json_string = json.dumps(... | 30.246753 | 84 | 0.542078 | 494 | 4,658 | 5.054656 | 0.62753 | 0.021626 | 0.020425 | 0.01682 | 0.017621 | 0 | 0 | 0 | 0 | 0 | 0 | 0.308805 | 0.331902 | 4,658 | 153 | 85 | 30.444444 | 0.493573 | 0.115071 | 0 | 0.238462 | 0 | 0 | 0.124301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030769 | 0 | 0.030769 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
f734a2b46083402b4cce7977cf19d6a06b6757d4 | 431 | py | Python | src/helpers/diagnostic_helpers.py | Freudenberger/NeuralNetworks | 5390cdb7b0fe99487b12a95e32f0aa5954239b99 | [
"MIT"
] | null | null | null | src/helpers/diagnostic_helpers.py | Freudenberger/NeuralNetworks | 5390cdb7b0fe99487b12a95e32f0aa5954239b99 | [
"MIT"
] | null | null | null | src/helpers/diagnostic_helpers.py | Freudenberger/NeuralNetworks | 5390cdb7b0fe99487b12a95e32f0aa5954239b99 | [
"MIT"
] | null | null | null | import time
import helper
def time_measure(func):
"""
Decorator function to measure time
"""
def inner(*args_, **kwargs_):
"""
args_ contains: [team_id, ...]
"""
t0_ = time.time()
output = func(*args_, **kwargs_)
print("[{0}] Execution time of '{1}': {2}... | 23.944444 | 120 | 0.554524 | 50 | 431 | 4.48 | 0.58 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016181 | 0.283063 | 431 | 17 | 121 | 25.352941 | 0.708738 | 0.150812 | 0 | 0 | 0 | 0 | 0.116208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f7357416d4422e2f506ea44d95ca0a69cba35815 | 380 | py | Python | socket_and_sntp/get_remote_machine_info.py | jwh5566/python_scripts | e1b53917421d358d4d0e18ada491605f62802128 | [
"Apache-2.0"
] | null | null | null | socket_and_sntp/get_remote_machine_info.py | jwh5566/python_scripts | e1b53917421d358d4d0e18ada491605f62802128 | [
"Apache-2.0"
] | null | null | null | socket_and_sntp/get_remote_machine_info.py | jwh5566/python_scripts | e1b53917421d358d4d0e18ada491605f62802128 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# This program is optimized for Python 2.7.
import socket
def get_remote_machine_info():
remote_host = 'www.python.org'
try:
print "IP address of %s: %s" %(remote_host,socket.gethostbyname(remote_host))
except socket.error, err_msg:
print "%s: %s" %(remote_host, err_ms... | 29.230769 | 85 | 0.686842 | 56 | 380 | 4.303571 | 0.625 | 0.165975 | 0.13278 | 0.165975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006472 | 0.186842 | 380 | 13 | 86 | 29.230769 | 0.773463 | 0.163158 | 0 | 0 | 0 | 0 | 0.15142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7369d79a83366796cc1c9349b904d4c6c4934ce | 846 | py | Python | ML/learn/intro_convolution.py | qrsforever/workspace | 53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f | [
"MIT"
] | 2 | 2017-06-07T03:20:42.000Z | 2020-01-07T09:14:26.000Z | ML/learn/intro_convolution.py | qrsforever/workspace | 53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f | [
"MIT"
] | null | null | null | ML/learn/intro_convolution.py | qrsforever/workspace | 53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @file intro_convolution.py
# @brief
# @author QRS
# @blog qrsforever.github.io
# @version 1.0
# @date 2019-06-03 20:52:26
################################ jupyter-vim #######################################
# https://github.com/qrsforever/vim/blob/master/bundle/.configs/j... | 28.2 | 85 | 0.41253 | 84 | 846 | 4.107143 | 0.666667 | 0.101449 | 0.046377 | 0.052174 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036176 | 0.085106 | 846 | 29 | 86 | 29.172414 | 0.409561 | 0.340426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f74363874ba348431a6dff3cd034a7ed65b0be5f | 1,272 | py | Python | app/tests/integration/ExerciseEvaluationMongoQueryRepositoryIntegrationTest.py | GPortas/Playgroundb | 60f98a4dd62ce34fbb8abfa0d9ee63697e82c57e | [
"Apache-2.0"
] | 1 | 2019-01-30T19:59:20.000Z | 2019-01-30T19:59:20.000Z | app/tests/integration/ExerciseEvaluationMongoQueryRepositoryIntegrationTest.py | GPortas/Playgroundb | 60f98a4dd62ce34fbb8abfa0d9ee63697e82c57e | [
"Apache-2.0"
] | null | null | null | app/tests/integration/ExerciseEvaluationMongoQueryRepositoryIntegrationTest.py | GPortas/Playgroundb | 60f98a4dd62ce34fbb8abfa0d9ee63697e82c57e | [
"Apache-2.0"
] | null | null | null | from app.api.data.query.ExerciseEvaluationMongoQueryRepository import ExerciseEvaluationMongoQueryRepository
from tests.integration.PdbMongoIntegrationTestBase import PdbMongoIntegrationTestBase
class ExerciseEvaluationMongoQueryRepositoryIntegrationTest(PdbMongoIntegrationTestBase):
def setUp(self):
sel... | 53 | 108 | 0.742138 | 87 | 1,272 | 10.62069 | 0.482759 | 0.116883 | 0.069264 | 0.056277 | 0.12987 | 0.12987 | 0.12987 | 0.12987 | 0.12987 | 0.12987 | 0 | 0.069472 | 0.196541 | 1,272 | 23 | 109 | 55.304348 | 0.834638 | 0 | 0 | 0.117647 | 0 | 0 | 0.089623 | 0.075472 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.411765 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f749dc6fe31230fb158fd80dc1610fef86584765 | 1,087 | py | Python | Python_Mscs/parametric_sweep/parameter_classes_tx.py | kaungsgit/Python_DSP | 0a2850ab4043332b8d1f516f1e589543207639c5 | [
"MIT"
] | null | null | null | Python_Mscs/parametric_sweep/parameter_classes_tx.py | kaungsgit/Python_DSP | 0a2850ab4043332b8d1f516f1e589543207639c5 | [
"MIT"
] | null | null | null | Python_Mscs/parametric_sweep/parameter_classes_tx.py | kaungsgit/Python_DSP | 0a2850ab4043332b8d1f516f1e589543207639c5 | [
"MIT"
] | null | null | null | """
@author: ksanoo
@updated_at: 12/4/2020
@description: All parameters that are to be swept (specified in sweep_setup files) must have a class definition in
this script. The class name must be the same as the parameter key in loop_param
"""
import global_vars as swp_gbl
from parameter_classes import GenericParam
impo... | 29.378378 | 114 | 0.723091 | 147 | 1,087 | 5.115646 | 0.469388 | 0.159574 | 0.111702 | 0.101064 | 0.457447 | 0.457447 | 0.457447 | 0.457447 | 0.457447 | 0.457447 | 0 | 0.012821 | 0.210672 | 1,087 | 36 | 115 | 30.194444 | 0.863636 | 0.285189 | 0 | 0.588235 | 0 | 0 | 0.053385 | 0.035156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.117647 | 0.235294 | 0 | 0.588235 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
f7511683bcb6f6fa4dbed8eb8a2b3606cd21d6fb | 1,463 | py | Python | snakeplayer.py | colejagdtiger/RL-snake | 09787e5335de3f80204a26c5207e4ffde910077c | [
"MIT"
] | null | null | null | snakeplayer.py | colejagdtiger/RL-snake | 09787e5335de3f80204a26c5207e4ffde910077c | [
"MIT"
] | null | null | null | snakeplayer.py | colejagdtiger/RL-snake | 09787e5335de3f80204a26c5207e4ffde910077c | [
"MIT"
] | null | null | null | import segment as seg
import snakeconfig as config
class Player(object):
def __init__(self):
self.dir_x = 1
self.dir_y = 0
self.length = 4
self.segments = list()
def initializePlayer(self, start_x, start_y):
self.length = 4
self.segments.clear()
... | 25.666667 | 86 | 0.539303 | 205 | 1,463 | 3.717073 | 0.209756 | 0.204724 | 0.062992 | 0.07874 | 0.409449 | 0.215223 | 0.160105 | 0.160105 | 0.160105 | 0.131234 | 0 | 0.025184 | 0.348599 | 1,463 | 56 | 87 | 26.125 | 0.774397 | 0 | 0 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219512 | false | 0 | 0.04878 | 0 | 0.292683 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f75958ccd1c59ca0eaf6ebe2b575a84fc8f929c7 | 488 | py | Python | conduit/domain/user/schema.py | utilmeta/utilmeta-py-realworld-example-app- | cf6d9e83e72323a830b2fcdb5c5eae3ebd800103 | [
"MIT"
] | null | null | null | conduit/domain/user/schema.py | utilmeta/utilmeta-py-realworld-example-app- | cf6d9e83e72323a830b2fcdb5c5eae3ebd800103 | [
"MIT"
] | null | null | null | conduit/domain/user/schema.py | utilmeta/utilmeta-py-realworld-example-app- | cf6d9e83e72323a830b2fcdb5c5eae3ebd800103 | [
"MIT"
] | null | null | null | from utilmeta.utils import *
class UserBase(Schema):
username: str
bio: str
image: str
class UserLogin(Schema):
email: str
password: str
class UserRegister(UserLogin):
username: str
class UserSchema(UserBase):
email: str
password: str = Field(writeonly=True)
token: str = Fiel... | 18.074074 | 117 | 0.702869 | 59 | 488 | 5.79661 | 0.576271 | 0.070175 | 0.093567 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190574 | 488 | 26 | 118 | 18.769231 | 0.865823 | 0 | 0 | 0.25 | 0 | 0 | 0.004098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.125 | 0.0625 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f7654a14f39334ad245fb76d4fa12f95282d7ffc | 3,342 | py | Python | tests/settings.py | almahmoud/djcloudbridge | 0a00ccefb217cc3962315019405dd176956c1830 | [
"MIT"
] | null | null | null | tests/settings.py | almahmoud/djcloudbridge | 0a00ccefb217cc3962315019405dd176956c1830 | [
"MIT"
] | null | null | null | tests/settings.py | almahmoud/djcloudbridge | 0a00ccefb217cc3962315019405dd176956c1830 | [
"MIT"
] | null | null | null | # -*- coding: utf-8
from __future__ import absolute_import, unicode_literals
import os
import sys
DEBUG = True
USE_TZ = True
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "33333333333333333333333333333333333333333333333333"
# Build paths inside the project like this: os.path.join(B... | 26.951613 | 91 | 0.676242 | 324 | 3,342 | 6.817901 | 0.462963 | 0.09416 | 0.061566 | 0.038026 | 0.144862 | 0.114984 | 0.044364 | 0.044364 | 0 | 0 | 0 | 0.02323 | 0.201376 | 3,342 | 123 | 92 | 27.170732 | 0.804421 | 0.152603 | 0 | 0.021978 | 0 | 0 | 0.544906 | 0.463614 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.065934 | 0.054945 | 0 | 0.054945 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f76a49e93f6c932844439c309b943f4655119139 | 293 | py | Python | ptp/configuration/__init__.py | tkornut/ptp | 50c78c8f03024a71fc3d7959bfed9f238634141e | [
"Apache-2.0"
] | 232 | 2019-04-15T20:49:06.000Z | 2022-03-31T06:44:08.000Z | ptp/configuration/__init__.py | tkornut/ptp | 50c78c8f03024a71fc3d7959bfed9f238634141e | [
"Apache-2.0"
] | 53 | 2019-04-19T22:50:16.000Z | 2019-08-07T21:23:08.000Z | ptp/configuration/__init__.py | tkornut/ptp | 50c78c8f03024a71fc3d7959bfed9f238634141e | [
"Apache-2.0"
] | 34 | 2019-04-15T20:49:22.000Z | 2021-12-07T17:04:01.000Z | from .config_interface import ConfigInterface
from .config_registry import ConfigRegistry
from .configuration_error import ConfigurationError
#from configs_parsing import load_default_configuration_file
__all__ = [
'ConfigInterface',
'ConfigRegistry',
'ConfigurationError',
]
| 26.636364 | 60 | 0.808874 | 27 | 293 | 8.37037 | 0.592593 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136519 | 293 | 10 | 61 | 29.3 | 0.893281 | 0.201365 | 0 | 0 | 0 | 0 | 0.201717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f76d3d2c735a791925a56cdf27d0bbb187c77bd3 | 404 | py | Python | synthesis/synthesizers/__init__.py | sahilk15/synthetic_data_generation | 06676d15821fc5ce27464a46d294fd3bb484ecfa | [
"MIT"
] | 4 | 2021-02-16T00:38:27.000Z | 2022-01-21T21:59:28.000Z | synthesis/synthesizers/__init__.py | Daan0/synthetic_data_generation | 5a0d1818cba2bc8b629869773a2f86a156d25fd9 | [
"MIT"
] | 2 | 2021-08-20T14:32:59.000Z | 2022-03-18T10:15:40.000Z | synthesis/synthesizers/__init__.py | Daan0/synthetic_data_generation | 5a0d1818cba2bc8b629869773a2f86a156d25fd9 | [
"MIT"
] | 5 | 2020-12-08T05:01:39.000Z | 2022-03-24T18:12:45.000Z | """Algorithms for generating synthetic data"""
from synthesis.synthesizers.marginal import MarginalSynthesizer, UniformSynthesizer
from synthesis.synthesizers.contingency import ContingencySynthesizer
from synthesis.synthesizers.privbayes import PrivBayes, PrivBayesFix
__all__ = [
'MarginalSynthesizer',
'Unif... | 31.076923 | 83 | 0.80198 | 31 | 404 | 10.322581 | 0.548387 | 0.121875 | 0.234375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121287 | 404 | 13 | 84 | 31.076923 | 0.901408 | 0.09901 | 0 | 0 | 0 | 0 | 0.222841 | 0.061281 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 1 | 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 | 2 |
f76efdc61173fc6e8fe0a0e439a6b182d1da4ba0 | 244 | py | Python | api/user_by_id.py | DiegoPrestesGit/flask-crud | 2f5d1581ac215e2cc2f0cbd6ec173bed1f78ab1a | [
"MIT"
] | null | null | null | api/user_by_id.py | DiegoPrestesGit/flask-crud | 2f5d1581ac215e2cc2f0cbd6ec173bed1f78ab1a | [
"MIT"
] | null | null | null | api/user_by_id.py | DiegoPrestesGit/flask-crud | 2f5d1581ac215e2cc2f0cbd6ec173bed1f78ab1a | [
"MIT"
] | null | null | null | from flask_restful import Resource
import logging as logger
from .database import get_user_by_id
class UserById(Resource):
def get(self, user_id):
selected_user = get_user_by_id(user_id)
return selected_user, 200
| 24.4 | 48 | 0.729508 | 36 | 244 | 4.638889 | 0.555556 | 0.083832 | 0.107784 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015789 | 0.221311 | 244 | 9 | 49 | 27.111111 | 0.863158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f76f545b145feef93926e3359ce3369ccbb967a7 | 1,959 | py | Python | cfg_loader/fields.py | theatro/cfg-loader | 962160c632a8eca21db941e417629fb0273a0e5b | [
"BSD-3-Clause"
] | null | null | null | cfg_loader/fields.py | theatro/cfg-loader | 962160c632a8eca21db941e417629fb0273a0e5b | [
"BSD-3-Clause"
] | null | null | null | cfg_loader/fields.py | theatro/cfg-loader | 962160c632a8eca21db941e417629fb0273a0e5b | [
"BSD-3-Clause"
] | null | null | null | """
cfg_loader.fields
~~~~~~~~~~~~~~~~~
Implement marshmallow fields to validate against specific input data
:copyright: Copyright 2017 by ConsenSys France.
:license: BSD, see :ref:`license` for more details.
"""
import os
from marshmallow import validate, fields
class PathValidator(validate.V... | 28.391304 | 97 | 0.679428 | 236 | 1,959 | 5.487288 | 0.440678 | 0.027799 | 0.025483 | 0.02471 | 0.125097 | 0.125097 | 0.125097 | 0.049421 | 0 | 0 | 0 | 0.002597 | 0.213885 | 1,959 | 68 | 98 | 28.808824 | 0.838312 | 0.452272 | 0 | 0.090909 | 0 | 0 | 0.083759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0.045455 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
f7708d4af289e41a22fb7b11ca366ae649f96981 | 1,456 | py | Python | tests/testInterference.py | KOLANICH/lazyImport.py | ee6574c10c941973de8f4ea3b67af3e94fc9668d | [
"Unlicense"
] | null | null | null | tests/testInterference.py | KOLANICH/lazyImport.py | ee6574c10c941973de8f4ea3b67af3e94fc9668d | [
"Unlicense"
] | null | null | null | tests/testInterference.py | KOLANICH/lazyImport.py | ee6574c10c941973de8f4ea3b67af3e94fc9668d | [
"Unlicense"
] | null | null | null | import sys
from pathlib import Path
import unittest
thisDir = Path(__file__).parent.absolute()
sys.path.insert(0, str(thisDir.parent))
sys.path.insert(0, str(thisDir))
from ImportTimeline import ImportTimelineTestCase
class Tests(ImportTimelineTestCase):
def testInterference(self):
self.etalon = [
"from lazil... | 27.471698 | 52 | 0.739698 | 156 | 1,456 | 6.801282 | 0.230769 | 0.240339 | 0.175306 | 0.237512 | 0.689915 | 0.610745 | 0.565504 | 0.565504 | 0.565504 | 0.565504 | 0 | 0.023456 | 0.121566 | 1,456 | 52 | 53 | 28 | 0.806099 | 0 | 0 | 0.439024 | 0 | 0 | 0.341346 | 0.015797 | 0 | 0 | 0 | 0 | 0.243902 | 1 | 0.02439 | false | 0 | 0.268293 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
f777143f32f6a47a4c42934a405170097f866567 | 1,003 | py | Python | toolchain/riscv/MSYS/python/Lib/idlelib/zzdummy.py | zhiqiang-hu/bl_iot_sdk | 154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d | [
"Apache-2.0"
] | 207 | 2018-10-01T08:53:01.000Z | 2022-03-14T12:15:54.000Z | Thonny/Lib/idlelib/zzdummy.py | Pydiderot/pydiderotIDE | a42fcde3ea837ae40c957469f5d87427e8ce46d3 | [
"MIT"
] | 30 | 2019-01-04T10:14:56.000Z | 2020-10-12T14:00:31.000Z | Thonny/Lib/idlelib/zzdummy.py | Pydiderot/pydiderotIDE | a42fcde3ea837ae40c957469f5d87427e8ce46d3 | [
"MIT"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | "Example extension, also used for testing."
from idlelib.config import idleConf
ztext = idleConf.GetOption('extensions', 'ZzDummy', 'z-text')
class ZzDummy:
## menudefs = [
## ('format', [
## ('Z in', '<<z-in>>'),
## ('Z out', '<<z-out>>'),
## ] )
## ]
... | 23.325581 | 74 | 0.526421 | 110 | 1,003 | 4.590909 | 0.509091 | 0.023762 | 0.087129 | 0.126733 | 0.174257 | 0.174257 | 0.174257 | 0 | 0 | 0 | 0 | 0.004354 | 0.313061 | 1,003 | 42 | 75 | 23.880952 | 0.728592 | 0.293121 | 0 | 0 | 0 | 0 | 0.146884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.052632 | 0.052632 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f7859cf34d853954b90e3aae5487a8a2840ebb4c | 2,257 | py | Python | backend/user/models.py | suzanpradhan/slicedtv | 0d78dae366cd50647d5c40ec921e97a7a03047b2 | [
"BSD-3-Clause"
] | 1 | 2020-11-22T11:10:31.000Z | 2020-11-22T11:10:31.000Z | backend/user/models.py | suzanpradhan/slicedtv | 0d78dae366cd50647d5c40ec921e97a7a03047b2 | [
"BSD-3-Clause"
] | 1 | 2020-12-08T05:25:54.000Z | 2020-12-08T05:42:40.000Z | backend/user/models.py | suzanpradhan/slicedtv | 0d78dae366cd50647d5c40ec921e97a7a03047b2 | [
"BSD-3-Clause"
] | null | null | null | # External Import
from django.db import models
from django.contrib.auth.models import (
AbstractBaseUser,
BaseUserManager,
PermissionsMixin,
)
from rest_framework_simplejwt.tokens import RefreshToken
# Internal Import
from subscription.models import Subscription
class UserManager(BaseUserManager):
""... | 30.917808 | 71 | 0.676562 | 265 | 2,257 | 5.637736 | 0.366038 | 0.021419 | 0.042169 | 0.042169 | 0.159304 | 0.092369 | 0.045515 | 0.045515 | 0 | 0 | 0 | 0.003464 | 0.23261 | 2,257 | 72 | 72 | 31.347222 | 0.859122 | 0.122729 | 0 | 0.041667 | 0 | 0 | 0.051361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.125 | 0.083333 | 0 | 0.520833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
f7862e4ad1be66f947ce875dda244071e848ffd6 | 2,422 | py | Python | my_oauth/migrations/0001_initial.py | horacexd/clist | 9759dfea97b86514bec9825d2430abc36decacf0 | [
"Apache-2.0"
] | 166 | 2019-05-16T23:46:08.000Z | 2022-03-31T05:20:23.000Z | my_oauth/migrations/0001_initial.py | horacexd/clist | 9759dfea97b86514bec9825d2430abc36decacf0 | [
"Apache-2.0"
] | 92 | 2020-01-18T22:51:53.000Z | 2022-03-12T01:23:57.000Z | my_oauth/migrations/0001_initial.py | VadVergasov/clist | 4afcdfe88250d224043b28efa511749347cec71c | [
"Apache-2.0"
] | 23 | 2020-02-09T17:38:43.000Z | 2021-12-09T14:39:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-09-24 01:01
from django.db import migrations, models
import django.db.models.deletion
import jsonfield.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('true_coders', '0001_initial'),
]
operations =... | 40.366667 | 125 | 0.563171 | 241 | 2,422 | 5.489627 | 0.348548 | 0.068027 | 0.122449 | 0.163265 | 0.490552 | 0.388511 | 0.296296 | 0.296296 | 0.237339 | 0.237339 | 0 | 0.0296 | 0.288604 | 2,422 | 59 | 126 | 41.050847 | 0.738247 | 0.028076 | 0 | 0.3 | 1 | 0 | 0.110166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.14 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f79158e3cd211fc03f644ddde9e6cf1c7399a772 | 400 | py | Python | Courses/Udacity/CS101/Lesson_3_How_to_Manage_Data/29-Union/supplied/studentMain.py | leparrav/Playground | dcb90a2dd2bc1867511cfe621eb21248a60e357f | [
"Unlicense"
] | 1 | 2019-02-13T12:02:26.000Z | 2019-02-13T12:02:26.000Z | Courses/Udacity/CS101/Lesson_3_How_to_Manage_Data/29-Union/supplied/studentMain.py | leparrav/Playground | dcb90a2dd2bc1867511cfe621eb21248a60e357f | [
"Unlicense"
] | 1 | 2018-08-13T15:58:33.000Z | 2018-08-13T15:58:33.000Z | Courses/Udacity/CS101/Lesson_3_How_to_Manage_Data/29-Union/supplied/studentMain.py | leparrav/Playground | dcb90a2dd2bc1867511cfe621eb21248a60e357f | [
"Unlicense"
] | 2 | 2017-08-10T20:01:29.000Z | 2021-07-01T08:39:13.000Z | # Define a procedure, union,
# that takes as inputs two lists.
# It should modify the first input
# list to be the set union of the two
# lists. You may assume the first list
# is a set, that is, it contains no
# repeated elements.
# To test, uncomment all lines
# below except those beginning with >>>.
#a = [1... | 16.666667 | 40 | 0.64 | 75 | 400 | 3.413333 | 0.6 | 0.023438 | 0.023438 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044728 | 0.2175 | 400 | 23 | 41 | 17.391304 | 0.773163 | 0.9 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e38b45b1d8351b357ca75295b6bdb684c3ec8eac | 4,399 | py | Python | stix2validator/test/v21/network_traffic_tests.py | zrush-mitre/cti-stix-validator | da8a8d08e109c18281a21cc40bf8dc02798822ce | [
"BSD-3-Clause"
] | null | null | null | stix2validator/test/v21/network_traffic_tests.py | zrush-mitre/cti-stix-validator | da8a8d08e109c18281a21cc40bf8dc02798822ce | [
"BSD-3-Clause"
] | null | null | null | stix2validator/test/v21/network_traffic_tests.py | zrush-mitre/cti-stix-validator | da8a8d08e109c18281a21cc40bf8dc02798822ce | [
"BSD-3-Clause"
] | null | null | null | import copy
import json
from . import ValidatorTest
from ... import validate_string
VALID_NETWORK_TRAFFIC_DEFINITION = u"""
{
"type": "network-traffic",
"id" : "network-traffic--280d1c0d-51d1-5ee8-951f-1fb434a38686",
"src_ref": "ipv4-addr--e42c19c8-f9fe-5ae9-9fc8-22c398f78fb",
"src_port": 24678,
... | 33.838462 | 68 | 0.632189 | 471 | 4,399 | 5.596603 | 0.271762 | 0.223824 | 0.132018 | 0.163885 | 0.54173 | 0.533005 | 0.406297 | 0.406297 | 0.36305 | 0.250379 | 0 | 0.052067 | 0.257786 | 4,399 | 129 | 69 | 34.100775 | 0.755283 | 0 | 0 | 0.252336 | 0 | 0 | 0.211412 | 0.050466 | 0 | 0 | 0 | 0 | 0.158879 | 1 | 0.084112 | false | 0 | 0.037383 | 0 | 0.140187 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
e38db132104e91186efa3c0b4e185ad4f79ace2f | 5,058 | py | Python | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/pyglf/glf.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | 8 | 2021-12-14T21:30:01.000Z | 2022-02-14T11:30:03.000Z | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/pyglf/glf.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/pyglf/glf.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.31
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _glf
import new
new_instancemethod = new.instancemethod
try:
_swig_property = property
exc... | 36.388489 | 90 | 0.82068 | 538 | 5,058 | 7.306691 | 0.302974 | 0.033579 | 0.013228 | 0.017298 | 0.060544 | 0.054948 | 0.054948 | 0.039685 | 0 | 0 | 0 | 0.006222 | 0.11032 | 5,058 | 138 | 91 | 36.652174 | 0.867333 | 0.048438 | 0 | 0.032258 | 1 | 0 | 0.017066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016129 | 0.024194 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e3912c909df403c6d57d09b41df2e2fdeafdc74e | 1,074 | py | Python | REST/python-refresher-master/25_str_and_repr/code.py | Rebell-Leader/bg | 616a40286fe1d34db2916762c477676ed8067cdb | [
"Apache-2.0"
] | null | null | null | REST/python-refresher-master/25_str_and_repr/code.py | Rebell-Leader/bg | 616a40286fe1d34db2916762c477676ed8067cdb | [
"Apache-2.0"
] | null | null | null | REST/python-refresher-master/25_str_and_repr/code.py | Rebell-Leader/bg | 616a40286fe1d34db2916762c477676ed8067cdb | [
"Apache-2.0"
] | null | null | null | class Person:
def __init__(self, name, age):
self.name = name
self.age = age
bob = Person("Bob", 35)
print(bob) # Not the nicest thing to read!
# -- __str__ --
# The goal of __str__ is to return a nice, easy to read string for end users.
class Person:
def __init__(self, name, age):
... | 24.409091 | 126 | 0.615456 | 166 | 1,074 | 3.740964 | 0.421687 | 0.10306 | 0.070853 | 0.086957 | 0.439614 | 0.371981 | 0.336554 | 0.256039 | 0.256039 | 0.256039 | 0 | 0.007673 | 0.271881 | 1,074 | 43 | 127 | 24.976744 | 0.786445 | 0.418063 | 0 | 0.75 | 0 | 0 | 0.136585 | 0.035772 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0 | 0.083333 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e3916f2edf2f108a2638b6201e50ad2a79e0dd73 | 4,018 | py | Python | dltb/thirdparty/tensorflow/_v2_as_v1.py | Petr-By/qtpyvis | 0b9a151ee6b9a56b486c2bece9c1f03414629efc | [
"MIT"
] | 3 | 2017-10-04T14:51:26.000Z | 2017-10-22T09:35:50.000Z | dltb/thirdparty/tensorflow/_v2_as_v1.py | Petr-By/qtpyvis | 0b9a151ee6b9a56b486c2bece9c1f03414629efc | [
"MIT"
] | 13 | 2017-09-05T12:56:11.000Z | 2017-11-22T10:38:27.000Z | dltb/thirdparty/tensorflow/_v2_as_v1.py | krumnack/qtpyvis | 0b9a151ee6b9a56b486c2bece9c1f03414629efc | [
"MIT"
] | 2 | 2017-09-24T21:39:42.000Z | 2017-10-04T15:29:54.000Z | """This auxiliary module is used to import a TensorFlow 2 installation
to be used in the TensorFlow v1 compatibility mode.
It is assumed that `tensorflow` has already been imported and that we
are dealing with a TensorFlow 2.x implementation.
"""
# standard imports
import sys
import logging
# thirdparty imports
impo... | 37.90566 | 74 | 0.776506 | 548 | 4,018 | 5.514599 | 0.350365 | 0.060225 | 0.086036 | 0.047651 | 0.271674 | 0.17141 | 0.107876 | 0.078094 | 0.046327 | 0.046327 | 0 | 0.014531 | 0.160777 | 4,018 | 105 | 75 | 38.266667 | 0.881673 | 0.438278 | 0 | 0 | 0 | 0 | 0.043578 | 0.011468 | 0 | 0 | 0 | 0.019048 | 0 | 1 | 0.044444 | false | 0 | 0.355556 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e3a37f9579dcb3e1af29f782dbb8698ed927f72b | 871 | py | Python | covertutils/examples/tcp_bind_agent.py | aidden-laoch/sabre | 0940aa51dfc5074291df9d29db827ddb4010566d | [
"MIT"
] | 2 | 2020-11-23T23:54:32.000Z | 2021-05-25T12:28:05.000Z | covertutils/examples/tcp_bind_agent.py | aidden-laoch/sabre | 0940aa51dfc5074291df9d29db827ddb4010566d | [
"MIT"
] | 1 | 2021-03-20T05:43:02.000Z | 2021-03-20T05:43:02.000Z | covertutils/examples/tcp_bind_agent.py | aidden-laoch/sabre | 0940aa51dfc5074291df9d29db827ddb4010566d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from covertutils.handlers.impl import StandardShellHandler
from covertutils.orchestration import SimpleOrchestrator
import sys
import socket
from time import sleep
passphrase = "Pa55phra531"
addr = "0.0.0.0", int(sys.argv[1])
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #
s.bind( addr ... | 32.259259 | 133 | 0.745121 | 117 | 871 | 5.487179 | 0.57265 | 0.009346 | 0.009346 | 0.084112 | 0.121495 | 0.121495 | 0 | 0 | 0 | 0 | 0 | 0.028728 | 0.160735 | 871 | 26 | 134 | 33.5 | 0.849521 | 0.24225 | 0 | 0 | 0 | 0 | 0.02765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.277778 | 0.111111 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 |
e3b3c919d0d3c95f4453bf7320047ce112807470 | 718 | py | Python | app.py | bighelmet7/sennder | 6dcc5f4ba9881be3d8b923c662640953f755129c | [
"MIT"
] | null | null | null | app.py | bighelmet7/sennder | 6dcc5f4ba9881be3d8b923c662640953f755129c | [
"MIT"
] | 17 | 2020-08-05T12:18:24.000Z | 2022-02-27T09:33:51.000Z | app.py | bighelmet7/sennder | 6dcc5f4ba9881be3d8b923c662640953f755129c | [
"MIT"
] | null | null | null | import os
from flask import Flask, render_template
from const import status_code
from sennder import create_app
env = os.environ.get('APPLICATION_ENV', 'sennder.config.DevelopmentConfig')
app = create_app(env)
@app.errorhandler(status_code.HTTP_STATUS_INTERNAL_SERVER_ERROR)
def handler_unexpected_error(error):
... | 23.16129 | 78 | 0.745125 | 100 | 718 | 5.05 | 0.48 | 0.079208 | 0.083168 | 0.118812 | 0.154455 | 0.154455 | 0.154455 | 0 | 0 | 0 | 0 | 0.00314 | 0.112813 | 718 | 30 | 79 | 23.933333 | 0.789639 | 0.076602 | 0 | 0 | 0 | 0 | 0.172466 | 0.048412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.222222 | 0.166667 | 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 | 1 | 1 | 0 | 0 | 2 |
e3cf2389ed4132f1f6ecf61219d37eecd1e6d364 | 2,304 | bzl | Python | java/browsers.bzl | bacancy-gautam/selenium | b9d766a46a12e4b553a9de5ab05de2a8d18d1636 | [
"Apache-2.0"
] | null | null | null | java/browsers.bzl | bacancy-gautam/selenium | b9d766a46a12e4b553a9de5ab05de2a8d18d1636 | [
"Apache-2.0"
] | null | null | null | java/browsers.bzl | bacancy-gautam/selenium | b9d766a46a12e4b553a9de5ab05de2a8d18d1636 | [
"Apache-2.0"
] | null | null | null | chrome_jvm_flags = select({
"@selenium//common:use_pinned_linux_chrome": [
"-Dwebdriver.chrome.driver=$(location @linux_chromedriver//:chromedriver)",
"-Dwebdriver.chrome.binary=$(location @linux_chrome//:chrome-linux)/linux-chrome/chrome",
],
"@selenium//common:use_pinned_macos_chrome": [
... | 37.16129 | 101 | 0.647135 | 214 | 2,304 | 6.766355 | 0.163551 | 0.135359 | 0.129144 | 0.095304 | 0.607044 | 0.46547 | 0.321823 | 0.296271 | 0.23826 | 0.23826 | 0 | 0 | 0.164931 | 2,304 | 61 | 102 | 37.770492 | 0.752599 | 0 | 0 | 0.59322 | 0 | 0 | 0.694878 | 0.637587 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e3d55af173dff4f7973636b12c073ae6adc95c92 | 939 | py | Python | byurak/reservation/models.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | null | null | null | byurak/reservation/models.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | 2 | 2021-06-27T16:19:47.000Z | 2021-08-01T16:41:54.000Z | byurak/reservation/models.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | 2 | 2021-08-21T13:32:52.000Z | 2021-12-20T10:12:45.000Z | from django.db import models
#TODO 개발 끝내고 정리하기
from accounts.models import *
# Create your models here.
PAYMENT_METHOD_CHOICES = (
("무통장 입금", "무통장 입금"),
("계좌 이체", "계좌 이체"),
)
class Reservation(models.Model):
service = models.ForeignKey(Profile, related_name = "service_set", on_delete = models.CASCADE, b... | 37.56 | 121 | 0.722045 | 122 | 939 | 5.368852 | 0.52459 | 0.059542 | 0.059542 | 0.077863 | 0.149618 | 0.149618 | 0.149618 | 0.149618 | 0.149618 | 0.149618 | 0 | 0.00507 | 0.159744 | 939 | 25 | 122 | 37.56 | 0.825095 | 0.043663 | 0 | 0 | 0 | 0 | 0.057971 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0.058824 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
e3ddfa51db026935f26b94910d509744b85ceaf0 | 3,937 | py | Python | inceptiontools/standard_archetype.py | inceptiontools/inceptiontools | 073e46210182eb681f2473d7c44558782ea58a62 | [
"Apache-2.0"
] | null | null | null | inceptiontools/standard_archetype.py | inceptiontools/inceptiontools | 073e46210182eb681f2473d7c44558782ea58a62 | [
"Apache-2.0"
] | 11 | 2020-07-27T03:28:44.000Z | 2022-01-02T03:12:06.000Z | inceptiontools/standard_archetype.py | inceptiontools/inceptiontools | 073e46210182eb681f2473d7c44558782ea58a62 | [
"Apache-2.0"
] | null | null | null | """
standard_archetype
~~~~~~~~~~~~~~~~~~
Houses the declaration of :py:class:`TemplateArchetype` along with
supporting classes, functions, and attributes.
"""
__author__ = "Andrew van Herick"
__copyright__ = "Unpublished Copyright (c) 2020 Andrew van Herick. All Rights Reserved."
__license__ = "Apache Software Licen... | 29.601504 | 88 | 0.614681 | 439 | 3,937 | 5.261959 | 0.314351 | 0.033333 | 0.027706 | 0.009091 | 0.465368 | 0.44632 | 0.439394 | 0.439394 | 0.439394 | 0.439394 | 0 | 0.005119 | 0.305309 | 3,937 | 132 | 89 | 29.825758 | 0.839488 | 0.124206 | 0 | 0 | 0 | 0 | 0.16116 | 0.074848 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.038462 | 0.269231 | 0.115385 | 0.730769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
5403a179cfa8e485b47214dfd136c80ed893d821 | 821 | py | Python | api/tests/integration/tests/similarity/matrix.py | tsingdao-Tp/Indigo | b2d73faebb6a450e9b3d34fed553fad4f9d0012f | [
"Apache-2.0"
] | 204 | 2015-11-06T21:34:34.000Z | 2022-03-30T16:17:01.000Z | api/tests/integration/tests/similarity/matrix.py | tsingdao-Tp/Indigo | b2d73faebb6a450e9b3d34fed553fad4f9d0012f | [
"Apache-2.0"
] | 509 | 2015-11-05T13:54:43.000Z | 2022-03-30T22:15:30.000Z | api/tests/integration/tests/similarity/matrix.py | tsingdao-Tp/Indigo | b2d73faebb6a450e9b3d34fed553fad4f9d0012f | [
"Apache-2.0"
] | 89 | 2015-11-17T08:22:54.000Z | 2022-03-17T04:26:28.000Z | import sys
sys.path.append('../../common')
from env_indigo import *
from itertools import product
indigo = Indigo()
mol_list = list(indigo.iterateSDFile(joinPathPy("molecules/thiazolidines_slice.sdf", __file__)))
pairs = product(mol_list, mol_list)
for (p1, p2) in pairs:
print("%s %s" %(p1.name(), p2.name()))
pr... | 48.294118 | 96 | 0.619976 | 122 | 821 | 4.098361 | 0.327869 | 0.056 | 0.108 | 0.228 | 0.336 | 0.336 | 0.244 | 0.124 | 0 | 0 | 0 | 0.065868 | 0.186358 | 821 | 16 | 97 | 51.3125 | 0.682635 | 0 | 0 | 0 | 0 | 0 | 0.331303 | 0.040195 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.466667 | 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 | 1 | 0 | 2 |
54043a57312af2e02df8178fcf274b886923fd64 | 1,932 | py | Python | src/pycycle/test/test_compressor.py | OpenMDAO-Plugins/pyCycle | e55f9cbd0d596049bfbc45a9b1c4f0b560c9367d | [
"Apache-2.0"
] | 3 | 2016-11-26T17:19:32.000Z | 2020-07-07T14:50:22.000Z | src/pycycle/test/test_compressor.py | jcchin/pyCycle | 1a9807901af9d85b667588e8810d86aefde7bd9e | [
"Apache-2.0"
] | null | null | null | src/pycycle/test/test_compressor.py | jcchin/pyCycle | 1a9807901af9d85b667588e8810d86aefde7bd9e | [
"Apache-2.0"
] | 5 | 2015-07-02T07:35:05.000Z | 2016-11-26T17:18:30.000Z |
import unittest
from openmdao.main.api import set_as_top
from openmdao.util.testutil import assert_rel_error
from pycycle.api import Compressor, FlowStation
class CompressorTestCase(unittest.TestCase):
def setUp(self):
self.comp = set_as_top(Compressor())
self.fs = FlowStation()
self.... | 29.272727 | 73 | 0.629917 | 299 | 1,932 | 3.842809 | 0.280936 | 0.146214 | 0.219321 | 0.266319 | 0.532637 | 0.51349 | 0.483899 | 0.483899 | 0.483899 | 0.483899 | 0 | 0.072917 | 0.254658 | 1,932 | 66 | 74 | 29.272727 | 0.725 | 0.05176 | 0 | 0.466667 | 0 | 0 | 0.004374 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.066667 | false | 0 | 0.088889 | 0 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
541d5ec4bc6a62ffd1509447e75f49e190a3f0ed | 859 | py | Python | ampel/t1/T1SimpleCombiner.py | AmpelProject/Ampel-core | dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f | [
"BSD-3-Clause"
] | 5 | 2021-04-15T07:43:26.000Z | 2022-03-04T09:25:09.000Z | ampel/t1/T1SimpleCombiner.py | AmpelProject/Ampel-core | dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f | [
"BSD-3-Clause"
] | 67 | 2021-02-23T21:43:20.000Z | 2021-12-15T23:28:32.000Z | ampel/t1/T1SimpleCombiner.py | AmpelProject/Ampel-core | dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f | [
"BSD-3-Clause"
] | 1 | 2021-04-26T07:52:19.000Z | 2021-04-26T07:52:19.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File : Ampel-core/ampel/t1/T1SimpleCombiner.py
# License : BSD-3-Clause
# Author : vb <vbrinnel@physik.hu-berlin.de>
# Date : 01.01.2018
# Last Modified Date: 14.06.2021
# Last Modified By : vb <vbrinnel@physik.hu-berlin.de>... | 28.633333 | 73 | 0.683353 | 111 | 859 | 5.288288 | 0.567568 | 0.045997 | 0.054514 | 0.061329 | 0.180579 | 0.180579 | 0.091993 | 0 | 0 | 0 | 0 | 0.034935 | 0.200233 | 859 | 29 | 74 | 29.62069 | 0.819505 | 0.422584 | 0 | 0 | 0 | 0 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
5423e516a5747d57441831471b84ea88c4eb0516 | 913 | py | Python | py_shop_books/item.py | dathelen/py-shop-books | 7bd880bd1ffac4e10c038544d3ed92d2177299b1 | [
"BSD-3-Clause"
] | null | null | null | py_shop_books/item.py | dathelen/py-shop-books | 7bd880bd1ffac4e10c038544d3ed92d2177299b1 | [
"BSD-3-Clause"
] | null | null | null | py_shop_books/item.py | dathelen/py-shop-books | 7bd880bd1ffac4e10c038544d3ed92d2177299b1 | [
"BSD-3-Clause"
] | null | null | null | class ShopifyItem(object):
def __init__(self, *args, **kwargs):
self.__name = kwargs['name']
self.__quantity = int(kwargs['quantity'])
self.__unit_price = float(kwargs['unit_price'])
self.__qb_item = None
@property
def name(self):
return self.__name
@name.setter
... | 21.232558 | 55 | 0.625411 | 112 | 913 | 4.678571 | 0.196429 | 0.137405 | 0.133588 | 0.080153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270537 | 913 | 42 | 56 | 21.738095 | 0.786787 | 0 | 0 | 0.25 | 0 | 0 | 0.024149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0.15625 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
5810b1160e0745c8f7d222aa0668e196490e2389 | 259 | py | Python | samples/version.py | surfsara-visualization/ospray-python | 75cc7864446735f8c18d19882e02bc5d9b37f836 | [
"Apache-2.0"
] | 5 | 2020-01-15T18:25:12.000Z | 2020-02-19T14:36:11.000Z | samples/version.py | surfsara-visualization/ospy | 75cc7864446735f8c18d19882e02bc5d9b37f836 | [
"Apache-2.0"
] | 1 | 2020-02-19T08:46:13.000Z | 2020-05-26T19:41:37.000Z | samples/version.py | surfsara-visualization/ospray-python | 75cc7864446735f8c18d19882e02bc5d9b37f836 | [
"Apache-2.0"
] | 1 | 2019-12-20T23:32:57.000Z | 2019-12-20T23:32:57.000Z | #!/usr/bin/env python
import sys, getopt, os
scriptdir = os.path.split(__file__)[0]
sys.path.insert(0, os.path.join(scriptdir, '..'))
import ospray
ospray.init([])
print('Compile-time version:', ospray.VERSION)
print('Run-time version:', ospray.version())
| 21.583333 | 49 | 0.710425 | 38 | 259 | 4.736842 | 0.578947 | 0.066667 | 0.188889 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008511 | 0.092664 | 259 | 11 | 50 | 23.545455 | 0.757447 | 0.07722 | 0 | 0 | 0 | 0 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
58162dcc43bfccd8ee31f0d61049f884a18f058c | 266 | py | Python | Python Decorators/02_01/my_decorator_FINAL.py | Junth19/Learning-Python | 724dbade880acbbde00760a38f145a416e744923 | [
"MIT"
] | null | null | null | Python Decorators/02_01/my_decorator_FINAL.py | Junth19/Learning-Python | 724dbade880acbbde00760a38f145a416e744923 | [
"MIT"
] | null | null | null | Python Decorators/02_01/my_decorator_FINAL.py | Junth19/Learning-Python | 724dbade880acbbde00760a38f145a416e744923 | [
"MIT"
] | null | null | null | def my_decorator(func):
'''Decorator function'''
def wrapper():
'''Return string F-I-B-O-N-A-C-C-I'''
return 'F-I-B-O-N-A-C-C-I'
return wrapper
@my_decorator
def pfib():
'''Return Fibonacci'''
return 'Fibonacci'
print(pfib())
| 16.625 | 45 | 0.575188 | 41 | 266 | 3.682927 | 0.439024 | 0.145695 | 0.039735 | 0.05298 | 0.198676 | 0.198676 | 0.198676 | 0.198676 | 0.198676 | 0.198676 | 0 | 0 | 0.229323 | 266 | 15 | 46 | 17.733333 | 0.736585 | 0.25188 | 0 | 0 | 0 | 0 | 0.142077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5821bbade9eecdabe2f26d043824d60d5f510f84 | 448 | py | Python | test/__init__.py | zu1kbackup/DongTai-openapi | 7918f7cd9367fd8942d358725c543ae389d8224c | [
"Apache-2.0"
] | null | null | null | test/__init__.py | zu1kbackup/DongTai-openapi | 7918f7cd9367fd8942d358725c543ae389d8224c | [
"Apache-2.0"
] | null | null | null | test/__init__.py | zu1kbackup/DongTai-openapi | 7918f7cd9367fd8942d358725c543ae389d8224c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# author: owefsad@huoxian.cn
# datetime: 2021/7/28 下午4:08
# project: dongtai-openapi
import os
import unittest
import django
class DongTaiTestCase(unittest.TestCase):
def __init__(self, methodName='runTest'):
super().__init__(methodName)
os.environ.set... | 24.888889 | 79 | 0.696429 | 53 | 448 | 5.698113 | 0.773585 | 0.059603 | 0.125828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029255 | 0.160714 | 448 | 17 | 80 | 26.352941 | 0.773936 | 0.267857 | 0 | 0 | 0 | 0 | 0.179567 | 0.068111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
58280d08bdc16d1d6cecbab675b324fc40f0f2ed | 510 | py | Python | negotiation/tests/models.py | suselrd/django-negotiation | c5b5372e6fd55d54710696fda18cf5c2d616cb2a | [
"BSD-3-Clause"
] | 1 | 2015-07-13T14:31:03.000Z | 2015-07-13T14:31:03.000Z | negotiation/tests/models.py | suselrd/django-negotiation | c5b5372e6fd55d54710696fda18cf5c2d616cb2a | [
"BSD-3-Clause"
] | null | null | null | negotiation/tests/models.py | suselrd/django-negotiation | c5b5372e6fd55d54710696fda18cf5c2d616cb2a | [
"BSD-3-Clause"
] | null | null | null | # coding=utf-8
from django.contrib.auth.models import User
from django.db import models
from ..decorators import negotiable
@negotiable
class Offer(models.Model):
amount = models.IntegerField()
created = models.DateTimeField(auto_now_add=True)
creator = models.ForeignKey(User)
def __unicode__(self):
... | 23.181818 | 53 | 0.721569 | 61 | 510 | 5.934426 | 0.557377 | 0.055249 | 0.093923 | 0.127072 | 0.19337 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002375 | 0.17451 | 510 | 22 | 54 | 23.181818 | 0.857482 | 0.023529 | 0 | 0.266667 | 0 | 0 | 0.026157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0.133333 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
58292e25c2a181a6ff86db85d836775cfabe8588 | 591 | py | Python | pretrain_model/densenet/data/test.py | LiuHao-THU/frame2d | c2b923aa45bf2e523e281d1bc36c7f3e70f9fb2b | [
"Apache-2.0"
] | 1 | 2020-05-15T03:28:53.000Z | 2020-05-15T03:28:53.000Z | pretrain_model/densenet/data/test.py | LiuHao-THU/frame2d | c2b923aa45bf2e523e281d1bc36c7f3e70f9fb2b | [
"Apache-2.0"
] | null | null | null | pretrain_model/densenet/data/test.py | LiuHao-THU/frame2d | c2b923aa45bf2e523e281d1bc36c7f3e70f9fb2b | [
"Apache-2.0"
] | null | null | null | import numpy as np
pretrained_dir = '../densenet121.npy'
data_dict = np.load(pretrained_dir, encoding='latin1').item()
print(data_dict)
import tensorflow as tf
#t = tf.constant([[1, 2, 3], [4, 5, 6]])
#paddings = tf.constant([[1, 1,], [2, 2]])
#results = tf.pad(t, paddings, "CONSTANT")
# pretrained_dir_1 = '20.npy'
... | 29.55 | 67 | 0.656514 | 100 | 591 | 3.72 | 0.34 | 0.209677 | 0.08871 | 0.153226 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.120135 | 591 | 20 | 68 | 29.55 | 0.640385 | 0.688663 | 0 | 0 | 0 | 0 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
582b6fd4b4a5e63cea9fa334e5101adf75bf01ab | 1,197 | py | Python | qiskit/test/mock/__init__.py | ajavadia/qiskit-sdk-py | a59e8e6be1793197e19998c1f7dcfc45e6f2f3af | [
"Apache-2.0"
] | 15 | 2020-06-29T08:33:39.000Z | 2022-02-12T00:28:51.000Z | qiskit/test/mock/__init__.py | ajavadia/qiskit-sdk-py | a59e8e6be1793197e19998c1f7dcfc45e6f2f3af | [
"Apache-2.0"
] | 35 | 2019-03-07T02:09:22.000Z | 2022-03-22T19:55:15.000Z | qiskit/test/mock/__init__.py | ajavadia/qiskit-sdk-py | a59e8e6be1793197e19998c1f7dcfc45e6f2f3af | [
"Apache-2.0"
] | 11 | 2020-06-29T08:40:24.000Z | 2022-02-24T17:39:16.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 34.2 | 78 | 0.80117 | 181 | 1,197 | 5.232044 | 0.574586 | 0.07603 | 0.021119 | 0.046463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013766 | 0.150376 | 1,197 | 34 | 79 | 35.205882 | 0.917404 | 0.650794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
583243b141968a047c032e9e9ec88f5564413f59 | 2,427 | py | Python | challenges/codility/lessons/q004/tape_equilibrium_test.py | Joeffison/coding_challenges | 0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea | [
"MIT"
] | 1 | 2018-02-27T15:53:17.000Z | 2018-02-27T15:53:17.000Z | challenges/codility/lessons/q004/tape_equilibrium_test.py | Joeffison/coding_challenges | 0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea | [
"MIT"
] | null | null | null | challenges/codility/lessons/q004/tape_equilibrium_test.py | Joeffison/coding_challenges | 0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea | [
"MIT"
] | 1 | 2021-04-18T09:43:21.000Z | 2021-04-18T09:43:21.000Z | #!/usr/bin/env python3
import random
import unittest
import numpy as np
from challenges.codility.lessons.q004.tape_equilibrium_v001 import *
MIN_ELEMENT = -1000
MAX_ELEMENT = 1000
def get_random_list(n, min=MIN_ELEMENT, max=MAX_ELEMENT):
return list(np.random.random_integers(min, max, (1, n))[0])
def get_rand... | 26.966667 | 82 | 0.74042 | 341 | 2,427 | 5 | 0.217009 | 0.190616 | 0.137243 | 0.197067 | 0.612903 | 0.568328 | 0.440469 | 0.384164 | 0.354839 | 0.354839 | 0 | 0.04454 | 0.139679 | 2,427 | 89 | 83 | 27.269663 | 0.772031 | 0.018541 | 0 | 0.214286 | 0 | 0 | 0.003363 | 0 | 0 | 0 | 0 | 0 | 0.232143 | 1 | 0.303571 | false | 0 | 0.071429 | 0.071429 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5838233356ace5018337e78f4954512c83f19645 | 172,729 | py | Python | pysnmp-with-texts/HUAWEI-MPLS-EXTEND-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HUAWEI-MPLS-EXTEND-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HUAWEI-MPLS-EXTEND-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HUAWEI-MPLS-EXTEND-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-MPLS-EXTEND-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:47:04 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 183.754255 | 12,722 | 0.79051 | 19,986 | 172,729 | 6.831882 | 0.058241 | 0.050973 | 0.089203 | 0.070967 | 0.552621 | 0.452952 | 0.40797 | 0.38873 | 0.364225 | 0.323 | 0 | 0.05004 | 0.088659 | 172,729 | 939 | 12,723 | 183.949947 | 0.817362 | 0.001957 | 0 | 0.016129 | 0 | 0.12043 | 0.429012 | 0.134544 | 0 | 0 | 0.000093 | 0 | 0 | 1 | 0 | false | 0.045161 | 0.013978 | 0 | 0.013978 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
583b8305c164152e8a10e1ef0b5e06e242907055 | 1,729 | py | Python | social_media_scraper/linked_in/identity_search/searcher.py | dmitrijbozhkov/SocialMediaScraper | ff6a766367e82cbd3659d3c062deead138c19feb | [
"Apache-2.0"
] | null | null | null | social_media_scraper/linked_in/identity_search/searcher.py | dmitrijbozhkov/SocialMediaScraper | ff6a766367e82cbd3659d3c062deead138c19feb | [
"Apache-2.0"
] | 2 | 2021-03-31T19:07:46.000Z | 2021-12-13T19:53:58.000Z | social_media_scraper/linked_in/identity_search/searcher.py | dmitrijbozhkov/SocialMediaScraper | ff6a766367e82cbd3659d3c062deead138c19feb | [
"Apache-2.0"
] | null | null | null | """ Operations, performed in order to get search results from LinkedIn search """
from typing import List
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from yarl import URL
from social_media_scraper.id... | 44.333333 | 97 | 0.743783 | 226 | 1,729 | 5.411504 | 0.424779 | 0.029436 | 0.051513 | 0.053966 | 0.197874 | 0.139002 | 0.139002 | 0.139002 | 0.075225 | 0 | 0 | 0.004161 | 0.165992 | 1,729 | 38 | 98 | 45.5 | 0.843967 | 0.136495 | 0 | 0.153846 | 0 | 0 | 0.05681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
585003dbc6d244137c2727599168658ccc6eabbb | 323 | py | Python | countdown.py | Anyutask3/lesson1 | 29071c20adf1aa734086c8d963a3638e3270173b | [
"CC-BY-4.0"
] | null | null | null | countdown.py | Anyutask3/lesson1 | 29071c20adf1aa734086c8d963a3638e3270173b | [
"CC-BY-4.0"
] | null | null | null | countdown.py | Anyutask3/lesson1 | 29071c20adf1aa734086c8d963a3638e3270173b | [
"CC-BY-4.0"
] | null | null | null | def countdown(n):
print(n)
countdown(n - 1)
def countdown(n):
'counts down to 0'
if n <= 0:
print('Blastoff!!!')
else:
print(n)
countdown(n - 1)
def vertical(n):
if n < 10:
print(n)
else:
vertical(n // 10)
print(n % 10)
print(n % 1... | 14.043478 | 28 | 0.458204 | 44 | 323 | 3.363636 | 0.318182 | 0.202703 | 0.162162 | 0.182432 | 0.398649 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.396285 | 323 | 22 | 29 | 14.681818 | 0.697436 | 0.049536 | 0 | 0.647059 | 0 | 0 | 0.083591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0 | 0 | 0.176471 | 0.352941 | 0 | 0 | 0 | null | 1 | 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 | 2 |
58571a643e2aef90fc3c56b1c5669b1396007992 | 245 | py | Python | jp.atcoder/abc148/abc148_c/12031504.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc148/abc148_c/12031504.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc148/abc148_c/12031504.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
def gcd(a, b): return gcd(b, a % b) if b else abs(a)
def lcm(a, b): return abs(a // gcd(a, b) * b)
a, b = map(int, sys.stdin.readline().split())
def main():
print(lcm(a, b))
if __name__ == '__main__':
main()
| 17.5 | 53 | 0.538776 | 45 | 245 | 2.755556 | 0.422222 | 0.096774 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261224 | 245 | 13 | 54 | 18.846154 | 0.685083 | 0 | 0 | 0 | 0 | 0 | 0.034335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.25 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
585e13fb3de94147eda83ce57d7b738eb77d3338 | 256 | py | Python | book/urls.py | nightlyds/library-basic-authentication-server | 80a5aabe91c0c406459ebd51bfdcb510b8d1e842 | [
"MIT"
] | null | null | null | book/urls.py | nightlyds/library-basic-authentication-server | 80a5aabe91c0c406459ebd51bfdcb510b8d1e842 | [
"MIT"
] | null | null | null | book/urls.py | nightlyds/library-basic-authentication-server | 80a5aabe91c0c406459ebd51bfdcb510b8d1e842 | [
"MIT"
] | 1 | 2021-07-04T14:21:08.000Z | 2021-07-04T14:21:08.000Z | from django.urls import path
from .views import BookListView, BookCreateView, BookDetailView
urlpatterns = [
path('create/', BookCreateView.as_view()),
path('all/', BookListView.as_view()),
path('detail/<int:pk>', BookDetailView.as_view()),
]
| 28.444444 | 63 | 0.714844 | 29 | 256 | 6.206897 | 0.586207 | 0.1 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128906 | 256 | 8 | 64 | 32 | 0.807175 | 0 | 0 | 0 | 0 | 0 | 0.101563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
586328f3caf2f848630df1d6b666f886329075e3 | 168 | py | Python | ipme/__init__.py | mcguenther/ipme | b6087b14ddc2e1e3c9532429921a3b6fbdbdc224 | [
"MIT"
] | 22 | 2020-10-31T21:39:18.000Z | 2021-12-05T02:21:15.000Z | ipme/__init__.py | mcguenther/ipme | b6087b14ddc2e1e3c9532429921a3b6fbdbdc224 | [
"MIT"
] | null | null | null | ipme/__init__.py | mcguenther/ipme | b6087b14ddc2e1e3c9532429921a3b6fbdbdc224 | [
"MIT"
] | 2 | 2021-01-27T09:14:02.000Z | 2021-03-05T02:47:20.000Z | """Top-level package for imd."""
__author__ = """Evdoxia Taka"""
__email__ = 'e.taka.1@research.gla.ac.uk'
__version__ = '0.1.0'
from .classes.diagram import Diagram | 21 | 41 | 0.696429 | 25 | 168 | 4.2 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.119048 | 168 | 8 | 42 | 21 | 0.682432 | 0.154762 | 0 | 0 | 0 | 0 | 0.321168 | 0.19708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5868e1ad5a692052fbb61fea52384e4a5ab28a08 | 13,101 | py | Python | libcloud/test/compute/test_vpsnet.py | pquerna/libcloud | 85cccf53235e081a5ed737f12f0c2c70908a3332 | [
"Apache-2.0"
] | 1 | 2015-11-05T15:37:04.000Z | 2015-11-05T15:37:04.000Z | libcloud/test/compute/test_vpsnet.py | pquerna/libcloud | 85cccf53235e081a5ed737f12f0c2c70908a3332 | [
"Apache-2.0"
] | null | null | null | libcloud/test/compute/test_vpsnet.py | pquerna/libcloud | 85cccf53235e081a5ed737f12f0c2c70908a3332 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 62.684211 | 4,645 | 0.590184 | 1,682 | 13,101 | 4.504756 | 0.19679 | 0.037878 | 0.0487 | 0.040649 | 0.700937 | 0.689323 | 0.653425 | 0.482777 | 0.319916 | 0.295104 | 0 | 0.080237 | 0.225632 | 13,101 | 208 | 4,646 | 62.985577 | 0.666634 | 0.061675 | 0 | 0.545455 | 0 | 0.012121 | 0.665608 | 0.322744 | 0 | 0 | 0 | 0 | 0.078788 | 1 | 0.109091 | false | 0.024242 | 0.054545 | 0.012121 | 0.230303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
586d3769a8bd5c7513407f6841ac43808313f4db | 36,329 | py | Python | cinder/tests/test_huawei_hvs.py | oodrive/cinder | 40b43d6698128ab26b056586e0a5c5e818e21c11 | [
"Apache-2.0"
] | 1 | 2015-11-25T10:18:28.000Z | 2015-11-25T10:18:28.000Z | cinder/tests/test_huawei_hvs.py | NeCTAR-RC/cinder | e01da23febc530de218ed8eed6737add150c1587 | [
"Apache-2.0"
] | null | null | null | cinder/tests/test_huawei_hvs.py | NeCTAR-RC/cinder | e01da23febc530de218ed8eed6737add150c1587 | [
"Apache-2.0"
] | null | null | null |
# Copyright (c) 2013 Huawei Technologies Co., Ltd.
# Copyright (c) 2013 OpenStack Foundation
# 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:... | 41.805524 | 79 | 0.486306 | 3,045 | 36,329 | 5.65156 | 0.135961 | 0.062177 | 0.065082 | 0.039049 | 0.745598 | 0.721773 | 0.690976 | 0.656459 | 0.642803 | 0.608403 | 0 | 0.047348 | 0.384927 | 36,329 | 868 | 80 | 41.853687 | 0.722802 | 0.0237 | 0 | 0.654728 | 0 | 0 | 0.43286 | 0.123304 | 0 | 0 | 0 | 0 | 0.050143 | 1 | 0.073066 | false | 0.014327 | 0.017192 | 0 | 0.100287 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
586f01a9b45eeeaeb5533fb652be61770244bfbf | 275 | py | Python | service_catalog/templatetags/version.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 112 | 2021-04-21T08:52:55.000Z | 2022-03-01T15:09:19.000Z | service_catalog/templatetags/version.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 216 | 2021-04-21T09:06:47.000Z | 2022-03-30T14:21:28.000Z | service_catalog/templatetags/version.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 21 | 2021-04-20T13:53:54.000Z | 2022-03-30T21:43:04.000Z | from django import template
register = template.Library()
@register.simple_tag
def app_version():
"""
Return Squest version as listed in `__version__` in `init.py` of settings package
"""
from django.conf import settings
return settings.SQUEST_VERSION
| 21.153846 | 85 | 0.727273 | 35 | 275 | 5.514286 | 0.628571 | 0.103627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192727 | 275 | 12 | 86 | 22.916667 | 0.869369 | 0.294545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
586f0cf9e0f054fd720a127335ba1d9d0970457b | 183 | py | Python | _28_EXERCISE_TEXT_PROCESSING/_1_Valid_Usernames.py | YordanPetrovDS/Python_Fundamentals | 81163054cd3ac780697eaa43f099cc455f253a0c | [
"MIT"
] | null | null | null | _28_EXERCISE_TEXT_PROCESSING/_1_Valid_Usernames.py | YordanPetrovDS/Python_Fundamentals | 81163054cd3ac780697eaa43f099cc455f253a0c | [
"MIT"
] | null | null | null | _28_EXERCISE_TEXT_PROCESSING/_1_Valid_Usernames.py | YordanPetrovDS/Python_Fundamentals | 81163054cd3ac780697eaa43f099cc455f253a0c | [
"MIT"
] | null | null | null | words = list(map(str, input().split(", ")))
for word in words:
if 3 <= len(word) <= 16:
if word.isalnum() or ("_" in word) or ("-" in word):
print(f"{word}")
| 26.142857 | 60 | 0.497268 | 27 | 183 | 3.333333 | 0.62963 | 0.088889 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.278689 | 183 | 6 | 61 | 30.5 | 0.659091 | 0 | 0 | 0 | 0 | 0 | 0.054645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
586fd60f888571518cfa6393a0b16f360ecd7db7 | 2,123 | py | Python | communication_gp/miner.py | cammac725/Blockchain | ec885930433f77fae35f0ffa510b06aab60b6953 | [
"MIT"
] | null | null | null | communication_gp/miner.py | cammac725/Blockchain | ec885930433f77fae35f0ffa510b06aab60b6953 | [
"MIT"
] | null | null | null | communication_gp/miner.py | cammac725/Blockchain | ec885930433f77fae35f0ffa510b06aab60b6953 | [
"MIT"
] | null | null | null | import hashlib
import requests
import json
import sys
def proof_of_work(last_block):
"""
Simple Proof of Work Algorithm
Find a number p such that hash(last_block_string, p) contains 6 leading
zeroes
"""
block_string = json.dumps(last_block, sort_keys=True).encode()
proof = 0
wh... | 27.934211 | 79 | 0.598681 | 290 | 2,123 | 4.244828 | 0.393103 | 0.0658 | 0.05199 | 0.02437 | 0.074736 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013944 | 0.290626 | 2,123 | 76 | 80 | 27.934211 | 0.803453 | 0.256241 | 0 | 0.071429 | 0 | 0 | 0.137622 | 0.015707 | 0 | 0 | 0 | 0.013158 | 0 | 0 | null | null | 0.017857 | 0.071429 | null | null | 0.089286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.