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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b3e1154af6f1eb866c2c34cdc822a0ff3902ab9 | 2,191 | py | Python | sorting/python/max_heap.py | zhou7rui/algorithm | 9b5500ac3d8bdfd223bf9aec55e68675f2df7c59 | [
"MIT"
] | 6 | 2017-08-31T07:13:34.000Z | 2018-09-10T08:54:43.000Z | sorting/python/max_heap.py | zhou7rui/algorithm | 9b5500ac3d8bdfd223bf9aec55e68675f2df7c59 | [
"MIT"
] | null | null | null | sorting/python/max_heap.py | zhou7rui/algorithm | 9b5500ac3d8bdfd223bf9aec55e68675f2df7c59 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
'''
最大堆实现
98
/ \
96 84
/ \ / \
92 82 78 47
/ \ / \ / \ / \
... | 24.076923 | 84 | 0.426289 | 281 | 2,191 | 3.245552 | 0.263345 | 0.201754 | 0.059211 | 0.048246 | 0.222588 | 0.157895 | 0.072368 | 0.072368 | 0.057018 | 0.057018 | 0 | 0.076735 | 0.440895 | 2,191 | 90 | 85 | 24.344444 | 0.667755 | 0.219534 | 0 | 0 | 0 | 0 | 0.004869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0 | 0.02 | 0.04 | 0.24 | 0.06 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b3e3c2d633954d06881dc1103a976a7248201f2 | 585 | py | Python | ink2canvas/svg/Use.py | greipfrut/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | 4 | 2016-05-06T21:29:39.000Z | 2020-02-25T08:47:48.000Z | ink2canvas/svg/Use.py | letw/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | null | null | null | ink2canvas/svg/Use.py | letw/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | null | null | null | from ink2canvas.svg.AbstractShape import AbstractShape
class Use(AbstractShape):
def drawClone(self):
drawables = self.rootTree.getDrawable()
OriginName = self.getCloneId()
OriginObject = self.rootTree.searchElementById(OriginName,drawables)
OriginObject.runDraw()
de... | 32.5 | 76 | 0.647863 | 53 | 585 | 7.150943 | 0.603774 | 0.063325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.247863 | 585 | 18 | 77 | 32.5 | 0.856818 | 0 | 0 | 0 | 0 | 0 | 0.015358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b454d373a4daf57bd5eb97d08752d3322beb78a | 6,146 | py | Python | bcgs/disqus_objects.py | aeturnum/bcgs | e5ae4c9f4cdd45b47615f00581dcc3792c281ea3 | [
"MIT"
] | null | null | null | bcgs/disqus_objects.py | aeturnum/bcgs | e5ae4c9f4cdd45b47615f00581dcc3792c281ea3 | [
"MIT"
] | null | null | null | bcgs/disqus_objects.py | aeturnum/bcgs | e5ae4c9f4cdd45b47615f00581dcc3792c281ea3 | [
"MIT"
] | null | null | null | import requests
import aiohttp
from constants import API_KEY
class User(object):
def __init__(self, author_info):
# "author": {
# "about": "",
# "avatar": {
# "cache": "//a.disquscdn.com/1519942534/images/noavatar92.png",
# ... | 36.802395 | 143 | 0.493817 | 548 | 6,146 | 5.394161 | 0.24635 | 0.040934 | 0.052097 | 0.051759 | 0.515223 | 0.490189 | 0.434709 | 0.393437 | 0.362652 | 0.310893 | 0 | 0.064012 | 0.374715 | 6,146 | 166 | 144 | 37.024096 | 0.705178 | 0.432314 | 0 | 0.324675 | 0 | 0 | 0.113583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168831 | false | 0 | 0.038961 | 0.103896 | 0.376623 | 0.064935 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
6b496440b1b757ff1f65cdc922e139b550fcb6ef | 473 | py | Python | setup.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | 1 | 2020-04-27T16:30:50.000Z | 2020-04-27T16:30:50.000Z | setup.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | null | null | null | setup.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | 1 | 2021-01-13T02:16:56.000Z | 2021-01-13T02:16:56.000Z | #!/usr/bin/env python3
# -*- encoding: utf-8 -*-
"""
Setup for the dbservice
"""
from setuptools import setup, find_packages
setup(
name='dbservice',
version='0.9',
description="Database service for storing meter data",
author="Søren Aagaard Mikkelsen",
author_email='smik@eng.au.dk',
url='htt... | 22.52381 | 58 | 0.646934 | 56 | 473 | 5.392857 | 0.803571 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.162791 | 473 | 20 | 59 | 23.65 | 0.752525 | 0.145877 | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b4af341d1bd006f2df5874fa788b8866cb5c77d | 800 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
The arg spec for the junos facts module.
"""
from __future__ import absolute_import, division, print_function
__metaclass__ = type
class FactsArgs(object):
""" The... | 25.806452 | 74 | 0.60625 | 95 | 800 | 4.884211 | 0.705263 | 0.025862 | 0.043103 | 0.056034 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0 | 0 | 0 | 0.014706 | 0.235 | 800 | 30 | 75 | 26.666667 | 0.743464 | 0.2775 | 0 | 0.133333 | 0 | 0 | 0.233929 | 0.091071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.066667 | 0 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
860a91391db83eb979d9849bfe427e0dbb8bf3eb | 1,171 | py | Python | helpers.py | owenjones/CaBot | dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc | [
"MIT"
] | 3 | 2020-03-26T11:43:40.000Z | 2021-12-27T18:26:06.000Z | helpers.py | owenjones/CaBot | dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc | [
"MIT"
] | 2 | 2021-05-14T01:31:12.000Z | 2021-08-23T16:07:44.000Z | helpers.py | owenjones/CaBot | dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc | [
"MIT"
] | 1 | 2020-04-22T19:06:43.000Z | 2020-04-22T19:06:43.000Z | from server import roles
def hasRole(member, roleID):
role = member.guild.get_role(roleID)
return role in member.roles
def gainedRole(before, after, roleID):
role = before.guild.get_role(roleID)
return (role not in before.roles) and (role in after.roles)
def isExplorer(ctx):
return hasRole(ctx... | 20.189655 | 63 | 0.679761 | 149 | 1,171 | 5.228188 | 0.47651 | 0.057766 | 0.102696 | 0.121951 | 0.264442 | 0.264442 | 0 | 0 | 0 | 0 | 0 | 0.18313 | 0.230572 | 1,171 | 57 | 64 | 20.54386 | 0.681465 | 0 | 0 | 0 | 0 | 0 | 0.024765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.02439 | 0.121951 | 0.95122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
860eaaee93a0cd4aceb0ebc7da1f6e2b65f05589 | 224 | py | Python | boa3_test/test_sc/event_test/EventNep5Transfer.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/event_test/EventNep5Transfer.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/event_test/EventNep5Transfer.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from boa3.builtin import public
from boa3.builtin.contract import Nep5TransferEvent
transfer = Nep5TransferEvent
@public
def Main(from_addr: bytes, to_addr: bytes, amount: int):
transfer(from_addr, to_addr, amount)
| 18.666667 | 56 | 0.785714 | 30 | 224 | 5.733333 | 0.5 | 0.093023 | 0.174419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0.138393 | 224 | 11 | 57 | 20.363636 | 0.870466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
86161f7e9f969066db82c2f68d6e2be07cfb7ad1 | 3,694 | py | Python | src/falconpy/_endpoint/_filevantage.py | kra-ts/falconpy | c7c4ed93cb3b56cdfd86757f573fde57e4ccf857 | [
"Unlicense"
] | null | null | null | src/falconpy/_endpoint/_filevantage.py | kra-ts/falconpy | c7c4ed93cb3b56cdfd86757f573fde57e4ccf857 | [
"Unlicense"
] | null | null | null | src/falconpy/_endpoint/_filevantage.py | kra-ts/falconpy | c7c4ed93cb3b56cdfd86757f573fde57e4ccf857 | [
"Unlicense"
] | null | null | null | """Internal API endpoint constant library.
_______ __ _______ __ __ __
| _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----.
|. 1___| _| _ | | | | _ | 1___| _| _| | <| -__|
|. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____|
|: 1 | ... | 35.180952 | 95 | 0.600704 | 426 | 3,694 | 4.997653 | 0.469484 | 0.01644 | 0.0155 | 0.023485 | 0.139032 | 0.093001 | 0.073274 | 0.035698 | 0 | 0 | 0 | 0.005631 | 0.278831 | 3,694 | 104 | 96 | 35.519231 | 0.793544 | 0.457228 | 0 | 0.181818 | 0 | 0.015152 | 0.624124 | 0.055055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
861a31bb111c594972aeb70c462a963cf1fefdb9 | 5,215 | py | Python | pysnmp/HH3C-PPPOE-SERVER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/HH3C-PPPOE-SERVER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/HH3C-PPPOE-SERVER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HH3C-PPPOE-SERVER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-PPPOE-SERVER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:16:17 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 115.888889 | 892 | 0.797124 | 519 | 5,215 | 8.00578 | 0.263969 | 0.007702 | 0.01083 | 0.01444 | 0.351865 | 0.282551 | 0.222383 | 0.222383 | 0.222383 | 0.218773 | 0 | 0.091964 | 0.074209 | 5,215 | 44 | 893 | 118.522727 | 0.768641 | 0.06443 | 0 | 0 | 0 | 0 | 0.141889 | 0.013347 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.189189 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
861a472cf4ef7f924185a3fe1ea6569338502257 | 2,041 | py | Python | Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py | suhaili99/python-share | 6c65faaff722b8bd9e381650a6b277f56d1ae4c9 | [
"MIT"
] | 4 | 2019-10-21T11:00:55.000Z | 2020-10-22T16:11:21.000Z | Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py | suhaili99/python-share | 6c65faaff722b8bd9e381650a6b277f56d1ae4c9 | [
"MIT"
] | 1 | 2019-12-17T05:20:26.000Z | 2019-12-17T05:20:26.000Z | Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py | suhaili99/python-share | 6c65faaff722b8bd9e381650a6b277f56d1ae4c9 | [
"MIT"
] | 9 | 2019-10-20T05:48:03.000Z | 2020-11-17T14:08:14.000Z | name = input("masukkan nama pembeli = ")
alamat= input("Alamat = ")
NoTelp = input("No Telp = ")
print("\n")
print("=================INFORMASI HARGA MOBIL DEALER JAYA ABADI===============")
print("Pilih Jenis Mobil :")
print("\t 1.Daihatsu ")
print("\t 2.Honda ")
print("\t 3.Toyota ")
print("")
pilihan = int(input("Pil... | 34.59322 | 80 | 0.529152 | 241 | 2,041 | 4.481328 | 0.307054 | 0.092593 | 0.125 | 0.055556 | 0.221296 | 0.15463 | 0.15463 | 0 | 0 | 0 | 0 | 0.031228 | 0.293974 | 2,041 | 58 | 81 | 35.189655 | 0.718251 | 0 | 0 | 0.115385 | 0 | 0 | 0.476237 | 0.012739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.596154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
861d74d55db578d9eef6b283f432f055362e839e | 975 | py | Python | examples/given_data.py | GuoJingyao/cornac | e7529990ec1dfa586c4af3de98e4b3e00a786578 | [
"Apache-2.0"
] | null | null | null | examples/given_data.py | GuoJingyao/cornac | e7529990ec1dfa586c4af3de98e4b3e00a786578 | [
"Apache-2.0"
] | null | null | null | examples/given_data.py | GuoJingyao/cornac | e7529990ec1dfa586c4af3de98e4b3e00a786578 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Example to train and evaluate a model with given data
@author: Quoc-Tuan Truong <tuantq.vnu@gmail.com>
"""
from cornac.data import Reader
from cornac.eval_methods import BaseMethod
from cornac.models import MF
from cornac.metrics import MAE, RMSE
from cornac.utils import cache
# Download... | 33.62069 | 100 | 0.73641 | 146 | 975 | 4.80137 | 0.541096 | 0.071327 | 0.039943 | 0.054208 | 0.194009 | 0.194009 | 0.194009 | 0.194009 | 0.194009 | 0.194009 | 0 | 0.026222 | 0.139487 | 975 | 28 | 101 | 34.821429 | 0.809297 | 0.2 | 0 | 0 | 0 | 0 | 0.158442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
861f5e4cfdc98de2a394371bb5b02dd397322979 | 203 | py | Python | Python/Fibonacci.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 1 | 2018-12-19T11:42:09.000Z | 2018-12-19T11:42:09.000Z | Python/Fibonacci.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 1 | 2019-10-25T09:19:21.000Z | 2019-10-25T09:19:21.000Z | Python/Fibonacci.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 7 | 2019-09-11T07:17:32.000Z | 2019-09-25T12:23:52.000Z | #Doesn't work.
import time
fibonacci = [1, 1]
n = int(input())
while len(fibonacci) < n:
fibonacci.append(fibonacci[-1] + fibonacci[-2])
for i in range(n):
print(fibonacci[i], end=' ')
| 20.3 | 52 | 0.605911 | 30 | 203 | 4.1 | 0.666667 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.211823 | 203 | 9 | 53 | 22.555556 | 0.74375 | 0.064039 | 0 | 0 | 0 | 0 | 0.005556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86205fe9ef8a0c045201301f18357ead5b9c92fc | 6,081 | py | Python | py/_log/log.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2018-03-14T06:45:40.000Z | 2018-06-08T07:46:02.000Z | py/_log/log.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2019-03-23T08:23:21.000Z | 2019-03-23T08:23:21.000Z | py/_log/log.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2017-11-07T18:05:19.000Z | 2017-11-14T18:06:55.000Z | """
basic logging functionality based on a producer/consumer scheme.
XXX implement this API: (maybe put it into slogger.py?)
log = Logger(
info=py.log.STDOUT,
debug=py.log.STDOUT,
command=None)
log.info("hello", "world")
log... | 32.518717 | 79 | 0.587568 | 682 | 6,081 | 5.093842 | 0.256598 | 0.037997 | 0.018998 | 0.017271 | 0.107369 | 0.090674 | 0.048071 | 0.035406 | 0.035406 | 0.035406 | 0 | 0.002831 | 0.302911 | 6,081 | 186 | 80 | 32.693548 | 0.816702 | 0.233021 | 0 | 0.132743 | 0 | 0 | 0.04698 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 1 | 0.230089 | false | 0.00885 | 0.00885 | 0.053097 | 0.389381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86207cdb07326bc532b6b5b79d11a692b3f498c4 | 1,696 | py | Python | test/test_all_contacts.py | Sergggio/python_training | 6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4 | [
"Apache-2.0"
] | null | null | null | test/test_all_contacts.py | Sergggio/python_training | 6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4 | [
"Apache-2.0"
] | null | null | null | test/test_all_contacts.py | Sergggio/python_training | 6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4 | [
"Apache-2.0"
] | null | null | null | import re
from model.contact import Contact
def test_all_contacts(app, db):
contacts_from_db = db.get_contact_list()
phone_list_from_db = db.phones_from_db()
#email_liset_from_db = db.emails_from_db()
phone_list = []
for phone in phone_list_from_db:
phone_list.append(merge_phones_like_on_h... | 38.545455 | 94 | 0.635024 | 234 | 1,696 | 4.209402 | 0.235043 | 0.113706 | 0.121827 | 0.056853 | 0.35736 | 0.294416 | 0.257868 | 0.257868 | 0.257868 | 0.194924 | 0 | 0.001608 | 0.266509 | 1,696 | 43 | 95 | 39.44186 | 0.790193 | 0.154481 | 0 | 0.142857 | 0 | 0 | 0.009097 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.178571 | false | 0 | 0.071429 | 0.142857 | 0.392857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
862dc531f725b524bb6846cb090205fc7468f382 | 1,166 | py | Python | src/backup/template/PositionalArgumentTemplate.py | ytyaru0/Python.TemplateFileMaker.20180314204216 | 4849f982acea5d86b711c5dec4cc046016ab1031 | [
"CC0-1.0"
] | null | null | null | src/backup/template/PositionalArgumentTemplate.py | ytyaru0/Python.TemplateFileMaker.20180314204216 | 4849f982acea5d86b711c5dec4cc046016ab1031 | [
"CC0-1.0"
] | null | null | null | src/backup/template/PositionalArgumentTemplate.py | ytyaru0/Python.TemplateFileMaker.20180314204216 | 4849f982acea5d86b711c5dec4cc046016ab1031 | [
"CC0-1.0"
] | null | null | null | from string import Template
import re
class PositionalArgumentTemplate(Template):
# (?i): 大文字小文字を区別しないモードを開始する
# (?-i): 大文字小文字を区別しないモードを無効にする
idpattern_default = Template.idpattern # (?-i:[_a-zA-Z][_a-zA-Z0-9]*)
idpattern = '([0-9]+)'
def find_place_holders(self, template:str):
#for m in re... | 31.513514 | 73 | 0.587479 | 145 | 1,166 | 4.593103 | 0.344828 | 0.072072 | 0.066066 | 0.024024 | 0.075075 | 0.075075 | 0 | 0 | 0 | 0 | 0 | 0.007946 | 0.244425 | 1,166 | 36 | 74 | 32.388889 | 0.748014 | 0.316467 | 0 | 0 | 0 | 0 | 0.038314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.285714 | 0.47619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
862e0a0793ac26ff1693be29a952ce4f785121be | 1,020 | py | Python | cla-backend/cla/tests/unit/test_company.py | kdhaigud/easycla | f913f8dbf658acf4711b601f9312ca5663a4efe8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | cla-backend/cla/tests/unit/test_company.py | kdhaigud/easycla | f913f8dbf658acf4711b601f9312ca5663a4efe8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | cla-backend/cla/tests/unit/test_company.py | kdhaigud/easycla | f913f8dbf658acf4711b601f9312ca5663a4efe8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | # Copyright The Linux Foundation and each contributor to CommunityBridge.
# SPDX-License-Identifier: MIT
import json
import os
import requests
import uuid
import hug
import pytest
from falcon import HTTP_200, HTTP_409
import cla
from cla import routes
ID_TOKEN = os.environ.get('ID_TOKEN')
API_URL = os.environ.get('... | 23.72093 | 73 | 0.673529 | 133 | 1,020 | 4.992481 | 0.428571 | 0.099398 | 0.036145 | 0.051205 | 0.225904 | 0.225904 | 0.13253 | 0.13253 | 0.13253 | 0 | 0 | 0.018916 | 0.222549 | 1,020 | 42 | 74 | 24.285714 | 0.818411 | 0.157843 | 0 | 0.133333 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.033333 | false | 0 | 0.333333 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
86346fa63b7971b7ad956846f8bc8dcc94175283 | 2,679 | py | Python | server/cauth/views.py | mashaka/TravelHelper | 8a216dd13c253e138f241187dee46e6e53281a7b | [
"MIT"
] | null | null | null | server/cauth/views.py | mashaka/TravelHelper | 8a216dd13c253e138f241187dee46e6e53281a7b | [
"MIT"
] | 3 | 2020-02-11T23:38:20.000Z | 2021-06-10T19:10:53.000Z | server/cauth/views.py | mashaka/TravelHelper | 8a216dd13c253e138f241187dee46e6e53281a7b | [
"MIT"
] | 1 | 2018-09-19T11:19:48.000Z | 2018-09-19T11:19:48.000Z | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import AdminPasswordChangeForm, PasswordChangeForm, UserCreationForm
from django.contrib.auth import update_session_auth_hash, login, authenticate
from django.contrib import messages
from django... | 31.892857 | 99 | 0.709966 | 312 | 2,679 | 5.942308 | 0.294872 | 0.04315 | 0.036677 | 0.040453 | 0.081985 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0.00464 | 0.195595 | 2,679 | 83 | 100 | 32.277108 | 0.855684 | 0 | 0 | 0.231884 | 0 | 0 | 0.086226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.15942 | 0.15942 | 0.028986 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
863b23444fda9cb581afbddd6338c59075cfc887 | 1,793 | py | Python | tests/test_responder.py | craigderington/responder-persons-api | d2270d2f761c5dd3dbe253113d410f3e37d4d217 | [
"Apache-2.0"
] | null | null | null | tests/test_responder.py | craigderington/responder-persons-api | d2270d2f761c5dd3dbe253113d410f3e37d4d217 | [
"Apache-2.0"
] | null | null | null | tests/test_responder.py | craigderington/responder-persons-api | d2270d2f761c5dd3dbe253113d410f3e37d4d217 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import pytest
import app as service
import yaml
import responder
from starlette.responses import PlainTextResponse
@pytest.fixture
def api():
return service.api
def test_hello_world(api):
r = api.requests.get("/api/v1.0/index")
assert r.text == "Hello, World!"
def test_basic_route(api... | 19.703297 | 65 | 0.621305 | 253 | 1,793 | 4.316206 | 0.284585 | 0.051282 | 0.065934 | 0.082418 | 0.349817 | 0.311355 | 0.261905 | 0.177656 | 0.1337 | 0.1337 | 0 | 0.018813 | 0.229225 | 1,793 | 90 | 66 | 19.922222 | 0.771346 | 0.00725 | 0 | 0.189655 | 0 | 0 | 0.106299 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 1 | 0.275862 | false | 0 | 0.103448 | 0.034483 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8648090bbe37bd69072d860284239d2be5f5a913 | 469 | py | Python | code-wars/010.moving-zeros-to-the-end.py | code-knayam/DataStructureAlgorithms | 8425911633d4d343c58798a123175289ed0df1fe | [
"MIT"
] | null | null | null | code-wars/010.moving-zeros-to-the-end.py | code-knayam/DataStructureAlgorithms | 8425911633d4d343c58798a123175289ed0df1fe | [
"MIT"
] | null | null | null | code-wars/010.moving-zeros-to-the-end.py | code-knayam/DataStructureAlgorithms | 8425911633d4d343c58798a123175289ed0df1fe | [
"MIT"
] | null | null | null | # Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
def move_zeros(array):
#your code here
new_array = []
new_index = 0
while len(array) > 0:
item = array.pop(0)
if item == 0 and not type(item) == bool :
... | 31.266667 | 123 | 0.603412 | 70 | 469 | 3.914286 | 0.557143 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015674 | 0.319829 | 469 | 15 | 124 | 31.266667 | 0.84326 | 0.287846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
864a44b2fa4b1d6dbb15ace15ef151c81922788f | 928 | py | Python | __main__.py | miezebieze/scott-launcher | a03597d0883af075128d1ea4ea53e7b5132807b1 | [
"MIT"
] | 1 | 2020-06-12T20:49:47.000Z | 2020-06-12T20:49:47.000Z | __main__.py | miezebieze/scott-launcher | a03597d0883af075128d1ea4ea53e7b5132807b1 | [
"MIT"
] | null | null | null | __main__.py | miezebieze/scott-launcher | a03597d0883af075128d1ea4ea53e7b5132807b1 | [
"MIT"
] | null | null | null | from enum import Enum
from window import Window
D = Enum ('Directions','N NE E SE S SW W NW')
selector_map = {
D.NW: [0.5,0.5], D.N: [1.5,0], D.NE: [2.5,0.5],
D.W: [0,1.5], D.E: [3,1.5],
D.SW: [0.5,2.5], D.S: [1.5,3], D.SE: [2.5,2.5],
}
selector_size = 100
window_si... | 29 | 82 | 0.626078 | 158 | 928 | 3.620253 | 0.28481 | 0.181818 | 0.195804 | 0.013986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041721 | 0.173491 | 928 | 31 | 83 | 29.935484 | 0.704042 | 0.017241 | 0 | 0 | 0 | 0 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.173913 | 0.043478 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
865535238f10c51c669114bcf29b3699dd34b1e8 | 559 | py | Python | examples/django/hello_world/wsgi.py | liuyu81/SnapSearch-Client-Python | 41857806c2b26f0537de2dcc23a145107a4ecd04 | [
"MIT"
] | null | null | null | examples/django/hello_world/wsgi.py | liuyu81/SnapSearch-Client-Python | 41857806c2b26f0537de2dcc23a145107a4ecd04 | [
"MIT"
] | null | null | null | examples/django/hello_world/wsgi.py | liuyu81/SnapSearch-Client-Python | 41857806c2b26f0537de2dcc23a145107a4ecd04 | [
"MIT"
] | 1 | 2018-03-04T20:24:14.000Z | 2018-03-04T20:24:14.000Z | import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hello_world.settings")
# django WSGI application
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
# load SnapSearch API credentials
api_email = "<email>"
api_key = "<key>"
# initialize the interceptor
from SnapSearch im... | 27.95 | 71 | 0.815742 | 65 | 559 | 6.846154 | 0.415385 | 0.101124 | 0.080899 | 0.125843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103757 | 559 | 19 | 72 | 29.421053 | 0.888224 | 0.187835 | 0 | 0 | 0 | 0 | 0.120267 | 0.048998 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
865b44ebd78e20ddd28ec532ea20204eaa6a07dc | 848 | py | Python | examples/run_merger.py | needlehaystack/needlestack | e00529a2a7c2d85059936a85f54dfb55e515b6ef | [
"Apache-2.0"
] | 3 | 2019-10-03T22:15:21.000Z | 2022-02-08T09:05:41.000Z | examples/run_merger.py | cungtv/needlestack | e00529a2a7c2d85059936a85f54dfb55e515b6ef | [
"Apache-2.0"
] | 1 | 2021-04-30T21:08:47.000Z | 2021-04-30T21:08:47.000Z | examples/run_merger.py | cungtv/needlestack | e00529a2a7c2d85059936a85f54dfb55e515b6ef | [
"Apache-2.0"
] | 2 | 2019-08-02T19:13:09.000Z | 2019-10-25T01:47:17.000Z | import logging
from grpc_health.v1 import health_pb2, health_pb2_grpc
from grpc_health.v1.health import HealthServicer
from needlestack.apis import servicers_pb2_grpc
from needlestack.servicers import factory
from needlestack.servicers.merger import MergerServicer
from examples import configs
logging.getLogger("kaz... | 25.69697 | 92 | 0.792453 | 101 | 848 | 6.356436 | 0.376238 | 0.056075 | 0.043614 | 0.049844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0.127358 | 848 | 32 | 93 | 26.5 | 0.856757 | 0 | 0 | 0 | 0 | 0 | 0.027123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.35 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
865b48e5b6d60c2c5b81fb4b0a827e80f5502ece | 4,482 | py | Python | engine_wrapper.py | lidevelopers/Lishogi-Bot-1 | 5e669870930fe497e323324f36ccdbf5b04d26d3 | [
"MIT"
] | null | null | null | engine_wrapper.py | lidevelopers/Lishogi-Bot-1 | 5e669870930fe497e323324f36ccdbf5b04d26d3 | [
"MIT"
] | 2 | 2021-06-28T11:09:19.000Z | 2021-06-30T16:59:13.000Z | engine_wrapper.py | lidevelopers/Lishogi-Bot-1 | 5e669870930fe497e323324f36ccdbf5b04d26d3 | [
"MIT"
] | 9 | 2021-06-28T08:06:08.000Z | 2021-10-06T05:01:57.000Z | import os
import shogi
import backoff
import subprocess
from util import *
import logging
logger = logging.getLogger(__name__)
import engine_ctrl
@backoff.on_exception(backoff.expo, BaseException, max_time=120)
def create_engine(config, board):
cfg = config["engine"]
engine_path = os.path.realpath(os.path.j... | 29.486842 | 109 | 0.566934 | 528 | 4,482 | 4.660985 | 0.206439 | 0.056887 | 0.026412 | 0.026006 | 0.422999 | 0.369768 | 0.323446 | 0.222267 | 0.201138 | 0.168631 | 0 | 0.00197 | 0.320616 | 4,482 | 151 | 110 | 29.682119 | 0.80624 | 0 | 0 | 0.471074 | 0 | 0 | 0.041499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173554 | false | 0.07438 | 0.057851 | 0.008264 | 0.297521 | 0.024793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
865e9017c35669feb5f2b679820ab813bc9d8b73 | 533 | py | Python | scene_action2.py | encela95dus/ios_pythonista_examples | e136cdcb05126f0f9b9f6fb6365870876b419619 | [
"MIT"
] | 36 | 2019-01-12T04:17:49.000Z | 2022-03-31T05:33:29.000Z | scene_action2.py | Backup-eric645/ios_pythonista_examples | e136cdcb05126f0f9b9f6fb6365870876b419619 | [
"MIT"
] | null | null | null | scene_action2.py | Backup-eric645/ios_pythonista_examples | e136cdcb05126f0f9b9f6fb6365870876b419619 | [
"MIT"
] | 15 | 2018-12-30T21:18:05.000Z | 2022-01-30T13:17:07.000Z | import scene
class MyScene(scene.Scene):
def setup(self):
self.label_node = scene.LabelNode('A',
position=(100,400), parent=self)
self.start_flag = False
def update(self):
if self.start_flag:
x,y = self.label_node.position
if x < 34... | 25.380952 | 52 | 0.525328 | 64 | 533 | 4.25 | 0.453125 | 0.132353 | 0.191176 | 0.132353 | 0.154412 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.371482 | 533 | 20 | 53 | 26.65 | 0.78209 | 0 | 0 | 0.125 | 0 | 0 | 0.001876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
865f59e775e337c6b42c37791b8b1b83a1c4fa34 | 2,522 | py | Python | pysh/bash_vm/shell_command.py | JordanKoeller/Pysch | 6775db00e6d551328ce49a50a5987223a9e9a9c3 | [
"MIT"
] | null | null | null | pysh/bash_vm/shell_command.py | JordanKoeller/Pysch | 6775db00e6d551328ce49a50a5987223a9e9a9c3 | [
"MIT"
] | null | null | null | pysh/bash_vm/shell_command.py | JordanKoeller/Pysch | 6775db00e6d551328ce49a50a5987223a9e9a9c3 | [
"MIT"
] | null | null | null | from __future__ import annotations
import subprocess
import os
from typing import List, Dict, Iterator, Optional, Tuple
class ShellCommand:
def __init__(self, cmd: str):
self.run_args = [
"bash", "-c", f'{cmd}'
]
# self.run_args: List[str] = [executable, *args]
def exe... | 28.022222 | 81 | 0.527756 | 257 | 2,522 | 4.984436 | 0.307393 | 0.049961 | 0.025761 | 0.037471 | 0.090554 | 0.090554 | 0.090554 | 0.090554 | 0.090554 | 0 | 0 | 0.001261 | 0.371134 | 2,522 | 89 | 82 | 28.337079 | 0.806431 | 0.018239 | 0 | 0.134328 | 0 | 0 | 0.056589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179104 | false | 0 | 0.059701 | 0.119403 | 0.41791 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
866017a177effed366d9a7810ad090cd23a963da | 1,163 | py | Python | ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py | PierreExeter/custom_gym_envs | 2b6a1c16a4198c8d9fa64f10fe09a041826ac81a | [
"MIT"
] | 1 | 2020-09-25T01:51:58.000Z | 2020-09-25T01:51:58.000Z | ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py | PierreExeter/custom_gym_envs | 2b6a1c16a4198c8d9fa64f10fe09a041826ac81a | [
"MIT"
] | null | null | null | ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py | PierreExeter/custom_gym_envs | 2b6a1c16a4198c8d9fa64f10fe09a041826ac81a | [
"MIT"
] | 1 | 2021-07-16T02:55:59.000Z | 2021-07-16T02:55:59.000Z | #!/usr/bin/env python
import gym
import rospy
from openai_ros.openai_ros_common import StartOpenAI_ROS_Environment
# initialise environment
rospy.init_node('turtlebot2_maze_random', anonymous=True, log_level=rospy.WARN)
task_and_robot_environment_name = rospy.get_param('/turtlebot2/task_and_robot_environment_name')
e... | 27.690476 | 96 | 0.687016 | 149 | 1,163 | 5.154362 | 0.395973 | 0.071615 | 0.072917 | 0.089844 | 0.105469 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008466 | 0.187446 | 1,163 | 42 | 97 | 27.690476 | 0.804233 | 0.085985 | 0 | 0 | 0 | 0 | 0.188679 | 0.061321 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.481481 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
866731500bf9de7d963d33a61b133cfd0fb18eda | 1,727 | py | Python | examples/src/python/join_streamlet_topology.py | aaronstjohn/incubator-heron | bdc35f8d23296472983956a477ea38da54d16b2b | [
"Apache-2.0"
] | 2 | 2016-07-04T07:10:31.000Z | 2018-03-28T16:59:02.000Z | examples/src/python/join_streamlet_topology.py | aaronstjohn/incubator-heron | bdc35f8d23296472983956a477ea38da54d16b2b | [
"Apache-2.0"
] | 1 | 2019-05-08T22:30:16.000Z | 2019-05-08T22:30:16.000Z | examples/src/python/join_streamlet_topology.py | aaronstjohn/incubator-heron | bdc35f8d23296472983956a477ea38da54d16b2b | [
"Apache-2.0"
] | 1 | 2017-06-05T17:55:45.000Z | 2017-06-05T17:55:45.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache... | 35.979167 | 93 | 0.735379 | 251 | 1,727 | 4.988048 | 0.505976 | 0.047923 | 0.063898 | 0.025559 | 0.049521 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013774 | 0.159236 | 1,727 | 47 | 94 | 36.744681 | 0.848485 | 0.536769 | 0 | 0 | 0 | 0 | 0.07732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
86695a9d77f6427fc910ad0a37e4e6d95359ee20 | 1,918 | py | Python | tests/test.py | Nekmo/spice | 717a2cc24ad969e1caec2aabeffc30a796c6ec91 | [
"MIT"
] | null | null | null | tests/test.py | Nekmo/spice | 717a2cc24ad969e1caec2aabeffc30a796c6ec91 | [
"MIT"
] | null | null | null | tests/test.py | Nekmo/spice | 717a2cc24ad969e1caec2aabeffc30a796c6ec91 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
import requests
import sys, os
from time import sleep
sys.path.insert(0, '/home/may/Dropbox/Programming/spice/')
import spice_api as spice
def main():
creds = spice.load_auth_from_file('auth')
print(creds)
results = spice.search('Re:Zero Kara Hajimeru Isekai Seikatsu', spic... | 34.25 | 101 | 0.717414 | 279 | 1,918 | 4.65233 | 0.333333 | 0.124807 | 0.151002 | 0.065485 | 0.200308 | 0.132512 | 0.095532 | 0 | 0 | 0 | 0 | 0.020258 | 0.150678 | 1,918 | 55 | 102 | 34.872727 | 0.77655 | 0 | 0 | 0 | 0 | 0 | 0.114181 | 0.01877 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.104167 | 0 | 0.125 | 0.479167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
86798d0504dd04df9298eafb92e49de14fb4653a | 3,804 | py | Python | cloudferry/actions/prechecks/check_vmax_prerequisites.py | SVilgelm/CloudFerry | 4459c0d21ba7ccffe51176932197b352e426ba63 | [
"Apache-2.0"
] | 6 | 2017-04-20T00:49:49.000Z | 2020-12-20T16:27:10.000Z | cloudferry/actions/prechecks/check_vmax_prerequisites.py | SVilgelm/CloudFerry | 4459c0d21ba7ccffe51176932197b352e426ba63 | [
"Apache-2.0"
] | 3 | 2017-04-08T15:47:16.000Z | 2017-05-18T17:40:59.000Z | cloudferry/actions/prechecks/check_vmax_prerequisites.py | SVilgelm/CloudFerry | 4459c0d21ba7ccffe51176932197b352e426ba63 | [
"Apache-2.0"
] | 8 | 2017-04-07T23:42:36.000Z | 2021-08-10T11:05:10.000Z | # Copyright 2016 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 41.347826 | 79 | 0.624869 | 457 | 3,804 | 5.056893 | 0.380744 | 0.021203 | 0.023799 | 0.02077 | 0.168758 | 0.064907 | 0.064907 | 0.064907 | 0 | 0 | 0 | 0.002985 | 0.295478 | 3,804 | 91 | 80 | 41.802198 | 0.859328 | 0.166404 | 0 | 0.177419 | 0 | 0 | 0.268974 | 0.023182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.129032 | 0.096774 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8681dc9beb7ce1fcfe008337221dc6feb16aedb5 | 1,888 | py | Python | conan/tools/env/virtualrunenv.py | dscole/conan | ff7b8e6703e8407773968517d68424b9ec59aa30 | [
"MIT"
] | null | null | null | conan/tools/env/virtualrunenv.py | dscole/conan | ff7b8e6703e8407773968517d68424b9ec59aa30 | [
"MIT"
] | 1 | 2019-06-07T03:02:02.000Z | 2019-06-07T03:02:02.000Z | conan/tools/env/virtualrunenv.py | dscole/conan | ff7b8e6703e8407773968517d68424b9ec59aa30 | [
"MIT"
] | 1 | 2021-08-20T19:47:51.000Z | 2021-08-20T19:47:51.000Z | from conan.tools.env import Environment
def runenv_from_cpp_info(conanfile, cpp_info):
""" return an Environment deducing the runtime information from a cpp_info
"""
dyn_runenv = Environment(conanfile)
if cpp_info is None: # This happens when the dependency is a private one = BINARY_SKIP
retu... | 37.76 | 94 | 0.697034 | 253 | 1,888 | 4.928854 | 0.351779 | 0.078589 | 0.028869 | 0.064154 | 0.158781 | 0.158781 | 0.056135 | 0.056135 | 0 | 0 | 0 | 0 | 0.227225 | 1,888 | 49 | 95 | 38.530612 | 0.854695 | 0.26589 | 0 | 0.068966 | 0 | 0 | 0.049364 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.137931 | false | 0 | 0.034483 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
868928ba8707be83d375694167add597b520a225 | 616 | py | Python | SmartCache/sim/Utilities/setup.py | Cloud-PG/smart-cache | 467987abece3fd4830fd615288046359761229f8 | [
"Apache-2.0"
] | 1 | 2019-10-13T09:05:24.000Z | 2019-10-13T09:05:24.000Z | SmartCache/sim/Utilities/setup.py | Cloud-PG/smart-cache | 467987abece3fd4830fd615288046359761229f8 | [
"Apache-2.0"
] | null | null | null | SmartCache/sim/Utilities/setup.py | Cloud-PG/smart-cache | 467987abece3fd4830fd615288046359761229f8 | [
"Apache-2.0"
] | 1 | 2019-05-16T11:53:38.000Z | 2019-05-16T11:53:38.000Z | from distutils.core import setup
setup(
name='utils',
version='1.0.0',
author='Mirco Tracolli',
author_email='mirco.tracolli@pg.infn.it',
packages=[
'utils',
],
scripts=[],
url='https://github.com/Cloud-PG/smart-cache',
license='Apache 2.0 License',
description='Utils fo... | 26.782609 | 56 | 0.61039 | 71 | 616 | 5.253521 | 0.774648 | 0.069705 | 0.042895 | 0.080429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.227273 | 616 | 22 | 57 | 28 | 0.766807 | 0 | 0 | 0 | 0 | 0 | 0.469156 | 0.040584 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
868f63854096baf68c5ff8cc2009603138d30b30 | 5,195 | py | Python | delphiIDE.py | JeisonJHA/Plugins-Development | cccb58908eed6114c569e53d5710e70b8d53f5c5 | [
"MIT"
] | null | null | null | delphiIDE.py | JeisonJHA/Plugins-Development | cccb58908eed6114c569e53d5710e70b8d53f5c5 | [
"MIT"
] | null | null | null | delphiIDE.py | JeisonJHA/Plugins-Development | cccb58908eed6114c569e53d5710e70b8d53f5c5 | [
"MIT"
] | null | null | null | import sublime_plugin
class MethodDeclaration(object):
"""docstring for MethodDeclaration"""
def __init__(self):
self._methodclass = None
self.has_implementation = False
self.has_interface = False
@property
def has_implementation(self):
return self._has_implementation... | 26.237374 | 99 | 0.609047 | 504 | 5,195 | 6.099206 | 0.212302 | 0.046519 | 0.059206 | 0.023422 | 0.030579 | 0.014964 | 0.014964 | 0 | 0 | 0 | 0 | 0.001937 | 0.304524 | 5,195 | 197 | 100 | 26.370558 | 0.848879 | 0.071992 | 0 | 0.124088 | 0 | 0 | 0.039375 | 0.019792 | 0 | 0 | 0 | 0 | 0 | 1 | 0.248175 | false | 0.007299 | 0.007299 | 0.094891 | 0.416058 | 0.014599 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ab8849571d80e31e545baaa8fc3a7e45faa001 | 6,176 | py | Python | tests/test_agent/test_manhole.py | guidow/pyfarm-agent | bb5d464f9f6549a3db3529a93e3d9f388b365586 | [
"Apache-2.0"
] | null | null | null | tests/test_agent/test_manhole.py | guidow/pyfarm-agent | bb5d464f9f6549a3db3529a93e3d9f388b365586 | [
"Apache-2.0"
] | null | null | null | tests/test_agent/test_manhole.py | guidow/pyfarm-agent | bb5d464f9f6549a3db3529a93e3d9f388b365586 | [
"Apache-2.0"
] | null | null | null | # No shebang line, this module is meant to be imported
#
# Copyright 2014 Oliver Palmer
#
# 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
#
# Unle... | 32.505263 | 79 | 0.615771 | 647 | 6,176 | 5.812983 | 0.33694 | 0.018612 | 0.017549 | 0.02712 | 0.279713 | 0.250997 | 0.238235 | 0.238235 | 0.227067 | 0.227067 | 0 | 0.011322 | 0.284974 | 6,176 | 189 | 80 | 32.677249 | 0.840353 | 0.114475 | 0 | 0.316176 | 0 | 0 | 0.106221 | 0.014485 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.095588 | false | 0.073529 | 0.102941 | 0 | 0.286765 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86abdce88613d6ee71e638ae7487297146c3e7a8 | 338 | py | Python | func-button/klSigmode.py | xcgoo/uiKLine | 80683401d7dc66262ae645db4c2780d6e71be551 | [
"MIT"
] | 232 | 2017-10-11T09:19:03.000Z | 2022-03-09T01:34:49.000Z | func-button/klSigmode.py | DON-2020-LEE/uiKLine-2 | fd1d0dca5fd6b1542af4b10c110e39361b29d378 | [
"MIT"
] | 8 | 2017-12-09T09:10:15.000Z | 2021-04-22T03:35:26.000Z | func-button/klSigmode.py | DON-2020-LEE/uiKLine-2 | fd1d0dca5fd6b1542af4b10c110e39361b29d378 | [
"MIT"
] | 132 | 2017-10-11T09:16:29.000Z | 2022-02-09T10:37:57.000Z | # coding: utf-8
"""
插入所有需要的库,和函数
"""
#----------------------------------------------------------------------
def klSigmode(self):
"""查找模式"""
if self.mode == 'deal':
self.canvas.updateSig(self.signalsOpen)
self.mode = 'dealOpen'
else:
self.canvas.updateSig(self.signals)
se... | 21.125 | 71 | 0.446746 | 30 | 338 | 5.033333 | 0.6 | 0.15894 | 0.15894 | 0.304636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.213018 | 338 | 15 | 72 | 22.533333 | 0.56391 | 0.301775 | 0 | 0 | 0 | 0 | 0.072398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ae868b0b9598e5f2e99607cce26d99b3a34dc3 | 4,147 | py | Python | vantage6/server/resource/recover.py | jaspersnel/vantage6-server | 88ad40d23cc36eaba57c170929f7ccdd0011720a | [
"Apache-2.0"
] | 2 | 2020-10-19T08:59:08.000Z | 2022-03-07T10:30:21.000Z | vantage6/server/resource/recover.py | jaspersnel/vantage6-server | 88ad40d23cc36eaba57c170929f7ccdd0011720a | [
"Apache-2.0"
] | 67 | 2020-04-15T09:43:31.000Z | 2022-03-18T08:29:17.000Z | vantage6/server/resource/recover.py | jaspersnel/vantage6-server | 88ad40d23cc36eaba57c170929f7ccdd0011720a | [
"Apache-2.0"
] | 2 | 2021-01-21T15:09:26.000Z | 2021-04-19T14:58:10.000Z | # -*- coding: utf-8 -*-
import logging
import datetime
from flask import request, render_template
from flask_jwt_extended import (
create_access_token,
decode_token
)
from jwt.exceptions import DecodeError
from flasgger import swag_from
from http import HTTPStatus
from pathlib import Path
from sqlalchemy.orm.e... | 30.718519 | 80 | 0.590306 | 459 | 4,147 | 5.187364 | 0.346405 | 0.033599 | 0.01008 | 0.01638 | 0.107518 | 0.094918 | 0.094918 | 0 | 0 | 0 | 0 | 0.002001 | 0.276827 | 4,147 | 134 | 81 | 30.947761 | 0.791931 | 0.15674 | 0 | 0.175824 | 0 | 0 | 0.180375 | 0.036075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032967 | false | 0.21978 | 0.131868 | 0 | 0.252747 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86bd70e7874de4b570ed32325f28d65eaa058486 | 4,544 | py | Python | mandoline/line_segment3d.py | Spiritdude/mandoline-py | 702cd1f9264c7d5d814600ff919406387fd86185 | [
"BSD-2-Clause"
] | 5 | 2021-09-16T10:41:44.000Z | 2021-11-04T14:45:24.000Z | mandoline/line_segment3d.py | Spiritdude/mandoline-py | 702cd1f9264c7d5d814600ff919406387fd86185 | [
"BSD-2-Clause"
] | null | null | null | mandoline/line_segment3d.py | Spiritdude/mandoline-py | 702cd1f9264c7d5d814600ff919406387fd86185 | [
"BSD-2-Clause"
] | null | null | null |
class LineSegment3D(object):
"""A class to represent a 3D line segment."""
def __init__(self, p1, p2):
"""Initialize with two endpoints."""
if p1 > p2:
p1, p2 = (p2, p1)
self.p1 = p1
self.p2 = p2
self.count = 1
def __len__(self):
"""Line segment... | 28.223602 | 79 | 0.53015 | 573 | 4,544 | 4.073298 | 0.230366 | 0.033419 | 0.027849 | 0.011997 | 0.218081 | 0.183376 | 0.167095 | 0.164524 | 0.116538 | 0.116538 | 0 | 0.028485 | 0.34331 | 4,544 | 160 | 80 | 28.4 | 0.753686 | 0.224692 | 0 | 0.205607 | 0 | 0 | 0.010291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214953 | false | 0 | 0 | 0.009346 | 0.401869 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86d39cbeb38ed832359d8101e1462aeccc15eee8 | 1,400 | py | Python | src/knownnodes.py | skeevey/PyBitmessage | 196d688b138393d1d540df3322844dfe7e7c02ba | [
"MIT"
] | 1 | 2018-04-25T08:08:47.000Z | 2018-04-25T08:08:47.000Z | src/knownnodes.py | skeevey/PyBitmessage | 196d688b138393d1d540df3322844dfe7e7c02ba | [
"MIT"
] | null | null | null | src/knownnodes.py | skeevey/PyBitmessage | 196d688b138393d1d540df3322844dfe7e7c02ba | [
"MIT"
] | 1 | 2018-04-25T08:08:48.000Z | 2018-04-25T08:08:48.000Z | import pickle
import threading
from bmconfigparser import BMConfigParser
import state
knownNodesLock = threading.Lock()
knownNodes = {}
knownNodesTrimAmount = 2000
def saveKnownNodes(dirName = None):
if dirName is None:
dirName = state.appdata
with knownNodesLock:
with open(dirName + 'knownn... | 30.434783 | 120 | 0.648571 | 134 | 1,400 | 6.776119 | 0.440299 | 0.079295 | 0.088106 | 0.114537 | 0.160793 | 0.160793 | 0.160793 | 0.160793 | 0.160793 | 0.160793 | 0 | 0.010496 | 0.251429 | 1,400 | 45 | 121 | 31.111111 | 0.855916 | 0 | 0 | 0.315789 | 0 | 0 | 0.047143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.105263 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86dbf2f275a336e7d12bde00e6cd729b126ef190 | 1,883 | py | Python | packages/facilities/diagnostics/py/custom_checkbox.py | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 2 | 2021-01-15T13:27:19.000Z | 2021-08-04T08:40:52.000Z | packages/facilities/diagnostics/py/custom_checkbox.py | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | null | null | null | packages/facilities/diagnostics/py/custom_checkbox.py | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 5 | 2018-05-01T10:39:31.000Z | 2022-03-25T03:02:35.000Z | # Copyright 2020 Jan Feitsma (Falcons)
# SPDX-License-Identifier: Apache-2.0
#!/usr/bin/python
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle
class Checkbox():
def __init__(self, name, position, default=False, label=None, rsize=0.6, enabled=True):
self.name = name # unique ID a... | 33.625 | 117 | 0.601699 | 243 | 1,883 | 4.588477 | 0.45679 | 0.043049 | 0.0287 | 0.035874 | 0.039462 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013284 | 0.280404 | 1,883 | 55 | 118 | 34.236364 | 0.809594 | 0.164631 | 0 | 0.051282 | 0 | 0 | 0.053205 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.128205 | false | 0 | 0.051282 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86dfb9b0ac538e587eb0952c661e061a843edff2 | 1,544 | py | Python | src/sol/handle_metaplex.py | terra-dashboard/staketaxcsv | 5793105488bf799c61aee64a45f44e9ae8fef397 | [
"MIT"
] | 140 | 2021-12-11T23:37:46.000Z | 2022-03-29T23:04:36.000Z | src/sol/handle_metaplex.py | terra-dashboard/staketaxcsv | 5793105488bf799c61aee64a45f44e9ae8fef397 | [
"MIT"
] | 80 | 2021-12-17T15:13:47.000Z | 2022-03-31T13:33:53.000Z | src/sol/handle_metaplex.py | terra-dashboard/staketaxcsv | 5793105488bf799c61aee64a45f44e9ae8fef397 | [
"MIT"
] | 52 | 2021-12-12T00:37:17.000Z | 2022-03-29T23:25:09.000Z | from common.make_tx import make_swap_tx
from sol.handle_simple import handle_unknown_detect_transfers
def handle_metaplex(exporter, txinfo):
transfers_in, transfers_out, _ = txinfo.transfers_net
if len(transfers_in) == 1 and len(transfers_out) == 1:
sent_amount, sent_currency, _, _ = transfers_out[0]... | 34.311111 | 98 | 0.709845 | 200 | 1,544 | 5.095 | 0.205 | 0.107949 | 0.088322 | 0.062807 | 0.752699 | 0.748773 | 0.61629 | 0.61629 | 0.551521 | 0.551521 | 0 | 0.012265 | 0.207902 | 1,544 | 44 | 99 | 35.090909 | 0.820932 | 0 | 0 | 0.5625 | 0 | 0 | 0.007772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.0625 | 0 | 0.28125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86e150137bde5dca549d0321cdc857bd542bc500 | 3,878 | py | Python | cinemasci/cis/__init__.py | cinemascience/cinemasc | 5b00a0c2e3c886f65cfbf1f59e914fc458d7068b | [
"BSD-3-Clause"
] | null | null | null | cinemasci/cis/__init__.py | cinemascience/cinemasc | 5b00a0c2e3c886f65cfbf1f59e914fc458d7068b | [
"BSD-3-Clause"
] | 3 | 2020-04-22T16:26:44.000Z | 2020-04-22T16:30:12.000Z | cinemasci/cis/__init__.py | cinemascience/cinemasc | 5b00a0c2e3c886f65cfbf1f59e914fc458d7068b | [
"BSD-3-Clause"
] | 1 | 2020-03-06T21:21:19.000Z | 2020-03-06T21:21:19.000Z | from . import imageview
from . import cisview
from . import renderer
from . import convert
class cis:
"""Composible Image Set Class
The data structure to hold properties of a Composible Image Set.
"""
def __init__(self, filename):
""" The constructor. """
self.fname = filenam... | 29.603053 | 84 | 0.555183 | 463 | 3,878 | 4.583153 | 0.207343 | 0.031103 | 0.028275 | 0.01885 | 0.075872 | 0.02639 | 0 | 0 | 0 | 0 | 0 | 0.001533 | 0.326973 | 3,878 | 130 | 85 | 29.830769 | 0.811494 | 0.194688 | 0 | 0.038462 | 0 | 0 | 0.05994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217949 | false | 0 | 0.051282 | 0 | 0.358974 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86e1817f75ca21dff7ecb06d87908e9887be1bfd | 2,172 | py | Python | applications/spaghetti.py | fos/fos-legacy | db6047668781a0615abcebc7d55a7164f3105047 | [
"BSD-3-Clause"
] | 2 | 2016-08-03T10:33:08.000Z | 2021-06-23T18:50:14.000Z | applications/spaghetti.py | fos/fos-legacy | db6047668781a0615abcebc7d55a7164f3105047 | [
"BSD-3-Clause"
] | null | null | null | applications/spaghetti.py | fos/fos-legacy | db6047668781a0615abcebc7d55a7164f3105047 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import nibabel as nib
import os.path as op
import pyglet
#pyglet.options['debug_gl'] = True
#pyglet.options['debug_x11'] = True
#pyglet.options['debug_gl_trace'] = True
#pyglet.options['debug_texture'] = True
#fos modules
from fos.actor.axes import Axes
from fos import World, Window, WindowManager
... | 31.941176 | 122 | 0.675414 | 325 | 2,172 | 4.393846 | 0.473846 | 0.036415 | 0.05042 | 0.046218 | 0.061625 | 0.036415 | 0.036415 | 0 | 0 | 0 | 0 | 0.0296 | 0.206722 | 2,172 | 67 | 123 | 32.41791 | 0.799187 | 0.282228 | 0 | 0 | 0 | 0.02439 | 0.173377 | 0.034416 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.317073 | 0 | 0.317073 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
86e708b4a5fa05856a6c8d0dde3c26f2006621e1 | 4,340 | py | Python | py_cfeve/module/CFAF240400E0-030TN-A1.py | crystalfontz/CFA-EVE-Python-Library | c5aca10b9b6ee109d4df8a9a692dcef083dafc88 | [
"Unlicense"
] | 1 | 2021-12-08T00:12:02.000Z | 2021-12-08T00:12:02.000Z | py_cfeve/module/CFAF240400E0-030TN-A1.py | crystalfontz/CFA-EVE-Python-Library | c5aca10b9b6ee109d4df8a9a692dcef083dafc88 | [
"Unlicense"
] | null | null | null | py_cfeve/module/CFAF240400E0-030TN-A1.py | crystalfontz/CFA-EVE-Python-Library | c5aca10b9b6ee109d4df8a9a692dcef083dafc88 | [
"Unlicense"
] | null | null | null | #===========================================================================
#
# Crystalfontz Raspberry-Pi Python example library for FTDI / BridgeTek
# EVE graphic accelerators.
#
#---------------------------------------------------------------------------
#
# This file is part of the port/adaptation of existin... | 38.070175 | 78 | 0.645392 | 605 | 4,340 | 4.586777 | 0.436364 | 0.014414 | 0.012973 | 0.02018 | 0.156396 | 0.103784 | 0.085045 | 0.085045 | 0.085045 | 0.085045 | 0 | 0.019225 | 0.185023 | 4,340 | 114 | 79 | 38.070175 | 0.765338 | 0.807373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ecf632226839fdabd506f9f83e9358864f79de | 4,447 | py | Python | annotation_gui_gcp/orthophoto_view.py | lioncorpo/sfm.lion-judge-corporation | 95fb11bff263c3faab62269cc907eec18b527e22 | [
"BSD-2-Clause"
] | 1 | 2019-05-31T13:50:41.000Z | 2019-05-31T13:50:41.000Z | annotation_gui_gcp/orthophoto_view.py | Pandinosaurus/OpenSfM | b892ba9fd5e7fd6c7a9e3c81edddca80f71c1cd5 | [
"BSD-2-Clause"
] | null | null | null | annotation_gui_gcp/orthophoto_view.py | Pandinosaurus/OpenSfM | b892ba9fd5e7fd6c7a9e3c81edddca80f71c1cd5 | [
"BSD-2-Clause"
] | 2 | 2017-03-31T16:54:34.000Z | 2018-07-10T11:32:22.000Z | from typing import Tuple
import numpy as np
import rasterio.warp
from opensfm import features
from .orthophoto_manager import OrthoPhotoManager
from .view import View
class OrthoPhotoView(View):
def __init__(
self,
main_ui,
path: str,
init_lat: float,
init_lon: float,
... | 35.293651 | 83 | 0.613672 | 597 | 4,447 | 4.351759 | 0.247906 | 0.038106 | 0.04157 | 0.055427 | 0.389915 | 0.335643 | 0.266744 | 0.230177 | 0.204003 | 0.182448 | 0 | 0.010274 | 0.277715 | 4,447 | 125 | 84 | 35.576 | 0.798568 | 0.152687 | 0 | 0.174419 | 0 | 0 | 0.037658 | 0.010995 | 0 | 0 | 0 | 0.032 | 0 | 1 | 0.104651 | false | 0 | 0.069767 | 0.011628 | 0.255814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ef4e909fe2cea39d77e8fe80f71f1e8cdcd676 | 1,844 | py | Python | main.py | Light-Lens/PassGen | 8f4f2ef08299d6243b939d0f08ac75bde3cabf5e | [
"MIT"
] | 3 | 2021-07-19T16:39:06.000Z | 2021-11-08T11:53:50.000Z | main.py | Light-Lens/PassGen | 8f4f2ef08299d6243b939d0f08ac75bde3cabf5e | [
"MIT"
] | null | null | null | main.py | Light-Lens/PassGen | 8f4f2ef08299d6243b939d0f08ac75bde3cabf5e | [
"MIT"
] | null | null | null | # PassGen
# These imports will be used for this project.
from colorama import Fore, Style
from colorama import init
import datetime
import string
import random
import sys
import os
# Initilaze File organizer.
os.system('title PassGen')
init(autoreset = True)
# Create Log Functions.
class LOG:
def INF... | 32.350877 | 80 | 0.691432 | 262 | 1,844 | 4.835878 | 0.408397 | 0.031571 | 0.066298 | 0.091555 | 0.211523 | 0.211523 | 0.211523 | 0.211523 | 0.211523 | 0.211523 | 0 | 0.004487 | 0.154013 | 1,844 | 56 | 81 | 32.928571 | 0.807692 | 0.186551 | 0 | 0.108108 | 0 | 0 | 0.238128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0.243243 | 0.189189 | 0 | 0.378378 | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
86f1999802fa178d60effb8dd046d22fbb0dd814 | 4,643 | py | Python | adventure-cards/package/main.py | DaneRosa/adventure-cards | 0685feeec8b56627795e685ff4fffad187881e1c | [
"MIT"
] | null | null | null | adventure-cards/package/main.py | DaneRosa/adventure-cards | 0685feeec8b56627795e685ff4fffad187881e1c | [
"MIT"
] | null | null | null | adventure-cards/package/main.py | DaneRosa/adventure-cards | 0685feeec8b56627795e685ff4fffad187881e1c | [
"MIT"
] | null | null | null | import json
def hydrateCards(rawDeckDataPath):
pack = []
rawDeckData = json.load(open(rawDeckDataPath,))
for index, item in enumerate(rawDeckData):
deck = []
# print(index,item)
for i in rawDeckData[item]:
card ={
f'{index}':
{
... | 48.873684 | 92 | 0.420633 | 443 | 4,643 | 4.306998 | 0.130926 | 0.09696 | 0.19392 | 0.069182 | 0.626834 | 0.604822 | 0.535115 | 0.43501 | 0.404612 | 0.378931 | 0 | 0.024345 | 0.41611 | 4,643 | 95 | 93 | 48.873684 | 0.679454 | 0.003661 | 0 | 0.329787 | 0 | 0 | 0.208432 | 0.010378 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010638 | false | 0 | 0.010638 | 0 | 0.021277 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86f3b70aa2f3c882bdd1f178d6aa80fab1793aab | 5,898 | py | Python | pmdarima/preprocessing/endog/boxcox.py | tuomijal/pmdarima | 5bf84a2a5c42b81b949bd252ad3d4c6c311343f8 | [
"MIT"
] | 736 | 2019-12-02T01:33:31.000Z | 2022-03-31T21:45:29.000Z | pmdarima/preprocessing/endog/boxcox.py | tuomijal/pmdarima | 5bf84a2a5c42b81b949bd252ad3d4c6c311343f8 | [
"MIT"
] | 186 | 2019-12-01T18:01:33.000Z | 2022-03-31T18:27:56.000Z | pmdarima/preprocessing/endog/boxcox.py | tuomijal/pmdarima | 5bf84a2a5c42b81b949bd252ad3d4c6c311343f8 | [
"MIT"
] | 126 | 2019-12-07T04:03:19.000Z | 2022-03-31T17:40:14.000Z | # -*- coding: utf-8 -*-
from scipy import stats
import numpy as np
import warnings
from ...compat import check_is_fitted, pmdarima as pm_compat
from .base import BaseEndogTransformer
__all__ = ['BoxCoxEndogTransformer']
class BoxCoxEndogTransformer(BaseEndogTransformer):
r"""Apply the Box-Cox transformation t... | 33.511364 | 78 | 0.598847 | 764 | 5,898 | 4.537958 | 0.231675 | 0.019037 | 0.031728 | 0.043265 | 0.462359 | 0.448515 | 0.417652 | 0.40525 | 0.40525 | 0.366023 | 0 | 0.015207 | 0.308749 | 5,898 | 175 | 79 | 33.702857 | 0.835173 | 0.56375 | 0 | 0.232143 | 0 | 0 | 0.059846 | 0.010618 | 0 | 0 | 0 | 0.011429 | 0 | 1 | 0.071429 | false | 0 | 0.089286 | 0 | 0.267857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86f9d5c800a3592d64ffbc26d845ced72a00288c | 4,005 | py | Python | src/python/pants/backend/android/tasks/aapt_builder.py | hythloday/pants | 107e9b0957f6949ac4bd535fbef8d2d8cba05c5c | [
"Apache-2.0"
] | 11 | 2015-01-20T01:39:41.000Z | 2019-08-08T07:27:44.000Z | src/python/pants/backend/android/tasks/aapt_builder.py | hythloday/pants | 107e9b0957f6949ac4bd535fbef8d2d8cba05c5c | [
"Apache-2.0"
] | 1 | 2016-03-15T20:35:18.000Z | 2016-03-15T20:35:18.000Z | src/python/pants/backend/android/tasks/aapt_builder.py | fakeNetflix/square-repo-pants | 28a018c7f47900aec4f576c81a52e0e4b41d9fec | [
"Apache-2.0"
] | 5 | 2015-03-30T02:46:53.000Z | 2018-03-08T20:10:43.000Z | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (nested_scopes, generators, division, absolute_import, with_statement,
print_function, unicode_literals)
import os
import sub... | 41.71875 | 106 | 0.698127 | 530 | 4,005 | 5.154717 | 0.403774 | 0.029283 | 0.01757 | 0.025256 | 0.044656 | 0.027086 | 0 | 0 | 0 | 0 | 0 | 0.00373 | 0.196754 | 4,005 | 95 | 107 | 42.157895 | 0.845508 | 0.30437 | 0 | 0 | 0 | 0 | 0.048657 | 0 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.118644 | false | 0 | 0.186441 | 0.033898 | 0.372881 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8101888cafdd6d738a67d105df6945c67e4d48e2 | 773 | py | Python | tools/amp_segment/ina_speech_segmenter.py | saratkumar/galaxy | 35cd0987239c1b006d6eaf70b4a03a58fb857a12 | [
"CC-BY-3.0"
] | 1 | 2020-03-11T15:17:32.000Z | 2020-03-11T15:17:32.000Z | tools/amp_segment/ina_speech_segmenter.py | saratkumar/galaxy | 35cd0987239c1b006d6eaf70b4a03a58fb857a12 | [
"CC-BY-3.0"
] | 72 | 2019-06-06T18:52:41.000Z | 2022-02-17T02:53:18.000Z | tools/done/amp_segment/ina_speech_segmenter.py | AudiovisualMetadataPlatform/amp_mgms | 593d4f4d40b597a7753cd152cd233976e6b28c75 | [
"Apache-2.0"
] | 1 | 2022-03-01T08:07:54.000Z | 2022-03-01T08:07:54.000Z | #!/usr/bin/env python3
import os
import os.path
import shutil
import subprocess
import sys
import tempfile
import uuid
import mgm_utils
def main():
(root_dir, input_file, json_file) = sys.argv[1:4]
tmpName = str(uuid.uuid4())
tmpdir = "/tmp"
temp_input_file = f"{tmpdir}/{tmpName}.dat"
temp_output_file = f"{tmpd... | 21.472222 | 83 | 0.742561 | 122 | 773 | 4.385246 | 0.385246 | 0.117757 | 0.121495 | 0.06729 | 0.082243 | 0.082243 | 0 | 0 | 0 | 0 | 0 | 0.005908 | 0.124191 | 773 | 35 | 84 | 22.085714 | 0.784343 | 0.027167 | 0 | 0 | 0 | 0 | 0.122503 | 0.087883 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.32 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
81050df4590617cea7e0daedc54d45bd783c7cfa | 367 | py | Python | stickmanZ/__main__.py | MichaelMcFarland98/cse210-project | 9e5a45a75f465fe123e33712d3c19dd88e98246a | [
"MIT"
] | 1 | 2021-07-24T00:40:14.000Z | 2021-07-24T00:40:14.000Z | stickmanZ/__main__.py | MichaelMcFarland98/cse210-project | 9e5a45a75f465fe123e33712d3c19dd88e98246a | [
"MIT"
] | null | null | null | stickmanZ/__main__.py | MichaelMcFarland98/cse210-project | 9e5a45a75f465fe123e33712d3c19dd88e98246a | [
"MIT"
] | null | null | null |
from game.game_view import GameView
from game.menu_view import menu_view
from game import constants
import arcade
SCREEN_WIDTH = constants.SCREEN_WIDTH
SCREEN_HEIGHT = constants.SCREEN_HEIGHT
SCREEN_TITLE = constants.SCREEN_TITLE
window = arcade.Window(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
start_view = menu_vi... | 22.9375 | 65 | 0.836512 | 54 | 367 | 5.388889 | 0.296296 | 0.082474 | 0.116838 | 0.158076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100817 | 367 | 15 | 66 | 24.466667 | 0.881818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
810b128cc1280e3c864be85f0fd7db633ecb097d | 35,104 | py | Python | knx-test.py | WAvdBeek/CoAPthon3 | 5aa9d6a6d9a2903d86b113da538df9bd970e6b44 | [
"MIT"
] | 1 | 2021-11-05T08:04:33.000Z | 2021-11-05T08:04:33.000Z | knx-test.py | WAvdBeek/CoAPthon3 | 5aa9d6a6d9a2903d86b113da538df9bd970e6b44 | [
"MIT"
] | 1 | 2021-07-21T12:40:54.000Z | 2021-07-21T14:42:42.000Z | knx-test.py | WAvdBeek/CoAPthon3 | 5aa9d6a6d9a2903d86b113da538df9bd970e6b44 | [
"MIT"
] | 1 | 2021-07-20T10:18:17.000Z | 2021-07-20T10:18:17.000Z | #!/usr/bin/env python
import getopt
import socket
import sys
import cbor
#from cbor2 import dumps, loads
import json
import time
import traceback
from coapthon.client.helperclient import HelperClient
from coapthon.utils import parse_uri
from coapthon import defines
client = None
paths = {}
paths_extend = {}
my_base ... | 33.786333 | 149 | 0.546206 | 4,538 | 35,104 | 4.065668 | 0.078669 | 0.066992 | 0.080217 | 0.076314 | 0.758753 | 0.732358 | 0.681843 | 0.643089 | 0.602764 | 0.575285 | 0 | 0.040155 | 0.269998 | 35,104 | 1,038 | 150 | 33.818882 | 0.679817 | 0.097425 | 0 | 0.574555 | 0 | 0.001368 | 0.177289 | 0.022312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053352 | false | 0.00684 | 0.01368 | 0 | 0.093023 | 0.199726 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
810ccb8df33ca9c859d68156c3d23f37b798cbf1 | 1,301 | py | Python | tests/components/zwave_js/test_discovery.py | tbarbette/core | 8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c | [
"Apache-2.0"
] | 1 | 2020-12-18T12:23:04.000Z | 2020-12-18T12:23:04.000Z | tests/components/zwave_js/test_discovery.py | tbarbette/core | 8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c | [
"Apache-2.0"
] | 60 | 2020-07-06T15:10:30.000Z | 2022-03-31T06:01:46.000Z | tests/components/zwave_js/test_discovery.py | tbarbette/core | 8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c | [
"Apache-2.0"
] | 4 | 2017-01-10T04:17:33.000Z | 2021-09-02T16:37:24.000Z | """Test discovery of entities for device-specific schemas for the Z-Wave JS integration."""
async def test_iblinds_v2(hass, client, iblinds_v2, integration):
"""Test that an iBlinds v2.0 multilevel switch value is discovered as a cover."""
node = iblinds_v2
assert node.device_class.specific.label == "Unus... | 34.236842 | 91 | 0.731745 | 186 | 1,301 | 4.946237 | 0.317204 | 0.058696 | 0.097826 | 0.117391 | 0.438043 | 0.343478 | 0.206522 | 0.136957 | 0.136957 | 0.136957 | 0 | 0.034291 | 0.170638 | 1,301 | 37 | 92 | 35.162162 | 0.81835 | 0.065334 | 0 | 0.333333 | 0 | 0 | 0.209544 | 0.170124 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
810e3e3e48092c408dee59bf8a6eb974e84689eb | 1,475 | py | Python | Final-Project/server/art/serializers.py | wendy006/Web-Dev-Course | 2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720 | [
"MIT"
] | null | null | null | Final-Project/server/art/serializers.py | wendy006/Web-Dev-Course | 2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720 | [
"MIT"
] | null | null | null | Final-Project/server/art/serializers.py | wendy006/Web-Dev-Course | 2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import *
class CollectionSerializer(serializers.ModelSerializer):
class Meta:
model = Collection
fields = ('collectionID', 'name', 'display_name', 'description', 'img_url')
class ArtSerializer(serializers.ModelSerializer):
img_url = ... | 35.97561 | 124 | 0.626441 | 136 | 1,475 | 6.698529 | 0.5 | 0.059276 | 0.076839 | 0.115258 | 0.215148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247458 | 1,475 | 41 | 124 | 35.97561 | 0.820721 | 0 | 0 | 0.142857 | 0 | 0 | 0.168524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.142857 | 0.057143 | 0 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
811c9730165b0d65d78610ed7c5cc6d9f073addc | 5,039 | py | Python | sifter/grammar/grammar.py | russell/sifter | 03e85349fd2329439ae3f7eb3c1f484ba2ebf807 | [
"BSD-2-Clause"
] | null | null | null | sifter/grammar/grammar.py | russell/sifter | 03e85349fd2329439ae3f7eb3c1f484ba2ebf807 | [
"BSD-2-Clause"
] | null | null | null | sifter/grammar/grammar.py | russell/sifter | 03e85349fd2329439ae3f7eb3c1f484ba2ebf807 | [
"BSD-2-Clause"
] | 1 | 2020-08-19T06:30:47.000Z | 2020-08-19T06:30:47.000Z | # Parser based on RFC 5228, especially the grammar as defined in section 8. All
# references are to sections in RFC 5228 unless stated otherwise.
import ply.yacc
import sifter.grammar
from sifter.grammar.lexer import tokens
import sifter.handler
import logging
__all__ = ('parser',)
def parser(**kwargs):
return... | 29.467836 | 81 | 0.581663 | 695 | 5,039 | 4.14964 | 0.164029 | 0.017337 | 0.010402 | 0.078017 | 0.460125 | 0.407767 | 0.388696 | 0.345007 | 0.333911 | 0.29577 | 0 | 0.024494 | 0.254614 | 5,039 | 170 | 82 | 29.641176 | 0.743344 | 0.227228 | 0 | 0.352381 | 0 | 0 | 0.169852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209524 | false | 0 | 0.047619 | 0.009524 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
811eb205fb191ad48270915e49e393d586962cb9 | 26,184 | py | Python | smipyping/_targetstable.py | KSchopmeyer/smipyping | 9c60b3489f02592bd9099b8719ca23ae43a9eaa5 | [
"MIT"
] | null | null | null | smipyping/_targetstable.py | KSchopmeyer/smipyping | 9c60b3489f02592bd9099b8719ca23ae43a9eaa5 | [
"MIT"
] | 19 | 2017-10-18T15:31:25.000Z | 2020-03-04T19:31:59.000Z | smipyping/_targetstable.py | KSchopmeyer/smipyping | 9c60b3489f02592bd9099b8719ca23ae43a9eaa5 | [
"MIT"
] | null | null | null | # (C) Copyright 2017 Inova Development Inc.
# All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 37.512894 | 80 | 0.588718 | 3,079 | 26,184 | 4.871387 | 0.169211 | 0.018335 | 0.012801 | 0.010667 | 0.185812 | 0.146343 | 0.133009 | 0.114874 | 0.099073 | 0.078539 | 0 | 0.004404 | 0.323595 | 26,184 | 697 | 81 | 37.566714 | 0.842471 | 0.331424 | 0 | 0.230986 | 0 | 0 | 0.143384 | 0 | 0 | 0 | 0 | 0.015782 | 0 | 1 | 0.084507 | false | 0.002817 | 0.03662 | 0 | 0.208451 | 0.016901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
812066ffbcb9013a2cc703f8d57626a63964c5af | 9,057 | py | Python | QUANTAXIS/QASU/crawl_eastmoney.py | QUANTAXISER/QUANTAXIS | 6ebd727b2900e8910fa45814bf45eeffca395250 | [
"MIT"
] | 1 | 2018-09-09T02:55:10.000Z | 2018-09-09T02:55:10.000Z | QUANTAXIS/QASU/crawl_eastmoney.py | frosthaoz/QUANTAXIS | f5f482418e5f6e23ac3530089b8d17300d931b48 | [
"MIT"
] | null | null | null | QUANTAXIS/QASU/crawl_eastmoney.py | frosthaoz/QUANTAXIS | f5f482418e5f6e23ac3530089b8d17300d931b48 | [
"MIT"
] | 3 | 2018-11-29T07:07:56.000Z | 2021-02-09T17:24:56.000Z | import os
from QUANTAXIS.QASetting import QALocalize
#from QUANTAXIS_CRAWLY.run_selenium_alone import (read_east_money_page_zjlx_to_sqllite, open_chrome_driver, close_chrome_dirver)
from QUANTAXIS_CRAWLY.run_selenium_alone import *
import urllib
import pandas as pd
import time
from QUANTAXIS.QAUtil import (DATABASE)
... | 30.392617 | 128 | 0.510765 | 891 | 9,057 | 4.98541 | 0.259259 | 0.02679 | 0.019811 | 0.027015 | 0.110311 | 0.086898 | 0.069338 | 0.037371 | 0.037371 | 0.020261 | 0 | 0.034689 | 0.372971 | 9,057 | 298 | 129 | 30.392617 | 0.745026 | 0.25207 | 0 | 0.072581 | 0 | 0 | 0.088015 | 0.007803 | 0 | 0 | 0 | 0.010067 | 0 | 1 | 0.016129 | false | 0.008065 | 0.056452 | 0 | 0.08871 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8123d51391f52c37336172ab4d3305871857e10f | 16,865 | py | Python | flexget/tests/test_next_series_seasons.py | metaMMA/Flexget | a38986422461d7935ead1e2b4ed4c88bcd0a90f5 | [
"MIT"
] | null | null | null | flexget/tests/test_next_series_seasons.py | metaMMA/Flexget | a38986422461d7935ead1e2b4ed4c88bcd0a90f5 | [
"MIT"
] | 1 | 2017-10-09T23:06:44.000Z | 2017-10-09T23:06:44.000Z | flexget/tests/test_next_series_seasons.py | metaMMA/Flexget | a38986422461d7935ead1e2b4ed4c88bcd0a90f5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, division, absolute_import
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin
import pytest
from flexget.entry import Entry
# TODO Add more standard tests
class TestNextSeriesSeasonSeasonsPack(object):
_config = """
templates:
... | 37.645089 | 116 | 0.520308 | 1,771 | 16,865 | 4.528515 | 0.083569 | 0.198254 | 0.135661 | 0.144015 | 0.653865 | 0.623691 | 0.578429 | 0.545885 | 0.500998 | 0.449127 | 0 | 0.062229 | 0.411147 | 16,865 | 447 | 117 | 37.729306 | 0.745343 | 0.017729 | 0 | 0.415704 | 0 | 0 | 0.720904 | 0.238449 | 0 | 0 | 0 | 0.002237 | 0.009238 | 1 | 0.009238 | false | 0 | 0.009238 | 0 | 0.025404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
812c923f7680b63727b8c0d8a0b724feb7e64f73 | 1,448 | py | Python | src/gausskernel/dbmind/xtuner/test/test_ssh.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | 1 | 2020-06-30T15:00:50.000Z | 2020-06-30T15:00:50.000Z | src/gausskernel/dbmind/xtuner/test/test_ssh.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | src/gausskernel/dbmind/xtuner/test/test_ssh.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | # Copyright (c) 2020 Huawei Technologies Co.,Ltd.
#
# openGauss is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#
# http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS... | 33.674419 | 108 | 0.631215 | 193 | 1,448 | 4.57513 | 0.595855 | 0.05436 | 0.08154 | 0.129105 | 0.216308 | 0.19026 | 0.19026 | 0.0906 | 0.0906 | 0.0906 | 0 | 0.00974 | 0.149171 | 1,448 | 42 | 109 | 34.47619 | 0.706981 | 0.520718 | 0 | 0 | 0 | 0 | 0.215774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.214286 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
813bbe394d73b1fd28585f58879386377ceda809 | 9,047 | py | Python | sympy/printing/lambdarepr.py | Carreau/sympy | 168de33bb177936fa9517702b2c5a777b3989672 | [
"BSD-3-Clause"
] | 4 | 2018-07-04T17:20:12.000Z | 2019-07-14T18:07:25.000Z | sympy/printing/lambdarepr.py | Carreau/sympy | 168de33bb177936fa9517702b2c5a777b3989672 | [
"BSD-3-Clause"
] | null | null | null | sympy/printing/lambdarepr.py | Carreau/sympy | 168de33bb177936fa9517702b2c5a777b3989672 | [
"BSD-3-Clause"
] | 1 | 2018-09-03T03:02:06.000Z | 2018-09-03T03:02:06.000Z | from __future__ import print_function, division
from .str import StrPrinter
from sympy.utilities import default_sort_key
class LambdaPrinter(StrPrinter):
"""
This printer converts expressions into strings that can be used by
lambdify.
"""
def _print_MatrixBase(self, expr):
return "%s(%s)... | 34.139623 | 92 | 0.559191 | 1,044 | 9,047 | 4.672414 | 0.253831 | 0.055351 | 0.0205 | 0.01722 | 0.359574 | 0.299713 | 0.270193 | 0.259943 | 0.235957 | 0.230217 | 0 | 0.007331 | 0.3064 | 9,047 | 264 | 93 | 34.268939 | 0.77004 | 0.20493 | 0 | 0.238342 | 0 | 0 | 0.128107 | 0.003278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129534 | false | 0 | 0.015544 | 0.031088 | 0.419689 | 0.435233 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
d49e9592c8658910d6180947346f6788ba5fdb29 | 498 | py | Python | tests/assignments/test_assign7.py | acc-cosc-1336/cosc-1336-spring-2018-vcruz350 | 0cee9fde3d4129c51626c4e0c870972aebec9b95 | [
"MIT"
] | null | null | null | tests/assignments/test_assign7.py | acc-cosc-1336/cosc-1336-spring-2018-vcruz350 | 0cee9fde3d4129c51626c4e0c870972aebec9b95 | [
"MIT"
] | 1 | 2018-03-08T19:46:08.000Z | 2018-03-08T20:00:47.000Z | tests/assignments/test_assign7.py | acc-cosc-1336/cosc-1336-spring-2018-vcruz350 | 0cee9fde3d4129c51626c4e0c870972aebec9b95 | [
"MIT"
] | null | null | null | import unittest
#write the import for function for assignment7 sum_list_values
from src.assignments.assignment7 import sum_list_values
class Test_Assign7(unittest.TestCase):
def sample_test(self):
self.assertEqual(1,1)
#create a test for the sum_list_values function with list elements:
# bill 23 ... | 29.294118 | 71 | 0.736948 | 78 | 498 | 4.474359 | 0.461538 | 0.080229 | 0.148997 | 0.068768 | 0.114613 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078624 | 0.182731 | 498 | 16 | 72 | 31.125 | 0.77887 | 0.341365 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d49ef05ecf83504c528cca6ff6237271a4f54a56 | 4,957 | py | Python | setec/__init__.py | kgriffs/setec | c6701ffd757cdfe1cfb9c3919b0fd3aa02396f54 | [
"Apache-2.0"
] | null | null | null | setec/__init__.py | kgriffs/setec | c6701ffd757cdfe1cfb9c3919b0fd3aa02396f54 | [
"Apache-2.0"
] | null | null | null | setec/__init__.py | kgriffs/setec | c6701ffd757cdfe1cfb9c3919b0fd3aa02396f54 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 by Kurt Griffiths
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 29.158824 | 86 | 0.656042 | 586 | 4,957 | 5.453925 | 0.320819 | 0.025031 | 0.046934 | 0.020651 | 0.227785 | 0.188673 | 0.156758 | 0.156758 | 0.125469 | 0.087922 | 0 | 0.018413 | 0.254993 | 4,957 | 169 | 87 | 29.331361 | 0.847008 | 0.440387 | 0 | 0.084746 | 0 | 0 | 0.019278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.237288 | false | 0 | 0.118644 | 0.050847 | 0.644068 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4a7d95a9f223064052da15a9a7a9eecfe46cfa7 | 3,810 | py | Python | atmosphere/custom_activity/base_class.py | ambiata/atmosphere-python-sdk | 48880a8553000cdea59d63b0fba49e1f0f482784 | [
"MIT"
] | null | null | null | atmosphere/custom_activity/base_class.py | ambiata/atmosphere-python-sdk | 48880a8553000cdea59d63b0fba49e1f0f482784 | [
"MIT"
] | 9 | 2021-02-21T21:53:03.000Z | 2021-11-05T06:06:55.000Z | atmosphere/custom_activity/base_class.py | ambiata/atmosphere-python-sdk | 48880a8553000cdea59d63b0fba49e1f0f482784 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Tuple
from requests import Response
from .pydantic_models import (AppliedExclusionConditionsResponse,
BiasAttributeConfigListResponse,
ComputeRewardResponse, DefaultPredictionResponse,
... | 36.634615 | 87 | 0.684777 | 379 | 3,810 | 6.691293 | 0.313984 | 0.046924 | 0.01735 | 0.01183 | 0.175868 | 0.15142 | 0.124606 | 0.124606 | 0.090694 | 0.05205 | 0 | 0 | 0.25643 | 3,810 | 103 | 88 | 36.990291 | 0.895164 | 0.323622 | 0 | 0.183673 | 0 | 0 | 0.015171 | 0.015171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244898 | false | 0 | 0.081633 | 0 | 0.469388 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4ae07ad4070643d0ba3b0f74c8b5ba6215fad3c | 2,770 | py | Python | projects/objects/buildings/protos/textures/colored_textures/textures_generator.py | yjf18340/webots | 60d441c362031ab8fde120cc0cd97bdb1a31a3d5 | [
"Apache-2.0"
] | 1 | 2019-11-13T08:12:02.000Z | 2019-11-13T08:12:02.000Z | projects/objects/buildings/protos/textures/colored_textures/textures_generator.py | chinakwy/webots | 7c35a359848bafe81fe0229ac2ed587528f4c73e | [
"Apache-2.0"
] | null | null | null | projects/objects/buildings/protos/textures/colored_textures/textures_generator.py | chinakwy/webots | 7c35a359848bafe81fe0229ac2ed587528f4c73e | [
"Apache-2.0"
] | 1 | 2020-09-25T02:01:45.000Z | 2020-09-25T02:01:45.000Z | #!/usr/bin/env python
# Copyright 1996-2019 Cyberbotics Ltd.
#
# 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 applica... | 35.063291 | 110 | 0.605415 | 450 | 2,770 | 3.695556 | 0.42 | 0.010824 | 0.014432 | 0.009621 | 0.048707 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123358 | 0.230325 | 2,770 | 78 | 111 | 35.512821 | 0.65666 | 0.36065 | 0 | 0 | 0 | 0 | 0.09868 | 0.012622 | 0 | 0 | 0 | 0.012821 | 0.022222 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4b39516d2e47e56ba5e7898643ba4593ea3b27e | 349 | py | Python | change_threshold_migration.py | arcapix/gpfsapi-examples | 15bff7fda7b0a576209253dee48eb44e4c0d565f | [
"MIT"
] | 10 | 2016-05-17T12:58:35.000Z | 2022-01-10T05:23:45.000Z | change_threshold_migration.py | arcapix/gpfsapi-examples | 15bff7fda7b0a576209253dee48eb44e4c0d565f | [
"MIT"
] | null | null | null | change_threshold_migration.py | arcapix/gpfsapi-examples | 15bff7fda7b0a576209253dee48eb44e4c0d565f | [
"MIT"
] | 1 | 2016-09-12T09:07:00.000Z | 2016-09-12T09:07:00.000Z | from arcapix.fs.gpfs.policy import PlacementPolicy
from arcapix.fs.gpfs.rule import MigrateRule
# load placement policy for mmfs1
policy = PlacementPolicy('mmfs1')
# create a new migrate rule for 'sata1'
r = MigrateRule(source='sata1', threshold=(90, 50))
# add rule to start of the policy
policy.rules.insert(r, 0)
... | 23.266667 | 51 | 0.759312 | 52 | 349 | 5.096154 | 0.634615 | 0.083019 | 0.098113 | 0.128302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0299 | 0.137536 | 349 | 14 | 52 | 24.928571 | 0.850498 | 0.326648 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4c0845bc0b80a14fbe5e783d9ed64b00db19bce | 3,383 | py | Python | app/__init__.py | credwood/bitplayers | 4ca6b6c6a21bb21d7cd963c64028415559c3dcc4 | [
"MIT"
] | 1 | 2020-06-26T21:49:14.000Z | 2020-06-26T21:49:14.000Z | app/__init__.py | credwood/bitplayers | 4ca6b6c6a21bb21d7cd963c64028415559c3dcc4 | [
"MIT"
] | 2 | 2020-03-31T11:11:04.000Z | 2021-12-13T20:38:48.000Z | app/__init__.py | credwood/bitplayers | 4ca6b6c6a21bb21d7cd963c64028415559c3dcc4 | [
"MIT"
] | null | null | null | import dash
from flask import Flask
from flask.helpers import get_root_path
from flask_login import login_required
from flask_wtf.csrf import CSRFProtect
from flask_admin import Admin, BaseView, expose
from flask_admin.contrib.sqla import ModelView
from datetime import datetime
from dateutil import parser
import pytz
f... | 35.610526 | 111 | 0.738693 | 442 | 3,383 | 5.411765 | 0.28733 | 0.038043 | 0.035535 | 0.048077 | 0.196906 | 0.145903 | 0.090719 | 0 | 0 | 0 | 0 | 0.008957 | 0.174993 | 3,383 | 94 | 112 | 35.989362 | 0.848083 | 0.100503 | 0 | 0.029851 | 0 | 0 | 0.074769 | 0.007905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.343284 | 0 | 0.462687 | 0.044776 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4c5d71a8319e8e4743e5c7446b67b54ee62af61 | 256 | py | Python | devtools/api/health.py | ankeshkhemani/devtools | beb9a46c27b6b4c02a2e8729af0c971cc175f134 | [
"Apache-2.0"
] | null | null | null | devtools/api/health.py | ankeshkhemani/devtools | beb9a46c27b6b4c02a2e8729af0c971cc175f134 | [
"Apache-2.0"
] | null | null | null | devtools/api/health.py | ankeshkhemani/devtools | beb9a46c27b6b4c02a2e8729af0c971cc175f134 | [
"Apache-2.0"
] | null | null | null | import datetime
from fastapi import APIRouter
router = APIRouter()
@router.get("", tags=["health"])
async def get_health():
return {
"results": [],
"status": "success",
"timestamp": datetime.datetime.now().timestamp()
}
| 17.066667 | 56 | 0.605469 | 25 | 256 | 6.16 | 0.68 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230469 | 256 | 14 | 57 | 18.285714 | 0.781726 | 0 | 0 | 0 | 0 | 0 | 0.136719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.3 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4cc2ada6fd8bd17a6303118a58e9c1a8c44ff7a | 2,265 | py | Python | pytorch_toolkit/face_recognition/model/common.py | AnastasiaaSenina/openvino_training_extensions | 267425d64372dff5b9083dc0ca6abfc305a71449 | [
"Apache-2.0"
] | 1 | 2020-02-09T15:50:49.000Z | 2020-02-09T15:50:49.000Z | pytorch_toolkit/face_recognition/model/common.py | akshayjaryal603/openvino_training_extensions | 7d606a22143db0af97087709d63a2ec2aa02036c | [
"Apache-2.0"
] | 28 | 2020-09-25T22:40:36.000Z | 2022-03-12T00:37:36.000Z | pytorch_toolkit/face_recognition/model/common.py | akshayjaryal603/openvino_training_extensions | 7d606a22143db0af97087709d63a2ec2aa02036c | [
"Apache-2.0"
] | 1 | 2021-04-02T07:51:01.000Z | 2021-04-02T07:51:01.000Z | """
Copyright (c) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 41.944444 | 85 | 0.714349 | 262 | 2,265 | 6.038168 | 0.454198 | 0.097345 | 0.115044 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042434 | 0.209272 | 2,265 | 53 | 86 | 42.735849 | 0.840871 | 0.283444 | 0 | 0.068966 | 0 | 0 | 0.091824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.37931 | 0 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4cd43090d9af44b579f4587a49e6d83acfe093a | 807 | py | Python | src/dataclay/util/logs.py | kpavel/pyclay | 275bc8af5c57301231a20cca1cc88556a9c84c79 | [
"BSD-3-Clause"
] | 1 | 2020-04-16T17:09:15.000Z | 2020-04-16T17:09:15.000Z | src/dataclay/util/logs.py | kpavel/pyclay | 275bc8af5c57301231a20cca1cc88556a9c84c79 | [
"BSD-3-Clause"
] | 35 | 2019-11-06T17:06:16.000Z | 2021-04-12T16:27:20.000Z | src/dataclay/util/logs.py | kpavel/pyclay | 275bc8af5c57301231a20cca1cc88556a9c84c79 | [
"BSD-3-Clause"
] | 1 | 2020-05-06T11:28:16.000Z | 2020-05-06T11:28:16.000Z |
""" Class description goes here. """
import json
import logging
class JSONFormatter(logging.Formatter):
"""Simple JSON formatter for the logging facility."""
def format(self, obj):
"""Note that obj is a LogRecord instance."""
# Copy the dictionary
ret = dict(obj.__dict__)
# ... | 26.032258 | 70 | 0.581165 | 95 | 807 | 4.873684 | 0.621053 | 0.038877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.319703 | 807 | 30 | 71 | 26.9 | 0.843352 | 0.327138 | 0 | 0 | 0 | 0 | 0.057471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d4d8056be31284c17cf40684370c5ac0209b3ede | 1,296 | py | Python | tg/release.py | TurboGears/tg2 | f40a82d016d70ce560002593b4bb8f83b57f87b3 | [
"MIT"
] | 812 | 2015-01-16T22:57:52.000Z | 2022-03-27T04:49:40.000Z | tg/release.py | KonstantinKlepikov/tg2 | b230e98bf6f64b3620dcb4214fa45dafddb0d60f | [
"MIT"
] | 74 | 2015-02-18T17:55:31.000Z | 2021-12-13T10:41:08.000Z | tg/release.py | KonstantinKlepikov/tg2 | b230e98bf6f64b3620dcb4214fa45dafddb0d60f | [
"MIT"
] | 72 | 2015-06-10T06:02:45.000Z | 2022-03-27T08:37:24.000Z | """TurboGears project related information"""
version = "2.4.3"
description = "Next generation TurboGears"
long_description="""
TurboGears brings together a best of breed python tools
to create a flexible, full featured, and easy to use web
framework.
TurboGears 2 provides an integrated and well tested set of tools for... | 41.806452 | 155 | 0.794753 | 167 | 1,296 | 6.149701 | 0.688623 | 0.013632 | 0.019474 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011638 | 0.138117 | 1,296 | 30 | 156 | 43.2 | 0.907789 | 0.029321 | 0 | 0 | 0 | 0.04 | 0.907348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4db73effedd714b6a4d9b15c4a8d627cf47c849 | 1,151 | py | Python | tests/manage/monitoring/pagerduty/test_ceph.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | tests/manage/monitoring/pagerduty/test_ceph.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | tests/manage/monitoring/pagerduty/test_ceph.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | import logging
import pytest
from ocs_ci.framework.testlib import (
managed_service_required,
skipif_ms_consumer,
tier4,
tier4a,
)
from ocs_ci.ocs import constants
from ocs_ci.utility import pagerduty
log = logging.getLogger(__name__)
@tier4
@tier4a
@managed_service_required
@skipif_ms_consumer
@py... | 26.159091 | 80 | 0.741095 | 148 | 1,151 | 5.52027 | 0.533784 | 0.044064 | 0.033048 | 0.068543 | 0.093023 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0.008611 | 0.192876 | 1,151 | 43 | 81 | 26.767442 | 0.870829 | 0.264987 | 0 | 0.068966 | 0 | 0 | 0.042631 | 0 | 0 | 0 | 0 | 0.023256 | 0.034483 | 1 | 0.034483 | false | 0 | 0.172414 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4e990995bc970a5eeb5c450531463a5dff36df5 | 2,026 | py | Python | pytouch/elements.py | Krai53n/pytouch | 8a1c69c4ba5981f3cb0bf00db3bcef5dd15e8375 | [
"MIT"
] | null | null | null | pytouch/elements.py | Krai53n/pytouch | 8a1c69c4ba5981f3cb0bf00db3bcef5dd15e8375 | [
"MIT"
] | null | null | null | pytouch/elements.py | Krai53n/pytouch | 8a1c69c4ba5981f3cb0bf00db3bcef5dd15e8375 | [
"MIT"
] | null | null | null | from random import randint
import pyxel
from constants import Screen
import cursors
class Text:
def __init__(self, text):
self._text = text
self._symbol_len = 3
self._padding_len = 1
def _count_text_len(self):
return (
self._symbol_len + self._padding_len
... | 21.104167 | 80 | 0.579961 | 278 | 2,026 | 3.92446 | 0.190647 | 0.059578 | 0.064161 | 0.043996 | 0.143905 | 0.043996 | 0 | 0 | 0 | 0 | 0 | 0.016289 | 0.30306 | 2,026 | 95 | 81 | 21.326316 | 0.756374 | 0 | 0 | 0.161765 | 0 | 0 | 0.009378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.308824 | false | 0 | 0.058824 | 0.088235 | 0.514706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4ed66dc63c65bd461e9e3340f0322d30f2b6c89 | 319 | py | Python | count_split_inversions/test_count_split_inversions.py | abaldwin/algorithms | 8c8722394c9115c572dadcd8ab601885512fd494 | [
"Apache-2.0"
] | null | null | null | count_split_inversions/test_count_split_inversions.py | abaldwin/algorithms | 8c8722394c9115c572dadcd8ab601885512fd494 | [
"Apache-2.0"
] | null | null | null | count_split_inversions/test_count_split_inversions.py | abaldwin/algorithms | 8c8722394c9115c572dadcd8ab601885512fd494 | [
"Apache-2.0"
] | null | null | null | import unittest
from count_split_inversions import count_inversions
class TestCountSplitInversions(unittest.TestCase):
def test_count_inversions(self):
input = [1, 3, 5, 2, 4, 6]
result = count_inversions(input)
self.assertEqual(result, 3)
if __name__ == '__main__':
unittest.main()
| 22.785714 | 51 | 0.705329 | 38 | 319 | 5.552632 | 0.631579 | 0.21327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027451 | 0.200627 | 319 | 13 | 52 | 24.538462 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.025078 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4f12c3a663d3edb5021b78314c1afd940fc7b1a | 412 | py | Python | accountifie/toolkit/urls.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 4 | 2017-06-02T08:48:48.000Z | 2021-11-21T23:57:15.000Z | accountifie/toolkit/urls.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 3 | 2020-06-05T16:55:42.000Z | 2021-06-10T17:43:12.000Z | accountifie/toolkit/urls.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 4 | 2015-12-15T14:27:51.000Z | 2017-04-21T21:42:27.000Z | from django.conf import settings
from django.conf.urls import url, static
from . import views
from . import jobs
urlpatterns = [
url(r'^choose_company/(?P<company_id>.*)/$', views.choose_company, name='choose_company'),
url(r'^cleanlogs/$', jobs.cleanlogs, name='cleanlogs'),
url(r'^primecache/$', job... | 27.466667 | 98 | 0.686893 | 53 | 412 | 5.226415 | 0.396226 | 0.057762 | 0.101083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 412 | 14 | 99 | 29.428571 | 0.786932 | 0 | 0 | 0 | 0 | 0 | 0.26764 | 0.087591 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4f1aa99ca10cb206e4f7702a9c7de6f3d6dfd4e | 5,975 | py | Python | intersight/models/niaapi_version_regex_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/models/niaapi_version_regex_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/models/niaapi_version_regex_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | 34.738372 | 1,052 | 0.627113 | 683 | 5,975 | 5.405564 | 0.286969 | 0.030336 | 0.094258 | 0.080444 | 0.303088 | 0.273023 | 0.270585 | 0.153846 | 0.095883 | 0.053629 | 0 | 0.013539 | 0.295397 | 5,975 | 171 | 1,053 | 34.94152 | 0.86342 | 0.450209 | 0 | 0.064103 | 0 | 0 | 0.04408 | 0.018944 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.051282 | 0 | 0.371795 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4f20508bec1fb3b3210c9cb30a6481120876c56 | 2,158 | py | Python | ROS/fprime_ws/src/genfprime/src/genfprime/generate_modmk.py | genemerewether/fprime | fcdd071b5ddffe54ade098ca5d451903daba9eed | [
"Apache-2.0"
] | 5 | 2019-10-22T03:41:02.000Z | 2022-01-16T12:48:31.000Z | ROS/fprime_ws/src/genfprime/src/genfprime/generate_modmk.py | genemerewether/fprime | fcdd071b5ddffe54ade098ca5d451903daba9eed | [
"Apache-2.0"
] | 27 | 2019-02-07T17:58:58.000Z | 2019-08-13T00:46:24.000Z | ROS/fprime_ws/src/genfprime/src/genfprime/generate_modmk.py | genemerewether/fprime | fcdd071b5ddffe54ade098ca5d451903daba9eed | [
"Apache-2.0"
] | 3 | 2019-01-01T18:44:37.000Z | 2019-08-01T01:19:39.000Z | #
# Copyright 2004-2016, by the California Institute of Technology.
# ALL RIGHTS RESERVED. United States Government Sponsorship
# acknowledged. Any commercial use must be negotiated with the Office
# of Technology Transfer at the California Institute of Technology.
#
# This software may be subject to U.S. exp... | 37.206897 | 96 | 0.698332 | 315 | 2,158 | 4.628571 | 0.419048 | 0.090535 | 0.017147 | 0.024005 | 0.240055 | 0.165981 | 0.165981 | 0.123457 | 0.106996 | 0.064472 | 0 | 0.008793 | 0.209453 | 2,158 | 57 | 97 | 37.859649 | 0.845838 | 0.580167 | 0 | 0.130435 | 0 | 0 | 0.09589 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.347826 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4f523ec6d8e4a47a69a4a400a7f08b9647af175 | 1,154 | py | Python | src/cut_link/utils.py | true7/srt | d5accd411e73ade4ed40a41759e95cb20fbda98d | [
"MIT"
] | null | null | null | src/cut_link/utils.py | true7/srt | d5accd411e73ade4ed40a41759e95cb20fbda98d | [
"MIT"
] | null | null | null | src/cut_link/utils.py | true7/srt | d5accd411e73ade4ed40a41759e95cb20fbda98d | [
"MIT"
] | null | null | null | import string
import random
import json
from calendar import month_name
from django.conf import settings
SHORTLINK_MIN = getattr(settings, "SHORTLINK_MIN", 6)
def code_generator(size=SHORTLINK_MIN):
chars = string.ascii_letters + string.digits
return ''.join(random.choice(chars) for _ in range(size))
def c... | 27.47619 | 72 | 0.710572 | 159 | 1,154 | 4.918239 | 0.509434 | 0.034527 | 0.051151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003272 | 0.205373 | 1,154 | 41 | 73 | 28.146341 | 0.849509 | 0.189775 | 0 | 0.08 | 0 | 0 | 0.014396 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.12 | false | 0 | 0.2 | 0 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be077745c0ef294c19a02fb08ff66ab17f79fb99 | 898 | py | Python | day1/files_ex1.py | grenn72/pynet-ons-feb19 | 5aff7dfa6a697214dc24818819a60b46a261d0d3 | [
"Apache-2.0"
] | null | null | null | day1/files_ex1.py | grenn72/pynet-ons-feb19 | 5aff7dfa6a697214dc24818819a60b46a261d0d3 | [
"Apache-2.0"
] | null | null | null | day1/files_ex1.py | grenn72/pynet-ons-feb19 | 5aff7dfa6a697214dc24818819a60b46a261d0d3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
# READ ####
f = open("my_file.txt")
print("\nLoop directly over file")
print("-" * 60)
for line in f:
print(line.strip())
print("-" * 60)
f.seek(0)
my_content = f.readlines()
print("\nUse readlines method")
print("-" * 60)
for line in my_content:
pri... | 18.708333 | 42 | 0.614699 | 138 | 898 | 3.905797 | 0.333333 | 0.103896 | 0.074212 | 0.103896 | 0.361781 | 0.361781 | 0.361781 | 0.269017 | 0.269017 | 0.269017 | 0 | 0.025641 | 0.174833 | 898 | 47 | 43 | 19.106383 | 0.701754 | 0.044543 | 0 | 0.472222 | 0 | 0 | 0.254459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
be10e301876952317779fb802d1ea27b44f1342a | 2,188 | py | Python | ks_engine/variable_scoring.py | FilippoRanza/ks.py | 47d909fb70fec50f8d3174855bf5d0c05527bf03 | [
"MIT"
] | 2 | 2021-01-29T11:45:39.000Z | 2022-03-10T03:17:12.000Z | ks_engine/variable_scoring.py | Optimization-Algorithms/ks.py | 44890d33a744c5c4865b96f97efc1e5241b719b1 | [
"MIT"
] | 1 | 2020-05-12T16:18:34.000Z | 2020-05-12T16:18:34.000Z | ks_engine/variable_scoring.py | Optimization-Algorithms/ks.py | 44890d33a744c5c4865b96f97efc1e5241b719b1 | [
"MIT"
] | 1 | 2021-01-29T11:45:45.000Z | 2021-01-29T11:45:45.000Z | #! /usr/bin/python
from .solution import Solution
try:
import gurobipy
except ImportError:
print("Gurobi not found: error ignored to allow tests")
def variable_score_factory(sol: Solution, base_kernel: dict, config: dict):
if config.get("VARIABLE_RANKING"):
output = VariableRanking(sol, base_ker... | 27.012346 | 86 | 0.65128 | 261 | 2,188 | 5.237548 | 0.279693 | 0.05267 | 0.076811 | 0.083394 | 0.326262 | 0.304316 | 0.304316 | 0.304316 | 0.298464 | 0.117045 | 0 | 0.007435 | 0.26234 | 2,188 | 80 | 87 | 27.35 | 0.839529 | 0.00777 | 0 | 0.375 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232143 | false | 0.035714 | 0.053571 | 0.017857 | 0.410714 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be18b88ab1937677b7e3d5583d09538c7f91bce2 | 2,460 | py | Python | pdf2write.py | codeunik/stylus_labs_write_pdf_importer | 25d7aa037647a86284c24527bda7b222cf95bb62 | [
"MIT"
] | null | null | null | pdf2write.py | codeunik/stylus_labs_write_pdf_importer | 25d7aa037647a86284c24527bda7b222cf95bb62 | [
"MIT"
] | null | null | null | pdf2write.py | codeunik/stylus_labs_write_pdf_importer | 25d7aa037647a86284c24527bda7b222cf95bb62 | [
"MIT"
] | null | null | null | import base64
import os
import sys
import PyPDF2
svg = '''<svg id="write-document" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect id="write-doc-background" width="100%" height="100%" fill="#808080"/>
<defs id="write-defs">
<script type="text/writeconfig">
<int name="docFormatVer... | 37.846154 | 230 | 0.667073 | 379 | 2,460 | 4.240106 | 0.350923 | 0.030492 | 0.046671 | 0.029869 | 0.215308 | 0.187928 | 0.170504 | 0.170504 | 0.170504 | 0.170504 | 0 | 0.049564 | 0.114228 | 2,460 | 64 | 231 | 38.4375 | 0.68793 | 0 | 0 | 0.039216 | 0 | 0.196078 | 0.713008 | 0.231301 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078431 | 0 | 0.078431 | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be18cd8c90ebbd40ae9aadcbac8dd9bce504b9ec | 2,462 | py | Python | py_headless_daw/project/having_parameters.py | hq9000/py-headless-daw | 33e08727c25d3f00b2556adf5f25c9f7ff4d4304 | [
"MIT"
] | 22 | 2020-06-09T18:46:56.000Z | 2021-09-28T02:11:42.000Z | py_headless_daw/project/having_parameters.py | hq9000/py-headless-daw | 33e08727c25d3f00b2556adf5f25c9f7ff4d4304 | [
"MIT"
] | 19 | 2020-06-03T06:34:57.000Z | 2021-01-26T07:36:17.000Z | py_headless_daw/project/having_parameters.py | hq9000/py-headless-daw | 33e08727c25d3f00b2556adf5f25c9f7ff4d4304 | [
"MIT"
] | 1 | 2020-06-18T09:25:21.000Z | 2020-06-18T09:25:21.000Z | from typing import Dict, List, cast
from py_headless_daw.project.parameter import Parameter, ParameterValueType, ParameterRangeType
class HavingParameters:
def __init__(self):
self._parameters: Dict[str, Parameter] = {}
super().__init__()
def has_parameter(self, name: str) -> bool:
... | 35.681159 | 107 | 0.644598 | 283 | 2,462 | 5.413428 | 0.229682 | 0.076371 | 0.050261 | 0.057441 | 0.399478 | 0.269582 | 0.177546 | 0.177546 | 0.177546 | 0.063969 | 0 | 0.005513 | 0.263201 | 2,462 | 68 | 108 | 36.205882 | 0.83903 | 0.010561 | 0 | 0.163265 | 0 | 0 | 0.083402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.040816 | 0.040816 | 0.387755 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be21dcede1ec1af84c0ccb9e8297bd042d23271a | 1,712 | py | Python | CondTools/BeamSpot/test/BeamSpotRcdPrinter_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 13 | 2015-11-30T15:49:45.000Z | 2022-02-08T16:11:30.000Z | CondTools/BeamSpot/test/BeamSpotRcdPrinter_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 640 | 2015-02-11T18:55:47.000Z | 2022-03-31T14:12:23.000Z | CondTools/BeamSpot/test/BeamSpotRcdPrinter_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 51 | 2015-08-11T21:01:40.000Z | 2022-03-30T07:31:34.000Z | import FWCore.ParameterSet.Config as cms
import os
process = cms.Process("summary")
process.MessageLogger = cms.Service( "MessageLogger",
debugModules = cms.untracked.vstring( "*" ),
cout = cms.untracked.PSet( threshold = cms.untracked.string( ... | 38.044444 | 110 | 0.733645 | 155 | 1,712 | 7.993548 | 0.412903 | 0.282486 | 0.100081 | 0.151735 | 0.421308 | 0.33414 | 0.33414 | 0.33414 | 0.33414 | 0.33414 | 0 | 0.113221 | 0.169393 | 1,712 | 44 | 111 | 38.909091 | 0.758087 | 0.352804 | 0 | 0 | 0 | 0 | 0.152855 | 0.115101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be237e880ccb11dff8fac9488a75005cce1dd897 | 381 | py | Python | django/authentication/api/urls.py | NAVANEETHA-BS/Django-Reactjs-Redux-Register-login-logout-Homepage--Project | f29ed189b988a2d46d76b3c58cf77d1ed58ca64d | [
"MIT"
] | 2 | 2021-05-13T18:02:00.000Z | 2022-03-30T19:53:38.000Z | django/authentication/api/urls.py | NAVANEETHA-BS/Django-Reactjs-Redux-Register-login-logout-Homepage--Project | f29ed189b988a2d46d76b3c58cf77d1ed58ca64d | [
"MIT"
] | null | null | null | django/authentication/api/urls.py | NAVANEETHA-BS/Django-Reactjs-Redux-Register-login-logout-Homepage--Project | f29ed189b988a2d46d76b3c58cf77d1ed58ca64d | [
"MIT"
] | null | null | null | from django.urls import path
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView,
TokenVerifyView
)
urlpatterns = [
path('obtain/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('... | 29.307692 | 77 | 0.734908 | 40 | 381 | 6.775 | 0.525 | 0.066421 | 0.110701 | 0.166052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131234 | 381 | 12 | 78 | 31.75 | 0.818731 | 0 | 0 | 0 | 0 | 0 | 0.167979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be23b9cced5e521037b8711e7bde05f5d17925f0 | 7,257 | py | Python | yue/core/explorer/ftpsource.py | nsetzer/YueMusicPlayer | feaf6fe5c046b1a7f6b7774d4e86a2fbb1e431cf | [
"MIT"
] | null | null | null | yue/core/explorer/ftpsource.py | nsetzer/YueMusicPlayer | feaf6fe5c046b1a7f6b7774d4e86a2fbb1e431cf | [
"MIT"
] | null | null | null | yue/core/explorer/ftpsource.py | nsetzer/YueMusicPlayer | feaf6fe5c046b1a7f6b7774d4e86a2fbb1e431cf | [
"MIT"
] | 1 | 2019-03-06T14:29:27.000Z | 2019-03-06T14:29:27.000Z |
from ftplib import FTP,error_perm, all_errors
import posixpath
from io import BytesIO,SEEK_SET
from .source import DataSource
import sys
import re
reftp = re.compile('(ssh|ftp)\:\/\/(([^@:]+)?:?([^@]+)?@)?([^:]+)(:[0-9]+)?\/(.*)')
def parseFTPurl( url ):
m = reftp.match( url )
if m:
g = m.groups()
... | 27.384906 | 83 | 0.539893 | 929 | 7,257 | 4.153929 | 0.276642 | 0.038093 | 0.021767 | 0.015548 | 0.253952 | 0.235812 | 0.193314 | 0.18554 | 0.18554 | 0.18554 | 0 | 0.009011 | 0.342428 | 7,257 | 264 | 84 | 27.488636 | 0.799665 | 0.166598 | 0 | 0.38674 | 0 | 0 | 0.053309 | 0.010194 | 0 | 0 | 0 | 0.003788 | 0 | 1 | 0.209945 | false | 0.016575 | 0.033149 | 0.099448 | 0.414365 | 0.022099 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be2a32ef4dd37c381a36c7a58f2812962caeb4d5 | 502 | py | Python | logger_application/logger.py | swatishayna/OnlineEDAAutomation | a1bfe8b1dee51a4872529a98f6e1136922329e3e | [
"MIT"
] | 1 | 2022-03-24T20:26:44.000Z | 2022-03-24T20:26:44.000Z | logger_application/logger.py | surajaiswal13/OnlineEDAAutomation | a1bfe8b1dee51a4872529a98f6e1136922329e3e | [
"MIT"
] | null | null | null | logger_application/logger.py | surajaiswal13/OnlineEDAAutomation | a1bfe8b1dee51a4872529a98f6e1136922329e3e | [
"MIT"
] | 2 | 2022-02-08T16:35:32.000Z | 2022-03-04T06:56:54.000Z | from datetime import datetime
from src.utils import uploaded_file
import os
class App_Logger:
def __init__(self):
pass
def log(self, file_object, email, log_message, log_writer_id):
self.now = datetime.now()
self.date = self.now.date()
self.current_time = self.now.strftime("%H:... | 27.888889 | 143 | 0.621514 | 73 | 502 | 4.027397 | 0.465753 | 0.071429 | 0.07483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227092 | 502 | 17 | 144 | 29.529412 | 0.757732 | 0 | 0 | 0 | 0 | 0 | 0.055888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
076c3b7d76dce4361980237fd24f6e7d24b9f302 | 368 | py | Python | utils/scripts/OOOlevelGen/src/sprites/__init__.py | fullscreennl/monkeyswipe | c56192e202674dd5ab18023f6cf14cf51e95fbd0 | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/sprites/__init__.py | fullscreennl/monkeyswipe | c56192e202674dd5ab18023f6cf14cf51e95fbd0 | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/sprites/__init__.py | fullscreennl/monkeyswipe | c56192e202674dd5ab18023f6cf14cf51e95fbd0 | [
"MIT"
] | null | null | null | __all__ = ['EnemyBucketWithStar',
'Nut',
'Beam',
'Enemy',
'Friend',
'Hero',
'Launcher',
'Rotor',
'SpikeyBuddy',
'Star',
'Wizard',
'EnemyEquipedRotor',
'CyclingEnemyObject',
'Joi... | 21.647059 | 33 | 0.366848 | 17 | 368 | 7.705882 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.497283 | 368 | 16 | 34 | 23 | 0.708108 | 0 | 0 | 0 | 0 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
076ea8e320bea4958c4967806ffb3361e0b72568 | 2,400 | py | Python | Imaging/Core/Testing/Python/TestHSVToRGB.py | forestGzh/VTK | bc98327275bd5cfa95c5825f80a2755a458b6da8 | [
"BSD-3-Clause"
] | 1,755 | 2015-01-03T06:55:00.000Z | 2022-03-29T05:23:26.000Z | Imaging/Core/Testing/Python/TestHSVToRGB.py | forestGzh/VTK | bc98327275bd5cfa95c5825f80a2755a458b6da8 | [
"BSD-3-Clause"
] | 29 | 2015-04-23T20:58:30.000Z | 2022-03-02T16:16:42.000Z | Imaging/Core/Testing/Python/TestHSVToRGB.py | forestGzh/VTK | bc98327275bd5cfa95c5825f80a2755a458b6da8 | [
"BSD-3-Clause"
] | 1,044 | 2015-01-05T22:48:27.000Z | 2022-03-31T02:38:26.000Z | #!/usr/bin/env python
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Use the painter to draw using colors.
# This is not a pipeline object. It will support pipeline objects.
# Please do not use this object directly.
imageCanvas = vtk.vtkImageCanvasSource2D()
imageCanvas.SetNumb... | 34.285714 | 67 | 0.814583 | 325 | 2,400 | 6.009231 | 0.298462 | 0.223758 | 0.048643 | 0.069124 | 0.108039 | 0.023554 | 0 | 0 | 0 | 0 | 0 | 0.153102 | 0.052917 | 2,400 | 69 | 68 | 34.782609 | 0.706115 | 0.11625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.033898 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
076eec8de4f676b9d586492c7ab7750df189a96a | 296 | py | Python | kelas_2b/echa.py | barizraihan/belajarpython | 57df4c939600dd34a519599d6c78178bfb55063b | [
"MIT"
] | null | null | null | kelas_2b/echa.py | barizraihan/belajarpython | 57df4c939600dd34a519599d6c78178bfb55063b | [
"MIT"
] | null | null | null | kelas_2b/echa.py | barizraihan/belajarpython | 57df4c939600dd34a519599d6c78178bfb55063b | [
"MIT"
] | null | null | null | import csv
class echa:
def werehousing(self):
with open('kelas_2b/echa.csv', 'r') as csvfile:
csv_reader = csv.reader(csvfile, delimiter=',')
for row in csv_reader:
print("menampilkan data barang:", row[0], row[1], row[2], row[3], row[4])
| 32.888889 | 93 | 0.567568 | 41 | 296 | 4.02439 | 0.682927 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.283784 | 296 | 8 | 94 | 37 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.14527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
076f84eca9f11a3725b25d5cf7a8fa60fb6dd720 | 3,399 | py | Python | tests/test_handler_surface_distance.py | dyollb/MONAI | 9084c452c48095c82c71d4391b3684006e5a3c56 | [
"Apache-2.0"
] | 2,971 | 2019-10-16T23:53:16.000Z | 2022-03-31T20:58:24.000Z | tests/test_handler_surface_distance.py | dyollb/MONAI | 9084c452c48095c82c71d4391b3684006e5a3c56 | [
"Apache-2.0"
] | 2,851 | 2020-01-10T16:23:44.000Z | 2022-03-31T22:14:53.000Z | tests/test_handler_surface_distance.py | dyollb/MONAI | 9084c452c48095c82c71d4391b3684006e5a3c56 | [
"Apache-2.0"
] | 614 | 2020-01-14T19:18:01.000Z | 2022-03-31T14:06:14.000Z | # Copyright 2020 - 2021 MONAI Consortium
# 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 wri... | 35.778947 | 120 | 0.692262 | 490 | 3,399 | 4.602041 | 0.344898 | 0.06918 | 0.023947 | 0.035477 | 0.303769 | 0.22306 | 0.213747 | 0.149889 | 0.149889 | 0.109978 | 0 | 0.036229 | 0.204178 | 3,399 | 94 | 121 | 36.159574 | 0.797412 | 0.283024 | 0 | 0.176471 | 0 | 0 | 0.0126 | 0 | 0 | 0 | 0 | 0.010638 | 0.098039 | 1 | 0.078431 | false | 0.019608 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0773947b769d5f943efc051b2beaf2ee562da724 | 1,231 | py | Python | AppImageBuilder/commands/file.py | gouchi/appimage-builder | 40e9851c573179e066af116fb906e9cad8099b59 | [
"MIT"
] | null | null | null | AppImageBuilder/commands/file.py | gouchi/appimage-builder | 40e9851c573179e066af116fb906e9cad8099b59 | [
"MIT"
] | null | null | null | AppImageBuilder/commands/file.py | gouchi/appimage-builder | 40e9851c573179e066af116fb906e9cad8099b59 | [
"MIT"
] | null | null | null | # Copyright 2020 Alexis Lopez Zubieta
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publi... | 31.564103 | 80 | 0.685621 | 166 | 1,231 | 5 | 0.554217 | 0.066265 | 0.031325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005225 | 0.222583 | 1,231 | 38 | 81 | 32.394737 | 0.862069 | 0.490658 | 0 | 0 | 0 | 0 | 0.066775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.111111 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
077860d7dfef7192b10ddd84d4a9115cb45934f6 | 290 | py | Python | config.py | Pasmikh/quiz_please_bot | 2b619b359d8021be57b404525013c53403d6cde1 | [
"MIT"
] | null | null | null | config.py | Pasmikh/quiz_please_bot | 2b619b359d8021be57b404525013c53403d6cde1 | [
"MIT"
] | null | null | null | config.py | Pasmikh/quiz_please_bot | 2b619b359d8021be57b404525013c53403d6cde1 | [
"MIT"
] | null | null | null | days_of_week = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday', 'Sunday']
operation = ''
options = ['Info', 'Check-in/Out', 'Edit games', 'Back']
admins = ['admin1_telegram_nickname', 'admin2_telegram_nickname']
avail_days = []
TOKEN = 'bot_token'
group_id = id_of_group_chat | 41.428571 | 88 | 0.713793 | 37 | 290 | 5.27027 | 0.810811 | 0.164103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.089655 | 290 | 7 | 89 | 41.428571 | 0.731061 | 0 | 0 | 0 | 0 | 0 | 0.47079 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
077ab159d3a90c5c7c3094919ba408b1a2cadaa4 | 663 | py | Python | tests/test_missing_process.py | ricklupton/sphinx_probs_rdf | bcae27a37162c1a4c4b329af6759a0b5b52cab7a | [
"MIT"
] | 1 | 2021-07-31T10:06:50.000Z | 2021-07-31T10:06:50.000Z | tests/test_missing_process.py | ricklupton/sphinx_probs_rdf | bcae27a37162c1a4c4b329af6759a0b5b52cab7a | [
"MIT"
] | 1 | 2021-05-05T18:15:48.000Z | 2021-05-05T18:15:48.000Z | tests/test_missing_process.py | ricklupton/sphinx_probs_rdf | bcae27a37162c1a4c4b329af6759a0b5b52cab7a | [
"MIT"
] | null | null | null | import pytest
from rdflib import Graph, Namespace, Literal
from rdflib.namespace import RDF, RDFS
from sphinx_probs_rdf.directives import PROBS
SYS = Namespace("http://example.org/system/")
@pytest.mark.sphinx(
'probs_rdf', testroot='missing',
confoverrides={'probs_rdf_system_prefix': str(SYS)})
def test_bui... | 36.833333 | 153 | 0.764706 | 88 | 663 | 5.613636 | 0.534091 | 0.048583 | 0.08502 | 0.121457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120664 | 663 | 17 | 154 | 39 | 0.847341 | 0 | 0 | 0 | 0 | 0.076923 | 0.313725 | 0.034691 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0785423db820435be27b39e1842db52b66a25a8e | 2,953 | py | Python | tiktorch/server/session/process.py | FynnBe/tiktorch | 60c6fa9700e7ff73e44338e8755c56c6e8846f2f | [
"MIT"
] | null | null | null | tiktorch/server/session/process.py | FynnBe/tiktorch | 60c6fa9700e7ff73e44338e8755c56c6e8846f2f | [
"MIT"
] | null | null | null | tiktorch/server/session/process.py | FynnBe/tiktorch | 60c6fa9700e7ff73e44338e8755c56c6e8846f2f | [
"MIT"
] | null | null | null | import dataclasses
import io
import multiprocessing as _mp
import uuid
import zipfile
from concurrent.futures import Future
from multiprocessing.connection import Connection
from typing import List, Optional, Tuple
import numpy
from tiktorch import log
from tiktorch.rpc import Shutdown
from tiktorch.rpc import mp as ... | 30.132653 | 105 | 0.691162 | 364 | 2,953 | 5.379121 | 0.318681 | 0.045965 | 0.024515 | 0.022983 | 0.068948 | 0.068948 | 0.055158 | 0.055158 | 0.055158 | 0.055158 | 0 | 0.007735 | 0.211988 | 2,953 | 97 | 106 | 30.443299 | 0.833691 | 0.043007 | 0 | 0 | 0 | 0 | 0.02056 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.092105 | false | 0.013158 | 0.223684 | 0.013158 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0797199eb44c9067c6481782c2b094efbd8e10a6 | 3,917 | py | Python | G5/DerivedData/ParameterProbing/checkme.py | shooking/ZoomPedalFun | 7b9f5f4441cfe42e988e06cf6b98603c21ac2466 | [
"CC0-1.0"
] | 9 | 2021-02-15T00:05:32.000Z | 2022-01-24T14:01:46.000Z | G5/DerivedData/ParameterProbing/checkme.py | shooking/ZoomPedalFun | 7b9f5f4441cfe42e988e06cf6b98603c21ac2466 | [
"CC0-1.0"
] | 13 | 2021-08-23T02:07:26.000Z | 2022-02-16T16:55:00.000Z | G5/DerivedData/ParameterProbing/checkme.py | shooking/ZoomPedalFun | 7b9f5f4441cfe42e988e06cf6b98603c21ac2466 | [
"CC0-1.0"
] | null | null | null | # -*- coding: ascii -*-
import sys
import json
def check(data):
OnOffstart = data.find(b"OnOff")
if OnOffstart != -1:
fxName=""
OnOffblockSize = 0x30
for j in range(12):
if data[OnOffstart + j + OnOffblockSize] == 0x00:
break
fxName ... | 40.381443 | 129 | 0.451876 | 370 | 3,917 | 4.762162 | 0.324324 | 0.166856 | 0.170261 | 0.23042 | 0.363791 | 0.251419 | 0.097616 | 0.097616 | 0.052213 | 0.052213 | 0 | 0.042115 | 0.430176 | 3,917 | 96 | 130 | 40.802083 | 0.747312 | 0.100332 | 0 | 0.090909 | 0 | 0 | 0.039259 | 0 | 0 | 0 | 0.008822 | 0 | 0 | 1 | 0.018182 | false | 0.018182 | 0.036364 | 0 | 0.072727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07abd88c1750bfa23ce141be4914e78e9e578d95 | 316 | py | Python | sqlakeyset/__init__.py | jhihruei/sqlakeyset | 0aa0f6e041dc37bc5f918303578875ad334cad6c | [
"Unlicense"
] | null | null | null | sqlakeyset/__init__.py | jhihruei/sqlakeyset | 0aa0f6e041dc37bc5f918303578875ad334cad6c | [
"Unlicense"
] | null | null | null | sqlakeyset/__init__.py | jhihruei/sqlakeyset | 0aa0f6e041dc37bc5f918303578875ad334cad6c | [
"Unlicense"
] | null | null | null |
from .columns import OC
from .paging import get_page, select_page, process_args
from .results import serialize_bookmark, unserialize_bookmark, Page, Paging
__all__ = [
'OC',
'get_page',
'select_page',
'serialize_bookmark',
'unserialize_bookmark',
'Page',
'Paging',
'process_args'
]
| 19.75 | 75 | 0.693038 | 36 | 316 | 5.694444 | 0.416667 | 0.068293 | 0.126829 | 0.165854 | 0.44878 | 0.44878 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199367 | 316 | 15 | 76 | 21.066667 | 0.810277 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07abdc1f2ef1ad7ab554d9cccaa9f73782091369 | 6,609 | py | Python | low_rank_local_connectivity/models/simple_model.py | shaun95/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-13T21:48:52.000Z | 2022-03-13T21:48:52.000Z | low_rank_local_connectivity/models/simple_model.py | shaun95/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | null | null | null | low_rank_local_connectivity/models/simple_model.py | shaun95/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-30T07:20:29.000Z | 2022-03-30T07:20:29.000Z | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | 37.982759 | 80 | 0.681192 | 843 | 6,609 | 5.11981 | 0.252669 | 0.07646 | 0.029194 | 0.029194 | 0.40987 | 0.368397 | 0.352641 | 0.305607 | 0.288925 | 0.267609 | 0 | 0.006463 | 0.227417 | 6,609 | 173 | 81 | 38.202312 | 0.838817 | 0.157966 | 0 | 0.373016 | 0 | 0 | 0.045528 | 0.005059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0.071429 | 0.063492 | 0 | 0.095238 | 0.007937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07c0c2bb274ab76681ad18763446d5b0c976c985 | 242 | py | Python | pixelate_task_1.py | Swayamshu/Pixelate_Sample_Arena | d8e8b4614987f9302a19ec1e20a922618e67b943 | [
"MIT"
] | null | null | null | pixelate_task_1.py | Swayamshu/Pixelate_Sample_Arena | d8e8b4614987f9302a19ec1e20a922618e67b943 | [
"MIT"
] | null | null | null | pixelate_task_1.py | Swayamshu/Pixelate_Sample_Arena | d8e8b4614987f9302a19ec1e20a922618e67b943 | [
"MIT"
] | null | null | null | import gym
import pix_sample_arena
import time
import pybullet as p
import pybullet_data
import cv2
if __name__ == "__main__":
env = gym.make("pix_sample_arena-v0")
x = 0
while True:
p.stepSimulation()
time.sleep(100) | 18.615385 | 41 | 0.702479 | 36 | 242 | 4.361111 | 0.666667 | 0.11465 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.214876 | 242 | 13 | 42 | 18.615385 | 0.794737 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
07c638a7630e99e901331aada0e29b538ff7310d | 1,482 | py | Python | forms/QRGenerator.py | Rono-Barto-Co/Project-QR | e80fc5a41f25542038c090311844912790cb1478 | [
"MIT"
] | 3 | 2019-07-04T03:27:06.000Z | 2019-09-06T08:52:35.000Z | forms/QRGenerator.py | Rono-Barto-Co/Project-QR | e80fc5a41f25542038c090311844912790cb1478 | [
"MIT"
] | null | null | null | forms/QRGenerator.py | Rono-Barto-Co/Project-QR | e80fc5a41f25542038c090311844912790cb1478 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, SelectField
from wtforms.validators import DataRequired
class QRGenerator(FlaskForm):
code_content = StringField('Content', validators=[DataRequired()])
code_size = SelectField('Size', choices=[('15', 'Size'),
... | 54.888889 | 89 | 0.323887 | 87 | 1,482 | 5.436782 | 0.471264 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040419 | 0.549258 | 1,482 | 26 | 90 | 57 | 0.667665 | 0 | 0 | 0 | 0 | 0 | 0.112011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07c6a477f6bfebee04a539e1d02b2df95226ab91 | 1,259 | py | Python | Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py | jcrangel/AI-for-Trading | c3b865e992f8eb8deda91e7641428eef1d343636 | [
"Apache-2.0"
] | null | null | null | Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py | jcrangel/AI-for-Trading | c3b865e992f8eb8deda91e7641428eef1d343636 | [
"Apache-2.0"
] | null | null | null | Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py | jcrangel/AI-for-Trading | c3b865e992f8eb8deda91e7641428eef1d343636 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
def estimate_volatility(prices, l):
"""Create an exponential moving average model of the volatility of a stock
price, and return the most recent (last) volatility estimate.
Parameters
----------
prices : pandas.Series
A series of adjusted closing... | 31.475 | 96 | 0.659253 | 165 | 1,259 | 4.915152 | 0.515152 | 0.083847 | 0.088779 | 0.071517 | 0.064118 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007376 | 0.246227 | 1,259 | 39 | 97 | 32.282051 | 0.847208 | 0.586974 | 0 | 0 | 0 | 0 | 0.145161 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07d5b427e69bdc09287f1c66c02797e0db0b274b | 1,218 | py | Python | examples/question_answering/qa_sparse_train.py | ebell495/nn_pruning | 41263ab898117a639f3f219c23a4cecc8bc0e3f3 | [
"Apache-2.0"
] | 250 | 2021-02-22T15:50:04.000Z | 2022-03-31T08:12:02.000Z | examples/question_answering/qa_sparse_train.py | vuiseng9/nn_pruning | 8f4a14dd63d621483cbc1bc4eb34600d66e9e71b | [
"Apache-2.0"
] | 28 | 2021-02-22T15:54:34.000Z | 2022-03-17T08:57:38.000Z | examples/question_answering/qa_sparse_train.py | vuiseng9/nn_pruning | 8f4a14dd63d621483cbc1bc4eb34600d66e9e71b | [
"Apache-2.0"
] | 31 | 2021-02-22T16:07:17.000Z | 2022-03-28T09:17:24.000Z | # coding=utf-8
# Copyright 2020 The HuggingFace Team All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 43.5 | 128 | 0.769294 | 177 | 1,218 | 5.19774 | 0.632768 | 0.065217 | 0.028261 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008824 | 0.162562 | 1,218 | 27 | 129 | 45.111111 | 0.893137 | 0.729885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
07d7992d7ae8299b452c378aa6d4664a38bab354 | 1,252 | py | Python | src/petronia/aid/bootstrap/__init__.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 19 | 2017-06-21T10:28:24.000Z | 2021-12-31T11:49:28.000Z | src/petronia/aid/bootstrap/__init__.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 10 | 2016-11-11T18:57:57.000Z | 2021-02-01T15:33:43.000Z | src/petronia/aid/bootstrap/__init__.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 3 | 2017-09-17T03:29:35.000Z | 2019-06-03T10:43:08.000Z |
"""
Common Petronia imports for bootstrap parts of an extension.
This should be imported along with the `simp` module.
"""
from ...base.bus import (
EventBus,
ListenerRegistrar,
ListenerSetup,
QueuePriority,
ExtensionMetadataStruct,
register_event,
EVENT_WILDCARD,
TARGET_WILDCARD,
... | 19.261538 | 60 | 0.747604 | 130 | 1,252 | 6.846154 | 0.561538 | 0.101124 | 0.031461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188498 | 1,252 | 64 | 61 | 19.5625 | 0.875984 | 0.126997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.139535 | 0 | 0.139535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07dab8d1754575bc1f3f83e4e0cadea3c8dcd3af | 8,104 | py | Python | src/biotite/application/application.py | claudejrogers/biotite | 3635bc9071506ecb85ddd9b1dbe6a430295e060e | [
"BSD-3-Clause"
] | null | null | null | src/biotite/application/application.py | claudejrogers/biotite | 3635bc9071506ecb85ddd9b1dbe6a430295e060e | [
"BSD-3-Clause"
] | null | null | null | src/biotite/application/application.py | claudejrogers/biotite | 3635bc9071506ecb85ddd9b1dbe6a430295e060e | [
"BSD-3-Clause"
] | null | null | null | # This source code is part of the Biotite package and is distributed
# under the 3-Clause BSD License. Please see 'LICENSE.rst' for further
# information.
__name__ = "biotite.application"
__author__ = "Patrick Kunzmann"
__all__ = ["Application", "AppStateError", "TimeoutError", "VersionError",
"AppState", "... | 31.169231 | 79 | 0.604516 | 918 | 8,104 | 5.269063 | 0.248366 | 0.072359 | 0.024602 | 0.01902 | 0.167666 | 0.096547 | 0.052719 | 0.013645 | 0 | 0 | 0 | 0.000534 | 0.307132 | 8,104 | 260 | 80 | 31.169231 | 0.860908 | 0.538129 | 0 | 0.287356 | 0 | 0 | 0.086515 | 0.009107 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149425 | false | 0.091954 | 0.045977 | 0 | 0.356322 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.