hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7982d122e6b4b0f1c01e5685de02f090bd0d7420
1,030
py
Python
craynn/subnetworks/maxout_nets.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
craynn/subnetworks/maxout_nets.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
craynn/subnetworks/maxout_nets.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
import theano.tensor as T from ..layers import * from ..layers.conv_ops import get_conv_nonlinearity __all__ = [ 'maxout2d', 'maxdropout2d' ] def _maxout(incoming, conv_op, pool_size=5, f=None): f = get_conv_nonlinearity(f) return nonlinearity(f)( feature_pool(pool_size, f=T.max)(conv_op(incoming)) ) ...
23.953488
92
0.68932
7982d1bfa0c3d1ffdd900de3ee7de65837bf34c9
85
py
Python
django_gotolong/mfund/apps.py
ParikhKadam/gotolong
839beb8aa37055a2078eaa289b8ae05b62e8905e
[ "BSD-2-Clause", "BSD-3-Clause" ]
15
2019-12-06T16:19:45.000Z
2021-08-20T13:22:22.000Z
django_gotolong/mfund/apps.py
ParikhKadam/gotolong
839beb8aa37055a2078eaa289b8ae05b62e8905e
[ "BSD-2-Clause", "BSD-3-Clause" ]
14
2020-12-08T10:45:05.000Z
2021-09-21T17:23:45.000Z
django_gotolong/mfund/apps.py
ParikhKadam/gotolong
839beb8aa37055a2078eaa289b8ae05b62e8905e
[ "BSD-2-Clause", "BSD-3-Clause" ]
9
2020-01-01T03:04:29.000Z
2021-04-18T08:42:30.000Z
from django.apps import AppConfig class MfundConfig(AppConfig): name = 'mfund'
14.166667
33
0.741176
7982d1eba02a3072a6e63f01f20a9a6d1e489980
4,792
py
Python
Develop/trainNetwork.py
einthomas/CVSP2019-Project-01a-Shot-Type-Classification-dl-based
5fb005e3186127e8d4d5ad2d22e7c13107ae8e21
[ "MIT" ]
2
2020-05-25T09:55:52.000Z
2022-03-11T07:36:48.000Z
Develop/trainNetwork.py
einthomas/CVSP2019-Project-01a-Shot-Type-Classification-dl-based
5fb005e3186127e8d4d5ad2d22e7c13107ae8e21
[ "MIT" ]
2
2021-06-08T20:51:54.000Z
2022-03-12T00:13:38.000Z
Develop/trainNetwork.py
einthomas/CVSP2019-Project-01a-Shot-Type-Classification-dl-based
5fb005e3186127e8d4d5ad2d22e7c13107ae8e21
[ "MIT" ]
null
null
null
import yaml from argparse import ArgumentParser import datetime import tensorflow as tf from keras.utils import to_categorical from keras.preprocessing.image import ImageDataGenerator from shotTypeML_pkg.imageUtil import * from Develop.lr_finder import LRFinder from shotTypeML_pkg.loadModel import * # Fix "failed to ...
43.563636
125
0.704716
7982d1f3ea7b332334671c7559eb5f6317f43eb7
13,259
py
Python
Magnetic circuit/AutoML_SM.py
Duchanoy/ASAMS
829e9c8c32a4d26b3acdc25de95804aa956e44f3
[ "MIT" ]
null
null
null
Magnetic circuit/AutoML_SM.py
Duchanoy/ASAMS
829e9c8c32a4d26b3acdc25de95804aa956e44f3
[ "MIT" ]
null
null
null
Magnetic circuit/AutoML_SM.py
Duchanoy/ASAMS
829e9c8c32a4d26b3acdc25de95804aa956e44f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: def TestData(data): print(type(data)) print(data) castdata=list(data) print(type(castdata)) print(castdata) return False # In[ ]: def AutoSBTest( inputs_train,outputs_train): # firstmodel from sklearn.neural_network import MLPReg...
33.652284
119
0.685874
7982d1f8810cfcb8dfc4e54580358908da78d653
361
py
Python
DSA/math/countPrimes.py
lance-lh/Data-Structures-and-Algorithms
c432654edaeb752536e826e88bcce3ed2ab000fb
[ "MIT" ]
1
2019-03-27T13:00:28.000Z
2019-03-27T13:00:28.000Z
DSA/math/countPrimes.py
lance-lh/Data-Structures-and-Algorithms
c432654edaeb752536e826e88bcce3ed2ab000fb
[ "MIT" ]
null
null
null
DSA/math/countPrimes.py
lance-lh/Data-Structures-and-Algorithms
c432654edaeb752536e826e88bcce3ed2ab000fb
[ "MIT" ]
null
null
null
class Solution: def countPrimes(self, n: int) -> int: if n < 3: return 0 res = [True] * n res[0] = res[1] = False for i in range(2, n // 2 + 1): if res[i] == True: res[i * i: n: i] = [False] * len(res[i * i: n: i]) return sum(res) # tes...
27.769231
66
0.445983
7982d262010306d123049e54e58d3d81c5675b9a
1,733
py
Python
tests/backends/test_http.py
triagemd/stored
a14ba2ed1d646847b37e3dab5c54cac98f33467e
[ "MIT" ]
3
2017-09-29T23:53:20.000Z
2019-08-29T17:22:24.000Z
tests/backends/test_http.py
triagemd/stored
a14ba2ed1d646847b37e3dab5c54cac98f33467e
[ "MIT" ]
3
2017-09-05T02:10:20.000Z
2018-02-20T21:31:16.000Z
tests/backends/test_http.py
triagemd/stored
a14ba2ed1d646847b37e3dab5c54cac98f33467e
[ "MIT" ]
null
null
null
import pytest import os from stored.backends.local import LocalFileStorage from stored.backends.http import HTTPStorage @pytest.fixture def sample_https_url(): return 'https://storage.googleapis.com/stored-http-01de4705-5b30-4631-b04e-c987c1476c4a/foo.tar.gz' @pytest.fixture def sample_http_url(): return '...
32.698113
103
0.74322
7982d29f13c096302d165ae5e68352ebd0513adf
7,705
py
Python
netbox/secrets/api/views.py
orphanedgamboa/netbox
5cdc38ec3adb5278480b267a6c8e674e9d3fca39
[ "Apache-2.0" ]
1
2022-02-18T03:00:08.000Z
2022-02-18T03:00:08.000Z
netbox/secrets/api/views.py
orphanedgamboa/netbox
5cdc38ec3adb5278480b267a6c8e674e9d3fca39
[ "Apache-2.0" ]
1
2021-08-23T15:38:47.000Z
2021-08-23T15:40:10.000Z
netbox/secrets/api/views.py
orphanedgamboa/netbox
5cdc38ec3adb5278480b267a6c8e674e9d3fca39
[ "Apache-2.0" ]
1
2018-12-05T12:03:21.000Z
2018-12-05T12:03:21.000Z
import base64 from Crypto.PublicKey import RSA from django.http import HttpResponseBadRequest from rest_framework.exceptions import ValidationError from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.routers import APIRootView from rest_framework.view...
34.397321
120
0.666061
7982d2dd66ee3a4bcf2c58a9712f55712b65116e
366
py
Python
cafe/migrations/0002_cafe_comment.py
MoGakCo/MogakCo
c0a5c6366179e3e2ad9daeb7cf4c8ca59790ac63
[ "MIT" ]
7
2018-02-06T07:42:20.000Z
2019-03-25T03:49:11.000Z
cafe/migrations/0002_cafe_comment.py
MoGakCo/MogakCo
c0a5c6366179e3e2ad9daeb7cf4c8ca59790ac63
[ "MIT" ]
null
null
null
cafe/migrations/0002_cafe_comment.py
MoGakCo/MogakCo
c0a5c6366179e3e2ad9daeb7cf4c8ca59790ac63
[ "MIT" ]
1
2018-01-21T12:15:00.000Z
2018-01-21T12:15:00.000Z
# Generated by Django 2.0.1 on 2018-01-23 07:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cafe', '0001_initial'), ] operations = [ migrations.AddField( model_name='cafe', name='comment', field=m...
19.263158
47
0.571038
7982d457f26c5cecb13c91ed8e03df0a86605171
1,017
py
Python
setup.py
pi11/vkontakte
87ccd1c031a2ffec35b74fa8a20df20e23db24b1
[ "MIT" ]
null
null
null
setup.py
pi11/vkontakte
87ccd1c031a2ffec35b74fa8a20df20e23db24b1
[ "MIT" ]
null
null
null
setup.py
pi11/vkontakte
87ccd1c031a2ffec35b74fa8a20df20e23db24b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup version = '1.3.6' setup( name='vkontakte', version=version, author='Mikhail Korobov', author_email='kmike84@gmail.com', packages=['vkontakte'], url='http://bitbucket.org/kmike/vkontakte/', license='MIT license', description="vk.com...
30.818182
76
0.603736
7982d5c990d2fdef818106a3b34f805d7bde7cf9
1,587
py
Python
tests/basics/gen_yield_from_close.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
303
2015-07-11T17:12:55.000Z
2018-01-08T03:02:37.000Z
tests/basics/gen_yield_from_close.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
27
2015-01-02T16:17:37.000Z
2015-09-07T19:21:26.000Z
tests/basics/gen_yield_from_close.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
26
2018-01-18T09:15:33.000Z
2022-02-07T13:09:14.000Z
def gen(): yield 1 yield 2 yield 3 yield 4 def gen2(): yield -1 print((yield from gen())) yield 10 yield 11 g = gen2() print(next(g)) print(next(g)) g.close() try: print(next(g)) except StopIteration: print("StopIteration") # Now variation of same test, but with leaf generato...
18.034091
75
0.636421
7982d671b2e77af4d02791c7678b129ab9a42807
15,497
py
Python
chapter09/RandomWalk.py
haoyuan80s/Free_trail
c86ae317e6d1df567fbac6606dee3fdbd864ea82
[ "Apache-2.0" ]
null
null
null
chapter09/RandomWalk.py
haoyuan80s/Free_trail
c86ae317e6d1df567fbac6606dee3fdbd864ea82
[ "Apache-2.0" ]
null
null
null
chapter09/RandomWalk.py
haoyuan80s/Free_trail
c86ae317e6d1df567fbac6606dee3fdbd864ea82
[ "Apache-2.0" ]
null
null
null
####################################################################### # Copyright (C) 2016 Shangtong Zhang(zhangshangtong.cpp@gmail.com) # # Permission given to modify the code as long as you keep this # # declaration at the top # ################################...
34.668904
133
0.621927
7982d6905fc09e51ce5b583e9db894e790625def
3,113
py
Python
python_modules/dagster/dagster_tests/execution_tests/test_event_metadata.py
ymrzkrrs/dagster
b5713af752146674d1f96436d0a01363e6834cb7
[ "Apache-2.0" ]
1
2021-07-03T09:05:58.000Z
2021-07-03T09:05:58.000Z
python_modules/dagster/dagster_tests/execution_tests/test_event_metadata.py
ymrzkrrs/dagster
b5713af752146674d1f96436d0a01363e6834cb7
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
python_modules/dagster/dagster_tests/execution_tests/test_event_metadata.py
ymrzkrrs/dagster
b5713af752146674d1f96436d0a01363e6834cb7
[ "Apache-2.0" ]
1
2021-11-30T21:40:46.000Z
2021-11-30T21:40:46.000Z
import pytest from dagster import ( AssetMaterialization, DagsterEventType, EventMetadata, FloatMetadataEntryData, IntMetadataEntryData, PythonArtifactMetadataEntryData, TextMetadataEntryData, UrlMetadataEntryData, execute_pipeline, pipeline, solid, ) from dagster.core.defini...
29.367925
93
0.673627
7982d69b720dfcac88574e50f42f3662ff3f649d
2,200
py
Python
docs/conf.py
timolesterhuis/diagnostics
b83fcaf853fb4468061e049b430b0d506fef464c
[ "MIT" ]
2
2019-05-01T06:24:06.000Z
2019-05-08T07:23:29.000Z
docs/conf.py
tim00w/diagnostics
b83fcaf853fb4468061e049b430b0d506fef464c
[ "MIT" ]
42
2019-03-12T05:53:48.000Z
2019-07-26T23:59:46.000Z
docs/conf.py
timolesterhuis/diagnostics
b83fcaf853fb4468061e049b430b0d506fef464c
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
31.884058
79
0.675455
7982d6afd8cf365a3503d537b08b621b865bdfcd
1,284
py
Python
iv/Leetcode/easy/563_binary_tree_tilt.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
2
2020-09-19T22:28:15.000Z
2020-10-03T01:44:53.000Z
iv/Leetcode/easy/563_binary_tree_tilt.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
null
null
null
iv/Leetcode/easy/563_binary_tree_tilt.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
1
2020-10-03T01:43:30.000Z
2020-10-03T01:43:30.000Z
class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def findTilt(self, root: TreeNode) -> int: # TODO improve binary tree traversing self.summ = 0 def traversal(root): if...
27.913043
91
0.57866
7982d9479b9359812a60ec4f94013a585e38be63
29
py
Python
modules/tests/project/__init__.py
PeterDaveHello/eden
26174a9dde2f19cd3bc879694f373ad5f765b6ed
[ "MIT" ]
1
2017-11-16T14:50:19.000Z
2017-11-16T14:50:19.000Z
modules/tests/project/__init__.py
PeterDaveHello/eden
26174a9dde2f19cd3bc879694f373ad5f765b6ed
[ "MIT" ]
null
null
null
modules/tests/project/__init__.py
PeterDaveHello/eden
26174a9dde2f19cd3bc879694f373ad5f765b6ed
[ "MIT" ]
1
2019-12-16T15:14:46.000Z
2019-12-16T15:14:46.000Z
from create_project import *
29
29
0.827586
7982d9d835a2b184d651aecbc23e58f072750095
35,492
py
Python
Lib/test/test_contextlib.py
Amandubey34/cpython
732eebea20ad05e17e21715651da16278ca088e2
[ "0BSD" ]
7
2017-10-26T02:49:39.000Z
2021-12-18T05:12:06.000Z
Lib/test/test_contextlib.py
Amandubey34/cpython
732eebea20ad05e17e21715651da16278ca088e2
[ "0BSD" ]
17
2018-09-30T00:28:58.000Z
2022-03-01T19:02:55.000Z
Lib/test/test_contextlib.py
Amandubey34/cpython
732eebea20ad05e17e21715651da16278ca088e2
[ "0BSD" ]
2
2020-10-31T13:04:58.000Z
2020-11-03T08:01:40.000Z
"""Unit tests for contextlib.py, and other context managers.""" import io import sys import tempfile import threading import unittest from contextlib import * # Tests __all__ from test import support from test.support import os_helper import weakref class TestAbstractContextManager(unittest.TestCase): def test...
31.717605
81
0.575369
7982da780d13f1d2a757172cdf61ef795d2ccdf8
6,887
py
Python
Simulation/modules/test_icache.py
fabmoraleshidalgo/Algol
3529c5e9e60dc05b80b21b05f942e2987f2b5c1b
[ "MIT" ]
22
2016-05-30T13:00:10.000Z
2021-11-17T11:06:17.000Z
Simulation/modules/test_icache.py
June34/Algol
3529c5e9e60dc05b80b21b05f942e2987f2b5c1b
[ "MIT" ]
null
null
null
Simulation/modules/test_icache.py
June34/Algol
3529c5e9e60dc05b80b21b05f942e2987f2b5c1b
[ "MIT" ]
12
2016-06-17T01:48:03.000Z
2021-03-14T21:04:02.000Z
#!/usr/bin/env python # Copyright (c) 2015 Angel Terrones (<angelterrones@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 # in the Software without restriction, including without limitation the r...
33.759804
132
0.554959
7982db73c7c64f0e49ba80e0585d0e2017b47ff4
1,510
py
Python
src/test-apps/happy/bin/weave-state.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2021-08-10T12:08:31.000Z
2021-08-10T12:08:31.000Z
src/test-apps/happy/bin/weave-state.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2020-04-30T05:38:44.000Z
2020-04-30T05:38:44.000Z
src/test-apps/happy/bin/weave-state.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2021-03-16T03:22:52.000Z
2021-03-16T03:22:52.000Z
#!/usr/bin/env python # # Copyright (c) 2016-2017 Nest Labs, 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/licen...
26.034483
77
0.631788
7982dd11bb88dd9e1f7ab7632685959beaabc3b7
7,855
py
Python
o-gan.py
HesseSummer/vq-vae-2-pytorch
12281d82b86fd91e56bf5d44802b533429fc7308
[ "MIT" ]
null
null
null
o-gan.py
HesseSummer/vq-vae-2-pytorch
12281d82b86fd91e56bf5d44802b533429fc7308
[ "MIT" ]
null
null
null
o-gan.py
HesseSummer/vq-vae-2-pytorch
12281d82b86fd91e56bf5d44802b533429fc7308
[ "MIT" ]
null
null
null
#! -*- coding: utf-8 -*- import numpy as np import scipy as sp from scipy import misc import glob import imageio from keras.models import Model from keras.layers import * from keras import backend as K from keras.optimizers import RMSprop from keras.callbacks import Callback from keras.initializers import RandomNormal...
32.593361
126
0.587778
7982dd4a16d4b11f56f6a4351becf3084f329a10
18,674
py
Python
pandaserver/taskbuffer/ConBridge.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
7
2015-03-30T14:15:35.000Z
2021-12-22T06:48:22.000Z
pandaserver/taskbuffer/ConBridge.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
16
2015-06-01T13:48:01.000Z
2022-02-08T15:03:32.000Z
pandaserver/taskbuffer/ConBridge.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
15
2015-03-02T08:57:35.000Z
2022-03-01T09:48:45.000Z
import os import sys import time import types import socket import signal import random import threading import traceback try: import cPickle as pickle except ImportError: import pickle from pandaserver.taskbuffer import OraDBProxy as DBProxy from pandaserver.config import panda_config from pandaserver.t...
34.904673
109
0.502838
7982dd50cdb60d2ef3a8e7bf42fb09da0f1969a3
350,819
py
Python
canadapost/canadapost_lib/pickuprequest.py
Purplship/purplship-carriers
dcd044320b86e9af5fe3ef15c36ebf7828b2851b
[ "MIT" ]
2
2021-04-12T22:40:28.000Z
2021-04-21T18:28:31.000Z
canadapost/canadapost_lib/pickuprequest.py
Purplship/purplship-carriers
dcd044320b86e9af5fe3ef15c36ebf7828b2851b
[ "MIT" ]
2
2021-01-29T07:14:31.000Z
2021-02-18T18:29:23.000Z
canadapost/canadapost_lib/pickuprequest.py
Purplship/purplship-carriers
dcd044320b86e9af5fe3ef15c36ebf7828b2851b
[ "MIT" ]
3
2020-09-09T17:04:46.000Z
2021-03-05T00:32:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated Wed Jul 14 15:39:45 2021 by generateDS.py version 2.39.2. # Python 3.8.6 (v3.8.6:db455296be, Sep 23 2020, 13:31:39) [Clang 6.0 (clang-600.0.57)] # # Command line options: # ('--no-namespace-defs', '') # ('-o', './canadapost_lib/pickuprequest.py') # # Com...
51.95779
279
0.638734
7982dd65eed93a0db943a7ae37a35f77b285732c
6,072
py
Python
session9.py
amitkml/EPAI3-AdvancedPython
fbfee70e5a549aea5a146f1884901d47ac0d43d7
[ "Apache-2.0" ]
null
null
null
session9.py
amitkml/EPAI3-AdvancedPython
fbfee70e5a549aea5a146f1884901d47ac0d43d7
[ "Apache-2.0" ]
null
null
null
session9.py
amitkml/EPAI3-AdvancedPython
fbfee70e5a549aea5a146f1884901d47ac0d43d7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jul 6 11:53:11 2021 for Assignment 9 on namedtuple @author: AKayal """ from decimal import * def calculate_random_profile_info(no=10000, convert_nmd_tuple = True): """ this function will call the Faker library to get 10000 random pr...
39.686275
171
0.623188
7982dda36a7dc7f1e7277b72eda016dff3e90225
2,766
py
Python
lifecycle/data/standalone/service_instance.py
mF2C/LifecycleManagement
a9661c6dcaad94564c3e00d6059b9c0713b3f3c0
[ "Apache-2.0" ]
null
null
null
lifecycle/data/standalone/service_instance.py
mF2C/LifecycleManagement
a9661c6dcaad94564c3e00d6059b9c0713b3f3c0
[ "Apache-2.0" ]
18
2017-10-25T08:17:24.000Z
2019-12-10T08:43:45.000Z
lifecycle/data/standalone/service_instance.py
mF2C/LifecycleManagement
a9661c6dcaad94564c3e00d6059b9c0713b3f3c0
[ "Apache-2.0" ]
null
null
null
""" Service instance - Data management This is being developed for the MF2C Project: http://www.mf2c-project.eu/ Copyright: Atos Research and Innovation, 2017. This code is licensed under an Apache 2.0 license. Please, refer to the LICENSE.TXT file for more information Created on 28 feb. 2019 @author: Roi Sucasas -...
36.394737
178
0.570137
7982de3f2a8736d300e96c6aabcc7dbc5894ded8
2,019
py
Python
main/bzip2/template.py
ismith/cports
9fe76e231872e0b03b425252b5fc5e1d9af2a6d8
[ "BSD-2-Clause" ]
null
null
null
main/bzip2/template.py
ismith/cports
9fe76e231872e0b03b425252b5fc5e1d9af2a6d8
[ "BSD-2-Clause" ]
null
null
null
main/bzip2/template.py
ismith/cports
9fe76e231872e0b03b425252b5fc5e1d9af2a6d8
[ "BSD-2-Clause" ]
null
null
null
pkgname = "bzip2" version = "1.0.8" revision = 0 short_desc = "Freely available, patent free, high-quality data compressor" maintainer = "q66 <q66@chimera-linux.org>" license = "bzip2-1.0.6" homepage = "https://sourceware.org/bzip2" distfiles = [f"https://sourceware.org/pub/bzip2/bzip2-{version}.tar.gz"] checksum = ["a...
30.134328
79
0.653294
7982df01ed2837604082103ac9219d6210b89669
26,256
py
Python
aries_cloudagent/wallet/askar.py
itaru2622/aries-cloudagent-python
db6b7699e603ecb335165a79459fbab7b6587a70
[ "Apache-2.0" ]
4
2019-07-01T13:12:50.000Z
2019-07-02T20:01:37.000Z
aries_cloudagent/wallet/askar.py
itaru2622/aries-cloudagent-python
db6b7699e603ecb335165a79459fbab7b6587a70
[ "Apache-2.0" ]
29
2019-06-24T22:48:04.000Z
2019-07-02T20:52:16.000Z
aries_cloudagent/wallet/askar.py
amanji/aries-cloudagent-python
211af2b4e5b8131d64b1b3855ef8e352e831b71f
[ "Apache-2.0" ]
12
2019-06-24T22:17:44.000Z
2019-07-02T19:49:31.000Z
"""Aries-Askar implementation of BaseWallet interface.""" import asyncio import json import logging from typing import List, Sequence, Tuple, Union from aries_askar import ( AskarError, AskarErrorCode, Entry, Key, KeyAlg, SeedMethod, Session, ) from ..askar.didcomm.v1 import pack_message...
34.1875
88
0.570765
7982df93ee984f11ba71b95b9a4b9d7d95256acb
11,248
py
Python
isi_sdk_8_0_1/isi_sdk_8_0_1/models/event_eventlist_event.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0_1/isi_sdk_8_0_1/models/event_eventlist_event.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0_1/isi_sdk_8_0_1/models/event_eventlist_event.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 4 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_0_1.models.empty i...
27.91067
179
0.576991
7982e0711135b83ef3d6f496c6711072a622ce7c
3,254
py
Python
test/test_node.py
Taraxa-project/taraxa-py
95aa0d8054bf4eba2c3200f3298421575b7bb5a0
[ "MIT" ]
null
null
null
test/test_node.py
Taraxa-project/taraxa-py
95aa0d8054bf4eba2c3200f3298421575b7bb5a0
[ "MIT" ]
1
2022-03-02T15:51:17.000Z
2022-03-02T15:51:17.000Z
test/test_node.py
Taraxa-project/taraxa-py
95aa0d8054bf4eba2c3200f3298421575b7bb5a0
[ "MIT" ]
null
null
null
import web3 import time GAS = 7000000 GASPRICE = 10000000 boot_privateKey = "0x3800b2875669d9b2053c1aff9224ecfdc411423aac5b5a73d7a45ced1c3b9dcd" boot_publicKey = "0x7b1fcf0ec1078320117b96e9e9ad9032c06d030cf4024a598347a4623a14a421d4f" \ "030cf25ef368ab394a45e920e14b57a259a09c41767dd50d1da27b627412a" boot_address ...
25.622047
144
0.678857
7982e2115a7dcc258dec4d3564e5a2efb4581c9d
3,945
py
Python
application/models.py
communitiesuk/digital-land-explorer
6fcc8b1a05b56f4950060c6e1b67d6ae826be23a
[ "MIT" ]
null
null
null
application/models.py
communitiesuk/digital-land-explorer
6fcc8b1a05b56f4950060c6e1b67d6ae826be23a
[ "MIT" ]
null
null
null
application/models.py
communitiesuk/digital-land-explorer
6fcc8b1a05b56f4950060c6e1b67d6ae826be23a
[ "MIT" ]
3
2019-04-23T12:17:13.000Z
2021-04-10T21:08:44.000Z
from geoalchemy2 import Geometry from sqlalchemy import ForeignKey from sqlalchemy.dialects.postgresql import JSON, JSONB from application.extensions import db organisation_feature = db.Table('organisation_feature', db.Column('organisation', db.String(64), db.ForeignKey('organisation...
41.09375
122
0.637262
7982e273e19611a34d58b1ae7c8b5aa824dea323
3,995
py
Python
metrics/sacrebleu/sacrebleu.py
tongni1975/nlp
378484960c660244896ed96886bc0ad08eccf90e
[ "Apache-2.0" ]
4
2020-09-09T19:10:52.000Z
2022-03-30T15:31:07.000Z
metrics/sacrebleu/sacrebleu.py
tongni1975/nlp
378484960c660244896ed96886bc0ad08eccf90e
[ "Apache-2.0" ]
null
null
null
metrics/sacrebleu/sacrebleu.py
tongni1975/nlp
378484960c660244896ed96886bc0ad08eccf90e
[ "Apache-2.0" ]
1
2020-12-30T21:24:44.000Z
2020-12-30T21:24:44.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace NLP 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 applicab...
37.688679
126
0.656821
7982e3f787c009694fba97fa4e7d8d6c5f37e4bf
584
py
Python
app/ui/cli.py
nacho-vlad/chess-engine
d4c5faee70fc93ce241d3c753d07a6f02771ff3f
[ "MIT" ]
null
null
null
app/ui/cli.py
nacho-vlad/chess-engine
d4c5faee70fc93ce241d3c753d07a6f02771ff3f
[ "MIT" ]
null
null
null
app/ui/cli.py
nacho-vlad/chess-engine
d4c5faee70fc93ce241d3c753d07a6f02771ff3f
[ "MIT" ]
null
null
null
from ..ui.base import UI import subprocess class CLI(UI): def __init__(self): super().__init__() def draw(self, board): subprocess.run("clear") print(board.to_ascii()) def get_move(self, moves): color = "blue" if len(moves)%2==0 else "pink" move = input("Enter a...
20.137931
57
0.506849
7982e46a3ecac1ba01ec9b246bff7d072f5edaed
3,084
py
Python
crispy_forms/templatetags/crispy_forms_filters.py
radicalgraphics/django-crispy-forms
42c84a9b02d885de249c1d003c2e7ad031283c26
[ "MIT" ]
null
null
null
crispy_forms/templatetags/crispy_forms_filters.py
radicalgraphics/django-crispy-forms
42c84a9b02d885de249c1d003c2e7ad031283c26
[ "MIT" ]
null
null
null
crispy_forms/templatetags/crispy_forms_filters.py
radicalgraphics/django-crispy-forms
42c84a9b02d885de249c1d003c2e7ad031283c26
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings from django.forms import forms from django.forms.formsets import BaseFormSet from django.template import Context from django.template.loader import get_template from django.utils.functional import memoize from django.utils.safestring import mark_safe from django ...
32.808511
90
0.699416
7982e4c6c3db80438bca61e2feccc327b509a1fd
4,780
py
Python
sdk/python/pulumi_aws/apigateway/client_certificate.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/apigateway/client_certificate.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/apigateway/client_certificate.py
JakeGinnivan/pulumi-aws
c91ef78932964ac74eda7f5da81f65b0f1798c93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Client...
40.168067
152
0.669038
7982e4f460bd3693c64f686e210322fa17d063ae
2,940
py
Python
Lib/idlelib/idle_test/test_textview.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/idlelib/idle_test/test_textview.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/idlelib/idle_test/test_textview.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
'''Test the functions oraz main klasa method of textView.py. Since all methods oraz functions create (or destroy) a TextViewer, which is a widget containing multiple widgets, all tests must be gui tests. Using mock Text would nie change this. Other mocks are used to retrieve information about calls. The coverage jes...
30
81
0.677551
7982e4fedc584d4fd8e9766be3df1a08e90a41b7
417
py
Python
user/migrations/0002_auto_20200302_1621.py
code-rookie1/four
b416c00a879674a060fee648b9452aafd5c96ef6
[ "MIT" ]
null
null
null
user/migrations/0002_auto_20200302_1621.py
code-rookie1/four
b416c00a879674a060fee648b9452aafd5c96ef6
[ "MIT" ]
6
2021-03-19T09:24:38.000Z
2021-09-08T01:47:55.000Z
user/migrations/0002_auto_20200302_1621.py
code-rookie1/four
b416c00a879674a060fee648b9452aafd5c96ef6
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-03-02 08:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='password', fiel...
21.947368
95
0.601918
7982e606cc324bb96ed552ae62d936aebe0df192
2,393
py
Python
tests/conftest.py
je-santos/lettuce
9455449b997eb245cd714c5759d7a7cd4c33b1dc
[ "MIT" ]
53
2021-04-01T06:17:52.000Z
2022-03-21T18:27:13.000Z
tests/conftest.py
je-santos/lettuce
9455449b997eb245cd714c5759d7a7cd4c33b1dc
[ "MIT" ]
48
2019-09-17T14:07:57.000Z
2020-11-18T19:53:24.000Z
tests/conftest.py
je-santos/lettuce
9455449b997eb245cd714c5759d7a7cd4c33b1dc
[ "MIT" ]
9
2021-04-16T12:57:19.000Z
2022-03-08T11:40:50.000Z
""" Fixtures for unit tests. """ import pytest import numpy as np import torch from lettuce import ( stencils, Stencil, get_subclasses, Transform, Lattice, moments ) STENCILS = list(get_subclasses(Stencil, stencils)) TRANSFORMS = list(get_subclasses(Transform, moments)) @pytest.fixture( params=["cpu", pyte...
31.486842
114
0.712495
7982e74a16737437455fd3ec9210bddfb2ce1218
11,203
py
Python
mvtectrain.py
yongfeng0616/CS230_fall_2019_Fruit_Detection
84910e949fcc38df3029bdd1a774504fe94967d1
[ "MIT" ]
4
2021-03-12T12:40:54.000Z
2021-08-23T19:09:21.000Z
mvtectrain.py
yongfeng0616/CS230_fall_2019_Fruit_Detection
84910e949fcc38df3029bdd1a774504fe94967d1
[ "MIT" ]
null
null
null
mvtectrain.py
yongfeng0616/CS230_fall_2019_Fruit_Detection
84910e949fcc38df3029bdd1a774504fe94967d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Nov 17 11:16:13 2019 @author: Anna """ # Load the Drive helper and mount #====================== #from google.colab import drive #drive.mount('/content/drive') import os import sys import random import math import numpy as np import skimage.io import matpl...
30.693151
91
0.581362
7982e79e24b7d1f60facc0322a3ad2a718777319
1,137
py
Python
vendor/mo_threads/busy_lock.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_threads/busy_lock.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_threads/busy_lock.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
# encoding: utf-8 # # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Author: Kyle Lahnakoski (kyle@lahnakoski.com) # # THIS THREADING MODULE IS PERMEATED BY THE pl...
23.6875
75
0.635004
7982e8eb19d2ef1e5a3e90969a9fc91c20ac5301
869
py
Python
001146StepikPyBegin/Stepik001146PyBeginсh11p04st05TASK04_20210204_lists_methods.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh11p04st05TASK04_20210204_lists_methods.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh11p04st05TASK04_20210204_lists_methods.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
''' Stepik001146PyBeginсh11p04st05TASK04_20210204_lists_methods.py Без дубликатов На вход программе подается натуральное число nn, а затем nn строк. Напишите программу, которая выводит только уникальные строки, в том же порядке, в котором они были введены. Формат входных данных На вход программе подаются натуральное ...
21.725
174
0.743383
7982e9950858a02d6f9ada11def8578f5a70272f
1,941
py
Python
wxpusher/wxpusher.py
hnauto/wxpusher-sdk-python
6787c0bdd7bef673b1a3f56984f6587c07bb0546
[ "Apache-2.0" ]
124
2020-01-17T03:02:05.000Z
2022-03-30T09:51:02.000Z
wxpusher/wxpusher.py
hnauto/wxpusher-sdk-python
6787c0bdd7bef673b1a3f56984f6587c07bb0546
[ "Apache-2.0" ]
3
2020-01-17T09:31:47.000Z
2021-09-25T06:55:37.000Z
wxpusher/wxpusher.py
hnauto/wxpusher-sdk-python
6787c0bdd7bef673b1a3f56984f6587c07bb0546
[ "Apache-2.0" ]
23
2020-01-17T03:02:11.000Z
2022-03-29T13:25:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ WxPusher Python SDK. File: wxpusher.py Author: huxuan Email: i(at)huxuan.org """ import requests from . import exceptions BASEURL = 'http://wxpusher.zjiecode.com/api' class WxPusher(): """WxPusher Python SDK.""" default_token = None @classmethod d...
27.338028
63
0.573416
7982ea5f78ee339f7202d57c12bdafe897466c8c
448
py
Python
idp_data/idp_data/migrations/0017_eventaction_confirmed_date.py
emre2038/idp-data
c31e9783f86a2745403011f21f5148dd98420510
[ "MIT" ]
null
null
null
idp_data/idp_data/migrations/0017_eventaction_confirmed_date.py
emre2038/idp-data
c31e9783f86a2745403011f21f5148dd98420510
[ "MIT" ]
6
2020-08-20T12:39:29.000Z
2020-12-01T11:17:02.000Z
idp_data/idp_data/migrations/0017_eventaction_confirmed_date.py
emre2038/idp-data
c31e9783f86a2745403011f21f5148dd98420510
[ "MIT" ]
3
2020-08-04T21:11:06.000Z
2020-08-18T11:40:00.000Z
# Generated by Django 2.2.10 on 2020-08-23 20:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('idp_data', '0016_auto_20200823_2014'), ] operations = [ migrations.AddField( model_name='eventaction', name='confir...
22.4
63
0.609375
7982ebadcc9482b6bb5d3719f5a5f8a529369010
1,670
py
Python
profiles_api/models.py
ragav78/profile-rest-api
8a96f35fc74191793f4d897b7358867e7dcb047b
[ "MIT" ]
null
null
null
profiles_api/models.py
ragav78/profile-rest-api
8a96f35fc74191793f4d897b7358867e7dcb047b
[ "MIT" ]
null
null
null
profiles_api/models.py
ragav78/profile-rest-api
8a96f35fc74191793f4d897b7358867e7dcb047b
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager class UserProfileManager(BaseUserManager): """Manager for user profiles""" def create_user(self, email, name, pas...
29.298246
64
0.677246
7982ebc72607fa62115eb55be01808741d8b3839
470
py
Python
users/signals.py
ihosseinu/django-farsi-users
76b9800661f6a8c14312d0e119f6ee5c6f065a3b
[ "MIT" ]
1
2022-01-22T11:35:28.000Z
2022-01-22T11:35:28.000Z
users/signals.py
ihosseinu/django-farsi-users
76b9800661f6a8c14312d0e119f6ee5c6f065a3b
[ "MIT" ]
null
null
null
users/signals.py
ihosseinu/django-farsi-users
76b9800661f6a8c14312d0e119f6ee5c6f065a3b
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from .models import User, Profile @receiver(post_save, sender=User) def update_profile(sender, instance, created, **kwargs): """ Creates a profile instance when a new user is registered. Updates related profile instance wh...
29.375
76
0.725532
7982ec2fda1387d8a6bce77fdc7ce5ba6b8f21d4
72,335
py
Python
atomica/optimization.py
atomicateam/atomica
de05daf15088e315b89fd62319fa11529d43f8cf
[ "MIT" ]
2
2019-04-16T17:56:01.000Z
2019-09-02T15:53:18.000Z
atomica/optimization.py
atomicateam/atomica
de05daf15088e315b89fd62319fa11529d43f8cf
[ "MIT" ]
93
2018-09-20T16:45:22.000Z
2021-11-15T21:59:38.000Z
atomica/optimization.py
atomicateam/atomica
de05daf15088e315b89fd62319fa11529d43f8cf
[ "MIT" ]
1
2018-09-22T08:12:53.000Z
2018-09-22T08:12:53.000Z
""" Implements various Optimizations in Atomica This module implements the :class:`Optimization` class, which contains the information required to perform an optimization in Atomica. An Optimization effectively serves as a mapping from one set of program instructions to another. """ import logging import pickle from...
51.228754
523
0.68762
7982ec3615f583f4e0037b520987d7b5737b25f7
2,593
py
Python
DeriaLock/DeriaDecryptor.py
AlexanderAda/Ransomware-Decryptors
c7a8d5f208a877ac0bcbfd73ac67e7054e3ebd34
[ "MIT" ]
4
2019-03-03T13:09:03.000Z
2020-10-28T07:12:29.000Z
DeriaLock/DeriaDecryptor.py
AlexanderAda/Ransomware-Decryptors
c7a8d5f208a877ac0bcbfd73ac67e7054e3ebd34
[ "MIT" ]
null
null
null
DeriaLock/DeriaDecryptor.py
AlexanderAda/Ransomware-Decryptors
c7a8d5f208a877ac0bcbfd73ac67e7054e3ebd34
[ "MIT" ]
1
2020-10-07T17:14:33.000Z
2020-10-07T17:14:33.000Z
# DeriaLock Decryptor # NioGuard Security Lab, 2017 # Author: Alexander Adamov # Email: ada@nioguard.com import os import hashlib from array import * from Crypto.Cipher import AES DECRYPT_LOCATIONS = [ "%s" % os.environ['USERPROFILE'], "d:/" ] EXT ...
37.042857
156
0.640956
7982ed028b77ea2065e170390616d7bb19269747
1,678
py
Python
convert_html.py
GamerX248/hexo-recover-files
7db830625b94cbddf53ec82c73dfa005bbb13d7e
[ "MIT" ]
null
null
null
convert_html.py
GamerX248/hexo-recover-files
7db830625b94cbddf53ec82c73dfa005bbb13d7e
[ "MIT" ]
null
null
null
convert_html.py
GamerX248/hexo-recover-files
7db830625b94cbddf53ec82c73dfa005bbb13d7e
[ "MIT" ]
null
null
null
import os from tomd import Tomd from bs4 import BeautifulSoup import codecs import re def build_file(name): path = "posts/" + name + "/index.html" f = codecs.open(path, 'r') html = f.read() soup = BeautifulSoup(html, features="html5lib") # Save title md = "---" md += "\ntitle: " + soup.find("h1").get_text()....
26.21875
68
0.567938
7982ed1a5573faa04dc80a131bc1ffc56eebc680
1,119
py
Python
source/orchestration/orchestration.py
joshhills/dissertation-project
0a2ef09a98aa3e6921384a1768b051e02d8dffb1
[ "MIT" ]
null
null
null
source/orchestration/orchestration.py
joshhills/dissertation-project
0a2ef09a98aa3e6921384a1768b051e02d8dffb1
[ "MIT" ]
null
null
null
source/orchestration/orchestration.py
joshhills/dissertation-project
0a2ef09a98aa3e6921384a1768b051e02d8dffb1
[ "MIT" ]
null
null
null
""" :author: Josh Hills Define the public entryway to the microservice architecture. """ import flask import shared.messaging import shared.database # Global fields app = flask.Flask(__name__) messaging = shared.messaging.RabbitMQMessaging() database = shared.database.Couchbase() # API @app.route("/scrape/product/<...
21.113208
84
0.709562
7982ed2efbd84876c320a746dab88cc1c908b121
11,814
py
Python
ebnn/functions/function_binary_convolution_2d.py
viv-codes/ebnn
4b042f9a100a988b1cec7c83d8367a6c4e01e199
[ "MIT" ]
39
2017-02-24T20:37:14.000Z
2022-03-10T09:12:03.000Z
ebnn/functions/function_binary_convolution_2d.py
sandy2008/binary-net-toolkit
c9807f60a9cff7b90319a576a27e77ca163cc2e1
[ "Unlicense" ]
10
2017-07-05T15:11:03.000Z
2020-06-29T00:22:00.000Z
ebnn/functions/function_binary_convolution_2d.py
sandy2008/binary-net-toolkit
c9807f60a9cff7b90319a576a27e77ca163cc2e1
[ "Unlicense" ]
19
2017-02-21T12:00:22.000Z
2022-03-03T16:16:46.000Z
import numpy from six import moves from chainer import cuda from chainer import function from chainer.utils import conv from chainer.utils import type_check if cuda.cudnn_enabled: cudnn = cuda.cudnn libcudnn = cuda.cudnn.cudnn _cudnn_version = libcudnn.getVersion() _fwd_pref = libcudnn.CUDNN_CONVOLUTI...
38.482085
80
0.56797
7982ed4905831af8b990c9e541f3b16a19166ddb
117
py
Python
main/schema/components/media_prev.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
50
2019-09-18T14:32:18.000Z
2022-03-31T16:26:07.000Z
main/schema/components/media_prev.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
566
2019-09-18T16:33:40.000Z
2022-03-31T20:01:38.000Z
main/schema/components/media_prev.py
kristianmk/tator
0eb75ee9333316b06f773de2b75e8e797a98ffdb
[ "MIT" ]
19
2019-09-21T20:08:12.000Z
2022-03-17T14:53:11.000Z
media_prev = { 'type': 'object', 'properties': { 'prev': {'type': 'integer', 'minimum': 0}, }, }
16.714286
50
0.452991
7982ee29e6c754a83826810378c8fb5749069770
6,419
py
Python
lgat/generator.py
kohilin/lgat
ba9fe6b4edd22c33c1c96f3139833cca9d149022
[ "Apache-1.1" ]
null
null
null
lgat/generator.py
kohilin/lgat
ba9fe6b4edd22c33c1c96f3139833cca9d149022
[ "Apache-1.1" ]
null
null
null
lgat/generator.py
kohilin/lgat
ba9fe6b4edd22c33c1c96f3139833cca9d149022
[ "Apache-1.1" ]
null
null
null
from collections import OrderedDict import torch import numpy as np from .q import QLayer, QAction, merge_q_layer_outputs from .vocab import VocabDict def build_q_layers_for_template_action(state_size, template_collection, **kwargs): q_layers = OrderedDict() q_layer_type = kwargs.pop('q_layer_type', 'dqn') ...
40.88535
127
0.658358
7982ee2eff56c765cf2d7f0d4c60872fc72149a2
2,882
py
Python
runtests.py
jtiai/django-rest-framework
b24741ae8905cee870f222f1ead4d55f57670665
[ "BSD-2-Clause" ]
null
null
null
runtests.py
jtiai/django-rest-framework
b24741ae8905cee870f222f1ead4d55f57670665
[ "BSD-2-Clause" ]
null
null
null
runtests.py
jtiai/django-rest-framework
b24741ae8905cee870f222f1ead4d55f57670665
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python from __future__ import print_function import os import subprocess import sys import pytest PYTEST_ARGS = { 'default': ['tests', '--tb=short'], 'fast': ['tests', '--tb=short', '-q'], } FLAKE8_ARGS = ['rest_framework', 'tests', '--ignore=E501'] ISORT_ARGS = ['--recursive', '--check-onl...
25.732143
114
0.623178
7982ef2eb3f7060c872d459adcaf661312327f43
2,115
py
Python
utils/createTFRecords.py
Leechanggun/Flow_DeepLearning
1440128cb4076f7511d56c347eaac2532598d59c
[ "Apache-2.0" ]
2
2018-10-14T13:50:22.000Z
2019-04-30T14:57:17.000Z
utils/createTFRecords.py
Leechanggun/Flow_DeepLearning
1440128cb4076f7511d56c347eaac2532598d59c
[ "Apache-2.0" ]
9
2020-01-28T22:31:44.000Z
2022-02-10T00:01:58.000Z
utils/createTFRecords.py
Leechanggun/Flow_DeepLearning
1440128cb4076f7511d56c347eaac2532598d59c
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf from glob import glob as glb import re from tqdm import * from flow_reader import load_flow, load_boundary FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_bool('debug', False, """ this will show the images while generating records. """) # help...
26.4375
88
0.652955
7982ef9f408bbf014bd487cb9b3da35b19da465e
1,527
py
Python
examples/voice_update_webhook.py
smadivad/sreemessage
b9642c32bfea65ec7b523bffd7b23306b235e651
[ "BSD-2-Clause" ]
57
2015-04-07T21:20:12.000Z
2022-03-30T17:27:48.000Z
examples/voice_update_webhook.py
smadivad/sreemessage
b9642c32bfea65ec7b523bffd7b23306b235e651
[ "BSD-2-Clause" ]
33
2015-09-24T21:29:48.000Z
2022-02-11T22:17:29.000Z
examples/voice_update_webhook.py
smadivad/sreemessage
b9642c32bfea65ec7b523bffd7b23306b235e651
[ "BSD-2-Clause" ]
59
2015-01-08T13:00:13.000Z
2022-03-09T16:55:46.000Z
#!/usr/bin/env python import argparse import messagebird from messagebird.voice_webhook import VoiceUpdateWebhookRequest parser = argparse.ArgumentParser() parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True) parser.add_argument('--webhookId', help='webhook that you want t...
40.184211
99
0.67649
7982f0570f9252fb9a62dbc01f8b9ed646de6d3d
3,235
py
Python
tests/flytekit/unit/models/test_common.py
nuclyde-io/flytekit
a4c990f0492e5f7245b5f2f7bb137c54684a3826
[ "Apache-2.0" ]
null
null
null
tests/flytekit/unit/models/test_common.py
nuclyde-io/flytekit
a4c990f0492e5f7245b5f2f7bb137c54684a3826
[ "Apache-2.0" ]
1
2021-02-05T02:57:25.000Z
2021-02-05T02:57:25.000Z
tests/flytekit/unit/models/test_common.py
nuclyde-io/flytekit
a4c990f0492e5f7245b5f2f7bb137c54684a3826
[ "Apache-2.0" ]
null
null
null
from flytekit.models import common as _common from flytekit.models.core import execution as _execution def test_notification_email(): obj = _common.EmailNotification(["a", "b", "c"]) assert obj.recipients_email == ["a", "b", "c"] obj2 = _common.EmailNotification.from_flyte_idl(obj.to_flyte_idl()) asse...
35.549451
92
0.715611
7982f1039208b85aa67f9da32645f39117b42554
554
py
Python
todo/notes/migrations/0001_initial.py
bhagvank/pythonConstructs
eb6b3bb2dca0b859c4e78188f70dadc933b8ce40
[ "Apache-2.0" ]
null
null
null
todo/notes/migrations/0001_initial.py
bhagvank/pythonConstructs
eb6b3bb2dca0b859c4e78188f70dadc933b8ce40
[ "Apache-2.0" ]
null
null
null
todo/notes/migrations/0001_initial.py
bhagvank/pythonConstructs
eb6b3bb2dca0b859c4e78188f70dadc933b8ce40
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.4 on 2018-04-27 07:58 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Note', fields=[ ('id', models.AutoField(aut...
24.086957
114
0.575812
7982f30e7fd6ed385f2574e1b073d92ceb935699
7,933
py
Python
build-support/run_dist_test.py
ImpactInc/kudu
984a3e1a1240c5f36d7c0e29d065a829ca1083e0
[ "Apache-2.0" ]
2
2019-07-17T19:08:07.000Z
2019-07-17T19:13:25.000Z
build-support/run_dist_test.py
ImpactInc/kudu
984a3e1a1240c5f36d7c0e29d065a829ca1083e0
[ "Apache-2.0" ]
null
null
null
build-support/run_dist_test.py
ImpactInc/kudu
984a3e1a1240c5f36d7c0e29d065a829ca1083e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # # 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 # ...
40.47449
99
0.689651
7982f3d8ed6c14300c56bebd3008662510b04186
171
py
Python
tests/conftest.py
joshuahlang/sqlalchemy-ctds
87ac134665c53c58f1420694718c7590c5f5e8e8
[ "MIT" ]
2
2018-09-11T22:34:17.000Z
2021-05-02T16:26:49.000Z
tests/conftest.py
joshuahlang/sqlalchemy-ctds
87ac134665c53c58f1420694718c7590c5f5e8e8
[ "MIT" ]
2
2018-01-31T02:45:59.000Z
2018-01-31T16:44:35.000Z
tests/conftest.py
joshuahlang/sqlalchemy-ctds
87ac134665c53c58f1420694718c7590c5f5e8e8
[ "MIT" ]
1
2018-01-31T03:29:08.000Z
2018-01-31T03:29:08.000Z
from sqlalchemy.dialects import registry registry.register('mssql.ctds', 'sqlalchemy_ctds.ctds', 'MSDialect_ctds') from sqlalchemy.testing.plugin.pytestplugin import *
24.428571
73
0.812865
7982f435d0cb127e8c0b82af2f9a43a9ffb30e62
1,279
py
Python
tests/distinct_on_fields/models.py
webjunkie/django
5dbca13f3baa2e1bafd77e84a80ad6d8a074712e
[ "BSD-3-Clause" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-1.5/tests/modeltests/distinct_on_fields/models.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-1.5/tests/modeltests/distinct_on_fields/models.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Tag(models.Model): name = models.CharField(max_length=10) parent = models.ForeignKey('self', blank=True, null=True, related_name='ch...
27.212766
67
0.715403
7982f4e6e10ef5938dfb83e413acd2822677cd77
2,127
py
Python
workspace/cogrob/dialogue/listen_for_intent/intent_listener.py
CogRob/TritonBot
d05b521ec7a7f54a04409f5a2897f3e5c75fd3bf
[ "BSD-3-Clause" ]
8
2018-09-21T09:56:02.000Z
2021-07-26T14:35:14.000Z
workspace/cogrob/dialogue/listen_for_intent/intent_listener.py
CogRob/TritonBot
d05b521ec7a7f54a04409f5a2897f3e5c75fd3bf
[ "BSD-3-Clause" ]
null
null
null
workspace/cogrob/dialogue/listen_for_intent/intent_listener.py
CogRob/TritonBot
d05b521ec7a7f54a04409f5a2897f3e5c75fd3bf
[ "BSD-3-Clause" ]
4
2018-08-26T21:44:52.000Z
2019-08-22T07:38:08.000Z
# Copyright (c) 2018, The Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
48.340909
79
0.794076
7982f4fe4205534a1ee98c870d33661cdeec51e0
9,969
py
Python
desktop/core/ext-py/Django-1.11/tests/utils_tests/test_html.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
3
2018-01-29T14:16:02.000Z
2019-02-05T21:33:05.000Z
desktop/core/ext-py/Django-1.11/tests/utils_tests/test_html.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
1
2019-05-06T15:32:21.000Z
2019-05-06T15:32:21.000Z
desktop/core/ext-py/Django-1.11/tests/utils_tests/test_html.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
2
2019-12-05T17:24:36.000Z
2021-11-22T21:21:32.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os from datetime import datetime from django.test import SimpleTestCase from django.utils import html, safestring, six from django.utils._os import upath from django.utils.encoding import force_text from django.utils.functional import lazystr cl...
42.421277
117
0.534056
7982f5b4d1e7cb29d2df8f5999999b63075207a2
2,992
py
Python
frappe_backend/hooks.py
Nirchains/frappe-backend
8258016e9ece7573ee935e79b3c065eff6616e0b
[ "MIT" ]
null
null
null
frappe_backend/hooks.py
Nirchains/frappe-backend
8258016e9ece7573ee935e79b3c065eff6616e0b
[ "MIT" ]
null
null
null
frappe_backend/hooks.py
Nirchains/frappe-backend
8258016e9ece7573ee935e79b3c065eff6616e0b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "frappe_backend" app_title = "Frappe Backend" app_publisher = "Pedro Antonio Fernández Gómez" app_description = "Frappe backend styles and functions" app_icon = "octicon octicon-file-directory" app_color...
24.325203
102
0.684492
7982f5d02410a68cd1975a54167178ec04476930
20,261
py
Python
app/controllers/algoritma.py
haryobagus/haryo_ig
1ad160b422d2c6d5b9b3016e312eb77a576ff9b1
[ "MIT" ]
null
null
null
app/controllers/algoritma.py
haryobagus/haryo_ig
1ad160b422d2c6d5b9b3016e312eb77a576ff9b1
[ "MIT" ]
null
null
null
app/controllers/algoritma.py
haryobagus/haryo_ig
1ad160b422d2c6d5b9b3016e312eb77a576ff9b1
[ "MIT" ]
null
null
null
import math import numpy as np import pandas as pd import scipy.sparse as sp import copy from flask import render_template, jsonify, url_for from app.models import Dataset, Klasifikasi, Username from sklearn.metrics import classification_report from sklearn.svm import SVC from sklearn.neural_network import MLPClassi...
44.237991
256
0.655545
7982f61906da8cff990c1428e3ab8ce41ea4f101
1,635
py
Python
groupofchanges.py
LK/monopoly-simulator
16655da3402cd660b758c536fb8c05b9e661af5f
[ "MIT" ]
2
2016-09-03T13:01:20.000Z
2016-12-28T06:37:42.000Z
groupofchanges.py
LK/monopoly-simulator
16655da3402cd660b758c536fb8c05b9e661af5f
[ "MIT" ]
21
2016-09-12T21:38:23.000Z
2017-01-06T04:25:59.000Z
groupofchanges.py
LK/monopoly-simulator
16655da3402cd660b758c536fb8c05b9e661af5f
[ "MIT" ]
null
null
null
''' Author: Lenny Khazan & Michael Friedman Created: Description: This class contains a list of GameStateChanges that should be applied as a unit. This is designed with the convention that the GameStateChanges will be applied in the order given during initialization. ''' class GroupOfChanges(object): # Takes...
28.189655
81
0.767584
7982f690d2ad247831ecbb9a09b03e3404ff291a
1,004
py
Python
apps/employees/schema/types.py
wis-software/office-manager
0342d2cf9b3e4779f3e3d2a4faba6768e95047b1
[ "MIT" ]
7
2017-09-28T11:20:43.000Z
2020-01-18T23:23:52.000Z
apps/employees/schema/types.py
wis-software/office-manager
0342d2cf9b3e4779f3e3d2a4faba6768e95047b1
[ "MIT" ]
1
2019-03-12T18:16:12.000Z
2019-03-12T20:17:40.000Z
apps/employees/schema/types.py
wis-software/office-manager
0342d2cf9b3e4779f3e3d2a4faba6768e95047b1
[ "MIT" ]
7
2017-09-27T11:12:25.000Z
2019-04-04T13:24:01.000Z
import graphene from graphene_django.types import DjangoObjectType from apps.employees import models class EmployeeType(DjangoObjectType): class Meta: model = models.Employee filter_fields = { 'first_name': ['icontains', 'istartswith'], 'last_name': ['icontains', 'ista...
21.361702
58
0.582669
7982f693a9b4f00a050a43fa9562d0bfce902c9c
6,471
py
Python
glyph.py
sangh/LaserShow
abc95e465e3455dc220cc602dd58358c84666f29
[ "BSD-3-Clause" ]
null
null
null
glyph.py
sangh/LaserShow
abc95e465e3455dc220cc602dd58358c84666f29
[ "BSD-3-Clause" ]
null
null
null
glyph.py
sangh/LaserShow
abc95e465e3455dc220cc602dd58358c84666f29
[ "BSD-3-Clause" ]
null
null
null
from header import * import json import math # This used to be a class, but I want to use json w/o all the # manual mangling needed, so it's just going to be a dictionary. # It must have X and Y grid points and keys for # the 'name' and a 'path' (list of (x,y) points or "on"/"off" cmds). def pointIsValid( pt ): ...
31.720588
87
0.533302
7982f706966b99d9328609c9c9632eb585c52d45
4,025
py
Python
msgpack_socket_platform.py
khinsen/PythonBridge
4245e1e4ea215b29108929100c9c9ec8eb71095a
[ "MIT" ]
22
2019-01-09T01:07:11.000Z
2022-03-18T21:54:38.000Z
msgpack_socket_platform.py
khinsen/PythonBridge
4245e1e4ea215b29108929100c9c9ec8eb71095a
[ "MIT" ]
6
2019-02-18T21:17:13.000Z
2021-04-28T18:32:12.000Z
msgpack_socket_platform.py
khinsen/PythonBridge
4245e1e4ea215b29108929100c9c9ec8eb71095a
[ "MIT" ]
5
2019-03-19T20:04:16.000Z
2021-03-25T20:08:39.000Z
import msgpack import socket import _thread import threading import time import sys from PythonBridge import bridge_globals, stoppable_thread, msgpack_serializer from uuid import uuid1 # Messages supported by this sockets must be Dictionaries. This is because we use special key __sync to know if it is # a synchronize...
33.823529
119
0.63205
7982f84bcd193db138b918f6c78b3bb1f5b89093
1,302
py
Python
mythx_models/util.py
ConsenSys/mythx-models
e912c2fc6e7d18041310d3b9f0f95085db47ed9b
[ "MIT" ]
2
2019-08-26T13:42:28.000Z
2019-11-13T15:44:16.000Z
mythx_models/util.py
ConsenSys/mythx-models
e912c2fc6e7d18041310d3b9f0f95085db47ed9b
[ "MIT" ]
22
2019-08-26T13:14:55.000Z
2021-04-18T14:22:52.000Z
mythx_models/util.py
ConsenSys/mythx-models
e912c2fc6e7d18041310d3b9f0f95085db47ed9b
[ "MIT" ]
6
2019-08-29T15:51:38.000Z
2021-04-05T11:41:34.000Z
"""This module contains various utility functions for MythX domain models.""" from datetime import datetime from typing import Dict, Union import dateutil.parser def deserialize_api_timestamp(timestamp_str: str) -> datetime: """Deserialize a JavaScript API timestamp into Python datetime format. :param time...
30.27907
81
0.675115
7982f9072591d802727ffcc7c83cc66acc943150
13,241
py
Python
sim_proto.py
egdinger/QuadCopterSim
e87113f1566c7039c6fa146b196fb32f9d410754
[ "MIT" ]
1
2015-08-07T15:04:19.000Z
2015-08-07T15:04:19.000Z
sim_proto.py
egdinger/QuadCopterSim
e87113f1566c7039c6fa146b196fb32f9d410754
[ "MIT" ]
null
null
null
sim_proto.py
egdinger/QuadCopterSim
e87113f1566c7039c6fa146b196fb32f9d410754
[ "MIT" ]
null
null
null
from random import * import numpy, math import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt1 import pdb #These are constants that need to be set for each quadcopter mass = 1.2 CodX = 1.04 #Coefficient of Drag on the x axis CodY = 1.04 #Coefficient of Drag on the y a...
41.507837
309
0.643909
7982f9d353c7895c3d63eec4c1ccb4dacd70c5f7
3,121
py
Python
utils/mnist_loader.py
Kur1su0/ML-proj
78d6b56674b83c6c876e6397d778c5bee031885a
[ "MIT" ]
null
null
null
utils/mnist_loader.py
Kur1su0/ML-proj
78d6b56674b83c6c876e6397d778c5bee031885a
[ "MIT" ]
null
null
null
utils/mnist_loader.py
Kur1su0/ML-proj
78d6b56674b83c6c876e6397d778c5bee031885a
[ "MIT" ]
null
null
null
import pickle import gzip import numpy as np def load_data(): """Return the MNIST data as a tuple containing the training data, the validation data, and the test data. The ``training_data`` is returned as a tuple with two entries. The first entry contains the actual training images. This is a ...
48.015385
82
0.682474
7982f9e33a3b8145cde3b2580c0954f54d959742
3,233
py
Python
test/tests/eval_test.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/tests/eval_test.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/eval_test.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
print eval("3 + 4") a = 5 print eval("a") print eval("[b for b in range(5)]") print b c = 2 print eval("[c for c in range(5)]") print c try: print eval("int('abc')") except ValueError: print 'got ValueError' d = 19 e = 20 i = 21 def func(): loc = 231 print 'loc', eval("loc") print eval("d") ...
19.475904
84
0.583978
7982fa00851004eef1ea249e5814ccf4b96bc1fb
20,094
py
Python
modoboa_stats/management/commands/logparser.py
tsabi/modoboa-stats
a60929b578c2d4f66ddb65249de63e816790d504
[ "MIT" ]
null
null
null
modoboa_stats/management/commands/logparser.py
tsabi/modoboa-stats
a60929b578c2d4f66ddb65249de63e816790d504
[ "MIT" ]
null
null
null
modoboa_stats/management/commands/logparser.py
tsabi/modoboa-stats
a60929b578c2d4f66ddb65249de63e816790d504
[ "MIT" ]
null
null
null
# coding: utf-8 """ Postfix log parser. This scripts parses a log file produced by postfix (or using the same format). It looks for predefined events and build statistics about their occurence rate. At the, somes default graphics are generated using the grapher module. (see grapher.py) Predefined events are: * Per...
34.173469
219
0.529959
7982fc0e34e1c4cdda9f19697ba0313c4bd007cc
467
py
Python
superadmin/fingerprint/databaseHelper.py
aerootaku/Fingerprint-Locker
a8970bb543206e4bcb0f87d223481a7c5b10727c
[ "MIT" ]
null
null
null
superadmin/fingerprint/databaseHelper.py
aerootaku/Fingerprint-Locker
a8970bb543206e4bcb0f87d223481a7c5b10727c
[ "MIT" ]
null
null
null
superadmin/fingerprint/databaseHelper.py
aerootaku/Fingerprint-Locker
a8970bb543206e4bcb0f87d223481a7c5b10727c
[ "MIT" ]
null
null
null
from mysql.connector import MySQLConnection, Error from db_config import read_db_config def connect(): """ Connect to MySQL database """ db_config = read_db_config() try: print('Connecting to MySQL database...') conn = MySQLConnection(**db_config) if conn.is_connected(): ...
22.238095
50
0.620985
7982fc7abe4fa968f9cb765feca4adab4deac0f7
6,709
py
Python
structured/Tools/MADna/CreateMolecule/CreateBonds.py
PabloIbannez/UAMMD-structured
897d7211c3d37123976a03bc5ffa545495d673cd
[ "MIT" ]
null
null
null
structured/Tools/MADna/CreateMolecule/CreateBonds.py
PabloIbannez/UAMMD-structured
897d7211c3d37123976a03bc5ffa545495d673cd
[ "MIT" ]
null
null
null
structured/Tools/MADna/CreateMolecule/CreateBonds.py
PabloIbannez/UAMMD-structured
897d7211c3d37123976a03bc5ffa545495d673cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import math import numpy as np import glob import scipy.optimize as optimization import os from itertools import islice import re #Bond Types # 1-16 -> SP # 17-32 -> PS # 33-36 -> SB # 37-38 -> BB-inter # 39-54 -> BB-intra WC = { 'A': 'T', 'C': 'G', 'G': 'C', 'T': 'A...
22.513423
96
0.551647
7982fe149b30331b7819b73acad3bbc92d99efe0
1,032
py
Python
eos/convert_files_to_csv.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
eos/convert_files_to_csv.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
eos/convert_files_to_csv.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
import os import csv fname1 = 'granite.rho_u.txt' fname2 = 'granite.table.txt' fnames = [fname1, fname2] def returnReader(fname, delimiter): with open(fname, 'r') as infile: reader = csv.reader(infile, delimiter=delimiter) return list(reader) def removeOutput(oname): if oname in os.listdir(os...
28.666667
57
0.501938
7983006e8e02ffbe1d60c031f41fc66dc8b48974
1,480
py
Python
rllib/examples/env/simple_rpg.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
rllib/examples/env/simple_rpg.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
rllib/examples/env/simple_rpg.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
import gym from gym.spaces import Discrete, Box, Dict from ray.rllib.utils.spaces.repeated import Repeated # Constraints on the Repeated space. MAX_PLAYERS = 4 MAX_ITEMS = 7 MAX_EFFECTS = 2 class SimpleRPG(gym.Env): """Example of a custom env with a complex, structured observation. The observation is a lis...
30.204082
77
0.645946
798300822d244326d67a5b19173afdb51a775ca5
5,361
py
Python
tests/test_struct/test_summary/test_summary_nodes.py
smoe/pybel
9a45a7b3b62da55b459c8d8acbba45f7aef91442
[ "Apache-2.0" ]
null
null
null
tests/test_struct/test_summary/test_summary_nodes.py
smoe/pybel
9a45a7b3b62da55b459c8d8acbba45f7aef91442
[ "Apache-2.0" ]
null
null
null
tests/test_struct/test_summary/test_summary_nodes.py
smoe/pybel
9a45a7b3b62da55b459c8d8acbba45f7aef91442
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for summary functions for nodes.""" import unittest from collections import Counter from pybel import BELGraph from pybel.constants import ABUNDANCE, BIOPROCESS, COMPLEX, PROTEIN from pybel.dsl import fusion_range, pathology, protein, protein_fusion from pybel.examples import egf_gra...
35.74
114
0.631039
798301d9ed402f9f0f1c3dc1ebcdc27b39c485d4
54,808
py
Python
dask_ml/model_selection/_search.py
cmarmo/dask-ml
a5b96edf863e3540be83c8321a9e2aa37dc91b4a
[ "BSD-3-Clause" ]
null
null
null
dask_ml/model_selection/_search.py
cmarmo/dask-ml
a5b96edf863e3540be83c8321a9e2aa37dc91b4a
[ "BSD-3-Clause" ]
null
null
null
dask_ml/model_selection/_search.py
cmarmo/dask-ml
a5b96edf863e3540be83c8321a9e2aa37dc91b4a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function import logging import numbers from collections import defaultdict from itertools import repeat from multiprocessing import cpu_count from operator import getitem import dask import numpy as np import packaging.version from dask.base import tokenize from...
31.809634
88
0.573821
798302d18dce5404441870f74006793fdb31cdad
447
py
Python
src/apps/children/migrations/0002_auto_20160914_1051.py
mitrofun/kids2
6059422c911966e4799e5947d0fc243328bb5787
[ "MIT" ]
null
null
null
src/apps/children/migrations/0002_auto_20160914_1051.py
mitrofun/kids2
6059422c911966e4799e5947d0fc243328bb5787
[ "MIT" ]
null
null
null
src/apps/children/migrations/0002_auto_20160914_1051.py
mitrofun/kids2
6059422c911966e4799e5947d0fc243328bb5787
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-09-14 10:51 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('children', '0001_initial'), ] operations = [ migrations.AlterUniqueTogether( ...
22.35
90
0.619687
7983032f1a1248eca4c16027af6e3255ee7d04db
22,453
py
Python
python/paddle/incubate/autograd/primrules.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/incubate/autograd/primrules.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/incubate/autograd/primrules.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
29.739073
166
0.619784
79830341789d49e9d75da15169191a7fc1833c49
9,145
py
Python
examples/bluetooth/ble_temperature_central.py
amirgon/lv_mpy
9b4e5b35d809380efd397f0287aa22957071d978
[ "MIT" ]
1
2021-01-05T22:33:46.000Z
2021-01-05T22:33:46.000Z
examples/bluetooth/ble_temperature_central.py
amirgon/lv_mpy
9b4e5b35d809380efd397f0287aa22957071d978
[ "MIT" ]
null
null
null
examples/bluetooth/ble_temperature_central.py
amirgon/lv_mpy
9b4e5b35d809380efd397f0287aa22957071d978
[ "MIT" ]
1
2021-05-11T05:17:16.000Z
2021-05-11T05:17:16.000Z
# This example finds and connects to a BLE temperature sensor (e.g. the one in ble_temperature.py). import bluetooth import random import struct import time import micropython from ble_advertising import decode_services, decode_name from micropython import const _IRQ_CENTRAL_CONNECT = const(1) _IRQ_CENTRAL_DISCONNE...
34.640152
99
0.642428
798304ce1fcf761a92a8ce19dfd8d8d271f243d2
633
py
Python
telegram_bot/handlers/messages/sum.py
ProgrammingLanguageLeader/MathematicianBot
a4627962a6c8bfac76013d80780997ab4b0f7952
[ "MIT" ]
null
null
null
telegram_bot/handlers/messages/sum.py
ProgrammingLanguageLeader/MathematicianBot
a4627962a6c8bfac76013d80780997ab4b0f7952
[ "MIT" ]
16
2018-03-05T14:25:16.000Z
2022-03-11T23:46:56.000Z
telegram_bot/handlers/messages/sum.py
ProgrammingLanguageLeader/MathematicianBot
a4627962a6c8bfac76013d80780997ab4b0f7952
[ "MIT" ]
null
null
null
from telegram import ReplyKeyboardRemove from telegram_bot.handlers.utils.decorators import write_logs, send_typing, \ remember_new_user from telegram_bot.handlers.utils.menu_entries import MenuEntry @write_logs @send_typing @remember_new_user def handle_sum(bot, update) -> int: chat_id = update.message.chat...
30.142857
77
0.709321
7983052064db161f0200c2cec58c2cc62df44203
159,901
py
Python
src/pagure/hooks/files/git_multimail_upstream.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/pagure/hooks/files/git_multimail_upstream.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/pagure/hooks/files/git_multimail_upstream.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python __version__ = "1.4.0" # Copyright (c) 2015-2016 Matthieu Moy and others # Copyright (c) 2012-2014 Michael Haggerty and others # Derived from contrib/hooks/post-receive-email, which is # Copyright (c) 2007 Andy Parkins # and also includes contributions by other authors. # # This file is part of g...
34.806487
93
0.593486
7983072e9191c47733615512cd20df66e53cee6b
5,251
py
Python
dask/dataframe/io/demo.py
aeisenbarth/dask
3c46e89aea2af010e69049cd638094fea2ddd576
[ "BSD-3-Clause" ]
9,684
2016-02-12T16:09:21.000Z
2022-03-31T19:38:26.000Z
dask/dataframe/io/demo.py
aeisenbarth/dask
3c46e89aea2af010e69049cd638094fea2ddd576
[ "BSD-3-Clause" ]
7,059
2016-02-11T18:32:45.000Z
2022-03-31T22:12:40.000Z
dask/dataframe/io/demo.py
aeisenbarth/dask
3c46e89aea2af010e69049cd638094fea2ddd576
[ "BSD-3-Clause" ]
1,794
2016-02-13T23:28:39.000Z
2022-03-30T14:33:19.000Z
import numpy as np import pandas as pd from ...highlevelgraph import HighLevelGraph from ...layers import DataFrameIOLayer from ...utils import random_state_data from ..core import DataFrame, tokenize __all__ = ["make_timeseries"] def make_float(n, rstate): return rstate.rand(n) * 2 - 1 def make_int(n, rstate...
27.783069
87
0.596077
798308716e1c43700d868dd091fee901e7dc3064
16,332
py
Python
tensorflow_model_analysis/api/tfma_unit.py
josephw-ml/model-analysis
3105200fd39aa46e4c4d83aa460d92aa08a4b784
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/api/tfma_unit.py
josephw-ml/model-analysis
3105200fd39aa46e4c4d83aa460d92aa08a4b784
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/api/tfma_unit.py
josephw-ml/model-analysis
3105200fd39aa46e4c4d83aa460d92aa08a4b784
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
41.663265
105
0.706956
798308ef6ce7a9702e112e67186f18de86676e4a
47,955
py
Python
For_Real_iCub/learning/learnwoFd.py
a-taniguchi/CSL-BGM
64bd803289e55b76a219c02ea040325a8a5b949e
[ "MIT" ]
1
2018-09-27T12:19:05.000Z
2018-09-27T12:19:05.000Z
For_Real_iCub/learning/learnwoFd.py
neuronalX/CSL-BGM
2fc66611928783c9b65c675ec84d9c06e0b6cd8a
[ "MIT" ]
null
null
null
For_Real_iCub/learning/learnwoFd.py
neuronalX/CSL-BGM
2fc66611928783c9b65c675ec84d9c06e0b6cd8a
[ "MIT" ]
1
2018-09-27T12:19:21.000Z
2018-09-27T12:19:21.000Z
#coding:utf-8 ############################################## # iCub learning program # Basically, Gibbs sampling of GMMs and LDA (Fdの制約なし) # Akira Taniguchi 2016/05/31-2016/6/15-2017/03/15 ############################################## ###そもそもどんなデータを受け取るのか #別プログラムで、処理しておいて、読み込むだけにする(?) #単語は、latticelmする場合は、...
37.759843
515
0.480909
798309412280bea39f5b3a4f130640c04d27789e
1,261
py
Python
algorithms/sort/merge_sort.py
OrangeShen/algorithms
111ae513e25579418a31283109a4eb4aed089425
[ "MIT" ]
null
null
null
algorithms/sort/merge_sort.py
OrangeShen/algorithms
111ae513e25579418a31283109a4eb4aed089425
[ "MIT" ]
null
null
null
algorithms/sort/merge_sort.py
OrangeShen/algorithms
111ae513e25579418a31283109a4eb4aed089425
[ "MIT" ]
null
null
null
def merge_sort(arr): """ Merge Sort Complexity: O(n log(n)) """ # Our recursive base case if len(arr) <= 1: return arr mid = len(arr) // 2 # Perform merge_sort recursively on both halves left, right = merge_sort(arr[:mid]), merge_sort(arr[mid:]) # Merge each side togethe...
32.333333
68
0.632038
79830a2dcb34f5a9ad09aa8f700f9561e8647381
1,411
py
Python
Client.py
Sohrj00/TAKR2018
69a3720c4ab1572d9d839d82f6b6eb9b4370d9df
[ "MIT" ]
null
null
null
Client.py
Sohrj00/TAKR2018
69a3720c4ab1572d9d839d82f6b6eb9b4370d9df
[ "MIT" ]
null
null
null
Client.py
Sohrj00/TAKR2018
69a3720c4ab1572d9d839d82f6b6eb9b4370d9df
[ "MIT" ]
null
null
null
import random import asyncio #globalni promenne n=65537 g=111 maleC=123123 def diffehel(velkeS): global n,g,maleC velkeS=int(velkeS) klic=velkeS**maleC%n return klic async def posliVecDostanOdpoved(message, loop): reader, writer = await asyncio.open_connection('127.0.0.1', 888...
23.915254
80
0.632176
79830a4c9952967dea366334f17adac06eb8e07e
257
py
Python
tea_admin/tea_admin/doctype/kamjari/test_kamjari.py
nivedita05/Tea-Admin
4267cfa9d0c97e586bd9b5401e310bcd8ec93268
[ "MIT" ]
null
null
null
tea_admin/tea_admin/doctype/kamjari/test_kamjari.py
nivedita05/Tea-Admin
4267cfa9d0c97e586bd9b5401e310bcd8ec93268
[ "MIT" ]
null
null
null
tea_admin/tea_admin/doctype/kamjari/test_kamjari.py
nivedita05/Tea-Admin
4267cfa9d0c97e586bd9b5401e310bcd8ec93268
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest # test_records = frappe.get_test_records('Kamjari') class TestKamjari(unittest.TestCase): pass
19.769231
51
0.766537
79830aa46993b1e13d5b4dfd1253502a4c53ec30
3,675
py
Python
lib/utils/oauth.py
sierrezinal/api-l3x-in
0c5122a29ecd8f94cb9b99909499c330969d26ee
[ "Apache-2.0" ]
1
2021-02-04T23:42:43.000Z
2021-02-04T23:42:43.000Z
lib/utils/oauth.py
sierrezinal/api-l3x-in
0c5122a29ecd8f94cb9b99909499c330969d26ee
[ "Apache-2.0" ]
null
null
null
lib/utils/oauth.py
sierrezinal/api-l3x-in
0c5122a29ecd8f94cb9b99909499c330969d26ee
[ "Apache-2.0" ]
null
null
null
from typing import ( Iterable, Mapping, Optional, ) from . import ( HandledError, Log, Response, ) from .helpers import ( import_non_stdlib_module, send_http_request, ) oauthlib = import_non_stdlib_module("oauthlib.oauth2") # pylint: disable=invalid-name requests_oauthlib = import_no...
33.108108
97
0.623673
79830ab76f7fef13ad38c4efff90563bf7d225f4
3,813
py
Python
examples/withRaycing/02_Balder_BL/__init__.py
adinatan/xrt
75b884c0cba7e1aac15b30f2d0d803597328a208
[ "MIT" ]
71
2016-07-04T06:40:52.000Z
2022-03-31T10:03:07.000Z
examples/withRaycing/02_Balder_BL/__init__.py
adinatan/xrt
75b884c0cba7e1aac15b30f2d0d803597328a208
[ "MIT" ]
99
2016-07-10T16:39:05.000Z
2022-03-28T07:50:10.000Z
examples/withRaycing/02_Balder_BL/__init__.py
adinatan/xrt
75b884c0cba7e1aac15b30f2d0d803597328a208
[ "MIT" ]
30
2016-07-08T17:12:30.000Z
2022-03-30T06:54:21.000Z
# -*- coding: utf-8 -*- r""" Beamline optics --------------- The images below are produced by the scripts in ``\examples\withRaycing\02_Balder_BL\``. The examples show the scans of various optical elements at Balder@MaxIV beamline. The source is a multipole conventional wiggler. Diamond filter of varying thickness ...
37.019417
79
0.468135
79830b257513e33fedb297961ef6fbdc6376af4e
20,879
py
Python
sdk/python/pulumi_vsphere/storage_drs_vm_override.py
pulumi/pulumi-vsphere
a4536cd49860323bd57cbf2a127c5b57c9f9b60c
[ "ECL-2.0", "Apache-2.0" ]
38
2018-09-17T18:56:29.000Z
2022-03-26T03:07:20.000Z
sdk/python/pulumi_vsphere/storage_drs_vm_override.py
pulumi/pulumi-vsphere
a4536cd49860323bd57cbf2a127c5b57c9f9b60c
[ "ECL-2.0", "Apache-2.0" ]
75
2018-09-17T13:18:24.000Z
2022-03-31T21:32:30.000Z
sdk/python/pulumi_vsphere/storage_drs_vm_override.py
pulumi/pulumi-vsphere
a4536cd49860323bd57cbf2a127c5b57c9f9b60c
[ "ECL-2.0", "Apache-2.0" ]
2
2019-10-05T10:30:01.000Z
2020-09-30T11:16:59.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
49.711905
134
0.67144
79830bf4bf6e5da3c81ebb8252d9cb24353ba5c6
4,709
py
Python
chapter05/06_RaceTrack_MCC_OffP.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
1
2022-03-01T11:48:55.000Z
2022-03-01T11:48:55.000Z
chapter05/06_RaceTrack_MCC_OffP.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
null
null
null
chapter05/06_RaceTrack_MCC_OffP.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
null
null
null
''' 06_RaceTrack_MCC_OffP.py : Solution to exercise 5.12 Cem Karaoguz, 2020 MIT License ''' import sys import numpy as np import pylab as pl from mpl_toolkits.mplot3d import Axes3D from IRL.environments.Gridworlds import RaceTrack from IRL.agents.MonteCarlo import MonteCarloOffPolicyControl from IRL.utils.Policies i...
34.881481
109
0.661924
79830c4528dd658144ce3810dbb38c44be2e2da6
4,604
py
Python
third_party/harfbuzz/test/subset/run-tests.py
panda-factory/showmaker
cd76586af8227e2325f44b28f3c93aadec6b22ea
[ "Apache-2.0" ]
null
null
null
third_party/harfbuzz/test/subset/run-tests.py
panda-factory/showmaker
cd76586af8227e2325f44b28f3c93aadec6b22ea
[ "Apache-2.0" ]
1
2021-10-12T08:44:43.000Z
2021-10-12T08:44:43.000Z
third_party/harfbuzz/test/subset/run-tests.py
panda-factory/wtf
cd76586af8227e2325f44b28f3c93aadec6b22ea
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Runs a subsetting test suite. Compares the results of subsetting via harfbuzz # to subsetting via fonttools. from difflib import unified_diff import os import re import subprocess import sys import tempfile import shutil import io import hashlib from subset_test_suite import SubsetTestSuite ...
30.899329
110
0.680278
79830c871684e65eb27513f01cc3d97f20f7dd1a
47,923
py
Python
napari/layers/shapes/_tests/test_shapes.py
danielballan/napari
9963d6bf52971f8f240b507be206ec682487fb4a
[ "BSD-3-Clause" ]
null
null
null
napari/layers/shapes/_tests/test_shapes.py
danielballan/napari
9963d6bf52971f8f240b507be206ec682487fb4a
[ "BSD-3-Clause" ]
null
null
null
napari/layers/shapes/_tests/test_shapes.py
danielballan/napari
9963d6bf52971f8f240b507be206ec682487fb4a
[ "BSD-3-Clause" ]
null
null
null
from copy import copy from itertools import cycle, islice import numpy as np import pandas as pd import pytest from vispy.color import get_colormap from napari.layers import Shapes from napari.utils.colormaps.standardize_color import transform_color def _make_cycled_properties(values, length): """Helper functio...
33.724842
83
0.651086
79830cb2c32e00c74567da960cdcf4ecf203bcd0
474
py
Python
torchtext/models/roberta/__init__.py
pmeier/text
91dde7e938e38cf31029d9c41799bd4e29c5fa78
[ "BSD-3-Clause" ]
null
null
null
torchtext/models/roberta/__init__.py
pmeier/text
91dde7e938e38cf31029d9c41799bd4e29c5fa78
[ "BSD-3-Clause" ]
null
null
null
torchtext/models/roberta/__init__.py
pmeier/text
91dde7e938e38cf31029d9c41799bd4e29c5fa78
[ "BSD-3-Clause" ]
null
null
null
from .model import ( RobertaEncoderConf, RobertaClassificationHead, RobertaModel, ) from .bundler import ( RobertaModelBundle, XLMR_BASE_ENCODER, XLMR_LARGE_ENCODER, ROBERTA_BASE_ENCODER, ROBERTA_LARGE_ENCODER, ) __all__ = [ "RobertaEncoderConf", "RobertaClassificationHead", ...
18.96
32
0.71097
79830d02fc9a734167ec74b2bc663733fc71070f
8,790
py
Python
pyxform/question.py
HaidarZ/pyxform
a80dea062c7c75299869d64239c6ac3223d77e31
[ "BSD-2-Clause" ]
null
null
null
pyxform/question.py
HaidarZ/pyxform
a80dea062c7c75299869d64239c6ac3223d77e31
[ "BSD-2-Clause" ]
null
null
null
pyxform/question.py
HaidarZ/pyxform
a80dea062c7c75299869d64239c6ac3223d77e31
[ "BSD-2-Clause" ]
null
null
null
import os.path from pyxform.errors import PyXFormError from pyxform.question_type_dictionary import QUESTION_TYPE_DICT from pyxform.survey_element import SurveyElement from pyxform.utils import basestring, node, unicode class Question(SurveyElement): def validate(self): SurveyElement.validate(self) ...
31.281139
78
0.584414
79830e590b0528a5e9596cc2ccabdd0b3b9d6960
3,902
py
Python
trick_source/er7_utils/sims/SIM_grav/RUN_test/long_er7_euler.py
gilbertguoze/trick
f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21
[ "NASA-1.3" ]
647
2015-05-07T16:08:16.000Z
2022-03-30T02:33:21.000Z
trick_source/er7_utils/sims/SIM_grav/RUN_test/long_er7_euler.py
gilbertguoze/trick
f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21
[ "NASA-1.3" ]
995
2015-04-30T19:44:31.000Z
2022-03-31T20:14:44.000Z
trick_source/er7_utils/sims/SIM_grav/RUN_test/long_er7_euler.py
gilbertguoze/trick
f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21
[ "NASA-1.3" ]
251
2015-05-15T09:24:34.000Z
2022-03-22T20:39:05.000Z
# Configure the simulation control parameters. trick.sim_services.exec_set_trap_sigbus(1) trick.sim_services.exec_set_trap_sigfpe(1) trick.sim_services.exec_set_trap_sigsegv(1) # Turn off unneeded Trick objects trick_sys.sched.set_sim_object_onoff("trick_vs", 0) trick_sys.sched.set_sim_object_onoff("instruments", 0) t...
33.930435
74
0.789339
798310eeb23efdc89ca89b00255258b52fe09e52
1,160
py
Python
istarmap.py
AlexStirban/PlagiarismDetector
e361ccfe60688cf1e110ddd79eafab613905d7c9
[ "MIT" ]
3
2020-11-19T08:12:43.000Z
2021-04-13T03:31:38.000Z
istarmap.py
AlexStirban/PlagiarismDetector
e361ccfe60688cf1e110ddd79eafab613905d7c9
[ "MIT" ]
null
null
null
istarmap.py
AlexStirban/PlagiarismDetector
e361ccfe60688cf1e110ddd79eafab613905d7c9
[ "MIT" ]
1
2020-11-03T01:28:34.000Z
2020-11-03T01:28:34.000Z
####################################################################################### # Thanks to Darkoanout fo the istarmap patch # # Taken from: https://stackoverflow.com/questions/57354700/starmap-combined-with-tqdm # ########################################################...
34.117647
87
0.487931
798311ea87dbf0ee56b7fdb2a3f36fce4ac48f7e
2,026
py
Python
pytest_shard/pytest_shard.py
alex/pytest-shard
077beb3f7059deb5cfd5a74c887b9132de7020ae
[ "MIT" ]
null
null
null
pytest_shard/pytest_shard.py
alex/pytest-shard
077beb3f7059deb5cfd5a74c887b9132de7020ae
[ "MIT" ]
null
null
null
pytest_shard/pytest_shard.py
alex/pytest-shard
077beb3f7059deb5cfd5a74c887b9132de7020ae
[ "MIT" ]
null
null
null
"""Shard tests to support parallelism across multiple machines.""" import hashlib from typing import Iterable, List, Sequence from _pytest import nodes # for type checking only def positive_int(x) -> int: x = int(x) if x < 0: raise ValueError(f"Argument {x} must be positive") return x def pyt...
31.65625
99
0.666831
798312d5b33d0ec90840eedd368b944a42e15d22
1,617
py
Python
libkol/request/store_item_remove.py
danheath/pykol-lib
bdc9aa8dbae64ead07e7dbc36f9d6ba802f65ddc
[ "BSD-3-Clause" ]
6
2019-06-11T19:25:32.000Z
2022-01-21T17:05:01.000Z
libkol/request/store_item_remove.py
danheath/pykol-lib
bdc9aa8dbae64ead07e7dbc36f9d6ba802f65ddc
[ "BSD-3-Clause" ]
8
2019-06-17T11:41:14.000Z
2019-08-07T17:28:50.000Z
libkol/request/store_item_remove.py
python-kol/pykollib
bdc9aa8dbae64ead07e7dbc36f9d6ba802f65ddc
[ "BSD-3-Clause" ]
9
2019-06-09T22:23:06.000Z
2021-07-10T00:49:00.000Z
import libkol from ..Error import ItemNotFoundError, UnknownError from ..pattern import PatternManager from .request import Request class store_item_remove(Request[bool]): """ Take a single item from your store using the new Mall interface from Sep 2013 Class expects at least an itemId. If no quantity i...
35.933333
94
0.691404
798312fd0ba60e6d0d3666d198d4c03535da0246
6,499
py
Python
data/external/repositories_2to3/115375/hail-seizure-master/train.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/115375/hail-seizure-master/train.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/115375/hail-seizure-master/train.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
#!/usr/bin/env python3 import python.utils as utils import os import joblib import pickle import pdb def main(settingsfname, verbose=False, store_models=True, store_features=False, save_training_detailed=False, load_pickled=False, parallel=0): settings = utils.get_settings(setting...
39.871166
82
0.413756