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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d9839a9bfcd4356445500aa4cbe2a5a6ec7e5d33 | 6,564 | py | Python | source/lhpFunctions.py | bebox/lhp | 163ccd8cd62544549c04c885991230cf23628d23 | [
"Unlicense"
] | null | null | null | source/lhpFunctions.py | bebox/lhp | 163ccd8cd62544549c04c885991230cf23628d23 | [
"Unlicense"
] | 1 | 2017-08-28T18:32:30.000Z | 2017-08-28T18:32:30.000Z | source/lhpFunctions.py | bebox/lhp | 163ccd8cd62544549c04c885991230cf23628d23 | [
"Unlicense"
] | null | null | null | import operator
#spriteSlova = ["A", "B", "C", "D", "E", "F", "G", "H", "i", "s", "e"]
spriteSlova = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "s", ",", "'", "1", "2", "4", "8", "6", "3", ".", "5", "7", "9", "0", "M", "B", "I", "N", "S", "E", "R", "T", " ", "-", "V","U" ,"A", "L", "O", "D", ":", "m", "j", "n", "u"... | 26.361446 | 303 | 0.525594 |
d9842f4bb2256c41284d5f50c85e169d5f9be22c | 1,161 | py | Python | bigdata/spark/sparktest/ml/kmeans.py | gzc/isystem | 8a2116c174e88f92b90af30c67d9b955d41bead9 | [
"MIT"
] | 91 | 2016-02-21T03:19:08.000Z | 2022-02-15T01:20:00.000Z | bigdata/spark/sparktest/ml/kmeans.py | gzc/isystem | 8a2116c174e88f92b90af30c67d9b955d41bead9 | [
"MIT"
] | null | null | null | bigdata/spark/sparktest/ml/kmeans.py | gzc/isystem | 8a2116c174e88f92b90af30c67d9b955d41bead9 | [
"MIT"
] | 24 | 2016-03-09T16:05:43.000Z | 2021-12-13T02:47:20.000Z | # -*- coding: utf-8 -*-
from pyspark.mllib.clustering import KMeans, KMeansModel
from numpy import array
from math import sqrt
from pyspark import SparkContext, SparkConf
conf = SparkConf()
conf.setAppName("deep test")#.setMaster("spark://192.168.1.14:7077")#.setExecutorEnv("CLASSPATH", path)
#conf.set("spark.schedule... | 34.147059 | 103 | 0.724376 |
d984ab97c158ba754132a5054a70a7ee9bd1dfd6 | 1,044 | py | Python | django/Pieng/myclass/myquiz/migrations/0001_initial.py | wasit7/tutorials | 83499821266c8debac05cb5d6d5f6da0f0abd68f | [
"MIT"
] | 4 | 2016-02-23T15:39:45.000Z | 2018-03-25T20:15:07.000Z | django/Pieng/myclass/myquiz/migrations/0001_initial.py | wasit7/tutorials | 83499821266c8debac05cb5d6d5f6da0f0abd68f | [
"MIT"
] | null | null | null | django/Pieng/myclass/myquiz/migrations/0001_initial.py | wasit7/tutorials | 83499821266c8debac05cb5d6d5f6da0f0abd68f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-09-02 04:17
from __future__ import unicode_literals
from django.db import migrations, models
| 33.677419 | 121 | 0.551724 |
d9851295fc1b539ec63c5d82ddfa2066e034c2c2 | 1,123 | py | Python | python/pyselenium/appselenium.py | santoshkiran2710/learn | 6a69df7f0241f562832db910a4d5b8d886ea1ee4 | [
"Apache-2.0"
] | null | null | null | python/pyselenium/appselenium.py | santoshkiran2710/learn | 6a69df7f0241f562832db910a4d5b8d886ea1ee4 | [
"Apache-2.0"
] | null | null | null | python/pyselenium/appselenium.py | santoshkiran2710/learn | 6a69df7f0241f562832db910a4d5b8d886ea1ee4 | [
"Apache-2.0"
] | null | null | null | from selenium import webdriver
# from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import ElementNotInteractableException
EXE_PATH = r'chromedriver_win32\chromedriver.exe'
# options = webdriver.ChromeOptions()
# options.add_argument... | 29.552632 | 96 | 0.780944 |
d9853a93187db6bb57dc4f160db304d1c200e02d | 372 | py | Python | bayesian_framework/inference/stochastic_models/covariance_type.py | AlexeyKonakov/state-space-estimation | ba30243211aded0db5b56ece134ab70d0b27ed03 | [
"MIT"
] | null | null | null | bayesian_framework/inference/stochastic_models/covariance_type.py | AlexeyKonakov/state-space-estimation | ba30243211aded0db5b56ece134ab70d0b27ed03 | [
"MIT"
] | null | null | null | bayesian_framework/inference/stochastic_models/covariance_type.py | AlexeyKonakov/state-space-estimation | ba30243211aded0db5b56ece134ab70d0b27ed03 | [
"MIT"
] | null | null | null | from enum import Enum
| 19.578947 | 70 | 0.715054 |
d9874f815897d825300517e1211e3fda8b4e31b9 | 1,775 | py | Python | experiments/test_clustering_toy.py | flatironinstitute/mantis | 2cf149b5bfa4f7c6dbf5aa47f1010785e886bd2c | [
"BSD-3-Clause"
] | 7 | 2018-11-02T07:02:54.000Z | 2022-02-07T21:23:32.000Z | experiments/test_clustering_toy.py | TrentBrick/mantis | 2cf149b5bfa4f7c6dbf5aa47f1010785e886bd2c | [
"BSD-3-Clause"
] | 1 | 2021-08-12T02:47:59.000Z | 2021-08-12T02:47:59.000Z | experiments/test_clustering_toy.py | TrentBrick/mantis | 2cf149b5bfa4f7c6dbf5aa47f1010785e886bd2c | [
"BSD-3-Clause"
] | 5 | 2019-07-03T23:21:21.000Z | 2021-09-23T01:04:47.000Z | import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
import os
import seaborn as sns
from mantis import sdp_km_burer_monteiro
from data import toy
from experiments.utils import plot_matrix, plot_data_clustered
dir_name = '../results/'
if not os.path.exists(dir_name):
os.mkdir(dir_name)
dir_name +... | 29.583333 | 70 | 0.615775 |
d98892f4f88ab1b8eefeca76facdaa133fb52463 | 4,988 | py | Python | tests/test_datastores.py | scieloorg/oai-pmh | 9d3044921d2d5cafb18e54f04070e8783f49c06d | [
"BSD-2-Clause"
] | 2 | 2019-03-16T04:40:29.000Z | 2022-03-10T14:50:21.000Z | tests/test_datastores.py | DalavanCloud/oai-pmh | 9d3044921d2d5cafb18e54f04070e8783f49c06d | [
"BSD-2-Clause"
] | 27 | 2017-08-23T17:11:57.000Z | 2021-06-01T21:57:31.000Z | tests/test_datastores.py | DalavanCloud/oai-pmh | 9d3044921d2d5cafb18e54f04070e8783f49c06d | [
"BSD-2-Clause"
] | 2 | 2017-06-12T16:18:35.000Z | 2019-03-16T04:40:12.000Z | import os
import unittest
from .fixtures import factories
from oaipmh import datastores
FIXTURES_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'fixtures')
| 33.931973 | 84 | 0.592622 |
d9898ad6ace0a8c40d03c56afa0f34fec81b4b52 | 617 | py | Python | archive/munging/sparse-matrices.py | ajrichards/bayesian-examples | fbd87c6f1613ea516408e9ebc3c9eff1248246e4 | [
"BSD-3-Clause"
] | 2 | 2016-01-27T08:51:23.000Z | 2017-04-17T02:21:34.000Z | archive/munging/sparse-matrices.py | ajrichards/notebook | fbd87c6f1613ea516408e9ebc3c9eff1248246e4 | [
"BSD-3-Clause"
] | null | null | null | archive/munging/sparse-matrices.py | ajrichards/notebook | fbd87c6f1613ea516408e9ebc3c9eff1248246e4 | [
"BSD-3-Clause"
] | null | null | null |
import numpy as np
from scipy import sparse
from sklearn.model_selection import train_test_split
rows = [0,1,2,8]
cols = [1,0,4,8]
vals = [1,2,1,4]
A = sparse.coo_matrix((vals, (rows, cols)))
print(A.todense())
B = A.tocsr()
C = sparse.csr_matrix(np.array([0,1,0,0,2,0,0,0,1]).reshape(1,9))
print(B.shape,C.shape)... | 18.147059 | 90 | 0.690438 |
d98ba3c2b414703556864f30f4b3118522a3cc86 | 2,669 | py | Python | examples/text_classification/ernie_doc/export_model.py | mukaiu/PaddleNLP | 0315365dbafa6e3b1c7147121ba85e05884125a5 | [
"Apache-2.0"
] | null | null | null | examples/text_classification/ernie_doc/export_model.py | mukaiu/PaddleNLP | 0315365dbafa6e3b1c7147121ba85e05884125a5 | [
"Apache-2.0"
] | null | null | null | examples/text_classification/ernie_doc/export_model.py | mukaiu/PaddleNLP | 0315365dbafa6e3b1c7147121ba85e05884125a5 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2022 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 appli... | 46.824561 | 135 | 0.68003 |
d98bf9aa4cd828c629ab1a2f0625a60277fbed3b | 1,200 | py | Python | Assignment_1/spring_Verlet.py | oscarliu666/Mars_lander | 54074b19ea8a105f8d43e307e6821f7957e2f149 | [
"MIT"
] | null | null | null | Assignment_1/spring_Verlet.py | oscarliu666/Mars_lander | 54074b19ea8a105f8d43e307e6821f7957e2f149 | [
"MIT"
] | null | null | null | Assignment_1/spring_Verlet.py | oscarliu666/Mars_lander | 54074b19ea8a105f8d43e307e6821f7957e2f149 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
# mass, spring constant, initial position and velocity
m = 1
k = 1
x = 0
v = 1
# Creating first two data using Euler's method
t_max = 0.2
dt = 0.1
t_array = np.arange(0, t_max, dt)
x_list = []
v_list = []
for t in t_array:
x_list.append(x)
v_list.append(v)
... | 21.428571 | 87 | 0.655833 |
d98c5c32470533f5e38ecdc52006cf25f2bed7c6 | 7,148 | py | Python | scripts/plotvarbcpred.py | ewhelan/AccordDaTools | 0d2f7fc15a864743745b2d06d40a78f8fb3adc35 | [
"MIT"
] | 6 | 2021-11-04T20:30:53.000Z | 2022-02-02T08:14:34.000Z | scripts/plotvarbcpred.py | ewhelan/AccordDaTools | 0d2f7fc15a864743745b2d06d40a78f8fb3adc35 | [
"MIT"
] | 17 | 2021-11-05T09:58:18.000Z | 2022-02-01T10:11:11.000Z | scripts/plotvarbcpred.py | ewhelan/AccordDaTools | 0d2f7fc15a864743745b2d06d40a78f8fb3adc35 | [
"MIT"
] | 9 | 2021-11-04T22:24:54.000Z | 2022-02-01T09:33:30.000Z | #!/usr/bin/env python3
import sys
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import datetime as dt
import numpy as np
import argparse
global pred_map,sat_map,inst_map
pred_map = { 1 : '1 (constant) ',
2 : '1000-300hPa thickness',
3 : '200-50hPa thickness... | 30.033613 | 119 | 0.488109 |
d98e1d55c1bc4e2c79a8d84cbbde470f542825c7 | 5,448 | py | Python | server/www/teleport/webroot/app/controller/rpc.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 640 | 2018-09-12T03:14:13.000Z | 2022-03-30T04:38:09.000Z | server/www/teleport/webroot/app/controller/rpc.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 175 | 2018-09-10T19:52:20.000Z | 2022-03-30T04:37:30.000Z | server/www/teleport/webroot/app/controller/rpc.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 230 | 2018-09-13T02:40:49.000Z | 2022-03-29T11:53:58.000Z | # -*- coding: utf-8 -*-
import json
import urllib.parse
import tornado.gen
from app.const import *
from app.base.configs import tp_cfg
from app.base.session import tp_session
from app.base.core_server import core_service_async_post_http
from app.model import record
from app.base.stats import tp_stats
from app.base.lo... | 35.148387 | 199 | 0.610866 |
d98fc42743eeb4946a837f6ed891152e1dccbddd | 7,924 | py | Python | scripts/s3-uploader.py | kltm/go-site | fe6797ed1291bd0d12df83b7c9d670c91a0fb526 | [
"BSD-3-Clause"
] | 31 | 2016-11-01T13:11:43.000Z | 2022-02-28T05:05:16.000Z | scripts/s3-uploader.py | kltm/go-site | fe6797ed1291bd0d12df83b7c9d670c91a0fb526 | [
"BSD-3-Clause"
] | 1,172 | 2015-01-29T23:47:53.000Z | 2022-03-30T05:22:01.000Z | scripts/s3-uploader.py | kltm/go-site | fe6797ed1291bd0d12df83b7c9d670c91a0fb526 | [
"BSD-3-Clause"
] | 92 | 2015-02-11T03:10:55.000Z | 2022-03-01T08:16:02.000Z | """
Copy the contents of a local directory into the correct S3 location,
using the correct metadata as supplied by the metadata file (or
internal defaults).
"""
####
#### Copy the contents of a local directory into the correct S3
#### location, using the correct metadata as supplied by the metadata
#### file (or intern... | 34.754386 | 208 | 0.597047 |
d9934b5b31dd1ab6a965f3c1c5def23d62e6d7e1 | 2,714 | py | Python | iss.py | WesleySalesberry/q3-ISS_Location | fec7d8e3eda510ef3d9dadb671dae07faf3bbcfb | [
"MIT"
] | null | null | null | iss.py | WesleySalesberry/q3-ISS_Location | fec7d8e3eda510ef3d9dadb671dae07faf3bbcfb | [
"MIT"
] | null | null | null | iss.py | WesleySalesberry/q3-ISS_Location | fec7d8e3eda510ef3d9dadb671dae07faf3bbcfb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
__author__ = 'Wesley Salesberry'
import turtle
from datetime import datetime
import requests
import json
# Cleans up the json so that it is readable
# gets the number and name of each astronaught
# Get the ISS current geographic coordinates and a timestamp
if __name__ == '__main__':... | 24.899083 | 78 | 0.653279 |
d994167805a77600928084b097565dcf01f4d86b | 856 | py | Python | engram/tests/test_sys_redirect.py | rgrannell1/engram.py | 69ca1af7b0ddb963a611e15414aa2eda48d6c325 | [
"MIT",
"Unlicense"
] | null | null | null | engram/tests/test_sys_redirect.py | rgrannell1/engram.py | 69ca1af7b0ddb963a611e15414aa2eda48d6c325 | [
"MIT",
"Unlicense"
] | 36 | 2015-01-24T23:12:10.000Z | 2015-07-12T19:01:44.000Z | engram/tests/test_sys_redirect.py | rgrannell1/engram.py | 69ca1af7b0ddb963a611e15414aa2eda48d6c325 | [
"MIT",
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import unittest
import os
import sys
import requests
import utils_test
from multiprocessing import Process
import time
sys.path.append(os.path.abspath('engram'))
import engram
unittest.main()
| 16.784314 | 77 | 0.73014 |
d9946bb8c2704c7b486d4cec4c620148972620c7 | 832 | py | Python | pyluna-radiology/tests/luna/radiology/unpack_images/test_unpack.py | msk-mind/data-processing | c016d218da2eca003d06b96f2c03f16b3ce97873 | [
"Apache-2.0"
] | 1 | 2022-03-29T03:48:00.000Z | 2022-03-29T03:48:00.000Z | pyluna-radiology/tests/luna/radiology/unpack_images/test_unpack.py | msk-mind/data-processing | c016d218da2eca003d06b96f2c03f16b3ce97873 | [
"Apache-2.0"
] | 96 | 2020-11-15T01:39:12.000Z | 2021-08-24T14:37:49.000Z | pyluna-radiology/tests/luna/radiology/unpack_images/test_unpack.py | msk-mind/luna | 282b5bd594cb5bf1ef2a7fdf56fca9bea5ad7102 | [
"Apache-2.0"
] | 1 | 2021-01-04T15:14:23.000Z | 2021-01-04T15:14:23.000Z | import pytest
import os, shutil
from pyspark import SQLContext
from click.testing import CliRunner
import os
from luna.radiology.unpack_images.unpack import cli
unpacked_pngs_path = "pyluna-radiology/tests/luna/radiology/testdata/unpacked_pngs"
app_config_path = unpacked_pngs_path + "/app_config.yaml"
data_config_pa... | 29.714286 | 83 | 0.75601 |
d994afeaeff45c52b68d6ecd1d3cab66dc88c2ae | 6,414 | py | Python | Cpy simplified/wiznet_simplify.py | ronpang/WIZnet-HK_Ron | d9df912ee9afe70c3aad17e0d703428afe2f2b4c | [
"Apache-2.0"
] | null | null | null | Cpy simplified/wiznet_simplify.py | ronpang/WIZnet-HK_Ron | d9df912ee9afe70c3aad17e0d703428afe2f2b4c | [
"Apache-2.0"
] | null | null | null | Cpy simplified/wiznet_simplify.py | ronpang/WIZnet-HK_Ron | d9df912ee9afe70c3aad17e0d703428afe2f2b4c | [
"Apache-2.0"
] | null | null | null | # SPDX-FileCopyrightText: 2010 WIZnet
#
# SPDX-License-Identifier: MIT
import board
import digitalio
import time
import busio
from adafruit_wiznet5k.adafruit_wiznet5k import * #active WIZnet chip library
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket #open socket from WIZnet library
mo = Non... | 44.234483 | 155 | 0.613814 |
d995ed9a78a2caa29c4fbde84460690350266ffa | 5,384 | py | Python | data/KS_Eqn_data.py | BethanyL/PDEKoopman2 | 0006a312c3dae21e50aa55c7a0b2855b399eb66a | [
"MIT"
] | 10 | 2020-11-03T18:40:18.000Z | 2022-03-14T20:16:08.000Z | data/KS_Eqn_data.py | BethanyL/PDEKoopman2 | 0006a312c3dae21e50aa55c7a0b2855b399eb66a | [
"MIT"
] | null | null | null | data/KS_Eqn_data.py | BethanyL/PDEKoopman2 | 0006a312c3dae21e50aa55c7a0b2855b399eb66a | [
"MIT"
] | 4 | 2021-05-27T16:30:23.000Z | 2022-03-14T20:16:09.000Z | """
Create training/validation data for KS Equation.
All data comes from solutions to Kuramoto-Sivashinsky equation.
Training data:
Initial conditions:
120,000 ICs
White noise, Sines, Square waves
Solve from t = 0 to 6.25 in steps of 0.125
128 spatial points in [-4*pi,4*pi)
Validation data:... | 29.102703 | 78 | 0.595468 |
d9969a05f096d81dce287c738c5e5e126fbe6ca1 | 5,515 | py | Python | utils/tmp.py | adusa1019/ntm_one_shot_chainer | e465c5fe87ea9b472e31b939a326662f29061d2a | [
"MIT"
] | null | null | null | utils/tmp.py | adusa1019/ntm_one_shot_chainer | e465c5fe87ea9b472e31b939a326662f29061d2a | [
"MIT"
] | null | null | null | utils/tmp.py | adusa1019/ntm_one_shot_chainer | e465c5fe87ea9b472e31b939a326662f29061d2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding=utf-8
import argparse
import glob
import os
import random
import sys
import chainer
import numpy as np
def transform(in_data):
"""
in_data: 0.0~1.0
"""
return 1.0 - in_data
if __name__ == "__main__":
sys.path.append("../")
p... | 32.827381 | 100 | 0.584225 |
d996cbb7c38fe888bf793e20b3d9d879d7c89032 | 638 | py | Python | src/python/interpret/test/test_interactive.py | benediktwagner/interpret | a80e42fbaad7c25f4447b6f81137c53714eed710 | [
"MIT"
] | null | null | null | src/python/interpret/test/test_interactive.py | benediktwagner/interpret | a80e42fbaad7c25f4447b6f81137c53714eed710 | [
"MIT"
] | null | null | null | src/python/interpret/test/test_interactive.py | benediktwagner/interpret | a80e42fbaad7c25f4447b6f81137c53714eed710 | [
"MIT"
] | null | null | null | # Copyright (c) 2019 Microsoft Corporation
# Distributed under the MIT software license
from ..visual.interactive import set_show_addr, get_show_addr, shutdown_show_server
import pytest
| 23.62963 | 83 | 0.750784 |
d9984a1eaa310ceffb4b0516dba9fa5c2cb26f67 | 3,116 | py | Python | books/booksdatasourcetests.py | KristinA64/cs257 | c6db0fbe7aeae4355b3f4ef77b722da0d21f233c | [
"MIT"
] | null | null | null | books/booksdatasourcetests.py | KristinA64/cs257 | c6db0fbe7aeae4355b3f4ef77b722da0d21f233c | [
"MIT"
] | null | null | null | books/booksdatasourcetests.py | KristinA64/cs257 | c6db0fbe7aeae4355b3f4ef77b722da0d21f233c | [
"MIT"
] | null | null | null | '''
booksdatasourcetest.py
Jeff Ondich, 24 September 2021
Jayti Arora, Kristin Albright, 11 October 2021
'''
import booksdatasource
import unittest
if __name__ == '__main__':
unittest.main()
| 31.795918 | 166 | 0.660783 |
d998e1ab5fef60e996476ad6d46afb11a8a5096d | 1,201 | py | Python | thunder/extraction/extraction.py | pearsonlab/thunder | b15ba0a38642312d597a98643cf3514e2d46b69d | [
"Apache-2.0"
] | 1 | 2017-02-02T19:14:42.000Z | 2017-02-02T19:14:42.000Z | thunder/extraction/extraction.py | pearsonlab/thunder | b15ba0a38642312d597a98643cf3514e2d46b69d | [
"Apache-2.0"
] | null | null | null | thunder/extraction/extraction.py | pearsonlab/thunder | b15ba0a38642312d597a98643cf3514e2d46b69d | [
"Apache-2.0"
] | null | null | null | from thunder.utils.common import checkParams
from thunder.extraction.source import SourceModel
| 25.553191 | 72 | 0.670275 |
d9996a88fd4400c3095d1654847ddd898fa8ffb3 | 29 | py | Python | evaluation/__init__.py | ardihikaru/hfsoftmax | 55966f3a902c16df9b1ca93a77c5cd43efd47fd9 | [
"MIT"
] | 95 | 2018-02-10T05:12:57.000Z | 2022-03-15T07:58:58.000Z | evaluation/__init__.py | dapengchen123/hfsoftmax | 467bd90814abdf3e5ad8384e6e05749172b68ae6 | [
"MIT"
] | 14 | 2018-05-15T08:48:50.000Z | 2021-11-06T08:31:56.000Z | evaluation/__init__.py | dapengchen123/hfsoftmax | 467bd90814abdf3e5ad8384e6e05749172b68ae6 | [
"MIT"
] | 25 | 2018-07-04T09:16:28.000Z | 2022-02-07T20:54:47.000Z | from .verify import evaluate
| 14.5 | 28 | 0.827586 |
d9997a41753016ade3a2d33c67abf34f2848b4a6 | 1,110 | py | Python | src/plugins/render/__init__.py | MeetWq/mybot | bccfbe0caaab12f6f2bd7829735b482dcef8dc03 | [
"MIT"
] | 29 | 2021-04-27T14:20:34.000Z | 2022-03-26T04:54:03.000Z | src/plugins/render/__init__.py | MeetWq/mybot | bccfbe0caaab12f6f2bd7829735b482dcef8dc03 | [
"MIT"
] | 4 | 2021-06-13T06:43:04.000Z | 2022-03-29T13:28:09.000Z | src/plugins/render/__init__.py | MeetWq/mybot | bccfbe0caaab12f6f2bd7829735b482dcef8dc03 | [
"MIT"
] | 5 | 2021-05-30T02:07:13.000Z | 2022-02-16T12:37:38.000Z | from nonebot import on_command
from nonebot.typing import T_State
from nonebot.adapters.cqhttp import Bot, MessageEvent, MessageSegment, unescape
from .data_source import t2p, m2p
__des__ = 'Markdown'
__cmd__ = '''
text2pic/t2p {text}
md2pic/m2p {text}
'''.strip()
__short_cmd__ = 't2pm2p'
__example__ = '''
t2p test
m... | 25.227273 | 79 | 0.691892 |
d9999135438d8f7e96c61862f74117965703ca11 | 13,608 | py | Python | PIL_ext.py | Freakwill/pillow-extension | f0c19bfb1b4b14a2f9e0cc5e19cc7377bca3af9a | [
"MIT"
] | null | null | null | PIL_ext.py | Freakwill/pillow-extension | f0c19bfb1b4b14a2f9e0cc5e19cc7377bca3af9a | [
"MIT"
] | null | null | null | PIL_ext.py | Freakwill/pillow-extension | f0c19bfb1b4b14a2f9e0cc5e19cc7377bca3af9a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import itertools
import pathlib
import numpy as np
import numpy.linalg as LA
from PIL import Image
# from sklearn.preprocessing import FunctionTransformer
# class FiltTransformer(FunctionTransformer):
# '''Transform images to vectors
# '''
# def __init__(self, shape... | 28.528302 | 118 | 0.535788 |
7940e6cad1672aa487f8ed6c103179a0622ce4b6 | 2,050 | py | Python | acurl/tests/test_to_curl.py | markgreene74/mite | 339bdfc39be30534ea2169d8257469bd0ff535fb | [
"MIT"
] | 17 | 2019-11-14T22:32:56.000Z | 2022-02-01T15:38:03.000Z | acurl/tests/test_to_curl.py | markgreene74/mite | 339bdfc39be30534ea2169d8257469bd0ff535fb | [
"MIT"
] | 35 | 2020-01-08T10:50:31.000Z | 2022-02-17T17:00:34.000Z | acurl/tests/test_to_curl.py | markgreene74/mite | 339bdfc39be30534ea2169d8257469bd0ff535fb | [
"MIT"
] | 4 | 2019-11-14T14:48:18.000Z | 2020-05-06T22:09:25.000Z | import pytest
from helpers import create_request
import acurl
| 28.873239 | 87 | 0.540976 |
79428c007cb5f673c35aad775e047d5ad9cc87ed | 2,139 | py | Python | quickstartup/qs_accounts/admin.py | shahabaz/quickstartup | e351138580d3b332aa309d5d98d562a1ebef5c2c | [
"MIT"
] | 13 | 2015-06-10T03:29:15.000Z | 2021-10-01T22:06:48.000Z | quickstartup/qs_accounts/admin.py | shahabaz/quickstartup | e351138580d3b332aa309d5d98d562a1ebef5c2c | [
"MIT"
] | 47 | 2015-06-10T03:26:18.000Z | 2021-09-22T17:35:24.000Z | quickstartup/qs_accounts/admin.py | shahabaz/quickstartup | e351138580d3b332aa309d5d98d562a1ebef5c2c | [
"MIT"
] | 3 | 2015-07-07T23:55:39.000Z | 2020-04-18T10:34:53.000Z | from django import forms
from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.utils.translation import gettext_lazy as _
from .models import User
# Enable admin interface if User is the quickstart user model
if ... | 31.925373 | 89 | 0.656381 |
79429c3689c82a9d8ee2371c5c13aebcc653abca | 147 | py | Python | gitogether/__init__.py | nklapste/gitogether | 9190ea4a1a32e62f985b3694d3a1b949f1fb819c | [
"MIT"
] | null | null | null | gitogether/__init__.py | nklapste/gitogether | 9190ea4a1a32e62f985b3694d3a1b949f1fb819c | [
"MIT"
] | null | null | null | gitogether/__init__.py | nklapste/gitogether | 9190ea4a1a32e62f985b3694d3a1b949f1fb819c | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""gitogether
Scripts:
+ :mod:`.__main__` - argparse entry point
Module:
"""
__version__ = (0, 0, 0)
| 12.25 | 42 | 0.598639 |
79433c2c64a9ab2c02fd981a102c7df6825fc446 | 8,931 | py | Python | docparser/objdetmetrics_lib/BoundingBox.py | DS3Lab/DocParser | cbff40804dc0b1fd676d5776341a7b0ab20326a8 | [
"MIT"
] | 45 | 2020-05-22T03:44:38.000Z | 2022-03-10T12:43:55.000Z | docparser/objdetmetrics_lib/BoundingBox.py | DS3Lab/DocParser | cbff40804dc0b1fd676d5776341a7b0ab20326a8 | [
"MIT"
] | 24 | 2020-05-26T09:38:31.000Z | 2022-03-12T00:37:55.000Z | docparser/objdetmetrics_lib/BoundingBox.py | DS3Lab/DocParser | cbff40804dc0b1fd676d5776341a7b0ab20326a8 | [
"MIT"
] | 10 | 2020-07-22T16:34:50.000Z | 2022-03-29T11:25:49.000Z | from docparser.objdetmetrics_lib.utils import *
| 39 | 108 | 0.582578 |
7943b55ebcd4a7581b260d2ae0be079fff46cbb2 | 1,006 | py | Python | models/bare/conv4.py | sdamadi/image-classification | 2f38dc3c64c733f1ce820d09fe9d5f6dbf988f97 | [
"MIT"
] | 3 | 2021-12-13T13:05:58.000Z | 2022-03-23T09:14:13.000Z | models/bare/conv4.py | sdamadi/image-classification | 2f38dc3c64c733f1ce820d09fe9d5f6dbf988f97 | [
"MIT"
] | null | null | null | models/bare/conv4.py | sdamadi/image-classification | 2f38dc3c64c733f1ce820d09fe9d5f6dbf988f97 | [
"MIT"
] | 1 | 2021-12-31T04:00:45.000Z | 2021-12-31T04:00:45.000Z | import torch
import torch.nn as nn | 35.928571 | 78 | 0.626243 |
794550b3e089a03ac52fc5325d7e48e5473b9e71 | 3,897 | py | Python | libs/parser.py | micobg/revolut-stocks | dd421eaa4fbd3d07418851744a8b8700a05c20c6 | [
"MIT"
] | null | null | null | libs/parser.py | micobg/revolut-stocks | dd421eaa4fbd3d07418851744a8b8700a05c20c6 | [
"MIT"
] | null | null | null | libs/parser.py | micobg/revolut-stocks | dd421eaa4fbd3d07418851744a8b8700a05c20c6 | [
"MIT"
] | null | null | null | import pdfreader
from pdfreader import PDFDocument, SimplePDFViewer
from pdfreader.viewer import PageDoesNotExist
from datetime import datetime, timedelta
import decimal
decimal.getcontext().rounding = decimal.ROUND_HALF_UP
from libs import (
REVOLUT_DATE_FORMAT,
REVOLUT_ACTIVITY_TYPES,
REVOLUT_CASH_ACTIV... | 30.445313 | 101 | 0.663587 |
794752ad248ac1e49d852f894df16c035754b838 | 294 | py | Python | towers/monkey_village.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | towers/monkey_village.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | towers/monkey_village.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | from tower import Tower
from config import keybinds
| 18.375 | 34 | 0.636054 |
794c1ea5184b7567c398660c424a1ae553ad97a7 | 2,886 | py | Python | dataset/data_utils/point_util.py | shinke-li/Campus3D | 21768908b064d19ce8daacc2fa0a1fe9e0331514 | [
"MIT"
] | 31 | 2020-08-10T13:34:38.000Z | 2022-03-28T11:20:56.000Z | dataset/data_utils/point_util.py | shinke-li/Campus3D | 21768908b064d19ce8daacc2fa0a1fe9e0331514 | [
"MIT"
] | 6 | 2020-12-01T08:57:04.000Z | 2022-03-14T11:13:28.000Z | dataset/data_utils/point_util.py | shinke-li/Campus3D | 21768908b064d19ce8daacc2fa0a1fe9e0331514 | [
"MIT"
] | 4 | 2021-01-09T05:01:50.000Z | 2021-08-18T04:25:40.000Z | import numpy as np
| 35.195122 | 103 | 0.62578 |
794c350ea069aa341679917a988cf4d82813eb02 | 26,614 | py | Python | kairon/shared/account/processor.py | encounter-ai/kairon | 48eccde345781f95f0654813415e52f1b647d557 | [
"Apache-2.0"
] | null | null | null | kairon/shared/account/processor.py | encounter-ai/kairon | 48eccde345781f95f0654813415e52f1b647d557 | [
"Apache-2.0"
] | null | null | null | kairon/shared/account/processor.py | encounter-ai/kairon | 48eccde345781f95f0654813415e52f1b647d557 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from typing import Dict, Text
from loguru import logger as logging
from mongoengine.errors import DoesNotExist
from mongoengine.errors import ValidationError
from pydantic import SecretStr
from validators import ValidationFailure
from validators import email as mail_check
from kairon.exce... | 40.14178 | 148 | 0.617232 |
794d7c0bdb7cf85e9a79653c30295205d2671049 | 8,814 | py | Python | subtle_data_crimes/crime_2_jpeg/Fig7/DL/Test_MoDL_R4_forFig6.py | mikgroup/subtle_data_crimes | 210025d9cb8f92583f5f983be15af06b57cfea36 | [
"MIT"
] | 8 | 2021-12-12T02:32:30.000Z | 2021-12-17T02:26:26.000Z | subtle_data_crimes/crime_2_jpeg/Fig7/DL/Test_MoDL_R4_forFig6.py | mikgroup/data_crimes | 210025d9cb8f92583f5f983be15af06b57cfea36 | [
"MIT"
] | null | null | null | subtle_data_crimes/crime_2_jpeg/Fig7/DL/Test_MoDL_R4_forFig6.py | mikgroup/data_crimes | 210025d9cb8f92583f5f983be15af06b57cfea36 | [
"MIT"
] | null | null | null | '''
This code is used for testing MoDL on JPEG-compressed data, for the results shown in figures 6, 7 and 8c in the paper.
Before running this script you should update the following:
basic_data_folder - it should be the same as the output folder defined in the script /crime_2_jpeg/data_prep/jpeg_data_prep.py
(c... | 40.063636 | 142 | 0.579192 |
794d994e6a654793b9be5dad209aa40c437a4b42 | 1,555 | py | Python | wk8_hw/ex5_netmiko_sh_ver.py | philuu12/PYTHON_4_NTWK_ENGRS | ac0126ed687a5201031a6295d0094a536547cb92 | [
"Apache-2.0"
] | 1 | 2016-03-01T14:39:17.000Z | 2016-03-01T14:39:17.000Z | wk8_hw/ex5_netmiko_sh_ver.py | philuu12/PYTHON_4_NTWK_ENGRS | ac0126ed687a5201031a6295d0094a536547cb92 | [
"Apache-2.0"
] | null | null | null | wk8_hw/ex5_netmiko_sh_ver.py | philuu12/PYTHON_4_NTWK_ENGRS | ac0126ed687a5201031a6295d0094a536547cb92 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
5. Use Netmiko to connect to each of the devices in the database.
Execute 'show version' on each device. Calculate the amount of time required to do this.
"""
from netmiko import ConnectHandler
from datetime import datetime
from net_system.models import NetworkDevice, Credentials
import dja... | 31.1 | 88 | 0.601286 |
794dedba40b40b476e8d63ea141f220d3753504e | 1,679 | py | Python | homeassistant/components/multimatic/entities.py | thomasgermain/home-assistant | 69a8ba678e0276bc1bfde0f3d9e9d3682209f962 | [
"Apache-2.0"
] | 7 | 2019-08-15T13:36:58.000Z | 2020-03-18T10:46:29.000Z | homeassistant/components/multimatic/entities.py | thomasgermain/home-assistant | 69a8ba678e0276bc1bfde0f3d9e9d3682209f962 | [
"Apache-2.0"
] | 73 | 2020-10-01T06:39:39.000Z | 2022-03-31T06:16:15.000Z | homeassistant/components/multimatic/entities.py | thomasgermain/home-assistant | 69a8ba678e0276bc1bfde0f3d9e9d3682209f962 | [
"Apache-2.0"
] | 4 | 2019-10-26T14:25:13.000Z | 2020-11-10T11:00:18.000Z | """Common entities."""
from __future__ import annotations
from abc import ABC
import logging
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from homeassistant.util import slugify
from .const import DOMAIN as MULTIMATIC
from .coordinator import MultimaticCoordinator
_LOGGER = logging.getLogge... | 31.092593 | 87 | 0.691483 |
795032bb0ecff99121df7274f4717f56ce7ae0ce | 546 | py | Python | leetcode/binary_tree_preorder_traversal.py | alexandru-dinu/competitive-programming | 4515d221a649b3ab8bc012d01f38b9e4659e2e76 | [
"MIT"
] | null | null | null | leetcode/binary_tree_preorder_traversal.py | alexandru-dinu/competitive-programming | 4515d221a649b3ab8bc012d01f38b9e4659e2e76 | [
"MIT"
] | 6 | 2021-10-12T09:14:30.000Z | 2021-10-16T19:29:08.000Z | leetcode/binary_tree_preorder_traversal.py | alexandru-dinu/competitive-programming | 4515d221a649b3ab8bc012d01f38b9e4659e2e76 | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/binary-tree-preorder-traversal
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
| 28.736842 | 71 | 0.626374 |
7953237757066a1e307a88164071dd53e0b5748e | 22 | py | Python | Data/__init__.py | himammz/GpTest | 66d6158fe3729cd26ee89b5d4531a45ef80b4bb4 | [
"Apache-2.0"
] | 1 | 2017-05-03T17:45:58.000Z | 2017-05-03T17:45:58.000Z | Data/__init__.py | LobnaMazhar/test-Python_heroku_webhook | cf51971646a3481cc89bbfef17e5816f8684448d | [
"Apache-2.0"
] | null | null | null | Data/__init__.py | LobnaMazhar/test-Python_heroku_webhook | cf51971646a3481cc89bbfef17e5816f8684448d | [
"Apache-2.0"
] | null | null | null | __all__ = ['Database'] | 22 | 22 | 0.681818 |
7957a71d6d2755f3b8fcaf783d2178a12401cb0f | 13,067 | py | Python | debarcer/generate_vcf.py | FelixMoelder/debarcer | a401c1b0ad3f23b1f2c1c1cc03170c635186f78f | [
"MIT"
] | 11 | 2017-03-20T17:57:09.000Z | 2021-04-20T03:11:55.000Z | debarcer/generate_vcf.py | FelixMoelder/debarcer | a401c1b0ad3f23b1f2c1c1cc03170c635186f78f | [
"MIT"
] | 91 | 2016-06-28T20:59:30.000Z | 2021-04-20T21:41:42.000Z | debarcer/generate_vcf.py | FelixMoelder/debarcer | a401c1b0ad3f23b1f2c1c1cc03170c635186f78f | [
"MIT"
] | 13 | 2016-05-31T20:05:33.000Z | 2022-03-10T13:10:17.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 25 14:25:48 2019
@author: RJovelin
"""
import time
from debarcer.version import __version__
def GetConsData(consfile):
'''
(str) -> dict
:param consfile: Path to the consensus file (merged or not)
Returns a dictionary with consensus fil... | 52.477912 | 151 | 0.506161 |
7958021358b8497a9740cae1d6248424b99b99af | 1,239 | py | Python | geneticpython/core/operators/mutation/flip_bit_mutation.py | ngocjr7/geneticpython | 4b4157523ce13b3da56cef61282cb0a984cd317b | [
"MIT"
] | null | null | null | geneticpython/core/operators/mutation/flip_bit_mutation.py | ngocjr7/geneticpython | 4b4157523ce13b3da56cef61282cb0a984cd317b | [
"MIT"
] | null | null | null | geneticpython/core/operators/mutation/flip_bit_mutation.py | ngocjr7/geneticpython | 4b4157523ce13b3da56cef61282cb0a984cd317b | [
"MIT"
] | null | null | null | """
# Problem: flip_bit_mutation.py
# Description:
# Created by ngocjr7 on [2020-03-31 16:49:14]
"""
from __future__ import absolute_import
from geneticpython.models.binary_individual import BinaryIndividual
from .mutation import Mutation
from geneticpython.utils.validation import check_random_state
from ... | 31.769231 | 75 | 0.644875 |
795a4c1bfcd51d93ac77149dbb23b12fc1c26f21 | 2,784 | py | Python | data/ansible-module-template.py | trskop/hsansible | 00b2c5894edcdd6a4af710e28497b3b327fdd87c | [
"BSD-3-Clause"
] | 12 | 2015-01-06T23:59:53.000Z | 2021-01-02T13:58:26.000Z | data/ansible-module-template.py | trskop/hsansible | 00b2c5894edcdd6a4af710e28497b3b327fdd87c | [
"BSD-3-Clause"
] | 1 | 2021-10-06T12:44:10.000Z | 2022-01-12T11:21:42.000Z | data/ansible-module-template.py | trskop/hsansible | 00b2c5894edcdd6a4af710e28497b3b327fdd87c | [
"BSD-3-Clause"
] | 2 | 2020-04-25T17:25:26.000Z | 2021-11-07T21:13:49.000Z | #!/usr/bin/env python
# This file was generated using $program$ $version$ from a template
# with following copyringht notice.
#
# Copyright (c) 2013, Peter Trsko <peter.trsko@gmail.com>
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provide... | 31.280899 | 77 | 0.716236 |
795a4fc28e89d6456c1ac8ed1e083d75a41fba93 | 21,542 | py | Python | Structured/models/building_blocks/transformers.py | hlzhang109/TransTEE | 00e6977147a6dcb3e83f1fe70cd1f4cbef7321a4 | [
"MIT"
] | 11 | 2022-02-08T12:50:06.000Z | 2022-03-08T15:03:37.000Z | Structured/models/building_blocks/transformers.py | hlzhang109/TransTEE | 00e6977147a6dcb3e83f1fe70cd1f4cbef7321a4 | [
"MIT"
] | 1 | 2022-03-30T08:32:24.000Z | 2022-03-31T14:01:04.000Z | Structured/models/building_blocks/transformers.py | hlzhang109/TransTEE | 00e6977147a6dcb3e83f1fe70cd1f4cbef7321a4 | [
"MIT"
] | null | null | null | import copy
from typing import Optional, Any
import numpy as np
import torch
from torch import Tensor, nn
from torch.nn.parameter import Parameter
import torch.nn.functional as F
from torch.nn.modules.module import Module
from torch.nn.modules.container import ModuleList
from torch.nn.modules.batchnorm import BatchNorm... | 44.416495 | 130 | 0.653003 |
795c1fc522f4a8e51e07d7ca0949a39666658ecb | 759 | py | Python | HLTrigger/Configuration/python/HLT_75e33/psets/initialStepTrajectoryFilterShapePreSplitting_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | HLTrigger/Configuration/python/HLT_75e33/psets/initialStepTrajectoryFilterShapePreSplitting_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | HLTrigger/Configuration/python/HLT_75e33/psets/initialStepTrajectoryFilterShapePreSplitting_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:16:05.000Z | 2021-11-30T16:16:05.000Z | import FWCore.ParameterSet.Config as cms
initialStepTrajectoryFilterShapePreSplitting = cms.PSet(
ComponentType = cms.string('StripSubClusterShapeTrajectoryFilter'),
layerMask = cms.PSet(
TEC = cms.bool(False),
TIB = cms.vuint32(1, 2),
TID = cms.vuint32(1, 2),
TOB = cms.bool(Fal... | 33 | 71 | 0.665349 |
795ca2f85109d4a52387597dbdcc94941edf3d70 | 476 | py | Python | cradmin_legacy/apps/cradmin_authenticate/views/logout.py | appressoas/cradmin_legacy | b9d024299333dd04c87c1031bd5be5778aa7f1f1 | [
"BSD-3-Clause"
] | null | null | null | cradmin_legacy/apps/cradmin_authenticate/views/logout.py | appressoas/cradmin_legacy | b9d024299333dd04c87c1031bd5be5778aa7f1f1 | [
"BSD-3-Clause"
] | 17 | 2018-03-07T15:52:42.000Z | 2022-03-12T01:07:06.000Z | cradmin_legacy/apps/cradmin_authenticate/views/logout.py | appressoas/cradmin_legacy | b9d024299333dd04c87c1031bd5be5778aa7f1f1 | [
"BSD-3-Clause"
] | 1 | 2018-07-23T22:13:45.000Z | 2018-07-23T22:13:45.000Z | from __future__ import unicode_literals
from django.conf import settings
from django.contrib.auth import logout
| 28 | 89 | 0.693277 |
795fd3fe6d7d7b004dd81e70f06dba806a77ae6d | 200 | py | Python | examples/example_modules/module_2.py | vladcalin/pymicroservice | 325a49d17621b9d45ffd2b5eca6f0de284de8ba4 | [
"MIT"
] | 2 | 2016-12-17T13:09:14.000Z | 2016-12-31T18:38:57.000Z | examples/example_modules/module_2.py | vladcalin/pymicroservice | 325a49d17621b9d45ffd2b5eca6f0de284de8ba4 | [
"MIT"
] | 15 | 2016-11-27T13:28:25.000Z | 2017-01-10T09:09:30.000Z | examples/example_modules/module_2.py | vladcalin/pymicroservice | 325a49d17621b9d45ffd2b5eca6f0de284de8ba4 | [
"MIT"
] | null | null | null | from gemstone.core.modules import Module
import gemstone
| 22.222222 | 49 | 0.74 |
796096c1c50893d696b4438b3858d3367239caf3 | 4,064 | py | Python | dashboard/dashboard/pages/__init__.py | uk-gov-mirror/NHSX.covid-chest-imaging-database | 77799a97193d09e9267182d18fbb79d604bbb038 | [
"MIT"
] | 56 | 2020-04-08T12:40:28.000Z | 2021-10-02T22:57:16.000Z | dashboard/dashboard/pages/__init__.py | uk-gov-mirror/NHSX.covid-chest-imaging-database | 77799a97193d09e9267182d18fbb79d604bbb038 | [
"MIT"
] | 111 | 2020-04-02T13:23:06.000Z | 2022-03-30T13:23:28.000Z | dashboard/dashboard/pages/__init__.py | uk-gov-mirror/NHSX.covid-chest-imaging-database | 77799a97193d09e9267182d18fbb79d604bbb038 | [
"MIT"
] | 10 | 2020-05-05T14:07:11.000Z | 2022-01-11T15:47:27.000Z | """Create and manage all the pages in the dashboard
"""
from pathlib import Path
import dash_bootstrap_components as dbc
import plotly.io as pio
from jinja2 import Environment, FileSystemLoader
from dataset import Dataset
from .hospitals import create_app as hospitals_create_app
from .images import create_app as i... | 30.103704 | 84 | 0.649852 |
79624d1c639a3ad314464723a290c9f75da7a2e0 | 587 | py | Python | tasks/serializers.py | rohitdwivedula/ultimate-task-manager | 6ec2bc3ed0cadafb8ebe0015901d21d449d02920 | [
"MIT"
] | null | null | null | tasks/serializers.py | rohitdwivedula/ultimate-task-manager | 6ec2bc3ed0cadafb8ebe0015901d21d449d02920 | [
"MIT"
] | 8 | 2020-06-15T18:50:59.000Z | 2021-09-22T19:11:12.000Z | tasks/serializers.py | rohitdwivedula/ultimate-task-manager | 6ec2bc3ed0cadafb8ebe0015901d21d449d02920 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from tasks.models import Label, Task, SubTask
| 27.952381 | 62 | 0.686542 |
796463d420b0f9517f139756701b8769580ee632 | 15,252 | py | Python | UNIOA/Opt_X.py | Huilin-Li/UNIOA | 0f2527eac955a7193406775e5b71fab35f064422 | [
"MIT"
] | null | null | null | UNIOA/Opt_X.py | Huilin-Li/UNIOA | 0f2527eac955a7193406775e5b71fab35f064422 | [
"MIT"
] | null | null | null | UNIOA/Opt_X.py | Huilin-Li/UNIOA | 0f2527eac955a7193406775e5b71fab35f064422 | [
"MIT"
] | null | null | null | from sklearn.metrics import pairwise_distances
from .LevyFlight import Levy
import numpy as np
from numba import jit, prange
| 37.752475 | 97 | 0.490296 |
796543711296bb20b3f8da4652f0c6abe79f2ea5 | 441 | py | Python | open_astral_engine/effects/buff.py | I-dan-mi-I/Open-Astral-Engine | 5f7c62521e852cde4ca0fb0668950ebb5b65dc2b | [
"MIT"
] | null | null | null | open_astral_engine/effects/buff.py | I-dan-mi-I/Open-Astral-Engine | 5f7c62521e852cde4ca0fb0668950ebb5b65dc2b | [
"MIT"
] | null | null | null | open_astral_engine/effects/buff.py | I-dan-mi-I/Open-Astral-Engine | 5f7c62521e852cde4ca0fb0668950ebb5b65dc2b | [
"MIT"
] | null | null | null | from .base_classes import EffectsDict
effects = EffectsDict()
| 18.375 | 37 | 0.632653 |
7969dba1ec36aaaf1c3e2d990d03d9878390981e | 1,918 | py | Python | sshserveraudit/validator/__init__.py | zwiazeksyndykalistowpolski/ssh-server-audit | b493f3ea6117d9567310857cdf567c159f848cf8 | [
"Apache-2.0"
] | 2 | 2018-11-13T17:05:26.000Z | 2019-04-14T08:07:02.000Z | sshserveraudit/validator/__init__.py | zwiazeksyndykalistowpolski/ssh-server-audit | b493f3ea6117d9567310857cdf567c159f848cf8 | [
"Apache-2.0"
] | 4 | 2018-11-05T06:31:22.000Z | 2019-02-10T16:19:23.000Z | sshserveraudit/validator/__init__.py | zwiazeksyndykalistowpolski/ssh-server-audit | b493f3ea6117d9567310857cdf567c159f848cf8 | [
"Apache-2.0"
] | null | null | null |
from ..entity.host import Node
from ..valueobject.validator import ValidatorResult
import time
import datetime
import tornado.log
| 29.96875 | 113 | 0.645985 |
796a850dd8a39e780d7335b0dac89761a2e6189d | 2,754 | py | Python | evaluate_recon_cd.py | kampta/multiview-shapes | a79eb4b492be8c2c279e2c69b13d5a19dff1621b | [
"MIT"
] | null | null | null | evaluate_recon_cd.py | kampta/multiview-shapes | a79eb4b492be8c2c279e2c69b13d5a19dff1621b | [
"MIT"
] | null | null | null | evaluate_recon_cd.py | kampta/multiview-shapes | a79eb4b492be8c2c279e2c69b13d5a19dff1621b | [
"MIT"
] | null | null | null | import numpy as np
from scipy.spatial import cKDTree as KDTree
import math
import argparse
# ref: https://github.com/facebookresearch/DeepSDF/blob/master/deep_sdf/metrics/chamfer.py
# takes one pair of reconstructed and gt point cloud and return the cd
if __name__ == '__main__':
num_gen_pts_sample = 30000
... | 35.766234 | 122 | 0.707335 |
796c61eb1e898a9ee98e905e4ca9dcd5c53b0226 | 15,730 | py | Python | scripts/process.py | lpenuelac/ImageAnalysis | a01b1278cca92e45fef6f5e41d1310cfbb041308 | [
"MIT"
] | 93 | 2015-11-26T14:15:51.000Z | 2022-03-10T13:54:21.000Z | scripts/process.py | lpenuelac/ImageAnalysis | a01b1278cca92e45fef6f5e41d1310cfbb041308 | [
"MIT"
] | 19 | 2017-04-06T11:09:21.000Z | 2022-03-05T20:12:39.000Z | scripts/process.py | lpenuelac/ImageAnalysis | a01b1278cca92e45fef6f5e41d1310cfbb041308 | [
"MIT"
] | 30 | 2017-06-12T16:08:51.000Z | 2022-01-28T17:34:04.000Z | #!/usr/bin/env python3
# This is the master ImageAnalysis processing script. For DJI and
# Sentera cameras it should typically be able to run through with
# default settings and produce a good result with no further input.
#
# If something goes wrong, there are usually specific sub-scripts that
# can be run to fix th... | 37.541766 | 150 | 0.665861 |
796cb38d769b13ea579d997da3aa47f6153dc1ba | 5,643 | py | Python | lib/OSCP.py | streetlightvision/oscp-datalogger | 89e8ea1e3e01f87f6eecc309f9493257aa76a6c4 | [
"MIT"
] | null | null | null | lib/OSCP.py | streetlightvision/oscp-datalogger | 89e8ea1e3e01f87f6eecc309f9493257aa76a6c4 | [
"MIT"
] | null | null | null | lib/OSCP.py | streetlightvision/oscp-datalogger | 89e8ea1e3e01f87f6eecc309f9493257aa76a6c4 | [
"MIT"
] | null | null | null | import sqlite3
import sys
import json
import datetime
import time
import xml.etree.ElementTree as ET
from lib.CMS import CMS
State = enum('INIT', 'CONNECT_LOCAL_DB', 'GATHER_DATA', 'DISCONNECT_LOCAL_DB', 'BUILD_MESSAGES', 'CMS_CONNECT', 'CMS_SEND_MESSAGES', 'CMS_DISCONNECT', 'UPDATE_LOCAL_DB', 'SLEEP')
| 28.074627 | 178 | 0.676945 |
796cded9c34bd0af7648cb87ccf4a21eb04be8fe | 2,563 | py | Python | src/subs/get.py | ganghe74/solve | fbe552c5d814481516df49e56a2ca44d077adc3f | [
"MIT"
] | null | null | null | src/subs/get.py | ganghe74/solve | fbe552c5d814481516df49e56a2ca44d077adc3f | [
"MIT"
] | null | null | null | src/subs/get.py | ganghe74/solve | fbe552c5d814481516df49e56a2ca44d077adc3f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import click
import requests
import re
import os
from bs4 import BeautifulSoup
headers = {
'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36"
}
sources = {
'boj': {
'url': 'https://acmicpc.net/proble... | 37.691176 | 134 | 0.618806 |
796dd6489e7d3795bde89e9672ccc64d5291b617 | 3,708 | py | Python | infer_server/python/test/session_test.py | YJessicaGao/easydk | e62eecde91886c2679def95edafb48f97650edfa | [
"Apache-2.0"
] | null | null | null | infer_server/python/test/session_test.py | YJessicaGao/easydk | e62eecde91886c2679def95edafb48f97650edfa | [
"Apache-2.0"
] | null | null | null | infer_server/python/test/session_test.py | YJessicaGao/easydk | e62eecde91886c2679def95edafb48f97650edfa | [
"Apache-2.0"
] | null | null | null | # ==============================================================================
# Copyright (C) [2022] by Cambricon, Inc. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License ... | 39.446809 | 119 | 0.717368 |
796e308e3ae0b1c52c53c2125b380ddc7ffbb777 | 12,198 | py | Python | src/aiokatcp/connection.py | richarms/aiokatcp | a5dfa76e8a887b4ce78c15e78f75d245427de7c9 | [
"BSD-3-Clause"
] | null | null | null | src/aiokatcp/connection.py | richarms/aiokatcp | a5dfa76e8a887b4ce78c15e78f75d245427de7c9 | [
"BSD-3-Clause"
] | 26 | 2017-11-16T18:45:53.000Z | 2021-07-20T06:55:00.000Z | src/aiokatcp/connection.py | richarms/aiokatcp | a5dfa76e8a887b4ce78c15e78f75d245427de7c9 | [
"BSD-3-Clause"
] | 2 | 2021-01-06T12:07:35.000Z | 2021-01-25T13:51:12.000Z | # Copyright 2017 National Research Foundation (Square Kilometre Array)
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditi... | 38.601266 | 95 | 0.64199 |
796e37841a2b9327525d2f20afdde82f19ecdb55 | 245 | py | Python | slpostfix.py | xDiaym/SingleLineRPN | ef6adc921f4367037c5f8e7618da70c47f60385e | [
"MIT"
] | 1 | 2020-05-18T16:35:07.000Z | 2020-05-18T16:35:07.000Z | slpostfix.py | xDiaym/SingleLineRPN | ef6adc921f4367037c5f8e7618da70c47f60385e | [
"MIT"
] | null | null | null | slpostfix.py | xDiaym/SingleLineRPN | ef6adc921f4367037c5f8e7618da70c47f60385e | [
"MIT"
] | null | null | null | print((lambda f,i:f.reduce((lambda s,_:(lambda d,t:{'+':lambda a,b:a+b,'-':lambda a,b:a-b,'*':lambda a,b:a*b,'/':lambda a,b:a/b}.get(t)(s,d))(float(i.pop(0)),i.pop(0))),i,float(i.pop(0))))(__import__('functools'),__import__('sys').argv[1:]+[0])) | 245 | 245 | 0.595918 |
796fc439176b40e3891418e6bb7eef6c82b84a76 | 2,160 | py | Python | mock_stream.py | ckljohn/dash-live-table | 13403abf9ec5104478035df786769929ddecf388 | [
"MIT"
] | null | null | null | mock_stream.py | ckljohn/dash-live-table | 13403abf9ec5104478035df786769929ddecf388 | [
"MIT"
] | null | null | null | mock_stream.py | ckljohn/dash-live-table | 13403abf9ec5104478035df786769929ddecf388 | [
"MIT"
] | null | null | null | """
This script is to stream tcpdump to local Elasticsearch.
Require root permission.
"""
from datetime import datetime
import subprocess as sub
import re
from elasticsearch import Elasticsearch, RequestsHttpConnection, helpers
tcpdump_reg = re.compile(r"IP (?P<IP1>[\w.-]+)\.(?P<Port1>\w+) > (?P<IP2>[\w.-]+)\.(?P<Por... | 29.189189 | 139 | 0.586111 |
7970aa708751ee6a4b070c68336ca60913d78621 | 7,988 | py | Python | VVeb.UQ/www/interfaces/submit_prominence_workflow.py | ukaea/ALC_UQ | a2747c94036b04f1279abb5683c6a225a878aea3 | [
"Apache-2.0"
] | 2 | 2021-11-24T10:43:50.000Z | 2021-12-07T20:02:38.000Z | VVeb.UQ/www/interfaces/submit_prominence_workflow.py | ukaea/ALC_UQ | a2747c94036b04f1279abb5683c6a225a878aea3 | [
"Apache-2.0"
] | null | null | null | VVeb.UQ/www/interfaces/submit_prominence_workflow.py | ukaea/ALC_UQ | a2747c94036b04f1279abb5683c6a225a878aea3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import os
import subprocess
import sys
import json
import requests
import time
# --- Function to execute command with interactive printout sent to web-terminal in real-time
# --- Get the Prominence Session Token if it exists
# --- Get a temporary URL from Prominence which can be used for uplo... | 34.431034 | 115 | 0.64672 |
79742159685b138626139ec17f0dd1f22c8b1981 | 338 | py | Python | rial_old/stages/post_parsing/infinite_loop_detector.py | L3tum/RIAL | fba25f37434ff51e0de8e22ce834af589aba24e8 | [
"BSD-3-Clause"
] | 2 | 2020-06-02T20:00:28.000Z | 2020-06-06T02:15:49.000Z | rial_old/stages/post_parsing/infinite_loop_detector.py | L3tum/RIAL | fba25f37434ff51e0de8e22ce834af589aba24e8 | [
"BSD-3-Clause"
] | 51 | 2020-04-13T13:27:10.000Z | 2020-06-12T11:38:36.000Z | rial_old/stages/post_parsing/infinite_loop_detector.py | L3tum/RIAL | fba25f37434ff51e0de8e22ce834af589aba24e8 | [
"BSD-3-Clause"
] | 2 | 2020-06-24T14:44:01.000Z | 2020-11-29T04:08:54.000Z | from rial.concept.parser import Tree
from rial.stages.post_parsing.PostParsingInterface import PostParsingInterface
| 28.166667 | 78 | 0.704142 |
79748406014e266fa2b046690f41e49e506ceff8 | 3,310 | py | Python | plugins/russian_roulette/data_source.py | JustUndertaker/tuanzi_bot | 8bb989aceb1a89569f2fcb804c73f7b650feb1f0 | [
"MIT"
] | 8 | 2021-07-22T02:57:02.000Z | 2021-12-30T03:55:38.000Z | plugins/russian_roulette/data_source.py | JustUndertaker/tuanzi_bot | 8bb989aceb1a89569f2fcb804c73f7b650feb1f0 | [
"MIT"
] | 1 | 2021-12-05T17:58:07.000Z | 2021-12-06T12:59:36.000Z | plugins/russian_roulette/data_source.py | JustUndertaker/tuanzi_bot | 8bb989aceb1a89569f2fcb804c73f7b650feb1f0 | [
"MIT"
] | 3 | 2021-07-22T02:57:05.000Z | 2022-01-30T12:18:59.000Z | import datetime
import random
from typing import Union
from modules.duel_history import DuelHistory
def get_latest_duel(group_id: int) -> Union[DuelHistory, None]:
"""
:
:
* group_idQQ
:
* DuelHistory
* None
"""
r = DuelHistory\
.select()\
.wh... | 20.060606 | 74 | 0.554381 |
7974d0221a54f63a041e45e191c7c84d73f12e71 | 2,137 | py | Python | examples/pull_entry_values.py | c0gnac/dealcloud-python | ee27603e262eb49415fb2620b680a970ee3728a9 | [
"BSD-3-Clause"
] | 1 | 2020-04-17T08:28:58.000Z | 2020-04-17T08:28:58.000Z | examples/pull_entry_values.py | c0gnac/dealcloud-python | ee27603e262eb49415fb2620b680a970ee3728a9 | [
"BSD-3-Clause"
] | 3 | 2020-04-17T13:26:55.000Z | 2021-03-31T19:33:49.000Z | examples/pull_entry_values.py | jholtio/dealcloud-python | 995d5a4066441120d2e8f4612ea4c20b658df123 | [
"BSD-3-Clause"
] | 2 | 2020-04-17T12:53:23.000Z | 2021-02-27T00:09:39.000Z | """
This script pulls the values of the fields for the "Project Genome" entry on
the Deal list
"""
import getpass as gp
import sys
import requests
import dealcloud as dc
# Create an instance of a client for the DealCloud Data Service and a service
# proxy
try:
client = dc.create_client(
... | 28.878378 | 80 | 0.687412 |
7976f1055e26936d39c3f5a3f96886a541a291aa | 2,704 | py | Python | udm-bildungslogin/usr/lib/python2.7/dist-packages/univention/udm/modules/bildungslogin_license.py | univention/bildungslogin | 29bebe858a5445dd5566aad594b33b9dd716eca4 | [
"MIT"
] | null | null | null | udm-bildungslogin/usr/lib/python2.7/dist-packages/univention/udm/modules/bildungslogin_license.py | univention/bildungslogin | 29bebe858a5445dd5566aad594b33b9dd716eca4 | [
"MIT"
] | null | null | null | udm-bildungslogin/usr/lib/python2.7/dist-packages/univention/udm/modules/bildungslogin_license.py | univention/bildungslogin | 29bebe858a5445dd5566aad594b33b9dd716eca4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2021 Univention GmbH
#
# https://www.univention.de/
#
# All rights reserved.
#
# The source code of this program is made available
# under the terms of the GNU Affero General Public License version 3
# (GNU AGPL V3) as published by the Free Software Foundation.
#
# Binary versions ... | 32.578313 | 80 | 0.75037 |
79795b7289e3b3dff67cd5a4c9be0ff0f959ed6e | 846 | py | Python | jd/api/rest/SellerPromoSingleCreatePlummetedPromoRequest.py | jof2jc/jd | 691bf22c68ed88fb3fb32bfb43dd6da75024994a | [
"MIT"
] | null | null | null | jd/api/rest/SellerPromoSingleCreatePlummetedPromoRequest.py | jof2jc/jd | 691bf22c68ed88fb3fb32bfb43dd6da75024994a | [
"MIT"
] | null | null | null | jd/api/rest/SellerPromoSingleCreatePlummetedPromoRequest.py | jof2jc/jd | 691bf22c68ed88fb3fb32bfb43dd6da75024994a | [
"MIT"
] | null | null | null | from jd.api.base import RestApi
| 22.263158 | 60 | 0.712766 |
797995b46e29cf3042b928047befb826374e0e03 | 1,694 | py | Python | leer/core/storage/utxo_index_storage.py | TensorVirus/leer | 9295c7e16364c8ff6da37a120a28e61a2c002ac6 | [
"MIT"
] | null | null | null | leer/core/storage/utxo_index_storage.py | TensorVirus/leer | 9295c7e16364c8ff6da37a120a28e61a2c002ac6 | [
"MIT"
] | null | null | null | leer/core/storage/utxo_index_storage.py | TensorVirus/leer | 9295c7e16364c8ff6da37a120a28e61a2c002ac6 | [
"MIT"
] | null | null | null | import os, lmdb
| 34.571429 | 103 | 0.72196 |
7979ea142a14815de65c8cb0bf02470194a6079f | 12,998 | py | Python | bioinformatics/genbank_get_genomes_by_taxon.py | widdowquinn/scripts | 27354a3a3d14e5f15cb8c9b62a7a976c696b014e | [
"MIT"
] | 15 | 2015-01-30T11:39:52.000Z | 2021-10-13T00:20:39.000Z | bioinformatics/genbank_get_genomes_by_taxon.py | widdowquinn/scripts | 27354a3a3d14e5f15cb8c9b62a7a976c696b014e | [
"MIT"
] | 6 | 2015-06-05T16:03:13.000Z | 2016-04-06T17:18:07.000Z | bioinformatics/genbank_get_genomes_by_taxon.py | widdowquinn/scripts | 27354a3a3d14e5f15cb8c9b62a7a976c696b014e | [
"MIT"
] | 21 | 2015-02-24T17:48:23.000Z | 2022-03-14T20:47:10.000Z | #!/usr/bin/env python
#
# genbank_get_genomes_by_taxon.py
#
# A script that takes an NCBI taxonomy identifier (or string, though this is
# not reliable for taxonomy tree subgraphs...) and downloads all genomes it
# can find from NCBI in the corresponding taxon subgraph with the passed
# argument as root.
#
# (c) TheJa... | 40.61875 | 79 | 0.613017 |
797a99da2bb58ddf9e75cdc63fb61bf050a76498 | 1,458 | py | Python | homeworkpal_project/common/tests/test_utils.py | luiscberrocal/homeworkpal | 342acf876264fade818b107f4af13cac067f1ace | [
"MIT"
] | null | null | null | homeworkpal_project/common/tests/test_utils.py | luiscberrocal/homeworkpal | 342acf876264fade818b107f4af13cac067f1ace | [
"MIT"
] | null | null | null | homeworkpal_project/common/tests/test_utils.py | luiscberrocal/homeworkpal | 342acf876264fade818b107f4af13cac067f1ace | [
"MIT"
] | null | null | null | import datetime
from django.test import TestCase
from ..utils import get_fiscal_year, Holiday
import logging
logger = logging.getLogger(__name__)
__author__ = 'lberrocal'
| 34.714286 | 88 | 0.632373 |
797b44290c90dde050b58afb2b81c050ce9eb1fa | 2,509 | py | Python | src/datamodules/imagenet_datamodule.py | blurry-mood/Distilled-Models | ac0e4573cbb9e80038d7eb25fd5e4486e4ce03ea | [
"MIT"
] | 2 | 2021-09-26T08:13:31.000Z | 2021-12-22T09:47:22.000Z | src/datamodules/imagenet_datamodule.py | blurry-mood/Distilled-Models | ac0e4573cbb9e80038d7eb25fd5e4486e4ce03ea | [
"MIT"
] | null | null | null | src/datamodules/imagenet_datamodule.py | blurry-mood/Distilled-Models | ac0e4573cbb9e80038d7eb25fd5e4486e4ce03ea | [
"MIT"
] | null | null | null | import pytorch_lightning as pl
import torch
from torch.utils.data import Dataset, DataLoader, random_split
from sklearn.preprocessing import LabelEncoder
from PIL import Image
import numpy as np
import pandas as pd
| 35.338028 | 137 | 0.637704 |
797bdb448272823a2133c63c9ff2abdce75f1e3c | 2,467 | py | Python | py/scrn.py | sehagler/OrorbiaMikolovReitter2017 | e3717abdf7140b557843d24fef4a0948fedc5216 | [
"Unlicense"
] | null | null | null | py/scrn.py | sehagler/OrorbiaMikolovReitter2017 | e3717abdf7140b557843d24fef4a0948fedc5216 | [
"Unlicense"
] | null | null | null | py/scrn.py | sehagler/OrorbiaMikolovReitter2017 | e3717abdf7140b557843d24fef4a0948fedc5216 | [
"Unlicense"
] | null | null | null | # Delta Recurrent Neural Network (Delta-RNN) Framework
#
# This gives an implementation of the Delta-RNN framework given in Ororbia et al. 2017, arXiv:1703.08864 [cs.CL],
# https://arxiv.org/abs/1703.08864 using Python and Tensorflow.
#
# This code implements a variety of RNN models using the Delta-RNN Framework
#
# S... | 45.685185 | 114 | 0.648156 |
797c80ceddd8dd7e4d547ca6582c0b3b18103db1 | 1,198 | py | Python | pysnmp/smi/mibs/instances/__SNMP-TARGET-MIB.py | RKinsey/pysnmp | 96b5cf31e2f5d19f34d0dd1075014c488f6a5789 | [
"BSD-2-Clause"
] | 492 | 2016-03-13T11:03:13.000Z | 2022-03-21T02:52:57.000Z | pysnmp/smi/mibs/instances/__SNMP-TARGET-MIB.py | bartomo/pysnmp | becd15c79c9a6b5696928ecd50bf5cca8b1770a1 | [
"BSD-2-Clause"
] | 372 | 2016-03-29T22:42:05.000Z | 2022-03-26T10:28:25.000Z | pysnmp/smi/mibs/instances/__SNMP-TARGET-MIB.py | bartomo/pysnmp | becd15c79c9a6b5696928ecd50bf5cca8b1770a1 | [
"BSD-2-Clause"
] | 197 | 2016-03-13T11:01:54.000Z | 2022-03-07T19:52:15.000Z | #
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
# This file instantiates some of the MIB managed objects for SNMP engine use
#
if 'mibBuilder' not in globals():
import sys
sys.stderr.write(__doc__)
... | 24.44898 | 76 | 0.755426 |
797deb3485bb27ffe26c319bbefd3277c53a4c9a | 11,643 | py | Python | gcp-cli/client/util/util_dpm.py | lacework/csp-integrations | bae91bc849d25bfdc76c9e0b643a635137311708 | [
"Apache-2.0"
] | 1 | 2020-05-14T20:39:58.000Z | 2020-05-14T20:39:58.000Z | gcp-cli/client/util/util_dpm.py | lacework/csp-integrations | bae91bc849d25bfdc76c9e0b643a635137311708 | [
"Apache-2.0"
] | 1 | 2019-04-03T21:53:09.000Z | 2019-04-03T21:53:09.000Z | gcp-cli/client/util/util_dpm.py | lacework/csp-integrations | bae91bc849d25bfdc76c9e0b643a635137311708 | [
"Apache-2.0"
] | 3 | 2020-08-13T16:52:00.000Z | 2021-04-09T15:21:09.000Z | from __future__ import print_function
from __future__ import absolute_import
from builtins import input
from builtins import str
import logging
from .util_base import UtilBase
from . import util_template
HTTP_GET_METHOD = "GET"
HTTP_POST_METHOD = "POST"
HTTP_DELETE_METHOD = "DELETE"
SERVICE_ACCOUNT_ID = "lacework-cfg-... | 58.507538 | 161 | 0.653869 |
797e6c3ce7dc390ab03025f4cbf2d002c3ccd3d5 | 3,202 | py | Python | main.py | Skopos-team/Prostagma | a6d0a0df421cd3740d3761486dc15d56e81dbc02 | [
"Apache-2.0"
] | null | null | null | main.py | Skopos-team/Prostagma | a6d0a0df421cd3740d3761486dc15d56e81dbc02 | [
"Apache-2.0"
] | null | null | null | main.py | Skopos-team/Prostagma | a6d0a0df421cd3740d3761486dc15d56e81dbc02 | [
"Apache-2.0"
] | null | null | null | import argparse
import shutil
import numpy as np
from project.data_preprocessing.preprocessing import Preprocessor
from project.data_preprocessing.data_loader import Loader
from project.models.model import Model
from prostagma.techniques.grid_search import GridSearch
from prostagma.performances.cross_validation impor... | 30.207547 | 85 | 0.686758 |
797f69dc0b08f68ab44fb6dc29d14dc9c853d88f | 275 | py | Python | gsm/truc.py | BobcatSMS/Bobcat | 044c390de949966810f2c74167b4d79b8431a886 | [
"WTFPL"
] | null | null | null | gsm/truc.py | BobcatSMS/Bobcat | 044c390de949966810f2c74167b4d79b8431a886 | [
"WTFPL"
] | null | null | null | gsm/truc.py | BobcatSMS/Bobcat | 044c390de949966810f2c74167b4d79b8431a886 | [
"WTFPL"
] | 1 | 2016-04-19T13:34:45.000Z | 2016-04-19T13:34:45.000Z | text = "zeub"
hexa = ""
for i in text:
hexa += str(hex(ord(i)))[2:].zfill(4)
print(hexa)
hexa = "002B00330033003600380039003000300034003000300030" #YOLOO
hexa = [hexa[i:i+4] for i in range(0, len(hexa), 4)]
text=""
for i in hexa:
text+=chr(int(i, 16))
print(text) | 19.642857 | 64 | 0.64 |
7981ae680c524298eeeaec2bc8c1bdc01188d014 | 2,328 | py | Python | otokon_archive/robotics/models.py | bilbeyt/otokon-archive | 2a7e81c59f4489e94cc568661db56eeedcf63bb9 | [
"MIT"
] | null | null | null | otokon_archive/robotics/models.py | bilbeyt/otokon-archive | 2a7e81c59f4489e94cc568661db56eeedcf63bb9 | [
"MIT"
] | null | null | null | otokon_archive/robotics/models.py | bilbeyt/otokon-archive | 2a7e81c59f4489e94cc568661db56eeedcf63bb9 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from ckeditor_uploader.fields import RichTextUploadingField
from django.db.models.signals import pre_save
from django.template.defaultfilters import slugify
from django.dispatch import receiver
| 29.468354 | 61 | 0.74957 |
798202371b4bdb23f2c648e92d6004a30676731c | 13,698 | py | Python | cs411site/views.py | Mig-Foxhound/Find_Friend-Django-Project | 473b101b60c8fd36ffde50e40ec5324f7ac12c25 | [
"MIT"
] | null | null | null | cs411site/views.py | Mig-Foxhound/Find_Friend-Django-Project | 473b101b60c8fd36ffde50e40ec5324f7ac12c25 | [
"MIT"
] | null | null | null | cs411site/views.py | Mig-Foxhound/Find_Friend-Django-Project | 473b101b60c8fd36ffde50e40ec5324f7ac12c25 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.db import connection
from .forms import ProfileForm, LocationForm, SearchLocationForm
import populartimes
import datetime
import math
from mycrawl import popCrawl
# def PlaceDetail(request, placeId):
# if request.method == "GET":
# placeName = ... | 41.011976 | 220 | 0.575923 |
7982877c4674b7b8d256140ac5214051506dd2de | 288 | py | Python | model.py | ndminh21/aaa | b31fa62092f5839bda567d97e0b52868f52cc79e | [
"BSD-Source-Code"
] | null | null | null | model.py | ndminh21/aaa | b31fa62092f5839bda567d97e0b52868f52cc79e | [
"BSD-Source-Code"
] | null | null | null | model.py | ndminh21/aaa | b31fa62092f5839bda567d97e0b52868f52cc79e | [
"BSD-Source-Code"
] | null | null | null | from app import db
from sqlalchemy.dialects.postgresql import JSON
| 26.181818 | 49 | 0.697917 |
79829f1085e52a4f3321a7abd42db060c2850de8 | 15,649 | py | Python | src/lib/utils/image_draw.py | Lakerszjb/CentereNet-C | a628ccc64b704333c320f1ce6fd67c1433855afc | [
"MIT"
] | null | null | null | src/lib/utils/image_draw.py | Lakerszjb/CentereNet-C | a628ccc64b704333c320f1ce6fd67c1433855afc | [
"MIT"
] | null | null | null | src/lib/utils/image_draw.py | Lakerszjb/CentereNet-C | a628ccc64b704333c320f1ce6fd67c1433855afc | [
"MIT"
] | null | null | null | from random import random as rand
import cv2
import numpy as np
import math
import copy
| 42.524457 | 126 | 0.562272 |
7982dda36a7dc7f1e7277b72eda016dff3e90225 | 2,766 | py | Python | lifecycle/data/standalone/service_instance.py | mF2C/LifecycleManagement | a9661c6dcaad94564c3e00d6059b9c0713b3f3c0 | [
"Apache-2.0"
] | null | null | null | lifecycle/data/standalone/service_instance.py | mF2C/LifecycleManagement | a9661c6dcaad94564c3e00d6059b9c0713b3f3c0 | [
"Apache-2.0"
] | 18 | 2017-10-25T08:17:24.000Z | 2019-12-10T08:43:45.000Z | lifecycle/data/standalone/service_instance.py | mF2C/LifecycleManagement | a9661c6dcaad94564c3e00d6059b9c0713b3f3c0 | [
"Apache-2.0"
] | null | null | null | """
Service instance - Data management
This is being developed for the MF2C Project: http://www.mf2c-project.eu/
Copyright: Atos Research and Innovation, 2017.
This code is licensed under an Apache 2.0 license. Please, refer to the LICENSE.TXT file for more information
Created on 28 feb. 2019
@author: Roi Sucasas -... | 36.394737 | 178 | 0.570137 |
798514dc01f3db3022f3329de4831a31ac662511 | 5,513 | py | Python | questioner/cli.py | larsyencken/questioner | afd208a6835b550f4d2deaf482d4cdbd8bba7a98 | [
"MIT"
] | 9 | 2019-02-26T08:09:18.000Z | 2020-05-15T21:14:36.000Z | questioner/cli.py | larsyencken/questioner | afd208a6835b550f4d2deaf482d4cdbd8bba7a98 | [
"MIT"
] | 1 | 2021-11-15T17:48:18.000Z | 2021-11-15T17:48:18.000Z | questioner/cli.py | larsyencken/questioner | afd208a6835b550f4d2deaf482d4cdbd8bba7a98 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# cli.py
# questioner
#
"""
A command-line client for annotating things.
"""
import re
import os
from typing import List, Set, Optional
import readchar
import blessings
SKIP_KEY = '\r'
SKIP_LINE = ''
QUIT_KEY = 'q'
QUIT_LINE = 'q'
EMAIL_REGEX = '^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$... | 25.761682 | 78 | 0.504263 |
7985b0a106576ee6b5211851226f7453d014fcc6 | 2,447 | py | Python | Chapter08/01-chapter-content/contours_hu_moments.py | yaojh01/Mastering-OpenCV-4-with-Python | e8f83e314b8ed638edb6515967cfb24361b787af | [
"MIT"
] | 2 | 2021-06-29T22:00:47.000Z | 2021-06-30T02:46:19.000Z | Chapter08/01-chapter-content/contours_hu_moments.py | yaojh01/Mastering-OpenCV-4-with-Python | e8f83e314b8ed638edb6515967cfb24361b787af | [
"MIT"
] | null | null | null | Chapter08/01-chapter-content/contours_hu_moments.py | yaojh01/Mastering-OpenCV-4-with-Python | e8f83e314b8ed638edb6515967cfb24361b787af | [
"MIT"
] | 1 | 2019-10-03T20:34:43.000Z | 2019-10-03T20:34:43.000Z | """
Hu moments calculation
"""
# Import required packages:
import cv2
from matplotlib import pyplot as plt
def centroid(moments):
"""Returns centroid based on moments"""
x_centroid = round(moments['m10'] / moments['m00'])
y_centroid = round(moments['m01'] / moments['m00'])
return x_centroid, y_centr... | 27.188889 | 89 | 0.689007 |
798637be871389748f30a7a91d907c86601d0900 | 2,438 | py | Python | Data Analyst in Python/Step 1 - Introduction to Python/1. Python for Data Science Fundamentals/7. Functions Intermediate.py | MyArist/Dataquest | d0ee0a2a5e9d1f69f09bf0f6c32f382b6fa46b18 | [
"MIT"
] | 8 | 2020-07-27T12:04:54.000Z | 2021-03-01T04:39:33.000Z | Data Scientist In Python/Step 1 - Python Introduction/1. Python for Data Science Fundamentals/7. Functions Intermediate.py | myarist/Dataquest | d0ee0a2a5e9d1f69f09bf0f6c32f382b6fa46b18 | [
"MIT"
] | null | null | null | Data Scientist In Python/Step 1 - Python Introduction/1. Python for Data Science Fundamentals/7. Functions Intermediate.py | myarist/Dataquest | d0ee0a2a5e9d1f69f09bf0f6c32f382b6fa46b18 | [
"MIT"
] | 15 | 2021-03-30T06:45:19.000Z | 2022-03-17T03:55:02.000Z | ## 1. Interfering with the Built-in Functions ##
a_list = [1, 8, 10, 9, 7]
print(max(a_list))
max_val_test_0 = max(a_list)
print(max_val_test_0)
del max
## 3. Default Arguments ##
# INITIAL CODE
# SOLUTION CODE
apps_data = open_dataset()
## 4. The Official Python Documentation ##
one_decimal = round(3.43, ndigi... | 22.785047 | 66 | 0.664479 |
7988a086ab00c77a9a155b9ba3611e32f0fdd731 | 1,066 | py | Python | 07-Data-Structures-Trees/54-BST-Insert-Code/src/BST-Insert.py | covuworie/data-structures-and-algorithms | beeb9686300c7498d87c201b71fa39d560b0deee | [
"MIT"
] | null | null | null | 07-Data-Structures-Trees/54-BST-Insert-Code/src/BST-Insert.py | covuworie/data-structures-and-algorithms | beeb9686300c7498d87c201b71fa39d560b0deee | [
"MIT"
] | null | null | null | 07-Data-Structures-Trees/54-BST-Insert-Code/src/BST-Insert.py | covuworie/data-structures-and-algorithms | beeb9686300c7498d87c201b71fa39d560b0deee | [
"MIT"
] | null | null | null |
my_tree = BinarySearchTree()
my_tree.insert(2)
my_tree.insert(1)
my_tree.insert(3)
print(my_tree.root.value)
print(my_tree.root.left.value)
print(my_tree.root.right.value)
| 24.790698 | 44 | 0.509381 |
798925517d561ff819d7176bdec9136a6f6fcaf9 | 3,320 | py | Python | native/sta2dfft.py | julianmak/pydra | eee7dbd5fbb2c64ead9f732ed1475634606b035a | [
"MIT"
] | null | null | null | native/sta2dfft.py | julianmak/pydra | eee7dbd5fbb2c64ead9f732ed1475634606b035a | [
"MIT"
] | null | null | null | native/sta2dfft.py | julianmak/pydra | eee7dbd5fbb2c64ead9f732ed1475634606b035a | [
"MIT"
] | 1 | 2020-10-09T09:54:52.000Z | 2020-10-09T09:54:52.000Z | #/usr/bin/env python3
#
# JM: 12 Apr 2018
#
# the sta2dfft.f90 adapted for python
# contains 2d spectral commands which uses stafft
from stafft import *
# This module performs FFTs in two directions on two dimensional arrays using
# the stafft library module to actually compute the FFTs. If FFTs in one
# direction ... | 38.16092 | 80 | 0.632831 |
798d4895d401ce4adc3405ca10a7afd4738fcdc6 | 319 | py | Python | SageMaker/from_athena.py | terratenney/aws-tools | d8ca07d56d812deb819b039752b94a0f1b9e6eb2 | [
"MIT"
] | 8 | 2020-12-27T18:44:17.000Z | 2022-03-10T22:20:28.000Z | SageMaker/from_athena.py | terratenney/aws-tools | d8ca07d56d812deb819b039752b94a0f1b9e6eb2 | [
"MIT"
] | 28 | 2020-08-30T02:57:03.000Z | 2021-05-12T09:13:15.000Z | SageMaker/from_athena.py | kyhau/arki | b5d6b160ef0780032f231362158dd9dd892f4e8e | [
"MIT"
] | 8 | 2020-09-03T19:00:13.000Z | 2022-03-31T05:31:35.000Z | #import sys
#!{sys.executable} -m pip install pyathena
from pyathena import connect
import pandas as pd
conn = connect(s3_staging_dir='s3://aws-athena-query-results-459817416023-us-east-1/', region_name='us-east-1')
df = pd.read_sql('SELECT * FROM "ticketdata"."nfl_stadium_data" order by stadium limit 10;', conn)
df | 35.444444 | 111 | 0.758621 |
798d881d00fe7e956c6f694979e93f6f18ca6bf6 | 395 | py | Python | ApiRequests/tbdb_api_requests_example.py | mihaibc/PythonExamples | 4d729f81de697057988e4cd37f8d41197d6efdbb | [
"Apache-2.0"
] | null | null | null | ApiRequests/tbdb_api_requests_example.py | mihaibc/PythonExamples | 4d729f81de697057988e4cd37f8d41197d6efdbb | [
"Apache-2.0"
] | null | null | null | ApiRequests/tbdb_api_requests_example.py | mihaibc/PythonExamples | 4d729f81de697057988e4cd37f8d41197d6efdbb | [
"Apache-2.0"
] | null | null | null | import requests
import json
import api_informations as api_info # this is used to not expose the api key
parameters = {
"api_key" : api_info.api_key,
"language" : "en-US",
}
response = requests.get("https://api.themoviedb.org/3/discover/movie", params=parameters)
json_print(response.json())
| 21.944444 | 89 | 0.716456 |
798e4ece70e0da7b973d0e06908a694c0669d736 | 869 | py | Python | auto_ripper_daemon/main.py | puujam/auto_ripper_gui | bc181d15c7f1ee285b160ac2a71722b313c514f1 | [
"MIT"
] | null | null | null | auto_ripper_daemon/main.py | puujam/auto_ripper_gui | bc181d15c7f1ee285b160ac2a71722b313c514f1 | [
"MIT"
] | null | null | null | auto_ripper_daemon/main.py | puujam/auto_ripper_gui | bc181d15c7f1ee285b160ac2a71722b313c514f1 | [
"MIT"
] | null | null | null | # Base modules
import time
import os
import multiprocessing
# Non-standard Installed modules
from daemoniker import Daemonizer
# Local modules
import processing
import communication
pid_file_path = "pid_file"
if __name__ == "__main__":
# Check if our pid file already exists and if so, delete it
if os.path.e... | 21.725 | 69 | 0.651323 |
798fa01b749eafbace3a784968765b5605f4e82b | 331 | py | Python | attendees/forms.py | TonyEight/lionax-wedding | b1abd230491723253726e2bcfe002c7be97db285 | [
"MIT"
] | null | null | null | attendees/forms.py | TonyEight/lionax-wedding | b1abd230491723253726e2bcfe002c7be97db285 | [
"MIT"
] | null | null | null | attendees/forms.py | TonyEight/lionax-wedding | b1abd230491723253726e2bcfe002c7be97db285 | [
"MIT"
] | null | null | null | from django import forms
from django.db.models.base import ModelBase
from phonenumber_field.formfields import PhoneNumberField
from . import models
| 30.090909 | 82 | 0.794562 |
798fadd02eeba69b476646bf36f8a9892607866d | 189 | py | Python | send_data.py | BiaChacon/weather-api | 743e9552d1411be74594faf2b3c7ff7150b7b21c | [
"MIT"
] | null | null | null | send_data.py | BiaChacon/weather-api | 743e9552d1411be74594faf2b3c7ff7150b7b21c | [
"MIT"
] | null | null | null | send_data.py | BiaChacon/weather-api | 743e9552d1411be74594faf2b3c7ff7150b7b21c | [
"MIT"
] | null | null | null | import requests
import time
i = 0
while True:
response = requests.get(
"http://localhost:5000/send?idNode=ESP")
print(i)
i = i+1
print(response)
time.sleep(60)
| 15.75 | 48 | 0.619048 |
79900f3db15534594b2074c86653a8ae7059a989 | 1,011 | py | Python | setup.py | AdvancedThreatAnalytics/django-otp-sns | 6fd8a5eb553cbd865ad0ac2155eee9bc7b792b7a | [
"BSD-2-Clause"
] | 1 | 2020-03-23T09:49:45.000Z | 2020-03-23T09:49:45.000Z | setup.py | vnagendra/django-otp-sns | 6fd8a5eb553cbd865ad0ac2155eee9bc7b792b7a | [
"BSD-2-Clause"
] | 1 | 2019-11-11T12:31:10.000Z | 2019-11-12T12:10:39.000Z | setup.py | AdvancedThreatAnalytics/django-otp-sns | 6fd8a5eb553cbd865ad0ac2155eee9bc7b792b7a | [
"BSD-2-Clause"
] | 2 | 2019-11-11T11:47:18.000Z | 2020-03-23T10:49:14.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-otp-sns',
version='0.1.1',
description="A django-otp plugin that delivers tokens via Amazon SNS.",
long_description=open('README.rst').read(),
author='Critical Start',
author_email='pavel.yershov@criticalsta... | 30.636364 | 75 | 0.607319 |
79933885d003663f4529863fd4f587261f78ef0d | 4,563 | py | Python | dxm/lib/DxJobs/DxExecutionComponent.py | experiortec/dxm-toolkit | b2ab6189e163c62fa8d7251cd533d2a36430d44a | [
"Apache-2.0"
] | 5 | 2018-08-23T15:47:05.000Z | 2022-01-19T23:38:18.000Z | dxm/lib/DxJobs/DxExecutionComponent.py | experiortec/dxm-toolkit | b2ab6189e163c62fa8d7251cd533d2a36430d44a | [
"Apache-2.0"
] | 59 | 2018-10-15T10:37:00.000Z | 2022-03-22T20:49:25.000Z | dxm/lib/DxJobs/DxExecutionComponent.py | experiortec/dxm-toolkit | b2ab6189e163c62fa8d7251cd533d2a36430d44a | [
"Apache-2.0"
] | 12 | 2019-03-08T19:59:13.000Z | 2021-12-16T03:28:04.000Z | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | 28.698113 | 117 | 0.595442 |
7993946d1dc293bfb807ac1af3e5b63a5c661410 | 403 | py | Python | genealogy.py | CristianLara/d3-code-genealogy | e0cb65129bbfcce612204a305c9fce961c068c5c | [
"MIT"
] | null | null | null | genealogy.py | CristianLara/d3-code-genealogy | e0cb65129bbfcce612204a305c9fce961c068c5c | [
"MIT"
] | null | null | null | genealogy.py | CristianLara/d3-code-genealogy | e0cb65129bbfcce612204a305c9fce961c068c5c | [
"MIT"
] | null | null | null | import mosspy
userid = 223762299
m = mosspy.Moss(userid, "javascript")
# Submission Files
m.addFile("files/d3.js")
m.addFilesByWildcard("files/map.js")
url = m.send() # Submission Report URL
print ("Report Url: " + url)
# Save report file
m.saveWebPage(url, "report/report.html")
# Download whole report locally i... | 20.15 | 57 | 0.736973 |
7994b5449af97988e9ad458f4047b59b81f72560 | 10,456 | py | Python | ppstructure/vqa/infer_ser.py | QianMuluo/PaddleOCR | 6ee301be36eb54d91dc437842f754593dce13967 | [
"Apache-2.0"
] | 2 | 2022-01-14T13:36:06.000Z | 2022-01-14T13:36:28.000Z | ppstructure/vqa/infer_ser.py | QianMuluo/PaddleOCR | 6ee301be36eb54d91dc437842f754593dce13967 | [
"Apache-2.0"
] | null | null | null | ppstructure/vqa/infer_ser.py | QianMuluo/PaddleOCR | 6ee301be36eb54d91dc437842f754593dce13967 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 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 appli... | 34.9699 | 102 | 0.609698 |
7994ddb4b25ce8e40382c9e65b49e258cb375f6b | 1,896 | py | Python | commands/cmdNewLoad.py | NightKev/Renol-IRC | 8a906402e08e9ae6cce02b61ba728d14b31b578b | [
"MIT"
] | 2 | 2015-10-12T17:52:18.000Z | 2016-08-09T21:26:18.000Z | commands/cmdNewLoad.py | NightKev/Renol-IRC | 8a906402e08e9ae6cce02b61ba728d14b31b578b | [
"MIT"
] | 1 | 2021-04-28T15:28:54.000Z | 2021-04-28T15:28:54.000Z | commands/cmdNewLoad.py | NightKev/Renol-IRC | 8a906402e08e9ae6cce02b61ba728d14b31b578b | [
"MIT"
] | 2 | 2015-09-03T04:32:54.000Z | 2021-05-05T21:48:38.000Z | import imp
ID = "newload"
permission = 3
| 37.92 | 146 | 0.602848 |
7995be4f8940cfc607995add5076ffbedf0da088 | 4,462 | py | Python | T2T_transformer_block.py | wdayang/TED-net | 4775b08e318c046ff960ac43f86bd57a6fa3f01e | [
"MIT"
] | 5 | 2021-06-14T01:16:19.000Z | 2021-12-11T08:02:22.000Z | T2T_transformer_block.py | wdayang/TED-net | 4775b08e318c046ff960ac43f86bd57a6fa3f01e | [
"MIT"
] | 1 | 2021-08-23T04:54:16.000Z | 2021-09-10T19:20:09.000Z | T2T_transformer_block.py | wdayang/TED-net | 4775b08e318c046ff960ac43f86bd57a6fa3f01e | [
"MIT"
] | 2 | 2021-08-22T17:49:53.000Z | 2021-11-07T14:54:13.000Z | # Copyright (c) [2012]-[2021] Shanghai Yitu Technology Co., Ltd.
#
# This source code is licensed under the Clear BSD License
# LICENSE file in the root directory of this file
# All rights reserved.
"""
Borrow from timm(https://github.com/rwightman/pytorch-image-models)
"""
import torch
import torch.nn as nn
import num... | 35.133858 | 112 | 0.620574 |
7996161fad8b91c026d5b139e97f8b3129fc45a2 | 585 | py | Python | tests/test_smith_waterman.py | Lioscro/pyseq-align | 98009538a640e2fe29639f4004cf486300647779 | [
"MIT"
] | null | null | null | tests/test_smith_waterman.py | Lioscro/pyseq-align | 98009538a640e2fe29639f4004cf486300647779 | [
"MIT"
] | null | null | null | tests/test_smith_waterman.py | Lioscro/pyseq-align | 98009538a640e2fe29639f4004cf486300647779 | [
"MIT"
] | null | null | null | from unittest import TestCase
from pyseq_align import smith_waterman
from tests.mixins import TestMixin
| 27.857143 | 57 | 0.666667 |
7996287352d137301ead86e2c3fb358065292374 | 2,835 | py | Python | smart/middlewire.py | liangbaika/Tinepeas | ace42bfff45334a94be4f3efbc0f5dd7642fdc39 | [
"Apache-2.0"
] | 1 | 2021-01-11T03:17:27.000Z | 2021-01-11T03:17:27.000Z | smart/middlewire.py | liangbaika/Tinepeas | ace42bfff45334a94be4f3efbc0f5dd7642fdc39 | [
"Apache-2.0"
] | null | null | null | smart/middlewire.py | liangbaika/Tinepeas | ace42bfff45334a94be4f3efbc0f5dd7642fdc39 | [
"Apache-2.0"
] | null | null | null | # -*- coding utf-8 -*-#
# ------------------------------------------------------------------
# Name: middlewire
# Author: liangbaikai
# Date: 2020/12/28
# Desc: there is a python file description
# ------------------------------------------------------------------
from copy import copy
from functools ... | 36.346154 | 113 | 0.577425 |
7996cc20bf78c96b1f8fe9b7d0d947a419d26d26 | 585 | py | Python | calamari_ocr/test/test_data_pagexml.py | jacektl/calamari | 980477aefe4e56f7fc373119c1b38649798d8686 | [
"Apache-2.0"
] | 922 | 2018-07-06T05:18:22.000Z | 2022-03-22T12:38:32.000Z | calamari_ocr/test/test_data_pagexml.py | jacektl/calamari | 980477aefe4e56f7fc373119c1b38649798d8686 | [
"Apache-2.0"
] | 267 | 2018-07-14T22:10:41.000Z | 2022-03-28T18:38:43.000Z | calamari_ocr/test/test_data_pagexml.py | jacektl/calamari | 980477aefe4e56f7fc373119c1b38649798d8686 | [
"Apache-2.0"
] | 227 | 2018-07-06T07:42:16.000Z | 2022-02-27T05:29:59.000Z | import os
import unittest
this_dir = os.path.dirname(os.path.realpath(__file__))
| 34.411765 | 102 | 0.664957 |
799760db4a4bfc59db9957137d64eac6815943fd | 623 | py | Python | GoingMerry/settings.py | Luffin/ThousandSunny | edff2efbff5297af1792c74dfa969025f93b8872 | [
"MIT"
] | null | null | null | GoingMerry/settings.py | Luffin/ThousandSunny | edff2efbff5297af1792c74dfa969025f93b8872 | [
"MIT"
] | null | null | null | GoingMerry/settings.py | Luffin/ThousandSunny | edff2efbff5297af1792c74dfa969025f93b8872 | [
"MIT"
] | null | null | null | import os
# You can name your own database's name
DB_FILENAME = 'luffin'
CUR_DIR = os.path.abspath('.')
DB_DIR = "sqlite:///%s" % (os.path.join(CUR_DIR, '{}.db'.format(DB_FILENAME)))
# cookie_secret must be set and keep it secret
COOKIE_SECRET = '6V9btAYiTnCQOS+L+NQOPgUvTqLOoExepMxzBF0OdTI='
# You can choose theme b... | 25.958333 | 78 | 0.738363 |
7998a697a08bb60cf1f6f0fa9e6526c9e605ba66 | 2,265 | py | Python | scripts/gene/preproc_BrainSpan_link.py | dbmi-bgm/cgap-annotation-server | 05d022f254b5e3057abf13aa9c8bdae5eb8b6e3a | [
"MIT"
] | 1 | 2021-05-27T14:27:47.000Z | 2021-05-27T14:27:47.000Z | scripts/gene/preproc_BrainSpan_link.py | dbmi-bgm/cgap-annotation-server | 05d022f254b5e3057abf13aa9c8bdae5eb8b6e3a | [
"MIT"
] | 8 | 2020-02-11T20:06:10.000Z | 2020-09-28T20:03:17.000Z | scripts/gene/preproc_BrainSpan_link.py | dbmi-bgm/cgap-annotation-server | 05d022f254b5e3057abf13aa9c8bdae5eb8b6e3a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# preproc_BrainSpan_link.py
# made by Daniel Minseok Kwon
# 2020-04-20 16:21:05
#########################
import sys
import os
SVRNAME = os.uname()[1]
if "MBI" in SVRNAME.upper():
sys_path = "/Users/pcaso/bin/python_lib"
elif SVRNAME == "T7":
sys_path = "/ms1/bin/py... | 31.901408 | 139 | 0.627815 |