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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1c41ef577f4a05e6ab921f39322d64330728ff4 | 1,688 | py | Python | start.py | AndrewJanuary/PM-Monitor | 43548c805d2ee11ac54f8df874cc06be458454a8 | [
"MIT"
] | null | null | null | start.py | AndrewJanuary/PM-Monitor | 43548c805d2ee11ac54f8df874cc06be458454a8 | [
"MIT"
] | 6 | 2021-01-28T22:04:45.000Z | 2021-12-20T20:59:03.000Z | start.py | AndrewJanuary/PM-Monitor | 43548c805d2ee11ac54f8df874cc06be458454a8 | [
"MIT"
] | null | null | null | from app.sensor import Sensor
from app.uploader import Uploader
from app.offline import Offline
import time, logging, argparse, sys, random, datetime
logging.basicConfig(filename='airquality.log', level=logging.DEBUG, filemode='a',
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
sen... | 30.690909 | 82 | 0.64455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 237 | 0.140403 |
e1c4600d073fba00b0a31f0113ee9536694f12a6 | 3,364 | py | Python | py_trees_ros/visitors.py | geoc1234/py_trees_ros | 65a055624f9261d67f0168ef419aa650302f96d0 | [
"BSD-3-Clause"
] | 65 | 2019-05-01T08:21:42.000Z | 2022-03-23T15:49:55.000Z | py_trees_ros/visitors.py | geoc1234/py_trees_ros | 65a055624f9261d67f0168ef419aa650302f96d0 | [
"BSD-3-Clause"
] | 62 | 2019-02-27T14:27:42.000Z | 2022-02-08T03:54:30.000Z | py_trees_ros/visitors.py | geoc1234/py_trees_ros | 65a055624f9261d67f0168ef419aa650302f96d0 | [
"BSD-3-Clause"
] | 23 | 2019-03-03T17:09:59.000Z | 2022-01-06T03:07:59.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# License: BSD
# https://raw.githubusercontent.com/splintered-reality/py_trees_ros/devel/LICENSE
#
##############################################################################
# Documentation
###########################################################################... | 31.735849 | 92 | 0.568668 | 2,040 | 0.606421 | 0 | 0 | 0 | 0 | 0 | 0 | 2,148 | 0.638526 |
e1c8c4baec324f5e5f8e13e03541f29a1a32842d | 11,394 | py | Python | Jarvis/features/Friday_Blueprint.py | faizeraza/Jarvis-Virtual-Assistant- | da88fc0124e6020aff1030317dc3dc918f7aa017 | [
"MIT"
] | 1 | 2021-12-14T00:18:10.000Z | 2021-12-14T00:18:10.000Z | Jarvis/features/Friday_Blueprint.py | faizeraza/Jarvis-Virtual-Assistant- | da88fc0124e6020aff1030317dc3dc918f7aa017 | [
"MIT"
] | null | null | null | Jarvis/features/Friday_Blueprint.py | faizeraza/Jarvis-Virtual-Assistant- | da88fc0124e6020aff1030317dc3dc918f7aa017 | [
"MIT"
] | 1 | 2021-12-29T05:01:02.000Z | 2021-12-29T05:01:02.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Friday_Blueprint.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtC... | 49.755459 | 121 | 0.722924 | 10,821 | 0.94971 | 0 | 0 | 0 | 0 | 0 | 0 | 1,307 | 0.114709 |
e1c8d5b0e59bc3cff42a51e6c70986bae9cb73c9 | 3,201 | py | Python | pints/toy/_logistic_model.py | iamleeg/pints | bd1c11472ff3ec0990f3d55f0b2f20d92397926d | [
"BSD-3-Clause"
] | null | null | null | pints/toy/_logistic_model.py | iamleeg/pints | bd1c11472ff3ec0990f3d55f0b2f20d92397926d | [
"BSD-3-Clause"
] | null | null | null | pints/toy/_logistic_model.py | iamleeg/pints | bd1c11472ff3ec0990f3d55f0b2f20d92397926d | [
"BSD-3-Clause"
] | null | null | null | #
# Logistic toy model.
#
# This file is part of PINTS.
# Copyright (c) 2017-2019, University of Oxford.
# For licensing information, see the LICENSE file distributed with the PINTS
# software package.
#
from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
import n... | 34.419355 | 79 | 0.555764 | 2,830 | 0.884099 | 0 | 0 | 0 | 0 | 0 | 0 | 1,441 | 0.450172 |
e1ca3f7ea92eaa76db3dc052ef98666164a81b5e | 414 | py | Python | poo/pybank/bank.py | fredsonchaves07/python-fundamentals | 4aee479c48f86319a2041e35ea985f971393c2ce | [
"MIT"
] | null | null | null | poo/pybank/bank.py | fredsonchaves07/python-fundamentals | 4aee479c48f86319a2041e35ea985f971393c2ce | [
"MIT"
] | null | null | null | poo/pybank/bank.py | fredsonchaves07/python-fundamentals | 4aee479c48f86319a2041e35ea985f971393c2ce | [
"MIT"
] | null | null | null | class Bank:
def __init__(self):
self.__agencies = [1111, 2222, 3333]
self.__costumers = []
self.__accounts = []
def insert_costumers(self, costumer):
self.__costumers.append(costumer)
def insert_accounts(self, account):
self.__accounts.append(account)
def authe... | 25.875 | 44 | 0.63285 | 413 | 0.997585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
e1cc98556e1e617de9737efeaed139473d56ebaf | 426 | py | Python | homeworks/vecutil.py | JediKoder/coursera-CodeMatrix | 1ac461d22ebaf2777eabdcf31d76d709c33f472a | [
"MIT"
] | 3 | 2018-01-11T07:48:06.000Z | 2020-04-27T20:49:02.000Z | homeworks/vecutil.py | JediKoder/coursera-CodeMatrix | 1ac461d22ebaf2777eabdcf31d76d709c33f472a | [
"MIT"
] | null | null | null | homeworks/vecutil.py | JediKoder/coursera-CodeMatrix | 1ac461d22ebaf2777eabdcf31d76d709c33f472a | [
"MIT"
] | 1 | 2021-01-26T07:25:48.000Z | 2021-01-26T07:25:48.000Z | # Copyright 2013 Philip N. Klein
from vec import Vec
def list2vec(L):
"""Given a list L of field elements, return a Vec with domain {0...len(L)-1}
whose entry i is L[i]
>>> list2vec([10, 20, 30])
Vec({0, 1, 2},{0: 10, 1: 20, 2: 30})
"""
return Vec(set(range(len(L))), {k:L[k] for k in range(len... | 25.058824 | 80 | 0.577465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 269 | 0.631455 |
e1ccdf7c98befd87dd0fafb60f1dfb6a4f453f5f | 59,998 | py | Python | squidpy/im/_container.py | Emberwhirl/squidpy | 456c49ac9149e16562617a8a4236a9faa2c0480d | [
"BSD-3-Clause"
] | 1 | 2022-02-02T13:41:36.000Z | 2022-02-02T13:41:36.000Z | squidpy/im/_container.py | Emberwhirl/squidpy | 456c49ac9149e16562617a8a4236a9faa2c0480d | [
"BSD-3-Clause"
] | null | null | null | squidpy/im/_container.py | Emberwhirl/squidpy | 456c49ac9149e16562617a8a4236a9faa2c0480d | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
from copy import copy, deepcopy
from types import MappingProxyType
from typing import (
Any,
Union,
Mapping,
TypeVar,
Callable,
Iterable,
Iterator,
Sequence,
TYPE_CHECKING,
)
from pathlib import Path
from functools import partial
from itertools imp... | 37.173482 | 120 | 0.561252 | 57,865 | 0.964449 | 6,881 | 0.114687 | 57,925 | 0.965449 | 0 | 0 | 22,706 | 0.378446 |
e1cd563f597751eb051e125f9959363e2f96050c | 397 | py | Python | users/forms.py | kurosh-wss/Personal-Finance-Management | 9c7c467b95999974492df19a0f0286809f877c87 | [
"MIT"
] | null | null | null | users/forms.py | kurosh-wss/Personal-Finance-Management | 9c7c467b95999974492df19a0f0286809f877c87 | [
"MIT"
] | null | null | null | users/forms.py | kurosh-wss/Personal-Finance-Management | 9c7c467b95999974492df19a0f0286809f877c87 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm
from crispy_bootstrap5.bootstrap5 import FloatingField
from crispy_forms.layout import Layout
from crispy_forms.helper import FormHelper
class CustomUserCreationForm(UserCreationForm):
email = forms.EmailField()
class Meta(UserCr... | 30.538462 | 58 | 0.806045 | 177 | 0.445844 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0.017632 |
e1cdbef2e0091f3d12ceeeebb7a6739477ce69ea | 1,214 | py | Python | tutorzzz_reminder/reminder.py | xiebei1108/tools | 8a3141e5d97305f4438e828c62eb7be512767aa9 | [
"Apache-2.0"
] | null | null | null | tutorzzz_reminder/reminder.py | xiebei1108/tools | 8a3141e5d97305f4438e828c62eb7be512767aa9 | [
"Apache-2.0"
] | null | null | null | tutorzzz_reminder/reminder.py | xiebei1108/tools | 8a3141e5d97305f4438e828c62eb7be512767aa9 | [
"Apache-2.0"
] | null | null | null | import json
import requests
import config
assignedIdList = list()
def __getList():
HEADERS = {
'Cookie': config.tutorzzzCookie,
'Content-Type': 'application/json'
}
res = requests.post(config.tutorzzzURL, headers = HEADERS, json = config.tutorzzzReqBody)
if res.status_code == 200:
... | 25.829787 | 93 | 0.528007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 251 | 0.2008 |
e1ce81097515faf4dfa5b55142281e9cb5ff0a2c | 3,315 | py | Python | invoicing/crud/invoice_crud.py | dnegreira/Invoicing | 0bc8133e989f095c10151f67482e249416274947 | [
"MIT"
] | null | null | null | invoicing/crud/invoice_crud.py | dnegreira/Invoicing | 0bc8133e989f095c10151f67482e249416274947 | [
"MIT"
] | null | null | null | invoicing/crud/invoice_crud.py | dnegreira/Invoicing | 0bc8133e989f095c10151f67482e249416274947 | [
"MIT"
] | null | null | null | from invoicing.crud.base_crud import BaseCrud
from invoicing.latex.latex_invoice import LatexInvoice
from invoicing.models.invoice_model import InvoiceModel
from invoicing.repository.invoice_repository import InvoiceRepository
from invoicing.repository.job_repository import JobRepository
from invoicing.ui.date import D... | 44.2 | 103 | 0.650075 | 2,848 | 0.859125 | 0 | 0 | 0 | 0 | 0 | 0 | 555 | 0.167421 |
e1cfe37a6f7f6e565038ee9ac5851b8cdd75207b | 946 | py | Python | ds3225_client.py | kim-tom/dbus_server | b16d1b47dfe4d699ef0177592ba528ba988f17be | [
"MIT"
] | null | null | null | ds3225_client.py | kim-tom/dbus_server | b16d1b47dfe4d699ef0177592ba528ba988f17be | [
"MIT"
] | null | null | null | ds3225_client.py | kim-tom/dbus_server | b16d1b47dfe4d699ef0177592ba528ba988f17be | [
"MIT"
] | null | null | null | from ds3225 import DS3225
import dbus
import dbus.mainloop.glib
import dbus.service
from gi.repository import GObject, GLib
UNLOCKED_DEG = 175
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
BUS_NAME = 'jp.kimura.DS3225Service'
OBJECT_PATH = '/jp/kimura/DS3225Server'
INTERFACE = 'jp.kimura.DS3225'
class DS3225... | 27.823529 | 65 | 0.701903 | 407 | 0.430233 | 0 | 0 | 0 | 0 | 0 | 0 | 78 | 0.082452 |
e1d05a453d3d0e33ff80baf493eec26c3cbe59f9 | 437 | py | Python | Extra kunskap/Kod/Farmen.py | abbindustrigymnasium/Programmering-1-Slutuppgift | 679069ebb632ee59f6b4ee3035c18ae204cde145 | [
"Apache-2.0"
] | null | null | null | Extra kunskap/Kod/Farmen.py | abbindustrigymnasium/Programmering-1-Slutuppgift | 679069ebb632ee59f6b4ee3035c18ae204cde145 | [
"Apache-2.0"
] | null | null | null | Extra kunskap/Kod/Farmen.py | abbindustrigymnasium/Programmering-1-Slutuppgift | 679069ebb632ee59f6b4ee3035c18ae204cde145 | [
"Apache-2.0"
] | 1 | 2020-03-09T12:04:31.000Z | 2020-03-09T12:04:31.000Z | import openpyxl
wb= openpyxl.load_workbook('Farmen.xlsx')
# sheet= wb.active
# print(wb.get_sheet_names())
# Deltagar_sheet= wb.get_sheet_by_name('Deltagare')
# artists=[{"Namn":sheet.cell(row=i, column=2).value,
# "Sång":sheet.cell(row=i, column=3).value,
# "Poäng":sheet.cell(row=i, column=6).... | 33.615385 | 54 | 0.649886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 381 | 0.865909 |
e1d12741ffdd5338667faa2590522d4debf232f5 | 3,437 | py | Python | archive/simple_nn.py | petebond/MarketPlaceML | 347ea5eab84673b846c85c58ce6c525e3f1dd0ff | [
"CC0-1.0"
] | null | null | null | archive/simple_nn.py | petebond/MarketPlaceML | 347ea5eab84673b846c85c58ce6c525e3f1dd0ff | [
"CC0-1.0"
] | null | null | null | archive/simple_nn.py | petebond/MarketPlaceML | 347ea5eab84673b846c85c58ce6c525e3f1dd0ff | [
"CC0-1.0"
] | null | null | null | from os import access
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.utils.data import DataLoader
from torchvision import datasets, transforms
import numpy as np
import matplotlib.pyplot as plt
# Create fully connected neural network
class NN(nn.Module):
d... | 30.6875 | 112 | 0.647949 | 1,012 | 0.294443 | 0 | 0 | 0 | 0 | 0 | 0 | 345 | 0.100378 |
becbc66bb4d180935eed7f6a49ea9b7ed75ae703 | 998 | py | Python | plot_loss.py | ngachago/tabular_comp | 799a1e0dbf7a51bb04454f1f14a57f883dbd2da7 | [
"MIT"
] | null | null | null | plot_loss.py | ngachago/tabular_comp | 799a1e0dbf7a51bb04454f1f14a57f883dbd2da7 | [
"MIT"
] | null | null | null | plot_loss.py | ngachago/tabular_comp | 799a1e0dbf7a51bb04454f1f14a57f883dbd2da7 | [
"MIT"
] | null | null | null |
import matplotlib.pyplot as plt
def plot_loss_mae(history):
plt.plot(history.history['loss'])
plt.plot(history.history['val_loss'])
plt.title('Model loss')
plt.ylabel('Loss')
plt.xlabel('Epoch')
plt.legend(['Train', 'Validation'], loc='best')
plt.show()
plt.plot(history.history['mae']... | 26.972973 | 51 | 0.635271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 276 | 0.276553 |
becc2f00075040cb4b100c7b8d0736d719593862 | 18,695 | py | Python | hotkey.py | RMPiria/painelContreole | bd07def485981456a7e7390f2b18db71740ce8da | [
"Unlicense"
] | null | null | null | hotkey.py | RMPiria/painelContreole | bd07def485981456a7e7390f2b18db71740ce8da | [
"Unlicense"
] | null | null | null | hotkey.py | RMPiria/painelContreole | bd07def485981456a7e7390f2b18db71740ce8da | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from os.path import dirname, join, normpath
import sys
from sys import platform
from config import config
if platform == 'darwin':
import objc
from AppKit import NSApplication, NSWorkspace, NSBeep, NSSound, NSEvent, NSKeyDown, NSKeyUp, NSFlagsChanged, NSKeyDownMask, NSFlag... | 44.300948 | 424 | 0.589462 | 16,038 | 0.853948 | 0 | 0 | 732 | 0.038976 | 0 | 0 | 3,193 | 0.170012 |
becc66adc74c550995995f2d2b08dfaa9d6845d1 | 3,530 | py | Python | Chapter10/ch10_r1_grover_aqua.py | georgekorpas/Quantum-Computing-in-Practice-with-Qiskit-and-IBM-Quantum-Experience | 938123d051c5bab72110011b3a05e515bb69ca09 | [
"MIT"
] | 24 | 2020-11-21T20:33:51.000Z | 2022-03-26T06:41:27.000Z | Chapter10/ch10_r1_grover_aqua.py | videomover/Quantum-Computing-in-Practice-with-Qiskit-and-IBM-Quantum-Experience | 938123d051c5bab72110011b3a05e515bb69ca09 | [
"MIT"
] | 2 | 2021-02-07T14:32:12.000Z | 2022-03-25T07:23:46.000Z | Chapter10/ch10_r1_grover_aqua.py | videomover/Quantum-Computing-in-Practice-with-Qiskit-and-IBM-Quantum-Experience | 938123d051c5bab72110011b3a05e515bb69ca09 | [
"MIT"
] | 16 | 2020-11-03T07:49:11.000Z | 2022-03-26T06:41:29.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created Nov 2020
@author: hassi
"""
from qiskit import Aer, IBMQ
# Do the necessary import for our program
from qiskit.aqua.algorithms import Grover
from qiskit.aqua.components.oracles import LogicalExpressionOracle, TruthTableOracle
# Import basic plot tools
from ... | 34.950495 | 120 | 0.703116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 912 | 0.258357 |
becc7d9f66f89922de66fb46f1bec24640debbb3 | 1,428 | py | Python | setup_pre-commit.py | fierte-product-development/Setups | d6151888ecc82a94e894b5d926c85eb193a5b97c | [
"MIT"
] | 1 | 2021-07-06T09:26:48.000Z | 2021-07-06T09:26:48.000Z | setup_pre-commit.py | fierte-product-development/Setups | d6151888ecc82a94e894b5d926c85eb193a5b97c | [
"MIT"
] | 3 | 2022-01-26T05:29:04.000Z | 2022-02-16T10:16:02.000Z | setup_pre-commit.py | fierte-product-development/Setups | d6151888ecc82a94e894b5d926c85eb193a5b97c | [
"MIT"
] | 1 | 2020-11-11T01:23:01.000Z | 2020-11-11T01:23:01.000Z | import sys
import os
import subprocess
from subprocess import PIPE, STDOUT
from pathlib import Path
proc_arg = {
'shell': True,
'stdout': PIPE,
'text': True
}
def _run(*cmd):
proc = subprocess.run(cmd, **proc_arg, stderr=PIPE)
return proc.stdout.replace('\n', '')
def _popen(... | 21.969231 | 65 | 0.579832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 478 | 0.300629 |
bece2e0f8b2de4615e59523ec76f70e91828684b | 889 | py | Python | 5-buscar.py | gustavodp22/TP_DE_-CRUD-create-read-update-delete- | 8edfba57cbbad37f8fb1af2d42d1d601301e8dd6 | [
"MIT"
] | null | null | null | 5-buscar.py | gustavodp22/TP_DE_-CRUD-create-read-update-delete- | 8edfba57cbbad37f8fb1af2d42d1d601301e8dd6 | [
"MIT"
] | null | null | null | 5-buscar.py | gustavodp22/TP_DE_-CRUD-create-read-update-delete- | 8edfba57cbbad37f8fb1af2d42d1d601301e8dd6 | [
"MIT"
] | null | null | null | """
CRUD de SQLite3 con Python 3
"""
import sqlite3
try:
bd = sqlite3.connect("libros.db")
cursor = bd.cursor()
busqueda = input("Escribe tu búsqueda: ")
if not busqueda:
print("Búsqueda inválida")
exit()
sentencia = "SELECT * FROM libros WHERE titulo LIKE ?;"
cursor.execute(sentencia, ... | 27.78125 | 86 | 0.533183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 386 | 0.431767 |
becf153d29dc0bf9abcbf500a0d578ce48e9150a | 4,686 | py | Python | tests/advanced_tests/regressors.py | amlanbanerjee/auto_ml | db8e1d2cfa93f13a21e55739acfc8d99837e91b0 | [
"MIT"
] | 1,671 | 2016-08-09T04:44:48.000Z | 2022-03-27T01:29:23.000Z | tests/advanced_tests/regressors.py | amlanbanerjee/auto_ml | db8e1d2cfa93f13a21e55739acfc8d99837e91b0 | [
"MIT"
] | 428 | 2016-08-08T00:13:04.000Z | 2022-01-19T10:09:05.000Z | tests/advanced_tests/regressors.py | amlanbanerjee/auto_ml | db8e1d2cfa93f13a21e55739acfc8d99837e91b0 | [
"MIT"
] | 334 | 2016-08-29T12:34:18.000Z | 2022-01-31T09:14:30.000Z | import datetime
import os
import random
import sys
sys.path = [os.path.abspath(os.path.dirname(__file__))] + sys.path
from auto_ml import Predictor
from auto_ml.utils_models import load_ml_model
import dill
from nose.tools import assert_equal, assert_not_equal, with_setup
import numpy as np
from sklearn.model_selecti... | 31.877551 | 146 | 0.712761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,369 | 0.292147 |
bed0237d9ebc522d5a4384033d2b57c729cc7ede | 39 | py | Python | __init__.py | amueller/information-theoretic-mst | 178fd4396bc9a9a499ec3d18d5047b320a5c32f2 | [
"Unlicense"
] | 20 | 2016-05-03T13:29:09.000Z | 2021-10-06T20:41:36.000Z | __init__.py | amueller/information-theoretic-mst | 178fd4396bc9a9a499ec3d18d5047b320a5c32f2 | [
"Unlicense"
] | 1 | 2018-04-21T15:32:07.000Z | 2020-05-19T00:28:52.000Z | __init__.py | amueller/information-theoretic-mst | 178fd4396bc9a9a499ec3d18d5047b320a5c32f2 | [
"Unlicense"
] | 5 | 2015-04-21T00:27:49.000Z | 2019-02-23T20:46:33.000Z | from itm import ITM
__all__ = ['ITM']
| 9.75 | 19 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0.128205 |
bed3d451e4686403bc8880395163b3b1b1569208 | 2,827 | py | Python | scripts/left_right_hemisphere_data/hemisphere_asymmetry.py | mwinding/connectome_analysis | dbc747290891805863c9481921d8080dc2043d21 | [
"MIT"
] | 1 | 2021-06-10T05:48:16.000Z | 2021-06-10T05:48:16.000Z | left_right_hemisphere_data/hemisphere_asymmetry.py | mwinding/connectome_tools | 0392f6b1e924194299ea7760d8386eb01f3371a3 | [
"MIT"
] | 2 | 2022-01-21T11:48:45.000Z | 2022-01-21T11:48:45.000Z | scripts/left_right_hemisphere_data/hemisphere_asymmetry.py | mwinding/connectome_analysis | dbc747290891805863c9481921d8080dc2043d21 | [
"MIT"
] | 1 | 2022-02-02T15:39:52.000Z | 2022-02-02T15:39:52.000Z | import pandas as pd
import numpy as np
import csv
# import synapses divided across hemispheres
hemisphere_data = pd.read_csv('left_right_hemisphere_data/brain_hemisphere_membership.csv', header = 0)
#print(hemisphere_data)
# import pair list CSV, manually generated
#pairs = pd.read_csv('data/bp-pairs-2020-01-28.csv',... | 45.596774 | 145 | 0.812168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 995 | 0.351963 |
bed4073b9e79a28ea38d1cc06f6e14cb5d4efcb7 | 777 | py | Python | __determineTripplesSumToZeroFromList.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __determineTripplesSumToZeroFromList.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __determineTripplesSumToZeroFromList.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | '''
Python program to determine which triples sum to zero from a given list of lists.
Input: [[1343532, -2920635, 332], [-27, 18, 9], [4, 0, -4], [2, 2, 2], [-20, 16, 4]]
Output:
[False, True, True, False, True]
Input: [[1, 2, -3], [-4, 0, 4], [0, 1, -5], [1, 1, 1], [-2, 4, -1]]
Output:
[True, True, False, False, False... | 32.375 | 84 | 0.574003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 485 | 0.624196 |
bed6c276e3757d89c0d4a20b188e77bced930a94 | 701 | py | Python | fastNLP/modules/encoder/lstm.py | h00Jiang/fastNLP | 79ddb469d81946c87a3d066122a8a3aba6e40f3a | [
"Apache-2.0"
] | null | null | null | fastNLP/modules/encoder/lstm.py | h00Jiang/fastNLP | 79ddb469d81946c87a3d066122a8a3aba6e40f3a | [
"Apache-2.0"
] | null | null | null | fastNLP/modules/encoder/lstm.py | h00Jiang/fastNLP | 79ddb469d81946c87a3d066122a8a3aba6e40f3a | [
"Apache-2.0"
] | null | null | null | import torch.nn as nn
class Lstm(nn.Module):
"""
LSTM module
Args:
input_size : input size
hidden_size : hidden size
num_layers : number of hidden layers. Default: 1
dropout : dropout rate. Default: 0.5
bidirectional : If True, becomes a bidirectional RNN. Default: False.
"""
... | 29.208333 | 98 | 0.636234 | 676 | 0.964337 | 0 | 0 | 0 | 0 | 0 | 0 | 264 | 0.376605 |
bed723c002fdd1ab37526c62f785025bbbd1fbd1 | 838 | py | Python | geoLocApp/signals.py | KKWaxy/geoLoc | 23e33b9fd7cb3b1031bd11475612dcc324680975 | [
"Apache-2.0"
] | null | null | null | geoLocApp/signals.py | KKWaxy/geoLoc | 23e33b9fd7cb3b1031bd11475612dcc324680975 | [
"Apache-2.0"
] | null | null | null | geoLocApp/signals.py | KKWaxy/geoLoc | 23e33b9fd7cb3b1031bd11475612dcc324680975 | [
"Apache-2.0"
] | null | null | null | from django.db.models.signals import pre_save,post_save
from django.dispatch import receiver
import geoLocApp.models
import geoLocApp.distance
# @receiver(post_save,sender=geoLocApp.models.Position,dispatch_uid="only_before_registered")
# def setDistance(sender, **kwargs):
# position = kwargs["instance"]
... | 39.904762 | 139 | 0.72673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 672 | 0.801909 |
bed7a7f211ac4ca2170057d5dae27d3248efc33a | 2,198 | py | Python | src/main/python/shabda/data/iterators/internal/data_iterator_base.py | dhiraa/sabdha | f428418962dcc76f49e0a451ffc0545fda9b6b59 | [
"Apache-2.0"
] | 4 | 2018-10-26T07:00:34.000Z | 2020-10-07T01:03:08.000Z | src/main/python/shabda/data/iterators/internal/data_iterator_base.py | dhiraa/sabdha | f428418962dcc76f49e0a451ffc0545fda9b6b59 | [
"Apache-2.0"
] | null | null | null | src/main/python/shabda/data/iterators/internal/data_iterator_base.py | dhiraa/sabdha | f428418962dcc76f49e0a451ffc0545fda9b6b59 | [
"Apache-2.0"
] | 1 | 2018-10-26T07:00:38.000Z | 2018-10-26T07:00:38.000Z | # Copyright 2018 The Shabda Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 28.179487 | 83 | 0.670155 | 1,368 | 0.622384 | 0 | 0 | 75 | 0.034122 | 0 | 0 | 1,258 | 0.572338 |
bed7c4898d58c738f63aa212ff888514735a6694 | 441 | py | Python | app/filters.py | dakhnovskaya/organization | 72fb6f0a2daf03e7f7ce4dfb2cb3c3eaf1c40851 | [
"Apache-2.0"
] | null | null | null | app/filters.py | dakhnovskaya/organization | 72fb6f0a2daf03e7f7ce4dfb2cb3c3eaf1c40851 | [
"Apache-2.0"
] | null | null | null | app/filters.py | dakhnovskaya/organization | 72fb6f0a2daf03e7f7ce4dfb2cb3c3eaf1c40851 | [
"Apache-2.0"
] | null | null | null | import django_filters
from app.models import Company
class CompanyFilter(django_filters.FilterSet):
min_cost = django_filters.NumberFilter(field_name='companyproduct__cost', lookup_expr='gte')
max_cost = django_filters.NumberFilter(field_name='companyproduct__cost', lookup_expr='lte')
class Meta:
... | 33.923077 | 102 | 0.750567 | 384 | 0.870748 | 0 | 0 | 0 | 0 | 0 | 0 | 127 | 0.287982 |
bed83cf2a356ae3011eb19bade5063e46f89b28c | 6,598 | py | Python | reaction/rpc/rabbitmq.py | Inkln/reaction | 7a57bd642ac3db15012717130a5f2655c3b7b177 | [
"Apache-2.0"
] | 73 | 2019-10-01T15:59:57.000Z | 2021-06-29T11:59:16.000Z | reaction/rpc/rabbitmq.py | Inkln/reaction | 7a57bd642ac3db15012717130a5f2655c3b7b177 | [
"Apache-2.0"
] | 2 | 2020-06-25T10:26:38.000Z | 2022-02-21T06:20:47.000Z | reaction/rpc/rabbitmq.py | Inkln/reaction | 7a57bd642ac3db15012717130a5f2655c3b7b177 | [
"Apache-2.0"
] | 7 | 2019-10-08T05:46:22.000Z | 2020-07-27T12:58:18.000Z | from typing import List
import asyncio
import inspect
import logging
import uuid
import aio_pika
import aio_pika.exceptions
from .base import BaseRPC
from .common import RPCError, RPCHandler, RPCRequest, RPCResponse
class RPC(BaseRPC):
HEARTBEAT_INTERVAL = 300
def __init__(
self,
url: str =... | 34.910053 | 78 | 0.543346 | 6,377 | 0.966505 | 0 | 0 | 0 | 0 | 5,401 | 0.818581 | 241 | 0.036526 |
bed8ffa1e73ffa405bfc1005a04f4f722ab41812 | 2,069 | py | Python | api/migrations/0005_auto_20200906_1951.py | sh2MAN/yamdb_final | 17f84bacd832237d88d3389605cf2acdf2a590f5 | [
"BSD-3-Clause"
] | null | null | null | api/migrations/0005_auto_20200906_1951.py | sh2MAN/yamdb_final | 17f84bacd832237d88d3389605cf2acdf2a590f5 | [
"BSD-3-Clause"
] | null | null | null | api/migrations/0005_auto_20200906_1951.py | sh2MAN/yamdb_final | 17f84bacd832237d88d3389605cf2acdf2a590f5 | [
"BSD-3-Clause"
] | 12 | 2021-02-11T16:39:00.000Z | 2022-03-30T19:18:24.000Z | # Generated by Django 3.0.5 on 2020-09-06 19:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0004_auto_20200906_1752'),
]
operations = [
migrations.AlterModelOptions(
name='category... | 34.483333 | 177 | 0.585307 | 2,043 | 0.941909 | 0 | 0 | 0 | 0 | 0 | 0 | 609 | 0.280775 |
bed9a7c33d1cf837bf05eedf9e2389f71612ac64 | 1,104 | py | Python | user_activity/models.py | adithya-bhat-b/user-activity | d2577bbb295ac381e08a31e296e3d681da7ab036 | [
"MIT"
] | null | null | null | user_activity/models.py | adithya-bhat-b/user-activity | d2577bbb295ac381e08a31e296e3d681da7ab036 | [
"MIT"
] | 3 | 2021-04-08T22:04:18.000Z | 2021-06-09T19:14:16.000Z | user_activity/models.py | adithya-bhat-b/user-activity | d2577bbb295ac381e08a31e296e3d681da7ab036 | [
"MIT"
] | null | null | null | import pytz
from django.db import models
# Create your models here.
def _get_time_zones():
"""
Function to get all the timezones
"""
timezone_choices = [(tz, tz) for tz in pytz.all_timezones]
return timezone_choices
# Model for user
class User(models.Model):
"""
User model:
attri... | 25.674419 | 74 | 0.646739 | 827 | 0.749094 | 0 | 0 | 0 | 0 | 0 | 0 | 451 | 0.408514 |
bedad5c3db81102c82212833e871a369686befc7 | 1,992 | py | Python | Learning/python_data_analysis1.py | VictoriaGuXY/MCO-Menu-Checker-Online | 706e2e1bf7395cc344f382ea2ac53d964d459f86 | [
"MIT"
] | null | null | null | Learning/python_data_analysis1.py | VictoriaGuXY/MCO-Menu-Checker-Online | 706e2e1bf7395cc344f382ea2ac53d964d459f86 | [
"MIT"
] | null | null | null | Learning/python_data_analysis1.py | VictoriaGuXY/MCO-Menu-Checker-Online | 706e2e1bf7395cc344f382ea2ac53d964d459f86 | [
"MIT"
] | null | null | null | import pandas as pd
# pandas provides us lots of data frame and functions that we can quickly use
# to analyze data.
"""
output
"""
# This file contains notes of basic data analyzing strategies using Python.
# I will introduce two ways to read a csv file: pathway and URL.
# Also, I will introduce how to output data ... | 36.888889 | 84 | 0.533133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,844 | 0.925703 |
bedb078b9701b035a6b7ffcad6706445ac8dade2 | 768 | py | Python | InvoiceItemModel.py | kevinyjiang/cpa-generator | c21cd1f898cf068daff8a6937d6cefc591b16ab1 | [
"MIT"
] | 2 | 2018-09-26T19:18:45.000Z | 2018-11-14T00:38:28.000Z | InvoiceItemModel.py | kevinyjiang/cpa-generator | c21cd1f898cf068daff8a6937d6cefc591b16ab1 | [
"MIT"
] | null | null | null | InvoiceItemModel.py | kevinyjiang/cpa-generator | c21cd1f898cf068daff8a6937d6cefc591b16ab1 | [
"MIT"
] | null | null | null | import config
class InvoiceItemModel(object):
def __init__(self, itemType, quantity):
self.itemType = itemType
self.quantity = int(quantity)
self.unitPrice = 0
if itemType == 'Portraiture':
self.unitPrice = config.PORTRAIT_RATE
else:
self.unitPrice ... | 30.72 | 68 | 0.453125 | 753 | 0.980469 | 0 | 0 | 0 | 0 | 0 | 0 | 198 | 0.257813 |
bedb1dc2f3fdaeceb37c80ae1a87e69944c3c668 | 1,725 | py | Python | lambda/populateDB/lambda_function.py | aws-samples/amazon-connect-dynamic-ivr-menus | 911f5d04cf78d3097cfe7e169bd0062459d61ec4 | [
"MIT-0"
] | 4 | 2021-06-24T14:42:42.000Z | 2021-12-13T07:08:48.000Z | lambda/populateDB/lambda_function.py | aws-samples/amazon-connect-dynamic-ivr-menus | 911f5d04cf78d3097cfe7e169bd0062459d61ec4 | [
"MIT-0"
] | 1 | 2021-12-13T06:53:39.000Z | 2021-12-13T06:53:39.000Z | lambda/populateDB/lambda_function.py | aws-samples/amazon-connect-dynamic-ivr-menus | 911f5d04cf78d3097cfe7e169bd0062459d61ec4 | [
"MIT-0"
] | 2 | 2021-06-10T18:54:03.000Z | 2021-12-13T08:07:05.000Z | import json
import boto3
import os
def lambda_handler(event, context):
# TODO implement
dynamodb = boto3.resource('dynamodb')
customerTable = os.environ['customerTable']
table1 = dynamodb.Table(customerTable)
policiesTable = os.environ['policiesTable']
table2 = dynamodb.Table(policiesTabl... | 28.278689 | 176 | 0.584348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 876 | 0.507826 |
bedcd44ac29b275e927dc09d0e22f32d04f7138a | 59 | py | Python | pyds/heap/__init__.py | nitinkatyal1314/data-structures | 2e7f5b99a6b09cea48f729682d9431b72afbfd7a | [
"MIT"
] | 6 | 2021-04-06T18:14:59.000Z | 2021-07-18T03:26:03.000Z | pyds/heap/__init__.py | nitinkatyal1314/data-structures | 2e7f5b99a6b09cea48f729682d9431b72afbfd7a | [
"MIT"
] | null | null | null | pyds/heap/__init__.py | nitinkatyal1314/data-structures | 2e7f5b99a6b09cea48f729682d9431b72afbfd7a | [
"MIT"
] | null | null | null | from .api import HeapAPI as Heap
from .api import HeapType
| 19.666667 | 32 | 0.79661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
bedeaa04e3aa523fae916c1f3ad83805bf94106f | 2,849 | py | Python | examples/s5b_transfer/s5b_receiver.py | isabella232/slixmpp | e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a | [
"BSD-3-Clause"
] | null | null | null | examples/s5b_transfer/s5b_receiver.py | isabella232/slixmpp | e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a | [
"BSD-3-Clause"
] | 1 | 2021-02-24T07:58:40.000Z | 2021-02-24T07:58:40.000Z | examples/s5b_transfer/s5b_receiver.py | isabella232/slixmpp | e15e6735f1dbfc66a5d43efe9fa9e7f5c9d1610a | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Slixmpp: The Slick XMPP Library
Copyright (C) 2015 Emmanuel Gil Peyrot
This file is part of Slixmpp.
See the file LICENSE for copying permission.
"""
import asyncio
import logging
from getpass import getpass
from argparse import ArgumentParser
impo... | 31.307692 | 77 | 0.630046 | 763 | 0.267813 | 0 | 0 | 0 | 0 | 0 | 0 | 1,072 | 0.376272 |
bedfb697a1311d179da9b0d371384f0a26973131 | 2,170 | py | Python | api/app/routers/weather_models.py | bcgov/wps | 71df0de72de9cd656dc9ebf8461ffe47cfb155f6 | [
"Apache-2.0"
] | 19 | 2020-01-31T21:51:31.000Z | 2022-01-07T14:40:03.000Z | api/app/routers/weather_models.py | bcgov/wps | 71df0de72de9cd656dc9ebf8461ffe47cfb155f6 | [
"Apache-2.0"
] | 1,680 | 2020-01-24T23:25:08.000Z | 2022-03-31T23:50:27.000Z | api/app/routers/weather_models.py | bcgov/wps | 71df0de72de9cd656dc9ebf8461ffe47cfb155f6 | [
"Apache-2.0"
] | 6 | 2020-04-28T22:41:08.000Z | 2021-05-05T18:16:06.000Z | """ Routers for weather_models.
"""
import logging
from fastapi import APIRouter, Depends
from app.auth import authentication_required, audit
from app.weather_models import ModelEnum
from app.schemas.weather_models import (
WeatherModelPredictionSummaryResponse,
WeatherStationsModelRunsPredictionsResponse)
from... | 38.070175 | 109 | 0.765438 | 0 | 0 | 0 | 0 | 1,458 | 0.671889 | 1,220 | 0.562212 | 420 | 0.193548 |
bee066a8fc595636f1ed42106327e650d743c5d7 | 1,529 | py | Python | 155.min-stack.py | elfgzp/leetCode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | 3 | 2019-04-12T06:22:56.000Z | 2019-05-04T04:25:01.000Z | 155.min-stack.py | elfgzp/Leetcode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | null | null | null | 155.min-stack.py | elfgzp/Leetcode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | null | null | null | #
# @lc app=leetcode.cn id=155 lang=python3
#
# [155] 最小栈
#
# https://leetcode-cn.com/problems/min-stack/description/
#
# algorithms
# Easy (47.45%)
# Total Accepted: 19.4K
# Total Submissions: 40.3K
# Testcase Example: '["MinStack","push","push","push","getMin","pop","top","getMin"]\n[[],[-2],[0],[-3],[],[],[],[]]... | 19.602564 | 118 | 0.530412 | 655 | 0.390346 | 0 | 0 | 0 | 0 | 0 | 0 | 1,029 | 0.61323 |
bee082fd43d018efe615e1efde05a3a482204b84 | 48,845 | py | Python | demisto_client/demisto_api/models/investigation_playbook_task.py | guytest/demisto-py | 8ca4f56a6177668151b5656cbe675a377003c0e9 | [
"Apache-2.0"
] | 1 | 2020-04-08T14:36:06.000Z | 2020-04-08T14:36:06.000Z | demisto_client/demisto_api/models/investigation_playbook_task.py | guytest/demisto-py | 8ca4f56a6177668151b5656cbe675a377003c0e9 | [
"Apache-2.0"
] | null | null | null | demisto_client/demisto_api/models/investigation_playbook_task.py | guytest/demisto-py | 8ca4f56a6177668151b5656cbe675a377003c0e9 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Demisto API
This is the public REST API to integrate with the demisto server. HTTP request can be sent using any HTTP-client. For an example dedicated client take a look at: https://github.com/demisto/demisto-py. Requests must include API-key that can be generated in the Demisto web clie... | 32.498337 | 1,584 | 0.649381 | 45,570 | 0.932875 | 0 | 0 | 31,877 | 0.652562 | 0 | 0 | 27,349 | 0.559868 |
bee216da141df68c9f7b41ae5761fcf6bc3e34f4 | 36,274 | py | Python | make.py | beefoo/subway-inequality | a93bdbf81ea3753b0d2ec85d028f816adcc2f6f9 | [
"MIT"
] | 1 | 2021-03-08T01:44:10.000Z | 2021-03-08T01:44:10.000Z | make.py | beefoo/subway-inequality | a93bdbf81ea3753b0d2ec85d028f816adcc2f6f9 | [
"MIT"
] | null | null | null | make.py | beefoo/subway-inequality | a93bdbf81ea3753b0d2ec85d028f816adcc2f6f9 | [
"MIT"
] | 1 | 2021-11-02T21:55:39.000Z | 2021-11-02T21:55:39.000Z | # -*- coding: utf-8 -*-
# python3 make.py -loc "data/lines/1.csv" -width 3840 -height 2160 -overwrite
# python3 make.py -loc "data/lines/1.csv" -width 3840 -height 2160 -rtl -overwrite
# python3 combine.py
# python3 make.py -data "data/lines/A_LEF.csv" -width 3840 -height 2160 -loc "data/lines/C.csv" -img "img/A.png" ... | 48.559572 | 371 | 0.668688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10,581 | 0.291697 |
bee4367acb7e986f0d0dbc48437bdbc33f87cdab | 15,487 | py | Python | release/scripts/startup/bl_ui/space_text.py | vic3t3chn0/Bforartists | 7c54a60dd7aa568e20ae7e3778dfef993b61b7b5 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2020-01-18T22:13:24.000Z | 2020-01-18T22:13:24.000Z | release/scripts/startup/bl_ui/space_text.py | vic3t3chn0/Bforartists | 7c54a60dd7aa568e20ae7e3778dfef993b61b7b5 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | release/scripts/startup/bl_ui/space_text.py | vic3t3chn0/Bforartists | 7c54a60dd7aa568e20ae7e3778dfef993b61b7b5 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | 31.735656 | 125 | 0.612966 | 13,826 | 0.892749 | 0 | 0 | 516 | 0.033318 | 0 | 0 | 4,758 | 0.307225 |
bee4d2aa2b67b36999556e3fe3dbdddbb08d368e | 6,151 | py | Python | wb/main/jobs/create_setup_bundle/create_setup_bundle_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 23 | 2022-03-17T12:24:09.000Z | 2022-03-31T09:13:30.000Z | wb/main/jobs/create_setup_bundle/create_setup_bundle_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 18 | 2022-03-21T08:17:44.000Z | 2022-03-30T12:42:30.000Z | wb/main/jobs/create_setup_bundle/create_setup_bundle_job.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 16 | 2022-03-17T12:24:14.000Z | 2022-03-31T12:15:12.000Z | """
OpenVINO DL Workbench
Class for create setup bundle job
Copyright (c) 2020 Intel Corporation
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... | 55.918182 | 115 | 0.676313 | 4,881 | 0.79353 | 0 | 0 | 351 | 0.057064 | 0 | 0 | 862 | 0.14014 |
bee53cb77bca7c1ce3a8035bc7f1d877d50fc52d | 2,365 | py | Python | ros_awsiot_agent/src/ros_awsiot_agent/mqtt2ros.py | whill-labs/ros_awsiot | 4c15be53c0643fb81fd5a261a1af5be2652c4166 | [
"MIT"
] | 4 | 2021-10-06T10:19:07.000Z | 2022-03-02T02:13:09.000Z | ros_awsiot_agent/src/ros_awsiot_agent/mqtt2ros.py | whill-labs/ros_awsiot | 4c15be53c0643fb81fd5a261a1af5be2652c4166 | [
"MIT"
] | 1 | 2021-10-02T15:13:48.000Z | 2021-10-02T15:13:48.000Z | ros_awsiot_agent/src/ros_awsiot_agent/mqtt2ros.py | whill-labs/ros_awsiot | 4c15be53c0643fb81fd5a261a1af5be2652c4166 | [
"MIT"
] | 1 | 2021-10-07T02:11:27.000Z | 2021-10-07T02:11:27.000Z | #!/usr/bin/env python3
import logging
from os.path import expanduser
from typing import Any, Dict
from uuid import uuid4
import rospy
from awsiotclient import mqtt, pubsub
from ros_awsiot_agent import set_module_logger
from rosbridge_library.internal.message_conversion import populate_instance
from rosbridge_library.... | 30.320513 | 80 | 0.689641 | 794 | 0.335729 | 0 | 0 | 0 | 0 | 0 | 0 | 337 | 0.142495 |
bee627678ed010aec77f469faec38fc6e41f1465 | 5,031 | py | Python | poly/app.py | thdb-theo/Polynomial | 9943ee5eb175ef01720954c6a95c685bd7fd5f6c | [
"MIT"
] | null | null | null | poly/app.py | thdb-theo/Polynomial | 9943ee5eb175ef01720954c6a95c685bd7fd5f6c | [
"MIT"
] | null | null | null | poly/app.py | thdb-theo/Polynomial | 9943ee5eb175ef01720954c6a95c685bd7fd5f6c | [
"MIT"
] | null | null | null | import sys
import re
from PyQt4 import QtGui, QtCore
from polynomial import Polynomial
from rational import Rational
class Window(QtGui.QMainWindow):
width, height = 420, 130
def __init__(self):
super().__init__()
self.setFixedSize(Window.width, Window.height)
self.setWindowTitle('... | 33.098684 | 93 | 0.603459 | 4,773 | 0.948718 | 0 | 0 | 511 | 0.10157 | 0 | 0 | 395 | 0.078513 |
bee68e7de68c03f76e1ccae51e5aa678663d50fa | 493 | py | Python | ariadne_server/tests/fixtures/fake_context.py | seanaye/FeatherLight-API | 4d42a424762311ee35b3fd4f689883aa4197eb2e | [
"MIT"
] | 3 | 2020-06-28T17:30:57.000Z | 2022-01-25T18:03:38.000Z | ariadne_server/tests/fixtures/fake_context.py | seanaye/FeatherLight-API | 4d42a424762311ee35b3fd4f689883aa4197eb2e | [
"MIT"
] | null | null | null | ariadne_server/tests/fixtures/fake_context.py | seanaye/FeatherLight-API | 4d42a424762311ee35b3fd4f689883aa4197eb2e | [
"MIT"
] | 1 | 2021-02-04T07:14:08.000Z | 2021-02-04T07:14:08.000Z | from secrets import token_hex
import pytest
class Object:
pass
class FakeContext(dict):
def __init__(self):
req_obj = Object()
req_obj.cookies = {}
req_obj.client = Object()
req_obj.client.host = token_hex(5)
req_obj.headers = {
'origin': 'some_origin... | 18.259259 | 47 | 0.584178 | 353 | 0.716024 | 0 | 0 | 87 | 0.176471 | 0 | 0 | 60 | 0.121704 |
bee850ee36621b995a6de029e878f2bcfff1b23e | 4,552 | py | Python | libs/evaluation/training_benchmark_database.py | eeshakumar/hythe | 52ca795c8370ddfb2aa6fb87ff3f63a85c55f913 | [
"MIT"
] | null | null | null | libs/evaluation/training_benchmark_database.py | eeshakumar/hythe | 52ca795c8370ddfb2aa6fb87ff3f63a85c55f913 | [
"MIT"
] | null | null | null | libs/evaluation/training_benchmark_database.py | eeshakumar/hythe | 52ca795c8370ddfb2aa6fb87ff3f63a85c55f913 | [
"MIT"
] | null | null | null | # Copyright (c) 2020 Julian Bernhard,
# Klemens Esterle, Patrick Hart, Tobias Kessler
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
from bark.benchmark.benchmark_result import BenchmarkConfig
from bark_ml.library_wrappers.lib_fqf_iqn_qrdqn.agent import TrainingBenchmark
fro... | 47.915789 | 133 | 0.65312 | 3,665 | 0.805141 | 0 | 0 | 0 | 0 | 0 | 0 | 572 | 0.125659 |
bee859bef7a37ff661836407bce80f2d3470ddd9 | 27,023 | py | Python | goldstone/tenants/tests_cloud.py | Solinea/goldstone-server | 91b078ca9fed1b33f48dc79f4af5c9d1817a1bc5 | [
"Apache-2.0"
] | 14 | 2015-05-18T22:11:11.000Z | 2020-08-14T06:50:09.000Z | goldstone/tenants/tests_cloud.py | lexjacobs/goldstone-server | 91b078ca9fed1b33f48dc79f4af5c9d1817a1bc5 | [
"Apache-2.0"
] | 568 | 2015-05-17T01:26:36.000Z | 2021-06-10T20:36:47.000Z | goldstone/tenants/tests_cloud.py | lexjacobs/goldstone-server | 91b078ca9fed1b33f48dc79f4af5c9d1817a1bc5 | [
"Apache-2.0"
] | 22 | 2015-05-25T20:16:06.000Z | 2021-08-08T20:25:24.000Z | """Unit tests for /tenants/<id>/cloud endpoints."""
# Copyright 2015 Solinea, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | 41.130898 | 79 | 0.531029 | 25,423 | 0.940791 | 0 | 0 | 0 | 0 | 0 | 0 | 7,250 | 0.26829 |
bee920effbd17d10746b345bbf080e1ea4ae7a4f | 4,750 | py | Python | onnxruntime/test/server/integration_tests/model_zoo_data_prep.py | PhaniShekhar/onnxruntime | 2663b9c44381b30525ae6234e13ed25c69206d07 | [
"MIT"
] | null | null | null | onnxruntime/test/server/integration_tests/model_zoo_data_prep.py | PhaniShekhar/onnxruntime | 2663b9c44381b30525ae6234e13ed25c69206d07 | [
"MIT"
] | null | null | null | onnxruntime/test/server/integration_tests/model_zoo_data_prep.py | PhaniShekhar/onnxruntime | 2663b9c44381b30525ae6234e13ed25c69206d07 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import os
import sys
import shutil
import onnx
import onnxruntime
import json
from google.protobuf.json_format import MessageToJson
import predict_pb2
import onnx_ml_pb2
# Current models only have one input and one output... | 32.758621 | 123 | 0.708842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 492 | 0.103579 |
beea57272100654c7600d64caab6b4c5cdc2179e | 2,484 | py | Python | articlequality/feature_lists/tests/test_enwiki.py | mariushoch/articlequality | 57edf786636548bed466aa4e9d9e213fe8d1093b | [
"MIT"
] | null | null | null | articlequality/feature_lists/tests/test_enwiki.py | mariushoch/articlequality | 57edf786636548bed466aa4e9d9e213fe8d1093b | [
"MIT"
] | null | null | null | articlequality/feature_lists/tests/test_enwiki.py | mariushoch/articlequality | 57edf786636548bed466aa4e9d9e213fe8d1093b | [
"MIT"
] | null | null | null | from revscoring.datasources.revision_oriented import revision
from revscoring.dependencies import solve
from .. import enwiki
revision_text = revision.text
def test_cite_templates():
text = """
This is some text with a citation.<ref>{{cite lol|title=Made up}}</ref>
This is some more text. {{foo}} {{{cit... | 27 | 76 | 0.654589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,540 | 0.619968 |
beead51f0acfbaced2396459fa3fc222015aa766 | 6,984 | py | Python | GPU_compare_CPU.py | kvmu/SFU-workterm | 91c976b094097912e71dd7e0d6207ad8ce7a7e93 | [
"MIT"
] | null | null | null | GPU_compare_CPU.py | kvmu/SFU-workterm | 91c976b094097912e71dd7e0d6207ad8ce7a7e93 | [
"MIT"
] | null | null | null | GPU_compare_CPU.py | kvmu/SFU-workterm | 91c976b094097912e71dd7e0d6207ad8ce7a7e93 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 10 14:31:17 2015
@author: Kevin M.
Description:
This script does CPU and GPU matrix element time complexity
profiling. It has a function which applies the matrix element
analysis for a given set of parameters, profiles the code and
... | 29.719149 | 88 | 0.583477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,928 | 0.27606 |
beeae2374b9c6c4f75bcbbf6e4da5b6372460220 | 7,714 | py | Python | applications/plugins/Flexible/Flexible_test/scenes/python/reInitMapping.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/Flexible/Flexible_test/scenes/python/reInitMapping.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/Flexible/Flexible_test/scenes/python/reInitMapping.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | import Sofa
import SofaTest
import SofaPython.Tools
OBJ = SofaPython.Tools.localPath( __file__, "beam.obj" )
RAW = SofaPython.Tools.localPath( __file__, "beam.raw" )
##Check if calling Mapping::init() change anything
#
#The trick is to know that if the option evaluateShapeFunction is activated
#in the ImageGaussPoint... | 47.913043 | 298 | 0.704693 | 1,775 | 0.230101 | 0 | 0 | 0 | 0 | 0 | 0 | 2,876 | 0.372829 |
beeda21a5090a064572591c96a86d43fd6daf247 | 1,688 | py | Python | mindspore/ops/_register_for_op.py | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | 1 | 2021-07-16T12:05:53.000Z | 2021-07-16T12:05:53.000Z | mindspore/ops/_register_for_op.py | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | null | null | null | mindspore/ops/_register_for_op.py | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 33.76 | 82 | 0.593009 | 921 | 0.545616 | 0 | 0 | 0 | 0 | 0 | 0 | 848 | 0.50237 |
beee49868a956aa3196803cdf539676b921996ae | 11,496 | py | Python | senlin-7.0.0/senlin/tests/unit/api/middleware/test_version_negotiation.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | null | null | null | senlin-7.0.0/senlin/tests/unit/api/middleware/test_version_negotiation.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | senlin-7.0.0/senlin/tests/unit/api/middleware/test_version_negotiation.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | 40.336842 | 79 | 0.673626 | 10,626 | 0.924322 | 0 | 0 | 10,682 | 0.929193 | 0 | 0 | 1,985 | 0.172669 |
bef071b99c5638f1355cc9be272ba0f93a6cb31f | 493 | py | Python | iot/models.py | kkishans/IOT_DJANGO | 12a19858f002a8c684e4dbb93868a8859d57615f | [
"MIT"
] | null | null | null | iot/models.py | kkishans/IOT_DJANGO | 12a19858f002a8c684e4dbb93868a8859d57615f | [
"MIT"
] | null | null | null | iot/models.py | kkishans/IOT_DJANGO | 12a19858f002a8c684e4dbb93868a8859d57615f | [
"MIT"
] | null | null | null | from django.db import models
from django import forms
# Create your models here.
class User(models.Model):
username = models.CharField(max_length=30)
password = models.TextField()
email = models.EmailField(unique=True)
objects = models.Manager()
def __str__(self):
return self.username
clas... | 25.947368 | 60 | 0.699797 | 408 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 32 | 0.064909 |
bef0b40fe98f05288d080226293e4d439b57a362 | 2,970 | py | Python | Homework files/Think_Python_Book_Homework_1.py | SillyHatsOnly/Python-Education-Experiments | 22244defc47b4e3ba41af07957a782013afe12b0 | [
"MIT"
] | null | null | null | Homework files/Think_Python_Book_Homework_1.py | SillyHatsOnly/Python-Education-Experiments | 22244defc47b4e3ba41af07957a782013afe12b0 | [
"MIT"
] | null | null | null | Homework files/Think_Python_Book_Homework_1.py | SillyHatsOnly/Python-Education-Experiments | 22244defc47b4e3ba41af07957a782013afe12b0 | [
"MIT"
] | null | null | null | def do_twice(f):
f()
f()
def print_spam():
print('spam')
do_twice(print_spam)
def do_twice(f, a):
f(a)
f(a)
def print_spam(a):
print(a)
print(a)
do_twice(print_spam, 'spamm')
def do_four(f, a):
do_twice(f,a)
do_twice(f,a)
do_four(print_spam, "SPAM")
def hor_line():
print(... | 18.679245 | 47 | 0.476431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 538 | 0.181145 |
bef16a350cb321f3059e524b8af8bbcaac507956 | 123 | py | Python | email_log/apps.py | bernd-wechner/django-email-log | dbbe0ef6cee8b8067d6420dccc7a8f2061662a68 | [
"MIT"
] | 26 | 2015-04-14T18:24:54.000Z | 2022-03-07T13:01:34.000Z | email_log/apps.py | bernd-wechner/django-email-log | dbbe0ef6cee8b8067d6420dccc7a8f2061662a68 | [
"MIT"
] | 23 | 2015-06-23T02:40:39.000Z | 2022-02-08T05:07:42.000Z | email_log/apps.py | bernd-wechner/django-email-log | dbbe0ef6cee8b8067d6420dccc7a8f2061662a68 | [
"MIT"
] | 25 | 2015-02-04T16:16:05.000Z | 2021-09-28T10:53:00.000Z | from django.apps import AppConfig
class EmailLogConfig(AppConfig):
name = 'email_log'
verbose_name = "Email log"
| 17.571429 | 33 | 0.731707 | 86 | 0.699187 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 0.178862 |
bef17e7d48e784a47058c04dd63db533f851c334 | 83 | py | Python | gawain/tests/test_numerics.py | henrywatkins/gawain | c556be20242249504fc0e04a5d3b7168a8369043 | [
"MIT"
] | 1 | 2021-11-20T06:16:13.000Z | 2021-11-20T06:16:13.000Z | gawain/tests/test_numerics.py | henrywatkins/gawain | c556be20242249504fc0e04a5d3b7168a8369043 | [
"MIT"
] | null | null | null | gawain/tests/test_numerics.py | henrywatkins/gawain | c556be20242249504fc0e04a5d3b7168a8369043 | [
"MIT"
] | null | null | null | import pytest
from gawain.numerics import Clock, SolutionVector, MHDSolutionVector
| 27.666667 | 68 | 0.86747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
bef2574ded37985d33b872832104339ea2dcbc78 | 384 | py | Python | project_9/util.py | sople1/project_9 | 7d91d786533d508572feae1ffbd1b4a6a80208ab | [
"CC0-1.0"
] | null | null | null | project_9/util.py | sople1/project_9 | 7d91d786533d508572feae1ffbd1b4a6a80208ab | [
"CC0-1.0"
] | null | null | null | project_9/util.py | sople1/project_9 | 7d91d786533d508572feae1ffbd1b4a6a80208ab | [
"CC0-1.0"
] | null | null | null | """
utility for project 9
:author: Seongsu Yoon <[email protected]>
:license: CC0
"""
def clear():
"""
clear cmd/term
:return: void
"""
import os
import sys
if sys.platform == 'win32':
os.system('cls') # on windows
else:
os.system('clear') # on linux / os x
if __... | 14.769231 | 45 | 0.570313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 213 | 0.554688 |
bef2add5e5d23f2bc354f97f806087052f88a9fd | 2,383 | py | Python | api/views.py | HigoOliveira/DesafioFinalServer | 284d3cea59f28f6da229345496896106e3d2048a | [
"MIT"
] | null | null | null | api/views.py | HigoOliveira/DesafioFinalServer | 284d3cea59f28f6da229345496896106e3d2048a | [
"MIT"
] | null | null | null | api/views.py | HigoOliveira/DesafioFinalServer | 284d3cea59f28f6da229345496896106e3d2048a | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from .models import User, Event
from .serializer import UserSerializer, EventSerializer
from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.authentication import TokenAuthentication
from rest_framework import status, mixins, generics
from rest_f... | 36.661538 | 85 | 0.768779 | 2,018 | 0.846832 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 0.005455 |
bef317cba640175d733bcaa55e5644bbab2602a1 | 1,582 | py | Python | Searching_Sorting/MinimumMovesToEqualAllArrayElements2.py | PK-100/Competitive_Programming | d0863feaaa99462b2999e85dcf115f7a6c08bb8d | [
"MIT"
] | 70 | 2018-06-25T21:20:15.000Z | 2022-03-24T03:55:17.000Z | Searching_Sorting/MinimumMovesToEqualAllArrayElements2.py | An3sha/Competitive_Programming | ee7eadf51939a360d0b004d787ebabda583e92f0 | [
"MIT"
] | 4 | 2018-09-04T13:12:20.000Z | 2021-06-20T08:29:12.000Z | Searching_Sorting/MinimumMovesToEqualAllArrayElements2.py | An3sha/Competitive_Programming | ee7eadf51939a360d0b004d787ebabda583e92f0 | [
"MIT"
] | 24 | 2018-12-26T05:15:32.000Z | 2022-01-23T23:04:54.000Z | # LC 462
#from statistics import median
from random import randrange
from math import floor
class Solution:
#Quick Select Algorithm
def partition(self,x, pivot_index = 0):
i = 0
if pivot_index !=0: x[0],x[pivot_index] = x[pivot_index],x[0]
for j in range(len(x)-1):
if x[j+1] ... | 28.763636 | 76 | 0.474083 | 1,489 | 0.941214 | 0 | 0 | 0 | 0 | 0 | 0 | 93 | 0.058786 |
bef32dc0efa2656e8a84216ea747c7b952e1b452 | 43 | py | Python | moban/_version.py | CLiu13/moban | 5deada1af7ff24a6adf698de6a8b589a258d4dc2 | [
"MIT"
] | 1 | 2018-12-16T01:16:22.000Z | 2018-12-16T01:16:22.000Z | moban/_version.py | CLiu13/moban | 5deada1af7ff24a6adf698de6a8b589a258d4dc2 | [
"MIT"
] | null | null | null | moban/_version.py | CLiu13/moban | 5deada1af7ff24a6adf698de6a8b589a258d4dc2 | [
"MIT"
] | null | null | null | __version__ = "0.3.9"
__author__ = "C. W."
| 14.333333 | 21 | 0.604651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 0.325581 |
bef3d9edefde231b494e39df17d4acf13c5e8797 | 666 | py | Python | Gif_Rick/rick_random_gif.py | BiceCold/Citadel_of_Ricks | 72f1a447accc2c11d1fa1cbf3c3342913913e50e | [
"Apache-2.0"
] | 2 | 2018-04-13T17:41:08.000Z | 2018-09-20T22:19:52.000Z | Gif_Rick/rick_random_gif.py | BiceCold/Citadel_of_Ricks | 72f1a447accc2c11d1fa1cbf3c3342913913e50e | [
"Apache-2.0"
] | null | null | null | Gif_Rick/rick_random_gif.py | BiceCold/Citadel_of_Ricks | 72f1a447accc2c11d1fa1cbf3c3342913913e50e | [
"Apache-2.0"
] | null | null | null | import imgurpython
from Environment_Handlers.configs import get_config
import random
client_id = get_config("client_id")
client_secret = get_config("client_secret")
client_refresh_token = get_config("client_refresh")
client_access_token = get_config("client_access_token")
username = 'antipoliticsrick'
client = imgur... | 26.64 | 101 | 0.792793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 150 | 0.225225 |
bef57e6edf7a67698588bda9e271df4b1e689682 | 131 | py | Python | catalyst/dl/experiment/__init__.py | andrey-avdeev/catalyst | fd17aaba7775c99b7e2b1ce86e60aa8f2379acc3 | [
"Apache-2.0"
] | 3 | 2019-11-02T05:37:06.000Z | 2020-01-13T02:26:07.000Z | catalyst/dl/experiment/__init__.py | andrey-avdeev/catalyst | fd17aaba7775c99b7e2b1ce86e60aa8f2379acc3 | [
"Apache-2.0"
] | null | null | null | catalyst/dl/experiment/__init__.py | andrey-avdeev/catalyst | fd17aaba7775c99b7e2b1ce86e60aa8f2379acc3 | [
"Apache-2.0"
] | 1 | 2021-12-20T07:32:25.000Z | 2021-12-20T07:32:25.000Z | # flake8: noqa
from .base import BaseExperiment
from .config import ConfigExperiment
from .supervised import SupervisedExperiment
| 21.833333 | 44 | 0.839695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 0.10687 |
bef59cacc937701b313af0467ffa47a4f4a7a929 | 3,217 | py | Python | home_directories/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.BC9837BA-F60E-475C-B524-E761FBD0E1EB/common.py | joekallen/dotfiles | 9318c168fdb9ce0b1066b032e93a7e465d0ffcee | [
"Apache-2.0"
] | null | null | null | home_directories/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.BC9837BA-F60E-475C-B524-E761FBD0E1EB/common.py | joekallen/dotfiles | 9318c168fdb9ce0b1066b032e93a7e465d0ffcee | [
"Apache-2.0"
] | null | null | null | home_directories/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.BC9837BA-F60E-475C-B524-E761FBD0E1EB/common.py | joekallen/dotfiles | 9318c168fdb9ce0b1066b032e93a7e465d0ffcee | [
"Apache-2.0"
] | null | null | null | import os
import argparse
import subprocess
from workflow import Workflow
def get_kubectl_cmd_path():
wf = Workflow()
return wf.settings.get("KUBECTL_CMD_PATH") or os.environ.get("KUBECTL_CMD_PATH", '/usr/local/bin/kubectl')
class KService:
def __init__(self, type, name, age, status):
self.type =... | 27.732759 | 126 | 0.608952 | 166 | 0.051601 | 0 | 0 | 0 | 0 | 0 | 0 | 494 | 0.153559 |
bef59fb3dbc590e868cbbe9ba87904ee2be92c5d | 528 | py | Python | dependencies/generate maps/pythongis/app/tk2/__init__.py | karimbahgat/AutoMap | eae52f16b7ce71cb2b4b7ae67cf6e4680ea2194f | [
"MIT"
] | 4 | 2015-12-05T14:31:55.000Z | 2018-02-09T05:54:36.000Z | dependencies/generate maps/pythongis/app/tk2/__init__.py | karimbahgat/AutoMap | eae52f16b7ce71cb2b4b7ae67cf6e4680ea2194f | [
"MIT"
] | 1 | 2022-01-13T02:52:09.000Z | 2022-01-13T02:52:09.000Z | dependencies/generate maps/pythongis/app/tk2/__init__.py | karimbahgat/AutoMap | eae52f16b7ce71cb2b4b7ae67cf6e4680ea2194f | [
"MIT"
] | 1 | 2018-10-24T01:08:11.000Z | 2018-10-24T01:08:11.000Z | """
Tk2
Tk2 is a convenience library for extending the functionality of Tkinter,
to make it easier and more flexible to create GUI applications.
"""
from .basics import *
from .scrollwidgets import *
from .texteditor import Text, MultiTextSearch
from .variables import *
# Later
from .multiwidgets import *
from .pr... | 20.307692 | 73 | 0.767045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 206 | 0.390152 |
bef5aaf1ff9723ae8680002976dbc5ebda4fccc9 | 37 | py | Python | pp/web/base/tests/test_forjenkins.py | oisinmulvihill/pp-web-base | 0be51b1d98c4923e1f4ccbfaea59ae662a8c5cdc | [
"BSD-3-Clause"
] | null | null | null | pp/web/base/tests/test_forjenkins.py | oisinmulvihill/pp-web-base | 0be51b1d98c4923e1f4ccbfaea59ae662a8c5cdc | [
"BSD-3-Clause"
] | null | null | null | pp/web/base/tests/test_forjenkins.py | oisinmulvihill/pp-web-base | 0be51b1d98c4923e1f4ccbfaea59ae662a8c5cdc | [
"BSD-3-Clause"
] | null | null | null |
def test_nonop():
assert 1 == 1
| 9.25 | 17 | 0.567568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
bef5e1efda3dd7f954a3c06d34cbd2bd9106ec13 | 803 | py | Python | tools/deepke/relation_extraction/standard/models/BasicModule.py | dfface/DoctorKG | 6bd6ebec8244a9ce0a2c8c278a704f02b9afaaf8 | [
"MIT"
] | 1 | 2022-03-26T16:08:08.000Z | 2022-03-26T16:08:08.000Z | tools/deepke/relation_extraction/standard/models/BasicModule.py | dfface/DoctorKG | 6bd6ebec8244a9ce0a2c8c278a704f02b9afaaf8 | [
"MIT"
] | null | null | null | tools/deepke/relation_extraction/standard/models/BasicModule.py | dfface/DoctorKG | 6bd6ebec8244a9ce0a2c8c278a704f02b9afaaf8 | [
"MIT"
] | null | null | null | import os
import time
import torch
import torch.nn as nn
class BasicModule(nn.Module):
'''
封装nn.Module, 提供 save 和 load 方法
'''
def __init__(self):
super(BasicModule, self).__init__()
def load(self, path, device):
'''
加载指定路径的模型
'''
self.loa... | 22.942857 | 85 | 0.555417 | 808 | 0.919226 | 0 | 0 | 0 | 0 | 0 | 0 | 264 | 0.300341 |
bef6dbd81f470e4f916903c6f30ebc2cb970bd0a | 310 | py | Python | url_shortener_client/exceptions/__init__.py | Andrelpoj/hire.me | 79428e2094a6b56e762a7f958e1b75f395f59cef | [
"Apache-2.0"
] | null | null | null | url_shortener_client/exceptions/__init__.py | Andrelpoj/hire.me | 79428e2094a6b56e762a7f958e1b75f395f59cef | [
"Apache-2.0"
] | null | null | null | url_shortener_client/exceptions/__init__.py | Andrelpoj/hire.me | 79428e2094a6b56e762a7f958e1b75f395f59cef | [
"Apache-2.0"
] | null | null | null | class AliasNotFound(Exception):
def __init__(self, alias):
self.alias = alias
class AliasAlreadyExists(Exception):
def __init__(self, alias):
self.alias = alias
class UnexpectedServerResponse(Exception):
def __init__(self, response):
self.response = response
| 25.833333 | 43 | 0.670968 | 298 | 0.96129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
bef786a72fbb29131b60f5c806a5c2a1d2c1e463 | 3,135 | py | Python | software/nuke/init.py | kei-iketani/plex | cf09c8ef93984e5a69b23bf56248b87e4cfd98b0 | [
"MIT"
] | 153 | 2018-03-22T18:29:17.000Z | 2022-03-07T03:43:09.000Z | software/nuke/init.py | kei-iketani/plex | cf09c8ef93984e5a69b23bf56248b87e4cfd98b0 | [
"MIT"
] | 30 | 2018-08-16T16:27:42.000Z | 2021-02-24T05:37:25.000Z | software/nuke/init.py | alexanderrichter/arPipeline | 3466f70a79e4d32c0647ba21d9689157a0f7772e | [
"MIT"
] | 34 | 2018-03-24T03:54:05.000Z | 2022-03-10T11:36:52.000Z | #*********************************************************************
# content = init Nuke
# version = 0.1.0
# date = 2019-12-01
#
# license = MIT <https://github.com/alexanderrichtertd>
# author = Alexander Richter <alexanderrichtertd.com>
#**************************************************************... | 30.436893 | 89 | 0.536204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,382 | 0.440829 |
bef8b3cc0e57e7d1cb77a57410c13eec81de3df9 | 589 | py | Python | main.py | gaoshanyu/web_ui_test_sample | 8a6cc9b54b5f728af7ef0725dea42d759bd115d0 | [
"MIT"
] | null | null | null | main.py | gaoshanyu/web_ui_test_sample | 8a6cc9b54b5f728af7ef0725dea42d759bd115d0 | [
"MIT"
] | null | null | null | main.py | gaoshanyu/web_ui_test_sample | 8a6cc9b54b5f728af7ef0725dea42d759bd115d0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Created at 03/10/2020
__author__ = 'raniys'
import pytest
if __name__ == '__main__':
# -v: verbose; -s: shortcut for --capture=no;
# -m: only run tests matching given mark expression. example: -m 'mark1 and not mark2';
# --html=path: create html report file at given path.
# ... | 39.266667 | 92 | 0.614601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 486 | 0.825127 |
bef9a72ceb82bbb48832da89c306ea29b20a4752 | 863 | py | Python | rnd/HaskellRSLCompiler/test/parse/test.py | syoyo/lucille | ff81b332ae78181dbbdc1ec3c3b0f59992e7c0fa | [
"BSD-3-Clause"
] | 77 | 2015-01-29T21:02:10.000Z | 2022-03-04T11:23:12.000Z | rnd/HaskellRSLCompiler/test/parse/test.py | syoyo/lucille | ff81b332ae78181dbbdc1ec3c3b0f59992e7c0fa | [
"BSD-3-Clause"
] | 1 | 2018-11-08T02:11:24.000Z | 2018-11-08T04:31:17.000Z | rnd/HaskellRSLCompiler/test/parse/test.py | syoyo/lucille | ff81b332ae78181dbbdc1ec3c3b0f59992e7c0fa | [
"BSD-3-Clause"
] | 13 | 2015-04-20T08:17:29.000Z | 2020-06-17T18:35:06.000Z | #!/usr/bin/env python
import os, sys
import subprocess
import re
import glob
errlog = []
def run(f):
cmd = "../../lslc"
p = subprocess.Popen([cmd, f], stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
outs = [l for l in p.stdout]
errs = [l for l in p.stderr]
errline = re.compile... | 17.979167 | 98 | 0.499421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 131 | 0.151796 |
befb15db729fb7dcc8145ec21e9b327a9461b95c | 657 | py | Python | glasses/models/classification/base/__init__.py | rentainhe/glasses | 34300a76985c7fc643094fa8d617114926a0ee75 | [
"MIT"
] | 271 | 2020-10-20T12:30:23.000Z | 2022-03-17T03:02:38.000Z | glasses/models/classification/base/__init__.py | rentainhe/glasses | 34300a76985c7fc643094fa8d617114926a0ee75 | [
"MIT"
] | 212 | 2020-07-25T13:02:23.000Z | 2022-02-20T10:33:32.000Z | glasses/models/classification/base/__init__.py | rentainhe/glasses | 34300a76985c7fc643094fa8d617114926a0ee75 | [
"MIT"
] | 23 | 2021-01-03T13:53:36.000Z | 2022-03-17T05:40:34.000Z | from torch import Tensor, nn
from ...base import VisionModule
class ClassificationModule(VisionModule):
"""Base Classification Module class"""
def __init__(
self,
encoder: nn.Module,
head: nn.Module,
in_channels: int = 3,
n_classes: int = 1000,
**kwargs
):... | 21.9 | 65 | 0.584475 | 591 | 0.899543 | 0 | 0 | 0 | 0 | 0 | 0 | 38 | 0.057839 |
befc1052790c2cb39af3f31238e68ac4213b7a50 | 3,202 | py | Python | lib/data.py | PEDIA-Charite/classifier | 13e9d6108f9691b089aac59c7392f7940033b8af | [
"MIT"
] | 2 | 2019-04-04T03:44:25.000Z | 2019-12-23T17:08:51.000Z | lib/data.py | PEDIA-Charite/classifier | 13e9d6108f9691b089aac59c7392f7940033b8af | [
"MIT"
] | 9 | 2017-05-23T09:55:15.000Z | 2019-11-22T11:24:20.000Z | lib/data.py | PEDIA-Charite/classifier | 13e9d6108f9691b089aac59c7392f7940033b8af | [
"MIT"
] | 2 | 2017-05-24T12:23:13.000Z | 2019-09-03T08:36:18.000Z | # -*- coding: utf-8 -*-
import os
import numpy as np
import sys
import logging
import csv
# Setup logging
logger = logging.getLogger(__name__)
console_handle = logging.StreamHandler()
console_handle.setLevel(logging.INFO)
formatter = logging.Formatter('%(asctime)s: %(message)s', datefmt='%m-%d %H:%M')
cons... | 37.232558 | 135 | 0.553716 | 2,805 | 0.876015 | 0 | 0 | 0 | 0 | 0 | 0 | 908 | 0.283573 |
befd00f2e7be9ee982348d730c3ed4d4bbdd8988 | 177 | py | Python | iris_sdk/models/data/tn_status.py | NumberAI/python-bandwidth-iris | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | [
"MIT"
] | 2 | 2020-04-13T13:47:59.000Z | 2022-02-23T20:32:41.000Z | iris_sdk/models/data/tn_status.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2020-09-18T20:59:24.000Z | 2021-08-25T16:51:42.000Z | iris_sdk/models/data/tn_status.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2018-12-12T14:39:50.000Z | 2020-11-17T21:42:29.000Z | #!/usr/bin/env python
from iris_sdk.models.base_resource import BaseData
from iris_sdk.models.maps.tn_status import TnStatusMap
class TnStatus(TnStatusMap, BaseData):
pass | 25.285714 | 54 | 0.813559 | 47 | 0.265537 | 0 | 0 | 0 | 0 | 0 | 0 | 21 | 0.118644 |
befd8dcdbdb6d9ed65837be1a16b79168d010d75 | 8,437 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_device_group_member.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_device_group_member.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_device_group_member.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright: (c) 2017, F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = r'''
---
module: bigip_device_group_memb... | 28.6 | 94 | 0.6174 | 5,482 | 0.649757 | 0 | 0 | 0 | 0 | 0 | 0 | 2,528 | 0.299633 |
befdd813dce9c8916652b3514805d92fc7258e7d | 793 | py | Python | comrade/blueprints/rest.py | sp3c73r2038/elasticsearch-comrade | ed0c94e071d2fe701a14429981390b9a89df79a7 | [
"MIT"
] | 256 | 2019-09-09T10:09:34.000Z | 2022-03-28T04:15:21.000Z | comrade/blueprints/rest.py | sp3c73r2038/elasticsearch-comrade | ed0c94e071d2fe701a14429981390b9a89df79a7 | [
"MIT"
] | 503 | 2019-07-31T17:01:12.000Z | 2022-03-28T13:19:26.000Z | comrade/blueprints/rest.py | nmeisels/elasticsearch-comrade | 57dc600e5ffd7f9d4c055b584124bef9365e538c | [
"MIT"
] | 25 | 2019-08-30T13:04:31.000Z | 2022-03-09T09:50:32.000Z | from elasticsearch import TransportError
from sanic import Blueprint
from sanic.request import Request
from sanic.response import HTTPResponse, json
from ..connections import get_client
rest_bp = Blueprint('rest')
def format_es_exception(e: TransportError):
return json({"status_code": e.status_code,
... | 28.321429 | 78 | 0.693569 | 0 | 0 | 0 | 0 | 412 | 0.519546 | 369 | 0.465322 | 66 | 0.083228 |
befebe8c408a00b9be09490e9fa3fb8d41c06ce6 | 1,081 | py | Python | tests/test_utils.py | tedeler/pyexchange | 58042f473cbd4f00769249ce9ca20c6a376eddb6 | [
"Apache-2.0"
] | 128 | 2015-01-11T10:29:40.000Z | 2021-06-25T05:27:45.000Z | tests/test_utils.py | tedeler/pyexchange | 58042f473cbd4f00769249ce9ca20c6a376eddb6 | [
"Apache-2.0"
] | 52 | 2015-01-02T15:24:28.000Z | 2020-08-07T04:49:49.000Z | tests/test_utils.py | tedeler/pyexchange | 58042f473cbd4f00769249ce9ca20c6a376eddb6 | [
"Apache-2.0"
] | 96 | 2015-01-02T15:16:20.000Z | 2021-12-25T01:37:46.000Z | from datetime import datetime
from pytz import timezone, utc
from pytest import mark
from pyexchange.utils import convert_datetime_to_utc
def test_converting_none_returns_none():
assert convert_datetime_to_utc(None) is None
def test_converting_non_tz_aware_date_returns_tz_aware():
utc_time = datetime(year=2014,... | 43.24 | 121 | 0.781684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 238 | 0.220167 |
befed480f20eb883fd15d6235756ef7750bbee56 | 786 | py | Python | vidpub/__main__.py | gary9630/session-video-publisher | 6602f53d722af8e569c82b7de8ef79a63293c766 | [
"0BSD"
] | null | null | null | vidpub/__main__.py | gary9630/session-video-publisher | 6602f53d722af8e569c82b7de8ef79a63293c766 | [
"0BSD"
] | 5 | 2020-11-15T12:45:03.000Z | 2021-12-07T08:29:40.000Z | vidpub/__main__.py | gary9630/session-video-publisher | 6602f53d722af8e569c82b7de8ef79a63293c766 | [
"0BSD"
] | 4 | 2018-06-23T16:48:03.000Z | 2021-04-18T09:51:29.000Z | import argparse
from .upload_video import upload_video
from .generate_playlist import generate_playlist
def parse_args(argv):
parser = argparse.ArgumentParser()
parser.add_argument(
"-u", "--upload", action="store_true", help="Upload videos to YouTube channel"
)
parser.add_argument(
"... | 23.818182 | 99 | 0.675573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 205 | 0.260814 |
beff85e9c6691647f15d3bfe260f151e7cc2041f | 3,275 | py | Python | ally/utils/option.py | rjfranssen/PyAlly | f24d4d449dd0578f52e75365ad0ba69a572d3237 | [
"MIT"
] | 53 | 2019-08-11T20:39:16.000Z | 2022-02-01T02:05:12.000Z | ally/utils/option.py | rjfranssen/PyAlly | f24d4d449dd0578f52e75365ad0ba69a572d3237 | [
"MIT"
] | 53 | 2019-12-11T06:39:59.000Z | 2022-02-13T05:06:44.000Z | ally/utils/option.py | rjfranssen/PyAlly | f24d4d449dd0578f52e75365ad0ba69a572d3237 | [
"MIT"
] | 31 | 2019-10-05T02:28:16.000Z | 2022-02-03T03:41:42.000Z | # MIT License
#
# Copyright (c) 2020 Brett Graves
#
# 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,... | 31.796117 | 90 | 0.635725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,376 | 0.725496 |
8300d2d4159d348f8f2a81357e0afeb556ced95e | 460 | py | Python | examples/104-python3-9-pipeline.py | marviniter/argo-dataflow | 89a060b1c6ea70f7c26bc58a01ba675c3acc1c06 | [
"Apache-2.0"
] | null | null | null | examples/104-python3-9-pipeline.py | marviniter/argo-dataflow | 89a060b1c6ea70f7c26bc58a01ba675c3acc1c06 | [
"Apache-2.0"
] | null | null | null | examples/104-python3-9-pipeline.py | marviniter/argo-dataflow | 89a060b1c6ea70f7c26bc58a01ba675c3acc1c06 | [
"Apache-2.0"
] | null | null | null | from argo_dataflow import pipeline, kafka
def handler(msg, context):
return ("hi! " + msg.decode("UTF-8")).encode("UTF-8")
if __name__ == '__main__':
(pipeline("104-python3-9")
.owner('argoproj-labs')
.describe("""This example is of the Python 3.9 handler.
[Learn about handlers](../docs/HANDLERS.... | 23 | 60 | 0.582609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 186 | 0.404348 |
8300f1e857cc9e2e0c3bf9685d4664e9e4c8faa9 | 2,195 | py | Python | djangur.py | JerryPopi/djangur-py | 0ba76a1a9c0f77ded014f0f3a0b3a98bf7835f51 | [
"MIT"
] | null | null | null | djangur.py | JerryPopi/djangur-py | 0ba76a1a9c0f77ded014f0f3a0b3a98bf7835f51 | [
"MIT"
] | null | null | null | djangur.py | JerryPopi/djangur-py | 0ba76a1a9c0f77ded014f0f3a0b3a98bf7835f51 | [
"MIT"
] | null | null | null | import asyncio
import discord
from commands import Commands, Guild_Instance, leave, play_search
import os
from pymongo import MongoClient
from dotenv import load_dotenv
load_dotenv()
CONNECTION_STRING = f"mongodb+srv://{os.environ['mongo_user']}:{os.environ['mongo_pass']}@djangur.erogd.mongodb.net/djangur?retryWrites... | 29.662162 | 152 | 0.653303 | 0 | 0 | 0 | 0 | 1,719 | 0.783144 | 1,677 | 0.764009 | 251 | 0.114351 |
830374b559d44b39454687ae70bffd40d78c9944 | 44,236 | py | Python | membership/models.py | str4nd/sikteeri | 34dd5a4dc35558cdba9e6f97fd38fb661a36b8a5 | [
"MIT"
] | 22 | 2015-03-30T19:33:15.000Z | 2022-01-10T03:52:43.000Z | membership/models.py | str4nd/sikteeri | 34dd5a4dc35558cdba9e6f97fd38fb661a36b8a5 | [
"MIT"
] | 66 | 2015-05-15T13:54:59.000Z | 2021-05-27T20:28:39.000Z | membership/models.py | str4nd/sikteeri | 34dd5a4dc35558cdba9e6f97fd38fb661a36b8a5 | [
"MIT"
] | 13 | 2015-03-09T18:59:29.000Z | 2022-01-10T04:08:38.000Z | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
from decimal import Decimal
import logging
from django.core.files.storage import FileSystemStorage
from membership.billing.pdf_utils import get_bill_pdf, create_reminder_pdf
from membership.reference_numbers import barcode_4, group_right,\
generate_... | 41.149767 | 128 | 0.628651 | 40,604 | 0.917895 | 0 | 0 | 6,739 | 0.152342 | 0 | 0 | 8,305 | 0.187743 |
830421c0eef174df1951cc79db82af6869f9e1bc | 177 | py | Python | napari_imc/io/__init__.py | neuromusic/napari-imc | ce2ff998b33b49f19a786585cc2cb8e59db74c24 | [
"MIT"
] | 4 | 2021-01-29T15:11:37.000Z | 2021-03-01T02:04:24.000Z | napari_imc/io/__init__.py | neuromusic/napari-imc | ce2ff998b33b49f19a786585cc2cb8e59db74c24 | [
"MIT"
] | 25 | 2021-01-19T01:49:13.000Z | 2022-02-09T10:46:41.000Z | napari_imc/io/__init__.py | neuromusic/napari-imc | ce2ff998b33b49f19a786585cc2cb8e59db74c24 | [
"MIT"
] | 3 | 2021-01-29T17:31:05.000Z | 2022-03-25T10:23:32.000Z | from .imaxt import ImaxtFileReader
from .mcd import McdFileReader
from .txt import TxtFileReader
__all__ = [
'ImaxtFileReader',
'McdFileReader',
'TxtFileReader',
]
| 17.7 | 34 | 0.734463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 47 | 0.265537 |
83043d6bcc47235264f0457736e61baf87cbac95 | 2,449 | py | Python | eval.py | ldzhangyx/TCN-for-beat-tracking | 8e09ba5b2f222a4944a8bd039987a01240ae778d | [
"BSD-3-Clause"
] | 3 | 2021-03-22T01:59:52.000Z | 2022-01-22T11:08:56.000Z | eval.py | ldzhangyx/TCN-for-beat-tracking | 8e09ba5b2f222a4944a8bd039987a01240ae778d | [
"BSD-3-Clause"
] | 1 | 2021-06-21T19:14:35.000Z | 2021-06-21T19:14:35.000Z | eval.py | ldzhangyx/TCN-for-beat-tracking | 8e09ba5b2f222a4944a8bd039987a01240ae778d | [
"BSD-3-Clause"
] | 1 | 2021-03-22T01:59:57.000Z | 2021-03-22T01:59:57.000Z | import torch
from torch.utils.data import Dataset
import numpy as np
import os
import pickle
from madmom.features import DBNBeatTrackingProcessor
import torch
from model import BeatTrackingNet
from utils import init_single_spec
from mir_eval.beat import evaluate
from data import BallroomDataset
from beat_tracker im... | 25.510417 | 79 | 0.685178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 728 | 0.297264 |
830448984e5a77e90d22cacc683d54197d1adc44 | 130,468 | py | Python | pycity_calc/cities/scripts/city_generator/city_generator.py | RWTH-EBC/pyCity_calc | 99fd0dab7f9a9030fd84ba4715753364662927ec | [
"MIT"
] | 4 | 2020-06-22T14:14:25.000Z | 2021-11-08T11:47:01.000Z | pycity_calc/cities/scripts/city_generator/city_generator.py | RWTH-EBC/pyCity_calc | 99fd0dab7f9a9030fd84ba4715753364662927ec | [
"MIT"
] | 4 | 2019-08-28T19:42:28.000Z | 2019-08-28T19:43:44.000Z | pycity_calc/cities/scripts/city_generator/city_generator.py | RWTH-EBC/pyCity_calc | 99fd0dab7f9a9030fd84ba4715753364662927ec | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Script to generate city object.
"""
from __future__ import division
import os
import numpy as np
import pickle
import warnings
import random
import datetime
import shapely.geometry.point as point
import pycity_base.classes.Weather as weath
import pycity_base.classes.demand.SpaceHeating as SpaceHeati... | 44.482782 | 173 | 0.52153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 61,217 | 0.469189 |
830541d7c666d087b745fabc733309dfe46fdeb0 | 14,092 | py | Python | cpgan_data.py | basilevh/object-discovery-cp-gan | 170cdcf14aa0b5f7258d15e177485ee4fd697afb | [
"MIT"
] | 14 | 2020-06-04T15:50:38.000Z | 2021-10-03T02:59:54.000Z | cpgan_data.py | basilevh/object-discovery-cp-gan | 170cdcf14aa0b5f7258d15e177485ee4fd697afb | [
"MIT"
] | null | null | null | cpgan_data.py | basilevh/object-discovery-cp-gan | 170cdcf14aa0b5f7258d15e177485ee4fd697afb | [
"MIT"
] | 1 | 2021-01-19T15:50:47.000Z | 2021-01-19T15:50:47.000Z | # Basile Van Hoorick, March 2020
# Common code for PyTorch implementation of Copy-Pasting GAN
import copy
import itertools
import matplotlib.pyplot as plt
import numpy as np
import os, platform, time
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as ... | 39.92068 | 154 | 0.590477 | 9,761 | 0.692663 | 0 | 0 | 0 | 0 | 0 | 0 | 4,107 | 0.291442 |
8305a58a05e7a9623ae618b46a183f5331e34e3b | 3,207 | py | Python | provision/env/lib/python3.6/site-packages/ansible/plugins/become/dzdo.py | brightkan/tukole-frontend | 45e1d82a4ae5a65e88e7434f67d4d1a88f462e96 | [
"MIT"
] | 1 | 2020-03-29T18:41:01.000Z | 2020-03-29T18:41:01.000Z | ansible/ansible/plugins/become/dzdo.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 7 | 2020-09-07T17:27:56.000Z | 2022-03-02T06:25:46.000Z | ansible/ansible/plugins/become/dzdo.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 1 | 2020-10-30T12:48:24.000Z | 2020-10-30T12:48:24.000Z | # -*- coding: utf-8 -*-
# Copyright: (c) 2018, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = """
become: dzdo
short_description: Centrify's Dire... | 32.72449 | 131 | 0.558154 | 811 | 0.252884 | 0 | 0 | 0 | 0 | 0 | 0 | 2,434 | 0.758965 |
830713faff66a018b4d3b736c65a71173ebb4219 | 3,078 | py | Python | templates/php/functionsTest.py | anconaesselmann/LiveUnit | 8edebb49cb02fa898550cbafdf87af7fc22f106b | [
"MIT"
] | null | null | null | templates/php/functionsTest.py | anconaesselmann/LiveUnit | 8edebb49cb02fa898550cbafdf87af7fc22f106b | [
"MIT"
] | null | null | null | templates/php/functionsTest.py | anconaesselmann/LiveUnit | 8edebb49cb02fa898550cbafdf87af7fc22f106b | [
"MIT"
] | null | null | null | import unittest
import os
if __name__ == '__main__' and __package__ is None:
from os import sys, path
sys.path.append(path.abspath(path.join(__file__, "..", "..")))
sys.path.append(path.abspath(path.join(__file__, "..", "..", "..", "classes_and_tests")))
from php.functions import *
from src.mocking.MockFi... | 34.58427 | 100 | 0.649448 | 2,677 | 0.869721 | 0 | 0 | 0 | 0 | 0 | 0 | 1,611 | 0.523392 |
8307eb589ed701e9bef2d35aecb16eec594af392 | 5,629 | py | Python | app.py | opeyemibami/decision_support_system | 15ffdd795c8f2704b577a9c84db9dafb1fcf792d | [
"MIT"
] | 1 | 2021-10-31T13:07:24.000Z | 2021-10-31T13:07:24.000Z | app.py | opeyemibami/decision_support_system | 15ffdd795c8f2704b577a9c84db9dafb1fcf792d | [
"MIT"
] | null | null | null | app.py | opeyemibami/decision_support_system | 15ffdd795c8f2704b577a9c84db9dafb1fcf792d | [
"MIT"
] | 1 | 2022-02-03T13:12:59.000Z | 2022-02-03T13:12:59.000Z | import sys
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
import efficientnet.keras as efn
import streamlit as st
import SessionState
from skimage.transform import resize
import skimage
import skimage.filters
import reportgenerator
import style
from keras.models import Model, load_model
st.set... | 45.032 | 203 | 0.650382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,568 | 0.456209 |
83080191fabbc152072cd0019bf81fd6f737d375 | 7,129 | py | Python | richardson_extrapolation.py | PrabalChowdhury/CSE330-NUMERICAL-METHODS | aabfea01f4ceaecfbb50d771ee990777d6e1122c | [
"MIT"
] | null | null | null | richardson_extrapolation.py | PrabalChowdhury/CSE330-NUMERICAL-METHODS | aabfea01f4ceaecfbb50d771ee990777d6e1122c | [
"MIT"
] | null | null | null | richardson_extrapolation.py | PrabalChowdhury/CSE330-NUMERICAL-METHODS | aabfea01f4ceaecfbb50d771ee990777d6e1122c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Richardson-Extrapolation.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1oNlSL2Vztk9Fc7tMBgPcL82WGaUuCY-A
Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the me... | 36.747423 | 273 | 0.591668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,533 | 0.776126 |
83092d72acd08ca21db99e040f029c6dead0fb17 | 9,050 | py | Python | src/mlshell/blocks/pipeline/steps.py | nizaevka/mlshell | 36893067f598f6b071b61604423d0fd15c2a7c62 | [
"Apache-2.0"
] | 8 | 2020-10-04T15:33:58.000Z | 2020-11-24T15:10:18.000Z | src/mlshell/blocks/pipeline/steps.py | nizaevka/mlshell | 36893067f598f6b071b61604423d0fd15c2a7c62 | [
"Apache-2.0"
] | 5 | 2020-03-06T18:13:10.000Z | 2022-03-12T00:52:48.000Z | src/mlshell/blocks/pipeline/steps.py | nizaevka/mlshell | 36893067f598f6b071b61604423d0fd15c2a7c62 | [
"Apache-2.0"
] | null | null | null | """The :mod:`mlshell.pipeline.steps` contains unified pipeline steps."""
import inspect
import mlshell
import numpy as np
import pandas as pd
import sklearn
import sklearn.impute
import sklearn.compose
__all__ = ['Steps']
class Steps(object):
"""Unified pipeline steps.
Parameters
----------
estim... | 43.301435 | 206 | 0.612818 | 8,780 | 0.970166 | 0 | 0 | 132 | 0.014586 | 0 | 0 | 4,305 | 0.475691 |
830a09b0fe214d145afe8c3a467c3effd538a38b | 2,283 | py | Python | paste/application/repositories.py | Afonasev/Paste | ca1dcb566f15a9cf1aa0e97c6fc4cf4d450ec89d | [
"MIT"
] | null | null | null | paste/application/repositories.py | Afonasev/Paste | ca1dcb566f15a9cf1aa0e97c6fc4cf4d450ec89d | [
"MIT"
] | 1 | 2018-05-07T00:12:59.000Z | 2018-05-07T00:12:59.000Z | paste/application/repositories.py | Afonasev/Paste | ca1dcb566f15a9cf1aa0e97c6fc4cf4d450ec89d | [
"MIT"
] | null | null | null | from datetime import datetime
import peewee
from paste import domain
from . import db
class AbstractRepository(domain.IRepository):
_model = NotImplemented
_entity = NotImplemented
def count(self):
return self._model.count()
def save(self, entity):
model = _entity_to_model(entity... | 23.78125 | 72 | 0.610162 | 1,234 | 0.540517 | 0 | 0 | 0 | 0 | 0 | 0 | 100 | 0.043802 |
830a2f904f214eab34723ae65f4d0799f4773a77 | 3,278 | py | Python | example/example_nursery.py | airysen/racog | 8751436437e9e82d80d54617a8b39fae5fd0ebdd | [
"MIT"
] | 3 | 2019-03-06T07:58:22.000Z | 2021-03-12T18:10:46.000Z | example/example_nursery.py | airysen/racog | 8751436437e9e82d80d54617a8b39fae5fd0ebdd | [
"MIT"
] | 1 | 2019-08-19T18:51:02.000Z | 2019-08-19T18:51:02.000Z | example/example_nursery.py | airysen/racog | 8751436437e9e82d80d54617a8b39fae5fd0ebdd | [
"MIT"
] | 1 | 2019-08-19T19:07:05.000Z | 2019-08-19T19:07:05.000Z | # Dataset https://archive.ics.uci.edu/ml/datasets/Nursery
import numpy as np
import pandas as pd
from collections import Counter
from sklearn.model_selection import train_test_split, GridSearchCV, StratifiedKFold
from imblearn.metrics import geometric_mean_score
from sklearn.metrics import mean_squared_error, make_s... | 31.519231 | 99 | 0.682123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 645 | 0.196766 |
830a7a30cf722db0418fa36cfcde2cb40ad3323f | 8,187 | py | Python | channels/piratestreaming.py | sodicarus/channels | d77402f4f460ea6daa66959aa5384aaffbff70b5 | [
"MIT"
] | null | null | null | channels/piratestreaming.py | sodicarus/channels | d77402f4f460ea6daa66959aa5384aaffbff70b5 | [
"MIT"
] | null | null | null | channels/piratestreaming.py | sodicarus/channels | d77402f4f460ea6daa66959aa5384aaffbff70b5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# StreamOnDemand Community Edition - Kodi Addon
# ------------------------------------------------------------
# streamondemand.- XBMC Plugin
# Canale piratestreaming
# http://www.mimediacenter.info/foro/viewforum.php?f=36
# ------------------------------------------------------------
import re
... | 36.386667 | 142 | 0.561011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,368 | 0.289239 |
830be7742fbd411e52ef441a27dec4480a075f6e | 5,259 | py | Python | test/IECore/LayeredDictTest.py | gcodebackups/cortex-vfx | 72fa6c6eb3327fce4faf01361c8fcc2e1e892672 | [
"BSD-3-Clause"
] | 5 | 2016-07-26T06:09:28.000Z | 2022-03-07T03:58:51.000Z | test/IECore/LayeredDictTest.py | turbosun/cortex | 4bdc01a692652cd562f3bfa85f3dae99d07c0b15 | [
"BSD-3-Clause"
] | null | null | null | test/IECore/LayeredDictTest.py | turbosun/cortex | 4bdc01a692652cd562f3bfa85f3dae99d07c0b15 | [
"BSD-3-Clause"
] | 3 | 2015-03-25T18:45:24.000Z | 2020-02-15T15:37:18.000Z | ##########################################################################
#
# Copyright (c) 2008-2010, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redis... | 24.460465 | 76 | 0.56969 | 3,389 | 0.644419 | 0 | 0 | 0 | 0 | 0 | 0 | 2,064 | 0.39247 |
830c809918b4ad486fc0af2abc3ed71d8ce032a1 | 1,161 | py | Python | www/courses/cs1120/spring2017/code/day10.py | ic4f/sergey.cs.uni.edu | 52bbf121f73603fdb465dae36dbe691fe39e6e47 | [
"Unlicense"
] | null | null | null | www/courses/cs1120/spring2017/code/day10.py | ic4f/sergey.cs.uni.edu | 52bbf121f73603fdb465dae36dbe691fe39e6e47 | [
"Unlicense"
] | null | null | null | www/courses/cs1120/spring2017/code/day10.py | ic4f/sergey.cs.uni.edu | 52bbf121f73603fdb465dae36dbe691fe39e6e47 | [
"Unlicense"
] | null | null | null | def makePic():
file = pickAFile()
return makePicture(file)
def decreaseRed(picture):
for pixel in getPixels(picture):
setRed(pixel, getRed(pixel) * 0.2)
repaint(picture)
def decreaseRed2(picture):
pixels = getPixels(picture)
for i in range(len(pixels)):
pixel = pixels[i]
setRe... | 23.22 | 41 | 0.612403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
830ca47819b03f644d5fc932f9eb92819146316f | 1,425 | py | Python | nuplan/database/utils/boxes/box.py | MCZhi/nuplan-devkit | 3c4f5b8dcd517b27cfd258915ca5fe5c54e3cb0c | [
"Apache-2.0"
] | null | null | null | nuplan/database/utils/boxes/box.py | MCZhi/nuplan-devkit | 3c4f5b8dcd517b27cfd258915ca5fe5c54e3cb0c | [
"Apache-2.0"
] | null | null | null | nuplan/database/utils/boxes/box.py | MCZhi/nuplan-devkit | 3c4f5b8dcd517b27cfd258915ca5fe5c54e3cb0c | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import abc
from typing import Any, Dict
class BoxInterface(abc.ABC):
""" Interface for box. """
@property # type: ignore
@abc.abstractmethod
def label(self) -> int:
"""
Label id.
:return: Label id.
"""
pass
@label.sett... | 22.619048 | 77 | 0.562105 | 1,346 | 0.944561 | 0 | 0 | 1,251 | 0.877895 | 0 | 0 | 692 | 0.485614 |
830e1e09e8a968bc1c2ae3714f7a575834f1f2be | 4,627 | py | Python | tests/test_training.py | Hilly12/masters-code | 60b20a0e5e4c0ab9152b090b679391d8d62ec88a | [
"MIT"
] | null | null | null | tests/test_training.py | Hilly12/masters-code | 60b20a0e5e4c0ab9152b090b679391d8d62ec88a | [
"MIT"
] | null | null | null | tests/test_training.py | Hilly12/masters-code | 60b20a0e5e4c0ab9152b090b679391d8d62ec88a | [
"MIT"
] | null | null | null | import torch
import prifair as pf
N_SAMPLES = 10000
VAL_SAMPLES = 1000
STUDENT_SAMPLES = 5000
INPUTS = 1000
OUTPUTS = 5
BATCH_SIZE = 256
MAX_PHYSICAL_BATCH_SIZE = 128
EPSILON = 2.0
DELTA = 1e-5
MAX_GRAD_NORM = 1.0
N_TEACHERS = 4
N_GROUPS = 10
EPOCHS = 2
class MockModel(torch.nn.Module):
def __init__(self):
... | 28.91875 | 84 | 0.690944 | 318 | 0.068727 | 0 | 0 | 0 | 0 | 0 | 0 | 24 | 0.005187 |
830e39c22c34be264cb1928c1b6da3f32584283d | 177 | py | Python | problem/01000~09999/02164/2164.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/01000~09999/02164/2164.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/01000~09999/02164/2164.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | from collections import deque
n,x=int(input()),deque()
for i in range(1,n+1): x.append(i)
while len(x)>1:
x.popleft()
if len(x)==1: break
x.append(x.popleft())
print(x.pop()) | 22.125 | 34 | 0.661017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
830e650277386eb71938c69ac25104bf879b279f | 2,430 | py | Python | craft_ai/timezones.py | craft-ai/craft-ai-client-python | 3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3 | [
"BSD-3-Clause"
] | 14 | 2016-08-26T07:06:57.000Z | 2020-09-22T07:41:21.000Z | craft_ai/timezones.py | craft-ai/craft-ai-client-python | 3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3 | [
"BSD-3-Clause"
] | 94 | 2016-08-02T14:07:59.000Z | 2021-10-06T11:50:52.000Z | craft_ai/timezones.py | craft-ai/craft-ai-client-python | 3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3 | [
"BSD-3-Clause"
] | 8 | 2017-02-07T12:05:57.000Z | 2021-10-14T09:45:30.000Z | import re
_TIMEZONE_REGEX = re.compile(r"^([+-](2[0-3]|[01][0-9])(:?[0-5][0-9])?|Z)$")
TIMEZONES = {
"UTC": "+00:00",
"GMT": "+00:00",
"BST": "+01:00",
"IST": "+01:00",
"WET": "+00:00",
"WEST": "+01:00",
"CET": "+01:00",
"CEST": "+02:00",
"EET": "+02:00",
"EEST": "+03:00",
... | 26.413043 | 81 | 0.530864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 746 | 0.306996 |
830ebcb1b5a538ed7758db2770eff5e0ab51ebf3 | 2,066 | py | Python | gpvdm_gui/gui/json_fdtd.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 12 | 2016-09-13T08:58:13.000Z | 2022-01-17T07:04:52.000Z | gpvdm_gui/gui/json_fdtd.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 3 | 2017-11-11T12:33:02.000Z | 2019-03-08T00:48:08.000Z | gpvdm_gui/gui/json_fdtd.py | roderickmackenzie/gpvdm | 914fd2ee93e7202339853acaec1d61d59b789987 | [
"BSD-3-Clause"
] | 6 | 2019-01-03T06:17:12.000Z | 2022-01-01T15:59:00.000Z | #
# General-purpose Photovoltaic Device Model - a drift diffusion base/Shockley-Read-Hall
# model for 1st, 2nd and 3rd generation solar cells.
# Copyright (C) 2008-2022 Roderick C. I. MacKenzie r.c.i.mackenzie at googlemail.com
#
# https://www.gpvdm.com
#
# This program is free software; you can redist... | 31.30303 | 91 | 0.727009 | 969 | 0.469022 | 0 | 0 | 0 | 0 | 0 | 0 | 1,181 | 0.571636 |
830eef9810e77b134c4cc2e988eadd23436bf9ed | 4,637 | py | Python | gru/plugins/base/inventory.py | similarweb/gru | 49ef70c2b5e58302c84dbe7d984a7d49aebc0384 | [
"BSD-2-Clause-FreeBSD"
] | 7 | 2016-12-11T19:58:33.000Z | 2020-07-11T08:55:34.000Z | gru/plugins/base/inventory.py | similarweb/gru | 49ef70c2b5e58302c84dbe7d984a7d49aebc0384 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | gru/plugins/base/inventory.py | similarweb/gru | 49ef70c2b5e58302c84dbe7d984a7d49aebc0384 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-09T19:31:50.000Z | 2019-12-09T19:31:50.000Z |
from . import BasePlugin
from gru.config import settings
class Host(object):
def __init__(self, host_id, host_data=None):
self.host_id = host_id
if host_data:
self.host_data = host_data
else:
self.host_data = {}
def __repr__(self):
return 'Host(host_... | 31.120805 | 117 | 0.607505 | 4,566 | 0.984688 | 74 | 0.015959 | 0 | 0 | 0 | 0 | 2,025 | 0.436705 |