hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
f9e45c36491a00295de9370b55f71068fbf9553b
448
py
Python
python/Data Structures and Algorithms in Python Book/recursion/linear_sum.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
7
2020-05-10T09:57:23.000Z
2021-03-27T11:55:07.000Z
python/Data Structures and Algorithms in Python Book/recursion/linear_sum.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
null
null
null
python/Data Structures and Algorithms in Python Book/recursion/linear_sum.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
3
2021-03-27T03:42:57.000Z
2021-08-09T12:03:41.000Z
# For n inputs, this function makes n+1 calls # Complexity: O(n) def linear_sum(S, n): """Computing the sum of a sequence recursively, by adding the last number to the sum of the first n−1 numbers""" if n == 0: return 0 else: print("linear_sum({}, {}) + S[n-1]: {}".format(S, n-1, S[n-1])) ...
34.461538
116
0.589286
758e148f20a3fce55bb2aff040978440eca17515
295
py
Python
benchmark/backends/command_dispatcher/channels/base.py
creditease-natrix/natrix
8b97efdc9287645ea6b99dcf3a99fbe3f6ba6862
[ "MIT" ]
3
2019-06-28T02:25:10.000Z
2019-12-16T08:50:08.000Z
benchmark/backends/command_dispatcher/channels/base.py
creditease-natrix/natrix
8b97efdc9287645ea6b99dcf3a99fbe3f6ba6862
[ "MIT" ]
3
2020-02-12T00:17:22.000Z
2021-06-10T21:29:11.000Z
benchmark/backends/command_dispatcher/channels/base.py
creditease-natrix/natrix
8b97efdc9287645ea6b99dcf3a99fbe3f6ba6862
[ "MIT" ]
1
2019-06-22T06:04:59.000Z
2019-06-22T06:04:59.000Z
# -*- coding: utf-8 -*- """ """ class DispachClient(object): def __init__(self): super(DispachClient, self).__init__() def __enter__(self): pass def __exit__(self, exc_type, exc_val, exc_tb): pass def subscribe(self, *args, **kwargs): pass
14.75
50
0.572881
c08c2fc88465e6b5637e8fe10ac9dabe9ea01d0b
2,328
py
Python
tests/casefiles/Tool_Menu_EventBinding_Phoenix.py
RSabet/wxGlade
8b62eb8397308e60977857455b2765727b1b940f
[ "MIT" ]
225
2018-03-26T11:23:22.000Z
2022-03-24T09:44:08.000Z
tests/casefiles/Tool_Menu_EventBinding_Phoenix.py
RSabet/wxGlade
8b62eb8397308e60977857455b2765727b1b940f
[ "MIT" ]
403
2018-01-03T19:47:28.000Z
2018-03-23T17:43:39.000Z
tests/casefiles/Tool_Menu_EventBinding_Phoenix.py
DietmarSchwertberger/wxGlade
8e78cdc509d458cc896d47315e19f3daa6c09213
[ "MIT" ]
47
2018-04-08T16:48:38.000Z
2021-12-21T20:08:44.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # generated by wxGlade # import wx # begin wxGlade: dependencies # end wxGlade # begin wxGlade: extracode # end wxGlade class MyFrame(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: MyFrame.__init__ kwds["style"] = kwds.get("style",...
29.468354
162
0.631014
fac168f10f3c88436db00c2b99047bdf1a1e8652
7,742
py
Python
src/models/predict_model.py
chrimaho/MDSI_ADSI_FEB21_AT1
79e854dbe6a3ed5a2eb1b27ae74071a0159f2b44
[ "MIT" ]
null
null
null
src/models/predict_model.py
chrimaho/MDSI_ADSI_FEB21_AT1
79e854dbe6a3ed5a2eb1b27ae74071a0159f2b44
[ "MIT" ]
null
null
null
src/models/predict_model.py
chrimaho/MDSI_ADSI_FEB21_AT1
79e854dbe6a3ed5a2eb1b27ae74071a0159f2b44
[ "MIT" ]
1
2021-01-28T10:41:21.000Z
2021-01-28T10:41:21.000Z
import numpy as np import pandas as pd from datetime import datetime # Define reusable function for easy random searching def easy_random_search \ ( estimator , search_space:dict , feat_trn:np.real , targ_trn:np.real , feat_val:np.real , targ_val:np.real , df_metrics:pd.DataFrame , n_it...
39.907216
150
0.64557
4c38e0580ebfaa9fe1d5519a655cbd8d2e9f48c1
5,666
py
Python
openstack_dashboard/dashboards/project/volumes/snapshots/tables.py
whitepages/horizon
47e5d8528d4e0ba22de29a23f675a8c27025130b
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/volumes/snapshots/tables.py
whitepages/horizon
47e5d8528d4e0ba22de29a23f675a8c27025130b
[ "Apache-2.0" ]
1
2021-03-21T11:48:09.000Z
2021-03-21T11:48:09.000Z
openstack_dashboard/dashboards/project/volumes/snapshots/tables.py
isabella232/horizon-2
47e5d8528d4e0ba22de29a23f675a8c27025130b
[ "Apache-2.0" ]
1
2021-03-21T11:36:49.000Z
2021-03-21T11:36:49.000Z
# Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
34.339394
78
0.667314
061dfe3a1c52800102fb0b2a669aecfe65ebd6bb
4,842
py
Python
graphs/__init__.py
alfonsoeromero/S2F
fccb741b15acfdeb02ca0de411eb4b00ae73be85
[ "MIT" ]
9
2019-10-24T18:46:46.000Z
2022-03-23T13:21:45.000Z
graphs/__init__.py
alfonsoeromero/S2F
fccb741b15acfdeb02ca0de411eb4b00ae73be85
[ "MIT" ]
5
2022-01-26T18:00:01.000Z
2022-02-08T14:09:42.000Z
graphs/__init__.py
alfonsoeromero/S2F
fccb741b15acfdeb02ca0de411eb4b00ae73be85
[ "MIT" ]
2
2022-01-27T12:52:32.000Z
2022-01-29T12:08:26.000Z
import abc import numpy as np import pandas as pd from scipy import sparse from itertools import combinations from Utils import FancyApp class Graph(FancyApp.FancyApp): __metaclass__ = abc.ABCMeta @abc.abstractmethod def compute_graph(self): """ Computes protein-protein graph(s) ...
32.496644
79
0.566708
555d99c23e42b6b405db4c7df19a89a699dc8814
9,725
py
Python
applications/ParticleMechanicsApplication/tests/test_generate_mpm_particle.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
2
2019-10-25T09:28:10.000Z
2019-11-21T12:51:46.000Z
applications/ParticleMechanicsApplication/tests/test_generate_mpm_particle.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
13
2019-10-07T12:06:51.000Z
2020-02-18T08:48:33.000Z
applications/ParticleMechanicsApplication/tests/test_generate_mpm_particle.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
null
null
null
from __future__ import print_function, absolute_import, division import KratosMultiphysics import KratosMultiphysics.ParticleMechanicsApplication as KratosParticle import KratosMultiphysics.KratosUnittest as KratosUnittest class TestGenerateMPMParticle(KratosUnittest.TestCase): def _generate_particle_element_an...
58.584337
154
0.759589
a5ee1638defc9a4dcfdbd3d4b6d117c0ba5afdc4
3,236
py
Python
profiles_project/settings.py
Kozphy/django_api_learn
9cdbabcdc26438af09ccbd241c0cf9bfaff4138a
[ "MIT" ]
null
null
null
profiles_project/settings.py
Kozphy/django_api_learn
9cdbabcdc26438af09ccbd241c0cf9bfaff4138a
[ "MIT" ]
null
null
null
profiles_project/settings.py
Kozphy/django_api_learn
9cdbabcdc26438af09ccbd241c0cf9bfaff4138a
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.68254
91
0.702101
9c6992441d5e22c85fcc8d4423a286f1e9360d19
11,763
py
Python
Global/detection_models/networks.py
ZoeyCheung/Bringing-Old-Photos-Back-to-Life
56032e9edbad0ab4b33feb6901b9011f5d813528
[ "MIT" ]
null
null
null
Global/detection_models/networks.py
ZoeyCheung/Bringing-Old-Photos-Back-to-Life
56032e9edbad0ab4b33feb6901b9011f5d813528
[ "MIT" ]
null
null
null
Global/detection_models/networks.py
ZoeyCheung/Bringing-Old-Photos-Back-to-Life
56032e9edbad0ab4b33feb6901b9011f5d813528
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import torch import torch.nn as nn import torch.nn.functional as F from detection_models.sync_batchnorm.replicate import DataParallelWithCallback from detection_models.antialiasing import Downsample class UNet(nn.Module): def __init__( ...
35.324324
110
0.579104
9fbe08aafd7e4c907fc2a1395521228fbbcfcaa5
3,273
py
Python
sales_info/mysite/settings.py
originlake/web_dev_project
1fe75279734fe687fb93173351b3dae6e7de93f7
[ "MIT" ]
null
null
null
sales_info/mysite/settings.py
originlake/web_dev_project
1fe75279734fe687fb93173351b3dae6e7de93f7
[ "MIT" ]
null
null
null
sales_info/mysite/settings.py
originlake/web_dev_project
1fe75279734fe687fb93173351b3dae6e7de93f7
[ "MIT" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # ...
24.984733
91
0.692026
ccfed67bf66b53cb27891a0e0611552b98750342
7,260
py
Python
src/compas_plotters/plotter2.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
src/compas_plotters/plotter2.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
src/compas_plotters/plotter2.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division import matplotlib.pyplot as plt from compas_plotters import Artist __all__ = ['Plotter2'] class Plotter2(object): """""" def __init__(self, view=None, figsize=(8, 5), **kwargs): """Initiali...
25.56338
118
0.513912
6cf27866fa01c25719f4abf21590bda880800285
13,952
py
Python
netapp/santricity/models/symbol/nv_meo_f_interface_statistics.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
netapp/santricity/models/symbol/nv_meo_f_interface_statistics.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
netapp/santricity/models/symbol/nv_meo_f_interface_statistics.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
# coding: utf-8 """ NVMeoFInterfaceStatistics.py The Clear BSD License Copyright (c) – 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions...
41.772455
844
0.690869
67ea0827462f662b8dd73f2ca6b30de4efcd50ab
3,149
py
Python
svg/charts/css.py
ewerybody/svg.charts
eb77a381f0721b3d59ae9461765ac9e9cffef586
[ "MIT" ]
26
2016-05-04T09:57:13.000Z
2021-08-23T17:59:20.000Z
svg/charts/css.py
ewerybody/svg.charts
eb77a381f0721b3d59ae9461765ac9e9cffef586
[ "MIT" ]
21
2016-03-22T00:39:51.000Z
2021-08-14T00:43:21.000Z
svg/charts/css.py
ewerybody/svg.charts
eb77a381f0721b3d59ae9461765ac9e9cffef586
[ "MIT" ]
15
2016-04-06T09:57:38.000Z
2021-08-17T03:56:40.000Z
import cssutils SVG = 'SVG 1.1' # http://www.w3.org/TR/SVG11/styling.html macros = { 'paint': 'none|currentColor|{color}', 'unitidentifier': 'em|ex|px|pt|pc|cm|mm|in|%', 'length': '{positivenum}({unitidentifier})?', 'dasharray': r'{positivenum}(\s*,\s*{positivenum})*', # a number greater-than or ...
41.986667
82
0.671959
d718a560a41f81149b9787e80b6695562144b89f
64
py
Python
discum/gateway/user/__init__.py
firewood-b/Discord-S.C.U.M
1beb8c25ab245a1389431a5206eafb9b4a95df0f
[ "MIT" ]
null
null
null
discum/gateway/user/__init__.py
firewood-b/Discord-S.C.U.M
1beb8c25ab245a1389431a5206eafb9b4a95df0f
[ "MIT" ]
null
null
null
discum/gateway/user/__init__.py
firewood-b/Discord-S.C.U.M
1beb8c25ab245a1389431a5206eafb9b4a95df0f
[ "MIT" ]
null
null
null
from .combo import * from .parse import * from .request import *
21.333333
22
0.734375
f2c6fc721f0dd8316234db1205edcf98924f0a55
612
py
Python
spinsys/__init__.py
macthecadillac/Interacting-Fermions
6122d2a7e67533b28e581929995ce8e2a2ad41fc
[ "BSD-3-Clause" ]
1
2020-07-29T06:06:12.000Z
2020-07-29T06:06:12.000Z
spinsys/__init__.py
macthecadillac/Interacting-Fermions
6122d2a7e67533b28e581929995ce8e2a2ad41fc
[ "BSD-3-Clause" ]
null
null
null
spinsys/__init__.py
macthecadillac/Interacting-Fermions
6122d2a7e67533b28e581929995ce8e2a2ad41fc
[ "BSD-3-Clause" ]
null
null
null
from spinsys import constructors from spinsys import dmrg from spinsys import exceptions from spinsys import half from spinsys import quantities from spinsys import state_generators from spinsys import time_dependent from spinsys import utils import shutil import numpy __all__ = [ "constructors", "dmrg", "...
23.538462
72
0.76634
218f8c4feadc5fce1ff089f0a30326c829827aa5
954
py
Python
test/unit/bench_cli/context.py
systay/arewefastyet
f21f3c0c63b5e3729d946bd2283004641b427aad
[ "Apache-2.0" ]
null
null
null
test/unit/bench_cli/context.py
systay/arewefastyet
f21f3c0c63b5e3729d946bd2283004641b427aad
[ "Apache-2.0" ]
1
2021-03-04T11:06:58.000Z
2021-03-04T11:06:58.000Z
test/unit/bench_cli/context.py
systay/arewefastyet
f21f3c0c63b5e3729d946bd2283004641b427aad
[ "Apache-2.0" ]
1
2021-09-03T16:06:08.000Z
2021-09-03T16:06:08.000Z
# Copyright 2021 The Vitess Authors. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing,...
41.478261
89
0.786164
7f7389444434f2b4fe57df1e0c221c9c565baf73
1,498
py
Python
sort_key_test.py
PythonCHB/sort_key_tests
00e0fdb872a58b9f0797176afd3332fa8c5be159
[ "Unlicense" ]
1
2019-07-22T06:19:39.000Z
2019-07-22T06:19:39.000Z
sort_key_test.py
PythonCHB/sort_key_tests
00e0fdb872a58b9f0797176afd3332fa8c5be159
[ "Unlicense" ]
null
null
null
sort_key_test.py
PythonCHB/sort_key_tests
00e0fdb872a58b9f0797176afd3332fa8c5be159
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import random import time random.seed(hash('Testing Keys')) lt_calls = 0 key_calls = 0 outer_key_calls = 0 def outer_key(item): # global outer_key_calls # outer_key_calls += 1 return item.key() class MyObject: def __init__(self, value1, value2): self.value1 = value1 ...
18.962025
77
0.613485
56db30aee1fe93d79335fe03cdad6bfc7e984233
1,584
py
Python
epotential.py
the-fridge/Python_Projects
73758eb57acdae26b58a14e6e4996919a7bdde43
[ "MIT" ]
1
2021-04-18T22:25:56.000Z
2021-04-18T22:25:56.000Z
epotential.py
iamfeysal/Python_Projects
73758eb57acdae26b58a14e6e4996919a7bdde43
[ "MIT" ]
null
null
null
epotential.py
iamfeysal/Python_Projects
73758eb57acdae26b58a14e6e4996919a7bdde43
[ "MIT" ]
1
2019-03-21T08:49:21.000Z
2019-03-21T08:49:21.000Z
#We import our libs: import numpy as np import matplotlib.pyplot as plt from numba import jit @jit def solver(N): # Make the initial guess for solution matrix V = np.zeros((N,N)) # Solver: iterations = 0 eps = 1e-10 # Convergence threshold error = 1e4 # Large dummy error while iterations ...
24.75
90
0.595328
e5b9bcde26cfdc17e604b1629b37cd170b7f33a6
411
py
Python
python37/Scripts/pinyin-script.py
sheyingqi/lushi_python
1a093a34433f2cd90ca525baec09327a72c57099
[ "MIT" ]
1
2021-12-23T02:30:19.000Z
2021-12-23T02:30:19.000Z
python37/Scripts/pinyin-script.py
sheyingqi/lushi_python
1a093a34433f2cd90ca525baec09327a72c57099
[ "MIT" ]
null
null
null
python37/Scripts/pinyin-script.py
sheyingqi/lushi_python
1a093a34433f2cd90ca525baec09327a72c57099
[ "MIT" ]
null
null
null
#!C:\Users\Administrator\Desktop\python37\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pinyin==0.4.0','console_scripts','pinyin' __requires__ = 'pinyin==0.4.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
31.615385
72
0.673966
522a505bda785e941a43161f1e4b466e509c1a81
38
py
Python
tabular/src/autogluon/tabular/trainer/__init__.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
4,462
2019-12-09T17:41:07.000Z
2022-03-31T22:00:41.000Z
tabular/src/autogluon/tabular/trainer/__init__.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
1,408
2019-12-09T17:48:59.000Z
2022-03-31T20:24:12.000Z
tabular/src/autogluon/tabular/trainer/__init__.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
623
2019-12-10T02:04:18.000Z
2022-03-20T17:11:01.000Z
from .auto_trainer import AutoTrainer
19
37
0.868421
6feb97609a006b219ba2e12264c00c16b77972b1
458
py
Python
ccvalidate/api/permissions.py
orion3000/albert
84373ab1e413513758d131adf992534e5ffd4621
[ "BSD-3-Clause" ]
null
null
null
ccvalidate/api/permissions.py
orion3000/albert
84373ab1e413513758d131adf992534e5ffd4621
[ "BSD-3-Clause" ]
5
2021-04-08T20:24:24.000Z
2022-02-10T11:17:41.000Z
ccvalidate/api/permissions.py
orion3000/albert
84373ab1e413513758d131adf992534e5ffd4621
[ "BSD-3-Clause" ]
null
null
null
from rest_framework.permissions import BasePermission from .models import Creditcard class IsOwner(BasePermission): """Custom permission class to allow only creditcard owners to edit them.""" def has_object_permission(self, request, view, obj): """Return True if permission is granted to the creditcar...
35.230769
79
0.713974
e61c7b240ef1e5b3cb5597a0cb8c7b8c0e6ba4b7
1,903
py
Python
autotest/gcore/aaigrid_read.py
dtusk/gdal1
30dcdc1eccbca2331674f6421f1c5013807da609
[ "MIT" ]
3
2017-01-12T10:18:56.000Z
2020-03-21T16:42:55.000Z
autotest/gcore/aaigrid_read.py
ShinNoNoir/gdal-1.11.5-vs2015
5d544e176a4c11f9bcd12a0fe66f97fd157824e6
[ "MIT" ]
null
null
null
autotest/gcore/aaigrid_read.py
ShinNoNoir/gdal-1.11.5-vs2015
5d544e176a4c11f9bcd12a0fe66f97fd157824e6
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test basic read support for Arc/Info ASCII grid (AAIGrid) file. # Author: Andrey Kiselev, dron@remotesensing.org # ###############################################...
32.254237
79
0.594325
bc3513cb203b5eb746d7ca1948d927c26402a7f1
390
py
Python
palsbet/migrations/0003_auto_20180323_0018.py
denis254/palsbetc
d70d0fadaa661ff36c046a4f0a87a88d890c0dc4
[ "BSD-3-Clause" ]
null
null
null
palsbet/migrations/0003_auto_20180323_0018.py
denis254/palsbetc
d70d0fadaa661ff36c046a4f0a87a88d890c0dc4
[ "BSD-3-Clause" ]
11
2020-03-24T16:11:23.000Z
2021-12-13T19:47:29.000Z
palsbet/migrations/0003_auto_20180323_0018.py
denis254/overtimebet
063af2fc263580d96e396e953ef8658a75ac38a5
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.2 on 2018-03-22 21:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('palsbet', '0002_viptipsgames'), ] operations = [ migrations.AlterField( model_name='viptipsgames', name='cathegory',...
20.526316
51
0.602564
1017b343a5b7dcbbbb64251b24cb90f54b1de90d
2,925
py
Python
qbflask/conventions.py
kevindkeogh/qbootstrapper-flask
490906837d6522e3669193e5097bd33e1f953451
[ "MIT" ]
1
2017-04-27T08:59:01.000Z
2017-04-27T08:59:01.000Z
qbflask/conventions.py
kevindkeogh/qbootstrapper-flask
490906837d6522e3669193e5097bd33e1f953451
[ "MIT" ]
null
null
null
qbflask/conventions.py
kevindkeogh/qbootstrapper-flask
490906837d6522e3669193e5097bd33e1f953451
[ "MIT" ]
null
null
null
#!/usr/bin/python3 '''Functions and constants for all conventions, including adding and returning lists of conventions ''' import qbflask.models as models import json import re INSTRUMENT_TYPES = [('OISCashRate', 'OIS Cash Rate'), ('OISSwap', 'OIS Swap'), ('LIBORCashRate', 'L...
30.46875
80
0.585641
5c434083f7212828c6a5503ed23b5c1ea78119fa
1,765
py
Python
tulingApi.py
Jim-Luo/MyQQRobot2
35b97593ff6b317e68eb1e68a9ef9821d5f862a7
[ "MIT" ]
3
2019-10-01T13:46:16.000Z
2021-03-14T11:37:29.000Z
tulingApi.py
Jim-Luo/MyQQRobot2
35b97593ff6b317e68eb1e68a9ef9821d5f862a7
[ "MIT" ]
null
null
null
tulingApi.py
Jim-Luo/MyQQRobot2
35b97593ff6b317e68eb1e68a9ef9821d5f862a7
[ "MIT" ]
1
2019-07-23T06:55:00.000Z
2019-07-23T06:55:00.000Z
# -*- coding:utf-8 -*- import json import logging import requests from urllib import urlopen from urllib import urlencode class TulingAPI(object): def __init__(self): # API接口地址 self.turing_url = 'http://openapi.tuling123.com/openapi/api/v2?' def get_turing_text(self,text): turing_u...
29.915254
96
0.584136
78dc6cc9edea9c4210a0b5d28078e367fec43a70
1,819
py
Python
datumaro/datumaro/plugins/voc_format/importer.py
lravindr/cvat
b025acea43fbb55c7ea7eac7b12007f0eb6d3f45
[ "MIT" ]
2
2020-03-16T03:41:27.000Z
2020-03-16T03:53:01.000Z
datumaro/datumaro/plugins/voc_format/importer.py
lravindr/cvat
b025acea43fbb55c7ea7eac7b12007f0eb6d3f45
[ "MIT" ]
24
2020-11-13T18:43:15.000Z
2022-03-12T00:21:52.000Z
datumaro/datumaro/plugins/voc_format/importer.py
lravindr/cvat
b025acea43fbb55c7ea7eac7b12007f0eb6d3f45
[ "MIT" ]
5
2020-07-01T18:02:48.000Z
2021-01-22T02:21:48.000Z
# Copyright (C) 2019 Intel Corporation # # SPDX-License-Identifier: MIT from glob import glob import os.path as osp from datumaro.components.extractor import Importer from .format import VocTask, VocPath class VocImporter(Importer): _TASKS = [ (VocTask.classification, 'voc_classification', 'Main'), ...
31.912281
77
0.611875
25379fb59d0f92a5acae582e1383759f8ed83135
62
py
Python
malib/evaluators/__init__.py
renos/Emergent-Multiagent-Strategies
afaf6acfdd6d505668f06ac23dfb33e872ab2872
[ "MIT" ]
23
2020-07-05T11:13:00.000Z
2022-01-28T00:24:41.000Z
malib/evaluators/__init__.py
renos/Emergent-Multiagent-Strategies
afaf6acfdd6d505668f06ac23dfb33e872ab2872
[ "MIT" ]
2
2020-09-07T19:09:40.000Z
2021-06-02T02:21:51.000Z
malib/evaluators/__init__.py
renos/Emergent-Multiagent-Strategies
afaf6acfdd6d505668f06ac23dfb33e872ab2872
[ "MIT" ]
8
2020-07-06T07:24:37.000Z
2021-09-27T20:28:25.000Z
from malib.evaluators.multiagent_evaluator import MAEvaluator
31
61
0.903226
89502a87a1247b7bfdf5f805a5eed458d40b2e51
2,741
py
Python
Matching/Scheduler.py
JaredsAlgorithms/MatchingSchedules
08c6a60a28119cf9d6a49effb306158d0fa7dc5b
[ "MIT" ]
null
null
null
Matching/Scheduler.py
JaredsAlgorithms/MatchingSchedules
08c6a60a28119cf9d6a49effb306158d0fa7dc5b
[ "MIT" ]
null
null
null
Matching/Scheduler.py
JaredsAlgorithms/MatchingSchedules
08c6a60a28119cf9d6a49effb306158d0fa7dc5b
[ "MIT" ]
null
null
null
from Matching.TimeSlot import TimeSlot from Matching.Stack import Stack class Scheduler: def combineSchedules(self, person1, person2) -> list: """ Remove duplicate time intervals """ a, b = len(person1.schedule), len(person2.schedule) # True: person1 # False: pers...
32.247059
82
0.581175
241b71dadf22b5b3892b7c4f2889c50a1a83ecb4
411
py
Python
src/dsalgo/stack_test.py
kagemeka/python-algorithms
dface89b8c618845cf524429aa8e97c4b2b10ceb
[ "MIT" ]
1
2022-02-10T02:13:07.000Z
2022-02-10T02:13:07.000Z
src/dsalgo/stack_test.py
kagemeka/python-algorithms
dface89b8c618845cf524429aa8e97c4b2b10ceb
[ "MIT" ]
6
2022-01-05T09:15:54.000Z
2022-01-09T05:48:43.000Z
src/dsalgo/stack_test.py
kagemeka/python-algorithms
dface89b8c618845cf524429aa8e97c4b2b10ceb
[ "MIT" ]
null
null
null
import unittest import dsalgo.stack class Test(unittest.TestCase): def test(self) -> None: st = dsalgo.stack.Stack[int]() st.push(3) st.push(2) self.assertEqual(len(st), 2) self.assertEqual(st.top(), 2) self.assertEqual(len(st), 2) self.assertEqual(st.pop()...
20.55
38
0.586375
abcfbc020b718594f4d703d1edc81820b706f90e
706
py
Python
tests/test_is_pattern.py
rtmigo/framefile_py
b787ef7701bd3e1e99822fc2de6304384a8a06c0
[ "MIT" ]
null
null
null
tests/test_is_pattern.py
rtmigo/framefile_py
b787ef7701bd3e1e99822fc2de6304384a8a06c0
[ "MIT" ]
null
null
null
tests/test_is_pattern.py
rtmigo/framefile_py
b787ef7701bd3e1e99822fc2de6304384a8a06c0
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: (c) 2021 Artёm IG <github.com/rtmigo> # SPDX-License-Identifier: MIT import unittest from framefile import is_pattern, Format class TestIsPattern(unittest.TestCase): def test_pct(self): self.assertTrue(is_pattern("/path/to/%05d.png", fmt=Format.percent)) self.assertFals...
39.222222
78
0.695467
868cc36730d19cde3ac7cbcf9836ae5412fa3c3a
1,002
py
Python
mimic/text_translator.py
ubclaunchpad/mimic
a5cee4e96d726d8d91f344ad86428501b63b1320
[ "MIT" ]
4
2019-02-08T06:25:29.000Z
2020-02-12T04:29:40.000Z
mimic/text_translator.py
ubclaunchpad/mimic
a5cee4e96d726d8d91f344ad86428501b63b1320
[ "MIT" ]
62
2019-02-02T22:35:38.000Z
2022-02-26T10:17:19.000Z
mimic/text_translator.py
ubclaunchpad/mimic
a5cee4e96d726d8d91f344ad86428501b63b1320
[ "MIT" ]
1
2019-07-11T22:33:49.000Z
2019-07-11T22:33:49.000Z
"""Core text translator module.""" from mimic.model.translation_model import TranslationModel class TextTranslator: """ Core text translator class. User-facing class that offers loading of bilingual dataset for training and predition functionalities. """ def __init__(self): """Initia...
27.081081
76
0.652695
38b762dbb185f806dcff54992459538d529f8a99
108
py
Python
2019/D10/Q2/MonitoringStation.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
2019/D10/Q2/MonitoringStation.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
2019/D10/Q2/MonitoringStation.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
from Map import AsteroidMap asteroidMap = AsteroidMap('InputDay10.txt') asteroidMap.getDistanceSlopeMap()
18
43
0.824074
a79f164ba0f3bb7bb2ff551ce0c9ea7f76ef3c84
1,786
py
Python
homeassistant/components/nsw_fuel_station/__init__.py
NikoM87/core
7403ba1e81579b4ab83da24e570d4afe864e6312
[ "Apache-2.0" ]
2
2020-03-29T05:32:57.000Z
2021-06-13T06:55:05.000Z
homeassistant/components/nsw_fuel_station/__init__.py
NikoM87/core
7403ba1e81579b4ab83da24e570d4afe864e6312
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
homeassistant/components/nsw_fuel_station/__init__.py
kmdm/home-assistant
4007430d7262ef035bb80affea13657fdc993b1d
[ "Apache-2.0" ]
1
2020-11-18T21:04:18.000Z
2020-11-18T21:04:18.000Z
"""The nsw_fuel_station component.""" from __future__ import annotations from dataclasses import dataclass import datetime import logging from nsw_fuel import FuelCheckClient, FuelCheckError, Station from homeassistant.helpers.update_coordinator import DataUpdateCoordinator from .const import DATA_NSW_FUEL_STATION ...
27.476923
85
0.703247
0a4ca05c3cc8ac05bc2affa4412756434ad1671c
12,823
py
Python
SmartBinApp.py
OpenSUTD/SmartBin
134eee02795dd9bd5936846c261283070c7b062e
[ "MIT" ]
37
2018-04-21T22:35:01.000Z
2020-02-22T15:21:30.000Z
SmartBinApp.py
OpenSUTD/SmartBin
134eee02795dd9bd5936846c261283070c7b062e
[ "MIT" ]
3
2018-09-10T17:11:02.000Z
2019-02-07T01:16:50.000Z
SmartBinApp.py
OpenSUTD/SmartBin
134eee02795dd9bd5936846c261283070c7b062e
[ "MIT" ]
12
2018-07-09T02:53:20.000Z
2020-12-18T15:37:22.000Z
# ============================================== # Configuration # Some often-tweaked parameters during testing # ============================================== import os os.environ['KIVY_HOME'] = "/home/pi/.kivy" # model configuration file, taken from training enviroment config_path = "data/config.json" # path to...
32.218593
114
0.591047
dea2d7bc65bb27f34dde357e8857090910e648fe
472
py
Python
data/scripts/templates/object/mobile/shared_dressed_rebel_second_lieutenant_rodian_male_01.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/shared_dressed_rebel_second_lieutenant_rodian_male_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/shared_dressed_rebel_second_lieutenant_rodian_male_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_dressed_rebel_second_lieutenant_rodian_male_01.iff" result.att...
27.764706
92
0.745763
be01d659f3c954c560b89a834a7f444f9c8f0f0e
26,538
py
Python
mmocr/datasets/pipelines/transforms.py
quincylin1/mmocr-1
0e70f99f4d8fa0180bdab16f8697e65e71590c72
[ "Apache-2.0" ]
null
null
null
mmocr/datasets/pipelines/transforms.py
quincylin1/mmocr-1
0e70f99f4d8fa0180bdab16f8697e65e71590c72
[ "Apache-2.0" ]
null
null
null
mmocr/datasets/pipelines/transforms.py
quincylin1/mmocr-1
0e70f99f4d8fa0180bdab16f8697e65e71590c72
[ "Apache-2.0" ]
null
null
null
import math import cv2 import numpy as np import torchvision.transforms as transforms from PIL import Image import mmocr.core.evaluation.utils as eval_utils from mmdet.core import BitmapMasks, PolygonMasks from mmdet.datasets.builder import PIPELINES from mmdet.datasets.pipelines.transforms import Resize from mmocr.u...
36.155313
79
0.546801
b7d5a60fbdb76687fc39cd1c5c8e08ebfcca6f94
403
py
Python
thirtyonedays/thirtyonedays/wsgi.py
kmikitin/31daysofhalloween
989e304ddb6ffa414d4e396221fe0f8cc5d3b175
[ "MIT" ]
null
null
null
thirtyonedays/thirtyonedays/wsgi.py
kmikitin/31daysofhalloween
989e304ddb6ffa414d4e396221fe0f8cc5d3b175
[ "MIT" ]
6
2019-12-04T23:12:28.000Z
2022-02-10T09:03:49.000Z
thirtyonedays/thirtyonedays/wsgi.py
kmikitin/31daysofhalloween
989e304ddb6ffa414d4e396221fe0f8cc5d3b175
[ "MIT" ]
null
null
null
""" WSGI config for thirtyonedays project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
a5226e42afbe3e86ee8a5202f12d275869692771
16,082
py
Python
common/mask_prune/prune_v1.py
jiahuei/tf-sparse-captioning
9d7b8ecdd44fb1541500ca4f920d6c94fd15bad1
[ "BSD-3-Clause" ]
null
null
null
common/mask_prune/prune_v1.py
jiahuei/tf-sparse-captioning
9d7b8ecdd44fb1541500ca4f920d6c94fd15bad1
[ "BSD-3-Clause" ]
null
null
null
common/mask_prune/prune_v1.py
jiahuei/tf-sparse-captioning
9d7b8ecdd44fb1541500ca4f920d6c94fd15bad1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 12 Jul 2019 22:45:39 @author: jiahuei """ import tensorflow as tf import numpy as np import os import logging from tensorflow.contrib.model_pruning.python import pruning_utils # from tensorflow.contrib.model_pruning.python import pruning from common import ops_v1 as ops from comm...
41.663212
117
0.623057
eadc393e19f2820fe270f419062b84e06b133edf
278
py
Python
testresults/scons120_vs_make/results_windows/all/scons_cleanbuild_plot.py
SCons/scons-performance
2df4558a1132b62a36f20c1c0b37da8fafa00114
[ "MIT" ]
null
null
null
testresults/scons120_vs_make/results_windows/all/scons_cleanbuild_plot.py
SCons/scons-performance
2df4558a1132b62a36f20c1c0b37da8fafa00114
[ "MIT" ]
1
2020-09-24T16:09:23.000Z
2020-09-27T17:30:13.000Z
testresults/scons120_vs_make/results_windows/all/scons_cleanbuild_plot.py
SCons/scons-performance
2df4558a1132b62a36f20c1c0b37da8fafa00114
[ "MIT" ]
2
2020-09-27T21:18:11.000Z
2022-03-23T17:32:03.000Z
import matplotlib.pyplot as plt files = [2500, 4500, 8500, 16500] buildtime = [425.255, 730.854, 1151.060, 2161.544] plt.plot(files, buildtime, marker='o', color='g') plt.xlabel('C Files') plt.ylabel('Time [s]') plt.title('SCons Build') plt.legend(loc='upper left') plt.show()
25.272727
50
0.694245
1a516f3d944ecf89703351bc6e54a4c52c2c7daf
2,409
py
Python
stacker/lookups/handlers/kms.py
theister/stacker
f563a6f5a23550c7a668a1500bcea2b4e94f5bbf
[ "BSD-2-Clause" ]
372
2018-05-16T19:35:54.000Z
2022-02-28T09:11:53.000Z
stacker/lookups/handlers/kms.py
theister/stacker
f563a6f5a23550c7a668a1500bcea2b4e94f5bbf
[ "BSD-2-Clause" ]
452
2015-03-12T16:46:29.000Z
2018-05-14T21:15:01.000Z
stacker/lookups/handlers/kms.py
theister/stacker
f563a6f5a23550c7a668a1500bcea2b4e94f5bbf
[ "BSD-2-Clause" ]
111
2015-03-29T19:22:02.000Z
2018-05-04T02:17:27.000Z
from __future__ import print_function from __future__ import division from __future__ import absolute_import import codecs import sys from stacker.session_cache import get_session from . import LookupHandler from ...util import read_value_from_path TYPE_NAME = "kms" class KmsLookup(LookupHandler): @classmethod ...
31.697368
79
0.626816
2da7e57672dbb51d40da8d6dddf7cd232b830a4b
683
py
Python
Not_necessary_for_dhcp_spoofing/snifftest.py
shamiul94/DHCP-Spoofing-Attack-Network-Security
09312d439b56701d82e22fe4ae9c99cc9678e232
[ "MIT" ]
2
2021-05-03T08:54:12.000Z
2022-03-22T08:19:38.000Z
Not_necessary_for_dhcp_spoofing/snifftest.py
shamiul94/DHCP-Spoofing-Attack-Network-Security
09312d439b56701d82e22fe4ae9c99cc9678e232
[ "MIT" ]
null
null
null
Not_necessary_for_dhcp_spoofing/snifftest.py
shamiul94/DHCP-Spoofing-Attack-Network-Security
09312d439b56701d82e22fe4ae9c99cc9678e232
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 from collections import Counter from scapy.all import sniff ## Create a Packet Counter packet_counts = Counter() ## Define our Custom Action function def custom_action(packet): # Create tuple of Src/Dst in sorted order key = tuple(sorted([packet[0][1].src, packet[0][1].dst])) pack...
32.52381
97
0.682284
79ff29b5acad87155a04ed5cbd6bade028873dfb
412
py
Python
tests/assets/sample.py
Kludex/typer-cli
a8000afa67ec8b05238e3ee02910eca5d3c1ef16
[ "MIT" ]
187
2020-03-08T23:27:42.000Z
2022-03-23T20:53:16.000Z
tests/assets/sample.py
Kludex/typer-cli
a8000afa67ec8b05238e3ee02910eca5d3c1ef16
[ "MIT" ]
53
2020-03-08T19:00:38.000Z
2022-03-25T13:04:11.000Z
tests/assets/sample.py
Kludex/typer-cli
a8000afa67ec8b05238e3ee02910eca5d3c1ef16
[ "MIT" ]
17
2020-06-29T03:10:50.000Z
2022-03-11T18:25:50.000Z
import typer app = typer.Typer() @app.command() def hello(name: str = "World", formal: bool = False): """ Say hi """ if formal: typer.echo(f"Good morning Ms. {name}") else: typer.echo(f"Hello {name}!") @app.command() def bye(friend: bool = False): """ Say bye """ ...
15.846154
53
0.536408
3c21f29c4640b6a457b4ac57fab083bf5907f3cc
4,213
py
Python
maptrainer/data/IPDataLoader.py
mothguib/maptrainer
335334fed073f8d14a4c5137eaa0424efcbcac63
[ "MIT" ]
null
null
null
maptrainer/data/IPDataLoader.py
mothguib/maptrainer
335334fed073f8d14a4c5137eaa0424efcbcac63
[ "MIT" ]
null
null
null
maptrainer/data/IPDataLoader.py
mothguib/maptrainer
335334fed073f8d14a4c5137eaa0424efcbcac63
[ "MIT" ]
null
null
null
import numpy as np import torch from maptrainer import DATA, DURATION from maptrainer.data.MAPDataLoader import MAPDataLoader class IPDataLoader(MAPDataLoader): """ On-vertex idleness path data loader: loads data with individual idlenesses as input and real idlenesses as output. """ def __init...
26.834395
78
0.525754
dcbd92ea7f427b7ff762fb5c0f4f08fcc478b4c0
6,862
py
Python
server/mysch.py
creasyimm/flask-vue-crud
49858176df71604436cfae2dfc08be2faae42ffe
[ "MIT" ]
null
null
null
server/mysch.py
creasyimm/flask-vue-crud
49858176df71604436cfae2dfc08be2faae42ffe
[ "MIT" ]
null
null
null
server/mysch.py
creasyimm/flask-vue-crud
49858176df71604436cfae2dfc08be2faae42ffe
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from multiprocessing import Process import os import time import json import urllib.request from utils import * from tcp_latency import measure_latency from datetime import datetime # import docker def mypost(body): try: # body = {"who":"2.247","cpu":6,"memory":3,"disk":5} myurl = "http:/...
18.955801
75
0.644564
accc199dfc0495359087a54dc6fb49913c761bf0
3,257
py
Python
samples/fig5.py
ctschnur/kr-poylmer-growth-simulation
7dfbd71cd7cc96eb34afe5632cbb18e95ca87e74
[ "MIT" ]
null
null
null
samples/fig5.py
ctschnur/kr-poylmer-growth-simulation
7dfbd71cd7cc96eb34afe5632cbb18e95ca87e74
[ "MIT" ]
null
null
null
samples/fig5.py
ctschnur/kr-poylmer-growth-simulation
7dfbd71cd7cc96eb34afe5632cbb18e95ca87e74
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl # -- import most important classes from kr.kr import Kr, Kr_constants from kr.plot_utils import Plot_utility def mpl_settings(): ...
32.89899
84
0.621738
d34bf60711970c9a7213fd134eca72664d9f8123
909
py
Python
courses/migrations/0003_auto_20210519_1041.py
OjureFred/CloudSchool
ca45e031ac68dddd01e0abf74aa915043bb896c5
[ "MIT" ]
null
null
null
courses/migrations/0003_auto_20210519_1041.py
OjureFred/CloudSchool
ca45e031ac68dddd01e0abf74aa915043bb896c5
[ "MIT" ]
null
null
null
courses/migrations/0003_auto_20210519_1041.py
OjureFred/CloudSchool
ca45e031ac68dddd01e0abf74aa915043bb896c5
[ "MIT" ]
null
null
null
# Generated by Django 3.0.14 on 2021-05-19 07:41 import courses.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('courses', '0002_content_file_image_text_video'), ] operations = [ migrations.AlterModelOptions( name='content', ...
25.971429
67
0.563256
ebfd1409fa73ee49a4bcb56f8265efc3e08d92d7
4,178
py
Python
aioketraapi/models/inline_response2003.py
s4v4g3/aio-ketra-api
1c8fefa2a66d4a66addeefdc33c71b2f0faa1137
[ "MIT" ]
null
null
null
aioketraapi/models/inline_response2003.py
s4v4g3/aio-ketra-api
1c8fefa2a66d4a66addeefdc33c71b2f0faa1137
[ "MIT" ]
null
null
null
aioketraapi/models/inline_response2003.py
s4v4g3/aio-ketra-api
1c8fefa2a66d4a66addeefdc33c71b2f0faa1137
[ "MIT" ]
null
null
null
# coding: utf-8 """ Ketra Lighting API Control your Ketra lights # noqa: E501 The version of the OpenAPI document: 1.4.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from aioketraapi.configuration import Configuration class InlineResponse200...
27.668874
94
0.577549
ed0d36133da372d55b0352efff8ceb7fa3e388aa
9,663
py
Python
webnlg_eval_scripts/benchmark_reader.py
zhaochaocs/DualEnc
4175a7ed3f2c3232152ecce5ffd6ee4c727e64b9
[ "MIT" ]
19
2020-07-09T03:46:08.000Z
2022-01-05T08:34:43.000Z
webnlg_eval_scripts/benchmark_reader.py
zhaochaocs/DualEnc
4175a7ed3f2c3232152ecce5ffd6ee4c727e64b9
[ "MIT" ]
12
2020-07-11T07:44:40.000Z
2022-03-12T00:44:15.000Z
webnlg_eval_scripts/benchmark_reader.py
zhaochaocs/DualEnc
4175a7ed3f2c3232152ecce5ffd6ee4c727e64b9
[ "MIT" ]
4
2020-07-15T16:11:38.000Z
2021-10-16T16:58:02.000Z
import random import re import string import xml.etree.ElementTree as Et from collections import defaultdict import _pickle as pickle punc_regex = re.compile('[%s]' % re.escape(string.punctuation)) def remove_punc(s): # From Vinko's solution, with fix. return punc_regex.sub('', s) def normalize(p, s...
37.453488
128
0.534099
4bb30338c51ab12e51d691b2c08b06a133e8558f
4,291
py
Python
tests/conftest.py
sdrobert/pydrobert-pytorch
7abad0dbb2e80b4267aebcee492aa9fd7d83ea3f
[ "Apache-2.0" ]
14
2019-01-04T21:19:55.000Z
2021-01-06T16:01:03.000Z
tests/conftest.py
sdrobert/pydrobert-pytorch
7abad0dbb2e80b4267aebcee492aa9fd7d83ea3f
[ "Apache-2.0" ]
6
2021-04-17T23:34:57.000Z
2022-02-11T00:49:41.000Z
tests/conftest.py
sdrobert/pydrobert-pytorch
7abad0dbb2e80b4267aebcee492aa9fd7d83ea3f
[ "Apache-2.0" ]
1
2020-05-19T08:03:43.000Z
2020-05-19T08:03:43.000Z
# Copyright 2021 Sean Robertson # # 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...
34.055556
88
0.588907
bad50547319a01f69819e0c7ea4346456f6321c0
445
py
Python
opensource/opencv/readimage.py
marciojv/hacks-cognitives-plataforms
5b43f52d6afde4ad2768ad5b85e376578e2c9b2f
[ "Apache-2.0" ]
1
2021-05-14T18:43:51.000Z
2021-05-14T18:43:51.000Z
opensource/opencv/readimage.py
marciojv/hacks-cognitives-plataforms
5b43f52d6afde4ad2768ad5b85e376578e2c9b2f
[ "Apache-2.0" ]
null
null
null
opensource/opencv/readimage.py
marciojv/hacks-cognitives-plataforms
5b43f52d6afde4ad2768ad5b85e376578e2c9b2f
[ "Apache-2.0" ]
9
2019-02-04T22:08:08.000Z
2021-07-17T12:12:12.000Z
import cv2 #captura imagem do disco e mostra colorido # o defaulthe colorido caso nao informado imagem = cv2.imread("datasets/fotos/reuniao-professores.jpeg",1) cv2.imshow("Mostra Imagem Colorida",imagem) cv2.waitKey(0) cv2.destroyAllWindows() #captura imagem do disco e mostra em cinza imagem = cv2.imread("datase...
22.25
64
0.775281
04d1cc371ccaf3ef4cf21a3fb08417b18d0b3064
1,324
py
Python
lux/utils/message.py
Moh-Yakoub/lux
127806f653602afeea92d6cb45917401c0ee366e
[ "Apache-2.0" ]
3,731
2020-01-16T01:06:30.000Z
2022-03-31T21:01:04.000Z
lux/utils/message.py
Moh-Yakoub/lux
127806f653602afeea92d6cb45917401c0ee366e
[ "Apache-2.0" ]
393
2020-01-29T04:52:27.000Z
2022-03-31T20:02:19.000Z
lux/utils/message.py
Moh-Yakoub/lux
127806f653602afeea92d6cb45917401c0ee366e
[ "Apache-2.0" ]
304
2020-01-29T03:00:50.000Z
2022-03-25T22:31:20.000Z
# Copyright 2019-2020 The Lux Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
33.948718
90
0.619335
a2e4abbc9027ba8a09caf01c5dcf9b9ce5a1cb5e
792
py
Python
Notes/Python/src/requests/requests_demo.py
liuhll/BlogAndarticle
23b3b69178b0616837cd6f0b588bda943366b448
[ "MIT" ]
2
2016-10-21T16:29:30.000Z
2016-10-26T12:49:02.000Z
Notes/Python/src/requests/requests_demo.py
liuhll/BlogAndarticle
23b3b69178b0616837cd6f0b588bda943366b448
[ "MIT" ]
8
2016-10-16T15:38:46.000Z
2021-07-14T02:25:10.000Z
Notes/Python/src/requests/requests_demo.py
liuhll/BlogAndArticle
23b3b69178b0616837cd6f0b588bda943366b448
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import requests URL_IP = 'http://192.168.0.160:8001/ip' URL_GET = 'http://192.168.0.160:8001/get' def use_simple_requests(): response = requests.get(URL_IP) print '>>>>Response Headers:' print response.headers print '>>>>Response Body:' print response.text def use_params_requests()...
20.307692
46
0.651515
f90cd981f08717cabaa84d79be6d2213ae00c14f
5,642
py
Python
src/sagemaker_sklearn_container/serving.py
ipanepen/sagemaker-scikit-learn-container
3214b0d36955fed0b6338b997b26bcc883f7b883
[ "Apache-2.0" ]
105
2018-11-28T21:48:12.000Z
2022-03-27T18:51:29.000Z
src/sagemaker_sklearn_container/serving.py
ipanepen/sagemaker-scikit-learn-container
3214b0d36955fed0b6338b997b26bcc883f7b883
[ "Apache-2.0" ]
55
2019-01-01T18:52:12.000Z
2022-03-29T09:06:38.000Z
src/sagemaker_sklearn_container/serving.py
ipanepen/sagemaker-scikit-learn-container
3214b0d36955fed0b6338b997b26bcc883f7b883
[ "Apache-2.0" ]
94
2019-01-21T06:46:07.000Z
2022-03-31T18:25:13.000Z
# Copyright 2019-2020 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the 'license' fil...
38.380952
112
0.718894
3cfe36f4d9e977833f97d387e6f25dad6d4c9f18
1,672
py
Python
test/test_curvature.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
null
null
null
test/test_curvature.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
null
null
null
test/test_curvature.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
2
2021-10-03T14:51:38.000Z
2021-11-10T02:54:26.000Z
import gym import numpy as np from stable_baselines3.a2c import A2C from stable_baselines3.ppo import PPO from stable_baselines3.ddpg import DDPG from stable_baselines3.td3 import TD3 from stable_baselines3.sac import SAC from stable_baselines3.her import HER import tempfile import gym # open ai gym from stable_baseli...
42.871795
131
0.805622
199284c680bc27e8966bc04f6718fd87a2603e35
30,055
py
Python
tests/helpers/test_entity_platform.py
unverbraucht/core
312af53935a1bffd58b3b35e82e31292a6ec22ad
[ "Apache-2.0" ]
2
2019-11-20T20:56:59.000Z
2021-01-03T08:52:18.000Z
tests/helpers/test_entity_platform.py
shownor/core
b50281a9173e7fb4a37b3f813ca92876088eaac3
[ "Apache-2.0" ]
null
null
null
tests/helpers/test_entity_platform.py
shownor/core
b50281a9173e7fb4a37b3f813ca92876088eaac3
[ "Apache-2.0" ]
1
2021-04-18T19:36:34.000Z
2021-04-18T19:36:34.000Z
"""Tests for the EntityPlatform helper.""" import asyncio from datetime import timedelta import logging from unittest.mock import MagicMock, Mock, patch import asynctest import pytest from homeassistant.const import UNIT_PERCENTAGE from homeassistant.core import callback from homeassistant.exceptions import PlatformN...
33.960452
106
0.69659
37a5546718fa569571bc660c0d97b97ad1ce66e8
5,120
py
Python
python/jittor/test/test_grad.py
gitqifan/jittor
0a5bd61bf46179c1316b66d5e26498960bbd3b88
[ "Apache-2.0" ]
5
2020-08-09T02:27:58.000Z
2021-01-13T16:04:32.000Z
python/jittor/test/test_grad.py
gitqifan/jittor
0a5bd61bf46179c1316b66d5e26498960bbd3b88
[ "Apache-2.0" ]
null
null
null
python/jittor/test/test_grad.py
gitqifan/jittor
0a5bd61bf46179c1316b66d5e26498960bbd3b88
[ "Apache-2.0" ]
1
2020-06-23T16:25:42.000Z
2020-06-23T16:25:42.000Z
# *************************************************************** # Copyright (c) 2020 Jittor. Authors: Dun Liang <randonlang@gmail.com>. All Rights Reserved. # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of this source code package. # ********************************...
32.405063
92
0.455664
fae01fafed1141d0aa4a4e4501cf7b4d6d813e1d
18,328
py
Python
networkx/algorithms/flow/tests/test_mincost.py
CrazyPython/networkx
cc5a81a1d437e490efaf23e4fb82ab49e05ca392
[ "BSD-3-Clause" ]
null
null
null
networkx/algorithms/flow/tests/test_mincost.py
CrazyPython/networkx
cc5a81a1d437e490efaf23e4fb82ab49e05ca392
[ "BSD-3-Clause" ]
null
null
null
networkx/algorithms/flow/tests/test_mincost.py
CrazyPython/networkx
cc5a81a1d437e490efaf23e4fb82ab49e05ca392
[ "BSD-3-Clause" ]
2
2016-09-04T10:59:12.000Z
2020-02-17T07:43:04.000Z
# -*- coding: utf-8 -*- import networkx as nx from nose.tools import assert_equal, assert_raises import os class TestMinCostFlow: def test_simple_digraph(self): G = nx.DiGraph() G.add_node('a', demand = -5) G.add_node('d', demand = 5) G.add_edge('a', 'b', weight = 3, capacity = 4) ...
40.017467
101
0.509712
fdfd371002b3718846c9a441c3bb9e39a9b821d4
1,235
py
Python
zeus/api/resources/test_details.py
edgerepo/zeus
aea557bde167e95b505a42877422a652baee14c9
[ "Apache-2.0" ]
null
null
null
zeus/api/resources/test_details.py
edgerepo/zeus
aea557bde167e95b505a42877422a652baee14c9
[ "Apache-2.0" ]
null
null
null
zeus/api/resources/test_details.py
edgerepo/zeus
aea557bde167e95b505a42877422a652baee14c9
[ "Apache-2.0" ]
null
null
null
from flask import Response from sqlalchemy.orm import joinedload, undefer from zeus.config import db from zeus.models import TestCase from .base import Resource from ..schemas import TestCaseSchema testcase_schema = TestCaseSchema(strict=True) class TestDetailsResource(Resource): def dispatch_request(self, tes...
28.72093
81
0.637247
5c8cf65054782518772c5caf42acaf56ef09305f
1,499
py
Python
migrations/005_make_end_time_nullable.py
mritsurgeon/frigate
bfecee9650f7aa962c3222ed4de466f8c4acdefe
[ "MIT" ]
1
2022-02-23T00:01:24.000Z
2022-02-23T00:01:24.000Z
migrations/005_make_end_time_nullable.py
mritsurgeon/frigate
bfecee9650f7aa962c3222ed4de466f8c4acdefe
[ "MIT" ]
null
null
null
migrations/005_make_end_time_nullable.py
mritsurgeon/frigate
bfecee9650f7aa962c3222ed4de466f8c4acdefe
[ "MIT" ]
null
null
null
"""Peewee migrations -- 004_add_bbox_region_area.py. Some examples (model - class or model name):: > Model = migrator.orm['model_name'] # Return model in current state by name > migrator.sql(sql) # Run custom SQL > migrator.python(func, *args, **kwargs) # Run...
34.068182
97
0.691127
d88fe1108666843db9b345c03945083d38223436
11,516
py
Python
website/addons/zotero/tests/test_models.py
lbanner/osf.io
1898ef0ff8bd91713e94c60e7463b5f81ac62caa
[ "Apache-2.0" ]
null
null
null
website/addons/zotero/tests/test_models.py
lbanner/osf.io
1898ef0ff8bd91713e94c60e7463b5f81ac62caa
[ "Apache-2.0" ]
null
null
null
website/addons/zotero/tests/test_models.py
lbanner/osf.io
1898ef0ff8bd91713e94c60e7463b5f81ac62caa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import mock from nose.tools import * # noqa from framework.exceptions import PermissionsError from tests.base import OsfTestCase from tests.factories import UserFactory, ProjectFactory from website.addons.zotero.tests.factories import ( ZoteroAccountFactory, ZoteroUserSettingsFactory, ...
31.378747
85
0.633293
d723e47448ec2194d9fe5d5625cd517bb1d05547
77,110
py
Python
deps/python/2.7/Lib/lib-tk/Tix.py
eljefedelrodeodeljefe/node-cpython
a6e5414fa4c089c30135c3a7db3eaf1e1d600f68
[ "MIT" ]
13
2015-11-12T14:43:03.000Z
2021-04-30T07:02:11.000Z
deps/python/2.7/Lib/lib-tk/Tix.py
eljefedelrodeodeljefe/node-cpython
a6e5414fa4c089c30135c3a7db3eaf1e1d600f68
[ "MIT" ]
5
2015-05-23T13:07:01.000Z
2016-01-06T16:23:05.000Z
deps/python/2.7/Lib/lib-tk/Tix.py
eljefedelrodeodeljefe/node-cpython
a6e5414fa4c089c30135c3a7db3eaf1e1d600f68
[ "MIT" ]
5
2015-10-30T21:25:24.000Z
2017-03-25T15:50:55.000Z
# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*- # # $Id$ # # Tix.py -- Tix widget wrappers. # # For Tix, see http://tix.sourceforge.net # # - Sudhir Shenoy (sshenoy@gol.com), Dec. 1995. # based on an idea of Jean-Marc Lugrin (lugrin@ms.com) # # NOTE: In order to minimi...
39.624872
96
0.62333
2d4d7dd9b943d1b0639ceaab83e3882ad0815cd3
1,947
py
Python
examples/dhclient.py
li-ma/pyroute2
48b85e39d675c18c05eb209229db082316aa760a
[ "Apache-2.0" ]
null
null
null
examples/dhclient.py
li-ma/pyroute2
48b85e39d675c18c05eb209229db082316aa760a
[ "Apache-2.0" ]
null
null
null
examples/dhclient.py
li-ma/pyroute2
48b85e39d675c18c05eb209229db082316aa760a
[ "Apache-2.0" ]
null
null
null
import sys import select from pprint import pprint from pyroute2.dhcp import BOOTREQUEST from pyroute2.dhcp import DHCPDISCOVER from pyroute2.dhcp import DHCPOFFER from pyroute2.dhcp import DHCPREQUEST from pyroute2.dhcp import DHCPACK from pyroute2.dhcp.dhcp4msg import dhcp4msg from pyroute2.dhcp.dhcp4socket import DH...
29.953846
79
0.546482
bb3929a528dd9a8fe45a1509be0c380735c4e7e7
1,365
py
Python
youtubevidz/urls.py
MsNahid/Youtube-Hall
6a2c17801aac932020bc11ad66bb7a2f0af08c7f
[ "MIT" ]
null
null
null
youtubevidz/urls.py
MsNahid/Youtube-Hall
6a2c17801aac932020bc11ad66bb7a2f0af08c7f
[ "MIT" ]
null
null
null
youtubevidz/urls.py
MsNahid/Youtube-Hall
6a2c17801aac932020bc11ad66bb7a2f0af08c7f
[ "MIT" ]
null
null
null
"""youtubevidz URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') ...
36.891892
84
0.698901
9b09c9131955fd799a3e07b80f9abc16795f5395
494
py
Python
pebble/PblCommand.py
Nikolabenakova90/libpebble
e935e9aa50fe7dde25bbee8cbe0e7606378edbb8
[ "MIT" ]
167
2015-01-02T00:36:07.000Z
2021-07-08T00:20:10.000Z
pebble/PblCommand.py
Nikolabenakova90/libpebble
e935e9aa50fe7dde25bbee8cbe0e7606378edbb8
[ "MIT" ]
7
2015-01-01T17:58:40.000Z
2022-02-04T01:57:38.000Z
pebble/PblCommand.py
Nikolabenakova90/libpebble
e935e9aa50fe7dde25bbee8cbe0e7606378edbb8
[ "MIT" ]
34
2015-01-23T13:39:20.000Z
2022-01-26T10:23:31.000Z
import os class PblCommand: name = '' help = '' def run(args): pass def configure_subparser(self, parser): parser.add_argument('--sdk', help='Path to Pebble SDK (ie: ~/pebble-dev/PebbleSDK-2.X/)') def sdk_path(self, args): """ Tries to guess the location of the Pe...
22.454545
97
0.550607
f44140ad0121845e9c45499ceebd0c458e33344e
2,030
py
Python
demo/analysis.py
rintoj/ai
a9f4e9edca6ffcbcd79186f5a61a55dfdaeefedd
[ "MIT" ]
null
null
null
demo/analysis.py
rintoj/ai
a9f4e9edca6ffcbcd79186f5a61a55dfdaeefedd
[ "MIT" ]
null
null
null
demo/analysis.py
rintoj/ai
a9f4e9edca6ffcbcd79186f5a61a55dfdaeefedd
[ "MIT" ]
null
null
null
# analysis.py # ----------- # Licensing Information: Please do not distribute or publish solutions to this # project. You are free to use and extend these projects for educational # purposes. The Pacman AI projects were developed at UC Berkeley, primarily by # John DeNero (denero@cs.berkeley.edu) and Dan Klein (klein@c...
29.852941
78
0.718719
ce34e913ae10504c1ea08c6c105f04117de0cd7e
21
py
Python
aliyun-python-sdk-petadata/aliyunsdkpetadata/__init__.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-petadata/aliyunsdkpetadata/__init__.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-petadata/aliyunsdkpetadata/__init__.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
__version__ = '1.2.1'
21
21
0.666667
355d3cae6499b918ce903c3b334c51c30cd75486
2,667
py
Python
any/unit_test.py
assassinen/coursera_mfti_python
eee7b3c55256f391c1be32924fa1ad3364b307f2
[ "Apache-2.0" ]
null
null
null
any/unit_test.py
assassinen/coursera_mfti_python
eee7b3c55256f391c1be32924fa1ad3364b307f2
[ "Apache-2.0" ]
null
null
null
any/unit_test.py
assassinen/coursera_mfti_python
eee7b3c55256f391c1be32924fa1ad3364b307f2
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- import unittest class Point(object): def __init__(self, x, y): self.x = float(x) self.y = float(y) def __str__(self): return '({0}, {1})'.format(self.x, self.y) def __eq__(self, other): return True if ((self.x == other.x) and (self.y == other.y)...
44.45
120
0.578178
1a299a0c8958629dd4047e98745410f5d66e4eb6
647
py
Python
var/spack/repos/builtin/packages/gmtsar/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/gmtsar/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/gmtsar/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Gmtsar(CMakePackage): """GMTSAR is an open source (GNU General Public License) InSAR proc...
30.809524
93
0.731066
7813e5421911d0e838934fd13a56c6b894b7db01
2,193
py
Python
ijal_interlinear/tests/test_DegenerateLine.py
davidjamesbeck/IJAL-interlinear
cb5dbb1d6aea98cce76668aa868a9189f31baf3f
[ "BSD-2-Clause" ]
null
null
null
ijal_interlinear/tests/test_DegenerateLine.py
davidjamesbeck/IJAL-interlinear
cb5dbb1d6aea98cce76668aa868a9189f31baf3f
[ "BSD-2-Clause" ]
null
null
null
ijal_interlinear/tests/test_DegenerateLine.py
davidjamesbeck/IJAL-interlinear
cb5dbb1d6aea98cce76668aa868a9189f31baf3f
[ "BSD-2-Clause" ]
null
null
null
# test_CanonicalLine.py #---------------------------------------------------------------------------------------------------- import re import sys sys.path.append("..") from line import * from degenerateLine import * import importlib pd.set_option('display.width', 1000) #-----------------------------------------------...
32.731343
101
0.559964
912f88065dd6e7dab013c4056340790049150bf7
3,125
py
Python
minibot/scripts/SwarmMaster.py
cornell-cup/cs-minibot
bf44124f103570a9796430f2978b12dd2c0405c2
[ "Apache-2.0" ]
9
2017-10-01T17:30:10.000Z
2020-07-16T04:32:37.000Z
minibot/scripts/SwarmMaster.py
cornell-cup/cs-minibot
bf44124f103570a9796430f2978b12dd2c0405c2
[ "Apache-2.0" ]
53
2017-10-03T02:11:51.000Z
2018-03-25T01:56:30.000Z
minibot/scripts/SwarmMaster.py
cornell-cup/cs-minibot
bf44124f103570a9796430f2978b12dd2c0405c2
[ "Apache-2.0" ]
2
2017-10-03T15:43:46.000Z
2018-03-17T19:25:36.000Z
from hardware.communication.ZMQ import ZMQExchange from hardware.communication.TCP import TCP from threading import Thread from peripherals.colorsensor import ColorSensor import time threads = [] count = {"F":0,"B":0,"L":0,"R":0} def run(bot): # Sets up TCP connection between master and minions. Starts publisher-...
27.654867
83
0.48992
90480542f7cd684726f7d1d3fdf0093cebf4f6f0
2,396
py
Python
setup_sub.py
shimwell/pyne
0c2714d7c0d1b5e20be6ae6527da2c660dd6b1b3
[ "MIT" ]
182
2015-01-03T15:53:31.000Z
2022-03-22T16:23:18.000Z
setup_sub.py
shimwell/pyne
0c2714d7c0d1b5e20be6ae6527da2c660dd6b1b3
[ "MIT" ]
781
2015-01-13T02:47:11.000Z
2022-03-22T17:29:29.000Z
setup_sub.py
shimwell/pyne
0c2714d7c0d1b5e20be6ae6527da2c660dd6b1b3
[ "MIT" ]
153
2015-01-15T21:34:43.000Z
2021-12-21T22:19:38.000Z
#!/usr/bin/env python """Welcome to PyNE's setup.py sub script.""" from __future__ import print_function import io import os import re import sys import imp import shutil import tarfile import argparse import platform import warnings import subprocess from glob import glob from distutils import core, dir_util, sysconf...
30.329114
83
0.541319
50e53ac83012aefe97d8d210acbb50a56f6ff6c9
929
py
Python
mopidy_notify/__init__.py
phijor/mopidy-notify
22c6c00dc1f27ad71de1ea38d7973fdfc67331f1
[ "Apache-2.0" ]
null
null
null
mopidy_notify/__init__.py
phijor/mopidy-notify
22c6c00dc1f27ad71de1ea38d7973fdfc67331f1
[ "Apache-2.0" ]
null
null
null
mopidy_notify/__init__.py
phijor/mopidy-notify
22c6c00dc1f27ad71de1ea38d7973fdfc67331f1
[ "Apache-2.0" ]
null
null
null
import logging import pathlib import pkg_resources from mopidy import config, ext __version__ = pkg_resources.get_distribution("Mopidy-Notify").version # TODO: If you need to log, use loggers named after the current Python module logger = logging.getLogger(__name__) class Extension(ext.Extension): dist_name =...
27.323529
77
0.700753
02fed1497694144a40d113915743bd61fa10ca91
528
py
Python
main.py
Tmw/edward
0a58022d0bbf1f80abecb880f7565acaa5cebfde
[ "MIT" ]
20
2019-01-07T08:36:57.000Z
2021-06-15T09:21:37.000Z
main.py
Tmw/edward
0a58022d0bbf1f80abecb880f7565acaa5cebfde
[ "MIT" ]
1
2019-01-17T12:34:29.000Z
2019-01-17T12:34:29.000Z
main.py
Tmw/edward
0a58022d0bbf1f80abecb880f7565acaa5cebfde
[ "MIT" ]
2
2020-01-14T07:30:01.000Z
2020-03-03T17:13:16.000Z
from edward import Edward import os import signal DEFAULT_MAX_THREADS = 2 def main(): token = os.getenv("SLACK_TOKEN") threads = os.getenv("THREADS", DEFAULT_MAX_THREADS) if token is None: raise RuntimeError("SLACK_TOKEN not set") edward = Edward(slack_token=token, max_threads=threads) ...
19.555556
59
0.69697
b01cf0c5b06b89f848414853673af7d269bdd755
1,572
py
Python
catalyst/utils/tests/test_swa.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
2
2019-04-19T21:34:31.000Z
2019-05-02T22:50:25.000Z
catalyst/utils/tests/test_swa.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-07T16:13:45.000Z
2021-01-21T09:27:54.000Z
catalyst/utils/tests/test_swa.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-07T02:50:38.000Z
2021-01-07T02:50:38.000Z
import os from pathlib import Path import shutil import unittest import torch import torch.nn as nn from catalyst.utils.checkpoint import load_checkpoint from catalyst.utils.swa import get_averaged_weights_by_path_mask class Net(nn.Module): """Dummy network class.""" def __init__(self, init_weight=4): ...
29.111111
79
0.641221
43e49d7bb7544f7f445d875a7b1e6f2c240920ce
1,429
py
Python
pgcli/key_bindings.py
czchen/debian-pgcli
67498d4e8f6d153de7f2f73380d2b749c550c247
[ "BSD-3-Clause" ]
null
null
null
pgcli/key_bindings.py
czchen/debian-pgcli
67498d4e8f6d153de7f2f73380d2b749c550c247
[ "BSD-3-Clause" ]
null
null
null
pgcli/key_bindings.py
czchen/debian-pgcli
67498d4e8f6d153de7f2f73380d2b749c550c247
[ "BSD-3-Clause" ]
null
null
null
import logging from prompt_toolkit.keys import Keys from prompt_toolkit.key_binding.manager import KeyBindingManager _logger = logging.getLogger(__name__) def pgcli_bindings(vi_mode=False): """ Custom key bindings for pgcli. """ key_binding_manager = KeyBindingManager(enable_vi_mode=vi_mode) @key...
29.770833
83
0.673898
e950bda2fd349c9e08d0660e9fb68760bcc37beb
13,626
py
Python
sdk/python/pulumi_azure_nextgen/network/v20180701/network_interface.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20180701/network_interface.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20180701/network_interface.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 from ... import _utilities, _tables from...
54.286853
2,639
0.690445
3a31e8259e821dac3c003fb6f4d1178dc29b1349
28,226
py
Python
lib/python3.8/site-packages/ansible_collections/cisco/meraki/plugins/modules/meraki_mr_rf_profile.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/cisco/meraki/plugins/modules/meraki_mr_rf_profile.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/cisco/meraki/plugins/modules/meraki_mr_rf_profile.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Kevin Breit (@kbreit) <kevin.breit@kevinbreit.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { ...
42.509036
131
0.501346
4495b6fc53b4473f1c062d55368705173714b041
17,198
py
Python
src/azul/service/responseobjects/cart_item_manager.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
src/azul/service/responseobjects/cart_item_manager.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
src/azul/service/responseobjects/cart_item_manager.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
import base64 import hashlib import json import logging import uuid from azul import config from azul.es import ESClientFactory from azul.service.responseobjects.dynamo_data_access import DynamoDataAccessor from azul.service.responseobjects.elastic_request_builder import ElasticTransformDump from azul.service.step_fun...
49.705202
128
0.603152
fb58a82b8623838488aabb614315603fe0024ba4
1,661
py
Python
simpledecorators/Async.py
shaddyx/simpleDecorators
4d4b042c956a3b6d11a03937e44ce89c4d7fc4ea
[ "MIT" ]
1
2016-10-15T19:03:03.000Z
2016-10-15T19:03:03.000Z
simpledecorators/Async.py
shaddyx/simpleDecorators
4d4b042c956a3b6d11a03937e44ce89c4d7fc4ea
[ "MIT" ]
null
null
null
simpledecorators/Async.py
shaddyx/simpleDecorators
4d4b042c956a3b6d11a03937e44ce89c4d7fc4ea
[ "MIT" ]
null
null
null
from functools import wraps from threading import Thread class AsyncFuture(object): complete=False working=False error=None result=None def Async(executor=None): """ @type executor: simpledecorators.ThreadPool @rtype: AsyncFuture """ def asyncDecorator (func): @wraps(func) ...
25.553846
55
0.539434
0ca36eb996eb76aac9ad93040d269f55631a4c65
2,301
py
Python
tests/common/markers.py
ravi-mosaicml/ravi-composer
d100053198524672f628c3959a8c4e51a9302e2d
[ "Apache-2.0" ]
1
2021-11-09T22:58:46.000Z
2021-11-09T22:58:46.000Z
tests/common/markers.py
ravi-mosaicml/ravi-composer
d100053198524672f628c3959a8c4e51a9302e2d
[ "Apache-2.0" ]
null
null
null
tests/common/markers.py
ravi-mosaicml/ravi-composer
d100053198524672f628c3959a8c4e51a9302e2d
[ "Apache-2.0" ]
null
null
null
"""Pytest marker helpers.""" from typing import Callable import pytest from composer.core import Precision def device(*args, precision=False): """Decorator for device and optionally precision. Input choices are ('cpu', 'gpu'), or if precision=True, also accept ('gpu-amp', 'gpu-fp32', and 'cpu-fp32'). ...
30.276316
116
0.617123
80a7973dfc29efa502748396e20a92b6a34bc74b
12,215
py
Python
plotSpeed.py
dib-lab/2020-paper-mqf-benchmarks
29245836d142b4912c120f3e3899042e972e959c
[ "BSD-3-Clause" ]
1
2020-07-15T20:27:53.000Z
2020-07-15T20:27:53.000Z
plotSpeed.py
dib-lab/2020-paper-mqf-benchmarks
29245836d142b4912c120f3e3899042e972e959c
[ "BSD-3-Clause" ]
null
null
null
plotSpeed.py
dib-lab/2020-paper-mqf-benchmarks
29245836d142b4912c120f3e3899042e972e959c
[ "BSD-3-Clause" ]
1
2021-03-22T01:09:08.000Z
2021-03-22T01:09:08.000Z
import matplotlib.pyplot as plt import numpy as np from matplotlib.patches import Patch import sys inputFile=open(sys.argv[1]).readlines() opType=sys.argv[2] inputFile=[list(map(float,x.split("\t"))) for x in inputFile ] def prepare(arr2): arr=arr2.copy() bottoms=[] for l in arr: bottoms.append([...
43.625
112
0.541056
6a12090c051c51e6f1d51469a92f046ffec58ad8
1,694
py
Python
nicos_mlz/biodiff/setups/special/watchdog.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/biodiff/setups/special/watchdog.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/biodiff/setups/special/watchdog.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
description = 'setup for the NICOS watchdog' group = 'special' # watch_conditions: # The entries in this list are dictionaries. Possible keys: # # 'setup' -- setup that must be loaded (default '' to mean all setups) # 'condition' -- condition for warning (a Python expression where cache keys # can be used: t_value ...
36.042553
80
0.654664
e9bad51532d88d14b28c85f70b8a687f26586af2
478
py
Python
top/api/rest/WdtExtStatRefundQueryAogouRequest.py
SAMZONG/taobao-sdk-python3
202a9df2085229838541713bd24433a90d07c7fc
[ "MIT" ]
null
null
null
top/api/rest/WdtExtStatRefundQueryAogouRequest.py
SAMZONG/taobao-sdk-python3
202a9df2085229838541713bd24433a90d07c7fc
[ "MIT" ]
null
null
null
top/api/rest/WdtExtStatRefundQueryAogouRequest.py
SAMZONG/taobao-sdk-python3
202a9df2085229838541713bd24433a90d07c7fc
[ "MIT" ]
null
null
null
''' Created by auto_sdk on 2021.06.25 ''' from top.api.base import RestApi class WdtExtStatRefundQueryAogouRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.is_retail = None self.page_no = None self.page_size = None self.shop_no = None...
26.555556
56
0.717573
c71d8e0f2949b23baf91343a66943791f37adb19
5,669
py
Python
pysnmp-with-texts/ChrComPmAtmATM-VC-Day-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ChrComPmAtmATM-VC-Day-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ChrComPmAtmATM-VC-Day-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ChrComPmAtmATM-VC-Day-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ChrComPmAtmATM-VC-Day-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:35:11 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3....
115.693878
607
0.800141
d1cbd5d5b30706fdbd9b7a1f536043887efb0d54
1,333
py
Python
test/snow/engine/common/test_subnet.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
25
2021-05-16T23:43:47.000Z
2022-03-29T03:08:30.000Z
test/snow/engine/common/test_subnet.py
zefonseca/ava-python
9c72af7c720edfab9c73379a102cf6a11d864ebd
[ "MIT" ]
2
2021-04-26T11:43:22.000Z
2021-06-04T07:55:22.000Z
test/snow/engine/common/test_subnet.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
4
2021-08-06T10:55:58.000Z
2022-03-29T08:03:05.000Z
# avax-python : Python tools for the exploration of the Avalanche AVAX network. # # Documentation at https://crypto.bi """ Copyright © 2021 ojrdev Support this Open Source project! Donate to X-avax1qr6yzjykcjmeflztsgv6y88dl0xnlel3chs3r4 Permission is hereby granted, free of charge, to any person obtaining a copy of...
60.590909
463
0.793698
9c279e5049de1d10c432ee6ee3cd0cfd436fe6f5
17,333
py
Python
src/memory_saving_gradients.py
gonzzza007/Russian-gpt-2
22bc186d6320b315cd0066bd21bff9c5c9457c77
[ "MIT" ]
null
null
null
src/memory_saving_gradients.py
gonzzza007/Russian-gpt-2
22bc186d6320b315cd0066bd21bff9c5c9457c77
[ "MIT" ]
null
null
null
src/memory_saving_gradients.py
gonzzza007/Russian-gpt-2
22bc186d6320b315cd0066bd21bff9c5c9457c77
[ "MIT" ]
null
null
null
from toposort import toposort import contextlib import numpy as np import tensorflow as tf import tensorflow.contrib.graph_editor as ge import time import sys sys.setrecursionlimit(10000) # refers back to current module if we decide to split helpers out util = sys.modules[__name__] # getting rid of "WARNING:tensorflow...
44.67268
139
0.656205
c750cc3ed9765378186d3d91464bfbb3d6420303
724
py
Python
src/features/inversion/__init__.py
dimitrymindlin/xray
0476d2ac950a118b9182e5cc3b077ccd32b8d722
[ "MIT" ]
31
2020-01-29T12:45:41.000Z
2022-03-01T14:07:02.000Z
src/features/inversion/__init__.py
dimitrymindlin/xray
0476d2ac950a118b9182e5cc3b077ccd32b8d722
[ "MIT" ]
5
2020-12-07T04:32:34.000Z
2022-01-23T14:39:01.000Z
src/features/inversion/__init__.py
dimitrymindlin/xray
0476d2ac950a118b9182e5cc3b077ccd32b8d722
[ "MIT" ]
12
2020-08-03T12:20:19.000Z
2022-02-18T06:48:05.000Z
import glob import cv2 import matplotlib.pyplot as plt import numpy as np from src import DATA_PATH # Saves data to the same folder XR_HAND_CENTRED_PATH = f'{DATA_PATH}/XR_HAND_CENTRED' path_to_data = f'{XR_HAND_CENTRED_PATH}/*/*/*' paths = glob.glob(path_to_data) threshold = 255 / 2 for path in paths: img = ...
24.965517
75
0.635359
2969bcd5a971f4f7167322b9efe5c35f49e373a2
10,091
py
Python
core/targets.py
Prodject/OWASP-Nettacker
b6fb4a1fe6b3cf1a0a49872480fd387b77ed9b44
[ "Apache-2.0" ]
35
2019-10-17T17:42:50.000Z
2020-10-06T12:08:29.000Z
core/targets.py
Prodject/OWASP-Nettacker
b6fb4a1fe6b3cf1a0a49872480fd387b77ed9b44
[ "Apache-2.0" ]
1
2022-03-29T22:02:36.000Z
2022-03-29T22:02:36.000Z
core/targets.py
Prodject/OWASP-Nettacker
b6fb4a1fe6b3cf1a0a49872480fd387b77ed9b44
[ "Apache-2.0" ]
7
2019-10-17T21:46:09.000Z
2021-12-15T04:56:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import socket import json import netaddr.ip import re from core.ip import * from core.alert import * from core._die import __die_failure from lib.scan.subdomain.engine import __get_subs from core.log import __log_into_file def target_to_host(target): """ convert ...
40.203187
110
0.440591
844542e302f02a2c57d4dd9620f574b9fd7f750e
1,541
py
Python
items.py
q6806161/-_scrapy-
281463018530fd519843a7994c9219f126194675
[ "MIT" ]
null
null
null
items.py
q6806161/-_scrapy-
281463018530fd519843a7994c9219f126194675
[ "MIT" ]
null
null
null
items.py
q6806161/-_scrapy-
281463018530fd519843a7994c9219f126194675
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class HouseInfoItem(scrapy.Item): # define the fields for your item here like: City = scrapy.Field() # 城市 Item_Url = scrapy.F...
37.585366
63
0.5756
e7a912cb274237c7758bb4d36156942f1cda107f
149
py
Python
mypower/matpower_ported/most/lib/t/test_most.py
yasirroni/mypower
123c2d3380bf5f753a479c35e7b5cbafc82a8ebc
[ "Apache-2.0" ]
2
2020-08-08T15:13:49.000Z
2021-01-04T07:21:29.000Z
mypower/matpower_ported/most/lib/t/test_most.py
yasirroni/mypower
123c2d3380bf5f753a479c35e7b5cbafc82a8ebc
[ "Apache-2.0" ]
null
null
null
mypower/matpower_ported/most/lib/t/test_most.py
yasirroni/mypower
123c2d3380bf5f753a479c35e7b5cbafc82a8ebc
[ "Apache-2.0" ]
1
2020-08-08T15:14:17.000Z
2020-08-08T15:14:17.000Z
def test_most(*args,nout=1,oc=None): if oc == None: from .....oc_api import oc_matpower oc = oc_matpower() return oc.test_most(*args,nout=nout)
24.833333
37
0.697987
5e6153f130a7b9bde23586c05ceef1cf7ce241c1
3,785
py
Python
unterwegs/utils/pages.py
mountain/unterwegs
fe84ef366b278382f7589fc21d3442ffd9db530f
[ "MIT" ]
7
2020-11-03T11:28:22.000Z
2021-01-11T04:10:55.000Z
unterwegs/utils/pages.py
mountain/unterwegs
fe84ef366b278382f7589fc21d3442ffd9db530f
[ "MIT" ]
1
2020-11-06T01:59:36.000Z
2021-04-29T13:51:56.000Z
unterwegs/utils/pages.py
mountain/unterwegs
fe84ef366b278382f7589fc21d3442ffd9db530f
[ "MIT" ]
null
null
null
import orjson as json from unterwegs.utils.db import ts, rd, rn, rc from zlib import decompress, compress def search_result(q): ckey = 'search:%s' % q result = rc.get(ckey) if result is not None: result = json.loads(decompress(result)) else: result = ts.collections['pages'].documents....
33.201754
126
0.523118
74ec62f02b7abe41ce56cce60ee3184b3163d19f
2,530
py
Python
app/recipe/tests/test_tags_api.py
bl4ck4ndbr0wn/recipe-api
0ff03ea2c62a6ec47396c3aaccb25279b4375edf
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
bl4ck4ndbr0wn/recipe-api
0ff03ea2c62a6ec47396c3aaccb25279b4375edf
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
bl4ck4ndbr0wn/recipe-api
0ff03ea2c62a6ec47396c3aaccb25279b4375edf
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class PublicTag...
29.418605
72
0.651383
d100fa9a32b5e8b1cc478e2734d1a018dfa2831f
181
py
Python
blog/urls.py
Ellena45/template-python-django
87819a83ba256f9277610df4b878bd73ae52febc
[ "MIT" ]
null
null
null
blog/urls.py
Ellena45/template-python-django
87819a83ba256f9277610df4b878bd73ae52febc
[ "MIT" ]
null
null
null
blog/urls.py
Ellena45/template-python-django
87819a83ba256f9277610df4b878bd73ae52febc
[ "MIT" ]
null
null
null
from django.urls import path from .import views app_name='blog' urlpatterns = [ path('',views.index, name='index'), path('timeline/',views.timeline_view,name='timeline'), ]
22.625
58
0.701657
ce1bf58a602fe07f8df73be8fbe01c8b343c569d
4,869
py
Python
built-in/TensorFlow/Research/reinforcement-learning/ModelZoo_PPO_TensorFlow/rl/xt/environment/dst/digital_sky.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
built-in/TensorFlow/Research/reinforcement-learning/ModelZoo_PPO_TensorFlow/rl/xt/environment/dst/digital_sky.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/TensorFlow/Research/reinforcement-learning/ModelZoo_PPO_TensorFlow/rl/xt/environment/dst/digital_sky.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
""" digital sky game environment """ import numpy as np from gym import spaces from xt.environment.dst.external_env import ExternalEnv from xt.environment.dst.state_transform import get_preprocessor from xt.framework.register import Registers observation_space = spaces.Dict({ "self_health": spaces.Box(0, 1000, (1...
47.735294
81
0.633395
09119ac8c2c3831ba156ab2e3bb2b28ab116c6d1
5,683
py
Python
comp0037_explorer/src/comp0037_explorer/explorer_node_WFD_base.py
Yun5141/0037-assignment2
b95627e181ee4d46ec6193aad950094de0628de4
[ "BSD-3-Clause" ]
null
null
null
comp0037_explorer/src/comp0037_explorer/explorer_node_WFD_base.py
Yun5141/0037-assignment2
b95627e181ee4d46ec6193aad950094de0628de4
[ "BSD-3-Clause" ]
null
null
null
comp0037_explorer/src/comp0037_explorer/explorer_node_WFD_base.py
Yun5141/0037-assignment2
b95627e181ee4d46ec6193aad950094de0628de4
[ "BSD-3-Clause" ]
null
null
null
import rospy from explorer_node_base import ExplorerNodeBase from nav_msgs.msg import Odometry # Part 2.3 # This class is a base class implementing the wave front detection # refering the seudocode in the suggested paper 'Frontier Based Exploration for Autonomous Robot' class ExplorerNodeWFDBase(ExplorerNodeBase): ...
36.664516
132
0.626782
e11d7b213469d833c5031bbadcb293907ca8d01e
3,390
py
Python
django/tiantian/tiantian/settings.py
zhang15780/web_project
820708ae68f4d1bc06cdde4a86e40a5457c11df8
[ "Apache-2.0" ]
null
null
null
django/tiantian/tiantian/settings.py
zhang15780/web_project
820708ae68f4d1bc06cdde4a86e40a5457c11df8
[ "Apache-2.0" ]
null
null
null
django/tiantian/tiantian/settings.py
zhang15780/web_project
820708ae68f4d1bc06cdde4a86e40a5457c11df8
[ "Apache-2.0" ]
null
null
null
""" Django settings for tiantian project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
26.904762
91
0.682596
4a111e481264ea2f2f7c1097aa1a982cdab129e2
473
py
Python
platform/core/polyaxon/administration/__init__.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/administration/__init__.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/administration/__init__.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
from hestia.service_interface import LazyServiceWrapper from django.conf import settings from administration.service import AdminService def get_admin_backend(): return settings.ADMIN_BACKEND or 'administration.service.AdminService' def get_admin_options(): return {'models': settings.ADMIN_MODELS} backe...
21.5
74
0.79704
422e7024e12141476d31715f4b192b7dc6feab18
6,253
py
Python
tests/test_routes_artist.py
purwin/Parks-Database
98cb06dbfacf73c300f32d55f0872fb63ff4a906
[ "MIT" ]
null
null
null
tests/test_routes_artist.py
purwin/Parks-Database
98cb06dbfacf73c300f32d55f0872fb63ff4a906
[ "MIT" ]
2
2021-03-09T19:47:01.000Z
2022-02-10T19:41:33.000Z
tests/test_routes_artist.py
purwin/Parks-Database
98cb06dbfacf73c300f32d55f0872fb63ff4a906
[ "MIT" ]
null
null
null
import unittest from flask import request from app import db from app.parks_db import Artist from base import BaseTests class TestRoutesArtist(BaseTests): default_artist = dict( pName='Person', fName='Cool', email='cool_person@website.com', phone='555-345-5678', website='www.party.c...
25.73251
77
0.641132
aea4b7b422ea022c7bda6c88084cad070e832762
1,134
py
Python
samples/openapi3/client/features/dynamic-servers/python-experimental/setup.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
3
2021-04-09T01:04:32.000Z
2022-02-02T11:02:22.000Z
samples/openapi3/client/features/dynamic-servers/python-experimental/setup.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
10
2021-03-09T14:12:46.000Z
2022-02-27T11:42:16.000Z
samples/openapi3/client/features/dynamic-servers/python-experimental/setup.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
5
2020-11-26T05:13:41.000Z
2021-04-09T15:58:18.000Z
# coding: utf-8 """ OpenAPI Extension with dynamic servers This specification shows how to use dynamic servers. # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ from setuptools import setup, find_packages # noqa: H301 NAME = "dynamic-server...
23.625
88
0.687831
8be087faead54fa09f244c7fca0b6fef62da54d5
5,604
py
Python
test/test_simulate.py
bmkramer/automated-systematic-review
f99079926f381bc7895ff6fefa9e6e729a2c26b8
[ "Apache-2.0" ]
1
2021-01-22T15:18:33.000Z
2021-01-22T15:18:33.000Z
test/test_simulate.py
bmkramer/automated-systematic-review
f99079926f381bc7895ff6fefa9e6e729a2c26b8
[ "Apache-2.0" ]
null
null
null
test/test_simulate.py
bmkramer/automated-systematic-review
f99079926f381bc7895ff6fefa9e6e729a2c26b8
[ "Apache-2.0" ]
null
null
null
import os from shutil import copyfile import numpy as np from asreview.logging import open_logger from asreview.review.factory import get_reviewer data_fp = os.path.join("test", "demo_data", "generic_labels.csv") embedding_fp = os.path.join("test", "demo_data", "generic.vec") cfg_dir = os.path.join("test", "cfg_file...
33.556886
78
0.611171