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
21f12507e1714362035f02040a1a6ada24efc61a
600
py
Python
examples/example2.py
dfornika/drmaa-python
3023bec6533315a8b6d8cbd30b785c8793b41c85
[ "BSD-3-Clause" ]
79
2015-03-01T15:19:58.000Z
2022-01-14T08:58:55.000Z
examples/example2.py
dfornika/drmaa-python
3023bec6533315a8b6d8cbd30b785c8793b41c85
[ "BSD-3-Clause" ]
61
2015-04-08T07:10:34.000Z
2021-10-06T10:24:23.000Z
examples/example2.py
drmaa-python/drmaa-python
ed6b926074d730f6fc37505360f65b8b79e8797f
[ "BSD-3-Clause" ]
33
2015-04-04T10:22:08.000Z
2021-07-22T13:15:51.000Z
#!/usr/bin/env python from __future__ import print_function import drmaa import os def main(): """Submit a job. Note, need file called sleeper.sh in current directory. """ s = drmaa.Session() s.initialize() print('Creating job template') jt = s.createJobTemplate() jt.remoteCommand = o...
20.689655
59
0.628333
21f12788a2fdbf2c20a4e9de5c7e609a3f531eeb
15,011
py
Python
appengine/swarming/handlers_backend.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/swarming/handlers_backend.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/swarming/handlers_backend.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Main entry point for Swarming backend handlers.""" import collections import datetime import json import logging import webapp2 from google.a...
35.07243
79
0.713077
21f15ffd001cf2267726e85495824f487e946606
5,684
py
Python
ryu/topology/event.py
mgrex97/ryu_competition
d8fbf424accf16e4ff18acff552317441de75010
[ "Apache-2.0" ]
1
2019-03-27T10:18:35.000Z
2019-03-27T10:18:35.000Z
ryu/topology/event.py
mgrex97/ryu_competition
d8fbf424accf16e4ff18acff552317441de75010
[ "Apache-2.0" ]
null
null
null
ryu/topology/event.py
mgrex97/ryu_competition
d8fbf424accf16e4ff18acff552317441de75010
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation. # # 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...
28.278607
69
0.673821
21f167ecb8ae12cfa3543f90e49ce5b3fe84eb37
7,240
py
Python
Masks verse Comprehension Lists.py
jason-neal/Efficiency-tests
64bcec8213876a15ab278c4af328357bcdc126c9
[ "MIT" ]
null
null
null
Masks verse Comprehension Lists.py
jason-neal/Efficiency-tests
64bcec8213876a15ab278c4af328357bcdc126c9
[ "MIT" ]
null
null
null
Masks verse Comprehension Lists.py
jason-neal/Efficiency-tests
64bcec8213876a15ab278c4af328357bcdc126c9
[ "MIT" ]
null
null
null
# coding: utf-8 # # Masks not Comprehension lists for Numpy Arrays # # Masks are are more efficient to use numpy arrays than list comprehension. # Here I will show two places I have improved speed in inherited code. # # The first example is a function that selects a section out of a spectra specified by wavelength ...
34.47619
362
0.70953
21f185506c64bb0d9b25ddf2282bffe0566ce153
4,090
py
Python
sdk/loadtestservice/azure-mgmt-loadtestservice/azure/mgmt/loadtestservice/_load_test_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/loadtestservice/azure-mgmt-loadtestservice/azure/mgmt/loadtestservice/_load_test_client.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/loadtestservice/azure-mgmt-loadtestservice/azure/mgmt/loadtestservice/_load_test_client.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.052632
133
0.684841
21f199e998aa74d96d2b838325b79666beef1073
2,466
py
Python
app/admin.py
oborys/DNAC-Monitoring-App
171f8e39c923e6d5cbedc0d7bb9dd6f2a43a24b8
[ "MIT" ]
6
2019-05-10T10:18:29.000Z
2020-09-21T18:43:06.000Z
app/admin.py
oborys/DNAC-Monitoring-App
171f8e39c923e6d5cbedc0d7bb9dd6f2a43a24b8
[ "MIT" ]
1
2020-04-29T08:32:33.000Z
2020-04-29T08:32:33.000Z
app/admin.py
oborys/DNAC-Monitoring-App
171f8e39c923e6d5cbedc0d7bb9dd6f2a43a24b8
[ "MIT" ]
1
2019-12-27T06:39:56.000Z
2019-12-27T06:39:56.000Z
# # Copyright (c) 2019 Cisco Systems # Licensed under the MIT License # from django.contrib import admin from .models import * # Register your models here. class UserProfileAdmin(admin.ModelAdmin): list_display = [field.name for field in UserProfile._meta.fields] search_fields = [field.name for field in User...
34.25
74
0.767234
21f1e087403c5bb7c6effcb04457dfc488d0989c
2,071
py
Python
neural_net/cell_nodes.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
null
null
null
neural_net/cell_nodes.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
4
2021-03-25T19:52:40.000Z
2021-12-12T17:57:11.000Z
neural_net/cell_nodes.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
null
null
null
# the neural nodes for the individual cells # written by Russell on 5/9/20 # modified on 5/10/20 to align board data structure with rest of project # rewritten on 5/15/20 to convert to class # sets: # move = 'X' - P(x_wins) = 1 * weight; else 0 # move = 'O' - P(o_wins) = 1 * weight; else 0 # move = empty - P(draw) = 1...
36.333333
103
0.584742
21f1fcd63e86d719a2852432842a17d994e112c5
2,326
py
Python
extensions/iodevice/scripts/copy_deviceinfo_for_duino.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
1
2020-04-28T23:25:50.000Z
2020-04-28T23:25:50.000Z
extensions/iodevice/scripts/copy_deviceinfo_for_duino.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
11
2020-01-30T16:27:24.000Z
2020-08-09T06:25:06.000Z
extensions/iodevice/scripts/copy_deviceinfo_for_duino.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # copy_iodevice_for_duino.py 15.7.2020/pekka # Copies iodevice library files needed for PlatformIO Arduino build # into /coderoot/lib/arduino-platformio/iodevice directory. # To make this look like Arduino library, all .c and .cpp # files are copied directly to target directory, and all header # ...
29.075
69
0.61264
21f204a481eb66287d1f6bd9f37847aa9da08f32
92
py
Python
tests/inputs/lists-tuples/20-list-subscript.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
4
2019-10-06T18:01:24.000Z
2020-07-03T05:27:35.000Z
tests/inputs/lists-tuples/20-list-subscript.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
5
2021-06-07T15:50:04.000Z
2021-06-07T15:50:06.000Z
tests/inputs/lists-tuples/20-list-subscript.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
null
null
null
a = [1] b = a.append b(9) b([4]) c = a[2].append c(a) a[2][0] = [[5.0]][0][0] del a[0] a[2]
9.2
23
0.423913
21f22b0dd8f984946504f51fc8cde0ceee8efc3f
4,597
py
Python
tools/visualize_detection_results.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
10
2021-08-31T01:39:40.000Z
2022-03-27T13:13:14.000Z
tools/visualize_detection_results.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
1
2021-10-10T05:36:35.000Z
2021-12-11T05:56:26.000Z
tools/visualize_detection_results.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
3
2021-09-05T09:14:35.000Z
2021-10-21T03:15:59.000Z
import json import os import sys from collections import defaultdict from concurrent import futures import cv2 import matplotlib import numpy as np # Use a non-interactive backend matplotlib.use('Agg') import matplotlib.pyplot as plt # Print iterations progress (thanks StackOverflow) def print_progress(iteration, ...
35.914063
155
0.607353
21f2960bd514885e9d64e69561ef89abed43403e
1,688
py
Python
xflask/web/filter.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
2
2020-02-11T08:29:49.000Z
2020-02-17T10:24:36.000Z
xflask/web/filter.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
null
null
null
xflask/web/filter.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
null
null
null
import logging from flask import request from werkzeug.routing import Map, Rule class Filter(object): order = None def init(self, application): pass def before(self): pass def after(self, response): return response class ApiLoggingFilter(Filter): def init(self, appli...
24.463768
70
0.567536
21f297329d50cca91b03bcd2527abfc57670cf16
2,039
py
Python
nbviewer/log.py
SylvainCorlay/nbviewer
3e187a7531060c924991f05555026142a5e53996
[ "BSD-3-Clause-Clear" ]
1
2018-06-10T05:45:04.000Z
2018-06-10T05:45:04.000Z
nbviewer/log.py
SylvainCorlay/nbviewer
3e187a7531060c924991f05555026142a5e53996
[ "BSD-3-Clause-Clear" ]
null
null
null
nbviewer/log.py
SylvainCorlay/nbviewer
3e187a7531060c924991f05555026142a5e53996
[ "BSD-3-Clause-Clear" ]
2
2017-04-09T08:18:58.000Z
2019-10-13T13:01:26.000Z
#----------------------------------------------------------------------------- # Copyright (C) 2013 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #-----------------------------------------------------...
37.072727
83
0.598823
21f2bb3675645b0658defd14babc49f63e2961ba
989
py
Python
portals/wwits/apis/test/test_rest_services.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/apis/test/test_rest_services.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/apis/test/test_rest_services.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
import unittest from portals.wwits import urls from portals.wwits.apis import rest_services class TestRestUrl(unittest.TestCase): def test_rest_url(self): """rest_url() gives same as wwits_url('WWITS-RESTServer')""" expected = urls.wwits_url("/WWITS-RESTServer/") actual = rest_services.re...
35.321429
75
0.678463
21f2dc4640bcc2a87f641f385ee510f296025f16
499
py
Python
tests/test_pickle.py
ysegorov/jukoro
8be1d01b471c6091056df77ffacaee5cc8c470d0
[ "MIT" ]
null
null
null
tests/test_pickle.py
ysegorov/jukoro
8be1d01b471c6091056df77ffacaee5cc8c470d0
[ "MIT" ]
null
null
null
tests/test_pickle.py
ysegorov/jukoro
8be1d01b471c6091056df77ffacaee5cc8c470d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from unittest import TestCase from jukoro import pickle from jukoro.structures import ObjectDict class TestPickle(TestCase): def test_dict(self): a = {'a': 12, 'b': 13} b = pickle.dumps(a) c = pickle.loads(b) self.assertEqual(c, a) def test_object_d...
19.96
44
0.59519
21f2de3459dcfa59bbf8d236ad85a92c58f0473d
2,570
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/geo_replication_stats_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/geo_replication_stats_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/geo_replication_stats_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
42.833333
81
0.667315
21f2eafd2b981fe46f603b05d626a4339b525403
2,455
py
Python
ngraph/frontends/neon/tests/test_axis.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/frontends/neon/tests/test_axis.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/frontends/neon/tests/test_axis.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
import pytest import ngraph as ng from ngraph.op_graph.axes import IncompatibleAxesError from ngraph.frontends.neon.axis import is_shadow_axis, make_shadow_axis, reorder_spatial_axes @pytest.fixture() def axis_a(): return ng.make_axis(1, name='a') @pytest.fixture() def CDHWN(): return ng.make_axes([ ...
30.6875
93
0.675356
21f301b67460f42f2ff9621ffe0d95e196fb0151
521
py
Python
marchena/modules/posts/apps.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
marchena/modules/posts/apps.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
marchena/modules/posts/apps.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from yepes.apps import OverridableConfig class PostsConfig(OverridableConfig): name = 'marchena.modules.posts' verbose_name = _('Posts') def ready(self): super(PostsConfig, s...
24.809524
76
0.71977
21f30a265e09e638d54b701235f2a295a25d69ac
1,695
py
Python
harmony_qgis_sessions_dialog.py
InnovativeDigitalSolution/NASA_harmony-qgis
e818fc410809811fa9af79a92599c04fdb820fa5
[ "Apache-2.0", "0BSD" ]
2
2021-03-22T19:07:34.000Z
2021-07-23T23:02:21.000Z
harmony_qgis_sessions_dialog.py
InnovativeDigitalSolution/NASA_harmony-qgis
e818fc410809811fa9af79a92599c04fdb820fa5
[ "Apache-2.0", "0BSD" ]
null
null
null
harmony_qgis_sessions_dialog.py
InnovativeDigitalSolution/NASA_harmony-qgis
e818fc410809811fa9af79a92599c04fdb820fa5
[ "Apache-2.0", "0BSD" ]
1
2021-07-18T01:44:39.000Z
2021-07-18T01:44:39.000Z
# -*- coding: utf-8 -*- """ /*************************************************************************** HarmonyQGISessionsSDialog ***************************************************************************/ /*************************************************************************** * ...
44.605263
99
0.499115
21f30e5ddb68be4bacb052a8ee07f2dd224055cb
1,186
py
Python
stanwood/services/__init__.py
stanwood/Stanwood_Python
1802a10477119f14bbf186a8a636c9b847948e35
[ "MIT" ]
null
null
null
stanwood/services/__init__.py
stanwood/Stanwood_Python
1802a10477119f14bbf186a8a636c9b847948e35
[ "MIT" ]
null
null
null
stanwood/services/__init__.py
stanwood/Stanwood_Python
1802a10477119f14bbf186a8a636c9b847948e35
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2018 stanwood GmbH # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, m...
45.615385
79
0.768971
21f33a128b225eac9f927f03190510282747a342
13,299
py
Python
sssom/cliquesummary.py
cthoyt/sssom-py
2429f640ce76e1d4116a9affc8042c5488dab7d1
[ "CC0-1.0" ]
null
null
null
sssom/cliquesummary.py
cthoyt/sssom-py
2429f640ce76e1d4116a9affc8042c5488dab7d1
[ "CC0-1.0" ]
null
null
null
sssom/cliquesummary.py
cthoyt/sssom-py
2429f640ce76e1d4116a9affc8042c5488dab7d1
[ "CC0-1.0" ]
null
null
null
# Auto generated from cliquesummary.yaml by pythongen.py version: 0.9.0 # Generation date: 2021-08-19 18:02 # Schema: sssom-cliquesummary # # id: http://w3id.org/sssom/schema/cliquesummary/ # description: Data dictionary for clique summaries # license: https://creativecommons.org/publicdomain/zero/1.0/ import dataclas...
41.820755
179
0.722611
21f34adca5e7b7ae37c4da27454d4d8fbc3879ec
25
py
Python
experiments_dikower/controllers/drlbox/common/namescope.py
prokhn/onti-2019-bigdata
b9296141958f544177388be94072efce7bdc7814
[ "MIT" ]
null
null
null
experiments_dikower/controllers/drlbox/common/namescope.py
prokhn/onti-2019-bigdata
b9296141958f544177388be94072efce7bdc7814
[ "MIT" ]
null
null
null
experiments_dikower/controllers/drlbox/common/namescope.py
prokhn/onti-2019-bigdata
b9296141958f544177388be94072efce7bdc7814
[ "MIT" ]
null
null
null
TF_NAMESCOPE = 'drlbox'
8.333333
23
0.72
21f366ef385dd91c087d3d7b103f0f0623660f03
626
py
Python
master/bopytest-code/code/ch3/test_autouse.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/bopytest-code/code/ch3/test_autouse.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/bopytest-code/code/ch3/test_autouse.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
import pytest import time @pytest.fixture(autouse=True, scope='session') def footer_session_scope(): 'report the time at the end of a session' yield now = time.time() print('--') print('finished : {}'.format(time.strftime('%c', time.localtime(now)))) print('-----------------') @pytest.fixtur...
22.357143
75
0.626198
21f3702ecb563400ee340d2cc6ae996283af8770
3,774
py
Python
tensor2tensor/data_generators/quora_qpairs.py
shankharaj29/tensor2tensor
b89ba51a6fa9e0c20009cfb57ee8de04f7138392
[ "Apache-2.0" ]
2
2020-03-02T13:49:11.000Z
2020-06-18T09:48:35.000Z
tensor2tensor/data_generators/quora_qpairs.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
1
2019-01-21T10:57:47.000Z
2019-01-21T10:57:47.000Z
tensor2tensor/data_generators/quora_qpairs.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
1
2021-08-29T20:37:37.000Z
2021-08-29T20:37:37.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
30.435484
79
0.707207
21f3966b16c916a425244a12c98b9082694962c1
555
py
Python
maquinaria/alquileres/urls.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
maquinaria/alquileres/urls.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
maquinaria/alquileres/urls.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
"""Urls de Maquinas""" #Django from django.urls import include, path #Django rest_framework from rest_framework.routers import DefaultRouter #Views from .views import alquileres as alquileres_views from maquinaria.alquileres.views import Estado router = DefaultRouter() router.register(r'alquileres', alquileres_v...
27.75
85
0.781982
21f3fc15622bb8b68d33d46a0e9a490a293dc897
8,635
py
Python
cinder/tests/unit/api/v3/test_snapshot_manage.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/api/v3/test_snapshot_manage.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/tests/unit/api/v3/test_snapshot_manage.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright (c) 2016 Stratoscale, Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
44.282051
79
0.647713
21f425f5895f004dbcfbe86ee8611cb544c29934
2,986
py
Python
MouseControlPython/mouseControlXBrowser/UDPIntf.py
incidincer/twice
96d6bf1f305c40644146dc9fb4551be49db0443f
[ "Apache-2.0" ]
null
null
null
MouseControlPython/mouseControlXBrowser/UDPIntf.py
incidincer/twice
96d6bf1f305c40644146dc9fb4551be49db0443f
[ "Apache-2.0" ]
null
null
null
MouseControlPython/mouseControlXBrowser/UDPIntf.py
incidincer/twice
96d6bf1f305c40644146dc9fb4551be49db0443f
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Oliver Schmid # 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, s...
43.911765
128
0.490288
21f437682bfa8e6f2a7740ad1115e9bd8b84498a
24,603
py
Python
src/bloombox/schema/analytics/Context_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
4
2018-01-23T20:13:11.000Z
2018-07-28T22:36:09.000Z
src/bloombox/schema/analytics/Context_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
159
2018-02-02T09:55:52.000Z
2021-07-21T23:41:59.000Z
src/bloombox/schema/analytics/Context_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
3
2018-01-23T20:13:15.000Z
2020-01-17T01:07:53.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: analytics/Context.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection...
75.238532
3,845
0.791611
21f4471d9d0b121b8126dd5aa7f03ee1b460915d
13,042
py
Python
pulser-core/pulser/register/register.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-core/pulser/register/register.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-core/pulser/register/register.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pulser Development Team # # 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 i...
36.328691
81
0.576292
21f472585b0807c5c13d7a8a657e1a433750dca8
2,075
py
Python
train.py
ferrelm/image-classifier
9cb90b63db67887be019d6d016600e8675fec0f9
[ "MIT" ]
null
null
null
train.py
ferrelm/image-classifier
9cb90b63db67887be019d6d016600e8675fec0f9
[ "MIT" ]
null
null
null
train.py
ferrelm/image-classifier
9cb90b63db67887be019d6d016600e8675fec0f9
[ "MIT" ]
null
null
null
# Imports here import matplotlib.pyplot as plt import seaborn as sns from PIL import Image import json import numpy as np import os, random import time import torch from torch import nn from torch import optim import torch.nn.functional as F from torchvision import datasets, transforms, models import argparse import f...
39.150943
165
0.750843
21f49ca98491d6fb43e172452b87ab3889d605ba
811
py
Python
code/analysis/dataloader.py
arjunchandra/continuous-rl
8f3c655c6a4b2e9d15a6b052e5466c0a75191a08
[ "MIT" ]
17
2019-03-29T18:30:36.000Z
2021-10-17T15:38:22.000Z
code/analysis/dataloader.py
arjunchandra/continuous-rl
8f3c655c6a4b2e9d15a6b052e5466c0a75191a08
[ "MIT" ]
1
2019-04-22T22:40:30.000Z
2019-04-24T21:45:07.000Z
code/analysis/dataloader.py
ctallec/continuous-rl
8f3c655c6a4b2e9d15a6b052e5466c0a75191a08
[ "MIT" ]
5
2019-04-29T16:26:18.000Z
2020-01-23T07:17:49.000Z
import os from analog.load import load, LoadPredicate, ExperimentLog from datetime import datetime def loader(workdir: str, exp_name: str, start_date=None, stop_date=None) -> ExperimentLog: list_exp_names = os.listdir(workdir) if exp_name not in list_exp_names: raise ValueError(f'The experience {exp_na...
33.791667
90
0.662145
21f4a27f40504339555d66652a0c992d8b267802
1,260
py
Python
fish/tests/test_api_views.py
ann26/kbims-fish
25facc0f27943c5fbb23a7de5df1aea231e555a8
[ "MIT" ]
null
null
null
fish/tests/test_api_views.py
ann26/kbims-fish
25facc0f27943c5fbb23a7de5df1aea231e555a8
[ "MIT" ]
1
2018-10-16T04:40:15.000Z
2018-10-16T04:40:15.000Z
fish/tests/test_api_views.py
ann26/kbims-fish
25facc0f27943c5fbb23a7de5df1aea231e555a8
[ "MIT" ]
3
2018-05-09T08:06:15.000Z
2018-09-17T07:56:32.000Z
from django.test import TestCase from rest_framework.test import APIRequestFactory from fish.tests.model_factories import ( FishCollectionRecordF, ) from fish.api_views.fish_collection_record import ( FishCollectionList, FishCollectionDetail ) class TestApiView(TestCase): """Test Fish API """ def...
30.731707
70
0.659524
21f4be5756dc56cf1392437fa92af07eac0a6691
1,091
py
Python
management/account/views.py
pranavjandu/Attendance-Management-System
76e87427a84cdd25ee544f13e98892492811aef9
[ "MIT" ]
null
null
null
management/account/views.py
pranavjandu/Attendance-Management-System
76e87427a84cdd25ee544f13e98892492811aef9
[ "MIT" ]
6
2021-03-30T13:59:27.000Z
2022-03-12T00:42:34.000Z
management/account/views.py
pranavjandu/Facial-Attendance-System-Django
76e87427a84cdd25ee544f13e98892492811aef9
[ "MIT" ]
null
null
null
from django.shortcuts import redirect, render from django.contrib.auth import login,logout,authenticate from django.contrib import messages # Create your views here. def loginpage(request): ''' For logging users in ''' if request.method=="POST": username=request.POST.get('username') ...
25.372093
103
0.640697
21f4bf01670538a20b3a27edffd84e7b684f3d86
3,437
py
Python
mysite/settings.py
rizkybram27/magangUMN
8ace710670b8117dd39018a4cd1eee051091a3e7
[ "MIT" ]
4
2019-03-18T12:12:50.000Z
2020-07-10T19:40:44.000Z
mysite/settings.py
rizkybram27/magangUMN
8ace710670b8117dd39018a4cd1eee051091a3e7
[ "MIT" ]
null
null
null
mysite/settings.py
rizkybram27/magangUMN
8ace710670b8117dd39018a4cd1eee051091a3e7
[ "MIT" ]
7
2019-08-01T12:37:54.000Z
2021-05-12T14:40:06.000Z
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.13. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os #...
26.643411
93
0.703521
21f4c81065738a7107639f4ed6350ca5e22a4a3b
4,038
py
Python
geoapps/simpegEM1D/Utils1D.py
RichardScottOZ/geoapps
5b3c1d4fd11add45992e8b2497312ac014272b69
[ "MIT" ]
1
2022-02-18T16:24:53.000Z
2022-02-18T16:24:53.000Z
geoapps/simpegEM1D/Utils1D.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
geoapps/simpegEM1D/Utils1D.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import scipy def plotLayer(sig, mesh, xscale="log", ax=None, showlayers=False, xlim=None, **kwargs): """ Plot Conductivity model for the layered earth model """ # dz = LocSigZ[0]/2. # z = np.repeat(LocSigZ[1:], 2, axis=0) # z = np.r_[LocS...
32.564516
87
0.513868
21f4d54ae4185c6ac12849138742504f3a0bc81f
5,669
py
Python
cloud_app.py
R3DDY97/cloud-server
a6f3bcad58054ab30e2212e1e7a8f70f41b91c54
[ "MIT" ]
null
null
null
cloud_app.py
R3DDY97/cloud-server
a6f3bcad58054ab30e2212e1e7a8f70f41b91c54
[ "MIT" ]
null
null
null
cloud_app.py
R3DDY97/cloud-server
a6f3bcad58054ab30e2212e1e7a8f70f41b91c54
[ "MIT" ]
1
2021-04-26T15:44:47.000Z
2021-04-26T15:44:47.000Z
#!/usr/bin/env python3 '''handles server side database''' from os import (mkdir, listdir, stat, system) from os.path import (abspath, exists) # from subprocess import (Popen, PIPE) from crypt import crypt from hmac import compare_digest as compare_hash from shutil import copytree from time import ctime from jinja2 imp...
40.205674
94
0.695714
21f4f14f9ccd12e1c22d998785254d0c6c552d8c
3,144
py
Python
post_gen.py
thepushkarp/Automate-CCC-Reports
7f80ef41f0cee81692ac7592dba4e5ea0d178b29
[ "MIT" ]
9
2019-07-06T12:54:20.000Z
2019-09-19T20:32:34.000Z
post_gen.py
thepushkarp/Automate-CCC-Reports
7f80ef41f0cee81692ac7592dba4e5ea0d178b29
[ "MIT" ]
12
2019-07-07T08:15:06.000Z
2022-03-01T03:01:58.000Z
post_gen.py
thepushkarp/Automate-CCC-Reports
7f80ef41f0cee81692ac7592dba4e5ea0d178b29
[ "MIT" ]
2
2019-07-23T10:59:41.000Z
2020-07-10T18:22:14.000Z
'''Generates the post from the scraped data and saves as a .txt file''' from os import path import sys import re import requests from scrape import Contest # Contest page URL = input('Enter the contest link:\n') # Check for errors try: requests.get(URL).raise_for_status() except requests.exceptions.RequestExcep...
36.137931
102
0.730598
21f50351924c85cc2eefb16c743636f5e14497d6
740
py
Python
plugins/holland.lib.common/setup.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.lib.common/setup.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.lib.common/setup.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages version = "1.2.0" setup( name="holland.lib.common", version=version, description="Common modules used by Holland plugins", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords=...
28.461538
94
0.664865
21f52f97157b3b00b4b0d2cf081a9c0e62dfc6cf
3,936
py
Python
gong_xi_fa_cai/__init__.py
j3ygh/gong-xi-fa-cai
acbda76742e4dc1c78d22eb30350a5396fa8d133
[ "MIT" ]
6
2022-01-30T05:44:02.000Z
2022-02-01T12:06:28.000Z
gong_xi_fa_cai/__init__.py
j3ygithub/gong-xi-fa-cai
acbda76742e4dc1c78d22eb30350a5396fa8d133
[ "MIT" ]
null
null
null
gong_xi_fa_cai/__init__.py
j3ygithub/gong-xi-fa-cai
acbda76742e4dc1c78d22eb30350a5396fa8d133
[ "MIT" ]
2
2022-02-03T15:05:59.000Z
2022-03-09T18:16:38.000Z
from . import bad_signs from .helpers import get_nearest_number class ReasonNotFound(Exception): pass def get_why_bad( price, allow_needs_to_use_change=False, allow_contains_4=False, allow_contains_8=False, allow_prefix_is_odd=False, not_odd=[1], allow_prefix_is_too_long=False, m...
30.75
78
0.67251
21f5316f55f67a44cd2d4411580f64b438f6d583
2,933
py
Python
pydemic/region/pydemic_property.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
3
2020-05-10T23:52:41.000Z
2021-08-31T14:38:24.000Z
pydemic/region/pydemic_property.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-09-27T03:26:51.000Z
2022-03-30T12:18:08.000Z
pydemic/region/pydemic_property.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-10-01T04:07:39.000Z
2020-10-01T04:07:39.000Z
import pandas as pd from .base import RegionProperty from .. import fitting as fit from ..diseases import disease as get_disease, DiseaseParams from ..properties.decorators import cached from ..types import ValueStd class PydemicProperty(RegionProperty): """ Implements the "pydemic" property mokey-patched in...
36.209877
78
0.653256
21f554e1cfafda8f154b5e0c7e850f6ac866ae71
2,421
py
Python
pypairs/cli/cyclone/__main__.py
rfechtner/pypairs
6fc10880a03c35266ed15e3ab429d87a0c6b950e
[ "BSD-3-Clause" ]
5
2018-05-04T08:14:22.000Z
2020-05-02T22:12:50.000Z
pypairs/cli/cyclone/__main__.py
rfechtner/pypairs
6fc10880a03c35266ed15e3ab429d87a0c6b950e
[ "BSD-3-Clause" ]
19
2018-10-17T10:34:21.000Z
2021-02-17T12:35:46.000Z
pypairs/cli/cyclone/__main__.py
rfechtner/pypairs
6fc10880a03c35266ed15e3ab429d87a0c6b950e
[ "BSD-3-Clause" ]
4
2018-05-03T09:02:01.000Z
2019-05-18T06:33:42.000Z
import click from pypairs.tools.cyclone import cyclone, settings, logg import pandas as pd @click.command() @click.option('-d', '--data', required=True, type=click.Path(exists=True, file_okay=True, readable=True, resolve_path=True), help="Path to the data matrix where rows correspond to ce...
49.408163
119
0.68071
21f560e70714ef40fc7e417f2d82b5e7fcaee356
343
py
Python
goldenSunshine/__main__.py
Pmogi/GoldenSunshine
f461f8624c1e5a3ef704fccdb7569d86a0f0955b
[ "MIT" ]
null
null
null
goldenSunshine/__main__.py
Pmogi/GoldenSunshine
f461f8624c1e5a3ef704fccdb7569d86a0f0955b
[ "MIT" ]
null
null
null
goldenSunshine/__main__.py
Pmogi/GoldenSunshine
f461f8624c1e5a3ef704fccdb7569d86a0f0955b
[ "MIT" ]
null
null
null
from queryYT import queryYT import time def main(): ''' A subprocess for Windows 10 to check for new David Lynch weather videos. ''' query = queryYT() while True: query.constructDate() query.checkDate() query.search() time.sleep(3600) # Sleep 1 hour if __name__ == ...
19.055556
76
0.609329
21f59836c4c5f0bf6c807dd430540c5d69c04497
7,032
py
Python
src/prifair/utils.py
Hilly12/masters-code
60b20a0e5e4c0ab9152b090b679391d8d62ec88a
[ "MIT" ]
null
null
null
src/prifair/utils.py
Hilly12/masters-code
60b20a0e5e4c0ab9152b090b679391d8d62ec88a
[ "MIT" ]
null
null
null
src/prifair/utils.py
Hilly12/masters-code
60b20a0e5e4c0ab9152b090b679391d8d62ec88a
[ "MIT" ]
null
null
null
"""Utilities""" from typing import List, Tuple, Union import numpy as np import torch device = torch.device("cuda" if torch.cuda.is_available() else "cpu") def validate_model( model: torch.nn.Module, val_loader: torch.utils.data.DataLoader, loss_fn: torch.nn.Module, ) -> Tuple[List[int], List[int]]: ...
29.057851
83
0.608931
21f5aeb472fd630c38a7cd947cf77a58bed6307c
3,515
py
Python
IsLinkDownBot.py
sharadbhat/RedditBot
52456342f7164ec919fc999c9027c0bd36efb032
[ "MIT" ]
1
2019-11-24T23:17:38.000Z
2019-11-24T23:17:38.000Z
IsLinkDownBot.py
sharadbhat/RedditBot
52456342f7164ec919fc999c9027c0bd36efb032
[ "MIT" ]
null
null
null
IsLinkDownBot.py
sharadbhat/RedditBot
52456342f7164ec919fc999c9027c0bd36efb032
[ "MIT" ]
null
null
null
import praw from praw.exceptions import APIException import requests import bs4 import time reddit = praw.Reddit(client_id = '**********', client_secret = '*********************', username = 'IsLinkDownBot', password = '**********', user_a...
45.649351
278
0.543954
21f5e8db14cff1dfc8017e699e3da761d41fa5f2
3,483
py
Python
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/users.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
26
2016-09-14T18:15:29.000Z
2021-12-01T20:01:29.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/users.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
122
2017-09-12T15:22:03.000Z
2021-09-27T17:25:08.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/users.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
17
2017-02-16T16:04:41.000Z
2021-02-06T05:36:44.000Z
from utilities import db, moocdb_utils from common import * def GetUsers (vars): # DB connections # -------------- s = vars['source'] general_db_selector = db.Selector(s['host'], s['user'], s['password'], s['port'], s['general_db']) user_type_map = moocdb_utils.GetUserTypeMap(vars) # ...
51.985075
214
0.668676
21f5fb925cef9f57a55f3d486dd6554d289cc247
1,956
py
Python
django_comments_xtd/forms.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/forms.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/forms.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
from django import forms from django.contrib.comments.forms import CommentForm from django.utils.translation import ugettext_lazy as _ from django_comments_xtd.conf import settings from django_comments_xtd.models import TmpXtdComment class XtdCommentForm(CommentForm): followup = forms.BooleanField( requir...
43.466667
87
0.644172
21f611c6e001f2dc95e6fdcb09f909cc2e775f6b
1,474
py
Python
venv/Lib/site-packages/tests/test_033_ResultOutSequenceColumn.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_033_ResultOutSequenceColumn.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_033_ResultOutSequenceColumn.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
# # Licensed Materials - Property of IBM # # (c) Copyright IBM Corp. 2007-2008 # import unittest, sys import ibm_db import config from testfunctions import IbmDbTestFunctions class IbmDbTestCase(unittest.TestCase): def test_033_ResultOutSequenceColumn(self): obj = IbmDbTestFunctions() obj.assert_expect(...
26.321429
100
0.615332
21f61c7077b41f7750440716cb3f1409fa55808e
2,018
py
Python
savu/plugins/filters/dezingers/base_dezinger_sinogram.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/filters/dezingers/base_dezinger_sinogram.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/filters/dezingers/base_dezinger_sinogram.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
36.690909
76
0.693756
21f629decc4cfd22210d803da5cff5ca93068d88
4,004
py
Python
alipay/aop/api/request/AlipayOpenMiniInnerSafedomainQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOpenMiniInnerSafedomainQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOpenMiniInnerSafedomainQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenMiniInnerSafedomainQueryModel import AlipayOpenMiniInnerSafedomainQueryModel class AlipayOpenMiniInnerSafedomainQueryReque...
27.613793
148
0.647353
21f62d369e6353078fc859ea1bf4b43858ab069b
849
py
Python
scripts/fetch.py
marcolussetti/netinfo
6fcab55eaeabfd005a9192ace0c2b04122ab3df4
[ "MIT" ]
67
2018-12-26T11:10:50.000Z
2022-03-03T09:07:10.000Z
scripts/fetch.py
marcolussetti/netinfo
6fcab55eaeabfd005a9192ace0c2b04122ab3df4
[ "MIT" ]
4
2019-01-02T20:01:59.000Z
2020-01-27T14:43:21.000Z
scripts/fetch.py
marcolussetti/netinfo
6fcab55eaeabfd005a9192ace0c2b04122ab3df4
[ "MIT" ]
16
2018-12-26T05:01:04.000Z
2022-01-25T12:13:18.000Z
import datetime import requests from pyasn import mrtx, __version__ if __name__ == '__main__': base = "http://archive.routeviews.org//bgpdata/" now = datetime.datetime.utcnow() slug = now.strftime('%Y.%m') fname = now.strftime('rib.%Y%m%d.%H00.bz2') hour = int(now.strftime('%H')) if not hour %...
32.653846
61
0.588928
21f64049c7123558732027d12cba4dd1f0599615
3,060
py
Python
data/global-configuration/packs/ec2/hostingdrivers/hostingdriver_ec2.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
data/global-configuration/packs/ec2/hostingdrivers/hostingdriver_ec2.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
data/global-configuration/packs/ec2/hostingdrivers/hostingdriver_ec2.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
import os from opsbro.httpclient import get_http_exceptions, httper from opsbro.hostingdrivermanager import InterfaceHostingDriver, HOSTING_DRIVER_LAYER_CLOUD class EC2HostingDriver(InterfaceHostingDriver): name = 'ec2' layer = HOSTING_DRIVER_LAYER_CLOUD def __init__(self): super(EC2HostingD...
38.25
163
0.607516
21f66b9b4fd3b302a0f5ff6274b1ad9e1a6271d5
3,784
py
Python
openapi_client/exceptions.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/exceptions.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/exceptions.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ import six class OpenApiException(Exception): """The...
31.016393
97
0.570032
21f67bbb5e98e0e833232564b109852af10e97f1
12,883
py
Python
method/intersititial.py
jingslaw/ab-crystal-library
aa60bbc79b3f1fb023dbf1cf9e6dac4517a5feaf
[ "MIT" ]
9
2019-04-20T15:41:27.000Z
2021-12-31T13:19:59.000Z
method/intersititial.py
jingslaw/ab-crystal-library
aa60bbc79b3f1fb023dbf1cf9e6dac4517a5feaf
[ "MIT" ]
null
null
null
method/intersititial.py
jingslaw/ab-crystal-library
aa60bbc79b3f1fb023dbf1cf9e6dac4517a5feaf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'Weiguo Jing' import spglib as spg import numpy as np def trans_pylada_stru_to_ase(structure): from ase import Atoms positions = [atom.pos for atom in structure] string = [atom.type for atom in structure] return Atoms(symbols=s...
39.158055
120
0.615928
21f69d1eb8e3aadfeb60adbb46b518afdb5154c2
435
py
Python
augmentation/numpy2tensor.py
tranduytrung/rgbd-classification
156d829200c4592867af5ade85e8642afbe8580e
[ "Apache-2.0" ]
null
null
null
augmentation/numpy2tensor.py
tranduytrung/rgbd-classification
156d829200c4592867af5ade85e8642afbe8580e
[ "Apache-2.0" ]
null
null
null
augmentation/numpy2tensor.py
tranduytrung/rgbd-classification
156d829200c4592867af5ade85e8642afbe8580e
[ "Apache-2.0" ]
1
2021-09-28T02:36:17.000Z
2021-09-28T02:36:17.000Z
import numpy as np import torch class Numpy2Tensor(object): def __init__(self): pass def __call__(self, np_arr : np.ndarray): if np_arr.dtype is np.uint8: tensor = torch.tensor(np_arr, dtype=torch.float32) / 255.0 else: tensor = torch.tensor(np_arr, dtype=torch...
25.588235
71
0.595402
21f69ef18738fc87802b455acc350c0d198f3e22
1,462
py
Python
cli/commands/cmd_api.py
laith43d/juju-survey
3c23203fda6042b2316f1cf06bd18e16e4ddde5d
[ "MIT" ]
null
null
null
cli/commands/cmd_api.py
laith43d/juju-survey
3c23203fda6042b2316f1cf06bd18e16e4ddde5d
[ "MIT" ]
null
null
null
cli/commands/cmd_api.py
laith43d/juju-survey
3c23203fda6042b2316f1cf06bd18e16e4ddde5d
[ "MIT" ]
null
null
null
import os from subprocess import call import click @click.group() def cli(): """ Api operations. :return: """ pass @cli.command(name = "make:api") @click.argument("api_name", required = True) @click.option("--model", is_flag = True) def make_api(api_name, model): """ Create new api reso...
28.666667
91
0.567031
21f6aad9dd4e40db4e8a70162266e6ee95170c9b
3,145
py
Python
openDAM/plot/plot_bids.py
bcornelusse/openDAM
ad74541d5b5955b6ebb7212aecc6942ff5f71575
[ "BSD-2-Clause" ]
15
2018-09-18T23:28:41.000Z
2022-01-11T12:44:10.000Z
openDAM/plot/plot_bids.py
bcornelusse/openDAM
ad74541d5b5955b6ebb7212aecc6942ff5f71575
[ "BSD-2-Clause" ]
2
2018-07-06T13:18:59.000Z
2018-07-11T08:53:29.000Z
openDAM/plot/plot_bids.py
bcornelusse/openDAM
ad74541d5b5955b6ebb7212aecc6942ff5f71575
[ "BSD-2-Clause" ]
3
2020-06-02T04:16:54.000Z
2021-02-22T10:52:06.000Z
from datetime import datetime, timedelta import matplotlib.pyplot as plt import os plt.style.use('bmh') FONT_SIZE = 9 class BidPlotter: def __init__(self, dam, path, case): self.dam = dam self.case_ = case self.plots_folder = "%s/plots_%s_%s" % ( path, case, datetime.now().st...
36.569767
98
0.527822
21f6c6ee02fed55fb450b482b3e95e5fc54de824
6,862
py
Python
conans/client/build/cppstd_flags.py
chhitz/conan
f361690beae3608d93a8d79dec7abb24f75ddd85
[ "MIT" ]
null
null
null
conans/client/build/cppstd_flags.py
chhitz/conan
f361690beae3608d93a8d79dec7abb24f75ddd85
[ "MIT" ]
null
null
null
conans/client/build/cppstd_flags.py
chhitz/conan
f361690beae3608d93a8d79dec7abb24f75ddd85
[ "MIT" ]
null
null
null
import warnings from conans.errors import ConanException from conans.model.version import Version def cppstd_from_settings(settings): cppstd = settings.get_safe("cppstd") compiler_cppstd = settings.get_safe("compiler.cppstd") if not cppstd and not compiler_cppstd: return None if cppstd and ...
30.90991
99
0.583941
21f7170ebc690cb696ab4c4282049b805510ba2d
7,940
py
Python
tests/unit/test_CogsGeneralUnitTests.py
alexraskin/lhbot
a8f6fd3bb9038bf6711eb19b02f2f16d718b5b54
[ "MIT" ]
2
2022-01-17T15:43:45.000Z
2022-01-21T02:58:26.000Z
tests/unit/test_CogsGeneralUnitTests.py
alexraskin/lhbot
a8f6fd3bb9038bf6711eb19b02f2f16d718b5b54
[ "MIT" ]
14
2022-01-21T04:48:57.000Z
2022-02-05T21:48:14.000Z
tests/unit/test_CogsGeneralUnitTests.py
alexraskin/lhbot
a8f6fd3bb9038bf6711eb19b02f2f16d718b5b54
[ "MIT" ]
1
2022-01-23T02:30:44.000Z
2022-01-23T02:30:44.000Z
import sys import unittest import unittest.mock from unittest.mock import AsyncMock, patch from discord.ext.commands import Context from bot.cogs.general import ( get_year_string, info_execute, on_message_execute, ping_execute, shatter_execute, ) class ChannelTestClass: def ...
33.787234
112
0.610453
21f7273390ed52df98ebfbb174d92408709c35eb
491
py
Python
leetcode_python/tests/test_anagram_groups.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
leetcode_python/tests/test_anagram_groups.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
leetcode_python/tests/test_anagram_groups.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
import unittest from leetcode_python.src.algorithms.string.anagram_groups import AnagramGroups class TestAnagramGroups(unittest.TestCase): def test_AnagramGroups(self): anagram_groups = AnagramGroups() result = anagram_groups.group(["abcd", "eeff", "ab", "ffee", "dcab", "efef", "ba", "bb"]) ...
28.882353
104
0.619145
21f732206aa2fd250cd0c4099354b2f34f652e5e
29,553
py
Python
models/classifiers/ResNext101_module.py
daili0015/ModelFeast
0689ced4d0f37be438d3a91908e5e4cc5b7d54b8
[ "MIT" ]
247
2019-03-05T07:12:29.000Z
2022-03-29T01:51:17.000Z
models/classifiers/ResNext101_module.py
jungerschwarz/ModelFeast
03afca0b129532135910ee2ac72a3b85be795289
[ "MIT" ]
8
2019-05-21T03:05:27.000Z
2021-12-09T03:22:51.000Z
models/classifiers/ResNext101_module.py
jungerschwarz/ModelFeast
03afca0b129532135910ee2ac72a3b85be795289
[ "MIT" ]
47
2019-03-05T07:14:13.000Z
2021-11-11T01:04:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: zcy # @Date: 2019-02-10 12:39:42 # @Last Modified by: zcy # @Last Modified time: 2019-02-10 12:45:52 import torch import torch.nn as nn from functools import reduce __all__ = ['resnext101_32x4d_features'] class LambdaBase(nn.Sequential):...
42.706647
83
0.381992
21f73cb24b59248d3431300d184f6557ffd39644
781
py
Python
ml-agents/mlagents/trainers/torch/components/reward_providers/__init__.py
mattinjersey/ml-agents
7dcf947f541d661cc4a94b0e7758e1b12c6be078
[ "Apache-2.0" ]
13,653
2017-09-19T15:56:02.000Z
2022-03-31T18:55:07.000Z
ml-agents/mlagents/trainers/torch/components/reward_providers/__init__.py
Rushoo26/ml-agents
c73616c176f383bebefc3a1895ed1265661a1236
[ "Apache-2.0" ]
3,623
2017-09-20T02:50:20.000Z
2022-03-31T06:37:25.000Z
ml-agents/mlagents/trainers/torch/components/reward_providers/__init__.py
Rushoo26/ml-agents
c73616c176f383bebefc3a1895ed1265661a1236
[ "Apache-2.0" ]
4,130
2017-09-19T17:36:34.000Z
2022-03-31T12:54:55.000Z
from mlagents.trainers.torch.components.reward_providers.base_reward_provider import ( # noqa F401 BaseRewardProvider, ) from mlagents.trainers.torch.components.reward_providers.extrinsic_reward_provider import ( # noqa F401 ExtrinsicRewardProvider, ) from mlagents.trainers.torch.components.reward_providers.c...
41.105263
104
0.823303
21f75476a4f50f7bdda9c61324fee549a132c1e1
16,257
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_01/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_01/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_01_01/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
45.66573
251
0.691087
21f77550d2414fb46f649b2a64467c006f46dcc9
12,757
py
Python
mabed/corpus.py
cogk/phd-track-event-vis
f14af26f547ff9c38c4d09a9cf0cda05318fc192
[ "MIT" ]
null
null
null
mabed/corpus.py
cogk/phd-track-event-vis
f14af26f547ff9c38c4d09a9cf0cda05318fc192
[ "MIT" ]
null
null
null
mabed/corpus.py
cogk/phd-track-event-vis
f14af26f547ff9c38c4d09a9cf0cda05318fc192
[ "MIT" ]
1
2022-03-27T09:30:45.000Z
2022-03-27T09:30:45.000Z
# coding: utf-8 # std import itertools from queue import PriorityQueue import random import string from datetime import timedelta, datetime import csv import os import shutil import operator from typing import Counter from tqdm import tqdm import re # math import numpy as np # from scipy.sparse import * from scipy.sp...
36.869942
147
0.605315
21f775cc4c46017e275d9ffc8f27400cc48cdbcf
2,293
py
Python
experiments/ashvin/icml2020/mujoco/online/awr1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/mujoco/online/awr1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/mujoco/online/awr1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies import GaussianPolicy if __name__ == "__main__": variant = dict( num_epochs=300...
25.764045
63
0.567379
21f7787f8c2db141d2f2a054db96b63fe61b2998
9,104
py
Python
datawinners/accountmanagement/migrations/0023_remove_multiple_partial_digest_entries_for_same_login.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/accountmanagement/migrations/0023_remove_multiple_partial_digest_entries_for_same_login.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/accountmanagement/migrations/0023_remove_multiple_partial_digest_entries_for_same_login.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import datetime from django.contrib.auth.models import User from django.db.models import Count from django_digest.models import PartialDigest from south.db import db from south.v2 import DataMigration from django.db import models, DatabaseError class Migration(DataMigration): def forwards(self,...
67.437037
182
0.575132
21f832d1c8b7dc1a916fe42813e1bd5e0cac7f7f
45
py
Python
http/httppost.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
1
2017-03-21T21:04:53.000Z
2017-03-21T21:04:53.000Z
http/httppost.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
null
null
null
http/httppost.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*-
15
22
0.555556
21f856eac0c6d79d87abdbe4900fff68481db374
7,718
py
Python
pyram/galaxymodule/vmax_sig.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
pyram/galaxymodule/vmax_sig.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
pyram/galaxymodule/vmax_sig.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
import numpy as np from .rotation_parameter import cal_lambda_r_eps def weighted_std(values, weights): import numpy as np import math """ Return the weighted average and standard deviation. values, weights -- Numpy ndarrays with the same shape. """ average = np.average(values, weights=weig...
31.502041
95
0.567764
21f861c2d01827add506a532c49b232339ba5d14
12,105
py
Python
geoq/core/shape_view.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
471
2015-01-05T15:16:26.000Z
2022-03-28T05:06:11.000Z
geoq/core/shape_view.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
109
2015-01-06T20:00:58.000Z
2022-03-11T23:17:53.000Z
geoq/core/shape_view.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
100
2015-01-05T15:16:39.000Z
2021-12-01T12:13:13.000Z
# -*- coding: utf-8 -*- import zipfile import tempfile import json import platform from ctypes import c_void_p, c_uint64, c_char_p, c_int from django.http import HttpResponse from django.utils.encoding import smart_str from django.views.generic import ListView from geoq.maps.models import AOI, Feature from .models im...
37.828125
135
0.630318
21f8659910628cf18d40d4f5d5c7773a1701239a
6,635
py
Python
openstackclient/network/v2/floating_ip.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/network/v2/floating_ip.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/network/v2/floating_ip.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
# 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 # distrib...
31.445498
78
0.593369
21f89eebf25163ce4586f85cc9f62ff3a48c0506
7,276
py
Python
src/transpack/views.py
bwebsterhv/transpack
559105c9b6e68db79e94e0c397d90f0e9af69c88
[ "MIT" ]
null
null
null
src/transpack/views.py
bwebsterhv/transpack
559105c9b6e68db79e94e0c397d90f0e9af69c88
[ "MIT" ]
null
null
null
src/transpack/views.py
bwebsterhv/transpack
559105c9b6e68db79e94e0c397d90f0e9af69c88
[ "MIT" ]
null
null
null
from django.views import generic from django.contrib.auth.decorators import login_required from django.shortcuts import render from django.core.signing import Signer from django.conf import settings from .decorators import ajax_login_required from .tasks import pack_folder, upload_folder, delete_folder from .helpers i...
36.747475
100
0.661765
21f8b13ee329bab9722f2461782ce055fd851a23
363
py
Python
test/test_readfid.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_readfid.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_readfid.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
import unittest import vnmrjpy as vj import glob class Test_FidReader(unittest.TestCase): def test_read_gems(self): fiddir = sorted(glob.glob(vj.fids+'/gems*'))[0] fid = fiddir+'/fid' procpar = fiddir+'/procpar' reader = vj.io.FidReader(fid) data, header = reader.read() ...
22.6875
55
0.633609
21f8c1ace112be314974c5559e343cee7ab3c092
4,394
py
Python
docusign_rooms/models/region_reference_count.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
2
2020-11-11T01:38:45.000Z
2021-11-14T17:00:43.000Z
docusign_rooms/models/region_reference_count.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
null
null
null
docusign_rooms/models/region_reference_count.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
1
2021-11-14T17:00:32.000Z
2021-11-14T17:00:32.000Z
# coding: utf-8 """ DocuSign Rooms API - v2 An API for an integrator to access the features of DocuSign Rooms # noqa: E501 OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import...
29.689189
95
0.602412
21f8d142958dcce8fda0d9cce618830313c8ca8b
14,727
py
Python
utils/datasets/stackoverflow_word_prediction.py
JYWa/federated
8073bfa355f56db073349eefb0bcbafbf4e73733
[ "Apache-2.0" ]
null
null
null
utils/datasets/stackoverflow_word_prediction.py
JYWa/federated
8073bfa355f56db073349eefb0bcbafbf4e73733
[ "Apache-2.0" ]
2
2021-11-10T20:22:35.000Z
2022-02-10T04:44:40.000Z
utils/datasets/stackoverflow_word_prediction.py
PenelopeCorsica/federated
5aaa33691ef342e8a2cf6f5b54f459a16029f336
[ "Apache-2.0" ]
1
2021-03-09T09:48:56.000Z
2021-03-09T09:48:56.000Z
# Copyright 2019, 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.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
40.68232
80
0.746792
21f8d447700cb4b626dd330837a89fd0329ccba3
10,534
py
Python
district_number_of_records.py
sangharshbyss/online_FIRs
564eeccf045f0a7462e859221c7b2d93b7331c89
[ "CC0-1.0" ]
null
null
null
district_number_of_records.py
sangharshbyss/online_FIRs
564eeccf045f0a7462e859221c7b2d93b7331c89
[ "CC0-1.0" ]
null
null
null
district_number_of_records.py
sangharshbyss/online_FIRs
564eeccf045f0a7462e859221c7b2d93b7331c89
[ "CC0-1.0" ]
null
null
null
""" iteration over pages fails. shiting to new file""" import os import time from contextlib import contextmanager import state_FIRs import pandas as pd from bs4 import BeautifulSoup as BS from selenium import webdriver from selenium.common.exceptions import NoSuchElementException, TimeoutException from selenium.webdr...
40.360153
120
0.681792
21f8ee9797730d8043cdd761e6d826a9462d9f53
93
py
Python
src/fortrace/botnet/net/__init__.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
src/fortrace/botnet/net/__init__.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
src/fortrace/botnet/net/__init__.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
""" This package contains network classes and functions. """ __author__ = 'Sascha Kopp'
18.6
57
0.698925
21f918afff284e8e5fad992b4e8350f01397804d
31,136
py
Python
controllers/hrm.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
controllers/hrm.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
controllers/hrm.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Human Resource Management """ module = request.controller #resourcename = request.function if not settings.has_module(module): raise HTTP(404, body="Module disabled: %s" % module) # ============================================================================= def index(): """ Customisable module home...
35.747417
101
0.460239
21f922402432801c7fb52708189e537f9b94fe03
81,254
py
Python
leo/core/leoConfig.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/core/leoConfig.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/core/leoConfig.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:ekr.20130925160837.11429: * @file leoConfig.py '''Configuration classes for Leo.''' # pylint: disable=unsubscriptable-object #@+<< imports >> #@+node:ekr.20041227063801: ** << imports >> (leoConfig) import os import sys from leo.plugins.mod_scripting import build_rclick_tree import leo.core.le...
41.477284
117
0.54305
21f92d825e3c59f89405dbbd8600213ffb9edb61
10,954
py
Python
cumulusci/tasks/metadata_etl/base.py
hamedizadpanah-ibm/CumulusCI
eb93723e2da1ca66a7639b3197e6fab02d1bd24a
[ "BSD-3-Clause" ]
1
2020-08-08T03:55:21.000Z
2020-08-08T03:55:21.000Z
cumulusci/tasks/metadata_etl/base.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
cumulusci/tasks/metadata_etl/base.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
from abc import ABCMeta, abstractmethod import enum from pathlib import Path import tempfile from urllib.parse import quote, unquote from cumulusci.core.exceptions import CumulusCIException from cumulusci.core.tasks import BaseSalesforceTask from cumulusci.salesforce_api.metadata import ApiRetrieveUnpackaged from cumu...
35.564935
133
0.629177
21f959124d6929ada6539771bd3dc4e96b6df8f5
896
py
Python
oscar/lib/python2.7/site-packages/django/conf/urls/static.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/conf/urls/static.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/conf/urls/static.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
import re from django.conf import settings from django.conf.urls import url from django.core.exceptions import ImproperlyConfigured from django.views.static import serve def static(prefix, view=serve, **kwargs): """ Helper function to return a URL pattern for serving files in debug mode. fro...
32
87
0.659598
21f97be2e746b26c3da9fbf72d9c5b6d09e5fce8
3,044
py
Python
galaxy/main/signals/handlers.py
connectthefuture/galaxy
841821957680643e07c1a94fb609f8e4117c19d1
[ "Apache-2.0" ]
1
2017-06-18T21:46:01.000Z
2017-06-18T21:46:01.000Z
galaxy/main/signals/handlers.py
d-apurva/trivas-repo-testing
b1cde2965eb44466ce2bcba1272a49004c7f730b
[ "Apache-2.0" ]
1
2021-06-10T23:13:08.000Z
2021-06-10T23:13:08.000Z
galaxy/main/signals/handlers.py
connectthefuture/galaxy
841821957680643e07c1a94fb609f8e4117c19d1
[ "Apache-2.0" ]
null
null
null
# (c) 2012-2016, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
38.531646
109
0.713206
21f997f1f237c65bd9f732a543e560021b2dba5c
31,927
py
Python
SCRAPE/Lib/site-packages/twisted/trial/runner.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/trial/runner.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/trial/runner.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# -*- test-case-name: twisted.trial.test.test_runner -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ A miscellany of code used to run Trial tests. Maintainer: Jonathan Lange """ __all__ = [ "TestSuite", "DestructiveTestSuite", "ErrorHolder", "LoggedSuite", "TestHo...
34.478402
86
0.615467
21f9a57d61323f5913283ae2568a838ada55b840
1,592
py
Python
Sec8_Tree/q0889.py
OctoberChang/LeetCode-Solutions
bb7958194e7b196729611cbad19ee792ba41c429
[ "MIT" ]
2
2021-01-26T00:59:47.000Z
2021-11-20T02:55:13.000Z
Sec8_Tree/q0889.py
OctoberChang/LeetCode-Solutions
bb7958194e7b196729611cbad19ee792ba41c429
[ "MIT" ]
null
null
null
Sec8_Tree/q0889.py
OctoberChang/LeetCode-Solutions
bb7958194e7b196729611cbad19ee792ba41c429
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def constructFromPrePost(self, pre: List[int], post: List[int]) -> TreeNode: # i: start ...
25.269841
80
0.472362
21f9b5fec6e22faf842c91b7c57bf2e88a31d72e
2,637
py
Python
experiments/ashvin/vae/fixed3/sawyer_pusher/vae_dense_wider3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/fixed3/sawyer_pusher/vae_dense_wider3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/fixed3/sawyer_pusher/vae_dense_wider3.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.envs.mujoco.sawyer_push_and_reach_env import \ SawyerPushAndReachXYEnv, SawyerPushAndReachXYEasyEnv from rlkit.envs.mujoco.sawyer_push_env import SawyerPushXYEnv from rlkit.envs.multitask.point2d import MultitaskImagePoint2DEnv from rlkit.envs.multitask.pusher2d import FullPusher2DEnv from rlkit.images.c...
33.807692
85
0.643914
21fa026219a4754d6c70cfe3d0b1c67042eabea4
542
py
Python
zerver/management/commands/rundjango.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2017-07-27T19:49:12.000Z
2017-07-27T19:49:12.000Z
zerver/management/commands/rundjango.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:22:39.000Z
2022-02-11T03:40:19.000Z
zerver/management/commands/rundjango.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-04-09T05:50:23.000Z
2021-04-09T05:50:23.000Z
# Wrapper around Django's runserver to allow filtering logs. from typing import Any from django.core.servers.basehttp import WSGIRequestHandler orig_log_message = WSGIRequestHandler.log_message def log_message_monkey(self, format, *args): # type: (Any, str, *Any) -> None # Filter output for 200 or 304 respons...
31.882353
61
0.750923
21fa0456dfee2855c8db7c69eab6eee6da666f71
526
py
Python
TensorFlow-BaseCommand/Fetch.py
crazyyanchao/TensorFlow-HelloWorld
73cd470a8122df9d7724e7957b4bae5c9ac76ff4
[ "Apache-2.0" ]
23
2017-04-26T05:26:52.000Z
2022-03-30T11:08:38.000Z
TensorFlow-BaseCommand/Fetch.py
crazyyanchao/TensorFlow-HelloWorld
73cd470a8122df9d7724e7957b4bae5c9ac76ff4
[ "Apache-2.0" ]
null
null
null
TensorFlow-BaseCommand/Fetch.py
crazyyanchao/TensorFlow-HelloWorld
73cd470a8122df9d7724e7957b4bae5c9ac76ff4
[ "Apache-2.0" ]
26
2017-04-26T05:26:59.000Z
2022-02-19T09:29:07.000Z
# coding: UTF-8 # Fetch操作 # 为了取回操作的输出内容, 可以在使用 Session 对象的 run() 调用 执行图时, 传入一些 tensor, 这些 tensor 会帮助你取回结果. 在之前的例子里, 我们只取回了单个节点 state, 但是你也可以取回多个 tensor: import tensorflow as tf input1 = tf.constant(3.0) input2 = tf.constant(2.0) input3 = tf.constant(5.0) intermed = tf.add(input2, input3) mul = tf.mul(input1, intermed)...
29.222222
126
0.705323
21fa31e6a4f15e6848717ba0a20d1bc4f616aca3
20,143
py
Python
EDMScripts/ChannelResponseLoop.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
6
2017-02-02T17:54:23.000Z
2021-07-03T12:41:36.000Z
EDMScripts/ChannelResponseLoop.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
null
null
null
EDMScripts/ChannelResponseLoop.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
11
2015-03-19T18:23:38.000Z
2021-02-18T11:05:51.000Z
# Import a whole load of stuff from System.IO import * from System.Drawing import * from System.Runtime.Remoting import * from System.Threading import * from System.Windows.Forms import * from System.Xml.Serialization import * from System import * from Analysis.EDM import * from DAQ.Environment import * from EDMConfig...
40.366733
132
0.736981
21fa3392dd8daeaa83dedfaca0e87e177686bc71
3,409
py
Python
gnmt/nmt/common/cluster_utils.py
fanshiqing/DAPPLE
b2d2ceda90f6033b316f672ec05f45123234f130
[ "BSD-3-Clause" ]
50
2020-02-02T09:24:44.000Z
2022-03-01T03:22:19.000Z
gnmt/nmt/common/cluster_utils.py
fanshiqing/DAPPLE
b2d2ceda90f6033b316f672ec05f45123234f130
[ "BSD-3-Clause" ]
1
2020-02-04T03:50:02.000Z
2020-02-04T04:41:37.000Z
gnmt/nmt/common/cluster_utils.py
AlibabaPAI/DAPPLE
fd75dcfbc6c73a7624b9fd9d8c3334e5d04bcd20
[ "BSD-3-Clause" ]
9
2020-02-02T09:23:31.000Z
2021-09-22T07:24:34.000Z
import tensorflow as tf import horovod.tensorflow as hvd from tensorflow.python.platform import flags import pdb FLAGS = None MAX_GPUS_PER_NODE = 8 def get_cluster_manager(flags, config_proto): """Returns the cluster manager to be used.""" global FLAGS FLAGS = flags return GrpcClusterManager(config_proto) de...
32.466667
108
0.645644
21fa5256a3140652d2b6f5214a8832d090708f54
2,848
py
Python
credentials.py
Tellvinch/PassIn-
6ee0d09a38c237a6990df7f367ec61de7ebbe60e
[ "MIT" ]
2
2020-05-22T08:40:20.000Z
2020-05-22T08:45:13.000Z
credentials.py
Tellvinch/PassIn-
6ee0d09a38c237a6990df7f367ec61de7ebbe60e
[ "MIT" ]
null
null
null
credentials.py
Tellvinch/PassIn-
6ee0d09a38c237a6990df7f367ec61de7ebbe60e
[ "MIT" ]
null
null
null
class Credentials: """ Class that generates new instances of accountss. """ accounts = [] # Init method up here def save_accounts(self): ''' save_contact method saves credentials objects into accounts ''' Credentials.accounts.append(self) def __init__(self, a...
27.921569
82
0.55934
21fa6ceb0dfd16aa003709008b41630bd68e775d
3,811
py
Python
venv/Lib/site-packages/pyrogram/types/bots_and_keyboards/reply_keyboard_markup.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/types/bots_and_keyboards/reply_keyboard_markup.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/types/bots_and_keyboards/reply_keyboard_markup.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
38.887755
114
0.651535
21fa7374920794ba0ae944d05cd583e917289b93
43,718
py
Python
synapse/cores/sqlite.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/cores/sqlite.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/cores/sqlite.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
import queue import logging import sqlite3 import regex import synapse.common as s_common import synapse.cores.xact as s_xact import synapse.cores.common as s_cores_common import synapse.cores.storage as s_cores_storage logger = logging.getLogger(__name__) stashre = regex.compile('{{([A-Z]+)}}') int_t = type(0) s...
50.599537
208
0.636145
21fa73c44f3333133dd3ed148c37652c8f384f9f
21,936
py
Python
caffe2/python/model_helper.py
timyy/caffe2
e3937e7cefe1fd75496720583d75aa6263b8cc8e
[ "MIT" ]
null
null
null
caffe2/python/model_helper.py
timyy/caffe2
e3937e7cefe1fd75496720583d75aa6263b8cc8e
[ "MIT" ]
null
null
null
caffe2/python/model_helper.py
timyy/caffe2
e3937e7cefe1fd75496720583d75aa6263b8cc8e
[ "MIT" ]
null
null
null
## @package model_helper # Module caffe2.python.model_helper from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, scope, workspace from caffe2.python.modeling import parameter_info from caffe...
36.317881
86
0.611916
21fa908b3c05d8bec4006fca59218afb8c757a2c
7,469
py
Python
autoio-base/autoparse/find.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
null
null
null
autoio-base/autoparse/find.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
1
2022-02-15T19:35:14.000Z
2022-02-15T19:35:14.000Z
autoio-base/autoparse/find.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
13
2020-06-24T05:21:11.000Z
2021-05-05T19:58:30.000Z
""" autoparse.find ************** Extract information from a file using re patterns. """ import re from functools import partial from autoparse._lib import STRING_START as _STRING_START from autoparse._lib import STRING_END as _STRING_END from autoparse._lib import LINE_START as _LINE_START from autoparse._lib import ...
27.765799
77
0.672781
21fa9bcfac1fc1f9dfe4fd7778c9bde1bd94781b
5,682
py
Python
gemd/entity/object/tests/test_material_run.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
7
2020-04-02T11:11:09.000Z
2022-02-05T23:19:51.000Z
gemd/entity/object/tests/test_material_run.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
24
2020-04-22T16:55:09.000Z
2022-03-30T20:44:39.000Z
gemd/entity/object/tests/test_material_run.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
3
2020-05-08T00:50:02.000Z
2020-12-19T00:48:56.000Z
"""Test of the material run object.""" import pytest import json from uuid import uuid4 from copy import deepcopy from gemd.json import loads, dumps from gemd.entity.attribute import PropertyAndConditions, Property from gemd.entity.object import MaterialRun, ProcessRun, MaterialSpec, MeasurementRun from gemd.entity.te...
37.88
99
0.686906
21faaa4b294ae959f7c87b2e31a36ddee23eaa79
1,884
py
Python
src/turnos/tests/test_urls.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
src/turnos/tests/test_urls.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
32
2016-05-09T19:37:08.000Z
2022-01-13T01:00:52.000Z
src/turnos/tests/test_urls.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
from django.urls import reverse, resolve from test_plus.test import TestCase from turnos.tests.factories import TurnoFactory class TestUserURLs(TestCase): """Test URL patterns for turnos app.""" def setUp(self): self.user = self.make_user() self.turno = TurnoFactory() def test_list(sel...
34.888889
89
0.636943
21fab6b996c147219d46d8e9deebd11758cf0bfd
4,076
py
Python
alipay/aop/api/request/MybankCreditSupplychainCreditpaySyncnameCreateRequest.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/MybankCreditSupplychainCreditpaySyncnameCreateRequest.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/MybankCreditSupplychainCreditpaySyncnameCreateRequest.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.MybankCreditSupplychainCreditpaySyncnameCreateModel import MybankCreditSupplychainCreditpaySyncnameCreateModel class MybankCreditSup...
28.110345
148
0.653582
21fabd5828f2ccc98737735860a59845c32fa753
2,616
py
Python
vplexapi-7.0.0/vplexapi/models/storage_array_family.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2020-12-01T11:22:13.000Z
2021-02-16T17:38:42.000Z
vplexapi-7.0.0/vplexapi/models/storage_array_family.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
null
null
null
vplexapi-7.0.0/vplexapi/models/storage_array_family.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2021-01-01T21:07:55.000Z
2021-02-20T07:07:40.000Z
# coding: utf-8 """ VPlex REST API A definition for the next-gen VPlex API # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class StorageArrayFamily(object): """NOTE: This class ...
26.424242
80
0.549312
21fac08e2ed5c42742407ce9500876eccb783d42
4,180
py
Python
sem/tokenisers/en.py
YoannDupont/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
22
2016-11-13T21:08:58.000Z
2021-04-26T07:04:54.000Z
sem/tokenisers/en.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
15
2016-11-15T10:21:07.000Z
2021-11-08T10:08:05.000Z
sem/tokenisers/en.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
8
2016-11-15T10:21:41.000Z
2022-03-04T21:28:05.000Z
#-*- encoding:utf-8 -*- """ file: en.py Description: the tokeniser for English text. author: Yoann Dupont MIT License Copyright (c) 2018 Yoann Dupont 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 So...
38.703704
102
0.568182
21fb011f6a3e016268564e8cbe2bc998ab93706e
78,288
py
Python
job/migrations/0001_initial.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
7
2022-01-29T12:10:10.000Z
2022-03-28T13:45:20.000Z
job/migrations/0001_initial.py
NREL/reopt_api
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
12
2022-02-01T18:23:18.000Z
2022-03-31T17:22:17.000Z
job/migrations/0001_initial.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
3
2022-02-08T19:44:40.000Z
2022-03-12T11:05:36.000Z
# Generated by Django 3.1.13 on 2021-10-18 18:53 import django.contrib.postgres.fields import django.core.validators from django.db import migrations, models import django.db.models.deletion import job.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ ...
164.470588
1,055
0.730035
21fb0a93fd20b44b535bdb43fd161a710cfaaca4
2,178
py
Python
vmtkScripts/vmtkpointtransform.py
bi3ri/vmtk
6c6076105a13a8f2178ef5768c0dba3620a990ba
[ "Apache-2.0" ]
217
2015-01-05T19:08:30.000Z
2022-03-31T12:14:59.000Z
vmtkScripts/vmtkpointtransform.py
bi3ri/vmtk
6c6076105a13a8f2178ef5768c0dba3620a990ba
[ "Apache-2.0" ]
226
2015-03-31T07:16:06.000Z
2022-03-01T14:59:30.000Z
vmtkScripts/vmtkpointtransform.py
bi3ri/vmtk
6c6076105a13a8f2178ef5768c0dba3620a990ba
[ "Apache-2.0" ]
132
2015-02-16T11:38:34.000Z
2022-03-18T04:38:45.000Z
#!/usr/bin/env python ## Program: VMTK ## Module: $RCSfile: vmtkpointtransform.py,v $ ## Language: Python ## Date: $Date: 2005/09/14 09:49:59 $ ## Version: $Revision: 1.4 $ ## Copyright (c) Luca Antiga, David Steinman. All rights reserved. ## See LICENSE file for details. ## This software is di...
30.25
97
0.631772
21fb39f5fc0bfd0bcee45962df37571ad257bc89
14,853
py
Python
nicos_ess/devices/datasinks/file_writer.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_ess/devices/datasinks/file_writer.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos_ess/devices/datasinks/file_writer.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
36.315403
80
0.620346
21fb3adb4723670fe6c6c33e178d7e192095e4a5
4,115
py
Python
losses/gabor_loss/gabor.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
losses/gabor_loss/gabor.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
losses/gabor_loss/gabor.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
import os import random import numpy as np import torch from skimage.filters import gabor_kernel from torch.nn.functional import conv2d import cv2 def get_gabors_sklearn(): # prepare filter bank kernels kernels = [] for theta in np.arange(8) / 8. * np.pi: # only half a turn due to symetry for sigm...
42.42268
124
0.630134