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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67e4a190f4b21b618d8a69e714cec31032c3687f | 8,111 | py | Python | layers/util/mapping_functions.py | meder411/spherical-package | 73d51a25da5891d12e4c04d8ad2e6f1854ffa121 | [
"BSD-3-Clause"
] | 8 | 2020-06-13T19:49:06.000Z | 2022-02-24T07:16:02.000Z | layers/util/mapping_functions.py | meder411/spherical-package | 73d51a25da5891d12e4c04d8ad2e6f1854ffa121 | [
"BSD-3-Clause"
] | 4 | 2020-07-03T08:44:13.000Z | 2021-09-17T12:18:57.000Z | layers/util/mapping_functions.py | meder411/spherical-package | 73d51a25da5891d12e4c04d8ad2e6f1854ffa121 | [
"BSD-3-Clause"
] | 3 | 2020-06-10T23:30:20.000Z | 2020-12-29T13:50:01.000Z | import torch
import math
from .grids import *
from .conversions import *
# =============================================================================
# Equirectangular mapping functions
# =============================================================================
#
# Note that there is no concept of padding for ... | 33.378601 | 198 | 0.601159 | 1,139 | 8,111 | 4.152766 | 0.119403 | 0.022833 | 0.010148 | 0.013531 | 0.74186 | 0.702326 | 0.652431 | 0.619239 | 0.603594 | 0.575264 | 0 | 0.011106 | 0.267291 | 8,111 | 243 | 199 | 33.378601 | 0.784789 | 0.392183 | 0 | 0.541284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055046 | false | 0 | 0.036697 | 0 | 0.146789 | 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 |
67e5a6a6c74d4339ea14061f1806e706d149cac0 | 6,026 | py | Python | Modules/ego_planner/ego-planner-swarm/src/uav_simulator/Utils/multi_map_server/src/multi_map_server/msg/_VerticalOccupancyGridList.py | 473867143/Prometheus | df1e1b0d861490223ac8b94d8cc4796537172292 | [
"BSD-3-Clause"
] | 1,217 | 2020-07-02T13:15:18.000Z | 2022-03-31T06:17:44.000Z | Modules/ego_planner/ego-planner-swarm/src/uav_simulator/Utils/multi_map_server/src/multi_map_server/msg/_VerticalOccupancyGridList.py | 473867143/Prometheus | df1e1b0d861490223ac8b94d8cc4796537172292 | [
"BSD-3-Clause"
] | 167 | 2020-07-12T15:35:43.000Z | 2022-03-31T11:57:40.000Z | Modules/ego_planner/ego-planner-swarm/src/uav_simulator/Utils/multi_map_server/src/multi_map_server/msg/_VerticalOccupancyGridList.py | 473867143/Prometheus | df1e1b0d861490223ac8b94d8cc4796537172292 | [
"BSD-3-Clause"
] | 270 | 2020-07-02T13:28:00.000Z | 2022-03-28T05:43:08.000Z | """autogenerated by genpy from multi_map_server/VerticalOccupancyGridList.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class VerticalOccupancyGridList(genpy.Message):
_md5sum = "7ef85cc95b82747f51eb01a16bd7c795"
_type = "multi_map_server/Verti... | 32.397849 | 123 | 0.623963 | 801 | 6,026 | 4.580524 | 0.193508 | 0.061052 | 0.041973 | 0.037067 | 0.629872 | 0.62115 | 0.580267 | 0.580267 | 0.559008 | 0.531207 | 0 | 0.016856 | 0.241952 | 6,026 | 185 | 124 | 32.572973 | 0.78634 | 0.201792 | 0 | 0.671533 | 1 | 0 | 0.073684 | 0.015897 | 0 | 0 | 0.002148 | 0 | 0 | 1 | 0.043796 | false | 0 | 0.021898 | 0 | 0.138686 | 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 |
67e7dfe8a3a11d78c472c0f64358e33daa1e6979 | 1,696 | py | Python | listener.py | chrismarget/ios-icmp-channel | b2a09f1c345816f525a3f7aed6a562631b0fc7e6 | [
"Apache-2.0"
] | 1 | 2018-01-30T01:53:20.000Z | 2018-01-30T01:53:20.000Z | listener.py | chrismarget/ios-icmp-channel | b2a09f1c345816f525a3f7aed6a562631b0fc7e6 | [
"Apache-2.0"
] | null | null | null | listener.py | chrismarget/ios-icmp-channel | b2a09f1c345816f525a3f7aed6a562631b0fc7e6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
class message(object):
def add(self, idx, b):
self.message[idx] = b
if (b == '\x04') and self.is_complete():
self.print_message()
def get_eom_idx(self):
for i in sorted(self.message.keys()):
if self.message[i] == '\x04':
... | 27.803279 | 71 | 0.56191 | 229 | 1,696 | 4.030568 | 0.31441 | 0.052004 | 0.029252 | 0.028169 | 0.080173 | 0.080173 | 0.039003 | 0 | 0 | 0 | 0 | 0.017995 | 0.31191 | 1,696 | 60 | 72 | 28.266667 | 0.772922 | 0.011792 | 0 | 0.127273 | 0 | 0 | 0.024478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054545 | null | null | 0.072727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
67f15b64983f5eafc8f2961a8adfe37568e44cb9 | 2,051 | py | Python | tests/test_keepalived2.py | khosrow/lvsm | 516ee1422f736d016ccc198e54f5f019102504a6 | [
"MIT"
] | 15 | 2015-03-18T21:45:24.000Z | 2021-02-22T09:41:30.000Z | tests/test_keepalived2.py | khosrow/lvsm | 516ee1422f736d016ccc198e54f5f019102504a6 | [
"MIT"
] | 12 | 2016-01-15T19:32:36.000Z | 2016-10-27T14:21:14.000Z | tests/test_keepalived2.py | khosrow/lvsm | 516ee1422f736d016ccc198e54f5f019102504a6 | [
"MIT"
] | 8 | 2015-03-20T00:24:56.000Z | 2021-11-19T06:21:19.000Z | import unittest
import os
import sys
import StringIO
path = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../lvsm')))
from lvsm.modules import keepalived
class Keepalived(unittest.TestCase):
"""Tests for the functionality of the keepalive... | 42.729167 | 113 | 0.376889 | 171 | 2,051 | 4.374269 | 0.473684 | 0.032086 | 0.040107 | 0.037433 | 0.128342 | 0.032086 | 0.032086 | 0 | 0 | 0 | 0 | 0.070577 | 0.509508 | 2,051 | 47 | 114 | 43.638298 | 0.672962 | 0.042906 | 0 | 0.052632 | 0 | 0 | 0.323965 | 0.011242 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.052632 | false | 0.026316 | 0.131579 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67f2b9d79410dba976d86159718de46c71935384 | 1,416 | py | Python | faeAuditor/auditGroupResults/urlsCSV.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 2 | 2018-02-28T19:03:28.000Z | 2021-09-30T13:40:23.000Z | faeAuditor/auditGroupResults/urlsCSV.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 6 | 2020-02-11T21:53:58.000Z | 2022-02-10T07:57:58.000Z | faeAuditor/auditGroupResults/urlsCSV.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 1 | 2019-12-05T06:05:20.000Z | 2019-12-05T06:05:20.000Z | """
Copyright 2014-2018 University of Illinois
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | 29.5 | 100 | 0.735169 | 194 | 1,416 | 5.237113 | 0.520619 | 0.059055 | 0.05315 | 0.035433 | 0.090551 | 0.090551 | 0.090551 | 0.090551 | 0.064961 | 0.064961 | 0 | 0.009868 | 0.141243 | 1,416 | 47 | 101 | 30.12766 | 0.825658 | 0.469633 | 0 | 0 | 0 | 0.125 | 0.412162 | 0.389189 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 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 |
67f2fda918bbde7a4b1b415f81dab3ffab386200 | 876 | py | Python | randomizer.py | shane1027/PollDaddySlurp | 6cc17156f38427379d095277681dbe1a68baa49d | [
"MIT"
] | null | null | null | randomizer.py | shane1027/PollDaddySlurp | 6cc17156f38427379d095277681dbe1a68baa49d | [
"MIT"
] | null | null | null | randomizer.py | shane1027/PollDaddySlurp | 6cc17156f38427379d095277681dbe1a68baa49d | [
"MIT"
] | 1 | 2019-10-10T15:19:33.000Z | 2019-10-10T15:19:33.000Z | #!/usr/bin/env python2.7
import time
from http_request_randomizer.requests.proxy.requestProxy import RequestProxy
if __name__ == '__main__':
start = time.time()
req_proxy = RequestProxy()
print "Initialization took: {0} sec".format((time.time() - start))
print "Size : ", len(req_proxy.get_proxy_list()... | 35.04 | 109 | 0.643836 | 117 | 876 | 4.57265 | 0.487179 | 0.074766 | 0.061682 | 0.08972 | 0.157009 | 0.119626 | 0.119626 | 0.119626 | 0 | 0 | 0 | 0.012931 | 0.205479 | 876 | 24 | 110 | 36.5 | 0.755747 | 0.026256 | 0 | 0.111111 | 0 | 0 | 0.210094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.388889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
67f38cc9e41435b2a8a8c22aa5a456b1d76fb88e | 555 | py | Python | examples/nni_data_augmentation/basenet/data.py | petuum/tuun | 8eec472dbf0e5e695449b0fa2d98985469fd5b30 | [
"Apache-2.0"
] | 33 | 2020-08-30T16:22:35.000Z | 2022-02-26T13:48:32.000Z | examples/nni_data_augmentation/basenet/data.py | petuum/tuun | 8eec472dbf0e5e695449b0fa2d98985469fd5b30 | [
"Apache-2.0"
] | 2 | 2021-01-18T19:46:43.000Z | 2021-03-24T09:59:14.000Z | examples/nni_data_augmentation/basenet/data.py | petuum/tuun | 8eec472dbf0e5e695449b0fa2d98985469fd5b30 | [
"Apache-2.0"
] | 2 | 2020-08-25T17:02:15.000Z | 2021-04-21T16:40:44.000Z | #!/usr/bin/env python
"""
data.py
"""
import itertools
def loopy_wrapper(gen):
while True:
for x in gen:
yield x
class ZipDataloader:
def __init__(self, dataloaders):
self.dataloaders = dataloaders
self._len = len(dataloaders[0])
def __len__(self):
return... | 18.5 | 60 | 0.578378 | 69 | 555 | 4.42029 | 0.507246 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007895 | 0.315315 | 555 | 29 | 61 | 19.137931 | 0.794737 | 0.05045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.058824 | 0.411765 | 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 |
67facec68d3d68647d57845cc972fe7ead4b3012 | 793 | py | Python | lnbits/extensions/usermanager/models.py | blackcoffeexbt/lnbits-legend | a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64 | [
"MIT"
] | 76 | 2021-11-02T22:19:59.000Z | 2022-03-30T18:01:33.000Z | lnbits/extensions/usermanager/models.py | blackcoffeexbt/lnbits-legend | a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64 | [
"MIT"
] | 100 | 2021-11-04T16:33:28.000Z | 2022-03-30T15:03:52.000Z | lnbits/extensions/usermanager/models.py | blackcoffeexbt/lnbits-legend | a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64 | [
"MIT"
] | 57 | 2021-11-08T06:43:59.000Z | 2022-03-31T08:53:16.000Z | from sqlite3 import Row
from fastapi.param_functions import Query
from pydantic import BaseModel
from typing import Optional
class CreateUserData(BaseModel):
user_name: str = Query(...)
wallet_name: str = Query(...)
admin_id: str = Query(...)
email: str = Query("")
password: str = Query("")
cla... | 19.341463 | 45 | 0.630517 | 98 | 793 | 5.020408 | 0.336735 | 0.130081 | 0.073171 | 0.073171 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0 | 0.001667 | 0.24338 | 793 | 40 | 46 | 19.825 | 0.818333 | 0 | 0 | 0.333333 | 0 | 0 | 0.008827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.133333 | 0.033333 | 0.966667 | 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 |
67ff40cfd4c8a6b2e69d26c388ef6020f73b4c94 | 2,151 | py | Python | river/migrations/0012_auto_20191113_1550.py | xuziheng1002/django-river | 7c7f23aa4790e451019c3e2b4d29f35852de17e6 | [
"BSD-3-Clause"
] | null | null | null | river/migrations/0012_auto_20191113_1550.py | xuziheng1002/django-river | 7c7f23aa4790e451019c3e2b4d29f35852de17e6 | [
"BSD-3-Clause"
] | null | null | null | river/migrations/0012_auto_20191113_1550.py | xuziheng1002/django-river | 7c7f23aa4790e451019c3e2b4d29f35852de17e6 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-11-13 21:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('river', '0011_auto_20191110_1411'),
]
operations =... | 45.765957 | 191 | 0.664807 | 228 | 2,151 | 6.052632 | 0.29386 | 0.046377 | 0.071014 | 0.111594 | 0.617391 | 0.611594 | 0.552174 | 0.471014 | 0.376812 | 0.376812 | 0 | 0.020214 | 0.218038 | 2,151 | 46 | 192 | 46.76087 | 0.800238 | 0.032078 | 0 | 0.45 | 1 | 0 | 0.243867 | 0.075517 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075 | 0 | 0.15 | 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 |
db031f4543bacf2c603d4a3ccb452d553dc3e0d6 | 486 | py | Python | user/migrations/0004_auto_20200813_1948.py | VladimirZubavlenko/ikaf42-app | 240e012675e4347370289554f34d9c60c8b6f35d | [
"MIT"
] | null | null | null | user/migrations/0004_auto_20200813_1948.py | VladimirZubavlenko/ikaf42-app | 240e012675e4347370289554f34d9c60c8b6f35d | [
"MIT"
] | null | null | null | user/migrations/0004_auto_20200813_1948.py | VladimirZubavlenko/ikaf42-app | 240e012675e4347370289554f34d9c60c8b6f35d | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-08-13 19:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0003_auto_20200813_1943'),
]
operations = [
migrations.AlterField(
model_name='user',
name='emailConfirmToke... | 25.578947 | 144 | 0.652263 | 50 | 486 | 6.2 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110512 | 0.236626 | 486 | 18 | 145 | 27 | 0.725067 | 0.092593 | 0 | 0 | 1 | 0 | 0.257403 | 0.143508 | 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 |
db063dcff6ca568e771df05b7ae7f650c6cd2aea | 4,270 | py | Python | interpreter.py | bendmorris/beaver | 4db3e1690145dee89d30144f3632396313218214 | [
"MIT"
] | 2 | 2018-10-06T08:35:41.000Z | 2019-04-03T21:15:02.000Z | interpreter.py | bendmorris/beaver | 4db3e1690145dee89d30144f3632396313218214 | [
"MIT"
] | null | null | null | interpreter.py | bendmorris/beaver | 4db3e1690145dee89d30144f3632396313218214 | [
"MIT"
] | null | null | null | import argparse
import os
import sys
from lib.graph import Graph
from lib.types import BeaverException, Uri
from lib.command import OutCommand
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from __init__ import __version__
arg_parser = argparse.ArgumentParser()
arg_parser.add_argument('--version', help='print ... | 32.846154 | 154 | 0.544028 | 468 | 4,270 | 4.809829 | 0.284188 | 0.047979 | 0.042648 | 0.07108 | 0.187916 | 0.187916 | 0.122168 | 0.075522 | 0.075522 | 0.075522 | 0 | 0.002536 | 0.35363 | 4,270 | 129 | 155 | 33.100775 | 0.813043 | 0.011475 | 0 | 0.319588 | 0 | 0 | 0.138421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010309 | 0.103093 | null | null | 0.113402 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db0693e026c74e759573c7252d4aff5ef90ae5ad | 242 | py | Python | euler/28.py | DevStarSJ/algorithmExercise | 66b42c54cdd594ff3f229613fd83446f8c1f9153 | [
"MIT"
] | null | null | null | euler/28.py | DevStarSJ/algorithmExercise | 66b42c54cdd594ff3f229613fd83446f8c1f9153 | [
"MIT"
] | null | null | null | euler/28.py | DevStarSJ/algorithmExercise | 66b42c54cdd594ff3f229613fd83446f8c1f9153 | [
"MIT"
] | null | null | null | def get_cross_sum(n):
start = 1
total = 1
for i in range(1, n):
step = i * 2
start = start + step
total += start * 4 + step * 6
start = start + step * 3
return total
print(get_cross_sum(501)) | 18.615385 | 37 | 0.516529 | 37 | 242 | 3.27027 | 0.540541 | 0.132231 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.380165 | 242 | 13 | 38 | 18.615385 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.1 | 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 |
db086691881d363f79126af6b8d208d584242b29 | 114,519 | py | Python | cisco-ios-xe/ydk/models/cisco_ios_xe/MPLS_LDP_STD_MIB.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xe/ydk/models/cisco_ios_xe/MPLS_LDP_STD_MIB.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xe/ydk/models/cisco_ios_xe/MPLS_LDP_STD_MIB.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ MPLS_LDP_STD_MIB
Copyright (C) The Internet Society (2004). The
initial version of this MIB module was published
in RFC 3815. For full legal notices see the RFC
itself or see\:
http\://www.ietf.org/copyrights/ianamib.html
This MIB contains managed object definitions for the
'Multiprotocol Label Switching, Labe... | 55.323188 | 1,407 | 0.642164 | 11,042 | 114,519 | 6.547002 | 0.067832 | 0.01303 | 0.018398 | 0.023917 | 0.567269 | 0.545316 | 0.522617 | 0.503472 | 0.49242 | 0.485752 | 0 | 0.011888 | 0.272828 | 114,519 | 2,069 | 1,408 | 55.349928 | 0.856223 | 0.458614 | 0 | 0.410334 | 0 | 0 | 0.295938 | 0.202035 | 0.010638 | 0 | 0 | 0 | 0 | 1 | 0.06535 | false | 0.00152 | 0.007599 | 0 | 0.1231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db098feaf4cd2fcd3ec50721e2eaf014b9b9cc97 | 892 | py | Python | atlas/foundations_contrib/src/foundations_contrib/helpers/shell.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_contrib/src/foundations_contrib/helpers/shell.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_contrib/src/foundations_contrib/helpers/shell.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
def find_bash():
import os
if os.name == 'nt':
return _find_windows_bash()
return '/bin/bash'
def _find_windows_bash():
winreg = _winreg_module()
import csv
StringIO = _get_string_io()
from os.path import dirname
sub_key = 'Directory\\shell\\git_shell\\command'
value = w... | 25.485714 | 73 | 0.659193 | 114 | 892 | 4.877193 | 0.403509 | 0.06295 | 0.053957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004412 | 0.237668 | 892 | 34 | 74 | 26.235294 | 0.813235 | 0 | 0 | 0 | 0 | 0 | 0.087542 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.259259 | 0 | 0.592593 | 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 |
db0ab3da5d70c76acedaa4a8af65bab398892ba2 | 9,104 | py | Python | app/models/user.py | tonyngophd/dronest | f0976c31cbbf6fb032851bd42ac566bb381608f0 | [
"MIT"
] | 13 | 2021-02-03T13:26:59.000Z | 2021-03-24T19:34:19.000Z | app/models/user.py | suasllc/dronest | f0976c31cbbf6fb032851bd42ac566bb381608f0 | [
"MIT"
] | null | null | null | app/models/user.py | suasllc/dronest | f0976c31cbbf6fb032851bd42ac566bb381608f0 | [
"MIT"
] | 1 | 2021-06-07T17:56:58.000Z | 2021-06-07T17:56:58.000Z | from .db import db
from .userfollower import UserFollower
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from sqlalchemy import Table, Column, Integer, ForeignKey, or_
from .directmessage import DirectMessage
from .userequipment import UserEquipment
from .equ... | 35.286822 | 174 | 0.672781 | 1,077 | 9,104 | 5.556175 | 0.164345 | 0.037099 | 0.042112 | 0.02607 | 0.557821 | 0.539271 | 0.487634 | 0.467914 | 0.429646 | 0.386698 | 0 | 0.001637 | 0.19464 | 9,104 | 257 | 175 | 35.424125 | 0.814512 | 0.071397 | 0 | 0.479167 | 1 | 0 | 0.109102 | 0.005815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088542 | false | 0.046875 | 0.057292 | 0.03125 | 0.338542 | 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 |
db0eabb87d8f110b34f799008d45115ae3494a8a | 470 | py | Python | tests/test_toolbar.py | WilliamMayor/django-mail-panel | 2c41f808a645d5d7bad90510f44e53d29981cf22 | [
"Apache-2.0"
] | null | null | null | tests/test_toolbar.py | WilliamMayor/django-mail-panel | 2c41f808a645d5d7bad90510f44e53d29981cf22 | [
"Apache-2.0"
] | null | null | null | tests/test_toolbar.py | WilliamMayor/django-mail-panel | 2c41f808a645d5d7bad90510f44e53d29981cf22 | [
"Apache-2.0"
] | null | null | null | from .context import *
import unittest
from mail_panel.panels import MailToolbarPanel
class ToolbarSuite(unittest.TestCase):
def test_panel(self):
"""
General 'does it run' test.
"""
p = MailToolbarPanel(None)
assert(p.toolbar is None)
def suite():
suite = unittest.Te... | 21.363636 | 51 | 0.668085 | 51 | 470 | 5.960784 | 0.627451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223404 | 470 | 21 | 52 | 22.380952 | 0.832877 | 0.057447 | 0 | 0 | 0 | 0 | 0.019093 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
db116d889b8b1d94133fabaa9ee920a870375f4b | 839 | py | Python | pangram.py | ZorbaTheStrange/pangram | f9fda95f119d328224f21f19690122e36be34482 | [
"MIT"
] | null | null | null | pangram.py | ZorbaTheStrange/pangram | f9fda95f119d328224f21f19690122e36be34482 | [
"MIT"
] | null | null | null | pangram.py | ZorbaTheStrange/pangram | f9fda95f119d328224f21f19690122e36be34482 | [
"MIT"
] | null | null | null | #! /usr/bin/python3
'''
panogram.py - this program recongizes pangrams.
by zorba
'''
import sys
def pangram_check(sentence_or_word):
'''
checks the user input to see if it is a pangram.
'''
letters = set('abcdefghijklmnopqrstuvwxyz')
if sentence_or_word.lower() == 'done':
z
for le... | 19.511628 | 131 | 0.623361 | 115 | 839 | 4.373913 | 0.469565 | 0.159046 | 0.194831 | 0.087475 | 0.178926 | 0.075547 | 0.075547 | 0 | 0 | 0 | 0 | 0.003247 | 0.265793 | 839 | 42 | 132 | 19.97619 | 0.813312 | 0.153754 | 0 | 0 | 0 | 0.058824 | 0.322388 | 0.038806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.176471 | 0.117647 | 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 |
db13d0f32b95cfef64253a43f004918a6c18619d | 232 | py | Python | Chapter-4 Sequence/Dictionary.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | Chapter-4 Sequence/Dictionary.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | Chapter-4 Sequence/Dictionary.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 10 15:31:57 2020
@author: Tarun Jaiswal
"""
dictone = {
"bookname": "Recursion Sutras",
"subject": "Recursion",
"author": "Champak Roy"
}
dicttwo = dict(dictone)
print(dicttwo) | 15.466667 | 35 | 0.633621 | 29 | 232 | 5.068966 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068063 | 0.176724 | 232 | 15 | 36 | 15.466667 | 0.701571 | 0.353448 | 0 | 0 | 0 | 0 | 0.398601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db1fd3d38056cafb0f7ff39c5a005804f923571f | 5,310 | py | Python | GoogleCloud/backend.py | ryanjsfx2424/HowToNFTs | f4cff7ad676d272815bd936eb142556f92540a32 | [
"MIT"
] | null | null | null | GoogleCloud/backend.py | ryanjsfx2424/HowToNFTs | f4cff7ad676d272815bd936eb142556f92540a32 | [
"MIT"
] | null | null | null | GoogleCloud/backend.py | ryanjsfx2424/HowToNFTs | f4cff7ad676d272815bd936eb142556f92540a32 | [
"MIT"
] | null | null | null | ## backend.py
"""
The purpose of this script is to continuously monitor the blockchain to
1) determine if a holder aquires or loses an NFT:
2) if they do, generate a new image/movie for the tokens they hold,
3) upload the new image/movie to the hosting service
4) update the metadata file
Repeat :)
(The above ordering ... | 32.378049 | 109 | 0.628625 | 742 | 5,310 | 4.443396 | 0.284367 | 0.029117 | 0.016682 | 0.025478 | 0.184107 | 0.15226 | 0.138308 | 0.138308 | 0.138308 | 0.138308 | 0 | 0.031128 | 0.225612 | 5,310 | 163 | 110 | 32.576687 | 0.770671 | 0.26403 | 0 | 0.090909 | 1 | 0 | 0.263103 | 0.074316 | 0 | 0 | 0.021904 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db29c33820407f3d84d5b4458a06a85d146e75c7 | 1,130 | py | Python | core/analyser.py | hryu/cpu_usage_analyser | bc870c4fd3be873033a7f43612c1a0379d5bf419 | [
"MIT"
] | null | null | null | core/analyser.py | hryu/cpu_usage_analyser | bc870c4fd3be873033a7f43612c1a0379d5bf419 | [
"MIT"
] | null | null | null | core/analyser.py | hryu/cpu_usage_analyser | bc870c4fd3be873033a7f43612c1a0379d5bf419 | [
"MIT"
] | null | null | null | class Analyser:
def __init__(self, callbacks, notifiers, state):
self.cbs = callbacks
self.state = state
self.notifiers = notifiers
def on_begin_analyse(self, timestamp):
pass
def on_end_analyse(self, timestamp):
pass
def analyse(self, event):
event_nam... | 32.285714 | 60 | 0.604425 | 135 | 1,130 | 4.8 | 0.288889 | 0.180556 | 0.117284 | 0.060185 | 0.361111 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0.002488 | 0.288496 | 1,130 | 34 | 61 | 33.235294 | 0.803483 | 0.013274 | 0 | 0.074074 | 0 | 0 | 0.085355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0.074074 | 0 | 0 | 0.222222 | 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 |
db2d0faef6bb46b40a8c415250b0a2a6b57926d0 | 3,841 | py | Python | sugarpidisplay/sugarpiconfig/views.py | szpaku80/SugarPiDisplay | 793c288afaad1b1b6921b0d29ee0e6a537e42384 | [
"MIT"
] | 1 | 2022-02-12T20:39:20.000Z | 2022-02-12T20:39:20.000Z | sugarpidisplay/sugarpiconfig/views.py | szpaku80/SugarPiDisplay | 793c288afaad1b1b6921b0d29ee0e6a537e42384 | [
"MIT"
] | null | null | null | sugarpidisplay/sugarpiconfig/views.py | szpaku80/SugarPiDisplay | 793c288afaad1b1b6921b0d29ee0e6a537e42384 | [
"MIT"
] | null | null | null | """
Routes and views for the flask application.
"""
import os
import json
from flask import Flask, redirect, request, render_template, flash
from pathlib import Path
from flask_wtf import FlaskForm
from wtforms import StringField,SelectField,PasswordField,BooleanField
from wtforms.validators import InputRequired,Valida... | 35.564815 | 93 | 0.664931 | 471 | 3,841 | 5.208068 | 0.26327 | 0.06115 | 0.028536 | 0.03669 | 0.293518 | 0.254382 | 0.15002 | 0.104362 | 0.079087 | 0.079087 | 0 | 0.000332 | 0.215309 | 3,841 | 107 | 94 | 35.897196 | 0.813537 | 0.039573 | 0 | 0.136364 | 0 | 0 | 0.179125 | 0.018755 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079545 | false | 0.068182 | 0.090909 | 0.022727 | 0.329545 | 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 |
db2d5607d06728d0c91675bdab230c329ed3e400 | 2,001 | py | Python | progressao_aritmeticav3.py | eduardobaltazarmarfim/PythonC | 8e44b4f191582c73cca6df98120ab142145c4ba1 | [
"MIT"
] | null | null | null | progressao_aritmeticav3.py | eduardobaltazarmarfim/PythonC | 8e44b4f191582c73cca6df98120ab142145c4ba1 | [
"MIT"
] | null | null | null | progressao_aritmeticav3.py | eduardobaltazarmarfim/PythonC | 8e44b4f191582c73cca6df98120ab142145c4ba1 | [
"MIT"
] | null | null | null | def retorno():
resp=input('Deseja executar o programa novamente?[s/n] ')
if(resp=='S' or resp=='s'):
verificar()
else:
print('Processo finalizado com sucesso!')
pass
def cabecalho(titulo):
print('-'*30)
print(' '*9+titulo+' '*15)
print('-'*30)
pass
def mensage... | 17.4 | 91 | 0.410795 | 183 | 2,001 | 4.480874 | 0.344262 | 0.039024 | 0.058537 | 0.041463 | 0.446341 | 0.446341 | 0.446341 | 0.446341 | 0.446341 | 0.446341 | 0 | 0.024209 | 0.463268 | 2,001 | 115 | 92 | 17.4 | 0.739292 | 0 | 0 | 0.606557 | 0 | 0 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0.065574 | 0 | 0 | 0.065574 | 0.180328 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db308acc7784941bed9244b19f0ab77519bcb972 | 512 | py | Python | unfollow_parfum.py | AntonPukhonin/InstaPy | 0c480474ec39e174fa4256b48bc25bc4ecf7b6aa | [
"MIT"
] | null | null | null | unfollow_parfum.py | AntonPukhonin/InstaPy | 0c480474ec39e174fa4256b48bc25bc4ecf7b6aa | [
"MIT"
] | null | null | null | unfollow_parfum.py | AntonPukhonin/InstaPy | 0c480474ec39e174fa4256b48bc25bc4ecf7b6aa | [
"MIT"
] | null | null | null | from instapy import InstaPy
#insta_username = 'antonpuhonin'
#insta_password = 'Bulbazavr36'
insta_username = 'tonparfums'
insta_password = 'ov9AN6NlnV'
try:
session = InstaPy(username=insta_username,
password=insta_password,
headless_browser=True,
... | 24.380952 | 122 | 0.667969 | 51 | 512 | 6.509804 | 0.607843 | 0.11747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03599 | 0.240234 | 512 | 20 | 123 | 25.6 | 0.817481 | 0.119141 | 0 | 0 | 0 | 0 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db3b169862361f20c4e85e1f3babf59d22b794c5 | 10,622 | py | Python | src/lib/GL/glutbindings/glutbind.py | kokizzu/v8cgi | eafd3bd7a5dd1d60e2f1483701a52e7ac0ae0eba | [
"BSD-3-Clause"
] | 4 | 2016-01-31T08:49:35.000Z | 2021-07-12T17:31:42.000Z | src/lib/GL/glutbindings/glutbind.py | kokizzu/v8cgi | eafd3bd7a5dd1d60e2f1483701a52e7ac0ae0eba | [
"BSD-3-Clause"
] | null | null | null | src/lib/GL/glutbindings/glutbind.py | kokizzu/v8cgi | eafd3bd7a5dd1d60e2f1483701a52e7ac0ae0eba | [
"BSD-3-Clause"
] | 1 | 2021-06-03T22:51:17.000Z | 2021-06-03T22:51:17.000Z | import sys
import re
PATH_GLUT = 'glut.h'
FILE_GLUT = 'glutbind.cpp'
TEMPLATES = ['glutInit', 'glutTimerFunc']
def main():
"""
Still some things have to be hand-made, like
changing argv pargc values in the glutInit method definition
Also change the TimerFunc method with some magic.
"""
make_... | 33.828025 | 188 | 0.553568 | 1,287 | 10,622 | 4.464646 | 0.189588 | 0.020884 | 0.014619 | 0.017403 | 0.223112 | 0.160808 | 0.144448 | 0.10999 | 0.085973 | 0.069962 | 0 | 0.008604 | 0.266899 | 10,622 | 313 | 189 | 33.936102 | 0.729292 | 0.046978 | 0 | 0.182222 | 0 | 0.013333 | 0.320265 | 0.08392 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013333 | 0.008889 | null | null | 0.031111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e1d379ffe45c72193de30757e4bad02874d4385a | 2,687 | py | Python | iMessSpam.py | fabiopigi/iMessageSpam | 4d1984f5286f5cf0229d414470a4dc60e5ba12d2 | [
"MIT"
] | null | null | null | iMessSpam.py | fabiopigi/iMessageSpam | 4d1984f5286f5cf0229d414470a4dc60e5ba12d2 | [
"MIT"
] | null | null | null | iMessSpam.py | fabiopigi/iMessageSpam | 4d1984f5286f5cf0229d414470a4dc60e5ba12d2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#import some dope
import sys
import os
import re
import time
from random import randrange
from itertools import repeat
numbers = {
'adam' :"+41111111111",
'bob' :"+41222222222",
'chris' :"+41333333333",
'dave' :"+41444444444",
}
print "Gespeicherte Empfänger: "
for name in numbers:
... | 23.163793 | 175 | 0.628582 | 367 | 2,687 | 4.580381 | 0.433243 | 0.038073 | 0.039262 | 0.030339 | 0.1047 | 0.072576 | 0.072576 | 0.04878 | 0 | 0 | 0 | 0.042438 | 0.175661 | 2,687 | 115 | 176 | 23.365217 | 0.716479 | 0.018608 | 0 | 0.268293 | 0 | 0.02439 | 0.329658 | 0.007985 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085366 | null | null | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e1dd3f3740e16e48cf7fbe8dce94d776bef908fd | 1,139 | py | Python | tests/encoding-utils/test_big_endian_integer.py | carver/ethereum-utils | 7ec2495b25107776cb4e0e4a79af8a8c64f622c4 | [
"MIT"
] | null | null | null | tests/encoding-utils/test_big_endian_integer.py | carver/ethereum-utils | 7ec2495b25107776cb4e0e4a79af8a8c64f622c4 | [
"MIT"
] | null | null | null | tests/encoding-utils/test_big_endian_integer.py | carver/ethereum-utils | 7ec2495b25107776cb4e0e4a79af8a8c64f622c4 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import pytest
from hypothesis import (
strategies as st,
given,
)
from eth_utils.encoding import (
int_to_big_endian,
big_endian_to_int,
)
@pytest.mark.parametrize(
'as_int,as_big_endian',
(
(0, b'\x00'),
(1, b'\x01'),
(7, b'\x... | 22.78 | 60 | 0.665496 | 181 | 1,139 | 3.790055 | 0.292818 | 0.236152 | 0.09621 | 0.081633 | 0.332362 | 0.166181 | 0.166181 | 0.081633 | 0 | 0 | 0 | 0.046512 | 0.207199 | 1,139 | 49 | 61 | 23.244898 | 0.713178 | 0 | 0 | 0.051282 | 0 | 0 | 0.052678 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.076923 | false | 0 | 0.102564 | 0 | 0.179487 | 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 |
e1dfa37abe08ed294d2a701673731176a4e461e5 | 3,500 | py | Python | jamf/setconfig.py | pythoninthegrass/python-jamf | f71a44f4565fc2824ce6daf536359d563ab75ea3 | [
"MIT"
] | 25 | 2020-11-02T18:16:22.000Z | 2022-03-07T04:36:14.000Z | jamf/setconfig.py | pythoninthegrass/python-jamf | f71a44f4565fc2824ce6daf536359d563ab75ea3 | [
"MIT"
] | 17 | 2020-12-22T19:24:05.000Z | 2022-03-02T22:39:04.000Z | jamf/setconfig.py | pythoninthegrass/python-jamf | f71a44f4565fc2824ce6daf536359d563ab75ea3 | [
"MIT"
] | 12 | 2020-10-28T19:03:29.000Z | 2022-03-01T08:29:52.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Jamf Config
"""
__author__ = "Sam Forester"
__email__ = "sam.forester@utah.edu"
__copyright__ = "Copyright (c) 2020 University of Utah, Marriott Library"
__license__ = "MIT"
__version__ = "1.0.4"
import argparse
import getpass
import jamf
import logging
import plat... | 28.225806 | 86 | 0.575429 | 382 | 3,500 | 5.08377 | 0.332461 | 0.056643 | 0.040165 | 0.064882 | 0.201339 | 0.189495 | 0.136972 | 0.136972 | 0.136972 | 0.136972 | 0 | 0.004926 | 0.304 | 3,500 | 123 | 87 | 28.455285 | 0.792282 | 0.04 | 0 | 0.237624 | 0 | 0.009901 | 0.176807 | 0.006325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039604 | false | 0.09901 | 0.079208 | 0 | 0.138614 | 0.089109 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e1e00ce354ffc24242ad31b4a0c1c5120baf617a | 979 | py | Python | src/menuResponse/migrations/0001_initial.py | miguelaav/dev | 5ade9d0b393f48c9cc3b160b6ede4a03c29addea | [
"bzip2-1.0.6"
] | null | null | null | src/menuResponse/migrations/0001_initial.py | miguelaav/dev | 5ade9d0b393f48c9cc3b160b6ede4a03c29addea | [
"bzip2-1.0.6"
] | 6 | 2020-06-05T20:02:33.000Z | 2022-03-11T23:43:11.000Z | src/menuResponse/migrations/0001_initial.py | miguelaav/dev | 5ade9d0b393f48c9cc3b160b6ede4a03c29addea | [
"bzip2-1.0.6"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-03-12 17:41
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('menuCreate', '0001_initial'),
... | 32.633333 | 124 | 0.622063 | 105 | 979 | 5.638095 | 0.619048 | 0.054054 | 0.070946 | 0.111486 | 0.185811 | 0.185811 | 0.185811 | 0.185811 | 0.185811 | 0.185811 | 0 | 0.038978 | 0.240041 | 979 | 29 | 125 | 33.758621 | 0.75672 | 0.07048 | 0 | 0 | 1 | 0 | 0.140022 | 0.051819 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 |
e1e2d0a67c83cc0cf6dbbc60b3dc2efff897636e | 10,889 | py | Python | datacube/drivers/s3/storage/s3aio/s3aio.py | Zac-HD/datacube-core | ebc2025b6fb9d22fb406cdf5f79eba6d144c57e3 | [
"Apache-2.0"
] | 2 | 2018-12-02T11:33:50.000Z | 2021-04-24T11:42:42.000Z | datacube/drivers/s3/storage/s3aio/s3aio.py | Zac-HD/datacube-core | ebc2025b6fb9d22fb406cdf5f79eba6d144c57e3 | [
"Apache-2.0"
] | 103 | 2018-03-21T15:00:05.000Z | 2020-06-04T05:40:25.000Z | datacube/drivers/s3/storage/s3aio/s3aio.py | roarmstrong/datacube-core | 5e38638dabd9e5112e92b503fae6a83c8dcc4902 | [
"Apache-2.0"
] | null | null | null | """
S3AIO Class
Array access to a single S3 object
"""
from __future__ import absolute_import
import SharedArray as sa
import zstd
from itertools import repeat, product
import numpy as np
from pathos.multiprocessing import ProcessingPool
from six.moves import zip
try:
from StringIO import StringIO
except Impor... | 39.452899 | 113 | 0.612545 | 1,581 | 10,889 | 4.065781 | 0.126502 | 0.046671 | 0.019602 | 0.028314 | 0.684816 | 0.680772 | 0.660236 | 0.630834 | 0.61201 | 0.601431 | 0 | 0.020224 | 0.287079 | 10,889 | 275 | 114 | 39.596364 | 0.807806 | 0.276242 | 0 | 0.61194 | 0 | 0 | 0.000672 | 0 | 0 | 0 | 0 | 0.007273 | 0 | 1 | 0.067164 | false | 0 | 0.08209 | 0.007463 | 0.223881 | 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 |
e1e4a6c549324fabd37261ecd95b7fc5b7e7bd39 | 5,447 | py | Python | make_snapshot.py | trquinn/ICgen | 0d7f05187a955be7fa3dee2f638cfcb074ebadcd | [
"MIT"
] | 1 | 2021-09-14T12:03:03.000Z | 2021-09-14T12:03:03.000Z | make_snapshot.py | trquinn/ICgen | 0d7f05187a955be7fa3dee2f638cfcb074ebadcd | [
"MIT"
] | null | null | null | make_snapshot.py | trquinn/ICgen | 0d7f05187a955be7fa3dee2f638cfcb074ebadcd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 21 15:11:31 2014
@author: ibackus
"""
__version__ = "$Revision: 1 $"
# $Source$
import pynbody
SimArray = pynbody.array.SimArray
import numpy as np
import gc
import os
import isaac
import calc_velocity
import ICgen_utils
import ICglobal_settings
global_settings = ICglo... | 33.213415 | 98 | 0.572242 | 624 | 5,447 | 4.88141 | 0.323718 | 0.009849 | 0.015758 | 0.017728 | 0.039724 | 0.031517 | 0.031517 | 0.031517 | 0.031517 | 0 | 0 | 0.011358 | 0.208004 | 5,447 | 164 | 99 | 33.213415 | 0.694715 | 0.312833 | 0 | 0.026667 | 0 | 0 | 0.091122 | 0.006153 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e1e993089a256f12c7dadf856a619e12a83973e8 | 918 | py | Python | backend/apps/api/system/v1/serializers/groups.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | null | null | null | backend/apps/api/system/v1/serializers/groups.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | null | null | null | backend/apps/api/system/v1/serializers/groups.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | null | null | null | from rest_framework import serializers
from ... import models
class DepartmentSerializers(serializers.ModelSerializer):
"""
Сериализатор кафедр
"""
class Meta:
model = models.Department
fields = ["short_name", "full_name"]
class StudentSerializers(serializers.ModelSerializer):
"... | 21.348837 | 67 | 0.606754 | 70 | 918 | 7.885714 | 0.528571 | 0.141304 | 0.206522 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287582 | 918 | 42 | 68 | 21.857143 | 0.844037 | 0.081699 | 0 | 0.130435 | 0 | 0 | 0.110414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e1f180db019536ccc2e9f00c32c47da031376111 | 4,266 | py | Python | run.py | kbeyer/RPi-LED-SpectrumAnalyzer | f5a5f1210f02188599eb308f5737392ce8c93218 | [
"MIT"
] | 14 | 2015-01-09T12:26:06.000Z | 2021-03-22T22:16:53.000Z | run.py | kbeyer/RPi-LED-SpectrumAnalyzer | f5a5f1210f02188599eb308f5737392ce8c93218 | [
"MIT"
] | 4 | 2015-07-19T07:20:51.000Z | 2017-02-01T16:11:22.000Z | run.py | kbeyer/RPi-LED-SpectrumAnalyzer | f5a5f1210f02188599eb308f5737392ce8c93218 | [
"MIT"
] | 4 | 2016-03-07T12:12:08.000Z | 2018-03-04T21:57:13.000Z | """ Main entry point for running the demo. """
# Standard library
import time
import sys
# Third party library
import alsaaudio as aa
# Local library
from char import show_text
from hs_logo import draw_logo
from leds import ColumnedLEDStrip
from music import calculate_levels, read_musicfile_in_chunks, calculate_col... | 28.44 | 109 | 0.665495 | 551 | 4,266 | 4.900181 | 0.306715 | 0.05037 | 0.026667 | 0.021111 | 0.187778 | 0.11 | 0.064815 | 0.053333 | 0.053333 | 0.053333 | 0 | 0.017702 | 0.245195 | 4,266 | 149 | 110 | 28.630872 | 0.820807 | 0.017581 | 0 | 0.091743 | 0 | 0 | 0.080676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018349 | 0.091743 | null | null | 0.06422 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e1f5bc34418af89095c0d30d7b41fe28a2137a99 | 695 | py | Python | tests/profiling/test_scheduler.py | uniq10/dd-trace-py | ca9ce1fe552cf03c2828bcd160e537336aa275d5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-10-17T14:55:46.000Z | 2020-10-17T14:55:46.000Z | tests/profiling/test_scheduler.py | uniq10/dd-trace-py | ca9ce1fe552cf03c2828bcd160e537336aa275d5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-12-22T16:56:55.000Z | 2020-12-22T16:56:55.000Z | tests/profiling/test_scheduler.py | uniq10/dd-trace-py | ca9ce1fe552cf03c2828bcd160e537336aa275d5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-12-22T16:54:02.000Z | 2020-12-22T16:54:02.000Z | # -*- encoding: utf-8 -*-
from ddtrace.profiling import event
from ddtrace.profiling import exporter
from ddtrace.profiling import recorder
from ddtrace.profiling import scheduler
class _FailExporter(exporter.Exporter):
@staticmethod
def export(events):
raise Exception("BOO!")
def test_exporter_fail... | 23.965517 | 68 | 0.689209 | 83 | 695 | 5.674699 | 0.421687 | 0.169851 | 0.169851 | 0.220807 | 0.097665 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.184173 | 695 | 28 | 69 | 24.821429 | 0.825397 | 0.033094 | 0 | 0.190476 | 0 | 0 | 0.061194 | 0.055224 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.380952 | 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 |
e1f95d627c633bc21a45b92e2b2fbf936f530ed6 | 1,916 | py | Python | logistic-regression/code.py | kalpeshsnaik09/ga-learner-dsmp-repo | b0b8b0b1e8f91d6462d1ea129f86595b5200a4c4 | [
"MIT"
] | null | null | null | logistic-regression/code.py | kalpeshsnaik09/ga-learner-dsmp-repo | b0b8b0b1e8f91d6462d1ea129f86595b5200a4c4 | [
"MIT"
] | null | null | null | logistic-regression/code.py | kalpeshsnaik09/ga-learner-dsmp-repo | b0b8b0b1e8f91d6462d1ea129f86595b5200a4c4 | [
"MIT"
] | null | null | null | # --------------
# import the libraries
import numpy as np
import pandas as pd
import seaborn as sns
from sklearn.model_selection import train_test_split
import warnings
warnings.filterwarnings('ignore')
# Code starts here
df=pd.read_csv(path)
print(df.head())
X=df.drop(columns='insuranceclaim')
y=df['insuranceclaim']... | 20.602151 | 80 | 0.731733 | 310 | 1,916 | 4.348387 | 0.329032 | 0.031157 | 0.062315 | 0.029674 | 0.219585 | 0.136499 | 0.136499 | 0.060831 | 0 | 0 | 0 | 0.01115 | 0.110647 | 1,916 | 92 | 81 | 20.826087 | 0.77993 | 0.171712 | 0 | 0.152174 | 0 | 0 | 0.053708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.304348 | 0 | 0.304348 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c008713b35128a47b245f9ad063e4cc7dcc2e046 | 5,090 | py | Python | shuttl/tests/test_views/test_organization.py | shuttl-io/shuttl-cms | 50c85db0de42e901c371561270be6425cc65eccc | [
"MIT"
] | 2 | 2017-06-26T18:06:58.000Z | 2017-10-11T21:45:29.000Z | shuttl/tests/test_views/test_organization.py | shuttl-io/shuttl-cms | 50c85db0de42e901c371561270be6425cc65eccc | [
"MIT"
] | null | null | null | shuttl/tests/test_views/test_organization.py | shuttl-io/shuttl-cms | 50c85db0de42e901c371561270be6425cc65eccc | [
"MIT"
] | null | null | null | import json
from shuttl import app
from shuttl.tests import testbase
from shuttl.Models.Reseller import Reseller
from shuttl.Models.organization import Organization, OrganizationDoesNotExistException
class OrganizationViewTest(testbase.BaseTest):
def _setUp(self):
pass
def test_index(self):
#... | 40.72 | 117 | 0.621022 | 545 | 5,090 | 5.748624 | 0.157798 | 0.10533 | 0.049154 | 0.066071 | 0.678902 | 0.557932 | 0.422598 | 0.330993 | 0.268433 | 0.16406 | 0 | 0.020112 | 0.228291 | 5,090 | 124 | 118 | 41.048387 | 0.777495 | 0.01277 | 0 | 0.291262 | 0 | 0 | 0.11244 | 0 | 0 | 0 | 0 | 0 | 0.23301 | 1 | 0.087379 | false | 0.07767 | 0.048544 | 0.009709 | 0.15534 | 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 |
c00b0d921904cae0f3219c2a2df1410ec3c0ae18 | 3,477 | py | Python | emissary/controllers/load.py | LukeB42/Emissary | 31629a8baedc91a9b60c551a01b2b45372b9a8c7 | [
"MIT"
] | 193 | 2015-06-20T23:46:05.000Z | 2021-02-16T14:04:29.000Z | emissary/controllers/load.py | LukeB42/Emissary | 31629a8baedc91a9b60c551a01b2b45372b9a8c7 | [
"MIT"
] | 4 | 2015-08-23T15:25:55.000Z | 2016-01-06T11:29:20.000Z | emissary/controllers/load.py | LukeB42/Emissary | 31629a8baedc91a9b60c551a01b2b45372b9a8c7 | [
"MIT"
] | 21 | 2015-07-05T12:20:06.000Z | 2019-07-12T08:07:46.000Z | # This file contains functions designed for
# loading cron tables and storing new feeds.
from emissary import db
from sqlalchemy import and_
from emissary.controllers.utils import spaceparse
from emissary.controllers.cron import parse_timings
from emissary.models import APIKey, Feed, FeedGroup
def create_feed(log, db... | 27.816 | 91 | 0.6543 | 538 | 3,477 | 4.208178 | 0.267658 | 0.031802 | 0.024735 | 0.013251 | 0.163869 | 0.121466 | 0.111749 | 0.068463 | 0.068463 | 0.059187 | 0 | 0.002858 | 0.194996 | 3,477 | 124 | 92 | 28.040323 | 0.806002 | 0.100086 | 0 | 0.218391 | 0 | 0.011494 | 0.205831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057471 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c012b837e3e30a6eafa5b481e3b7199fb7fec744 | 369 | py | Python | src/utils/tools.py | Xuenew/2c | 2e6ada011bcc8bbe19d2e745fcc9eff1fc31a520 | [
"Apache-2.0"
] | null | null | null | src/utils/tools.py | Xuenew/2c | 2e6ada011bcc8bbe19d2e745fcc9eff1fc31a520 | [
"Apache-2.0"
] | null | null | null | src/utils/tools.py | Xuenew/2c | 2e6ada011bcc8bbe19d2e745fcc9eff1fc31a520 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Created by howie.hu at 2021/4/7.
Description:通用函数
Changelog: all notable changes to this file will be documented
"""
import hashlib
def md5_encryption(string: str) -> str:
"""
对字符串进行md5加密
:param string: 加密目标字符串
:return:
"""
m = hashlib.md5()
m.update(... | 18.45 | 66 | 0.631436 | 49 | 369 | 4.734694 | 0.836735 | 0.060345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035461 | 0.235772 | 369 | 19 | 67 | 19.421053 | 0.787234 | 0.479675 | 0 | 0 | 0 | 0 | 0.033557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c028333a0436a3c88c477f3244b6bd0fca21d64d | 1,600 | py | Python | rest_api/views.py | vikash98k/django-rest-api | 51c83a5d9c65f03b4b790ac965cd2222c6326752 | [
"MIT"
] | 1 | 2021-11-15T03:29:24.000Z | 2021-11-15T03:29:24.000Z | rest_api/views.py | vikash98k/django-rest-api | 51c83a5d9c65f03b4b790ac965cd2222c6326752 | [
"MIT"
] | null | null | null | rest_api/views.py | vikash98k/django-rest-api | 51c83a5d9c65f03b4b790ac965cd2222c6326752 | [
"MIT"
] | null | null | null | from rest_framework import generics
from .permissions import IsOwner
from .serializers import BucketlistSerializer, UserSerializer
from .models import Bucketlist
from django.contrib.auth.models import User
from rest_framework.permissions import IsAuthenticated
from rest_framework.authentication import SessionAuthentica... | 39.02439 | 71 | 0.775625 | 158 | 1,600 | 7.753165 | 0.405063 | 0.032653 | 0.065306 | 0.081633 | 0.435918 | 0.435918 | 0.435918 | 0.427755 | 0.427755 | 0.427755 | 0 | 0 | 0.149375 | 1,600 | 40 | 72 | 40 | 0.900073 | 0.14625 | 0 | 0.551724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.241379 | 0 | 0.965517 | 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 |
c028ccbb3fd75e9d2a67753c98bec97a1ad49fb6 | 7,113 | py | Python | darling_ansible/python_venv/lib/python3.7/site-packages/oci/core/models/create_ip_sec_tunnel_bgp_session_details.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/core/models/create_ip_sec_tunnel_bgp_session_details.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/core/models/create_ip_sec_tunnel_bgp_session_details.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | 1 | 2020-06-25T03:12:58.000Z | 2020-06-25T03:12:58.000Z | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 37.240838 | 245 | 0.679882 | 927 | 7,113 | 5.04315 | 0.159655 | 0.084706 | 0.065455 | 0.029091 | 0.76877 | 0.67508 | 0.660535 | 0.559572 | 0.503529 | 0.474011 | 0 | 0.018822 | 0.253058 | 7,113 | 190 | 246 | 37.436842 | 0.861095 | 0.647406 | 0 | 0.068182 | 0 | 0 | 0.095265 | 0.023398 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0.045455 | 0.454545 | 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 |
c029732da347682368446ad63ee588078d4cc569 | 752 | py | Python | server_django/prikmeter/views.py | ttencate/smartmetertap | c768a5818766f897cb5dcd223286b173b31a3a65 | [
"BSD-3-Clause"
] | 1 | 2017-10-26T05:28:08.000Z | 2017-10-26T05:28:08.000Z | server_django/prikmeter/views.py | ttencate/smartmetertap | c768a5818766f897cb5dcd223286b173b31a3a65 | [
"BSD-3-Clause"
] | 9 | 2017-10-16T07:15:51.000Z | 2021-09-11T07:39:40.000Z | server_django/prikmeter/views.py | ttencate/smartmetertap | c768a5818766f897cb5dcd223286b173b31a3a65 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import auth, messages
from django.shortcuts import redirect, render
from django.views.decorators.http import require_POST, require_safe
@require_safe
def index(request):
context = {}
return render(request, 'prikmeter/index.html', context)
@require_POST
def login(request):
email = req... | 26.857143 | 69 | 0.720745 | 93 | 752 | 5.774194 | 0.376344 | 0.081937 | 0.052142 | 0.09311 | 0.167598 | 0.167598 | 0.167598 | 0.167598 | 0 | 0 | 0 | 0 | 0.163564 | 752 | 27 | 70 | 27.851852 | 0.853736 | 0 | 0 | 0.190476 | 0 | 0 | 0.132979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c02b02d3a9106d7127a9a094f2f01f8ba90e6fb6 | 22,963 | py | Python | app/src/main/Python/Translate.py | tangcan1600/XuMiJie | 2e47d519c1c62ec3eabb576d80f783dd62052f44 | [
"MIT"
] | null | null | null | app/src/main/Python/Translate.py | tangcan1600/XuMiJie | 2e47d519c1c62ec3eabb576d80f783dd62052f44 | [
"MIT"
] | null | null | null | app/src/main/Python/Translate.py | tangcan1600/XuMiJie | 2e47d519c1c62ec3eabb576d80f783dd62052f44 | [
"MIT"
] | null | null | null | import time, sys, os, hashlib, json, re
import requests, random, js2py
import urllib.request
import urllib.parse
# 检验是否含有中文字符
def language(strs):
for char in strs:
if (u'\u4e00' <= char and char <= u'\u9fff'):
return 'zh', 'en' # 含有中文
return 'en', 'zh' # 不含有中文
class Baidu():
def __... | 36.276461 | 1,459 | 0.512041 | 2,713 | 22,963 | 4.261703 | 0.276815 | 0.028023 | 0.015568 | 0.011763 | 0.263017 | 0.222885 | 0.181716 | 0.117194 | 0.077755 | 0.067203 | 0 | 0.089489 | 0.314332 | 22,963 | 632 | 1,460 | 36.333861 | 0.64484 | 0.029874 | 0 | 0.11501 | 0 | 0.021443 | 0.396284 | 0.108025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060429 | false | 0.001949 | 0.013645 | 0 | 0.173489 | 0.003899 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c02c5be917c2e7c70614350c8ed104d79b0759b4 | 1,266 | py | Python | jina/executors/evaluators/rank/recall.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | null | null | null | jina/executors/evaluators/rank/recall.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | null | null | null | jina/executors/evaluators/rank/recall.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | null | null | null | from typing import Sequence, Any, Optional
from . import BaseRankingEvaluator
class RecallEvaluator(BaseRankingEvaluator):
"""A :class:`RecallEvaluator` evaluates the Precision of the search.
It computes how many of the first given `eval_at` groundtruth are found in the matches
"""
metric = 'Reca... | 38.363636 | 120 | 0.648499 | 162 | 1,266 | 4.944444 | 0.5 | 0.059925 | 0.062422 | 0.029963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003215 | 0.263033 | 1,266 | 32 | 121 | 39.5625 | 0.855305 | 0.406003 | 0 | 0 | 0 | 0 | 0.011869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c02ddc618f6444651370434e959eed89c5b43ed2 | 2,881 | py | Python | plugins/commands.py | Kalpesh0/Project01 | 42383a3aa4a3f17ab69dd01357bfbb0740ba965b | [
"MIT"
] | null | null | null | plugins/commands.py | Kalpesh0/Project01 | 42383a3aa4a3f17ab69dd01357bfbb0740ba965b | [
"MIT"
] | null | null | null | plugins/commands.py | Kalpesh0/Project01 | 42383a3aa4a3f17ab69dd01357bfbb0740ba965b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @REQUEST_M0viz
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
from script import script
@Client.on_message(filters.command(["start"]) & filters.private)
async def start(client, message):
try:
awa... | 36.468354 | 373 | 0.532107 | 277 | 2,881 | 5.386282 | 0.350181 | 0.048257 | 0.016086 | 0.021448 | 0.608579 | 0.52882 | 0.520777 | 0.520777 | 0.426944 | 0.281501 | 0 | 0.047283 | 0.361333 | 2,881 | 78 | 374 | 36.935897 | 0.758696 | 0.020132 | 0 | 0.463768 | 0 | 0.014493 | 0.182979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.043478 | 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 |
c02e20b826436ffe36a314fe9b02b8f0b79df9d5 | 3,583 | py | Python | gpjax/utils.py | thomaspinder/GPJax | 929fcb88d13d15bb10e1175491dbc3e79622325a | [
"Apache-2.0"
] | 44 | 2020-12-03T14:07:39.000Z | 2022-03-14T17:45:34.000Z | gpjax/utils.py | thomaspinder/GPJax | 929fcb88d13d15bb10e1175491dbc3e79622325a | [
"Apache-2.0"
] | 28 | 2020-12-05T08:54:45.000Z | 2022-03-01T09:56:50.000Z | gpjax/utils.py | thomaspinder/GPJax | 929fcb88d13d15bb10e1175491dbc3e79622325a | [
"Apache-2.0"
] | 7 | 2021-02-05T12:37:57.000Z | 2022-03-13T13:00:20.000Z | from copy import deepcopy
from typing import Tuple
import jax.numpy as jnp
from jax.scipy.linalg import cho_factor, cho_solve
from multipledispatch import dispatch
from .types import Array
def I(n: int) -> Array:
"""
Compute an n x n identity matrix.
:param n: The size of of the matrix.
:return: An ... | 33.485981 | 117 | 0.706391 | 513 | 3,583 | 4.88499 | 0.274854 | 0.089385 | 0.040702 | 0.067039 | 0.332003 | 0.300878 | 0.21668 | 0.082203 | 0.052674 | 0.052674 | 0 | 0.000712 | 0.215741 | 3,583 | 106 | 118 | 33.801887 | 0.891103 | 0.532236 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c032d43f5d12902206b5df36fccb87158ca21d3e | 466 | py | Python | setup.py | Kamuish/StarSearch | 63e5f6ee544ab1d48ae5b0d8e9067cedccc40d1e | [
"MIT"
] | null | null | null | setup.py | Kamuish/StarSearch | 63e5f6ee544ab1d48ae5b0d8e9067cedccc40d1e | [
"MIT"
] | null | null | null | setup.py | Kamuish/StarSearch | 63e5f6ee544ab1d48ae5b0d8e9067cedccc40d1e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='starsearch',
version='0.3',
description='Package to dig into the ESO archives',
author='João Camacho',
author_email='joao.camacho@astro.up.pt',
license='MIT',
url='https://github.com/jdavidrcamac... | 24.526316 | 57 | 0.592275 | 50 | 466 | 5.48 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.248927 | 466 | 18 | 58 | 25.888889 | 0.771429 | 0.092275 | 0 | 0 | 0 | 0 | 0.389549 | 0.057007 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c03e4bfd7eee3d8023944a7e3e5535ae1233ba11 | 1,341 | py | Python | build.py | jmetzz/coffee-chatbot | da7e76d9532c8e5e38a47a19ffed1f1e27601766 | [
"MIT"
] | null | null | null | build.py | jmetzz/coffee-chatbot | da7e76d9532c8e5e38a47a19ffed1f1e27601766 | [
"MIT"
] | null | null | null | build.py | jmetzz/coffee-chatbot | da7e76d9532c8e5e38a47a19ffed1f1e27601766 | [
"MIT"
] | null | null | null | from pybuilder.core import use_plugin, init
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.coverage")
name = "ActionServerPybuilder"
default_task = ['install_dependencies', 'analyze', 'publish']
@init
def set_properties... | 35.289474 | 78 | 0.774049 | 172 | 1,341 | 5.709302 | 0.418605 | 0.101833 | 0.183299 | 0.14664 | 0.177189 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.112603 | 1,341 | 37 | 79 | 36.243243 | 0.810924 | 0.089485 | 0 | 0.103448 | 0 | 0 | 0.332512 | 0.152709 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.034483 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c04331c5a5c72cc4fd22977bf1a531a2facdca4e | 445 | py | Python | Cleaning.py | TharindraParanagama/MovieClassification | 2cdee9a2aaf1f55d0a59b20181e69c524c4d5895 | [
"MIT"
] | null | null | null | Cleaning.py | TharindraParanagama/MovieClassification | 2cdee9a2aaf1f55d0a59b20181e69c524c4d5895 | [
"MIT"
] | null | null | null | Cleaning.py | TharindraParanagama/MovieClassification | 2cdee9a2aaf1f55d0a59b20181e69c524c4d5895 | [
"MIT"
] | null | null | null | import csv
input = open('MovieI.csv', 'rb')
output = open('MovieO.csv', 'wb')
writer = csv.writer(output)
for row in csv.reader(input):
for i in range(len(row)):
if(row[0]==''):
break
elif(row[1]==''):
break
elif(row[2]==''):
break
elif(row[3]==''... | 21.190476 | 33 | 0.483146 | 56 | 445 | 3.839286 | 0.5 | 0.167442 | 0.223256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016611 | 0.323596 | 445 | 21 | 34 | 21.190476 | 0.697674 | 0 | 0 | 0.263158 | 0 | 0 | 0.053812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c046c72c4e753549e8ec891d9f48179094bc06ed | 775 | py | Python | manage.py | BeyondLam/Flask_Blog_Python3 | 274c932e9ea28bb6c83335e408a2cd9f1cf4fcb6 | [
"Apache-2.0"
] | 2 | 2019-10-25T16:35:41.000Z | 2019-10-26T10:54:00.000Z | manage.py | BeyondLam/Flask_Blog_Python3 | 274c932e9ea28bb6c83335e408a2cd9f1cf4fcb6 | [
"Apache-2.0"
] | null | null | null | manage.py | BeyondLam/Flask_Blog_Python3 | 274c932e9ea28bb6c83335e408a2cd9f1cf4fcb6 | [
"Apache-2.0"
] | null | null | null | from app import create_app, db
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
app = create_app("develop")
manager = Manager(app)
Migrate(app, db)
manager.add_command("db", MigrateCommand)
# 初始化管理员账号数据,添加manager命令
@manager.command
def create_admin():
from app.models import Admi... | 27.678571 | 101 | 0.707097 | 96 | 775 | 5.427083 | 0.40625 | 0.074856 | 0.069098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20129 | 775 | 28 | 102 | 27.678571 | 0.84168 | 0.028387 | 0 | 0 | 0 | 0 | 0.035904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.090909 | 0.227273 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c047ab7812a83340a4a3ccb035cf5db37d2b6b67 | 2,954 | py | Python | qiling/qiling/cc/intel.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:01.000Z | 2021-06-04T14:27:15.000Z | qiling/qiling/cc/intel.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | null | null | null | qiling/qiling/cc/intel.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:09.000Z | 2021-06-04T14:27:21.000Z | #!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
from unicorn.x86_const import (
UC_X86_REG_AX, UC_X86_REG_EAX, UC_X86_REG_RAX, UC_X86_REG_RCX,
UC_X86_REG_RDI, UC_X86_REG_RDX, UC_X86_REG_RSI, UC_X86_REG_R8,
UC_X86_REG_R9, UC_X86_REG_R10
)
from qiling import Qili... | 26.854545 | 122 | 0.728842 | 464 | 2,954 | 4.387931 | 0.286638 | 0.071218 | 0.113949 | 0.034381 | 0.556974 | 0.503929 | 0.479371 | 0.426326 | 0.365422 | 0.312377 | 0 | 0.060025 | 0.170955 | 2,954 | 109 | 123 | 27.100917 | 0.771335 | 0.393703 | 0 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.061224 | 0.061224 | 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 |
c04d90069f191974d0ed369a9c73406bd54fa0cc | 2,114 | py | Python | xblock/test/test_json_conversion.py | edly-io/XBlock | 60d01a32e5bfe1b543f598cbc56ba3f4d736129d | [
"Apache-2.0"
] | null | null | null | xblock/test/test_json_conversion.py | edly-io/XBlock | 60d01a32e5bfe1b543f598cbc56ba3f4d736129d | [
"Apache-2.0"
] | null | null | null | xblock/test/test_json_conversion.py | edly-io/XBlock | 60d01a32e5bfe1b543f598cbc56ba3f4d736129d | [
"Apache-2.0"
] | null | null | null | """
Tests asserting that ModelTypes convert to and from json when working
with ModelDatas
"""
# Allow inspection of private class members
# pylint: disable=protected-access
from mock import Mock
from xblock.core import XBlock
from xblock.fields import Field, Scope, ScopeIds
from xblock.field_data import DictFieldData
... | 28.186667 | 120 | 0.64333 | 256 | 2,114 | 5.191406 | 0.359375 | 0.060948 | 0.063205 | 0.045147 | 0.16629 | 0.130173 | 0.105342 | 0 | 0 | 0 | 0 | 0.006215 | 0.238884 | 2,114 | 74 | 121 | 28.567568 | 0.819764 | 0.245033 | 0 | 0.128205 | 0 | 0 | 0.058284 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 1 | 0.153846 | false | 0 | 0.128205 | 0.051282 | 0.589744 | 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 |
c04f13b9a712c28cf890f8bd241f887d6602c688 | 42,844 | py | Python | modisco/coordproducers.py | Bluedragon137/tfmodisco | d7c56b21e1bb58b07695ef3035f173b7d1a039e6 | [
"MIT"
] | null | null | null | modisco/coordproducers.py | Bluedragon137/tfmodisco | d7c56b21e1bb58b07695ef3035f173b7d1a039e6 | [
"MIT"
] | null | null | null | modisco/coordproducers.py | Bluedragon137/tfmodisco | d7c56b21e1bb58b07695ef3035f173b7d1a039e6 | [
"MIT"
] | null | null | null | from __future__ import division, print_function, absolute_import
from .core import SeqletCoordinates
from modisco import util
import numpy as np
from collections import defaultdict, Counter, OrderedDict
import itertools
import sys
import time
from .value_provider import (
AbstractValTransformer, AbsPercentileValTra... | 42.294176 | 80 | 0.618336 | 5,161 | 42,844 | 4.80062 | 0.093393 | 0.035922 | 0.045044 | 0.025428 | 0.545891 | 0.478326 | 0.419438 | 0.393849 | 0.352276 | 0.330077 | 0 | 0.010429 | 0.297264 | 42,844 | 1,012 | 81 | 42.335968 | 0.812475 | 0.081062 | 0 | 0.404309 | 0 | 0 | 0.049288 | 0.011457 | 0 | 0 | 0 | 0 | 0.008872 | 1 | 0.064639 | false | 0.069708 | 0.017744 | 0.002535 | 0.135615 | 0.025349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c0507144735d0e0532afa021b9f51f1bb1e7c543 | 3,908 | py | Python | lib/tests/test_integration.py | OneIdentity/safeguard-sessions-plugin-cyberark-vault | 34f8c7a826b6b89c3c9a649b5395798263b4077f | [
"MIT"
] | null | null | null | lib/tests/test_integration.py | OneIdentity/safeguard-sessions-plugin-cyberark-vault | 34f8c7a826b6b89c3c9a649b5395798263b4077f | [
"MIT"
] | 3 | 2020-08-07T10:41:44.000Z | 2021-01-27T08:56:57.000Z | lib/tests/test_integration.py | OneIdentity/safeguard-sessions-plugin-cyberark-vault | 34f8c7a826b6b89c3c9a649b5395798263b4077f | [
"MIT"
] | null | null | null | #
# Copyright (c) 2019 One Identity
#
# 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 use, copy, modify, merge, publish, di... | 36.185185 | 139 | 0.753327 | 521 | 3,908 | 5.332054 | 0.305182 | 0.051836 | 0.040317 | 0.055436 | 0.520518 | 0.520518 | 0.491001 | 0.457523 | 0.430886 | 0.430886 | 0 | 0.002468 | 0.170676 | 3,908 | 107 | 140 | 36.523364 | 0.854674 | 0.269447 | 0 | 0.363636 | 0 | 0 | 0.063925 | 0.011963 | 0 | 0 | 0 | 0 | 0.127273 | 1 | 0.109091 | false | 0.254545 | 0.072727 | 0 | 0.181818 | 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 |
c054e5df6525caa1e5b886eedf24790796e7312b | 862 | py | Python | WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/first_duplicate.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/first_duplicate.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/first_duplicate.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | def firstDuplicate(a):
number_frequencies, number_indices, duplicate_index = {}, {}, {}
# Iterate through list and increment frequency count
# if number not in dict. Also, note the index asscoiated
# with the value
for i in range(len(a)):
if a[i] not in number_frequencies:
numbe... | 34.48 | 73 | 0.62413 | 111 | 862 | 4.657658 | 0.342342 | 0.263056 | 0.133462 | 0.110251 | 0.286267 | 0.286267 | 0.139265 | 0.139265 | 0.139265 | 0.139265 | 0 | 0.00813 | 0.286543 | 862 | 24 | 74 | 35.916667 | 0.83252 | 0.139211 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.166667 | 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 |
c05de0c488b3f0907732a9cffd73ea481b5c0be6 | 10,458 | py | Python | dotfiles/config/feltnerm/bin/dots.py | feltnerm/dotfiles | 0984ade31ecfcd003e1cce4f165fcd717e9b6317 | [
"WTFPL"
] | 4 | 2016-06-19T20:02:12.000Z | 2017-02-27T19:55:49.000Z | dotfiles/config/feltnerm/bin/dots.py | feltnerm/dotfiles | 0984ade31ecfcd003e1cce4f165fcd717e9b6317 | [
"WTFPL"
] | 6 | 2016-01-20T20:24:42.000Z | 2016-08-17T02:31:43.000Z | dotfiles/config/feltnerm/bin/dots.py | feltnerm/dotfiles | 0984ade31ecfcd003e1cce4f165fcd717e9b6317 | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python
# .py
# @TODO:
# - fix the diffing
# - use rsync across hosts or something fancy
import argparse, difflib, functools, re, shutil, subprocess, sys, time, os
from pprint import pprint
__description__ = "Manage your dotfiles."
ls = lambda path: os.listdir(path)
ls_abs = lambda path: [os.path.join... | 34.288525 | 104 | 0.52467 | 1,199 | 10,458 | 4.451209 | 0.199333 | 0.05771 | 0.049841 | 0.018362 | 0.342702 | 0.311598 | 0.273562 | 0.231966 | 0.220161 | 0.21454 | 0 | 0.00029 | 0.339549 | 10,458 | 304 | 105 | 34.401316 | 0.772405 | 0.065309 | 0 | 0.268182 | 0 | 0 | 0.123167 | 0 | 0 | 0 | 0 | 0.003289 | 0 | 0 | null | null | 0 | 0.009091 | null | null | 0.104545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c05e6da89d714cfca87531c2eed521c2ad804f17 | 246 | py | Python | plot_log_population.py | catskillsresearch/openasr20 | b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e | [
"Apache-2.0"
] | null | null | null | plot_log_population.py | catskillsresearch/openasr20 | b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e | [
"Apache-2.0"
] | null | null | null | plot_log_population.py | catskillsresearch/openasr20 | b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e | [
"Apache-2.0"
] | 1 | 2021-07-28T02:13:21.000Z | 2021-07-28T02:13:21.000Z | import matplotlib.pylab as plt
def plot_log_population(population, _title, _xlabel, _ylabel, _bins):
plt.hist(population,bins=_bins)
plt.xlabel(_xlabel)
plt.ylabel(_ylabel)
plt.title(_title)
plt.yscale('log');
plt.show()
| 24.6 | 69 | 0.707317 | 33 | 246 | 4.969697 | 0.484848 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 246 | 9 | 70 | 27.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 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 |
c05e9891a35e2b972d23578bd72644f77e52bb11 | 12,711 | py | Python | src/stargazer/stargazer.py | magazino/stargazer | d350959b830b084d31656682721f68b22683ceba | [
"MIT"
] | 1 | 2020-02-16T13:18:39.000Z | 2020-02-16T13:18:39.000Z | src/stargazer/stargazer.py | magazino/stargazer | d350959b830b084d31656682721f68b22683ceba | [
"MIT"
] | 3 | 2017-11-10T14:06:05.000Z | 2020-04-10T08:27:00.000Z | src/stargazer/stargazer.py | magazino/stargazer | d350959b830b084d31656682721f68b22683ceba | [
"MIT"
] | null | null | null | """
Driver class for Hagisonic Stargazer, with no ROS dependencies.
"""
from serial import Serial
from collections import deque
import re
import yaml
import time
import logging
import rospy
import numpy as np
from threading import Thread, Event
from tf import transformations
# STX: char that represents the start of a ... | 33.274869 | 131 | 0.567855 | 1,433 | 12,711 | 4.884159 | 0.23866 | 0.026004 | 0.015002 | 0.012002 | 0.186598 | 0.135305 | 0.100872 | 0.078868 | 0.046864 | 0.046864 | 0 | 0.012881 | 0.346472 | 12,711 | 381 | 132 | 33.362205 | 0.829662 | 0.099205 | 0 | 0.256158 | 0 | 0 | 0.04834 | 0.003174 | 0 | 0 | 0 | 0.002625 | 0.019704 | 0 | null | null | 0.014778 | 0.049261 | null | null | 0.014778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fbed4a160c462e80695d00929515e53d559a44ef | 455 | py | Python | amaranth/vendor/xilinx_spartan_3_6.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 528 | 2020-01-28T18:21:00.000Z | 2021-12-09T06:27:51.000Z | amaranth/vendor/xilinx_spartan_3_6.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 360 | 2020-01-28T18:34:30.000Z | 2021-12-10T08:03:32.000Z | amaranth/vendor/xilinx_spartan_3_6.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 100 | 2020-02-06T21:55:46.000Z | 2021-11-25T19:20:44.000Z | import warnings
from .xilinx import XilinxPlatform
__all__ = ["XilinxSpartan3APlatform", "XilinxSpartan6Platform"]
XilinxSpartan3APlatform = XilinxPlatform
XilinxSpartan6Platform = XilinxPlatform
# TODO(amaranth-0.4): remove
warnings.warn("instead of amaranth.vendor.xilinx_spartan_3_6.XilinxSpartan3APlatform and... | 26.764706 | 90 | 0.782418 | 39 | 455 | 8.948718 | 0.641026 | 0.080229 | 0.114613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028133 | 0.140659 | 455 | 16 | 91 | 28.4375 | 0.86445 | 0.057143 | 0 | 0 | 0 | 0 | 0.433255 | 0.384075 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fbf49444e0f4679af981bbaa8faf8266920ca318 | 1,216 | py | Python | setup.py | mark-dawn/stytra | be1d5be0a44aeb685d475240d056ef7adf60ed06 | [
"MIT"
] | null | null | null | setup.py | mark-dawn/stytra | be1d5be0a44aeb685d475240d056ef7adf60ed06 | [
"MIT"
] | null | null | null | setup.py | mark-dawn/stytra | be1d5be0a44aeb685d475240d056ef7adf60ed06 | [
"MIT"
] | null | null | null | from distutils.core import setup
from setuptools import find_packages
setup(
name="stytra",
version="0.1",
author="Vilim Stih, Luigi Petrucco @portugueslab",
author_email="vilim@neuro.mpg.de",
license="MIT",
packages=find_packages(),
install_requires=[
"pyqtgraph>=0.10.0",
... | 28.27907 | 105 | 0.591283 | 117 | 1,216 | 6.102564 | 0.769231 | 0.033613 | 0.070028 | 0.072829 | 0.089636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013575 | 0.273026 | 1,216 | 42 | 106 | 28.952381 | 0.794118 | 0.049342 | 0 | 0.051282 | 0 | 0 | 0.498267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.051282 | 0 | 0.051282 | 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 |
fbf6f8315c8b89ca91d3b286cb9fd7bfaffd9e47 | 83,653 | py | Python | MainUi.py | james646-hs/Fgo_teamup | f1e5c6f514818b68e9abb9eab3c6103fd000819a | [
"MIT"
] | 18 | 2020-05-30T01:41:24.000Z | 2021-03-04T08:07:35.000Z | MainUi.py | james646-hs/Fgo_teamup | f1e5c6f514818b68e9abb9eab3c6103fd000819a | [
"MIT"
] | 1 | 2020-08-13T02:19:42.000Z | 2020-08-13T02:19:42.000Z | MainUi.py | james646-hs/Fgo_teamup | f1e5c6f514818b68e9abb9eab3c6103fd000819a | [
"MIT"
] | 2 | 2020-06-13T18:23:07.000Z | 2020-08-13T02:08:54.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainUi.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWin... | 64.746904 | 106 | 0.748927 | 9,856 | 83,653 | 6.060471 | 0.024959 | 0.050827 | 0.045202 | 0.027121 | 0.730429 | 0.634049 | 0.567803 | 0.47159 | 0.141834 | 0.092379 | 0 | 0.066118 | 0.151148 | 83,653 | 1,291 | 107 | 64.797057 | 0.775071 | 0.002152 | 0 | 0.070423 | 1 | 0 | 0.05401 | 0.010387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001565 | false | 0 | 0.000782 | 0 | 0.00313 | 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 |
2200a38582a5987a8032f11e6758387289477471 | 2,240 | py | Python | models/FlagAttachment.py | jeffg2k/RootTheBox | 1bb971f98da96f66c868f5786c2405321b0be976 | [
"Apache-2.0"
] | 1 | 2020-02-28T16:23:12.000Z | 2020-02-28T16:23:12.000Z | models/FlagAttachment.py | Warlockk/RootTheBox | e24f3e0350aec1b65be81cdc71ff09a5e1b8e587 | [
"Apache-2.0"
] | null | null | null | models/FlagAttachment.py | Warlockk/RootTheBox | e24f3e0350aec1b65be81cdc71ff09a5e1b8e587 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Nov 24, 2014
@author: moloch
Copyright 2014 Root the Box
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licen... | 31.111111 | 88 | 0.672768 | 306 | 2,240 | 4.866013 | 0.490196 | 0.040296 | 0.04231 | 0.048355 | 0.075218 | 0.075218 | 0.053727 | 0.053727 | 0 | 0 | 0 | 0.016083 | 0.222768 | 2,240 | 71 | 89 | 31.549296 | 0.839173 | 0.350893 | 0 | 0.058824 | 0 | 0 | 0.021112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.235294 | 0.029412 | 0.558824 | 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 |
2205e64387c6f4c5a706049e6175c53d8453ff11 | 442 | py | Python | Cryptography/Exp-1-Shamirs-Secret-Sharing/main.py | LuminolT/Cryptographic | 87fffae591eee9644641a4c511972df0c2a44df7 | [
"MIT"
] | null | null | null | Cryptography/Exp-1-Shamirs-Secret-Sharing/main.py | LuminolT/Cryptographic | 87fffae591eee9644641a4c511972df0c2a44df7 | [
"MIT"
] | null | null | null | Cryptography/Exp-1-Shamirs-Secret-Sharing/main.py | LuminolT/Cryptographic | 87fffae591eee9644641a4c511972df0c2a44df7 | [
"MIT"
] | 1 | 2022-03-07T13:56:55.000Z | 2022-03-07T13:56:55.000Z | import numpy as np
import matplotlib.pyplot as plt
from shamir import *
from binascii import hexlify
# img = plt.imread('cat.png')
# plt.imshow(img)
# plt.show()
s = 'TEST_STRING'.encode()
print("Original secret:", hexlify(s))
l = Shamir.split(3, 5, '12345'.encode())
for idx, item in l:
print("Share {}: {}".fo... | 18.416667 | 57 | 0.669683 | 68 | 442 | 4.338235 | 0.632353 | 0.040678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023936 | 0.149321 | 442 | 24 | 58 | 18.416667 | 0.760638 | 0.122172 | 0 | 0 | 0 | 0 | 0.18961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
220aabb343a26ce1e8cadcc4df4a8b3a8adedfdb | 2,939 | py | Python | towhee/engine/pipeline.py | jeffoverflow/towhee | c576d22a4cdfc3909a3323b0d1decab87e83d26c | [
"Apache-2.0"
] | null | null | null | towhee/engine/pipeline.py | jeffoverflow/towhee | c576d22a4cdfc3909a3323b0d1decab87e83d26c | [
"Apache-2.0"
] | null | null | null | towhee/engine/pipeline.py | jeffoverflow/towhee | c576d22a4cdfc3909a3323b0d1decab87e83d26c | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Zilliz. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 33.397727 | 92 | 0.638312 | 349 | 2,939 | 5.275072 | 0.432665 | 0.032591 | 0.07333 | 0.017382 | 0.205323 | 0.160782 | 0.160782 | 0.130364 | 0.130364 | 0.080391 | 0 | 0.004367 | 0.298741 | 2,939 | 87 | 93 | 33.781609 | 0.888889 | 0.535216 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.136364 | 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 |
221ac1f2a8c5526fcda12d6ed18346f9e5d9d58a | 906 | py | Python | kasaya/core/backend/redisstore.py | AYAtechnologies/Kasaya-esb | 150fa96d4136641cd4632f3c9a09d4fc2610df07 | [
"BSD-2-Clause"
] | 1 | 2015-06-26T18:05:20.000Z | 2015-06-26T18:05:20.000Z | kasaya/core/backend/redisstore.py | AYAtechnologies/Kasaya-esb | 150fa96d4136641cd4632f3c9a09d4fc2610df07 | [
"BSD-2-Clause"
] | null | null | null | kasaya/core/backend/redisstore.py | AYAtechnologies/Kasaya-esb | 150fa96d4136641cd4632f3c9a09d4fc2610df07 | [
"BSD-2-Clause"
] | null | null | null | __author__ = 'wektor'
from generic import GenericBackend
import redis
class RedisBackend(GenericBackend):
def __init__(self):
pool = redis.ConnectionPool(host='localhost', port=6379, db=0)
self.store = redis.Redis(connection_pool=pool)
def get_typecode(self, value):
typecode = str... | 25.166667 | 71 | 0.562914 | 103 | 906 | 4.84466 | 0.427184 | 0.072144 | 0.048096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009585 | 0.309051 | 906 | 36 | 72 | 25.166667 | 0.78754 | 0.032009 | 0 | 0 | 0 | 0 | 0.044521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
221c5dbcccafcacd09ca66b22dfdff675d20b942 | 2,050 | py | Python | tests/test_kobo.py | Donearm/kobuddy | 9c55f2f94c3c949c4d8a5ba18704be92c055873c | [
"MIT"
] | 75 | 2019-08-24T14:21:53.000Z | 2022-02-21T17:20:20.000Z | tests/test_kobo.py | Donearm/kobuddy | 9c55f2f94c3c949c4d8a5ba18704be92c055873c | [
"MIT"
] | 9 | 2019-10-15T19:30:16.000Z | 2021-08-17T15:24:00.000Z | tests/test_kobo.py | Donearm/kobuddy | 9c55f2f94c3c949c4d8a5ba18704be92c055873c | [
"MIT"
] | 4 | 2020-02-05T13:53:59.000Z | 2021-08-17T14:50:39.000Z | from datetime import datetime
from pathlib import Path
import pytz
import kobuddy
def get_test_db():
# db = Path(__file__).absolute().parent.parent / 'KoboShelfes' / 'KoboReader.sqlite.0'
db = Path(__file__).absolute().parent / 'data' / 'kobo_notes' / 'input' / 'KoboReader.sqlite'
return db
# a bit meh, ... | 28.472222 | 159 | 0.691707 | 301 | 2,050 | 4.561462 | 0.48505 | 0.035688 | 0.041515 | 0.02622 | 0.053897 | 0.018937 | 0.018937 | 0 | 0 | 0 | 0 | 0.037897 | 0.201951 | 2,050 | 71 | 160 | 28.873239 | 0.801345 | 0.173659 | 0 | 0 | 0 | 0.023256 | 0.179609 | 0.042679 | 0 | 0 | 0 | 0.014085 | 0.27907 | 1 | 0.186047 | false | 0 | 0.116279 | 0 | 0.325581 | 0.139535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
221edc811e6d0e0ea5e013272ed5a112078a3713 | 1,062 | py | Python | tanks/views.py | BArdelean/djangostuff | b4b7b6bac5e1d8dbc73e2f5cb5a7e784a82c9519 | [
"bzip2-1.0.6"
] | null | null | null | tanks/views.py | BArdelean/djangostuff | b4b7b6bac5e1d8dbc73e2f5cb5a7e784a82c9519 | [
"bzip2-1.0.6"
] | null | null | null | tanks/views.py | BArdelean/djangostuff | b4b7b6bac5e1d8dbc73e2f5cb5a7e784a82c9519 | [
"bzip2-1.0.6"
] | null | null | null | from django.shortcuts import render
from .models import Tank
from django.db import models
from django.http import HttpResponse
from django.views import View
# Create your views here.
# The view for the created model Tank
def tank_view(request):
queryset = Tank.objects.all()
context = {
'object': quer... | 21.673469 | 54 | 0.65725 | 132 | 1,062 | 5.25 | 0.265152 | 0.050505 | 0.137085 | 0.194805 | 0.670996 | 0.670996 | 0.670996 | 0.480519 | 0.480519 | 0.392496 | 0 | 0.009768 | 0.228814 | 1,062 | 48 | 55 | 22.125 | 0.836386 | 0.055556 | 0 | 0.4 | 0 | 0 | 0.105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
2225c8037c0f830751bb9a95f4a1c6bd17ba29de | 824 | py | Python | 403-Frog-Jump/solution.py | Tanych/CodeTracking | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | [
"MIT"
] | null | null | null | 403-Frog-Jump/solution.py | Tanych/CodeTracking | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | [
"MIT"
] | null | null | null | 403-Frog-Jump/solution.py | Tanych/CodeTracking | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | [
"MIT"
] | null | null | null | class Solution(object):
def dfs(self,stones,graph,curpos,lastjump):
if curpos==stones[-1]:
return True
# since the jump need based on lastjump
# only forward,get rid of the stay at the same pos
rstart=max(curpos+lastjump-1,curpos+1)
rend=min(curpos+lastjump+1,ston... | 32.96 | 82 | 0.566748 | 108 | 824 | 4.324074 | 0.453704 | 0.070664 | 0.06424 | 0.077088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.332524 | 824 | 25 | 83 | 32.96 | 0.830909 | 0.150485 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 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 |
222dd53901bfb2ab9baf636ea45e6459defef6a1 | 9,975 | py | Python | runOtakuBot.py | Eagleheardt/otakuBot | 6f8576423bb1b0701d5a60095bed7552b2711bab | [
"Unlicense"
] | null | null | null | runOtakuBot.py | Eagleheardt/otakuBot | 6f8576423bb1b0701d5a60095bed7552b2711bab | [
"Unlicense"
] | null | null | null | runOtakuBot.py | Eagleheardt/otakuBot | 6f8576423bb1b0701d5a60095bed7552b2711bab | [
"Unlicense"
] | null | null | null | import sqlite3
from sqlite3 import Error
import os
import time
import datetime
import re
import random
import schedule
import cryptography
from apscheduler.schedulers.background import BackgroundScheduler
from slackclient import SlackClient
from cryptography.fernet import Fernet
conn = sqlite3.connect('... | 27.631579 | 95 | 0.665063 | 1,234 | 9,975 | 5.341977 | 0.241491 | 0.019114 | 0.025485 | 0.043689 | 0.412318 | 0.373635 | 0.358617 | 0.312348 | 0.278216 | 0.239381 | 0 | 0.009618 | 0.197393 | 9,975 | 360 | 96 | 27.708333 | 0.813765 | 0.037393 | 0 | 0.428571 | 0 | 0 | 0.282554 | 0.037485 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003175 | 0.038095 | null | null | 0.003175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22369660633e2973cf659ea963259b0f27b54f98 | 952 | py | Python | posts/models.py | dnetochaves/blog | e04fda385490b671540b671631726584a533369c | [
"MIT"
] | null | null | null | posts/models.py | dnetochaves/blog | e04fda385490b671540b671631726584a533369c | [
"MIT"
] | null | null | null | posts/models.py | dnetochaves/blog | e04fda385490b671540b671631726584a533369c | [
"MIT"
] | null | null | null | from django.db import models
from categorias.models import Categoria
from django.contrib.auth.models import User
from django.utils import timezone
# Create your models here.
class Post(models.Model):
titulo_post = models.CharField(max_length=50, verbose_name='Titulo')
autor_post = models.ForeignKey(User, on_... | 43.272727 | 103 | 0.765756 | 125 | 952 | 5.608 | 0.432 | 0.128388 | 0.057061 | 0.045649 | 0.231098 | 0.079886 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.130252 | 952 | 21 | 104 | 45.333333 | 0.844203 | 0.02521 | 0 | 0 | 0 | 0 | 0.065875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0.0625 | 0.9375 | 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 |
22386711171a0a872717803582d333bc6bde0602 | 1,176 | py | Python | algs15_priority_queue/circular_queue.py | zhubaiyuan/learning-algorithms | ea9ee674878d535a9e9987c0d948c0357e0ed4da | [
"MIT"
] | null | null | null | algs15_priority_queue/circular_queue.py | zhubaiyuan/learning-algorithms | ea9ee674878d535a9e9987c0d948c0357e0ed4da | [
"MIT"
] | null | null | null | algs15_priority_queue/circular_queue.py | zhubaiyuan/learning-algorithms | ea9ee674878d535a9e9987c0d948c0357e0ed4da | [
"MIT"
] | null | null | null | """
A fixed-capacity queue implemented as circular queue.
Queue can become full.
* enqueue is O(1)
* dequeue is O(1)
"""
class Queue:
"""
Implementation of a Queue using a circular buffer.
"""
def __init__(self, size):
self.size = size
self.storage = [None] * size
self.first =... | 22.188679 | 54 | 0.519558 | 148 | 1,176 | 4.074324 | 0.297297 | 0.066335 | 0.013267 | 0.029851 | 0.109453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013387 | 0.364796 | 1,176 | 52 | 55 | 22.615385 | 0.793842 | 0.25085 | 0 | 0 | 0 | 0 | 0.035248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
223b618424ceff584aa410ff8121dcf69f5567f4 | 323 | py | Python | data_statistics/variable_statistics.py | go-jugo/ml_event_prediction_trainer | 0d644b737afdef078ad5b6fc2b7e2549b964b56f | [
"Apache-2.0"
] | null | null | null | data_statistics/variable_statistics.py | go-jugo/ml_event_prediction_trainer | 0d644b737afdef078ad5b6fc2b7e2549b964b56f | [
"Apache-2.0"
] | null | null | null | data_statistics/variable_statistics.py | go-jugo/ml_event_prediction_trainer | 0d644b737afdef078ad5b6fc2b7e2549b964b56f | [
"Apache-2.0"
] | null | null | null | import dask.dataframe as dd
def descibe_dataframe(df):
error_cols = [col for col in df.columns if 'errorCode' in col]
df = df.categorize(columns=error_cols)
statistics = df.describe(include='all').compute()
statistics = statistics.T
statistics.to_excel('../statistics/variables_statistics.xls... | 40.375 | 67 | 0.718266 | 43 | 323 | 5.27907 | 0.627907 | 0.079295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167183 | 323 | 8 | 68 | 40.375 | 0.843866 | 0 | 0 | 0 | 0 | 0 | 0.160883 | 0.123028 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
223b7dfcfebf8324a056e2a31a6551d0d0397ac2 | 393 | py | Python | code/com/caicongyang/python/study/base/pandas_sql.py | caicongyang/python-study | e5db4d1b033d183da7e9af6a8c930bcaba2962f7 | [
"Apache-2.0"
] | null | null | null | code/com/caicongyang/python/study/base/pandas_sql.py | caicongyang/python-study | e5db4d1b033d183da7e9af6a8c930bcaba2962f7 | [
"Apache-2.0"
] | null | null | null | code/com/caicongyang/python/study/base/pandas_sql.py | caicongyang/python-study | e5db4d1b033d183da7e9af6a8c930bcaba2962f7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import numpy as np
import pandas as pd
'''
如何用sql的方式打开pandas
'''
from pandas import DataFrame, Series
from pandasql import sqldf, load_meat, load_births
df1 = DataFrame({'name': ['jack', 'tony', 'pony'], 'data1': range(3)})
print(df1)
sql = "select * from df1 where name = ... | 19.65 | 70 | 0.676845 | 55 | 393 | 4.8 | 0.654545 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017964 | 0.150127 | 393 | 19 | 71 | 20.684211 | 0.772455 | 0.096692 | 0 | 0 | 0 | 0 | 0.176829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2247d6e5fabfa0bfb68bd37d1e8736537d83e496 | 4,375 | py | Python | flytekit/models/qubole.py | slai/flytekit | 9d73d096b748d263a638e6865d15db4880845305 | [
"Apache-2.0"
] | null | null | null | flytekit/models/qubole.py | slai/flytekit | 9d73d096b748d263a638e6865d15db4880845305 | [
"Apache-2.0"
] | 2 | 2021-06-26T04:32:43.000Z | 2021-07-14T04:47:52.000Z | flytekit/models/qubole.py | slai/flytekit | 9d73d096b748d263a638e6865d15db4880845305 | [
"Apache-2.0"
] | null | null | null | from flyteidl.plugins import qubole_pb2 as _qubole
from flytekit.models import common as _common
class HiveQuery(_common.FlyteIdlEntity):
def __init__(self, query, timeout_sec, retry_count):
"""
Initializes a new HiveQuery.
:param Text query: The query string.
:param int timeout_... | 26.355422 | 109 | 0.597257 | 465 | 4,375 | 5.35914 | 0.139785 | 0.04695 | 0.024077 | 0.032504 | 0.306581 | 0.167335 | 0.08748 | 0.053772 | 0.053772 | 0.053772 | 0 | 0.003007 | 0.315886 | 4,375 | 165 | 110 | 26.515152 | 0.829602 | 0.236343 | 0 | 0.328767 | 0 | 0 | 0.007447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232877 | false | 0 | 0.027397 | 0 | 0.493151 | 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 |
22529ca1da0ceee85ccd01a18946c0340e79ffbb | 330 | py | Python | cycleshare/migrations/0013_remove_cycle_toprofile.py | vasundhara7/College-EWallet | 0a4c32bc08218650635a04fb9a9e28446fd4f3e1 | [
"Apache-2.0"
] | 2 | 2019-07-28T00:34:09.000Z | 2020-06-18T11:58:03.000Z | cycleshare/migrations/0013_remove_cycle_toprofile.py | vasundhara7/College-EWallet | 0a4c32bc08218650635a04fb9a9e28446fd4f3e1 | [
"Apache-2.0"
] | null | null | null | cycleshare/migrations/0013_remove_cycle_toprofile.py | vasundhara7/College-EWallet | 0a4c32bc08218650635a04fb9a9e28446fd4f3e1 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.9 on 2018-12-12 08:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cycleshare', '0012_cycle_toprofile'),
]
operations = [
migrations.RemoveField(
model_name='cycle',
name='toprofile',
... | 18.333333 | 47 | 0.593939 | 34 | 330 | 5.676471 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081545 | 0.293939 | 330 | 17 | 48 | 19.411765 | 0.746781 | 0.136364 | 0 | 0 | 1 | 0 | 0.155477 | 0 | 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 |
2262f6ba6d8c2278a63ea0e571aa7725d2647bf8 | 11,843 | py | Python | plugin/taskmage2/project/projects.py | willjp/vim-taskmage | adcf809ccf1768753eca4dadaf6279b34e8d5699 | [
"BSD-2-Clause"
] | 1 | 2017-11-28T14:12:03.000Z | 2017-11-28T14:12:03.000Z | plugin/taskmage2/project/projects.py | willjp/vim-taskmage | adcf809ccf1768753eca4dadaf6279b34e8d5699 | [
"BSD-2-Clause"
] | 16 | 2017-08-13T18:01:26.000Z | 2020-11-17T04:55:43.000Z | plugin/taskmage2/project/projects.py | willjp/vim-taskmage | adcf809ccf1768753eca4dadaf6279b34e8d5699 | [
"BSD-2-Clause"
] | null | null | null | import os
import shutil
import tempfile
from taskmage2.utils import filesystem, functional
from taskmage2.asttree import asttree, renderers
from taskmage2.parser import iostream, parsers
from taskmage2.project import taskfiles
class Project(object):
def __init__(self, root='.'):
""" Constructor.
... | 31.248021 | 125 | 0.548679 | 1,216 | 11,843 | 5.23602 | 0.177632 | 0.036124 | 0.017591 | 0.021988 | 0.354327 | 0.288048 | 0.270457 | 0.232763 | 0.223339 | 0.210774 | 0 | 0.002975 | 0.347125 | 11,843 | 378 | 126 | 31.330688 | 0.820486 | 0.349911 | 0 | 0.213836 | 0 | 0 | 0.092401 | 0.005914 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.138365 | false | 0 | 0.044025 | 0 | 0.358491 | 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 |
226990cee4efe4dbfe653dc0472db81ab56d2396 | 390 | py | Python | videogame_project/videogame_app/models.py | cs-fullstack-fall-2018/django-form-post1-R3coTh3Cod3r | 3e44b737425fe347757a50f30aa5df021057bfde | [
"Apache-2.0"
] | null | null | null | videogame_project/videogame_app/models.py | cs-fullstack-fall-2018/django-form-post1-R3coTh3Cod3r | 3e44b737425fe347757a50f30aa5df021057bfde | [
"Apache-2.0"
] | null | null | null | videogame_project/videogame_app/models.py | cs-fullstack-fall-2018/django-form-post1-R3coTh3Cod3r | 3e44b737425fe347757a50f30aa5df021057bfde | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.utils import timezone
class GameIdea(models.Model):
name=models.CharField(max_length=100)
genre= models.CharField(max_length=100)
currentdate= models.DateTimeField(blank=True, null=True)
def __str__(self):
return self.name, self.genre
def displaye... | 26 | 60 | 0.707692 | 50 | 390 | 5.4 | 0.56 | 0.074074 | 0.133333 | 0.177778 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018987 | 0.189744 | 390 | 15 | 61 | 26 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.818182 | 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 |
2271553668c1d9c135110d311fde305c56e23bd6 | 1,557 | py | Python | Tools/english_word/src/spider.py | pynickle/awesome-python-tools | e405fb8d9a1127ae7cd5bcbd6481da78f6f1fb07 | [
"BSD-2-Clause"
] | 21 | 2019-06-02T01:55:14.000Z | 2022-01-08T22:35:31.000Z | Tools/english_word/src/spider.py | code-nick-python/awesome-daily-tools | e405fb8d9a1127ae7cd5bcbd6481da78f6f1fb07 | [
"BSD-2-Clause"
] | 3 | 2019-06-02T01:55:17.000Z | 2019-06-14T12:32:06.000Z | Tools/english_word/src/spider.py | code-nick-python/awesome-daily-tools | e405fb8d9a1127ae7cd5bcbd6481da78f6f1fb07 | [
"BSD-2-Clause"
] | 16 | 2019-06-23T13:00:04.000Z | 2021-09-18T06:09:58.000Z | import requests
import re
import time
import random
import pprint
import os
headers = {"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3858.0 Safari/537.36"}
def youdict(threadName, q):
res = []
index = 0
url = q.get(timeout = 2)
... | 32.4375 | 173 | 0.552987 | 211 | 1,557 | 4.033175 | 0.407583 | 0.042303 | 0.032902 | 0.044653 | 0.627497 | 0.627497 | 0.627497 | 0.627497 | 0.627497 | 0.627497 | 0 | 0.043624 | 0.234425 | 1,557 | 47 | 174 | 33.12766 | 0.670302 | 0 | 0 | 0.666667 | 0 | 0.076923 | 0.309272 | 0.110596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.153846 | 0 | 0.25641 | 0.025641 | 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 |
227598bb20ab74c029eb76f22348999ce40f32c0 | 718 | py | Python | web_programming/fetch_github_info.py | JB1959/Python | b6ca263983933c3ecc06ed0083dd11b6faf870c8 | [
"MIT"
] | 14 | 2020-10-03T05:43:48.000Z | 2021-11-01T21:02:26.000Z | web_programming/fetch_github_info.py | JB1959/Python | b6ca263983933c3ecc06ed0083dd11b6faf870c8 | [
"MIT"
] | 3 | 2020-06-08T07:03:15.000Z | 2020-06-08T08:41:22.000Z | web_programming/fetch_github_info.py | JB1959/Python | b6ca263983933c3ecc06ed0083dd11b6faf870c8 | [
"MIT"
] | 12 | 2020-10-03T05:44:19.000Z | 2022-01-16T05:37:54.000Z | #!/usr/bin/env python3
"""
Created by sarathkaul on 14/11/19
Basic authentication using an API password is deprecated and will soon no longer work.
Visit https://developer.github.com/changes/2020-02-14-deprecating-password-auth
for more information around suggested workarounds and removal dates.
"""
import requests... | 26.592593 | 86 | 0.71727 | 105 | 718 | 4.714286 | 0.647619 | 0.066667 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024752 | 0.155989 | 718 | 26 | 87 | 27.615385 | 0.792079 | 0.481894 | 0 | 0 | 0 | 0 | 0.200573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.428571 | 0.142857 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2277e005db07cac1472613b25b5759c8831551c6 | 7,195 | py | Python | ecart/ecart.py | micael-grilo/E-Cart | 76e86b4c7ea5bd2becda23ef8c69470c86630c5e | [
"MIT"
] | null | null | null | ecart/ecart.py | micael-grilo/E-Cart | 76e86b4c7ea5bd2becda23ef8c69470c86630c5e | [
"MIT"
] | null | null | null | ecart/ecart.py | micael-grilo/E-Cart | 76e86b4c7ea5bd2becda23ef8c69470c86630c5e | [
"MIT"
] | null | null | null | import redis
import copy
from functools import wraps
from .exception import ErrorMessage
from .decorators import raise_exception
from .serializer import Serializer
TTL = 604800
class Cart(object):
"""
Main Class for Cart, contains all functionality
"""
@raise_exception("E-Cart can't be initiali... | 34.927184 | 120 | 0.624739 | 937 | 7,195 | 4.542156 | 0.154749 | 0.041353 | 0.053571 | 0.045818 | 0.331532 | 0.230028 | 0.12641 | 0.099624 | 0.074248 | 0.046053 | 0 | 0.001372 | 0.290896 | 7,195 | 205 | 121 | 35.097561 | 0.832811 | 0.173037 | 0 | 0.107143 | 0 | 0 | 0.14251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205357 | false | 0 | 0.053571 | 0.017857 | 0.464286 | 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 |
97e1339259b947d5c260266bb5a742c74a8323da | 4,644 | py | Python | squad/base/argument_parser.py | uwnlp/piqa | e18f2189c93965c94655d5cc943dcecdc2c1ea57 | [
"Apache-2.0"
] | 89 | 2018-08-25T07:59:07.000Z | 2021-05-04T06:37:27.000Z | squad/base/argument_parser.py | seominjoon/piqa | e18f2189c93965c94655d5cc943dcecdc2c1ea57 | [
"Apache-2.0"
] | 11 | 2018-09-28T17:33:27.000Z | 2019-11-27T23:34:45.000Z | squad/base/argument_parser.py | uwnlp/piqa | e18f2189c93965c94655d5cc943dcecdc2c1ea57 | [
"Apache-2.0"
] | 10 | 2018-09-19T06:48:06.000Z | 2020-04-14T20:42:06.000Z | import argparse
import os
class ArgumentParser(argparse.ArgumentParser):
def __init__(self, description='base', **kwargs):
super(ArgumentParser, self).__init__(description=description)
def add_arguments(self):
home = os.path.expanduser('~')
self.add_argument('model', type=str)
... | 50.478261 | 120 | 0.644703 | 631 | 4,644 | 4.55309 | 0.193344 | 0.085277 | 0.182736 | 0.050122 | 0.4504 | 0.386704 | 0.344239 | 0.224852 | 0.053603 | 0.053603 | 0 | 0.009799 | 0.208872 | 4,644 | 91 | 121 | 51.032967 | 0.772183 | 0.032084 | 0 | 0 | 0 | 0 | 0.186762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042254 | false | 0 | 0.028169 | 0 | 0.098592 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97e32ebe567c88c97e005c959868e8ed6406d1eb | 2,210 | py | Python | getml/loss_functions.py | srnnkls/getml-python-api | 032b2fec19a0e0a519eab480ee61e0d422d63993 | [
"MIT"
] | null | null | null | getml/loss_functions.py | srnnkls/getml-python-api | 032b2fec19a0e0a519eab480ee61e0d422d63993 | [
"MIT"
] | null | null | null | getml/loss_functions.py | srnnkls/getml-python-api | 032b2fec19a0e0a519eab480ee61e0d422d63993 | [
"MIT"
] | null | null | null | # Copyright 2019 The SQLNet Company GmbH
# 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 use, copy, modify, merge, publish, ... | 32.985075 | 80 | 0.619005 | 246 | 2,210 | 5.455285 | 0.51626 | 0.065574 | 0.02459 | 0.0462 | 0.120715 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002195 | 0.175566 | 2,210 | 66 | 81 | 33.484848 | 0.734358 | 0.744796 | 0 | 0.25 | 0 | 0 | 0.092975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97e922fd511e37dd6ba6caa81bbded4c80d22dc7 | 316 | py | Python | todo/management/urls.py | Sanguet/todo-challenge | 8eabc02081e7ce6b33408558d4a4a39edee3944c | [
"MIT"
] | null | null | null | todo/management/urls.py | Sanguet/todo-challenge | 8eabc02081e7ce6b33408558d4a4a39edee3944c | [
"MIT"
] | null | null | null | todo/management/urls.py | Sanguet/todo-challenge | 8eabc02081e7ce6b33408558d4a4a39edee3944c | [
"MIT"
] | null | null | null | # Django
from django.urls import include, path
# Django REST Framework
from rest_framework.routers import DefaultRouter
# Views
from .views import tasks as task_views
router = DefaultRouter()
router.register(r'tasks', task_views.TaskViewSet, basename='task')
urlpatterns = [
path('', include(router.urls))
]
| 19.75 | 66 | 0.762658 | 40 | 316 | 5.95 | 0.5 | 0.109244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136076 | 316 | 15 | 67 | 21.066667 | 0.871795 | 0.107595 | 0 | 0 | 0 | 0 | 0.032374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
97f1fff136972b7db73eca847e9e3cb4870be823 | 4,022 | py | Python | django_storymarket/forms.py | jacobian/django-storymarket | ec43318ddb9964e67220f6fa9675389b637422ce | [
"BSD-3-Clause"
] | 1 | 2019-01-12T10:05:59.000Z | 2019-01-12T10:05:59.000Z | django_storymarket/forms.py | jacobian/django-storymarket | ec43318ddb9964e67220f6fa9675389b637422ce | [
"BSD-3-Clause"
] | null | null | null | django_storymarket/forms.py | jacobian/django-storymarket | ec43318ddb9964e67220f6fa9675389b637422ce | [
"BSD-3-Clause"
] | null | null | null | import logging
import operator
import storymarket
from django import forms
from django.core.cache import cache
from django.conf import settings
from .models import SyncedObject
# Timeout for choices cached from Storymarket. 5 minutes.
CHOICE_CACHE_TIMEOUT = 600
log = logging.getLogger('django_storymarket')
class Sto... | 43.717391 | 96 | 0.544008 | 394 | 4,022 | 5.431472 | 0.383249 | 0.028037 | 0.048598 | 0.026636 | 0.047664 | 0.047664 | 0 | 0 | 0 | 0 | 0 | 0.001939 | 0.359025 | 4,022 | 92 | 97 | 43.717391 | 0.828161 | 0.06912 | 0 | 0.129032 | 0 | 0 | 0.08697 | 0.008125 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.112903 | 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 |
97f2191d807924b9920f7ca4379d337e4f2f9d92 | 6,361 | py | Python | examples/api-samples/inc_samples/sample33.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | examples/api-samples/inc_samples/sample33.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | examples/api-samples/inc_samples/sample33.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | ####<i>This sample will show how to convert several HTML documents to PDF and merge them to one document</i>
#Import of classes from libraries
import base64
import os
import shutil
import random
import time
from pyramid.renderers import render_to_response
from groupdocs.StorageApi import StorageApi
from groupdocs.Asy... | 43.868966 | 111 | 0.562962 | 627 | 6,361 | 5.61882 | 0.282297 | 0.030656 | 0.036333 | 0.043713 | 0.269657 | 0.245813 | 0.245813 | 0.196424 | 0.169742 | 0.126597 | 0 | 0.009901 | 0.349002 | 6,361 | 144 | 112 | 44.173611 | 0.84086 | 0.144946 | 0 | 0.242991 | 0 | 0 | 0.142249 | 0.038896 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102804 | 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 |
97f5869664190ff99134b09c60ba7139b7a21527 | 7,658 | py | Python | cdisp/core.py | felippebarbosa/cdisp | d9a612c252495ab017bffccdd7e82bbb555e07dd | [
"BSL-1.0"
] | null | null | null | cdisp/core.py | felippebarbosa/cdisp | d9a612c252495ab017bffccdd7e82bbb555e07dd | [
"BSL-1.0"
] | null | null | null | cdisp/core.py | felippebarbosa/cdisp | d9a612c252495ab017bffccdd7e82bbb555e07dd | [
"BSL-1.0"
] | null | null | null | #-*- coding: utf-8 -*-
"""
Dispersion calculation functions
"""
import numpy # module for array manipulation
import pandas # module for general data analysis
import os # module for general OS manipulation
import scipy # module for scientific manipulation and analysis
##
def set_transverse_mo... | 48.77707 | 177 | 0.657482 | 1,094 | 7,658 | 4.436929 | 0.223035 | 0.077874 | 0.020396 | 0.029666 | 0.1815 | 0.134528 | 0.092501 | 0.070251 | 0.058714 | 0.021014 | 0 | 0.02333 | 0.22199 | 7,658 | 156 | 178 | 49.089744 | 0.791373 | 0.178376 | 0 | 0.048544 | 0 | 0 | 0.052019 | 0.004911 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038835 | 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 |
97f988da234108443107eea262cb4a176c0459c9 | 176 | py | Python | tests/cpydiff/modules_array_deletion.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 692 | 2016-12-19T23:25:35.000Z | 2022-03-31T14:20:48.000Z | tests/cpydiff/modules_array_deletion.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 509 | 2017-03-28T19:37:18.000Z | 2022-03-31T20:31:43.000Z | tests/cpydiff/modules_array_deletion.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 228 | 2016-12-19T05:03:30.000Z | 2022-03-22T18:13:00.000Z | """
categories: Modules,array
description: Array deletion not implemented
cause: Unknown
workaround: Unknown
"""
import array
a = array.array('b', (1, 2, 3))
del a[1]
print(a)
| 16 | 43 | 0.715909 | 26 | 176 | 4.846154 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.136364 | 176 | 10 | 44 | 17.6 | 0.802632 | 0.590909 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97fa5c7d0604d6e2fc363a4c15650e9b99bf74f3 | 602 | py | Python | 112_Path Sum.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | 112_Path Sum.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | 112_Path Sum.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def hasPathSum(self, root: 'TreeNode', sum: 'int') -> 'bool':
if not root:
return False
def helper(node,val):... | 28.666667 | 68 | 0.521595 | 75 | 602 | 4.133333 | 0.413333 | 0.096774 | 0.058065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002681 | 0.380399 | 602 | 21 | 69 | 28.666667 | 0.828418 | 0.247508 | 0 | 0.166667 | 0 | 0 | 0.033557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
97fdbe6160aa3872cb3be14af73e7667fe00624c | 978 | py | Python | homeassistant/components/hue/v2/helpers.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/hue/v2/helpers.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | homeassistant/components/hue/v2/helpers.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Helper functions for Philips Hue v2."""
from __future__ import annotations
def normalize_hue_brightness(brightness: float | None) -> float | None:
"""Return calculated brightness values."""
if brightness is not None:
# Hue uses a range of [0, 100] to control brightness.
brightness = float((... | 32.6 | 76 | 0.682004 | 121 | 978 | 5.429752 | 0.454545 | 0.054795 | 0.068493 | 0.054795 | 0.073059 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041114 | 0.229039 | 978 | 29 | 77 | 33.724138 | 0.830239 | 0.322086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 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 |
97feddd1f63ca0959b0312d053d59692a6f28e9d | 3,646 | py | Python | sdk/python/pulumi_civo/get_network.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-08-04T12:27:02.000Z | 2022-03-14T13:16:43.000Z | sdk/python/pulumi_civo/get_network.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 85 | 2020-08-17T19:03:57.000Z | 2022-03-25T19:17:57.000Z | sdk/python/pulumi_civo/get_network.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2020-08-04T12:27:03.000Z | 2022-03-24T00:56:24.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 31.162393 | 120 | 0.620954 | 427 | 3,646 | 5.100703 | 0.271663 | 0.030303 | 0.036731 | 0.068871 | 0.15978 | 0.063361 | 0.038567 | 0 | 0 | 0 | 0 | 0.000378 | 0.27345 | 3,646 | 116 | 121 | 31.431034 | 0.82182 | 0.179649 | 0 | 0.12987 | 1 | 0 | 0.115668 | 0.019979 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103896 | false | 0 | 0.064935 | 0.012987 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f0006363bb84a90ae81c6bd90ba3b9c73aecdc7 | 714 | py | Python | app/kobo/forms.py | wri/django_kobo | 505d52fc0d49d875af068e58ad959b95d1464dd5 | [
"MIT"
] | 1 | 2018-12-20T07:59:55.000Z | 2018-12-20T07:59:55.000Z | app/kobo/forms.py | wri/django_kobo | 505d52fc0d49d875af068e58ad959b95d1464dd5 | [
"MIT"
] | 9 | 2018-11-06T01:51:28.000Z | 2018-12-21T22:19:42.000Z | app/kobo/forms.py | wri/django_kobo | 505d52fc0d49d875af068e58ad959b95d1464dd5 | [
"MIT"
] | 2 | 2018-11-21T15:13:32.000Z | 2020-02-19T08:39:37.000Z | from django import forms
from .models import Connection, KoboUser, KoboData
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.db.models import Q
class ConnectionForm(forms.ModelForm):
class Meta:
model = Connection
exclude = []
widgets = {
'auth_pass':... | 31.043478 | 165 | 0.644258 | 68 | 714 | 6.676471 | 0.558824 | 0.066079 | 0.0837 | 0.101322 | 0.123348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254902 | 714 | 22 | 166 | 32.454545 | 0.853383 | 0 | 0 | 0.235294 | 0 | 0 | 0.032213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.235294 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3f042a0420967f88675a79d4f9cf3ecb5cca91b8 | 1,947 | py | Python | vega/trainer/callbacks/horovod.py | zjzh/vega | aa6e7b8c69024262fc483ee06113b4d1bd5156d8 | [
"Apache-2.0"
] | null | null | null | vega/trainer/callbacks/horovod.py | zjzh/vega | aa6e7b8c69024262fc483ee06113b4d1bd5156d8 | [
"Apache-2.0"
] | null | null | null | vega/trainer/callbacks/horovod.py | zjzh/vega | aa6e7b8c69024262fc483ee06113b4d1bd5156d8 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | 33.568966 | 78 | 0.698511 | 251 | 1,947 | 5.270916 | 0.525896 | 0.045351 | 0.019652 | 0.024187 | 0.051398 | 0.051398 | 0.051398 | 0 | 0 | 0 | 0 | 0.009132 | 0.212635 | 1,947 | 57 | 79 | 34.157895 | 0.853881 | 0.390858 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.275862 | 0 | 0.517241 | 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 |
3f0440a332e725d1be2b9f4d8bf41ca99082b5e6 | 5,580 | py | Python | parse_doc.py | nprapps/idp-georgia | 316eba6195b7f410567a7e11eb4811ff7cba54cc | [
"Unlicense"
] | 1 | 2017-04-15T01:48:27.000Z | 2017-04-15T01:48:27.000Z | parse_doc.py | nprapps/idp-georgia | 316eba6195b7f410567a7e11eb4811ff7cba54cc | [
"Unlicense"
] | 153 | 2017-04-14T18:06:26.000Z | 2017-06-02T13:08:09.000Z | parse_doc.py | nprapps/idp-georgia | 316eba6195b7f410567a7e11eb4811ff7cba54cc | [
"Unlicense"
] | 1 | 2021-02-18T11:15:52.000Z | 2021-02-18T11:15:52.000Z | # _*_ coding:utf-8 _*_
import logging
import re
import app_config
from bs4 import BeautifulSoup
from shortcode import process_shortcode
logging.basicConfig(format=app_config.LOG_FORMAT)
logger = logging.getLogger(__name__)
logger.setLevel(app_config.LOG_LEVEL)
end_doc_regex = re.compile(ur'^\s*[Ee][Nn][Dd]\s*$',
... | 28.040201 | 78 | 0.58405 | 637 | 5,580 | 4.904239 | 0.22449 | 0.035211 | 0.022407 | 0.03073 | 0.193342 | 0.154289 | 0.112036 | 0.112036 | 0.112036 | 0.09219 | 0 | 0.003616 | 0.306093 | 5,580 | 198 | 79 | 28.181818 | 0.803202 | 0.02509 | 0 | 0.297101 | 0 | 0 | 0.08861 | 0.020838 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036232 | 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 |
3f05790f911b335d2d94be5f242d22af72e43329 | 5,494 | py | Python | xenia_python_client_library/models/attachments_list.py | DutchAnalytics/xenia-python-client-library | 60dc3e21094086124b552ff5bed5895fee826b57 | [
"Apache-2.0"
] | null | null | null | xenia_python_client_library/models/attachments_list.py | DutchAnalytics/xenia-python-client-library | 60dc3e21094086124b552ff5bed5895fee826b57 | [
"Apache-2.0"
] | null | null | null | xenia_python_client_library/models/attachments_list.py | DutchAnalytics/xenia-python-client-library | 60dc3e21094086124b552ff5bed5895fee826b57 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Xenia Python Client Library
Python Client Library to interact with the Xenia API. # noqa: E501
The version of the OpenAPI document: v2.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from xenia_python_client_library.configur... | 27.60804 | 132 | 0.59028 | 624 | 5,494 | 5.035256 | 0.18109 | 0.063654 | 0.106938 | 0.095481 | 0.389561 | 0.309675 | 0.283577 | 0.18205 | 0.099618 | 0.056652 | 0 | 0.014408 | 0.317801 | 5,494 | 198 | 133 | 27.747475 | 0.823906 | 0.307608 | 0 | 0.088889 | 1 | 0 | 0.050868 | 0.008065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155556 | false | 0 | 0.044444 | 0 | 0.355556 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f07c6d2135990949504b1e72bbaec00f43feafb | 616 | py | Python | server/src/models/movie.py | Rubilmax/netflux | 9e79063b81e3dc78055fc683c230de511827f030 | [
"MIT"
] | 2 | 2019-06-17T08:28:03.000Z | 2019-06-17T08:28:32.000Z | server/src/models/movie.py | Rubilmax/netflux | 9e79063b81e3dc78055fc683c230de511827f030 | [
"MIT"
] | 3 | 2020-09-05T00:54:20.000Z | 2021-05-07T15:34:58.000Z | server/src/models/movie.py | Rubilmax/netflux | 9e79063b81e3dc78055fc683c230de511827f030 | [
"MIT"
] | null | null | null | """
Define the Movie model
"""
from . import db
from .abc import BaseModel, MetaBaseModel
class Movie(db.Model, BaseModel, metaclass=MetaBaseModel):
""" The Movie model """
__tablename__ = "movies"
movie_id = db.Column(db.String(300), primary_key=True)
title = db.Column(db.String(300))
author = ... | 25.666667 | 62 | 0.657468 | 81 | 616 | 4.790123 | 0.395062 | 0.072165 | 0.103093 | 0.123711 | 0.146907 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018789 | 0.222403 | 616 | 23 | 63 | 26.782609 | 0.791232 | 0.095779 | 0 | 0 | 0 | 0 | 0.011173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.692308 | 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 |
3f1168ed05032f188730bcd06823c66a0ec28d77 | 5,168 | py | Python | testfixtures/tests/test_roundcomparison.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | testfixtures/tests/test_roundcomparison.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | testfixtures/tests/test_roundcomparison.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | # Copyright (c) 2014 Simplistix Ltd
# See license.txt for license details.
from decimal import Decimal
from testfixtures import RoundComparison as R, compare, ShouldRaise
from unittest import TestCase
from ..compat import PY2, PY3
class Tests(TestCase):
def test_equal_yes_rhs(self):
self.assertTrue(0.1... | 33.128205 | 79 | 0.629257 | 745 | 5,168 | 4.138255 | 0.108725 | 0.08628 | 0.072657 | 0.058385 | 0.743756 | 0.649692 | 0.538112 | 0.484593 | 0.410963 | 0.306195 | 0 | 0.136099 | 0.235101 | 5,168 | 155 | 80 | 33.341935 | 0.643815 | 0.013545 | 0 | 0.165138 | 0 | 0 | 0.069872 | 0 | 0 | 0 | 0 | 0 | 0.284404 | 1 | 0.348624 | false | 0 | 0.036697 | 0 | 0.412844 | 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 |
3f11b3d9455edd6883b563bf0cbd4035db741ccc | 23,628 | py | Python | config/usb_device_cdc.py | newbs/usb | 5aeafc26849673a357a6110713524387f2f5f84d | [
"0BSD"
] | null | null | null | config/usb_device_cdc.py | newbs/usb | 5aeafc26849673a357a6110713524387f2f5f84d | [
"0BSD"
] | null | null | null | config/usb_device_cdc.py | newbs/usb | 5aeafc26849673a357a6110713524387f2f5f84d | [
"0BSD"
] | null | null | null | """*****************************************************************************
* Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* responsibility to ... | 46.60355 | 210 | 0.752878 | 2,362 | 23,628 | 7.368332 | 0.171041 | 0.047058 | 0.030165 | 0.026431 | 0.478855 | 0.471443 | 0.399161 | 0.367846 | 0.33251 | 0.289071 | 0 | 0.008148 | 0.127391 | 23,628 | 506 | 211 | 46.695652 | 0.835969 | 0.05248 | 0 | 0.318059 | 0 | 0 | 0.319534 | 0.117997 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.008086 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3f18a598378fac5606353de6db627c25234fa321 | 22,823 | py | Python | jts/backend/jobapps/views.py | goupaz/babylon | 4e638d02705469061e563fec349676d8faa9f648 | [
"MIT"
] | 1 | 2019-08-08T09:03:17.000Z | 2019-08-08T09:03:17.000Z | backend/jobapps/views.py | goupaz/website | ce1bc8b6c52ee0815a7b98842ec3bde0c20e0add | [
"Apache-2.0"
] | 2 | 2020-10-09T19:16:09.000Z | 2020-10-10T20:40:41.000Z | jts/backend/jobapps/views.py | goupaz/babylon-hackathon | 4e638d02705469061e563fec349676d8faa9f648 | [
"MIT"
] | 1 | 2019-07-21T01:42:21.000Z | 2019-07-21T01:42:21.000Z | from datetime import datetime as dt
from django.utils import timezone
import uuid
from django.contrib.auth import get_user_model
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
from rest_framework.decorators import api_view
from company.utils import get_or_create_company
from ... | 50.605322 | 131 | 0.623056 | 2,524 | 22,823 | 5.374802 | 0.064976 | 0.030517 | 0.091995 | 0.12266 | 0.723574 | 0.701238 | 0.638213 | 0.608285 | 0.565163 | 0.542533 | 0 | 0.001113 | 0.291285 | 22,823 | 451 | 132 | 50.605322 | 0.837589 | 0 | 0 | 0.55792 | 0 | 0 | 0.034788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016548 | false | 0 | 0.049645 | 0 | 0.189125 | 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 |
3f1e42b52ec11496ab90f620e8e049e8cb9d426e | 1,462 | py | Python | tests/test_env.py | dmitrvk/mymusichere-app | 02a6d5f60a72197e08c98da59b0ef7e7168dcf4b | [
"MIT"
] | null | null | null | tests/test_env.py | dmitrvk/mymusichere-app | 02a6d5f60a72197e08c98da59b0ef7e7168dcf4b | [
"MIT"
] | 14 | 2020-06-06T19:08:03.000Z | 2020-12-03T12:07:04.000Z | tests/test_env.py | dmitrvk/mymusichere-app | 02a6d5f60a72197e08c98da59b0ef7e7168dcf4b | [
"MIT"
] | null | null | null | # Licensed under the MIT License
from mymusichere import env
class TestEnv:
def test_get_config_from_env(self, monkeypatch):
monkeypatch.setenv('CONFIG', 'value')
assert env.get_str_config('config') == 'value'
def test_get_secret_from_env(self, monkeypatch):
monkeypatch.setenv('SECR... | 35.658537 | 76 | 0.678523 | 189 | 1,462 | 4.978836 | 0.185185 | 0.105207 | 0.140276 | 0.136026 | 0.757705 | 0.658874 | 0.399575 | 0.348565 | 0.289054 | 0.121148 | 0 | 0.001696 | 0.19357 | 1,462 | 40 | 77 | 36.55 | 0.796438 | 0.02052 | 0 | 0.142857 | 0 | 0 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0.392857 | 1 | 0.285714 | false | 0 | 0.035714 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f31a6445fe5a4545fbddede8dd570fd945d12b3 | 596 | py | Python | web-interface/app/application/misc/pages/misc_options/purposes_sampling.py | horvathi94/seqmeta | 94f2f04c372181c93a6f68b6efe15b141ef02779 | [
"MIT"
] | null | null | null | web-interface/app/application/misc/pages/misc_options/purposes_sampling.py | horvathi94/seqmeta | 94f2f04c372181c93a6f68b6efe15b141ef02779 | [
"MIT"
] | null | null | null | web-interface/app/application/misc/pages/misc_options/purposes_sampling.py | horvathi94/seqmeta | 94f2f04c372181c93a6f68b6efe15b141ef02779 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from .base import _MiscOptionBase
from application.src.misc.sampling import PurposesOfSampling
@dataclass
class Editor(_MiscOptionBase):
name = "Purpose of sampling"
id = "purpose_of_sampling"
link = "misc_bp.submit_purpose_of_sampling"
description = "The reason the ... | 24.833333 | 60 | 0.718121 | 69 | 596 | 6.028986 | 0.637681 | 0.064904 | 0.122596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196309 | 596 | 23 | 61 | 25.913043 | 0.868476 | 0 | 0 | 0.125 | 0 | 0 | 0.235294 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.0625 | 0.6875 | 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 |
3f374d2a724eacf4543f9a4bee934b7b700f04f6 | 396 | py | Python | python/phevaluator/table_tests/test_hashtable8.py | StTronn/PokerHandEvaluator | 3611a7072c2a62844d6aca32d798aafa59e4606d | [
"Apache-2.0"
] | 1 | 2020-11-12T14:35:02.000Z | 2020-11-12T14:35:02.000Z | python/phevaluator/table_tests/test_hashtable8.py | StTronn/PokerHandEvaluator | 3611a7072c2a62844d6aca32d798aafa59e4606d | [
"Apache-2.0"
] | null | null | null | python/phevaluator/table_tests/test_hashtable8.py | StTronn/PokerHandEvaluator | 3611a7072c2a62844d6aca32d798aafa59e4606d | [
"Apache-2.0"
] | null | null | null | import unittest
from table_tests.utils import BaseTestNoFlushTable
from evaluator.hashtable8 import NO_FLUSH_8
class TestNoFlush8Table(BaseTestNoFlushTable):
TOCOMPARE = NO_FLUSH_8
TABLE = [0] * len(TOCOMPARE)
VISIT = [0] * len(TOCOMPARE)
NUM_CARDS = 8
def test_noflush8_table(self):
self.assertListEqua... | 23.294118 | 52 | 0.765152 | 49 | 396 | 5.857143 | 0.571429 | 0.04878 | 0.055749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023599 | 0.143939 | 396 | 16 | 53 | 24.75 | 0.823009 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3f39db2a6e3725e4d6d3a964e14a0df2e6772218 | 655 | py | Python | days/day01/part2.py | jaredbancroft/aoc2021 | 4eaf339cc0c8566da2af13f7cb9cf6fe87355aac | [
"MIT"
] | null | null | null | days/day01/part2.py | jaredbancroft/aoc2021 | 4eaf339cc0c8566da2af13f7cb9cf6fe87355aac | [
"MIT"
] | null | null | null | days/day01/part2.py | jaredbancroft/aoc2021 | 4eaf339cc0c8566da2af13f7cb9cf6fe87355aac | [
"MIT"
] | null | null | null | from helpers import inputs
def solution(day):
depths = inputs.read_to_list(f"inputs/{day}.txt")
part2_total = 0
for index, depth in enumerate(depths):
if index - 3 >= 0:
current_window = (
int(depth) + int(depths[index - 1]) + int(depths[index - 2])
)
... | 31.190476 | 76 | 0.51145 | 77 | 655 | 4.233766 | 0.441558 | 0.138037 | 0.214724 | 0.092025 | 0.184049 | 0.184049 | 0.184049 | 0.184049 | 0 | 0 | 0 | 0.039506 | 0.381679 | 655 | 20 | 77 | 32.75 | 0.765432 | 0 | 0 | 0 | 0 | 0 | 0.099237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.