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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ad2b9d60078177a937a790386e7574d13748d16 | 374 | py | Python | app/chatrooms/forms.py | arbmf/SNFE | 0ec4bfe481228ed85e0aabe3a41616bd4832d5fa | [
"MIT"
] | null | null | null | app/chatrooms/forms.py | arbmf/SNFE | 0ec4bfe481228ed85e0aabe3a41616bd4832d5fa | [
"MIT"
] | null | null | null | app/chatrooms/forms.py | arbmf/SNFE | 0ec4bfe481228ed85e0aabe3a41616bd4832d5fa | [
"MIT"
] | 1 | 2021-04-18T23:11:29.000Z | 2021-04-18T23:11:29.000Z | from flask_wtf import FlaskForm
from wtforms import (StringField, SubmitField, TextAreaField)
from wtforms.validators import DataRequired
from flask_wtf.file import FileAllowed, FileField
class NewChatroom(FlaskForm):
title = StringField('Title', validators=[DataRequired()])
class NewChat(FlaskForm):
title ... | 28.769231 | 63 | 0.791444 | 39 | 374 | 7.538462 | 0.487179 | 0.061224 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114973 | 374 | 12 | 64 | 31.166667 | 0.888218 | 0 | 0 | 0 | 0 | 0 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3ada03868d3c253847b347463631f5a2d9e9f252 | 3,854 | py | Python | esteid/authentication/views.py | thorgate/django-esteid | 4a4227b20dca7db5441a3514f724f1404575562c | [
"BSD-3-Clause"
] | 17 | 2016-03-30T09:20:19.000Z | 2022-01-17T12:04:03.000Z | esteid/authentication/views.py | thorgate/django-esteid | 4a4227b20dca7db5441a3514f724f1404575562c | [
"BSD-3-Clause"
] | 15 | 2016-02-22T22:49:07.000Z | 2021-11-09T12:29:35.000Z | esteid/authentication/views.py | thorgate/django-esteid | 4a4227b20dca7db5441a3514f724f1404575562c | [
"BSD-3-Clause"
] | 2 | 2016-07-27T10:57:52.000Z | 2017-10-05T13:15:59.000Z | import logging
from typing import Type, TYPE_CHECKING
from django.http import HttpRequest, JsonResponse
from esteid.exceptions import ActionInProgress
from esteid.mixins import DjangoRestCompatibilityMixin, SessionViewMixin
from .authenticator import Authenticator
from .types import AuthenticationResult
try:
f... | 32.386555 | 116 | 0.688635 | 409 | 3,854 | 6.386308 | 0.339853 | 0.020674 | 0.024502 | 0.026417 | 0.250383 | 0.199847 | 0.062021 | 0.034456 | 0 | 0 | 0 | 0 | 0.237935 | 3,854 | 118 | 117 | 32.661017 | 0.889343 | 0.229113 | 0 | 0.344262 | 0 | 0 | 0.020702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0.032787 | 0.163934 | 0 | 0.508197 | 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 |
3ada5b9724c69cf38b23c38111795a3a3ecac18d | 337 | py | Python | client_api/client_api/settings_docker.py | MagnificentUrukHai/market-platform | b6a67138ccaf3733ad19dc66c5bfa100733c665e | [
"MIT"
] | null | null | null | client_api/client_api/settings_docker.py | MagnificentUrukHai/market-platform | b6a67138ccaf3733ad19dc66c5bfa100733c665e | [
"MIT"
] | 1 | 2019-05-22T15:05:44.000Z | 2019-05-22T15:05:44.000Z | client_api/client_api/settings_docker.py | MagnificentUrukHai/market-platform | b6a67138ccaf3733ad19dc66c5bfa100733c665e | [
"MIT"
] | null | null | null | DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'market_platform_backend',
'USER': 'postgres',
'HOST': 'postgres',
'PORT': '5432',
'PASSWORD': ''
}
}
CELERY_BROKER_URL = 'redis://redis:6379'
CELERY_RESULT_BACKEND = 'redis://redis:637... | 22.466667 | 50 | 0.566766 | 32 | 337 | 5.78125 | 0.78125 | 0.108108 | 0.151351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.252226 | 337 | 14 | 51 | 24.071429 | 0.686508 | 0 | 0 | 0 | 0 | 0 | 0.430267 | 0.154303 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3add752eb03cec77bdf6f2dbc6203e2d7af66666 | 3,811 | py | Python | leetcode/Design/535. Encode and Decode TinyURL.py | yanshengjia/algorithm | 0608d286be9c93d51768d47f21e569c6b0be9cda | [
"MIT"
] | 23 | 2019-08-02T12:02:47.000Z | 2022-03-09T15:24:16.000Z | leetcode/Design/535. Encode and Decode TinyURL.py | yanshengjia/algorithm | 0608d286be9c93d51768d47f21e569c6b0be9cda | [
"MIT"
] | null | null | null | leetcode/Design/535. Encode and Decode TinyURL.py | yanshengjia/algorithm | 0608d286be9c93d51768d47f21e569c6b0be9cda | [
"MIT"
] | 21 | 2019-12-22T04:47:32.000Z | 2021-09-12T14:29:35.000Z | """
TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http://tinyurl.com/4e9iAk.
Design the encode and decode methods for the TinyURL service. There is no restriction on how your encode/decode algorithm should work. You jus... | 36.644231 | 251 | 0.6762 | 567 | 3,811 | 4.525573 | 0.409171 | 0.01403 | 0.020265 | 0.01325 | 0.13484 | 0.13484 | 0.115355 | 0.115355 | 0.115355 | 0.115355 | 0 | 0.014416 | 0.253739 | 3,811 | 103 | 252 | 37 | 0.887834 | 0.680399 | 0 | 0.275862 | 0 | 0 | 0.038973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3addb5606fe14601e97314e68d912a06dd12bdbf | 2,422 | py | Python | Prog/Curry.py | paul-ollis/cleversheep3 | 86e6ca76ea4e8524f16e2348d38484dcfafb07d0 | [
"Apache-2.0"
] | null | null | null | Prog/Curry.py | paul-ollis/cleversheep3 | 86e6ca76ea4e8524f16e2348d38484dcfafb07d0 | [
"Apache-2.0"
] | null | null | null | Prog/Curry.py | paul-ollis/cleversheep3 | 86e6ca76ea4e8524f16e2348d38484dcfafb07d0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Function currying.
This module exports a single class called `Curry`.
"""
from __future__ import print_function
__docformat__ = "restructuredtext"
import os
import re
class Curry:
"""A general purpose function currying facility.
This provides a flexible way to curry functions. The b... | 27.522727 | 84 | 0.570603 | 300 | 2,422 | 4.486667 | 0.386667 | 0.044577 | 0.017831 | 0.023774 | 0.034175 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015207 | 0.321222 | 2,422 | 87 | 85 | 27.83908 | 0.803528 | 0.588357 | 0 | 0 | 0 | 0 | 0.01995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.125 | 0 | 0.458333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ae4028bab07c8ceeb7208ad2d3dd5ae63d4854b | 2,026 | py | Python | utils.py | sunblaze-ucb/rl-attack-vf | 48d59d5d022599560f0fabfdd5dbf99984457cec | [
"MIT"
] | 1 | 2018-03-17T11:50:44.000Z | 2018-03-17T11:50:44.000Z | utils.py | sunblaze-ucb/rl-attack-vf | 48d59d5d022599560f0fabfdd5dbf99984457cec | [
"MIT"
] | null | null | null | utils.py | sunblaze-ucb/rl-attack-vf | 48d59d5d022599560f0fabfdd5dbf99984457cec | [
"MIT"
] | null | null | null | import os
import matplotlib
import matplotlib.colors as mcolors
import numpy as np
# Initialize matplotlib.
matplotlib.use('Agg')
COLORMAP = mcolors.ListedColormap(
(
(0.10588235294117647, 0.61960784313725492, 0.46666666666666667),
(0.85098039215686272, 0.37254901960784315, 0.00784313725490196),
... | 39.72549 | 111 | 0.659427 | 235 | 2,026 | 5.587234 | 0.480851 | 0.006093 | 0.006855 | 0.027418 | 0.095963 | 0.073115 | 0.073115 | 0.073115 | 0.073115 | 0.073115 | 0 | 0.236172 | 0.205824 | 2,026 | 50 | 112 | 40.52 | 0.579863 | 0.059724 | 0 | 0 | 0 | 0 | 0.071015 | 0.047344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.157895 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
3ae5480dd068ea644c3ae050b971e9c353b21261 | 8,199 | py | Python | rclpy/test/test_time.py | mlautman/rclpy | 91f7782619b1ccd9c812012ff85f6336186baab9 | [
"Apache-2.0"
] | 1 | 2019-04-16T03:28:09.000Z | 2019-04-16T03:28:09.000Z | rclpy/test/test_time.py | mlautman/rclpy | 91f7782619b1ccd9c812012ff85f6336186baab9 | [
"Apache-2.0"
] | 6 | 2019-04-03T18:17:47.000Z | 2019-04-25T01:09:19.000Z | rclpy/test/test_time.py | mlautman/rclpy | 91f7782619b1ccd9c812012ff85f6336186baab9 | [
"Apache-2.0"
] | 1 | 2020-02-26T05:51:21.000Z | 2020-02-26T05:51:21.000Z | # Copyright 2018 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 37.099548 | 93 | 0.64825 | 892 | 8,199 | 5.882287 | 0.163677 | 0.04879 | 0.121974 | 0.132647 | 0.582619 | 0.473032 | 0.399657 | 0.313703 | 0.272537 | 0.226034 | 0 | 0.041398 | 0.263447 | 8,199 | 220 | 94 | 37.268182 | 0.827455 | 0.131236 | 0 | 0.333333 | 0 | 0 | 0.00155 | 0 | 0 | 0 | 0 | 0 | 0.484277 | 1 | 0.050314 | false | 0 | 0.031447 | 0 | 0.08805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ae56efbcdf2cd7986c6774d93fa69938d41f370 | 696 | py | Python | setup.py | nolze/imgsteg | 30703df380742b09196ce077394700b58852ea14 | [
"MIT"
] | 2 | 2018-11-02T12:03:45.000Z | 2021-10-21T20:23:39.000Z | setup.py | nolze/imgsteg | 30703df380742b09196ce077394700b58852ea14 | [
"MIT"
] | null | null | null | setup.py | nolze/imgsteg | 30703df380742b09196ce077394700b58852ea14 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='imgsteg',
version="0.1.0",
description='A simple steganography tool for images',
long_description=open("README.md", "r").read(),
long_description_content_type='text/markdown',
url='https://github.com/nolze/imgsteg',
author='nolze',
author_email=... | 23.2 | 57 | 0.574713 | 74 | 696 | 5.216216 | 0.77027 | 0.07772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019493 | 0.262931 | 696 | 29 | 58 | 24 | 0.732943 | 0 | 0 | 0.107143 | 0 | 0 | 0.340517 | 0.030172 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ae5ac0a2a08f875d38e5866c05207321cd47bc2 | 230 | py | Python | scripts/fs_reports.py | MrUPGrade/rethinkdb_learning | 4711b9445b0a5ac7a6fd564cb9c08c744c3d790c | [
"MIT"
] | null | null | null | scripts/fs_reports.py | MrUPGrade/rethinkdb_learning | 4711b9445b0a5ac7a6fd564cb9c08c744c3d790c | [
"MIT"
] | null | null | null | scripts/fs_reports.py | MrUPGrade/rethinkdb_learning | 4711b9445b0a5ac7a6fd564cb9c08c744c3d790c | [
"MIT"
] | null | null | null | import rdbpy.db_objects as dbo
from rdbpy.conn import get_connection
if __name__ == '__main__':
rdb_conn = get_connection('linux')
fs_nodes = dbo.FSNodes(rdb_conn)
result = fs_nodes.report_python()
print(result)
| 23 | 38 | 0.730435 | 33 | 230 | 4.606061 | 0.666667 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 230 | 9 | 39 | 25.555556 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.056522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ae7431336be95d940bba89bc546deab78f8d30d | 13,400 | py | Python | streamkit/database/core/orm.py | glentner/streamkit | cc2709ee7a286565f6c287566d657dfc7b334222 | [
"Apache-2.0"
] | 2 | 2020-09-16T23:51:22.000Z | 2020-09-16T23:51:56.000Z | streamkit/database/core/orm.py | glentner/streamkit | cc2709ee7a286565f6c287566d657dfc7b334222 | [
"Apache-2.0"
] | 2 | 2021-02-02T23:47:06.000Z | 2021-06-02T03:01:13.000Z | streamkit/database/core/orm.py | glentner/streamkit | cc2709ee7a286565f6c287566d657dfc7b334222 | [
"Apache-2.0"
] | 1 | 2021-02-15T22:40:19.000Z | 2021-02-15T22:40:19.000Z | # This program is free software: you can redistribute it and/or modify it under the
# terms of the Apache License (v2.0) as published by the Apache Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or... | 32.843137 | 113 | 0.588657 | 1,552 | 13,400 | 4.954253 | 0.124356 | 0.025491 | 0.017167 | 0.021849 | 0.608662 | 0.576538 | 0.551957 | 0.509689 | 0.48914 | 0.48914 | 0 | 0.000723 | 0.277015 | 13,400 | 407 | 114 | 32.923833 | 0.79294 | 0.323806 | 0 | 0.475309 | 0 | 0 | 0.156104 | 0.061406 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.049383 | 0.037037 | 0.691358 | 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 |
3af6d12ccd91d59479ba1c731fa94ddee19def8d | 336 | py | Python | project_restapi/profiles_api/admin.py | shiraz-ahmed/django-rest | c33fbe2992b34bf32d086b09fe0cea3070b5457f | [
"MIT"
] | null | null | null | project_restapi/profiles_api/admin.py | shiraz-ahmed/django-rest | c33fbe2992b34bf32d086b09fe0cea3070b5457f | [
"MIT"
] | 7 | 2019-12-05T00:04:45.000Z | 2022-02-10T13:22:53.000Z | project_restapi/profiles_api/admin.py | shiraz-ahmed/django-rest | c33fbe2992b34bf32d086b09fe0cea3070b5457f | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import userprofile,profilefeed_item
# Register your models here.
class useradmin(admin.ModelAdmin):
list_display=['name','is_staff','is_active','email']
class Meta:
model=userprofile
admin.site.register(userprofile,useradmin)
admin.site.register(pr... | 16.8 | 56 | 0.758929 | 41 | 336 | 6.097561 | 0.609756 | 0.12 | 0.136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139881 | 336 | 19 | 57 | 17.684211 | 0.865052 | 0.077381 | 0 | 0 | 0 | 0 | 0.084416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
3af70c8c3541ff7ade6ba8a2ae14da7e0f4a6525 | 392 | py | Python | unfold/users/migrations/0008_user_token.py | wesny/unfold | 6594054f7408ac142fc6e902093b6fc8cbfda94e | [
"MIT"
] | null | null | null | unfold/users/migrations/0008_user_token.py | wesny/unfold | 6594054f7408ac142fc6e902093b6fc8cbfda94e | [
"MIT"
] | null | null | null | unfold/users/migrations/0008_user_token.py | wesny/unfold | 6594054f7408ac142fc6e902093b6fc8cbfda94e | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-04-14 04:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0007_auto_20180324_1551'),
]
operations = [
migrations.AddField(
model_name='user',
name='token',
... | 20.631579 | 63 | 0.596939 | 44 | 392 | 5.204545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121429 | 0.285714 | 392 | 18 | 64 | 21.777778 | 0.696429 | 0.114796 | 0 | 0 | 1 | 0 | 0.107246 | 0.066667 | 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 |
aaef9c0cf23e945b3d4bc6cd45f73a1d64559ae5 | 3,717 | py | Python | src/scripts/json-import.py | oleksmarkh/activity-calendar-backend | 416b0c55950f6a6d9eab53388b98fc5ea1ba7448 | [
"MIT"
] | null | null | null | src/scripts/json-import.py | oleksmarkh/activity-calendar-backend | 416b0c55950f6a6d9eab53388b98fc5ea1ba7448 | [
"MIT"
] | null | null | null | src/scripts/json-import.py | oleksmarkh/activity-calendar-backend | 416b0c55950f6a6d9eab53388b98fc5ea1ba7448 | [
"MIT"
] | 1 | 2022-02-23T14:30:52.000Z | 2022-02-23T14:30:52.000Z | import argparse
import sys
import json
from datetime import datetime, timedelta
from sqlalchemy import create_engine, exc, Table, MetaData
from sqlalchemy.sql import select
# @todo: load from ENV vars
db_config = dict(user='markhovs',
host='localhost',
name='activity_calendar')
pars... | 39.126316 | 120 | 0.618779 | 497 | 3,717 | 4.466801 | 0.317907 | 0.032432 | 0.018919 | 0.013514 | 0.145045 | 0.054955 | 0.054955 | 0.054955 | 0.054955 | 0 | 0 | 0.037879 | 0.254237 | 3,717 | 94 | 121 | 39.542553 | 0.762987 | 0.201238 | 0 | 0.037037 | 0 | 0 | 0.182851 | 0.035468 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.222222 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
aaeff6b2063b9de65c42f6e9f37805c94459bd74 | 2,240 | py | Python | treetopper/_print_console.py | zacharybeebe/treetopper | 9302d9c482eb2209c516c79100be98614666f8c1 | [
"MIT"
] | null | null | null | treetopper/_print_console.py | zacharybeebe/treetopper | 9302d9c482eb2209c516c79100be98614666f8c1 | [
"MIT"
] | null | null | null | treetopper/_print_console.py | zacharybeebe/treetopper | 9302d9c482eb2209c516c79100be98614666f8c1 | [
"MIT"
] | null | null | null | SPACE = 20
def print_stand_species(summary_stand):
formatted = ['STAND METRICS']
for i, row in enumerate(summary_stand):
formatted.append(''.join([j + (' ' * (SPACE - len(j))) for j in row]))
if i == 0 or i == len(summary_stand) - 2:
formatted.append('-' * (SPACE * len(row)))
r... | 36.721311 | 90 | 0.553125 | 265 | 2,240 | 4.558491 | 0.139623 | 0.211093 | 0.082781 | 0.095199 | 0.621689 | 0.562086 | 0.520695 | 0.467715 | 0.467715 | 0.467715 | 0 | 0.007547 | 0.290179 | 2,240 | 60 | 91 | 37.333333 | 0.752201 | 0 | 0 | 0.48 | 0 | 0 | 0.02815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0 | 0 | 0.16 | 0.08 | 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 |
c90181bf3a3ba6f35f0cbec624b7d2e61daf16b2 | 2,669 | tac | Python | hoc5.tac | vzvca/hoc-tcl | f2659f1c991b383a5f1a6c158d82811821701db7 | [
"MIT"
] | null | null | null | hoc5.tac | vzvca/hoc-tcl | f2659f1c991b383a5f1a6c158d82811821701db7 | [
"MIT"
] | null | null | null | hoc5.tac | vzvca/hoc-tcl | f2659f1c991b383a5f1a6c158d82811821701db7 | [
"MIT"
] | null | null | null | # hoc stage 5 from "The Unix Programming Environment"
# (c) 2020 vzvca
%{
#!/usr/bin/tclsh
array set ::mem {
PI 3.14159265358979323846
E 2.7182818284590452354
LN2 0.693147180559945309417
DEG 57.29577951308232087680
PHI 1.611803398874989484820
}
set ::todo {}
proc code { args } {
lappend ... | 21.699187 | 95 | 0.586737 | 348 | 2,669 | 4.474138 | 0.350575 | 0.097624 | 0.038536 | 0.034682 | 0.105973 | 0.033398 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.276133 | 2,669 | 122 | 96 | 21.877049 | 0.740683 | 0.049082 | 0 | 0.040816 | 0 | 0 | 0.014619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c907c28be1f6ca6753f206de09cdd8a645f5e94a | 9,052 | py | Python | src/bluetoothservice.py | javgh/bitpay-brick | 688cb3403111494bba5f453ea681515e03bf43b4 | [
"MIT"
] | 15 | 2016-11-20T15:38:49.000Z | 2021-08-23T02:59:49.000Z | src/bluetoothservice.py | javgh/bitpay-brick | 688cb3403111494bba5f453ea681515e03bf43b4 | [
"MIT"
] | null | null | null | src/bluetoothservice.py | javgh/bitpay-brick | 688cb3403111494bba5f453ea681515e03bf43b4 | [
"MIT"
] | 3 | 2016-11-21T11:57:13.000Z | 2019-03-24T21:12:41.000Z | #!/usr/bin/env python
import binascii
import errno
import requests
import select
import socket
import struct
import threading
import time
import bluetooth._bluetooth as _bt
from bluetooth import *
from Queue import Queue
from paymentrequest_pb2 import PaymentACK, PaymentDetails, PaymentRequest
PAYMENT_REQUESTS_DES... | 33.402214 | 88 | 0.587715 | 977 | 9,052 | 5.157625 | 0.250768 | 0.031752 | 0.015876 | 0.011907 | 0.293511 | 0.235166 | 0.219488 | 0.191705 | 0.176225 | 0.150427 | 0 | 0.019498 | 0.331418 | 9,052 | 270 | 89 | 33.525926 | 0.81312 | 0.045957 | 0 | 0.268657 | 0 | 0 | 0.054824 | 0.015176 | 0 | 0 | 0.002353 | 0 | 0.004975 | 0 | null | null | 0.014925 | 0.059701 | null | null | 0.024876 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c912dc950126755686f6e371ab32ed613b628166 | 6,094 | py | Python | samples/nx-config-rbac.py | jonnyrocks/nxtoolkit | f03872793a31613c3b7498a8d65cfac3080aeee0 | [
"Apache-2.0"
] | 44 | 2015-09-01T19:26:21.000Z | 2022-03-24T18:06:44.000Z | samples/nx-config-rbac.py | jonnyrocks/nxtoolkit | f03872793a31613c3b7498a8d65cfac3080aeee0 | [
"Apache-2.0"
] | 10 | 2015-09-18T13:40:41.000Z | 2018-08-13T19:39:24.000Z | samples/nx-config-rbac.py | jonnyrocks/nxtoolkit | f03872793a31613c3b7498a8d65cfac3080aeee0 | [
"Apache-2.0"
] | 37 | 2015-09-01T19:28:22.000Z | 2020-07-08T19:57:40.000Z | #!/usr/bin/env python
################################################################################
# #
# Copyright (c) 2015 Cisco Systems #
# All Rights Reserved. ... | 37.158537 | 80 | 0.537414 | 695 | 6,094 | 4.602878 | 0.300719 | 0.025008 | 0.022507 | 0.027509 | 0.347921 | 0.294467 | 0.261332 | 0.226946 | 0.213504 | 0.213504 | 0 | 0.026381 | 0.334427 | 6,094 | 164 | 81 | 37.158537 | 0.762327 | 0.302429 | 0 | 0.034483 | 0 | 0 | 0.21411 | 0.080394 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.034483 | 0.034483 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c929b8af551fbc6d183e19bb2053f5f92cbdddc1 | 2,983 | py | Python | mysite/home/views.py | Fish4203/compvas | f5cf6edda34f586ddd4d09b0b2736cbdbc31219e | [
"MIT"
] | null | null | null | mysite/home/views.py | Fish4203/compvas | f5cf6edda34f586ddd4d09b0b2736cbdbc31219e | [
"MIT"
] | 3 | 2021-03-19T03:51:41.000Z | 2021-09-22T19:05:44.000Z | mysite/home/views.py | Fish4203/compvas | f5cf6edda34f586ddd4d09b0b2736cbdbc31219e | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse
#from django.views import generic
from django.utils import timezone
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models impo... | 30.752577 | 75 | 0.664432 | 341 | 2,983 | 5.718475 | 0.252199 | 0.050769 | 0.058462 | 0.070769 | 0.227692 | 0.192821 | 0.133846 | 0.109744 | 0.109744 | 0.055385 | 0 | 0.002595 | 0.224941 | 2,983 | 96 | 76 | 31.072917 | 0.84083 | 0.062353 | 0 | 0.285714 | 0 | 0 | 0.179211 | 0.015054 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.063492 | 0.111111 | 0 | 0.380952 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c92e47995faf86fa0683192a83aeaef11f89904c | 1,101 | py | Python | scripts/check-travis.py | datawire/mdk | 8b4ad9aa1e3602f4ec7f3bdd5f2c22abcfe81463 | [
"Apache-2.0"
] | 69 | 2016-07-03T18:42:18.000Z | 2020-09-08T10:36:31.000Z | scripts/check-travis.py | datawire/mdk | 8b4ad9aa1e3602f4ec7f3bdd5f2c22abcfe81463 | [
"Apache-2.0"
] | 27 | 2016-06-23T18:32:05.000Z | 2016-12-12T15:59:28.000Z | scripts/check-travis.py | datawire/mdk | 8b4ad9aa1e3602f4ec7f3bdd5f2c22abcfe81463 | [
"Apache-2.0"
] | 8 | 2016-07-13T16:20:57.000Z | 2019-10-06T08:10:49.000Z | """
Ensure builds passed on Travis for current commit.
Because TravisPy is GPLv3 licensed this is a standalone program, the only
program that includes TravisPy in this repository and therefore only thing in
repository that is GPLv3 too.
"""
from subprocess import check_output
from travispy import TravisPy
def error... | 28.230769 | 83 | 0.609446 | 138 | 1,101 | 4.768116 | 0.528986 | 0.066869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002574 | 0.294278 | 1,101 | 38 | 84 | 28.973684 | 0.844273 | 0.247956 | 0 | 0 | 0 | 0 | 0.240491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.227273 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c936ddae2658d5136f2038b9b43bd9855a9d6a1a | 6,032 | py | Python | lernomatic/models/common.py | stfnwong/lernomatic | 2cd7506c04c4e2afca22b7c05ebb0cc94f8048d9 | [
"MIT"
] | null | null | null | lernomatic/models/common.py | stfnwong/lernomatic | 2cd7506c04c4e2afca22b7c05ebb0cc94f8048d9 | [
"MIT"
] | null | null | null | lernomatic/models/common.py | stfnwong/lernomatic | 2cd7506c04c4e2afca22b7c05ebb0cc94f8048d9 | [
"MIT"
] | null | null | null | """
COMMON
Contains definitions for base model classes in this library
Stefan Wong 2018
"""
import torch
import importlib
class LernomaticModel(object):
"""
LERNOMATICMODEL
Base class for models in Lernomatic.
This object wraps a torch.nn.Module. Its main purpose is to provide a consistent
inte... | 33.142857 | 102 | 0.595159 | 761 | 6,032 | 4.528252 | 0.170828 | 0.052815 | 0.046431 | 0.019153 | 0.385665 | 0.27336 | 0.241439 | 0.241439 | 0.230702 | 0.230702 | 0 | 0.001666 | 0.303382 | 6,032 | 181 | 103 | 33.325967 | 0.81842 | 0.151194 | 0 | 0.259259 | 0 | 0 | 0.113585 | 0.004741 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.12963 | 0.046296 | 0.462963 | 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 |
c94657d9f0d77254af6a1d4a3628602524e34256 | 3,306 | py | Python | src/Shortcuts.py | myhumankit/ESP32_IDE_accessible | 5262a5dd106f3f52a374a6c1ef68ff53d8847001 | [
"MIT"
] | 1 | 2020-07-27T19:32:56.000Z | 2020-07-27T19:32:56.000Z | src/Shortcuts.py | myhumankit/Blind_IDE | 5262a5dd106f3f52a374a6c1ef68ff53d8847001 | [
"MIT"
] | null | null | null | src/Shortcuts.py | myhumankit/Blind_IDE | 5262a5dd106f3f52a374a6c1ef68ff53d8847001 | [
"MIT"
] | null | null | null | """
Contains functions to manage shortcuts
"""
import wx
wx.ID_VOCAL = wx.NewId()
wx.ID_EDITOR_FOCUS = wx.NewId()
wx.ID_SHELL_FOCUS = wx.NewId()
wx.ID_TREE_FOCUS = wx.NewId()
def InitF6(frame):
"""F6 to navigate between regions
:param frame: see InitShorcuts->param
:type frame: idem
:return: ent... | 29 | 83 | 0.637326 | 434 | 3,306 | 4.714286 | 0.195853 | 0.035191 | 0.044477 | 0.085533 | 0.608504 | 0.580156 | 0.530792 | 0.48827 | 0.48827 | 0.48827 | 0 | 0.01295 | 0.252571 | 3,306 | 113 | 84 | 29.256637 | 0.815055 | 0.403206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.027027 | 0 | 0.432432 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9490c46e578ffe84e356da906cfbf5a3ef7a5ed | 89,563 | py | Python | Subsystems/cmdGui/CommandSystemDialog.py | METECS/cFS-GroundSystem | c982339402d4da3ea6f645ffa38280f7bef61d07 | [
"Apache-2.0"
] | 1 | 2016-05-09T13:07:16.000Z | 2016-05-09T13:07:16.000Z | Subsystems/cmdGui/CommandSystemDialog.py | METECS/cFS-GroundSystem | c982339402d4da3ea6f645ffa38280f7bef61d07 | [
"Apache-2.0"
] | null | null | null | Subsystems/cmdGui/CommandSystemDialog.py | METECS/cFS-GroundSystem | c982339402d4da3ea6f645ffa38280f7bef61d07 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CommandSystemDialog.ui'
#
# Created: Fri Jun 19 20:08:08 2015
# by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
e... | 64.900725 | 128 | 0.753659 | 8,715 | 89,563 | 7.580034 | 0.022031 | 0.086225 | 0.073433 | 0.046049 | 0.657039 | 0.641341 | 0.559461 | 0.400848 | 0.380503 | 0.379503 | 0 | 0.046364 | 0.14774 | 89,563 | 1,379 | 129 | 64.947788 | 0.819077 | 0.002501 | 0 | 0.255507 | 1 | 0 | 0.033695 | 0.000549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003671 | false | 0 | 0.001468 | 0.002203 | 0.008076 | 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 |
c94cca8ce68bc579da931090fdce3730e31c3cf5 | 11,253 | py | Python | src/sensory_cloud/services/video_service.py | Sensory-Cloud/python-sdk | 1457987481a7fbddaa6dff6b5b935c1a2c0d7213 | [
"Apache-2.0"
] | 2 | 2022-01-11T21:49:33.000Z | 2022-02-15T23:53:41.000Z | src/sensory_cloud/services/video_service.py | Sensory-Cloud/python-sdk | 1457987481a7fbddaa6dff6b5b935c1a2c0d7213 | [
"Apache-2.0"
] | null | null | null | src/sensory_cloud/services/video_service.py | Sensory-Cloud/python-sdk | 1457987481a7fbddaa6dff6b5b935c1a2c0d7213 | [
"Apache-2.0"
] | null | null | null | import typing
from enum import Enum
from sensory_cloud.config import Config
from sensory_cloud.token_manager import ITokenManager, Metadata
import sensory_cloud.generated.v1.video.video_pb2_grpc as video_pb2_grpc
import sensory_cloud.generated.v1.video.video_pb2 as video_pb2
class VideoRequest(Enum):
video_pb2.... | 37.138614 | 127 | 0.684973 | 1,099 | 11,253 | 6.760692 | 0.160146 | 0.051682 | 0.053701 | 0.023688 | 0.550471 | 0.504172 | 0.480215 | 0.459489 | 0.431898 | 0.410363 | 0 | 0.006269 | 0.262863 | 11,253 | 302 | 128 | 37.261589 | 0.889451 | 0.310051 | 0 | 0.421687 | 1 | 0 | 0.002233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054217 | false | 0 | 0.036145 | 0.006024 | 0.168675 | 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 |
c94d70532994e82e9986e9ae0a2765b28530c4c4 | 1,549 | py | Python | namestyle/namestyle_test.py | Cologler/namestyle-python | 7faf8250b6aef0ec7bc819702d82470c42797a3d | [
"MIT"
] | null | null | null | namestyle/namestyle_test.py | Cologler/namestyle-python | 7faf8250b6aef0ec7bc819702d82470c42797a3d | [
"MIT"
] | null | null | null | namestyle/namestyle_test.py | Cologler/namestyle-python | 7faf8250b6aef0ec7bc819702d82470c42797a3d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 - cologler <skyoflw@gmail.com>
# ----------
#
# ----------
import os
import sys
import traceback
import unittest
from namestyle_impl import (Sentence, Style)
class Test_DoWhatEverYourWant(unittest.TestCase):
@property
def pascal(self): ret... | 23.830769 | 81 | 0.641704 | 192 | 1,549 | 5.052083 | 0.302083 | 0.11134 | 0.06701 | 0.087629 | 0.336082 | 0.25567 | 0.230928 | 0.173196 | 0.173196 | 0 | 0 | 0.004149 | 0.222079 | 1,549 | 64 | 82 | 24.203125 | 0.80083 | 0.073596 | 0 | 0.190476 | 0 | 0 | 0.07423 | 0.015406 | 0 | 0 | 0 | 0 | 0.119048 | 1 | 0.238095 | false | 0 | 0.119048 | 0.095238 | 0.380952 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c950b0ced497292e7fb7cf967c31f7edba581273 | 311 | py | Python | codeforces/cdf400_a.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | codeforces/cdf400_a.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | codeforces/cdf400_a.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | S = input().split()
N = int(input())
print(*S)
for _ in range(N):
next_S = input().split()
for i in range(4):
p = i // 2
q = i % 2
if S[p] == next_S[q]:
next_S[q] = S[p^1]
S = next_S
print(*S)
break
else:
assert(False)
| 19.4375 | 30 | 0.405145 | 48 | 311 | 2.520833 | 0.4375 | 0.165289 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022599 | 0.430868 | 311 | 15 | 31 | 20.733333 | 0.661017 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9559a7374a126f2410b0ec082c4025e0aca52a1 | 1,587 | py | Python | oo/pessoa.py | rennanlima/pythonbirds | 5ef010a1ccf49b965aa216545e538977c36e1ad5 | [
"MIT"
] | null | null | null | oo/pessoa.py | rennanlima/pythonbirds | 5ef010a1ccf49b965aa216545e538977c36e1ad5 | [
"MIT"
] | null | null | null | oo/pessoa.py | rennanlima/pythonbirds | 5ef010a1ccf49b965aa216545e538977c36e1ad5 | [
"MIT"
] | null | null | null | class Pessoa:
olhos=2
def __init__(self, *filhos, nome=None, idade=23):
self.idade = idade
self.nome = nome
self.filhos = list(filhos)
def cumprimentar(self):
return f'Olá, meu nome é {self.nome}'
@staticmethod
def metodo_estatico():
return 42
@classme... | 27.362069 | 83 | 0.669187 | 192 | 1,587 | 5.328125 | 0.276042 | 0.064516 | 0.041056 | 0.046921 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005578 | 0.2092 | 1,587 | 57 | 84 | 27.842105 | 0.809562 | 0 | 0 | 0.081633 | 0 | 0 | 0.078135 | 0.015753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0 | 0.061224 | 0.285714 | 0.408163 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c962f938c8a26f32ccec5a9312869d64ae8bde5c | 7,194 | py | Python | UI/featureUI.py | YongLiuLab/BrainRadiomicsTools | 19b440acd554ee920857c306442b6d2c411dca88 | [
"Apache-2.0",
"BSD-3-Clause"
] | 10 | 2019-09-26T03:12:52.000Z | 2022-02-25T06:05:38.000Z | UI/featureUI.py | YongLiuLab/BrainRadiomicsTools | 19b440acd554ee920857c306442b6d2c411dca88 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | UI/featureUI.py | YongLiuLab/BrainRadiomicsTools | 19b440acd554ee920857c306442b6d2c411dca88 | [
"Apache-2.0",
"BSD-3-Clause"
] | 8 | 2020-02-26T01:54:48.000Z | 2022-03-19T01:23:55.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'feature.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Feature(object):
def setupUi(self, Feature):
Feature.setObj... | 50.661972 | 100 | 0.705171 | 750 | 7,194 | 6.664 | 0.165333 | 0.136054 | 0.059824 | 0.022009 | 0.335334 | 0.189876 | 0.127451 | 0.097039 | 0.061625 | 0.061625 | 0 | 0.040903 | 0.180984 | 7,194 | 141 | 101 | 51.021277 | 0.807366 | 0.02516 | 0 | 0.069767 | 1 | 0 | 0.072948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015504 | false | 0 | 0.007752 | 0 | 0.031008 | 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 |
c9633cd511086cec969cb48f606e00352eec541d | 1,808 | py | Python | experiments/5_grst/subspace_tracking_static_incomplete/subspace_tracking_static_incomplete.py | clemenshage/grslra | 00f61b4ef08208d12e8e803d10f8ebbe16d8614a | [
"MIT"
] | null | null | null | experiments/5_grst/subspace_tracking_static_incomplete/subspace_tracking_static_incomplete.py | clemenshage/grslra | 00f61b4ef08208d12e8e803d10f8ebbe16d8614a | [
"MIT"
] | null | null | null | experiments/5_grst/subspace_tracking_static_incomplete/subspace_tracking_static_incomplete.py | clemenshage/grslra | 00f61b4ef08208d12e8e803d10f8ebbe16d8614a | [
"MIT"
] | null | null | null | import numpy as np
import grslra
from grslra.visualization import plot_lpnorm
from grslra.scaling import Scaling
from matplotlib import pyplot as plt
from grslra.grst import grst
from sys import argv
PROFILE = 0
if PROFILE:
import cProfile
m = 500
n = 5000
k = 5
omegasquared = 1e-5
rate_Omega = 0.1
rho = 0.1
... | 28.698413 | 239 | 0.658739 | 313 | 1,808 | 3.594249 | 0.313099 | 0.064 | 0.048 | 0.053333 | 0.178667 | 0.131556 | 0.120889 | 0 | 0 | 0 | 0 | 0.041752 | 0.191925 | 1,808 | 63 | 240 | 28.698413 | 0.728268 | 0.013274 | 0 | 0.065217 | 0 | 0 | 0.06562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.173913 | null | null | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c96c7cb37a7a5766cc0650fa3f964b3de3567e8a | 562 | py | Python | create_input_files.py | iamownt/a-PyTorch-Tutorial-to-Image-Captioning | 0f9cb2d9a991d9427b1eafffd4489cb7c6e3a011 | [
"MIT"
] | null | null | null | create_input_files.py | iamownt/a-PyTorch-Tutorial-to-Image-Captioning | 0f9cb2d9a991d9427b1eafffd4489cb7c6e3a011 | [
"MIT"
] | null | null | null | create_input_files.py | iamownt/a-PyTorch-Tutorial-to-Image-Captioning | 0f9cb2d9a991d9427b1eafffd4489cb7c6e3a011 | [
"MIT"
] | null | null | null | from utils import create_input_files
if __name__ == '__main__':
# Create input files (along with word map)
create_input_files(dataset='flickr8k',
karpathy_json_path=r"D:\Users\wt\Downloads\caption_datasets\dataset_flickr8k.json",
image_folder=r"D:\Users\wt\Download... | 46.833333 | 106 | 0.606762 | 66 | 562 | 4.787879 | 0.575758 | 0.10443 | 0.151899 | 0.085443 | 0.28481 | 0.227848 | 0.227848 | 0.227848 | 0 | 0 | 0 | 0.017857 | 0.302491 | 562 | 11 | 107 | 51.090909 | 0.788265 | 0.071174 | 0 | 0 | 0 | 0 | 0.332692 | 0.301923 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c96ce89127175e2b9ecde2936b0fbb88024ff0eb | 351 | py | Python | backendapi/posts/migrations/0002_auto_20220212_1739.py | fredblade/Pictogram | d5cc4a25f28b6d80facf51fa9528e8ff969f7c46 | [
"MIT"
] | null | null | null | backendapi/posts/migrations/0002_auto_20220212_1739.py | fredblade/Pictogram | d5cc4a25f28b6d80facf51fa9528e8ff969f7c46 | [
"MIT"
] | null | null | null | backendapi/posts/migrations/0002_auto_20220212_1739.py | fredblade/Pictogram | d5cc4a25f28b6d80facf51fa9528e8ff969f7c46 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2022-02-12 17:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='postitem',
old_name='user',
new_na... | 18.473684 | 47 | 0.569801 | 38 | 351 | 5.131579 | 0.815789 | 0.082051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078838 | 0.31339 | 351 | 18 | 48 | 19.5 | 0.73029 | 0.128205 | 0 | 0 | 1 | 0 | 0.118421 | 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 |
c96f41ab2a49fa740cc99239942ac5a8736c3bf8 | 1,653 | py | Python | Doga/interfaces/sockets.py | pravj/Doga | 903323e555002ab181d2fa4dca303d099f3e04c8 | [
"MIT"
] | 53 | 2015-01-06T10:27:05.000Z | 2021-11-16T12:12:38.000Z | Doga/interfaces/sockets.py | pravj/Doga | 903323e555002ab181d2fa4dca303d099f3e04c8 | [
"MIT"
] | null | null | null | Doga/interfaces/sockets.py | pravj/Doga | 903323e555002ab181d2fa4dca303d099f3e04c8 | [
"MIT"
] | 8 | 2015-01-13T00:05:10.000Z | 2017-05-21T13:00:39.000Z | # -*- coding: utf-8 -*-
"""
Doga.interfaces.sockets
This module does some Socket related tasks for Doga.
"""
import sys
import socket
import struct
from ..config.configer import value
class SocketInterface:
def __init__(self, packet_parser):
self.ip = self.ipv4()
self.raw_socket = None
... | 23.956522 | 77 | 0.597701 | 198 | 1,653 | 4.863636 | 0.449495 | 0.065421 | 0.049844 | 0.03946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.30127 | 1,653 | 68 | 78 | 24.308824 | 0.814719 | 0.040532 | 0 | 0.121212 | 0 | 0 | 0.047741 | 0 | 0 | 0 | 0.005115 | 0 | 0 | 0 | null | null | 0 | 0.121212 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c9724e8cf8fece63517fd253f9dfd0a8b7cc26df | 3,956 | py | Python | sigma_graph/envs/figure8/rewards/rewards_simple.py | o101010o/Figure8Squad | b8ce8022d7998b3252781acf7961d0bbd79c7647 | [
"MIT"
] | 2 | 2021-05-05T19:48:49.000Z | 2021-05-06T23:45:01.000Z | sigma_graph/envs/figure8/rewards/rewards_simple.py | o101010o/Figure8Squad | b8ce8022d7998b3252781acf7961d0bbd79c7647 | [
"MIT"
] | null | null | null | sigma_graph/envs/figure8/rewards/rewards_simple.py | o101010o/Figure8Squad | b8ce8022d7998b3252781acf7961d0bbd79c7647 | [
"MIT"
] | 3 | 2021-05-14T17:30:41.000Z | 2022-03-10T08:28:27.000Z | from math import ceil
# default hyper-parameters for rewards
DEFAULT_REWARDS = {
"step": {"reward_step_on": True, "red_2_blue": 4, "blue_2_red": -3, "red_overlay": -2, },
"episode": {
"reward_episode_on": True, "episode_decay_soft": True,
"health_lookup": {"type": "table", "reward": [32,... | 40.367347 | 108 | 0.655207 | 522 | 3,956 | 4.630268 | 0.224138 | 0.064543 | 0.026479 | 0.038064 | 0.189491 | 0.139015 | 0.139015 | 0.113364 | 0.050476 | 0.050476 | 0 | 0.017224 | 0.236855 | 3,956 | 97 | 109 | 40.783505 | 0.783372 | 0.125632 | 0 | 0.179104 | 0 | 0 | 0.173731 | 0 | 0 | 0 | 0 | 0.010309 | 0.074627 | 1 | 0.104478 | false | 0 | 0.014925 | 0 | 0.238806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c97588f893430172088fb445c1d5dfad4fe67586 | 1,485 | py | Python | block_test.py | kalafut/go-ledger | 28a625e31d460e0ac2926c53a30f47f159d2b82f | [
"MIT"
] | null | null | null | block_test.py | kalafut/go-ledger | 28a625e31d460e0ac2926c53a30f47f159d2b82f | [
"MIT"
] | 2 | 2015-11-08T18:50:11.000Z | 2015-11-08T18:50:42.000Z | block_test.py | kalafut/go-ledger | 28a625e31d460e0ac2926c53a30f47f159d2b82f | [
"MIT"
] | null | null | null | from datetime import date
import block
import pytest
def test_parse():
sample = """
2006/10/15 McDonald's
Expenses:Dining $5.36
Assets:Checking
2007/01/01 * Burger King
Expenses:Dining $5.36
Assets:Checking
Extra
Stuff
2013/01/01
Bank $10
Credit -$10
"""
blo... | 23.571429 | 61 | 0.608754 | 209 | 1,485 | 4.30622 | 0.30622 | 0.2 | 0.115556 | 0.093333 | 0.213333 | 0.115556 | 0 | 0 | 0 | 0 | 0 | 0.085765 | 0.238384 | 1,485 | 62 | 62 | 23.951613 | 0.709991 | 0 | 0 | 0.088889 | 0 | 0 | 0.219677 | 0.014825 | 0 | 0 | 0 | 0 | 0.488889 | 1 | 0.044444 | false | 0 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c979cc7670ad9dfd4f48c2735fa3ab17ca110f7e | 2,560 | py | Python | sshpipe/sshpipe/bin/sshpipe_socket_handler.py | Acrisel/sshpipe | b809b151588b315720dd9c4b623592c02e041457 | [
"BSD-3-Clause"
] | null | null | null | sshpipe/sshpipe/bin/sshpipe_socket_handler.py | Acrisel/sshpipe | b809b151588b315720dd9c4b623592c02e041457 | [
"BSD-3-Clause"
] | null | null | null | sshpipe/sshpipe/bin/sshpipe_socket_handler.py | Acrisel/sshpipe | b809b151588b315720dd9c4b623592c02e041457 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
'''
Created on Oct 18, 2017
@author: arnon
'''
from sshpipe import SSHPipeHandler
import logging
from logging.handlers import SocketHandler
import pickle
import struct
mlogger = logging.getLogger(__file__)
class SSHPipeSocketHandler(SSHPipeHandler, SocketHandler):
''' SSHPipeSocketHandle... | 29.090909 | 89 | 0.625781 | 300 | 2,560 | 5.213333 | 0.47 | 0.028133 | 0.040921 | 0.029412 | 0.043478 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.25 | 2,560 | 87 | 90 | 29.425287 | 0.804167 | 0.262891 | 0 | 0.045455 | 0 | 0 | 0.069119 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.340909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c98674b35be615265d1628eccc29789b4251cdd0 | 1,886 | py | Python | server/migrations/versions/161cc8ae4819_.py | uptownnickbrown/metaseq | fc6853640921ca4853b3d4ed3d3354855983db11 | [
"MIT"
] | 7 | 2017-03-27T09:57:55.000Z | 2018-06-09T17:44:31.000Z | server/migrations/versions/161cc8ae4819_.py | uptownnickbrown/metaseq | fc6853640921ca4853b3d4ed3d3354855983db11 | [
"MIT"
] | 4 | 2019-06-05T15:07:49.000Z | 2021-12-13T19:46:40.000Z | server/migrations/versions/161cc8ae4819_.py | uptownnickbrown/metaseq | fc6853640921ca4853b3d4ed3d3354855983db11 | [
"MIT"
] | 1 | 2019-01-28T07:02:25.000Z | 2019-01-28T07:02:25.000Z | """empty message
Revision ID: 161cc8ae4819
Revises: 9b059ec9b083
Create Date: 2017-06-29 21:07:17.415634
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '161cc8ae4819'
down_revision = '9b059ec9b083'
branch_labels = None
depe... | 31.966102 | 65 | 0.596501 | 197 | 1,886 | 5.51269 | 0.319797 | 0.051565 | 0.095764 | 0.110497 | 0.700737 | 0.700737 | 0.567219 | 0.528545 | 0.474217 | 0.474217 | 0 | 0.03997 | 0.283669 | 1,886 | 58 | 66 | 32.517241 | 0.763879 | 0.156416 | 0 | 0.634146 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.073171 | 0 | 0.121951 | 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 |
a30c4ff88e6020ba7b6121e00e1ffb77f192b0ac | 1,559 | py | Python | parseBGoffice.py | ClashTheBunny/ankiCards | 82a288b274047ee5407a4bf22ebf857178c94972 | [
"Apache-2.0"
] | 7 | 2017-07-27T14:29:12.000Z | 2022-02-13T02:24:16.000Z | parseBGoffice.py | ClashTheBunny/ankiCards | 82a288b274047ee5407a4bf22ebf857178c94972 | [
"Apache-2.0"
] | null | null | null | parseBGoffice.py | ClashTheBunny/ankiCards | 82a288b274047ee5407a4bf22ebf857178c94972 | [
"Apache-2.0"
] | 1 | 2021-01-23T15:21:32.000Z | 2021-01-23T15:21:32.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
def parse(dat):
endingsRE = re.compile("^Окончания:$")
formiRE = re.compile("^Форми:$")
testRE = re.compile("^Тест:$")
blankRE = re.compile("^$")
desc = (os.path.split(dat)[0], u'description.dat')
datfh = open(dat, 'rb')
des... | 33.170213 | 107 | 0.536241 | 180 | 1,559 | 4.6 | 0.383333 | 0.043478 | 0.048309 | 0.061594 | 0.050725 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011374 | 0.323284 | 1,559 | 46 | 108 | 33.891304 | 0.77346 | 0.087235 | 0 | 0.170732 | 0 | 0 | 0.116197 | 0.023239 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04878 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a30f7686d331f858a29e53138e94eecb9e436037 | 772 | py | Python | user.py | umutonij/Password-Locker | 522c02697d3568f8e4ec5965d5879d7716c21aa4 | [
"MIT"
] | null | null | null | user.py | umutonij/Password-Locker | 522c02697d3568f8e4ec5965d5879d7716c21aa4 | [
"MIT"
] | null | null | null | user.py | umutonij/Password-Locker | 522c02697d3568f8e4ec5965d5879d7716c21aa4 | [
"MIT"
] | null | null | null | class User:
"""
class that generates new instances of user
"""
user_list=[]
def __init__(self,first_name,last_name,create_pw,confirm_pw):
'''
__init__ method that helps us define properties for our objects.
Args:
first_name: New user first name.
... | 26.62069 | 72 | 0.586788 | 97 | 772 | 4.360825 | 0.329897 | 0.106383 | 0.085106 | 0.080378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.339378 | 772 | 29 | 73 | 26.62069 | 0.829412 | 0.408031 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a31acff951985df47b56aadd443dac12eb13404e | 1,364 | py | Python | etcdstat/memory.py | thingswise/tw-etcdstat | ecbc42f6b29baba6f4c6c1ba0eee873fab761663 | [
"Apache-2.0"
] | null | null | null | etcdstat/memory.py | thingswise/tw-etcdstat | ecbc42f6b29baba6f4c6c1ba0eee873fab761663 | [
"Apache-2.0"
] | 3 | 2020-03-27T10:24:42.000Z | 2021-09-20T16:08:05.000Z | etcdstat/memory.py | thingswise/tw-etcdstat | ecbc42f6b29baba6f4c6c1ba0eee873fab761663 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Thingswise, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 34.1 | 76 | 0.653959 | 172 | 1,364 | 5.098837 | 0.52907 | 0.068415 | 0.047891 | 0.075257 | 0.127708 | 0.095781 | 0.095781 | 0.095781 | 0 | 0 | 0 | 0.008832 | 0.252933 | 1,364 | 40 | 77 | 34.1 | 0.851816 | 0.52346 | 0 | 0.176471 | 0 | 0 | 0.143089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0.058824 | 0.529412 | 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 |
a3258fa7b31485782734023b8a78dc3fb5c23619 | 1,414 | py | Python | plugin_msi.py | bidhata/maldissect | b09cca953342657ada9ff4644013d449c52646e6 | [
"Apache-2.0"
] | null | null | null | plugin_msi.py | bidhata/maldissect | b09cca953342657ada9ff4644013d449c52646e6 | [
"Apache-2.0"
] | null | null | null | plugin_msi.py | bidhata/maldissect | b09cca953342657ada9ff4644013d449c52646e6 | [
"Apache-2.0"
] | 1 | 2020-09-17T23:17:16.000Z | 2020-09-17T23:17:16.000Z | #!/usr/bin/env python
__description__ = 'msi plugin for oledump.py'
__author__ = 'Didier Stevens'
__version__ = '0.0.1'
__date__ = '2018/02/18'
"""
Source code put in public domain by Didier Stevens, no Copyright
https://DidierStevens.com
Use at your own risk
History:
2018/02/18: start
Todo:
"""
import binascii... | 26.679245 | 275 | 0.644979 | 179 | 1,414 | 4.977654 | 0.564246 | 0.040404 | 0.017957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.21075 | 1,414 | 52 | 276 | 27.192308 | 0.715054 | 0.063649 | 0 | 0 | 0 | 0 | 0.12618 | 0.055794 | 0 | 0 | 0.042918 | 0.019231 | 0 | 1 | 0.103448 | false | 0 | 0.068966 | 0 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a337fc67c33a5ef7abefa8b48cb0397c9562236b | 1,727 | py | Python | bin/buffer.py | kant/ridership | 144ec7831bf55644f47dae1f7b6446bc7156d9e3 | [
"MIT"
] | null | null | null | bin/buffer.py | kant/ridership | 144ec7831bf55644f47dae1f7b6446bc7156d9e3 | [
"MIT"
] | null | null | null | bin/buffer.py | kant/ridership | 144ec7831bf55644f47dae1f7b6446bc7156d9e3 | [
"MIT"
] | null | null | null | #%%
import os
import geopandas as gp
dists = [402.34, 804.67, 1609.34]
#%%
stops = gp.read_file('data/output/stops.geojson')
hf = stops[stops['high_frequency'] == True].to_crs(epsg=3395)
b250 = gp.GeoDataFrame(
gp.GeoSeries(hf.buffer(402.34))
).rename(columns={0:'geometry'}).set_geometry('geometry')
i250 = b250.... | 25.028986 | 165 | 0.613202 | 240 | 1,727 | 4.320833 | 0.4125 | 0.072324 | 0.031823 | 0.072324 | 0.217936 | 0.217936 | 0.122469 | 0.082932 | 0 | 0 | 0 | 0.085231 | 0.211928 | 1,727 | 68 | 166 | 25.397059 | 0.676708 | 0.004632 | 0 | 0.055556 | 0 | 0.018519 | 0.190671 | 0.062391 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a341f5ee31a822a7ed59cde21250c3cbd125b62b | 696 | py | Python | tests/test_filename_substitution/test_plain/test_plain.py | balsa-sarenac/textX-jinja | 4c67428cd447b0205139898d8f5e2331d9eb4216 | [
"MIT"
] | null | null | null | tests/test_filename_substitution/test_plain/test_plain.py | balsa-sarenac/textX-jinja | 4c67428cd447b0205139898d8f5e2331d9eb4216 | [
"MIT"
] | 3 | 2021-04-08T13:33:38.000Z | 2021-06-06T09:09:47.000Z | tests/test_filename_substitution/test_plain/test_plain.py | balsa-sarenac/textX-jinja | 4c67428cd447b0205139898d8f5e2331d9eb4216 | [
"MIT"
] | 1 | 2021-04-02T07:20:36.000Z | 2021-04-02T07:20:36.000Z | """
Test plain variable substitution in file names
"""
import os
import shutil
from textxjinja import textx_jinja_generator
def test_basic():
this_folder = os.path.dirname(__file__)
template_folder = os.path.join(this_folder, 'templates')
output_folder = os.path.join(this_folder, 'output')
# Remove o... | 24 | 82 | 0.708333 | 86 | 696 | 5.511628 | 0.5 | 0.063291 | 0.075949 | 0.067511 | 0.109705 | 0.109705 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195402 | 696 | 28 | 83 | 24.857143 | 0.846429 | 0.166667 | 0 | 0 | 0 | 0 | 0.093146 | 0.042179 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0.066667 | 0.2 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a359b48380f0711b9c176435fb21a6925ee241e1 | 2,093 | py | Python | sample_contract/tests/passwordless/test_passwordless_unit.py | startled-cat/two-factor-over-blockchain | 2621eef2449b58b728fbb2b0b1ca910be397acf5 | [
"MIT"
] | 1 | 2022-03-31T16:35:05.000Z | 2022-03-31T16:35:05.000Z | sample_contract/tests/passwordless/test_passwordless_unit.py | startled-cat/two-factor-over-blockchain | 2621eef2449b58b728fbb2b0b1ca910be397acf5 | [
"MIT"
] | null | null | null | sample_contract/tests/passwordless/test_passwordless_unit.py | startled-cat/two-factor-over-blockchain | 2621eef2449b58b728fbb2b0b1ca910be397acf5 | [
"MIT"
] | null | null | null | from brownie import network, config, PasswordlessAuthentication
from scripts.utils import get_account, is_network_local
from scripts.passwordless.deploy import deploy
import pytest
def test_passwordlessDeployment():
if not is_network_local():
pytest.skip("Only for unit testing")
contract = deploy()
... | 31.712121 | 74 | 0.710463 | 237 | 2,093 | 6.164557 | 0.172996 | 0.061602 | 0.057495 | 0.143737 | 0.732375 | 0.594114 | 0.586585 | 0.536619 | 0.521561 | 0.521561 | 0 | 0.035067 | 0.182513 | 2,093 | 65 | 75 | 32.2 | 0.818819 | 0.059723 | 0 | 0.625 | 0 | 0 | 0.061578 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.104167 | false | 0.0625 | 0.083333 | 0 | 0.1875 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a35aa3a3175749e2b2b220f19d248d480a21442d | 933 | py | Python | heron/bots/helpers/nlp_utils.py | thetomcraig/HERON | 11dc5e3c4bcffde200866c108574a950cef7f944 | [
"MIT"
] | 3 | 2018-02-24T22:17:40.000Z | 2021-05-18T21:29:17.000Z | heron/bots/helpers/nlp_utils.py | thetomcraig/HERON | 11dc5e3c4bcffde200866c108574a950cef7f944 | [
"MIT"
] | 16 | 2020-06-05T17:29:38.000Z | 2021-09-19T19:54:54.000Z | heron/bots/helpers/nlp_utils.py | thetomcraig/HERON | 11dc5e3c4bcffde200866c108574a950cef7f944 | [
"MIT"
] | null | null | null | """
Utilities for NLP related analysis
"""
from django.conf import settings
def determine_tweet_emotion(keywords_data, entities_data):
list_to_analyze = []
if not len(entities_data):
if not len(keywords_data):
# Both lists empty
return ""
# Just entitity list empty; ana... | 31.1 | 84 | 0.698821 | 131 | 933 | 4.732824 | 0.442748 | 0.048387 | 0.104839 | 0.041935 | 0.16129 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0.002837 | 0.244373 | 933 | 29 | 85 | 32.172414 | 0.876596 | 0.280815 | 0 | 0.133333 | 0 | 0 | 0.011254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a35d51ce330c312c688e2d82acb5b326c021d2bf | 728 | py | Python | src/timeit.py | chris2013/pydupe | be8fd2dd2a905899e376be4e0b3d2fc8482e89e6 | [
"MIT"
] | null | null | null | src/timeit.py | chris2013/pydupe | be8fd2dd2a905899e376be4e0b3d2fc8482e89e6 | [
"MIT"
] | 3 | 2022-01-28T15:54:54.000Z | 2022-01-28T15:58:23.000Z | src/timeit.py | chris2013/pydupe | be8fd2dd2a905899e376be4e0b3d2fc8482e89e6 | [
"MIT"
] | null | null | null | import time
import subprocess
start_time = time.time()
cmd= ['pydupe','dd', '/home/chris/Pictures/']
sub = subprocess.Popen(cmd, text=True, stdout=subprocess.PIPE, stderr = subprocess.PIPE)
stdout, stderr = sub.communicate()
print("--- %s seconds ---" % (time.time() - start_time))
# HASH:
# ~/Pictures/ :
# SET: --- ... | 25.103448 | 88 | 0.652473 | 80 | 728 | 5.9125 | 0.5125 | 0.10148 | 0.054968 | 0.080338 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216693 | 0.144231 | 728 | 28 | 89 | 26 | 0.542536 | 0.561813 | 0 | 0 | 0 | 0 | 0.155629 | 0.069536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
a362914b1fd82a414707c408a85cff1baa49b444 | 6,143 | py | Python | generate.py | XinyuHua/dyploc-acl2021 | fe2c904c86fda4e42f57ed782fd151411a4dfe9c | [
"MIT"
] | 4 | 2021-07-07T03:42:55.000Z | 2022-02-22T07:50:46.000Z | generate.py | XinyuHua/dyploc-acl2021 | fe2c904c86fda4e42f57ed782fd151411a4dfe9c | [
"MIT"
] | 1 | 2021-08-21T17:39:21.000Z | 2021-08-21T17:39:21.000Z | generate.py | XinyuHua/dyploc-acl2021 | fe2c904c86fda4e42f57ed782fd151411a4dfe9c | [
"MIT"
] | null | null | null | import json
import time
from tqdm import tqdm
import utils
import argparse
from system import TextGenerationTrainer
def generate():
parser = argparse.ArgumentParser()
parser.add_argument("--exp-name", type=str)
parser.add_argument("--dataset-name", type=str, choices=["cmv", "nyt_opinion"], required=True)
... | 44.839416 | 226 | 0.65652 | 817 | 6,143 | 4.681763 | 0.228886 | 0.065882 | 0.124444 | 0.038431 | 0.265098 | 0.253072 | 0.218301 | 0.129935 | 0.120784 | 0.075817 | 0 | 0.007813 | 0.208204 | 6,143 | 136 | 227 | 45.169118 | 0.778577 | 0.019046 | 0 | 0.017094 | 1 | 0.017094 | 0.210561 | 0.075224 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008547 | false | 0 | 0.051282 | 0 | 0.059829 | 0.042735 | 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 |
a369b1ff519a9d77cbfe125d368ebb1f4570cbd5 | 6,340 | py | Python | examples/rl/train/evaluation.py | ONLYA/RoboGrammar | 4b9725739b24dc9df4049866c177db788b1e458f | [
"MIT"
] | 156 | 2020-10-02T14:33:22.000Z | 2022-03-17T22:30:30.000Z | examples/rl/train/evaluation.py | ONLYA/RoboGrammar | 4b9725739b24dc9df4049866c177db788b1e458f | [
"MIT"
] | 10 | 2020-12-14T01:24:03.000Z | 2022-02-16T10:01:16.000Z | examples/rl/train/evaluation.py | ONLYA/RoboGrammar | 4b9725739b24dc9df4049866c177db788b1e458f | [
"MIT"
] | 43 | 2020-10-02T00:01:17.000Z | 2022-03-06T17:02:38.000Z | import numpy as np
import torch
import time
import gym
from a2c_ppo_acktr import utils
from a2c_ppo_acktr.envs import make_vec_envs
from common.common import *
import pyrobotdesign as rd
def evaluate(args, actor_critic, ob_rms, env_name, seed, num_processes, device):
eval_envs = make_vec_envs(env_name, seed + nu... | 37.294118 | 123 | 0.595584 | 796 | 6,340 | 4.453518 | 0.184673 | 0.058392 | 0.060931 | 0.044006 | 0.680677 | 0.667701 | 0.66347 | 0.640339 | 0.640339 | 0.640339 | 0 | 0.015982 | 0.309148 | 6,340 | 170 | 124 | 37.294118 | 0.793379 | 0.014827 | 0 | 0.617188 | 0 | 0 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023438 | false | 0 | 0.0625 | 0 | 0.085938 | 0.070313 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a36cbab3e5001fd00e7a72126d2338a2204555d4 | 349 | py | Python | tracardi/domain/settings.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | 153 | 2021-11-02T00:35:41.000Z | 2022-03-25T16:37:44.000Z | tracardi/domain/settings.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | 243 | 2021-10-17T17:00:22.000Z | 2022-03-28T10:13:34.000Z | tracardi/domain/settings.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | 17 | 2021-06-29T13:13:18.000Z | 2021-10-17T10:52:57.000Z | from typing import Any
from pydantic import BaseModel
from tracardi.domain.enum.yes_no import YesNo
class Settings(BaseModel):
enabled: bool = True
hidden: bool = False
@staticmethod
def as_bool(state: YesNo):
return state.value == state.yes
class SystemSettings(BaseModel):
label: str
... | 17.45 | 45 | 0.69914 | 45 | 349 | 5.377778 | 0.644444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229226 | 349 | 19 | 46 | 18.368421 | 0.899628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a373111e5c498e564830abc1e6bfbc3640b9ca58 | 430 | py | Python | src/config.py | alfonmga/mui-docs-alfred-workflow | dcb6399bd05b2c2e0c1ed71ba0a991ea3d504e3d | [
"MIT"
] | null | null | null | src/config.py | alfonmga/mui-docs-alfred-workflow | dcb6399bd05b2c2e0c1ed71ba0a991ea3d504e3d | [
"MIT"
] | null | null | null | src/config.py | alfonmga/mui-docs-alfred-workflow | dcb6399bd05b2c2e0c1ed71ba0a991ea3d504e3d | [
"MIT"
] | null | null | null | # encoding: utf-8
class Config(object):
# Number of results to fetch from API
RESULT_COUNT = 9
# How long to cache results for
CACHE_MAX_AGE = 20 # seconds
ICON = "2B939AF4-1A27-4D41-96FE-E75C901C780F.png"
GOOGLE_ICON = "google.png"
# Algolia credentials
ALGOLIA_APP_ID = "BH4D9OD16A"
... | 28.666667 | 68 | 0.713953 | 55 | 430 | 5.363636 | 0.8 | 0.088136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134897 | 0.206977 | 430 | 14 | 69 | 30.714286 | 0.730205 | 0.253488 | 0 | 0 | 0 | 0 | 0.326984 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a37fd6e8da67a293afbf9031945fc82c5c55282b | 1,861 | py | Python | preferences.py | TouchTone/pyjsit | 52eb3eafdbab82c8ef6ba340eeaa5a7e6446a36f | [
"MIT",
"BSD-3-Clause"
] | 1 | 2015-05-22T21:26:51.000Z | 2015-05-22T21:26:51.000Z | preferences.py | TouchTone/pyjsit | 52eb3eafdbab82c8ef6ba340eeaa5a7e6446a36f | [
"MIT",
"BSD-3-Clause"
] | 6 | 2015-01-02T22:29:38.000Z | 2015-06-17T17:26:57.000Z | preferences.py | TouchTone/pyjsit | 52eb3eafdbab82c8ef6ba340eeaa5a7e6446a36f | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # Trivial preferences manager
import json
from log import *
# Global preferences dicts
allprefs = {}
changedprefs = set()
basedir = '.'
def setBaseDir(bdir):
global basedir
basedir = bdir
def setValue(module, name, value):
if not allprefs.has_key(module):
allprefs[module] = {}
modpre... | 16.918182 | 64 | 0.567974 | 208 | 1,861 | 5.052885 | 0.326923 | 0.057088 | 0.037108 | 0.045671 | 0.254044 | 0.254044 | 0.18078 | 0.18078 | 0.18078 | 0.11608 | 0 | 0.001585 | 0.32187 | 1,861 | 109 | 65 | 17.073395 | 0.83122 | 0.027942 | 0 | 0.383333 | 0 | 0 | 0.026024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | 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 |
a38843920361f6f41728cee26d89582e9f8c230b | 187 | py | Python | settings/boilerplates.py | vintasoftware/awesomeboilerplates | fc63bb5aab263f80c14ed588b3335ffabc90776a | [
"MIT"
] | 11 | 2017-04-03T00:45:45.000Z | 2021-04-21T00:13:55.000Z | settings/boilerplates.py | vintasoftware/awesomeboilerplates | fc63bb5aab263f80c14ed588b3335ffabc90776a | [
"MIT"
] | 1 | 2017-04-17T22:47:21.000Z | 2017-04-17T22:47:21.000Z | settings/boilerplates.py | vintasoftware/awesomeboilerplates | fc63bb5aab263f80c14ed588b3335ffabc90776a | [
"MIT"
] | 2 | 2018-06-19T15:39:03.000Z | 2020-01-01T01:39:47.000Z | SITE_TITLE = "Awesome Boilerplates"
FRAMEWORK_TITLE = ""
RESTRICT_PACKAGE_EDITORS = False
RESTRICT_GRID_EDITORS = False
ADMINS = [
("Vinta", "awesomeboilerplates@vinta.com.br"),
]
| 17 | 50 | 0.743316 | 20 | 187 | 6.65 | 0.75 | 0.180451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139037 | 187 | 10 | 51 | 18.7 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.306452 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a389585bcfde713a3067e4796672e196991fe382 | 17,088 | py | Python | python-lophi/lophi/sensors/memory/physical.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 28 | 2016-02-26T00:54:16.000Z | 2022-02-24T12:21:15.000Z | python-lophi/lophi/sensors/memory/physical.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 2 | 2016-03-15T21:49:09.000Z | 2016-07-12T22:11:39.000Z | python-lophi/lophi/sensors/memory/physical.py | patriotemeritus/LO-PHI | 8f92c4efb94061cb08b7e9b0ff96346565c12653 | [
"BSD-3-Clause"
] | 9 | 2016-06-08T14:42:28.000Z | 2021-11-11T03:51:34.000Z | """
Class for interacting with our physical memory sensor (FPGA)
(c) 2015 Massachusetts Institute of Technology
"""
# Native
import socket
import time
import logging
logger = logging.getLogger(__name__)
import multiprocessing
# LO-PHI
import lophi.globals as G
from lophi.sensors.memory import MemorySensor
fr... | 35.525988 | 112 | 0.47665 | 1,679 | 17,088 | 4.711138 | 0.20131 | 0.02225 | 0.016435 | 0.006574 | 0.264475 | 0.244501 | 0.213654 | 0.188622 | 0.173831 | 0.173831 | 0 | 0.017355 | 0.457104 | 17,088 | 481 | 113 | 35.525988 | 0.835292 | 0.116866 | 0 | 0.315353 | 0 | 0 | 0.052717 | 0 | 0 | 0 | 0.009239 | 0.002079 | 0 | 0 | null | null | 0.008299 | 0.037344 | 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 |
a39356c673f470687af0bd6e0b980194967ac9c7 | 1,785 | py | Python | logistic.py | syangliu/Newton-MR-grad | bf17cac404f0d0c92d5852e265162cc82fe3fefd | [
"Apache-2.0"
] | 1 | 2022-03-31T05:15:31.000Z | 2022-03-31T05:15:31.000Z | logistic.py | syangliu/Newton-MR | bf17cac404f0d0c92d5852e265162cc82fe3fefd | [
"Apache-2.0"
] | null | null | null | logistic.py | syangliu/Newton-MR | bf17cac404f0d0c92d5852e265162cc82fe3fefd | [
"Apache-2.0"
] | 1 | 2022-03-20T00:11:03.000Z | 2022-03-20T00:11:03.000Z | import numpy as np
def logistic(X, w, arg = None):
"""
Logistic function
INPUT:
X: Matrix
w: variable vector
arg: output control
OUTPUT:
f, gradient, Hessian
"""
#s = 1/(1+ np.exp(-t)) = e^t/(1+e^t) = e^(t-M)/a
#a = e^(-M)+e^(t-M)
n, d = X.shape
w = ... | 21.25 | 58 | 0.433613 | 320 | 1,785 | 2.415625 | 0.1875 | 0.033635 | 0.031048 | 0.020699 | 0.654593 | 0.564036 | 0.548512 | 0.535576 | 0.535576 | 0.535576 | 0 | 0.042254 | 0.363585 | 1,785 | 84 | 59 | 21.25 | 0.638204 | 0.194958 | 0 | 0.754717 | 0 | 0 | 0.014717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.018868 | 0 | 0.245283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a397d1058867f957611e335e4f09c85a0c5b17cb | 356 | py | Python | engine/core/sitemaps.py | NamoxLabs/BlogEngine | 741549e78b58bbc857e9dcecd88034de49d73304 | [
"BSD-3-Clause"
] | 1 | 2018-12-28T04:57:41.000Z | 2018-12-28T04:57:41.000Z | engine/core/sitemaps.py | NamoxLabs/BlogEngine | 741549e78b58bbc857e9dcecd88034de49d73304 | [
"BSD-3-Clause"
] | null | null | null | engine/core/sitemaps.py | NamoxLabs/BlogEngine | 741549e78b58bbc857e9dcecd88034de49d73304 | [
"BSD-3-Clause"
] | 2 | 2019-01-25T04:34:55.000Z | 2020-04-11T09:01:24.000Z | from django.conf import settings
from django.contrib.sitemaps import Sitemap
class I18Sitemap(Sitemap):
protocol = 'https' if settings.ENABLE_SSL else 'http'
i18n = True
class PageSitemap(I18Sitemap):
def items(self):
posts = Page.objects.public()
return posts.only('id', 'title', 'slug'... | 22.25 | 57 | 0.69382 | 43 | 356 | 5.72093 | 0.767442 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.191011 | 356 | 16 | 58 | 22.25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.070028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.8 | 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 |
a39d4e731a41fd96f57cd1f7fd7656f92a2fea0b | 450 | py | Python | atcoder/virtual4/b.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | atcoder/virtual4/b.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | atcoder/virtual4/b.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | #☆𝒐𝒎𝒂𝒋𝒊𝒏𝒂𝒊☆#
import sys
import math
from math import ceil, floor
import itertools
from functools import lru_cache,reduce
from collections import deque
inf=10**20
sys.setrecursionlimit(10000000)
input=lambda : sys.stdin.readline().rstrip()
'''''✂'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
n=int(in... | 22.5 | 63 | 0.635556 | 67 | 450 | 4.298507 | 0.626866 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.093333 | 450 | 19 | 64 | 23.684211 | 0.669118 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6e6a2687bfac1f96ca6516f6c78d750d026a76e4 | 1,830 | py | Python | test.py | kurtbrose/objex | 34b49730b1919a4b02d7e2f182efda7ee97b4ae0 | [
"MIT"
] | 8 | 2018-08-20T18:04:03.000Z | 2020-06-09T07:51:52.000Z | test.py | kurtbrose/objex | 34b49730b1919a4b02d7e2f182efda7ee97b4ae0 | [
"MIT"
] | 1 | 2018-09-04T21:27:05.000Z | 2018-09-04T21:28:29.000Z | test.py | kurtbrose/objex | 34b49730b1919a4b02d7e2f182efda7ee97b4ae0 | [
"MIT"
] | 1 | 2021-05-11T05:46:38.000Z | 2021-05-11T05:46:38.000Z | import os
from objex import dump_graph, make_analysis_db
# set up some corner-casey junk to stress test the dumper
class A: pass
a = A()
class B(object): pass
b = B()
def closing(a, b=1):
c = 2
def has_closure(d):
return b + c + d
return has_closure
f = closing(1)
import threading
import threa... | 19.468085 | 61 | 0.677596 | 302 | 1,830 | 3.950331 | 0.384106 | 0.067896 | 0.055323 | 0.042749 | 0.151718 | 0.102263 | 0.063705 | 0.063705 | 0.063705 | 0.063705 | 0 | 0.019973 | 0.179235 | 1,830 | 93 | 62 | 19.677419 | 0.774301 | 0.116393 | 0 | 0.027778 | 0 | 0 | 0.094972 | 0.040968 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.152778 | 0.097222 | 0.013889 | 0.416667 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e6b8c26b202207aa189019433c4447ee5bc03e5 | 9,065 | py | Python | main.py | GalacticFog/coinkite-real-time-invoice | fa95e757e7a051f91671d00e9d606cc163ba83be | [
"MIT"
] | 1 | 2021-10-31T19:06:16.000Z | 2021-10-31T19:06:16.000Z | main.py | petertodd/coinkite-real-time-invoice | 04b2df646fa0755984c3e255ddd2717527666695 | [
"MIT"
] | null | null | null | main.py | petertodd/coinkite-real-time-invoice | 04b2df646fa0755984c3e255ddd2717527666695 | [
"MIT"
] | 3 | 2015-12-02T11:43:19.000Z | 2021-10-31T19:06:00.000Z | #!/usr/bin/env python
#
# Search for libraries also under ./lib
import os, sys, logging
sys.path.insert(1, os.path.join(os.path.abspath('.'), 'lib'))
import webapp2, jinja2
from decimal import Decimal
from base64 import b32encode
from cStringIO import StringIO
from jinja2 import Markup
from urllib import urlencode
fr... | 31.695804 | 89 | 0.591175 | 1,133 | 9,065 | 4.601942 | 0.324801 | 0.023015 | 0.022823 | 0.025892 | 0.168776 | 0.119102 | 0.08247 | 0.03107 | 0.03107 | 0 | 0 | 0.013104 | 0.301269 | 9,065 | 285 | 90 | 31.807018 | 0.810073 | 0.15455 | 0 | 0.155914 | 0 | 0 | 0.073049 | 0.013377 | 0 | 0 | 0 | 0.003509 | 0.005376 | 0 | null | null | 0 | 0.091398 | null | null | 0.005376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6e75f4975a2eb8e46c6ef1ea394dc335b46d15a1 | 1,952 | py | Python | app/http/auth/user_controller.py | polowis/Pandoru | 99cd3d29c65e10041fc630af20ab56a6da0035f2 | [
"MIT"
] | null | null | null | app/http/auth/user_controller.py | polowis/Pandoru | 99cd3d29c65e10041fc630af20ab56a6da0035f2 | [
"MIT"
] | null | null | null | app/http/auth/user_controller.py | polowis/Pandoru | 99cd3d29c65e10041fc630af20ab56a6da0035f2 | [
"MIT"
] | null | null | null |
from app.http.controller import Controller
from app import db
from app.http.auth.form import LoginForm, RegisterForm
from app.model.user import User
from flask_login import current_user, login_user, logout_user
from flask import request, session
from werkzeug.urls import url_parse
from app.framework.requests import r... | 34.857143 | 81 | 0.63627 | 234 | 1,952 | 5.15812 | 0.333333 | 0.057995 | 0.081193 | 0.09942 | 0.142502 | 0.09942 | 0.09942 | 0.09942 | 0.09942 | 0.09942 | 0 | 0 | 0.262295 | 1,952 | 56 | 82 | 34.857143 | 0.838194 | 0 | 0 | 0.155556 | 0 | 0 | 0.081497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.111111 | 0.177778 | 0 | 0.422222 | 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 |
6e75fd366547533f3a421eeab403561ba3abe0ca | 560 | py | Python | src/model/music/vc.py | konrad2508/kokomi-discord-bot | 5a9d459e92d552fa24ba3ada5188db19d93f0aaa | [
"MIT"
] | 2 | 2022-03-02T15:56:41.000Z | 2022-03-10T16:30:41.000Z | src/model/music/vc.py | konrad2508/kokomi-discord-bot | 5a9d459e92d552fa24ba3ada5188db19d93f0aaa | [
"MIT"
] | 2 | 2022-03-10T16:30:20.000Z | 2022-03-16T14:33:59.000Z | src/model/music/vc.py | konrad2508/kokomi-discord-bot | 5a9d459e92d552fa24ba3ada5188db19d93f0aaa | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from nextcord import VoiceClient
from audio_source.i_pcm_source import IPCMSource
from model.music.song import Song
@dataclass
class VC:
'''Dataclass representing a connection to a voice channel.'''
connection: VoiceClient
is_queue_locked: bool
queue: list[Song]
... | 23.333333 | 72 | 0.728571 | 74 | 560 | 5.364865 | 0.581081 | 0.035264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002242 | 0.203571 | 560 | 23 | 73 | 24.347826 | 0.887892 | 0.203571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.928571 | 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 |
6e772247bd7c900be0f4212065f4cf07eae46bec | 332 | py | Python | gym/gym/main_app/migrations/0003_remove_searchmodel_type_search.py | rashkov7/gym-web-project | e4526099c91b0de5475562d76852e99f425f20fc | [
"MIT"
] | null | null | null | gym/gym/main_app/migrations/0003_remove_searchmodel_type_search.py | rashkov7/gym-web-project | e4526099c91b0de5475562d76852e99f425f20fc | [
"MIT"
] | null | null | null | gym/gym/main_app/migrations/0003_remove_searchmodel_type_search.py | rashkov7/gym-web-project | e4526099c91b0de5475562d76852e99f425f20fc | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-04-08 16:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main_app', '0002_searchmodel'),
]
operations = [
migrations.RemoveField(
model_name='searchmodel',
name='type_search',
... | 18.444444 | 47 | 0.596386 | 35 | 332 | 5.542857 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080851 | 0.292169 | 332 | 17 | 48 | 19.529412 | 0.744681 | 0.135542 | 0 | 0 | 1 | 0 | 0.161404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e93a0d8064e8c4f05dd13d46579b27ebf168789 | 310 | py | Python | PythonStudy/BasicStudy/Chapter_3/Homework/homework3.1~3.3.py | PerpetualWorld/Python_github | d001c3c555f10d7dab424512503fe3e0e870eaf7 | [
"MIT"
] | 1 | 2021-03-23T10:20:35.000Z | 2021-03-23T10:20:35.000Z | PythonStudy/BasicStudy/Chapter_3/Homework/homework3.1~3.3.py | PerpetualWorld/Python_github | d001c3c555f10d7dab424512503fe3e0e870eaf7 | [
"MIT"
] | null | null | null | PythonStudy/BasicStudy/Chapter_3/Homework/homework3.1~3.3.py | PerpetualWorld/Python_github | d001c3c555f10d7dab424512503fe3e0e870eaf7 | [
"MIT"
] | null | null | null | #练习3-1
names = ['Jack','Mary','Thomas','Tom','Jerry']
print(names)
#练习3-2
for i in range(len(names)):
print(f'How are you? {names[i]}')
#练习3-3
print('\n')
vehicles = ['bicycle','car','bus','subway','feet']
for i in range(len(vehicles)):
print(f'I would like to go to school by/on {vehicles[i]}.') | 19.375 | 63 | 0.609677 | 54 | 310 | 3.5 | 0.62963 | 0.042328 | 0.063492 | 0.116402 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022642 | 0.145161 | 310 | 16 | 63 | 19.375 | 0.690566 | 0.048387 | 0 | 0 | 0 | 0 | 0.406143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e949abdc1e71d11971eb0e4648263735b738d56 | 621 | py | Python | pycard/param/base.py | Jorispilot/pycard | 503532ba046e6332eb5de37d47e5e1446633c1cc | [
"MIT"
] | null | null | null | pycard/param/base.py | Jorispilot/pycard | 503532ba046e6332eb5de37d47e5e1446633c1cc | [
"MIT"
] | null | null | null | pycard/param/base.py | Jorispilot/pycard | 503532ba046e6332eb5de37d47e5e1446633c1cc | [
"MIT"
] | null | null | null | params = dict()
class Param(object):
def __init__(self, name, value=None):
self._name = name
self._value = value
params[self.format()] = self
@property
def name(self):
return self._name
def format(self):
string = self.name
if self.value is not None:
... | 19.40625 | 51 | 0.573269 | 75 | 621 | 4.56 | 0.333333 | 0.140351 | 0.064327 | 0.087719 | 0.292398 | 0.292398 | 0.292398 | 0.292398 | 0.292398 | 0.292398 | 0 | 0 | 0.326892 | 621 | 31 | 52 | 20.032258 | 0.818182 | 0.064412 | 0 | 0.380952 | 0 | 0 | 0.00173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0 | 0.095238 | 0.47619 | 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 |
6e972e19d0f8ba20259d327f66d38a4b38e28ad5 | 990 | py | Python | Longpoll/messages.py | cergey2205/--- | fc1df2adfc6166f63f14d314c00c71206c2d9fa5 | [
"MIT"
] | null | null | null | Longpoll/messages.py | cergey2205/--- | fc1df2adfc6166f63f14d314c00c71206c2d9fa5 | [
"MIT"
] | null | null | null | Longpoll/messages.py | cergey2205/--- | fc1df2adfc6166f63f14d314c00c71206c2d9fa5 | [
"MIT"
] | null | null | null | import json
import random
import vk_api
from vk_api.longpoll import VkLongPoll
def write_msg(peer_id: int, message: str):
vk.method('messages.send', {'peer_id': peer_id, 'message': message, 'random_id': random.randint(0, 2048),
'disable_mentions': 1})
def edit_msg(peer_id, messa... | 28.285714 | 109 | 0.681818 | 144 | 990 | 4.472222 | 0.388889 | 0.083851 | 0.100932 | 0.055901 | 0.251553 | 0.198758 | 0.158385 | 0.158385 | 0.158385 | 0.158385 | 0 | 0.019394 | 0.166667 | 990 | 34 | 110 | 29.117647 | 0.761212 | 0.048485 | 0 | 0 | 0 | 0 | 0.219382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.210526 | 0 | 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 |
6e9dd4263e7604fd6bf0246dd03e788605d20f6d | 1,825 | py | Python | dsl/features/create_ngram_matrix.py | juditacs/dsl | d6212cb2ff0755ceed8f37ee2f80ab47c9dc780c | [
"MIT"
] | 2 | 2015-09-24T13:56:24.000Z | 2021-01-16T00:31:48.000Z | dsl/features/create_ngram_matrix.py | juditacs/dsl | d6212cb2ff0755ceed8f37ee2f80ab47c9dc780c | [
"MIT"
] | null | null | null | dsl/features/create_ngram_matrix.py | juditacs/dsl | d6212cb2ff0755ceed8f37ee2f80ab47c9dc780c | [
"MIT"
] | null | null | null | from sys import argv, stderr
import cPickle
from featurize import Tokenizer, Featurizer
from dsl.representation.model import Representation
def main():
N = int(argv[1]) if len(argv) > 1 else 3
t = Tokenizer(filter_punct=True, ws_norm=True, strip=True, replace_digits=True)
f = Featurizer(t, N=N)
f.fea... | 32.589286 | 83 | 0.660822 | 283 | 1,825 | 4.067138 | 0.349823 | 0.056473 | 0.027802 | 0.031277 | 0.149435 | 0.081668 | 0.046916 | 0 | 0 | 0 | 0 | 0.010914 | 0.196712 | 1,825 | 55 | 84 | 33.181818 | 0.774216 | 0.013699 | 0 | 0 | 0 | 0 | 0.118399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081633 | null | null | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6e9fd4e7d7e825ce759babcd945bd353295eec82 | 4,009 | py | Python | src/mirtime/gplearning.py | mirTime/mirtime | 58f376fb7410bdb25bb623116856808b11e96c4e | [
"MIT"
] | null | null | null | src/mirtime/gplearning.py | mirTime/mirtime | 58f376fb7410bdb25bb623116856808b11e96c4e | [
"MIT"
] | null | null | null | src/mirtime/gplearning.py | mirTime/mirtime | 58f376fb7410bdb25bb623116856808b11e96c4e | [
"MIT"
] | null | null | null | import math
import os
import numpy as np
import scipy
from sklearn.gaussian_process import GaussianProcessRegressor
from sklearn.gaussian_process.kernels import ConstantKernel as C
from sklearn.gaussian_process.kernels import Matern
from sklearn.gaussian_process.kernels import WhiteKernel
cwd = os.getcwd()
tmpDir = c... | 33.408333 | 127 | 0.554003 | 462 | 4,009 | 4.642857 | 0.281385 | 0.078322 | 0.036364 | 0.048485 | 0.091841 | 0.076923 | 0.022378 | 0.022378 | 0.022378 | 0 | 0 | 0.010833 | 0.332252 | 4,009 | 119 | 128 | 33.689076 | 0.790437 | 0 | 0 | 0.06383 | 0 | 0 | 0.021208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085106 | 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 |
6ea56cd68649e57b1f883979326199c6dfe9fcca | 2,294 | py | Python | SLIM-MUTAG/graphVec.py | Drylian123/SLIM | f4dbaeaa765fd362cb2c9574d3e0542077574e23 | [
"MIT"
] | null | null | null | SLIM-MUTAG/graphVec.py | Drylian123/SLIM | f4dbaeaa765fd362cb2c9574d3e0542077574e23 | [
"MIT"
] | null | null | null | SLIM-MUTAG/graphVec.py | Drylian123/SLIM | f4dbaeaa765fd362cb2c9574d3e0542077574e23 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/5/2 23:32
# @Author : Avigdor
# @Site :
# @File : graphVec.py
# @Software: PyCharm
import numpy as np
import torch
def graphVec(node_feat,adj_one):
##If you want to aggregate neighbors, you can use the code of this file
count = 0
... | 40.245614 | 120 | 0.545772 | 331 | 2,294 | 3.516616 | 0.259819 | 0.247423 | 0.090206 | 0.051546 | 0.386598 | 0.243986 | 0.146907 | 0.12543 | 0.123711 | 0.072165 | 0 | 0.05643 | 0.335658 | 2,294 | 56 | 121 | 40.964286 | 0.707349 | 0.093723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.047619 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6eb36907d776f601f374660953db6c787c157089 | 749 | py | Python | tests/game/test_map.py | 8area8/MacGyver-The-game- | 2ada7ac2a2b02eb697600200bbbd5bf82b2cd073 | [
"Apache-2.0"
] | null | null | null | tests/game/test_map.py | 8area8/MacGyver-The-game- | 2ada7ac2a2b02eb697600200bbbd5bf82b2cd073 | [
"Apache-2.0"
] | null | null | null | tests/game/test_map.py | 8area8/MacGyver-The-game- | 2ada7ac2a2b02eb697600200bbbd5bf82b2cd073 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
# coding: utf-8
"""Test the map module."""
from pygame import display
from pygame.sprite import Sprite
from core.modules.map_file import import_map
from core.modules.images import collect_images
from core.modules.constants import SCREEN_SIZE
from core.game.map import Map
def test_map():
... | 24.16129 | 49 | 0.667557 | 105 | 749 | 4.628571 | 0.4 | 0.065844 | 0.092593 | 0.065844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.23498 | 749 | 30 | 50 | 24.966667 | 0.837696 | 0.104139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6eb570061d992566e851268091395edca49acf43 | 654 | py | Python | services/director-v2/src/simcore_service_director_v2/models/domains/dynamic_services.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 25 | 2018-04-13T12:44:12.000Z | 2022-03-12T15:01:17.000Z | services/director-v2/src/simcore_service_director_v2/models/domains/dynamic_services.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 2,553 | 2018-01-18T17:11:55.000Z | 2022-03-31T16:26:40.000Z | services/director-v2/src/simcore_service_director_v2/models/domains/dynamic_services.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 20 | 2018-01-18T19:45:33.000Z | 2022-03-29T07:08:47.000Z | from typing import List
from models_library.services import PropertyName
from pydantic import BaseModel, Field
from ..schemas.dynamic_services import RunningDynamicServiceDetails, ServiceDetails
class RetrieveDataIn(BaseModel):
port_keys: List[PropertyName] = Field(
..., description="The port keys to re... | 24.222222 | 83 | 0.7737 | 64 | 654 | 7.84375 | 0.5625 | 0.055777 | 0.075697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16208 | 654 | 26 | 84 | 25.153846 | 0.916058 | 0 | 0 | 0 | 0 | 0 | 0.131498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
6ebed80c414d3d4176d72d1c3189099156609579 | 319 | py | Python | ddcz/migrations/0024_skills_name.py | ItIsI-Orient/graveyard | 4b1c1be90b6f1362aa43c65899bb3676ffccbeb9 | [
"MIT"
] | null | null | null | ddcz/migrations/0024_skills_name.py | ItIsI-Orient/graveyard | 4b1c1be90b6f1362aa43c65899bb3676ffccbeb9 | [
"MIT"
] | null | null | null | ddcz/migrations/0024_skills_name.py | ItIsI-Orient/graveyard | 4b1c1be90b6f1362aa43c65899bb3676ffccbeb9 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.13 on 2020-03-04 14:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ddcz', '0023_skills'),
]
operations = [
migrations.RenameModel(
old_name='Dovednosti',
new_name='Skill',
),
]
| 17.722222 | 48 | 0.579937 | 34 | 319 | 5.352941 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09009 | 0.304075 | 319 | 17 | 49 | 18.764706 | 0.72973 | 0.144201 | 0 | 0 | 1 | 0 | 0.110701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ebf15a8acf6c0120a9afde02945ac471f70f2d3 | 444 | py | Python | d-manipulando strings/des-023 strings-002.py | solito83/aprendendo-programar-em-python | af5bce7efa2ffa4d081c015830e3710044899924 | [
"MIT"
] | null | null | null | d-manipulando strings/des-023 strings-002.py | solito83/aprendendo-programar-em-python | af5bce7efa2ffa4d081c015830e3710044899924 | [
"MIT"
] | null | null | null | d-manipulando strings/des-023 strings-002.py | solito83/aprendendo-programar-em-python | af5bce7efa2ffa4d081c015830e3710044899924 | [
"MIT"
] | null | null | null | des = 'Desafio-023 strings-002'
print ('{}'.format(des))
#...Faça um programa que leia um número de 0 a 9999 e mostre na telacada um dos digitos separados. ex: unidade; dezena; centena; milhar
num = int(input('Digite um número: '))
u = num // 1 % 10
d = num // 10 % 10
c = num // 100 % 10
m = num // 1000 % 10
print ... | 26.117647 | 135 | 0.614865 | 70 | 444 | 3.9 | 0.585714 | 0.058608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080556 | 0.189189 | 444 | 16 | 136 | 27.75 | 0.677778 | 0.301802 | 0 | 0 | 0 | 0 | 0.288026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6ecf9544ee0c2a1c7537170ccaeed3e8bc4ccf8e | 2,861 | py | Python | edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/threeParameterModel.py | BeeGroup-cimne/module_edinet | 0cda52e9d6222a681f85567e9bf0f7e5885ebf5e | [
"MIT"
] | null | null | null | edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/threeParameterModel.py | BeeGroup-cimne/module_edinet | 0cda52e9d6222a681f85567e9bf0f7e5885ebf5e | [
"MIT"
] | 13 | 2021-03-25T22:24:38.000Z | 2022-03-12T00:56:45.000Z | edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/threeParameterModel.py | BeeGroup-cimne/module_edinet | 0cda52e9d6222a681f85567e9bf0f7e5885ebf5e | [
"MIT"
] | 1 | 2019-03-13T09:49:56.000Z | 2019-03-13T09:49:56.000Z | import numpy as np
from baseModel import baseModel, ModellingError as me
import logging
class ModellingError(me): pass
class ThreeParameterModel(baseModel):
"""
A three-parameter heating model where consumption is estimated as a piece-wise linear regression between consumption and outside air emperature below... | 37.155844 | 168 | 0.624257 | 397 | 2,861 | 4.332494 | 0.319899 | 0.036628 | 0.040698 | 0.056977 | 0.148837 | 0.089535 | 0.055814 | 0.055814 | 0.055814 | 0.055814 | 0 | 0.009855 | 0.255156 | 2,861 | 76 | 169 | 37.644737 | 0.797278 | 0.017826 | 0 | 0.1 | 0 | 0 | 0.060606 | 0.008658 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016667 | 0.083333 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ed18599fe1abbbbaa474d3a8bf35c782e3696a1 | 19,715 | py | Python | src/model/models.py | NaKolenke/kolenka-backend | b8bf0a49b424e088b02bfeb59b7a083e59973b88 | [
"MIT"
] | null | null | null | src/model/models.py | NaKolenke/kolenka-backend | b8bf0a49b424e088b02bfeb59b7a083e59973b88 | [
"MIT"
] | null | null | null | src/model/models.py | NaKolenke/kolenka-backend | b8bf0a49b424e088b02bfeb59b7a083e59973b88 | [
"MIT"
] | null | null | null | import datetime
import secrets
from peewee import (
JOIN,
BigIntegerField,
BooleanField,
CharField,
DateField,
DateTimeField,
ForeignKeyField,
IntegerField,
TextField,
fn,
)
from playhouse.shortcuts import model_to_dict
from src.model import db
def get_exclude():
return [... | 29.691265 | 88 | 0.620593 | 2,256 | 19,715 | 5.243794 | 0.10195 | 0.074387 | 0.025106 | 0.036517 | 0.505833 | 0.465934 | 0.397633 | 0.359594 | 0.269062 | 0.217751 | 0 | 0.006565 | 0.266041 | 19,715 | 663 | 89 | 29.736048 | 0.810988 | 0.022876 | 0 | 0.414449 | 0 | 0 | 0.014242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108365 | false | 0.005703 | 0.009506 | 0.064639 | 0.530418 | 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 |
6ed3096b057c0b35cb3c5842211a18f84d5e2c21 | 3,923 | py | Python | archives/demo_real.py | pazeshun/jsk_apc | 0ff42000ad5992f8a31e719a5360a39cf4fa1fde | [
"BSD-3-Clause"
] | null | null | null | archives/demo_real.py | pazeshun/jsk_apc | 0ff42000ad5992f8a31e719a5360a39cf4fa1fde | [
"BSD-3-Clause"
] | 2 | 2019-04-11T05:36:23.000Z | 2019-08-19T12:58:10.000Z | archives/demo_real.py | pazeshun/jsk_apc | 0ff42000ad5992f8a31e719a5360a39cf4fa1fde | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# demo_real.py
# author: Kentaro Wada <www.kentaro.wada@gmail.com>
import rospy
from std_msgs.msg import (
Empty,
String,
)
from geometry_msgs.msg import PoseStamped, Pose
from jsk_rviz_plugins.msg import OverlayText
from jsk_2015_05_baxter_apc.msg import *
f... | 41.294737 | 108 | 0.6026 | 474 | 3,923 | 4.742616 | 0.240506 | 0.052936 | 0.057829 | 0.028915 | 0.408363 | 0.34653 | 0.268683 | 0.187722 | 0.145018 | 0.104093 | 0 | 0.006004 | 0.235789 | 3,923 | 94 | 109 | 41.734043 | 0.743829 | 0.209788 | 0 | 0.105263 | 0 | 0 | 0.201553 | 0.068197 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | 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 |
6ed62dc0049f923eeebaeab5138937d4e4b9f8c0 | 499 | py | Python | dcel/edge.py | MikhailNakhatovich/slab_decomposition | c5fa5b609a55f89b413bc368e2d0809b9166f0ad | [
"MIT"
] | 1 | 2020-09-30T19:20:49.000Z | 2020-09-30T19:20:49.000Z | dcel/edge.py | MikhailNakhatovich/slab_method | c5fa5b609a55f89b413bc368e2d0809b9166f0ad | [
"MIT"
] | null | null | null | dcel/edge.py | MikhailNakhatovich/slab_method | c5fa5b609a55f89b413bc368e2d0809b9166f0ad | [
"MIT"
] | null | null | null | class Edge:
def __init__(self, v1: int, v2: int, f1: int, f2: int, p1: int, p2: int):
self.v1 = v1
self.v2 = v2
self.f1 = f1
self.f2 = f2
self.p1 = p1
self.p2 = p2
def __repr__(self):
return f'<Edge v=({self.v1}, {self.v2}) f=({self.f1}, {self.f2}) p=({se... | 29.352941 | 99 | 0.511022 | 83 | 499 | 2.975904 | 0.216867 | 0.121457 | 0.097166 | 0.097166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113372 | 0.310621 | 499 | 16 | 100 | 31.1875 | 0.604651 | 0 | 0 | 0 | 0 | 0.071429 | 0.162325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.071429 | 0.357143 | 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 |
6ed7d12a5d7ab288d953de07808da1f728c4a07f | 1,668 | py | Python | tests/benchmark.py | zozzz/yapic.di | 83488a84c0429b593d42e4d622c94dcb130bffa5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/benchmark.py | zozzz/yapic.di | 83488a84c0429b593d42e4d622c94dcb130bffa5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/benchmark.py | zozzz/yapic.di | 83488a84c0429b593d42e4d622c94dcb130bffa5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # from yapic.di.injector import Injector
# from yapic.di.injector_new import Injector
from yapic.di import Injector, VALUE
# def test_scope_get(benchmark):
# s = Scope()
# s["hello"] = 1
# benchmark(lambda s: s["hello"], s)
# def test_scope_inherit_get(benchmark):
# s = Scope()
# s["hello"] = 1
... | 25.272727 | 92 | 0.667866 | 217 | 1,668 | 5.018433 | 0.175115 | 0.057851 | 0.126722 | 0.132231 | 0.652893 | 0.500459 | 0.471993 | 0.325987 | 0.325987 | 0.132231 | 0 | 0.038517 | 0.17506 | 1,668 | 65 | 93 | 25.661538 | 0.752907 | 0.240408 | 0 | 0.192308 | 0 | 0 | 0.108626 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.269231 | false | 0 | 0.038462 | 0.038462 | 0.346154 | 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 |
6eddac83488d9f91abd54c161b299101192e3f86 | 8,207 | py | Python | raDecPointing.py | djwait-cp/a200 | f7facb25829e487ab9686d4652684c682c02ca5f | [
"MIT"
] | 1 | 2022-01-19T19:20:02.000Z | 2022-01-19T19:20:02.000Z | raDecPointing.py | danjwait/a200 | f7facb25829e487ab9686d4652684c682c02ca5f | [
"MIT"
] | null | null | null | raDecPointing.py | danjwait/a200 | f7facb25829e487ab9686d4652684c682c02ca5f | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""Right Ascension & Declination to LHLV Az/El pointing.
Olivia Burd, Dan Wait
Cal Poly Aerospace Engineering
Mk I: (present version)
runs as a stand-alone tool with hard-coded inputs
Mk II: (planned version)
runs as a callable module within miniHubble python instance
Args:
(For Mk II Version... | 28.202749 | 184 | 0.67747 | 1,238 | 8,207 | 4.399031 | 0.323102 | 0.032134 | 0.016526 | 0.009548 | 0.180132 | 0.149651 | 0.115681 | 0.080242 | 0.047374 | 0.047374 | 0 | 0.071132 | 0.177775 | 8,207 | 291 | 185 | 28.202749 | 0.735922 | 0.407579 | 0 | 0.045455 | 0 | 0 | 0.147567 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6ee12c0f1784b9b4e38f5ce88198de6feedbbb24 | 13,738 | py | Python | .ipynb_checkpoints/extract_info-checkpoint.py | vamsiramakrishnan/oci-search | 0d495718324148898fdff3a2486015b5ac3a059b | [
"MIT"
] | 1 | 2022-01-03T09:18:07.000Z | 2022-01-03T09:18:07.000Z | extract_info.py | vamsiramakrishnan/oci-search | 0d495718324148898fdff3a2486015b5ac3a059b | [
"MIT"
] | 2 | 2020-04-08T16:49:17.000Z | 2021-08-23T20:41:38.000Z | extract_info.py | vamsiramakrishnan/oci-search | 0d495718324148898fdff3a2486015b5ac3a059b | [
"MIT"
] | 1 | 2020-11-20T00:46:02.000Z | 2020-11-20T00:46:02.000Z | import oci
import json
from operator import itemgetter
from flatten_dict import flatten
def convert_response_to_dict(oci_response):
response_dict = oci.util.to_dict(oci_response.data)
return response_dict
def extract_db(searchResult, computeShapeLookupTable, db_client):
db_dict = convert_response_to_dict... | 43.201258 | 242 | 0.761901 | 1,350 | 13,738 | 7.371852 | 0.091852 | 0.207496 | 0.063203 | 0.078075 | 0.501809 | 0.450563 | 0.434084 | 0.235932 | 0.128718 | 0.098372 | 0 | 0 | 0.153006 | 13,738 | 317 | 243 | 43.337539 | 0.855277 | 0 | 0 | 0.04065 | 0 | 0 | 0.113335 | 0.006915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126016 | false | 0 | 0.01626 | 0 | 0.268293 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ee26c0334b6e2640ce7a2abe2646ca2bff359bc | 831 | py | Python | lib/sandbox/python/check_all_process_names.py | Azh4rR31gn5/Winpayloads | dc50ba8947695e8e617575135f6b5ec6c7869809 | [
"Apache-2.0"
] | 1,382 | 2016-05-04T03:38:22.000Z | 2022-03-27T18:03:25.000Z | lib/sandbox/python/check_all_process_names.py | DowneyRebert/Winpayloads | 4c23d695ea1f7f14b6a95c3d6ca51c1b4fa55aeb | [
"Apache-2.0"
] | 74 | 2016-04-30T00:08:35.000Z | 2021-08-31T02:15:12.000Z | lib/sandbox/python/check_all_process_names.py | DowneyRebert/Winpayloads | 4c23d695ea1f7f14b6a95c3d6ca51c1b4fa55aeb | [
"Apache-2.0"
] | 322 | 2016-05-09T08:04:46.000Z | 2022-02-10T01:01:28.000Z | #
# Checks all loaded process names, Python
# Module written by Brandon Arvanaghi
# Website: arvanaghi.com
# Twitter: @arvanaghi
# Edited for use in winpayloads
import win32pdh
import sys
EvidenceOfSandbox = []
sandboxProcesses = "vmsrvc", "tcpview", "wireshark", "visual basic", "fiddler", "vmware", "vbox", "proc... | 30.777778 | 264 | 0.741276 | 90 | 831 | 6.8 | 0.688889 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009749 | 0.135981 | 831 | 26 | 265 | 31.961538 | 0.842618 | 0.181709 | 0 | 0 | 0 | 0 | 0.252976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6eeced169fd072f1f043157e625243ad1deb593a | 1,154 | py | Python | manager/model.py | PlatonaM/lopco-deployment-manager | 227b45401f1330757a8cf53c3c05db9233a99d94 | [
"Apache-2.0"
] | null | null | null | manager/model.py | PlatonaM/lopco-deployment-manager | 227b45401f1330757a8cf53c3c05db9233a99d94 | [
"Apache-2.0"
] | null | null | null | manager/model.py | PlatonaM/lopco-deployment-manager | 227b45401f1330757a8cf53c3c05db9233a99d94 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2020 InfAI (CC SES)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | 23.08 | 75 | 0.693241 | 149 | 1,154 | 5.281879 | 0.583893 | 0.076239 | 0.033037 | 0.040661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008869 | 0.218371 | 1,154 | 49 | 76 | 23.55102 | 0.863636 | 0.480069 | 0 | 0 | 0 | 0 | 0.266904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.952381 | 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 |
6ef0773a5973551cc25b84876624f2e831253fbc | 369 | py | Python | flexible_payments/migrations/0006_auto_20190610_0822.py | ninjabit/django-flexible-payments | 03c6edfc9368df6ff08d843d77ded27a036e6fcd | [
"BSD-3-Clause"
] | null | null | null | flexible_payments/migrations/0006_auto_20190610_0822.py | ninjabit/django-flexible-payments | 03c6edfc9368df6ff08d843d77ded27a036e6fcd | [
"BSD-3-Clause"
] | 8 | 2019-05-03T14:01:23.000Z | 2021-06-10T18:00:45.000Z | flexible_payments/migrations/0006_auto_20190610_0822.py | ninjabit/django-flexible-payments | 03c6edfc9368df6ff08d843d77ded27a036e6fcd | [
"BSD-3-Clause"
] | 1 | 2020-12-15T15:02:46.000Z | 2020-12-15T15:02:46.000Z | # Generated by Django 2.2.2 on 2019-06-10 08:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('flexible_payments', '0005_transaction_external_reference'),
]
operations = [
migrations.AlterModelManagers(
name='paymentmethod',
... | 19.421053 | 69 | 0.601626 | 34 | 369 | 6.411765 | 0.823529 | 0.018349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073359 | 0.298103 | 369 | 18 | 70 | 20.5 | 0.76834 | 0.121951 | 0 | 0 | 1 | 0 | 0.201863 | 0.108696 | 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 |
42bb1f45e2ad94bc656cd181dd55c4ec5eb5ef6d | 41,592 | py | Python | exploration.py | jacksonfylle/Bex | 16811a3909c6cc999a20eb9c71d60fec878870fa | [
"Apache-2.0"
] | 2 | 2019-02-07T19:01:18.000Z | 2020-03-28T04:49:38.000Z | exploration.py | jacksonfylle/Bex | 16811a3909c6cc999a20eb9c71d60fec878870fa | [
"Apache-2.0"
] | null | null | null | exploration.py | jacksonfylle/Bex | 16811a3909c6cc999a20eb9c71d60fec878870fa | [
"Apache-2.0"
] | 1 | 2020-03-28T04:49:44.000Z | 2020-03-28T04:49:44.000Z | import pdb
from collections import OrderedDict, Counter
from termcolor import colored
import json
import time
from triton import SYMBOLIC, MemoryAccess, CPUSIZE, TritonContext, ARCH, MODE, AST_REPRESENTATION
from tracer import Tracer
from fuzz import Fuzz
from pwn import unordlist, ordlist, pause
from multiprocessing i... | 60.807018 | 426 | 0.568691 | 4,733 | 41,592 | 4.807944 | 0.095288 | 0.026499 | 0.022719 | 0.019511 | 0.577035 | 0.537792 | 0.474205 | 0.405563 | 0.362498 | 0.327386 | 0 | 0.010365 | 0.306405 | 41,592 | 683 | 427 | 60.896047 | 0.77846 | 0.087445 | 0 | 0.345972 | 0 | 0.00237 | 0.142404 | 0.008121 | 0 | 0 | 0.00147 | 0 | 0 | 0 | null | null | 0.004739 | 0.026066 | null | null | 0.063981 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
42c7c75bb71197874ddb86639d1d1bf84757e82a | 411 | py | Python | linux/functions_youtube_linux/check_version.py | Frxhb/youtubedl_script | 029e22556ca3094f237e4415e34435113b9796b1 | [
"Unlicense"
] | null | null | null | linux/functions_youtube_linux/check_version.py | Frxhb/youtubedl_script | 029e22556ca3094f237e4415e34435113b9796b1 | [
"Unlicense"
] | null | null | null | linux/functions_youtube_linux/check_version.py | Frxhb/youtubedl_script | 029e22556ca3094f237e4415e34435113b9796b1 | [
"Unlicense"
] | null | null | null | import os
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
def check_ver_func():
test = os.popen('youtube-dl --version').read()
prin... | 25.6875 | 99 | 0.557178 | 54 | 411 | 4.203704 | 0.685185 | 0.079295 | 0.140969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137705 | 0.257908 | 411 | 16 | 99 | 25.6875 | 0.606557 | 0 | 0 | 0 | 0 | 0 | 0.315534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.857143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
42cb02b8dab7f93ec56046b07f3bef0782728e6c | 529 | py | Python | bolt/cogs/infractions/models.py | HeavyLobster/bolt | d50dd59d119a627bfac32fbed2544433f066399b | [
"0BSD"
] | null | null | null | bolt/cogs/infractions/models.py | HeavyLobster/bolt | d50dd59d119a627bfac32fbed2544433f066399b | [
"0BSD"
] | null | null | null | bolt/cogs/infractions/models.py | HeavyLobster/bolt | d50dd59d119a627bfac32fbed2544433f066399b | [
"0BSD"
] | null | null | null | from datetime import datetime
import peewee
from bolt.database import EnumField, Model
from .types import InfractionType
class Infraction(Model):
guild_id = peewee.BigIntegerField()
created_on = peewee.DateTimeField(default=datetime.utcnow)
edited_on = peewee.DateTimeField(default=None, null=True) # ON... | 31.117647 | 98 | 0.771267 | 62 | 529 | 6.483871 | 0.580645 | 0.059701 | 0.171642 | 0.139303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.149338 | 529 | 16 | 99 | 33.0625 | 0.886667 | 0.062382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
42ced21b853cfb25b3895e7680b75d14aae6887c | 5,463 | py | Python | django_dust/storage.py | Kudo/django_dust | ffef53b797ad8e66073f0e912ea8f17c438462b9 | [
"BSD-3-Clause"
] | 1 | 2021-10-10T12:39:23.000Z | 2021-10-10T12:39:23.000Z | django_dust/storage.py | Kudo/django_dust | ffef53b797ad8e66073f0e912ea8f17c438462b9 | [
"BSD-3-Clause"
] | null | null | null | django_dust/storage.py | Kudo/django_dust | ffef53b797ad8e66073f0e912ea8f17c438462b9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding:utf-8 -*-
from threading import Thread
import socket
import random
import urlparse
from django.core.files import base
from django.core.files.storage import Storage, FileSystemStorage
from django.conf import settings
from django_dust import http
from django_dust.settings import getsetting
class Distribu... | 36.66443 | 131 | 0.610287 | 640 | 5,463 | 5.089063 | 0.3 | 0.033159 | 0.05895 | 0.027633 | 0.190359 | 0.175622 | 0.158428 | 0.158428 | 0.111145 | 0.089039 | 0 | 0.000526 | 0.303862 | 5,463 | 148 | 132 | 36.912162 | 0.855903 | 0.122277 | 0 | 0.157895 | 0 | 0 | 0.03654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010526 | 0.105263 | 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 |
42cf852181602d3426bdfc9af26a93d85e383467 | 1,443 | py | Python | lesson06/liukai/homework/util/message.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson06/liukai/homework/util/message.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson06/liukai/homework/util/message.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | message = {
"0001": "login success, welcome {}",
"0002": "login fail,your username or password is error",
"0003": "logout success !!!",
"0004": "bye {}",
"0005": "Please input add messages:",
"0006": "Your input messages invalid!",
"0007": "Username is already !!!",
"0008": "add username... | 34.357143 | 63 | 0.555094 | 165 | 1,443 | 4.854545 | 0.49697 | 0.109863 | 0.05618 | 0.062422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109528 | 0.22176 | 1,443 | 41 | 64 | 35.195122 | 0.60374 | 0 | 0 | 0 | 0 | 0 | 0.753985 | 0.06237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42d71996a09047bebc5fc06da328d27950060d6c | 1,517 | py | Python | app/users/api/views.py | confbot-telegram-conferences/confbot | 52fa307275b679748b5a7a6e7cb29bfc7b792875 | [
"MIT"
] | 1 | 2022-01-18T05:19:45.000Z | 2022-01-18T05:19:45.000Z | app/users/api/views.py | confbot-telegram-conferences/confbot | 52fa307275b679748b5a7a6e7cb29bfc7b792875 | [
"MIT"
] | null | null | null | app/users/api/views.py | confbot-telegram-conferences/confbot | 52fa307275b679748b5a7a6e7cb29bfc7b792875 | [
"MIT"
] | 1 | 2022-01-18T13:54:57.000Z | 2022-01-18T13:54:57.000Z | from app.utils.permissions import IsBotPermission
from django.contrib.auth import get_user_model
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.mixins import ListModelMixin, RetrieveModelMixin, UpdateModelMixin
from rest_framework.response import Response
from rest_fr... | 39.921053 | 93 | 0.736981 | 177 | 1,517 | 6.158192 | 0.39548 | 0.06422 | 0.077982 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002347 | 0.157548 | 1,517 | 37 | 94 | 41 | 0.850548 | 0 | 0 | 0 | 0 | 0 | 0.051417 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.266667 | 0.033333 | 0.633333 | 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 |
42e6baf1d3e5f2911a72a960eaab69b51c1b7988 | 1,506 | py | Python | stats/cluster_id.py | private-octopus/dname3d | c4b76b8e8ee59c40a0cf0c5ddae79010d326853f | [
"MIT"
] | null | null | null | stats/cluster_id.py | private-octopus/dname3d | c4b76b8e8ee59c40a0cf0c5ddae79010d326853f | [
"MIT"
] | null | null | null | stats/cluster_id.py | private-octopus/dname3d | c4b76b8e8ee59c40a0cf0c5ddae79010d326853f | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding=utf-8
#
# Extract a list of plausible clusters from a list of ip addresses and traffic count
import sys
import ipaddress
import traceback
import time
import concurrent.futures
import os
class ip_cluster:
def __init__(self, ip, count):
self.count_min = count
self.count_m... | 27.888889 | 84 | 0.451527 | 164 | 1,506 | 3.987805 | 0.371951 | 0.137615 | 0.107034 | 0.051988 | 0.091743 | 0.091743 | 0.091743 | 0.091743 | 0 | 0 | 0 | 0.01261 | 0.47344 | 1,506 | 53 | 85 | 28.415094 | 0.812106 | 0.109562 | 0 | 0.205128 | 0 | 0 | 0.001498 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.076923 | false | 0.025641 | 0.153846 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42e97328ecf32a1449d1868f589d34e8d4a276ee | 5,103 | py | Python | passbook/providers/saml/models.py | fossabot/passbook | cba17f6659404445ac3025f11657d89368cc8b4f | [
"MIT"
] | null | null | null | passbook/providers/saml/models.py | fossabot/passbook | cba17f6659404445ac3025f11657d89368cc8b4f | [
"MIT"
] | null | null | null | passbook/providers/saml/models.py | fossabot/passbook | cba17f6659404445ac3025f11657d89368cc8b4f | [
"MIT"
] | null | null | null | """passbook saml_idp Models"""
from typing import Optional
from django.db import models
from django.http import HttpRequest
from django.shortcuts import reverse
from django.utils.translation import ugettext_lazy as _
from structlog import get_logger
from passbook.core.models import PropertyMapping, Provider
from pass... | 33.352941 | 92 | 0.640016 | 548 | 5,103 | 5.733577 | 0.308394 | 0.04774 | 0.040102 | 0.02387 | 0.269574 | 0.219924 | 0.154997 | 0.128262 | 0.128262 | 0.108211 | 0 | 0.013951 | 0.255536 | 5,103 | 152 | 93 | 33.572368 | 0.813109 | 0.086028 | 0 | 0.219298 | 0 | 0 | 0.174411 | 0.056192 | 0 | 0 | 0 | 0 | 0.035088 | 1 | 0.061404 | false | 0.078947 | 0.114035 | 0.017544 | 0.438596 | 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 |
42ea2b9d91e4617ad6178a2ea0aee35f73037a74 | 3,713 | py | Python | source/python/e2c.examples/web_mud/actors/commands/avatar.py | elastic-event-components/e2c | 15be10c167e6a02f725bae0ea933667c4b2b257b | [
"Apache-2.0"
] | null | null | null | source/python/e2c.examples/web_mud/actors/commands/avatar.py | elastic-event-components/e2c | 15be10c167e6a02f725bae0ea933667c4b2b257b | [
"Apache-2.0"
] | 1 | 2017-09-27T09:20:40.000Z | 2017-09-27T09:20:40.000Z | source/python/e2c.examples/web_mud/actors/commands/avatar.py | elastic-event-components/e2c | 15be10c167e6a02f725bae0ea933667c4b2b257b | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2017 The E2C Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 36.048544 | 93 | 0.612173 | 505 | 3,713 | 4.431683 | 0.368317 | 0.044236 | 0.053619 | 0.053619 | 0.242627 | 0.207775 | 0.186774 | 0.186774 | 0.155496 | 0.155496 | 0 | 0.0068 | 0.247509 | 3,713 | 102 | 94 | 36.401961 | 0.794202 | 0.175869 | 0 | 0.28169 | 0 | 0 | 0.275386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098592 | false | 0.070423 | 0.056338 | 0.014085 | 0.183099 | 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 |
42f6296ba81af52089ed7e3c4d294cc54ff192c3 | 391 | py | Python | models/tls_result.py | atlassian-labs/connect-security-req-tester | efae86a7766faf517b4646155012e78e04445856 | [
"Apache-2.0"
] | 14 | 2020-11-09T23:10:56.000Z | 2021-12-24T06:09:40.000Z | models/tls_result.py | atlassian-labs/connect-security-req-tester | efae86a7766faf517b4646155012e78e04445856 | [
"Apache-2.0"
] | 25 | 2020-11-13T01:56:59.000Z | 2021-05-06T13:35:28.000Z | models/tls_result.py | atlassian-labs/connect-security-req-tester | efae86a7766faf517b4646155012e78e04445856 | [
"Apache-2.0"
] | 3 | 2020-11-24T13:16:09.000Z | 2022-01-01T12:40:13.000Z | from jsonobject import (BooleanProperty, DefaultProperty, IntegerProperty,
JsonObject, ListProperty, StringProperty)
class TlsResult(JsonObject):
ips_scanned = IntegerProperty()
protocols = ListProperty(StringProperty())
hsts_present = BooleanProperty()
trusted = BooleanPropert... | 32.583333 | 74 | 0.721228 | 28 | 391 | 9.964286 | 0.678571 | 0.18638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202046 | 391 | 11 | 75 | 35.545455 | 0.894231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.888889 | 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 |
42f8f77c923295479482a9e60540a21f679ea978 | 10,667 | py | Python | wpkit/fsutil/dir_dict.py | Peiiii/wpkit | 23a07548be766b559b80e3114ecc24e3f2f65ea5 | [
"MIT"
] | null | null | null | wpkit/fsutil/dir_dict.py | Peiiii/wpkit | 23a07548be766b559b80e3114ecc24e3f2f65ea5 | [
"MIT"
] | null | null | null | wpkit/fsutil/dir_dict.py | Peiiii/wpkit | 23a07548be766b559b80e3114ecc24e3f2f65ea5 | [
"MIT"
] | null | null | null | import os,shutil,glob,json,functools
from wpkit.basic import PowerDirPath,standard_path,\
get_relative_path,DirPath,split_path
from wpkit.ofile import SimpleListFile,ObjectFile
def is_empty_dir(path):
assert os.path.exists(path)
if not os.path.isdir(path):
return False
if len(os.listdir(path)):... | 32.422492 | 75 | 0.599981 | 1,407 | 10,667 | 4.482587 | 0.117271 | 0.048518 | 0.050737 | 0.057079 | 0.384335 | 0.289361 | 0.240051 | 0.215316 | 0.186618 | 0.130966 | 0 | 0.00156 | 0.278991 | 10,667 | 328 | 76 | 32.521341 | 0.818489 | 0.02503 | 0 | 0.277778 | 0 | 0 | 0.009465 | 0 | 0 | 0 | 0 | 0 | 0.052288 | 1 | 0.228758 | false | 0 | 0.019608 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42f9bc26ca6ca734e72c6457b30c4253f7a85acb | 7,025 | py | Python | dl_core/src/dl_core/models/models.py | osamhack2020/Infra_FRIDAY_IRIS | ad64a568edd0d3998ace102f7770304d5dcb10a0 | [
"Apache-2.0"
] | null | null | null | dl_core/src/dl_core/models/models.py | osamhack2020/Infra_FRIDAY_IRIS | ad64a568edd0d3998ace102f7770304d5dcb10a0 | [
"Apache-2.0"
] | 2 | 2020-10-19T14:51:50.000Z | 2020-10-25T11:03:55.000Z | dl_core/src/dl_core/models/models.py | osamhack2020/Infra_FRIDAY_IRIS | ad64a568edd0d3998ace102f7770304d5dcb10a0 | [
"Apache-2.0"
] | 1 | 2020-10-31T10:18:05.000Z | 2020-10-31T10:18:05.000Z | # coding: utf-8
from dl_core import db
import sqlalchemy.exc as SA
def init_db():
db.create_all()
def _already_exist(db_model, obj, data):
row = db.session.using_bind("slave").query(db_model).filter(obj == data).first()
if row:
return True
else:
return False
def already_exist(db_model, ... | 45.616883 | 168 | 0.68669 | 1,005 | 7,025 | 4.632836 | 0.225871 | 0.101375 | 0.115979 | 0.054124 | 0.616194 | 0.589562 | 0.535223 | 0.458548 | 0.419674 | 0.349871 | 0 | 0.009177 | 0.16242 | 7,025 | 154 | 169 | 45.616883 | 0.782121 | 0.020783 | 0 | 0.168067 | 0 | 0 | 0.176145 | 0.024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033613 | false | 0.008403 | 0.016807 | 0.008403 | 0.781513 | 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 |
42fad4ab2569478d88678f589ed94e97b4d76435 | 446 | py | Python | src/bgd/utils.py | AntoinePassemiers/Beyond-Gradient-Descent | 0f32188c8c77cbaddf70df541e39051b52e60be2 | [
"MIT"
] | 8 | 2018-05-18T12:32:15.000Z | 2021-07-04T06:49:33.000Z | src/bgd/utils.py | AntoinePassemiers/Beyond-Gradient-Descent | 0f32188c8c77cbaddf70df541e39051b52e60be2 | [
"MIT"
] | null | null | null | src/bgd/utils.py | AntoinePassemiers/Beyond-Gradient-Descent | 0f32188c8c77cbaddf70df541e39051b52e60be2 | [
"MIT"
] | 5 | 2018-07-07T08:29:27.000Z | 2022-01-13T16:10:27.000Z | """ This module contains all the small and useful functions.
All the... utils... """
# utils.py
# author : Antoine Passemiers, Robin Petit
__all__ = [
'log', 'now'
]
from datetime import datetime as dt
def log(txt, end='\n'):
"""Log a message on stdout"""
print('[{}]\t{}'.format(now(), txt), end=end, fl... | 22.3 | 61 | 0.616592 | 64 | 446 | 4.234375 | 0.71875 | 0.04428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190583 | 446 | 19 | 62 | 23.473684 | 0.750693 | 0.443946 | 0 | 0 | 0 | 0 | 0.131004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42fc30cdc200d27a61e8d925e7354ae690c1f33b | 1,127 | py | Python | iiits/migrations/0006_auto_20160229_1127.py | IIITS/iiits.ac.in | fd1bcd656a2f1a038d331b005224c546998a23a6 | [
"MIT"
] | 6 | 2016-02-27T04:35:28.000Z | 2020-06-09T04:18:38.000Z | iiits/migrations/0006_auto_20160229_1127.py | IIITS/iiits.ac.in | fd1bcd656a2f1a038d331b005224c546998a23a6 | [
"MIT"
] | null | null | null | iiits/migrations/0006_auto_20160229_1127.py | IIITS/iiits.ac.in | fd1bcd656a2f1a038d331b005224c546998a23a6 | [
"MIT"
] | 5 | 2016-03-01T07:28:20.000Z | 2021-01-19T10:51:58.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-02-29 11:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('iiits', '0005_auto_20160228_1200'),
]
operations = [
migrations.CreateModel(
... | 35.21875 | 114 | 0.593611 | 118 | 1,127 | 5.508475 | 0.635593 | 0.036923 | 0.064615 | 0.087692 | 0.158462 | 0.110769 | 0.110769 | 0.110769 | 0 | 0 | 0 | 0.040767 | 0.259982 | 1,127 | 31 | 115 | 36.354839 | 0.738609 | 0.057675 | 0 | 0.083333 | 1 | 0 | 0.159585 | 0.097262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 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 |
42fdae95f089c4633af880b7ef8ff7bb841ea620 | 726 | py | Python | micropython/tests/umqtt/robust.py | kesking82/thingflow-python | 4c00deafd1bf425ec90ef2159fc5f3ea2553ade8 | [
"Apache-2.0"
] | 38 | 2017-04-25T12:24:56.000Z | 2021-01-12T17:01:43.000Z | micropython/tests/umqtt/robust.py | kesking82/thingflow-python | 4c00deafd1bf425ec90ef2159fc5f3ea2553ade8 | [
"Apache-2.0"
] | 4 | 2017-08-04T22:39:15.000Z | 2017-08-07T17:36:21.000Z | micropython/tests/umqtt/robust.py | kesking82/thingflow-python | 4c00deafd1bf425ec90ef2159fc5f3ea2553ade8 | [
"Apache-2.0"
] | 14 | 2017-07-31T21:25:29.000Z | 2022-02-06T08:09:07.000Z | """Fake mqtt interface - this simulates the api provided
by micropython. We use paho.mqtt to talk to the broker.
"""
import paho.mqtt.client
class MQTTClient:
def __init__(self, name, host, port):
self.client = paho.mqtt.client.Client(name)
self.host = host
self.port = port
def connect... | 27.923077 | 66 | 0.641873 | 99 | 726 | 4.646465 | 0.484848 | 0.130435 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001802 | 0.235537 | 726 | 25 | 67 | 29.04 | 0.827027 | 0.179063 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42fe3fe5c412102b96b81ad96494f2b8b35a8dbb | 799 | py | Python | kite_runner/models/article.py | thinhnguyenuit/kite_runner | 17f23f872318a78e573b0ff6bed04f783f082de1 | [
"MIT"
] | null | null | null | kite_runner/models/article.py | thinhnguyenuit/kite_runner | 17f23f872318a78e573b0ff6bed04f783f082de1 | [
"MIT"
] | 1 | 2021-11-10T16:29:38.000Z | 2021-11-10T16:29:38.000Z | kite_runner/models/article.py | thinhnguyenuit/kite_runner | 17f23f872318a78e573b0ff6bed04f783f082de1 | [
"MIT"
] | null | null | null | from django.db import models
from django.template.defaultfilters import slugify
class Article(models.Model):
slug = models.SlugField(max_length=255, unique=True, db_index=True)
title = models.CharField(max_length=255)
description = models.TextField()
body = models.TextField()
tags = models.ManyToM... | 34.73913 | 80 | 0.702128 | 99 | 799 | 5.494949 | 0.565657 | 0.036765 | 0.044118 | 0.091912 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009132 | 0.177722 | 799 | 22 | 81 | 36.318182 | 0.818874 | 0.015019 | 0 | 0 | 0 | 0 | 0.063694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.055556 | 0.777778 | 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 |
42febb4564c7be87d0fadeceefe5e4ad499ff1be | 928 | py | Python | BERT_pairwise_text_classification/model/data.py | rheehot/nlp_implementation | bacc1a347d96d8efcb7fc42ad88d3263c9db47c7 | [
"MIT"
] | 181 | 2019-03-11T11:55:17.000Z | 2020-05-25T04:50:21.000Z | BERT_pairwise_text_classification/model/data.py | Dohppak/nlp_implementation | 4bf7e8fab765b43080491e4c43f477c1ec93a489 | [
"MIT"
] | 13 | 2019-06-28T02:39:20.000Z | 2020-05-12T07:10:14.000Z | BERT_pairwise_text_classification/model/data.py | Dohppak/nlp_implementation | 4bf7e8fab765b43080491e4c43f477c1ec93a489 | [
"MIT"
] | 38 | 2019-03-13T00:57:28.000Z | 2020-05-21T09:45:03.000Z | import pandas as pd
import torch
from torch.utils.data import Dataset
from typing import Tuple, List, Callable
class Corpus(Dataset):
"""Corpus class"""
def __init__(self, filepath: str, transform_fn: Callable[[str], List[int]]) -> None:
"""Instantiating Corpus class
Args:
filepat... | 34.37037 | 101 | 0.661638 | 123 | 928 | 4.723577 | 0.447154 | 0.075732 | 0.065404 | 0.05852 | 0.099828 | 0.099828 | 0.099828 | 0 | 0 | 0 | 0 | 0.005594 | 0.229526 | 928 | 26 | 102 | 35.692308 | 0.806993 | 0.15625 | 0 | 0 | 0 | 0 | 0.002706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0.066667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
42ff7583b85e5f2f1f91b8728a897b1559d807ae | 1,906 | py | Python | api.py | Rishita11/face_recognition_and_face_detection | 589a03f85a9d3219e8a5f2bf551bf78ce5e8564f | [
"Apache-2.0"
] | null | null | null | api.py | Rishita11/face_recognition_and_face_detection | 589a03f85a9d3219e8a5f2bf551bf78ce5e8564f | [
"Apache-2.0"
] | null | null | null | api.py | Rishita11/face_recognition_and_face_detection | 589a03f85a9d3219e8a5f2bf551bf78ce5e8564f | [
"Apache-2.0"
] | null | null | null | from flask import Flask, request
from flask_mysqldb import MySQL
import cv2, sys, numpy, os
from glob import glob
app = Flask(__name__)
app.config['MYSQL_HOST'] = 'localhost'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = 'Root@123'
app.config['MYSQL_DB'] = 'images_dataset'
mysql = MySQL(app)
@app.... | 31.766667 | 95 | 0.595488 | 248 | 1,906 | 4.435484 | 0.483871 | 0.032727 | 0.050909 | 0.025455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.252361 | 1,906 | 59 | 96 | 32.305085 | 0.740351 | 0 | 0 | 0 | 0 | 0 | 0.147954 | 0.05404 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020408 | 0.081633 | null | null | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6e017ab10d5d093e4923e7638ec5239b596288d2 | 6,848 | py | Python | Udemy_PythonBootcamp/Sec03_objectsDataStructure.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | Udemy_PythonBootcamp/Sec03_objectsDataStructure.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | Udemy_PythonBootcamp/Sec03_objectsDataStructure.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | ####################################
# author: Gonzalo Salazar
# course: 2020 Complete Python Bootcamps: From Zero to Hero in Python
# purpose: lecture notes
# description: Section 03 - Python Object and Data Structure Basics
# other: N/A
####################################
# -----------------------
# NUMBERS
# Basi... | 22.306189 | 79 | 0.650117 | 1,109 | 6,848 | 3.954013 | 0.339946 | 0.032611 | 0.020753 | 0.019384 | 0.135006 | 0.096237 | 0.084379 | 0.06545 | 0.041505 | 0.020525 | 0 | 0.04036 | 0.15698 | 6,848 | 306 | 80 | 22.379085 | 0.71921 | 0.431951 | 0 | 0.175141 | 0 | 0 | 0.194823 | 0.006405 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.186441 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6e0456ede7bc2793abdfe6a5041fc296da4beb90 | 704 | py | Python | py2cytoscape/cyrest/apps.py | g-simmons2/py2cytoscape | e2cd1c5d598e1da02f50273e958ddf574c523eb8 | [
"MIT"
] | 97 | 2018-01-23T00:20:51.000Z | 2022-03-11T05:01:01.000Z | py2cytoscape/cyrest/apps.py | g-simmons2/py2cytoscape | e2cd1c5d598e1da02f50273e958ddf574c523eb8 | [
"MIT"
] | 64 | 2018-01-24T14:51:20.000Z | 2022-02-21T01:05:02.000Z | py2cytoscape/cyrest/apps.py | g-simmons2/py2cytoscape | e2cd1c5d598e1da02f50273e958ddf574c523eb8 | [
"MIT"
] | 25 | 2018-01-20T20:29:39.000Z | 2021-04-09T17:28:58.000Z | from .base import *
class apps(object):
"""
cytoscape session interface as shown in CyREST's swagger documentation.
:param url: an url of the type 'http://' + host + ':' + str(port) + '/' + version + '/'.
"""
def __init__(self, url):
self.__url = url + 'commands/apps'
self.___url=... | 29.333333 | 115 | 0.619318 | 85 | 704 | 4.976471 | 0.682353 | 0.066194 | 0.047281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005769 | 0.261364 | 704 | 24 | 116 | 29.333333 | 0.807692 | 0.474432 | 0 | 0 | 0 | 0 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e0a6ed7005c76d81b3f4eee6fe5071c450705c7 | 2,425 | py | Python | Hilbert/Howto/hilbert-howto-4.py | OMerkel/Fractals | cce15672ebc19fa99dc1551fc257c3aed54e12c7 | [
"MIT"
] | 1 | 2019-04-30T20:38:24.000Z | 2019-04-30T20:38:24.000Z | Hilbert/Howto/hilbert-howto-4.py | OMerkel/Fractals | cce15672ebc19fa99dc1551fc257c3aed54e12c7 | [
"MIT"
] | null | null | null | Hilbert/Howto/hilbert-howto-4.py | OMerkel/Fractals | cce15672ebc19fa99dc1551fc257c3aed54e12c7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
How to draw a Hilbert Curve - Step 4
In step 2 and step 3 the turtle drew the same hilbert curve in iteration n=0
Now we prepare things for the next deeper iteration
"""
import turtle
COLOR = [ 'blue', 'red' ]
def hilbert_old( turtle, length, depth ):
if depth>=0:
tu... | 21.27193 | 77 | 0.590515 | 318 | 2,425 | 4.484277 | 0.27673 | 0.092567 | 0.119215 | 0.100982 | 0.558205 | 0.489481 | 0.489481 | 0.465638 | 0.45582 | 0.384292 | 0 | 0.037122 | 0.277938 | 2,425 | 113 | 78 | 21.460177 | 0.77727 | 0.077526 | 0 | 0.703704 | 0 | 0 | 0.004844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.018519 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.