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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da9c32550a9fe6767f3bd9291dc45afe7ed04511 | 1,022 | py | Python | 4-Matrix.py | macerman/Open-CV | 8a2bc35ba2610186fe2a38006b2ebbb3efbce31e | [
"MIT"
] | 1 | 2021-10-03T15:39:12.000Z | 2021-10-03T15:39:12.000Z | 4-Matrix.py | macerman/Open-CV | 8a2bc35ba2610186fe2a38006b2ebbb3efbce31e | [
"MIT"
] | null | null | null | 4-Matrix.py | macerman/Open-CV | 8a2bc35ba2610186fe2a38006b2ebbb3efbce31e | [
"MIT"
] | null | null | null | #--SHAPES and TEXTS--#
import cv2
import numpy as np
#We are going to use the numpy library to create our matrix
#0 stands for black and 1 stands for white
img = np.zeros((512,512,3),np.uint8) # (height,width) and the channel, it gives us value range 0-255
#print(img)
#img[200:300,100:300] = 255,0,0 #whole... | 46.454545 | 146 | 0.702544 |
da9c744f01492e5c7e07b094dd505208cdc0b47e | 537 | py | Python | searching/migrations/0005_search_bgetbuyitnows.py | netvigator/auctions | f88bcce800b60083a5d1a6f272c51bb540b8342a | [
"MIT"
] | null | null | null | searching/migrations/0005_search_bgetbuyitnows.py | netvigator/auctions | f88bcce800b60083a5d1a6f272c51bb540b8342a | [
"MIT"
] | 13 | 2019-12-12T03:07:55.000Z | 2022-03-07T12:59:27.000Z | searching/migrations/0005_search_bgetbuyitnows.py | netvigator/auctions | f88bcce800b60083a5d1a6f272c51bb540b8342a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-04-19 21:02
from django.db import migrations, models
| 28.263158 | 193 | 0.653631 |
da9d0db8f865914eac04d927174c4c8c9aee13a1 | 2,529 | py | Python | src/api/meta/utils/basicapi/basic.py | Chromico/bk-base | be822d9bbee544a958bed4831348185a75604791 | [
"MIT"
] | 84 | 2021-06-30T06:20:23.000Z | 2022-03-22T03:05:49.000Z | src/api/meta/utils/basicapi/basic.py | Chromico/bk-base | be822d9bbee544a958bed4831348185a75604791 | [
"MIT"
] | 7 | 2021-06-30T06:21:16.000Z | 2022-03-29T07:36:13.000Z | src/api/meta/utils/basicapi/basic.py | Chromico/bk-base | be822d9bbee544a958bed4831348185a75604791 | [
"MIT"
] | 40 | 2021-06-30T06:21:26.000Z | 2022-03-29T12:42:26.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE is licensed under the MIT License.
License for BK-BASE :
---------------------------------------------------------------... | 43.603448 | 111 | 0.666271 |
da9d33ba0b4d6c74e9ba8ed957a47b3c3fe0d9a0 | 6,583 | py | Python | src/ebay_rest/api/sell_fulfillment/models/ebay_tax_reference.py | matecsaj/ebay_rest | dd23236f39e05636eff222f99df1e3699ce47d4a | [
"MIT"
] | 3 | 2021-12-12T04:28:03.000Z | 2022-03-10T03:29:18.000Z | src/ebay_rest/api/sell_fulfillment/models/ebay_tax_reference.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 33 | 2021-06-16T20:44:36.000Z | 2022-03-30T14:55:06.000Z | src/ebay_rest/api/sell_fulfillment/models/ebay_tax_reference.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 7 | 2021-06-03T09:30:23.000Z | 2022-03-08T19:51:33.000Z | # coding: utf-8
"""
Fulfillment API
Use the Fulfillment API to complete the process of packaging, addressing, handling, and shipping each order on behalf of the seller, in accordance with the payment method and timing specified at checkout. # noqa: E501
OpenAPI spec version: v1.19.10
Generated ... | 46.687943 | 796 | 0.622513 |
da9f2921df22097fb69234d41c092bdb2ea768d0 | 1,996 | py | Python | lista3/questao3.py | lucasmmassa/VisaoComputacional_PLE | 1a09e40e22f8ba6f6c39f2b513b9d36d62db6979 | [
"MIT"
] | null | null | null | lista3/questao3.py | lucasmmassa/VisaoComputacional_PLE | 1a09e40e22f8ba6f6c39f2b513b9d36d62db6979 | [
"MIT"
] | null | null | null | lista3/questao3.py | lucasmmassa/VisaoComputacional_PLE | 1a09e40e22f8ba6f6c39f2b513b9d36d62db6979 | [
"MIT"
] | 1 | 2020-11-11T00:09:51.000Z | 2020-11-11T00:09:51.000Z | import numpy as np
import cv2
import os
height = 9
width = 6
criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001)
cap = cv2.VideoCapture('q3_original_video.avi')
codec = cv2.VideoWriter_fourcc("X", "V", "I", "D")
frame_rate = 30
resolution = (640, 480)
writer = cv2.VideoWriter('q3_output_video... | 27.722222 | 124 | 0.608216 |
da9fedcec95d01c8e53d393706deeae7d3457d50 | 1,683 | py | Python | hetest/python/common/pickle_iter_test.py | y4n9squared/HEtest | 264459a8fa1480c7b65d946f88d94af1a038fbf1 | [
"BSD-2-Clause"
] | 6 | 2017-12-05T14:46:47.000Z | 2021-08-09T07:23:44.000Z | hetest/python/common/pickle_iter_test.py | CianLevy/Modified-HEtest | 4f4422bba48f269e953ca0d3863f774f66ba2247 | [
"BSD-2-Clause"
] | 1 | 2018-02-22T14:55:07.000Z | 2018-02-22T14:55:07.000Z | hetest/python/common/pickle_iter_test.py | CianLevy/Modified-HEtest | 4f4422bba48f269e953ca0d3863f774f66ba2247 | [
"BSD-2-Clause"
] | 2 | 2018-02-19T20:58:58.000Z | 2021-06-23T05:38:53.000Z | # *****************************************************************
# Copyright (c) 2013 Massachusetts Institute of Technology
#
# Developed exclusively at US Government expense under US Air Force contract
# FA8721-05-C-002. The rights of the United States Government to use, modify,
# reproduce, release, perform, displ... | 38.25 | 77 | 0.598336 |
daa45edb62a9b0dd58a047ce73574d275882680d | 2,942 | py | Python | coders/curso_python/poo/tarefa/test_tarefa_v2.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 2 | 2021-02-20T23:50:07.000Z | 2021-08-15T03:04:35.000Z | coders/curso_python/poo/tarefa/test_tarefa_v2.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 18 | 2019-08-07T02:33:00.000Z | 2021-03-18T22:52:38.000Z | coders/curso_python/poo/tarefa/test_tarefa_v2.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 2 | 2020-09-28T13:00:09.000Z | 2021-12-30T12:21:08.000Z | from unittest import TestCase
from datetime import datetime, timedelta
from tarefa_v2 import Tarefa, Projeto, TarefaNaoEncontrada
| 26.745455 | 76 | 0.645139 |
daa5da8d95129af0305b326832a557daeb4c5c9c | 3,426 | py | Python | python/paddle/fluid/tests/unittests/test_hsigmoid_op.py | skylarch/Paddle | d58d8df6f5f7aa6fd2f0780f87475055db57a80d | [
"Apache-2.0"
] | 1 | 2018-08-06T11:55:16.000Z | 2018-08-06T11:55:16.000Z | python/paddle/fluid/tests/unittests/test_hsigmoid_op.py | OYYF/Paddle | 0fd2f713a405de13cea6dde8e02b297a11c1991a | [
"Apache-2.0"
] | 3 | 2017-07-15T14:20:08.000Z | 2019-05-06T03:16:54.000Z | python/paddle/fluid/tests/unittests/test_hsigmoid_op.py | OYYF/Paddle | 0fd2f713a405de13cea6dde8e02b297a11c1991a | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 33.588235 | 79 | 0.6331 |
daa653fdc21a0be688aabf9338b59826c9898962 | 1,443 | py | Python | dopamine/generators/abstract_generator.py | K-Kielak/dopamine | f0bbc39825c7b769023901aa6c60e2b068390a42 | [
"Apache-2.0"
] | null | null | null | dopamine/generators/abstract_generator.py | K-Kielak/dopamine | f0bbc39825c7b769023901aa6c60e2b068390a42 | [
"Apache-2.0"
] | null | null | null | dopamine/generators/abstract_generator.py | K-Kielak/dopamine | f0bbc39825c7b769023901aa6c60e2b068390a42 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2019 Kacper Kielak.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 27.75 | 74 | 0.727651 |
daa69c301597d6d797130a75dae51de93366d56d | 19,233 | py | Python | pymatflow/qe/tddfpt.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 6 | 2020-03-06T16:13:08.000Z | 2022-03-09T07:53:34.000Z | pymatflow/qe/tddfpt.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-10-02T02:23:08.000Z | 2021-11-08T13:29:37.000Z | pymatflow/qe/tddfpt.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-07-10T16:28:14.000Z | 2021-07-10T16:28:14.000Z | """
TDDFPT calc
"""
import os
import re
import sys
import shutil
from pymatflow.remote.server import server_handle
| 52.54918 | 137 | 0.53247 |
daa95a28c8c759904d3dbb59300973720b82f5b8 | 4,698 | py | Python | tests/users_tests/test_users_views.py | TomerNewmanPrograms/ResuMe | 9d9b7369625fcb044f91cde86c85c91fdaf44ddd | [
"MIT"
] | null | null | null | tests/users_tests/test_users_views.py | TomerNewmanPrograms/ResuMe | 9d9b7369625fcb044f91cde86c85c91fdaf44ddd | [
"MIT"
] | null | null | null | tests/users_tests/test_users_views.py | TomerNewmanPrograms/ResuMe | 9d9b7369625fcb044f91cde86c85c91fdaf44ddd | [
"MIT"
] | null | null | null | import pytest
from django.contrib.auth.models import User
from pytest_django.asserts import assertTemplateUsed
from conftest import USERNAME, PASSWORD
| 45.61165 | 97 | 0.668795 |
daaa32ed6257d767570db75e2edbf5e3f0a747e3 | 3,334 | py | Python | MonitoringService/service/tests/functional/alarm_test.py | Selfnet-5G/NBI | 2892ef8576c8e08d29f6b1134657ab37803de9ab | [
"Apache-2.0"
] | null | null | null | MonitoringService/service/tests/functional/alarm_test.py | Selfnet-5G/NBI | 2892ef8576c8e08d29f6b1134657ab37803de9ab | [
"Apache-2.0"
] | null | null | null | MonitoringService/service/tests/functional/alarm_test.py | Selfnet-5G/NBI | 2892ef8576c8e08d29f6b1134657ab37803de9ab | [
"Apache-2.0"
] | 1 | 2020-05-31T01:34:55.000Z | 2020-05-31T01:34:55.000Z | import json
from service.tests.functional import MonitoringTestCase
| 38.321839 | 107 | 0.594481 |
daaa7596b3d0aa0c5cb993e982109c43551d757a | 9,476 | py | Python | tests/test_config.py | jangroth/keydra | 9bab1b21e025ceb6ae074ea936d693e36efae5a4 | [
"MIT"
] | null | null | null | tests/test_config.py | jangroth/keydra | 9bab1b21e025ceb6ae074ea936d693e36efae5a4 | [
"MIT"
] | null | null | null | tests/test_config.py | jangroth/keydra | 9bab1b21e025ceb6ae074ea936d693e36efae5a4 | [
"MIT"
] | null | null | null | import copy
import unittest
from keydra.config import KeydraConfig
from keydra.exceptions import ConfigException
from unittest.mock import MagicMock
from unittest.mock import patch
ENVS = {
'dev': {
'description': 'AWS Development Environment',
'type': 'aws',
'access': 'dev',
'i... | 29.246914 | 78 | 0.517729 |
daae9bf2ea5f95bcc2f01d3079abada7f75730cc | 3,520 | py | Python | fibertree/codec/plot-energy.py | Fibertree-Project/fibertree | 6fbb1971c31fcc9b27e09591a1ee2d66ae0e7b76 | [
"MIT"
] | 2 | 2021-02-03T20:34:14.000Z | 2021-02-04T06:36:51.000Z | fibertree/codec/plot-energy.py | FPSG-UIUC/fibertree | 6fbb1971c31fcc9b27e09591a1ee2d66ae0e7b76 | [
"MIT"
] | 1 | 2021-06-19T02:59:01.000Z | 2021-06-23T13:20:11.000Z | fibertree/codec/plot-energy.py | FPSG-UIUC/fibertree | 6fbb1971c31fcc9b27e09591a1ee2d66ae0e7b76 | [
"MIT"
] | 1 | 2021-06-16T15:03:33.000Z | 2021-06-16T15:03:33.000Z | import matplotlib.pyplot as plt
import yaml
import sys
import os
import numpy as np
from matplotlib import colors as mcolors
colors = dict(mcolors.BASE_COLORS, **mcolors.CSS4_COLORS)
indir = sys.argv[1]
alldata = dict()
# go through and read all files with 'cache_'
for filename in os.listdir(indir):
if filename.st... | 29.830508 | 168 | 0.622443 |
daaf40a6e0a5cb830dd91fcd7e3b46efbcad6d4e | 13,714 | py | Python | common.py | hwase0ng/klseScrappers | 367ac86b603fad35c4983b04f9e72d4694d4bc31 | [
"MIT"
] | 3 | 2020-05-27T06:01:12.000Z | 2021-11-29T20:56:06.000Z | common.py | hwase0ng/klseScrappers | 367ac86b603fad35c4983b04f9e72d4694d4bc31 | [
"MIT"
] | 3 | 2020-03-08T14:45:16.000Z | 2021-12-13T19:47:14.000Z | common.py | hwase0ng/klseScrappers | 367ac86b603fad35c4983b04f9e72d4694d4bc31 | [
"MIT"
] | null | null | null | """
Created on Apr 27, 2018
@author: hwase0ng
"""
from BeautifulSoup import BeautifulSoup
from utils.dateutils import getToday, getDayOffset, generate_dates
from utils.fileutils import wc_line_count
from curses.ascii import isprint
import csv
import json
import requests
import sys
import settings as S
im... | 29.240938 | 130 | 0.521948 |
dab3e1c6581c8f08985eb8fced5aab49779be42f | 1,937 | py | Python | Face_recognition/original.py | rootadminWalker/Face-app | 1387763320e3f12a5233f654b10acb3d4da7e7ca | [
"MIT"
] | null | null | null | Face_recognition/original.py | rootadminWalker/Face-app | 1387763320e3f12a5233f654b10acb3d4da7e7ca | [
"MIT"
] | null | null | null | Face_recognition/original.py | rootadminWalker/Face-app | 1387763320e3f12a5233f654b10acb3d4da7e7ca | [
"MIT"
] | null | null | null | import dlib
import cv2
import pandas as pd
import numpy as np
import os
path = "./Users"
_shape_dat = "shape_predictor_68_face_landmarks.dat"
_face_dat = "dlib_face_recognition_resnet_model_v1.dat"
_detector = dlib.get_frontal_face_detector()
_predictor = dlib.shape_predictor(_shape_dat)
_recognizer = dlib.face_recog... | 25.826667 | 84 | 0.616417 |
dab57725712a508b42302afeae784419e51fb8f8 | 2,042 | py | Python | racing_models/bk/dronet_densenet121.py | gengliangyu2008/Intelligent-Navigation-Systems | b978ea48d8e8f5fe61a272c74741a9693eb1a997 | [
"MIT"
] | null | null | null | racing_models/bk/dronet_densenet121.py | gengliangyu2008/Intelligent-Navigation-Systems | b978ea48d8e8f5fe61a272c74741a9693eb1a997 | [
"MIT"
] | null | null | null | racing_models/bk/dronet_densenet121.py | gengliangyu2008/Intelligent-Navigation-Systems | b978ea48d8e8f5fe61a272c74741a9693eb1a997 | [
"MIT"
] | null | null | null | import tensorflow as tf
from tensorflow.keras import Model
from tensorflow.keras.layers import Input, Dense, Flatten, Conv2D, BatchNormalization, Lambda, Concatenate, Conv2DTranspose, Reshape, ReLU
from tensorflow.keras.applications import DenseNet121
# tf.config.experimental_run_functions_eagerly(True)
# with tf.dev... | 40.039216 | 138 | 0.676298 |
dab78077040f1edc2ea23fae35c8547666d9c63a | 614 | py | Python | examples/client.py | zaibon/tcprouter | 7e9d2590e1b1d9d984ac742bd82fcbcf3d42b3ef | [
"BSD-3-Clause"
] | 1 | 2020-02-01T22:45:55.000Z | 2020-02-01T22:45:55.000Z | examples/client.py | zaibon/tcprouter | 7e9d2590e1b1d9d984ac742bd82fcbcf3d42b3ef | [
"BSD-3-Clause"
] | 1 | 2020-03-29T10:43:36.000Z | 2020-03-31T20:28:46.000Z | examples/client.py | xmonader/eltcprouter | b3435733d102c2435e9f62aa469d34c475cc31bd | [
"BSD-3-Clause"
] | null | null | null | import time
from gevent import ssl, socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Require a certificate from the server. We used a self-signed certificate
# so here ca_certs must be the server certificate itself.
ssl_sock = ssl.wrap_socket(s,
ca_certs="server.crt",
... | 26.695652 | 74 | 0.688925 |
dab79e408effc769352f1485a0d9ecff9c84bf00 | 456 | py | Python | channel-api/src/processors/callback_delivery/__init__.py | xcantera/demo-provide-baseline | 985f391973fa6ca0761104b55077fded28f152fc | [
"CC0-1.0"
] | 3 | 2020-11-17T23:19:20.000Z | 2021-03-29T15:08:56.000Z | channel-api/src/processors/callback_delivery/__init__.py | xcantera/demo-provide-baseline | 985f391973fa6ca0761104b55077fded28f152fc | [
"CC0-1.0"
] | null | null | null | channel-api/src/processors/callback_delivery/__init__.py | xcantera/demo-provide-baseline | 985f391973fa6ca0761104b55077fded28f152fc | [
"CC0-1.0"
] | 1 | 2020-12-11T00:26:33.000Z | 2020-12-11T00:26:33.000Z | from box import Box
from src import repos
from src.processors import SelfIteratingProcessor
from src.processors import use_cases
| 32.571429 | 79 | 0.796053 |
dab926cdd37bcd18c643b16e442bb42ea614592a | 9,673 | py | Python | src/secondaires/exportaide/formats/pgsql/format.py | vlegoff/tsunami | 36b3b974f6eefbf15cd5d5f099fc14630e66570b | [
"BSD-3-Clause"
] | 14 | 2015-08-21T19:15:21.000Z | 2017-11-26T13:59:17.000Z | src/secondaires/exportaide/formats/pgsql/format.py | vincent-lg/tsunami | 36b3b974f6eefbf15cd5d5f099fc14630e66570b | [
"BSD-3-Clause"
] | 20 | 2015-09-29T20:50:45.000Z | 2018-06-21T12:58:30.000Z | src/secondaires/exportaide/formats/pgsql/format.py | vlegoff/tsunami | 36b3b974f6eefbf15cd5d5f099fc14630e66570b | [
"BSD-3-Clause"
] | 3 | 2015-05-02T19:42:03.000Z | 2018-09-06T10:55:00.000Z | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# ... | 37.061303 | 79 | 0.602295 |
dab9892833bda504359a291b6b5f769751e715b8 | 1,156 | py | Python | app/models.py | Nasfame/Mobile-Wallet | 3925e4ecdf2c19aff248615cc580459c6360c542 | [
"MIT"
] | null | null | null | app/models.py | Nasfame/Mobile-Wallet | 3925e4ecdf2c19aff248615cc580459c6360c542 | [
"MIT"
] | null | null | null | app/models.py | Nasfame/Mobile-Wallet | 3925e4ecdf2c19aff248615cc580459c6360c542 | [
"MIT"
] | null | null | null | from datetime import datetime
from flask_login import UserMixin
from pytz import timezone
from . import db
| 31.243243 | 108 | 0.673875 |
daba82f83ab881bfba07302f612603713d2c5dbb | 719 | py | Python | models/flatten.py | msharmavikram/pytorch-cifar | 8af1ba8d7786c20699a151b7281fd132b2487998 | [
"MIT"
] | null | null | null | models/flatten.py | msharmavikram/pytorch-cifar | 8af1ba8d7786c20699a151b7281fd132b2487998 | [
"MIT"
] | null | null | null | models/flatten.py | msharmavikram/pytorch-cifar | 8af1ba8d7786c20699a151b7281fd132b2487998 | [
"MIT"
] | null | null | null | from collections import OrderedDict
from typing import Iterator, Tuple
from torch import nn
def flatten(module: nn.Sequential) -> nn.Sequential:
"""Flattens a nested sequential module."""
if not isinstance(module, nn.Sequential):
raise TypeError('not sequential')
return nn.Sequential(OrderedDict... | 31.26087 | 71 | 0.670376 |
dabb68b6fb48686276a922ea58be91f96ae78543 | 4,076 | py | Python | src/solutions/common/models/group_purchase.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/models/group_purchase.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/models/group_purchase.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... | 36.392857 | 128 | 0.73945 |
dabb6e6f20a236140a0519bbbd17f87ed4fefe6d | 330 | py | Python | hw/2016_spring/hw1/run.py | lwlynn/cme193 | 51748b892410eb0d51129d4ee8f4fc7e7cfeca13 | [
"MIT"
] | 15 | 2016-02-17T06:03:51.000Z | 2021-11-30T03:47:27.000Z | hw/2016_spring/hw1/run.py | lwlynn/cme193 | 51748b892410eb0d51129d4ee8f4fc7e7cfeca13 | [
"MIT"
] | null | null | null | hw/2016_spring/hw1/run.py | lwlynn/cme193 | 51748b892410eb0d51129d4ee8f4fc7e7cfeca13 | [
"MIT"
] | 33 | 2016-01-19T18:23:46.000Z | 2020-12-23T03:08:23.000Z | from util import test, summary
from matrix import Matrix
if __name__ == '__main__':
M = Matrix(shape=(4, 5))
test(M.shape() == (4, 5), 'M.shape() test')
test(M[0, 0] == 0, 'M[0, 0] == 0 test')
M[0, 0] = 3
test(M[0, 0] == 3, 'M[0, 0] == 3 (setter) test')
a = M[0, 0]
test(a == 3, 'a == 3 (getter) test')
s... | 15.714286 | 49 | 0.521212 |
dabe54826333b634fe8f21ff9ac5e17149e6d8a7 | 8,152 | py | Python | osp/core/session/transport/transport_session_server.py | tareq97/osp-core | d07d75629367420e14be12cee0277aa7f757bdca | [
"BSD-3-Clause"
] | null | null | null | osp/core/session/transport/transport_session_server.py | tareq97/osp-core | d07d75629367420e14be12cee0277aa7f757bdca | [
"BSD-3-Clause"
] | null | null | null | osp/core/session/transport/transport_session_server.py | tareq97/osp-core | d07d75629367420e14be12cee0277aa7f757bdca | [
"BSD-3-Clause"
] | 1 | 2020-10-18T17:34:07.000Z | 2020-10-18T17:34:07.000Z | import os
import json
import logging
import inspect
from osp.core.session.buffers import BufferContext
from osp.core.session.wrapper_session import WrapperSession
from osp.core.session.transport.communication_engine \
import CommunicationEngineServer
from osp.core.session.transport.transport_utils import (
INIT... | 40.964824 | 79 | 0.605864 |
dabf3e25f1e4af6a2a5cadd2a9c0e3f235335192 | 1,188 | py | Python | tests/testapp/views.py | fabiangermann/feincms3 | 568ffd1fa939071a4d6dfae0a70568d1522aaa9e | [
"BSD-3-Clause"
] | null | null | null | tests/testapp/views.py | fabiangermann/feincms3 | 568ffd1fa939071a4d6dfae0a70568d1522aaa9e | [
"BSD-3-Clause"
] | null | null | null | tests/testapp/views.py | fabiangermann/feincms3 | 568ffd1fa939071a4d6dfae0a70568d1522aaa9e | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import get_object_or_404, redirect, render
from feincms3.plugins import external, html, richtext
from feincms3.regions import Regions
from feincms3.renderer import TemplatePluginRenderer
from .models import HTML, External, Image, Page, RichText, Snippet
renderer = TemplatePluginRenderer()
rend... | 32.108108 | 85 | 0.729798 |
dabfd08ab527b85660d4d9570e35a8695162beeb | 131 | py | Python | bench/test_get.py | eabrouwer3/aiotoolz | 10790c9c5a8413502d8f35ce157966290492dbab | [
"BSD-3-Clause"
] | null | null | null | bench/test_get.py | eabrouwer3/aiotoolz | 10790c9c5a8413502d8f35ce157966290492dbab | [
"BSD-3-Clause"
] | null | null | null | bench/test_get.py | eabrouwer3/aiotoolz | 10790c9c5a8413502d8f35ce157966290492dbab | [
"BSD-3-Clause"
] | null | null | null | from aiotoolz import get
tuples = [(1, 2, 3) for i in range(100000)]
| 14.555556 | 43 | 0.603053 |
dabfda67f4fc918c0eec52103944f40695309fad | 2,601 | py | Python | gigapy.py | DinCahill/gigapy | 764c90f634a1ca1b803bf29097583a0ed0116c18 | [
"MIT"
] | null | null | null | gigapy.py | DinCahill/gigapy | 764c90f634a1ca1b803bf29097583a0ed0116c18 | [
"MIT"
] | 2 | 2016-08-21T07:05:24.000Z | 2016-08-21T07:06:00.000Z | gigapy.py | DinCahill/gigapy | 764c90f634a1ca1b803bf29097583a0ed0116c18 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import xmltodict
import argparse
import sys
import psutil
import subprocess
import time
SIVDir = 'C:\Program Files (x86)\Gigabyte\SIV'
ProfileDir = os.path.join(SIVDir, 'Profile')
thermaldPath = os.path.join(SIVDir, 'thermald.exe')
if __name__ == '__main__':
... | 29.224719 | 73 | 0.583237 |
dac1ffbe25721d0c8528d32f8490678e6e7037d9 | 3,916 | py | Python | ui/views.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | 1 | 2016-06-28T13:13:27.000Z | 2016-06-28T13:13:27.000Z | ui/views.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | 12 | 2016-06-28T11:19:46.000Z | 2017-05-05T14:24:14.000Z | ui/views.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | null | null | null | import os
from django.conf import settings
from django.contrib.auth import logout as django_logout
from django.contrib.sites.models import Site
from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.views.generic import View, TemplateView
from luna_django_commons.app.mixins imp... | 29.666667 | 92 | 0.681052 |
dac2f5f7683ca4eb37d3e107a6a86cef2eaa7ab5 | 3,767 | py | Python | train_mask_rcnn.py | branislav1991/MicroscopyUNet | 3c28fa3ea7efa855633eec6605f09866c5f8e645 | [
"MIT"
] | 1 | 2020-07-03T22:34:48.000Z | 2020-07-03T22:34:48.000Z | train_mask_rcnn.py | branislav1991/MicroscopyUNet | 3c28fa3ea7efa855633eec6605f09866c5f8e645 | [
"MIT"
] | 3 | 2018-03-01T14:47:27.000Z | 2022-02-09T23:33:14.000Z | train_mask_rcnn.py | branislav1991/MicroscopyUNet | 3c28fa3ea7efa855633eec6605f09866c5f8e645 | [
"MIT"
] | 2 | 2018-04-05T13:02:32.000Z | 2018-06-14T00:49:37.000Z | import os
import sys
import random
import math
import re
import time
import numpy as np
import cv2
import matplotlib
import matplotlib.pyplot as plt
import keras.backend as K
from models.mask_rcnn.config import CellConfig
from models.mask_rcnn import utils
from models.mask_rcnn import model as modellib
... | 34.245455 | 93 | 0.667375 |
dac361a95a6b2abc8f3940126e5652a22be4255b | 788 | py | Python | xrpl/utils/str_conversions.py | antonyggvzvmnxxcx/xrpl-py | fda7ce2a28807374b40324478e42e17d97a063d7 | [
"ISC"
] | null | null | null | xrpl/utils/str_conversions.py | antonyggvzvmnxxcx/xrpl-py | fda7ce2a28807374b40324478e42e17d97a063d7 | [
"ISC"
] | 2 | 2022-02-23T22:57:46.000Z | 2022-02-24T11:41:49.000Z | xrpl/utils/str_conversions.py | antonyggvzvmnxxcx/xrpl-py | fda7ce2a28807374b40324478e42e17d97a063d7 | [
"ISC"
] | 1 | 2022-02-21T07:36:36.000Z | 2022-02-21T07:36:36.000Z | """Various useful string conversions utilities for XRPL."""
def str_to_hex(input: str) -> str:
"""
Convert a UTF-8-encoded string into hexadecimal encoding.
XRPL uses hex strings as inputs in fields like `domain`
in the `AccountSet` transaction.
Args:
input: UTF-8-encoded string to conver... | 24.625 | 61 | 0.656091 |
dac5ec03dc2eb4d7fe3643df871fccbd6ecf68bc | 17,036 | py | Python | tang_jcompneuro/cnn_pretrained.py | leelabcnbc/tang_jcompneuro_revision | 58e9dbcbef7ca3f0c3976b24a4e4aa9c5efcdd3a | [
"Apache-2.0"
] | 3 | 2018-06-19T15:45:02.000Z | 2020-12-25T03:10:30.000Z | tang_jcompneuro/cnn_pretrained.py | leelabcnbc/tang_jcompneuro_revision | 58e9dbcbef7ca3f0c3976b24a4e4aa9c5efcdd3a | [
"Apache-2.0"
] | null | null | null | tang_jcompneuro/cnn_pretrained.py | leelabcnbc/tang_jcompneuro_revision | 58e9dbcbef7ca3f0c3976b24a4e4aa9c5efcdd3a | [
"Apache-2.0"
] | null | null | null | """handles feature extraction"""
# rewrite of https://github.com/leelabcnbc/tang-paper-2017/blob/master/tang_2017/feature_extraction.py
from torchvision.models import vgg16, vgg16_bn, vgg19, vgg19_bn
from leelabtoolbox.feature_extraction.cnn import (cnnsizehelper, generic_network_definitions)
from leelabtoolbox.prepro... | 56.039474 | 164 | 0.468126 |
dacca5eb176c3e40b7b53de267d23dd570f95209 | 9,944 | py | Python | mutesP/voicemutes.py | duanegtr/legendv3-cogs | ffde1452a75ad42b4f6511b612ce486e96fcd6de | [
"MIT"
] | 3 | 2020-09-03T13:39:30.000Z | 2021-05-21T01:37:00.000Z | mutesP/voicemutes.py | duanegtr/legendv3-cogs | ffde1452a75ad42b4f6511b612ce486e96fcd6de | [
"MIT"
] | null | null | null | mutesP/voicemutes.py | duanegtr/legendv3-cogs | ffde1452a75ad42b4f6511b612ce486e96fcd6de | [
"MIT"
] | 4 | 2020-09-24T04:24:02.000Z | 2021-04-25T03:48:44.000Z | from typing import Optional, Tuple, Union
from datetime import timezone, timedelta, datetime
from .abc import MixinMeta
import discord
from redbot.core import commands, checks, i18n, modlog
from redbot.core.utils.chat_formatting import (
bold,
humanize_timedelta,
humanize_list,
pagify,
format_perms... | 39.776 | 99 | 0.523934 |
dacec6192e4e79e1e83802fb0e5ede942684c020 | 335 | py | Python | sshr/clients/admin.py | zhengxiaowai/sshm | af83e9c8dfc805747d978b8e9031bf57f057bebd | [
"MIT"
] | null | null | null | sshr/clients/admin.py | zhengxiaowai/sshm | af83e9c8dfc805747d978b8e9031bf57f057bebd | [
"MIT"
] | null | null | null | sshr/clients/admin.py | zhengxiaowai/sshm | af83e9c8dfc805747d978b8e9031bf57f057bebd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from core import SSHRAdmin
from ._dropbox import DropboxClient
from ._qiniu import QiniuClient
from ._webdav import WebdavClient
sshr_admin = SSHRAdmin()
sshr_admin.register('dropbox', DropboxClient)
sshr_admin.register('qiniu', QiniuClient)
sshr_admin.register('webdav',... | 23.928571 | 45 | 0.78209 |
daced5e35ea43a2e50f50999b4aeaedc3f8caab7 | 9,393 | py | Python | searchguard/rolesmapping.py | ByteInternet/searchguard-python | 81dafb35404e173b8c4771f8e88876c28ad912be | [
"MIT"
] | 3 | 2018-10-24T09:17:48.000Z | 2018-12-03T20:30:42.000Z | searchguard/rolesmapping.py | ByteInternet/searchguard-python | 81dafb35404e173b8c4771f8e88876c28ad912be | [
"MIT"
] | 2 | 2018-12-17T11:08:03.000Z | 2019-01-02T13:53:12.000Z | searchguard/rolesmapping.py | ByteInternet/searchguard-python | 81dafb35404e173b8c4771f8e88876c28ad912be | [
"MIT"
] | 1 | 2019-02-14T10:33:03.000Z | 2019-02-14T10:33:03.000Z | #!/usr/bin/python3
import requests
import json
import searchguard.settings as settings
from searchguard.exceptions import RoleMappingException, CheckRoleMappingExistsException, ViewRoleMappingException, \
DeleteRoleMappingException, CreateRoleMappingException, ModifyRoleMappingException, CheckRoleExistsException, ... | 47.680203 | 119 | 0.6804 |
dacf0cdfdc178f92920d8a19a952f18d560dafb4 | 21,968 | py | Python | digsby/src/plugins/facebook/facebookprotocol.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/src/plugins/facebook/facebookprotocol.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/src/plugins/facebook/facebookprotocol.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | from util.callbacks import callsback
from util.threads.timeout_thread import Timer
from util.primitives import Storage as S
from traceback import print_exc
import util.primitives.structures as structures
from .fbutil import trim_profiles, extract_profile_ids
import traceback
import simplejson
import facebookapi
import ... | 49.927273 | 364 | 0.588219 |
dacfa124f1048f55a31adaf93ac880a7a661ee2f | 735 | py | Python | app/pytorch/book/chp003/chp003_c003.py | yt7589/aqp | c9c1c79facdea7ace73e2421e8a5868d87fb58dd | [
"Apache-2.0"
] | null | null | null | app/pytorch/book/chp003/chp003_c003.py | yt7589/aqp | c9c1c79facdea7ace73e2421e8a5868d87fb58dd | [
"Apache-2.0"
] | null | null | null | app/pytorch/book/chp003/chp003_c003.py | yt7589/aqp | c9c1c79facdea7ace73e2421e8a5868d87fb58dd | [
"Apache-2.0"
] | null | null | null | #
import math
import numpy as np
import matplotlib.pyplot as plt
if '__main__' == __name__:
app = Chp003C003()
app.run() | 23.709677 | 52 | 0.52517 |
dacfc6edb6425f8b889403d0d303f723bb58b69a | 1,388 | py | Python | python/zp/primjer_12.03.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | python/zp/primjer_12.03.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | python/zp/primjer_12.03.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | import os
import time
#fajlovi i folderi koje zelimo da backupujemo su specificirani u listi
izvor = ['C:\\py', '"C:\\Documents and Settings\xinjure\\Desktop\\"']
#primjetite da smo koristili duple navodnike unutar stringa, zbog imena koje sadrzi razmake
#backup ce biti sacuvan u glavnom backup direktoriju
ciljni_dir... | 36.526316 | 107 | 0.726945 |
dad10d8c540f287c6dddebcc2b85f628a0632825 | 15,943 | py | Python | nurbs/Curve.py | varshapendyala/Manifold-Learning | 9a80e51b2621c8d309ec7f264eaff8db6cde8fed | [
"BSD-3-Clause"
] | 3 | 2019-06-16T05:03:13.000Z | 2021-05-23T04:01:16.000Z | nurbs/Curve.py | varshapendyala/Manifold-Learning | 9a80e51b2621c8d309ec7f264eaff8db6cde8fed | [
"BSD-3-Clause"
] | null | null | null | nurbs/Curve.py | varshapendyala/Manifold-Learning | 9a80e51b2621c8d309ec7f264eaff8db6cde8fed | [
"BSD-3-Clause"
] | 1 | 2020-02-20T03:01:57.000Z | 2020-02-20T03:01:57.000Z | """
.. module:: Curve
:platform: Unix, Windows
:synopsis: A data storage and evaluation class for B-spline and NURBS curves
.. moduleauthor:: Onur Rauf Bingol
"""
import sys
import itertools
import nurbs.utilities as utils
# Cleans the evaluated curve points (private)
def _reset_curve(self):
... | 35.666667 | 172 | 0.586402 |
dad1393dffc0b140629b9522d25813d0ecd5bc80 | 78 | py | Python | pc.py | MaNongJiaLe/DaYuHaiTang | 3063de6e390dfb2d74ae3ae6a30e10f6dc31d16f | [
"Apache-2.0"
] | null | null | null | pc.py | MaNongJiaLe/DaYuHaiTang | 3063de6e390dfb2d74ae3ae6a30e10f6dc31d16f | [
"Apache-2.0"
] | null | null | null | pc.py | MaNongJiaLe/DaYuHaiTang | 3063de6e390dfb2d74ae3ae6a30e10f6dc31d16f | [
"Apache-2.0"
] | null | null | null |
print('nice' in 'nice to meet you')
a=1000000
b=1000000
c=a+b
print(c)
| 6 | 35 | 0.628205 |
dad1b13cfc78bb0d60a151c6bb98e3620bff455b | 785 | py | Python | clients_1.3/python/test/test_solver_async_response.py | MetaAnalyticsAdmin/meta-analytics | 9a8408d3e414e837d84939ad711d0ae9f83c46ed | [
"Apache-2.0"
] | 5 | 2020-05-04T17:02:35.000Z | 2022-01-13T17:41:09.000Z | clients_1.3/python/test/test_solver_async_response.py | MetaAnalytics/meta-analytics | 9a8408d3e414e837d84939ad711d0ae9f83c46ed | [
"Apache-2.0"
] | null | null | null | clients_1.3/python/test/test_solver_async_response.py | MetaAnalytics/meta-analytics | 9a8408d3e414e837d84939ad711d0ae9f83c46ed | [
"Apache-2.0"
] | null | null | null | """
QUBO API solvers
QUBO solvers from Meta Analytics # noqa: E501
The version of the OpenAPI document: v1
Contact: rajesh@craftingdata.com
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import meta_analytics
from meta_analytics.model.solver_async_response import S... | 21.216216 | 79 | 0.698089 |
dad261921c5751cfb8c569ac5635333899e23105 | 970 | py | Python | Settings.py | deswong/CalSyncHAB | 381738a7e4182e4a8d220ad111b0002afc0d97ae | [
"OLDAP-2.7",
"OLDAP-2.4",
"OLDAP-2.3"
] | 10 | 2017-01-30T19:14:35.000Z | 2021-04-02T08:04:04.000Z | Settings.py | deswong/CalSyncHAB | 381738a7e4182e4a8d220ad111b0002afc0d97ae | [
"OLDAP-2.7",
"OLDAP-2.4",
"OLDAP-2.3"
] | null | null | null | Settings.py | deswong/CalSyncHAB | 381738a7e4182e4a8d220ad111b0002afc0d97ae | [
"OLDAP-2.7",
"OLDAP-2.4",
"OLDAP-2.3"
] | 5 | 2018-02-20T15:19:48.000Z | 2021-08-30T11:38:23.000Z | import configparser
import os
ApplicationDir = os.path.dirname(os.path.abspath(__file__))
HomeDir = os.path.expanduser('~')
CredentialDir = os.path.join(HomeDir, '.credentials')
if not os.path.exists(CredentialDir):
os.makedirs(CredentialDir)
CredentialFilePath = os.path.join(CredentialDir, 'CalSyncHAB.json')
Ca... | 34.642857 | 71 | 0.776289 |
dad31ea392b5ccf9f81d1cb1ddbee5b3b2633a4e | 21,114 | py | Python | api/test/test_main.py | diego-hermida/ClimateChangeApp | 576d49ec5b76f709cc86874ffb03f4a38dbbbbfd | [
"MIT"
] | 2 | 2018-07-01T20:36:46.000Z | 2019-11-01T22:47:06.000Z | api/test/test_main.py | diego-hermida/ClimateChangeApp | 576d49ec5b76f709cc86874ffb03f4a38dbbbbfd | [
"MIT"
] | 1 | 2021-06-10T20:28:53.000Z | 2021-06-10T20:28:53.000Z | api/test/test_main.py | diego-hermida/ClimateChangeApp | 576d49ec5b76f709cc86874ffb03f4a38dbbbbfd | [
"MIT"
] | null | null | null | import global_config.config
import api.main as main
import json
from pymongo.errors import DuplicateKeyError
from unittest import TestCase, mock
from unittest.mock import Mock
from utilities.mongo_util import create_user, bulk_create_authorized_users, drop_user, drop_database
database = 'test_database'
global_config.... | 56.454545 | 120 | 0.682012 |
dad36377862c52b484b532b45ae1a76a96a54dc6 | 18,060 | py | Python | huskylens/main.py | bbk012/uPyBot | f4639a365da8023206153e31dc98d77843915d06 | [
"MIT"
] | null | null | null | huskylens/main.py | bbk012/uPyBot | f4639a365da8023206153e31dc98d77843915d06 | [
"MIT"
] | null | null | null | huskylens/main.py | bbk012/uPyBot | f4639a365da8023206153e31dc98d77843915d06 | [
"MIT"
] | null | null | null | """Simple MicroPython script which demonstrates uPyBot controlled using the Micro Python Board (pyboard)"""
# 25-Dec-2019 Initial version of the script created
# 16-Jan-2020 Simple update robot class renamed to uPyBot
# 05-Sep-2021 Changed motor methods (added delay between movements and removed fats stop) to avoid hig... | 44.592593 | 173 | 0.686213 |
dad61e2aba6d9d128305110ad302f2a5b13d711f | 2,205 | py | Python | models/deeplab_v2.py | lmycross/segmentation | 9b1f4bfba4c2933d87c49313234da6cfce1d8ad5 | [
"MIT"
] | 6 | 2018-03-16T16:57:14.000Z | 2019-05-02T16:32:06.000Z | models/deeplab_v2.py | lmycross/segmentation | 9b1f4bfba4c2933d87c49313234da6cfce1d8ad5 | [
"MIT"
] | null | null | null | models/deeplab_v2.py | lmycross/segmentation | 9b1f4bfba4c2933d87c49313234da6cfce1d8ad5 | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch
import numpy as np
from torchvision import models
affine_par = True
| 27.222222 | 136 | 0.589116 |
dad7020040eaeca6ea81ab1ffe13ed89ecd53d9f | 2,151 | py | Python | acapi/resources/backup.py | darlev91/python-acquia-cloud | 5f5ea1318575b18440e57fce7c0993c070195552 | [
"MIT"
] | 9 | 2015-10-01T22:29:12.000Z | 2019-03-27T17:54:22.000Z | acapi/resources/backup.py | darlev91/python-acquia-cloud | 5f5ea1318575b18440e57fce7c0993c070195552 | [
"MIT"
] | 48 | 2015-08-02T12:08:46.000Z | 2020-05-11T21:00:07.000Z | acapi/resources/backup.py | darlev91/python-acquia-cloud | 5f5ea1318575b18440e57fce7c0993c070195552 | [
"MIT"
] | 7 | 2015-07-13T20:18:08.000Z | 2019-02-27T13:01:48.000Z | """Database Backup."""
try:
# Backwards compatible Python 3
import urllib.parse as urlparse
except ImportError:
# Python 2.x
import urlparse
from acapi.resources.acquiaresource import AcquiaResource
| 25.305882 | 86 | 0.542538 |
dad7f71e5908195cc1fe79d9f4d064194f763bd1 | 26,796 | py | Python | pysimgame/model.py | ScienceGamez/pysimgame | 6c89280441358722efbc63b6d8aa914cbe21575e | [
"WTFPL"
] | null | null | null | pysimgame/model.py | ScienceGamez/pysimgame | 6c89280441358722efbc63b6d8aa914cbe21575e | [
"WTFPL"
] | null | null | null | pysimgame/model.py | ScienceGamez/pysimgame | 6c89280441358722efbc63b6d8aa914cbe21575e | [
"WTFPL"
] | null | null | null | """The model that runs with the game."""
from __future__ import annotations
import json
import re
from functools import cached_property, singledispatchmethod
from pathlib import Path
from threading import Lock, Thread
from types import NotImplementedType
from typing import TYPE_CHECKING, Callable, Dict, Iterable, List... | 35.119266 | 81 | 0.582587 |
dad821bed88e971811e3c402e9d522872917d46d | 86 | py | Python | test1.py | LotosPage/enviromnent0 | fe2bf8912feb3fa59f87c69e29714ecacb202833 | [
"Apache-2.0"
] | 1 | 2019-02-10T17:11:43.000Z | 2019-02-10T17:11:43.000Z | test1.py | LotosPage/enviromnent0 | fe2bf8912feb3fa59f87c69e29714ecacb202833 | [
"Apache-2.0"
] | null | null | null | test1.py | LotosPage/enviromnent0 | fe2bf8912feb3fa59f87c69e29714ecacb202833 | [
"Apache-2.0"
] | null | null | null | a = 1
b = 1
while 32 >= a:
print(a,-b)
b *= 2
a += 1
print("Year",b/365)
| 9.555556 | 19 | 0.418605 |
dad88ca7f69b6249db59b9dd53934906b422453f | 5,157 | py | Python | utils/tileextractor/ExtractTiles.py | kurodenjiro/PokeRPG | ab6b76d22f2f2a81e9c6382a893e85c9bd52a20f | [
"MIT"
] | 1 | 2019-08-18T17:08:27.000Z | 2019-08-18T17:08:27.000Z | utils/tileextractor/ExtractTiles.py | kurodenjiro/PokeRPG | ab6b76d22f2f2a81e9c6382a893e85c9bd52a20f | [
"MIT"
] | null | null | null | utils/tileextractor/ExtractTiles.py | kurodenjiro/PokeRPG | ab6b76d22f2f2a81e9c6382a893e85c9bd52a20f | [
"MIT"
] | null | null | null | import Image, ImageDraw, ImageFont
import md5, sha
import sys, time, os
import re
tileSize = (16,16)
outputWidth = 8
outputSpare = 1
scale = 2
pathIn = 'input/'
pathOut = 'output/'
animatedTiles = []
def createTile(firstPixel, image) :
currentPixel = [firstPixel[0], firstPixel[1]]
tile = Tile()
replace = False
... | 25.529703 | 103 | 0.651154 |
dad9fa5d08075a68a024166562445b419358f3b8 | 11,046 | py | Python | tock/utilization/views.py | mikiec84/tock | 15318a45b2b144360e4d7e15db655467a45c2ab9 | [
"CC0-1.0"
] | null | null | null | tock/utilization/views.py | mikiec84/tock | 15318a45b2b144360e4d7e15db655467a45c2ab9 | [
"CC0-1.0"
] | 4 | 2021-02-02T22:57:57.000Z | 2022-02-10T23:19:15.000Z | tock/utilization/views.py | mikiec84/tock | 15318a45b2b144360e4d7e15db655467a45c2ab9 | [
"CC0-1.0"
] | null | null | null | from django.core.exceptions import PermissionDenied
from django.template.defaultfilters import slugify
from django.urls import reverse
from django.views.generic import ListView
from hours.models import TimecardObject, ReportingPeriod
from employees.models import UserData
from tock.utils import PermissionMixin
from .u... | 43.833333 | 97 | 0.562647 |
dadcb55e0d569de6ae86cd9acddd2016bf04a370 | 2,915 | py | Python | tests/test_code.py | ducphucnguyen/PyEnvNoise | 554008201af73f70d5a1b39ab47749a58467388e | [
"MIT"
] | 1 | 2021-08-09T11:20:15.000Z | 2021-08-09T11:20:15.000Z | tests/test_code.py | ducphucnguyen/PyEnvNoise | 554008201af73f70d5a1b39ab47749a58467388e | [
"MIT"
] | null | null | null | tests/test_code.py | ducphucnguyen/PyEnvNoise | 554008201af73f70d5a1b39ab47749a58467388e | [
"MIT"
] | 1 | 2021-08-08T02:58:20.000Z | 2021-08-08T02:58:20.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 13 15:10:58 2021
@author: nguy0936
"""
from pyenvnoise.utils import ptiread
data = ptiread('R:\CMPH-Windfarm Field Study\Hornsdale\set2\Recording-1.1.pti')
import numpy as np
file_name = 'R:\CMPH-Windfarm Field Study\Hornsdale\set2\Recording-1.1.pti'
fid = open(file... | 28.028846 | 90 | 0.653516 |
dadcb98c933ba30f86807ce7fd3fbfa6b2ab04f4 | 2,255 | py | Python | tools/libs/PassID-Server/src/pymrtd/pki/crl.py | lukapercic/PassID-Public-Docs | 4ae305af837231c4bf7ba94154c5bc29d2873fe9 | [
"MIT"
] | 1 | 2022-01-06T11:28:03.000Z | 2022-01-06T11:28:03.000Z | tools/libs/PassID-Server/src/pymrtd/pki/crl.py | lukapercic/PassID-Public-Docs | 4ae305af837231c4bf7ba94154c5bc29d2873fe9 | [
"MIT"
] | 1 | 2021-01-08T17:32:08.000Z | 2021-01-08T17:32:08.000Z | tools/libs/PassID-Server/src/pymrtd/pki/crl.py | lukapercic/PassID-Public-Docs | 4ae305af837231c4bf7ba94154c5bc29d2873fe9 | [
"MIT"
] | 2 | 2020-12-18T22:47:09.000Z | 2020-12-18T22:48:57.000Z | '''
File name: crl.py
Author: ZeroPass - Nejc Skerjanc
License: MIT lincense
Python Version: 3.6
'''
from .x509 import CscaCertificate
from .cert_utils import verify_sig
from asn1crypto.crl import CertificateList
import datetime
"""
CRL: \
-object ***
-serial Number***
-subject key //not... | 28.544304 | 104 | 0.654102 |
dadd8d859468742e863ac07512212826667bae4f | 8,807 | py | Python | src/r2g/online/blast.py | yangwu91/r2g | 791cd62480fbf15e03f86b0a19770841cac53648 | [
"MIT"
] | 55 | 2021-03-16T07:31:40.000Z | 2021-04-06T03:22:31.000Z | src/r2g/online/blast.py | yangwu91/r2g | 791cd62480fbf15e03f86b0a19770841cac53648 | [
"MIT"
] | null | null | null | src/r2g/online/blast.py | yangwu91/r2g | 791cd62480fbf15e03f86b0a19770841cac53648 | [
"MIT"
] | null | null | null | from __future__ import division
import os
import time
from copy import deepcopy
import xml.etree.ElementTree as ET
from r2g import utils
from r2g.online import NCBIWWW_selenium
from r2g import errors
# def _parse_tabular(raw_results):
# """Deprecated. Use XML instead of Tabular."""
# download_list = {}
#... | 37.476596 | 120 | 0.460883 |
dade60bce692bbe7d49bc182efc8e19c920e1455 | 2,627 | py | Python | pypyr/steps/append.py | mofm/pypyr | f417f69ba9a607d8a93019854105cfbc4dc9c36d | [
"Apache-2.0"
] | 261 | 2020-08-18T19:31:29.000Z | 2022-03-31T14:54:06.000Z | pypyr/steps/append.py | mofm/pypyr | f417f69ba9a607d8a93019854105cfbc4dc9c36d | [
"Apache-2.0"
] | 89 | 2017-04-12T09:50:32.000Z | 2020-08-13T13:18:36.000Z | pypyr/steps/append.py | mofm/pypyr | f417f69ba9a607d8a93019854105cfbc4dc9c36d | [
"Apache-2.0"
] | 15 | 2020-09-30T12:15:50.000Z | 2022-03-30T07:25:40.000Z | """pypyr step that appends items to a mutable sequence, such as a list."""
import logging
from pypyr.utils.asserts import assert_key_exists, assert_key_is_truthy
logger = logging.getLogger(__name__)
def run_step(context):
"""Append item to a mutable sequence.
Expects input:
append:
list... | 32.036585 | 79 | 0.627332 |
dadf7cec0e49636dbbc4daaf488e4465b9ebb652 | 46,827 | py | Python | Node3D/opengl/Mesh.py | ArnoChenFx/Node3D | 30fe58cced3a8580eb129475925eb797e6065067 | [
"MIT"
] | 3 | 2020-09-09T15:42:46.000Z | 2021-07-24T13:58:56.000Z | Node3D/opengl/Mesh.py | ArnoChenFx/Node3D | 30fe58cced3a8580eb129475925eb797e6065067 | [
"MIT"
] | null | null | null | Node3D/opengl/Mesh.py | ArnoChenFx/Node3D | 30fe58cced3a8580eb129475925eb797e6065067 | [
"MIT"
] | 1 | 2021-10-17T12:21:39.000Z | 2021-10-17T12:21:39.000Z | import numpy as np
from OpenGL.arrays import vbo
from .Mesh_utils import MeshFuncs, MeshSignals, BBox
import openmesh
import copy
from .Shader import *
orig_set_vertex_property_array = openmesh.PolyMesh.set_vertex_property_array
openmesh.PolyMesh.set_vertex_property_array = svpa
orig_set_face_property_array = open... | 31.898501 | 144 | 0.546885 |
dae36733acc399db2d0b4f6bf857e6abc5de8cd3 | 7,100 | py | Python | apps/ots/strategy/portfolio_hft.py | yt7589/iching | 6673da38f4c80e7fd297c86fedc5616aee8ac09b | [
"Apache-2.0"
] | 32 | 2020-04-14T08:32:18.000Z | 2022-02-09T07:05:08.000Z | apps/ots/strategy/portfolio_hft.py | trinh-hoang-hiep/iching | e1feae5741c3cbde535d7a275b01d4f0cf9e21ed | [
"Apache-2.0"
] | 1 | 2020-04-08T10:42:15.000Z | 2020-04-15T01:38:03.000Z | apps/ots/strategy/portfolio_hft.py | trinh-hoang-hiep/iching | e1feae5741c3cbde535d7a275b01d4f0cf9e21ed | [
"Apache-2.0"
] | 4 | 2020-08-25T03:56:46.000Z | 2021-05-11T05:55:51.000Z | #
from __future__ import print_function
import datetime as dt
import math
from apps.ots.strategy.performance import Performance
try:
import Queue as queue
except ImportError:
import queue
import numpy as np
import pandas as pd
#
from apps.ots.event.ots_event import OtsEvent
from apps.ots.event.signal_event impo... | 38.172043 | 97 | 0.638732 |
dae44902c34d04ccfbaaf73e69438b88c6a093d0 | 4,302 | py | Python | src/python/gesture_controller.py | jdumm/spotify-gesture-controls | 0689db4d3a1c85eee1aadd202387a28ebde3fdec | [
"MIT"
] | null | null | null | src/python/gesture_controller.py | jdumm/spotify-gesture-controls | 0689db4d3a1c85eee1aadd202387a28ebde3fdec | [
"MIT"
] | null | null | null | src/python/gesture_controller.py | jdumm/spotify-gesture-controls | 0689db4d3a1c85eee1aadd202387a28ebde3fdec | [
"MIT"
] | null | null | null | import numpy as np
import pyautogui
import imutils
from mss import mss
from PIL import Image
import cv2
import copy
import argparse
from hand_poses import HandPoses
from hand_detect import HandDetect
from delay import Delay
from spotify_controls import SpotifyControls
parser = argparse.ArgumentParser()
parser.add_a... | 39.109091 | 141 | 0.59298 |
dae8d2a1b667f3a0ceeadd5a77ad46af8b89d4e5 | 1,572 | py | Python | loader/wakatime_loader.py | JasonkayZK/GitHubPoster | 959520a9696cb06b0d4927fe1a4d48e09e7ca8ac | [
"MIT"
] | 1 | 2021-06-15T10:53:15.000Z | 2021-06-15T10:53:15.000Z | loader/wakatime_loader.py | JasonkayZK/GitHubPoster | 959520a9696cb06b0d4927fe1a4d48e09e7ca8ac | [
"MIT"
] | null | null | null | loader/wakatime_loader.py | JasonkayZK/GitHubPoster | 959520a9696cb06b0d4927fe1a4d48e09e7ca8ac | [
"MIT"
] | null | null | null | import time
import pendulum
import requests
from .base_loader import BaseLoader
from .config import WAKATIME_SUMMARY_URL
| 30.230769 | 61 | 0.55598 |
daea143a9138eb46467d20a24e479bae7da4e02c | 5,333 | py | Python | ui/1.py | sarkarrajsingh1/Tensorflow-text-generator-with-GUI | 38cf5c9d80128272c5c8a9044ab59f47d87e03db | [
"MIT"
] | null | null | null | ui/1.py | sarkarrajsingh1/Tensorflow-text-generator-with-GUI | 38cf5c9d80128272c5c8a9044ab59f47d87e03db | [
"MIT"
] | null | null | null | ui/1.py | sarkarrajsingh1/Tensorflow-text-generator-with-GUI | 38cf5c9d80128272c5c8a9044ab59f47d87e03db | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '1.ui'
#
# Created by: PyQt5 UI code generator 5.8.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
... | 45.974138 | 315 | 0.689106 |
daeb4cf0c26b3481a4ba15ce383356713c67404f | 7,440 | py | Python | randomizer.py | spicefather/LADXR | 4262b5e13d9caadfb713ed7a7a9a3af9b9f0a505 | [
"MIT"
] | null | null | null | randomizer.py | spicefather/LADXR | 4262b5e13d9caadfb713ed7a7a9a3af9b9f0a505 | [
"MIT"
] | null | null | null | randomizer.py | spicefather/LADXR | 4262b5e13d9caadfb713ed7a7a9a3af9b9f0a505 | [
"MIT"
] | null | null | null | import explorer
import random
import os
import logic
import copy
import patches.dungeonEntrances
import patches.goal
from locations.items import *
| 38.350515 | 128 | 0.559946 |
daeb71ef71ffac61a566af31cde51e40b5ffba23 | 2,173 | py | Python | pythonPrograms/microphone_recognition.py | akierson/capstone-prototype | a7d5754653f8c64d17ba21fbe4801c316a95b318 | [
"MIT"
] | null | null | null | pythonPrograms/microphone_recognition.py | akierson/capstone-prototype | a7d5754653f8c64d17ba21fbe4801c316a95b318 | [
"MIT"
] | null | null | null | pythonPrograms/microphone_recognition.py | akierson/capstone-prototype | a7d5754653f8c64d17ba21fbe4801c316a95b318 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# NOTE: this example requires PyAudio because it uses the Microphone class
import speech_recognition as sr
# obtain audio from the microphone
r = sr.Recognizer()
with sr.Microphone() as source:
print("Say something!")
audio = r.listen(source)
# recognize speech using Sphinx
try:
p... | 42.607843 | 163 | 0.774045 |
daecb12d31a0d0cfb6a64695c305aa4ea13ba5a0 | 2,680 | py | Python | tests/unit/test_dp.py | lantz/faucet2 | fc97d51924283679b35da2b59fedb58202a218e9 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_dp.py | lantz/faucet2 | fc97d51924283679b35da2b59fedb58202a218e9 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_dp.py | lantz/faucet2 | fc97d51924283679b35da2b59fedb58202a218e9 | [
"Apache-2.0"
] | null | null | null | """Unit tests for DP"""
import unittest
from faucet.dp import DP
| 29.450549 | 78 | 0.529851 |
daf17e048438f58b74f03a7fe3bf5bf7c3e911c5 | 10,521 | py | Python | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/ovms_config_utils.py | michellechena/azure-intelligent-edge-patterns | b1260b962b208880532391e7ef2148d240f489f8 | [
"MIT"
] | null | null | null | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/ovms_config_utils.py | michellechena/azure-intelligent-edge-patterns | b1260b962b208880532391e7ef2148d240f489f8 | [
"MIT"
] | null | null | null | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/ovms_config_utils.py | michellechena/azure-intelligent-edge-patterns | b1260b962b208880532391e7ef2148d240f489f8 | [
"MIT"
] | null | null | null | import os
import glob
import json
import configparser
face_detection_config = {
"model_config_list": [{
"config": {
"name": "face_detection",
"base_path": "/workspace/face-detection-retail-0004/",
"shape": "(1,3,400,600)",
"layout": "NHWC",
"targ... | 32.372308 | 91 | 0.46545 |
daf1a3e2e2941be9510fe7deb28dbeb00322d9e1 | 988 | py | Python | python_demo_v2/lxml_test.py | renhongl/python_demo | 039d0e046885dd3890526ae91efa2d601f6f9b73 | [
"MIT"
] | 1 | 2019-11-29T02:47:19.000Z | 2019-11-29T02:47:19.000Z | python_demo_v2/lxml_test.py | renhongl/python_demo | 039d0e046885dd3890526ae91efa2d601f6f9b73 | [
"MIT"
] | null | null | null | python_demo_v2/lxml_test.py | renhongl/python_demo | 039d0e046885dd3890526ae91efa2d601f6f9b73 | [
"MIT"
] | null | null | null |
import requests
from lxml import etree
main(); | 31.870968 | 280 | 0.648785 |
daf1edaaf01a3f308ad2680eeb6eca42f2270fd4 | 66,898 | py | Python | nuage_neutron/plugins/common/service_plugins/l3.py | jbemmel/nuage-openstack-neutron | e356c017f7e1600b72cfc26abb588c7cf636e925 | [
"Apache-2.0"
] | null | null | null | nuage_neutron/plugins/common/service_plugins/l3.py | jbemmel/nuage-openstack-neutron | e356c017f7e1600b72cfc26abb588c7cf636e925 | [
"Apache-2.0"
] | null | null | null | nuage_neutron/plugins/common/service_plugins/l3.py | jbemmel/nuage-openstack-neutron | e356c017f7e1600b72cfc26abb588c7cf636e925 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 NOKIA
#
# 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... | 47.378187 | 79 | 0.569389 |
daf43929c63a91296af7f91752de34c0452af614 | 231 | py | Python | dark_proteome_visualization/handlers/__init__.py | Zethson/dark-proteome-visualization | fef978e967c8c655f13c9d7bdc4b0ea6722c1702 | [
"MIT"
] | 2 | 2019-01-12T19:59:56.000Z | 2019-01-19T08:48:33.000Z | dark_proteome_visualization/handlers/__init__.py | Zethson/dark-proteome-visualization | fef978e967c8c655f13c9d7bdc4b0ea6722c1702 | [
"MIT"
] | 23 | 2018-12-18T21:04:17.000Z | 2019-01-23T19:16:15.000Z | dark_proteome_visualization/handlers/__init__.py | Zethson/dark-proteome-visualization | fef978e967c8c655f13c9d7bdc4b0ea6722c1702 | [
"MIT"
] | 1 | 2019-01-12T21:08:04.000Z | 2019-01-12T21:08:04.000Z | # Import all handlers here
from . import favicon
from . import index
from . import generic
from . import elements
from . import about
from . import explore
from . import analyze
from . import features
from . import contact_request
| 21 | 29 | 0.779221 |
daf6f9c7d30a34d3c94b6b8fe9ce4baebeac1d1a | 557 | py | Python | chapter05/selenium_search.py | Alchemy2011/spider | b98d1325fb15c05e2f377d324b52a963cbd281b7 | [
"Apache-2.0"
] | null | null | null | chapter05/selenium_search.py | Alchemy2011/spider | b98d1325fb15c05e2f377d324b52a963cbd281b7 | [
"Apache-2.0"
] | null | null | null | chapter05/selenium_search.py | Alchemy2011/spider | b98d1325fb15c05e2f377d324b52a963cbd281b7 | [
"Apache-2.0"
] | null | null | null | from selenium import webdriver
if __name__ == '__main__':
main()
| 29.315789 | 90 | 0.70377 |
daf8c93c68ea72475a8bc28453e465ac66d5643e | 4,218 | py | Python | alano/train/scheduler.py | zren96/alano | afd412ea37d8d4844cf1c8c9d53ff419b206a878 | [
"MIT"
] | null | null | null | alano/train/scheduler.py | zren96/alano | afd412ea37d8d4844cf1c8c9d53ff419b206a878 | [
"MIT"
] | null | null | null | alano/train/scheduler.py | zren96/alano | afd412ea37d8d4844cf1c8c9d53ff419b206a878 | [
"MIT"
] | null | null | null | # Please contact the author(s) of this library if you have any questions.
# Authors: Kai-Chieh Hsu ( kaichieh@princeton.edu )
| 29.496503 | 77 | 0.535088 |
daf9278d222cf45edcab2ef14a2e92ba938bb19d | 5,684 | py | Python | page_generator/page.py | abamaxa/docvision_generator | 8017f29c7d908cb80ddcd59e345a222271fa74de | [
"MIT"
] | 2 | 2020-02-06T17:30:41.000Z | 2020-08-04T10:35:46.000Z | page_generator/page.py | abamaxa/docvision_generator | 8017f29c7d908cb80ddcd59e345a222271fa74de | [
"MIT"
] | null | null | null | page_generator/page.py | abamaxa/docvision_generator | 8017f29c7d908cb80ddcd59e345a222271fa74de | [
"MIT"
] | null | null | null | import random
import time
import abc
import logging
from graphics import Draw
from augmentation import ImgAugAugmentor, ImageTiler
from .page_params import DefaultPageParameters, JsonPageParameters
| 32.112994 | 95 | 0.590957 |
daf9942d2334651ad722f813433f661721b44f8b | 2,300 | py | Python | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/access_methods/ao_memory.py | lintzc/GPDB | b48c8b97da18f495c10065d0853db87960aebae2 | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2017-09-15T06:09:56.000Z | 2017-09-15T06:09:56.000Z | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/access_methods/ao_memory.py | guofengrichard/gpdb | 29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/access_methods/ao_memory.py | guofengrichard/gpdb | 29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3 | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2018-12-04T09:13:57.000Z | 2018-12-04T09:13:57.000Z | #!/usr/bin/env python
"""
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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 c... | 34.848485 | 112 | 0.662609 |
dafbd40cad0eb57f596dddcee79aa818cb434531 | 3,650 | py | Python | src/car_fft.py | pradolucas/SSVEP-EEG-MLP-OLS | 13838520b361ae8b9a1eb1eb7310df87307b9e14 | [
"MIT"
] | null | null | null | src/car_fft.py | pradolucas/SSVEP-EEG-MLP-OLS | 13838520b361ae8b9a1eb1eb7310df87307b9e14 | [
"MIT"
] | null | null | null | src/car_fft.py | pradolucas/SSVEP-EEG-MLP-OLS | 13838520b361ae8b9a1eb1eb7310df87307b9e14 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.fft import fft
def Ext_fft (N, fs, data10, data11, data12, data13, out_chans):
"""
args:
N -> x.shape
fs -> sampling frequency
dataX -> matrix (1536,16, 12)
out_chan -> canais a serem excluidos
"""
N_class = 4; N_trials = 12; n_h... | 44.512195 | 149 | 0.605205 |
dafc383902e4c6bea31e70d1cffee9e8e5849542 | 1,129 | py | Python | drl/agents/architectures/stateless/identity.py | lucaslingle/pytorch_drl | 6b2c1142a36553ce5dcb0a5768767579676d5791 | [
"MIT"
] | null | null | null | drl/agents/architectures/stateless/identity.py | lucaslingle/pytorch_drl | 6b2c1142a36553ce5dcb0a5768767579676d5791 | [
"MIT"
] | null | null | null | drl/agents/architectures/stateless/identity.py | lucaslingle/pytorch_drl | 6b2c1142a36553ce5dcb0a5768767579676d5791 | [
"MIT"
] | null | null | null | from typing import Optional, Callable, List
import torch as tc
import numpy as np
from drl.agents.architectures.stateless.abstract import StatelessArchitecture
| 28.948718 | 79 | 0.621789 |
dafea2c686231896944f55b0c44273c242a20cee | 849 | py | Python | parser/osm_parser_mapking.py | justinxutianyu/comp90019 | 8814a9b83845a6fb79df2a6519ad58933adeda7b | [
"MIT"
] | 1 | 2018-03-28T05:38:33.000Z | 2018-03-28T05:38:33.000Z | parser/osm_parser_mapking.py | justinxutianyu/comp90019 | 8814a9b83845a6fb79df2a6519ad58933adeda7b | [
"MIT"
] | null | null | null | parser/osm_parser_mapking.py | justinxutianyu/comp90019 | 8814a9b83845a6fb79df2a6519ad58933adeda7b | [
"MIT"
] | 1 | 2020-09-20T12:16:24.000Z | 2020-09-20T12:16:24.000Z | import geog
import networkx as nx
import osmgraph
# By default any way with a highway tag will be loaded
g = osmgraph.parse_file('hawaii-latest.osm.bz2') # or .osm or .pbf
for n1, n2 in g.edges_iter():
c1, c2 = osmgraph.tools.coordinates(g, (n1, n2))
g[n1][n2]['length'] = geog.distance(c1, c2)
import ran... | 30.321429 | 80 | 0.718492 |
daffae650b4cac45f75d1dd51f783f6589ac9f78 | 727 | py | Python | StevenKyritsis_HW12.py | stevenkyritsis/NJIT-CS100 | 9466489c4de80610cadb5c1eac4d87fd81bfb6d3 | [
"MIT"
] | null | null | null | StevenKyritsis_HW12.py | stevenkyritsis/NJIT-CS100 | 9466489c4de80610cadb5c1eac4d87fd81bfb6d3 | [
"MIT"
] | null | null | null | StevenKyritsis_HW12.py | stevenkyritsis/NJIT-CS100 | 9466489c4de80610cadb5c1eac4d87fd81bfb6d3 | [
"MIT"
] | null | null | null | '''
Steven Kyritsis
CS100-031 Fall 2021
HW12 December 10, 2021
'''
#1
#2
#3 | 18.175 | 47 | 0.543329 |
daffdb9455aa48dcd12cd0e1505bc6d5e7a7d07f | 1,916 | py | Python | examples/ball-example/main.py | zenvarlab/pyobjus | 7aee8c3c8a0f6a595813eeee9dd7555d15e22791 | [
"MIT"
] | null | null | null | examples/ball-example/main.py | zenvarlab/pyobjus | 7aee8c3c8a0f6a595813eeee9dd7555d15e22791 | [
"MIT"
] | null | null | null | examples/ball-example/main.py | zenvarlab/pyobjus | 7aee8c3c8a0f6a595813eeee9dd7555d15e22791 | [
"MIT"
] | null | null | null | from random import random
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import NumericProperty, ReferenceListProperty, ObjectProperty
from kivy.vector import Vector
from kivy.clock import Clock
from kivy.graphics import Color
from pyobjus import autoclass
if __name__ == '__main__':... | 29.030303 | 82 | 0.673278 |
9701669fb5c866f8345c058d57a2ed6b185e336f | 3,120 | py | Python | src/simulator.py | xfontes42/hermes-simulation | 152261f0070b6b1520f77c04bc5ffa655eee6a56 | [
"MIT"
] | 7 | 2019-07-11T16:07:55.000Z | 2020-04-20T13:57:15.000Z | src/simulator.py | xfontes42/hermes-simulation | 152261f0070b6b1520f77c04bc5ffa655eee6a56 | [
"MIT"
] | null | null | null | src/simulator.py | xfontes42/hermes-simulation | 152261f0070b6b1520f77c04bc5ffa655eee6a56 | [
"MIT"
] | 1 | 2019-11-12T15:46:54.000Z | 2019-11-12T15:46:54.000Z | """
Simulation process.
From micro-level decision making and learning, to macro-level simulation of Users on a graph network.
"""
from typing import List
from queue import PriorityQueue
from event import CreateActorEvent, AccidentEvent
from graph import RoadGraph
from utils import MultimodalDistribution
import random
... | 33.913043 | 101 | 0.619872 |
97039496056b7e83ea410edfccaace315b1743cb | 1,842 | py | Python | k3rn3l-ctf-2021/non-square-freedom/nonsquarefreedom_hard.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | k3rn3l-ctf-2021/non-square-freedom/nonsquarefreedom_hard.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | k3rn3l-ctf-2021/non-square-freedom/nonsquarefreedom_hard.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from Crypto.Util.number import getPrime
import os
# Local imports
with open('flag.txt','rb') as f:
FLAG = f.read()
f.close()
# Key gen
P = getPrime(512//8)
Q = getPrime(256)
R = getPrime(256)
N = P**8 * Q * R
E = 0x10001
# Pad FLAG
M = pad_hard(int.from_bytes(FLAG,'big'))
print('M < N ... | 36.84 | 312 | 0.718784 |
970a9d3e9d746e1c16f29ba79d77121d2113ea09 | 289,399 | py | Python | src/LDAPython.py | Sapphirine/Myusic-Song-Clustering-and-Recommendation-based-on-Lyrics | cfddec84da2f057c51834c082813035a71361af0 | [
"Apache-2.0"
] | 2 | 2018-04-26T03:00:35.000Z | 2019-01-09T10:05:48.000Z | src/LDAPython.py | Sapphirine/Myusic-Song-Clustering-and-Recommendation-based-on-Lyrics | cfddec84da2f057c51834c082813035a71361af0 | [
"Apache-2.0"
] | null | null | null | src/LDAPython.py | Sapphirine/Myusic-Song-Clustering-and-Recommendation-based-on-Lyrics | cfddec84da2f057c51834c082813035a71361af0 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import lda
import lda.datasets
import pandas as pd
import sys
import pickle
from os import listdir
from os.path import isfile, join
mypath = '/home/parth/Documents/BigDataAnalytics/LDA/Myusic/src'
if __name__ =='__main__':
main()
| 3,663.278481 | 286,614 | 0.735745 |
970bc5d985c5ec7c1678258df3a9cea0543b131f | 97 | py | Python | Guanabara/desafio01.py | manuellaAlvesVarella/python | eedb8362f0ebc8074f87d15c9e629e319ff29394 | [
"MIT"
] | 1 | 2022-03-25T20:42:20.000Z | 2022-03-25T20:42:20.000Z | Guanabara/desafio01.py | manuellaAlvesVarella/python | eedb8362f0ebc8074f87d15c9e629e319ff29394 | [
"MIT"
] | null | null | null | Guanabara/desafio01.py | manuellaAlvesVarella/python | eedb8362f0ebc8074f87d15c9e629e319ff29394 | [
"MIT"
] | null | null | null | nome = (input('digite o seu nome:'))
print ('muito prazer {} seja muito bem vinda!'.format(nome)) | 48.5 | 60 | 0.680412 |
970dad092658f2157138a1a5f9f10c91aeb6717d | 172 | py | Python | dvc/utils/pkg.py | lucasalavapena/dvc | 230eb7087df7f063ded7422af7ae45bd04eb794a | [
"Apache-2.0"
] | 9,136 | 2018-05-30T05:10:44.000Z | 2022-03-31T16:58:52.000Z | dvc/utils/pkg.py | lucasalavapena/dvc | 230eb7087df7f063ded7422af7ae45bd04eb794a | [
"Apache-2.0"
] | 4,804 | 2018-05-30T00:36:42.000Z | 2022-03-31T18:34:54.000Z | dvc/utils/pkg.py | lucasalavapena/dvc | 230eb7087df7f063ded7422af7ae45bd04eb794a | [
"Apache-2.0"
] | 1,072 | 2018-05-30T07:59:35.000Z | 2022-03-28T20:43:49.000Z | try:
# file is created during dvc build
from .build import PKG # noqa, pylint:disable=unused-import
except ImportError:
PKG = None # type: ignore[assignment]
| 28.666667 | 64 | 0.703488 |
970e1f7fef998ab31085dc663a1674dc001390c6 | 8,182 | py | Python | src/util/utils_data.py | georghess/EBM_ONGOING | c5cabe71d26972a7346c13248549b6b4b4fca9f0 | [
"MIT"
] | null | null | null | src/util/utils_data.py | georghess/EBM_ONGOING | c5cabe71d26972a7346c13248549b6b4b4fca9f0 | [
"MIT"
] | null | null | null | src/util/utils_data.py | georghess/EBM_ONGOING | c5cabe71d26972a7346c13248549b6b4b4fca9f0 | [
"MIT"
] | 1 | 2022-03-28T07:55:57.000Z | 2022-03-28T07:55:57.000Z | import os, sys
from pathlib import Path
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.patches as patches
try:
from data_handle.mid_object import *
except:
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from data_handle.mid_object import *
'''
Th... | 45.966292 | 132 | 0.516989 |
970e939e562e16d85a8752aedbeeb35345d7581d | 1,047 | py | Python | 2021/d03/d03.py | pravin/advent-2016 | ecb0f72b9152c13e9c05d3ed2510bf7b8aa0907c | [
"Apache-2.0"
] | null | null | null | 2021/d03/d03.py | pravin/advent-2016 | ecb0f72b9152c13e9c05d3ed2510bf7b8aa0907c | [
"Apache-2.0"
] | null | null | null | 2021/d03/d03.py | pravin/advent-2016 | ecb0f72b9152c13e9c05d3ed2510bf7b8aa0907c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
inp = []
with open('03.txt') as fp:
for line in fp:
inp.append(line.strip())
gamma, epsilon = part1(inp)
print(int(gamma, 2) * int(epsilon, 2))
print(part2(inp)) | 24.348837 | 71 | 0.546323 |
970ed693f23636178c5bb2e32a7f866dc966fbe4 | 93 | py | Python | project/admin.py | abrusebas1997/Contractor1.2 | b8f76e3e48282002b3500353970163e572454dc9 | [
"MIT"
] | null | null | null | project/admin.py | abrusebas1997/Contractor1.2 | b8f76e3e48282002b3500353970163e572454dc9 | [
"MIT"
] | 7 | 2019-12-20T04:52:30.000Z | 2022-02-10T14:08:29.000Z | project/admin.py | abrusebas1997/Contractor1.2 | b8f76e3e48282002b3500353970163e572454dc9 | [
"MIT"
] | null | null | null | from django.contrib import admin
from project.models import Code
admin.site.register(Code)
| 15.5 | 32 | 0.817204 |
970f6482050bf709cb922751a75043b07cb64396 | 167 | py | Python | ABC151-200/ABC188/abc188_c.py | billyio/atcoder | 9d16765f91f28deeb7328fcc6c19541ee790941f | [
"MIT"
] | 1 | 2021-02-01T08:48:07.000Z | 2021-02-01T08:48:07.000Z | ABC151-200/ABC188/abc188_c.py | billyio/atcoder | 9d16765f91f28deeb7328fcc6c19541ee790941f | [
"MIT"
] | null | null | null | ABC151-200/ABC188/abc188_c.py | billyio/atcoder | 9d16765f91f28deeb7328fcc6c19541ee790941f | [
"MIT"
] | null | null | null | # ac
N = int(input())
A = list(map(int,input().split()))
mid = int(2**N/2)
left, right = A[:mid], A[mid:]
second = min(max(left), max(right))
print(A.index(second)+1) | 20.875 | 35 | 0.598802 |
971097828072775e23da859896c3b27a12ba0f10 | 866 | py | Python | setup.py | emanuil-tolev/fundfind | 95cc4b30efc6a3dc73142d82ea32c8fd8ca74029 | [
"MIT"
] | null | null | null | setup.py | emanuil-tolev/fundfind | 95cc4b30efc6a3dc73142d82ea32c8fd8ca74029 | [
"MIT"
] | null | null | null | setup.py | emanuil-tolev/fundfind | 95cc4b30efc6a3dc73142d82ea32c8fd8ca74029 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name = 'fundfind',
version = '0.1',
packages = find_packages(),
url = 'http://fundfind.cottagelabs.com',
author = 'Emanuil Tolev',
author_email = 'emanuil.tolev@gmail.com',
description = 'fundfind - an Open way to share, visualise and map o... | 28.866667 | 107 | 0.58545 |
9710f1d1eb6938d90f2b8d292a4b49fd45d5e6b2 | 7,317 | py | Python | kmip/tests/unit/core/primitives/test_text_string.py | vbnmmnbv/PyKMIP | 4617ae528006178c466fe3945a477f568b596940 | [
"Apache-2.0"
] | 12 | 2016-09-14T21:59:10.000Z | 2020-03-11T07:37:25.000Z | kmip/tests/unit/core/primitives/test_text_string.py | vbnmmnbv/PyKMIP | 4617ae528006178c466fe3945a477f568b596940 | [
"Apache-2.0"
] | null | null | null | kmip/tests/unit/core/primitives/test_text_string.py | vbnmmnbv/PyKMIP | 4617ae528006178c466fe3945a477f568b596940 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2015 The Johns Hopkins University/Applied Physics Laboratory
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | 35.347826 | 76 | 0.615963 |
97118de28dd2ee1505fc16784df85c27f371441c | 966 | py | Python | index.py | legit-programming/Todo-App | 4dc89091de6769d139378291e520f60db38b9e0c | [
"MIT"
] | 6 | 2022-01-17T21:31:59.000Z | 2022-02-06T15:10:51.000Z | index.py | aroary/Todo-App | 9ff93bfde074cab661dc64c929553e6dc35efdb1 | [
"MIT"
] | 10 | 2022-01-17T19:57:12.000Z | 2022-01-30T00:01:39.000Z | index.py | aroary/Todo-App | 9ff93bfde074cab661dc64c929553e6dc35efdb1 | [
"MIT"
] | 5 | 2022-01-17T17:00:50.000Z | 2022-01-27T20:27:38.000Z | import sys, os
for i in ["/task", "/workspace", "/program"]:
sys.path.append(os.path.dirname(os.path.realpath(__file__)) + i)
import taskManager, workspaceManager, programManager
commands = workspaceManager.commands + taskManager.commands + programManager.commands
os.environ["workspace"] = ""
if __name__ == "_... | 29.272727 | 123 | 0.57971 |
971206a1d098bfc1ed1d8951e05a60695b7c9d27 | 2,793 | py | Python | fingerprint.py | Sinnup/audio-matching | 2948684dcf24bcbde228f3cc2a52f63818e0be5a | [
"MIT"
] | 99 | 2015-01-10T18:43:42.000Z | 2022-03-30T14:29:51.000Z | fingerprint.py | Sinnup/audio-matching | 2948684dcf24bcbde228f3cc2a52f63818e0be5a | [
"MIT"
] | 1 | 2015-07-19T08:28:44.000Z | 2015-07-19T08:28:44.000Z | fingerprint.py | Sinnup/audio-matching | 2948684dcf24bcbde228f3cc2a52f63818e0be5a | [
"MIT"
] | 26 | 2015-03-24T05:31:49.000Z | 2022-01-30T15:14:04.000Z | '''
Hash and Acoustic Fingerprint Functions
Bryant Moquist
'''
import numpy as np
def findAdjPts(index,A,delay_time,delta_time,delta_freq):
"Find the three closest adjacent points to the anchor point"
adjPts = []
low_x = A[index][0]+delay_time
high_x = low_x+delta_time
low_y = A[index][1]-delt... | 34.481481 | 102 | 0.577873 |
971279e27cb8fe7a2ddcfa304bd094cf6b9e8fdb | 2,423 | py | Python | Logger.py | amgc500/MCNTE | dae1a7b90bb7b338438eb470db9f1787999d9186 | [
"MIT"
] | null | null | null | Logger.py | amgc500/MCNTE | dae1a7b90bb7b338438eb470db9f1787999d9186 | [
"MIT"
] | null | null | null | Logger.py | amgc500/MCNTE | dae1a7b90bb7b338438eb470db9f1787999d9186 | [
"MIT"
] | null | null | null | """Implement a logging system.
This class will direct output to both the screen and a specified file.
Code for the article "Monte Carlo Methods for the Neutron Transport Equation.
By A. Cox, A. Kyprianou, S. Harris, M. Wang.
Thi sfile contains the code to produce the plots in the case of the 2D version
of the NTE.
... | 35.115942 | 115 | 0.723896 |
97149262bbd428324f437fa0917c8d422307a8e1 | 497 | py | Python | setup.py | questerp/ngcustom | 672b74bbab7556c7ad12f0e1590989a2c001bdda | [
"MIT"
] | 1 | 2021-09-02T06:23:20.000Z | 2021-09-02T06:23:20.000Z | setup.py | questerp/ngcustom | 672b74bbab7556c7ad12f0e1590989a2c001bdda | [
"MIT"
] | null | null | null | setup.py | questerp/ngcustom | 672b74bbab7556c7ad12f0e1590989a2c001bdda | [
"MIT"
] | 3 | 2021-08-24T03:16:39.000Z | 2022-01-11T17:41:44.000Z | from setuptools import setup, find_packages
with open("requirements.txt") as f:
install_requires = f.read().strip().split("\n")
# get version from __version__ variable in ngcustom/__init__.py
from ngcustom import __version__ as version
setup(
name="ngcustom",
version=version,
description="NG Custom",
author="ht... | 24.85 | 63 | 0.778672 |
97185f3518d98406e32c428a023e22ba0091e6ee | 723 | py | Python | unmanic_api/exceptions.py | JeffResc/Unmanic-API | a68afccd90ac6fff7ad7eb4abae98fa1e086f239 | [
"MIT"
] | 1 | 2022-03-05T11:52:05.000Z | 2022-03-05T11:52:05.000Z | unmanic_api/exceptions.py | JeffResc/Unmanic-API | a68afccd90ac6fff7ad7eb4abae98fa1e086f239 | [
"MIT"
] | null | null | null | unmanic_api/exceptions.py | JeffResc/Unmanic-API | a68afccd90ac6fff7ad7eb4abae98fa1e086f239 | [
"MIT"
] | null | null | null | """Exceptions for Unmanic."""
| 19.026316 | 68 | 0.744122 |
971b1024d262f590f2811690807479b3a887465f | 883 | py | Python | src/pyCellAnalyst/FilteringPipeline.py | siboles/pyCellAnalyst | 39767a3a44a17b3578dc8e7691ecf70e5813aa47 | [
"MIT"
] | 9 | 2015-05-17T21:35:46.000Z | 2020-09-17T13:24:29.000Z | src/pyCellAnalyst/FilteringPipeline.py | siboles/pyCellAnalyst | 39767a3a44a17b3578dc8e7691ecf70e5813aa47 | [
"MIT"
] | null | null | null | src/pyCellAnalyst/FilteringPipeline.py | siboles/pyCellAnalyst | 39767a3a44a17b3578dc8e7691ecf70e5813aa47 | [
"MIT"
] | 3 | 2017-12-31T15:05:37.000Z | 2020-08-14T08:22:08.000Z | import SimpleITK as sitk
from .Filters import Filter
| 31.535714 | 73 | 0.635334 |
971c10fddeb2592cbeffdde840c44586375536de | 8,824 | py | Python | utils/manip_trajectories.py | cimat-ris/TrajectoryInference | 27d1d2d692df52b403cf6557ecba628f818cd380 | [
"Apache-2.0"
] | 6 | 2019-11-05T00:56:06.000Z | 2021-12-05T21:11:14.000Z | utils/manip_trajectories.py | cimat-ris/TrajectoryInference | 27d1d2d692df52b403cf6557ecba628f818cd380 | [
"Apache-2.0"
] | 2 | 2021-05-22T11:16:45.000Z | 2021-05-31T00:42:07.000Z | utils/manip_trajectories.py | cimat-ris/TrajectoryInference | 27d1d2d692df52b403cf6557ecba628f818cd380 | [
"Apache-2.0"
] | 1 | 2021-05-22T10:35:18.000Z | 2021-05-22T10:35:18.000Z | from utils.stats_trajectories import trajectory_arclength
import statistics as stats
import numpy as np
import logging
# Returns a matrix of trajectories:
# the entry (i,j) has the paths that go from the goal i to the goal j
# Removes atypical trajectories
# Removes atypical trajectories from a multidimensional array... | 35.580645 | 147 | 0.588282 |
971c37f2ffdd0ab88324429196593d4e40d558d8 | 111 | py | Python | relex/predictors/__init__.py | DFKI-NLP/RelEx | 0826c02f793b78bf8b7b7001c2e3fdfdb25c1ad2 | [
"Apache-2.0"
] | 16 | 2020-04-21T19:04:23.000Z | 2021-08-03T04:30:43.000Z | relex/predictors/__init__.py | DFKI-NLP/RelEx | 0826c02f793b78bf8b7b7001c2e3fdfdb25c1ad2 | [
"Apache-2.0"
] | 3 | 2020-07-25T12:29:21.000Z | 2021-06-11T02:06:58.000Z | relex/predictors/__init__.py | DFKI-NLP/RelEx | 0826c02f793b78bf8b7b7001c2e3fdfdb25c1ad2 | [
"Apache-2.0"
] | 2 | 2020-06-25T12:50:57.000Z | 2020-11-01T10:31:04.000Z | from relex.predictors.relation_classification.relation_classifier_predictor import RelationClassifierPredictor
| 55.5 | 110 | 0.936937 |
971e11a191a2c90f19801ef91e07b01ad3290c0c | 466 | py | Python | pytoast/decorators/step.py | daniloster/pytoast | b0ceb02134aa4249888faeb8b5617e562aba6002 | [
"MIT"
] | null | null | null | pytoast/decorators/step.py | daniloster/pytoast | b0ceb02134aa4249888faeb8b5617e562aba6002 | [
"MIT"
] | null | null | null | pytoast/decorators/step.py | daniloster/pytoast | b0ceb02134aa4249888faeb8b5617e562aba6002 | [
"MIT"
] | null | null | null | from pytoast import output
steps = []
| 21.181818 | 65 | 0.637339 |
971fb6a85d3cbf695aa897f929140e6516bbd21b | 2,795 | py | Python | src/plot_scripts/plot_paper_training_curves.py | zxxia/RL-CC | d3d3be0097d69ee07b06363ad531cf2479029d74 | [
"Apache-2.0"
] | 1 | 2022-02-04T17:51:42.000Z | 2022-02-04T17:51:42.000Z | src/plot_scripts/plot_paper_training_curves.py | zxxia/RL-CC | d3d3be0097d69ee07b06363ad531cf2479029d74 | [
"Apache-2.0"
] | null | null | null | src/plot_scripts/plot_paper_training_curves.py | zxxia/RL-CC | d3d3be0097d69ee07b06363ad531cf2479029d74 | [
"Apache-2.0"
] | 2 | 2021-06-05T02:29:51.000Z | 2021-08-16T16:15:19.000Z | from common.utils import set_seed
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
plt.style.use('seaborn-deep')
set_seed(10)
df_genet_bbr = pd.read_csv('training_curve_genet_bbr.csv')
df_udr = pd.read_csv('training_curve_udr.csv')
assert isinstance(df_genet_bbr, pd.DataFrame)
assert isinstance(... | 36.298701 | 170 | 0.762075 |
9720df3c7f4c75af7b6a562de185586e6e09fa33 | 1,622 | py | Python | dissertation/code/mouse-data/test_DecodeMouseData.py | spanners/dissertation | e7f0cbf681d2341ecb2e00d40557e4e34f8b7209 | [
"MIT"
] | 2 | 2015-09-09T16:53:46.000Z | 2019-04-03T01:19:48.000Z | dissertation/code/mouse-data/test_DecodeMouseData.py | spanners/dissertation | e7f0cbf681d2341ecb2e00d40557e4e34f8b7209 | [
"MIT"
] | null | null | null | dissertation/code/mouse-data/test_DecodeMouseData.py | spanners/dissertation | e7f0cbf681d2341ecb2e00d40557e4e34f8b7209 | [
"MIT"
] | null | null | null | import unittest
import DecodeMouseData as d
if __name__ == '__main__':
main()
| 21.626667 | 63 | 0.538224 |
97213b0b15ddf94c1a5e3760a74ffc981af34d12 | 707 | py | Python | cone_intersection.py | FlorianMarcon/104intersection | 09a5f84d9b76f6c3d21af8d1aa33c665994c3beb | [
"MIT"
] | null | null | null | cone_intersection.py | FlorianMarcon/104intersection | 09a5f84d9b76f6c3d21af8d1aa33c665994c3beb | [
"MIT"
] | null | null | null | cone_intersection.py | FlorianMarcon/104intersection | 09a5f84d9b76f6c3d21af8d1aa33c665994c3beb | [
"MIT"
] | null | null | null | from math import tan, radians
from display import *
| 35.35 | 72 | 0.661952 |
9721ef07918231ab859cd2bc6178d6541bbf6879 | 171 | py | Python | eln/decorators/register_reader.py | lehvitus/eln | b78362af20cacffe076bf3dbfd27dcc090e43e39 | [
"BSD-3-Clause"
] | 2 | 2020-02-05T04:00:32.000Z | 2020-03-18T02:12:33.000Z | eln/decorators/register_reader.py | oleoneto/eln | b78362af20cacffe076bf3dbfd27dcc090e43e39 | [
"BSD-3-Clause"
] | 1 | 2020-03-18T02:36:04.000Z | 2020-03-18T02:36:04.000Z | eln/decorators/register_reader.py | oleoneto/eln | b78362af20cacffe076bf3dbfd27dcc090e43e39 | [
"BSD-3-Clause"
] | null | null | null | # eln:decorators
READERS = dict()
# Decorator for adding reader functions
| 15.545455 | 41 | 0.748538 |
972210e9d4237830409dd9dc4ce4b1766efc0590 | 411 | py | Python | twitter/api/router.py | JollyBanny/sample-django | bc001fa4fd6d547bc7ef4704c4954980862a91e7 | [
"MIT"
] | null | null | null | twitter/api/router.py | JollyBanny/sample-django | bc001fa4fd6d547bc7ef4704c4954980862a91e7 | [
"MIT"
] | null | null | null | twitter/api/router.py | JollyBanny/sample-django | bc001fa4fd6d547bc7ef4704c4954980862a91e7 | [
"MIT"
] | null | null | null | from rest_framework.routers import SimpleRouter, Route | 27.4 | 55 | 0.49635 |