hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | 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 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | 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 251 | max_forks_repo_name stringlengths 4 130 | 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 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7bc111fc110f0ab3862581da0b6b979e7a706d1e | 3,234 | py | Python | drowsiness_detector.py | zhww-107/drowsiness_detector | 855995e1da36ffc0ec1fda7df8ea1aafc35c416d | [
"BSD-2-Clause"
] | 1 | 2020-05-12T12:31:51.000Z | 2020-05-12T12:31:51.000Z | drowsiness_detector.py | zhww-107/drowsiness_detector | 855995e1da36ffc0ec1fda7df8ea1aafc35c416d | [
"BSD-2-Clause"
] | null | null | null | drowsiness_detector.py | zhww-107/drowsiness_detector | 855995e1da36ffc0ec1fda7df8ea1aafc35c416d | [
"BSD-2-Clause"
] | null | null | null | from imutils import face_utils
from scipy.spatial import distance
import cv2
import dlib
import imutils
import pygame
import time
# Initializing the alert sound
pygame.mixer.init()
alert_sound = pygame.mixer.Sound("alert_sound.wav")
default_volume = 0.2
# Eye-Aspect-Ratio data
EAR_threshhold = 0.17 # One valid frame ... | 31.096154 | 89 | 0.649969 |
7bc160c90d8d420f5bacbdb3fbe421c84e36aaf4 | 11,809 | py | Python | trunk-tap.py | schreiberstein/trunk-tap.py | aacf32816e2a558e31ebc431edf84e23ef22146d | [
"MIT"
] | 15 | 2017-10-22T15:08:58.000Z | 2022-01-03T22:21:12.000Z | trunk-tap.py | ideechaniz/trunk-tap.py | aacf32816e2a558e31ebc431edf84e23ef22146d | [
"MIT"
] | 2 | 2018-04-04T18:52:54.000Z | 2019-02-20T10:16:13.000Z | trunk-tap.py | ideechaniz/trunk-tap.py | aacf32816e2a558e31ebc431edf84e23ef22146d | [
"MIT"
] | 6 | 2017-10-23T03:03:16.000Z | 2021-07-03T16:28:29.000Z | #!/usr/bin/env python3
# < trunk-tap.py >
# Version 1.0 < 20171022 >
# Copyright 2017: Alexander Schreiber < schreiberstein[at]gmail.com >
# https://github.com/schreiberstein/trunk-tap.py
# MIT License:
# ============
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and... | 41.146341 | 260 | 0.655348 |
7bc353399a2502106befa0365666e5d586522d04 | 4,404 | py | Python | tests/common/mock_cgroup_commands.py | rbgithuub/WALinuxAgent | c0462f33bb5e3a33430fe3d172676d85cefa6227 | [
"Apache-2.0"
] | null | null | null | tests/common/mock_cgroup_commands.py | rbgithuub/WALinuxAgent | c0462f33bb5e3a33430fe3d172676d85cefa6227 | [
"Apache-2.0"
] | null | null | null | tests/common/mock_cgroup_commands.py | rbgithuub/WALinuxAgent | c0462f33bb5e3a33430fe3d172676d85cefa6227 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Microsoft 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.0
#
# Unless required by applicable law or agreed to in... | 38.631579 | 178 | 0.711172 |
7bc78e4dfebfc4162a535f0855d380aa68aa6df8 | 1,474 | py | Python | main.py | saiamphora/XOR-NEATpy | 091b6d6fc3b662491c8216227f5305841521e0ed | [
"Unlicense"
] | 1 | 2021-11-29T03:30:49.000Z | 2021-11-29T03:30:49.000Z | main.py | saiamphora/XOR-NEATpy | 091b6d6fc3b662491c8216227f5305841521e0ed | [
"Unlicense"
] | 1 | 2021-11-29T15:28:09.000Z | 2021-11-29T15:28:09.000Z | main.py | saiamphora/XOR-NEATpy | 091b6d6fc3b662491c8216227f5305841521e0ed | [
"Unlicense"
] | null | null | null | from __future__ import print_function
import os
import neat
# 2-input XOR inputs and expected outputs.
xor_inputs = [(0.0, 0.0), (0.0, 1.0), (1.0, 0.0), (1.0, 1.0)]
xor_outputs = [(0.0,),(1.0,),(1.0,),(0.0,)]
local_dir = os.path.dirname(__file__)
config_path = os.path.join(local_dir, 'config-feedforward')
run(conf... | 33.5 | 82 | 0.651967 |
7bc7b39f24b5e8a02751dc33b721dc3411814fe9 | 16,866 | py | Python | iBlock.py | RussianOtter/iBlock | e0db1b94fd2d8ed9538ad42df1a706cc782bb2f3 | [
"MIT"
] | 5 | 2017-10-02T06:01:01.000Z | 2022-03-08T05:51:51.000Z | iBlock.py | RussianOtter/iBlock | e0db1b94fd2d8ed9538ad42df1a706cc782bb2f3 | [
"MIT"
] | null | null | null | iBlock.py | RussianOtter/iBlock | e0db1b94fd2d8ed9538ad42df1a706cc782bb2f3 | [
"MIT"
] | null | null | null | """
_ _____ _ _
|_| __ | |___ ___| |_
| | __ -| | . | _| '_|
|_|_____|_|___|___|_,_|
iBlock is a machine learning video game!
This game is played on a 8x6 board (48 spaces) and the goal is to fill up the enemy's column with your pieces! Once that happens the game will reset and log all the data for the ... | 27.115756 | 398 | 0.600024 |
7bc9519279bbaea50bce0ecf16967333a0bd62b5 | 319 | py | Python | Autre/Internet.py | Yaya-Cout/Python | 500a2bc18cbb0b9bf1470943def8fd8e8e76d36d | [
"Unlicense"
] | 5 | 2020-12-05T14:00:39.000Z | 2021-12-02T11:44:54.000Z | Autre/Internet.py | Yaya-Cout/Python | 500a2bc18cbb0b9bf1470943def8fd8e8e76d36d | [
"Unlicense"
] | 11 | 2021-03-15T17:51:43.000Z | 2021-11-24T13:24:39.000Z | Autre/Internet.py | Yaya-Cout/Python | 500a2bc18cbb0b9bf1470943def8fd8e8e76d36d | [
"Unlicense"
] | 1 | 2021-01-02T14:15:10.000Z | 2021-01-02T14:15:10.000Z |
if __name__ == "__main__":
main()
| 19.9375 | 70 | 0.567398 |
7bc96e1706c4c4494a902bdb9aa51a33d9269620 | 6,502 | py | Python | older/rc-qradar-search/query_runner/components/ariel_query.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 65 | 2017-12-04T13:58:32.000Z | 2022-03-24T18:33:17.000Z | older/rc-qradar-search/query_runner/components/ariel_query.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 48 | 2018-03-02T19:17:14.000Z | 2022-03-09T22:00:38.000Z | older/rc-qradar-search/query_runner/components/ariel_query.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 95 | 2018-01-11T16:23:39.000Z | 2022-03-21T11:34:29.000Z | """Action Module circuits component to update incidents from QRadar Ariel queries"""
import logging
from datetime import datetime
import time
import copy
import json
from string import Template
from pkg_resources import Requirement, resource_filename
import resilient_circuits.template_functions as template_functions
fr... | 36.324022 | 113 | 0.669948 |
7bcaa605df103e994b12588df4d84741fe74b87f | 2,371 | py | Python | first/sendmail-practice.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | first/sendmail-practice.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | first/sendmail-practice.py | bujige/Python-practice | c1eb76b0caaada628f23a477303f07d6be3f707c | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from email import encoders
from email.header import Header
from email.mime.multipart import MIMEBase, MIMEMultipart
from email.mime.text import MIMEText
from email.utils import parseaddr, formataddr
import smtplib
#
#
from_addr = input('From')
password = input('Passw... | 28.22619 | 79 | 0.634753 |
7bcea7388e12344b8c218c07128ff9fb1cd5ed79 | 1,519 | py | Python | yat-master/pymodule/common_sql/plain_parser/reader.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | yat-master/pymodule/common_sql/plain_parser/reader.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | yat-master/pymodule/common_sql/plain_parser/reader.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | #!/usr/bin/env python
# encoding=utf-8
"""
Copyright (c) 2021 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFT... | 27.125 | 84 | 0.623436 |
7bcfdbc346740098cdd0e1ea01a84bd850dcb6f3 | 2,895 | py | Python | web/admin.py | dschien/greendoors-web | 26a10e909e6447f1709d27e58340f08372ce8f26 | [
"MIT"
] | null | null | null | web/admin.py | dschien/greendoors-web | 26a10e909e6447f1709d27e58340f08372ce8f26 | [
"MIT"
] | 2 | 2020-06-05T17:29:54.000Z | 2021-06-10T18:58:13.000Z | web/admin.py | dschien/greendoors-web | 26a10e909e6447f1709d27e58340f08372ce8f26 | [
"MIT"
] | null | null | null |
__author__ = 'schien'
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from django.contrib.admin import BooleanFieldListFilter
from api.models import Scan, Measure, InstalledMeasure, MeasureCategory, App, MessageThread, RedirectUrl, Trackabl... | 24.327731 | 152 | 0.760622 |
c8730231294cec0e238e9725d099edb7ac1ec02d | 7,359 | py | Python | compecon/basisSpline.py | daniel-schaefer/CompEcon-python | d3f66e04a7e02be648fc5a68065806ec7cc6ffd6 | [
"MIT"
] | null | null | null | compecon/basisSpline.py | daniel-schaefer/CompEcon-python | d3f66e04a7e02be648fc5a68065806ec7cc6ffd6 | [
"MIT"
] | null | null | null | compecon/basisSpline.py | daniel-schaefer/CompEcon-python | d3f66e04a7e02be648fc5a68065806ec7cc6ffd6 | [
"MIT"
] | 1 | 2021-06-01T03:47:35.000Z | 2021-06-01T03:47:35.000Z | import numpy as np
from scipy.sparse import csc_matrix, diags, tril
from .basis import Basis
__author__ = 'Randall'
# TODO: complete this class
# todo: compare performance of csr_matrix and csc_matrix to deal with sparse interpolation operators
# fixme: interpolation is 25 slower than in matlab when 2 dimensions!! 2x ... | 36.430693 | 119 | 0.512298 |
c873b44db1fbe52cb97100b99eb41550c409cc9f | 2,279 | py | Python | vendors/rez-2.23.1-py2.7/rez/backport/shutilwhich.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | 4 | 2019-01-11T03:41:28.000Z | 2019-09-12T06:57:17.000Z | vendors/rez-2.23.1-py2.7/rez/backport/shutilwhich.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | null | null | null | vendors/rez-2.23.1-py2.7/rez/backport/shutilwhich.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | 2 | 2019-01-10T05:00:18.000Z | 2020-02-15T16:32:56.000Z | import os
import os.path
import sys
# Modified version from Python-3.3. 'env' environ dict override has been added.
def which(cmd, mode=os.F_OK | os.X_OK, env=None):
"""Given a command, mode, and a PATH string, return the path which
conforms to the given mode on the PATH, or None if there is no such
file... | 36.174603 | 79 | 0.617376 |
c876f748ac3b92bbe9dd6ace6cf8630a36ac3d08 | 6,469 | py | Python | src/symbol_table.py | harkiratbehl/PyGM | e0a4e0b865afb607dfa0525ca386bfbe77bb6508 | [
"MIT"
] | 2 | 2019-02-13T11:30:08.000Z | 2021-02-14T04:20:44.000Z | src/symbol_table.py | harkiratbehl/PyGM | e0a4e0b865afb607dfa0525ca386bfbe77bb6508 | [
"MIT"
] | null | null | null | src/symbol_table.py | harkiratbehl/PyGM | e0a4e0b865afb607dfa0525ca386bfbe77bb6508 | [
"MIT"
] | null | null | null | """Defines the classes SymbolTable and SymbolTableNode"""
import sys
from numpy import ones
| 34.227513 | 83 | 0.534549 |
c879174dc589e41a31be3771fbf140871339c500 | 151 | py | Python | setup.py | Will-Robin/NorthNet | 343238afbefd02b7255ef6013cbfb0e801bc2b3b | [
"BSD-3-Clause"
] | null | null | null | setup.py | Will-Robin/NorthNet | 343238afbefd02b7255ef6013cbfb0e801bc2b3b | [
"BSD-3-Clause"
] | 2 | 2022-02-23T12:03:32.000Z | 2022-02-23T14:27:29.000Z | setup.py | Will-Robin/NorthNet | 343238afbefd02b7255ef6013cbfb0e801bc2b3b | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, version
setup(
name="NorthNet",
version="0.0",
author="William E. Robinson",
packages = ["NorthNet"],
)
| 16.777778 | 37 | 0.635762 |
c87b5c6d8dff26ac4e6274273976c58563c8553b | 13,380 | py | Python | clustering/runner.py | kburnik/naps-clustering | 8ceaad61e7f1c3d76ad9e7c7491b705b936a6f19 | [
"MIT"
] | null | null | null | clustering/runner.py | kburnik/naps-clustering | 8ceaad61e7f1c3d76ad9e7c7491b705b936a6f19 | [
"MIT"
] | null | null | null | clustering/runner.py | kburnik/naps-clustering | 8ceaad61e7f1c3d76ad9e7c7491b705b936a6f19 | [
"MIT"
] | null | null | null | """Class with high-level methods for processing NAPS and NAPS BE datasets."""
from config import DATA_NAPS_BE_ALL
from lib import partition_naps
from lib import plot
from lib import plot_clusters
from lib import plot_clusters_with_probability
from lib import plot_setup
from lib import read_naps
from lib import read_na... | 34.307692 | 78 | 0.65568 |
c87d1cba2782a99d03e9fe56c04a83d537ce2a1a | 2,936 | py | Python | Algorithms_medium/1618. Maximum Font to Fit a Sentence in a Screen.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | 4 | 2020-08-11T20:45:15.000Z | 2021-03-12T00:33:34.000Z | Algorithms_medium/1618. Maximum Font to Fit a Sentence in a Screen.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | Algorithms_medium/1618. Maximum Font to Fit a Sentence in a Screen.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | """
1618. Maximum Font to Fit a Sentence in a Screen
Medium
You are given a string text. We want to display text on a screen of width w and height h. You can choose any font size from array fonts, which contains the available font sizes in ascending order.
You can use the FontInfo interface to get the width and heigh... | 32.622222 | 260 | 0.642711 |
c880853878e1cff80cb76bcab65d294bfff7d0f4 | 6,407 | py | Python | climateeconomics/sos_wrapping/sos_wrapping_dice/tempchange/tempchange_discipline.py | os-climate/witness-core | 3ef9a44d86804c5ad57deec3c9916348cb3bfbb8 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2022-01-14T06:37:42.000Z | 2022-01-14T06:37:42.000Z | climateeconomics/sos_wrapping/sos_wrapping_dice/tempchange/tempchange_discipline.py | os-climate/witness-core | 3ef9a44d86804c5ad57deec3c9916348cb3bfbb8 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | climateeconomics/sos_wrapping/sos_wrapping_dice/tempchange/tempchange_discipline.py | os-climate/witness-core | 3ef9a44d86804c5ad57deec3c9916348cb3bfbb8 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | '''
Copyright 2022 Airbus SAS
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
dis... | 33.025773 | 129 | 0.605119 |
c8813251417f083ef4764a6d0d80104c34d5a26a | 56,368 | py | Python | pymkm/pymkm_app.py | Guibod/pymkm | 58ac805c8072979f3059c7faafc264386ae98141 | [
"MIT"
] | null | null | null | pymkm/pymkm_app.py | Guibod/pymkm | 58ac805c8072979f3059c7faafc264386ae98141 | [
"MIT"
] | null | null | null | pymkm/pymkm_app.py | Guibod/pymkm | 58ac805c8072979f3059c7faafc264386ae98141 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
The PyMKM example app.
"""
__author__ = "Andreas Ehrlund"
__version__ = "2.0.4"
__license__ = "MIT"
import os
import csv
import json
import shelve
import logging
import logging.handlers
import pprint
import uuid
import sys
from datetime import datetime
import micromenu
import progressbar
i... | 38.319511 | 168 | 0.482064 |
c8829aec3d5b9877236b2115916c5ca2a14ab73b | 333 | py | Python | Datasets/Terrain/us_ned_physio_diversity.py | monocilindro/qgis-earthengine-examples | 82aea8926d34ed3f4ad4a4a345ddbd225819d28f | [
"MIT"
] | 646 | 2019-12-03T06:09:03.000Z | 2022-03-28T03:37:08.000Z | Datasets/Terrain/us_ned_physio_diversity.py | csaybar/qgis-earthengine-examples | ba8942683834d2847ff3246bdd1859b36e50fe44 | [
"MIT"
] | 10 | 2019-12-30T03:42:44.000Z | 2021-05-22T07:34:07.000Z | Datasets/Terrain/us_ned_physio_diversity.py | csaybar/qgis-earthengine-examples | ba8942683834d2847ff3246bdd1859b36e50fe44 | [
"MIT"
] | 219 | 2019-12-06T02:20:53.000Z | 2022-03-30T15:14:27.000Z | import ee
from ee_plugin import Map
dataset = ee.Image('CSP/ERGo/1_0/US/physioDiversity')
physiographicDiversity = dataset.select('b1')
physiographicDiversityVis = {
'min': 0.0,
'max': 1.0,
}
Map.setCenter(-94.625, 39.825, 7)
Map.addLayer(
physiographicDiversity, physiographicDiversityVis,
'Physiographic... | 23.785714 | 54 | 0.738739 |
c88407b58490b10ee7b7b9dec303ca0721d6f4c4 | 281 | py | Python | timesheet/forms.py | pincoin/windmill | fe373e5ca27c775a926e9a5538931f9394196d90 | [
"MIT"
] | null | null | null | timesheet/forms.py | pincoin/windmill | fe373e5ca27c775a926e9a5538931f9394196d90 | [
"MIT"
] | 7 | 2020-02-12T01:22:46.000Z | 2021-06-10T18:43:01.000Z | timesheet/forms.py | pincoin/windmill | fe373e5ca27c775a926e9a5538931f9394196d90 | [
"MIT"
] | null | null | null | from django import forms
from . import models
| 20.071429 | 62 | 0.701068 |
c8845f1c14219b145ec8b7fa1bba57f5b2418dfb | 497 | py | Python | bin/base64util.py | SnowleopardXI/stash | a14f016e5b568095af8d1e78addedc562e3cde70 | [
"MIT"
] | null | null | null | bin/base64util.py | SnowleopardXI/stash | a14f016e5b568095af8d1e78addedc562e3cde70 | [
"MIT"
] | null | null | null | bin/base64util.py | SnowleopardXI/stash | a14f016e5b568095af8d1e78addedc562e3cde70 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import base64
print('Choose your choice:')
n='''
1:Encode string to base64
2:Decode base64 to string
'''
c=int(eval(input(n))) #
if c == 1: #1
print('Type string to be encoded:')
inp=input()
out = str(base64.encodebytes(inp.encode("utf-8")), "utf-8")
prin... | 24.85 | 63 | 0.593561 |
c884c97e5f0b08128955897f09554f008fe34589 | 9,781 | py | Python | Code/nebulae/lib/sc/sc.py | CarlColglazier/QB_Nebulae_V2 | 3326fa1c672ba0845b28cb55847bea0c9b8e9a05 | [
"MIT"
] | 8 | 2020-05-14T20:18:29.000Z | 2021-08-08T15:18:28.000Z | Code/nebulae/lib/sc/sc.py | alex-thibodeau/QB_Nebulae_V2 | 34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54 | [
"MIT"
] | null | null | null | Code/nebulae/lib/sc/sc.py | alex-thibodeau/QB_Nebulae_V2 | 34bcf341ea8eddaa9f9ce2e7c2d2438e00e50f54 | [
"MIT"
] | null | null | null | import time, os, sys
import scsynth, scosc
server = 0 # reference to app's sc server process
sndLoader = 0
synthon = 0 # did we start the scsythn process?
##workingpath = os.getcwd() # must be set to the right path in case something special is need
sndpath = os.path.join( os.getcwd() , 'sounds' )
synthdefpath = os.... | 37.190114 | 120 | 0.600552 |
c884d28504ed798c203413f680ec73fe70726669 | 357 | py | Python | test/test_api/test_routes/test_about.py | MRmlik12/biblioteczka | 3fcde24cd42d0155c3a20585d20ac0d0a7989101 | [
"MIT"
] | null | null | null | test/test_api/test_routes/test_about.py | MRmlik12/biblioteczka | 3fcde24cd42d0155c3a20585d20ac0d0a7989101 | [
"MIT"
] | 3 | 2021-07-29T08:34:09.000Z | 2021-07-29T10:12:34.000Z | test/test_api/test_routes/test_about.py | MRmlik12/catana | 3fcde24cd42d0155c3a20585d20ac0d0a7989101 | [
"MIT"
] | null | null | null | import pytest
from fastapi import FastAPI
from httpx import AsyncClient
from starlette.status import HTTP_200_OK
pytestmark = pytest.mark.asyncio
| 29.75 | 83 | 0.809524 |
c88551ac723dd08106aa9434592b74d5d60bf757 | 2,614 | py | Python | linefinder/job_scripts/linefinder_sightlines.py | zhafen/linefinder | 0f4f36a83246f1b833d0c281e635d86be3d1eb95 | [
"MIT"
] | null | null | null | linefinder/job_scripts/linefinder_sightlines.py | zhafen/linefinder | 0f4f36a83246f1b833d0c281e635d86be3d1eb95 | [
"MIT"
] | 12 | 2018-08-26T14:10:18.000Z | 2021-04-15T21:48:58.000Z | linefinder/job_scripts/linefinder_sightlines.py | zhafen/linefinder | 0f4f36a83246f1b833d0c281e635d86be3d1eb95 | [
"MIT"
] | 1 | 2021-05-19T16:45:21.000Z | 2021-05-19T16:45:21.000Z | import linefinder.linefinder as linefinder
import linefinder.config as linefinder_config
import linefinder.utils.file_management as file_management
########################################################################
sim_name = 'm12i'
'''The simulation to run tracking on.'''
tag = '{}_sightline'.format( sim_nam... | 30.045977 | 82 | 0.630451 |
c8864bea2e2f25d967c38986aef9fb5517d5143b | 285 | py | Python | SwordToOffer/SwordToOffer-PythonSolution/47_Sum_Solution.py | dingchaofan/AlgorithmSolution | 46198e3f0dbda867e7b75f0d0e52be5f0181238a | [
"MIT"
] | 1 | 2020-06-23T02:18:39.000Z | 2020-06-23T02:18:39.000Z | SwordToOffer/SwordToOffer-PythonSolution/47_Sum_Solution.py | dingchaofan/AlgorithmSolution | 46198e3f0dbda867e7b75f0d0e52be5f0181238a | [
"MIT"
] | null | null | null | SwordToOffer/SwordToOffer-PythonSolution/47_Sum_Solution.py | dingchaofan/AlgorithmSolution | 46198e3f0dbda867e7b75f0d0e52be5f0181238a | [
"MIT"
] | 1 | 2021-01-11T12:07:03.000Z | 2021-01-11T12:07:03.000Z | # 47. 1+2+3+...+n
# 1+2+3+...+nforwhileifelseswitchcaseA?B:C
# -*- coding:utf-8 -*- | 21.923077 | 73 | 0.540351 |
c8870211f55a315e2890fcb0bc548ae67550546d | 137 | py | Python | apps/users/urls.py | akundev/akundotdev | 98b47925b948c920789c5acebad86944162bf53a | [
"Apache-2.0"
] | null | null | null | apps/users/urls.py | akundev/akundotdev | 98b47925b948c920789c5acebad86944162bf53a | [
"Apache-2.0"
] | 3 | 2021-03-30T14:21:08.000Z | 2021-07-07T03:04:26.000Z | apps/users/urls.py | almazkun/akundotdev | 98b47925b948c920789c5acebad86944162bf53a | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from .views import AboutTemplateView
urlpatterns = [path("", AboutTemplateView.as_view(), name="about")]
| 19.571429 | 67 | 0.759124 |
c8879bded50ae8fbfe4e76e5d099e8ada2d7784b | 2,969 | py | Python | fedireads/broadcast.py | thricedotted/fedireads | a1fbba1ba31e569489378176b0894a0a8907c14c | [
"CC0-1.0"
] | null | null | null | fedireads/broadcast.py | thricedotted/fedireads | a1fbba1ba31e569489378176b0894a0a8907c14c | [
"CC0-1.0"
] | null | null | null | fedireads/broadcast.py | thricedotted/fedireads | a1fbba1ba31e569489378176b0894a0a8907c14c | [
"CC0-1.0"
] | 1 | 2021-01-30T22:38:20.000Z | 2021-01-30T22:38:20.000Z | ''' send out activitypub messages '''
from base64 import b64encode
from Crypto.PublicKey import RSA
from Crypto.Signature import pkcs1_15
from Crypto.Hash import SHA256
from datetime import datetime
import json
import requests
from fedireads import incoming
from fedireads.settings import DOMAIN
def get_recipients(us... | 32.988889 | 76 | 0.630852 |
c887c627a5de312187bb987f26d6bea4c3b72084 | 733 | py | Python | polls/views.py | druss16/danslist | ad06f8fa8df5936db7a60e9820f0c89a77f8879a | [
"MIT"
] | null | null | null | polls/views.py | druss16/danslist | ad06f8fa8df5936db7a60e9820f0c89a77f8879a | [
"MIT"
] | null | null | null | polls/views.py | druss16/danslist | ad06f8fa8df5936db7a60e9820f0c89a77f8879a | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from django.template import RequestContext, loader
from .models import Question
# Create your views here.
| 29.32 | 68 | 0.777626 |
c889096998408750f88d5b4c179ee06539614ee4 | 48,562 | py | Python | hawc_hal/HAL.py | torresramiro350/hawc_hal | 048536df22bdfa3ace2925e60d802beb76775849 | [
"BSD-3-Clause"
] | null | null | null | hawc_hal/HAL.py | torresramiro350/hawc_hal | 048536df22bdfa3ace2925e60d802beb76775849 | [
"BSD-3-Clause"
] | null | null | null | hawc_hal/HAL.py | torresramiro350/hawc_hal | 048536df22bdfa3ace2925e60d802beb76775849 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import division
from builtins import str
from builtins import range
from astropy.utils.misc import isiterable
from past.utils import old_div
import copy
import collections
import numpy as np
import healpy as hp
import astropy.units as u
import matplotlib.pyplot as plt
import matplotlib as mpl
from sci... | 38.20771 | 126 | 0.609942 |
c88aff50b9e6ce0d5c309be594a03b1f208a90db | 15,227 | py | Python | sshcustodian/sshcustodian.py | jkglasbrenner/sshcustodian | 870d1088f27e1528e27f94f55f2efad7dad32d5d | [
"MIT"
] | null | null | null | sshcustodian/sshcustodian.py | jkglasbrenner/sshcustodian | 870d1088f27e1528e27f94f55f2efad7dad32d5d | [
"MIT"
] | null | null | null | sshcustodian/sshcustodian.py | jkglasbrenner/sshcustodian | 870d1088f27e1528e27f94f55f2efad7dad32d5d | [
"MIT"
] | null | null | null | # File: sshcustodian/sshcustodian.py
# -*- coding: utf-8 -*-
# Python 2/3 Compatibility
from __future__ import (unicode_literals, division, absolute_import,
print_function)
from six.moves import filterfalse
"""
This module creates a subclass of the main Custodian class in the Custodian
project ... | 43.505714 | 80 | 0.568858 |
c88ca1454e3c43e792033b4722a580761e424d90 | 17,217 | py | Python | sherlock/__init__.py | akudelka/sherlock | 9e85f36c01e0cb1d495283f024423bc60c3f7a4e | [
"MIT"
] | 165 | 2015-01-12T09:09:19.000Z | 2022-03-14T11:26:23.000Z | sherlock/__init__.py | akudelka/sherlock | 9e85f36c01e0cb1d495283f024423bc60c3f7a4e | [
"MIT"
] | 35 | 2015-01-07T14:57:24.000Z | 2022-03-24T17:43:28.000Z | sherlock/__init__.py | akudelka/sherlock | 9e85f36c01e0cb1d495283f024423bc60c3f7a4e | [
"MIT"
] | 38 | 2015-03-11T09:10:05.000Z | 2022-01-17T11:29:38.000Z | '''
Sherlock: Distributed Locks with a choice of backend
====================================================
:mod:`sherlock` is a library that provides easy-to-use distributed inter-process
locks and also allows you to choose a backend of your choice for lock
synchronization.
|Build Status| |Coverage Status|
.. |Bu... | 34.228628 | 100 | 0.606319 |
c88d252547df6d3f79fae0aefc72512a6ebb61d4 | 7,199 | py | Python | misc.py | ChristophReich1996/Semantic_Pyramid_for_Image_Generation | 00e6e7787a5d90b9c09f50a5d7039cb9b5cd4509 | [
"MIT"
] | 46 | 2020-04-13T07:54:49.000Z | 2022-03-01T06:29:15.000Z | misc.py | ChristophReich1996/Semantic_Pyramid_for_Image_Generation | 00e6e7787a5d90b9c09f50a5d7039cb9b5cd4509 | [
"MIT"
] | 2 | 2020-07-27T15:11:09.000Z | 2021-04-04T10:58:03.000Z | misc.py | ChristophReich1996/Semantic_Pyramid_for_Image_Generation | 00e6e7787a5d90b9c09f50a5d7039cb9b5cd4509 | [
"MIT"
] | 5 | 2020-06-22T01:56:30.000Z | 2021-12-22T04:34:49.000Z | from typing import List, Tuple, Union
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import random
from skimage.draw import random_shapes
import os
import json
def get_masks_for_training(
mask_shapes: List[Tuple] =
[(1, 128, 128), (1, 64, 64), (1, 32, 32), (1, 1... | 44.99375 | 120 | 0.607862 |
c88f24e0c4f56b49a1514bbc5fcfcc00efd5e15c | 4,204 | py | Python | EasyMCDM/models/Irmo.py | qanastek/EasyMCDM | 7fa2e2dfe9397834ca9f50211ea2717a16785394 | [
"MIT"
] | 4 | 2022-03-05T20:51:38.000Z | 2022-03-15T17:10:22.000Z | EasyMCDM/models/Irmo.py | qanastek/EasyMCDM | 7fa2e2dfe9397834ca9f50211ea2717a16785394 | [
"MIT"
] | null | null | null | EasyMCDM/models/Irmo.py | qanastek/EasyMCDM | 7fa2e2dfe9397834ca9f50211ea2717a16785394 | [
"MIT"
] | 1 | 2022-03-08T13:45:22.000Z | 2022-03-08T13:45:22.000Z | import math
from typing import Dict, List, Tuple, Union
from EasyMCDM.models.MCDM import MCDM
# Instant-Runoff Multicriteria Optimization (IRMO)
| 37.873874 | 218 | 0.562559 |
c8919966f9b0c8cb69e17d80a649cb9b3d0b7138 | 2,046 | py | Python | ramp/estimators/r.py | kvh/ramp | 8618ce673e49b95f40c9659319c3cb72281dacac | [
"MIT"
] | 214 | 2015-01-01T07:42:25.000Z | 2022-03-08T08:57:49.000Z | ramp/estimators/r.py | Marigold/ramp | f9ddea84bc3b5097c0ddb8a3f71a0fce1775ba76 | [
"MIT"
] | 8 | 2020-05-19T20:15:40.000Z | 2020-05-19T20:15:41.000Z | ramp/estimators/r.py | Marigold/ramp | f9ddea84bc3b5097c0ddb8a3f71a0fce1775ba76 | [
"MIT"
] | 87 | 2015-01-13T19:25:15.000Z | 2021-05-16T10:40:05.000Z | import numpy as np
from rpy2.robjects import FloatVector
from rpy2.robjects.packages import importr
from rpy2 import robjects
stats = importr('stats')
base = importr('base')
| 29.652174 | 74 | 0.610948 |
c89234777cdd2b2357d8a397dcec12fefab43a56 | 1,138 | py | Python | tests/decorators/test_timer.py | ShaneMicro/azure-functions-python-library | f56564effbf291a27e1bd5751a38484af387bb7f | [
"MIT"
] | null | null | null | tests/decorators/test_timer.py | ShaneMicro/azure-functions-python-library | f56564effbf291a27e1bd5751a38484af387bb7f | [
"MIT"
] | 1 | 2022-03-02T11:49:02.000Z | 2022-03-02T11:49:02.000Z | tests/decorators/test_timer.py | ShaneMicro/azure-functions-python-library | f56564effbf291a27e1bd5751a38484af387bb7f | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import unittest
from azure.functions.decorators.constants import TIMER_TRIGGER
from azure.functions.decorators.core import BindingDirection, DataType
from azure.functions.decorators.timer import TimerTrigger
| 37.933333 | 70 | 0.598418 |
c895e6b35498811fbcaa8204ceff2eff7744a4b3 | 8,368 | py | Python | src/client.py | Da3dalu2/SimpleNetworkSimulator | 447bc099b35720ab8d6e8a9703bb2354f1f01cae | [
"MIT"
] | null | null | null | src/client.py | Da3dalu2/SimpleNetworkSimulator | 447bc099b35720ab8d6e8a9703bb2354f1f01cae | [
"MIT"
] | null | null | null | src/client.py | Da3dalu2/SimpleNetworkSimulator | 447bc099b35720ab8d6e8a9703bb2354f1f01cae | [
"MIT"
] | null | null | null | import socket
import threading
import time
from threading import Thread
import utilities as utils
import error_handling as check
BUFFER_SIZE = 1024
BROADCAST_MAC = "FF:FF:FF:FF:FF:FF"
| 32.30888 | 80 | 0.603848 |
c8962401f6f771809773c10b2765a3a3a3c92f1b | 2,569 | py | Python | great_expectations/rule_based_profiler/types/builder.py | afeld/great_expectations | ca2dc1f8951c727040d680b543aee91753c2c862 | [
"Apache-2.0"
] | 1 | 2022-01-26T18:51:29.000Z | 2022-01-26T18:51:29.000Z | great_expectations/rule_based_profiler/types/builder.py | afeld/great_expectations | ca2dc1f8951c727040d680b543aee91753c2c862 | [
"Apache-2.0"
] | null | null | null | great_expectations/rule_based_profiler/types/builder.py | afeld/great_expectations | ca2dc1f8951c727040d680b543aee91753c2c862 | [
"Apache-2.0"
] | 1 | 2021-11-29T07:37:28.000Z | 2021-11-29T07:37:28.000Z | import json
from great_expectations.core.util import convert_to_json_serializable
from great_expectations.types import SerializableDictDot, safe_deep_copy
from great_expectations.util import deep_filter_properties_iterable
| 42.114754 | 119 | 0.69093 |
c8963aa9c2fd19d072617ac3bc9699a61aa29633 | 449 | py | Python | Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py | lenovreg/Python_TietoEvry_Feb2022 | 1e37f524c1b78bb9752500261a953b812fc697db | [
"MIT"
] | null | null | null | Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py | lenovreg/Python_TietoEvry_Feb2022 | 1e37f524c1b78bb9752500261a953b812fc697db | [
"MIT"
] | null | null | null | Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py | lenovreg/Python_TietoEvry_Feb2022 | 1e37f524c1b78bb9752500261a953b812fc697db | [
"MIT"
] | null | null | null | # #1. Health check
# # Ask user for their temperature.
# # If the user enters below 35, then output "not too cold"
# # If 35 to 37 (inclusive), output "all right"
# # If the temperature over 37, then output "possible fever"
#
user_temp = float(input('What is your temperature?'))
if user_temp < 35:
print('not too ... | 32.071429 | 62 | 0.679287 |
c896cf21816f76cd01ad1bacb6b82f675af14297 | 12,510 | py | Python | services/core-api/tests/now_submissions/resources/test_application_resource.py | parc-jason/mds | 8f181a429442208a061ed72065b71e6c2bd0f76f | [
"Apache-2.0"
] | 25 | 2018-07-09T19:04:37.000Z | 2022-03-15T17:27:10.000Z | services/core-api/tests/now_submissions/resources/test_application_resource.py | parc-jason/mds | 8f181a429442208a061ed72065b71e6c2bd0f76f | [
"Apache-2.0"
] | 983 | 2018-04-25T20:08:07.000Z | 2022-03-31T21:45:20.000Z | services/core-api/tests/now_submissions/resources/test_application_resource.py | parc-jason/mds | 8f181a429442208a061ed72065b71e6c2bd0f76f | [
"Apache-2.0"
] | 58 | 2018-05-15T22:35:50.000Z | 2021-11-29T19:40:52.000Z | import json
from tests.factories import (NOWSubmissionFactory, MineFactory, NOWClientFactory,
NOWApplicationIdentityFactory)
| 55.110132 | 97 | 0.681455 |
c89c4416cb922696e6077b691fa44b4a364a4846 | 447 | py | Python | output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.non_positive_integer.schema_instance.nistschema_sv_iv_list_non_positive_integer_enumeration_2_xsd.nistschema_sv_iv_list_non_positive_integer_enumeration_2 import (
NistschemaSvIvListNonPositiveIntegerEnumeration2,
NistschemaSvIvListNonPositiveIntegerEnumeration2Type,
)
__a... | 44.7 | 201 | 0.888143 |
c89d84cb20f102af7452f0c152beca85a101d946 | 386 | py | Python | cache-basic.py | kurapikats/python-basics | 7b81e5e8de44186b573b74f05c78b56894df0ed7 | [
"MIT"
] | null | null | null | cache-basic.py | kurapikats/python-basics | 7b81e5e8de44186b573b74f05c78b56894df0ed7 | [
"MIT"
] | null | null | null | cache-basic.py | kurapikats/python-basics | 7b81e5e8de44186b573b74f05c78b56894df0ed7 | [
"MIT"
] | null | null | null | import time
cache = {}
print(cache_compute(1, 2))
print(cache_compute(3, 5))
print(cache_compute(3, 5))
print(cache_compute(6, 7))
print(cache_compute(1, 2))
| 14.846154 | 30 | 0.585492 |
c8a19d3ee1214101499b5145f53a93867a82f056 | 675 | py | Python | dl/src/CookieManager.py | PatrykCholewa/PI_Stored | 4ff4d72fe56281b76ddf7b759c19aabbce3c9899 | [
"MIT"
] | null | null | null | dl/src/CookieManager.py | PatrykCholewa/PI_Stored | 4ff4d72fe56281b76ddf7b759c19aabbce3c9899 | [
"MIT"
] | null | null | null | dl/src/CookieManager.py | PatrykCholewa/PI_Stored | 4ff4d72fe56281b76ddf7b759c19aabbce3c9899 | [
"MIT"
] | null | null | null | from datetime import datetime
import jwt
from src import ConfigManager
secret = ConfigManager.get_config("DL_COOKIE_SECRET_KEY")
secure = ConfigManager.get_config("APP_SECURE")
| 23.275862 | 58 | 0.708148 |
c8a2956bd7fb979e05d6c1af9814b3f364a7b696 | 2,403 | py | Python | printing/Spooler.py | mrlinqu/intsa_term_client | 596335da6dbdf7eb543b1dcf2c33bcc222aa3321 | [
"MIT"
] | null | null | null | printing/Spooler.py | mrlinqu/intsa_term_client | 596335da6dbdf7eb543b1dcf2c33bcc222aa3321 | [
"MIT"
] | 1 | 2020-11-07T12:44:56.000Z | 2020-11-07T12:46:52.000Z | printing/Spooler.py | mrlinqu/intsa_term_client | 596335da6dbdf7eb543b1dcf2c33bcc222aa3321 | [
"MIT"
] | null | null | null | # Copyright 2020 by Roman Khuramshin <mr.linqu@gmail.com>.
# All rights reserved.
# This file is part of the Intsa Term Client - X2Go terminal client for Windows,
# and is released under the "MIT License Agreement". Please see the LICENSE
# file that should have been included as part of this package.
import logging
i... | 28.607143 | 168 | 0.61881 |
c8a3493cfeb4dfbb80acc4a2be0aae2d1cb8c74f | 1,264 | py | Python | mytests/test_SimpleCalc.py | KishoreParihar/DemoPythonTest | f9dadbf6cfcd4e6877e31ca65851882f73234307 | [
"MIT"
] | null | null | null | mytests/test_SimpleCalc.py | KishoreParihar/DemoPythonTest | f9dadbf6cfcd4e6877e31ca65851882f73234307 | [
"MIT"
] | null | null | null | mytests/test_SimpleCalc.py | KishoreParihar/DemoPythonTest | f9dadbf6cfcd4e6877e31ca65851882f73234307 | [
"MIT"
] | null | null | null | import unittest
import sys
sys.path.append(".")
sys.path.insert(0, '..\\')
from calculator.simplecalculator import Calculator
if __name__ == '__main__':
unittest.main()
| 23.849057 | 58 | 0.606013 |
c8a47ee8db41845109ebaa2bf272e65a01b66623 | 2,683 | py | Python | argos/countdown.9s.py | solettitiger/countdown | c5df89c7d67984171de08508ef4433ea9d6fbbd1 | [
"MIT"
] | null | null | null | argos/countdown.9s.py | solettitiger/countdown | c5df89c7d67984171de08508ef4433ea9d6fbbd1 | [
"MIT"
] | null | null | null | argos/countdown.9s.py | solettitiger/countdown | c5df89c7d67984171de08508ef4433ea9d6fbbd1 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import datetime
import sys
import subprocess
import os
from playsound import playsound
# ******************************************************************
# Definitionen
# ******************************************************************
filename = 'countdown.txt'
audiof... | 26.83 | 151 | 0.561685 |
c8a59080304794abe4b7a5451fd69be502c0aee2 | 1,392 | py | Python | restapi/v1/serializers.py | asntech/jaspar | ae86731e8f197d6830e6d778835f218d4eb1b9e8 | [
"BSD-3-Clause"
] | 3 | 2017-11-20T23:03:20.000Z | 2020-02-15T19:32:23.000Z | restapi/v1/serializers.py | asntech/jaspar | ae86731e8f197d6830e6d778835f218d4eb1b9e8 | [
"BSD-3-Clause"
] | 3 | 2019-12-12T09:26:55.000Z | 2021-06-10T19:24:19.000Z | restapi/v1/serializers.py | asntech/jaspar | ae86731e8f197d6830e6d778835f218d4eb1b9e8 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
## Author: Aziz Khan
## License: GPL v3
## Copyright 2017 Aziz Khan <azez.khan__AT__gmail.com>
from rest_framework import serializers
from portal.models import Matrix, MatrixAnnotation
from django.http import HttpRequest
| 29 | 90 | 0.733477 |
c8a8f855a2d0fbd314903aae2f023f9e8c19884d | 5,043 | py | Python | multimodal_models/StackGAN_V2_PyTorch/models.py | kumayu0108/model-zoo | 4285779f6ff51fa1efb0625d67b428e90c343c0c | [
"MIT"
] | 43 | 2020-05-16T21:05:34.000Z | 2022-02-08T11:33:29.000Z | multimodal_models/StackGAN_V2_PyTorch/models.py | kumayu0108/model-zoo | 4285779f6ff51fa1efb0625d67b428e90c343c0c | [
"MIT"
] | 52 | 2020-05-14T16:18:08.000Z | 2021-11-02T19:13:47.000Z | multimodal_models/StackGAN_V2_PyTorch/models.py | kumayu0108/model-zoo | 4285779f6ff51fa1efb0625d67b428e90c343c0c | [
"MIT"
] | 69 | 2020-05-14T13:39:23.000Z | 2021-07-30T00:51:27.000Z | import torch
import torch.nn as nn
from generator_model import G1, G2
from helper_functions.Blocks import downBlock, Block3x3_leakRelu
from helper_functions.ret_image import Interpolate, condAugmentation
from helper_functions.initial_weights import weights_init
from helper_functions.losses import KLloss, custom_loss
fr... | 39.093023 | 78 | 0.615507 |
c8a9475637b6493e4ff65f91b1c3dca0e1d6f885 | 382 | py | Python | utils/agro_utils.py | TiagoMarta/data_fusion_Vineyard-Segmentation | de54e149d36027bb314b5890ea4a1e71ba472d17 | [
"Unlicense",
"MIT"
] | 3 | 2021-08-04T08:03:50.000Z | 2022-03-25T11:22:09.000Z | utils/agro_utils.py | TiagoMarta/data_fusion_Vineyard-Segmentation | de54e149d36027bb314b5890ea4a1e71ba472d17 | [
"Unlicense",
"MIT"
] | null | null | null | utils/agro_utils.py | TiagoMarta/data_fusion_Vineyard-Segmentation | de54e149d36027bb314b5890ea4a1e71ba472d17 | [
"Unlicense",
"MIT"
] | null | null | null | import numpy as np
def NDVI(nir,red):
'''
# https://eos.com/make-an-analysis/ndvi/
Inputs: nxm numpy arrays
NIR reflection in the near-infrared spectrum
RED reflection in the red range of the spectrum
'''
num = nir-red
dom = nir+red
ndvi = np.divide(num,dom)
ndvi[np... | 25.466667 | 57 | 0.609948 |
c8a98f7aadc1b3bec71524384698aed558c36091 | 3,805 | py | Python | generator/api/routes.py | horvathandris/phenoflow | d0109f3702bc180954051170a56e017af52636fb | [
"MIT"
] | null | null | null | generator/api/routes.py | horvathandris/phenoflow | d0109f3702bc180954051170a56e017af52636fb | [
"MIT"
] | null | null | null | generator/api/routes.py | horvathandris/phenoflow | d0109f3702bc180954051170a56e017af52636fb | [
"MIT"
] | null | null | null | from starlette.applications import Starlette
from starlette.responses import JSONResponse
from api import workflow
import oyaml as yaml
app = Starlette(debug=True)
| 57.651515 | 252 | 0.70276 |
c8adae8d9f3f33704f82f32bb3e323260ea0ba97 | 29,151 | py | Python | tccli/services/tsf/v20180326/help.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | tccli/services/tsf/v20180326/help.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | tccli/services/tsf/v20180326/help.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
DESC = "tsf-2018-03-26"
INFO = {
"DeletePublicConfig": {
"params": [
{
"name": "ConfigId",
"desc": "ID"
}
],
"desc": ""
},
"DescribeSimpleGroups": {
"params": [
{
"name": "GroupIdList",
"desc": "ID"
},
{
... | 18.567516 | 165 | 0.392028 |
c8b067f63a4c14a9b78ac5bf7aace3e8420c7a16 | 1,729 | py | Python | workflow_scripts/test_models.py | jcwchen/models | 2fd86acdd51037570e1daefa03873237b76bd5a6 | [
"MIT"
] | 1 | 2020-12-19T14:46:23.000Z | 2020-12-19T14:46:23.000Z | workflow_scripts/test_models.py | sumit6597/models | 2fd86acdd51037570e1daefa03873237b76bd5a6 | [
"MIT"
] | null | null | null | workflow_scripts/test_models.py | sumit6597/models | 2fd86acdd51037570e1daefa03873237b76bd5a6 | [
"MIT"
] | 1 | 2021-08-08T11:47:35.000Z | 2021-08-08T11:47:35.000Z | import onnx
from pathlib import Path
import subprocess
import sys
cwd_path = Path.cwd()
# obtain list of added or modified files in this PR
obtain_diff = subprocess.Popen(['git', 'diff', '--name-only', '--diff-filter=AM', 'origin/master', 'HEAD'],
cwd=cwd_path, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdoutp... | 35.285714 | 156 | 0.707924 |
c8b4dfd0fac657e7ac7e488ed975872bacfb263c | 25 | py | Python | manager/__init__.py | monocleface/viewer | 8ab47a9e846bd2716fe0208c34f33565513fc3f6 | [
"Apache-2.0"
] | 6 | 2020-02-28T21:18:16.000Z | 2020-03-13T16:45:57.000Z | manager/__init__.py | monocleface/viewer | 8ab47a9e846bd2716fe0208c34f33565513fc3f6 | [
"Apache-2.0"
] | 6 | 2020-02-28T12:42:52.000Z | 2020-03-16T03:49:09.000Z | manager/__init__.py | monocleface/viewer | 8ab47a9e846bd2716fe0208c34f33565513fc3f6 | [
"Apache-2.0"
] | 6 | 2020-03-05T13:04:25.000Z | 2020-03-13T16:46:03.000Z | from .utils import Config | 25 | 25 | 0.84 |
c8b5d127b254896268904720f95e3739d411d338 | 1,374 | py | Python | src/classifier/utils/create_data.py | maxscheijen/dutch-sentiment-classifier | 6b3149d906710fadc0b104a9f79ca389a7f5cba3 | [
"Apache-2.0"
] | null | null | null | src/classifier/utils/create_data.py | maxscheijen/dutch-sentiment-classifier | 6b3149d906710fadc0b104a9f79ca389a7f5cba3 | [
"Apache-2.0"
] | null | null | null | src/classifier/utils/create_data.py | maxscheijen/dutch-sentiment-classifier | 6b3149d906710fadc0b104a9f79ca389a7f5cba3 | [
"Apache-2.0"
] | null | null | null | import glob
import pandas as pd
from tqdm import tqdm
from classifier import config
| 28.625 | 68 | 0.54294 |
c8b602b1d86d1edc850b44d842ce6f3bb89f273d | 642 | py | Python | pip/setup.py | siphr/urdu-digit | 133fcea917ce4584c2f98b470f9e3063f9f03c99 | [
"MIT"
] | null | null | null | pip/setup.py | siphr/urdu-digit | 133fcea917ce4584c2f98b470f9e3063f9f03c99 | [
"MIT"
] | null | null | null | pip/setup.py | siphr/urdu-digit | 133fcea917ce4584c2f98b470f9e3063f9f03c99 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="urdu_digit",
version="0.0.17",
keywords=["urdu", "numeric", "digit", "converter"],
description="English to Urdu numeric digit converter.",
long_description=open('README.md').read(),
project_urls={
'Homepag... | 25.68 | 74 | 0.641745 |
c8b68cb341dae475cc25f2d74d8dcd06d0f58623 | 1,682 | py | Python | algorithms/intervals.py | calebperkins/algorithms | 9f4a029261160e6b12b8bedd53f0a0ebf541237a | [
"MIT"
] | null | null | null | algorithms/intervals.py | calebperkins/algorithms | 9f4a029261160e6b12b8bedd53f0a0ebf541237a | [
"MIT"
] | null | null | null | algorithms/intervals.py | calebperkins/algorithms | 9f4a029261160e6b12b8bedd53f0a0ebf541237a | [
"MIT"
] | null | null | null | import collections
Interval = collections.namedtuple("Interval", "start, end")
| 29 | 116 | 0.521998 |
c8bd12730bd20c4875906f949b15caeb99026f0f | 4,874 | py | Python | utils/visualization.py | yigitozgumus/Polimi_Thesis | 711c1edcf1fdb92fc6c15bf5ab1be141c13995c3 | [
"MIT"
] | 3 | 2019-07-27T14:00:42.000Z | 2020-01-17T17:07:51.000Z | utils/visualization.py | yigitozgumus/Polimi_Thesis | 711c1edcf1fdb92fc6c15bf5ab1be141c13995c3 | [
"MIT"
] | null | null | null | utils/visualization.py | yigitozgumus/Polimi_Thesis | 711c1edcf1fdb92fc6c15bf5ab1be141c13995c3 | [
"MIT"
] | 4 | 2019-10-22T02:58:26.000Z | 2020-10-06T09:59:26.000Z | import numpy as np
import matplotlib.pyplot as plt
| 34.083916 | 100 | 0.55437 |
c8c0726d584812a525a610e545b5c0960badaf74 | 18,223 | py | Python | tests/unit/core/tensorrt_loaders.py | ParikhKadam/NeMo | ee11f7c4666d410d91f9da33c61f4819ea625013 | [
"Apache-2.0"
] | 10 | 2020-03-17T08:32:06.000Z | 2021-04-19T19:03:50.000Z | tests/unit/core/tensorrt_loaders.py | dcmartin/NeMo | d2120a40bf23d3e38ff5677c2685c712f297e6b1 | [
"Apache-2.0"
] | 1 | 2020-06-11T00:54:42.000Z | 2020-06-11T00:54:42.000Z | tests/unit/core/tensorrt_loaders.py | dcmartin/NeMo | d2120a40bf23d3e38ff5677c2685c712f297e6b1 | [
"Apache-2.0"
] | 3 | 2020-03-10T05:10:07.000Z | 2020-12-08T01:33:35.000Z | # ! /usr/bin/python
# -*- coding: utf-8 -*-
# =============================================================================
# Copyright 2020 NVIDIA. 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 obta... | 43.70024 | 548 | 0.610492 |
c8c0d558d52b83f545c1d622f249b8f8181f6952 | 420 | py | Python | vstreamer_server/application/VideoStreamerServerApplication.py | artudi54/video-streamer | 66e5e722ed66abe5877488f177c0ac4f13325382 | [
"MIT"
] | 2 | 2019-10-08T10:49:52.000Z | 2021-10-01T11:26:31.000Z | vstreamer_server/application/VideoStreamerServerApplication.py | artudi54/video-streamer | 66e5e722ed66abe5877488f177c0ac4f13325382 | [
"MIT"
] | 1 | 2019-05-16T13:48:29.000Z | 2019-05-16T13:48:49.000Z | vstreamer_server/application/VideoStreamerServerApplication.py | artudi54/video-streamer | 66e5e722ed66abe5877488f177c0ac4f13325382 | [
"MIT"
] | 1 | 2019-10-08T10:49:56.000Z | 2019-10-08T10:49:56.000Z | import logging
import signal
from PySide2 import QtCore
import vstreamer_utils
| 28 | 62 | 0.754762 |
c8c12c77067e0a8b65aeb31d29a9acc363766542 | 2,345 | py | Python | serial_scripts/reset_config/test_reset_config.py | vkolli/5.0_contrail-test | 1793f169a94100400a1b2fafbad21daf5aa4d48a | [
"Apache-2.0"
] | 1 | 2017-06-13T04:42:34.000Z | 2017-06-13T04:42:34.000Z | serial_scripts/reset_config/test_reset_config.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | 1 | 2021-06-01T22:18:29.000Z | 2021-06-01T22:18:29.000Z | serial_scripts/reset_config/test_reset_config.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | null | null | null | #Define environment variable FABRIC_UTILS_PATH and provide path to fabric_utils before running
import time
import os
from contrail_fixtures import *
import testtools
from tcutils.commands import *
from fabric.context_managers import settings
from tcutils.wrappers import preposttest_wrapper
from tcutils.util import *
fr... | 40.431034 | 94 | 0.690405 |
c8c174e66db5ae93829e5da36ac5e18a48241662 | 15,382 | py | Python | server/services/wiki/pages/overview_service.py | hotosm/oeg-reporter | f0c3da80ba380df907a818db224e9ca2ae0018b3 | [
"BSD-2-Clause"
] | 1 | 2021-02-03T13:37:48.000Z | 2021-02-03T13:37:48.000Z | server/services/wiki/pages/overview_service.py | hotosm/oeg-reporter | f0c3da80ba380df907a818db224e9ca2ae0018b3 | [
"BSD-2-Clause"
] | 8 | 2020-07-16T23:17:51.000Z | 2020-10-14T20:40:00.000Z | server/services/wiki/pages/overview_service.py | hotosm/oeg-reporter | f0c3da80ba380df907a818db224e9ca2ae0018b3 | [
"BSD-2-Clause"
] | null | null | null | from server.services.wiki.pages.templates import OverviewPageTemplates
from server.services.wiki.pages.page_service import PageService
from server.services.wiki.mediawiki_service import MediaWikiService
from server.services.wiki.wiki_text_service import WikiTextService
from server.services.wiki.wiki_table_service impor... | 39.64433 | 88 | 0.594981 |
c8c21cc5ec4a4f6297ac9cc8b0615e326672a6bb | 414 | py | Python | App/migrations/0011_playlist_preferences.py | dlanghorne0428/StudioMusicPlayer | 54dabab896b96d90b68d6435edfd52fe6a866bc2 | [
"MIT"
] | null | null | null | App/migrations/0011_playlist_preferences.py | dlanghorne0428/StudioMusicPlayer | 54dabab896b96d90b68d6435edfd52fe6a866bc2 | [
"MIT"
] | 44 | 2022-01-21T01:33:59.000Z | 2022-03-26T23:35:25.000Z | App/migrations/0011_playlist_preferences.py | dlanghorne0428/StudioMusicPlayer | 54dabab896b96d90b68d6435edfd52fe6a866bc2 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-03-06 02:23
from django.db import migrations, models
| 21.789474 | 76 | 0.628019 |
c8c3d449685f28e78f767aafb617c4bfc465febb | 2,779 | py | Python | emerald/database_operations.py | femmerling/EmeraldBox | 68f5776577f0c929ca1f5ba23f1dfe480f813037 | [
"MIT"
] | 17 | 2015-01-15T21:41:16.000Z | 2021-01-10T15:34:09.000Z | emerald/database_operations.py | femmerling/EmeraldBox | 68f5776577f0c929ca1f5ba23f1dfe480f813037 | [
"MIT"
] | null | null | null | emerald/database_operations.py | femmerling/EmeraldBox | 68f5776577f0c929ca1f5ba23f1dfe480f813037 | [
"MIT"
] | 5 | 2015-02-07T02:41:18.000Z | 2016-11-11T02:50:21.000Z | import imp
import os.path
from app import db
from migrate.versioning import api
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
# end of file | 41.477612 | 144 | 0.77366 |
c8c574de241b0c8199ec3be2586cfc5532691047 | 5,253 | py | Python | xmuda/eval_sem_pcd.py | anhquancao/xmuda-extend | 4b670ec2f6766e3a624e81dbe5d97b209c1c4f76 | [
"Apache-2.0"
] | null | null | null | xmuda/eval_sem_pcd.py | anhquancao/xmuda-extend | 4b670ec2f6766e3a624e81dbe5d97b209c1c4f76 | [
"Apache-2.0"
] | null | null | null | xmuda/eval_sem_pcd.py | anhquancao/xmuda-extend | 4b670ec2f6766e3a624e81dbe5d97b209c1c4f76 | [
"Apache-2.0"
] | null | null | null | from xmuda.models.SSC2d_proj3d2d import SSC2dProj3d2d
from xmuda.data.NYU.nyu_dm import NYUDataModule
from xmuda.data.semantic_kitti.kitti_dm import KittiDataModule
from xmuda.common.utils.sscMetrics import SSCMetrics
from xmuda.data.NYU.params import class_relation_freqs as NYU_class_relation_freqs, class_freq_1_4 as ... | 44.897436 | 234 | 0.663811 |
c8c6f7ca2165cf621b2f2448c66168d6e16e7af2 | 9,695 | py | Python | hnn/src/apps/dataparallel.py | anlewy/mt-dnn | eeb6f01ce0630e61a52b8c9c6f7537cd34978e45 | [
"MIT"
] | 2,075 | 2019-02-25T08:54:38.000Z | 2022-03-31T10:44:50.000Z | hnn/src/apps/dataparallel.py | anlewy/mt-dnn | eeb6f01ce0630e61a52b8c9c6f7537cd34978e45 | [
"MIT"
] | 176 | 2019-03-12T02:58:42.000Z | 2022-03-22T20:17:23.000Z | hnn/src/apps/dataparallel.py | anlewy/mt-dnn | eeb6f01ce0630e61a52b8c9c6f7537cd34978e45 | [
"MIT"
] | 437 | 2019-03-11T21:36:21.000Z | 2022-03-29T02:40:53.000Z | # Author: penhe@microsoft.com
# Date: 05/30/2019
#
""" Data parallel module
"""
from collections import OrderedDict
import numpy as np
import torch
from torch.cuda.comm import broadcast_coalesced
from torch.cuda.comm import reduce_add_coalesced
from torch.nn.parallel import parallel_apply
from torch.nn.parallel.scatte... | 35.643382 | 139 | 0.664569 |
c8c808427fd949238223a24b72518b4c7f83bcd8 | 1,190 | py | Python | mall/serializers.py | turing0/mallProject | cc56d25c51fa03584f99a633a6f606622cfb1e5d | [
"MIT"
] | null | null | null | mall/serializers.py | turing0/mallProject | cc56d25c51fa03584f99a633a6f606622cfb1e5d | [
"MIT"
] | null | null | null | mall/serializers.py | turing0/mallProject | cc56d25c51fa03584f99a633a6f606622cfb1e5d | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import User
from .models import Product
from django.contrib.auth import get_user_model
| 36.060606 | 92 | 0.657143 |
c8ca44f18c6c1244335778442d0b31143cb496f7 | 811 | py | Python | ch02/multiSinal_button.py | you-know-who-2017/pythonQT | a713bfacbb53c5f23e9d7f61dc44592335a24423 | [
"MIT"
] | null | null | null | ch02/multiSinal_button.py | you-know-who-2017/pythonQT | a713bfacbb53c5f23e9d7f61dc44592335a24423 | [
"MIT"
] | null | null | null | ch02/multiSinal_button.py | you-know-who-2017/pythonQT | a713bfacbb53c5f23e9d7f61dc44592335a24423 | [
"MIT"
] | null | null | null | '''
Author: geekli
Date: 2020-12-27 10:38:46
LastEditTime: 2020-12-27 10:40:44
LastEditors: your name
Description:
FilePath: \pythonQT\ch02\multiSinal_button.py
'''
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton
if __name__ == '__main__':
app = QApplication(sys.argv)
demo = Demo()... | 25.34375 | 62 | 0.630086 |
c8cbd8c6d4128ec1fba81659c9414d125347bfa3 | 105 | py | Python | archive/2021-03-7/results/notebooks/advb_article/get_hmod_sample.py | CambridgeSemiticsLab/BH_time_collocations | 2d1864b6e9cd26624c769ee1e970d69d19da7fbf | [
"CC-BY-4.0"
] | 5 | 2019-06-19T19:42:21.000Z | 2021-04-20T22:43:45.000Z | archive/2021-03-7/results/notebooks/advb_article/get_hmod_sample.py | CambridgeSemiticsLab/BHTenseAndAspect | 2d1864b6e9cd26624c769ee1e970d69d19da7fbf | [
"CC-BY-4.0"
] | 2 | 2020-02-25T10:19:40.000Z | 2020-03-13T15:29:01.000Z | archive/2021-03-7/results/notebooks/advb_article/get_hmod_sample.py | CambridgeSemiticsLab/BHTenseAndAspect | 2d1864b6e9cd26624c769ee1e970d69d19da7fbf | [
"CC-BY-4.0"
] | null | null | null | from __main__ import *
hm_df = functs_df[~((functs_df.head_type == 'prep') & (functs_df.suffix))].copy()
| 35 | 81 | 0.695238 |
c8cc6707f00bfb68eb5be0a694507e862c881eb3 | 1,123 | py | Python | autodc/components/hpo_optimizer/hpo_optimizer_builder.py | dingdian110/AutoDC | f5ccca6bea993bcff3e804fb859e8b25ae020b5c | [
"MIT"
] | null | null | null | autodc/components/hpo_optimizer/hpo_optimizer_builder.py | dingdian110/AutoDC | f5ccca6bea993bcff3e804fb859e8b25ae020b5c | [
"MIT"
] | null | null | null | autodc/components/hpo_optimizer/hpo_optimizer_builder.py | dingdian110/AutoDC | f5ccca6bea993bcff3e804fb859e8b25ae020b5c | [
"MIT"
] | null | null | null | from autodc.components.hpo_optimizer.smac_optimizer import SMACOptimizer
from autodc.components.hpo_optimizer.mfse_optimizer import MfseOptimizer
from autodc.components.hpo_optimizer.bohb_optimizer import BohbOptimizer
from autodc.components.hpo_optimizer.tpe_optimizer import TPEOptimizer
| 46.791667 | 86 | 0.688335 |
c8ccf268808a95f71f44af0d1f8a0dcac8ac8aa6 | 835 | py | Python | record_voice.py | y1255018/voice-printer | cea33ae978a0709346bdbaf009f4fa07a97c7463 | [
"MIT"
] | null | null | null | record_voice.py | y1255018/voice-printer | cea33ae978a0709346bdbaf009f4fa07a97c7463 | [
"MIT"
] | 1 | 2020-05-10T12:57:46.000Z | 2020-05-10T12:59:27.000Z | record_voice.py | y1255018/voice-printer | cea33ae978a0709346bdbaf009f4fa07a97c7463 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys, select, termios,tty
import os
if __name__ == "__main__":
main() | 19.880952 | 50 | 0.568862 |
c8cd1764a3562bbf6dce2fed67c34407e35a1349 | 1,516 | py | Python | findpeak.py | BartMassey/pdx-cs-sound | 52f671f155f71eb75a635d9b125f9324889dd329 | [
"MIT"
] | null | null | null | findpeak.py | BartMassey/pdx-cs-sound | 52f671f155f71eb75a635d9b125f9324889dd329 | [
"MIT"
] | null | null | null | findpeak.py | BartMassey/pdx-cs-sound | 52f671f155f71eb75a635d9b125f9324889dd329 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# Copyright (c) 2019 Bart Massey
# [This program is licensed under the "MIT License"]
# Please see the file LICENSE in the source
# distribution of this software for license terms.
# Find maximum and minimum sample in an audio file.
import sys
import wave as wav
# Get the signal file.
wavfile = wa... | 25.694915 | 56 | 0.638522 |
c8ce16cc98ba530c9d0d89640e062797670ba6af | 275 | py | Python | thywill_apps/src/thywill_apps/test/proof_of_concept/__init__.py | exratione/thywill-python | 2078d6f6fc12034eac60a7cc30bf2bc0d27a8732 | [
"MIT"
] | 1 | 2015-04-26T19:49:35.000Z | 2015-04-26T19:49:35.000Z | thywill_apps/src/thywill_apps/test/proof_of_concept/__init__.py | exratione/thywill-python | 2078d6f6fc12034eac60a7cc30bf2bc0d27a8732 | [
"MIT"
] | null | null | null | thywill_apps/src/thywill_apps/test/proof_of_concept/__init__.py | exratione/thywill-python | 2078d6f6fc12034eac60a7cc30bf2bc0d27a8732 | [
"MIT"
] | null | null | null | '''
A very simple test application to exercise a round trip of messages through the thywill system.
This also illustrates the bare, bare minimum implementation of the 'thywill_interface.py' module -
all it does is echo back incoming messages to the client who sent them.
''' | 45.833333 | 98 | 0.789091 |
c8ce9069c002bb7867b82767bde341a14df75d08 | 104 | py | Python | integration/tests/error_assert_variable.py | youhavethewrong/hurl | 91cc14882a5f1ef7fa86be09a9f5581cef680559 | [
"Apache-2.0"
] | 1,013 | 2020-08-27T12:38:48.000Z | 2022-03-31T23:12:23.000Z | integration/tests/error_assert_variable.py | youhavethewrong/hurl | 91cc14882a5f1ef7fa86be09a9f5581cef680559 | [
"Apache-2.0"
] | 217 | 2020-08-31T11:18:10.000Z | 2022-03-30T17:50:30.000Z | integration/tests/error_assert_variable.py | youhavethewrong/hurl | 91cc14882a5f1ef7fa86be09a9f5581cef680559 | [
"Apache-2.0"
] | 54 | 2020-09-02T09:41:06.000Z | 2022-03-19T15:33:05.000Z | from tests import app
| 14.857143 | 36 | 0.721154 |
c8d09ce36295ecfe93aeeecfaa8a003ce925b428 | 6,979 | py | Python | src/jk_sysinfo/get_proc_cpu_info.py | jkpubsrc/python-module-jk-sysinfo | 583c9e5d10f64a722ffa794d081aaf94354ba4fb | [
"Apache-1.1"
] | null | null | null | src/jk_sysinfo/get_proc_cpu_info.py | jkpubsrc/python-module-jk-sysinfo | 583c9e5d10f64a722ffa794d081aaf94354ba4fb | [
"Apache-1.1"
] | null | null | null | src/jk_sysinfo/get_proc_cpu_info.py | jkpubsrc/python-module-jk-sysinfo | 583c9e5d10f64a722ffa794d081aaf94354ba4fb | [
"Apache-1.1"
] | null | null | null |
import typing
from jk_cachefunccalls import cacheCalls
from jk_cmdoutputparsinghelper import ValueParser_ByteWithUnit
from .parsing_utils import *
from .invoke_utils import run
#import jk_json
_parserColonKVP = ParseAtFirstDelimiter(delimiter=":", valueCanBeWrappedInDoubleQuotes=False, keysReplaceSpacesWithUnders... | 29.572034 | 612 | 0.71271 |
c8d14c78402ef6d14f3e0943706f524623b640ce | 900 | py | Python | src/telegram/telegram.py | timepieces141/refactored-telegram | 02dce4b1273afb5fd8b80cbdc64a560dc75dbeec | [
"MIT"
] | null | null | null | src/telegram/telegram.py | timepieces141/refactored-telegram | 02dce4b1273afb5fd8b80cbdc64a560dc75dbeec | [
"MIT"
] | null | null | null | src/telegram/telegram.py | timepieces141/refactored-telegram | 02dce4b1273afb5fd8b80cbdc64a560dc75dbeec | [
"MIT"
] | null | null | null | '''
This module provides the Telegram.
'''
| 20.930233 | 61 | 0.564444 |
c8d1af14aa978ccc8ecf4f4ebec0ffa36d951d1c | 345 | py | Python | test/test_report.py | aymatveev/testing_framework | 3e522d23b46ddb27b3b389210c244aaee5c3370e | [
"MIT"
] | null | null | null | test/test_report.py | aymatveev/testing_framework | 3e522d23b46ddb27b3b389210c244aaee5c3370e | [
"MIT"
] | null | null | null | test/test_report.py | aymatveev/testing_framework | 3e522d23b46ddb27b3b389210c244aaee5c3370e | [
"MIT"
] | null | null | null | from testing_framework.report import report
from typing import Tuple
import html | 23 | 62 | 0.695652 |
c8d1c681c7ce88bcb176a7a0b8c693c830a7bc65 | 160 | py | Python | Python/mixedfractions/mixedfractions.py | rvrheenen/OpenKattis | 7fd59fcb54e86cdf10f56c580c218c62e584f391 | [
"MIT"
] | 12 | 2016-10-03T20:43:43.000Z | 2021-06-12T17:18:42.000Z | Python/mixedfractions/mixedfractions.py | rvrheenen/OpenKattis | 7fd59fcb54e86cdf10f56c580c218c62e584f391 | [
"MIT"
] | null | null | null | Python/mixedfractions/mixedfractions.py | rvrheenen/OpenKattis | 7fd59fcb54e86cdf10f56c580c218c62e584f391 | [
"MIT"
] | 10 | 2017-11-14T19:56:37.000Z | 2021-02-02T07:39:57.000Z | while(True):
inp = [int(x) for x in input().split()]
if inp[0] == 0 and inp[1] == 0:
break
print(inp[0]//inp[1], inp[0]%inp[1], "/", inp[1]) | 32 | 53 | 0.48125 |
c8d23bd00fcfedf98199c38fb1e64ea94cbde637 | 4,480 | py | Python | qr_rover_lost_comms/src/qr_rover_lost_comms/qr_rover_lost_comms.py | QuantumRoboticsURC/qrteam | bb28f4ad82eab6fb0706be13f8571e0b3261641e | [
"MIT"
] | null | null | null | qr_rover_lost_comms/src/qr_rover_lost_comms/qr_rover_lost_comms.py | QuantumRoboticsURC/qrteam | bb28f4ad82eab6fb0706be13f8571e0b3261641e | [
"MIT"
] | null | null | null | qr_rover_lost_comms/src/qr_rover_lost_comms/qr_rover_lost_comms.py | QuantumRoboticsURC/qrteam | bb28f4ad82eab6fb0706be13f8571e0b3261641e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import time
import rospy
import subprocess
import actionlib
from std_msgs.msg import Float32
from sensor_msgs.msg import Joy
from geometry_msgs.msg import Twist, PoseWithCovarianceStamped
from actionlib_msgs.msg import GoalStatus, GoalStatusArray
from move_base_msgs.msg import MoveBase... | 39.646018 | 99 | 0.59375 |
c8d264727c0faf5a872f18da939f483862ce785c | 108 | py | Python | backend/application/contracts/schemas/__init__.py | uesleicarvalhoo/Ecommerce | 1d8d0f0c522dcd27fd90e315989b6fa93caf62b8 | [
"MIT"
] | null | null | null | backend/application/contracts/schemas/__init__.py | uesleicarvalhoo/Ecommerce | 1d8d0f0c522dcd27fd90e315989b6fa93caf62b8 | [
"MIT"
] | null | null | null | backend/application/contracts/schemas/__init__.py | uesleicarvalhoo/Ecommerce | 1d8d0f0c522dcd27fd90e315989b6fa93caf62b8 | [
"MIT"
] | null | null | null | from backend.domain.contracts import NewClient, NewOrder, NewOrderItem
from .new_product import NewProduct
| 27 | 70 | 0.851852 |
c8d5d6f27303f0d53ce075025843560499c32f81 | 508 | py | Python | backend/swagger_server/helpers/_add_audit_entry.py | Lend88/libresign | 9537f39a696fa5f3433052406329d77d528b6cf9 | [
"MIT"
] | 6 | 2019-01-29T05:58:37.000Z | 2021-11-02T22:47:02.000Z | backend/swagger_server/helpers/_add_audit_entry.py | Lend88/libresign | 9537f39a696fa5f3433052406329d77d528b6cf9 | [
"MIT"
] | 9 | 2020-09-09T04:53:01.000Z | 2022-03-08T22:52:18.000Z | backend/swagger_server/helpers/_add_audit_entry.py | Lend88/libresign | 9537f39a696fa5f3433052406329d77d528b6cf9 | [
"MIT"
] | 4 | 2019-01-29T07:38:55.000Z | 2021-10-16T21:06:42.000Z |
from uuid import UUID
import json
from ..mappings import *
def add_doc_audit_entry(session, doc_id, status, data):
""""Add an audit entry, requires that a commit
be run on the session afterwards
"""
if not isinstance(doc_id, UUID):
raise ValueError("Expecting UUID")
if not isinstanc... | 22.086957 | 55 | 0.65748 |
c8d758a027414f97b213413022804a7b0f68fe28 | 523 | py | Python | version.py | Jin-Tao-208/web_science_coursework | bb4ab2226b70e7b0f7bbef40ceb002900e757a31 | [
"MIT"
] | null | null | null | version.py | Jin-Tao-208/web_science_coursework | bb4ab2226b70e7b0f7bbef40ceb002900e757a31 | [
"MIT"
] | null | null | null | version.py | Jin-Tao-208/web_science_coursework | bb4ab2226b70e7b0f7bbef40ceb002900e757a31 | [
"MIT"
] | null | null | null | # versions of libraries used
import sys
import tweepy
import numpy as np
import pymongo
import emoji
import nltk.tokenize
import requests
print("Python version:{}".format(sys.version))
print("tweepy version:{}".format(tweepy.__version__))
print("pymongo version:{}".format(pymongo.__version__))
print("emoji... | 29.055556 | 58 | 0.745698 |
c8d9772ef30de66f59d67a0dc784ccc67d52e59f | 94 | py | Python | python3/binary.py | eiadshahtout/Python | b2406b0806bc55a9d8f5482a304a8d6968249018 | [
"MIT"
] | null | null | null | python3/binary.py | eiadshahtout/Python | b2406b0806bc55a9d8f5482a304a8d6968249018 | [
"MIT"
] | null | null | null | python3/binary.py | eiadshahtout/Python | b2406b0806bc55a9d8f5482a304a8d6968249018 | [
"MIT"
] | null | null | null |
count_ones(20) | 15.666667 | 27 | 0.712766 |
c8d9edb95baf53d14122148e741bd4d9e71e6992 | 6,968 | py | Python | adaboost.py | xxxzhi/AdaBoostClassifier | e5161cad03bdeb1c353b1c06dc32752a34c160d3 | [
"Apache-2.0"
] | 1 | 2019-03-15T03:10:08.000Z | 2019-03-15T03:10:08.000Z | adaboost.py | xxxzhi/AdaBoostClassifier | e5161cad03bdeb1c353b1c06dc32752a34c160d3 | [
"Apache-2.0"
] | null | null | null | adaboost.py | xxxzhi/AdaBoostClassifier | e5161cad03bdeb1c353b1c06dc32752a34c160d3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import dbm
from sklearn.datasets import load_iris
from classifer.base import BaseClassifier
from classifer.decision_tree import DecisionTreeClassifier
import numpy as np
def test():
n_classes = 3
plot_colors = "bry"
plot_step = 0.02
# Load data
iris = ... | 28.325203 | 104 | 0.550373 |
c8da9080a11e6c113c5b2a18202d6e7d74fba286 | 4,942 | py | Python | bioinfo/assembly/overlap.py | sohyongsheng/sequence_assembly | f2dea763da447f09f49de8fbf3ceaad8ed3e0559 | [
"MIT"
] | 1 | 2022-02-02T07:49:58.000Z | 2022-02-02T07:49:58.000Z | bioinfo/assembly/overlap.py | sohyongsheng/sequence_assembly | f2dea763da447f09f49de8fbf3ceaad8ed3e0559 | [
"MIT"
] | null | null | null | bioinfo/assembly/overlap.py | sohyongsheng/sequence_assembly | f2dea763da447f09f49de8fbf3ceaad8ed3e0559 | [
"MIT"
] | null | null | null | import numpy as np
from bioinfo.assembly.errors import InvalidPair
from bioinfo.molecules.sequence import Sequence
| 31.679487 | 68 | 0.474909 |
c8dab9e9589a6e0d7ec3775c63cd68cd42f91ee4 | 857 | py | Python | models/operations.py | NikolayXHD/tinkoff-api-python | 4a4b71f7af1d752b8566299c058b712b513fa92f | [
"MIT"
] | null | null | null | models/operations.py | NikolayXHD/tinkoff-api-python | 4a4b71f7af1d752b8566299c058b712b513fa92f | [
"MIT"
] | null | null | null | models/operations.py | NikolayXHD/tinkoff-api-python | 4a4b71f7af1d752b8566299c058b712b513fa92f | [
"MIT"
] | null | null | null | from __future__ import annotations
from . import _base
| 25.205882 | 69 | 0.611435 |
c8dad2fb3e34935d8ee2d55f042a5e204873fdf4 | 187 | py | Python | tests/IT/fixtures/test_fixture_nested.py | testandconquer/pytest-conquer | da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05 | [
"MIT"
] | null | null | null | tests/IT/fixtures/test_fixture_nested.py | testandconquer/pytest-conquer | da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05 | [
"MIT"
] | 5 | 2018-12-27T02:52:01.000Z | 2019-01-02T01:52:55.000Z | tests/IT/fixtures/test_fixture_nested.py | testandconquer/pytest-conquer | da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05 | [
"MIT"
] | null | null | null | import pytest
def test_with_fixture(fixture2):
assert fixture2 == 2
| 11.6875 | 32 | 0.71123 |
c8e095e4b5a713605e60ac5cfbe8f9beb652c2f1 | 390 | py | Python | search.py | kanttouchthis/clip-search | 463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1 | [
"MIT"
] | 1 | 2021-10-12T12:15:00.000Z | 2021-10-12T12:15:00.000Z | search.py | kanttouchthis/clip-search | 463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1 | [
"MIT"
] | null | null | null | search.py | kanttouchthis/clip-search | 463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1 | [
"MIT"
] | 1 | 2021-11-20T14:51:11.000Z | 2021-11-20T14:51:11.000Z | from searcher import CLIPSearcher
from utils import get_args
if __name__ == "__main__":
args = get_args()
cs = CLIPSearcher(device=args.device, store_path=args.store_path)
cs.load_dir(args.dir, save_every=args.save_every, recursive=args.recursive, load_new=(not args.dont_load_new))
cs.search(texts=args... | 43.333333 | 114 | 0.769231 |
c8e2a3f8d1524fcc6efb93afc74fa20ef2432c75 | 2,049 | py | Python | gemd/entity/template/has_property_templates.py | CitrineInformatics/gemd-python | 4f80045c1b481269c7451f6a205755c22093eb74 | [
"Apache-2.0"
] | 7 | 2020-04-02T11:11:09.000Z | 2022-02-05T23:19:51.000Z | gemd/entity/template/has_property_templates.py | CitrineInformatics/gemd-python | 4f80045c1b481269c7451f6a205755c22093eb74 | [
"Apache-2.0"
] | 24 | 2020-04-22T16:55:09.000Z | 2022-03-30T20:44:39.000Z | gemd/entity/template/has_property_templates.py | CitrineInformatics/gemd-python | 4f80045c1b481269c7451f6a205755c22093eb74 | [
"Apache-2.0"
] | 3 | 2020-05-08T00:50:02.000Z | 2020-12-19T00:48:56.000Z | """For entities that have a property template."""
from gemd.entity.link_by_uid import LinkByUID
from gemd.entity.setters import validate_list
from gemd.entity.template.base_template import BaseTemplate
from gemd.entity.template.property_template import PropertyTemplate
from gemd.entity.bounds.base_bounds import BaseBou... | 32.52381 | 84 | 0.625671 |
c8e3e5f641575e46034c6e7d21d6b9a28bd02474 | 1,547 | py | Python | app/main/forms.py | james-muriithi/blog | e653f2fbb3c1e5a873c393b4985cc12d726e451c | [
"Unlicense"
] | null | null | null | app/main/forms.py | james-muriithi/blog | e653f2fbb3c1e5a873c393b4985cc12d726e451c | [
"Unlicense"
] | null | null | null | app/main/forms.py | james-muriithi/blog | e653f2fbb3c1e5a873c393b4985cc12d726e451c | [
"Unlicense"
] | null | null | null | from app.models import Subscriber
from flask_wtf import FlaskForm
from wtforms import TextAreaField, StringField, IntegerField, EmailField
from wtforms.validators import InputRequired, ValidationError
from flask import flash
# comment form
# subscriber form | 40.710526 | 76 | 0.728507 |
c8e4d42dd8ef4d4d14c2794784ca0f4e4747b37c | 278 | py | Python | miner/config.py | czhang-nbai/swan | 03a6ade93d9b8b193bd05bf851779784eb2ffde5 | [
"MIT"
] | 6 | 2021-02-19T02:36:06.000Z | 2021-03-20T09:38:17.000Z | miner/config.py | czhang-nbai/swan | 03a6ade93d9b8b193bd05bf851779784eb2ffde5 | [
"MIT"
] | 27 | 2021-01-13T06:43:44.000Z | 2021-05-12T04:55:28.000Z | miner/config.py | czhang-nbai/swan | 03a6ade93d9b8b193bd05bf851779784eb2ffde5 | [
"MIT"
] | 7 | 2021-01-26T04:50:11.000Z | 2021-03-04T22:26:59.000Z | import toml
| 21.384615 | 55 | 0.694245 |
c8e6c52bd4d19fdf314e6096b12ca3b0f03e5a63 | 3,214 | py | Python | godaddy_dns.py | JohnMcSpedon/GoDaddy_DNS_migrator | e7439616f64a446254e4df05db115aaa0206691e | [
"MIT"
] | 4 | 2021-03-01T18:28:34.000Z | 2021-03-11T12:20:16.000Z | godaddy_dns.py | JohnMcSpedon/GoDaddy_DNS_migrator | e7439616f64a446254e4df05db115aaa0206691e | [
"MIT"
] | null | null | null | godaddy_dns.py | JohnMcSpedon/GoDaddy_DNS_migrator | e7439616f64a446254e4df05db115aaa0206691e | [
"MIT"
] | null | null | null | """
Retrieve GoDaddy DNS settings via their developer API
See also:
https://developer.godaddy.com/doc/endpoint/domains#/
"""
import os
import time
from pprint import pprint
from typing import List
import requests
import credential_loaders
BASE_URL = "https://api.godaddy.com"
# You can easily replace these with... | 32.795918 | 120 | 0.671749 |
c8e80bc7bd958f10a7a1f279ed0d99283b77f722 | 1,184 | py | Python | preprocessing.py | Alloooshe/facelib_modular_face_recognition_pipline | 0313214b6f919e49e84235c1a6a4a4838b813e73 | [
"MIT"
] | 10 | 2019-12-29T13:38:56.000Z | 2021-03-15T07:21:52.000Z | preprocessing.py | Alloooshe/facelib_modular_face_recognition_pipline | 0313214b6f919e49e84235c1a6a4a4838b813e73 | [
"MIT"
] | 1 | 2021-03-15T07:45:45.000Z | 2021-03-17T11:10:53.000Z | preprocessing.py | Alloooshe/facelib_modular_face_recognition_pipline | 0313214b6f919e49e84235c1a6a4a4838b813e73 | [
"MIT"
] | 2 | 2020-05-03T08:33:39.000Z | 2021-02-06T16:49:54.000Z | import cv2
import numpy as np
| 28.878049 | 71 | 0.579392 |
c8e8ef9bc1df23fffd3b87a416935aa12a7c1e19 | 214 | py | Python | app/database/pronto_soccorso.py | nyxgear/PSD-e-service-pronto-soccorso | 92eb0586c2cfb12a844a106b71911c80e8e3e57b | [
"MIT"
] | null | null | null | app/database/pronto_soccorso.py | nyxgear/PSD-e-service-pronto-soccorso | 92eb0586c2cfb12a844a106b71911c80e8e3e57b | [
"MIT"
] | null | null | null | app/database/pronto_soccorso.py | nyxgear/PSD-e-service-pronto-soccorso | 92eb0586c2cfb12a844a106b71911c80e8e3e57b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .tables.pronto_soccorsi import table
| 14.266667 | 41 | 0.696262 |
c8ea55c5455ae4d69b07f53ce37792d7f4a82837 | 132 | py | Python | 3_binary_tree/__init__.py | freshklauser/LeeCodeSummary | d9d776ddfc44fee844123b848d43a78e9ba4117e | [
"MIT"
] | null | null | null | 3_binary_tree/__init__.py | freshklauser/LeeCodeSummary | d9d776ddfc44fee844123b848d43a78e9ba4117e | [
"MIT"
] | null | null | null | 3_binary_tree/__init__.py | freshklauser/LeeCodeSummary | d9d776ddfc44fee844123b848d43a78e9ba4117e | [
"MIT"
] | 1 | 2021-11-18T01:58:29.000Z | 2021-11-18T01:58:29.000Z | # -*- coding: utf-8 -*-
# @Author : Administrator
# @DateTime : 2021/10/17 20:40
# @FileName : __init__.py
# @SoftWare : PyCharm
| 18.857143 | 30 | 0.621212 |
c8ebd9a417dcbfc90f2665cef2e143f107c15986 | 497 | py | Python | covid_19_stat.py | pavelkalinchuk/api | 3b2eccbb09b012ac2c841dd30c44a285a8f5bdc2 | [
"Apache-2.0"
] | null | null | null | covid_19_stat.py | pavelkalinchuk/api | 3b2eccbb09b012ac2c841dd30c44a285a8f5bdc2 | [
"Apache-2.0"
] | null | null | null | covid_19_stat.py | pavelkalinchuk/api | 3b2eccbb09b012ac2c841dd30c44a285a8f5bdc2 | [
"Apache-2.0"
] | null | null | null | import requests
from datetime import date, timedelta
today = date.today()
yesterday = today - timedelta(days=1)
country = "Russia"
endpoint = f"https://api.covid19api.com/country/{country}/status/confirmed"
params = {"from": str(yesterday), "to": str(today)}
response = requests.get(endpoint, params=params).json()
tot... | 29.235294 | 76 | 0.724346 |
c8ec940438930475725da4b1624b8e42cb723947 | 157 | py | Python | core/models/__init__.py | Brain-Engine/ImageNet | 893a8008e0e8e373bc66a7cbb40813db8495426a | [
"Apache-2.0"
] | 1 | 2021-05-17T11:49:12.000Z | 2021-05-17T11:49:12.000Z | core/models/__init__.py | Brain-Engine/ImageNet | 893a8008e0e8e373bc66a7cbb40813db8495426a | [
"Apache-2.0"
] | null | null | null | core/models/__init__.py | Brain-Engine/ImageNet | 893a8008e0e8e373bc66a7cbb40813db8495426a | [
"Apache-2.0"
] | 1 | 2021-05-17T11:49:22.000Z | 2021-05-17T11:49:22.000Z | # import models from torchvision
from torchvision.models import *
# import models from efficientnet
from .efficientnet import b0, b1, b2, b3, b4, b5, b6, b7
| 31.4 | 56 | 0.764331 |
c8ee532a04ed15373dc8d2091c28d0c7dca10643 | 2,834 | py | Python | MPI/py/plot_mpi_timing.py | mlxd/myscripts | b8b7d6b270ef24b06028e21f066c2bb587f94cef | [
"MIT"
] | null | null | null | MPI/py/plot_mpi_timing.py | mlxd/myscripts | b8b7d6b270ef24b06028e21f066c2bb587f94cef | [
"MIT"
] | null | null | null | MPI/py/plot_mpi_timing.py | mlxd/myscripts | b8b7d6b270ef24b06028e21f066c2bb587f94cef | [
"MIT"
] | null | null | null | #This file plots the results from the MPI timing runs
import sys
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib.markers as mkr
plt_style='ggplot'
plt.rcParams['font.size'] = 11
plt.rcParams['font.family'] = 'serif'
plt.rcParams['axes.labelsize'] = 11
plt.rc... | 38.821918 | 155 | 0.61856 |
c8efd5f50e23a88b242e0e5832ddd548e4a5108c | 1,809 | py | Python | src/entitykb/pipeline/filterers.py | genomoncology/entitykb | 61cf346a24f52fd8c1edea8827a816284ed6ecaf | [
"MIT"
] | 25 | 2020-06-30T16:46:43.000Z | 2022-01-04T15:27:49.000Z | src/entitykb/pipeline/filterers.py | genomoncology/entitykb | 61cf346a24f52fd8c1edea8827a816284ed6ecaf | [
"MIT"
] | 3 | 2020-11-25T15:09:33.000Z | 2021-05-08T11:25:14.000Z | src/entitykb/pipeline/filterers.py | genomoncology/entitykb | 61cf346a24f52fd8c1edea8827a816284ed6ecaf | [
"MIT"
] | 2 | 2021-06-17T11:21:49.000Z | 2021-12-02T13:07:15.000Z | from typing import Iterator
from entitykb import Span, interfaces, Doc
| 27.409091 | 73 | 0.63571 |
c8effc674c65f81f1f4c9fdac1c750120b3d16ef | 716 | py | Python | octavia-cli/unit_tests/test_entrypoint.py | pluralsh/airbyte | 9b1ed03fe482f5154f6c1843b1be76de87f3605d | [
"MIT"
] | 1 | 2022-01-27T22:29:38.000Z | 2022-01-27T22:29:38.000Z | octavia-cli/unit_tests/test_entrypoint.py | pluralsh/airbyte | 9b1ed03fe482f5154f6c1843b1be76de87f3605d | [
"MIT"
] | null | null | null | octavia-cli/unit_tests/test_entrypoint.py | pluralsh/airbyte | 9b1ed03fe482f5154f6c1843b1be76de87f3605d | [
"MIT"
] | null | null | null | #
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#
import pytest
from click.testing import CliRunner
from octavia_cli import entrypoint
| 27.538462 | 116 | 0.734637 |
c8f2a4e3254c600092c6d8f19d958953e7b804a3 | 5,261 | py | Python | src/device/eltako/fsr61_actor.py | rosenloecher-it/enocean-mqtt-bridge | d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c | [
"MIT"
] | 1 | 2020-12-01T17:10:14.000Z | 2020-12-01T17:10:14.000Z | src/device/eltako/fsr61_actor.py | rosenloecher-it/enocean-mqtt-bridge | d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c | [
"MIT"
] | 1 | 2021-09-19T13:38:02.000Z | 2021-09-19T13:38:02.000Z | src/device/eltako/fsr61_actor.py | rosenloecher-it/enocean-mqtt-bridge | d56e41a1a67e70bdeb1aa46d10f48ed5a12ca59c | [
"MIT"
] | null | null | null | import json
import logging
import random
from datetime import datetime
from typing import Optional
from paho.mqtt.client import MQTTMessage
from enocean.protocol.constants import PACKET
from enocean.protocol.packet import RadioPacket
from src.command.switch_command import SwitchCommand
from src.common.json_attributes... | 40.469231 | 117 | 0.698536 |
c8f361858524234ea8e385c43bd790d28e9507fd | 1,960 | py | Python | neuroml/arraymorph_load_time_benchmark.py | NeuralEnsemble/libNeuroML | 75d1630a0c6354a3997c4068dc8cdc447491b6f8 | [
"BSD-3-Clause"
] | 20 | 2015-03-11T11:21:32.000Z | 2021-10-11T16:03:27.000Z | neuroml/arraymorph_load_time_benchmark.py | NeuralEnsemble/libNeuroML | 75d1630a0c6354a3997c4068dc8cdc447491b6f8 | [
"BSD-3-Clause"
] | 48 | 2015-01-15T18:41:01.000Z | 2022-01-05T13:53:58.000Z | neuroml/arraymorph_load_time_benchmark.py | NeuralEnsemble/libNeuroML | 75d1630a0c6354a3997c4068dc8cdc447491b6f8 | [
"BSD-3-Clause"
] | 16 | 2015-01-14T21:53:46.000Z | 2019-09-04T23:05:27.000Z | import numpy as np
import neuroml
import neuroml.arraymorph as am
| 31.612903 | 67 | 0.656122 |