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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1670d96c05509ee69c5b08e889ef1117e0d03dc3 | 3,351 | py | Python | test/programytest/parser/template/graph_tests/test_star.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 5 | 2018-08-21T00:13:45.000Z | 2018-09-01T20:00:55.000Z | test/programytest/parser/template/graph_tests/test_star.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 3 | 2020-07-16T04:00:42.000Z | 2021-03-31T18:52:22.000Z | test/programytest/parser/template/graph_tests/test_star.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 5 | 2018-08-21T00:08:36.000Z | 2018-09-23T06:11:04.000Z | import unittest
import xml.etree.ElementTree as ET
from programy.parser.template.nodes.base import TemplateNode
from programy.parser.template.nodes.word import TemplateWordNode
from programy.parser.template.nodes.star import TemplateStarNode
from programytest.parser.template.graph_tests.graph_test_client import Templ... | 36.423913 | 94 | 0.676216 | 354 | 3,351 | 6.231638 | 0.158192 | 0.094742 | 0.119674 | 0.098368 | 0.830462 | 0.770626 | 0.726201 | 0.633273 | 0.586129 | 0.586129 | 0 | 0.006017 | 0.206506 | 3,351 | 91 | 95 | 36.824176 | 0.823618 | 0 | 0 | 0.666667 | 0 | 0 | 0.131045 | 0.008657 | 0 | 0 | 0 | 0 | 0.395062 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.160494 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 3 |
167d1b10ca35c60047a6e3a5ea224387e15f18e3 | 3,281 | py | Python | dominos/models.py | CharlesGaldin/dominos | 59729a8bdca0ae30a84115a0e93e9b1f259faf0e | [
"MIT"
] | 41 | 2015-12-14T23:21:57.000Z | 2022-01-29T01:11:54.000Z | dominos/models.py | akashkumar916/dominos | 59729a8bdca0ae30a84115a0e93e9b1f259faf0e | [
"MIT"
] | 7 | 2016-05-22T17:23:51.000Z | 2020-08-02T13:09:05.000Z | dominos/models.py | akashkumar916/dominos | 59729a8bdca0ae30a84115a0e93e9b1f259faf0e | [
"MIT"
] | 142 | 2017-04-22T01:08:21.000Z | 2022-03-22T22:29:20.000Z | '''
Dominos Pizza API models.
'''
from dominos.utils import strip_unicode_characters
class Stores(object):
'''
Encapsulates a list of nearby stores returned from the API.
'''
def __init__(self, data):
delivery_available = data.get('localStoreCanDeliverToAddress', False)
collection_store... | 29.294643 | 101 | 0.618409 | 410 | 3,281 | 4.67561 | 0.246341 | 0.050078 | 0.049557 | 0.039124 | 0.213354 | 0.184664 | 0.110589 | 0.110589 | 0.110589 | 0.110589 | 0 | 0.000415 | 0.265163 | 3,281 | 111 | 102 | 29.558559 | 0.794691 | 0.148126 | 0 | 0.25 | 0 | 0 | 0.08456 | 0.018875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296875 | false | 0 | 0.015625 | 0.171875 | 0.609375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
168eced7d0f1ae086dc82aefdc93d3642d6fc9cc | 2,227 | py | Python | meross_iot/utilities/mqtt.py | vBlackOut/MerossIot | 677377cb6bf1ea2206622e5f80b1529837057585 | [
"MIT"
] | null | null | null | meross_iot/utilities/mqtt.py | vBlackOut/MerossIot | 677377cb6bf1ea2206622e5f80b1529837057585 | [
"MIT"
] | null | null | null | meross_iot/utilities/mqtt.py | vBlackOut/MerossIot | 677377cb6bf1ea2206622e5f80b1529837057585 | [
"MIT"
] | null | null | null | import uuid as UUID
from hashlib import md5
def build_device_request_topic(client_uuid: str) -> str:
"""
Builds the MQTT topic where commands should be send to specific devices
:param client_uuid:
:return:
"""
return f"/appliance/{client_uuid}/subscribe"
def build_client_response_topic(user_i... | 27.158537 | 90 | 0.668612 | 311 | 2,227 | 4.601286 | 0.318328 | 0.037736 | 0.025157 | 0.020964 | 0.101328 | 0.101328 | 0.040531 | 0 | 0 | 0 | 0 | 0.00919 | 0.218231 | 2,227 | 81 | 91 | 27.493827 | 0.812751 | 0.365514 | 0 | 0.071429 | 0 | 0 | 0.133279 | 0.073506 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.25 | false | 0.035714 | 0.071429 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
16a2f91fb0662bc975c5fbfb84e5854ec87be1b1 | 8,609 | py | Python | shell/inject/BFDBackdoors/intel/MachoIntel32.py | dromero1452/shellsploit-framework | 38ce78542fd2dd2ac30f6567972d695ede1e4709 | [
"MIT"
] | 2 | 2019-12-23T15:47:02.000Z | 2020-01-06T09:51:57.000Z | shell/inject/BFDBackdoors/intel/MachoIntel32.py | badfish5150/shellsploit-framework | 22bb910d33379ca29ddd10ba93a63e9ff1eab99d | [
"MIT"
] | null | null | null | shell/inject/BFDBackdoors/intel/MachoIntel32.py | badfish5150/shellsploit-framework | 22bb910d33379ca29ddd10ba93a63e9ff1eab99d | [
"MIT"
] | 1 | 2022-01-19T11:38:16.000Z | 2022-01-19T11:38:16.000Z | '''
Copyright (c) 2013-2015, Joshua Pitts
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and t... | 44.606218 | 106 | 0.584156 | 1,066 | 8,609 | 4.688555 | 0.237336 | 0.109244 | 0.022009 | 0.021609 | 0.635654 | 0.62605 | 0.62605 | 0.62605 | 0.62605 | 0.621249 | 0 | 0.089438 | 0.303868 | 8,609 | 192 | 107 | 44.838542 | 0.744535 | 0.044604 | 0 | 0.703125 | 0 | 0.070313 | 0.216991 | 0.136412 | 0 | 0 | 0.006489 | 0 | 0 | 0 | null | null | 0 | 0.007813 | null | null | 0.054688 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16be97b5405057e5f6308d15b2c9e2734a97e512 | 461 | py | Python | convertapi/result.py | mayaizart/convertapi-python | 9afbd4a3b75ebfa7a13366d42801f486eb55cd22 | [
"MIT"
] | 40 | 2018-11-05T01:15:21.000Z | 2022-02-04T21:11:55.000Z | convertapi/result.py | mayaizart/convertapi-python | 9afbd4a3b75ebfa7a13366d42801f486eb55cd22 | [
"MIT"
] | 20 | 2018-09-03T12:31:11.000Z | 2021-11-17T08:06:36.000Z | convertapi/result.py | mayaizart/convertapi-python | 9afbd4a3b75ebfa7a13366d42801f486eb55cd22 | [
"MIT"
] | 15 | 2018-09-25T12:59:52.000Z | 2021-12-17T18:19:13.000Z | from .result_file import ResultFile
class Result:
def __init__(self, response):
self.response = response
@property
def conversion_cost(self):
return self.response['ConversionCost']
@property
def file(self):
return self.files[0]
@property
def files(self):
r... | 21.952381 | 60 | 0.64859 | 56 | 461 | 5.214286 | 0.410714 | 0.164384 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002882 | 0.247289 | 461 | 20 | 61 | 23.05 | 0.838617 | 0 | 0 | 0.2 | 0 | 0 | 0.041215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.066667 | 0.266667 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
16c18a18e784c4ffafd481303f81ffd8ba7290b5 | 229 | py | Python | authentik/providers/saml/utils/__init__.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 15 | 2020-01-05T09:09:57.000Z | 2020-11-28T05:27:39.000Z | authentik/providers/saml/utils/__init__.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 302 | 2020-01-21T08:03:59.000Z | 2020-12-04T05:04:57.000Z | authentik/providers/saml/utils/__init__.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 3 | 2020-03-04T08:21:59.000Z | 2020-08-01T20:37:18.000Z | """Small helper functions"""
import uuid
def get_random_id() -> str:
"""Random hex id"""
# It is very important that these random IDs NOT start with a number.
random_id = "_" + uuid.uuid4().hex
return random_id
| 22.9 | 73 | 0.659389 | 34 | 229 | 4.294118 | 0.735294 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.222707 | 229 | 9 | 74 | 25.444444 | 0.814607 | 0.458515 | 0 | 0 | 0 | 0 | 0.00885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
16c259ffd364e96bfb47f44a54dea273662f7e74 | 10,188 | py | Python | exchange/bitmex/bitmex_client.py | nigelliyang/ccwt_client | 4efb8f2c790145b5f547e350d24413bb8b1bd9ed | [
"Apache-2.0"
] | null | null | null | exchange/bitmex/bitmex_client.py | nigelliyang/ccwt_client | 4efb8f2c790145b5f547e350d24413bb8b1bd9ed | [
"Apache-2.0"
] | null | null | null | exchange/bitmex/bitmex_client.py | nigelliyang/ccwt_client | 4efb8f2c790145b5f547e350d24413bb8b1bd9ed | [
"Apache-2.0"
] | null | null | null | from exchange.bitmex.liveApi.TradeClientBase import *
from exchange.bitmex.liveApi.liveUtils import *
from pyalgotrade.utils import dt
# from exchange.bitmex.liveApi import liveLogger
import pyalgotrade.logger as log
from exchange.bitmex.bitmex_sdk import ApiClient, ApiError
from exchange.bitmex.bitmex import Bitmex
fr... | 32.653846 | 120 | 0.611209 | 1,095 | 10,188 | 5.485845 | 0.219178 | 0.02597 | 0.03962 | 0.03113 | 0.295822 | 0.257866 | 0.203762 | 0.155818 | 0.143499 | 0.143499 | 0 | 0.008263 | 0.251669 | 10,188 | 312 | 121 | 32.653846 | 0.779643 | 0.137417 | 0 | 0.222222 | 0 | 0 | 0.077401 | 0.006344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.05 | 0.111111 | 0.544444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
16d22ee3ac0dc9d20014a80c2a93fb3e9e678e16 | 827 | py | Python | lib_key.py | LordEvron/BTC_bruteforcer | fbf721f0b01d1dadb08a7babf6e78cbbff97e2bc | [
"MIT"
] | null | null | null | lib_key.py | LordEvron/BTC_bruteforcer | fbf721f0b01d1dadb08a7babf6e78cbbff97e2bc | [
"MIT"
] | 1 | 2019-07-25T17:27:26.000Z | 2019-08-26T10:47:01.000Z | lib_key.py | LordEvron/BTC_bruteforcer | fbf721f0b01d1dadb08a7babf6e78cbbff97e2bc | [
"MIT"
] | 3 | 2020-06-12T13:45:03.000Z | 2021-12-31T07:21:30.000Z | import hashlib, binascii
t='123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
def numtowif(numpriv):
step1 = '80'+hex(numpriv)[2:].strip('L').zfill(64)
step2 = hashlib.sha256(binascii.unhexlify(step1)).hexdigest()
step3 = hashlib.sha256(binascii.unhexlify(step2)).hexdigest()
step4 = int(step1 + step3[:8... | 35.956522 | 94 | 0.759371 | 92 | 827 | 6.826087 | 0.48913 | 0.041401 | 0.066879 | 0.095541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142112 | 0.072551 | 827 | 22 | 95 | 37.590909 | 0.676662 | 0.272068 | 0 | 0 | 0 | 0 | 0.103679 | 0.09699 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
16e9acf7cac6ab781aca65847055c48d5b09aa73 | 377 | gyp | Python | binding.gyp | neolp/node-vcgencmd | 42febf5e83dce2151ac4e7165491b5ade43df5dc | [
"MIT"
] | 5 | 2015-04-04T15:05:22.000Z | 2018-11-15T06:13:24.000Z | binding.gyp | neolp/node-vcgencmd | 42febf5e83dce2151ac4e7165491b5ade43df5dc | [
"MIT"
] | 2 | 2015-09-26T12:31:39.000Z | 2015-12-29T14:28:22.000Z | binding.gyp | neolp/node-vcgencmd | 42febf5e83dce2151ac4e7165491b5ade43df5dc | [
"MIT"
] | 4 | 2015-09-26T07:38:59.000Z | 2021-04-22T22:49:55.000Z | {
"targets": [{
"target_name": "binding",
"sources": ["binding.cc"],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"/opt/vc/include",
"/opt/vc/include/interface/vcos/pthreads",
"/opt/vc/include/interface/vmcs_host/linux"
],
... | 25.133333 | 55 | 0.464191 | 36 | 377 | 4.75 | 0.666667 | 0.116959 | 0.210526 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.312997 | 377 | 14 | 56 | 26.928571 | 0.660232 | 0 | 0 | 0 | 0 | 0 | 0.522546 | 0.212202 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc46db2aea25d57af92647fc1b9793f0136864cf | 252 | py | Python | tracking/management/commands/pdq_load_data.py | mohdbakhrayba/it-assets | ea03882ffd70e40c82f5684dc4980ff46520843b | [
"Apache-2.0"
] | null | null | null | tracking/management/commands/pdq_load_data.py | mohdbakhrayba/it-assets | ea03882ffd70e40c82f5684dc4980ff46520843b | [
"Apache-2.0"
] | null | null | null | tracking/management/commands/pdq_load_data.py | mohdbakhrayba/it-assets | ea03882ffd70e40c82f5684dc4980ff46520843b | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import BaseCommand
from tracking.utils_pdq import pdq_load_computers
class Command(BaseCommand):
help = 'Loads data from PDQ Inventory scans.'
def handle(self, *args, **options):
pdq_load_computers()
| 25.2 | 51 | 0.75 | 33 | 252 | 5.575758 | 0.727273 | 0.076087 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 252 | 9 | 52 | 28 | 0.87619 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bc5d5173e601aa94abfdeba80e6d01021949e156 | 1,205 | py | Python | composer/algorithms/factorize/__init__.py | murthyn/composer | 2a04cf387dd8558556500f7ef2bc6d3d131043d5 | [
"Apache-2.0"
] | null | null | null | composer/algorithms/factorize/__init__.py | murthyn/composer | 2a04cf387dd8558556500f7ef2bc6d3d131043d5 | [
"Apache-2.0"
] | null | null | null | composer/algorithms/factorize/__init__.py | murthyn/composer | 2a04cf387dd8558556500f7ef2bc6d3d131043d5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 MosaicML. All Rights Reserved.
"""Decomposes linear operators into pairs of smaller linear operators.
See :class:`~composer.algorithms.Factorize` or the :doc:`Method Card </method_cards/factorize>` for details.
"""
from composer.algorithms.factorize.factorize import Factorize as Factorize
from compo... | 44.62963 | 114 | 0.834855 | 132 | 1,205 | 7.424242 | 0.310606 | 0.165306 | 0.247959 | 0.253061 | 0.427551 | 0.427551 | 0.333673 | 0.120408 | 0 | 0 | 0 | 0.009234 | 0.101245 | 1,205 | 26 | 115 | 46.346154 | 0.89566 | 0.185892 | 0 | 0 | 0 | 0 | 0.135524 | 0.025667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bc73408bce8f9e516c4c9502707825cbcd172223 | 398 | py | Python | src/coolpyler/visitors/visitor.py | pat-and-mat/cool-compiler-2021 | 2d34144d7e73b4375c1d9e6eeacf9966c440ecf8 | [
"MIT"
] | null | null | null | src/coolpyler/visitors/visitor.py | pat-and-mat/cool-compiler-2021 | 2d34144d7e73b4375c1d9e6eeacf9966c440ecf8 | [
"MIT"
] | null | null | null | src/coolpyler/visitors/visitor.py | pat-and-mat/cool-compiler-2021 | 2d34144d7e73b4375c1d9e6eeacf9966c440ecf8 | [
"MIT"
] | 1 | 2021-03-15T00:18:25.000Z | 2021-03-15T00:18:25.000Z | from coolpyler.visitors.cool.type_builder import TypeBuilderVisitor
from coolpyler.visitors.cool.type_collector import TypeCollectorVisitor
class Visitor:
def __init__(self, errors=None):
self.visitors = [TypeCollectorVisitor(errors), TypeBuilderVisitor(errors)]
def visit(self, ast):
for visi... | 30.615385 | 82 | 0.731156 | 44 | 398 | 6.477273 | 0.5 | 0.091228 | 0.147368 | 0.175439 | 0.203509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190955 | 398 | 12 | 83 | 33.166667 | 0.885093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bc7dc06ea1c6f715869d927ebf8846d1204c6c11 | 312 | py | Python | stubs/uiflow_stickc_plus/wifiCfg.py | c99koder/m5stickc-aerogarden | ac7d157d4ae4e47151896a7c7aee4c574ce52169 | [
"Apache-2.0"
] | 1 | 2022-03-02T10:11:07.000Z | 2022-03-02T10:11:07.000Z | stubs/uiflow_stickc_plus/wifiCfg.py | c99koder/m5stickc-aerogarden | ac7d157d4ae4e47151896a7c7aee4c574ce52169 | [
"Apache-2.0"
] | null | null | null | stubs/uiflow_stickc_plus/wifiCfg.py | c99koder/m5stickc-aerogarden | ac7d157d4ae4e47151896a7c7aee4c574ce52169 | [
"Apache-2.0"
] | null | null | null | from m5stack import btnB as btnB
from typing import Any
wlan_sta: Any
def screenShow() -> None: ...
def reconnect(block: bool = ...): ...
def doConnect(ntwrk_ssid, netwrk_pass, lcdShow: bool = ...): ...
def autoConnect(lcdShow: bool = ...): ...
def saveWiFi(ssid, password) -> None: ...
def isconnected(): ...
| 26 | 64 | 0.657051 | 39 | 312 | 5.179487 | 0.641026 | 0.10396 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003788 | 0.153846 | 312 | 11 | 65 | 28.363636 | 0.761364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.666667 | false | 0.222222 | 0.222222 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
bc9718f2a59bc7c40000c6490c504d774317002d | 606 | py | Python | testkit/stress.py | glesage/neo4j-python-driver | 540af77063f0ffddc6d73d371bcde90c4e75032d | [
"Apache-2.0"
] | 739 | 2015-05-29T21:53:27.000Z | 2022-03-24T00:13:53.000Z | testkit/stress.py | glesage/neo4j-python-driver | 540af77063f0ffddc6d73d371bcde90c4e75032d | [
"Apache-2.0"
] | 264 | 2015-08-26T13:45:33.000Z | 2022-03-17T17:26:50.000Z | testkit/stress.py | glesage/neo4j-python-driver | 540af77063f0ffddc6d73d371bcde90c4e75032d | [
"Apache-2.0"
] | 178 | 2015-05-21T08:10:54.000Z | 2022-03-31T11:49:08.000Z | import subprocess
import os
import sys
if __name__ == "__main__":
# Until below works
sys.exit(0)
cmd = ["python", "-m", "tox", "-c", "tox-performance.ini"]
uri = "%s://%s:%s" % (
os.environ["TEST_NEO4J_SCHEME"],
os.environ["TEST_NEO4J_HOST"],
os.environ["TEST_NEO4J... | 30.3 | 62 | 0.569307 | 72 | 606 | 4.472222 | 0.527778 | 0.139752 | 0.201863 | 0.279503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020501 | 0.275578 | 606 | 19 | 63 | 31.894737 | 0.712984 | 0.028053 | 0 | 0 | 0 | 0 | 0.272572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
bcb644d4f6ee72ad48aa9cf02424180e0b93e2f7 | 337 | py | Python | cornflow/schemas/schemas.py | baobabsoluciones/cornflow-server | 704f23be569a95b62c88b598742963d71361781b | [
"MIT"
] | 5 | 2021-11-24T02:43:22.000Z | 2021-12-10T09:28:32.000Z | cornflow/schemas/schemas.py | baobabsoluciones/cornflow-server | 704f23be569a95b62c88b598742963d71361781b | [
"MIT"
] | 125 | 2021-09-01T12:06:48.000Z | 2022-03-30T11:32:57.000Z | cornflow-server/cornflow/schemas/schemas.py | ggsdc/corn | 4c17c46a70f95b8882bcb6a55ef7daa1f69e0456 | [
"MIT"
] | 1 | 2022-03-23T17:57:59.000Z | 2022-03-23T17:57:59.000Z | from marshmallow import fields, Schema
class SchemaListApp(Schema):
name = fields.Str(required=True)
class SchemaOneApp(SchemaListApp):
instance = fields.Raw(required=True)
solution = fields.Raw(required=True)
config = fields.Raw(required=True)
class SchemaRequest(Schema):
dag_name = fields.St... | 21.0625 | 40 | 0.74184 | 40 | 337 | 6.225 | 0.45 | 0.240964 | 0.204819 | 0.253012 | 0.200803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154303 | 337 | 15 | 41 | 22.466667 | 0.873684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bcd5fce6db167ddde03fc5ece28aafef68d98cee | 160 | py | Python | vectorTools/CopyToMem.py | baumi-berlin/baumiTools | febfc79812eb60116780cf2233f5dcffa07e4c6c | [
"MIT"
] | 1 | 2018-11-09T14:47:07.000Z | 2018-11-09T14:47:07.000Z | vectorTools/CopyToMem.py | baumi-berlin/baumiTools | febfc79812eb60116780cf2233f5dcffa07e4c6c | [
"MIT"
] | null | null | null | vectorTools/CopyToMem.py | baumi-berlin/baumiTools | febfc79812eb60116780cf2233f5dcffa07e4c6c | [
"MIT"
] | 1 | 2018-07-12T15:23:06.000Z | 2018-07-12T15:23:06.000Z | from osgeo import ogr
def CopyToMem(path):
drvMemV = ogr.GetDriverByName('Memory')
f_open = drvMemV.CopyDataSource(ogr.Open(path),'')
return f_open | 26.666667 | 54 | 0.71875 | 21 | 160 | 5.380952 | 0.666667 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1625 | 160 | 6 | 55 | 26.666667 | 0.843284 | 0 | 0 | 0 | 0 | 0 | 0.037267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bcd8c546ab1f85fb92a5272612b3f9a6cdcd3902 | 347 | py | Python | eggs/bx_python-0.7.2-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/random_lines.py | psnehal/MethylSig | 5efad71e71ff2515feff2e49579c856ef9a1bbd8 | [
"CC-BY-3.0"
] | null | null | null | eggs/bx_python-0.7.2-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/random_lines.py | psnehal/MethylSig | 5efad71e71ff2515feff2e49579c856ef9a1bbd8 | [
"CC-BY-3.0"
] | null | null | null | eggs/bx_python-0.7.2-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/random_lines.py | psnehal/MethylSig | 5efad71e71ff2515feff2e49579c856ef9a1bbd8 | [
"CC-BY-3.0"
] | null | null | null | #!/afs/bx.psu.edu/project/pythons/py2.7-linux-x86_64-ucs2/bin/python2.7
"""
Script to select random lines from a file. Reads entire file into
memory!
TODO: Replace this with a more elegant implementation.
"""
import sys
import random
ndesired = int( sys.argv[1] )
for line in random.sample( sys.stdin.readlines(), n... | 20.411765 | 71 | 0.731988 | 56 | 347 | 4.517857 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033784 | 0.146974 | 347 | 16 | 72 | 21.6875 | 0.820946 | 0.201729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | null | null | 0 | 0.4 | null | null | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bcdf4c9937f8382c4bb9d3c8b04489eccc795b40 | 136 | py | Python | samples/nlp_sentiment_analysis/sentiment_analysis/models/__init__.py | katyamust/ml-expr-fw | 5ede3ff1f777430cf25e8731e4798fc37387fb9d | [
"MIT"
] | null | null | null | samples/nlp_sentiment_analysis/sentiment_analysis/models/__init__.py | katyamust/ml-expr-fw | 5ede3ff1f777430cf25e8731e4798fc37387fb9d | [
"MIT"
] | null | null | null | samples/nlp_sentiment_analysis/sentiment_analysis/models/__init__.py | katyamust/ml-expr-fw | 5ede3ff1f777430cf25e8731e4798fc37387fb9d | [
"MIT"
] | null | null | null | from .base_model import BaseModel
from .sentiment_classifier import SentimentClassifier
__all__ = ["BaseModel", "SentimentClassifier"]
| 27.2 | 53 | 0.830882 | 13 | 136 | 8.230769 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095588 | 136 | 4 | 54 | 34 | 0.869919 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bcea8f516d840426a9fdac1517d8cb3dbb87b2c5 | 305 | py | Python | routes.py | forca-inf/forca | 99b63c63a7aaebd6f11cb4f73ec54de54ce25986 | [
"BSD-3-Clause"
] | 6 | 2018-01-25T01:07:55.000Z | 2019-04-26T23:58:29.000Z | routes.py | forca-inf/forca | 99b63c63a7aaebd6f11cb4f73ec54de54ce25986 | [
"BSD-3-Clause"
] | null | null | null | routes.py | forca-inf/forca | 99b63c63a7aaebd6f11cb4f73ec54de54ce25986 | [
"BSD-3-Clause"
] | 2 | 2018-02-03T02:55:56.000Z | 2018-02-06T19:55:10.000Z | routes_in=(('/forca/(?P<a>.*)','/\g<a>'),)
default_application = 'ForCA' # ordinarily set in base routes.py
default_controller = 'default' # ordinarily set in app-specific routes.py
default_function = 'index' # ordinarily set in app-specific routes.py
routes_out=(('/(?P<a>.*)','/forca/\g<a>'),)
| 50.833333 | 74 | 0.662295 | 43 | 305 | 4.581395 | 0.418605 | 0.19797 | 0.228426 | 0.182741 | 0.345178 | 0.345178 | 0.345178 | 0 | 0 | 0 | 0 | 0 | 0.12459 | 305 | 5 | 75 | 61 | 0.737828 | 0.37377 | 0 | 0 | 0 | 0 | 0.326203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
bcf61345916e16311824ef39d36f516b0ff0fab9 | 312 | py | Python | api/src/Wordle.py | SamuelJansen/wordle | 4fe009ef14bf26b0604d0e6fb8e7a5d0d85bff02 | [
"MIT"
] | null | null | null | api/src/Wordle.py | SamuelJansen/wordle | 4fe009ef14bf26b0604d0e6fb8e7a5d0d85bff02 | [
"MIT"
] | null | null | null | api/src/Wordle.py | SamuelJansen/wordle | 4fe009ef14bf26b0604d0e6fb8e7a5d0d85bff02 | [
"MIT"
] | null | null | null | from flask import render_template
from python_framework import ResourceManager
import ModelAssociation
app = ResourceManager.initialize(__name__, ModelAssociation.MODEL)
@app.route(f'{app.api.baseUrl}')
def home():
return render_template('home-page.html', staticUrl=ResourceManager.getApiStaticUrl(app))
| 26 | 92 | 0.814103 | 36 | 312 | 6.861111 | 0.666667 | 0.11336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 312 | 11 | 93 | 28.363636 | 0.869718 | 0 | 0 | 0 | 0 | 0 | 0.099359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 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 | 1 | 1 | 1 | 0 | 0 | 3 |
4c117400735e13953b24a3a4bf392bfb21a8a8d7 | 54 | py | Python | python/testData/psi/CallInAssignment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/psi/CallInAssignment.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/psi/CallInAssignment.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | etree.SubElement(dictionary, u'Name').text = dict_name | 54 | 54 | 0.796296 | 8 | 54 | 5.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 54 | 1 | 54 | 54 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c33a8af953880ba3dc16d4b3ebe3846515741a8 | 2,389 | py | Python | test_thumbnail_maker.py | ffaccia/python-concurrency-getting-started | 8056428a6fdc7adb5fe7b17c9241bd61dee4ab57 | [
"MIT"
] | 36 | 2017-11-07T20:37:27.000Z | 2022-02-25T09:12:45.000Z | test_thumbnail_maker.py | ffaccia/python-concurrency-getting-started | 8056428a6fdc7adb5fe7b17c9241bd61dee4ab57 | [
"MIT"
] | 3 | 2019-12-26T05:13:55.000Z | 2020-03-07T06:59:56.000Z | test_thumbnail_maker.py | ffaccia/python-concurrency-getting-started | 8056428a6fdc7adb5fe7b17c9241bd61dee4ab57 | [
"MIT"
] | 69 | 2017-10-19T03:58:37.000Z | 2022-03-01T15:38:49.000Z | from thumbnail_maker import ThumbnailMakerService
IMG_URLS = \
['https://dl.dropboxusercontent.com/s/2fu69d8lfesbhru/pexels-photo-48603.jpeg',
'https://dl.dropboxusercontent.com/s/zch88m6sb8a7bm1/pexels-photo-134392.jpeg',
'https://dl.dropboxusercontent.com/s/lsr6dxw5m2ep5qt/pexels-photo-135130.jpeg',
... | 68.257143 | 84 | 0.764337 | 280 | 2,389 | 6.492857 | 0.257143 | 0.10011 | 0.357536 | 0.40044 | 0.469747 | 0.453795 | 0 | 0 | 0 | 0 | 0 | 0.119891 | 0.078275 | 2,389 | 34 | 85 | 70.264706 | 0.705722 | 0 | 0 | 0 | 0 | 0 | 0.826706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.03125 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4c3961cad75a42b45854e9097748d0ed1230f040 | 1,618 | py | Python | src/phoenix/batch_systems/__init__.py | stjude/phoenix | 08559d8886b23be25bae804792e533c92c68a61b | [
"Apache-2.0"
] | null | null | null | src/phoenix/batch_systems/__init__.py | stjude/phoenix | 08559d8886b23be25bae804792e533c92c68a61b | [
"Apache-2.0"
] | null | null | null | src/phoenix/batch_systems/__init__.py | stjude/phoenix | 08559d8886b23be25bae804792e533c92c68a61b | [
"Apache-2.0"
] | 1 | 2021-02-20T17:03:24.000Z | 2021-02-20T17:03:24.000Z | #!/usr/bin/env python3
"""
Initialization
+--------------------------------------------------------------------------+
| Copyright 2019 St. Jude Children's Research Hospital |
| |
| Licensed under a modified version of the Apa... | 57.785714 | 76 | 0.580964 | 158 | 1,618 | 5.911392 | 0.601266 | 0.070664 | 0.102784 | 0.147752 | 0.194861 | 0.194861 | 0 | 0 | 0 | 0 | 0 | 0.006014 | 0.280593 | 1,618 | 27 | 77 | 59.925926 | 0.796392 | 0.736712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4c4f376687c8a0fb35edddc18f72bc7bb607b146 | 1,090 | py | Python | directory/apps/users_app/models.py | codingwithahmad/flask_directory | fa929d1d404c0b5216d1d4c9d34e16526c699037 | [
"MIT"
] | null | null | null | directory/apps/users_app/models.py | codingwithahmad/flask_directory | fa929d1d404c0b5216d1d4c9d34e16526c699037 | [
"MIT"
] | null | null | null | directory/apps/users_app/models.py | codingwithahmad/flask_directory | fa929d1d404c0b5216d1d4c9d34e16526c699037 | [
"MIT"
] | null | null | null | from directory import db
from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import validates
from werkzeug.security import generate_password_hash, check_password_hash
class User(db.Model):
__tablename__ = "users"
id = Column(Integer(), primary_key=True)
username = Column(String(32), uni... | 29.459459 | 73 | 0.682569 | 132 | 1,090 | 5.515152 | 0.409091 | 0.065934 | 0.054945 | 0.035714 | 0.10989 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.008294 | 0.225688 | 1,090 | 36 | 74 | 30.277778 | 0.854265 | 0 | 0 | 0.08 | 1 | 0 | 0.098165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.36 | 0.16 | 0.04 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4c512c37eb53b21b66b8e6953ce941203b3f7a86 | 1,911 | py | Python | Lectures_Codes/examples-10/sis/people.py | MichalKyjovsky/NPRG065_Programing_in_Python | 14436fbf8f0e547ab084083135a84c8ae49e083c | [
"MIT"
] | null | null | null | Lectures_Codes/examples-10/sis/people.py | MichalKyjovsky/NPRG065_Programing_in_Python | 14436fbf8f0e547ab084083135a84c8ae49e083c | [
"MIT"
] | null | null | null | Lectures_Codes/examples-10/sis/people.py | MichalKyjovsky/NPRG065_Programing_in_Python | 14436fbf8f0e547ab084083135a84c8ae49e083c | [
"MIT"
] | null | null | null | from abc import ABC
from sis.repos import Repo
from sis.courses import course_db
from sis.schedule import schedule_db
class LdapUser(ABC):
def __init__(self, ldap_id, name, **kwargs):
super().__init__(**kwargs)
self._ldap_id = ldap_id
self._name = name
@property
def ldap_id(self):... | 30.822581 | 224 | 0.716902 | 251 | 1,911 | 5.031873 | 0.215139 | 0.130641 | 0.043547 | 0.066508 | 0.337292 | 0.337292 | 0.316706 | 0.316706 | 0.288994 | 0.247031 | 0 | 0 | 0.186813 | 1,911 | 62 | 225 | 30.822581 | 0.812741 | 0 | 0 | 0.238095 | 0 | 0 | 0.041318 | 0.014644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.309524 | false | 0 | 0.095238 | 0.166667 | 0.690476 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4c602de3c5ad2bd1cbaeb981b24d93475c8ca1cb | 187 | py | Python | rw_bootcamp/__init__.py | rytWAN/bootcamp_utils | ea1d7fc5b1933f7ca795cd4607f336ad2e5c3448 | [
"MIT"
] | null | null | null | rw_bootcamp/__init__.py | rytWAN/bootcamp_utils | ea1d7fc5b1933f7ca795cd4607f336ad2e5c3448 | [
"MIT"
] | null | null | null | rw_bootcamp/__init__.py | rytWAN/bootcamp_utils | ea1d7fc5b1933f7ca795cd4607f336ad2e5c3448 | [
"MIT"
] | null | null | null | """Top-level package for utilities for bootcamp."""
from .na_utils import *
from .bioinfo_dicts import *
__author__ = 'Richie Wan'
__email__ = 'richie.wan@epfl.ch'
__version__ = '0.0.1' | 23.375 | 51 | 0.727273 | 27 | 187 | 4.518519 | 0.777778 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.13369 | 187 | 8 | 52 | 23.375 | 0.734568 | 0.240642 | 0 | 0 | 0 | 0 | 0.240876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4c717cbf9ef70f057e3a0a9e1225ed79f1564cec | 107 | py | Python | uwsgi/encore-old/page_parts/apps.py | btardio/encore-swarm | e81d6a28cdd55ca593e19d3a91c069dbca41b736 | [
"MIT"
] | null | null | null | uwsgi/encore-old/page_parts/apps.py | btardio/encore-swarm | e81d6a28cdd55ca593e19d3a91c069dbca41b736 | [
"MIT"
] | null | null | null | uwsgi/encore-old/page_parts/apps.py | btardio/encore-swarm | e81d6a28cdd55ca593e19d3a91c069dbca41b736 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class EncorePartsPageConfig(AppConfig):
name = 'encore_parts_page'
| 17.833333 | 39 | 0.794393 | 12 | 107 | 6.916667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 107 | 5 | 40 | 21.4 | 0.902174 | 0 | 0 | 0 | 0 | 0 | 0.158879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4c747049e97cc2eea0489dc413c0cecc273cf4cb | 948 | py | Python | tests/test_public_v1.py | ninemoreminutes/lmiapi | 87fd27299fdbb02a9e03f31b4475a5121f8f2cb5 | [
"BSD-3-Clause"
] | null | null | null | tests/test_public_v1.py | ninemoreminutes/lmiapi | 87fd27299fdbb02a9e03f31b4475a5121f8f2cb5 | [
"BSD-3-Clause"
] | null | null | null | tests/test_public_v1.py | ninemoreminutes/lmiapi | 87fd27299fdbb02a9e03f31b4475a5121f8f2cb5 | [
"BSD-3-Clause"
] | 4 | 2018-09-14T15:39:45.000Z | 2022-03-16T01:52:08.000Z | # Py.test
import pytest
pytestmark = pytest.mark.nondestructive
def test_auth_with_company_id_and_psk(public_api_v1):
result = public_api_v1.authentication()
assert result and result.get('success')
def test_auth_with_auth_file(public_api_v1_auth_file):
result = public_api_v1_auth_file.authentication()
... | 22.571429 | 70 | 0.800633 | 145 | 948 | 4.751724 | 0.206897 | 0.208999 | 0.255443 | 0.123367 | 0.719884 | 0.628447 | 0.476052 | 0.272859 | 0.272859 | 0.197388 | 0 | 0.019139 | 0.118143 | 948 | 41 | 71 | 23.121951 | 0.805024 | 0.007384 | 0 | 0.217391 | 0 | 0 | 0.022364 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.347826 | false | 0 | 0.043478 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5bbdb803a990d72c1d42a355ad00fb0c1abf53c | 445 | py | Python | p8(Lemmatizing with NLTK).py | mayurjainf007/Preprocesssing-Words | 1c83e2f6fc1d14919fb0b45ddca6267b4d679f6b | [
"MIT"
] | null | null | null | p8(Lemmatizing with NLTK).py | mayurjainf007/Preprocesssing-Words | 1c83e2f6fc1d14919fb0b45ddca6267b4d679f6b | [
"MIT"
] | null | null | null | p8(Lemmatizing with NLTK).py | mayurjainf007/Preprocesssing-Words | 1c83e2f6fc1d14919fb0b45ddca6267b4d679f6b | [
"MIT"
] | null | null | null | from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer()
print(lemmatizer.lemmatize("cats"))
print(lemmatizer.lemmatize("cacti"))
print(lemmatizer.lemmatize("geese"))
print(lemmatizer.lemmatize("rocks"))
print(lemmatizer.lemmatize("python"))
print(lemmatizer.lemmatize("better", pos="a"))
##p... | 31.785714 | 47 | 0.737079 | 48 | 445 | 6.833333 | 0.395833 | 0.411585 | 0.658537 | 0.115854 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074157 | 445 | 13 | 48 | 34.230769 | 0.796117 | 0.260674 | 0 | 0 | 0 | 0 | 0.103226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.75 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d5c6c9205711d3a994696918cca94d01eea6893b | 378 | py | Python | setup.py | Dilan1020/PyColorPalette | 64c48cfe0228ef3022f472a3b97c3eecc190b3d7 | [
"MIT"
] | 58 | 2018-06-24T02:53:40.000Z | 2022-03-25T08:37:52.000Z | setup.py | Dilan1020/PyColorPalette | 64c48cfe0228ef3022f472a3b97c3eecc190b3d7 | [
"MIT"
] | null | null | null | setup.py | Dilan1020/PyColorPalette | 64c48cfe0228ef3022f472a3b97c3eecc190b3d7 | [
"MIT"
] | 9 | 2018-06-24T05:39:56.000Z | 2021-08-10T21:05:09.000Z | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(name="PyColorPalette", version='1.2.2', author="Dilan Ozkaynak", author_email="DilanJames10@gmail.com", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/Dilan... | 63 | 290 | 0.785714 | 49 | 378 | 5.897959 | 0.714286 | 0.207612 | 0.131488 | 0.207612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025424 | 0.063492 | 378 | 6 | 290 | 63 | 0.79096 | 0 | 0 | 0 | 0 | 0 | 0.319261 | 0.058047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 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 | 3 |
d5efe0d98e265204f1d0f52941e6e794e4ba457a | 288 | py | Python | pyibisami/__init__.py | FranzForstmayr/PyAMI | 498aae610bd1c6c5e06b23192850dc659c98b4cf | [
"BSD-2-Clause"
] | null | null | null | pyibisami/__init__.py | FranzForstmayr/PyAMI | 498aae610bd1c6c5e06b23192850dc659c98b4cf | [
"BSD-2-Clause"
] | null | null | null | pyibisami/__init__.py | FranzForstmayr/PyAMI | 498aae610bd1c6c5e06b23192850dc659c98b4cf | [
"BSD-2-Clause"
] | null | null | null | """
A package of Python modules, used to configure and test IBIS-AMI models.
.. moduleauthor:: David Banas <capn.freako@gmail.com>
Original Author: David Banas <capn.freako@gmail.com>
Original Date: 3 July 2012
Copyright (c) 2012 by David Banas; All rights reserved World wide.
"""
| 24 | 72 | 0.739583 | 44 | 288 | 4.840909 | 0.772727 | 0.140845 | 0.131455 | 0.187793 | 0.338028 | 0.338028 | 0.338028 | 0 | 0 | 0 | 0 | 0.03719 | 0.159722 | 288 | 11 | 73 | 26.181818 | 0.842975 | 0.96875 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
91188c54f09131badb85aa93c8cbefc49cc1f442 | 316 | py | Python | eventsourcing/tests/test_actors_with_django.py | alexanderlarin/eventsourcing | 6f2a4ded3c783ba3ee465243a48f66ecdee20f52 | [
"BSD-3-Clause"
] | 1 | 2020-02-10T08:12:31.000Z | 2020-02-10T08:12:31.000Z | eventsourcing/tests/test_actors_with_django.py | alexanderlarin/eventsourcing | 6f2a4ded3c783ba3ee465243a48f66ecdee20f52 | [
"BSD-3-Clause"
] | null | null | null | eventsourcing/tests/test_actors_with_django.py | alexanderlarin/eventsourcing | 6f2a4ded3c783ba3ee465243a48f66ecdee20f52 | [
"BSD-3-Clause"
] | null | null | null | from eventsourcing.tests.sequenced_item_tests.test_django_record_manager import DjangoTestCase
from eventsourcing.application.django import DjangoApplication
from eventsourcing.tests.test_actors import TestActors
class TestActorsWithDjango(DjangoTestCase, TestActors):
infrastructure_class = DjangoApplication
| 39.5 | 94 | 0.886076 | 32 | 316 | 8.53125 | 0.5625 | 0.186813 | 0.161172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 316 | 7 | 95 | 45.142857 | 0.934932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9120f811550fe905b110e92059a6fc57e4c6c802 | 194 | py | Python | examples/remote_accesses.py | Paulhb7/cyberwatch_api_toolbox | 91e766c8c736f1f23e5d0d707b18bb4e72b39a1e | [
"MIT"
] | null | null | null | examples/remote_accesses.py | Paulhb7/cyberwatch_api_toolbox | 91e766c8c736f1f23e5d0d707b18bb4e72b39a1e | [
"MIT"
] | null | null | null | examples/remote_accesses.py | Paulhb7/cyberwatch_api_toolbox | 91e766c8c736f1f23e5d0d707b18bb4e72b39a1e | [
"MIT"
] | null | null | null | """Get all the remote accesses"""
from cbw_api_toolbox.cbw_api import CBWApi
API_KEY = ''
SECRET_KEY = ''
API_URL = ''
CLIENT = CBWApi(API_URL, API_KEY, SECRET_KEY)
CLIENT.remote_accesses()
| 16.166667 | 45 | 0.731959 | 30 | 194 | 4.4 | 0.5 | 0.212121 | 0.181818 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14433 | 194 | 11 | 46 | 17.636364 | 0.795181 | 0.139175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9121b42a3c6d0be2b0beddfe61c46aee804b6e22 | 707 | py | Python | Python/longest_palindrome.py | agodi/Algorithms | da709a074e3a5179d453dc8362cba9f177fe7700 | [
"MIT"
] | null | null | null | Python/longest_palindrome.py | agodi/Algorithms | da709a074e3a5179d453dc8362cba9f177fe7700 | [
"MIT"
] | null | null | null | Python/longest_palindrome.py | agodi/Algorithms | da709a074e3a5179d453dc8362cba9f177fe7700 | [
"MIT"
] | null | null | null | def find_longest_palindrome(string):
if is_palindrome(string):
return string
left = find_longest_palindrome(string[:-1])
right = find_longest_palindrome(string[1:])
middle = find_longest_palindrome(string[1:-1])
if len(left) >= len(right) and len(left) >= len(middle):
return left
... | 27.192308 | 63 | 0.615276 | 91 | 707 | 4.648352 | 0.252747 | 0.264775 | 0.248227 | 0.319149 | 0.198582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015355 | 0.263083 | 707 | 26 | 64 | 27.192308 | 0.796545 | 0 | 0 | 0.090909 | 0 | 0 | 0.025424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 0.045455 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
914ca811f292031d06c598b2a8f98d771e28561d | 84 | py | Python | python/255.verify-preorder-sequence-in-binary-search-tree.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/255.verify-preorder-sequence-in-binary-search-tree.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/255.verify-preorder-sequence-in-binary-search-tree.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def verifyPreorder(self, preorder: List[int]) -> bool:
| 21 | 58 | 0.630952 | 9 | 84 | 5.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 84 | 3 | 59 | 28 | 0.84127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9151b0555e3d498dc4d7b78aa0e4307dd8e97941 | 651 | py | Python | pystellibs/ezunits/__init__.py | lcjohnso/pystellibs | 3df5d029df61e5488c5dae3422ec8b616298e85f | [
"MIT"
] | 35 | 2016-10-05T13:36:38.000Z | 2022-03-03T16:32:19.000Z | pystellibs/ezunits/__init__.py | lcjohnso/pystellibs | 3df5d029df61e5488c5dae3422ec8b616298e85f | [
"MIT"
] | 32 | 2016-10-28T08:59:35.000Z | 2021-11-22T16:11:29.000Z | pystellibs/ezunits/__init__.py | lcjohnso/pystellibs | 3df5d029df61e5488c5dae3422ec8b616298e85f | [
"MIT"
] | 14 | 2016-10-18T19:03:31.000Z | 2022-03-22T23:43:36.000Z | # -*- coding: utf-8 -*-
"""
pint
~~~~
Pint is Python module/package to define, operate and manipulate
**physical quantities**: the product of a numerical value and a
unit of measurement. It allows arithmetic operations between them
and conversions from and to different units.
:copyright: (... | 27.125 | 108 | 0.698925 | 82 | 651 | 5.5 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.198157 | 651 | 23 | 109 | 28.304348 | 0.85249 | 0.642089 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 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 | 1 | 1 | 0 | 0 | 3 |
e6845a2fbc3b29301cbb68d50dea9f4bd1c711d0 | 114 | py | Python | feedzero/users/apps.py | dammitjim/badfeed | 10e0059ff4af36ea2ff67e93a8e3bbb342137af9 | [
"Apache-2.0"
] | null | null | null | feedzero/users/apps.py | dammitjim/badfeed | 10e0059ff4af36ea2ff67e93a8e3bbb342137af9 | [
"Apache-2.0"
] | 17 | 2020-02-12T00:04:15.000Z | 2021-09-08T01:03:15.000Z | feedzero/users/apps.py | dammitjim/badfeed | 10e0059ff4af36ea2ff67e93a8e3bbb342137af9 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class UsersConfig(AppConfig):
name = "feedzero.users"
label = "users"
| 16.285714 | 33 | 0.710526 | 13 | 114 | 6.230769 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192982 | 114 | 6 | 34 | 19 | 0.880435 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e68a81b9ac44707e13298ad3db55c8b66298ef23 | 252 | py | Python | util/decorators/__init__.py | tchlux/util | eff37464c7e913377398025adf76b057f9630b35 | [
"MIT"
] | 4 | 2021-04-22T20:19:40.000Z | 2022-01-30T18:57:23.000Z | util/decorators/__init__.py | tchlux/util | eff37464c7e913377398025adf76b057f9630b35 | [
"MIT"
] | 1 | 2022-01-24T14:10:27.000Z | 2022-01-30T16:42:53.000Z | util/decorators/__init__.py | tchlux/util | eff37464c7e913377398025adf76b057f9630b35 | [
"MIT"
] | 2 | 2019-05-19T07:44:28.000Z | 2021-04-22T20:20:40.000Z | # Define the path to the file that holds the worker program for "capture".
import os
CAPTURE_WORKER = os.path.join(os.path.dirname(os.path.abspath(__file__)),"capture_worker.py")
# Import all other decorators.
from util.decorators.decorators import *
| 36 | 93 | 0.781746 | 39 | 252 | 4.897436 | 0.564103 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115079 | 252 | 6 | 94 | 42 | 0.856502 | 0.400794 | 0 | 0 | 0 | 0 | 0.114865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e69d5f653fe18bf61712e7aadb1bb6e4fc16acce | 555 | py | Python | PythonDocs/src/010.py | Bean-jun/LearnGuide | 30a8567b222d18b15d3e9027a435b5bfe640a046 | [
"MIT"
] | 1 | 2022-02-23T13:42:01.000Z | 2022-02-23T13:42:01.000Z | PythonDocs/src/010.py | Bean-jun/LearnGuide | 30a8567b222d18b15d3e9027a435b5bfe640a046 | [
"MIT"
] | null | null | null | PythonDocs/src/010.py | Bean-jun/LearnGuide | 30a8567b222d18b15d3e9027a435b5bfe640a046 | [
"MIT"
] | null | null | null | def function(args):
def inner():
print("function函数传递进来的是:{}".format(args))
return args
return inner
def func():
print("我是func函数哦~")
if __name__ == '__main__':
# 先传字符串进去
function("哈哈哈")() # function函数传递进来的是:哈哈哈
# 传个被执行了的函数进去
function(func())() # function函数传递进来的是:None ... | 25.227273 | 86 | 0.65045 | 51 | 555 | 6.921569 | 0.509804 | 0.169972 | 0.23796 | 0.203966 | 0.23796 | 0.23796 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.214414 | 555 | 21 | 87 | 26.428571 | 0.772936 | 0.427027 | 0 | 0 | 0 | 0 | 0.12945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.416667 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e6a3199951d0f69853151c60a72c362dd385f12f | 49 | py | Python | sbvirtualdisplay/__version__.py | mdmintz/sbVirtualDisplay | 9f84968286e5d071b5881ae8cdc8630276b9e834 | [
"MIT"
] | 1 | 2021-07-17T17:26:41.000Z | 2021-07-17T17:26:41.000Z | sbvirtualdisplay/__version__.py | mdmintz/sbVirtualDisplay | 9f84968286e5d071b5881ae8cdc8630276b9e834 | [
"MIT"
] | 1 | 2021-12-12T01:21:18.000Z | 2021-12-12T03:02:15.000Z | sbvirtualdisplay/__version__.py | mdmintz/sbVirtualDisplay | 9f84968286e5d071b5881ae8cdc8630276b9e834 | [
"MIT"
] | null | null | null | # sbvirtualdisplay package
__version__ = "1.0.0"
| 16.333333 | 26 | 0.755102 | 6 | 49 | 5.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.122449 | 49 | 2 | 27 | 24.5 | 0.697674 | 0.489796 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
e6acbc178222146c86b60c833e1e0440cf970cb5 | 28,736 | py | Python | tests/test_bot.py | demosdemon/pyup | 3bf5ac9232f82f7e5bf2db0cf243e2f7402643b8 | [
"MIT"
] | null | null | null | tests/test_bot.py | demosdemon/pyup | 3bf5ac9232f82f7e5bf2db0cf243e2f7402643b8 | [
"MIT"
] | null | null | null | tests/test_bot.py | demosdemon/pyup | 3bf5ac9232f82f7e5bf2db0cf243e2f7402643b8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from unittest import TestCase
from pyup.bot import Bot
from .test_pullrequest import pullrequest_factory
from pyup.updates import RequirementUpdate, InitialUpdate
from pyup.requirements import RequirementFile
from pyup.erro... | 37.07871 | 101 | 0.647237 | 3,510 | 28,736 | 4.992593 | 0.068946 | 0.058377 | 0.04451 | 0.048505 | 0.775736 | 0.736647 | 0.70315 | 0.676672 | 0.655387 | 0.63142 | 0 | 0.004465 | 0.244049 | 28,736 | 774 | 102 | 37.126615 | 0.802237 | 0.005672 | 0 | 0.584936 | 0 | 0 | 0.063054 | 0.004096 | 0 | 0 | 0 | 0 | 0.157051 | 1 | 0.099359 | false | 0 | 0.019231 | 0 | 0.147436 | 0.001603 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e6adef0e12f1451df76108b1f02f77850827cc78 | 4,388 | py | Python | src/compas_singular/datastructures/mesh_quad/coloring.py | BlockResearchGroup/singular | 660245618ef99a6bf6fdb767719e4377e6b4d761 | [
"MIT"
] | 6 | 2019-02-12T17:49:41.000Z | 2020-04-15T10:28:49.000Z | src/compas_singular/datastructures/mesh_quad/coloring.py | BlockResearchGroup/singular | 660245618ef99a6bf6fdb767719e4377e6b4d761 | [
"MIT"
] | 3 | 2020-07-01T13:45:44.000Z | 2020-10-07T14:40:52.000Z | src/compas_singular/datastructures/mesh_quad/coloring.py | BlockResearchGroup/singular | 660245618ef99a6bf6fdb767719e4377e6b4d761 | [
"MIT"
] | 6 | 2019-02-21T11:20:19.000Z | 2020-04-02T10:20:00.000Z | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from compas.topology import adjacency_from_edges
from compas.topology import vertex_coloring
from compas_singular.topology import is_adjacency_two_colorable
from compas.utilities import pairwise
__all__ = [... | 31.568345 | 124 | 0.670465 | 554 | 4,388 | 5.052347 | 0.1787 | 0.100036 | 0.037156 | 0.042872 | 0.818149 | 0.789568 | 0.736692 | 0.644873 | 0.508753 | 0.446588 | 0 | 0.003193 | 0.214904 | 4,388 | 138 | 125 | 31.797101 | 0.809289 | 0.499772 | 0 | 0.465116 | 0 | 0 | 0.068826 | 0.055668 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.023256 | 0.162791 | 0 | 0.395349 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 3 |
e6c1a8dd6de3d33d713a56b46bb96a5bf91dcd06 | 45,889 | py | Python | tests/transforms/test_commutation_dag.py | therooler/pennylane | 88a8a5960a2ffd218a12f85ace632021eef2abf5 | [
"Apache-2.0"
] | null | null | null | tests/transforms/test_commutation_dag.py | therooler/pennylane | 88a8a5960a2ffd218a12f85ace632021eef2abf5 | [
"Apache-2.0"
] | null | null | null | tests/transforms/test_commutation_dag.py | therooler/pennylane | 88a8a5960a2ffd218a12f85ace632021eef2abf5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | 32.94257 | 113 | 0.510972 | 6,045 | 45,889 | 3.785608 | 0.042514 | 0.018091 | 0.00957 | 0.041601 | 0.830362 | 0.783561 | 0.749825 | 0.689914 | 0.647177 | 0.588009 | 0 | 0.052667 | 0.313561 | 45,889 | 1,392 | 114 | 32.966236 | 0.67381 | 0.092855 | 0 | 0.560799 | 0 | 0 | 0.035951 | 0 | 0 | 0 | 0 | 0 | 0.15245 | 1 | 0.083485 | false | 0 | 0.009074 | 0.000907 | 0.100726 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 3 |
e6c434d25815d341b233f7f94806ef659c66dc45 | 4,068 | py | Python | pydlcp/errors.py | erickmartinez/pydlcp | 611eceeb0816af432e1c06ee171376af2bc13a0e | [
"BSD-3-Clause"
] | null | null | null | pydlcp/errors.py | erickmartinez/pydlcp | 611eceeb0816af432e1c06ee171376af2bc13a0e | [
"BSD-3-Clause"
] | null | null | null | pydlcp/errors.py | erickmartinez/pydlcp | 611eceeb0816af432e1c06ee171376af2bc13a0e | [
"BSD-3-Clause"
] | null | null | null |
class Error(Exception):
"""
Base class for exceptions in this module
"""
pass
class InstrumentError(Error):
"""
Exception raised when trying to access a pyvisa instrument that is not connected
Attributes
----------
_resourceAddress: str
The address of the resource
_r... | 24.359281 | 84 | 0.612094 | 421 | 4,068 | 5.688836 | 0.182898 | 0.05428 | 0.03215 | 0.05261 | 0.435073 | 0.412526 | 0.36952 | 0.287683 | 0.270146 | 0.270146 | 0 | 0.001047 | 0.295723 | 4,068 | 166 | 85 | 24.506024 | 0.834904 | 0.334562 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.293103 | false | 0.017241 | 0 | 0.137931 | 0.62069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e6cab2e2a10397cd713707b9d622489261df816a | 8,390 | py | Python | tests/parserTests.py | NorbertLm/lisp-interpreter | 6219897af74626284aad230fdd2ef9802685c2a4 | [
"Apache-2.0"
] | null | null | null | tests/parserTests.py | NorbertLm/lisp-interpreter | 6219897af74626284aad230fdd2ef9802685c2a4 | [
"Apache-2.0"
] | 9 | 2018-12-09T03:01:46.000Z | 2019-01-05T17:56:08.000Z | tests/parserTests.py | NorbertLm/lisp-interpreter | 6219897af74626284aad230fdd2ef9802685c2a4 | [
"Apache-2.0"
] | null | null | null | import unittest
import sys
import os
import operator
sys.path.append(os.path.abspath('../src'))
from tokenizer import Token # noqa
from tokenType import TokenType # noga
from tokenParser import parse_multiple_expression # noqa
from parseTree import (
DefineNode,
NumberNode,
BooleanNode,
IdNode,
... | 35.550847 | 74 | 0.513349 | 706 | 8,390 | 6.026912 | 0.121813 | 0.342186 | 0.26651 | 0.118449 | 0.751116 | 0.751116 | 0.657109 | 0.608696 | 0.586134 | 0.558637 | 0 | 0.006923 | 0.380215 | 8,390 | 235 | 75 | 35.702128 | 0.811346 | 0.001669 | 0 | 0.608108 | 0 | 0 | 0.016484 | 0 | 0 | 0 | 0 | 0 | 0.031532 | 1 | 0.031532 | false | 0 | 0.036036 | 0 | 0.072072 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e6e4f9b00ded5c3d6bd7d21c4001116883515440 | 172 | py | Python | pyexlatex/models/landscape.py | whoopnip/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 4 | 2020-06-08T07:17:12.000Z | 2021-11-04T21:39:52.000Z | pyexlatex/models/landscape.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 24 | 2020-02-17T17:20:44.000Z | 2021-12-20T00:10:19.000Z | pyexlatex/models/landscape.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | null | null | null | from pyexlatex.models.environment import Environment
class Landscape(Environment):
name = 'landscape'
def __init__(self):
super().__init__(name=self.name) | 24.571429 | 52 | 0.726744 | 19 | 172 | 6.157895 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168605 | 172 | 7 | 53 | 24.571429 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.052023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e6f22d3ee9b2f6ef877a098a7b043875f126f6c3 | 308 | py | Python | method/baseMethod.py | FYRichie/LightDance-RPi | fdd736e93e13800deb99cfb88a68c68cadbdad99 | [
"MIT"
] | 4 | 2021-12-20T03:18:27.000Z | 2022-03-10T09:35:26.000Z | method/baseMethod.py | FYRichie/LightDance-RPi | fdd736e93e13800deb99cfb88a68c68cadbdad99 | [
"MIT"
] | 65 | 2021-12-11T12:57:46.000Z | 2022-03-28T04:22:28.000Z | method/baseMethod.py | FYRichie/LightDance-RPi | fdd736e93e13800deb99cfb88a68c68cadbdad99 | [
"MIT"
] | 5 | 2021-12-11T11:59:40.000Z | 2022-01-22T13:45:38.000Z | from typing import Any
class BaseMethod:
def __init__(self, socket=None) -> None:
self.socket = socket
def __call__(self, payload=None) -> Any:
return self.method(payload)
def method(self, payload) -> Any:
raise NotImplementedError("method function not implemented.")
| 23.692308 | 69 | 0.668831 | 36 | 308 | 5.5 | 0.555556 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230519 | 308 | 12 | 70 | 25.666667 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.125 | 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 | 1 | 1 | 0 | 0 | 3 |
fc01c22463f5b8bae6ddcddfc7b07d969203e328 | 2,822 | py | Python | api/barriers/migrations/0080_auto_20200806_1333.py | uktrade/market-access-api | 850a59880f8f62263784bcd9c6b3362e447dbc7a | [
"MIT"
] | null | null | null | api/barriers/migrations/0080_auto_20200806_1333.py | uktrade/market-access-api | 850a59880f8f62263784bcd9c6b3362e447dbc7a | [
"MIT"
] | 51 | 2018-05-31T12:16:31.000Z | 2022-03-08T09:36:48.000Z | api/barriers/migrations/0080_auto_20200806_1333.py | uktrade/market-access-api | 850a59880f8f62263784bcd9c6b3362e447dbc7a | [
"MIT"
] | 2 | 2019-12-24T09:47:42.000Z | 2021-02-09T09:36:51.000Z | # Generated by Django 2.2.13 on 2020-08-06 13:33
import django.contrib.postgres.fields
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("barriers", "0079_priority_not_null"),
]
operations = [
migrations.Al... | 33.2 | 84 | 0.515237 | 240 | 2,822 | 5.945833 | 0.329167 | 0.084093 | 0.105116 | 0.121934 | 0.784863 | 0.744219 | 0.571829 | 0.496146 | 0.496146 | 0.496146 | 0 | 0.015108 | 0.390149 | 2,822 | 84 | 85 | 33.595238 | 0.814062 | 0.016301 | 0 | 0.820513 | 1 | 0 | 0.216294 | 0.052271 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc09a00332d6f112a0fab27a3f22b5c8e74ea332 | 996 | py | Python | engines/ios.py | jordim/langify-mobile | a45d8c481703825ff4f6e5a75b89b4d2fe5c40bd | [
"Apache-2.0"
] | null | null | null | engines/ios.py | jordim/langify-mobile | a45d8c481703825ff4f6e5a75b89b4d2fe5c40bd | [
"Apache-2.0"
] | 1 | 2021-04-30T20:31:50.000Z | 2021-04-30T20:31:50.000Z | engines/ios.py | jordim/langify-mobile | a45d8c481703825ff4f6e5a75b89b4d2fe5c40bd | [
"Apache-2.0"
] | 1 | 2017-12-20T14:50:15.000Z | 2017-12-20T14:50:15.000Z | import re
import os
from engines.base import EngineBase
class EngineIOS(EngineBase):
def __init__(self):
super().__init__()
def persist_file(self,file,data):
for k,v in data.items():
file.write(self.generate_line(k,v))
file.write("\n")
def parse(self):
ta... | 25.538462 | 76 | 0.527108 | 118 | 996 | 4.338983 | 0.440678 | 0.011719 | 0.050781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002903 | 0.308233 | 996 | 38 | 77 | 26.210526 | 0.740203 | 0 | 0 | 0 | 0 | 0 | 0.063253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.107143 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fc133c78f543e3103f2ce6f134d9250691ebdbe8 | 754 | py | Python | rocketgram/api/input_text_message_content.py | rocketgram/rocketgram | b94d8f83e577c0618a650c113d688ef8689ac3f5 | [
"MIT"
] | 35 | 2019-09-19T22:56:22.000Z | 2022-03-12T10:49:47.000Z | rocketgram/api/input_text_message_content.py | rocketgram/rocketgram | b94d8f83e577c0618a650c113d688ef8689ac3f5 | [
"MIT"
] | 2 | 2020-10-20T05:24:25.000Z | 2021-03-27T18:21:23.000Z | rocketgram/api/input_text_message_content.py | rocketgram/rocketgram | b94d8f83e577c0618a650c113d688ef8689ac3f5 | [
"MIT"
] | 4 | 2020-06-26T01:12:30.000Z | 2022-01-16T13:55:47.000Z | # Copyright (C) 2015-2021 by Vd.
# This file is part of Rocketgram, the modern Telegram bot framework.
# Rocketgram is released under the MIT License (see LICENSE).
from dataclasses import dataclass
from typing import Optional, List
from .input_message_content import InputMessageContent
from .message_entity import M... | 30.16 | 69 | 0.782493 | 88 | 754 | 6.590909 | 0.670455 | 0.041379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.145889 | 754 | 24 | 70 | 31.416667 | 0.888199 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.454545 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fc18f9d1f16d7459b354b0e9c0bf04a86bd62b00 | 152 | py | Python | data_analysis/gaze/__init__.py | vedb/data_analysis | b46f58ba424680353d3abd0014a7d0a339bf6e6c | [
"MIT"
] | null | null | null | data_analysis/gaze/__init__.py | vedb/data_analysis | b46f58ba424680353d3abd0014a7d0a339bf6e6c | [
"MIT"
] | null | null | null | data_analysis/gaze/__init__.py | vedb/data_analysis | b46f58ba424680353d3abd0014a7d0a339bf6e6c | [
"MIT"
] | null | null | null | from . import (
gaze_utils,
pupil_detection_pl,
marker_detection,
calibrate_pl,
calibrate_vedb,
pipelines,
gaze_analysis,
)
| 15.2 | 23 | 0.671053 | 16 | 152 | 5.9375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 152 | 9 | 24 | 16.888889 | 0.848214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc270810c6bfa1ec81d18949ff7e4a2009abcaca | 28,282 | py | Python | skautis/Evaluation.py | janmpeterka/skautis-py | d335728c01d58e3c9dfab8c0b044117b177b8807 | [
"BSD-3-Clause"
] | 6 | 2019-03-19T08:34:17.000Z | 2022-01-20T19:28:17.000Z | skautis/Evaluation.py | skaut/skautis-py | d335728c01d58e3c9dfab8c0b044117b177b8807 | [
"BSD-3-Clause"
] | 4 | 2021-09-12T09:13:47.000Z | 2022-01-16T08:39:05.000Z | skautis/Evaluation.py | kulikjak/skautis-py | 424ced642aa13b847f5f04d42d010ef4c16f924d | [
"BSD-3-Clause"
] | 2 | 2021-09-26T11:01:29.000Z | 2021-12-28T14:41:46.000Z | # -*- coding: utf-8 -*-
import zeep
# Webová služba pro práci s hodnocením kvality
class Evaluation(object):
__module__ = 'skautis'
def __init__(self, test):
if test:
self._client = zeep.Client('https://test-is.skaut.cz/JunakWebservice/Evaluation.asmx?wsdl')
else:
self... | 88.658307 | 917 | 0.773142 | 2,988 | 28,282 | 7.108434 | 0.087684 | 0.075141 | 0.077119 | 0.082298 | 0.69242 | 0.65904 | 0.619915 | 0.573258 | 0.495527 | 0.465113 | 0 | 0.001883 | 0.117425 | 28,282 | 318 | 918 | 88.937107 | 0.849045 | 0.102928 | 0 | 0 | 0 | 0 | 0.171009 | 0.008857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.48125 | false | 0 | 0.00625 | 0.475 | 0.975 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fc351658946623c8e23537355353668bf4de6986 | 642 | py | Python | src/profiles/admin.py | lgandersen/bornhack-website | fbda2b4b53dc2cb266d1d7c13ba0aad59d9079df | [
"BSD-3-Clause"
] | 7 | 2017-04-14T15:28:29.000Z | 2021-09-10T09:45:38.000Z | src/profiles/admin.py | lgandersen/bornhack-website | fbda2b4b53dc2cb266d1d7c13ba0aad59d9079df | [
"BSD-3-Clause"
] | 799 | 2016-04-28T09:31:50.000Z | 2022-03-29T09:05:02.000Z | src/profiles/admin.py | lgandersen/bornhack-website | fbda2b4b53dc2cb266d1d7c13ba0aad59d9079df | [
"BSD-3-Clause"
] | 35 | 2016-04-28T09:23:53.000Z | 2021-05-02T12:36:01.000Z | from django.contrib import admin
from .models import Profile
@admin.register(Profile)
class ProfileAdmin(admin.ModelAdmin):
actions = ["approve_public_credit_names"]
list_display = [
"user",
"name",
"description",
"public_credit_name",
"public_credit_name_approved",
... | 25.68 | 77 | 0.705607 | 72 | 642 | 5.944444 | 0.430556 | 0.252336 | 0.224299 | 0.168224 | 0.140187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205607 | 642 | 24 | 78 | 26.75 | 0.839216 | 0 | 0 | 0 | 0 | 0 | 0.228972 | 0.126168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc5843791c07d2e819886d46c629ff5f28a203e3 | 14,554 | py | Python | release/stubs.min/System/Windows/Forms/__init___parts/MenuItem.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/MenuItem.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/MenuItem.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class MenuItem(Menu, IComponent, IDisposable):
"""
Represents an individual item that is displayed within a System.Windows.Forms.MainMenu or System.Windows.Forms.ContextMenu. Although System.Windows.Forms.ToolStripMenuItem replaces and adds functionality to the System.Windows.Forms.MenuItem control of previous v... | 24.543002 | 375 | 0.666483 | 1,823 | 14,554 | 5.264399 | 0.149753 | 0.068771 | 0.067521 | 0.062311 | 0.516307 | 0.458477 | 0.423049 | 0.389288 | 0.37345 | 0.346358 | 0 | 0 | 0.243919 | 14,554 | 592 | 376 | 24.584459 | 0.872137 | 0.423732 | 0 | 0.329412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258824 | false | 0.258824 | 0 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fc5ae7a91b278fc7aef1d448db4bb879d2f53bef | 610 | py | Python | Python/Sorting/InsertionSortPart2/InsertionSortPart2.py | zseen/hackerrank-challenges | c154f039f58073ee3d94d012462c7055e68784b2 | [
"MIT"
] | null | null | null | Python/Sorting/InsertionSortPart2/InsertionSortPart2.py | zseen/hackerrank-challenges | c154f039f58073ee3d94d012462c7055e68784b2 | [
"MIT"
] | null | null | null | Python/Sorting/InsertionSortPart2/InsertionSortPart2.py | zseen/hackerrank-challenges | c154f039f58073ee3d94d012462c7055e68784b2 | [
"MIT"
] | null | null | null | import sys
def insertionSort2(listToBeSorted):
for i in range(1, len(listToBeSorted)):
for j in range(i, 0, -1):
if listToBeSorted[j] < listToBeSorted[j-1]:
listToBeSorted[j - 1], listToBeSorted[j] = listToBeSorted[j], listToBeSorted[j - 1]
print(' '.join(map(str, list... | 24.4 | 99 | 0.632787 | 68 | 610 | 5.544118 | 0.470588 | 0.238727 | 0.230769 | 0.238727 | 0.246684 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018947 | 0.221311 | 610 | 24 | 100 | 25.416667 | 0.774737 | 0 | 0 | 0 | 0 | 0 | 0.062397 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fc601624c099f09c48e86b2635d047a53dd8903f | 994 | py | Python | api_todo/app/models.py | ThiagoSilva20/chave_mestre | e2a73b89b0dcad182b005c6c1f66d60ad97745e2 | [
"MIT"
] | 1 | 2022-02-21T17:39:32.000Z | 2022-02-21T17:39:32.000Z | api_todo/app/models.py | ThiagoSilva20/chave_mestre | e2a73b89b0dcad182b005c6c1f66d60ad97745e2 | [
"MIT"
] | null | null | null | api_todo/app/models.py | ThiagoSilva20/chave_mestre | e2a73b89b0dcad182b005c6c1f66d60ad97745e2 | [
"MIT"
] | null | null | null | from django.db import models
from django.forms import CharField
class Usuario(models.Model):
nome = models.CharField(max_length=100)
email = models.EmailField()
telefone = models.CharField(max_length=15)
######################################################
class Loja(models.Model):
nome_loja = mod... | 34.275862 | 68 | 0.622736 | 111 | 994 | 5.414414 | 0.351351 | 0.174709 | 0.209651 | 0.279534 | 0.417637 | 0.113145 | 0 | 0 | 0 | 0 | 0 | 0.02164 | 0.1167 | 994 | 29 | 69 | 34.275862 | 0.66287 | 0 | 0 | 0 | 0 | 0 | 0.021661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fc6ef2fc960d15bcd61ee31ab4b39bda95047d53 | 21 | py | Python | archive/conf.py | andykee/aurora | 927385b5d8243ecd1c2e6eaab246e4d457510212 | [
"MIT"
] | null | null | null | archive/conf.py | andykee/aurora | 927385b5d8243ecd1c2e6eaab246e4d457510212 | [
"MIT"
] | 1 | 2021-06-02T23:11:23.000Z | 2021-06-22T22:14:12.000Z | archive/conf.py | andykee/aurora | 927385b5d8243ecd1c2e6eaab246e4d457510212 | [
"MIT"
] | null | null | null | TEST = 'woo'
PATH = 5 | 10.5 | 12 | 0.571429 | 4 | 21 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.238095 | 21 | 2 | 13 | 10.5 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
fc8a5db77038eb77f502a80882afb8ce521d8f4c | 461 | py | Python | application/projects/permissions.py | iorubs/pro1oh1 | f65344f4065392a5e120d03bd7a92ab31c5dda4a | [
"MIT"
] | null | null | null | application/projects/permissions.py | iorubs/pro1oh1 | f65344f4065392a5e120d03bd7a92ab31c5dda4a | [
"MIT"
] | null | null | null | application/projects/permissions.py | iorubs/pro1oh1 | f65344f4065392a5e120d03bd7a92ab31c5dda4a | [
"MIT"
] | null | null | null | from rest_framework import permissions
class IsAuthorOfProject(permissions.BasePermission):
def has_object_permission(self, request, view, project):
if request.user:
return project.author == request.user
return False
class IsAuthorOfFile(permissions.BasePermission):
def has_object... | 30.733333 | 60 | 0.709328 | 50 | 461 | 6.44 | 0.46 | 0.136646 | 0.21118 | 0.192547 | 0.602484 | 0.602484 | 0.385093 | 0.385093 | 0.385093 | 0 | 0 | 0 | 0.219089 | 461 | 14 | 61 | 32.928571 | 0.894444 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5d7e93c46f41f3fce9ff09d5f0216c3970298017 | 151 | py | Python | experiments/galileo2/pot.py | rbanffy/pingo | b448d5eecae17b82aafd708c2594dae6d4194d84 | [
"MIT"
] | null | null | null | experiments/galileo2/pot.py | rbanffy/pingo | b448d5eecae17b82aafd708c2594dae6d4194d84 | [
"MIT"
] | 1 | 2021-03-20T05:17:03.000Z | 2021-03-20T05:17:03.000Z | experiments/galileo2/pot.py | rbanffy/pingo | b448d5eecae17b82aafd708c2594dae6d4194d84 | [
"MIT"
] | null | null | null | from time import sleep
import mraa
MAX_VALUE = 2. ** 12 -1
pot = mraa.Aio(0)
while 1:
print '#' * int(pot.read()/MAX_VALUE * 70)
sleep(.05)
| 15.1 | 46 | 0.609272 | 27 | 151 | 3.37037 | 0.740741 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08547 | 0.225166 | 151 | 9 | 47 | 16.777778 | 0.683761 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d81eeba63914b5eaf3dde135fce2f460da38ee1 | 227 | py | Python | myapp/models.py | tristanchambers/geodjango-heroku | 88e069621262ee084e19c39c41484f3b9b308fb9 | [
"MIT"
] | null | null | null | myapp/models.py | tristanchambers/geodjango-heroku | 88e069621262ee084e19c39c41484f3b9b308fb9 | [
"MIT"
] | null | null | null | myapp/models.py | tristanchambers/geodjango-heroku | 88e069621262ee084e19c39c41484f3b9b308fb9 | [
"MIT"
] | null | null | null | from django.contrib.gis.db import models
# Create your models here.
class Icecream(models.Model):
name = models.CharField(max_length=100)
location = models.PointField()
def __str__(self):
return(self.name)
| 25.222222 | 43 | 0.713656 | 30 | 227 | 5.233333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.180617 | 227 | 8 | 44 | 28.375 | 0.827957 | 0.105727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 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 | 1 | 1 | 0 | 0 | 3 |
5d89dcf509871f735233d1edf093da5fd6ff4020 | 6,560 | py | Python | backend/api/models.py | jklewis99/hypertriviation | e12be87e978505fb3a73f4fc606173f41a3aee81 | [
"MIT"
] | 1 | 2022-03-27T19:39:07.000Z | 2022-03-27T19:39:07.000Z | backend/api/models.py | jklewis99/hypertriviation | e12be87e978505fb3a73f4fc606173f41a3aee81 | [
"MIT"
] | 5 | 2022-03-27T19:32:54.000Z | 2022-03-31T23:25:44.000Z | backend/api/models.py | jklewis99/hypertriviation | e12be87e978505fb3a73f4fc606173f41a3aee81 | [
"MIT"
] | null | null | null | from django.db import models
import string
import random
import uuid
import math
from authentication.models import HypertriviationUser
def generate_unique_code(length=8):
while True:
code = ''.join(random.choices(string.ascii_uppercase, k=length))
if FixationSession.objects.filter(code=code).count... | 41 | 111 | 0.741159 | 814 | 6,560 | 5.761671 | 0.208845 | 0.063966 | 0.076759 | 0.102345 | 0.601706 | 0.532836 | 0.444989 | 0.330277 | 0.278252 | 0.264392 | 0 | 0.011675 | 0.164329 | 6,560 | 159 | 112 | 41.257862 | 0.843853 | 0.097866 | 0 | 0.280702 | 1 | 0 | 0.011015 | 0 | 0 | 0 | 0 | 0.012579 | 0 | 1 | 0.087719 | false | 0 | 0.052632 | 0.078947 | 0.912281 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5d8ae9b506f1e3a0a8a19f9ee3f5bf177e6e8868 | 6,568 | py | Python | utils.py | Paolovox/crawler | a74c6a2c8db4e97045a74ec399bd086ef0d03e2d | [
"MIT"
] | null | null | null | utils.py | Paolovox/crawler | a74c6a2c8db4e97045a74ec399bd086ef0d03e2d | [
"MIT"
] | null | null | null | utils.py | Paolovox/crawler | a74c6a2c8db4e97045a74ec399bd086ef0d03e2d | [
"MIT"
] | null | null | null | import ipaddress
import re
import requests
from datetime import date
from dateutil.parser import parse as date_parse
# Calculates number of months
def diff_month(d1, d2):
return (d1.year - d2.year) * 12 + d1.month - d2.month
# Generate data set by extracting the features from the URL
def generate_data_set(url):
... | 25.068702 | 126 | 0.58511 | 900 | 6,568 | 4.097778 | 0.207778 | 0.176518 | 0.211497 | 0.178416 | 0.307755 | 0.291757 | 0.286063 | 0.274132 | 0.274132 | 0.238883 | 0 | 0.032797 | 0.271163 | 6,568 | 261 | 127 | 25.164751 | 0.737623 | 0.107034 | 0 | 0.559322 | 0 | 0 | 0.151364 | 0.018706 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028249 | null | null | 0.180791 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d9d95e212e238ba9f03fe6fde62f872f708904b | 234 | py | Python | locale/pot/api/plotting/_autosummary/pyvista-Plotter-window_size-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/plotting/_autosummary/pyvista-Plotter-window_size-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/plotting/_autosummary/pyvista-Plotter-window_size-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | # Change the window size from ``200 x 200`` to ``400 x 400``.
#
import pyvista
pl = pyvista.Plotter(window_size=[200, 200])
pl.window_size
# Expected:
## [200, 200]
pl.window_size = [400, 400]
pl.window_size
# Expected:
## [400, 400]
| 19.5 | 61 | 0.675214 | 38 | 234 | 4.052632 | 0.368421 | 0.324675 | 0.233766 | 0.181818 | 0.233766 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.153846 | 234 | 11 | 62 | 21.272727 | 0.59596 | 0.431624 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5db03e852ee9cfc4c1043c49e3fe58e656cb0532 | 50 | py | Python | code/abc093_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc093_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc093_a_02.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | s=input()
print("Yes" if len(set(s))==3 else "No") | 25 | 40 | 0.6 | 11 | 50 | 2.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.1 | 50 | 2 | 40 | 25 | 0.644444 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
5db73f40fd8c75b30afb2497c702f5a7f6eaf674 | 232 | py | Python | library/lib_study/109_netdata_mimetypes.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | library/lib_study/109_netdata_mimetypes.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | library/lib_study/109_netdata_mimetypes.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | # https://docs.python.org/zh-cn/3/library/mimetypes.html
import mimetypes
mimetypes.init()
print(mimetypes.knownfiles)
print(mimetypes.suffix_map['.tgz'])
print(mimetypes.encodings_map['.gz'])
print(mimetypes.types_map['.tgz'])
| 19.333333 | 56 | 0.762931 | 32 | 232 | 5.4375 | 0.625 | 0.321839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004566 | 0.056034 | 232 | 11 | 57 | 21.090909 | 0.789954 | 0.232759 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
5db951b78c48a016a68b91cd5848969f7ef5f2ff | 1,466 | py | Python | example/gallery/models.py | c0ntribut0r/django-clean-urls | 00045bc80049208f6edd73015512958f84db152c | [
"MIT"
] | 3 | 2018-04-05T10:38:19.000Z | 2019-06-13T11:04:52.000Z | example/gallery/models.py | c0ntribut0r/django-clean-urls | 00045bc80049208f6edd73015512958f84db152c | [
"MIT"
] | 1 | 2017-12-03T15:43:41.000Z | 2019-11-24T18:31:39.000Z | example/gallery/models.py | c0ntribut0r/django-clean-urls | 00045bc80049208f6edd73015512958f84db152c | [
"MIT"
] | 2 | 2018-03-21T15:03:24.000Z | 2021-09-13T14:45:45.000Z | from django.core.urlresolvers import reverse
from django.db import models
from mptt.models import MPTTModel, TreeForeignKey
class Photographer(models.Model):
image = models.ImageField('image')
slug = models.SlugField()
def __str__(self):
return self.slug
def get_absolute_url(self):
... | 29.918367 | 187 | 0.702592 | 180 | 1,466 | 5.572222 | 0.35 | 0.089731 | 0.059821 | 0.067797 | 0.399801 | 0.37986 | 0.37986 | 0.37986 | 0.37986 | 0.37986 | 0 | 0.001675 | 0.185539 | 1,466 | 48 | 188 | 30.541667 | 0.838358 | 0.112551 | 0 | 0.5 | 0 | 0 | 0.07319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0.09375 | 0.28125 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5dc26e20936a4a7f3c09b87824c3d21f409edfb5 | 562 | py | Python | test/python/LIM2Metrics/py2/base/common/Python053/Python053.py | sagodiz/SonarQube-plug-in | 4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c | [
"BSD-4-Clause"
] | 20 | 2015-06-16T17:39:10.000Z | 2022-03-20T22:39:40.000Z | test/python/LIM2Metrics/py2/base/common/Python053/Python053.py | sagodiz/SonarQube-plug-in | 4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c | [
"BSD-4-Clause"
] | 29 | 2015-12-29T19:07:22.000Z | 2022-03-22T10:39:02.000Z | test/python/LIM2Metrics/py2/base/common/Python053/Python053.py | sagodiz/SonarQube-plug-in | 4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c | [
"BSD-4-Clause"
] | 12 | 2015-08-28T01:22:18.000Z | 2021-09-25T08:17:31.000Z | class Animal:
def reply(self):
self.speak()
def speak(self):
print 'spam'
class Mammal(Animal):
def speak(self):
print 'speak?'
class Cat(Mammal):
def speak(self):
print 'Speak from Cat'
class Dog(Mammal):
def speak(self):
print 'Sp... | 19.37931 | 34 | 0.540925 | 65 | 562 | 4.553846 | 0.307692 | 0.135135 | 0.202703 | 0.287162 | 0.398649 | 0.324324 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0.341637 | 562 | 29 | 35 | 19.37931 | 0.8 | 0 | 0 | 0.217391 | 0 | 0 | 0.115453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.043478 | 0 | null | null | 0.217391 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5dcc17dbb6dc8aa42f4a7fc0a984018546db57e2 | 697 | py | Python | std_number_validation/validators/context_validator.py | lgrabowski/std-number-validation | b27a66ed3bd7c7ac25b64b99b462f1c3e3380f20 | [
"MIT"
] | null | null | null | std_number_validation/validators/context_validator.py | lgrabowski/std-number-validation | b27a66ed3bd7c7ac25b64b99b462f1c3e3380f20 | [
"MIT"
] | null | null | null | std_number_validation/validators/context_validator.py | lgrabowski/std-number-validation | b27a66ed3bd7c7ac25b64b99b462f1c3e3380f20 | [
"MIT"
] | null | null | null | from .base_validator import BaseValidator
class ContextValidator(BaseValidator):
"""
Contextual validators for better validators flow
to have control over exception which may come around param processing from integration
point of view
"""
def __enter__(self):
return self
... | 25.814815 | 91 | 0.61406 | 77 | 697 | 5.38961 | 0.688312 | 0.062651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.329986 | 697 | 26 | 92 | 26.807692 | 0.888651 | 0.351506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.090909 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5dd1fad1ea2f7fef46839fd12ce8ba06de414d5a | 273 | py | Python | ordemtrabalho.py | DiegoPorfirio01/PYTHON-BASICO-40H | 4a5876887ee3fa36ce5c0b8d9f97e91289aea217 | [
"MIT"
] | null | null | null | ordemtrabalho.py | DiegoPorfirio01/PYTHON-BASICO-40H | 4a5876887ee3fa36ce5c0b8d9f97e91289aea217 | [
"MIT"
] | null | null | null | ordemtrabalho.py | DiegoPorfirio01/PYTHON-BASICO-40H | 4a5876887ee3fa36ce5c0b8d9f97e91289aea217 | [
"MIT"
] | null | null | null | from random import shuffle
a1 = str(input('Qual nome do aluno?'))
a2 = str(input('Qual nome do aluno?'))
a3 = str(input('Qual nome do aluno?'))
a4 = str(input('Qual nome do aluno?'))
lista = [a1,a2,a3,a4]
shuffle(lista)
print('Vão apresentar na ordem : {}'.format(lista))
| 27.3 | 51 | 0.673993 | 46 | 273 | 4 | 0.456522 | 0.173913 | 0.26087 | 0.347826 | 0.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.142857 | 273 | 9 | 52 | 30.333333 | 0.752137 | 0 | 0 | 0 | 0 | 0 | 0.382353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
b9059fddde3630e6c0db9c3a8680dd2828370613 | 271 | py | Python | nbib/exceptions.py | holub008/nbib | 1929d26b7256e747e0c679d2e94f6e0f2d160636 | [
"MIT"
] | 6 | 2020-06-08T13:24:17.000Z | 2022-03-23T17:31:52.000Z | nbib/exceptions.py | holub008/nbib | 1929d26b7256e747e0c679d2e94f6e0f2d160636 | [
"MIT"
] | 5 | 2020-06-12T10:13:47.000Z | 2022-03-23T17:31:28.000Z | nbib/exceptions.py | holub008/nbib | 1929d26b7256e747e0c679d2e94f6e0f2d160636 | [
"MIT"
] | 1 | 2021-12-15T15:24:51.000Z | 2021-12-15T15:24:51.000Z | class UnknownTagFormat(Exception):
"""
occurs when a tag's contents violate expected format
"""
pass
class MalformedLine(Exception):
"""
occurs when an nbib line doesn't conform to the standard {Tag|spaces}-value format
"""
pass
| 20.846154 | 90 | 0.645756 | 32 | 271 | 5.46875 | 0.78125 | 0.171429 | 0.217143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265683 | 271 | 12 | 91 | 22.583333 | 0.879397 | 0.498155 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f8df8bf3d23eca9cacd62c783d088b24784840e7 | 32,750 | py | Python | tensorflow_probability/python/math/interpolation_test.py | mederrata/probability | bc6c411b0fbd83141f303f91a27343fe3c43a797 | [
"Apache-2.0"
] | 1 | 2022-03-22T11:56:31.000Z | 2022-03-22T11:56:31.000Z | tensorflow_probability/python/math/interpolation_test.py | robot0102/probability | 89d248c420b8ecabfd9d6de4a1aa8d3886920049 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/math/interpolation_test.py | robot0102/probability | 89d248c420b8ecabfd9d6de4a1aa8d3886920049 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 34.546414 | 80 | 0.622137 | 5,525 | 32,750 | 3.436561 | 0.069321 | 0.039606 | 0.023226 | 0.01264 | 0.782009 | 0.743561 | 0.704166 | 0.673461 | 0.642756 | 0.624638 | 0 | 0.055191 | 0.233191 | 32,750 | 947 | 81 | 34.582893 | 0.700872 | 0.181679 | 0 | 0.621785 | 0 | 0 | 0.012132 | 0 | 0 | 0 | 0 | 0 | 0.093797 | 1 | 0.072617 | false | 0 | 0.009077 | 0.01059 | 0.098336 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f8efc4fb0b496d32cc610ca023885ef5385fc0e0 | 291 | py | Python | experiments/pygame-mixer-test.py | wmodes/pias | 6d99c06c79f954e03944fa9d066da3fcc42f7232 | [
"MIT"
] | null | null | null | experiments/pygame-mixer-test.py | wmodes/pias | 6d99c06c79f954e03944fa9d066da3fcc42f7232 | [
"MIT"
] | null | null | null | experiments/pygame-mixer-test.py | wmodes/pias | 6d99c06c79f954e03944fa9d066da3fcc42f7232 | [
"MIT"
] | null | null | null | import pygame
import time
pygame.mixer.init()
pygame.mixer.music.set_volume(1.0)
pygame.mixer.music.load("../data/01_test.mp3")
pygame.mixer.music.play()
print ("Music started")
while (pygame.mixer.music.get_busy()):
print ("Still playing")
time.sleep(0.25)
print ("Music finished") | 24.25 | 46 | 0.728522 | 45 | 291 | 4.644444 | 0.577778 | 0.263158 | 0.30622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030418 | 0.09622 | 291 | 12 | 47 | 24.25 | 0.764259 | 0 | 0 | 0 | 0 | 0 | 0.202055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0.272727 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5d003de34223d778a67feba47937148f47c400ad | 1,658 | py | Python | models/algorand_application.py | IanMcLaughlin19/fitest | 0d48b965703ab4ec5e04e301c9b60ae2596bd722 | [
"MIT"
] | null | null | null | models/algorand_application.py | IanMcLaughlin19/fitest | 0d48b965703ab4ec5e04e301c9b60ae2596bd722 | [
"MIT"
] | null | null | null | models/algorand_application.py | IanMcLaughlin19/fitest | 0d48b965703ab4ec5e04e301c9b60ae2596bd722 | [
"MIT"
] | null | null | null | from dataclasses import field, dataclass
from typing import List, Dict
from models.utils import SubClass
@dataclass
class LocalStateSchema(SubClass):
num_byte_slice: int = field(default_factory=int)
num_uint: int = field(default_factory=int)
@dataclass
class GlobalStateSchema(SubClass):
num_byte_slice: i... | 28.586207 | 130 | 0.755127 | 196 | 1,658 | 6.178571 | 0.25 | 0.168456 | 0.266722 | 0.181668 | 0.496284 | 0.393064 | 0.218002 | 0.185797 | 0.150289 | 0.150289 | 0 | 0 | 0.151387 | 1,658 | 57 | 131 | 29.087719 | 0.860697 | 0 | 0 | 0.255814 | 0 | 0 | 0.042823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069767 | 0 | 0.837209 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5d21e384708a4d5a3d61bf1a0dc7325375a2f617 | 243 | py | Python | server/api/serializers.py | louisliv/baseball | 1148785a6f2c03ced6ebcfcd209e45b901da26a3 | [
"MIT"
] | null | null | null | server/api/serializers.py | louisliv/baseball | 1148785a6f2c03ced6ebcfcd209e45b901da26a3 | [
"MIT"
] | null | null | null | server/api/serializers.py | louisliv/baseball | 1148785a6f2c03ced6ebcfcd209e45b901da26a3 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from rest_framework import serializers
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'first_name', 'last_name',
'email') | 27 | 61 | 0.765432 | 28 | 243 | 6.535714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127572 | 243 | 9 | 62 | 27 | 0.863208 | 0 | 0 | 0 | 0 | 0 | 0.139344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5d2c98c4b687d0b218e6ee1183aed5afecd3149a | 370 | py | Python | astroquery/simbad/__init__.py | jdnc/astroquery | a89dcc5f4132bc2e9d72da1aa583dbc9e7e8216f | [
"BSD-3-Clause"
] | 1 | 2019-12-17T00:43:56.000Z | 2019-12-17T00:43:56.000Z | astroquery/simbad/__init__.py | jdnc/astroquery | a89dcc5f4132bc2e9d72da1aa583dbc9e7e8216f | [
"BSD-3-Clause"
] | null | null | null | astroquery/simbad/__init__.py | jdnc/astroquery | a89dcc5f4132bc2e9d72da1aa583dbc9e7e8216f | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
TODO: add short description
"""
from .queries import *
from .result import *
from .simbad_votable import *
mirrors = {'harvard': 'http://simbad.harvard.edu/simbad/sim-script?script=',
'strasbourg': 'http://simbad.u-strasbg.fr/simbad/sim-scr... | 30.833333 | 80 | 0.710811 | 49 | 370 | 5.326531 | 0.693878 | 0.076628 | 0.114943 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003135 | 0.137838 | 370 | 11 | 81 | 33.636364 | 0.815047 | 0.243243 | 0 | 0 | 0 | 0 | 0.514706 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5d318299b2078509381b332915b7a02451448681 | 434 | py | Python | Object-Oriented Programming/Python/python_assignments_set1/sol11.py | neeladripal/bcse-lab | 915d2f535ae95a062438fc85980419646a3951ad | [
"MIT"
] | null | null | null | Object-Oriented Programming/Python/python_assignments_set1/sol11.py | neeladripal/bcse-lab | 915d2f535ae95a062438fc85980419646a3951ad | [
"MIT"
] | null | null | null | Object-Oriented Programming/Python/python_assignments_set1/sol11.py | neeladripal/bcse-lab | 915d2f535ae95a062438fc85980419646a3951ad | [
"MIT"
] | 1 | 2021-08-06T14:39:53.000Z | 2021-08-06T14:39:53.000Z | print ("Pythagorean Triplets with smaller side upto 10 -->")
# form : (m^2 - n^2, 2*m*n, m^2 + n^2)
# generate all (m, n) pairs such that m^2 - n^2 <= 10
# if we take (m > n), for m >= 6, m^2 - n^2 will always be greater than 10
# so m ranges from 1 to 5 and n ranges from 1 to m-1
pythTriplets = [(m*m - n*n, 2*m*n, m*m... | 62 | 131 | 0.587558 | 103 | 434 | 2.475728 | 0.378641 | 0.062745 | 0.047059 | 0.062745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077844 | 0.230415 | 434 | 7 | 132 | 62 | 0.685629 | 0.488479 | 0 | 0 | 1 | 0 | 0.229358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
5d456e1b5d71b794f58cd8818c73169c8f37bfd0 | 225 | py | Python | user.py | iljuhas7/lab-4 | 2ec62df934b6c9911809412bab8b0126f46f1401 | [
"MIT"
] | null | null | null | user.py | iljuhas7/lab-4 | 2ec62df934b6c9911809412bab8b0126f46f1401 | [
"MIT"
] | null | null | null | user.py | iljuhas7/lab-4 | 2ec62df934b6c9911809412bab8b0126f46f1401 | [
"MIT"
] | null | null | null | print("What is your name?")
name = input()
print("How old are you?")
age = int(input())
print("Where do you live?")
residency = input()
print("This is `{0}` \nIt is `{1}` \n(S)he live in `{2}` ".format(name, age, residency))
| 28.125 | 88 | 0.622222 | 39 | 225 | 3.589744 | 0.666667 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.151111 | 225 | 7 | 89 | 32.142857 | 0.717277 | 0 | 0 | 0 | 0 | 0.142857 | 0.453333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 3 |
5d4ec3e2fdd244be95807c5f7e665bc77157448f | 1,953 | py | Python | Python/tdw/FBOutput/RigidbodyData.py | gragundier/tdw | 21d84434bb01384af511c1b8decedbcda160a3bb | [
"BSD-2-Clause"
] | 307 | 2020-05-20T18:08:49.000Z | 2022-03-21T19:55:08.000Z | Python/tdw/FBOutput/RigidbodyData.py | NoelShin/tdw | 5e06230846347408434d2f7c88d5d978e2b73496 | [
"BSD-2-Clause"
] | 92 | 2020-07-21T18:29:13.000Z | 2022-03-28T07:25:54.000Z | Python/tdw/FBOutput/RigidbodyData.py | NoelShin/tdw | 5e06230846347408434d2f7c88d5d978e2b73496 | [
"BSD-2-Clause"
] | 53 | 2020-07-14T15:55:17.000Z | 2022-03-20T16:20:01.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FBOutput
import tdw.flatbuffers
class RigidbodyData(object):
__slots__ = ['_tab']
# RigidbodyData
def Init(self, buf, pos):
self._tab = tdw.flatbuffers.table.Table(buf, pos)
# RigidbodyData
d... | 39.857143 | 161 | 0.726062 | 240 | 1,953 | 5.708333 | 0.2625 | 0.066423 | 0.116788 | 0.145985 | 0.405839 | 0.405839 | 0.354745 | 0.354745 | 0.354745 | 0.289051 | 0 | 0.024722 | 0.171531 | 1,953 | 48 | 162 | 40.6875 | 0.822002 | 0.094214 | 0 | 0.129032 | 1 | 0 | 0.002338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.032258 | 0.129032 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
5d735835a6af8d72757e770ce7b3f13f631ba4eb | 5,947 | py | Python | aio_anyrun/collection.py | er28-0652/aio-anyrun | a1effc253b073b64537813b0ae9264677d85da44 | [
"MIT"
] | 5 | 2020-02-11T08:44:27.000Z | 2021-02-23T13:33:57.000Z | aio_anyrun/collection.py | er28-0652/aio-anyrun | a1effc253b073b64537813b0ae9264677d85da44 | [
"MIT"
] | 2 | 2020-03-13T07:47:54.000Z | 2020-09-14T12:28:39.000Z | aio_anyrun/collection.py | er28-0652/aio-anyrun | a1effc253b073b64537813b0ae9264677d85da44 | [
"MIT"
] | 3 | 2020-02-03T11:19:35.000Z | 2021-02-10T03:43:58.000Z | import json
import typing as t
from datetime import datetime
from aio_anyrun import const as cst
class BaseCollection:
def __init__(self, raw_data: dict):
self.raw_data = raw_data
self._ignores = ['items', 'json', 'raw_data', 'keys', 'values']
self.properties = [prop for prop in dir(self)... | 26.314159 | 112 | 0.586178 | 739 | 5,947 | 4.566982 | 0.192152 | 0.127111 | 0.094519 | 0.095704 | 0.349037 | 0.310519 | 0.234667 | 0.208889 | 0.207111 | 0.15437 | 0 | 0.003713 | 0.275433 | 5,947 | 225 | 113 | 26.431111 | 0.779531 | 0.005885 | 0 | 0.278107 | 0 | 0.005917 | 0.1 | 0.003729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272189 | false | 0 | 0.023669 | 0.207101 | 0.609467 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
53782bf539ac150a485d8ce86c9d0b9e19cabf9f | 1,324 | py | Python | plotly/validators/ohlc/__init__.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 2 | 2020-03-24T11:41:14.000Z | 2021-01-14T07:59:43.000Z | plotly/validators/ohlc/__init__.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 1 | 2020-12-15T16:56:11.000Z | 2020-12-15T16:56:11.000Z | plotly/validators/ohlc/__init__.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 4 | 2019-06-03T14:49:12.000Z | 2022-01-06T01:05:12.000Z | from ._yaxis import YAxisValidator
from ._xsrc import XsrcValidator
from ._xcalendar import XcalendarValidator
from ._xaxis import XAxisValidator
from ._x import XValidator
from ._visible import VisibleValidator
from ._uid import UidValidator
from ._tickwidth import TickwidthValidator
from ._textsrc import TextsrcValid... | 37.828571 | 52 | 0.871601 | 136 | 1,324 | 8.235294 | 0.514706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102719 | 1,324 | 34 | 53 | 38.941176 | 0.942761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
538cbf0c141dab3f8224a2fc01eac164031cbdbc | 197 | py | Python | backend/apps/events/apps.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 3 | 2021-11-18T09:29:14.000Z | 2022-01-13T20:12:11.000Z | backend/apps/events/apps.py | rubberdok/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | 277 | 2022-01-17T18:16:44.000Z | 2022-03-31T19:44:04.000Z | backend/apps/events/apps.py | hovedstyret/indok-web | 598e9ca0b5f3a5e776a85dec0a8694b9bcd5a159 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class EventsConfig(AppConfig):
name = "apps.events"
def ready(self) -> None:
import apps.events.signals # noqa
return super().ready()
| 17.909091 | 42 | 0.649746 | 23 | 197 | 5.565217 | 0.73913 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243655 | 197 | 10 | 43 | 19.7 | 0.85906 | 0.020305 | 0 | 0 | 0 | 0 | 0.057592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
538ed33c59aa5cddaad36977a115ede6021c1625 | 623 | py | Python | Day51/Validity_of_Password.py | tushartrip1010/100_days_code_py | ee74b429e98cdd8bdf8661cf987da67c9fee5a3e | [
"Apache-2.0"
] | null | null | null | Day51/Validity_of_Password.py | tushartrip1010/100_days_code_py | ee74b429e98cdd8bdf8661cf987da67c9fee5a3e | [
"Apache-2.0"
] | null | null | null | Day51/Validity_of_Password.py | tushartrip1010/100_days_code_py | ee74b429e98cdd8bdf8661cf987da67c9fee5a3e | [
"Apache-2.0"
] | null | null | null | import re
password = "R@m@_f0rtu9e$"
flag = 0
while True:
if len(password) < 8:
flag = -1
break
elif not re.search("[A-Z]", password):
flag = -1
break
elif not re.search("[a-z]", password):
flag = -1
break
elif not re.search("[0-9]", password)... | 20.766667 | 43 | 0.4687 | 77 | 623 | 3.766234 | 0.350649 | 0.12069 | 0.206897 | 0.241379 | 0.517241 | 0.441379 | 0.441379 | 0.441379 | 0.327586 | 0.327586 | 0 | 0.034301 | 0.391653 | 623 | 29 | 44 | 21.482759 | 0.730871 | 0 | 0 | 0.481481 | 0 | 0 | 0.121417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.037037 | 0 | 0.037037 | 0.074074 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
538eeb7dfdba5bef3ac5e4b18e53cc0ee0649bca | 157 | py | Python | tests/test_discord_bot.py | thyanin/Discord_Bot | 7cfa1a1056d49e75de9bb3e343d0f81efd30b96d | [
"MIT"
] | 1 | 2021-01-19T09:30:53.000Z | 2021-01-19T09:30:53.000Z | tests/test_discord_bot.py | thyanin/Discord_Bot | 7cfa1a1056d49e75de9bb3e343d0f81efd30b96d | [
"MIT"
] | 57 | 2020-05-21T13:28:11.000Z | 2022-03-12T00:18:42.000Z | tests/test_discord_bot.py | thyanin/Discord_Bot | 7cfa1a1056d49e75de9bb3e343d0f81efd30b96d | [
"MIT"
] | 1 | 2020-05-21T12:00:47.000Z | 2020-05-21T12:00:47.000Z | import sys
import os
import unittest
import discord_bot
class TestRiot(unittest.TestCase):
# def test_
if __name__ == '__main__':
unittest.main() | 13.083333 | 34 | 0.732484 | 20 | 157 | 5.25 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184713 | 157 | 12 | 35 | 13.083333 | 0.820313 | 0.057325 | 0 | 0 | 0 | 0 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.571429 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
53967253238330417b46220e89fd04d14dff2f83 | 62 | py | Python | tracaccesstoken/constants.py | wusung/tracauthtokenplugin | 8fc0f2eb49847d8cb7d3aee9c5f8dfa2d7f3f3a4 | [
"0BSD"
] | null | null | null | tracaccesstoken/constants.py | wusung/tracauthtokenplugin | 8fc0f2eb49847d8cb7d3aee9c5f8dfa2d7f3f3a4 | [
"0BSD"
] | null | null | null | tracaccesstoken/constants.py | wusung/tracauthtokenplugin | 8fc0f2eb49847d8cb7d3aee9c5f8dfa2d7f3f3a4 | [
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
NAME_RPC_TIMESTAMP = 'rpc_timestamp'
| 15.5 | 36 | 0.66129 | 8 | 62 | 4.75 | 0.75 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.145161 | 62 | 3 | 37 | 20.666667 | 0.698113 | 0.33871 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
53b2465fc94f38a72d4f612a592668fcedc7c0f6 | 298 | py | Python | PropertyAnalyzer/PropertyAnalyzer/views.py | Sangeerththan/DjangoScraper | ee3acd2bd783a19d2d2901c0b23a41576089593a | [
"MIT"
] | 1 | 2021-09-12T20:42:53.000Z | 2021-09-12T20:42:53.000Z | PropertyAnalyzer/PropertyAnalyzer/views.py | Sangeerththan/DjangoScraper | ee3acd2bd783a19d2d2901c0b23a41576089593a | [
"MIT"
] | null | null | null | PropertyAnalyzer/PropertyAnalyzer/views.py | Sangeerththan/DjangoScraper | ee3acd2bd783a19d2d2901c0b23a41576089593a | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.contrib import messages
from django.contrib.contenttypes.models import ContentType
from django.core.mail import send_mail
from .forms import ContactForm
# Create your views here.
def home_page(request):
return render(request, 'home_page.html')
| 27.090909 | 58 | 0.815436 | 42 | 298 | 5.714286 | 0.595238 | 0.166667 | 0.141667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120805 | 298 | 10 | 59 | 29.8 | 0.916031 | 0.077181 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.714286 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
53b537bf3bb6db0446718ca4da6e6a768d88face | 2,028 | py | Python | spconv/pytorch/tables.py | xiaobaishu0097/spconv | 4ef83629ea763477217a405f274fc870037eb93a | [
"Apache-2.0"
] | 909 | 2019-01-19T03:46:36.000Z | 2022-03-31T11:43:30.000Z | spconv/pytorch/tables.py | xiaobaishu0097/spconv | 4ef83629ea763477217a405f274fc870037eb93a | [
"Apache-2.0"
] | 437 | 2019-01-21T04:58:21.000Z | 2022-03-31T02:02:04.000Z | spconv/pytorch/tables.py | xiaobaishu0097/spconv | 4ef83629ea763477217a405f274fc870037eb93a | [
"Apache-2.0"
] | 277 | 2019-01-23T15:40:00.000Z | 2022-03-31T21:52:07.000Z | # Copyright 2021 Yan Yan
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 33.245902 | 74 | 0.660256 | 267 | 2,028 | 4.917603 | 0.382022 | 0.045697 | 0.048743 | 0.063976 | 0.424219 | 0.424219 | 0.365575 | 0.365575 | 0.283321 | 0.184311 | 0 | 0.013184 | 0.251972 | 2,028 | 60 | 75 | 33.8 | 0.85234 | 0.296351 | 0 | 0.424242 | 0 | 0 | 0.00071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.121212 | 0.121212 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9905dbdd1b2d20f8a079fb27f4ce99d27a23e39c | 3,244 | py | Python | tests/auth_base.py | gr1d99/shopping-list-api | 89bc520b911c64aae5b510f4efcf17ed1197bbd7 | [
"MIT"
] | null | null | null | tests/auth_base.py | gr1d99/shopping-list-api | 89bc520b911c64aae5b510f4efcf17ed1197bbd7 | [
"MIT"
] | null | null | null | tests/auth_base.py | gr1d99/shopping-list-api | 89bc520b911c64aae5b510f4efcf17ed1197bbd7 | [
"MIT"
] | null | null | null | import collections
from base64 import b64encode
from flask_restful import url_for
from flask_testing import TestCase
from app import DB
from app.conf import app_config
from .base import TestBaseCase
class TestAuthenticationBaseCase(TestBaseCase):
"""
Base class for authentication tests.
"""
def setU... | 26.809917 | 103 | 0.606042 | 386 | 3,244 | 4.979275 | 0.26943 | 0.028096 | 0.037461 | 0.040583 | 0.322581 | 0.304891 | 0.219563 | 0.163892 | 0.100937 | 0.100937 | 0 | 0.003463 | 0.287916 | 3,244 | 121 | 103 | 26.809917 | 0.828571 | 0.26233 | 0 | 0.177778 | 0 | 0 | 0.083252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.155556 | 0.155556 | 0 | 0.577778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
54d2af317072927846a6ca9b0f1dc4622d1b2777 | 403 | py | Python | Scripts/rename.py | ChristopherStavros/General | 7701fee0a2db8a8f4b2cfe80e57eb10ed86a89a8 | [
"MIT"
] | null | null | null | Scripts/rename.py | ChristopherStavros/General | 7701fee0a2db8a8f4b2cfe80e57eb10ed86a89a8 | [
"MIT"
] | null | null | null | Scripts/rename.py | ChristopherStavros/General | 7701fee0a2db8a8f4b2cfe80e57eb10ed86a89a8 | [
"MIT"
] | 1 | 2019-02-05T17:01:16.000Z | 2019-02-05T17:01:16.000Z | import os, sys, shutil
script_path = os.path.dirname(sys.argv[0])
if script_path[-1:]=='\\':
script_path = script_path.strip('\\')
for f in os.listdir(script_path):
if 'notes_' in f:
shutil.copy2('{}/{}'.format(script_path, f), '{}/{}'.format(script_path, f.replace('notes_', '')))
#os.rename('... | 40.3 | 106 | 0.605459 | 56 | 403 | 4.142857 | 0.375 | 0.387931 | 0.275862 | 0.293103 | 0.396552 | 0.396552 | 0.396552 | 0.396552 | 0.396552 | 0.396552 | 0 | 0.008621 | 0.136476 | 403 | 10 | 107 | 40.3 | 0.658046 | 0.233251 | 0 | 0 | 0 | 0 | 0.084142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
54d4a51dd48e80f5c5ca83cadd4bf2561afeeffe | 149 | py | Python | app.py | leprekon91/Andrey-grabarnick-08-11-2020 | caab3d39bbde6040bd7d5bf6eddc41e0d98e30fa | [
"MIT"
] | null | null | null | app.py | leprekon91/Andrey-grabarnick-08-11-2020 | caab3d39bbde6040bd7d5bf6eddc41e0d98e30fa | [
"MIT"
] | 3 | 2020-11-08T13:59:00.000Z | 2020-11-08T19:30:10.000Z | app.py | leprekon91/Andrey-grabarnick-08-11-2020 | caab3d39bbde6040bd7d5bf6eddc41e0d98e30fa | [
"MIT"
] | null | null | null | from server import create_app,db
app = create_app()
if __name__ == '__main__':
with app.app_context():
db.create_all(app)
app.run() | 18.625 | 32 | 0.657718 | 22 | 149 | 3.909091 | 0.590909 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214765 | 149 | 8 | 33 | 18.625 | 0.735043 | 0 | 0 | 0 | 0 | 0 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 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 | 3 |
54de8fe01309f5d68cc85b3adf0852e49bb9f6f3 | 3,010 | py | Python | api_service/migrations/0001_initial.py | renmarin/survey | 34bb773798f8eb048225677e630f961379bdd160 | [
"MIT"
] | null | null | null | api_service/migrations/0001_initial.py | renmarin/survey | 34bb773798f8eb048225677e630f961379bdd160 | [
"MIT"
] | null | null | null | api_service/migrations/0001_initial.py | renmarin/survey | 34bb773798f8eb048225677e630f961379bdd160 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-19 11:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 32.365591 | 72 | 0.403987 | 207 | 3,010 | 5.714976 | 0.338164 | 0.033812 | 0.047337 | 0.074387 | 0.639899 | 0.602705 | 0.602705 | 0.602705 | 0.602705 | 0.602705 | 0 | 0.01806 | 0.503322 | 3,010 | 92 | 73 | 32.717391 | 0.773244 | 0.01495 | 0 | 0.682353 | 1 | 0 | 0.048937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035294 | 0 | 0.082353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 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 | 3 |
54f647f4535d2fa1b280bceae7244a0c3de7f3f2 | 574 | py | Python | mystify/convert.py | aronchick/mystify | 41eb8f1850ea776f3fb700202757005831a260a7 | [
"MIT"
] | null | null | null | mystify/convert.py | aronchick/mystify | 41eb8f1850ea776f3fb700202757005831a260a7 | [
"MIT"
] | null | null | null | mystify/convert.py | aronchick/mystify | 41eb8f1850ea776f3fb700202757005831a260a7 | [
"MIT"
] | null | null | null | import json
def to_myst(model):
pass
def to_model(myst):
pass
def code_convert(cell):
# convert to myst markdown here
"""
% cell
---
cell_type: code
execution_count: 1
---
```python
print("fbddddoo")
```
foo
% endcell
"""
pass
d... | 12.755556 | 35 | 0.510453 | 58 | 574 | 4.913793 | 0.465517 | 0.098246 | 0.126316 | 0.140351 | 0.224561 | 0.224561 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.369338 | 574 | 44 | 36 | 13.045455 | 0.781768 | 0.439024 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0.454545 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
07120d783ff5d4d2bf0c88a8bf4dcf0fd3d5bf35 | 1,622 | py | Python | !ARCHIVE/nightscout_api_get_BGs.py | mikestebbins/Openaps | b8347604cf2acbc2bbff18c4b7bc8cf5d8773b41 | [
"MIT"
] | null | null | null | !ARCHIVE/nightscout_api_get_BGs.py | mikestebbins/Openaps | b8347604cf2acbc2bbff18c4b7bc8cf5d8773b41 | [
"MIT"
] | null | null | null | !ARCHIVE/nightscout_api_get_BGs.py | mikestebbins/Openaps | b8347604cf2acbc2bbff18c4b7bc8cf5d8773b41 | [
"MIT"
] | 1 | 2018-10-01T21:45:19.000Z | 2018-10-01T21:45:19.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 20 13:23:24 2016
@author: mstebbins
"""
'''
import urllib3
from urllib.request import urlopen
http = urllib3.PoolManager()
URL = 'https://mikestebbinscgmtest.azurewebsites.net/api/v1/treatments?count=2'
r = http.request('GET', 'https://mikestebbinscgmtest.azurewebsites... | 24.953846 | 117 | 0.72688 | 233 | 1,622 | 5.042918 | 0.386266 | 0.076596 | 0.220426 | 0.238298 | 0.452766 | 0.402553 | 0.349787 | 0.306383 | 0.259574 | 0.108936 | 0 | 0.059772 | 0.081998 | 1,622 | 65 | 118 | 24.953846 | 0.729349 | 0.451911 | 0 | 0.5 | 0 | 0.05 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.8 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
071693dd055fd4fe77e17f4074421758fbd3003c | 736 | py | Python | src/Gon/spyder.py | somewheve/Listed-company-news-crawl-and-text-analysis | 242e6634fc5c5accbba5680bd9db319f837b992e | [
"MIT"
] | 1 | 2020-12-21T12:24:33.000Z | 2020-12-21T12:24:33.000Z | src/Gon/spyder.py | somewheve/Listed-company-news-crawl-and-text-analysis | 242e6634fc5c5accbba5680bd9db319f837b992e | [
"MIT"
] | null | null | null | src/Gon/spyder.py | somewheve/Listed-company-news-crawl-and-text-analysis | 242e6634fc5c5accbba5680bd9db319f837b992e | [
"MIT"
] | 2 | 2021-07-05T02:42:43.000Z | 2022-02-20T09:42:58.000Z | from Kite.database import Database
from Kite import config
class Spyder(object):
def __init__(self):
self.db_obj = Database()
self.db = self.db_obj.create_db(config.DATABASE_NAME)
self.is_article_prob = .5
def extract_data(self, tag_list):
data = list()
for tag in tag... | 23 | 72 | 0.576087 | 95 | 736 | 4.231579 | 0.463158 | 0.044776 | 0.08209 | 0.069652 | 0.084577 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001916 | 0.290761 | 736 | 31 | 73 | 23.741935 | 0.768199 | 0.005435 | 0 | 0.142857 | 0 | 0 | 0.067123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.095238 | 0.047619 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
07192716c259ce04727cec1af9ea235b40cf55ed | 473 | py | Python | social/forms.py | Ianodad/Instargram | 163760ee761f2059307bf5679118675924d69fd7 | [
"MIT"
] | null | null | null | social/forms.py | Ianodad/Instargram | 163760ee761f2059307bf5679118675924d69fd7 | [
"MIT"
] | 5 | 2020-06-05T19:20:46.000Z | 2021-09-08T00:33:03.000Z | social/forms.py | Ianodad/Instargram | 163760ee761f2059307bf5679118675924d69fd7 | [
"MIT"
] | null | null | null | from django import forms
from django.forms import ModelForm
from .models import Profile, Post, Comment
class ProfileForm(forms.ModelForm):
class Meta:
model = Profile
fields = ["bio", "profile_picture", 'name']
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
... | 18.192308 | 56 | 0.646934 | 52 | 473 | 5.826923 | 0.403846 | 0.138614 | 0.188119 | 0.227723 | 0.277228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249471 | 473 | 25 | 57 | 18.92 | 0.853521 | 0 | 0 | 0.2 | 0 | 0 | 0.118393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0735c6ec4ffb89e9bd77f2eb936dbf2370efffc8 | 184 | py | Python | reactlibapp/reactlibapp/settings/__init__.py | andela-sjames/Django-ReactJS-Library-App | d5d82e82a039ea90ffa8d65587dc10d2a0a1b1e5 | [
"MIT"
] | 14 | 2016-09-17T20:35:31.000Z | 2020-12-14T09:52:06.000Z | reactlibapp/reactlibapp/settings/__init__.py | BolajiOlajide/Django-ReactJS-Library-App | d5d82e82a039ea90ffa8d65587dc10d2a0a1b1e5 | [
"MIT"
] | 35 | 2017-07-29T21:01:55.000Z | 2022-02-09T23:08:18.000Z | reactlibapp/reactlibapp/settings/__init__.py | BolajiOlajide/Django-ReactJS-Library-App | d5d82e82a039ea90ffa8d65587dc10d2a0a1b1e5 | [
"MIT"
] | 5 | 2018-10-24T20:10:34.000Z | 2021-03-18T07:00:35.000Z | """Define settings using values of environment variables."""
import dotenv
dotenv.load()
if dotenv.get('HEROKU'):
from .production import *
else:
from .development import *
| 16.727273 | 60 | 0.711957 | 22 | 184 | 5.954545 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 184 | 10 | 61 | 18.4 | 0.861842 | 0.293478 | 0 | 0 | 0 | 0 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
074ed1afeeea5c6f313c7936d8ed0b845fe0fc34 | 404 | py | Python | havenir_erpnext_iot/havenir_erpnext_iot/doctype/havenir_iot_mqtt_config/havenir_iot_mqtt_config.py | ahmadpak/havenir_erpnext_iot | f112caf5a10f2bfe06115e06a653090d1d5fcf51 | [
"MIT"
] | 3 | 2020-06-23T23:44:52.000Z | 2021-07-01T11:20:12.000Z | havenir_erpnext_iot/havenir_erpnext_iot/doctype/havenir_iot_mqtt_config/havenir_iot_mqtt_config.py | ahmadpak/havenir_erpnext_iot | f112caf5a10f2bfe06115e06a653090d1d5fcf51 | [
"MIT"
] | null | null | null | havenir_erpnext_iot/havenir_erpnext_iot/doctype/havenir_iot_mqtt_config/havenir_iot_mqtt_config.py | ahmadpak/havenir_erpnext_iot | f112caf5a10f2bfe06115e06a653090d1d5fcf51 | [
"MIT"
] | 4 | 2020-07-29T17:57:47.000Z | 2022-02-16T03:46:50.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Havenir and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class HavenirIOTMQTTConfig(Document):
pass
@frappe.whitelist()
def get_iot_details():
iot = frap... | 25.25 | 49 | 0.777228 | 54 | 404 | 5.666667 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.121287 | 404 | 16 | 50 | 25.25 | 0.847887 | 0.282178 | 0 | 0 | 0 | 0 | 0.080139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
075a1c3823855341edb882d2ecaa5d5fd02f186c | 194 | py | Python | main/src/python/run_tensorboard.py | PhilippMatthes/predict | 4a5d8d3c19f87460c57300dcf1252353f380e213 | [
"MIT"
] | 1 | 2018-02-05T04:55:13.000Z | 2018-02-05T04:55:13.000Z | main/src/python/run_tensorboard.py | PhilippMatthes/predict | 4a5d8d3c19f87460c57300dcf1252353f380e213 | [
"MIT"
] | null | null | null | main/src/python/run_tensorboard.py | PhilippMatthes/predict | 4a5d8d3c19f87460c57300dcf1252353f380e213 | [
"MIT"
] | null | null | null | from main.src.python.config import logdir_path
import os
def run_tensorboard():
os.system("tensorboard --logdir {}".format(logdir_path))
if __name__ == "__main__":
run_tensorboard()
| 17.636364 | 60 | 0.726804 | 25 | 194 | 5.16 | 0.64 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14433 | 194 | 10 | 61 | 19.4 | 0.777108 | 0 | 0 | 0 | 0 | 0 | 0.159794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
075c3654844796658ddb182f2e728fbe9ad368be | 162 | py | Python | Basic/Reverse A Given Number/SolutionByVaishnavi.py | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | 261 | 2019-09-30T19:47:29.000Z | 2022-03-29T18:20:07.000Z | Basic/Reverse A Given Number/SolutionByVaishnavi.py | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | 647 | 2019-10-01T16:51:29.000Z | 2021-12-16T20:39:44.000Z | Basic/Reverse A Given Number/SolutionByVaishnavi.py | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | 383 | 2019-09-30T19:32:07.000Z | 2022-03-24T16:18:26.000Z | #To reverse a given number
def ReverseNo(num):
num = str(num)
reverse = ''.join(reversed(num))
print(reverse)
Num = int(input('N= '))
ReverseNo(Num)
| 20.25 | 36 | 0.635802 | 23 | 162 | 4.478261 | 0.652174 | 0.23301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197531 | 162 | 7 | 37 | 23.142857 | 0.792308 | 0.154321 | 0 | 0 | 0 | 0 | 0.022059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 1 | 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 | 3 |
07678c0a629ba59c330e828985312fe7071106d5 | 434 | py | Python | accounts/forms.py | t3chn0tr0n/project_snapshare | a74b43bfb9c535bbe3aca8e1c7d0f13c6ee18080 | [
"CC-BY-4.0"
] | null | null | null | accounts/forms.py | t3chn0tr0n/project_snapshare | a74b43bfb9c535bbe3aca8e1c7d0f13c6ee18080 | [
"CC-BY-4.0"
] | null | null | null | accounts/forms.py | t3chn0tr0n/project_snapshare | a74b43bfb9c535bbe3aca8e1c7d0f13c6ee18080 | [
"CC-BY-4.0"
] | null | null | null | from django import forms
from .models import Temp_user
class UserForm(forms.ModelForm):
class Meta:
model = Form
fields = ['uname', 'email', 'password']
widgets = {
'first_name' : forms.TextInput(attrs = {'class': 'form-control'}),
'last_name' : forms.TextInput(attrs... | 36.166667 | 78 | 0.578341 | 45 | 434 | 5.511111 | 0.533333 | 0.169355 | 0.229839 | 0.290323 | 0.455645 | 0.455645 | 0.314516 | 0 | 0 | 0 | 0 | 0 | 0.262673 | 434 | 12 | 79 | 36.166667 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0.213793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4ad2a238aa1b5f273140cb9cacc7b5f1f8b803e1 | 412 | py | Python | assets/__init__.py | thekevinlab/saturn-discord-bot | 416fa70ebfa10f7e0dd86315f139bb02d7fdfabc | [
"BSD-3-Clause"
] | 1 | 2021-02-05T15:42:20.000Z | 2021-02-05T15:42:20.000Z | assets/__init__.py | thekevinlab/saturn-discord-bot | 416fa70ebfa10f7e0dd86315f139bb02d7fdfabc | [
"BSD-3-Clause"
] | 6 | 2021-04-29T17:22:00.000Z | 2021-05-13T13:44:50.000Z | assets/__init__.py | thekevinlab/saturn-discord-bot | 416fa70ebfa10f7e0dd86315f139bb02d7fdfabc | [
"BSD-3-Clause"
] | null | null | null | from .errors import *
from .constants import *
from .menu import ConfirmationMenu, Paginator
from .cmd import *
from .strings import *
from .time import *
import asyncio
import datetime
import logging
import typing
import topgg
import discord
import pytz
from discord.ext import commands
from .emb import SaturnEmbed
... | 18.727273 | 51 | 0.786408 | 59 | 412 | 5.491525 | 0.610169 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165049 | 412 | 21 | 52 | 19.619048 | 0.94186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.