hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
08b4e0f587d449977e090abdfc49d7adc074f8cd
22,482
py
Python
dit/pid/pid.py
volpatto/dit
a8b0ffd72e0829c4b239419e85b9e0cfd20085dd
[ "BSD-3-Clause" ]
null
null
null
dit/pid/pid.py
volpatto/dit
a8b0ffd72e0829c4b239419e85b9e0cfd20085dd
[ "BSD-3-Clause" ]
null
null
null
dit/pid/pid.py
volpatto/dit
a8b0ffd72e0829c4b239419e85b9e0cfd20085dd
[ "BSD-3-Clause" ]
null
null
null
""" Classes implementing the partial information decomposition. """ from __future__ import division from abc import ABCMeta, abstractmethod from six import with_metaclass from sys import version_info from itertools import product import networkx as nx import numpy as np import prettytable from .lattice import a...
32.488439
172
0.554666
08b4e5c6e488e5cfea4e537b322ee7daac92fae9
838
py
Python
tests/datastructures/arrays/test_build_tower.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/datastructures/arrays/test_build_tower.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/datastructures/arrays/test_build_tower.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from datastructures.lists.build_tower import tower_builder class MyTestCase(unittest.TestCase): def test_1(self): self.assertEqual(tower_builder(1), ['*', ]) def test_2(self): self.assertEqual(tower_builder(2), [' * ', '***']) def test_3(self): self.assertEqual(t...
29.928571
71
0.353222
08b5150be6641134b95e5c94ad18f95f36bfc634
889
py
Python
atom/nucleus/python/test/test_model_asset_size.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_model_asset_size.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_model_asset_size.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
21.682927
84
0.704162
08b59bc06f083fa1cf7252175c70906ad91a6fa9
486
py
Python
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/v2021_09_30_preview/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/v2021_09_30_preview/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/v2021_09_30_preview/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.6
94
0.526749
08b5d5896559d900e274fc278169b4fb8bcf70c1
927
py
Python
Day 21 - Snake Game (Part 2)/scoreboard.py
atulmkamble/100DaysOfCode
ccfb6cb8582be69c63c666a3b097e0130585e4c9
[ "MIT" ]
2
2021-12-07T00:39:57.000Z
2021-12-07T01:44:21.000Z
Day 21 - Snake Game (Part 2)/scoreboard.py
atulmkamble/100DaysOfCode
ccfb6cb8582be69c63c666a3b097e0130585e4c9
[ "MIT" ]
null
null
null
Day 21 - Snake Game (Part 2)/scoreboard.py
atulmkamble/100DaysOfCode
ccfb6cb8582be69c63c666a3b097e0130585e4c9
[ "MIT" ]
1
2021-09-12T14:02:27.000Z
2021-09-12T14:02:27.000Z
from turtle import Turtle ALIGNMENT = 'center' FONT = ('Courier', 15, 'normal') class Scoreboard(Turtle): def __init__(self): super().__init__() self.score = 0 self.color('white') self.penup() self.goto(0, 270) self.hideturtle() self.display_score() de...
23.175
77
0.550162
08b6068e798a52db7cf8ee5fa73873dfa07aa7a3
849
py
Python
var/spack/repos/builtin/packages/py-yq/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-yq/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-yq/package.py
joequant/spack
e028ee0d5903045e1cdeb57550cbff61f2ffb2fa
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyYq(PythonPackage): """yq takes YAML input, converts it to JSON, and pipes it to jq""" ...
35.375
96
0.657244
08b62e2563721a757c84adc31410cf4ad1e82d9c
22,102
py
Python
WDCGAN/models.py
Ali-Sahili/Background-Subtraction-Unsupervised-Learning
445b2cf8736a4a28cff2b074a32afe8fe6986d53
[ "MIT" ]
5
2021-05-17T06:52:28.000Z
2022-02-20T15:35:51.000Z
WDCGAN/models.py
WN1695173791/Background-Subtraction-Unsupervised-Learning
445b2cf8736a4a28cff2b074a32afe8fe6986d53
[ "MIT" ]
null
null
null
WDCGAN/models.py
WN1695173791/Background-Subtraction-Unsupervised-Learning
445b2cf8736a4a28cff2b074a32afe8fe6986d53
[ "MIT" ]
1
2021-05-17T06:52:33.000Z
2021-05-17T06:52:33.000Z
""" models of Generators, Endoders and Discriminators at various image sizes following deep convolutionnal model of DCGAN cf https://pytorch.org/tutorials/beginner/dcgan_faces_tutorial.html and https://github.com/pytorch/examples/tree/master/dcgan the final non linearity of the generator should be tanh ( positive and ...
36.714286
135
0.521039
08b657b53ea24dbca64e4ca01c4dc49c29817ae0
1,685
py
Python
asposewordscloud/models/responses/update_drawing_object_online_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/responses/update_drawing_object_online_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/responses/update_drawing_object_online_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="update_drawing_object_online_response.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person ob...
49.558824
85
0.675964
08b65dc4ca0747eb4a8a4bad5062b5968a627187
11,508
py
Python
combra_loihi/astro/astrocyte.py
combra-lab/combra_loihi
230bc970f4d4f15a83f583fe15a8a59904a69f18
[ "MIT" ]
4
2019-02-14T17:42:52.000Z
2021-12-25T21:09:54.000Z
combra_loihi/astro/astrocyte.py
michaelgzt/combra_loihi
372193969ec67872374c742b03e6601271fc95db
[ "MIT" ]
null
null
null
combra_loihi/astro/astrocyte.py
michaelgzt/combra_loihi
372193969ec67872374c742b03e6601271fc95db
[ "MIT" ]
6
2018-12-06T14:13:12.000Z
2022-03-01T00:05:40.000Z
""" MIT License Copyright (c) 2018 Guangzhi Tang Copyright (c) 2018 Arpit Shah Copyright (c) 2018 Computational Brain Lab, Computer Science Department, Rutgers University Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ...
42.780669
113
0.615485
08b6644228af778db9585bcca30c4666626baf3d
418
py
Python
terrascript/provider/fakewebservices.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/provider/fakewebservices.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/provider/fakewebservices.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/provider/fakewebservices.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:16:12 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.provider.fakewebservices # # instead of # # >>> import terrascript.provider.hashicorp.fakewebservices # # This is only available for ...
27.866667
73
0.767943
08b6a697574eff2d70be59ee682f3f46c62fc25a
928
py
Python
jssg/pathmap.py
jpeoples/jssg
ef7c389b1c35533dc20f14d0e1fa6e910c7f498c
[ "MIT" ]
null
null
null
jssg/pathmap.py
jpeoples/jssg
ef7c389b1c35533dc20f14d0e1fa6e910c7f498c
[ "MIT" ]
null
null
null
jssg/pathmap.py
jpeoples/jssg
ef7c389b1c35533dc20f14d0e1fa6e910c7f498c
[ "MIT" ]
null
null
null
import pathlib def mirror_path(fn): """Simply replicate the source path in the build directory""" return fn def replace_extensions(fn, *, suff=None): """Replace all extensions with specified suffix""" if suff is None: raise ValueError("Argument `suff` cannot be None") path = pathlib.Path(...
27.294118
72
0.685345
08b6a9b0e4710b48b11ae667e1744f50b687a259
13,602
py
Python
run_v2.py
drib861204/Soft-Actor-Critic-and-Extensions
3075df7430c1c49177b3798d753a9e3f6226672e
[ "MIT" ]
null
null
null
run_v2.py
drib861204/Soft-Actor-Critic-and-Extensions
3075df7430c1c49177b3798d753a9e3f6226672e
[ "MIT" ]
null
null
null
run_v2.py
drib861204/Soft-Actor-Critic-and-Extensions
3075df7430c1c49177b3798d753a9e3f6226672e
[ "MIT" ]
null
null
null
import numpy as np import random import gym # import pybulletgym # to run e.g. HalfCheetahPyBullet-v0 # import pybullet_envs # to run e.g. HalfCheetahBullet-v0 different reward function bullet-v0 starts ~ -1500. pybullet-v0 starts at 0 from collections import deque import torch import time from torch.utils.tensorboard ...
43.180952
195
0.596383
08b6af566566cb41492d8a9ec917a95fb10de804
14,043
py
Python
src/the_tale/the_tale/game/workers/supervisor.py
SilentWrangler/the-tale
a121128edd2a9e36133eb047946ccb9593801ea6
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/workers/supervisor.py
SilentWrangler/the-tale
a121128edd2a9e36133eb047946ccb9593801ea6
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/workers/supervisor.py
SilentWrangler/the-tale
a121128edd2a9e36133eb047946ccb9593801ea6
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() class SupervisorException(Exception): pass class Worker(utils_workers.BaseWorker): GET_CMD_TIMEOUT = 10 RECEIVE_ANSWERS = True def clean_queues(self): super(Worker, self).clean_queues() self.answers_queue.queue.purge() self.stop_que...
41.794643
163
0.597664
08b6ba9f82162d9c7b8594d159c3ffdcbeb30265
1,418
py
Python
portal/apps/audiologue/migrations/0001_initial.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/apps/audiologue/migrations/0001_initial.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/apps/audiologue/migrations/0001_initial.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-08-18 12:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Audio...
44.3125
118
0.626939
08b6d2e7d414885e499567c5e020248edcbd1081
18,730
py
Python
topi/tests/python/test_topi_vision.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
topi/tests/python/test_topi_vision.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
topi/tests/python/test_topi_vision.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
43.356481
128
0.592312
08b7a14173a9e91c3190381ca4fa7462705c1901
3,646
py
Python
intersight/models/equipment_switch_card_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/equipment_switch_card_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/equipment_switch_card_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class EquipmentSwitchCardRef(object): """ NOTE: Thi...
24.306667
77
0.546078
08b7ab7e066932bc453226101408d542e42fe451
1,447
py
Python
tph/monitor/urls.py
ono-t01/django-rpi-tph-monitor
30894d937ece11f8c7d087dd735cd79b203f0cf4
[ "MIT" ]
null
null
null
tph/monitor/urls.py
ono-t01/django-rpi-tph-monitor
30894d937ece11f8c7d087dd735cd79b203f0cf4
[ "MIT" ]
null
null
null
tph/monitor/urls.py
ono-t01/django-rpi-tph-monitor
30894d937ece11f8c7d087dd735cd79b203f0cf4
[ "MIT" ]
null
null
null
""" Urls definitions. @date 27 November 2019 @author mitsuhisaT <asihustim@gmail.com> """ # from django.conf.urls import url from django.urls import include, path from rest_framework import routers # from monitor import views from monitor.view_bme280list import Bme280List from monitor.view_tph_chart import tph_chart_v...
37.102564
78
0.692467
08b7d175bc52e4eee6476fbdf7799d109afb1865
4,152
py
Python
test.py
ldzhangyu/cyclegan
0d7860181289d58373c907286027ea48ce2ffeca
[ "BSD-3-Clause" ]
null
null
null
test.py
ldzhangyu/cyclegan
0d7860181289d58373c907286027ea48ce2ffeca
[ "BSD-3-Clause" ]
1
2021-07-13T02:21:35.000Z
2021-07-13T02:21:35.000Z
test.py
ldzhangyu/cyclegan
0d7860181289d58373c907286027ea48ce2ffeca
[ "BSD-3-Clause" ]
null
null
null
"""General-purpose test script for image-to-image translation. Once you have trained your model with train.py, you can use this script to test the model. It will load a saved model from '--checkpoints_dir' and save the results to '--results_dir'. It first creates model and dataset given the option. It will hard-code ...
60.173913
126
0.717967
08b7d5725c0afdcf0e95b7a04baa3e67f93d9351
13,090
py
Python
third_party/closure_compiler/compile.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
third_party/closure_compiler/compile.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/closure_compiler/compile.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
#!/usr/bin/python # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs Closure compiler on JavaScript files to check for errors and produce minified output.""" import argparse import os import re impor...
35
80
0.660275
08b7daa7c5f26aacb501dfaa03c54e556f9d3f50
2,686
py
Python
setup.py
bruneli/statspy
7bf07cdd25f7d5118f39fd5465853f4da9116c80
[ "BSD-3-Clause" ]
2
2015-03-07T08:34:28.000Z
2016-07-04T18:15:28.000Z
setup.py
bruneli/statspy
7bf07cdd25f7d5118f39fd5465853f4da9116c80
[ "BSD-3-Clause" ]
null
null
null
setup.py
bruneli/statspy
7bf07cdd25f7d5118f39fd5465853f4da9116c80
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins DISTNAME = 'statspy' DESCRIPTION = 'Python module for statistics built on top of NumPy/SciPy' LONG_DESCRIPTION = open('README.rst').read() URL = 'http://bruneli.github.io/statspy/' LICENSE = 'new...
38.927536
76
0.540953
08b8074600c34ef96afb863d7598cf8fd779d5f8
22,453
py
Python
Tensorflow_network/model.py
quilan78/MSC_project
18c0298bca013a62c09752446f7c391a29f38618
[ "Apache-2.0" ]
null
null
null
Tensorflow_network/model.py
quilan78/MSC_project
18c0298bca013a62c09752446f7c391a29f38618
[ "Apache-2.0" ]
null
null
null
Tensorflow_network/model.py
quilan78/MSC_project
18c0298bca013a62c09752446f7c391a29f38618
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np import time import sys #sys.path.append('/home/dwt17/MSc_project/neural_sum_1/code/Proxy_network/Commons/') sys.path.append('../Commons/') from read_data import * from vocab import * from treatedData import * from batch import * from bahdanauCoverageAttention import...
44.461386
347
0.686412
08b80ad17b9000eb464d4eab20a8d74beb3be7df
2,325
py
Python
demo.py
shakna-israel/jwsgi
c57cbb67e9d9ac6ba01cc7505df96e93ce688be0
[ "BSD-3-Clause" ]
null
null
null
demo.py
shakna-israel/jwsgi
c57cbb67e9d9ac6ba01cc7505df96e93ce688be0
[ "BSD-3-Clause" ]
null
null
null
demo.py
shakna-israel/jwsgi
c57cbb67e9d9ac6ba01cc7505df96e93ce688be0
[ "BSD-3-Clause" ]
null
null
null
import jwsgi app = jwsgi.App(secret="somepassword") @app.route("/other/thing/") def other(self, request, response): return {} def new_constructor(value): return int(value) app.add_type_constructor("constructor", new_constructor) @app.route("/{thing:constructor}/{value}/{multiword verse}") def thing_verse(self, re...
23.72449
122
0.704086
08b81e2539c0b8fb983fcaaa629a2b7cacc8f306
513
bzl
Python
third_party/org_portable_scala.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/org_portable_scala.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/org_portable_scala.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
load(":import_external.bzl", import_external = "import_external") def dependencies(): import_external( name = "org_portable_scala_portable_scala_reflect_2_12", artifact = "org.portable-scala:portable-scala-reflect_2.12:1.1.1", artifact_sha256 = "2eb8ee9df8ff1ecb3612552d2f6dbdbc17c149ad78dbe...
39.461538
93
0.723197
08b83ed04b5c50019a0dea965598a6b01b8a46aa
2,018
py
Python
src/python/pants/backend/python/rules/python_create_binary.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/backend/python/rules/python_create_binary.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/rules/python_create_binary.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.python.rules.pex import Pex from pants.backend.python.rules.pex_from_target_closure import CreatePexFromTargetClosure from pants.backend.python.targets.python_binary imp...
43.869565
98
0.77998
08b8b9b661555b17ce71efce2040d6fec5f8f22b
15,288
py
Python
vyperlogix/win/WinProcesses.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/win/WinProcesses.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/win/WinProcesses.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
__copyright__ = """\ (c). Copyright 2008-2020, Vyper Logix Corp., All Rights Reserved. Published under Creative Commons License (http://creativecommons.org/licenses/by-nc/3.0/) restricted to non-commercial educational use only., http://www.VyperLogix.com for details THE AUTHOR VYPER LOGIX CORP DISCLAIMS ALL WARRA...
35.719626
184
0.613815
08b8c343191510e85687f557bd91940efa5c3f19
1,270
py
Python
SoftLayer/CLI/ssl/add.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/CLI/ssl/add.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/CLI/ssl/add.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
"""Add and upload SSL certificate details.""" # :license: MIT, see LICENSE for more details. import SoftLayer from SoftLayer.CLI import environment import click @click.command() @click.option('--crt', type=click.Path(exists=True), help="Certificate file") @click.option('--csr', ...
29.534884
77
0.631496
08b8c75c0530d4a3cb68023a53f592f70657c00b
1,968
py
Python
shapes/cube.py
cloose/ray-tracer-challenge
5e9dd56fb67c5cba47172986a963fc22a8cbcaa2
[ "MIT" ]
null
null
null
shapes/cube.py
cloose/ray-tracer-challenge
5e9dd56fb67c5cba47172986a963fc22a8cbcaa2
[ "MIT" ]
null
null
null
shapes/cube.py
cloose/ray-tracer-challenge
5e9dd56fb67c5cba47172986a963fc22a8cbcaa2
[ "MIT" ]
null
null
null
from math import inf from core import Intersection, transform_from_yaml, vector from .material import Material from .shape import Shape class Cube(Shape): def __init__(self): super().__init__() @classmethod def from_yaml(cls, data): cube = cls() cube.init_from_yaml(data) ...
28.114286
67
0.563516
08b8ecaa8b390059ebe181aaa58829069ec1a274
10,169
py
Python
example_gallery/2_advanced/plot_extract_alpha_indices.py
scikit-maad/scikit-maad
2052c6f5ffc2a973fa1676364cc1663d7da1715a
[ "BSD-3-Clause" ]
31
2019-06-27T11:30:09.000Z
2022-03-14T22:07:34.000Z
example_gallery/2_advanced/plot_extract_alpha_indices.py
scikit-maad/scikit-maad
2052c6f5ffc2a973fa1676364cc1663d7da1715a
[ "BSD-3-Clause" ]
9
2019-03-29T20:45:09.000Z
2022-03-18T12:25:53.000Z
example_gallery/2_advanced/plot_extract_alpha_indices.py
scikit-maad/scikit-maad
2052c6f5ffc2a973fa1676364cc1663d7da1715a
[ "BSD-3-Clause" ]
7
2019-07-29T13:26:40.000Z
2022-03-24T00:44:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Extract acoustic indices from audio recordings ============================================== Acoustic indices can summarize aspects of the acoustic energy distribution in audio recordings and are widely used to characterize animal acoustic communities[1-3]. In this ...
52.689119
315
0.570951
08b9122888821e2ca3e07dd65afd9695ef752424
922
py
Python
app.py
j-000/todoAPI
27d8bbe680368a4ad72adf174776551b7bf219c6
[ "bzip2-1.0.6" ]
2
2019-04-20T18:28:04.000Z
2019-07-31T06:04:12.000Z
app.py
j-000/todoAPI
27d8bbe680368a4ad72adf174776551b7bf219c6
[ "bzip2-1.0.6" ]
null
null
null
app.py
j-000/todoAPI
27d8bbe680368a4ad72adf174776551b7bf219c6
[ "bzip2-1.0.6" ]
null
null
null
from flask import render_template from flask_restful import Api, reqparse from models import app from resources import UserAuthentication, UserRefreshToken, UserRegistration, UserLogout, Todos, Todo from flask_moment import Moment moment = Moment(app) api = Api(app) api.add_resource(UserRegistration, '/registration')...
28.8125
101
0.759219
08b922e4494e0cca3b30c7e239092a056a0b2df3
2,610
py
Python
lib/tests/streamlit/map_test.py
deepchatterjeevns/streamlit
631d42877bd16bdec14ee124c936917b430f6ce4
[ "Apache-2.0" ]
4
2019-11-10T13:50:56.000Z
2020-01-07T21:02:29.000Z
lib/tests/streamlit/map_test.py
IliaLarchenko/streamlit
9cdf4851148a43e4e0431d7633c5a5d729e5b1e3
[ "Apache-2.0" ]
4
2021-05-09T11:42:18.000Z
2022-02-27T10:59:36.000Z
lib/tests/streamlit/map_test.py
IliaLarchenko/streamlit
9cdf4851148a43e4e0431d7633c5a5d729e5b1e3
[ "Apache-2.0" ]
1
2019-11-26T09:37:57.000Z
2019-11-26T09:37:57.000Z
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit Inc. # # 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 applicabl...
33.896104
85
0.656322
08b92b47636930f25da79c7a8e889cbf3cc589c3
5,285
py
Python
main/tests/test_apply.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
5
2017-08-25T16:37:18.000Z
2019-02-25T18:26:37.000Z
main/tests/test_apply.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
43
2017-01-22T23:58:43.000Z
2018-05-17T21:35:16.000Z
main/tests/test_apply.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
2
2017-11-05T08:36:02.000Z
2017-12-22T17:37:19.000Z
from django.test import TestCase from django.urls import reverse from django.utils.translation import activate from faker import Faker from ..forms import ApplicationForm class ApplicationFormTests(TestCase): def test_form_valid(self): fake = Faker() form_data = { 'answer_idea_1': fak...
55.631579
94
0.669063
08b95c27775cc29f69ef5fa6d1eaf0ac4c360ac4
3,715
py
Python
commands/donate.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
2
2015-05-20T00:42:03.000Z
2015-05-23T04:18:42.000Z
commands/donate.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
null
null
null
commands/donate.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
null
null
null
import config import random import datetime, time, math def taxOn(amount): tax = 0 if amount > 200: taxable = min(amount - 200, 300) tax = tax + int(math.floor(taxable*3/10)) if amount > 500: taxable = min(amount - 500, 500) tax = tax + int(math.floor(ta...
38.697917
206
0.604576
08b976eac1e148fe6220f10f0b8de6bd1dea66e3
4,270
py
Python
analysis/webservice/Filtering.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
23
2016-08-09T22:45:14.000Z
2020-02-17T08:18:29.000Z
analysis/webservice/Filtering.py
lewismc/incubator-sdap-nexus
ff98fa346303431542b8391cc2a1bf7561d1bd03
[ "Apache-2.0" ]
6
2017-04-27T21:22:17.000Z
2021-06-01T21:45:52.000Z
analysis/webservice/Filtering.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
5
2016-08-31T13:47:29.000Z
2017-11-14T21:45:22.000Z
""" Copyright (c) 2016 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved """ import math import logging import traceback import numpy as np from scipy import stats from scipy.fftpack import fft from scipy.ndimage.interpolation import zoom from scipy.interpolate import UnivariateSpli...
27.025316
128
0.665808
08b994562d7ded96912a6c7bebef76cf81fafdd8
18,051
py
Python
torchreid/engine/engine.py
Arindam-1991/deep_reid
ab68d95c2229ef5b832a6a6b614a9b91e4984bd5
[ "MIT" ]
1
2021-03-27T17:27:47.000Z
2021-03-27T17:27:47.000Z
torchreid/engine/engine.py
Arindam-1991/deep_reid
ab68d95c2229ef5b832a6a6b614a9b91e4984bd5
[ "MIT" ]
null
null
null
torchreid/engine/engine.py
Arindam-1991/deep_reid
ab68d95c2229ef5b832a6a6b614a9b91e4984bd5
[ "MIT" ]
null
null
null
from __future__ import division, print_function, absolute_import import time import numpy as np import os.path as osp import datetime from collections import OrderedDict import torch from torch.nn import functional as F from torch.utils.tensorboard import SummaryWriter from torchreid import metrics from tor...
37.141975
104
0.543516
08b9ab00e75eab1a87c978b04b1fdc3f11d4d23d
419
py
Python
angalabiri/blog/migrations/0002_post_added_by.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
1
2021-03-25T14:06:23.000Z
2021-03-25T14:06:23.000Z
angalabiri/blog/migrations/0002_post_added_by.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
5
2021-09-08T03:08:46.000Z
2022-03-12T00:56:35.000Z
angalabiri/blog/migrations/0002_post_added_by.py
me-edavids/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-20 23:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AddField( model_name='post', name='added_by', field=...
22.052632
99
0.603819
08b9ec531493da0dc1579e811ccf66dacff4b021
10,577
py
Python
test/language/union_types/python/SimpleUnionTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
2
2019-02-06T17:50:24.000Z
2019-11-20T16:51:34.000Z
test/language/union_types/python/SimpleUnionTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
1
2019-11-25T16:25:51.000Z
2019-11-25T18:09:39.000Z
test/language/union_types/python/SimpleUnionTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
null
null
null
import unittest import zserio from testutils import getZserioApi class SimpleUnionTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "union_types.zs").simple_union def testEmptyConstructor(self): simpleUnion = self.api.SimpleUnion() self.as...
46.187773
112
0.724213
08ba1f323689de7ef5f2838cc7f9825ae7898c50
32,049
py
Python
pysces/PyscesJWSParse.py
bgoli/pysces
94e4734824e8f0eb9cfa9489e853afd4c9a37d23
[ "BSD-3-Clause" ]
null
null
null
pysces/PyscesJWSParse.py
bgoli/pysces
94e4734824e8f0eb9cfa9489e853afd4c9a37d23
[ "BSD-3-Clause" ]
null
null
null
pysces/PyscesJWSParse.py
bgoli/pysces
94e4734824e8f0eb9cfa9489e853afd4c9a37d23
[ "BSD-3-Clause" ]
null
null
null
""" PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net) Copyright (C) 2004-2020 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved, Brett G. Olivier (bgoli@users.sourceforge.net) Triple-J Group for Molecular Cell Physiology Stellenbosch University, South Africa. Permission to us...
35.929372
168
0.476208
08ba216080b5d4da6aae3b5e27db5287e496be29
11,856
py
Python
twitter_fetcher.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
null
null
null
twitter_fetcher.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
3
2015-02-15T18:31:10.000Z
2015-02-22T19:56:05.000Z
twitter_fetcher.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2014 Martin Cochran # # 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 la...
32.217391
94
0.67527
08ba219b646637b320c9700c730c2ee93e92df03
5,799
py
Python
tools/dataset splitting/k_gloss_splitting.py
simonefinelli/ASL-Real-time-Recognition
3576051d3aa8ca3935ee5aeb3275ec5dec711821
[ "MIT" ]
6
2021-01-11T11:32:27.000Z
2022-03-10T00:41:26.000Z
tools/dataset splitting/k_gloss_splitting.py
simonefinelli/ASL-Real-time-Recognition
3576051d3aa8ca3935ee5aeb3275ec5dec711821
[ "MIT" ]
1
2022-03-09T05:57:29.000Z
2022-03-09T05:57:29.000Z
tools/dataset splitting/k_gloss_splitting.py
simonefinelli/ASL-Real-time-Recognition
3576051d3aa8ca3935ee5aeb3275ec5dec711821
[ "MIT" ]
1
2021-08-17T13:45:00.000Z
2021-08-17T13:45:00.000Z
""" The script allows to divide the WLASL dataset into sub-datasets. The division is made according to the order indicated in the JSON file. This file is made available by the authors of WLASL dataset. Usage: python k_gloss_splitting.py param1 param2 - param1: path to the full dataset (e.g. ./WLASL_full/) - param2: ...
31.862637
77
0.650802
08ba2da3fb0edf58fe447c165413c098d0dc260e
13,529
py
Python
river/facto/fm.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/facto/fm.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/facto/fm.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
import collections import functools import itertools import typing import numpy as np from river import base, optim, utils from .base import BaseFM __all__ = ["FMClassifier", "FMRegressor"] class FM(BaseFM): """Factorization machine base class.""" def __init__( self, n_factors, we...
35.602632
300
0.611945
08ba52d714d6ddf1314c8da379a012b7f7b570c9
1,985
py
Python
advent_code/day_09.py
southlandp/advent_of_code_2021
3075626741a286eef15c3b9feeb074dcbbe9452f
[ "MIT" ]
null
null
null
advent_code/day_09.py
southlandp/advent_of_code_2021
3075626741a286eef15c3b9feeb074dcbbe9452f
[ "MIT" ]
null
null
null
advent_code/day_09.py
southlandp/advent_of_code_2021
3075626741a286eef15c3b9feeb074dcbbe9452f
[ "MIT" ]
null
null
null
""" .. codeauthor: Peter Southland code for advent of code day 9 Day 9: Smoke Basin https://adventofcode.com/2021/day/9 """ from advent_code.common import functions DAY = '09' class LavaBasin: """ takes vent data and creates map :ivar raw_data: raw puzzle data :ivar crabs: current horizontal distan...
30.075758
98
0.549118
08ba558893839d07ffbcb39159f8bff12fcd7f89
2,320
py
Python
photorename/photorename.py
LehmRob/photorename
b499b08f225264e5c7be3b51988d8e8fcbeb088f
[ "MIT" ]
null
null
null
photorename/photorename.py
LehmRob/photorename
b499b08f225264e5c7be3b51988d8e8fcbeb088f
[ "MIT" ]
null
null
null
photorename/photorename.py
LehmRob/photorename
b499b08f225264e5c7be3b51988d8e8fcbeb088f
[ "MIT" ]
null
null
null
from pathlib import Path, PurePath from typing import List from exif import Image from shutil import copy2 class Photo(): def __init__(self, path: Path, suffix: str) -> None: with open(path, 'rb') as f: self.image = Image(f) self.path = path self.suffix = suffix def __r...
32.222222
104
0.599138
08ba5e242b21c4a8bd8cf39c2a777604d0a144da
1,520
py
Python
tests/test_version.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
tests/test_version.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
tests/test_version.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2022 Reveal Energy Services, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
34.545455
119
0.670395
08ba60fa30eec1d40f9d96f6439a541e73e9c79c
13,892
py
Python
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/5_filtered/train.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/5_filtered/train.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/5_filtered/train.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import os, sys #os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="0" import numpy as np import pandas as pd import matplotlib.pyplot as plt import skimage.io from skimage.transform import resize from imgaug import augmenters as iaa from tqdm import tqdm import PIL from PIL import Image...
33.474699
120
0.664987
08ba70ca5477157ce2c50883cfcb95718492e96a
9,392
py
Python
mezzanine_smartling/models.py
Appdynamics/mezzanine-smartling
76ca1dd929ff79e6c766eb46237edc6ab6d38a46
[ "Apache-2.0" ]
3
2015-10-09T01:12:27.000Z
2015-10-10T09:41:56.000Z
mezzanine_smartling/models.py
Appdynamics/mezzanine-smartling
76ca1dd929ff79e6c766eb46237edc6ab6d38a46
[ "Apache-2.0" ]
null
null
null
mezzanine_smartling/models.py
Appdynamics/mezzanine-smartling
76ca1dd929ff79e6c766eb46237edc6ab6d38a46
[ "Apache-2.0" ]
2
2018-10-14T10:32:00.000Z
2019-08-22T06:07:28.000Z
import os import re import datetime import json import jsonfield import shutil import logging import importlib import settings from collections import OrderedDict from tempfile import mkdtemp from django.db import models from django.db.models.base import ModelBase from django.db.models.fields import DateTimeField, Date...
39.628692
141
0.620635
08ba93e06e682aca95d171ec914a18f0c8b47cfd
1,661
py
Python
mininet/mininet/clickgui.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2016-11-16T16:26:16.000Z
2021-04-26T17:20:28.000Z
mininet/mininet/clickgui.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
3
2017-04-20T11:29:17.000Z
2017-11-06T17:12:12.000Z
mininet/mininet/clickgui.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2017-03-27T13:58:52.000Z
2020-06-24T22:42:51.000Z
""" Click GUI creation (cleanup is the same as for xterms). Utility functions to run a click gui (connected via socat(1)) on each host. Requires socat(1) and clicky. """ from pkg_resources import resource_filename from term import * from log import error from util import quietRun, errRun def defaultCcssFile(): r...
31.942308
75
0.636364
08baa499d2d85f4ff92ac20b98cb732f6141a3e3
2,255
py
Python
crawler/college_confidential/request_tool/get_by_get.py
Chit-Chaat/Collegiate_Explorer_APP
f30171d01fec62a836332b5508374144fbb487c7
[ "MIT" ]
3
2021-05-24T23:06:40.000Z
2021-11-08T10:32:42.000Z
crawler/college_confidential/request_tool/get_by_get.py
Chit-Chaat/Collegiate_Explorer_APP
f30171d01fec62a836332b5508374144fbb487c7
[ "MIT" ]
4
2020-10-12T03:00:43.000Z
2020-11-17T01:47:56.000Z
crawler/college_confidential/request_tool/get_by_get.py
Chit-Chaat/Collegiate_Explorer_APP
f30171d01fec62a836332b5508374144fbb487c7
[ "MIT" ]
2
2021-03-01T15:30:26.000Z
2022-01-13T21:30:20.000Z
__author__ = 'Aaron Yang' __email__ = 'byang971@usc.edu' __date__ = '10/3/2020 8:27 PM' import json import os import time import requests import ujson headers = { "accept": "application/json, text/plain, */*", "accept-encoding": "gzip, deflate, br", "accept-language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7...
35.234375
135
0.629712
08bab2ee2e93f8a189f3b482afad648653d46284
21,697
py
Python
tests/test_game_state.py
devdo-eu/zombreak
05958a7e3980de1933eebda8645dda2db3d0da71
[ "MIT" ]
null
null
null
tests/test_game_state.py
devdo-eu/zombreak
05958a7e3980de1933eebda8645dda2db3d0da71
[ "MIT" ]
1
2021-04-01T06:18:33.000Z
2021-04-01T06:18:33.000Z
tests/test_game_state.py
devdo-eu/zombreak
05958a7e3980de1933eebda8645dda2db3d0da71
[ "MIT" ]
null
null
null
from logic.game_state import GameState from logic.city_card import CityCard from player.player_shelter import PlayerShelter from enums.zombie import ZombieType from enums.supply import Supply from tests.common import fast_zombie, zombie, big_zombie, helper_factory, dumper_factory import tests.common import pytest def...
34.770833
105
0.689035
08bac73f0e1198ab3547e2eebafd0f12375c2c46
109
py
Python
taro/err.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
null
null
null
taro/err.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
26
2021-04-05T12:32:21.000Z
2022-03-22T12:53:44.000Z
taro/err.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
1
2021-04-16T21:04:53.000Z
2021-04-16T21:04:53.000Z
class IllegalStateError(Exception): def __init__(self, message: str): super().__init__(message)
21.8
37
0.697248
08bad1b4612f5b64b65b98659f4b81afe1d1a582
2,252
py
Python
CHAPTER 10 (maps, hash tables and skip lists)/skip_list_class.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 10 (maps, hash tables and skip lists)/skip_list_class.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 10 (maps, hash tables and skip lists)/skip_list_class.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
from random import randint, seed class SkipList: class Node: __slot__ = "elem","next" def __int__(self,height=0,elem=None): self.elem = elem self.next = [None]*height def __init__(self): self.head = SkipList.Node() self.len = 0 self.maxHeigh...
28.506329
62
0.493783
08bafe21f9bdcfb73f970c1f0a1b366260f2cde8
24,135
py
Python
lib/datasets/voc_eval.py
miyamotost/hand_object_detector
34c8c6ad53306d4a12c12857e71bcd73bd6a68bf
[ "MIT" ]
130
2020-06-12T00:44:32.000Z
2022-03-29T18:22:54.000Z
lib/datasets/voc_eval.py
miyamotost/hand_object_detector
34c8c6ad53306d4a12c12857e71bcd73bd6a68bf
[ "MIT" ]
16
2020-06-26T09:27:32.000Z
2022-02-12T02:57:06.000Z
lib/datasets/voc_eval.py
miyamotost/hand_object_detector
34c8c6ad53306d4a12c12857e71bcd73bd6a68bf
[ "MIT" ]
40
2020-06-12T13:38:19.000Z
2022-03-13T08:32:31.000Z
# -------------------------------------------------------- # Fast/er R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Bharath Hariharan # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ import pr...
34.28267
206
0.60261
08bb33649a637cf963c7340a784d71a3bbace921
4,239
py
Python
model/graph_hg.py
chaneyddtt/Coarse-to-fine-3D-Animal
b3f9b1031b5761838c94ca091095636101747fd9
[ "MIT" ]
11
2021-11-17T03:11:21.000Z
2022-03-23T06:38:19.000Z
model/graph_hg.py
chaneyddtt/Coarse-to-fine-3D-Animal
b3f9b1031b5761838c94ca091095636101747fd9
[ "MIT" ]
3
2021-12-07T07:42:33.000Z
2022-01-07T11:41:17.000Z
model/graph_hg.py
chaneyddtt/Coarse-to-fine-3D-Animal
b3f9b1031b5761838c94ca091095636101747fd9
[ "MIT" ]
9
2021-11-26T08:57:19.000Z
2022-03-22T10:29:19.000Z
""" This file contains the Definition of GraphCNN GraphCNN includes ResNet50 as a submodule """ from __future__ import division import torch import torch.nn as nn from model.networks.graph_layers import GraphResBlock, GraphLinear from smal.mesh import Mesh from smal.smal_torch import SMAL # encoder-decoder structure...
44.15625
115
0.592357
08bb3e679b81c125bc88a44cee3ba2b995fbeb78
9,040
py
Python
homeassistant/components/auth/__init__.py
Natrinicle/home-assistant
7bb53449428b0787cca1d0c986c93a458401e6fb
[ "Apache-2.0" ]
null
null
null
homeassistant/components/auth/__init__.py
Natrinicle/home-assistant
7bb53449428b0787cca1d0c986c93a458401e6fb
[ "Apache-2.0" ]
null
null
null
homeassistant/components/auth/__init__.py
Natrinicle/home-assistant
7bb53449428b0787cca1d0c986c93a458401e6fb
[ "Apache-2.0" ]
null
null
null
"""Component to allow users to login and get tokens. # POST /auth/token This is an OAuth2 endpoint for granting tokens. We currently support the grant types "authorization_code" and "refresh_token". Because we follow the OAuth2 spec, data should be send in formatted as x-www-form-urlencoded. Examples will be in JSON ...
30.43771
79
0.645243
08bb5e781ad2b07127f4a2113bdf55a443c4ae11
2,070
py
Python
notifications/admin.py
aaronc-bixly/notifications
c93886397b98d832b85cbb442e19201a0889ba67
[ "MIT" ]
1
2015-08-03T07:40:34.000Z
2015-08-03T07:40:34.000Z
notifications/admin.py
aaronc-bixly/notifications
c93886397b98d832b85cbb442e19201a0889ba67
[ "MIT" ]
null
null
null
notifications/admin.py
aaronc-bixly/notifications
c93886397b98d832b85cbb442e19201a0889ba67
[ "MIT" ]
null
null
null
from django.contrib import admin from django import forms from django.forms import ValidationError from notifications.models import NoticeType, NoticeQueueBatch, NoticeSetting, NoticeHistory, DigestSubscription class NoticeHistoryAdmin(admin.ModelAdmin): readonly_fields = ["notice_type", "recipient", "sender", "...
38.333333
119
0.732367
08bb5e788697c7b8e358900c537619fe3d7ec39c
3,601
py
Python
platformio/pio_bridge.py
R4ddd/Deviot
461192324830ee8b1144e2463fb7a57c81b8e836
[ "Apache-2.0" ]
null
null
null
platformio/pio_bridge.py
R4ddd/Deviot
461192324830ee8b1144e2463fb7a57c81b8e836
[ "Apache-2.0" ]
null
null
null
platformio/pio_bridge.py
R4ddd/Deviot
461192324830ee8b1144e2463fb7a57c81b8e836
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import division from __future__ import unicode_literals import os from glob import glob from ..libraries import paths from ..libraries.file import File from ..libraries.tools imp...
28.808
72
0.618162
08bb66c209b0eb5b7938a2d151450715aeac19ca
1,637
py
Python
src/microengine/clamav.py
polyswarm/microengine
3e8a2263ef7320e7c603177ddb9ef64fd659c324
[ "MIT" ]
3
2018-08-20T19:33:30.000Z
2018-09-15T00:13:56.000Z
src/microengine/clamav.py
polyswarm/microengine
3e8a2263ef7320e7c603177ddb9ef64fd659c324
[ "MIT" ]
10
2018-08-27T23:39:21.000Z
2018-09-24T21:12:19.000Z
src/microengine/clamav.py
polyswarm/microengine
3e8a2263ef7320e7c603177ddb9ef64fd659c324
[ "MIT" ]
null
null
null
import clamd import os from io import BytesIO from microengine import Microengine CLAMD_HOST = os.getenv('CLAMD_HOST', 'localhost') CLAMD_PORT = int(os.getenv('CLAMD_PORT', '3310')) CLAMD_TIMEOUT = 30.0 class ClamavMicroengine(Microengine): """Microengine which scans samples through clamd""" def __init__(se...
37.204545
100
0.653024
08bbccf8c71d3601aecc002120f182148f600cf3
5,336
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
38.948905
133
0.659483
08bbd0a2a708a5a9fe667382c8657ed458784f43
3,447
py
Python
contest/base_station_out_service_prediction/lgbm_main.py
shayxu-ai/A-Repository-for-Machine-Learning
4b4cea15bb005d1c58f4395fde97cadf44fb0186
[ "Apache-2.0" ]
1
2020-02-04T03:55:07.000Z
2020-02-04T03:55:07.000Z
contest/base_station_out_service_prediction/lgbm_main.py
NO-PASSWORD-HERE/A-Repository-for-Machine-Learning
4b4cea15bb005d1c58f4395fde97cadf44fb0186
[ "Apache-2.0" ]
null
null
null
contest/base_station_out_service_prediction/lgbm_main.py
NO-PASSWORD-HERE/A-Repository-for-Machine-Learning
4b4cea15bb005d1c58f4395fde97cadf44fb0186
[ "Apache-2.0" ]
null
null
null
import lightgbm as lgb from sklearn import metrics from sklearn.model_selection import train_test_split import pandas as pd pd.set_option('display.max_rows', None) data_path = 'train_data.csv' train_data = pd.read_csv(data_path).dropna(axis=0) train_data.reset_index(drop=True, inplace=True) # print(len(train_data)) #...
32.828571
138
0.717435
08bbf4b4936f8b81e57b71dfcf95fd6c033a6129
161
py
Python
TgBot/handlers/users/echo.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
null
null
null
TgBot/handlers/users/echo.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
21
2019-10-23T21:16:18.000Z
2021-08-02T21:43:46.000Z
TgBot/handlers/users/echo.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
1
2019-10-25T23:01:25.000Z
2019-10-25T23:01:25.000Z
from aiogram import types from TgBot.loader import dp @dp.message_handler() async def bot_echo(message: types.Message): await message.answer(message.text)
20.125
43
0.782609
08bc3046cd074a74923ad81a8f139d83f5b7deea
23,230
py
Python
lib/RRoller/RRollerServer.py
sychan/RRoller
dcd83d25dc51610c49f432e43849d4456f03e4b6
[ "MIT" ]
null
null
null
lib/RRoller/RRollerServer.py
sychan/RRoller
dcd83d25dc51610c49f432e43849d4456f03e4b6
[ "MIT" ]
null
null
null
lib/RRoller/RRollerServer.py
sychan/RRoller
dcd83d25dc51610c49f432e43849d4456f03e4b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from wsgiref.simple_server import make_server import sys import json import traceback import datetime from multiprocessing import Process from getopt import getopt, GetoptError from jsonrpcbase import JSONRPCService, InvalidParamsError, KeywordError,\ JSONRPCError, Inva...
36.931638
151
0.542058
08bc8cca27322e92dbc6e023ff7027068e23186f
1,187
py
Python
src/proposals/forms.py
ccwang002/dinglab_logo_proposal
31e712914581b60b9d30da12cdec18a09b1a6829
[ "MIT" ]
null
null
null
src/proposals/forms.py
ccwang002/dinglab_logo_proposal
31e712914581b60b9d30da12cdec18a09b1a6829
[ "MIT" ]
null
null
null
src/proposals/forms.py
ccwang002/dinglab_logo_proposal
31e712914581b60b9d30da12cdec18a09b1a6829
[ "MIT" ]
null
null
null
from crispy_forms.helper import FormHelper from crispy_forms.layout import Field, Fieldset, Layout, Submit from crispy_forms.bootstrap import FormActions from django import forms from django.utils.functional import cached_property from django.utils.translation import ugettext_lazy as _ from core.forms import RequestUs...
28.261905
74
0.609941
08bcace479835889fe4018fff295dc942977fafb
2,862
py
Python
leetcode_python/Heap/exam-room.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Heap/exam-room.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Heap/exam-room.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # V1 # http://bookshadow.com/weblog/2018/06/17/leetcode-exam-room/ # https://blog.csdn.net/fuxuemingzhu/article/details/83141523 # IDEA : bisect.insort : https://www.cnblogs.com/skydesign/archive/2011/09/02/2163592.html class ExamRoom(object): def __init__(self, N): """ :type N: int ...
29.8125
91
0.510832
08bce2c2812e4f3ff24fcfc17874636e1ce56e50
6,832
py
Python
art/attacks/fast_gradient_unittest.py
yalechang/adversarial-robustness-toolbox
df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57
[ "MIT" ]
1
2022-03-02T19:05:12.000Z
2022-03-02T19:05:12.000Z
art/attacks/fast_gradient_unittest.py
yalechang/adversarial-robustness-toolbox
df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57
[ "MIT" ]
null
null
null
art/attacks/fast_gradient_unittest.py
yalechang/adversarial-robustness-toolbox
df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57
[ "MIT" ]
null
null
null
# MIT License # # Copyright (C) IBM Corporation 2018 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
42.968553
120
0.644906
08bd15a6f729f223f46170b6e8cc90bd1c24ac94
20,917
py
Python
database/postprocess.py
cozy9/Metascape
261901657bef5e1060f1ae86a2a3913d1e4c87c4
[ "Apache-2.0" ]
2
2021-08-01T19:33:44.000Z
2022-02-14T16:37:34.000Z
database/postprocess.py
data2code/Metascape
261901657bef5e1060f1ae86a2a3913d1e4c87c4
[ "Apache-2.0" ]
null
null
null
database/postprocess.py
data2code/Metascape
261901657bef5e1060f1ae86a2a3913d1e4c87c4
[ "Apache-2.0" ]
1
2019-05-22T12:44:34.000Z
2019-05-22T12:44:34.000Z
#!/usr/bin/env python #from .core import * import numpy as np import pandas as pd import shutil import urllib import urlparse from os.path import splitext, basename import os from os import sys, path from pprint import pprint import StringIO import db import itertools from core import * import util from IPython.core.de...
43.396266
208
0.544724
08bd1f19f1a514edb928f73f8286ede02720c86e
5,636
py
Python
tests/apps/blazewebtestapp/components/tests/views.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
null
null
null
tests/apps/blazewebtestapp/components/tests/views.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
6
2016-11-01T18:42:34.000Z
2020-11-16T16:52:14.000Z
tests/apps/blazewebtestapp/components/tests/views.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
1
2020-01-22T18:20:46.000Z
2020-01-22T18:20:46.000Z
from blazeweb.globals import rg from blazeweb.content import getcontent from blazeweb.utils import redirect from blazeweb.views import View, forward, jsonify from werkzeug.exceptions import ServiceUnavailable from formencode.validators import UnicodeString, Int class Rvb(View): def default(self): # this ...
22.544
79
0.635735
08bd3f3dfa3180b1c9f0400dd86a382a7c2cc8d5
2,795
py
Python
codes/3 title match/title_match_all/datamanage.py
QiyuanMa/trailer_research
5276e0f422aeb9ef6bccb4ffd348a600dacc2f75
[ "MIT" ]
null
null
null
codes/3 title match/title_match_all/datamanage.py
QiyuanMa/trailer_research
5276e0f422aeb9ef6bccb4ffd348a600dacc2f75
[ "MIT" ]
null
null
null
codes/3 title match/title_match_all/datamanage.py
QiyuanMa/trailer_research
5276e0f422aeb9ef6bccb4ffd348a600dacc2f75
[ "MIT" ]
1
2020-12-14T04:56:43.000Z
2020-12-14T04:56:43.000Z
# Mysql Database,PORT:3306,Assure the client is activated # install pymysql:pip install pymysql(or File->Setting->Project Interpreter->add...) import pymysql import threading from settings import MYSQL_HOST ,MYSQL_DB ,MYSQL_PWD ,MYSQL_USER class DataManager(): # The singleton mode ensures that an object is ca...
45.819672
116
0.628265
08bd54abc65ae54f689f63f6896f0b08c953cf9f
14,333
py
Python
tests/eukaryote/test_rna_degradation.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
6
2018-12-24T16:20:11.000Z
2022-01-26T23:38:25.000Z
tests/eukaryote/test_rna_degradation.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
15
2018-08-08T20:34:40.000Z
2021-10-31T20:08:40.000Z
tests/eukaryote/test_rna_degradation.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
2
2019-04-05T16:11:57.000Z
2020-04-29T14:14:30.000Z
""" Tests of rna degradation submodel generation :Author: Yin Hoon Chew <yinhoon.chew@mssm.edu> :Date: 2019-06-11 :Copyright: 2019, Karr Lab :License: MIT """ from wc_model_gen.eukaryote import rna_degradation from wc_onto import onto as wc_ontology from wc_utils.util.units import unit_registry import wc_model_gen.glo...
63.420354
148
0.658829
08bd5f179bb81cd4a71e99fd0cda3b7dad5b47bb
12,191
py
Python
pylinkchecker/bs4/builder/__init__.py
randomtask1155/pylinkchecker
42645112edcf5d9af77c670415c5f69f04b6b8aa
[ "BSD-3-Clause" ]
27
2015-04-27T15:52:51.000Z
2020-04-20T07:19:21.000Z
pylinkchecker/bs4/builder/__init__.py
randomtask1155/pylinkchecker
42645112edcf5d9af77c670415c5f69f04b6b8aa
[ "BSD-3-Clause" ]
6
2015-06-09T20:11:50.000Z
2017-06-23T07:40:05.000Z
pylinkchecker/bs4/builder/__init__.py
randomtask1155/pylinkchecker
42645112edcf5d9af77c670415c5f69f04b6b8aa
[ "BSD-3-Clause" ]
10
2015-04-17T19:47:40.000Z
2020-03-01T20:01:03.000Z
import sys if sys.version_info[0] < 3: from collections import defaultdict import itertools import sys from pylinkchecker.bs4.element import ( CharsetMetaAttributeValue, ContentMetaAttributeValue, whitespace_re ) __all__ = [ 'HTMLTreeBuilder', 'SAXT...
37.978193
84
0.564023
08bd6ba9e16bfe7bb8ddf81c9d1d076fd347bbde
1,391
py
Python
savu/test/travis/plugin_tests/reconstruction_tests/tomobar_recon2d_cpu_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
savu/test/travis/plugin_tests/reconstruction_tests/tomobar_recon2d_cpu_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
savu/test/travis/plugin_tests/reconstruction_tests/tomobar_recon2d_cpu_test.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
31.613636
86
0.739756
08bd7b1bfc95b619290b2cc376a2d83e8cb78160
26,465
py
Python
args.py
Khoale1096/stupidNMT
894536c16dc7ff958aa5571828a89ecabfcb72d7
[ "BSD-3-Clause" ]
null
null
null
args.py
Khoale1096/stupidNMT
894536c16dc7ff958aa5571828a89ecabfcb72d7
[ "BSD-3-Clause" ]
null
null
null
args.py
Khoale1096/stupidNMT
894536c16dc7ff958aa5571828a89ecabfcb72d7
[ "BSD-3-Clause" ]
null
null
null
''' All the argument parsing code ''' import argparse import json import os import time from types import SimpleNamespace from comet_ml import Experiment, ExistingExperiment import torch from data import DATASETS from models import MODELS from actions import Trainer, Evaluator, Translator, Pass from utils import get_...
30.108077
119
0.607217
08bd81c03741bc743604e2688e49ccee5c456713
14,847
py
Python
ansible/library/interface_facts.py
pra-moh/sonic-mgmt
26285708eab7428c2b6250be03483d63f94cfb5c
[ "Apache-2.0" ]
null
null
null
ansible/library/interface_facts.py
pra-moh/sonic-mgmt
26285708eab7428c2b6250be03483d63f94cfb5c
[ "Apache-2.0" ]
18
2019-01-31T06:54:39.000Z
2020-04-01T03:50:14.000Z
ansible/library/interface_facts.py
wangxin/sonic-mgmt
18dce2d5ccf93b629b9e463ba183f3a13e22b07a
[ "Apache-2.0" ]
1
2020-10-27T13:15:51.000Z
2020-10-27T13:15:51.000Z
#!/usr/bin/python import os import sys import stat import array import errno import fcntl import fnmatch import platform import re import signal import datetime import getpass import pwd import ConfigParser import StringIO import json from ansible.module_utils.basic import * from collections import defaultdict from so...
42.178977
129
0.548596
08bda5397b66b0ccb1a0f59569e7dd09f5c716a8
273
py
Python
src/main.py
nayeonshin/py-job-scraper
cfc4cd29944118ae345681f1c11717a808a7e948
[ "MIT" ]
null
null
null
src/main.py
nayeonshin/py-job-scraper
cfc4cd29944118ae345681f1c11717a808a7e948
[ "MIT" ]
null
null
null
src/main.py
nayeonshin/py-job-scraper
cfc4cd29944118ae345681f1c11717a808a7e948
[ "MIT" ]
null
null
null
from indeed import get_jobs as get_indeed_jobs from save import * from stackoverflow import get_jobs as get_stackoverflow_jobs indeed_jobs = get_indeed_jobs() stackoverflow_jobs = get_stackoverflow_jobs() jobs = indeed_jobs + stackoverflow_jobs save_to_file(jobs)
30.333333
61
0.824176
08bdbcd9d3a56435c26efa84f5ee72b43550de3b
18,853
py
Python
src/buildstream/_scheduler/jobs/job.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/_scheduler/jobs/job.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/_scheduler/jobs/job.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2018 Codethink Limited # Copyright (C) 2019 Bloomberg Finance LP # # 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 # #...
36.18618
117
0.607171
08bdbeb2a4c0a055119f02a2099ac10520f98a09
113
py
Python
statsmodels/tools/__init__.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tools/__init__.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tools/__init__.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
from .tools import add_constant, categorical from statsmodels import NoseWrapper as Tester test = Tester().test
22.6
45
0.814159
08bddcfa351eb450c708d68e46c3a7fd8df42fcd
4,618
py
Python
mokas_bubbles.py
gdurin/mokas
57893d0191c988b241dcf5701d4213a3cbcf587a
[ "CC-BY-3.0" ]
null
null
null
mokas_bubbles.py
gdurin/mokas
57893d0191c988b241dcf5701d4213a3cbcf587a
[ "CC-BY-3.0" ]
null
null
null
mokas_bubbles.py
gdurin/mokas
57893d0191c988b241dcf5701d4213a3cbcf587a
[ "CC-BY-3.0" ]
null
null
null
import sys, os import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from mokas_stackimages import StackImages import mahotas from skimage import measure import getLogDistributions as gLD import mokas_events as mke import mokas_cluster_methods as mcm import mokas_cluster_distributions as mcd impor...
34.984848
111
0.626895
08be02b5dec683110b78a1197797e11b1f7dd2aa
7,237
py
Python
states/game_state_online.py
Napam/MayhemPacman
cbcb3b4a2c83ed920e32748a8aaadb29b19ab5bf
[ "MIT" ]
1
2021-04-07T12:54:13.000Z
2021-04-07T12:54:13.000Z
states/game_state_online.py
Napam/MayhemPacman
cbcb3b4a2c83ed920e32748a8aaadb29b19ab5bf
[ "MIT" ]
null
null
null
states/game_state_online.py
Napam/MayhemPacman
cbcb3b4a2c83ed920e32748a8aaadb29b19ab5bf
[ "MIT" ]
null
null
null
''' Module containing the online game class called mayhem Written by Naphat Amundsen ''' import pygame as pg import numpy as np import pickle import time import itertools from multiprocessing import Pipe, Process from importlib import reload import user_settings as cng from states import state_config a...
32.022124
127
0.59334
08be121d918534a0e9dd1bc04a94f9b080caae7d
6,610
py
Python
cal_map/test_sort.py
shijack/feature_extract
2c45750ea42a30a1f0b5cbe305edc4c8ab0461d7
[ "MIT" ]
1
2019-12-12T14:24:47.000Z
2019-12-12T14:24:47.000Z
cal_map/test_sort.py
shijack/feature_extract
2c45750ea42a30a1f0b5cbe305edc4c8ab0461d7
[ "MIT" ]
null
null
null
cal_map/test_sort.py
shijack/feature_extract
2c45750ea42a30a1f0b5cbe305edc4c8ab0461d7
[ "MIT" ]
null
null
null
# coding=utf-8 ''' ATTENTION: this script useless now @author shijack 2018年09月04日18:32:38 ''' import os import numpy as np def get_rannk_list(rootdir): file_list = os.listdir(rootdir) # 列出该文件夹下所有的目录与文件 for i in range(0, len(file_list)): if "_" not in file_list[i]: # 不处理带_的文件 path = os....
35.923913
113
0.558245
08be1c9b850d5f5460277d611b780eb4e47bad42
4,109
py
Python
tests/st/ops/ascend/vector/test_concat_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/vector/test_concat_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/vector/test_concat_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
52.679487
132
0.523242
08be57ef74c255d1ba7d8f11afa50a0132d0f1e6
1,967
py
Python
detection/YOLO_pytorch/train.py
lhq1208/object_detection
ab3265e0f09b78415299c1a0b38254176a0565ed
[ "Apache-2.0" ]
null
null
null
detection/YOLO_pytorch/train.py
lhq1208/object_detection
ab3265e0f09b78415299c1a0b38254176a0565ed
[ "Apache-2.0" ]
null
null
null
detection/YOLO_pytorch/train.py
lhq1208/object_detection
ab3265e0f09b78415299c1a0b38254176a0565ed
[ "Apache-2.0" ]
null
null
null
import torch from YOLO import config as cfg from torch import optim from torch.autograd import Variable from YOLO_pytorch import yolo_net from YOLO.pascal_voc import * class Solver(): def __init__(self, net, data, use_gpu=True): self.net = net self.data = data self.max_iter = cfg.MAX_ITER ...
37.826923
97
0.647687
08be5fee26c63e368408463112e68890931f5bce
53,126
py
Python
test/unit/common/middleware/s3api/test_obj.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
test/unit/common/middleware/s3api/test_obj.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
test/unit/common/middleware/s3api/test_obj.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 OpenStack Foundation # # 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 ...
47.055802
79
0.580883
08bebe261b1b23e94853b0cd9d5263d3aa43df10
405
py
Python
fnat_testset/testcase/multimedia/audio_playback/audio_playback.py
lizhouw-netscout/fnat
684958773379a9205857f1932de443ed0c4334a0
[ "Apache-2.0" ]
null
null
null
fnat_testset/testcase/multimedia/audio_playback/audio_playback.py
lizhouw-netscout/fnat
684958773379a9205857f1932de443ed0c4334a0
[ "Apache-2.0" ]
null
null
null
fnat_testset/testcase/multimedia/audio_playback/audio_playback.py
lizhouw-netscout/fnat
684958773379a9205857f1932de443ed0c4334a0
[ "Apache-2.0" ]
null
null
null
class audio_playback: def setUp(self): print "Method setUp in class testsubclass_1" def tearDown(self): print "Method tearDown in class testsubclass_1" def music_playback(self): print "Method testmethod_1 in class testsubclass_1" assert True def music_playback_pause(se...
27
59
0.688889
08becd0d9f7117c846432bb920456273c8982b49
3,548
py
Python
configs/cspnet/yolo_cspr50_pafpn_spp_1x_coco.py
ZJU-lishuang/mmdetection
3d8d52e3d9d1fcb7357caf6d1553e0c55761ae29
[ "Apache-2.0" ]
null
null
null
configs/cspnet/yolo_cspr50_pafpn_spp_1x_coco.py
ZJU-lishuang/mmdetection
3d8d52e3d9d1fcb7357caf6d1553e0c55761ae29
[ "Apache-2.0" ]
null
null
null
configs/cspnet/yolo_cspr50_pafpn_spp_1x_coco.py
ZJU-lishuang/mmdetection
3d8d52e3d9d1fcb7357caf6d1553e0c55761ae29
[ "Apache-2.0" ]
null
null
null
model = dict( type='YoloNet', pretrained=None, backbone=dict( type='CSPResNet', depth=50, num_stages=4, out_indices=(1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=True), norm_eval=True), neck=dict( type='PANETSPPNeck', ...
28.384
77
0.614994
08bed07b187803860c7d14c7c6669d5025ad8ec2
5,084
py
Python
dataset/human/collect_results.py
JerryLingjieMei/ADEPT-Dataset-Release
900d9d5c7e780a5daa06f0484d91539a4ca92ff8
[ "MIT" ]
14
2019-11-06T23:13:35.000Z
2021-02-04T17:28:31.000Z
dataset/human/collect_results.py
JerryLingjieMei/ADEPT-Dataset-Release
900d9d5c7e780a5daa06f0484d91539a4ca92ff8
[ "MIT" ]
null
null
null
dataset/human/collect_results.py
JerryLingjieMei/ADEPT-Dataset-Release
900d9d5c7e780a5daa06f0484d91539a4ca92ff8
[ "MIT" ]
5
2019-12-05T02:34:40.000Z
2020-10-14T02:33:32.000Z
import argparse import json import os import csv from collections import defaultdict from dataset.human.result_storage import ResultStorage, CASE_PAIRS, SHAPE_CATS, get_shapes_from_cat from utils.io import read_serialized from utils.constants import CONTENT_FOLDER _prefix = "| negative log likelihood: " _human_pairs...
47.514019
111
0.627262
08bed2c0138566261294ae928211e900909665db
1,247
py
Python
test/test_corpus.py
Stranger6667/hypothesis-graphql
f909fda1d92d2cd1c7957a7251409127701b494c
[ "MIT" ]
17
2020-04-14T13:46:50.000Z
2021-11-09T19:28:16.000Z
test/test_corpus.py
Stranger6667/hypothesis-graphql
f909fda1d92d2cd1c7957a7251409127701b494c
[ "MIT" ]
47
2020-04-10T14:19:34.000Z
2021-10-01T07:20:37.000Z
test/test_corpus.py
Stranger6667/hypothesis-graphql
f909fda1d92d2cd1c7957a7251409127701b494c
[ "MIT" ]
1
2020-08-30T12:59:12.000Z
2020-08-30T12:59:12.000Z
import json import pytest from hypothesis import HealthCheck, given, settings from hypothesis import strategies as st from hypothesis_graphql import strategies as gql_st with open("test/corpus-api-guru-catalog.json") as fd: schemas = json.load(fd) INVALID_SCHEMAS = { # Error: The directive '@deprecated' can...
25.44898
106
0.699278
08bed5549af0995c519910b41cb2a0d47fb00b37
6,565
py
Python
delfin/drivers/dell_emc/unity/alert_handler.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
null
null
null
delfin/drivers/dell_emc/unity/alert_handler.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
null
null
null
delfin/drivers/dell_emc/unity/alert_handler.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The SODA 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 writin...
46.232394
79
0.567098
08bedde6d4a30ea72645406d5040f9564f7a4be5
3,474
py
Python
plot_scripts/kmeans_cells_clustering.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
plot_scripts/kmeans_cells_clustering.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
plot_scripts/kmeans_cells_clustering.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
""" ======================================= Clustering cells using k-means ======================================= This script (adapted from the scikit-learn k-means document clustering example) is an attempt to cluster data points derived from cell images by phenotype. Two algorithms are demoed: ordinary k-means an...
33.403846
178
0.630109
08bf72bb1628c01dc027dabe39de9a67d7e7c439
8,292
py
Python
ibllib/pipes/local_server.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
38
2018-08-07T21:55:29.000Z
2022-03-21T14:49:03.000Z
ibllib/pipes/local_server.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
207
2018-07-25T15:10:48.000Z
2022-03-08T13:23:08.000Z
ibllib/pipes/local_server.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
35
2018-09-04T14:49:56.000Z
2022-01-06T21:17:51.000Z
import logging import time from datetime import datetime from pathlib import Path import pkg_resources import re import subprocess import sys import traceback from one.api import ONE from ibllib.io.extractors.base import get_pipeline, get_task_protocol, get_session_extractor_type from ibllib.pipes import tasks, train...
39.865385
118
0.638447
08bfb7d7c1b91ef245b64d4df1d5a6158d706478
2,943
py
Python
gammapy/estimators/tests/test_utils.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/estimators/tests/test_utils.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/estimators/tests/test_utils.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import pytest import numpy as np from numpy.testing import assert_allclose from gammapy.estimators.utils import find_peaks, resample_energy_edges from gammapy.maps import Map, MapAxis class TestFindPeaks: def test_simple(self): """Test a simp...
32.7
88
0.602107
08bfca6bbcdd44feb3b5807bc63488d1a0cb010a
1,806
py
Python
st2actions/tests/unit/test_async_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2actions/tests/unit/test_async_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2actions/tests/unit/test_async_runner.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
32.25
77
0.698782
08bfd3af8e945f79625320d0bf63f5454ba42876
4,994
py
Python
tests/models/validators/v1_3_3/jsd_f5a13ab24c5aaa91.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v1_3_3/jsd_f5a13ab24c5aaa91.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v1_3_3/jsd_f5a13ab24c5aaa91.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Get Notifications data model. Copyright (c) 2019 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including ...
28.214689
78
0.406288
08c01cff7fadf1dda47bc3449e1928e8a413d0df
398
py
Python
setup.py
L33Tech/prancer
baae7176303fc5bb0d7b714ad58067118919af10
[ "MIT" ]
null
null
null
setup.py
L33Tech/prancer
baae7176303fc5bb0d7b714ad58067118919af10
[ "MIT" ]
null
null
null
setup.py
L33Tech/prancer
baae7176303fc5bb0d7b714ad58067118919af10
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Setup file for prancer. Use setup.cfg to configure your project. """ import sys from pkg_resources import VersionConflict, require from setuptools import setup try: require('setuptools>=38.3') except VersionConflict: print("Error: version of setuptools is too old (<38.3)!"...
18.952381
61
0.688442
08c01e4ac78a0f836c86a1c79075133f9fed4f6e
12,459
py
Python
uppyyl_simulator/backend/models/graph/graph.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
2
2020-09-09T15:42:23.000Z
2020-11-04T17:50:57.000Z
uppyyl_simulator/backend/models/graph/graph.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
uppyyl_simulator/backend/models/graph/graph.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
"""A graph implementation.""" from collections import OrderedDict from uppyyl_simulator.backend.helper.helper import ( unique_id ) ######### # Graph # ######### class Graph: """A graph class.""" def __init__(self, name=None, id_=None): """Initializes Graph. Args: name: The ...
27.322368
95
0.553817
08c06b419ef068d7d7845a4aa36d336c928b1c8f
46
py
Python
obb_anns/__init__.py
jt658/obb_anns
c59e0caa5b91e51f54a053086dbd3053cf11ffe5
[ "BSD-3-Clause" ]
9
2020-03-25T10:51:27.000Z
2022-03-31T08:06:17.000Z
obb_anns/__init__.py
jt658/obb_anns
c59e0caa5b91e51f54a053086dbd3053cf11ffe5
[ "BSD-3-Clause" ]
3
2020-06-26T14:41:09.000Z
2021-05-26T16:02:39.000Z
obb_anns/__init__.py
jt658/obb_anns
c59e0caa5b91e51f54a053086dbd3053cf11ffe5
[ "BSD-3-Clause" ]
5
2020-05-26T17:34:19.000Z
2021-11-08T16:31:50.000Z
from .obb_anns import * __all__ = ['OBBAnns']
15.333333
23
0.695652
08c071f44813b54337eb5ee30263a5a766b9e28b
1,481
py
Python
goal_prox/envs/viz/push.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
4
2021-11-17T20:19:34.000Z
2022-03-31T04:21:26.000Z
goal_prox/envs/viz/push.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
goal_prox/envs/viz/push.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
import os from gym import utils #from gym.envs.robotics import fetch_env from goal_prox.envs.viz.base_fetch import FetchEnv # Ensure we get the path separator correct on windows #MODEL_XML_PATH = os.path.join('fetch', 'push.xml') MODEL_XML_PATH = '/home/aszot/p-goal-prox/goal_prox/envs/viz/viz_push.xml' class VizFe...
37.025
85
0.642809
08c0741ce0d8832f06416c8a44fc80232d17499c
1,155
py
Python
ignite/contrib/metrics/regression/median_absolute_error.py
VinhLoiIT/ignite
3b2b9655ea9f80ce49b8a9f1c2d72f80e2a95f56
[ "BSD-3-Clause" ]
1
2020-06-13T15:22:08.000Z
2020-06-13T15:22:08.000Z
ignite/contrib/metrics/regression/median_absolute_error.py
hefv57/ignite
a22a0f5e909ac70d2a1f76a60b6e84b2134f196c
[ "BSD-3-Clause" ]
null
null
null
ignite/contrib/metrics/regression/median_absolute_error.py
hefv57/ignite
a22a0f5e909ac70d2a1f76a60b6e84b2134f196c
[ "BSD-3-Clause" ]
1
2020-06-13T15:30:46.000Z
2020-06-13T15:30:46.000Z
import torch from ignite.contrib.metrics.regression._base import _BaseRegressionEpoch def median_absolute_error_compute_fn(y_pred, y): e = torch.abs(y.view_as(y_pred) - y_pred) return torch.median(e).item() class MedianAbsoluteError(_BaseRegressionEpoch): r""" Calculates the Median Absolute Error: ...
32.083333
113
0.692641
08c09e28a798b8852573c103ff9111c4c00d06e8
2,116
py
Python
alipay/aop/api/domain/AlipayCommerceYuntaskPublishModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceYuntaskPublishModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceYuntaskPublishModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceYuntaskPublishModel(object): def __init__(self): self._merchant_pid = None self._operate_user_id = None self._task_template_id = None @property def ...
29.802817
83
0.632325
08c09ec579ad2b7e264c4287731560d9a8d2e975
1,010
py
Python
tests/callback/RecurringCallbackUAT.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
6
2019-07-16T06:27:25.000Z
2021-03-04T14:24:05.000Z
tests/callback/RecurringCallbackUAT.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
5
2019-11-18T09:07:51.000Z
2021-02-12T13:59:55.000Z
tests/callback/RecurringCallbackUAT.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
5
2019-07-18T13:42:15.000Z
2021-11-18T12:40:32.000Z
# coding: utf-8 from __future__ import absolute_import import pytest from callback import read_file from cardpay import * from config import * logger = create_logger(__name__) client = ApiClient(baseUrl=CARDPAY_API_URL, terminal_code="", password="", callback_secret="pzQf529Wa0AV") def test_process_callback(): ...
25.25
106
0.666337
08c0a0df36cd684e4d2b3c15cef94121b280f20b
6,522
py
Python
nhps/functions/test.py
Anirudh-Murali/neural-hawkes-particle-smoothing
96b258838bdab33b781008daeedfa61dec0d553c
[ "BSD-3-Clause" ]
37
2019-05-14T04:42:40.000Z
2021-09-10T11:51:11.000Z
nhps/functions/test.py
wangjingbo1219/neural-hawkes-particle-smoothing
8f33c75038e739a2a0b61db854dd97d918ce2d19
[ "BSD-3-Clause" ]
5
2019-08-18T12:06:36.000Z
2021-09-21T22:00:29.000Z
nhps/functions/test.py
wangjingbo1219/neural-hawkes-particle-smoothing
8f33c75038e739a2a0b61db854dd97d918ce2d19
[ "BSD-3-Clause" ]
12
2019-08-11T22:41:55.000Z
2020-11-24T18:11:34.000Z
# -*- coding: utf-8 -*- # !/usr/bin/python """ Test models @author: hongyuan """ import pickle import os import argparse import json from nhps.io import processors from nhps.functions.test_helper import run_complete from mp_manager import Manager __author__ = 'Hongyuan Mei' def main(): parser = argparse.Argu...
34.507937
98
0.614382
08c0b2583e1123aafe69799554c3035ea4054df3
22,557
py
Python
FitPRFModel.py
daanvanes/pRF_attention_analysis
a1825eaa5290d08c8cafd0487427d62b1512d05c
[ "MIT" ]
null
null
null
FitPRFModel.py
daanvanes/pRF_attention_analysis
a1825eaa5290d08c8cafd0487427d62b1512d05c
[ "MIT" ]
null
null
null
FitPRFModel.py
daanvanes/pRF_attention_analysis
a1825eaa5290d08c8cafd0487427d62b1512d05c
[ "MIT" ]
1
2018-11-19T15:41:34.000Z
2018-11-19T15:41:34.000Z
# !/usr/bin/env python # encoding: utf-8 """ Session.py Created by Tomas HJ Knapen on 2009-11-26. Copyright (c) 2009 TK. All rights reserved. """ # import python packages: from __future__ import division from sklearn.linear_model import Ridge from IPython import embed as shell import numpy as np import pylab as pl fr...
55.834158
286
0.633462
08c0e4b1a24ff06b1927f74ae22be97bc5c81a4b
51
py
Python
Analysis/__init__.py
ahmadryan/TurbAn
b8866d103a2ca2f5fbad73bcd4416f19299f22b2
[ "BSD-2-Clause-Patent" ]
null
null
null
Analysis/__init__.py
ahmadryan/TurbAn
b8866d103a2ca2f5fbad73bcd4416f19299f22b2
[ "BSD-2-Clause-Patent" ]
null
null
null
Analysis/__init__.py
ahmadryan/TurbAn
b8866d103a2ca2f5fbad73bcd4416f19299f22b2
[ "BSD-2-Clause-Patent" ]
10
2019-03-22T15:30:12.000Z
2021-02-10T02:55:50.000Z
from . import Simulations from . import TimeSeries
17
25
0.803922