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
35be608818c17595509d79a7fc9f4c23cd5ee450
75,972
py
Python
airflow/models/baseoperator.py
boschglobal/airflow
de36616e1e3b578d9a5b6727daf7a32fe15c4c32
[ "Apache-2.0" ]
null
null
null
airflow/models/baseoperator.py
boschglobal/airflow
de36616e1e3b578d9a5b6727daf7a32fe15c4c32
[ "Apache-2.0" ]
null
null
null
airflow/models/baseoperator.py
boschglobal/airflow
de36616e1e3b578d9a5b6727daf7a32fe15c4c32
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.201238
110
0.633536
7c4d769146cc973267ce67ce2e90aa8e87baaa78
6,748
py
Python
etchlib/graphicsitem/hexcube.py
tonningp/pirate-game
77070b1c2252c1b42b5763a27a057801998627af
[ "MIT" ]
null
null
null
etchlib/graphicsitem/hexcube.py
tonningp/pirate-game
77070b1c2252c1b42b5763a27a057801998627af
[ "MIT" ]
null
null
null
etchlib/graphicsitem/hexcube.py
tonningp/pirate-game
77070b1c2252c1b42b5763a27a057801998627af
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math from PyQt5.QtCore import * from PyQt5.QtGui import ( QPainter, QColor, qRgb, QPen, QIcon, QBrush, QPixmap, QPainterPath, QImage, QFont, QPolygon, QPolygonF, QFontMetrics )...
31.53271
117
0.599733
e716fcc79ccb714b48cdbf531f79d53b05933d85
153
py
Python
aliases/admin.py
6ba/bbgo
dfa9b55b8d40c53940105333c2e03a3c6abddb88
[ "MIT" ]
22
2017-07-13T04:07:03.000Z
2021-06-10T05:39:29.000Z
aliases/admin.py
genonfire/bbgo
5f374f0b620f4dc3e106de5969f26f4585044605
[ "MIT" ]
7
2017-08-25T06:33:45.000Z
2019-10-14T05:49:32.000Z
aliases/admin.py
6ba/bbgo
dfa9b55b8d40c53940105333c2e03a3c6abddb88
[ "MIT" ]
9
2017-12-31T02:45:58.000Z
2021-01-22T03:09:02.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Alias admin.site.register(Alias)
17
39
0.764706
a046b0c8e0867f4f44ebfafedd5e973dffe0e6ad
64,172
py
Python
pyNastran/dev/h5/read_h5.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
null
null
null
pyNastran/dev/h5/read_h5.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
null
null
null
pyNastran/dev/h5/read_h5.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
null
null
null
""" https://public.kitware.com/pipermail/paraview/2016-January/035894.html https://discourse.paraview.org/t/paraviewweb-visualizer/1268/5 https://discourse.vtk.org/t/appending-data-field-to-a-vtk-file-python-vtk/3220/3 https://www.paraview.org/Wiki/Python_Programmable_Filter https://stackoverflow.com/questions/54603267...
49.745736
188
0.477794
9cb6e373edd0c9d596ac328c1e673f344431b351
358
py
Python
docs/ctapipe_api/instrument/camerageometry_example.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
null
null
null
docs/ctapipe_api/instrument/camerageometry_example.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
null
null
null
docs/ctapipe_api/instrument/camerageometry_example.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
1
2020-05-16T10:23:51.000Z
2020-05-16T10:23:51.000Z
from ctapipe.instrument import CameraGeometry from matplotlib import pyplot as plt geom = CameraGeometry.from_name("LSTCam") plt.figure(figsize=(8, 3)) plt.subplot(1, 2, 1) plt.imshow(geom.neighbor_matrix, origin="lower") plt.title("Pixel Neighbor Matrix") plt.subplot(1, 2, 2) plt.scatter(geom.pix_x, geom.pix_y) plt...
22.375
48
0.759777
7a52ccbba91db29994f48398dfd5a42eb2c8e99a
774
py
Python
phasor/base/__init__.py
mccullerlp/OpenLoop
fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d
[ "Apache-2.0" ]
5
2018-02-28T00:43:37.000Z
2020-01-21T11:39:15.000Z
phasor/base/__init__.py
mccullerlp/OpenLoop
fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d
[ "Apache-2.0" ]
1
2019-09-07T23:15:43.000Z
2019-09-07T23:15:43.000Z
phasor/base/__init__.py
mccullerlp/OpenLoop
fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d
[ "Apache-2.0" ]
1
2020-08-21T04:42:09.000Z
2020-08-21T04:42:09.000Z
# -*- coding: utf-8 -*- """ """ from __future__ import division, print_function, unicode_literals #from phasor.utilities.print import print from .bases import ( NoiseBase, CouplerBase, FrequencyBase, Element, RootElement, SystemElementBase, PTREE_ASSIGN, ) from .ports import ( ElementK...
14.884615
65
0.692506
934cacd93f0211ff70da261c08cd522beccb8ada
2,997
py
Python
uninas/training/devices/cuda.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
18
2020-11-22T16:03:08.000Z
2022-03-15T12:11:46.000Z
uninas/training/devices/cuda.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
2
2022-01-04T08:10:17.000Z
2022-01-05T08:13:14.000Z
uninas/training/devices/cuda.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
6
2021-03-08T07:08:52.000Z
2022-02-24T12:00:43.000Z
import GPUtil import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.nn.parallel.scatter_gather import scatter from uninas.training.devices.abstract import AbstractDevicesManager, AbstractDeviceMover, TensorOrList from uninas.utils.args import Argument from uninas.register import Register ...
39.434211
112
0.630631
8863c965ed051e622c66fdce999024d487eb66ca
7,497
py
Python
tests/test_manifolds/test_complex_grassmann.py
captain-pool/pymanopt
df94ab9e03b5fa3041668defe995d93b8715a6d7
[ "BSD-3-Clause" ]
null
null
null
tests/test_manifolds/test_complex_grassmann.py
captain-pool/pymanopt
df94ab9e03b5fa3041668defe995d93b8715a6d7
[ "BSD-3-Clause" ]
null
null
null
tests/test_manifolds/test_complex_grassmann.py
captain-pool/pymanopt
df94ab9e03b5fa3041668defe995d93b8715a6d7
[ "BSD-3-Clause" ]
null
null
null
import autograd.numpy as np from numpy import linalg as la from numpy import random as rnd from numpy import testing as np_testing from pymanopt.manifolds import ComplexGrassmann # from pymanopt.tools import testing from pymanopt.tools.multi import multieye, multihconj, multiprod, multisym from .._test import TestCa...
31.902128
79
0.571028
da7daffd4aa23dda21fc463dc4a3f0ac4262c187
8,620
py
Python
data_generator/generate_data.py
g-loot/fourkeys
a42ccbe17742e6db958d6c7936d46886f75bb540
[ "Apache-2.0" ]
1
2021-09-13T10:03:03.000Z
2021-09-13T10:03:03.000Z
data_generator/generate_data.py
g-loot/fourkeys
a42ccbe17742e6db958d6c7936d46886f75bb540
[ "Apache-2.0" ]
1
2021-12-17T16:02:25.000Z
2021-12-17T16:03:48.000Z
data_generator/generate_data.py
g-loot/fourkeys
a42ccbe17742e6db958d6c7936d46886f75bb540
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
30.785714
95
0.581323
0d5113d881ff0c9c457e7eaf3b8c4e4293d25828
6,381
py
Python
Sudoku_Solver.py
sameer-m-dev/sudoku-solver
b7f8fec5d705ebddace7bac9970bbefa5f4da5ef
[ "Apache-2.0" ]
null
null
null
Sudoku_Solver.py
sameer-m-dev/sudoku-solver
b7f8fec5d705ebddace7bac9970bbefa5f4da5ef
[ "Apache-2.0" ]
null
null
null
Sudoku_Solver.py
sameer-m-dev/sudoku-solver
b7f8fec5d705ebddace7bac9970bbefa5f4da5ef
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[139]: #naming rows and columns rows = 'ABCDEFGHI' cols = '123456789' # In[140]: def cross(a, b): return [s+t for s in a for t in b] # In[142]: #creating out sudoku box boxes = cross(rows, cols) # In[143]: row_units = [cross(r, cols) for r in rows] # Elemen...
25.422311
115
0.605704
ff976151eea1c82e7516ee20a423f237a8e96ad8
14,242
py
Python
python/ccxt/__init__.py
ibrahiamm/ccxt
9b1d68c58709d568d65399ce2084f731ff530fd0
[ "MIT" ]
null
null
null
python/ccxt/__init__.py
ibrahiamm/ccxt
9b1d68c58709d568d65399ce2084f731ff530fd0
[ "MIT" ]
null
null
null
python/ccxt/__init__.py
ibrahiamm/ccxt
9b1d68c58709d568d65399ce2084f731ff530fd0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """CCXT: CryptoCurrency eXchange Trading Library""" # MIT License # Copyright (c) 2017 Igor Kroitor # 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 restricti...
46.24026
80
0.534195
aed561fd5fb0c0ddb881baad61795fc30f83347d
2,213
py
Python
arjuna-samples/arjex/test/pkg/reporting/check_rep_01_selenium_network.py
StefanIGit/arjuna
6c7d9099e0d766e7b30936ef25d32c1414133b96
[ "Apache-2.0" ]
13
2020-05-12T06:32:51.000Z
2022-01-24T18:21:19.000Z
arjuna-samples/arjex/test/pkg/reporting/check_rep_01_selenium_network.py
StefanIGit/arjuna
6c7d9099e0d766e7b30936ef25d32c1414133b96
[ "Apache-2.0" ]
5
2020-02-14T12:51:07.000Z
2021-12-01T10:39:51.000Z
arjuna-samples/arjex/test/pkg/reporting/check_rep_01_selenium_network.py
StefanIGit/arjuna
6c7d9099e0d766e7b30936ef25d32c1414133b96
[ "Apache-2.0" ]
25
2020-01-16T10:44:25.000Z
2022-02-24T13:22:22.000Z
# This file is a part of Arjuna # Copyright 2015-2021 Rahul Verma # Website: www.RahulVerma.net # 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...
33.530303
91
0.735201
0b80bf402388f0c0172ca3fb067f7038c3261d38
5,113
py
Python
Applications/ParaView/Testing/Python/SaveAnimationMultiView.py
UV-CDAT/ParaView
095ac28404a85fd86676491b8952884805842223
[ "Apache-2.0" ]
null
null
null
Applications/ParaView/Testing/Python/SaveAnimationMultiView.py
UV-CDAT/ParaView
095ac28404a85fd86676491b8952884805842223
[ "Apache-2.0" ]
null
null
null
Applications/ParaView/Testing/Python/SaveAnimationMultiView.py
UV-CDAT/ParaView
095ac28404a85fd86676491b8952884805842223
[ "Apache-2.0" ]
null
null
null
#/usr/bin/env python import QtTesting import QtTestingImage import time object1 = 'pqClientMainWindow/menubar/menuSources' QtTesting.playCommand(object1, 'activate', 'Wavelet') object2 = 'pqClientMainWindow/objectInspectorDock/objectInspector/Accept' QtTesting.playCommand(object2, 'activate', '') object6 = 'pqClientM...
55.576087
191
0.825543
aa6072a558dffdce13798f2b6efb65f1d2f32089
6,696
py
Python
sdk/python/pulumi_aws_native/gamelift/get_game_session_queue.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/gamelift/get_game_session_queue.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/gamelift/get_game_session_queue.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.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, overload from .. import _utilities from...
43.2
237
0.709229
36ea5a21bfb971f781171b1784bf435d8009291d
5,147
py
Python
pladif/data.py
thilaire/PLADIF
2eab080e60505f6efe8050b7144498a504d441a4
[ "MIT" ]
null
null
null
pladif/data.py
thilaire/PLADIF
2eab080e60505f6efe8050b7144498a504d441a4
[ "MIT" ]
null
null
null
pladif/data.py
thilaire/PLADIF
2eab080e60505f6efe8050b7144498a504d441a4
[ "MIT" ]
null
null
null
""""This file is part of PLADIF. MIT License Copyright (c) 2022 - Thibault Hilaire 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 righ...
38.125926
120
0.700019
216c9b924bda70647af17c7ce898507268ebff83
205
py
Python
blog/users/views.py
zn79213/blog
b396b4319afc066da1eb5eca40179a9b0ca9fa74
[ "MIT" ]
null
null
null
blog/users/views.py
zn79213/blog
b396b4319afc066da1eb5eca40179a9b0ca9fa74
[ "MIT" ]
null
null
null
blog/users/views.py
zn79213/blog
b396b4319afc066da1eb5eca40179a9b0ca9fa74
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. # 注册试图 from django.views import View class RegisterView(View): def get(self, request): return render(request, "register.html")
17.083333
47
0.721951
e956440c7eea33a98f0dbbd7ea5381779ffef44f
11,420
py
Python
test/teos/unit/test_cleaner.py
orbitalturtle/python-teos
bcdde7675ebdaa4e63482b0c6ea3c80a89e8e67e
[ "MIT" ]
null
null
null
test/teos/unit/test_cleaner.py
orbitalturtle/python-teos
bcdde7675ebdaa4e63482b0c6ea3c80a89e8e67e
[ "MIT" ]
null
null
null
test/teos/unit/test_cleaner.py
orbitalturtle/python-teos
bcdde7675ebdaa4e63482b0c6ea3c80a89e8e67e
[ "MIT" ]
null
null
null
import random from uuid import uuid4 from teos.cleaner import Cleaner from teos.gatekeeper import UserInfo from teos.responder import TransactionTracker from common.appointment import Appointment from test.teos.unit.conftest import get_random_value_hex from common.constants import LOCATOR_LEN_BYTES, LOCATOR_LEN_HEX ...
41.831502
116
0.728722
dd3abcf3cfa28a96b4d47c65a629eee7383c96af
115
py
Python
kaishisong-20210605/test_case/dev_case/quotation/__init__.py
ti132520/kaishisong-python-test
22eccd989ebb9e7401838d2b3cb82cd211d7660e
[ "Apache-2.0" ]
null
null
null
kaishisong-20210605/test_case/dev_case/quotation/__init__.py
ti132520/kaishisong-python-test
22eccd989ebb9e7401838d2b3cb82cd211d7660e
[ "Apache-2.0" ]
null
null
null
kaishisong-20210605/test_case/dev_case/quotation/__init__.py
ti132520/kaishisong-python-test
22eccd989ebb9e7401838d2b3cb82cd211d7660e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Author : 怕你呀 # Time : 2021/6/5 # File : __init__.py # IDE : PyCharm
19.166667
25
0.46087
2d9f44e284f49a162defe5e604e36e89d7c0080f
38,008
py
Python
python/tvm/relay/frontend/caffe.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
python/tvm/relay/frontend/caffe.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2,863
2017-08-17T19:55:50.000Z
2019-11-04T17:18:41.000Z
python/tvm/relay/frontend/caffe.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.781312
99
0.592402
0bdf063df4e23fe48a69f49208f757dbb8660194
9,021
py
Python
tensorflow_probability/python/internal/backend/numpy/numpy_array.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/backend/numpy/numpy_array.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/backend/numpy/numpy_array.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
27.336364
107
0.676533
adb3bc21dd6f84871a2daba6754f08f0f7f73fcf
21,876
py
Python
examples/netview.py
grkoll/impacket
90a91045139659d83409af1771dcaf697c00de99
[ "Apache-1.1" ]
null
null
null
examples/netview.py
grkoll/impacket
90a91045139659d83409af1771dcaf697c00de99
[ "Apache-1.1" ]
null
null
null
examples/netview.py
grkoll/impacket
90a91045139659d83409af1771dcaf697c00de99
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2003-2016 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Author: # beto (@agsolino) # # Description: # The idea of this script is to get ...
43.927711
251
0.58507
dfdd83407c31a6bf12b76400d0a219c59b0c63b8
532
py
Python
edge_case_finder/tests/test_checker/test_checker.py
KaustubhDamania/TC-Generator-Checker
268b9a99754d4f8d7df94829a3345444cbe11672
[ "MIT" ]
1
2020-11-03T17:07:14.000Z
2020-11-03T17:07:14.000Z
edge_case_finder/tests/test_checker/test_checker.py
KaustubhDamania/TC-Generator-Checker
268b9a99754d4f8d7df94829a3345444cbe11672
[ "MIT" ]
1
2020-10-31T08:09:06.000Z
2020-10-31T08:09:06.000Z
edge_case_finder/tests/test_checker/test_checker.py
KaustubhDamania/TC-Generator-Checker
268b9a99754d4f8d7df94829a3345444cbe11672
[ "MIT" ]
null
null
null
from checker import Checker from .input_fn import * import unittest import os class SimpleTest(unittest.TestCase): def test1(self): os.chdir('tests/test_checker') checker = Checker('./test1_correct.out', 'python3 test1_soln.py', input_fn1) self.assertTrue(checker.check_randomised(100)) ...
26.6
84
0.684211
8fc3cfb1e42015e01d555535bf1fdd6d7d802147
13,311
py
Python
compss/programming_model/bindings/python/src/pycompss/runtime/management/COMPSs.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/runtime/management/COMPSs.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/runtime/management/COMPSs.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2002-2021 Barcelona Supercomputing Center (www.bsc.es) # # 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 ...
27
85
0.658929
abac7832d832f62bcee80f9f3c287b3619efe3a4
3,588
py
Python
assignments/assignment3/model.py
nikitakogut/dlcourse_ai
bd5826c04331864e0c37c84cf33674438d3f9b01
[ "MIT" ]
1
2019-03-27T09:18:47.000Z
2019-03-27T09:18:47.000Z
assignments/assignment3/model.py
nikitakogut/dlcourse_ai
bd5826c04331864e0c37c84cf33674438d3f9b01
[ "MIT" ]
null
null
null
assignments/assignment3/model.py
nikitakogut/dlcourse_ai
bd5826c04331864e0c37c84cf33674438d3f9b01
[ "MIT" ]
null
null
null
import numpy as np from layers import ( FullyConnectedLayer, ReLULayer, ConvolutionalLayer, MaxPoolingLayer, Flattener, softmax_with_cross_entropy, l2_regularization, softmax ) class ConvNet: """ Implements a very simple conv net Input -> Conv[3x3] -> Relu -> Maxpool[4x4] -> Conv[3x3...
39
93
0.585006
dc74f6efda221819ef086f329a77909174662beb
4,536
py
Python
product/market-capture/market_capture.py
anthonymbowman/index-coop-analytics
ed1b0801850a206d5a6fc2f8b6a80fa0fd024042
[ "MIT" ]
12
2021-04-12T23:19:55.000Z
2021-09-06T21:56:26.000Z
product/market-capture/market_capture.py
anthonymbowman/index-coop-analytics
ed1b0801850a206d5a6fc2f8b6a80fa0fd024042
[ "MIT" ]
70
2021-04-05T19:48:22.000Z
2021-09-21T14:00:06.000Z
product/market-capture/market_capture.py
anthonymbowman/index-coop-analytics
ed1b0801850a206d5a6fc2f8b6a80fa0fd024042
[ "MIT" ]
15
2021-04-27T04:15:14.000Z
2021-09-08T15:21:00.000Z
# _*_ encoding:utf-8 _*_ # This script calculates index market capture by day through coingekco api # market capture = index market cap / sum(each composition's market cap in the index ) # prerequisite: # 1. install coingecko api python library https://github.com/man-c/pycoingecko # 2. prepare index compositi...
41.236364
138
0.710317
604399ec058c935b0fa2b15ddcc7929f53b87969
53
py
Python
gempy/__init__.py
DBerke/DRAGONS
cecf9a03970af95126bd17a227bd5214a5d6c64b
[ "BSD-3-Clause" ]
19
2017-10-23T14:52:51.000Z
2022-03-28T04:49:00.000Z
gempy/__init__.py
DBerke/DRAGONS
cecf9a03970af95126bd17a227bd5214a5d6c64b
[ "BSD-3-Clause" ]
194
2017-11-01T17:32:45.000Z
2022-03-31T21:32:59.000Z
gempy/__init__.py
DBerke/DRAGONS
cecf9a03970af95126bd17a227bd5214a5d6c64b
[ "BSD-3-Clause" ]
16
2017-11-01T05:18:04.000Z
2021-12-14T23:08:57.000Z
from astrodata import version __version__ = version()
26.5
29
0.830189
d9dd312f4105999d1bfc7f48b5c0b7f0d429a6f9
1,284
py
Python
tests/test_market.py
masakichi/otcbtc-client
28f8ee57b4321e901463c913c5fd892ecb0cee7b
[ "MIT" ]
6
2018-05-20T13:51:41.000Z
2019-08-01T10:44:22.000Z
tests/test_market.py
masakichi/otcbtc-client
28f8ee57b4321e901463c913c5fd892ecb0cee7b
[ "MIT" ]
null
null
null
tests/test_market.py
masakichi/otcbtc-client
28f8ee57b4321e901463c913c5fd892ecb0cee7b
[ "MIT" ]
2
2018-12-03T01:12:17.000Z
2019-02-20T04:52:20.000Z
# coding: utf-8 import responses from otcbtc_client.client import OTCBTCClient class TestMarket(object): @property def market(self): return OTCBTCClient().market @responses.activate def test_all(self): market = self.market responses.add( responses.GET, ...
27.319149
64
0.403427
74fe6e0d5b67ca356c7437271329a3aa10889a2e
13,858
py
Python
indico/core/plugins/__init__.py
uxmaster/indico
ecd19f17ef6fdc9f5584f59c87ec647319ce5d31
[ "MIT" ]
1
2019-11-03T11:34:16.000Z
2019-11-03T11:34:16.000Z
indico/core/plugins/__init__.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
indico/core/plugins/__init__.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2019 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals import errno import json import os from flask import g, session ...
43.716088
113
0.697864
bfbe59f9fe21f776c42909a8ac5263b16ccfe7da
6,615
py
Python
bin/render.py
anthonyrandell-madetech/specification
c675576c5cd2103b52938a6cd8cad546da3433e1
[ "MIT" ]
null
null
null
bin/render.py
anthonyrandell-madetech/specification
c675576c5cd2103b52938a6cd8cad546da3433e1
[ "MIT" ]
6
2020-07-14T07:55:38.000Z
2022-01-11T09:50:59.000Z
bin/render.py
anthonyrandell-madetech/specification
c675576c5cd2103b52938a6cd8cad546da3433e1
[ "MIT" ]
2
2022-01-06T14:29:05.000Z
2022-01-07T09:52:52.000Z
#!/usr/bin/env python3 import os import csv import jinja2 import markdown from digital_land_frontend.jinja import setup_jinja docs = "docs/" staticPath = "https://digital-land.github.io" assetPath = "https://digital-land.github.io" keys = { "dataset-field": ["dataset", "field"], "datapackage-dataset": ["data...
32.11165
82
0.584278
8751a04a69a9b944cd91ae177b6eb16ab1a43c39
1,747
py
Python
venv/Lib/site-packages/pynance/tst/unit/learn/test_metrics.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
35
2015-03-12T04:16:14.000Z
2020-12-17T18:10:15.000Z
venv/Lib/site-packages/pynance/tst/unit/learn/test_metrics.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
31
2015-03-16T21:31:04.000Z
2021-01-26T00:12:34.000Z
venv/Lib/site-packages/pynance/tst/unit/learn/test_metrics.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
18
2015-09-30T10:40:26.000Z
2021-01-25T21:20:44.000Z
""" Copyright (c) 2016 Marshall Farrier license http://opensource.org/licenses/MIT @author: Marshall Farrier @contact: marshalldfarrier@gmail.com @since: 2016-02-01 @summary: Unit tests for machine learning metrics """ import unittest import numpy as np import pynance as pn class TestMetrics(unittest.TestCase): ...
28.177419
80
0.534058
05daac84fa0a7c997bdef100f9e789fb8347a524
620
py
Python
euphro_auth/jwt/api_views.py
betagouv/euphrosyne
a67857a8716b5060cd9a2c6fa5f3d45c3fff435a
[ "MIT" ]
1
2022-02-21T19:46:20.000Z
2022-02-21T19:46:20.000Z
euphro_auth/jwt/api_views.py
betagouv/euphrosyne
a67857a8716b5060cd9a2c6fa5f3d45c3fff435a
[ "MIT" ]
37
2021-10-18T18:33:26.000Z
2022-03-31T12:38:38.000Z
euphro_auth/jwt/api_views.py
betagouv/euphrosyne
a67857a8716b5060cd9a2c6fa5f3d45c3fff435a
[ "MIT" ]
2
2022-03-03T15:41:30.000Z
2022-03-07T14:20:26.000Z
from rest_framework.authentication import SessionAuthentication from rest_framework.permissions import IsAdminUser from rest_framework_simplejwt.views import TokenViewBase from .serializers import SessionTokenObtainSerializer class SessionTokenObtainPairView(TokenViewBase): """ Takes an authenticated request...
36.470588
77
0.817742
bfd3be362b6c824c577cc210732f35c096dc8dac
5,314
py
Python
all_features_benchmark.py
RDulepet19/AES
c7d1eef3537313d18ef36c0ba232f8270f60faf1
[ "MIT" ]
1
2018-02-07T15:01:19.000Z
2018-02-07T15:01:19.000Z
all_features_benchmark.py
RDulepet19/AES
c7d1eef3537313d18ef36c0ba232f8270f60faf1
[ "MIT" ]
null
null
null
all_features_benchmark.py
RDulepet19/AES
c7d1eef3537313d18ef36c0ba232f8270f60faf1
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 import re from sklearn.ensemble import RandomForestRegressor import pandas as pd import numpy as np from sklearn.model_selection import train_test_split import pickle # from imp import reload # import sys # reload(sys) # sys.setdefaultencoding('utf8') global_one_essay_set_train = None glob...
50.609524
419
0.740685
8607f00fb486ce9751025ee778aae3a589864138
570
py
Python
app/api/v1/utilities/auth.py
kathy254/Store-Manager-API
ef83a71113f28febe7d410f30a9a48e147645c46
[ "MIT" ]
null
null
null
app/api/v1/utilities/auth.py
kathy254/Store-Manager-API
ef83a71113f28febe7d410f30a9a48e147645c46
[ "MIT" ]
null
null
null
app/api/v1/utilities/auth.py
kathy254/Store-Manager-API
ef83a71113f28febe7d410f30a9a48e147645c46
[ "MIT" ]
null
null
null
import jwt from flask import request from functools import wraps from instance.config import secret_key def get_token(f): @wraps(f) def decorated(*arg, **kwargs): token = None if 'X-API-KEY' in request.headers: token = request.headers['X-API-KEY'] if not token: ...
27.142857
73
0.594737
c4145d2fdef983dfc50590276d7264afaef9f940
404
py
Python
aleph/tests/factories/models/collection.py
jalmquist/aleph
28a56bc7edd77dbd7910c94dac40916032edc177
[ "MIT" ]
7
2020-02-18T14:35:10.000Z
2020-03-09T22:53:10.000Z
aleph/tests/factories/models/collection.py
heartofstone/aleph
d66b6615d2bfa10c291c63754f53b468de8bebde
[ "MIT" ]
7
2017-08-16T12:49:23.000Z
2018-02-16T10:22:11.000Z
aleph/tests/factories/models/collection.py
heartofstone/aleph
d66b6615d2bfa10c291c63754f53b468de8bebde
[ "MIT" ]
6
2017-07-26T12:29:53.000Z
2017-08-18T09:35:50.000Z
import factory from aleph.core import db from aleph.model import Collection class CollectionFactory(factory.alchemy.SQLAlchemyModelFactory): class Meta: model = Collection sqlalchemy_session = db.session foreign_id = factory.Faker('uuid4') label = factory.Faker('company') countries ...
23.764706
64
0.710396
de70fb75b519752b971f2b1652d68d1bdb6bd6a6
1,271
py
Python
immudb/handler/zadd.py
codenotary/immu-py
a0607041247ad0aedb3791318fa2ce17d03f796b
[ "Apache-2.0" ]
3
2020-03-17T09:27:25.000Z
2020-05-29T20:31:38.000Z
immudb/handler/zadd.py
codenotary/immu-py
a0607041247ad0aedb3791318fa2ce17d03f796b
[ "Apache-2.0" ]
5
2020-05-12T07:35:21.000Z
2020-09-10T15:27:47.000Z
immudb/handler/zadd.py
codenotary/immu-py
a0607041247ad0aedb3791318fa2ce17d03f796b
[ "Apache-2.0" ]
3
2020-04-08T08:16:26.000Z
2020-09-08T07:46:02.000Z
# Copyright 2022 CodeNotary, Inc. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or...
34.351351
122
0.727773
92996aeed29c9884cfbc8b4293d83c0f9c329cd6
363
py
Python
dataclass.py
hotoku/exercises-in-style
c2c737d141241479931a6ae85089bf202afc64bf
[ "MIT" ]
null
null
null
dataclass.py
hotoku/exercises-in-style
c2c737d141241479931a6ae85089bf202afc64bf
[ "MIT" ]
null
null
null
dataclass.py
hotoku/exercises-in-style
c2c737d141241479931a6ae85089bf202afc64bf
[ "MIT" ]
null
null
null
from dataclasses import dataclass @dataclass class FizzBuzz: n: int def __str__(self): if self.n % 15 == 0: return "FizzBuzz" elif self.n % 3 == 0: return "Fizz" elif self.n % 5 == 0: return "Buzz" else: return str(self.n) for ...
17.285714
33
0.504132
8031b06baa36d2473213b19dcac5e76d7e7283c4
9,552
py
Python
composer/trainer/trainer_hparams.py
Averylamp/composer
1afc56e9c207734aee75ff8c5b046fb55d928fb5
[ "Apache-2.0" ]
2
2022-03-17T04:48:04.000Z
2022-03-20T09:06:19.000Z
composer/trainer/trainer_hparams.py
Averylamp/composer
1afc56e9c207734aee75ff8c5b046fb55d928fb5
[ "Apache-2.0" ]
null
null
null
composer/trainer/trainer_hparams.py
Averylamp/composer
1afc56e9c207734aee75ff8c5b046fb55d928fb5
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. """ Example usage and definition of hparams """ from __future__ import annotations import os from dataclasses import dataclass from typing import TYPE_CHECKING, List, Optional import yahp as hp import composer import composer.datasets as datasets from composer.algorit...
41.894737
130
0.696922
1172a55dd2c09451bcf0bb2ecb5c979a8794e682
6,378
py
Python
Milo Yip's ray-tracing bencmark/smallpt_python/smallpt.py
THISISAGOODNAME/miniRayTracing
48b8fc54df0f11d784bcd783885bc9b39d5ae7b1
[ "MIT" ]
2
2017-07-13T08:06:32.000Z
2018-11-22T05:04:44.000Z
Milo Yip's ray-tracing bencmark/smallpt_python/smallpt.py
THISISAGOODNAME/miniRayTracing
48b8fc54df0f11d784bcd783885bc9b39d5ae7b1
[ "MIT" ]
null
null
null
Milo Yip's ray-tracing bencmark/smallpt_python/smallpt.py
THISISAGOODNAME/miniRayTracing
48b8fc54df0f11d784bcd783885bc9b39d5ae7b1
[ "MIT" ]
null
null
null
import math import time import sys class RandomLCG: def __init__(self, seed): self.seed = seed def __call__(self) : self.seed = (214013 * self.seed + 2531011) % 0x100000000 return self.seed * (1.0 / 4294967296.0) class Vec: def __init__(self, x, y, z): self.x = x self.y = y self.z = z def __add__(se...
25.410359
99
0.544528
7761738a1da0bc0113005a44c7ad89060e1eaaed
8,212
py
Python
plotter/opt_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
plotter/opt_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
plotter/opt_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # https://matplotlib.org/3.1.1/gallery/images_contours_and_fields/multi_image.html#sphx-glr-gallery-images-contours-and-fields-multi-image-py # https://matplotlib.org/3.3.2/api/_as_gen/matplotlib.axes.Axes.imshow.html#matplotlib.axes.Axes.imshow # https://stackoverflow.com/questions/5263034/remov...
47.744186
141
0.61471
b8e3ee3f320078e0944e2cd41cbb180eac8d6b49
16,825
py
Python
11B-124/pipeline_scripts/casa_pipeline_lines.py
Astroua/LocalGroup-VLA
4920341c9e25343d724fb4a2e37cdcd234201047
[ "MIT" ]
1
2019-04-11T00:37:56.000Z
2019-04-11T00:37:56.000Z
11B-124/pipeline_scripts/casa_pipeline_lines.py
Astroua/LocalGroup-VLA
4920341c9e25343d724fb4a2e37cdcd234201047
[ "MIT" ]
null
null
null
11B-124/pipeline_scripts/casa_pipeline_lines.py
Astroua/LocalGroup-VLA
4920341c9e25343d724fb4a2e37cdcd234201047
[ "MIT" ]
null
null
null
import sys import os from glob import glob import shutil import numpy as np from shutil import copyfile from tasks import plotms, importasdm # This is my adaptation of the editIntents function in the # NRAO analysis_scripts for VLA intents instead of ALMA # https://github.com/e-koch/VLA_Lband/blob/master/CASA_functio...
34.127789
94
0.569866
f170a287bd0cad698f50c76096502453b3760b50
6,883
py
Python
indico/modules/events/clone.py
bkmgit/indico
d77ee121e35880a416b9b05e6098ea912d870b5c
[ "MIT" ]
1
2021-06-11T20:02:10.000Z
2021-06-11T20:02:10.000Z
indico/modules/events/clone.py
bkmgit/indico
d77ee121e35880a416b9b05e6098ea912d870b5c
[ "MIT" ]
null
null
null
indico/modules/events/clone.py
bkmgit/indico
d77ee121e35880a416b9b05e6098ea912d870b5c
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2022 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from indico.core import signals from indico.core.db import db from indico.core.db.sqlalchemy.principals im...
39.786127
120
0.687346
67a1477652e9846e6503371dd1973d6cf79cdccc
10,950
py
Python
mycobot/src/mycobot/mycobot3.py
grassjelly/mycobot
b6df141dd910de85c6588afbda456bc0f60636c7
[ "BSD-3-Clause" ]
9
2021-01-24T13:30:32.000Z
2021-05-29T01:09:38.000Z
mycobot/src/mycobot/mycobot3.py
grassjelly/mycobot
b6df141dd910de85c6588afbda456bc0f60636c7
[ "BSD-3-Clause" ]
null
null
null
mycobot/src/mycobot/mycobot3.py
grassjelly/mycobot
b6df141dd910de85c6588afbda456bc0f60636c7
[ "BSD-3-Clause" ]
null
null
null
import sys sys.path.append('.') import time, serial, struct class MyCobot(): '''MyCobot Python API Possessed function: power_on() : power_off() : get_angles() : get_angles_of_radian() : send_angle() : send_angles(...
27.512563
84
0.489863
1b4bc775b2b1b9241b1b73f8188150e9c787496b
3,846
py
Python
pycytominer/normalize.py
hillsbury/pycytominer
02ed6647a0913e9f0b28cbafa97766d55eeffd20
[ "BSD-3-Clause" ]
null
null
null
pycytominer/normalize.py
hillsbury/pycytominer
02ed6647a0913e9f0b28cbafa97766d55eeffd20
[ "BSD-3-Clause" ]
null
null
null
pycytominer/normalize.py
hillsbury/pycytominer
02ed6647a0913e9f0b28cbafa97766d55eeffd20
[ "BSD-3-Clause" ]
null
null
null
""" Normalize observation features based on specified normalization method """ import pandas as pd from sklearn.preprocessing import StandardScaler, RobustScaler from pycytominer.cyto_utils import ( output, infer_cp_features, load_profiles, ) from pycytominer.operations import Whiten, RobustMAD def norm...
34.339286
89
0.658346
c96a2e5e8e6a104e7893d4f63d3d658de101e346
35,800
py
Python
src/azure-firewall/azext_firewall/vendored_sdks/v2020_07_01/v2020_07_01/operations/_subnets_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/azure-firewall/azext_firewall/vendored_sdks/v2020_07_01/v2020_07_01/operations/_subnets_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/azure-firewall/azext_firewall/vendored_sdks/v2020_07_01/v2020_07_01/operations/_subnets_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
50.997151
255
0.66933
a73e607b5038ab37a293bdbff21d783ab8fde18b
22,975
py
Python
lux/executor/PandasExecutor.py
piyushg9794/lux
f5be470f5a4837db2746c950bebe2694665c25dc
[ "Apache-2.0" ]
null
null
null
lux/executor/PandasExecutor.py
piyushg9794/lux
f5be470f5a4837db2746c950bebe2694665c25dc
[ "Apache-2.0" ]
null
null
null
lux/executor/PandasExecutor.py
piyushg9794/lux
f5be470f5a4837db2746c950bebe2694665c25dc
[ "Apache-2.0" ]
null
null
null
# 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...
46.134538
204
0.574712
4df9842a3e40a7b2a143d57529408f9815ebd34a
1,132
py
Python
tests/basics/builtin_property.py
0x0ece/micropython
4ee07f4883136dfbd1795dea3b04c478072d5630
[ "MIT" ]
303
2015-07-11T17:12:55.000Z
2018-01-08T03:02:37.000Z
python/micropython/tests/basics/builtin_property.py
r-lyeh/script-it
cd7b259ccbd14d05c8d8fec1a33af9de5337e60c
[ "Unlicense" ]
13
2016-05-12T16:51:22.000Z
2018-01-10T22:33:25.000Z
python/micropython/tests/basics/builtin_property.py
r-lyeh/script-it
cd7b259ccbd14d05c8d8fec1a33af9de5337e60c
[ "Unlicense" ]
26
2018-01-18T09:15:33.000Z
2022-02-07T13:09:14.000Z
# test builtin property # create a property object explicitly property() property(1, 2, 3) # use its accessor methods p = property() p.getter(1) p.setter(2) p.deleter(3) # basic use as a decorator class A: def __init__(self, x): self._x = x @property def x(self): print("x get") r...
14.329114
37
0.553004
ff9d5bcb4bc6f302bcd5232a86402a0f72522120
14,239
py
Python
plaso/single_process/extraction_engine.py
jonathan-greig/plaso
b88a6e54c06a162295d09b016bddbfbfe7ca9070
[ "Apache-2.0" ]
6
2015-07-30T11:07:24.000Z
2021-07-23T07:12:30.000Z
plaso/single_process/extraction_engine.py
jonathan-greig/plaso
b88a6e54c06a162295d09b016bddbfbfe7ca9070
[ "Apache-2.0" ]
null
null
null
plaso/single_process/extraction_engine.py
jonathan-greig/plaso
b88a6e54c06a162295d09b016bddbfbfe7ca9070
[ "Apache-2.0" ]
1
2021-07-23T07:12:37.000Z
2021-07-23T07:12:37.000Z
# -*- coding: utf-8 -*- """The single process extraction engine.""" import collections import os import pdb import threading import time from dfvfs.lib import definitions as dfvfs_definitions from dfvfs.lib import errors as dfvfs_errors from dfvfs.resolver import resolver from plaso.containers import counts from pla...
35.508728
80
0.744645
1a7bb48a47086915542c0dbce264404071b339b5
19,539
py
Python
rtc_tools/video_analysis.py
bebo/webrtc
61ab9c5200ffb1281d038978465543cc52598e16
[ "DOC", "BSD-3-Clause" ]
null
null
null
rtc_tools/video_analysis.py
bebo/webrtc
61ab9c5200ffb1281d038978465543cc52598e16
[ "DOC", "BSD-3-Clause" ]
null
null
null
rtc_tools/video_analysis.py
bebo/webrtc
61ab9c5200ffb1281d038978465543cc52598e16
[ "DOC", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All c...
38.236791
80
0.692359
9184315bf23b8723f9a64149471231551a9b503d
922
py
Python
isi_sdk_8_2_2/test/test_hdfs_fsimage_job_job.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_2/test/test_hdfs_fsimage_job_job.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_2/test/test_hdfs_fsimage_job_job.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 9 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_2_2 from i...
22.487805
93
0.711497
a16f300ddc0c8b4b3a0cd958f036c294d5fe130e
3,366
py
Python
pay-api/src/pay_api/models/fee_schedule.py
saravankumarpa/sbc-pay
2362549e52c575ab4ea6c19de987f0ebc9d06571
[ "Apache-2.0" ]
null
null
null
pay-api/src/pay_api/models/fee_schedule.py
saravankumarpa/sbc-pay
2362549e52c575ab4ea6c19de987f0ebc9d06571
[ "Apache-2.0" ]
null
null
null
pay-api/src/pay_api/models/fee_schedule.py
saravankumarpa/sbc-pay
2362549e52c575ab4ea6c19de987f0ebc9d06571
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
41.555556
116
0.691919
b3d8640095343bdfd01fd50c769fcf3b9c43d86b
2,544
py
Python
packages/sdk/odahuflow/sdk/models/algorithm_source.py
odahu/odahuflow
58c3220a266a61bb893cf79c4b994569e3445097
[ "ECL-2.0", "Apache-2.0" ]
12
2020-10-13T15:39:52.000Z
2021-10-11T17:13:42.000Z
packages/sdk/odahuflow/sdk/models/algorithm_source.py
odahu/odahuflow
58c3220a266a61bb893cf79c4b994569e3445097
[ "ECL-2.0", "Apache-2.0" ]
475
2019-11-18T12:40:47.000Z
2022-03-29T21:17:38.000Z
packages/sdk/odahuflow/sdk/models/algorithm_source.py
odahu/odahuflow
58c3220a266a61bb893cf79c4b994569e3445097
[ "ECL-2.0", "Apache-2.0" ]
4
2020-02-25T11:26:10.000Z
2021-03-10T12:01:00.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from odahuflow.sdk.models.base_model_ import Model from odahuflow.sdk.models.object_storage import ObjectStorage # noqa: F401,E501 from odahuflow.sdk.models.vcs import...
27.354839
88
0.638758
1e002a1aa14324a06078eed6fee7d1563c725070
7,186
py
Python
oapi/views.py
vantagecrypto/OV_Data_Bridge
b09f58e9c4664fa9842eead95b3e54a8027870e2
[ "MIT" ]
null
null
null
oapi/views.py
vantagecrypto/OV_Data_Bridge
b09f58e9c4664fa9842eead95b3e54a8027870e2
[ "MIT" ]
null
null
null
oapi/views.py
vantagecrypto/OV_Data_Bridge
b09f58e9c4664fa9842eead95b3e54a8027870e2
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework import status from django.http import JsonResponse import json from sectors.common import error from sectors.common.bridge import common as bridge_common from db.models import ( TBLApiKey, TBLBridge, ) def get_user(request, unique_id): if TBLA...
33.115207
103
0.56624
0d8833f8ab2546ada196d308923ce6128c8b4e32
1,049
py
Python
general.py
indrajit15/WebCrawler_Python
e5836e8da05532f2b7d6f5f1e9e409fe154cd80b
[ "MIT" ]
null
null
null
general.py
indrajit15/WebCrawler_Python
e5836e8da05532f2b7d6f5f1e9e409fe154cd80b
[ "MIT" ]
null
null
null
general.py
indrajit15/WebCrawler_Python
e5836e8da05532f2b7d6f5f1e9e409fe154cd80b
[ "MIT" ]
null
null
null
import os def create_directory(directory): if( not os.path.exists(directory)): print("creating project "+ directory) os.makedirs(directory) #create queue and crawled files def create_data_files(project_name,base_url): queue=project_name+'/queue.txt' crawled=project_name+'/crawled.txt' if(not os.pa...
23.840909
46
0.700667
c35b3d1b3c5f9dad59deab779cde39baf905ba32
1,805
py
Python
Labs/ComplexitySparseMatrices/plots.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
10
2016-10-18T19:54:25.000Z
2021-10-09T20:12:38.000Z
Labs/ComplexitySparseMatrices/plots.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
null
null
null
Labs/ComplexitySparseMatrices/plots.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
2
2017-05-14T16:07:59.000Z
2020-06-20T09:05:06.000Z
import matplotlib matplotlib.rcParams = matplotlib.rc_params_from_file('../../matplotlibrc') import numpy as np from matplotlib import pyplot as plt from scipy import sparse def upper_bound(): x = np.linspace(25, 200) y1 = 2*x**3 y2 = (1.5)*x**3+75*x**2+250*x+30 plt.plot(x, y2, label="f(n)") plt.p...
28.203125
74
0.587812
b9ce72293f62d8662301660af2452243d587cad9
1,955
py
Python
src/08.py
peppermintpatty5/advent2021
e11528a26e2be37bbc0943b1b7962dc7006fab63
[ "MIT" ]
null
null
null
src/08.py
peppermintpatty5/advent2021
e11528a26e2be37bbc0943b1b7962dc7006fab63
[ "MIT" ]
null
null
null
src/08.py
peppermintpatty5/advent2021
e11528a26e2be37bbc0943b1b7962dc7006fab63
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys def part1(input_txt: str) -> int: left_sides = [] right_sides = [] for line in input_txt.splitlines(): a, b = line.split(" | ") left_sides.append(a.split()) right_sides.append(b.split()) return sum(sum(1 for x in item if len(x) in (2, 3, 4, 7...
26.066667
86
0.53913
6e5af481a2ef7be7a8b0fec552bb29a2b6979da4
4,163
py
Python
keystoneclient/adapter.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
keystoneclient/adapter.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
keystoneclient/adapter.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
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 # distributed under t...
35.887931
79
0.652174
61b49cf481c4992f4b2e8bd881a6b165508802e5
2,959
py
Python
fid_varying_renyigan.py
renyigan-lkgan/RenyiGAN
c4bbb86e6037e0b95ee4c00c18729a8a8a3d2946
[ "MIT" ]
null
null
null
fid_varying_renyigan.py
renyigan-lkgan/RenyiGAN
c4bbb86e6037e0b95ee4c00c18729a8a8a3d2946
[ "MIT" ]
1
2020-09-25T22:37:05.000Z
2020-09-25T22:37:05.000Z
fid_varying_renyigan.py
vincihb/RenyiGAN
c4bbb86e6037e0b95ee4c00c18729a8a8a3d2946
[ "MIT" ]
1
2020-10-07T19:14:21.000Z
2020-10-07T19:14:21.000Z
# Raw FID scores over epochs import tensorflow as tf import numpy as np import scipy as sp import multiprocessing import os class Process: def __init__(self): print("Evaluating images") def fid(self, info1, info2): (mu1, cov1) = info1 # p_x (mu2, cov2) = info2 # p_g covSqrt ...
38.934211
130
0.569111
124eee9c90a3aaedea34868b9f1219a0adb9bd5e
4,132
py
Python
app/auth/forms.py
NamelessAshone/trade_system
f4fbd14f84962a22aef41a719d3996d8cd691148
[ "MIT" ]
2
2018-09-07T02:39:37.000Z
2018-10-18T13:59:38.000Z
app/auth/forms.py
NamelessAshone/trade_system
f4fbd14f84962a22aef41a719d3996d8cd691148
[ "MIT" ]
null
null
null
app/auth/forms.py
NamelessAshone/trade_system
f4fbd14f84962a22aef41a719d3996d8cd691148
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField from wtforms.validators import Required, Length, Email, Regexp, EqualTo from wtforms import ValidationError from ..models import User class LoginForm(FlaskForm): email = StringField('Email', validators=[Requi...
44.430108
79
0.589061
c3086208c003d93c8ed11481f7f5708452f89d6f
68,582
py
Python
salt/cloud/clouds/azurearm.py
guoxiaod/salt
2cd6c03b40932be137e6e8a672967b59025a2d34
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/azurearm.py
guoxiaod/salt
2cd6c03b40932be137e6e8a672967b59025a2d34
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/azurearm.py
guoxiaod/salt
2cd6c03b40932be137e6e8a672967b59025a2d34
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Azure ARM Cloud Module ====================== .. versionadded:: 2016.11.0 .. versionchanged:: Fluorine The Azure ARM cloud module is used to control access to Microsoft Azure Resource Manager :depends: * `azure <https://pypi.python.org/pypi/azure>`_ >= 2.0.0rc6 * `azure-common <h...
32.503318
128
0.582485
23b3a28a0aeac86092ba9f4c83f6710b7085a977
5,716
py
Python
toxic.py
TXVIRUS/TX_SMS
6715eaeef7cb87e0399c6eff0cb0537a9cee528b
[ "MIT" ]
null
null
null
toxic.py
TXVIRUS/TX_SMS
6715eaeef7cb87e0399c6eff0cb0537a9cee528b
[ "MIT" ]
null
null
null
toxic.py
TXVIRUS/TX_SMS
6715eaeef7cb87e0399c6eff0cb0537a9cee528b
[ "MIT" ]
null
null
null
#Compiled By Mohammad Alamin #https://github.com/AK27HBD/ import marshal exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xee\x06...
1,429
5,643
0.737229
2204a9a7ef79e24dcad3f62f9ff36759dfefe6d9
3,280
py
Python
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/sms_provider_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/sms_provider_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/sms_provider_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: sms_provider_info short_description: Information module for Sms Provider description: - Get all Sms Provider. vers...
28.034188
114
0.639939
33134cd7c8754b1bc8b3552a9fb7d4905bb700db
21,736
py
Python
conans/test/integration/command/install/install_test.py
Wonders11/conan
28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8
[ "MIT" ]
1
2022-01-21T05:31:13.000Z
2022-01-21T05:31:13.000Z
conans/test/integration/command/install/install_test.py
Wonders11/conan
28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8
[ "MIT" ]
null
null
null
conans/test/integration/command/install/install_test.py
Wonders11/conan
28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8
[ "MIT" ]
null
null
null
import os import textwrap from collections import OrderedDict import pytest from conans.model.ref import ConanFileReference from conans.test.utils.tools import NO_SETTINGS_PACKAGE_ID from conans.test.utils.tools import TestClient, TestServer, GenConanfile from conans.util.files import mkdir, rmdir, save @pytest.fix...
45.377871
99
0.669534
4478053d9fa18eac052c9f007347a297829618bc
7,668
py
Python
src/ctap/transaction.py
Castellate/VirtualWebAuthn
df0f1ee30664b1ee5116fb4277d0bc663be1b914
[ "BSD-2-Clause" ]
3
2021-08-18T09:54:49.000Z
2022-03-22T20:55:43.000Z
src/ctap/transaction.py
Castellate/VirtualWebAuthn
df0f1ee30664b1ee5116fb4277d0bc663be1b914
[ "BSD-2-Clause" ]
1
2021-09-03T10:13:01.000Z
2021-09-03T10:13:01.000Z
src/ctap/transaction.py
Castellate/VirtualWebAuthn
df0f1ee30664b1ee5116fb4277d0bc663be1b914
[ "BSD-2-Clause" ]
2
2021-12-22T19:10:21.000Z
2022-03-14T11:30:31.000Z
"""Contains classes and Enums for managing transactions """ """ © Copyright 2020-2021 University of Surrey Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyrig...
36.688995
92
0.670188
f7f7778c7ed11670ebf154abc1c2b4ab8604eef1
140
py
Python
tests/test_curlies_in_attrs_2.py
gvanrossum/pyxl3
e6588c12caee49c43faf6aa260f04d7e971f6aa8
[ "Apache-2.0" ]
150
2016-01-26T13:25:58.000Z
2022-03-11T14:31:45.000Z
tests/test_curlies_in_attrs_2.py
gvanrossum/pyxl3
e6588c12caee49c43faf6aa260f04d7e971f6aa8
[ "Apache-2.0" ]
7
2016-02-07T20:08:55.000Z
2019-07-09T03:35:49.000Z
tests/test_curlies_in_attrs_2.py
gvanrossum/pyxl3
e6588c12caee49c43faf6aa260f04d7e971f6aa8
[ "Apache-2.0" ]
19
2016-01-27T15:48:48.000Z
2020-11-06T07:31:12.000Z
# coding: pyxl from pyxl import html def test(): assert str(<frag><img src="barbaz{'foo'}" /></frag>) == """<img src="barbazfoo" />"""
23.333333
89
0.585714
25cd5c9842ae4d2f8f97a27c37a694f38e414141
1,253
py
Python
corehq/apps/locations/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/locations/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/locations/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from tastypie import fields from corehq.apps.locations.models import Location, root_locations from corehq.apps.api.resources.v0_1 import CustomResourceMeta, LoginAndDomainAuthentication from corehq.apps.api.util import get_object_or_not_exist from corehq.apps.api.resources import JsonResource class LocationResource(Js...
39.15625
91
0.72067
e50e631b9edefe95acc719ff360ba8bed4630a17
55,155
py
Python
nova/db/sqlalchemy/models.py
nelsnelson/nova
826fe1cc6af2df291d5aaafdc5d498d626475d19
[ "Apache-2.0" ]
null
null
null
nova/db/sqlalchemy/models.py
nelsnelson/nova
826fe1cc6af2df291d5aaafdc5d498d626475d19
[ "Apache-2.0" ]
null
null
null
nova/db/sqlalchemy/models.py
nelsnelson/nova
826fe1cc6af2df291d5aaafdc5d498d626475d19
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (...
38.24896
79
0.655679
c01c1c1eab89496438e9652655814aee4d400256
251
py
Python
orttraining/orttraining/python/training/optim/__init__.py
sstamenova/onnxruntime
beddbdec5a100f1b94ae68d0c56d6c229fabb33b
[ "MIT" ]
6,036
2019-05-07T06:03:57.000Z
2022-03-31T17:59:54.000Z
orttraining/orttraining/python/training/optim/__init__.py
sstamenova/onnxruntime
beddbdec5a100f1b94ae68d0c56d6c229fabb33b
[ "MIT" ]
5,730
2019-05-06T23:04:55.000Z
2022-03-31T23:55:56.000Z
orttraining/orttraining/python/training/optim/__init__.py
sstamenova/onnxruntime
beddbdec5a100f1b94ae68d0c56d6c229fabb33b
[ "MIT" ]
1,566
2019-05-07T01:30:07.000Z
2022-03-31T17:06:50.000Z
from .config import _OptimizerConfig, AdamConfig, LambConfig, SGDConfig from .lr_scheduler import _LRScheduler, ConstantWarmupLRScheduler, CosineWarmupLRScheduler,\ LinearWarmupLRScheduler, PolyWarmupLRScheduler from .fused_adam import FusedAdam
41.833333
92
0.860558
e4ce35e1c8ff96c44eaea5f172a25f83d3c6d1b7
369
py
Python
mrp_system/migrations/0016_auto_20181206_1258.py
mgeorge8/django_time
f75a442941b0ebbb6cc46a6d18e42b91695b7e57
[ "MIT" ]
1
2018-11-09T02:09:14.000Z
2018-11-09T02:09:14.000Z
mrp_system/migrations/0016_auto_20181206_1258.py
mgeorge8/django_time
f75a442941b0ebbb6cc46a6d18e42b91695b7e57
[ "MIT" ]
null
null
null
mrp_system/migrations/0016_auto_20181206_1258.py
mgeorge8/django_time
f75a442941b0ebbb6cc46a6d18e42b91695b7e57
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-12-06 19:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mrp_system', '0015_auto_20181206_1257'), ] operations = [ migrations.RenameField( model_name='part', old_name='location2', ...
19.421053
50
0.590786
de78809212ca26aee01233497bd3a0d5dd38200a
5,020
py
Python
vq_wordseg.py
kamperh/vqwordseg
fc92e4125ebaad6d7d8c376b7e0c43e6b4dce15e
[ "MIT" ]
10
2022-02-25T15:14:09.000Z
2022-03-11T11:30:04.000Z
vq_wordseg.py
kamperh/vqwordseg
fc92e4125ebaad6d7d8c376b7e0c43e6b4dce15e
[ "MIT" ]
null
null
null
vq_wordseg.py
kamperh/vqwordseg
fc92e4125ebaad6d7d8c376b7e0c43e6b4dce15e
[ "MIT" ]
2
2022-03-09T08:39:44.000Z
2022-03-25T06:21:32.000Z
#!/usr/bin/env python """ Perform word segmentation on VQ representations. Author: Herman Kamper Contact: kamperh@gmail.com Date: 2021 """ from datetime import datetime from pathlib import Path from tqdm import tqdm import argparse import sys from vqwordseg import algorithms import eval_segmentation #------------...
32.387097
79
0.54741
0d01f8a63fa22896bf11249901ceb7ee7fc88c23
3,924
py
Python
test/utils/test_core.py
dataframing/snorkel
be6cec76f6758ed6f8d0ca5da7342af28ad5486c
[ "Apache-2.0" ]
1
2019-12-25T01:13:06.000Z
2019-12-25T01:13:06.000Z
test/utils/test_core.py
dataframing/snorkel
be6cec76f6758ed6f8d0ca5da7342af28ad5486c
[ "Apache-2.0" ]
null
null
null
test/utils/test_core.py
dataframing/snorkel
be6cec76f6758ed6f8d0ca5da7342af28ad5486c
[ "Apache-2.0" ]
null
null
null
import unittest import numpy as np from snorkel.utils import ( filter_labels, preds_to_probs, probs_to_preds, to_int_label_array, ) PROBS = np.array([[0.1, 0.9], [0.7, 0.3]]) PREDS = np.array([1, 0]) PREDS_ROUND = np.array([[0, 1], [1, 0]]) class UtilsTest(unittest.TestCase): def test_to_int_la...
36.333333
90
0.596585
02b6125ffd5d1bd41c0bc5efb920129deab4f77f
1,107
py
Python
wagtail/tests/routablepage/models.py
hanpama/wagtail
e0e3cdc824b1acd9f9daa6d80b5455c969b385dd
[ "BSD-3-Clause" ]
null
null
null
wagtail/tests/routablepage/models.py
hanpama/wagtail
e0e3cdc824b1acd9f9daa6d80b5455c969b385dd
[ "BSD-3-Clause" ]
null
null
null
wagtail/tests/routablepage/models.py
hanpama/wagtail
e0e3cdc824b1acd9f9daa6d80b5455c969b385dd
[ "BSD-3-Clause" ]
1
2019-03-05T15:37:22.000Z
2019-03-05T15:37:22.000Z
from django.http import HttpResponse from wagtail.contrib.wagtailroutablepage.models import RoutablePage, route def routable_page_external_view(request, arg="ARG NOT SET"): return HttpResponse("EXTERNAL VIEW: " + arg) class RoutablePageTest(RoutablePage): @route(r'^$') def main(self, request): ...
33.545455
76
0.682023
9f2406f2ca556ff28b4d535eb6815a242f380814
1,785
py
Python
test/testContainers/test_runner/proc.py
guijan/appscope
8b507606914f486b6858b5115c44faf7d342666a
[ "Apache-2.0" ]
118
2021-01-21T16:36:13.000Z
2022-03-18T09:05:18.000Z
test/testContainers/test_runner/proc.py
guijan/appscope
8b507606914f486b6858b5115c44faf7d342666a
[ "Apache-2.0" ]
684
2021-01-21T06:51:06.000Z
2022-03-31T14:34:42.000Z
test/testContainers/test_runner/proc.py
guijan/appscope
8b507606914f486b6858b5115c44faf7d342666a
[ "Apache-2.0" ]
26
2021-01-26T22:53:45.000Z
2022-02-11T09:19:31.000Z
import logging import os import subprocess import time from common import AppController class SubprocessAppController(AppController): def __init__(self, start_command, name, scope_path, logs_path, start_wait=5, stop_wait=11): super().__init__(name) self.logs_path = logs_path self.scope_p...
30.775862
125
0.6493
f11464b7960b5195f15a43685050a4eb1b33af41
853
py
Python
10/solve.py
jkowalleck/AoC2020
861b5abbd55b58460cf1036ab5ed0b9ddaf7d770
[ "MIT" ]
null
null
null
10/solve.py
jkowalleck/AoC2020
861b5abbd55b58460cf1036ab5ed0b9ddaf7d770
[ "MIT" ]
null
null
null
10/solve.py
jkowalleck/AoC2020
861b5abbd55b58460cf1036ab5ed0b9ddaf7d770
[ "MIT" ]
null
null
null
from collections import Counter from os import path from typing import Generator, List INPUT_FILE = path.join(path.dirname(__file__), 'input') def get_input() -> List[str]: with open(INPUT_FILE) as fh: return fh.read().splitlines() def diffs(adapters: List[int]) -> Generator[int, int, None]: yield ...
24.371429
78
0.664713
0998cf5d6ed8fe8ae28cc2ed3854e21037b2efd1
15,291
py
Python
pqviz/create_dataframes.py
mitre/PQViz
229e662c408e0532df44585d134b8e79eb6c4cf8
[ "Apache-2.0" ]
null
null
null
pqviz/create_dataframes.py
mitre/PQViz
229e662c408e0532df44585d134b8e79eb6c4cf8
[ "Apache-2.0" ]
null
null
null
pqviz/create_dataframes.py
mitre/PQViz
229e662c408e0532df44585d134b8e79eb6c4cf8
[ "Apache-2.0" ]
1
2022-01-18T21:00:39.000Z
2022-01-18T21:00:39.000Z
from pathlib import Path from ipywidgets import interact, interactive, fixed, interact_manual import ipywidgets as widgets import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns import us def create_prevalence_df(file_path, population_group): """ Creates a data frame tha...
32.259494
90
0.444444
48546690bff0132eb5856b8f6eb44949c984db9f
3,077
py
Python
neural_rock/preprocess.py
LukasMosser/neural_rock_typing
5bd0f4a621939032b442826d6ed52ed19db9b5a0
[ "Apache-2.0" ]
14
2021-05-16T23:21:16.000Z
2021-11-25T12:49:56.000Z
neural_rock/preprocess.py
LukasMosser/neural_rock_typing
5bd0f4a621939032b442826d6ed52ed19db9b5a0
[ "Apache-2.0" ]
12
2021-05-18T20:57:12.000Z
2021-12-26T18:10:20.000Z
neural_rock/preprocess.py
LukasMosser/neural_rock_typing
5bd0f4a621939032b442826d6ed52ed19db9b5a0
[ "Apache-2.0" ]
2
2021-05-17T09:20:56.000Z
2021-10-03T09:06:51.000Z
import pandas as pd import os from pathlib import Path from typing import List def get_leg194_data(df: pd.DataFrame) -> pd.DataFrame: """ Pandas pipe function to reduce only to Leg194 samples """ df = df.loc[df['Location'] == 'Leg194'] df = df.loc[df['Sample'].apply(lambda x: str(x).isdigit())] ...
34.965909
120
0.662008
b8df2c01d8669aa4704bb98b728ecbf74b809add
404
py
Python
app/query/urls.py
scanner-research/esper-tv
179ef57d536ebd52f93697aab09bf5abec19ce93
[ "Apache-2.0" ]
5
2019-04-17T01:01:46.000Z
2021-07-11T01:32:50.000Z
app/query/urls.py
DanFu09/esper
ccc5547de3637728b8aaab059b6781baebc269ec
[ "Apache-2.0" ]
4
2019-11-12T08:35:03.000Z
2021-06-10T20:37:04.000Z
app/query/urls.py
DanFu09/esper
ccc5547de3637728b8aaab059b6781baebc269ec
[ "Apache-2.0" ]
1
2020-09-01T01:15:44.000Z
2020-09-01T01:15:44.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r'^api/search', views.search, name='search'), url(r'^api/schema', views.schema, name='schema'), url(r'^api/subtitles', views.subtitles, name='subtitles'), url(r'^api/labeled', views.labeled, name='labeled'), url(r'^api/newthin...
33.666667
62
0.660891
66ff3b21f3bada9682ef670b8f80c6f550970fe2
26,156
py
Python
Lib/test/test_with.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
null
null
null
Lib/test/test_with.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
null
null
null
Lib/test/test_with.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/env python """Unit tests for the with statement specified in PEP 343.""" __author__ = "Mike Bland" __email__ = "mbland at acm dot org" import sys import unittest from collections import deque from contextlib import GeneratorContextManager, contextmanager from test.support import run_unittest class Mock...
35.108725
111
0.634654
49fef3ca3a8f71bcfc39eb745e50315bc15dff81
11,149
py
Python
chat/consumers.py
SelinJodhani/Open-Chat
ee9513d9efa39a2048525f76c605ddb8668b1580
[ "MIT" ]
null
null
null
chat/consumers.py
SelinJodhani/Open-Chat
ee9513d9efa39a2048525f76c605ddb8668b1580
[ "MIT" ]
null
null
null
chat/consumers.py
SelinJodhani/Open-Chat
ee9513d9efa39a2048525f76c605ddb8668b1580
[ "MIT" ]
null
null
null
from channels.generic.websocket import AsyncJsonWebsocketConsumer from channels.db import database_sync_to_async from django.core.serializers import serialize from django.utils import timezone from django.core.paginator import Paginator import json import asyncio from chat.models import RoomChatMessage, PrivateChatRo...
30.545205
107
0.729482
45c577c80f77e848eb30eed18a7ed4b3baf008e2
7,181
py
Python
programming_assignments/3_Neural-Networks/nn.py
biqar/Fall-2020-ITCS-8156-MachineLearning
ce14609327e5fa13f7af7b904a69da3aa3606f37
[ "MIT" ]
null
null
null
programming_assignments/3_Neural-Networks/nn.py
biqar/Fall-2020-ITCS-8156-MachineLearning
ce14609327e5fa13f7af7b904a69da3aa3606f37
[ "MIT" ]
null
null
null
programming_assignments/3_Neural-Networks/nn.py
biqar/Fall-2020-ITCS-8156-MachineLearning
ce14609327e5fa13f7af7b904a69da3aa3606f37
[ "MIT" ]
null
null
null
""" Neural Network referenced NN code by Chuck Anderson in R and C++ by Jake Lee (lemin) example usage: X = numpy.array([0,0,1,0,0,1,1,1]).reshape(4,2) T = numpy.array([0,1,1,0,1,0,0,1]).reshape(4,2) nn = nnet.NeuralNet([2,3,2]) nn.train(X...
29.920833
107
0.493246
a91c08d178195ea7cf3ccb8406aa95166a8124f0
4,868
py
Python
docs/conf.py
renan-eccel/sillysort
98531bb011f220d0877ba2abfd202d52026a2695
[ "MIT" ]
null
null
null
docs/conf.py
renan-eccel/sillysort
98531bb011f220d0877ba2abfd202d52026a2695
[ "MIT" ]
310
2018-05-14T01:32:25.000Z
2022-03-28T06:34:20.000Z
docs/conf.py
renan-eccel/sillysort
98531bb011f220d0877ba2abfd202d52026a2695
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # sillysort documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
29.682927
77
0.685703
bb87615f8d4d4dc3de0700618449530b827e68ee
1,036
py
Python
servers/pso/pyEUROPA/pyEUROPA/interface/enviroment.py
arpitgogia/mars_city
30cacd80487a8c2354bbc15b4fad211ed1cb4f9d
[ "BSD-2-Clause-FreeBSD" ]
25
2016-07-20T04:49:14.000Z
2021-08-25T09:05:04.000Z
servers/pso/pyEUROPA/pyEUROPA/interface/enviroment.py
arpitgogia/mars_city
30cacd80487a8c2354bbc15b4fad211ed1cb4f9d
[ "BSD-2-Clause-FreeBSD" ]
16
2016-12-27T08:30:27.000Z
2018-06-18T08:51:44.000Z
servers/pso/pyEUROPA/pyEUROPA/interface/enviroment.py
arpitgogia/mars_city
30cacd80487a8c2354bbc15b4fad211ed1cb4f9d
[ "BSD-2-Clause-FreeBSD" ]
49
2016-07-20T13:08:27.000Z
2020-06-02T18:26:12.000Z
from pyEUROPA.engine import makePSEngine, stopPSEngine class Enviroment(object): """Planning environment""" _objects = [] _locations = {} def set_rover(self): pass def set_rover_goal(self): pass def add_location(self, name, position): """Locations are places of inter...
23.545455
73
0.627413
24806362bf270f58126adf6bbe7fcc2cc58189e6
700
py
Python
setup.py
jinhopark8345/ICC
be0ee8fb36399b156427749c867d64524dff786e
[ "MIT" ]
null
null
null
setup.py
jinhopark8345/ICC
be0ee8fb36399b156427749c867d64524dff786e
[ "MIT" ]
7
2020-09-28T07:17:58.000Z
2020-11-25T08:00:08.000Z
setup.py
jinhopark8345/icc
be0ee8fb36399b156427749c867d64524dff786e
[ "MIT" ]
null
null
null
import os import sys import inspect import platform import threading # ROOT_DIR = None # def setup(): # main_id = None # for t in threading.enumerate(): # if t.name == 'MainThread': # main_id = t.ident # break # if not main_id: # raise RuntimeError("Main thread exi...
24.137931
67
0.638571
d0b62eb976e9048d459353edbc3c2aaaf50a47b0
1,579
py
Python
tutorials/slim/prune/object_detection/yolov3_prune_train.py
yaoshanliang/PaddleX
fe40b6d10db0e4d46f3a73cc5e83c3236d6a5842
[ "Apache-2.0" ]
3,655
2020-03-28T09:19:50.000Z
2022-03-31T13:28:39.000Z
tutorials/slim/prune/object_detection/yolov3_prune_train.py
yaoshanliang/PaddleX
fe40b6d10db0e4d46f3a73cc5e83c3236d6a5842
[ "Apache-2.0" ]
829
2020-03-28T04:03:18.000Z
2022-03-31T14:34:30.000Z
tutorials/slim/prune/object_detection/yolov3_prune_train.py
yaoshanliang/PaddleX
fe40b6d10db0e4d46f3a73cc5e83c3236d6a5842
[ "Apache-2.0" ]
738
2020-03-28T03:56:46.000Z
2022-03-31T13:11:03.000Z
import os os.environ['CUDA_VISIBLE_DEVICES'] = '0' from paddlex.det import transforms import paddlex as pdx insect_dataset = 'https://bj.bcebos.com/paddlex/datasets/insect_det.tar.gz' pdx.utils.download_and_decompress(insect_dataset, path='./') train_transforms = transforms.Compose([ transforms.MixupImage(mixup_...
28.709091
75
0.742242
00c0f494791c7f6e7914eb00575dfa92332d99d1
1,569
py
Python
package/spack-perl-io-html/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-perl-io-html/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-perl-io-html/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
44.828571
85
0.67559
254e8fdc4209350e303b62aab677e5e6f7435c85
738
py
Python
get_align_face.py
WilsonWeng-hub/Python-Tensorflow-Face-v2.0
10ab4f031b9061bcd124f75decb31da35eb6c6c1
[ "Apache-2.0" ]
117
2018-01-24T09:19:51.000Z
2022-03-27T12:43:48.000Z
get_align_face.py
WilsonWeng-hub/Python-Tensorflow-Face-v2.0
10ab4f031b9061bcd124f75decb31da35eb6c6c1
[ "Apache-2.0" ]
5
2018-02-24T07:28:54.000Z
2020-09-15T16:20:41.000Z
get_align_face.py
WilsonWeng-hub/Python-Tensorflow-Face-v2.0
10ab4f031b9061bcd124f75decb31da35eb6c6c1
[ "Apache-2.0" ]
48
2018-01-28T08:41:31.000Z
2021-05-11T02:07:25.000Z
import multiprocessing import os from face_lib import my_api input_dir = './out' # 输入的人脸图片数据集 output_dir = './train_faces' # 输出的图片总目录 # 如果不存在目录 就创造目录 if not os.path.exists(output_dir): os.makedirs(output_dir) if __name__ == '__main__': get_face = my_api.GetAlignedFace(input_dir, output_dir) # 开启多进程 ...
21.085714
84
0.700542
2e704d8c400ec9617225b82a4aacc35eed93c32b
6,662
py
Python
UMLRT2Kiltera_MM/MT_pre__TransitionType.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/MT_pre__TransitionType.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UMLRT2Kiltera_MM/MT_pre__TransitionType.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
""" __MT_pre__TransitionType.py_____________________________________________________ Automatically generated AToM3 syntactic object (DO NOT MODIFY DIRECTLY) Author: gehan Modified: Sun Feb 15 10:22:14 2015 ________________________________________________________________________________ """ from ASGNode import * from ...
52.456693
630
0.602222
68fa096354b62e9c1be14b86dccb08c25edfb8ab
4,562
py
Python
models/discriminators.py
rystylee/pytorch-SNGAN-projection
825f70180d8c3606dec75098d09216b41ea98fe4
[ "MIT" ]
null
null
null
models/discriminators.py
rystylee/pytorch-SNGAN-projection
825f70180d8c3606dec75098d09216b41ea98fe4
[ "MIT" ]
6
2019-11-19T10:12:34.000Z
2022-03-12T00:05:37.000Z
models/discriminators.py
rystylee/pytorch-SNGAN-projection
825f70180d8c3606dec75098d09216b41ea98fe4
[ "MIT" ]
1
2019-11-19T10:14:33.000Z
2019-11-19T10:14:33.000Z
import math import torch import torch.nn as nn import torch.nn.functional as F def downsample(x): return F.avg_pool2d(x, 2) class ResBlock(nn.Module): def __init__(self, in_ch, out_ch, hidden_ch=None, ksize=3, pad=1, activation=F.relu, downsampling=False): super(ResBlock, self).__i...
34.044776
115
0.6153
7ee0bf8792757869d7ce5035bf3c2d01b9544660
892
py
Python
qualifier/utils/fileio.py
aparkon/week_2_challange
2f2cacf06110aad1f0f0c0b83cdc1790cf162614
[ "Unlicense" ]
null
null
null
qualifier/utils/fileio.py
aparkon/week_2_challange
2f2cacf06110aad1f0f0c0b83cdc1790cf162614
[ "Unlicense" ]
null
null
null
qualifier/utils/fileio.py
aparkon/week_2_challange
2f2cacf06110aad1f0f0c0b83cdc1790cf162614
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """Helper functions to load and save CSV data. This contains a helper function for loading and saving CSV files. """ import csv def load_csv(csvpath): """Reads the CSV file from path provided. Args: csvpath (Path): The csv file path. Returns: A list of lists tha...
22.871795
73
0.605381
b4e3768586ab3e76e46cc05549b71eaf87d60c64
55,549
py
Python
project_future.py
owenv/swift-source-compat-suite
b8dd2ff71bdc0b9a70dc0db9cd1b8fbf16ba9e1f
[ "Apache-2.0" ]
null
null
null
project_future.py
owenv/swift-source-compat-suite
b8dd2ff71bdc0b9a70dc0db9cd1b8fbf16ba9e1f
[ "Apache-2.0" ]
null
null
null
project_future.py
owenv/swift-source-compat-suite
b8dd2ff71bdc0b9a70dc0db9cd1b8fbf16ba9e1f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # ===--- project.py -------------------------------------------------------=== # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See ht...
40.458121
110
0.532449
eb3a533ac99112849b4b8385b6346b1f2dc1f97e
1,487
py
Python
backmap/backmapping.py
oliviadunne/backmap
e2f6ad0d644075cf24dac2b21c49279989cc194f
[ "MIT" ]
null
null
null
backmap/backmapping.py
oliviadunne/backmap
e2f6ad0d644075cf24dac2b21c49279989cc194f
[ "MIT" ]
null
null
null
backmap/backmapping.py
oliviadunne/backmap
e2f6ad0d644075cf24dac2b21c49279989cc194f
[ "MIT" ]
null
null
null
""" backmapping.py Backmapping for molecules Handles the primary functions ## TODO ---- -> Generalize to arbitrary number of different types and number of molecules """ import mdtraj as md import numpy as np from .utils import parse_AA_pdb, parse_CG_pdb from .COM_backmap import COM_backmap __all__ = ["Backmapping"] ...
31.638298
100
0.694015
4aaa272ee56bc88acb88a06c9da41b53f6c7b241
6,948
py
Python
clients/client/python/ory_client/model/ui_node_anchor_attributes.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/ui_node_anchor_attributes.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/ui_node_anchor_attributes.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.9 Contact: support@ory.sh Generated by: http...
38.6
194
0.585204
0f9ad066ab94e54a9887bd7953a206d80eb27a7e
13,525
py
Python
docs/conf.py
jvermeire/incubator-airflow
07e77e965d8396f5f1dedf786ec9d398cc668a49
[ "Apache-2.0" ]
1
2020-06-16T17:26:28.000Z
2020-06-16T17:26:28.000Z
docs/conf.py
sonal-raj/airflow
c63ddccf8de2b702d796dc5ccaf398c8062295f6
[ "Apache-2.0" ]
null
null
null
docs/conf.py
sonal-raj/airflow
c63ddccf8de2b702d796dc5ccaf398c8062295f6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # flake8: noqa # Disable Flake8 because of all the sphinx imports # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF lice...
30.599548
108
0.699963
c10a87b161c6a0af9997d7c6ff9382a2b9b90439
176
py
Python
Python/file.py
streamer-AP/HRT19D-detection
8d7f2447d1ce9e8dc4f2b66162e2972f42c0298f
[ "Apache-2.0" ]
24
2018-12-09T07:38:59.000Z
2021-03-08T10:47:12.000Z
Python/file.py
streamer-AP/HRT19D-detection
8d7f2447d1ce9e8dc4f2b66162e2972f42c0298f
[ "Apache-2.0" ]
null
null
null
Python/file.py
streamer-AP/HRT19D-detection
8d7f2447d1ce9e8dc4f2b66162e2972f42c0298f
[ "Apache-2.0" ]
4
2019-01-07T06:03:10.000Z
2019-01-17T02:53:02.000Z
with open("testfile.txt","w") as file_object: file_object.writelines(["hello\r","HRTER"]) with open("testfile.txt","r") as file_object: print(file_object.readlines())
29.333333
47
0.698864
291f8a78955e9e4563e91844eadcad4524ad3ea6
87
py
Python
ozone-framework-python-server/legacy/apps.py
aamduka/ozone
3fdbf232f5ea70661204a632e45310ca9d374973
[ "Apache-2.0" ]
6
2020-02-21T22:06:31.000Z
2020-12-08T10:48:07.000Z
ozone-framework-python-server/legacy/apps.py
aamduka/ozone
3fdbf232f5ea70661204a632e45310ca9d374973
[ "Apache-2.0" ]
12
2019-12-26T17:38:40.000Z
2022-02-10T14:15:55.000Z
legacy/apps.py
tiagocordeiro/estudio-sie
96ba0024145d1f9e0ec7a3cbdd11e555674b23a3
[ "MIT" ]
4
2019-09-20T01:20:33.000Z
2020-09-05T01:15:51.000Z
from django.apps import AppConfig class LegacyConfig(AppConfig): name = 'legacy'
14.5
33
0.747126
d4d79f5d9bb219df38fd95f6884eed2f4452b873
2,880
py
Python
casa.CONFIG/frenck-config/custom_components/hacs/api/hacs_repositories.py
janiversen/ha_config
98d7d4eed3a136220133724a044b9358896efbb7
[ "Apache-2.0" ]
1,383
2018-06-23T20:16:57.000Z
2022-03-30T09:10:06.000Z
config/custom_components/hacs/api/hacs_repositories.py
jclark2019/home-assistant-config
a1354a8889e12b961fd16f4800c452b4fd0124f0
[ "MIT" ]
60
2018-12-14T10:11:34.000Z
2021-11-06T18:43:19.000Z
config/custom_components/hacs/api/hacs_repositories.py
jclark2019/home-assistant-config
a1354a8889e12b961fd16f4800c452b4fd0124f0
[ "MIT" ]
270
2018-12-17T05:54:10.000Z
2022-03-23T20:28:54.000Z
"""API Handler for hacs_repositories""" from homeassistant.components import websocket_api import voluptuous as vol from custom_components.hacs.share import get_hacs @websocket_api.async_response @websocket_api.websocket_command({vol.Required("type"): "hacs/repositories"}) async def hacs_repositories(_hass, connecti...
43.636364
77
0.588194
18f5c8b77e97b05821787e44f30da7ac7fe6a142
3,013
py
Python
test.py
G00364756/PythonExamples
3db5ba6fd333552cc924bfc779381354b6239ae3
[ "Apache-2.0" ]
null
null
null
test.py
G00364756/PythonExamples
3db5ba6fd333552cc924bfc779381354b6239ae3
[ "Apache-2.0" ]
null
null
null
test.py
G00364756/PythonExamples
3db5ba6fd333552cc924bfc779381354b6239ae3
[ "Apache-2.0" ]
null
null
null
#def ask_ok(prompt, retries=4, reminder='Please try again!'): #while True: #ok = input(prompt) #if ok in ('y', 'ye', 'yes'): #return True #if ok in ('n', 'no', 'nop', 'nope'): #return False #retries = retries - 1 #if retries < 0: #...
25.533898
103
0.404248
b32fac236c21e688ffe22a489ee1b1ec7a5f0555
327
py
Python
jobs/models.py
pauljeffrey/portfolio
ff91ab2a6e30886f0a686aae56fe2df45e497fbd
[ "MIT" ]
3
2019-06-23T11:35:15.000Z
2022-03-28T15:39:23.000Z
jobs/models.py
pauljeffrey/portfolio
ff91ab2a6e30886f0a686aae56fe2df45e497fbd
[ "MIT" ]
2
2019-01-30T21:00:41.000Z
2020-03-06T00:15:20.000Z
jobs/models.py
pauljeffrey/portfolio
ff91ab2a6e30886f0a686aae56fe2df45e497fbd
[ "MIT" ]
3
2019-03-19T06:18:43.000Z
2021-06-23T16:30:51.000Z
from django.db import models from django.urls import reverse # Create your models here. class Jobs(models.Model): image = models.ImageField(upload_to="images/") upload_date = models.DateTimeField(auto_now_add=True) def get_absolute_url(self): return reverse('home', args=[str(self.id)])...
19.235294
57
0.691131
ed1f71449a9d2cac3c00fc2cde725e0afa739990
2,816
py
Python
aplpy/tests/test_save.py
GiantMolecularCloud/aplpy
352fdd7fc776ebcb9058451e0b3aced777083257
[ "MIT" ]
null
null
null
aplpy/tests/test_save.py
GiantMolecularCloud/aplpy
352fdd7fc776ebcb9058451e0b3aced777083257
[ "MIT" ]
null
null
null
aplpy/tests/test_save.py
GiantMolecularCloud/aplpy
352fdd7fc776ebcb9058451e0b3aced777083257
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function, division import os import sys from io import BytesIO as StringIO import pytest import numpy as np from .. import FITSFigure FORMATS = [None, 'png', 'pdf', 'eps', 'ps', 'svg'] ARRAY = np.arange(256).reshape((16, 16)) def is_format(filename, format): if i...
25.6
103
0.608665
ccfac7062c4a14e4920d04d1f4209ce439e4871b
210
py
Python
h/api/__init__.py
gnott/h
77a0452b8196f7efb97d4a400ce7583062d620e6
[ "MIT" ]
null
null
null
h/api/__init__.py
gnott/h
77a0452b8196f7efb97d4a400ce7583062d620e6
[ "MIT" ]
null
null
null
h/api/__init__.py
gnott/h
77a0452b8196f7efb97d4a400ce7583062d620e6
[ "MIT" ]
null
null
null
def includeme(config): """Include the annotator-store API.""" # Order matters here, in case the token and store routes share a prefix config.include('h.api.token') config.include('h.api.store')
35
75
0.690476
9e55c5f210eef6f11748c19e6aa470195a797ea7
624
py
Python
manage.py
idesu/yet-another-blog-engine
99cd2d775577126b08174d9ee3e2e38a22b8d7af
[ "BSD-3-Clause" ]
null
null
null
manage.py
idesu/yet-another-blog-engine
99cd2d775577126b08174d9ee3e2e38a22b8d7af
[ "BSD-3-Clause" ]
8
2021-04-08T21:26:26.000Z
2022-03-12T00:18:06.000Z
manage.py
idesu/yet-another-blog-engine
99cd2d775577126b08174d9ee3e2e38a22b8d7af
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'yabe.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportErr...
28.363636
73
0.68109