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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
815eed7c81aa394ca156f60562a609ed561c8f68 | 4,253 | py | Python | tests/tests.py | ActivityWatch/activitywatch-old | e69b071ff701368cee7bac5d01e5936c200e58be | [
"MIT"
] | 4 | 2017-01-30T16:27:18.000Z | 2017-09-28T19:14:13.000Z | tests/tests.py | ActivityWatch/activitywatch-old | e69b071ff701368cee7bac5d01e5936c200e58be | [
"MIT"
] | null | null | null | tests/tests.py | ActivityWatch/activitywatch-old | e69b071ff701368cee7bac5d01e5936c200e58be | [
"MIT"
] | 2 | 2020-06-22T07:11:51.000Z | 2020-12-11T02:46:22.000Z | from copy import copy
from itertools import groupby
import unittest
from datetime import datetime, timedelta
from typing import List
from activitywatch.base import Watcher, Activity, Logger
from activitywatch.settings import Settings
from activitywatch.utils import floor_datetime, ceil_datetime
from activitywatch.filt... | 32.715385 | 105 | 0.652481 | 3,786 | 0.890195 | 0 | 0 | 0 | 0 | 0 | 0 | 78 | 0.01834 |
815ef73f8d3016d9f5e536e42e63dc78b0cafca1 | 254,077 | py | Python | lang/it/basic_vocabulary_it.py | gtoffoli/commons-cops | e4b1f556c550e25bb2e6a9eabe8db963877c08d3 | [
"MIT"
] | 5 | 2016-11-13T02:41:02.000Z | 2020-01-20T10:01:26.000Z | lang/it/basic_vocabulary_it.py | gtoffoli/commons | 8b51a08a37c6d0b38fd4ecde82c20036c2dc168f | [
"MIT"
] | null | null | null | lang/it/basic_vocabulary_it.py | gtoffoli/commons | 8b51a08a37c6d0b38fd4ecde82c20036c2dc168f | [
"MIT"
] | null | null | null | voc_it = [
['a', 'noun', 'c'],
['a', 'preposition', 'a'],
['abbagliante', 'pres_part', 'c'],
['abbagliante', 'adjective', 'c'],
['abbagliante', 'noun', 'c'],
['abbaiare', 'verb', 'c'],
['abbandonare', 'verb', 'a'],
['abbandonato', 'past_part', 'b'],
['abbandonato', 'adjective', 'b'],
['abbandono', 'noun', 'b'],
['abbas... | 28.130757 | 40 | 0.50236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 181,972 | 0.715794 |
81603469dc6c0438b2388abedcbbaed330402503 | 940 | py | Python | pytorch/torch/_utils_internal.py | raghavnauhria/whatmt | c20483a437c82936cb0fb8080925e37b9c4bba87 | [
"MIT"
] | 15 | 2019-08-10T02:36:38.000Z | 2021-07-14T13:45:32.000Z | torch/_utils_internal.py | wxwoods/mctorch | 7cd6eb51fdd01fa75ed9245039a4f145ba342de2 | [
"BSD-3-Clause"
] | 7 | 2019-10-21T03:08:51.000Z | 2022-03-11T23:54:28.000Z | pytorch/torch/_utils_internal.py | raghavnauhria/whatmt | c20483a437c82936cb0fb8080925e37b9c4bba87 | [
"MIT"
] | 5 | 2019-09-27T02:41:40.000Z | 2021-11-05T20:40:49.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
import os
# this arbitrary-looking assortment of functionality is provided here
# to have a central place for overrideable behavior. The motivating
# use is the FB build environment, where this source file is replaced
# by an equivalen... | 24.736842 | 82 | 0.774468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 243 | 0.258511 |
816071ad63a52503bfce3572b1ef2ec295dea013 | 9,099 | py | Python | libs/models.py | aquastripe/DenseCLIP | 9481bc4aac39265eb313041ae53b8f33d755508b | [
"Apache-2.0"
] | 7 | 2022-02-02T14:34:38.000Z | 2022-03-21T09:54:14.000Z | libs/models.py | aquastripe/DenseCLIP | 9481bc4aac39265eb313041ae53b8f33d755508b | [
"Apache-2.0"
] | null | null | null | libs/models.py | aquastripe/DenseCLIP | 9481bc4aac39265eb313041ae53b8f33d755508b | [
"Apache-2.0"
] | null | null | null | import json
from collections import OrderedDict
from typing import Union, List
import clip
import torch
import torch.nn as nn
import torch.nn.functional as F
from libs.definitions import ROOT
label_file = ROOT / 'imagenet_class_index.json'
with open(label_file, 'r') as f:
labels = json.load(f)
_DEFAULT_CLASSNAM... | 35.964427 | 116 | 0.593032 | 6,278 | 0.689966 | 0 | 0 | 2,135 | 0.234641 | 0 | 0 | 2,660 | 0.29234 |
8160fc2ecf8175573434885167d35e68b574a5af | 11,463 | py | Python | src/basset_sick_loss.py | shtoneyan/Basset | b6c7f8995bb4f8fc37eccf3ee0f78478beef51d7 | [
"MIT"
] | 248 | 2015-10-06T12:30:53.000Z | 2022-02-02T20:30:34.000Z | src/basset_sick_loss.py | Deepstatsanalysis/Basset | 18753ad9ff5a46291021a0fa1abaad037b6f64f0 | [
"MIT"
] | 51 | 2015-10-08T04:57:41.000Z | 2021-08-12T19:53:04.000Z | src/basset_sick_loss.py | Deepstatsanalysis/Basset | 18753ad9ff5a46291021a0fa1abaad037b6f64f0 | [
"MIT"
] | 120 | 2015-10-15T00:49:44.000Z | 2022-02-16T21:17:17.000Z | #!/usr/bin/env python
from __future__ import print_function
from optparse import OptionParser
import os
import random
import subprocess
import matplotlib
matplotlib.use('Agg')
import numpy as np
import matplotlib.pyplot as plt
import pysam
from scipy.stats import binom
from scipy.stats.mstats import mquantiles
import... | 34.527108 | 175 | 0.566693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,715 | 0.324086 |
816115c45af8c3075e38530126280e891f465fb7 | 1,657 | py | Python | level2/huge/split_huge_from_tar_strace.py | fishilico/sstic-2016 | 9a05bb18df4c8d2e76f1e30fda6b38b1bc930e8c | [
"Beerware"
] | null | null | null | level2/huge/split_huge_from_tar_strace.py | fishilico/sstic-2016 | 9a05bb18df4c8d2e76f1e30fda6b38b1bc930e8c | [
"Beerware"
] | null | null | null | level2/huge/split_huge_from_tar_strace.py | fishilico/sstic-2016 | 9a05bb18df4c8d2e76f1e30fda6b38b1bc930e8c | [
"Beerware"
] | 1 | 2020-04-03T06:19:11.000Z | 2020-04-03T06:19:11.000Z | #!/usr/bin/env python3
import codecs
import re
def trans_addr(addr):
"""Traduit une position de fichier en une adresse du programme"""
if addr < 0x1000:
return 0
if 0x0000000000001000 <= addr < 0x0000000000001000 + 0x00001ef000000000:
return 0x00002b0000000000 + addr - 0x0000000000001000
... | 36.822222 | 76 | 0.569101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 315 | 0.189988 |
81617162fc6604315b045e09dee8878d1bf83430 | 4,826 | py | Python | UI/test/ui_test.py | tunapro1234/ai.destroy | 0c0e1be378e40ef069fcafaa91eb9c98de31520f | [
"MIT"
] | null | null | null | UI/test/ui_test.py | tunapro1234/ai.destroy | 0c0e1be378e40ef069fcafaa91eb9c98de31520f | [
"MIT"
] | null | null | null | UI/test/ui_test.py | tunapro1234/ai.destroy | 0c0e1be378e40ef069fcafaa91eb9c98de31520f | [
"MIT"
] | null | null | null | import pygame_gui
import pygame
class colors:
black = "#000000"
dimgrey = "#696969" # lmao
darkslategray = "#2F4F4F"
TITLE = "TUNAPRO1234"
BACKGROUND = colors.darkslategray
WIDTH, HEIGHT = 1920, 1080
"""
Hızlıca bir plan yapacağım
Neural ağları kontrol edebileceğimiz küçük bir framework
Ağların geli... | 33.282759 | 187 | 0.643804 | 257 | 0.052675 | 0 | 0 | 0 | 0 | 0 | 0 | 1,499 | 0.307235 |
8163184bea4450d8faedd6f3d068c99c6560b188 | 2,814 | py | Python | tests/test_temperature_system.py | SmartSleepIoT/SmartSleepCoding | 21c19489f0c477cbfbabd3a1d232f526f84a9e49 | [
"BSD-3-Clause"
] | null | null | null | tests/test_temperature_system.py | SmartSleepIoT/SmartSleepCoding | 21c19489f0c477cbfbabd3a1d232f526f84a9e49 | [
"BSD-3-Clause"
] | 41 | 2021-10-20T17:54:59.000Z | 2022-02-02T20:43:53.000Z | tests/test_temperature_system.py | SmartSleepIoT/SmartSleepCoding | 21c19489f0c477cbfbabd3a1d232f526f84a9e49 | [
"BSD-3-Clause"
] | null | null | null | import time
import pytest
from flask import g
from flask import session
import paho.mqtt.client as paho
from SmartSleep.db import get_db
from flask import json
import runpy
msg_nr = 0
messages = [""]
broker = 'broker.emqx.io'
port = 1883
def update_contor():
global msg_nr
msg_nr += 1
def on_message(client... | 29.621053 | 105 | 0.646411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 926 | 0.329069 |
81642e5d95ded6a23159027c35921f4b03706531 | 136 | py | Python | 3_gabor/model/gabor_rf/maprf/invlink.py | mackelab/IdentifyMechanisticModels_2020 | b93c90ec6156ae5f8afee6aaac7317373e9caf5e | [
"MIT"
] | 3 | 2020-10-23T02:53:11.000Z | 2021-03-12T11:04:37.000Z | 3_gabor/model/gabor_rf/maprf/invlink.py | mackelab/IdentifyMechanisticModels_2020 | b93c90ec6156ae5f8afee6aaac7317373e9caf5e | [
"MIT"
] | null | null | null | 3_gabor/model/gabor_rf/maprf/invlink.py | mackelab/IdentifyMechanisticModels_2020 | b93c90ec6156ae5f8afee6aaac7317373e9caf5e | [
"MIT"
] | 1 | 2021-07-28T08:38:05.000Z | 2021-07-28T08:38:05.000Z | import theano.tensor as tt
def explin(x):
return tt.where(x >= 0, 1 + x, tt.exp(x))
def log_exp1p(x):
return tt.log1p(tt.exp(x))
| 12.363636 | 42 | 0.639706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
81643c548f00589437ba73490093135a47e9e5d0 | 470 | py | Python | readtest.py | pyEtherCAT/Test-Source | 32e7f36873cf311580acc25ab76db589e209e479 | [
"MIT"
] | null | null | null | readtest.py | pyEtherCAT/Test-Source | 32e7f36873cf311580acc25ab76db589e209e479 | [
"MIT"
] | null | null | null | readtest.py | pyEtherCAT/Test-Source | 32e7f36873cf311580acc25ab76db589e209e479 | [
"MIT"
] | null | null | null | from pyEtherCAT import MasterEtherCAT #ライブラリの読出し
nic = "eth0" # ネットワークカードのアドレスを記載
cat = MasterEtherCAT.MasterEtherCAT(nic)
ADP = 0x0000 #1台目
ADDR = 0x0E00 #コアレジスタのアドレス
cat.APRD(IDX=0x00, ADP=ADP, ADO=ADDR, DATA=[0,0,0,0,0,0,0,0]) #DATAは0を8個(64bit分)の枠を指示
(DATA, WKC) = cat.socket_read() #結果を読出し
print("[0x{:04X}]= 0x{:... | 47 | 158 | 0.691489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 306 | 0.503289 |
8167b0d56a737d008f46fbbcfb74a28e00ab2a2b | 1,353 | py | Python | python/dataingest/grammar/dmo/python_loc_parser.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/dataingest/grammar/dmo/python_loc_parser.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/dataingest/grammar/dmo/python_loc_parser.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import pprint
from base import BaseObject
from base import FileIO
class PythonLOCParser(BaseObject):
""" Parse T/LOC from a Python File
"""
def __init__(self,
file_path: str,
is_debug: bool = False):
"""
C... | 24.160714 | 103 | 0.554324 | 1,235 | 0.912786 | 0 | 0 | 0 | 0 | 0 | 0 | 422 | 0.311899 |
8168288e7e0624056cb2c2cd06a6e71eb7b00f91 | 255 | py | Python | time_series_data_generator/csv_to_df_generator.py | ArtHackDay-Plus1/ParameterServer | 5e6e57154d2d29e311b9a725fd3b9ac8c5b99a74 | [
"MIT"
] | null | null | null | time_series_data_generator/csv_to_df_generator.py | ArtHackDay-Plus1/ParameterServer | 5e6e57154d2d29e311b9a725fd3b9ac8c5b99a74 | [
"MIT"
] | 7 | 2018-03-10T09:44:34.000Z | 2018-06-17T09:44:59.000Z | time_series_data_generator/csv_to_df_generator.py | ArtHackDay-Plus1/ParameterServer | 5e6e57154d2d29e311b9a725fd3b9ac8c5b99a74 | [
"MIT"
] | 1 | 2018-03-10T04:56:01.000Z | 2018-03-10T04:56:01.000Z | import pandas as pd
import time
df = pd.read_csv("data/sample.csv")
for num in range(1000):
argx = str(df["x"][num:num+1].get_values())
argy = str(df["y"][num:num+1].get_values())
print("x:{0} / y:{1}".format(argx,argy))
time.sleep(0.1)
| 23.181818 | 47 | 0.611765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 38 | 0.14902 |
816842032e46719c27ed0ea91d613473a3f094ca | 601 | py | Python | architecture_tool_django/graphdefs/urls.py | goldginkgo/architecture_tool_django | e4229c5938a4dd01d0877afa7b93daf68e09283b | [
"MIT"
] | 1 | 2021-08-13T01:37:29.000Z | 2021-08-13T01:37:29.000Z | architecture_tool_django/graphdefs/urls.py | goldginkgo/architecture_tool_django | e4229c5938a4dd01d0877afa7b93daf68e09283b | [
"MIT"
] | null | null | null | architecture_tool_django/graphdefs/urls.py | goldginkgo/architecture_tool_django | e4229c5938a4dd01d0877afa7b93daf68e09283b | [
"MIT"
] | 1 | 2021-07-19T07:57:54.000Z | 2021-07-19T07:57:54.000Z | from django.urls import path
from . import views
app_name = "graphs"
urlpatterns = [
path("graphs/", views.GraphListView.as_view(), name="graph.list"),
path("graphs/create/", views.GraphCreateView.as_view(), name="graph.create"),
path(
"graphs/<str:pk>/",
views.GraphDetailView.as_view(),
... | 24.04 | 81 | 0.587354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 169 | 0.281198 |
81690ba836e0e2d1c0fdfb89754bbbb996e53c02 | 2,823 | py | Python | lib/utils/blob.py | TheRevanchist/DeepWatershedDetection | 6d8f3b3ca6db67bcebef8e18fb11248e15bd9dc4 | [
"MIT"
] | null | null | null | lib/utils/blob.py | TheRevanchist/DeepWatershedDetection | 6d8f3b3ca6db67bcebef8e18fb11248e15bd9dc4 | [
"MIT"
] | null | null | null | lib/utils/blob.py | TheRevanchist/DeepWatershedDetection | 6d8f3b3ca6db67bcebef8e18fb11248e15bd9dc4 | [
"MIT"
] | null | null | null | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick - extended by Lukas Tuggener
# --------------------------------------------------------
"""Blob helper functions."""
from __future... | 32.825581 | 111 | 0.631598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 726 | 0.257173 |
81691bebff51090814a13a3ea3f9262d90d38a7b | 1,022 | py | Python | edlm/convert/_get_media_folders.py | etcher-be/EDLM | 7b25c85252fd15c2c222b00271f7a32e335db704 | [
"MIT"
] | null | null | null | edlm/convert/_get_media_folders.py | etcher-be/EDLM | 7b25c85252fd15c2c222b00271f7a32e335db704 | [
"MIT"
] | 4 | 2020-03-24T16:53:26.000Z | 2020-06-26T08:31:13.000Z | edlm/convert/_get_media_folders.py | etcher-be/EDLM | 7b25c85252fd15c2c222b00271f7a32e335db704 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Gathers the media folders
"""
import elib
from ._context import Context
def get_media_folders(ctx: Context):
"""
Gathers the media folders
"""
ctx.info('gathering media folders')
media_folders = []
this_folder = ctx.source_folder
while True:
ctx.debug(f'trave... | 28.388889 | 105 | 0.672211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 370 | 0.362035 |
8169c20b93a9491060201043f0c1a523fd5bc8ec | 1,924 | py | Python | twister2/python-support/src/main/python/twister2/tset/TLink.py | pulasthi/twister2 | 40b73bdf7dcb778d957c3f146baf825a97dceae5 | [
"Apache-2.0"
] | 63 | 2017-08-31T10:02:52.000Z | 2021-12-18T21:42:14.000Z | twister2/python-support/src/main/python/twister2/tset/TLink.py | pulasthi/twister2 | 40b73bdf7dcb778d957c3f146baf825a97dceae5 | [
"Apache-2.0"
] | 284 | 2017-10-20T15:35:26.000Z | 2020-09-11T15:25:40.000Z | twister2/python-support/src/main/python/twister2/tset/TLink.py | pulasthi/twister2 | 40b73bdf7dcb778d957c3f146baf825a97dceae5 | [
"Apache-2.0"
] | 44 | 2017-08-21T19:47:57.000Z | 2020-11-22T22:45:50.000Z | from inspect import signature
import twister2.tset.TSet as ts
from twister2.utils import function_wrapper
class TLink:
def __init__(self, java_ref, env):
self.__java_ref = java_ref
self.__env = env
def map(self, lam):
map_wrapper = function_wrapper(lam)
map_func_java_ref = s... | 42.755556 | 96 | 0.72817 | 1,814 | 0.942827 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 0.043139 |
816e5b3d645c0e4cb41592db326d16685c653103 | 9,373 | py | Python | e2cnn/nn/modules/nonlinearities/concatenated.py | ziatdinovmax/e2cnn | e486a0d2cec71f2bde2d61f2f1315922f2883cee | [
"BSD-3-Clause"
] | null | null | null | e2cnn/nn/modules/nonlinearities/concatenated.py | ziatdinovmax/e2cnn | e486a0d2cec71f2bde2d61f2f1315922f2883cee | [
"BSD-3-Clause"
] | null | null | null | e2cnn/nn/modules/nonlinearities/concatenated.py | ziatdinovmax/e2cnn | e486a0d2cec71f2bde2d61f2f1315922f2883cee | [
"BSD-3-Clause"
] | null | null | null | from e2cnn.gspaces import *
from e2cnn.nn import FieldType
from e2cnn.nn import GeometricTensor
from e2cnn.group import Representation
from e2cnn.group.representation import build_from_discrete_group_representation
from ..equivariant_module import EquivariantModule
import torch
from typing import List, Tuple, Any
i... | 37.047431 | 124 | 0.559159 | 8,980 | 0.958071 | 0 | 0 | 5,327 | 0.568335 | 0 | 0 | 3,686 | 0.393257 |
81710a8f5de8e268c2f9c31947a6e69ae41e9b04 | 2,551 | py | Python | modules/gathering/host_gathering.py | anouarbensaad/VulnX | 2f9f46e59f28ceb6d5cf3bfacd9810d43b4b25cb | [
"MIT"
] | 10 | 2019-05-10T04:43:54.000Z | 2019-05-16T00:45:46.000Z | modules/gathering/host_gathering.py | anouarbensaad/VulnX | 2f9f46e59f28ceb6d5cf3bfacd9810d43b4b25cb | [
"MIT"
] | null | null | null | modules/gathering/host_gathering.py | anouarbensaad/VulnX | 2f9f46e59f28ceb6d5cf3bfacd9810d43b4b25cb | [
"MIT"
] | 8 | 2019-05-13T04:25:11.000Z | 2019-05-15T02:47:49.000Z | import requests
import re
import socket
from common.colors import bad,que, info, good,run,W,end
from common.uriParser import parsing_url as hostd
class GatherHost():
def __init__(self,url,headers=None):
self.url = url
self.headers = headers
def match_info(self,regex,data):
match ... | 42.516667 | 95 | 0.53822 | 2,404 | 0.942376 | 0 | 0 | 0 | 0 | 0 | 0 | 529 | 0.20737 |
8171ba68e87f53d5c2ecb6dd90deb2acd88e328d | 34,379 | py | Python | datastore/core/basic.py | datastore/datastore | 7ccf0cd4748001d3dbf5e6dda369b0f63e0269d3 | [
"MIT"
] | 65 | 2015-03-22T23:43:48.000Z | 2022-03-25T16:10:33.000Z | datastore/core/basic.py | datastore/datastore | 7ccf0cd4748001d3dbf5e6dda369b0f63e0269d3 | [
"MIT"
] | 3 | 2015-03-11T21:57:23.000Z | 2019-07-26T16:20:29.000Z | datastore/core/basic.py | datastore/datastore | 7ccf0cd4748001d3dbf5e6dda369b0f63e0269d3 | [
"MIT"
] | 14 | 2015-01-23T17:03:33.000Z | 2020-02-03T06:35:04.000Z |
from key import Key
from query import Cursor
class Datastore(object):
'''A Datastore represents storage for any key-value pair.
Datastores are general enough to be backed by all kinds of different storage:
in-memory caches, databases, a remote datastore, flat files on disk, etc.
The general idea is to wrap ... | 28.53029 | 80 | 0.651706 | 33,149 | 0.964222 | 1,078 | 0.031356 | 842 | 0.024492 | 0 | 0 | 20,847 | 0.606388 |
8173b9a0c93895ba388cef8eeda4fb14eb4184e3 | 15,988 | py | Python | website/admin.py | jonfroehlich/makeabilitylabwebsite | 0b322b5a172cf1d4edc63559e3de713ad3e3542c | [
"MIT"
] | 2 | 2017-06-19T02:24:48.000Z | 2018-10-25T09:14:59.000Z | website/admin.py | jonfroehlich/makeabilitylabwebsite | 0b322b5a172cf1d4edc63559e3de713ad3e3542c | [
"MIT"
] | 571 | 2017-06-14T13:38:45.000Z | 2020-07-17T18:15:58.000Z | website/admin.py | jonfroehlich/makeabilitylabwebsite | 0b322b5a172cf1d4edc63559e3de713ad3e3542c | [
"MIT"
] | 7 | 2017-12-06T21:51:29.000Z | 2020-06-18T19:58:36.000Z | from django.contrib import admin
from django.contrib.admin import widgets
from .models import Person, Publication, Position, Talk, Project, Poster, Keyword, News, Banner, Video, Project_header, Photo, Project_umbrella, Project_Role, Sponsor
from website.admin_list_filters import PositionRoleListFilter, PositionTitleLis... | 58.99631 | 185 | 0.714411 | 14,197 | 0.887978 | 0 | 0 | 0 | 0 | 0 | 0 | 7,525 | 0.470665 |
8173fb74546ca4fcfb60600f03ab6b477c4abacb | 6,191 | py | Python | python/annotation_orthologs_inference.py | liebermanlab/wide-variant | 2fe4c54d1e4bcf0e5e06313cc9696588ab105653 | [
"Unlicense"
] | null | null | null | python/annotation_orthologs_inference.py | liebermanlab/wide-variant | 2fe4c54d1e4bcf0e5e06313cc9696588ab105653 | [
"Unlicense"
] | null | null | null | python/annotation_orthologs_inference.py | liebermanlab/wide-variant | 2fe4c54d1e4bcf0e5e06313cc9696588ab105653 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 26 21:39:04 2019
@author: fmk
"""
import argparse,subprocess,string,random
import pandas as pd
''' positional and optional argument parser'''
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
... | 45.189781 | 182 | 0.65466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,597 | 0.41948 |
81740534e476d32c799f65e43f16716d4ed45822 | 708 | py | Python | tests/test_vtable.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 6,132 | 2015-08-06T23:24:47.000Z | 2022-03-31T21:49:34.000Z | tests/test_vtable.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 2,272 | 2015-08-10T08:40:07.000Z | 2022-03-31T23:46:44.000Z | tests/test_vtable.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 1,155 | 2015-08-06T23:37:39.000Z | 2022-03-31T05:54:11.000Z | import os
import angr
test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests')
def test_vtable_extraction_x86_64():
p = angr.Project(os.path.join(test_location, "x86_64", "cpp_classes"), auto_load_libs=False)
vtables_sizes = {0x403cb0: 24, 0x403cd8: 1... | 32.181818 | 107 | 0.689266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 56 | 0.079096 |
81741edd16ac8dabfdb435a60121ed91382e9d89 | 465 | py | Python | sendmail.py | loitd/buzreportgenerator | 8d07be40b68859ca15173f3b229dd93f6bb39809 | [
"MIT"
] | null | null | null | sendmail.py | loitd/buzreportgenerator | 8d07be40b68859ca15173f3b229dd93f6bb39809 | [
"MIT"
] | null | null | null | sendmail.py | loitd/buzreportgenerator | 8d07be40b68859ca15173f3b229dd93f6bb39809 | [
"MIT"
] | null | null | null | from zeep import Client
def test():
client = Client('http://www.dneonline.com/calculator.asmx?wsdl')
result = client.service.Add(100,220)
print(result)
def test2():
client = Client('http://172.16.237.11:8080/SendNotify_Interface_Gmail/services/Notify?wsdl')
result = client.service.sendEmail("loitd... | 33.214286 | 131 | 0.696774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 213 | 0.458065 |
8174be4107d534513138717c81ca4815dbd17aaf | 2,760 | py | Python | pommerman/agents/http_agent.py | KaixiangLin/playground | a0eb299f4772bada1c528a881f3bf26404b131aa | [
"Apache-2.0"
] | 2 | 2018-11-10T08:31:13.000Z | 2018-11-13T08:16:45.000Z | pommerman/agents/http_agent.py | KaixiangLin/playground | a0eb299f4772bada1c528a881f3bf26404b131aa | [
"Apache-2.0"
] | null | null | null | pommerman/agents/http_agent.py | KaixiangLin/playground | a0eb299f4772bada1c528a881f3bf26404b131aa | [
"Apache-2.0"
] | null | null | null | '''The HTTP agent - provides observation using http push to remote
agent and expects action in the reply'''
import json
import time
import os
import threading
import requests
from . import BaseAgent
from .. import utility
from .. import characters
class HttpAgent(BaseAgent):
"""The HTTP Agent that connects to... | 34.074074 | 81 | 0.544565 | 2,505 | 0.907609 | 0 | 0 | 0 | 0 | 0 | 0 | 597 | 0.216304 |
8174d6a81d47ed944222a745013e7d241d84e72a | 737 | py | Python | cacao_app/event/serializers.py | CacaoMovil/guia-de-cacao-django | 14d18edb76502736f6f31955509c3b413f1f91fc | [
"BSD-3-Clause"
] | 1 | 2016-03-07T17:03:45.000Z | 2016-03-07T17:03:45.000Z | cacao_app/event/serializers.py | CacaoMovil/guia-de-cacao-django | 14d18edb76502736f6f31955509c3b413f1f91fc | [
"BSD-3-Clause"
] | 4 | 2016-04-29T20:48:31.000Z | 2021-06-10T20:39:26.000Z | cacao_app/event/serializers.py | CacaoMovil/guia-de-cacao-django | 14d18edb76502736f6f31955509c3b413f1f91fc | [
"BSD-3-Clause"
] | 3 | 2016-03-04T19:46:45.000Z | 2016-05-11T19:46:00.000Z | # -*- coding: utf-8 -*-
from rest_framework import serializers
from django_countries.serializer_fields import CountryField
from .models import Event, CountryEvent
class CountryEventSerializer(serializers.ModelSerializer):
code = serializers.ReadOnlyField(source='country.code')
name = serializers.SerializerM... | 25.413793 | 70 | 0.693351 | 566 | 0.767978 | 0 | 0 | 0 | 0 | 0 | 0 | 96 | 0.130258 |
817503f7a5b9852ce0db8730044ea4170fe4eb91 | 13,998 | py | Python | examples/map.py | jlsajfj/NBT | a7aaaadce423cd50f941ccd5cd25fbd071651336 | [
"MIT"
] | 241 | 2015-01-14T22:49:03.000Z | 2022-03-17T06:46:44.000Z | examples/map.py | jlsajfj/NBT | a7aaaadce423cd50f941ccd5cd25fbd071651336 | [
"MIT"
] | 78 | 2015-01-02T15:01:06.000Z | 2022-03-12T16:06:23.000Z | examples/map.py | jlsajfj/NBT | a7aaaadce423cd50f941ccd5cd25fbd071651336 | [
"MIT"
] | 87 | 2015-01-24T20:02:29.000Z | 2022-03-17T21:32:24.000Z | #!/usr/bin/env python
"""
Prints a map of the entire world.
"""
import os, sys
import math
from struct import pack
# local module
try:
import nbt
except ImportError:
# nbt not in search path. Let's see if it can be found in the parent folder
extrasearchpath = os.path.realpath(os.path.join(__file__,os.pardi... | 41.660714 | 128 | 0.473282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,260 | 0.375768 |
81763b53608a015d4f73d9be3a5324c6bd08db61 | 136 | py | Python | flaskcbv/protos/simple/apps/main/urls.py | procool/flaskcbv | 18c254c10ef03145073e1264a06a0313e811ad29 | [
"BSD-2-Clause"
] | 1 | 2020-02-24T13:08:16.000Z | 2020-02-24T13:08:16.000Z | flaskcbv/protos/simple/apps/main/urls.py | procool/flaskcbv | 18c254c10ef03145073e1264a06a0313e811ad29 | [
"BSD-2-Clause"
] | null | null | null | flaskcbv/protos/simple/apps/main/urls.py | procool/flaskcbv | 18c254c10ef03145073e1264a06a0313e811ad29 | [
"BSD-2-Clause"
] | null | null | null | from flaskcbv.url import Url, make_urls
from .views import mainView
namespases = make_urls(
Url('', mainView(), name="main"),
)
| 13.6 | 39 | 0.691176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0.058824 |
81770013c6cc12c6db69c1cb5d883f8060329eda | 536 | py | Python | main/permissions.py | hellojoshuatonga/notepik | 8f251fe9a689a9be8248d4da6260fe7c8742e3c0 | [
"MIT"
] | null | null | null | main/permissions.py | hellojoshuatonga/notepik | 8f251fe9a689a9be8248d4da6260fe7c8742e3c0 | [
"MIT"
] | null | null | null | main/permissions.py | hellojoshuatonga/notepik | 8f251fe9a689a9be8248d4da6260fe7c8742e3c0 | [
"MIT"
] | null | null | null | # Rest framework
from rest_framework import permissions
class IsAuthorOrReadOnly(permissions.BasePermission):
"""
Object level permission. Check if the requesting user is the author or not. If he/she the author then we will give him/her a read and write permission otherwise ready only
"""
def has_obje... | 35.733333 | 175 | 0.718284 | 477 | 0.889925 | 0 | 0 | 0 | 0 | 0 | 0 | 247 | 0.460821 |
8177b1f754a6ce02d1d064390b7211e8eae1df80 | 8,595 | py | Python | femagtools/vtu.py | dapu/femagtools | 95eaf750adc2013232cdf482e523b3900ac6eb08 | [
"BSD-2-Clause"
] | null | null | null | femagtools/vtu.py | dapu/femagtools | 95eaf750adc2013232cdf482e523b3900ac6eb08 | [
"BSD-2-Clause"
] | null | null | null | femagtools/vtu.py | dapu/femagtools | 95eaf750adc2013232cdf482e523b3900ac6eb08 | [
"BSD-2-Clause"
] | null | null | null | """
femagtools.vtu
~~~~~~~~~~~~~~
Read FEMAG vtu files
"""
import vtk
import pathlib
import numpy as np
class Reader(object):
'''Class to read vtu-files'''
def __init__(self, pathname):
'''Read the vtu-files
Parameters
----------
pathname : str
Directo... | 31.254545 | 83 | 0.52135 | 8,303 | 0.966027 | 0 | 0 | 0 | 0 | 0 | 0 | 2,615 | 0.304247 |
81780d1d21d48080345dc52c64611a0acffa03d7 | 232 | py | Python | __init__.py | rolc/python-package | 272fb6da9d7aa3c2a0c53dea6d4e958409ac5d12 | [
"MIT"
] | null | null | null | __init__.py | rolc/python-package | 272fb6da9d7aa3c2a0c53dea6d4e958409ac5d12 | [
"MIT"
] | null | null | null | __init__.py | rolc/python-package | 272fb6da9d7aa3c2a0c53dea6d4e958409ac5d12 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#-------------------------------IMPORT--------------------------------#
from lib import *
#-------------------------------EXPORT--------------------------------#
__all__ = ['<#PREFIX#>_app','<#PREFIX#>_index']
| 23.2 | 71 | 0.284483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 193 | 0.831897 |
81787499b7aab46ab4834d4e0428415d4b205073 | 916 | py | Python | svm-rank/bag_of_words.py | Anthony-Alridge/individual_project | 9013aba2de92099dea5a703486da3dfab1dfbb61 | [
"MIT"
] | null | null | null | svm-rank/bag_of_words.py | Anthony-Alridge/individual_project | 9013aba2de92099dea5a703486da3dfab1dfbb61 | [
"MIT"
] | null | null | null | svm-rank/bag_of_words.py | Anthony-Alridge/individual_project | 9013aba2de92099dea5a703486da3dfab1dfbb61 | [
"MIT"
] | null | null | null | from collections import Counter
import numpy as np
def keep_word(word):
return word.is_alpha
def unique_words(problems):
return set([word.lemma_ for problem in problems for word in problem.tokens() if keep_word(word)])
def create_word2idx(vocab):
return {word: idx for idx, word in enumerate(vocab)}
... | 28.625 | 101 | 0.663755 | 595 | 0.649563 | 0 | 0 | 0 | 0 | 0 | 0 | 79 | 0.086245 |
81788a0ffc02bedb32998891f0a147adfc80c30e | 1,507 | py | Python | pymps/ansatz/tests/test_sweeper.py | GiggleLiu/pymps | c8314581010d68d3fa34af6e87b6af2969fc261d | [
"MIT"
] | 4 | 2018-02-17T05:35:54.000Z | 2021-09-12T10:14:57.000Z | pymps/ansatz/tests/test_sweeper.py | GiggleLiu/pymps | c8314581010d68d3fa34af6e87b6af2969fc261d | [
"MIT"
] | null | null | null | pymps/ansatz/tests/test_sweeper.py | GiggleLiu/pymps | c8314581010d68d3fa34af6e87b6af2969fc261d | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
Tests for MPS and MPO
'''
from numpy import *
import matplotlib.pyplot as plt
from numpy.testing import dec, assert_, assert_raises, assert_almost_equal, assert_allclose
import pdb
from ..sweep import *
def test_iterator():
start = (1, '->', 2)
stop = (3, '<-', 1)
print('Testing ite... | 31.395833 | 91 | 0.512276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 213 | 0.14134 |
8178e5a5cdd16d8a39e43e9f1e2b33dd9e55953c | 4,471 | py | Python | ui/numbered_menu.py | LouisPi/PiPortableRecorder | 430a4b6e1e869cbd68fd89bbf97261710fd7db6b | [
"Apache-2.0",
"MIT"
] | 51 | 2017-12-03T21:59:13.000Z | 2021-01-02T17:13:34.000Z | ui/numbered_menu.py | LouisPi/PiPortableRecorder | 430a4b6e1e869cbd68fd89bbf97261710fd7db6b | [
"Apache-2.0",
"MIT"
] | 153 | 2017-10-27T19:59:46.000Z | 2020-01-14T23:58:57.000Z | ui/numbered_menu.py | LouisPi/PiPortableRecorder | 430a4b6e1e869cbd68fd89bbf97261710fd7db6b | [
"Apache-2.0",
"MIT"
] | 26 | 2017-11-16T11:10:56.000Z | 2022-03-29T18:44:48.000Z | from threading import Lock
from time import time
from ui import Menu
from ui.utils import clamp, check_value_lock, to_be_foreground
class NumberedMenu(Menu):
"""
This Menu allows the user to jump to entries using the numpad. If the menu is 10 entries or less
the navigation is instant. Otherwise, it lets ... | 33.616541 | 116 | 0.635652 | 4,335 | 0.969582 | 0 | 0 | 611 | 0.136658 | 0 | 0 | 960 | 0.214717 |
8179e93b1b83227b20bf562f4c5eea1ac565d48c | 358 | py | Python | Math/RussianPeasantMultiplication.py | kopok2/algorithms | efb6a423a8447d99584335e9fef8d9b3c74e2ad8 | [
"MIT"
] | null | null | null | Math/RussianPeasantMultiplication.py | kopok2/algorithms | efb6a423a8447d99584335e9fef8d9b3c74e2ad8 | [
"MIT"
] | null | null | null | Math/RussianPeasantMultiplication.py | kopok2/algorithms | efb6a423a8447d99584335e9fef8d9b3c74e2ad8 | [
"MIT"
] | null | null | null | # coding=utf-8
"""Russian Peasant Multiplication algorithm Python implementation."""
def russ_peasant(a, b):
res = 0
while b > 0:
if b & 1:
res += a
a <<= 1
b >>= 1
return res
if __name__ == '__main__':
for x in range(10):
for y in range(10):
p... | 18.842105 | 69 | 0.511173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 93 | 0.259777 |
817a13b6a8ab8c5ae685c931b654984848f5a51f | 36,420 | py | Python | bustime/requestmock.py | RemyPorter/BusTimeClient | a0bd3ef7e24e132e964e6847261ed6888e5735ee | [
"MIT"
] | 2 | 2017-06-24T14:10:42.000Z | 2018-02-16T20:44:07.000Z | bustime/requestmock.py | RemyPorter/BusTimeClient | a0bd3ef7e24e132e964e6847261ed6888e5735ee | [
"MIT"
] | null | null | null | bustime/requestmock.py | RemyPorter/BusTimeClient | a0bd3ef7e24e132e964e6847261ed6888e5735ee | [
"MIT"
] | null | null | null | from urllib.parse import urlparse, parse_qs
from io import BytesIO
import json
class MockRequest:
def getmethod(self, path):
apiend = "v2/"
start = path.find(apiend) + len(apiend)
return path[start:]
def urlopen(self, url):
output = BytesIO()
parsed = urlparse(url)
... | 337.222222 | 33,400 | 0.578913 | 36,318 | 0.997199 | 0 | 0 | 0 | 0 | 0 | 0 | 16,016 | 0.439758 |
817aa92cbced1c3e3227a2a7dec4ed035c84f33f | 1,589 | py | Python | Assignment 4/src/optim/lr_scheduler.py | vamsi3/CS763-IIT-Bombay | 2c4650587eee8bb15944b95101b7434746ec03af | [
"MIT"
] | 1 | 2022-01-28T12:21:36.000Z | 2022-01-28T12:21:36.000Z | Assignment 4/src/optim/lr_scheduler.py | vamsi3/IITB-Computer-Vision | 2c4650587eee8bb15944b95101b7434746ec03af | [
"MIT"
] | null | null | null | Assignment 4/src/optim/lr_scheduler.py | vamsi3/IITB-Computer-Vision | 2c4650587eee8bb15944b95101b7434746ec03af | [
"MIT"
] | null | null | null | import math
import torch
from bisect import bisect_right
class _LRScheduler:
def __init__(self, optimizer, last_epoch=-1):
self.optimizer = optimizer
self.base_lr = optimizer.lr
self.last_epoch = last_epoch
def step(self):
self.last_epoch += 1
self.optimizer.lr = self.... | 29.425926 | 120 | 0.668345 | 1,517 | 0.954688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
817af60b313398519be2e69061cd3bf593b81217 | 2,972 | py | Python | gluon/dal/adapters/teradata.py | lightcoder127/Web2py | d604816b487aaf758075805cffdb89f45dea906e | [
"BSD-3-Clause"
] | 2 | 2017-02-02T00:31:48.000Z | 2017-08-08T22:36:25.000Z | gluon/dal/adapters/teradata.py | crania/containerservices | 0ffbadb3b5a259abc74ed433b69bf6342b99ef83 | [
"BSD-3-Clause"
] | null | null | null | gluon/dal/adapters/teradata.py | crania/containerservices | 0ffbadb3b5a259abc74ed433b69bf6342b99ef83 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from .._globals import IDENTITY
from ..connection import ConnectionPool
from .base import BaseAdapter
class TeradataAdapter(BaseAdapter):
drivers = ('pyodbc',)
types = {
'boolean': 'CHAR(1)',
'string': 'VARCHAR(%(length)s)',
'text': 'VARCHAR(2000)',
'j... | 38.102564 | 156 | 0.601615 | 2,842 | 0.956258 | 0 | 0 | 0 | 0 | 0 | 0 | 1,214 | 0.408479 |
817bffa6766be54af974175321c8e15902437d0a | 8,367 | py | Python | conan_tests/external_tools/vswhere_test.py | conan-io/test | 273835a701aca3934694dfa1ec082e58d5332660 | [
"MIT"
] | 2 | 2019-02-09T10:18:25.000Z | 2020-12-15T22:22:03.000Z | conan_tests/external_tools/vswhere_test.py | conan-io/test | 273835a701aca3934694dfa1ec082e58d5332660 | [
"MIT"
] | 9 | 2018-02-22T21:42:17.000Z | 2020-10-16T03:54:19.000Z | conan_tests/external_tools/vswhere_test.py | conan-io/test | 273835a701aca3934694dfa1ec082e58d5332660 | [
"MIT"
] | 7 | 2017-12-19T09:35:31.000Z | 2020-09-23T16:17:59.000Z | import os
import platform
import unittest
import nose
from conans import tools
from conans.errors import ConanException
from conans.model.version import Version
from conans import __version__ as client_version
from conans.model import settings
from conans.test.utils.tools import TestClient
from conans.test.assets.vis... | 45.472826 | 126 | 0.676826 | 7,998 | 0.955898 | 0 | 0 | 0 | 0 | 0 | 0 | 2,802 | 0.334887 |
817dad7fd6fc56d0d2967576e42cee9331599cf9 | 7,797 | py | Python | pinliner/pinliner.py | minazukie/pinliner | 4d1f879a8df2b03e7335536735840274bbb26416 | [
"Apache-2.0"
] | 53 | 2016-03-29T10:30:41.000Z | 2022-03-23T17:49:38.000Z | pinliner/pinliner.py | minazukie/pinliner | 4d1f879a8df2b03e7335536735840274bbb26416 | [
"Apache-2.0"
] | 4 | 2017-07-21T15:21:54.000Z | 2022-03-17T19:51:07.000Z | pinliner/pinliner.py | minazukie/pinliner | 4d1f879a8df2b03e7335536735840274bbb26416 | [
"Apache-2.0"
] | 9 | 2017-07-21T18:05:45.000Z | 2022-01-15T19:57:00.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import argparse
import json
import os
from pinliner import __version__
import sys
TEMPLATE_FILE = 'importer.template'
TEMPLATE_PATTERN = '${CONTENTS}'
def output(cfg, what, newline=True):
# We need indentation for PEP8
cfg... | 36.434579 | 79 | 0.62896 | 236 | 0.030098 | 0 | 0 | 0 | 0 | 0 | 0 | 2,937 | 0.37457 |
817e1fdfe583e5b2b44c9f5c5fb7e9b12305519f | 305 | py | Python | list_s3_buckets.py | MarijaKalebota/aws-playground | 2aaf3da65ba3f0cc5c2c222a10659d219f9136e8 | [
"MIT"
] | null | null | null | list_s3_buckets.py | MarijaKalebota/aws-playground | 2aaf3da65ba3f0cc5c2c222a10659d219f9136e8 | [
"MIT"
] | null | null | null | list_s3_buckets.py | MarijaKalebota/aws-playground | 2aaf3da65ba3f0cc5c2c222a10659d219f9136e8 | [
"MIT"
] | null | null | null | from dotenv import load_dotenv
load_dotenv()
import os
import boto3
#s3 = boto3.resource('s3')
s3 = boto3.resource('s3', aws_access_key_id=os.environ.get("AWS_KEY_ID"),
aws_secret_access_key=os.environ.get("AWS_SECRET_KEY"))
for bucket in s3.buckets.all():
print(bucket.name)
| 23.461538 | 77 | 0.704918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 58 | 0.190164 |
817ee460ad53e44fa65e444a49afe839ce9a20b2 | 2,570 | py | Python | GAScore/testbench/hold_buffer.py | sharm294/shoal | db7dd08a70882585fb9740a39b57b4b7a48b3081 | [
"MIT"
] | 1 | 2021-04-12T06:41:33.000Z | 2021-04-12T06:41:33.000Z | GAScore/testbench/hold_buffer.py | UofT-HPRC/shoal | db7dd08a70882585fb9740a39b57b4b7a48b3081 | [
"MIT"
] | null | null | null | GAScore/testbench/hold_buffer.py | UofT-HPRC/shoal | db7dd08a70882585fb9740a39b57b4b7a48b3081 | [
"MIT"
] | null | null | null | import os
from sonar.testbench import Testbench, Module, TestVector, Thread
from sonar.interfaces import AXIS
from sonar_strToInt import strToInt
hold_buffer = Testbench.default('hold_buffer')
filepath = os.path.join(os.path.dirname(__file__), 'build/hold_buffer/')
dut = Module.default("DUT")
dut.add_clock_port('ap... | 27.934783 | 95 | 0.614008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 957 | 0.372374 |
8180ea48ed0eaf64449e035d61a657bb7146e229 | 16,957 | py | Python | vaxtools/utils/pair.py | menis/vaxtools | 221343d0a2b9ecefc777ff5a94cb12eaa1524813 | [
"MIT"
] | null | null | null | vaxtools/utils/pair.py | menis/vaxtools | 221343d0a2b9ecefc777ff5a94cb12eaa1524813 | [
"MIT"
] | null | null | null | vaxtools/utils/pair.py | menis/vaxtools | 221343d0a2b9ecefc777ff5a94cb12eaa1524813 | [
"MIT"
] | 1 | 2018-10-10T21:59:08.000Z | 2018-10-10T21:59:08.000Z | #!/usr/bin/env python
# filename: pair.py
#
# Copyright (c) 2015 Bryan Briney
# License: The MIT license (http://opensource.org/licenses/MIT)
#
# 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... | 37.766147 | 109 | 0.606062 | 9,357 | 0.551808 | 0 | 0 | 6,475 | 0.381848 | 0 | 0 | 6,529 | 0.385033 |
8182de99b8accab6efbe98871df960f416bdddf7 | 38,104 | py | Python | t3f/riemannian.py | robol/t3f | d61037ba9c03c344e9fc31fce46648347b762b39 | [
"MIT"
] | null | null | null | t3f/riemannian.py | robol/t3f | d61037ba9c03c344e9fc31fce46648347b762b39 | [
"MIT"
] | null | null | null | t3f/riemannian.py | robol/t3f | d61037ba9c03c344e9fc31fce46648347b762b39 | [
"MIT"
] | null | null | null | import tensorflow as tf
from t3f.tensor_train import TensorTrain
from t3f.tensor_train_batch import TensorTrainBatch
from t3f import shapes
from t3f import decompositions
def project_sum(what, where, weights=None):
"""Project sum of `what` TTs on the tangent space of `where` TT.
project_sum(what, x) = P_x(what)... | 42.90991 | 101 | 0.664943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11,466 | 0.300913 |
8184c1d8dc29034b686437e80c0929c8f140a87c | 262 | py | Python | dpauth/admin.py | askmeaboutlo0m/website | 3df97d061a425e7fbb3f173c78ff01d831575aa0 | [
"MIT"
] | 9 | 2017-06-04T15:46:05.000Z | 2021-09-04T23:28:03.000Z | dpauth/admin.py | askmeaboutlo0m/website | 3df97d061a425e7fbb3f173c78ff01d831575aa0 | [
"MIT"
] | 24 | 2018-02-10T04:29:00.000Z | 2021-10-01T16:01:04.000Z | dpauth/admin.py | askmeaboutlo0m/website | 3df97d061a425e7fbb3f173c78ff01d831575aa0 | [
"MIT"
] | 4 | 2020-03-23T03:42:32.000Z | 2022-03-16T17:01:09.000Z | from django.contrib import admin
from . import models
@admin.register(models.Username)
class UsernameAdmin(admin.ModelAdmin):
list_display = ('user', 'name', 'is_mod')
readonly_fields = ('normalized_name',)
search_fields = ('user__email', 'name')
| 23.818182 | 45 | 0.717557 | 171 | 0.652672 | 0 | 0 | 204 | 0.778626 | 0 | 0 | 56 | 0.21374 |
8188e19b101be322e95cf844a7e3d5f16f246e15 | 346 | py | Python | iptv_proxy/providers/beast/json_api.py | sfanous/IPTVProxy | 23047be01a229ef8f69ea6ca55185eae93adc56e | [
"MIT"
] | 9 | 2018-11-02T02:51:50.000Z | 2022-01-12T06:22:33.000Z | iptv_proxy/providers/beast/json_api.py | sfanous/IPTVProxy | 23047be01a229ef8f69ea6ca55185eae93adc56e | [
"MIT"
] | 3 | 2019-05-11T21:28:32.000Z | 2020-04-27T00:58:46.000Z | iptv_proxy/providers/beast/json_api.py | sfanous/IPTVProxy | 23047be01a229ef8f69ea6ca55185eae93adc56e | [
"MIT"
] | 7 | 2019-01-03T20:31:30.000Z | 2022-01-29T04:09:24.000Z | import logging
from iptv_proxy.providers.beast.constants import BeastConstants
from iptv_proxy.providers.iptv_provider.json_api import ProviderConfigurationJSONAPI
logger = logging.getLogger(__name__)
class BeastConfigurationJSONAPI(ProviderConfigurationJSONAPI):
__slots__ = []
_provider_name = BeastConsta... | 26.615385 | 84 | 0.84104 | 140 | 0.404624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
818971d06d80952ffaa6249ad6fd01e66412f03b | 30,912 | py | Python | tests/random/random_testing.py | jkeiren/mCRL2 | 3a60939f4e6dbc131e8ce87b1929bea9dbf90dd2 | [
"BSL-1.0"
] | 61 | 2018-05-24T13:14:05.000Z | 2022-03-29T11:35:03.000Z | tests/random/random_testing.py | jkeiren/mCRL2 | 3a60939f4e6dbc131e8ce87b1929bea9dbf90dd2 | [
"BSL-1.0"
] | 229 | 2018-05-28T08:31:09.000Z | 2022-03-21T11:02:41.000Z | tests/random/random_testing.py | jkeiren/mCRL2 | 3a60939f4e6dbc131e8ce87b1929bea9dbf90dd2 | [
"BSL-1.0"
] | 28 | 2018-04-11T14:09:39.000Z | 2022-02-25T15:57:39.000Z | #!/usr/bin/env python
# Copyright 2015 Wieger Wesselink.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
import os
import os.path
import random
import re
import sys
import traceback
sys.path += [os.path.abspath(os.path.join... | 63.085714 | 280 | 0.606593 | 15,715 | 0.508379 | 0 | 0 | 0 | 0 | 0 | 0 | 6,122 | 0.198046 |
8189efb35e8c25b88203a01795c7461668948d95 | 969 | py | Python | src/download.py | stanislawbartkowski/webhdfsdirectory | 8f7110eb573487c845ab0126eb71f038edb5ed41 | [
"Apache-2.0"
] | null | null | null | src/download.py | stanislawbartkowski/webhdfsdirectory | 8f7110eb573487c845ab0126eb71f038edb5ed41 | [
"Apache-2.0"
] | null | null | null | src/download.py | stanislawbartkowski/webhdfsdirectory | 8f7110eb573487c845ab0126eb71f038edb5ed41 | [
"Apache-2.0"
] | null | null | null | """ Main program to launch proc/hdfs.py
"""
import argparse
import logging
from pars import addargs
import sys
import logging
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
from proc.hdfs import DIRHDFS
def gettestargs(parser) :
i = "/home/sbartkowski/work/webhdfsdirectory/testdata/... | 25.5 | 103 | 0.700722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 305 | 0.314757 |
818a52c58e57385fa71bcd403825bd6c6ac08eb9 | 15,748 | py | Python | desktop/core/ext-py/josepy-1.1.0/src/josepy/json_util.py | kokosing/hue | 2307f5379a35aae9be871e836432e6f45138b3d9 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/josepy-1.1.0/src/josepy/json_util.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/josepy-1.1.0/src/josepy/json_util.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | """JSON (de)serialization framework.
The framework presented here is somewhat based on `Go's "json" package`_
(especially the ``omitempty`` functionality).
.. _`Go's "json" package`: http://golang.org/pkg/encoding/json/
"""
import abc
import binascii
import logging
import OpenSSL
import six
from josepy import b64,... | 32.672199 | 78 | 0.625921 | 12,051 | 0.76524 | 0 | 0 | 6,504 | 0.413005 | 0 | 0 | 7,573 | 0.480886 |
818c9c67cc31addec97fe43bfd97c54843bc6cf4 | 6,463 | py | Python | norm/executable/schema/variable.py | reasoned-ai/norm | 5e45d5917ce8745c9a757a0c6b5e689ea0cac19f | [
"Apache-2.0"
] | 8 | 2019-07-22T08:57:20.000Z | 2021-03-26T13:51:02.000Z | norm/executable/schema/variable.py | xumiao/norm | 5e45d5917ce8745c9a757a0c6b5e689ea0cac19f | [
"Apache-2.0"
] | null | null | null | norm/executable/schema/variable.py | xumiao/norm | 5e45d5917ce8745c9a757a0c6b5e689ea0cac19f | [
"Apache-2.0"
] | 1 | 2019-11-16T13:37:35.000Z | 2019-11-16T13:37:35.000Z | from norm.models.norm import Status, Lambda
from norm.executable import NormExecutable
from typing import Union, List
import logging
logger = logging.getLogger(__name__)
class VariableName(NormExecutable):
def __init__(self, scope, name):
"""
The variable and its scope
:param scope: the ... | 34.195767 | 116 | 0.597865 | 6,279 | 0.97153 | 0 | 0 | 57 | 0.008819 | 0 | 0 | 620 | 0.095931 |
818cc866ba9ab18156dde4bf30880a18007fbc03 | 3,318 | py | Python | src/parserindexer/tika_parser.py | yyzhuang1991/parser-indexer-py | 66847a6373d1fbc771e8ed9172a068731f9cd4da | [
"Apache-2.0"
] | 8 | 2016-07-20T19:50:00.000Z | 2020-09-15T01:56:51.000Z | src/parserindexer/tika_parser.py | yyzhuang1991/parser-indexer-py | 66847a6373d1fbc771e8ed9172a068731f9cd4da | [
"Apache-2.0"
] | 27 | 2016-08-01T13:39:25.000Z | 2021-08-18T17:47:23.000Z | src/parserindexer/tika_parser.py | yyzhuang1991/parser-indexer-py | 66847a6373d1fbc771e8ed9172a068731f9cd4da | [
"Apache-2.0"
] | 3 | 2016-07-20T19:55:49.000Z | 2021-08-06T16:19:48.000Z | from __future__ import print_function
import os
import sys
import json
import tika
from tqdm import tqdm
from utils import LogUtil
from parser import Parser
from ioutils import read_lines
from tika import parser as tk_parser
class TikaParser(Parser):
""" The TikaParser class is wrapper of the Apache TIKA parse "... | 31.6 | 80 | 0.611814 | 1,203 | 0.362568 | 0 | 0 | 0 | 0 | 0 | 0 | 983 | 0.296263 |
818d2b5226021a3473fd95143600b3a63ac484e1 | 869 | py | Python | checkov/cloudformation/checks/resource/aws/DocDBAuditLogs.py | niradler/checkov | 2628c6f28a5604efe3877d6eacc3044d2b66b7b1 | [
"Apache-2.0"
] | null | null | null | checkov/cloudformation/checks/resource/aws/DocDBAuditLogs.py | niradler/checkov | 2628c6f28a5604efe3877d6eacc3044d2b66b7b1 | [
"Apache-2.0"
] | 2 | 2022-03-07T07:15:32.000Z | 2022-03-21T07:21:17.000Z | checkov/cloudformation/checks/resource/aws/DocDBAuditLogs.py | niradler/checkov | 2628c6f28a5604efe3877d6eacc3044d2b66b7b1 | [
"Apache-2.0"
] | null | null | null | from checkov.cloudformation.checks.resource.base_resource_check import BaseResourceCheck
from checkov.common.parsers.node import DictNode
from checkov.common.models.enums import CheckResult, CheckCategories
class DocDBAuditLogs(BaseResourceCheck):
def __init__(self) -> None:
name = "Ensure DocDB has audit... | 36.208333 | 106 | 0.721519 | 632 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 132 | 0.151899 |
818de49075c87063860cf616c4fbba1c27c95106 | 584 | py | Python | py/server/deephaven/server/plugin/__init__.py | lbooker42/deephaven-core | 2d04563f18ae914754b28041475c02770e57af15 | [
"MIT"
] | null | null | null | py/server/deephaven/server/plugin/__init__.py | lbooker42/deephaven-core | 2d04563f18ae914754b28041475c02770e57af15 | [
"MIT"
] | null | null | null | py/server/deephaven/server/plugin/__init__.py | lbooker42/deephaven-core | 2d04563f18ae914754b28041475c02770e57af15 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
#
import jpy
_JCallbackAdapter = jpy.get_type('io.deephaven.server.plugin.python.CallbackAdapter')
def initialize_all_and_register_into(callback: _JCallbackAdapter):
try:
from . import register
except ModuleNotFoundError as e:
... | 30.736842 | 116 | 0.717466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 256 | 0.438356 |
818e56826eb6b882afcd422dcb192ea6b72a334b | 3,133 | py | Python | mypy/test/testoutput.py | TimSimpsonR/mypy | 5e6fd6335e0662b0477e1d678269f33e6f4194ba | [
"PSF-2.0"
] | 1 | 2019-06-27T11:34:27.000Z | 2019-06-27T11:34:27.000Z | mypy/test/testoutput.py | silky/mypy | de6a8d3710df9f49109cb682f2092e4967bfb92c | [
"PSF-2.0"
] | null | null | null | mypy/test/testoutput.py | silky/mypy | de6a8d3710df9f49109cb682f2092e4967bfb92c | [
"PSF-2.0"
] | null | null | null | """Tests for parse tree pretty printing that preserves formatting
Test case descriptions are in file test/data/output.test.
"""
import os.path
import re
from typing import Undefined, Any
from mypy import build
from mypy.myunit import Suite, run_test
from mypy.test.helpers import assert_string_arrays_equal
from mypy... | 31.969388 | 79 | 0.578998 | 246 | 0.078519 | 0 | 0 | 0 | 0 | 0 | 0 | 823 | 0.262688 |
81909aed2c8da07e00d68c36e16753bcc2a5f66d | 2,395 | py | Python | tests/test_SklearnDecisionTreeConverters.py | c-bata/sklearn-onnx | ff3e2eb204991b5799fc606c265b2c283dbfc25c | [
"MIT"
] | 1 | 2019-05-06T20:54:02.000Z | 2019-05-06T20:54:02.000Z | tests/test_SklearnDecisionTreeConverters.py | PossieMP/https-github.com-onnx-sklearn-onnx | 48c60398d38e6937897d7c1506a8dcfcf28830a2 | [
"MIT"
] | null | null | null | tests/test_SklearnDecisionTreeConverters.py | PossieMP/https-github.com-onnx-sklearn-onnx | 48c60398d38e6937897d7c1506a8dcfcf28830a2 | [
"MIT"
] | 1 | 2020-04-09T07:46:52.000Z | 2020-04-09T07:46:52.000Z | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import un... | 38.015873 | 76 | 0.562004 | 1,663 | 0.694363 | 0 | 0 | 1,168 | 0.487683 | 0 | 0 | 901 | 0.3762 |
8190b06cbd6a99f76c275c7c5d6181dfe355ab0d | 7,005 | py | Python | tests/test_inference.py | MihailSalnikov/microscopeimagequality | 22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b | [
"Apache-2.0"
] | 77 | 2017-10-30T19:34:06.000Z | 2022-01-20T17:15:10.000Z | tests/test_inference.py | MihailSalnikov/microscopeimagequality | 22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b | [
"Apache-2.0"
] | 3 | 2020-07-02T22:20:46.000Z | 2021-08-25T14:39:43.000Z | tests/test_inference.py | MihailSalnikov/microscopeimagequality | 22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b | [
"Apache-2.0"
] | 40 | 2017-12-22T01:21:13.000Z | 2022-03-13T22:28:59.000Z | import logging
import os
import tempfile
import PIL.Image
import numpy
import tensorflow
import microscopeimagequality.constants
import microscopeimagequality.data_provider
import microscopeimagequality.evaluation
import microscopeimagequality.prediction
class Inference(tensorflow.test.TestCase):
def setUp(self... | 44.056604 | 125 | 0.63469 | 6,745 | 0.962884 | 0 | 0 | 0 | 0 | 0 | 0 | 312 | 0.04454 |
8190c488725fd5780c71f8986d5214f9a0371832 | 498 | py | Python | config.py | hiankun/qb_test | ab031d74d903cdb8845a033d290611b444a5abdb | [
"MIT"
] | 4 | 2015-03-07T19:15:28.000Z | 2021-01-24T15:13:30.000Z | config.py | hiankun/qb_test | ab031d74d903cdb8845a033d290611b444a5abdb | [
"MIT"
] | null | null | null | config.py | hiankun/qb_test | ab031d74d903cdb8845a033d290611b444a5abdb | [
"MIT"
] | 1 | 2017-07-03T06:55:24.000Z | 2017-07-03T06:55:24.000Z | """
QuickBot wiring config.
Specifies which pins are used for motor control, IR sensors and wheel encoders.
"""
# Motor pins: (dir1_pin, dir2_pin, pwd_pin)
RIGHT_MOTOR_PINS = 'P8_12', 'P8_10', 'P9_14'
LEFT_MOTOR_PINS = 'P8_14', 'P8_16', 'P9_16'
# IR sensors (clock-wise, starting with the rear left sensor):
# rear-l... | 23.714286 | 79 | 0.690763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 401 | 0.805221 |
8191a9d3234f49c843978a8688358673f859017f | 8,912 | py | Python | tools/tests/skimage_self_test.py | yinquan529/platform-external-skia | 1adfb847fe565e53d2e26e35b04c8dc112b7513a | [
"BSD-3-Clause"
] | 1 | 2016-05-04T10:08:50.000Z | 2016-05-04T10:08:50.000Z | tools/tests/skimage_self_test.py | yinquan529/platform-external-skia | 1adfb847fe565e53d2e26e35b04c8dc112b7513a | [
"BSD-3-Clause"
] | null | null | null | tools/tests/skimage_self_test.py | yinquan529/platform-external-skia | 1adfb847fe565e53d2e26e35b04c8dc112b7513a | [
"BSD-3-Clause"
] | 1 | 2020-01-16T03:34:53.000Z | 2020-01-16T03:34:53.000Z | #!/usr/bin/env python
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Self-test for skimage.
import filecmp
import os
import subprocess
import sys
import tempfile
class BinaryNotFoundException(Exce... | 44.78392 | 81 | 0.632518 | 208 | 0.023339 | 0 | 0 | 0 | 0 | 0 | 0 | 3,980 | 0.446589 |
8193d66190779e7816666311c0493c349ff06765 | 121 | py | Python | pymachine/condition.py | landrew31/pymachine | 117ad7aa3694a1ccb0be207cc931de8c2c345567 | [
"MIT"
] | 1 | 2018-02-21T08:57:08.000Z | 2018-02-21T08:57:08.000Z | pymachine/condition.py | landrew31/pymachine | 117ad7aa3694a1ccb0be207cc931de8c2c345567 | [
"MIT"
] | null | null | null | pymachine/condition.py | landrew31/pymachine | 117ad7aa3694a1ccb0be207cc931de8c2c345567 | [
"MIT"
] | null | null | null | from collections import namedtuple
Condition = namedtuple(
'Condition',
['current_state', 'input_character'],
)
| 17.285714 | 41 | 0.719008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 43 | 0.355372 |
8195c711df03d29790fdcc4e7f130ef66986f549 | 788 | py | Python | examples/simple_lakehouse/simple_lakehouse/assets.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 2 | 2021-06-21T17:50:26.000Z | 2021-06-21T19:14:23.000Z | examples/simple_lakehouse/simple_lakehouse/assets.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 7 | 2022-03-16T06:55:04.000Z | 2022-03-18T07:03:25.000Z | examples/simple_lakehouse/simple_lakehouse/assets.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 1 | 2021-08-18T17:21:57.000Z | 2021-08-18T17:21:57.000Z | """Asset definitions for the simple_lakehouse example."""
import pandas as pd
from lakehouse import Column, computed_table, source_table
from pyarrow import date32, float64, string
sfo_q2_weather_sample_table = source_table(
path="data", columns=[Column("tmpf", float64()), Column("valid_date", string())],
)
@com... | 41.473684 | 97 | 0.757614 | 0 | 0 | 0 | 0 | 471 | 0.597716 | 0 | 0 | 198 | 0.251269 |
8196db5a9a3e9b1ef0fc71ca07363d90aa3c3237 | 4,386 | py | Python | aindex/demo.py | ad3002/Lyrebird | 8c0a186e32d61189f073401152c52a89bfed46ed | [
"MIT"
] | null | null | null | aindex/demo.py | ad3002/Lyrebird | 8c0a186e32d61189f073401152c52a89bfed46ed | [
"MIT"
] | null | null | null | aindex/demo.py | ad3002/Lyrebird | 8c0a186e32d61189f073401152c52a89bfed46ed | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#@created: 07.01.2018
#@author: Aleksey Komissarov
#@contact: [email protected]
from aindex import *
settings = {
"index_prefix": "tests/kmers.23",
"aindex_prefix": "tests/kmers.23",
"reads_file": "tests/reads.reads",
}
index = load_aindex(settings)
k = 23
seque... | 58.48 | 2,183 | 0.858413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,422 | 0.780032 |
81972bcd61b6a76b4f3ac7d2990ee8f85d6af35f | 1,013 | py | Python | tests/testresources/pytest_resource_path_ini.py | yukihiko-shinoda/pytest-resource-path | bc56c4b5f2c8f3138baeac7f145717f6a70af7b6 | [
"MIT"
] | 5 | 2020-09-06T01:54:28.000Z | 2021-06-14T11:10:09.000Z | tests/testresources/pytest_resource_path_ini.py | yukihiko-shinoda/pytest-resource-path | bc56c4b5f2c8f3138baeac7f145717f6a70af7b6 | [
"MIT"
] | 5 | 2020-05-23T08:30:01.000Z | 2021-05-01T04:58:06.000Z | tests/testresources/pytest_resource_path_ini.py | yukihiko-shinoda/pytest-resource-path | bc56c4b5f2c8f3138baeac7f145717f6a70af7b6 | [
"MIT"
] | null | null | null | """Implements test for pytest-resource-path Fixtures with pytest.ini."""
from pathlib import Path
import pytest
def test_resource_path_ini(resource_path, request):
"""Fixture resource_path should be following absolute path."""
assert resource_path == Path(str(request.fspath)).parents[1] / Path(
"data... | 37.518519 | 102 | 0.785785 | 0 | 0 | 90 | 0.088845 | 123 | 0.121422 | 0 | 0 | 366 | 0.361303 |
8197395414f35f5a57891af7ddfab20969d9cd9f | 301 | py | Python | 17-files/read-file-with-try-block.py | johnehunt/Python3Intro | 2a41ce488aac11bb3928ea81e57be1c2c8acdac2 | [
"Apache-2.0"
] | 1 | 2020-11-03T19:46:25.000Z | 2020-11-03T19:46:25.000Z | 14-files/read-file-with-try-block.py | johnehunt/PythonIntroDS | 7e9d5c5494191cd68bc71e140df5fb30290a8da6 | [
"Apache-2.0"
] | null | null | null | 14-files/read-file-with-try-block.py | johnehunt/PythonIntroDS | 7e9d5c5494191cd68bc71e140df5fb30290a8da6 | [
"Apache-2.0"
] | 1 | 2019-09-21T08:24:46.000Z | 2019-09-21T08:24:46.000Z | # Illustrates combining exception / error handling
# with file access
print('Start')
try:
with open('myfile2.txt', 'r') as f:
lines = f.readlines()
for line in lines:
print(line, end='')
except FileNotFoundError as err:
print('oops')
print(err)
print('Done')
| 20.066667 | 50 | 0.61794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 105 | 0.348837 |
81977d254cadb7ee5093cb2ff32e221394f8fe36 | 8,455 | py | Python | Miscellaneous/test_script_pymc3/multinominal.py | junpenglao/Planet_Sakaar_Data_Science | 73d9605b91b774a56d18c193538691521f679f16 | [
"MIT"
] | 51 | 2018-04-08T19:53:15.000Z | 2021-11-24T21:08:25.000Z | Miscellaneous/test_script_pymc3/multinominal.py | junpenglao/Planet_Sakaar_Data_Science | 73d9605b91b774a56d18c193538691521f679f16 | [
"MIT"
] | 2 | 2018-05-29T20:50:37.000Z | 2020-09-12T07:14:08.000Z | Miscellaneous/test_script_pymc3/multinominal.py | junpenglao/Planet_Sakaar_Data_Science | 73d9605b91b774a56d18c193538691521f679f16 | [
"MIT"
] | 13 | 2018-07-21T09:53:10.000Z | 2021-06-07T19:06:26.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 11 13:30:53 2017
@author: laoj
"""
import numpy as np
import pymc3 as pm
import theano.tensor as tt
from pymc3.distributions.distribution import Discrete, draw_values, generate_samples, infer_shape
from pymc3.distributions.dist_math import bound, lo... | 30.970696 | 135 | 0.543465 | 3,704 | 0.438084 | 0 | 0 | 0 | 0 | 0 | 0 | 1,082 | 0.127972 |
819a475b581f4721e5c8b8ee781500a5749d808c | 8,054 | py | Python | transformation_fnc.py | usrmaia/transformation-fnc | 37ef77708892417ac985bb6f1cf62285834560d8 | [
"MIT"
] | null | null | null | transformation_fnc.py | usrmaia/transformation-fnc | 37ef77708892417ac985bb6f1cf62285834560d8 | [
"MIT"
] | null | null | null | transformation_fnc.py | usrmaia/transformation-fnc | 37ef77708892417ac985bb6f1cf62285834560d8 | [
"MIT"
] | null | null | null | from useful import *
from os import system
def remove_implication(formula):
while ">" in formula:
operator = formula.find(">")
print(formula, operator)
subform_left = get_subform_left(formula, operator)
subform_right = get_subform_right(formula, operator)
formula = get_remo... | 47.099415 | 220 | 0.661286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,461 | 0.303677 |
819a9225919d23f1c377fd7749da7d7ea0d1e851 | 2,896 | py | Python | src/implant/commands/__init__.py | diefans/debellator | 44203174ef8e0702be577a9e08dedde40e3ce1fe | [
"Apache-2.0"
] | 2 | 2018-09-08T00:04:43.000Z | 2021-07-20T01:31:09.000Z | src/implant/commands/__init__.py | diefans/implant | 44203174ef8e0702be577a9e08dedde40e3ce1fe | [
"Apache-2.0"
] | null | null | null | src/implant/commands/__init__.py | diefans/implant | 44203174ef8e0702be577a9e08dedde40e3ce1fe | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Oliver Berger
#
# 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,... | 28.96 | 85 | 0.648481 | 2,155 | 0.74413 | 0 | 0 | 0 | 0 | 1,445 | 0.498964 | 932 | 0.321823 |
819b2d29e2f76cc772587cf27c82ea7f7e151615 | 73 | py | Python | trainer/utils/__init__.py | chriszhou0916/czai4art | 2fecc9b808fc16cb74c4c29be8a8770ffe247b15 | [
"MIT"
] | null | null | null | trainer/utils/__init__.py | chriszhou0916/czai4art | 2fecc9b808fc16cb74c4c29be8a8770ffe247b15 | [
"MIT"
] | null | null | null | trainer/utils/__init__.py | chriszhou0916/czai4art | 2fecc9b808fc16cb74c4c29be8a8770ffe247b15 | [
"MIT"
] | null | null | null | from trainer.utils.losses import *
from trainer.utils import custom_ssim
| 24.333333 | 37 | 0.835616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
819bd18a4722e9a3211561882e51cf2324399bde | 1,693 | py | Python | src/Testing/ZopeTestCase/__init__.py | tseaver/Zope-RFA | 08634f39b0f8b56403a2a9daaa6ee4479ef0c625 | [
"ZPL-2.1"
] | 2 | 2015-12-21T10:34:56.000Z | 2017-09-24T11:07:58.000Z | src/Testing/ZopeTestCase/__init__.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | null | null | null | src/Testing/ZopeTestCase/__init__.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | 29.189655 | 78 | 0.759598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 650 | 0.383934 |
819c97d3aababb49d55ab8197540259628b81475 | 3,132 | py | Python | CIM14/CPSM/Equipment/LoadModel/SubLoadArea.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 58 | 2015-04-22T10:41:03.000Z | 2022-03-29T16:04:34.000Z | CIM14/CPSM/Equipment/LoadModel/SubLoadArea.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 12 | 2015-08-26T03:57:23.000Z | 2020-12-11T20:14:42.000Z | CIM14/CPSM/Equipment/LoadModel/SubLoadArea.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 35 | 2015-01-10T12:21:03.000Z | 2020-09-09T08:18:16.000Z | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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... | 36 | 129 | 0.685185 | 1,964 | 0.627075 | 0 | 0 | 0 | 0 | 0 | 0 | 1,542 | 0.492337 |
819e28662a5c7fe45f90d593ee3b3db086815aa5 | 369 | py | Python | bin/clean_pdb.py | caixiuhong/Stable-MCCE | 186bdafdf1d631994b2cdd6ec6a548383f559929 | [
"MIT"
] | null | null | null | bin/clean_pdb.py | caixiuhong/Stable-MCCE | 186bdafdf1d631994b2cdd6ec6a548383f559929 | [
"MIT"
] | null | null | null | bin/clean_pdb.py | caixiuhong/Stable-MCCE | 186bdafdf1d631994b2cdd6ec6a548383f559929 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
HATOMS = ["HG", "HD", "HE", "HH"]
lines = open(sys.argv[1]).readlines()
for line in lines:
if line[:6] == "ATOM " or line[:6] == "HETATM":
if line[17:20] == "WAT":
continue
if line[13] == "H":
continue
if line[12:14] in HATOMS:
... | 23.0625 | 52 | 0.490515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 65 | 0.176152 |
819e7c6d0a67bfff73dacc1d420e6cd83f55ee9f | 7,693 | py | Python | old_logen/pylogen/OutputBook.py | leuschel/logen | 0ea806f54628162615e25177c3ed98f6b2c27935 | [
"Apache-2.0"
] | 14 | 2015-10-16T11:35:30.000Z | 2021-05-12T15:31:16.000Z | old_logen/pylogen/OutputBook.py | leuschel/logen | 0ea806f54628162615e25177c3ed98f6b2c27935 | [
"Apache-2.0"
] | null | null | null | old_logen/pylogen/OutputBook.py | leuschel/logen | 0ea806f54628162615e25177c3ed98f6b2c27935 | [
"Apache-2.0"
] | 5 | 2015-10-16T12:44:41.000Z | 2019-10-02T02:45:38.000Z | import Pmw
import os
import re
from FastIndex import FastIndex, timer
from PrologFrame import PrologFrame
from TerminalFrame import TerminalFrame
class OutputBook(Pmw.NoteBook):
def __init__(self, master=None):
self.app = master
Pmw.NoteBook.__init__(self, self.app.bottom,createcommand=self.create... | 34.191111 | 100 | 0.573508 | 6,352 | 0.825686 | 0 | 0 | 0 | 0 | 0 | 0 | 715 | 0.092942 |
819ee9aceebbd56d2a4d4ed207f6ae47bb68ff70 | 5,468 | py | Python | back/db.py | belshoff/Agenda | a9d3d1a80d6b3c00e4d0055847d5ed2bb6c6d7d1 | [
"Apache-2.0"
] | null | null | null | back/db.py | belshoff/Agenda | a9d3d1a80d6b3c00e4d0055847d5ed2bb6c6d7d1 | [
"Apache-2.0"
] | null | null | null | back/db.py | belshoff/Agenda | a9d3d1a80d6b3c00e4d0055847d5ed2bb6c6d7d1 | [
"Apache-2.0"
] | null | null | null | import sqlite3
with sqlite3.connect('storage.db') as conn:
cursor = conn.cursor()
cursor.execute(
"""
CREATE TABLE IF NOT EXISTS Produtos (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
price REAL,
compra_id INTEGER,
... | 35.277419 | 126 | 0.492502 | 4,869 | 0.890454 | 0 | 0 | 0 | 0 | 0 | 0 | 1,818 | 0.33248 |
819ef83975adf31b6a1082bbb314f1833657807e | 246 | bzl | Python | tools/build_rules/gtk_dependent.bzl | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | 39 | 2021-06-18T03:22:30.000Z | 2022-03-21T15:23:43.000Z | tools/build_rules/gtk_dependent.bzl | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | 10 | 2021-06-18T03:22:19.000Z | 2022-03-18T22:14:15.000Z | tools/build_rules/gtk_dependent.bzl | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | 4 | 2021-08-19T19:20:04.000Z | 2022-03-08T07:33:18.000Z | disable_gtk_binaries = True
def gtk_dependent_cc_library(**kwargs):
if not disable_gtk_binaries:
native.cc_library(**kwargs)
def gtk_dependent_cc_binary(**kwargs):
if not disable_gtk_binaries:
native.cc_binary(**kwargs)
| 24.6 | 39 | 0.739837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
819fb9161fe72a4b226194ee2bfb3c7088844885 | 743 | py | Python | vectorize.py | tomohiroando/recipe_gan | 00f7418dfc5ee732e6d2de33d9c397e24f304864 | [
"MIT"
] | null | null | null | vectorize.py | tomohiroando/recipe_gan | 00f7418dfc5ee732e6d2de33d9c397e24f304864 | [
"MIT"
] | null | null | null | vectorize.py | tomohiroando/recipe_gan | 00f7418dfc5ee732e6d2de33d9c397e24f304864 | [
"MIT"
] | null | null | null | import sys
from gensim import models
from gensim.models.doc2vec import LabeledSentence
import pickle
def corpus_to_sentences(corpus):
sentences = []
for idx, (name, doc) in enumerate(corpus.items()):
sys.stdout.write('\r前処理中 {}/{}'.format(idx, len(corpus)))
sentence = LabeledSentence(words=doc... | 28.576923 | 104 | 0.722746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 54 | 0.071904 |
81a0eab42248c18facd3ce51c6e6f97ebfbcd166 | 6,206 | py | Python | lxman/registry.py | stuxcrystal/lxman | ea0b44a8b9424b3489e393591f5384a986f583a3 | [
"MIT"
] | 1 | 2017-12-04T18:48:21.000Z | 2017-12-04T18:48:21.000Z | lxman/registry.py | stuxcrystal/lxman | ea0b44a8b9424b3489e393591f5384a986f583a3 | [
"MIT"
] | null | null | null | lxman/registry.py | stuxcrystal/lxman | ea0b44a8b9424b3489e393591f5384a986f583a3 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
from collections import UserDict
from itertools import count
import shutil
import winreg
import uuid
PATH = "Software\\Microsoft\\Windows\\CurrentVersion\\Lxss"
KEY = winreg.HKEY_CURRENT_USER
class RegistryDescriptor(object):
def __init__(self, name):
self.name ... | 30.875622 | 108 | 0.563165 | 5,932 | 0.955849 | 330 | 0.053174 | 1,631 | 0.26281 | 0 | 0 | 650 | 0.104737 |
81a34a9a29a2bcf516df9f355478686bebdaa96b | 25,235 | py | Python | virtual/lib/python3.6/site-packages/debian/changelog.py | marknesh/pitches | 0a480d9bc2beafaefa0121393b1502cc05edab89 | [
"MIT"
] | null | null | null | virtual/lib/python3.6/site-packages/debian/changelog.py | marknesh/pitches | 0a480d9bc2beafaefa0121393b1502cc05edab89 | [
"MIT"
] | 10 | 2020-03-08T21:13:29.000Z | 2021-04-08T19:41:14.000Z | flask/lib/python3.6/site-packages/debian/changelog.py | JOFLIX/grapevines | 34576e01184570d79cc140b42ffb71d322132da6 | [
"MIT",
"Unlicense"
] | null | null | null | # changelog.py -- Python module for Debian changelogs
# Copyright (C) 2006-7 James Westby <[email protected]>
# Copyright (C) 2008 Canonical Ltd.
#
# 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 Fo... | 39.553292 | 80 | 0.559263 | 19,358 | 0.767109 | 0 | 0 | 183 | 0.007252 | 0 | 0 | 6,145 | 0.243511 |
81a35f7c896207540f74045284e195d4e4fb7b21 | 667 | py | Python | Median.py | fatih-iver/Intro-to-Computer-Science-with-Python | 7b8127681415dfd100a0e70fe8a672cec696bbb7 | [
"MIT"
] | null | null | null | Median.py | fatih-iver/Intro-to-Computer-Science-with-Python | 7b8127681415dfd100a0e70fe8a672cec696bbb7 | [
"MIT"
] | null | null | null | Median.py | fatih-iver/Intro-to-Computer-Science-with-Python | 7b8127681415dfd100a0e70fe8a672cec696bbb7 | [
"MIT"
] | null | null | null | # Define a procedure, median, that takes three
# numbers as its inputs, and returns the median
# of the three numbers.
# Make sure your procedure has a return statement.
def bigger(a,b):
if a > b:
return a
else:
return b
def biggest(a,b,c):
return bigger(a,bigger(b,c))
def... | 20.212121 | 51 | 0.493253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 190 | 0.284858 |
81a49f3c33e13f260a839b1cda7b2ffc5e26f768 | 5,089 | py | Python | miss_islington/util.py | webknjaz/miss-islington | 51c38793b9ff95ecf4a3e98755a291120e7240cc | [
"Apache-2.0"
] | null | null | null | miss_islington/util.py | webknjaz/miss-islington | 51c38793b9ff95ecf4a3e98755a291120e7240cc | [
"Apache-2.0"
] | 1 | 2021-02-27T14:15:59.000Z | 2021-02-27T14:15:59.000Z | miss_islington/util.py | webknjaz/miss-islington | 51c38793b9ff95ecf4a3e98755a291120e7240cc | [
"Apache-2.0"
] | null | null | null | import requests
import os
import subprocess
import gidgethub
from gidgethub import sansio
AUTOMERGE_LABEL = ":robot: automerge"
def comment_on_pr(issue_number, message):
"""
Leave a comment on a PR/Issue
"""
request_headers = sansio.create_headers(
"miss-islington", oauth_token=os.getenv("... | 29.760234 | 86 | 0.660051 | 0 | 0 | 0 | 0 | 0 | 0 | 1,892 | 0.37149 | 1,771 | 0.347732 |
81a62c5963fc9b6615ab457b4e524e86f8ffa6af | 1,918 | py | Python | src/plugins/database.py | Blitz-Raynor/Kiba | a73b5b6212a5446d218a80f1a6aba108e0a1912b | [
"MIT"
] | 4 | 2022-01-24T05:33:34.000Z | 2022-03-25T06:29:19.000Z | src/plugins/database.py | Blitz-Raynor/Kiba | a73b5b6212a5446d218a80f1a6aba108e0a1912b | [
"MIT"
] | null | null | null | src/plugins/database.py | Blitz-Raynor/Kiba | a73b5b6212a5446d218a80f1a6aba108e0a1912b | [
"MIT"
] | 3 | 2022-02-08T13:24:59.000Z | 2022-03-13T06:42:40.000Z | import aiosqlite
import sqlite3
import asyncio
import nonebot
from nonebot.log import logger
driver: nonebot.Driver = nonebot.get_driver()
config: nonebot.config.Config = driver.config
@driver.on_startup
async def init_db():
config.db = await aiosqlite.connect("src/static/Kiba.db")
logger.info("Kiba Kernel -... | 53.277778 | 153 | 0.696038 | 0 | 0 | 0 | 0 | 1,728 | 0.900938 | 1,689 | 0.880605 | 1,272 | 0.663191 |
81a67c33ee26043b2ddf70e19e7da7c69207a707 | 5,492 | py | Python | dexp/processing/utils/scatter_gather_i2i.py | haesleinhuepf/dexp | 2ea84f3db323724588fac565fae56f0d522bc5ca | [
"BSD-3-Clause"
] | 16 | 2021-04-21T14:09:19.000Z | 2022-03-22T02:30:59.000Z | dexp/processing/utils/scatter_gather_i2i.py | haesleinhuepf/dexp | 2ea84f3db323724588fac565fae56f0d522bc5ca | [
"BSD-3-Clause"
] | 28 | 2021-04-15T17:43:08.000Z | 2022-03-29T16:08:35.000Z | dexp/processing/utils/scatter_gather_i2i.py | haesleinhuepf/dexp | 2ea84f3db323724588fac565fae56f0d522bc5ca | [
"BSD-3-Clause"
] | 3 | 2022-02-08T17:41:30.000Z | 2022-03-18T15:32:27.000Z | from typing import Callable, Optional, Sequence, Tuple, Union
import numpy
from dexp.processing.utils.nd_slice import nd_split_slices, remove_margin_slice
from dexp.processing.utils.normalise import Normalise
from dexp.utils import xpArray
from dexp.utils.backends import Backend
def scatter_gather_i2i(
function... | 35.205128 | 110 | 0.667334 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,539 | 0.462309 |
81a7268b47b548089b30e84d12ff883fa4b80a6d | 58 | py | Python | http_shadow/__init__.py | abador/http-shadow | 040935b0715f983714f38005f8ae97c255dae3e0 | [
"MIT"
] | null | null | null | http_shadow/__init__.py | abador/http-shadow | 040935b0715f983714f38005f8ae97c255dae3e0 | [
"MIT"
] | null | null | null | http_shadow/__init__.py | abador/http-shadow | 040935b0715f983714f38005f8ae97c255dae3e0 | [
"MIT"
] | 2 | 2018-09-27T15:20:35.000Z | 2020-10-02T08:38:31.000Z | from .backend import Backend
from .thread import HttpPool
| 19.333333 | 28 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
81a85ad97e42bc868e9ae369e44cafe2a61e536a | 107 | py | Python | Problems/sample.py | HKuz/Test_Code | 798efc9fc668ef021736a6d9699ef4713cf8b718 | [
"MIT"
] | 1 | 2020-06-14T20:10:04.000Z | 2020-06-14T20:10:04.000Z | Problems/sample.py | makramjandar/Test_Code | 798efc9fc668ef021736a6d9699ef4713cf8b718 | [
"MIT"
] | null | null | null | Problems/sample.py | makramjandar/Test_Code | 798efc9fc668ef021736a6d9699ef4713cf8b718 | [
"MIT"
] | 1 | 2019-12-09T12:48:05.000Z | 2019-12-09T12:48:05.000Z | #!/usr/local/bin/python3
def main():
# Test suite
return
if __name__ == '__main__':
main()
| 9.727273 | 26 | 0.579439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 46 | 0.429907 |
81a8ec6fd77ecb2b6c41666fc9f2b8378760daa6 | 3,759 | py | Python | setup.py | wrmsr/omnibus | 3c4ef5eb17b0fff8593fa6a2284337bf193c18d3 | [
"BSD-3-Clause"
] | 2 | 2020-06-17T19:54:09.000Z | 2020-06-18T20:10:26.000Z | setup.py | wrmsr/omnibus | 3c4ef5eb17b0fff8593fa6a2284337bf193c18d3 | [
"BSD-3-Clause"
] | null | null | null | setup.py | wrmsr/omnibus | 3c4ef5eb17b0fff8593fa6a2284337bf193c18d3 | [
"BSD-3-Clause"
] | null | null | null | import fnmatch
import glob
import os
import sys
import setuptools.command.build_ext
APPLE = sys.platform == 'darwin'
BASE_DIR = os.path.dirname(__file__)
ABOUT = {}
def _read_about():
with open(os.path.join(BASE_DIR, 'omnibus', '__about__.py'), 'rb') as f:
src = f.read()
if sys.version_info[0... | 24.096154 | 93 | 0.536313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 856 | 0.22772 |
81aab8159848ee0e48d169bcc15f7002773f809e | 689 | py | Python | day1/test_day1.py | Sundin/advent-of-code-2019 | 7ba5971ab5deeec61c60e6acbe1ac223876e77fe | [
"MIT"
] | null | null | null | day1/test_day1.py | Sundin/advent-of-code-2019 | 7ba5971ab5deeec61c60e6acbe1ac223876e77fe | [
"MIT"
] | null | null | null | day1/test_day1.py | Sundin/advent-of-code-2019 | 7ba5971ab5deeec61c60e6acbe1ac223876e77fe | [
"MIT"
] | null | null | null | from day1 import *
import unittest
def test_get_fuel_requirements_for_mass():
assert get_fuel_requirements_for_mass(12) == 2
assert get_fuel_requirements_for_mass(14) == 2
assert get_fuel_requirements_for_mass(1969) == 654
assert get_fuel_requirements_for_mass(100756) == 33583
def test_sum_fuel_requirements_f... | 40.529412 | 93 | 0.835994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
81ac62bd68434ff2ce3767d63cce77c07cbf51c7 | 305 | py | Python | PyObjCTest/test_nspdfinfo.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nspdfinfo.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nspdfinfo.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | import AppKit
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestNSPDFInfo(TestCase):
@min_os_level("10.9")
def testMethods(self):
self.assertResultIsBOOL(AppKit.NSPDFInfo.isFileExtensionHidden)
self.assertArgIsBOOL(AppKit.NSPDFInfo.setFileExtensionHidden_, 0)
| 30.5 | 73 | 0.783607 | 229 | 0.75082 | 0 | 0 | 194 | 0.636066 | 0 | 0 | 6 | 0.019672 |
81acfe851d89593a12e5f0cfee315b25fd2a0d5f | 1,636 | py | Python | gap/src/util/data_iterator.py | cosmozhang/autoencoding_parsing | 2e8f4811ca6032f4f89195cd019a4fce4b399dcc | [
"BSD-3-Clause"
] | null | null | null | gap/src/util/data_iterator.py | cosmozhang/autoencoding_parsing | 2e8f4811ca6032f4f89195cd019a4fce4b399dcc | [
"BSD-3-Clause"
] | null | null | null | gap/src/util/data_iterator.py | cosmozhang/autoencoding_parsing | 2e8f4811ca6032f4f89195cd019a4fce4b399dcc | [
"BSD-3-Clause"
] | null | null | null | from collections import OrderedDict, defaultdict
import numpy as np
'''
generate a id to length dic
'''
def gen_sid_len(sentences):
sid2len = OrderedDict()
for i, sent in enumerate(sentences):
sid2len[i] = len(sent)
return sid2len
def batch_slice(data, batch_size):
# data is a list of senten... | 31.461538 | 88 | 0.665037 | 0 | 0 | 1,379 | 0.84291 | 0 | 0 | 0 | 0 | 522 | 0.319071 |
81ad78394864e547b6c74d97fef7b7beb9ca5228 | 1,793 | py | Python | recipe_parser/recipes/thehappyfoodie.py | tyler-a-cox/recipe-parsing | fa883f66a39063cf72912527628b082cda455e76 | [
"MIT"
] | null | null | null | recipe_parser/recipes/thehappyfoodie.py | tyler-a-cox/recipe-parsing | fa883f66a39063cf72912527628b082cda455e76 | [
"MIT"
] | null | null | null | recipe_parser/recipes/thehappyfoodie.py | tyler-a-cox/recipe-parsing | fa883f66a39063cf72912527628b082cda455e76 | [
"MIT"
] | null | null | null | from ._schema import DefaultSchema
from ._utils import get_minutes, get_yields, normalize_string
class TheHappyFoodie(DefaultSchema):
@classmethod
def host(cls):
return "thehappyfoodie.co.uk"
def title(self):
return self.soup.find("h1", {"class": "main-title"}).get_text()
def total_t... | 28.919355 | 88 | 0.516453 | 1,693 | 0.944228 | 0 | 0 | 69 | 0.038483 | 0 | 0 | 361 | 0.201339 |
81ae2fd5d9a2f3d3be912f6bccda2599695dd505 | 2,866 | py | Python | Scopuli/WEB/DebugToolbar/Toolbar.py | MaxOnNet/scopuli-core-web | 66a2c31b36d7fc05be36ba5d5b141644459b4aba | [
"Apache-2.0"
] | null | null | null | Scopuli/WEB/DebugToolbar/Toolbar.py | MaxOnNet/scopuli-core-web | 66a2c31b36d7fc05be36ba5d5b141644459b4aba | [
"Apache-2.0"
] | null | null | null | Scopuli/WEB/DebugToolbar/Toolbar.py | MaxOnNet/scopuli-core-web | 66a2c31b36d7fc05be36ba5d5b141644459b4aba | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright [2017] Tatarnikov Viktor [[email protected]]
#
# 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/licen... | 29.854167 | 97 | 0.63887 | 2,033 | 0.709351 | 291 | 0.101535 | 919 | 0.320656 | 0 | 0 | 896 | 0.312631 |
81ae89733812f04310f2f41f0ec35c6af756fb98 | 8,372 | py | Python | CalculateLods.py | makeling/AGSSmartVectorTileTools | 009d925f883729f98c0d0744e1d466062dc260e6 | [
"Apache-2.0"
] | 3 | 2019-02-19T06:14:03.000Z | 2020-01-06T07:57:12.000Z | CalculateLods.py | makeling/AGSSmartVectorTileTools | 009d925f883729f98c0d0744e1d466062dc260e6 | [
"Apache-2.0"
] | null | null | null | CalculateLods.py | makeling/AGSSmartVectorTileTools | 009d925f883729f98c0d0744e1d466062dc260e6 | [
"Apache-2.0"
] | 2 | 2019-03-25T09:43:30.000Z | 2019-11-28T03:52:56.000Z | # -*- coding: utf-8 -*-
# !/usr/bin/python
__author__ = 'ma_keling'
# Version : 1.0.0
# Start Time : 2018-11-29
# Update Time :
# Change Log :
## 1.
## 2.
## 3.
import time
import arcpy
import math
def express_arcpy_error():
severity = arcpy.GetMaxSeverity()
if severity =... | 36.086207 | 121 | 0.568562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,972 | 0.235547 |
81aeea522ff7190fbf314844be2ef81f5a72b4cb | 3,894 | py | Python | python/one-liner/cluster_of_non_0.py | Hamng/python-sources | 0cc5a5d9e576440d95f496edcfd921ae37fcd05a | [
"Unlicense"
] | null | null | null | python/one-liner/cluster_of_non_0.py | Hamng/python-sources | 0cc5a5d9e576440d95f496edcfd921ae37fcd05a | [
"Unlicense"
] | 1 | 2019-02-23T18:30:51.000Z | 2019-02-23T18:30:51.000Z | python/one-liner/cluster_of_non_0.py | Hamng/python-sources | 0cc5a5d9e576440d95f496edcfd921ae37fcd05a | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 8 07:38:05 2020
@author: Ham
Self Challenge: Count Cluster of Non-0s
Given a 1-dimension array of integers,
determine how many 'clusters' of non-0 in the array.
A 'cluster' is a group of consecutive non-0 values.
Scoring: a solution needs to be a 1-liner;
... | 34.157895 | 81 | 0.48793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,427 | 0.880072 |
81aef189550b2b54e321b9991b292a9ac7b3bfcb | 5,133 | py | Python | cardano-node-tests/cardano_node_tests/tests/test_configuration.py | MitchellTesla/Cardano-SCK | f394506eb0875622093805c009951f6905261778 | [
"Apache-2.0"
] | 6 | 2021-08-30T00:49:12.000Z | 2022-01-27T07:07:53.000Z | cardano-node-tests/cardano_node_tests/tests/test_configuration.py | c-spider/Cardano-SCK | 1accb0426289489e371eb67422ccb19ffaab5f3c | [
"Apache-2.0"
] | 17 | 2021-08-31T23:27:44.000Z | 2022-03-25T20:35:16.000Z | cardano-node-tests/cardano_node_tests/tests/test_configuration.py | c-spider/Cardano-SCK | 1accb0426289489e371eb67422ccb19ffaab5f3c | [
"Apache-2.0"
] | 3 | 2021-05-20T08:26:00.000Z | 2022-03-27T22:31:36.000Z | """Tests for node configuration."""
import json
import logging
import time
from pathlib import Path
import allure
import pytest
from _pytest.tmpdir import TempdirFactory
from cardano_clusterlib import clusterlib
from cardano_node_tests.utils import cluster_management
from cardano_node_tests.utils import cluster_nodes... | 33.116129 | 100 | 0.728034 | 756 | 0.147282 | 149 | 0.029028 | 4,108 | 0.800312 | 0 | 0 | 984 | 0.191701 |
81afed5d2a7be68d968744aa55c07d3f1c78d48b | 241,016 | py | Python | output/myresults.py | jacobseiler/rsage | b3b0a3fa3c676eab188991e37d06894396bfc74f | [
"MIT"
] | 1 | 2019-05-23T04:11:32.000Z | 2019-05-23T04:11:32.000Z | output/myresults.py | jacobseiler/rsage | b3b0a3fa3c676eab188991e37d06894396bfc74f | [
"MIT"
] | 7 | 2018-08-17T05:04:57.000Z | 2019-01-16T05:40:16.000Z | output/myresults.py | jacobseiler/rsage | b3b0a3fa3c676eab188991e37d06894396bfc74f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import matplotlib
matplotlib.use('Agg')
import os
import heapq
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.colors as colors
import matplotlib.cm as cm
from numpy import *
from random import samp... | 51.258188 | 474 | 0.610478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 82,255 | 0.341284 |
81b112f3d2024fef2d743717dabaf4db53727b51 | 661 | py | Python | tests/functional_tests/test_camera.py | accessai/access-face-vision | 04469ebc03ac9644a44bbdb90951f1821dca0f6d | [
"Apache-2.0"
] | 3 | 2019-07-19T17:59:19.000Z | 2019-07-21T16:07:43.000Z | tests/functional_tests/test_camera.py | accessai/access-face-vision | 04469ebc03ac9644a44bbdb90951f1821dca0f6d | [
"Apache-2.0"
] | 9 | 2019-07-19T17:38:11.000Z | 2022-03-11T23:53:13.000Z | tests/functional_tests/test_camera.py | accessai/access-face-vision | 04469ebc03ac9644a44bbdb90951f1821dca0f6d | [
"Apache-2.0"
] | 1 | 2019-07-21T16:07:54.000Z | 2019-07-21T16:07:54.000Z | from multiprocessing import Queue, Value
from time import sleep
from access_face_vision.source.camera import Camera
from access_face_vision.utils import create_parser
from access_face_vision import access_logger
LOG_LEVEL = 'debug'
logger, log_que, que_listener = access_logger.set_main_process_logger(LOG_LEVEL)
def... | 26.44 | 90 | 0.754917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 65 | 0.098336 |
81b28caa54d539dfc14006299c0cf1e06133e78c | 1,537 | py | Python | utils/deserializer/__tests__/test_protobuf_deserializer.py | Mouse-BB-Team/Bot-Detection | 4438d8ccec1baaa22f3357213e6d52a62ff6d618 | [
"MIT"
] | 5 | 2020-09-30T16:58:59.000Z | 2021-11-30T22:34:10.000Z | utils/deserializer/__tests__/test_protobuf_deserializer.py | Mouse-BB-Team/Bot-Detection | 4438d8ccec1baaa22f3357213e6d52a62ff6d618 | [
"MIT"
] | null | null | null | utils/deserializer/__tests__/test_protobuf_deserializer.py | Mouse-BB-Team/Bot-Detection | 4438d8ccec1baaa22f3357213e6d52a62ff6d618 | [
"MIT"
] | null | null | null | from utils.deserializer.protobuf_deserializer import ProtoLoader
from pathlib import Path
import pandas as pd
import pytest
PROTOFILES_DIR_PATH = Path(__file__).parent.joinpath("protofilesdir").absolute().__str__()
INVALID_PATH = "some/wrong/path"
@pytest.mark.parametrize('filepath', ["test_file.pb", "test_file_1.tx... | 33.413043 | 92 | 0.791802 | 0 | 0 | 0 | 0 | 315 | 0.204945 | 0 | 0 | 90 | 0.058556 |
81b2cfe5a1a59f76e8e712dc7fabc6c32050694c | 18,966 | py | Python | wisdem/assemblies/turbinese/turbine_se_seam.py | dzalkind/WISDEM | 724a7bf9c19bad3ca7e18c240628d1a75b07e3f0 | [
"Apache-2.0"
] | 1 | 2020-01-22T17:48:30.000Z | 2020-01-22T17:48:30.000Z | wisdem/assemblies/turbinese/turbine_se_seam.py | dzalkind/WISDEM | 724a7bf9c19bad3ca7e18c240628d1a75b07e3f0 | [
"Apache-2.0"
] | 17 | 2019-09-13T22:21:15.000Z | 2019-10-25T20:04:26.000Z | wisdem/assemblies/turbinese/turbine_se_seam.py | dzalkind/WISDEM | 724a7bf9c19bad3ca7e18c240628d1a75b07e3f0 | [
"Apache-2.0"
] | 2 | 2019-03-21T10:38:05.000Z | 2021-01-08T18:49:53.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
turbine.py
Created by Andrew Ning and Katherine Dykes on 2014-01-13.
Copyright (c) NREL. All rights reserved.
"""
from openmdao.main.api import Assembly, Component
from openmdao.main.datatypes.api import Float, Array, Enum, Bool, Int
from openmdao.lib.drivers.api import Fix... | 54.188571 | 154 | 0.703048 | 90 | 0.004745 | 0 | 0 | 0 | 0 | 0 | 0 | 9,374 | 0.494253 |
81b36615a4cceca74102543564ca1a7f49b62e92 | 2,880 | py | Python | src/triage/component/results_schema/alembic/versions/5dd2ba8222b1_add_run_type.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 160 | 2017-06-13T09:59:59.000Z | 2022-03-21T22:00:35.000Z | src/triage/component/results_schema/alembic/versions/5dd2ba8222b1_add_run_type.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 803 | 2016-10-21T19:44:02.000Z | 2022-03-29T00:02:33.000Z | src/triage/component/results_schema/alembic/versions/5dd2ba8222b1_add_run_type.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 59 | 2017-01-31T22:10:22.000Z | 2022-03-19T12:35:03.000Z | """add run_type
Revision ID: 5dd2ba8222b1
Revises: 079a74c15e8b
Create Date: 2021-07-22 23:53:04.043651
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '5dd2ba8222b1'
down_revision = '079a74c15e8b'
branch_labels = None
... | 48.813559 | 209 | 0.755556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,487 | 0.516319 |
81b43298bda18b704f77ed56a530bc20370af1bf | 126 | py | Python | projects/PanopticFCN_cityscapes/panopticfcn/__init__.py | fatihyildiz-cs/detectron2 | 700b1e6685ca95a60e27cb961f363a2ca7f30d3c | [
"Apache-2.0"
] | 166 | 2020-12-01T18:34:47.000Z | 2021-03-27T04:20:15.000Z | panopticfcn/__init__.py | ywcmaike/PanopticFCN | 9201b06d871df128547ce36b80f6caceb105465d | [
"Apache-2.0"
] | 28 | 2021-05-20T08:59:05.000Z | 2022-03-18T13:17:35.000Z | panopticfcn/__init__.py | ywcmaike/PanopticFCN | 9201b06d871df128547ce36b80f6caceb105465d | [
"Apache-2.0"
] | 33 | 2021-05-23T14:09:19.000Z | 2022-03-30T14:27:55.000Z | from .config import add_panopticfcn_config
from .panoptic_seg import PanopticFCN
from .build_solver import build_lr_scheduler
| 31.5 | 44 | 0.880952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
81b626c300ff32d3e035f1c56e66bff3d7d1f4dc | 592 | py | Python | 03_lecture_Django/lecture3/hello/views.py | MoStgt/CS50 | 62bd6eb38bea745c6356e1a8f03adb6ab70e2a37 | [
"MIT"
] | null | null | null | 03_lecture_Django/lecture3/hello/views.py | MoStgt/CS50 | 62bd6eb38bea745c6356e1a8f03adb6ab70e2a37 | [
"MIT"
] | null | null | null | 03_lecture_Django/lecture3/hello/views.py | MoStgt/CS50 | 62bd6eb38bea745c6356e1a8f03adb6ab70e2a37 | [
"MIT"
] | null | null | null | from http.client import HTTPResponse
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
# def index(request):
# return HttpResponse("Hello World!")
def index(request):
return render(request, "hello/index.html")
def brian(request):
return HttpResponse("Hello... | 24.666667 | 57 | 0.706081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 239 | 0.403716 |
81b65c798718e0eb1c455ac640017cba04a70ce8 | 19,426 | py | Python | txdav/common/datastore/upgrade/test/test_migrate.py | backwardn/ccs-calendarserver | 13c706b985fb728b9aab42dc0fef85aae21921c3 | [
"Apache-2.0"
] | 462 | 2016-08-14T17:43:24.000Z | 2022-03-17T07:38:16.000Z | txdav/common/datastore/upgrade/test/test_migrate.py | backwardn/ccs-calendarserver | 13c706b985fb728b9aab42dc0fef85aae21921c3 | [
"Apache-2.0"
] | 72 | 2016-09-01T23:19:35.000Z | 2020-02-05T02:09:26.000Z | txdav/common/datastore/upgrade/test/test_migrate.py | backwardn/ccs-calendarserver | 13c706b985fb728b9aab42dc0fef85aae21921c3 | [
"Apache-2.0"
] | 171 | 2016-08-16T03:50:30.000Z | 2022-03-26T11:49:55.000Z | ##
# Copyright (c) 2010-2017 Apple Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 37.357692 | 130 | 0.653197 | 17,380 | 0.894677 | 13,024 | 0.670442 | 14,301 | 0.736178 | 0 | 0 | 5,561 | 0.286266 |
81b69499f86483624239f156b1fed165ba08aee8 | 1,770 | py | Python | generated-libraries/python/netapp/fcp/aliases_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/fcp/aliases_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/fcp/aliases_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | from netapp.netapp_object import NetAppObject
class AliasesInfo(NetAppObject):
"""
A list of WWPNs and their aliases generated according
to the input - alias, WWPN or nothing.
"""
_vserver = None
@property
def vserver(self):
"""
Vserver containing the alias
"""
... | 26.818182 | 95 | 0.565537 | 1,722 | 0.972881 | 0 | 0 | 1,089 | 0.615254 | 0 | 0 | 532 | 0.300565 |
81b7304301ce82e40f227f18f20c21206d2e4a7b | 5,745 | py | Python | imagernn/generic_batch_generator.py | OnlyBelter/learn_neuralTalk | 53c78962960e142bbd149eb92405029b795845ed | [
"MIT"
] | 7 | 2019-03-18T10:19:11.000Z | 2021-11-10T02:10:55.000Z | imagernn/generic_batch_generator.py | AllenMas/learn_neuralTalk | 53c78962960e142bbd149eb92405029b795845ed | [
"MIT"
] | null | null | null | imagernn/generic_batch_generator.py | AllenMas/learn_neuralTalk | 53c78962960e142bbd149eb92405029b795845ed | [
"MIT"
] | 8 | 2017-11-17T08:54:51.000Z | 2021-05-29T15:08:34.000Z | import numpy as np
import code
from imagernn.utils import merge_init_structs, initw, accumNpDicts
from imagernn.lstm_generator import LSTMGenerator
from imagernn.rnn_generator import RNNGenerator
def decodeGenerator(generator):
if generator == 'lstm':
return LSTMGenerator
if generator == 'rnn':
return RNNG... | 37.064516 | 131 | 0.673281 | 5,323 | 0.926545 | 0 | 0 | 5,149 | 0.896258 | 0 | 0 | 2,323 | 0.404352 |