hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
4732c31faffaeaaf98d162aa9e75174544d8b38f
11,246
py
Python
env/Lib/site-packages/plotly/graph_objs/densitymapbox/hoverlabel/_font.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
packages/python/plotly/plotly/graph_objs/densitymapbox/hoverlabel/_font.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
14
2021-10-20T23:33:47.000Z
2021-12-21T04:50:37.000Z
packages/python/plotly/plotly/graph_objs/densitymapbox/hoverlabel/_font.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
1
2021-11-29T22:55:05.000Z
2021-11-29T22:55:05.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "densitymapbox.hoverlabel" _path_str = "densitymapbox.hoverlabel.font" _valid_props = {"color",...
33.975831
82
0.558688
b973238fddcfe16e99e445faccb1021991137157
2,359
py
Python
UnitTests/test_NodalLoad_test.py
Dlubal-Software/RFEM_Python_Client
9e29c598dadf380d49677c463931f0be659ccc40
[ "MIT" ]
16
2021-10-13T21:00:11.000Z
2022-03-21T11:12:09.000Z
UnitTests/test_NodalLoad_test.py
Dlubal-Software/RFEM_Python_Client
9e29c598dadf380d49677c463931f0be659ccc40
[ "MIT" ]
49
2021-10-19T13:18:51.000Z
2022-03-30T08:20:17.000Z
UnitTests/test_NodalLoad_test.py
Dlubal-Software/RFEM_Python_Client
9e29c598dadf380d49677c463931f0be659ccc40
[ "MIT" ]
7
2021-10-13T06:06:24.000Z
2022-03-29T17:48:39.000Z
import sys import os PROJECT_ROOT = os.path.abspath(os.path.join( os.path.dirname(__file__), os.pardir) ) sys.path.append(PROJECT_ROOT) from RFEM.Loads.nodalLoad import NodalLoad from RFEM.LoadCasesAndCombinations.loadCase import LoadCase from RFEM.LoadCasesAndCombinations.staticAnal...
28.768293
87
0.686308
e20d2d58e499f72f3b3ef150932fb11ba069a3ce
5,383
py
Python
venv/Lib/site-packages/pandas/_testing/contexts.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
28,899
2016-10-13T03:32:12.000Z
2022-03-31T21:39:05.000Z
venv/Lib/site-packages/pandas/_testing/contexts.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
31,004
2016-10-12T23:22:27.000Z
2022-03-31T23:17:38.000Z
venv/Lib/site-packages/pandas/_testing/contexts.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
15,149
2016-10-13T03:21:31.000Z
2022-03-31T18:46:47.000Z
from __future__ import annotations from contextlib import contextmanager import os from pathlib import Path import random from shutil import rmtree import string import tempfile from typing import ( IO, Any, ) import numpy as np from pandas.io.common import get_handle @contextmanager def decompress_file(pa...
22.523013
86
0.62846
4273cc356ce8f53d7de50f71efbb3a66c8e87add
1,542
py
Python
dassh/__init__.py
khurrumsaleem/dassh
8823e4b5256975a375391787558e5b6aba816251
[ "BSD-3-Clause" ]
null
null
null
dassh/__init__.py
khurrumsaleem/dassh
8823e4b5256975a375391787558e5b6aba816251
[ "BSD-3-Clause" ]
null
null
null
dassh/__init__.py
khurrumsaleem/dassh
8823e4b5256975a375391787558e5b6aba816251
[ "BSD-3-Clause" ]
null
null
null
######################################################################## # Copyright 2021, UChicago Argonne, LLC # # Licensed under the BSD-3 License (the "License"); you may not use # this file except in compliance with the License. You may obtain a # copy of the License at # # https://opensource.org/licenses/BSD-...
31.469388
72
0.664073
db55756acea65f29b32954265ac36c1c6332095b
1,739
py
Python
accounts/migrations/0001_initial.py
engineer237/neighbourhood
f56789413a23dde5c389d20bb2f6d09bfe76f1a5
[ "MIT" ]
null
null
null
accounts/migrations/0001_initial.py
engineer237/neighbourhood
f56789413a23dde5c389d20bb2f6d09bfe76f1a5
[ "MIT" ]
null
null
null
accounts/migrations/0001_initial.py
engineer237/neighbourhood
f56789413a23dde5c389d20bb2f6d09bfe76f1a5
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-22 11:21 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='UserAccount', fields=[ ('id', models.BigAut...
39.522727
117
0.565267
ff9fc2dd09a05ab812ad1eb7a7876d4344251279
395
py
Python
clinicals/asgi.py
aabidumer/django_crud_app
95e337471a8283d81796170a465098cab21b23b6
[ "MIT" ]
null
null
null
clinicals/asgi.py
aabidumer/django_crud_app
95e337471a8283d81796170a465098cab21b23b6
[ "MIT" ]
null
null
null
clinicals/asgi.py
aabidumer/django_crud_app
95e337471a8283d81796170a465098cab21b23b6
[ "MIT" ]
null
null
null
""" ASGI config for clinicals project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
a0ac6cf3ca7674d0a119ac7caa705acc8b5f6d2f
4,838
py
Python
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[de_AT-2012] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
32
2019-04-12T08:01:34.000Z
2022-02-28T04:41:50.000Z
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[de_AT-2012] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
74
2019-07-09T16:35:20.000Z
2022-03-09T16:41:34.000Z
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[de_AT-2012] 1.py
gour/holidata
89c7323f9c5345a3ecbf5cd5a835b0e08cfebc13
[ "MIT" ]
20
2019-01-28T07:41:02.000Z
2022-02-16T02:38:57.000Z
[ { 'date': '2012-01-01', 'description': 'Neujahr', 'locale': 'de-AT', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2012-01-06', 'description': 'Heilige drei Könige', 'locale': 'de-AT', 'notes': '', 'region': ''...
21.40708
49
0.355519
e0fc82bffb3f43e8d8d5dcbe74f77c885fbe4ca9
3,603
py
Python
tests/test_matching_cost_ssd.py
njimenezd/Pandora
9e3c2054415301edac6da7510056af0136790277
[ "Apache-2.0" ]
14
2020-09-18T14:11:59.000Z
2020-11-18T14:10:07.000Z
tests/test_matching_cost_ssd.py
njimenezd/Pandora
9e3c2054415301edac6da7510056af0136790277
[ "Apache-2.0" ]
1
2020-09-29T10:35:45.000Z
2020-09-29T10:35:45.000Z
tests/test_matching_cost_ssd.py
njimenezd/Pandora
9e3c2054415301edac6da7510056af0136790277
[ "Apache-2.0" ]
1
2020-09-29T09:29:41.000Z
2020-09-29T09:29:41.000Z
# type:ignore #!/usr/bin/env python # coding: utf8 # # Copyright (c) 2020 Centre National d'Etudes Spatiales (CNES). # # This file is part of PANDORA # # https://github.com/CNES/Pandora_pandora # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with ...
34.644231
118
0.613378
36963dc2f20e8df0b1eb3094a5a4e0415424b487
7,434
py
Python
homeassistant/components/python_script/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
homeassistant/components/python_script/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
52
2020-07-14T14:12:26.000Z
2022-03-31T06:24:02.000Z
homeassistant/components/python_script/__init__.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Component to allow running Python scripts.""" import datetime import glob import logging import os import time from RestrictedPython import compile_restricted_exec from RestrictedPython.Eval import default_guarded_getitem from RestrictedPython.Guards import ( full_write_guard, guarded_iter_unpack_sequence, ...
29.5
87
0.650794
e612d5ac8aafae0666d187f58c2b268e5a74dd6f
68,780
py
Python
pyotrs/lib.py
hebersonaguiar/zabbixotrs
3d966b9eddc352ed532ef10d0b589d02f5cb783e
[ "MIT" ]
null
null
null
pyotrs/lib.py
hebersonaguiar/zabbixotrs
3d966b9eddc352ed532ef10d0b589d02f5cb783e
[ "MIT" ]
3
2020-03-24T16:51:09.000Z
2021-06-01T23:33:23.000Z
pyotrs/lib.py
hebersonaguiar/zabbixotrs
3d966b9eddc352ed532ef10d0b589d02f5cb783e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals # support both Python2 and 3 """ lib.py PyOTRS lib This code implements the PyOTRS library to provide access to the OTRS API (REST) """ import os import io import base64 import mimetypes import json import time import datetime import requests import l...
34.321357
98
0.554972
42d3345c9e75adb4fe01b8aaf4891d5555adba9b
1,473
py
Python
src/support_models/base_model.py
AlexKay28/MCN
79c2c11300e29bbdb5568d83bc6f6f43aecf970f
[ "FTL" ]
3
2021-09-20T14:13:20.000Z
2021-12-01T11:55:43.000Z
src/support_models/base_model.py
AlexKay28/Medical-Concept-Normalization-MCN-
79c2c11300e29bbdb5568d83bc6f6f43aecf970f
[ "FTL" ]
3
2021-03-25T20:38:48.000Z
2021-05-18T17:01:51.000Z
src/support_models/base_model.py
AlexKay28/Medical-Concept-Normalization-MCN-
79c2c11300e29bbdb5568d83bc6f6f43aecf970f
[ "FTL" ]
1
2022-01-18T17:35:39.000Z
2022-01-18T17:35:39.000Z
import math import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Flatten, Convolution2D, MaxPooling1D from src.configs import GENERAL, PREPROCESSING, MODELING base_model_output_dim = MODELING['siamese_params']['base_model_output_dim'] base_model_la...
35.926829
88
0.733198
a433b27b4af16a15d2f8bc42b085ec64ca924f08
1,311
py
Python
tf_luna_i2c.py
uoe-sdp/raspberry-pi-python-example-files
932ba00104fcab00d316246ca5081b654c4f6980
[ "Apache-2.0" ]
null
null
null
tf_luna_i2c.py
uoe-sdp/raspberry-pi-python-example-files
932ba00104fcab00d316246ca5081b654c4f6980
[ "Apache-2.0" ]
null
null
null
tf_luna_i2c.py
uoe-sdp/raspberry-pi-python-example-files
932ba00104fcab00d316246ca5081b654c4f6980
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from time import time from time import sleep import numpy as np from smbus2 import SMBus, i2c_msg class lidarHardwareUtils: def __init__(self): #address of LiDAR attachment self.address = 0x10 self.distances = [0.0]*1 #get buffer or list of distance data for 180 ...
29.133333
72
0.637681
0cedc015cc0f76e79f9612199eee0c527e131605
14,806
py
Python
tests/integration/test_smoke.py
matthewsullivan-wf/aws-lambda-fsm-workflows
d94892856bec1154366c67b1bdfe52547f60ecd1
[ "Apache-2.0" ]
null
null
null
tests/integration/test_smoke.py
matthewsullivan-wf/aws-lambda-fsm-workflows
d94892856bec1154366c67b1bdfe52547f60ecd1
[ "Apache-2.0" ]
null
null
null
tests/integration/test_smoke.py
matthewsullivan-wf/aws-lambda-fsm-workflows
d94892856bec1154366c67b1bdfe52547f60ecd1
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2020 Workiva 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 agreed to in wri...
35.936893
120
0.534783
4506a5a09ab92df9f77dc42a88ada9ad38ff50e5
1,709
py
Python
Filters/General/Testing/Python/TestSampleImplicitFunctionFilter.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
1,755
2015-01-03T06:55:00.000Z
2022-03-29T05:23:26.000Z
Filters/General/Testing/Python/TestSampleImplicitFunctionFilter.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
29
2015-04-23T20:58:30.000Z
2022-03-02T16:16:42.000Z
Filters/General/Testing/Python/TestSampleImplicitFunctionFilter.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
1,044
2015-01-05T22:48:27.000Z
2022-03-31T02:38:26.000Z
#!/usr/bin/env python import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Parameters for debugging NPts = 100000 # create pipeline # points = vtk.vtkPointSource() points.SetNumberOfPoints(NPts) points.SetRadius(5) # create some scalars based on implicit function # Create a cylinder...
22.486842
61
0.796372
d6fc5c9396a7a43d8dff50b7a4679f68fab706a9
20,331
py
Python
webdataset/dataset.py
gabrielilharco/webdataset
a4f3ec08551b42f20b20cdc1ba32d12536eabc15
[ "BSD-3-Clause" ]
null
null
null
webdataset/dataset.py
gabrielilharco/webdataset
a4f3ec08551b42f20b20cdc1ba32d12536eabc15
[ "BSD-3-Clause" ]
null
null
null
webdataset/dataset.py
gabrielilharco/webdataset
a4f3ec08551b42f20b20cdc1ba32d12536eabc15
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2017-2021 NVIDIA CORPORATION. All rights reserved. # This file is part of the WebDataset library. # See the LICENSE file for licensing terms (BSD-style). # """Train PyTorch models directly from POSIX tar archive. Code works locally or over HTTP connections. """ import itertools as itt import os im...
35.17474
117
0.639762
138ce6aff34e284aa6b94b7681c03cb9b2fe57ff
6,409
py
Python
buzzard/_tools/conv/_gdal_conv.py
azarz/buzzard
1b61d0455a3e87808040a1d761de2c8935f3fe4d
[ "Apache-2.0" ]
null
null
null
buzzard/_tools/conv/_gdal_conv.py
azarz/buzzard
1b61d0455a3e87808040a1d761de2c8935f3fe4d
[ "Apache-2.0" ]
null
null
null
buzzard/_tools/conv/_gdal_conv.py
azarz/buzzard
1b61d0455a3e87808040a1d761de2c8935f3fe4d
[ "Apache-2.0" ]
null
null
null
"""Conversions between gdal types python representations http://www.gdal.org/gdal_8h.html http://www.gdal.org/ogr__core_8h.html """ import datetime import json import numbers import collections import shapely.wkt as sw from osgeo import ogr, gdal import numpy as np # WKB (Well Known Bytes) <-> str *****************...
26.704167
100
0.618037
201cac200b27e7457f3cbc0c120868b3177a2758
903
py
Python
test/reservation/test_view.py
cgu-ist/ist3032019spring-project1
c4ee97e8a0766aee2fd6654c11b2b6759293e42e
[ "MIT" ]
null
null
null
test/reservation/test_view.py
cgu-ist/ist3032019spring-project1
c4ee97e8a0766aee2fd6654c11b2b6759293e42e
[ "MIT" ]
1
2021-03-19T22:49:44.000Z
2021-03-19T22:49:44.000Z
test/reservation/test_view.py
cgu-ist/ist3032019spring-project1
c4ee97e8a0766aee2fd6654c11b2b6759293e42e
[ "MIT" ]
null
null
null
import pytest from administration.models import Customer, Service from reservation.views import validate_checked_in from django.core.exceptions import ValidationError from datetime import datetime from pytz import UTC @pytest.mark.django_db def test_validate_checked_in_error(): c_failed = Customer.objects.create(...
37.625
94
0.679956
1fa049556fc5a7b11ca9ac0c7f3098813c72ac3d
16,747
py
Python
telemetry_oob.py
Snagajob/snowflake-connector-python
be43eebae138b0040fb973ba470b7575bae97a0f
[ "Apache-2.0" ]
1
2020-08-04T08:30:42.000Z
2020-08-04T08:30:42.000Z
telemetry_oob.py
Snagajob/snowflake-connector-python
be43eebae138b0040fb973ba470b7575bae97a0f
[ "Apache-2.0" ]
null
null
null
telemetry_oob.py
Snagajob/snowflake-connector-python
be43eebae138b0040fb973ba470b7575bae97a0f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2018-2019 Snowflake Computing Inc. All right reserved. # import datetime import json import logging import uuid from collections import namedtuple from queue import Queue import requests from .compat import OK from .description import CLIENT_NAME, SNOWFL...
32.901768
160
0.580582
5a31dc88d077da4a1d5814e66734a72a118eafb0
11,971
py
Python
packages/merlin/builders/make/LibFlow.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
25
2018-04-23T01:45:39.000Z
2021-12-10T06:01:23.000Z
packages/merlin/builders/make/LibFlow.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
53
2018-05-31T04:55:00.000Z
2021-10-07T21:41:32.000Z
packages/merlin/builders/make/LibFlow.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
12
2018-04-23T22:50:40.000Z
2022-02-20T17:27:23.000Z
# -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # (c) 1998-2021 all rights reserved # support import journal import merlin # a builder of libraries class LibFlow(merlin.component, family="merlin.builders.flow.lib", implements=merlin.protocols.libflow): """ Workf...
30.153652
98
0.55459
da84f8e74f288016b4b8fd8c2221034a3ea0556c
27,412
py
Python
classifier/run_glue.py
andreamad8/FSB
a81593590189fa5ad1cc37c5857f974effd9750a
[ "MIT" ]
53
2021-10-11T03:24:14.000Z
2022-03-30T15:17:23.000Z
classifier/run_glue.py
andreamad8/FSB
a81593590189fa5ad1cc37c5857f974effd9750a
[ "MIT" ]
1
2021-12-26T22:48:38.000Z
2022-01-15T18:05:32.000Z
classifier/run_glue.py
andreamad8/FSB
a81593590189fa5ad1cc37c5857f974effd9750a
[ "MIT" ]
5
2022-01-27T09:07:39.000Z
2022-03-04T08:58:23.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. 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/LI...
45.309091
119
0.663323
2d843baee604465a8883ba1f053d7ab810e12da5
596
py
Python
Algorithms/Sorting/Quick-Sort.py
javokhirbek1999/AlgorithmsDS
f5f403fed959ac8cf3064c8c852c59f2e67496ab
[ "MIT" ]
6
2021-03-21T02:24:05.000Z
2021-04-05T01:32:13.000Z
Algorithms/Sorting/Quick-Sort.py
javokhirbek1999/AlgorithmsDS
f5f403fed959ac8cf3064c8c852c59f2e67496ab
[ "MIT" ]
null
null
null
Algorithms/Sorting/Quick-Sort.py
javokhirbek1999/AlgorithmsDS
f5f403fed959ac8cf3064c8c852c59f2e67496ab
[ "MIT" ]
null
null
null
def partition(arr,low,high): i = low - 1 pivot = arr[high] for j in range(low,high): if arr[j]<=pivot: i += 1 arr[i],arr[j] = arr[j],arr[i] arr[i+1],arr[high] = arr[high],arr[i+1] return (i+1) def qucikSort(arr,low,high): if low < high: pi = partition(arr...
22.923077
43
0.572148
f0ca9bcefe0dfc38633f8961bdf2b35f95a66bba
156
py
Python
yaml2json.py
cristicalin/tools
b8fe4efb1143a575d102d3a8e368052a4ecdceae
[ "MIT" ]
null
null
null
yaml2json.py
cristicalin/tools
b8fe4efb1143a575d102d3a8e368052a4ecdceae
[ "MIT" ]
1
2016-01-31T12:54:06.000Z
2016-02-29T13:45:46.000Z
yaml2json.py
cristicalin/tools
b8fe4efb1143a575d102d3a8e368052a4ecdceae
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import yaml import json if __name__ == '__main__': content = yaml.load(sys.stdin) print json.dumps(content, indent=2)
14.181818
37
0.705128
1bfd8371a828bb7ee01a6884ade82ad29bbee094
2,902
py
Python
src/train_2.py
gregoryverghese/breastcancer-prediction
556f651e5c90428d3eb0dd135c8e3ed48a5cfdd0
[ "MIT" ]
null
null
null
src/train_2.py
gregoryverghese/breastcancer-prediction
556f651e5c90428d3eb0dd135c8e3ed48a5cfdd0
[ "MIT" ]
null
null
null
src/train_2.py
gregoryverghese/breastcancer-prediction
556f651e5c90428d3eb0dd135c8e3ed48a5cfdd0
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import torch import torch.utils.data as data_utils import torch.optim as optim from torch.autograd import Variable import os import glob from PIL import Image import numpy as np from torchvision import datasets, transforms from torchvision import models import ra...
30.229167
156
0.682977
c3530661e4898c43d00dd7b02feb4a2864c2bea2
3,410
py
Python
pyzoo/zoo/examples/automl/plugin_model_demo.py
shane-huang/analytics-zoo
9c29bc7d678b526cd8ff256d731ed9ac2c18cc81
[ "Apache-2.0" ]
null
null
null
pyzoo/zoo/examples/automl/plugin_model_demo.py
shane-huang/analytics-zoo
9c29bc7d678b526cd8ff256d731ed9ac2c18cc81
[ "Apache-2.0" ]
1
2020-04-17T02:41:28.000Z
2020-04-20T02:37:41.000Z
pyzoo/zoo/examples/automl/plugin_model_demo.py
shane-huang/analytics-zoo
9c29bc7d678b526cd8ff256d731ed9ac2c18cc81
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 Analytics Zoo 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...
33.762376
100
0.625513
b454cf77230b578cdadb6564f8ebaef5f39bc4bc
979
py
Python
setup.py
KolesovDmitry/sphinxit
f2c62d2e0a2e8b3372ecea9ae1cd0b648cd9df1d
[ "BSD-3-Clause" ]
9
2015-03-13T23:54:49.000Z
2020-02-13T10:19:26.000Z
setup.py
KolesovDmitry/sphinxit
f2c62d2e0a2e8b3372ecea9ae1cd0b648cd9df1d
[ "BSD-3-Clause" ]
3
2015-04-06T03:33:14.000Z
2015-08-05T00:02:56.000Z
setup.py
KolesovDmitry/sphinxit
f2c62d2e0a2e8b3372ecea9ae1cd0b648cd9df1d
[ "BSD-3-Clause" ]
14
2015-01-30T15:19:14.000Z
2020-11-04T09:18:44.000Z
from setuptools import setup, find_packages setup( name='sphinxit', version='0.3.2', author='Roman Semirook', author_email='semirook@gmail.com', packages=find_packages(), license='BSD', url='https://github.com/semirook/sphinxit', description='Lite and powerful SphinxQL query constructo...
31.580645
71
0.607763
6e4df0ff4f945020fb0a2d50bf5eeef5ab8e17a9
181
py
Python
jp.atcoder/abc043/abc043_a/8971719.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc043/abc043_a/8971719.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc043/abc043_a/8971719.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys n = int(sys.stdin.readline().rstrip()) def main(): ans = (1 + n) * n // 2 return ans if __name__ == "__main__": ans = main() print(ans)
12.928571
39
0.502762
1d203d42172e98579d67cedf2657e635ed71a9ea
26,768
py
Python
src/oci/data_catalog/models/job_definition_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_catalog/models/job_definition_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_catalog/models/job_definition_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
38.626263
338
0.686006
4d7714f62cbe216ad1a745434e1487376151e136
611
py
Python
backend/mmlp/endpoint/methods/MethodCount.py
magreiner/MMLP
23113866d8d0062c8c0e54c7fa5a0bbd0fa15f4e
[ "Apache-2.0" ]
null
null
null
backend/mmlp/endpoint/methods/MethodCount.py
magreiner/MMLP
23113866d8d0062c8c0e54c7fa5a0bbd0fa15f4e
[ "Apache-2.0" ]
null
null
null
backend/mmlp/endpoint/methods/MethodCount.py
magreiner/MMLP
23113866d8d0062c8c0e54c7fa5a0bbd0fa15f4e
[ "Apache-2.0" ]
null
null
null
from falcon import Request, Response, falcon from pandas.io import json from mmlp.manager import MethodManager class MethodCount: def __init__(self, method_manager: MethodManager): self._method_manager: MethodManager = method_manager def on_get(self, req: Request, resp: Response): result = s...
32.157895
60
0.680851
557ce7a9522c78ae38b3ca78c4a1708af9bf6437
30
py
Python
src/__init__.py
Mamdasn/imhist
21ce6a420cb920801675032916ec8139d525a1f1
[ "MIT" ]
null
null
null
src/__init__.py
Mamdasn/imhist
21ce6a420cb920801675032916ec8139d525a1f1
[ "MIT" ]
null
null
null
src/__init__.py
Mamdasn/imhist
21ce6a420cb920801675032916ec8139d525a1f1
[ "MIT" ]
null
null
null
from src.imhist import imhist
15
29
0.833333
d3b03e45ed334b4ee898ebf6a6b68308e0e3de5c
4,137
py
Python
src/pretix/base/forms/user.py
td00/pretix
e31bd7600c85598de135f2eb5012e2f33fdb1d11
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/forms/user.py
td00/pretix
e31bd7600c85598de135f2eb5012e2f33fdb1d11
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/base/forms/user.py
td00/pretix
e31bd7600c85598de135f2eb5012e2f33fdb1d11
[ "ECL-2.0", "Apache-2.0" ]
1
2017-08-09T17:11:28.000Z
2017-08-09T17:11:28.000Z
from django import forms from django.contrib.auth.hashers import check_password from django.contrib.auth.password_validation import ( password_validators_help_texts, validate_password, ) from django.db.models import Q from django.utils.translation import ugettext_lazy as _ from pretix.base.models import User cla...
36.610619
101
0.582064
bd535da71f685614b0ae58171d8cb2daac67c098
21,555
py
Python
test/functional/test_framework/util.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The Vadercoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Helpful routines for regression testing.""" from base64 import b64encode from binascii import unhexl...
35.628099
112
0.644212
e171ab20d707ac027873f3990c7eca223b586893
13,570
py
Python
cibuildwheel/__main__.py
mondeja/cibuildwheel
49077c2a36f35d23183f49126c6c0652ea87f206
[ "BSD-2-Clause" ]
null
null
null
cibuildwheel/__main__.py
mondeja/cibuildwheel
49077c2a36f35d23183f49126c6c0652ea87f206
[ "BSD-2-Clause" ]
null
null
null
cibuildwheel/__main__.py
mondeja/cibuildwheel
49077c2a36f35d23183f49126c6c0652ea87f206
[ "BSD-2-Clause" ]
null
null
null
import argparse import os import sys import textwrap import traceback from configparser import ConfigParser from pathlib import Path from typing import Any, Dict, List, Optional, overload import cibuildwheel import cibuildwheel.linux import cibuildwheel.macos import cibuildwheel.windows from cibuildwheel.environment ...
42.943038
174
0.645247
d9cbfa237c4d71564b026c2a24127946f7c075c5
9,248
py
Python
test/test_text.py
zvelo/pattern
331a278f63590c1c415f102f935c9d10b62b4a03
[ "BSD-3-Clause" ]
null
null
null
test/test_text.py
zvelo/pattern
331a278f63590c1c415f102f935c9d10b62b4a03
[ "BSD-3-Clause" ]
null
null
null
test/test_text.py
zvelo/pattern
331a278f63590c1c415f102f935c9d10b62b4a03
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os, sys; sys.path.insert(0, os.path.join("..")) import unittest import StringIO from pattern import text #--------------------------------------------------------------------------------------------------- class TestLexicon(unittest.TestCase): def setUp(self): pass ...
43.214953
107
0.509083
e3e3d257c99af659c88875648192f172b6bba690
5,666
py
Python
src/datasets/off_road_small.py
Brazilian-Institute-of-Robotics/autonomous_perception
5645a2bc6811b33e9e6bf0f6873f496dff45ad94
[ "MIT" ]
null
null
null
src/datasets/off_road_small.py
Brazilian-Institute-of-Robotics/autonomous_perception
5645a2bc6811b33e9e6bf0f6873f496dff45ad94
[ "MIT" ]
null
null
null
src/datasets/off_road_small.py
Brazilian-Institute-of-Robotics/autonomous_perception
5645a2bc6811b33e9e6bf0f6873f496dff45ad94
[ "MIT" ]
1
2020-12-23T23:27:30.000Z
2020-12-23T23:27:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 6 15:26:10 2019 @author: nelson """ import tensorflow_datasets.public_api as tfds import os import tensorflow as tf import random classes = [ {'name': 'ignore' , 'color': [ 0, 0, 0]}, {'name': 'road' ,...
36.089172
116
0.507413
ef92133dbd7657573bf8a33146d5d6d117cf57dd
454
py
Python
setup.py
ben-cunningham/pybot
413837a6820d6c370bcaefb49599d7cd11a88a15
[ "MIT" ]
3
2016-06-17T07:30:06.000Z
2016-09-12T18:24:40.000Z
setup.py
ben-cunningham/pybot
413837a6820d6c370bcaefb49599d7cd11a88a15
[ "MIT" ]
33
2016-06-07T06:21:23.000Z
2016-09-13T04:44:44.000Z
setup.py
ben-cunningham/pybot
413837a6820d6c370bcaefb49599d7cd11a88a15
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name = 'fbmsgbot', packages = find_packages(exclude=['tests*']), version = '0.1.8', description = 'Python bot for Facebook Messenger', author = 'Benjamin Cunningham & Austin Hendy', author_email = 'bencunningham17@gmail.com', url = 'https:/...
34.923077
75
0.678414
df5bea797018d5fbe0666c17a2d5af1a4e66e2e2
1,214
py
Python
sp_experiment/define_monitors.py
sappelhoff/sp_psychopy
79cae80eb920b35fb27a52acfde0eda38b9124b1
[ "BSD-3-Clause" ]
1
2022-03-11T14:05:31.000Z
2022-03-11T14:05:31.000Z
sp_experiment/define_monitors.py
sappelhoff/sp_psychopy
79cae80eb920b35fb27a52acfde0eda38b9124b1
[ "BSD-3-Clause" ]
8
2019-02-12T07:47:47.000Z
2021-01-25T14:05:05.000Z
sp_experiment/define_monitors.py
sappelhoff/sp_psychopy
79cae80eb920b35fb27a52acfde0eda38b9124b1
[ "BSD-3-Clause" ]
2
2019-02-19T17:10:43.000Z
2022-03-11T14:05:32.000Z
"""Define monitors to be used. main file: sp.py This is important for psychopy to work in units of visual degrees. """ from psychopy import monitors if __name__ == '__main__': # Define new monitors # ------------------- # My Lenovo P51 monitor my_monitor = monitors.Monitor(name='p51') my_monitor...
26.977778
68
0.689456
025d6301a225ce0da9820adf21245de09ffc71d0
5,643
py
Python
image/usr/local/lib/web/backend/vnc/app.py
MOXA-ISD/docker-ubuntu-vnc-desktop
bf66ffd8b86a3291654d607f50a3d36bfb7d988b
[ "Apache-2.0" ]
null
null
null
image/usr/local/lib/web/backend/vnc/app.py
MOXA-ISD/docker-ubuntu-vnc-desktop
bf66ffd8b86a3291654d607f50a3d36bfb7d988b
[ "Apache-2.0" ]
null
null
null
image/usr/local/lib/web/backend/vnc/app.py
MOXA-ISD/docker-ubuntu-vnc-desktop
bf66ffd8b86a3291654d607f50a3d36bfb7d988b
[ "Apache-2.0" ]
null
null
null
from __future__ import ( absolute_import, division, print_function, with_statement ) import re from os import environ from flask import ( Flask, request, Response, jsonify, abort, ) from gevent import subprocess as gsp, spawn, sleep from geventwebsocket.exceptions import WebSocketError from .res...
28.356784
78
0.496367
4c21ef7ff2856ee7e2863dfb79bb4108adccde4a
4,922
py
Python
retrieve_tweets/filters.py
nabil-bouillin/TER_Twitter
85f09baf4f675f0233bebfd13dde17261af08317
[ "MIT" ]
null
null
null
retrieve_tweets/filters.py
nabil-bouillin/TER_Twitter
85f09baf4f675f0233bebfd13dde17261af08317
[ "MIT" ]
null
null
null
retrieve_tweets/filters.py
nabil-bouillin/TER_Twitter
85f09baf4f675f0233bebfd13dde17261af08317
[ "MIT" ]
3
2019-01-23T16:55:38.000Z
2019-07-08T15:21:25.000Z
from retrieve_tweets.tweets_collection import * from myapp import * from auth import * from retrieve_tweets.tweets_collection import * from flask import render_template stream_stop = False # Variable globale pour permettre le partage de la variable entre les 2 threads. class Stream(tweepy.StreamListener): def on...
54.087912
185
0.652783
54d07e4fa5b54cd35f9ec34a210d75347246553c
8,334
py
Python
pygsti/objects/opcalc/slowopcalc.py
drewrisinger/pyGSTi
dd4ad669931c7f75e026456470cf33ac5b682d0d
[ "Apache-2.0" ]
1
2021-12-19T15:11:09.000Z
2021-12-19T15:11:09.000Z
pygsti/objects/opcalc/slowopcalc.py
drewrisinger/pyGSTi
dd4ad669931c7f75e026456470cf33ac5b682d0d
[ "Apache-2.0" ]
null
null
null
pygsti/objects/opcalc/slowopcalc.py
drewrisinger/pyGSTi
dd4ad669931c7f75e026456470cf33ac5b682d0d
[ "Apache-2.0" ]
null
null
null
"""Python implementations of common polynomial operations""" #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Gov...
47.352273
115
0.593113
c3bf83e138d355ab9ea49ca249e0ffe665304e89
1,709
py
Python
django_todo/app/libs/result_handler.py
OceanOver/DjangoTodo
dac88da9964bac5e2c9b8edf06436bea2fb4c104
[ "MIT" ]
1
2020-08-12T07:53:44.000Z
2020-08-12T07:53:44.000Z
django_todo/app/libs/result_handler.py
OceanOver/DjangoTodo
dac88da9964bac5e2c9b8edf06436bea2fb4c104
[ "MIT" ]
null
null
null
django_todo/app/libs/result_handler.py
OceanOver/DjangoTodo
dac88da9964bac5e2c9b8edf06436bea2fb4c104
[ "MIT" ]
null
null
null
from rest_framework.response import Response # 请求业务无效 FAIL = 1001 # 请求成功 SUCCESS = 1200 # 请求成功处理,但是返回的响应没有数据 NO_CONTENT = 1202 # 拒绝访问操作资源(权限) FORBIDDEN = 1403 # 请求未包含身份验证信息,或者提供的凭据无效 UNAUTHORIZED = 1401 # 接口不存在 NOT_FOUND = 1404 # 服务器错误 ERROR = 1500 class ResultGenerator: @staticmethod def gen_result(result_c...
22.194805
53
0.520187
b45ecbebfb0f54d8b9ae2b3f664185da24700e06
16,659
py
Python
pycaption/sami.py
rdio/pycaption
e510aeb5512c4927ab241bb31cc79c235c3a8da4
[ "Apache-2.0" ]
null
null
null
pycaption/sami.py
rdio/pycaption
e510aeb5512c4927ab241bb31cc79c235c3a8da4
[ "Apache-2.0" ]
null
null
null
pycaption/sami.py
rdio/pycaption
e510aeb5512c4927ab241bb31cc79c235c3a8da4
[ "Apache-2.0" ]
null
null
null
from collections import deque from htmlentitydefs import name2codepoint from HTMLParser import HTMLParser, HTMLParseError from logging import FATAL from xml.sax.saxutils import escape from cssutils import parseString, log from bs4 import BeautifulSoup, NavigableString from pycaption import BaseReader, BaseWriter, Cap...
32.347573
83
0.532625
0a0cb090a5358b6f6ba3ba7d733e59d7903f3d4d
2,313
py
Python
geosoft/gxapi/GXEXT.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
geosoft/gxapi/GXEXT.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
geosoft/gxapi/GXEXT.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
### extends 'class_empty.py' ### block ClassImports # NOTICE: Do not edit anything here, it is generated code from . import gxapi_cy from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref ### endblock ClassImports ### block Header # NOTICE: The code generator will not replace the code in this block ### end...
26.586207
176
0.627756
5552778c81f769683b0da311b736d96b0894bed0
241
py
Python
{{cookiecutter.project_slug}}/src/sepulkas/tests/api/test_delete_sepulka.py
nvo87/django
fd07fb74ab59e868c73512cd0ca4952129b44cd8
[ "MIT" ]
98
2020-04-21T20:22:16.000Z
2021-06-07T12:33:51.000Z
{{cookiecutter.project_slug}}/src/sepulkas/tests/api/test_delete_sepulka.py
nvo87/django
fd07fb74ab59e868c73512cd0ca4952129b44cd8
[ "MIT" ]
70
2020-04-21T21:59:49.000Z
2021-06-13T13:35:01.000Z
{{cookiecutter.project_slug}}/src/sepulkas/tests/api/test_delete_sepulka.py
ginsenghillock/django
65ab4f52897ca7efdfde347383153fca4f2d2c14
[ "MIT" ]
23
2020-04-23T06:03:13.000Z
2021-06-09T06:59:34.000Z
import pytest pytestmark = [pytest.mark.django_db] def test_delete_sepulka_instance(as_user, sepulka): as_user.delete(f'/api/v1/sepulkas/{sepulka.id}/') with pytest.raises(sepulka.DoesNotExist): sepulka.refresh_from_db()
21.909091
53
0.742739
651c5b0ec511aa7e7af8c82a16069aeb35a5450d
3,296
py
Python
TypeDidi/TypeDidi/settings/dev.py
akaroka/TypeDidi
1c39a2b18c8e8c5737dd4650ceffab0e0af3b236
[ "Apache-2.0" ]
null
null
null
TypeDidi/TypeDidi/settings/dev.py
akaroka/TypeDidi
1c39a2b18c8e8c5737dd4650ceffab0e0af3b236
[ "Apache-2.0" ]
5
2020-06-05T21:43:38.000Z
2021-09-22T18:44:05.000Z
TypeDidi/TypeDidi/settings/dev.py
akaroka/TypeDidi
1c39a2b18c8e8c5737dd4650ceffab0e0af3b236
[ "Apache-2.0" ]
null
null
null
""" Django settings for TypeDidi project. Generated by 'django-admin startproject' using Django 3.0. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # ...
25.353846
91
0.686893
5ebc8095d3a39fd0c02052860ba81eeb5dc61129
33,733
py
Python
src/YTechCode_parser.py
RobinPaspuel/YtechCode
219a8492aa5be76c445f3d70f8b2ef74e81c188e
[ "MIT" ]
null
null
null
src/YTechCode_parser.py
RobinPaspuel/YtechCode
219a8492aa5be76c445f3d70f8b2ef74e81c188e
[ "MIT" ]
null
null
null
src/YTechCode_parser.py
RobinPaspuel/YtechCode
219a8492aa5be76c445f3d70f8b2ef74e81c188e
[ "MIT" ]
null
null
null
from src.YTechCode_lexer import * ##### DEFINING NODES ######## class Node_number: def __init__(self, token): self.token = token self.initial_pos = self.token.initial_pos self.final_pos = self.token.final_pos def __repr__(self): return f'{self.token}' class Node_string: ...
34.812178
162
0.584146
78048131bcb553f1e501c7307cee1212ac2c100c
9,704
py
Python
ddf_library/bases/monitor/monitor.py
eubr-bigsea/Compss-Python
09ab7c474c8badc9932de3e1148f62ffba16b0b2
[ "Apache-2.0" ]
3
2017-08-22T11:32:02.000Z
2021-08-09T09:35:51.000Z
ddf_library/bases/monitor/monitor.py
eubr-bigsea/Compss-Python
09ab7c474c8badc9932de3e1148f62ffba16b0b2
[ "Apache-2.0" ]
null
null
null
ddf_library/bases/monitor/monitor.py
eubr-bigsea/Compss-Python
09ab7c474c8badc9932de3e1148f62ffba16b0b2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys import io import os import time import pickle import pandas as pd import multiprocessing import logging import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import plotly.graph_objects as go from flask import ...
34.411348
79
0.450845
d28b25a574b8dc87337db65d2888e5e373e6299b
163
py
Python
keymetrics/financials/apps.py
PythonicAccountant/keymetrics
3a5f1952b5feb32257e2cb1ec602a012f2dbda32
[ "MIT" ]
null
null
null
keymetrics/financials/apps.py
PythonicAccountant/keymetrics
3a5f1952b5feb32257e2cb1ec602a012f2dbda32
[ "MIT" ]
25
2021-12-22T05:20:35.000Z
2022-03-31T05:27:38.000Z
keymetrics/financials/apps.py
PythonicAccountant/keymetrics
3a5f1952b5feb32257e2cb1ec602a012f2dbda32
[ "MIT" ]
null
null
null
from django.apps import AppConfig class FinancialsConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "keymetrics.financials"
23.285714
56
0.779141
ea0692174877fe60004b55b49c413ca844ae8b1a
5,796
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/khmer-1.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/sample-reads-randomly.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/khmer-1.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/sample-reads-randomly.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/khmer-1.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/sample-reads-randomly.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#!/usr/bin/python2.7 # # This script is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) Michigan State University, 2009-2014. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. # Contact: khmer-project@idyll.org # # pylint: disable=invalid-name,missing-docstring """ Take a...
33.894737
79
0.615424
ad3d7f98018f5395fe7d32a7a2ab5095273e488a
374
py
Python
spikee/utils/scorer.py
dodo47/SpikE
4f1814ee8a744839864b4721c001b96adb85c1d8
[ "Apache-2.0" ]
4
2021-06-21T08:16:32.000Z
2022-02-18T17:43:16.000Z
spikee/utils/scorer.py
dodo47/SpikE
4f1814ee8a744839864b4721c001b96adb85c1d8
[ "Apache-2.0" ]
null
null
null
spikee/utils/scorer.py
dodo47/SpikE
4f1814ee8a744839864b4721c001b96adb85c1d8
[ "Apache-2.0" ]
null
null
null
import torch from torch.nn import functional as F def ASYmmetric_score(s_emb, o_emb, p_emb): ''' TransE score (Bordes et al., 2013). ''' return -F.pairwise_distance(s_emb - o_emb, p_emb, p=1) def SYMmetric_score(s_emb, o_emb, p_emb): ''' Symmetric version of TransE score. ''' return -F...
24.933333
66
0.660428
5b0721b61ea2f7c84721ae6f97b9d45619b6cf2d
4,786
py
Python
tensorflow/python/compat/compat.py
tjakob/tensorflow
4b0eca97bcada35b2be038313cd5da8a0fbb95e3
[ "Apache-2.0" ]
1
2019-03-31T04:33:11.000Z
2019-03-31T04:33:11.000Z
tensorflow/python/compat/compat.py
poryfly/tensorflow
4f315c3ff6760a07395e1f82dd6b3a2bd4e6d8c1
[ "Apache-2.0" ]
null
null
null
tensorflow/python/compat/compat.py
poryfly/tensorflow
4f315c3ff6760a07395e1f82dd6b3a2bd4e6d8c1
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.191176
80
0.743209
c48df24beeb978913d0a2168dcc31303b06c7f69
627
py
Python
Examples/Example_16/run.py
paul-giltinan/Engine
49b6e142905ca2cce93c2ae46e9ac69380d9f7a1
[ "BSD-3-Clause" ]
null
null
null
Examples/Example_16/run.py
paul-giltinan/Engine
49b6e142905ca2cce93c2ae46e9ac69380d9f7a1
[ "BSD-3-Clause" ]
null
null
null
Examples/Example_16/run.py
paul-giltinan/Engine
49b6e142905ca2cce93c2ae46e9ac69380d9f7a1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys sys.path.append('../') from ore_examples_helper import OreExample oreex = OreExample(sys.argv[1] if len(sys.argv)>1 else False) oreex.print_headline("Run ORE to produce NPV for equity derivatives") oreex.run("Input/ore.xml") oreex.print_headline("Plot results: Simulated exposures (c...
33
96
0.76236
b269954e8d4c6002449085bdb4c3746f636cf47f
29,285
py
Python
scripts/ispaces-relaunch.py
EndPointCorp/interactivespaces-python-api
10a72c0e75f6442aaecbe12127e7714807312e36
[ "Apache-2.0" ]
null
null
null
scripts/ispaces-relaunch.py
EndPointCorp/interactivespaces-python-api
10a72c0e75f6442aaecbe12127e7714807312e36
[ "Apache-2.0" ]
6
2015-03-06T05:13:43.000Z
2015-05-28T13:50:01.000Z
scripts/ispaces-relaunch.py
EndPointCorp/interactivespaces-python-api
10a72c0e75f6442aaecbe12127e7714807312e36
[ "Apache-2.0" ]
1
2021-08-30T22:47:33.000Z
2021-08-30T22:47:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys sys.path.append("../") sys.path.append("/home/galadmin/src/interactivespaces-python-api/") import time import json import pprint import urllib2 import argparse import requests import commands import eventlet import subprocess import ConfigParser from i...
42.380608
197
0.616117
1b86e2394d5165f6c417aa4c5d8001a196d606f9
410
py
Python
sql_to_pypika/decorators.py
pahwaranger/sql_to_pypika
55ecf48aa96ddee4b16042459b75251e94cfbe6c
[ "MIT" ]
null
null
null
sql_to_pypika/decorators.py
pahwaranger/sql_to_pypika
55ecf48aa96ddee4b16042459b75251e94cfbe6c
[ "MIT" ]
null
null
null
sql_to_pypika/decorators.py
pahwaranger/sql_to_pypika
55ecf48aa96ddee4b16042459b75251e94cfbe6c
[ "MIT" ]
null
null
null
# hack to make linter not complain. this is copied from sly.lex.LexerMeta.__prepare__ def _(pattern, *extra): patterns = [pattern, *extra] def decorate(func): pattern = "|".join(f"({pat})" for pat in patterns) if hasattr(func, "pattern"): func.pattern = pattern + "|" + func.pattern ...
29.285714
85
0.6
0e73b8bf634ae13ebd2e05bafebf9f3b0680be44
12,912
py
Python
utils.py
fmehmetun/tf_encdec_seq2seq
5a8da75ae04a558413947900056d56cec466e6b2
[ "WTFPL" ]
12
2018-09-28T15:15:38.000Z
2021-07-31T16:17:25.000Z
utils.py
fmehmetun/tf_encdec_seq2seq
5a8da75ae04a558413947900056d56cec466e6b2
[ "WTFPL" ]
null
null
null
utils.py
fmehmetun/tf_encdec_seq2seq
5a8da75ae04a558413947900056d56cec466e6b2
[ "WTFPL" ]
4
2019-06-15T08:20:26.000Z
2020-11-09T11:52:58.000Z
#! -*- coding: UTF-8 -*- """ Holds functions that needs to be accessible from anywhere in project. """ import tensorflow as tf import numpy as np import re from gensim.models import Word2Vec from gensim.models.fasttext import FastText from gensim.models import KeyedVectors # Applies filter to given list. Clears empt...
34.249337
173
0.733194
453245755e00f044fe1c57fa1663ec31e072693d
7,182
py
Python
ui_modules/zd_mail_ui.py
slowiklukasz/zd-inventories
eaf3964a7d5446c5a960bff06992dc428dad2b53
[ "MIT" ]
null
null
null
ui_modules/zd_mail_ui.py
slowiklukasz/zd-inventories
eaf3964a7d5446c5a960bff06992dc428dad2b53
[ "MIT" ]
null
null
null
ui_modules/zd_mail_ui.py
slowiklukasz/zd-inventories
eaf3964a7d5446c5a960bff06992dc428dad2b53
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:/Users/lukas/PycharmProjects/zd_inventory/ui/zd_mail.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you kno...
54
113
0.712893
4860371bfe955b90b9318de203b4a36acbe7e35a
126
py
Python
src/tools/language_support/Paitom.py
JoaoHenrique12/uri_compiler
a1cdb7102333d6e9eaf9b08fe035d5077fd6e19a
[ "MIT" ]
null
null
null
src/tools/language_support/Paitom.py
JoaoHenrique12/uri_compiler
a1cdb7102333d6e9eaf9b08fe035d5077fd6e19a
[ "MIT" ]
6
2021-08-10T04:35:10.000Z
2021-08-13T05:08:17.000Z
src/tools/language_support/Paitom.py
JoaoHenrique12/uri_compiler
a1cdb7102333d6e9eaf9b08fe035d5077fd6e19a
[ "MIT" ]
null
null
null
class Paitom(): def create_file(self): with open("main.py",'w') as f: st = "" f.write(st)
21
38
0.452381
b805f16e4ac423591693f17a5915cbb8633559d9
1,893
py
Python
setup.py
tyler-a-cox/nucal
df342f38e278a465985e2aa043943faee4b8b48c
[ "BSD-3-Clause" ]
null
null
null
setup.py
tyler-a-cox/nucal
df342f38e278a465985e2aa043943faee4b8b48c
[ "BSD-3-Clause" ]
5
2021-07-09T18:41:36.000Z
2021-08-16T18:14:30.000Z
setup.py
tyler-a-cox/nucal
df342f38e278a465985e2aa043943faee4b8b48c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages from copy import copy with open("README.md") as readme_file: readme = readme_file.read() requirements = [ "numpy", "scipy", "astropy", "matplotlib", "tqdm", "pyuvdata", 'importlib-metadata>=0.12...
30.532258
89
0.641838
4bb95d4bf5960c638f1b0850367ab1a4f62d3530
2,895
py
Python
chb/cmdline/mips/chx_show_resultmetrics.py
psifertex/CodeHawk-Binary
1711d7b16d32a2e9ffa9d22af483182b3f9ded77
[ "MIT" ]
null
null
null
chb/cmdline/mips/chx_show_resultmetrics.py
psifertex/CodeHawk-Binary
1711d7b16d32a2e9ffa9d22af483182b3f9ded77
[ "MIT" ]
null
null
null
chb/cmdline/mips/chx_show_resultmetrics.py
psifertex/CodeHawk-Binary
1711d7b16d32a2e9ffa9d22af483182b3f9ded77
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # ------------------------------------------------------------------------------ # Access to the CodeHawk Binary Analyzer Analysis Results # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2020 Kes...
40.208333
92
0.660104
c73777559d4d3fa0d99693cb06e0f2ae94794784
10,044
py
Python
woldrnaseq/tests/test_gff2table.py
detrout/woldlab-rna-seq
02099219ff783503e8b6acce94d96b2b374b72da
[ "BSD-3-Clause" ]
2
2016-08-31T18:49:47.000Z
2016-11-07T18:08:17.000Z
woldrnaseq/tests/test_gff2table.py
detrout/woldlab-rna-seq
02099219ff783503e8b6acce94d96b2b374b72da
[ "BSD-3-Clause" ]
15
2016-02-29T23:13:55.000Z
2019-04-29T18:09:05.000Z
woldrnaseq/tests/test_gff2table.py
detrout/woldlab-rna-seq
02099219ff783503e8b6acce94d96b2b374b72da
[ "BSD-3-Clause" ]
2
2015-10-22T23:23:51.000Z
2016-08-09T18:53:49.000Z
import unittest from io import StringIO import pandas import numpy from woldrnaseq.gff2table import ( tokenize, parse_attributes, AttributesParser, format_gtf_record, GFFParser, parse_score, parse_strand, parse_phase, ) class TestAttributeParser(unittest.TestCase): def test_quotin...
37.477612
136
0.562425
0ccf2d44fb4f6f97b1f9eae0e850e28a2cdb92b1
6,837
py
Python
resources/mgltools_x86_64Linux2_1.5.6/lib/python2.5/site-packages/Crypto/SelfTest/Util/test_Counter.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
1
2022-03-28T05:21:51.000Z
2022-03-28T05:21:51.000Z
Crypto/SelfTest/Util/test_Counter.py
matthid/ironpycrypto
fbcffa058cbe32bef681cc57046f9182fb2ea363
[ "MIT" ]
null
null
null
Crypto/SelfTest/Util/test_Counter.py
matthid/ironpycrypto
fbcffa058cbe32bef681cc57046f9182fb2ea363
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # SelfTest/Util/test_Counter: Self-test for the Crypto.Util.Counter module # # Written in 2009 by Dwayne C. Litzenberger <dlitz@dlitz.net> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent t...
41.944785
104
0.641802
98bd7f57b49dd27c740e76968c653a4aae711640
596
py
Python
Using Python to Interact with the Operating System/WEEK 1/Graded Assesment/scripts/health_checks.py
manavnarang/Google-IT-Automation-with-Python-Professional-Certificate
ce982870f07cba8200947eda97764fcf8c7dc441
[ "MIT" ]
42
2020-04-28T09:06:21.000Z
2022-01-09T01:01:55.000Z
Using Python to Interact with the Operating System/WEEK 1/Graded Assesment/scripts/health_checks.py
vaquarkhan/Google-IT-Automation-with-Python-Professional-Certificate
d87dffe924de218f73d61d27689798646824ed6c
[ "MIT" ]
null
null
null
Using Python to Interact with the Operating System/WEEK 1/Graded Assesment/scripts/health_checks.py
vaquarkhan/Google-IT-Automation-with-Python-Professional-Certificate
d87dffe924de218f73d61d27689798646824ed6c
[ "MIT" ]
52
2020-05-12T05:29:46.000Z
2022-01-26T21:24:08.000Z
#!/usr/bin/env python3 import shutil import psutil from network import * def check_disk_usage(disk): """Verifies that there's enough free space on disk""" du = shutil.disk_usage(disk) free = du.free / du.total * 100 return free > 20 def check_cpu_usage(): """Verifies that there's enough unused CPU...
27.090909
63
0.696309
0e9573f430c16c38e2c54cc3ae4c15400feb4f5e
22,748
py
Python
mdict_utils/base/writemdict.py
liuyug/pymdict
fe9535c46f21f7827fa53f7ffffed0ed115f1c0b
[ "MIT" ]
96
2019-04-02T17:19:00.000Z
2022-03-25T23:46:20.000Z
mdict_utils/base/writemdict.py
liuyug/pymdict
fe9535c46f21f7827fa53f7ffffed0ed115f1c0b
[ "MIT" ]
13
2019-05-08T09:20:02.000Z
2021-11-17T07:56:04.000Z
mdict_utils/base/writemdict.py
liuyug/pymdict
fe9535c46f21f7827fa53f7ffffed0ed115f1c0b
[ "MIT" ]
34
2019-04-03T02:43:33.000Z
2022-03-20T02:49:52.000Z
""" writemdict.py - a library for creating dictionary files in the MDict file format. Optional dependencies: python-lzo: Required to write dictionaries using LZO compression. (Other compression schemes are available.) Simple usage example: from __future__ import unicode_literals from writemdict import MDi...
33.750742
134
0.703051
8c4357e347188bc81cf094f5a3a15e255ca6a6dc
613
py
Python
xlib/qt/widgets/QXMenuBar.py
jkennedyvz/DeepFaceLive
274c20808da089eb7fc0fc0e8abe649379a29ffe
[ "MIT" ]
null
null
null
xlib/qt/widgets/QXMenuBar.py
jkennedyvz/DeepFaceLive
274c20808da089eb7fc0fc0e8abe649379a29ffe
[ "MIT" ]
null
null
null
xlib/qt/widgets/QXMenuBar.py
jkennedyvz/DeepFaceLive
274c20808da089eb7fc0fc0e8abe649379a29ffe
[ "MIT" ]
null
null
null
from PySide6.QtGui import * from PySide6.QtWidgets import * from ._part_QXWidget import _part_QXWidget class QXMenuBar(QMenuBar, _part_QXWidget): def __init__(self, **kwargs): QMenuBar.__init__(self) _part_QXWidget.__init__(self, **kwargs) self.setStyleSheet(f""" QMenuBar {{ border: 0...
24.52
47
0.676998
a64659c15a1fadc562198990aab73b6350b40705
3,634
py
Python
test/test_configserver.py
joe255/python-configserver
963f78a1a68f9efaa6b029b865cf6f5d9dce709f
[ "MIT" ]
null
null
null
test/test_configserver.py
joe255/python-configserver
963f78a1a68f9efaa6b029b865cf6f5d9dce709f
[ "MIT" ]
null
null
null
test/test_configserver.py
joe255/python-configserver
963f78a1a68f9efaa6b029b865cf6f5d9dce709f
[ "MIT" ]
null
null
null
from unittest import IsolatedAsyncioTestCase from unittest.case import TestCase from unittest.mock import MagicMock import configserver import asyncio def async_return(result): f = asyncio.Future() f.set_result(result) return f class ConfigserverTest(IsolatedAsyncioTestCase): def setUp(self) -> None...
60.566667
199
0.653275
8d2886432e8859cf11178d790acbfc269af6476e
277
py
Python
review_tracker/config/desktop.py
PawanMeh/MVACA1
35428c6cd37dba8adf11467bbcfc7d001a804d8a
[ "MIT" ]
null
null
null
review_tracker/config/desktop.py
PawanMeh/MVACA1
35428c6cd37dba8adf11467bbcfc7d001a804d8a
[ "MIT" ]
null
null
null
review_tracker/config/desktop.py
PawanMeh/MVACA1
35428c6cd37dba8adf11467bbcfc7d001a804d8a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "module_name": "Review Tracker", "color": "grey", "icon": "octicon octicon-file-directory", "type": "module", "label": _("Review Tracker") } ]
18.466667
44
0.624549
eafbee07477d93dbab8ecd711f6d613f65d7f9fa
4,957
py
Python
xonsh2/xoreutils/umask.py
anki-code/xonsh2
bd96fcdce9319ab6b90c7d9ac47d2249b61144d0
[ "BSD-2-Clause-FreeBSD" ]
3
2020-11-01T13:51:47.000Z
2021-03-21T03:40:18.000Z
xonsh2/xoreutils/umask.py
anki-code/xonsh2
bd96fcdce9319ab6b90c7d9ac47d2249b61144d0
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh2/xoreutils/umask.py
anki-code/xonsh2
bd96fcdce9319ab6b90c7d9ac47d2249b61144d0
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""Implements a umask command for xonsh2.""" import re import os import xonsh2.lazyasd as xl @xl.lazyobject def symbolic_matcher(): return re.compile(r"([ugo]*|a)([+-=])([^\s,]*)") order = "rwx" name_to_value = {"x": 1, "w": 2, "r": 4} value_to_name = {v: k for k, v in name_to_value.items()} class_to_loc = {...
27.087432
87
0.573532
7a78b3f4ad37c0c74a919c22e93b42590ebb2781
4,556
py
Python
data_augmentation.py
mhmoslemi2338/scene-recognition
029257acba3ea59f2cceaec44d6b598e7ad6f0fa
[ "MIT" ]
null
null
null
data_augmentation.py
mhmoslemi2338/scene-recognition
029257acba3ea59f2cceaec44d6b598e7ad6f0fa
[ "MIT" ]
null
null
null
data_augmentation.py
mhmoslemi2338/scene-recognition
029257acba3ea59f2cceaec44d6b598e7ad6f0fa
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np from tensorflow.keras.preprocessing.image import ImageDataGenerator import skimage import copy def augment_func(): train_path=os.path.join(os.path.abspath("Data"),"Train") categories=os.listdir(train_path) augment =ImageDataGenerator() ...
37.966667
137
0.480685
04547e1ceba89db2c664e34eb7cfb58a51c3c946
626
py
Python
hackerrank/plusMinus.py
rubenlr/learning-python
c59f6c325d4bc24b0b1b28644b9d7a8def2d5d70
[ "Unlicense" ]
null
null
null
hackerrank/plusMinus.py
rubenlr/learning-python
c59f6c325d4bc24b0b1b28644b9d7a8def2d5d70
[ "Unlicense" ]
null
null
null
hackerrank/plusMinus.py
rubenlr/learning-python
c59f6c325d4bc24b0b1b28644b9d7a8def2d5d70
[ "Unlicense" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # # Complete the 'diagonalDifference' function below. # # The function is expected to return an INTEGER. # The function accepts 2D_INTEGER_ARRAY arr as parameter. # def plusMinus(arr): pos, neg, zero = 0.0, 0.0, 0.0 for n in arr: ...
17.388889
57
0.530351
e6f06833c7aea6876998f206f38b47686ad0f7ea
22,150
py
Python
tests/evaluation/test_annotators.py
bhagyaramgpo/skills-ml
be520fc2a2f88bff756d25e57c3378a465a1dcb2
[ "MIT" ]
147
2016-12-05T19:45:05.000Z
2022-02-17T03:03:28.000Z
tests/evaluation/test_annotators.py
bhagyaramgpo/skills-ml
be520fc2a2f88bff756d25e57c3378a465a1dcb2
[ "MIT" ]
390
2016-12-02T03:11:13.000Z
2022-03-28T22:08:20.000Z
tests/evaluation/test_annotators.py
bhagyaramgpo/skills-ml
be520fc2a2f88bff756d25e57c3378a465a1dcb2
[ "MIT" ]
66
2017-12-14T16:33:24.000Z
2022-02-17T03:03:31.000Z
from skills_utils.hash import md5 from skills_ml.algorithms.skill_extractors.base import CandidateSkill from skills_ml.evaluation.annotators import BratExperiment from skills_ml.algorithms.sampling import Sample from skills_ml.storage import S3Store from moto import mock_s3, mock_s3_deprecated import boto3 import json ...
38.321799
165
0.57526
a107bbfee4e2424db07ad908f6a46179535553b6
69
py
Python
patchcore/models/__init__.py
bilzard/PatchCore
f9061b50bdc0f71661fba9459d2ac379b79d3161
[ "MIT" ]
24
2021-01-30T02:31:25.000Z
2022-03-08T06:54:30.000Z
patchcore/models/__init__.py
bilzard/PatchCore
f9061b50bdc0f71661fba9459d2ac379b79d3161
[ "MIT" ]
5
2021-03-10T03:02:58.000Z
2021-06-06T14:14:54.000Z
patchcore/models/__init__.py
bilzard/PatchCore
f9061b50bdc0f71661fba9459d2ac379b79d3161
[ "MIT" ]
4
2021-03-30T06:51:44.000Z
2022-02-01T02:04:11.000Z
from .wide_resnet50 import WideResNet50 __all__ = ["WideResNet50"]
13.8
39
0.782609
57c406837a3bd6d3d6793023c630ff5328a91a0d
21,477
py
Python
tensorboard/uploader/uploader_main.py
doc22940/tensorboard
25133881fd79fbdbf2a47079e7ccdacf21fccbd8
[ "Apache-2.0" ]
1
2020-04-20T02:52:00.000Z
2020-04-20T02:52:00.000Z
tensorboard/uploader/uploader_main.py
doc22940/tensorboard
25133881fd79fbdbf2a47079e7ccdacf21fccbd8
[ "Apache-2.0" ]
null
null
null
tensorboard/uploader/uploader_main.py
doc22940/tensorboard
25133881fd79fbdbf2a47079e7ccdacf21fccbd8
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.768868
83
0.658053
a63ae5be46f80d6aa88308ac292ca246005c47c2
120,632
py
Python
test/sql/test_selectable.py
petit87/sqlalchemy
67d674bd63ca36ac32b23f96e2b19e9dac6b0863
[ "MIT" ]
null
null
null
test/sql/test_selectable.py
petit87/sqlalchemy
67d674bd63ca36ac32b23f96e2b19e9dac6b0863
[ "MIT" ]
null
null
null
test/sql/test_selectable.py
petit87/sqlalchemy
67d674bd63ca36ac32b23f96e2b19e9dac6b0863
[ "MIT" ]
null
null
null
"""Test various algorithmic properties of selectables.""" from itertools import zip_longest from sqlalchemy import and_ from sqlalchemy import bindparam from sqlalchemy import Boolean from sqlalchemy import cast from sqlalchemy import Column from sqlalchemy import exc from sqlalchemy import exists from sqlalchemy impo...
32.825034
79
0.555093
febbb2784101c7f5c7d2fc08d514addd192f9b48
87
py
Python
wsgi.py
chilinwei/envinfo_server
f3a3e3621629f86ab064edb3092151784d523d7e
[ "MIT" ]
null
null
null
wsgi.py
chilinwei/envinfo_server
f3a3e3621629f86ab064edb3092151784d523d7e
[ "MIT" ]
null
null
null
wsgi.py
chilinwei/envinfo_server
f3a3e3621629f86ab064edb3092151784d523d7e
[ "MIT" ]
null
null
null
from envinfo import app if __name__ == "__main__": app.debug = True app.run()
14.5
26
0.643678
25354a9572f24963766c152eee0e8b32a190ade7
105,780
py
Python
eodms_rapi/eodms.py
eodms-sgdot/py-eodms-rapi
e6930d3e6266163599f6c0b4c50b046a98ef7ed7
[ "MIT" ]
2
2022-02-10T15:26:46.000Z
2022-03-17T23:43:39.000Z
eodms_rapi/eodms.py
eodms-sgdot/py-eodms-rapi
e6930d3e6266163599f6c0b4c50b046a98ef7ed7
[ "MIT" ]
null
null
null
eodms_rapi/eodms.py
eodms-sgdot/py-eodms-rapi
e6930d3e6266163599f6c0b4c50b046a98ef7ed7
[ "MIT" ]
1
2022-03-15T00:15:10.000Z
2022-03-15T00:15:10.000Z
############################################################################## # MIT License # # Copyright (c) 2022 Her Majesty the Queen in Right of Canada, as # represented by the President of the Treasury Board # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and...
35.796954
80
0.522225
7fd15781e8d217f25169ee39f23748bd614dd171
2,589
py
Python
visualizer/old/viz_metaclusters.py
pyrosnowman24/RabbitMqSwarm-1
20697356e87817d037622f593608ba7e915d5575
[ "Apache-2.0" ]
null
null
null
visualizer/old/viz_metaclusters.py
pyrosnowman24/RabbitMqSwarm-1
20697356e87817d037622f593608ba7e915d5575
[ "Apache-2.0" ]
null
null
null
visualizer/old/viz_metaclusters.py
pyrosnowman24/RabbitMqSwarm-1
20697356e87817d037622f593608ba7e915d5575
[ "Apache-2.0" ]
1
2020-01-29T17:06:12.000Z
2020-01-29T17:06:12.000Z
#!/usr/bin/env python # Title: UAV client # Description: Randomly generates peoples poses and sends them to the RabbitMQ server # Engineer: Jonathan Lwowski # Email: jonathan.lwowski@gmail.com # Lab: Autonomous Controls Lab, The University of Texas at San Antonio ######### Libraries ###############...
27.252632
117
0.68482
2457eb38aceefa3ed9cd58aa4b4cb8d7d5140b97
3,880
py
Python
src/python/botocore/__init__.py
cloud-froggies/budget-sync
566a316f33335b258398122214190c25f171444e
[ "MIT" ]
null
null
null
src/python/botocore/__init__.py
cloud-froggies/budget-sync
566a316f33335b258398122214190c25f171444e
[ "MIT" ]
null
null
null
src/python/botocore/__init__.py
cloud-froggies/budget-sync
566a316f33335b258398122214190c25f171444e
[ "MIT" ]
null
null
null
# Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/ # Copyright 2012-2014 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...
38.8
78
0.703608
318a309ccb9c8a80321d12ffe65bee1533dfbc81
1,265
py
Python
setup.py
soradi/djqgrid
c3bda84995a740b05c7a9538e38a86a95f7a5207
[ "MIT" ]
3
2015-03-15T14:44:56.000Z
2022-01-12T21:56:36.000Z
setup.py
soradi/djqgrid
c3bda84995a740b05c7a9538e38a86a95f7a5207
[ "MIT" ]
6
2015-07-05T16:45:51.000Z
2021-06-10T19:10:25.000Z
setup.py
soradi/djqgrid
c3bda84995a740b05c7a9538e38a86a95f7a5207
[ "MIT" ]
7
2015-03-20T13:45:14.000Z
2021-01-08T20:52:32.000Z
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() # LICENSE = open(os.path.join(os.path.dirname(__file__), 'LICENSE.txt')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) se...
35.138889
79
0.639526
316fbf4312d0fb2f74dc872b5c2d1ffa936621ce
8,210
py
Python
src/olympia/addons/buttons.py
makyen/Mozilla-addons-server
555d9f31cc4b00799466f16c8809edd5f1858ab8
[ "BSD-3-Clause" ]
1
2020-12-03T10:02:15.000Z
2020-12-03T10:02:15.000Z
src/olympia/addons/buttons.py
makyen/Mozilla-addons-server
555d9f31cc4b00799466f16c8809edd5f1858ab8
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/buttons.py
makyen/Mozilla-addons-server
555d9f31cc4b00799466f16c8809edd5f1858ab8
[ "BSD-3-Clause" ]
null
null
null
from django.db.transaction import non_atomic_requests from django.utils.translation import ( ugettext, ugettext_lazy as _, pgettext_lazy) import jingo import jinja2 from olympia import amo from olympia.amo.helpers import urlparams from olympia.amo.urlresolvers import reverse from olympia.amo.utils import render ...
36.816143
79
0.61754
dca7d8532a5b5bda1f5e970e6adba67307357be0
9,011
py
Python
datumaro/datumaro/plugins/coco_format/extractor.py
SUNx2YCH/cvat
7e8fc2366afe2b41f534633e4b9d42fbd580546a
[ "MIT" ]
null
null
null
datumaro/datumaro/plugins/coco_format/extractor.py
SUNx2YCH/cvat
7e8fc2366afe2b41f534633e4b9d42fbd580546a
[ "MIT" ]
null
null
null
datumaro/datumaro/plugins/coco_format/extractor.py
SUNx2YCH/cvat
7e8fc2366afe2b41f534633e4b9d42fbd580546a
[ "MIT" ]
null
null
null
# Copyright (C) 2019 Intel Corporation # # SPDX-License-Identifier: MIT from collections import OrderedDict import logging as log import os.path as osp from pycocotools.coco import COCO import pycocotools.mask as mask_utils from datumaro.components.extractor import (SourceExtractor, DEFAULT_SUBSET_NAME, Dataset...
35.337255
81
0.577516
0196ac02f10c4e2524385219c73fdb70f751ee82
8,864
py
Python
core/dr_utils/dib_renderer_x/rasterizer/rasterizer.py
THU-DA-6D-Pose-Group/Self6D-Diff-Renderer
408330a9c7d7010a5af0a5b0b469f1ef695d18de
[ "Apache-2.0" ]
90
2020-08-15T16:14:45.000Z
2022-01-22T10:24:13.000Z
core/dr_utils/dib_renderer_x/rasterizer/rasterizer.py
THU-DA-6D-Pose-Group/Self6D-Diff-Renderer
408330a9c7d7010a5af0a5b0b469f1ef695d18de
[ "Apache-2.0" ]
11
2020-09-07T17:31:18.000Z
2021-11-25T12:07:30.000Z
core/dr_utils/dib_renderer_x/rasterizer/rasterizer.py
THU-DA-6D-Pose-Group/Self6D-Diff-Renderer
408330a9c7d7010a5af0a5b0b469f1ef695d18de
[ "Apache-2.0" ]
13
2020-09-03T04:25:50.000Z
2021-12-23T08:23:33.000Z
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, mo...
34.490272
115
0.626241
2a3adf3177cc946af30d5d041c9204db6fde2869
5,450
py
Python
creel_portal/api/filters/FN023_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
creel_portal/api/filters/FN023_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
creel_portal/api/filters/FN023_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
import django_filters from ...models import FN023 from .filter_utils import NumberInFilter, ValueInFilter class FN023SubFilter(django_filters.FilterSet): """A fitlerset that allows us to select subsets of net set objects by net set attributes.""" dtp = ValueInFilter(field_name="dtp") dtp__not = Valu...
31.686047
85
0.691193
8c450b154935576c7d1c85b99ab1a1d749bc1ba9
7,594
py
Python
spacy/tests/conftest.py
rynoV/spaCy
d8805a1073c01468e8b284ef7ca91eb80f37d237
[ "BSD-3-Clause", "MIT" ]
1
2021-06-29T08:15:09.000Z
2021-06-29T08:15:09.000Z
spacy/tests/conftest.py
rynoV/spaCy
d8805a1073c01468e8b284ef7ca91eb80f37d237
[ "BSD-3-Clause", "MIT" ]
1
2021-06-22T13:32:07.000Z
2021-06-23T09:15:29.000Z
spacy/tests/conftest.py
rynoV/spaCy
d8805a1073c01468e8b284ef7ca91eb80f37d237
[ "BSD-3-Clause", "MIT" ]
null
null
null
import pytest from spacy.util import get_lang_class def pytest_addoption(parser): parser.addoption("--slow", action="store_true", help="include slow tests") def pytest_runtest_setup(item): def getopt(opt): # When using 'pytest --pyargs spacy' to test an installed copy of # spacy, pytest skip...
21.821839
78
0.692257
4210f248bb438c9e197e41ba983c6473e7b151e2
8,632
py
Python
tests/local/test_playlists.py
tamland/mopidy
7d5117c299ec33b66b67b906a9971bcbc77c3133
[ "Apache-2.0" ]
1
2018-05-12T21:28:49.000Z
2018-05-12T21:28:49.000Z
tests/local/test_playlists.py
tamland/mopidy
7d5117c299ec33b66b67b906a9971bcbc77c3133
[ "Apache-2.0" ]
null
null
null
tests/local/test_playlists.py
tamland/mopidy
7d5117c299ec33b66b67b906a9971bcbc77c3133
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, unicode_literals import os import shutil import tempfile import unittest import pykka from mopidy import audio, core from mopidy.local import actor from mopidy.models import Playlist, Track from tests import path_to_data_dir from tests.local import generate_song class Local...
37.206897
78
0.68443
aca59a197be764efb25de583324e62d499e75835
10,806
py
Python
env/EnvMultipleStock_validation.py
paullintilhac/engs108-project
dd97d1200d7688a9df2e4ebe003427f796e161e6
[ "MIT" ]
null
null
null
env/EnvMultipleStock_validation.py
paullintilhac/engs108-project
dd97d1200d7688a9df2e4ebe003427f796e161e6
[ "MIT" ]
null
null
null
env/EnvMultipleStock_validation.py
paullintilhac/engs108-project
dd97d1200d7688a9df2e4ebe003427f796e161e6
[ "MIT" ]
1
2022-01-13T01:42:58.000Z
2022-01-13T01:42:58.000Z
import numpy as np import pandas as pd from gym.utils import seeding import gym from gym import spaces import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import pickle # shares normalization factor # 100 shares per trade HMAX_NORMALIZE = 100 # initial amount of money we have in our account INITIAL...
41.402299
174
0.562558
917b91fc225530ae9e5a9ee0f03a2042acdced0b
308
py
Python
src/libsrv/lib/lib__PROJECT_/process.py
tecnickcom/pygen
9c969137b472c100fe8815ec5a52beabd08e179b
[ "MIT" ]
7
2018-04-23T08:03:12.000Z
2021-01-28T20:44:19.000Z
src/lib/_PROJECT_/process.py
tecnickcom/pygen
9c969137b472c100fe8815ec5a52beabd08e179b
[ "MIT" ]
1
2018-07-09T09:44:54.000Z
2018-07-09T09:44:54.000Z
src/libapp/lib/lib__PROJECT_/process.py
tecnickcom/pygen
9c969137b472c100fe8815ec5a52beabd08e179b
[ "MIT" ]
1
2018-07-09T09:33:43.000Z
2018-07-09T09:33:43.000Z
"""Example Process class.""" class Process(object): """Example process.""" def __init__(self, num=0): """Initialize a new Process. :num: Number """ self.num = num def get_double(self): """Return the number.""" return {"double": (2 * self.num)}
19.25
41
0.525974
e736e767f5f5861c6cecab4e61b72bf2c711673e
256
py
Python
tests/test_loaded_data.py
mitrofun/simple_shop
6e66f9256cb20d3ef8ec57a6a8eccb0e7b08086c
[ "MIT" ]
null
null
null
tests/test_loaded_data.py
mitrofun/simple_shop
6e66f9256cb20d3ef8ec57a6a8eccb0e7b08086c
[ "MIT" ]
null
null
null
tests/test_loaded_data.py
mitrofun/simple_shop
6e66f9256cb20d3ef8ec57a6a8eccb0e7b08086c
[ "MIT" ]
null
null
null
import pytest from apps.category import models @pytest.mark.django_db def test_loaded_in_init_test(): """ Check loaded data has in test database """ assert models.Category.objects.count() > 0 assert models.Product.objects.count() > 0
21.333333
46
0.714844
008dc386bb8f6f5b85b6bcd4929fc1965d2464b7
16,087
py
Python
sentry_sdk/integrations/django/__init__.py
adamchainz/sentry-python
d8c161fb289b44b5cd4b83d0bb31112031925713
[ "BSD-2-Clause" ]
null
null
null
sentry_sdk/integrations/django/__init__.py
adamchainz/sentry-python
d8c161fb289b44b5cd4b83d0bb31112031925713
[ "BSD-2-Clause" ]
null
null
null
sentry_sdk/integrations/django/__init__.py
adamchainz/sentry-python
d8c161fb289b44b5cd4b83d0bb31112031925713
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import sys import threading import weakref from sentry_sdk._types import MYPY from sentry_sdk.hub import Hub, _should_send_default_pii from sentry_sdk.scope import add_global_event_processor from sentry_sdk.serializer import add_global_repr_processor from...
31.855446
86
0.638217
125ba6faca129504927962e51d8e6e30cd34dfa4
269
py
Python
Prime_Number.py
SOURAV-ROY/2020-PYTHON
eb922bca3de31f4ebf53c7bedf5652271da475ee
[ "Unicode-DFS-2016", "Unicode-DFS-2015" ]
null
null
null
Prime_Number.py
SOURAV-ROY/2020-PYTHON
eb922bca3de31f4ebf53c7bedf5652271da475ee
[ "Unicode-DFS-2016", "Unicode-DFS-2015" ]
null
null
null
Prime_Number.py
SOURAV-ROY/2020-PYTHON
eb922bca3de31f4ebf53c7bedf5652271da475ee
[ "Unicode-DFS-2016", "Unicode-DFS-2015" ]
null
null
null
import math user_num = int(input('Upper Limit For Prime: ')) def is_prime(num): for p in range(2, int(math.sqrt(num) + 1)): if num % p == 0: return False return True for i in range(1, user_num + 1): if is_prime(i): print(i)
16.8125
48
0.561338
f130e5c8d581bc8b464b6a566ab5c88c892eb1d1
126
py
Python
netneurotools/__init__.py
liuzhenqi77/netneurotools
fbdf9a3c0e4c5734dda336218553da50fae54267
[ "BSD-3-Clause" ]
18
2019-08-01T00:15:17.000Z
2022-03-12T07:09:13.000Z
netneurotools/__init__.py
liuzhenqi77/netneurotools
fbdf9a3c0e4c5734dda336218553da50fae54267
[ "BSD-3-Clause" ]
100
2018-11-03T17:36:35.000Z
2021-12-11T13:21:20.000Z
netneurotools/__init__.py
liuzhenqi77/netneurotools
fbdf9a3c0e4c5734dda336218553da50fae54267
[ "BSD-3-Clause" ]
19
2017-10-24T14:44:31.000Z
2022-01-21T02:19:42.000Z
__all__ = [ '__version__', ] from ._version import get_versions __version__ = get_versions()['version'] del get_versions
15.75
39
0.738095
3dcce62de9be7d57ad2561ed816be9d66501705a
727
py
Python
Python3/437.path-sum-iii.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/437.path-sum-iii.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/437.path-sum-iii.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=437 lang=python3 # # [437] Path Sum III # # @lc code=start # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def pathSum(self, root, sum): if not root: ...
20.771429
97
0.543329
04547842e1fbc20128c5746cae64e7dea4fa0c00
304
py
Python
src/optimModels/__init__.py
sousamd/optimModels
b11d26eb72f19da0b97abbd4fb6513de06a348ef
[ "Apache-2.0" ]
1
2020-01-09T08:58:05.000Z
2020-01-09T08:58:05.000Z
src/optimModels/__init__.py
sousamd/optimModels
b11d26eb72f19da0b97abbd4fb6513de06a348ef
[ "Apache-2.0" ]
null
null
null
src/optimModels/__init__.py
sousamd/optimModels
b11d26eb72f19da0b97abbd4fb6513de06a348ef
[ "Apache-2.0" ]
2
2020-01-16T16:15:28.000Z
2020-01-21T16:31:20.000Z
from optimModels.model.kineticModel import load_kinetic_model from optimModels.simulation.run import kinetic_simulation from optimModels.optimization.evaluation_functions import build_evaluation_function from optimModels.optimization.run import kinetic_strain_optim, cbm_strain_optim, gecko_strain_optim
60.8
99
0.907895
88f52f1fb772198977c4d27964dc49764aadb158
195
py
Python
file_explorer/seabird/jpg_file.py
sharksmhi/file_explorer
0d28d16af9ef6562f16c9196821ed96c90651bf9
[ "MIT" ]
null
null
null
file_explorer/seabird/jpg_file.py
sharksmhi/file_explorer
0d28d16af9ef6562f16c9196821ed96c90651bf9
[ "MIT" ]
null
null
null
file_explorer/seabird/jpg_file.py
sharksmhi/file_explorer
0d28d16af9ef6562f16c9196821ed96c90651bf9
[ "MIT" ]
null
null
null
from file_explorer.file import InstrumentFile class JpgFile(InstrumentFile): suffix = '.jpg' def _save_info_from_file(self): pass def _save_attributes(self): pass
16.25
45
0.687179
11534f6fd0136b95583bb2520e90f0a501a61d9e
305
py
Python
2019/05/graphics/men-women-workforce-participation-20190517/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2019/05/graphics/men-women-workforce-participation-20190517/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2019/05/graphics/men-women-workforce-participation-20190517/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1slP4XuSpRK1WGzQViyR0O1O7Cqn3eQcScs2qXz3Lo9I' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.785714
77
0.819672
453d87ccb4a5034bb7728d05f8a987ddd9422f83
3,308
py
Python
tests/test_order_lines.py
elcolumbio/mollie-api-python
743c7c10df5916bfa14e2c4e82ad5cca17bc2ae3
[ "BSD-2-Clause" ]
null
null
null
tests/test_order_lines.py
elcolumbio/mollie-api-python
743c7c10df5916bfa14e2c4e82ad5cca17bc2ae3
[ "BSD-2-Clause" ]
null
null
null
tests/test_order_lines.py
elcolumbio/mollie-api-python
743c7c10df5916bfa14e2c4e82ad5cca17bc2ae3
[ "BSD-2-Clause" ]
null
null
null
from mollie.api.objects.order_line import OrderLine from .utils import assert_list_object ORDER_ID = 'ord_kEn1PlbGa' LINE_ID = 'odl_dgtxyl' def test_get_order_lines(client, response): """Retrieve lines of a single order by order ID.""" response.get('https://api.mollie.com/v2/orders/{order_id}'.format(order_...
38.917647
105
0.640568
a90e5c50e54b945e67aa9db0edd24e833245ed9d
15,607
py
Python
python/pyspark/mllib/evaluation.py
pmadrigal/spark
eb0b4d6e2ddfb765f082d0d88472626336ad2609
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "BSD-3-Clause" ]
53
2016-04-22T03:57:05.000Z
2020-08-11T02:54:15.000Z
python/pyspark/mllib/evaluation.py
pmadrigal/spark
eb0b4d6e2ddfb765f082d0d88472626336ad2609
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "BSD-3-Clause" ]
9
2015-09-25T20:21:52.000Z
2020-02-04T18:25:21.000Z
python/pyspark/mllib/evaluation.py
pmadrigal/spark
eb0b4d6e2ddfb765f082d0d88472626336ad2609
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "BSD-3-Clause" ]
42
2016-04-22T03:56:50.000Z
2020-11-23T09:32:25.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 us...
31.85102
99
0.603575
e3c7a090f1b9d7153f2befc6b921ac27f6c0b77b
1,697
py
Python
database_tool.py
christopher-roelofs/GameEventHub
4ed43f27b5e0593e511613906ec2d9369483fae0
[ "MIT" ]
null
null
null
database_tool.py
christopher-roelofs/GameEventHub
4ed43f27b5e0593e511613906ec2d9369483fae0
[ "MIT" ]
null
null
null
database_tool.py
christopher-roelofs/GameEventHub
4ed43f27b5e0593e511613906ec2d9369483fae0
[ "MIT" ]
null
null
null
import database_tools from os.path import exists import sys def create_patch(): print("-------------------------------------") print("Creating patch ...") print("This process wil create a database.patch file by comparing current database to an older version") input("Press enter to continue") print(...
35.354167
108
0.574543
72ef66e38fd9d3f0ba14e39fc26f3bac6426b0f5
1,059
py
Python
main.py
Ragnar-Oock/setlist_v2_connexion
760c7bfca83467f118778ad7bd3dd9cc78cf5007
[ "MIT" ]
null
null
null
main.py
Ragnar-Oock/setlist_v2_connexion
760c7bfca83467f118778ad7bd3dd9cc78cf5007
[ "MIT" ]
null
null
null
main.py
Ragnar-Oock/setlist_v2_connexion
760c7bfca83467f118778ad7bd3dd9cc78cf5007
[ "MIT" ]
null
null
null
import os from logging.config import dictConfig import connexion from dotenv import load_dotenv from flask_cors import CORS from pony.flask import Pony from custom_resolver.resolvers import FixedRestyResolver from models.core import db os.chdir(os.path.dirname(os.path.realpath(__file__))) load_dotenv(".env.local") l...
23.533333
76
0.672332
bfb4c4e5f0ddea5e8f57b53a9d1cff73ebcd954e
1,027
py
Python
openapi-contract/generated/generate_paths.py
equinor/api-first-workbench
cf2765eb3c61cab886cee349f128d68570d25205
[ "Apache-2.0" ]
2
2021-11-05T09:18:19.000Z
2021-11-23T11:08:45.000Z
openapi-contract/generated/generate_paths.py
equinor/api-first-workbench
cf2765eb3c61cab886cee349f128d68570d25205
[ "Apache-2.0" ]
null
null
null
openapi-contract/generated/generate_paths.py
equinor/api-first-workbench
cf2765eb3c61cab886cee349f128d68570d25205
[ "Apache-2.0" ]
null
null
null
import sys import yaml def add_maintenance_api_to_path(yaml_path): with open(yaml_path, 'r') as stream: try: loaded_yaml = yaml.safe_load(stream) prepend_paths(loaded_yaml) output = yaml_path.split('.y')[0] + '-with-full-path.yaml' path = output.split('opena...
32.09375
85
0.623174
2353f2b66129dae5e0ca7a653130bf8bd1f44267
24,014
py
Python
sdk/python/pulumi_azure_nextgen/managedservices/v20200201preview/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/managedservices/v20200201preview/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/managedservices/v20200201preview/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# 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...
41.982517
348
0.683934
420faa932c6bb580d7afddae827b505d28ddfa9f
750
py
Python
OpenCV/Section2-Advanced/gradients_edge_detection.py
CChCheChen/OpenCV-Course
ce6842184c44c5b1a042943462eae9671c8a3300
[ "MIT" ]
null
null
null
OpenCV/Section2-Advanced/gradients_edge_detection.py
CChCheChen/OpenCV-Course
ce6842184c44c5b1a042943462eae9671c8a3300
[ "MIT" ]
null
null
null
OpenCV/Section2-Advanced/gradients_edge_detection.py
CChCheChen/OpenCV-Course
ce6842184c44c5b1a042943462eae9671c8a3300
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np img = cv.imread('Resources/Photos/group 1.jpg') # cv.imshow('Group 1', img) gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY) # cv.imshow('gray', gray) # Laplacian lap = cv.Laplacian(gray, cv.CV_64F) lap = np.uint8(np.absolute(lap)) cv.imshow('Laplacian', lap) # Sobel Gradient Magnitude...
28.846154
109
0.722667