hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 248 | max_forks_repo_name stringlengths 5 125 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db08017fe044db65092dd00ed22dea1c4564f406 | 699 | py | Python | test/module_dir/mymodule/__init__.py | honzajavorek/mkdocs_macros_plugin | c97c2e08e3c1cb9023b28a605784e0a7ac45b885 | [
"MIT"
] | null | null | null | test/module_dir/mymodule/__init__.py | honzajavorek/mkdocs_macros_plugin | c97c2e08e3c1cb9023b28a605784e0a7ac45b885 | [
"MIT"
] | null | null | null | test/module_dir/mymodule/__init__.py | honzajavorek/mkdocs_macros_plugin | c97c2e08e3c1cb9023b28a605784e0a7ac45b885 | [
"MIT"
] | null | null | null | import os
def define_env(env):
"""
This is the hook for the functions (new form)
"""
env.variables.cwd = os.getcwd()
# use dot notation for adding
env.variables.baz = env.variables.fix_url('foo')
# Optional: a special function for making relative urls point to root
fix_url = env... | 20.558824 | 73 | 0.602289 | 0 | 0 | 0 | 0 | 273 | 0.390558 | 0 | 0 | 257 | 0.367668 |
db086691881d363f79126af6b8d208d584242b29 | 114,519 | py | Python | cisco-ios-xe/ydk/models/cisco_ios_xe/MPLS_LDP_STD_MIB.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xe/ydk/models/cisco_ios_xe/MPLS_LDP_STD_MIB.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xe/ydk/models/cisco_ios_xe/MPLS_LDP_STD_MIB.py | Maikor/ydk-py | b86c4a7c570ae3b2c5557d098420446df5de4929 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ MPLS_LDP_STD_MIB
Copyright (C) The Internet Society (2004). The
initial version of this MIB module was published
in RFC 3815. For full legal notices see the RFC
itself or see\:
http\://www.ietf.org/copyrights/ianamib.html
This MIB contains managed object definitions for the
'Multiprotocol Label Switching, Labe... | 55.323188 | 1,407 | 0.642164 | 113,832 | 0.994001 | 0 | 0 | 0 | 0 | 0 | 0 | 80,009 | 0.698653 |
db098feaf4cd2fcd3ec50721e2eaf014b9b9cc97 | 892 | py | Python | atlas/foundations_contrib/src/foundations_contrib/helpers/shell.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_contrib/src/foundations_contrib/helpers/shell.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_contrib/src/foundations_contrib/helpers/shell.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
def find_bash():
import os
if os.name == 'nt':
return _find_windows_bash()
return '/bin/bash'
def _find_windows_bash():
winreg = _winreg_module()
import csv
StringIO = _get_string_io()
from os.path import dirname
sub_key = 'Directory\\shell\\git_shell\\command'
value = w... | 25.485714 | 73 | 0.659193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 92 | 0.103139 |
db0ab3da5d70c76acedaa4a8af65bab398892ba2 | 9,104 | py | Python | app/models/user.py | tonyngophd/dronest | f0976c31cbbf6fb032851bd42ac566bb381608f0 | [
"MIT"
] | 13 | 2021-02-03T13:26:59.000Z | 2021-03-24T19:34:19.000Z | app/models/user.py | suasllc/dronest | f0976c31cbbf6fb032851bd42ac566bb381608f0 | [
"MIT"
] | null | null | null | app/models/user.py | suasllc/dronest | f0976c31cbbf6fb032851bd42ac566bb381608f0 | [
"MIT"
] | 1 | 2021-06-07T17:56:58.000Z | 2021-06-07T17:56:58.000Z | from .db import db
from .userfollower import UserFollower
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from sqlalchemy import Table, Column, Integer, ForeignKey, or_
from .directmessage import DirectMessage
from .userequipment import UserEquipment
from .equ... | 35.286822 | 174 | 0.672781 | 8,133 | 0.893344 | 0 | 0 | 171 | 0.018783 | 0 | 0 | 2,259 | 0.248133 |
db0bae1eb24630016d687ec03ec4ffa465df2055 | 397 | py | Python | pyflu/update/signals.py | flupke/pyflu | 8856759ced5367fc8439a418b3ce6570b82707ce | [
"BSD-3-Clause"
] | 1 | 2017-07-17T06:50:24.000Z | 2017-07-17T06:50:24.000Z | pyflu/update/signals.py | flupke/pyflu | 8856759ced5367fc8439a418b3ce6570b82707ce | [
"BSD-3-Clause"
] | null | null | null | pyflu/update/signals.py | flupke/pyflu | 8856759ced5367fc8439a418b3ce6570b82707ce | [
"BSD-3-Clause"
] | null | null | null | from louie import Signal
class update_finished(Signal):
"""
Sent by :class:`~pyflu.update.qt.UpdateDialogMixin` when an update finished
successfully.
It receives a single argument, containing the path of the patched files.
"""
class not_updated(Signal):
"""
Sent by :meth:`~pyflu.update.... | 22.055556 | 79 | 0.697733 | 366 | 0.921914 | 0 | 0 | 0 | 0 | 0 | 0 | 300 | 0.755668 |
db0cc1dc2ea1b2e1fa0e57ca089770ba09f4f7f8 | 9,443 | py | Python | sentence_transformers/losses/BatchHardTripletLoss.py | zhangxieyang2/sentence-transformers | 87847b86954f92d200fbb4351b0576f4778d9381 | [
"Apache-2.0"
] | 5 | 2021-08-10T02:31:51.000Z | 2022-02-08T01:12:25.000Z | sentence_transformers/losses/BatchHardTripletLoss.py | zhangxieyang2/sentence-transformers | 87847b86954f92d200fbb4351b0576f4778d9381 | [
"Apache-2.0"
] | 5 | 2021-07-02T04:37:04.000Z | 2021-07-21T00:02:58.000Z | sentence_transformers/losses/BatchHardTripletLoss.py | zhangxieyang2/sentence-transformers | 87847b86954f92d200fbb4351b0576f4778d9381 | [
"Apache-2.0"
] | 5 | 2021-07-04T06:02:02.000Z | 2021-07-21T08:32:10.000Z | import torch
from torch import nn, Tensor
from typing import Union, Tuple, List, Iterable, Dict
from sentence_transformers import util
from sentence_transformers.SentenceTransformer import SentenceTransformer
class BatchHardTripletLossDistanceFunction:
"""
This class defines distance functions, that can be us... | 46.517241 | 162 | 0.684528 | 9,228 | 0.977232 | 0 | 0 | 4,181 | 0.442762 | 0 | 0 | 5,591 | 0.592079 |
db0cd377f76bee16bf9abd7de52027837704b690 | 2,505 | py | Python | wedding/card/route.py | ackneal/wedday | b57b524e3aa237a2568bda4fadb2d5709773c507 | [
"MIT"
] | null | null | null | wedding/card/route.py | ackneal/wedday | b57b524e3aa237a2568bda4fadb2d5709773c507 | [
"MIT"
] | null | null | null | wedding/card/route.py | ackneal/wedday | b57b524e3aa237a2568bda4fadb2d5709773c507 | [
"MIT"
] | null | null | null | from flask import Flask, Blueprint, request, make_response, jsonify
from sqlalchemy.sql.expression import func
from google.cloud import storage
from .card import Cards
from ..functions import valid_param, upload_file
from .. import db
bp = Blueprint('route', __name__, url_prefix = '/api')
@bp.route('/cards')
def geta... | 29.127907 | 91 | 0.602395 | 0 | 0 | 0 | 0 | 2,258 | 0.871478 | 0 | 0 | 490 | 0.189116 |
db0de61b39c2d473b879ae1a407b8e263bd53ec2 | 6,804 | py | Python | mudi/utils.py | getzlab/mudi | eda170119708e59920c23a03834af915ecca24ce | [
"MIT"
] | 1 | 2021-11-04T00:08:00.000Z | 2021-11-04T00:08:00.000Z | mudi/utils.py | getzlab/mudi | eda170119708e59920c23a03834af915ecca24ce | [
"MIT"
] | null | null | null | mudi/utils.py | getzlab/mudi | eda170119708e59920c23a03834af915ecca24ce | [
"MIT"
] | null | null | null | import numpy as np
import h5py
import scipy
import gc
import pandas as pd
import os
import time
import pkg_resources
import scanpy as sc
import scanpy.external as sce
import sys
import scrublet as scr
# ---------------------------------
# Scanpy Helpers
# ---------------------------------
def scanpy_adata_loader(pat... | 36.191489 | 147 | 0.640212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,654 | 0.390065 |
db0e44fa6d9ec7326e7caba29ef74b40e65149d4 | 1,518 | py | Python | src/quacks/mypy.py | ariebovenberg/quacks | 839d307b24f3f37d9a5318c16acb631b9a1153f0 | [
"MIT"
] | 11 | 2021-12-12T20:51:15.000Z | 2022-02-02T12:08:32.000Z | src/quacks/mypy.py | ariebovenberg/quacks | 839d307b24f3f37d9a5318c16acb631b9a1153f0 | [
"MIT"
] | 8 | 2021-12-14T12:53:51.000Z | 2022-03-15T04:29:44.000Z | src/quacks/mypy.py | ariebovenberg/quacks | 839d307b24f3f37d9a5318c16acb631b9a1153f0 | [
"MIT"
] | 1 | 2021-12-15T16:50:34.000Z | 2021-12-15T16:50:34.000Z | from typing import Callable, Optional, Type
from mypy.nodes import AssignmentStmt, NameExpr, Statement, TempNode, Var
from mypy.plugin import ClassDefContext, Plugin
READONLY_DECORATOR_NAME = "quacks.readonly"
# this logic is mostly derived from the dataclasses plugin
def make_statement_readonly(c: ClassDefContext,... | 26.631579 | 77 | 0.667984 | 245 | 0.161397 | 0 | 0 | 0 | 0 | 0 | 0 | 213 | 0.140316 |
db0eabb87d8f110b34f799008d45115ae3494a8a | 470 | py | Python | tests/test_toolbar.py | WilliamMayor/django-mail-panel | 2c41f808a645d5d7bad90510f44e53d29981cf22 | [
"Apache-2.0"
] | null | null | null | tests/test_toolbar.py | WilliamMayor/django-mail-panel | 2c41f808a645d5d7bad90510f44e53d29981cf22 | [
"Apache-2.0"
] | null | null | null | tests/test_toolbar.py | WilliamMayor/django-mail-panel | 2c41f808a645d5d7bad90510f44e53d29981cf22 | [
"Apache-2.0"
] | null | null | null | from .context import *
import unittest
from mail_panel.panels import MailToolbarPanel
class ToolbarSuite(unittest.TestCase):
def test_panel(self):
"""
General 'does it run' test.
"""
p = MailToolbarPanel(None)
assert(p.toolbar is None)
def suite():
suite = unittest.Te... | 21.363636 | 51 | 0.668085 | 194 | 0.412766 | 0 | 0 | 0 | 0 | 0 | 0 | 61 | 0.129787 |
db0fa33383a316fc52554465b3c7c6c0aa5f9ac3 | 8,130 | py | Python | tests/project/operations/operational_types/test_common_functions.py | anamileva/gridpath | e55eacb88ca5e6c034a90b18819e17cbd6f43854 | [
"Apache-2.0"
] | 44 | 2020-10-27T19:05:44.000Z | 2022-03-22T17:17:37.000Z | tests/project/operations/operational_types/test_common_functions.py | anamileva/gridpath | e55eacb88ca5e6c034a90b18819e17cbd6f43854 | [
"Apache-2.0"
] | 67 | 2020-10-08T22:36:53.000Z | 2022-03-22T22:58:33.000Z | tests/project/operations/operational_types/test_common_functions.py | anamileva/gridpath | e55eacb88ca5e6c034a90b18819e17cbd6f43854 | [
"Apache-2.0"
] | 21 | 2020-10-08T23:23:48.000Z | 2022-03-28T01:21:21.000Z | # Copyright 2016-2020 Blue Marble Analytics LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 44.42623 | 79 | 0.605904 | 6,525 | 0.802583 | 0 | 0 | 0 | 0 | 0 | 0 | 3,211 | 0.394957 |
db0fa4a708c3b8da99f0eb3651ee65d3e1405fa0 | 338 | py | Python | top_links.py | judge2020/crossover-viz | 61fef8750f2b64a2e71b9737a3c992f99c47c300 | [
"0BSD"
] | null | null | null | top_links.py | judge2020/crossover-viz | 61fef8750f2b64a2e71b9737a3c992f99c47c300 | [
"0BSD"
] | null | null | null | top_links.py | judge2020/crossover-viz | 61fef8750f2b64a2e71b9737a3c992f99c47c300 | [
"0BSD"
] | null | null | null | from main import extract_data
if __name__ == '__main__':
top = {}
out = extract_data('CrossoverWiki.xml')
for name in out:
for link in name['links']:
w = link['with']
top[w] = top[w] + 1 if w in top else 1
top = dict(reversed(sorted(top.items(), key=lambda item: item[1])... | 28.166667 | 71 | 0.573964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 42 | 0.12426 |
db0fc2a14bd242c50cea5efa838e162798fc3772 | 316 | py | Python | instance/settings.py | isaacjohnwesley/digfont | 0f0a088151e52e972eec04dbc0b8c7fd6a30a52d | [
"MIT"
] | 2 | 2017-01-27T03:22:21.000Z | 2018-10-30T15:26:33.000Z | instance/settings.py | isaacjohnwesley/digfont | 0f0a088151e52e972eec04dbc0b8c7fd6a30a52d | [
"MIT"
] | null | null | null | instance/settings.py | isaacjohnwesley/digfont | 0f0a088151e52e972eec04dbc0b8c7fd6a30a52d | [
"MIT"
] | null | null | null | """
Flask application settings.
"""
import os
DEBUG = True
# Output un-merged files in debug mode.
#ASSETS_DEBUG = DEBUG
SECRET_KEY = os.environ.get('SECRET_KEY', None)
MY_VAR = os.environ.get('MY_VAR', None)
#: Mongodb settings
MONGODB_SETTINGS = {'DB' : 'digfont'}
#: CSRF key
SECRET_KEY = "dig.font.s3cr3t"
| 15.8 | 47 | 0.702532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 175 | 0.553797 |
db116d889b8b1d94133fabaa9ee920a870375f4b | 839 | py | Python | pangram.py | ZorbaTheStrange/pangram | f9fda95f119d328224f21f19690122e36be34482 | [
"MIT"
] | null | null | null | pangram.py | ZorbaTheStrange/pangram | f9fda95f119d328224f21f19690122e36be34482 | [
"MIT"
] | null | null | null | pangram.py | ZorbaTheStrange/pangram | f9fda95f119d328224f21f19690122e36be34482 | [
"MIT"
] | null | null | null | #! /usr/bin/python3
'''
panogram.py - this program recongizes pangrams.
by zorba
'''
import sys
def pangram_check(sentence_or_word):
'''
checks the user input to see if it is a pangram.
'''
letters = set('abcdefghijklmnopqrstuvwxyz')
if sentence_or_word.lower() == 'done':
z
for le... | 19.511628 | 131 | 0.623361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 396 | 0.47199 |
db13d0f32b95cfef64253a43f004918a6c18619d | 232 | py | Python | Chapter-4 Sequence/Dictionary.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | Chapter-4 Sequence/Dictionary.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | Chapter-4 Sequence/Dictionary.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 10 15:31:57 2020
@author: Tarun Jaiswal
"""
dictone = {
"bookname": "Recursion Sutras",
"subject": "Recursion",
"author": "Champak Roy"
}
dicttwo = dict(dictone)
print(dicttwo) | 15.466667 | 35 | 0.633621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 159 | 0.685345 |
db15276b717208ef752639b4aaf944577ef66238 | 1,032 | py | Python | mportal/wsgi_start.py | auyeongwy/mportal | e406baea802093569c90c7206649c5afd9431dab | [
"Apache-2.0"
] | null | null | null | mportal/wsgi_start.py | auyeongwy/mportal | e406baea802093569c90c7206649c5afd9431dab | [
"Apache-2.0"
] | null | null | null | mportal/wsgi_start.py | auyeongwy/mportal | e406baea802093569c90c7206649c5afd9431dab | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Au Yeong Wing Yau
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 34.4 | 74 | 0.774225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 799 | 0.774225 |
db16a58a234af950b25d6e13e770b9afd148413c | 1,252 | py | Python | lecture_04/312_plan_motion_ros_artist.py | farzanehesk/COMPAS-II-FS2022 | 857eb40000f0532d0c04689331eadefd38dce6b7 | [
"MIT"
] | 11 | 2022-01-24T15:07:15.000Z | 2022-03-29T12:58:05.000Z | lecture_04/312_plan_motion_ros_artist.py | farzanehesk/COMPAS-II-FS2022 | 857eb40000f0532d0c04689331eadefd38dce6b7 | [
"MIT"
] | 4 | 2022-03-16T06:06:45.000Z | 2022-03-29T22:59:11.000Z | lecture_04/312_plan_motion_ros_artist.py | farzanehesk/COMPAS-II-FS2022 | 857eb40000f0532d0c04689331eadefd38dce6b7 | [
"MIT"
] | 20 | 2022-03-02T10:36:41.000Z | 2022-03-09T00:12:33.000Z | import math
import time
from compas_fab.backends import RosClient
from compas.artists import Artist
from compas.geometry import Frame
with RosClient("localhost") as client:
robot = client.load_robot(load_geometry=True)
group = robot.main_group_name
frame = Frame((0.4, 0.3, 0.05), (-1, 0, 0), (0, 1, 0))
... | 33.837838 | 112 | 0.713259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 169 | 0.134984 |
db16e37393c0ecb2b013bb3800feb96ec755b22d | 1,306 | py | Python | awxkit/test/cli/test_client.py | vrevelas/awx | 858f43fd2aeccacd3172b1efa44fb37c7a48e92e | [
"Apache-2.0"
] | null | null | null | awxkit/test/cli/test_client.py | vrevelas/awx | 858f43fd2aeccacd3172b1efa44fb37c7a48e92e | [
"Apache-2.0"
] | null | null | null | awxkit/test/cli/test_client.py | vrevelas/awx | 858f43fd2aeccacd3172b1efa44fb37c7a48e92e | [
"Apache-2.0"
] | null | null | null | from io import StringIO
import pytest
from requests.exceptions import ConnectionError
from awxkit.cli import run, CLI
class MockedCLI(CLI):
def fetch_version_root(self):
pass
@property
def v2(self):
return MockedCLI()
@property
def json(self):
return {
'use... | 21.409836 | 56 | 0.608729 | 217 | 0.166156 | 0 | 0 | 953 | 0.729709 | 0 | 0 | 246 | 0.188361 |
db18a54ed6a35015f51619ef8bd59e64ab56a6ea | 10,797 | py | Python | tests/python/pants_test/tasks/test_what_changed.py | areitz/pants | 9bfb3feb0272c05f36e190c9147091b97ee1950d | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/tasks/test_what_changed.py | areitz/pants | 9bfb3feb0272c05f36e190c9147091b97ee1950d | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/tasks/test_what_changed.py | areitz/pants | 9bfb3feb0272c05f36e190c9147091b97ee1950d | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from textwrap import... | 29.662088 | 100 | 0.643605 | 9,446 | 0.874873 | 0 | 0 | 707 | 0.065481 | 0 | 0 | 4,822 | 0.446606 |
db1c1956b75c3a0483a601da0add4f5327ce2ad0 | 364 | py | Python | utils/image_utils.py | novicasarenac/car-racing-rl | 5bb3b2c47fb6ceda3e8f2c149485652da5a079ba | [
"MIT"
] | 10 | 2019-08-08T03:17:39.000Z | 2021-12-15T08:43:29.000Z | utils/image_utils.py | novicasarenac/car-racing-rl | 5bb3b2c47fb6ceda3e8f2c149485652da5a079ba | [
"MIT"
] | 7 | 2019-11-29T04:00:22.000Z | 2022-03-11T23:38:20.000Z | utils/image_utils.py | novicasarenac/car-racing-rl | 5bb3b2c47fb6ceda3e8f2c149485652da5a079ba | [
"MIT"
] | 4 | 2019-11-28T10:14:48.000Z | 2020-04-08T08:10:37.000Z | import PIL
import numpy as np
def to_grayscale(img):
return np.dot(img, [0.299, 0.587, 0.144])
def zero_center(img):
return img - 127.0
def crop(img, bottom=12, left=6, right=6):
height, width = img.shape
return img[0: height - bottom, left: width - right]
def save(img, path):
pil_img = PIL.... | 17.333333 | 55 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
db1c1d0e4cd2adbba4dafd1f97c64d82fddfdf36 | 102 | py | Python | sharing_groups/apps.py | sthagen/misp-hub | 5b528b40796a74dc7e8367d75cb3c84920b87bfb | [
"BSD-3-Clause"
] | 2 | 2020-10-08T18:35:04.000Z | 2020-10-08T18:35:08.000Z | sharing_groups/apps.py | sthagen/misp-hub | 5b528b40796a74dc7e8367d75cb3c84920b87bfb | [
"BSD-3-Clause"
] | null | null | null | sharing_groups/apps.py | sthagen/misp-hub | 5b528b40796a74dc7e8367d75cb3c84920b87bfb | [
"BSD-3-Clause"
] | 1 | 2020-10-08T18:35:17.000Z | 2020-10-08T18:35:17.000Z | from django.apps import AppConfig
class SharingGroupsConfig(AppConfig):
name = 'sharing_groups'
| 17 | 37 | 0.784314 | 65 | 0.637255 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 0.156863 |
db1fd3d38056cafb0f7ff39c5a005804f923571f | 5,310 | py | Python | GoogleCloud/backend.py | ryanjsfx2424/HowToNFTs | f4cff7ad676d272815bd936eb142556f92540a32 | [
"MIT"
] | null | null | null | GoogleCloud/backend.py | ryanjsfx2424/HowToNFTs | f4cff7ad676d272815bd936eb142556f92540a32 | [
"MIT"
] | null | null | null | GoogleCloud/backend.py | ryanjsfx2424/HowToNFTs | f4cff7ad676d272815bd936eb142556f92540a32 | [
"MIT"
] | null | null | null | ## backend.py
"""
The purpose of this script is to continuously monitor the blockchain to
1) determine if a holder aquires or loses an NFT:
2) if they do, generate a new image/movie for the tokens they hold,
3) upload the new image/movie to the hosting service
4) update the metadata file
Repeat :)
(The above ordering ... | 32.378049 | 109 | 0.628625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,632 | 0.495669 |
db20e9e55635779f1f3c32e48206263757ae91d0 | 10,875 | py | Python | dependencies/pyffi/formats/tga/__init__.py | korri123/fnv-blender-niftools-addon | ce8733e011c7d74c79be265832e1b06e85faf5ee | [
"BSD-3-Clause"
] | 4 | 2021-09-27T09:58:44.000Z | 2022-02-05T16:12:28.000Z | io_scene_niftools_updater/backup/dependencies/pyffi/formats/tga/__init__.py | korri123/fnv-blender-niftools-addon | ce8733e011c7d74c79be265832e1b06e85faf5ee | [
"BSD-3-Clause"
] | 5 | 2019-11-10T16:20:09.000Z | 2019-12-02T14:23:58.000Z | .venv/Lib/site-packages/pyffi/formats/tga/__init__.py | ndaley7/BodySlide-Group-Generator | 3ed7b78c5f5ccec103b6bf06bc24398cfb6ad014 | [
"BSD-3-Clause"
] | null | null | null | """
:mod:`pyffi.formats.tga` --- Targa (.tga)
=========================================
Implementation
--------------
.. autoclass:: TgaFormat
:show-inheritance:
:members:
Regression tests
----------------
Read a TGA file
^^^^^^^^^^^^^^^
>>> # check and read tga file
>>> import os
>>> from os.path import dir... | 34.090909 | 80 | 0.57269 | 7,168 | 0.659126 | 614 | 0.05646 | 0 | 0 | 0 | 0 | 5,357 | 0.492598 |
db2348f24a291f4c0fb84c5876a92a0022f59eed | 355 | py | Python | python/push.py | swallowstalker/postopush | 6ec7e791aff1e3d868711d62e6c702a231bc1d65 | [
"MIT"
] | 1 | 2020-02-11T03:41:49.000Z | 2020-02-11T03:41:49.000Z | python/push.py | swallowstalker/postopush | 6ec7e791aff1e3d868711d62e6c702a231bc1d65 | [
"MIT"
] | null | null | null | python/push.py | swallowstalker/postopush | 6ec7e791aff1e3d868711d62e6c702a231bc1d65 | [
"MIT"
] | null | null | null | import telegram
import os
def main():
token = os.getenv("TOKEN", None)
message = os.getenv("MESSAGE", "No message, please set MESSAGE env")
chat_id = os.getenv("CHAT_ID", None)
bot = telegram.Bot(token=token)
bot.send_message(chat_id=chat_id, text=message, parse_mode=telegram.ParseMode.HTML)
if... | 23.666667 | 87 | 0.687324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 71 | 0.2 |
db23585c3e9e1de8759f993492930d5a53b54101 | 4,309 | py | Python | advent-of-code-2018/day 13/main.py | gikf/advent-of-code | 923b026ce87121b73093554734746c2ecb17c5e2 | [
"MIT"
] | null | null | null | advent-of-code-2018/day 13/main.py | gikf/advent-of-code | 923b026ce87121b73093554734746c2ecb17c5e2 | [
"MIT"
] | null | null | null | advent-of-code-2018/day 13/main.py | gikf/advent-of-code | 923b026ce87121b73093554734746c2ecb17c5e2 | [
"MIT"
] | null | null | null | """Advent of Code 2018 Day 13."""
from copy import deepcopy
CARTS = '<>^v'
INTERSECTION = '+'
CURVES = '\\/'
cart_to_direction = {
'<': 180,
'^': 90,
'>': 0,
'v': 270,
}
direction_to_move = {
0: (0, 1),
90: (-1, 0),
180: (0, -1),
270: (1, 0),
}
direction_to_cart = {
0: '>',
90:... | 26.115152 | 77 | 0.598747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 754 | 0.174983 |
db24a982814e1d245a07e054f71ca678690fe6ad | 13,037 | py | Python | goopylib/applications/custom_ease.py | YuvrajThorat/goopylib | b6bc593b7bcc92498a507f34b2190365a0ac51e7 | [
"MIT"
] | null | null | null | goopylib/applications/custom_ease.py | YuvrajThorat/goopylib | b6bc593b7bcc92498a507f34b2190365a0ac51e7 | [
"MIT"
] | null | null | null | goopylib/applications/custom_ease.py | YuvrajThorat/goopylib | b6bc593b7bcc92498a507f34b2190365a0ac51e7 | [
"MIT"
] | null | null | null | from goopylib.imports import *
from pathlib import Path as pathlib_Path
# I kinda wanted to scrap this, it wasn't that good.
def create_custom_ease():
window = Window(title="goopylib: Create Custom Ease", width=get_screen_size()[1] * 0.7,
height=get_screen_size()[1] * 0.7, autoflush=False, bk_c... | 49.570342 | 120 | 0.535246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,993 | 0.152873 |
db26ca941f83e142751cfd4f2744ef8039848b25 | 537 | py | Python | app/lib/duplication_check/train.py | WHUT-XGP/ASoulCnki | 98f29532e43e73f8e364d55b284558de5803b8b9 | [
"Apache-2.0"
] | null | null | null | app/lib/duplication_check/train.py | WHUT-XGP/ASoulCnki | 98f29532e43e73f8e364d55b284558de5803b8b9 | [
"Apache-2.0"
] | null | null | null | app/lib/duplication_check/train.py | WHUT-XGP/ASoulCnki | 98f29532e43e73f8e364d55b284558de5803b8b9 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
Filename :train.py
Description :获取小作文摘要
Time :2021/06/22 15:21:08
Author :hwa
Version :1.0
"""
from app.lib.duplication_check.reply_database import ReplyDatabase
import time
def train_data():
start_time = time.time()
db = ReplyDatabase.... | 23.347826 | 70 | 0.646182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 253 | 0.459165 |
db28a45f5705fff1d415e5578ed431780d73980b | 5,837 | py | Python | buildscripts/task_generation/evg_config_builder.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | buildscripts/task_generation/evg_config_builder.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | buildscripts/task_generation/evg_config_builder.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | """Builder for generating evergreen configuration."""
from threading import Lock
from typing import Set, List, Dict
import inject
from shrub.v2 import ShrubProject, BuildVariant, ExistingTask, Task
from buildscripts.patch_builds.task_generation import validate_task_generation_limit
from buildscripts.task_generation.c... | 46.325397 | 99 | 0.716807 | 4,912 | 0.841528 | 0 | 0 | 1,015 | 0.173891 | 0 | 0 | 2,002 | 0.342984 |
db299a97d65e80dbbfa712b50525b811276c7bff | 4,424 | py | Python | test/unit/vint/ast/plugin/scope_plugin/stub_node.py | mosheavni/vint | 9078dd626415cfe37ddaf03032e714bbaca8b336 | [
"MIT"
] | 538 | 2015-01-03T18:54:53.000Z | 2020-01-11T01:34:51.000Z | test/unit/vint/ast/plugin/scope_plugin/stub_node.py | mosheavni/vint | 9078dd626415cfe37ddaf03032e714bbaca8b336 | [
"MIT"
] | 235 | 2015-01-01T06:20:01.000Z | 2020-01-17T11:32:39.000Z | test/unit/vint/ast/plugin/scope_plugin/stub_node.py | mosheavni/vint | 9078dd626415cfe37ddaf03032e714bbaca8b336 | [
"MIT"
] | 43 | 2015-01-23T16:59:49.000Z | 2019-12-27T10:56:12.000Z | from vint.ast.node_type import NodeType
from vint.ast.plugin.scope_plugin.identifier_attribute import (
IDENTIFIER_ATTRIBUTE,
IDENTIFIER_ATTRIBUTE_DYNAMIC_FLAG,
IDENTIFIER_ATTRIBUTE_DECLARATION_FLAG,
IDENTIFIER_ATTRIBUTE_MEMBER_FLAG,
IDENTIFIER_ATTRIBUTE_FUNCTION_FLAG,
IDENTIFIER_ATTRIBUTE_AUTOL... | 35.96748 | 82 | 0.667043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 178 | 0.040235 |
db29c33820407f3d84d5b4458a06a85d146e75c7 | 1,130 | py | Python | core/analyser.py | hryu/cpu_usage_analyser | bc870c4fd3be873033a7f43612c1a0379d5bf419 | [
"MIT"
] | null | null | null | core/analyser.py | hryu/cpu_usage_analyser | bc870c4fd3be873033a7f43612c1a0379d5bf419 | [
"MIT"
] | null | null | null | core/analyser.py | hryu/cpu_usage_analyser | bc870c4fd3be873033a7f43612c1a0379d5bf419 | [
"MIT"
] | null | null | null | class Analyser:
def __init__(self, callbacks, notifiers, state):
self.cbs = callbacks
self.state = state
self.notifiers = notifiers
def on_begin_analyse(self, timestamp):
pass
def on_end_analyse(self, timestamp):
pass
def analyse(self, event):
event_nam... | 32.285714 | 60 | 0.604425 | 1,129 | 0.999115 | 0 | 0 | 0 | 0 | 0 | 0 | 130 | 0.115044 |
db2cccb8706be958cee0c18ee9e554aac314a720 | 348 | py | Python | grpr2-ch/maci/policies/__init__.py | saarcohen30/GrPR2-CH | ba8c32f5b4caeebfc93ca30fa1fcc8223176183f | [
"MIT"
] | null | null | null | grpr2-ch/maci/policies/__init__.py | saarcohen30/GrPR2-CH | ba8c32f5b4caeebfc93ca30fa1fcc8223176183f | [
"MIT"
] | null | null | null | grpr2-ch/maci/policies/__init__.py | saarcohen30/GrPR2-CH | ba8c32f5b4caeebfc93ca30fa1fcc8223176183f | [
"MIT"
] | null | null | null | from .nn_policy import NNPolicy
# from .gmm import GMMPolicy
# from .latent_space_policy import LatentSpacePolicy
from .uniform_policy import UniformPolicy
# from .gaussian_policy import GaussianPolicy
from .stochastic_policy import StochasticNNPolicy, StochasticNNConditionalPolicy
from .deterministic_policy impo... | 38.666667 | 81 | 0.850575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 128 | 0.367816 |
db2d0faef6bb46b40a8c415250b0a2a6b57926d0 | 3,841 | py | Python | sugarpidisplay/sugarpiconfig/views.py | szpaku80/SugarPiDisplay | 793c288afaad1b1b6921b0d29ee0e6a537e42384 | [
"MIT"
] | 1 | 2022-02-12T20:39:20.000Z | 2022-02-12T20:39:20.000Z | sugarpidisplay/sugarpiconfig/views.py | szpaku80/SugarPiDisplay | 793c288afaad1b1b6921b0d29ee0e6a537e42384 | [
"MIT"
] | null | null | null | sugarpidisplay/sugarpiconfig/views.py | szpaku80/SugarPiDisplay | 793c288afaad1b1b6921b0d29ee0e6a537e42384 | [
"MIT"
] | null | null | null | """
Routes and views for the flask application.
"""
import os
import json
from flask import Flask, redirect, request, render_template, flash
from pathlib import Path
from flask_wtf import FlaskForm
from wtforms import StringField,SelectField,PasswordField,BooleanField
from wtforms.validators import InputRequired,Valida... | 35.564815 | 93 | 0.664931 | 587 | 0.152825 | 0 | 0 | 627 | 0.163239 | 0 | 0 | 916 | 0.23848 |
db2d5607d06728d0c91675bdab230c329ed3e400 | 2,001 | py | Python | progressao_aritmeticav3.py | eduardobaltazarmarfim/PythonC | 8e44b4f191582c73cca6df98120ab142145c4ba1 | [
"MIT"
] | null | null | null | progressao_aritmeticav3.py | eduardobaltazarmarfim/PythonC | 8e44b4f191582c73cca6df98120ab142145c4ba1 | [
"MIT"
] | null | null | null | progressao_aritmeticav3.py | eduardobaltazarmarfim/PythonC | 8e44b4f191582c73cca6df98120ab142145c4ba1 | [
"MIT"
] | null | null | null | def retorno():
resp=input('Deseja executar o programa novamente?[s/n] ')
if(resp=='S' or resp=='s'):
verificar()
else:
print('Processo finalizado com sucesso!')
pass
def cabecalho(titulo):
print('-'*30)
print(' '*9+titulo+' '*15)
print('-'*30)
pass
def mensage... | 17.4 | 91 | 0.410795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 427 | 0.212861 |
db2d89c006750b429af0eb85221902cff310ad5b | 3,278 | py | Python | policies/plc_migrate_default.py | PaloAltoNetworks/pcs-migration-management | 766c8c861befa92e593b23ad6d248e33f62054bb | [
"ISC"
] | 1 | 2022-03-17T12:51:45.000Z | 2022-03-17T12:51:45.000Z | policies/plc_migrate_default.py | PaloAltoNetworks/pcs-migration-management | 766c8c861befa92e593b23ad6d248e33f62054bb | [
"ISC"
] | 2 | 2021-11-03T15:34:40.000Z | 2021-12-14T19:50:20.000Z | policies/plc_migrate_default.py | PaloAltoNetworks/pcs-migration-management | 766c8c861befa92e593b23ad6d248e33f62054bb | [
"ISC"
] | 4 | 2021-11-09T17:57:01.000Z | 2022-01-24T17:41:21.000Z | from policies import plc_get, plc_add, plc_update
from sdk.color_print import c_print
from tqdm import tqdm
def migrate_builtin_policies(tenant_sessions: list, logger):
'''
Updates the default/built in policies of all clone tenants so they are the same as the
source tenant. Default policies can not be adde... | 46.169014 | 148 | 0.57352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 809 | 0.246797 |
db2e05e89e1db86e733714d3d045b8d52021205c | 8,158 | py | Python | MAIN VERSION 2.py | HorridHanu/Notepad-Python | 5c40ddf0cc01b88387bf3052117581cba6e8ab6f | [
"Apache-2.0"
] | 1 | 2021-07-03T09:16:26.000Z | 2021-07-03T09:16:26.000Z | MAIN VERSION 2.py | HorridHanu/Notepad-Python | 5c40ddf0cc01b88387bf3052117581cba6e8ab6f | [
"Apache-2.0"
] | null | null | null | MAIN VERSION 2.py | HorridHanu/Notepad-Python | 5c40ddf0cc01b88387bf3052117581cba6e8ab6f | [
"Apache-2.0"
] | null | null | null |
########################################################################################
########################################################################################
## # CODE LANGUAGE IS PYHTON! ## ## ##
## # DATE: 1-JULY-2021 ## ## ... | 28.131034 | 95 | 0.539103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,011 | 0.491665 |
db308acc7784941bed9244b19f0ab77519bcb972 | 512 | py | Python | unfollow_parfum.py | AntonPukhonin/InstaPy | 0c480474ec39e174fa4256b48bc25bc4ecf7b6aa | [
"MIT"
] | null | null | null | unfollow_parfum.py | AntonPukhonin/InstaPy | 0c480474ec39e174fa4256b48bc25bc4ecf7b6aa | [
"MIT"
] | null | null | null | unfollow_parfum.py | AntonPukhonin/InstaPy | 0c480474ec39e174fa4256b48bc25bc4ecf7b6aa | [
"MIT"
] | null | null | null | from instapy import InstaPy
#insta_username = 'antonpuhonin'
#insta_password = 'Bulbazavr36'
insta_username = 'tonparfums'
insta_password = 'ov9AN6NlnV'
try:
session = InstaPy(username=insta_username,
password=insta_password,
headless_browser=True,
... | 24.380952 | 122 | 0.667969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 93 | 0.181641 |
db30f2130ff4ed72860f0513ddb8d069dd812ef8 | 1,462 | py | Python | portal/grading/serializers.py | LDSSA/portal | 9561da1e262678fe68dcf51c66007c0fb13eb51a | [
"MIT"
] | 2 | 2020-11-09T03:48:36.000Z | 2021-07-02T14:30:09.000Z | portal/grading/serializers.py | LDSSA/portal | 9561da1e262678fe68dcf51c66007c0fb13eb51a | [
"MIT"
] | 132 | 2020-04-25T15:57:56.000Z | 2022-03-10T19:15:51.000Z | portal/grading/serializers.py | LDSSA/portal | 9561da1e262678fe68dcf51c66007c0fb13eb51a | [
"MIT"
] | 1 | 2020-10-24T16:15:57.000Z | 2020-10-24T16:15:57.000Z | from rest_framework import serializers
from portal.academy import models
from portal.applications.models import Submission, Challenge
class GradeSerializer(serializers.ModelSerializer):
notebook = serializers.FileField(source="feedback")
class Meta:
model = models.Grade
fields = (
... | 24.366667 | 64 | 0.613543 | 1,315 | 0.899453 | 0 | 0 | 0 | 0 | 0 | 0 | 119 | 0.081395 |
db3364ee622377b95d22e40cf02ce787e7812d16 | 323 | py | Python | Funcoes/ex106-sistemaInterativoAjuda.py | ascaniopy/python | 6d8892b7b9ff803b7422a61e68a383ec6ac7d62d | [
"MIT"
] | null | null | null | Funcoes/ex106-sistemaInterativoAjuda.py | ascaniopy/python | 6d8892b7b9ff803b7422a61e68a383ec6ac7d62d | [
"MIT"
] | null | null | null | Funcoes/ex106-sistemaInterativoAjuda.py | ascaniopy/python | 6d8892b7b9ff803b7422a61e68a383ec6ac7d62d | [
"MIT"
] | null | null | null | from time import sleep
c = ('\033[m', # 0 - Sem cores
'\033[0;30;41m', # 1 - Vermelho
'\033[0;30;42m', # 2 - Verde
'\033[0;30;43m', # 3 - Amarelo
'\033[0;30;44m', # 4 - Azul
'\033[0;30;45m', # 5 - Roxo
'\033[0;30m' # 6 - Branco
)
#Programa princip... | 19 | 40 | 0.439628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 199 | 0.616099 |
db3369b101ea183c503c1fa561b47c91b9100d56 | 36 | py | Python | deeptrack/extras/__init__.py | Margon01/DeepTrack-2.0_old | f4f4abc89ab1f63aeb4722f84dcfb93189c57ccf | [
"MIT"
] | 65 | 2020-04-29T01:06:01.000Z | 2022-03-28T12:44:02.000Z | deeptrack/extras/__init__.py | Margon01/DeepTrack-2.0_old | f4f4abc89ab1f63aeb4722f84dcfb93189c57ccf | [
"MIT"
] | 41 | 2020-04-20T16:09:07.000Z | 2022-03-29T15:40:08.000Z | deeptrack/extras/__init__.py | Margon01/DeepTrack-2.0_old | f4f4abc89ab1f63aeb4722f84dcfb93189c57ccf | [
"MIT"
] | 31 | 2020-04-27T18:04:06.000Z | 2022-03-18T17:24:50.000Z | from . import datasets, radialcenter | 36 | 36 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
db33adbcb92391813fa24af06e3df16ea1f77a19 | 236 | py | Python | pyvisdk/enums/virtual_machine_ht_sharing.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null | pyvisdk/enums/virtual_machine_ht_sharing.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null | pyvisdk/enums/virtual_machine_ht_sharing.py | Infinidat/pyvisdk | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | [
"MIT"
] | null | null | null |
########################################
# Automatically generated, do not edit.
########################################
from pyvisdk.thirdparty import Enum
VirtualMachineHtSharing = Enum(
'any',
'internal',
'none',
)
| 15.733333 | 40 | 0.440678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 140 | 0.59322 |
db33d4b02c61194e50c6a9e8e0140a09b33f011f | 1,710 | py | Python | reo/migrations/0118_auto_20210715_2148.py | NREL/REopt_API | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 7 | 2022-01-29T12:10:10.000Z | 2022-03-28T13:45:20.000Z | reo/migrations/0118_auto_20210715_2148.py | NREL/reopt_api | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 12 | 2022-02-01T18:23:18.000Z | 2022-03-31T17:22:17.000Z | reo/migrations/0118_auto_20210715_2148.py | NREL/REopt_API | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 3 | 2022-02-08T19:44:40.000Z | 2022-03-12T11:05:36.000Z | # Generated by Django 3.1.12 on 2021-07-15 21:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reo', '0117_auto_20210715_2122'),
]
operations = [
migrations.AddField(
model_name='sitemodel',
name='lifetime_emis... | 31.666667 | 59 | 0.588304 | 1,616 | 0.945029 | 0 | 0 | 0 | 0 | 0 | 0 | 406 | 0.237427 |
db34a67ee55a1e9b0a17aba6120305fef0d0c936 | 16,287 | py | Python | bpy_lambda/2.78/scripts/addons_contrib/io_scene_cod/__init__.py | resultant-gamedev/bpy_lambda | c8cf46c10c69e74a0892b621d76c62edaa5b04bc | [
"MIT"
] | null | null | null | bpy_lambda/2.78/scripts/addons_contrib/io_scene_cod/__init__.py | resultant-gamedev/bpy_lambda | c8cf46c10c69e74a0892b621d76c62edaa5b04bc | [
"MIT"
] | null | null | null | bpy_lambda/2.78/scripts/addons_contrib/io_scene_cod/__init__.py | resultant-gamedev/bpy_lambda | c8cf46c10c69e74a0892b621d76c62edaa5b04bc | [
"MIT"
] | 1 | 2019-11-24T18:43:42.000Z | 2019-11-24T18:43:42.000Z | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 distrib... | 34.144654 | 151 | 0.647203 | 12,750 | 0.782833 | 0 | 0 | 252 | 0.015472 | 0 | 0 | 6,742 | 0.41395 |
db359edbcc421125b398c8492ccfbe1df5e59aa8 | 771 | py | Python | pynpact/tests/steps/test_extract.py | NProfileAnalysisComputationalTool/npact | d4495f5cba2a936f2be2f2c821edd5429d1a58da | [
"BSD-3-Clause"
] | 2 | 2015-09-18T02:01:19.000Z | 2021-09-03T18:40:59.000Z | pynpact/tests/steps/test_extract.py | NProfileAnalysisComputationalTool/npact | d4495f5cba2a936f2be2f2c821edd5429d1a58da | [
"BSD-3-Clause"
] | null | null | null | pynpact/tests/steps/test_extract.py | NProfileAnalysisComputationalTool/npact | d4495f5cba2a936f2be2f2c821edd5429d1a58da | [
"BSD-3-Clause"
] | 1 | 2015-09-25T18:58:21.000Z | 2015-09-25T18:58:21.000Z | import os.path
import pytest
import py
from pynpact.steps import extract
def test_binfile_exists():
assert extract.BIN
assert os.path.exists(extract.BIN)
def test_plan(gbkconfig, executor):
extract.plan(gbkconfig, executor)
filename = gbkconfig[extract.OUTPUTKEY]
assert filename
p = py.path... | 23.363636 | 47 | 0.713359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 80 | 0.103761 |
db3607c58d0cde5c1aa1bfb4ceddd2fc24ac1f1e | 16,994 | py | Python | dl_training/core.py | Duplums/SMLvsDL | b285717bd8d8e832b4bc9e2b42d18bd96b628def | [
"MIT"
] | null | null | null | dl_training/core.py | Duplums/SMLvsDL | b285717bd8d8e832b4bc9e2b42d18bd96b628def | [
"MIT"
] | null | null | null | dl_training/core.py | Duplums/SMLvsDL | b285717bd8d8e832b4bc9e2b42d18bd96b628def | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
##########################################################################
# NSAp - Copyright (C) CEA, 2019
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
#... | 41.550122 | 114 | 0.530658 | 16,140 | 0.949747 | 0 | 0 | 0 | 0 | 0 | 0 | 5,352 | 0.314935 |
db36254aae8d66e15ff58a16dc04f7e0fdb0d51b | 865 | py | Python | python/two_pointers/1004_max_consecutive_ones_iii.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | 6 | 2019-07-15T13:23:57.000Z | 2020-01-22T03:12:01.000Z | python/two_pointers/1004_max_consecutive_ones_iii.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | null | null | null | python/two_pointers/1004_max_consecutive_ones_iii.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | 1 | 2019-07-24T02:15:31.000Z | 2019-07-24T02:15:31.000Z | from collections import deque
class Solution(object):
def longestOnes(self, A, K):
"""
:type A: List[int]
:type K: int
:rtype: int
"""
start, res = 0, 0
zeros = deque()
for i in range(len(A)):
if A[i] == 0:
zeros.append(i)... | 27.03125 | 69 | 0.419653 | 516 | 0.596532 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 0.095954 |
db3658941378a7367cc8947a67be394b0c932596 | 3,000 | py | Python | student_files/lap_times_db.py | jstucken/DET-Python-Anki-Overdrive-v1-1 | 74cfcd9ea533cc0127fa2b8bd4ed26400da8a21b | [
"MIT"
] | null | null | null | student_files/lap_times_db.py | jstucken/DET-Python-Anki-Overdrive-v1-1 | 74cfcd9ea533cc0127fa2b8bd4ed26400da8a21b | [
"MIT"
] | null | null | null | student_files/lap_times_db.py | jstucken/DET-Python-Anki-Overdrive-v1-1 | 74cfcd9ea533cc0127fa2b8bd4ed26400da8a21b | [
"MIT"
] | null | null | null | #
# This script allows the user to control an Anki car using Python
# To control multiple cars at once, open a seperate Command Line Window for each car
# and call this script with the approriate car mac address.
# This script attempts to save lap times into local mysql db running on the pi
# Author: jstucken
#... | 28.037383 | 87 | 0.606333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,333 | 0.444333 |
db377a3b2e18c647ed0d195a162511f6c719f4a5 | 9,992 | py | Python | flatsat/opensatkit/cfs/apps/adcs_io/adcs-drivers/cubewheel-driver/test/code.py | cromulencellc/hackasat-final-2021 | d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac | [
"MIT"
] | 4 | 2022-02-25T05:45:27.000Z | 2022-03-10T01:05:27.000Z | flatsat/opensatkit/cfs/apps/adcs_io/adcs-drivers/cubewheel-driver/test/code.py | cromulencellc/hackasat-final-2021 | d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac | [
"MIT"
] | null | null | null | flatsat/opensatkit/cfs/apps/adcs_io/adcs-drivers/cubewheel-driver/test/code.py | cromulencellc/hackasat-final-2021 | d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac | [
"MIT"
] | 2 | 2022-03-02T02:14:16.000Z | 2022-03-05T07:36:18.000Z | import board
from i2cperipheral import I2CPeripheral
from analogio import AnalogOut
from digitalio import DigitalInOut, Direction, Pull
import struct
import math
import time
regs = [0] * 16
index = 0
i2c_addr = 0x68
frame_id = 0
motor_control_mode = 0
backup_mode = 0
motor_switch_state = 0
hall_switch_state = 0
enc... | 46.910798 | 214 | 0.522218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,127 | 0.21287 |
db37c14354deeb12104130ebc747684e2912a561 | 360 | py | Python | constants.py | tooreht/airstripmap | 7a65e67e417870c6853fd1adb848cf91d724f566 | [
"MIT"
] | null | null | null | constants.py | tooreht/airstripmap | 7a65e67e417870c6853fd1adb848cf91d724f566 | [
"MIT"
] | null | null | null | constants.py | tooreht/airstripmap | 7a65e67e417870c6853fd1adb848cf91d724f566 | [
"MIT"
] | null | null | null | GOV_AIRPORTS = {
"Antananarivo/Ivato": "big",
"Antsiranana/Diego": "small",
"Fianarantsoa": "small",
"Tolagnaro/Ft. Dauphin": "small",
"Mahajanga": "medium",
"Mananjary": "small",
"Nosy Be": "medium",
"Morondava": "small",
"Sainte Marie": "small",
"Sambava": "small",
"Toamasi... | 24 | 37 | 0.561111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 245 | 0.680556 |
db399ce2f0303a23e925d9d8085ddcee798d396a | 608 | py | Python | practical_0/fibonacci.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | practical_0/fibonacci.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | practical_0/fibonacci.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | def fibonacci(n):
fibonacci = np.zeros(10, dtype=np.int32)
fibonacci_pow = np.zeros(10, dtype=np.int32)
fibonacci[0] = 0
fibonacci[1] = 1
for i in np.arange(2, 10):
fibonacci[i] = fibonacci[i - 1] + fibonacci[i - 2]
fibonacci[i] = int(fibonacci[i])
print(fibonacci)
for i in np.arange(10):
fibonacci_pow[i] ... | 30.4 | 80 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 32 | 0.052632 |
db3a4d55930ad8686d2de82e1838a1ca79a144ec | 24,800 | py | Python | UW_System/UW_System/UW_System/spiders/uw_system.py | Nouldine/MyCrawlerSystem | 7bba8ba3ec76e10f70a35700602812ee6f039b63 | [
"MIT"
] | null | null | null | UW_System/UW_System/UW_System/spiders/uw_system.py | Nouldine/MyCrawlerSystem | 7bba8ba3ec76e10f70a35700602812ee6f039b63 | [
"MIT"
] | null | null | null | UW_System/UW_System/UW_System/spiders/uw_system.py | Nouldine/MyCrawlerSystem | 7bba8ba3ec76e10f70a35700602812ee6f039b63 | [
"MIT"
] | null | null | null |
from scrapy import Spider
from scrapy.spiders import CrawlSpider, Rule
from scrapy.selector import Selector
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.linkextractors import LinkExtractor
import scrapy
from scrapy.spidermiddlewares... | 90.510949 | 303 | 0.798185 | 24,240 | 0.977419 | 225 | 0.009073 | 0 | 0 | 0 | 0 | 20,166 | 0.813145 |
db3b169862361f20c4e85e1f3babf59d22b794c5 | 10,622 | py | Python | src/lib/GL/glutbindings/glutbind.py | kokizzu/v8cgi | eafd3bd7a5dd1d60e2f1483701a52e7ac0ae0eba | [
"BSD-3-Clause"
] | 4 | 2016-01-31T08:49:35.000Z | 2021-07-12T17:31:42.000Z | src/lib/GL/glutbindings/glutbind.py | kokizzu/v8cgi | eafd3bd7a5dd1d60e2f1483701a52e7ac0ae0eba | [
"BSD-3-Clause"
] | null | null | null | src/lib/GL/glutbindings/glutbind.py | kokizzu/v8cgi | eafd3bd7a5dd1d60e2f1483701a52e7ac0ae0eba | [
"BSD-3-Clause"
] | 1 | 2021-06-03T22:51:17.000Z | 2021-06-03T22:51:17.000Z | import sys
import re
PATH_GLUT = 'glut.h'
FILE_GLUT = 'glutbind.cpp'
TEMPLATES = ['glutInit', 'glutTimerFunc']
def main():
"""
Still some things have to be hand-made, like
changing argv pargc values in the glutInit method definition
Also change the TimerFunc method with some magic.
"""
make_... | 33.828025 | 188 | 0.553568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,278 | 0.402749 |
e1d196f613c2a1139ba07be80fda44073fa5c141 | 1,602 | py | Python | clase_caballo.py | DorianAlbertoIbanezNanguelu/concurrencia-caballos | 91b7f4818505183bd38923bc5b744fc04e83c2f3 | [
"MIT"
] | null | null | null | clase_caballo.py | DorianAlbertoIbanezNanguelu/concurrencia-caballos | 91b7f4818505183bd38923bc5b744fc04e83c2f3 | [
"MIT"
] | null | null | null | clase_caballo.py | DorianAlbertoIbanezNanguelu/concurrencia-caballos | 91b7f4818505183bd38923bc5b744fc04e83c2f3 | [
"MIT"
] | null | null | null | import threading
import time
import random
from multiprocessing.pool import ThreadPool
from PyQt5 import QtCore, QtGui, QtWidgets
bandera = False
val1 = ""
msg = 'Caballo ganador es: {}'
# Clase Caballo
class caballo(threading.Thread):
def __init__(self, num, b1,resultado):
global val... | 22.25 | 101 | 0.558052 | 1,379 | 0.860262 | 0 | 0 | 0 | 0 | 0 | 0 | 190 | 0.118528 |
e1d33fe58f921e97b404a9c643f4793d56cc9818 | 10,353 | py | Python | vwo/api/track.py | wingify/vwo-python-sdk | 8b8e798a16c43012ca2c6c6c85dde66f4f3cb6a5 | [
"Apache-2.0"
] | 14 | 2019-08-06T06:57:46.000Z | 2022-01-05T13:27:50.000Z | vwo/api/track.py | wingify/vwo-python-sdk | 8b8e798a16c43012ca2c6c6c85dde66f4f3cb6a5 | [
"Apache-2.0"
] | 3 | 2019-08-19T10:29:17.000Z | 2021-09-16T15:59:38.000Z | vwo/api/track.py | wingify/vwo-python-sdk | 8b8e798a16c43012ca2c6c6c85dde66f4f3cb6a5 | [
"Apache-2.0"
] | 10 | 2019-08-08T12:38:50.000Z | 2021-09-14T11:35:00.000Z | # Copyright 2019-2021 Wingify Software Pvt. Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 40.127907 | 120 | 0.691297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,283 | 0.317106 |
e1d379ffe45c72193de30757e4bad02874d4385a | 2,687 | py | Python | iMessSpam.py | fabiopigi/iMessageSpam | 4d1984f5286f5cf0229d414470a4dc60e5ba12d2 | [
"MIT"
] | null | null | null | iMessSpam.py | fabiopigi/iMessageSpam | 4d1984f5286f5cf0229d414470a4dc60e5ba12d2 | [
"MIT"
] | null | null | null | iMessSpam.py | fabiopigi/iMessageSpam | 4d1984f5286f5cf0229d414470a4dc60e5ba12d2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#import some dope
import sys
import os
import re
import time
from random import randrange
from itertools import repeat
numbers = {
'adam' :"+41111111111",
'bob' :"+41222222222",
'chris' :"+41333333333",
'dave' :"+41444444444",
}
print "Gespeicherte Empfänger: "
for name in numbers:
... | 23.163793 | 175 | 0.628582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,056 | 0.391982 |
e1d4132df41823b278230500d5a9366ca4662b08 | 2,582 | py | Python | mesh_to_tet.py | NVlabs/deformable_object_grasping | c39147c6ce525e90512f54c3c5386903a0e7f401 | [
"MIT"
] | 30 | 2020-12-18T22:05:10.000Z | 2021-09-27T23:45:18.000Z | mesh_to_tet.py | NVlabs/DefGraspSim | e6c1a9760ded188e6986cc49d0298a2c8803830d | [
"MIT"
] | 2 | 2021-12-09T18:05:22.000Z | 2022-03-20T08:26:04.000Z | mesh_to_tet.py | NVlabs/deformable_object_grasping | c39147c6ce525e90512f54c3c5386903a0e7f401 | [
"MIT"
] | 7 | 2021-01-16T06:23:02.000Z | 2021-09-02T16:32:19.000Z | # Copyright (c) 2020 NVIDIA Corporation
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, d... | 40.984127 | 78 | 0.690937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,411 | 0.546476 |
e1d45c9d42dd76322a265a56bb903e40fa748ffe | 3,601 | py | Python | tests/policies_tests/test_deterministic_policy.py | xinyuewang1/chainerrl | 49425d09cb0749968f4e364e281670e752a46791 | [
"MIT"
] | 2 | 2020-05-20T06:15:20.000Z | 2020-05-20T06:15:27.000Z | tests/policies_tests/test_deterministic_policy.py | WhenTheyCry96/chainerrl | 0f32aae2855dbb6288ae628be6271739ced6c42c | [
"MIT"
] | null | null | null | tests/policies_tests/test_deterministic_policy.py | WhenTheyCry96/chainerrl | 0f32aae2855dbb6288ae628be6271739ced6c42c | [
"MIT"
] | 1 | 2019-08-08T19:13:53.000Z | 2019-08-08T19:13:53.000Z | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases() # NOQA
import unittest
import chainer
import chainer.functions as ... | 33.971698 | 75 | 0.608442 | 1,840 | 0.510969 | 0 | 0 | 3,178 | 0.882533 | 0 | 0 | 590 | 0.163843 |
e1d5174f8289f91757ffb47b8ef0788990d1f6b1 | 33,946 | py | Python | freshmaker/handlers/botas/botas_shipped_advisory.py | mulaievaRH/freshmaker | 809b435d7cab1907eb74ecd898693835a92db9d8 | [
"MIT"
] | 5 | 2020-06-17T11:29:16.000Z | 2022-03-24T07:20:16.000Z | freshmaker/handlers/botas/botas_shipped_advisory.py | mulaievaRH/freshmaker | 809b435d7cab1907eb74ecd898693835a92db9d8 | [
"MIT"
] | 96 | 2020-06-29T15:01:23.000Z | 2022-03-30T08:07:06.000Z | freshmaker/handlers/botas/botas_shipped_advisory.py | mulaievaRH/freshmaker | 809b435d7cab1907eb74ecd898693835a92db9d8 | [
"MIT"
] | 20 | 2020-06-16T01:30:08.000Z | 2022-02-19T15:34:55.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2020 Red Hat, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modi... | 44.607096 | 116 | 0.604018 | 32,227 | 0.949361 | 0 | 0 | 4,775 | 0.140665 | 0 | 0 | 14,209 | 0.418577 |
e1d6a7a8f00c138e84b26623fa12570b059d6d57 | 244 | py | Python | src/masonite/contracts/AuthContract.py | holic-cl/masonite | c5eab7db5f87e389fe83a1f0f20a005035ada9d9 | [
"MIT"
] | 95 | 2018-02-22T23:54:00.000Z | 2021-04-17T03:39:21.000Z | src/masonite/contracts/AuthContract.py | holic-cl/masonite | c5eab7db5f87e389fe83a1f0f20a005035ada9d9 | [
"MIT"
] | 840 | 2018-01-27T04:26:20.000Z | 2021-01-24T12:28:58.000Z | src/masonite/contracts/AuthContract.py | holic-cl/masonite | c5eab7db5f87e389fe83a1f0f20a005035ada9d9 | [
"MIT"
] | 100 | 2018-02-23T00:19:55.000Z | 2020-08-28T07:59:31.000Z | from abc import ABC as Contract, abstractmethod
class AuthContract(Contract):
@abstractmethod
def user(self):
pass
@abstractmethod
def save(self):
pass
@abstractmethod
def delete(self):
pass
| 14.352941 | 47 | 0.631148 | 193 | 0.790984 | 0 | 0 | 146 | 0.598361 | 0 | 0 | 0 | 0 |
e1d7080d35e6bb09847310ecab242b0c030ed469 | 2,202 | py | Python | netblow/bin/netblow_cli.py | viniciusarcanjo/netblow | 01a2c3a60c5f9eb7e6c199612dedcd01c5dc23ba | [
"Apache-2.0"
] | 8 | 2018-10-07T17:44:46.000Z | 2022-03-24T21:40:57.000Z | netblow/bin/netblow_cli.py | viniciusarcanjo/netblow | 01a2c3a60c5f9eb7e6c199612dedcd01c5dc23ba | [
"Apache-2.0"
] | 8 | 2018-04-29T20:47:28.000Z | 2018-05-01T18:51:58.000Z | netblow/bin/netblow_cli.py | viniciusarcanjo/netblow | 01a2c3a60c5f9eb7e6c199612dedcd01c5dc23ba | [
"Apache-2.0"
] | 1 | 2019-04-27T08:48:50.000Z | 2019-04-27T08:48:50.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""netblow_cli module."""
import argparse
from netblow.netblow import NetBlow
from netblow.version import __version__
def main():
"""Entry function."""
parser = argparse.ArgumentParser(
description="netblow. Vendor agnostic network testing framework to str... | 29.36 | 108 | 0.609446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 730 | 0.331517 |
e1d83fca2e1bb93962f5e57c6f7075495edf9d91 | 8,688 | py | Python | src/06_tool/regular_expression.py | edgardeng/python-advance-interview | 59fd7bee8e871acdc7fdfecf2a110db840c47ebb | [
"Apache-2.0"
] | 1 | 2022-03-06T13:03:56.000Z | 2022-03-06T13:03:56.000Z | src/06_tool/regular_expression.py | edgardeng/python-advance-interview | 59fd7bee8e871acdc7fdfecf2a110db840c47ebb | [
"Apache-2.0"
] | null | null | null | src/06_tool/regular_expression.py | edgardeng/python-advance-interview | 59fd7bee8e871acdc7fdfecf2a110db840c47ebb | [
"Apache-2.0"
] | null | null | null | '''
' Python Regular Expression 正则表达式
'
'''
import re
def test_match():
s = 'hello python Hello'
p = 'hello'
o = re.match(p, s)
print(o)
print(dir(o))
print(o.group()) # 返回匹配的字符串
print(o.span()) # 范围
print(o.start()) # 开始处
print('*' * 30, 'flags参数的使用')
o2 = re.match(p, s, re.L)
print(o2.grou... | 30.484211 | 111 | 0.536027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,861 | 0.512872 |
e1da747be2e0ff514420a41a6547dfb4970c7ba6 | 166 | py | Python | dot_dotfiles/mail/dot_offlineimap.py | TheRealOne78/dots | 52c59dae1fccb7392ceeb16ac564f6a18ee4a159 | [
"MIT"
] | 758 | 2016-11-19T22:52:34.000Z | 2022-03-29T00:43:57.000Z | dot_dotfiles/mail/dot_offlineimap.py | TheRealOne78/dots | 52c59dae1fccb7392ceeb16ac564f6a18ee4a159 | [
"MIT"
] | 27 | 2017-02-09T23:28:58.000Z | 2022-03-22T21:35:24.000Z | dot_dotfiles/mail/dot_offlineimap.py | TheRealOne78/dots | 52c59dae1fccb7392ceeb16ac564f6a18ee4a159 | [
"MIT"
] | 82 | 2016-12-23T04:42:00.000Z | 2022-03-29T19:25:16.000Z | #! /usr/bin/env python2
# -*- coding: utf8 -*-
from subprocess import check_output
def get_pass():
return check_output("pass gmail/me", shell=True).strip("\n")
| 20.75 | 64 | 0.680723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 0.385542 |
e1dd3f3740e16e48cf7fbe8dce94d776bef908fd | 1,139 | py | Python | tests/encoding-utils/test_big_endian_integer.py | carver/ethereum-utils | 7ec2495b25107776cb4e0e4a79af8a8c64f622c4 | [
"MIT"
] | null | null | null | tests/encoding-utils/test_big_endian_integer.py | carver/ethereum-utils | 7ec2495b25107776cb4e0e4a79af8a8c64f622c4 | [
"MIT"
] | null | null | null | tests/encoding-utils/test_big_endian_integer.py | carver/ethereum-utils | 7ec2495b25107776cb4e0e4a79af8a8c64f622c4 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import pytest
from hypothesis import (
strategies as st,
given,
)
from eth_utils.encoding import (
int_to_big_endian,
big_endian_to_int,
)
@pytest.mark.parametrize(
'as_int,as_big_endian',
(
(0, b'\x00'),
(1, b'\x01'),
(7, b'\x... | 22.78 | 60 | 0.665496 | 0 | 0 | 0 | 0 | 932 | 0.818262 | 0 | 0 | 89 | 0.078139 |
e1dd62f3dbffbbc08c5996a09c39db0640f82f31 | 1,086 | py | Python | src/data/normalization.py | poly-ai/fluid-surface-estimation | b2e310f38c3cce3c13fbf0b8277ee4eb00755d36 | [
"MIT"
] | 2 | 2022-02-15T21:41:06.000Z | 2022-02-16T04:54:51.000Z | src/data/normalization.py | poly-ai/fluid-surface-estimation | b2e310f38c3cce3c13fbf0b8277ee4eb00755d36 | [
"MIT"
] | null | null | null | src/data/normalization.py | poly-ai/fluid-surface-estimation | b2e310f38c3cce3c13fbf0b8277ee4eb00755d36 | [
"MIT"
] | null | null | null | import numpy as np
# Normalize dataset such that all sequences have min value 0.0, max value 1.0
def normalize(dataset, lower_lim=0.0, upper_lim=1.0):
seq_mins = dataset.min(axis=(1, 2, 3))
seq_maxes = dataset.max(axis=(1, 2, 3))
dataset -= seq_mins.reshape((-1, 1, 1, 1))
dataset /= (seq_maxes - seq... | 32.909091 | 79 | 0.669429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 356 | 0.327808 |
e1de48b63ed82ddff16804877e556e037ff413c0 | 1,487 | py | Python | setup.py | fwitte/PyPSA | fa2ca201a4f0b3b5f8705a5927475ebb021dbee5 | [
"MIT"
] | null | null | null | setup.py | fwitte/PyPSA | fa2ca201a4f0b3b5f8705a5927475ebb021dbee5 | [
"MIT"
] | null | null | null | setup.py | fwitte/PyPSA | fa2ca201a4f0b3b5f8705a5927475ebb021dbee5 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from setuptools import setup, find_packages
from codecs import open
with open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name='pypsa',
version='0.19.1',
author='PyPSA Developers, see https://pypsa.readthedocs.io/en/latest/develop... | 29.156863 | 97 | 0.604573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 723 | 0.486214 |
e1de6c9ea1e78727fc2d5bc8690e68e41338f516 | 556 | py | Python | quiz/urls.py | Hysham/Quiz-Hoster | 19067e3d584cb97562e73d332fdfe74eb49524cc | [
"MIT"
] | 1 | 2020-03-22T13:36:27.000Z | 2020-03-22T13:36:27.000Z | quiz/urls.py | Hysham/Quiz-Hoster | 19067e3d584cb97562e73d332fdfe74eb49524cc | [
"MIT"
] | null | null | null | quiz/urls.py | Hysham/Quiz-Hoster | 19067e3d584cb97562e73d332fdfe74eb49524cc | [
"MIT"
] | 1 | 2020-04-02T15:32:12.000Z | 2020-04-02T15:32:12.000Z |
from django.urls import path
from . import views
urlpatterns = [
path('', views.quiz_home, name='quiz-home'),
path('page/<int:page_no>/', views.quiz_page, name='quiz-page' ),
path('about/', views.quiz_about, name='quiz-about'),
path('submit/', views.quiz_submit, name='quiz-submit'),
## after quiz... | 37.066667 | 88 | 0.681655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 208 | 0.374101 |
e1dfa37abe08ed294d2a701673731176a4e461e5 | 3,500 | py | Python | jamf/setconfig.py | pythoninthegrass/python-jamf | f71a44f4565fc2824ce6daf536359d563ab75ea3 | [
"MIT"
] | 25 | 2020-11-02T18:16:22.000Z | 2022-03-07T04:36:14.000Z | jamf/setconfig.py | pythoninthegrass/python-jamf | f71a44f4565fc2824ce6daf536359d563ab75ea3 | [
"MIT"
] | 17 | 2020-12-22T19:24:05.000Z | 2022-03-02T22:39:04.000Z | jamf/setconfig.py | pythoninthegrass/python-jamf | f71a44f4565fc2824ce6daf536359d563ab75ea3 | [
"MIT"
] | 12 | 2020-10-28T19:03:29.000Z | 2022-03-01T08:29:52.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Jamf Config
"""
__author__ = "Sam Forester"
__email__ = "[email protected]"
__copyright__ = "Copyright (c) 2020 University of Utah, Marriott Library"
__license__ = "MIT"
__version__ = "1.0.4"
import argparse
import getpass
import jamf
import logging
import plat... | 28.225806 | 86 | 0.575429 | 1,466 | 0.418857 | 0 | 0 | 0 | 0 | 0 | 0 | 847 | 0.242 |
e1e00ce354ffc24242ad31b4a0c1c5120baf617a | 979 | py | Python | src/menuResponse/migrations/0001_initial.py | miguelaav/dev | 5ade9d0b393f48c9cc3b160b6ede4a03c29addea | [
"bzip2-1.0.6"
] | null | null | null | src/menuResponse/migrations/0001_initial.py | miguelaav/dev | 5ade9d0b393f48c9cc3b160b6ede4a03c29addea | [
"bzip2-1.0.6"
] | 6 | 2020-06-05T20:02:33.000Z | 2022-03-11T23:43:11.000Z | src/menuResponse/migrations/0001_initial.py | miguelaav/dev | 5ade9d0b393f48c9cc3b160b6ede4a03c29addea | [
"bzip2-1.0.6"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-03-12 17:41
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('menuCreate', '0001_initial'),
... | 32.633333 | 124 | 0.622063 | 787 | 0.803882 | 0 | 0 | 0 | 0 | 0 | 0 | 225 | 0.229826 |
e1e2d0a67c83cc0cf6dbbc60b3dc2efff897636e | 10,889 | py | Python | datacube/drivers/s3/storage/s3aio/s3aio.py | Zac-HD/datacube-core | ebc2025b6fb9d22fb406cdf5f79eba6d144c57e3 | [
"Apache-2.0"
] | 2 | 2018-12-02T11:33:50.000Z | 2021-04-24T11:42:42.000Z | datacube/drivers/s3/storage/s3aio/s3aio.py | Zac-HD/datacube-core | ebc2025b6fb9d22fb406cdf5f79eba6d144c57e3 | [
"Apache-2.0"
] | 103 | 2018-03-21T15:00:05.000Z | 2020-06-04T05:40:25.000Z | datacube/drivers/s3/storage/s3aio/s3aio.py | roarmstrong/datacube-core | 5e38638dabd9e5112e92b503fae6a83c8dcc4902 | [
"Apache-2.0"
] | null | null | null | """
S3AIO Class
Array access to a single S3 object
"""
from __future__ import absolute_import
import SharedArray as sa
import zstd
from itertools import repeat, product
import numpy as np
from pathos.multiprocessing import ProcessingPool
from six.moves import zip
try:
from StringIO import StringIO
except Impor... | 39.452899 | 113 | 0.612545 | 10,486 | 0.96299 | 0 | 0 | 0 | 0 | 0 | 0 | 3,451 | 0.316925 |
e1e4a6c549324fabd37261ecd95b7fc5b7e7bd39 | 5,447 | py | Python | make_snapshot.py | trquinn/ICgen | 0d7f05187a955be7fa3dee2f638cfcb074ebadcd | [
"MIT"
] | 1 | 2021-09-14T12:03:03.000Z | 2021-09-14T12:03:03.000Z | make_snapshot.py | trquinn/ICgen | 0d7f05187a955be7fa3dee2f638cfcb074ebadcd | [
"MIT"
] | null | null | null | make_snapshot.py | trquinn/ICgen | 0d7f05187a955be7fa3dee2f638cfcb074ebadcd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 21 15:11:31 2014
@author: ibackus
"""
__version__ = "$Revision: 1 $"
# $Source$
import pynbody
SimArray = pynbody.array.SimArray
import numpy as np
import gc
import os
import isaac
import calc_velocity
import ICgen_utils
import ICglobal_settings
global_settings = ICglo... | 33.213415 | 98 | 0.572242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,414 | 0.44318 |
e1e5f2d6ad3305b63d32e9bc867c960c34b149c1 | 8,243 | py | Python | diag_rank_update.py | IPA-HD/ldaf_classification | e7cd08c59d3be2cf961cf6f546ef9b375c9d96c5 | [
"MIT"
] | null | null | null | diag_rank_update.py | IPA-HD/ldaf_classification | e7cd08c59d3be2cf961cf6f546ef9b375c9d96c5 | [
"MIT"
] | null | null | null | diag_rank_update.py | IPA-HD/ldaf_classification | e7cd08c59d3be2cf961cf6f546ef9b375c9d96c5 | [
"MIT"
] | 1 | 2022-02-23T16:13:04.000Z | 2022-02-23T16:13:04.000Z | """
Diagonal Matrix with rank-1 updates.
"""
import itertools
import torch
from torch.functional import Tensor
class DiagRankUpdate(object):
"""Diagonal Matrix with rank-1 updates"""
def __init__(self, diag, rankUpdates):
super(DiagRankUpdate, self).__init__()
self.diag = diag
self.ran... | 28.922807 | 105 | 0.474463 | 8,140 | 0.986428 | 0 | 0 | 109 | 0.013209 | 0 | 0 | 767 | 0.092947 |
e1e66cd3308883f2371baad138a10eed2eac4eff | 4,074 | py | Python | tests/garage/tf/policies/test_gaussian_mlp_policy_with_model.py | XavierJingfeng/starter | 274566e491d5c7157f3c8deff136c56838022349 | [
"MIT"
] | null | null | null | tests/garage/tf/policies/test_gaussian_mlp_policy_with_model.py | XavierJingfeng/starter | 274566e491d5c7157f3c8deff136c56838022349 | [
"MIT"
] | null | null | null | tests/garage/tf/policies/test_gaussian_mlp_policy_with_model.py | XavierJingfeng/starter | 274566e491d5c7157f3c8deff136c56838022349 | [
"MIT"
] | null | null | null | import pickle
from unittest import mock
from nose2.tools.params import params
import numpy as np
import tensorflow as tf
from garage.tf.envs import TfEnv
from garage.tf.policies import GaussianMLPPolicyWithModel
from tests.fixtures import TfGraphTestCase
from tests.fixtures.envs.dummy import DummyBoxEnv
from tests.fi... | 35.736842 | 76 | 0.59352 | 3,707 | 0.909917 | 0 | 0 | 3,636 | 0.892489 | 0 | 0 | 308 | 0.075601 |
e1e7670f03c464a40b12de227929a84b71ca6496 | 3,015 | py | Python | cloudify_gcp/monitoring/stackdriver_uptimecheck.py | cloudify-cosmo/cloudify-gcp-plugin | c70faee0555070f7fc67f0001395eaafb681b23c | [
"Apache-2.0"
] | 4 | 2016-10-24T17:42:07.000Z | 2020-05-31T00:34:07.000Z | cloudify_gcp/monitoring/stackdriver_uptimecheck.py | cloudify-cosmo/cloudify-gcp-plugin | c70faee0555070f7fc67f0001395eaafb681b23c | [
"Apache-2.0"
] | 35 | 2015-04-30T20:14:01.000Z | 2022-02-03T21:35:54.000Z | cloudify_gcp/monitoring/stackdriver_uptimecheck.py | cloudify-cosmo/cloudify-gcp-plugin | c70faee0555070f7fc67f0001395eaafb681b23c | [
"Apache-2.0"
] | 13 | 2015-04-17T16:42:03.000Z | 2021-06-24T04:12:14.000Z | # #######
# Copyright (c) 2018-2020 Cloudify Platform Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 33.5 | 78 | 0.725373 | 920 | 0.305141 | 0 | 0 | 1,737 | 0.576119 | 0 | 0 | 664 | 0.220232 |
e1e7fd1d9bbf595b4d131e3b6ac6e686c46e866f | 2,041 | py | Python | tests/test_database.py | penggan666/index_selection_evaluation | b6daf1f30c24a0675f4e3acfbd17304e5d91cfd6 | [
"MIT"
] | 37 | 2020-03-03T10:59:06.000Z | 2022-03-29T11:51:37.000Z | tests/test_database.py | Jiachen-Shi/index_selection_evaluation | fb22b929cbab22377e90a12ae23ea4002d8eab7b | [
"MIT"
] | 19 | 2020-03-10T14:55:56.000Z | 2021-05-20T09:54:32.000Z | tests/test_database.py | Jiachen-Shi/index_selection_evaluation | fb22b929cbab22377e90a12ae23ea4002d8eab7b | [
"MIT"
] | 14 | 2020-08-10T03:12:40.000Z | 2022-02-28T06:08:16.000Z | import unittest
from selection.dbms.postgres_dbms import PostgresDatabaseConnector
from selection.index import Index
from selection.table_generator import TableGenerator
from selection.workload import Column, Query, Table
class TestDatabase(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.db... | 34.016667 | 85 | 0.707496 | 1,766 | 0.865262 | 0 | 0 | 451 | 0.22097 | 0 | 0 | 144 | 0.070554 |
e1e8c509d815e0208974db78a033ef909fdca7d8 | 2,012 | py | Python | aljson/__init__.py | hrzp/aljson | 83cab23f9466c8ca5803dba7d5ec998646ff0436 | [
"MIT"
] | 1 | 2020-02-02T11:33:29.000Z | 2020-02-02T11:33:29.000Z | aljson/__init__.py | hrzp/aljson | 83cab23f9466c8ca5803dba7d5ec998646ff0436 | [
"MIT"
] | null | null | null | aljson/__init__.py | hrzp/aljson | 83cab23f9466c8ca5803dba7d5ec998646ff0436 | [
"MIT"
] | null | null | null | from sqlalchemy.orm.collections import InstrumentedList
class BaseMixin:
caller_stack = list()
def extract_relations(self):
return self.__mapper__.relationships.keys()
def extract_columns(self):
return self.__mapper__.columns.keys()
def get_columns(self):
result = dict()
... | 31.936508 | 74 | 0.630716 | 1,953 | 0.970676 | 0 | 0 | 0 | 0 | 0 | 0 | 143 | 0.071074 |
e1e8ce55d278ecec5ff0a778a7af4a2bbb524f3a | 1,274 | py | Python | src/robotide/context/coreplugins.py | veryl-technologies/t24-tests-ide | 16cd803895916a785c0e1fec3f71f9388c21edc9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-06-27T08:48:24.000Z | 2019-06-27T08:48:24.000Z | src/robotide/context/coreplugins.py | veryl-technologies/t24-tests-ide | 16cd803895916a785c0e1fec3f71f9388c21edc9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/robotide/context/coreplugins.py | veryl-technologies/t24-tests-ide | 16cd803895916a785c0e1fec3f71f9388c21edc9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# 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... | 42.466667 | 87 | 0.78022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 592 | 0.464678 |
e1e993089a256f12c7dadf856a619e12a83973e8 | 918 | py | Python | backend/apps/api/system/v1/serializers/groups.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | null | null | null | backend/apps/api/system/v1/serializers/groups.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | null | null | null | backend/apps/api/system/v1/serializers/groups.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | null | null | null | from rest_framework import serializers
from ... import models
class DepartmentSerializers(serializers.ModelSerializer):
"""
Сериализатор кафедр
"""
class Meta:
model = models.Department
fields = ["short_name", "full_name"]
class StudentSerializers(serializers.ModelSerializer):
"... | 21.348837 | 67 | 0.606754 | 916 | 0.928065 | 0 | 0 | 0 | 0 | 0 | 0 | 304 | 0.308004 |
e1ea50469b885baae0f3ea29526541040d09f40f | 6,629 | py | Python | cinebot_mini/web_utils/blender_client.py | cheng-chi/cinebot_mini | 708a7c80d2f203dfe3b52bf84d9cbafac7673d27 | [
"MIT"
] | null | null | null | cinebot_mini/web_utils/blender_client.py | cheng-chi/cinebot_mini | 708a7c80d2f203dfe3b52bf84d9cbafac7673d27 | [
"MIT"
] | null | null | null | cinebot_mini/web_utils/blender_client.py | cheng-chi/cinebot_mini | 708a7c80d2f203dfe3b52bf84d9cbafac7673d27 | [
"MIT"
] | null | null | null | from cinebot_mini import SERVERS
import requests
import numpy as np
import json
def base_url():
blender_dict = SERVERS["blender"]
url = "http://{}:{}".format(
blender_dict["host"], blender_dict["port"])
return url
def handshake():
url = base_url() + "/api/ping"
for i in range(5):
... | 25.996078 | 69 | 0.577312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,140 | 0.171972 |
e1eb5b5cf0257ffeb6de52c29326fb2195c7a273 | 6,733 | py | Python | gem5-configs/configs-microbench-tests/run_controlbenchmarks.py | TCHERNET/parsec-tests2 | 775b299a890d0d552877ed510240aa59c630eaa3 | [
"BSD-3-Clause"
] | 5 | 2020-05-20T12:24:29.000Z | 2021-07-20T01:49:30.000Z | gem5-configs/configs-microbench-tests/run_controlbenchmarks.py | TCHERNET/parsec-tests2 | 775b299a890d0d552877ed510240aa59c630eaa3 | [
"BSD-3-Clause"
] | 26 | 2020-04-03T15:01:48.000Z | 2021-06-09T19:08:31.000Z | gem5-configs/configs-microbench-tests/run_controlbenchmarks.py | TCHERNET/parsec-tests2 | 775b299a890d0d552877ed510240aa59c630eaa3 | [
"BSD-3-Clause"
] | 3 | 2020-07-04T14:51:29.000Z | 2021-09-16T04:33:45.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2018 The Regents of the University of California
# All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copy... | 40.077381 | 168 | 0.776771 | 3,345 | 0.496807 | 0 | 0 | 0 | 0 | 0 | 0 | 2,521 | 0.374424 |
e1ebe5e056a585344fff7992dae1cbba59732df5 | 1,273 | py | Python | poezio/args.py | hrnciar/poezio | 12b8af11df35dda535412b0c02ba792890095a7d | [
"Zlib"
] | null | null | null | poezio/args.py | hrnciar/poezio | 12b8af11df35dda535412b0c02ba792890095a7d | [
"Zlib"
] | null | null | null | poezio/args.py | hrnciar/poezio | 12b8af11df35dda535412b0c02ba792890095a7d | [
"Zlib"
] | null | null | null | """
Module related to the argument parsing
There is a fallback to the deprecated optparse if argparse is not found
"""
from pathlib import Path
from argparse import ArgumentParser, SUPPRESS
from poezio.version import __version__
def parse_args(CONFIG_PATH: Path):
"""
Parse the arguments from the command lin... | 24.480769 | 71 | 0.593087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 482 | 0.378633 |
e1ed3b48fe37cb69350c8b6542e4845c264e91f2 | 1,125 | py | Python | src/mist/api/poller/schedulers.py | vladimir-ilyashenko/mist.api | f77c451679732ac1cfdafa85ad023c7c170faec4 | [
"Apache-2.0"
] | null | null | null | src/mist/api/poller/schedulers.py | vladimir-ilyashenko/mist.api | f77c451679732ac1cfdafa85ad023c7c170faec4 | [
"Apache-2.0"
] | null | null | null | src/mist/api/poller/schedulers.py | vladimir-ilyashenko/mist.api | f77c451679732ac1cfdafa85ad023c7c170faec4 | [
"Apache-2.0"
] | null | null | null | from celerybeatmongo.schedulers import MongoScheduler
from mist.api.sharding.mixins import ShardManagerMixin
from mist.api.poller.models import PollingSchedule
from mist.api.poller.models import OwnerPollingSchedule
from mist.api.poller.models import CloudPollingSchedule
from mist.api.poller.models import MachinePoll... | 26.162791 | 74 | 0.826667 | 755 | 0.671111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
e1ee5eb16b3e9a592172165671953d6cc3271d6d | 13,939 | py | Python | datasets/hdd_classif.py | valeoai/BEEF | f1c5f3708ba91f6402dd05814b76dca1d9012942 | [
"Apache-2.0"
] | 4 | 2021-05-31T16:53:35.000Z | 2021-11-30T03:03:34.000Z | datasets/hdd_classif.py | valeoai/BEEF | f1c5f3708ba91f6402dd05814b76dca1d9012942 | [
"Apache-2.0"
] | 3 | 2022-02-02T20:41:56.000Z | 2022-02-24T11:47:44.000Z | datasets/hdd_classif.py | valeoai/BEEF | f1c5f3708ba91f6402dd05814b76dca1d9012942 | [
"Apache-2.0"
] | null | null | null | from collections import Counter
import json
from pathlib import Path
from PIL import Image
import numpy as np
import torch
import torch.utils.data as data
import torchvision.transforms as transforms
from bootstrap.lib.logger import Logger
from bootstrap.datasets import transforms as bootstrap_tf
try:... | 38.084699 | 193 | 0.522204 | 12,208 | 0.875816 | 0 | 0 | 0 | 0 | 0 | 0 | 1,400 | 0.100438 |
e1f01e5ef61eacab7ab09c6ac2aca35cf6f0b034 | 921 | py | Python | 1W/6/3.py | allenalvin333/Hackerrank_Prep | 26ed5b874daba4775d006824d36f9e82ea5ff1ea | [
"MIT"
] | 2 | 2021-11-25T13:38:36.000Z | 2021-11-25T13:42:56.000Z | 1W/6/3.py | allenalvin333/Hackerrank_Prep | 26ed5b874daba4775d006824d36f9e82ea5ff1ea | [
"MIT"
] | null | null | null | 1W/6/3.py | allenalvin333/Hackerrank_Prep | 26ed5b874daba4775d006824d36f9e82ea5ff1ea | [
"MIT"
] | 1 | 2021-11-25T13:38:43.000Z | 2021-11-25T13:38:43.000Z | # https://www.hackerrank.com/challenges/one-week-preparation-kit-jesse-and-cookies/problem
#!/bin/python3
import math
import os
import random
import re
import sys
import heapq
#
# Complete the 'cookies' function below.
#
# The function is expected to return an INTEGER.
# The function accepts following parameters:
# ... | 20.021739 | 90 | 0.633008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 305 | 0.331162 |
e1f029d6dec3a3f66d804dec3fb860fb4b271b25 | 3,895 | py | Python | toughio/capillarity/_base.py | keurfonluu/toughio | 1db0600ee5ad1abb5ca858c81c8ac5226c9dbb4f | [
"BSD-3-Clause-LBNL"
] | 21 | 2020-03-05T20:03:58.000Z | 2022-03-14T23:17:42.000Z | toughio/capillarity/_base.py | keurfonluu/toughio | 1db0600ee5ad1abb5ca858c81c8ac5226c9dbb4f | [
"BSD-3-Clause-LBNL"
] | 60 | 2020-02-14T22:53:01.000Z | 2022-03-26T07:24:19.000Z | toughio/capillarity/_base.py | keurfonluu/toughio | 1db0600ee5ad1abb5ca858c81c8ac5226c9dbb4f | [
"BSD-3-Clause-LBNL"
] | 6 | 2020-02-28T08:15:36.000Z | 2022-03-13T23:26:24.000Z | from abc import ABCMeta, abstractmethod, abstractproperty
import numpy
__all__ = [
"BaseCapillarity",
]
# See <https://stackoverflow.com/questions/35673474/using-abc-abcmeta-in-a-way-it-is-compatible-both-with-python-2-7-and-python-3-5>
ABC = ABCMeta("ABC", (object,), {"__slots__": ()})
class BaseCapillarity(... | 29.507576 | 132 | 0.562773 | 3,596 | 0.923235 | 0 | 0 | 452 | 0.116046 | 0 | 0 | 1,266 | 0.325032 |
e1f08688ada9b36c08693a0c6eb7ff57ba0e5786 | 23,988 | py | Python | gui.py | NejcHirci/material-addon | c08e2081413c3319b712c2f7193ac8013f601382 | [
"MIT"
] | 4 | 2022-01-31T14:26:39.000Z | 2022-02-06T06:34:27.000Z | gui.py | NejcHirci/material-addon | c08e2081413c3319b712c2f7193ac8013f601382 | [
"MIT"
] | 2 | 2021-11-30T12:19:27.000Z | 2021-11-30T12:42:10.000Z | gui.py | NejcHirci/material-addon | c08e2081413c3319b712c2f7193ac8013f601382 | [
"MIT"
] | null | null | null | import bpy
import glob
from bpy.types import Panel, Operator
from bpy.app.handlers import persistent
import os
import threading
from queue import Queue
from pathlib import Path
from . mix_ops import *
from . matgan_ops import *
from . neural_ops import *
cache_path = os.path.join(Path(__file__).parent.resolve(), '.ca... | 42.306878 | 144 | 0.557654 | 17,980 | 0.749541 | 0 | 0 | 2,377 | 0.099091 | 0 | 0 | 5,039 | 0.210063 |
e1f180db019536ccc2e9f00c32c47da031376111 | 4,266 | py | Python | run.py | kbeyer/RPi-LED-SpectrumAnalyzer | f5a5f1210f02188599eb308f5737392ce8c93218 | [
"MIT"
] | 14 | 2015-01-09T12:26:06.000Z | 2021-03-22T22:16:53.000Z | run.py | kbeyer/RPi-LED-SpectrumAnalyzer | f5a5f1210f02188599eb308f5737392ce8c93218 | [
"MIT"
] | 4 | 2015-07-19T07:20:51.000Z | 2017-02-01T16:11:22.000Z | run.py | kbeyer/RPi-LED-SpectrumAnalyzer | f5a5f1210f02188599eb308f5737392ce8c93218 | [
"MIT"
] | 4 | 2016-03-07T12:12:08.000Z | 2018-03-04T21:57:13.000Z | """ Main entry point for running the demo. """
# Standard library
import time
import sys
# Third party library
import alsaaudio as aa
# Local library
from char import show_text
from hs_logo import draw_logo
from leds import ColumnedLEDStrip
from music import calculate_levels, read_musicfile_in_chunks, calculate_col... | 28.44 | 109 | 0.665495 | 1,145 | 0.268401 | 0 | 0 | 0 | 0 | 0 | 0 | 502 | 0.117675 |
e1f1f1c95fd75ee0bf2a6e9603b88f2d439ebe8f | 2,924 | py | Python | 2020/07/solution.py | dglmoore/advent-of-code | ca6e39a842a84ad5271891535c9323e057261d44 | [
"MIT"
] | null | null | null | 2020/07/solution.py | dglmoore/advent-of-code | ca6e39a842a84ad5271891535c9323e057261d44 | [
"MIT"
] | null | null | null | 2020/07/solution.py | dglmoore/advent-of-code | ca6e39a842a84ad5271891535c9323e057261d44 | [
"MIT"
] | null | null | null | import re
def part1(lines, yourbag="shiny gold"):
# A nice little regex that will extract a list of all bags in a given line.
# The first is the outermost bag, and the rest are inner bags.
pattern = re.compile(r"(?:\d*)\s*(.*?)\s*bags?[.,]?(?: contain)?\s*")
# We're going to use an adjacency list map... | 35.658537 | 79 | 0.591313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,346 | 0.460328 |
e1f2c620730a24383f1404677c275f4158ee87bb | 1,981 | py | Python | src/m6_your_turtles.py | polsteaj/01-IntroductionToPython | 155f56f66a5746baa4d5319d4e79c14aa857199b | [
"MIT"
] | null | null | null | src/m6_your_turtles.py | polsteaj/01-IntroductionToPython | 155f56f66a5746baa4d5319d4e79c14aa857199b | [
"MIT"
] | null | null | null | src/m6_your_turtles.py | polsteaj/01-IntroductionToPython | 155f56f66a5746baa4d5319d4e79c14aa857199b | [
"MIT"
] | null | null | null | """
Your chance to explore Loops and Turtles!
Authors: David Mutchler, Dave Fisher, Vibha Alangar, Amanda Stouder,
their colleagues and Alec Polster.
"""
import rosegraphics as rg
###############################################################################
# DONE: 1.
# On Line 5 above, replace PUT_YOUR_... | 33.576271 | 79 | 0.594144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,266 | 0.639071 |
e1f30a4f4d1925bf5687b7cf412adf4bd33cee9b | 84 | py | Python | docs/ResearchSession/manage.py | VoIlAlex/pytorchresearch | c4f08cd0ec6b78788e682005c099aef4582640cb | [
"MIT"
] | 1 | 2020-12-13T20:25:27.000Z | 2020-12-13T20:25:27.000Z | docs/ResearchSession/manage.py | VoIlAlex/pytorchresearch | c4f08cd0ec6b78788e682005c099aef4582640cb | [
"MIT"
] | null | null | null | docs/ResearchSession/manage.py | VoIlAlex/pytorchresearch | c4f08cd0ec6b78788e682005c099aef4582640cb | [
"MIT"
] | null | null | null | from backbone import entry_point
if __name__ == '__main__':
entry_point.main()
| 16.8 | 32 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0.119048 |
e1f4c12b169ff0fc2c245e310a2a7024653caedb | 116 | py | Python | base.py | chenzhangyu/WeiboOAuth | a00cc5983e989bb2ea8907b8d590a0a6c750d804 | [
"MIT"
] | 1 | 2019-10-10T08:26:08.000Z | 2019-10-10T08:26:08.000Z | base.py | chenzhangyu/WeiboOAuth | a00cc5983e989bb2ea8907b8d590a0a6c750d804 | [
"MIT"
] | null | null | null | base.py | chenzhangyu/WeiboOAuth | a00cc5983e989bb2ea8907b8d590a0a6c750d804 | [
"MIT"
] | 1 | 2019-04-12T09:42:03.000Z | 2019-04-12T09:42:03.000Z | # encoding=utf-8
__author__ = 'lance'
import tornado.web
class BaseHandler(tornado.web.RequestHandler):
pass
| 12.888889 | 46 | 0.75 | 55 | 0.474138 | 0 | 0 | 0 | 0 | 0 | 0 | 23 | 0.198276 |
e1f4f6334ab0ff9c96e987467be3ce874e28f3d7 | 2,958 | py | Python | paddlers/custom_models/cd/cdnet.py | huilin16/PaddleRS | ca0d6223d8e56cd3bd3cbd3a033c89f1718ce26a | [
"Apache-2.0"
] | 40 | 2022-02-28T02:07:28.000Z | 2022-03-31T09:54:29.000Z | paddlers/custom_models/cd/cdnet.py | huilin16/PaddleRS | ca0d6223d8e56cd3bd3cbd3a033c89f1718ce26a | [
"Apache-2.0"
] | 5 | 2022-03-15T12:13:33.000Z | 2022-03-31T15:54:08.000Z | paddlers/custom_models/cd/cdnet.py | huilin16/PaddleRS | ca0d6223d8e56cd3bd3cbd3a033c89f1718ce26a | [
"Apache-2.0"
] | 20 | 2022-02-28T02:07:31.000Z | 2022-03-31T11:40:40.000Z | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 38.921053 | 75 | 0.610886 | 2,058 | 0.69574 | 0 | 0 | 0 | 0 | 0 | 0 | 637 | 0.215348 |
e1f4fb4322ad7bde9174a243c1005f58f9c30795 | 1,948 | py | Python | contrib/make-leap-seconds.py | dmgerman/ntpsec | 28dde8422e1a949e50663ae965d58c2fdbc782b9 | [
"CC-BY-4.0",
"BSD-2-Clause",
"NTP",
"MIT",
"BSD-3-Clause"
] | null | null | null | contrib/make-leap-seconds.py | dmgerman/ntpsec | 28dde8422e1a949e50663ae965d58c2fdbc782b9 | [
"CC-BY-4.0",
"BSD-2-Clause",
"NTP",
"MIT",
"BSD-3-Clause"
] | null | null | null | contrib/make-leap-seconds.py | dmgerman/ntpsec | 28dde8422e1a949e50663ae965d58c2fdbc782b9 | [
"CC-BY-4.0",
"BSD-2-Clause",
"NTP",
"MIT",
"BSD-3-Clause"
] | 1 | 2021-09-24T18:19:49.000Z | 2021-09-24T18:19:49.000Z | #!/usr/bin/env python
"""\
make-leap-seconds.py - make leap second file for testing
Optional args are date of leap second: YYYY-MM-DD
and expiration date of file.
Defaults are start of tomorrow (UTC), and 28 days after the leap.
"Start of tomorow" is as soon as possible for testing.
"""
# SPDX-License-Identifier: BS... | 24.35 | 79 | 0.664784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 748 | 0.383984 |
e1f5bc34418af89095c0d30d7b41fe28a2137a99 | 695 | py | Python | tests/profiling/test_scheduler.py | uniq10/dd-trace-py | ca9ce1fe552cf03c2828bcd160e537336aa275d5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-10-17T14:55:46.000Z | 2020-10-17T14:55:46.000Z | tests/profiling/test_scheduler.py | uniq10/dd-trace-py | ca9ce1fe552cf03c2828bcd160e537336aa275d5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-12-22T16:56:55.000Z | 2020-12-22T16:56:55.000Z | tests/profiling/test_scheduler.py | uniq10/dd-trace-py | ca9ce1fe552cf03c2828bcd160e537336aa275d5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-12-22T16:54:02.000Z | 2020-12-22T16:54:02.000Z | # -*- encoding: utf-8 -*-
from ddtrace.profiling import event
from ddtrace.profiling import exporter
from ddtrace.profiling import recorder
from ddtrace.profiling import scheduler
class _FailExporter(exporter.Exporter):
@staticmethod
def export(events):
raise Exception("BOO!")
def test_exporter_fail... | 23.965517 | 68 | 0.689209 | 113 | 0.16259 | 0 | 0 | 69 | 0.099281 | 0 | 0 | 70 | 0.100719 |
e1f73d543e655fe197f206bbd67ec8e450d4935c | 5,546 | py | Python | scrape_reviews/scrape_reviews/spiders/imdb_spider.py | eshwarkoka/sentiment_analysis_on_movie_reviews | 16ad65904ea1446f0b5d2f432e48581414e12c04 | [
"MIT"
] | null | null | null | scrape_reviews/scrape_reviews/spiders/imdb_spider.py | eshwarkoka/sentiment_analysis_on_movie_reviews | 16ad65904ea1446f0b5d2f432e48581414e12c04 | [
"MIT"
] | 2 | 2020-09-09T16:48:28.000Z | 2020-09-09T16:48:36.000Z | scrape_reviews/scrape_reviews/spiders/imdb_spider.py | eshwarkoka/sentiment_analysis_on_movie_reviews | 16ad65904ea1446f0b5d2f432e48581414e12c04 | [
"MIT"
] | null | null | null | import scrapy,json,re,time,os,glob
from scrapy.exceptions import CloseSpider
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.common.exceptions import TimeoutE... | 36.728477 | 128 | 0.638118 | 4,674 | 0.84277 | 134 | 0.024162 | 0 | 0 | 0 | 0 | 1,409 | 0.254057 |
e1f89f4c50e5d75fea57eee72158205ed8c1ffe8 | 423 | py | Python | backend/notifications/admin.py | ProgrammingLanguageLeader/TutorsApp | f2d5968b5c29ce75f5f634d6076a6e66efc76801 | [
"MIT"
] | 3 | 2019-02-24T23:30:19.000Z | 2019-03-27T20:06:53.000Z | backend/notifications/admin.py | ProgrammingLanguageLeader/TutorsApp | f2d5968b5c29ce75f5f634d6076a6e66efc76801 | [
"MIT"
] | 1 | 2019-03-30T08:58:06.000Z | 2019-03-30T08:58:06.000Z | backend/notifications/admin.py | ProgrammingLanguageLeader/TutorsApp | f2d5968b5c29ce75f5f634d6076a6e66efc76801 | [
"MIT"
] | 1 | 2019-03-01T20:10:19.000Z | 2019-03-01T20:10:19.000Z | from django.contrib import admin
from notifications.models import Notification
@admin.register(Notification)
class NotificationAdmin(admin.ModelAdmin):
list_display = (
'sender',
'recipient',
'creation_time',
'verb',
'unread',
)
list_filter = (
'sender',
... | 17.625 | 45 | 0.553191 | 310 | 0.732861 | 0 | 0 | 340 | 0.803783 | 0 | 0 | 87 | 0.205674 |
e1f95d627c633bc21a45b92e2b2fbf936f530ed6 | 1,916 | py | Python | logistic-regression/code.py | kalpeshsnaik09/ga-learner-dsmp-repo | b0b8b0b1e8f91d6462d1ea129f86595b5200a4c4 | [
"MIT"
] | null | null | null | logistic-regression/code.py | kalpeshsnaik09/ga-learner-dsmp-repo | b0b8b0b1e8f91d6462d1ea129f86595b5200a4c4 | [
"MIT"
] | null | null | null | logistic-regression/code.py | kalpeshsnaik09/ga-learner-dsmp-repo | b0b8b0b1e8f91d6462d1ea129f86595b5200a4c4 | [
"MIT"
] | null | null | null | # --------------
# import the libraries
import numpy as np
import pandas as pd
import seaborn as sns
from sklearn.model_selection import train_test_split
import warnings
warnings.filterwarnings('ignore')
# Code starts here
df=pd.read_csv(path)
print(df.head())
X=df.drop(columns='insuranceclaim')
y=df['insuranceclaim']... | 20.602151 | 80 | 0.731733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 456 | 0.237996 |
e1fa2fd607868b6a76f691220804b86d0b59aec1 | 2,227 | py | Python | macro_benchmark/SSD_Tensorflow/caffe_to_tensorflow.py | songhappy/ai-matrix | 901078e480c094235c721c49f8141aec7a84e70e | [
"Apache-2.0"
] | 180 | 2018-09-20T07:27:40.000Z | 2022-03-19T07:55:42.000Z | macro_benchmark/SSD_Tensorflow/caffe_to_tensorflow.py | songhappy/ai-matrix | 901078e480c094235c721c49f8141aec7a84e70e | [
"Apache-2.0"
] | 80 | 2018-09-26T18:55:56.000Z | 2022-02-10T02:03:26.000Z | macro_benchmark/SSD_Tensorflow/caffe_to_tensorflow.py | songhappy/ai-matrix | 901078e480c094235c721c49f8141aec7a84e70e | [
"Apache-2.0"
] | 72 | 2018-08-30T00:49:15.000Z | 2022-02-15T23:22:40.000Z | """Convert a Caffe model file to TensorFlow checkpoint format.
Assume that the network built is a equivalent (or a sub-) to the Caffe
definition.
"""
import tensorflow as tf
from nets import caffe_scope
from nets import nets_factory
slim = tf.contrib.slim
# ==========================================================... | 33.238806 | 79 | 0.579704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 836 | 0.375393 |
e1faa2d284c1670dec2da5bc75095f1370cf8e94 | 1,211 | py | Python | setup.py | danihodovic/django-toolshed | 78d559db662488bafbd3f701f4c0c5304ae151d9 | [
"MIT"
] | 3 | 2021-08-09T11:59:16.000Z | 2021-08-09T12:44:54.000Z | setup.py | danihodovic/django-toolshed | 78d559db662488bafbd3f701f4c0c5304ae151d9 | [
"MIT"
] | null | null | null | setup.py | danihodovic/django-toolshed | 78d559db662488bafbd3f701f4c0c5304ae151d9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import re
from setuptools import find_packages, setup
def get_version(*file_paths):
filename = os.path.join(os.path.dirname(__file__), *file_paths)
version_file = open(filename).read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
... | 28.162791 | 88 | 0.652353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 484 | 0.39967 |
e1fcd5a6b602e7b63e359f1c120e157503211aa4 | 5,686 | py | Python | detection/models/roi_extractors/roi_align.py | waiiinta/object_detection_lab | 6af56ab1c0f595181d87163c62e613398ac96af8 | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | detection/models/roi_extractors/roi_align.py | waiiinta/object_detection_lab | 6af56ab1c0f595181d87163c62e613398ac96af8 | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | detection/models/roi_extractors/roi_align.py | waiiinta/object_detection_lab | 6af56ab1c0f595181d87163c62e613398ac96af8 | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | import tensorflow as tf
from detection.utils.misc import *
class PyramidROIAlign(tf.keras.layers.Layer):
def __init__(self, pool_shape, **kwargs):
'''
Implements ROI Pooling on multiple levels of the feature pyramid.
Attributes
---
pool_shape: (height, width) of the o... | 45.854839 | 155 | 0.577559 | 5,624 | 0.989096 | 0 | 0 | 0 | 0 | 0 | 0 | 2,735 | 0.481006 |
e1ff64213edb5548904c05273b193883e930a827 | 150 | py | Python | examples/simple_regex/routes/__init__.py | nekonoshiri/tiny-router | 3bb808bcc9f9eb368ee390179dfc5e9d48cf8600 | [
"MIT"
] | null | null | null | examples/simple_regex/routes/__init__.py | nekonoshiri/tiny-router | 3bb808bcc9f9eb368ee390179dfc5e9d48cf8600 | [
"MIT"
] | null | null | null | examples/simple_regex/routes/__init__.py | nekonoshiri/tiny-router | 3bb808bcc9f9eb368ee390179dfc5e9d48cf8600 | [
"MIT"
] | null | null | null | from ..router import Router
from . import create_user, get_user
router = Router()
router.include(get_user.router)
router.include(create_user.router)
| 21.428571 | 35 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
c0003725e83dcd344816d0f9a584c175d9cf972f | 712 | py | Python | poetry/packages/constraints/any_constraint.py | vanyakosmos/poetry | b218969107e49dc57e65dbc0d349e83cbe1f44a8 | [
"MIT"
] | 2 | 2019-06-19T15:07:58.000Z | 2019-11-24T14:08:55.000Z | poetry/packages/constraints/any_constraint.py | vanyakosmos/poetry | b218969107e49dc57e65dbc0d349e83cbe1f44a8 | [
"MIT"
] | 18 | 2020-01-15T04:11:31.000Z | 2020-06-30T13:24:27.000Z | poetry/packages/constraints/any_constraint.py | vanyakosmos/poetry | b218969107e49dc57e65dbc0d349e83cbe1f44a8 | [
"MIT"
] | 1 | 2021-04-08T03:26:23.000Z | 2021-04-08T03:26:23.000Z | from .base_constraint import BaseConstraint
from .empty_constraint import EmptyConstraint
class AnyConstraint(BaseConstraint):
def allows(self, other):
return True
def allows_all(self, other):
return True
def allows_any(self, other):
return True
def difference(self, other):
... | 18.736842 | 45 | 0.622191 | 619 | 0.869382 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0.004213 |