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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c818f9c13ace0c5540a9acd800f826cf5039560 | 2,258 | py | Python | tests/manifests/tabular/test_gsheets.py | atviriduomenys/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 2 | 2019-03-14T06:41:14.000Z | 2019-03-26T11:48:14.000Z | tests/manifests/tabular/test_gsheets.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 44 | 2019-04-05T15:52:45.000Z | 2022-03-30T07:41:33.000Z | tests/manifests/tabular/test_gsheets.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 1 | 2019-04-01T09:54:27.000Z | 2019-04-01T09:54:27.000Z | from pathlib import Path
import py.path
from responses import GET
from responses import RequestsMock
from spinta.core.config import RawConfig
from spinta.testing.tabular import create_tabular_manifest
from spinta.testing.manifest import load_manifest
def test_gsheets(rc: RawConfig, tmpdir: py.path.local, responses:... | 45.16 | 124 | 0.423384 | 173 | 2,258 | 5.450867 | 0.49711 | 0.031813 | 0.034995 | 0.04666 | 0.220573 | 0.220573 | 0.156946 | 0.156946 | 0 | 0 | 0 | 0.02005 | 0.469885 | 2,258 | 49 | 125 | 46.081633 | 0.767753 | 0 | 0 | 0.186047 | 0 | 0.046512 | 0.664305 | 0.04163 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.023256 | false | 0 | 0.162791 | 0 | 0.186047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c81e191dd079f893882a791d72407fe3f27f43a | 1,094 | py | Python | src/utils/user.py | ryanapfel/clustering | 682bf22eeff2253acc0128323db97968a9a3b420 | [
"MIT"
] | null | null | null | src/utils/user.py | ryanapfel/clustering | 682bf22eeff2253acc0128323db97968a9a3b420 | [
"MIT"
] | null | null | null | src/utils/user.py | ryanapfel/clustering | 682bf22eeff2253acc0128323db97968a9a3b420 | [
"MIT"
] | null | null | null |
import math
import numpy as np
from src.utils.correlation import CStruct
class User:
def __init__(self, _K , _emotions,_userData, _userId, _cluster = -1 ):
self.cluster = [_cluster]
self.emotions, self.scenes = _userData
self.id = _userId
self.struct = CStruct(_K, _emotions)
self.score = 0
... | 30.388889 | 134 | 0.66819 | 152 | 1,094 | 4.638158 | 0.407895 | 0.062411 | 0.034043 | 0.056738 | 0.102128 | 0.102128 | 0.102128 | 0 | 0 | 0 | 0 | 0.011186 | 0.182815 | 1,094 | 35 | 135 | 31.257143 | 0.777405 | 0 | 0 | 0 | 0 | 0.038462 | 0.084172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.115385 | 0.076923 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c84eb064621c9635a2f42ebfb517b97332d5eec | 66,390 | py | Python | tests/hwsim/test_wpas_ctrl.py | gerow/hostap | 6cd0f2af5fae4c51eec8f986b5e8c2a350fe98a2 | [
"Unlicense"
] | null | null | null | tests/hwsim/test_wpas_ctrl.py | gerow/hostap | 6cd0f2af5fae4c51eec8f986b5e8c2a350fe98a2 | [
"Unlicense"
] | null | null | null | tests/hwsim/test_wpas_ctrl.py | gerow/hostap | 6cd0f2af5fae4c51eec8f986b5e8c2a350fe98a2 | [
"Unlicense"
] | null | null | null | # wpa_supplicant control interface
# Copyright (c) 2014, Qualcomm Atheros, Inc.
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
import logging
logger = logging.getLogger()
import subprocess
import time
import hostapd
import hwsim_utils
from wpasupplicant import ... | 47.76259 | 163 | 0.639569 | 9,469 | 66,390 | 4.357588 | 0.072553 | 0.036547 | 0.059983 | 0.062067 | 0.733072 | 0.681305 | 0.620571 | 0.553197 | 0.491396 | 0.45611 | 0 | 0.068493 | 0.219747 | 66,390 | 1,389 | 164 | 47.796976 | 0.728055 | 0.012653 | 0 | 0.341588 | 0 | 0.016225 | 0.382941 | 0.038744 | 0 | 0 | 0.000095 | 0 | 0 | 0 | null | null | 0.021349 | 0.005978 | null | null | 0.001708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c852af8ed1e6fc52befb3bc7d0d3e88ce407a1a | 1,012 | py | Python | pvlib_python/pvl_pres2alt.py | cwhanse/PVLIB_Python | 4ed3dbb9dfd4d4fc9f594580809fc3c09fa8e93d | [
"BSD-3-Clause"
] | 4 | 2017-08-31T21:09:14.000Z | 2020-09-09T18:47:32.000Z | pvlib_python/pvl_pres2alt.py | cwhanse/PVLIB_Python | 4ed3dbb9dfd4d4fc9f594580809fc3c09fa8e93d | [
"BSD-3-Clause"
] | null | null | null | pvlib_python/pvl_pres2alt.py | cwhanse/PVLIB_Python | 4ed3dbb9dfd4d4fc9f594580809fc3c09fa8e93d | [
"BSD-3-Clause"
] | 1 | 2020-09-09T18:47:40.000Z | 2020-09-09T18:47:40.000Z | # PVL_PRES2ALT Determine altitude from site pressure
#
# Syntax
# Alt = pvl_pres2alt(pressure)
#
# Description
# PVL_PRES2ALT determines the altitude (in meters above sea level) of a
# site on Earth's surface given its atmospheric pressure (in Pascals).
# Output "Alt" is given in meters above sea level. Alt ... | 28.914286 | 77 | 0.70751 | 153 | 1,012 | 4.633987 | 0.673203 | 0.062059 | 0.036671 | 0.045134 | 0.059238 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077954 | 0.188735 | 1,012 | 34 | 78 | 29.764706 | 0.785627 | 0.740119 | 0 | 0 | 0 | 0 | 0.079832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1c86d24d3d0f9a9272b2c79f9b2a2eb3e8deee9f | 838 | py | Python | tests/request_methods/test_outboundshipments.py | saleweaver/python-amazon-mws | a6d58fbcb0543b48f462184f86671fcafc55b194 | [
"Unlicense"
] | 1 | 2020-01-27T21:02:55.000Z | 2020-01-27T21:02:55.000Z | tests/request_methods/test_outboundshipments.py | saleweaver/python-amazon-mws | a6d58fbcb0543b48f462184f86671fcafc55b194 | [
"Unlicense"
] | 1 | 2021-07-09T16:14:43.000Z | 2021-07-09T16:14:43.000Z | tests/request_methods/test_outboundshipments.py | Shiphero/python-amazon-mws | 2d1e430c195661500eb9d66d4aae5e305399816f | [
"Unlicense"
] | null | null | null | """
Tests for the MWS.OutboundShipments API class.
"""
import unittest
import mws
from .utils import CommonRequestTestTools
class OutboundShipmentsTestCase(unittest.TestCase, CommonRequestTestTools):
"""
Test cases for OutboundShipments.
"""
# TODO: Add remaining methods for OutboundShipments
def... | 27.032258 | 75 | 0.655131 | 79 | 838 | 6.78481 | 0.518987 | 0.104478 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252983 | 838 | 30 | 76 | 27.933333 | 0.85623 | 0.406921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c87dda0069785ce8438c7044fbdb9e9d4d7057f | 323 | py | Python | uwu.py | tensorbro400/learning-python | 10cf231792821c71bc8f0aab207c12adffd5f0c9 | [
"MIT"
] | null | null | null | uwu.py | tensorbro400/learning-python | 10cf231792821c71bc8f0aab207c12adffd5f0c9 | [
"MIT"
] | null | null | null | uwu.py | tensorbro400/learning-python | 10cf231792821c71bc8f0aab207c12adffd5f0c9 | [
"MIT"
] | null | null | null | print("""This program will translate any string of text into "uwu" with
100 percent accuracy""")
text = input("Enter text to translate: ")
text = text.casefold()
text = text.replace("r", "w")
text = text.replace("l", "w")
text = text.replace("s", "th")
print("")
print("""translated: "{}" 乂❤‿❤乂""".format(text))
print("... | 29.363636 | 71 | 0.640867 | 48 | 323 | 4.375 | 0.604167 | 0.152381 | 0.214286 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010676 | 0.130031 | 323 | 10 | 72 | 32.3 | 0.725979 | 0 | 0 | 0.2 | 0 | 0 | 0.424149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c8cacafb2b15e2018902bf73817dcabc2179ac1 | 359 | py | Python | LunarLanderContinuous-V2_test.py | HFrost0/Reinforcement-Learning-With-Gym | 8b27adcd41e7e38b9aa04693f325badae5be8b0e | [
"MIT"
] | null | null | null | LunarLanderContinuous-V2_test.py | HFrost0/Reinforcement-Learning-With-Gym | 8b27adcd41e7e38b9aa04693f325badae5be8b0e | [
"MIT"
] | null | null | null | LunarLanderContinuous-V2_test.py | HFrost0/Reinforcement-Learning-With-Gym | 8b27adcd41e7e38b9aa04693f325badae5be8b0e | [
"MIT"
] | null | null | null | import gym
from agents import SACAgent
from common.utils import valid, NormalizedActions
env = NormalizedActions(gym.make('LunarLanderContinuous-v2'))
n_obs = env.observation_space.shape[0]
n_action = env.action_space.shape[0]
agent = SACAgent(n_obs, n_action)
agent.load('saved_models/LunarContinuous_sac.pt')
# show ... | 27.615385 | 61 | 0.802228 | 52 | 359 | 5.384615 | 0.596154 | 0.028571 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009202 | 0.091922 | 359 | 12 | 62 | 29.916667 | 0.849693 | 0.033426 | 0 | 0 | 0 | 0 | 0.171014 | 0.171014 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1c8fdef038d8fc01639b283c9bca6b3919d447f5 | 3,085 | py | Python | env/lib/python3.5/site-packages/google/gax/utils/metrics.py | creekhead/RPI_google_asst | 65dc7b08bb8333f8977488f37f7d3ec652489a44 | [
"Apache-2.0"
] | 30 | 2016-02-11T16:50:47.000Z | 2021-02-17T06:59:06.000Z | env/lib/python3.5/site-packages/google/gax/utils/metrics.py | creekhead/RPI_google_asst | 65dc7b08bb8333f8977488f37f7d3ec652489a44 | [
"Apache-2.0"
] | 182 | 2016-02-11T04:10:02.000Z | 2018-02-26T23:57:17.000Z | env/lib/python3.5/site-packages/google/gax/utils/metrics.py | creekhead/RPI_google_asst | 65dc7b08bb8333f8977488f37f7d3ec652489a44 | [
"Apache-2.0"
] | 20 | 2016-02-11T01:28:42.000Z | 2021-10-07T21:33:04.000Z | # Copyright 2017, Google Inc.
# 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 list of conditions and the f... | 38.5625 | 75 | 0.740032 | 430 | 3,085 | 5.265116 | 0.476744 | 0.074205 | 0.022527 | 0.020318 | 0.081272 | 0.060071 | 0.060071 | 0.060071 | 0.060071 | 0.060071 | 0 | 0.0052 | 0.189627 | 3,085 | 79 | 76 | 39.050633 | 0.9004 | 0.732901 | 0 | 0 | 0 | 0 | 0.03794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1c98b7863d7c9608d460671029d0385560cbed1d | 3,053 | py | Python | dockerEE/service/environment_emulation_runner.py | ynaka81/dockerEE | bcbf01bfa9149d9bedf8d6105a050fb8cd0d47a2 | [
"MIT"
] | null | null | null | dockerEE/service/environment_emulation_runner.py | ynaka81/dockerEE | bcbf01bfa9149d9bedf8d6105a050fb8cd0d47a2 | [
"MIT"
] | 1 | 2015-09-24T22:12:13.000Z | 2015-09-25T13:02:21.000Z | dockerEE/service/environment_emulation_runner.py | ynaka81/dockerEE | bcbf01bfa9149d9bedf8d6105a050fb8cd0d47a2 | [
"MIT"
] | null | null | null | import sys
import os
from daemon import runner
## EnvironmentEmulationRunner
#
# The extension of python-daemon.runner for additional actions
class EnvironmentEmulationRunner(runner.DaemonRunner):
## constructor
# @param The daemon application
def __init__(self, app):
runner.DaemonRunner.__init__(s... | 40.706667 | 128 | 0.623321 | 363 | 3,053 | 5.123967 | 0.278237 | 0.067742 | 0.03871 | 0.03871 | 0.169355 | 0.078495 | 0 | 0 | 0 | 0 | 0 | 0.002295 | 0.286276 | 3,053 | 74 | 129 | 41.256757 | 0.851308 | 0.256797 | 0 | 0.12766 | 0 | 0 | 0.190604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c9a70b2732cd6527a48f6faf13571f7c97ac600 | 723 | py | Python | usermess/migrations/0002_auto_20181111_2211.py | HemanthJella/ewallet | cc7f9b5abb7aa552b8769b9324c3d79630e5ea6a | [
"Apache-2.0"
] | null | null | null | usermess/migrations/0002_auto_20181111_2211.py | HemanthJella/ewallet | cc7f9b5abb7aa552b8769b9324c3d79630e5ea6a | [
"Apache-2.0"
] | null | null | null | usermess/migrations/0002_auto_20181111_2211.py | HemanthJella/ewallet | cc7f9b5abb7aa552b8769b9324c3d79630e5ea6a | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.2 on 2018-11-11 22:11
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('usermess', '0001_initial'),
]
operations = [
migrations.AlterField(
... | 27.807692 | 101 | 0.603043 | 74 | 723 | 5.837838 | 0.540541 | 0.055556 | 0.037037 | 0.046296 | 0.268519 | 0.212963 | 0 | 0 | 0 | 0 | 0 | 0.075145 | 0.282158 | 723 | 25 | 102 | 28.92 | 0.757225 | 0.062241 | 0 | 0.315789 | 1 | 0 | 0.116743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98bff5677967ae4c5a0ec6b3940cdeb580b45a20 | 1,615 | py | Python | machine_learning/regression/LinearRegression.py | moddabiri/basic_ml | f5e3e4e634fc3c1bf05970f155deefd2cb12e09c | [
"MIT"
] | 1 | 2017-01-11T16:26:35.000Z | 2017-01-11T16:26:35.000Z | machine_learning/regression/LinearRegression.py | moddabiri/basic_ml | f5e3e4e634fc3c1bf05970f155deefd2cb12e09c | [
"MIT"
] | null | null | null | machine_learning/regression/LinearRegression.py | moddabiri/basic_ml | f5e3e4e634fc3c1bf05970f155deefd2cb12e09c | [
"MIT"
] | null | null | null | __author__ = "Mohammad Dabiri"
__copyright__ = "Free to use, copy and modify"
__credits__ = ["Mohammad Dabiri"]
__license__ = "MIT Licence"
__version__ = "0.0.1"
__maintainer__ = "Mohammad Dabiri"
__email__ = "moddabiri@yahoo.com"
import numpy as np
import importlib
import os.path
if not importlib.find_loader('matpl... | 34.361702 | 118 | 0.695356 | 197 | 1,615 | 5.456853 | 0.472081 | 0.007442 | 0.033488 | 0.037209 | 0.186047 | 0.152558 | 0.152558 | 0.152558 | 0.152558 | 0.152558 | 0 | 0.01007 | 0.200619 | 1,615 | 47 | 119 | 34.361702 | 0.821844 | 0 | 0 | 0.171429 | 0 | 0 | 0.133127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.171429 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98c188922c3de5b5275b214f9b08076d3951c53b | 456 | py | Python | server/src/serve_top_builds.py | FuegoFro/hotslogs_mobile_client | ccefc4ffa1265d6d4c341f48575d3d2aa6fe2cd6 | [
"MIT"
] | null | null | null | server/src/serve_top_builds.py | FuegoFro/hotslogs_mobile_client | ccefc4ffa1265d6d4c341f48575d3d2aa6fe2cd6 | [
"MIT"
] | null | null | null | server/src/serve_top_builds.py | FuegoFro/hotslogs_mobile_client | ccefc4ffa1265d6d4c341f48575d3d2aa6fe2cd6 | [
"MIT"
] | null | null | null | from flask import Flask, Response
from werkzeug.exceptions import NotFound
from data_utils import json_top_builds_file
app = Flask(__name__)
@app.route("/")
def hello() -> str:
return "Server is running!"
@app.route("/top_builds/<hero_name>")
def top_builds(hero_name: str) -> Response:
path = json_top_build... | 25.333333 | 66 | 0.725877 | 64 | 456 | 4.90625 | 0.515625 | 0.11465 | 0.082803 | 0.10828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153509 | 456 | 17 | 67 | 26.823529 | 0.813472 | 0 | 0 | 0 | 0 | 0 | 0.127193 | 0.050439 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
98c329d23ae19d727d9ba2cb0289a2e5c753fe4d | 3,061 | py | Python | democracy_consumer/migrations/0001_initial.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 5 | 2019-07-01T17:50:44.000Z | 2022-02-20T02:44:42.000Z | democracy_consumer/migrations/0001_initial.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 3 | 2020-06-05T21:44:33.000Z | 2021-06-10T21:39:26.000Z | democracy_consumer/migrations/0001_initial.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 1 | 2021-12-09T06:32:40.000Z | 2021-12-09T06:32:40.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-10-01 01:17
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import django_smalluuid.models
import everyvoter_common.utils.models
class Migration(... | 47.092308 | 464 | 0.620059 | 321 | 3,061 | 5.735202 | 0.370717 | 0.019011 | 0.045627 | 0.054318 | 0.396524 | 0.332428 | 0.308528 | 0.308528 | 0.308528 | 0.234655 | 0 | 0.010385 | 0.245018 | 3,061 | 64 | 465 | 47.828125 | 0.78624 | 0.022542 | 0 | 0.357143 | 1 | 0 | 0.227501 | 0.017063 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98c776f9754f709a2425ac21727346c1ec3dac55 | 2,634 | py | Python | src/openprocurement/tender/esco/procedure/views/auction.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 10 | 2020-02-18T01:56:21.000Z | 2022-03-28T00:32:57.000Z | src/openprocurement/tender/esco/procedure/views/auction.py | quintagroup/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 26 | 2018-07-16T09:30:44.000Z | 2021-02-02T17:51:30.000Z | src/openprocurement/tender/esco/procedure/views/auction.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 15 | 2019-08-08T10:50:47.000Z | 2022-02-05T14:13:36.000Z | from openprocurement.tender.openua.procedure.views.auction import TenderAuctionResource
from openprocurement.tender.esco.procedure.state.tender import ESCOTenderTenderState
from openprocurement.tender.esco.procedure.serializers.auction import AuctionSerializer
from openprocurement.tender.esco.procedure.models.value imp... | 41.15625 | 98 | 0.656036 | 278 | 2,634 | 6.057554 | 0.266187 | 0.0481 | 0.089074 | 0.068884 | 0.387767 | 0.311758 | 0.213183 | 0.18171 | 0.18171 | 0.18171 | 0 | 0 | 0.231207 | 2,634 | 63 | 99 | 41.809524 | 0.831605 | 0.025057 | 0 | 0.22807 | 0 | 0 | 0.103274 | 0.028449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0.157895 | 0.140351 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
98cd9194cbca46f1b3018286d1c9435d6f681c24 | 1,360 | py | Python | Algorithms/Searching/Exponential_Search.py | vinaykumar7686/Algorithms | 1e6fac91b590c271f85f2881514cac71cad07c36 | [
"MIT"
] | 1 | 2020-07-26T17:43:40.000Z | 2020-07-26T17:43:40.000Z | Algorithms/Searching/Exponential_Search.py | vinaykumar7686/Algorithms | 1e6fac91b590c271f85f2881514cac71cad07c36 | [
"MIT"
] | null | null | null | Algorithms/Searching/Exponential_Search.py | vinaykumar7686/Algorithms | 1e6fac91b590c271f85f2881514cac71cad07c36 | [
"MIT"
] | null | null | null | def binarySearch( arr, l, r, x):
if r >= l:
mid = l + ( r-l ) / 2
# If the element is present at
# the middle itself
if arr[mid] == x:
return mid
# If the element is smaller than mid,
# then it can only be present in the
... | 26.153846 | 52 | 0.497794 | 188 | 1,360 | 3.601064 | 0.382979 | 0.088626 | 0.053176 | 0.062038 | 0.177253 | 0.062038 | 0 | 0 | 0 | 0 | 0 | 0.024112 | 0.420588 | 1,360 | 51 | 53 | 26.666667 | 0.835025 | 0.325735 | 0 | 0 | 0 | 0 | 0.067853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98d3d753f78fbac707b933792b2e40f99093b736 | 8,373 | py | Python | orbit_predictor/predictors/base.py | enritoomey/orbit-predictor | bd31b9352be1d9b61919ed0229bf134c7a0a455d | [
"MIT"
] | null | null | null | orbit_predictor/predictors/base.py | enritoomey/orbit-predictor | bd31b9352be1d9b61919ed0229bf134c7a0a455d | [
"MIT"
] | null | null | null | orbit_predictor/predictors/base.py | enritoomey/orbit-predictor | bd31b9352be1d9b61919ed0229bf134c7a0a455d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# MIT License
#
# Copyright (c) 2017 Satellogic SA
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to ... | 37.547085 | 97 | 0.646483 | 1,056 | 8,373 | 4.828598 | 0.245265 | 0.072955 | 0.026476 | 0.018827 | 0.190822 | 0.138459 | 0.079231 | 0.030202 | 0.017258 | 0.017258 | 0 | 0.004824 | 0.281978 | 8,373 | 222 | 98 | 37.716216 | 0.842648 | 0.268482 | 0 | 0.090226 | 0 | 0 | 0.034576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097744 | false | 0.165414 | 0.067669 | 0.022556 | 0.278195 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
98dedacd7a015263eec71ab2a72b321f9f594dc6 | 652 | py | Python | app/configure_cluster.py | LeopoldWalther/aws-s3-to-redshift-ETL-pipeline | 1c078c682fe29c181bdf86958a813c297efa4ce7 | [
"MIT"
] | null | null | null | app/configure_cluster.py | LeopoldWalther/aws-s3-to-redshift-ETL-pipeline | 1c078c682fe29c181bdf86958a813c297efa4ce7 | [
"MIT"
] | null | null | null | app/configure_cluster.py | LeopoldWalther/aws-s3-to-redshift-ETL-pipeline | 1c078c682fe29c181bdf86958a813c297efa4ce7 | [
"MIT"
] | null | null | null | from control_datawarehouse import datawarehouse
import psycopg2
def main():
"""Initializes datawarehous object, saves endpoint+roleARN to config file and opens ports of VPC for connections"""
MyDWH = datawarehouse()
MyDWH.describe_redshift_cluster()
MyDWH.get_cluster_endpoint_and_role_arn()
MyDWH.... | 32.6 | 119 | 0.714724 | 81 | 652 | 5.45679 | 0.617284 | 0.090498 | 0.067873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003676 | 0.165644 | 652 | 20 | 120 | 32.6 | 0.808824 | 0.167178 | 0 | 0 | 0 | 0 | 0.14684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.133333 | 0.133333 | 0 | 0.2 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
98e1790f3d71cd93e1604983d9affdf673922625 | 1,857 | py | Python | tests/test_builder_group.py | BazaroZero/DBeditor | ba487c0b4f6e7f7f1551a24a1ff02290103c6323 | [
"MIT"
] | 11 | 2021-11-16T16:42:36.000Z | 2021-12-16T21:33:20.000Z | tests/test_builder_group.py | BazaroZero/DBeditor | ba487c0b4f6e7f7f1551a24a1ff02290103c6323 | [
"MIT"
] | null | null | null | tests/test_builder_group.py | BazaroZero/DBeditor | ba487c0b4f6e7f7f1551a24a1ff02290103c6323 | [
"MIT"
] | 3 | 2021-11-22T19:49:58.000Z | 2022-02-02T12:07:30.000Z | import pytest
from sqlalchemy import Column, Integer
from dbeditor.database import Database
from dbeditor.table_builder import BuilderGroup
@pytest.fixture
def group(database: Database) -> BuilderGroup:
g = BuilderGroup(database.engine)
g.start_building("example") # FIXME: fixture based on testing code
... | 28.136364 | 71 | 0.722671 | 235 | 1,857 | 5.502128 | 0.285106 | 0.049497 | 0.075793 | 0.102862 | 0.292343 | 0.272235 | 0.237432 | 0.237432 | 0.142305 | 0.142305 | 0 | 0.000645 | 0.164782 | 1,857 | 65 | 72 | 28.569231 | 0.833011 | 0.063005 | 0 | 0.222222 | 0 | 0 | 0.102017 | 0 | 0 | 0 | 0 | 0.015385 | 0.222222 | 1 | 0.177778 | false | 0 | 0.088889 | 0 | 0.288889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98e38ef88606e8f3b301d758c2c5ded42ee427d1 | 5,889 | py | Python | Aprior/Aprior.py | CanyellWang/MachineLearning_Python_wchy | d611538cdad31ab257baf837091f1dde2c3be5ec | [
"MIT"
] | null | null | null | Aprior/Aprior.py | CanyellWang/MachineLearning_Python_wchy | d611538cdad31ab257baf837091f1dde2c3be5ec | [
"MIT"
] | null | null | null | Aprior/Aprior.py | CanyellWang/MachineLearning_Python_wchy | d611538cdad31ab257baf837091f1dde2c3be5ec | [
"MIT"
] | 1 | 2019-02-27T01:06:59.000Z | 2019-02-27T01:06:59.000Z | """
# Python 2.7
# Filename: apriori.py
# Author: llhthinker
# Email: hangliu56[AT]gmail[DOT]com
# Blog: http://www.cnblogs.com/llhthinker/p/6719779.html
# Date: 2017-04-16
"""
def load_data_set():
"""
Load a sample data set (From Data Mining: Concepts and Techniques, 3th Edition)
Returns:
A data... | 32.899441 | 89 | 0.593479 | 833 | 5,889 | 4.021609 | 0.165666 | 0.043881 | 0.042985 | 0.035522 | 0.433134 | 0.351343 | 0.288955 | 0.254925 | 0.220896 | 0.220896 | 0 | 0.02735 | 0.304636 | 5,889 | 179 | 90 | 32.899441 | 0.79072 | 0.010698 | 0 | 0.067416 | 0 | 0 | 0.031298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.078652 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98e41ea8aaf932a0efc90288695f843cf7475685 | 289 | py | Python | sklite/__version__.py | fvidjaja/SkLite | dc409b5638eded6f160faf6f99d69b4f828bbde3 | [
"MIT"
] | 10 | 2019-09-03T21:27:06.000Z | 2022-01-30T14:02:52.000Z | sklite/__version__.py | axegon/SkLite | dc409b5638eded6f160faf6f99d69b4f828bbde3 | [
"MIT"
] | null | null | null | sklite/__version__.py | axegon/SkLite | dc409b5638eded6f160faf6f99d69b4f828bbde3 | [
"MIT"
] | 2 | 2020-08-06T10:46:14.000Z | 2020-10-22T21:31:03.000Z | """Meta variables for SkLite"""
__title__ = "sklite"
__version__ = "0.0.2"
__description__ = "Use Scikit Learn models in Flutter"
__url__ = "https://github.com/axegon/sklite"
__author__ = "Alexander Ejbekov"
__author_email__ = "alexander@kialo.ai"
__license__ = "MIT"
__compat__ = "0.0.1"
| 28.9 | 54 | 0.737024 | 37 | 289 | 4.864865 | 0.810811 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.117647 | 289 | 9 | 55 | 32.111111 | 0.682353 | 0.086505 | 0 | 0 | 0 | 0 | 0.465116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98ebb4af520e630856d866751753ea6fc6410004 | 457 | py | Python | backend/api/migrations/0006_grandparent_gtype.py | MeRichard123/family-tree-app | 472f4aebe99811130fd1288d7cec62ac1a9f10b2 | [
"MIT"
] | 1 | 2021-11-24T04:41:47.000Z | 2021-11-24T04:41:47.000Z | backend/api/migrations/0006_grandparent_gtype.py | MeRichard123/family-tree-app | 472f4aebe99811130fd1288d7cec62ac1a9f10b2 | [
"MIT"
] | 5 | 2021-01-07T21:11:45.000Z | 2021-03-14T10:59:51.000Z | backend/api/migrations/0006_grandparent_gtype.py | MeRichard123/family-tree-app | 472f4aebe99811130fd1288d7cec62ac1a9f10b2 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-29 18:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0005_auto_20201229_1812'),
]
operations = [
migrations.AddField(
model_name='grandparent',
name='GType',
... | 24.052632 | 123 | 0.599562 | 49 | 457 | 5.489796 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0.253829 | 457 | 18 | 124 | 25.388889 | 0.692082 | 0.098468 | 0 | 0 | 1 | 0 | 0.178049 | 0.056098 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98f03a71df24c83bb7b3822006f4dfd570c9a5a0 | 1,430 | py | Python | main/evolution-data-server/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/evolution-data-server/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/evolution-data-server/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | pkgname = "evolution-data-server"
pkgver = "3.44.0"
pkgrel = 0
build_style = "cmake"
# TODO: libgdata
configure_args = [
"-DENABLE_GOOGLE=OFF", "-DWITH_LIBDB=OFF",
"-DSYSCONF_INSTALL_DIR=/etc", "-DENABLE_INTROSPECTION=ON",
"-DENABLE_VALA_BINDINGS=ON",
]
hostmakedepends = [
"cmake", "ninja", "pkgconf", "... | 36.666667 | 75 | 0.700699 | 171 | 1,430 | 5.777778 | 0.690058 | 0.039474 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044269 | 0.115385 | 1,430 | 38 | 76 | 37.631579 | 0.736759 | 0.047552 | 0 | 0 | 0 | 0 | 0.590876 | 0.261221 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.058824 | false | 0 | 0 | 0.029412 | 0.088235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98f26453782440a75e9ebc3d9d36449a53973a34 | 376 | py | Python | my_lambdata/assignment.py | CurdtMillion/lambdata-DSPT5sean | 4fe7d691a090ce30906518d94830f94f7287869b | [
"MIT"
] | null | null | null | my_lambdata/assignment.py | CurdtMillion/lambdata-DSPT5sean | 4fe7d691a090ce30906518d94830f94f7287869b | [
"MIT"
] | null | null | null | my_lambdata/assignment.py | CurdtMillion/lambdata-DSPT5sean | 4fe7d691a090ce30906518d94830f94f7287869b | [
"MIT"
] | null | null | null |
from pandas import DataFrame
def add_state_names(my_df):
# todo: add a column of corresponding state names
names_map = {"CA":"Cali","CO":"Colo","CT":"Conn"}
##breakpoint()
return my_df
if __name__ == "__main__":
df = DataFrame({"abbrev":["CA","CO","CT","DC","TX"]})
print(df.head(... | 15.04 | 57 | 0.593085 | 52 | 376 | 4 | 0.634615 | 0.144231 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006803 | 0.218085 | 376 | 24 | 58 | 15.666667 | 0.70068 | 0.156915 | 0 | 0 | 0 | 0 | 0.135048 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98f39e2e3109c7e5f5ee42e8d8ce2582bfc0e899 | 561 | py | Python | pycopa/lexer.py | advaita-krishna-das/pycopa | ed681f86c9c3b418605dbf6b0aee6a63db48458a | [
"MIT"
] | null | null | null | pycopa/lexer.py | advaita-krishna-das/pycopa | ed681f86c9c3b418605dbf6b0aee6a63db48458a | [
"MIT"
] | null | null | null | pycopa/lexer.py | advaita-krishna-das/pycopa | ed681f86c9c3b418605dbf6b0aee6a63db48458a | [
"MIT"
] | null | null | null | import re
class Lexer:
def parse(self, line):
words = re.split(r'(\s+)', line)
result = []
for word in words:
if word.startswith("/"):
result.append((word, "command"))
continue
if ":" in word:
ts = word.split(":")
... | 22.44 | 52 | 0.409982 | 55 | 561 | 4.181818 | 0.490909 | 0.208696 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00974 | 0.45098 | 561 | 25 | 53 | 22.44 | 0.737013 | 0 | 0 | 0.111111 | 0 | 0 | 0.053381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98f590741073f45481127580a3ac8e95e650276a | 932 | py | Python | universum/modules/automation_server/base_server.py | o-andrieiev/Universum | 71c9494f59dbac58a378d29eb31f8724964c8067 | [
"BSD-2-Clause"
] | 21 | 2019-01-07T03:59:54.000Z | 2021-12-13T10:51:54.000Z | universum/modules/automation_server/base_server.py | o-andrieiev/Universum | 71c9494f59dbac58a378d29eb31f8724964c8067 | [
"BSD-2-Clause"
] | 407 | 2019-01-29T11:50:29.000Z | 2022-03-24T15:09:20.000Z | universum/modules/automation_server/base_server.py | o-andrieiev/Universum | 71c9494f59dbac58a378d29eb31f8724964c8067 | [
"BSD-2-Clause"
] | 14 | 2019-01-08T07:37:13.000Z | 2022-02-03T17:00:19.000Z | from requests import Response
from ...lib.gravity import Module
__all__ = [
"BaseServerForTrigger",
"BaseServerForHostingBuild"
]
class BaseServerForTrigger(Module):
"""
Abstract base class for API of triggering builds on automation (CI) server
"""
def trigger_build(self, revision: str) -> N... | 29.125 | 87 | 0.709227 | 110 | 932 | 5.9 | 0.490909 | 0.043143 | 0.05547 | 0.070878 | 0.326656 | 0.326656 | 0.326656 | 0 | 0 | 0 | 0 | 0 | 0.204936 | 932 | 31 | 88 | 30.064516 | 0.875843 | 0.215665 | 0 | 0.125 | 0 | 0 | 0.223176 | 0.035765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7093523f42842383f4f94d6d0566e1e92b8ac3c | 947 | py | Python | ionyweb/plugin_app/plugin_video/viewers/dailymotion.py | makinacorpus/ionyweb | 2f18e3dc1fdc86c7e19bae3778e67e28a37567be | [
"BSD-3-Clause"
] | 4 | 2015-09-28T10:07:39.000Z | 2019-10-18T20:14:07.000Z | ionyweb/plugin_app/plugin_video/viewers/dailymotion.py | makinacorpus/ionyweb | 2f18e3dc1fdc86c7e19bae3778e67e28a37567be | [
"BSD-3-Clause"
] | 1 | 2021-03-19T21:41:33.000Z | 2021-03-19T21:41:33.000Z | ionyweb/plugin_app/plugin_video/viewers/dailymotion.py | makinacorpus/ionyweb | 2f18e3dc1fdc86c7e19bae3778e67e28a37567be | [
"BSD-3-Clause"
] | 1 | 2017-10-12T09:25:19.000Z | 2017-10-12T09:25:19.000Z | # -*- coding: utf-8 -*-
from django.utils.safestring import mark_safe
from ionyweb.plugin_app.plugin_video.viewers.base import BaseViewer
import re
class DailymotionViewer(BaseViewer):
@staticmethod
def is_competent_for_url(url):
"""
Return true for :
- http://www.dailymotion.com/... | 33.821429 | 106 | 0.626188 | 117 | 947 | 4.940171 | 0.581197 | 0.048443 | 0.124567 | 0.145329 | 0.155709 | 0.110727 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.223865 | 947 | 27 | 107 | 35.074074 | 0.757823 | 0.182682 | 0 | 0.125 | 0 | 0.0625 | 0.374659 | 0.02861 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c714910b1b947968cd07e174c0b44105a7c6f7e6 | 471 | py | Python | rider/urls.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | null | null | null | rider/urls.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | 5 | 2020-02-12T00:43:34.000Z | 2021-06-10T20:18:42.000Z | rider/urls.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views as rider_views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^home/(\d+)', rider_views.home, name='rider_home'),
url(r'^edit-profile/(\d+)', rider_views.edit_profile, name='edit_riderprofile'),
]
# confi... | 29.4375 | 84 | 0.751592 | 70 | 471 | 4.914286 | 0.442857 | 0.087209 | 0.122093 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125265 | 471 | 15 | 85 | 31.4 | 0.834951 | 0.116773 | 0 | 0 | 0 | 0 | 0.137681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c714e96c1775ad1bf429aee556c0c907e3ea2a69 | 2,619 | py | Python | server side/messager.py | lehtolav/distributed-face-recognition | 27c7ba789cb7f449bc6f0d1f4412eed52ced0648 | [
"MIT"
] | null | null | null | server side/messager.py | lehtolav/distributed-face-recognition | 27c7ba789cb7f449bc6f0d1f4412eed52ced0648 | [
"MIT"
] | null | null | null | server side/messager.py | lehtolav/distributed-face-recognition | 27c7ba789cb7f449bc6f0d1f4412eed52ced0648 | [
"MIT"
] | null | null | null | # Trades messages with a remote host/client
# Essentially provides a layer to transform generic socket datastreams
# into messages (strings) with messagetypes
# Messagetype will be used to invoke a registered callback for that type
# with the message content as its argument
import socket
import select
import struct
m... | 28.467391 | 76 | 0.72585 | 359 | 2,619 | 5.233983 | 0.350975 | 0.040979 | 0.027674 | 0.042576 | 0.178819 | 0.178819 | 0.178819 | 0.116019 | 0.075572 | 0.075572 | 0 | 0.003675 | 0.168767 | 2,619 | 91 | 77 | 28.78022 | 0.85944 | 0.189003 | 0 | 0.217391 | 0 | 0 | 0.02035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028986 | 0.043478 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7163ee2d3f54d79a794b996647754d5ad7161f1 | 801 | py | Python | Lib/pagebot/contributions/filibuster/content/classified.py | bghryct/PageBot | 394150c0fd399f02faec28f4576046882f4d7d39 | [
"MIT"
] | 68 | 2018-10-22T22:42:58.000Z | 2022-03-19T11:07:31.000Z | Lib/pagebot/contributions/filibuster/content/classified.py | TypeNetwork/PageBot | 394150c0fd399f02faec28f4576046882f4d7d39 | [
"MIT"
] | 97 | 2017-07-10T23:49:30.000Z | 2018-10-03T08:17:55.000Z | Lib/pagebot/contributions/filibuster/content/classified.py | TypeNetwork/PageBot | 394150c0fd399f02faec28f4576046882f4d7d39 | [
"MIT"
] | 9 | 2017-07-11T09:59:00.000Z | 2018-09-12T11:59:30.000Z | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
#
"""
Legal content, should offer a lot of fun to write, this is not used so far
"""
__version__ = '4.0'
content = {
'classified_headline':(
'Commercial Rentals', 'Business Opportunities', 'Bed & Breakfast', 'Year Round Rentals',
'Winter Ren... | 38.142857 | 116 | 0.616729 | 86 | 801 | 5.686047 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006421 | 0.222222 | 801 | 20 | 117 | 40.05 | 0.778491 | 0.147316 | 0 | 0 | 0 | 0 | 0.653789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c718266244bffd4db0166ae23b37a41ba8713cd6 | 2,200 | py | Python | vendor/packages/amqp/demo/amqp_clock.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | vendor/packages/amqp/demo/amqp_clock.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | 1 | 2021-12-13T20:55:07.000Z | 2021-12-13T20:55:07.000Z | vendor/packages/amqp/demo/amqp_clock.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
AMQP Clock
Fires off simple messages at one-minute intervals to a topic
exchange named 'clock', with the topic of the message being
the local time as 'year.month.date.dow.hour.minute',
for example: '2007.11.26.1.12.33', where the dow (day of week)
is 0 for Sunday, 1 for Monday, and so on (sim... | 27.848101 | 74 | 0.645 | 305 | 2,200 | 4.570492 | 0.455738 | 0.060258 | 0.043042 | 0.037303 | 0.058824 | 0.058824 | 0.058824 | 0 | 0 | 0 | 0 | 0.0172 | 0.233636 | 2,200 | 78 | 75 | 28.205128 | 0.809609 | 0.304545 | 0 | 0.234043 | 0 | 0 | 0.209103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.06383 | 0.085106 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c71ad88daee5b47407a5fa78f56abb9aa1e2f73a | 457 | py | Python | 5array/tuple.py | suifengqjn/python_study | e51df63a0c4e2bd85ff68380d2757684540f8e01 | [
"Apache-2.0"
] | null | null | null | 5array/tuple.py | suifengqjn/python_study | e51df63a0c4e2bd85ff68380d2757684540f8e01 | [
"Apache-2.0"
] | null | null | null | 5array/tuple.py | suifengqjn/python_study | e51df63a0c4e2bd85ff68380d2757684540f8e01 | [
"Apache-2.0"
] | null | null | null |
# Python 的元组与列表类似,不同之处在于元组的元素不能修改。
#
# 元组使用小括号,列表使用方括号。
#
# 元组创建很简单,只需要在括号中添加元素,并使用逗号隔开即可。
tup1 = ('Google', 'Runoob', 1997, 2000)
tup2 = (1, 2, 3, 4, 5 )
tup3 = "a", "b", "c", "d"
print(tup1)
print(tup2)
print(tup3)
print(tup1[2:])
#空元组
tup4 = ()
print(tup4)
#元组中只包含一个元素时,需要在元素后面添加逗号,否则括号会被当作运算符使用
tup5 = (5... | 11.425 | 39 | 0.628009 | 64 | 457 | 4.484375 | 0.625 | 0.083624 | 0.111498 | 0.139373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102094 | 0.164114 | 457 | 39 | 40 | 11.717949 | 0.649215 | 0.280088 | 0 | 0 | 0 | 0 | 0.088328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
c71c52dd7148d1abd842f6acf10a3f9e5816e395 | 497 | py | Python | settings/fonts.py | king-anduin/moorhuhn-extreme | 410d0bf5acb6c85e8c2f25394e4c18f3000504a0 | [
"CC-BY-4.0"
] | null | null | null | settings/fonts.py | king-anduin/moorhuhn-extreme | 410d0bf5acb6c85e8c2f25394e4c18f3000504a0 | [
"CC-BY-4.0"
] | null | null | null | settings/fonts.py | king-anduin/moorhuhn-extreme | 410d0bf5acb6c85e8c2f25394e4c18f3000504a0 | [
"CC-BY-4.0"
] | null | null | null | import pygame as pg
import os
from settings.settings import *
class Fonts:
def __init__(self):
self.game_folder = os.path.dirname(__file__)
self.font_folder = os.path.join(self.game_folder, '../fonts')
self.font_text = pg.font.Font(os.path.join(
self.font_folder, 'comicsansms3.... | 29.235294 | 69 | 0.661972 | 69 | 497 | 4.565217 | 0.507246 | 0.101587 | 0.088889 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.227364 | 497 | 16 | 70 | 31.0625 | 0.8125 | 0.080483 | 0 | 0 | 0 | 0 | 0.052747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c71d6351f9d4c4cb5101a8f32b6656df8de5c6c0 | 1,754 | py | Python | mountain_high.py | WattZhang/mountain_high | 78d3279d358e24cc94a4ef209b768f11c00f8362 | [
"MIT"
] | null | null | null | mountain_high.py | WattZhang/mountain_high | 78d3279d358e24cc94a4ef209b768f11c00f8362 | [
"MIT"
] | null | null | null | mountain_high.py | WattZhang/mountain_high | 78d3279d358e24cc94a4ef209b768f11c00f8362 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
def mountain_find(num_data):
# 单数字区间,传入的num_data为data的数组索引号
left_len = -2 # 设-2为NULL
right_len = -2
left_i = -2
right_i = -2
# 左区间长度判断
for left_i in xrange(1, num_data + 1):
if data[num_data - left_i + 1] > data[num_data - left_i]... | 29.728814 | 80 | 0.587229 | 272 | 1,754 | 3.474265 | 0.205882 | 0.111111 | 0.088889 | 0.059259 | 0.385185 | 0.142857 | 0.120635 | 0.074074 | 0.074074 | 0 | 0 | 0.023962 | 0.286203 | 1,754 | 58 | 81 | 30.241379 | 0.730831 | 0.082098 | 0 | 0.170732 | 0 | 0 | 0.092917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c71ecfaf634d9453f6e2b36157bfba5ddd10e338 | 438 | py | Python | aula21.py | romulorm/cev-python | b5c6844956c131a9e4e02355459c218739ebf8c5 | [
"MIT"
] | null | null | null | aula21.py | romulorm/cev-python | b5c6844956c131a9e4e02355459c218739ebf8c5 | [
"MIT"
] | null | null | null | aula21.py | romulorm/cev-python | b5c6844956c131a9e4e02355459c218739ebf8c5 | [
"MIT"
] | null | null | null | def somar(a, b, c):
s = a + b + c
return s
def fatorial(n):
f = 1
for c in range(n, 0, -1):
f *= c
return f
# Programa Principal
n1 = int(input('Digite um número: '))
n2 = int(input('Digite outro número: '))
n3 = int(input('Digite o último número: '))
print('A soma dos números é {}'.form... | 20.857143 | 58 | 0.577626 | 74 | 438 | 3.418919 | 0.486486 | 0.126482 | 0.221344 | 0.126482 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.239726 | 438 | 20 | 59 | 21.9 | 0.723724 | 0.041096 | 0 | 0 | 0 | 0 | 0.299043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7200bcb417e07d513ac7e8df4fc934dbe322d36 | 325 | py | Python | rpy/functions/pbcopy.py | riccardodivirgilio/rpy | 95682fbd25b55a6ea8db36d9ebfb54ce64380bc1 | [
"MIT"
] | null | null | null | rpy/functions/pbcopy.py | riccardodivirgilio/rpy | 95682fbd25b55a6ea8db36d9ebfb54ce64380bc1 | [
"MIT"
] | null | null | null | rpy/functions/pbcopy.py | riccardodivirgilio/rpy | 95682fbd25b55a6ea8db36d9ebfb54ce64380bc1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import subprocess
from rpy.functions.encoding import force_bytes
def pbcopy(text):
p = subprocess.Popen(['pbcopy'], stdin=subprocess.PIPE)
p.stdin.write(force_bytes(text))
p.stdin.close()
retcode = p.wa... | 21.666667 | 72 | 0.723077 | 43 | 325 | 5.255814 | 0.651163 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.150769 | 325 | 14 | 73 | 23.214286 | 0.815217 | 0.064615 | 0 | 0 | 0 | 0 | 0.019868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c7220a10d274ab89243cd5adb0b6e0dc0fa431eb | 15,590 | py | Python | testing_tool/my_tool/label_suggestion.py | george1459/ICSE2022_158 | f8bb797fc003f11485d3552f81cc7b8ba8a22b9b | [
"BSD-2-Clause"
] | null | null | null | testing_tool/my_tool/label_suggestion.py | george1459/ICSE2022_158 | f8bb797fc003f11485d3552f81cc7b8ba8a22b9b | [
"BSD-2-Clause"
] | null | null | null | testing_tool/my_tool/label_suggestion.py | george1459/ICSE2022_158 | f8bb797fc003f11485d3552f81cc7b8ba8a22b9b | [
"BSD-2-Clause"
] | null | null | null | import io, os
import json
from collections import defaultdict
import requests
from bs4 import BeautifulSoup
import random
from google.cloud import vision
from google.cloud import language
from global_vars import *
dir_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "reverse_API")
LABEL_SRC = os.pa... | 35.033708 | 389 | 0.682232 | 2,228 | 15,590 | 4.558797 | 0.133303 | 0.02678 | 0.023629 | 0.009845 | 0.558433 | 0.527715 | 0.480654 | 0.457222 | 0.440681 | 0.417446 | 0 | 0.011564 | 0.184606 | 15,590 | 444 | 390 | 35.112613 | 0.786973 | 0.192239 | 0 | 0.460366 | 0 | 0.009146 | 0.08503 | 0.011816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051829 | false | 0.106707 | 0.030488 | 0 | 0.155488 | 0.009146 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c722923a220c7032176bbc1adbba0ce04cdffb50 | 1,853 | py | Python | storage.py | eybisi/theFS | 5ba58fb0214b9da6d99d54d8875159702c10ce3f | [
"MIT"
] | null | null | null | storage.py | eybisi/theFS | 5ba58fb0214b9da6d99d54d8875159702c10ce3f | [
"MIT"
] | null | null | null | storage.py | eybisi/theFS | 5ba58fb0214b9da6d99d54d8875159702c10ce3f | [
"MIT"
] | null | null | null | import rpyc
import uuid
import os
from rpyc.utils.server import ThreadedServer
DATA_DIR = "/tmp/storage/"
class StorageService(rpyc.Service):
# exposed classes & methods
ALIAES = ["storage"]
def on_connect(self,conn):
print("[+] Client Connected {}".format(conn._channel.stream.sock.getpeername())... | 36.333333 | 91 | 0.576363 | 218 | 1,853 | 4.770642 | 0.348624 | 0.060577 | 0.057692 | 0.080769 | 0.111538 | 0.073077 | 0 | 0 | 0 | 0 | 0 | 0.008416 | 0.294657 | 1,853 | 50 | 92 | 37.06 | 0.787299 | 0.013492 | 0 | 0 | 0 | 0 | 0.103505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7307dd4449e4a46386287c92da608e2421fce4f | 693 | py | Python | lib/inputstreamhelper/unicodes.py | tmihai20/script.module.inputstreamhelper | 25171444b48d85a1559ea5d2a8337f5ae8e66836 | [
"MIT"
] | null | null | null | lib/inputstreamhelper/unicodes.py | tmihai20/script.module.inputstreamhelper | 25171444b48d85a1559ea5d2a8337f5ae8e66836 | [
"MIT"
] | null | null | null | lib/inputstreamhelper/unicodes.py | tmihai20/script.module.inputstreamhelper | 25171444b48d85a1559ea5d2a8337f5ae8e66836 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# MIT License (see LICENSE.txt or https://opensource.org/licenses/MIT)
"""Implements Unicode Helper functions"""
from __future__ import absolute_import, division, unicode_literals
def to_unicode(text, encoding='utf-8', errors='strict'):
"""Force text to unicode"""
if isinstance(text, b... | 34.65 | 135 | 0.704185 | 90 | 693 | 5.322222 | 0.544444 | 0.083507 | 0.079332 | 0.091858 | 0.167015 | 0.167015 | 0.167015 | 0.167015 | 0 | 0 | 0 | 0.01209 | 0.164502 | 693 | 19 | 136 | 36.473684 | 0.815199 | 0.343434 | 0 | 0.2 | 0 | 0 | 0.050343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c73de48ef00c04af4c515de8406820d0e08c41b8 | 12,646 | py | Python | app/views.py | ylqf/ojbk_jiexi | 48232d4d5226d0ec0dcd9b390a6f8371b8eb8b89 | [
"MIT"
] | null | null | null | app/views.py | ylqf/ojbk_jiexi | 48232d4d5226d0ec0dcd9b390a6f8371b8eb8b89 | [
"MIT"
] | 1 | 2018-06-19T07:29:21.000Z | 2018-06-19T07:29:21.000Z | app/views.py | mayunbaba2/ojbk_jiexi | 565ff49ec242e42be57560e89b14aa753ec1603b | [
"MIT"
] | null | null | null | #-*- coding=utf-8 -*-
from app import app, db
from app.models import *
from flask import render_template, redirect, request, url_for, flash, session, jsonify, make_response, current_app
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import subprocess
import os
from datetime import datetime
#from .tumbl... | 39.395639 | 335 | 0.518029 | 1,377 | 12,646 | 4.705882 | 0.250545 | 0.02608 | 0.033951 | 0.025926 | 0.409105 | 0.381636 | 0.370525 | 0.354784 | 0.344907 | 0.344907 | 0 | 0.016981 | 0.334098 | 12,646 | 320 | 336 | 39.51875 | 0.752523 | 0.015578 | 0 | 0.480836 | 0 | 0.017422 | 0.205281 | 0.033168 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003484 | 0.073171 | null | null | 0.031359 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c73e5a81c70e5336c1655bf08e1d18cf6c1b5a12 | 588 | py | Python | Module3/parallel_coordinates.py | KBtooeasy/python-for-data-science | a1539070d5a5c45dbd4c80ed3a0d09c81854f37e | [
"MIT"
] | 1 | 2018-05-29T07:57:34.000Z | 2018-05-29T07:57:34.000Z | Module3/parallel_coordinates.py | KBtooeasy/python-for-data-science | a1539070d5a5c45dbd4c80ed3a0d09c81854f37e | [
"MIT"
] | null | null | null | Module3/parallel_coordinates.py | KBtooeasy/python-for-data-science | a1539070d5a5c45dbd4c80ed3a0d09c81854f37e | [
"MIT"
] | null | null | null | from sklearn.datasets import load_iris
from pandas.tools.plotting import parallel_coordinates
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
# Look pretty...
matplotlib.style.use('ggplot')
# If the above line throws an error, use plt.style.use('ggplot') instead
# Load up SKLearn's Iris Dataset... | 26.727273 | 72 | 0.778912 | 90 | 588 | 5 | 0.533333 | 0.126667 | 0.062222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120748 | 588 | 21 | 73 | 28 | 0.870406 | 0.294218 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c73e6f8cb91dc2beb8b288028f7f6d30e54f2b42 | 2,689 | py | Python | autoflow/opt/config_generators/density_based.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | 49 | 2020-04-16T11:17:28.000Z | 2020-05-06T01:32:44.000Z | autoflow/opt/config_generators/density_based.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | null | null | null | autoflow/opt/config_generators/density_based.py | auto-flow/autoflow | f5903424ad8694d57741a0bd6dfeaba320ea6517 | [
"BSD-3-Clause"
] | 3 | 2020-04-17T00:53:24.000Z | 2020-04-23T03:04:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : qichun tang
# @Contact : tqichun@gmail.com
from .bocg import BayesianOptimizationConfigGenerator
class TPE(BayesianOptimizationConfigGenerator):
epm_cls_name = "TPE"
def __init__(
self, config_space, budgets, random_state=None, initial... | 37.347222 | 93 | 0.646709 | 302 | 2,689 | 5.261589 | 0.251656 | 0.067967 | 0.083071 | 0.060415 | 0.692259 | 0.692259 | 0.692259 | 0.692259 | 0.692259 | 0.638137 | 0 | 0.012352 | 0.277427 | 2,689 | 71 | 94 | 37.873239 | 0.805455 | 0.047229 | 0 | 0.610169 | 0 | 0 | 0.046166 | 0.017214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.016949 | 0 | 0.118644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c740174117e5e1f78c18749f4e4275ebbbc1b019 | 7,025 | py | Python | boto/glacier/job.py | adastreamer/boto | ce472cbbcffd06298fdd0c980d5bfcdcee875498 | [
"MIT"
] | 1 | 2019-07-29T02:53:51.000Z | 2019-07-29T02:53:51.000Z | boto/glacier/job.py | adastreamer/boto | ce472cbbcffd06298fdd0c980d5bfcdcee875498 | [
"MIT"
] | 1 | 2021-09-11T14:30:32.000Z | 2021-09-11T14:30:32.000Z | boto/glacier/job.py | adastreamer/boto | ce472cbbcffd06298fdd0c980d5bfcdcee875498 | [
"MIT"
] | 2 | 2016-12-19T02:27:46.000Z | 2019-07-29T02:53:54.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2012 Thomas Parslow http://almostobsolete.net/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation th... | 45.915033 | 81 | 0.60242 | 812 | 7,025 | 5.060345 | 0.325123 | 0.036992 | 0.027257 | 0.010952 | 0.137746 | 0.137746 | 0.137746 | 0.137746 | 0.115843 | 0.098808 | 0 | 0.005722 | 0.328256 | 7,025 | 152 | 82 | 46.217105 | 0.865014 | 0.171957 | 0 | 0.181818 | 0 | 0 | 0.133926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064935 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c740b5206be0c629a5f227f469855ddd9480d4a1 | 5,148 | py | Python | alipay/aop/api/domain/AlipayDataAiserviceSmartpriceGetModel.py | antopen/alipay-sdk-python | d32a73c9f67e55f0aed6781741cf4098890168cc | [
"Apache-2.0"
] | 32 | 2018-05-24T08:40:15.000Z | 2019-04-04T20:54:55.000Z | alipay/aop/api/domain/AlipayDataAiserviceSmartpriceGetModel.py | antopen/alipay-sdk-python | d32a73c9f67e55f0aed6781741cf4098890168cc | [
"Apache-2.0"
] | 7 | 2018-05-24T08:42:59.000Z | 2020-09-06T23:18:46.000Z | alipay/aop/api/domain/AlipayDataAiserviceSmartpriceGetModel.py | antopen/alipay-sdk-python | d32a73c9f67e55f0aed6781741cf4098890168cc | [
"Apache-2.0"
] | 13 | 2018-04-25T11:27:58.000Z | 2021-03-15T12:22:21.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayDataAiserviceSmartpriceGetModel(object):
def __init__(self):
self._base_price_cent = None
self._channel = None
self._city_code = None
self._default_promo_pri... | 31.975155 | 99 | 0.606449 | 667 | 5,148 | 4.304348 | 0.074963 | 0.188088 | 0.079415 | 0.109718 | 0.517241 | 0.297806 | 0.178683 | 0.12992 | 0.036224 | 0.036224 | 0 | 0.000278 | 0.300311 | 5,148 | 160 | 100 | 32.175 | 0.79678 | 0.008159 | 0 | 0.129496 | 0 | 0 | 0.107017 | 0.018816 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014388 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c74162e44cceb6ef1f894a610f8368fb041326e7 | 759 | py | Python | setup.py | tommz9/ece312-clicker | 8c5d2adcb41951acdcd81d41a244bf8066b417dd | [
"MIT"
] | 1 | 2018-02-28T01:50:29.000Z | 2018-02-28T01:50:29.000Z | setup.py | tommz9/ece312-clicker | 8c5d2adcb41951acdcd81d41a244bf8066b417dd | [
"MIT"
] | null | null | null | setup.py | tommz9/ece312-clicker | 8c5d2adcb41951acdcd81d41a244bf8066b417dd | [
"MIT"
] | null | null | null | """Setup file.
Tomas Barton, 2018
"""
import setuptools
setuptools.setup(
name="ece312_clicker",
version="0.1.0",
url="https://github.com/tommz9/ece312-clicker",
author="Tomas Barton",
author_email="tommz9@gmail.com",
description="A simple clicker server for ECE312.",
long_description=o... | 23 | 79 | 0.628458 | 85 | 759 | 5.541176 | 0.670588 | 0.121019 | 0.159236 | 0.110403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038983 | 0.222661 | 759 | 32 | 80 | 23.71875 | 0.759322 | 0.13307 | 0 | 0.095238 | 0 | 0 | 0.432308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7432e792499d2709c4c5ea5401c7ba59ca41469 | 1,071 | py | Python | src/SNGAN/count.py | xxchenxx/GAN-LTH | 71a25098656c4c990835288e6f763f863d227c10 | [
"MIT"
] | 75 | 2021-02-25T20:04:53.000Z | 2022-03-12T12:12:58.000Z | src/SNGAN/count.py | harrywuhust2022/GAN-LTH | f76dfde41c246c8d885612fae58dd1e19c4e76ea | [
"MIT"
] | 1 | 2021-08-08T13:12:27.000Z | 2021-08-08T13:12:27.000Z | src/SNGAN/count.py | harrywuhust2022/GAN-LTH | f76dfde41c246c8d885612fae58dd1e19c4e76ea | [
"MIT"
] | 7 | 2021-03-02T18:47:45.000Z | 2022-01-26T13:49:25.000Z | import torch
import models
import cfg
import numpy as np
from utils.utils import set_log_dir, save_checkpoint, create_logger, pruning_generate, see_remain_rate, rewind_weight, see_remain_rate_orig
args = cfg.parse_args()
gen_net = eval('models.sngan_cifar10.Generator')(args=args).cuda()
pruning_generate(gen_net, 1-0.8*... | 34.548387 | 139 | 0.676004 | 168 | 1,071 | 4.053571 | 0.357143 | 0.092511 | 0.057269 | 0.096916 | 0.132159 | 0.091043 | 0 | 0 | 0 | 0 | 0 | 0.022779 | 0.180205 | 1,071 | 30 | 140 | 35.7 | 0.752847 | 0 | 0 | 0 | 1 | 0 | 0.070962 | 0.028011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.172414 | 0 | 0.172414 | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7457325a3db75a91ca9c48a56373e38116d02fe | 260 | py | Python | Python-Regular-Expressions/emails.py | sagarsaliya/code_snippets | 692ccae54a47a16c8286d91b08707150c20531fc | [
"MIT"
] | 9,588 | 2017-03-21T16:07:40.000Z | 2022-03-31T08:43:39.000Z | Python-Regular-Expressions/emails.py | JaredDelora/code_snippets | ed3c42ff06bb31da1f9f00689fa76d90babddc97 | [
"MIT"
] | 135 | 2017-04-29T15:28:11.000Z | 2022-03-27T19:20:49.000Z | Python-Regular-Expressions/emails.py | JaredDelora/code_snippets | ed3c42ff06bb31da1f9f00689fa76d90babddc97 | [
"MIT"
] | 20,939 | 2017-03-27T14:42:56.000Z | 2022-03-31T16:41:14.000Z | import re
emails = '''
CoreyMSchafer@gmail.com
corey.schafer@university.edu
corey-321-schafer@my-work.net
'''
pattern = re.compile(r'[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+')
matches = pattern.finditer(emails)
for match in matches:
print(match)
| 17.333333 | 71 | 0.673077 | 42 | 260 | 4.142857 | 0.642857 | 0.051724 | 0.086207 | 0.103448 | 0.103448 | 0.103448 | 0.103448 | 0.103448 | 0 | 0 | 0 | 0.038793 | 0.107692 | 260 | 14 | 72 | 18.571429 | 0.711207 | 0 | 0 | 0 | 0 | 0.1 | 0.5 | 0.484615 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7469e620356160048c8445771aaf4895e9e8403 | 16,429 | py | Python | edm_web1/script/stat_log_sync.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | edm_web1/script/stat_log_sync.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | edm_web1/script/stat_log_sync.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
"""
公共处理程序
"""
import subprocess
from gevent import monkey
monkey.patch_all()
import gevent
import gevent.pool
import os
import re
import sys
import time
import traceback
from collections import defaultdict
import django
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__), '../.... | 35.255365 | 159 | 0.599245 | 2,245 | 16,429 | 4.088641 | 0.129621 | 0.044667 | 0.034753 | 0.039329 | 0.556052 | 0.489705 | 0.435124 | 0.409522 | 0.345354 | 0.327378 | 0 | 0.020013 | 0.251811 | 16,429 | 466 | 160 | 35.255365 | 0.726733 | 0.021547 | 0 | 0.353261 | 0 | 0.01087 | 0.371095 | 0.02511 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059783 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c74c0d71b3c2308f658157ed61a53969ad4dfbd7 | 1,750 | py | Python | tools/filters/sorter.py | thata/galaxy-dist | 6c3ffa064faf0c500f5594ed7b58ed839b00f337 | [
"CC-BY-3.0"
] | 2 | 2016-02-23T00:09:14.000Z | 2019-02-11T07:48:44.000Z | tools/filters/sorter.py | thata/galaxy-dist | 6c3ffa064faf0c500f5594ed7b58ed839b00f337 | [
"CC-BY-3.0"
] | null | null | null | tools/filters/sorter.py | thata/galaxy-dist | 6c3ffa064faf0c500f5594ed7b58ed839b00f337 | [
"CC-BY-3.0"
] | 6 | 2015-05-27T13:09:50.000Z | 2019-02-11T07:48:46.000Z | """
Sorts tabular data on one or more columns.
usage: %prog [options]
-i, --input=i: Tabular file to be sorted
-o, --out_file1=o: Sorted output file
-c, --column=c: First column to sort on
-s, --style=s: Sort style (numerical or alphabetical)
-r, --order=r: Order (ASC or DESC)
usage: %prog input out_fi... | 35 | 110 | 0.612 | 257 | 1,750 | 4.019455 | 0.381323 | 0.061955 | 0.108422 | 0.065828 | 0.143272 | 0.090997 | 0 | 0 | 0 | 0 | 0 | 0.008076 | 0.221714 | 1,750 | 49 | 111 | 35.714286 | 0.750367 | 0.017714 | 0 | 0.133333 | 0 | 0 | 0.102811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c74d2affffdabf24ca7890826c0e67cc148f3fe4 | 527 | py | Python | docs/cookbook/registry/find_value.py | tjguk/winsys | 346a5bc0ad74f3f70b1099e714b544a6f008b72c | [
"MIT"
] | 51 | 2015-01-14T09:23:48.000Z | 2021-11-08T12:53:54.000Z | docs/cookbook/registry/find_value.py | tjguk/winsys | 346a5bc0ad74f3f70b1099e714b544a6f008b72c | [
"MIT"
] | 2 | 2019-05-30T12:34:40.000Z | 2020-06-13T20:00:55.000Z | docs/cookbook/registry/find_value.py | tjguk/winsys | 346a5bc0ad74f3f70b1099e714b544a6f008b72c | [
"MIT"
] | 15 | 2015-04-21T19:48:48.000Z | 2020-07-29T19:30:43.000Z | from winsys import dialogs, registry
root, term = dialogs.dialog(
"Search the Registry",
("Root", registry.REGISTRY_HIVE.keys()),
("Term", "")
)
root = registry.registry(root)
term = term.lower()
for key, subkeys, values in root.walk(ignore_access_errors=True):
for name, value in values:
... | 29.277778 | 66 | 0.603416 | 64 | 527 | 4.921875 | 0.53125 | 0.114286 | 0.101587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007712 | 0.26186 | 527 | 17 | 67 | 31 | 0.802057 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c75963bba2675f0da4edc0b1c921c3af2d033210 | 335 | py | Python | backend/device/migrations/0009_remove_device_room.py | open-home-iot/hint | b674f83ee61d7cc653acec15b92b98618f8e23b5 | [
"MIT"
] | null | null | null | backend/device/migrations/0009_remove_device_room.py | open-home-iot/hint | b674f83ee61d7cc653acec15b92b98618f8e23b5 | [
"MIT"
] | 3 | 2020-12-28T23:31:47.000Z | 2021-04-18T09:30:43.000Z | backend/device/migrations/0009_remove_device_room.py | megacorpincorporated/hint | 136700c743a647cc9bf35548a7baeaac238e3b1f | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-12-26 23:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('device', '0008_devicestate_devicestategroup'),
]
operations = [
migrations.RemoveField(
model_name='device',
name='room',
... | 18.611111 | 56 | 0.6 | 34 | 335 | 5.823529 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079832 | 0.289552 | 335 | 17 | 57 | 19.705882 | 0.752101 | 0.134328 | 0 | 0 | 1 | 0 | 0.170139 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c759f70f985b1fa1032a77803b548ea52bade353 | 3,733 | py | Python | services/web/server/src/simcore_service_webserver/exporter/formatters/sds/xlsx/styling_components.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 25 | 2018-04-13T12:44:12.000Z | 2022-03-12T15:01:17.000Z | services/web/server/src/simcore_service_webserver/exporter/formatters/sds/xlsx/styling_components.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 2,553 | 2018-01-18T17:11:55.000Z | 2022-03-31T16:26:40.000Z | services/web/server/src/simcore_service_webserver/exporter/formatters/sds/xlsx/styling_components.py | mrnicegyu11/osparc-simcore | b6fa6c245dbfbc18cc74a387111a52de9b05d1f4 | [
"MIT"
] | 20 | 2018-01-18T19:45:33.000Z | 2022-03-29T07:08:47.000Z | from typing import List
from openpyxl.styles import Font, PatternFill, Border, Side, Alignment
from openpyxl.comments import Comment as PyXLComment
from openpyxl.styles.borders import BORDER_THIN, BORDER_MEDIUM
from .xlsx_base import BaseXLSXCellData
COLOR_BLACK = "FF000000"
COLOR_GRAY = "FFC9C9C9"
COLOR_GRAY_BACKG... | 29.393701 | 85 | 0.706134 | 433 | 3,733 | 5.771363 | 0.258661 | 0.084034 | 0.081633 | 0.067227 | 0.312925 | 0.219288 | 0.219288 | 0.191277 | 0.088035 | 0.048019 | 0 | 0.011862 | 0.186981 | 3,733 | 127 | 86 | 29.393701 | 0.811532 | 0.047683 | 0 | 0.023256 | 0 | 0 | 0.057426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.05814 | 0.011628 | 0.511628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c76291a947fcd801ad51eb32ddb47272c630d9d8 | 1,006 | py | Python | app/serializers.py | xyx-smu/MIS_server | 066a3df061bdf7aa5d771530666eff3eb9824d1b | [
"Apache-2.0"
] | null | null | null | app/serializers.py | xyx-smu/MIS_server | 066a3df061bdf7aa5d771530666eff3eb9824d1b | [
"Apache-2.0"
] | null | null | null | app/serializers.py | xyx-smu/MIS_server | 066a3df061bdf7aa5d771530666eff3eb9824d1b | [
"Apache-2.0"
] | null | null | null | from jwt import decode
from rest_framework import serializers
from rest_framework_simplejwt.serializers import TokenObtainPairSerializer, TokenVerifySerializer
from MIS_server import settings
from app.models import EmailVerifyRecord
class MyTokenObtainPairSerializer(TokenObtainPairSerializer):
def validate(self... | 28.742857 | 97 | 0.699801 | 105 | 1,006 | 6.580952 | 0.438095 | 0.04631 | 0.049204 | 0.057887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.206759 | 1,006 | 34 | 98 | 29.588235 | 0.862155 | 0.092445 | 0 | 0.105263 | 0 | 0 | 0.053837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.263158 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c765a9f4eaa5cb2ecc7a8667054b1b3954783e73 | 490 | py | Python | 347. Top K Frequent Elements/347. Top K Frequent Elements.py | JawadAsif/leetcode | 13046653d8203ee3d8b524b7402f59c4e2bec7d0 | [
"MIT"
] | null | null | null | 347. Top K Frequent Elements/347. Top K Frequent Elements.py | JawadAsif/leetcode | 13046653d8203ee3d8b524b7402f59c4e2bec7d0 | [
"MIT"
] | null | null | null | 347. Top K Frequent Elements/347. Top K Frequent Elements.py | JawadAsif/leetcode | 13046653d8203ee3d8b524b7402f59c4e2bec7d0 | [
"MIT"
] | null | null | null | from collections import Counter
class Solution:
def topKFrequent(self, nums: List[int], k: int) -> List[int]:
# O(1) time
if k == len(nums):
return nums
# 1. build hash map : character and how often it appears
# O(N) time
count = Counter(nums)
# 2-3. bu... | 28.823529 | 65 | 0.579592 | 71 | 490 | 4 | 0.676056 | 0.049296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.322449 | 490 | 16 | 66 | 30.625 | 0.843373 | 0.344898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c76a337d0891eb1284075b2c44d8061eff679a4e | 3,461 | py | Python | allrank/config.py | kretes/allRank | 60de39d59022b1abf2993f44dc216dccec960aa8 | [
"Apache-2.0"
] | 1 | 2019-11-24T20:15:53.000Z | 2019-11-24T20:15:53.000Z | allrank/config.py | ArturTan/allRank | 60de39d59022b1abf2993f44dc216dccec960aa8 | [
"Apache-2.0"
] | null | null | null | allrank/config.py | ArturTan/allRank | 60de39d59022b1abf2993f44dc216dccec960aa8 | [
"Apache-2.0"
] | null | null | null | import json
from collections import defaultdict
from typing import Dict, List, Union
from attr import attrib, attrs
@attrs
class TransformerConfig:
N = attrib(type=int)
d_ff = attrib(type=int)
h = attrib(type=int)
positional_encoding = attrib(type=dict)
dropout = attrib(type=float)
@attrs
class... | 29.581197 | 139 | 0.666859 | 389 | 3,461 | 5.822622 | 0.293059 | 0.15894 | 0.057395 | 0.042384 | 0.125386 | 0.068874 | 0 | 0 | 0 | 0 | 0 | 0.00037 | 0.219012 | 3,461 | 116 | 140 | 29.836207 | 0.837588 | 0.006068 | 0 | 0.141304 | 0 | 0.01087 | 0.071262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032609 | false | 0.01087 | 0.043478 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c76f0aba664fca3ed75ceb9ea49e690909ae9727 | 28,344 | py | Python | Zefeng Zhang(zefengz2) HW3.py | zhangzf1998/zefengz2 | 5af405c144e904fa54e66821c8a22c85b6a66467 | [
"Unlicense"
] | null | null | null | Zefeng Zhang(zefengz2) HW3.py | zhangzf1998/zefengz2 | 5af405c144e904fa54e66821c8a22c85b6a66467 | [
"Unlicense"
] | null | null | null | Zefeng Zhang(zefengz2) HW3.py | zhangzf1998/zefengz2 | 5af405c144e904fa54e66821c8a22c85b6a66467 | [
"Unlicense"
] | null | null | null |
# coding: utf-8
# # CS 196 Spring 2017 Homework 3
# # Table of Contents
# ---
# 1. [Count Cycles](#Count-Cycles)
# 2. [Zip Dictionary](#Zip-Dictionary)
# 3. [List Intersections](#List-Intersections)
# 4. [Find Duplicates](#Find-Duplicates)
# 5. [Sum of the Product of Key and Value](#Sum-of-the-Product-of-Key-and-Va... | 35.297634 | 438 | 0.520675 | 4,277 | 28,344 | 4.455459 | 0.228665 | 0.039253 | 0.041037 | 0.058879 | 0.346138 | 0.309771 | 0.287783 | 0.279125 | 0.259446 | 0.256087 | 0 | 0.038169 | 0.2023 | 28,344 | 802 | 439 | 35.341646 | 0.609465 | 0.293678 | 0 | 0.060694 | 0 | 0.138728 | 0.656967 | 0.218275 | 0 | 0 | 0 | 0 | 0.072254 | 1 | 0.049133 | false | 0.020231 | 0.00289 | 0 | 0.075145 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7736439bdb1db1590731fa3c52b695f7e3e3379 | 10,439 | py | Python | lightconvpoint/networks/kpconv.py | StructuralNeurobiologyLab/LightConvPoint | 3f353f45e9e910fa390a74520dfd478e3e88f104 | [
"Apache-2.0"
] | 58 | 2020-04-16T16:55:15.000Z | 2022-02-27T00:36:55.000Z | lightconvpoint/networks/kpconv.py | StructuralNeurobiologyLab/LightConvPoint | 3f353f45e9e910fa390a74520dfd478e3e88f104 | [
"Apache-2.0"
] | 9 | 2020-04-18T13:04:05.000Z | 2022-03-13T02:37:44.000Z | lightconvpoint/networks/kpconv.py | StructuralNeurobiologyLab/LightConvPoint | 3f353f45e9e910fa390a74520dfd478e3e88f104 | [
"Apache-2.0"
] | 12 | 2020-04-17T04:07:19.000Z | 2022-03-10T00:38:23.000Z | import torch
import torch.nn as nn
import lightconvpoint.nn as lcp_nn
class ResnetBlock(nn.Module):
def __init__(
self,
in_channels,
out_channels,
kernel_size,
K,
ConvNet,
Search,
stride=1,
npoints=-1,
):
super().__init__()
... | 34.003257 | 87 | 0.544018 | 1,267 | 10,439 | 4.36543 | 0.12944 | 0.06328 | 0.043392 | 0.061833 | 0.716326 | 0.69463 | 0.674562 | 0.660459 | 0.660459 | 0.645634 | 0 | 0.070406 | 0.34419 | 10,439 | 306 | 88 | 34.114379 | 0.737511 | 0.087173 | 0 | 0.480349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026201 | false | 0 | 0.0131 | 0 | 0.082969 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c777437b6ed04fb3e00dfffde6808c32c5b5676d | 607 | py | Python | core/migrations/0021_auto_20160202_1950.py | jlaunonen/turska | fc6ec4e0ae50a823e931152ce8835098b96f5966 | [
"CC-BY-3.0"
] | null | null | null | core/migrations/0021_auto_20160202_1950.py | jlaunonen/turska | fc6ec4e0ae50a823e931152ce8835098b96f5966 | [
"CC-BY-3.0"
] | null | null | null | core/migrations/0021_auto_20160202_1950.py | jlaunonen/turska | fc6ec4e0ae50a823e931152ce8835098b96f5966 | [
"CC-BY-3.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-02 17:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0020_auto_20160131_2044'),
]
operations = [
migrations.AlterField(
... | 28.904762 | 212 | 0.654036 | 80 | 607 | 4.8125 | 0.7875 | 0.041558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077922 | 0.23888 | 607 | 20 | 213 | 30.35 | 0.755411 | 0.110379 | 0 | 0 | 1 | 0.076923 | 0.286778 | 0.042831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c77baa44a4369439053de02b0b883195ed75eb89 | 6,384 | py | Python | SplitUI.py | bruno-robert/SplitUI | 12ac3814adea880b5aabd7f89c9fc37e9e7f8b81 | [
"MIT"
] | 1 | 2022-03-25T01:59:08.000Z | 2022-03-25T01:59:08.000Z | SplitUI.py | bruno-robert/SplitUI | 12ac3814adea880b5aabd7f89c9fc37e9e7f8b81 | [
"MIT"
] | null | null | null | SplitUI.py | bruno-robert/SplitUI | 12ac3814adea880b5aabd7f89c9fc37e9e7f8b81 | [
"MIT"
] | null | null | null | import logging
from dataclasses import dataclass, field
from typing import TypedDict
import dearpygui.dearpygui as dpg
@dataclass
class SplitUIWidgets():
def __init__(self):
pass
main_window: int
left: int
center: int
right: int
menu_bar: int
class SplitUi:
"""
Creates a dea... | 43.726027 | 111 | 0.642387 | 855 | 6,384 | 4.440936 | 0.173099 | 0.068738 | 0.084014 | 0.137477 | 0.555702 | 0.534633 | 0.48828 | 0.48828 | 0.48828 | 0.411114 | 0 | 0.005272 | 0.286967 | 6,384 | 145 | 112 | 44.027586 | 0.828866 | 0.170269 | 0 | 0.321429 | 0 | 0 | 0.000789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059524 | false | 0.059524 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c77d34943e9fdc60dd836fb78151e67896387e28 | 31,119 | py | Python | testing/databaseTest.py | nateharms/RMG-Py | 80deaebddcbb14b7c41e232b67e1c973e0b18324 | [
"MIT"
] | 1 | 2017-12-18T18:43:22.000Z | 2017-12-18T18:43:22.000Z | testing/databaseTest.py | nateharms/RMG-Py | 80deaebddcbb14b7c41e232b67e1c973e0b18324 | [
"MIT"
] | null | null | null | testing/databaseTest.py | nateharms/RMG-Py | 80deaebddcbb14b7c41e232b67e1c973e0b18324 | [
"MIT"
] | null | null | null | """
This scripts runs tests on the database
"""
import os.path
import logging
from external.wip import work_in_progress
from rmgpy import settings
from rmgpy.data.rmg import RMGDatabase
from copy import copy, deepcopy
from rmgpy.data.base import LogicOr
from rmgpy.molecule import Group
from rmgpy.molecule.atomtype imp... | 55.569643 | 283 | 0.636107 | 3,578 | 31,119 | 5.422303 | 0.109838 | 0.037524 | 0.023504 | 0.023195 | 0.691665 | 0.656255 | 0.619092 | 0.587753 | 0.547446 | 0.527859 | 0 | 0.004307 | 0.291269 | 31,119 | 559 | 284 | 55.669052 | 0.875357 | 0.068158 | 0 | 0.544503 | 0 | 0.02356 | 0.128553 | 0 | 0 | 0 | 0 | 0 | 0.054974 | 0 | null | null | 0.002618 | 0.036649 | null | null | 0.005236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c77e01d44e0832252ff6bea7d6f835130c1c6ade | 718 | py | Python | scripts/wierd_queue.py | Mohammad-Yasfo/Smart-Robot | e79bc4f5c875cbaedf846a5a019845a8f9c90b2d | [
"MIT"
] | null | null | null | scripts/wierd_queue.py | Mohammad-Yasfo/Smart-Robot | e79bc4f5c875cbaedf846a5a019845a8f9c90b2d | [
"MIT"
] | null | null | null | scripts/wierd_queue.py | Mohammad-Yasfo/Smart-Robot | e79bc4f5c875cbaedf846a5a019845a8f9c90b2d | [
"MIT"
] | null | null | null | class WierdQueue ():
def __init__(self,len=0,top=''):
self.len=len
self.top=top
def enqueue(self,newItem):
if(self.top==newItem):
self.len+=1
else:
self.dequeue()
if(self.top==''):
self.top=newItem
self.len+=1
... | 23.16129 | 83 | 0.416435 | 89 | 718 | 3.224719 | 0.280899 | 0.069686 | 0.094077 | 0.111498 | 0.296167 | 0.191638 | 0.038328 | 0.038328 | 0.038328 | 0.038328 | 0 | 0.011416 | 0.389972 | 718 | 31 | 84 | 23.16129 | 0.643836 | 0 | 0 | 0.153846 | 0 | 0 | 0.036161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c77fbfe265fa4fb59ca3816c28a00205f0543938 | 2,118 | py | Python | app/manage.py | refraction-ray/myarxiv-app | c5850ea143915747cfd0b86ea08d77ac85cca943 | [
"MIT"
] | 2 | 2021-07-21T14:16:44.000Z | 2021-08-07T14:11:26.000Z | app/manage.py | refraction-ray/myarxiv-app | c5850ea143915747cfd0b86ea08d77ac85cca943 | [
"MIT"
] | null | null | null | app/manage.py | refraction-ray/myarxiv-app | c5850ea143915747cfd0b86ea08d77ac85cca943 | [
"MIT"
] | null | null | null | """
admin pages for database management
"""
from flask_admin import Admin, AdminIndexView, expose
from flask_admin.form import SecureForm
from flask_admin.contrib.sqla import ModelView
from flask_login import current_user
from flask import abort
from .models import (db, User, Paper, UserInfo, Favorite,
... | 27.506494 | 94 | 0.69594 | 240 | 2,118 | 5.95 | 0.375 | 0.031513 | 0.042017 | 0.077031 | 0.109244 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002934 | 0.195467 | 2,118 | 76 | 95 | 27.868421 | 0.835094 | 0.032106 | 0 | 0.115385 | 0 | 0 | 0.094025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0.038462 | 0.115385 | 0.019231 | 0.653846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c7806a0ccd5d52ac4fa7a98e2151b6c3d11791e8 | 1,102 | py | Python | shopify/mixins.py | butlertron/shopify_python_api | 78329d0656a7dcd4aad9579b28509007d05ee5dc | [
"MIT"
] | 2 | 2019-03-09T14:16:28.000Z | 2020-12-07T19:52:16.000Z | shopify/mixins.py | whitehorse3513/PythonShopify | 245b9bad3779db9190e3786bffc07044afe216c6 | [
"MIT"
] | null | null | null | shopify/mixins.py | whitehorse3513/PythonShopify | 245b9bad3779db9190e3786bffc07044afe216c6 | [
"MIT"
] | 1 | 2020-05-23T23:55:52.000Z | 2020-05-23T23:55:52.000Z | import shopify.resources
class Countable(object):
@classmethod
def count(cls, _options=None, **kwargs):
if _options is None:
_options = kwargs
return int(cls.get("count", **_options))
class Metafields(object):
def metafields(self, _options=None, **kwargs):
if _option... | 29.783784 | 112 | 0.666062 | 132 | 1,102 | 5.318182 | 0.325758 | 0.068376 | 0.07265 | 0.081197 | 0.415954 | 0.415954 | 0.415954 | 0.415954 | 0.360399 | 0.237892 | 0 | 0 | 0.229583 | 1,102 | 36 | 113 | 30.611111 | 0.826855 | 0 | 0 | 0.24 | 0 | 0 | 0.07441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.04 | 0.04 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c78279400aef7b64cb246463e07824687093c895 | 744 | py | Python | circle/migrations/0009_auto_20210708_2009.py | Acids-Bases/Marketplace | 31f42a077279d891cdb6bb86abb2b8c6e841a889 | [
"MIT"
] | null | null | null | circle/migrations/0009_auto_20210708_2009.py | Acids-Bases/Marketplace | 31f42a077279d891cdb6bb86abb2b8c6e841a889 | [
"MIT"
] | null | null | null | circle/migrations/0009_auto_20210708_2009.py | Acids-Bases/Marketplace | 31f42a077279d891cdb6bb86abb2b8c6e841a889 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-08 20:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('circle', '0008_auto_20210708_2008'),
]
operations = [
migrations.AlterField(
model_name='messag... | 29.76 | 136 | 0.635753 | 84 | 744 | 5.52381 | 0.52381 | 0.068966 | 0.090517 | 0.142241 | 0.50431 | 0.50431 | 0.331897 | 0.331897 | 0.331897 | 0.331897 | 0 | 0.058099 | 0.236559 | 744 | 24 | 137 | 31 | 0.758803 | 0.060484 | 0 | 0.333333 | 1 | 0 | 0.134864 | 0.032999 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7853180b340601b7ecd2f3c520a8fe6680afaf4 | 580 | py | Python | apps/goods/migrations/0017_auto_20181022_1750.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 12 | 2020-02-01T01:52:01.000Z | 2021-04-28T15:06:43.000Z | apps/goods/migrations/0017_auto_20181022_1750.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 5 | 2020-02-06T08:07:58.000Z | 2020-06-02T13:03:45.000Z | apps/goods/migrations/0017_auto_20181022_1750.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 11 | 2020-02-03T13:07:46.000Z | 2020-11-29T01:44:06.000Z | # Generated by Django 2.1.2 on 2018-10-22 09:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('goods', '0016_auto_20181022_1131'),
]
operations = [
migrations.AlterModelOptions(
name='goods',
options={'ordering'... | 25.217391 | 105 | 0.57931 | 59 | 580 | 5.559322 | 0.694915 | 0.10061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076555 | 0.27931 | 580 | 22 | 106 | 26.363636 | 0.708134 | 0.077586 | 0 | 0.125 | 1 | 0 | 0.187617 | 0.043152 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c790f67034b79353c3473a4bf6a12f84a9065e42 | 261 | py | Python | elements-of-programming-interviews/5.8-reverse-digit.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 8 | 2019-05-14T12:50:29.000Z | 2022-03-01T09:08:27.000Z | elements-of-programming-interviews/5.8-reverse-digit.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 46 | 2019-03-24T20:59:29.000Z | 2019-04-09T16:28:43.000Z | elements-of-programming-interviews/5.8-reverse-digit.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 1 | 2022-01-28T12:46:29.000Z | 2022-01-28T12:46:29.000Z | def reverse(x: int) -> int:
neg = x < 0
if neg:
x *= -1
result = 0
while x:
result = result * 10 + x % 10
x //= 10
return result if not neg else -1 * result
assert reverse(123) == 321
assert reverse(-123) == -321
| 16.3125 | 45 | 0.501916 | 39 | 261 | 3.358974 | 0.435897 | 0.061069 | 0.076336 | 0.290076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 0.371648 | 261 | 15 | 46 | 17.4 | 0.664634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7930590e477ea6498000a81cdf865d64dc031ae | 2,348 | py | Python | malcolm/core/alarm.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | malcolm/core/alarm.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | malcolm/core/alarm.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | from enum import Enum
import numpy as np
from annotypes import Anno, Serializable, deserialize_object
from malcolm.compat import str_
class AlarmSeverity(Enum):
"""An alarm severity"""
NO_ALARM, MINOR_ALARM, MAJOR_ALARM, INVALID_ALARM, UNDEFINED_ALARM = \
np.arange(5, dtype=np.int32)
class AlarmSt... | 28.634146 | 78 | 0.642675 | 256 | 2,348 | 5.710938 | 0.300781 | 0.035568 | 0.028728 | 0.034884 | 0.201094 | 0.157319 | 0.157319 | 0.090287 | 0 | 0 | 0 | 0.003434 | 0.255963 | 2,348 | 81 | 79 | 28.987654 | 0.833429 | 0.115843 | 0 | 0.115385 | 0 | 0 | 0.043372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134615 | false | 0 | 0.076923 | 0.115385 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
c794a8d0b52786e17d418dc2b32924ba41f1a415 | 1,208 | py | Python | bldr/utils.py | kissgyorgy/bldr | d6defc0cb374ba13f445c14491802efecf0a38b7 | [
"MIT"
] | 2 | 2021-03-25T10:20:22.000Z | 2021-03-26T08:49:38.000Z | bldr/utils.py | kissgyorgy/bldr | d6defc0cb374ba13f445c14491802efecf0a38b7 | [
"MIT"
] | 7 | 2021-03-24T17:08:07.000Z | 2022-03-21T12:05:04.000Z | bldr/utils.py | kissgyorgy/bldr | d6defc0cb374ba13f445c14491802efecf0a38b7 | [
"MIT"
] | 3 | 2021-03-26T22:41:06.000Z | 2022-02-10T00:03:04.000Z | import os
import pwd
from pathlib import Path
from pkg_resources import resource_filename
class BLDRError(Exception):
def __init__(self, msg: str, exitcode: int = 1) -> None:
self.msg = msg
self.exitcode = exitcode
def __str__(self) -> str:
return self.msg
class BLDRSetupFailed(BLDR... | 23.230769 | 67 | 0.628311 | 162 | 1,208 | 4.425926 | 0.358025 | 0.048815 | 0.062762 | 0.039052 | 0.156206 | 0.09205 | 0.09205 | 0.09205 | 0.09205 | 0 | 0 | 0.003222 | 0.229305 | 1,208 | 51 | 68 | 23.686275 | 0.766917 | 0 | 0 | 0.057143 | 0 | 0 | 0.086093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.114286 | 0.085714 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c79783cbd622b17ad331ec3819543b57a71dedf7 | 603 | py | Python | saleor/graphql/invoice/types.py | siyoola/saleor | 4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0 | [
"CC-BY-4.0"
] | 1,392 | 2021-10-06T15:54:28.000Z | 2022-03-31T20:50:55.000Z | saleor/graphql/invoice/types.py | siyoola/saleor | 4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0 | [
"CC-BY-4.0"
] | 888 | 2021-10-06T10:48:54.000Z | 2022-03-31T11:00:30.000Z | saleor/graphql/invoice/types.py | siyoola/saleor | 4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0 | [
"CC-BY-4.0"
] | 538 | 2021-10-07T16:21:27.000Z | 2022-03-31T22:58:57.000Z | import graphene
from ...invoice import models
from ..core.types import Job, ModelObjectType
from ..meta.types import ObjectWithMetadata
class Invoice(ModelObjectType):
number = graphene.String()
external_url = graphene.String()
created_at = graphene.DateTime(required=True)
updated_at = graphene.DateT... | 30.15 | 68 | 0.723051 | 66 | 603 | 6.560606 | 0.484848 | 0.12933 | 0.078522 | 0.120092 | 0.138568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182421 | 603 | 19 | 69 | 31.736842 | 0.878296 | 0 | 0 | 0 | 0 | 0 | 0.08126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c79905887a9ebdb4b33f86d2cc7a163c1eb1365e | 2,277 | py | Python | tests/test_bert.py | clarencechen/keras-transformer | b787a5f8067e22a68357e15e12413f91e59f960d | [
"MIT"
] | 555 | 2018-10-07T13:33:06.000Z | 2022-03-24T07:22:12.000Z | tests/test_bert.py | clarencechen/keras-transformer | b787a5f8067e22a68357e15e12413f91e59f960d | [
"MIT"
] | 29 | 2018-12-20T19:57:26.000Z | 2021-07-28T10:36:35.000Z | tests/test_bert.py | clarencechen/keras-transformer | b787a5f8067e22a68357e15e12413f91e59f960d | [
"MIT"
] | 142 | 2018-11-22T11:36:19.000Z | 2022-03-20T10:00:23.000Z | import random
from itertools import islice
import numpy as np
from keras_transformer.bert import BatchGeneratorForBERT
def test_bert_sample_generator():
token_ids = list(range(3, 1000))
def sampler(size):
start = random.randint(0, len(token_ids) - size - 1)
return token_ids[start: start + si... | 37.95 | 79 | 0.636364 | 317 | 2,277 | 4.365931 | 0.26183 | 0.050578 | 0.073699 | 0.066474 | 0.200867 | 0.174855 | 0.174855 | 0.143064 | 0.059249 | 0.059249 | 0 | 0.025504 | 0.259552 | 2,277 | 59 | 80 | 38.59322 | 0.795374 | 0.059728 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.145833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c79b3db0ca9bb3ec927dabd6104e150219152d36 | 531 | py | Python | src/components/neo4j_database.py | BigJerBD/Kankei-Backend | 22e512405dff98c9b517d483ac7ddd168c459999 | [
"MIT"
] | null | null | null | src/components/neo4j_database.py | BigJerBD/Kankei-Backend | 22e512405dff98c9b517d483ac7ddd168c459999 | [
"MIT"
] | null | null | null | src/components/neo4j_database.py | BigJerBD/Kankei-Backend | 22e512405dff98c9b517d483ac7ddd168c459999 | [
"MIT"
] | null | null | null | import logging
import neo4j
import neobolt.exceptions
from neo4j import GraphDatabase
log = logging.getLogger(__name__)
def get_db_driver(config):
try:
db_driver = GraphDatabase.driver(
config.DB_URI, auth=(config.DB_USER, config.DB_PASSWORD), encrypted=False
)
except neobolt.exc... | 22.125 | 85 | 0.666667 | 65 | 531 | 5.230769 | 0.6 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005141 | 0.26742 | 531 | 23 | 86 | 23.086957 | 0.868895 | 0 | 0 | 0 | 0 | 0 | 0.062147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.235294 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c7a2cd270e84c1859c49b3345276c8f05cc933da | 833 | py | Python | tests/shakelib/utils/str_imt_test.py | ynthdhj/shakemap | 2771b8aee6b22f065cc80632c894a0ba77829619 | [
"CC0-1.0"
] | null | null | null | tests/shakelib/utils/str_imt_test.py | ynthdhj/shakemap | 2771b8aee6b22f065cc80632c894a0ba77829619 | [
"CC0-1.0"
] | null | null | null | tests/shakelib/utils/str_imt_test.py | ynthdhj/shakemap | 2771b8aee6b22f065cc80632c894a0ba77829619 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
from shakelib.utils.imt_string import oq_to_file, file_to_oq
def test_imt():
"""Test the imt string functions.
"""
assert oq_to_file('SA(1.0)') == 'PSA1p0'
assert oq_to_file('SA(0.3)') == 'PSA0p3'
assert oq_to_file('SA(15.0)') == 'PSA15p0'
assert oq_to_file('SA(3)') == '... | 22.513514 | 60 | 0.572629 | 127 | 833 | 3.440945 | 0.307087 | 0.064073 | 0.128146 | 0.1373 | 0.375286 | 0.19222 | 0.19222 | 0 | 0 | 0 | 0 | 0.067961 | 0.258103 | 833 | 36 | 61 | 23.138889 | 0.639159 | 0.068427 | 0 | 0.375 | 0 | 0 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0.458333 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7a52b588a8678b5543a816285a81077609a123e | 1,694 | py | Python | src/bot/bot.py | nextcord/gemini | 73e3cd885a3d66ea1edea13e3ed5145ff4ce2af5 | [
"MIT"
] | 8 | 2021-08-31T21:19:56.000Z | 2022-01-06T11:17:11.000Z | src/bot/bot.py | nextcord/gemini | 73e3cd885a3d66ea1edea13e3ed5145ff4ce2af5 | [
"MIT"
] | 1 | 2021-11-04T17:05:45.000Z | 2021-11-04T17:05:45.000Z | src/bot/bot.py | nextcord/gemini | 73e3cd885a3d66ea1edea13e3ed5145ff4ce2af5 | [
"MIT"
] | 2 | 2021-09-01T20:51:37.000Z | 2021-11-03T06:14:34.000Z | from os import getenv
from traceback import format_exc
from typing import Optional
from asyncpg import Pool, create_pool
from loguru import logger
from nextcord import Intents
from nextcord.ext.commands import Bot as _BotBase
from nextcord.ext.commands import Context
class Bot(_BotBase):
"""A subclass of nextcor... | 27.770492 | 94 | 0.586777 | 203 | 1,694 | 4.778325 | 0.46798 | 0.041237 | 0.058763 | 0.047423 | 0.059794 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005089 | 0.304014 | 1,694 | 60 | 95 | 28.233333 | 0.817642 | 0.067887 | 0 | 0 | 0 | 0 | 0.176884 | 0.015326 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7a78a7d77e5e60e088afda64c04cc622024b058 | 503 | py | Python | leetcode/Algorithms/133.CloneGraph/Solution.py | liupangzi/codekata | 079373707601198f79fb6215b876a4cbcab32ee9 | [
"MIT"
] | 58 | 2017-04-30T12:59:37.000Z | 2020-08-05T14:23:57.000Z | leetcode/Algorithms/133.CloneGraph/Solution.py | liupangzi/codekata | 079373707601198f79fb6215b876a4cbcab32ee9 | [
"MIT"
] | null | null | null | leetcode/Algorithms/133.CloneGraph/Solution.py | liupangzi/codekata | 079373707601198f79fb6215b876a4cbcab32ee9 | [
"MIT"
] | 6 | 2018-01-20T18:35:09.000Z | 2020-07-22T14:20:27.000Z | class Solution:
def __init__(self):
self.map = {}
def cloneGraph(self, node):
if node is None:
return None
next = UndirectedGraphNode(node.label)
self.map[str(node.label)] = next
for tmp in node.neighbors:
if str(tmp.label) in self.map:
... | 27.944444 | 67 | 0.564612 | 62 | 503 | 4.516129 | 0.370968 | 0.125 | 0.085714 | 0.164286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.322068 | 503 | 17 | 68 | 29.588235 | 0.821114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7aa5e46a3d9dff70ef110971eebf255eab0aae7 | 845 | py | Python | setup.py | sanzhar-rakhimkul/RLBench | 1bb64190fbd6f329be9cf91d224d1ea595c17688 | [
"BSD-3-Clause"
] | null | null | null | setup.py | sanzhar-rakhimkul/RLBench | 1bb64190fbd6f329be9cf91d224d1ea595c17688 | [
"BSD-3-Clause"
] | null | null | null | setup.py | sanzhar-rakhimkul/RLBench | 1bb64190fbd6f329be9cf91d224d1ea595c17688 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup
# Version meaning (X.Y.Z)
# X: Major version (e.g. vastly different scene, platform, etc)
# Y: Minor version (e.g. new tasks, major changes to existing tasks, etc)
# Z: Patch version (e.g. small changes to tasks, bug fixes, etc)
setup(name='rlbench',
version='1.0.8',
descripti... | 31.296296 | 73 | 0.536095 | 98 | 845 | 4.571429 | 0.602041 | 0.053571 | 0.060268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013223 | 0.284024 | 845 | 26 | 74 | 32.5 | 0.727273 | 0.260355 | 0 | 0 | 0 | 0 | 0.390323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7b09430b1d91a33ac149edf06d7a1efa618c52b | 3,345 | py | Python | app/levels/level_3.py | Ahmed-Khaled-dev/modern-meerkats | e54304303c77928a2566f4e4c3eefb98135acfc7 | [
"MIT"
] | 1 | 2022-01-07T02:38:08.000Z | 2022-01-07T02:38:08.000Z | app/levels/level_3.py | Ahmed-Khaled-dev/modern-meerkats | e54304303c77928a2566f4e4c3eefb98135acfc7 | [
"MIT"
] | null | null | null | app/levels/level_3.py | Ahmed-Khaled-dev/modern-meerkats | e54304303c77928a2566f4e4c3eefb98135acfc7 | [
"MIT"
] | null | null | null | import itertools
from app.actions import Move
from app.entities import Exit, MovingWall, Player, Wall
from . import Level
def Level3() -> Level:
"""Render the second level"""
return Level(
title="The Patient Terminal",
number=3,
max_commands=15,
description="This introduces t... | 34.84375 | 67 | 0.405979 | 330 | 3,345 | 3.99697 | 0.263636 | 0.144049 | 0.127369 | 0.132676 | 0.486732 | 0.391205 | 0.326763 | 0.326763 | 0.244882 | 0.191054 | 0 | 0.066627 | 0.492975 | 3,345 | 95 | 68 | 35.210526 | 0.711085 | 0.082212 | 0 | 0.455696 | 0 | 0 | 0.080878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012658 | true | 0 | 0.050633 | 0 | 0.075949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7b3fb34e565eb97109bdb79b73a9fad550d1fed | 446 | py | Python | aula07/string07.2.py | Eduardo-Quirino/python | acece64c8ed9f35bc94d111861acf65b50ae263c | [
"Apache-2.0"
] | null | null | null | aula07/string07.2.py | Eduardo-Quirino/python | acece64c8ed9f35bc94d111861acf65b50ae263c | [
"Apache-2.0"
] | null | null | null | aula07/string07.2.py | Eduardo-Quirino/python | acece64c8ed9f35bc94d111861acf65b50ae263c | [
"Apache-2.0"
] | null | null | null | #Metodo Format substitui as variáveis passadas
# \' aspas simples
# \"" aspas duplas
# \n quebra de linha
# \r retorno de carga = ENTER
# \t tabulação
# \b backspace apaga o caractere anterior
cidade = "Sao Paulo"
dia = 15
mes = "Setembro"
ano = 2021
canal = "CFB Cursos"
data = "{}, {} de {} de {} \n \"{}\"" #formato... | 26.235294 | 107 | 0.663677 | 63 | 446 | 4.698413 | 0.714286 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.179372 | 446 | 16 | 108 | 27.875 | 0.79235 | 0.591928 | 0 | 0 | 0 | 0 | 0.290698 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7b545ec1f28dbec141df184def7b21934f984db | 1,507 | py | Python | apps/feedback/serializers.py | ecognize-hub/ecognize | e448098d7c5e815c68a7650b14b31d23976a8900 | [
"Apache-2.0"
] | 1 | 2021-04-17T12:53:34.000Z | 2021-04-17T12:53:34.000Z | apps/feedback/serializers.py | ecognize-hub/ecognize | e448098d7c5e815c68a7650b14b31d23976a8900 | [
"Apache-2.0"
] | null | null | null | apps/feedback/serializers.py | ecognize-hub/ecognize | e448098d7c5e815c68a7650b14b31d23976a8900 | [
"Apache-2.0"
] | null | null | null | from crum import get_current_user
from rest_framework import serializers
from .models import Issue, IssueComment
from apps.profiles.serializers import ProfilePreviewSerializer
class IssueSerializer(serializers.ModelSerializer):
author = ProfilePreviewSerializer(read_only=True)
issue_status = serializers.CharF... | 39.657895 | 126 | 0.745853 | 163 | 1,507 | 6.693252 | 0.319018 | 0.058662 | 0.087993 | 0.113657 | 0.615949 | 0.557287 | 0.557287 | 0.557287 | 0.423465 | 0.423465 | 0 | 0 | 0.156603 | 1,507 | 37 | 127 | 40.72973 | 0.858379 | 0 | 0 | 0.551724 | 0 | 0 | 0.079628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0 | 0.793103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c7b5f80555226993c8b9dc47d149c1f007b20e7f | 689 | py | Python | setup.py | moevm/gui-1h2018-34 | c85d653fae407f13559bd2c06b5da44e5140a6a5 | [
"MIT"
] | null | null | null | setup.py | moevm/gui-1h2018-34 | c85d653fae407f13559bd2c06b5da44e5140a6a5 | [
"MIT"
] | null | null | null | setup.py | moevm/gui-1h2018-34 | c85d653fae407f13559bd2c06b5da44e5140a6a5 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='guess_the_movie',
packages=find_packages('src'),
package_dir={'': 'src'},
version='0.9',
license='MIT',
install_requires=[
'pyqt5',
],
description='Game guess the movie by screenshot',
author='Alexey',
author_email... | 27.56 | 82 | 0.606676 | 84 | 689 | 4.809524 | 0.666667 | 0.09901 | 0.160891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024904 | 0.24238 | 689 | 25 | 83 | 27.56 | 0.749042 | 0.134978 | 0 | 0.086957 | 0 | 0 | 0.346801 | 0.069024 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7bc93c63e1abb41516d98d57fc445aaae29ec84 | 566 | py | Python | backend/party/views.py | sudipbhujel/election | fae1cd97e93e18d96d26e46ed57649160b0e4335 | [
"MIT"
] | 3 | 2021-04-07T08:33:39.000Z | 2021-07-29T03:28:24.000Z | backend/party/views.py | sudipbhujel/election | fae1cd97e93e18d96d26e46ed57649160b0e4335 | [
"MIT"
] | null | null | null | backend/party/views.py | sudipbhujel/election | fae1cd97e93e18d96d26e46ed57649160b0e4335 | [
"MIT"
] | 4 | 2021-04-11T14:07:52.000Z | 2021-07-29T03:28:26.000Z | from core.models import Party
from rest_framework import generics
from .serializers import PartySerializer
class PartyListView(generics.ListAPIView):
"""
Party list view.
"""
serializer_class = PartySerializer
# permission_classes = (permissions.IsAuthenticated,)
queryset = Party.objects.all(... | 23.583333 | 57 | 0.722615 | 53 | 566 | 7.603774 | 0.528302 | 0.044665 | 0.064516 | 0.198511 | 0.476427 | 0.476427 | 0.476427 | 0.476427 | 0.476427 | 0.476427 | 0 | 0 | 0.187279 | 566 | 23 | 58 | 24.608696 | 0.876087 | 0.243816 | 0 | 0.4 | 0 | 0 | 0.005051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7bd70609a9500a6288dcf8ade3cbfc5ad32037b | 3,075 | py | Python | notes/kindlenotes.py | pythonerheaven/helloworld | b00746d5f0eff7aa65719b0d22525c387860e991 | [
"Apache-2.0"
] | 2 | 2018-02-02T04:42:12.000Z | 2021-01-21T07:03:36.000Z | notes/kindlenotes.py | pythonerheaven/helloworld | b00746d5f0eff7aa65719b0d22525c387860e991 | [
"Apache-2.0"
] | null | null | null | notes/kindlenotes.py | pythonerheaven/helloworld | b00746d5f0eff7aa65719b0d22525c387860e991 | [
"Apache-2.0"
] | 1 | 2018-02-02T04:42:13.000Z | 2018-02-02T04:42:13.000Z | #!/usr/bin/python
#coding:utf-8
import bs4
import os
import sys
#python 2.7
reload(sys)
sys.setdefaultencoding('utf-8')
class KindleNotes(object):
def __init__(self,uri):
self.uri = uri
self.uriMd = uri.replace('.html','.md')
self.notes = []
def readNotes(self):
content = sel... | 32.712766 | 141 | 0.605528 | 340 | 3,075 | 5.438235 | 0.344118 | 0.083288 | 0.113034 | 0.160627 | 0.40941 | 0.40238 | 0.358031 | 0.33099 | 0.301785 | 0 | 0 | 0.008089 | 0.236098 | 3,075 | 93 | 142 | 33.064516 | 0.779055 | 0.355772 | 0 | 0.04 | 0 | 0 | 0.121042 | 0.029111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.06 | 0 | 0.22 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7c27923a18682460902be99071b94603df6272e | 1,466 | py | Python | pgdumplib/__init__.py | whtsky/pgdumplib | 842b914fe36cb62ce9e6f529fdd23244ce0dde14 | [
"BSD-3-Clause"
] | 15 | 2018-06-15T16:36:49.000Z | 2022-03-31T17:42:21.000Z | pgdumplib/__init__.py | whtsky/pgdumplib | 842b914fe36cb62ce9e6f529fdd23244ce0dde14 | [
"BSD-3-Clause"
] | 10 | 2019-12-06T18:16:09.000Z | 2021-09-23T06:36:53.000Z | pgdumplib/__init__.py | whtsky/pgdumplib | 842b914fe36cb62ce9e6f529fdd23244ce0dde14 | [
"BSD-3-Clause"
] | 3 | 2019-07-28T22:26:11.000Z | 2021-12-26T22:57:00.000Z | """
pgdumplib exposes a load method to create a :py:class:`~pgdumplib.dump.Dump`
instance from a :command:`pg_dump` file created in the `custom` format.
See the :doc:`examples` page to see how to read a dump or create one.
"""
version = '3.1.0'
def load(filepath, converter=None):
"""Load a pg_dump file created ... | 33.318182 | 76 | 0.695089 | 201 | 1,466 | 5.044776 | 0.343284 | 0.047337 | 0.063116 | 0.039448 | 0.439842 | 0.439842 | 0.376726 | 0.376726 | 0.376726 | 0.376726 | 0 | 0.009275 | 0.190996 | 1,466 | 43 | 77 | 34.093023 | 0.8457 | 0.695089 | 0 | 0.25 | 0 | 0 | 0.061111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7c92ab0ea1e5a954ff4f8f2296601275aa8fd00 | 3,944 | py | Python | pysnmp/CISCO-FIPS-STATS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-FIPS-STATS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-FIPS-STATS-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 CISCO-FIPS-STATS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-FIPS-STATS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:41:23 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 109.555556 | 575 | 0.768509 | 424 | 3,944 | 7.143868 | 0.311321 | 0.007263 | 0.010895 | 0.014526 | 0.30274 | 0.237372 | 0.218884 | 0.218884 | 0.218884 | 0.214262 | 0 | 0.080721 | 0.085953 | 3,944 | 35 | 576 | 112.685714 | 0.759501 | 0.084686 | 0 | 0.074074 | 0 | 0 | 0.19439 | 0.018328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.037037 | 0.259259 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7caef2e8546fc25864ee20cb49671caf26c361a | 1,310 | py | Python | backend/core/migrations/0010_auto_20200707_1237.py | ethosdev/poap-fun | a4ef4f8f0fd9ad1b3dc925c7024078783ae9e3c5 | [
"MIT"
] | 8 | 2020-10-20T04:49:29.000Z | 2022-02-27T00:03:49.000Z | backend/core/migrations/0010_auto_20200707_1237.py | ethosdev/poap-fun | a4ef4f8f0fd9ad1b3dc925c7024078783ae9e3c5 | [
"MIT"
] | 17 | 2021-03-19T15:08:08.000Z | 2021-09-22T19:37:31.000Z | backend/core/migrations/0010_auto_20200707_1237.py | ethosdev/poap-fun | a4ef4f8f0fd9ad1b3dc925c7024078783ae9e3c5 | [
"MIT"
] | 8 | 2021-04-28T22:29:26.000Z | 2022-03-28T16:47:47.000Z | # Generated by Django 3.0.7 on 2020-07-07 12:37
import core.utils
import core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0009_auto_20200702_1928'),
]
operations = [
migrations.Add... | 35.405405 | 159 | 0.656489 | 133 | 1,310 | 6.308271 | 0.458647 | 0.038141 | 0.05006 | 0.078665 | 0.31466 | 0.31466 | 0.195471 | 0.195471 | 0.195471 | 0.195471 | 0 | 0.030572 | 0.225954 | 1,310 | 36 | 160 | 36.388889 | 0.796844 | 0.034351 | 0 | 0.3 | 1 | 0 | 0.175772 | 0.018211 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7ce1285604a56bd5edaef25492a65f677bdf73a | 1,746 | py | Python | tests/regressiontests/forms/models.py | rawwell/django | 6b3264671ead4604f26cbd2b71e8d6a02945bf0c | [
"BSD-3-Clause"
] | 1 | 2016-05-08T12:24:22.000Z | 2016-05-08T12:24:22.000Z | tests/regressiontests/forms/models.py | rawwell/django | 6b3264671ead4604f26cbd2b71e8d6a02945bf0c | [
"BSD-3-Clause"
] | null | null | null | tests/regressiontests/forms/models.py | rawwell/django | 6b3264671ead4604f26cbd2b71e8d6a02945bf0c | [
"BSD-3-Clause"
] | 1 | 2015-11-19T14:45:16.000Z | 2015-11-19T14:45:16.000Z | import datetime
from django.db import models
class BoundaryModel(models.Model):
positive_integer = models.PositiveIntegerField(null=True, blank=True)
class Defaults(models.Model):
name = models.CharField(max_length=256, default='class default value')
def_date = models.DateField(default = datetime.date(19... | 32.333333 | 101 | 0.72394 | 223 | 1,746 | 5.524664 | 0.345291 | 0.034091 | 0.029221 | 0.068182 | 0.23539 | 0.150974 | 0.099026 | 0.099026 | 0 | 0 | 0 | 0.028405 | 0.112829 | 1,746 | 53 | 102 | 32.943396 | 0.766946 | 0.032073 | 0 | 0.113636 | 0 | 0.022727 | 0.725059 | 0.296318 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7d3c8004cfb0cf6cebf185ec33e7bfc3a50c37c | 1,738 | py | Python | datastorage.py | betamaoIS/Eduxxxx_downloader | 57ab10088c07dc3be8a1ecca0af725bc07696a98 | [
"MIT"
] | 3 | 2019-11-08T06:53:58.000Z | 2021-08-19T10:00:57.000Z | datastorage.py | betamaoIS/Eduxxxx_downloader | 57ab10088c07dc3be8a1ecca0af725bc07696a98 | [
"MIT"
] | 1 | 2021-01-12T06:32:40.000Z | 2021-01-12T06:32:40.000Z | datastorage.py | betamaoIS/Eduxxxx_downloader | 57ab10088c07dc3be8a1ecca0af725bc07696a98 | [
"MIT"
] | 2 | 2020-03-07T06:38:17.000Z | 2020-09-22T02:38:41.000Z | from sqlalchemy.dialects.mysql import MEDIUMTEXT, TEXT, INTEGER, CHAR, BOOLEAN
from sqlalchemy import create_engine, Column
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class Course(Base):
__tablename__ = 'course'
id = Column(INTEGE... | 28.491803 | 94 | 0.695052 | 208 | 1,738 | 5.586538 | 0.3125 | 0.100688 | 0.10327 | 0.072289 | 0.185886 | 0.146299 | 0.121343 | 0.086059 | 0.086059 | 0.086059 | 0 | 0.025072 | 0.196778 | 1,738 | 60 | 95 | 28.966667 | 0.807307 | 0.037975 | 0 | 0.173913 | 0 | 0.021739 | 0.056355 | 0.035971 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.043478 | 0.086957 | 0 | 0.804348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c7da9c0c03ef047384012208977c1ba1657d23a9 | 341 | py | Python | 17_Greedy/Step02/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | 17_Greedy/Step02/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | 3 | 2020-11-04T05:38:53.000Z | 2021-03-02T02:15:19.000Z | 17_Greedy/Step02/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | import sys
N = int(sys.stdin.readline())
time = []
for i in range(N):
(s, f) = map(int, sys.stdin.readline().split())
time.append((s, f))
time = sorted(time, key=lambda x :(x[1], x[0]))
s, f = time[0][0], time[0][1]
count = 1
for i in range(1, N):
(new_s, new_f) = time[i]
if new_s >= f:
count += 1
s, f = new_... | 20.058824 | 48 | 0.580645 | 71 | 341 | 2.71831 | 0.366197 | 0.051813 | 0.11399 | 0.196891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.190616 | 341 | 17 | 49 | 20.058824 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7dfc699a97adaf95f70bca597e4f6d78e07aa8f | 4,827 | py | Python | Server/socketServer.py | crew/dds-client | 5d530f053955df07b75410807816241a10b567d3 | [
"MIT"
] | null | null | null | Server/socketServer.py | crew/dds-client | 5d530f053955df07b75410807816241a10b567d3 | [
"MIT"
] | null | null | null | Server/socketServer.py | crew/dds-client | 5d530f053955df07b75410807816241a10b567d3 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import socket
import select
import json
import thread
from Classes.socketlist import socketList
from Classes.message import Message
from WPHandler import wpListenerStart
def connect(**kwargs):
"""
Handles any new connections
@param kwargs: Needed information for the connection
@typ... | 38.007874 | 115 | 0.629584 | 525 | 4,827 | 5.706667 | 0.339048 | 0.056075 | 0.01502 | 0.016021 | 0.033378 | 0.033378 | 0.033378 | 0 | 0 | 0 | 0 | 0.004867 | 0.276362 | 4,827 | 126 | 116 | 38.309524 | 0.852849 | 0.072716 | 0 | 0.078125 | 0 | 0 | 0.110489 | 0 | 0 | 0 | 0 | 0.007937 | 0 | 0 | null | null | 0 | 0.109375 | null | null | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7eb1e664e5ea6d938594cb493694236beed0c79 | 5,331 | py | Python | AstrophysicObjects/SpectralAnalysis/SpectralAnalysis.py | Camiloasc1/AstronomyUNAL | 0d533c1737e5328605c70f614024e1759e8d0962 | [
"MIT"
] | null | null | null | AstrophysicObjects/SpectralAnalysis/SpectralAnalysis.py | Camiloasc1/AstronomyUNAL | 0d533c1737e5328605c70f614024e1759e8d0962 | [
"MIT"
] | null | null | null | AstrophysicObjects/SpectralAnalysis/SpectralAnalysis.py | Camiloasc1/AstronomyUNAL | 0d533c1737e5328605c70f614024e1759e8d0962 | [
"MIT"
] | null | null | null | import math
from astropy import units as u
from astropy.modeling import models, fitting
from astropy.table.table import Table
from matplotlib import pyplot
from scipy.integrate import simps
import numpy
class ClimbingAgent(object):
def __init__(self, world, model, position, movementRange, minimumHeight, hillUp =... | 39.783582 | 187 | 0.631026 | 695 | 5,331 | 4.823022 | 0.263309 | 0.034905 | 0.037291 | 0.01432 | 0.255072 | 0.205251 | 0.195704 | 0.122315 | 0.097852 | 0.078759 | 0 | 0.031707 | 0.230914 | 5,331 | 133 | 188 | 40.082707 | 0.785854 | 0.121178 | 0 | 0.134021 | 0 | 0 | 0.061347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072165 | null | null | 0.020619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bdef25232140304f8396049b326dd20deb79b44 | 1,644 | py | Python | constructROM/hk_modes.py | PeriodicROM/construct_roms | 8530cf95689783d4b38a73eb2ac6655db270ec54 | [
"MIT"
] | null | null | null | constructROM/hk_modes.py | PeriodicROM/construct_roms | 8530cf95689783d4b38a73eb2ac6655db270ec54 | [
"MIT"
] | null | null | null | constructROM/hk_modes.py | PeriodicROM/construct_roms | 8530cf95689783d4b38a73eb2ac6655db270ec54 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 12 13:38:30 2022
@author: mlols
"""
def hk_modes(hier_num):
"""
Generate modes in the HK hierarchy.
Parameters
----------
hier_num : int
Number in the HK hierarchy (hier_num = n means the nth model).
Returns
-------
p_modes : li... | 26.095238 | 77 | 0.543796 | 236 | 1,644 | 3.635593 | 0.364407 | 0.030303 | 0.013986 | 0.041958 | 0.249417 | 0.149184 | 0.058275 | 0 | 0 | 0 | 0 | 0.057168 | 0.308394 | 1,644 | 63 | 78 | 26.095238 | 0.697449 | 0.542579 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bdf7f1bbceee9effc8a81028f70b64bfb2f3472 | 7,081 | py | Python | Lunchtime/Lproj/Lapp/migrations/0002_db_setup.py | WildernessBear/447-COVID-lunch-proj | 1ab440bb9025d2c2eaf6daca90bb35503265be60 | [
"Apache-2.0"
] | null | null | null | Lunchtime/Lproj/Lapp/migrations/0002_db_setup.py | WildernessBear/447-COVID-lunch-proj | 1ab440bb9025d2c2eaf6daca90bb35503265be60 | [
"Apache-2.0"
] | null | null | null | Lunchtime/Lproj/Lapp/migrations/0002_db_setup.py | WildernessBear/447-COVID-lunch-proj | 1ab440bb9025d2c2eaf6daca90bb35503265be60 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.2 on 2020-12-08 08:29
from django.db import migrations
import random
# description should NOT be seen on website, it just describes if an item is a main dish, side, or drink
class Item:
def __init__(self, name, description, prep, ingredient_ls):
self.name = name
self.desc... | 42.14881 | 118 | 0.58085 | 782 | 7,081 | 5.143223 | 0.309463 | 0.039781 | 0.048483 | 0.025361 | 0.34734 | 0.305321 | 0.257086 | 0.239682 | 0.201392 | 0.201392 | 0 | 0.00719 | 0.312526 | 7,081 | 167 | 119 | 42.401198 | 0.819022 | 0.089535 | 0 | 0.122807 | 1 | 0 | 0.257098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.017544 | 0 | 0.070175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bed0fd900c26fe855cc95490e52dee62fcf50ba | 4,851 | py | Python | old/generate_aa_volume_data.py | iskandr/mhcpred | 71f082d94bbde9616ab31f0e70e7076240690163 | [
"Apache-2.0"
] | 1 | 2016-03-16T09:24:56.000Z | 2016-03-16T09:24:56.000Z | old/generate_aa_volume_data.py | iskandr/mhcpred | 71f082d94bbde9616ab31f0e70e7076240690163 | [
"Apache-2.0"
] | null | null | null | old/generate_aa_volume_data.py | iskandr/mhcpred | 71f082d94bbde9616ab31f0e70e7076240690163 | [
"Apache-2.0"
] | null | null | null | from collections import OrderedDict
import pandas as pd
import numpy as np
from os.path import exists
import subprocess
import pandas as pd
import logging
from epitopes.amino_acid import volume
from dataset_helpers import filter_dataframe, extract_columns
def generate_pairwise_index_data(
df_p... | 30.702532 | 79 | 0.613069 | 628 | 4,851 | 4.503185 | 0.243631 | 0.021216 | 0.022984 | 0.019802 | 0.180693 | 0.082744 | 0.059406 | 0.059406 | 0 | 0 | 0 | 0.016833 | 0.277469 | 4,851 | 157 | 80 | 30.898089 | 0.790014 | 0.010719 | 0 | 0.088 | 0 | 0 | 0.118829 | 0.004488 | 0 | 0 | 0 | 0 | 0.08 | 0 | null | null | 0 | 0.08 | null | null | 0.088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1beea4809ab32e90ee82084681a48ca746c84e1b | 979 | py | Python | src/tests/base/test_templatetag.py | pajowu/pretix | d6985123b4528f134ead71ce0a4613c9a309fd2c | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-04-25T00:11:00.000Z | 2020-04-25T00:11:00.000Z | src/tests/base/test_templatetag.py | pajowu/pretix | d6985123b4528f134ead71ce0a4613c9a309fd2c | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2019-07-08T10:29:54.000Z | 2020-01-08T17:32:07.000Z | src/tests/base/test_templatetag.py | pajowu/pretix | d6985123b4528f134ead71ce0a4613c9a309fd2c | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-08-09T17:11:28.000Z | 2017-08-09T17:11:28.000Z | from django.template import Context, Template
from django.test import RequestFactory
TEMPLATE_REPLACE_PAGE = Template("{% load urlreplace %}{% url_replace request 'page' 3 %}")
def test_urlreplace_add__first_parameter():
factory = RequestFactory()
request = factory.get('/customer/details')
rendered = TEM... | 30.59375 | 91 | 0.696629 | 111 | 979 | 5.963964 | 0.279279 | 0.037764 | 0.114804 | 0.167674 | 0.694864 | 0.694864 | 0.626888 | 0.626888 | 0.345921 | 0.345921 | 0 | 0.00861 | 0.169561 | 979 | 31 | 92 | 31.580645 | 0.805658 | 0 | 0 | 0.583333 | 0 | 0 | 0.195097 | 0.051073 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bef23af1d1e1885b3fbe2f77c7b1a3aa023161b | 2,703 | py | Python | tests/test_subscription.py | avito-tech/alert-autoconf | 73d9270c6f9f0655cfc68ae3dac4e7406acf10ae | [
"MIT"
] | null | null | null | tests/test_subscription.py | avito-tech/alert-autoconf | 73d9270c6f9f0655cfc68ae3dac4e7406acf10ae | [
"MIT"
] | null | null | null | tests/test_subscription.py | avito-tech/alert-autoconf | 73d9270c6f9f0655cfc68ae3dac4e7406acf10ae | [
"MIT"
] | null | null | null | from unittest import TestCase
from alert_autoconf.moira import MoiraAlert
def _make_sub(**kwargs):
sub = {
'tags': [],
'contacts': [],
'escalations': [],
'sched': {'startOffset': 0, 'endOffset': 1439, 'tzOffset': 0, 'days': []},
}
sub.update(**kwargs)
return sub
def ... | 33.37037 | 82 | 0.623381 | 339 | 2,703 | 4.60472 | 0.171091 | 0.09417 | 0.064062 | 0.08328 | 0.775144 | 0.746316 | 0.647021 | 0.627162 | 0.558616 | 0.516336 | 0 | 0.039808 | 0.228635 | 2,703 | 80 | 83 | 33.7875 | 0.708873 | 0 | 0 | 0.40625 | 0 | 0 | 0.048465 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.1875 | false | 0 | 0.03125 | 0.015625 | 0.265625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bf25078345248472e5275c3eb4fadd1a9cb3aba | 2,316 | py | Python | tests/test_aai_vf_module.py | krasm/python-onapsdk | 87cd3017fc542a8afd3be51fbd89934ed87ed3a7 | [
"Apache-2.0"
] | null | null | null | tests/test_aai_vf_module.py | krasm/python-onapsdk | 87cd3017fc542a8afd3be51fbd89934ed87ed3a7 | [
"Apache-2.0"
] | null | null | null | tests/test_aai_vf_module.py | krasm/python-onapsdk | 87cd3017fc542a8afd3be51fbd89934ed87ed3a7 | [
"Apache-2.0"
] | null | null | null | from unittest import mock
import pytest
from onapsdk.aai.business import VfModuleInstance
from onapsdk.so.deletion import VfModuleDeletionRequest
from onapsdk.exceptions import ResourceNotFound
def test_vf_module():
vnf_instance = mock.MagicMock()
vnf_instance.url = "test_url"
vf_module_instance = VfModu... | 39.931034 | 90 | 0.642487 | 260 | 2,316 | 5.292308 | 0.196154 | 0.226744 | 0.162791 | 0.09157 | 0.548692 | 0.505087 | 0.385174 | 0.268895 | 0.196221 | 0.143895 | 0 | 0 | 0.291883 | 2,316 | 58 | 91 | 39.931034 | 0.839024 | 0.018566 | 0 | 0.317073 | 0 | 0 | 0.090388 | 0.059083 | 0 | 0 | 0 | 0 | 0.170732 | 1 | 0.073171 | false | 0 | 0.121951 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bf5650076be48fe68b95945e6e64ae1b2cd11bb | 418 | py | Python | polls/migrations/0017_auto_20180411_1236.py | JordanForde1/Final_Year_Project | 9277ff7b154d580b31038c5e97a2e91b0c67968a | [
"MIT"
] | null | null | null | polls/migrations/0017_auto_20180411_1236.py | JordanForde1/Final_Year_Project | 9277ff7b154d580b31038c5e97a2e91b0c67968a | [
"MIT"
] | null | null | null | polls/migrations/0017_auto_20180411_1236.py | JordanForde1/Final_Year_Project | 9277ff7b154d580b31038c5e97a2e91b0c67968a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-04-11 11:36
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0016_choice_con_id'),
]
operations = [
migrations.RenameField(
... | 19.904762 | 48 | 0.595694 | 48 | 418 | 4.9375 | 0.708333 | 0.042194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070234 | 0.284689 | 418 | 20 | 49 | 20.9 | 0.722408 | 0.162679 | 0 | 0 | 1 | 0 | 0.10951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bf89f8d2c51b4adcacebd9c2c39a0499ff05c0d | 9,951 | py | Python | tests/unit/states/service_test.py | one3chens/salt | 191f4fba0b8d9c42c04b7f71161fc5de47f2ba2e | [
"Apache-2.0",
"MIT"
] | 1 | 2020-02-22T07:11:24.000Z | 2020-02-22T07:11:24.000Z | tests/unit/states/service_test.py | one3chens/salt | 191f4fba0b8d9c42c04b7f71161fc5de47f2ba2e | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/unit/states/service_test.py | one3chens/salt | 191f4fba0b8d9c42c04b7f71161fc5de47f2ba2e | [
"Apache-2.0",
"MIT"
] | 1 | 2020-02-22T07:11:26.000Z | 2020-02-22T07:11:26.000Z | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Rahul Handay <rahulha@saltstack.com>`
'''
# Import Python Libs
from __future__ import absolute_import
# Import Salt Testing Libs
from salttesting import TestCase, skipIf
from salttesting.helpers import ensure_in_syspath
from salttesting.mock import (
MagicMock,... | 45.231818 | 115 | 0.517335 | 925 | 9,951 | 5.388108 | 0.126486 | 0.061396 | 0.099117 | 0.076244 | 0.763443 | 0.74077 | 0.698636 | 0.638644 | 0.555377 | 0.453451 | 0 | 0.003048 | 0.340669 | 9,951 | 219 | 116 | 45.438356 | 0.756592 | 0.049241 | 0 | 0.483871 | 0 | 0 | 0.191673 | 0 | 0 | 0 | 0 | 0 | 0.135484 | 1 | 0.03871 | false | 0 | 0.03871 | 0 | 0.090323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bf937f9211df97be2715b63435722abc6a89f74 | 13,968 | py | Python | Sam.py | Danila-Bashinskiy/Sam | 50834e64e9cdf6339213c348095a2087d7a89b14 | [
"MIT"
] | 2 | 2021-02-04T09:01:54.000Z | 2021-07-09T21:56:30.000Z | Sam.py | Danila-Bashinskiy/Sam | 50834e64e9cdf6339213c348095a2087d7a89b14 | [
"MIT"
] | null | null | null | Sam.py | Danila-Bashinskiy/Sam | 50834e64e9cdf6339213c348095a2087d7a89b14 | [
"MIT"
] | null | null | null | import random
import sys
import time
print("Здравствуйте, меня зовут Сэм,"
" я исскуственный интелект созданный для 4 программ и"
" простого разговора с людьми."
)
print("У меня есть 4 программы, 1-ая из них - это калькулятор, чтобы его выбрать напишите 1.")
print("2-ая из них - это программ... | 35.815385 | 120 | 0.547967 | 1,577 | 13,968 | 4.580216 | 0.220672 | 0.03115 | 0.020767 | 0.023536 | 0.351516 | 0.318843 | 0.297245 | 0.282293 | 0.236882 | 0.221792 | 0 | 0.016692 | 0.330899 | 13,968 | 389 | 121 | 35.907455 | 0.755724 | 0.008376 | 0 | 0.430939 | 0 | 0.008287 | 0.361278 | 0.020736 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013812 | 0 | 0.013812 | 0.41989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
1bf9a5c8ffe9987a2e81a7ae90f3d014208ebcd7 | 2,651 | py | Python | tests/integ_tests/test_photofile.py | aaronkollasch/photomanager | fd00ac3edbb440547d2f1af55b0d0f899b9799c5 | [
"MIT"
] | null | null | null | tests/integ_tests/test_photofile.py | aaronkollasch/photomanager | fd00ac3edbb440547d2f1af55b0d0f899b9799c5 | [
"MIT"
] | 16 | 2021-05-31T09:41:09.000Z | 2021-12-07T18:43:50.000Z | tests/integ_tests/test_photofile.py | aaronkollasch/photomanager | fd00ac3edbb440547d2f1af55b0d0f899b9799c5 | [
"MIT"
] | null | null | null | from pathlib import Path
from datetime import timezone, timedelta
import pytest
from photomanager.pyexiftool import ExifTool
from photomanager.photofile import PhotoFile
FIXTURE_DIR = Path(__file__).resolve().parent.parent / "test_files"
ALL_IMG_DIRS = pytest.mark.datafiles(
FIXTURE_DIR / "A",
FIXTURE_DIR / "B... | 28.202128 | 79 | 0.606186 | 285 | 2,651 | 5.533333 | 0.322807 | 0.060875 | 0.057705 | 0.031706 | 0.21877 | 0.178821 | 0.178821 | 0.178821 | 0.178821 | 0.166138 | 0 | 0.311331 | 0.274236 | 2,651 | 93 | 80 | 28.505376 | 0.508316 | 0 | 0 | 0.422222 | 0 | 0 | 0.291588 | 0.193135 | 0 | 0 | 0 | 0 | 0.011111 | 1 | 0.011111 | false | 0 | 0.055556 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
400c2c3f8f33ccb28c2dc5910e1e0d85e6269da8 | 4,719 | py | Python | rest/apis.py | k-wojcik/kylin_client_tool | 0fe827d1c8a86e3da61c85c48f78ce03c9260f3c | [
"Apache-2.0"
] | null | null | null | rest/apis.py | k-wojcik/kylin_client_tool | 0fe827d1c8a86e3da61c85c48f78ce03c9260f3c | [
"Apache-2.0"
] | null | null | null | rest/apis.py | k-wojcik/kylin_client_tool | 0fe827d1c8a86e3da61c85c48f78ce03c9260f3c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'Huang, Hua'
import json
import sys
import requests
from requests.auth import HTTPBasicAuth
from settings import settings
class KylinRestApi:
cooikes = None
def __init__(self):
self.host = settings.KYLIN_REST_HOST
self.port = settings.KYLIN_REST_PORT
... | 36.3 | 150 | 0.613054 | 526 | 4,719 | 5.326996 | 0.155894 | 0.036403 | 0.049964 | 0.059957 | 0.659529 | 0.659529 | 0.622056 | 0.590293 | 0.551035 | 0.531763 | 0 | 0.002086 | 0.289044 | 4,719 | 129 | 151 | 36.581395 | 0.833085 | 0.019496 | 0 | 0.572917 | 0 | 0 | 0.060363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.03125 | 0.052083 | null | null | 0.010417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
400f795ffac8eb07f4ec6d725b2d5628c194ee10 | 4,362 | py | Python | src/web/modules/install/modules/search/install.py | unkyulee/elastic-cms | 3ccf4476c3523d4fefc0d8d9dee0196815b81489 | [
"MIT"
] | 2 | 2017-04-30T07:29:23.000Z | 2017-04-30T07:36:27.000Z | src/web/modules/install/modules/search/install.py | unkyulee/elastic-cms | 3ccf4476c3523d4fefc0d8d9dee0196815b81489 | [
"MIT"
] | null | null | null | src/web/modules/install/modules/search/install.py | unkyulee/elastic-cms | 3ccf4476c3523d4fefc0d8d9dee0196815b81489 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import glob, os
from lib import config # config.py
import lib.es as es
from lib.read import readfile
import web.util.tools as tools
def install(host, base_dir):
# check if search site exists
sites = es.list(host, 'core_nav', 'site', "name:'search'")
if not sites:
# create ... | 26.925926 | 112 | 0.49083 | 502 | 4,362 | 4.199203 | 0.296813 | 0.016603 | 0.026091 | 0.030361 | 0.195446 | 0.177419 | 0.14611 | 0.125237 | 0.125237 | 0.094877 | 0 | 0.008278 | 0.307657 | 4,362 | 161 | 113 | 27.093168 | 0.689735 | 0.024989 | 0 | 0.260163 | 0 | 0.03252 | 0.764013 | 0.162035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00813 | false | 0 | 0.04065 | 0 | 0.04878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.