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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4097c2af9c121f0f61a10affe12d058da5aad64 | 2,769 | py | Python | bocadillo_cli/helpers.py | bocadilloproject/bocadillo-cli | f11ec438504eb2edd3c4e8f5d2992e804b3da6b0 | [
"MIT"
] | 6 | 2019-04-17T17:07:46.000Z | 2020-08-09T07:37:34.000Z | bocadillo_cli/helpers.py | bocadilloproject/bocadillo-cli | f11ec438504eb2edd3c4e8f5d2992e804b3da6b0 | [
"MIT"
] | 10 | 2019-04-17T21:27:46.000Z | 2019-06-17T05:45:51.000Z | bocadillo_cli/helpers.py | bocadilloproject/bocadillo-cli | f11ec438504eb2edd3c4e8f5d2992e804b3da6b0 | [
"MIT"
] | 1 | 2019-05-12T17:32:45.000Z | 2019-05-12T17:32:45.000Z | import pathlib
import pkgutil
import typing
from contextlib import contextmanager
import click
from jinja2 import Template
from . import formatutils as fmt
| 29.774194 | 76 | 0.562658 |
a409daf46a3fa04de8f0e145bfe66c2e1af54b0c | 1,637 | py | Python | extras/cleanup-meshes.py | RQWorldblender/io_scene_numdlb | 8a67c092f1aef9536e6de7cc7665dec77c0d52c6 | [
"MIT"
] | 2 | 2020-12-04T14:55:09.000Z | 2021-03-04T02:11:27.000Z | extras/cleanup-meshes.py | RQWorldblender/io_scene_numdlb | 8a67c092f1aef9536e6de7cc7665dec77c0d52c6 | [
"MIT"
] | null | null | null | extras/cleanup-meshes.py | RQWorldblender/io_scene_numdlb | 8a67c092f1aef9536e6de7cc7665dec77c0d52c6 | [
"MIT"
] | 1 | 2021-03-04T02:11:42.000Z | 2021-03-04T02:11:42.000Z | import bpy, os
# Select Expressions
mesh_expr = ["*Blink*", "*Attack*", "*Ouch*", "*Talk*", "*Capture*", "*Ottotto*", "*Escape*", "*Half*", "*Pattern*", "*Result*", "*Harf*","*Hot*", "*Heavy*", "*Voice*", "*Fura*", "*Throw*", "*Catch*", "*Cliff*", "*FLIP*", "*Bound*", "*Down*", "*Bodybig*", "*Final*", "*Result*", "... | 38.97619 | 362 | 0.596823 |
a40bad40cfcd7ca531100b5e277511691257c17c | 2,836 | py | Python | inst/python/ee_manage.py | MartinHoldrege/rgee | 8534e547884198f9375428dfbb7f507e3c406bf0 | [
"Apache-2.0"
] | null | null | null | inst/python/ee_manage.py | MartinHoldrege/rgee | 8534e547884198f9375428dfbb7f507e3c406bf0 | [
"Apache-2.0"
] | null | null | null | inst/python/ee_manage.py | MartinHoldrege/rgee | 8534e547884198f9375428dfbb7f507e3c406bf0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import datetime
import os
import ee
""" Generate a table with all the tasks that are running (or has finished) in GEE.
>>> genreport()
>>> quota(ID)
This module, which is used for checking earth engine quota,
were obtained from geeup: a Python CLI for Earth Engine Uploads... | 28.36 | 86 | 0.616714 |
a40db821cdd40995b507a0185d3e87cf108ec33d | 3,104 | py | Python | old/strip_3 - move to file server from Rawful.py | broxeph/ameryn | e1289c280ca865ec84625b712adc52c536b4b174 | [
"MIT"
] | null | null | null | old/strip_3 - move to file server from Rawful.py | broxeph/ameryn | e1289c280ca865ec84625b712adc52c536b4b174 | [
"MIT"
] | null | null | null | old/strip_3 - move to file server from Rawful.py | broxeph/ameryn | e1289c280ca865ec84625b712adc52c536b4b174 | [
"MIT"
] | null | null | null | """
Strip silence from recorded audio, move to file server(s).
(c) Ameryn Media LLC, 2015. All rights reserved.
"""
import os
import datetime
from ConfigParser import ConfigParser
import shutil
import pydub
CONFIG_LOCATION = 'ameryn.ini'
config = ConfigParser()
config.read(CONFIG_LOCATION)
# Input file parameters... | 32 | 141 | 0.746778 |
cf8bc62feb8e0471e65e54c2a009471153f8ea88 | 636 | py | Python | _sadm/listen/handlers/exec.py | jrmsdev/pysadm | 0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37 | [
"BSD-3-Clause"
] | 1 | 2019-10-15T08:37:56.000Z | 2019-10-15T08:37:56.000Z | _sadm/listen/handlers/exec.py | jrmsdev/pysadm | 0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37 | [
"BSD-3-Clause"
] | null | null | null | _sadm/listen/handlers/exec.py | jrmsdev/pysadm | 0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Jeremas Casteglione <jrmsdev@gmail.com>
# See LICENSE file.
import json
from bottle import request
from _sadm import log
from _sadm.listen.errors import error
from _sadm.listen.webhook.repo.vcs.git import GitRepo
__all__ = ['exech']
_taskman = {
'webhook.repo.git': GitRepo(),
}
| 22.714286 | 60 | 0.709119 |
cf8d37dd7cc02823d08160694115cee5f64df311 | 255 | py | Python | essentials/old_on_352.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | 1 | 2019-06-27T08:45:23.000Z | 2019-06-27T08:45:23.000Z | essentials/old_on_352.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | essentials/old_on_352.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | import time
minlevel = 1
arguments = ["self", "info"]
keyword = "352"
| 31.875 | 105 | 0.576471 |
cf8d4235cb878e12f5c58b025ed042e67c4a28fa | 1,266 | py | Python | app.py | Kaoushikkumarr/collab-service | 87388d140e74fe18704e1e3bee4e53d64c63f1d2 | [
"MIT"
] | null | null | null | app.py | Kaoushikkumarr/collab-service | 87388d140e74fe18704e1e3bee4e53d64c63f1d2 | [
"MIT"
] | null | null | null | app.py | Kaoushikkumarr/collab-service | 87388d140e74fe18704e1e3bee4e53d64c63f1d2 | [
"MIT"
] | null | null | null | import os
from flask_migrate import Migrate
from flask_restful import Api
from flask import Flask
from flask_cors import CORS
from flask_sqlalchemy import SQLAlchemy
from config_manager.config_manager import FileConfigManager
from utils.request_controller import RequestsController
app = Flask(__name__)
CORS(app)
api... | 28.772727 | 102 | 0.814376 |
cf8e095b2dfd6ed697713c2bc61fb4d1890cfd30 | 579 | py | Python | EstruturaDeRepeticao/exercicio19.py | Nicolas-Wursthorn/exercicios-python-brasil | b2b564d48b519be04643636033ec0815e6d99ea1 | [
"MIT"
] | null | null | null | EstruturaDeRepeticao/exercicio19.py | Nicolas-Wursthorn/exercicios-python-brasil | b2b564d48b519be04643636033ec0815e6d99ea1 | [
"MIT"
] | null | null | null | EstruturaDeRepeticao/exercicio19.py | Nicolas-Wursthorn/exercicios-python-brasil | b2b564d48b519be04643636033ec0815e6d99ea1 | [
"MIT"
] | null | null | null | # Altere o programa anterior para que ele aceite apenas nmeros entre 0 e 1000
condition = True
conjunto = []
while condition:
numero = int(input("Digite os nmeros do conjunto (Digite 0 para parar): "))
if numero == 0:
break
elif numero > 1000 or numero < 0:
print("Digite somente nmeros en... | 30.473684 | 80 | 0.659758 |
cf8e7a839447ed7d56910db5a87efb42a19cb761 | 207 | py | Python | study/aula04.py | RutyRibeiro/facial-recognition-python | c86d13fc7f9e17d86675f7337b70be8f805fcdda | [
"MIT"
] | 2 | 2020-10-16T00:54:23.000Z | 2021-11-11T02:05:32.000Z | study/aula04.py | RutyRibeiro/facial-recognition-python | c86d13fc7f9e17d86675f7337b70be8f805fcdda | [
"MIT"
] | null | null | null | study/aula04.py | RutyRibeiro/facial-recognition-python | c86d13fc7f9e17d86675f7337b70be8f805fcdda | [
"MIT"
] | null | null | null | import cv2
cam = cv2.VideoCapture(0)
while True:
camera,frame = cam.read()
cv2.imshow('imagem camera', frame)
if cv2.waitKey(1) == ord('f'):
break
cam.release()
cv2.destroyAllWindows() | 17.25 | 38 | 0.642512 |
cf8ef2b45d7d458a65d6c785888a76f8daf2c51b | 750 | py | Python | cogs/help.py | moisesjsanchez/anime-movie-discord-bot | 2979dc28cc6250e56f713c2d6483aaaff7688176 | [
"MIT"
] | null | null | null | cogs/help.py | moisesjsanchez/anime-movie-discord-bot | 2979dc28cc6250e56f713c2d6483aaaff7688176 | [
"MIT"
] | 2 | 2021-05-03T04:48:46.000Z | 2021-05-06T08:29:23.000Z | cogs/help.py | moisesjsanchez/anime-movie-discord-bot | 2979dc28cc6250e56f713c2d6483aaaff7688176 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
| 28.846154 | 141 | 0.665333 |
cf8fb65655bb2de90066c1c7dab90f53f736211b | 2,255 | py | Python | summarize/modules/coverage_matrix_attention/coverage_matrix_attention.py | danieldeutsch/summarize | f36a86d58f381ff1f607f356dad3d6ef7b0e0224 | [
"Apache-2.0"
] | 15 | 2019-11-01T11:49:44.000Z | 2021-01-19T06:59:32.000Z | summarize/modules/coverage_matrix_attention/coverage_matrix_attention.py | CogComp/summary-cloze | b38e3e8c7755903477fd92a4cff27125cbf5553d | [
"Apache-2.0"
] | 2 | 2020-03-30T07:54:01.000Z | 2021-11-15T16:27:42.000Z | summarize/modules/coverage_matrix_attention/coverage_matrix_attention.py | CogComp/summary-cloze | b38e3e8c7755903477fd92a4cff27125cbf5553d | [
"Apache-2.0"
] | 3 | 2019-12-06T05:57:51.000Z | 2019-12-11T11:34:21.000Z | import torch
from allennlp.common.registrable import Registrable
from typing import Tuple
| 45.1 | 98 | 0.701552 |
cf8fc6f83e41245e2996c4f4fbbce410b6cabeff | 861 | py | Python | accelerator/tests/factories/program_partner_factory.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 6 | 2017-06-14T19:34:01.000Z | 2020-03-08T07:16:59.000Z | accelerator/tests/factories/program_partner_factory.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | 160 | 2017-06-20T17:12:13.000Z | 2022-03-30T13:53:12.000Z | accelerator/tests/factories/program_partner_factory.py | masschallenge/django-accelerator | 8af898b574be3b8335edc8961924d1c6fa8b5fd5 | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
from __future__ import unicode_literals
import swapper
from factory import (
Sequence,
SubFactory,
)
from factory.django import DjangoModelFactory
from accelerator.tests.factories.partner_factory import PartnerFactory
from accelerator.tests.factories.pro... | 27.774194 | 70 | 0.788618 |
cf938a4c23d460c727e0aec9347ad4f5e6ef02f9 | 6,373 | py | Python | test/test_oscope_tf.py | alexisboukouvalas/OscoNet | f100d1ccfe8f7dad050a3082773a4b6383a4994a | [
"MIT"
] | 1 | 2020-09-03T10:00:44.000Z | 2020-09-03T10:00:44.000Z | test/test_oscope_tf.py | alexisboukouvalas/OscoNet | f100d1ccfe8f7dad050a3082773a4b6383a4994a | [
"MIT"
] | 1 | 2022-02-10T02:22:05.000Z | 2022-02-10T02:22:05.000Z | test/test_oscope_tf.py | alexisboukouvalas/OscoNet | f100d1ccfe8f7dad050a3082773a4b6383a4994a | [
"MIT"
] | 1 | 2019-09-25T16:44:30.000Z | 2019-09-25T16:44:30.000Z | """
TensorFlow 2 OscoNet code
"""
import numpy as np
import pytest
import tensorflow as tf
from OscopeBootstrap import qvalue
from OscopeBootstrap.create_edge_network_represention import create_edge_network_representation
from OscopeBootstrap.oscope_tf import PRECISION_fp, calc_e2, calc_e2_many_genes, find_best_psi_fo... | 40.852564 | 133 | 0.672682 |
cf9459db5ea16ef4050b20b3369b43e59a337980 | 127 | py | Python | instaapp/tests.py | martinmandina/InstagramApp | 89ab7b8e0b85d49f220fec3c55327dedea9f1b47 | [
"MIT"
] | null | null | null | instaapp/tests.py | martinmandina/InstagramApp | 89ab7b8e0b85d49f220fec3c55327dedea9f1b47 | [
"MIT"
] | null | null | null | instaapp/tests.py | martinmandina/InstagramApp | 89ab7b8e0b85d49f220fec3c55327dedea9f1b47 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Profile,Image,Comments
import datetime as dt
# Create your tests here.
| 15.875 | 42 | 0.795276 |
cf95eb4bdfd3378b91c202518528f3335389e6e3 | 370 | py | Python | texts/objects/cache/base.py | nicolay-r/frame-based-attitude-extraction-workflow | f20e6d17a9eb6613028545b889c74626a8260ccd | [
"MIT"
] | null | null | null | texts/objects/cache/base.py | nicolay-r/frame-based-attitude-extraction-workflow | f20e6d17a9eb6613028545b889c74626a8260ccd | [
"MIT"
] | 6 | 2020-10-03T13:45:38.000Z | 2021-07-13T18:31:57.000Z | texts/objects/cache/base.py | nicolay-r/frame-based-attitude-extraction-workflow | f20e6d17a9eb6613028545b889c74626a8260ccd | [
"MIT"
] | null | null | null | from texts.text_info import NewsSentenceInfo
| 19.473684 | 52 | 0.681081 |
cf9753a080d8359212476544e2f2019880886fa3 | 1,451 | py | Python | children/tests/snapshots/snap_test_notifications.py | City-of-Helsinki/kukkuu | 61f26bc622928fd04f6a397f832aaffff789e806 | [
"MIT"
] | null | null | null | children/tests/snapshots/snap_test_notifications.py | City-of-Helsinki/kukkuu | 61f26bc622928fd04f6a397f832aaffff789e806 | [
"MIT"
] | 157 | 2019-10-08T07:58:59.000Z | 2022-03-20T23:00:17.000Z | children/tests/snapshots/snap_test_notifications.py | City-of-Helsinki/kukkuu | 61f26bc622928fd04f6a397f832aaffff789e806 | [
"MIT"
] | 3 | 2019-10-07T12:06:26.000Z | 2022-01-25T14:03:14.000Z | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots["test_signup_notification 1"] = [
"""kukkuu@example.com|['michellewalker@example.net']|SIGNUP-notifikaation aihe|
SIGNUP-notifikaation sisl... | 40.305556 | 85 | 0.751206 |
cf976cb08811d9daaefe1b3400c3ef25e10128c3 | 1,918 | py | Python | live.py | ardamavi/Vocalize-Sign-Language | b00ce8c2a54f7f333ba8b3612567448281abfc61 | [
"Apache-2.0"
] | 65 | 2017-06-10T19:34:42.000Z | 2022-03-15T06:47:29.000Z | live.py | sygops/Vocalize-Sign-Language | b19f6251e48478193c3a8001966edf2d421e8281 | [
"Apache-2.0"
] | 1 | 2021-09-08T04:04:55.000Z | 2021-09-09T03:24:37.000Z | live.py | sygops/Vocalize-Sign-Language | b19f6251e48478193c3a8001966edf2d421e8281 | [
"Apache-2.0"
] | 25 | 2018-01-08T15:02:05.000Z | 2021-11-16T16:31:42.000Z | # Arda Mavi
import os
import cv2
import platform
import numpy as np
from predict import predict
from scipy.misc import imresize
from multiprocessing import Process
from keras.models import model_from_json
img_size = 64
channel_size = 1
if __name__ == '__main__':
main()
| 30.935484 | 101 | 0.618874 |
cf9c1389b641f423d0d37afccaff7445dbc77a66 | 1,028 | py | Python | examples/webhook/server.py | Alma-field/twitcaspy | 25f3e850f2d5aab8a864bd6b7003468587fa3ea7 | [
"MIT"
] | null | null | null | examples/webhook/server.py | Alma-field/twitcaspy | 25f3e850f2d5aab8a864bd6b7003468587fa3ea7 | [
"MIT"
] | 18 | 2021-10-01T13:40:01.000Z | 2021-10-18T12:34:57.000Z | examples/webhook/server.py | Alma-field/twitcaspy | 25f3e850f2d5aab8a864bd6b7003468587fa3ea7 | [
"MIT"
] | null | null | null | # Twitcaspy
# Copyright 2021 Alma-field
# See LICENSE for details.
# Before running this code, run the following command:
#
# pip install twitcaspy[webhook]
from flask import Flask, request, make_response, jsonify, abort
app = Flask(__name__)
from twitcaspy import api, TwitcaspyException
if __name__ == '__main__':... | 31.151515 | 63 | 0.678988 |
cf9d43beea070a2999be037ff5c098b3a4dc9ef5 | 1,173 | py | Python | 18-04-18-REST APIs with Flask and Python/Section 6 - Simplifying storage with Flask-SQLAlchemy/1_Improving code structure/models/user.py | maraboinavamshi/courses | 48f255ffb1903ba20865c2b91b488758d5cb1a09 | [
"Apache-2.0"
] | 15 | 2017-09-19T08:09:01.000Z | 2019-04-29T00:37:51.000Z | 18-04-18-REST APIs with Flask and Python/Section 6 - Simplifying storage with Flask-SQLAlchemy/1_Improving code structure/models/user.py | chitrita/Courses-1 | 7713267ee5c92e488086588ac41490c44b4f7350 | [
"Apache-2.0"
] | null | null | null | 18-04-18-REST APIs with Flask and Python/Section 6 - Simplifying storage with Flask-SQLAlchemy/1_Improving code structure/models/user.py | chitrita/Courses-1 | 7713267ee5c92e488086588ac41490c44b4f7350 | [
"Apache-2.0"
] | 17 | 2018-02-27T03:15:54.000Z | 2019-04-24T09:26:46.000Z | import sqlite3 | 23.938776 | 60 | 0.680307 |
cf9db563a203c43bbc7c0bac94e9bc037f070989 | 7,814 | py | Python | SK_Net_Plus.py | xingshulicc/Channel_Attention_Selection | c51b8de34ddfe5d6a88dd3ab5e846930f53e7476 | [
"MIT"
] | 2 | 2020-10-26T06:44:29.000Z | 2020-10-31T06:06:59.000Z | SK_Net_Plus.py | xingshulicc/Channel_Attention_Selection | c51b8de34ddfe5d6a88dd3ab5e846930f53e7476 | [
"MIT"
] | null | null | null | SK_Net_Plus.py | xingshulicc/Channel_Attention_Selection | c51b8de34ddfe5d6a88dd3ab5e846930f53e7476 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
"""
Created on Fri Oct 23 13:31:34 2020
@author: Admin
"""
from keras.layers import Input
from keras.layers import Conv2D
from keras.layers import BatchNormalization
from keras.layers import Activation
from keras.layers import MaxPooling2D
from ... | 39.664975 | 106 | 0.579473 |
cfa0c9cdefacf9cd6963bf8494c977ebb9d0cbfc | 1,386 | py | Python | examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/schedule_from_partitions.py | silentsokolov/dagster | 510bf07bf6906294d5a239d60079c88211002ebf | [
"Apache-2.0"
] | null | null | null | examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/schedule_from_partitions.py | silentsokolov/dagster | 510bf07bf6906294d5a239d60079c88211002ebf | [
"Apache-2.0"
] | null | null | null | examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/schedule_from_partitions.py | silentsokolov/dagster | 510bf07bf6906294d5a239d60079c88211002ebf | [
"Apache-2.0"
] | null | null | null | # isort: skip_file
from .partitioned_job import my_partitioned_config
from dagster import HourlyPartitionsDefinition
# start_marker
from dagster import build_schedule_from_partitioned_job, job
do_stuff_partitioned_schedule = build_schedule_from_partitioned_job(
do_stuff_partitioned,
)
# end_marker
# start_p... | 21 | 87 | 0.786436 |
cfa10d23c5f1725d917e3366e959b9010799603e | 267 | py | Python | annotator/admin.py | fossabot/django-annotator | 1151c7628dade8b600719e3653a79e1c53b16340 | [
"Apache-2.0"
] | 11 | 2017-02-21T11:31:10.000Z | 2019-06-19T08:44:15.000Z | annotator/admin.py | fossabot/django-annotator | 1151c7628dade8b600719e3653a79e1c53b16340 | [
"Apache-2.0"
] | 5 | 2017-02-21T18:31:44.000Z | 2020-03-06T09:10:40.000Z | annotator/admin.py | fossabot/django-annotator | 1151c7628dade8b600719e3653a79e1c53b16340 | [
"Apache-2.0"
] | 5 | 2017-03-27T18:45:41.000Z | 2020-03-06T09:11:18.000Z | from django.apps import apps
from django.contrib import admin
from django.contrib.admin.sites import AlreadyRegistered
for model in apps.get_app_config("annotator").get_models():
try:
admin.site.register(model)
except AlreadyRegistered:
pass
| 26.7 | 59 | 0.752809 |
cfa4150c13a90de6b3895ea197f143bf9acae07d | 834 | py | Python | drivers/firmata.py | prozum/embug | dbb84a2f17229725a209a1cd8f99906f34948058 | [
"MIT"
] | null | null | null | drivers/firmata.py | prozum/embug | dbb84a2f17229725a209a1cd8f99906f34948058 | [
"MIT"
] | null | null | null | drivers/firmata.py | prozum/embug | dbb84a2f17229725a209a1cd8f99906f34948058 | [
"MIT"
] | null | null | null | import pyfirmata
dPins = range(14)
aPins = range(18,24)
A0,A1,A2,A3,A4,A5 = aPins
HIGH,OUT = (1,1)
LOW,IN = (0,0) | 18.533333 | 62 | 0.558753 |
cfa4f9c3c47163b8357b553409d94c4c1cf0c0a0 | 1,019 | py | Python | src/contnext_viewer/graph.py | ContNeXt/web_app | 0ace1077ee07902cadca684e4e06b3e91cea437f | [
"MIT"
] | 3 | 2022-01-14T11:56:08.000Z | 2022-01-14T12:36:42.000Z | src/contnext_viewer/graph.py | ContNeXt/web_app | 0ace1077ee07902cadca684e4e06b3e91cea437f | [
"MIT"
] | null | null | null | src/contnext_viewer/graph.py | ContNeXt/web_app | 0ace1077ee07902cadca684e4e06b3e91cea437f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from contnext_viewer.models import Network, engine
from sqlalchemy.orm import sessionmaker
| 37.740741 | 112 | 0.68106 |
cfa6145bbf7350ea98ed17dde42977836a1d405b | 8,302 | py | Python | crystals/affine.py | priyankism/crystals | 683bf35fbc95d0ded8cafdad0f2dede7adf5b072 | [
"BSD-3-Clause"
] | null | null | null | crystals/affine.py | priyankism/crystals | 683bf35fbc95d0ded8cafdad0f2dede7adf5b072 | [
"BSD-3-Clause"
] | null | null | null | crystals/affine.py | priyankism/crystals | 683bf35fbc95d0ded8cafdad0f2dede7adf5b072 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Linear algebra operations and helpers.
Inspired by Christoph Gohlke's transformation.py <http://www.lfd.uci.edu/~gohlke/>
This module is not directly exported by the `crystals` library. Use it with caution.
"""
import math
import numpy as np
# standard basis
e1, e2, e3 = np.eye(3)
def... | 26.694534 | 86 | 0.63298 |
cfa6ad3ae4dd2b7b0f171c22b61ad5f626a27dd6 | 675 | py | Python | app/common/models.py | chaos-soft/velvet | 71edabaa6e25308e76af82b76eb62c159d2b3368 | [
"MIT"
] | null | null | null | app/common/models.py | chaos-soft/velvet | 71edabaa6e25308e76af82b76eb62c159d2b3368 | [
"MIT"
] | null | null | null | app/common/models.py | chaos-soft/velvet | 71edabaa6e25308e76af82b76eb62c159d2b3368 | [
"MIT"
] | null | null | null | import json
from django.db import models
| 24.107143 | 66 | 0.567407 |
cfa6f22885e002c32f2bb0a0900115dab7f6b69c | 4,194 | py | Python | malas/program_supplementals.py | destrianto/malas | 46fbeb43414302c0c6e47ec2c48a0e3a1052a1b9 | [
"MIT"
] | null | null | null | malas/program_supplementals.py | destrianto/malas | 46fbeb43414302c0c6e47ec2c48a0e3a1052a1b9 | [
"MIT"
] | null | null | null | malas/program_supplementals.py | destrianto/malas | 46fbeb43414302c0c6e47ec2c48a0e3a1052a1b9 | [
"MIT"
] | null | null | null | import sys
import getpass
import subprocess
import pkg_resources
| 42.363636 | 205 | 0.669766 |
cfa6f7d12ac60700054deb918bc90c4c2c0ba1fc | 25,987 | py | Python | wsgi/iportalen_django/events/views.py | I-sektionen/i-portalen | 1713e5814d40c0da1bf3278d60a561e7d3df3550 | [
"MIT"
] | 4 | 2016-09-21T17:06:01.000Z | 2018-02-06T16:36:44.000Z | wsgi/iportalen_django/events/views.py | I-sektionen/i-portalen | 1713e5814d40c0da1bf3278d60a561e7d3df3550 | [
"MIT"
] | 149 | 2016-03-07T23:50:47.000Z | 2022-03-11T23:16:33.000Z | wsgi/iportalen_django/events/views.py | I-sektionen/i-portalen | 1713e5814d40c0da1bf3278d60a561e7d3df3550 | [
"MIT"
] | 1 | 2016-03-07T23:02:06.000Z | 2016-03-07T23:02:06.000Z | from django.core.mail import send_mail
from django.core.urlresolvers import reverse
from django.db.models import Q
from django.http.response import JsonResponse
from django.shortcuts import render, get_object_or_404, redirect
from django.forms import modelformset_factory
from django.contrib.auth.decorators import login... | 41.118671 | 248 | 0.588833 |
cfa89d2739c826f494098053f56652fab2675cda | 411 | py | Python | loop_count_sum_average.py | bclead3/python_for_everyone | ccf72c335fe1e9b6419ccb34fc091c9520a69e5c | [
"MIT"
] | null | null | null | loop_count_sum_average.py | bclead3/python_for_everyone | ccf72c335fe1e9b6419ccb34fc091c9520a69e5c | [
"MIT"
] | null | null | null | loop_count_sum_average.py | bclead3/python_for_everyone | ccf72c335fe1e9b6419ccb34fc091c9520a69e5c | [
"MIT"
] | null | null | null | intNum = 0
fltTotal = 0.0
while True:
strVal = input('Enter a number: ')
if strVal == 'done':
break
try:
fltVal = float(strVal)
intNum += 1
fltTotal += fltVal
except ValueError:
print('Invalid Input value, continuing...')
continue
print("The number of ... | 21.631579 | 111 | 0.586375 |
cfaad53b73796070da96bc425bbb924627d94d3e | 66,608 | py | Python | direfl/api/invert.py | TUM-E21-ThinFilms/direfl | ef60610b1653ab1a93840ec481a0eed3242fcfcc | [
"MIT"
] | null | null | null | direfl/api/invert.py | TUM-E21-ThinFilms/direfl | ef60610b1653ab1a93840ec481a0eed3242fcfcc | [
"MIT"
] | null | null | null | direfl/api/invert.py | TUM-E21-ThinFilms/direfl | ef60610b1653ab1a93840ec481a0eed3242fcfcc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# This program is public domain
#
# Phase inversion author: Norm Berk
# Translated from Mathematica by Paul Kienzle
#
# Phase reconstruction author: Charles Majkrzak
# Converted from Fortran by Paul Kienzle
#
# Reflectivity calculation author: Paul Kienzle
#
# The National Institute of Standards ... | 38.952047 | 90 | 0.563191 |
cfab26c2310626960a9eb1bcfe2663950cbe8982 | 1,429 | py | Python | JupiterMag/Tools/TestTrace.py | mattkjames7/JupiterMag | 0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd | [
"MIT"
] | null | null | null | JupiterMag/Tools/TestTrace.py | mattkjames7/JupiterMag | 0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd | [
"MIT"
] | null | null | null | JupiterMag/Tools/TestTrace.py | mattkjames7/JupiterMag | 0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
| 21.651515 | 89 | 0.6669 |
cfac305f0f7ce458aca125a8380e57d97d04bc9b | 81,938 | py | Python | openstuder.py | OpenStuder/openstuder-client-python | ade667116afcd084faed93febfa4e267972f5250 | [
"MIT"
] | null | null | null | openstuder.py | OpenStuder/openstuder-client-python | ade667116afcd084faed93febfa4e267972f5250 | [
"MIT"
] | null | null | null | openstuder.py | OpenStuder/openstuder-client-python | ade667116afcd084faed93febfa4e267972f5250 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Callable, Optional, Tuple, List
from enum import Enum, Flag, auto
from threading import Thread
import datetime
import json
import websocket
| 48.541469 | 180 | 0.672435 |
cfac8a3bf9b754b428774c64b5a7fb57b3b75af6 | 10,172 | py | Python | jsb/lib/rest/client.py | NURDspace/jsonbot | 400dce602700a93db80e10707c3785a0fbdfaaeb | [
"MIT"
] | 1 | 2019-04-12T12:20:12.000Z | 2019-04-12T12:20:12.000Z | jsb/lib/rest/client.py | Petraea/jsonbot | 04a3a0c586a8a1a3b0e5316d10cda16df9be415b | [
"MIT"
] | null | null | null | jsb/lib/rest/client.py | Petraea/jsonbot | 04a3a0c586a8a1a3b0e5316d10cda16df9be415b | [
"MIT"
] | 1 | 2020-05-06T18:46:53.000Z | 2020-05-06T18:46:53.000Z | # jsb/rest/client.py
#
#
""" Rest Client class """
## jsb imports
from jsb.utils.url import geturl4, posturl, deleteurl, useragent
from jsb.utils.generic import toenc
from jsb.utils.exception import handle_exception, exceptionmsg
from jsb.utils.locking import lockdec
from jsb.utils.lazydict import LazyDict
from jsb.... | 34.364865 | 124 | 0.54129 |
cfad240cbe2de63e774a45108d8024a830541cc9 | 3,820 | py | Python | sha.py | Jfghanimah/fpga-miner | fcf8fb4a7eed941de78b2517046cdcc7305e833d | [
"MIT"
] | 1 | 2021-12-19T18:11:25.000Z | 2021-12-19T18:11:25.000Z | sha.py | Jfghanimah/fpga-miner | fcf8fb4a7eed941de78b2517046cdcc7305e833d | [
"MIT"
] | null | null | null | sha.py | Jfghanimah/fpga-miner | fcf8fb4a7eed941de78b2517046cdcc7305e833d | [
"MIT"
] | null | null | null | import timeit
W = 32 #Number of bits in word
M = 1 << W
FF = M - 1 #0xFFFFFFFF (for performing addition mod 2**32)
#Constants from SHA256 definition
K_t = (0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
0xd807aa98, 0x12835b01, 0x243185be, 0x550... | 41.978022 | 97 | 0.585602 |
cfae1b2a8bae0b3534aa7c2f45c77338d26aaf5c | 438 | py | Python | exercicio42.py | shyga362/projetoPython | 1efad8c234b3e728cb23cb02fc11c8e1b7887a25 | [
"MIT"
] | 2 | 2022-01-06T23:31:00.000Z | 2022-01-06T23:35:49.000Z | exercicio42.py | shyga362/projetoPython | 1efad8c234b3e728cb23cb02fc11c8e1b7887a25 | [
"MIT"
] | null | null | null | exercicio42.py | shyga362/projetoPython | 1efad8c234b3e728cb23cb02fc11c8e1b7887a25 | [
"MIT"
] | null | null | null | r1 = float(input("Digite um numero: "))
r2 = float(input("Digite outro numero: "))
r3 = float(input("Digite outro numero: "))
if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2:
print("Os seguimentos acima um triangulo", end='')
if r1 == r2 == r3:
print("equilatero")
elif r1 != r2 != r3 != r1:
... | 31.285714 | 58 | 0.577626 |
cfae2232854c7e9cf552e892930d74771cc98a44 | 13,839 | py | Python | tools/imports/shockabsorber/loader/loader.py | Brian151/OpenShockwave | 152c9c8899a2d949b3b769ee8204a3cef8df1b13 | [
"Apache-2.0"
] | 49 | 2017-02-21T05:35:49.000Z | 2022-03-24T19:49:13.000Z | tools/imports/shockabsorber/loader/loader.py | Brian151/OpenShockwave | 152c9c8899a2d949b3b769ee8204a3cef8df1b13 | [
"Apache-2.0"
] | 17 | 2017-02-23T08:59:51.000Z | 2019-05-10T03:02:42.000Z | tools/imports/shockabsorber/loader/loader.py | Brian151/OpenShockwave | 152c9c8899a2d949b3b769ee8204a3cef8df1b13 | [
"Apache-2.0"
] | 11 | 2017-05-17T20:21:50.000Z | 2021-12-14T19:01:41.000Z |
#### Purpose:
# Parse D*R files.
# Individual envelope formats are handled elsewhere (dxr_envelope etc.).
import struct
from shockabsorber.model.sections import Section, SectionMap, AssociationTable
from shockabsorber.model.cast import CastLibrary, CastLibraryTable
from shockabsorber.model.movie import Movie
from sho... | 39.315341 | 160 | 0.61146 |
cfae41573fd81ac1730a5949ff6705e491a3cd0f | 6,976 | py | Python | flowable_service_sdk/api/process_definition/parse_bpmnxml_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | flowable_service_sdk/api/process_definition/parse_bpmnxml_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | flowable_service_sdk/api/process_definition/parse_bpmnxml_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: parse_bpmnxml.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protob... | 50.18705 | 821 | 0.820384 |
cfaec93c76fc38ff386500b38962b7e890c0d5b9 | 677 | py | Python | wwwdccn/conferences/migrations/0003_auto_20190331_1742.py | lfpratik/dccnsys | b59e3c4a617e74f888e98b86a85671c412078ee7 | [
"MIT"
] | 16 | 2020-03-15T15:33:30.000Z | 2021-11-26T21:57:27.000Z | wwwdccn/conferences/migrations/0003_auto_20190331_1742.py | dccnconf/dccnsys | b59e3c4a617e74f888e98b86a85671c412078ee7 | [
"MIT"
] | 11 | 2019-04-27T19:15:43.000Z | 2022-03-11T23:43:08.000Z | wwwdccn/conferences/migrations/0003_auto_20190331_1742.py | lfpratik/dccnsys | b59e3c4a617e74f888e98b86a85671c412078ee7 | [
"MIT"
] | 10 | 2020-03-14T09:25:39.000Z | 2022-02-21T16:46:33.000Z | # Generated by Django 2.1.7 on 2019-03-31 14:42
from django.db import migrations, models
| 28.208333 | 119 | 0.620384 |
cfb1a0dd3fc254f0d785f59a769dd324b97838e9 | 2,572 | py | Python | scripts.py | StarsHu/ParadoxMediaWikiWorker | 89bf4f298ed93d86bc489490a2536a27961f7b6b | [
"MIT"
] | null | null | null | scripts.py | StarsHu/ParadoxMediaWikiWorker | 89bf4f298ed93d86bc489490a2536a27961f7b6b | [
"MIT"
] | null | null | null | scripts.py | StarsHu/ParadoxMediaWikiWorker | 89bf4f298ed93d86bc489490a2536a27961f7b6b | [
"MIT"
] | null | null | null | from spider import Spider
if __name__ == "__main__":
p = PageSync(
cn_url="https://ck3.parawikis.com/api.php",
cn_username="",
cn_password="",
eu_url="https://ck3.paradoxwikis.com/api.php",
)
p.run()
p.run(namespace=6)
p.run(namespace=10)
p.run(namespace=14)
| 41.483871 | 105 | 0.605754 |
cfb605ca953b0b2a145c9dfb2721c7a45cd2d149 | 2,485 | py | Python | Code/Aurora-to-Redshift-SnapshotExport-ELT/python/rds_snap_exp_check_snapshot.py | aws-samples/aurora-and-database-migration-labs | 5f7f4ab7985dda04c2a6cdc8a04fb34491f6a0aa | [
"MIT-0"
] | 23 | 2019-02-18T17:20:17.000Z | 2022-03-31T18:12:49.000Z | Code/Aurora-to-Redshift-SnapshotExport-ELT/python/rds_snap_exp_check_snapshot.py | CloudGuru79/aurora-and-database-migration-labs | e70b6a41747d6117d763a708df035e73db88e107 | [
"MIT-0"
] | 1 | 2021-05-25T14:07:51.000Z | 2021-08-04T16:06:44.000Z | Code/Aurora-to-Redshift-SnapshotExport-ELT/python/rds_snap_exp_check_snapshot.py | CloudGuru79/aurora-and-database-migration-labs | e70b6a41747d6117d763a708df035e73db88e107 | [
"MIT-0"
] | 11 | 2019-03-29T13:11:29.000Z | 2022-03-26T20:47:38.000Z | import boto3
from datetime import datetime, timezone
| 31.455696 | 102 | 0.660362 |
cfb76a0451724cb5b9f942bb838e8d1e229a0d3d | 4,932 | py | Python | research/nlp/lstm_crf/eval.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/nlp/lstm_crf/eval.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/nlp/lstm_crf/eval.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2021 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... | 39.774194 | 107 | 0.651663 |
cfb7a611580cb2074a6bd3d12a2144d33129fca3 | 837 | py | Python | pyRoovit/pyRoovit.extension/bin/disabled hooks/command-before-exec[ID_INPLACE_COMPONENT].py | jmcouffin/pyRoovit | acafa74fb6310a1042c703d791b0d53804c1882a | [
"BSD-3-Clause"
] | 5 | 2022-03-14T01:58:34.000Z | 2022-03-21T19:51:09.000Z | pyRoovit/pyRoovit.extension/bin/disabled hooks/command-before-exec[ID_INPLACE_COMPONENT].py | jmcouffin/pyRoovit | acafa74fb6310a1042c703d791b0d53804c1882a | [
"BSD-3-Clause"
] | 1 | 2022-03-14T10:18:40.000Z | 2022-03-14T15:52:25.000Z | pyRoovit/pyRoovit.extension/bin/disabled hooks/command-before-exec[ID_INPLACE_COMPONENT].py | jmcouffin/pyRoovit | acafa74fb6310a1042c703d791b0d53804c1882a | [
"BSD-3-Clause"
] | 1 | 2022-03-14T10:15:22.000Z | 2022-03-14T10:15:22.000Z | # import libraries
from pyrevit import EXEC_PARAMS
from pyrevit import forms
# prevent the tool, await input
mip = forms.alert("No modelling in place!", options = ["Oops, my bad...", "But you see, I am an artiste"], title = "Not going to happen", footer = "Uhoh")
# process the outcome
if mip == "Oops, my bad...":
... | 36.391304 | 154 | 0.673835 |
cfb7b75e80d6f16aa38ab2c5bb8e48063d63e82b | 2,682 | py | Python | prepare_training_data.py | vijayaganesh/Chrome-DinoGame-AI | 1c28114c3b0ac40dcb3812ba202b5a343de7d93a | [
"MIT"
] | null | null | null | prepare_training_data.py | vijayaganesh/Chrome-DinoGame-AI | 1c28114c3b0ac40dcb3812ba202b5a343de7d93a | [
"MIT"
] | null | null | null | prepare_training_data.py | vijayaganesh/Chrome-DinoGame-AI | 1c28114c3b0ac40dcb3812ba202b5a343de7d93a | [
"MIT"
] | null | null | null |
import cv2
import numpy as np
import tensorflow as tf
import time
import statistics
import h5py
vid_file = '/home/vijayaganesh/Videos/Google Chrome Dinosaur Game [Bird Update] BEST SCORE OF THE WORLD (No hack).mp4'
data_file = 'training_data.txt'
roi_x = 320
roi_y = 120
roi_w = 459
roi_h = 112
font = cv2.FONT_HERSHEY... | 25.788462 | 118 | 0.590604 |
cfb9e12117569a0e6982c42c78bded71febf60a5 | 3,436 | py | Python | tests/test_startup_command_decorator.py | maximsakhno/galo-startup | 89137b813d4ffa2fcc271cdd23ca88c1cef40eca | [
"MIT"
] | 3 | 2022-02-02T10:58:10.000Z | 2022-02-09T10:46:35.000Z | tests/test_startup_command_decorator.py | maximsakhno/galo-startup | 89137b813d4ffa2fcc271cdd23ca88c1cef40eca | [
"MIT"
] | null | null | null | tests/test_startup_command_decorator.py | maximsakhno/galo-startup | 89137b813d4ffa2fcc271cdd23ca88c1cef40eca | [
"MIT"
] | null | null | null | from unittest.mock import AsyncMock, Mock, call
import pytest
from galo_startup_commands import DependencyGraphNodeStartupCommand, startup_command
def test_not_a_function() -> None:
with pytest.raises(TypeError):
startup_command(Mock())
| 25.641791 | 84 | 0.690338 |
cfbc7808f0d9aa90289024ba8002f813e7246ea1 | 1,122 | py | Python | config/bash.py | mkaminsky11/cyberpatriot | cadebaf6aa953a904e28a5925705352f82682992 | [
"MIT",
"Unlicense"
] | 6 | 2015-09-16T11:44:17.000Z | 2021-07-19T19:11:14.000Z | config/bash.py | mkaminsky11/cyberpatriot | cadebaf6aa953a904e28a5925705352f82682992 | [
"MIT",
"Unlicense"
] | null | null | null | config/bash.py | mkaminsky11/cyberpatriot | cadebaf6aa953a904e28a5925705352f82682992 | [
"MIT",
"Unlicense"
] | 1 | 2015-03-19T14:37:21.000Z | 2015-03-19T14:37:21.000Z | import subprocess
import os.path
#CONFIGURES BASH STUFF
#TODO: maybe to all users?
#PREVENT TAMPERING WITH THESE FILES
#==================================
append_only = [".bash_history",".bash_profile",".bash_login",".profile",".bash_logout",".bashrc"]
for appends in append_only:
subprocess.call(("chattr +a ~/" ... | 27.365854 | 97 | 0.659537 |
cfbcbb60ae3fc053905862a67c48f5b31ef61170 | 106 | py | Python | autonmt/search/__init__.py | salvacarrion/autonlp | 5cc462901e451b9259219f44225034fc8eedf6d3 | [
"MIT"
] | 5 | 2022-01-10T07:59:16.000Z | 2022-01-14T01:02:52.000Z | autonmt/search/__init__.py | salvacarrion/autonlp | 5cc462901e451b9259219f44225034fc8eedf6d3 | [
"MIT"
] | 2 | 2022-01-01T06:10:27.000Z | 2022-01-14T01:10:48.000Z | autonmt/search/__init__.py | salvacarrion/autonlp | 5cc462901e451b9259219f44225034fc8eedf6d3 | [
"MIT"
] | 2 | 2022-01-10T08:20:02.000Z | 2022-02-22T08:10:16.000Z | from autonmt.search.beam_search import beam_search
from autonmt.search.greedy_search import greedy_search
| 35.333333 | 54 | 0.886792 |
cfbdc3d684ec4775e9200fbfec05b45b578aaee8 | 31 | py | Python | Constants.py | TmanHef/CentipedeRL | 400d6e71826a79c1a597b057b7543080d3f3c376 | [
"MIT"
] | 1 | 2020-08-12T02:43:57.000Z | 2020-08-12T02:43:57.000Z | Constants.py | TmanHef/CentipedeRL | 400d6e71826a79c1a597b057b7543080d3f3c376 | [
"MIT"
] | null | null | null | Constants.py | TmanHef/CentipedeRL | 400d6e71826a79c1a597b057b7543080d3f3c376 | [
"MIT"
] | null | null | null | take_action = 0
pass_action = 1 | 15.5 | 15 | 0.774194 |
cfbe82223a8d3479a6dfc0c1cbd4a4db1f89fae3 | 941 | py | Python | crfill/trainers/__init__.py | node21challenge/rank2_node21_generation | 6c1708468b4ba48383c55bc8473ebcc5a83b8995 | [
"Apache-2.0"
] | null | null | null | crfill/trainers/__init__.py | node21challenge/rank2_node21_generation | 6c1708468b4ba48383c55bc8473ebcc5a83b8995 | [
"Apache-2.0"
] | null | null | null | crfill/trainers/__init__.py | node21challenge/rank2_node21_generation | 6c1708468b4ba48383c55bc8473ebcc5a83b8995 | [
"Apache-2.0"
] | 1 | 2022-02-11T12:42:21.000Z | 2022-02-11T12:42:21.000Z | import importlib
| 32.448276 | 156 | 0.682253 |
cfbe85800180a003ff0e85d9da08dbfb881b689b | 3,308 | py | Python | pygrim/formulas/imaginary_unit.py | mezzarobba/fungrim | 01866a19882d44420e01383165dbb0a9f97680da | [
"MIT"
] | 102 | 2019-03-15T19:57:55.000Z | 2022-03-04T06:56:18.000Z | pygrim/formulas/imaginary_unit.py | mezzarobba/fungrim | 01866a19882d44420e01383165dbb0a9f97680da | [
"MIT"
] | 26 | 2019-03-15T03:17:26.000Z | 2022-02-21T17:46:50.000Z | pygrim/formulas/imaginary_unit.py | mezzarobba/fungrim | 01866a19882d44420e01383165dbb0a9f97680da | [
"MIT"
] | 12 | 2019-03-15T01:59:04.000Z | 2022-02-24T14:53:35.000Z | # -*- coding: utf-8 -*-
from ..expr import *
def_Topic(
Title("Imaginary unit"),
Section("Definitions"),
Entries(
"be8e05",
),
Section("Domain"),
Entries(
"88ad6f",
"cd8a07",
"a08fb9",
),
Section("Quadratic equations"),
Entries(
"08ad28",
... | 18.276243 | 101 | 0.583434 |
cfbeba738a545b8fa816e6c53371f15e1212b0d3 | 2,590 | py | Python | sds.py | Nico0302/SMG-UntisOfficeConverters | b43fd6b2baa58d42f9343c3a40963b7eec689ed5 | [
"MIT"
] | null | null | null | sds.py | Nico0302/SMG-UntisOfficeConverters | b43fd6b2baa58d42f9343c3a40963b7eec689ed5 | [
"MIT"
] | null | null | null | sds.py | Nico0302/SMG-UntisOfficeConverters | b43fd6b2baa58d42f9343c3a40963b7eec689ed5 | [
"MIT"
] | null | null | null | import csv
from utils import to_sds_date
SCHOOL_ID = '1'
SCHOOL_FILENAME = 'School.csv'
SECTION_FILENAME = 'Section.csv'
STUDENT_FILENAME = 'Student.csv'
TEACHER_FILENAME = 'Teacher.csv'
STUDENT_ENROLLMENT_FILENAME = 'StudentEnrollment.csv'
TEACHER_ROSTER_FILENAME = 'TeacherRoster.csv'
| 31.204819 | 90 | 0.688417 |
cfbf0b7ed91177f382813b392b45d5b821b94144 | 3,790 | py | Python | setup.py | zfit/zfit-flavour | 291be3d3d80a8e20907a5de88239098d0ed7e96d | [
"BSD-3-Clause"
] | null | null | null | setup.py | zfit/zfit-flavour | 291be3d3d80a8e20907a5de88239098d0ed7e96d | [
"BSD-3-Clause"
] | null | null | null | setup.py | zfit/zfit-flavour | 291be3d3d80a8e20907a5de88239098d0ed7e96d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
import io
import re
import os
import glob
from setuptools import find_packages
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'requirements.txt'), encoding='utf-8') as requirements_file:
requirements = ... | 38.673469 | 104 | 0.641953 |
cfbfa275b0b7f6610c00f6739476900452fbdfa6 | 1,858 | py | Python | engine/utils/scheduler.py | rmarticedeno/Agent_Platform | 12891e96bae4670e50f12e56a2dee258b7b584b4 | [
"MIT"
] | 2 | 2019-12-07T00:20:51.000Z | 2019-12-23T15:54:27.000Z | engine/utils/scheduler.py | rmarticedeno/Agent_Platform | 12891e96bae4670e50f12e56a2dee258b7b584b4 | [
"MIT"
] | null | null | null | engine/utils/scheduler.py | rmarticedeno/Agent_Platform | 12891e96bae4670e50f12e56a2dee258b7b584b4 | [
"MIT"
] | null | null | null | from collections import deque
# Two simple generator functions
def __countdown(n):
while n > 0:
print('T-minus', n)
yield
n -= 1
print('Blastoff!')
def __countup(n):
x = 0
while x < n:
print('Counting up', x)
yield
x += 1
if __name__ == "__main__":
... | 19.557895 | 57 | 0.520452 |
cfc02d4a4657dd5adc5e53454218d4b69d722cf8 | 2,138 | py | Python | leet_code/editorial/numbers_roman.py | theeksha101/problem_solving | 431c4ff224035bb98ad67ead963860329dd4c9ff | [
"MIT"
] | null | null | null | leet_code/editorial/numbers_roman.py | theeksha101/problem_solving | 431c4ff224035bb98ad67ead963860329dd4c9ff | [
"MIT"
] | null | null | null | leet_code/editorial/numbers_roman.py | theeksha101/problem_solving | 431c4ff224035bb98ad67ead963860329dd4c9ff | [
"MIT"
] | null | null | null |
sol = Solution()
print(sol.intToRoman(1994))
print(sol.intToRoman(562))
print(sol.intToRoman(42))
print(sol.intToRoman(724))
print("59 -> ", sol.intToRoman(59))
sol3 = Solution3()
print(sol3.intToRoman(625))
| 25.759036 | 116 | 0.384471 |
cfc2420a8b0d8a4ab0326148009595e910540813 | 2,310 | py | Python | test_incoming.py | james-721/chat_limpet | 88a394d4e6e3f34b9af4dd29d43999f28bd91224 | [
"MIT"
] | null | null | null | test_incoming.py | james-721/chat_limpet | 88a394d4e6e3f34b9af4dd29d43999f28bd91224 | [
"MIT"
] | null | null | null | test_incoming.py | james-721/chat_limpet | 88a394d4e6e3f34b9af4dd29d43999f28bd91224 | [
"MIT"
] | null | null | null | import zlib
import zmq
import simplejson
import sys
import time
import pprint
import math
pp = pprint.PrettyPrinter(indent=4)
"""
" Configuration
"""
__relayEDDN = 'tcp://eddn.edcd.io:9500'
__timeoutEDDN = 600000
"""
" Start
"""
if __name__ == '__main__':
main() | 32.535211 | 172 | 0.544156 |
cfc3b184faded8ad9ad737db946c5f8bf1633768 | 8,599 | py | Python | bayesian_optimization/algorithms/dt.py | ukritw/autonialm | a5264753dae19b9b5257ca75433a0f55dce0f173 | [
"Apache-2.0"
] | 2 | 2022-02-22T13:16:17.000Z | 2022-03-24T17:37:54.000Z | bayesian_optimization/algorithms/dt.py | ukritw/autonialm | a5264753dae19b9b5257ca75433a0f55dce0f173 | [
"Apache-2.0"
] | null | null | null | bayesian_optimization/algorithms/dt.py | ukritw/autonialm | a5264753dae19b9b5257ca75433a0f55dce0f173 | [
"Apache-2.0"
] | 2 | 2019-03-24T20:58:53.000Z | 2022-03-06T06:51:50.000Z | from __future__ import print_function, division
import warnings; warnings.filterwarnings("ignore")
from nilmtk import DataSet
import pandas as pd
import numpy as np
import datetime
import time
import math
import glob
from sklearn.tree import DecisionTreeRegressor
# Bring packages onto the path
import sys, os
sys.pa... | 43.211055 | 230 | 0.695662 |
cfc454e37616069169f51eecb957aaca3ad1f6d0 | 2,368 | py | Python | final_exam_may2020/others/practistrash.py | ilante/programming_immanuela_englander | 45d51c99b09ae335a67e03ac5ea79fc775bdf0bd | [
"MIT"
] | null | null | null | final_exam_may2020/others/practistrash.py | ilante/programming_immanuela_englander | 45d51c99b09ae335a67e03ac5ea79fc775bdf0bd | [
"MIT"
] | null | null | null | final_exam_may2020/others/practistrash.py | ilante/programming_immanuela_englander | 45d51c99b09ae335a67e03ac5ea79fc775bdf0bd | [
"MIT"
] | null | null | null | difficultlist = ['>tr|Q9IQN3|Q9IQN3_9HIV1 Protein Rev (Fragment) OS=Human immunodeficiency virus 1 OX=11676 GN=rev PE=4 SV=1', 'PPPSSEGTRQARRNRRRRWRERQRQIRRISGWILSNHLGGLTEPVPLQLPPLERLTLDCN', 'EDCGTSGTQGVGSPQIPVESPTVLESGTKE', '>sp|O95218|ZRAB2_HUMAN Zinc finger Ran-binding domain-containing protein 2 OS=Homo sapiens OX=... | 35.878788 | 704 | 0.638936 |
cfc4d663a59f98e39d10c7f6df4d3b1a88ae5a68 | 5,169 | py | Python | src/test/feature/Ranger/rangerpolicy.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 450 | 2015-09-05T09:12:51.000Z | 2018-08-30T01:45:36.000Z | src/test/feature/Ranger/rangerpolicy.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1,274 | 2015-09-22T20:06:16.000Z | 2018-08-31T22:14:00.000Z | src/test/feature/Ranger/rangerpolicy.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 278 | 2015-09-21T19:15:06.000Z | 2018-08-31T00:36:51.000Z | """
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | 42.368852 | 98 | 0.655833 |
cfc4dc6ecc3462bf8a0af5bf57b6f97a39afd525 | 856 | py | Python | Interpolation/New Tab with Special Layers.py | juandelperal/Glyphs-Scripts | 1f3cb71683ec044dff67a46cd895773e8271effa | [
"Apache-2.0"
] | null | null | null | Interpolation/New Tab with Special Layers.py | juandelperal/Glyphs-Scripts | 1f3cb71683ec044dff67a46cd895773e8271effa | [
"Apache-2.0"
] | null | null | null | Interpolation/New Tab with Special Layers.py | juandelperal/Glyphs-Scripts | 1f3cb71683ec044dff67a46cd895773e8271effa | [
"Apache-2.0"
] | null | null | null | #MenuTitle: New Tab with Special Layers
# -*- coding: utf-8 -*-
from __future__ import division, print_function, unicode_literals
from builtins import str
__doc__="""
Opens a new Edit tab containing all special (bracket & brace) layers.
"""
Glyphs.clearLog() # clears log of Macro window
thisFont = Glyphs.font # frontm... | 28.533333 | 70 | 0.748832 |
cfc4e76ff268f1b04652ad27abd0acee3bdfb297 | 3,244 | py | Python | tests/wallet/nft_wallet/test_ownership_outer_puzzle.py | Chinilla/chinilla-blockchain | 59bebcf94e65b74fbb53ad4929bbd79cb28be619 | [
"Apache-2.0"
] | null | null | null | tests/wallet/nft_wallet/test_ownership_outer_puzzle.py | Chinilla/chinilla-blockchain | 59bebcf94e65b74fbb53ad4929bbd79cb28be619 | [
"Apache-2.0"
] | null | null | null | tests/wallet/nft_wallet/test_ownership_outer_puzzle.py | Chinilla/chinilla-blockchain | 59bebcf94e65b74fbb53ad4929bbd79cb28be619 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from clvm_tools.binutils import assemble
from chinilla.types.blockchain_format.program import Program
from chinilla.types.blockchain_format.sized_bytes import bytes32
from chinilla.util.ints import uint16
from chinilla.wallet.nft_wallet.ownership_outer_puzzle import puzzle_for_ownership_la... | 42.684211 | 119 | 0.750308 |
cfc750727d6c4741228488819c79fe8825da6d65 | 15,095 | py | Python | data_loader.py | armyja/CHAOS_GCN | 685c84fdabf6db71cfc007cec41a72d900422920 | [
"MIT"
] | 4 | 2019-10-05T12:54:51.000Z | 2021-03-29T11:41:50.000Z | data_loader.py | armyja/CHAOS_GCN | 685c84fdabf6db71cfc007cec41a72d900422920 | [
"MIT"
] | null | null | null | data_loader.py | armyja/CHAOS_GCN | 685c84fdabf6db71cfc007cec41a72d900422920 | [
"MIT"
] | 3 | 2019-10-05T12:54:55.000Z | 2021-07-15T05:32:37.000Z | import math
import random
import torch
import numpy as np
from torch.utils.data.dataset import Dataset
from PIL import Image
import os
from torchvision import transforms
from utils import *
# 1 x n_class x height x width tensor
| 37.7375 | 111 | 0.549718 |
cfc8236b7f2f5731cc673472309e507f47fa4c37 | 301 | py | Python | Unit 2 Review of Rock and Fluid Properties/functions/waterfvf.py | datasolver/reservoir-engineering | 82393cff19e700fe3c7ac5c1a32ba877a4e40750 | [
"MIT"
] | null | null | null | Unit 2 Review of Rock and Fluid Properties/functions/waterfvf.py | datasolver/reservoir-engineering | 82393cff19e700fe3c7ac5c1a32ba877a4e40750 | [
"MIT"
] | null | null | null | Unit 2 Review of Rock and Fluid Properties/functions/waterfvf.py | datasolver/reservoir-engineering | 82393cff19e700fe3c7ac5c1a32ba877a4e40750 | [
"MIT"
] | 1 | 2020-06-24T15:50:00.000Z | 2020-06-24T15:50:00.000Z | def waterfvf(temp, p):
"Water FVF (Bw)"
# temp in Fahrenheit
# p pressure in psia
Vwp = (-1.95301E-9 * p * temp) - (1.72834E-13 * (p**2) * temp) - (3.588922E-7 * p) - (2.25341E-10 * p**2)
Vwt = (-1E-2) + (1.33391E-2 * temp) + (5.50654E-7 * temp**2)
Bw = (1 + Vwt) * (1 + Vwp)
return(Bw)
| 33.444444 | 107 | 0.524917 |
cfc917659c598b9f2aa9c65e7f6160274733ada1 | 3,258 | py | Python | pcfv/networks/UNet.py | jiayangshi/pcf | 1e3c5847bdb4100f60b7251cefb9cfe7a76c3c64 | [
"MIT"
] | null | null | null | pcfv/networks/UNet.py | jiayangshi/pcf | 1e3c5847bdb4100f60b7251cefb9cfe7a76c3c64 | [
"MIT"
] | null | null | null | pcfv/networks/UNet.py | jiayangshi/pcf | 1e3c5847bdb4100f60b7251cefb9cfe7a76c3c64 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from pcfv.layers.ConvBlock import ConvBlock
from pcfv.layers.ScalingBlock import ScalingBlock | 47.911765 | 134 | 0.7124 |
cfcb567563b3d4494c056cf9b6b3cc3c9bd24ae3 | 12,191 | py | Python | core/models/bev_speed_model.py | timothijoe/DI-drive | 3cddefc85bbbca6bcdd8a4d796decacaf8d81778 | [
"Apache-2.0"
] | null | null | null | core/models/bev_speed_model.py | timothijoe/DI-drive | 3cddefc85bbbca6bcdd8a4d796decacaf8d81778 | [
"Apache-2.0"
] | null | null | null | core/models/bev_speed_model.py | timothijoe/DI-drive | 3cddefc85bbbca6bcdd8a4d796decacaf8d81778 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
from typing import Dict, Optional, Tuple, List, Union
from ding.torch_utils import MLP
| 37.860248 | 118 | 0.618817 |
cfcd1eaf4baa629441933c1fc83033c5ec5c7761 | 351 | py | Python | chapter5/source code/show-descriptors.py | gabrielmahia/ushuhudAI | ee40c9822852f66c6111d1d485dc676b6da70677 | [
"MIT"
] | 74 | 2020-05-19T01:08:03.000Z | 2022-03-31T14:00:41.000Z | chapter5/source code/show-descriptors.py | gabrielmahia/ushuhudAI | ee40c9822852f66c6111d1d485dc676b6da70677 | [
"MIT"
] | 1 | 2021-06-04T06:08:21.000Z | 2021-06-04T06:08:21.000Z | chapter5/source code/show-descriptors.py | gabrielmahia/ushuhudAI | ee40c9822852f66c6111d1d485dc676b6da70677 | [
"MIT"
] | 47 | 2020-05-05T12:06:31.000Z | 2022-03-10T04:45:01.000Z | from stem.descriptor.remote import DescriptorDownloader
downloader = DescriptorDownloader()
descriptors = downloader.get_consensus().run()
for descriptor in descriptors:
print('Nickname:',descriptor.nickname)
print('Fingerprint:',descriptor.fingerprint)
print('Address:',descriptor.address)
print('Band... | 29.25 | 55 | 0.777778 |
cfce448de4932fcdd0211b3f96ebcde12de01549 | 920 | py | Python | python/examples/_paramiko.py | mr-uuid/snippets | 49bb59641d8160d7635b8d5e574cb50f9e5362e2 | [
"MIT"
] | null | null | null | python/examples/_paramiko.py | mr-uuid/snippets | 49bb59641d8160d7635b8d5e574cb50f9e5362e2 | [
"MIT"
] | 1 | 2021-03-10T04:00:01.000Z | 2021-03-10T04:00:01.000Z | python/examples/_paramiko.py | mr-uuid/snippets | 49bb59641d8160d7635b8d5e574cb50f9e5362e2 | [
"MIT"
] | null | null | null | import getpass
import paramiko
hostname('localhost', '529567')
| 27.878788 | 72 | 0.619565 |
cfcf530f45cfc31304305ccd0a5618dda6f958ac | 1,266 | py | Python | perception/manage.py | ramaneswaran/perception | 045b85634412355d66b2db6a102a97796c9aa11f | [
"Apache-2.0"
] | 1 | 2021-04-14T10:58:13.000Z | 2021-04-14T10:58:13.000Z | perception/manage.py | shivamsaraswat8/perception | 045b85634412355d66b2db6a102a97796c9aa11f | [
"Apache-2.0"
] | null | null | null | perception/manage.py | shivamsaraswat8/perception | 045b85634412355d66b2db6a102a97796c9aa11f | [
"Apache-2.0"
] | 1 | 2021-04-10T18:02:45.000Z | 2021-04-10T18:02:45.000Z | import os
from sqlalchemy.orm import Session
from perception.database import SessionLocal, engine
from perception import models, schemas
from perception.core.faiss_helper import FaissCore
models.Base.metadata.create_all(bind=engine)
# Dependency
if __name__ == "__main__":
db = db = SessionLocal()
indexes ... | 23.018182 | 86 | 0.666667 |
cfd03e2de858927a123e0392f69647b19f5245c3 | 3,462 | py | Python | lamblayer/init.py | YU-SUKETAKAHASHI/lamblayer | 5650235d16a40c41e8395a1fae7484c8c297e2ef | [
"MIT"
] | 7 | 2021-12-24T03:51:28.000Z | 2022-01-31T02:50:46.000Z | lamblayer/init.py | YU-SUKETAKAHASHI/lamblayer | 5650235d16a40c41e8395a1fae7484c8c297e2ef | [
"MIT"
] | null | null | null | lamblayer/init.py | YU-SUKETAKAHASHI/lamblayer | 5650235d16a40c41e8395a1fae7484c8c297e2ef | [
"MIT"
] | null | null | null | import os
import json
import requests
import click
from .lamblayer import Lamblayer
| 28.85 | 82 | 0.590699 |
cfd0af6f971f3ce7bf05347862e1f5a1232a4e5f | 3,135 | py | Python | deadunits/model_load.py | google-research/deadunits | 5f4c7d9dc0201cefeb3dc970bcaee66a78cfa423 | [
"Apache-2.0"
] | 3 | 2021-04-01T02:52:04.000Z | 2021-11-05T15:48:43.000Z | deadunits/model_load.py | google-research/deadunits | 5f4c7d9dc0201cefeb3dc970bcaee66a78cfa423 | [
"Apache-2.0"
] | null | null | null | deadunits/model_load.py | google-research/deadunits | 5f4c7d9dc0201cefeb3dc970bcaee66a78cfa423 | [
"Apache-2.0"
] | 2 | 2021-11-05T15:45:30.000Z | 2022-01-16T11:50:00.000Z | # coding=utf-8
# Copyright 2021 The Deadunits Authors.
#
# 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... | 37.321429 | 80 | 0.717384 |
cfd382c12e449f2aff45f8f06e3114ca6cda9658 | 1,077 | py | Python | programme/migrations/0076_auto_20190207_1753.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 13 | 2015-11-29T12:19:12.000Z | 2021-02-21T15:42:11.000Z | programme/migrations/0076_auto_20190207_1753.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 23 | 2015-04-29T19:43:34.000Z | 2021-02-10T05:50:17.000Z | programme/migrations/0076_auto_20190207_1753.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 11 | 2015-09-20T18:59:00.000Z | 2020-02-07T08:47:34.000Z | # Generated by Django 2.1.5 on 2019-02-07 15:53
from django.db import migrations, models
import django.db.models.deletion
| 34.741935 | 163 | 0.64624 |
cfd4d7c0086556f8eca75a77d9aa25874ed6b8b1 | 587 | py | Python | mentorbot/MentorRequests/urls.py | MentorBot/Webhook | 696ce15f41d1c15a6cae336c41f3e56e4a3e5056 | [
"Unlicense"
] | 2 | 2018-06-04T10:46:09.000Z | 2020-06-02T14:48:44.000Z | mentorbot/MentorRequests/urls.py | MentorBot/Webhook | 696ce15f41d1c15a6cae336c41f3e56e4a3e5056 | [
"Unlicense"
] | 4 | 2018-07-18T13:16:50.000Z | 2021-09-07T23:41:25.000Z | mentorbot/MentorRequests/urls.py | MentorBot/Webhook | 696ce15f41d1c15a6cae336c41f3e56e4a3e5056 | [
"Unlicense"
] | null | null | null | from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from .views import CreateView, ListView, RetrieveView, DestroyView, UpdateView
urlpatterns = {
url(r'^mentorrequests/$', CreateView.as_view(), name="create"),
url(r'^mentorrequests/$', ListView.as_view(), name="list... | 39.133333 | 78 | 0.735945 |
cfd4fb606ff1d4d7e97383391e3aac4284986abd | 4,012 | py | Python | scripts/generate_topk.py | sarapapi/FBK-fairseq-ST | 33f381937c1589602944da8cf39e533802d283ca | [
"MIT"
] | 11 | 2021-02-28T23:33:18.000Z | 2022-02-11T20:42:18.000Z | scripts/generate_topk.py | sarapapi/FBK-fairseq-ST | 33f381937c1589602944da8cf39e533802d283ca | [
"MIT"
] | 1 | 2021-05-21T08:08:19.000Z | 2021-06-30T12:28:55.000Z | scripts/generate_topk.py | sarapapi/FBK-fairseq-ST | 33f381937c1589602944da8cf39e533802d283ca | [
"MIT"
] | 5 | 2021-03-15T02:05:38.000Z | 2022-02-14T09:20:20.000Z | import logging
import os
import torch
import numpy as np
from fairseq import utils, options, tasks, progress_bar, checkpoint_utils
from fairseq.data.knowledge_distillation import TeacherOutputDataset
logger = logging.getLogger(__name__)
if __name__ == '__main__':
parser = options.get_generation_parser()
... | 38.209524 | 102 | 0.662512 |
cfd56d6ececcc1cd67817258728c7adf9fc34aee | 1,796 | py | Python | vagrant/catalog/database_setup.py | sxw031/fullstack-nanodegree-vm | ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e | [
"MIT"
] | null | null | null | vagrant/catalog/database_setup.py | sxw031/fullstack-nanodegree-vm | ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e | [
"MIT"
] | null | null | null | vagrant/catalog/database_setup.py | sxw031/fullstack-nanodegree-vm | ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e | [
"MIT"
] | null | null | null | import os, sys
from sqlalchemy import Column, ForeignKey, Integer, String, Unicode
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
# from sqlalchemy_imageattach.entity import Image, image_attachment
from sqlalchemy import create_engine
Base = declarative_base()
#### i... | 23.324675 | 67 | 0.716036 |
cfd6ca41e1b805ea3a585af7c332ce47525812b5 | 9,903 | py | Python | catkin_ws/src/patrolling_node/src/patrolling_node_test.py | championway/DuckietownPi2 | ab80ec901ab50337b5f20c9652bc7b8503e2a348 | [
"CC-BY-2.0"
] | 1 | 2019-11-12T14:06:06.000Z | 2019-11-12T14:06:06.000Z | catkin_ws/src/patrolling_node/src/patrolling_node_test.py | championway/DuckietownPi3_NCTU | ab80ec901ab50337b5f20c9652bc7b8503e2a348 | [
"CC-BY-2.0"
] | null | null | null | catkin_ws/src/patrolling_node/src/patrolling_node_test.py | championway/DuckietownPi3_NCTU | ab80ec901ab50337b5f20c9652bc7b8503e2a348 | [
"CC-BY-2.0"
] | null | null | null | #!/usr/bin/env python
import rospkg
import rospy
import yaml
from std_msgs.msg import Int8
from duckietown_msgs.msg import PatrolBot, BoolStamped, RobotName
import numpy as np
import tf.transformations as tr
from geometry_msgs.msg import PoseStamped
import time
if __name__ == '__main__':
rospy.init_node('Patrolli... | 35.880435 | 104 | 0.553065 |
cfd6ee08050d84e7c5fe8334aa7dac72cbb2dd09 | 125 | py | Python | data/module/util/got/manager/__init__.py | williamducfer/eras | d85b8b53431f4416152e3f536bc8c99481a63dd7 | [
"MIT"
] | 1 | 2020-09-09T19:51:44.000Z | 2020-09-09T19:51:44.000Z | data/module/util/got/manager/__init__.py | williamducfer/eras | d85b8b53431f4416152e3f536bc8c99481a63dd7 | [
"MIT"
] | null | null | null | data/module/util/got/manager/__init__.py | williamducfer/eras | d85b8b53431f4416152e3f536bc8c99481a63dd7 | [
"MIT"
] | 2 | 2021-09-11T07:31:19.000Z | 2022-03-17T16:27:10.000Z | from module.util.got.manager.TweetCriteria import TweetCriteria
from module.util.got.manager.TweetManager import TweetManager | 62.5 | 63 | 0.88 |
cfda4ec83b1837072ae82cc908a8914b6342956d | 2,332 | py | Python | counting_paths_in_matrix.py | Sem8/lambda_x_whiteboard | bffbbd281bc825b3d21ac0462b61e60e7f299fab | [
"MIT"
] | null | null | null | counting_paths_in_matrix.py | Sem8/lambda_x_whiteboard | bffbbd281bc825b3d21ac0462b61e60e7f299fab | [
"MIT"
] | null | null | null | counting_paths_in_matrix.py | Sem8/lambda_x_whiteboard | bffbbd281bc825b3d21ac0462b61e60e7f299fab | [
"MIT"
] | null | null | null | # generate an nxn matrix with cells above the diagonal blocked out
# receives a matrix and row and col parameters indicating the
# starting point in the matrix
# recursively traverses the given matrix, skipping over blocked cells
# counts the number of paths on the way to the opposite corner
'''
Below is a more ... | 32.84507 | 69 | 0.686535 |
cfdb04f375f82469afd2de9898e6269f06588e28 | 3,928 | py | Python | DTL/db/models/tablemodel.py | rocktavious/DevToolsLib | 117200c91a3361e04f7c8e07d2ed4999bbcfc469 | [
"MIT"
] | 1 | 2015-03-23T18:52:12.000Z | 2015-03-23T18:52:12.000Z | DTL/db/models/tablemodel.py | rocktavious/DevToolsLib | 117200c91a3361e04f7c8e07d2ed4999bbcfc469 | [
"MIT"
] | null | null | null | DTL/db/models/tablemodel.py | rocktavious/DevToolsLib | 117200c91a3361e04f7c8e07d2ed4999bbcfc469 | [
"MIT"
] | 2 | 2017-05-21T12:50:41.000Z | 2021-10-17T03:32:45.000Z | from DTL.qt import QtCore, QtGui
from DTL.qt.QtCore import Qt
#------------------------------------------------------------
#------------------------------------------------------------ | 33.862069 | 76 | 0.455448 |
cfdb1d30cc9bd9520aaaaae8ec7fdec44f23d872 | 38 | py | Python | HashableDict/__init__.py | IFcoltransG/HashableDict | d638176db7439e835e777241073433f496cabfcb | [
"Unlicense"
] | null | null | null | HashableDict/__init__.py | IFcoltransG/HashableDict | d638176db7439e835e777241073433f496cabfcb | [
"Unlicense"
] | null | null | null | HashableDict/__init__.py | IFcoltransG/HashableDict | d638176db7439e835e777241073433f496cabfcb | [
"Unlicense"
] | null | null | null | from HashableDict import HashableDict
| 19 | 37 | 0.894737 |
cfdb523e6cf5322fbb1c670fdab52365d64979a9 | 296 | py | Python | Prototype/BasicRsshUsb/main.py | school-ehayashi1/6-1-22-ReverseSshWithPythonSocketWithScripts | 154a49b1e670999249a468724f380b62d34b806d | [
"MIT"
] | null | null | null | Prototype/BasicRsshUsb/main.py | school-ehayashi1/6-1-22-ReverseSshWithPythonSocketWithScripts | 154a49b1e670999249a468724f380b62d34b806d | [
"MIT"
] | null | null | null | Prototype/BasicRsshUsb/main.py | school-ehayashi1/6-1-22-ReverseSshWithPythonSocketWithScripts | 154a49b1e670999249a468724f380b62d34b806d | [
"MIT"
] | null | null | null | import os
#https://stackoverflow.com/questions/3751900/create-file-path-from-variables
import subprocess
process = subprocess.Popen(['powershell','-c', 'Get -PSDrive -PSProvider "Filesystem"'], stderr=subprocess.PIPE, stdout=subprocess.PIPE)
stdout, stderr = process.communicate()
print(stdout)
| 37 | 136 | 0.783784 |
cfdb6aea4b5d0ec5643271d0d007024ceb0871a2 | 7,187 | py | Python | tests/emulator/test_line_handler.py | pp81381/nicett6 | addace8fbd5350105bf4fb27d1b485bb9cf20236 | [
"MIT"
] | null | null | null | tests/emulator/test_line_handler.py | pp81381/nicett6 | addace8fbd5350105bf4fb27d1b485bb9cf20236 | [
"MIT"
] | 1 | 2021-06-06T20:43:09.000Z | 2021-06-06T20:43:09.000Z | tests/emulator/test_line_handler.py | pp81381/nicett6 | addace8fbd5350105bf4fb27d1b485bb9cf20236 | [
"MIT"
] | null | null | null | import asyncio
from nicett6.emulator.cover_emulator import TT6CoverEmulator
from nicett6.emulator.line_handler import (
LineHandler,
CMD_STOP,
CMD_MOVE_DOWN,
CMD_MOVE_UP,
)
from nicett6.ttbus_device import TTBusDeviceAddress
from unittest import IsolatedAsyncioTestCase
from unittest.mock import AsyncMoc... | 39.489011 | 88 | 0.685265 |
cfdf0c6bda6c585e0df43df55f4fc477cd434baa | 455 | py | Python | harvest/__init__.py | reinhardt/python-harvest | 7691e345a73361708396532e8e5f4a4dc293c211 | [
"Apache-2.0"
] | 50 | 2015-01-14T17:22:27.000Z | 2022-01-15T22:07:13.000Z | harvest/__init__.py | reinhardt/python-harvest | 7691e345a73361708396532e8e5f4a4dc293c211 | [
"Apache-2.0"
] | 48 | 2015-01-31T20:07:40.000Z | 2021-09-14T06:47:39.000Z | harvest/__init__.py | reinhardt/python-harvest | 7691e345a73361708396532e8e5f4a4dc293c211 | [
"Apache-2.0"
] | 59 | 2015-01-31T15:14:24.000Z | 2021-09-14T06:15:24.000Z | # -*- coding: utf-8 -*-
"""
Harvest Time Tracking API Client
~~~~~~~~~~~~~~~~
:copyright: 2012 Aurora Software LLC
:license: Apache 2.0, see LICENSE for more details.
"""
from .metadata import (
__author__,
__copyright__,
__email__,
__license__,
__maintainer__,
__version__,
)
from .harvest ... | 17.5 | 62 | 0.641758 |
cfe0414c8157e5f726b4a1a487bb20c7b5854909 | 706 | py | Python | wendy/models/seeds/chair.py | AIFI-INC/wendy-framework | e752748428dad550eb9fa1833571c721c089bbc6 | [
"Apache-2.0"
] | null | null | null | wendy/models/seeds/chair.py | AIFI-INC/wendy-framework | e752748428dad550eb9fa1833571c721c089bbc6 | [
"Apache-2.0"
] | 5 | 2021-12-11T18:39:59.000Z | 2021-12-12T02:34:25.000Z | wendy/models/seeds/chair.py | AIFI-INC/wendy-framework | e752748428dad550eb9fa1833571c721c089bbc6 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import asyncio
from faker import Faker
faker = Faker()
sys.path.insert(0, os.path.abspath(os.curdir))
from config import init_db
from wendy.models import *
__all__ = [
'ChairFaker',
'seed_chair'
]
| 19.081081 | 46 | 0.594901 |
cfe103929d40cc1fd5b17a3bd2751486f8d91d6a | 3,814 | py | Python | tasks/outlooksend.py | cmu-sei/usersim | 0a90e1c2f32ce27bbb564c7196050c50409989dd | [
"BSL-1.0"
] | 10 | 2018-05-07T07:52:51.000Z | 2021-09-04T05:34:46.000Z | tasks/outlooksend.py | cmu-sei/usersim | 0a90e1c2f32ce27bbb564c7196050c50409989dd | [
"BSL-1.0"
] | null | null | null | tasks/outlooksend.py | cmu-sei/usersim | 0a90e1c2f32ce27bbb564c7196050c50409989dd | [
"BSL-1.0"
] | 4 | 2018-04-09T17:59:13.000Z | 2019-11-17T01:33:35.000Z | # Copyright 2017 Carnegie Mellon University. See LICENSE.md file for terms.
import platform
try:
import win32com.client
except ImportError:
# Tasks must be importable on any platform.
pass
import api
from tasks import outlook
| 34.990826 | 115 | 0.640535 |
cfe226a8bc6ece89901ec8ede5be41c0f659536f | 5,093 | py | Python | tools/cFS-GroundSystem/Subsystems/cmdGui/Ui_ParameterDialog.py | ammarrm/cFS_MSTAR | f7d59eec4a445bb8572d01a580c043ec7a33df44 | [
"Apache-2.0"
] | 2 | 2021-09-11T18:55:33.000Z | 2021-11-08T11:29:58.000Z | tools/cFS-GroundSystem/Subsystems/cmdGui/Ui_ParameterDialog.py | ammarrm/cFS_MSTAR | f7d59eec4a445bb8572d01a580c043ec7a33df44 | [
"Apache-2.0"
] | null | null | null | tools/cFS-GroundSystem/Subsystems/cmdGui/Ui_ParameterDialog.py | ammarrm/cFS_MSTAR | f7d59eec4a445bb8572d01a580c043ec7a33df44 | [
"Apache-2.0"
] | 1 | 2021-04-23T04:26:08.000Z | 2021-04-23T04:26:08.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/lbleier/cFS/tools/cFS-GroundSystem/Subsystems/cmdGui/ParameterDialog.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
| 53.610526 | 132 | 0.721186 |
cfe2c328ca281e6e8df6b265c3b65ba3bcd9631d | 1,936 | py | Python | deeplite/profiler/evaluate.py | Deeplite/deeplite-profiler | 2b21c0dc5948606c47377f786b605baf4fa31bee | [
"Apache-2.0"
] | 17 | 2021-04-13T06:09:52.000Z | 2021-11-24T06:39:41.000Z | deeplite/profiler/evaluate.py | Deeplite/deeplite-profiler | 2b21c0dc5948606c47377f786b605baf4fa31bee | [
"Apache-2.0"
] | 14 | 2021-04-14T13:46:42.000Z | 2021-12-20T21:10:25.000Z | deeplite/profiler/evaluate.py | Deeplite/deeplite-profiler | 2b21c0dc5948606c47377f786b605baf4fa31bee | [
"Apache-2.0"
] | 7 | 2021-04-09T16:47:56.000Z | 2022-03-05T11:04:30.000Z | from abc import ABC, abstractmethod
from .utils import Device, cast_tuple
| 35.851852 | 105 | 0.595041 |
cfe2fe297fd7bf90005dc5ad2f8cbaac94d7c10e | 213 | py | Python | desafio 013.py | KelvinAraujo/Python | 8bf05153838b603bcc51d363ad17aecb8ea8bdd2 | [
"MIT"
] | null | null | null | desafio 013.py | KelvinAraujo/Python | 8bf05153838b603bcc51d363ad17aecb8ea8bdd2 | [
"MIT"
] | null | null | null | desafio 013.py | KelvinAraujo/Python | 8bf05153838b603bcc51d363ad17aecb8ea8bdd2 | [
"MIT"
] | null | null | null | salario = float(input('\033[32m Quanto o salrio? R$'))
novo = salario + (salario * 15 / 100)
print('\033[36m Um funcionrio que ganhava R${:.2f}, com aumento de 15% agora recebe R${:.2f}'.format(salario,novo))
| 53.25 | 116 | 0.676056 |
cfe33bb33e5b79b0415e45d5133e48665bc5bedc | 236 | py | Python | creat_name.py | Eric3911/miniDetection | 6fb6e1bce3ab6e4adb832b37e78325803c7424b6 | [
"MIT"
] | 70 | 2019-01-07T09:45:46.000Z | 2020-04-22T01:09:41.000Z | creat_name.py | Eric3911/mini-SSD | 6fb6e1bce3ab6e4adb832b37e78325803c7424b6 | [
"MIT"
] | null | null | null | creat_name.py | Eric3911/mini-SSD | 6fb6e1bce3ab6e4adb832b37e78325803c7424b6 | [
"MIT"
] | 24 | 2019-01-07T09:56:48.000Z | 2019-04-02T03:42:03.000Z | #2
import os
imglst = os.listdir("./annotations/xmls/")
with open("./annotations/trainval_person.txt","w") as ff:
for img_path in imglst:
name = img_path.split(".")[0]
print(name)
ff.write(name+"\n") | 29.5 | 57 | 0.622881 |
cfe3d87776cd3825a075db83aacd350f318e2832 | 2,146 | py | Python | monoweb/mono/cache.py | ragnraok/MonoReader | 4672f5f0ca48f69e9180b33b62e773ab323c2cbc | [
"MIT"
] | 1 | 2019-06-12T01:46:22.000Z | 2019-06-12T01:46:22.000Z | monoweb/mono/cache.py | ragnraok/MonoReader | 4672f5f0ca48f69e9180b33b62e773ab323c2cbc | [
"MIT"
] | null | null | null | monoweb/mono/cache.py | ragnraok/MonoReader | 4672f5f0ca48f69e9180b33b62e773ab323c2cbc | [
"MIT"
] | null | null | null | from flask import current_app
import pickle
import os
import time
import fcntl
CACHE_FILE = "disk_cache"
cache = SimpleCache.create_instance()
| 28.613333 | 85 | 0.55918 |
cfe5ffbaebbe5bd0914a0d5d09fc0b8e3446928a | 140 | py | Python | extra_foam/database/__init__.py | scottwedge/EXtra-foam | 9a170e3097987bf8abf30abb64a52439624367b8 | [
"BSD-3-Clause"
] | null | null | null | extra_foam/database/__init__.py | scottwedge/EXtra-foam | 9a170e3097987bf8abf30abb64a52439624367b8 | [
"BSD-3-Clause"
] | null | null | null | extra_foam/database/__init__.py | scottwedge/EXtra-foam | 9a170e3097987bf8abf30abb64a52439624367b8 | [
"BSD-3-Clause"
] | null | null | null | from .metadata import Metadata, MetaProxy
from .mondata import MonProxy
from .data_source import DataTransformer, SourceCatalog, SourceItem
| 35 | 67 | 0.85 |
cfe6445a17d673248005f5bca926ac3f9b7ef028 | 1,806 | py | Python | server/db/models/user.py | tetelevm/OrdeRPG | 5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab | [
"MIT"
] | null | null | null | server/db/models/user.py | tetelevm/OrdeRPG | 5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab | [
"MIT"
] | null | null | null | server/db/models/user.py | tetelevm/OrdeRPG | 5bea9fbaf3fdd84ab14f7e3033e18eead2cf30ab | [
"MIT"
] | null | null | null | """
User models, which are responsible for authorization and all of the
user's business data.
"""
from sqlalchemy import func
from server.framework.db import (
attribute_presetter,
BaseModel,
)
from server.framework.db.fields import (
IntegerField,
StringField,
DateTimeField,
RandomStringField,... | 26.558824 | 69 | 0.704319 |
cfe927bd7ca7e8f24aafb7b3f14f3e83885d3a2b | 27 | py | Python | src/sc3nb/resources/__init__.py | interactive-sonification/sc3nb | c6081ae01f4e72094b6cb6dbd9667278c8d21069 | [
"MIT"
] | 7 | 2021-08-02T12:57:13.000Z | 2022-02-16T08:54:23.000Z | src/sc3nb/resources/__init__.py | thomas-hermann/sc3nb | 7d7fbd9178fe804c5c8ddd0ddd4075579221b7c4 | [
"MIT"
] | 3 | 2019-08-09T17:56:18.000Z | 2020-10-24T13:05:47.000Z | src/sc3nb/resources/__init__.py | thomas-hermann/sc3nb | 7d7fbd9178fe804c5c8ddd0ddd4075579221b7c4 | [
"MIT"
] | 6 | 2019-04-18T17:25:42.000Z | 2020-04-28T09:43:33.000Z | """Module for resources"""
| 13.5 | 26 | 0.666667 |
cfe9564e19eb5444e93954e93924e5e1836deed2 | 139 | py | Python | national_id/admin.py | AhmedElmougy/national-id-validator | 27d81cd6e3ef556074c0fd5097db0537fd2114c2 | [
"BSD-3-Clause"
] | 1 | 2021-06-24T08:31:44.000Z | 2021-06-24T08:31:44.000Z | national_id/admin.py | AhmedElmougy/national-id-validator | 27d81cd6e3ef556074c0fd5097db0537fd2114c2 | [
"BSD-3-Clause"
] | null | null | null | national_id/admin.py | AhmedElmougy/national-id-validator | 27d81cd6e3ef556074c0fd5097db0537fd2114c2 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from national_id.models import NationalId
# Register your models here.
admin.site.register(NationalId)
| 17.375 | 41 | 0.820144 |
cfebdc0f6cd106411e690aa30a03ad7d8289dd06 | 251 | py | Python | pynovice/gaode_map/__init__.py | wqwangchn/novice | d52190a9cd5045726e49aff8610b718636c304c7 | [
"MIT"
] | 2 | 2020-06-28T08:30:47.000Z | 2020-11-04T07:55:42.000Z | pynovice/gaode_map/__init__.py | wqwangchn/novice | d52190a9cd5045726e49aff8610b718636c304c7 | [
"MIT"
] | 8 | 2020-11-13T18:56:02.000Z | 2022-02-10T03:16:52.000Z | pynovice/gaode_map/__init__.py | wqwangchn/novice | d52190a9cd5045726e49aff8610b718636c304c7 | [
"MIT"
] | 2 | 2020-09-17T00:12:36.000Z | 2020-11-04T07:55:55.000Z | # coding=utf-8
# /usr/bin/env python
'''
Author: wenqiangw
Email: wenqiangw@opera.com
Date: 2020-07-28 15:07
Desc:
'''
from .trajectory_playback import Trajectory as Trajectory_his
from .trajectory_playback_v2 import Trajectory as Trajectory | 19.307692 | 61 | 0.784861 |
cfed38f69dc3fe98cfb032a42e95725930455fd7 | 87 | py | Python | lectures/code/numpy_scalar_ops.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 4 | 2015-08-10T17:46:55.000Z | 2020-04-18T21:09:03.000Z | lectures/code/numpy_scalar_ops.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | null | null | null | lectures/code/numpy_scalar_ops.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 2 | 2019-04-24T03:31:02.000Z | 2019-05-13T07:36:06.000Z | A = np.ones((3,3))
print 3 * A - 1
# [[ 2. 2. 2.]
# [ 2. 2. 2.]
# [ 2. 2. 2.]] | 14.5 | 18 | 0.298851 |
cfed61c9b170b49c4d5f7fdd3356dd67308b7946 | 5,901 | py | Python | fnn.py | Yanjing-PENG/feedforward-neural-network | 0ef94c172fdd4773beb6e7ca26e5c944a97f84de | [
"MIT"
] | null | null | null | fnn.py | Yanjing-PENG/feedforward-neural-network | 0ef94c172fdd4773beb6e7ca26e5c944a97f84de | [
"MIT"
] | null | null | null | fnn.py | Yanjing-PENG/feedforward-neural-network | 0ef94c172fdd4773beb6e7ca26e5c944a97f84de | [
"MIT"
] | null | null | null | """
This program builds a two-layer neural network for the Iris dataset.
The first layer is a relu layer with 10 units, and the second one is
a softmax layer. The network structure is specified in the "train" function.
The parameters are learned using SGD. The forward propagation and backward
propagation are carri... | 30.261538 | 101 | 0.604304 |
cfeff2979c260def21d3497db63dd0e2915c929e | 3,021 | py | Python | src/commands/context_create_override.py | EatBreatheCode/sublime_override_audit | 4170bccc88e5442e18f337e291b771769b00d3c4 | [
"MIT"
] | 31 | 2017-01-28T10:08:12.000Z | 2021-06-01T06:57:27.000Z | src/commands/context_create_override.py | EatBreatheCode/sublime_override_audit | 4170bccc88e5442e18f337e291b771769b00d3c4 | [
"MIT"
] | 34 | 2017-02-03T14:47:00.000Z | 2020-05-27T05:48:09.000Z | src/commands/context_create_override.py | EatBreatheCode/sublime_override_audit | 4170bccc88e5442e18f337e291b771769b00d3c4 | [
"MIT"
] | 8 | 2017-02-03T08:31:36.000Z | 2022-02-26T20:13:43.000Z | import sublime
import sublime_plugin
from os.path import isfile
from ..core import oa_setting, setup_new_override_view
from ..core import PackageListCollectionThread, ContextHelper
###----------------------------------------------------------------------------
###--------------------------------------------------... | 37.7625 | 92 | 0.617014 |
cff1461f14e1b3e15b0d50f0e2b63bd501d06025 | 2,557 | py | Python | nicos_mlz/pgaa/devices/sampledevices.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos_mlz/pgaa/devices/sampledevices.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos_mlz/pgaa/devices/sampledevices.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | # -*- coding: utf-8 -*-
# *****************************************************************************
# NICOS, the Networked Instrument Control System of the MLZ
# Copyright (c) 2009-2022 by the NICOS contributors (see AUTHORS)
#
# This program is free software; you can redistribute it and/or modify it under
# the t... | 37.057971 | 79 | 0.625342 |
cff1495f394175c6790d78adf453d9a0c02b8fdf | 685 | py | Python | leetcode-python/num179.py | shuaizi/leetcode | c943410575f380a00335bf5ac8d361af53a92d78 | [
"Apache-2.0"
] | null | null | null | leetcode-python/num179.py | shuaizi/leetcode | c943410575f380a00335bf5ac8d361af53a92d78 | [
"Apache-2.0"
] | null | null | null | leetcode-python/num179.py | shuaizi/leetcode | c943410575f380a00335bf5ac8d361af53a92d78 | [
"Apache-2.0"
] | null | null | null | __author__ = 'shuai'
sol = Solution()
print sol.largestNumber([3, 30, 34, 5, 9])
| 27.4 | 50 | 0.437956 |
cff1bfd2524009743a7797d9402b729d8f50fc4a | 1,907 | py | Python | lama/tests/test_data_generation.py | antshp-vc/LAMA | 2cef058cae160d775fbacd65bff717f10330475a | [
"Apache-2.0"
] | null | null | null | lama/tests/test_data_generation.py | antshp-vc/LAMA | 2cef058cae160d775fbacd65bff717f10330475a | [
"Apache-2.0"
] | null | null | null | lama/tests/test_data_generation.py | antshp-vc/LAMA | 2cef058cae160d775fbacd65bff717f10330475a | [
"Apache-2.0"
] | null | null | null | """
Test the steps needed to generate wild type and mutant data for use in the statistical analysis
Usage: pytest -v -m "not notest" test_data_generation.py
The use of -m "not notest" is to be able to omit certain tests with the @pytest.mark.notest decorator
"""
from pathlib import Path
from lama.registration_pipeli... | 33.45614 | 114 | 0.750393 |
cff38ffb9953a78d832f2d9e41f612523b84e3e1 | 4,265 | py | Python | custom_components/pioneer_async/config_flow.py | 2t0m/ha-pioneer_async | bc0361536b257eb9059c0ba5cfa6103e1907f8cb | [
"Apache-2.0"
] | null | null | null | custom_components/pioneer_async/config_flow.py | 2t0m/ha-pioneer_async | bc0361536b257eb9059c0ba5cfa6103e1907f8cb | [
"Apache-2.0"
] | null | null | null | custom_components/pioneer_async/config_flow.py | 2t0m/ha-pioneer_async | bc0361536b257eb9059c0ba5cfa6103e1907f8cb | [
"Apache-2.0"
] | null | null | null | """Config flow for pioneer_async integration."""
import logging
import voluptuous as vol
from homeassistant import config_entries, core, exceptions
from homeassistant.const import (
CONF_HOST,
CONF_PORT,
CONF_SCAN_INTERVAL,
CONF_TIMEOUT,
)
from homeassistant.core import callback
from .pioneer_avr imp... | 32.807692 | 97 | 0.637749 |
cff54bf21d2c7f73c7e6e904fd48c71ab9313a53 | 253 | py | Python | invitation/admin.py | volrath/django-invitation-backend | aaab733be53c3626efcb762f5a85793a0963e876 | [
"BSD-3-Clause"
] | 1 | 2019-06-27T13:58:43.000Z | 2019-06-27T13:58:43.000Z | invitation/admin.py | volrath/django-invitation-backend | aaab733be53c3626efcb762f5a85793a0963e876 | [
"BSD-3-Clause"
] | null | null | null | invitation/admin.py | volrath/django-invitation-backend | aaab733be53c3626efcb762f5a85793a0963e876 | [
"BSD-3-Clause"
] | 3 | 2015-03-29T17:45:02.000Z | 2021-05-10T15:49:40.000Z | from __future__ import absolute_import
from django.contrib import admin
from .models import Invitation
admin.site.register(Invitation, InvitationAdmin)
| 23 | 55 | 0.798419 |