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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
810f994434ee419db389a46f9133659e2996b794 | 4,351 | py | Python | invenio_app_ils/permissions.py | equadon/invenio-app-ils | 42ba282968d0aa28fb1bfc71d0709685165aaec4 | [
"MIT"
] | null | null | null | invenio_app_ils/permissions.py | equadon/invenio-app-ils | 42ba282968d0aa28fb1bfc71d0709685165aaec4 | [
"MIT"
] | null | null | null | invenio_app_ils/permissions.py | equadon/invenio-app-ils | 42ba282968d0aa28fb1bfc71d0709685165aaec4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2018 CERN.
#
# invenio-app-ils is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Ils permissions."""
from __future__ import absolute_import, print_function
from functools import wraps
from ... | 31.528986 | 79 | 0.707653 | 505 | 4,351 | 5.867327 | 0.281188 | 0.080999 | 0.096524 | 0.091124 | 0.304759 | 0.219035 | 0.166385 | 0.077624 | 0.077624 | 0.077624 | 0 | 0.003725 | 0.197886 | 4,351 | 137 | 80 | 31.759124 | 0.845272 | 0.190071 | 0 | 0.234568 | 0 | 0 | 0.097234 | 0.066958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.111111 | 0 | 0.567901 | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8115c73224491cf9639dd2e6cf5446c67847e7f7 | 13,316 | py | Python | tsai/callback/MVP.py | mvccn/tsai | 94207d69d8a1531b5847b76a2b453296d9b8042d | [
"Apache-2.0"
] | 1 | 2021-12-03T20:44:55.000Z | 2021-12-03T20:44:55.000Z | tsai/callback/MVP.py | mvccn/tsai | 94207d69d8a1531b5847b76a2b453296d9b8042d | [
"Apache-2.0"
] | null | null | null | tsai/callback/MVP.py | mvccn/tsai | 94207d69d8a1531b5847b76a2b453296d9b8042d | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/063_callback.MVP.ipynb (unless otherwise specified).
__all__ = ['create_subsequence_mask', 'create_variable_mask', 'create_future_mask', 'natural_mask', 'create_mask',
'MVP', 'TSBERT']
# Cell
from ..imports import *
from fastai.callback.all import *
from ..ut... | 50.249057 | 157 | 0.616101 | 1,912 | 13,316 | 4.136506 | 0.189331 | 0.037552 | 0.031862 | 0.012391 | 0.224301 | 0.164496 | 0.142369 | 0.123277 | 0.090277 | 0.082691 | 0 | 0.011507 | 0.269075 | 13,316 | 265 | 158 | 50.249057 | 0.801089 | 0.155452 | 0 | 0.156098 | 1 | 0.014634 | 0.083288 | 0.019172 | 0 | 0 | 0 | 0 | 0.014634 | 1 | 0.058537 | false | 0.004878 | 0.043902 | 0.004878 | 0.15122 | 0.004878 | 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 |
81186e0082a5d66b35d89873bda2d30f943c8082 | 223 | py | Python | DICTQ/NUMBER3.py | MakarFadeev/PythonTasks | 2ae18c3c6a50808f985966d3304a6af6824ce686 | [
"Apache-2.0"
] | 2 | 2020-11-13T05:59:45.000Z | 2020-11-29T09:26:20.000Z | DICTQ/NUMBER3.py | MakarFadeev/PythonTasks | 2ae18c3c6a50808f985966d3304a6af6824ce686 | [
"Apache-2.0"
] | 1 | 2020-10-29T18:14:10.000Z | 2020-10-29T18:14:10.000Z | DICTQ/NUMBER3.py | MakarFadeev/PythonTasks | 2ae18c3c6a50808f985966d3304a6af6824ce686 | [
"Apache-2.0"
] | null | null | null | classmates = {'Петя': 9, 'Вася': 7, 'Ваня': 5, 'Толя': 3, 'Маша': 1, 'Саша': -1, 'Учитель': 11}
names = ['Петя', 'Вася', 'Ваня', 'Толя', 'Маша', 'Саша', 'Учитель']
for name in names:
print(name, ': ', classmates[name])
| 44.6 | 95 | 0.547085 | 31 | 223 | 3.935484 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.165919 | 223 | 4 | 96 | 55.75 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0.286996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
811cd9629e97e4f95879a6a957a6fcef766fc940 | 19,093 | py | Python | snowchange/cli.py | henrymcconville/snowchange | 76cce7ef54d2c954992631ac79df0102527f4211 | [
"Apache-2.0"
] | null | null | null | snowchange/cli.py | henrymcconville/snowchange | 76cce7ef54d2c954992631ac79df0102527f4211 | [
"Apache-2.0"
] | null | null | null | snowchange/cli.py | henrymcconville/snowchange | 76cce7ef54d2c954992631ac79df0102527f4211 | [
"Apache-2.0"
] | null | null | null | import os
import string
import re
import argparse
import json
import time
import hashlib
import snowflake.connector
import warnings
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives.asymmetric import dsa
from cryptograp... | 53.632022 | 457 | 0.746452 | 2,544 | 19,093 | 5.370676 | 0.168632 | 0.074215 | 0.076411 | 0.037327 | 0.39757 | 0.322696 | 0.277611 | 0.239406 | 0.221547 | 0.185538 | 0 | 0.004932 | 0.150474 | 19,093 | 355 | 458 | 53.783099 | 0.837423 | 0.134971 | 0 | 0.157692 | 0 | 0.034615 | 0.28254 | 0.043103 | 0 | 0 | 0 | 0.002817 | 0 | 1 | 0.046154 | false | 0.053846 | 0.05 | 0.003846 | 0.138462 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
811eb51b70388418c495670af96f06ccb757f5c3 | 4,572 | py | Python | examples/table_movie.py | gefei/rich | 8c3e6be424f36522cbb3c4773e58a01f5f39761f | [
"MIT"
] | 33,622 | 2019-12-24T05:18:43.000Z | 2022-01-05T10:34:21.000Z | examples/table_movie.py | gefei/rich | 8c3e6be424f36522cbb3c4773e58a01f5f39761f | [
"MIT"
] | 1,126 | 2020-01-23T19:34:37.000Z | 2022-01-04T11:55:56.000Z | examples/table_movie.py | gefei/rich | 8c3e6be424f36522cbb3c4773e58a01f5f39761f | [
"MIT"
] | 1,261 | 2020-01-23T11:11:31.000Z | 2022-01-04T19:35:56.000Z | """Same as the table_movie.py but uses Live to update"""
import time
from contextlib import contextmanager
from rich import box
from rich.align import Align
from rich.console import Console
from rich.live import Live
from rich.table import Table
from rich.text import Text
TABLE_DATA = [
[
"May 25, 1977",
... | 23.208122 | 84 | 0.557743 | 627 | 4,572 | 3.99362 | 0.283892 | 0.111821 | 0.119808 | 0.179712 | 0.394169 | 0.335863 | 0.254792 | 0.117412 | 0.092652 | 0.051917 | 0 | 0.096665 | 0.291776 | 4,572 | 196 | 85 | 23.326531 | 0.676652 | 0.010936 | 0 | 0.308725 | 0 | 0 | 0.212799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006711 | false | 0 | 0.053691 | 0 | 0.060403 | 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 |
811f12de59db085d2b3547c8cca1cb46c60779ab | 5,015 | py | Python | src/modules/conferences.py | tangg555/acl-anthology-helper | 38a28d26ab6ca079645cc6956917938442677d6b | [
"MIT"
] | 1 | 2021-08-23T15:37:27.000Z | 2021-08-23T15:37:27.000Z | src/modules/conferences.py | tangg555/acl-anthology-helper | 38a28d26ab6ca079645cc6956917938442677d6b | [
"MIT"
] | null | null | null | src/modules/conferences.py | tangg555/acl-anthology-helper | 38a28d26ab6ca079645cc6956917938442677d6b | [
"MIT"
] | null | null | null | """
@Desc:
"""
import requests
import json
import itertools
from tqdm import tqdm
from bs4 import BeautifulSoup as Soup
from .logger import MyLogger
from .constants import ConfConsts
from src.common.serialization_tools import MyEncoder
class Conference(object):
def __init__(self, name, label, link):
self.... | 33.885135 | 117 | 0.605583 | 627 | 5,015 | 4.593301 | 0.197767 | 0.05625 | 0.033333 | 0.038194 | 0.311111 | 0.244792 | 0.239583 | 0.154861 | 0.130556 | 0.101389 | 0 | 0.002202 | 0.275573 | 5,015 | 147 | 118 | 34.115646 | 0.790531 | 0.028913 | 0 | 0.245455 | 0 | 0 | 0.077858 | 0.01483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.072727 | 0.109091 | 0.409091 | 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 |
8121e4d2c40c0008270fff5683dee18236601911 | 1,846 | py | Python | server/user.py | elishakrasz1/effort | ede626ce76770e6673be810be1690b01154ac56a | [
"MIT"
] | null | null | null | server/user.py | elishakrasz1/effort | ede626ce76770e6673be810be1690b01154ac56a | [
"MIT"
] | null | null | null | server/user.py | elishakrasz1/effort | ede626ce76770e6673be810be1690b01154ac56a | [
"MIT"
] | null | null | null | class User(db.Model):
__tablename__ = 'user'
id = db.Column(UUID, primary_key=True)
username = db.Column(db.String(255))
email = db.Column(db.String(255))
phone = db.Column(db.String(16))
ccode = db.Column(db.String(8))
CREATED_BY = db.Column(UUID)
UPDATED_BY = db.Column(UUID)
U... | 28.4 | 108 | 0.643012 | 222 | 1,846 | 5.225225 | 0.279279 | 0.075862 | 0.051724 | 0.055172 | 0.434483 | 0.365517 | 0.365517 | 0.236207 | 0.236207 | 0.236207 | 0 | 0.006392 | 0.23727 | 1,846 | 64 | 109 | 28.84375 | 0.817472 | 0 | 0 | 0.244898 | 0 | 0 | 0.007042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8125ac9fa598b0df1f8bb799f77447429f2c02ce | 2,560 | py | Python | midi_instruments.py | joemarchese/tetratonicsquares | e0eb0b2937a400376ab45f582921cbad8e6cd948 | [
"MIT"
] | null | null | null | midi_instruments.py | joemarchese/tetratonicsquares | e0eb0b2937a400376ab45f582921cbad8e6cd948 | [
"MIT"
] | null | null | null | midi_instruments.py | joemarchese/tetratonicsquares | e0eb0b2937a400376ab45f582921cbad8e6cd948 | [
"MIT"
] | null | null | null | from collections import OrderedDict
instruments = OrderedDict()
instruments['Piano'] = ['Acoustic Grand Piano', 'Bright Acoustic Piano',
'Electric Grand Piano', 'Honky-tonk Piano', 'Electric Piano 1',
'Electric Piano 2', 'Harpsichord', 'Clavi',]
instruments['Chromatic Percussion'] = ['Celesta', 'Glockenspiel', 'Music ... | 59.534884 | 80 | 0.663672 | 310 | 2,560 | 5.480645 | 0.519355 | 0.02472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016014 | 0.121875 | 2,560 | 42 | 81 | 60.952381 | 0.739769 | 0 | 0 | 0 | 0 | 0 | 0.655078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.02439 | 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 |
81285852ba26a97da1f2b41bee2595f5876f74c6 | 1,274 | py | Python | interfaces/brfares.py | mdowds/commutercalculator-update | a96e1e711807cd64778196bbd86aa138e14bbc24 | [
"MIT"
] | null | null | null | interfaces/brfares.py | mdowds/commutercalculator-update | a96e1e711807cd64778196bbd86aa138e14bbc24 | [
"MIT"
] | 172 | 2018-05-28T07:34:30.000Z | 2021-07-28T07:15:35.000Z | interfaces/brfares.py | mdowds/commutercalculator-update | a96e1e711807cd64778196bbd86aa138e14bbc24 | [
"MIT"
] | null | null | null | from typing import Dict, Optional
from fn.iters import filter_list
from fn.monad import Either
import requests
from models import Station, SeasonTicket
def get_season_ticket(destination: Station, origin: Station) -> Either[SeasonTicket]:
response = Either.fromfunction(_make_request, origin.sid, destination.sid... | 32.666667 | 115 | 0.703297 | 166 | 1,274 | 5.144578 | 0.415663 | 0.046838 | 0.093677 | 0.07377 | 0.06089 | 0.06089 | 0 | 0 | 0 | 0 | 0 | 0.008523 | 0.171115 | 1,274 | 38 | 116 | 33.526316 | 0.800189 | 0.102826 | 0 | 0 | 0 | 0 | 0.060526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.217391 | 0.086957 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
812a83d0dad45e52b2d13d47c0dfead82e279b4d | 3,995 | py | Python | llvmpy/src/DataLayout.py | pfalcon/llvmpy | 2338eae5f6a91651125b8180abafa8c9afaa90d8 | [
"BSD-3-Clause"
] | 1 | 2017-02-12T19:34:14.000Z | 2017-02-12T19:34:14.000Z | llvmpy/src/DataLayout.py | pfalcon/llvmpy | 2338eae5f6a91651125b8180abafa8c9afaa90d8 | [
"BSD-3-Clause"
] | null | null | null | llvmpy/src/DataLayout.py | pfalcon/llvmpy | 2338eae5f6a91651125b8180abafa8c9afaa90d8 | [
"BSD-3-Clause"
] | null | null | null | from binding import *
from .namespace import llvm
from .Pass import ImmutablePass
DataLayout = llvm.Class(ImmutablePass)
StructLayout = llvm.Class()
from .LLVMContext import LLVMContext
from .ADT.StringRef import StringRef
from .Module import Module
from .Type import Type, IntegerType, StructType
from .ADT.SmallVecto... | 38.413462 | 81 | 0.689362 | 399 | 3,995 | 6.817043 | 0.22807 | 0.110294 | 0.086029 | 0.100368 | 0.294118 | 0.294118 | 0.157353 | 0.070588 | 0.070588 | 0.070588 | 0 | 0.010053 | 0.203254 | 3,995 | 103 | 82 | 38.786408 | 0.844486 | 0 | 0 | 0.134146 | 0 | 0 | 0.014768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0.02439 | 0.121951 | 0.012195 | 0.707317 | 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 |
812b025397dd76ef9c3daeea37793a3ae43255bd | 1,033 | py | Python | problems/758.Bold_Words_in_String/li.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/758.Bold_Words_in_String/li.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/758.Bold_Words_in_String/li.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | # coding=utf-8
# Author: Jianghan LI
# Question: 758.Bold_Words_in_String
# Date: 2018-01-07 0:07:01 - 0:20:05, 0 wrong try
class Solution(object):
def boldWords(self, words, S):
"""
:type words: List[str]
:type S: str
:rtype: str
"""
n = len(S)
isbold = [0... | 22.456522 | 49 | 0.403679 | 125 | 1,033 | 3.312 | 0.48 | 0.048309 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044925 | 0.418199 | 1,033 | 45 | 50 | 22.955556 | 0.643927 | 0.130687 | 0 | 0.074074 | 0 | 0 | 0.026385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
812bafa0c83c0aea44c6752fae77af81a0505657 | 2,705 | py | Python | Algo and DSA/LeetCode-Solutions-master/Python/longest-common-subpath.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | Algo and DSA/LeetCode-Solutions-master/Python/longest-common-subpath.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | Algo and DSA/LeetCode-Solutions-master/Python/longest-common-subpath.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | # Time: O(m * nlogn)
# Space: O(n)
class Solution(object):
def longestCommonSubpath(self, n, paths):
"""
:type n: int
:type paths: List[List[int]]
:rtype: int
"""
def RabinKarp(arr, x): # double hashing
hashes = tuple([reduce(lambda h,x: (h*p+x)%MOD, (a... | 36.554054 | 285 | 0.496858 | 374 | 2,705 | 3.593583 | 0.256684 | 0.041667 | 0.026786 | 0.053571 | 0.657738 | 0.657738 | 0.657738 | 0.629464 | 0.595238 | 0.595238 | 0 | 0.029011 | 0.375601 | 2,705 | 73 | 286 | 37.054795 | 0.766726 | 0.175601 | 0 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
812dace57cd886d7ebcb099ad94dbfdd80ba22f6 | 887 | py | Python | testbed/encrypt-ebs.py | okram999/aws-golden-ami-pipeline-sample | 0e7fabc82917e471fa3ff9f63f3ad3a879a8efdc | [
"MIT-0"
] | null | null | null | testbed/encrypt-ebs.py | okram999/aws-golden-ami-pipeline-sample | 0e7fabc82917e471fa3ff9f63f3ad3a879a8efdc | [
"MIT-0"
] | null | null | null | testbed/encrypt-ebs.py | okram999/aws-golden-ami-pipeline-sample | 0e7fabc82917e471fa3ff9f63f3ad3a879a8efdc | [
"MIT-0"
] | null | null | null | import boto3
ec2 = boto3.client('ec2', 'us-east-1')
images= ec2.describe_images(ImageIds=['ami-04875ac4aca3110a7'],DryRun=False)
# response = ec2.run_instances(ImageId='ami-04875ac4aca3110a7',SubnetId='subnet-020ae56c0d4835460',IamInstanceProfile={'Arn':'arn:aws:iam::400646037731:instance-profile/encrypted-golden-a... | 68.230769 | 565 | 0.728298 | 98 | 887 | 6.571429 | 0.704082 | 0.062112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111374 | 0.048478 | 887 | 13 | 566 | 68.230769 | 0.651659 | 0.811725 | 0 | 0 | 0 | 0 | 0.236364 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
81300fda3a2d3500bc91b0b62aeb32c8cfdf1aac | 674 | py | Python | exps/utils.py | annachen/dl_playground | f263dc16b4f0d91f6d33d94e678a9bbe2ace8913 | [
"MIT"
] | null | null | null | exps/utils.py | annachen/dl_playground | f263dc16b4f0d91f6d33d94e678a9bbe2ace8913 | [
"MIT"
] | null | null | null | exps/utils.py | annachen/dl_playground | f263dc16b4f0d91f6d33d94e678a9bbe2ace8913 | [
"MIT"
] | null | null | null | import os
import yaml
import shutil
from dl_playground.path import MODEL_ROOT
def load_and_save_config(config_path, model_path):
"""Loads the config and save a copy to the model folder."""
with open(config_path) as f:
config = yaml.safe_load(f)
model_path = os.path.expanduser(model_path)
# ... | 23.241379 | 63 | 0.682493 | 102 | 674 | 4.303922 | 0.392157 | 0.205011 | 0.075171 | 0.068337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219585 | 674 | 28 | 64 | 24.071429 | 0.834601 | 0.212166 | 0 | 0 | 0 | 0 | 0.028681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.375 | 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 |
81313bb9185122bb292e2c74851d3388713975d7 | 575 | py | Python | camera.py | eperezn/Server-Carro | bdb2c9f43e6594fc2dd377b81a716d9b6ffb921a | [
"MIT"
] | null | null | null | camera.py | eperezn/Server-Carro | bdb2c9f43e6594fc2dd377b81a716d9b6ffb921a | [
"MIT"
] | null | null | null | camera.py | eperezn/Server-Carro | bdb2c9f43e6594fc2dd377b81a716d9b6ffb921a | [
"MIT"
] | 1 | 2019-06-07T04:31:24.000Z | 2019-06-07T04:31:24.000Z |
import base64
import cv2
import time
import requests
def show_webcam(mirror=False):
cam = cv2.VideoCapture(0)
while True:
ret_val, img = cam.read()
if mirror:
img = cv2.flip(img, 1)
buffer = cv2.imencode(".jpg", img)
txt = base64.b64encode(buffer)
cv2.imsh... | 23 | 83 | 0.572174 | 77 | 575 | 4.233766 | 0.623377 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078049 | 0.286957 | 575 | 25 | 84 | 23 | 0.717073 | 0.01913 | 0 | 0 | 0 | 0 | 0.080071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8133ec22c999970f990d0cfa99150f2b928b5046 | 305 | py | Python | python/217.py | SeisSparrow/Leetcode | 10535ca41e51c0d2d4015e53da7efdca43000c4c | [
"MIT"
] | null | null | null | python/217.py | SeisSparrow/Leetcode | 10535ca41e51c0d2d4015e53da7efdca43000c4c | [
"MIT"
] | null | null | null | python/217.py | SeisSparrow/Leetcode | 10535ca41e51c0d2d4015e53da7efdca43000c4c | [
"MIT"
] | null | null | null | class Solution(object):
def containsDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
N = len(nums)
dic = {}
output = False
for i in range(0, N):
if nums[i] in dic:
output = True
else:
dic[nums[i]] = 1
return output
| 11.296296 | 38 | 0.501639 | 39 | 305 | 3.923077 | 0.692308 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.367213 | 305 | 26 | 39 | 11.730769 | 0.782383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8134eb1338cefc81c5d8ba036e69a6e3ec4413f4 | 1,672 | py | Python | tests/test_routines.py | mtoqeerpk/Telewavesim | 802ddc6342c6c0821619847653320ded5b325973 | [
"MIT"
] | null | null | null | tests/test_routines.py | mtoqeerpk/Telewavesim | 802ddc6342c6c0821619847653320ded5b325973 | [
"MIT"
] | null | null | null | tests/test_routines.py | mtoqeerpk/Telewavesim | 802ddc6342c6c0821619847653320ded5b325973 | [
"MIT"
] | 1 | 2021-07-18T15:47:03.000Z | 2021-07-18T15:47:03.000Z | from telewavesim import utils as ut
from telewavesim.rmat_f import plane as pw_f
from telewavesim import conf as cf
import numpy as np
import pyfftw
from conftest import load_params
def test_plane_obs(load_params):
yx, yy, yz = pw_f.plane_obs(cf.nt, cf.nlay, np.array(cf.wvtype, dtype='c'))
ux = np.real(pyfft... | 36.347826 | 80 | 0.692584 | 284 | 1,672 | 4 | 0.267606 | 0.03169 | 0.06338 | 0.116197 | 0.681338 | 0.681338 | 0.681338 | 0.681338 | 0.639085 | 0.639085 | 0 | 0.003636 | 0.177632 | 1,672 | 45 | 81 | 37.155556 | 0.822545 | 0.150718 | 0 | 0.444444 | 0 | 0 | 0.143666 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.074074 | false | 0 | 0.222222 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8136188ad6f498de4be89b9e2539067ad22cd7ea | 4,067 | py | Python | SIGVerse/learning/submodules.py | a-taniguchi/SpCoSLAM2 | 9d5d559cece2ebbfa11d5c54fbf5877172fd5844 | [
"MIT"
] | 1 | 2021-06-21T09:30:44.000Z | 2021-06-21T09:30:44.000Z | SIGVerse/learning/submodules.py | a-taniguchi/SpCoSLAM2 | 9d5d559cece2ebbfa11d5c54fbf5877172fd5844 | [
"MIT"
] | null | null | null | SIGVerse/learning/submodules.py | a-taniguchi/SpCoSLAM2 | 9d5d559cece2ebbfa11d5c54fbf5877172fd5844 | [
"MIT"
] | 3 | 2018-11-14T12:34:15.000Z | 2020-08-18T00:25:04.000Z | #coding:utf-8
#This file for general modules (一般性の高い関数はこちらへ集約)
#Akira Taniguchi 2018/11/26-2018/12/17-
import os
import numpy as np
from math import pi as PI
from math import cos,sin,sqrt,exp,log,fabs,fsum,degrees,radians,atan2,gamma,lgamma
from __init__ import *
def Makedir(dir):
try:
os.mkdir( dir )
... | 31.045802 | 178 | 0.535038 | 630 | 4,067 | 3.407937 | 0.312698 | 0.010247 | 0.019562 | 0.022357 | 0.207266 | 0.163018 | 0.148114 | 0.11551 | 0.11551 | 0.095016 | 0 | 0.049418 | 0.303418 | 4,067 | 131 | 179 | 31.045802 | 0.708436 | 0.163019 | 0 | 0.091954 | 0 | 0 | 0.022066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011494 | 0.057471 | null | null | 0.045977 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8137c13f6b15bc74c571e0f92d94e6e30f407e7c | 3,253 | py | Python | enaml/enaml/widgets/flow_area.py | ContinuumIO/ashiba | a93e7785d1fcf397baeb8a0b687a162a2b2aef3d | [
"BSD-3-Clause"
] | 11 | 2015-03-14T14:30:51.000Z | 2022-03-15T13:01:44.000Z | enaml/enaml/widgets/flow_area.py | ContinuumIO/ashiba | a93e7785d1fcf397baeb8a0b687a162a2b2aef3d | [
"BSD-3-Clause"
] | 3 | 2015-01-31T11:12:56.000Z | 2022-03-14T00:53:25.000Z | enaml/enaml/widgets/flow_area.py | ContinuumIO/ashiba | a93e7785d1fcf397baeb8a0b687a162a2b2aef3d | [
"BSD-3-Clause"
] | 4 | 2015-01-27T01:56:14.000Z | 2021-02-23T07:21:20.000Z | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | 32.858586 | 79 | 0.583154 | 354 | 3,253 | 5.245763 | 0.40113 | 0.016155 | 0.058158 | 0.06462 | 0.106624 | 0.080775 | 0.080775 | 0.029079 | 0 | 0 | 0 | 0.006915 | 0.199816 | 3,253 | 98 | 80 | 33.193878 | 0.706493 | 0.460498 | 0 | 0.131579 | 0 | 0 | 0.098507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.131579 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
813cb50cf023647f1be67ba4843c4ef4f8504dac | 1,005 | py | Python | tests/utils/test_iter_helpers.py | moinnadeem/composer | bc3f41b766bd4450f05a99f44db4a6b3901ea1c8 | [
"Apache-2.0"
] | null | null | null | tests/utils/test_iter_helpers.py | moinnadeem/composer | bc3f41b766bd4450f05a99f44db4a6b3901ea1c8 | [
"Apache-2.0"
] | null | null | null | tests/utils/test_iter_helpers.py | moinnadeem/composer | bc3f41b766bd4450f05a99f44db4a6b3901ea1c8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 MosaicML Composer authors
# SPDX-License-Identifier: Apache-2.0
import io
import numpy as np
import pytest
import torch
from composer.utils import IteratorFileStream, ensure_tuple
def test_none_to_tuple():
assert ensure_tuple(None) == ()
@pytest.mark.parametrize('x', ['test', b'test', bytear... | 23.928571 | 117 | 0.672637 | 160 | 1,005 | 4.05625 | 0.35625 | 0.07396 | 0.130971 | 0.135593 | 0.163328 | 0.163328 | 0.163328 | 0.083205 | 0 | 0 | 0 | 0.043224 | 0.148259 | 1,005 | 41 | 118 | 24.512195 | 0.714953 | 0.075622 | 0 | 0.083333 | 0 | 0 | 0.034557 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.208333 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
813ee75b48b1ac5a6b86f5af76f38d8da0071845 | 1,757 | py | Python | lintcode/Medium/056_Two_Sum.py | Rhadow/leetcode | 43209626720321113dbfbac67b3841e6efb4fab3 | [
"MIT"
] | 3 | 2017-04-03T12:18:24.000Z | 2018-06-25T08:31:04.000Z | lintcode/Medium/056_Two_Sum.py | Rhadow/leetcode | 43209626720321113dbfbac67b3841e6efb4fab3 | [
"MIT"
] | null | null | null | lintcode/Medium/056_Two_Sum.py | Rhadow/leetcode | 43209626720321113dbfbac67b3841e6efb4fab3 | [
"MIT"
] | null | null | null | class Solution:
"""
@param numbers : An array of Integer
@param target : target = numbers[index1] + numbers[index2]
@return : [index1 + 1, index2 + 1] (index1 < index2)
"""
def twoSum(self, numbers, target):
# Hash map
# map = {}
# for i, n in enumerate(numbers):
... | 33.150943 | 86 | 0.386454 | 184 | 1,757 | 3.576087 | 0.217391 | 0.027356 | 0.085106 | 0.12766 | 0.392097 | 0.325228 | 0.231003 | 0.212766 | 0.212766 | 0.212766 | 0 | 0.025731 | 0.513375 | 1,757 | 52 | 87 | 33.788462 | 0.74386 | 0.203187 | 0 | 0.457143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8141e7ce16644ca0fc960eb233c4e8fb24fe4b63 | 247 | py | Python | Apps/share/paciente/models.py | Jorge-DevOps/API_HealthTech | 795ebc1053bf72f5a9e05a83cd731029395d1950 | [
"MIT"
] | null | null | null | Apps/share/paciente/models.py | Jorge-DevOps/API_HealthTech | 795ebc1053bf72f5a9e05a83cd731029395d1950 | [
"MIT"
] | 1 | 2021-12-02T03:08:00.000Z | 2021-12-02T03:08:00.000Z | Apps/share/paciente/models.py | Jorge-DevOps/API_HealthTech | 795ebc1053bf72f5a9e05a83cd731029395d1950 | [
"MIT"
] | 1 | 2021-10-21T14:17:29.000Z | 2021-10-21T14:17:29.000Z | from django.db import models
from Apps.usuario.models import usuario
# Create your models here.
class Paciente(usuario):
contrato = models.CharField(max_length=100)
class Meta:
managed = False
db_table = 'paciente'
| 19 | 47 | 0.692308 | 31 | 247 | 5.451613 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.234818 | 247 | 12 | 48 | 20.583333 | 0.878307 | 0.097166 | 0 | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8141f7889d8aa5bde8e85d35b08a40f62986d648 | 1,835 | py | Python | 2022-05-06_Demo/sample2/lambda/lambda.py | localstack/presentations | b82704249ffd4aa33be50b1e6f0a65ce0ac9caca | [
"Apache-1.1"
] | null | null | null | 2022-05-06_Demo/sample2/lambda/lambda.py | localstack/presentations | b82704249ffd4aa33be50b1e6f0a65ce0ac9caca | [
"Apache-1.1"
] | null | null | null | 2022-05-06_Demo/sample2/lambda/lambda.py | localstack/presentations | b82704249ffd4aa33be50b1e6f0a65ce0ac9caca | [
"Apache-1.1"
] | null | null | null | import json
import boto3
# configuration
alerts_queue_name = "alerts-queue"
# AWS SDK clients
s3 = boto3.client("s3")
sqs = boto3.client("sqs")
# =============
# HELPER METHOD
# =============
def read_s3_object(bucket, key) -> str:
data = s3.get_object(Bucket=bucket, Key=key)
return data["Body"].read().d... | 25.486111 | 118 | 0.59673 | 217 | 1,835 | 4.926267 | 0.423963 | 0.05145 | 0.028064 | 0.033676 | 0.1029 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.249591 | 1,835 | 71 | 119 | 25.84507 | 0.763253 | 0.140599 | 0 | 0 | 0 | 0 | 0.175831 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.078947 | false | 0.026316 | 0.052632 | 0 | 0.210526 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d48f1cedaeaa1bbfb5bef08ce18ce6615e9d29f6 | 590 | py | Python | okr/migrations/0036_podcastepisode_available.py | wdr-data/wdr-okr | 71c9e6e8d3521b1bb67d30310a93584389de2127 | [
"MIT"
] | 2 | 2021-07-28T08:46:13.000Z | 2022-01-19T17:05:48.000Z | okr/migrations/0036_podcastepisode_available.py | wdr-data/wdr-okr | 71c9e6e8d3521b1bb67d30310a93584389de2127 | [
"MIT"
] | 3 | 2020-11-10T23:34:17.000Z | 2021-03-31T16:19:21.000Z | okr/migrations/0036_podcastepisode_available.py | wdr-data/wdr-okr | 71c9e6e8d3521b1bb67d30310a93584389de2127 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-09 10:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("okr", "0035_auto_20201208_1636"),
]
operations = [
migrations.AddField(
model_name="podcastepisode",
name="available... | 24.583333 | 87 | 0.572881 | 58 | 590 | 5.706897 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07868 | 0.332203 | 590 | 23 | 88 | 25.652174 | 0.761421 | 0.076271 | 0 | 0.117647 | 1 | 0 | 0.213628 | 0.042357 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d49274537960b99655127ff2a827d747d497c516 | 797 | py | Python | code/modules_/message.py | liudaizong/IA-Net | f19295d13d1468eb582521131cde3de83dfd18f6 | [
"MIT"
] | 4 | 2021-11-02T10:57:12.000Z | 2022-02-13T17:53:03.000Z | code/modules_/message.py | liudaizong/IA-Net | f19295d13d1468eb582521131cde3de83dfd18f6 | [
"MIT"
] | null | null | null | code/modules_/message.py | liudaizong/IA-Net | f19295d13d1468eb582521131cde3de83dfd18f6 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
class Message(nn.Module):
def __init__(self, d_model1, d_model2):
super().__init__()
self.fc_gate1 = nn.Linear(d_model1, d_model2, bias=False)
self.fc_gate2 = nn.Linear(d_model1, d_model2, bias=False)
#self.fc_gate1... | 34.652174 | 83 | 0.632371 | 125 | 797 | 3.8 | 0.296 | 0.117895 | 0.067368 | 0.117895 | 0.416842 | 0.315789 | 0.286316 | 0.286316 | 0.155789 | 0.155789 | 0 | 0.066884 | 0.230866 | 797 | 22 | 84 | 36.227273 | 0.707993 | 0.429109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d493bdd444fe0ed923069f2828247455acfbe9a5 | 1,564 | py | Python | pyls/plugins/pylint_lint.py | cbosdo/python-language-server | a20b9dfa15e8eff4384caa911873587271efb674 | [
"MIT"
] | null | null | null | pyls/plugins/pylint_lint.py | cbosdo/python-language-server | a20b9dfa15e8eff4384caa911873587271efb674 | [
"MIT"
] | null | null | null | pyls/plugins/pylint_lint.py | cbosdo/python-language-server | a20b9dfa15e8eff4384caa911873587271efb674 | [
"MIT"
] | null | null | null | # Copyright 2018 SUSE, Inc.
import os
import logging
import pylint.config
import pylint.lint
import pylint.reporters
from pyls import hookimpl, lsp
log = logging.getLogger(__name__)
@hookimpl
def pyls_lint(config, document, on_change):
settings = config.plugin_settings('pylint')
log.debug("Got pylint setting... | 27.928571 | 104 | 0.640026 | 191 | 1,564 | 5.167539 | 0.497382 | 0.036474 | 0.036474 | 0.038501 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009159 | 0.232097 | 1,564 | 55 | 105 | 28.436364 | 0.812656 | 0.118926 | 0 | 0 | 0 | 0 | 0.098901 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.108108 | false | 0 | 0.162162 | 0 | 0.351351 | 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 |
d49c337938d6931210bfad64d4a54037aded9db8 | 14,326 | py | Python | simtool/polymerxtal/io/polymod.py | janash/polymerxtal | 641f00bcc5db16d1da8b787944dea9d9d91a7d8a | [
"BSD-3-Clause"
] | 1 | 2020-08-13T23:52:56.000Z | 2020-08-13T23:52:56.000Z | simtool/polymerxtal/io/polymod.py | janash/polymerxtal | 641f00bcc5db16d1da8b787944dea9d9d91a7d8a | [
"BSD-3-Clause"
] | 8 | 2020-08-31T01:18:33.000Z | 2021-09-17T18:20:24.000Z | simtool/polymerxtal/io/polymod.py | janash/polymerxtal | 641f00bcc5db16d1da8b787944dea9d9d91a7d8a | [
"BSD-3-Clause"
] | 3 | 2020-08-26T14:58:59.000Z | 2021-03-15T09:06:24.000Z | """
Functions for manipulating Polymer Modeler files.
"""
from polymerxtal.polymod import main, readPDB
from .validate import validate_bonds, readbond
def generate_polymod_input(polymer_custom_input):
polymer_custom_output = polymer_custom_input + "_latch.in"
polymer_type_custom = {}
src = open(polymer_... | 39.794444 | 116 | 0.48597 | 1,652 | 14,326 | 4.105327 | 0.15799 | 0.084931 | 0.090239 | 0.040696 | 0.465497 | 0.388528 | 0.305515 | 0.214686 | 0.158803 | 0.152905 | 0 | 0.019191 | 0.396203 | 14,326 | 359 | 117 | 39.905292 | 0.764855 | 0.02136 | 0 | 0.338369 | 1 | 0.003021 | 0.274311 | 0.006926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015106 | false | 0.006042 | 0.006042 | 0 | 0.093656 | 0.075529 | 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 |
d4a1981fc525665fbc8eb6630026f4365766908b | 2,108 | py | Python | polymer.py | dwd/Polymer | 656d2b2f159b649fdb5281b82d938fb5453b9047 | [
"MIT"
] | 4 | 2016-04-14T06:52:02.000Z | 2019-03-30T08:43:14.000Z | polymer.py | dwd/Polymer | 656d2b2f159b649fdb5281b82d938fb5453b9047 | [
"MIT"
] | null | null | null | polymer.py | dwd/Polymer | 656d2b2f159b649fdb5281b82d938fb5453b9047 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2004,2005 Dave Cridland <dave@cridland.net>
#
# This file forms part of Infotrope Polymer.
#
# Infotrope Polymer is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 28.486486 | 108 | 0.662713 | 280 | 2,108 | 4.928571 | 0.542857 | 0.057971 | 0.028261 | 0.041304 | 0.086957 | 0.04058 | 0 | 0 | 0 | 0 | 0 | 0.018703 | 0.239089 | 2,108 | 73 | 109 | 28.876712 | 0.841646 | 0.382353 | 0 | 0.121212 | 0 | 0 | 0.125954 | 0.074427 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.242424 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4a6389be0f544d38ae937a256763b9b05de310c | 1,439 | py | Python | hassio-google-drive-backup/backup/__main__.py | IIAIronWolf/hassio-google-drive-backup | e8c8ffcaf02ad7bef67ad2430280ce90fd2c5f0d | [
"MIT"
] | null | null | null | hassio-google-drive-backup/backup/__main__.py | IIAIronWolf/hassio-google-drive-backup | e8c8ffcaf02ad7bef67ad2430280ce90fd2c5f0d | [
"MIT"
] | null | null | null | hassio-google-drive-backup/backup/__main__.py | IIAIronWolf/hassio-google-drive-backup | e8c8ffcaf02ad7bef67ad2430280ce90fd2c5f0d | [
"MIT"
] | null | null | null | import os
import ptvsd
import platform
import asyncio
import logging
from aiorun import run
from injector import Injector
from .logger import getLogger, CONSOLE, HISTORY
from backup.config import Config, Setting
from backup.module import MainModule, BaseModule
from backup.starter import Starter
from time import slee... | 29.367347 | 111 | 0.709521 | 184 | 1,439 | 5.396739 | 0.429348 | 0.040282 | 0.064451 | 0.048338 | 0.056395 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005973 | 0.185546 | 1,439 | 48 | 112 | 29.979167 | 0.841297 | 0.062543 | 0 | 0.057143 | 0 | 0 | 0.057207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d4a79f2ca500d1efa9bd873d6f43abace4fa2509 | 4,289 | py | Python | cornflow-server/cornflow/tests/ldap/test_ldap_authentication.py | ggsdc/corn | 4c17c46a70f95b8882bcb6a55ef7daa1f69e0456 | [
"MIT"
] | 2 | 2020-07-09T20:58:47.000Z | 2020-07-20T20:40:46.000Z | cornflow-server/cornflow/tests/ldap/test_ldap_authentication.py | baobabsoluciones/cornflow | bd7cae22107e5fe148704d5f41d4f58f9c410b40 | [
"Apache-2.0"
] | 2 | 2022-03-31T08:42:10.000Z | 2022-03-31T12:05:23.000Z | cornflow-server/cornflow/tests/ldap/test_ldap_authentication.py | ggsdc/corn | 4c17c46a70f95b8882bcb6a55ef7daa1f69e0456 | [
"MIT"
] | null | null | null | """
Integration tests for the login with ldap
"""
# Import from libraries
from flask import current_app
import json
# Import from internal modules
from cornflow.app import create_app, register_roles, access_init
from cornflow.models import UserModel, UserRoleModel
from cornflow.shared.const import PLANNER_ROLE
from c... | 35.741667 | 82 | 0.63931 | 475 | 4,289 | 5.501053 | 0.233684 | 0.064294 | 0.078071 | 0.087256 | 0.522005 | 0.435132 | 0.384615 | 0.384615 | 0.357061 | 0.357061 | 0 | 0.009568 | 0.244579 | 4,289 | 119 | 83 | 36.042017 | 0.796914 | 0.021683 | 0 | 0.377551 | 0 | 0 | 0.111297 | 0.005016 | 0 | 0 | 0 | 0 | 0.122449 | 1 | 0.112245 | false | 0.061224 | 0.071429 | 0 | 0.204082 | 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 |
d4aabc9084a5ced814c1ed98f37af1822b1c94e9 | 3,612 | py | Python | resources/assets.py | PaintNinja/Better-Foliage | b81f54980fee211d2b2a68515f52ed8058f041b7 | [
"MIT"
] | null | null | null | resources/assets.py | PaintNinja/Better-Foliage | b81f54980fee211d2b2a68515f52ed8058f041b7 | [
"MIT"
] | null | null | null | resources/assets.py | PaintNinja/Better-Foliage | b81f54980fee211d2b2a68515f52ed8058f041b7 | [
"MIT"
] | null | null | null | from mcresources import ResourceManager
from mcresources import utils
def generate(rm: ResourceManager):
vanilla_woods = ('oak', 'acacia', 'dark_oak', 'birch', 'jungle', 'spruce')
for wood in vanilla_woods:
direct_block_model(rm, 'betterfoliage:%s_leaves' % wood, {
'loader': 'betterfoliag... | 42 | 118 | 0.629845 | 416 | 3,612 | 5.329327 | 0.199519 | 0.129905 | 0.124493 | 0.048714 | 0.509698 | 0.439783 | 0.384303 | 0.348218 | 0.327018 | 0.31935 | 0 | 0.024255 | 0.200997 | 3,612 | 85 | 119 | 42.494118 | 0.743936 | 0 | 0 | 0.333333 | 1 | 0 | 0.415282 | 0.247231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.028986 | 0 | 0.057971 | 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 |
d4abed8fb677dc7bb9b0fa9422ad27365128db12 | 41,380 | py | Python | src/breakpad/src/tools/gyp/pylib/gyp/generator/msvs.py | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 46 | 2015-01-08T14:32:34.000Z | 2022-02-05T16:48:26.000Z | src/breakpad/src/tools/gyp/pylib/gyp/generator/msvs.py | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 7 | 2015-01-20T14:28:12.000Z | 2017-01-18T17:21:44.000Z | src/breakpad/src/tools/gyp/pylib/gyp/generator/msvs.py | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 22 | 2015-01-04T10:37:36.000Z | 2021-08-16T11:46:32.000Z | #!/usr/bin/python
# Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import re
import subprocess
import sys
import gyp.MSVSNew as MSVSNew
import gyp.MSVSProject as MSVSProject
import gyp.MSVSToolFile as... | 37.380307 | 80 | 0.657226 | 5,250 | 41,380 | 5.025143 | 0.140571 | 0.006823 | 0.006595 | 0.005837 | 0.180653 | 0.135585 | 0.107914 | 0.082064 | 0.065954 | 0.039951 | 0 | 0.00348 | 0.229169 | 41,380 | 1,106 | 81 | 37.414105 | 0.82362 | 0.176172 | 0 | 0.133713 | 0 | 0.001422 | 0.158232 | 0.037286 | 0 | 0 | 0 | 0.003617 | 0 | 0 | null | null | 0 | 0.015647 | null | null | 0.001422 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d4acfd86f8d146007bca8aeb0dfb831e87ba4575 | 4,261 | py | Python | data/load_demand/ev_event_data.py | mathildebadoual/ecoblock_test | 019d8a3002f040727d14d791de32975e78993af8 | [
"MIT"
] | null | null | null | data/load_demand/ev_event_data.py | mathildebadoual/ecoblock_test | 019d8a3002f040727d14d791de32975e78993af8 | [
"MIT"
] | null | null | null | data/load_demand/ev_event_data.py | mathildebadoual/ecoblock_test | 019d8a3002f040727d14d791de32975e78993af8 | [
"MIT"
] | null | null | null | import sqlite3
import datetime
from datetime import datetime
import time
import os
import csv
import re
reading_a = []
reading_b = ['vehicle1', 'vehicle2', 'vehicle3', 'vehicle4', 'vehicle5',
'vehicle6', 'vehicle7', 'vehicle8', 'vehicle9', 'vehicle10',
'vehicle11', 'vehicle12', 'vehicle13', 've... | 35.214876 | 80 | 0.513729 | 457 | 4,261 | 4.623632 | 0.347921 | 0.026503 | 0.022717 | 0.029815 | 0.057738 | 0.039754 | 0.026503 | 0 | 0 | 0 | 0 | 0.022222 | 0.387468 | 4,261 | 120 | 81 | 35.508333 | 0.787356 | 0.09012 | 0 | 0.060241 | 0 | 0 | 0.258664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084337 | null | null | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d4adfd78e7fc190b5961e983fc821f7ed2494e12 | 3,816 | py | Python | lib/pylint/checkers/misc.py | willemneal/Docky | d3504e1671b4a6557468234c263950bfab461ce4 | [
"MIT"
] | null | null | null | lib/pylint/checkers/misc.py | willemneal/Docky | d3504e1671b4a6557468234c263950bfab461ce4 | [
"MIT"
] | null | null | null | lib/pylint/checkers/misc.py | willemneal/Docky | d3504e1671b4a6557468234c263950bfab461ce4 | [
"MIT"
] | null | null | null | # pylint: disable=W0511
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that... | 36 | 82 | 0.623166 | 488 | 3,816 | 4.82582 | 0.459016 | 0.030573 | 0.016561 | 0.024204 | 0.03482 | 0.023779 | 0 | 0 | 0 | 0 | 0 | 0.016831 | 0.283805 | 3,816 | 105 | 83 | 36.342857 | 0.844859 | 0.378145 | 0 | 0.087719 | 0 | 0 | 0.192525 | 0 | 0 | 0 | 0 | 0.019048 | 0 | 1 | 0.070175 | false | 0 | 0.070175 | 0 | 0.280702 | 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 |
d4b09cf681d9ed91f5dbb22113bb6dc18349fd65 | 824 | py | Python | recruitment/migrations/0014_evaluationquestion.py | tronze/LikeLion | cd4fe82ad515327edaeb62e0e209ac1b4ed98914 | [
"BSD-3-Clause"
] | 8 | 2019-03-05T12:23:07.000Z | 2021-01-10T09:49:27.000Z | recruitment/migrations/0014_evaluationquestion.py | tronze/LikeLion | cd4fe82ad515327edaeb62e0e209ac1b4ed98914 | [
"BSD-3-Clause"
] | null | null | null | recruitment/migrations/0014_evaluationquestion.py | tronze/LikeLion | cd4fe82ad515327edaeb62e0e209ac1b4ed98914 | [
"BSD-3-Clause"
] | 2 | 2019-02-18T06:34:34.000Z | 2019-03-05T12:17:22.000Z | # Generated by Django 2.1.5 on 2019-03-06 18:20
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('recruitment', '0013_auto_20190306_1652'),
]
operations = [
migrations.CreateMo... | 32.96 | 147 | 0.644417 | 82 | 824 | 6.378049 | 0.670732 | 0.045889 | 0.053537 | 0.08413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048973 | 0.231796 | 824 | 24 | 148 | 34.333333 | 0.777251 | 0.054612 | 0 | 0 | 1 | 0 | 0.164736 | 0.100386 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4b4a4eb086a37221cd96a5e990faf5e194c9bbf | 187 | py | Python | mundo 2 (for,if)/des055.py | Pedroluis1/python | d949fa2646c049aa51a41a32dc62de7b14eae90f | [
"MIT"
] | null | null | null | mundo 2 (for,if)/des055.py | Pedroluis1/python | d949fa2646c049aa51a41a32dc62de7b14eae90f | [
"MIT"
] | null | null | null | mundo 2 (for,if)/des055.py | Pedroluis1/python | d949fa2646c049aa51a41a32dc62de7b14eae90f | [
"MIT"
] | null | null | null | its = []
for re in range(1, 6):
peso = float(input(f'peso da {re}º pessoa: '))
its += [peso]
print(f'maior peso lido {max(its)}kilos.')
print(f'menor peso lido {min(its)}kilos.')
| 26.714286 | 50 | 0.609626 | 34 | 187 | 3.352941 | 0.617647 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.181818 | 187 | 6 | 51 | 31.166667 | 0.732026 | 0 | 0 | 0 | 0 | 0 | 0.459893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
d4b8394660ee9c07641f65e8aa8baf32449aa9ef | 3,056 | py | Python | src/backend/contact/models.py | AndreyBakurskii/Coursework | 638f9ded4444ebc15a4857f56dafe27fa4e11704 | [
"MIT"
] | null | null | null | src/backend/contact/models.py | AndreyBakurskii/Coursework | 638f9ded4444ebc15a4857f56dafe27fa4e11704 | [
"MIT"
] | null | null | null | src/backend/contact/models.py | AndreyBakurskii/Coursework | 638f9ded4444ebc15a4857f56dafe27fa4e11704 | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
class Contact(models.Model):
user1 = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name='user1')
user2 = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name='user2')
@staticmethod
... | 33.955556 | 109 | 0.681283 | 353 | 3,056 | 5.72238 | 0.209632 | 0.09505 | 0.126733 | 0.166337 | 0.454455 | 0.389109 | 0.332673 | 0.288119 | 0.288119 | 0.288119 | 0 | 0.01189 | 0.229385 | 3,056 | 89 | 110 | 34.337079 | 0.84586 | 0.026832 | 0 | 0.354839 | 0 | 0 | 0.00818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145161 | false | 0 | 0.032258 | 0 | 0.419355 | 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 |
d4b98c544ee34b35c8c6c10811a0aef3b301d206 | 775 | py | Python | catalyst/contrib/criterion/focal_loss.py | ferrine/catalyst | b5bc4fb5f692e1fde2d95ef4a534296dccd0f717 | [
"MIT"
] | 1 | 2019-03-23T19:58:11.000Z | 2019-03-23T19:58:11.000Z | catalyst/contrib/criterion/focal_loss.py | ferrine/catalyst | b5bc4fb5f692e1fde2d95ef4a534296dccd0f717 | [
"MIT"
] | 1 | 2019-01-07T12:50:04.000Z | 2019-01-07T12:50:04.000Z | catalyst/contrib/criterion/focal_loss.py | ferrine/catalyst | b5bc4fb5f692e1fde2d95ef4a534296dccd0f717 | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch.nn.functional as F
class FocalLoss(nn.Module):
def __init__(self, gamma=2):
super().__init__()
self.gamma = gamma
# TODO refactor
def forward(self, outputs, targets):
if targets.size() != outputs.size():
raise ValueError(
... | 29.807692 | 68 | 0.556129 | 97 | 775 | 4.298969 | 0.463918 | 0.057554 | 0.06235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012797 | 0.294194 | 775 | 25 | 69 | 31 | 0.749543 | 0.016774 | 0 | 0 | 0 | 0 | 0.109211 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4ba38c47e7071927bd8d291fa27e919ef53eb50 | 4,348 | py | Python | cinder/tests/keymgr/test_conf_key_mgr.py | Thingee/cinder | 721e657073d73d639619f839d935a463d32b59b5 | [
"Apache-2.0"
] | 1 | 2015-11-25T10:18:28.000Z | 2015-11-25T10:18:28.000Z | cinder/tests/keymgr/test_conf_key_mgr.py | NeCTAR-RC/cinder | e01da23febc530de218ed8eed6737add150c1587 | [
"Apache-2.0"
] | null | null | null | cinder/tests/keymgr/test_conf_key_mgr.py | NeCTAR-RC/cinder | e01da23febc530de218ed8eed6737add150c1587 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013 The Johns Hopkins University/Applied Physics Laboratory
# 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/... | 35.064516 | 78 | 0.676863 | 600 | 4,348 | 4.663333 | 0.245 | 0.090064 | 0.075054 | 0.032523 | 0.425304 | 0.375625 | 0.328091 | 0.22802 | 0.207648 | 0.207648 | 0 | 0.013996 | 0.227691 | 4,348 | 123 | 79 | 35.349594 | 0.819238 | 0.177323 | 0 | 0.180556 | 0 | 0 | 0.031232 | 0.017445 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.236111 | false | 0 | 0.111111 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4bb0ea3a357d81700f7bf45a1d02e2c307d157c | 2,319 | py | Python | scripts/dev_config_master.py | sergey-shambir/ps_judge | 8c7bd216ccc5e267b20224d7c80fa0c4300e209a | [
"MIT"
] | 4 | 2018-08-27T21:19:50.000Z | 2019-07-18T07:06:11.000Z | scripts/dev_config_master.py | sergey-shambir/ps_judge | 8c7bd216ccc5e267b20224d7c80fa0c4300e209a | [
"MIT"
] | 6 | 2018-08-03T05:30:18.000Z | 2018-11-22T14:14:56.000Z | scripts/dev_config_master.py | ps-group/ps_judge | 8c7bd216ccc5e267b20224d7c80fa0c4300e209a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import json
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
REPO_DIR = os.path.dirname(SCRIPT_DIR)
BIN_DIR = os.path.join(REPO_DIR, 'bin')
if not os.path.exists(BIN_DIR):
os.makedirs(BIN_DIR)
FRONTEND_CONFIG_PATH = os.path.join(REPO_DIR, 'src', 'frontend_server', 'front... | 33.128571 | 95 | 0.703752 | 333 | 2,319 | 4.642643 | 0.249249 | 0.031048 | 0.016171 | 0.019405 | 0.308538 | 0.280078 | 0.280078 | 0.246442 | 0.234153 | 0.234153 | 0 | 0.038539 | 0.138422 | 2,319 | 69 | 96 | 33.608696 | 0.735235 | 0.009056 | 0 | 0.181818 | 0 | 0 | 0.305616 | 0.028733 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0.054545 | 0.036364 | 0 | 0.109091 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d4bd0b77ce4f2babedeebc4fcdd8d021e3fa28db | 2,255 | py | Python | scripts/generate_charmap_table.py | hirnimeshrampuresoftware/python-tcod | c82d60eaaf12e50b405d55df1026c1d00dd283b6 | [
"BSD-2-Clause"
] | 231 | 2018-06-28T10:07:41.000Z | 2022-03-20T16:17:19.000Z | scripts/generate_charmap_table.py | hirnimeshrampuresoftware/python-tcod | c82d60eaaf12e50b405d55df1026c1d00dd283b6 | [
"BSD-2-Clause"
] | 66 | 2018-06-27T19:04:25.000Z | 2022-03-30T21:15:15.000Z | scripts/generate_charmap_table.py | hirnimeshrampuresoftware/python-tcod | c82d60eaaf12e50b405d55df1026c1d00dd283b6 | [
"BSD-2-Clause"
] | 31 | 2018-09-12T00:35:42.000Z | 2022-03-20T16:17:22.000Z | #!/usr/bin/env python3
"""This script is used to generate the tables for `charmap-reference.rst`.
Uses the tabulate module from PyPI.
"""
import argparse
import unicodedata
from typing import Iterable, Iterator
from tabulate import tabulate
import tcod.tileset
def get_charmaps() -> Iterator[str]:
"""Return an ... | 28.1875 | 77 | 0.584922 | 272 | 2,255 | 4.757353 | 0.466912 | 0.054096 | 0.064915 | 0.064915 | 0.032458 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003599 | 0.260754 | 2,255 | 79 | 78 | 28.544304 | 0.772645 | 0.172062 | 0 | 0.070175 | 1 | 0 | 0.173087 | 0.016278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.087719 | 0 | 0.192982 | 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 |
d4bf2ecccea9937999860bc947b4f10b2c98fdf7 | 3,996 | py | Python | grafana_dashboards/client/connection.py | Rvhappen/grafana-dashboard-builder | 1204efbded9843cf95e09264da6dee1538987a8f | [
"Apache-2.0"
] | 131 | 2015-06-01T07:25:05.000Z | 2022-03-20T08:16:24.000Z | grafana_dashboards/client/connection.py | Rvhappen/grafana-dashboard-builder | 1204efbded9843cf95e09264da6dee1538987a8f | [
"Apache-2.0"
] | 98 | 2015-06-01T19:03:10.000Z | 2022-03-12T16:37:22.000Z | grafana_dashboards/client/connection.py | Rvhappen/grafana-dashboard-builder | 1204efbded9843cf95e09264da6dee1538987a8f | [
"Apache-2.0"
] | 42 | 2015-09-02T14:40:23.000Z | 2022-03-16T04:32:34.000Z | # -*- coding: utf-8 -*-
# Copyright 2015-2019 grafana-dashboard-builder contributors
#
# 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 ... | 36 | 119 | 0.685185 | 455 | 3,996 | 5.861538 | 0.384615 | 0.022497 | 0.020622 | 0.024747 | 0.148481 | 0.148481 | 0.148481 | 0.109486 | 0.109486 | 0 | 0 | 0.010191 | 0.214214 | 3,996 | 110 | 120 | 36.327273 | 0.839172 | 0.16967 | 0 | 0.173913 | 0 | 0 | 0.106634 | 0.007573 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.043478 | 0.217391 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d4c3690f72dd8c78c3253dd16ecfbc824f54ba00 | 6,616 | py | Python | my_app.py | xoperations/servicenow_collector | 0d1862e8fbe398ce78c1badb53a8d74c23591e74 | [
"Apache-2.0"
] | null | null | null | my_app.py | xoperations/servicenow_collector | 0d1862e8fbe398ce78c1badb53a8d74c23591e74 | [
"Apache-2.0"
] | null | null | null | my_app.py | xoperations/servicenow_collector | 0d1862e8fbe398ce78c1badb53a8d74c23591e74 | [
"Apache-2.0"
] | null | null | null | from flask import Flask, request
from flask_restful import reqparse, abort, Api, Resource
from flask_cors import CORS, cross_origin
import json
app = Flask(__name__)
api = Api(app)
CORS(app)
import requests # Set the request parameters
user = 'admin'
pwd = 'RootAdmin1!'
TODOS = {
'todo1': {'task': 'build an AP... | 39.855422 | 313 | 0.622128 | 784 | 6,616 | 5.016582 | 0.205357 | 0.044241 | 0.060514 | 0.039664 | 0.62624 | 0.595728 | 0.595728 | 0.544368 | 0.481312 | 0.437579 | 0 | 0.030969 | 0.243501 | 6,616 | 165 | 314 | 40.09697 | 0.754845 | 0.085248 | 0 | 0.247788 | 0 | 0.035398 | 0.266899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044248 | null | null | 0.00885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d4c3a031066a6ce134bbcf379dd2a265c220af9e | 8,342 | py | Python | RSA_Keys/design.py | paul-cruz/Cryptography | 643c2a22067dd2483717b55394a5d882f804fc10 | [
"MIT"
] | null | null | null | RSA_Keys/design.py | paul-cruz/Cryptography | 643c2a22067dd2483717b55394a5d882f804fc10 | [
"MIT"
] | null | null | null | RSA_Keys/design.py | paul-cruz/Cryptography | 643c2a22067dd2483717b55394a5d882f804fc10 | [
"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 QtCore, QtGui... | 50.865854 | 120 | 0.689883 | 922 | 8,342 | 6.13449 | 0.173536 | 0.055693 | 0.073904 | 0.021216 | 0.394625 | 0.321075 | 0.18918 | 0.140205 | 0.090877 | 0.090877 | 0 | 0.037934 | 0.187845 | 8,342 | 163 | 121 | 51.177914 | 0.7969 | 0.032486 | 0 | 0.187919 | 1 | 0 | 0.099219 | 0.002604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013423 | false | 0 | 0.006711 | 0 | 0.026846 | 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 |
d4c41d15aa9b517d250d0b7dfd769c3605560c45 | 9,426 | py | Python | src/Methods/DataFrom2Persons/Univariate/Continuous/Nonlinear/PhaseSynchro_Entropy.py | syncpy/SyncPy | 70f990971a4b4215549559134812c7469c87c88f | [
"CECILL-B"
] | 20 | 2015-11-27T10:08:57.000Z | 2021-11-17T22:19:36.000Z | src/Methods/DataFrom2Persons/Univariate/Continuous/Nonlinear/PhaseSynchro_Entropy.py | syncpy/SyncPy | 70f990971a4b4215549559134812c7469c87c88f | [
"CECILL-B"
] | 3 | 2015-11-13T13:08:04.000Z | 2022-02-03T15:42:40.000Z | src/Methods/DataFrom2Persons/Univariate/Continuous/Nonlinear/PhaseSynchro_Entropy.py | syncpy/SyncPy | 70f990971a4b4215549559134812c7469c87c88f | [
"CECILL-B"
] | 14 | 2015-12-17T09:25:43.000Z | 2021-02-26T14:37:48.000Z | ### This file is a part of the Syncpy library.
### Copyright 2015, ISIR / Universite Pierre et Marie Curie (UPMC)
### Main contributor(s): Giovanna Varni, Marie Avril,
### syncpy@isir.upmc.fr
###
### This software is a computer program whose for investigating
### synchrony in a fast and exhaustive way.
###
### This ... | 38.631148 | 156 | 0.641205 | 1,354 | 9,426 | 4.353028 | 0.267356 | 0.021208 | 0.03054 | 0.022056 | 0.2679 | 0.219376 | 0.197659 | 0.17153 | 0.145572 | 0.103834 | 0 | 0.009551 | 0.266921 | 9,426 | 243 | 157 | 38.790123 | 0.843415 | 0.191704 | 0 | 0.232143 | 0 | 0 | 0.2086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | 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 |
d4c76db92c61e7f1e02aafcd0ffe7408f5a853b7 | 1,290 | py | Python | walle/model/role.py | hujiangyihao/test | a2959199e013dc42fc4e1dc94eb9c23264857a3f | [
"Apache-2.0"
] | 12,282 | 2015-09-13T13:14:03.000Z | 2022-03-31T03:36:39.000Z | walle/model/role.py | bdpqlhk/walle-web | f47fc9d05fb2bc1b0a1c1a57ec98ba2856828b7b | [
"Apache-2.0"
] | 1,027 | 2015-10-04T11:28:49.000Z | 2022-03-10T03:30:16.000Z | walle/model/role.py | bdpqlhk/walle-web | f47fc9d05fb2bc1b0a1c1a57ec98ba2856828b7b | [
"Apache-2.0"
] | 3,389 | 2015-09-13T13:21:30.000Z | 2022-03-31T09:30:43.000Z | # -*- coding: utf-8 -*-
"""
walle-web
:copyright: © 2015-2019 walle-web.io
:created time: 2018-11-26 16:06:44
:author: wushuiyong@walle-web.io
"""
from datetime import datetime
from sqlalchemy import String, Integer, DateTime
from walle.model.database import SurrogatePK
from walle.model.database impo... | 23.888889 | 89 | 0.608527 | 156 | 1,290 | 4.884615 | 0.455128 | 0.055118 | 0.059055 | 0.057743 | 0.073491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023933 | 0.255039 | 1,290 | 53 | 90 | 24.339623 | 0.76795 | 0.106977 | 0 | 0.09375 | 0 | 0 | 0.09228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.21875 | 0.03125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d4c7e76c1571294e8ec401b4fcccb6d5ebba3af6 | 2,523 | py | Python | ares/populations/Parameterized.py | astrojhgu/ares | 42008c8e4bf79f0b000cc833e02a86510bce7611 | [
"MIT"
] | 1 | 2019-01-04T15:13:18.000Z | 2019-01-04T15:13:18.000Z | ares/populations/Parameterized.py | astrojhgu/ares | 42008c8e4bf79f0b000cc833e02a86510bce7611 | [
"MIT"
] | null | null | null | ares/populations/Parameterized.py | astrojhgu/ares | 42008c8e4bf79f0b000cc833e02a86510bce7611 | [
"MIT"
] | null | null | null | """
Parameterized.py
Author: Jordan Mirocha
Affiliation: UCLA
Created on: Thu Jul 14 14:00:10 PDT 2016
Description:
"""
from types import FunctionType
from .Population import Population
from ..phenom.HaloProperty import ParameterizedHaloProperty
from ..util.ParameterFile import ParameterFile, par_info, get_php_pa... | 30.39759 | 81 | 0.577091 | 318 | 2,523 | 4.367925 | 0.22956 | 0.077754 | 0.097192 | 0.047516 | 0.567315 | 0.470122 | 0.400288 | 0.300936 | 0.136789 | 0.066235 | 0 | 0.010496 | 0.320254 | 2,523 | 83 | 82 | 30.39759 | 0.799417 | 0.044788 | 0 | 0.169811 | 0 | 0 | 0.122917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169811 | false | 0 | 0.075472 | 0.113208 | 0.433962 | 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 |
d4c7ea35778fd7f4142c392722c6a988872ee4a5 | 4,366 | py | Python | main.py | danielkitachewsky/reviewder | a2c845ab245b4718fb804149320eca5627d80961 | [
"MIT"
] | null | null | null | main.py | danielkitachewsky/reviewder | a2c845ab245b4718fb804149320eca5627d80961 | [
"MIT"
] | null | null | null | main.py | danielkitachewsky/reviewder | a2c845ab245b4718fb804149320eca5627d80961 | [
"MIT"
] | null | null | null | #! /usr/bin/python
# encoding: utf-8
import os
import re
import sys
from reviewder import db
from reviewder import review_session
from reviewder import review_format
class ReviewderError(Exception):
"""Error raised during use of Reviewder."""
def get_review_bundle(dci_number, limit=0):
"""Get all reviews by a... | 29.90411 | 79 | 0.645671 | 562 | 4,366 | 4.83452 | 0.241993 | 0.053 | 0.0265 | 0.046375 | 0.45565 | 0.37247 | 0.305852 | 0.244755 | 0.212367 | 0.13618 | 0 | 0.016 | 0.226981 | 4,366 | 145 | 80 | 30.110345 | 0.789037 | 0.007558 | 0 | 0.330189 | 0 | 0 | 0.13668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056604 | null | null | 0.028302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d4c83c92baf135827ea12ea98ce20c02196b0bc3 | 703 | py | Python | XDscriptDisassembler.py | TuxSH/XDScriptTools | ca8140a01a441ab72255958431b72ec819ab9630 | [
"BSD-3-Clause"
] | 2 | 2016-07-06T10:40:32.000Z | 2021-01-19T17:48:10.000Z | XDscriptDisassembler.py | TuxSH/XDScriptTools | ca8140a01a441ab72255958431b72ec819ab9630 | [
"BSD-3-Clause"
] | null | null | null | XDscriptDisassembler.py | TuxSH/XDScriptTools | ca8140a01a441ab72255958431b72ec819ab9630 | [
"BSD-3-Clause"
] | 2 | 2017-09-16T12:41:22.000Z | 2018-12-30T02:53:24.000Z | """ See LICENSE for license"""
from XDscriptLib import *
import argparse
import sys
import os
if __name__ == '__main__':
if sys.version_info[0] < 3:
raise RuntimeError("Python 3 required")
parser = argparse.ArgumentParser()
parser.add_argument("files", help="XD script files to disassemble", nargs='+', type=st... | 29.291667 | 97 | 0.71266 | 103 | 703 | 4.68932 | 0.572816 | 0.068323 | 0.111801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006634 | 0.142248 | 703 | 24 | 98 | 29.291667 | 0.792703 | 0 | 0 | 0 | 0 | 0 | 0.178306 | 0.032689 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | 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 |
d4c915e5dae445cd0aa9d305d01067bd32027d3f | 5,186 | py | Python | tests/test_run.py | jasimmonsv/cookiecutter-ansible-role | fbbaa903bf73aa4a5a08cc3722eeafec2442e6aa | [
"MIT"
] | 6 | 2016-01-07T13:36:46.000Z | 2020-10-18T04:03:42.000Z | tests/test_run.py | jasimmonsv/cookiecutter-ansible-role | fbbaa903bf73aa4a5a08cc3722eeafec2442e6aa | [
"MIT"
] | 169 | 2015-12-21T13:25:22.000Z | 2022-03-23T19:08:51.000Z | tests/test_run.py | jasimmonsv/cookiecutter-ansible-role | fbbaa903bf73aa4a5a08cc3722eeafec2442e6aa | [
"MIT"
] | 6 | 2017-05-24T07:22:03.000Z | 2021-05-22T17:38:24.000Z | import json
import pytest
import re
import yaml
# Functions
# ==============================================================================
# Common checks
def common_tests(data, result):
# General assert
assert result.exit_code == 0
assert result.exception is None
# Structure assert
assert_ro... | 29.634286 | 80 | 0.660239 | 654 | 5,186 | 5.024465 | 0.198777 | 0.036519 | 0.051735 | 0.038344 | 0.360012 | 0.272672 | 0.173463 | 0.150943 | 0.101643 | 0.101643 | 0 | 0.004543 | 0.193598 | 5,186 | 174 | 81 | 29.804598 | 0.781205 | 0.157154 | 0 | 0.105263 | 0 | 0.010526 | 0.220046 | 0.081567 | 0 | 0 | 0 | 0 | 0.442105 | 1 | 0.126316 | false | 0 | 0.042105 | 0 | 0.168421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4d05ba440f3075a697e1b89bed748f959d28130 | 319 | py | Python | COHDCN181P-004/abc.py | harithadasanayaka/c-Programming | bce06cac6fbc401bc7f4810c3cdee97e11594e68 | [
"MIT"
] | null | null | null | COHDCN181P-004/abc.py | harithadasanayaka/c-Programming | bce06cac6fbc401bc7f4810c3cdee97e11594e68 | [
"MIT"
] | null | null | null | COHDCN181P-004/abc.py | harithadasanayaka/c-Programming | bce06cac6fbc401bc7f4810c3cdee97e11594e68 | [
"MIT"
] | null | null | null | x=0
numbers=[]
while True :
value=raw_input("Enter Number : \t")
if value.isdigit()==True:
i=int(value)
numbers.append(i)
x=x+i
elif value == "" :
break
print'...................................'
print'sum of values :' ,x
print'...................................'
print'number you have entered :' ,numbers
| 19.9375 | 42 | 0.504702 | 40 | 319 | 4 | 0.625 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0.141066 | 319 | 15 | 43 | 21.266667 | 0.580292 | 0 | 0 | 0.142857 | 0 | 0 | 0.399371 | 0.220126 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d4d229bf8881db9f4c566d6200e23afefe70d91f | 5,071 | py | Python | tests/test_basic.py | open-source-economics/OG-USA | c1146f9ff69ea709b5c0cb6ad6105297c1df69c2 | [
"CC0-1.0"
] | 25 | 2016-01-06T08:52:41.000Z | 2018-11-28T13:43:51.000Z | tests/test_basic.py | open-source-economics/OG-USA | c1146f9ff69ea709b5c0cb6ad6105297c1df69c2 | [
"CC0-1.0"
] | 250 | 2015-10-21T07:05:27.000Z | 2018-12-01T04:20:55.000Z | tests/test_basic.py | open-source-economics/OG-USA | c1146f9ff69ea709b5c0cb6ad6105297c1df69c2 | [
"CC0-1.0"
] | 53 | 2015-10-26T13:04:22.000Z | 2018-10-11T19:09:12.000Z | import multiprocessing
from distributed import Client, LocalCluster
import os
import json
import pytest
import pickle
import numpy as np
from ogcore import SS, TPI, utils
from ogcore.parameters import Specifications
NUM_WORKERS = min(multiprocessing.cpu_count(), 7)
CUR_PATH = os.path.abspath(os.path.dirname(__file__))... | 30.920732 | 78 | 0.637547 | 725 | 5,071 | 4.253793 | 0.255172 | 0.013619 | 0.035019 | 0.01751 | 0.649805 | 0.649805 | 0.639429 | 0.639429 | 0.610246 | 0.610246 | 0 | 0.020265 | 0.240978 | 5,071 | 163 | 79 | 31.110429 | 0.780982 | 0.145533 | 0 | 0.627907 | 0 | 0 | 0.111476 | 0.022061 | 0 | 0 | 0 | 0 | 0.015504 | 1 | 0.031008 | false | 0 | 0.077519 | 0 | 0.108527 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4dec963718ab8a1006e47f3d285f3d999c08b89 | 2,993 | py | Python | gen_config/certTools/checkParking.py | gnomeosaurus/machinelearning4dc | fe5e4e5aa03d770b62377b0b8f16a8aa538dc7c9 | [
"MIT"
] | 2 | 2018-02-12T10:28:37.000Z | 2018-03-07T16:33:47.000Z | gen_config/certTools/checkParking.py | gnomeosaurus/machinelearning4dc | fe5e4e5aa03d770b62377b0b8f16a8aa538dc7c9 | [
"MIT"
] | null | null | null | gen_config/certTools/checkParking.py | gnomeosaurus/machinelearning4dc | fe5e4e5aa03d770b62377b0b8f16a8aa538dc7c9 | [
"MIT"
] | 5 | 2018-02-06T16:05:50.000Z | 2020-05-28T14:10:47.000Z | from optparse import OptionParser
from rrapi import RRApi, RRApiError
import sys, os, os.path, time, re
from math import copysign
groupName = "Collisions12"
prompt = ['like Prompt']
parser = OptionParser()
parser.add_option("-m", "--min", dest="min", type="int", default=194270, help="Minimum run")
parser.add_option("... | 28.235849 | 260 | 0.571333 | 386 | 2,993 | 4.419689 | 0.391192 | 0.017585 | 0.024619 | 0.018757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015931 | 0.265954 | 2,993 | 105 | 261 | 28.504762 | 0.760583 | 0.056131 | 0 | 0.090909 | 0 | 0 | 0.16394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012987 | 0.051948 | null | null | 0.051948 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d4e2cdc6e710eab148bd8b268eaebb684f0b26b5 | 2,279 | py | Python | waptpkg.py | jf-guillou/wapt-scripts | 71fb339af043a5c25b4c99e5d0e3ecd33a8e1d7e | [
"MIT"
] | null | null | null | waptpkg.py | jf-guillou/wapt-scripts | 71fb339af043a5c25b4c99e5d0e3ecd33a8e1d7e | [
"MIT"
] | null | null | null | waptpkg.py | jf-guillou/wapt-scripts | 71fb339af043a5c25b4c99e5d0e3ecd33a8e1d7e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import shutil
import waptpackage
from waptcrypto import SSLCABundle,SSLCertificate,SSLPrivateKey
def download(remote, path, pkg):
"""Downloads package"""
if not pkg.package:
return False
res = remote.download_packages(pkg, path)
if res['errors']:
retu... | 28.135802 | 115 | 0.691531 | 300 | 2,279 | 5.133333 | 0.333333 | 0.054545 | 0.021429 | 0.031169 | 0.059091 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003808 | 0.193506 | 2,279 | 80 | 116 | 28.4875 | 0.834059 | 0.136902 | 0 | 0.137255 | 0 | 0 | 0.051813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137255 | false | 0.058824 | 0.078431 | 0 | 0.45098 | 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 |
d4e4099c1a7445d70c9cb03b16c402fa87bde315 | 3,324 | py | Python | Fishing.py | williamstern/Simple-Fishing | 082145d1764698c99041b9842ae08ff35ad927fe | [
"MIT"
] | null | null | null | Fishing.py | williamstern/Simple-Fishing | 082145d1764698c99041b9842ae08ff35ad927fe | [
"MIT"
] | null | null | null | Fishing.py | williamstern/Simple-Fishing | 082145d1764698c99041b9842ae08ff35ad927fe | [
"MIT"
] | null | null | null | # William Stern
# 05.02.2017
import time
import random
class Fishing(object):
def __init__(self):
self.highscores = {}
self.fishinglog = {}
def setup(self):
''' This makes for an easy setup'''
# A print of a pond
print('| 1 | 2 | 3 |')
... | 33.575758 | 107 | 0.463297 | 378 | 3,324 | 3.97619 | 0.388889 | 0.093147 | 0.03992 | 0.043247 | 0.084498 | 0.075183 | 0 | 0 | 0 | 0 | 0 | 0.030488 | 0.407942 | 3,324 | 98 | 108 | 33.918367 | 0.733232 | 0 | 0 | 0.138889 | 0 | 0 | 0.161371 | 0.022135 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | null | null | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d4e43a01dac013f1ffb5180af66266ace5f885ce | 1,585 | py | Python | preprocessing/phon_inventory.py | SfS-unsupervisedCL/project-sound-correspondences | 5b178ded1be5c6ab97b5167cb16f8569b2dbec6c | [
"MIT"
] | null | null | null | preprocessing/phon_inventory.py | SfS-unsupervisedCL/project-sound-correspondences | 5b178ded1be5c6ab97b5167cb16f8569b2dbec6c | [
"MIT"
] | null | null | null | preprocessing/phon_inventory.py | SfS-unsupervisedCL/project-sound-correspondences | 5b178ded1be5c6ab97b5167cb16f8569b2dbec6c | [
"MIT"
] | null | null | null | # Reads the input from one or more CSV word lists generated by merge_lists.py
# and returns the set of IPA symbols across these files.
import sys
def get_symbols(dir):
"""
Get the set of IPA symbols from the given CSV file.
:param dir: directory of the file
:type dir: str
:return: set of IPA sym... | 21.712329 | 77 | 0.558991 | 229 | 1,585 | 3.777293 | 0.423581 | 0.072832 | 0.069364 | 0.052023 | 0.041619 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008101 | 0.299054 | 1,585 | 72 | 78 | 22.013889 | 0.766877 | 0.35142 | 0 | 0.193548 | 1 | 0 | 0.03903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.032258 | 0 | 0.16129 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4ec6577a081c90585c5214be581b6b76d0730cd | 7,731 | py | Python | vnpy/api/tap/error_codes.py | iamyyl/vnpy | 2a9fed6c9f09e27449c9f4a1cf1eaeb78435b9b8 | [
"MIT"
] | 323 | 2015-11-21T14:45:29.000Z | 2022-03-16T08:54:37.000Z | vnpy/api/tap/error_codes.py | iamyyl/vnpy | 2a9fed6c9f09e27449c9f4a1cf1eaeb78435b9b8 | [
"MIT"
] | 9 | 2017-03-21T08:26:21.000Z | 2021-08-23T06:41:17.000Z | vnpy/api/tap/error_codes.py | iamyyl/vnpy | 2a9fed6c9f09e27449c9f4a1cf1eaeb78435b9b8 | [
"MIT"
] | 148 | 2016-09-26T03:25:39.000Z | 2022-02-06T14:43:48.000Z | error_map = {
0: None,
-1: "连接服务失败",
-2: "链路认证失败",
-3: "主机地址不可用",
-4: "发送数据错误",
-5: "测试编号不合法",
-6: "没准备好测试网络",
-7: "当前网络测试还没结束",
-8: "没用可用的接入前置",
-9: "数据路径不可用",
-10: "重复登录",
-11: "内部错误",
-12: "上一次请求还没有结束",
-13: "输入参数非法",
-14: "授权码不合法",
-15: "授权码超期",
-1... | 26.750865 | 54 | 0.606131 | 645 | 7,731 | 7.269767 | 0.860465 | 0.005118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206822 | 0.22261 | 7,731 | 288 | 55 | 26.84375 | 0.572712 | 0 | 0 | 0 | 0 | 0 | 0.453499 | 0.174492 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4f2717e5276d674694efc58903c45382e5d6722 | 626 | py | Python | src/the_tale/the_tale/game/heroes/migrations/0012_reset_quests_and_actions.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/game/heroes/migrations/0012_reset_quests_and_actions.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/game/heroes/migrations/0012_reset_quests_and_actions.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-17 18:40
import json
from django.db import migrations
def reset_actions_and_quests(apps, schema_editor):
for hero in apps.get_model("heroes", "Hero").objects.all():
actions = json.loads(hero.actions)
actions['actions'] = [actions[... | 20.193548 | 63 | 0.658147 | 80 | 626 | 4.9625 | 0.675 | 0.141058 | 0.15869 | 0.105793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04251 | 0.210863 | 626 | 30 | 64 | 20.866667 | 0.761134 | 0.107029 | 0 | 0 | 1 | 0 | 0.111511 | 0.057554 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4f8e74b1d4f4b35e5245b19091d1b91edc2f503 | 2,358 | py | Python | dpq_scheduler/tests.py | Neamar/django-postgres-queue | 70c2033a2c814515e94d56d8c8997aca47ff841a | [
"BSD-2-Clause"
] | 93 | 2017-09-21T05:00:25.000Z | 2022-03-11T08:50:46.000Z | dpq_scheduler/tests.py | Neamar/django-postgres-queue | 70c2033a2c814515e94d56d8c8997aca47ff841a | [
"BSD-2-Clause"
] | 13 | 2017-08-09T01:20:45.000Z | 2021-07-16T20:02:08.000Z | dpq_scheduler/tests.py | Neamar/django-postgres-queue | 70c2033a2c814515e94d56d8c8997aca47ff841a | [
"BSD-2-Clause"
] | 9 | 2018-03-15T11:20:40.000Z | 2022-01-19T16:00:00.000Z | import datetime
import pytz
from django.test import SimpleTestCase
from .schedules import repeater, every_day_at, every_dow_at
DENVER = pytz.timezone('America/Denver')
def tztime(tz, *args, **kwargs):
if not isinstance(tz, datetime.tzinfo):
tz = pytz.timezone(tz)
naive = datetime.datetime(*args, *... | 36.84375 | 76 | 0.627226 | 369 | 2,358 | 3.861789 | 0.162602 | 0.019649 | 0.082105 | 0.12 | 0.740351 | 0.648421 | 0.648421 | 0.631579 | 0.631579 | 0.527719 | 0 | 0.102174 | 0.219678 | 2,358 | 63 | 77 | 37.428571 | 0.672283 | 0 | 0 | 0.255319 | 0 | 0 | 0.016115 | 0 | 0 | 0 | 0 | 0 | 0.191489 | 1 | 0.212766 | false | 0 | 0.085106 | 0 | 0.340426 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4fcd2fd7f950c89e99c245d5c5493fb211aa719 | 8,855 | py | Python | test.py | Enacero/proxied | 78a78c8e449b74bcca7b591ce463a677df581167 | [
"MIT"
] | 2 | 2020-12-30T15:38:20.000Z | 2021-01-08T20:00:20.000Z | test.py | Enacero/proxied | 78a78c8e449b74bcca7b591ce463a677df581167 | [
"MIT"
] | 5 | 2020-12-29T11:36:52.000Z | 2021-03-24T11:42:12.000Z | test.py | Enacero/proxied | 78a78c8e449b74bcca7b591ce463a677df581167 | [
"MIT"
] | null | null | null | import copy
import math
import pytest
from proxy import Proxy
INT_TEST_VALUE = 10
INT_TEST_VALUE_PLUS_1 = 11
INT_TEST_VALUE_MINUS_1 = 9
STR_TEST_VALUE = "10"
def test_inner_init():
proxy = Proxy(value=INT_TEST_VALUE)
assert proxy == INT_TEST_VALUE
def test_value_provider_init():
proxy = Proxy(value_pr... | 24.734637 | 76 | 0.662451 | 1,252 | 8,855 | 4.342652 | 0.089457 | 0.198639 | 0.244988 | 0.145669 | 0.609711 | 0.484642 | 0.404451 | 0.349457 | 0.297591 | 0.21464 | 0 | 0.013891 | 0.235799 | 8,855 | 357 | 77 | 24.803922 | 0.789567 | 0 | 0 | 0.217391 | 0 | 0 | 0.000226 | 0 | 0 | 0 | 0 | 0 | 0.355731 | 1 | 0.16996 | false | 0.011858 | 0.01581 | 0.027668 | 0.268775 | 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 |
be0d821bb2f69962ac0c238af565a4e515a78296 | 543 | py | Python | testing_code/calc_gc.py | gonzaponte/TablesTutorial | 889ac49b18cec41dc8ca2ae43f7846b5a8c39e2b | [
"Apache-2.0"
] | null | null | null | testing_code/calc_gc.py | gonzaponte/TablesTutorial | 889ac49b18cec41dc8ca2ae43f7846b5a8c39e2b | [
"Apache-2.0"
] | null | null | null | testing_code/calc_gc.py | gonzaponte/TablesTutorial | 889ac49b18cec41dc8ca2ae43f7846b5a8c39e2b | [
"Apache-2.0"
] | null | null | null | def calc_gc(sequence):
sequence = sequence.upper() # make all chars uppercase
n = sequence.count('T') + sequence.count('A') # count only A, T,
m = sequence.count('G') + sequence.count('C') # C, and G -- nothing else (no Ns, Rs, Ws, etc.)
return float(m) / float(n + m) if n+m else 0
... | 41.769231 | 99 | 0.596685 | 84 | 543 | 3.797619 | 0.464286 | 0.163009 | 0.094044 | 0.106583 | 0.269592 | 0.269592 | 0.269592 | 0.269592 | 0.269592 | 0.269592 | 0 | 0.022059 | 0.248619 | 543 | 13 | 100 | 41.769231 | 0.759804 | 0.235727 | 0 | 0.181818 | 0 | 0 | 0.034146 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be10484765fc0123107f512a73816e4d85851de0 | 1,483 | py | Python | setup.py | NOface312/better-forms-fix | 78fa63f254d31266b7b91d3699a2015611d73018 | [
"BSD-2-Clause"
] | null | null | null | setup.py | NOface312/better-forms-fix | 78fa63f254d31266b7b91d3699a2015611d73018 | [
"BSD-2-Clause"
] | null | null | null | setup.py | NOface312/better-forms-fix | 78fa63f254d31266b7b91d3699a2015611d73018 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
__doc__ = """
App for Django featuring improved form base classes.
"""
version = '1.2'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-betterforms',
version=version,
... | 30.265306 | 70 | 0.609575 | 160 | 1,483 | 5.525 | 0.5625 | 0.150452 | 0.197964 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023873 | 0.237357 | 1,483 | 48 | 71 | 30.895833 | 0.757737 | 0.013486 | 0 | 0 | 0 | 0 | 0.502052 | 0.0171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.04878 | 0.02439 | 0.097561 | 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 |
be11fcfa56e05a9670cef17835245be2db659bfd | 13,596 | py | Python | saleor/dashboard/allocate/purchase.py | glosoftgroup/glosoftgroup-django-pos | b489c402939b9ebabd164c449e7da38fe849d550 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T12:40:59.000Z | 2017-10-18T18:02:46.000Z | saleor/dashboard/allocate/purchase.py | glosoftgroup/glosoftgroup-django-pos | b489c402939b9ebabd164c449e7da38fe849d550 | [
"BSD-3-Clause"
] | 12 | 2017-06-19T07:20:41.000Z | 2022-03-15T19:03:33.000Z | saleor/dashboard/allocate/purchase.py | glosoftgroup/glosoftgroup-django-pos | b489c402939b9ebabd164c449e7da38fe849d550 | [
"BSD-3-Clause"
] | null | null | null | from django.core.exceptions import ObjectDoesNotExist
from django.template.response import TemplateResponse
from django.http import HttpResponse
from django.db.models import Q
from django.template.defaultfilters import date
from django.core.paginator import Paginator, EmptyPage, InvalidPage, PageNotAnInteger
from... | 39.754386 | 115 | 0.533172 | 1,286 | 13,596 | 5.452566 | 0.119751 | 0.044495 | 0.038933 | 0.07587 | 0.711922 | 0.663149 | 0.583428 | 0.570736 | 0.498859 | 0.485026 | 0 | 0.006761 | 0.369006 | 13,596 | 341 | 116 | 39.870968 | 0.810584 | 0.008017 | 0 | 0.636364 | 0 | 0 | 0.107434 | 0.048847 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050505 | 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 |
be13bc74e8f0c00215e34c9f360cd16bbaec0ae7 | 1,044 | py | Python | models/python/hypothalamus/dynamical/old/critical_with_motor.py | ABRG-Models/MammalBot | 0b153232b94197c7a65156c1c3451ab2b9f725ae | [
"MIT"
] | null | null | null | models/python/hypothalamus/dynamical/old/critical_with_motor.py | ABRG-Models/MammalBot | 0b153232b94197c7a65156c1c3451ab2b9f725ae | [
"MIT"
] | null | null | null | models/python/hypothalamus/dynamical/old/critical_with_motor.py | ABRG-Models/MammalBot | 0b153232b94197c7a65156c1c3451ab2b9f725ae | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
fig, ax = plt.subplots(1,2)
plt.ion()
plt.show(block = False)
v = 0.1
C0 = lambda x: 2.0*(-x**3 -(x-1)*v/2.0 + x)/(x + 1)
xx = np.linspace(-0.97,1.5,100)
h = 0.01
T = 200000
e = 0.1
alpha = 0.1
sigma_c = 0.09
eta = lambda rho: np.exp(-(rho)**2/(2*sigma_c**2))/np.s... | 22.212766 | 79 | 0.539272 | 252 | 1,044 | 2.206349 | 0.25 | 0.039568 | 0.021583 | 0.059353 | 0.028777 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 0.104215 | 0.181992 | 1,044 | 46 | 80 | 22.695652 | 0.546838 | 0.054598 | 0 | 0 | 0 | 0 | 0.032553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | 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 |
be15ba03a84d1f2e55f0a608260f403bf5ac48be | 404 | py | Python | scripts/collector.py | rofinn/kottos | 4969e40a37184c692e2addf62e5f759ea02e8197 | [
"MIT"
] | null | null | null | scripts/collector.py | rofinn/kottos | 4969e40a37184c692e2addf62e5f759ea02e8197 | [
"MIT"
] | 2 | 2019-01-12T05:19:31.000Z | 2019-09-08T04:23:22.000Z | scripts/collector.py | rofinn/kottos | 4969e40a37184c692e2addf62e5f759ea02e8197 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import inspect
import time
import kottos
import kottos.modbus
from kottos.modbus.client import Client
from kottos.modbus.registers import MNS_REGISTER_TABLE
c = Client("192.168.1.90", 502, MNS_REGISTER_TABLE)
i = 0
while i < 10:
results = c.scan()
for (k, v) in results.items():
... | 18.363636 | 54 | 0.670792 | 63 | 404 | 4.238095 | 0.571429 | 0.134831 | 0.11985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051988 | 0.190594 | 404 | 21 | 55 | 19.238095 | 0.764526 | 0.049505 | 0 | 0 | 0 | 0 | 0.075718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
be16c7c77a88a873e8039d66e216e336925af8c2 | 261 | py | Python | my_code.py | Athenian-ComputerScience-Fall2020/dictionary-notes-23aartale | 465b985c40059eea431c652f53be6aef6f33f25a | [
"Apache-2.0"
] | null | null | null | my_code.py | Athenian-ComputerScience-Fall2020/dictionary-notes-23aartale | 465b985c40059eea431c652f53be6aef6f33f25a | [
"Apache-2.0"
] | null | null | null | my_code.py | Athenian-ComputerScience-Fall2020/dictionary-notes-23aartale | 465b985c40059eea431c652f53be6aef6f33f25a | [
"Apache-2.0"
] | null | null | null | # Use this to take notes on the Edpuzzle video. Try each example rather than just watching it - you will get much more out of it!
#
student = {'name': 'John', 'age': 25, 'courses': ['math', 'CompSci']}
for key, value in student.items():
print(key, value) | 43.5 | 129 | 0.670498 | 42 | 261 | 4.166667 | 0.904762 | 0.091429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.191571 | 261 | 6 | 130 | 43.5 | 0.819905 | 0.48659 | 0 | 0 | 0 | 0 | 0.223077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
be189bbe88db21ffd37b274905a794c843645a32 | 14,176 | py | Python | grr_colab/magics.py | AjitNair2/grr | 2a2ea891b3927775872904cdd402a18e7bb3d143 | [
"Apache-2.0"
] | 1 | 2019-08-17T14:02:44.000Z | 2019-08-17T14:02:44.000Z | grr_colab/magics.py | AjitNair2/grr | 2a2ea891b3927775872904cdd402a18e7bb3d143 | [
"Apache-2.0"
] | null | null | null | grr_colab/magics.py | AjitNair2/grr | 2a2ea891b3927775872904cdd402a18e7bb3d143 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""GRR Colab magics module.
The module contains implementation of **magic** commands that use GRR API.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import shlex... | 27.850688 | 79 | 0.728908 | 1,925 | 14,176 | 5.227013 | 0.125195 | 0.10157 | 0.087458 | 0.089048 | 0.731366 | 0.694196 | 0.684258 | 0.651759 | 0.635261 | 0.619956 | 0 | 0.000759 | 0.163445 | 14,176 | 508 | 80 | 27.905512 | 0.847711 | 0.414221 | 0 | 0.44385 | 0 | 0 | 0.152388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.13369 | false | 0 | 0.048128 | 0 | 0.283422 | 0.005348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be1a48671a98e92898d8e8315bd08a65a142706f | 8,410 | py | Python | utilities/tag.py | connax-utim/uhost-micropython | 853d5e12d050715aadf20eb065cf0658ba95696a | [
"Apache-2.0"
] | null | null | null | utilities/tag.py | connax-utim/uhost-micropython | 853d5e12d050715aadf20eb065cf0658ba95696a | [
"Apache-2.0"
] | null | null | null | utilities/tag.py | connax-utim/uhost-micropython | 853d5e12d050715aadf20eb065cf0658ba95696a | [
"Apache-2.0"
] | null | null | null | """
Tag module
"""
import os
class TagInbound(object):
"""
Inbound data tag class
"""
GET_UTIM_STATUS = b'\x1a'
NETWORK_READY = b'\x1c'
DATA_FROM_NETWORK = b'\x1d'
DATA_TO_SIGN = b'\x1e'
DATA_TO_PLATFORM = b'\x1f'
def in_this_scope(self, tag):
"""
Check tag is in... | 24.097421 | 98 | 0.5478 | 953 | 8,410 | 4.713536 | 0.131165 | 0.029386 | 0.032057 | 0.068121 | 0.681211 | 0.65138 | 0.65138 | 0.65138 | 0.65138 | 0.65138 | 0 | 0.015325 | 0.356005 | 8,410 | 348 | 99 | 24.166667 | 0.814069 | 0.17396 | 0 | 0.486842 | 0 | 0 | 0.025873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118421 | false | 0.013158 | 0.006579 | 0 | 0.572368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be1d2f4f60fef808144a2fc9598a3e7e56412b25 | 535 | py | Python | backend/modules/kanban/serializers/pipe_line_serializer.py | janetat/DjangoVueBoard | d038bbd9dfa87c3059394f0561adec8f7f5039c9 | [
"MIT"
] | 6 | 2019-05-26T22:30:11.000Z | 2022-01-28T13:51:20.000Z | backend/modules/kanban/serializers/pipe_line_serializer.py | janetat/DjangoVueBoard | d038bbd9dfa87c3059394f0561adec8f7f5039c9 | [
"MIT"
] | 4 | 2021-03-19T02:15:29.000Z | 2021-09-22T19:03:34.000Z | backend/modules/kanban/serializers/pipe_line_serializer.py | janetat/DjangoVueBoard | d038bbd9dfa87c3059394f0561adec8f7f5039c9 | [
"MIT"
] | 1 | 2019-05-26T22:42:47.000Z | 2019-05-26T22:42:47.000Z | from rest_framework import serializers
from rest_framework.serializers import ModelSerializer, DateTimeField
from modules.kanban.models.pipe_line import PipeLine
class PipeLineSerializer(ModelSerializer):
updated_at = DateTimeField(format="%Y-%m-%d %H:%M:%S", required=False, read_only=True)
card_set = serial... | 29.722222 | 90 | 0.71028 | 62 | 535 | 5.967742 | 0.629032 | 0.043243 | 0.091892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185047 | 535 | 17 | 91 | 31.470588 | 0.848624 | 0 | 0 | 0 | 0 | 0 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 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 |
be230c523eae58041cabff8f167f06ea41a8a29b | 86,199 | py | Python | theano/sandbox/cuda/opt.py | joschu/Theano | a53650487647b25f4258deef9d91ec950902c610 | [
"BSD-3-Clause"
] | 1 | 2020-12-08T02:23:42.000Z | 2020-12-08T02:23:42.000Z | theano/sandbox/cuda/opt.py | joschu/Theano | a53650487647b25f4258deef9d91ec950902c610 | [
"BSD-3-Clause"
] | null | null | null | theano/sandbox/cuda/opt.py | joschu/Theano | a53650487647b25f4258deef9d91ec950902c610 | [
"BSD-3-Clause"
] | null | null | null | import logging
_logger = logging.getLogger('theano.sandbox.cuda.opt')
import copy
import sys
import time
import warnings
import numpy
import theano
from theano import scalar as scal
from theano import config, tensor, gof
import theano.ifelse
from theano.compile import optdb
from theano.gof import (local_optimizer, ... | 40.659906 | 89 | 0.595517 | 11,166 | 86,199 | 4.398083 | 0.082841 | 0.019426 | 0.031583 | 0.021992 | 0.505875 | 0.441772 | 0.389053 | 0.359771 | 0.336944 | 0.309964 | 0 | 0.014116 | 0.311315 | 86,199 | 2,119 | 90 | 40.679094 | 0.813136 | 0.133598 | 0 | 0.390457 | 0 | 0 | 0.033719 | 0.004364 | 0 | 0 | 0 | 0.001888 | 0.008065 | 0 | null | null | 0.001344 | 0.032258 | null | null | 0.004032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
be262f2bd06b9d54322ad45780c7f8b14ec193fd | 352 | py | Python | setup.py | YajanaRao/Perftool | 1ad50c05c3f3498988013829f41cf5adf465e866 | [
"Apache-2.0"
] | 3 | 2018-07-02T07:34:43.000Z | 2019-01-25T14:35:45.000Z | setup.py | YajanaRao/Perftool | 1ad50c05c3f3498988013829f41cf5adf465e866 | [
"Apache-2.0"
] | 6 | 2018-05-02T13:47:37.000Z | 2018-09-25T11:28:16.000Z | setup.py | YajanaRao/Perftool | 1ad50c05c3f3498988013829f41cf5adf465e866 | [
"Apache-2.0"
] | 3 | 2018-07-02T07:37:02.000Z | 2018-09-19T06:39:07.000Z | from setuptools import setup
setup(name='perftool',
version='0.1.4',
description='The Performance Tool',
url='https://github.com/Yajan/Perftool.git',
author='Yajana',
author_email='yajananrao@gmail.com',
license='Apache License',
packages=['perftool','perftool.ext','perftool.r... | 32 | 63 | 0.659091 | 41 | 352 | 5.609756 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.181818 | 352 | 11 | 64 | 32 | 0.788194 | 0 | 0 | 0 | 0 | 0 | 0.416431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
076c0a7c3afd4e38935f8664b67b1a9ccb4259a0 | 1,211 | py | Python | src/envoxy/utils/handlers.py | habitio/envoxy | 50c7851aabb8951402d8eb958e1f8312c57a1930 | [
"MIT"
] | 2 | 2019-07-18T13:12:58.000Z | 2022-02-16T10:29:56.000Z | src/envoxy/utils/handlers.py | muzzley/envoxy | b70f2d19ee27f7b4b12e68d441b1317966d87041 | [
"MIT"
] | 2 | 2019-09-18T11:02:28.000Z | 2021-11-04T10:58:28.000Z | src/envoxy/utils/handlers.py | muzzley/envoxy | b70f2d19ee27f7b4b12e68d441b1317966d87041 | [
"MIT"
] | 2 | 2020-08-11T17:04:35.000Z | 2021-05-10T11:40:13.000Z | import json
from requests import Response as RequestsResponse
from flask import Response as FlaskResponse
class Handler:
@staticmethod
def response(response: RequestsResponse) -> FlaskResponse:
try:
return FlaskResponse(response.text, response.status_code, headers=response.headers.items(... | 35.617647 | 130 | 0.651528 | 131 | 1,211 | 5.923664 | 0.366412 | 0.122423 | 0.041237 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006529 | 0.241123 | 1,211 | 34 | 131 | 35.617647 | 0.837867 | 0 | 0 | 0.12 | 0 | 0 | 0.094884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
076d11dfbc54886a1e77058e7428ab5433a4852c | 17,087 | py | Python | pyvsim/MieUtils.py | rmaiko/pyvsim | 18d51d8fc3678ffcb08fd0939dc72c1a8834327d | [
"Apache-2.0"
] | null | null | null | pyvsim/MieUtils.py | rmaiko/pyvsim | 18d51d8fc3678ffcb08fd0939dc72c1a8834327d | [
"Apache-2.0"
] | null | null | null | pyvsim/MieUtils.py | rmaiko/pyvsim | 18d51d8fc3678ffcb08fd0939dc72c1a8834327d | [
"Apache-2.0"
] | null | null | null | """
.. module :: MieUtils
:platform: Unix, Windows
:synopsis: Mie scattering calculation
This module contains the Mie scattering mathematics. This was separated because
many different functions were needed to model that.
The functions were adapter from `Maetzler (Maetzler, C. Matlab functions for ... | 36.355319 | 117 | 0.551121 | 2,207 | 17,087 | 4.229271 | 0.241504 | 0.004928 | 0.002571 | 0.003214 | 0.289051 | 0.257767 | 0.235269 | 0.214163 | 0.188237 | 0.183308 | 0 | 0.03159 | 0.33862 | 17,087 | 470 | 118 | 36.355319 | 0.794354 | 0.092585 | 0 | 0.046875 | 0 | 0 | 0.030878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039063 | null | null | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
076dc050c70b6b435335d14dd670d9cf89d462e0 | 270 | py | Python | server.py | KarolinaZawisza/personal-cv-website | b1ae2676310c87e1e0ec4313a8b5af56d06b3062 | [
"MIT"
] | null | null | null | server.py | KarolinaZawisza/personal-cv-website | b1ae2676310c87e1e0ec4313a8b5af56d06b3062 | [
"MIT"
] | null | null | null | server.py | KarolinaZawisza/personal-cv-website | b1ae2676310c87e1e0ec4313a8b5af56d06b3062 | [
"MIT"
] | null | null | null | from flask import Flask, render_template
import datetime
app = Flask(__name__)
current_year = datetime.datetime.now().year
@app.route('/')
def main_page():
return render_template('index.html', year=current_year)
if __name__ == '__main__':
app.run(debug=True) | 20.769231 | 59 | 0.737037 | 37 | 270 | 4.918919 | 0.594595 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 270 | 13 | 60 | 20.769231 | 0.774468 | 0 | 0 | 0 | 0 | 0 | 0.070111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0772249af22586502419a713a1ca5b00b2ec3632 | 526 | py | Python | tests/pipeline/test_stream_update.py | remram44/openclean-core | 8c09c8302cadbb3bb02c959907f91a3ae343f939 | [
"BSD-3-Clause"
] | 4 | 2021-04-20T09:06:26.000Z | 2021-11-20T20:31:28.000Z | tests/pipeline/test_stream_update.py | remram44/openclean-core | 8c09c8302cadbb3bb02c959907f91a3ae343f939 | [
"BSD-3-Clause"
] | 14 | 2021-01-19T19:23:16.000Z | 2021-04-28T14:31:03.000Z | tests/pipeline/test_stream_update.py | remram44/openclean-core | 8c09c8302cadbb3bb02c959907f91a3ae343f939 | [
"BSD-3-Clause"
] | 5 | 2021-08-24T11:57:21.000Z | 2022-03-17T04:39:04.000Z | # This file is part of the Data Cleaning Library (openclean).
#
# Copyright (C) 2018-2021 New York University.
#
# openclean is released under the Revised BSD License. See file LICENSE for
# full license details.
"""Unit tests for the update operator in data processing pipelines."""
from openclean.function.eval.base ... | 30.941176 | 75 | 0.703422 | 84 | 526 | 4.321429 | 0.654762 | 0.016529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025287 | 0.173004 | 526 | 16 | 76 | 32.875 | 0.809195 | 0.602662 | 0 | 0 | 0 | 0 | 0.020725 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
077675ba8512f071e7530cd39b30e65de69e3aad | 670 | py | Python | app/templatetags/helpers.py | pennlabs/common-funding-application | 05e99b312a80336336a113de2b1b05853057f313 | [
"MIT"
] | 15 | 2015-02-08T21:33:42.000Z | 2022-03-03T01:03:43.000Z | app/templatetags/helpers.py | pennlabs/common-funding-application | 05e99b312a80336336a113de2b1b05853057f313 | [
"MIT"
] | 63 | 2015-01-17T18:17:41.000Z | 2021-11-07T22:52:08.000Z | app/templatetags/helpers.py | pennlabs/common-funding-application | 05e99b312a80336336a113de2b1b05853057f313 | [
"MIT"
] | null | null | null | from app.models import Grant
def funders_grant_data_to_item(item, funder):
grant = Grant.objects.filter(item=item, funder=funder)
return (float(grant.first().amount), item.id) if grant else (None, item.id)
def funder_item_data(item, funders):
funders_data = []
for funder in funders:
... | 29.130435 | 80 | 0.670149 | 92 | 670 | 4.673913 | 0.358696 | 0.083721 | 0.097674 | 0.083721 | 0.148837 | 0.148837 | 0.148837 | 0 | 0 | 0 | 0 | 0 | 0.219403 | 670 | 22 | 81 | 30.454545 | 0.82218 | 0.034328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 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 |
077698e3046a323b7bfeca8c91c03703b16ed5b7 | 3,394 | py | Python | P4D2_2017_Fall/exercises/p4runtime/p4runtime_lib/switch.py | ptcrews/p4-mininet-tutorials | 2e857053ba5cb9e90af11690d5cdd1116ec790fd | [
"Apache-2.0"
] | 23 | 2018-06-26T11:06:24.000Z | 2022-03-07T02:59:49.000Z | P4D2_2017_Fall/exercises/p4runtime/p4runtime_lib/switch.py | ptcrews/p4-mininet-tutorials | 2e857053ba5cb9e90af11690d5cdd1116ec790fd | [
"Apache-2.0"
] | null | null | null | P4D2_2017_Fall/exercises/p4runtime/p4runtime_lib/switch.py | ptcrews/p4-mininet-tutorials | 2e857053ba5cb9e90af11690d5cdd1116ec790fd | [
"Apache-2.0"
] | 104 | 2018-03-29T09:17:35.000Z | 2022-03-31T05:35:11.000Z | # Copyright 2017-present Open Networking Foundation
#
# 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 ... | 38.134831 | 91 | 0.677372 | 413 | 3,394 | 5.404358 | 0.329298 | 0.039427 | 0.026882 | 0.032258 | 0.260305 | 0.210125 | 0.164875 | 0.164875 | 0.164875 | 0.164875 | 0 | 0.021535 | 0.247496 | 3,394 | 88 | 92 | 38.568182 | 0.852388 | 0.167943 | 0 | 0.343284 | 0 | 0 | 0.036668 | 0.009968 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059701 | null | null | 0.059701 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
07783d680b7b599710f513b6db1710adbb57d6b9 | 2,882 | py | Python | tests/test_assistant.py | y226xie/flask-assistant | b2e4ef43777d84982823be6d86587508cdd3d0e5 | [
"Apache-2.0"
] | 400 | 2016-12-15T07:41:08.000Z | 2022-02-28T08:31:27.000Z | tests/test_assistant.py | Allyn69/flask-assistant | 9331b9796644dfa987bcd97a13e78e9ab62923d3 | [
"Apache-2.0"
] | 134 | 2017-01-23T03:54:34.000Z | 2022-02-02T19:53:27.000Z | tests/test_assistant.py | Allyn69/flask-assistant | 9331b9796644dfa987bcd97a13e78e9ab62923d3 | [
"Apache-2.0"
] | 125 | 2017-01-20T02:09:37.000Z | 2022-01-15T20:25:15.000Z | from flask_assistant.manager import Context
from tests.helpers import build_payload, get_query_response
def test_intents_with_different_formatting(simple_client, intent_payload):
resp = get_query_response(simple_client, intent_payload)
assert "Message" in resp["fulfillmentText"]
resp = simple_client.pos... | 41.171429 | 124 | 0.729702 | 358 | 2,882 | 5.600559 | 0.259777 | 0.064838 | 0.07182 | 0.079801 | 0.458354 | 0.429426 | 0.412968 | 0.412968 | 0.412968 | 0.354613 | 0 | 0.002102 | 0.174532 | 2,882 | 69 | 125 | 41.768116 | 0.840689 | 0.260236 | 0 | 0.378378 | 0 | 0 | 0.131256 | 0 | 0 | 0 | 0 | 0.014493 | 0.27027 | 1 | 0.108108 | false | 0 | 0.054054 | 0 | 0.162162 | 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 |
077b0dd860dab7091df56e97b949c843f31c38bf | 2,089 | py | Python | tests/unit/test_cheminfo.py | biorack/metatlas | ce3f03817a0a7c5500452689ad587ce94af26a1a | [
"BSD-3-Clause"
] | 8 | 2016-08-10T22:29:39.000Z | 2021-04-06T22:49:46.000Z | tests/unit/test_cheminfo.py | biorack/metatlas | ce3f03817a0a7c5500452689ad587ce94af26a1a | [
"BSD-3-Clause"
] | 111 | 2016-04-27T23:18:12.000Z | 2022-03-15T23:55:52.000Z | tests/unit/test_cheminfo.py | biorack/metatlas | ce3f03817a0a7c5500452689ad587ce94af26a1a | [
"BSD-3-Clause"
] | 9 | 2016-08-21T16:23:02.000Z | 2021-04-06T22:49:50.000Z | # pylint: disable=missing-function-docstring, missing-module-docstring, line-too-long
import matchms
from rdkit import Chem
from metatlas.tools import cheminfo
INCHI = "InChI=1S/C10H13N5O3/c11-9-8-10(13-3-12-9)15(4-14-8)7-1-5(17)6(2-16)18-7/h3-7,16-17H,1-2H2,(H2,11,12,13)/t5-,6+,7+/m0/s1"
INCHI_KEY = "OLXZPDWKRNYJJ... | 38.685185 | 129 | 0.73528 | 322 | 2,089 | 4.540373 | 0.304348 | 0.102599 | 0.098495 | 0.136799 | 0.474008 | 0.388509 | 0.315321 | 0.236662 | 0.19015 | 0.159371 | 0 | 0.046652 | 0.127812 | 2,089 | 53 | 130 | 39.415094 | 0.755763 | 0.039732 | 0 | 0 | 0 | 0.052632 | 0.198603 | 0.141218 | 0 | 0 | 0 | 0 | 0.526316 | 1 | 0.131579 | false | 0 | 0.105263 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
077bb22c8fbb9d2dc8683079cb974c72c4fc45bd | 356 | py | Python | packages/nuget.py | mhutch/bockbuild | 0d989e2d0259d17d41a195f8d28b3844a4652e7b | [
"MIT"
] | null | null | null | packages/nuget.py | mhutch/bockbuild | 0d989e2d0259d17d41a195f8d28b3844a4652e7b | [
"MIT"
] | null | null | null | packages/nuget.py | mhutch/bockbuild | 0d989e2d0259d17d41a195f8d28b3844a4652e7b | [
"MIT"
] | null | null | null |
class NuGetPackage(GitHubTarballPackage):
def __init__(self):
GitHubTarballPackage.__init__(self,
'mono', 'nuget',
'2.8.5',
'ea1d244b066338c9408646afdcf8acae6299f7fb',
configure = '')
def build(self):
self.sh ('%{make} PREFIX=%{package_prefix}')
def install(self):
self.sh ('%{makeinstall} PREFIX... | 20.941176 | 52 | 0.699438 | 35 | 356 | 6.828571 | 0.6 | 0.066946 | 0.083682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084416 | 0.134831 | 356 | 16 | 53 | 22.25 | 0.691558 | 0 | 0 | 0 | 0 | 0 | 0.349296 | 0.24507 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
077cf67dcc01dafa33d963a8b70df82fa87c7bd6 | 6,526 | py | Python | option_ticker_table.py | siralbert/tdapp | d8829d10c975c106f7cfd997f1bc729056cef16e | [
"MIT"
] | null | null | null | option_ticker_table.py | siralbert/tdapp | d8829d10c975c106f7cfd997f1bc729056cef16e | [
"MIT"
] | null | null | null | option_ticker_table.py | siralbert/tdapp | d8829d10c975c106f7cfd997f1bc729056cef16e | [
"MIT"
] | 1 | 2021-06-21T16:58:44.000Z | 2021-06-21T16:58:44.000Z | import tdameritrade as td
from ib_insync import *
import os
import asyncio
from util import *
import wrapper
from PyQt5.QtWidgets import QApplication
import PyQt5.QtWidgets as qt
from PyQt5.QtGui import QPalette
from PyQt5 import QtGui
from PyQt5.QtCore import Qt
from PyQt5 import QtCore
class TickerTable(qt.QTable... | 34.712766 | 134 | 0.654766 | 765 | 6,526 | 5.482353 | 0.337255 | 0.039342 | 0.058894 | 0.083691 | 0.15546 | 0.139723 | 0.082976 | 0.05341 | 0.05341 | 0 | 0 | 0.021644 | 0.228318 | 6,526 | 187 | 135 | 34.898396 | 0.81116 | 0.15875 | 0 | 0.047244 | 0 | 0.007874 | 0.057922 | 0.004164 | 0 | 0 | 0 | 0.010695 | 0 | 1 | 0.070866 | false | 0 | 0.094488 | 0.007874 | 0.220472 | 0.055118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
077e00102e045d29353d6a55627844a32667c906 | 1,354 | py | Python | tests/test_models.py | Bernardvdv/djangocms-snippet | 883f9f895c6036f243ae90ce24a6e30ec82ad57f | [
"BSD-3-Clause"
] | 27 | 2015-03-29T01:06:26.000Z | 2020-02-04T02:02:55.000Z | tests/test_models.py | Bernardvdv/djangocms-snippet | 883f9f895c6036f243ae90ce24a6e30ec82ad57f | [
"BSD-3-Clause"
] | 65 | 2015-01-02T05:15:17.000Z | 2020-09-20T17:56:04.000Z | tests/test_models.py | adam-murray/djangocms-snippet | a58974888ea4e2569a22feafe03b051f28bc22db | [
"BSD-3-Clause"
] | 28 | 2015-01-10T06:34:43.000Z | 2020-09-20T17:35:03.000Z | from django.test import TestCase
from djangocms_snippet.models import SEARCH_ENABLED, Snippet, SnippetPtr
class SnippetModelTestCase(TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_settings(self):
self.assertEqual(SEARCH_ENABLED, False)
def test_snippet_... | 29.434783 | 72 | 0.614476 | 141 | 1,354 | 5.815603 | 0.262411 | 0.134146 | 0.140244 | 0.054878 | 0.412195 | 0.392683 | 0.392683 | 0.392683 | 0.160976 | 0.160976 | 0 | 0.00203 | 0.272526 | 1,354 | 45 | 73 | 30.088889 | 0.830457 | 0.018464 | 0 | 0.342857 | 0 | 0 | 0.113122 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 1 | 0.142857 | false | 0.057143 | 0.057143 | 0 | 0.228571 | 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 |
077facf393880706f7011ff0332016e0cd76213c | 10,421 | py | Python | onfido/models/report.py | onfido/api-python-client | 9e05fcb1c1c511da74a822740a59a67057c50f03 | [
"MIT"
] | 11 | 2018-02-07T08:34:03.000Z | 2020-06-07T01:52:55.000Z | onfido/models/report.py | onfido/api-python-client | 9e05fcb1c1c511da74a822740a59a67057c50f03 | [
"MIT"
] | 5 | 2018-04-23T10:46:57.000Z | 2021-10-05T18:02:07.000Z | onfido/models/report.py | onfido/api-python-client | 9e05fcb1c1c511da74a822740a59a67057c50f03 | [
"MIT"
] | 15 | 2017-11-04T21:08:24.000Z | 2020-03-11T02:18:48.000Z | # coding: utf-8
"""
Onfido API
The Onfido API is used to submit check requests. # noqa: E501
The version of the OpenAPI document: 3.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Report(object):
"""NOTE: This class is auto generat... | 28.317935 | 177 | 0.571826 | 1,297 | 10,421 | 4.508096 | 0.117965 | 0.073884 | 0.082093 | 0.082093 | 0.51582 | 0.456302 | 0.440055 | 0.363263 | 0.29622 | 0.245254 | 0 | 0.024759 | 0.333365 | 10,421 | 367 | 178 | 28.395095 | 0.816899 | 0.429229 | 0 | 0.07947 | 1 | 0 | 0.073241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172185 | false | 0 | 0.019868 | 0 | 0.317881 | 0.013245 | 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 |
0780fbffb613dc234df09f0cc11c5d27bad4810a | 720 | py | Python | playground/PolymorphismPython.py | lindsay0416/framework | 0d9dbab534fcd4624c1e889162aca85cd2dfb84d | [
"Apache-2.0"
] | null | null | null | playground/PolymorphismPython.py | lindsay0416/framework | 0d9dbab534fcd4624c1e889162aca85cd2dfb84d | [
"Apache-2.0"
] | null | null | null | playground/PolymorphismPython.py | lindsay0416/framework | 0d9dbab534fcd4624c1e889162aca85cd2dfb84d | [
"Apache-2.0"
] | null | null | null | class Cat:
def __init__(self, name, age):
self.name = name
self.age = age
def info(self):
print(f"I am a cat. My name is {self.name}. I am {self.age} years old.")
def make_sound(self):
print("Meow")
class Dog:
def __init__(self, name, age):
self.name = name
... | 19.459459 | 80 | 0.570833 | 114 | 720 | 3.5 | 0.342105 | 0.120301 | 0.055138 | 0.075188 | 0.581454 | 0.581454 | 0.581454 | 0.581454 | 0.581454 | 0.581454 | 0 | 0.028846 | 0.277778 | 720 | 36 | 81 | 20 | 0.738462 | 0 | 0 | 0.48 | 0 | 0.08 | 0.212796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0 | 0 | 0.32 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07828764fbea7c981cb710f8b67b05b6a9949a3d | 7,038 | py | Python | boozetools/scanning/recognition.py | kjosib/booze-tools | ed3333643e0df99231202c024da8c86a9bb5b2bc | [
"MIT"
] | 10 | 2019-01-24T04:45:56.000Z | 2020-09-16T14:27:29.000Z | boozetools/scanning/recognition.py | kjosib/booze-tools | ed3333643e0df99231202c024da8c86a9bb5b2bc | [
"MIT"
] | 40 | 2019-04-10T21:54:38.000Z | 2021-10-04T02:49:11.000Z | boozetools/scanning/recognition.py | kjosib/booze-tools | ed3333643e0df99231202c024da8c86a9bb5b2bc | [
"MIT"
] | 1 | 2020-05-22T16:28:02.000Z | 2020-05-22T16:28:02.000Z | """
This module implements the essential algorithm to recognize a sequence of
lexemes and their syntactic categories (rules/scan-actions) by reference to a
finite-state machine. It supports backtracking, beginning-of-line anchors,
and (non-variable) trailing context.
"""
from typing import TypeVar, Generic, Callable
fr... | 39.318436 | 140 | 0.747371 | 1,056 | 7,038 | 4.860795 | 0.322917 | 0.017534 | 0.009351 | 0.009936 | 0.123515 | 0.087473 | 0.071303 | 0.047536 | 0.047536 | 0.047536 | 0 | 0.003397 | 0.163541 | 7,038 | 178 | 141 | 39.539326 | 0.868524 | 0.477124 | 0 | 0.021978 | 0 | 0 | 0.000281 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 1 | 0.241758 | false | 0 | 0.021978 | 0.065934 | 0.43956 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
078697d545b2fda46e014d4e6fa2b2eeede586e7 | 9,340 | py | Python | tests/test_validators.py | mng12689/troposphere | f0c6c7be8963de2ad3537b1864b62b02a7b486fc | [
"BSD-2-Clause"
] | 1 | 2020-06-09T16:53:04.000Z | 2020-06-09T16:53:04.000Z | tests/test_validators.py | mng12689/troposphere | f0c6c7be8963de2ad3537b1864b62b02a7b486fc | [
"BSD-2-Clause"
] | null | null | null | tests/test_validators.py | mng12689/troposphere | f0c6c7be8963de2ad3537b1864b62b02a7b486fc | [
"BSD-2-Clause"
] | null | null | null | import unittest
from troposphere import Parameter, Ref, NoValue
from troposphere.validators import boolean, integer, integer_range
from troposphere.validators import positive_integer, network_port
from troposphere.validators import tg_healthcheck_port
from troposphere.validators import s3_bucket_name, encoding, status
... | 36.20155 | 75 | 0.556959 | 1,102 | 9,340 | 4.541742 | 0.175136 | 0.047952 | 0.11988 | 0.17982 | 0.433167 | 0.242358 | 0.155844 | 0.139461 | 0.084316 | 0.060739 | 0 | 0.03411 | 0.296895 | 9,340 | 257 | 76 | 36.342412 | 0.728034 | 0 | 0 | 0.397321 | 0 | 0 | 0.108458 | 0.002463 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.191964 | 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 |
078f28c722f8419903eab90abd2629b8e08525ff | 1,786 | py | Python | examples/bme280_simple.py | Oakwright/EnviroPlus-FeatherWing | 85da578a568fa3738a551d6d5c3ac998e994f01e | [
"MIT"
] | 1 | 2022-01-30T03:07:06.000Z | 2022-01-30T03:07:06.000Z | examples/bme280_simple.py | Oakwright/EnviroPlus-FeatherWing | 85da578a568fa3738a551d6d5c3ac998e994f01e | [
"MIT"
] | null | null | null | examples/bme280_simple.py | Oakwright/EnviroPlus-FeatherWing | 85da578a568fa3738a551d6d5c3ac998e994f01e | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2017 ladyada for Adafruit Industries
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, c... | 38.826087 | 88 | 0.778835 | 274 | 1,786 | 5.043796 | 0.540146 | 0.063676 | 0.018813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039841 | 0.156775 | 1,786 | 45 | 89 | 39.688889 | 0.877822 | 0.724524 | 0 | 0 | 0 | 0 | 0.170124 | 0 | 0 | 0 | 0.008299 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0790cd665eca026ac6b1f8cc0d14b7b274eb7369 | 968 | py | Python | Machine Learning/Algorithms/Bagging and Boosting/bagging_classifier.py | theshredbox/DS-ScriptsNook | 0fbd0a74a53f5f80593dc71bc4acd380ea0808a2 | [
"MIT"
] | 13 | 2021-07-05T06:53:41.000Z | 2022-02-25T11:31:24.000Z | Machine Learning/Algorithms/Bagging and Boosting/bagging_classifier.py | theshredbox/DS-ScriptsNook | 0fbd0a74a53f5f80593dc71bc4acd380ea0808a2 | [
"MIT"
] | 135 | 2021-07-06T11:01:25.000Z | 2021-10-31T18:22:28.000Z | Machine Learning/Algorithms/Bagging and Boosting/bagging_classifier.py | theshredbox/DS-ScriptsNook | 0fbd0a74a53f5f80593dc71bc4acd380ea0808a2 | [
"MIT"
] | 35 | 2021-07-04T15:57:00.000Z | 2021-10-31T10:33:45.000Z | import numpy as np
from sklearn import datasets
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import make_pipeline
from sklearn.ensemble import BaggingClassifier
from sklearn.model_se... | 30.25 | 102 | 0.744835 | 134 | 968 | 5.201493 | 0.358209 | 0.110473 | 0.045911 | 0.071736 | 0.149211 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008739 | 0.172521 | 968 | 32 | 103 | 30.25 | 0.861423 | 0.137397 | 0 | 0 | 0 | 0 | 0.063371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.470588 | 0 | 0.470588 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0791af67a36082d30e21b07b12db58613d9d2d8d | 1,447 | py | Python | app/core/tests/test_models.py | Ennosch/rest_api | 57011b908617f92a49e642d4368d060e42185035 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | Ennosch/rest_api | 57011b908617f92a49e642d4368d060e42185035 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | Ennosch/rest_api | 57011b908617f92a49e642d4368d060e42185035 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
class ModelTests(TestCase):
def test_create_user_with_email_sucessfull(self):
"""Test Create with a new user with an email is sucessfull"""
email = "test@londonappdev.com"
password = "Testpass123"
# imp... | 35.292683 | 69 | 0.648238 | 172 | 1,447 | 5.25 | 0.302326 | 0.059801 | 0.066445 | 0.084164 | 0.293466 | 0.217054 | 0.084164 | 0.084164 | 0 | 0 | 0 | 0.011029 | 0.2481 | 1,447 | 41 | 70 | 35.292683 | 0.818934 | 0.170698 | 0 | 0.076923 | 0 | 0 | 0.078098 | 0.035654 | 0 | 0 | 0 | 0 | 0.269231 | 1 | 0.153846 | false | 0.115385 | 0.076923 | 0 | 0.269231 | 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 |
07931f1fdfbddbb0db5be37468ffec1f681cc0e0 | 1,175 | py | Python | setup.py | phvu/cebes-python | 41e0a687feeac437eadcab1a4d1f0a041986bd4e | [
"Apache-2.0"
] | null | null | null | setup.py | phvu/cebes-python | 41e0a687feeac437eadcab1a4d1f0a041986bd4e | [
"Apache-2.0"
] | null | null | null | setup.py | phvu/cebes-python | 41e0a687feeac437eadcab1a4d1f0a041986bd4e | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 The Cebes Authors. All Rights Reserved.
#
# Licensed under the Apache License, version 2.0 (the "License").
# You may not use this work except in compliance with the License,
# which is available at www.apache.org/licenses/LICENSE-2.0
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRAN... | 33.571429 | 97 | 0.731064 | 171 | 1,175 | 4.877193 | 0.643275 | 0.007194 | 0.038369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017206 | 0.159149 | 1,175 | 34 | 98 | 34.558824 | 0.826923 | 0.42383 | 0 | 0 | 0 | 0 | 0.183183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | true | 0 | 0.222222 | 0 | 0.333333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0794edad2cbe95f43d0c3a79297853b00b0f226e | 10,761 | py | Python | electrum_spectrumcash/plugins/trezor/clientbase.py | Spectrumcash/Spectrum-ElectromX-Client | 1008c9844eb99e70372850f9bb81d6ded3e59396 | [
"MIT"
] | null | null | null | electrum_spectrumcash/plugins/trezor/clientbase.py | Spectrumcash/Spectrum-ElectromX-Client | 1008c9844eb99e70372850f9bb81d6ded3e59396 | [
"MIT"
] | 2 | 2021-06-01T22:49:23.000Z | 2021-11-15T17:47:55.000Z | electrum_spectrumcash/plugins/trezor/clientbase.py | Spectrumcash/Spectrum-ElectrumX-Client | 1008c9844eb99e70372850f9bb81d6ded3e59396 | [
"MIT"
] | null | null | null | import time
from struct import pack
from electrum_spectrumcash import ecc
from electrum_spectrumcash.i18n import _
from electrum_spectrumcash.util import UserCancelled, UserFacingException
from electrum_spectrumcash.keystore import bip39_normalize_passphrase
from electrum_spectrumcash.bip32 import BIP32Node, convert_b... | 36.110738 | 102 | 0.615277 | 1,271 | 10,761 | 5.04642 | 0.228954 | 0.028064 | 0.024322 | 0.025725 | 0.169005 | 0.145151 | 0.11319 | 0.065638 | 0.052074 | 0.045214 | 0 | 0.006426 | 0.291423 | 10,761 | 297 | 103 | 36.232323 | 0.834754 | 0.043862 | 0 | 0.225941 | 0 | 0 | 0.140125 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 1 | 0.150628 | false | 0.075314 | 0.058577 | 0.020921 | 0.338912 | 0.004184 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
07997e52e5ff3b3c931aa13e8cff275f60984cf1 | 11,070 | py | Python | people/tests/test_repositories.py | jordifierro/abidria-api | d7689783bf23fbe43c395b07572a1380654652cd | [
"MIT"
] | 93 | 2017-08-12T09:41:21.000Z | 2022-03-19T20:04:41.000Z | people/tests/test_repositories.py | jordifierro/abidria-api | d7689783bf23fbe43c395b07572a1380654652cd | [
"MIT"
] | 1 | 2017-10-09T16:49:10.000Z | 2017-10-13T18:07:29.000Z | people/tests/test_repositories.py | jordifierro/abidria-api | d7689783bf23fbe43c395b07572a1380654652cd | [
"MIT"
] | 25 | 2017-08-18T04:31:23.000Z | 2022-02-20T20:31:47.000Z | import uuid
from django.test import TestCase
from abidria.exceptions import EntityDoesNotExistException
from people.models import ORMPerson, ORMAuthToken, ORMConfirmationToken
from people.repositories import PersonRepo, AuthTokenRepo, ConfirmationTokenRepo
from people.entities import Person
class PersonRepoTestCase... | 39.535714 | 118 | 0.654562 | 1,274 | 11,070 | 5.231554 | 0.074568 | 0.042011 | 0.056564 | 0.035709 | 0.738485 | 0.660765 | 0.567292 | 0.437659 | 0.329482 | 0.297824 | 0 | 0.000375 | 0.278049 | 11,070 | 279 | 119 | 39.677419 | 0.833584 | 0 | 0 | 0.463636 | 0 | 0 | 0.000181 | 0 | 0 | 0 | 0 | 0 | 0.131818 | 1 | 0.218182 | false | 0 | 0.027273 | 0 | 0.418182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07a350d29ad0ceeb0541996e142cbcd9a40d4fa1 | 6,634 | py | Python | sdk/python/pulumi_aws/cloudfront/get_response_headers_policy.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-11-10T16:33:40.000Z | 2021-11-10T16:33:40.000Z | sdk/python/pulumi_aws/cloudfront/get_response_headers_policy.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/cloudfront/get_response_headers_policy.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 38.569767 | 166 | 0.683147 | 744 | 6,634 | 5.844086 | 0.205645 | 0.077277 | 0.062787 | 0.038638 | 0.406854 | 0.307268 | 0.24609 | 0.196182 | 0.146734 | 0.130175 | 0 | 0.000782 | 0.229123 | 6,634 | 171 | 167 | 38.795322 | 0.849433 | 0.232288 | 0 | 0.11 | 1 | 0 | 0.178623 | 0.107297 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11 | false | 0 | 0.06 | 0.02 | 0.28 | 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 |
07a3ba4d918effef2720dd5420857edd85bee87e | 302 | py | Python | local_scope.py | PRASAD-DANGARE/PYTHON | 36214f7dc3762d327e5a29e40752edeb098249c8 | [
"MIT"
] | 1 | 2021-06-07T07:55:28.000Z | 2021-06-07T07:55:28.000Z | local_scope.py | PRASAD-DANGARE/PYTHON | 36214f7dc3762d327e5a29e40752edeb098249c8 | [
"MIT"
] | null | null | null | local_scope.py | PRASAD-DANGARE/PYTHON | 36214f7dc3762d327e5a29e40752edeb098249c8 | [
"MIT"
] | null | null | null | '''
Description : Use Of Local Scope
Function Date : 05 Feb 2021
Function Author : Prasad Dangare
Input : Int
Output : Int
'''
x = 50
def func(x):
print ('x is', x)
x = 2
print ('Changed local x to', x)
func(x)
print ('x is still', x) | 16.777778 | 39 | 0.506623 | 42 | 302 | 3.642857 | 0.619048 | 0.065359 | 0.130719 | 0.143791 | 0.169935 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.384106 | 302 | 18 | 40 | 16.777778 | 0.774194 | 0.506623 | 0 | 0 | 0 | 0 | 0.256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
07a55566afc52fd6967f4f9fe193deeaf4793bdb | 2,187 | py | Python | src/barracuda/neurons.py | BurhanCabiroglu/Barracuda | d77f26cbdc50eab7071a332c7d4dc9d8280fb603 | [
"MIT"
] | 2 | 2021-03-22T14:48:24.000Z | 2021-06-10T12:03:02.000Z | src/barracuda/neurons.py | BurhanCabiroglu/Barracuda | d77f26cbdc50eab7071a332c7d4dc9d8280fb603 | [
"MIT"
] | null | null | null | src/barracuda/neurons.py | BurhanCabiroglu/Barracuda | d77f26cbdc50eab7071a332c7d4dc9d8280fb603 | [
"MIT"
] | null | null | null | import numpy
from copy import deepcopy
from barracuda.neurontype import neuron_type
import json
class _Neuron(object):
def __init__(self):
self.input = None
self.output = None
def forward(self,input_data):
raise NotImplementedError
def backward(self,output_error, learning_rate):
... | 32.161765 | 120 | 0.683128 | 267 | 2,187 | 5.378277 | 0.202247 | 0.068942 | 0.036212 | 0.039694 | 0.394847 | 0.31337 | 0.31337 | 0.194986 | 0.132312 | 0.132312 | 0 | 0.004056 | 0.210791 | 2,187 | 67 | 121 | 32.641791 | 0.827926 | 0 | 0 | 0.4 | 0 | 0 | 0.034294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.08 | 0.02 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07b23630ff198a8240d225c885258bc320a01e11 | 1,315 | py | Python | bus_system/apps/bus/migrations/0001_initial.py | pygabo/bus_system | ffb76d3414e058286799f3df1cb551b26286e7c3 | [
"MIT"
] | null | null | null | bus_system/apps/bus/migrations/0001_initial.py | pygabo/bus_system | ffb76d3414e058286799f3df1cb551b26286e7c3 | [
"MIT"
] | null | null | null | bus_system/apps/bus/migrations/0001_initial.py | pygabo/bus_system | ffb76d3414e058286799f3df1cb551b26286e7c3 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.12 on 2021-06-23 04:42
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('bus_driver', '0001_initial'),
]
... | 36.527778 | 147 | 0.623574 | 132 | 1,315 | 6.106061 | 0.5 | 0.029777 | 0.07072 | 0.054591 | 0.131514 | 0.131514 | 0.131514 | 0.131514 | 0.131514 | 0 | 0 | 0.023209 | 0.246388 | 1,315 | 35 | 148 | 37.571429 | 0.790111 | 0.034981 | 0 | 0 | 1 | 0 | 0.109708 | 0.019732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.178571 | 0 | 0.321429 | 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 |
07b24826ee21d820877689a9e24ed991455f0092 | 396 | py | Python | newtest/views.py | judexzhu/dzhops | ffe089a734dd24d88bf433223ab8eb7e2eb099c5 | [
"Apache-2.0"
] | 202 | 2015-05-18T08:48:52.000Z | 2021-07-16T13:59:07.000Z | newtest/views.py | judexzhu/dzhops | ffe089a734dd24d88bf433223ab8eb7e2eb099c5 | [
"Apache-2.0"
] | 19 | 2015-11-26T03:54:45.000Z | 2019-03-02T13:58:24.000Z | newtest/views.py | Hasal/dzhops | fcd16adc61a941dccdaebee156b545784a5e96a8 | [
"Apache-2.0"
] | 172 | 2015-08-07T15:52:17.000Z | 2021-07-16T13:59:11.000Z | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
# Create your views here.
@login_required
def testHtml(request):
user = request.user.username
return render(
request,
'test.html'
)
@login_required
def testIndex(request):
user = request.user.... | 20.842105 | 57 | 0.684343 | 46 | 396 | 5.826087 | 0.543478 | 0.164179 | 0.119403 | 0.164179 | 0.365672 | 0.365672 | 0.365672 | 0.365672 | 0 | 0 | 0 | 0 | 0.232323 | 396 | 19 | 58 | 20.842105 | 0.881579 | 0.058081 | 0 | 0.5 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 |
07b4147401c48d253eecfdc1cafe562fda6ff370 | 7,976 | py | Python | dirty_cont_image.py | jmoldon/hcg_hi_pipeline | c06128c6f8acb0dcae9e45efc164e3d282f3ac8d | [
"MIT"
] | 1 | 2020-02-20T08:56:48.000Z | 2020-02-20T08:56:48.000Z | dirty_cont_image.py | jmoldon/hcg_hi_pipeline | c06128c6f8acb0dcae9e45efc164e3d282f3ac8d | [
"MIT"
] | 5 | 2019-12-11T12:02:22.000Z | 2022-03-29T08:46:05.000Z | dirty_cont_image.py | jmoldon/hcg_hi_pipeline | c06128c6f8acb0dcae9e45efc164e3d282f3ac8d | [
"MIT"
] | 1 | 2022-03-23T13:11:01.000Z | 2022-03-23T13:11:01.000Z | import imp, glob, numpy
imp.load_source('common_functions','common_functions.py')
import common_functions as cf
def dirty_cont_image(config,config_raw,config_file,logger):
"""
Generates a dirty image of each science target including the continuum emission.
Checks that the pixel size and image size are set ... | 53.530201 | 503 | 0.636409 | 1,097 | 7,976 | 4.482224 | 0.197812 | 0.066707 | 0.044743 | 0.061013 | 0.566809 | 0.526134 | 0.484442 | 0.371975 | 0.332113 | 0.299573 | 0 | 0.005239 | 0.210256 | 7,976 | 149 | 504 | 53.530201 | 0.775361 | 0.063942 | 0 | 0.265625 | 1 | 0.007813 | 0.330773 | 0.013204 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007813 | false | 0 | 0.015625 | 0 | 0.023438 | 0.054688 | 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 |
07b84c59659d162082063d950c0f0af9af9f97e7 | 9,747 | py | Python | scapy/scapypipes.py | kosciolek/J-Tracert | 89ed802f700e02600138ad7132e6a856463620dd | [
"MIT"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | scapy/scapypipes.py | kosciolek/J-Tracert | 89ed802f700e02600138ad7132e6a856463620dd | [
"MIT"
] | null | null | null | scapy/scapypipes.py | kosciolek/J-Tracert | 89ed802f700e02600138ad7132e6a856463620dd | [
"MIT"
] | 1 | 2018-11-15T12:37:04.000Z | 2018-11-15T12:37:04.000Z | ## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
from __future__ import print_function
import socket
from scapy.modules.six.moves.queue import Queue, Empty
from scapy.pip... | 27.302521 | 111 | 0.506002 | 1,112 | 9,747 | 4.27518 | 0.176259 | 0.043753 | 0.032394 | 0.037021 | 0.478965 | 0.45183 | 0.36138 | 0.306689 | 0.242322 | 0.228439 | 0 | 0.00534 | 0.327588 | 9,747 | 356 | 112 | 27.379213 | 0.720018 | 0.227147 | 0 | 0.635983 | 0 | 0 | 0.003827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225941 | false | 0 | 0.041841 | 0.025105 | 0.364017 | 0.016736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07bee168635d814fe2ba9eb219b0f40804dcaa95 | 217 | py | Python | tests/__init__.py | GSEL9/data-science-tools | 950ea7b3c675dc5b1648e6289e796da7b8cafb95 | [
"MIT"
] | null | null | null | tests/__init__.py | GSEL9/data-science-tools | 950ea7b3c675dc5b1648e6289e796da7b8cafb95 | [
"MIT"
] | null | null | null | tests/__init__.py | GSEL9/data-science-tools | 950ea7b3c675dc5b1648e6289e796da7b8cafb95 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# __init__.py
#
# This module is part of skxtend.
#
"""
Initializer of skxtend tests.
"""
__author__ = 'Severin E. R. Langberg'
__email__ = 'Langberg91@gmail.no'
__status__ = 'Operational'
| 14.466667 | 37 | 0.663594 | 26 | 217 | 4.923077 | 0.923077 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.170507 | 217 | 14 | 38 | 15.5 | 0.694444 | 0.442396 | 0 | 0 | 0 | 0 | 0.481481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.