hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
08ff9019fb33f7bd07bbb934aa60dcaec3316fb3
982
py
Python
app/errors/handlers.py
ThembiNsele/ClimateMind-Backend
0e418000b2a0141a1e4a7c11dbe3564082a3f4bb
[ "MIT" ]
6
2020-08-20T10:49:59.000Z
2022-01-24T16:49:46.000Z
app/errors/handlers.py
ThembiNsele/ClimateMind-Backend
0e418000b2a0141a1e4a7c11dbe3564082a3f4bb
[ "MIT" ]
95
2020-07-24T22:32:34.000Z
2022-03-05T15:01:16.000Z
app/errors/handlers.py
ThembiNsele/ClimateMind-Backend
0e418000b2a0141a1e4a7c11dbe3564082a3f4bb
[ "MIT" ]
5
2020-07-30T17:29:09.000Z
2021-01-10T19:46:15.000Z
from app import db from flask import jsonify from flask import make_response from app.errors import bp from app.errors.errors import DatabaseError, AlreadyExistsError, CustomError from flask_cors import cross_origin @bp.app_errorhandler(CustomError) @cross_origin() def handle_custom_error(error): response = jsoni...
26.540541
85
0.759674
from app import db from flask import jsonify from flask import make_response from app.errors import bp from app.errors.errors import DatabaseError, AlreadyExistsError, CustomError from flask_cors import cross_origin @bp.app_errorhandler(CustomError) @cross_origin() def handle_custom_error(error): response = jsoni...
true
true
08ff90388b09b43f1d5b966a3ab774440fedfe1c
445
py
Python
maximum_subarray.py
zgwmike/hackerrankanswers
f294ed39f67286670b2cfcb9cf80b926c1efcc15
[ "Apache-2.0" ]
null
null
null
maximum_subarray.py
zgwmike/hackerrankanswers
f294ed39f67286670b2cfcb9cf80b926c1efcc15
[ "Apache-2.0" ]
null
null
null
maximum_subarray.py
zgwmike/hackerrankanswers
f294ed39f67286670b2cfcb9cf80b926c1efcc15
[ "Apache-2.0" ]
null
null
null
# https://www.hackerrank.com/challenges/maxsubarray/problem for _ in range(input()): n = input() arr = map(int,raw_input().split()) max_sum = -999999999 c_sum = 0 sum1 = 0 for i in range(n): sum1+=arr[i] if arr[i]>0: c_sum += arr[i] if sum1>max_sum: ...
24.722222
59
0.514607
for _ in range(input()): n = input() arr = map(int,raw_input().split()) max_sum = -999999999 c_sum = 0 sum1 = 0 for i in range(n): sum1+=arr[i] if arr[i]>0: c_sum += arr[i] if sum1>max_sum: max_sum = sum1 if sum1<0: sum1 = 0 ...
true
true
08ff904c45f6d65786332d3e8b25cd2479a6f377
2,382
py
Python
examples/AdafruitDHT.py
Sam8777/Adafruit_Python_DHT
b7c92c09b966fefecbbca577a9be3a43498db576
[ "MIT" ]
null
null
null
examples/AdafruitDHT.py
Sam8777/Adafruit_Python_DHT
b7c92c09b966fefecbbca577a9be3a43498db576
[ "MIT" ]
null
null
null
examples/AdafruitDHT.py
Sam8777/Adafruit_Python_DHT
b7c92c09b966fefecbbca577a9be3a43498db576
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # 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 ...
42.535714
98
0.731738
import sys import Adafruit_DHT sensor_args = { '11': Adafruit_DHT.DHT11, '22': Adafruit_DHT.DHT22, '2302': Adafruit_DHT.AM2302 } if len(sys.argv) == 3 and sys.argv[1] in sensor_args: sensor = sensor_args[sys.argv[1]] pin = sys.argv[2] else: print('Usage: sudo ./Adafruit...
true
true
08ff90e362ce95c3aaf531b99244f749cff69302
2,598
py
Python
examples/load_cnn_example.py
alperkesen/bilstm-crf
577f93e2ef7e5814dca41aa32e2731d52f496b79
[ "MIT" ]
null
null
null
examples/load_cnn_example.py
alperkesen/bilstm-crf
577f93e2ef7e5814dca41aa32e2731d52f496b79
[ "MIT" ]
null
null
null
examples/load_cnn_example.py
alperkesen/bilstm-crf
577f93e2ef7e5814dca41aa32e2731d52f496b79
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(parentdir) import bilstm from bilstm.tagger import Tagger from bilstm.models import BiLSTMCRF from bilstm.preprocessing import IndexTransformer from bilstm.utils ...
32.886076
78
0.613164
import os import sys parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(parentdir) import bilstm from bilstm.tagger import Tagger from bilstm.models import BiLSTMCRF from bilstm.preprocessing import IndexTransformer from bilstm.utils import load_data_and_labels from seqeval.metri...
true
true
08ff910b35f8ffb0726224d3d4b07c675612aeb3
1,926
py
Python
vrplot/animated.py
brenobeirigo/vrplot
e9ec5450940bd576f43c4ed07f17ae228dbd0eb8
[ "MIT" ]
null
null
null
vrplot/animated.py
brenobeirigo/vrplot
e9ec5450940bd576f43c4ed07f17ae228dbd0eb8
[ "MIT" ]
null
null
null
vrplot/animated.py
brenobeirigo/vrplot
e9ec5450940bd576f43c4ed07f17ae228dbd0eb8
[ "MIT" ]
null
null
null
################################################################################ ## PLOT ######################################################################## ################################################################################ # ANIMATIONS #%matplotlib widget import matplotlib.pyplot as plt import matp...
30.571429
173
0.551921
import matplotlib.pyplot as plt import matplotlib.animation as animation from IPython.display import HTML from vrplot import util, static def show_solutions(solutions, coords, node_labels, fig=None, ax=None, figsize=(8,8), vehicle_route_colors = ['#e41a1c', '#377eb8','#4daf4a','#984ea3','#ff7f00', '#ffff33']): i...
true
true
08ff92837152d1bdb6fb40429754cf6d3e47e9cf
17,671
py
Python
vnpy/app/data_manager/ui/widget.py
jiechic/vnpy
6dcaf9249e9cee4f4049c8f0f97e91bf9e2eb112
[ "MIT" ]
2
2021-04-22T09:44:19.000Z
2021-04-22T17:23:16.000Z
vnpy/app/data_manager/ui/widget.py
jiechic/vnpy
6dcaf9249e9cee4f4049c8f0f97e91bf9e2eb112
[ "MIT" ]
null
null
null
vnpy/app/data_manager/ui/widget.py
jiechic/vnpy
6dcaf9249e9cee4f4049c8f0f97e91bf9e2eb112
[ "MIT" ]
1
2021-04-11T11:57:12.000Z
2021-04-11T11:57:12.000Z
from typing import Tuple, Dict from functools import partial from datetime import datetime, timedelta from vnpy.trader.ui import QtWidgets, QtCore from vnpy.trader.engine import MainEngine, EventEngine from vnpy.trader.constant import Interval, Exchange from vnpy.trader.database import DB_TZ from ..engine import APP_...
29.799325
92
0.5629
from typing import Tuple, Dict from functools import partial from datetime import datetime, timedelta from vnpy.trader.ui import QtWidgets, QtCore from vnpy.trader.engine import MainEngine, EventEngine from vnpy.trader.constant import Interval, Exchange from vnpy.trader.database import DB_TZ from ..engine import APP_...
true
true
08ff934df34429b9fad030115ce67ea9f395521d
521
py
Python
setup.py
PythonCoderAS/GoComics-Downloader
d3c9fd9ff7e92c54c6e08208c42ad8642a962b89
[ "MIT" ]
1
2018-04-19T16:14:47.000Z
2018-04-19T16:14:47.000Z
setup.py
PythonCoderAS/GoComics-Downloader
d3c9fd9ff7e92c54c6e08208c42ad8642a962b89
[ "MIT" ]
1
2018-06-20T22:29:26.000Z
2018-12-08T14:15:50.000Z
setup.py
PokestarFan/GoComics-Downloader
d3c9fd9ff7e92c54c6e08208c42ad8642a962b89
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='gocomics_downloader', description='Conveniently download the comic images from GoComics comic files. ', version='1.1.1.2', url='https://github.com/PokestarFan/GoComics-Downloader', author='PokestarFan', author_email='pokestarfan@yahoo.com', l...
28.944444
87
0.627639
from setuptools import setup setup(name='gocomics_downloader', description='Conveniently download the comic images from GoComics comic files. ', version='1.1.1.2', url='https://github.com/PokestarFan/GoComics-Downloader', author='PokestarFan', author_email='pokestarfan@yahoo.com', l...
true
true
08ff93d133815a4dea4fc11ddde2b7439c8f008b
49
py
Python
qtile_config/icon/__init__.py
DorianGray/qtile-conf
8ce02d016b987e6a0dcbaca3ecc3de018df14d0c
[ "MIT" ]
null
null
null
qtile_config/icon/__init__.py
DorianGray/qtile-conf
8ce02d016b987e6a0dcbaca3ecc3de018df14d0c
[ "MIT" ]
null
null
null
qtile_config/icon/__init__.py
DorianGray/qtile-conf
8ce02d016b987e6a0dcbaca3ecc3de018df14d0c
[ "MIT" ]
null
null
null
class Icon: def __init__(self): pass
12.25
23
0.571429
class Icon: def __init__(self): pass
true
true
08ff93e11a2154eaa87cad748f29ceffe6fd4c6a
928
py
Python
praw/models/reddit/mixins/editable.py
Theonefoster/praw
3d79b43a5193387974455f3d3ccdfff644714d09
[ "BSD-2-Clause" ]
4
2021-10-14T21:22:25.000Z
2022-03-12T19:58:48.000Z
praw/models/reddit/mixins/editable.py
Theonefoster/praw
3d79b43a5193387974455f3d3ccdfff644714d09
[ "BSD-2-Clause" ]
null
null
null
praw/models/reddit/mixins/editable.py
Theonefoster/praw
3d79b43a5193387974455f3d3ccdfff644714d09
[ "BSD-2-Clause" ]
1
2022-03-15T22:52:53.000Z
2022-03-15T22:52:53.000Z
"""Provide the EditableMixin class.""" from ....const import API_PATH class EditableMixin(object): """Interface for classes that can be edited and deleted.""" def delete(self): """Delete the object.""" self._reddit.post(API_PATH['del'], {'id': self.fullname}) def edit(self, body): ...
34.37037
75
0.609914
from ....const import API_PATH class EditableMixin(object): def delete(self): self._reddit.post(API_PATH['del'], {'id': self.fullname}) def edit(self, body): data = {'text': body, 'thing_id': self.fullname} updated = self._reddit.post(API_PATH['edit'], data=data)[0] for attri...
true
true
08ff93f892c7f3280d14a61f00939f6cdd7e33b5
24
py
Python
trans/templates/moratab/__init__.py
hanwentao/ioi-translation
fbb0855406f91a17007deac07c93d880bbb80a59
[ "MIT", "BSD-3-Clause" ]
233
2015-01-10T18:34:32.000Z
2022-03-19T14:03:11.000Z
trans/templates/moratab/__init__.py
hanwentao/ioi-translation
fbb0855406f91a17007deac07c93d880bbb80a59
[ "MIT", "BSD-3-Clause" ]
14
2021-02-07T10:01:16.000Z
2022-01-01T09:17:12.000Z
trans/templates/moratab/__init__.py
hanwentao/ioi-translation
fbb0855406f91a17007deac07c93d880bbb80a59
[ "MIT", "BSD-3-Clause" ]
93
2015-05-28T20:46:13.000Z
2022-02-01T11:59:11.000Z
from .moratab import *
8
22
0.708333
from .moratab import *
true
true
08ff9507a20936aa6140f72bba818a191033108d
9,057
py
Python
gui/elements/modules.py
case547/acconeer-python-exploration
e92de2c3bc8b60939276128e1ddca47486cdfb54
[ "BSD-3-Clause-Clear" ]
null
null
null
gui/elements/modules.py
case547/acconeer-python-exploration
e92de2c3bc8b60939276128e1ddca47486cdfb54
[ "BSD-3-Clause-Clear" ]
null
null
null
gui/elements/modules.py
case547/acconeer-python-exploration
e92de2c3bc8b60939276128e1ddca47486cdfb54
[ "BSD-3-Clause-Clear" ]
null
null
null
from collections import namedtuple from types import ModuleType from acconeer.exptool.modes import Mode import examples.processing.breathing as breathing_module import examples.processing.button_press as button_press_module import examples.processing.distance_detector as distance_detector_module import examples.proce...
32.934545
99
0.669096
from collections import namedtuple from types import ModuleType from acconeer.exptool.modes import Mode import examples.processing.breathing as breathing_module import examples.processing.button_press as button_press_module import examples.processing.distance_detector as distance_detector_module import examples.proce...
true
true
08ff95ad1296c969140ea7407544b5b2b6b33e85
583
py
Python
pyobs/images/processors/exptime/exptime.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
4
2020-02-14T10:50:03.000Z
2022-03-25T04:15:06.000Z
pyobs/images/processors/exptime/exptime.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
60
2020-09-14T09:10:20.000Z
2022-03-25T17:51:42.000Z
pyobs/images/processors/exptime/exptime.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
2
2020-10-14T09:34:57.000Z
2021-04-27T09:35:57.000Z
import logging from pyobs.images import Image from pyobs.images.processor import ImageProcessor log = logging.getLogger(__name__) class ExpTimeEstimator(ImageProcessor): """Estimate exposure time.""" __module__ = 'pyobs.images.processors.exptime' def __call__(self, image: Image) -> float: """P...
21.592593
78
0.674099
import logging from pyobs.images import Image from pyobs.images.processor import ImageProcessor log = logging.getLogger(__name__) class ExpTimeEstimator(ImageProcessor): __module__ = 'pyobs.images.processors.exptime' def __call__(self, image: Image) -> float: raise NotImplementedError __all__ = ...
true
true
08ff96cbc09045677c194e0206b4caad20377c40
523
py
Python
tests/test_greendo.py
jmcculloch/greendo
490f552458bf4f931b56dc331a6b0db87202bfa2
[ "Apache-2.0" ]
null
null
null
tests/test_greendo.py
jmcculloch/greendo
490f552458bf4f931b56dc331a6b0db87202bfa2
[ "Apache-2.0" ]
null
null
null
tests/test_greendo.py
jmcculloch/greendo
490f552458bf4f931b56dc331a6b0db87202bfa2
[ "Apache-2.0" ]
null
null
null
import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import greendo USERNAME='TODO' PASSWORD='TODO' client = greendo.Client(USERNAME, PASSWORD) devices = client.devices[-1] def test_door_status(): print(devices.door.door_status()) assert devices.door.door_st...
23.772727
82
0.734226
import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import greendo USERNAME='TODO' PASSWORD='TODO' client = greendo.Client(USERNAME, PASSWORD) devices = client.devices[-1] def test_door_status(): print(devices.door.door_status()) assert devices.door.door_st...
true
true
08ff970c5cef636a0a2041058a3518176420bd39
4,646
py
Python
random_walk_any_dir.py
nickybu/spiking_grid_cell_model
87851335474935648c6914eba21fbf6c3213f17c
[ "MIT" ]
null
null
null
random_walk_any_dir.py
nickybu/spiking_grid_cell_model
87851335474935648c6914eba21fbf6c3213f17c
[ "MIT" ]
null
null
null
random_walk_any_dir.py
nickybu/spiking_grid_cell_model
87851335474935648c6914eba21fbf6c3213f17c
[ "MIT" ]
null
null
null
import random import numpy as np import random_walk_step import utilities as util class RandomWalkAny: """ Simulate a random walk in any direction represented as a weighting list of the 4 cardinal directions """ def __init__(self, speed, timestep, grid_x, grid_y): # Cardinal directions and t...
34.671642
107
0.580499
import random import numpy as np import random_walk_step import utilities as util class RandomWalkAny: def __init__(self, speed, timestep, grid_x, grid_y): self.directions = { (0, 1): 0, (1, 0): 0, (-1, 0): 0, (0, -1): 0, } self.cur...
true
true
08ff970ee537a32548b37157fd620c496a5e69e9
1,367
py
Python
tribolium_clustering/data_visualisation/_plot_cvi_each_timepoint_3D.py
Cryaaa/tribolium-clustering
f5751ec8c007e95e8a9688d2d8e34508b04f0822
[ "BSD-3-Clause" ]
null
null
null
tribolium_clustering/data_visualisation/_plot_cvi_each_timepoint_3D.py
Cryaaa/tribolium-clustering
f5751ec8c007e95e8a9688d2d8e34508b04f0822
[ "BSD-3-Clause" ]
null
null
null
tribolium_clustering/data_visualisation/_plot_cvi_each_timepoint_3D.py
Cryaaa/tribolium-clustering
f5751ec8c007e95e8a9688d2d8e34508b04f0822
[ "BSD-3-Clause" ]
null
null
null
def plot_cvi_each_timepoint_3D(cvi_scores_concatenated, timepoints_list, cluster_numbers, cvi_name = '', timepoint_label = 'Timepoints'): '''Plots a 3D plot displaying timepoint indices, cluster numbers and their cluster validation index scores Parameters ---------- cvi_scores_concatenated : CVI sc...
30.377778
137
0.669349
def plot_cvi_each_timepoint_3D(cvi_scores_concatenated, timepoints_list, cluster_numbers, cvi_name = '', timepoint_label = 'Timepoints'): import numpy as np from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm x = np.array(timepoints_list) ...
true
true
08ff9777abfbc7ca0741fd06cf5af369c71b4a2f
2,620
py
Python
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/tests/test_source.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
null
null
null
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/tests/test_source.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/tests/test_source.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
1
2020-11-04T03:21:24.000Z
2020-11-04T03:21:24.000Z
""" Test highlight backend. """ from __future__ import absolute_import import unittest from django.core.management import call_command from nine.versions import DJANGO_GTE_1_10 import pytest from rest_framework import status import factories from .base import BaseRestFrameworkTestCase if DJANGO_GTE_1_10: f...
26.2
79
0.63626
from __future__ import absolute_import import unittest from django.core.management import call_command from nine.versions import DJANGO_GTE_1_10 import pytest from rest_framework import status import factories from .base import BaseRestFrameworkTestCase if DJANGO_GTE_1_10: from django.urls import reverse e...
true
true
08ff993564ff3fa75479d3bc286c8b1625924674
6,624
py
Python
tests/test_socialreact.py
mt-group-1/social-react
8b3b75b08c595c99ab61da3c76b4916a524f75b0
[ "MIT" ]
null
null
null
tests/test_socialreact.py
mt-group-1/social-react
8b3b75b08c595c99ab61da3c76b4916a524f75b0
[ "MIT" ]
4
2021-11-08T20:48:42.000Z
2021-11-11T21:38:16.000Z
tests/test_socialreact.py
mt-group-1/social-react
8b3b75b08c595c99ab61da3c76b4916a524f75b0
[ "MIT" ]
null
null
null
""" This module for testing social react program fuctions """ import io import os import warnings from io import StringIO from typing import Tuple from unittest import mock from unittest.mock import patch import fetch_posts.scrapper as scraper import pytest import socialreact from analyzer.analyzer import load_dat...
24.716418
87
0.668025
import io import os import warnings from io import StringIO from typing import Tuple from unittest import mock from unittest.mock import patch import fetch_posts.scrapper as scraper import pytest import socialreact from analyzer.analyzer import load_data from analyzer.com_classfiction import classify_comments from ana...
true
true
08ff99d6d53d038db1d37f521f79a651749df5ae
3,877
py
Python
utils/theano_complex_extension.py
beconstant/urnn
7c74d0eff7181756c080cd44cce732cef2089242
[ "MIT" ]
null
null
null
utils/theano_complex_extension.py
beconstant/urnn
7c74d0eff7181756c080cd44cce732cef2089242
[ "MIT" ]
null
null
null
utils/theano_complex_extension.py
beconstant/urnn
7c74d0eff7181756c080cd44cce732cef2089242
[ "MIT" ]
null
null
null
import numpy as np from theano import tensor #------------------------------------------------------------------------------ # Complex theano funcs def frac(A): return A[0, :, :], A[1, :, :] def skew_frac(A): return tensor.tril(A, -1) - tensor.tril(A, -1).T,\ tensor.triu(A, 0).T + tensor.triu(A...
27.892086
104
0.568223
import numpy as np from theano import tensor def frac(A): return A[0, :, :], A[1, :, :] def skew_frac(A): return tensor.tril(A, -1) - tensor.tril(A, -1).T,\ tensor.triu(A, 0).T + tensor.triu(A, 1) def skew_hermitian_parametrized(skew): skew_real, skew_imag = frac(skew) A = tensor.tril...
true
true
08ff9a105dc167e68a016efbbcb7f822e3fc4c90
14,028
py
Python
sahara/tests/unit/service/validation/utils.py
esikachev/scenario
40a59114c7bac44fea510767a3c07d73649f4caf
[ "Apache-2.0" ]
null
null
null
sahara/tests/unit/service/validation/utils.py
esikachev/scenario
40a59114c7bac44fea510767a3c07d73649f4caf
[ "Apache-2.0" ]
null
null
null
sahara/tests/unit/service/validation/utils.py
esikachev/scenario
40a59114c7bac44fea510767a3c07d73649f4caf
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Mirantis 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 writ...
32.929577
79
0.581908
import ast import re import mock import novaclient.exceptions as nova_ex import six from sahara.conductor import resource as r from sahara.plugins.vanilla import plugin import sahara.service.validation as v from sahara.tests.unit import base from sahara.tests.unit import testutils as tu m = {} _types_checks = { ...
true
true
08ff9b45d9b60e03b2e90a6fc846c42cabf928b0
1,787
py
Python
python/pymxp/pymxp/messages/leave_response.py
MoysheBenRabi/setp
7619f0bae457e14e2fb41e58bfe517019628c5de
[ "Apache-2.0" ]
1
2021-07-13T12:22:22.000Z
2021-07-13T12:22:22.000Z
python/pymxp/pymxp/messages/leave_response.py
MoysheBenRabi/setp
7619f0bae457e14e2fb41e58bfe517019628c5de
[ "Apache-2.0" ]
1
2021-01-04T21:53:56.000Z
2021-01-04T21:59:36.000Z
python/pymxp/pymxp/messages/leave_response.py
MoysheBenRabi/setp
7619f0bae457e14e2fb41e58bfe517019628c5de
[ "Apache-2.0" ]
1
2021-09-19T16:18:54.000Z
2021-09-19T16:18:54.000Z
# Copyright 2009 Moyshe BenRabi # # 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 ...
31.910714
76
0.702854
from message_base import * from response_fragment import ResponseFragment MXP_MESSAGE_LEAVE_RESPONSE = 13 class LeaveResponse(Message): def __init__(self): self.type_code = MXP_MESSAGE_LEAVE_RESPONSE self.response_header = ResponseFragment() def clear(self): self.response_header = ...
true
true
08ff9bbedecba043188488bf992011b4c4575a39
9,815
py
Python
reports/configs/only_logsp_dmpnn4_2/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2021-10-18T03:44:53.000Z
2021-10-18T03:44:53.000Z
reports/configs/only_logsp_dmpnn4_2/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
null
null
null
reports/configs/only_logsp_dmpnn4_2/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2022-02-22T08:32:01.000Z
2022-02-22T08:32:01.000Z
from dataclasses import dataclass, field from typing import List import tensorflow as tf from graph_networks.utilities import * import logging import os ATOM_FEATURE_DIM = DGIN4_ATOM_FEATURE_DIM EDGE_FEATURE_DIM = DGIN4_EDGE_FEATURE_DIM @dataclass class BasicModelConfig: """ Config for model1/2/3 run file. ...
44.013453
169
0.669791
from dataclasses import dataclass, field from typing import List import tensorflow as tf from graph_networks.utilities import * import logging import os ATOM_FEATURE_DIM = DGIN4_ATOM_FEATURE_DIM EDGE_FEATURE_DIM = DGIN4_EDGE_FEATURE_DIM @dataclass class BasicModelConfig: model_name: str = 'only_logsp_dmpnn4_2' ...
true
true
08ff9c8d4ec9f5432fc8cbb9c2bb02e1663f1036
1,680
py
Python
pyseries/Pipelines/AnalyzeBinRIv.py
ryscet/pySeries
3ab1e0a9dbdeaef34c6c6d1fed5b248203c84fea
[ "MIT" ]
1
2019-01-23T08:59:51.000Z
2019-01-23T08:59:51.000Z
pyseries/Pipelines/AnalyzeBinRIv.py
ryscet/pySeries
3ab1e0a9dbdeaef34c6c6d1fed5b248203c84fea
[ "MIT" ]
null
null
null
pyseries/Pipelines/AnalyzeBinRIv.py
ryscet/pySeries
3ab1e0a9dbdeaef34c6c6d1fed5b248203c84fea
[ "MIT" ]
3
2016-11-04T14:15:58.000Z
2016-11-10T22:31:10.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jun 24 12:27:09 2016 @author: user """ import sys sys.path.insert(0, '/Users/user/Desktop/repo_for_pyseries/pyseries') import pyseries.LoadingData as loading import pyseries.Preprocessing as prep import pyseries.Analysis as analysis import matplotlib.pyplot as plt import se...
32.941176
145
0.647024
import sys sys.path.insert(0, '/Users/user/Desktop/repo_for_pyseries/pyseries') import pyseries.LoadingData as loading import pyseries.Preprocessing as prep import pyseries.Analysis as analysis import matplotlib.pyplot as plt import seaborn as sns import numpy as np from scipy import stats from scipy import signal ...
true
true
08ff9e8fb54610367b2341010a86b11a0274b7dd
1,893
py
Python
lutin_opencv-ml.py
generic-library/opencv-lutin
923e6f2dbbdfc99f1c3f6b1766615cc9eb7a5229
[ "Apache-2.0" ]
null
null
null
lutin_opencv-ml.py
generic-library/opencv-lutin
923e6f2dbbdfc99f1c3f6b1766615cc9eb7a5229
[ "Apache-2.0" ]
null
null
null
lutin_opencv-ml.py
generic-library/opencv-lutin
923e6f2dbbdfc99f1c3f6b1766615cc9eb7a5229
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import realog.debug as debug import lutin.tools as tools import os def get_type(): return "LIBRARY" def get_desc(): return "opencv Image processing library" def get_licence(): return "APAPCHE-2" def get_maintainer(): return ["Maksim Shabunin <maksim.shabunin@itseez.com>"] def get_version(): ...
24.584416
56
0.637084
import realog.debug as debug import lutin.tools as tools import os def get_type(): return "LIBRARY" def get_desc(): return "opencv Image processing library" def get_licence(): return "APAPCHE-2" def get_maintainer(): return ["Maksim Shabunin <maksim.shabunin@itseez.com>"] def get_version(): return [3,1,0] de...
true
true
08ff9e96581c6c2a8dc5c1be003f8a057d2850d4
2,346
py
Python
test/test_merge.py
dbrattli/aioreactive
e057264a5905964c68d443b98b3e602279b3b9ed
[ "MIT" ]
280
2016-10-08T11:01:11.000Z
2022-03-31T02:36:30.000Z
test/test_merge.py
webclinic017/aioreactive
e057264a5905964c68d443b98b3e602279b3b9ed
[ "MIT" ]
26
2016-10-22T09:14:47.000Z
2021-06-15T12:04:04.000Z
test/test_merge.py
webclinic017/aioreactive
e057264a5905964c68d443b98b3e602279b3b9ed
[ "MIT" ]
18
2017-01-15T15:29:15.000Z
2021-09-14T15:35:13.000Z
import logging import aioreactive as rx import pytest from aioreactive.notification import OnCompleted, OnNext from aioreactive.testing import AsyncTestObserver, AsyncTestSubject, VirtualTimeEventLoop from aioreactive.types import AsyncObservable from expression.core import pipe logging.basicConfig(level=logging.DEBU...
23.227723
89
0.641944
import logging import aioreactive as rx import pytest from aioreactive.notification import OnCompleted, OnNext from aioreactive.testing import AsyncTestObserver, AsyncTestSubject, VirtualTimeEventLoop from aioreactive.types import AsyncObservable from expression.core import pipe logging.basicConfig(level=logging.DEBU...
true
true
08ff9ea2068adadb69a092ad39ed15014a96738a
264
py
Python
notifications/utils.py
mohammadfayaj/Django-Pro-Eshop
1c9d8ed0f068dedaea68cc28971a4cd5b2b22520
[ "Apache-2.0" ]
null
null
null
notifications/utils.py
mohammadfayaj/Django-Pro-Eshop
1c9d8ed0f068dedaea68cc28971a4cd5b2b22520
[ "Apache-2.0" ]
null
null
null
notifications/utils.py
mohammadfayaj/Django-Pro-Eshop
1c9d8ed0f068dedaea68cc28971a4cd5b2b22520
[ "Apache-2.0" ]
null
null
null
'''' Django notifications utils file ''' # -*- coding: utf-8 -*- import sys if sys.version > '3': long = int # pylint: disable=invalid-name def slug2id(slug): return long(slug) - 110909 def id2slug(notification_id): return notification_id + 110909
20.307692
46
0.670455
import sys if sys.version > '3': long = int def slug2id(slug): return long(slug) - 110909 def id2slug(notification_id): return notification_id + 110909
true
true
08ff9fbe56cd15aa7b7a2a085bfe244ae1205116
2,274
py
Python
src/data.py
yzhq97/distortion-free-wide-angle.pytorch
3d8899a84e5f5c4fca62385116bfdaf4876b2ff7
[ "MIT" ]
10
2021-03-10T07:27:10.000Z
2022-03-28T16:35:45.000Z
src/data.py
yzhq97/distortion-free-wide-angle.pytorch
3d8899a84e5f5c4fca62385116bfdaf4876b2ff7
[ "MIT" ]
1
2021-04-08T14:07:08.000Z
2021-04-08T14:07:08.000Z
src/data.py
yzhq97/distortion-free-wide-angle.pytorch
3d8899a84e5f5c4fca62385116bfdaf4876b2ff7
[ "MIT" ]
4
2021-05-20T09:36:10.000Z
2022-02-14T06:55:14.000Z
import cv2 import os import numpy as np from torch.utils.data import Dataset from stereographic import get_uniform_stereo_mesh from perception import get_face_masks, get_object_masks class ImageDataset(Dataset): def __init__(self, args, root='data'): self.Q = args.Q self.mesh_ds_ratio = args.mes...
35.53125
127
0.646438
import cv2 import os import numpy as np from torch.utils.data import Dataset from stereographic import get_uniform_stereo_mesh from perception import get_face_masks, get_object_masks class ImageDataset(Dataset): def __init__(self, args, root='data'): self.Q = args.Q self.mesh_ds_ratio = args.mes...
true
true
08ffa0342a93c7148ba58005c7e82fd62d1f8a14
17,307
py
Python
tensorflow_addons/layers/normalizations_test.py
pkan2/addons
8fe50d7600a592b06984f1ead61fdd8adb008ad1
[ "Apache-2.0" ]
1
2019-09-08T21:58:07.000Z
2019-09-08T21:58:07.000Z
tensorflow_addons/layers/normalizations_test.py
pkan2/addons
8fe50d7600a592b06984f1ead61fdd8adb008ad1
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/layers/normalizations_test.py
pkan2/addons
8fe50d7600a592b06984f1ead61fdd8adb008ad1
[ "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...
38.545657
88
0.643381
import sys import pytest import numpy as np import tensorflow as tf from tensorflow_addons.layers.normalizations import FilterResponseNormalization from tensorflow_addons.layers.normalizations import GroupNormalization from tensorflow_addons.layers.normalizations import InstanceNormalization from tensorflow_addons.u...
true
true
08ffa1437f72d544c695eeaabec275a4ba3ec3f6
4,478
py
Python
py/tests/edge_driver_test.py
mastrzyz/edge-selenium-tools
77f4cf252a18e39e913fa8cb2710cd67769b96a5
[ "Apache-2.0" ]
74
2020-04-15T06:59:57.000Z
2022-03-16T13:43:31.000Z
py/tests/edge_driver_test.py
mastrzyz/edge-selenium-tools
77f4cf252a18e39e913fa8cb2710cd67769b96a5
[ "Apache-2.0" ]
37
2020-04-30T12:56:30.000Z
2022-02-21T17:04:57.000Z
py/tests/edge_driver_test.py
mastrzyz/edge-selenium-tools
77f4cf252a18e39e913fa8cb2710cd67769b96a5
[ "Apache-2.0" ]
18
2020-04-15T17:10:33.000Z
2021-12-24T09:49:09.000Z
# Copyright 2020 Microsoft # # 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, soft...
37.949153
97
0.653417
import unittest import sys import os sys.path.insert(1, os.path.join(sys.path[0], '..')) from msedge.selenium_tools import Edge, EdgeOptions, EdgeService class EdgeDriverTest(unittest.TestCase): @unittest.skip(reason="Edge Legacy is not available on Azure hosted environment.") def test_default(self): ...
true
true
08ffa167a8ef8f8fc53da49440042cbfb2308c7e
3,116
py
Python
mysite/mysite/settings.py
valdyrtorres/djangoamostra
4186086189ab2832d98fcb2970dc551e598410a8
[ "bzip2-1.0.6" ]
null
null
null
mysite/mysite/settings.py
valdyrtorres/djangoamostra
4186086189ab2832d98fcb2970dc551e598410a8
[ "bzip2-1.0.6" ]
null
null
null
mysite/mysite/settings.py
valdyrtorres/djangoamostra
4186086189ab2832d98fcb2970dc551e598410a8
[ "bzip2-1.0.6" ]
null
null
null
""" Django settings for mysite 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 # Bu...
25.540984
91
0.695764
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 's-_*qg$8ilys%xcv#m3t2(8b)=zdj9=)m8+_pukau2*v46lwm0' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'polls.apps.PollsConfig', 'django.contrib.admin', 'django.contrib.auth', ...
true
true
08ffa17639656ae541ab7563789cb903f1f2fcf6
24,497
py
Python
patroni/api.py
Abd-Elrazek/patroni
2c128520cf7371c80294c6f1dc7d70b4699a8b50
[ "MIT" ]
null
null
null
patroni/api.py
Abd-Elrazek/patroni
2c128520cf7371c80294c6f1dc7d70b4699a8b50
[ "MIT" ]
3
2019-03-25T08:01:20.000Z
2019-09-04T09:05:48.000Z
patroni/api.py
Abd-Elrazek/patroni
2c128520cf7371c80294c6f1dc7d70b4699a8b50
[ "MIT" ]
1
2019-03-19T11:29:50.000Z
2019-03-19T11:29:50.000Z
import base64 import json import logging import psycopg2 import time import traceback import dateutil.parser import datetime import os from patroni.postgresql import PostgresConnectionException, PostgresException, Postgresql from patroni.utils import deep_compare, parse_bool, patch_config, Retry, \ RetryFailedErro...
43.980251
120
0.59991
import base64 import json import logging import psycopg2 import time import traceback import dateutil.parser import datetime import os from patroni.postgresql import PostgresConnectionException, PostgresException, Postgresql from patroni.utils import deep_compare, parse_bool, patch_config, Retry, \ RetryFailedErro...
true
true
08ffa402f7db57832a19929451166b3f9a303195
867
py
Python
gget/constants.py
lauraluebbert/gget
43b24f46e910ee88af9b62f649d386cdfa3354b1
[ "MIT" ]
3
2022-02-22T03:28:31.000Z
2022-03-01T23:30:33.000Z
gget/constants.py
lauraluebbert/gget
43b24f46e910ee88af9b62f649d386cdfa3354b1
[ "MIT" ]
null
null
null
gget/constants.py
lauraluebbert/gget
43b24f46e910ee88af9b62f649d386cdfa3354b1
[ "MIT" ]
null
null
null
import uuid # Ensembl REST API server for gget seq and info ENSEMBL_REST_API = "http://rest.ensembl.org/" ENSEMBL_FTP_URL = "http://ftp.ensembl.org/pub/" # NCBI URL for gget info NCBI_URL = "https://www.ncbi.nlm.nih.gov" # UniProt REST API server for gget seq UNIPROT_REST_API = "https://www.uniprot.org/uploadlists/"...
30.964286
82
0.761246
import uuid ENSEMBL_REST_API = "http://rest.ensembl.org/" ENSEMBL_FTP_URL = "http://ftp.ensembl.org/pub/" NCBI_URL = "https://www.ncbi.nlm.nih.gov" UNIPROT_REST_API = "https://www.uniprot.org/uploadlists/" BLAST_URL = "https://blast.ncbi.nlm.nih.gov/Blast.cgi" BLAST_CLIENT = "gget_client-" + str(uuid.uuid4()) MUSC...
true
true
08ffa45ae0e4f6d340748bebeeb7fe5bc4fbcdb4
999
py
Python
SISTGEDIT/registropersonal/actividad/urls.py
Edwineverth/SISGEDIT
7d433d5e045b71ac087e40d95ec7d26f159e6453
[ "Apache-2.0" ]
null
null
null
SISTGEDIT/registropersonal/actividad/urls.py
Edwineverth/SISGEDIT
7d433d5e045b71ac087e40d95ec7d26f159e6453
[ "Apache-2.0" ]
null
null
null
SISTGEDIT/registropersonal/actividad/urls.py
Edwineverth/SISGEDIT
7d433d5e045b71ac087e40d95ec7d26f159e6453
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import (ActividadFormulario, ActividadLisView, GuardarActividad, TipoactividadCreate, TipoactividadDelete, TipoactividadListar, TipoactividadUpdate) # from registropersonal.sistema.models import Persona, Usuario urlpatterns = [ path...
43.434783
77
0.711712
from django.urls import path from .views import (ActividadFormulario, ActividadLisView, GuardarActividad, TipoactividadCreate, TipoactividadDelete, TipoactividadListar, TipoactividadUpdate) urlpatterns = [ path('listar/', ActividadLisView.as_view(), name='actividad_listar'...
true
true
08ffa47c81a70209914229c58fd14751648c8fe9
959
py
Python
app/dataset/utils.py
toshiks/number_recognizer
5dee9da830d1a790578eceb923ebf7ffc776339b
[ "MIT" ]
null
null
null
app/dataset/utils.py
toshiks/number_recognizer
5dee9da830d1a790578eceb923ebf7ffc776339b
[ "MIT" ]
null
null
null
app/dataset/utils.py
toshiks/number_recognizer
5dee9da830d1a790578eceb923ebf7ffc776339b
[ "MIT" ]
null
null
null
from typing import Dict from .word_to_number_dicts import COMPONENT_NUMBERS, THOUSANDS def get_alphabet() -> str: """ :return: alphabet with last blank symbol """ return ' абвгдеёжзийклмнопрстуфхцчшщъыьэюя_' def get_blank_id() -> int: return get_alphabet().index('_') def get_letter_to_index_m...
22.833333
73
0.626694
from typing import Dict from .word_to_number_dicts import COMPONENT_NUMBERS, THOUSANDS def get_alphabet() -> str: return ' абвгдеёжзийклмнопрстуфхцчшщъыьэюя_' def get_blank_id() -> int: return get_alphabet().index('_') def get_letter_to_index_map() -> Dict[str, int]: alphabet = get_alphabet() ret...
true
true
08ffa4ed53afc02346ee7fb32abd3a8281f791b5
5,180
py
Python
datumaro/util/test_utils.py
zmfkzj/datumaro
d440ee0b2378a33ef35626568df65fa9b0c53417
[ "MIT" ]
1
2021-09-26T23:03:00.000Z
2021-09-26T23:03:00.000Z
datumaro/util/test_utils.py
zmfkzj/datumaro
d440ee0b2378a33ef35626568df65fa9b0c53417
[ "MIT" ]
null
null
null
datumaro/util/test_utils.py
zmfkzj/datumaro
d440ee0b2378a33ef35626568df65fa9b0c53417
[ "MIT" ]
1
2020-11-21T17:43:55.000Z
2020-11-21T17:43:55.000Z
# Copyright (C) 2019-2020 Intel Corporation # # SPDX-License-Identifier: MIT import inspect import os import os.path as osp import shutil import tempfile from datumaro.components.extractor import AnnotationType from datumaro.components.project import Project from datumaro.util import find def current_function_name...
36.223776
83
0.672201
import inspect import os import os.path as osp import shutil import tempfile from datumaro.components.extractor import AnnotationType from datumaro.components.project import Project from datumaro.util import find def current_function_name(depth=1): return inspect.getouterframes(inspect.currentframe())[depth].f...
true
true
08ffa59bbd4d37a215f70c62be7f2babf846bd01
22,153
py
Python
turbogears/i18n/data/el.py
timmartin19/turbogears
b5420cb7e55757d418d8fadb512dbd7803c4279c
[ "MIT" ]
null
null
null
turbogears/i18n/data/el.py
timmartin19/turbogears
b5420cb7e55757d418d8fadb512dbd7803c4279c
[ "MIT" ]
9
2015-01-27T19:13:56.000Z
2019-03-29T14:44:31.000Z
turbogears/i18n/data/el.py
timmartin19/turbogears
b5420cb7e55757d418d8fadb512dbd7803c4279c
[ "MIT" ]
13
2015-04-14T14:15:53.000Z
2020-03-18T01:05:46.000Z
# Formatting configuration for locale el languages={'el': u'\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac', 'en': u'\u0391\u03b3\u03b3\u03bb\u03b9\u03ba\u03ac', 'zh': u'\u039a\u03b9\u03bd\u03b5\u03b6\u03b9\u03ba\u03ac', 'ca': u'\u039a\u03b1\u03c4\u03b1\u03bb\u03b1\u03bd\u03b9\u03ba\u03ac', 'it': u'\u0399\u03c4\u03b...
1,230.722222
18,123
0.740893
languages={'el': u'\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac', 'en': u'\u0391\u03b3\u03b3\u03bb\u03b9\u03ba\u03ac', 'zh': u'\u039a\u03b9\u03bd\u03b5\u03b6\u03b9\u03ba\u03ac', 'ca': u'\u039a\u03b1\u03c4\u03b1\u03bb\u03b1\u03bd\u03b9\u03ba\u03ac', 'it': u'\u0399\u03c4\u03b1\u03bb\u03b9\u03ba\u03ac', 'ar': u'\u039...
true
true
08ffa5fa095f24b1500339a8f606059afefbcfc7
1,414
py
Python
bag_serdes_ec/mux_2to1.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
null
null
null
bag_serdes_ec/mux_2to1.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
null
null
null
bag_serdes_ec/mux_2to1.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
1
2020-01-07T04:53:53.000Z
2020-01-07T04:53:53.000Z
# -*- coding: utf-8 -*- from typing import Dict import os import pkg_resources from bag.design import Module yaml_file = pkg_resources.resource_filename(__name__, os.path.join('netlist_info', 'mux_2to1.yaml')) # noinspection PyPep8Naming class bag_serdes_ec__mux_2to1(Module): """Module for library bag_serdes...
26.185185
100
0.649222
from typing import Dict import os import pkg_resources from bag.design import Module yaml_file = pkg_resources.resource_filename(__name__, os.path.join('netlist_info', 'mux_2to1.yaml')) class bag_serdes_ec__mux_2to1(Module): def __init__(self, bag_config, parent=None, prj=None, **kwargs): Module.__i...
true
true
08ffa71a0d5b657570360721fa58101088cb316b
10,027
py
Python
hummingbot/client/command/config_command.py
sosaucily/hummingbot
082883319253399b2c7a321c709c97dcd84b9b72
[ "Apache-2.0" ]
4
2021-02-17T23:57:12.000Z
2022-02-04T00:06:22.000Z
hummingbot/client/command/config_command.py
sosaucily/hummingbot
082883319253399b2c7a321c709c97dcd84b9b72
[ "Apache-2.0" ]
1
2022-03-20T11:21:06.000Z
2022-03-20T11:21:06.000Z
hummingbot/client/command/config_command.py
sosaucily/hummingbot
082883319253399b2c7a321c709c97dcd84b9b72
[ "Apache-2.0" ]
3
2021-01-25T00:23:20.000Z
2022-03-21T18:57:33.000Z
import asyncio from typing import ( List, Any, ) from decimal import Decimal import pandas as pd from os.path import join from hummingbot.client.settings import ( GLOBAL_CONFIG_PATH, CONF_FILE_PATH, ) from hummingbot.client.config.global_config_map import global_config_map from hummingbot.client.config....
46.207373
132
0.588312
import asyncio from typing import ( List, Any, ) from decimal import Decimal import pandas as pd from os.path import join from hummingbot.client.settings import ( GLOBAL_CONFIG_PATH, CONF_FILE_PATH, ) from hummingbot.client.config.global_config_map import global_config_map from hummingbot.client.config....
true
true
08ffa7846dbe2b420185c1ac4c773811ca65454b
1,729
py
Python
setup.py
giannisterzopoulos/scribd_dl
a7614a6747ea166bac68278dcfb0e05fc5441613
[ "MIT" ]
29
2018-07-21T05:22:22.000Z
2022-02-03T17:02:30.000Z
setup.py
rohrfacu/scribd-dl
a7614a6747ea166bac68278dcfb0e05fc5441613
[ "MIT" ]
15
2018-03-20T22:19:03.000Z
2022-03-11T23:18:33.000Z
setup.py
rohrfacu/scribd-dl
a7614a6747ea166bac68278dcfb0e05fc5441613
[ "MIT" ]
8
2019-01-05T15:43:45.000Z
2021-12-28T02:13:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=E0602,W0122 """The setup script.""" from setuptools import setup, find_packages with open('README.rst', encoding='utf-8') as readme_file: long_description = '\n' + readme_file.read() requirements = [ 'selenium>=3.8.0', 'Pillow>=4.0.0', ...
27.887097
82
0.649508
from setuptools import setup, find_packages with open('README.rst', encoding='utf-8') as readme_file: long_description = '\n' + readme_file.read() requirements = [ 'selenium>=3.8.0', 'Pillow>=4.0.0', 'img2pdf>=0.2.3', 'requests>=2.10.0' ] setup_requirements = [] test_requirements = [] exec(c...
true
true
08ffa7c0fee6ed9fbf66b1b2ad15d24270de091b
13,002
py
Python
src/cltk/prosody/lat/metrical_validator.py
deeox/cltk
95e3aa2ec980f5814781a51da3f26cc02b0cc22c
[ "MIT" ]
757
2015-11-20T00:58:52.000Z
2022-03-31T06:34:24.000Z
src/cltk/prosody/lat/metrical_validator.py
deeox/cltk
95e3aa2ec980f5814781a51da3f26cc02b0cc22c
[ "MIT" ]
950
2015-11-17T05:38:29.000Z
2022-03-14T16:09:34.000Z
src/cltk/prosody/lat/metrical_validator.py
deeox/cltk
95e3aa2ec980f5814781a51da3f26cc02b0cc22c
[ "MIT" ]
482
2015-11-22T18:13:02.000Z
2022-03-20T21:22:02.000Z
"""Utility class for validating scansion patterns: hexameter, hendecasyllables, pentameter. Allows users to configure the scansion symbols internally via a constructor argument; a suitable default is provided.""" import logging from typing import List from Levenshtein import distance from cltk.prosody.lat.scansion_c...
42.351792
152
0.578142
import logging from typing import List from Levenshtein import distance from cltk.prosody.lat.scansion_constants import ScansionConstants LOG = logging.getLogger(__name__) LOG.addHandler(logging.NullHandler()) __author__ = ["Todd Cook <todd.g.cook@gmail.com>"] __license__ = "MIT License" class MetricalValidator:...
true
true
08ffa836f7cff0c8ad5b30a04a7215596edc8b60
13,338
py
Python
dali/test/python/test_operator_multipaste.py
cyyever/DALI
e2b2d5a061da605e3e9e681017a7b2d53fe41a62
[ "ECL-2.0", "Apache-2.0" ]
3,967
2018-06-19T04:39:09.000Z
2022-03-31T10:57:53.000Z
dali/test/python/test_operator_multipaste.py
cyyever/DALI
e2b2d5a061da605e3e9e681017a7b2d53fe41a62
[ "ECL-2.0", "Apache-2.0" ]
3,494
2018-06-21T07:09:58.000Z
2022-03-31T19:44:51.000Z
dali/test/python/test_operator_multipaste.py
cyyever/DALI
e2b2d5a061da605e3e9e681017a7b2d53fe41a62
[ "ECL-2.0", "Apache-2.0" ]
531
2018-06-19T23:53:10.000Z
2022-03-30T08:35:59.000Z
# Copyright (c) 2021, NVIDIA CORPORATION & 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
42.75
130
0.610211
import sys from nvidia.dali.pipeline import Pipeline import nvidia.dali.fn as fn import nvidia.dali.types as types import numpy as np import os from test_utils import get_dali_extra_path DEBUG_LVL = 0 SHOW_IMAGES = False np.random.seed(1234) data_root = get_dali_extra_path() img_dir = os.path.join(data_root, 'db',...
true
true
08ffa8e28a773d9412be6e29f23bc27b4164c37a
1,382
py
Python
async_mock/context_manager.py
cbrichford/async_mock
83e5df6b0fc21e85cf4b3105cd61d401950ce5e4
[ "BSD-3-Clause" ]
null
null
null
async_mock/context_manager.py
cbrichford/async_mock
83e5df6b0fc21e85cf4b3105cd61d401950ce5e4
[ "BSD-3-Clause" ]
4
2016-07-19T21:41:55.000Z
2022-01-12T22:05:49.000Z
async_mock/context_manager.py
cbrichford/async-mock
83e5df6b0fc21e85cf4b3105cd61d401950ce5e4
[ "BSD-3-Clause" ]
null
null
null
from unittest.mock import MagicMock, PropertyMock from . import CoroutineMockBuilder class MagicMockAsyncContextWrapper(MagicMock): """ MagicMock doesn't like working as an AsyncContextManager with __aenter__/__aexit__, so this is a workaround for that. Just use an instance of this instead of MagicMo...
39.485714
112
0.694645
from unittest.mock import MagicMock, PropertyMock from . import CoroutineMockBuilder class MagicMockAsyncContextWrapper(MagicMock): def __init__(self, *args, **kwargs): default_aenter_aexit = kwargs.pop('DefaultAenterAexit', False) loop = kwargs.pop('loop', None) super().__init__(*args, ...
true
true
08ffa9960f5d21c031581c33aaef617039f1ce1b
96
py
Python
src/service.py
miladlink/Streamlit_Flask
23340eeab192f0ccae9a6cc03f7eb9b7b8985f6a
[ "MIT" ]
1
2021-12-28T07:57:56.000Z
2021-12-28T07:57:56.000Z
src/service.py
miladlink/Streamlit_Flask
23340eeab192f0ccae9a6cc03f7eb9b7b8985f6a
[ "MIT" ]
null
null
null
src/service.py
miladlink/Streamlit_Flask
23340eeab192f0ccae9a6cc03f7eb9b7b8985f6a
[ "MIT" ]
null
null
null
from flask import Flask from service_warmup import init app = Flask (__name__) app = init (app)
19.2
31
0.770833
from flask import Flask from service_warmup import init app = Flask (__name__) app = init (app)
true
true
08ffa9c8dfbeeb83266b8573fbb2713921780b1d
744
py
Python
test/test_pipeline/components/regression/test_adaboost.py
ihounie/auto-sklearn
6a72f0df60b0c66ad75b0100d8d22c07da6217bb
[ "BSD-3-Clause" ]
2
2020-02-22T15:00:49.000Z
2020-06-28T08:20:19.000Z
test/test_pipeline/components/regression/test_adaboost.py
ihounie/auto-sklearn
6a72f0df60b0c66ad75b0100d8d22c07da6217bb
[ "BSD-3-Clause" ]
9
2021-02-12T17:52:34.000Z
2021-06-26T11:37:41.000Z
test/test_pipeline/components/regression/test_adaboost.py
ihounie/auto-sklearn
6a72f0df60b0c66ad75b0100d8d22c07da6217bb
[ "BSD-3-Clause" ]
1
2021-04-06T09:38:12.000Z
2021-04-06T09:38:12.000Z
import sklearn.ensemble from autosklearn.pipeline.components.regression.adaboost import \ AdaboostRegressor from .test_base import BaseRegressionComponentTest class AdaBoostComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston"] = 0.60525743737887405 res["...
29.76
65
0.771505
import sklearn.ensemble from autosklearn.pipeline.components.regression.adaboost import \ AdaboostRegressor from .test_base import BaseRegressionComponentTest class AdaBoostComponentTest(BaseRegressionComponentTest): __test__ = True res = dict() res["default_boston"] = 0.60525743737887405 res["...
true
true
08ffa9e4c6fb6500a9c1859d6ed6514899ebcc9a
4,115
py
Python
SQliteHelper.py
leavin296/fresheng
617ededc456e765e42c711336e23eb0931466163
[ "MIT" ]
null
null
null
SQliteHelper.py
leavin296/fresheng
617ededc456e765e42c711336e23eb0931466163
[ "MIT" ]
null
null
null
SQliteHelper.py
leavin296/fresheng
617ededc456e765e42c711336e23eb0931466163
[ "MIT" ]
null
null
null
import sqlite3 class SQLiteHelper: def __init__(self, name = 'None'): self.conn = None self.cursor = None if name: self.open(name) def open(self, name): try: self.conn = sqlite3.connect(name, check_same_thread=False) self.cursor = se...
35.782609
117
0.562819
import sqlite3 class SQLiteHelper: def __init__(self, name = 'None'): self.conn = None self.cursor = None if name: self.open(name) def open(self, name): try: self.conn = sqlite3.connect(name, check_same_thread=False) self.cursor = se...
true
true
08ffaa09d1017abcb6463057df14f691b987a765
9,291
py
Python
marketlearn/causality_network/vector_ar/bivar.py
mrajancsr/QuantEquityManagement
026aa038268295a7d5e32c3d24c491e3c559e22e
[ "Apache-2.0" ]
2
2020-07-22T09:28:31.000Z
2020-08-17T01:19:42.000Z
marketlearn/causality_network/vector_ar/bivar.py
mrajancsr/QuantEquityManagement
026aa038268295a7d5e32c3d24c491e3c559e22e
[ "Apache-2.0" ]
null
null
null
marketlearn/causality_network/vector_ar/bivar.py
mrajancsr/QuantEquityManagement
026aa038268295a7d5e32c3d24c491e3c559e22e
[ "Apache-2.0" ]
3
2020-08-04T02:48:32.000Z
2020-08-17T01:20:09.000Z
"""Implementation of Vector AutoRegressive Model""" from operator import itemgetter import numpy as np from scipy.linalg import solve_triangular from scipy.stats import f as ftest from numpy.linalg import det from arch.unitroot import PhillipsPerron from marketlearn.causality_network.vector_ar.varbase import Base from...
33.420863
81
0.57109
from operator import itemgetter import numpy as np from scipy.linalg import solve_triangular from scipy.stats import f as ftest from numpy.linalg import det from arch.unitroot import PhillipsPerron from marketlearn.causality_network.vector_ar.varbase import Base from marketlearn.learning.linear_models.linear_regressio...
true
true
08ffaa2cfad989906493b02872bd59d2d35aa4fa
136,089
py
Python
amgut/lib/locale_data/british_gut.py
ElDeveloper/american-gut-web
5ef11eadad21b6e60bbd073b50bfb5ba4522017a
[ "BSD-3-Clause" ]
null
null
null
amgut/lib/locale_data/british_gut.py
ElDeveloper/american-gut-web
5ef11eadad21b6e60bbd073b50bfb5ba4522017a
[ "BSD-3-Clause" ]
null
null
null
amgut/lib/locale_data/british_gut.py
ElDeveloper/american-gut-web
5ef11eadad21b6e60bbd073b50bfb5ba4522017a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division from amgut.lib.config_manager import AMGUT_CONFIG # ----------------------------------------------------------------------------- # Copyright (c) 2014--, The American Gut Project Development Team. # # Distributed under the terms of the BSD 3...
139.578462
3,376
0.752103
from __future__ import division from amgut.lib.config_manager import AMGUT_CONFIG HELP_EMAIL = "info@britishgut.org" _SITEBASE = AMGUT_CONFIG.sitebase media_locale = { 'LOCALE': AMGUT_CONFIG.locale, 'SITEBASE': _SITEBASE, 'ANALYTICS_ID': 'UA-55355651-1', 'LATITUDE': 54.5, 'LONGITUDE': -3.5, ...
true
true
08ffaa764b92e285f42056b42dd20e6190ad9d8c
2,212
py
Python
src/www/views.py
headout/ergo-airflow
6fbdeea1e8bb1ac87bf635be10c7a770cbf3884c
[ "MIT" ]
null
null
null
src/www/views.py
headout/ergo-airflow
6fbdeea1e8bb1ac87bf635be10c7a770cbf3884c
[ "MIT" ]
null
null
null
src/www/views.py
headout/ergo-airflow
6fbdeea1e8bb1ac87bf635be10c7a770cbf3884c
[ "MIT" ]
1
2020-09-26T20:26:02.000Z
2020-09-26T20:26:02.000Z
import logging from functools import wraps import airflow import pendulum from airflow.utils.db import provide_session try: from airflow.www_rbac import utils as airflowutils except ImportError: # Airflow 2.0.0 from airflow.www import utils as airflowutils from flask import request from flask_appbuilder im...
29.105263
94
0.632007
import logging from functools import wraps import airflow import pendulum from airflow.utils.db import provide_session try: from airflow.www_rbac import utils as airflowutils except ImportError: from airflow.www import utils as airflowutils from flask import request from flask_appbuilder import BaseView, e...
true
true
08ffac5ffc2a42605340b2d4c4d83e71bdf7ab7e
6,046
py
Python
TIDALDL-PY/tidal_dl/lang/turkish.py
yaronzz/AlbumDL
aba9493201c4854b65509c151fd24c3e6bbb0dda
[ "Apache-2.0" ]
null
null
null
TIDALDL-PY/tidal_dl/lang/turkish.py
yaronzz/AlbumDL
aba9493201c4854b65509c151fd24c3e6bbb0dda
[ "Apache-2.0" ]
null
null
null
TIDALDL-PY/tidal_dl/lang/turkish.py
yaronzz/AlbumDL
aba9493201c4854b65509c151fd24c3e6bbb0dda
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : turkish.py @Time : 2020/09/13 @Author : Gorgeous & shhade for hack & Mutlu ŞEN @Version : 1.0 @Contact : realmutlusen@gmail.com @Desc : Yanlış çeviri ya da düzenleme için 'realmutlusen@gmail.com'a mail atabilirsiniz. ''' ...
50.383333
134
0.685577
class LangTurkish(object): SETTING = "AYARLAR" VALUE = "VERİLER" SETTING_DOWNLOAD_PATH = "İndirme konumu:" SETTING_ONLY_M4A = ".mp4 uzantısı m4a'ya çevrilsin:" SETTING_ADD_EXPLICIT_TAG = "'Küfürlü' etiketi eklensin:" SETTING_ADD_HYPHEN = "Boşluk yerine '-' eklensin:" SETTING_ADD_Y...
true
true
08ffae106fc028ba8de6dd6cb722ce1d6c8c1165
1,702
py
Python
ovn-tester/tests/netpol_cross_ns.py
mohammadheib/ovn-heater
d5ae548dceae639cfb956149742a8fe557b2e393
[ "Apache-2.0" ]
3
2020-05-14T17:22:35.000Z
2021-07-29T20:43:35.000Z
ovn-tester/tests/netpol_cross_ns.py
mohammadheib/ovn-heater
d5ae548dceae639cfb956149742a8fe557b2e393
[ "Apache-2.0" ]
54
2020-04-17T05:25:24.000Z
2022-01-10T13:44:46.000Z
ovn-tester/tests/netpol_cross_ns.py
mohammadheib/ovn-heater
d5ae548dceae639cfb956149742a8fe557b2e393
[ "Apache-2.0" ]
9
2020-04-24T12:49:18.000Z
2021-08-23T13:25:02.000Z
from collections import namedtuple from ovn_context import Context from ovn_workload import Namespace from ovn_ext_cmd import ExtCmd NpCrossNsCfg = namedtuple('NpCrossNsCfg', ['n_ns', 'pods_ns_ratio']) class NetpolCrossNs(ExtCmd): def __init__(self, config, ce...
37
76
0.583431
from collections import namedtuple from ovn_context import Context from ovn_workload import Namespace from ovn_ext_cmd import ExtCmd NpCrossNsCfg = namedtuple('NpCrossNsCfg', ['n_ns', 'pods_ns_ratio']) class NetpolCrossNs(ExtCmd): def __init__(self, config, ce...
true
true
08ffae716da7a48950cde6ef2a26dd29d1a1ba65
4,953
py
Python
forca.py
luigiMinardi/forca_e_adivinhacao
7cb4485e2227046e70a5f1ee7bd8bc0350ae7b92
[ "MIT" ]
null
null
null
forca.py
luigiMinardi/forca_e_adivinhacao
7cb4485e2227046e70a5f1ee7bd8bc0350ae7b92
[ "MIT" ]
null
null
null
forca.py
luigiMinardi/forca_e_adivinhacao
7cb4485e2227046e70a5f1ee7bd8bc0350ae7b92
[ "MIT" ]
null
null
null
import random def jogar(): imprime_mensagem_abertura() palavra_secreta = carrega_palavra_secreta() letras_acertadas = inicializa_letras_acertadas(palavra_secreta) enforcou = False acertou = False erros = 0 maximo_de_erros = 7 letras_erradas = [] chutes_feitos = set() print(...
28.964912
151
0.445992
import random def jogar(): imprime_mensagem_abertura() palavra_secreta = carrega_palavra_secreta() letras_acertadas = inicializa_letras_acertadas(palavra_secreta) enforcou = False acertou = False erros = 0 maximo_de_erros = 7 letras_erradas = [] chutes_feitos = set() print(...
true
true
08ffb0a3e6838205378cd6d5cc08d8ef6580fd38
982
py
Python
setup.py
illiteratecoder/simple-gmail
e48164525b4573b63f0ef9bbb467c5cee0afa348
[ "MIT" ]
1
2019-03-02T11:03:44.000Z
2019-03-02T11:03:44.000Z
setup.py
illiteratecoder/simple-gmail
e48164525b4573b63f0ef9bbb467c5cee0afa348
[ "MIT" ]
null
null
null
setup.py
illiteratecoder/simple-gmail
e48164525b4573b63f0ef9bbb467c5cee0afa348
[ "MIT" ]
1
2019-03-03T22:29:19.000Z
2019-03-03T22:29:19.000Z
import setuptools setuptools.setup( name="simplegmail", version="4.0.4", url="https://github.com/jeremyephron/simplegmail", author="Jeremy Ephron", author_email="jeremye@cs.stanford.edu", description="A simple Python API client for Gmail.", long_description=open('README.md').read(), lon...
31.677419
56
0.6222
import setuptools setuptools.setup( name="simplegmail", version="4.0.4", url="https://github.com/jeremyephron/simplegmail", author="Jeremy Ephron", author_email="jeremye@cs.stanford.edu", description="A simple Python API client for Gmail.", long_description=open('README.md').read(), lon...
true
true
08ffb1f473b6a15f453188efcc5c9082c49f27b2
8,140
py
Python
docs/conf.py
AlexLSB/django-pwn
3ee08bba270c3349033fe593f60939f549268b6c
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
AlexLSB/django-pwn
3ee08bba270c3349033fe593f60939f549268b6c
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
AlexLSB/django-pwn
3ee08bba270c3349033fe593f60939f549268b6c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # 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 # autogenerated file. # # ...
31.796875
80
0.714865
import sys, os cwd = os.getcwd() parent = os.path.dirname(cwd) sys.path.append(parent) extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' project = u'django-pwn' copyright = u'2018, Alex K' # |version| and |release|, also u...
true
true
08ffb2bb7428db59aa3f4a6550616e6642146774
451
py
Python
main2.py
liubaishuo-github/VTX550_generate_tool_path
98245b86f0a30c9d00fcecb9e2583bc786c8d33c
[ "MIT" ]
null
null
null
main2.py
liubaishuo-github/VTX550_generate_tool_path
98245b86f0a30c9d00fcecb9e2583bc786c8d33c
[ "MIT" ]
null
null
null
main2.py
liubaishuo-github/VTX550_generate_tool_path
98245b86f0a30c9d00fcecb9e2583bc786c8d33c
[ "MIT" ]
null
null
null
import read_file, remove_parentheses, retrieve_coord, rotation_matrix, generate_lines_catia pch_file = read_file.read_file() non_parentheses_pch_file = remove_parentheses.remove_par(pch_file) retrieved_coord = retrieve_coord.retrieve_coord(non_parentheses_pch_file) transfered_coord = rotation_matrix.transf(retrieved_c...
37.583333
91
0.886918
import read_file, remove_parentheses, retrieve_coord, rotation_matrix, generate_lines_catia pch_file = read_file.read_file() non_parentheses_pch_file = remove_parentheses.remove_par(pch_file) retrieved_coord = retrieve_coord.retrieve_coord(non_parentheses_pch_file) transfered_coord = rotation_matrix.transf(retrieved_c...
true
true
08ffb3662c8fc68f9e1653c591ecef0c93b64d65
6,525
py
Python
neutron/tests/functional/agent/test_l2_lb_agent.py
EwaldvanGeffen/neutron
858d7f33950a80c73501377a4b2cd36b915d0f40
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/tests/functional/agent/test_l2_lb_agent.py
EwaldvanGeffen/neutron
858d7f33950a80c73501377a4b2cd36b915d0f40
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/tests/functional/agent/test_l2_lb_agent.py
EwaldvanGeffen/neutron
858d7f33950a80c73501377a4b2cd36b915d0f40
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# 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 agreed to in...
45
79
0.629119
import mock from oslo_config import cfg from oslo_utils import uuidutils import testtools from neutron.agent.linux import ip_lib from neutron.objects import trunk from neutron.plugins.ml2.drivers.linuxbridge.agent import \ linuxbridge_neutron_agent from neutron.services.trunk.drivers.linuxbridge.agent import trun...
true
true
08ffb398087bf745ce5110fa7b1626fbcbfd6b4c
2,568
py
Python
Examples/Image/MNIST/AdditionalFiles/mnist_convert.py
hawkjk/AI
9386b8d310f75779d75376bc25c7db810ef77c8e
[ "RSA-MD" ]
6
2019-08-18T05:29:09.000Z
2021-01-19T09:58:45.000Z
Examples/Image/MNIST/AdditionalFiles/mnist_convert.py
hawkjk/AI
9386b8d310f75779d75376bc25c7db810ef77c8e
[ "RSA-MD" ]
null
null
null
Examples/Image/MNIST/AdditionalFiles/mnist_convert.py
hawkjk/AI
9386b8d310f75779d75376bc25c7db810ef77c8e
[ "RSA-MD" ]
1
2019-03-20T21:44:46.000Z
2019-03-20T21:44:46.000Z
import sys import urllib import gzip import shutil import os import struct import numpy as np def loadData(src, cimg): print ('Downloading ' + src) gzfname, h = urllib.urlretrieve(src, './delete.me') print ('Done.') try: with gzip.open(gzfname) as gz: n = struct.unpack('I', gz.read...
38.328358
93
0.578271
import sys import urllib import gzip import shutil import os import struct import numpy as np def loadData(src, cimg): print ('Downloading ' + src) gzfname, h = urllib.urlretrieve(src, './delete.me') print ('Done.') try: with gzip.open(gzfname) as gz: n = struct.unpack('I', gz.read...
false
true
08ffb4b116536414f4d0e0ca77de3a0b39dd8afe
11,494
py
Python
clients/oathkeeper/python/ory_oathkeeper_client/model/get_rule_unauthorized.py
russelg/sdk
2515b35981784319bd7d58fcf0b5ab85b501b62f
[ "Apache-2.0" ]
77
2020-02-14T17:27:36.000Z
2022-03-25T08:44:52.000Z
clients/oathkeeper/python/ory_oathkeeper_client/model/get_rule_unauthorized.py
russelg/sdk
2515b35981784319bd7d58fcf0b5ab85b501b62f
[ "Apache-2.0" ]
125
2020-02-07T21:45:52.000Z
2022-03-31T12:54:24.000Z
clients/oathkeeper/python/ory_oathkeeper_client/model/get_rule_unauthorized.py
russelg/sdk
2515b35981784319bd7d58fcf0b5ab85b501b62f
[ "Apache-2.0" ]
44
2020-01-31T22:05:47.000Z
2022-03-09T14:41:22.000Z
""" ORY Oathkeeper ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. # noqa: E501 The version of the OpenAPI document: v0.0.0-alpha.62 Contact: hi@ory.am Generated by: https://o...
43.703422
187
0.579607
import re import sys from ory_oathkeeper_client.model_utils import ( ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, validate_get_composed_info, )...
true
true
08ffb5459f8cc59b198fca0bd9ce9b01fc117679
340
py
Python
getDataSet.py
samkreter/kmeans-clustering-with-spatial-bias
17d47c564074f8d789b7f5370ea0acc56c19f529
[ "MIT" ]
6
2017-09-24T01:02:44.000Z
2019-07-05T12:31:55.000Z
getDataSet.py
samkreter/kmeans-clustering-with-spatial-bias
17d47c564074f8d789b7f5370ea0acc56c19f529
[ "MIT" ]
null
null
null
getDataSet.py
samkreter/kmeans-clustering-with-spatial-bias
17d47c564074f8d789b7f5370ea0acc56c19f529
[ "MIT" ]
null
null
null
import scipy.io import numpy as np #convert main dataset # mat = scipy.io.loadmat("Indian_pines.mat") # npMat = np.array(mat['indian_pines']) # np.save("npIndian_pines.npy",npMat) #convert ground truth data set mat = scipy.io.loadmat("Indian_pines_gt.mat") npMat = np.array(mat['indian_pines_gt']) np.save("npIndian_...
24.285714
45
0.747059
import scipy.io import numpy as np mat = scipy.io.loadmat("Indian_pines_gt.mat") npMat = np.array(mat['indian_pines_gt']) np.save("npIndian_pines_gt.npy",npMat)
true
true
08ffb564484b38dccaa8f25ed6aaaade0fdbd33f
6,817
py
Python
python/paddle/fluid/tests/unittests/test_elementwise_pow_op.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/fluid/tests/unittests/test_elementwise_pow_op.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/fluid/tests/unittests/test_elementwise_pow_op.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.650538
80
0.575766
from __future__ import print_function import unittest import numpy as np from op_test import OpTest, skip_check_grad_ci import paddle.fluid as fluid class TestElementwisePowOp(OpTest): def setUp(self): self.op_type = "elementwise_pow" self.inputs = { 'X': np.random.uniform(1, 2, [20, ...
true
true
08ffb592d5dfd02e49ca7cacb806f73f5f63115f
1,986
py
Python
main.py
telescopic/stampify
95f95ec98aa3f0b05d8ad39ce5dd3d89858b4488
[ "Apache-2.0" ]
2
2020-07-26T03:24:33.000Z
2020-12-19T15:40:31.000Z
main.py
telescopic/stampify
95f95ec98aa3f0b05d8ad39ce5dd3d89858b4488
[ "Apache-2.0" ]
65
2020-06-09T09:31:53.000Z
2020-07-23T08:26:04.000Z
main.py
telescopic/stampify
95f95ec98aa3f0b05d8ad39ce5dd3d89858b4488
[ "Apache-2.0" ]
9
2020-06-04T13:48:24.000Z
2022-01-03T02:42:09.000Z
""" This script creates CLI to start the program Command to run this script: $python3 main.py 'https://www.scoopwhoop.com/ entertainment/memes-from-dd-ramayan/' 5 $python3 main.py 'https://www.scoopwhoop.com/ entertainment/memes-from-dd-ramayan/' For more help: python3 main.py -h ...
30.553846
74
0.663646
import argparse import logging import os from error.stampifier_error import StampifierError from stampifier import Stampifier STAMP_DIRECTORY = 'output/' HTML_EXTENSION = '.html' LOGGER = logging.getLogger(__name__) def get_user_input(): parser = argparse.ArgumentParser(description='Stampify the webpage') ...
true
true
08ffb68794e0eaf61ae628eb71d8dc19b2c0d932
876
py
Python
seahub/role_permissions/models.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
420
2015-01-03T11:34:46.000Z
2022-03-10T07:15:41.000Z
seahub/role_permissions/models.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
735
2015-01-04T21:22:51.000Z
2022-03-31T09:26:07.000Z
seahub/role_permissions/models.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
379
2015-01-05T17:08:03.000Z
2022-03-06T00:11:50.000Z
# Copyright (c) 2012-2016 Seafile Ltd. from django.db import models class AdminRoleManager(models.Manager): def add_admin_role(self, username, role): """ Add admin role. """ amdin_role = self.model(email=username, role=role) amdin_role.save(using=self._db) return role ...
27.375
64
0.646119
from django.db import models class AdminRoleManager(models.Manager): def add_admin_role(self, username, role): amdin_role = self.model(email=username, role=role) amdin_role.save(using=self._db) return role def update_admin_role(self, username, role): amdin_role = self.get(emai...
true
true
08ffb6d831324f3a344d5b1a66c95cb12ffb2a3f
8,780
py
Python
PythonScripts/Flickr_BatchTagging_EU_keal.py
alanbseo/deepgreen
b8a19c83d75f275c5e58bc7a48beb22ce61a81d9
[ "MIT" ]
1
2020-09-18T16:07:29.000Z
2020-09-18T16:07:29.000Z
PythonScripts/Flickr_BatchTagging_EU_keal.py
alanbseo/deepgreen
b8a19c83d75f275c5e58bc7a48beb22ce61a81d9
[ "MIT" ]
null
null
null
PythonScripts/Flickr_BatchTagging_EU_keal.py
alanbseo/deepgreen
b8a19c83d75f275c5e58bc7a48beb22ce61a81d9
[ "MIT" ]
null
null
null
import os import json import numpy as np import pandas as pd from keras.applications import inception_resnet_v2 from keras.preprocessing import image img_width, img_height = 331, 331 import fnmatch from shutil import copyfile import PIL from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True # read b...
32.639405
127
0.610364
import os import json import numpy as np import pandas as pd from keras.applications import inception_resnet_v2 from keras.preprocessing import image img_width, img_height = 331, 331 import fnmatch from shutil import copyfile import PIL from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True toCop...
true
true
08ffb723534ee20fcad9bca549782c7b698d4f99
628
py
Python
venv/lib/python3.9/site-packages/marshmallow_sqlalchemy/schema/__init__.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
25
2020-10-03T07:18:44.000Z
2022-03-24T06:22:19.000Z
venv/lib/python3.9/site-packages/marshmallow_sqlalchemy/schema/__init__.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
14
2020-10-03T07:24:50.000Z
2021-04-11T14:45:31.000Z
venv/lib/python3.9/site-packages/marshmallow_sqlalchemy/schema/__init__.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
20
2020-10-03T09:49:24.000Z
2021-11-25T08:48:30.000Z
from .model_schema import ModelSchema, ModelSchemaOpts, ModelSchemaMeta from .table_schema import TableSchema, TableSchemaOpts, TableSchemaMeta from .sqlalchemy_schema import ( SQLAlchemySchema, SQLAlchemySchemaOpts, SQLAlchemyAutoSchema, SQLAlchemyAutoSchemaOpts, SQLAlchemySchemaMeta, auto_fiel...
24.153846
71
0.735669
from .model_schema import ModelSchema, ModelSchemaOpts, ModelSchemaMeta from .table_schema import TableSchema, TableSchemaOpts, TableSchemaMeta from .sqlalchemy_schema import ( SQLAlchemySchema, SQLAlchemySchemaOpts, SQLAlchemyAutoSchema, SQLAlchemyAutoSchemaOpts, SQLAlchemySchemaMeta, auto_fiel...
true
true
08ffb82d24fcaecd0a275c99c31317a146d7e718
2,819
py
Python
homeassistant/components/simplisafe/lock.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
6
2017-08-02T19:26:39.000Z
2020-03-14T22:47:41.000Z
homeassistant/components/simplisafe/lock.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
57
2020-10-15T06:47:00.000Z
2022-03-31T06:11:18.000Z
homeassistant/components/simplisafe/lock.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Support for SimpliSafe locks.""" from simplipy.errors import SimplipyError from simplipy.lock import LockStates from simplipy.websocket import EVENT_LOCK_LOCKED, EVENT_LOCK_UNLOCKED from homeassistant.components.lock import LockEntity from homeassistant.core import callback from . import SimpliSafeEntity from .con...
32.77907
82
0.65768
from simplipy.errors import SimplipyError from simplipy.lock import LockStates from simplipy.websocket import EVENT_LOCK_LOCKED, EVENT_LOCK_UNLOCKED from homeassistant.components.lock import LockEntity from homeassistant.core import callback from . import SimpliSafeEntity from .const import DATA_CLIENT, DOMAIN, LOGGE...
true
true
08ffb9555ece760890ea5e80e47a5c688d4a68cd
318
py
Python
ratings/serializers.py
BuildForSDG/asylum-be
e44031ca97964425bfa11a1d9071e7584685c327
[ "MIT" ]
null
null
null
ratings/serializers.py
BuildForSDG/asylum-be
e44031ca97964425bfa11a1d9071e7584685c327
[ "MIT" ]
23
2020-05-07T07:57:44.000Z
2022-03-12T00:36:41.000Z
ratings/serializers.py
BuildForSDG/asylum-be
e44031ca97964425bfa11a1d9071e7584685c327
[ "MIT" ]
3
2020-05-02T07:56:55.000Z
2020-05-19T14:42:54.000Z
from rest_framework import serializers from . models import Review class ReviewSerializer(serializers.ModelSerializer): class Meta: model = Review exclude = ['created', ] extra_kwargs = { 'target': {'write_only': True}, 'reviewer': {'read_only': True} }
21.2
52
0.600629
from rest_framework import serializers from . models import Review class ReviewSerializer(serializers.ModelSerializer): class Meta: model = Review exclude = ['created', ] extra_kwargs = { 'target': {'write_only': True}, 'reviewer': {'read_only': True} }
true
true
08ffb95eb888b6164eb72b182a1789bf687ea0bc
2,803
py
Python
pmft-win/avrdude-win/pmft-flasher.py
Merlin04/pmft
60f3f7cfaf90800ca807ec84d9f8db4174863ff4
[ "MIT" ]
2
2018-03-10T20:26:08.000Z
2021-09-03T21:05:29.000Z
pmft-win/avrdude-win/pmft-flasher.py
Merlin04/pmft
60f3f7cfaf90800ca807ec84d9f8db4174863ff4
[ "MIT" ]
null
null
null
pmft-win/avrdude-win/pmft-flasher.py
Merlin04/pmft
60f3f7cfaf90800ca807ec84d9f8db4174863ff4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This code by paranoid.rat on Adafruit Forums, modified by pmft project import sys import subprocess import serial import argparse import time # path to the real avrdude AVRDUDE_PATH = "\"C:\\Program Files (x86)\\pmft" # real name of avrdude AVRDUDE_NAME="avrdude-pmft\"" # pr...
30.139785
99
0.668926
import sys import subprocess import serial import argparse import time AVRDUDE_PATH = "\"C:\\Program Files (x86)\\pmft" # real name of avrdude AVRDUDE_NAME="avrdude-pmft\"" parser = argparse.ArgumentParser() parser.add_argument("-P", dest="port") args = parser.parse_known_args() if args[0].port: ...
false
true
08ffb97d1e52ffcb5b985c3aa4eb2a577fa4b06a
12,210
py
Python
train/multi_att_2_glove/train_att_bc.py
cxz1418/TemperalForPresentation
e3dc7d873b0e36f780cd430edbfe1fe6ddcb6b5a
[ "BSD-2-Clause" ]
1
2020-05-07T13:30:47.000Z
2020-05-07T13:30:47.000Z
train/multi_att_2_glove/train_att_bc.py
cxz1418/TemperalForPresentation
e3dc7d873b0e36f780cd430edbfe1fe6ddcb6b5a
[ "BSD-2-Clause" ]
null
null
null
train/multi_att_2_glove/train_att_bc.py
cxz1418/TemperalForPresentation
e3dc7d873b0e36f780cd430edbfe1fe6ddcb6b5a
[ "BSD-2-Clause" ]
null
null
null
import matplotlib matplotlib.use('Agg') import os import sys import numpy as np import json import matplotlib.pyplot as plt import caffe from caffe import layers as L from caffe import params as P from vqa_data_provider_layer import VQADataProvider from visualize_tools import exec_validation, drawgraph import config ...
38.51735
150
0.644308
import matplotlib matplotlib.use('Agg') import os import sys import numpy as np import json import matplotlib.pyplot as plt import caffe from caffe import layers as L from caffe import params as P from vqa_data_provider_layer import VQADataProvider from visualize_tools import exec_validation, drawgraph import config ...
false
true
08ffbb0f3abd954092112514759fe8c75cee52c2
3,766
py
Python
tacker/tests/functional/vnfm/test_vnf_monitoring.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
116
2015-10-18T02:57:08.000Z
2022-03-15T04:09:18.000Z
tacker/tests/functional/vnfm/test_vnf_monitoring.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
6
2016-11-07T22:15:54.000Z
2021-05-09T06:13:08.000Z
tacker/tests/functional/vnfm/test_vnf_monitoring.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
166
2015-10-20T15:31:52.000Z
2021-11-12T08:39:49.000Z
# Copyright 2015 Brocade Communications System, 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 ...
41.844444
78
0.68906
from tacker.plugins.common import constants as evt_constants from tacker.tests import constants from tacker.tests.functional import base class VnfTestPingMonitor(base.BaseTackerTest): def _test_vnf_with_monitoring(self, vnfd_file, vnf_name): vnfd_instance, vnf_instance, tosca_dict = self.vnfd_and_vnf_c...
true
true
08ffbb13acf529a1401c7c423028b2aea39927a7
48,613
py
Python
tests/unit/commands/local/cli_common/test_invoke_context.py
russell-avowow/aws-sam-cli
3a4acaf7aba07036fafca41f3c79322d8ae907c9
[ "BSD-2-Clause", "Apache-2.0" ]
1
2021-07-10T14:19:00.000Z
2021-07-10T14:19:00.000Z
tests/unit/commands/local/cli_common/test_invoke_context.py
russell-avowow/aws-sam-cli
3a4acaf7aba07036fafca41f3c79322d8ae907c9
[ "BSD-2-Clause", "Apache-2.0" ]
1
2021-07-29T20:56:48.000Z
2021-07-29T20:56:48.000Z
tests/unit/commands/local/cli_common/test_invoke_context.py
russell-avowow/aws-sam-cli
3a4acaf7aba07036fafca41f3c79322d8ae907c9
[ "BSD-2-Clause", "Apache-2.0" ]
1
2021-11-26T13:12:50.000Z
2021-11-26T13:12:50.000Z
""" Tests the InvokeContext class """ import errno import os from samcli.commands._utils.template import TemplateFailedParsingException from samcli.commands.local.cli_common.user_exceptions import InvokeContextException, DebugContextException from samcli.commands.local.cli_common.invoke_context import InvokeContext, C...
42.680421
126
0.704955
import errno import os from samcli.commands._utils.template import TemplateFailedParsingException from samcli.commands.local.cli_common.user_exceptions import InvokeContextException, DebugContextException from samcli.commands.local.cli_common.invoke_context import InvokeContext, ContainersInitializationMode, Container...
true
true
08ffbb7748aa9afc770e37545e54b9b6223eb763
1,790
py
Python
src/python/100-199/167_two_sum_ii.py
jagwirecode/leetcode-solutions
53a993f5e6d621043fdb2019c454c1aec1f158a7
[ "MIT" ]
null
null
null
src/python/100-199/167_two_sum_ii.py
jagwirecode/leetcode-solutions
53a993f5e6d621043fdb2019c454c1aec1f158a7
[ "MIT" ]
null
null
null
src/python/100-199/167_two_sum_ii.py
jagwirecode/leetcode-solutions
53a993f5e6d621043fdb2019c454c1aec1f158a7
[ "MIT" ]
null
null
null
""" Solution to 167. Two Sum II: Input Array is Sorted (https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/) Difficulty: EASY Runtime: O(n) - Linear time Space: O(1) - Constant space Submission: https://leetcode.com/submissions/detail/606910941/ """ __author__ = "jagwirecode" f...
37.291667
116
0.558101
__author__ = "jagwirecode" from typing import List class Solution: def twoSum(self, numbers: List[int], target: int) -> List[int]: left = 0 right = len(numbers) - 1 while(left < right): sum = numbers[left] + numbers[right] if(sum > target): ...
true
true
08ffbcff56c1769d967e3909941660325d25e619
2,835
py
Python
app/request.py
fkinyae/newsArticles
8cab8eecd4c28e67c236729be3b17e6cdf410b19
[ "MIT" ]
null
null
null
app/request.py
fkinyae/newsArticles
8cab8eecd4c28e67c236729be3b17e6cdf410b19
[ "MIT" ]
null
null
null
app/request.py
fkinyae/newsArticles
8cab8eecd4c28e67c236729be3b17e6cdf410b19
[ "MIT" ]
null
null
null
import urllib.request, json from .models import News, Articles #News = news.News #Articles = news.Articles #Get the api key api_key = None #Get news api url base_url = None articles_url = None def configure_request(app): global api_key, base_url, articles_url api_key = app.config['NEWS_API_KEY'] base_ur...
31.153846
99
0.643739
import urllib.request, json from .models import News, Articles api_key = None base_url = None articles_url = None def configure_request(app): global api_key, base_url, articles_url api_key = app.config['NEWS_API_KEY'] base_url = app.config['NEWS_API_BASE_URL'] articles_url = app.config['ARTICLES_URL...
true
true
08ffbe49a911b63af03d6774030baf0e97fe2872
5,749
py
Python
demos/2d_classification.py
AaltoML/Newt-test
e3a725124eb63e9994653ed756be7ae8632f52b2
[ "Apache-2.0" ]
43
2021-11-03T06:40:52.000Z
2022-03-29T17:11:05.000Z
demos/2d_classification.py
AaltoML/Newt-test
e3a725124eb63e9994653ed756be7ae8632f52b2
[ "Apache-2.0" ]
6
2021-11-19T05:51:56.000Z
2022-03-14T09:35:22.000Z
demos/2d_classification.py
AaltoML/Newt-test
e3a725124eb63e9994653ed756be7ae8632f52b2
[ "Apache-2.0" ]
4
2021-11-08T01:30:51.000Z
2022-01-24T17:39:25.000Z
import bayesnewton import objax import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm import time # --- small data set --- # inputs = np.loadtxt('../data/banana_X_train', delimiter=',') # X = inputs[:, :1] # temporal inputs (x-axis) # R = inputs[:, 1:] # spatial inputs (y-axis) # Y = np.loadt...
40.485915
122
0.639763
import bayesnewton import objax import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm import time inputs = np.loadtxt('../data/banana_large.csv', delimiter=',', skiprows=1) X = inputs[:, :1] R = inputs[:, 1:2] Y = np.maximum(inputs[:, 2:], 0) Xtest, Rtest = np.mgrid[-2.8:2.8:100j, -2.8:2.8...
true
true
08ffbf6af6f5a506f0c8edb69e1dfce3a215e4bd
7,972
py
Python
apps/core/migrations/0001_initial.py
djangomango/core
2121d12970c188319d45e54e22c22d8c2d2a3e7c
[ "MIT" ]
null
null
null
apps/core/migrations/0001_initial.py
djangomango/core
2121d12970c188319d45e54e22c22d8c2d2a3e7c
[ "MIT" ]
null
null
null
apps/core/migrations/0001_initial.py
djangomango/core
2121d12970c188319d45e54e22c22d8c2d2a3e7c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.10 on 2022-01-19 03:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('sites', '0002_alter_domain_unique'), ] operations = [ migrations.CreateModel( ...
54.60274
189
0.588435
from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('sites', '0002_alter_domain_unique'), ] operations = [ migrations.CreateModel( name='SiteConfig', fields=[ ...
true
true
08ffc03aefb1a9c3063fe6fee3a60b8706177f41
48,613
py
Python
parler/models.py
Vadim-Karpenko/django-parler
c902721dbfdd313b5d9a3dc93d6f382a8e3c70a5
[ "Apache-2.0" ]
null
null
null
parler/models.py
Vadim-Karpenko/django-parler
c902721dbfdd313b5d9a3dc93d6f382a8e3c70a5
[ "Apache-2.0" ]
3
2019-11-02T05:52:07.000Z
2020-06-05T21:56:17.000Z
parler/models.py
Vadim-Karpenko/django-parler
c902721dbfdd313b5d9a3dc93d6f382a8e3c70a5
[ "Apache-2.0" ]
null
null
null
""" The models and fields for translation support. The default is to use the :class:`TranslatedFields` class in the model, like: .. code-block:: python from django.db import models from django.utils.encoding import python_2_unicode_compatible from parler.models import TranslatableModel, TranslatedFields ...
40.578464
209
0.646329
from __future__ import unicode_literals from collections import defaultdict, OrderedDict from django.conf import settings from django.core.exceptions import ImproperlyConfigured, ValidationError, FieldError, ObjectDoesNotExist from django.db import models, router from django.db.models.base import ModelBase from django....
true
true
08ffc0603f8594f3a29bd4cef87ad06b3fbbf4ed
14,460
py
Python
tests/tools/archive/orm/test_logs.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
180
2019-07-12T07:45:26.000Z
2022-03-22T13:16:57.000Z
tests/tools/archive/orm/test_logs.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
2,325
2019-07-04T13:41:44.000Z
2022-03-31T12:17:10.000Z
tests/tools/archive/orm/test_logs.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
88
2019-07-06T01:42:39.000Z
2022-03-18T14:20:09.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
37.754569
99
0.686584
from aiida import orm from aiida.tools.archive import create_archive, import_archive def test_critical_log_msg_and_metadata(tmp_path, clear_database_before_test): message = 'Testing logging of critical failure' calc = orm.CalculationNode() calc.logger.critical(message) assert len(orm.Log.obje...
true
true
08ffc24a02eda47afa662764f66d18ef3b2c2c3b
7,177
py
Python
forest.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
7
2020-06-24T12:14:40.000Z
2022-01-19T17:01:02.000Z
forest.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
null
null
null
forest.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import random from signal import signal, SIGINT, SIGTERM from forest.configuration import Configuration from forest.logger import get_logger from forest.parse_examples import parse_file, parse_resnax, show, preprocess from forest.synthesizer import MultiTreeSynthesizer,...
44.030675
98
0.648182
import argparse import os import random from signal import signal, SIGINT, SIGTERM from forest.configuration import Configuration from forest.logger import get_logger from forest.parse_examples import parse_file, parse_resnax, show, preprocess from forest.synthesizer import MultiTreeSynthesizer, KTreeSynthesizer, Line...
true
true
08ffc2e5fa04be63a20b1c6262dc117405b425bb
22,435
py
Python
tests/nn/model_parallel/test_layers.py
brettkoonce/fairscale
05ce7971d256893a7707a8a99e89ec3ef75ab7c0
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
null
null
null
tests/nn/model_parallel/test_layers.py
brettkoonce/fairscale
05ce7971d256893a7707a8a99e89ec3ef75ab7c0
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
null
null
null
tests/nn/model_parallel/test_layers.py
brettkoonce/fairscale
05ce7971d256893a7707a8a99e89ec3ef75ab7c0
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
null
null
null
# coding=utf-8 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Ve...
37.961083
119
0.674749
import os import tempfile import pytest import torch from torch import nn from torch.distributed import rpc import torch.nn.init as init from torch.nn.parameter import Parameter from fairscale.nn.model_parallel import initialize as mpu from fairscale.nn.model_parallel import layers from fairscale.nn.pipe import Mu...
true
true
08ffc3937e968373ae8f25d8cd9290999a02c7fc
10,708
py
Python
python_backend/triton_client/tao_triton/python/postprocessing/trafficcamnet_processor.py
neilshah13/capstone21
1be9175d70041cb3ee429f31dd51dd11c7ab39af
[ "MIT" ]
null
null
null
python_backend/triton_client/tao_triton/python/postprocessing/trafficcamnet_processor.py
neilshah13/capstone21
1be9175d70041cb3ee429f31dd51dd11c7ab39af
[ "MIT" ]
null
null
null
python_backend/triton_client/tao_triton/python/postprocessing/trafficcamnet_processor.py
neilshah13/capstone21
1be9175d70041cb3ee429f31dd51dd11c7ab39af
[ "MIT" ]
null
null
null
# Copyright (c) 2021, 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, ...
49.574074
207
0.631397
import os import numpy as np from sklearn.cluster import DBSCAN as dbscan from google.protobuf.text_format import Merge as merge_text_proto from tao_triton.python.postprocessing.postprocessor import Postprocessor import tao_triton.python.proto.postprocessor_config_pb2 as postprocessor_config_pb2 from tao_triton.pyt...
true
true
08ffc3d41f909bfd2363305c5220bebce404d5fa
3,248
py
Python
model-optimizer/extensions/front/GeLUMerger_Tanh.py
guytamir/openvino
6ad42182866cef1f2c8b19663f83638f86b1452a
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/front/GeLUMerger_Tanh.py
guytamir/openvino
6ad42182866cef1f2c8b19663f83638f86b1452a
[ "Apache-2.0" ]
19
2021-03-26T08:11:00.000Z
2022-02-21T13:06:26.000Z
model-optimizer/extensions/front/GeLUMerger_Tanh.py
jayabs2020/openvino
67a82a040faaf66f109035acf7de6e4b7568bc08
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2017-2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
40.6
111
0.56681
import logging as log from math import sqrt, fabs, pi from extensions.ops.gelu import GeLUOP from mo.front.common.replacement import FrontReplacementSubgraph from mo.graph.graph import Graph class GeLUMergerTanh(FrontReplacementSubgraph): enabled = True def pattern(self): log.info('Enabled GeLU Me...
true
true
08ffc4f0cf088e1b18a6f7fbcbd2bdfe3805a924
2,090
py
Python
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/SetCcConfigRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/SetCcConfigRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/SetCcConfigRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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...
33.709677
74
0.761244
from aliyunsdkcore.request import RpcRequest from aliyunsdkcdn.endpoint import endpoint_data class SetCcConfigRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Cdn', '2014-11-11', 'SetCcConfig') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", endpo...
true
true
08ffc51da33178dd074ca8c7166cbccf84149887
11,327
py
Python
tests/test_cost_calculators/test_connection.py
rezoo/chainer_computational_cost
987b0a2cd7670390ca0d69152214d6bc8f656c7b
[ "MIT" ]
52
2018-10-17T05:54:49.000Z
2021-06-09T09:19:48.000Z
tests/test_cost_calculators/test_connection.py
rezoo/chainer_computational_cost
987b0a2cd7670390ca0d69152214d6bc8f656c7b
[ "MIT" ]
18
2018-07-31T11:08:41.000Z
2020-06-01T08:50:13.000Z
tests/test_cost_calculators/test_connection.py
rezoo/chainer_computational_cost
987b0a2cd7670390ca0d69152214d6bc8f656c7b
[ "MIT" ]
7
2018-10-28T13:17:32.000Z
2021-03-16T13:32:17.000Z
import chainer.functions as F import numpy as np from chainer.functions.connection.convolution_2d \ import Convolution2DFunction from chainer.functions.connection.deconvolution_2d \ import Deconvolution2DFunction from chainer.functions.connection.linear import LinearFunction from helpers import calculate_cost...
37.882943
78
0.587711
import chainer.functions as F import numpy as np from chainer.functions.connection.convolution_2d \ import Convolution2DFunction from chainer.functions.connection.deconvolution_2d \ import Deconvolution2DFunction from chainer.functions.connection.linear import LinearFunction from helpers import calculate_cost...
true
true
08ffc53e87786b2903b0a56f29917371efa9c553
5,596
py
Python
TradzQAI/tools/saver.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
164
2017-11-24T13:07:04.000Z
2022-03-10T04:54:46.000Z
TradzQAI/tools/saver.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
21
2018-09-29T10:27:10.000Z
2019-06-12T07:01:58.000Z
TradzQAI/tools/saver.py
kkuette/AI_project
1f46cb2536b24cb3716250f1e9705daa76af4f60
[ "Apache-2.0" ]
49
2018-05-09T17:28:52.000Z
2022-02-27T04:50:45.000Z
import os import time import json from sortedcontainers import SortedDict from deepdiff import DeepDiff class Saver(object): def __init__(self): self.root_path = "save/" self.name = os.path.basename(__file__).replace(".py", "") self.model_file_name = "" self.model_file_path = ""...
36.575163
113
0.620264
import os import time import json from sortedcontainers import SortedDict from deepdiff import DeepDiff class Saver(object): def __init__(self): self.root_path = "save/" self.name = os.path.basename(__file__).replace(".py", "") self.model_file_name = "" self.model_file_path = ""...
true
true
08ffc5d6a6261c7d6db5d4c5a40b502cfb256af0
4,417
py
Python
benchmark/startQiskit_QC2436.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC2436.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC2436.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=40 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
35.620968
165
0.657007
import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np i...
true
true
08ffc653e89b704965c854b798b1d9347c20e0ae
6,808
py
Python
pipetime.py
pkcakeout/pipetime
edbbfdf32f1d510ec387801cb6856d1aba776d7c
[ "MIT" ]
null
null
null
pipetime.py
pkcakeout/pipetime
edbbfdf32f1d510ec387801cb6856d1aba776d7c
[ "MIT" ]
null
null
null
pipetime.py
pkcakeout/pipetime
edbbfdf32f1d510ec387801cb6856d1aba776d7c
[ "MIT" ]
null
null
null
import pathlib import multiprocessing import queue import time from collections import OrderedDict import bokeh.plotting import bokeh.layouts import bokeh.io class TimeTrail: def __init__(self, queue): self.__queue = queue self.__last = time.time() def time(self, name): now = time.t...
33.70297
83
0.536575
import pathlib import multiprocessing import queue import time from collections import OrderedDict import bokeh.plotting import bokeh.layouts import bokeh.io class TimeTrail: def __init__(self, queue): self.__queue = queue self.__last = time.time() def time(self, name): now = time.t...
true
true
08ffc688d9b0537186faac1a636eec85c74b8a37
47,054
py
Python
python/ccxt/hitbtc.py
RusEu/ccxt
d6d2b3e2f54a59d102102ee2858eca4d6702fecc
[ "MIT" ]
3
2021-06-29T16:27:19.000Z
2021-07-18T08:36:07.000Z
python/ccxt/hitbtc.py
Bytedex/ccxt
3863b5e1d6c77d719ac102b0243964c4946e7abb
[ "MIT" ]
null
null
null
python/ccxt/hitbtc.py
Bytedex/ccxt
3863b5e1d6c77d719ac102b0243964c4946e7abb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationE...
41.131119
189
0.504102
from ccxt.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from ccxt.base.errors import PermissionDenied from ccxt.base.errors import BadSymbol from ccxt.base.errors import InsufficientFunds from ccxt.base.errors import InvalidOrder ...
true
true
08ffc68f2bb24ff1816a6c3ac2451c1809baea4b
1,214
py
Python
examples/02_chassis/06_sub_imu.py
talb430/RoboMaster-SDK
0f4502d6b763973bf7c465e8a8094bbd9600f196
[ "Apache-2.0" ]
204
2020-01-07T10:15:09.000Z
2022-03-30T12:29:50.000Z
examples/02_chassis/06_sub_imu.py
talb430/RoboMaster-SDK
0f4502d6b763973bf7c465e8a8094bbd9600f196
[ "Apache-2.0" ]
50
2020-01-30T12:50:13.000Z
2022-03-05T00:35:12.000Z
examples/02_chassis/06_sub_imu.py
talb430/RoboMaster-SDK
0f4502d6b763973bf7c465e8a8094bbd9600f196
[ "Apache-2.0" ]
94
2020-01-29T10:46:58.000Z
2022-03-28T01:00:09.000Z
# -*-coding:utf-8-*- # Copyright (c) 2020 DJI. # # 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 in the file LICENSE.txt or at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
29.609756
100
0.718287
import time import robomaster from robomaster import robot def sub_imu_info_handler(imu_info): acc_x, acc_y, acc_z, gyro_x, gyro_y, gyro_z = imu_info print("chassis imu: acc_x:{0}, acc_y:{1}, acc_z:{2}, gyro_x:{3}, gyro_y:{4}, gyro_z:{5}".format( acc_x, acc_y, acc_z, gyro_x, gyro_y, gyro_z)) if __...
true
true
08ffc6b9e652c8ea0aac0566be155c173119fdc3
1,682
py
Python
local/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/pgagent/tests/test_pgagent_put.py
sahilsdei/django_ecommerce
edc2513e41aca178d1ccae14ebaa6c7b1d709e73
[ "MIT" ]
null
null
null
local/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/pgagent/tests/test_pgagent_put.py
sahilsdei/django_ecommerce
edc2513e41aca178d1ccae14ebaa6c7b1d709e73
[ "MIT" ]
null
null
null
local/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/pgagent/tests/test_pgagent_put.py
sahilsdei/django_ecommerce
edc2513e41aca178d1ccae14ebaa6c7b1d709e73
[ "MIT" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2018, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## import simplejson ...
32.346154
74
0.56956
import simplejson as json import uuid from pgadmin.utils.route import BaseTestGenerator from regression.python_test_utils import test_utils as utils from . import utils as pgagent_utils class PgAgentPutTestCase(BaseTestGenerator): scenarios = [ ('Put pgAgent job', dict(url='/browser/pga_job/obj/')) ] ...
true
true
08ffc70b6f72e0c2ddabf7ac69d1c35b41faa685
671
py
Python
app/core/management/commands/wait_for_db.py
asif-malik/recipe-app-api
b37280fd7ee2a9455c21a2a07495b4929337f184
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
asif-malik/recipe-app-api
b37280fd7ee2a9455c21a2a07495b4929337f184
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
asif-malik/recipe-app-api
b37280fd7ee2a9455c21a2a07495b4929337f184
[ "MIT" ]
null
null
null
import time from django.db import connections from django.db.utils import OperationalError from django.core.management.base import BaseCommand class Command(BaseCommand): """Django command to pause execution until database is available""" def handle(self, *args, **options): self.stdout.write('Waiting...
31.952381
78
0.652757
import time from django.db import connections from django.db.utils import OperationalError from django.core.management.base import BaseCommand class Command(BaseCommand): def handle(self, *args, **options): self.stdout.write('Waiting for database...') db_conn = None while not db_conn: ...
true
true
08ffc73c161e15ecceaa97497fa5eee326eefa13
8,152
py
Python
Codes/OET_interface_v0.5.py
zaman13/Optoelectronic-tweezers-interface
a43440b9035a69ee54c5b34fe49e8b3dd0ac8d11
[ "MIT" ]
null
null
null
Codes/OET_interface_v0.5.py
zaman13/Optoelectronic-tweezers-interface
a43440b9035a69ee54c5b34fe49e8b3dd0ac8d11
[ "MIT" ]
null
null
null
Codes/OET_interface_v0.5.py
zaman13/Optoelectronic-tweezers-interface
a43440b9035a69ee54c5b34fe49e8b3dd0ac8d11
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 15 20:34:23 2021 @author: Mohammad Asif Zaman Keyboard commands: x : Quit/exit program Arrow keys: Movement q : Increase object size a : Decrease object size w : Increase width of the object d : Decrease width of the ob...
25.475
139
0.608685
import pygame import sys import numpy as np pygame.init() fps=60 fpsclock=pygame.time.Clock() sur_obj=pygame.display.set_mode((1600,900),pygame.FULLSCREEN) pygame.display.set_caption("Keyboard_Input") White=(255,255,255) background_color=(0,0,0) default_foreground_color = (0,255,0) px_default = 120 py_default = ...
true
true
08ffc7a73d06ba51c1f269eb7712ae1998fd3307
1,698
py
Python
debutizer/commands/artifacts.py
velovix/debutizer
a56f269881e70cd50feea32134b2fa0e0d93a20c
[ "BSD-3-Clause" ]
2
2022-03-08T01:53:20.000Z
2022-03-08T01:53:26.000Z
debutizer/commands/artifacts.py
velovix/debutizer
a56f269881e70cd50feea32134b2fa0e0d93a20c
[ "BSD-3-Clause" ]
64
2021-10-19T01:03:43.000Z
2022-01-02T18:42:46.000Z
debutizer/commands/artifacts.py
velovix/debutizer
a56f269881e70cd50feea32134b2fa0e0d93a20c
[ "BSD-3-Clause" ]
null
null
null
import re from pathlib import Path from typing import List def find_binary_packages(path: Path, recursive: bool = False) -> List[Path]: return _glob_search(path, BINARY_PACKAGE_GLOB, recursive) def find_debian_source_files(path: Path, recursive: bool = False) -> List[Path]: return _glob_search(path, DEBIAN_...
30.321429
88
0.720259
import re from pathlib import Path from typing import List def find_binary_packages(path: Path, recursive: bool = False) -> List[Path]: return _glob_search(path, BINARY_PACKAGE_GLOB, recursive) def find_debian_source_files(path: Path, recursive: bool = False) -> List[Path]: return _glob_search(path, DEBIAN_...
true
true
08ffc9061a55316e993e5680b538457f5d5c45ec
188
py
Python
cpp/boost_python/reflect_class_with_two_constructors/test.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
23
2015-06-08T13:01:00.000Z
2021-12-30T08:20:04.000Z
cpp/boost_python/reflect_class_with_two_constructors/test.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
1
2020-10-22T02:36:10.000Z
2020-10-22T02:36:10.000Z
cpp/boost_python/reflect_class_with_two_constructors/test.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
7
2017-10-31T09:48:14.000Z
2022-01-04T15:59:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import cppclasses hello = cppclasses.Hello() hello.greet() helloMartin = cppclasses.Hello("Martin") helloMartin.greet() #help(cppclasses)
14.461538
40
0.707447
import cppclasses hello = cppclasses.Hello() hello.greet() helloMartin = cppclasses.Hello("Martin") helloMartin.greet()
true
true
08ffc97548e2fa188e958e020442cf547d93da99
10,705
py
Python
Tests/modules/io_related/test_cStringIO.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
1,078
2016-07-19T02:48:30.000Z
2022-03-30T21:22:34.000Z
Tests/modules/io_related/test_cStringIO.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
576
2017-05-21T12:36:48.000Z
2022-03-30T13:47:03.000Z
Tests/modules/io_related/test_cStringIO.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
269
2017-05-21T04:44:47.000Z
2022-03-31T16:18:13.000Z
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. ## ## Test the cStringIO module ## import cStringIO import unittest from iptest import run_test text = "Line...
32.439394
99
0.554507
import cStringIO import unittest from iptest import run_test text = "Line 1\nLine 2\nLine 3\nLine 4\nLine 5" class CStringIOTest(unittest.TestCase): def call_close(self, i): self.assertEqual(i.closed, False) i.close() self.assertEqual(i.closed, True) i.close() self.ass...
true
true
08ffc9a6cd04aa81b9a50d25ddc419e5079c27bf
1,704
py
Python
yo_fluq/_queries/helpers/loop.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
16
2019-09-26T09:05:42.000Z
2021-02-04T01:39:09.000Z
yo_fluq/_queries/helpers/loop.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-10-23T19:01:23.000Z
2020-06-11T09:08:45.000Z
yo_fluq/_queries/helpers/loop.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-09-26T09:05:50.000Z
2019-10-23T18:46:11.000Z
from ..._common import LoopEndType class loop_maker: def __init__(self, begin, delta, end, endType: LoopEndType): self.begin = begin self.delta = delta self.end = end self.endType = endType self.less_comparison = None def _cmp_less_like(self, left, right): if se...
29.37931
99
0.532864
from ..._common import LoopEndType class loop_maker: def __init__(self, begin, delta, end, endType: LoopEndType): self.begin = begin self.delta = delta self.end = end self.endType = endType self.less_comparison = None def _cmp_less_like(self, left, right): if se...
true
true
08ffca0ac3144eb4b280a23e4745a5146d53dc21
2,324
py
Python
samples/vision/custom_vision_training_multiclass_samples.py
wiazur/cognitive-services-python-sdk-samples
2771a1609051022b250ca83c490a2c846e59c794
[ "MIT" ]
null
null
null
samples/vision/custom_vision_training_multiclass_samples.py
wiazur/cognitive-services-python-sdk-samples
2771a1609051022b250ca83c490a2c846e59c794
[ "MIT" ]
null
null
null
samples/vision/custom_vision_training_multiclass_samples.py
wiazur/cognitive-services-python-sdk-samples
2771a1609051022b250ca83c490a2c846e59c794
[ "MIT" ]
1
2019-06-26T13:21:54.000Z
2019-06-26T13:21:54.000Z
import os import time from azure.cognitiveservices.vision.customvision.training import CustomVisionTrainingClient from azure.cognitiveservices.vision.customvision.training.models import Classifier SUBSCRIPTION_KEY_ENV_NAME = "CUSTOMVISION_TRAINING_KEY" SAMPLE_PROJECT_NAME = "Python SDK Sample" ENDPOINT = "https://so...
42.254545
112
0.732788
import os import time from azure.cognitiveservices.vision.customvision.training import CustomVisionTrainingClient from azure.cognitiveservices.vision.customvision.training.models import Classifier SUBSCRIPTION_KEY_ENV_NAME = "CUSTOMVISION_TRAINING_KEY" SAMPLE_PROJECT_NAME = "Python SDK Sample" ENDPOINT = "https://so...
true
true
08ffca3dc0c160ccdf996916f1503da1d687430f
1,145
py
Python
fodeo/core/central/YOLO/training/params.py
ph09/fogernetes
f766434388ef8cd76e9e909c6f4bef2eb112f642
[ "BSD-3-Clause" ]
5
2018-10-30T01:36:04.000Z
2020-11-26T02:38:09.000Z
fodeo/core/central/YOLO/training/params.py
ph09/fogernetes
f766434388ef8cd76e9e909c6f4bef2eb112f642
[ "BSD-3-Clause" ]
4
2020-11-18T21:34:06.000Z
2022-03-11T23:32:44.000Z
fodeo/core/central/YOLO/training/params.py
ph09/fogernetes
f766434388ef8cd76e9e909c6f4bef2eb112f642
[ "BSD-3-Clause" ]
1
2018-11-27T09:19:38.000Z
2018-11-27T09:19:38.000Z
TRAINING_PARAMS = \ { "model_params": { "backbone_name": "darknet_53", "backbone_pretrained": "../weights/darknet53_weights_pytorch.pth", # set empty to disable }, "yolo": { "anchors": [[[116, 90], [156, 198], [373, 326]], [[30, 61], [62, 45], [59, 119]], ...
31.805556
98
0.482969
TRAINING_PARAMS = \ { "model_params": { "backbone_name": "darknet_53", "backbone_pretrained": "../weights/darknet53_weights_pytorch.pth", }, "yolo": { "anchors": [[[116, 90], [156, 198], [373, 326]], [[30, 61], [62, 45], [59, 119]], [[10, 13], ...
true
true
08ffca875993246130fd330266167af132ec824e
38,428
py
Python
python/ccxt/bibox.py
Huangyi5458/ccxt
1e01d03dac18633eb73998d7cb279535395368e9
[ "MIT" ]
13
2020-11-24T12:15:42.000Z
2022-03-11T00:46:39.000Z
python/ccxt/bibox.py
Huangyi5458/ccxt
1e01d03dac18633eb73998d7cb279535395368e9
[ "MIT" ]
null
null
null
python/ccxt/bibox.py
Huangyi5458/ccxt
1e01d03dac18633eb73998d7cb279535395368e9
[ "MIT" ]
1
2020-10-26T18:15:43.000Z
2020-10-26T18:15:43.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange # ----------------------------------------------------------------------------- try: basestri...
39.292434
448
0.479676
from ccxt.base.exchange import Exchange try: basestring except NameError: basestring = str import hashlib import math import json from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from ccxt.base.errors import PermissionDenied from ccxt.base.errors import AccountSu...
true
true
08ffcabdacf7ebcbcfa172500cda5f39a7e333ac
844
py
Python
setup.py
tarohi24/pytre
04532ca020726fb8f83f68dbec91e7df8da051d9
[ "MIT" ]
null
null
null
setup.py
tarohi24/pytre
04532ca020726fb8f83f68dbec91e7df8da051d9
[ "MIT" ]
null
null
null
setup.py
tarohi24/pytre
04532ca020726fb8f83f68dbec91e7df8da051d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages requirements = [ ] setup_requirements = ['pytest-runner', ] test_requirements = ['pytest>=3', ] setup( author="Wataru Hirota", author_email='hirota@whiro.me', python_requires='>=3.7', classifiers=[ 'P...
24.114286
57
0.662322
from setuptools import setup, find_packages requirements = [ ] setup_requirements = ['pytest-runner', ] test_requirements = ['pytest>=3', ] setup( author="Wataru Hirota", author_email='hirota@whiro.me', python_requires='>=3.7', classifiers=[ 'Programming Language :: Python :: 3.7', ...
true
true
08ffcda4db169b46d570be6368ff5890d4ef436e
7,897
py
Python
great_expectations/cli/init.py
BrendanFrick/great_expectations
0a43c5b713cb86150cb59d6a55b14735f33ba4c3
[ "Apache-2.0" ]
1
2021-12-15T18:27:01.000Z
2021-12-15T18:27:01.000Z
great_expectations/cli/init.py
BrendanFrick/great_expectations
0a43c5b713cb86150cb59d6a55b14735f33ba4c3
[ "Apache-2.0" ]
null
null
null
great_expectations/cli/init.py
BrendanFrick/great_expectations
0a43c5b713cb86150cb59d6a55b14735f33ba4c3
[ "Apache-2.0" ]
1
2022-01-26T03:25:34.000Z
2022-01-26T03:25:34.000Z
import os import sys import click from great_expectations import DataContext from great_expectations import exceptions as ge_exceptions from great_expectations.cli import toolkit from great_expectations.cli.build_docs import build_docs from great_expectations.cli.cli_messages import ( BUILD_DOCS_PROMPT, GREET...
35.733032
159
0.618209
import os import sys import click from great_expectations import DataContext from great_expectations import exceptions as ge_exceptions from great_expectations.cli import toolkit from great_expectations.cli.build_docs import build_docs from great_expectations.cli.cli_messages import ( BUILD_DOCS_PROMPT, GREET...
true
true
08ffcec5a27b3fdb02e6a7ce2aececcc825e5e6c
3,826
py
Python
data_source/stations_meteo/parser.py
Frovu/cr-data-tool
4a87115eb10c548bcf8f4f3364e28196cfd3ebf4
[ "MIT" ]
null
null
null
data_source/stations_meteo/parser.py
Frovu/cr-data-tool
4a87115eb10c548bcf8f4f3364e28196cfd3ebf4
[ "MIT" ]
null
null
null
data_source/stations_meteo/parser.py
Frovu/cr-data-tool
4a87115eb10c548bcf8f4f3364e28196cfd3ebf4
[ "MIT" ]
null
null
null
from datetime import datetime, timezone import logging as log import requests import numpy import json import traceback from math import floor, ceil import data_source.stations_meteo.db_proxy as proxy # aws.rmp seems to restrict max resp size by something like 6.5 days of data AWS_RMP_THRESHOLD = 6*24*3600 AWS_RMP_IDX...
37.509804
122
0.593832
from datetime import datetime, timezone import logging as log import requests import numpy import json import traceback from math import floor, ceil import data_source.stations_meteo.db_proxy as proxy AWS_RMP_THRESHOLD = 6*24*3600 AWS_RMP_IDX = { 'Moscow': '91001' } def _query_aws_rmp(index, t_from, t_to): tr...
true
true
08ffceed20266ef310a89b9124c69ef18fb378c7
1,714
py
Python
config/urls.py
skaaldig/spec-sheets
ac45153a3495a8b21dbcb4c5b0967107751528e0
[ "MIT" ]
null
null
null
config/urls.py
skaaldig/spec-sheets
ac45153a3495a8b21dbcb4c5b0967107751528e0
[ "MIT" ]
null
null
null
config/urls.py
skaaldig/spec-sheets
ac45153a3495a8b21dbcb4c5b0967107751528e0
[ "MIT" ]
null
null
null
from django.conf import settings from django.urls import include, path from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpatterns = [ path("", TemplateView.as_view(template_name="pages/home...
36.468085
86
0.648775
from django.conf import settings from django.urls import include, path from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpatterns = [ path("", TemplateView.as_view(template_name="pages/home...
true
true
08ffd078778a66c1437a97590867c743d66f5eae
1,953
py
Python
nflows/transforms/__init__.py
xqding/nflows
beabf0b68fe162f4f73da460edcf87caf9ef3f27
[ "MIT" ]
1
2020-10-21T05:13:54.000Z
2020-10-21T05:13:54.000Z
nflows/transforms/__init__.py
xqding/nflows
beabf0b68fe162f4f73da460edcf87caf9ef3f27
[ "MIT" ]
null
null
null
nflows/transforms/__init__.py
xqding/nflows
beabf0b68fe162f4f73da460edcf87caf9ef3f27
[ "MIT" ]
null
null
null
from nflows.transforms.autoregressive_circular import ( MaskedPiecewiseCircularRationalQuadraticAutoregressiveTransform, ) from nflows.transforms.coupling_circular import ( PiecewiseCircularRationalQuadraticCouplingTransform ) from nflows.transforms.autoregressive import ( MaskedAffineAutoregressiveTransf...
30.046154
68
0.820276
from nflows.transforms.autoregressive_circular import ( MaskedPiecewiseCircularRationalQuadraticAutoregressiveTransform, ) from nflows.transforms.coupling_circular import ( PiecewiseCircularRationalQuadraticCouplingTransform ) from nflows.transforms.autoregressive import ( MaskedAffineAutoregressiveTransf...
true
true