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
1a5a6089d7686453063ae3fedad58d5b5df5d669
3,291
py
Python
pysoa/common/serializer/base.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
91
2017-05-08T22:41:33.000Z
2022-02-09T11:37:07.000Z
pysoa/common/serializer/base.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
63
2017-06-14T20:08:49.000Z
2021-06-16T23:08:25.000Z
pysoa/common/serializer/base.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
26
2017-10-13T23:23:13.000Z
2022-01-11T16:58:17.000Z
from __future__ import ( absolute_import, unicode_literals, ) import abc from typing import ( Dict, FrozenSet, Type, ) import six __all__ = ( 'Serializer', ) class _SerializerMeta(abc.ABCMeta): _mime_type_to_serializer_map = {} # type: Dict[six.text_type, Type[Serializer]] _all_su...
32.264706
107
0.654208
1a5a70059ebfd6cdeee42852858f3e88d8edb484
1,035
py
Python
documentstore_migracao/main/__init__.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
null
null
null
documentstore_migracao/main/__init__.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
14
2019-03-13T12:19:12.000Z
2019-03-19T17:37:08.000Z
documentstore_migracao/main/__init__.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
3
2019-03-12T18:55:55.000Z
2019-03-20T18:38:02.000Z
""" module to methods to main """ import sys import logging from .migrate_isis import migrate_isis_parser from .migrate_articlemeta import migrate_articlemeta_parser from .tools import tools_parser logger = logging.getLogger(__name__) def main_migrate_articlemeta(): """ method main to script setup.py """ ...
25.243902
75
0.675362
1a5aa39904e33b8235a464e5fff80706aa0c8069
2,926
py
Python
compare_gan/metrics/save_examples.py
Octavian-ai/compare_gan
c1edbc353028cddf6de74743524ef09c21ee1136
[ "Apache-2.0" ]
3
2019-06-06T04:37:46.000Z
2021-02-03T20:41:10.000Z
compare_gan/metrics/save_examples.py
Octavian-ai/compare_gan
c1edbc353028cddf6de74743524ef09c21ee1136
[ "Apache-2.0" ]
null
null
null
compare_gan/metrics/save_examples.py
Octavian-ai/compare_gan
c1edbc353028cddf6de74743524ef09c21ee1136
[ "Apache-2.0" ]
3
2019-06-24T22:15:00.000Z
2021-02-03T20:41:15.000Z
# coding=utf-8 # Copyright 2018 David Mack # # 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 t...
29.26
112
0.657553
1a5ab986605de812ee497a523f25e1d809de24fc
9,239
py
Python
source/generalFunctions.py
parnelandr/national-crash-statistics
fdd5ea451a47f794491dab3fb6708fa2e953b13a
[ "MIT" ]
null
null
null
source/generalFunctions.py
parnelandr/national-crash-statistics
fdd5ea451a47f794491dab3fb6708fa2e953b13a
[ "MIT" ]
null
null
null
source/generalFunctions.py
parnelandr/national-crash-statistics
fdd5ea451a47f794491dab3fb6708fa2e953b13a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' `generalFunctions.py` ================= Containing general purpose Python functions for small bits of manipulation. Import it: import generalFunctions Depends ======= datetime ''' import datetime def empty(string): if string in ['', ' ', None]: return Tru...
37.556911
119
0.567486
1a5acc82f484704c054e6997ac5804695d49f4c1
744
py
Python
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 02/ch02-stream-read-1.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
26
2016-08-25T01:33:36.000Z
2022-03-20T11:33:31.000Z
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 02/ch02-stream-read-1.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
null
null
null
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 02/ch02-stream-read-1.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
31
2016-08-16T15:32:46.000Z
2021-01-26T19:16:48.000Z
import time import os import sys if len(sys.argv) != 2: print >> sys.stderr, "Please specify filename to read" filename = sys.argv[1] if not os.path.isfile(filename): print >> sys.stderr, "Given file: \"%s\" is not a file" % filename with open(filename,'r') as file: # Move to the end of file filesiz...
24
72
0.572581
1a5ace82a24ee148a890b50f01b07f2239a3361e
14,862
py
Python
src/the_tale/the_tale/game/jobs/effects.py
SilentWrangler/the-tale
a121128edd2a9e36133eb047946ccb9593801ea6
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/jobs/effects.py
SilentWrangler/the-tale
a121128edd2a9e36133eb047946ccb9593801ea6
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/jobs/effects.py
SilentWrangler/the-tale
a121128edd2a9e36133eb047946ccb9593801ea6
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() class BaseEffect(object): __slots__ = () def __init__(self): pass def apply_positive(self, actor_type, actor_name, place, person, positive_heroes, negative_heroes, job_power): raise NotImplementedError() def apply_negative(self, actor_type,...
45.173252
198
0.598708
1a5adcc5ca584fd0e177c0bb53f1da3b64c708ad
14,641
py
Python
Python/klampt/vis/glcommon.py
whutddk/Klampt
85e7eb72c6ce59dcee7aaf77077ae31aa567d9a1
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/vis/glcommon.py
whutddk/Klampt
85e7eb72c6ce59dcee7aaf77077ae31aa567d9a1
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/vis/glcommon.py
whutddk/Klampt
85e7eb72c6ce59dcee7aaf77077ae31aa567d9a1
[ "BSD-3-Clause" ]
null
null
null
from glinterface import GLPluginInterface from glprogram import GLProgram,GLPluginProgram import math from OpenGL.GL import * class GLWidgetPlugin(GLPluginInterface): """A GL plugin that sends user events to one or more Klamp't widgets. To use, add this to a GLPluginProgram and call addWidget to add widgets"""...
38.528947
142
0.576258
1a5afd4878a836348fd2212a16427b0e8beac086
7,529
py
Python
services/storage/tests/test_rest.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
services/storage/tests/test_rest.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
services/storage/tests/test_rest.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
# pylint: disable=R0913 # pylint: disable=W0621 import os from urllib.parse import quote import pytest from aiohttp import web from simcore_service_storage.db import setup_db from simcore_service_storage.dsm import setup_dsm from simcore_service_storage.rest import setup_rest from simcore_service_storage.s3 import se...
32.038298
140
0.635675
1a5b018f7f72b4a2aef0cdd05845e296b479d8ba
1,937
py
Python
wishes/models.py
monofox/wedding
d9c4ee1da418e4e047eb628e98a473b8c20c56d5
[ "MIT" ]
null
null
null
wishes/models.py
monofox/wedding
d9c4ee1da418e4e047eb628e98a473b8c20c56d5
[ "MIT" ]
null
null
null
wishes/models.py
monofox/wedding
d9c4ee1da418e4e047eb628e98a473b8c20c56d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from datetime import datetime from django.core.mail import send_mail from django.conf import settings from django.utils.translation import ugettext_lazy as _ import pytz class WishPriority(models.Model): class Meta: verbose_name = _('Wish P...
33.982456
120
0.731544
1a5b050cf3f037be04e527b8523c565bd021cc91
2,498
py
Python
test/functional/conf_args.py
biblepay/biblepay
6af4517c623620f60cabc228cc2f63c35d1beb5b
[ "MIT" ]
63
2017-07-25T21:57:21.000Z
2022-02-05T02:58:03.000Z
test/functional/conf_args.py
biblepay/biblepay
6af4517c623620f60cabc228cc2f63c35d1beb5b
[ "MIT" ]
105
2017-09-04T00:52:17.000Z
2021-05-22T13:58:37.000Z
test/functional/conf_args.py
biblepay/biblepay
6af4517c623620f60cabc228cc2f63c35d1beb5b
[ "MIT" ]
62
2017-08-04T19:48:40.000Z
2021-07-07T12:21:12.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various command line arguments and configuration file parameters.""" import os from test_framework.te...
45.418182
169
0.690953
1a5b1ae7e37cdc2617fa34def6673f73516a820f
2,466
py
Python
tests/profiling/seller_script_speed.py
flamma7/csci5673_emarket
44746f64212acbbaa36ca2c2d1974a9e1c003f83
[ "MIT" ]
null
null
null
tests/profiling/seller_script_speed.py
flamma7/csci5673_emarket
44746f64212acbbaa36ca2c2d1974a9e1c003f83
[ "MIT" ]
null
null
null
tests/profiling/seller_script_speed.py
flamma7/csci5673_emarket
44746f64212acbbaa36ca2c2d1974a9e1c003f83
[ "MIT" ]
null
null
null
# Test functionality of sellers side from emarket.client_seller import ClientSeller from emarket.emarket import Item import time from os import environ as env from dotenv import load_dotenv, find_dotenv ENV_FILE = find_dotenv() if ENV_FILE: load_dotenv(ENV_FILE) else: raise FileNotFoundError("Could not locat...
32.025974
89
0.635442
1a5b32e9e3d3dc83468ece16315182a3b4e15a93
28,088
py
Python
data/loadFiles.py
iesus/systematicity-sentence-production
f281d3642cea2cb342cdaeccfb0d9a0fb643ebc7
[ "BSD-3-Clause" ]
null
null
null
data/loadFiles.py
iesus/systematicity-sentence-production
f281d3642cea2cb342cdaeccfb0d9a0fb643ebc7
[ "BSD-3-Clause" ]
null
null
null
data/loadFiles.py
iesus/systematicity-sentence-production
f281d3642cea2cb342cdaeccfb0d9a0fb643ebc7
[ "BSD-3-Clause" ]
null
null
null
''' Created on Apr 8, 2016 @author: jesus calvillo Contains methods used to load and pre-process the corpus ''' import numpy as np import theano from tools.similarities import binaryEquality from containers import Situation,TrainingElement,InputObjectAP,Corpus,CorpusAP from crossValidation import Fold rawPrologFi...
40.885007
249
0.653482
1a5b560dcb19fb72fcba73d003601b7cad1eedfc
1,249
py
Python
src/constants.py
pyansys/create-python-project
e289b5042fd95ca99c6d29e107e2114a5b9a7b15
[ "MIT" ]
4
2022-02-08T12:37:49.000Z
2022-03-29T04:45:10.000Z
src/constants.py
pyansys/create-python-project
e289b5042fd95ca99c6d29e107e2114a5b9a7b15
[ "MIT" ]
26
2022-02-08T12:48:52.000Z
2022-03-28T08:58:47.000Z
src/constants.py
pyansys/create-python-project
e289b5042fd95ca99c6d29e107e2114a5b9a7b15
[ "MIT" ]
1
2022-03-16T12:57:24.000Z
2022-03-16T12:57:24.000Z
# Copyright (c) 2022 Ansys, Inc. and its affiliates. Unauthorised use, # distribution or duplication is prohibited # LICENSE file is in the root directory of this source tree. DOT_FILES_TO_RENAME = {'flake8': '.flake8', 'gitignore': '.gitignore', 'gitattributes': '.gitattri...
35.685714
80
0.643715
1a5b5690409133a8e91239d74efcc6621d64baeb
1,670
py
Python
asposewordscloud/models/responses/insert_table_row_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/insert_table_row_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/insert_table_row_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="insert_table_row_online_response.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaini...
49.117647
85
0.673054
1a5b9c72bf06483922887e3593c04f6636500650
6,054
py
Python
mmgen/models/architectures/arcface/helpers.py
liuhd073/mmgeneration
2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d
[ "Apache-2.0" ]
null
null
null
mmgen/models/architectures/arcface/helpers.py
liuhd073/mmgeneration
2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d
[ "Apache-2.0" ]
null
null
null
mmgen/models/architectures/arcface/helpers.py
liuhd073/mmgeneration
2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from collections import namedtuple import torch from torch.nn import (AdaptiveAvgPool2d, BatchNorm2d, Conv2d, MaxPool2d, Module, PReLU, ReLU, Sequential, Sigmoid) # yapf: disable """ ArcFace implementation from [TreB1eN](https://github.com/TreB1eN/...
30.27
106
0.587215
1a5bba874e7f818dc84890693f3bea23ff06fd46
3,515
py
Python
ethnicolr/census_ln.py
basharnaji/ethnicolr
e3cb49c21a47d7c3dec74676b7a440e2fb44e3f5
[ "MIT" ]
185
2017-11-23T19:43:31.000Z
2022-03-10T02:56:05.000Z
ethnicolr/census_ln.py
basharnaji/ethnicolr
e3cb49c21a47d7c3dec74676b7a440e2fb44e3f5
[ "MIT" ]
41
2017-09-20T05:12:38.000Z
2022-01-16T14:54:03.000Z
ethnicolr/census_ln.py
basharnaji/ethnicolr
e3cb49c21a47d7c3dec74676b7a440e2fb44e3f5
[ "MIT" ]
70
2017-12-11T12:32:04.000Z
2022-03-23T18:41:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import argparse import pandas as pd from pkg_resources import resource_filename from .utils import column_exists, fixup_columns CENSUS2000 = resource_filename(__name__, "data/census/census_2000.csv") CENSUS2010 = resource_filename(__name__, "data/census/censu...
31.383929
78
0.585206
1a5bf07eb5e31048472941973849e88efd748b0c
9,434
py
Python
experiments/ashvin/icra2021/final/fixed_agent_overtrained.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/final/fixed_agent_overtrained.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/final/fixed_agent_overtrained.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.demos.source.dict_to_mdp_path_loader import EncoderDictToMDPPathLoader from rlkit.launchers.experiments.ashvin.awac_rig import awac_rig_experiment from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.arglauncher import run_variants from rlkit.t...
36.145594
191
0.607272
1a5c11f3f9b01d911f964a3643bc6c185ada95fc
6,259
py
Python
heartFEM/lcleeHeart/vtk_py/extractFeNiCsBiVFacet.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
3
2021-04-13T07:05:20.000Z
2021-10-02T13:41:09.000Z
heartFEM/lcleeHeart/vtk_py/extractFeNiCsBiVFacet.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
null
null
null
heartFEM/lcleeHeart/vtk_py/extractFeNiCsBiVFacet.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
2
2021-09-06T13:13:41.000Z
2022-03-11T18:59:02.000Z
import vtk from heartFEM.lcleeHeart import vtk_py as vtk_py import dolfin as dolfin import numpy as np def extractFeNiCsBiVFacet(ugrid,savePath='', geometry="BiV", tol=1e-2): #tol = 1e-2 #ugrid = vtk_py.readUGrid(meshfilename) # Extract surface geom = vtk.vtkGeometryFilter() if(vtk.vtkVersion()....
30.531707
117
0.686052
1a5c1fac7e5611257dd313f322b5ef8ac15da495
15,224
py
Python
alfajor/browsers/wsgi.py
idealistdev/alfajor
af8a750ec38bf01150a8fe004c8336e4d0be7030
[ "BSD-3-Clause" ]
2
2015-11-01T22:29:54.000Z
2018-02-15T15:54:30.000Z
alfajor/browsers/wsgi.py
idealistdev/alfajor
af8a750ec38bf01150a8fe004c8336e4d0be7030
[ "BSD-3-Clause" ]
1
2015-11-04T09:59:43.000Z
2020-04-26T06:19:00.000Z
alfajor/browsers/wsgi.py
idealistdev/alfajor
af8a750ec38bf01150a8fe004c8336e4d0be7030
[ "BSD-3-Clause" ]
3
2015-09-16T14:31:23.000Z
2020-09-08T06:34:12.000Z
# Copyright Action Without Borders, Inc., the Alfajor authors and contributors. # All rights reserved. See AUTHORS. # # This file is part of 'Alfajor' and is distributed under the BSD license. # See LICENSE for more details. """An in-process browser that acts as a WSGI server.""" from __future__ import absolute_impo...
32.118143
81
0.603258
1a5c2dc7bd45754faaf80ea608568adb582aa437
1,377
py
Python
code_examples/tensorflow/custom_op/tf_code.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
code_examples/tensorflow/custom_op/tf_code.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
code_examples/tensorflow/custom_op/tf_code.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
# Copyright 2020 Graphcore Ltd. import os import numpy as np from tensorflow.python import ipu from tensorflow.python.ipu.scopes import ipu_scope import tensorflow.compat.v1 as tf tf.disable_v2_behavior() cfg = ipu.utils.create_ipu_config(profiling=True, use_poplar_text_report=True) cfg = ipu.utils.auto_select_ipus(c...
27
78
0.632534
1a5c49c214de0a858d772a55379644114379cea2
10,443
py
Python
simulations/20220610/run_favites_docker_with_inputs.py
breecummins/social_sampling_in_epidemics
9f3f580f525c0df6a6518658b11c7a81db8e19b3
[ "MIT" ]
null
null
null
simulations/20220610/run_favites_docker_with_inputs.py
breecummins/social_sampling_in_epidemics
9f3f580f525c0df6a6518658b11c7a81db8e19b3
[ "MIT" ]
null
null
null
simulations/20220610/run_favites_docker_with_inputs.py
breecummins/social_sampling_in_epidemics
9f3f580f525c0df6a6518658b11c7a81db8e19b3
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 ''' FAVITES: FrAmework for VIral Transmission and Evolution Simulation ''' import argparse from json import loads from os import makedirs from os.path import abspath,expanduser,isdir,isfile from sys import platform,stderr from subprocess import call,check_output,CalledProcessError,STDOUT from te...
50.694175
184
0.662549
1a5c6ba3e04041fd9e8d8e1189b19104c4ede43a
9,676
py
Python
run_tests/resources/example_chemistry.py
hanicinecm/pygmol
10223e5db46208b7ade1448fc277739e777648d1
[ "MIT" ]
null
null
null
run_tests/resources/example_chemistry.py
hanicinecm/pygmol
10223e5db46208b7ade1448fc277739e777648d1
[ "MIT" ]
null
null
null
run_tests/resources/example_chemistry.py
hanicinecm/pygmol
10223e5db46208b7ade1448fc277739e777648d1
[ "MIT" ]
null
null
null
import inspect from copy import deepcopy from pygmol.abc import Chemistry class ExampleChemistry(Chemistry): """An example chemistry for the following Species: -------- O, O-, O--, O2, Ar, Ar+, Ar++, Ar*, Ar** Reactions: ---------- 1: e + O2 > O2 + e 2: e + Ar > e + Ar 3: e + Ar...
21.359823
80
0.314489
1a5cc8e8ec4ae5a48241515ddcaf464e3ceea9bd
14,800
py
Python
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/validator.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/validator.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/validator.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import abc import os import uuid from typing import Dict import six from datadog_checks.dev.tooling.constants import get_root from datadog_checks.dev.tooling.git import content_changed from datadog_check...
39.257294
118
0.61473
1a5cd5b37c7701d3b49ed8021213d84c8caf9a37
5,969
py
Python
configs/cps/infer_video.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
1
2022-03-19T11:52:53.000Z
2022-03-19T11:52:53.000Z
configs/cps/infer_video.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
null
null
null
configs/cps/infer_video.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
1
2022-03-19T11:53:10.000Z
2022-03-19T11:53:10.000Z
from typing import List, Optional, Tuple import matplotlib as mpl mpl.use("Agg") from theseus.opt import Opts import os import cv2 import torch import numpy as np from theseus.opt import Config from theseus.segmentation.models import MODEL_REGISTRY from theseus.segmentation.augmentations import TRANSFORM_REGISTRY fr...
34.304598
85
0.63679
1a5cd9c35a47c33751f8290d5dddc13ff8efbf21
11,415
py
Python
tests/test_thermal_conductivity.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
tests/test_thermal_conductivity.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
tests/test_thermal_conductivity.py
volpatto/chemicals
721904ee17604f5e8685b0e5fff12e0bac567f73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal...
44.244186
202
0.696277
1a5d05094e53cfecd9476d7d87f023e8a02d7458
3,457
py
Python
tensorflow/compiler/tests/reverse_sequence_op_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/compiler/tests/reverse_sequence_op_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/compiler/tests/reverse_sequence_op_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 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...
36.776596
80
0.607463
1a5d1d6b6f1185d9da5dddb7e23715274b515c73
465
py
Python
saf/ffm/nonlinear/__init__.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/ffm/nonlinear/__init__.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/ffm/nonlinear/__init__.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
""" Package `ffm.nonlinear`. `ffm` stands for Fickett-Faria model. Fickett--Faria is detonation-analogue model based on one-dimensional reactive Burgers' equation with one-step chemistry. """ from .animator import Animator from .asciireader import ASCIIReader from .asciiwriter import ASCIIWriter from .config import...
23.25
77
0.806452
1a5d4e1643ef8d5d750036bd858efcc46d3bf9b4
1,719
py
Python
src/librecatastro/domain/cadaster_entry/cadaster_entry_html.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
9
2019-11-30T11:14:30.000Z
2022-03-14T09:41:57.000Z
src/librecatastro/domain/cadaster_entry/cadaster_entry_html.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
1
2021-04-11T17:15:08.000Z
2021-04-11T17:15:08.000Z
src/librecatastro/domain/cadaster_entry/cadaster_entry_html.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
1
2021-08-07T12:15:43.000Z
2021-08-07T12:15:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from datetime import datetime from src.librecatastro.domain.address import Address from src.librecatastro.domain.cadaster_entry.cadaster_entry import CadasterEntry from src.librecatastro.domain.construction import Construction from src.librecatastro.domain.location import...
52.090909
123
0.763816
1a5dec64f1678bb488242c967a6dc8d16b4c85a1
44,424
py
Python
4-Lab4-Movie_Rating.py
martinianodl/MLBDA_PUC
71f186c79bd35c1407aaabb6ca9e9f27bf33f0d7
[ "MIT" ]
null
null
null
4-Lab4-Movie_Rating.py
martinianodl/MLBDA_PUC
71f186c79bd35c1407aaabb6ca9e9f27bf33f0d7
[ "MIT" ]
null
null
null
4-Lab4-Movie_Rating.py
martinianodl/MLBDA_PUC
71f186c79bd35c1407aaabb6ca9e9f27bf33f0d7
[ "MIT" ]
null
null
null
# Databricks notebook source exported at Fri, 11 Nov 2016 16:51:59 UTC # MAGIC %md # MAGIC <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"> <img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png"/> </a> <br/> This work is licensed...
53.394231
747
0.721637
1a5e1012db3006c556ccf8b391aef68a24b3baa7
10,523
py
Python
Solution_File_C-SASPy_Data_Round_Trip.py
ilankham/wuss-2019-half-day-class
7b872e5ee294e62c62a20c5cd7b4e441df63f70a
[ "MIT" ]
2
2019-09-04T03:29:12.000Z
2021-03-02T07:22:08.000Z
Solution_File_C-SASPy_Data_Round_Trip.py
ilankham/wuss-2019-half-day-class
7b872e5ee294e62c62a20c5cd7b4e441df63f70a
[ "MIT" ]
null
null
null
Solution_File_C-SASPy_Data_Round_Trip.py
ilankham/wuss-2019-half-day-class
7b872e5ee294e62c62a20c5cd7b4e441df63f70a
[ "MIT" ]
3
2019-09-04T05:57:02.000Z
2019-09-15T21:21:47.000Z
# Everything is better with friends: Executing SAS® code in Python scripts with # SASPy, and turbocharging your SAS programming with open-source tooling # # Half-day class, Western Users of SAS Software (WUSS) 2019 ############################################################################### # Exercises 6-9: SASPy ...
41.105469
79
0.585194
1a5e17d06f4c26fac69a5a8763df7759de8bfb65
9,264
py
Python
mi/logging/logger.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
1
2015-05-10T01:08:44.000Z
2015-05-10T01:08:44.000Z
mi/logging/logger.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
33
2017-04-25T19:53:45.000Z
2022-03-18T17:42:18.000Z
mi/logging/logger.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
31
2015-03-04T01:01:09.000Z
2020-10-28T14:42:12.000Z
""" THIS CLASS IS NOT A LOGGER, but it plays one on TV. The purpose of this class is to make it easy for other code to get a scoped-logger with just an import statement. And while I was at it, I added a TRACE log level (below DEBUG). USAGE: If you want to do some logging... put this at the top of y...
45.635468
121
0.649396
1a5e1c7a72818cd555202419d089b39ea76867c3
3,446
py
Python
tests/unit/plugins/openstack/context/heat/test_stacks.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2018-01-01T00:43:41.000Z
2018-01-01T00:43:41.000Z
tests/unit/plugins/openstack/context/heat/test_stacks.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/plugins/openstack/context/heat/test_stacks.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2020-06-05T10:06:37.000Z
2020-06-05T10:06:37.000Z
# Copyright 2015: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
34.808081
78
0.595183
1a5e2b178ed36d362526a9911802c3b9c93480b6
14,758
py
Python
main.py
RecyclEd-SDP14/RecycleNet
0930f93f35aec60e230ff59c9ab1551a54751229
[ "MIT" ]
null
null
null
main.py
RecyclEd-SDP14/RecycleNet
0930f93f35aec60e230ff59c9ab1551a54751229
[ "MIT" ]
1
2022-02-20T16:44:43.000Z
2022-02-20T16:44:43.000Z
main.py
RecyclEd-SDP14/RecycleNet
0930f93f35aec60e230ff59c9ab1551a54751229
[ "MIT" ]
null
null
null
import argparse import os import random import shutil import time import numpy as np import torch import torch.backends.cudnn as cudnn import torch.nn as nn import torch.optim import torch.utils.data from torch.utils.data import DataLoader from torchvision import transforms import data import new_data import resnet ...
38.734908
119
0.612278
1a5e484d1fe2ee32d4184f93a4c80f30477c0479
2,217
py
Python
gwlfe/MultiUse_Fxns/Runoff/RurQRunoff.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
gwlfe/MultiUse_Fxns/Runoff/RurQRunoff.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
gwlfe/MultiUse_Fxns/Runoff/RurQRunoff.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
from numpy import repeat from numpy import reshape from numpy import sum from numpy import where from numpy import zeros from gwlfe.Input.LandUse.NLU import NLU from gwlfe.Input.WaterBudget.Water import Water from gwlfe.Input.WaterBudget.Water import Water_f from gwlfe.Memoization import memoize from gwlfe.MultiUse_Fx...
41.830189
120
0.596301
1a5e5db6434e4e1e5766403f236a8b1fadf1ca75
413
py
Python
modoboa_imap_migration/migrations/0002_password.py
modoboa/modoboa-imap-migration
23ad52b1ed7a0e52bbef0a900b6efd0f364f2633
[ "0BSD" ]
14
2016-05-26T06:27:22.000Z
2021-05-26T13:34:48.000Z
modoboa_imap_migration/migrations/0002_password.py
modoboa/modoboa-imap-migration
23ad52b1ed7a0e52bbef0a900b6efd0f364f2633
[ "0BSD" ]
88
2015-11-03T11:19:59.000Z
2022-03-01T23:05:11.000Z
modoboa_imap_migration/migrations/0002_password.py
modoboa/modoboa-imap-migration
23ad52b1ed7a0e52bbef0a900b6efd0f364f2633
[ "0BSD" ]
10
2016-08-11T07:41:11.000Z
2020-11-04T11:14:48.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('modoboa_imap_migration', '0001_initial'), ] operations = [ migrations.AlterField( model_name='migration', ...
20.65
51
0.615012
1a5e6eb878c07a08caaec8bb3086a529730cfcb1
2,222
py
Python
gdb/types.py
sivachandra/gala
6d7e5fd3cf3c319062a3985dbffd791944e180e9
[ "Apache-2.0" ]
4
2016-07-16T01:35:30.000Z
2020-06-18T05:37:33.000Z
gdb/types.py
sivachandra/gala
6d7e5fd3cf3c319062a3985dbffd791944e180e9
[ "Apache-2.0" ]
7
2015-06-26T19:24:30.000Z
2015-08-18T18:16:11.000Z
gdb/types.py
sivachandra/gala
6d7e5fd3cf3c319062a3985dbffd791944e180e9
[ "Apache-2.0" ]
null
null
null
############################################################################ ## Copyright 2015-2021 Google LLC ## ## 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.or...
35.269841
80
0.670567
1a5e74257d50db9764e733f68ff9fb8cf9203c07
6,115
py
Python
datatools/cross_validate_cachecreator_wforce_MDsplit.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
8
2018-10-30T16:48:44.000Z
2021-03-08T01:44:41.000Z
datatools/cross_validate_cachecreator_wforce_MDsplit.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
null
null
null
datatools/cross_validate_cachecreator_wforce_MDsplit.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
5
2018-04-05T15:51:12.000Z
2019-05-23T21:38:31.000Z
import numpy as np import pyanitools as pyt from pyNeuroChem import cachegenerator as cg import sys import os import hdnntools as hdn import matplotlib.pyplot as plt import matplotlib as mpl def interval(v,S): ps = 0.0 ds = 1.0 / float(S) for s in range(S): if v > ps and v <= ps+ds: ...
32.015707
122
0.521504
1a5ea618152feebe5475f9ca59788c08901674f9
1,409
py
Python
cadnano/__init__.py
sherwoodyao/cadnano2.5
ce6ff019b88ee7728de947bd86b35861cf57848d
[ "BSD-3-Clause" ]
69
2015-01-13T02:54:40.000Z
2022-03-27T14:25:51.000Z
cadnano/__init__.py
scholer/cadnano2.5
ce6ff019b88ee7728de947bd86b35861cf57848d
[ "BSD-3-Clause" ]
127
2015-01-01T06:26:34.000Z
2022-03-02T12:48:05.000Z
cadnano/__init__.py
scholer/cadnano2.5
ce6ff019b88ee7728de947bd86b35861cf57848d
[ "BSD-3-Clause" ]
48
2015-01-22T19:57:49.000Z
2022-03-27T14:27:53.000Z
# -*- coding: utf-8 -*- import sys from .proxies.cnproxy import tapp __version__ = '2.5.2.1' global shared_app shared_app = tapp global batch batch = False global reopen reopen = False def getBatch(): global batch return batch def setBatch(is_batch): global batch batch = is_batch def getReopen(...
20.42029
73
0.686302
1a5ee584f524f784537884872eec139b04ddc092
1,709
py
Python
oscar/lib/python2.7/site-packages/whoosh/matching/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/whoosh/matching/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/whoosh/matching/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2012 Matt Chaput. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions a...
53.40625
79
0.767115
1a5ee88860c830db179ec14d63f5c19bbc9b6b21
1,063
py
Python
tests/test_plots.py
emilyhunt/lsw-slackbot
1069aee5046b30075db52e1735c33d0ca84d71c4
[ "BSD-3-Clause" ]
null
null
null
tests/test_plots.py
emilyhunt/lsw-slackbot
1069aee5046b30075db52e1735c33d0ca84d71c4
[ "BSD-3-Clause" ]
null
null
null
tests/test_plots.py
emilyhunt/lsw-slackbot
1069aee5046b30075db52e1735c33d0ca84d71c4
[ "BSD-3-Clause" ]
null
null
null
"""Tests for the plots.py submodule.""" import asyncio from datetime import datetime from pathlib import Path from lsw_slackbot import plots async def test_plot_resource_use(aggregation_level=None, dpi=100): """Tests plots.plot_resource_use""" await plots.plot_resource_use(Path("test_data"), ...
36.655172
89
0.650047
1a5f12a6e5b1387342b5fad810d1a8c9581498e1
40,751
py
Python
kats/utils/time_series_parameter_tuning.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/utils/time_series_parameter_tuning.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/utils/time_series_parameter_tuning.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Module that has parameter tuning classes for time series models. This module has a collection of classes. A subset of these classes are...
41.204247
112
0.618807
1a5f34efb2fbd211e3efdb20881e7f5f6cc77533
262
py
Python
ara/settings/sso.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
19
2017-09-13T07:51:58.000Z
2022-03-28T11:04:03.000Z
ara/settings/sso.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
147
2017-09-14T13:45:30.000Z
2022-03-14T15:54:09.000Z
ara/settings/sso.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
5
2019-08-31T13:13:30.000Z
2021-03-26T15:46:38.000Z
from .env import env # https://wiki.sparcs.org/w/index.php/SPARCS_SSO SSO_CLIENT_ID = env('SSO_CLIENT_ID') SSO_SECRET_KEY = env('SSO_SECRET_KEY') PORTAL_ID = env('PORTAL_ID') PORTAL_PASSWORD = env('PORTAL_PASSWORD') PORTAL_2FA_KEY = env('PORTAL_2FA_KEY')
17.466667
48
0.755725
1a5f4f90a984c68c442547d0941fea4e78df2edf
4,433
py
Python
app/recipe/tests/test_ingredients_api.py
konkrer/recipe-app-api
7ccfd8683b4fae8fe0ef410684dc84e8bb96989b
[ "MIT" ]
1
2019-06-01T10:14:02.000Z
2019-06-01T10:14:02.000Z
app/recipe/tests/test_ingredients_api.py
konkrer/recipe-app-api
7ccfd8683b4fae8fe0ef410684dc84e8bb96989b
[ "MIT" ]
null
null
null
app/recipe/tests/test_ingredients_api.py
konkrer/recipe-app-api
7ccfd8683b4fae8fe0ef410684dc84e8bb96989b
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Ingredient, Recipe from recipe.serializers import IngredientSerializer INGREDIENTS_URL = reverse('recipe...
34.632813
77
0.654185
1a5f528bbf7fb827055c19b7f902c53485712cf6
5,414
py
Python
src/sardana/spock/inputhandler.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/spock/inputhandler.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/spock/inputhandler.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
31.847059
81
0.59734
1a5fa85b9d7b12e5ffaf567360447dc02a30c390
4,103
py
Python
parlai/mturk/tasks/talkthewalk/run.py
hengyicai/Adaptive_Multi-curricula_Learning_for_Dialog
e2d2c613ac4075ce023d6b4acb0a5eddac4e7837
[ "MIT" ]
17
2020-03-27T17:25:52.000Z
2021-11-19T03:46:25.000Z
parlai/mturk/tasks/talkthewalk/run.py
urantialife/ParlAI
9b6640d50d907e9fa5352f5c4c2290d436110854
[ "MIT" ]
3
2020-11-01T10:12:52.000Z
2021-12-10T09:06:44.000Z
parlai/mturk/tasks/talkthewalk/run.py
urantialife/ParlAI
9b6640d50d907e9fa5352f5c4c2290d436110854
[ "MIT" ]
3
2020-05-04T04:37:42.000Z
2021-07-19T11:09:37.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os from parlai.core.params import ParlaiParser from parlai.mturk.core.mturk_manager import MTurkManager from worl...
37.3
78
0.62564
1a5fb12c245bb362965f2d6732817f1c5f1fc5c2
4,133
py
Python
nova/tests/unit/objects/test_cell_mapping.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/objects/test_cell_mapping.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-07-11T20:59:47.000Z
2020-07-28T09:56:35.000Z
nova/tests/unit/objects/test_cell_mapping.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
37.917431
78
0.660537
1a5fe96c6a090f8c560cfc79809738faf255ffc5
4,823
py
Python
tensorflow_impl/applications/LEARN/trainer.py
c4dt/Garfield
952c124490ba524e81ef45d5d7565ec408697bfc
[ "MIT" ]
null
null
null
tensorflow_impl/applications/LEARN/trainer.py
c4dt/Garfield
952c124490ba524e81ef45d5d7565ec408697bfc
[ "MIT" ]
2
2021-09-13T14:36:10.000Z
2022-01-26T16:33:16.000Z
tensorflow_impl/applications/LEARN/trainer.py
c4dt/Garfield
952c124490ba524e81ef45d5d7565ec408697bfc
[ "MIT" ]
null
null
null
# coding: utf-8 ### # @file trainer.py # @author Anton Ragot <anton.ragot@epfl.ch>, Jérémy Plassmann <jeremy.plassmann@epfl.ch> # # @section LICENSE # # MIT License # # Copyright (c) 2020 Distributed Computing Laboratory, EPFL # # Permission is hereby granted, free of charge, to any person obtaining a copy...
35.992537
115
0.629898
1a5ff056b906fe6771fad987daed512d34503057
13,982
py
Python
pyziabm/runner2017mpi_r4.py
blakelucey/pyziabm
b4e62aa036233e58d7b44b654c375baf57ffc2d3
[ "BSD-3-Clause" ]
35
2017-11-27T13:10:42.000Z
2021-09-13T13:39:55.000Z
pyziabm/runner2017mpi_r4.py
blakelucey/pyziabm
b4e62aa036233e58d7b44b654c375baf57ffc2d3
[ "BSD-3-Clause" ]
2
2017-10-10T20:28:49.000Z
2021-09-06T14:59:13.000Z
pyziabm/runner2017mpi_r4.py
blakelucey/pyziabm
b4e62aa036233e58d7b44b654c375baf57ffc2d3
[ "BSD-3-Clause" ]
23
2017-08-28T18:29:09.000Z
2022-03-20T01:59:26.000Z
import random import numpy as np import pandas as pd from pyziabm.orderbook3 import Orderbook from pyziabm.trader2017_r3 import Provider, Provider5, Taker, MarketMaker, MarketMaker5, PennyJumper class Runner(object): def __init__(self, prime1=20, num_mms=1, mm_maxq=1, mm_quotes=12, mm_quote_range=60, mm_delta=0....
59.497872
152
0.614862
1a5ff0acc01fda43a55cc38d617a0699fe524e71
4,387
py
Python
util/tb_visualizer.py
moabarar/nemar
0333edeb1582d8530c8c39d6d0b0150a30cc214f
[ "BSD-3-Clause" ]
107
2020-06-17T06:36:10.000Z
2022-03-07T10:01:06.000Z
util/tb_visualizer.py
moabarar/nemar
0333edeb1582d8530c8c39d6d0b0150a30cc214f
[ "BSD-3-Clause" ]
6
2020-07-27T11:59:07.000Z
2021-08-31T15:57:35.000Z
util/tb_visualizer.py
moabarar/nemar
0333edeb1582d8530c8c39d6d0b0150a30cc214f
[ "BSD-3-Clause" ]
18
2020-07-07T15:02:18.000Z
2022-03-07T01:25:40.000Z
import numpy as np from torch.utils.tensorboard import SummaryWriter class TensorboardVisualizer: @staticmethod def modify_commandline_options(parser, is_train=True): if is_train: parser.add_argument('--tbvis_iteration_update_rate', type=int, default=1000, h...
41.780952
108
0.618874
1a60053880ae2712767ed874f06fca1b6c87d2e6
831
py
Python
migrations/versions/4d139412cd47_.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
1
2021-10-17T13:28:51.000Z
2021-10-17T13:28:51.000Z
migrations/versions/4d139412cd47_.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
migrations/versions/4d139412cd47_.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
"""empty message Revision ID: 4d139412cd47 Revises: 352abb027016 Create Date: 2022-03-24 11:01:45.925852 """ from alembic import op import sqlalchemy as sa # Noqa F401 # revision identifiers, used by Alembic. revision = "4d139412cd47" down_revision = "352abb027016" branch_labels = None depends_on = None def upgr...
26.806452
80
0.699158
1a6012dc5a67fd7b3088efd18460f504bcd41032
1,379
py
Python
idea01/submission.py
RobRomijnders/santa20
0c2e4492b5cb8311abe9a1a3e3daff9506b47749
[ "MIT" ]
null
null
null
idea01/submission.py
RobRomijnders/santa20
0c2e4492b5cb8311abe9a1a3e3daff9506b47749
[ "MIT" ]
null
null
null
idea01/submission.py
RobRomijnders/santa20
0c2e4492b5cb8311abe9a1a3e3daff9506b47749
[ "MIT" ]
null
null
null
import random from collections import Counter import numpy as np actions = [] rewards = [] opponent_picks = [] counts = {} prior = {"n": 1, "h": 1} def oppo_action(last_actions, my_action): a1, a2 = last_actions if a1 == my_action: return int(a2) return int(a1) def multi_armed_bandit_agent...
31.340909
92
0.62074
1a606a8b9924f0c57ba1583b9d2992bdaa0e53b6
458
py
Python
dp_conceptual_search/ons/search/response/search_result.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
3
2018-05-10T16:49:27.000Z
2022-03-29T15:23:04.000Z
dp_conceptual_search/ons/search/response/search_result.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
2
2018-09-20T06:37:27.000Z
2018-11-12T12:05:08.000Z
dp_conceptual_search/ons/search/response/search_result.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
3
2018-06-25T10:48:43.000Z
2021-04-11T08:01:27.000Z
""" Defines the base ONS search result """ import abc class SearchResult(abc.ABC): number_of_results_key = "numberOfResults" took_key = "took" results_key = "results" paginator_key = "paginator" sort_by_key = "sortBy" doc_counts_key = "docCounts" @abc.abstractmethod def to_dict(self)...
19.913043
73
0.633188
1a6070c2768f82c9231d2be498b39699aec6dd53
1,533
py
Python
setup.py
yanncalec/few-shot-learning-benchmark
6473660ba93de484dc9b88ab25a3f582587c95b6
[ "MIT" ]
null
null
null
setup.py
yanncalec/few-shot-learning-benchmark
6473660ba93de484dc9b88ab25a3f582587c95b6
[ "MIT" ]
null
null
null
setup.py
yanncalec/few-shot-learning-benchmark
6473660ba93de484dc9b88ab25a3f582587c95b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = ['torch', 'tensorflow', 'numpy', 'pillow'] test_requirements ...
30.66
99
0.662753
1a6071189ceefebd2dff9a15ddcb4d8e2e7220be
671
py
Python
hiven/types/user.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
3
2021-08-25T01:41:03.000Z
2021-08-30T17:53:05.000Z
hiven/types/user.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
1
2021-08-30T15:35:57.000Z
2021-08-30T18:02:13.000Z
hiven/types/user.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
4
2021-08-25T16:37:44.000Z
2021-09-10T11:31:14.000Z
class UserSchema: id: str username: str name: str flags: int icon: str header: str bio: str website: str location: str application: str class User: def __init__(self, user: UserSchema, client): self.id = user.get("id") self.username = user.ge...
25.807692
51
0.555887
1a608e73ff878deb67f077b57cca5ee993cc64af
19,745
py
Python
airflow_client/client/model/extra_link.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/client/model/extra_link.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
airflow_client/client/model/extra_link.py
sptsakcg/airflow-client-python
38a14e8641988f8cc88a5b27632ef4198bdb2843
[ "Apache-2.0" ]
null
null
null
""" Airflow API (Stable) # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means t...
72.326007
8,098
0.648316
1a6095b1f94945315f4c3631521a8cf83a139997
5,086
py
Python
src/database.py
ybdarrenwang/DuplicatedPhotoFinder
ef88ed3b5ef689ebf6ae19dd97b6cb813c0ea47c
[ "BSD-3-Clause" ]
2
2019-06-05T11:29:38.000Z
2019-11-18T03:00:32.000Z
src/database.py
ybdarrenwang/DuplicatedPhotoFinder
ef88ed3b5ef689ebf6ae19dd97b6cb813c0ea47c
[ "BSD-3-Clause" ]
null
null
null
src/database.py
ybdarrenwang/DuplicatedPhotoFinder
ef88ed3b5ef689ebf6ae19dd97b6cb813c0ea47c
[ "BSD-3-Clause" ]
null
null
null
import os, sys, re, math, datetime import numpy as np from scipy.spatial import distance import cv2 import Tkinter, tkMessageBox from config import * reload(sys) sys.setdefaultencoding('utf-8') class Photo: """ A structure maintaining photo related attributes. # Member objects path: Photo file path. ...
39.123077
209
0.595556
1a60ae279abfdf6df5d6b94d6db183b3eae4e30b
7,299
py
Python
BGWpy/BGW/sigmatask.py
jonahhaber/BGWpy
03ae0df2c7ddad833f679a69908abcb7b4adf9a2
[ "BSD-3-Clause-LBNL" ]
null
null
null
BGWpy/BGW/sigmatask.py
jonahhaber/BGWpy
03ae0df2c7ddad833f679a69908abcb7b4adf9a2
[ "BSD-3-Clause-LBNL" ]
null
null
null
BGWpy/BGW/sigmatask.py
jonahhaber/BGWpy
03ae0df2c7ddad833f679a69908abcb7b4adf9a2
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import print_function import os from .bgwtask import BGWTask from .kgrid import KgridTask, get_kpt_grid from .inputs import SigmaInput # Public __all__ = ['SigmaTask'] class SigmaTask(BGWTask): """Self-energy calculation.""" _TASK_NAME = 'Sigma' _input_fname = 'sigma.inp' _ou...
30.668067
90
0.588848
1a60e9ce3db78c0a31c684009ccc360f73667625
38,700
py
Python
UI/UI.py
sapzxc/UT330B
ebd11ecf36f757f9d44fe65a9f5497c786d47dcd
[ "MIT" ]
null
null
null
UI/UI.py
sapzxc/UT330B
ebd11ecf36f757f9d44fe65a9f5497c786d47dcd
[ "MIT" ]
null
null
null
UI/UI.py
sapzxc/UT330B
ebd11ecf36f757f9d44fe65a9f5497c786d47dcd
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Mar 8 16:20:49 2017 @author: mikewoodward This should probably be broken up into seperate objects, one for each tab. The connect and discionnect buttions are similar, so they should all probably map to the same functions. """ # =====================...
37.756098
79
0.521292
1a61054ffd12634dc10980ae0607e334b2351523
878
py
Python
src/model/metrics/auc.py
AlfredWGA/House-Property-QA
47fed327b1714e417e56a88e67af7486e8118b2c
[ "MIT" ]
null
null
null
src/model/metrics/auc.py
AlfredWGA/House-Property-QA
47fed327b1714e417e56a88e67af7486e8118b2c
[ "MIT" ]
null
null
null
src/model/metrics/auc.py
AlfredWGA/House-Property-QA
47fed327b1714e417e56a88e67af7486e8118b2c
[ "MIT" ]
null
null
null
"""Precision for ranking.""" import numpy as np from matchzoo.engine.base_metric import BaseMetric from sklearn.metrics import auc, roc_auc_score class AUC(BaseMetric): """Precision metric.""" ALIAS = 'auc' def __init__(self, k: int = 1, threshold: float = 0.5): """ :class:`PrecisionMetr...
27.4375
68
0.634396
1a61072ec8ed9f9d4e200c1255ac6099ed0af202
3,288
py
Python
cloudmesh_cmd3/plugins/cm_shell_admin.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh_cmd3/plugins/cm_shell_admin.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh_cmd3/plugins/cm_shell_admin.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from cmd3.shell import command from cloudmesh.server.database import Database from cmd3.console import Console from cloudmesh_admin.server_admin import cloudmesh_server class cm_shell_admin: def activate_cm_shell_admin(self): self.register_command_topic('cloud', 'ad...
28.102564
80
0.486922
1a6113bad1610a82b6a111365c2a86b31c7d4e10
3,035
py
Python
augly/text/__init__.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
augly/text/__init__.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
augly/text/__init__.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. from augly.text.composition import Compose, OneOf from augly.text.functional import ( apply_lambda, change_case, contractions, get_baseline, insert_punctuation_chars, insert_whitespace_chars, insert_zero_width_chars, ...
25.720339
50
0.738056
1a6183b1b829e0daea5e68b9a177a412fe19f9f8
1,241
py
Python
app/dao/service_inbound_api_dao.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
app/dao/service_inbound_api_dao.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
app/dao/service_inbound_api_dao.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
from datetime import datetime from app import create_uuid, db from app.dao.dao_utils import transactional, version_class from app.models import ServiceInboundApi @transactional @version_class(ServiceInboundApi) def save_service_inbound_api(service_inbound_api): service_inbound_api.id = create_uuid() service_...
31.025
102
0.817889
1a619d111abcef1160fe348434265d9ae5020079
279
py
Python
didel/__init__.py
bfontaine/didelcli
c3f36d8597819c9dec40318c220e86cb9c87d4c3
[ "MIT" ]
null
null
null
didel/__init__.py
bfontaine/didelcli
c3f36d8597819c9dec40318c220e86cb9c87d4c3
[ "MIT" ]
4
2015-01-30T22:28:15.000Z
2019-10-03T05:29:27.000Z
didel/__init__.py
bfontaine/didelcli
c3f36d8597819c9dec40318c220e86cb9c87d4c3
[ "MIT" ]
1
2015-01-28T14:08:15.000Z
2015-01-28T14:08:15.000Z
# -*- coding: UTF-8 -*- __version__ = '0.1.2' # Shortcuts from didel.courses import Course, CourseAssignment, CourseAssignments from didel.session import Session from didel.student import Student # silent Pyflakes Course, CourseAssignment, CourseAssignments, Session, Student
23.25
69
0.784946
1a61d53ec9ee1278b6958841eeac9dd967e60a67
142
py
Python
src/bromine/element/__init__.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
2
2018-09-20T12:37:01.000Z
2021-08-30T14:44:25.000Z
src/bromine/element/__init__.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
null
null
null
src/bromine/element/__init__.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
null
null
null
from .locator import Locator, LocatorBy, XPath, LocatorChain from .base import Element from .web_element import WebElement, ElementCollection
35.5
60
0.838028
1a61d9310468f73e4c483f745dc73d741c9e22b3
179
py
Python
catalyst/contrib/nn/optimizers/__init__.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
46
2020-03-27T20:12:32.000Z
2021-11-21T19:08:51.000Z
catalyst/contrib/nn/optimizers/__init__.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
2
2020-04-06T10:43:04.000Z
2020-07-01T18:26:10.000Z
catalyst/contrib/nn/optimizers/__init__.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
5
2020-04-17T14:09:53.000Z
2021-05-10T08:58:29.000Z
# flake8: noqa from torch.optim import * from .lamb import Lamb from .lookahead import Lookahead from .qhadamw import QHAdamW from .radam import RAdam from .ralamb import Ralamb
19.888889
32
0.793296
1a61e7b34b2fa85b12cef1088417b8e109070909
162
py
Python
query/__init__.py
loleg/swipeat-backend
ba0e250283226b36a690e12f8989e13ae2231b7e
[ "BSD-3-Clause" ]
null
null
null
query/__init__.py
loleg/swipeat-backend
ba0e250283226b36a690e12f8989e13ae2231b7e
[ "BSD-3-Clause" ]
null
null
null
query/__init__.py
loleg/swipeat-backend
ba0e250283226b36a690e12f8989e13ae2231b7e
[ "BSD-3-Clause" ]
null
null
null
# Import query from query.meals import Meals from query.ingredients import Ingredients from query.food2fork import Food2fork from query.openfood import OpenFood
23.142857
41
0.845679
1a621154a18cb079922f5a28f542e4ec0f1e7fe3
6,672
py
Python
hyperminhash/hyperminhash.py
mibarg/py-hyperminhash
2a8003cfea6871a12558cfab6536c1dcd96021c1
[ "MIT" ]
1
2020-07-01T10:25:39.000Z
2020-07-01T10:25:39.000Z
hyperminhash/hyperminhash.py
mbrg/py-hyperminhash
2a8003cfea6871a12558cfab6536c1dcd96021c1
[ "MIT" ]
2
2020-07-10T17:09:46.000Z
2020-07-11T12:05:09.000Z
hyperminhash/hyperminhash.py
mbrg/py-hyperminhash
2a8003cfea6871a12558cfab6536c1dcd96021c1
[ "MIT" ]
null
null
null
from typing import Tuple, Union import numpy as np import metrohash from cached_property import cached_property import logging def _leading_zeros64(x: np.uint64, num_bits: int = 64) -> int: """ LeadingZeros64 returns the number of leading zero bits in x; the result is 64 for x == 0. """ return (np....
31.032558
137
0.542416
1a6232e4acdb0294a24d79afe75cc58d371e341f
2,825
py
Python
examples/3-nans_in_data.py
GIRIJA-KALYANI/pyclits
48aa6973c3511b735437c4d3fd9c7502941377e6
[ "MIT" ]
11
2018-09-19T23:30:56.000Z
2021-12-15T10:58:57.000Z
examples/3-nans_in_data.py
GIRIJA-KALYANI/pyclits
48aa6973c3511b735437c4d3fd9c7502941377e6
[ "MIT" ]
4
2019-09-13T23:43:37.000Z
2022-01-17T09:36:18.000Z
examples/3-nans_in_data.py
GIRIJA-KALYANI/pyclits
48aa6973c3511b735437c4d3fd9c7502941377e6
[ "MIT" ]
3
2019-10-05T08:41:09.000Z
2021-12-03T00:17:04.000Z
""" Examples for pyCliTS -- https://github.com/jajcayn/pyclits """ # import modules import pyclits as clt from datetime import date import matplotlib # change for your favourite backend matplotlib.use('TKAgg') import matplotlib.pyplot as plt import numpy as np # lets import some data from scratch without data loader ...
43.461538
131
0.729912
1a623db94bbcad9bc4f396dbcae4296bfe34bd2a
20,650
py
Python
NavPython/IronPython/Lib/asyncore.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
76
2015-12-20T16:56:37.000Z
2021-12-13T09:40:48.000Z
NavPython/IronPython/Lib/asyncore.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
20
2015-04-20T12:09:12.000Z
2022-03-12T01:25:04.000Z
NavPython/IronPython/Lib/asyncore.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
24
2015-07-22T08:08:54.000Z
2021-12-28T06:56:09.000Z
# -*- Mode: Python -*- # Id: asyncore.py,v 2.51 2000/09/07 22:29:26 rushing Exp # Author: Sam Rushing <rushing@nightmare.com> # ====================================================================== # Copyright 1996 by Sam Rushing # # All Rights Reserved # # Permission to use, copy, modify,...
31.478659
80
0.556077
1a62401ef1c2db21b7684dd161454b868492f0bd
1,103
py
Python
esst/atis/config.py
etcher-be/esst
ac41cd0c07af8ca8532997f533756c529c9609a4
[ "MIT" ]
4
2018-06-24T14:03:44.000Z
2019-01-21T01:20:02.000Z
esst/atis/config.py
etcher-be/esst
ac41cd0c07af8ca8532997f533756c529c9609a4
[ "MIT" ]
106
2018-06-24T13:59:52.000Z
2019-11-26T09:05:14.000Z
esst/atis/config.py
theendsofinvention/esst
ac41cd0c07af8ca8532997f533756c529c9609a4
[ "MIT" ]
null
null
null
# coding=utf-8 """ Manages config params for ATIS """ import elib_config from esst.sentry.sentry_context import SentryConfigContext class ATISConfig(SentryConfigContext): """ Configuration for the ATIS package """ ATIS_CREATE = elib_config.ConfigValueBool( 'atis', 'create', descript...
30.638889
109
0.644606
1a624af479f26790916f4299f712c0a730b908c2
2,979
py
Python
aops-cli/aops_cli/base_cmd.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
aops-cli/aops_cli/base_cmd.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
aops-cli/aops_cli/base_cmd.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
32.032258
100
0.586103
1a625365d41ad699c3af905f60030328477f5682
419
py
Python
experiments/clbpips/generate.py
TomKeddie/prjxray
c5c4a2dfd838aadc663212e28321fd1c6f299a3c
[ "ISC" ]
1
2019-05-25T16:50:52.000Z
2019-05-25T16:50:52.000Z
experiments/clbpips/generate.py
TomKeddie/prjxray
c5c4a2dfd838aadc663212e28321fd1c6f299a3c
[ "ISC" ]
null
null
null
experiments/clbpips/generate.py
TomKeddie/prjxray
c5c4a2dfd838aadc663212e28321fd1c6f299a3c
[ "ISC" ]
null
null
null
#!/usr/bin/env python3 import sys, re from prjxray.segmaker import Segmaker segmk = Segmaker("design.bits") print("Loading tags from design.txt.") with open("design.txt", "r") as f: for line in f: line, active = line.split() tile, pip = line.split("/") _, pip = pip.split(".") pr...
19.952381
44
0.613365
1a626eeb888ceeb0061a9f08c2f9e2e037c5bb27
12,074
py
Python
vta/python/vta/graph.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
vta/python/vta/graph.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
vta/python/vta/graph.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...
36.149701
82
0.573464
1a626ffab623a4f161aa7d68fbeffab247f0d4bc
450
py
Python
run.py
yuiant/omeganlp
4258958b6d84a664d6fca0ca32a927a725b392c4
[ "MIT" ]
9
2022-02-12T07:17:52.000Z
2022-02-14T04:46:21.000Z
run.py
yuiant/omeganlp
4258958b6d84a664d6fca0ca32a927a725b392c4
[ "MIT" ]
null
null
null
run.py
yuiant/omeganlp
4258958b6d84a664d6fca0ca32a927a725b392c4
[ "MIT" ]
2
2022-02-13T16:14:49.000Z
2022-02-14T04:46:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import hydra from omegaconf import DictConfig from pytorch_lightning import seed_everything from omeganlp.task import Task @hydra.main(config_path="./configs", config_name="config.yaml") def main(config: DictConfig): seed_everything(config.seed) task = Task.lo...
18
63
0.695556
1a62d02ca58fea5bfd949d5741ecf4855c3993c4
1,112
py
Python
tests/transformations/tiling_number_of_tiles_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
tests/transformations/tiling_number_of_tiles_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
tests/transformations/tiling_number_of_tiles_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace import numpy as np from dace.transformation.dataflow import StripMining N = dace.symbol('N') @dace.program(dace.float64, dace.float64[N], dace.float64[N]) def axpy(A, X, Y): @dace.map(_[0:N]) def multiplication(i): ...
25.860465
79
0.564748
1a62d2f8ca5cb0161e314cff4559311b1bc70690
234
py
Python
drivers/plot_vtangential_projection_check.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
drivers/plot_vtangential_projection_check.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
drivers/plot_vtangential_projection_check.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
import os import earhart.plotting as ep from earhart.paths import RESULTSDIR PLOTDIR = os.path.join(RESULTSDIR, 'vtangential_projection') if not os.path.exists(PLOTDIR): os.mkdir(PLOTDIR) ep.plot_vtangential_projection(PLOTDIR)
23.4
60
0.803419
1a62dd338db9e3309f7927ed2198a73508b77c40
518
py
Python
tests/test_undos/test_coreutils/test_link.py
joshmeranda/undo
f54581223c0c157702dda6124691bb40fa2e2b31
[ "MIT" ]
null
null
null
tests/test_undos/test_coreutils/test_link.py
joshmeranda/undo
f54581223c0c157702dda6124691bb40fa2e2b31
[ "MIT" ]
null
null
null
tests/test_undos/test_coreutils/test_link.py
joshmeranda/undo
f54581223c0c157702dda6124691bb40fa2e2b31
[ "MIT" ]
null
null
null
import unittest from tests.test_undos.test_coreutils import common from undo import expand, resolve class TestLink(unittest.TestCase): def test_link(self): command = "link SOURCE DEST" expected = ["rm DEST"] actual = [expand.expand(undo, env, ("%", "%"), "; ") for env, ...
24.666667
92
0.623552
1a631b35d8b1d4f02f233e61df32b6a4ead1d289
11,112
py
Python
xcessiv/functions.py
KhaledTo/xcessiv
a48dff7d370c84eb5c243bde87164c1f5fd096d5
[ "Apache-2.0" ]
1,362
2017-05-23T15:02:18.000Z
2022-03-28T22:42:21.000Z
xcessiv/functions.py
KhaledTo/xcessiv
a48dff7d370c84eb5c243bde87164c1f5fd096d5
[ "Apache-2.0" ]
40
2017-05-23T17:59:05.000Z
2019-07-03T13:08:14.000Z
xcessiv/functions.py
KhaledTo/xcessiv
a48dff7d370c84eb5c243bde87164c1f5fd096d5
[ "Apache-2.0" ]
123
2017-05-24T05:49:34.000Z
2022-02-06T17:54:32.000Z
from __future__ import absolute_import, print_function, division, unicode_literals import imp import sys import os import hashlib import json import numpy as np from sqlalchemy import create_engine from sqlalchemy.orm import Session from six import exec_, iteritems from sklearn import datasets from sklearn import model...
34.08589
96
0.662977
1a631b9a5e416f83dafecf4f3e7b1f03d6b96aa2
10,725
py
Python
scripts/inference_evaluation/visualize_tf2oda_csv_detections.py
embedded-machine-learning/scripts-and-guides
3ec79f84a68ef3e19ee6124f59178cfca6c3935b
[ "MIT" ]
3
2020-12-04T09:38:12.000Z
2021-11-24T15:28:54.000Z
scripts/inference_evaluation/visualize_tf2oda_csv_detections.py
embedded-machine-learning/scripts-and-guides
3ec79f84a68ef3e19ee6124f59178cfca6c3935b
[ "MIT" ]
11
2020-12-14T15:09:55.000Z
2021-05-20T06:50:30.000Z
scripts/inference_evaluation/visualize_tf2oda_csv_detections.py
embedded-machine-learning/scripts-and-guides
3ec79f84a68ef3e19ee6124f59178cfca6c3935b
[ "MIT" ]
4
2020-12-15T14:08:23.000Z
2021-12-02T14:44:34.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Visualize detections made by tensorflow. License_info: # ============================================================================== # ISC License (ISC) # Copyright 2021 Christian Doppler Laboratory for Embedded Machine Learning # # Permission to use, copy, modify,...
35.04902
119
0.654545
1a6335710a3e10193e5263c4bed0157fde845934
82
py
Python
easy_efficientdet/training.py
waldemarmeier/easy-efficientdet
1329f497fdfd0542ee0db074020c4db351b1aa57
[ "Apache-2.0" ]
null
null
null
easy_efficientdet/training.py
waldemarmeier/easy-efficientdet
1329f497fdfd0542ee0db074020c4db351b1aa57
[ "Apache-2.0" ]
null
null
null
easy_efficientdet/training.py
waldemarmeier/easy-efficientdet
1329f497fdfd0542ee0db074020c4db351b1aa57
[ "Apache-2.0" ]
null
null
null
from easy_efficientdet._third_party.training import CosineLrSchedule # noqa F401
41
81
0.865854
1a636f9b7e99672308929340eda9e96512ed578b
13,071
py
Python
keystone/common/base64utils.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/common/base64utils.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/common/base64utils.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
1
2020-07-02T09:12:28.000Z
2020-07-02T09:12:28.000Z
# Copyright 2013 Red Hat, 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 applicable law or agre...
32.924433
78
0.677454
1a6377ca892c422ed63729f7c34b80e36a67330c
847
py
Python
library_app/models/borrowing.py
V-Kopio/django-library-manager
04431a61d8e794434bb66db313755efc80cdc795
[ "MIT" ]
null
null
null
library_app/models/borrowing.py
V-Kopio/django-library-manager
04431a61d8e794434bb66db313755efc80cdc795
[ "MIT" ]
15
2018-05-19T20:41:04.000Z
2018-07-19T20:12:00.000Z
library_app/models/borrowing.py
V-Kopio/django-library-manager
04431a61d8e794434bb66db313755efc80cdc795
[ "MIT" ]
1
2021-05-24T06:18:51.000Z
2021-05-24T06:18:51.000Z
from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from library_app.models import Book, LibraryUser from ._base import BaseModel class Borrowing(BaseModel): due_date = models.DateField() book = models.OneToOneField(Book, on_delete=models.CASCADE) ...
36.826087
114
0.754427
1a637b1d1e28bcff287c5057fdec6fc2d6827ea8
5,078
py
Python
dliplib/reconstructors/dip.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
dliplib/reconstructors/dip.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
dliplib/reconstructors/dip.py
oterobaguer/ct-dip-benchmark
0539c284c94089ed86421ea0892cd68aa1d0575a
[ "Apache-2.0" ]
null
null
null
from warnings import warn from tqdm import tqdm import torch import numpy as np from torch.optim import Adam from torch.optim.lr_scheduler import StepLR from torch.nn import MSELoss from odl.contrib.torch import OperatorModule from dival import IterativeReconstructor from dliplib.utils.losses import poisson_loss, tv...
34.544218
110
0.593738
1a638ece979e157c0b514e194ca40256cf801e84
390
py
Python
examples/monitor.py
webclinic017/harvest
70c8de717b816fedb32c4d0c88b5544d874083e2
[ "MIT" ]
83
2021-06-25T22:35:46.000Z
2022-03-30T23:34:00.000Z
examples/monitor.py
webclinic017/harvest
70c8de717b816fedb32c4d0c88b5544d874083e2
[ "MIT" ]
169
2021-06-26T03:57:02.000Z
2022-03-11T11:50:09.000Z
examples/monitor.py
webclinic017/harvest
70c8de717b816fedb32c4d0c88b5544d874083e2
[ "MIT" ]
20
2021-06-28T07:00:24.000Z
2022-03-22T21:23:36.000Z
""" This code monitors a given stock/crypto symbol. """ from harvest.algo import BaseAlgo from harvest.trader import PaperTrader class Watch(BaseAlgo): def config(self): self.watchlist = ["@BTC"] self.interval = "1MIN" def main(self): print(self.get_asset_price()) if __name__ == "__...
17.727273
47
0.641026
1a63c20523d8aab014976787031c59dd08be8df6
565
py
Python
src/common/__init__.py
vsbogd/language-learning
601e7bc7f97a0b6c1f713f8108fc6e81d492e921
[ "MIT" ]
21
2018-01-30T08:18:20.000Z
2020-02-18T08:15:53.000Z
src/common/__init__.py
vsbogd/language-learning
601e7bc7f97a0b6c1f713f8108fc6e81d492e921
[ "MIT" ]
3
2018-02-09T18:22:45.000Z
2018-07-10T10:31:25.000Z
src/common/__init__.py
vsbogd/language-learning
601e7bc7f97a0b6c1f713f8108fc6e81d492e921
[ "MIT" ]
10
2018-01-30T10:31:43.000Z
2021-01-26T07:54:24.000Z
from .absclient import * from .cliutils import * from .dirhelper import * from .fileconfman import * from .parsemetrics import * from .tokencount import * from .sentencecount import * from .sedcommands import * from .optconst import * __all__ = [] __all__.extend(absclient.__all__) __all__.extend(cliutils.__all__) __al...
26.904762
37
0.812389
1a63c44ec8072d3b16de8e783b330da35d88096c
6,844
py
Python
dapy/models/spatial.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
11
2020-07-29T07:46:39.000Z
2022-03-17T01:28:07.000Z
dapy/models/spatial.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
1
2020-07-14T11:49:17.000Z
2020-07-29T07:43:22.000Z
dapy/models/spatial.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
10
2020-07-14T11:34:24.000Z
2022-03-07T09:08:12.000Z
"""Mix-in for spatially extended state-space models.""" from typing import Tuple, Sequence, Optional, Union import numpy as np class SpatiallyExtendedModelMixIn: """Mix-in class for spatially extended state-space models.""" def __init__( self, mesh_shape: Tuple[int, ...], domain_exte...
42.509317
87
0.63384
1a63c8fa57e6df1be9938ec129d68fb7d5bc896f
3,386
py
Python
ReadMailWindow.py
misterlihao/network-programming-project
f2213ff92a60bce2849116819326ec04ee67f0cf
[ "MIT" ]
null
null
null
ReadMailWindow.py
misterlihao/network-programming-project
f2213ff92a60bce2849116819326ec04ee67f0cf
[ "MIT" ]
1
2015-05-14T13:29:40.000Z
2015-05-14T13:29:40.000Z
ReadMailWindow.py
misterlihao/network-programming-project
f2213ff92a60bce2849116819326ec04ee67f0cf
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter.scrolledtext import ScrolledText from tkinter.constants import HORIZONTAL import SendMailWindow as smw '''parameters''' '''sender:string of mail from who''' '''topic:string of mail's topic''' '''text:string of mail's text''' class ReadMailWindow: def __init__(self, receiver='Defau...
47.027778
193
0.679563
1a63e95ffb2bf8ffbb86d4f55fce09c6eb1b34f8
397
py
Python
sorting/sort_chars.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
sorting/sort_chars.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
sorting/sort_chars.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
def sort_chars(s): count = [0 for _ in range(0,256)] for c in s: count[int(ord(c))] += 1 slist = [] for i in range(0,256): while(count[i]): slist.append(chr(i)) count[i] -= 1 return "".join(slist) print(sort_chars("bcdedfa")) print(sort_chars("abd")) pr...
17.26087
37
0.556675
1a63f9adeda3bf3ef3b7a96a5489d0704292c2f8
651
py
Python
pystratis/api/node/requestmodels/__init__.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
pystratis/api/node/requestmodels/__init__.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
pystratis/api/node/requestmodels/__init__.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
from .decoderawtransactionrequest import DecodeRawTransactionRequest from .getblockheaderrequest import GetBlockHeaderRequest from .getrawtransactionrequest import GetRawTransactionRequest from .gettxoutrequest import GetTxOutRequest from .gettxoutproofrequest import GetTxOutProofRequest from .logrulesrequest import Lo...
46.5
130
0.866359
1a6402e30ed0550b4440a2add103c36d886bfd15
9,083
py
Python
alipay/aop/api/domain/AlipayMarketingCashlessticketTemplateCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayMarketingCashlessticketTemplateCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayMarketingCashlessticketTemplateCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayMarketingCashlessticketTemplateCreateModel(object): def __init__(self): self._amount = None self._brand_name = None self._extension_info = None self._group_c...
34.146617
93
0.616646
1a642edf4f5a7f949eca3527707f1e35b721eada
5,567
py
Python
neuro-cli/tests/unit/formatters/test_bucket_credentials.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
11
2020-10-11T15:38:11.000Z
2021-11-09T11:29:50.000Z
neuro-cli/tests/unit/formatters/test_bucket_credentials.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
611
2020-09-30T21:27:52.000Z
2022-01-10T10:44:44.000Z
neuro-cli/tests/unit/formatters/test_bucket_credentials.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
1
2020-10-05T15:10:24.000Z
2020-10-05T15:10:24.000Z
from typing import Any, Awaitable, Callable, List, Tuple import pytest from dateutil.parser import isoparse from neuro_sdk import Bucket, BucketCredentials, PersistentBucketCredentials from neuro_cli.formatters.bucket_credentials import ( BucketCredentialFormatter, BucketCredentialsFormatter, SimpleBucke...
30.255435
76
0.510868
1a645b93e14ea232c735d8b6bddf62a46d6073ab
1,889
py
Python
src/sardana/test/test_sardanabuffer.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/test/test_sardanabuffer.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/test/test_sardanabuffer.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
34.981481
79
0.637904
1a645cd929a35c223381f0141b56461ce5d49c56
931
py
Python
revelation/execute_branch.py
futurecore/revelation
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
4
2015-09-21T13:52:33.000Z
2016-12-29T23:24:51.000Z
revelation/execute_branch.py
futurecore/revelation
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
59
2015-07-17T01:09:12.000Z
2016-09-19T13:32:19.000Z
revelation/execute_branch.py
futurecore/epiphany-simulator
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
1
2015-08-01T00:42:03.000Z
2015-08-01T00:42:03.000Z
from revelation.condition_codes import condition_passed from revelation.registers import reg_map from revelation.utils import signed, sext_8, sext_24, trim_32 def make_bcond_executor(is16bit): def execute_bcond(s, inst): """ B<COND>: IF (Passed)<COND>)) then PC = PC + (Sign...
32.103448
91
0.549946
1a647e9031e0dbb7816f5fe04538c28543d0f674
3,991
py
Python
alipay/aop/api/request/AlipayPcreditLoanCommissionQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayPcreditLoanCommissionQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayPcreditLoanCommissionQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayPcreditLoanCommissionQueryModel import AlipayPcreditLoanCommissionQueryModel class AlipayPcreditLoanCommissionQueryRequest(obj...
27.524138
148
0.646455
1a647edad95b840f331dfebc26cbca89914a604d
3,782
py
Python
test/domain_types/test_multipointseries.py
covjson/covjson-validator
97b6ee445bfcc70ad73d731dce3d67aa4aafaf3a
[ "BSD-3-Clause" ]
null
null
null
test/domain_types/test_multipointseries.py
covjson/covjson-validator
97b6ee445bfcc70ad73d731dce3d67aa4aafaf3a
[ "BSD-3-Clause" ]
6
2022-02-02T16:52:33.000Z
2022-02-09T09:40:50.000Z
test/domain_types/test_multipointseries.py
covjson/covjson-validator
97b6ee445bfcc70ad73d731dce3d67aa4aafaf3a
[ "BSD-3-Clause" ]
null
null
null
# Pytests to test the MultiPointSeries domain type in the domain.json schema file import pytest from jsonschema.exceptions import ValidationError pytestmark = pytest.mark.schema("/schemas/domain") @pytest.mark.exhaustive def test_valid_multipointseries_domain(validator, multipointseries_domain): ''' Tests an ex...
35.018519
88
0.732946
1a648fe1f9e475c88b76c203fb9dac3be3dad5d1
2,391
py
Python
saf/linear/fluxapproximatorllf.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/linear/fluxapproximatorllf.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/linear/fluxapproximatorllf.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
import numpy as np class FluxApproximatorLLF: """ Flux approximator using local Lax--Friedrics (LF) flux. Approximates flux $H$ in the equations $$ \frac{dz}{dt} = -\widehat H(z, \frac{dz^+}{dx}, \frac{dz^-}{dx}), $$ where $z \in \mathbb R^N$. Approximation of the flux $H$ is given by $\widehat ...
31.88
79
0.598076
1a649aecbc10a0aabb68921af89e6aa5efbdf443
5,963
py
Python
CORE/engines/weights.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
15
2017-11-08T10:03:26.000Z
2021-12-21T07:02:44.000Z
CORE/engines/weights.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
9
2020-01-17T15:09:22.000Z
2022-03-25T19:02:05.000Z
CORE/engines/weights.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ################################################################################## # File: c:\Projects\KENYA ONE PROJECT\CORE\engines\weights.py # # Project: c:\Projects\KENYA ONE PROJECT\CORE\engines # # Created Date: Thur...
45.519084
83
0.469562
1a64ac64d02074a26ce3d9184a9295c2d555426b
901
py
Python
examples/resolve_names.py
msabramo/diesel
a1ed7ed0358d0fec8592e23aafc3b7ec167ab649
[ "BSD-3-Clause" ]
224
2015-01-03T06:33:05.000Z
2021-11-22T03:19:02.000Z
examples/resolve_names.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
12
2015-01-01T03:35:15.000Z
2021-05-22T23:37:28.000Z
examples/resolve_names.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
37
2015-01-04T01:47:55.000Z
2022-03-03T02:04:15.000Z
from diesel import resolve_dns_name, DNSResolutionError from diesel import Application, Loop, sleep def resolve_the_google(): print 'started resolution!' g_ip = resolve_dns_name("www.google.com") print "www.google.com's ip is %s" % g_ip try: bad_host = "www.g8asdf21oogle.com" print "now...
29.064516
72
0.675916
1a64f06cbc7cd88c289ae7edf130e584c4ccebe5
8,377
py
Python
utils/im_processing.py
QUVA-Lab/Long-term-Siamese-Tracker
d67cfbecc3f81339aa3b019ca65733dfd84d3499
[ "BSD-2-Clause-FreeBSD" ]
4
2019-02-05T13:54:12.000Z
2020-02-27T09:03:46.000Z
utils/im_processing.py
QUVA-Lab/Long-term-Siamese-Tracker
d67cfbecc3f81339aa3b019ca65733dfd84d3499
[ "BSD-2-Clause-FreeBSD" ]
1
2019-11-19T00:52:47.000Z
2019-11-19T00:52:47.000Z
utils/im_processing.py
QUVA-Lab/Long-term-Siamese-Tracker
d67cfbecc3f81339aa3b019ca65733dfd84d3499
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -------------------------------------------------------- # Copyright (c) 2018 University of Amsterdam # Written by Ran Tao # -------------------------------------------------------- from PIL import Image, ImageOps import numpy as np import torch from torchvision import transforms def process_im_single_crop_for_ne...
36.107759
168
0.699415
1a64f2c912959cb67bb0acc51816fb23ef7c5be8
3,006
py
Python
marvelapiwrapper/entity.py
thendo-rambs/marvelapi
0b63fb560e89e88d15e6fbb2b2b54db8ee6a9921
[ "MIT" ]
null
null
null
marvelapiwrapper/entity.py
thendo-rambs/marvelapi
0b63fb560e89e88d15e6fbb2b2b54db8ee6a9921
[ "MIT" ]
null
null
null
marvelapiwrapper/entity.py
thendo-rambs/marvelapi
0b63fb560e89e88d15e6fbb2b2b54db8ee6a9921
[ "MIT" ]
null
null
null
"""Entity. This module implements the class Entity as given by the Marvel API (https://developer.marvel.com). The class is implemented as a magic class with its attributes automatically created at instantialisation """ import json class Entity(): """A representation of the different entities a result from api ...
34.551724
79
0.587824