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
b401775f5af0e9b7b7978646db33631b271d516f
4,351
py
Python
scripts/build_folding_map.py
tsieprawski/md4c
9d99b1262de3353f0530ac6b31d8c6934003b61f
[ "MIT" ]
475
2016-11-27T18:37:51.000Z
2022-03-30T19:46:29.000Z
scripts/build_folding_map.py
tsieprawski/md4c
9d99b1262de3353f0530ac6b31d8c6934003b61f
[ "MIT" ]
173
2016-12-05T01:38:37.000Z
2022-01-14T10:06:30.000Z
scripts/build_folding_map.py
tsieprawski/md4c
9d99b1262de3353f0530ac6b31d8c6934003b61f
[ "MIT" ]
110
2016-11-29T20:02:16.000Z
2022-03-30T23:51:58.000Z
#!/usr/bin/env python3 import os import sys import textwrap self_path = os.path.dirname(os.path.realpath(__file__)); f = open(self_path + "/unicode/CaseFolding.txt", "r") status_list = [ "C", "F" ] folding_list = [ dict(), dict(), dict() ] # Filter the foldings for "full" folding. for line in f: comment_off =...
35.958678
107
0.6302
b4024d84d4513279dde8eeb7b78e3491e9770d6e
1,038
py
Python
app/api/v1/models/user_model.py
munniomer/Send-IT-Api-v1
17041c987638c7e47c7c2ebed29bf7e2b5156bed
[ "CNRI-Python", "OML" ]
null
null
null
app/api/v1/models/user_model.py
munniomer/Send-IT-Api-v1
17041c987638c7e47c7c2ebed29bf7e2b5156bed
[ "CNRI-Python", "OML" ]
null
null
null
app/api/v1/models/user_model.py
munniomer/Send-IT-Api-v1
17041c987638c7e47c7c2ebed29bf7e2b5156bed
[ "CNRI-Python", "OML" ]
1
2019-02-05T07:44:19.000Z
2019-02-05T07:44:19.000Z
users = []
26.615385
85
0.531792
b402736fe41a1923f5e1f2be2b9ac727b56303ec
6,644
py
Python
Codigo/pruebas/Jose_Gonzalez/Solucion_PruebaTipoPiso.py
JoaquinRodriguez2006/RoboCup_Junior_Material
04f295010272fb8287c8f214bf69f1a61ee2b7cf
[ "MIT" ]
null
null
null
Codigo/pruebas/Jose_Gonzalez/Solucion_PruebaTipoPiso.py
JoaquinRodriguez2006/RoboCup_Junior_Material
04f295010272fb8287c8f214bf69f1a61ee2b7cf
[ "MIT" ]
null
null
null
Codigo/pruebas/Jose_Gonzalez/Solucion_PruebaTipoPiso.py
JoaquinRodriguez2006/RoboCup_Junior_Material
04f295010272fb8287c8f214bf69f1a61ee2b7cf
[ "MIT" ]
1
2022-03-19T22:57:33.000Z
2022-03-19T22:57:33.000Z
from controller import Robot from controller import Motor from controller import PositionSensor from controller import Robot, DistanceSensor, GPS, Camera, Receiver, Emitter import cv2 import numpy as np import math import time robot = Robot() timeStep = 32 tile_size = 0.12 speed = 6.28 media_baldoza = 0.06 estado = 1 ...
28.033755
124
0.615593
b403104a45ede1110a9c5cca95878c43993fc086
433
py
Python
drip/migrations/0002_querysetrule_rule_type.py
RentFreeMedia/django-drip-campaigns
a71e5d3a3f242c04a6f7f921b85aa01daff467f8
[ "MIT" ]
46
2020-07-23T17:47:33.000Z
2021-11-25T16:57:35.000Z
drip/migrations/0002_querysetrule_rule_type.py
RentFreeMedia/django-drip-campaigns
a71e5d3a3f242c04a6f7f921b85aa01daff467f8
[ "MIT" ]
54
2020-06-19T17:57:42.000Z
2021-09-22T19:34:48.000Z
drip/migrations/0002_querysetrule_rule_type.py
kaozdl/django-drip
a71e5d3a3f242c04a6f7f921b85aa01daff467f8
[ "MIT" ]
19
2020-08-30T05:29:13.000Z
2022-02-08T20:27:17.000Z
# Generated by Django 3.0.7 on 2020-11-25 13:13 from django.db import migrations, models
22.789474
104
0.577367
b4040d06558b8483134d9ca3f4c2ab385bbdc016
3,393
py
Python
venv/lib/python3.6/site-packages/cligj/__init__.py
booklover98/A-_pathfinding
09afebfc953ce9773bc4fc781eb6d0496caccfba
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/cligj/__init__.py
booklover98/A-_pathfinding
09afebfc953ce9773bc4fc781eb6d0496caccfba
[ "MIT" ]
7
2021-06-04T23:45:15.000Z
2022-03-12T00:44:14.000Z
virtual/Lib/site-packages/cligj/__init__.py
owenabrams/bluemoonkampala
8801df64e91683a2641f2cd4bcbe03ebc7f40828
[ "MIT" ]
null
null
null
# cligj # Shared arguments and options. import click from .features import normalize_feature_inputs # Arguments. # Multiple input files. files_in_arg = click.argument( 'files', nargs=-1, type=click.Path(resolve_path=True), required=True, metavar="INPUTS...") # Multiple files, last of which is...
24.586957
78
0.660183
b404133dc455d3af035e0832fd933c69627e3b05
2,031
py
Python
setup.py
ELC/testnbdev
571400a9308ba91f05f6fabad5d3f79fd4417ab1
[ "Apache-2.0" ]
1
2021-02-19T15:34:58.000Z
2021-02-19T15:34:58.000Z
setup.py
ELC/testnbdev
571400a9308ba91f05f6fabad5d3f79fd4417ab1
[ "Apache-2.0" ]
2
2021-09-28T05:49:28.000Z
2022-02-26T10:24:52.000Z
setup.py
ELC/nbdev_template
571400a9308ba91f05f6fabad5d3f79fd4417ab1
[ "Apache-2.0" ]
null
null
null
from pkg_resources import parse_version from configparser import ConfigParser import setuptools assert parse_version(setuptools.__version__)>=parse_version('36.2') # note: all settings are in settings.ini; edit there, not here config = ConfigParser(delimiters=['=']) config.read('settings.ini') config = config['DEFAULT...
39.823529
116
0.681438
b40507b05e0b887443fd6d70a1bf0020514bacc1
3,730
py
Python
amaascore/tools/generate_party.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
null
null
null
amaascore/tools/generate_party.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-06-06T09:42:41.000Z
2018-01-16T10:16:16.000Z
amaascore/tools/generate_party.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-01-18T04:14:01.000Z
2017-12-01T08:03:10.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from amaasutils.random_utils import random_string, random_decimal import random from amaascore.core.reference import Reference from amaascore.parties.asset_manager import AssetManager from amaascore.parties.broker import Broker from am...
44.404762
113
0.746917
b405b1ef752a1702183bea0b47a0bc6616babde1
9,291
py
Python
fitgrid/utils/lmer.py
vishalbelsare/fitgrid
0197e7a3fc2c937da03d768b5c91220eebe54a22
[ "BSD-3-Clause" ]
10
2020-02-01T22:58:32.000Z
2022-03-29T11:31:00.000Z
fitgrid/utils/lmer.py
vishalbelsare/fitgrid
0197e7a3fc2c937da03d768b5c91220eebe54a22
[ "BSD-3-Clause" ]
161
2018-09-11T16:41:30.000Z
2021-08-03T19:26:23.000Z
fitgrid/utils/lmer.py
vishalbelsare/fitgrid
0197e7a3fc2c937da03d768b5c91220eebe54a22
[ "BSD-3-Clause" ]
4
2019-02-27T08:11:31.000Z
2021-07-21T20:50:36.000Z
# -*- coding: utf-8 -*- """User functions to streamline working with selected pymer4 LMER fit attributes from lme4::lmer and lmerTest for ``fitgrid.lmer`` grids. """ import functools import re import warnings import numpy as np import pandas as pd import matplotlib as mpl from matplotlib import pyplot as plt import f...
32.486014
103
0.633839
b405ca5c19bd60bffd27ebed33907aa4cbf83da9
2,055
py
Python
pyesasky/jupyter_server.py
pierfra-ro/pyesasky
a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f
[ "BSD-3-Clause" ]
13
2019-05-30T19:57:37.000Z
2021-09-10T09:43:49.000Z
pyesasky/jupyter_server.py
pierfra-ro/pyesasky
a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f
[ "BSD-3-Clause" ]
21
2019-06-21T18:55:25.000Z
2022-02-27T14:48:13.000Z
pyesasky/jupyter_server.py
pierfra-ro/pyesasky
a9342efcaa5cca088ed9a5afa2c98d3e9aa4bd0f
[ "BSD-3-Clause" ]
8
2019-05-30T12:20:48.000Z
2022-03-04T04:01:20.000Z
import os import json from hashlib import md5 from tornado import web from notebook.utils import url_path_join from notebook.base.handlers import IPythonHandler __all__ = ['load_jupyter_server_extension'] STATIC_DIR = os.path.join(os.path.dirname(__file__), 'nbextension', 'static'); CONFIG = os.path.expanduser('~/.py...
27.77027
79
0.620925
b4073a213da55b416141036502c3d25e2d22ed63
3,552
py
Python
pingpongskill/pingpongskill.py
Garvys/PingPongSkill
71749a34772326dd83121bb0ab6fad52b7d8d694
[ "MIT" ]
1
2017-09-22T13:30:20.000Z
2017-09-22T13:30:20.000Z
pingpongskill/pingpongskill.py
Garvys/PingPongSkill
71749a34772326dd83121bb0ab6fad52b7d8d694
[ "MIT" ]
null
null
null
pingpongskill/pingpongskill.py
Garvys/PingPongSkill
71749a34772326dd83121bb0ab6fad52b7d8d694
[ "MIT" ]
null
null
null
# -*-: coding utf-8 -*- """ Skeleton Snips skill. """ import re import json import os import datetime from text2num import text2num from collections import defaultdict FORMAT = '%Y.%m.%dT%H:%M:%S' regex = re.compile('([\w\s]+)to([\w\s]+)') if __name__ == '__main__': scores = [ 'eleven to two', ...
30.62069
79
0.566441
b407548d1539781a310dd11a278698c4338d7000
13,006
py
Python
xarray/backends/npy_io.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
null
null
null
xarray/backends/npy_io.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
null
null
null
xarray/backends/npy_io.py
martinResearch/xarray
e921d1bfa4785b10310f8b5d46a1efacba7e1cc9
[ "Apache-2.0" ]
null
null
null
import numpy as np import xarray as xr import pandas as pd import sys import json import os import datetime from xarray.core.utils import ( decode_numpy_dict_values, either_dict_or_kwargs, ensure_us_time_resolution, ) from numpy.compat import ( asbytes, asstr, asunicode, bytes, basestring, os_fspath,...
39.531915
267
0.541827
b408eeeaec183c35458c8ea0619e1ec8dfb285b7
14,222
py
Python
applications/popart/bert/bert_data/squad_dataset.py
Alwaysproblem/examples-1
9754fa63ed1931489a21ac1f5b299f945e369a5c
[ "MIT" ]
null
null
null
applications/popart/bert/bert_data/squad_dataset.py
Alwaysproblem/examples-1
9754fa63ed1931489a21ac1f5b299f945e369a5c
[ "MIT" ]
null
null
null
applications/popart/bert/bert_data/squad_dataset.py
Alwaysproblem/examples-1
9754fa63ed1931489a21ac1f5b299f945e369a5c
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Graphcore Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
36.84456
141
0.592181
b40913984e0d9a08276edd74c8a43fc4a6017a70
9,921
py
Python
utils.py
sWizad/HashNeRF-pytorch
e8fe9b4879fc6ef3cdfa8fd3d268a92c4fa0d910
[ "MIT" ]
null
null
null
utils.py
sWizad/HashNeRF-pytorch
e8fe9b4879fc6ef3cdfa8fd3d268a92c4fa0d910
[ "MIT" ]
null
null
null
utils.py
sWizad/HashNeRF-pytorch
e8fe9b4879fc6ef3cdfa8fd3d268a92c4fa0d910
[ "MIT" ]
null
null
null
import json import numpy as np import pdb import torch from ray_utils import get_rays, get_ray_directions, get_ndc_rays BOX_OFFSETS = torch.tensor([[[i,j,k] for i in [0, 1] for j in [0, 1] for k in [0, 1]]], device='cuda') SQR_OFFSETS = torch.tensor([[[i,j] for i in [0, 1] for j in [0,...
40.493878
123
0.627961
b4091bea05e2b9f2e78f9f40870c9ac7e8a9cac3
15,755
py
Python
eval.py
dawnchen123/VS-Net
21aa8873e32351716302934887f6a08e7d568ea2
[ "Apache-2.0" ]
55
2021-04-17T08:15:06.000Z
2022-03-30T02:38:27.000Z
eval.py
dawnchen123/VS-Net
21aa8873e32351716302934887f6a08e7d568ea2
[ "Apache-2.0" ]
3
2021-05-30T03:29:01.000Z
2022-03-03T00:47:33.000Z
eval.py
dawnchen123/VS-Net
21aa8873e32351716302934887f6a08e7d568ea2
[ "Apache-2.0" ]
11
2021-07-01T15:15:23.000Z
2022-02-12T06:47:26.000Z
import os import cv2 import time import json import random import inspect import argparse import numpy as np from tqdm import tqdm from dataloaders import make_data_loader from models.sync_batchnorm.replicate import patch_replication_callback from models.vs_net import * from utils.loss import loss_dict from utils.lr_s...
45.403458
124
0.548588
b40a24b1b84590432a339ee0e8fac4f84e897ac1
2,692
py
Python
data/__init__.py
Joaomlg/multilayer-perceptron-mnist
0454c4970c3a06a37ac7c20787a1bdf1cda7da0f
[ "MIT" ]
13
2021-05-15T04:22:04.000Z
2022-03-29T10:55:32.000Z
data/__init__.py
Joaomlg/multilayer-perceptron-mnist
0454c4970c3a06a37ac7c20787a1bdf1cda7da0f
[ "MIT" ]
null
null
null
data/__init__.py
Joaomlg/multilayer-perceptron-mnist
0454c4970c3a06a37ac7c20787a1bdf1cda7da0f
[ "MIT" ]
4
2021-05-18T07:48:52.000Z
2021-07-10T10:11:41.000Z
import numpy as np import gzip import pickle import os import urllib.request
32.829268
110
0.686478
b40aad26fdc784cc5dfaf249f1c167e4160e4887
2,279
py
Python
Exemple.py
LVWolff/Python_Lesson_2
ece186f988c94a1aaa1656a1e6e1093c3d5b6251
[ "MIT" ]
null
null
null
Exemple.py
LVWolff/Python_Lesson_2
ece186f988c94a1aaa1656a1e6e1093c3d5b6251
[ "MIT" ]
null
null
null
Exemple.py
LVWolff/Python_Lesson_2
ece186f988c94a1aaa1656a1e6e1093c3d5b6251
[ "MIT" ]
null
null
null
# ------ #---------------------------------------- ''' 1 , . ''' for i in range(1, 6): print(i, '0000000000000000000000000000000000000000000') ''' 2 10 . 5. ''' count = 0 for i in range(10): user_data = int(input(' : ')) if user_data == 5: count += 1 print(count) ''' ...
18.087302
92
0.67749
b40bc88be7d9975ca6ad22574a73918dc37e3371
11,368
py
Python
push_exp/main_CrouchSimulationForCOT.py
snumrl/DeepPushRecovery
dceb7f3114d4314cf3be875f43723255819e12a3
[ "Apache-2.0" ]
null
null
null
push_exp/main_CrouchSimulationForCOT.py
snumrl/DeepPushRecovery
dceb7f3114d4314cf3be875f43723255819e12a3
[ "Apache-2.0" ]
null
null
null
push_exp/main_CrouchSimulationForCOT.py
snumrl/DeepPushRecovery
dceb7f3114d4314cf3be875f43723255819e12a3
[ "Apache-2.0" ]
1
2021-07-26T15:08:58.000Z
2021-07-26T15:08:58.000Z
import os import numpy as np import time import multiprocessing as mp import csv import socket import datetime import math import glob from pypushexp import PushSim # # input - [recorded item] # [weight] : 48 # [height] : 160 # [crouch_angle] (deg) # [step_length_ratio] # [halfcycle_duration_rati...
34.344411
139
0.598522
b40c71ed0a4ab0b122f61556dae6f792302c5678
776
py
Python
lepiota/lepiota/urls.py
sgelias/lepiota
4b30aa25ac5308229f6d41f1720e1af02557826e
[ "MIT" ]
null
null
null
lepiota/lepiota/urls.py
sgelias/lepiota
4b30aa25ac5308229f6d41f1720e1af02557826e
[ "MIT" ]
null
null
null
lepiota/lepiota/urls.py
sgelias/lepiota
4b30aa25ac5308229f6d41f1720e1af02557826e
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, re_path from django.conf.urls import include from django.views.generic import TemplateView, RedirectView urlpatterns = [ # Administration path('admin/', admin.site.urls),...
29.846154
74
0.716495
b40c87bef3a1437769ac688f07452b9daed5f901
189
py
Python
src/base/admin.py
dhavall13/Decode
8b9cbec72ade727d62edb90c3a38152e0285fe90
[ "MIT" ]
null
null
null
src/base/admin.py
dhavall13/Decode
8b9cbec72ade727d62edb90c3a38152e0285fe90
[ "MIT" ]
null
null
null
src/base/admin.py
dhavall13/Decode
8b9cbec72ade727d62edb90c3a38152e0285fe90
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Room, Topic, Message, User admin.site.register(Room) admin.site.register(Topic) admin.site.register(Message) admin.site.register(User)
23.625
46
0.804233
b40e2538e7eca239f3b41df3368718122f54c302
10,744
py
Python
gorilla/config/_config.py
sunjiahao1999/gorilla-core
bf43e3a49c7f79834ae969db38edd50f17ef5288
[ "MIT" ]
4
2021-07-28T04:50:26.000Z
2021-09-23T12:59:01.000Z
gorilla/config/_config.py
sunjiahao1999/gorilla-core
bf43e3a49c7f79834ae969db38edd50f17ef5288
[ "MIT" ]
null
null
null
gorilla/config/_config.py
sunjiahao1999/gorilla-core
bf43e3a49c7f79834ae969db38edd50f17ef5288
[ "MIT" ]
2
2021-08-05T04:01:12.000Z
2021-12-25T02:17:03.000Z
# Copyright (c) Open-MMLab. All rights reserved. import os import json import tempfile import warnings from typing import Optional from argparse import Namespace from addict import Dict from ..utils import check_file BASE_KEY = "_base_" RESERVED_KEYS = ["filename", "text"] def __len__(self) -> int: re...
34.770227
112
0.560964
b40e4f7e84bc53160bafd291d5c8ea6b4b1f43bd
2,643
py
Python
Kaspa/modules/extension_modules/spotify_module/spotifyModuleEn.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
Kaspa/modules/extension_modules/spotify_module/spotifyModuleEn.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
Kaspa/modules/extension_modules/spotify_module/spotifyModuleEn.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
from Kaspa.modules.abstract_modules.abstractSubmodule import AbstractSubmodule from Kaspa.modules.exceptions.impossibleActionError import ImpossibleActionError from Kaspa.config import Config
36.205479
99
0.596292
b40e9592fe62c2017e79612d2b201dbc82a4fb4e
2,768
py
Python
screenshot-server/app/main.py
martindines/ScreenshotServer
21d1529157f4625cd26196000c4a30342ab4d713
[ "MIT" ]
1
2019-12-31T18:43:08.000Z
2019-12-31T18:43:08.000Z
screenshot-server/app/main.py
martindines/ScreenshotServer
21d1529157f4625cd26196000c4a30342ab4d713
[ "MIT" ]
1
2019-12-31T19:35:24.000Z
2019-12-31T19:35:24.000Z
screenshot-server/app/main.py
martindines/ScreenshotServer
21d1529157f4625cd26196000c4a30342ab4d713
[ "MIT" ]
null
null
null
import os import sys import pathlib from utilities import get_random_hash from flask import Flask, flash, request, redirect, url_for, send_from_directory, jsonify, Response UPLOAD_FOLDER = os.environ.get('UPLOAD_FOLDER') if os.environ.get('UPLOAD_FOLDER') else '/tmp' ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', '...
24.936937
98
0.610549
b40ee079a577a77555888197b34380d7e63acfd3
517
py
Python
src/waldur_mastermind/notifications/migrations/0002_json_field.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
2
2017-01-20T15:26:25.000Z
2017-08-03T04:38:08.000Z
src/waldur_mastermind/notifications/migrations/0002_json_field.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
src/waldur_mastermind/notifications/migrations/0002_json_field.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2022-01-31 14:26 from django.db import migrations, models
21.541667
45
0.560928
b41042e5988e8d27b58649ccaf22e396c4b031cb
2,800
py
Python
gitgoggles/utils.py
nowells/git-goggles
022dc0cd6dfe8f1641ccb33e85ab05309dba7dbf
[ "MIT" ]
13
2015-03-10T08:48:51.000Z
2019-04-16T09:06:55.000Z
gitgoggles/utils.py
nowells/git-goggles
022dc0cd6dfe8f1641ccb33e85ab05309dba7dbf
[ "MIT" ]
null
null
null
gitgoggles/utils.py
nowells/git-goggles
022dc0cd6dfe8f1641ccb33e85ab05309dba7dbf
[ "MIT" ]
3
2016-04-29T05:38:56.000Z
2020-07-06T13:04:05.000Z
import copy import subprocess import sys import unicodedata try: from termcolor import colored as colored_func except ImportError: print 'You should run "pip install termcolor" to fully utilize these utilities.' colored_func = disable_colored_func def supports_color(): """ Returns True if the runn...
32.183908
127
0.658571
b410813c6c4297c46c6ca2597443a122ba6dda59
4,308
py
Python
test/unit/tools/test_basisconstructors.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
73
2016-01-28T05:02:05.000Z
2022-03-30T07:46:33.000Z
test/unit/tools/test_basisconstructors.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
113
2016-02-25T15:32:18.000Z
2022-03-31T13:18:13.000Z
test/unit/tools/test_basisconstructors.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
41
2016-03-15T19:32:07.000Z
2022-02-16T10:22:05.000Z
import numpy as np import pygsti.baseobjs.basisconstructors as bc from ..util import BaseCase
40.261682
109
0.597957
b4130d04b43c706ebb56a9d6ede2201a268db5d7
7,913
py
Python
tensorflow/contrib/training/python/training/hparam_test.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
384
2017-02-21T18:38:04.000Z
2022-02-22T07:30:25.000Z
tensorflow/contrib/training/python/training/hparam_test.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
15
2017-03-01T20:18:43.000Z
2020-05-07T10:33:51.000Z
tensorflow/contrib/training/python/training/hparam_test.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
81
2017-02-21T19:31:19.000Z
2022-02-22T07:30:24.000Z
# Copyright 2016 The TensorFlow 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 applica...
40.372449
80
0.65841
b4148b82caffcb3d401203b514031ef55ddaf4b5
1,279
py
Python
CodigoSOLID.py
JhonGalarza/SOLID
5ee45f136a24cb2300837c8ed89accdc2f299c83
[ "MIT" ]
null
null
null
CodigoSOLID.py
JhonGalarza/SOLID
5ee45f136a24cb2300837c8ed89accdc2f299c83
[ "MIT" ]
null
null
null
CodigoSOLID.py
JhonGalarza/SOLID
5ee45f136a24cb2300837c8ed89accdc2f299c83
[ "MIT" ]
null
null
null
#DATOS DE ENTRADA ANIMAL= int(input("De cual animal quiere conocer la caracteristicas? 1.Leon 2.Ballena 3.Tucan? ")) if ANIMAL == 1 : print ("debe imprimir las caracteristicas del leon, el leon es clase hija de animal y debe agragar animal_tierra" ) elif ANIMAL == 2 : print ("lo mismo que el leon, ...
24.596154
120
0.620797
b414e74ae421f14965c6e966091b96bde22167db
8,249
py
Python
orca/topology/infra/k8s/__init__.py
filwie/orca
84cfd53d309d85f7a7fb8649ba4abc8c2df9feac
[ "Apache-2.0" ]
null
null
null
orca/topology/infra/k8s/__init__.py
filwie/orca
84cfd53d309d85f7a7fb8649ba4abc8c2df9feac
[ "Apache-2.0" ]
null
null
null
orca/topology/infra/k8s/__init__.py
filwie/orca
84cfd53d309d85f7a7fb8649ba4abc8c2df9feac
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 OpenRCA Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
29.566308
74
0.562856
b415b852eb1504fe65a58d7db038c31b5386abda
2,616
py
Python
thelma/repositories/rdb/view.py
fogathmann/TheLMA
ac330a0005da4fea2f1387da9ff9938611ad1481
[ "MIT" ]
1
2020-07-12T22:47:58.000Z
2020-07-12T22:47:58.000Z
thelma/repositories/rdb/view.py
papagr/TheLMA
d2dc7a478ee5d24ccf3cc680888e712d482321d0
[ "MIT" ]
null
null
null
thelma/repositories/rdb/view.py
papagr/TheLMA
d2dc7a478ee5d24ccf3cc680888e712d482321d0
[ "MIT" ]
1
2020-07-12T22:40:36.000Z
2020-07-12T22:40:36.000Z
""" This file is part of the TheLMA (THe Laboratory Management Application) project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Utilities to create/drop views. Based on a recipe published in: http://www.sqlalchemy.org/trac/wiki/UsageRecipes/Views """ from sqlalchemy.sql import table...
33.974026
90
0.69419
b415cd56b8b968d2043025ce5a7780e981f5488b
960
py
Python
msblog/models.py
designermanjeets/mscreativepixel
8fefa48296c97fc541bc6d4f9ad8fa7048d0e377
[ "Apache-2.0" ]
null
null
null
msblog/models.py
designermanjeets/mscreativepixel
8fefa48296c97fc541bc6d4f9ad8fa7048d0e377
[ "Apache-2.0" ]
null
null
null
msblog/models.py
designermanjeets/mscreativepixel
8fefa48296c97fc541bc6d4f9ad8fa7048d0e377
[ "Apache-2.0" ]
null
null
null
from django.db import models from datetime import datetime import string, random import uuid # Create your models here.
28.235294
114
0.660417
b415f8911ff14da18af621c103440493a6703472
1,281
py
Python
Practical/Easy/HSV color wheel/colorwheel.py
saintwithataint/Pro-g-rammingChallenges4
3f720a375b89ee289237819c2dc89226634b7a5b
[ "Apache-2.0" ]
1
2022-03-16T16:47:22.000Z
2022-03-16T16:47:22.000Z
Practical/Easy/HSV color wheel/colorwheel.py
saintwithataint/Pro-g-rammingChallenges4
3f720a375b89ee289237819c2dc89226634b7a5b
[ "Apache-2.0" ]
null
null
null
Practical/Easy/HSV color wheel/colorwheel.py
saintwithataint/Pro-g-rammingChallenges4
3f720a375b89ee289237819c2dc89226634b7a5b
[ "Apache-2.0" ]
2
2022-02-02T18:02:03.000Z
2022-03-16T16:47:34.000Z
import colour import matplotlib.pyplot as plt import numpy as np COLOUR_STYLE = colour.plotting.colour_style() COLOUR_STYLE.update( { "figure.figsize": (11, 11), "legend.framealpha": colour.plotting.COLOUR_STYLE_CONSTANTS.opacity.low, } ) plt.style.use(COLOUR_STYLE) plt.style.use("dark_backgrou...
26.6875
80
0.640125
b4162ac39dacfccdd55b041dd156a4ebc43907ba
40,090
py
Python
kojen/smgen.py
kohjaen/kojen
e61855e48617e691d1fa0ddac4fdabac6b6a1eff
[ "MIT" ]
3
2020-07-12T08:17:42.000Z
2022-02-11T15:44:49.000Z
kojen/smgen.py
kohjaen/kojen
e61855e48617e691d1fa0ddac4fdabac6b6a1eff
[ "MIT" ]
null
null
null
kojen/smgen.py
kohjaen/kojen
e61855e48617e691d1fa0ddac4fdabac6b6a1eff
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'eugene' ''' MIT License Copyright (c) 2015 Eugene Grobbelaar (email : koh.jaen@yahoo.de) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to d...
50.301129
200
0.60464
b419bda7c8455defc3ecb61092c5f3412e12801a
1,744
py
Python
roku/discovery.py
metagrapher/python-roku
0cd209ec94531e7c4c29ca7f6a41a6199374c206
[ "BSD-3-Clause" ]
null
null
null
roku/discovery.py
metagrapher/python-roku
0cd209ec94531e7c4c29ca7f6a41a6199374c206
[ "BSD-3-Clause" ]
null
null
null
roku/discovery.py
metagrapher/python-roku
0cd209ec94531e7c4c29ca7f6a41a6199374c206
[ "BSD-3-Clause" ]
null
null
null
""" Code adapted from Dan Krause. https://gist.github.com/dankrause/6000248 http://github.com/dankrause """ import socket from http.client import HTTPResponse from io import BytesIO ST_DIAL = 'urn:dial-multiscreen-org:service:dial:1' ST_ECP = 'roku:ecp' def discover(timeout=2, retries=1, st=ST_ECP): group = (...
26.830769
79
0.598624
b41a1df236c0501272e47ba309bb8f6eaa3a041a
4,113
py
Python
Approxilyzer/gem5/scripts/relyzer/run_gem5_gl.py
cornell-zhang/GLAIVE
8e29ac621a95a25c19ccfeb5071a9d3595093ef7
[ "BSD-3-Clause" ]
10
2020-11-21T04:13:33.000Z
2022-01-03T23:08:09.000Z
Approxilyzer/gem5/scripts/relyzer/run_gem5_gl.py
cornell-zhang/GLAIVE
8e29ac621a95a25c19ccfeb5071a9d3595093ef7
[ "BSD-3-Clause" ]
null
null
null
Approxilyzer/gem5/scripts/relyzer/run_gem5_gl.py
cornell-zhang/GLAIVE
8e29ac621a95a25c19ccfeb5071a9d3595093ef7
[ "BSD-3-Clause" ]
null
null
null
import os, sys from argparse import ArgumentParser from datetime import datetime as dt from pprint import pprint as pp import shutil, glob #from pyfiglet import figlet_format, Figlet import datetime ''' python run_gem5_gl.py -a radix -l inst python run_gem5_gl.py -a radix -l bit ''' parser = ArgumentParser() p...
32.904
90
0.556042
b41ac0fb4f1e55fdca39a67f5c6756119ab70fed
68
py
Python
onnxsim/__init__.py
Wheest/onnx-simplifier
70e3b52aadbc73fe01029dc7ba0d4965d8fc1a8c
[ "Apache-2.0" ]
1,977
2019-04-01T10:48:18.000Z
2022-03-31T07:43:03.000Z
onnxsim/__init__.py
fedral/onnx-simplifier
70e3b52aadbc73fe01029dc7ba0d4965d8fc1a8c
[ "Apache-2.0" ]
167
2019-05-03T08:21:15.000Z
2022-03-31T10:21:03.000Z
onnxsim/__init__.py
fedral/onnx-simplifier
70e3b52aadbc73fe01029dc7ba0d4965d8fc1a8c
[ "Apache-2.0" ]
251
2019-04-01T12:21:42.000Z
2022-03-30T18:14:39.000Z
from onnxsim.onnx_simplifier import simplify __version__ = '0.0.0'
17
44
0.794118
b41c9702fa909cdc15c31981b7aeb56a1df4c9bb
534
py
Python
src/commands/__init__.py
lysol/lvlss
ca068de516159be732d2cb8c4752dee4f4ef2e09
[ "MIT" ]
null
null
null
src/commands/__init__.py
lysol/lvlss
ca068de516159be732d2cb8c4752dee4f4ef2e09
[ "MIT" ]
null
null
null
src/commands/__init__.py
lysol/lvlss
ca068de516159be732d2cb8c4752dee4f4ef2e09
[ "MIT" ]
null
null
null
from quit import Quit from set_name import SetName from who import Who from say import Say from look import Look from go import Go from take import Take from inventory import Inventory from drop import Drop from make import Make from landfill import Landfill from item_info import ItemInfo from script import...
28.105263
50
0.773408
b41db3bb0788a43b8d82ec7b22eb82e644666c44
2,141
py
Python
Softmax.py
tranbamanh229289/Machine-and-Data-mining-
b43a3815b74365e6e5b05b49bb92f3db4606ffca
[ "Apache-2.0" ]
null
null
null
Softmax.py
tranbamanh229289/Machine-and-Data-mining-
b43a3815b74365e6e5b05b49bb92f3db4606ffca
[ "Apache-2.0" ]
null
null
null
Softmax.py
tranbamanh229289/Machine-and-Data-mining-
b43a3815b74365e6e5b05b49bb92f3db4606ffca
[ "Apache-2.0" ]
null
null
null
import Common import pandas as pd import numpy as np import matplotlib.pyplot as plt RATIO = 0.8 EPOCHS = 500 LEARN_RATE = 0.01 INDENTIFICATION_RATE = 0.6 # Read training data X_train, Y_train, X_test, Y_test,scale_train,scale_test = Common.process(RATIO) X_train, Y_train, X_test, Y_test =preprocessing(X_train,Y_trai...
29.328767
80
0.652032
b41e6039b9544ca2bf93ee054b91393cabc444ec
1,343
py
Python
Wallpaper change.py
Arbazkhan4712/Wallpaper-Changer-using-Python
a221443bc7e7b5410f06653fa741b9d7af0fe10f
[ "MIT" ]
4
2020-04-17T06:39:23.000Z
2021-12-25T11:05:16.000Z
Wallpaper change.py
Arbazkhan4712/Wallpaper-Changer-using-Python
a221443bc7e7b5410f06653fa741b9d7af0fe10f
[ "MIT" ]
null
null
null
Wallpaper change.py
Arbazkhan4712/Wallpaper-Changer-using-Python
a221443bc7e7b5410f06653fa741b9d7af0fe10f
[ "MIT" ]
3
2020-04-03T12:36:20.000Z
2020-06-06T15:12:04.000Z
import ctypes import os import time from pynput.keyboard import Key,Controller import Bing if __name__=='__main__': main()
26.86
97
0.581534
b41e78f19f2060ee9b4a3efdc51b5e3c612a3ca4
968
py
Python
tests/sensitivity/sf2/sf2_test.py
vic-c137/mpi-boids-simulation
a822f20f5c1cd7cd2a6261a53adeb24e2c0115ec
[ "Apache-2.0" ]
null
null
null
tests/sensitivity/sf2/sf2_test.py
vic-c137/mpi-boids-simulation
a822f20f5c1cd7cd2a6261a53adeb24e2c0115ec
[ "Apache-2.0" ]
null
null
null
tests/sensitivity/sf2/sf2_test.py
vic-c137/mpi-boids-simulation
a822f20f5c1cd7cd2a6261a53adeb24e2c0115ec
[ "Apache-2.0" ]
null
null
null
# Import statements import subprocess from os import system # Variable declarations np = "10" cexe = "./Boids" nboids = "50" nloops = "500" k = "7" maxv = "10" acc = "1.25" width = "1000" height = "1000" sf1 = "1" sf2 = "32" min = "50" sf3 = "8" sf4 = "10" dataPath = "./data/" jexe = "BoidModelTest" ...
31.225806
220
0.558884
b41e7a6675758027f59252fdd90ad0a28c111058
976
py
Python
flask_start/flask_start/public/email.py
kostekci/flask_start
fa279fc8907aff9868e2596f4ed9c4d9428d2f75
[ "MIT" ]
null
null
null
flask_start/flask_start/public/email.py
kostekci/flask_start
fa279fc8907aff9868e2596f4ed9c4d9428d2f75
[ "MIT" ]
95
2021-09-13T21:23:12.000Z
2022-03-31T21:22:32.000Z
flask_start/flask_start/public/email.py
kostekci/flask_start
fa279fc8907aff9868e2596f4ed9c4d9428d2f75
[ "MIT" ]
null
null
null
from flask_mail import Message from flask import render_template from flask_start.extensions import mail ''' from threading import Thread def send_async_email(app, msg): with app.app_context(): mail.send(msg) '''
32.533333
75
0.646516
b41f08666a2d2b54abb8df40e1f44d9b70d9644a
7,784
py
Python
demo/trace_model.py
furkankirac/maskrcnn-benchmark
a348dc36600e577c3ba569320f3a6a8e15986f72
[ "MIT" ]
null
null
null
demo/trace_model.py
furkankirac/maskrcnn-benchmark
a348dc36600e577c3ba569320f3a6a8e15986f72
[ "MIT" ]
null
null
null
demo/trace_model.py
furkankirac/maskrcnn-benchmark
a348dc36600e577c3ba569320f3a6a8e15986f72
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from __future__ import division import os import numpy from io import BytesIO from matplotlib import pyplot import requests import torch from PIL import Image from maskrcnn_benchmark.config import cfg from predictor import COCODemo from maskrcnn...
41.185185
163
0.654034
b42110e69fbba6f3cc1175f605afe65f09844634
5,211
py
Python
validation_tests/analytical_exact/river_at_rest_varying_topo_width/numerical_varying_width.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
136
2015-05-07T05:47:43.000Z
2022-02-16T03:07:40.000Z
validation_tests/analytical_exact/river_at_rest_varying_topo_width/numerical_varying_width.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
184
2015-05-03T09:27:54.000Z
2021-12-20T04:22:48.000Z
validation_tests/analytical_exact/river_at_rest_varying_topo_width/numerical_varying_width.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
70
2015-03-18T07:35:22.000Z
2021-11-01T07:07:29.000Z
"""Simple water flow example using ANUGA Water driven up a linear slope and time varying boundary, similar to a beach environment """ #------------------------------------------------------------------------------ # Import necessary modules #----------------------------------------------------------------------------...
36.440559
96
0.459797
b424151af9b357850be4c70639941f09ba348b96
253
py
Python
src/temperature/urls.py
JohanGovers/home-mon-server
e22ee05508597f11b313f8fa600a4867ad15f759
[ "MIT" ]
null
null
null
src/temperature/urls.py
JohanGovers/home-mon-server
e22ee05508597f11b313f8fa600a4867ad15f759
[ "MIT" ]
null
null
null
src/temperature/urls.py
JohanGovers/home-mon-server
e22ee05508597f11b313f8fa600a4867ad15f759
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from temperature import views urlpatterns = patterns('', url(r'^$', views.index, name='index'), url(r'^save_temp_reading$', views.save_temp_reading, name='save_temp_reading'), )
31.625
88
0.660079
b425096bf56f11b8a01b6bd3c09874f67758b609
5,767
py
Python
FictionTools/amitools/amitools/binfmt/elf/BinFmtELF.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
FictionTools/amitools/amitools/binfmt/elf/BinFmtELF.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
FictionTools/amitools/amitools/binfmt/elf/BinFmtELF.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
from amitools.binfmt.BinImage import * from .ELFFile import * from .ELF import * from .ELFReader import ELFReader from .DwarfDebugLine import DwarfDebugLine # mini test if __name__ == "__main__": import sys bf = BinFmtELF() for a in sys.argv[1:]: if bf.is_image(a): print("loading", a...
31.686813
85
0.521415
b425e1b4a3766b7202ee32581542acc01753bfbd
11,532
py
Python
recordtransform.py
Andresfgomez970/Managing-.wav-files-in-python
2bf344a3217efe9dc15349ef4be14f2e5cb53ace
[ "MIT" ]
null
null
null
recordtransform.py
Andresfgomez970/Managing-.wav-files-in-python
2bf344a3217efe9dc15349ef4be14f2e5cb53ace
[ "MIT" ]
null
null
null
recordtransform.py
Andresfgomez970/Managing-.wav-files-in-python
2bf344a3217efe9dc15349ef4be14f2e5cb53ace
[ "MIT" ]
null
null
null
import pyaudio import wave import matplotlib.pyplot as plt import numpy as np import matplotlib.pylab as plt from scipy.io import wavfile import cmath as cm from scipy.fftpack import fft from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter fro...
31.508197
129
0.644034
b4266c4983e7f09a613d7773116f8f267c2d1a3a
2,994
py
Python
AllSidesScraper/allsides.py
Epicrider/polibalance
88a0adf54d09baeac3dcad36ce119640d6aa990b
[ "MIT" ]
null
null
null
AllSidesScraper/allsides.py
Epicrider/polibalance
88a0adf54d09baeac3dcad36ce119640d6aa990b
[ "MIT" ]
null
null
null
AllSidesScraper/allsides.py
Epicrider/polibalance
88a0adf54d09baeac3dcad36ce119640d6aa990b
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests from communityFeedback import * from time import sleep from rich.progress import track import json page = [ 'https://www.allsides.com/media-bias/media-bias-ratings', ] if __name__ == '__main__': main()
32.193548
94
0.59352
b426f99a8bac6c3327cab3da97ce79ef51269da3
1,068
py
Python
commands/calc.py
periodicaidan/dalton-cli
6a83e1a2675e335bf807c43c4201d78e5b389837
[ "MIT" ]
2
2018-12-21T19:09:49.000Z
2018-12-22T10:41:36.000Z
commands/calc.py
periodicaidan/dalton-cli
6a83e1a2675e335bf807c43c4201d78e5b389837
[ "MIT" ]
null
null
null
commands/calc.py
periodicaidan/dalton-cli
6a83e1a2675e335bf807c43c4201d78e5b389837
[ "MIT" ]
null
null
null
""" File: commands/calc.py Purpose: Performs calculations in response to user input, and outputs the result """ from sys import argv import click from calculator import * from models import History from models.Config import Config from help_menus import calc_help
31.411765
85
0.652622
b42826894cb5a72b4000d0d8ef3a13b2f541b2b5
3,271
py
Python
aot/meta_triggers/metatrigger_treasure.py
jaycheungchunman/age-of-triggers
f2a75685a0b0cc9e26132d4f52b6ed2c4798f6b4
[ "MIT" ]
null
null
null
aot/meta_triggers/metatrigger_treasure.py
jaycheungchunman/age-of-triggers
f2a75685a0b0cc9e26132d4f52b6ed2c4798f6b4
[ "MIT" ]
null
null
null
aot/meta_triggers/metatrigger_treasure.py
jaycheungchunman/age-of-triggers
f2a75685a0b0cc9e26132d4f52b6ed2c4798f6b4
[ "MIT" ]
null
null
null
from aot import * from aot.model.trigger import * from aot.model.condition import * from aot.model.effect import * from aot.meta_triggers.metatrigger import MetaTrigger from aot.model.enums.resource import EnumResource from aot.model.enums.player import PlayerEnum from aot.model.enums.unit import UnitConstant, UnitType...
45.430556
101
0.551819
b4283b91c4a94a15dbf38eab20ef16e0e0641f20
2,625
py
Python
agent/lm_agent/server_interfaces/lsdyna.py
omnivector-solutions/license-manager
9eb1e4569d692aef83a2388096e7413bc010be61
[ "MIT" ]
2
2020-11-15T22:54:39.000Z
2022-02-15T07:58:55.000Z
agent/lm_agent/server_interfaces/lsdyna.py
omnivector-solutions/license-manager
9eb1e4569d692aef83a2388096e7413bc010be61
[ "MIT" ]
2
2022-02-18T19:36:45.000Z
2022-03-16T23:07:44.000Z
agent/lm_agent/server_interfaces/lsdyna.py
omnivector-solutions/license-manager
9eb1e4569d692aef83a2388096e7413bc010be61
[ "MIT" ]
null
null
null
"""LS-Dyna license server interface.""" import typing from lm_agent.config import settings from lm_agent.exceptions import LicenseManagerBadServerOutput from lm_agent.parsing import lsdyna from lm_agent.server_interfaces.license_server_interface import LicenseReportItem, LicenseServerInterface from lm_agent.server_int...
38.602941
105
0.694476
b428942d04da784eb0b105b8727b2b0340163593
2,634
py
Python
examples/gan/gan_embeddings.py
ojmakhura/DIGITS
f34e62c245054b51ea51fcb8949d2ca777f162d1
[ "BSD-3-Clause" ]
null
null
null
examples/gan/gan_embeddings.py
ojmakhura/DIGITS
f34e62c245054b51ea51fcb8949d2ca777f162d1
[ "BSD-3-Clause" ]
null
null
null
examples/gan/gan_embeddings.py
ojmakhura/DIGITS
f34e62c245054b51ea51fcb8949d2ca777f162d1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. import argparse import os import pickle import shutil import numpy as np import PIL.Image import tensorflow as tf from tensorflow.contrib.tensorboard.plugins import projector TB_DIR = os.path.join(os.getcwd(), "gan-tb") SPRITE_IMA...
29.595506
88
0.678056
b42ac51788c29cf80e7fbe118ac8d2f98639006c
30
py
Python
punch_version.py
joshua-s/punch
c29751844ecf654cc21966a14842e8165e0bc300
[ "ISC" ]
null
null
null
punch_version.py
joshua-s/punch
c29751844ecf654cc21966a14842e8165e0bc300
[ "ISC" ]
null
null
null
punch_version.py
joshua-s/punch
c29751844ecf654cc21966a14842e8165e0bc300
[ "ISC" ]
null
null
null
major = 1 minor = 4 patch = 5
7.5
9
0.6
b42bbf006e731b294f9bc03e50361e650c57e4a5
97
py
Python
17.py
yonghuatang/python
6d53bf2f1e75ac03b07eb56ff83e26d8b5155bb1
[ "MIT" ]
null
null
null
17.py
yonghuatang/python
6d53bf2f1e75ac03b07eb56ff83e26d8b5155bb1
[ "MIT" ]
null
null
null
17.py
yonghuatang/python
6d53bf2f1e75ac03b07eb56ff83e26d8b5155bb1
[ "MIT" ]
null
null
null
from datetime import date now = date.today() print('The date today is', now, now.strftime("%A"))
24.25
51
0.701031
b42bc72a01713bbb619aec869a9dad62431b9ce2
4,613
py
Python
pyxtal/miscellaneous/from_ase_molecule.py
ubikpt/PyXtal
32da046a2bde542279824d6377aea116b679a2e7
[ "MIT" ]
127
2018-09-21T22:27:17.000Z
2022-03-30T21:11:49.000Z
pyxtal/miscellaneous/from_ase_molecule.py
ubikpt/PyXtal
32da046a2bde542279824d6377aea116b679a2e7
[ "MIT" ]
171
2018-08-06T07:10:24.000Z
2022-03-29T00:59:53.000Z
pyxtal/miscellaneous/from_ase_molecule.py
ubikpt/PyXtal
32da046a2bde542279824d6377aea116b679a2e7
[ "MIT" ]
50
2018-08-12T22:50:46.000Z
2022-03-23T07:52:47.000Z
from pyxtal.molecule import * from ase.build import molecule from pymatgen.core import Molecule def get_ase_mol(molname): """convert ase molecule to pymatgen style""" ase_mol = molecule(molname) pos = ase_mol.get_positions() symbols = ase_mol.get_chemical_symbols() return Molecule(symbols, pos) ...
36.904
82
0.506829
b42d69d014401c8b0ab94e331591c7f7f7c7c313
2,650
py
Python
my_project/evolution_forces.py
Abhigyan-Mishra/Quantum-Animation
675ac367461f6f2b3e0cee3a99db9e1541567e7a
[ "MIT" ]
null
null
null
my_project/evolution_forces.py
Abhigyan-Mishra/Quantum-Animation
675ac367461f6f2b3e0cee3a99db9e1541567e7a
[ "MIT" ]
null
null
null
my_project/evolution_forces.py
Abhigyan-Mishra/Quantum-Animation
675ac367461f6f2b3e0cee3a99db9e1541567e7a
[ "MIT" ]
null
null
null
from manimlib.imports import * """ TODO: [ ] fix arrow head size auto scale according to size? have a default size, but, if the arrow size is too short, then shrink the head [ ] slide the point according to the gradient """
24.311927
80
0.669057
b42dd19edf20cbabd2658c3670786d63ec526613
13,056
py
Python
tests/python/tensor_graph/test/test_internal/performance/build_time_resnet.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
tests/python/tensor_graph/test/test_internal/performance/build_time_resnet.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
null
null
null
tests/python/tensor_graph/test/test_internal/performance/build_time_resnet.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
2
2022-03-18T08:26:34.000Z
2022-03-20T06:02:48.000Z
import tvm import sys import time import numpy as np from tvm.tensor_graph.testing.models import resnet from tvm.tensor_graph.core import ForwardGraph, BackwardGraph, compute, \ GraphTensor, GraphOp, PyTIRGraph from tvm.tensor_graph.nn import CELoss, SGD from tvm.tensor_graph.core.schedul...
32.157635
137
0.644455
b42f2c192af4e02268e2e461bdd471fe5bb67342
2,300
py
Python
Python3/src/basicExample.py
emanuelen5/XPlaneConnect
0d462ac306bc802a3b269227d3b98d2507abcd40
[ "Unlicense" ]
457
2015-01-02T14:21:11.000Z
2022-03-27T02:56:47.000Z
Python3/src/basicExample.py
fseconomy/XPlaneConnect
11a5f350bd6888873d293bf3c9f59b0fba1331c1
[ "Unlicense" ]
211
2015-03-24T16:41:33.000Z
2022-03-27T18:36:11.000Z
Python3/src/basicExample.py
fseconomy/XPlaneConnect
11a5f350bd6888873d293bf3c9f59b0fba1331c1
[ "Unlicense" ]
258
2015-01-01T17:02:27.000Z
2022-03-31T19:36:03.000Z
from time import sleep import xpc if __name__ == "__main__": ex()
31.944444
81
0.541304
b42fa4f8536cb94842b8b435241c9e24e5dca076
27,419
py
Python
venv/lib/python3.6/site-packages/pelican/readers.py
RyanHelgoth/CMPUT404-Lab5
82424bf5a9b80ff186bd69d224457c8b70a3bdf3
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/pelican/readers.py
RyanHelgoth/CMPUT404-Lab5
82424bf5a9b80ff186bd69d224457c8b70a3bdf3
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/pelican/readers.py
RyanHelgoth/CMPUT404-Lab5
82424bf5a9b80ff186bd69d224457c8b70a3bdf3
[ "Apache-2.0" ]
null
null
null
import datetime import logging import os import re from collections import OrderedDict from html import escape from html.parser import HTMLParser from io import StringIO import docutils import docutils.core import docutils.io from docutils.parsers.rst.languages import get_language as get_docutils_lang from docutils.wr...
36.607477
79
0.581276
b4314fe64ec815899c36c9b326b930ecd497d54b
4,017
py
Python
xmuda/models/CP_v5.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
xmuda/models/CP_v5.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
xmuda/models/CP_v5.py
anhquancao/xmuda-extend
4b670ec2f6766e3a624e81dbe5d97b209c1c4f76
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from xmuda.models.DDR import Bottleneck3D from xmuda.models.LMSCNet import SegmentationHead, ASPP import numpy as np from xmuda.models.modules import Process, Upsample, Downsample import math from xmuda.data.utils.preprocess import create_voxel_position...
40.17
134
0.638536
b432caf11213235d03484242de9f5514f01637df
10,511
py
Python
gala/potential/potential/tests/helpers.py
ltlancas/gala
2621bb599d67e74a85446abf72d5930ef70ca181
[ "MIT" ]
1
2021-10-14T03:36:15.000Z
2021-10-14T03:36:15.000Z
gala/potential/potential/tests/helpers.py
ltlancas/gala
2621bb599d67e74a85446abf72d5930ef70ca181
[ "MIT" ]
null
null
null
gala/potential/potential/tests/helpers.py
ltlancas/gala
2621bb599d67e74a85446abf72d5930ef70ca181
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division, print_function # Standard library import time # Third-party import matplotlib.pyplot as plt import numpy as np from scipy.misc import derivative from astropy.extern.six.moves import cPickle as pickle import pytest # Project from ..io import load from ..core import C...
38.785978
113
0.560936
b4343b1a76985ec5d57d6a76843b7a4f2ed671b3
9,677
py
Python
main.py
ailzy/Reinforcement-learning-in-portfolio-management-
6d850bf52637482636ed8336480343e0e4cef1bd
[ "MIT" ]
null
null
null
main.py
ailzy/Reinforcement-learning-in-portfolio-management-
6d850bf52637482636ed8336480343e0e4cef1bd
[ "MIT" ]
null
null
null
main.py
ailzy/Reinforcement-learning-in-portfolio-management-
6d850bf52637482636ed8336480343e0e4cef1bd
[ "MIT" ]
1
2019-05-13T00:54:08.000Z
2019-05-13T00:54:08.000Z
# -*- coding: utf-8 -*- from argparse import ArgumentParser import json import time import pandas as pd import tensorflow as tf import numpy as np import math from decimal import Decimal import matplotlib.pyplot as plt from agents.ornstein_uhlenbeck import OrnsteinUhlenbeckActionNoise eps=10e-8 epochs=0...
36.516981
190
0.602563
b43620ea470685e6e28c7e7bc58a0b84c3272e13
7,365
py
Python
packages/structural_dhcp_mriqc/structural_dhcp_mriqc/utils/fs2gif.py
amakropoulos/structural-pipeline-measures
70e22f9ad94cc57e72e510576cfc3129da83f7fc
[ "Apache-2.0" ]
2
2017-09-11T15:25:14.000Z
2019-09-27T17:08:31.000Z
packages/structural_dhcp_mriqc/structural_dhcp_mriqc/utils/fs2gif.py
amakropoulos/structural-pipeline-measures
70e22f9ad94cc57e72e510576cfc3129da83f7fc
[ "Apache-2.0" ]
6
2019-08-22T06:29:45.000Z
2021-09-19T18:59:46.000Z
packages/structural_dhcp_mriqc/structural_dhcp_mriqc/utils/fs2gif.py
amakropoulos/structural-pipeline-measures
70e22f9ad94cc57e72e510576cfc3129da83f7fc
[ "Apache-2.0" ]
1
2018-02-12T14:38:33.000Z
2018-02-12T14:38:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: oesteban # @Date: 2016-03-16 11:28:27 # @Last Modified by: oesteban # @Last Modified time: 2016-04-04 13:50:50 """ Batch export freesurfer results to animated gifs """ from __future__ import absolute_import from __future__ import division from __future__ im...
39.810811
118
0.567549
b4366804d5c82535ca7d92caff9e07608cd7136b
10,751
py
Python
DE_DataBase.py
almirjgomes/DE_DataBaseConnect
2a369d77498c4c6c42b7447871472e5c4320b2ff
[ "MIT" ]
null
null
null
DE_DataBase.py
almirjgomes/DE_DataBaseConnect
2a369d77498c4c6c42b7447871472e5c4320b2ff
[ "MIT" ]
null
null
null
DE_DataBase.py
almirjgomes/DE_DataBaseConnect
2a369d77498c4c6c42b7447871472e5c4320b2ff
[ "MIT" ]
null
null
null
import os import sqlite3 as sq3 import cx_Oracle as ora import pandas as pd import psycopg2 as ps2 import mysql.connector as mysql import sqlalchemy # Reponsabilidades desta classe: # Apenas se conectar a uma das bases de dados abaixo especificadas # Bases conhecidas: SQLITE, ORACLE, MYSQL, POSTGRES if __name__ == "_...
40.878327
167
0.474467
b4372d11f9380b54abe868161855c4d8eb68fe8d
3,301
py
Python
peter_lists/blog/views.py
pvize1/peter_lists
77e9f30cfc45f500e059b7b163db541335180332
[ "MIT" ]
null
null
null
peter_lists/blog/views.py
pvize1/peter_lists
77e9f30cfc45f500e059b7b163db541335180332
[ "MIT" ]
8
2021-05-12T05:53:42.000Z
2022-03-31T04:08:18.000Z
peter_lists/blog/views.py
pvize1/peter_lists
77e9f30cfc45f500e059b7b163db541335180332
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.mixins import PermissionRequiredMixin from django.views.generic import ( ListView, DetailView, CreateView, UpdateView, DeleteView, ) from django.shortcuts import render from django.db.models import Count from django.d...
29.212389
94
0.684035
b4378b3e91302a7b53287f43ef0ed313d4ff8c2f
1,992
py
Python
tests/test_pythonpath.py
browniebroke/pytest-srcpaths
c0bf4a9b521c8f7af029f9923b344936cf425bf1
[ "MIT" ]
26
2021-02-18T20:49:41.000Z
2022-02-08T21:06:20.000Z
tests/test_pythonpath.py
browniebroke/pytest-srcpaths
c0bf4a9b521c8f7af029f9923b344936cf425bf1
[ "MIT" ]
null
null
null
tests/test_pythonpath.py
browniebroke/pytest-srcpaths
c0bf4a9b521c8f7af029f9923b344936cf425bf1
[ "MIT" ]
2
2021-04-04T01:45:37.000Z
2022-02-07T11:28:51.000Z
import sys from typing import Generator from typing import List from typing import Optional import pytest from _pytest.pytester import Pytester def test_clean_up_pythonpath(pytester: Pytester) -> None: """Test that the srcpaths plugin cleans up after itself.""" pytester.makefile(".ini", pytest="[pytest]\n...
30.181818
81
0.676205
b4379f94d32e1eef87fdbc70ab371bde034c9874
1,735
py
Python
coretemp.py
InScene/dht22-mqtt-daemon
9a73715f4074f11222d1a6b263c12c897fadf0de
[ "MIT" ]
null
null
null
coretemp.py
InScene/dht22-mqtt-daemon
9a73715f4074f11222d1a6b263c12c897fadf0de
[ "MIT" ]
null
null
null
coretemp.py
InScene/dht22-mqtt-daemon
9a73715f4074f11222d1a6b263c12c897fadf0de
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import paho.mqtt.client as mqtt import time import Adafruit_DHT from configparser import ConfigParser import json config = ConfigParser(delimiters=('=', )) config.read('config.ini') sensor_type = config['sensor'].get('type', 'dht22').lower() if sensor_type == 'dht22': sensor = Adafruit_DH...
30.438596
79
0.688184
b437d795dd924c40c4d023f3c55940133611431e
663
py
Python
mythril/support/support_utils.py
step21/mythril
d26a68e5473a57bd38091e1a5cad96a2b4e2c2ab
[ "MIT" ]
null
null
null
mythril/support/support_utils.py
step21/mythril
d26a68e5473a57bd38091e1a5cad96a2b4e2c2ab
[ "MIT" ]
21
2019-04-12T17:54:51.000Z
2021-11-04T18:47:45.000Z
mythril/support/support_utils.py
step21/mythril
d26a68e5473a57bd38091e1a5cad96a2b4e2c2ab
[ "MIT" ]
1
2021-09-06T03:14:58.000Z
2021-09-06T03:14:58.000Z
"""This module contains utility functions for the Mythril support package.""" from typing import Dict
28.826087
81
0.627451
b437ff845481fd16be2f8fc1d410e6c3c3a17c1d
554
py
Python
tests/functions/list/test_lists_map.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
tests/functions/list/test_lists_map.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
tests/functions/list/test_lists_map.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
import unittest import mplisp.evaluator as evaluator
22.16
50
0.534296
b4387eea371c6bde1ade7a6d0d94c1c04a7c6258
1,210
py
Python
malpickle/main.py
erose1337/malpickle
3c708426d5f5e33d3e232d77cbbfca0a955d6ebf
[ "MIT" ]
null
null
null
malpickle/main.py
erose1337/malpickle
3c708426d5f5e33d3e232d77cbbfca0a955d6ebf
[ "MIT" ]
null
null
null
malpickle/main.py
erose1337/malpickle
3c708426d5f5e33d3e232d77cbbfca0a955d6ebf
[ "MIT" ]
null
null
null
import argparse from __init__ import insert_code if __name__ == "__main__": #test_insert_code() main()
31.842105
121
0.680165
b43894ad3119624561e61e4cdbc634a63ac5df12
1,923
py
Python
src/redis_lock/django_cache.py
suligap/python-redis-lock
369e95bb5e26284ef0944e551f93d9f2596e5345
[ "BSD-2-Clause" ]
null
null
null
src/redis_lock/django_cache.py
suligap/python-redis-lock
369e95bb5e26284ef0944e551f93d9f2596e5345
[ "BSD-2-Clause" ]
null
null
null
src/redis_lock/django_cache.py
suligap/python-redis-lock
369e95bb5e26284ef0944e551f93d9f2596e5345
[ "BSD-2-Clause" ]
null
null
null
from django.core.cache.backends.base import DEFAULT_TIMEOUT from django_redis.cache import RedisCache as PlainRedisCache from redis_lock import Lock from redis_lock import reset_all
33.155172
92
0.598024
b438f353825f2b371f64bd83071ca8831b7f58ce
3,510
py
Python
nets/facenet.py
QiongWang-l/llfr
00f62f03dd2964add1ff1b007292d06afff708f4
[ "MIT" ]
null
null
null
nets/facenet.py
QiongWang-l/llfr
00f62f03dd2964add1ff1b007292d06afff708f4
[ "MIT" ]
null
null
null
nets/facenet.py
QiongWang-l/llfr
00f62f03dd2964add1ff1b007292d06afff708f4
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn import functional as F from torchvision.models.utils import load_state_dict_from_url from nets.inception_resnetv1 import InceptionResnetV1 from nets.mobilenet import MobileNetV1
37.340426
189
0.61396
b439967634fbd815c14f34a574722d653f74e466
367
py
Python
distributed_social_network/posts/migrations/0003_auto_20190308_2055.py
leevtori/CMPUT404-project
52214288855ae4b3f05b8d17e67a2686debffb19
[ "Apache-2.0" ]
null
null
null
distributed_social_network/posts/migrations/0003_auto_20190308_2055.py
leevtori/CMPUT404-project
52214288855ae4b3f05b8d17e67a2686debffb19
[ "Apache-2.0" ]
51
2019-03-22T00:31:06.000Z
2021-06-10T21:17:30.000Z
distributed_social_network/posts/migrations/0003_auto_20190308_2055.py
leevtori/CMPUT404-project
52214288855ae4b3f05b8d17e67a2686debffb19
[ "Apache-2.0" ]
1
2019-02-08T01:33:57.000Z
2019-02-08T01:33:57.000Z
# Generated by Django 2.1.7 on 2019-03-08 20:55 from django.db import migrations
19.315789
47
0.588556
b439fd956c9d132bc84b304fc1984cd145eb18b5
2,260
py
Python
minify/migrations/0004_auto__del_unique_urlminify_short_url__add_unique_urlminify_short_url_s.py
djsan15/url-minifier
00ff087dadc7e14015cc5640e135f8454afd11dc
[ "MIT" ]
null
null
null
minify/migrations/0004_auto__del_unique_urlminify_short_url__add_unique_urlminify_short_url_s.py
djsan15/url-minifier
00ff087dadc7e14015cc5640e135f8454afd11dc
[ "MIT" ]
null
null
null
minify/migrations/0004_auto__del_unique_urlminify_short_url__add_unique_urlminify_short_url_s.py
djsan15/url-minifier
00ff087dadc7e14015cc5640e135f8454afd11dc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
52.55814
217
0.615487
b43cafc5d4e3e3709f5f5f9476d5698dfa194510
1,182
py
Python
Validation/EcalRecHits/test/EcalTBValidationData_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Validation/EcalRecHits/test/EcalTBValidationData_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Validation/EcalRecHits/test/EcalTBValidationData_cfg.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms process = cms.Process("h4ValidData") # initialize MessageLogger process.load("FWCore.MessageLogger.MessageLogger_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring...
36.9375
73
0.756345
b43dc0c04bfb765d1057fbf1d173d5c4374ca965
1,948
py
Python
database/domains.py
changyc9928/Genshin-Discord-Bot
be64481f43755c0031b469e79271ec7f0753cb0a
[ "MIT" ]
null
null
null
database/domains.py
changyc9928/Genshin-Discord-Bot
be64481f43755c0031b469e79271ec7f0753cb0a
[ "MIT" ]
null
null
null
database/domains.py
changyc9928/Genshin-Discord-Bot
be64481f43755c0031b469e79271ec7f0753cb0a
[ "MIT" ]
null
null
null
import asyncio from query_graphql import query_artifact_domains, query_weapon_materials_book
34.785714
98
0.627823
b43e6c43008ba217cff97642ff4168d07bf643bc
23,644
py
Python
policy.py
nyu-dl/dl4mt-simul-trans
392ff3148e944be6fbc475d5285441807902e2e0
[ "BSD-3-Clause" ]
34
2016-12-01T07:59:43.000Z
2021-09-13T10:46:15.000Z
policy.py
yifanjun233/dl4mt-simul-trans
392ff3148e944be6fbc475d5285441807902e2e0
[ "BSD-3-Clause" ]
1
2020-09-14T08:35:00.000Z
2020-09-14T08:35:00.000Z
policy.py
yifanjun233/dl4mt-simul-trans
392ff3148e944be6fbc475d5285441807902e2e0
[ "BSD-3-Clause" ]
18
2016-12-15T01:43:33.000Z
2021-09-29T07:24:08.000Z
""" -- Policy Network for decision making [more general] """ from nmt_uni import * from layers import _p import os import time, datetime import cPickle as pkl # hyper params TINY = 1e-7 PI = numpy.pi E = numpy.e A = 0.2 B = 1 # =================================================================== #...
39.871838
118
0.514084
b43f15ecbdb1d9b59ec1324ee2719d330bd46baf
3,637
py
Python
src/app/drivers/pycolator/splitmerge.py
husensofteng/msstitch
a917ed24fbc8b018b3f2bbec31e852aa76cc715c
[ "MIT" ]
null
null
null
src/app/drivers/pycolator/splitmerge.py
husensofteng/msstitch
a917ed24fbc8b018b3f2bbec31e852aa76cc715c
[ "MIT" ]
null
null
null
src/app/drivers/pycolator/splitmerge.py
husensofteng/msstitch
a917ed24fbc8b018b3f2bbec31e852aa76cc715c
[ "MIT" ]
null
null
null
from app.drivers.pycolator import base from app.actions.pycolator import splitmerge as preparation from app.readers import pycolator as readers from app.drivers.options import pycolator_options
36.37
79
0.668958
b442fb148ab72708b2f20e85644d227c7977348c
453
py
Python
ejercicio 14.py
Davidpadilla1234/taller_estructura-secuencial
3a65931ad75fd4902f406c6c872053169dad1a0b
[ "MIT" ]
null
null
null
ejercicio 14.py
Davidpadilla1234/taller_estructura-secuencial
3a65931ad75fd4902f406c6c872053169dad1a0b
[ "MIT" ]
null
null
null
ejercicio 14.py
Davidpadilla1234/taller_estructura-secuencial
3a65931ad75fd4902f406c6c872053169dad1a0b
[ "MIT" ]
null
null
null
""" Entradas: lectura actual--->float--->lect2 lectura anterior--->float--->lect1 valor kw--->float--->valorkw Salidas: consumo--->float--->consumo total factura-->flotante--->total """ lect2 = float ( entrada ( "Digite lectura real:" )) lect1 = float ( entrada ( "Digite lectura anterior:" )) valorkw = float ( input ( ...
30.2
55
0.653422
b4430cd61e95dcd15b900c13c175b1309fa0cc87
4,955
py
Python
src/workers/correct.py
brainsqueeze/Image_correction
db19088fb101ce760601416d19622d46d76f482c
[ "MIT" ]
10
2017-08-31T06:16:56.000Z
2022-03-12T19:44:50.000Z
src/workers/correct.py
brainsqueeze/Image_correction
db19088fb101ce760601416d19622d46d76f482c
[ "MIT" ]
2
2018-06-01T09:27:07.000Z
2018-07-23T01:43:16.000Z
src/workers/correct.py
brainsqueeze/Image_correction
db19088fb101ce760601416d19622d46d76f482c
[ "MIT" ]
3
2018-10-24T04:59:10.000Z
2021-09-03T10:37:35.000Z
# __author__ = 'Dave' import cv2 from skimage import io from skimage.transform import probabilistic_hough_line import matplotlib.pyplot as plt import os import warnings import random import numpy as np warnings.filterwarnings('ignore', category=RuntimeWarning)
32.598684
105
0.559435
b443c0485b44fdad4aad919722875c535cf37d83
2,469
py
Python
plot_scripts/CC_timeline_plot.py
idunnam/Thesis
a567a25aa037c949de285158804a6ee396fc0e6c
[ "MIT" ]
null
null
null
plot_scripts/CC_timeline_plot.py
idunnam/Thesis
a567a25aa037c949de285158804a6ee396fc0e6c
[ "MIT" ]
1
2022-01-28T13:12:26.000Z
2022-01-28T13:12:26.000Z
plot_scripts/CC_timeline_plot.py
idunnam/Thesis
a567a25aa037c949de285158804a6ee396fc0e6c
[ "MIT" ]
null
null
null
""" This code is used for plotting induvidual timelines of seasonal CC for each CMIP5 and CMIP6 model """ import matplotlib.pyplot as plt import xarray as xr import numpy as np import seaborn as sns import pandas as pd #=== Import SEB Anomalies ==== #from seasonal_SEB_components import * ACCESS = xr.open_dataset('/p...
46.584906
97
0.722155
b443e69cd16f1827fe9ba10cb1499425321f1ac2
1,059
py
Python
manage.py
xinbingliang/dockertest
aca2a508658681a5e6b1beab714059bf1b43d9ed
[ "MIT" ]
30
2018-05-23T16:58:12.000Z
2021-10-18T21:25:01.000Z
manage.py
xinbingliang/dockertest
aca2a508658681a5e6b1beab714059bf1b43d9ed
[ "MIT" ]
2
2019-12-01T13:32:50.000Z
2019-12-01T13:32:53.000Z
manage.py
xinbingliang/dockertest
aca2a508658681a5e6b1beab714059bf1b43d9ed
[ "MIT" ]
136
2018-02-04T14:13:33.000Z
2022-03-09T08:26:07.000Z
# manage.py import unittest from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from skeleton.server import app, db from skeleton.server.models import User migrate = Migrate(app, db) manager = Manager(app) # migrations manager.add_command('db', MigrateCommand) if __name__ == ...
18.578947
79
0.685552
b444035780c265816dfc1fd4e30cb0ee8b926672
610
py
Python
client/middleware.py
uktrade/directory-forms-api
078e38ddf7a761d2d34a0e1ab2dc3f20cd32e6aa
[ "MIT" ]
null
null
null
client/middleware.py
uktrade/directory-forms-api
078e38ddf7a761d2d34a0e1ab2dc3f20cd32e6aa
[ "MIT" ]
77
2018-10-29T14:38:37.000Z
2022-03-23T14:20:39.000Z
client/middleware.py
uktrade/directory-forms-api
078e38ddf7a761d2d34a0e1ab2dc3f20cd32e6aa
[ "MIT" ]
1
2021-08-05T10:20:17.000Z
2021-08-05T10:20:17.000Z
import sigauth.middleware import sigauth.helpers from client import helpers
30.5
80
0.703279
b444a932576d7caabe2a8eb3dc47c1e354d4d5e3
3,867
py
Python
scripts/prepare-kernel-headers.py
sonicyang/mctest
39c26c43e9fcf1fd94322effad4ca211d495339a
[ "BSD-2-Clause" ]
4
2017-05-22T07:05:33.000Z
2020-10-22T02:34:48.000Z
scripts/prepare-kernel-headers.py
sonicyang/mctest
39c26c43e9fcf1fd94322effad4ca211d495339a
[ "BSD-2-Clause" ]
null
null
null
scripts/prepare-kernel-headers.py
sonicyang/mctest
39c26c43e9fcf1fd94322effad4ca211d495339a
[ "BSD-2-Clause" ]
2
2020-02-19T13:23:16.000Z
2020-12-08T02:26:16.000Z
import os import subprocess import errno import shutil import re import sys kernel_path = '' install_path = '' patch_rules = [] arch = '' def main(): """Main function.""" argv = sys.argv assert len(argv) == 4, 'Invalid arguments' global kernel_path global install_path global arch ke...
27.820144
82
0.60693
b446c92bc9ef0b8ec976811e71bda60bd2a8e30d
18,912
py
Python
model/loss.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
model/loss.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
model/loss.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/9/18 11:19 # @Author : DaiPuWei # @Email : 771830171@qq.com # @File : loss.py # @Software: PyCharm """ YOLOsmooth Label; GIOU LossDIOU LossCIOU Loss """ import math import tensorflow as tf from tensorflow.keras import backend as K # ----------------------------...
46.239609
123
0.519882
b4470139b4eff5eadddd95183f7509c2d7a4cf79
59,405
py
Python
electrum_vtc/tests/test_lnpeer.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
null
null
null
electrum_vtc/tests/test_lnpeer.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
2
2022-01-11T17:19:40.000Z
2022-01-14T16:32:23.000Z
electrum_vtc/tests/test_lnpeer.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
2
2022-01-13T05:04:16.000Z
2022-01-14T11:48:39.000Z
import asyncio import tempfile from decimal import Decimal import os from contextlib import contextmanager from collections import defaultdict import logging import concurrent from concurrent import futures import unittest from typing import Iterable, NamedTuple, Tuple, List, Dict from aiorpcx import TaskGroup, timeou...
46.775591
138
0.647908
b4484ab703976e8f170a719cc81c5d0146cb13ba
533
py
Python
dictionaries/lab/06_students.py
Galchov/python-fundamentals
4939bdd1c66a7b458fd9ffd0a01d714de26724b5
[ "MIT" ]
null
null
null
dictionaries/lab/06_students.py
Galchov/python-fundamentals
4939bdd1c66a7b458fd9ffd0a01d714de26724b5
[ "MIT" ]
null
null
null
dictionaries/lab/06_students.py
Galchov/python-fundamentals
4939bdd1c66a7b458fd9ffd0a01d714de26724b5
[ "MIT" ]
null
null
null
data = input() courses = {} while ":" in data: student_name, id, course_name = data.split(":") if course_name not in courses: courses[course_name] = {} courses[course_name][id] = student_name data = input() searched_course = data searched_course_name_as_list = searched_course.split("_") se...
23.173913
57
0.669794
b44863efc63447d4fc28f184aca9628762468a02
637
py
Python
eth_tester/normalization/common.py
PabloLefort/eth-tester
9a795cff7da3916062884e9c1e690545741e60c5
[ "MIT" ]
215
2018-05-17T19:09:07.000Z
2021-03-05T18:10:15.000Z
eth_tester/normalization/common.py
PabloLefort/eth-tester
9a795cff7da3916062884e9c1e690545741e60c5
[ "MIT" ]
1
2021-03-25T21:51:01.000Z
2021-03-25T21:51:01.000Z
eth_tester/normalization/common.py
PabloLefort/eth-tester
9a795cff7da3916062884e9c1e690545741e60c5
[ "MIT" ]
1
2019-02-27T21:29:16.000Z
2019-02-27T21:29:16.000Z
from cytoolz.functoolz import ( curry, ) from eth_utils import ( to_dict, to_tuple, )
17.694444
71
0.657771
b448742ef1c956bf4c670f1ca4c802b2271cb5bd
1,030
py
Python
je_open_cv/modules/image_operations.py
JE-Chen/Python-OPENCV-JE
d5dd3823f0a1cfc195da66bdcbe738c9bbdfc59b
[ "MIT" ]
null
null
null
je_open_cv/modules/image_operations.py
JE-Chen/Python-OPENCV-JE
d5dd3823f0a1cfc195da66bdcbe738c9bbdfc59b
[ "MIT" ]
null
null
null
je_open_cv/modules/image_operations.py
JE-Chen/Python-OPENCV-JE
d5dd3823f0a1cfc195da66bdcbe738c9bbdfc59b
[ "MIT" ]
null
null
null
import cv2 ''' ''' # # # # ''' The B,G,R channels of an image can be split into their individual planes when needed. Then, the individual channels can be merged back together to form a BGR image again. This can be performed by: b = img[:,:,0] Suppose, you want to make all the red pixels to zero, ...
18.727273
109
0.7
b44950222260e5d85816513148e16767252becb1
9,124
py
Python
Incident-Response/Tools/grr/grr/client/grr_response_client/vfs_handlers/ntfs.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/grr/grr/client/grr_response_client/vfs_handlers/ntfs.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/grr/grr/client/grr_response_client/vfs_handlers/ntfs.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
#!/usr/bin/env python """Virtual filesystem module based on pyfsntfs.""" import stat from typing import Any, Callable, Dict, Iterable, Optional, Text, Type import pyfsntfs from grr_response_client import client_utils from grr_response_client.vfs_handlers import base as vfs_base from grr_response_core.lib import rdfv...
36.790323
137
0.694432
b44954b2c2b3e9462c5ae4cfc721ce64071a8588
1,184
py
Python
04.Encapsulation/Exe/pizza_maker/project/main.py
nmoskova/Python-OOP
07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864
[ "MIT" ]
null
null
null
04.Encapsulation/Exe/pizza_maker/project/main.py
nmoskova/Python-OOP
07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864
[ "MIT" ]
null
null
null
04.Encapsulation/Exe/pizza_maker/project/main.py
nmoskova/Python-OOP
07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864
[ "MIT" ]
null
null
null
from encapsulation_04.exe.pizza_maker.project.dough import Dough from encapsulation_04.exe.pizza_maker.project.pizza import Pizza from encapsulation_04.exe.pizza_maker.project.topping import Topping tomato_topping = Topping("Tomato", 60) print(tomato_topping.topping_type) print(tomato_topping.weight) mushrooms_toppin...
29.6
68
0.831081
b4498ac05bf8ea7aa023efd2ecbb1bd7c7b56fb2
1,158
py
Python
src/unicon/plugins/iosxe/cat9k/__init__.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
null
null
null
src/unicon/plugins/iosxe/cat9k/__init__.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
null
null
null
src/unicon/plugins/iosxe/cat9k/__init__.py
nielsvanhooy/unicon.plugins
3416fd8223f070cbb67a2cbe604e3c5d13584318
[ "Apache-2.0" ]
null
null
null
""" cat9k IOS-XE connection implementation. """ __author__ = "Rob Trotter <rlt@cisco.com>" from unicon.plugins.iosxe import ( IosXESingleRpConnection, IosXEDualRPConnection, IosXEServiceList, HAIosXEServiceList) from .statemachine import IosXECat9kSingleRpStateMachine, IosXECat9kDualRpStateMachine fr...
26.930233
86
0.768566
b44998685fc665e80493c8e5ef4cef6084f68ca9
4,875
py
Python
ludopediaAnuncios.py
christianbobsin/LudopediaDataMiner
d136a40b024b3611a8a88371b4a47a673c782180
[ "MIT" ]
2
2018-03-16T23:05:51.000Z
2021-08-05T03:23:44.000Z
ludopediaAnuncios.py
christianbobsin/LudopediaDataMiner
d136a40b024b3611a8a88371b4a47a673c782180
[ "MIT" ]
null
null
null
ludopediaAnuncios.py
christianbobsin/LudopediaDataMiner
d136a40b024b3611a8a88371b4a47a673c782180
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from lxml import html from time import sleep from datetime import datetime import requests import os import sqlite3 import sys # No terminal usar ~: python ludopedia.py [idIni] [regs] # por ex. ~: python ludopedia.py 451 3000 con = sqlite3.connect('ludopedia.db') cursor = con.cursor() cursor....
28.676471
223
0.570256
b449d07b5e029400778e8d16d3a55f2ee36130ff
18,334
py
Python
midterm/yolo_utils.py
ClarkBrun/emotic
ea4c1d846ac8aa18a902c0e68fb6e5dc5e1ae2d1
[ "MIT" ]
null
null
null
midterm/yolo_utils.py
ClarkBrun/emotic
ea4c1d846ac8aa18a902c0e68fb6e5dc5e1ae2d1
[ "MIT" ]
null
null
null
midterm/yolo_utils.py
ClarkBrun/emotic
ea4c1d846ac8aa18a902c0e68fb6e5dc5e1ae2d1
[ "MIT" ]
null
null
null
import cv2 import numpy as np import os import torch import torch.nn as nn import torch.nn.functional as F def xywh2xyxy(x): ''' Convert bounding box from [x, y, w, h] to [x1, y1, x2, y2] :param x: bounding boxes array :return: Converted bounding box array ''' y = x.new(x.shape) y[..., 0] = x[..., 0] - x[....
37.038384
115
0.678412
b44ac7b8e26906825e3b89cdfb277cf731bbe790
5,557
py
Python
pytracking-master/ltr/train_settings/bbreg/atom.py
wsumel/AMMC
ef101878b4a97f07984186ea09146348c0526fa6
[ "Apache-2.0" ]
3
2021-12-02T11:34:37.000Z
2021-12-19T09:30:10.000Z
pytracking-master/ltr/train_settings/bbreg/atom.py
wsumel/AMMC
ef101878b4a97f07984186ea09146348c0526fa6
[ "Apache-2.0" ]
null
null
null
pytracking-master/ltr/train_settings/bbreg/atom.py
wsumel/AMMC
ef101878b4a97f07984186ea09146348c0526fa6
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import torch.optim as optim from ltr.dataset import Lasot, TrackingNet, MSCOCOSeq, Got10k from ltr.data import processing, sampler, LTRLoader import ltr.models.bbreg.atom as atom_models from ltr import actors from ltr.trainers import LTRTrainer import ltr.data.transforms as tfm
55.57
133
0.638114
b44b2dc4ce40901657329bbb40489909361c416f
281
py
Python
exercise 8.6.py
tuyanyang/python_exercise
c1027c2451d7f3c0fd00152a5430386d930ef9ef
[ "Apache-2.0" ]
null
null
null
exercise 8.6.py
tuyanyang/python_exercise
c1027c2451d7f3c0fd00152a5430386d930ef9ef
[ "Apache-2.0" ]
null
null
null
exercise 8.6.py
tuyanyang/python_exercise
c1027c2451d7f3c0fd00152a5430386d930ef9ef
[ "Apache-2.0" ]
null
null
null
nums = list() while True: nStr = input('Enter a number: ') try: if nStr == 'done': break n = float(nStr) nums.append(n) except: print('Invalid input') continue print('Maximum: ',max(nums)) print('Minimum: ',min(nums))
21.615385
36
0.519573
b44cdf1520f9983049c66891c92f13dc5a062fff
5,899
py
Python
gui/activity_list.py
keremkoseoglu/Kifu
bed7a15f71e2345c654b1adab07a5edecdbae342
[ "MIT" ]
null
null
null
gui/activity_list.py
keremkoseoglu/Kifu
bed7a15f71e2345c654b1adab07a5edecdbae342
[ "MIT" ]
82
2020-06-25T09:45:01.000Z
2022-03-31T09:35:31.000Z
gui/activity_list.py
keremkoseoglu/Kifu
bed7a15f71e2345c654b1adab07a5edecdbae342
[ "MIT" ]
null
null
null
""" Activity list window """ import tkinter import tkinter.ttk from model import activity, invoice from model.activity import Activity from model.company import Company from gui.activity import ActivityWindow from gui.activity_split import ActivitySplit from gui.invoice import InvoiceWindow from gui.popup_file import p...
34.098266
97
0.66418
b44e0121e131edfd41c92b9e516f42e320c6b70f
3,551
py
Python
src/cactus/shared/commonTest.py
thiagogenez/cactus
910234eb8bafca33e6a219079c8d988b6f43bc59
[ "MIT-0" ]
209
2016-11-12T14:16:50.000Z
2022-03-30T04:44:11.000Z
src/cactus/shared/commonTest.py
thiagogenez/cactus
910234eb8bafca33e6a219079c8d988b6f43bc59
[ "MIT-0" ]
468
2016-11-06T01:16:43.000Z
2022-03-31T16:24:37.000Z
src/cactus/shared/commonTest.py
thiagogenez/cactus
910234eb8bafca33e6a219079c8d988b6f43bc59
[ "MIT-0" ]
75
2017-03-09T22:19:27.000Z
2022-03-14T22:03:33.000Z
import os import shutil import unittest from base64 import b64encode from sonLib.bioio import TestStatus from sonLib.bioio import getTempFile from sonLib.bioio import getTempDirectory from sonLib.bioio import system from toil.job import Job from toil.common import Toil from cactus.shared.common import cactus_call, Chi...
34.475728
84
0.619825
b44e0a41d16e0ba8bfc1be48250cce3e7506e1d1
7,185
py
Python
porespy/networks/__getnet__.py
hfathian/porespy
8747e675ba8e6410d8448492c70f6911e0eb816a
[ "MIT" ]
3
2020-09-02T20:02:55.000Z
2021-07-09T03:50:49.000Z
porespy/networks/__getnet__.py
hfathian/porespy
8747e675ba8e6410d8448492c70f6911e0eb816a
[ "MIT" ]
null
null
null
porespy/networks/__getnet__.py
hfathian/porespy
8747e675ba8e6410d8448492c70f6911e0eb816a
[ "MIT" ]
null
null
null
import sys import numpy as np import openpnm as op from tqdm import tqdm import scipy.ndimage as spim from porespy.tools import extend_slice import openpnm.models.geometry as op_gm def regions_to_network(im, dt=None, voxel_size=1): r""" Analyzes an image that has been partitioned into pore regions and extract...
43.545455
83
0.622825
b44ef5d465bb9fde348df90c5e65dba1ad7814be
67,560
py
Python
pandas/core/internals.py
lodagro/pandas
dfcf74679a273395cc9d7b3db78a1fbbc17c4f57
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/internals.py
lodagro/pandas
dfcf74679a273395cc9d7b3db78a1fbbc17c4f57
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/internals.py
lodagro/pandas
dfcf74679a273395cc9d7b3db78a1fbbc17c4f57
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
import itertools from datetime import datetime from numpy import nan import numpy as np from pandas.core.common import _possibly_downcast_to_dtype, isnull from pandas.core.index import Index, MultiIndex, _ensure_index, _handle_legacy_indexes from pandas.core.indexing import _check_slice_bounds, _maybe_convert_indices...
33.004397
120
0.574571
b44f004ae7c6b3eb8725a6532e9b3868344a526e
4,919
py
Python
Sketches/MH/PipeBuilder/BuildViewer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MH/PipeBuilder/BuildViewer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MH/PipeBuilder/BuildViewer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Ve...
36.708955
121
0.551332
b44f498d26d9dd58f69d6d12b6ff289ae252ed43
2,076
py
Python
examples/exp_example.py
physimals/avb
16663a935de35e4042c77000ea47abd7e5cd16ad
[ "Apache-2.0" ]
null
null
null
examples/exp_example.py
physimals/avb
16663a935de35e4042c77000ea47abd7e5cd16ad
[ "Apache-2.0" ]
null
null
null
examples/exp_example.py
physimals/avb
16663a935de35e4042c77000ea47abd7e5cd16ad
[ "Apache-2.0" ]
null
null
null
""" Example of usage of the AVB framework to infer a single exponential decay model. This uses the Python classes directly to infer the parameters for a single instance of noisy data constructed as a Numpy array. """ import sys import logging import numpy as np from vaby_avb import Avb import vaby # Uncomment line ...
33.483871
167
0.750482