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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b8db4952ad5c55aa4611431b1886cf54a31f84a | 682 | py | Python | Assignment 3. Paxos/Simulation/Network/Network.py | WailAbou/Distributed-Processing | 46a36f1fd51d6f8b35cc639eb8002d81d7e09f2b | [
"MIT"
] | null | null | null | Assignment 3. Paxos/Simulation/Network/Network.py | WailAbou/Distributed-Processing | 46a36f1fd51d6f8b35cc639eb8002d81d7e09f2b | [
"MIT"
] | null | null | null | Assignment 3. Paxos/Simulation/Network/Network.py | WailAbou/Distributed-Processing | 46a36f1fd51d6f8b35cc639eb8002d81d7e09f2b | [
"MIT"
] | null | null | null | from Simulation.Network.Actions import send_message
class Network:
def __init__(self, proposers, acceptors):
self.queue = []
self.proposers = proposers
self.acceptors = acceptors
def queue_message(self, message):
self.queue.append(message)
def extract_message(self):
... | 27.28 | 77 | 0.651026 | 76 | 682 | 5.710526 | 0.421053 | 0.082949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252199 | 682 | 24 | 78 | 28.416667 | 0.85098 | 0 | 0 | 0 | 0 | 0 | 0.07478 | 0.030792 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b90ec08ade0528601d7d5711be814ac665fc15d | 1,694 | py | Python | song_bond.py | skullydazed/PyRoombaAdapter | 88824e91b0f0cec008b16cfaa5a62a6546f1226e | [
"MIT"
] | null | null | null | song_bond.py | skullydazed/PyRoombaAdapter | 88824e91b0f0cec008b16cfaa5a62a6546f1226e | [
"MIT"
] | null | null | null | song_bond.py | skullydazed/PyRoombaAdapter | 88824e91b0f0cec008b16cfaa5a62a6546f1226e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""James Bond Theme, Composed by Monty Norman
Adapted for Roomba by Zach White
"""
from time import sleep
from pyroombaadapter import PyRoombaAdapter
notes0 = (
# note, duration
'B3', '1/2',
'C4', '1/2',
'C#4', '1/2',
'C4', '1/2',
'B3', '1/2',
'C4', '1/2',
'C#4',... | 18.822222 | 57 | 0.485832 | 288 | 1,694 | 2.788194 | 0.270833 | 0.047323 | 0.034869 | 0.024907 | 0.32254 | 0.188045 | 0.09589 | 0.07472 | 0.059776 | 0.039851 | 0 | 0.13922 | 0.257969 | 1,694 | 89 | 58 | 19.033708 | 0.499602 | 0.106257 | 0 | 0.430556 | 0 | 0 | 0.222888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 0.069444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ba2a99855aee76d9f42b28ebf924f529a089bcd | 854 | py | Python | data/datatable.py | sisiwei/impossible-food | 567e0811d5d88a83eae6dadf526bc048e7057121 | [
"MIT"
] | 1 | 2015-04-11T10:27:29.000Z | 2015-04-11T10:27:29.000Z | data/datatable.py | sisiwei/impossible-food | 567e0811d5d88a83eae6dadf526bc048e7057121 | [
"MIT"
] | null | null | null | data/datatable.py | sisiwei/impossible-food | 567e0811d5d88a83eae6dadf526bc048e7057121 | [
"MIT"
] | null | null | null | import json
import sys
from multiprocessing import Pool
DOMAIN = "TM"
def read_file(year):
data = []
with open("%s-%s.json" % (DOMAIN, year), 'rb') as f:
j = json.loads(f.read())
for row in j:
data.append({
'domain': row[1],
'country': row[2],
'country_code': int(row[3]),
... | 22.473684 | 54 | 0.539813 | 123 | 854 | 3.634146 | 0.504065 | 0.053691 | 0.067114 | 0.071588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067742 | 0.274005 | 854 | 37 | 55 | 23.081081 | 0.653226 | 0.09719 | 0 | 0 | 0 | 0 | 0.126302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ba6fc313f5304844d20f830ba30be7f1409ef35 | 8,294 | py | Python | neaps-api/neaps_lib/delivery_time_test.py | HotelsDotCom/neaps | 4222016d60d27a168f4fb5569d696ec1731f8698 | [
"Apache-2.0"
] | 6 | 2018-01-18T11:31:41.000Z | 2019-11-11T19:56:06.000Z | neaps-api/neaps_lib/delivery_time_test.py | HotelsDotCom/neaps | 4222016d60d27a168f4fb5569d696ec1731f8698 | [
"Apache-2.0"
] | null | null | null | neaps-api/neaps_lib/delivery_time_test.py | HotelsDotCom/neaps | 4222016d60d27a168f4fb5569d696ec1731f8698 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2018 Expedia Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 22.176471 | 74 | 0.437545 | 895 | 8,294 | 3.910615 | 0.15419 | 0.100286 | 0.061714 | 0.044571 | 0.555143 | 0.541429 | 0.523429 | 0.452571 | 0.452 | 0.432 | 0 | 0.076622 | 0.384736 | 8,294 | 373 | 75 | 22.235925 | 0.609249 | 0.825778 | 0 | 0.058824 | 0 | 0 | 0.051327 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ba87f59c7f750ad17a00d25ed32add4e2688d55 | 9,360 | py | Python | layouts/params.py | JAOP1/pyristicLab | fb3f0eb88af5b964bf91875e20fb3c42b04e257d | [
"MIT"
] | null | null | null | layouts/params.py | JAOP1/pyristicLab | fb3f0eb88af5b964bf91875e20fb3c42b04e257d | [
"MIT"
] | null | null | null | layouts/params.py | JAOP1/pyristicLab | fb3f0eb88af5b964bf91875e20fb3c42b04e257d | [
"MIT"
] | null | null | null |
"""
---------------------------------------------------------------------
Continuos Optimization Problems
---------------------------------------------------------------------
"""
"""
---------------------------------------------------------------------
GA configuration
------... | 25.57377 | 72 | 0.290278 | 508 | 9,360 | 5.257874 | 0.238189 | 0.019468 | 0.026956 | 0.029203 | 0.48596 | 0.420442 | 0.377012 | 0.361288 | 0.361288 | 0.315987 | 0 | 0.022262 | 0.524893 | 9,360 | 366 | 73 | 25.57377 | 0.578367 | 0.020406 | 0 | 0.338279 | 0 | 0 | 0.288419 | 0.035544 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002967 | false | 0 | 0 | 0 | 0.011869 | 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 |
6ba92406854249e5b9f75ef7a1b017bf6c889193 | 932 | py | Python | logstash-pruner/prune_logs.py | wuvt/containers | 729469c4e878027da589afb9b37d61de104a5713 | [
"0BSD"
] | 1 | 2017-09-16T04:54:33.000Z | 2017-09-16T04:54:33.000Z | logstash-pruner/prune_logs.py | wuvt/containers | 729469c4e878027da589afb9b37d61de104a5713 | [
"0BSD"
] | null | null | null | logstash-pruner/prune_logs.py | wuvt/containers | 729469c4e878027da589afb9b37d61de104a5713 | [
"0BSD"
] | null | null | null | #!/usr/bin/python3
import datetime
import os
import requests
import sys
if sys.version_info[0] >= 3:
import urllib.parse as urllib
else:
import urllib
endpoint = os.environ['ELASTICSEARCH_URL']
username = os.environ['ELASTICSEARCH_USERNAME']
password = os.environ['ELASTICSEARCH_PASSWORD']
prune_start = datet... | 29.125 | 70 | 0.604077 | 113 | 932 | 4.920354 | 0.504425 | 0.048561 | 0.118705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021521 | 0.252146 | 932 | 31 | 71 | 30.064516 | 0.776184 | 0.01824 | 0 | 0.076923 | 0 | 0 | 0.102845 | 0.04814 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.115385 | 0.230769 | 0 | 0.230769 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6baa9dca059c9918a2a7be0aeb44d2c0167aca74 | 1,841 | py | Python | venv/lib/python3.8/site-packages/ansible/utils/collection_loader/_collection_meta.py | saeedya/docker-ansible | 6fb0cfc6bc4a5925b21380952a5a4502ec02119a | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/ansible/utils/collection_loader/_collection_meta.py | saeedya/docker-ansible | 6fb0cfc6bc4a5925b21380952a5a4502ec02119a | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/ansible/utils/collection_loader/_collection_meta.py | saeedya/docker-ansible | 6fb0cfc6bc4a5925b21380952a5a4502ec02119a | [
"Apache-2.0"
] | null | null | null | # (c) 2019 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# CAUTION: There are two implementations of the collection loader.
# They must be kept functionally identical, although their implementations may differ.
#
# 1) The controller implementation... | 48.447368 | 125 | 0.76969 | 259 | 1,841 | 5.332046 | 0.490347 | 0.039826 | 0.030413 | 0.037654 | 0.166546 | 0.166546 | 0.166546 | 0.166546 | 0.099928 | 0.099928 | 0 | 0.00654 | 0.169473 | 1,841 | 37 | 126 | 49.756757 | 0.896664 | 0.661054 | 0 | 0 | 0 | 0 | 0.098107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6bb2d695f2072ac119b9190737ac6f9ea82daea3 | 7,969 | py | Python | Kernelized-Rank-Learning-master/dataset.py | zsyasd/drug-response-test | 65bff3423a0cc972dd4664b7f547767c1f10f635 | [
"MIT"
] | 1 | 2021-01-22T04:06:57.000Z | 2021-01-22T04:06:57.000Z | Kernelized-Rank-Learning-master/dataset.py | zsyasd/drug-response-test | 65bff3423a0cc972dd4664b7f547767c1f10f635 | [
"MIT"
] | null | null | null | Kernelized-Rank-Learning-master/dataset.py | zsyasd/drug-response-test | 65bff3423a0cc972dd4664b7f547767c1f10f635 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import urllib2
import zipfile
import numpy as np
import pandas as pd
from openpyxl import load_workbook
from misc import intersect_index
def main():
# Read URLs to GDSC datasets
urls_file = sys.argv[1]
urls = []
with open(urls_file) as f:
for line i... | 40.866667 | 136 | 0.677626 | 1,228 | 7,969 | 4.126222 | 0.145765 | 0.048352 | 0.038484 | 0.034735 | 0.420762 | 0.318137 | 0.248865 | 0.227353 | 0.186304 | 0.186304 | 0 | 0.038569 | 0.189861 | 7,969 | 194 | 137 | 41.07732 | 0.746283 | 0.059104 | 0 | 0.082759 | 0 | 0 | 0.119401 | 0.023666 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055172 | null | null | 0.048276 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6bb46fd7a793cdd2673a191ac0ee65bd9e96f260 | 682 | py | Python | gallery/migrations/0011_auto_20161126_1821.py | danielsinaga1/djangonewsfix | 04b84240daabb840c1e715fbade8ae15b3b0f22c | [
"BSD-3-Clause"
] | 19 | 2018-01-28T14:35:40.000Z | 2020-12-04T03:04:02.000Z | gallery/migrations/0011_auto_20161126_1821.py | danielsinaga1/djangonewsfix | 04b84240daabb840c1e715fbade8ae15b3b0f22c | [
"BSD-3-Clause"
] | 8 | 2018-06-02T14:28:28.000Z | 2021-08-06T10:22:37.000Z | gallery/migrations/0011_auto_20161126_1821.py | danielsinaga1/djangonewsfix | 04b84240daabb840c1e715fbade8ae15b3b0f22c | [
"BSD-3-Clause"
] | 21 | 2018-02-25T14:07:48.000Z | 2020-05-28T23:10:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-11-26 16:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gallery', '0010_auto_20161126_1543'),
]
operations = [
migrations.AlterField... | 26.230769 | 84 | 0.612903 | 73 | 682 | 5.561644 | 0.643836 | 0.098522 | 0.123153 | 0.142857 | 0.492611 | 0.492611 | 0.280788 | 0.280788 | 0.280788 | 0.280788 | 0 | 0.064386 | 0.271261 | 682 | 25 | 85 | 27.28 | 0.752515 | 0.09824 | 0 | 0.444444 | 1 | 0 | 0.181373 | 0.037582 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bb5e552c9b4052b2b3d89711be844490a830473 | 1,764 | py | Python | sgcc-client/api/my_api.py | zhanwei33/baai-federated-learning | 838507f2344139e66385e1ef475a148fdeaf5c62 | [
"Apache-2.0"
] | 26 | 2020-11-30T09:42:17.000Z | 2022-03-05T02:20:45.000Z | sgcc-client/api/my_api.py | AIOpenData/baai-federated-learning-helmet-baseline | 8d9a1eded43a945f790d415f3ee37cda78b73c52 | [
"Apache-2.0"
] | null | null | null | sgcc-client/api/my_api.py | AIOpenData/baai-federated-learning-helmet-baseline | 8d9a1eded43a945f790d415f3ee37cda78b73c52 | [
"Apache-2.0"
] | 6 | 2020-12-01T13:01:15.000Z | 2021-11-16T10:51:39.000Z | from api import my_api
from service.federated.client import Client
from utils.common_utils import Common
from flask import request
@my_api.route('/')
def index():
return '<h1>Hello, this is client!</h1>'
@my_api.route("/federated_train_size", methods=["GET", "POST"])
def federated_train_size():
return Clien... | 36.75 | 93 | 0.781746 | 253 | 1,764 | 5.098814 | 0.217391 | 0.153488 | 0.116279 | 0.058915 | 0.532558 | 0.414729 | 0.366667 | 0.366667 | 0.366667 | 0.327132 | 0 | 0.001287 | 0.119048 | 1,764 | 47 | 94 | 37.531915 | 0.828829 | 0.150794 | 0 | 0.148148 | 0 | 0 | 0.132708 | 0.014075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.148148 | 0.074074 | 0.518519 | 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 |
6bba5f186b30e976cabf28a647d3b87bff42e9f0 | 5,954 | py | Python | backend/tracim_backend/tests/library/test_application_api.py | lezardrouge/tracim | 713ff6066767554333e7e0b1de608ec1a7e4229c | [
"MIT"
] | null | null | null | backend/tracim_backend/tests/library/test_application_api.py | lezardrouge/tracim | 713ff6066767554333e7e0b1de608ec1a7e4229c | [
"MIT"
] | null | null | null | backend/tracim_backend/tests/library/test_application_api.py | lezardrouge/tracim | 713ff6066767554333e7e0b1de608ec1a7e4229c | [
"MIT"
] | null | null | null | from mock import Mock
from tracim_backend.app_models.applications import Application
from tracim_backend.app_models.contents import content_status_list
from tracim_backend.app_models.workspace_menu_entries import all_content_menu_entry
from tracim_backend.app_models.workspace_menu_entries import dashboard_menu_entry
f... | 41.062069 | 100 | 0.658885 | 674 | 5,954 | 5.437685 | 0.172107 | 0.090859 | 0.141883 | 0.177353 | 0.700136 | 0.661664 | 0.661664 | 0.62101 | 0.610914 | 0.554161 | 0 | 0.006763 | 0.254955 | 5,954 | 144 | 101 | 41.347222 | 0.819432 | 0.026537 | 0 | 0.56 | 0 | 0 | 0.088261 | 0.036107 | 0 | 0 | 0 | 0.006944 | 0.112 | 1 | 0.032 | false | 0 | 0.064 | 0 | 0.104 | 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 |
6bc31e0e8c79fc64c7885e7fdab75aafe565a7f9 | 204 | py | Python | WebFrameDocs/src/demo/flask-demo/apps/api/common/response.py | Bean-jun/LearnGuide | 30a8567b222d18b15d3e9027a435b5bfe640a046 | [
"MIT"
] | 1 | 2022-02-23T13:42:01.000Z | 2022-02-23T13:42:01.000Z | WebFrameDocs/src/demo/flask-demo/apps/api/common/response.py | Bean-jun/LearnGuide | 30a8567b222d18b15d3e9027a435b5bfe640a046 | [
"MIT"
] | null | null | null | WebFrameDocs/src/demo/flask-demo/apps/api/common/response.py | Bean-jun/LearnGuide | 30a8567b222d18b15d3e9027a435b5bfe640a046 | [
"MIT"
] | null | null | null | def response(code=200, msg=None, data=None):
# 请求响应
msg = msg if msg else ""
data = data if data else ""
return {
"code": code,
"message": msg,
"data": data
}
| 18.545455 | 44 | 0.5 | 26 | 204 | 3.923077 | 0.461538 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.362745 | 204 | 10 | 45 | 20.4 | 0.761538 | 0.019608 | 0 | 0 | 0 | 0 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bc804671bae5a9914e56977a2eb91970281e7fd | 319 | py | Python | mysite/myapp/migrations/0003_remove_input_input2.py | Omnibyte27/Web-Collab | 8f18b2f62f5497669a0f95cfbcfb128738db8c9e | [
"MIT"
] | 1 | 2019-11-09T00:17:00.000Z | 2019-11-09T00:17:00.000Z | mysite/myapp/migrations/0003_remove_input_input2.py | Omnibyte27/Web-Collab | 8f18b2f62f5497669a0f95cfbcfb128738db8c9e | [
"MIT"
] | 7 | 2020-06-06T00:19:39.000Z | 2022-02-10T14:08:37.000Z | mysite/myapp/migrations/0003_remove_input_input2.py | Omnibyte27/Web-Collab | 8f18b2f62f5497669a0f95cfbcfb128738db8c9e | [
"MIT"
] | 1 | 2019-11-10T23:12:42.000Z | 2019-11-10T23:12:42.000Z | # Generated by Django 2.2.5 on 2019-09-29 18:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myapp', '0002_input_input2'),
]
operations = [
migrations.RemoveField(
model_name='input',
name='input2',
),
]
| 17.722222 | 47 | 0.579937 | 34 | 319 | 5.352941 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094595 | 0.304075 | 319 | 17 | 48 | 18.764706 | 0.725225 | 0.141066 | 0 | 0 | 1 | 0 | 0.121324 | 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 |
6bcafe8a760a06ba575713e54df859c88a35ea32 | 2,671 | py | Python | test.py | Tang-Jie-Chang/keras-maskrcnn | 2ad1380005265c4e3158858ae030b0039fd16eec | [
"Apache-2.0"
] | null | null | null | test.py | Tang-Jie-Chang/keras-maskrcnn | 2ad1380005265c4e3158858ae030b0039fd16eec | [
"Apache-2.0"
] | null | null | null | test.py | Tang-Jie-Chang/keras-maskrcnn | 2ad1380005265c4e3158858ae030b0039fd16eec | [
"Apache-2.0"
] | null | null | null | # import keras
import keras
# import keras_retinanet
from keras_maskrcnn import models
from keras_maskrcnn.utils.visualization import draw_mask
from keras_retinanet.utils.visualization import draw_box, draw_caption, draw_annotations
from keras_retinanet.utils.image import read_image_bgr, preprocess_image, resiz... | 34.688312 | 167 | 0.681767 | 376 | 2,671 | 4.707447 | 0.481383 | 0.025424 | 0.030508 | 0.038983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028787 | 0.206664 | 2,671 | 77 | 168 | 34.688312 | 0.806513 | 0.211906 | 0 | 0 | 0 | 0 | 0.114201 | 0.01142 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.326087 | 0 | 0.369565 | 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 |
6bd4306cbba78d516d0027f40cedd02fdc18d8f6 | 1,942 | py | Python | tests/test_transforms.py | luiarthur/advi | e461a08dcbd32836d15a3c276d27417cf619298c | [
"MIT"
] | 1 | 2020-04-04T12:58:18.000Z | 2020-04-04T12:58:18.000Z | tests/test_transforms.py | luiarthur/advi | e461a08dcbd32836d15a3c276d27417cf619298c | [
"MIT"
] | null | null | null | tests/test_transforms.py | luiarthur/advi | e461a08dcbd32836d15a3c276d27417cf619298c | [
"MIT"
] | null | null | null | import unittest
import torch
import advi.transformations as trans
class Test_Transformations(unittest.TestCase):
def approx(self, a, b, eps=1E-8):
self.assertTrue(abs(a - b) < eps)
def test_bounded(self):
p = torch.tensor(.5)
self.assertTrue(trans.logit(p) == 0)
q = torch.ten... | 33.482759 | 74 | 0.589083 | 279 | 1,942 | 3.985663 | 0.329749 | 0.089029 | 0.032374 | 0.026978 | 0.186151 | 0.123201 | 0.098022 | 0.070144 | 0.070144 | 0.070144 | 0 | 0.06511 | 0.2724 | 1,942 | 57 | 75 | 34.070175 | 0.721868 | 0.094748 | 0 | 0.116279 | 0 | 0 | 0.004564 | 0 | 0 | 0 | 0 | 0.017544 | 0.069767 | 1 | 0.139535 | false | 0 | 0.069767 | 0 | 0.232558 | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6bdcdf872b440de0263c9a18d6e09d85b322ab4c | 272 | py | Python | src/lib/fibonacci.py | lastnamevega/fastapi-demo | c2911c3e4d764c27e5ccf540ddc2d3c9bbc624a6 | [
"MIT"
] | null | null | null | src/lib/fibonacci.py | lastnamevega/fastapi-demo | c2911c3e4d764c27e5ccf540ddc2d3c9bbc624a6 | [
"MIT"
] | null | null | null | src/lib/fibonacci.py | lastnamevega/fastapi-demo | c2911c3e4d764c27e5ccf540ddc2d3c9bbc624a6 | [
"MIT"
] | null | null | null | def fibonacci(desired_index: int):
if desired_index < 0:
raise ValueError(f'{desired_index} is less than 0')
values = [0, 1]
for i in range(2, desired_index + 1):
values.append(values[i - 1] + values[i - 2])
return values[desired_index]
| 24.727273 | 59 | 0.628676 | 41 | 272 | 4.04878 | 0.536585 | 0.361446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.25 | 272 | 10 | 60 | 27.2 | 0.77451 | 0 | 0 | 0 | 0 | 0 | 0.110294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 |
6be3244eac9c140c3d63372c0ad3149ef60a64c1 | 1,676 | py | Python | sanctuary/topic/api.py | 20CM/Sanctuary | 14694d9bd6376bdc05248741a91df778400e9f66 | [
"BSD-3-Clause"
] | 1 | 2017-05-29T11:53:06.000Z | 2017-05-29T11:53:06.000Z | sanctuary/topic/api.py | 20CM/Sanctuary | 14694d9bd6376bdc05248741a91df778400e9f66 | [
"BSD-3-Clause"
] | null | null | null | sanctuary/topic/api.py | 20CM/Sanctuary | 14694d9bd6376bdc05248741a91df778400e9f66 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import status
from rest_framework.response import Response
from rest_framework.permissions import BasePermission, SAFE_METHODS, IsAuthenticatedOrReadOnly
from .models import Topic, Reply
from sanctuary.viewsets import NoDestroyModelViewSet
from .serializers import TopicSerializer, ReplySerializer
... | 35.659574 | 94 | 0.755967 | 170 | 1,676 | 7.311765 | 0.417647 | 0.035398 | 0.04103 | 0.033789 | 0.119067 | 0.119067 | 0 | 0 | 0 | 0 | 0 | 0.002141 | 0.164081 | 1,676 | 46 | 95 | 36.434783 | 0.885082 | 0.01432 | 0 | 0.0625 | 0 | 0 | 0.016504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.1875 | 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 |
6bf3184d75c0305e0ed63aa9eb50baca989c89e5 | 1,813 | py | Python | Books/DeepLearningLearningFromTheFounderOfKeras/chapter7/sub7_2_2.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | 2 | 2020-12-05T07:42:55.000Z | 2021-01-06T23:23:18.000Z | Books/DeepLearningLearningFromTheFounderOfKeras/chapter7/sub7_2_2.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | Books/DeepLearningLearningFromTheFounderOfKeras/chapter7/sub7_2_2.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | #-*-coding: utf-8-*-
#todo p.333 ~ p.340
#todo code 7-7 ~ code 7-9
#todo 7.2.2 텐서보드 소개: 텐서플로의 시각화 프레임워크
import os
import keras
from keras import layers
from keras.datasets import imdb
from keras.preprocessing import sequence
max_features = 2000 # 특성으로 사용할 단어의 수
max_len = 500 # 사용할 텍스트의 길이
(x_train, y_train), (x_te... | 31.258621 | 110 | 0.661335 | 258 | 1,813 | 4.46124 | 0.472868 | 0.041703 | 0.07298 | 0.050391 | 0.239791 | 0.187663 | 0.187663 | 0.187663 | 0.187663 | 0.187663 | 0 | 0.032532 | 0.220077 | 1,813 | 58 | 111 | 31.258621 | 0.780764 | 0.11914 | 0 | 0.088889 | 0 | 0 | 0.052267 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bf4ad195f97897af7bd9a29940a148f1e9542dc | 271 | py | Python | spacy_lookup/about.py | BasileDjigg/spacy-lookup | 16929120d03fa1215f574286072377f10b7e089b | [
"MIT"
] | null | null | null | spacy_lookup/about.py | BasileDjigg/spacy-lookup | 16929120d03fa1215f574286072377f10b7e089b | [
"MIT"
] | null | null | null | spacy_lookup/about.py | BasileDjigg/spacy-lookup | 16929120d03fa1215f574286072377f10b7e089b | [
"MIT"
] | null | null | null | __title__ = 'spacy-lookup'
__version__ = '0.0.1'
__summary__ = 'spaCy pipeline component for Named Entity Recognition based on dictionaries.'
__url__ = 'https://github.com/mpuig/spacy-lookup'
__author__ = 'Marc Puig'
__email__ = 'marc.puig@gmail.com'
__license__ = 'MIT'
| 33.875 | 92 | 0.756458 | 35 | 271 | 5.057143 | 0.8 | 0.124294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.114391 | 271 | 7 | 93 | 38.714286 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0.594096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bffc6fb525922ad40eb7287ee43188f6f55ec06 | 615 | py | Python | shortner/migrations/0005_auto_20200407_1237.py | OakNinja/shortner | 8b051f4d74dc70bccd62e983ce300f8115cc72c8 | [
"BSD-3-Clause"
] | 1 | 2020-04-29T15:02:14.000Z | 2020-04-29T15:02:14.000Z | shortner/migrations/0005_auto_20200407_1237.py | OakNinja/shortner | 8b051f4d74dc70bccd62e983ce300f8115cc72c8 | [
"BSD-3-Clause"
] | null | null | null | shortner/migrations/0005_auto_20200407_1237.py | OakNinja/shortner | 8b051f4d74dc70bccd62e983ce300f8115cc72c8 | [
"BSD-3-Clause"
] | 1 | 2020-04-29T07:05:00.000Z | 2020-04-29T07:05:00.000Z | # Generated by Django 3.0.5 on 2020-04-07 12:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('shortner', '0004_auto_20... | 27.954545 | 145 | 0.682927 | 73 | 615 | 5.60274 | 0.643836 | 0.05868 | 0.06846 | 0.107579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063786 | 0.209756 | 615 | 21 | 146 | 29.285714 | 0.777778 | 0.073171 | 0 | 0 | 1 | 0 | 0.088028 | 0.040493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d408fc1b6721eb44808e49cf65005653acafaac9 | 453 | py | Python | accounts/urls.py | yusufom/ERP | a1844d0ece0ab5fff748d75a3ac7a2a963e56576 | [
"Unlicense"
] | null | null | null | accounts/urls.py | yusufom/ERP | a1844d0ece0ab5fff748d75a3ac7a2a963e56576 | [
"Unlicense"
] | null | null | null | accounts/urls.py | yusufom/ERP | a1844d0ece0ab5fff748d75a3ac7a2a963e56576 | [
"Unlicense"
] | null | null | null | from django.urls import path
from . import views
app_name = 'accounts'
urlpatterns = [
path('', views.account_login, name='Login'),
path('logout/',views.logout_view,name='Logout'),
path('dashboard/profile/',views.user_profile_view, name='Userprofile'),
path('dashboard/profile/change-password/',views.... | 32.357143 | 90 | 0.724062 | 54 | 453 | 5.944444 | 0.444444 | 0.074766 | 0.124611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112583 | 453 | 14 | 91 | 32.357143 | 0.798507 | 0 | 0 | 0 | 0 | 0 | 0.314978 | 0.145374 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d40984bcd14733bbc43b1c6fcd7a5a580108415f | 4,222 | py | Python | qtpythonic/qtpythonic/lookup.py | uranusjr/qtpythonic | 97669fd1ee52ac833b732e98c0da514996914753 | [
"MIT"
] | null | null | null | qtpythonic/qtpythonic/lookup.py | uranusjr/qtpythonic | 97669fd1ee52ac833b732e98c0da514996914753 | [
"MIT"
] | null | null | null | qtpythonic/qtpythonic/lookup.py | uranusjr/qtpythonic | 97669fd1ee52ac833b732e98c0da514996914753 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
# Starts with a lowercase letter, followed by a sequence of lowercase letters
# and underscores.
FUNCTION_PATTERN = re.compile(r'^[a-z][a-z_]*$')
PROPERTY_PATTERN = FUNCTION_PATTERN
# Starts with an uppercase letter, followed by a sequence of uppercase letters
... | 33.776 | 78 | 0.61819 | 517 | 4,222 | 4.851064 | 0.253385 | 0.059809 | 0.047847 | 0.103668 | 0.48126 | 0.444976 | 0.404705 | 0.351276 | 0.312201 | 0.312201 | 0 | 0.001968 | 0.27783 | 4,222 | 124 | 79 | 34.048387 | 0.820597 | 0.232117 | 0 | 0.565217 | 0 | 0 | 0.034772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032609 | false | 0.130435 | 0.01087 | 0 | 0.206522 | 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 |
d411e41531f233c38e217781ca3261dc0049615e | 4,119 | py | Python | backend/app/api/models/auth.py | PY-GZKY/fastapi-crawl-admin | 6535054994d11e3c31b4caeae65e8fa0f495d2b7 | [
"MIT"
] | 13 | 2021-07-25T15:26:04.000Z | 2022-03-02T12:12:02.000Z | backend/app/api/models/auth.py | PY-GZKY/fastapi-crawl-admin | 6535054994d11e3c31b4caeae65e8fa0f495d2b7 | [
"MIT"
] | 1 | 2021-07-26T03:26:09.000Z | 2021-07-26T09:05:38.000Z | backend/app/api/models/auth.py | PY-GZKY/fastapi-crawl-admin | 6535054994d11e3c31b4caeae65e8fa0f495d2b7 | [
"MIT"
] | 3 | 2021-07-26T01:44:24.000Z | 2021-07-31T14:31:49.000Z |
# -*- coding: utf-8 -*-
# @Time : 2020/7/7 14:16
# @Author : CoderCharm
# @File : auth.py
# @Software: PyCharm
# @Desc :
"""
用户模块
"""
from datetime import datetime
from sqlalchemy import BIGINT, Column, DateTime, Integer, SmallInteger, VARCHAR
from app.api.db.baseClass import Base
from app.api.db.baseCla... | 37.108108 | 104 | 0.677106 | 519 | 4,119 | 5.235067 | 0.292871 | 0.129187 | 0.06625 | 0.05668 | 0.465219 | 0.349282 | 0.268679 | 0.210526 | 0.142805 | 0.104527 | 0 | 0.02756 | 0.163146 | 4,119 | 110 | 105 | 37.445455 | 0.760661 | 0.039087 | 0 | 0.153846 | 0 | 0 | 0.078162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.030769 | 0.061538 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d41296a966b725cdd8a0e830cd9e45a19e9ec57d | 729 | py | Python | djangocms_markdown/cms_plugins.py | tuan243/djangocms-markdown | 53dbf2473da013987e0bc53103a2b894f5463c0c | [
"MIT"
] | null | null | null | djangocms_markdown/cms_plugins.py | tuan243/djangocms-markdown | 53dbf2473da013987e0bc53103a2b894f5463c0c | [
"MIT"
] | null | null | null | djangocms_markdown/cms_plugins.py | tuan243/djangocms-markdown | 53dbf2473da013987e0bc53103a2b894f5463c0c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Implementation of CMSPluginBase class for ``cmsplugin-markdown``."""
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from django.utils.translation import ugettext_lazy as _
from djangocms_markdown.models import Markdown
class MarkdownPlugin(CMSPluginBase):... | 30.375 | 74 | 0.757202 | 82 | 729 | 6.54878 | 0.512195 | 0.055866 | 0.048417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001613 | 0.14952 | 729 | 23 | 75 | 31.695652 | 0.864516 | 0.120713 | 0 | 0 | 0 | 0 | 0.124409 | 0.105512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.785714 | 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 |
d422caf64fbf4d1c710933fbc0a822835d9b9411 | 6,411 | py | Python | inst/pythonScript/extraTEmergep_pall.py | niccw/repeatCraft | 84ac019189a940d884ec61b5aab0b7b87a74ed52 | [
"MIT"
] | null | null | null | inst/pythonScript/extraTEmergep_pall.py | niccw/repeatCraft | 84ac019189a940d884ec61b5aab0b7b87a74ed52 | [
"MIT"
] | null | null | null | inst/pythonScript/extraTEmergep_pall.py | niccw/repeatCraft | 84ac019189a940d884ec61b5aab0b7b87a74ed52 | [
"MIT"
] | 1 | 2022-02-19T13:30:57.000Z | 2022-02-19T13:30:57.000Z | import sys
import subprocess
from collections import defaultdict
nested_dict = lambda: defaultdict(nested_dict)
# arguments
if len(sys.argv) <= 1:
sys.exit("Usage: combineTE.py [reformatted .gff] [gap size, default=150]")
gff = sys.argv[1]
# quick check number of line of the file
sh = subprocess.run(['wc', '-l',g... | 37.273256 | 120 | 0.583684 | 946 | 6,411 | 3.952431 | 0.173362 | 0.064188 | 0.152447 | 0.182937 | 0.520193 | 0.507355 | 0.438887 | 0.382455 | 0.373629 | 0.35785 | 0 | 0.020918 | 0.194665 | 6,411 | 171 | 121 | 37.491228 | 0.703273 | 0.2438 | 0 | 0.539823 | 0 | 0 | 0.157346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026549 | 0 | 0.026549 | 0.106195 | 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 |
d42a555feb139bc108823ade4d37c679cce5b802 | 3,317 | py | Python | mlimages/gather/__init__.py | icoxfog417/imageset | 724ce145e95a2e2c3597db43327f6e69babb83e2 | [
"MIT"
] | 29 | 2016-02-23T13:11:10.000Z | 2020-08-27T04:36:21.000Z | mlimages/gather/__init__.py | icoxfog417/imageset | 724ce145e95a2e2c3597db43327f6e69babb83e2 | [
"MIT"
] | 14 | 2016-03-22T11:37:52.000Z | 2022-03-11T23:13:57.000Z | mlimages/gather/__init__.py | icoxfog417/imageset | 724ce145e95a2e2c3597db43327f6e69babb83e2 | [
"MIT"
] | 13 | 2016-05-08T08:15:12.000Z | 2020-03-18T06:23:02.000Z | import os
import asyncio
import concurrent.futures
import requests
import aiohttp
from mlimages.util.file_api import FileAPI
import mlimages.util.log_api as LogAPI
class API():
def __init__(self, data_root, proxy="", proxy_user="", proxy_password="", parallel=-1, limit=-1, timeout=10, debug=False):
self.... | 36.855556 | 126 | 0.574013 | 405 | 3,317 | 4.565432 | 0.325926 | 0.048675 | 0.035695 | 0.027582 | 0.134667 | 0.093023 | 0.069227 | 0.069227 | 0.069227 | 0.069227 | 0 | 0.009464 | 0.331022 | 3,317 | 89 | 127 | 37.269663 | 0.823795 | 0 | 0 | 0.026667 | 0 | 0 | 0.034379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0.053333 | 0.093333 | 0 | 0.186667 | 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 |
d43225857e03fb7ddf01914d178202068463e0a6 | 231 | py | Python | docs/conf.py | R1tschY/iterage | c9feb37c803fe031c883c315b5e449d0f2a68fa0 | [
"MIT"
] | null | null | null | docs/conf.py | R1tschY/iterage | c9feb37c803fe031c883c315b5e449d0f2a68fa0 | [
"MIT"
] | null | null | null | docs/conf.py | R1tschY/iterage | c9feb37c803fe031c883c315b5e449d0f2a68fa0 | [
"MIT"
] | null | null | null | """Sphinx configuration."""
from datetime import datetime
project = "iterage"
author = "Richard Liebscher"
copyright = f"{datetime.now().year}, {author}"
extensions = [
"sphinx.ext.autodoc",
"sphinx_autodoc_typehints",
]
| 19.25 | 46 | 0.701299 | 24 | 231 | 6.666667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 231 | 11 | 47 | 21 | 0.808081 | 0.090909 | 0 | 0 | 0 | 0 | 0.47549 | 0.22549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d43f8d272d0dc80157cca7a95bb20fb7ed44e527 | 187 | py | Python | tk.16.py | ap19013/tkinter_sample | e0f12bb2fa386a3416a5cdc7a9d757094e7cb9c0 | [
"MIT"
] | null | null | null | tk.16.py | ap19013/tkinter_sample | e0f12bb2fa386a3416a5cdc7a9d757094e7cb9c0 | [
"MIT"
] | null | null | null | tk.16.py | ap19013/tkinter_sample | e0f12bb2fa386a3416a5cdc7a9d757094e7cb9c0 | [
"MIT"
] | null | null | null | import tkinter as tk
def btn_press():
print('Button was pressed')
root=tk.Tk()
root.geometry('150x80')
bt=tk.Button(bitmap='question',command=btn_press)
bt.pack()
root.mainloop()
| 14.384615 | 49 | 0.716578 | 29 | 187 | 4.551724 | 0.689655 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.117647 | 187 | 12 | 50 | 15.583333 | 0.769697 | 0 | 0 | 0 | 0 | 0 | 0.171123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.125 | 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 |
d447131af35c0ceaefed1b6ddf58ca65242fff7a | 1,463 | py | Python | python-practice/leetcode/solveSudoku.py | daohuei/practice-playground | 50522a57ef056108c662cf668f26c97078caf61c | [
"MIT"
] | null | null | null | python-practice/leetcode/solveSudoku.py | daohuei/practice-playground | 50522a57ef056108c662cf668f26c97078caf61c | [
"MIT"
] | null | null | null | python-practice/leetcode/solveSudoku.py | daohuei/practice-playground | 50522a57ef056108c662cf668f26c97078caf61c | [
"MIT"
] | null | null | null | def solveSudoku(board: list()) -> None:
solver(board)
def solver(board) -> bool:
for i in range(9):
for j in range(9):
if board[i][j] == ".":
for count in range(1, 10):
print(board)
if isValidSudoku(board, str(count), i, j):
... | 30.479167 | 62 | 0.330144 | 153 | 1,463 | 3.117647 | 0.248366 | 0.08805 | 0.050314 | 0.046122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.37799 | 1,463 | 47 | 63 | 31.12766 | 0.478022 | 0 | 0 | 0.170732 | 0 | 0 | 0.056733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0 | 0 | 0.243902 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d44893b62aa4f04058abcb6d418e243ab45c2f58 | 1,874 | py | Python | bin/tag-generator.py | RealCamar/corretto-docker | 2152d770c3a0e1e695617ab16aa779ec0ada7336 | [
"MIT-0"
] | null | null | null | bin/tag-generator.py | RealCamar/corretto-docker | 2152d770c3a0e1e695617ab16aa779ec0ada7336 | [
"MIT-0"
] | null | null | null | bin/tag-generator.py | RealCamar/corretto-docker | 2152d770c3a0e1e695617ab16aa779ec0ada7336 | [
"MIT-0"
] | null | null | null | import json
DEFAULT_ALPINE_VERSION = '3.15'
ALPINE_VERSIONS = ['3.12','3.13','3.14', '3.15']
def generate_tags(key, version):
update = version.split('.')[1] if (key == '8') else version.split('.')[2]
expanded_version = f"{key}u{update}" if (key == '8') else f"{key}.0.{update}"
al2_tags = [f"{key}", f"{ex... | 44.619048 | 176 | 0.614728 | 252 | 1,874 | 4.369048 | 0.206349 | 0.165304 | 0.072661 | 0.058129 | 0.394187 | 0.268847 | 0.156222 | 0.081744 | 0 | 0 | 0 | 0.025083 | 0.191569 | 1,874 | 42 | 177 | 44.619048 | 0.70165 | 0 | 0 | 0.176471 | 1 | 0 | 0.3728 | 0.1904 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.029412 | 0 | 0.088235 | 0.264706 | 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 |
d44a88c704f4a4c32fe66a7e2c86ec7176703a10 | 3,580 | py | Python | excel_loader/excel_loader.py | anontechnology/sheetloader-python | 9225b680d309fbedfdd569a11bed20e3e31f233c | [
"MIT"
] | null | null | null | excel_loader/excel_loader.py | anontechnology/sheetloader-python | 9225b680d309fbedfdd569a11bed20e3e31f233c | [
"MIT"
] | null | null | null | excel_loader/excel_loader.py | anontechnology/sheetloader-python | 9225b680d309fbedfdd569a11bed20e3e31f233c | [
"MIT"
] | null | null | null | from .configuration import Configuration
import vizivault
import openpyxl
def validate_columns(headers, column_config):
if type(column_config) is str:
if column_config not in headers:
raise TypeError("Attempting to read from nonexistent column", column_config)
else:
for key, value i... | 38.494624 | 159 | 0.663966 | 438 | 3,580 | 5.244292 | 0.321918 | 0.052242 | 0.028733 | 0.037875 | 0.078363 | 0.046147 | 0.046147 | 0.046147 | 0 | 0 | 0 | 0.001121 | 0.252514 | 3,580 | 92 | 160 | 38.913043 | 0.85725 | 0.093855 | 0 | 0.078125 | 0 | 0 | 0.062442 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.078125 | false | 0 | 0.046875 | 0 | 0.21875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d44e500b8a0f1c401858f71c9cd6e9f814642807 | 2,376 | py | Python | scripts/dot2txt.py | cartoonist/PairG | db7d28a5b9d01368dbfd2d9ae97a1d5179605be0 | [
"Apache-2.0"
] | 2 | 2020-07-08T09:10:19.000Z | 2020-09-01T17:54:41.000Z | scripts/dot2txt.py | cartoonist/PairG | db7d28a5b9d01368dbfd2d9ae97a1d5179605be0 | [
"Apache-2.0"
] | 1 | 2020-10-14T09:09:05.000Z | 2021-03-28T04:38:17.000Z | scripts/dot2txt.py | cartoonist/PairG | db7d28a5b9d01368dbfd2d9ae97a1d5179605be0 | [
"Apache-2.0"
] | 1 | 2020-08-28T09:02:56.000Z | 2020-08-28T09:02:56.000Z | #
# @file dot2txt.py
# @author Chirag Jain <cjain7@gatech.edu>
# @brief convert dot formatted compressed DBG from splitMEM to our .txt format
# note: splitMEM.cc was modified to print vertex DNA labels as well
# (set OPT_DisplaySeq=1 and OPT_SeqToDisplay= <int>::max() )
# ... | 28.285714 | 89 | 0.627525 | 334 | 2,376 | 4.443114 | 0.416168 | 0.070755 | 0.020216 | 0.014151 | 0.11186 | 0.061995 | 0.028302 | 0.028302 | 0 | 0 | 0 | 0.014983 | 0.241582 | 2,376 | 83 | 90 | 28.626506 | 0.808546 | 0.455808 | 0 | 0.116279 | 0 | 0 | 0.013844 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 0 | null | null | 0 | 0.046512 | null | null | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d461b5026cb626462925369752d7e402976cff47 | 2,300 | py | Python | subir/base.py | xyla-io/subir | fde16a16643466aa64ea43647c588caf3d3057cf | [
"MIT"
] | null | null | null | subir/base.py | xyla-io/subir | fde16a16643466aa64ea43647c588caf3d3057cf | [
"MIT"
] | null | null | null | subir/base.py | xyla-io/subir | fde16a16643466aa64ea43647c588caf3d3057cf | [
"MIT"
] | null | null | null | from __future__ import annotations
import re
import pandas as pd
from enum import Enum
from typing import Dict
class ColumnType(Enum):
integer = 'bigint'
decimal = 'double precision'
date = 'date'
short_text = 'character varying(256)'
medium_text = 'character varying(8192)'
long_text = 'character varying... | 28.04878 | 139 | 0.630435 | 327 | 2,300 | 4.299694 | 0.29052 | 0.083215 | 0.02845 | 0.01138 | 0.085349 | 0.085349 | 0.066856 | 0.066856 | 0.055477 | 0.055477 | 0 | 0.033811 | 0.241304 | 2,300 | 82 | 140 | 28.04878 | 0.77192 | 0 | 0 | 0.219178 | 0 | 0.027397 | 0.128205 | 0.033029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.068493 | 0.027397 | 0.561644 | 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 |
d4651fb797f26004f86c5fb02f0497881f2eee93 | 965 | py | Python | leetcode/lru-cache/LRUCache.py | giwankim/algo | 8dd1cf8aed6e89db54e753c7ce5821019628c47f | [
"MIT"
] | null | null | null | leetcode/lru-cache/LRUCache.py | giwankim/algo | 8dd1cf8aed6e89db54e753c7ce5821019628c47f | [
"MIT"
] | null | null | null | leetcode/lru-cache/LRUCache.py | giwankim/algo | 8dd1cf8aed6e89db54e753c7ce5821019628c47f | [
"MIT"
] | null | null | null | import collections
class LRUCache:
def __init__(self, capacity: int):
self.cache = collections.OrderedDict()
self.capacity = capacity
def get(self, key: int) -> int:
if key not in self.cache:
return -1
self.cache.move_to_end(key)
return self.cache[key]
... | 23.536585 | 48 | 0.569948 | 145 | 965 | 3.682759 | 0.234483 | 0.134831 | 0.183521 | 0.05618 | 0.419476 | 0.262172 | 0.183521 | 0.11236 | 0 | 0 | 0 | 0.047896 | 0.28601 | 965 | 40 | 49 | 24.125 | 0.727141 | 0 | 0 | 0.242424 | 0 | 0 | 0.00829 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 1 | 0.090909 | false | 0 | 0.030303 | 0 | 0.212121 | 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 |
d46e9c27f6de917156be5e00b0df07e53661338f | 22,470 | py | Python | USBIP.py | Frazew/PythonUSBIP | 480195837bb3fc25892dedcdf8b5a0d113ad33d5 | [
"Unlicense"
] | 57 | 2016-09-22T00:19:26.000Z | 2022-03-11T15:26:47.000Z | USBIP.py | Frazew/PythonUSBIP | 480195837bb3fc25892dedcdf8b5a0d113ad33d5 | [
"Unlicense"
] | 2 | 2018-08-28T15:54:30.000Z | 2018-09-05T18:03:23.000Z | USBIP.py | Frazew/PythonUSBIP | 480195837bb3fc25892dedcdf8b5a0d113ad33d5 | [
"Unlicense"
] | 9 | 2017-12-17T17:33:03.000Z | 2022-03-22T08:37:58.000Z | # Copyright (c) 2014 Yaron Shani <yaron.shani@gmail.com>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright
# notic... | 37.140496 | 145 | 0.522519 | 2,197 | 22,470 | 5.203004 | 0.187073 | 0.020821 | 0.034293 | 0.039892 | 0.382556 | 0.361648 | 0.328055 | 0.30391 | 0.273554 | 0.257458 | 0 | 0.023692 | 0.350067 | 22,470 | 604 | 146 | 37.201987 | 0.759039 | 0.116155 | 0 | 0.426124 | 0 | 0 | 0.091077 | 0.006579 | 0 | 0 | 0.005757 | 0 | 0 | 0 | null | null | 0 | 0.012848 | null | null | 0.014989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d4757491efa8084b4371b0d6817de101e0f8d8a2 | 304 | py | Python | PicoCTF 2018/Reversing/be-quick-or-be-dead/solve.py | p-g-krish/CTF-Writeups | 05ad6a9ecbc19ceb8890f4581dfee36f16d164aa | [
"MIT"
] | 51 | 2018-06-26T09:49:42.000Z | 2019-09-14T00:06:35.000Z | PicoCTF 2018/Reversing/be-quick-or-be-dead/solve.py | p-g-krish/CTF-Writeups | 05ad6a9ecbc19ceb8890f4581dfee36f16d164aa | [
"MIT"
] | 1 | 2018-06-29T18:40:59.000Z | 2018-07-09T20:29:41.000Z | PicoCTF 2018/Reversing/be-quick-or-be-dead/solve.py | p-g-krish/CTF-Writeups | 05ad6a9ecbc19ceb8890f4581dfee36f16d164aa | [
"MIT"
] | 22 | 2019-10-03T14:52:43.000Z | 2022-01-17T08:55:10.000Z | #!/usr/bin/env python3
def calc(x):
if x in results:
return results[x]
results[x] = (calc(x-1) - calc(x-2) + calc(x-3) - calc(x-4) + calc(x-5)*4660)%2**32
return results[x]
results = {}
for i in range(5):
results[i] = i**2+9029
for i in range(5,100022):
results[i] = calc(i)
print(results[100021]) | 25.333333 | 84 | 0.628289 | 61 | 304 | 3.131148 | 0.409836 | 0.157068 | 0.146597 | 0.219895 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124514 | 0.154605 | 304 | 12 | 85 | 25.333333 | 0.618677 | 0.069079 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0.090909 | 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 |
d4807c0cc580796693f45cc16ddbeae3f20b875e | 490 | py | Python | T2API/migrations/0002_auto_20180217_0548.py | hackhb18-T2/api | c42be466492d07d6451ff3145985cd8cc0927257 | [
"Apache-2.0"
] | null | null | null | T2API/migrations/0002_auto_20180217_0548.py | hackhb18-T2/api | c42be466492d07d6451ff3145985cd8cc0927257 | [
"Apache-2.0"
] | null | null | null | T2API/migrations/0002_auto_20180217_0548.py | hackhb18-T2/api | c42be466492d07d6451ff3145985cd8cc0927257 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.2 on 2018-02-17 05:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('T2API', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='device',
options={'ordering': ('mac',), 'permi... | 27.222222 | 201 | 0.616327 | 52 | 490 | 5.730769 | 0.75 | 0.067114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053191 | 0.232653 | 490 | 17 | 202 | 28.823529 | 0.739362 | 0.091837 | 0 | 0 | 1 | 0 | 0.352144 | 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 |
2e09d3f8406803736c7eea8ba0649dc30e4e8c24 | 47,697 | py | Python | app/dnt_ui.py | fatihy101/detect-and-track | d0a20a1e282749f144af8421ea58315cdd5aaddf | [
"MIT"
] | null | null | null | app/dnt_ui.py | fatihy101/detect-and-track | d0a20a1e282749f144af8421ea58315cdd5aaddf | [
"MIT"
] | null | null | null | app/dnt_ui.py | fatihy101/detect-and-track | d0a20a1e282749f144af8421ea58315cdd5aaddf | [
"MIT"
] | 1 | 2021-09-14T15:04:34.000Z | 2021-09-14T15:04:34.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '../GUI Files/ui_main.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import... | 60.915709 | 120 | 0.565948 | 4,783 | 47,697 | 5.513485 | 0.079866 | 0.054719 | 0.032763 | 0.043002 | 0.637253 | 0.561526 | 0.502635 | 0.429032 | 0.400857 | 0.390391 | 0 | 0.05075 | 0.324968 | 47,697 | 783 | 121 | 60.915709 | 0.76827 | 0.005975 | 0 | 0.46684 | 1 | 0 | 0.126485 | 0.010104 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002601 | false | 0.019506 | 0.002601 | 0 | 0.006502 | 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 |
2e0a3372e676a2f27affab3a884dcb6430bd09b2 | 8,600 | py | Python | autograd_fin.py | newcodevelop/DL-Adventures | 76d4fcaf7c7b53cb1a2241a03d6d32bcd4406e92 | [
"MIT"
] | null | null | null | autograd_fin.py | newcodevelop/DL-Adventures | 76d4fcaf7c7b53cb1a2241a03d6d32bcd4406e92 | [
"MIT"
] | null | null | null | autograd_fin.py | newcodevelop/DL-Adventures | 76d4fcaf7c7b53cb1a2241a03d6d32bcd4406e92 | [
"MIT"
] | 1 | 2020-08-04T15:22:37.000Z | 2020-08-04T15:22:37.000Z | # -*- coding: utf-8 -*-
"""autograd_fin.ipynb
Automatically generated by Colaboratory.
"""
class Value:
""" stores a value and its gradient """
def __init__(self, data, _children=(), _op=''):
self.data = data
self.grad = 0
# internal variables used for autograd graph construction
... | 28.85906 | 182 | 0.581279 | 1,205 | 8,600 | 4.021577 | 0.179253 | 0.049525 | 0.029715 | 0.056748 | 0.336154 | 0.264754 | 0.219563 | 0.172926 | 0.102765 | 0.070367 | 0 | 0.026601 | 0.27 | 8,600 | 297 | 183 | 28.956229 | 0.745301 | 0.137558 | 0 | 0.210811 | 1 | 0 | 0.025648 | 0.003138 | 0 | 0 | 0 | 0 | 0.010811 | 1 | 0.194595 | false | 0 | 0.027027 | 0.043243 | 0.340541 | 0.005405 | 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 |
2e0d985294a67db17081fc1ea702be81b2ba4375 | 355 | py | Python | poo/class/myclass.py | alfmorais/design-patterns-python | 0bf12bd762a310d705a11979e4d025754e388c0c | [
"MIT"
] | null | null | null | poo/class/myclass.py | alfmorais/design-patterns-python | 0bf12bd762a310d705a11979e4d025754e388c0c | [
"MIT"
] | null | null | null | poo/class/myclass.py | alfmorais/design-patterns-python | 0bf12bd762a310d705a11979e4d025754e388c0c | [
"MIT"
] | null | null | null | class MyClass:
static = "Alfredo"
def __init__(self, state) -> None:
self.state = state
def print_static(self):
print(self.static)
@classmethod
def change_static(cls):
MyClass.static = "Programador"
obj1 = MyClass(True)
obj2 = MyClass(False)
obj1.change_static()
obj1.... | 15.434783 | 38 | 0.650704 | 42 | 355 | 5.285714 | 0.428571 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018382 | 0.233803 | 355 | 22 | 39 | 16.136364 | 0.797794 | 0 | 0 | 0 | 0 | 0 | 0.050704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.357143 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e0eab8007a7e1a283630c4834f656d34752ec84 | 2,809 | py | Python | hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/services.py | qiangzai00001/hio-prj | 060ff97fe21093b1369db78109d5b730b2b181c8 | [
"MIT"
] | null | null | null | hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/services.py | qiangzai00001/hio-prj | 060ff97fe21093b1369db78109d5b730b2b181c8 | [
"MIT"
] | null | null | null | hio-yocto-bsp/sources/poky/scripts/lib/mic/3rdparty/pykickstart/commands/services.py | qiangzai00001/hio-prj | 060ff97fe21093b1369db78109d5b730b2b181c8 | [
"MIT"
] | null | null | null | #
# Chris Lumens <clumens@redhat.com>
#
# Copyright 2007 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
# General Public License v.2. This program is distributed in the hope that it
# will be usef... | 39.013889 | 125 | 0.664649 | 355 | 2,809 | 5.174648 | 0.464789 | 0.013065 | 0.028307 | 0.041372 | 0.130648 | 0.082744 | 0.052259 | 0.052259 | 0.052259 | 0 | 0 | 0.011014 | 0.224279 | 2,809 | 71 | 126 | 39.56338 | 0.832033 | 0.324315 | 0 | 0.051282 | 0 | 0 | 0.103889 | 0.011721 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | 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 |
2e2aacef2305795c5f2c9a5115b0656d332fd57e | 453 | py | Python | authentications/migrations/0011_auto_20210216_0547.py | chapimenge3/CSEC-Website | ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05 | [
"Apache-2.0"
] | null | null | null | authentications/migrations/0011_auto_20210216_0547.py | chapimenge3/CSEC-Website | ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05 | [
"Apache-2.0"
] | null | null | null | authentications/migrations/0011_auto_20210216_0547.py | chapimenge3/CSEC-Website | ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-16 05:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('authentications', '0010_user_phone'),
]
operations = [
migrations.AlterField(
model_name='user',
name='phone',
... | 23.842105 | 120 | 0.620309 | 50 | 453 | 5.52 | 0.78 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097633 | 0.253863 | 453 | 18 | 121 | 25.166667 | 0.718935 | 0.099338 | 0 | 0 | 1 | 0 | 0.140394 | 0 | 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 |
2e2bfa67b2ab4ebf4f85d7108805fb44872b7c41 | 502 | py | Python | backend/calorie_find/calories/serializers.py | banjocat/calorie-find | 9b0314e3c3a5b4b4b4607ec61728e14988c8fd05 | [
"BSD-2-Clause"
] | 2 | 2016-08-10T19:54:02.000Z | 2016-10-20T00:22:19.000Z | backend/calorie_find/calories/serializers.py | banjocat/calorie-find | 9b0314e3c3a5b4b4b4607ec61728e14988c8fd05 | [
"BSD-2-Clause"
] | 9 | 2016-07-10T15:07:27.000Z | 2017-01-17T03:39:41.000Z | backend/calorie_find/calories/serializers.py | banjocat/calorie-find | 9b0314e3c3a5b4b4b4607ec61728e14988c8fd05 | [
"BSD-2-Clause"
] | null | null | null | from rest_framework import serializers
from calories.models import Food
class FoodSerializer(serializers.ModelSerializer):
class Meta:
fields = ('pk', 'name', 'calories')
model = Food
class FoodListSerializer(serializers.Serializer):
foods = serializers.ListField(child=FoodSerializer(many=Tr... | 21.826087 | 66 | 0.701195 | 48 | 502 | 7.3125 | 0.604167 | 0.051282 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199203 | 502 | 22 | 67 | 22.818182 | 0.873134 | 0.041833 | 0 | 0.166667 | 0 | 0 | 0.04086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
2e312f7a9a86214613e667e937b3317c7a3d0227 | 19,323 | py | Python | setup-es/sample_data.py | swarmee/api-firewall-4-es | 5830bb13c0eee1bc4d08700415e221020374699b | [
"MIT"
] | null | null | null | setup-es/sample_data.py | swarmee/api-firewall-4-es | 5830bb13c0eee1bc4d08700415e221020374699b | [
"MIT"
] | null | null | null | setup-es/sample_data.py | swarmee/api-firewall-4-es | 5830bb13c0eee1bc4d08700415e221020374699b | [
"MIT"
] | null | null | null | sample_data = {
"role": [{
"roleType":
"beneficiaryCustomer",
"party": [{
"partyType":
"individual",
"account": [{
"network": "swift",
"institutionName": "Westpac Banking Corporation",
"institutionCode": "WBC... | 42.375 | 87 | 0.205817 | 629 | 19,323 | 6.203498 | 0.281399 | 0.055356 | 0.113275 | 0.159918 | 0.434393 | 0.415172 | 0.393132 | 0.383393 | 0.383393 | 0.300871 | 0 | 0.0745 | 0.702686 | 19,323 | 456 | 88 | 42.375 | 0.6047 | 0.003157 | 0 | 0.523179 | 0 | 0.004415 | 0.20082 | 0.032034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e34be18feae223399713fa8f385c93dcf5e3598 | 1,240 | py | Python | python_MA1/day_12.py | 01coders/50-Days-Of-Code | 98928cf0e186ee295bc90a4da0aa9554e2918659 | [
"MIT"
] | null | null | null | python_MA1/day_12.py | 01coders/50-Days-Of-Code | 98928cf0e186ee295bc90a4da0aa9554e2918659 | [
"MIT"
] | null | null | null | python_MA1/day_12.py | 01coders/50-Days-Of-Code | 98928cf0e186ee295bc90a4da0aa9554e2918659 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 1 09:15:37 2019
@author: athreya
"""
#1
def tax(bill):
"""Adds 8% tax to a restaurant bill."""
bill *= 1.08
print ("With tax: %f" % bill)
return bill
#2
def tip(bill):
"""Adds 15% tip to a restaurant bill."""
bill *= 1.15
print ("Wi... | 17.464789 | 67 | 0.619355 | 205 | 1,240 | 3.668293 | 0.37561 | 0.027926 | 0.034574 | 0.045213 | 0.090426 | 0.058511 | 0 | 0 | 0 | 0 | 0 | 0.080829 | 0.221774 | 1,240 | 70 | 68 | 17.714286 | 0.698446 | 0.258871 | 0 | 0.058824 | 0 | 0 | 0.078677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.029412 | 0 | 0.411765 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e3632925dd735d69a88299995bdc48bd8030b27 | 50,571 | py | Python | apps/establishment_system/views.py | camilortte/RecomendadorUD | ebf9ee4482c4093d4751a27c90f56637a9c692a4 | [
"MIT"
] | 4 | 2015-01-29T17:17:26.000Z | 2021-03-03T08:17:03.000Z | apps/establishment_system/views.py | camilortte/RecomendadorUD | ebf9ee4482c4093d4751a27c90f56637a9c692a4 | [
"MIT"
] | null | null | null | apps/establishment_system/views.py | camilortte/RecomendadorUD | ebf9ee4482c4093d4751a27c90f56637a9c692a4 | [
"MIT"
] | 1 | 2015-09-22T08:35:26.000Z | 2015-09-22T08:35:26.000Z | # -*- encoding: utf-8 -*-
"""
Views: Encontramos todas las vistas del sistema de establecimientos.
@author Camilo Ramírez
@contact camilolinchis@gmail.com
camilortte@hotmail.com
@camilortte on Twitter
@copyright Copyright 2014-2015, RecomendadorUD
@lic... | 38.109269 | 142 | 0.582112 | 4,911 | 50,571 | 5.884952 | 0.141315 | 0.016747 | 0.011937 | 0.00647 | 0.497491 | 0.434103 | 0.361545 | 0.305664 | 0.28352 | 0.268399 | 0 | 0.006144 | 0.320856 | 50,571 | 1,326 | 143 | 38.138009 | 0.835347 | 0.075438 | 0 | 0.468792 | 0 | 0 | 0.073276 | 0.015557 | 0 | 0 | 0 | 0.00905 | 0 | 0 | null | null | 0.002656 | 0.043825 | null | null | 0.041169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2e3e3b3fae1036254ee5111170ecba4e576feca4 | 2,815 | py | Python | djavError/migrations/0001_initial.py | dasmith2/djavError | 6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd | [
"MIT"
] | null | null | null | djavError/migrations/0001_initial.py | dasmith2/djavError | 6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd | [
"MIT"
] | null | null | null | djavError/migrations/0001_initial.py | dasmith2/djavError | 6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-28 19:10
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Error',
fields=[
('id', models.AutoField(au... | 43.984375 | 246 | 0.550266 | 272 | 2,815 | 5.595588 | 0.386029 | 0.068988 | 0.078844 | 0.094612 | 0.540736 | 0.520368 | 0.495401 | 0.495401 | 0.495401 | 0.495401 | 0 | 0.016402 | 0.306927 | 2,815 | 63 | 247 | 44.68254 | 0.763711 | 0.015986 | 0 | 0.607143 | 1 | 0.017857 | 0.162211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017857 | 0 | 0.089286 | 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 |
2e4208a8268b19b399b2070f7d1c7a5961191bd6 | 395 | py | Python | project euler/q35.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | project euler/q35.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | project euler/q35.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | def isprime(x):
for y in range (2,x/2+1):
if x%y==0:
return False
return True
def iscircular(z):
s=str(z)
for i in range(len(s)):
a=s[1:]+s[0]
if not isprime(int(a)):
return False
s=str(a)
return True
v=0
for x in range(2,100... | 19.75 | 32 | 0.458228 | 65 | 395 | 2.784615 | 0.4 | 0.116022 | 0.088398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069565 | 0.417722 | 395 | 20 | 33 | 19.75 | 0.717391 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e4ad7b8a3f3e91673d5ed7d5c90599979a86c21 | 35,847 | py | Python | camper/db/barcamp.py | mrtopf/camper | 7016539f92202bbea608c6d53ce19097d4ad931d | [
"MIT"
] | 13 | 2016-03-13T02:33:39.000Z | 2021-04-01T13:09:12.000Z | camper/db/barcamp.py | comlounge/camper | 7016539f92202bbea608c6d53ce19097d4ad931d | [
"MIT"
] | 122 | 2016-03-10T09:28:09.000Z | 2021-09-07T23:49:05.000Z | camper/db/barcamp.py | mrtopf/camper | 7016539f92202bbea608c6d53ce19097d4ad931d | [
"MIT"
] | 5 | 2017-01-11T22:00:57.000Z | 2020-04-26T14:03:32.000Z | #encoding=utf8
import datetime
from camper.exceptions import *
import isodate
import pycountry
from slugify import UniqueSlugify
import embeddify
import re
from sfext.babe... | 38.09458 | 2,009 | 0.565961 | 4,510 | 35,847 | 4.404213 | 0.194678 | 0.008156 | 0.019937 | 0.006646 | 0.259326 | 0.198711 | 0.169914 | 0.1533 | 0.132004 | 0.114484 | 0 | 0.007297 | 0.319469 | 35,847 | 940 | 2,010 | 38.135106 | 0.806846 | 0.216838 | 0 | 0.231156 | 0 | 0.008375 | 0.162796 | 0.078921 | 0 | 0 | 0 | 0.002128 | 0 | 1 | 0.078727 | false | 0 | 0.020101 | 0 | 0.482412 | 0.011725 | 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 |
2e4f90dd590f96bab2de9aa670fa47169809eee6 | 375 | py | Python | python/imjoy_rpc/__main__.py | thewtex/imjoy-rpc | cc62c3881051b2fd9257b15cf460bc6f23f29208 | [
"MIT"
] | null | null | null | python/imjoy_rpc/__main__.py | thewtex/imjoy-rpc | cc62c3881051b2fd9257b15cf460bc6f23f29208 | [
"MIT"
] | null | null | null | python/imjoy_rpc/__main__.py | thewtex/imjoy-rpc | cc62c3881051b2fd9257b15cf460bc6f23f29208 | [
"MIT"
] | null | null | null | import asyncio
from imjoy_rpc import api
class ImJoyPlugin:
async def setup(self):
await api.log("plugin initialized")
async def run(self, ctx):
await api.alert("hello")
await api.showDialog(type="external", src="https://imjoy.io")
if __name__ == "__main__":
api.export(ImJoyPlug... | 23.4375 | 78 | 0.650667 | 48 | 375 | 4.895833 | 0.75 | 0.102128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.194667 | 375 | 15 | 79 | 25 | 0.764901 | 0 | 0 | 0 | 0 | 0 | 0.224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.3 | 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 |
2e526a16cee44513824483cfa4aeb95d48a88e2e | 4,316 | py | Python | pyhanko/pdf_utils/crypt/filter_mixins.py | MatthiasValvekens/pdf-stamp | 08fc0fc8cd5f82845e72a1c0efde1a12d64970ce | [
"MIT"
] | 5 | 2020-08-06T15:25:21.000Z | 2020-11-28T04:40:02.000Z | pyhanko/pdf_utils/crypt/filter_mixins.py | MatthiasValvekens/pdf-stamp | 08fc0fc8cd5f82845e72a1c0efde1a12d64970ce | [
"MIT"
] | 1 | 2020-11-11T10:46:08.000Z | 2020-11-11T10:46:08.000Z | pyhanko/pdf_utils/crypt/filter_mixins.py | MatthiasValvekens/pdf-stamp | 08fc0fc8cd5f82845e72a1c0efde1a12d64970ce | [
"MIT"
] | 3 | 2020-10-15T20:48:40.000Z | 2020-11-21T13:28:18.000Z | import abc
import secrets
from pyhanko.pdf_utils import generic
from pyhanko.pdf_utils.crypt._util import (
aes_cbc_decrypt,
aes_cbc_encrypt,
rc4_encrypt,
)
from pyhanko.pdf_utils.crypt.api import CryptFilter, SecurityHandlerVersion
from ._legacy import legacy_derive_object_key
class RC4CryptFilterMixin... | 29.162162 | 79 | 0.589435 | 476 | 4,316 | 5.22479 | 0.243697 | 0.033776 | 0.04222 | 0.04222 | 0.520306 | 0.464013 | 0.435062 | 0.402895 | 0.402895 | 0.371934 | 0 | 0.014468 | 0.327386 | 4,316 | 148 | 80 | 29.162162 | 0.842232 | 0.388786 | 0 | 0.204082 | 0 | 0 | 0.025778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.122449 | 0 | 0.55102 | 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 |
2e55f7470f71ff63d2fb4072b25056d9e57a9772 | 491 | py | Python | scripts/preprocessing/popoolationTE_ref_fasta.py | shunhuahan/mcclintock | 999f064847e824d41a76791c913e24454ef6cba8 | [
"Unlicense"
] | 62 | 2015-01-18T15:30:48.000Z | 2022-03-06T08:23:40.000Z | scripts/preprocessing/popoolationTE_ref_fasta.py | shunhuahan/mcclintock | 999f064847e824d41a76791c913e24454ef6cba8 | [
"Unlicense"
] | 49 | 2015-01-20T12:57:45.000Z | 2022-03-22T15:05:46.000Z | scripts/preprocessing/popoolationTE_ref_fasta.py | shunhuahan/mcclintock | 999f064847e824d41a76791c913e24454ef6cba8 | [
"Unlicense"
] | 28 | 2015-01-21T21:14:46.000Z | 2022-02-20T21:43:31.000Z | import os
import sys
import subprocess
sys.path.append(snakemake.config['args']['mcc_path'])
import scripts.mccutils as mccutils
def main():
mccutils.log("processing","making PopoolationTE reference fasta")
command = ["cat", snakemake.input[0], snakemake.input[1], snakemake.input[2]]
mccutils.run_command_... | 30.6875 | 81 | 0.704684 | 58 | 491 | 5.775862 | 0.568966 | 0.125373 | 0.125373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009756 | 0.164969 | 491 | 16 | 82 | 30.6875 | 0.807317 | 0 | 0 | 0 | 0 | 0 | 0.235772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2e600fb2c6c670b82e80a94ddaed1f08bcc6b44f | 2,049 | py | Python | plot_breakdown.py | akashlevy/ENGR241-Q1 | e8bf8aa1cac0671ec32d95d729568087d0cb2b5f | [
"MIT"
] | null | null | null | plot_breakdown.py | akashlevy/ENGR241-Q1 | e8bf8aa1cac0671ec32d95d729568087d0cb2b5f | [
"MIT"
] | null | null | null | plot_breakdown.py | akashlevy/ENGR241-Q1 | e8bf8aa1cac0671ec32d95d729568087d0cb2b5f | [
"MIT"
] | null | null | null | import csv, glob, re
import matplotlib.pyplot as plt
import numpy as np
from intersection import intersection
devre = re.compile(r'\[(.*)\(')
# Read in data
devices = ["Al_%.1f_%d" % (t1, t2) for t1 in np.arange(0.5, 2.5, 0.5) for t2 in np.arange(5, 15, 5)]
devices += ["Al2O3_%.1f_%d" % (t1, t2) for t1 in np.arange(0... | 44.543478 | 131 | 0.490483 | 277 | 2,049 | 3.548736 | 0.368231 | 0.024415 | 0.061038 | 0.027467 | 0.141404 | 0.134283 | 0.121058 | 0.121058 | 0.121058 | 0.095626 | 0 | 0.054641 | 0.347975 | 2,049 | 45 | 132 | 45.533333 | 0.681138 | 0.068326 | 0 | 0 | 0 | 0 | 0.130458 | 0.016833 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.15625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2e6176c680d77466ad6487a42cee8d747475bd69 | 5,564 | py | Python | unpackai/interp/latent.py | vtecftwy/unpackai | 5c6ff1ff141b15430ccf02cab34e9690ec168fda | [
"MIT"
] | 18 | 2021-08-30T00:15:06.000Z | 2022-01-28T01:41:16.000Z | unpackai/interp/latent.py | vtecftwy/unpackai | 5c6ff1ff141b15430ccf02cab34e9690ec168fda | [
"MIT"
] | 75 | 2021-09-01T08:13:25.000Z | 2022-02-07T13:18:55.000Z | unpackai/interp/latent.py | vtecftwy/unpackai | 5c6ff1ff141b15430ccf02cab34e9690ec168fda | [
"MIT"
] | 4 | 2021-08-30T03:22:28.000Z | 2021-11-13T12:48:06.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/15_interp_latent.ipynb (unless otherwise specified).
__all__ = ['CosineSearch', 'InterpEmbeddings']
# Cell
import numpy as np
import pandas as pd
from typing import Dict, List, Any
from forgebox.html import DOM
# Cell
class CosineSearch:
"""
Build a index searc... | 33.926829 | 100 | 0.592739 | 695 | 5,564 | 4.601439 | 0.319424 | 0.030019 | 0.012195 | 0.015009 | 0.053784 | 0.038774 | 0.038774 | 0.030644 | 0.030644 | 0.030644 | 0 | 0.008239 | 0.301941 | 5,564 | 164 | 101 | 33.926829 | 0.815139 | 0.213336 | 0 | 0.060606 | 1 | 0 | 0.105048 | 0.005048 | 0 | 0 | 0 | 0 | 0.010101 | 1 | 0.10101 | false | 0 | 0.090909 | 0.030303 | 0.282828 | 0.030303 | 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 |
2e64787156e8693fdf0a33b208148208557d314e | 1,790 | py | Python | flags/ctf/views.py | fredericoricco-debug/groupproject | bf22303cff7a2a4bc097f568f0df0b5d72000c3b | [
"MIT"
] | null | null | null | flags/ctf/views.py | fredericoricco-debug/groupproject | bf22303cff7a2a4bc097f568f0df0b5d72000c3b | [
"MIT"
] | null | null | null | flags/ctf/views.py | fredericoricco-debug/groupproject | bf22303cff7a2a4bc097f568f0df0b5d72000c3b | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect
from django.template import loader
from django.http import HttpResponse
from django.contrib import messages
from django.contrib.auth.models import User
... | 27.121212 | 74 | 0.681006 | 200 | 1,790 | 6.055 | 0.305 | 0.057803 | 0.094137 | 0.052023 | 0.270851 | 0.226259 | 0.087531 | 0.087531 | 0.087531 | 0 | 0 | 0.004933 | 0.207263 | 1,790 | 65 | 75 | 27.538462 | 0.848485 | 0 | 0 | 0.159091 | 0 | 0 | 0.13743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.136364 | 0.159091 | 0.068182 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2e64c50e5e3b01bee5233b429195480822031b6d | 1,407 | py | Python | examples/dopamine/train.py | jurgisp/xmanager | 7c59aed661b93817589bb1904e7d099d26afa62f | [
"Apache-2.0"
] | 392 | 2021-10-07T00:12:17.000Z | 2022-03-30T11:06:35.000Z | examples/dopamine/train.py | jurgisp/xmanager | 7c59aed661b93817589bb1904e7d099d26afa62f | [
"Apache-2.0"
] | 8 | 2021-10-20T14:59:07.000Z | 2022-03-31T10:52:47.000Z | examples/dopamine/train.py | jurgisp/xmanager | 7c59aed661b93817589bb1904e7d099d26afa62f | [
"Apache-2.0"
] | 11 | 2021-11-16T13:54:18.000Z | 2022-03-30T03:13:50.000Z | # Copyright 2021 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 31.977273 | 74 | 0.766169 | 211 | 1,407 | 4.966825 | 0.611374 | 0.057252 | 0.040076 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00834 | 0.147832 | 1,407 | 43 | 75 | 32.72093 | 0.865721 | 0.500355 | 0 | 0 | 0 | 0 | 0.197657 | 0.079063 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2e673f4da5b6854fbcd837a5389934a4ea9a7719 | 1,452 | py | Python | day_2.py | kurtrm/advent_of_code_2018 | a3db9df31de730479c8c2b3f2869b274a0e024e9 | [
"MIT"
] | null | null | null | day_2.py | kurtrm/advent_of_code_2018 | a3db9df31de730479c8c2b3f2869b274a0e024e9 | [
"MIT"
] | null | null | null | day_2.py | kurtrm/advent_of_code_2018 | a3db9df31de730479c8c2b3f2869b274a0e024e9 | [
"MIT"
] | null | null | null | """
"""
from collections import Counter
from read_file import read_input
def checksum(filename):
"""
"""
threes = 0
twos = 0
ids = read_input(filename)
for label_id in ids:
counts = {value: key for key, value in Counter(label_id).items()}
try:
count... | 23.419355 | 76 | 0.472452 | 155 | 1,452 | 4.219355 | 0.290323 | 0.074924 | 0.110092 | 0.036697 | 0.400612 | 0.400612 | 0.342508 | 0.342508 | 0.217125 | 0.217125 | 0 | 0.016867 | 0.428375 | 1,452 | 61 | 77 | 23.803279 | 0.771084 | 0.250689 | 0 | 0.193548 | 0 | 0 | 0.019348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.064516 | 0.064516 | 0 | 0.193548 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2e735a5e613348bc55e8ad80f97e09fd450063e0 | 442 | py | Python | ceol/player/migrations/0003_auto_20200722_1728.py | pythify/backend-pithify | ac845bd96769d3cda1e32ea5c141598f0529db19 | [
"MIT"
] | null | null | null | ceol/player/migrations/0003_auto_20200722_1728.py | pythify/backend-pithify | ac845bd96769d3cda1e32ea5c141598f0529db19 | [
"MIT"
] | null | null | null | ceol/player/migrations/0003_auto_20200722_1728.py | pythify/backend-pithify | ac845bd96769d3cda1e32ea5c141598f0529db19 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-22 17:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('player', '0002_auto_20200722_1725'),
]
operations = [
migrations.AlterField(
model_name='album',
name='total_songs',... | 23.263158 | 103 | 0.628959 | 48 | 442 | 5.666667 | 0.8125 | 0.066176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094512 | 0.257919 | 442 | 18 | 104 | 24.555556 | 0.734756 | 0.10181 | 0 | 0 | 1 | 0 | 0.144304 | 0.058228 | 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 |
2e7726a4553ba265dc7d5e2d5a2ffbce3ef26f43 | 480 | py | Python | tests/invertible_test_case.py | gregunz/invertransforms | 3b0621c567d309ee054115cc90cb188808bd63b2 | [
"BSD-3-Clause"
] | 5 | 2019-10-14T18:56:08.000Z | 2019-10-17T13:50:11.000Z | tests/invertible_test_case.py | gregunz/invertransforms | 3b0621c567d309ee054115cc90cb188808bd63b2 | [
"BSD-3-Clause"
] | 1 | 2021-04-06T18:05:19.000Z | 2021-04-06T18:05:19.000Z | tests/invertible_test_case.py | gregunz/invertransforms | 3b0621c567d309ee054115cc90cb188808bd63b2 | [
"BSD-3-Clause"
] | null | null | null | import random
import unittest
import torch
import invertransforms as T
class InvertibleTestCase(unittest.TestCase):
def setUp(self) -> None:
self.img_size = (256, 320)
self.h, self.w = self.img_size
self.crop_size = (64, 128)
self.img_tensor = torch.randn((1,) + self.img_size).cl... | 24 | 71 | 0.645833 | 69 | 480 | 4.362319 | 0.492754 | 0.186047 | 0.109635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045946 | 0.229167 | 480 | 19 | 72 | 25.263158 | 0.767568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2e79f7ea432b2b3d219bca9a079a2d06945e6b96 | 5,312 | py | Python | clac_module/listcalc.py | yourback/OfflineDataConversionAndDrawingSoftware | b50cbcf0fba22e536baaf77464c7aab289afc24f | [
"Apache-2.0"
] | null | null | null | clac_module/listcalc.py | yourback/OfflineDataConversionAndDrawingSoftware | b50cbcf0fba22e536baaf77464c7aab289afc24f | [
"Apache-2.0"
] | null | null | null | clac_module/listcalc.py | yourback/OfflineDataConversionAndDrawingSoftware | b50cbcf0fba22e536baaf77464c7aab289afc24f | [
"Apache-2.0"
] | null | null | null | from data_module.get_source_file import *
import numpy as np
class DataCleaner(object):
def __init__(self):
# 图1数据源
self.data_LD = []
self.data_I = []
self.data_LU = []
self.data_T = []
# 图2数据源
self.data_RD = []
self.data_RU = []
# 图3数据源
... | 32.193939 | 79 | 0.515625 | 749 | 5,312 | 3.315087 | 0.128171 | 0.235199 | 0.05437 | 0.061619 | 0.316553 | 0.220298 | 0.147 | 0.114378 | 0.070882 | 0.070882 | 0 | 0.022332 | 0.350904 | 5,312 | 164 | 80 | 32.390244 | 0.697796 | 0.130836 | 0 | 0.097087 | 0 | 0 | 0.042748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067961 | false | 0 | 0.019417 | 0 | 0.184466 | 0.009709 | 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 |
2e80dd7978a3db15732cccc6a8f417efe3965c4c | 946 | py | Python | vol4/156.py | EdisonAlgorithms/ProjectEuler | 95025ede2c92dbd3ed2dccc0f8a97e9a3db95ef0 | [
"MIT"
] | null | null | null | vol4/156.py | EdisonAlgorithms/ProjectEuler | 95025ede2c92dbd3ed2dccc0f8a97e9a3db95ef0 | [
"MIT"
] | null | null | null | vol4/156.py | EdisonAlgorithms/ProjectEuler | 95025ede2c92dbd3ed2dccc0f8a97e9a3db95ef0 | [
"MIT"
] | null | null | null | import itertools
import time
def digits(n):
while n:
yield n % 10
n /= 10
def pows(b):
x = 1
while True:
yield x
x *= 10
def f(n, d):
def g(d0, m):
if d0 < d:
return n / (m * 10) * m
elif d0 == d:
return n / (m * 10) * m + n % m ... | 20.12766 | 73 | 0.403805 | 144 | 946 | 2.590278 | 0.291667 | 0.032172 | 0.064343 | 0.080429 | 0.075067 | 0.075067 | 0.075067 | 0 | 0 | 0 | 0 | 0.073359 | 0.452431 | 946 | 47 | 74 | 20.12766 | 0.646718 | 0 | 0 | 0.097561 | 0 | 0 | 0.015839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04878 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e82064a46395a03f52d064607c7f8ac759527bc | 5,770 | py | Python | codelibproj/codelibapp/migrations/0001_initial.py | ahegashira/CodeLibrary | 4dca1eb8ec0c274e8dfb1db62a97920703df3240 | [
"Apache-2.0"
] | null | null | null | codelibproj/codelibapp/migrations/0001_initial.py | ahegashira/CodeLibrary | 4dca1eb8ec0c274e8dfb1db62a97920703df3240 | [
"Apache-2.0"
] | null | null | null | codelibproj/codelibapp/migrations/0001_initial.py | ahegashira/CodeLibrary | 4dca1eb8ec0c274e8dfb1db62a97920703df3240 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2 on 2019-06-04 18:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 49.741379 | 132 | 0.564991 | 561 | 5,770 | 5.586453 | 0.172906 | 0.086152 | 0.074665 | 0.099553 | 0.677728 | 0.660498 | 0.555839 | 0.534142 | 0.534142 | 0.534142 | 0 | 0.016828 | 0.299653 | 5,770 | 115 | 133 | 50.173913 | 0.758723 | 0.007452 | 0 | 0.425926 | 1 | 0 | 0.15615 | 0.020499 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.064815 | 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 |
2e8a31039b719e32fd9540d0b31a493f407bf660 | 3,081 | py | Python | src/korth_spirit/configuration/input_configuration.py | Korth-Spirit/Korth-Spirit | 1bdaf6f46a4665f4d2a312e61e57d853b9dd5d84 | [
"MIT"
] | null | null | null | src/korth_spirit/configuration/input_configuration.py | Korth-Spirit/Korth-Spirit | 1bdaf6f46a4665f4d2a312e61e57d853b9dd5d84 | [
"MIT"
] | null | null | null | src/korth_spirit/configuration/input_configuration.py | Korth-Spirit/Korth-Spirit | 1bdaf6f46a4665f4d2a312e61e57d853b9dd5d84 | [
"MIT"
] | null | null | null | # Copyright (c) 2021-2022 Johnathan P. Irvin
#
# 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, publ... | 31.762887 | 72 | 0.612788 | 395 | 3,081 | 4.744304 | 0.351899 | 0.040021 | 0.035219 | 0.036286 | 0.228922 | 0.215582 | 0.199039 | 0.158485 | 0.11206 | 0 | 0 | 0.003752 | 0.308017 | 3,081 | 96 | 73 | 32.09375 | 0.875235 | 0.55469 | 0 | 0.25 | 0 | 0 | 0.120751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.03125 | 0 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2e8e0133f4cc67b5978f48ca2c017cf170b948d8 | 609 | py | Python | astronat/phot/MegaCam_PanSTARRS/MCgen2_PS1/Mixed_MegaCamGen2_PS1.py | nstarman/astronat | 9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6 | [
"BSD-3-Clause"
] | 1 | 2020-11-20T18:25:26.000Z | 2020-11-20T18:25:26.000Z | astronat/phot/MegaCam_PanSTARRS/MCgen2_PS1/Mixed_MegaCamGen2_PS1.py | nstarman/astronat | 9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6 | [
"BSD-3-Clause"
] | 3 | 2020-09-09T06:10:20.000Z | 2020-09-16T05:56:10.000Z | astronat/phot/MegaCam_PanSTARRS/MCgen2_PS1/Mixed_MegaCamGen2_PS1.py | nstarman/astronat | 9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Mega-Cam gen2 band and PanSTARRS 1 band Mixed Functions."""
__author__ = "Nathaniel Starkman"
__copyright__ = "Copyright 2018, "
__credits__ = [
"http://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/en/megapipe/docs/filt.html"
]
__all__ = []
##################################################... | 23.423077 | 77 | 0.320197 | 39 | 609 | 4.589744 | 0.948718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012635 | 0.090312 | 609 | 25 | 78 | 24.36 | 0.310469 | 0.157635 | 0 | 0 | 0 | 0.166667 | 0.530612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2e8e8e12d320aec8142afc42dd8fc9a16e93586d | 6,103 | py | Python | iamim_gt_planner.py | cernodile/py-deltaparser | a1767e0429d8bf4e12364c4dcce41e7433065049 | [
"MIT"
] | 2 | 2021-04-21T22:05:50.000Z | 2021-08-14T21:45:03.000Z | iamim_gt_planner.py | cernodile/py-deltaparser | a1767e0429d8bf4e12364c4dcce41e7433065049 | [
"MIT"
] | 1 | 2021-06-11T14:18:23.000Z | 2021-06-11T15:16:02.000Z | iamim_gt_planner.py | cernodile/py-deltaparser | a1767e0429d8bf4e12364c4dcce41e7433065049 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
@cernodile/py-deltaparser
A Python script to convert Growtopia's items.dat to human-readable indexable format.
File: iamim_gt_planner.py
Purpose: To generate data file for Iamim's GT Planner
License: See LICENSE.txt in project root directory.
"""
import csv
import item_parser
def filter(item):
"... | 35.690058 | 203 | 0.636081 | 1,014 | 6,103 | 3.77712 | 0.252465 | 0.117493 | 0.066841 | 0.074674 | 0.274151 | 0.134204 | 0.098695 | 0.078851 | 0.072585 | 0.072585 | 0 | 0.118574 | 0.209569 | 6,103 | 170 | 204 | 35.9 | 0.675373 | 0.077994 | 0 | 0.164384 | 1 | 0 | 0.150953 | 0 | 0 | 0 | 0.000713 | 0 | 0 | 1 | 0.041096 | false | 0 | 0.013699 | 0 | 0.246575 | 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 |
5cecc676be7c87ec7a461eb8220ca39b7ad15690 | 235 | py | Python | PyMOTW/source/webbrowser/webbrowser_get.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | 1 | 2019-01-04T05:47:50.000Z | 2019-01-04T05:47:50.000Z | PyMOTW/source/webbrowser/webbrowser_get.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | 1 | 2020-07-18T03:52:03.000Z | 2020-07-18T04:18:01.000Z | PyMOTW/source/webbrowser/webbrowser_get.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | 2 | 2021-03-06T04:28:32.000Z | 2021-03-06T04:59:17.000Z | #!/usr/bin/env python3
# encoding: utf-8
#
# Copyright (c) 2008 Doug Hellmann All rights reserved.
#
"""
"""
#end_pymotw_header
import webbrowser
b = webbrowser.get('lynx')
b.open('https://docs.python.org/3/library/webbrowser.html')
| 16.785714 | 59 | 0.710638 | 34 | 235 | 4.852941 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033654 | 0.114894 | 235 | 13 | 60 | 18.076923 | 0.759615 | 0.459574 | 0 | 0 | 0 | 0 | 0.464912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5cedb3c2eba19bceedfcaed437eaaaba8aec1a1e | 400 | py | Python | app/api/atleta/migrations/0008_atleta_senha.py | gahhhenrikk/gerenciador-de-equipes | 1418a9ebae6e9b636b4597af9596206aa6cf75c2 | [
"MIT"
] | 1 | 2020-08-13T20:59:33.000Z | 2020-08-13T20:59:33.000Z | app/api/atleta/migrations/0008_atleta_senha.py | AlbericoD/gerenciador-de-equipes | e6e7d084e5980c4ef05a46e0bfa4b70b13fcca4e | [
"MIT"
] | 19 | 2019-09-03T22:49:45.000Z | 2022-02-26T20:06:12.000Z | app/api/atleta/migrations/0008_atleta_senha.py | gahhhenrikk/gerenciador-de-equipes | 1418a9ebae6e9b636b4597af9596206aa6cf75c2 | [
"MIT"
] | 2 | 2019-09-03T20:16:34.000Z | 2019-09-09T12:35:14.000Z | # Generated by Django 2.2.7 on 2019-11-11 23:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('atleta', '0007_remove_atleta_treinador'),
]
operations = [
migrations.AddField(
model_name='atleta',
name='senha',
... | 21.052632 | 63 | 0.6 | 43 | 400 | 5.465116 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076389 | 0.28 | 400 | 18 | 64 | 22.222222 | 0.739583 | 0.1125 | 0 | 0 | 1 | 0 | 0.127479 | 0.07932 | 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 |
5cf2cde51e543e36e937cb094f4bc31af4b0de5a | 3,429 | py | Python | lib/googlecloudsdk/command_lib/container/gkemulticloud/endpoint_util.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/googlecloudsdk/command_lib/container/gkemulticloud/endpoint_util.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/command_lib/container/gkemulticloud/endpoint_util.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 34.989796 | 156 | 0.748031 | 432 | 3,429 | 5.819444 | 0.460648 | 0.023866 | 0.019093 | 0.03222 | 0.121321 | 0.096659 | 0.068815 | 0.046937 | 0 | 0 | 0 | 0.007714 | 0.168271 | 3,429 | 97 | 157 | 35.350515 | 0.873773 | 0.284048 | 0 | 0.035714 | 0 | 0.017857 | 0.134384 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.321429 | 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 |
5cf7956415ed6ed6ed0b04f303733e9e61d8fd09 | 3,139 | py | Python | src/torspray/modules/node.py | gergelykalman/torspray | a84c903b71da8c87e9e22d9bce123aaf6797abe8 | [
"MIT"
] | 11 | 2022-02-27T22:19:52.000Z | 2022-03-18T19:57:06.000Z | src/torspray/modules/node.py | gergelykalman/torspray | a84c903b71da8c87e9e22d9bce123aaf6797abe8 | [
"MIT"
] | null | null | null | src/torspray/modules/node.py | gergelykalman/torspray | a84c903b71da8c87e9e22d9bce123aaf6797abe8 | [
"MIT"
] | null | null | null | import paramiko
from .config import CONFIG
class NodeAuthException(Exception):
pass
class NodeTimeoutException(Exception):
pass
# TODO:
# - connection management should be improved, particularly unused connections
# - what happens if connection is lost? this should be handled gracefully
class Node:
d... | 29.895238 | 114 | 0.638738 | 372 | 3,139 | 5.094086 | 0.365591 | 0.037995 | 0.029551 | 0.018997 | 0.020053 | 0.020053 | 0 | 0 | 0 | 0 | 0 | 0.003036 | 0.265371 | 3,139 | 104 | 115 | 30.182692 | 0.818734 | 0.090793 | 0 | 0.15942 | 0 | 0 | 0.063598 | 0 | 0 | 0 | 0 | 0.009615 | 0 | 1 | 0.15942 | false | 0.057971 | 0.028986 | 0.014493 | 0.304348 | 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 |
5cf85cc05d2e35117fbd77e06d0033570013d07b | 1,676 | py | Python | tests/test_texture.py | alTeska/ratcave | 954d638544330970c74532339b6696f7ec6376db | [
"MIT"
] | null | null | null | tests/test_texture.py | alTeska/ratcave | 954d638544330970c74532339b6696f7ec6376db | [
"MIT"
] | null | null | null | tests/test_texture.py | alTeska/ratcave | 954d638544330970c74532339b6696f7ec6376db | [
"MIT"
] | null | null | null | from ratcave import texture
import pytest
@pytest.fixture
def tex():
return texture.Texture()
@pytest.fixture
def cubetex():
return texture.TextureCube()
@pytest.fixture
def depthtex():
return texture.DepthTexture()
def test_texture_attributes_created():
old_id = 0
for idx, (w, h) in enumerate([... | 29.403509 | 73 | 0.701074 | 215 | 1,676 | 5.386047 | 0.24186 | 0.157168 | 0.096718 | 0.094991 | 0.227116 | 0.060449 | 0 | 0 | 0 | 0 | 0 | 0.032114 | 0.201074 | 1,676 | 56 | 74 | 29.928571 | 0.832711 | 0 | 0 | 0.066667 | 0 | 0 | 0.121864 | 0 | 0 | 0 | 0 | 0 | 0.511111 | 1 | 0.111111 | false | 0 | 0.044444 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cf90931f0e1b598361245b75fb7cb9889936a8b | 1,829 | py | Python | kaggle_environments/envs/identity/identity.py | hubcity/kaggle-environments | 7fe29d7ed96f9d910cbf367f26663a9a8440bfd9 | [
"Apache-2.0"
] | null | null | null | kaggle_environments/envs/identity/identity.py | hubcity/kaggle-environments | 7fe29d7ed96f9d910cbf367f26663a9a8440bfd9 | [
"Apache-2.0"
] | null | null | null | kaggle_environments/envs/identity/identity.py | hubcity/kaggle-environments | 7fe29d7ed96f9d910cbf367f26663a9a8440bfd9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Kaggle Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 25.760563 | 80 | 0.669218 | 256 | 1,829 | 4.734375 | 0.445313 | 0.049505 | 0.046205 | 0.066007 | 0.069307 | 0.047855 | 0 | 0 | 0 | 0 | 0 | 0.0092 | 0.227447 | 1,829 | 70 | 81 | 26.128571 | 0.848549 | 0.334609 | 0 | 0.054054 | 0 | 0 | 0.05574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.081081 | 0.135135 | 0.432432 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
cf064ee4360718e1bf827036501177dcef34c6bd | 2,209 | py | Python | server/gestion/models/product.py | JetLightStudio/Jet-Gest-stock-management | 333cbc3dd1b379f53f67250fbd581cbce8e20ca8 | [
"MIT"
] | 1 | 2021-08-18T18:53:02.000Z | 2021-08-18T18:53:02.000Z | server/gestion/models/product.py | JetLightStudio/Jet-Gest-stock-management | 333cbc3dd1b379f53f67250fbd581cbce8e20ca8 | [
"MIT"
] | null | null | null | server/gestion/models/product.py | JetLightStudio/Jet-Gest-stock-management | 333cbc3dd1b379f53f67250fbd581cbce8e20ca8 | [
"MIT"
] | 1 | 2021-08-04T23:53:52.000Z | 2021-08-04T23:53:52.000Z | from django.core.files import storage
from django.db import models
from gestion.utils import products_path_and_rename
from gestion.models.category import Category
from gestion.models.subCategory import SubCategory
class Product(models.Model):
title = models.CharField(max_length=40, unique=True)
descr... | 37.440678 | 104 | 0.673155 | 230 | 2,209 | 6.369565 | 0.373913 | 0.024573 | 0.038225 | 0.057338 | 0.236177 | 0.236177 | 0.236177 | 0.236177 | 0.236177 | 0.236177 | 0 | 0.004192 | 0.244002 | 2,209 | 58 | 105 | 38.086207 | 0.873054 | 0 | 0 | 0.217391 | 0 | 0 | 0.024175 | 0.020921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.173913 | 0.021739 | 0.717391 | 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 |
cf0f43f9858fd6194f42e3f825cc15ff13ea7eeb | 1,433 | py | Python | solutions/036.valid-sudoku/valid-sudoku.py | wangsongiam/leetcode | 96ff21bca1871816ae51fccb1fa13587b378dc50 | [
"MIT"
] | 3 | 2018-11-25T15:19:57.000Z | 2019-09-28T03:01:11.000Z | solutions/036.valid-sudoku/valid-sudoku.py | casprwang/leetcode | 96ff21bca1871816ae51fccb1fa13587b378dc50 | [
"MIT"
] | null | null | null | solutions/036.valid-sudoku/valid-sudoku.py | casprwang/leetcode | 96ff21bca1871816ae51fccb1fa13587b378dc50 | [
"MIT"
] | 3 | 2018-02-11T20:23:44.000Z | 2020-06-05T15:39:56.000Z | class Solution:
def isValidSudoku(self, board):
"""
:type board: List[List[str]]
:rtype: bool
00 01 02
10 11 12
20 21 22
divide 3 : 0
mod 3 : < 3
m = {
'row0-8' : set()
'col0-8'
'div3 + mod3'
}
... | 24.288136 | 55 | 0.328681 | 161 | 1,433 | 2.813665 | 0.322981 | 0.10596 | 0.06181 | 0.05298 | 0.317881 | 0.092715 | 0.092715 | 0 | 0 | 0 | 0 | 0.052202 | 0.572226 | 1,433 | 58 | 56 | 24.706897 | 0.686786 | 0.114445 | 0 | 0.363636 | 0 | 0 | 0.002593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0 | 0 | 0.181818 | 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 |
cf151f0c30a45fd3252d2c9ba1d95617b3dd6f69 | 7,627 | py | Python | psi/app/models/product_inventory.py | lusi1990/betterlifepsi | 8e7f8562967ab1816d8c25db3251c550a357f39c | [
"MIT"
] | 33 | 2018-10-19T03:41:56.000Z | 2022-01-23T16:26:02.000Z | psi/app/models/product_inventory.py | lusi1990/betterlifepsi | 8e7f8562967ab1816d8c25db3251c550a357f39c | [
"MIT"
] | 318 | 2018-09-23T15:16:54.000Z | 2022-03-31T22:58:55.000Z | psi/app/models/product_inventory.py | lusi1990/betterlifepsi | 8e7f8562967ab1816d8c25db3251c550a357f39c | [
"MIT"
] | 19 | 2018-10-22T18:04:18.000Z | 2021-12-06T19:49:05.000Z | from sqlalchemy import select, func, or_
from sqlalchemy.ext.hybrid import hybrid_property
from psi.app import const
from psi.app.models import Product, InventoryTransactionLine, \
InventoryTransaction
from psi.app.service import Info
from psi.app.utils import format_decimal, get_weeks_between
db = Info.get_db()
... | 41.005376 | 136 | 0.64075 | 871 | 7,627 | 5.342135 | 0.132032 | 0.055878 | 0.047281 | 0.067054 | 0.600473 | 0.457339 | 0.425317 | 0.40533 | 0.363636 | 0.326886 | 0 | 0.004375 | 0.280713 | 7,627 | 185 | 137 | 41.227027 | 0.843784 | 0.057296 | 0 | 0.447552 | 0 | 0 | 0.014902 | 0.006103 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146853 | false | 0.055944 | 0.083916 | 0.013986 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cf21edee740920f2ebaec338a4fef6781808e844 | 1,088 | py | Python | datasets/mvda_peas_raw/__init__.py | ryuzakyl/data-bloodhound | ae0413e748e55a0d2dbae35bbe96a672f313a64b | [
"Apache-2.0"
] | 3 | 2019-03-18T03:22:06.000Z | 2021-04-06T07:53:51.000Z | datasets/mvda_peas_raw/__init__.py | ryuzakyl/data-bloodhound | ae0413e748e55a0d2dbae35bbe96a672f313a64b | [
"Apache-2.0"
] | null | null | null | datasets/mvda_peas_raw/__init__.py | ryuzakyl/data-bloodhound | ae0413e748e55a0d2dbae35bbe96a672f313a64b | [
"Apache-2.0"
] | 2 | 2020-10-05T08:22:25.000Z | 2020-10-05T08:24:02.000Z | #!/usr/bin/env
# -*- coding: utf-8 -*-
# Copyright (C) Victor M. Mendiola Lau - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited
# Proprietary and confidential
# Written by Victor M. Mendiola Lau <ryuzakyl@gmail.com>, January 2017
import os
import scipy.io as sio
import ... | 28.631579 | 82 | 0.649816 | 146 | 1,088 | 4.547945 | 0.575342 | 0.063253 | 0.045181 | 0.054217 | 0.066265 | 0.066265 | 0 | 0 | 0 | 0 | 0 | 0.010582 | 0.131434 | 1,088 | 37 | 83 | 29.405405 | 0.692063 | 0.456801 | 0 | 0 | 0 | 0 | 0.134483 | 0.096552 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf2226ec55301df910a7704bea76af8d31c1db00 | 472 | py | Python | AULAS/Caixa de entrada/selectionSortEu.py | junioralecrim/Python | a7f716e0e2b3d17ea20c76987788831e102c4765 | [
"MIT"
] | null | null | null | AULAS/Caixa de entrada/selectionSortEu.py | junioralecrim/Python | a7f716e0e2b3d17ea20c76987788831e102c4765 | [
"MIT"
] | null | null | null | AULAS/Caixa de entrada/selectionSortEu.py | junioralecrim/Python | a7f716e0e2b3d17ea20c76987788831e102c4765 | [
"MIT"
] | null | null | null | #selection sort
#Passo a passo:
# 1° Descobrir o menor item da lista
# 2° colocar dentro de uma função
#Rascunho do algoritimo de ordenação para mudar as posições
# if (lista[2] < minimo):
# aux = lista[0]
# minimo = lista[2]
# lista[2] = aux
lista = [7, 5, 1, 3, 8]
n = le... | 17.481481 | 59 | 0.552966 | 73 | 472 | 3.60274 | 0.575342 | 0.091255 | 0.060837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.326271 | 472 | 26 | 60 | 18.153846 | 0.783019 | 0.557203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf252db5b4b95b5dc23031fed96cc1a89f8cd949 | 2,475 | py | Python | openGaussBase/testcase/SECURITY/MODIFY/Opengauss_Function_Security_Mgt_Manamegent_Case0001.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SECURITY/MODIFY/Opengauss_Function_Security_Mgt_Manamegent_Case0001.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SECURITY/MODIFY/Opengauss_Function_Security_Mgt_Manamegent_Case0001.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | """
Copyright (c) 2022 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W... | 33 | 84 | 0.645657 | 327 | 2,475 | 4.737003 | 0.431193 | 0.058102 | 0.072305 | 0.034861 | 0.280181 | 0.280181 | 0.280181 | 0.280181 | 0.204003 | 0.204003 | 0 | 0.016367 | 0.234747 | 2,475 | 74 | 85 | 33.445946 | 0.801478 | 0.205253 | 0 | 0.325 | 0 | 0 | 0.304571 | 0.089143 | 0 | 0 | 0 | 0 | 0.075 | 1 | 0.075 | false | 0.175 | 0.15 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cf29a3a3726068b1f04b6f5636cece5035884b63 | 465 | py | Python | stackoverflow.py | kenenbek/MultiAgent | 3276d192416503bb1705a3a190649c8bcf3dd630 | [
"MIT"
] | null | null | null | stackoverflow.py | kenenbek/MultiAgent | 3276d192416503bb1705a3a190649c8bcf3dd630 | [
"MIT"
] | null | null | null | stackoverflow.py | kenenbek/MultiAgent | 3276d192416503bb1705a3a190649c8bcf3dd630 | [
"MIT"
] | null | null | null | from scipy.stats import chi2
import numpy as np
from matplotlib import pyplot as plt
from scipy import optimize
import pickle
objects = []
with open("priceZZZ", "rb") as openfile:
while True:
try:
objects.append(pickle.load(openfile))
except EOFError:
break
for ... | 27.352941 | 93 | 0.636559 | 67 | 465 | 4.41791 | 0.567164 | 0.101351 | 0.091216 | 0.081081 | 0.084459 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.236559 | 465 | 17 | 94 | 27.352941 | 0.819718 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 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 |
cf2bb8c6d785b39a5517d20fc3e9d6b495f276b6 | 1,080 | py | Python | 11_python-data-science-toolbox-(part-2)/2-list-comprehensions-and-generators/10_changing-the-output-in-generator-expressions.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 5 | 2021-02-03T14:36:58.000Z | 2022-01-01T10:29:26.000Z | 11_python-data-science-toolbox-(part-2)/2-list-comprehensions-and-generators/10_changing-the-output-in-generator-expressions.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | null | null | null | 11_python-data-science-toolbox-(part-2)/2-list-comprehensions-and-generators/10_changing-the-output-in-generator-expressions.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 3 | 2021-02-08T00:31:16.000Z | 2022-03-17T13:52:32.000Z | '''
10 - Changing the output in generator expressions
Great! At this point, you already know how to write a basic generator expression.
In this exercise, you will push this idea a little further by adding to the output
expression of a generator expression. Because generator expressions and list
comprehensions are so ... | 36 | 86 | 0.773148 | 167 | 1,080 | 5 | 0.467066 | 0.05988 | 0.071856 | 0.033533 | 0.05509 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00225 | 0.176852 | 1,080 | 29 | 87 | 37.241379 | 0.937008 | 0.847222 | 0 | 0 | 0 | 0 | 0.187097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf308bf1eb0d73c66e892cc4b6703edb92094ed6 | 709 | py | Python | oms_cms/backend/info_block/models.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | oms_cms/backend/info_block/models.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | oms_cms/backend/info_block/models.py | Hamel007/oms_cms | a120b27932fe1bd89f2c621c181b80b19caba0e0 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from oms_gallery.models import Gallery
from oms_cms.backend.languages.models import AbstractLang
class InfoBlock(AbstractLang):
"""Модель инфо блока"""
title = models.CharField("Заголовок", max_length=100)
sub_title = models.CharField("Под заголовок", max_length=100, blank=Tr... | 28.36 | 88 | 0.686883 | 86 | 709 | 5.488372 | 0.534884 | 0.057203 | 0.084746 | 0.088983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017953 | 0.214386 | 709 | 24 | 89 | 29.541667 | 0.829443 | 0.023977 | 0 | 0 | 0 | 0 | 0.080175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0.055556 | 0.611111 | 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 |
cf314a62fbc67887598a3f07228dd471a1ffe7af | 4,724 | py | Python | modules/SampleGenerator/SampleGenerator.py | ediril/BCI | f211ba70d6d75a9badff6872f86416b065f6192b | [
"BSD-2-Clause"
] | 6 | 2016-12-30T03:43:49.000Z | 2020-04-19T16:04:37.000Z | modules/SampleGenerator/SampleGenerator.py | hongweimao/BCI | 49b7e8137bd5f9d18e3efdbd94a112cde5d16c4c | [
"BSD-2-Clause"
] | 1 | 2022-03-08T09:16:10.000Z | 2022-03-08T09:16:10.000Z | modules/SampleGenerator/SampleGenerator.py | ediril/BCI | f211ba70d6d75a9badff6872f86416b065f6192b | [
"BSD-2-Clause"
] | 2 | 2015-06-16T02:46:03.000Z | 2018-12-20T20:07:59.000Z | #!/usr/bin/python
import time
import sys
import platform
from ConfigParser import SafeConfigParser
from PyDragonfly import Dragonfly_Module, CMessage, copy_to_msg, copy_from_msg, MT_EXIT
from argparse import ArgumentParser
from dragonfly_utils import respond_to_ping
import Dragonfly_config as rc
class SampleGenerator... | 41.078261 | 109 | 0.577053 | 576 | 4,724 | 4.494792 | 0.263889 | 0.035149 | 0.035149 | 0.045964 | 0.21321 | 0.069139 | 0.026265 | 0.026265 | 0 | 0 | 0 | 0.005919 | 0.320491 | 4,724 | 114 | 110 | 41.438596 | 0.800623 | 0.049534 | 0 | 0.07 | 0 | 0 | 0.071859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cf37f380f3a304d0ac99d99b4a587e12239fe76f | 766 | py | Python | alipay/aop/api/response/AlipayInsSceneInsserviceprodSerinfoSyncResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayInsSceneInsserviceprodSerinfoSyncResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayInsSceneInsserviceprodSerinfoSyncResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayInsSceneInsserviceprodSerinfoSyncResponse(AlipayResponse):
def __init__(self):
super(AlipayInsSceneInsserviceprodSerinfoSyncResponse, self).__init__()
self._ser... | 29.461538 | 120 | 0.733681 | 88 | 766 | 5.988636 | 0.375 | 0.102467 | 0.136622 | 0.091082 | 0.056926 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001595 | 0.181462 | 766 | 25 | 121 | 30.64 | 0.838915 | 0.05483 | 0 | 0 | 0 | 0 | 0.027701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.0625 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf3ae41287d546e236788642c821e46e2316896c | 2,269 | py | Python | practice/src/design_pattern/Interpreter.py | t10471/python | 75056454bfb49197eb44f6b4d6a1b0a0b4b408ec | [
"MIT"
] | null | null | null | practice/src/design_pattern/Interpreter.py | t10471/python | 75056454bfb49197eb44f6b4d6a1b0a0b4b408ec | [
"MIT"
] | null | null | null | practice/src/design_pattern/Interpreter.py | t10471/python | 75056454bfb49197eb44f6b4d6a1b0a0b4b408ec | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import os
#compsiteとcommandをあわせたような形
#ContextがhandlerでCommandが処理
class JobCommand(object):
def execute(self, context):
if context.getCurrentCommand() != 'begin':
raise Exception('illegal command ' + str(context.getCurrentCommand()))
command_list... | 26.383721 | 82 | 0.588365 | 227 | 2,269 | 5.731278 | 0.330396 | 0.086088 | 0.061491 | 0.046118 | 0.188317 | 0.083013 | 0.083013 | 0 | 0 | 0 | 0 | 0.022528 | 0.295725 | 2,269 | 85 | 83 | 26.694118 | 0.791615 | 0.031732 | 0 | 0.116667 | 0 | 0 | 0.075274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf4635f6758052b35e57afc944ef8877bef8bb73 | 3,624 | py | Python | PostDiffMixture/le_experiments/epsilonGreedyPolicy.py | SIGKDDanon/SIGKDD2021DeAnonV2 | 76f0373ec42ab55feefed3f4ce4bf4d532b51dd2 | [
"Apache-2.0"
] | null | null | null | PostDiffMixture/le_experiments/epsilonGreedyPolicy.py | SIGKDDanon/SIGKDD2021DeAnonV2 | 76f0373ec42ab55feefed3f4ce4bf4d532b51dd2 | [
"Apache-2.0"
] | null | null | null | PostDiffMixture/le_experiments/epsilonGreedyPolicy.py | SIGKDDanon/SIGKDD2021DeAnonV2 | 76f0373ec42ab55feefed3f4ce4bf4d532b51dd2 | [
"Apache-2.0"
] | null | null | null | import sys
import csv
import random
import math
import numpy
def constant_policy(num_actions):
''' 1-based action '''
return 1
def getEpsilonGreedyAction(eps, num_actions, default_policy):
'''
Performs epsilon greedy exploration with specified default policy.
This works as follows: in epsilon o... | 34.846154 | 122 | 0.625828 | 402 | 3,624 | 5.519901 | 0.345771 | 0.054078 | 0.036052 | 0.019829 | 0.100946 | 0.029743 | 0.029743 | 0.029743 | 0 | 0 | 0 | 0.017932 | 0.276766 | 3,624 | 103 | 123 | 35.184466 | 0.82831 | 0.095751 | 0 | 0.116667 | 0 | 0 | 0.10292 | 0.021533 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf4a7aaf148ceec8298f56012e99d6d50054187d | 957 | py | Python | daseg/slack.py | pzelasko/daseg | 5e3aaf6e81a44a5eb42226bd376c92c7d1879261 | [
"Apache-2.0"
] | 4 | 2021-07-12T00:46:32.000Z | 2022-02-28T07:02:27.000Z | daseg/slack.py | pzelasko/daseg | 5e3aaf6e81a44a5eb42226bd376c92c7d1879261 | [
"Apache-2.0"
] | 2 | 2021-12-09T12:34:24.000Z | 2022-02-14T20:37:01.000Z | daseg/slack.py | pzelasko/daseg | 5e3aaf6e81a44a5eb42226bd376c92c7d1879261 | [
"Apache-2.0"
] | null | null | null | import logging
import os
import requests
def slack_notify(msg: str):
token = os.environ.get('SLACK_API_TOKEN')
if token is None:
return
try:
requests.post(token, json={'text': msg})
except:
logging.warning('Unable to send notification to Slack!')
def print_and_slack(msg: str... | 20.804348 | 64 | 0.596656 | 127 | 957 | 4.307087 | 0.377953 | 0.043876 | 0.076782 | 0.058501 | 0.124314 | 0.124314 | 0.124314 | 0.124314 | 0 | 0 | 0 | 0 | 0.278997 | 957 | 45 | 65 | 21.266667 | 0.792754 | 0 | 0 | 0.212121 | 0 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.090909 | 0.030303 | 0.484848 | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cf4a98bc5a1223ce3366c7b5c9b02fbe3d60be2f | 2,386 | py | Python | jageocoder/address.py | ny-a/jageocoder | 6c31cd7d81aa496b2fbcd3300ac1ccc9cf00fca3 | [
"MIT"
] | 12 | 2021-03-09T01:22:50.000Z | 2022-03-23T04:18:24.000Z | jageocoder/address.py | ny-a/jageocoder | 6c31cd7d81aa496b2fbcd3300ac1ccc9cf00fca3 | [
"MIT"
] | 3 | 2021-12-14T06:34:52.000Z | 2022-02-18T13:11:59.000Z | jageocoder/address.py | ny-a/jageocoder | 6c31cd7d81aa496b2fbcd3300ac1ccc9cf00fca3 | [
"MIT"
] | 3 | 2021-12-14T06:36:59.000Z | 2022-02-16T00:48:51.000Z | from logging import getLogger
from jageocoder.exceptions import AddressLevelError
logger = getLogger(__name__)
class AddressLevel(object):
"""
Address Levels
1 = 都道府県
2 = 郡・支庁・振興局
3 = 市町村および特別区
4 = 政令市の区
5 = 大字
6 = 字
7 = 地番または住居表示実施地域の街区
8 = 枝番または住居表示実施地域の住居番号
"""
#... | 25.115789 | 79 | 0.508382 | 273 | 2,386 | 4.435897 | 0.388278 | 0.059455 | 0.075145 | 0.079273 | 0.165153 | 0.165153 | 0.095789 | 0 | 0 | 0 | 0 | 0.029046 | 0.393965 | 2,386 | 94 | 80 | 25.382979 | 0.807054 | 0.305951 | 0 | 0.093023 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.046512 | 0 | 0.534884 | 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 |
cf4c7bd09808208650fcf7902fc5aadd3ebc4e2a | 918 | py | Python | __init__.py | nuki111/env_explore | b5dfa05fbcfb0126e246e4ef4eb5a392a8615cf0 | [
"MIT"
] | null | null | null | __init__.py | nuki111/env_explore | b5dfa05fbcfb0126e246e4ef4eb5a392a8615cf0 | [
"MIT"
] | null | null | null | __init__.py | nuki111/env_explore | b5dfa05fbcfb0126e246e4ef4eb5a392a8615cf0 | [
"MIT"
] | null | null | null | '''
env_explore is a library for quick and easy exploration of python objects
=========================================================================
**env_explore** combines pandas and ipywidgets to extract and process data
from almost any given python object into pandas DataFrame and generate a
clickable widget rep... | 43.714286 | 77 | 0.643791 | 88 | 918 | 6.647727 | 0.818182 | 0.034188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223312 | 918 | 21 | 78 | 43.714286 | 0.820477 | 0.389978 | 0 | 0 | 0 | 0 | 0.018083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 |
cf54217590cfa476b93f2e6e6579db91c814fd52 | 431 | py | Python | buildPersonNet.py | danpelis/CPE322 | 86aa3b77dd710d31c0248957146949ca99b81e0b | [
"MIT"
] | null | null | null | buildPersonNet.py | danpelis/CPE322 | 86aa3b77dd710d31c0248957146949ca99b81e0b | [
"MIT"
] | null | null | null | buildPersonNet.py | danpelis/CPE322 | 86aa3b77dd710d31c0248957146949ca99b81e0b | [
"MIT"
] | null | null | null | PIPELINE_CONFIG_PATH={C:\Users\Dan\Projects\D6\ssd_mobilenet_v1_person.config}
MODEL_DIR={C:\Users\Dan\Projects\D6\personNet}
NUM_TRAIN_STEPS=50000
SAMPLE_1_OF_N_EVAL_EXAMPLES=1
python object_detection/model_main.py \
--pipeline_config_path=${PIPELINE_CONFIG_PATH} \
--model_dir=${MODEL_DIR} \
--num_train_st... | 43.1 | 78 | 0.798144 | 67 | 431 | 4.61194 | 0.462687 | 0.135922 | 0.174757 | 0.097087 | 0.33657 | 0.213592 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.081207 | 431 | 10 | 79 | 43.1 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf546ea7ea4bd4fa252d37fbbd6a124b7399d0c3 | 5,784 | py | Python | DIR.py | az7jh2/My-Raystation-Scripts | 3454378239320c2944fd96de8cb86be8824b5210 | [
"MIT"
] | 1 | 2021-05-29T22:48:49.000Z | 2021-05-29T22:48:49.000Z | DIR.py | az7jh2/My-Raystation-Scripts | 3454378239320c2944fd96de8cb86be8824b5210 | [
"MIT"
] | null | null | null | DIR.py | az7jh2/My-Raystation-Scripts | 3454378239320c2944fd96de8cb86be8824b5210 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from connect import *
#求均匀性指数HI
def GetHomogenietyIndex(total_dose, Prescription, RoiName):
#total_dose存在于Patient.TreatmentDelivery.TreatmentCourse.TotalDose
#Prescription可输入数字,或者在getcurrentBeamSet.Prescription.PrimaryDosePrescription.DoseValue,此处还有OnStructure.Name
#RoiName可用字符串自定义,或... | 67.255814 | 149 | 0.681017 | 470 | 5,784 | 8.297872 | 0.331915 | 0.062308 | 0.027692 | 0.046154 | 0.408974 | 0.368462 | 0.30641 | 0.255641 | 0.147692 | 0.122051 | 0 | 0.005796 | 0.105118 | 5,784 | 86 | 150 | 67.255814 | 0.747682 | 0.276452 | 0 | 0.241379 | 0 | 0 | 0.057859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017241 | null | null | 0.086207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cf63b316fcbc7d486530689ffda1e935bef34ddd | 7,937 | py | Python | netunnel/server/peer.py | kobimic/netunnel | fe7f627b01deb67e0d7bd7ae949a42db43738785 | [
"Apache-2.0"
] | 18 | 2021-01-20T16:30:47.000Z | 2022-03-08T03:43:11.000Z | netunnel/server/peer.py | kobimic/netunnel | fe7f627b01deb67e0d7bd7ae949a42db43738785 | [
"Apache-2.0"
] | null | null | null | netunnel/server/peer.py | kobimic/netunnel | fe7f627b01deb67e0d7bd7ae949a42db43738785 | [
"Apache-2.0"
] | 4 | 2021-01-24T17:52:26.000Z | 2021-08-08T14:48:03.000Z | from typing import Dict, List
from .static_tunnel import StaticTunnel
from .schemas import StaticTunnelSchema
from ..client import NETunnelClient
from ..common.utils import get_logger
from ..common.exceptions import NETunnelServerNotFound, NETunnelServerError, NETunnelResponseError, NETunnelAuthError
from ..common.auth... | 45.354286 | 157 | 0.666877 | 1,006 | 7,937 | 5.017893 | 0.173956 | 0.099842 | 0.047147 | 0.0208 | 0.292393 | 0.203645 | 0.162044 | 0.133914 | 0.133914 | 0.133914 | 0 | 0.000515 | 0.266473 | 7,937 | 174 | 158 | 45.614943 | 0.866541 | 0.121834 | 0 | 0.207921 | 0 | 0 | 0.077955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089109 | false | 0.069307 | 0.089109 | 0.039604 | 0.29703 | 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 |
cf6665e0703b869005a49a58e097cb3fc9a32910 | 20,965 | py | Python | dft_workflow/job_analysis/collect_collate_dft_data/test_models_on_diff_oer_sets/test_models_on_diff_oer_sets.py | raulf2012/PROJ_IrOx_OER | 56883d6f5b62e67703fe40899e2e68b3f5de143b | [
"MIT"
] | 1 | 2022-03-21T04:43:47.000Z | 2022-03-21T04:43:47.000Z | dft_workflow/job_analysis/collect_collate_dft_data/test_models_on_diff_oer_sets/test_models_on_diff_oer_sets.py | raulf2012/PROJ_IrOx_OER | 56883d6f5b62e67703fe40899e2e68b3f5de143b | [
"MIT"
] | null | null | null | dft_workflow/job_analysis/collect_collate_dft_data/test_models_on_diff_oer_sets/test_models_on_diff_oer_sets.py | raulf2012/PROJ_IrOx_OER | 56883d6f5b62e67703fe40899e2e68b3f5de143b | [
"MIT"
] | 1 | 2021-02-13T12:55:02.000Z | 2021-02-13T12:55:02.000Z | # ---
# jupyter:
# jupytext:
# formats: ipynb,py
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.4.2
# kernelspec:
# display_name: Python [conda env:PROJ_irox_oer] *
# language: python
# name: conda-env-PROJ_irox_... | 23.582677 | 75 | 0.562127 | 2,976 | 20,965 | 3.523185 | 0.089382 | 0.036242 | 0.023367 | 0.05484 | 0.765474 | 0.718264 | 0.640153 | 0.618121 | 0.58226 | 0.563567 | 0 | 0.029481 | 0.189411 | 20,965 | 888 | 76 | 23.609234 | 0.587501 | 0.225423 | 0 | 0.634361 | 0 | 0 | 0.129252 | 0.032258 | 0 | 0 | 0 | 0 | 0.002203 | 1 | 0 | false | 0 | 0.026432 | 0 | 0.026432 | 0.046256 | 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 |
cf704edeb093695bcc194edf614b3bb53790af9a | 1,074 | py | Python | flask_app/services/twitter_service.py | JenBanks8585/twitoff_Banks | 06f18c1daf5745a2d0890d8d04b87d5282b176d8 | [
"MIT"
] | null | null | null | flask_app/services/twitter_service.py | JenBanks8585/twitoff_Banks | 06f18c1daf5745a2d0890d8d04b87d5282b176d8 | [
"MIT"
] | 4 | 2021-06-08T21:50:24.000Z | 2022-03-12T00:42:59.000Z | flask_app/services/twitter_service.py | JenBanks8585/twitoff_Banks | 06f18c1daf5745a2d0890d8d04b87d5282b176d8 | [
"MIT"
] | null | null | null |
import tweepy
import os
from dotenv import load_dotenv
load_dotenv()
TWITTER_API_KEY = os.getenv("TWITTER_API_KEY")
TWITTER_API_SECRET = os.getenv("TWITTER_API_SECRET")
TWITTER_ACCESS_TOKEN = os.getenv("TWITTER_ACCESS_TOKEN")
TWITTER_ACCESS_TOKEN_SECRET = os.getenv("TWITTER_ACCESS_TOKEN_SECRET")
auth = tweepy.OAuth... | 26.195122 | 140 | 0.733706 | 141 | 1,074 | 5.042553 | 0.319149 | 0.108298 | 0.151899 | 0.101266 | 0.35865 | 0.295359 | 0.213783 | 0 | 0 | 0 | 0 | 0.005488 | 0.151769 | 1,074 | 41 | 141 | 26.195122 | 0.774973 | 0.090317 | 0 | 0.076923 | 0 | 0 | 0.158111 | 0.027721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.115385 | 0.423077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
cf71a671f7a019cfe847b9abcb8b86b99ffb82ad | 1,552 | py | Python | codeChallenge/Exercise1.py | jocardozo/Rooftop-Challenge | 0fe2ea9823f38a25911a760f286b0d55eb26e553 | [
"MIT"
] | null | null | null | codeChallenge/Exercise1.py | jocardozo/Rooftop-Challenge | 0fe2ea9823f38a25911a760f286b0d55eb26e553 | [
"MIT"
] | null | null | null | codeChallenge/Exercise1.py | jocardozo/Rooftop-Challenge | 0fe2ea9823f38a25911a760f286b0d55eb26e553 | [
"MIT"
] | null | null | null | def makeFigure(size):
figure = [[0] *(size) for j in range(size)] #creamos la matriz de 0 en el tamaño pedido
x = 0
y = 0
figure[0][0] =1
'''Funciones auxiliares para el recorrido de la serpiente
'''
def moverEste(figure,x,y,pasos):
for i in range(pasos):
y = y +... | 24.25 | 118 | 0.439433 | 221 | 1,552 | 3.085973 | 0.226244 | 0.064516 | 0.152493 | 0.080645 | 0.435484 | 0.435484 | 0.394428 | 0.27566 | 0.246334 | 0.203812 | 0 | 0.022447 | 0.425902 | 1,552 | 64 | 119 | 24.25 | 0.742985 | 0 | 0 | 0.44898 | 0 | 0 | 0.006706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d843b63a70d99dba02ce0c7f86e18727de78351a | 300 | py | Python | solutions/python3/841.py | sm2774us/amazon_interview_prep_2021 | f580080e4a6b712b0b295bb429bf676eb15668de | [
"MIT"
] | 42 | 2020-08-02T07:03:49.000Z | 2022-03-26T07:50:15.000Z | solutions/python3/841.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | null | null | null | solutions/python3/841.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | 40 | 2020-02-08T02:50:24.000Z | 2022-03-26T15:38:10.000Z | class Solution:
def canVisitAllRooms(self, rooms):
pool, stack = set(range(len(rooms))), [0]
while stack:
pool.discard(stack[-1])
for nex in rooms[stack.pop()]:
if nex in pool:
stack.append(nex)
return not pool | 33.333333 | 49 | 0.51 | 35 | 300 | 4.371429 | 0.657143 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.38 | 300 | 9 | 50 | 33.333333 | 0.811828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 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 |
d84405eb47cc619295c6637f42822db41956a203 | 10,213 | py | Python | 15_observation_fixed_direction.py | kuntzer/SALSA-public | 79fd601d3999ac977bbc97be010b2c4ef81e4c35 | [
"BSD-3-Clause"
] | 1 | 2021-07-30T09:59:41.000Z | 2021-07-30T09:59:41.000Z | 15_observation_fixed_direction.py | kuntzer/SALSA-public | 79fd601d3999ac977bbc97be010b2c4ef81e4c35 | [
"BSD-3-Clause"
] | null | null | null | 15_observation_fixed_direction.py | kuntzer/SALSA-public | 79fd601d3999ac977bbc97be010b2c4ef81e4c35 | [
"BSD-3-Clause"
] | 1 | 2021-07-30T10:38:54.000Z | 2021-07-30T10:38:54.000Z | ''' 15-observation_fixed_direction
===============================================
AIM: Similar to 14-<...>.py, but for only one traget.
INPUT: files: - <orbit_id>_misc/orbits.dat
- <orbit_id>_flux/flux_*.dat
variables: see section PARAMETERS (below)
OUTPUT: in <orbit_id>_figures/ : (see below for file name defin... | 27.380697 | 117 | 0.675218 | 1,570 | 10,213 | 4.18535 | 0.227389 | 0.01811 | 0.023132 | 0.010653 | 0.231624 | 0.204687 | 0.113073 | 0.06757 | 0.042307 | 0.027697 | 0 | 0.020298 | 0.146186 | 10,213 | 372 | 118 | 27.454301 | 0.733257 | 0.224812 | 0 | 0.132275 | 0 | 0 | 0.04618 | 0.01795 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068783 | null | null | 0.05291 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8465626d2247b15a81fc86df366ab13b3a32e07 | 1,706 | py | Python | QueroInternetWeb/main/migrations/0008_auto_20190507_2146.py | quero-internet/quero-internet-web | 95f1763ecb587dcb6d09c0cd3c15c29f837ced90 | [
"MIT"
] | null | null | null | QueroInternetWeb/main/migrations/0008_auto_20190507_2146.py | quero-internet/quero-internet-web | 95f1763ecb587dcb6d09c0cd3c15c29f837ced90 | [
"MIT"
] | 2 | 2019-08-06T01:04:37.000Z | 2019-08-27T00:26:32.000Z | QueroInternetWeb/main/migrations/0008_auto_20190507_2146.py | quero-internet/quero-internet-web | 95f1763ecb587dcb6d09c0cd3c15c29f837ced90 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-05-08 01:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main', '0007_auto_201904... | 37.911111 | 140 | 0.616647 | 175 | 1,706 | 5.84 | 0.44 | 0.064579 | 0.041096 | 0.064579 | 0.328767 | 0.328767 | 0.252446 | 0.252446 | 0.252446 | 0.252446 | 0 | 0.034208 | 0.263189 | 1,706 | 44 | 141 | 38.772727 | 0.778839 | 0.026377 | 0 | 0.210526 | 1 | 0 | 0.151899 | 0.013864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.157895 | 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 |
d846ca90573fc0df20d1b67f785499c31a7ee515 | 409 | py | Python | instructionsWW.py | felixboehm/chatBot | 3c3cc9a9a283f9048b6f40dfcf1ac324ad2eecb8 | [
"Apache-2.0"
] | null | null | null | instructionsWW.py | felixboehm/chatBot | 3c3cc9a9a283f9048b6f40dfcf1ac324ad2eecb8 | [
"Apache-2.0"
] | null | null | null | instructionsWW.py | felixboehm/chatBot | 3c3cc9a9a283f9048b6f40dfcf1ac324ad2eecb8 | [
"Apache-2.0"
] | null | null | null | def showHelp(bot, message):
helpText = """** HowTo Play "Werwolf” **
Commands:
`join` trete dem Spiel bei
`join @player` lade dich und einen anderen Spieler ein
`go` starte das Spiel
`bite @player` Werwölfe töten ihr Opfer
`hang @player` Dorfbewohner hängen den Verdächtigen
`restart` sto... | 37.181818 | 59 | 0.687042 | 52 | 409 | 5.403846 | 0.807692 | 0.05694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212714 | 409 | 11 | 60 | 37.181818 | 0.872671 | 0 | 0 | 0 | 0 | 0 | 0.770732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d84e7b0326da78457b27f3f5b7fda50734903f66 | 775 | py | Python | Data-Structures/Stacks/stack.py | hussamEL-Hwary/DS-Algo-Handbook | 86a97d586a4ca8b17168c0a9f5a9f43f856eba58 | [
"MIT"
] | 18 | 2016-11-01T04:00:36.000Z | 2021-09-13T14:26:35.000Z | Data-Structures/Stacks/stack.py | JEERU/DS-Algo-Handbook | 86a97d586a4ca8b17168c0a9f5a9f43f856eba58 | [
"MIT"
] | 60 | 2016-10-11T14:50:47.000Z | 2016-10-31T11:05:01.000Z | Data-Structures/Stacks/stack.py | JEERU/DS-Algo-Handbook | 86a97d586a4ca8b17168c0a9f5a9f43f856eba58 | [
"MIT"
] | 87 | 2016-09-08T05:04:50.000Z | 2016-10-30T19:19:53.000Z | """Implementation of a stack in python."""
class Stack:
def __init__(self):
self.items = []
def push(self, item):
"""Add an item to the stack."""
self.items.append(item)
def pop(self):
"""Remove the most recent item from the stack."""
if len(self.items) > 0:
... | 24.21875 | 68 | 0.536774 | 102 | 775 | 4.039216 | 0.421569 | 0.174757 | 0.097087 | 0.082524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.335484 | 775 | 31 | 69 | 25 | 0.790291 | 0.289032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.611111 | 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 |
d85641b37bef389ead174fd99408f2c24628f116 | 4,458 | py | Python | base_site/mainapp/models.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 4 | 2020-01-21T00:21:44.000Z | 2021-06-15T19:38:36.000Z | base_site/mainapp/models.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 173 | 2019-11-18T08:19:44.000Z | 2021-09-08T01:37:19.000Z | base_site/mainapp/models.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 3 | 2020-01-28T19:19:35.000Z | 2021-05-01T02:33:36.000Z | from datetime import datetime
from django.db import models
class TypeEntry(models.Model):
name = models.CharField(max_length=70, verbose_name="Nome", default="", blank=False, null=False)
def __str__(self):
return self.name
class FamilyMember(models.Model):
name = models.CharField(max_length=70... | 44.138614 | 119 | 0.711306 | 579 | 4,458 | 5.274611 | 0.181347 | 0.104453 | 0.051081 | 0.066798 | 0.703667 | 0.666339 | 0.63556 | 0.586771 | 0.554682 | 0.554682 | 0 | 0.010898 | 0.156124 | 4,458 | 100 | 120 | 44.58 | 0.800904 | 0 | 0 | 0.338028 | 0 | 0 | 0.126738 | 0.015029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0 | 0.028169 | 0.070423 | 0.704225 | 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 |
d8587509c1aa42b6092003d2a561d39843b7a11a | 1,306 | bzl | Python | third_party/com_google_boringssl/workspace.bzl | stuarteberg/tensorstore | 2c22a3c9f798b0fbf023031633c58cc7c644235d | [
"Apache-2.0"
] | null | null | null | third_party/com_google_boringssl/workspace.bzl | stuarteberg/tensorstore | 2c22a3c9f798b0fbf023031633c58cc7c644235d | [
"Apache-2.0"
] | null | null | null | third_party/com_google_boringssl/workspace.bzl | stuarteberg/tensorstore | 2c22a3c9f798b0fbf023031633c58cc7c644235d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The TensorStore Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 39.575758 | 120 | 0.725881 | 162 | 1,306 | 5.746914 | 0.62963 | 0.064447 | 0.058002 | 0.034372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108716 | 0.183002 | 1,306 | 32 | 121 | 40.8125 | 0.763824 | 0.486983 | 0 | 0 | 0 | 0 | 0.571865 | 0.394495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | true | 0 | 0 | 0 | 0.0625 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.