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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f7b912508c51a0460c5cc8f2ca72a922a07c266 | 9,366 | py | Python | library/oci_volume_group_facts.py | slmjy/oci-ansible-modules | 4713699064f4244b4554b5b2f97b5e5443fa2d6e | [
"Apache-2.0"
] | 106 | 2018-06-29T16:38:56.000Z | 2022-02-16T16:38:56.000Z | library/oci_volume_group_facts.py | slmjy/oci-ansible-modules | 4713699064f4244b4554b5b2f97b5e5443fa2d6e | [
"Apache-2.0"
] | 122 | 2018-09-11T12:49:39.000Z | 2021-05-01T04:54:22.000Z | library/oci_volume_group_facts.py | slmjy/oci-ansible-modules | 4713699064f4244b4554b5b2f97b5e5443fa2d6e | [
"Apache-2.0"
] | 78 | 2018-07-04T05:48:54.000Z | 2022-03-09T06:33:12.000Z | #!/usr/bin/python
# Copyright (c) 2018, 2019, Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for ... | 36.874016 | 120 | 0.596733 | 992 | 9,366 | 5.46875 | 0.268145 | 0.075023 | 0.04977 | 0.039816 | 0.363502 | 0.298433 | 0.225438 | 0.183226 | 0.11023 | 0.029862 | 0 | 0.018353 | 0.330984 | 9,366 | 253 | 121 | 37.019763 | 0.847431 | 0.033846 | 0 | 0.236607 | 0 | 0.004464 | 0.7116 | 0.090678 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004464 | false | 0 | 0.03125 | 0 | 0.035714 | 0.004464 | 0 | 0 | 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 |
9f828eee77f19cd7628990bb9090c8e9ada61903 | 303 | py | Python | 0x11-python-network_1/5-hbtn_header.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | 0x11-python-network_1/5-hbtn_header.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | 0x11-python-network_1/5-hbtn_header.py | FatChicken277/holbertonschool-higher_level_programming | 520d6310a5e2a874f8c5f5185d0fb769b6412e7c | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/python3
"""This script that takes in a URL, sends a request to the URL and
displays the value of the variable X-Request-Id in the response header.
"""
import requests
from sys import argv
if __name__ == "__main__":
r = requests.get(argv[1])
print(r.headers.get('X-Request-Id'))
| 25.25 | 75 | 0.69967 | 51 | 303 | 4 | 0.705882 | 0.078431 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.181518 | 303 | 11 | 76 | 27.545455 | 0.814516 | 0.504951 | 0 | 0 | 0 | 0 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9f8ef09fea0dd33dd55d46278420dd17d0b1a293 | 1,411 | py | Python | tests/utils.py | chaselgrove/hypothesis | 07a9c436208ec62b6d8b33c1cb4305a67baff8c6 | [
"BSD-2-Clause"
] | 6 | 2018-11-11T02:10:56.000Z | 2022-02-07T10:21:25.000Z | tests/utils.py | chaselgrove/hypothesis | 07a9c436208ec62b6d8b33c1cb4305a67baff8c6 | [
"BSD-2-Clause"
] | 2 | 2018-08-10T02:32:29.000Z | 2018-08-21T15:34:13.000Z | tests/utils.py | chaselgrove/hypothesis | 07a9c436208ec62b6d8b33c1cb4305a67baff8c6 | [
"BSD-2-Clause"
] | 2 | 2018-07-24T03:31:32.000Z | 2018-08-10T02:59:09.000Z | # See file COPYING distributed with python-hypothesis for copyright and
# license.
try:
import urlparse
except ImportError:
import urllib.parse as urlparse
import re
import requests
import h_annot
# This function performs the OAuth flow given a client ID, username,
# and password on the server currently defi... | 38.135135 | 73 | 0.65769 | 184 | 1,411 | 4.891304 | 0.505435 | 0.044444 | 0.035556 | 0.046667 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001833 | 0.22679 | 1,411 | 36 | 74 | 39.194444 | 0.823098 | 0.260808 | 0 | 0 | 0 | 0 | 0.145068 | 0.024178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.08 | 0.24 | 0 | 0.32 | 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 |
9f9273dfd761f7d77afc87e35b2a27fcf37a92c1 | 9,914 | py | Python | views/sheets_print_template.py | earlideal/jiandan | 0c7c3496a9e61fb52ea3498c5cfc76d021345c0a | [
"Apache-2.0"
] | null | null | null | views/sheets_print_template.py | earlideal/jiandan | 0c7c3496a9e61fb52ea3498c5cfc76d021345c0a | [
"Apache-2.0"
] | null | null | null | views/sheets_print_template.py | earlideal/jiandan | 0c7c3496a9e61fb52ea3498c5cfc76d021345c0a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'sheets_print_template.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _... | 62.352201 | 110 | 0.745713 | 1,103 | 9,914 | 6.43427 | 0.146872 | 0.07947 | 0.03114 | 0.026631 | 0.45019 | 0.303086 | 0.238833 | 0.16979 | 0.090461 | 0.045653 | 0 | 0.021964 | 0.150393 | 9,914 | 158 | 111 | 62.746835 | 0.82061 | 0.019669 | 0 | 0.042254 | 1 | 0 | 0.07084 | 0.030375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035211 | false | 0 | 0.007042 | 0.021127 | 0.070423 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f96d091cea841462ca5022c83bfc8e8055dd515 | 1,448 | py | Python | pytest_easyMPI/_plugin.py | NOhs/pytest-MPI | 29f9b2e6a77041dceec74091397da1f011db235d | [
"MIT"
] | 1 | 2021-01-13T11:23:32.000Z | 2021-01-13T11:23:32.000Z | pytest_easyMPI/_plugin.py | NOhs/pytest-easyMPI | 29f9b2e6a77041dceec74091397da1f011db235d | [
"MIT"
] | 2 | 2020-10-21T23:03:48.000Z | 2020-10-23T09:04:32.000Z | pytest_easyMPI/_plugin.py | NOhs/pytest-easyMPI | 29f9b2e6a77041dceec74091397da1f011db235d | [
"MIT"
] | null | null | null | """Additional Commandline option for pytest."""
MPI_SESSION_ARGUMENT = "--in_mpi_session"
"""
Argument added to the command line arguments useable with pytest.
/cf :any:`pytest_addoption`
"""
_IN_MPI_SESSION = False
"""Indicates whether the current test is run with the mpi session argument"""
def in_mpi_session():... | 23.737705 | 78 | 0.673343 | 189 | 1,448 | 4.989418 | 0.396825 | 0.159067 | 0.114528 | 0.067869 | 0.156946 | 0.136797 | 0.136797 | 0.136797 | 0.136797 | 0.093319 | 0 | 0 | 0.242403 | 1,448 | 60 | 79 | 24.133333 | 0.859617 | 0.440608 | 0 | 0 | 0 | 0 | 0.26834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f9c65547c6d8b82c4a18f49caeb238706dcfc78 | 297 | py | Python | backend/appengine/routes/updown/download.py | MarcosVn/turinginformatica | 21eba5f105ad052aa7505b6e77ca5871167a9dc2 | [
"MIT"
] | null | null | null | backend/appengine/routes/updown/download.py | MarcosVn/turinginformatica | 21eba5f105ad052aa7505b6e77ca5871167a9dc2 | [
"MIT"
] | null | null | null | backend/appengine/routes/updown/download.py | MarcosVn/turinginformatica | 21eba5f105ad052aa7505b6e77ca5871167a9dc2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from gaecookie.decorator import no_csrf
from gaepermission.decorator import login_required
__author__ = 'marcos'
@no_csrf
@login_required
def index(_handler, blob_key, filename):
_handler.send_blob(blob_key)
| 21.214286 | 56 | 0.794613 | 39 | 297 | 5.564103 | 0.641026 | 0.138249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003831 | 0.121212 | 297 | 13 | 57 | 22.846154 | 0.827586 | 0.070707 | 0 | 0 | 0 | 0 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 |
9f9e9ba2c48d0e1eaea81247c898de278befe6ce | 9,580 | py | Python | airmozilla/base/tests/test_mozillians.py | RAMilewski/airmozilla | 70d52295294fd319e60b046bf75baf971cd00f98 | [
"BSD-3-Clause"
] | 1 | 2019-08-17T21:22:08.000Z | 2019-08-17T21:22:08.000Z | airmozilla/base/tests/test_mozillians.py | RAMilewski/airmozilla | 70d52295294fd319e60b046bf75baf971cd00f98 | [
"BSD-3-Clause"
] | 4 | 2021-03-19T15:38:56.000Z | 2021-09-08T02:47:16.000Z | airmozilla/base/tests/test_mozillians.py | Acidburn0zzz/airmozilla | 7b03af6d6efe9af00a6070f5327e10fb755c3766 | [
"BSD-3-Clause"
] | null | null | null | import json
import random
from django.conf import settings
from django.test import TestCase
from django.core.cache import cache
import mock
from nose.tools import ok_, eq_
from airmozilla.base import mozillians
VOUCHED_FOR = """
{
"meta": {
"previous": null,
"total_count": 1,
"offset": 0,
"limit"... | 25.210526 | 78 | 0.55167 | 1,060 | 9,580 | 4.813208 | 0.198113 | 0.024696 | 0.025872 | 0.044688 | 0.71325 | 0.659349 | 0.626225 | 0.583105 | 0.554488 | 0.523128 | 0 | 0.040099 | 0.284134 | 9,580 | 379 | 79 | 25.277045 | 0.70385 | 0.005532 | 0 | 0.535503 | 0 | 0.005917 | 0.5084 | 0.062789 | 0 | 0 | 0 | 0 | 0.014793 | 0 | null | null | 0 | 0.023669 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fa05de1d647fc79ab33a7bc71bb2e90cc1ed122 | 1,043 | py | Python | pylark/api_service_task_comment_delete.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 7 | 2021-08-18T00:42:05.000Z | 2022-03-14T09:49:15.000Z | pylark/api_service_task_comment_delete.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | null | null | null | pylark/api_service_task_comment_delete.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 1 | 2022-03-14T09:49:20.000Z | 2022-03-14T09:49:20.000Z | # Code generated by lark_sdk_gen. DO NOT EDIT.
from pylark.lark_request import RawRequestReq, _new_method_option
from pylark import lark_type, lark_type_sheet, lark_type_approval
import attr
import typing
import io
@attr.s
class DeleteTaskCommentReq(object):
task_id: str = attr.ib(
default="", metadata={... | 28.972222 | 91 | 0.696069 | 129 | 1,043 | 5.387597 | 0.550388 | 0.051799 | 0.043165 | 0.031655 | 0.115108 | 0.115108 | 0.115108 | 0.115108 | 0.115108 | 0.115108 | 0 | 0.051643 | 0.183126 | 1,043 | 35 | 92 | 29.8 | 0.764085 | 0.119847 | 0 | 0.074074 | 1 | 0.037037 | 0.164114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.037037 | 0.185185 | 0.037037 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fb0776505114fa698723c1b2a8e71a444b9bb7e | 355 | py | Python | VI/ch29/classscope.py | skellykiernan/pylearn | b3576a087c8005e57b8415d63dc75d6975b3480f | [
"BSD-3-Clause"
] | null | null | null | VI/ch29/classscope.py | skellykiernan/pylearn | b3576a087c8005e57b8415d63dc75d6975b3480f | [
"BSD-3-Clause"
] | null | null | null | VI/ch29/classscope.py | skellykiernan/pylearn | b3576a087c8005e57b8415d63dc75d6975b3480f | [
"BSD-3-Clause"
] | null | null | null | X = 1
def nester():
X = 2
print(X)
class C:
X = 3
print(X)
def method1(self):
print(X)
print(self.X)
def method2(self):
X = 4
print(X)
self.X = 5
print(self.X)
I = C()
I.method1()
I.method2(... | 14.2 | 26 | 0.388732 | 46 | 355 | 3 | 0.347826 | 0.217391 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.473239 | 355 | 24 | 27 | 14.791667 | 0.679144 | 0 | 0 | 0.333333 | 0 | 0 | 0.002817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.238095 | 0.380952 | 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 |
9fb1a81f020508e5b4f27cca4fe2667275d95f1f | 18,791 | py | Python | sympy/core/function.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T17:54:57.000Z | 2016-05-08T17:54:57.000Z | sympy/core/function.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | null | null | null | sympy/core/function.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | null | null | null | """
NOTE: this doctest is for now obsoleted interface.
There are different types of functions:
1) defined function like exp or sin that has a name and body
(in the sense that function can be evaluated).
e = exp
2) undefined function with a name but no body. Undefined
functions can be defined using Symbol clas... | 31.423077 | 113 | 0.565856 | 2,356 | 18,791 | 4.396435 | 0.150255 | 0.014868 | 0.012165 | 0.007724 | 0.169338 | 0.127052 | 0.084379 | 0.051554 | 0.051554 | 0.034563 | 0 | 0.00746 | 0.322335 | 18,791 | 597 | 114 | 31.475712 | 0.805953 | 0.066095 | 0 | 0.290576 | 0 | 0 | 0.03189 | 0 | 0 | 0 | 0 | 0.001675 | 0.013089 | 0 | null | null | 0.002618 | 0.010471 | null | null | 0.005236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fb4a27d2761e6ab83c8309bc0c7e84fcfbc9239 | 345 | py | Python | django_api_example/middleware.py | amrox/django-api-example | 6c68e43078bb5e858ddea84d44a943ec9d7808b4 | [
"MIT"
] | 17 | 2015-03-31T20:23:08.000Z | 2021-06-08T00:46:57.000Z | django_api_example/middleware.py | amrox/django-api-example | 6c68e43078bb5e858ddea84d44a943ec9d7808b4 | [
"MIT"
] | null | null | null | django_api_example/middleware.py | amrox/django-api-example | 6c68e43078bb5e858ddea84d44a943ec9d7808b4 | [
"MIT"
] | 4 | 2015-05-18T14:24:52.000Z | 2022-02-18T06:52:52.000Z | #from django import http
# adapted from http://djangosnippets.org/snippets/2472/
class CloudMiddleware(object):
def process_request(self, request):
if 'HTTP_X_FORWARDED_PROTO' in request.META:
if request.META['HTTP_X_FORWARDED_PROTO'] == 'https':
request.is_secure = lambda: Tru... | 24.642857 | 65 | 0.672464 | 42 | 345 | 5.333333 | 0.690476 | 0.044643 | 0.125 | 0.169643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015094 | 0.231884 | 345 | 13 | 66 | 26.538462 | 0.830189 | 0.223188 | 0 | 0 | 0 | 0 | 0.186312 | 0.1673 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fb96ebc6b92260b0306cc5a874ce57bb8f43dc4 | 1,517 | py | Python | samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/test/test_dog.py | JigarJoshi/openapi-generator | 785535b8d6881b358463994823abbda2b26ff42e | [
"Apache-2.0"
] | 11,868 | 2018-05-12T02:58:07.000Z | 2022-03-31T21:19:39.000Z | samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/test/test_dog.py | JigarJoshi/openapi-generator | 785535b8d6881b358463994823abbda2b26ff42e | [
"Apache-2.0"
] | 9,672 | 2018-05-12T14:25:43.000Z | 2022-03-31T23:59:30.000Z | samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/test/test_dog.py | JigarJoshi/openapi-generator | 785535b8d6881b358463994823abbda2b26ff42e | [
"Apache-2.0"
] | 4,776 | 2018-05-12T12:06:08.000Z | 2022-03-31T19:52:51.000Z | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | 26.155172 | 174 | 0.657218 | 200 | 1,517 | 4.83 | 0.505 | 0.07971 | 0.082816 | 0.062112 | 0.113872 | 0.060041 | 0 | 0 | 0 | 0 | 0 | 0.006318 | 0.269611 | 1,517 | 57 | 175 | 26.614035 | 0.865523 | 0.365854 | 0 | 0.1875 | 0 | 0 | 0.098889 | 0.06 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.09375 | false | 0.0625 | 0.28125 | 0 | 0.40625 | 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 |
9fc4a35e0de9803fb850e0a92925ea2467479597 | 410 | py | Python | moviefindr/backend/migrations/0002_movie_moviedbid.py | mayigrin/movieFindr | 96ca5be22447307516c5892bd27827c8392a49a4 | [
"MIT"
] | 1 | 2022-03-17T04:48:24.000Z | 2022-03-17T04:48:24.000Z | moviefindr/backend/migrations/0002_movie_moviedbid.py | mayigrin/movieFindr | 96ca5be22447307516c5892bd27827c8392a49a4 | [
"MIT"
] | null | null | null | moviefindr/backend/migrations/0002_movie_moviedbid.py | mayigrin/movieFindr | 96ca5be22447307516c5892bd27827c8392a49a4 | [
"MIT"
] | 1 | 2020-09-20T04:55:55.000Z | 2020-09-20T04:55:55.000Z | # Generated by Django 3.1.1 on 2020-09-19 20:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='movie',
name='movieDbId',
f... | 20.5 | 49 | 0.585366 | 42 | 410 | 5.642857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06993 | 0.302439 | 410 | 19 | 50 | 21.578947 | 0.758741 | 0.109756 | 0 | 0 | 1 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fca4ebf57eec4757d8466d95ca9dd001fc44429 | 1,273 | py | Python | python_package/processing_.py | TanweerulHaque/Spotify-Mood-Check-CLI | 9ba9020a4e0b1f481be823962c98676073e6fd6f | [
"MIT"
] | null | null | null | python_package/processing_.py | TanweerulHaque/Spotify-Mood-Check-CLI | 9ba9020a4e0b1f481be823962c98676073e6fd6f | [
"MIT"
] | null | null | null | python_package/processing_.py | TanweerulHaque/Spotify-Mood-Check-CLI | 9ba9020a4e0b1f481be823962c98676073e6fd6f | [
"MIT"
] | null | null | null | from sklearn import preprocessing
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
import seaborn as sns
import numpy as np
import pandas as pd
def loudness_scaled(songs):
loudness = songs[['loudness']].values
min_max_scaler = preprocessing.MinMaxScaler()
loudness_scaled =... | 32.641026 | 70 | 0.692852 | 163 | 1,273 | 5.184049 | 0.374233 | 0.053254 | 0.04497 | 0.052071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002938 | 0.197958 | 1,273 | 39 | 71 | 32.641026 | 0.824682 | 0 | 0 | 0 | 0 | 0 | 0.034568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.26087 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9fcc4a9081cc2aa0f51358d93fc1a3e72f96bed1 | 513 | py | Python | mail_parser.py | laat/listbot | 37746a71e55adbbd213ba98aa66569358ff959d6 | [
"MIT"
] | 1 | 2016-08-09T21:33:52.000Z | 2016-08-09T21:33:52.000Z | mail_parser.py | laat/listbot | 37746a71e55adbbd213ba98aa66569358ff959d6 | [
"MIT"
] | null | null | null | mail_parser.py | laat/listbot | 37746a71e55adbbd213ba98aa66569358ff959d6 | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
File: mail_parser.py
Author: Sigurd Fosseng
Licence: MIT Licence
Description: Converts the subject of the email given through stdin to Unicode, and sends
it through xmlrpc
'''
from email.Parser import Parser
from email import Header
import xmlrpclib
import sys
#mime handling
data = sys.stdin.read... | 23.318182 | 88 | 0.769981 | 75 | 513 | 5.226667 | 0.64 | 0.045918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00883 | 0.116959 | 513 | 21 | 89 | 24.428571 | 0.856512 | 0.413255 | 0 | 0 | 0 | 0 | 0.099656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4c7e86161e89948fb1e395abccd86015e6e4665a | 1,841 | py | Python | mergesort.py | Ursinus-CS371-S2021/Week9_RecursiveSorts | 5a4ad41c140b5c9de277de0593cfd80c124878f4 | [
"Apache-2.0"
] | null | null | null | mergesort.py | Ursinus-CS371-S2021/Week9_RecursiveSorts | 5a4ad41c140b5c9de277de0593cfd80c124878f4 | [
"Apache-2.0"
] | null | null | null | mergesort.py | Ursinus-CS371-S2021/Week9_RecursiveSorts | 5a4ad41c140b5c9de277de0593cfd80c124878f4 | [
"Apache-2.0"
] | null | null | null | import numpy as np
def swap(arr, i, j):
"""
Swap two elements in an array
Parameters
----------
arr: list
The array
i: int
Index of first element
j: int
Index of second element
"""
temp = arr[i]
arr[i] = arr[j]
arr[j] = temp
def merge(x, y, i1, ... | 21.16092 | 70 | 0.534492 | 277 | 1,841 | 3.537906 | 0.361011 | 0.012245 | 0.016327 | 0.057143 | 0.185714 | 0.153061 | 0.12449 | 0.065306 | 0 | 0 | 0 | 0.03104 | 0.352526 | 1,841 | 87 | 71 | 21.16092 | 0.791107 | 0.536665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.16 | false | 0.04 | 0.04 | 0 | 0.24 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
4c84a44dd8c1ea820d99d947ecffb124a2a7b5cf | 3,259 | py | Python | cglue/utils/common.py | RevolutionRobotics/CGlue | 4059ef9092e7001fe356a19e64a7276cc2b0fda4 | [
"MIT"
] | null | null | null | cglue/utils/common.py | RevolutionRobotics/CGlue | 4059ef9092e7001fe356a19e64a7276cc2b0fda4 | [
"MIT"
] | null | null | null | cglue/utils/common.py | RevolutionRobotics/CGlue | 4059ef9092e7001fe356a19e64a7276cc2b0fda4 | [
"MIT"
] | 1 | 2020-05-11T18:54:08.000Z | 2020-05-11T18:54:08.000Z | import re
from typing import Any, Sequence
def to_underscore(name):
"""
>>> to_underscore('ADC')
'adc'
>>> to_underscore('FizzBuzz')
'fizz_buzz'
"""
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name)
return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
def chevron_list_mark_last(dat... | 27.386555 | 108 | 0.56367 | 477 | 3,259 | 3.696017 | 0.21174 | 0.09359 | 0.044243 | 0.036302 | 0.476461 | 0.431651 | 0.334657 | 0.305162 | 0.305162 | 0.305162 | 0 | 0.016 | 0.232894 | 3,259 | 118 | 109 | 27.618644 | 0.6892 | 0.491255 | 0 | 0.1875 | 0 | 0 | 0.065751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.5625 | 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 |
4c88e355462f791d1b1f9c2ba459f5db5ab831d9 | 1,089 | py | Python | setup.py | paulsmith/hwcounter | 98d7b3b2e34cc9a7519105882192bff269e412de | [
"Apache-2.0"
] | 10 | 2018-01-12T00:26:44.000Z | 2021-09-29T03:12:25.000Z | setup.py | paulsmith/hwcounter | 98d7b3b2e34cc9a7519105882192bff269e412de | [
"Apache-2.0"
] | 1 | 2020-03-01T10:33:59.000Z | 2020-09-24T06:14:06.000Z | setup.py | paulsmith/hwcounter | 98d7b3b2e34cc9a7519105882192bff269e412de | [
"Apache-2.0"
] | 1 | 2019-10-17T20:09:59.000Z | 2019-10-17T20:09:59.000Z | from setuptools import setup, Extension
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(name = 'hwcounter',
version = '0.1.0',
description = 'Highly accurate counter for measuring elapsed... | 36.3 | 83 | 0.599633 | 114 | 1,089 | 5.649123 | 0.675439 | 0.118012 | 0.15528 | 0.161491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017588 | 0.269054 | 1,089 | 29 | 84 | 37.551724 | 0.791457 | 0 | 0 | 0 | 0 | 0 | 0.44761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 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 |
4c8c1678c841534e754eb717cfa3e649a108f858 | 332 | py | Python | src/fintrist_lib/settings.py | tristanbrown/fintrist | 38875e4f2c3ab4db31195c798c4262a2f51e4a22 | [
"MIT"
] | null | null | null | src/fintrist_lib/settings.py | tristanbrown/fintrist | 38875e4f2c3ab4db31195c798c4262a2f51e4a22 | [
"MIT"
] | null | null | null | src/fintrist_lib/settings.py | tristanbrown/fintrist | 38875e4f2c3ab4db31195c798c4262a2f51e4a22 | [
"MIT"
] | 1 | 2022-01-21T21:10:38.000Z | 2022-01-21T21:10:38.000Z | """
This is the config file for fintrist_ds, containing various parameters the user may
wish to modify.
"""
import os
from dotenv import load_dotenv
load_dotenv()
class ConfigObj():
APIKEY_AV = os.getenv('APIKEY_AV')
APIKEY_TIINGO = os.getenv('APIKEY_TIINGO')
TZ = os.getenv('TIMEZONE') or 'UTC'
Config = ... | 20.75 | 83 | 0.722892 | 48 | 332 | 4.854167 | 0.645833 | 0.103004 | 0.120172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168675 | 332 | 15 | 84 | 22.133333 | 0.844203 | 0.298193 | 0 | 0 | 0 | 0 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4c9afdf32f2cdcfcd01895ebd9d1303b6fcfd33b | 502 | py | Python | talentmap_api/cdo/migrations/0002_auto_20210302_1518.py | MetaPhase-Consulting/State-TalentMAP-API | 4e238cbfe241fd3d0a718a9a0fc038dbed00f13b | [
"CC0-1.0"
] | 7 | 2018-10-17T15:13:05.000Z | 2021-12-10T14:53:38.000Z | talentmap_api/cdo/migrations/0002_auto_20210302_1518.py | MetaPhase-Consulting/State-TalentMAP-API | 4e238cbfe241fd3d0a718a9a0fc038dbed00f13b | [
"CC0-1.0"
] | 208 | 2018-12-28T17:11:00.000Z | 2022-03-29T18:47:23.000Z | talentmap_api/cdo/migrations/0002_auto_20210302_1518.py | MetaPhase-Consulting/State-TalentMAP-API | 4e238cbfe241fd3d0a718a9a0fc038dbed00f13b | [
"CC0-1.0"
] | null | null | null | # Generated by Django 2.2.17 on 2021-03-02 15:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cdo', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='availablebidders',
name='status',
... | 26.421053 | 170 | 0.571713 | 52 | 502 | 5.461538 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055263 | 0.243028 | 502 | 18 | 171 | 27.888889 | 0.692105 | 0.091633 | 0 | 0 | 1 | 0 | 0.189427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c9cf1b6b9dc216efa26eb8463043033fa1776af | 129 | py | Python | mbhandler/mb_radio_receiver.py | doyouknowhow/microbit | cd3ad65b8d7aed1247fdfccc3a10a0da7b4d8f8c | [
"MIT"
] | 8 | 2016-02-21T04:17:58.000Z | 2021-02-23T23:05:41.000Z | mbhandler/mb_radio_receiver.py | doyouknowhow/microbit | cd3ad65b8d7aed1247fdfccc3a10a0da7b4d8f8c | [
"MIT"
] | null | null | null | mbhandler/mb_radio_receiver.py | doyouknowhow/microbit | cd3ad65b8d7aed1247fdfccc3a10a0da7b4d8f8c | [
"MIT"
] | 1 | 2020-04-25T23:50:21.000Z | 2020-04-25T23:50:21.000Z | import radio
from microbit import *
DELAY=100
radio.on()
while True:
sleep(DELAY)
msg = radio.receive()
print(msg)
| 11.727273 | 25 | 0.666667 | 18 | 129 | 4.777778 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0.224806 | 129 | 10 | 26 | 12.9 | 0.83 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c9e562a8d9897a51a0a7b9bb601b101abf3c3fb | 711 | py | Python | django/datatable_examples/migrations/0005_auto_20210115_1649.py | jonesim/django-datatables | 69bab121ab76b5e785099687d0dd9ae61b8f8e58 | [
"MIT"
] | 7 | 2020-12-04T16:16:16.000Z | 2022-01-23T19:29:32.000Z | django/datatable_examples/migrations/0005_auto_20210115_1649.py | jonesim/django-datatables | 69bab121ab76b5e785099687d0dd9ae61b8f8e58 | [
"MIT"
] | null | null | null | django/datatable_examples/migrations/0005_auto_20210115_1649.py | jonesim/django-datatables | 69bab121ab76b5e785099687d0dd9ae61b8f8e58 | [
"MIT"
] | 1 | 2020-12-04T16:16:22.000Z | 2020-12-04T16:16:22.000Z | # Generated by Django 2.2.5 on 2021-01-15 16:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('datatable_examples', '0004_person_title'),
]
operations = [
migrations.CreateModel(
name='TagsDirect',
fields=[
... | 27.346154 | 114 | 0.586498 | 70 | 711 | 5.8 | 0.728571 | 0.083744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.291139 | 711 | 25 | 115 | 28.44 | 0.763889 | 0.063291 | 0 | 0.105263 | 1 | 0 | 0.158133 | 0.043675 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c9f83300252074ce7ddd4564852541ae04042b4 | 1,250 | py | Python | Taller Estructuras de Control Selectivas/Ejercicio_10.py | DiegoC386/Algoritmos_Diego | bb22b765ca15cb6ced5e3daae45cec300c421c18 | [
"MIT"
] | null | null | null | Taller Estructuras de Control Selectivas/Ejercicio_10.py | DiegoC386/Algoritmos_Diego | bb22b765ca15cb6ced5e3daae45cec300c421c18 | [
"MIT"
] | null | null | null | Taller Estructuras de Control Selectivas/Ejercicio_10.py | DiegoC386/Algoritmos_Diego | bb22b765ca15cb6ced5e3daae45cec300c421c18 | [
"MIT"
] | null | null | null | """
Construya un programa en Python que, dados como datos la categoría y el sueldo bruto
del trabajador, calcule el aumento correspondiente teniendo en cuenta la siguiente tabla:
Como salida, mostrar la categoría del trabajador y su nuevo sueldo bruto.
"""
SueldoBruto=int(input("Ingrese Sueldo Bruto: "))
if(SueldoBruto... | 41.666667 | 89 | 0.748 | 173 | 1,250 | 5.404624 | 0.346821 | 0.074866 | 0.083422 | 0.122995 | 0.374332 | 0.374332 | 0.374332 | 0.374332 | 0.374332 | 0.374332 | 0 | 0.075249 | 0.1176 | 1,250 | 30 | 90 | 41.666667 | 0.772439 | 0.1984 | 0 | 0.217391 | 0 | 0 | 0.283417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.478261 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ca3110e9cd8633388945523e961687380076990 | 186 | py | Python | settings.py | Mitu217/umaocr | 1b98565ad622f15918f9de4adc35cf0ca17f6eb8 | [
"MIT"
] | null | null | null | settings.py | Mitu217/umaocr | 1b98565ad622f15918f9de4adc35cf0ca17f6eb8 | [
"MIT"
] | null | null | null | settings.py | Mitu217/umaocr | 1b98565ad622f15918f9de4adc35cf0ca17f6eb8 | [
"MIT"
] | null | null | null | import os
HOST = '0.0.0.0'
PORT = int(os.environ.get('PORT', 8080))
DEBUG = os.environ.get('ENABLE_DEBUG', False)
THREADED = True
MAX_CONTENT_LENGTH = 5 * 1024 * 1024 # default is 5MB
| 23.25 | 54 | 0.688172 | 32 | 186 | 3.90625 | 0.6875 | 0.048 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11465 | 0.155914 | 186 | 7 | 55 | 26.571429 | 0.681529 | 0.075269 | 0 | 0 | 0 | 0 | 0.135294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
4ca621376cf0c3a25f62e83d2b64518c11076e78 | 1,200 | py | Python | uri/1799.py | italo-batista/problems-solving | f83ad34f0abebd52925c4020635556f20743ba06 | [
"MIT"
] | null | null | null | uri/1799.py | italo-batista/problems-solving | f83ad34f0abebd52925c4020635556f20743ba06 | [
"MIT"
] | null | null | null | uri/1799.py | italo-batista/problems-solving | f83ad34f0abebd52925c4020635556f20743ba06 | [
"MIT"
] | null | null | null | import Queue
pontos, ligs = map(int, raw_input().split())
# MONTA MAPA
mapl = {}
entradas = []
count = 0
for i in range(ligs):
pi, pii = map(str, raw_input().split())
entradas.append((pi, pii))
if pi not in mapl:
mapl[pi] = count
count += 1
if pii not in mapl:
mapl[pii] ... | 17.647059 | 75 | 0.54 | 148 | 1,200 | 4.364865 | 0.358108 | 0.02322 | 0.040248 | 0.034056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019729 | 0.324167 | 1,200 | 68 | 76 | 17.647059 | 0.776819 | 0.024167 | 0 | 0.051282 | 0 | 0 | 0.014555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ca94a4dd4ad646214d9412604b27d8390d91711 | 4,831 | py | Python | Receiver/rf24Feeder.py | Rhiath/homeAutomation | 247d10775a85e1ca8e781a313547174eab5eeab8 | [
"Unlicense"
] | null | null | null | Receiver/rf24Feeder.py | Rhiath/homeAutomation | 247d10775a85e1ca8e781a313547174eab5eeab8 | [
"Unlicense"
] | null | null | null | Receiver/rf24Feeder.py | Rhiath/homeAutomation | 247d10775a85e1ca8e781a313547174eab5eeab8 | [
"Unlicense"
] | null | null | null | from xml.dom.minidom import parse
import xml.dom.minidom
import json
import jsonpickle
import building
import time
import urllib2
import datetime
from RF24 import *
import RPi.GPIO as GPIO
millis = lambda: int(round(time.time() * 1000))
# RPi Alternate, with SPIDEV - Note: Edit RF24/arch/BBB/spi.cpp and set 'this->... | 33.089041 | 112 | 0.561581 | 481 | 4,831 | 5.607069 | 0.343035 | 0.020022 | 0.024472 | 0.055617 | 0.171301 | 0.110493 | 0.110493 | 0.110493 | 0.110493 | 0.093437 | 0 | 0.016784 | 0.321673 | 4,831 | 145 | 113 | 33.317241 | 0.806225 | 0.058373 | 0 | 0.135922 | 0 | 0 | 0.053917 | 0 | 0 | 0 | 0.002641 | 0 | 0 | 0 | null | null | 0 | 0.097087 | null | null | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cac67f981f6fe75ad74c61adc74d1d881f1da98 | 701 | py | Python | api/app/__init__.py | Machine-Learning-Tokyo/MLTx2020 | 0b9a48ad46ec5310780c410f01cb11beaf8ee36b | [
"MIT"
] | 12 | 2019-02-16T06:58:58.000Z | 2021-10-09T00:02:03.000Z | api/app/__init__.py | Machine-Learning-Tokyo/MLTx2020 | 0b9a48ad46ec5310780c410f01cb11beaf8ee36b | [
"MIT"
] | 14 | 2020-01-28T22:36:55.000Z | 2022-03-11T23:41:03.000Z | api/app/__init__.py | Machine-Learning-Tokyo/MLTx2020 | 0b9a48ad46ec5310780c410f01cb11beaf8ee36b | [
"MIT"
] | 7 | 2019-02-16T00:48:09.000Z | 2020-10-12T18:42:09.000Z | from flask import Flask, request, current_app
from flask_bootstrap import Bootstrap
from flask_dropzone import Dropzone
from flask_uploads import UploadSet, configure_uploads, IMAGES, \
patch_request_class
from flask_wtf.csrf import CSRFProtect
from config import Config
bootstrap = Bootstrap()
dropzone = Dropzone... | 25.962963 | 65 | 0.774608 | 99 | 701 | 5.232323 | 0.30303 | 0.086873 | 0.057915 | 0.084942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162625 | 701 | 26 | 66 | 26.961538 | 0.882453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.380952 | 0 | 0.47619 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4caff14275d3d1167ab46016df4b334174c5324c | 2,829 | py | Python | code/api/tiles/factory.py | CiscoSecurity/tr-05-serverless-exabeam | 85b6a015e0ddcbfcef6e237343d3dd66b5f15fe7 | [
"MIT"
] | null | null | null | code/api/tiles/factory.py | CiscoSecurity/tr-05-serverless-exabeam | 85b6a015e0ddcbfcef6e237343d3dd66b5f15fe7 | [
"MIT"
] | 1 | 2021-11-22T12:51:07.000Z | 2021-11-22T12:51:07.000Z | code/api/tiles/factory.py | CiscoSecurity/tr-05-serverless-exabeam | 85b6a015e0ddcbfcef6e237343d3dd66b5f15fe7 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from datetime import datetime, timedelta
from flask import current_app
from api.errors import TRFormattedError
INVALID_CHART_ID = 'Invalid chart id'
class AbstractTile(ABC):
@staticmethod
def _observed_time(period):
delta = timedelta(days=current_app.config['TILE... | 25.258929 | 79 | 0.613998 | 286 | 2,829 | 5.853147 | 0.283217 | 0.072282 | 0.062724 | 0.050179 | 0.089606 | 0.089606 | 0.057348 | 0.057348 | 0 | 0 | 0 | 0.001477 | 0.282078 | 2,829 | 111 | 80 | 25.486486 | 0.822747 | 0.129374 | 0 | 0.315789 | 0 | 0 | 0.053356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223684 | false | 0 | 0.052632 | 0.039474 | 0.421053 | 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 |
4cb08d790a64f9960dbace1c89bab8b8aee3cdf3 | 24,846 | py | Python | Scripts.py | mehrzadjafari/ADM-HW1 | 1feb12072fd678d4868d350168de2de1fe7cbf6f | [
"MIT"
] | null | null | null | Scripts.py | mehrzadjafari/ADM-HW1 | 1feb12072fd678d4868d350168de2de1fe7cbf6f | [
"MIT"
] | null | null | null | Scripts.py | mehrzadjafari/ADM-HW1 | 1feb12072fd678d4868d350168de2de1fe7cbf6f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
**\#Say "Hello, World!" With Python**
print("Hello, World!")
#Python If-Else
#!/bin/python3
import math
import os
import random
import re
import sys
n = int(input())
if n % 2 == 0:
if n in range(2,6):
print("Not Weird")
elif n in range(6,21):
... | 17.182573 | 152 | 0.566288 | 3,426 | 24,846 | 3.981319 | 0.129013 | 0.049853 | 0.017155 | 0.025806 | 0.33651 | 0.297141 | 0.248314 | 0.22654 | 0.189516 | 0.183724 | 0 | 0.016722 | 0.258673 | 24,846 | 1,445 | 153 | 17.194464 | 0.723818 | 0.095025 | 0 | 0.425178 | 0 | 0 | 0.032542 | 0.003084 | 0 | 0 | 0 | 0.000692 | 0 | 0 | null | null | 0 | 0.079572 | null | null | 0.127078 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cb9173546be08df8f259ebe6233de6c8c451d1b | 9,918 | py | Python | lib/biokbase/CompressionBasedDistance/Helpers.py | kbase/cbd | 0abe2b0757eb7bf0a489969f9b52b7a7276566b1 | [
"MIT"
] | null | null | null | lib/biokbase/CompressionBasedDistance/Helpers.py | kbase/cbd | 0abe2b0757eb7bf0a489969f9b52b7a7276566b1 | [
"MIT"
] | null | null | null | lib/biokbase/CompressionBasedDistance/Helpers.py | kbase/cbd | 0abe2b0757eb7bf0a489969f9b52b7a7276566b1 | [
"MIT"
] | null | null | null | #! /usr/bin/python
import os
import subprocess
import sys
import time
import json
from shock import Client as ShockClient
from biokbase.userandjobstate.client import UserAndJobState
from biokbase.auth import kb_config
from ConfigParser import ConfigParser
from Bio import SeqIO
# Exception thrown when a command failed... | 34.318339 | 132 | 0.643779 | 1,277 | 9,918 | 4.95928 | 0.25372 | 0.008527 | 0.012316 | 0.009 | 0.143218 | 0.117796 | 0.104848 | 0.077057 | 0.077057 | 0.046739 | 0 | 0.00874 | 0.250151 | 9,918 | 288 | 133 | 34.4375 | 0.842813 | 0.125832 | 0 | 0.188235 | 0 | 0 | 0.147101 | 0.017101 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005882 | 0.058824 | null | null | 0.023529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cb9a659c98bff7c713acd09726c8a404bacf5c1 | 4,829 | py | Python | pirec/artefacts.py | jstutters/Plumbium | d3e2ddc807bcd4bc9783f0b6bc623aaf6711144b | [
"MIT"
] | null | null | null | pirec/artefacts.py | jstutters/Plumbium | d3e2ddc807bcd4bc9783f0b6bc623aaf6711144b | [
"MIT"
] | 2 | 2017-02-10T15:36:08.000Z | 2020-03-24T16:26:00.000Z | pirec/artefacts.py | jstutters/pirec | d3e2ddc807bcd4bc9783f0b6bc623aaf6711144b | [
"MIT"
] | 1 | 2016-12-12T15:17:34.000Z | 2016-12-12T15:17:34.000Z | """Module containing the :class:`pirec.artefacts.Artefact` base class and subclasses."""
from __future__ import absolute_import
import os
import tarfile
import tempfile
from .utils import file_sha1sum
class Artefact(object):
"""Base class for Pirec artefacts (files consumed by and generated by processes).
A... | 29.808642 | 88 | 0.623732 | 572 | 4,829 | 5.082168 | 0.213287 | 0.06192 | 0.026832 | 0.02752 | 0.353629 | 0.322669 | 0.246302 | 0.209494 | 0.196078 | 0.196078 | 0 | 0.003611 | 0.254504 | 4,829 | 161 | 89 | 29.993789 | 0.803889 | 0.384759 | 0 | 0.209677 | 0 | 0 | 0.033308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241935 | false | 0 | 0.080645 | 0.048387 | 0.580645 | 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 |
4cbb35341c0949456e63d11205c8028b8101a83f | 327 | py | Python | cloud_connect.py | kdz/infecdb | 6d79155bd637e32ca41c79421549b045521e80fb | [
"BSD-3-Clause"
] | null | null | null | cloud_connect.py | kdz/infecdb | 6d79155bd637e32ca41c79421549b045521e80fb | [
"BSD-3-Clause"
] | null | null | null | cloud_connect.py | kdz/infecdb | 6d79155bd637e32ca41c79421549b045521e80fb | [
"BSD-3-Clause"
] | null | null | null | from sqlalchemy import create_engine
user = 'kmg2183'
password = '6266'
host = 'w4111vm.eastus.cloudapp.azure.com'
port = '5432' # udpdate if necessary
dbname = 'w4111'
info = (user, password, host, port, dbname)
w4111_engine = create_engine('postgresql+psycopg2://%s:%s@%s:%s/%s' % info,
echo=... | 25.153846 | 75 | 0.66055 | 42 | 327 | 5.071429 | 0.666667 | 0.037559 | 0.042254 | 0.037559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094697 | 0.192661 | 327 | 12 | 76 | 27.25 | 0.712121 | 0.061162 | 0 | 0 | 0 | 0 | 0.292763 | 0.226974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.222222 | 0.111111 | 0 | 0.111111 | 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 |
4cbfcaff15af2a48047b8eaf74cd36edad312d4f | 1,019 | py | Python | 作业/作业5/nack-oriented-reliable-multicast-master/norm-1.5r6/examples/python/fecBufferStats.py | He-Ze/Distributed-System-SYSU | 61bcff6e271c77bf3a3ad5f9fc531c1ceb9b9087 | [
"MIT"
] | 7 | 2020-11-09T09:24:42.000Z | 2021-09-17T07:35:05.000Z | 作业/作业5/nack-oriented-reliable-multicast-master/norm-1.5r6/examples/python/fecBufferStats.py | He-Ze/Distributed-System-SYSU | 61bcff6e271c77bf3a3ad5f9fc531c1ceb9b9087 | [
"MIT"
] | null | null | null | 作业/作业5/nack-oriented-reliable-multicast-master/norm-1.5r6/examples/python/fecBufferStats.py | He-Ze/Distributed-System-SYSU | 61bcff6e271c77bf3a3ad5f9fc531c1ceb9b9087 | [
"MIT"
] | 1 | 2022-01-21T03:23:14.000Z | 2022-01-21T03:23:14.000Z | #!/usr/bin/env python
'''
Example showing reading debug info from a pipe.
'''
import sys
import Queue
from optparse import OptionParser
from pynorm.extra.pipeparser import PipeParser
USAGE = 'usage: %s [options]' % sys.argv[0]
DEFAULT_PIPE = 'normtest'
def get_option_parser():
parser = OptionParser(usage=USAGE)... | 22.152174 | 70 | 0.62316 | 129 | 1,019 | 4.767442 | 0.534884 | 0.053659 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006588 | 0.255152 | 1,019 | 45 | 71 | 22.644444 | 0.803689 | 0.019627 | 0 | 0.064516 | 0 | 0 | 0.100742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.032258 | 0.129032 | null | null | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ccbfd4396850f7a8a9f8e4200b0402ee87bd01c | 1,833 | py | Python | raspi/entity_spotlight.py | ATLombardi/CambriaRemoteSpotlights | 1240aaa70c683f0cd7cbdbd0a25be42e893f2a22 | [
"MIT"
] | 1 | 2019-05-07T09:14:53.000Z | 2019-05-07T09:14:53.000Z | raspi/entity_spotlight.py | ATLombardi/CambriaRemoteSpotlights | 1240aaa70c683f0cd7cbdbd0a25be42e893f2a22 | [
"MIT"
] | null | null | null | raspi/entity_spotlight.py | ATLombardi/CambriaRemoteSpotlights | 1240aaa70c683f0cd7cbdbd0a25be42e893f2a22 | [
"MIT"
] | null | null | null | ## entity_spotlight.py ##
## Implements a "spotlight beam" on screen ##
from entity import *
from graphics import Transparent_Circle, Cross
SPEED = 1 # used by simulated lights, >1 will vibrate
class Entity_Spotlight(Entity):
def __init__(self, x=0, y=0):
Entity.__init__(self, x=x, y=y)
self.home = Point... | 26.185714 | 63 | 0.660666 | 303 | 1,833 | 3.811881 | 0.264026 | 0.04329 | 0.04329 | 0.01039 | 0.150649 | 0.09697 | 0.069264 | 0 | 0 | 0 | 0 | 0.006298 | 0.220404 | 1,833 | 69 | 64 | 26.565217 | 0.801959 | 0.264594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.047619 | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cd33f477ec53af3768fcee254a8703c70665bf2 | 330 | py | Python | app/core/migrations/0003_remove_user_organization.py | pnsn/squac_api | 7b1741cd32dbc32972f75ac53958468fdf7d04ee | [
"MIT"
] | 6 | 2019-11-07T09:32:43.000Z | 2021-09-02T22:37:14.000Z | app/core/migrations/0003_remove_user_organization.py | pnsn/squacapi | e330a925aff38937656983841e495ba3824c11e1 | [
"MIT"
] | 196 | 2019-10-04T17:03:36.000Z | 2022-03-31T17:54:59.000Z | app/core/migrations/0003_remove_user_organization.py | pnsn/squac_api | 7b1741cd32dbc32972f75ac53958468fdf7d04ee | [
"MIT"
] | null | null | null | # Generated by Django 2.2.12 on 2020-06-03 17:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0002_auto_20200305_0106'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='organization',
... | 18.333333 | 48 | 0.593939 | 35 | 330 | 5.485714 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137339 | 0.293939 | 330 | 17 | 49 | 19.411765 | 0.686695 | 0.139394 | 0 | 0 | 1 | 0 | 0.152482 | 0.08156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cd4c3af24bf56c55103a554ec958af341d95b5b | 1,008 | py | Python | fluent_contents/rendering/media.py | jayvdb/django-fluent-contents | dc07f42d80116c1e42efcd0afae91b2843c2e95f | [
"Apache-2.0"
] | null | null | null | fluent_contents/rendering/media.py | jayvdb/django-fluent-contents | dc07f42d80116c1e42efcd0afae91b2843c2e95f | [
"Apache-2.0"
] | 1 | 2020-07-08T19:10:10.000Z | 2020-07-08T19:10:10.000Z | fluent_contents/rendering/media.py | jayvdb/django-fluent-contents | dc07f42d80116c1e42efcd0afae91b2843c2e95f | [
"Apache-2.0"
] | null | null | null | from django.forms import Media
from fluent_contents.models import ImmutableMedia
from .utils import add_media
def register_frontend_media(request, media):
"""
Add a :class:`~django.forms.Media` class to the current request.
This will be rendered by the ``render_plugin_media`` template tag.
"""
i... | 28.8 | 70 | 0.715278 | 129 | 1,008 | 5.379845 | 0.488372 | 0.112392 | 0.121037 | 0.167147 | 0.217579 | 0.126801 | 0.126801 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1,008 | 34 | 71 | 29.647059 | 0.876263 | 0.375992 | 0 | 0 | 0 | 0 | 0.107266 | 0.107266 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cd52cf104fe9f28c87dc26e8fe8a57dba30028f | 1,951 | py | Python | libs/network/test/httplib_acceptance.py | mclow/cpp-netlib | 12c62f7402c585b0619412704db7a3e7280b960c | [
"BSL-1.0"
] | 1 | 2019-06-19T13:42:33.000Z | 2019-06-19T13:42:33.000Z | libs/network/test/httplib_acceptance.py | mclow/cpp-netlib | 12c62f7402c585b0619412704db7a3e7280b960c | [
"BSL-1.0"
] | null | null | null | libs/network/test/httplib_acceptance.py | mclow/cpp-netlib | 12c62f7402c585b0619412704db7a3e7280b960c | [
"BSL-1.0"
] | null | null | null | #!/bin/env python
from sys import argv
import httplib2 as httplib
from subprocess import Popen,PIPE
if len(argv) < 3:
print('I need the executable to run.')
exit(1)
print('Running {0}...'.format(argv[1]))
pipe = None
try:
pipe = Popen(argv[1], executable=argv[1], stdin=PIPE, stdout=PIPE, close_fds=True)... | 30.484375 | 95 | 0.636084 | 273 | 1,951 | 4.531136 | 0.326007 | 0.024252 | 0.03557 | 0.019402 | 0.350849 | 0.315279 | 0.315279 | 0.263541 | 0.263541 | 0.179466 | 0 | 0.024691 | 0.169657 | 1,951 | 63 | 96 | 30.968254 | 0.738889 | 0.114813 | 0 | 0.255319 | 0 | 0 | 0.226612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0.06383 | 0.06383 | 0 | 0.106383 | 0.255319 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4cdbbdf02819112ba23d50790b682b9cc18e47d1 | 1,225 | py | Python | ex.071.simuladorCaixaEletronico.py | romulorm/cev-python | b5c6844956c131a9e4e02355459c218739ebf8c5 | [
"MIT"
] | null | null | null | ex.071.simuladorCaixaEletronico.py | romulorm/cev-python | b5c6844956c131a9e4e02355459c218739ebf8c5 | [
"MIT"
] | null | null | null | ex.071.simuladorCaixaEletronico.py | romulorm/cev-python | b5c6844956c131a9e4e02355459c218739ebf8c5 | [
"MIT"
] | null | null | null | print('-=-' * 9)
print(' \033[35m--- BANCO GUANABARA ---\033[m ')
print('-=-' * 9)
valor = int(input('Qual valor você quer sacar? (Cédulas disponíveis: 100, 50, 20 e 10): '))
for nota in [100, 50, 20, 10]:
qtde = valor // nota
valor = valor % nota
if qtde > 0:
print('Cédulas de R$ {},00: \033[33m{}... | 31.410256 | 95 | 0.586939 | 194 | 1,225 | 3.706186 | 0.247423 | 0.038943 | 0.090403 | 0.104312 | 0.450626 | 0.33936 | 0.289291 | 0.289291 | 0.289291 | 0.289291 | 0 | 0.184536 | 0.208163 | 1,225 | 38 | 96 | 32.236842 | 0.556701 | 0 | 0 | 0.222222 | 0 | 0 | 0.434286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ce5f57a5698398d812b72780fe010d277e2bd2b | 2,932 | py | Python | Python/benchmarking/image_capture.py | felixbinder/tdw | eb2b00b74b9fcf8ef2dcba1baa62424640c520b1 | [
"BSD-2-Clause"
] | 307 | 2020-05-20T18:08:49.000Z | 2022-03-21T19:55:08.000Z | Python/benchmarking/image_capture.py | felixbinder/tdw | eb2b00b74b9fcf8ef2dcba1baa62424640c520b1 | [
"BSD-2-Clause"
] | 92 | 2020-07-21T18:29:13.000Z | 2022-03-28T07:25:54.000Z | Python/benchmarking/image_capture.py | felixbinder/tdw | eb2b00b74b9fcf8ef2dcba1baa62424640c520b1 | [
"BSD-2-Clause"
] | 53 | 2020-07-14T15:55:17.000Z | 2022-03-20T16:20:01.000Z | from argparse import ArgumentParser
from benchmark_utils import PATH
from benchmarker import Benchmarker
from platform import system
"""
Image capture benchmarks
"""
def granular():
output = "| Test | FPS |\n| --- | --- |\n"
rows = []
b.start()
rows.append(b.run(boxes=True, images... | 30.863158 | 122 | 0.57367 | 377 | 2,932 | 4.259947 | 0.206897 | 0.089664 | 0.109589 | 0.080946 | 0.523039 | 0.471357 | 0.437111 | 0.437111 | 0.437111 | 0.301993 | 0 | 0.017568 | 0.262278 | 2,932 | 94 | 123 | 31.191489 | 0.724919 | 0 | 0 | 0.212121 | 0 | 0 | 0.200998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.30303 | 0.060606 | 0 | 0.090909 | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ce86d38be18e3e9df78b3c756061b9348049bf5 | 5,283 | py | Python | local_interfaces/local_strategy/src/local_strategy/server.py | GT-RAIL/rail_halloween | 9208911d72cc8995ddb5f07b5d49aa113d6a6af1 | [
"MIT"
] | null | null | null | local_interfaces/local_strategy/src/local_strategy/server.py | GT-RAIL/rail_halloween | 9208911d72cc8995ddb5f07b5d49aa113d6a6af1 | [
"MIT"
] | null | null | null | local_interfaces/local_strategy/src/local_strategy/server.py | GT-RAIL/rail_halloween | 9208911d72cc8995ddb5f07b5d49aa113d6a6af1 | [
"MIT"
] | 1 | 2020-02-21T03:42:55.000Z | 2020-02-21T03:42:55.000Z | #!/usr/bin/env python
# The main action server that provides local recovery behaviour
from __future__ import print_function, division
import pickle
import rospy
import actionlib
from actionlib_msgs.msg import GoalStatus
from sensor_msgs.msg import Joy
from assistance_msgs.msg import RequestAssistanceAction, Request... | 39.133333 | 102 | 0.675752 | 624 | 5,283 | 5.50641 | 0.309295 | 0.030268 | 0.056752 | 0.044237 | 0.236321 | 0.217695 | 0.197905 | 0.116414 | 0.086729 | 0.086729 | 0 | 0.002536 | 0.253454 | 5,283 | 134 | 103 | 39.425373 | 0.868661 | 0.193451 | 0 | 0.1625 | 0 | 0 | 0.021235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0125 | 0.1125 | null | null | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ce8f253d4e299df2afd1d94423494dab9bd8753 | 7,522 | py | Python | backend/settings.py | deephealthproject/backend | 4bf6899c1308cbd42231ff9e29fe68b3ccb881e5 | [
"MIT"
] | 2 | 2021-09-21T19:04:26.000Z | 2021-12-31T05:21:16.000Z | backend/settings.py | deephealthproject/backend | 4bf6899c1308cbd42231ff9e29fe68b3ccb881e5 | [
"MIT"
] | null | null | null | backend/settings.py | deephealthproject/backend | 4bf6899c1308cbd42231ff9e29fe68b3ccb881e5 | [
"MIT"
] | 2 | 2020-03-20T14:05:48.000Z | 2020-06-16T16:15:47.000Z | """
Django settings for backend project.
"""
import json
import os
import environ
from django.core.exceptions import ImproperlyConfigured
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Default config values
env = envir... | 32.008511 | 92 | 0.717362 | 904 | 7,522 | 5.723451 | 0.32854 | 0.040201 | 0.019327 | 0.03247 | 0.132973 | 0.111519 | 0.016815 | 0 | 0 | 0 | 0 | 0.007227 | 0.153815 | 7,522 | 234 | 93 | 32.145299 | 0.805656 | 0.225073 | 0 | 0.026316 | 0 | 0 | 0.502771 | 0.404226 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.046053 | 0.026316 | 0 | 0.026316 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cea5ec862a327dda8880e715d12285b2204dcec | 392 | py | Python | Briefly/api/word_cloud.py | q815101630/Briefly2.0 | d92ba52308ef8c644fe8fb453169d0bee1a7f47e | [
"MIT"
] | null | null | null | Briefly/api/word_cloud.py | q815101630/Briefly2.0 | d92ba52308ef8c644fe8fb453169d0bee1a7f47e | [
"MIT"
] | null | null | null | Briefly/api/word_cloud.py | q815101630/Briefly2.0 | d92ba52308ef8c644fe8fb453169d0bee1a7f47e | [
"MIT"
] | 1 | 2021-10-06T03:50:19.000Z | 2021-10-06T03:50:19.000Z | import os
from os import path
from wordcloud import WordCloud
d = path.dirname(__file__) if "__file__" in locals() else os.getcwd()
text = open(path.join(d, 'summarization.txt')).read()
wordcloud = WordCloud().generate(text)
import matplotlib.pyplot as plt
plt.figure()
plt.imshow(wordcloud, interpolation="bilinea... | 21.777778 | 69 | 0.755102 | 55 | 392 | 5.218182 | 0.618182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002849 | 0.104592 | 392 | 18 | 70 | 21.777778 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.157761 | 0.066158 | 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 |
4cee020332e464870b6029f655496d4b9a5767f0 | 604 | py | Python | 563.py | RafaelHuang87/Leet-Code-Practice | 7754dcee38ffda18a5759113ef06d7becf4fe728 | [
"MIT"
] | null | null | null | 563.py | RafaelHuang87/Leet-Code-Practice | 7754dcee38ffda18a5759113ef06d7becf4fe728 | [
"MIT"
] | null | null | null | 563.py | RafaelHuang87/Leet-Code-Practice | 7754dcee38ffda18a5759113ef06d7becf4fe728 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def findTilt(self, root: TreeNode) -> int:
sum_tree, tilt_tree = self.sum_and_tilt(root)
return tilt_tree
def sum_an... | 33.555556 | 98 | 0.627483 | 89 | 604 | 3.977528 | 0.314607 | 0.067797 | 0.112994 | 0.118644 | 0.152542 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004577 | 0.27649 | 604 | 18 | 98 | 33.555556 | 0.805492 | 0.246689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4cf03a67e20e72cd3bed8c11760515a867e4a9d5 | 3,099 | py | Python | pml/utils/plotting.py | ashadhaz/pml | 8d9261c8885a82d795c89de23f53ff7d05ef9495 | [
"MIT"
] | null | null | null | pml/utils/plotting.py | ashadhaz/pml | 8d9261c8885a82d795c89de23f53ff7d05ef9495 | [
"MIT"
] | null | null | null | pml/utils/plotting.py | ashadhaz/pml | 8d9261c8885a82d795c89de23f53ff7d05ef9495 | [
"MIT"
] | null | null | null | # Copyright (C) 2012 David Rusk
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distr... | 35.215909 | 79 | 0.705066 | 423 | 3,099 | 5.094563 | 0.437352 | 0.055684 | 0.041763 | 0.015777 | 0.136427 | 0.136427 | 0.136427 | 0.102088 | 0.102088 | 0.102088 | 0 | 0.00169 | 0.236205 | 3,099 | 87 | 80 | 35.62069 | 0.908745 | 0.730881 | 0 | 0.142857 | 0 | 0 | 0.017323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cf921f4d7ff910edec64624579a2d3b088a5d8f | 688 | py | Python | core/models.py | thomas545/booking | 9e83baa1e83128d7473c98016f8315290f5e62ef | [
"MIT"
] | 2 | 2020-08-07T12:50:39.000Z | 2021-09-27T22:39:41.000Z | core/models.py | thomas545/booking | 9e83baa1e83128d7473c98016f8315290f5e62ef | [
"MIT"
] | 6 | 2021-06-04T23:49:37.000Z | 2022-03-12T00:45:58.000Z | core/models.py | thomas545/booking | 9e83baa1e83128d7473c98016f8315290f5e62ef | [
"MIT"
] | null | null | null | import uuid
from django.db import models
from django.utils.translation import gettext_lazy as _
class TimeStampedModel(models.Model):
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
class UUIDModel(models.Model):
"... | 20.848485 | 70 | 0.694767 | 83 | 688 | 5.674699 | 0.554217 | 0.070064 | 0.10828 | 0.133758 | 0.176221 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001876 | 0.225291 | 688 | 32 | 71 | 21.5 | 0.881801 | 0.097384 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4cf936b8c68ba686a405a5f79df317662c38e7de | 769 | py | Python | ml/datasets/bank.py | rmaestre/ml-code-lectures | 9cdc5e8552da10c30dca531ba6eaff41f0689713 | [
"MIT"
] | 2 | 2022-03-28T13:42:07.000Z | 2022-03-28T13:42:12.000Z | ml/datasets/bank.py | rmaestre/ml-code-lectures | 9cdc5e8552da10c30dca531ba6eaff41f0689713 | [
"MIT"
] | null | null | null | ml/datasets/bank.py | rmaestre/ml-code-lectures | 9cdc5e8552da10c30dca531ba6eaff41f0689713 | [
"MIT"
] | 1 | 2022-03-03T08:36:52.000Z | 2022-03-03T08:36:52.000Z | from typing import Tuple
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
class Bank:
def generate(
self,
) -> Tuple[np.array, np.array]:
"""
Read from cervical cancer dataset
"""
# Read dataset
bank = pd.read_csv("dat... | 28.481481 | 75 | 0.590377 | 109 | 769 | 3.990826 | 0.431193 | 0.045977 | 0.064368 | 0.110345 | 0.197701 | 0.193103 | 0 | 0 | 0 | 0 | 0 | 0.014572 | 0.286086 | 769 | 26 | 76 | 29.576923 | 0.777778 | 0.126138 | 0 | 0 | 1 | 0 | 0.048062 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cfa51b8054887f0a045517e77bef08cfc19d6f2 | 976 | py | Python | tests/plot_hloops.py | ody55eus/lab-book | 61cafdc9ddea1ff08517b1968db7117491d4763e | [
"CC-BY-4.0"
] | null | null | null | tests/plot_hloops.py | ody55eus/lab-book | 61cafdc9ddea1ff08517b1968db7117491d4763e | [
"CC-BY-4.0"
] | null | null | null | tests/plot_hloops.py | ody55eus/lab-book | 61cafdc9ddea1ff08517b1968db7117491d4763e | [
"CC-BY-4.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 28 09:53:14 2020
@author: JP
"""
# Basic Plotting libraries
import matplotlib.pyplot as plt
import matplotlib
import seaborn as sns
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
# Math / Science Libraries
import pandas as pd
import numpy as np
import sci... | 20.333333 | 60 | 0.699795 | 143 | 976 | 4.72028 | 0.636364 | 0.044444 | 0.056296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045288 | 0.16291 | 976 | 47 | 61 | 20.765957 | 0.780906 | 0.182377 | 0 | 0 | 0 | 0 | 0.185987 | 0.053503 | 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 |
9800f0e31ed14e78c81c424e118b0a762fc76a8c | 1,726 | py | Python | icclim/clix_meta/clix_meta_indices.py | larsbarring/icclim | f3685c77a1a3aaff58b0d05609380c9387e9aa99 | [
"Apache-2.0"
] | null | null | null | icclim/clix_meta/clix_meta_indices.py | larsbarring/icclim | f3685c77a1a3aaff58b0d05609380c9387e9aa99 | [
"Apache-2.0"
] | null | null | null | icclim/clix_meta/clix_meta_indices.py | larsbarring/icclim | f3685c77a1a3aaff58b0d05609380c9387e9aa99 | [
"Apache-2.0"
] | null | null | null | """ Wrapper for clix-meta yaml file.
This read the yaml and make its content accessible an instance of ClixMetaIndices.
It also exposes some type hints of yaml content.
"""
import os
from pathlib import Path
from typing import Any, Dict, Optional, TypedDict
import yaml
CLIX_YAML_PATH = (
Path(os.path.dirn... | 25.761194 | 86 | 0.674392 | 207 | 1,726 | 5.415459 | 0.439614 | 0.031222 | 0.045495 | 0.028546 | 0.032114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246234 | 1,726 | 66 | 87 | 26.151515 | 0.861645 | 0.125145 | 0 | 0.044444 | 0 | 0 | 0.053414 | 0.014199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.088889 | 0 | 0.688889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9801334964d4fd7fc7509122a1fc3262374fcded | 230 | py | Python | main.py | Daewooer/spambot | 2303f647168e0e2940f2d87e4748aa8206f73a28 | [
"BSD-3-Clause"
] | null | null | null | main.py | Daewooer/spambot | 2303f647168e0e2940f2d87e4748aa8206f73a28 | [
"BSD-3-Clause"
] | null | null | null | main.py | Daewooer/spambot | 2303f647168e0e2940f2d87e4748aa8206f73a28 | [
"BSD-3-Clause"
] | null | null | null | import time
import pyautogui
def sendSpamBot():
time.sleep(5)
text = open('beemovie')
for each_line in text:
pyautogui.typewrite(each_line)
pyautogui.press('enter')
sendSpamBot()
| 13.529412 | 39 | 0.608696 | 25 | 230 | 5.52 | 0.68 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.295652 | 230 | 16 | 40 | 14.375 | 0.845679 | 0 | 0 | 0 | 0 | 0 | 0.061611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 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 |
9802aae04f11ed64cd8de6867830ae7302358790 | 5,535 | py | Python | seating_charts/models.py | rectory-school/rectory-apps | 184021529ac9cadc3b7c0fbf93a023c82fc76b91 | [
"MIT"
] | null | null | null | seating_charts/models.py | rectory-school/rectory-apps | 184021529ac9cadc3b7c0fbf93a023c82fc76b91 | [
"MIT"
] | 5 | 2020-06-05T17:33:12.000Z | 2021-06-10T19:04:41.000Z | seating_charts/models.py | rectory-school/rectory-apps | 184021529ac9cadc3b7c0fbf93a023c82fc76b91 | [
"MIT"
] | 1 | 2016-02-08T15:53:28.000Z | 2016-02-08T15:53:28.000Z | from django.db import models
from simple_history.models import HistoricalRecords
from django.core.exceptions import ValidationError
from adminsortable.models import SortableMixin
from academics.models import Enrollment, Grade
# Create your models here.
class Ethnicity(models.Model):
ethnicity = models.CharField(ma... | 31.095506 | 127 | 0.676603 | 618 | 5,535 | 5.898058 | 0.260518 | 0.048285 | 0.019204 | 0.039506 | 0.338272 | 0.236214 | 0.171468 | 0.116598 | 0.030178 | 0.030178 | 0 | 0.003963 | 0.224932 | 5,535 | 178 | 128 | 31.095506 | 0.845688 | 0.044986 | 0 | 0.267241 | 0 | 0.008621 | 0.103847 | 0.019898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112069 | false | 0.008621 | 0.043103 | 0.068966 | 0.689655 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9802ad2e338b7da985fba9f95b17bc3d71b5753c | 1,873 | py | Python | network/network_commands.py | SebOh/arp_spoof | 9c4493c9bc7b80f70710d7e4a644b102f0bd8c4d | [
"MIT"
] | null | null | null | network/network_commands.py | SebOh/arp_spoof | 9c4493c9bc7b80f70710d7e4a644b102f0bd8c4d | [
"MIT"
] | null | null | null | network/network_commands.py | SebOh/arp_spoof | 9c4493c9bc7b80f70710d7e4a644b102f0bd8c4d | [
"MIT"
] | null | null | null | import network
import re
import subprocess
class NetworkCommands:
def __init__(self):
if network.is_windows():
self.commands = NetworkCommandsWindows()
pass
def find_gateway(self):
return self.commands.find_gateway()
def set_ipv4_forwarding(self, enabled):
re... | 28.378788 | 112 | 0.58142 | 212 | 1,873 | 5.009434 | 0.377358 | 0.065913 | 0.011299 | 0.011299 | 0.143126 | 0.143126 | 0.011299 | 0.011299 | 0.011299 | 0 | 0 | 0.013423 | 0.284036 | 1,873 | 65 | 113 | 28.815385 | 0.778523 | 0.124399 | 0 | 0.157895 | 0 | 0.052632 | 0.167944 | 0.054278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0.052632 | 0.078947 | 0.052632 | 0.473684 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9804205703b48a3118b92bbb3b3ed6b364aa87c3 | 3,010 | py | Python | okexSign.py | yangdemin/dingpan | 0b68c7f9b497c7becab6ec3e7a2b21b5c03a1dd9 | [
"MIT"
] | null | null | null | okexSign.py | yangdemin/dingpan | 0b68c7f9b497c7becab6ec3e7a2b21b5c03a1dd9 | [
"MIT"
] | null | null | null | okexSign.py | yangdemin/dingpan | 0b68c7f9b497c7becab6ec3e7a2b21b5c03a1dd9 | [
"MIT"
] | null | null | null | import hmac
import base64
import requests
import json
CONTENT_TYPE = 'Content-Type'
OK_ACCESS_KEY = 'OK-ACCESS-KEY'
OK_ACCESS_SIGN = 'OK-ACCESS-SIGN'
OK_ACCESS_TIMESTAMP = 'OK-ACCESS-TIMESTAMP'
OK_ACCESS_PASSPHRASE = 'OK-ACCESS-PASSPHRASE'
APPLICATION_JSON = 'application/json'
# signature
def signature(timestamp, met... | 28.666667 | 132 | 0.649502 | 383 | 3,010 | 4.903394 | 0.274151 | 0.099574 | 0.057508 | 0.046858 | 0.440362 | 0.393504 | 0.380192 | 0.349308 | 0.324281 | 0.305112 | 0 | 0.014224 | 0.159136 | 3,010 | 105 | 133 | 28.666667 | 0.72659 | 0.162126 | 0 | 0.215686 | 0 | 0 | 0.222035 | 0.010934 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.117647 | 0.078431 | 0 | 0.196078 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9804e47806454f5d6f450ff4118bcc0cd1c2c79e | 1,074 | py | Python | flipper/decorators.py | rusintez/flipper-client | cd00ae1a3582c5cb7e661c5aa9b8a7b65b35a9e0 | [
"Apache-2.0"
] | 82 | 2019-04-03T16:09:04.000Z | 2022-03-29T23:48:31.000Z | flipper/decorators.py | rusintez/flipper-client | cd00ae1a3582c5cb7e661c5aa9b8a7b65b35a9e0 | [
"Apache-2.0"
] | 17 | 2019-04-16T17:17:36.000Z | 2021-02-25T22:06:01.000Z | flipper/decorators.py | rusintez/flipper-client | cd00ae1a3582c5cb7e661c5aa9b8a7b65b35a9e0 | [
"Apache-2.0"
] | 12 | 2019-07-29T20:07:28.000Z | 2022-03-29T21:10:15.000Z | # Copyright 2018 eShares, Inc. dba Carta, 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 32.545455 | 85 | 0.697393 | 144 | 1,074 | 5.173611 | 0.604167 | 0.080537 | 0.034899 | 0.042953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00965 | 0.228119 | 1,074 | 32 | 86 | 33.5625 | 0.889023 | 0.527933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
980d738343b59ab1f489992d6976b7f633334e5b | 3,915 | py | Python | authors/apps/articles/models.py | andela/ah-backend-thanos | baf7f20a023cc3c3ecae0fcf91bb7d9165e79fc8 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/models.py | andela/ah-backend-thanos | baf7f20a023cc3c3ecae0fcf91bb7d9165e79fc8 | [
"BSD-3-Clause"
] | 42 | 2018-10-24T08:21:07.000Z | 2021-06-10T20:54:39.000Z | authors/apps/articles/models.py | andela/ah-backend-thanos | baf7f20a023cc3c3ecae0fcf91bb7d9165e79fc8 | [
"BSD-3-Clause"
] | 2 | 2018-11-05T08:56:42.000Z | 2019-05-03T12:40:43.000Z | from django.db import models
from django.utils import timezone
from authors.apps.authentication.models import User
from authors.apps.profiles.models import Profile
from ..core.models import TimeStampedModel
from taggit.managers import TaggableManager
class Article(models.Model):
author = models.ForeignKey(User, b... | 36.25 | 79 | 0.693742 | 450 | 3,915 | 5.873333 | 0.208889 | 0.102913 | 0.090049 | 0.135074 | 0.653046 | 0.567915 | 0.556186 | 0.520621 | 0.398411 | 0.359818 | 0 | 0.00709 | 0.207407 | 3,915 | 107 | 80 | 36.588785 | 0.844666 | 0.032439 | 0 | 0.419753 | 0 | 0 | 0.018798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049383 | false | 0 | 0.074074 | 0.049383 | 0.851852 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
980e9edb838599773c99f145b5093fb33ac48674 | 1,056 | py | Python | zapimoveis/items.py | sebastrogers/zapimoveis_scraper | 7e7c32f3adb1353b9ebe3c821831c624e1f11d05 | [
"MIT"
] | 15 | 2017-08-10T01:55:54.000Z | 2022-01-21T02:44:43.000Z | zapimoveis/items.py | vpineda7/zapimoveis_scraper | 7e7c32f3adb1353b9ebe3c821831c624e1f11d05 | [
"MIT"
] | null | null | null | zapimoveis/items.py | vpineda7/zapimoveis_scraper | 7e7c32f3adb1353b9ebe3c821831c624e1f11d05 | [
"MIT"
] | 9 | 2017-06-07T04:43:43.000Z | 2020-06-19T21:25:38.000Z | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy import Item, Field
class ZapItem(Item):
# Extraídos do Json
id = Field()
title = Field()
action = Field()
type = Field()
country =... | 22.468085 | 81 | 0.600379 | 122 | 1,056 | 5.07377 | 0.598361 | 0.053312 | 0.035541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006394 | 0.25947 | 1,056 | 46 | 82 | 22.956522 | 0.785166 | 0.180871 | 0 | 0 | 0 | 0 | 0.043224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.030303 | 0.030303 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9811bd8f48de8e50491f0c1e6c00e77bbecf7001 | 1,930 | py | Python | tests/inte_test/test_dssm.py | freedombenLiu/MatchZoo | b1ba96ac8b84e70952f5787f62272ceef8cea106 | [
"Apache-2.0"
] | 2 | 2019-10-04T16:51:36.000Z | 2021-06-09T04:43:35.000Z | tests/inte_test/test_dssm.py | ThanhChinhBK/MatchZoo | f77403044bca4ff0a84738921180724a54fd42f9 | [
"Apache-2.0"
] | null | null | null | tests/inte_test/test_dssm.py | ThanhChinhBK/MatchZoo | f77403044bca4ff0a84738921180724a54fd42f9 | [
"Apache-2.0"
] | null | null | null | import os
import shutil
import numpy as np
import pytest
import matchzoo as mz
@pytest.fixture(scope='module')
def train_data():
return mz.datasets.toy.load_data()
@pytest.fixture(scope='module')
def test_data():
return mz.datasets.toy.load_data(stage='test')
@pytest.fixture(scope='module')
def task(req... | 25.064935 | 71 | 0.714508 | 246 | 1,930 | 5.373984 | 0.272358 | 0.081694 | 0.108926 | 0.145234 | 0.378971 | 0.201967 | 0.151286 | 0.059002 | 0 | 0 | 0 | 0.003748 | 0.170466 | 1,930 | 76 | 72 | 25.394737 | 0.821986 | 0.019171 | 0 | 0.150943 | 0 | 0 | 0.053524 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 1 | 0.169811 | false | 0 | 0.09434 | 0.132075 | 0.415094 | 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 |
e21805ecbaa7ee7ff30df1e58b00293d482ac385 | 690 | py | Python | thermos/forms.py | tsh/flask-pluralsight-flask-intro | 9488f3fc325145bc7bf7f9626ed093050db1b589 | [
"Apache-2.0"
] | 1 | 2015-11-30T14:00:54.000Z | 2015-11-30T14:00:54.000Z | thermos/forms.py | tsh/flask-pluralsight-flask-intro | 9488f3fc325145bc7bf7f9626ed093050db1b589 | [
"Apache-2.0"
] | null | null | null | thermos/forms.py | tsh/flask-pluralsight-flask-intro | 9488f3fc325145bc7bf7f9626ed093050db1b589 | [
"Apache-2.0"
] | null | null | null | from flask_wtf import Form
from wtforms.fields import StringField
from flask.ext.wtf.html5 import URLField
from wtforms.validators import DataRequired, url
class BookmarkForm(Form):
url = URLField('The URL for your bookmark', validators=[DataRequired(), url()])
description = StringField('Add an optional descr... | 30 | 83 | 0.656522 | 85 | 690 | 5.317647 | 0.435294 | 0.077434 | 0.121681 | 0.09292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00189 | 0.233333 | 690 | 22 | 84 | 31.363636 | 0.852552 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e221803207a0181a9f85bf58fdaed64dac5a6dbf | 495 | py | Python | util.py | SirJson/wallpyper | 69c93ac8874dcc5aee9d17125fd8e4fd55e829a2 | [
"MIT"
] | null | null | null | util.py | SirJson/wallpyper | 69c93ac8874dcc5aee9d17125fd8e4fd55e829a2 | [
"MIT"
] | null | null | null | util.py | SirJson/wallpyper | 69c93ac8874dcc5aee9d17125fd8e4fd55e829a2 | [
"MIT"
] | null | null | null |
"""
Utility functions
"""
import socket
from option import Option, Result, Err, Ok
class Net(object):
@staticmethod
def TestConnection(host="1.1.1.1", port=53, timeout=3) -> Result[None, str]:
try:
socket.setdefaulttimeout(timeout)
socket.socket(socket.AF_INET, socket.SOCK_ST... | 26.052632 | 90 | 0.638384 | 61 | 495 | 5.147541 | 0.655738 | 0.019108 | 0.019108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01847 | 0.234343 | 495 | 18 | 91 | 27.5 | 0.810026 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e22f0e59d7a62e55a77165e31409e9339f00ca10 | 16,426 | py | Python | src/felis/FelisJCGui.py | usiraj/riserobotdb | 7c36013026926914bd243870519a06f7a8802aed | [
"Apache-2.0"
] | null | null | null | src/felis/FelisJCGui.py | usiraj/riserobotdb | 7c36013026926914bd243870519a06f7a8802aed | [
"Apache-2.0"
] | null | null | null | src/felis/FelisJCGui.py | usiraj/riserobotdb | 7c36013026926914bd243870519a06f7a8802aed | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
__author__ = 'Usama Siraj'
''' Joint Configuration Basic GUI'''
import rospy, sys, math
import xml.dom.minidom
import tf
from threading import Thread
import signal
from python_qt_binding.QtCore import Signal
from python_qt_binding.QtWidgets import QApplication
from python_qt_binding.QtWidgets im... | 45.501385 | 113 | 0.622367 | 2,405 | 16,426 | 3.990852 | 0.104366 | 0.063763 | 0.040008 | 0.012503 | 0.670556 | 0.578558 | 0.415399 | 0.285268 | 0.20921 | 0.15399 | 0 | 0.027191 | 0.236515 | 16,426 | 361 | 114 | 45.501385 | 0.738139 | 0.011019 | 0 | 0.11254 | 0 | 0 | 0.075304 | 0.013344 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006431 | 0.03537 | null | null | 0.003215 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e22f8011f963843c7c220f6b2b74776a0ada2635 | 406 | py | Python | test-suite/tests/unit_tests.py | sercher/indy-agent | 86c3cd751c28b4e777d1b854d22d509165e7c193 | [
"Apache-2.0"
] | 1 | 2018-10-22T19:43:16.000Z | 2018-10-22T19:43:16.000Z | test-suite/tests/unit_tests.py | blhagadorn/indy-agent | 669aa8e75335ad0ced1c69039ad89bfbfbecbc06 | [
"Apache-2.0"
] | null | null | null | test-suite/tests/unit_tests.py | blhagadorn/indy-agent | 669aa8e75335ad0ced1c69039ad89bfbfbecbc06 | [
"Apache-2.0"
] | 1 | 2018-05-31T15:56:00.000Z | 2018-05-31T15:56:00.000Z | import pytest
import asyncio
from indy import crypto
from tests import sign_field, unpack_and_verify_signed_field
@pytest.mark.asyncio
async def test_can_sign_and_verify(config, wallet_handle):
msg = {"test": "test"}
my_key = await crypto.create_key(wallet_handle, '{}')
signed_field = await sign_field(wall... | 33.833333 | 63 | 0.79064 | 61 | 406 | 4.901639 | 0.442623 | 0.147157 | 0.100334 | 0.140468 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130542 | 406 | 11 | 64 | 36.909091 | 0.847026 | 0 | 0 | 0 | 0 | 0 | 0.024631 | 0 | 0 | 0 | 0 | 0 | 0.1 | 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 |
e231142e31ddff4684969732efde15a8a8cdaf14 | 2,095 | py | Python | tests_sample.py | alspitz/esc_test | 4078609e3a84923b9cdbfdea8daf9814364fa9c8 | [
"MIT"
] | 1 | 2021-12-28T08:38:04.000Z | 2021-12-28T08:38:04.000Z | tests_sample.py | alspitz/esc_test | 4078609e3a84923b9cdbfdea8daf9814364fa9c8 | [
"MIT"
] | null | null | null | tests_sample.py | alspitz/esc_test | 4078609e3a84923b9cdbfdea8daf9814364fa9c8 | [
"MIT"
] | null | null | null | from testutil import Test
from formats import AutoQuadECU, RCBenchmark
"""
All tests performed using a three-bladed 7-inch DALPROP T7056.
"""
tests = []
tests.append(Test(
RCBenchmark("Log_2019-11-05_171350.csv"),
AutoQuadECU("f40_steps_5-2.csv"),
key="esc32v3-f40",
description="""
ESC32v3, F40... | 26.858974 | 82 | 0.673508 | 326 | 2,095 | 4.282209 | 0.349693 | 0.025072 | 0.06447 | 0.111748 | 0.449857 | 0.449857 | 0.449857 | 0.342407 | 0.342407 | 0.342407 | 0 | 0.160221 | 0.222434 | 2,095 | 77 | 83 | 27.207792 | 0.696746 | 0 | 0 | 0.476923 | 0 | 0 | 0.702916 | 0.074147 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030769 | 0 | 0.030769 | 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 |
e235fb607dc9815ce693b1ff2cc63b490baa47dd | 1,918 | py | Python | common/code/snippets/js/CaaSio-angstromCTF2020/solution.py | nevesnunes/env | 7a5e3816334337e04a87e1a2e4dc322215901744 | [
"MIT"
] | 4 | 2020-04-07T14:45:02.000Z | 2021-12-28T22:43:16.000Z | common/code/snippets/js/CaaSio-angstromCTF2020/solution.py | nevesnunes/env | 7a5e3816334337e04a87e1a2e4dc322215901744 | [
"MIT"
] | null | null | null | common/code/snippets/js/CaaSio-angstromCTF2020/solution.py | nevesnunes/env | 7a5e3816334337e04a87e1a2e4dc322215901744 | [
"MIT"
] | 2 | 2020-04-08T03:12:06.000Z | 2021-03-04T20:33:03.000Z | #!/usr/bin/env python3
import re
encode = lambda code: list(map(ord,code))
decode = lambda code: "".join(map(chr,code))
#print(decode([99,116,102,47,102,108,97,103,46,116,120,116])) # example decode
# build a lambda-function that takes a string and uses it under the variablename "Math" to be allowed to call it, as th... | 39.958333 | 198 | 0.693952 | 330 | 1,918 | 4.033333 | 0.339394 | 0.042074 | 0.012021 | 0.015026 | 0.17731 | 0.17731 | 0.17731 | 0.17731 | 0.17731 | 0.17731 | 0 | 0.149884 | 0.099062 | 1,918 | 47 | 199 | 40.808511 | 0.62037 | 0.664234 | 0 | 0.16 | 0 | 0 | 0.567093 | 0.215655 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e236bee359c8ec5971518047034f6d41890c9691 | 4,368 | py | Python | Kernelized-Rank-Learning-master/clinical_KRL.py | zsyasd/drug-response-test | 65bff3423a0cc972dd4664b7f547767c1f10f635 | [
"MIT"
] | 1 | 2021-01-22T04:06:57.000Z | 2021-01-22T04:06:57.000Z | Kernelized-Rank-Learning-master/clinical_KRL.py | zsyasd/drug-response-test | 65bff3423a0cc972dd4664b7f547767c1f10f635 | [
"MIT"
] | null | null | null | Kernelized-Rank-Learning-master/clinical_KRL.py | zsyasd/drug-response-test | 65bff3423a0cc972dd4664b7f547767c1f10f635 | [
"MIT"
] | null | null | null | import argparse
import numpy as np
from sklearn.model_selection import KFold
from sklearn.metrics import roc_auc_score
from KRL import KRL
from misc import NDCG, get_median_trick_gamma
def clinical_KRL(k, Lambda, gamma, nfolds, fold, train_X, train_Y, test_X, drug_ids, drug_names, njobs, seed, output_prefix):
if... | 50.206897 | 194 | 0.639881 | 623 | 4,368 | 4.276083 | 0.200642 | 0.060811 | 0.041291 | 0.036036 | 0.266141 | 0.22973 | 0.1997 | 0.1997 | 0.187688 | 0.187688 | 0 | 0.004692 | 0.219322 | 4,368 | 86 | 195 | 50.790698 | 0.77654 | 0 | 0 | 0.082192 | 0 | 0 | 0.152473 | 0.010073 | 0 | 0 | 0 | 0 | 0.013699 | 0 | null | null | 0 | 0.123288 | null | null | 0.054795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e237203b1395f7e773b47abe8110044eacd8f35a | 556 | py | Python | ex23.py | EiChoZinn/python-exercises | 267eb60988040c53efcd97e1918bad1be21cdbba | [
"MIT"
] | null | null | null | ex23.py | EiChoZinn/python-exercises | 267eb60988040c53efcd97e1918bad1be21cdbba | [
"MIT"
] | null | null | null | ex23.py | EiChoZinn/python-exercises | 267eb60988040c53efcd97e1918bad1be21cdbba | [
"MIT"
] | 1 | 2018-06-24T15:06:15.000Z | 2018-06-24T15:06:15.000Z | import sys
script, input_encoding, error=sys.argv
def main(language_file, encoding, errors):
line=language_file.readline()
if line:
print_line(line, encoding,errors)
return main(language_file, encoding,errors)
def print_line(line, encoding, errors):
next_lang=line.strip()
raw_bytes=ne... | 25.272727 | 59 | 0.733813 | 74 | 556 | 5.324324 | 0.418919 | 0.213198 | 0.091371 | 0.121827 | 0.28934 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002096 | 0.142086 | 556 | 21 | 60 | 26.47619 | 0.823899 | 0 | 0 | 0 | 0 | 0 | 0.041441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.285714 | 0.214286 | 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 |
e23a7ae1d1f9168fc9508300e6bb6aa714003c26 | 3,667 | py | Python | stluser/views.py | SahalaProject/stl_simple | 9fde58c5987dbf97687a95953282e20b8c117b24 | [
"MIT"
] | null | null | null | stluser/views.py | SahalaProject/stl_simple | 9fde58c5987dbf97687a95953282e20b8c117b24 | [
"MIT"
] | null | null | null | stluser/views.py | SahalaProject/stl_simple | 9fde58c5987dbf97687a95953282e20b8c117b24 | [
"MIT"
] | null | null | null | from rest_framework.response import Response
from rest_framework.views import APIView
from stluser.common import response
from stluser import models
from stluser import serializers
import logging
# Create your views here.
from stluser.common.token import generate_token
from django.contrib.auth.hashers import make_passw... | 28.207692 | 91 | 0.632942 | 361 | 3,667 | 6.32133 | 0.257618 | 0.08589 | 0.134969 | 0.07099 | 0.385627 | 0.285714 | 0.251534 | 0.251534 | 0.160824 | 0.122699 | 0 | 0.006684 | 0.265612 | 3,667 | 129 | 92 | 28.426357 | 0.840698 | 0.02727 | 0 | 0.426667 | 0 | 0 | 0.035072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.146667 | 0.12 | 0 | 0.466667 | 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 |
e2414f41356e1a871a3e92f30cb8b959ac471c96 | 6,684 | py | Python | troposphere/iam.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | troposphere/iam.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | troposphere/iam.py | compose-x/troposphere | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2012-2022, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
from . import AWSObject, AWSProperty, PropsDictType, Tags
from .validators import boolean, integer
from .validators.iam import Active # noqa: F401
... | 26.951613 | 130 | 0.622083 | 631 | 6,684 | 6.48336 | 0.166403 | 0.054754 | 0.040332 | 0.062332 | 0.463456 | 0.362503 | 0.314104 | 0.314104 | 0.279638 | 0.279638 | 0 | 0.002665 | 0.213944 | 6,684 | 247 | 131 | 27.060729 | 0.77598 | 0.285757 | 0 | 0.382353 | 1 | 0 | 0.20392 | 0.058798 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.014706 | 0.036765 | 0 | 0.352941 | 0.007353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e24318906a9746e45f6295da219be888642b9ebd | 296 | py | Python | aruco/createArucoMarkers.py | Orwatronic/mas_514 | 81a1e34460b78cb9f0329c4c0527936971459b6c | [
"MIT"
] | null | null | null | aruco/createArucoMarkers.py | Orwatronic/mas_514 | 81a1e34460b78cb9f0329c4c0527936971459b6c | [
"MIT"
] | null | null | null | aruco/createArucoMarkers.py | Orwatronic/mas_514 | 81a1e34460b78cb9f0329c4c0527936971459b6c | [
"MIT"
] | null | null | null | import cv2
from cv2 import aruco
import matplotlib.pyplot as plt
# Select Aruco dictionary
aruco_dict = aruco.Dictionary_get(aruco.DICT_4X4_50)
# Create markers
for i in range(0, 3):
img = aruco.drawMarker(aruco_dict, i, sidePixels=700)
cv2.imwrite('id' + str(i) + '.png', img)
| 14.8 | 57 | 0.709459 | 46 | 296 | 4.456522 | 0.652174 | 0.131707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049587 | 0.182432 | 296 | 19 | 58 | 15.578947 | 0.797521 | 0.128378 | 0 | 0 | 0 | 0 | 0.024194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e2463dc855c850abb0adc780702426e34902234f | 2,321 | py | Python | api/serializers/hotel_serializers.py | Verbozeteam/web | 2aecd67ec823e9d6ac243d6f8a71849dd0f9ed9d | [
"MIT"
] | 1 | 2018-12-17T15:31:03.000Z | 2018-12-17T15:31:03.000Z | api/serializers/hotel_serializers.py | Verbozeteam/web | 2aecd67ec823e9d6ac243d6f8a71849dd0f9ed9d | [
"MIT"
] | null | null | null | api/serializers/hotel_serializers.py | Verbozeteam/web | 2aecd67ec823e9d6ac243d6f8a71849dd0f9ed9d | [
"MIT"
] | null | null | null | from api.models import Token, Room, Hotel, Hub, Service, ServiceAction, ServiceActionQuantity
from rest_framework import serializers
class TokenSerializer(serializers.ModelSerializer):
class Meta:
model = Token
fields = ('id', )
class RecursiveSerializer(serializers.Serializer):
def to_represe... | 30.539474 | 93 | 0.689789 | 234 | 2,321 | 6.735043 | 0.371795 | 0.115482 | 0.062183 | 0.133249 | 0.152284 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001088 | 0.2081 | 2,321 | 75 | 94 | 30.946667 | 0.856366 | 0.087462 | 0 | 0.208333 | 0 | 0 | 0.078348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e24add7b9374f590fb7d2ef52b62bcf70c50cbfd | 359 | py | Python | src/aws_environments/migrations/0007_auto_20200216_1659.py | chiliseed/hub | 83f29fbdd12e2260397e18e635f508459fa4990e | [
"Apache-2.0"
] | null | null | null | src/aws_environments/migrations/0007_auto_20200216_1659.py | chiliseed/hub | 83f29fbdd12e2260397e18e635f508459fa4990e | [
"Apache-2.0"
] | 4 | 2021-04-08T20:10:15.000Z | 2021-06-10T20:18:17.000Z | src/aws_environments/migrations/0007_auto_20200216_1659.py | chiliseed/hub | 83f29fbdd12e2260397e18e635f508459fa4990e | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-02-16 16:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("aws_environments", "0006_auto_20200213_1425"),
]
operations = [
migrations.AlterUniqueTogether(
name="project", unique_together={("envir... | 21.117647 | 73 | 0.637883 | 38 | 359 | 5.868421 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113553 | 0.239554 | 359 | 16 | 74 | 22.4375 | 0.703297 | 0.125348 | 0 | 0 | 1 | 0 | 0.205128 | 0.073718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e24c89018b4c115dfdc84d27944c1f6cddaa981d | 319 | py | Python | backend/src/chess_main/urls.py | Sammyuel/ChessDataStudy | 973ce4c043d5b32c2ddaef2e716f7fe0a4f819e5 | [
"MIT"
] | 2 | 2017-10-29T18:33:58.000Z | 2017-10-29T18:34:14.000Z | backend/src/chess_main/urls.py | Sammyuel/ChessDataStudy | 973ce4c043d5b32c2ddaef2e716f7fe0a4f819e5 | [
"MIT"
] | null | null | null | backend/src/chess_main/urls.py | Sammyuel/ChessDataStudy | 973ce4c043d5b32c2ddaef2e716f7fe0a4f819e5 | [
"MIT"
] | null | null | null |
from django.conf.urls import url, include
from django.contrib import admin
from django.views.generic.base import TemplateView
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^api/games/', include('games.api.urls')),
url(r'^.*', TemplateView.as_view(template_name="ang_home.html"), name='home'),
]
| 29 | 82 | 0.708464 | 46 | 319 | 4.847826 | 0.543478 | 0.134529 | 0.071749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119122 | 319 | 10 | 83 | 31.9 | 0.793594 | 0 | 0 | 0 | 0 | 0 | 0.163522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e250939d901481a6d1629127287d339b53eaaffd | 3,425 | py | Python | src/util.py | chbrown13/nudge-bot | 99e85e10bcbc37e869b5dcea7b94051d56377f2e | [
"MIT"
] | null | null | null | src/util.py | chbrown13/nudge-bot | 99e85e10bcbc37e869b5dcea7b94051d56377f2e | [
"MIT"
] | null | null | null | src/util.py | chbrown13/nudge-bot | 99e85e10bcbc37e869b5dcea7b94051d56377f2e | [
"MIT"
] | null | null | null | import datetime
import os
import re
import yaml
PROJECT = 'team-project'
DEADLINES = yaml.safe_load(open('deadlines.yml'))
def get_time(seconds):
# Translate activity time to more readable format
if seconds < 0:
print('ERROR')
return None
elif seconds < 60:
return '%d secs' % (int... | 38.483146 | 146 | 0.581314 | 436 | 3,425 | 4.513761 | 0.284404 | 0.036585 | 0.053354 | 0.034553 | 0.159045 | 0.097053 | 0.097053 | 0.061484 | 0.042683 | 0 | 0 | 0.018065 | 0.272701 | 3,425 | 88 | 147 | 38.920455 | 0.771979 | 0.065401 | 0 | 0.051948 | 0 | 0 | 0.137003 | 0.020019 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.077922 | false | 0 | 0.051948 | 0 | 0.311688 | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e254bc61d23d611743b14b9566a804300ad649a6 | 1,136 | py | Python | lambdata_skredenmathias/ClassDay2.py | skredenmathias/lambdata | 5f8404f23166df0bf80432262c09a8295686030b | [
"MIT"
] | 1 | 2020-01-14T23:21:55.000Z | 2020-01-14T23:21:55.000Z | lambdata_skredenmathias/ClassDay2.py | skredenmathias/lambdata | 5f8404f23166df0bf80432262c09a8295686030b | [
"MIT"
] | 4 | 2020-03-24T18:16:35.000Z | 2021-06-02T00:59:57.000Z | lambdata_skredenmathias/ClassDay2.py | skredenmathias/lambdata | 5f8404f23166df0bf80432262c09a8295686030b | [
"MIT"
] | 2 | 2020-01-14T23:46:10.000Z | 2020-02-06T21:50:18.000Z | """
Classes to represent games
"""
from random import random
class Game:
"""
General representation of an abstract game.
"""
fun_level = 5
def __init__(self, rounds=2, player1="Mathias", player2="Daniel"):
self.rounds = 2
self.current_round = 0
self.player1 = player1
... | 19.254237 | 70 | 0.590669 | 138 | 1,136 | 4.731884 | 0.42029 | 0.061256 | 0.033691 | 0.052067 | 0.094946 | 0.094946 | 0 | 0 | 0 | 0 | 0 | 0.036232 | 0.271127 | 1,136 | 58 | 71 | 19.586207 | 0.752415 | 0.140845 | 0 | 0.074074 | 0 | 0 | 0.107023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.037037 | 0 | 0.407407 | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e25a76ce4a99d41f6c7289e551160b4474086421 | 3,711 | py | Python | aiforce/evaluation/core.py | AI-Force/aiforce | a64e1d8ea1a6c822cd9742f44371d5402b5e6435 | [
"Apache-2.0"
] | 1 | 2021-06-24T04:04:24.000Z | 2021-06-24T04:04:24.000Z | aiforce/evaluation/core.py | AI-Force/aiforce | a64e1d8ea1a6c822cd9742f44371d5402b5e6435 | [
"Apache-2.0"
] | null | null | null | aiforce/evaluation/core.py | AI-Force/aiforce | a64e1d8ea1a6c822cd9742f44371d5402b5e6435 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: evaluation-core.ipynb (unless otherwise specified).
__all__ = ['logger', 'box_area', 'intersection_box', 'union_box', 'intersection_over_union', 'configure_logging']
# Cell
import argparse
import logging
import sys
# Cell
logger = logging.getLogger(__name__)
# Cell
def... | 31.991379 | 113 | 0.676098 | 589 | 3,711 | 4.056027 | 0.191851 | 0.030138 | 0.079113 | 0.05023 | 0.459188 | 0.459188 | 0.444537 | 0.424445 | 0.424445 | 0.403098 | 0 | 0.025624 | 0.200755 | 3,711 | 115 | 114 | 32.269565 | 0.779838 | 0.523848 | 0 | 0.054054 | 1 | 0 | 0.088791 | 0.014484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.081081 | 0 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2614a023441a79703a2c903de3a65c12cc12e46 | 375 | py | Python | tests/api/test_controllers.py | gerardovitale/covid-project | b4e28e8ee095070f2a2433f61725fd8c0374365e | [
"MIT"
] | null | null | null | tests/api/test_controllers.py | gerardovitale/covid-project | b4e28e8ee095070f2a2433f61725fd8c0374365e | [
"MIT"
] | null | null | null | tests/api/test_controllers.py | gerardovitale/covid-project | b4e28e8ee095070f2a2433f61725fd8c0374365e | [
"MIT"
] | null | null | null | from tests.api import BaseTestClass
class TestControllers(BaseTestClass):
def test_home_controller_client(self):
res = self.client.get('/')
self.assertEqual(200, res.status_code)
def test_get_vaccination_summary_json_client(self):
res = self.client.get('/vaccination_summary/json/ital... | 28.846154 | 64 | 0.717333 | 46 | 375 | 5.608696 | 0.5 | 0.054264 | 0.100775 | 0.131783 | 0.44186 | 0.44186 | 0 | 0 | 0 | 0 | 0 | 0.019544 | 0.181333 | 375 | 13 | 65 | 28.846154 | 0.820847 | 0 | 0 | 0.25 | 0 | 0 | 0.085106 | 0.082447 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e26c3b08be092a990fa4f2b86e689f27419159f8 | 1,942 | py | Python | qatrack/attachments/migrations/0001_initial.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 20 | 2021-03-11T18:37:32.000Z | 2022-03-23T19:38:07.000Z | qatrack/attachments/migrations/0001_initial.py | crcrewso/qatrackplus | b9da3bc542d9e3eca8b7291bb631d1c7255d528e | [
"MIT"
] | 75 | 2021-02-12T02:37:33.000Z | 2022-03-29T20:56:16.000Z | qatrack/attachments/migrations/0001_initial.py | randlet/qatrackplus-ci | ba11d39a07382b11394aaffd0df692b4ddc6239b | [
"MIT"
] | 5 | 2021-04-07T15:46:53.000Z | 2021-09-18T16:55:00.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-12-18 23:51
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import qatrack.attachments.models
class Migration(migrations.Migration):
initial = True
... | 51.105263 | 150 | 0.671473 | 225 | 1,942 | 5.648889 | 0.364444 | 0.050354 | 0.077105 | 0.121164 | 0.321794 | 0.321794 | 0.321794 | 0.321794 | 0.291109 | 0.291109 | 0 | 0.024778 | 0.189495 | 1,942 | 37 | 151 | 52.486486 | 0.782719 | 0.035015 | 0 | 0 | 1 | 0 | 0.118119 | 0.012293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.172414 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e26ef7de7c2bb84077a32f4f41ca449938364b8c | 1,246 | py | Python | Events/ETSS June 2016/DevOps Networking Model/TextFSM/displayipint.py | manpowertw/leafspine-ops | 59309bed802e6d11c7c801f893adfd9b188222b6 | [
"Apache-2.0"
] | 32 | 2016-05-24T23:32:02.000Z | 2021-11-17T07:53:50.000Z | Events/ETSS June 2016/DevOps Networking Model/TextFSM/displayipint.py | manpowertw/leafspine-ops | 59309bed802e6d11c7c801f893adfd9b188222b6 | [
"Apache-2.0"
] | 5 | 2016-09-25T15:55:02.000Z | 2018-09-06T10:54:45.000Z | Events/ETSS June 2016/DevOps Networking Model/TextFSM/displayipint.py | manpowertw/leafspine-ops | 59309bed802e6d11c7c801f893adfd9b188222b6 | [
"Apache-2.0"
] | 34 | 2016-03-02T17:37:07.000Z | 2021-11-17T07:54:04.000Z | ''' for python 3 reqires for of textFSM avialable at https://github.com/jonathanslenders/textfsm
Copyright 2016 Hewlett Packard Enterprise Development LP.
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 o... | 32.789474 | 96 | 0.691814 | 175 | 1,246 | 4.902857 | 0.668571 | 0.06993 | 0.030303 | 0.037296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039749 | 0.232745 | 1,246 | 38 | 97 | 32.789474 | 0.857741 | 0.557785 | 0 | 0 | 0 | 0 | 0.628037 | 0.069159 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2802cadf17083a9050ae9494667d411ea299650 | 9,050 | py | Python | python/powermeter_api/models/design_scenario.py | thracesystems/powermeter-api | 7bdab034ff916ee49e986de88f157bd044e981c1 | [
"Apache-2.0"
] | null | null | null | python/powermeter_api/models/design_scenario.py | thracesystems/powermeter-api | 7bdab034ff916ee49e986de88f157bd044e981c1 | [
"Apache-2.0"
] | null | null | null | python/powermeter_api/models/design_scenario.py | thracesystems/powermeter-api | 7bdab034ff916ee49e986de88f157bd044e981c1 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
PowerMeter API
API # noqa: E501
The version of the OpenAPI document: 2021.4.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from powermeter_api.configuration import Configuration
class DesignScenario(object):
"""NOTE: ... | 27.259036 | 200 | 0.583978 | 1,016 | 9,050 | 5.077756 | 0.127953 | 0.041869 | 0.139562 | 0.125606 | 0.462105 | 0.394069 | 0.36131 | 0.218259 | 0.128901 | 0.037217 | 0 | 0.019541 | 0.321436 | 9,050 | 331 | 201 | 27.34139 | 0.82055 | 0.318343 | 0 | 0.087838 | 1 | 0 | 0.082324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.027027 | 0 | 0.317568 | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e286cb9f853ec3df24cfa004d4906bfacdc95c25 | 1,288 | py | Python | beauty_and_pics/beauty_and_pics/cron_job.py | entpy/beauty-and-pics | 50d9c79c05061dc8594a70871cb9df5920cc4b28 | [
"MIT"
] | null | null | null | beauty_and_pics/beauty_and_pics/cron_job.py | entpy/beauty-and-pics | 50d9c79c05061dc8594a70871cb9df5920cc4b28 | [
"MIT"
] | null | null | null | beauty_and_pics/beauty_and_pics/cron_job.py | entpy/beauty-and-pics | 50d9c79c05061dc8594a70871cb9df5920cc4b28 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django_cron import CronJobBase, Schedule
from django.conf import settings
from contest_app.models.contests import *
import logging
# Get an instance of a logger
logger = logging.getLogger(__name__)
class ContestManagerJob(CronJobBase):
"""Cron to manage contest"""
RUN_EVERY_DAY =... | 33.025641 | 80 | 0.70264 | 162 | 1,288 | 5.376543 | 0.382716 | 0.055109 | 0.078071 | 0.055109 | 0.52124 | 0.43628 | 0.43628 | 0.204363 | 0.101033 | 0.101033 | 0 | 0.015549 | 0.201087 | 1,288 | 38 | 81 | 33.894737 | 0.830904 | 0.15295 | 0 | 0.24 | 0 | 0 | 0.280261 | 0.073557 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.08 | 0.16 | 0 | 0.56 | 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 |
e28f9e48d726f0192b7454ebed01094ed82faaf6 | 752 | py | Python | checkio/missions/ed_solve_number_length.py | jcdickman/draconem_py_lab | 337757e8d5fd328ec11faaf2a014d4bc3b46df96 | [
"Apache-2.0"
] | 1 | 2020-10-06T23:51:55.000Z | 2020-10-06T23:51:55.000Z | checkio/missions/ed_solve_number_length.py | jcdickman/draconem_py_lab | 337757e8d5fd328ec11faaf2a014d4bc3b46df96 | [
"Apache-2.0"
] | 1 | 2020-10-15T22:38:45.000Z | 2020-10-15T22:38:45.000Z | checkio/missions/ed_solve_number_length.py | jcdickman/draconem_py_lab | 337757e8d5fd328ec11faaf2a014d4bc3b46df96 | [
"Apache-2.0"
] | 1 | 2020-10-06T23:51:57.000Z | 2020-10-06T23:51:57.000Z | def number_length(a: int) -> int:
# your code here
# algorithm
# 1) Will recive an argument called "a" of datatype "int"
# 2) Convert the integer into a string
# 3) Calculate the length of the string
# 4) Return the Length of the string
return len(str(a))
def number_length_two(a: int) -> in... | 28.923077 | 76 | 0.656915 | 111 | 752 | 4.306306 | 0.540541 | 0.175732 | 0.150628 | 0.058577 | 0.083682 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027923 | 0.238032 | 752 | 25 | 77 | 30.08 | 0.806283 | 0.347074 | 0 | 0 | 0 | 0 | 0.140787 | 0 | 0 | 0 | 0 | 0.04 | 0.285714 | 1 | 0.142857 | false | 0 | 0 | 0.071429 | 0.285714 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e29d70d58ce4cb3b3401971517cce0294aeb7d9f | 1,871 | py | Python | data_explorer/date2unixtime.py | perimosocordiae/data_explorer | 4baa21785f1739d6049b3253f3063062af0014fe | [
"MIT"
] | null | null | null | data_explorer/date2unixtime.py | perimosocordiae/data_explorer | 4baa21785f1739d6049b3253f3063062af0014fe | [
"MIT"
] | null | null | null | data_explorer/date2unixtime.py | perimosocordiae/data_explorer | 4baa21785f1739d6049b3253f3063062af0014fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import re
from argparse import ArgumentParser
from datetime import datetime as dt
from time import mktime
ALL_FMTS = {
2: ["%m %d"],
3: ["%m %d %Y","%Y %m %d","%m %d %y","%y %m %d"],
5: ["%a %b %d %H:%M:%S %Y"],
}
def try_parse(date_str, fmts):
for i,fmt in enumerate(fm... | 30.177419 | 73 | 0.618386 | 270 | 1,871 | 4.185185 | 0.433333 | 0.00885 | 0.046018 | 0.00708 | 0.010619 | 0.010619 | 0 | 0 | 0 | 0 | 0 | 0.00551 | 0.223944 | 1,871 | 61 | 74 | 30.672131 | 0.772727 | 0.053982 | 0 | 0.117647 | 0 | 0 | 0.182796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098039 | null | null | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2a05aee6c8331c761eb25e5bd7b410f646ef7d3 | 4,111 | py | Python | typo/keyboardlayouts/en_default.py | ranvijaykumar/typo | a2d517177a98c7c9d70d35e6070eb1ba9ab1cb55 | [
"MIT"
] | 8 | 2021-03-22T14:59:08.000Z | 2022-03-18T18:12:29.000Z | typo/keyboardlayouts/en_default.py | ranvijaykumar/typo | a2d517177a98c7c9d70d35e6070eb1ba9ab1cb55 | [
"MIT"
] | null | null | null | typo/keyboardlayouts/en_default.py | ranvijaykumar/typo | a2d517177a98c7c9d70d35e6070eb1ba9ab1cb55 | [
"MIT"
] | 1 | 2021-08-05T15:39:46.000Z | 2021-08-05T15:39:46.000Z | import random
NEIGHBORINGLETTERS = {
'a': ['q', 'w', 's', 'z'],
'b': ['v', 'g', 'h', 'n'],
'c': ['x', 'd', 'f', 'v'],
'd': ['s', 'e', 'r', 'f', 'c', 'x'],
'e': ['r', 'd', 's', 'w'],
'f': ['d', 'r', 't', 'g', 'v', 'c'],
'g': ['f', 't', 'y', 'h', 'b', 'v'],
'h': ['n', 'b', 'g', 'y', 'u', ... | 25.69375 | 90 | 0.352226 | 564 | 4,111 | 2.549645 | 0.150709 | 0.008345 | 0.006259 | 0.029207 | 0.298331 | 0.284423 | 0.276078 | 0.276078 | 0.219054 | 0.219054 | 0 | 0.050936 | 0.297981 | 4,111 | 159 | 91 | 25.855346 | 0.447332 | 0.012649 | 0 | 0.15493 | 0 | 0 | 0.136061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021127 | false | 0 | 0.007042 | 0 | 0.098592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2b0df4169b9d05b8dd851c640f923bfbcf78da4 | 6,311 | py | Python | dashboard_viewer/tabsManager/tests.py | EHDEN/NetworkDashboards | 8f67debe0e62606c1067eea8f27f2935242c62b4 | [
"MIT"
] | 4 | 2021-05-24T15:12:44.000Z | 2022-03-13T11:51:36.000Z | dashboard_viewer/tabsManager/tests.py | EHDEN/NetworkDashboards | 8f67debe0e62606c1067eea8f27f2935242c62b4 | [
"MIT"
] | 111 | 2020-07-27T14:48:31.000Z | 2022-01-06T17:40:11.000Z | dashboard_viewer/tabsManager/tests.py | EHDEN/NetworkDashboards | 8f67debe0e62606c1067eea8f27f2935242c62b4 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Button, Tab, TabGroup
from .views import get_menu
class GetMenuTestCase(TestCase):
def tearDown(self):
Button.objects.all().delete()
def test_only_visible_should_appear(self):
"""
Only the buttons selected to be visible must be ret... | 35.061111 | 118 | 0.542069 | 744 | 6,311 | 4.561828 | 0.15457 | 0.1264 | 0.175015 | 0.173247 | 0.687684 | 0.651444 | 0.604302 | 0.583088 | 0.49617 | 0.474367 | 0 | 0.039554 | 0.302963 | 6,311 | 179 | 119 | 35.256983 | 0.731985 | 0.085565 | 0 | 0.350365 | 0 | 0 | 0.079915 | 0 | 0 | 0 | 0 | 0 | 0.138686 | 1 | 0.051095 | false | 0 | 0.021898 | 0 | 0.080292 | 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 |
e2b51ab16071626e9554a5ec6942a3123408f38f | 1,810 | py | Python | rethinkdb/datadog_checks/rethinkdb/config.py | vbarbaresi/integrations-core | ab26ab1cd6c28a97c1ad1177093a93659658c7aa | [
"BSD-3-Clause"
] | 663 | 2016-08-23T05:23:45.000Z | 2022-03-29T00:37:23.000Z | rethinkdb/datadog_checks/rethinkdb/config.py | vbarbaresi/integrations-core | ab26ab1cd6c28a97c1ad1177093a93659658c7aa | [
"BSD-3-Clause"
] | 6,642 | 2016-06-09T16:29:20.000Z | 2022-03-31T22:24:09.000Z | rethinkdb/datadog_checks/rethinkdb/config.py | vbarbaresi/integrations-core | ab26ab1cd6c28a97c1ad1177093a93659658c7aa | [
"BSD-3-Clause"
] | 1,222 | 2017-01-27T15:51:38.000Z | 2022-03-31T18:17:51.000Z | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from typing import List, Optional
from datadog_checks.base import ConfigurationError
from .types import Instance
class Config(object):
"""
Hold instance configuration for a RethinkDB check.
... | 35.490196 | 119 | 0.61989 | 224 | 1,810 | 4.941964 | 0.379464 | 0.059621 | 0.03252 | 0.051491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008148 | 0.254144 | 1,810 | 50 | 120 | 36.2 | 0.811852 | 0.205525 | 0 | 0 | 0 | 0 | 0.156139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.1 | 0 | 0.166667 | 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 |
2c391277c60f3c910851393f5991a58be9dee908 | 733 | py | Python | src/LaunchHelper.py | ollyme231b/ros_workspace | 03f5938c73646133eca6575647b7d3164af64e1e | [
"MIT"
] | null | null | null | src/LaunchHelper.py | ollyme231b/ros_workspace | 03f5938c73646133eca6575647b7d3164af64e1e | [
"MIT"
] | null | null | null | src/LaunchHelper.py | ollyme231b/ros_workspace | 03f5938c73646133eca6575647b7d3164af64e1e | [
"MIT"
] | null | null | null |
# collection of functions to help with ROS implementation
import rospy
def get_and_set_params(node_name, params):
# params is a dict from param_name -> default_value, None if no default value
vals = {}
for param, default in params.items():
if default is None:
vals[param] = rospy.get_param("{}/{}".format(nod... | 29.32 | 78 | 0.691678 | 109 | 733 | 4.486239 | 0.40367 | 0.114519 | 0.153374 | 0.194274 | 0.265849 | 0.167689 | 0.167689 | 0.167689 | 0.167689 | 0 | 0 | 0 | 0.154161 | 733 | 25 | 79 | 29.32 | 0.78871 | 0.178718 | 0 | 0.111111 | 0 | 0 | 0.068447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0 | 0.277778 | 0.055556 | 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 |
2c3d3910e1f6696bc677222947c88d7b490d7d54 | 2,830 | py | Python | popcorn_gallery/popcorn/tests/managers_tests.py | Koenkk/popcorn_maker | 0978b9f98dacd4e8eb753404b24eb584f410aa11 | [
"BSD-3-Clause"
] | 15 | 2015-03-23T02:55:20.000Z | 2021-01-12T12:42:30.000Z | popcorn_gallery/popcorn/tests/managers_tests.py | Koenkk/popcorn_maker | 0978b9f98dacd4e8eb753404b24eb584f410aa11 | [
"BSD-3-Clause"
] | null | null | null | popcorn_gallery/popcorn/tests/managers_tests.py | Koenkk/popcorn_maker | 0978b9f98dacd4e8eb753404b24eb584f410aa11 | [
"BSD-3-Clause"
] | 16 | 2015-02-18T21:43:31.000Z | 2021-11-09T22:50:03.000Z | from django.contrib.auth.models import User
from django.test import TestCase
from nose.tools import eq_
from .fixtures import create_user, create_project
from ..models import Project, Template
class ProjectsManagerTest(TestCase):
def setUp(self):
self.user = create_user('bob')
def tearDown(self):
... | 42.238806 | 80 | 0.669965 | 349 | 2,830 | 5.232092 | 0.169054 | 0.056955 | 0.098576 | 0.11391 | 0.764513 | 0.726725 | 0.636364 | 0.636364 | 0.502738 | 0.502738 | 0 | 0.00403 | 0.210954 | 2,830 | 66 | 81 | 42.878788 | 0.813704 | 0 | 0 | 0.283019 | 0 | 0 | 0.029329 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 1 | 0.188679 | false | 0 | 0.09434 | 0 | 0.301887 | 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 |
2c3e40c14d5ee75ac3b748a5719194a40a4f5c03 | 2,174 | py | Python | androguard-master/mercury/client/merc/lib/basecmd.py | rpanah/AndrODet | 684e0232846303a1c5a35c093027f2c568f72942 | [
"MIT"
] | 24 | 2018-10-09T02:08:17.000Z | 2021-08-03T21:39:16.000Z | androguard-master/mercury/client/merc/lib/basecmd.py | rpanah/AndrODet | 684e0232846303a1c5a35c093027f2c568f72942 | [
"MIT"
] | 3 | 2019-06-21T12:05:39.000Z | 2021-11-09T07:23:37.000Z | androguard-master/mercury/client/merc/lib/basecmd.py | rpanah/AndrODet | 684e0232846303a1c5a35c093027f2c568f72942 | [
"MIT"
] | 4 | 2018-12-12T21:34:37.000Z | 2021-09-03T19:42:10.000Z | #!/usr/bin/python
#
# License: Refer to the README in the root directory
#
import cmd
class BaseCmd(cmd.Cmd):
def __init__(self, session):
cmd.Cmd.__init__(self)
self.session = session
self.ruler = "-"
self.doc_header = "Commands - type help <command> for more info"
self.... | 29.780822 | 87 | 0.615915 | 282 | 2,174 | 4.684397 | 0.429078 | 0.02271 | 0.020439 | 0.024981 | 0.198335 | 0.198335 | 0.174111 | 0.174111 | 0.115064 | 0.115064 | 0 | 0 | 0.289328 | 2,174 | 72 | 88 | 30.194444 | 0.855016 | 0.183073 | 0 | 0.214286 | 0 | 0 | 0.06904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035714 | 0.035714 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c4586b1c2d119245857c0949674d945b87914f8 | 1,479 | py | Python | tools/visual.py | keenJMS/JMS_OIM | 6f4bc1c114d007c108d6989c05fb0847aee78a1c | [
"Apache-2.0"
] | null | null | null | tools/visual.py | keenJMS/JMS_OIM | 6f4bc1c114d007c108d6989c05fb0847aee78a1c | [
"Apache-2.0"
] | null | null | null | tools/visual.py | keenJMS/JMS_OIM | 6f4bc1c114d007c108d6989c05fb0847aee78a1c | [
"Apache-2.0"
] | null | null | null | import sys
print(sys.path)
sys.path.append('./')
print(sys.path)
from modeling import build_model
from data.datasets.cuhk_sysu import CUHK_SYSU
from data.datasets.transformer import get_transform
from tools.util import ship_data_to_cuda,draw_box_in_image
from torch.utils.data import DataLoader
import torch
from tqdm i... | 36.073171 | 100 | 0.699797 | 228 | 1,479 | 4.333333 | 0.429825 | 0.025304 | 0.027328 | 0.04251 | 0.097166 | 0.050607 | 0.050607 | 0 | 0 | 0 | 0 | 0.02445 | 0.170385 | 1,479 | 41 | 101 | 36.073171 | 0.780766 | 0.073698 | 0 | 0.055556 | 0 | 0.027778 | 0.075347 | 0.021946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.305556 | 0 | 0.333333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2c4b4815a719e6acb83925afaa078126670cc792 | 792 | py | Python | pi-Approximation.py | alexlo0612/Python-Misc. | 7462e4031d9313edda5758f755e3ba3b2548bb21 | [
"MIT"
] | 2 | 2019-07-08T12:01:35.000Z | 2021-06-18T11:42:45.000Z | pi-Approximation.py | alexlo0612/Python-Misc. | 7462e4031d9313edda5758f755e3ba3b2548bb21 | [
"MIT"
] | null | null | null | pi-Approximation.py | alexlo0612/Python-Misc. | 7462e4031d9313edda5758f755e3ba3b2548bb21 | [
"MIT"
] | 1 | 2020-10-02T20:28:37.000Z | 2020-10-02T20:28:37.000Z | import numpy as np
import numpy.random as rnd
import matplotlib.pyplot as plt
r2 = 1 ## r^2 (radius squared)
#n = int(1e5) ## number of elements
n = 10545437.0
## seed PRNG (for debugging)
#print resarsaencfunc()
k = 5
#resarsaencfunc()
#429496729
rnd.seed(k)
## generate random numbers
Xr = rnd.rand(n)
Yr = rn... | 14.666667 | 78 | 0.65404 | 141 | 792 | 3.673759 | 0.524823 | 0.040541 | 0.046332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052117 | 0.224747 | 792 | 53 | 79 | 14.943396 | 0.791531 | 0.554293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c4b5786219db2ba707c88b9810482dca141b4f4 | 564 | py | Python | run_copy.py | Square789/tf2_dem_py | cfddd7caa06c2ac32d64a7a67bb610589e0ad608 | [
"MIT"
] | 3 | 2021-06-28T21:54:28.000Z | 2021-07-31T11:35:07.000Z | run_copy.py | Square789/tf2_dem_py | cfddd7caa06c2ac32d64a7a67bb610589e0ad608 | [
"MIT"
] | 7 | 2020-06-21T01:14:59.000Z | 2022-02-20T13:27:17.000Z | run_copy.py | Square789/tf2_dem_py | cfddd7caa06c2ac32d64a7a67bb610589e0ad608 | [
"MIT"
] | null | null | null |
# Shoddy directory-wise run script
import os
import json
import sys
from pprint import pprint
from bytes_encoder import BytesEncoder
from tf2_dem_py.flags import FLAGS
from tf2_dem_py.demo_parser import DemoParser
p = sys.argv[1]
for i, file in enumerate([os.path.join(p, i) for i in os.listdir(p) if i.endswith(".... | 21.692308 | 92 | 0.72695 | 96 | 564 | 4.1875 | 0.552083 | 0.034826 | 0.049751 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.154255 | 564 | 25 | 93 | 22.56 | 0.836478 | 0.161348 | 0 | 0 | 0 | 0 | 0.044872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2c563d75ce6808c61d4fa04d31a1ddcc9d82cc47 | 5,278 | py | Python | libc/tools/checksyscalls.py | cfriedt/bionic | d65ab1d9017fe191208974be49aa244688177e26 | [
"BSD-2-Clause"
] | 18 | 2015-06-28T23:08:40.000Z | 2021-11-19T17:55:25.000Z | libc/tools/checksyscalls.py | cfriedt/bionic | d65ab1d9017fe191208974be49aa244688177e26 | [
"BSD-2-Clause"
] | 1 | 2015-12-05T14:20:14.000Z | 2015-12-05T14:20:14.000Z | libc/tools/checksyscalls.py | cfriedt/bionic | d65ab1d9017fe191208974be49aa244688177e26 | [
"BSD-2-Clause"
] | 4 | 2017-12-19T12:22:07.000Z | 2022-01-25T16:07:47.000Z | #!/usr/bin/python
#
# this tool is used to check that the syscall numbers that are in
# SYSCALLS.TXT correspond to those found in the Linux kernel sources
# for the arm and i386 architectures
#
import sys, re, string, os, commands
from bionic_utils import *
# change this if necessary
syscalls_txt = "SYSCALLS.TXT"
... | 30.333333 | 116 | 0.623342 | 777 | 5,278 | 4.034749 | 0.263835 | 0.040191 | 0.015311 | 0.017863 | 0.241786 | 0.21563 | 0.164274 | 0.122807 | 0.108453 | 0.091866 | 0 | 0.027792 | 0.256916 | 5,278 | 173 | 117 | 30.508671 | 0.771545 | 0.142289 | 0 | 0.266667 | 0 | 0 | 0.234236 | 0.038632 | 0 | 0 | 0.001776 | 0 | 0 | 0 | null | null | 0.008333 | 0.016667 | null | null | 0.141667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c5c63b0379d9d0db9db9be5bc2106403b2fb050 | 502 | py | Python | spreadsheetui/migrations/0003_auto_20200522_1102.py | JohnDoee/spreadsheetui | a0354584b8c74591e20d7e8910f77b1121638a67 | [
"MIT"
] | 43 | 2020-05-10T14:21:45.000Z | 2022-03-05T23:36:49.000Z | spreadsheetui/migrations/0003_auto_20200522_1102.py | JohnDoee/spreadsheetui | a0354584b8c74591e20d7e8910f77b1121638a67 | [
"MIT"
] | 4 | 2020-06-06T12:56:16.000Z | 2021-09-24T06:43:56.000Z | spreadsheetui/migrations/0003_auto_20200522_1102.py | JohnDoee/spreadsheetui | a0354584b8c74591e20d7e8910f77b1121638a67 | [
"MIT"
] | 1 | 2020-06-07T19:18:39.000Z | 2020-06-07T19:18:39.000Z | # Generated by Django 3.0.6 on 2020-05-22 11:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('spreadsheetui', '0002_auto_20200522_0752'),
]
operations = [
migrations.RemoveField(
model_name='job',
name='source_... | 21.826087 | 53 | 0.579681 | 50 | 502 | 5.68 | 0.78 | 0.06338 | 0.084507 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089337 | 0.308765 | 502 | 22 | 54 | 22.818182 | 0.729107 | 0.089641 | 0 | 0.25 | 1 | 0 | 0.145055 | 0.050549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c5d63ba636da18dc14d38fdf2468016debda24e | 3,405 | py | Python | nnetwork.py | mhdrony/Neural-Network_model | 0b9b4a66772c10dfa29776ebd4e42129ca46168a | [
"Apache-2.0"
] | null | null | null | nnetwork.py | mhdrony/Neural-Network_model | 0b9b4a66772c10dfa29776ebd4e42129ca46168a | [
"Apache-2.0"
] | null | null | null | nnetwork.py | mhdrony/Neural-Network_model | 0b9b4a66772c10dfa29776ebd4e42129ca46168a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""nnetwork.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1pMeLa_X6bXVDBF07Nf5ISyPfmGEpurvH
"""
import pandas as pd
import numpy as np
# first neural network with keras tutorial
from numpy import loadtxt
from sklearn.mod... | 30.132743 | 81 | 0.768869 | 553 | 3,405 | 4.513562 | 0.318264 | 0.024038 | 0.016827 | 0.018029 | 0.302083 | 0.229968 | 0.214744 | 0.19391 | 0.19391 | 0.157853 | 0 | 0.025213 | 0.103084 | 3,405 | 113 | 82 | 30.132743 | 0.792076 | 0.477827 | 0 | 0 | 1 | 0 | 0.129385 | 0.020702 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.26087 | 0 | 0.26087 | 0.108696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c67664e08b39dba91122f48586ecf67bd329239 | 842 | py | Python | kmedoids.py | jannson/Similar | 975527fae5fe63ab63913fa1f24619d616331687 | [
"MIT"
] | 2 | 2015-12-17T17:25:44.000Z | 2019-01-24T16:46:55.000Z | kmedoids.py | jannson/Similar | 975527fae5fe63ab63913fa1f24619d616331687 | [
"MIT"
] | null | null | null | kmedoids.py | jannson/Similar | 975527fae5fe63ab63913fa1f24619d616331687 | [
"MIT"
] | null | null | null | import numpy as np
import mlpy
class distance:
def compute(self, s1, s2):
l1 = len(s1)
l2 = len(s2)
matrix = [range(zz,zz + l1 + 1) for zz in xrange(l2 + 1)]
for zz in xrange(0,l2):
for sz in xrange(0,l1):
if s1[sz] == s2[zz]:
matr... | 28.066667 | 108 | 0.530879 | 138 | 842 | 3.23913 | 0.355072 | 0.143177 | 0.080537 | 0.098434 | 0.284116 | 0.219239 | 0.219239 | 0.219239 | 0.219239 | 0.219239 | 0 | 0.053512 | 0.289786 | 842 | 29 | 109 | 29.034483 | 0.69398 | 0 | 0 | 0 | 0 | 0 | 0.034442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c6cb359cf445ad38b61e2b2535638a48d0742b1 | 699 | py | Python | algorithms/python/110.py | scream7/leetcode | 1fe0f5df3ca0019a4d99979cc663993d2492272d | [
"Apache-2.0"
] | null | null | null | algorithms/python/110.py | scream7/leetcode | 1fe0f5df3ca0019a4d99979cc663993d2492272d | [
"Apache-2.0"
] | null | null | null | algorithms/python/110.py | scream7/leetcode | 1fe0f5df3ca0019a4d99979cc663993d2492272d | [
"Apache-2.0"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def isBalanced(self, root):
"""
:type root: TreeNode
:rtype: bool
"""
def _treeDe... | 27.96 | 136 | 0.532189 | 79 | 699 | 4.594937 | 0.43038 | 0.107438 | 0.066116 | 0.115702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006742 | 0.363376 | 699 | 24 | 137 | 29.125 | 0.808989 | 0.274678 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2c71aa7dd304e31f3397638a504cb2a64b52638f | 1,525 | py | Python | cache.py | devLupin/Capstone1 | 62c2b48146486ed20b88dd7593fcc8a5b3e2f304 | [
"MIT"
] | null | null | null | cache.py | devLupin/Capstone1 | 62c2b48146486ed20b88dd7593fcc8a5b3e2f304 | [
"MIT"
] | null | null | null | cache.py | devLupin/Capstone1 | 62c2b48146486ed20b88dd7593fcc8a5b3e2f304 | [
"MIT"
] | null | null | null | """
### cache.py
### author : Hyuntaek Lim
### created : 2019-05-01
"""
"""
Leave all the records in the text file.
If the administrator uses the student number to search the log file,
he can see the time and number of times he escaped.
"""
#!/usr/bin/python
#-------------------------------------------------------... | 27.232143 | 82 | 0.434754 | 169 | 1,525 | 3.911243 | 0.502959 | 0.054463 | 0.039334 | 0.04236 | 0.136157 | 0.136157 | 0.08472 | 0.08472 | 0 | 0 | 0 | 0.023715 | 0.170492 | 1,525 | 56 | 83 | 27.232143 | 0.498814 | 0.491803 | 0 | 0.375 | 0 | 0 | 0.099485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c7e3f568f26a6e1323e245e398d3a0aeee891ca | 7,344 | py | Python | HashBinTop.py | divfor/algorithm_playground | 29696665967588d0b936a6d9bc6b4a1cb0ae1086 | [
"BSD-3-Clause"
] | 1 | 2021-07-13T04:03:59.000Z | 2021-07-13T04:03:59.000Z | HashBinTop.py | divfor/algorithm_playground | 29696665967588d0b936a6d9bc6b4a1cb0ae1086 | [
"BSD-3-Clause"
] | null | null | null | HashBinTop.py | divfor/algorithm_playground | 29696665967588d0b936a6d9bc6b4a1cb0ae1086 | [
"BSD-3-Clause"
] | 1 | 2019-08-19T02:05:21.000Z | 2019-08-19T02:05:21.000Z | #!/usr/bin/env python3
# https://github.com/escherba/python-cityhash
# https://github.com/google/cityhash
# https://github.com/ekzhu/datasketch
# https://github.com/RaRe-Technologies/bounter
# from datasketch import HyperLogLogPlusPlus
from cityhash import CityHash64WithSeed as cityhash
from bounter import bounter
imp... | 43.455621 | 126 | 0.566857 | 1,031 | 7,344 | 3.917556 | 0.215325 | 0.097054 | 0.038623 | 0.025254 | 0.093588 | 0.046546 | 0.011389 | 0 | 0 | 0 | 0 | 0.040625 | 0.302832 | 7,344 | 168 | 127 | 43.714286 | 0.748242 | 0 | 0 | 0.125 | 0 | 0.014706 | 0.108518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007353 | 0.029412 | null | null | 0.132353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c82d617124b9da51b79e5159949f753fb2b2b5b | 1,453 | py | Python | whist/server/api/game/join.py | Whist-Team/Whist-Server | 7173bba9cbae505e189c812ebb459af661d656b2 | [
"MIT"
] | 1 | 2021-08-09T21:15:23.000Z | 2021-08-09T21:15:23.000Z | whist/server/api/game/join.py | Whist-Team/Whist-Server | 7173bba9cbae505e189c812ebb459af661d656b2 | [
"MIT"
] | 172 | 2021-04-18T21:09:56.000Z | 2022-03-31T20:38:07.000Z | whist/server/api/game/join.py | Whist-Team/Whist-Server | 7173bba9cbae505e189c812ebb459af661d656b2 | [
"MIT"
] | 2 | 2021-08-28T19:05:55.000Z | 2022-03-20T17:50:29.000Z | """
Route to join a game.
"""
from typing import Dict
from fastapi import APIRouter, HTTPException, Security, status
from whist.core.user.player import Player
from whist.server.database.warning import PlayerAlreadyJoinedWarning
from whist.server.services.authentication import get_current_user
from whist.server.servic... | 33.022727 | 96 | 0.718513 | 181 | 1,453 | 5.646409 | 0.414365 | 0.044031 | 0.058708 | 0.067515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005068 | 0.185134 | 1,453 | 43 | 97 | 33.790698 | 0.858108 | 0.192017 | 0 | 0 | 0 | 0 | 0.088987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.2 | 0.28 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2c82d8d6a7867efc0a88e0a2521b01602e8d339a | 8,605 | py | Python | tests/integration_tests/test_wallet.py | opentensor/BitTensor | 59de2d0fe48f3bd02ba5bff6159e6625bd6cb945 | [
"MIT"
] | 2 | 2020-03-11T19:40:05.000Z | 2020-06-14T19:35:34.000Z | tests/integration_tests/test_wallet.py | opentensor/BitTensor | 59de2d0fe48f3bd02ba5bff6159e6625bd6cb945 | [
"MIT"
] | null | null | null | tests/integration_tests/test_wallet.py | opentensor/BitTensor | 59de2d0fe48f3bd02ba5bff6159e6625bd6cb945 | [
"MIT"
] | null | null | null | # The MIT License (MIT)
# Copyright © 2021 Yuma Rao
# 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... | 44.585492 | 168 | 0.756886 | 1,125 | 8,605 | 5.546667 | 0.164444 | 0.102404 | 0.066667 | 0.072115 | 0.695192 | 0.690385 | 0.678365 | 0.6625 | 0.626603 | 0.589583 | 0 | 0.016019 | 0.165718 | 8,605 | 193 | 169 | 44.585492 | 0.853044 | 0.141778 | 0 | 0.503759 | 0 | 0 | 0.138357 | 0.034352 | 0 | 0 | 0.017923 | 0 | 0.255639 | 1 | 0.105263 | false | 0.165414 | 0.045113 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2c82f2fe4ac8a41282ccc114a41043cc8dd98727 | 1,248 | py | Python | lib/eco/grammars/newprolog.py | softdevteam/eco | fdca886f13e9487f8293f50bf1fd5f02389e0fd3 | [
"MIT"
] | 54 | 2015-01-19T14:54:28.000Z | 2022-02-06T14:55:03.000Z | lib/eco/grammars/newprolog.py | softdevteam/eco | fdca886f13e9487f8293f50bf1fd5f02389e0fd3 | [
"MIT"
] | 228 | 2015-01-27T15:53:13.000Z | 2020-01-16T10:35:15.000Z | lib/eco/grammars/newprolog.py | softdevteam/eco | fdca886f13e9487f8293f50bf1fd5f02389e0fd3 | [
"MIT"
] | 12 | 2015-05-15T01:49:01.000Z | 2020-01-11T10:19:39.000Z | from .grammars import Language
newprolog = Language("New Prolog", """
top ::= clause_list
clause_list ::= clause_list clause | clause
clause ::= term | arith | unify | relation
relation ::= unifiable relop unifiable
relop ::= ">" | "<" | ">=" | "=<"
unify ::= unifiable "=" unifiable
unif... | 20.129032 | 60 | 0.469551 | 125 | 1,248 | 4.456 | 0.288 | 0.16158 | 0.057451 | 0.08079 | 0.219031 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006501 | 0.260417 | 1,248 | 61 | 61 | 20.459016 | 0.596966 | 0 | 0 | 0 | 0 | 0 | 0.93514 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c836da8aca5943881c842226deed7bf75888ead | 562 | py | Python | ckanext/cloudstorage/helpers.py | EnviDat/ckanext-cloudstorage | f205024f64cbee231d48386534e18b25416c8fc0 | [
"MIT"
] | null | null | null | ckanext/cloudstorage/helpers.py | EnviDat/ckanext-cloudstorage | f205024f64cbee231d48386534e18b25416c8fc0 | [
"MIT"
] | null | null | null | ckanext/cloudstorage/helpers.py | EnviDat/ckanext-cloudstorage | f205024f64cbee231d48386534e18b25416c8fc0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ckanext.cloudstorage.storage import ResourceCloudStorage
from ckan.logic import get_action
def use_secure_urls():
return all([
ResourceCloudStorage.use_secure_urls.fget(None),
# Currently implemented just AWS version
'S3' in ResourceCloudS... | 33.058824 | 78 | 0.711744 | 65 | 562 | 5.969231 | 0.615385 | 0.061856 | 0.06701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004329 | 0.177936 | 562 | 17 | 78 | 33.058824 | 0.835498 | 0.144128 | 0 | 0 | 0 | 0 | 0.075157 | 0.058455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.