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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e03ac9997a09708718480ab4efa473fd600462d | 342 | py | Python | setup.py | louismullie/read_dicom | 87fee439571dc9218f4492459e340953957e77cf | [
"MIT"
] | null | null | null | setup.py | louismullie/read_dicom | 87fee439571dc9218f4492459e340953957e77cf | [
"MIT"
] | null | null | null | setup.py | louismullie/read_dicom | 87fee439571dc9218f4492459e340953957e77cf | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='read_dicom',
version='0.1.1',
description='Read DICOM files in Python',
url='http://github.com/louismullie/read_dicom',
author='Read DICCOM files in Python',
author_email='louis.mullie@gmail.com',
license='MIT',
packages=['read_dicom'],... | 31.090909 | 53 | 0.657895 | 45 | 342 | 4.888889 | 0.688889 | 0.163636 | 0.118182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.201754 | 342 | 11 | 54 | 31.090909 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.41691 | 0.06414 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7e03e1bc11bbbb715481a99ffe5bcb69ac5999f6 | 1,989 | py | Python | translating_proxy.py | mcrute/ubiquiti_mongodb | 0e35d578f4da989520a88c4b46e6b2f414da591c | [
"BSD-3-Clause"
] | 2 | 2016-05-15T10:00:54.000Z | 2017-05-24T22:29:26.000Z | translating_proxy.py | mcrute/ubiquiti_mongodb | 0e35d578f4da989520a88c4b46e6b2f414da591c | [
"BSD-3-Clause"
] | null | null | null | translating_proxy.py | mcrute/ubiquiti_mongodb | 0e35d578f4da989520a88c4b46e6b2f414da591c | [
"BSD-3-Clause"
] | 3 | 2016-12-06T19:02:21.000Z | 2020-05-27T18:22:59.000Z | #!/usr/bin/env python
import struct
from bson import BSON
from StringIO import StringIO
DB_OFFSET = 16 + 4 # headers + flags
OP_REPLY = 1
OP_UPDATE = 2001
OP_INSERT = 2002
OP_QUERY = 2004
OP_GET_MORE = 2005
OP_DELETE = 2006
# Touchup DB
OP_TOUCHUP_DB = set((OP_UPDATE, OP_INSERT, OP_QUERY, OP_GET_MORE, OP_DELETE))
... | 24.256098 | 81 | 0.645048 | 283 | 1,989 | 4.310954 | 0.325088 | 0.051639 | 0.053279 | 0.044262 | 0.090164 | 0.090164 | 0.090164 | 0 | 0 | 0 | 0 | 0.023151 | 0.2182 | 1,989 | 81 | 82 | 24.555556 | 0.761415 | 0.083459 | 0 | 0.076923 | 0 | 0 | 0.036874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057692 | null | null | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fd72e9b5136a6d88fa205c0648ed04f91fef0b6b | 463 | py | Python | utils/fancy_print.py | Arpit8081/Phishtray_Edited_Version | 9f3342e6fd2620b7f01ad91ce5b36fa8ea111bc8 | [
"MIT"
] | 2 | 2020-03-31T12:38:10.000Z | 2022-01-21T22:21:06.000Z | utils/fancy_print.py | Arpit8081/Phishtray_Edited_Version | 9f3342e6fd2620b7f01ad91ce5b36fa8ea111bc8 | [
"MIT"
] | 252 | 2018-05-24T14:55:24.000Z | 2022-02-26T13:02:10.000Z | utils/fancy_print.py | Arpit8081/Phishtray_Edited_Version | 9f3342e6fd2620b7f01ad91ce5b36fa8ea111bc8 | [
"MIT"
] | 11 | 2018-06-23T14:54:42.000Z | 2021-02-19T11:33:44.000Z | class FancyPrint(object):
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
def echo(stuff_to_print, style):
bash_color = getattr(FancyPrint, style, None)
if no... | 25.722222 | 75 | 0.570194 | 57 | 463 | 4.473684 | 0.596491 | 0.082353 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110448 | 0.276458 | 463 | 18 | 75 | 25.722222 | 0.650746 | 0 | 0 | 0 | 0 | 0 | 0.144397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.733333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fd7764882321a56d03c20f07781ef860cea1c07f | 3,600 | py | Python | watchmen/pipeline/single/stage/unit/action/write_factor.py | luke0623/watchmen-matryoshka-doll | 77d7929c2d298ec814dd7e89132861da97a55a26 | [
"MIT"
] | null | null | null | watchmen/pipeline/single/stage/unit/action/write_factor.py | luke0623/watchmen-matryoshka-doll | 77d7929c2d298ec814dd7e89132861da97a55a26 | [
"MIT"
] | null | null | null | watchmen/pipeline/single/stage/unit/action/write_factor.py | luke0623/watchmen-matryoshka-doll | 77d7929c2d298ec814dd7e89132861da97a55a26 | [
"MIT"
] | null | null | null | import logging
import time
from watchmen.common.constants import pipeline_constants
from watchmen.monitor.model.pipeline_monitor import WriteFactorAction
from watchmen.pipeline.model.pipeline import UnitAction
from watchmen.pipeline.single.stage.unit.mongo.index import build_query_conditions, get_source_value_list, \
... | 49.315068 | 116 | 0.661111 | 400 | 3,600 | 5.5275 | 0.1925 | 0.043419 | 0.033921 | 0.035278 | 0.239258 | 0.229308 | 0.213478 | 0.145635 | 0.109453 | 0.109453 | 0 | 0 | 0.278611 | 3,600 | 72 | 117 | 50 | 0.851367 | 0.028611 | 0 | 0.142857 | 0 | 0 | 0.00229 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.071429 | false | 0 | 0.178571 | 0.017857 | 0.339286 | 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 |
fd7ff1c257f5a68713d706b1e787049d1434e1cf | 931 | py | Python | recipes/Python/521866_myspace_profile_parser/recipe-521866.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/521866_myspace_profile_parser/recipe-521866.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/521866_myspace_profile_parser/recipe-521866.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib, urllib2
from re import *
class Profile(object):
""" parse profile information from a myspace.com account """
def __init__(self, uid):
self.uid = uid
self.profile_url = 'http://profile.myspace.com/'
self.fake_browser = 'Opera/8.... | 25.162162 | 95 | 0.590763 | 116 | 931 | 4.612069 | 0.543103 | 0.039252 | 0.052336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013081 | 0.26101 | 931 | 36 | 96 | 25.861111 | 0.764535 | 0.040816 | 0 | 0 | 0 | 0 | 0.180505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd94355a7b33d38f5887cba4572e7e6f62f7d8b8 | 129 | py | Python | python__fundamentals/text_processing_exercise/04.caesar_cipher.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | 1 | 2020-07-14T12:32:47.000Z | 2020-07-14T12:32:47.000Z | python__fundamentals/text_processing_exercise/04.caesar_cipher.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | null | null | null | python__fundamentals/text_processing_exercise/04.caesar_cipher.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | null | null | null | text = input()
save = []
for letter in text:
o = ord(letter) + 3
ch = chr(o)
save.append(ch)
print("".join(save))
| 11.727273 | 23 | 0.542636 | 20 | 129 | 3.5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.271318 | 129 | 10 | 24 | 12.9 | 0.734043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fd9df60b7aac862b769cb04e98b6d007f00c48cc | 584 | py | Python | hazel/cli.py | shunfan/hazel | 19744799482aa435569bb9c139e0778d04f7a3f1 | [
"MIT"
] | null | null | null | hazel/cli.py | shunfan/hazel | 19744799482aa435569bb9c139e0778d04f7a3f1 | [
"MIT"
] | null | null | null | hazel/cli.py | shunfan/hazel | 19744799482aa435569bb9c139e0778d04f7a3f1 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Usage: hazel init...
hazel install <template>
hazel write <title>
hazel generate
hazel deploy
Options: -h, --help
"""
from docopt import docopt
from hazel.config import install, init
from hazel.build import new_post, generate
from hazel.deploy import rsync
args = docop... | 16.222222 | 42 | 0.59589 | 71 | 584 | 4.816901 | 0.394366 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002336 | 0.267123 | 584 | 35 | 43 | 16.685714 | 0.796729 | 0.267123 | 0 | 0 | 1 | 0 | 0.112172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdacfd0f78893f52f1851ba470e6f435b52484d2 | 2,682 | py | Python | range_dictionary/zone_view.py | Christian-B/my_spinnaker | b19f4025878bc4fbd6d81d78cec8c284929e148b | [
"MIT"
] | null | null | null | range_dictionary/zone_view.py | Christian-B/my_spinnaker | b19f4025878bc4fbd6d81d78cec8c284929e148b | [
"MIT"
] | null | null | null | range_dictionary/zone_view.py | Christian-B/my_spinnaker | b19f4025878bc4fbd6d81d78cec8c284929e148b | [
"MIT"
] | null | null | null | from abstract_view import AbstractView
class ZoneView(AbstractView):
__offset = None
__length = None
__range_dictionary = None
def __init__(self, range_dictionary, start, end):
self.__range_dictionary = range_dictionary
self.__offset = start
self.__length = end - start
... | 36.739726 | 78 | 0.592095 | 313 | 2,682 | 4.626198 | 0.159744 | 0.145028 | 0.157459 | 0.120856 | 0.483425 | 0.320442 | 0.222376 | 0.153315 | 0.119475 | 0.087017 | 0 | 0.001652 | 0.322893 | 2,682 | 72 | 79 | 37.25 | 0.795705 | 0 | 0 | 0.089286 | 0 | 0 | 0.068978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232143 | false | 0 | 0.017857 | 0.071429 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdc2453f7b8bc6269791684831b9ff37f4d4f04f | 1,302 | py | Python | tests/TestInventory.py | ocan-data/OpenCanadaData | 04690b310342dd35bbca4f92975a88ff9e52ddc9 | [
"MIT"
] | null | null | null | tests/TestInventory.py | ocan-data/OpenCanadaData | 04690b310342dd35bbca4f92975a88ff9e52ddc9 | [
"MIT"
] | 9 | 2019-04-30T00:57:33.000Z | 2019-06-05T17:19:57.000Z | tests/TestInventory.py | ocan-data/OpenCanadaData | 04690b310342dd35bbca4f92975a88ff9e52ddc9 | [
"MIT"
] | 1 | 2019-05-04T18:32:18.000Z | 2019-05-04T18:32:18.000Z | import unittest
from ocandata import Inventory
import pandas as pd
INVENTORY_URL = 'https://open.canada.ca/data/dataset/4ed351cf-95d8-4c10-97ac-6b3511f359b7/resource/d0df95a8-31a9-46c9-853b-6952819ec7b4/download/inventory.csv'
INVENTORY_CSV='../data/inventory.csv'
pd.set_option('display.max_columns', 100)
pd.set_opti... | 32.55 | 159 | 0.738095 | 151 | 1,302 | 6.13245 | 0.350993 | 0.194384 | 0.181425 | 0.133909 | 0.446004 | 0.362851 | 0.362851 | 0.362851 | 0.25486 | 0.25486 | 0 | 0.044037 | 0.162826 | 1,302 | 39 | 160 | 33.384615 | 0.805505 | 0 | 0 | 0.344828 | 0 | 0.034483 | 0.160522 | 0.016129 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.172414 | false | 0 | 0.103448 | 0 | 0.310345 | 0.068966 | 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 |
fdc2882a765d9a1aa2d2d0492910bcb20d82c13f | 5,524 | py | Python | wargame/views.py | radl97/wargame-web | 4062b05717bacb5c1a2c178f3a8bd07af7a18b10 | [
"MIT"
] | 2 | 2020-10-06T17:07:32.000Z | 2020-10-15T09:25:42.000Z | wargame/views.py | radl97/wargame-web | 4062b05717bacb5c1a2c178f3a8bd07af7a18b10 | [
"MIT"
] | 67 | 2018-06-22T09:12:44.000Z | 2022-03-11T23:34:39.000Z | wargame/views.py | radl97/wargame-web | 4062b05717bacb5c1a2c178f3a8bd07af7a18b10 | [
"MIT"
] | 2 | 2020-10-05T21:13:48.000Z | 2020-10-10T13:46:20.000Z | import itertools
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.db.models.expressions import F
from django.http import HttpResponseRedirect, HttpResponseBadRequest, HttpResponseForbidden
from django.url... | 31.033708 | 107 | 0.721941 | 636 | 5,524 | 6.138365 | 0.248428 | 0.033299 | 0.048668 | 0.063525 | 0.196465 | 0.076332 | 0.076332 | 0.032275 | 0.032275 | 0.032275 | 0 | 0.000663 | 0.18139 | 5,524 | 177 | 108 | 31.20904 | 0.862671 | 0.005793 | 0 | 0.116667 | 0 | 0 | 0.073042 | 0.02623 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191667 | false | 0 | 0.116667 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 1 |
fdc6ec3e2c5da7df33ca218922094db106c1203e | 284 | py | Python | oss_server/repertoire/api/v1.py | PssbleTrngle/oss-server | e1b426e8c6411cbaa61af9a6d0ad0d892d6922d9 | [
"MIT"
] | null | null | null | oss_server/repertoire/api/v1.py | PssbleTrngle/oss-server | e1b426e8c6411cbaa61af9a6d0ad0d892d6922d9 | [
"MIT"
] | null | null | null | oss_server/repertoire/api/v1.py | PssbleTrngle/oss-server | e1b426e8c6411cbaa61af9a6d0ad0d892d6922d9 | [
"MIT"
] | null | null | null | from .resources import *
from tastypie.api import Api
v1_api = Api(api_name="v1")
v1_api.register(TagResource())
v1_api.register(ArtistResource())
v1_api.register(AlbumResource())
v1_api.register(TrackResource())
v1_api.register(PlaylistResource())
v1_api.register(ApiKeyResource())
| 25.818182 | 35 | 0.799296 | 38 | 284 | 5.763158 | 0.368421 | 0.159817 | 0.356164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.06338 | 284 | 10 | 36 | 28.4 | 0.793233 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
fdcabf37f8a8c77a9f9d0cc0c488105f7a8e542b | 2,017 | py | Python | searchDir_v2.py | gabru-md/Search | f2f14a5dfbb8e7b881ad6afddf43aa15ae1f95a6 | [
"MIT"
] | 1 | 2017-04-16T17:18:32.000Z | 2017-04-16T17:18:32.000Z | searchDir_v2.py | gabru-md/Search | f2f14a5dfbb8e7b881ad6afddf43aa15ae1f95a6 | [
"MIT"
] | 2 | 2017-04-16T14:57:56.000Z | 2017-05-19T08:33:51.000Z | searchDir_v2.py | gabru-md/Search | f2f14a5dfbb8e7b881ad6afddf43aa15ae1f95a6 | [
"MIT"
] | null | null | null | # Author : Manish Devgan
# Github Name : gabru-md
# Github Link : https://github.com/gabru-md
# Date : 16 April 2017
# Updated : 16 April 2017 09:44 PM
import sys
import os
import platform
import subprocess
# This is a simple file browser
# List of Visited Folders
# List of Folders in the current folder / path
# Re... | 21.010417 | 64 | 0.693109 | 262 | 2,017 | 5.274809 | 0.389313 | 0.028944 | 0.015919 | 0.023155 | 0.027496 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.182945 | 2,017 | 95 | 65 | 21.231579 | 0.824029 | 0.259792 | 0 | 0.2 | 0 | 0 | 0.109301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072727 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdcbb47f15a25aebe10355d640fc730bf9d2705d | 5,600 | py | Python | pysnmp/AISYSCFGTEMP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/AISYSCFGTEMP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/AISYSCFGTEMP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module AISYSCFGTEMP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AISYSCFGTEMP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:01:01 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | 121.73913 | 707 | 0.779464 | 585 | 5,600 | 7.45812 | 0.242735 | 0.007793 | 0.011002 | 0.014669 | 0.422645 | 0.341967 | 0.313087 | 0.313087 | 0.308045 | 0.260601 | 0 | 0.068147 | 0.075 | 5,600 | 45 | 708 | 124.444444 | 0.774131 | 0.058214 | 0 | 0 | 0 | 0 | 0.179107 | 0.017474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fdd11090022e381984fab4abe42531fab3afbef2 | 1,511 | py | Python | days/01-03-datetimes/code/day3_alarm_version_without_timer_v2.py | Nutamy/100daysofcode-with-python-course | f85c73d87d1584f26bf3af241b9d78919bee2ad4 | [
"MIT"
] | null | null | null | days/01-03-datetimes/code/day3_alarm_version_without_timer_v2.py | Nutamy/100daysofcode-with-python-course | f85c73d87d1584f26bf3af241b9d78919bee2ad4 | [
"MIT"
] | null | null | null | days/01-03-datetimes/code/day3_alarm_version_without_timer_v2.py | Nutamy/100daysofcode-with-python-course | f85c73d87d1584f26bf3af241b9d78919bee2ad4 | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
from datetime import date
import time
# Вводим интервал через который сработает будильник
inputed_time = float(input("after how many minutes would you like to be reminded about the meeting, chef?"))
#Вычленяем из интервала минуты
minutes_input = int(inputed_time)
#В... | 33.577778 | 109 | 0.735936 | 203 | 1,511 | 5.325123 | 0.384236 | 0.122109 | 0.059204 | 0.035153 | 0.112858 | 0.112858 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.15685 | 1,511 | 44 | 110 | 34.340909 | 0.843014 | 0.148908 | 0 | 0.071429 | 0 | 0 | 0.293355 | 0.035656 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 0.464286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fdd59426c0ae11a976f20c1441a3c22dd835ab36 | 713 | py | Python | prototiype_code/door_controller.py | tec-csf/reto-iot-en-supermercado-2019-campus-santa-fridge | e49813774014aade8c2d976d72adf738da365929 | [
"MIT"
] | 1 | 2019-11-04T02:26:37.000Z | 2019-11-04T02:26:37.000Z | prototiype_code/door_controller.py | MartinAlegria/reto-iot-en-supermercado-2019-campus-santa-fridge | e49813774014aade8c2d976d72adf738da365929 | [
"MIT"
] | null | null | null | prototiype_code/door_controller.py | MartinAlegria/reto-iot-en-supermercado-2019-campus-santa-fridge | e49813774014aade8c2d976d72adf738da365929 | [
"MIT"
] | 2 | 2019-11-05T15:34:38.000Z | 2019-11-05T15:35:08.000Z | import RPi.GPIO as GPIO
import time
import subprocess
from datetime import datetime
import requests
from pprint import pprint
import sys
import signal
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
#pin.DOOR_SENSOR_PIN = 14
GPIO.setup(14, GPIO.IN,pull_up_down = GPIO.PUD_UP)
GPIO.setup(18, GPIO.OUT)
i = ... | 18.763158 | 82 | 0.653576 | 109 | 713 | 4.229358 | 0.522936 | 0.039046 | 0.052061 | 0.069414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033708 | 0.251052 | 713 | 37 | 83 | 19.27027 | 0.829588 | 0.182328 | 0 | 0.230769 | 0 | 0 | 0.024306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.346154 | 0 | 0.346154 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fdda369bca4610fa5fd6597280758973d37c65ee | 2,859 | py | Python | groupflow_scripts/parser.py | kvasukib/groupflow_simulator | 23cc1933e978c7408ac0815e1fb89b2233f7a500 | [
"Apache-2.0"
] | 1 | 2017-04-14T11:07:36.000Z | 2017-04-14T11:07:36.000Z | groupflow_scripts/parser.py | kvasukib/groupflow_simulator | 23cc1933e978c7408ac0815e1fb89b2233f7a500 | [
"Apache-2.0"
] | null | null | null | groupflow_scripts/parser.py | kvasukib/groupflow_simulator | 23cc1933e978c7408ac0815e1fb89b2233f7a500 | [
"Apache-2.0"
] | 1 | 2019-05-12T11:34:33.000Z | 2019-05-12T11:34:33.000Z | import sys
import os
import time
from time import sleep
import re
hashMap = []
class Message(object):
def __init__(self, msg, length, mtag, seqnum, sender, receivers = [], asender = 0):
self.msg = "src:" + asender + ":mtag:" + mtag + ":" + msg
self.length = length
self.mtag = mtag
self.sender = sender
self... | 25.078947 | 116 | 0.689052 | 417 | 2,859 | 4.690647 | 0.280576 | 0.035787 | 0.042945 | 0.042945 | 0.20501 | 0.179448 | 0.156442 | 0.156442 | 0.104294 | 0.104294 | 0 | 0.015455 | 0.162644 | 2,859 | 113 | 117 | 25.300885 | 0.801587 | 0 | 0 | 0.041667 | 0 | 0 | 0.151801 | 0.084645 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052083 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fde828e81c2e3d08b727d8dfa703438212346d87 | 961 | py | Python | HelperMac.py | Ragingart/HomeplugTopology | 765e1610c5c305746ee3ed4dce9cd4d5b535021d | [
"MIT"
] | 2 | 2020-12-29T05:53:57.000Z | 2021-11-28T09:56:37.000Z | HelperMac.py | Ragingart/HomeplugTopology | 765e1610c5c305746ee3ed4dce9cd4d5b535021d | [
"MIT"
] | null | null | null | HelperMac.py | Ragingart/HomeplugTopology | 765e1610c5c305746ee3ed4dce9cd4d5b535021d | [
"MIT"
] | null | null | null |
from uuid import getnode
import urllib.request as urllib2
import json
import codecs
dic = {}
url = "http://macvendors.co/api/"
def get():
return [int(hex(getnode())[i:i + 2], 16) for i in range(2, len(hex(getnode())), 2)]
def checkVendor(mac):
oui = rawMacToString(mac[0:3])
if oui not in dic:
# ... | 30.03125 | 99 | 0.622268 | 128 | 961 | 4.664063 | 0.484375 | 0.170854 | 0.090452 | 0.095477 | 0.073702 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.213319 | 961 | 31 | 100 | 31 | 0.765873 | 0.075963 | 0 | 0 | 0 | 0 | 0.097175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
fde83444350e29fd92c60d6c7515278db1a4693e | 33,314 | py | Python | handlers/handlers.py | Baltasarq/EseiForms | 27b2122e8e75816049b55a4b551297d4a27d7a97 | [
"MIT"
] | null | null | null | handlers/handlers.py | Baltasarq/EseiForms | 27b2122e8e75816049b55a4b551297d4a27d7a97 | [
"MIT"
] | null | null | null | handlers/handlers.py | Baltasarq/EseiForms | 27b2122e8e75816049b55a4b551297d4a27d7a97 | [
"MIT"
] | null | null | null | # (c) 2019 esei-soft Baltasar MIT License <baltasarq@gmail.com>
import time
import datetime
from flask import render_template, flash, redirect, request, Response
from flask_babel import _
import flask
from google.appengine.ext import ndb
from google.appengine.api import users
from main import app
from models.ndb_mo... | 37.600451 | 133 | 0.473194 | 2,943 | 33,314 | 5.204213 | 0.097859 | 0.020371 | 0.024419 | 0.025855 | 0.573257 | 0.526116 | 0.466832 | 0.438953 | 0.381954 | 0.355249 | 0 | 0.002555 | 0.424326 | 33,314 | 885 | 134 | 37.642938 | 0.796068 | 0.014829 | 0 | 0.537464 | 0 | 0 | 0.081516 | 0.001419 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01585 | null | null | 0.041787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fdeb484db3f3f2b6eb6c80449e5677b9236325f8 | 2,804 | py | Python | AttributeValidator/main.py | microsoft/cai-advanced-processing-service | 91fce8048fe275aa870083bed22d452d330ef535 | [
"MIT"
] | 9 | 2021-11-17T11:50:47.000Z | 2022-02-15T14:48:32.000Z | AttributeValidator/main.py | microsoft/cai-advanced-processing-service | 91fce8048fe275aa870083bed22d452d330ef535 | [
"MIT"
] | 7 | 2021-12-03T17:05:26.000Z | 2022-03-02T04:59:50.000Z | AttributeValidator/main.py | microsoft/cai-advanced-processing-service | 91fce8048fe275aa870083bed22d452d330ef535 | [
"MIT"
] | null | null | null | ''' VALIDATION API '''
import json
import logging
import azure.functions as func
# Import custom modules and helpers
from . import helper
from assets.constants import ATTRIBUTE_VALIDATOR, CONFIG, MANIFEST, MODULE, MODULES, REGION, VALUES, SETTINGS_LOOKUP,LOCALE
def main(req: func.HttpRequest) -> func.HttpRes... | 52.90566 | 211 | 0.674394 | 352 | 2,804 | 5.309659 | 0.355114 | 0.068486 | 0.082397 | 0.036918 | 0.142322 | 0.142322 | 0.142322 | 0.104869 | 0.052434 | 0 | 0 | 0.008435 | 0.238944 | 2,804 | 52 | 212 | 53.923077 | 0.867385 | 0.149073 | 0 | 0.052632 | 0 | 0.052632 | 0.303318 | 0.038346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.078947 | 0.131579 | 0 | 0.342105 | 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 |
fdf1ffe09eaa1c0fb26b2aeeed3973aeab90f8af | 624 | py | Python | src/contentratings/metadirectives.py | NextThought/nti.contentratings | d6c5cb082085c03edfdc87d27d4bdd22f336d68f | [
"ZPL-2.1"
] | null | null | null | src/contentratings/metadirectives.py | NextThought/nti.contentratings | d6c5cb082085c03edfdc87d27d4bdd22f336d68f | [
"ZPL-2.1"
] | null | null | null | src/contentratings/metadirectives.py | NextThought/nti.contentratings | d6c5cb082085c03edfdc87d27d4bdd22f336d68f | [
"ZPL-2.1"
] | null | null | null | import zope.configuration.fields
from contentratings.interfaces import _, IRatingCategoryInfo
class ICategoryDirective(IRatingCategoryInfo):
"""Describes a rating category"""
for_ = zope.configuration.fields.GlobalObject(
title=_("Specifications of the object to be rated"),
description=_("Thi... | 34.666667 | 80 | 0.700321 | 65 | 624 | 6.630769 | 0.646154 | 0.118329 | 0.160093 | 0.162413 | 0.185615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213141 | 624 | 17 | 81 | 36.705882 | 0.8778 | 0.043269 | 0 | 0 | 0 | 0 | 0.294416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
fdfd99be68e935de2d08e3d9a60dd75fca9208c4 | 2,373 | py | Python | third_party/rl_example/ch7/sarsa.py | jayhenry/rlpyt | c4b4a5fe302b99751dbc440fcb75cbe5d9cc52e4 | [
"MIT"
] | 2 | 2019-10-21T17:59:46.000Z | 2020-07-24T15:42:37.000Z | third_party/rl_example/ch7/sarsa.py | jayhenry/rlpyt | c4b4a5fe302b99751dbc440fcb75cbe5d9cc52e4 | [
"MIT"
] | null | null | null | third_party/rl_example/ch7/sarsa.py | jayhenry/rlpyt | c4b4a5fe302b99751dbc440fcb75cbe5d9cc52e4 | [
"MIT"
] | null | null | null | import numpy as np
from snake import SnakeEnv, ModelFreeAgent, TableAgent, eval_game
import gym
from policy_iter import PolicyIteration
from monte_carlo import MonteCarlo,timer
class SARSA(object):
def __init__(self, epsilon=0.0):
self.epsilon = epsilon
def sarsa_eval(self, agent, env):
#sars... | 30.423077 | 99 | 0.596292 | 313 | 2,373 | 4.316294 | 0.277955 | 0.051813 | 0.032568 | 0.047372 | 0.225759 | 0.200592 | 0.200592 | 0.140637 | 0.047372 | 0 | 0 | 0.023297 | 0.294564 | 2,373 | 78 | 100 | 30.423077 | 0.783751 | 0.007164 | 0 | 0.076923 | 0 | 0 | 0.044161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.092308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8bf81c0f937ced744348613ee282b2db31044191 | 1,870 | py | Python | python/test/test_gazetteer_api.py | OpenSextant/Xponents | 5291040ac6e78bcaee3f4edd0e3dd4fdcbaa761b | [
"Apache-2.0"
] | 48 | 2015-01-12T18:26:09.000Z | 2022-02-27T23:15:02.000Z | python/test/test_gazetteer_api.py | OpenSextant/Xponents | 5291040ac6e78bcaee3f4edd0e3dd4fdcbaa761b | [
"Apache-2.0"
] | 64 | 2015-02-27T17:05:25.000Z | 2022-02-07T19:10:27.000Z | python/test/test_gazetteer_api.py | OpenSextant/Xponents | 5291040ac6e78bcaee3f4edd0e3dd4fdcbaa761b | [
"Apache-2.0"
] | 4 | 2015-02-27T15:37:26.000Z | 2021-08-19T14:13:51.000Z | from opensextant import load_major_cities, load_countries, get_country, load_us_provinces, load_provinces
from unittest import TestCase
# These fundamental data sets are flat-file resources in the API,... they are all varations of
# "official" gazetteer data. Whereas the opensextant.gazetteer.DB class operates with th... | 36.666667 | 105 | 0.557219 | 221 | 1,870 | 4.624434 | 0.361991 | 0.054795 | 0.048924 | 0.07045 | 0.2182 | 0.161448 | 0.161448 | 0.136008 | 0.136008 | 0.136008 | 0 | 0.011021 | 0.272193 | 1,870 | 50 | 106 | 37.4 | 0.739897 | 0.148128 | 0 | 0.285714 | 0 | 0 | 0.262429 | 0.073002 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.02381 | false | 0 | 0.047619 | 0 | 0.095238 | 0.547619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8bfa1e9a4c3fb95784c93ee02cb822bff50b1423 | 1,900 | py | Python | accounts/models.py | Ascensiony/Software-Dev-Project | 85513737ae4a4b76fa0cfdab579b037d33b72faf | [
"MIT"
] | 2 | 2021-03-05T01:38:24.000Z | 2021-03-19T21:11:14.000Z | accounts/models.py | yabhi0807/Software-Dev-Project | 85513737ae4a4b76fa0cfdab579b037d33b72faf | [
"MIT"
] | 7 | 2021-04-08T21:12:42.000Z | 2022-03-12T00:13:59.000Z | accounts/models.py | venky012/ase-1-site | 877e36344c82567d3ebc7b0f29a2757da2a7f071 | [
"MIT"
] | 4 | 2020-02-17T09:47:39.000Z | 2020-02-22T12:11:18.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.validators import RegexValidator
from django.db import models
from django.contrib.auth.models import AbstractUser
import os
def update_filename(instance, filename):
upload_to = 'photos'
ext = filename.split('.')[-1]
if instanc... | 33.928571 | 78 | 0.672632 | 223 | 1,900 | 5.591928 | 0.457399 | 0.086608 | 0.072173 | 0.096231 | 0.149158 | 0.086608 | 0.086608 | 0 | 0 | 0 | 0 | 0.021405 | 0.213158 | 1,900 | 55 | 79 | 34.545455 | 0.812709 | 0.078947 | 0 | 0 | 0 | 0 | 0.065356 | 0.017351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.02381 | 0.119048 | 0.02381 | 0.642857 | 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 |
8bfbbf93ecb7a00791bbac8d9dbf42ec712dea0e | 438 | py | Python | Game/migrations/0020_games_image.py | mlodydorosly/Game-Info | 070a3874967fbab2fc5b4530644226642cdc5413 | [
"MIT"
] | null | null | null | Game/migrations/0020_games_image.py | mlodydorosly/Game-Info | 070a3874967fbab2fc5b4530644226642cdc5413 | [
"MIT"
] | null | null | null | Game/migrations/0020_games_image.py | mlodydorosly/Game-Info | 070a3874967fbab2fc5b4530644226642cdc5413 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-11-03 18:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Game', '0019_auto_20211103_0005'),
]
operations = [
migrations.AddField(
model_name='games',
name='image',
... | 21.9 | 73 | 0.593607 | 47 | 438 | 5.404255 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099042 | 0.285388 | 438 | 19 | 74 | 23.052632 | 0.71246 | 0.10274 | 0 | 0 | 1 | 0 | 0.122762 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 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 |
8bfc2047d467831065497d4dbc18639febf11c43 | 4,362 | py | Python | bunkai/base/annotation.py | t-yamamura/bunkai | 6a6da28329fbdde2a53176740d403ef96fab4f28 | [
"Apache-2.0"
] | null | null | null | bunkai/base/annotation.py | t-yamamura/bunkai | 6a6da28329fbdde2a53176740d403ef96fab4f28 | [
"Apache-2.0"
] | null | null | null | bunkai/base/annotation.py | t-yamamura/bunkai | 6a6da28329fbdde2a53176740d403ef96fab4f28 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import dataclasses
import itertools
from typing import Any, Dict, Iterator, List, Optional, Tuple
import spans
from dataclasses_json import DataClassJsonMixin
class TokenResult:
def __init__(self,
node_obj: Any,
tuple_pos: Tuple[str, ...],
... | 36.35 | 111 | 0.652682 | 528 | 4,362 | 5.162879 | 0.221591 | 0.032282 | 0.042186 | 0.055026 | 0.176082 | 0.096845 | 0.06383 | 0 | 0 | 0 | 0 | 0.005205 | 0.251261 | 4,362 | 119 | 112 | 36.655462 | 0.829455 | 0.01834 | 0 | 0.074468 | 0 | 0 | 0.043753 | 0.023631 | 0 | 0 | 0 | 0 | 0.031915 | 1 | 0.159574 | false | 0 | 0.053191 | 0.074468 | 0.521277 | 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 |
8bfd17607ceb364f74190bcd5fc06cf183321ed9 | 242 | py | Python | src/main.py | b1team/trada | 22ceaf4d50fe3a38ff402315c029e574773ca9e0 | [
"MIT"
] | null | null | null | src/main.py | b1team/trada | 22ceaf4d50fe3a38ff402315c029e574773ca9e0 | [
"MIT"
] | 1 | 2021-03-12T15:16:03.000Z | 2021-03-12T15:16:03.000Z | src/main.py | b1team/trada | 22ceaf4d50fe3a38ff402315c029e574773ca9e0 | [
"MIT"
] | null | null | null | import uvicorn
if __name__ == "__main__":
options = {
"host": "0.0.0.0",
"port": 9999,
"log_level": "info",
"reload": True,
"root_path": "/api"
}
uvicorn.run("src.api.app:app", **options)
| 18.615385 | 45 | 0.487603 | 28 | 242 | 3.857143 | 0.75 | 0.055556 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0.31405 | 242 | 12 | 46 | 20.166667 | 0.60241 | 0 | 0 | 0 | 0 | 0 | 0.289256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
e305a53ccf1ca0dac5a1e2c615d50c9ed830dbd4 | 2,104 | py | Python | test/test_utils.py | strixcuriosus/asset_store | 57d9429bb6e131b5a09ceceb3dfce92f9aac0386 | [
"MIT"
] | null | null | null | test/test_utils.py | strixcuriosus/asset_store | 57d9429bb6e131b5a09ceceb3dfce92f9aac0386 | [
"MIT"
] | null | null | null | test/test_utils.py | strixcuriosus/asset_store | 57d9429bb6e131b5a09ceceb3dfce92f9aac0386 | [
"MIT"
] | null | null | null | """Shared utilities for testing purposes."""
import unittest
from run import app, db
from asset_store.models import Asset
# TODO: dynamically build a list of invalid asset dicts, too
VALID_ASSET_DICTS = []
# construct a list of some valid and invalid assets
name_base = 'f-11235_'
# consider all asset types
for asse... | 36.912281 | 107 | 0.63308 | 270 | 2,104 | 4.762963 | 0.362963 | 0.076983 | 0.054432 | 0.027994 | 0.037325 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00983 | 0.274715 | 2,104 | 56 | 108 | 37.571429 | 0.832896 | 0.27519 | 0 | 0 | 0 | 0 | 0.087941 | 0.015323 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.028571 | false | 0.028571 | 0.085714 | 0 | 0.142857 | 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 |
e306b9b6a6fb6abf43518357e0d92fae00199164 | 447 | py | Python | setup.py | makhomed/htmldiff | 9703899a822607c10164dc35a09f93e9fcc890f6 | [
"MIT"
] | null | null | null | setup.py | makhomed/htmldiff | 9703899a822607c10164dc35a09f93e9fcc890f6 | [
"MIT"
] | null | null | null | setup.py | makhomed/htmldiff | 9703899a822607c10164dc35a09f93e9fcc890f6 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="htmldiff",
version="1.0.0.dev7",
author="Ian Bicking - https://github.com/ianb",
description="Tool for diffing html files",
url="https://github.com/makhomed/htmldiff",
license="MIT",
packages=find_packages("src"),
package_dir={"":... | 24.833333 | 51 | 0.61745 | 51 | 447 | 5.294118 | 0.745098 | 0.088889 | 0.103704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011527 | 0.223714 | 447 | 17 | 52 | 26.294118 | 0.766571 | 0 | 0 | 0 | 0 | 0 | 0.39821 | 0.055928 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 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 |
e308b7209c87fd7eb9bc7f4b7346f3ea21679e1a | 1,057 | py | Python | app/__init__.py | Mateo1248/jobfocus | afeb87b5b6024d2e6eef772f9ff7829342053b7b | [
"MIT"
] | null | null | null | app/__init__.py | Mateo1248/jobfocus | afeb87b5b6024d2e6eef772f9ff7829342053b7b | [
"MIT"
] | null | null | null | app/__init__.py | Mateo1248/jobfocus | afeb87b5b6024d2e6eef772f9ff7829342053b7b | [
"MIT"
] | null | null | null | from flask import Flask
from flask_login import LoginManager
from app.src.models import init_db
from app.src.utils.auth import init_auth
from app.src.utils.ml_utils import init_cache
from app.config import get_config
def create_app(config_name):
# init app
app = Flask(
__name__,
static_folde... | 27.102564 | 68 | 0.748344 | 149 | 1,057 | 5.067114 | 0.261745 | 0.083444 | 0.10596 | 0.139073 | 0.13245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1807 | 1,057 | 39 | 69 | 27.102564 | 0.871824 | 0.054872 | 0 | 0 | 0 | 0 | 0.019076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.392857 | 0 | 0.464286 | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e31bdddc89d14b4595b996f8ae19d4218ed129c3 | 9,909 | py | Python | learner/sandbox/opencv_video_loading_using_threaing.py | DCUSnSLab/Image-Labeling-Project | 3e44cb2ad2027e1590496b54c75507add52246e1 | [
"MIT"
] | 2 | 2018-01-23T03:42:11.000Z | 2018-01-25T11:24:28.000Z | learner/sandbox/opencv_video_loading_using_threaing.py | DCUSnSLab/Image-Labeling-Project | 3e44cb2ad2027e1590496b54c75507add52246e1 | [
"MIT"
] | 2 | 2018-01-21T04:38:14.000Z | 2018-01-27T08:22:16.000Z | learner/sandbox/opencv_video_loading_using_threaing.py | DCUSnSLab/Image-Labeling-Project | 3e44cb2ad2027e1590496b54c75507add52246e1 | [
"MIT"
] | null | null | null | """
파이선 openCV 스레드 사용 비디오 플레이 테스트
저자 : 안광은 (yooer10ms@cu.ac.kr)
버전 : python 3.5.4, opencv 3.4.0
Superpixel 코드가 내장되어 있어서 실험해볼 수 있음! CPU의 코어 개수에 맞춰 동적으로 활용
주의사항으로는... CPU 너무 열일하게됨;;;; (노트북이 헤어드라이기가 된줄 ;ㅂ;)
TODO:
뭐야!!!!!! 왜 한글이 터미널에서 출력이 안되는건데!?!?!?!?!?!?!?!!?!?
디버깅용 글자도 한글이 안되 ㅠㅠㅠㅠ putText가 ASCII만 지원한다니... 하아... | 36.7 | 233 | 0.612373 | 1,455 | 9,909 | 3.997938 | 0.417182 | 0.039711 | 0.023208 | 0.013409 | 0.228812 | 0.200103 | 0.189789 | 0.180849 | 0.175692 | 0.142685 | 0 | 0.020605 | 0.289838 | 9,909 | 270 | 234 | 36.7 | 0.806025 | 0.367141 | 0 | 0.102362 | 0 | 0 | 0.043985 | 0.013039 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.062992 | false | 0 | 0.031496 | 0 | 0.204724 | 0.023622 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e31e8778b46b776fd553596d542edb1cc323054d | 1,611 | py | Python | py/instalog/plugins/output_stdout.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 3 | 2022-01-06T16:52:52.000Z | 2022-03-07T11:30:47.000Z | py/instalog/plugins/output_stdout.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | null | null | null | py/instalog/plugins/output_stdout.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 1 | 2021-10-24T01:47:22.000Z | 2021-10-24T01:47:22.000Z | #!/usr/bin/env python3
#
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Output stdout plugin.
A sample output plugin that writes events to stdout.
"""
from cros.factory.instalog import plugin_base... | 27.775862 | 78 | 0.646803 | 213 | 1,611 | 4.760563 | 0.516432 | 0.035503 | 0.029586 | 0.045365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006683 | 0.256983 | 1,611 | 57 | 79 | 28.263158 | 0.840434 | 0.314711 | 0 | 0 | 0 | 0 | 0.12373 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.172414 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e31f095737ac3c335884275cffbafb5e7064ddff | 5,430 | py | Python | neural-style/art.py | DavidLi-Minxiao/mchacks-2017 | 0e660c6f3cd381600b1c36aafed5cd3ab1401f0e | [
"MIT"
] | 1 | 2017-04-18T08:42:46.000Z | 2017-04-18T08:42:46.000Z | neural-style/art.py | DavidLi-Minxiao/mchacks-2017 | 0e660c6f3cd381600b1c36aafed5cd3ab1401f0e | [
"MIT"
] | null | null | null | neural-style/art.py | DavidLi-Minxiao/mchacks-2017 | 0e660c6f3cd381600b1c36aafed5cd3ab1401f0e | [
"MIT"
] | null | null | null |
import tensorflow as tf
from vgg import vgg16, download_weights_maybe
import numpy as np
import sys
import cv2
from tf_util import tensor_size
ALPHA = 1e-5
BETA = 1e-2
TV_WEIGHT = 1e-2
LEARNING_RATE = 5.0
def feature_matrix(layer):
shape = tf.shape(layer)
matrix_shape = tf.stack([shape[0], shape[1] * sha... | 32.130178 | 159 | 0.667219 | 795 | 5,430 | 4.310692 | 0.201258 | 0.049606 | 0.024511 | 0.031514 | 0.34199 | 0.293551 | 0.280712 | 0.218267 | 0.182083 | 0.125474 | 0 | 0.026425 | 0.198527 | 5,430 | 168 | 160 | 32.321429 | 0.761029 | 0.026151 | 0 | 0.133333 | 0 | 0 | 0.046186 | 0.013818 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.019048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e320f705c7c0be20edf53c0a99cc43df1bd970bd | 450 | py | Python | tukiogram/migrations/0004_auto_20170316_1435.py | charitymbaka/samaritan-final | f0d4f0e3012c8fbc3a56a23647398c887eb92c7e | [
"MIT"
] | null | null | null | tukiogram/migrations/0004_auto_20170316_1435.py | charitymbaka/samaritan-final | f0d4f0e3012c8fbc3a56a23647398c887eb92c7e | [
"MIT"
] | 16 | 2020-06-05T21:10:25.000Z | 2022-03-11T23:49:34.000Z | tukiogram/migrations/0004_auto_20170316_1435.py | Denimmcdonald/reconadmin1 | 0270ecd39c82278724828f2cb34476336096da50 | [
"MIT"
] | 1 | 2019-06-10T06:22:34.000Z | 2019-06-10T06:22:34.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-16 11:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tukiogram', '0003_auto_20170312_2021'),
]
operations = [
migrations.AlterFi... | 21.428571 | 50 | 0.615556 | 50 | 450 | 5.34 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 0.266667 | 450 | 20 | 51 | 22.5 | 0.70303 | 0.151111 | 0 | 0 | 1 | 0 | 0.108179 | 0.060686 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3333c65b8e73000fdbe46dfd166f485972b0d33 | 1,155 | py | Python | Mundo1/Frase.py | David-M-Dias/Exercicios-do-curso-de-Python | 14f818243f231738e9d47d452f778fb3bace93c0 | [
"MIT"
] | 1 | 2021-01-20T13:32:58.000Z | 2021-01-20T13:32:58.000Z | Mundo1/Frase.py | David-M-Dias/Exercicios-do-curso-de-Python | 14f818243f231738e9d47d452f778fb3bace93c0 | [
"MIT"
] | null | null | null | Mundo1/Frase.py | David-M-Dias/Exercicios-do-curso-de-Python | 14f818243f231738e9d47d452f778fb3bace93c0 | [
"MIT"
] | null | null | null | frase = "Curso em Video Python"
print(len(frase))# para contar a quatidade de caracteres em frase.
print(frase[3:12])#para separar letras de frase apartir da casa 3 (lembrando que começa de 0 então a posicao e 4) ate a numero 12 sendo que a 12 será excluída.
print(frase[3::2])#Inicia o print da 3 casa da frase até a ... | 42.777778 | 159 | 0.751515 | 199 | 1,155 | 4.361809 | 0.457286 | 0.080645 | 0.044931 | 0.034562 | 0.046083 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022704 | 0.161039 | 1,155 | 26 | 160 | 44.423077 | 0.873065 | 0.702165 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.857143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e334e07fff69e69bdb42b0d93ee306ff91b119b1 | 1,292 | py | Python | bluebottle/collect/migrations/0013_auto_20211108_1113.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/collect/migrations/0013_auto_20211108_1113.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/collect/migrations/0013_auto_20211108_1113.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # Generated by Django 2.2.24 on 2021-11-08 10:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('collect', '0012_auto_20211103_1420'),
]
operations = [
migrations.AlterField(
model_name='collecttype',
name='disab... | 38 | 196 | 0.629257 | 140 | 1,292 | 5.678571 | 0.457143 | 0.100629 | 0.125786 | 0.145912 | 0.539623 | 0.433962 | 0.324528 | 0.176101 | 0.080503 | 0 | 0 | 0.042355 | 0.250774 | 1,292 | 33 | 197 | 39.151515 | 0.778926 | 0.035604 | 0 | 0.407407 | 1 | 0.074074 | 0.327974 | 0.071543 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 |
e33a3fbe65df12efe9e8f4c53f93eb32783bfd19 | 2,716 | py | Python | project/assets/main/locale/localizables-scancodes.py | Amavect/turbofat | e821ba1a2c7b5f11593155b31cb84ca81e6b0117 | [
"MIT"
] | null | null | null | project/assets/main/locale/localizables-scancodes.py | Amavect/turbofat | e821ba1a2c7b5f11593155b31cb84ca81e6b0117 | [
"MIT"
] | null | null | null | project/assets/main/locale/localizables-scancodes.py | Amavect/turbofat | e821ba1a2c7b5f11593155b31cb84ca81e6b0117 | [
"MIT"
] | null | null | null | # Localizable strings extracted by LocalizationDemo.tscn
tr("Space")
tr("Exclam")
tr("QuoteDbl")
tr("NumberSign")
tr("Dollar")
tr("Percent")
tr("Ampersand")
tr("Apostrophe")
tr("ParenLeft")
tr("ParenRight")
tr("Asterisk")
tr("Plus")
tr("Comma")
tr("Minus")
tr("Period")
tr("Slash")
tr("Colon")
tr("Semicolon")
tr("Less")... | 14.219895 | 56 | 0.646539 | 391 | 2,716 | 4.491049 | 0.498721 | 0.005125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013126 | 0.074374 | 2,716 | 190 | 57 | 14.294737 | 0.685362 | 0.019882 | 0 | 0 | 0 | 0 | 0.502256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e33cb76e2f88169347d9f079a5854bc6c48f7a1e | 1,225 | py | Python | python/search_range.py | shub0/leetcode | 8221d10f201d001abcb15b27c9cf4b8cd5060f1f | [
"BSD-3-Clause"
] | null | null | null | python/search_range.py | shub0/leetcode | 8221d10f201d001abcb15b27c9cf4b8cd5060f1f | [
"BSD-3-Clause"
] | null | null | null | python/search_range.py | shub0/leetcode | 8221d10f201d001abcb15b27c9cf4b8cd5060f1f | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/python
'''
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target is not found in the array, return [-1, -1].
For example,
Given [5, 7, 7, 8, 8, 10] and target value 8,
return [3, 4... | 29.878049 | 96 | 0.570612 | 170 | 1,225 | 4.064706 | 0.423529 | 0.011577 | 0.037627 | 0.078148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047962 | 0.319184 | 1,225 | 40 | 97 | 30.625 | 0.780576 | 0.107755 | 0 | 0 | 0 | 0 | 0.010217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e34983945a96cf371d93e704b0cdc98fa5bcf833 | 467 | py | Python | formataTexto/formataTexto.py | DanilooSilva/Formats-text | 5050bd42522ecb0d819bd0946d85349cfd455572 | [
"MIT"
] | null | null | null | formataTexto/formataTexto.py | DanilooSilva/Formats-text | 5050bd42522ecb0d819bd0946d85349cfd455572 | [
"MIT"
] | null | null | null | formataTexto/formataTexto.py | DanilooSilva/Formats-text | 5050bd42522ecb0d819bd0946d85349cfd455572 | [
"MIT"
] | null | null | null | class FormataTexto(object):
def __init__(self, texto, formatacao='Titulo'):
self.__texto = texto
self.__formatacao = formatacao
def __str__(self):
return self.__getFormatar()
def __getFormatar(self):
if self.__formatacao == 'Titulo':
return self.__texto.... | 25.944444 | 51 | 0.593148 | 45 | 467 | 5.577778 | 0.4 | 0.179283 | 0.179283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301927 | 467 | 17 | 52 | 27.470588 | 0.769939 | 0 | 0 | 0 | 0 | 0 | 0.036559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.076923 | 0.615385 | 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 |
e3570685efdb7ec0cdf137284e814ca31e5a9acc | 2,592 | py | Python | lib/login_qiandao.py | jifengyeying/ykt | a46dbc679066d619bff1882703055e197af91bfc | [
"Unlicense"
] | null | null | null | lib/login_qiandao.py | jifengyeying/ykt | a46dbc679066d619bff1882703055e197af91bfc | [
"Unlicense"
] | null | null | null | lib/login_qiandao.py | jifengyeying/ykt | a46dbc679066d619bff1882703055e197af91bfc | [
"Unlicense"
] | null | null | null | import requests
from . import pwd
def cookie_str_to_dict(cookie_str):
cookie_dict= {}
list_ = cookie_str.split(';') if cookie_str.find('; ') == -1 else cookie_str.split('; ')
for i in list_:
cookie_dict.update({i.split('=')[0]:i.split('=')[1]})
return cookie_dict
def cookie_dict_t... | 56.347826 | 539 | 0.678627 | 355 | 2,592 | 4.760563 | 0.383099 | 0.053254 | 0.019527 | 0.026627 | 0.147929 | 0.023669 | 0 | 0 | 0 | 0 | 0 | 0.069672 | 0.152778 | 2,592 | 45 | 540 | 57.6 | 0.699909 | 0 | 0 | 0 | 0 | 0.105263 | 0.434629 | 0.251669 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0.105263 | 0.052632 | 0 | 0.289474 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3596fa9b0ab7a5593283d92f6477444b61608e4 | 1,645 | py | Python | core/migrations/0005_foodnutrition.py | MakuZo/nutrigo | e50e10d497bcf9e01294565d42012d777f5c98d0 | [
"MIT"
] | 30 | 2019-03-28T18:01:58.000Z | 2022-02-26T02:19:28.000Z | core/migrations/0005_foodnutrition.py | MakuZo/nutrigo | e50e10d497bcf9e01294565d42012d777f5c98d0 | [
"MIT"
] | 8 | 2019-06-06T19:33:08.000Z | 2022-02-10T13:10:34.000Z | core/migrations/0005_foodnutrition.py | MakuZo/nutrigo | e50e10d497bcf9e01294565d42012d777f5c98d0 | [
"MIT"
] | 10 | 2019-04-04T19:19:28.000Z | 2021-06-05T05:29:40.000Z | # Generated by Django 2.1.5 on 2019-02-09 20:55
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("core", "0004_auto_20190209_2011")]
operations = [
migrations.CreateModel(
name="FoodNutrition",
... | 32.254902 | 84 | 0.418237 | 128 | 1,645 | 5.226563 | 0.515625 | 0.035874 | 0.06278 | 0.076233 | 0.22571 | 0.22571 | 0.188341 | 0.188341 | 0.188341 | 0.188341 | 0 | 0.052817 | 0.482067 | 1,645 | 50 | 85 | 32.9 | 0.732394 | 0.027356 | 0 | 0.272727 | 1 | 0 | 0.063204 | 0.014393 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.113636 | 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 |
e35c31fe7e2cefba35b49dbf05b992b248439555 | 1,033 | py | Python | transfer_learning/data_handling.py | E-Fumi/VariationalAutoEncoder | 551c257d6c7b1c2ad2a218c78f7e228ffbd1e0ca | [
"MIT"
] | 1 | 2021-12-02T22:28:28.000Z | 2021-12-02T22:28:28.000Z | transfer_learning/data_handling.py | E-Fumi/TheAccidentalCastleDreamer | 551c257d6c7b1c2ad2a218c78f7e228ffbd1e0ca | [
"MIT"
] | null | null | null | transfer_learning/data_handling.py | E-Fumi/TheAccidentalCastleDreamer | 551c257d6c7b1c2ad2a218c78f7e228ffbd1e0ca | [
"MIT"
] | 1 | 2021-11-07T13:50:10.000Z | 2021-11-07T13:50:10.000Z | import hyperparameters as hp
import tensorflow as tf
from tensorflow.keras.preprocessing.image import ImageDataGenerator
data_augmenter = ImageDataGenerator(
rescale=1.0/255,
horizontal_flip=True,
rotation_range=25,
brightness_range=[0.8, 1.2],
zoom_range=0.2,
shear_range=0.1
)
... | 27.184211 | 72 | 0.659245 | 130 | 1,033 | 5.023077 | 0.492308 | 0.027565 | 0.070444 | 0.070444 | 0.104135 | 0.104135 | 0.104135 | 0 | 0 | 0 | 0 | 0.045226 | 0.229429 | 1,033 | 38 | 72 | 27.184211 | 0.775126 | 0 | 0 | 0.068966 | 0 | 0 | 0.074223 | 0.028084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.068966 | 0.103448 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e35c6590b73cb858a355a7cefeb7e8c28eaf35bf | 269 | py | Python | app/__version__.py | Napchat/microblog | cc2e9d16b0b8e5494e23d4e5a86a2a22b9a2e4c9 | [
"MIT"
] | null | null | null | app/__version__.py | Napchat/microblog | cc2e9d16b0b8e5494e23d4e5a86a2a22b9a2e4c9 | [
"MIT"
] | null | null | null | app/__version__.py | Napchat/microblog | cc2e9d16b0b8e5494e23d4e5a86a2a22b9a2e4c9 | [
"MIT"
] | null | null | null | __title__ = 'app'
__description__ = 'A Flask based microblog.'
__url__ = 'https://github.com/Napchat/microblog'
__version__ = '1.0'
__author__ = 'Shang Nan'
__author_email__ = 'shangnan543@163.com'
__license__ = 'MIT License'
__copyright__ = 'Copyright 2017 Shang Nan'
| 29.888889 | 48 | 0.754647 | 32 | 269 | 5.3125 | 0.78125 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.118959 | 269 | 8 | 49 | 33.625 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.479554 | 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 |
e35f10f1acf338a554303c7fb8acf0bddec75993 | 291 | py | Python | pydocx/openxml/wordprocessing/picture.py | botzill/pydocx | 98c6aa626d875278240eabea8f86a914840499b3 | [
"Apache-2.0"
] | 127 | 2015-01-12T22:35:34.000Z | 2022-01-20T06:24:18.000Z | pydocx/openxml/wordprocessing/picture.py | turbo-q/pydocx | 98c6aa626d875278240eabea8f86a914840499b3 | [
"Apache-2.0"
] | 156 | 2015-01-05T19:55:56.000Z | 2020-10-14T07:01:42.000Z | pydocx/openxml/wordprocessing/picture.py | turbo-q/pydocx | 98c6aa626d875278240eabea8f86a914840499b3 | [
"Apache-2.0"
] | 45 | 2015-02-22T18:52:08.000Z | 2021-06-14T08:05:47.000Z | # coding: utf-8
from __future__ import (
absolute_import,
print_function,
unicode_literals,
)
from pydocx.models import XmlModel, XmlCollection
from pydocx.openxml.vml import Shape, Rect
class Picture(XmlModel):
XML_TAG = 'pict'
children = XmlCollection(Shape, Rect)
| 18.1875 | 49 | 0.735395 | 35 | 291 | 5.885714 | 0.714286 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.185567 | 291 | 15 | 50 | 19.4 | 0.864979 | 0.044674 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.7 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e35ff3f716a4a3b3bb568d6156fbb761e3246342 | 119 | py | Python | abc/131/a.py | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | 3 | 2019-06-25T06:17:38.000Z | 2019-07-13T15:18:51.000Z | abc/131/a.py | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | abc/131/a.py | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | # 入力
S = input()
ans = (
'Bad' if S[0] == S[1] or S[1] == S[2] or S[2] == S[3] else
'Good'
)
# 出力
print(ans)
| 10.818182 | 62 | 0.420168 | 25 | 119 | 2 | 0.6 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.310924 | 119 | 10 | 63 | 11.9 | 0.536585 | 0.042017 | 0 | 0 | 0 | 0 | 0.063063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
e37026a708de9068cff1a20f2d85a2dc9e6a17ec | 2,678 | py | Python | ho600_lib/urls.py | hoamon/www-hoamon-info | 4260057d8c63abb3b5f52f6cce3d236c312a5834 | [
"BSD-3-Clause"
] | null | null | null | ho600_lib/urls.py | hoamon/www-hoamon-info | 4260057d8c63abb3b5f52f6cce3d236c312a5834 | [
"BSD-3-Clause"
] | null | null | null | ho600_lib/urls.py | hoamon/www-hoamon-info | 4260057d8c63abb3b5f52f6cce3d236c312a5834 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
#Copyright (c) 2013, ho600.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:
#
# Redistributions of source code must retain the above copyright notice,
# this list of condi... | 43.193548 | 91 | 0.741225 | 377 | 2,678 | 5.236074 | 0.485411 | 0.040527 | 0.017224 | 0.023303 | 0.126646 | 0.068896 | 0.068896 | 0.068896 | 0.068896 | 0.068896 | 0 | 0.010097 | 0.149365 | 2,678 | 62 | 92 | 43.193548 | 0.856453 | 0.601942 | 0 | 0 | 0 | 0 | 0.286267 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e377dbb1eb33a854beb4aa7710e21328b8c209ae | 4,377 | py | Python | software/pynguin/pynguin/utils/statistics/timers.py | se2p/artifact-pynguin-ssbse2020 | 32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6 | [
"CC-BY-4.0"
] | 3 | 2020-08-20T10:27:13.000Z | 2021-11-02T20:28:16.000Z | software/pynguin/pynguin/utils/statistics/timers.py | se2p/artifact-pynguin-ssbse2020 | 32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6 | [
"CC-BY-4.0"
] | null | null | null | software/pynguin/pynguin/utils/statistics/timers.py | se2p/artifact-pynguin-ssbse2020 | 32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6 | [
"CC-BY-4.0"
] | null | null | null | # This file is part of Pynguin.
#
# Pynguin is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Pynguin is distributed in the ho... | 33.930233 | 85 | 0.631711 | 588 | 4,377 | 4.654762 | 0.29932 | 0.031056 | 0.039459 | 0.052612 | 0.325904 | 0.31202 | 0.2711 | 0.20095 | 0.20095 | 0.143223 | 0 | 0.002186 | 0.268449 | 4,377 | 128 | 86 | 34.195313 | 0.852592 | 0.471784 | 0 | 0.097561 | 0 | 0 | 0.046748 | 0.01372 | 0 | 0 | 0 | 0 | 0 | 1 | 0.292683 | false | 0 | 0.097561 | 0 | 0.609756 | 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 |
e37e824db6a55b5de39d4b97b7f5327d0f8b7287 | 10,659 | py | Python | hard-gists/6581415/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/6581415/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/6581415/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | #!/usr/bin/env python
import datetime
import json
import gtk
import gobject
# TODO: fix gi.repository.WebKit to have a working webview.get_dom_document
import webkit
# This is a module providing direct python bindings into JavaScriptCore.
# http://packages.linuxdeepin.com/deepin/pool/main/p/python-javascriptcore/pyt... | 37.932384 | 121 | 0.665353 | 1,244 | 10,659 | 5.518489 | 0.264469 | 0.020102 | 0.03059 | 0.046905 | 0.237873 | 0.152367 | 0.08201 | 0.063219 | 0.040495 | 0.040495 | 0 | 0.004939 | 0.221128 | 10,659 | 281 | 122 | 37.932384 | 0.821971 | 0.163242 | 0 | 0.064516 | 0 | 0 | 0.168926 | 0.057469 | 0 | 0 | 0 | 0.003559 | 0 | 0 | null | null | 0.012903 | 0.051613 | null | null | 0.103226 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e384ada459cdc63384109e4dcb57ca8a86152505 | 692 | py | Python | project/creditor/templatetags/aggregation_utils.py | markus456/asylum | 45e77fc346b7e7c8514a8641412c7b4f014b76c5 | [
"MIT"
] | 1 | 2017-04-08T21:31:37.000Z | 2017-04-08T21:31:37.000Z | project/creditor/templatetags/aggregation_utils.py | markus456/asylum | 45e77fc346b7e7c8514a8641412c7b4f014b76c5 | [
"MIT"
] | 9 | 2016-01-23T22:40:26.000Z | 2021-09-13T17:44:11.000Z | project/creditor/templatetags/aggregation_utils.py | markus456/asylum | 45e77fc346b7e7c8514a8641412c7b4f014b76c5 | [
"MIT"
] | 1 | 2017-04-08T22:13:42.000Z | 2017-04-08T22:13:42.000Z | from django import template
from django.contrib.humanize.templatetags.humanize import intcomma
register = template.Library()
@register.filter(name='month_sum_value')
def month_sum_value(month_array, month):
for d in month_array:
if str(month) == d['month']:
return d['sum']
return None
@regist... | 25.62963 | 66 | 0.671965 | 93 | 692 | 4.903226 | 0.419355 | 0.092105 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001821 | 0.206647 | 692 | 26 | 67 | 26.615385 | 0.826958 | 0.046243 | 0 | 0.095238 | 0 | 0 | 0.075988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8b53d317497fc04876bcc7baa4823fb3c90dcb64 | 2,178 | py | Python | gsa_module/samples/lhs_opt.py | damar-wicaksono/gsa-module | e2f62d7b3d53ce4afd2a66d2746f607366816488 | [
"MIT"
] | 4 | 2019-01-19T12:50:55.000Z | 2021-12-06T10:03:09.000Z | gsa_module/samples/lhs_opt.py | damar-wicaksono/gsa-module | e2f62d7b3d53ce4afd2a66d2746f607366816488 | [
"MIT"
] | 1 | 2020-10-07T10:41:16.000Z | 2020-10-07T10:41:16.000Z | gsa_module/samples/lhs_opt.py | damar-wicaksono/gsa-module | e2f62d7b3d53ce4afd2a66d2746f607366816488 | [
"MIT"
] | 1 | 2020-02-14T21:41:19.000Z | 2020-02-14T21:41:19.000Z | # -*- coding: utf-8 -*-
"""lhs_opt.py: Module to generate design matrix from an optimized
Latin Hypercube design
"""
import numpy as np
from . import lhs
__author__ = "Damar Wicaksono"
def create_ese(n: int, d: int, seed: int, max_outer: int,
obj_function: str="w2_discrepancy",
threshol... | 38.892857 | 79 | 0.683196 | 303 | 2,178 | 4.80198 | 0.389439 | 0.049485 | 0.02268 | 0.028866 | 0.082474 | 0.082474 | 0.042612 | 0 | 0 | 0 | 0 | 0.013423 | 0.247475 | 2,178 | 55 | 80 | 39.6 | 0.874314 | 0.562902 | 0 | 0 | 1 | 0 | 0.087963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b542562d580ae180cad6b7ff1252acbbc329e48 | 787 | py | Python | Sorting/Sorting_Practices/GroupNumbers.py | yabur/LeetCode_Practice | d002dedf8f6694b9d313c8facf0d39e688decb15 | [
"MIT"
] | null | null | null | Sorting/Sorting_Practices/GroupNumbers.py | yabur/LeetCode_Practice | d002dedf8f6694b9d313c8facf0d39e688decb15 | [
"MIT"
] | null | null | null | Sorting/Sorting_Practices/GroupNumbers.py | yabur/LeetCode_Practice | d002dedf8f6694b9d313c8facf0d39e688decb15 | [
"MIT"
] | null | null | null | # Group the Numbers
# Partitioning : quicksort !!
# Time - O(n), Space- O(1)
# Lomuto's partitioning O(n) time, in-place
def solve(arr):
even = -1 # index from the beginning (r -- red == even)
i = 0 # current pointer
while i < len(arr): # O(n)
if arr[i] % 2 == 0:
even += 1
... | 26.233333 | 93 | 0.545108 | 118 | 787 | 3.483051 | 0.347458 | 0.238443 | 0.10219 | 0.10219 | 0.092457 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049632 | 0.308767 | 787 | 30 | 94 | 26.233333 | 0.705882 | 0.224905 | 0 | 0.2 | 0 | 0 | 0.013267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 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 |
8b5783df1b3246fd28082585a98484441db22da4 | 2,225 | py | Python | tests/test_robot.py | sourcebots/robot-api | f6438a94779989789de7bf6b0e7edb50f196010e | [
"MIT"
] | 4 | 2018-01-12T20:42:06.000Z | 2018-01-26T20:32:34.000Z | tests/test_robot.py | sourcebots/robot-api | f6438a94779989789de7bf6b0e7edb50f196010e | [
"MIT"
] | 45 | 2017-07-22T13:44:53.000Z | 2019-04-30T17:28:09.000Z | tests/test_robot.py | sourcebots/robot-api | f6438a94779989789de7bf6b0e7edb50f196010e | [
"MIT"
] | 1 | 2017-07-22T13:34:51.000Z | 2017-07-22T13:34:51.000Z | import time
import unittest
from unittest import mock
from robot import game_specific
from robot.board import Board
from robot.robot import Robot
from tests.mock_robotd import MockRobotDFactoryMixin
class RobotTest(MockRobotDFactoryMixin, unittest.TestCase):
def mock_kill_after_delay(self):
return mock.p... | 32.246377 | 71 | 0.690337 | 288 | 2,225 | 4.9375 | 0.229167 | 0.088608 | 0.137834 | 0.164557 | 0.648383 | 0.548523 | 0.548523 | 0.548523 | 0.548523 | 0.548523 | 0 | 0.001184 | 0.240899 | 2,225 | 68 | 72 | 32.720588 | 0.840734 | 0.051685 | 0 | 0.44898 | 0 | 0 | 0.020408 | 0.013289 | 0 | 0 | 0 | 0 | 0.081633 | 1 | 0.142857 | false | 0 | 0.142857 | 0.020408 | 0.326531 | 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 |
8b6e0f71b94c585359e47bc75ef66a46408b7c94 | 719 | py | Python | pac_test.py | jotaro-sama/PacEnv | 30cf5523e53ddce3e41990e51f2aa3864c8a3fab | [
"MIT"
] | 1 | 2018-12-29T21:00:12.000Z | 2018-12-29T21:00:12.000Z | pac_test.py | jotaro-sama/PacEnv | 30cf5523e53ddce3e41990e51f2aa3864c8a3fab | [
"MIT"
] | null | null | null | pac_test.py | jotaro-sama/PacEnv | 30cf5523e53ddce3e41990e51f2aa3864c8a3fab | [
"MIT"
] | null | null | null | import pac_env
def printMatrix(mat):
for row in mat:
for elem in row:
print(str(elem), end=" ")
print("")
env = pac_env.PacEnv()
(screen, score, power) = env.reset()
done = False
info = ""
print("Score: " + str(score))
printMatrix(screen)
for i in range(100):
action = env.act... | 25.678571 | 95 | 0.550765 | 88 | 719 | 4.431818 | 0.420455 | 0.076923 | 0.1 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005837 | 0.285118 | 719 | 27 | 96 | 26.62963 | 0.752918 | 0 | 0 | 0.090909 | 0 | 0 | 0.125348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8b721041b1ce15118dfda359f29f6e1c49a0f61b | 1,657 | py | Python | py/hiperspectral_filter.py | MarconiS/hiPyRneon | e52245e3a71716fe09d8cb3833a4458210dff8cf | [
"MIT"
] | 1 | 2021-02-11T18:22:36.000Z | 2021-02-11T18:22:36.000Z | py/hiperspectral_filter.py | MarconiS/hiPyRneon | e52245e3a71716fe09d8cb3833a4458210dff8cf | [
"MIT"
] | null | null | null | py/hiperspectral_filter.py | MarconiS/hiPyRneon | e52245e3a71716fe09d8cb3833a4458210dff8cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 29 17:27:39 2020
@author: sergiomarconi
"""
import h5py
#hdf5_file = h5py.File(refl_filename, 'r')
from pathlib import Path
import numpy as np
import h5py
import gdal, osr
import matplotlib.pyplot as plt
import sys
import ogr, os
import math
impor... | 31.264151 | 161 | 0.745926 | 255 | 1,657 | 4.729412 | 0.513725 | 0.029022 | 0.058043 | 0.049751 | 0.230514 | 0.187396 | 0.119403 | 0.119403 | 0.119403 | 0 | 0 | 0.057912 | 0.103802 | 1,657 | 52 | 162 | 31.865385 | 0.754209 | 0.255281 | 0 | 0.117647 | 0 | 0.029412 | 0.345902 | 0.318033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8b72521d7124f2a16972c9156691d5a2974a8738 | 411 | py | Python | Brilliant/Inverting hash functions/quiz4.py | TecKnow/learning | 71d1ddf9d580027ecc62a067581da378a9e85f6d | [
"BSD-3-Clause"
] | null | null | null | Brilliant/Inverting hash functions/quiz4.py | TecKnow/learning | 71d1ddf9d580027ecc62a067581da378a9e85f6d | [
"BSD-3-Clause"
] | null | null | null | Brilliant/Inverting hash functions/quiz4.py | TecKnow/learning | 71d1ddf9d580027ecc62a067581da378a9e85f6d | [
"BSD-3-Clause"
] | null | null | null | from csv import writer
with open('hashout.csv', 'w', newline="") as outfile:
hashwriter = writer(outfile)
hashwriter.writerow("n x1 x2 add mult hash".split())
for n in range(256):
x1 = n >> 4
x2 = n % 2 ** 4
x_add = (x1 + x2) % 2 ** 4
x_mult = (x1 * x2) % 2 ** 4
x_ha... | 31.615385 | 63 | 0.53528 | 66 | 411 | 3.212121 | 0.409091 | 0.075472 | 0.042453 | 0.198113 | 0.283019 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073944 | 0.309002 | 411 | 12 | 64 | 34.25 | 0.672535 | 0 | 0 | 0 | 0 | 0 | 0.080292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
8b8d911558a51c2bb9dd5bad1e63fa95f81731f7 | 954 | py | Python | sieve_of_eratosthenes.py | rabinadk1/Python | 8f31a87ad62bdf40bfd7c9f265e8652954b3a562 | [
"MIT"
] | null | null | null | sieve_of_eratosthenes.py | rabinadk1/Python | 8f31a87ad62bdf40bfd7c9f265e8652954b3a562 | [
"MIT"
] | null | null | null | sieve_of_eratosthenes.py | rabinadk1/Python | 8f31a87ad62bdf40bfd7c9f265e8652954b3a562 | [
"MIT"
] | null | null | null | """
This file computes seive of eratosthenes lazily.
This provides a generator which can be iterated infinitely
to generate the list of prime numbers
"""
from itertools import count
from typing import Iterator, Union
def seive(gen: Union[Iterator[int], int] = count(2)) -> Iterator[int]:
"""
Generates sieve l... | 26.5 | 85 | 0.647799 | 140 | 954 | 4.357143 | 0.478571 | 0.072131 | 0.052459 | 0.062295 | 0.072131 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011252 | 0.254717 | 954 | 35 | 86 | 27.257143 | 0.846695 | 0.516771 | 0 | 0 | 1 | 0 | 0.019185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8b9ecdae522b1049345a6510a5a9f15a1832ddf1 | 14,685 | py | Python | similar/refined_sentence_embedding_similar.py | HUANGZHIHAO1994/Social-network-analysis | 124f162d75da77c637a63238d539e5c418973359 | [
"MIT"
] | 2 | 2020-10-29T02:14:24.000Z | 2021-12-22T11:12:10.000Z | similar/refined_sentence_embedding_similar.py | HUANGZHIHAO1994/Social-network-analysis | 124f162d75da77c637a63238d539e5c418973359 | [
"MIT"
] | null | null | null | similar/refined_sentence_embedding_similar.py | HUANGZHIHAO1994/Social-network-analysis | 124f162d75da77c637a63238d539e5c418973359 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, unicode_literals
import os
import sys
import numpy as np
import logging
import itertools
from correlation import *
from allennlp.commands.elmo import ElmoEmbedder
import re
import time
import os
from tqdm import tqdm
from config import WOS_Articles
import time
class S... | 45.184615 | 1,542 | 0.57174 | 1,678 | 14,685 | 4.88975 | 0.306317 | 0.034126 | 0.016088 | 0.014503 | 0.207922 | 0.180378 | 0.168678 | 0.145887 | 0.084583 | 0.062645 | 0 | 0.020794 | 0.309023 | 14,685 | 324 | 1,543 | 45.324074 | 0.787819 | 0.237045 | 0 | 0.095238 | 0 | 0.010582 | 0.3237 | 0.011087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05291 | false | 0 | 0.074074 | 0 | 0.174603 | 0.021164 | 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 |
8ba1f735e037021acb263d6445e1629627c98ed4 | 2,799 | py | Python | python/unprotectPhysicalServer/unprotectPhysicalServer.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | python/unprotectPhysicalServer/unprotectPhysicalServer.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | python/unprotectPhysicalServer/unprotectPhysicalServer.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""unprotect physical servers"""
# version 2021-12-03
# import pyhesity wrapper module
from pyhesity import *
# command line arguments
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--vip', type=str, required=True)
parser.add_argument('-u', '--username', type=str,... | 36.828947 | 153 | 0.658092 | 328 | 2,799 | 5.588415 | 0.359756 | 0.03437 | 0.064921 | 0.090016 | 0.097109 | 0.077469 | 0.036007 | 0 | 0 | 0 | 0 | 0.00614 | 0.185423 | 2,799 | 75 | 154 | 37.32 | 0.797807 | 0.054305 | 0 | 0.055556 | 0 | 0 | 0.255311 | 0.075493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.074074 | 0.037037 | 0 | 0.037037 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ba262a57db996684141a73b907605bbca8790b4 | 1,180 | py | Python | src/browserist/model/combo_settings/cookie_banner.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | 2 | 2022-02-20T10:03:19.000Z | 2022-03-22T11:17:10.000Z | src/browserist/model/combo_settings/cookie_banner.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | null | null | null | src/browserist/model/combo_settings/cookie_banner.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from ... import helper
from ...model.type.xpath import XPath
@dataclass(kw_only=True, slots=True)
class CookieBannerSettings:
"""Object with data needed to accept or decline cookies from a banner.
button_xpath: Can be for either accept or decline cookies.
url: Optional... | 38.064516 | 166 | 0.759322 | 177 | 1,180 | 4.824859 | 0.389831 | 0.084309 | 0.070258 | 0.063232 | 0.297424 | 0.210773 | 0.210773 | 0.210773 | 0.124122 | 0.124122 | 0 | 0 | 0.182203 | 1,180 | 30 | 167 | 39.333333 | 0.884974 | 0.438983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8ba3773d9da7f9a03b31d19831309e557e6cf259 | 1,351 | py | Python | gui/widgets/file_browser.py | abraker95/ultimate_osu_analyzer | bea58c997d13c3f461ccbe682f52799f0f88fdea | [
"MIT"
] | 23 | 2019-02-27T06:20:15.000Z | 2022-03-31T22:54:11.000Z | gui/widgets/file_browser.py | abraker95/ultimate_osu_analyzer | bea58c997d13c3f461ccbe682f52799f0f88fdea | [
"MIT"
] | 38 | 2019-03-03T17:35:39.000Z | 2021-08-23T20:43:34.000Z | gui/widgets/file_browser.py | abraker95/ultimate_osu_analyzer | bea58c997d13c3f461ccbe682f52799f0f88fdea | [
"MIT"
] | 4 | 2020-03-30T20:43:14.000Z | 2022-03-06T19:40:15.000Z | from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
class FileBrowser(QWidget):
def __init__(self):
QWidget.__init__(self)
self.init_gui_elements()
self.construct_gui()
self.update_gui()
def init_gui_elements(self):
self.layout = QVBox... | 33.775 | 90 | 0.712805 | 160 | 1,351 | 5.71875 | 0.3625 | 0.139891 | 0.131148 | 0.174863 | 0.155191 | 0.06776 | 0 | 0 | 0 | 0 | 0 | 0.0055 | 0.19245 | 1,351 | 40 | 91 | 33.775 | 0.833181 | 0.049593 | 0 | 0 | 0 | 0 | 0.007806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.107143 | 0 | 0.285714 | 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 |
8ba8d358c11b9e94cfc2d4ca22d4cd3e7f4c5933 | 885 | py | Python | team_graph.py | ktarrant/WinCandles | 016a8dcf8569aabf93bed6eeacc3f047f77008e7 | [
"MIT"
] | null | null | null | team_graph.py | ktarrant/WinCandles | 016a8dcf8569aabf93bed6eeacc3f047f77008e7 | [
"MIT"
] | null | null | null | team_graph.py | ktarrant/WinCandles | 016a8dcf8569aabf93bed6eeacc3f047f77008e7 | [
"MIT"
] | null | null | null | from schedule import get_schedule
from playlog import get_play_logs, get_play_log_data
from datetime import datetime
import logging
log = logging.getLogger(__name__)
def generate_play_logs(teamid, year=2016):
sched = get_schedule(year)
games = sched[(sched.home_team == teamid) | (sched.away_team == teamid)]
for i ... | 32.777778 | 73 | 0.726554 | 134 | 885 | 4.492537 | 0.425373 | 0.079734 | 0.036545 | 0.049834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005284 | 0.144633 | 885 | 27 | 74 | 32.777778 | 0.78996 | 0 | 0 | 0 | 1 | 0 | 0.103837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.166667 | 0 | 0.208333 | 0.041667 | 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 |
8bb033ea6b9510eb22aa5cfd26b30ded5eeade9f | 457 | py | Python | eCommerce-master/src/products/migrations/0010_product_is_digital.py | felipebrigo/Python-projects | a0ba1f0f84d89fc9d5125c137046c574bc99d86f | [
"MIT"
] | null | null | null | eCommerce-master/src/products/migrations/0010_product_is_digital.py | felipebrigo/Python-projects | a0ba1f0f84d89fc9d5125c137046c574bc99d86f | [
"MIT"
] | 19 | 2020-07-14T07:04:43.000Z | 2022-03-12T00:41:14.000Z | src/products/migrations/0010_product_is_digital.py | JulioCantu/IndiStore | 723c4ced800d43ffbfd34dc0ff7649b628008416 | [
"bzip2-1.0.6"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-07 22:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0009_product_timestamp'),
]
operations = [
migrations.AddField(... | 21.761905 | 53 | 0.621444 | 49 | 457 | 5.612245 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062315 | 0.262582 | 457 | 20 | 54 | 22.85 | 0.753709 | 0.148797 | 0 | 0 | 1 | 0 | 0.121762 | 0.056995 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bb4857950211ed9506b41501efc211c23151391 | 852 | py | Python | seq_p_c.py | erickyudha/mathbot-backend-api | a479b06fbd8e8a95e110e6e1f38af20bcd9f9971 | [
"MIT"
] | null | null | null | seq_p_c.py | erickyudha/mathbot-backend-api | a479b06fbd8e8a95e110e6e1f38af20bcd9f9971 | [
"MIT"
] | null | null | null | seq_p_c.py | erickyudha/mathbot-backend-api | a479b06fbd8e8a95e110e6e1f38af20bcd9f9971 | [
"MIT"
] | null | null | null | from itertools import permutations, combinations
MENU_TEXT = '''Permutation and Combination Sequance Calculator
by MathBot
Format:
Example:
3P2
>> 6
3C2
>> 3
-help to see this again
-exit to go back to main menu'''
EXC_TEXT = '''Invalid input!
try again or -exit to go back to main menu'''
d... | 18.12766 | 63 | 0.588028 | 118 | 852 | 4.161017 | 0.474576 | 0.02444 | 0.03666 | 0.04888 | 0.276986 | 0.211813 | 0.211813 | 0.1222 | 0 | 0 | 0 | 0.011844 | 0.306338 | 852 | 47 | 64 | 18.12766 | 0.818951 | 0 | 0 | 0.176471 | 0 | 0 | 0.271375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bb9e04bb8c07f90c74363c8979ef608401c34f0 | 519 | py | Python | rmlseg/__init__.py | cicwi/PyRMLSeg | 64dfe75e491ba5912a8fa64ce78ba8079e52815b | [
"MIT"
] | null | null | null | rmlseg/__init__.py | cicwi/PyRMLSeg | 64dfe75e491ba5912a8fa64ce78ba8079e52815b | [
"MIT"
] | null | null | null | rmlseg/__init__.py | cicwi/PyRMLSeg | 64dfe75e491ba5912a8fa64ce78ba8079e52815b | [
"MIT"
] | 1 | 2020-02-03T14:37:44.000Z | 2020-02-03T14:37:44.000Z | # -*- coding: utf-8 -*-
"""Top-level package for PyRMLSeg."""
__author__ = """Henri DER SARKISSIAN, Nicola VIGANÒ"""
__email__ = "N.R.Vigano@cwi.nl"
def __get_version():
import os.path
version_filename = os.path.join(os.path.dirname(__file__), "VERSION")
with open(version_filename) as version_file:
... | 20.76 | 73 | 0.695568 | 68 | 519 | 4.926471 | 0.647059 | 0.053731 | 0.095522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002336 | 0.175337 | 519 | 24 | 74 | 21.625 | 0.780374 | 0.183044 | 0 | 0 | 0 | 0 | 0.141487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8bc00c2e6b6fa4b45cabbe18fbe5c63767c20011 | 443 | py | Python | setup.py | jasonbot/twitty-twister | efc7d2920e37dfac3b224d90193858b9f2bc2730 | [
"MIT"
] | 1 | 2015-11-04T10:33:19.000Z | 2015-11-04T10:33:19.000Z | setup.py | jasonbot/twitty-twister | efc7d2920e37dfac3b224d90193858b9f2bc2730 | [
"MIT"
] | null | null | null | setup.py | jasonbot/twitty-twister | efc7d2920e37dfac3b224d90193858b9f2bc2730 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
from distutils.core import setup
setup(name='twittytwister',
version='0.1',
description='Twitter client for Twisted Python',
author='Dustin Sallings',
author_email='dustin@spy.net',
url='http://github.com/dustin/twitty-twister/',
license='MIT',
platforms='any',
p... | 21.095238 | 52 | 0.665914 | 47 | 443 | 6.255319 | 0.87234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077128 | 0.151242 | 443 | 20 | 53 | 22.15 | 0.704787 | 0.092551 | 0 | 0 | 0 | 0 | 0.3425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | 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 |
8bce84d02d5594df396cc7fdec542350f75f1798 | 1,124 | py | Python | data-generation/least_square_approx.py | eivindkopperud/master-thesis | e283070ed83e93d1f6f1e248be1d5d9be269b578 | [
"MIT"
] | null | null | null | data-generation/least_square_approx.py | eivindkopperud/master-thesis | e283070ed83e93d1f6f1e248be1d5d9be269b578 | [
"MIT"
] | 4 | 2022-03-08T10:29:27.000Z | 2022-03-25T12:55:50.000Z | data-generation/least_square_approx.py | eivindkopperud/master-thesis | e283070ed83e93d1f6f1e248be1d5d9be269b578 | [
"MIT"
] | null | null | null | import os
from sys import argv
import numpy as np
from statistics import variance,mean
# https://numpy.org/doc/stable/reference/generated/numpy.linalg.lstsq.html
path = argv[1]
pwd = os.environ["PWD"]+"/"
list_of_files = []
for root, dirs, files in os.walk(pwd + path):
for file in files:
list_of_files.appe... | 20.436364 | 74 | 0.587189 | 183 | 1,124 | 3.535519 | 0.469945 | 0.055641 | 0.068006 | 0.02473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016241 | 0.233096 | 1,124 | 54 | 75 | 20.814815 | 0.734339 | 0.152135 | 0 | 0 | 1 | 0 | 0.023231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.1 | 0 | 0.125 | 0.025 | 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 |
8bceeab07f3084a099fda66bd234d6af9c5a03b8 | 1,308 | py | Python | measure.py | ZhouYzzz/CTT | 385b6c7ac2e6633f72b49df7e8a599f40c50188b | [
"MIT"
] | 3 | 2016-12-19T12:54:38.000Z | 2019-02-15T05:42:32.000Z | measure.py | ZhouYzzz/CTT | 385b6c7ac2e6633f72b49df7e8a599f40c50188b | [
"MIT"
] | null | null | null | measure.py | ZhouYzzz/CTT | 385b6c7ac2e6633f72b49df7e8a599f40c50188b | [
"MIT"
] | 2 | 2018-02-07T18:30:15.000Z | 2019-02-15T05:42:34.000Z | '''
measure
'''
import numpy as np
def overlap(A, B):
[XA1, YA1, XA2, YA2] = A
[XB1, YB1, XB2, YB2] = B
SI = max(0,min(XA2, XB2) - max(XA1, XB1)) * \
max(0,min(YA2, YB2) - max(YA1, YB1))
S = area(A) + area(B) - SI
return float(SI) / S
def area(A):
return (A[2]-A[0])*(A[3]-A[1])
def distance(A, B, norm=2):
... | 22.169492 | 64 | 0.632263 | 235 | 1,308 | 3.485106 | 0.276596 | 0.009768 | 0.043956 | 0.043956 | 0.323565 | 0.307692 | 0.307692 | 0.307692 | 0.307692 | 0.241758 | 0 | 0.073395 | 0.166667 | 1,308 | 59 | 65 | 22.169492 | 0.677982 | 0 | 0 | 0.295455 | 0 | 0 | 0.006182 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | null | null | 0 | 0.022727 | null | null | 0.113636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8bd2358d5c452743e46175c107e14197bd544650 | 785 | py | Python | setup.py | gronlund/cvrdata | 3108a275f63b0865a61cc0ee2bd70adabc3394ee | [
"MIT"
] | 4 | 2018-10-04T14:13:05.000Z | 2021-12-08T12:31:44.000Z | setup.py | gronlund/cvrdata | 3108a275f63b0865a61cc0ee2bd70adabc3394ee | [
"MIT"
] | 3 | 2018-11-28T13:20:36.000Z | 2019-01-11T12:52:54.000Z | setup.py | gronlund/cvrdata | 3108a275f63b0865a61cc0ee2bd70adabc3394ee | [
"MIT"
] | 3 | 2019-02-19T16:20:21.000Z | 2020-12-16T21:27:24.000Z | from setuptools import setup
setup(
name='cvrparser',
version=0.1,
url='https://github.com/gronlund/cvrdata',
description=('A module for fetching Central Business Register data from the Danish Business Authority'),
author='Allan Gronlund',
author_email='allan.g.joergensen@gmail.com',
licens... | 27.068966 | 108 | 0.56051 | 96 | 785 | 4.552083 | 0.6875 | 0.009153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079174 | 0.259873 | 785 | 29 | 109 | 27.068966 | 0.672978 | 0 | 0 | 0 | 0 | 0 | 0.512723 | 0.096692 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 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 |
8be10172f2a4ed57853bcdd34ee1928325c33a9c | 1,745 | py | Python | sim2net/cli/_application_template.py | harikuts/dsr_optimization | 796e58da578f7841a060233a8981eb69d92b798b | [
"MIT"
] | 12 | 2018-06-17T05:29:35.000Z | 2022-03-20T23:55:49.000Z | sim2net/cli/_application_template.py | harikuts/dsr_optimization | 796e58da578f7841a060233a8981eb69d92b798b | [
"MIT"
] | 2 | 2020-05-02T16:36:34.000Z | 2021-03-12T17:40:02.000Z | sim2net/cli/_application_template.py | harikuts/dsr_optimization | 796e58da578f7841a060233a8981eb69d92b798b | [
"MIT"
] | 6 | 2015-09-09T00:00:22.000Z | 2020-05-29T20:18:31.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# For bug reports, feature and support requests please visit
# <https://github.com/mkalewski/sim2net/issues>.
"""
sim2net -- simulation application file.
If in any doubt, refer to the technical documentations that is available on the
Internet: <https://sim2net.readthed... | 28.606557 | 79 | 0.596562 | 217 | 1,745 | 4.705069 | 0.493088 | 0.047013 | 0.06856 | 0.037218 | 0.082272 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012068 | 0.287679 | 1,745 | 60 | 80 | 29.083333 | 0.809332 | 0.084814 | 0 | 0 | 0 | 0 | 0.133102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8beb248b3f321d155774049687d199c473c9002e | 139,097 | py | Python | src/rogerthat/bizz/service/__init__.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/bizz/service/__init__.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/bizz/service/__init__.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... | 44.986093 | 166 | 0.698268 | 16,442 | 139,097 | 5.5846 | 0.069943 | 0.055216 | 0.03766 | 0.012775 | 0.456851 | 0.37723 | 0.324182 | 0.279432 | 0.236479 | 0.193581 | 0 | 0.002686 | 0.223822 | 139,097 | 3,091 | 167 | 45.000647 | 0.847801 | 0.037894 | 0 | 0.282358 | 0 | 0.006183 | 0.051131 | 0.006501 | 0 | 0 | 0 | 0.000324 | 0.000412 | 0 | null | null | 0.005359 | 0.039571 | 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 |
8bedbfc0355e6c90069f55f0a5960f9353b06ffd | 563 | py | Python | techtest/store/migrations/0001_initial.py | rahulkannojia07/gaming-store-adyen | 4c81bd78dce88f244a4e56784914c3cc4359b669 | [
"MIT"
] | null | null | null | techtest/store/migrations/0001_initial.py | rahulkannojia07/gaming-store-adyen | 4c81bd78dce88f244a4e56784914c3cc4359b669 | [
"MIT"
] | null | null | null | techtest/store/migrations/0001_initial.py | rahulkannojia07/gaming-store-adyen | 4c81bd78dce88f244a4e56784914c3cc4359b669 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-15 05:38
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ProductDetails',
fields=[
('product_id', mo... | 24.478261 | 87 | 0.591474 | 57 | 563 | 5.719298 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050251 | 0.293073 | 563 | 22 | 88 | 25.590909 | 0.768844 | 0.079929 | 0 | 0 | 1 | 0 | 0.094961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 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 |
4734cdaa7d6adad5d2c71adc9c613f613cbfc655 | 1,154 | py | Python | MatchMe-New/old/server/Accounts/serializers.py | joonyoungleeduke/MatchMe | 8ff6aeff06e5b8d6a83c531e9992a7b14f6fc074 | [
"MIT"
] | null | null | null | MatchMe-New/old/server/Accounts/serializers.py | joonyoungleeduke/MatchMe | 8ff6aeff06e5b8d6a83c531e9992a7b14f6fc074 | [
"MIT"
] | null | null | null | MatchMe-New/old/server/Accounts/serializers.py | joonyoungleeduke/MatchMe | 8ff6aeff06e5b8d6a83c531e9992a7b14f6fc074 | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from rest_framework import serializers
from rest_framework.validators import UniqueValidator
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ['url', 'id', 'username', '... | 30.368421 | 99 | 0.551993 | 101 | 1,154 | 6.178218 | 0.455446 | 0.043269 | 0.054487 | 0.067308 | 0.160256 | 0.160256 | 0.160256 | 0 | 0 | 0 | 0 | 0 | 0.331889 | 1,154 | 37 | 100 | 31.189189 | 0.809339 | 0.069324 | 0 | 0.241379 | 0 | 0 | 0.138577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.103448 | 0.137931 | 0 | 0.344828 | 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 |
473b4662b5f619b54620640302f49091dd4a8c65 | 1,006 | py | Python | config.py | Lukeming-tsinghua/Interpretable-NN-for-IBD-diagnosis | 5fb0fae774e010cdd6b63ff487a4528f0397647d | [
"MIT"
] | null | null | null | config.py | Lukeming-tsinghua/Interpretable-NN-for-IBD-diagnosis | 5fb0fae774e010cdd6b63ff487a4528f0397647d | [
"MIT"
] | null | null | null | config.py | Lukeming-tsinghua/Interpretable-NN-for-IBD-diagnosis | 5fb0fae774e010cdd6b63ff487a4528f0397647d | [
"MIT"
] | null | null | null | import os
class ConfigBase(object):
RAW_DATA_PATH = "./data/raw/"
TRAIN_DATA_FILE = "train.tsv"
VALID_DATA_FILE = "valid.tsv"
UNSUP_DATA_FILE = "unsup.tsv"
SPLIT_RANDOM_SEED = 0
add_vocab_file = "data/add_vocab.txt"
class ConfigTripleClassification(ConfigBase):
RAW_DATA_FILES = ["UC.xlsx",... | 28.742857 | 54 | 0.653082 | 143 | 1,006 | 4.342657 | 0.27972 | 0.078905 | 0.115942 | 0.10628 | 0.389694 | 0.355878 | 0.310789 | 0.310789 | 0.26409 | 0.26409 | 0 | 0.009674 | 0.177932 | 1,006 | 34 | 55 | 29.588235 | 0.741233 | 0 | 0 | 0.230769 | 0 | 0 | 0.21173 | 0.020875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.923077 | 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 |
473faaddc48dde86672f568407e67e0676e33cba | 268 | py | Python | features/steps/recursive.py | paul-schwendenman/twintrim | 776ac19b73c71f8c6ac0111cc9ae5c03cb94a45a | [
"MIT"
] | 1 | 2017-03-01T17:19:37.000Z | 2017-03-01T17:19:37.000Z | features/steps/recursive.py | paul-schwendenman/twintrim | 776ac19b73c71f8c6ac0111cc9ae5c03cb94a45a | [
"MIT"
] | 3 | 2015-06-10T00:12:20.000Z | 2016-01-18T16:49:39.000Z | features/steps/recursive.py | paul-schwendenman/twintrim | 776ac19b73c71f8c6ac0111cc9ae5c03cb94a45a | [
"MIT"
] | 1 | 2015-06-09T20:45:30.000Z | 2015-06-09T20:45:30.000Z | '''
Steps for creating subdirectories
'''
#pylint: disable=missing-docstring, function-redefined
from behave import given
import os
@given(u'we have a subdirectory "{directory}"')
def step_impl(context, directory):
os.mkdir(os.path.join(context.path, directory))
| 24.363636 | 54 | 0.761194 | 36 | 268 | 5.638889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11194 | 268 | 10 | 55 | 26.8 | 0.852941 | 0.324627 | 0 | 0 | 0 | 0 | 0.208092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
473fb9d6b0a79385705073cd5ac7a6470f3b12fc | 1,291 | py | Python | parsec/commands/histories/get_histories.py | simonbray/parsec | c0e123cbf7cb1289ec722357a6262f716575e4d9 | [
"Apache-2.0"
] | null | null | null | parsec/commands/histories/get_histories.py | simonbray/parsec | c0e123cbf7cb1289ec722357a6262f716575e4d9 | [
"Apache-2.0"
] | null | null | null | parsec/commands/histories/get_histories.py | simonbray/parsec | c0e123cbf7cb1289ec722357a6262f716575e4d9 | [
"Apache-2.0"
] | null | null | null | import click
from parsec.cli import pass_context, json_loads
from parsec.decorators import custom_exception, list_output
@click.command('get_histories')
@click.option(
"--history_id",
help="Encoded history ID to filter on",
type=str
)
@click.option(
"--name",
help="Name of history to filter on",
... | 30.738095 | 302 | 0.701007 | 185 | 1,291 | 4.805405 | 0.367568 | 0.061867 | 0.033746 | 0.047244 | 0.192351 | 0.173228 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0.168861 | 1,291 | 41 | 303 | 31.487805 | 0.828518 | 0.089853 | 0 | 0.242424 | 0 | 0.030303 | 0.45189 | 0.023196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.060606 | 0.090909 | 0 | 0.151515 | 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 |
4741a70d62cd167350e49e21975a257a8152c97e | 1,455 | py | Python | etl/tests/database/test_init.py | GregAiven/Python-20220216--Adrian-Diaz-Garcia | dbd22c0a9aea480ce07d9631c982e90c72e5c53f | [
"MIT"
] | null | null | null | etl/tests/database/test_init.py | GregAiven/Python-20220216--Adrian-Diaz-Garcia | dbd22c0a9aea480ce07d9631c982e90c72e5c53f | [
"MIT"
] | null | null | null | etl/tests/database/test_init.py | GregAiven/Python-20220216--Adrian-Diaz-Garcia | dbd22c0a9aea480ce07d9631c982e90c72e5c53f | [
"MIT"
] | null | null | null | from datetime import datetime
def test_insert_all(setup_db, db_client):
data_to_insert = [
{"http_status": 200, "check_result": True, "elapsed": 0.04, "regex": "fake", "url": "https://fakeurl"},
{"http_status": 404, "check_result": True, "elapsed": 0.84, "regex": "fake", "url": "https://notfound"}... | 44.090909 | 112 | 0.602749 | 192 | 1,455 | 4.458333 | 0.3125 | 0.19743 | 0.098131 | 0.051402 | 0.420561 | 0.233645 | 0.156542 | 0 | 0 | 0 | 0 | 0.049496 | 0.250172 | 1,455 | 32 | 113 | 45.46875 | 0.735105 | 0.138144 | 0 | 0.074074 | 0 | 0 | 0.182553 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.074074 | 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 |
4743018c6e8f45b562b9cc1b79a261708edeeb18 | 1,256 | py | Python | recipes/Python/576370_Weighted_random_choice/recipe-576370.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/576370_Weighted_random_choice/recipe-576370.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/576370_Weighted_random_choice/recipe-576370.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
import random, bisect
class ItemGenerator(object):
'''Choices randomly an element from a list.
It does it not uniformly, but using a given weight for
each element.
Just instantiate this class passing a list of pairs
... | 25.632653 | 69 | 0.58121 | 166 | 1,256 | 4.277108 | 0.548193 | 0.042254 | 0.030986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022016 | 0.312898 | 1,256 | 48 | 70 | 26.166667 | 0.800695 | 0.144904 | 0 | 0 | 0 | 0 | 0.013301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4745a77cca3238b974cf270957ae0231dc9d7159 | 906 | py | Python | NTA_detect_fast_flux.py | SYANiDE-/ViolentPython | 1e56ef7f006272b170bba0a642860a892c016baa | [
"BSD-2-Clause"
] | 2 | 2019-02-21T08:38:32.000Z | 2019-02-22T03:15:02.000Z | NTA_detect_fast_flux.py | SYANiDE-/ViolentPython | 1e56ef7f006272b170bba0a642860a892c016baa | [
"BSD-2-Clause"
] | null | null | null | NTA_detect_fast_flux.py | SYANiDE-/ViolentPython | 1e56ef7f006272b170bba0a642860a892c016baa | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python2
from scapy.all import *
records = {}
min_count = 5 # we only care if the domain name has more than min_count IPs associated with it.
def examine(pk):
if pk.haslayer(DNSRR):
rname = pk.getlayer(DNSRR).rrname
rdata = pk.getlayer(DNSRR).rdata
if records.has_key(rname)... | 25.166667 | 96 | 0.547461 | 122 | 906 | 3.967213 | 0.483607 | 0.099174 | 0.061983 | 0.099174 | 0.144628 | 0.144628 | 0 | 0 | 0 | 0 | 0 | 0.008026 | 0.312362 | 906 | 35 | 97 | 25.885714 | 0.76886 | 0.111479 | 0 | 0.153846 | 0 | 0 | 0.068579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4747114ddf801aa26e15d4b2379fb53a8345926b | 1,413 | py | Python | silvia/silviacontrol/serializers.py | willhunt/silvia | 1e2a207d2525f965024e9fb362537569d8a3c4e0 | [
"MIT"
] | 5 | 2020-09-07T18:17:30.000Z | 2021-12-14T02:00:53.000Z | silvia/silviacontrol/serializers.py | willhunt/silvia | 1e2a207d2525f965024e9fb362537569d8a3c4e0 | [
"MIT"
] | 6 | 2020-05-20T14:39:06.000Z | 2021-05-11T18:53:30.000Z | silvia/silviacontrol/serializers.py | willhunt/silvia | 1e2a207d2525f965024e9fb362537569d8a3c4e0 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import (SettingsModel, ScheduleModel, SessionModel,
StatusModel, ResponseModel)
class SettingsSerializer(serializers.ModelSerializer):
class Meta:
model = SettingsModel
fields = '__all__'
class StatusSerializer(serializers.M... | 31.4 | 130 | 0.701345 | 132 | 1,413 | 7.310606 | 0.439394 | 0.134715 | 0.072539 | 0.072539 | 0.169948 | 0.087047 | 0 | 0 | 0 | 0 | 0 | 0.00708 | 0.200283 | 1,413 | 44 | 131 | 32.113636 | 0.846903 | 0.087049 | 0 | 0.25 | 0 | 0 | 0.073872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.625 | 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 |
4749beeda54e6e6d10e39a17b029de2cdc827c91 | 9,133 | py | Python | passbook/core/views/authentication.py | fossabot/passbook | cba17f6659404445ac3025f11657d89368cc8b4f | [
"MIT"
] | null | null | null | passbook/core/views/authentication.py | fossabot/passbook | cba17f6659404445ac3025f11657d89368cc8b4f | [
"MIT"
] | null | null | null | passbook/core/views/authentication.py | fossabot/passbook | cba17f6659404445ac3025f11657d89368cc8b4f | [
"MIT"
] | null | null | null | """passbook core authentication views"""
from typing import Dict, Optional
from django.contrib import messages
from django.contrib.auth import login, logout
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.forms.utils import ErrorList
from django.http import HttpRequest, HttpR... | 38.535865 | 87 | 0.648856 | 1,037 | 9,133 | 5.570878 | 0.228544 | 0.030466 | 0.018176 | 0.0251 | 0.21499 | 0.200969 | 0.191276 | 0.13121 | 0.119785 | 0.119785 | 0 | 0.001465 | 0.2526 | 9,133 | 236 | 88 | 38.699153 | 0.844858 | 0.152195 | 0 | 0.226994 | 0 | 0 | 0.115085 | 0.043289 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104294 | false | 0.171779 | 0.104294 | 0.018405 | 0.423313 | 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 |
474b7a34e3a75d7c8dbe77bc8ab258b217097dc1 | 286 | py | Python | EventFilter/HcalRawToDigi/python/hcallaserFilterFromTriggerResult_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | EventFilter/HcalRawToDigi/python/hcallaserFilterFromTriggerResult_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | EventFilter/HcalRawToDigi/python/hcallaserFilterFromTriggerResult_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from HLTrigger.HLTfilters.hltHighLevel_cfi import hltHighLevel
hcalfilter = hltHighLevel.clone(
TriggerResultsTag = cms.InputTag('TriggerResults'),
HLTPaths = cms.vstring('user_step' )
)
hcalfilterSeq = cms.Sequence( hcalfilter )
| 26 | 62 | 0.776224 | 29 | 286 | 7.586207 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 286 | 10 | 63 | 28.6 | 0.890688 | 0 | 0 | 0 | 0 | 0 | 0.08042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
47532fb09ec0b29b4314ba2acd4e5c7ba77eb255 | 959 | py | Python | icpc/2018-8-13/B.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | icpc/2018-8-13/B.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | icpc/2018-8-13/B.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | P = []
f = []
def primes():
P = []
mark = [0]*1000001
for i in xrange(2, 1000001):
if mark[i]:
continue
P.append(i)
for j in xrange(i + i, 1000001, i):
mark[j] = 1
return P
def calc():
for p in P:
for i in xrange(p + p, 1000001, p):
... | 19.571429 | 45 | 0.394161 | 141 | 959 | 2.680851 | 0.248227 | 0.084656 | 0.047619 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 0.468196 | 959 | 48 | 46 | 19.979167 | 0.647059 | 0 | 0 | 0.177778 | 0 | 0 | 0.010428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4761c43e0d6a44f821a44daa812dbd95951f649e | 2,912 | py | Python | musical_compass/core.py | capalmer1013/musical-compass | d7f4f3650e4e9193e9c16bba2dd902747217b346 | [
"MIT"
] | null | null | null | musical_compass/core.py | capalmer1013/musical-compass | d7f4f3650e4e9193e9c16bba2dd902747217b346 | [
"MIT"
] | null | null | null | musical_compass/core.py | capalmer1013/musical-compass | d7f4f3650e4e9193e9c16bba2dd902747217b346 | [
"MIT"
] | null | null | null | import os
import matplotlib.pyplot as plt
from flask import Flask, session, request, redirect, send_file
from flask_session import Session
import pyoauth2
from . import helpers
app = Flask(__name__)
app.config.from_object("musical_compass.config")
Session(app)
api_url = 'https://api.spotify.com/v1/'
scope = 'user-to... | 29.414141 | 115 | 0.675481 | 418 | 2,912 | 4.488038 | 0.311005 | 0.023987 | 0.034648 | 0.012793 | 0.284115 | 0.206823 | 0.185501 | 0.029851 | 0.029851 | 0.029851 | 0 | 0.024847 | 0.156937 | 2,912 | 98 | 116 | 29.714286 | 0.739308 | 0.020604 | 0 | 0.082192 | 0 | 0 | 0.238045 | 0.037271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041096 | false | 0.09589 | 0.082192 | 0 | 0.219178 | 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 |
4764fe96452c2dabe020adf6870a9fa56c8cf55c | 1,214 | py | Python | alistock/urls.py | taojy123/AliStock | 1bedb6fbc985b1e062a7a9c04ea7a23e56f7821c | [
"MIT"
] | null | null | null | alistock/urls.py | taojy123/AliStock | 1bedb6fbc985b1e062a7a9c04ea7a23e56f7821c | [
"MIT"
] | null | null | null | alistock/urls.py | taojy123/AliStock | 1bedb6fbc985b1e062a7a9c04ea7a23e56f7821c | [
"MIT"
] | null | null | null |
from django.conf.urls import patterns, include, url
from views import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(
'',
('^$', index),
('^index/$', index),
('^admin/', include(admin.site.urls)),
('^product/list/... | 26.977778 | 67 | 0.610379 | 130 | 1,214 | 5.553846 | 0.369231 | 0.041551 | 0.047091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166392 | 1,214 | 44 | 68 | 27.590909 | 0.713439 | 0.066722 | 0 | 0 | 0 | 0 | 0.277236 | 0.018601 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.060606 | 0.121212 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
47744e4b6506e4d46397c18286b84a0a303435bf | 1,121 | py | Python | fetch_data.py | curaro/skidstorm_all_tt_data | cf2fc5c658e2c5432d35d1e602b1d97a1a435ac4 | [
"Apache-2.0"
] | null | null | null | fetch_data.py | curaro/skidstorm_all_tt_data | cf2fc5c658e2c5432d35d1e602b1d97a1a435ac4 | [
"Apache-2.0"
] | null | null | null | fetch_data.py | curaro/skidstorm_all_tt_data | cf2fc5c658e2c5432d35d1e602b1d97a1a435ac4 | [
"Apache-2.0"
] | null | null | null | import csv
import urllib
import os
def get_skid_data():
# IP of the skidstorm server which hosts all match details
ss_ip = "52.37.195.154"
# The URL via which we can access the time trail data
ss_json_url = "http://%s/highscores/list/%s/ALL-%s/1-100"
# The directory which will store all time tra... | 24.369565 | 81 | 0.628011 | 186 | 1,121 | 3.510753 | 0.38172 | 0.036753 | 0.05513 | 0.045942 | 0.061256 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022782 | 0.256021 | 1,121 | 45 | 82 | 24.911111 | 0.760192 | 0.23372 | 0 | 0 | 0 | 0 | 0.152761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
477fe9b6e3d26dadf88ceb2d52a1f2e90a90965d | 712 | py | Python | transformer/Cache.py | RogerTsai917/attention-is-all-you-need-pytorch | 64197e55d275e5c819bc786a9ff19849cdf2f6b9 | [
"MIT"
] | null | null | null | transformer/Cache.py | RogerTsai917/attention-is-all-you-need-pytorch | 64197e55d275e5c819bc786a9ff19849cdf2f6b9 | [
"MIT"
] | null | null | null | transformer/Cache.py | RogerTsai917/attention-is-all-you-need-pytorch | 64197e55d275e5c819bc786a9ff19849cdf2f6b9 | [
"MIT"
] | null | null | null |
class CacheVocabulary:
def __init__(self, vocab_data, vocab_dict, cache_number, unknown_word, blank_word):
self.word_value = {}
self.word_value[unknown_word] = 0
self.word_value[blank_word] = 1
count = 0
for key in vocab_dict.keys():
word = vocab_data.vocab.itos[... | 41.882353 | 88 | 0.563202 | 89 | 712 | 4.235955 | 0.303371 | 0.127321 | 0.206897 | 0.090186 | 0.116711 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012739 | 0.338483 | 712 | 17 | 88 | 41.882353 | 0.787686 | 0.077247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.142857 | 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 |
4794d459d12f794192dfb7bffc72a492fc745835 | 3,379 | py | Python | backdoor_stuff/sha1block.py | macdaliot/patcherex | a2ed8aacbe5f583ce300a802c36268c714bd3356 | [
"BSD-2-Clause"
] | 147 | 2016-08-20T19:25:40.000Z | 2022-03-14T07:15:40.000Z | backdoor_stuff/sha1block.py | macdaliot/patcherex | a2ed8aacbe5f583ce300a802c36268c714bd3356 | [
"BSD-2-Clause"
] | 14 | 2017-01-11T22:23:39.000Z | 2018-09-19T23:18:37.000Z | backdoor_stuff/sha1block.py | macdaliot/patcherex | a2ed8aacbe5f583ce300a802c36268c714bd3356 | [
"BSD-2-Clause"
] | 42 | 2016-08-21T06:27:19.000Z | 2020-11-06T20:59:10.000Z | #!/usr/bin/env python
import hashlib
import itertools
import struct
import time
import multiprocessing
from ctypes import cdll
nbits = 19
mask = (1<<nbits)-1 #0x7ffff
tot_values = pow(2,nbits)
def process_killer():
cdll['libc.so.6'].prctl(1,9)
def _left_rotate(n, b):
"""Left rotate a 32-bit integer n by b... | 23.795775 | 86 | 0.54158 | 537 | 3,379 | 3.378026 | 0.325885 | 0.016538 | 0.016538 | 0.038589 | 0.203418 | 0.125138 | 0.084344 | 0.054576 | 0 | 0 | 0 | 0.095597 | 0.29417 | 3,379 | 141 | 87 | 23.964539 | 0.66499 | 0.141166 | 0 | 0.151899 | 0 | 0 | 0.05814 | 0 | 0 | 0 | 0.05168 | 0 | 0.012658 | 0 | null | null | 0 | 0.075949 | null | null | 0.075949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
479e2313858a83c1ae1106144e5c436164f25986 | 425 | py | Python | sensor-dht11-bh1750/boot.py | PinkInk/iocp | 0f7bb111c202999bde9874b319423462600bb060 | [
"MIT"
] | 1 | 2020-04-02T11:48:05.000Z | 2020-04-02T11:48:05.000Z | sensor-dht11-bh1750/boot.py | PinkInk/iocp | 0f7bb111c202999bde9874b319423462600bb060 | [
"MIT"
] | null | null | null | sensor-dht11-bh1750/boot.py | PinkInk/iocp | 0f7bb111c202999bde9874b319423462600bb060 | [
"MIT"
] | null | null | null | """
boot.py
"""
# drop rtos debug msgs
from esp import osdebug
osdebug(False)
def do_connect():
"""
connect to wifi, or return
"""
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
if not wlan.isconnected():
print('connecting to network...')
wlan.connect(... | 18.478261 | 42 | 0.607059 | 51 | 425 | 5.019608 | 0.647059 | 0.128906 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016026 | 0.265882 | 425 | 22 | 43 | 19.318182 | 0.804487 | 0.131765 | 0 | 0 | 0 | 0 | 0.110145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.166667 | 0 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
479fa5c4ca073f52fc1f75d7c6234427e597414a | 279 | py | Python | servicios/urls.py | AntonioTN/webPagosEscuela | e4ac5fd1e192b2d9fa1d7926c634efb92266c532 | [
"MIT"
] | null | null | null | servicios/urls.py | AntonioTN/webPagosEscuela | e4ac5fd1e192b2d9fa1d7926c634efb92266c532 | [
"MIT"
] | null | null | null | servicios/urls.py | AntonioTN/webPagosEscuela | e4ac5fd1e192b2d9fa1d7926c634efb92266c532 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.servicios, name="servicios"),
path ('constancia/', views.constancia, name="constancia"),
path('kardex/', views.kardex, name="kardex"),
path('seguro/', views.seguro, name="seguro"),
] | 31 | 62 | 0.666667 | 32 | 279 | 5.8125 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146953 | 279 | 9 | 63 | 31 | 0.781513 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
47a111dfba957867e721defa9576c818b11f069d | 1,991 | py | Python | Scheduler+Agent/config.py | erichilarysmithsr/daytona | c5dc829066fb4cfdb5f3271bcbe68f2f4b265c41 | [
"Apache-2.0"
] | 85 | 2017-01-12T20:47:58.000Z | 2018-10-22T18:43:08.000Z | Scheduler+Agent/config.py | YahooArchive/daytona | be9d2cbea047cbbcb7a7c5f9e027dc1443b39a40 | [
"Apache-2.0"
] | 11 | 2017-04-11T01:21:35.000Z | 2018-01-05T18:27:04.000Z | Scheduler+Agent/config.py | sapanpanigrahi/daytona | a7b9bf3f596a233a893545b28b51bcdae3e793a5 | [
"Apache-2.0"
] | 18 | 2017-03-14T06:54:26.000Z | 2018-10-25T19:05:22.000Z | #!/usr/bin/env python
# -*- coding:cp949 -*-
import ConfigParser
class CFG:
def __init__(self, role, lctx):
self.actionMap = {}
self.role = role
self.lctx = lctx
self.daytona_dh_root = ''
self.daytona_agent_root = ''
self.execscript_location = ''
self.agent_test_logs = ''... | 35.553571 | 105 | 0.589151 | 255 | 1,991 | 4.447059 | 0.262745 | 0.111111 | 0.097002 | 0.056437 | 0.367725 | 0.116402 | 0.054674 | 0.054674 | 0.054674 | 0 | 0 | 0.006689 | 0.249121 | 1,991 | 55 | 106 | 36.2 | 0.751839 | 0.020593 | 0 | 0.083333 | 0 | 0 | 0.114535 | 0.012327 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.041667 | 0.020833 | 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 |
47a7895d9c4e34fe5e7e688b4f2025b40c2d44d2 | 1,357 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/netbox/netbox/plugins/doc_fragments/common.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 38 | 2019-08-28T18:43:20.000Z | 2020-01-09T15:51:34.000Z | venv/lib/python3.6/site-packages/ansible_collections/netbox/netbox/plugins/doc_fragments/common.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 24 | 2019-09-11T03:46:35.000Z | 2019-12-17T06:25:20.000Z | venv/lib/python3.6/site-packages/ansible_collections/netbox/netbox/plugins/doc_fragments/common.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 9 | 2019-09-20T12:27:39.000Z | 2020-01-09T03:12:27.000Z | # -*- coding: utf-8 -*-
# Copyright: (c) 2021, Devon Mar (@devon-mar)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
class ModuleDocFragment(object):
DOCUMENTATION = r"""
---
opti... | 25.12963 | 98 | 0.672808 | 175 | 1,357 | 5.114286 | 0.662857 | 0.046927 | 0.035754 | 0.042458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008867 | 0.252027 | 1,357 | 53 | 99 | 25.603774 | 0.872906 | 0.114959 | 0 | 0.333333 | 0 | 0 | 0.87051 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022222 | 0 | 0.066667 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47b98916e8818a760c4343b77495a919ed46c452 | 1,048 | py | Python | Django_Project/apps/project_admin/serializers/users_manage.py | yasugsh/Django_Project | de5f5cc9244cc2763dafe7597e5e2efef8342c8a | [
"MIT"
] | null | null | null | Django_Project/apps/project_admin/serializers/users_manage.py | yasugsh/Django_Project | de5f5cc9244cc2763dafe7597e5e2efef8342c8a | [
"MIT"
] | null | null | null | Django_Project/apps/project_admin/serializers/users_manage.py | yasugsh/Django_Project | de5f5cc9244cc2763dafe7597e5e2efef8342c8a | [
"MIT"
] | null | null | null | from rest_framework import serializers
from users.models import User
from django.contrib.auth.hashers import make_password
class UserSerializer(serializers.ModelSerializer):
"""User模型类序列化器"""
class Meta:
model = User
fields = ['id', 'username', 'mobile', 'email', 'password']
# userna... | 26.2 | 66 | 0.562023 | 90 | 1,048 | 6.411111 | 0.633333 | 0.041594 | 0.038128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.332061 | 1,048 | 39 | 67 | 26.871795 | 0.812857 | 0.251908 | 0 | 0 | 0 | 0 | 0.151226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.190476 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
47be18e22c18e0bcdbaa3d47a3b0bba5285dc256 | 128 | py | Python | pythonAnimations/pyOpenGLChess/playNoLogic.py | alexus37/AugmentedRealityChess | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | [
"MIT"
] | 1 | 2015-07-12T07:24:17.000Z | 2015-07-12T07:24:17.000Z | pythonAnimations/pyOpenGLChess/playNoLogic.py | alexus37/AugmentedRealityChess | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | [
"MIT"
] | null | null | null | pythonAnimations/pyOpenGLChess/playNoLogic.py | alexus37/AugmentedRealityChess | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | [
"MIT"
] | 1 | 2016-02-19T21:55:53.000Z | 2016-02-19T21:55:53.000Z | # playNologic.py (start game here)
import GameNoLogic
def main():
game = GameNoLogic.Game()
game.start()
main() | 11.636364 | 34 | 0.640625 | 15 | 128 | 5.466667 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234375 | 128 | 11 | 35 | 11.636364 | 0.836735 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 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 |
47c232fae8bf55db1a9f176d79200f87debbe44d | 3,298 | py | Python | sshmap/hostlists.py | lunatech/sshmap | 9f932ab35dfee6ebb2f8ab66c59f64e7dc246ceb | [
"Apache-2.0"
] | 1 | 2020-05-08T03:49:02.000Z | 2020-05-08T03:49:02.000Z | sshmap/hostlists.py | lunatech/sshmap | 9f932ab35dfee6ebb2f8ab66c59f64e7dc246ceb | [
"Apache-2.0"
] | null | null | null | sshmap/hostlists.py | lunatech/sshmap | 9f932ab35dfee6ebb2f8ab66c59f64e7dc246ceb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
""" A plugin extendable hostlist infrastructure """
"""
Copyright (c) 2010 Yahoo! Inc. 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.apa... | 37.908046 | 126 | 0.665858 | 453 | 3,298 | 4.774834 | 0.445916 | 0.027739 | 0.018493 | 0.026352 | 0.048544 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0.005122 | 0.230443 | 3,298 | 87 | 127 | 37.908046 | 0.847124 | 0.188902 | 0 | 0 | 0 | 0 | 0.108049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022222 | 0.111111 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47c4ffc60e82349bdbec35798b0f75ddb507c1ce | 7,364 | py | Python | examples/compare_delta.py | dmargala/qusp | 3b08e8bea321f7083f00756f558c1d0af0eddd07 | [
"MIT"
] | null | null | null | examples/compare_delta.py | dmargala/qusp | 3b08e8bea321f7083f00756f558c1d0af0eddd07 | [
"MIT"
] | null | null | null | examples/compare_delta.py | dmargala/qusp | 3b08e8bea321f7083f00756f558c1d0af0eddd07 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
import numpy as np
import numpy.ma as ma
import h5py
import qusp
import matplotlib.pyplot as plt
import scipy.interpolate
import fitsio
class DeltaLOS(object):
def __init__(self, thing_id):
path = '/data/lya/deltas/delta-%d.fits' % thing_id
hdulist = fitsio.... | 37.191919 | 134 | 0.650733 | 1,113 | 7,364 | 4.123989 | 0.202156 | 0.016993 | 0.020915 | 0.02549 | 0.340305 | 0.236819 | 0.197603 | 0.163617 | 0.120915 | 0.089325 | 0 | 0.018359 | 0.178979 | 7,364 | 197 | 135 | 37.380711 | 0.74082 | 0.117599 | 0 | 0.116788 | 0 | 0 | 0.146759 | 0.008025 | 0.014599 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065693 | null | null | 0.065693 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
47c961bdadc7f53b712fd3536efdccb8bff3cfba | 4,301 | py | Python | lib/surface/dataflow/logs/list_messages.py | bopopescu/SDK | e6d9aaee2456f706d1d86e8ec2a41d146e33550d | [
"Apache-2.0"
] | null | null | null | lib/surface/dataflow/logs/list_messages.py | bopopescu/SDK | e6d9aaee2456f706d1d86e8ec2a41d146e33550d | [
"Apache-2.0"
] | null | null | null | lib/surface/dataflow/logs/list_messages.py | bopopescu/SDK | e6d9aaee2456f706d1d86e8ec2a41d146e33550d | [
"Apache-2.0"
] | 2 | 2020-11-04T03:08:21.000Z | 2020-11-05T08:14:41.000Z | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 37.4 | 80 | 0.710067 | 531 | 4,301 | 5.621469 | 0.397363 | 0.046901 | 0.045561 | 0.064322 | 0.261307 | 0.164154 | 0.106533 | 0.077052 | 0.077052 | 0.041541 | 0 | 0.003517 | 0.206696 | 4,301 | 114 | 81 | 37.72807 | 0.871336 | 0.31295 | 0 | 0.076923 | 0 | 0 | 0.095371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0 | 0.369231 | 0.015385 | 0.476923 | 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 |
47d2f64d73aa12468baa43a45dccc547377d0094 | 5,572 | py | Python | Ago-Dic-2018/David Perez/PrimerParcial/Ejercicio4Builder.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ago-Dic-2018/David Perez/PrimerParcial/Ejercicio4Builder.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ago-Dic-2018/David Perez/PrimerParcial/Ejercicio4Builder.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | class Director:
__builder = None
def setBuilder(self, builder):
self.__builder = builder
def getOrden(self):
orden = Orden()
pan = self.__builder.preparaPan()
orden.setPan(pan)
carne = self.__builder.agregaCarne()
orden.setCarne(carne)
verduras = self.... | 25.327273 | 60 | 0.603195 | 537 | 5,572 | 6.115456 | 0.102421 | 0.025579 | 0.020097 | 0.040195 | 0.45676 | 0.45676 | 0.45676 | 0.45676 | 0.445493 | 0.429963 | 0 | 0.008963 | 0.299174 | 5,572 | 219 | 61 | 25.442922 | 0.83201 | 0 | 0 | 0.515789 | 0 | 0 | 0.043252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.026316 | 0 | 0 | 0.447368 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47d6b90e98fe305a4442b76121aa1e5ac79e62bc | 1,189 | py | Python | tradefed_cluster/services/acl_service.py | maksonlee/tradefed_cluster | d1153743ce8ddcad752443b23851015630862aea | [
"Apache-2.0"
] | null | null | null | tradefed_cluster/services/acl_service.py | maksonlee/tradefed_cluster | d1153743ce8ddcad752443b23851015630862aea | [
"Apache-2.0"
] | null | null | null | tradefed_cluster/services/acl_service.py | maksonlee/tradefed_cluster | d1153743ce8ddcad752443b23851015630862aea | [
"Apache-2.0"
] | null | null | null | # Lint as: python2, python3
# Copyright 2021 Google LLC
#
# 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 l... | 30.487179 | 74 | 0.746005 | 174 | 1,189 | 5.045977 | 0.609195 | 0.068337 | 0.029613 | 0.036446 | 0.05467 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010194 | 0.174937 | 1,189 | 38 | 75 | 31.289474 | 0.884811 | 0.682927 | 0 | 0 | 0 | 0 | 0.080597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47dbabc3104b2b4f7ba6c873017faee7a8fc709e | 1,758 | py | Python | src/Components/rtms/sixsv/sixsv.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-12-02T14:23:30.000Z | 2021-12-31T15:39:30.000Z | src/Components/rtms/sixsv/sixsv.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 9 | 2020-04-15T16:22:14.000Z | 2022-03-24T13:59:25.000Z | src/Components/rtms/sixsv/sixsv.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """
Functions from Python interface to selected functions from "Second
Simulation of Satellite Signal in the Solar Spectrum (6S)" by
E. Vermote et al.
"""
from numpy import savez, zeros, ones, linspace, array
import sixsv_
PACE_channels = [ 350, 360, 385, 412, 425, 443, 460, 475, 490, 510, 532, 555, 583,
... | 25.852941 | 87 | 0.56314 | 220 | 1,758 | 4.413636 | 0.531818 | 0.036045 | 0.067971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.2719 | 1,758 | 67 | 88 | 26.238806 | 0.664844 | 0.050626 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
47ddd33ff73f6bd0d805d21fec3972d994495761 | 9,002 | py | Python | Backend/src/contract/views.py | Valle1806/EnergyCorp | aba09105eedcb7dc694b201e50953e19e4e2936b | [
"MIT"
] | 1 | 2021-01-21T08:30:57.000Z | 2021-01-21T08:30:57.000Z | Backend/src/contract/views.py | ChristianTaborda/Energycorp | 2447b5af211501450177b0b60852dcb31d6ca12d | [
"MIT"
] | null | null | null | Backend/src/contract/views.py | ChristianTaborda/Energycorp | 2447b5af211501450177b0b60852dcb31d6ca12d | [
"MIT"
] | null | null | null | #============ needed Imports to generate pdf file ===========
import tempfile
from .utils import getInvoiceData, generateHistoryAndInvoices
from django.http import HttpResponse
from django.views.generic import View
from django.template.loader import render_to_string
from weasyprint import HTML
#============ end =======... | 38.470085 | 130 | 0.567652 | 757 | 9,002 | 6.690885 | 0.282695 | 0.035933 | 0.041264 | 0.049358 | 0.467325 | 0.425074 | 0.375518 | 0.360118 | 0.287858 | 0.277789 | 0 | 0.000632 | 0.296823 | 9,002 | 233 | 131 | 38.635193 | 0.799526 | 0.153077 | 0 | 0.420732 | 1 | 0 | 0.118925 | 0.003311 | 0 | 0 | 0 | 0.004292 | 0 | 1 | 0.02439 | false | 0 | 0.109756 | 0 | 0.420732 | 0.006098 | 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 |
47e14b1c5b60077842c8495d50889dcf3bd05f58 | 719 | py | Python | GUI/Radiobutton/File.py | a84885640/Python | 5984f8384abfdbfc83470d1d93b7430297fa654b | [
"Unlicense"
] | 19 | 2018-09-06T01:57:22.000Z | 2022-03-23T04:12:12.000Z | GUI/Radiobutton/File.py | a84885640/Python | 5984f8384abfdbfc83470d1d93b7430297fa654b | [
"Unlicense"
] | null | null | null | GUI/Radiobutton/File.py | a84885640/Python | 5984f8384abfdbfc83470d1d93b7430297fa654b | [
"Unlicense"
] | 43 | 2018-08-02T11:01:11.000Z | 2022-01-03T13:37:27.000Z | #!/usr/bin/python3
import tkinter
from tkinter import *
def select():
selection = "Awesome option " + str(var.get())
label.config(text = selection)
window = Tk()
var = IntVar()
radio1 = Radiobutton(window, text = "Option 1", variable = var, value = 1, command = select)
radio1.pack( anchor = W )
radio2 = Radi... | 24.793103 | 92 | 0.67733 | 95 | 719 | 5.126316 | 0.378947 | 0.13963 | 0.172485 | 0.221766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028716 | 0.176634 | 719 | 28 | 93 | 25.678571 | 0.793919 | 0.023644 | 0 | 0 | 0 | 0 | 0.067047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.