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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0713bf1d16fde855bda0ed021b030d08feadd022 | 3,486 | py | Python | selfdrive/car/chrysler/radar_interface.py | 919bot/Tessa | 9b48ff9020e8fb6992fc78271f2720fd19e01093 | [
"MIT"
] | 85 | 2019-06-14T17:51:31.000Z | 2022-02-09T22:18:20.000Z | selfdrive/car/chrysler/radar_interface.py | 919bot/Tessa | 9b48ff9020e8fb6992fc78271f2720fd19e01093 | [
"MIT"
] | 4 | 2020-04-12T21:34:03.000Z | 2020-04-15T22:22:15.000Z | selfdrive/car/chrysler/radar_interface.py | 919bot/Tessa | 9b48ff9020e8fb6992fc78271f2720fd19e01093 | [
"MIT"
] | 73 | 2018-12-03T19:34:42.000Z | 2020-07-27T05:10:23.000Z | #!/usr/bin/env python3
import os
from opendbc.can.parser import CANParser
from cereal import car
from selfdrive.car.interfaces import RadarInterfaceBase
RADAR_MSGS_C = list(range(0x2c2, 0x2d4+2, 2)) # c_ messages 706,...,724
RADAR_MSGS_D = list(range(0x2a2, 0x2b4+2, 2)) # d_ messages
LAST_MSG = max(RADAR_MSGS_C + RA... | 37.085106 | 98 | 0.645439 | 520 | 3,486 | 4.126923 | 0.344231 | 0.062908 | 0.037279 | 0.029357 | 0.070829 | 0.031687 | 0 | 0 | 0 | 0 | 0 | 0.03624 | 0.240103 | 3,486 | 93 | 99 | 37.483871 | 0.773877 | 0.274527 | 0 | 0.03125 | 0 | 0 | 0.063651 | 0.019215 | 0 | 0 | 0.008006 | 0.010753 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.21875 | 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 |
071afc12457e1373ac1b61126e3c5e710f213fb9 | 1,536 | py | Python | app/util/auth2.py | FSU-ACM/Contest-Server | 00a71cdcee1a7e4d4e4d8e33b5d6decf27f02313 | [
"MIT"
] | 8 | 2019-01-13T21:57:53.000Z | 2021-11-29T12:32:48.000Z | app/util/auth2.py | FSU-ACM/Contest-Server | 00a71cdcee1a7e4d4e4d8e33b5d6decf27f02313 | [
"MIT"
] | 73 | 2018-02-13T00:58:39.000Z | 2022-02-10T11:59:53.000Z | app/util/auth2.py | FSU-ACM/Contest-Server | 00a71cdcee1a7e4d4e4d8e33b5d6decf27f02313 | [
"MIT"
] | 4 | 2018-02-08T18:56:54.000Z | 2019-02-13T19:01:53.000Z | """ util.auth2: Authentication tools
This module is based off of util.auth, except with the action
paradigm removed.
"""
from flask import session
from app.models import Account
from app.util import course as course_util
# Session keys
SESSION_EMAIL = 'email'
def create_account(email: str, password: str, f... | 26.033898 | 76 | 0.670573 | 204 | 1,536 | 4.946078 | 0.406863 | 0.044599 | 0.038652 | 0.033697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003439 | 0.242839 | 1,536 | 58 | 77 | 26.482759 | 0.864144 | 0.464844 | 0 | 0 | 0 | 0 | 0.013605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.086957 | 0.130435 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
071d3f55a7b2c99140b70a77b17ee7b9f4ba705d | 602 | py | Python | config.py | yasminbraga/ufopa-reports | 6d8b213eb0dfce6775d0bb0fd277e8dc09da041c | [
"MIT"
] | null | null | null | config.py | yasminbraga/ufopa-reports | 6d8b213eb0dfce6775d0bb0fd277e8dc09da041c | [
"MIT"
] | null | null | null | config.py | yasminbraga/ufopa-reports | 6d8b213eb0dfce6775d0bb0fd277e8dc09da041c | [
"MIT"
] | 2 | 2019-11-24T13:30:35.000Z | 2022-01-12T11:47:11.000Z | import os
class Config:
CSRF_ENABLED = True
SECRET_KEY = 'your-very-very-secret-key'
SQLALCHEMY_DATABASE_URI = 'postgresql:///flask_template_dev'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ECHO = True
class Development(Config):
ENV = 'development'
DEBUG = True
TESTING = False
... | 27.363636 | 212 | 0.752492 | 65 | 602 | 6.784615 | 0.661538 | 0.040816 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111765 | 0.152824 | 602 | 21 | 213 | 28.666667 | 0.752941 | 0 | 0 | 0 | 0 | 0.066667 | 0.403654 | 0.348837 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 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 |
071dbe42fd5b14449158462daf2a890df418a73d | 2,651 | py | Python | heat/api/openstack/v1/views/stacks_view.py | noironetworks/heat | 7cdadf1155f4d94cf8f967635b98e4012a7acfb7 | [
"Apache-2.0"
] | 265 | 2015-01-02T09:33:22.000Z | 2022-03-26T23:19:54.000Z | heat/api/openstack/v1/views/stacks_view.py | noironetworks/heat | 7cdadf1155f4d94cf8f967635b98e4012a7acfb7 | [
"Apache-2.0"
] | 8 | 2015-09-01T15:43:19.000Z | 2021-12-14T05:18:23.000Z | heat/api/openstack/v1/views/stacks_view.py | noironetworks/heat | 7cdadf1155f4d94cf8f967635b98e4012a7acfb7 | [
"Apache-2.0"
] | 295 | 2015-01-06T07:00:40.000Z | 2021-09-06T08:05:06.000Z | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# ... | 33.556962 | 78 | 0.659751 | 366 | 2,651 | 4.598361 | 0.387978 | 0.067736 | 0.117647 | 0.033274 | 0.058229 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003041 | 0.255753 | 2,651 | 78 | 79 | 33.987179 | 0.849975 | 0.311581 | 0 | 0.041667 | 0 | 0 | 0.028286 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.0625 | false | 0 | 0.083333 | 0 | 0.229167 | 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 |
072012e3a0677e91ae06d829a2d1c70bfa487fe4 | 1,502 | py | Python | bot/constants/messages.py | aasw0ng/thornode-telegram-bot | 5f73b882381548f45fc9e690c6e4845def9600b7 | [
"MIT"
] | 15 | 2020-04-21T07:51:26.000Z | 2021-11-02T05:45:48.000Z | bot/constants/messages.py | aasw0ng/thornode-telegram-bot | 5f73b882381548f45fc9e690c6e4845def9600b7 | [
"MIT"
] | 78 | 2020-04-13T23:01:16.000Z | 2021-05-09T11:46:25.000Z | bot/constants/messages.py | aasw0ng/thornode-telegram-bot | 5f73b882381548f45fc9e690c6e4845def9600b7 | [
"MIT"
] | 5 | 2020-09-03T21:19:16.000Z | 2021-11-20T00:17:56.000Z | from enum import Enum
from constants.globals import HEALTH_EMOJIS
NETWORK_ERROR = '😱 There was an error while getting data 😱\nAn API endpoint is down!'
HEALTH_LEGEND = f'\n*Node health*:\n{HEALTH_EMOJIS[True]} - *healthy*\n{HEALTH_EMOJIS[False]} - *unhealthy*\n' \
f'{HEALTH_EMOJIS[None]} - *unknown*... | 35.761905 | 112 | 0.631158 | 212 | 1,502 | 4.646226 | 0.353774 | 0.079188 | 0.077157 | 0.032487 | 0.292386 | 0.162437 | 0.162437 | 0.162437 | 0.162437 | 0.162437 | 0 | 0 | 0.216378 | 1,502 | 41 | 113 | 36.634146 | 0.774002 | 0 | 0 | 0 | 0 | 0.115385 | 0.482345 | 0.169221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0.076923 | 0.538462 | 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 |
0720bde47f5a6d668b162186b490b208d369a3a2 | 233 | py | Python | desktop/core/ext-py/pyasn1-0.1.8/pyasn1/compat/iterfunc.py | kokosing/hue | 2307f5379a35aae9be871e836432e6f45138b3d9 | [
"Apache-2.0"
] | 422 | 2015-01-08T14:08:08.000Z | 2022-02-07T11:47:37.000Z | desktop/core/ext-py/pyasn1-0.1.8/pyasn1/compat/iterfunc.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 581 | 2015-01-01T08:07:16.000Z | 2022-02-23T11:44:37.000Z | desktop/core/ext-py/pyasn1-0.1.8/pyasn1/compat/iterfunc.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 115 | 2015-01-08T14:41:00.000Z | 2022-02-13T12:31:17.000Z | from sys import version_info
if version_info[0] <= 2 and version_info[1] <= 4:
def all(iterable):
for element in iterable:
if not element:
return False
return True
else:
all = all
| 21.181818 | 49 | 0.579399 | 32 | 233 | 4.125 | 0.6875 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02649 | 0.351931 | 233 | 10 | 50 | 23.3 | 0.847682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07229c65c61816346ca75d9d08af09c5eb62b6ff | 6,813 | py | Python | src/mf_horizon_client/client/pipelines/blueprints.py | MF-HORIZON/mf-horizon-python-client | 67a4a094767cb8e5f01956f20f5ca7726781614a | [
"MIT"
] | null | null | null | src/mf_horizon_client/client/pipelines/blueprints.py | MF-HORIZON/mf-horizon-python-client | 67a4a094767cb8e5f01956f20f5ca7726781614a | [
"MIT"
] | null | null | null | src/mf_horizon_client/client/pipelines/blueprints.py | MF-HORIZON/mf-horizon-python-client | 67a4a094767cb8e5f01956f20f5ca7726781614a | [
"MIT"
] | null | null | null | from enum import Enum
class BlueprintType(Enum):
"""
A blueprint is a pipeline template in horizon, and must be specified when creating a new pipeline
Nonlinear
===============================================================================================================
A nonlinear pipeline co... | 39.842105 | 122 | 0.57405 | 697 | 6,813 | 5.591105 | 0.311334 | 0.05671 | 0.056454 | 0.053118 | 0.296638 | 0.283551 | 0.283551 | 0.253785 | 0.249423 | 0.214267 | 0 | 0.003441 | 0.189637 | 6,813 | 170 | 123 | 40.076471 | 0.702409 | 0.862322 | 0 | 0 | 0 | 0 | 0.304721 | 0.049356 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 1 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0723f800260b47fe29201f275a3497c9e0250212 | 6,758 | py | Python | pyChess/olaf/views.py | An-Alone-Cow/pyChess | 2729a3a89e4d7d79659488ecb1b0bff9cac281a3 | [
"MIT"
] | null | null | null | pyChess/olaf/views.py | An-Alone-Cow/pyChess | 2729a3a89e4d7d79659488ecb1b0bff9cac281a3 | [
"MIT"
] | 18 | 2017-02-05T17:52:41.000Z | 2017-02-16T09:04:39.000Z | pyChess/olaf/views.py | An-Alone-Cow/pyChess | 2729a3a89e4d7d79659488ecb1b0bff9cac281a3 | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.shortcuts import render
from django.urls import reverse
from django.http import HttpResponseRedirect, HttpResponse
from django.utils import timezone
from olaf.models import *
from olaf.forms import *
from... | 31.877358 | 175 | 0.683042 | 794 | 6,758 | 5.680101 | 0.185139 | 0.098004 | 0.12439 | 0.092683 | 0.383814 | 0.33082 | 0.322838 | 0.322838 | 0.322838 | 0.322838 | 0 | 0.000365 | 0.188369 | 6,758 | 212 | 176 | 31.877358 | 0.821878 | 0.002072 | 0 | 0.394118 | 0 | 0 | 0.178529 | 0.038701 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064706 | false | 0.088235 | 0.058824 | 0 | 0.276471 | 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 |
072e9a202d69d5d6154bfb44a978d712661a1d52 | 869 | py | Python | examples/morpho.py | jaideep-seth/PyOpenWorm | c36baeda9590334ba810296934973da34f0eab78 | [
"MIT"
] | null | null | null | examples/morpho.py | jaideep-seth/PyOpenWorm | c36baeda9590334ba810296934973da34f0eab78 | [
"MIT"
] | null | null | null | examples/morpho.py | jaideep-seth/PyOpenWorm | c36baeda9590334ba810296934973da34f0eab78 | [
"MIT"
] | null | null | null | """
How to load morphologies of certain cells from the database.
"""
#this is an expected failure right now, as morphology is not implemented
from __future__ import absolute_import
from __future__ import print_function
import PyOpenWorm as P
from PyOpenWorm.context import Context
from PyOpenWorm.worm import Worm
from ... | 34.76 | 118 | 0.749137 | 128 | 869 | 4.984375 | 0.585938 | 0.031348 | 0.050157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001376 | 0.163406 | 869 | 24 | 119 | 36.208333 | 0.876204 | 0.417722 | 0 | 0 | 0 | 0 | 0.080972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0730aed278d58141b67cbd8f8213146b99199686 | 13,377 | py | Python | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/dateperiod_extractor_config.py | felaray/Recognizers-Text | f514fd61c8d472ed92565261162712409f655312 | [
"MIT"
] | null | null | null | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/dateperiod_extractor_config.py | felaray/Recognizers-Text | f514fd61c8d472ed92565261162712409f655312 | [
"MIT"
] | 6 | 2021-12-20T17:13:35.000Z | 2022-03-29T08:54:11.000Z | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/dateperiod_extractor_config.py | felaray/Recognizers-Text | f514fd61c8d472ed92565261162712409f655312 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import List, Pattern
from recognizers_text.utilities import RegExpUtility
from recognizers_number.number import BaseNumberParser
from recognizers_number.number.italian.extractors import ItalianIntegerExtractor,... | 38.329513 | 120 | 0.729984 | 1,394 | 13,377 | 6.584648 | 0.14132 | 0.104587 | 0.130733 | 0.150343 | 0.554962 | 0.475106 | 0.311036 | 0.2095 | 0.070269 | 0.041835 | 0 | 0.000283 | 0.208268 | 13,377 | 348 | 121 | 38.439655 | 0.866396 | 0.015026 | 0 | 0.229965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002874 | 0 | 1 | 0.1777 | false | 0 | 0.052265 | 0.167247 | 0.414634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0745f258c3fda6d1caa28babca894afcfee11f9f | 10,829 | py | Python | run_classifier.py | wj-Mcat/model-getting-started | abe8c9df10b45841eeb38e859e680a37ec03fe8a | [
"Apache-2.0"
] | null | null | null | run_classifier.py | wj-Mcat/model-getting-started | abe8c9df10b45841eeb38e859e680a37ec03fe8a | [
"Apache-2.0"
] | null | null | null | run_classifier.py | wj-Mcat/model-getting-started | abe8c9df10b45841eeb38e859e680a37ec03fe8a | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 38.537367 | 122 | 0.651676 | 1,301 | 10,829 | 5.170638 | 0.222137 | 0.020068 | 0.025123 | 0.016055 | 0.318716 | 0.28839 | 0.249145 | 0.210644 | 0.145087 | 0.087112 | 0 | 0.003088 | 0.252286 | 10,829 | 280 | 123 | 38.675 | 0.827714 | 0.128636 | 0 | 0.073298 | 0 | 0 | 0.097074 | 0.019873 | 0 | 0 | 0 | 0 | 0.010471 | 0 | null | null | 0 | 0.041885 | 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 |
0748f0d589516cda25a4a57eb049a757da513fda | 3,169 | py | Python | utilidades/texto.py | DeadZombie14/chillMagicCarPygame | 756bb6d27939bed3c2834222d03096e90f05a788 | [
"MIT"
] | null | null | null | utilidades/texto.py | DeadZombie14/chillMagicCarPygame | 756bb6d27939bed3c2834222d03096e90f05a788 | [
"MIT"
] | null | null | null | utilidades/texto.py | DeadZombie14/chillMagicCarPygame | 756bb6d27939bed3c2834222d03096e90f05a788 | [
"MIT"
] | null | null | null | import pygame
class Texto:
def __init__(self, screen, text, x, y, text_size = 20, fuente = 'Calibri', italic = False, bold= False, subrayado= False, color = (250, 240, 230), bg = [] ):
self.screen = screen
fg = color
self.coord = x, y
#load font, prepare values
f... | 31.376238 | 161 | 0.517829 | 407 | 3,169 | 3.87715 | 0.265356 | 0.015209 | 0.045627 | 0.041825 | 0.323194 | 0.323194 | 0.277567 | 0.204056 | 0.048162 | 0.048162 | 0 | 0.023055 | 0.34301 | 3,169 | 101 | 162 | 31.376238 | 0.73487 | 0.214579 | 0 | 0.362069 | 0 | 0 | 0.008895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0.051724 | 0.017241 | 0.034483 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
074b42be48178517185311cda7a91881826a6fd2 | 654 | py | Python | sktime/annotation/tests/test_all_annotators.py | Rubiel1/sktime | 2fd2290fb438224f11ddf202148917eaf9b73a87 | [
"BSD-3-Clause"
] | 1 | 2021-09-08T14:24:52.000Z | 2021-09-08T14:24:52.000Z | sktime/annotation/tests/test_all_annotators.py | Rubiel1/sktime | 2fd2290fb438224f11ddf202148917eaf9b73a87 | [
"BSD-3-Clause"
] | null | null | null | sktime/annotation/tests/test_all_annotators.py | Rubiel1/sktime | 2fd2290fb438224f11ddf202148917eaf9b73a87 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for sktime annotators."""
import pandas as pd
import pytest
from sktime.registry import all_estimators
from sktime.utils._testing.estimator_checks import _make_args
ALL_ANNOTATORS = all_estimators(estimator_types="series-annotator", return_names=False)
@pytest.mark.parametrize("Est... | 28.434783 | 87 | 0.750765 | 83 | 654 | 5.674699 | 0.506024 | 0.050955 | 0.080679 | 0.089172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001764 | 0.133028 | 654 | 22 | 88 | 29.727273 | 0.828924 | 0.120795 | 0 | 0 | 0 | 0 | 0.062057 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
074b7ef708bdd483e5b790825c69a90db600e852 | 569 | py | Python | raspberry-pi-camera/cam.py | AlexMassin/mlh-react-vr-website | dc08788ccdecc9923b8dbfd31fa452cb83d214ae | [
"MIT"
] | 1 | 2019-05-19T03:37:26.000Z | 2019-05-19T03:37:26.000Z | raspberry-pi-camera/cam.py | AlexMassin/mlh-react-vr-website | dc08788ccdecc9923b8dbfd31fa452cb83d214ae | [
"MIT"
] | null | null | null | raspberry-pi-camera/cam.py | AlexMassin/mlh-react-vr-website | dc08788ccdecc9923b8dbfd31fa452cb83d214ae | [
"MIT"
] | 1 | 2019-10-02T20:18:54.000Z | 2019-10-02T20:18:54.000Z | picamera import PiCamera
from time import sleep
import boto3
import os.path
import subprocess
s3 = boto3.client('s3')
bucket = 'cambucket21'
camera = PiCamera()
#camera.resolution(1920,1080)
x = 0
camerafile = x
while True:
if (x == 6):
x = 1
else:
x = x + 1
camera.start_preview()
camera.start_recording('/home/pi/' ... | 20.321429 | 82 | 0.671353 | 88 | 569 | 4.284091 | 0.477273 | 0.05305 | 0.071618 | 0.079576 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063136 | 0.137083 | 569 | 27 | 83 | 21.074074 | 0.704684 | 0.049209 | 0 | 0 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.217391 | 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 |
0754a45f518b76cfc3fadb21e0d4b383c11aeb7f | 2,937 | py | Python | magma/operators.py | Kuree/magma | be2439aa897768c5810be72e3a55a6f772ac83cf | [
"MIT"
] | null | null | null | magma/operators.py | Kuree/magma | be2439aa897768c5810be72e3a55a6f772ac83cf | [
"MIT"
] | null | null | null | magma/operators.py | Kuree/magma | be2439aa897768c5810be72e3a55a6f772ac83cf | [
"MIT"
] | null | null | null | from magma import _BitType, BitType, BitsType, UIntType, SIntType
class MantleImportError(RuntimeError):
pass
class UndefinedOperatorError(RuntimeError):
pass
def raise_mantle_import_error_unary(self):
raise MantleImportError(
"Operators are not defined until mantle has been imported")
def r... | 26.459459 | 79 | 0.571672 | 286 | 2,937 | 5.003497 | 0.237762 | 0.069182 | 0.106918 | 0.138365 | 0.779874 | 0.708595 | 0.628232 | 0.602376 | 0.532495 | 0.436059 | 0 | 0 | 0.330609 | 2,937 | 110 | 80 | 26.7 | 0.727874 | 0.069459 | 0 | 0.619048 | 0 | 0 | 0.194424 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 1 | 0.059524 | false | 0.02381 | 0.178571 | 0 | 0.27381 | 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 |
0758c8b4614be9ea14ff7452e9accfcfb90b432b | 1,263 | py | Python | dvc/utils/stage.py | Abrosimov-a-a/dvc | 93280c937b9160003afb0d2f3fd473c03d6d9673 | [
"Apache-2.0"
] | null | null | null | dvc/utils/stage.py | Abrosimov-a-a/dvc | 93280c937b9160003afb0d2f3fd473c03d6d9673 | [
"Apache-2.0"
] | null | null | null | dvc/utils/stage.py | Abrosimov-a-a/dvc | 93280c937b9160003afb0d2f3fd473c03d6d9673 | [
"Apache-2.0"
] | null | null | null | import yaml
from ruamel.yaml import YAML
from ruamel.yaml.error import YAMLError
try:
from yaml import CSafeLoader as SafeLoader
except ImportError:
from yaml import SafeLoader
from dvc.exceptions import StageFileCorruptedError
from dvc.utils.compat import open
def load_stage_file(path):
with open(path,... | 26.87234 | 76 | 0.69517 | 174 | 1,263 | 4.971264 | 0.465517 | 0.057803 | 0.03237 | 0.046243 | 0.224277 | 0.131792 | 0.131792 | 0.131792 | 0.131792 | 0 | 0 | 0.002024 | 0.217736 | 1,263 | 46 | 77 | 27.456522 | 0.873482 | 0.218527 | 0 | 0.25 | 0 | 0 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.535714 | 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 |
075cb80186092395148f9c03498c024c22cfd0b5 | 793 | py | Python | utils/nlp.py | splovyt/SFPython-Project-Night | 50f20f581e074401d59d91457bac2a69631bef61 | [
"Apache-2.0"
] | 1 | 2019-04-17T18:02:59.000Z | 2019-04-17T18:02:59.000Z | utils/nlp.py | splovyt/SFPython-Project-Night | 50f20f581e074401d59d91457bac2a69631bef61 | [
"Apache-2.0"
] | null | null | null | utils/nlp.py | splovyt/SFPython-Project-Night | 50f20f581e074401d59d91457bac2a69631bef61 | [
"Apache-2.0"
] | null | null | null | import ssl
import nltk
from textblob import TextBlob
from nltk.corpus import stopwords
# set SSL
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
pass
else:
ssl._create_default_https_context = _create_unverified_https_context
# download noun data (if required... | 26.433333 | 98 | 0.760404 | 108 | 793 | 5.416667 | 0.444444 | 0.082051 | 0.071795 | 0.095727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001493 | 0.155107 | 793 | 29 | 99 | 27.344828 | 0.871642 | 0.211854 | 0 | 0.105263 | 0 | 0 | 0.042414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
075cf0dd079f839e7d44c9491837f8a19123cdd5 | 1,418 | py | Python | toolbox/core/management/commands/celery_beat_resource_scraper.py | akshedu/toolbox | 7c647433b68f1098ee4c8623f836f74785dc970c | [
"MIT"
] | null | null | null | toolbox/core/management/commands/celery_beat_resource_scraper.py | akshedu/toolbox | 7c647433b68f1098ee4c8623f836f74785dc970c | [
"MIT"
] | null | null | null | toolbox/core/management/commands/celery_beat_resource_scraper.py | akshedu/toolbox | 7c647433b68f1098ee4c8623f836f74785dc970c | [
"MIT"
] | null | null | null |
from django_celery_beat.models import PeriodicTask, IntervalSchedule
from django.core.management.base import BaseCommand
from django.db import IntegrityError
class Command(BaseCommand):
def handle(self, *args, **options):
try:
schedule_channel, created = IntervalSchedule.objects.get_or_create... | 32.227273 | 79 | 0.499295 | 110 | 1,418 | 6.309091 | 0.445455 | 0.115274 | 0.126801 | 0.132565 | 0.600865 | 0.56196 | 0.458213 | 0.325648 | 0.325648 | 0.204611 | 0 | 0.002535 | 0.443583 | 1,418 | 43 | 80 | 32.976744 | 0.87706 | 0 | 0 | 0.457143 | 0 | 0 | 0.081979 | 0.062191 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.114286 | 0.085714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0760aecd744d04b7a42ae02e90ca8b423ee0a619 | 2,834 | py | Python | ucscsdk/mometa/storage/StorageScsiLunRef.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 9 | 2016-12-22T08:39:25.000Z | 2019-09-10T15:36:19.000Z | ucscsdk/mometa/storage/StorageScsiLunRef.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 10 | 2017-01-31T06:59:56.000Z | 2021-11-09T09:14:37.000Z | ucscsdk/mometa/storage/StorageScsiLunRef.py | parag-may4/ucscsdk | 2ea762fa070330e3a4e2c21b46b157469555405b | [
"Apache-2.0"
] | 13 | 2016-11-14T07:42:58.000Z | 2022-02-10T17:32:05.000Z | """This module contains the general information for StorageScsiLunRef ManagedObject."""
from ...ucscmo import ManagedObject
from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta
from ...ucscmeta import VersionMeta
class StorageScsiLunRefConsts():
pass
class StorageScsiLunRef(ManagedObject):
"""Th... | 50.607143 | 251 | 0.642202 | 301 | 2,834 | 5.887043 | 0.315615 | 0.111738 | 0.162528 | 0.165914 | 0.235892 | 0.176072 | 0.119639 | 0.069977 | 0.069977 | 0.069977 | 0 | 0.03223 | 0.178899 | 2,834 | 55 | 252 | 51.527273 | 0.729265 | 0.040226 | 0 | 0 | 0 | 0.04878 | 0.24003 | 0.069055 | 0 | 0 | 0.006278 | 0 | 0 | 1 | 0.02439 | false | 0.02439 | 0.073171 | 0 | 0.268293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0761a4f4179e9679d7d567a51af6174207abac78 | 16,697 | py | Python | saxstools/fullsaxs.py | latrocinia/saxstools | 8e88474f62466b745791c0ccbb07c80a959880f3 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | saxstools/fullsaxs.py | latrocinia/saxstools | 8e88474f62466b745791c0ccbb07c80a959880f3 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | saxstools/fullsaxs.py | latrocinia/saxstools | 8e88474f62466b745791c0ccbb07c80a959880f3 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | from __future__ import print_function, absolute_import, division
from sys import stdout as _stdout
from time import time as _time
import numpy as np
try:
import pyfftw
pyfftw.interfaces.cache.enable()
pyfftw.interfaces.cache.set_keepalive_time(10)
rfftn = pyfftw.interfaces.numpy_fft.rfftn
irfftn =... | 32.675147 | 115 | 0.581302 | 2,239 | 16,697 | 4.171952 | 0.129075 | 0.018735 | 0.012525 | 0.020876 | 0.22139 | 0.14902 | 0.091532 | 0.039503 | 0.036078 | 0.013061 | 0 | 0.018114 | 0.262682 | 16,697 | 510 | 116 | 32.739216 | 0.740638 | 0.033898 | 0 | 0.1 | 0 | 0 | 0.128305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002778 | 0.058333 | null | null | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0765d0b1f7f6046c9a5ec38c71317e234a345a45 | 270 | py | Python | pyrocco/__init__.py | joaopalmeiro/pyrocco | 4144f56d654500c3ec49cb04c06b98296004eafe | [
"MIT"
] | null | null | null | pyrocco/__init__.py | joaopalmeiro/pyrocco | 4144f56d654500c3ec49cb04c06b98296004eafe | [
"MIT"
] | 4 | 2021-05-31T16:44:16.000Z | 2021-05-31T17:08:04.000Z | pyrocco/__init__.py | joaopalmeiro/pyrocco | 4144f56d654500c3ec49cb04c06b98296004eafe | [
"MIT"
] | null | null | null | __package_name__ = "pyrocco"
__version__ = "0.1.0"
__author__ = "João Palmeiro"
__author_email__ = "jm.palmeiro@campus.fct.unl.pt"
__description__ = "A Python CLI to add the Party Parrot to a custom background image."
__url__ = "https://github.com/joaopalmeiro/pyrocco"
| 38.571429 | 86 | 0.766667 | 38 | 270 | 4.763158 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012552 | 0.114815 | 270 | 6 | 87 | 45 | 0.74477 | 0 | 0 | 0 | 0 | 0 | 0.588889 | 0.107407 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0768b4de117d71513a10b4439456e7226bc8f05f | 850 | py | Python | 2020/day08/machine.py | ingjrs01/adventofcode | c5e4f0158dac0efc2dbfc10167f2700693b41fea | [
"Apache-2.0"
] | null | null | null | 2020/day08/machine.py | ingjrs01/adventofcode | c5e4f0158dac0efc2dbfc10167f2700693b41fea | [
"Apache-2.0"
] | null | null | null | 2020/day08/machine.py | ingjrs01/adventofcode | c5e4f0158dac0efc2dbfc10167f2700693b41fea | [
"Apache-2.0"
] | null | null | null | class Machine():
def __init__(self):
self.pointer = 0
self.accum = 0
self.visited = []
def run(self,program):
salir = False
while (salir == False):
if (self.pointer in self.visited):
return False
if (self.pointer >= len(progr... | 22.368421 | 54 | 0.483529 | 84 | 850 | 4.845238 | 0.309524 | 0.243243 | 0.176904 | 0.088452 | 0.108108 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0.013917 | 0.408235 | 850 | 37 | 55 | 22.972973 | 0.795229 | 0 | 0 | 0.083333 | 0 | 0 | 0.007059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.416667 | 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 |
4acaa4e6a8b6fa3eb236788a62a84f44c80e376f | 3,451 | py | Python | ingenico/direct/sdk/domain/customer_token.py | Ingenico/direct-sdk-python3 | d2b30b8e8afb307153a1f19ac4c054d5344449ce | [
"Apache-2.0"
] | null | null | null | ingenico/direct/sdk/domain/customer_token.py | Ingenico/direct-sdk-python3 | d2b30b8e8afb307153a1f19ac4c054d5344449ce | [
"Apache-2.0"
] | 1 | 2021-03-30T12:55:39.000Z | 2021-04-08T08:23:27.000Z | ingenico/direct/sdk/domain/customer_token.py | Ingenico/direct-sdk-python3 | d2b30b8e8afb307153a1f19ac4c054d5344449ce | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://support.direct.ingenico.com/documentation/api/reference/
#
from ingenico.direct.sdk.data_object import DataObject
from ingenico.direct.sdk.domain.address import Address
from ingenico.direct.sdk.domain.company_informatio... | 41.578313 | 109 | 0.703854 | 331 | 3,451 | 7.151057 | 0.18429 | 0.091255 | 0.050275 | 0.058302 | 0.437262 | 0.370934 | 0.109421 | 0.069708 | 0.069708 | 0.069708 | 0 | 0.000364 | 0.204578 | 3,451 | 82 | 110 | 42.085366 | 0.861931 | 0.135903 | 0 | 0.056604 | 1 | 0 | 0.116183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0 | 0.075472 | 0 | 0.396226 | 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 |
4ace72273e1ae90dc1c68aa24e3b23afcdc01695 | 2,141 | py | Python | djangosige/apps/cadastro/models/empresa.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | djangosige/apps/cadastro/models/empresa.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | djangosige/apps/cadastro/models/empresa.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from django.db import models
from django.db.models.signals import post_delete
from django.dispatch import receiver
from .base import Pessoa
from djangosige.apps.login.models import Usuario
from djangosige.configs.settings import MEDIA_ROOT
def logo_directory_path(inst... | 32.439394 | 105 | 0.666978 | 278 | 2,141 | 4.956835 | 0.388489 | 0.05225 | 0.040639 | 0.03701 | 0.123367 | 0.091437 | 0.044993 | 0.044993 | 0 | 0 | 0 | 0.005425 | 0.225128 | 2,141 | 65 | 106 | 32.938462 | 0.825196 | 0.061653 | 0 | 0.045455 | 0 | 0 | 0.069624 | 0.016503 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.022727 | 0.159091 | 0.045455 | 0.590909 | 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 |
4ad04912e975ba67417ff28c203441d4697e2178 | 846 | py | Python | autocomplete/migrations/0001_initial.py | openshift-eng/art-dashboard-server | af4e78b3d2213c30038cf69de646f25fd57c9e3c | [
"Apache-2.0"
] | 1 | 2020-09-21T06:48:47.000Z | 2020-09-21T06:48:47.000Z | autocomplete/migrations/0001_initial.py | adarshtri/build_interface_server | af4e78b3d2213c30038cf69de646f25fd57c9e3c | [
"Apache-2.0"
] | 5 | 2021-02-05T19:43:08.000Z | 2021-06-04T23:23:29.000Z | autocomplete/migrations/0001_initial.py | openshift-eng/art-dashboard-server | af4e78b3d2213c30038cf69de646f25fd57c9e3c | [
"Apache-2.0"
] | 6 | 2021-02-06T07:21:37.000Z | 2021-06-07T12:40:37.000Z | # Generated by Django 3.0.7 on 2020-07-27 19:23
import build.models
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AutoCompleteRecord',
fields=[
... | 29.172414 | 100 | 0.588652 | 83 | 846 | 5.843373 | 0.626506 | 0.068041 | 0.053608 | 0.127835 | 0.22268 | 0.22268 | 0.22268 | 0.22268 | 0.22268 | 0 | 0 | 0.033445 | 0.293144 | 846 | 28 | 101 | 30.214286 | 0.777592 | 0.053191 | 0 | 0 | 1 | 0 | 0.130163 | 0.061327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ad19826ee08450eee4ee8d57542ce3dfd0b5399 | 636 | py | Python | unet3d/config.py | fcollman/pytorch-3dunet | 303336bfdc0234f075c70e0c59759d09bc4081b8 | [
"MIT"
] | null | null | null | unet3d/config.py | fcollman/pytorch-3dunet | 303336bfdc0234f075c70e0c59759d09bc4081b8 | [
"MIT"
] | null | null | null | unet3d/config.py | fcollman/pytorch-3dunet | 303336bfdc0234f075c70e0c59759d09bc4081b8 | [
"MIT"
] | null | null | null | import argparse
import os
import torch
import yaml
DEFAULT_DEVICE = 'cuda:0'
def load_config():
parser = argparse.ArgumentParser(description='UNet3D training')
parser.add_argument('--config', type=str, help='Path to the YAML config file', required=True)
args = parser.parse_args()
config = _load_conf... | 26.5 | 97 | 0.720126 | 88 | 636 | 5.045455 | 0.5 | 0.067568 | 0.058559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003766 | 0.165094 | 636 | 23 | 98 | 27.652174 | 0.832392 | 0.037736 | 0 | 0 | 0 | 0 | 0.119672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0.066667 | 0.533333 | 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 |
4ad2ee44fa3231c3be7b4de5ecea4010665c6467 | 738 | py | Python | A2/semcor_chunk.py | Rogerwlk/Natural-Language-Processing | e1c0499180cec49ac0060aad7f0da00b61cfac94 | [
"MIT"
] | null | null | null | A2/semcor_chunk.py | Rogerwlk/Natural-Language-Processing | e1c0499180cec49ac0060aad7f0da00b61cfac94 | [
"MIT"
] | null | null | null | A2/semcor_chunk.py | Rogerwlk/Natural-Language-Processing | e1c0499180cec49ac0060aad7f0da00b61cfac94 | [
"MIT"
] | null | null | null | from nltk.corpus import semcor
class semcor_chunk:
def __init__(self, chunk):
self.chunk = chunk
#returns the synset if applicable, otherwise returns None
def get_syn_set(self):
try:
synset = self.chunk.label().synset()
return synset
except AttributeError:
try:
synset = wn.synset(self.chunk.lab... | 19.945946 | 58 | 0.682927 | 108 | 738 | 4.462963 | 0.388889 | 0.112033 | 0.037344 | 0.082988 | 0.153527 | 0.153527 | 0.153527 | 0.153527 | 0.153527 | 0.153527 | 0 | 0.001712 | 0.208672 | 738 | 37 | 59 | 19.945946 | 0.82363 | 0.398374 | 0 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.526316 | 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 |
4ad31bb3fb3f281f7ca24b5d13a95985f1d2e610 | 868 | py | Python | deps/lib/python3.5/site-packages/netdisco/discoverables/samsung_tv.py | jfarmer08/hassio | 792a6071a97bb33857c14c9937946233c620035c | [
"MIT"
] | 78 | 2017-08-19T03:46:13.000Z | 2020-02-19T04:29:45.000Z | deps/lib/python3.5/site-packages/netdisco/discoverables/samsung_tv.py | jfarmer08/hassio | 792a6071a97bb33857c14c9937946233c620035c | [
"MIT"
] | 5 | 2017-08-21T16:33:08.000Z | 2018-06-21T18:37:18.000Z | deps/lib/python3.5/site-packages/netdisco/discoverables/samsung_tv.py | jfarmer08/hassio | 792a6071a97bb33857c14c9937946233c620035c | [
"MIT"
] | 13 | 2017-08-19T16:46:08.000Z | 2018-11-05T23:11:34.000Z | """Discover Samsung Smart TV services."""
from . import SSDPDiscoverable
from ..const import ATTR_NAME
# For some models, Samsung forces a [TV] prefix to the user-specified name.
FORCED_NAME_PREFIX = '[TV]'
class Discoverable(SSDPDiscoverable):
"""Add support for discovering Samsung Smart TV services."""
de... | 33.384615 | 79 | 0.691244 | 110 | 868 | 5.3 | 0.490909 | 0.054889 | 0.082333 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001449 | 0.205069 | 868 | 25 | 80 | 34.72 | 0.843478 | 0.361751 | 0 | 0 | 0 | 0 | 0.093985 | 0.086466 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4ad38b4a5080c2f9ece1062934512164a3b8e38a | 324 | py | Python | sapmi/employees/migrations/0002_remove_employee_phone_alt.py | Juhanostby/django-apotek-sapmi | 972a05ca9d54eed62b640572fcf582cc8751d15a | [
"MIT"
] | 1 | 2021-09-04T17:29:14.000Z | 2021-09-04T17:29:14.000Z | sapmi/employees/migrations/0002_remove_employee_phone_alt.py | Juhanostby/django-apotek-sapmi | 972a05ca9d54eed62b640572fcf582cc8751d15a | [
"MIT"
] | 1 | 2021-07-19T15:54:27.000Z | 2021-07-20T23:01:57.000Z | sapmi/employees/migrations/0002_remove_employee_phone_alt.py | Juhanostby/django-apotek-sapmi | 972a05ca9d54eed62b640572fcf582cc8751d15a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-12-21 19:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('employees', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='employee',
name='phone_alt',
),
... | 18 | 47 | 0.58642 | 34 | 324 | 5.5 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0837 | 0.299383 | 324 | 17 | 48 | 19.058824 | 0.740088 | 0.138889 | 0 | 0 | 1 | 0 | 0.137184 | 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 |
4ad5badf5fa7e630a25fb87b42b8e063138bfecd | 495 | py | Python | opencv/resizing.py | hackerman-101/Hacktoberfest-2022 | 839f28293930987da55f8a2414efaa1cf9676cc9 | [
"MIT"
] | 1 | 2022-02-22T17:13:54.000Z | 2022-02-22T17:13:54.000Z | opencv/resizing.py | hackerman-101/Hacktoberfest-2022 | 839f28293930987da55f8a2414efaa1cf9676cc9 | [
"MIT"
] | 11 | 2022-01-24T20:42:11.000Z | 2022-02-27T23:58:24.000Z | opencv/resizing.py | hackerman-101/Hacktoberfest-2022 | 839f28293930987da55f8a2414efaa1cf9676cc9 | [
"MIT"
] | null | null | null | import cv2 as cv
import numpy as np
cap = cv.VideoCapture(1)
print(cap.get(cv.CAP_PROP_FRAME_WIDTH))
print(cap.get(cv.CAP_PROP_FRAME_HEIGHT))
cap.set(3,3000)
cap.set(4,3000)
print(cap.get(cv.CAP_PROP_FRAME_WIDTH))
print(cap.get(cv.CAP_PROP_FRAME_HEIGHT))
while (cap.isOpened()):
ret , frame = cap.read()
if... | 18.333333 | 45 | 0.656566 | 80 | 495 | 3.9125 | 0.45 | 0.102236 | 0.140575 | 0.166134 | 0.389776 | 0.389776 | 0.389776 | 0.389776 | 0.389776 | 0.389776 | 0 | 0.037406 | 0.189899 | 495 | 26 | 46 | 19.038462 | 0.743142 | 0 | 0 | 0.315789 | 0 | 0 | 0.014141 | 0 | 0 | 0 | 0.008081 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ad5ce0b4290abab4891890ac501c3156152672b | 13,902 | py | Python | minibenchmarks/go.py | kevinxucs/pyston | bdb87c1706ac74a0d15d9bc2bae53798678a5f14 | [
"Apache-2.0"
] | 1 | 2020-02-06T14:28:45.000Z | 2020-02-06T14:28:45.000Z | minibenchmarks/go.py | kevinxucs/pyston | bdb87c1706ac74a0d15d9bc2bae53798678a5f14 | [
"Apache-2.0"
] | null | null | null | minibenchmarks/go.py | kevinxucs/pyston | bdb87c1706ac74a0d15d9bc2bae53798678a5f14 | [
"Apache-2.0"
] | 1 | 2020-02-06T14:29:00.000Z | 2020-02-06T14:29:00.000Z | # from pypy-benchmarks/own/chaos.py, with some minor modifications
# (more output, took out the benchmark harness)
#
import random, math, sys, time
SIZE = 9
GAMES = 200
KOMI = 7.5
EMPTY, WHITE, BLACK = 0, 1, 2
SHOW = {EMPTY: '.', WHITE: 'o', BLACK: 'x'}
PASS = -1
MAXMOVES = SIZE*SIZE*3
TIMESTAMP = 0
MOVES = 0
def to... | 31.310811 | 105 | 0.534743 | 1,574 | 13,902 | 4.639771 | 0.135324 | 0.023415 | 0.013419 | 0.014378 | 0.193208 | 0.117486 | 0.088457 | 0.056963 | 0.022457 | 0.011502 | 0 | 0.01218 | 0.368077 | 13,902 | 443 | 106 | 31.38149 | 0.819124 | 0.039203 | 0 | 0.224599 | 0 | 0 | 0.004028 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0 | null | null | 0.024064 | 0.002674 | null | null | 0.002674 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4ad876898c7dcfaaa80fe53e3fa05c848775c82a | 1,828 | py | Python | bin/p3starcoordcheck.py | emkailu/PAT3DEM | 74e7a0f30179e49ea5c7da1bea893e21a3ed601a | [
"MIT"
] | null | null | null | bin/p3starcoordcheck.py | emkailu/PAT3DEM | 74e7a0f30179e49ea5c7da1bea893e21a3ed601a | [
"MIT"
] | null | null | null | bin/p3starcoordcheck.py | emkailu/PAT3DEM | 74e7a0f30179e49ea5c7da1bea893e21a3ed601a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import argparse
import pat3dem.star as p3s
import math
def main():
progname = os.path.basename(sys.argv[0])
usage = progname + """ [options] <coord star files>
Output the coord star files after deleting duplicate particles
"""
args_def = {'mindis':150}
parser = argp... | 30.466667 | 157 | 0.639497 | 280 | 1,828 | 4.021429 | 0.392857 | 0.035524 | 0.0373 | 0.030195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.193654 | 1,828 | 59 | 158 | 30.983051 | 0.748982 | 0.060722 | 0 | 0 | 0 | 0 | 0.239626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.104167 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ad89a5bebd4952730caed6adc03938d82e1dcd1 | 4,251 | py | Python | src/review_scraper.py | ryankirkland/voice-of-the-customer | 0214af45cc6aa76bfce64065f07c3f4781ee045e | [
"MIT"
] | null | null | null | src/review_scraper.py | ryankirkland/voice-of-the-customer | 0214af45cc6aa76bfce64065f07c3f4781ee045e | [
"MIT"
] | null | null | null | src/review_scraper.py | ryankirkland/voice-of-the-customer | 0214af45cc6aa76bfce64065f07c3f4781ee045e | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
import pandas as pd
import requests
import time
import sys
def reviews_scraper(asin_list, filename):
'''
Takes a list of asins, retrieves html for reviews page, and parses out key data points
Parameters
----------
List of ASINs (list of strings)
Returns:
-----... | 42.089109 | 285 | 0.482945 | 428 | 4,251 | 4.670561 | 0.376168 | 0.017509 | 0.03902 | 0.035018 | 0.106053 | 0.078039 | 0.028014 | 0 | 0 | 0 | 0 | 0.016304 | 0.394025 | 4,251 | 101 | 286 | 42.089109 | 0.759705 | 0.054575 | 0 | 0.236842 | 0 | 0.039474 | 0.21608 | 0.027889 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0.065789 | 0.065789 | 0 | 0.092105 | 0.092105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4adace3be34277664a2e8a315913402feb463667 | 3,788 | py | Python | lumberdata/metadata.py | cglumberjack/lumber_metadata | aebca5dbecb8d7684b1b169bf2961e4ab0daca2b | [
"MIT"
] | null | null | null | lumberdata/metadata.py | cglumberjack/lumber_metadata | aebca5dbecb8d7684b1b169bf2961e4ab0daca2b | [
"MIT"
] | null | null | null | lumberdata/metadata.py | cglumberjack/lumber_metadata | aebca5dbecb8d7684b1b169bf2961e4ab0daca2b | [
"MIT"
] | null | null | null | # noinspection PyUnresolvedReferences
import os
import re
# TODO I'm going to need to make a dictionary for my big list of stuff i care about and what's needed for
# every file type....
RAF = ['EXIF:LensModel', 'MakerNotes:RawImageHeight', 'MakerNotes:RawImageWidth', 'EXIF:CreateDate', 'EXIF:ModifyDate',
'EXI... | 35.735849 | 120 | 0.573654 | 429 | 3,788 | 5.020979 | 0.414918 | 0.01857 | 0.023677 | 0.029248 | 0.290622 | 0.213556 | 0.153203 | 0.153203 | 0.153203 | 0.153203 | 0 | 0.007361 | 0.282735 | 3,788 | 105 | 121 | 36.07619 | 0.785425 | 0.205385 | 0 | 0.269841 | 0 | 0 | 0.299619 | 0.042258 | 0 | 0 | 0 | 0.009524 | 0 | 1 | 0.079365 | false | 0.063492 | 0.031746 | 0 | 0.15873 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4adecc45d925a985d290d61ac2e4d5096ee82755 | 3,057 | py | Python | jug/subcommands/demo.py | rdenham/jug | 40925445a5f96f9eec237de37e46e6fabcce6526 | [
"MIT"
] | 309 | 2015-02-09T09:33:52.000Z | 2022-03-26T22:30:18.000Z | jug/subcommands/demo.py | zhaoxiugao/jug | 9c5e3930777658699bc9579c872a010a7c3bffe3 | [
"MIT"
] | 61 | 2015-01-25T18:11:14.000Z | 2020-10-15T06:52:13.000Z | jug/subcommands/demo.py | zhaoxiugao/jug | 9c5e3930777658699bc9579c872a010a7c3bffe3 | [
"MIT"
] | 51 | 2015-01-25T17:40:31.000Z | 2022-02-28T20:42:42.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2017, Luis Pedro Coelho <luis@luispedro.org>
# vim: set ts=4 sts=4 sw=4 expandtab smartindent:
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in... | 26.815789 | 80 | 0.700687 | 448 | 3,057 | 4.754464 | 0.473214 | 0.041315 | 0.037559 | 0.042254 | 0.033803 | 0.033803 | 0.033803 | 0.033803 | 0.033803 | 0.033803 | 0 | 0.012018 | 0.210664 | 3,057 | 113 | 81 | 27.053097 | 0.8707 | 0.394832 | 0 | 0.183333 | 0 | 0 | 0.771256 | 0.040592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.083333 | 0 | 0.2 | 0.033333 | 0 | 0 | 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 |
4ae20be2afc3642f06f66e4a1b7fcf4056c7970b | 11,636 | py | Python | src/python/nimbusml/internal/entrypoints/trainers_lightgbmbinaryclassifier.py | montehoover/NimbusML | f6be39ce9359786976429bab0ccd837e849b4ba5 | [
"MIT"
] | 134 | 2018-11-01T22:15:24.000Z | 2019-05-04T11:30:08.000Z | src/python/nimbusml/internal/entrypoints/trainers_lightgbmbinaryclassifier.py | montehoover/NimbusML | f6be39ce9359786976429bab0ccd837e849b4ba5 | [
"MIT"
] | 226 | 2019-05-07T19:00:44.000Z | 2021-01-06T07:59:48.000Z | src/python/nimbusml/internal/entrypoints/trainers_lightgbmbinaryclassifier.py | montehoover/NimbusML | f6be39ce9359786976429bab0ccd837e849b4ba5 | [
"MIT"
] | 43 | 2019-05-15T20:19:42.000Z | 2022-03-30T10:26:07.000Z | # - Generated by tools/entrypoint_compiler.py: do not edit by hand
"""
Trainers.LightGbmBinaryClassifier
"""
import numbers
from ..utils.entrypoints import EntryPoint
from ..utils.utils import try_set, unlist
def trainers_lightgbmbinaryclassifier(
training_data,
predictor_model=None,
number_... | 38.026144 | 77 | 0.633293 | 1,355 | 11,636 | 5.164576 | 0.171218 | 0.028294 | 0.041155 | 0.066448 | 0.339383 | 0.266933 | 0.217491 | 0.191197 | 0.138468 | 0.077165 | 0 | 0.007866 | 0.289876 | 11,636 | 305 | 78 | 38.15082 | 0.839042 | 0.251375 | 0 | 0.323276 | 1 | 0 | 0.079196 | 0.028251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00431 | false | 0 | 0.012931 | 0 | 0.021552 | 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 |
4ae9ad24978103134e04134f0b180d82ec622bb0 | 5,118 | py | Python | ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_service_check.py | vsosrc/ambari | e3cc898672707bedf7597f2e16d684c8a00bba3b | [
"Apache-2.0"
] | null | null | null | ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_service_check.py | vsosrc/ambari | e3cc898672707bedf7597f2e16d684c8a00bba3b | [
"Apache-2.0"
] | null | null | null | ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_service_check.py | vsosrc/ambari | e3cc898672707bedf7597f2e16d684c8a00bba3b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | 47.831776 | 194 | 0.557835 | 537 | 5,118 | 5.240223 | 0.335196 | 0.01919 | 0.029851 | 0.027719 | 0.615139 | 0.615139 | 0.583866 | 0.561834 | 0.561834 | 0.561834 | 0 | 0.011551 | 0.323369 | 5,118 | 106 | 195 | 48.283019 | 0.80104 | 0.003908 | 0 | 0.626506 | 0 | 0.024096 | 0.285418 | 0.089063 | 0 | 0 | 0 | 0 | 0.120482 | 0 | null | null | 0 | 0.060241 | 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 |
4aefb5a97f19992a6966a61598aa4554de228c41 | 4,164 | py | Python | design.py | StrangeArcturus/QtAndRequestParser-Project | 5205420ff06c91917ce0c1d890da85e9d72a06ea | [
"MIT"
] | null | null | null | design.py | StrangeArcturus/QtAndRequestParser-Project | 5205420ff06c91917ce0c1d890da85e9d72a06ea | [
"MIT"
] | null | null | null | design.py | StrangeArcturus/QtAndRequestParser-Project | 5205420ff06c91917ce0c1d890da85e9d72a06ea | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'design.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtC... | 52.05 | 102 | 0.686119 | 493 | 4,164 | 5.659229 | 0.269777 | 0.077419 | 0.112903 | 0.091756 | 0.189964 | 0.153405 | 0 | 0 | 0 | 0 | 0 | 0.052475 | 0.194525 | 4,164 | 79 | 103 | 52.708861 | 0.779368 | 0.065082 | 0 | 0 | 1 | 0 | 0.099842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030769 | false | 0 | 0.015385 | 0 | 0.061538 | 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 |
4af181be525d8e8daf1ffbab71cb2d90c60d3216 | 597 | py | Python | EP_2019/py_impl/main.py | Alisa-lisa/conferences | d93014747dc9d18493295dbc33fa51c8fb9467dc | [
"MIT"
] | 5 | 2019-07-06T07:22:57.000Z | 2020-12-19T22:49:35.000Z | EP_2019/py_impl/main.py | pindash/conferences | 87fcb9f595a244408c015c66283c337d124b358d | [
"MIT"
] | null | null | null | EP_2019/py_impl/main.py | pindash/conferences | 87fcb9f595a244408c015c66283c337d124b358d | [
"MIT"
] | 3 | 2020-06-07T14:58:24.000Z | 2020-11-24T22:51:14.000Z | from simulation.car import spawn_drivers
from simulation.passenger import spawn_passengers
from simulation.core import World, Clock
conf = {
"x": 100,
"y": 100,
"drivers": 200,
"users": 1000,
"start": "2019-07-08T00:00:00",
"end": "2019-07-08T00:01:00"
}
clock = Clock(conf["start"], conf["end"... | 28.428571 | 84 | 0.649916 | 82 | 597 | 4.560976 | 0.390244 | 0.053476 | 0.072193 | 0.080214 | 0.080214 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081188 | 0.154104 | 597 | 20 | 85 | 29.85 | 0.659406 | 0 | 0 | 0 | 0 | 0 | 0.157454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0.176471 | 0 | 0.176471 | 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 |
4af19e16fcec726156bfcc2b3d41a671e651e34c | 795 | py | Python | Python/reverse_with_swap.py | avulaankith/Python | 71269b1a36b45150edb7834c559386a91618e723 | [
"MIT"
] | null | null | null | Python/reverse_with_swap.py | avulaankith/Python | 71269b1a36b45150edb7834c559386a91618e723 | [
"MIT"
] | null | null | null | Python/reverse_with_swap.py | avulaankith/Python | 71269b1a36b45150edb7834c559386a91618e723 | [
"MIT"
] | 1 | 2021-08-14T13:24:11.000Z | 2021-08-14T13:24:11.000Z | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'reverse_words_order_and_swap_cases' function below.
#
# The function is expected to return a STRING.
# The function accepts STRING sentence as parameter.
#
def reverse_words_order_and_swap_cases(sentence):
# Write your cod... | 18.488372 | 67 | 0.566038 | 105 | 795 | 4.142857 | 0.466667 | 0.082759 | 0.117241 | 0.137931 | 0.236782 | 0.236782 | 0.170115 | 0 | 0 | 0 | 0 | 0.003711 | 0.322013 | 795 | 42 | 68 | 18.928571 | 0.80334 | 0.257862 | 0 | 0.259259 | 0 | 0 | 0.003442 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.259259 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
4af2b457e2a07435b2f1cbc51394d14794b7cb2f | 294 | py | Python | creeds/static/api1.py | MaayanLab/creeds | 7d580c91ca45c03e34bbc0d1928668f266ff13d9 | [
"CC0-1.0"
] | 2 | 2019-01-10T18:10:45.000Z | 2019-04-05T13:47:01.000Z | creeds/static/api1.py | MaayanLab/creeds | 7d580c91ca45c03e34bbc0d1928668f266ff13d9 | [
"CC0-1.0"
] | 1 | 2019-05-09T21:25:31.000Z | 2019-05-13T14:26:30.000Z | creeds/static/api1.py | MaayanLab/creeds | 7d580c91ca45c03e34bbc0d1928668f266ff13d9 | [
"CC0-1.0"
] | 2 | 2018-12-21T23:59:27.000Z | 2019-10-24T18:26:26.000Z | import json, requests
from pprint import pprint
CREEDS_URL = 'http://amp.pharm.mssm.edu/CREEDS/'
response = requests.get(CREEDS_URL + 'search', params={'q':'STAT3'})
if response.status_code == 200:
pprint(response.json())
json.dump(response.json(), open('api1_result.json', 'wb'), indent=4)
| 32.666667 | 69 | 0.721088 | 43 | 294 | 4.837209 | 0.674419 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.095238 | 294 | 8 | 70 | 36.75 | 0.759399 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.285714 | 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 |
4af34453b4c3c543b26ea00b073366252fd5c89d | 355 | py | Python | admin/migrations/0041_course_color.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 4 | 2019-07-19T17:39:04.000Z | 2022-03-22T21:02:15.000Z | admin/migrations/0041_course_color.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 53 | 2019-08-04T14:25:40.000Z | 2022-03-26T20:30:55.000Z | admin/migrations/0041_course_color.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 3 | 2020-03-09T07:11:03.000Z | 2020-09-11T01:22:50.000Z | # Generated by Django 2.2.3 on 2019-07-31 13:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("admin", "0040_auto_20190718_0938")]
operations = [
migrations.AddField(
model_name="course", name="color", field=models.CharField(default="#0... | 23.666667 | 99 | 0.661972 | 44 | 355 | 5.227273 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124555 | 0.208451 | 355 | 14 | 100 | 25.357143 | 0.69395 | 0.126761 | 0 | 0 | 1 | 0 | 0.13961 | 0.074675 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4af59f537fb6e3fa8f98dad4df206983a8ca37fd | 3,651 | py | Python | gengine/app/tests_old/test_groups.py | greck2908/gamification-engine | 4a74086bde4505217e4b9ba36349a427a7042b4b | [
"MIT"
] | 347 | 2015-03-03T14:25:59.000Z | 2022-03-09T07:46:31.000Z | gengine/app/tests_old/test_groups.py | greck2908/gamification-engine | 4a74086bde4505217e4b9ba36349a427a7042b4b | [
"MIT"
] | 76 | 2015-03-05T23:37:31.000Z | 2022-03-31T13:41:42.000Z | gengine/app/tests_old/test_groups.py | greck2908/gamification-engine | 4a74086bde4505217e4b9ba36349a427a7042b4b | [
"MIT"
] | 115 | 2015-03-04T23:47:25.000Z | 2021-12-24T06:24:06.000Z | # -*- coding: utf-8 -*-
from gengine.app.tests.base import BaseDBTest
from gengine.app.tests.helpers import create_user, update_user, delete_user, get_or_create_language
from gengine.metadata import DBSession
from gengine.app.model import AuthUser
class TestUserCreation(BaseDBTest):
def test_user_creation(self):... | 29.92623 | 99 | 0.564229 | 388 | 3,651 | 5.118557 | 0.25 | 0.11279 | 0.145015 | 0.050352 | 0.517623 | 0.437563 | 0.391742 | 0.391742 | 0.391742 | 0.391742 | 0 | 0.024077 | 0.317447 | 3,651 | 121 | 100 | 30.173554 | 0.772873 | 0.135032 | 0 | 0.371795 | 0 | 0 | 0.09001 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 1 | 0.064103 | false | 0.064103 | 0.051282 | 0 | 0.128205 | 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 |
ab0004198f8e66f5be455567544099aa471f9197 | 3,349 | py | Python | modules/helper/subtitles/subtitles.py | sdelcore/video-event-notifier-old | 16bd322f2b81efbb3e08e63ed407ab098d610c88 | [
"MIT"
] | null | null | null | modules/helper/subtitles/subtitles.py | sdelcore/video-event-notifier-old | 16bd322f2b81efbb3e08e63ed407ab098d610c88 | [
"MIT"
] | null | null | null | modules/helper/subtitles/subtitles.py | sdelcore/video-event-notifier-old | 16bd322f2b81efbb3e08e63ed407ab098d610c88 | [
"MIT"
] | null | null | null | import time
import srt
import re
import datetime
from mqtthandler import MQTTHandler
INIT_STATUS={
"video": {
"title": None,
"series_title": None,
"season": None,
"episode": None
},
"time": None,
"events": None
}
class SubtitleHandler:
subtitles = []
phrases = ... | 33.828283 | 133 | 0.561959 | 407 | 3,349 | 4.565111 | 0.371007 | 0.026911 | 0.047363 | 0.053821 | 0.142088 | 0.131324 | 0.089343 | 0.016146 | 0 | 0 | 0 | 0.007127 | 0.329651 | 3,349 | 99 | 134 | 33.828283 | 0.82049 | 0.221857 | 0 | 0 | 0 | 0 | 0.041683 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.115942 | false | 0 | 0.072464 | 0.014493 | 0.318841 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ab026e12b9cf96fdf582b2fdd6e78d761d952e59 | 5,709 | py | Python | misc/trac_plugins/IncludeMacro/includemacro/macros.py | weese/seqan | 1acb1688969c7b61497f2328af54b4d11228a484 | [
"BSD-3-Clause"
] | 1 | 2017-10-24T20:37:58.000Z | 2017-10-24T20:37:58.000Z | misc/trac_plugins/IncludeMacro/includemacro/macros.py | weese/seqan | 1acb1688969c7b61497f2328af54b4d11228a484 | [
"BSD-3-Clause"
] | 10 | 2015-03-02T16:45:39.000Z | 2015-06-23T14:02:13.000Z | misc/trac_plugins/IncludeMacro/includemacro/macros.py | weese/seqan | 1acb1688969c7b61497f2328af54b4d11228a484 | [
"BSD-3-Clause"
] | 2 | 2015-02-24T19:07:54.000Z | 2015-04-08T13:53:24.000Z | # TracIncludeMacro macros
import re
import urllib2
from StringIO import StringIO
from trac.core import *
from trac.wiki.macros import WikiMacroBase
from trac.wiki.formatter import system_message
from trac.wiki.model import WikiPage
from trac.mimeview.api import Mimeview, get_mimetype, Context
from trac.perm import IPe... | 40.204225 | 135 | 0.584341 | 662 | 5,709 | 4.932024 | 0.353474 | 0.033078 | 0.040735 | 0.011026 | 0.091884 | 0.057887 | 0.031853 | 0 | 0 | 0 | 0 | 0.003392 | 0.328779 | 5,709 | 141 | 136 | 40.489362 | 0.848643 | 0.165878 | 0 | 0.148515 | 0 | 0 | 0.102691 | 0.004521 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009901 | 0.118812 | 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 |
ab0c1dad4d8d1784a1b379e00273da750a4c7145 | 871 | py | Python | AnimeSpider/spiders/AinmeLinkList.py | xiaowenwen1995/AnimeSpider | 11c676b772508fd4e14565a7adbfc7336d69b982 | [
"MIT"
] | 7 | 2020-02-26T15:58:13.000Z | 2021-11-14T15:48:01.000Z | AnimeSpider/spiders/AinmeLinkList.py | xiaowenwen1995/AnimeSpider | 11c676b772508fd4e14565a7adbfc7336d69b982 | [
"MIT"
] | 1 | 2020-07-23T06:44:19.000Z | 2020-07-23T16:12:28.000Z | AnimeSpider/spiders/AinmeLinkList.py | xiaowenwen1995/AnimeSpider | 11c676b772508fd4e14565a7adbfc7336d69b982 | [
"MIT"
] | 1 | 2021-04-01T09:22:51.000Z | 2021-04-01T09:22:51.000Z | # -*- coding: utf-8 -*-
import scrapy
import json
import os
import codecs
from AnimeSpider.items import AnimespiderItem
class AinmelinklistSpider(scrapy.Spider):
name = 'AinmeLinkList'
allowed_domains = ['bilibili.com']
start_urls = ['http://bilibili.com/']
def start_requests(self):
jsonpath ... | 32.259259 | 93 | 0.626866 | 98 | 871 | 5.479592 | 0.632653 | 0.014898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002946 | 0.220436 | 871 | 26 | 94 | 33.5 | 0.787923 | 0.02411 | 0 | 0 | 0 | 0 | 0.158019 | 0.027123 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.238095 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ab0f9c740d041f9e373bd50dbfcabb4859e2d6c4 | 950 | py | Python | api/migrations/0004_auto_20210107_2032.py | bartoszper/Django-REST-API-movierater | a145f087d9c59167ea3503dde5fa74ab7f3e3e72 | [
"MIT"
] | null | null | null | api/migrations/0004_auto_20210107_2032.py | bartoszper/Django-REST-API-movierater | a145f087d9c59167ea3503dde5fa74ab7f3e3e72 | [
"MIT"
] | null | null | null | api/migrations/0004_auto_20210107_2032.py | bartoszper/Django-REST-API-movierater | a145f087d9c59167ea3503dde5fa74ab7f3e3e72 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-01-07 19:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0003_auto_20210107_2010'),
]
operations = [
migrations.AlterField(
model_name='extrainfo... | 32.758621 | 137 | 0.570526 | 99 | 950 | 5.393939 | 0.656566 | 0.044944 | 0.052434 | 0.082397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054755 | 0.269474 | 950 | 28 | 138 | 33.928571 | 0.714697 | 0.047368 | 0 | 0.090909 | 1 | 0 | 0.120709 | 0.025471 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 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 |
ab102bf2e193beb384ebdf3e74b5f3f77d47c463 | 3,976 | py | Python | vendor/munkireport/firewall/scripts/firewall.py | menamegaly/MR | 18d042639d9b45ca81a9b58659f45c6e2c3ac87f | [
"MIT"
] | null | null | null | vendor/munkireport/firewall/scripts/firewall.py | menamegaly/MR | 18d042639d9b45ca81a9b58659f45c6e2c3ac87f | [
"MIT"
] | null | null | null | vendor/munkireport/firewall/scripts/firewall.py | menamegaly/MR | 18d042639d9b45ca81a9b58659f45c6e2c3ac87f | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Firewall for munkireport.
By Tuxudo
Will return all details about how the firewall is configured
"""
import subprocess
import os
import sys
import platform
import re
import plistlib
import json
sys.path.insert(0,'/usr/local/munki')
sys.path.insert(0, '/usr/local/munkireport')
from munkilib impo... | 31.307087 | 80 | 0.591549 | 436 | 3,976 | 5.272936 | 0.350917 | 0.030448 | 0.041757 | 0.042627 | 0.108743 | 0.086994 | 0 | 0 | 0 | 0 | 0 | 0.004993 | 0.294769 | 3,976 | 126 | 81 | 31.555556 | 0.814907 | 0.058602 | 0 | 0.076923 | 0 | 0 | 0.156761 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.087912 | null | null | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ab143c1e766e4bf7477a807945495619e156d263 | 729 | py | Python | Examples/IMAP/FilteringMessagesFromIMAPMailbox.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 5 | 2019-01-28T05:17:12.000Z | 2020-04-14T14:31:34.000Z | Examples/IMAP/FilteringMessagesFromIMAPMailbox.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 1 | 2019-01-28T16:07:26.000Z | 2021-11-25T10:59:52.000Z | Examples/IMAP/FilteringMessagesFromIMAPMailbox.py | Muzammil-khan/Aspose.Email-Python-Dotnet | 04ca3a6f440339f3ddf316218f92d15d66f24e7e | [
"MIT"
] | 6 | 2018-07-16T14:57:34.000Z | 2020-08-30T05:59:52.000Z | import aspose.email
from aspose.email.clients.imap import ImapClient
from aspose.email.clients import SecurityOptions
from aspose.email.clients.imap import ImapQueryBuilder
import datetime as dt
def run():
dataDir = ""
#ExStart: FetchEmailMessageFromServer
client = ImapClient("imap.gmail.com", 993, "user... | 31.695652 | 78 | 0.739369 | 81 | 729 | 6.506173 | 0.617284 | 0.083491 | 0.085389 | 0.125237 | 0.121442 | 0.121442 | 0 | 0 | 0 | 0 | 0 | 0.004847 | 0.150892 | 729 | 22 | 79 | 33.136364 | 0.846527 | 0.096022 | 0 | 0 | 0 | 0 | 0.147641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.294118 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ab149d0949672fc58bdb20c8bbee5cb7134e800f | 2,363 | py | Python | Python.FancyBear/settings.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 2 | 2021-02-04T06:47:45.000Z | 2021-07-28T10:02:10.000Z | Python.FancyBear/settings.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Python.FancyBear/settings.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | # Server UID
SERVER_UID = 45158729
# Setup Logging system #########################################
#
import os
from FileConsoleLogger import FileConsoleLogger
ServerLogger = FileConsoleLogger( os.path.join(os.path.dirname(os.path.abspath(__file__)), "_w3server.log") )
W3Logger = FileConsoleLogger( os.path.join(os.pa... | 28.46988 | 141 | 0.650444 | 275 | 2,363 | 5.290909 | 0.418182 | 0.024742 | 0.02268 | 0.037113 | 0.125773 | 0.125773 | 0.125773 | 0.125773 | 0.125773 | 0.125773 | 0 | 0.067989 | 0.103682 | 2,363 | 82 | 142 | 28.817073 | 0.61898 | 0.241219 | 0 | 0 | 0 | 0 | 0.19341 | 0.077364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.060606 | 0.151515 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ab1a86e3a749c305907e0a449b620a088db1db5e | 4,070 | py | Python | var/spack/repos/builtin/packages/py-mdanalysis/package.py | LiamBindle/spack | e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2,360 | 2017-11-06T08:47:01.000Z | 2022-03-31T14:45:33.000Z | var/spack/repos/builtin/packages/py-mdanalysis/package.py | LiamBindle/spack | e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 13,838 | 2017-11-04T07:49:45.000Z | 2022-03-31T23:38:39.000Z | var/spack/repos/builtin/packages/py-mdanalysis/package.py | LiamBindle/spack | e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1,793 | 2017-11-04T07:45:50.000Z | 2022-03-30T14:31:53.000Z | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyMdanalysis(PythonPackage):
"""MDAnalysis is a Python toolkit to analyze molecular dynami... | 54.266667 | 96 | 0.653317 | 516 | 4,070 | 5.096899 | 0.265504 | 0.095817 | 0.108745 | 0.180608 | 0.356654 | 0.322433 | 0.313688 | 0.263878 | 0.220532 | 0.176046 | 0 | 0.193446 | 0.145209 | 4,070 | 74 | 97 | 55 | 0.562518 | 0.110811 | 0 | 0 | 0 | 0 | 0.495826 | 0.231219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab1d930ad268269a2d4b9569657fc14b57b495e4 | 690 | py | Python | lib/jbgp/jbgpneighbor.py | routedo/junos-pyez-example | b89df2d40ca0a233529e4a26b42dd605c00aae46 | [
"Apache-2.0"
] | null | null | null | lib/jbgp/jbgpneighbor.py | routedo/junos-pyez-example | b89df2d40ca0a233529e4a26b42dd605c00aae46 | [
"Apache-2.0"
] | null | null | null | lib/jbgp/jbgpneighbor.py | routedo/junos-pyez-example | b89df2d40ca0a233529e4a26b42dd605c00aae46 | [
"Apache-2.0"
] | 1 | 2020-06-17T12:17:18.000Z | 2020-06-17T12:17:18.000Z | """
Query BGP neighbor table on a Juniper network device.
"""
import sys
from jnpr.junos import Device
from jnpr.junos.factory import loadyaml
def juniper_bgp_state(dev, bgp_neighbor):
"""
This function queries the BGP neighbor table on a Juniper network device.
dev = Juniper device connection
bgp_ne... | 23 | 77 | 0.676812 | 93 | 690 | 4.903226 | 0.483871 | 0.217105 | 0.070175 | 0.078947 | 0.171053 | 0.171053 | 0.171053 | 0.171053 | 0 | 0 | 0 | 0.001927 | 0.247826 | 690 | 29 | 78 | 23.793103 | 0.876686 | 0.349275 | 0 | 0.142857 | 0 | 0 | 0.050725 | 0.050725 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.428571 | 0.071429 | 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 |
ab1fe51ebbcd4a1dc4363d8ff7260094c438deca | 2,170 | py | Python | lib/cherrypy/cherrypy/test/test_sessionauthenticate.py | MiCHiLU/google_appengine_sdk | 3da9f20d7e65e26c4938d2c4054bc4f39cbc5522 | [
"Apache-2.0"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | AppServer/lib/cherrypy/cherrypy/test/test_sessionauthenticate.py | nlake44/appscale | 6944af660ca4cb772c9b6c2332ab28e5ef4d849f | [
"Apache-2.0"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | AppServer/lib/cherrypy/cherrypy/test/test_sessionauthenticate.py | nlake44/appscale | 6944af660ca4cb772c9b6c2332ab28e5ef4d849f | [
"Apache-2.0"
] | 162 | 2015-01-01T00:21:16.000Z | 2022-02-23T02:36:04.000Z | import cherrypy
from cherrypy.test import helper
class SessionAuthenticateTest(helper.CPWebCase):
def setup_server():
def check(username, password):
# Dummy check_username_and_password function
if username != 'test' or password != 'password':
return 'Wrong... | 34.444444 | 82 | 0.566359 | 233 | 2,170 | 5.16309 | 0.39485 | 0.045719 | 0.027431 | 0.0399 | 0.147963 | 0.071488 | 0.071488 | 0.071488 | 0 | 0 | 0 | 0.011765 | 0.334101 | 2,170 | 62 | 83 | 35 | 0.820761 | 0.152074 | 0 | 0.176471 | 0 | 0 | 0.197044 | 0.072797 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.147059 | false | 0.147059 | 0.058824 | 0.029412 | 0.352941 | 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 |
ab224c0b7dd96b0783239d1ab27b2b04825a3e94 | 4,122 | py | Python | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/timeperiod_extractor_config.py | felaray/Recognizers-Text | f514fd61c8d472ed92565261162712409f655312 | [
"MIT"
] | null | null | null | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/timeperiod_extractor_config.py | felaray/Recognizers-Text | f514fd61c8d472ed92565261162712409f655312 | [
"MIT"
] | 6 | 2021-12-20T17:13:35.000Z | 2022-03-29T08:54:11.000Z | Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/timeperiod_extractor_config.py | felaray/Recognizers-Text | f514fd61c8d472ed92565261162712409f655312 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import List, Pattern
from recognizers_text.utilities import RegExpUtility
from recognizers_text.extractor import Extractor
from recognizers_number.number.italian.extractors import ItalianIntegerExtractor
from .... | 37.816514 | 96 | 0.743328 | 419 | 4,122 | 6.959427 | 0.24105 | 0.037723 | 0.068587 | 0.078875 | 0.34808 | 0.268176 | 0.205418 | 0.141632 | 0.056927 | 0.056927 | 0 | 0.001201 | 0.191897 | 4,122 | 108 | 97 | 38.166667 | 0.874212 | 0.021834 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.142857 | 0.130952 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ab253b2fa27d701106a981880d15472309de60c1 | 2,379 | py | Python | tests_oval_graph/test_arf_xml_parser/test_arf_xml_parser.py | Honny1/oval-graph | 96472a9d2b08c2afce620c54f229ce95ad019d1f | [
"Apache-2.0"
] | 21 | 2019-08-01T09:09:25.000Z | 2020-09-27T10:00:09.000Z | tests_oval_graph/test_arf_xml_parser/test_arf_xml_parser.py | Honny1/oval-graph | 96472a9d2b08c2afce620c54f229ce95ad019d1f | [
"Apache-2.0"
] | 129 | 2019-08-04T19:06:24.000Z | 2020-10-03T10:02:26.000Z | tests_oval_graph/test_arf_xml_parser/test_arf_xml_parser.py | Honny1/oval-graph | 96472a9d2b08c2afce620c54f229ce95ad019d1f | [
"Apache-2.0"
] | 11 | 2019-08-07T08:53:54.000Z | 2020-10-02T22:02:38.000Z | from pathlib import Path
import pytest
from oval_graph.arf_xml_parser.arf_xml_parser import ARFXMLParser
def get_arf_report_path(src="global_test_data/ssg-fedora-ds-arf.xml"):
return str(Path(__file__).parent.parent / src)
@pytest.mark.parametrize("rule_id, result", [
(
"xccdf_org.ssgproject.conte... | 30.896104 | 93 | 0.721732 | 307 | 2,379 | 5.13355 | 0.355049 | 0.055838 | 0.125635 | 0.174492 | 0.478426 | 0.274746 | 0.195431 | 0.195431 | 0.100254 | 0.100254 | 0 | 0.001518 | 0.169399 | 2,379 | 76 | 94 | 31.302632 | 0.796053 | 0 | 0 | 0.370968 | 0 | 0 | 0.411517 | 0.352669 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0.080645 | false | 0.016129 | 0.048387 | 0.016129 | 0.145161 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab2a38bd32faf647f78849a772f13ad447eb6e18 | 2,144 | py | Python | chapter_13/mailtools/__init__.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_13/mailtools/__init__.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_13/mailtools/__init__.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | "The mailtools Utility Package"
'Initialization File'
"""
##################################################################################
mailtools package: interface to mail server transfers, used by pymail2, PyMailGUI,
and PyMailCGI; does loads, sends, parsing, composing, and deleting, with part
attachments, e... | 51.047619 | 83 | 0.718284 | 301 | 2,144 | 5.10299 | 0.584718 | 0.005208 | 0.019531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004432 | 0.158116 | 2,144 | 41 | 84 | 52.292683 | 0.846537 | 0.139459 | 0 | 0 | 0 | 0 | 0.369159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ab2b3845336cbc9c2cd653a367ec0d03b0cfffa6 | 223 | py | Python | server.py | SDelhey/websocket-chat | c7b83583007a723baee25acedbceddd55c12ffec | [
"MIT"
] | null | null | null | server.py | SDelhey/websocket-chat | c7b83583007a723baee25acedbceddd55c12ffec | [
"MIT"
] | null | null | null | server.py | SDelhey/websocket-chat | c7b83583007a723baee25acedbceddd55c12ffec | [
"MIT"
] | null | null | null | from flask import Flask, render_template
from flask_socketio import SocketIO, send, emit
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
if __name__ == '__main__':
socketio.run(app) | 24.777778 | 47 | 0.748879 | 30 | 223 | 5.066667 | 0.533333 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134529 | 223 | 9 | 48 | 24.777778 | 0.787565 | 0 | 0 | 0 | 0 | 0 | 0.111607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab2d830b247e5d1c87b1cc476939c72b7371cdbc | 10,997 | py | Python | bin/mem_monitor.py | Samahu/ros-system-monitor | 5376eba046ac38cfe8fe9ff8b385fa2637015eda | [
"BSD-3-Clause"
] | 68 | 2016-02-07T00:35:25.000Z | 2022-03-22T11:14:16.000Z | bin/mem_monitor.py | Samahu/ros-system-monitor | 5376eba046ac38cfe8fe9ff8b385fa2637015eda | [
"BSD-3-Clause"
] | 5 | 2016-04-12T14:29:51.000Z | 2021-08-04T12:55:59.000Z | bin/mem_monitor.py | Samahu/ros-system-monitor | 5376eba046ac38cfe8fe9ff8b385fa2637015eda | [
"BSD-3-Clause"
] | 62 | 2015-08-09T23:17:16.000Z | 2022-02-11T18:24:30.000Z | #!/usr/bin/env python
############################################################################
# Copyright (C) 2009, Willow Garage, Inc. #
# Copyright (C) 2013 by Ralf Kaestner #
# ralf.kaestner@gmail.com ... | 41.973282 | 102 | 0.555606 | 1,197 | 10,997 | 4.908104 | 0.249791 | 0.033702 | 0.040851 | 0.046979 | 0.234043 | 0.166809 | 0.144 | 0.076255 | 0.076255 | 0.076255 | 0 | 0.00979 | 0.340547 | 10,997 | 261 | 103 | 42.1341 | 0.800331 | 0.256252 | 0 | 0.186047 | 0 | 0 | 0.087192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005814 | 0.069767 | null | null | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ab313db7c6b7e6135aaa8212f15c08dfe29e2372 | 1,280 | py | Python | dataloader/frame_counter/frame_counter.py | aaron-zou/pretraining-twostream | 5aa2f4bafb731e61f8f671e2500a6dfa8436be57 | [
"MIT"
] | null | null | null | dataloader/frame_counter/frame_counter.py | aaron-zou/pretraining-twostream | 5aa2f4bafb731e61f8f671e2500a6dfa8436be57 | [
"MIT"
] | null | null | null | dataloader/frame_counter/frame_counter.py | aaron-zou/pretraining-twostream | 5aa2f4bafb731e61f8f671e2500a6dfa8436be57 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Generate frame counts dict for a dataset.
Usage:
frame_counter.py [options]
Options:
-h, --help Print help message
--root=<str> Path to root of dataset (should contain video folders that contain images)
[default: /vision/vision_users/azou/data/hmdb5... | 27.826087 | 102 | 0.625 | 165 | 1,280 | 4.690909 | 0.521212 | 0.041344 | 0.031008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003171 | 0.260938 | 1,280 | 45 | 103 | 28.444444 | 0.815011 | 0.432031 | 0 | 0 | 1 | 0 | 0.085315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.238095 | 0 | 0.238095 | 0.190476 | 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 |
ab32101612714ab2b6b04c378a7a5646daa96906 | 155 | py | Python | Problem_30/main.py | jdalzatec/EulerProject | 2f2f4d9c009be7fd63bb229bb437ea75db77d891 | [
"MIT"
] | 1 | 2022-03-28T05:32:58.000Z | 2022-03-28T05:32:58.000Z | Problem_30/main.py | jdalzatec/EulerProject | 2f2f4d9c009be7fd63bb229bb437ea75db77d891 | [
"MIT"
] | null | null | null | Problem_30/main.py | jdalzatec/EulerProject | 2f2f4d9c009be7fd63bb229bb437ea75db77d891 | [
"MIT"
] | null | null | null | total = 0
for n in range(1000, 1000000):
suma = 0
for i in str(n):
suma += int(i)**5
if (n == suma):
total += n
print(total) | 14.090909 | 30 | 0.483871 | 26 | 155 | 2.884615 | 0.576923 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141414 | 0.36129 | 155 | 11 | 31 | 14.090909 | 0.616162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab36c71fdbd365804953a57202728144c1db7c55 | 628 | py | Python | nl/predictor.py | jclosure/donkus | b3384447094b2ecbaff5ee9d970818313b6ee8b0 | [
"MIT"
] | 1 | 2015-01-16T01:04:39.000Z | 2015-01-16T01:04:39.000Z | nl/predictor.py | jclosure/donkus | b3384447094b2ecbaff5ee9d970818313b6ee8b0 | [
"MIT"
] | null | null | null | nl/predictor.py | jclosure/donkus | b3384447094b2ecbaff5ee9d970818313b6ee8b0 | [
"MIT"
] | null | null | null |
from nltk.corpus import gutenberg
from nltk import ConditionalFreqDist
from random import choice
#create the distribution object
cfd = ConditionalFreqDist()
## for each token count the current word given the previous word
prev_word = None
for word in gutenberg.words('austen-persuasion.txt'):
cfd[prev_word][word]... | 22.428571 | 73 | 0.716561 | 91 | 628 | 4.912088 | 0.549451 | 0.053691 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.203822 | 628 | 27 | 74 | 23.259259 | 0.884 | 0.335987 | 0 | 0 | 0 | 0 | 0.073529 | 0.051471 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab37e16ef4016e52fa0dab454a286037abc7c623 | 889 | py | Python | tests/test_tempo_event.py | yokaze/crest-python | c246b16ade6fd706f0e18aae797660064bddd555 | [
"MIT"
] | null | null | null | tests/test_tempo_event.py | yokaze/crest-python | c246b16ade6fd706f0e18aae797660064bddd555 | [
"MIT"
] | null | null | null | tests/test_tempo_event.py | yokaze/crest-python | c246b16ade6fd706f0e18aae797660064bddd555 | [
"MIT"
] | null | null | null | #
# test_tempo_event.py
# crest-python
#
# Copyright (C) 2017 Rue Yokaze
# Distributed under the MIT License.
#
import crest_loader
import unittest
from crest.events.meta import TempoEvent
class TestTempoEvent(unittest.TestCase):
def test_ctor(self):
TempoEvent()
TempoEvent(120)
def t... | 24.694444 | 75 | 0.662542 | 103 | 889 | 5.582524 | 0.475728 | 0.182609 | 0.21913 | 0.109565 | 0.224348 | 0.224348 | 0.132174 | 0 | 0 | 0 | 0 | 0.092375 | 0.232846 | 889 | 35 | 76 | 25.4 | 0.750733 | 0.115861 | 0 | 0.090909 | 0 | 0 | 0.010309 | 0 | 0 | 0 | 0.030928 | 0 | 0.318182 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab3e8587e5794a9e3b079ba7743bbea191efe88d | 66,791 | py | Python | Arbitrage_Future/Arbitrage_Future/test.py | ronaldzgithub/CryptoArbitrage | b4b7a12b7b11f3dcf950f9d2039dad4f1388530b | [
"MIT"
] | 1 | 2021-11-03T06:16:16.000Z | 2021-11-03T06:16:16.000Z | Arbitrage_Future/Arbitrage_Future/test.py | benno0810/CryptoArbitrage | b4b7a12b7b11f3dcf950f9d2039dad4f1388530b | [
"MIT"
] | null | null | null | Arbitrage_Future/Arbitrage_Future/test.py | benno0810/CryptoArbitrage | b4b7a12b7b11f3dcf950f9d2039dad4f1388530b | [
"MIT"
] | 2 | 2021-05-07T09:11:54.000Z | 2021-11-27T16:29:10.000Z | # !/usr/local/bin/python
# -*- coding:utf-8 -*-
import YunBi
import CNBTC
import json
import threading
import Queue
import time
import logging
import numpy
import message
import random
open_platform = [True,True,True,True]
numpy.set_printoptions(suppress=True)
# logging.basicConfig(level=logging.DEBUG,
# ... | 45.74726 | 245 | 0.561558 | 8,463 | 66,791 | 4.174406 | 0.043956 | 0.009567 | 0.023211 | 0.02273 | 0.686906 | 0.635247 | 0.585286 | 0.543761 | 0.516021 | 0.479025 | 0 | 0.029737 | 0.307212 | 66,791 | 1,459 | 246 | 45.778615 | 0.733748 | 0.297959 | 0 | 0.502896 | 0 | 0.001931 | 0.082669 | 0.01334 | 0 | 0 | 0 | 0.000685 | 0 | 0 | null | null | 0 | 0.013514 | null | null | 0.083012 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ab3ea1f161bcea5311f9766c4b23a51c645e6437 | 1,174 | py | Python | startuptweet.py | cudmore/startupnotify | 76b61b295ae7049e597fa05457a6696e624c4955 | [
"MIT"
] | null | null | null | startuptweet.py | cudmore/startupnotify | 76b61b295ae7049e597fa05457a6696e624c4955 | [
"MIT"
] | null | null | null | startuptweet.py | cudmore/startupnotify | 76b61b295ae7049e597fa05457a6696e624c4955 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
Author: Robert Cudmore
Date: 20181013
Purpose: Send a Tweet with IP and MAC address of a Raspberry Pi
Install:
pip3 install tweepy
Usage:
python3 startuptweet.py 'this is my tweet'
"""
import tweepy
import sys
import socket
import subprocess
from uuid import getnode as get_mac
from datetime i... | 22.576923 | 88 | 0.736797 | 176 | 1,174 | 4.784091 | 0.488636 | 0.035629 | 0.071259 | 0.106888 | 0.157957 | 0.068884 | 0 | 0 | 0 | 0 | 0 | 0.014042 | 0.150767 | 1,174 | 51 | 89 | 23.019608 | 0.830491 | 0.251278 | 0 | 0 | 0 | 0 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.423077 | 0 | 0.423077 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ab4054d837b64d6cdc4bc55d34e29e751e8dc8d5 | 4,427 | py | Python | private/scripts/recheck-invalid-handles.py | bansal-shubham/stopstalk-deployment | 6392eace490311be103292fdaff9ae215e4db7e6 | [
"MIT"
] | null | null | null | private/scripts/recheck-invalid-handles.py | bansal-shubham/stopstalk-deployment | 6392eace490311be103292fdaff9ae215e4db7e6 | [
"MIT"
] | null | null | null | private/scripts/recheck-invalid-handles.py | bansal-shubham/stopstalk-deployment | 6392eace490311be103292fdaff9ae215e4db7e6 | [
"MIT"
] | null | null | null | """
Copyright (c) 2015-2019 Raj Patel(raj454raj@gmail.com), StopStalk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
... | 41.373832 | 106 | 0.639259 | 576 | 4,427 | 4.696181 | 0.324653 | 0.041405 | 0.048799 | 0.033272 | 0.180037 | 0.126802 | 0.05915 | 0.05915 | 0.05915 | 0.028096 | 0 | 0.008696 | 0.272645 | 4,427 | 106 | 107 | 41.764151 | 0.831366 | 0.081319 | 0 | 0.1875 | 0 | 0 | 0.070812 | 0.016235 | 0 | 0 | 0 | 0 | 0.015625 | 0 | null | null | 0 | 0.03125 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ab42719d063612a8629ae16074131965d4bb9222 | 1,397 | py | Python | src/ice_g2p/dictionaries.py | cadia-lvl/ice-g2p | 5a6cc55f45282e8a656ea0742e2f373189c9a912 | [
"Apache-2.0"
] | null | null | null | src/ice_g2p/dictionaries.py | cadia-lvl/ice-g2p | 5a6cc55f45282e8a656ea0742e2f373189c9a912 | [
"Apache-2.0"
] | null | null | null | src/ice_g2p/dictionaries.py | cadia-lvl/ice-g2p | 5a6cc55f45282e8a656ea0742e2f373189c9a912 | [
"Apache-2.0"
] | null | null | null | import os, sys
DICTIONARY_FILE = os.path.join(sys.prefix, 'dictionaries/ice_pron_dict_standard_clear.csv')
HEAD_FILE = os.path.join(sys.prefix, 'data/head_map.csv')
MODIFIER_FILE = os.path.join(sys.prefix, 'data/modifier_map.csv')
VOWELS_FILE = os.path.join(sys.prefix, 'data/vowels_sampa.txt')
CONS_CLUSTERS_FILE = os.p... | 24.086207 | 91 | 0.670007 | 198 | 1,397 | 4.494949 | 0.262626 | 0.074157 | 0.05618 | 0.078652 | 0.370787 | 0.325843 | 0.3 | 0.178652 | 0.178652 | 0.178652 | 0 | 0.002727 | 0.212598 | 1,397 | 57 | 92 | 24.508772 | 0.806364 | 0 | 0 | 0.195122 | 0 | 0 | 0.097351 | 0.082319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0 | 0.02439 | 0.121951 | 0.414634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ab42c6179a77692e03a58e9d6335af55ec3cb46d | 385 | py | Python | tests/test_annotations_notebook.py | jeromedockes/pylabelbuddy | 26be00db679e94117968387aa7010dab2739b517 | [
"BSD-3-Clause"
] | null | null | null | tests/test_annotations_notebook.py | jeromedockes/pylabelbuddy | 26be00db679e94117968387aa7010dab2739b517 | [
"BSD-3-Clause"
] | null | null | null | tests/test_annotations_notebook.py | jeromedockes/pylabelbuddy | 26be00db679e94117968387aa7010dab2739b517 | [
"BSD-3-Clause"
] | null | null | null | from pylabelbuddy import _annotations_notebook
def test_annotations_notebook(root, annotations_mock, dataset_mock):
nb = _annotations_notebook.AnnotationsNotebook(
root, annotations_mock, dataset_mock
)
nb.change_database()
assert nb.notebook.index(nb.notebook.select()) == 2
nb.go_to_annot... | 32.083333 | 68 | 0.750649 | 46 | 385 | 6 | 0.456522 | 0.144928 | 0.137681 | 0.188406 | 0.5 | 0.5 | 0.268116 | 0 | 0 | 0 | 0 | 0.006135 | 0.153247 | 385 | 11 | 69 | 35 | 0.840491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab4374fa18ea29af4960ad145950b9d2672ecb83 | 1,257 | py | Python | middleware/run.py | natedogg484/react-flask-authentication | 5000685d35471b03f72e0b07dfbdbf6d5fc296d2 | [
"MIT"
] | null | null | null | middleware/run.py | natedogg484/react-flask-authentication | 5000685d35471b03f72e0b07dfbdbf6d5fc296d2 | [
"MIT"
] | 4 | 2021-03-09T21:12:06.000Z | 2022-02-26T19:17:31.000Z | middleware/run.py | natedogg484/vue-authentication | ab087e238d98606ffb73167cb9a16648812ac3e5 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_cors import CORS
from flask_restful import Api
from flask_sqlalchemy import SQLAlchemy
from flask_jwt_extended import JWTManager
app = Flask(__name__)
CORS(app)
api = Api(app)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] =... | 27.933333 | 64 | 0.791567 | 165 | 1,257 | 5.769697 | 0.387879 | 0.044118 | 0.102941 | 0.169118 | 0.113445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085123 | 1,257 | 45 | 65 | 27.933333 | 0.827826 | 0 | 0 | 0 | 0 | 0 | 0.211447 | 0.079491 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.193548 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ab4d5adf0a4cf40d756ef93b4de1fbf8fed57093 | 1,953 | py | Python | example_project/test_messages/bbcode_tags.py | bastiedotorg/django-precise-bbcode | 567a8a7f104fb7f2c9d59f304791e53d2d8f4dea | [
"BSD-3-Clause"
] | 30 | 2015-01-02T13:43:56.000Z | 2021-02-08T18:43:09.000Z | example_project/test_messages/bbcode_tags.py | bastiedotorg/django-precise-bbcode | 567a8a7f104fb7f2c9d59f304791e53d2d8f4dea | [
"BSD-3-Clause"
] | 31 | 2015-01-16T00:25:19.000Z | 2021-12-11T16:40:03.000Z | example_project/test_messages/bbcode_tags.py | bastiedotorg/django-precise-bbcode | 567a8a7f104fb7f2c9d59f304791e53d2d8f4dea | [
"BSD-3-Clause"
] | 13 | 2015-07-16T23:25:10.000Z | 2020-08-23T20:12:24.000Z | import re
from precise_bbcode.bbcode.tag import BBCodeTag
from precise_bbcode.tag_pool import tag_pool
color_re = re.compile(r'^([a-z]+|#[0-9abcdefABCDEF]{3,6})$')
class SubTag(BBCodeTag):
name = 'sub'
def render(self, value, option=None, parent=None):
return '<sub>%s</sub>' % value
class PreTag... | 27.125 | 97 | 0.673835 | 250 | 1,953 | 5.148 | 0.296 | 0.048951 | 0.081585 | 0.097902 | 0.135198 | 0.135198 | 0.135198 | 0.135198 | 0.105672 | 0 | 0 | 0.00733 | 0.161802 | 1,953 | 71 | 98 | 27.507042 | 0.778864 | 0 | 0 | 0.085106 | 0 | 0 | 0.262161 | 0.197645 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.06383 | 0.042553 | 0.765957 | 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 |
ab59b426727f7713efb93b6855597da219efc0be | 1,695 | py | Python | examples/multimedia/mmimdb_MFM.py | kapikantzari/MultiBench | 44ab6ea028682040a0c04de68239ce5cdf15123f | [
"MIT"
] | 148 | 2021-03-06T06:54:13.000Z | 2022-03-29T19:27:21.000Z | examples/multimedia/mmimdb_MFM.py | kapikantzari/MultiBench | 44ab6ea028682040a0c04de68239ce5cdf15123f | [
"MIT"
] | 10 | 2021-07-19T22:57:49.000Z | 2022-02-04T03:12:29.000Z | examples/multimedia/mmimdb_MFM.py | kapikantzari/MultiBench | 44ab6ea028682040a0c04de68239ce5cdf15123f | [
"MIT"
] | 18 | 2021-07-22T07:17:27.000Z | 2022-03-27T16:11:40.000Z | import torch
import sys
import os
sys.path.append(os.getcwd())
from utils.helper_modules import Sequential2
from unimodals.common_models import Linear, MLP, MaxOut_MLP
from datasets.imdb.get_data import get_dataloader
from fusions.common_fusions import Concat
from objective_functions.objectives_for_supervised_learnin... | 42.375 | 175 | 0.746313 | 236 | 1,695 | 5.177966 | 0.427966 | 0.085925 | 0.03928 | 0.045827 | 0.061375 | 0.0491 | 0.0491 | 0.0491 | 0.0491 | 0.0491 | 0 | 0.046791 | 0.117404 | 1,695 | 39 | 176 | 43.461538 | 0.770053 | 0 | 0 | 0 | 0 | 0 | 0.065487 | 0.017109 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.322581 | 0 | 0.322581 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab5a9e198509b5652d8bbadee3e63897c02a6e94 | 1,461 | py | Python | subeana/migrations/0001_initial.py | izumin2000/izuminapp | 3464cebe1d98c85c2cd95c6fac779ec1f42ef930 | [
"MIT"
] | null | null | null | subeana/migrations/0001_initial.py | izumin2000/izuminapp | 3464cebe1d98c85c2cd95c6fac779ec1f42ef930 | [
"MIT"
] | null | null | null | subeana/migrations/0001_initial.py | izumin2000/izuminapp | 3464cebe1d98c85c2cd95c6fac779ec1f42ef930 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-06-01 04:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Channel',
fields=[
... | 40.583333 | 169 | 0.600274 | 155 | 1,461 | 5.541935 | 0.380645 | 0.037253 | 0.074505 | 0.076834 | 0.590221 | 0.470314 | 0.393481 | 0.393481 | 0.393481 | 0.393481 | 0 | 0.022873 | 0.251882 | 1,461 | 35 | 170 | 41.742857 | 0.763038 | 0.030801 | 0 | 0.428571 | 1 | 0 | 0.082037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.214286 | 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 |
ab5ff68a9733a875c0aeb19f8b19c6f3ac7260b4 | 3,108 | py | Python | vendor/packages/logilab-astng/__pkginfo__.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | 2 | 2019-08-19T17:08:47.000Z | 2019-10-05T11:37:02.000Z | vendor/packages/logilab-astng/__pkginfo__.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | vendor/packages/logilab-astng/__pkginfo__.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free Software
# Foundation; either version 2 of the Lic... | 40.363636 | 87 | 0.740991 | 483 | 3,108 | 4.749482 | 0.403727 | 0.013078 | 0.031386 | 0.049695 | 0.442895 | 0.442895 | 0.442895 | 0.418483 | 0.385353 | 0.385353 | 0 | 0.024166 | 0.161197 | 3,108 | 76 | 88 | 40.894737 | 0.855773 | 0.557593 | 0 | 0 | 0 | 0.038462 | 0.647412 | 0.045761 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 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 |
ab617d4c442405b9219d3fa02f66e3a525d82e42 | 4,339 | py | Python | bioinformatics/analysis/rnaseq/prepare/split_gtf_by_type.py | bioShaun/omsCabinet | 741179a06cbd5200662cd03bc2e0115f4ad06917 | [
"MIT"
] | null | null | null | bioinformatics/analysis/rnaseq/prepare/split_gtf_by_type.py | bioShaun/omsCabinet | 741179a06cbd5200662cd03bc2e0115f4ad06917 | [
"MIT"
] | null | null | null | bioinformatics/analysis/rnaseq/prepare/split_gtf_by_type.py | bioShaun/omsCabinet | 741179a06cbd5200662cd03bc2e0115f4ad06917 | [
"MIT"
] | null | null | null | import fire
import gtfparse
from pathlib import Path
GENCODE_CATEGORY_MAP = {
'IG_C_gene': 'protein_coding',
'IG_D_gene': 'protein_coding',
'IG_J_gene': 'protein_coding',
'IG_V_gene': 'protein_coding',
'IG_LV_gene': 'protein_coding',
'TR_C_gene': 'protein_coding',
'TR_J_gene': 'protein_cod... | 30.77305 | 59 | 0.63563 | 506 | 4,339 | 5.086957 | 0.264822 | 0.20202 | 0.059441 | 0.029526 | 0.043512 | 0.028749 | 0.028749 | 0.028749 | 0.028749 | 0.028749 | 0 | 0.002061 | 0.217101 | 4,339 | 140 | 60 | 30.992857 | 0.755667 | 0 | 0 | 0.079365 | 0 | 0 | 0.403319 | 0.078129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0.015873 | 0.02381 | 0 | 0.063492 | 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 |
ab6209870d287fc20132452f64da2ca39e9ab140 | 1,890 | py | Python | cities_light/tests/test_import.py | jsandovalc/django-cities-light | a1c6af08938b7b01d4e12555bd4cb5040905603d | [
"MIT"
] | null | null | null | cities_light/tests/test_import.py | jsandovalc/django-cities-light | a1c6af08938b7b01d4e12555bd4cb5040905603d | [
"MIT"
] | null | null | null | cities_light/tests/test_import.py | jsandovalc/django-cities-light | a1c6af08938b7b01d4e12555bd4cb5040905603d | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import glob
import os
from dbdiff.fixture import Fixture
from .base import TestImportBase, FixtureDir
from ..settings import DATA_DIR
class TestImport(TestImportBase):
"""Load test."""
def test_single_city(self):
"""Load single city."""
fixture_dir = ... | 29.53125 | 84 | 0.607937 | 192 | 1,890 | 5.671875 | 0.28125 | 0.073462 | 0.038567 | 0.049587 | 0.471074 | 0.471074 | 0.471074 | 0.471074 | 0.410468 | 0.323232 | 0 | 0 | 0.291005 | 1,890 | 63 | 85 | 30 | 0.812687 | 0.044444 | 0 | 0.428571 | 0 | 0 | 0.204036 | 0.036996 | 0 | 0 | 0 | 0 | 0.061224 | 1 | 0.061224 | false | 0 | 0.306122 | 0 | 0.387755 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
db4545f1a4dfa83103a39912add856795ff6a347 | 813 | py | Python | core/tests/test_base_time_range_controller.py | One-Green/plant-keeper-master | 67101a4cc7070d26fd1685631a710ae9a60fc5e8 | [
"CC0-1.0"
] | 2 | 2022-02-04T17:52:38.000Z | 2022-02-04T17:52:40.000Z | core/tests/test_base_time_range_controller.py | shanisma/plant-keeper | 3ca92ae2d55544a301e1398496a08a45cca6d15b | [
"CC0-1.0"
] | 4 | 2021-06-16T20:01:50.000Z | 2022-03-09T20:17:53.000Z | core/tests/test_base_time_range_controller.py | shanisma/plant-keeper | 3ca92ae2d55544a301e1398496a08a45cca6d15b | [
"CC0-1.0"
] | 1 | 2021-06-27T10:45:36.000Z | 2021-06-27T10:45:36.000Z | import os
import sys
from datetime import time
import unittest
sys.path.append(
os.path.dirname(
os.path.dirname(os.path.join("..", "..", "..", os.path.dirname("__file__")))
)
)
from core.controller import BaseTimeRangeController
class TestTimeRangeController(unittest.TestCase):
def test_time_ran... | 26.225806 | 84 | 0.688807 | 105 | 813 | 4.990476 | 0.371429 | 0.103053 | 0.181298 | 0.114504 | 0.274809 | 0.171756 | 0.171756 | 0.171756 | 0.171756 | 0.171756 | 0 | 0.026114 | 0.199262 | 813 | 30 | 85 | 27.1 | 0.778802 | 0 | 0 | 0.086957 | 0 | 0 | 0.02706 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db45d8bc1a8d49e33721d418ba06b6f827c48c0b | 4,098 | py | Python | generator_code/mp3_generator.py | jurganson/spingen | f8421a26356d0cd1d94a0692846791eb45fce6f5 | [
"MIT"
] | null | null | null | generator_code/mp3_generator.py | jurganson/spingen | f8421a26356d0cd1d94a0692846791eb45fce6f5 | [
"MIT"
] | null | null | null | generator_code/mp3_generator.py | jurganson/spingen | f8421a26356d0cd1d94a0692846791eb45fce6f5 | [
"MIT"
] | null | null | null | from gtts import gTTS as ttos
from pydub import AudioSegment
import os
def generate_mp3 (segments, fade_ms, speech_gain, comment_fade_ms, language = "en", output_file_name = "generated_program_sound") :
def apply_comments (exercise_audio, segment) :
new_exercise_audio = exercise_audio
for comment ... | 54.64 | 175 | 0.708394 | 607 | 4,098 | 4.410214 | 0.158155 | 0.052297 | 0.065745 | 0.035861 | 0.368323 | 0.283526 | 0.125887 | 0.125887 | 0.05678 | 0.030631 | 0 | 0.044245 | 0.183748 | 4,098 | 74 | 176 | 55.378378 | 0.756054 | 0.019522 | 0 | 0.034483 | 1 | 0 | 0.064291 | 0.005731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.051724 | 0 | 0.155172 | 0.086207 | 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 |
db4b0c2266fee61af6dfa6c16082c9e18c028c39 | 4,345 | py | Python | selfdrive/locationd/calibrationd.py | matthewklinko/openpilot | b0563a59684d0901f99abbb58ac1fbd729ded1f9 | [
"MIT"
] | 3 | 2019-06-29T08:32:58.000Z | 2019-09-06T15:58:03.000Z | selfdrive/locationd/calibrationd.py | matthewklinko/openpilot | b0563a59684d0901f99abbb58ac1fbd729ded1f9 | [
"MIT"
] | 1 | 2019-09-22T06:44:10.000Z | 2019-09-22T06:44:10.000Z | selfdrive/locationd/calibrationd.py | matthewklinko/openpilot | b0563a59684d0901f99abbb58ac1fbd729ded1f9 | [
"MIT"
] | 2 | 2020-03-18T02:56:23.000Z | 2020-05-12T16:22:31.000Z | #!/usr/bin/env python
import os
import copy
import json
import numpy as np
import selfdrive.messaging as messaging
from selfdrive.locationd.calibration_helpers import Calibration
from selfdrive.swaglog import cloudlog
from common.params import Params
from common.transformations.model import model_height
from common.tra... | 35.325203 | 105 | 0.711853 | 630 | 4,345 | 4.684127 | 0.312698 | 0.016943 | 0.026432 | 0.024399 | 0.094883 | 0.032531 | 0 | 0 | 0 | 0 | 0 | 0.020102 | 0.187112 | 4,345 | 122 | 106 | 35.614754 | 0.815402 | 0.074108 | 0 | 0.085106 | 0 | 0 | 0.058281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106383 | null | null | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db4d954b047874012d94933f5000302aa9b31037 | 1,500 | py | Python | TSFpy/debug/sample_fibonacci.py | ooblog/TSF1KEV | f7d4b4ff88f52ba00b46eb53ed98f8ea62ec2f6d | [
"MIT"
] | null | null | null | TSFpy/debug/sample_fibonacci.py | ooblog/TSF1KEV | f7d4b4ff88f52ba00b46eb53ed98f8ea62ec2f6d | [
"MIT"
] | null | null | null | TSFpy/debug/sample_fibonacci.py | ooblog/TSF1KEV | f7d4b4ff88f52ba00b46eb53ed98f8ea62ec2f6d | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import division,print_function,absolute_import,unicode_literals
import sys
import os
os.chdir(sys.path[0])
sys.path.append('/mnt/sda2/github/TSF1KEV/TSFpy')
from TSF_io import *
#from TSF_Forth import *
from TSF_shuffle import *
from TSF_match import *
fro... | 39.473684 | 315 | 0.675333 | 235 | 1,500 | 4.008511 | 0.293617 | 0.084926 | 0.069002 | 0.063694 | 0.130573 | 0.112527 | 0.063694 | 0.063694 | 0 | 0 | 0 | 0.032999 | 0.070667 | 1,500 | 37 | 316 | 40.540541 | 0.642755 | 0.044 | 0 | 0.172414 | 0 | 0.034483 | 0.397203 | 0.14965 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.275862 | 0 | 0.275862 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db4dff7ffc5831999b457d95fed00095a9bee6b8 | 6,545 | py | Python | Tomboy2Evernote.py | rguptan/Tomboy2Evernote | 2bee66537d080c13856811b806613ca6aaef8833 | [
"MIT"
] | null | null | null | Tomboy2Evernote.py | rguptan/Tomboy2Evernote | 2bee66537d080c13856811b806613ca6aaef8833 | [
"MIT"
] | null | null | null | Tomboy2Evernote.py | rguptan/Tomboy2Evernote | 2bee66537d080c13856811b806613ca6aaef8833 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import re
import sys, getopt
import glob
import os
def process_files(inputdir, outputdir):
os.chdir(inputdir)
enex_notes = []
output_filename = 'Tomboy2Evernote.enex'
i = 0
for file in glob.glob("*.note"):
note_file_path = inputdir + '/' + file
... | 34.088542 | 119 | 0.60382 | 950 | 6,545 | 3.962105 | 0.211579 | 0.142402 | 0.030287 | 0.065622 | 0.343783 | 0.225558 | 0.175611 | 0.128321 | 0.099097 | 0.065622 | 0 | 0.018234 | 0.195569 | 6,545 | 191 | 120 | 34.267016 | 0.696296 | 0.037892 | 0 | 0.133333 | 0 | 0.044444 | 0.276619 | 0.119211 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02963 | 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 |
db643ae984ce9c0d8dd5236851af05c04998a27b | 6,746 | py | Python | engine/tree.py | dougsc/gp | d144dd1f483150b26483077e6e5032f4f21a6d4e | [
"Apache-2.0"
] | null | null | null | engine/tree.py | dougsc/gp | d144dd1f483150b26483077e6e5032f4f21a6d4e | [
"Apache-2.0"
] | null | null | null | engine/tree.py | dougsc/gp | d144dd1f483150b26483077e6e5032f4f21a6d4e | [
"Apache-2.0"
] | null | null | null | import random
from pprint import pformat
from copy import deepcopy
from utils.logger import GP_Logger
from terminal_set import TerminalSet
class Tree:
@classmethod
def log(cls):
return GP_Logger.logger(cls.__name__)
def __init__(self):
self.terminal_set=None
self.function_set=None
self.function_... | 40.154762 | 141 | 0.67225 | 919 | 6,746 | 4.64309 | 0.1284 | 0.044996 | 0.055777 | 0.017577 | 0.242559 | 0.104054 | 0.063276 | 0.048746 | 0.048746 | 0.026248 | 0 | 0.002397 | 0.196116 | 6,746 | 167 | 142 | 40.39521 | 0.784437 | 0.005485 | 0 | 0.113475 | 0 | 0.007092 | 0.12405 | 0 | 0 | 0 | 0 | 0 | 0.014184 | 0 | null | null | 0 | 0.035461 | null | null | 0.014184 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db64f80a8ca557a291741dc4fd34c7d58b0c51f0 | 7,181 | py | Python | lib/googlecloudsdk/third_party/apis/serviceuser/v1/serviceuser_v1_client.py | kustodian/google-cloud-sdk | b6bae4137d4b58030adb3dcb1271216dfb19f96d | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/third_party/apis/serviceuser/v1/serviceuser_v1_client.py | kustodian/google-cloud-sdk | b6bae4137d4b58030adb3dcb1271216dfb19f96d | [
"Apache-2.0"
] | 11 | 2020-02-29T02:51:12.000Z | 2022-03-30T23:20:08.000Z | lib/googlecloudsdk/third_party/apis/serviceuser/v1/serviceuser_v1_client.py | kustodian/google-cloud-sdk | b6bae4137d4b58030adb3dcb1271216dfb19f96d | [
"Apache-2.0"
] | 1 | 2020-07-25T18:17:57.000Z | 2020-07-25T18:17:57.000Z | """Generated client library for serviceuser version v1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.serviceuser.v1 import serviceuser_v1_messages as messages
class ServiceuserV1(base_api.BaseApiClient):
"""Generat... | 38.40107 | 179 | 0.709372 | 772 | 7,181 | 6.370466 | 0.233161 | 0.04636 | 0.030907 | 0.018707 | 0.473973 | 0.460553 | 0.386946 | 0.323302 | 0.288329 | 0.222448 | 0 | 0.006394 | 0.194123 | 7,181 | 186 | 180 | 38.607527 | 0.843442 | 0.265423 | 0 | 0.290598 | 1 | 0 | 0.203971 | 0.112396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068376 | false | 0 | 0.017094 | 0 | 0.247863 | 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 |
db66779a2882ba639d36d1d562ab73945afc92fc | 1,317 | py | Python | examples/rrbot_p2p_low_energy.py | abcamiletto/urdf2optcontrol | 39b3f761a4685cc7d50b48793b6b2906c89b1694 | [
"MIT"
] | null | null | null | examples/rrbot_p2p_low_energy.py | abcamiletto/urdf2optcontrol | 39b3f761a4685cc7d50b48793b6b2906c89b1694 | [
"MIT"
] | null | null | null | examples/rrbot_p2p_low_energy.py | abcamiletto/urdf2optcontrol | 39b3f761a4685cc7d50b48793b6b2906c89b1694 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from urdf2optcontrol import optimizer
from matplotlib import pyplot as plt
import pathlib
# URDF options
urdf_path = pathlib.Path(__file__).parent.joinpath('urdf', 'rrbot.urdf').absolute()
root = "link1"
end = "link3"
in_cond = [0] * 4
def my_cost_func(q, qd, qdd, ee_pos, u, t):
return u.... | 21.241935 | 83 | 0.688686 | 211 | 1,317 | 4.094787 | 0.369668 | 0.048611 | 0.034722 | 0.046296 | 0.158565 | 0.158565 | 0.158565 | 0.065972 | 0 | 0 | 0 | 0.045078 | 0.174639 | 1,317 | 61 | 84 | 21.590164 | 0.74977 | 0.129081 | 0 | 0 | 0 | 0 | 0.029798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.085714 | 0.142857 | 0.371429 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
db66ffcc00192c85b05965750638c6febdb95b51 | 15,803 | py | Python | SocketServer/apps/django-db-pool-master/dbpool/db/backends/postgresql_psycopg2/base.py | fqc/SocketSample_Mina_Socket | f5a7bb9bcd6052fe9e2a419c877073b32be4dc3d | [
"MIT"
] | 23 | 2015-01-28T13:31:24.000Z | 2020-03-11T18:11:45.000Z | SocketServer/apps/django-db-pool-master/dbpool/db/backends/postgresql_psycopg2/base.py | fqc/SocketSample_Mina_Socket | f5a7bb9bcd6052fe9e2a419c877073b32be4dc3d | [
"MIT"
] | 1 | 2015-04-30T12:01:00.000Z | 2015-04-30T13:33:38.000Z | SocketServer/apps/django-db-pool-master/dbpool/db/backends/postgresql_psycopg2/base.py | fqc/SocketSample_Mina_Socket | f5a7bb9bcd6052fe9e2a419c877073b32be4dc3d | [
"MIT"
] | 10 | 2015-05-27T12:52:19.000Z | 2021-01-13T13:35:11.000Z | """
Pooled PostgreSQL database backend for Django.
Requires psycopg 2: http://initd.org/projects/psycopg2
"""
from django import get_version as get_django_version
from django.db.backends.postgresql_psycopg2.base import \
DatabaseWrapper as OriginalDatabaseWrapper
from django.db.backends.signals import connection_c... | 44.767705 | 124 | 0.627729 | 1,838 | 15,803 | 5.170294 | 0.20457 | 0.051773 | 0.021467 | 0.015784 | 0.451436 | 0.426392 | 0.377249 | 0.370094 | 0.328738 | 0.30422 | 0 | 0.011855 | 0.295387 | 15,803 | 352 | 125 | 44.894886 | 0.841581 | 0.086249 | 0 | 0.387387 | 0 | 0 | 0.087607 | 0 | 0 | 0 | 0 | 0.005682 | 0 | 0 | null | null | 0.031532 | 0.094595 | 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 |
db68dcb7ad2aa62124559726780ed4b83d08a974 | 2,510 | py | Python | docker/cleanup_generators.py | hashnfv/hashnfv-nfvbench | 8da439b932537748d379c7bd3bdf560ef739b203 | [
"Apache-2.0"
] | null | null | null | docker/cleanup_generators.py | hashnfv/hashnfv-nfvbench | 8da439b932537748d379c7bd3bdf560ef739b203 | [
"Apache-2.0"
] | null | null | null | docker/cleanup_generators.py | hashnfv/hashnfv-nfvbench | 8da439b932537748d379c7bd3bdf560ef739b203 | [
"Apache-2.0"
] | 1 | 2019-07-14T14:54:15.000Z | 2019-07-14T14:54:15.000Z | # Copyright 2016 Cisco Systems, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 31.772152 | 88 | 0.622709 | 324 | 2,510 | 4.679012 | 0.453704 | 0.039578 | 0.015831 | 0.029024 | 0.058707 | 0.03496 | 0.030343 | 0.030343 | 0.030343 | 0 | 0 | 0.012651 | 0.275697 | 2,510 | 78 | 89 | 32.179487 | 0.821232 | 0.241434 | 0 | 0.166667 | 0 | 0 | 0.240346 | 0.097983 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020833 | 0.0625 | null | null | 0.145833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db6a7657f91ac9f80bc299ba273000b77ee1c28c | 490 | py | Python | storage/aug_buffer.py | nsortur/equi_rl | 83bd2ee9dfaab715e51b71ffff90ab990aaed5f8 | [
"MIT"
] | 9 | 2022-02-20T18:18:51.000Z | 2022-03-24T03:04:44.000Z | storage/aug_buffer.py | nsortur/equi_rl | 83bd2ee9dfaab715e51b71ffff90ab990aaed5f8 | [
"MIT"
] | null | null | null | storage/aug_buffer.py | nsortur/equi_rl | 83bd2ee9dfaab715e51b71ffff90ab990aaed5f8 | [
"MIT"
] | 2 | 2022-02-19T05:17:06.000Z | 2022-02-21T20:53:26.000Z | from storage.buffer import QLearningBuffer
from utils.torch_utils import ExpertTransition, augmentTransition
from utils.parameters import buffer_aug_type
class QLearningBufferAug(QLearningBuffer):
def __init__(self, size, aug_n=9):
super().__init__(size)
self.aug_n = aug_n
def add(self, transi... | 25.789474 | 71 | 0.72449 | 58 | 490 | 5.810345 | 0.448276 | 0.047478 | 0.077151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002519 | 0.189796 | 490 | 18 | 72 | 27.222222 | 0.846348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
db7042284fa2b7f2b0d11816372b28c2a0aa4dd3 | 1,755 | py | Python | __dm__.py | AbhilashDatta/InstagramBot | 21916fcfc621ae3185df8494b12aa35743c165f8 | [
"MIT"
] | 12 | 2021-07-17T09:19:07.000Z | 2022-01-18T18:49:43.000Z | __dm__.py | kumarankm/InstagramBot | db08f0ae12f22b76d31f844a9ff7f037622e534f | [
"MIT"
] | 1 | 2021-08-12T22:04:07.000Z | 2021-08-13T14:14:10.000Z | __dm__.py | kumarankm/InstagramBot | db08f0ae12f22b76d31f844a9ff7f037622e534f | [
"MIT"
] | 8 | 2021-07-17T09:19:19.000Z | 2021-09-13T19:15:04.000Z | from selenium import webdriver
from time import sleep
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
def Dm(driver,user,message):
''' This functio... | 56.612903 | 193 | 0.699145 | 277 | 1,755 | 4.33574 | 0.249097 | 0.129892 | 0.081599 | 0.09159 | 0.576187 | 0.560366 | 0.560366 | 0.545379 | 0.439634 | 0.439634 | 0 | 0.023121 | 0.112821 | 1,755 | 31 | 194 | 56.612903 | 0.748234 | 0.033618 | 0 | 0.142857 | 0 | 0.285714 | 0.346359 | 0.265838 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.285714 | 0 | 0.333333 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db7052a530fb46c3cf9935b4a0d738b78df5d9c6 | 11,060 | py | Python | mashov.py | Yotamefr/BeitBiram | 84bd6abddf6ac865b502e0692561ee48d510ef7c | [
"MIT"
] | 1 | 2020-12-31T07:32:28.000Z | 2020-12-31T07:32:28.000Z | mashov.py | Yotamefr/BeitBiram | 84bd6abddf6ac865b502e0692561ee48d510ef7c | [
"MIT"
] | null | null | null | mashov.py | Yotamefr/BeitBiram | 84bd6abddf6ac865b502e0692561ee48d510ef7c | [
"MIT"
] | null | null | null | import requests
from datetime import datetime
import json
from extras import Day, Lesson
class PasswordError(Exception):
pass
class LoginFailed(Exception):
pass
class MashovAPI:
"""
MashovAPI
Originally made by Xiddoc. Project can be found here: https://github.com/Xiddoc/MashovAPI
Modifica... | 34.88959 | 168 | 0.499458 | 1,082 | 11,060 | 4.966728 | 0.224584 | 0.042799 | 0.027912 | 0.028656 | 0.208969 | 0.164496 | 0.097507 | 0.06364 | 0.040194 | 0.040194 | 0 | 0.007595 | 0.357143 | 11,060 | 316 | 169 | 35 | 0.748242 | 0.110579 | 0 | 0.122549 | 0 | 0.009804 | 0.155264 | 0.019408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093137 | false | 0.068627 | 0.019608 | 0.02451 | 0.215686 | 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 |
db713485817468ad0752428e7966eefdca79459b | 4,233 | py | Python | clover.py | imyz/25000 | 909b6ceaf326138b0684e6600f347a38fe68f9f0 | [
"MIT"
] | 8 | 2015-08-10T03:43:06.000Z | 2022-01-18T21:23:31.000Z | clover.py | jcrocholl/25000 | 0607a9c2f5f16f0776d88e56460c6479921616cb | [
"MIT"
] | null | null | null | clover.py | jcrocholl/25000 | 0607a9c2f5f16f0776d88e56460c6479921616cb | [
"MIT"
] | 6 | 2015-06-28T20:02:01.000Z | 2018-01-06T17:37:38.000Z | #!/usr/bin/env python
from math import *
import sys
def rotate(x, y, degrees):
c = cos(pi * degrees / 180.0)
s = sin(pi * degrees / 180.0)
return x * c + y * s, y * c - x * s
def move(verb, **kwargs):
keys = kwargs.keys()
keys.sort()
words = [verb.upper()]
for key in keys:
words.a... | 25.196429 | 64 | 0.632412 | 709 | 4,233 | 3.726375 | 0.220028 | 0.050341 | 0.027252 | 0.020818 | 0.403482 | 0.385693 | 0.352385 | 0.340651 | 0.340651 | 0.340651 | 0 | 0.040672 | 0.198441 | 4,233 | 167 | 65 | 25.347305 | 0.73799 | 0.146704 | 0 | 0.116667 | 0 | 0 | 0.114334 | 0.006135 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016667 | 0.016667 | null | null | 0.141667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db71abd1961c2779351e3978214beab6ac4916f7 | 915 | py | Python | scripts/mnist_inference.py | asiakaczmar/noise2self | 75daaf188c49bff0da22c235540da20f4eca9614 | [
"MIT"
] | null | null | null | scripts/mnist_inference.py | asiakaczmar/noise2self | 75daaf188c49bff0da22c235540da20f4eca9614 | [
"MIT"
] | null | null | null | scripts/mnist_inference.py | asiakaczmar/noise2self | 75daaf188c49bff0da22c235540da20f4eca9614 | [
"MIT"
] | null | null | null | import torch
from torchvision.datasets import MNIST
from torchvision import transforms
from torch.utils.data import DataLoader
from scripts.utils import SyntheticNoiseDataset
from models.babyunet import BabyUnet
CHECKPOINTS_PATH = '../checkpoints/'
mnist_test = MNIST('../inferred_data/MNIST', download=True,
... | 31.551724 | 73 | 0.696175 | 108 | 915 | 5.722222 | 0.490741 | 0.058252 | 0.045307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0.196721 | 915 | 28 | 74 | 32.678571 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0.078775 | 0.04814 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | 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 |
db76b4e07eb1879ec4babded5e9e5a77166fce6b | 424 | py | Python | core/data/utils.py | ahmad-PH/auto_lcc | 55a6ac0e92994f4eed9951a27b7aa0d834f9d804 | [
"MIT"
] | 2 | 2022-01-01T22:09:05.000Z | 2022-01-01T23:00:43.000Z | core/data/utils.py | ahmad-PH/auto_lcc | 55a6ac0e92994f4eed9951a27b7aa0d834f9d804 | [
"MIT"
] | null | null | null | core/data/utils.py | ahmad-PH/auto_lcc | 55a6ac0e92994f4eed9951a27b7aa0d834f9d804 | [
"MIT"
] | null | null | null | import pickle
import pandas as pd
from typing import List, Tuple
def load_libofc_df(data_path):
def tuple_to_df(data: List[Tuple]) -> pd.DataFrame:
return pd.DataFrame(data, columns=["class", "title", "synopsis", "id"])
with open(data_path, 'rb') as f:
classes = pickle.load(f)
train = ... | 28.266667 | 79 | 0.660377 | 64 | 424 | 4.21875 | 0.46875 | 0.077778 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209906 | 424 | 14 | 80 | 30.285714 | 0.80597 | 0 | 0 | 0 | 0 | 0 | 0.051887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
db7701392b667ccf9ad8bc520bcd09b9ef9711c5 | 608 | py | Python | apps/users/adminx.py | hhdMrLion/mxshop-api | 1472ad0d959439ea80c1f8d8bfd3629c15d3017d | [
"Apache-2.0"
] | null | null | null | apps/users/adminx.py | hhdMrLion/mxshop-api | 1472ad0d959439ea80c1f8d8bfd3629c15d3017d | [
"Apache-2.0"
] | null | null | null | apps/users/adminx.py | hhdMrLion/mxshop-api | 1472ad0d959439ea80c1f8d8bfd3629c15d3017d | [
"Apache-2.0"
] | null | null | null | import xadmin
from users.models import VerifyCode
from xadmin import views
class BaseSetting(object):
# 添加主题功能
enable_themes = True
user_bootswatch = True
class GlobalSettings(object):
# 全局配置,后端管理标题和页脚
site_title = '天天生鲜后台管理'
site_footer = 'https://www.qnmlgb.top/'
# 菜单收缩
... | 22.518519 | 58 | 0.708882 | 65 | 608 | 6.523077 | 0.630769 | 0.070755 | 0.127358 | 0.108491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194079 | 608 | 26 | 59 | 23.384615 | 0.865306 | 0.042763 | 0 | 0 | 0 | 0 | 0.105072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
db7edea364132ddeeca859f58229a42b6ea2f0ae | 534 | py | Python | config/settings/local.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | config/settings/local.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | config/settings/local.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | from .base import *
DEBUG = True
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'SMS',
'USER': 'postgres',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '',
}... | 19.777778 | 64 | 0.617978 | 54 | 534 | 5.925926 | 0.777778 | 0.084375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220974 | 534 | 26 | 65 | 20.538462 | 0.769231 | 0.140449 | 0 | 0 | 0 | 0 | 0.45614 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.055556 | 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 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db8615ff95bbb42756435769fd0cc3b6f45c202c | 503 | py | Python | day-2/part_b.py | yuetsin/AoC | a7c5aea245ee6e77312352907fc4d1ac8eac2d3a | [
"CC0-1.0"
] | null | null | null | day-2/part_b.py | yuetsin/AoC | a7c5aea245ee6e77312352907fc4d1ac8eac2d3a | [
"CC0-1.0"
] | null | null | null | day-2/part_b.py | yuetsin/AoC | a7c5aea245ee6e77312352907fc4d1ac8eac2d3a | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
import re
def get_input() -> list:
with open('./input', 'r') as f:
return [v for v in [v.strip() for v in f.readlines()] if v]
lines = get_input()
count = 0
for line in lines:
lower, upper, char, password = re.split(r'-|: | ', line)
lower, upper = int(lower) - 1, int(upp... | 20.12 | 67 | 0.554672 | 74 | 503 | 3.743243 | 0.567568 | 0.057762 | 0.043321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013928 | 0.286282 | 503 | 24 | 68 | 20.958333 | 0.75766 | 0.097416 | 0 | 0 | 0 | 0 | 0.030973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.2 | 0.066667 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db8707b6679e39765f15056eb4cf61c517a7c762 | 9,435 | py | Python | hcloud/servers/domain.py | usmannasir/hcloud-python | 2a90551fb1c4d9d8a6aea5d8b6601a7c1360494d | [
"MIT"
] | 1 | 2019-10-23T01:00:08.000Z | 2019-10-23T01:00:08.000Z | hcloud/servers/domain.py | usmannasir/hcloud-python | 2a90551fb1c4d9d8a6aea5d8b6601a7c1360494d | [
"MIT"
] | null | null | null | hcloud/servers/domain.py | usmannasir/hcloud-python | 2a90551fb1c4d9d8a6aea5d8b6601a7c1360494d | [
"MIT"
] | 1 | 2019-06-19T17:53:10.000Z | 2019-06-19T17:53:10.000Z | # -*- coding: utf-8 -*-
from hcloud.core.domain import BaseDomain
from hcloud.helpers.descriptors import ISODateTime
class Server(BaseDomain):
"""Server Domain
:param id: int
ID of the server
:param name: str
Name of the server (must be unique per project and a valid hostname as pe... | 30.337621 | 147 | 0.598728 | 1,008 | 9,435 | 5.446429 | 0.196429 | 0.039344 | 0.020036 | 0.026412 | 0.267942 | 0.232605 | 0.20255 | 0.188889 | 0.188889 | 0.164299 | 0 | 0.006655 | 0.315209 | 9,435 | 310 | 148 | 30.435484 | 0.843058 | 0.449497 | 0 | 0.375 | 0 | 0 | 0.088171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.073864 | 0.011364 | 0 | 0.210227 | 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 |
db8a89f5042414f5dbf4f47067a5e2131c5f76b8 | 1,881 | py | Python | dlk/core/schedulers/__init__.py | cstsunfu/dlkit | 69e0efd372fa5c0ae5313124d0ba1ef55b535196 | [
"Apache-2.0"
] | null | null | null | dlk/core/schedulers/__init__.py | cstsunfu/dlkit | 69e0efd372fa5c0ae5313124d0ba1ef55b535196 | [
"Apache-2.0"
] | null | null | null | dlk/core/schedulers/__init__.py | cstsunfu/dlkit | 69e0efd372fa5c0ae5313124d0ba1ef55b535196 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 cstsunfu. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 30.836066 | 87 | 0.701223 | 238 | 1,881 | 5.432773 | 0.487395 | 0.046404 | 0.020108 | 0.024749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005355 | 0.205742 | 1,881 | 60 | 88 | 31.35 | 0.860107 | 0.407762 | 0 | 0 | 0 | 0 | 0.070209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.36 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
db95ca16068801b73d6de76c353700c64c6cc5f8 | 3,558 | py | Python | lctools/shortcuts.py | novel/lc-tools | 1b9032357e2e87aebd76d87664077caa5747c220 | [
"Apache-2.0"
] | 5 | 2015-03-24T11:04:18.000Z | 2021-07-11T00:06:44.000Z | lctools/shortcuts.py | novel/lc-tools | 1b9032357e2e87aebd76d87664077caa5747c220 | [
"Apache-2.0"
] | null | null | null | lctools/shortcuts.py | novel/lc-tools | 1b9032357e2e87aebd76d87664077caa5747c220 | [
"Apache-2.0"
] | null | null | null | import getopt
import sys
from libcloud.compute.types import NodeState
from lc import get_lc
from printer import Printer
def lister_main(what, resource=None,
extension=False, supports_location=False, **kwargs):
"""Shortcut for main() routine for lister
tools, e.g. lc-SOMETHING-list
@param what: ... | 28.693548 | 88 | 0.606239 | 487 | 3,558 | 4.338809 | 0.289528 | 0.028396 | 0.026503 | 0.024136 | 0.162802 | 0.131566 | 0.131566 | 0.095599 | 0.066257 | 0.066257 | 0 | 0.00352 | 0.281338 | 3,558 | 123 | 89 | 28.926829 | 0.822839 | 0 | 0 | 0.25 | 0 | 0 | 0.067014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069444 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db991c0b9d90667e802fd9ff394fd81d65368331 | 624 | py | Python | ex38.py | YunMeMeThaw/python_exercises | 151d5d3695d578059611ac09c94b3677442197d7 | [
"MIT"
] | null | null | null | ex38.py | YunMeMeThaw/python_exercises | 151d5d3695d578059611ac09c94b3677442197d7 | [
"MIT"
] | null | null | null | ex38.py | YunMeMeThaw/python_exercises | 151d5d3695d578059611ac09c94b3677442197d7 | [
"MIT"
] | null | null | null | ten_things = "Apples Oranges cows Telephone Light Sugar"
print ("Wait there are not 10 things in that list. Let's fix")
stuff = ten_things.split(' ')
more_stuff = {"Day", "Night", "Song", "Firebee",
"Corn", "Banana", "Girl", "Boy"}
while len(stuff) !=10:
next_one = more_stuff.pop()
print("Adding: ", next_one)
... | 27.130435 | 62 | 0.647436 | 97 | 624 | 4.092784 | 0.57732 | 0.052897 | 0.065491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.160256 | 624 | 22 | 63 | 28.363636 | 0.742366 | 0.0625 | 0 | 0 | 0 | 0 | 0.378657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.588235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db99d0c184b26e85aa45a341b38434f288a19023 | 700 | py | Python | var/spack/repos/builtin/packages/diffmark/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11 | 2015-10-04T02:17:46.000Z | 2018-02-07T18:23:00.000Z | var/spack/repos/builtin/packages/diffmark/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 22 | 2017-08-01T22:45:10.000Z | 2022-03-10T07:46:31.000Z | var/spack/repos/builtin/packages/diffmark/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2016-06-10T17:57:39.000Z | 2018-09-11T04:59:38.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Diffmark(AutotoolsPackage):
"""Diffmark is a DSL for transforming one string to another.""... | 30.434783 | 73 | 0.688571 | 90 | 700 | 5.288889 | 0.666667 | 0.113445 | 0.168067 | 0.189076 | 0.121849 | 0.121849 | 0 | 0 | 0 | 0 | 0 | 0.02069 | 0.171429 | 700 | 22 | 74 | 31.818182 | 0.8 | 0.352857 | 0 | 0 | 0 | 0 | 0.328829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db9d8c67bcfd3a7c9d253f50f4a6bf8badfcdb9c | 592 | py | Python | betterbib/__init__.py | tbabej/betterbib | 80a3c9040232d9988f9a1e4c40724b40b9b9ed85 | [
"MIT"
] | null | null | null | betterbib/__init__.py | tbabej/betterbib | 80a3c9040232d9988f9a1e4c40724b40b9b9ed85 | [
"MIT"
] | null | null | null | betterbib/__init__.py | tbabej/betterbib | 80a3c9040232d9988f9a1e4c40724b40b9b9ed85 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
from __future__ import print_function
from betterbib.__about__ import (
__version__,
__author__,
__author_email__,
__website__,
)
from betterbib.tools import (
create_dict,
decode,
pybtex_to_dict,
pybtex_to_bibtex_string,
write,
update,
Journal... | 18.5 | 59 | 0.701014 | 64 | 592 | 5.765625 | 0.640625 | 0.140921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002169 | 0.221284 | 592 | 31 | 60 | 19.096774 | 0.798265 | 0.035473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.038462 | 0.269231 | 0 | 0.269231 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbad2da50018b20b9e8cf4be1668cfeef2d4c6cb | 729 | py | Python | tests/test_dump.py | flaeppe/astunparse | 754ec7d113fa273625ccc7b6c5d65aa7700ab8a9 | [
"PSF-2.0"
] | 189 | 2016-03-15T06:48:48.000Z | 2022-03-12T09:34:10.000Z | tests/test_dump.py | flaeppe/astunparse | 754ec7d113fa273625ccc7b6c5d65aa7700ab8a9 | [
"PSF-2.0"
] | 50 | 2015-09-14T16:22:00.000Z | 2022-02-24T05:36:57.000Z | tests/test_dump.py | flaeppe/astunparse | 754ec7d113fa273625ccc7b6c5d65aa7700ab8a9 | [
"PSF-2.0"
] | 52 | 2015-04-29T10:52:33.000Z | 2022-03-03T19:59:54.000Z | import ast
import re
import sys
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest
import astunparse
from tests.common import AstunparseCommonTestCase
class DumpTestCase(AstunparseCommonTestCase, unittest.TestCase):
def assertASTEqual(self, dump1, dump2):
# undo the ... | 29.16 | 71 | 0.663923 | 89 | 729 | 5.359551 | 0.52809 | 0.062893 | 0.041929 | 0.046122 | 0.075472 | 0.075472 | 0.075472 | 0 | 0 | 0 | 0 | 0.029412 | 0.207133 | 729 | 24 | 72 | 30.375 | 0.795848 | 0.032922 | 0 | 0 | 0 | 0 | 0.048364 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.105263 | false | 0 | 0.368421 | 0 | 0.526316 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.