hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
849a20daae6edb04cc92fd6d513ec61b99f56fc8
1,928
py
Python
src/websitewatcher.py
OzTamir/WebsiteWatcher
54e949b72a2c66aed7c6282f17db00735b9966ed
[ "MIT" ]
1
2021-06-03T19:13:05.000Z
2021-06-03T19:13:05.000Z
src/websitewatcher.py
OzTamir/WebsiteWatcher
54e949b72a2c66aed7c6282f17db00735b9966ed
[ "MIT" ]
null
null
null
src/websitewatcher.py
OzTamir/WebsiteWatcher
54e949b72a2c66aed7c6282f17db00735b9966ed
[ "MIT" ]
null
null
null
""" WebsiteWatcher.py - Watch websites for changes and alert the human about it! Author: OzTamir URL: https://github.com/OzTamir/WebsiteWatcher """ import json import logging from configuration import Configuration from watcher.watcher_manager import WatcherManager from twilio_mode import TwilioWatcher from telegram_bo...
35.703704
110
0.734959
b2702d560629bae70433d188efa99d4111d7ce00
2,144
py
Python
rastervision2/pytorch_backend/pytorch_learner_backend.py
csaybar/raster-vision
617ca15f64e3b8a391432306a743f7d0dfff352f
[ "Apache-2.0" ]
1
2020-10-10T12:32:43.000Z
2020-10-10T12:32:43.000Z
rastervision2/pytorch_backend/pytorch_learner_backend.py
alvintuitoek/raster-vision
ec6c8309f89c404513862369bb93dd9e6a70b455
[ "Apache-2.0" ]
null
null
null
rastervision2/pytorch_backend/pytorch_learner_backend.py
alvintuitoek/raster-vision
ec6c8309f89c404513862369bb93dd9e6a70b455
[ "Apache-2.0" ]
1
2021-12-02T08:07:21.000Z
2021-12-02T08:07:21.000Z
from os.path import join import tempfile from rastervision2.pipeline.filesystem import (make_dir, upload_or_copy, zipdir) from rastervision2.core.backend import Backend, SampleWriter from rastervision2.core.data_sample import DataSample class PyTorchLearnerSampleWriter(...
34.580645
80
0.686567
e8ca2029602983315c4ea183dc09ed227b9980e4
1,020
py
Python
qa327_test/conftest.py
KennethWest/ChairNerd
574d41fef1b784021926527f969ebc2b4c470908
[ "MIT" ]
null
null
null
qa327_test/conftest.py
KennethWest/ChairNerd
574d41fef1b784021926527f969ebc2b4c470908
[ "MIT" ]
null
null
null
qa327_test/conftest.py
KennethWest/ChairNerd
574d41fef1b784021926527f969ebc2b4c470908
[ "MIT" ]
null
null
null
import pytest import subprocess import os import signal import time import tempfile from qa327.__main__ import FLASK_PORT from qa327.__main__ import app import threading from werkzeug.serving import make_server base_url = 'http://localhost:{}'.format(FLASK_PORT) class ServerThread(threading.Thread): def __init...
23.181818
60
0.661765
3f3838cab49b96a289a7d659e6e7883efb02cef3
6,533
py
Python
src/users/views.py
DoubleTakoMeat/pycon.tw
6a49d890ced9027ddfdc965e8753c35d12da79b1
[ "MIT" ]
null
null
null
src/users/views.py
DoubleTakoMeat/pycon.tw
6a49d890ced9027ddfdc965e8753c35d12da79b1
[ "MIT" ]
null
null
null
src/users/views.py
DoubleTakoMeat/pycon.tw
6a49d890ced9027ddfdc965e8753c35d12da79b1
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib import messages from django.contrib import auth from django.contrib.auth import views as auth_views from django.contrib.auth.decorators import login_required from django.urls import reverse from django.http import Http404 from django.shortcuts import redirect, render...
32.02451
120
0.691566
ebc81295aa1ce251290d89b1f711fdbe9b802b4b
23,544
py
Python
tests/pulses/sequence_pulse_template_tests.py
qutech-lab/qc-toolkit
f00e0d0000bdc7a6604ceae2c15b60f4d10c4000
[ "MIT" ]
30
2018-09-13T02:59:55.000Z
2022-03-21T04:25:22.000Z
tests/pulses/sequence_pulse_template_tests.py
qutech-lab/qc-toolkit
f00e0d0000bdc7a6604ceae2c15b60f4d10c4000
[ "MIT" ]
319
2015-03-10T09:37:20.000Z
2018-09-06T10:11:32.000Z
tests/pulses/sequence_pulse_template_tests.py
qutech-lab/qc-toolkit
f00e0d0000bdc7a6604ceae2c15b60f4d10c4000
[ "MIT" ]
14
2019-01-08T14:42:36.000Z
2021-05-21T08:53:06.000Z
import unittest from unittest import mock from qupulse.parameter_scope import DictScope from qupulse.expressions import Expression, ExpressionScalar from qupulse.pulses.table_pulse_template import TablePulseTemplate from qupulse.pulses.sequence_pulse_template import SequencePulseTemplate, SequenceWaveform from qupulse...
51.745055
133
0.584947
61c933fed98fb9ca55e5f511c582a408f469a38d
4,484
py
Python
models/utils/args.py
mingxuts/multi-center-fed-learning
9262ddaefb79b14ea44b61ffce200b82d31b0af1
[ "BSD-2-Clause" ]
4
2021-09-03T02:44:14.000Z
2022-03-04T03:28:09.000Z
models/utils/args.py
mingxuts/multi-center-fed-learning
9262ddaefb79b14ea44b61ffce200b82d31b0af1
[ "BSD-2-Clause" ]
null
null
null
models/utils/args.py
mingxuts/multi-center-fed-learning
9262ddaefb79b14ea44b61ffce200b82d31b0af1
[ "BSD-2-Clause" ]
2
2021-10-10T11:57:53.000Z
2022-02-15T20:27:10.000Z
import argparse from .constants import DATASETS, SIM_TIMES def parse_job_args(): parser = argparse.ArgumentParser() parser.add_argument('-dataset', help='name of dataset;', type=str, choices=DATASETS, required=True) ...
35.307087
90
0.476137
601e02e48722d92eaa796d98eaaa18e5fe007afa
469
py
Python
tests/test_news.py
zecollokaris/News-Highlights
cedd0087f45e7a8e634401d726216efecda2764b
[ "Unlicense" ]
null
null
null
tests/test_news.py
zecollokaris/News-Highlights
cedd0087f45e7a8e634401d726216efecda2764b
[ "Unlicense" ]
null
null
null
tests/test_news.py
zecollokaris/News-Highlights
cedd0087f45e7a8e634401d726216efecda2764b
[ "Unlicense" ]
null
null
null
import unittest from app.models import News class NewsTest(unittest.TestCase): '''Test Class to test the behaviour of the News class''' def setUp (self): '''Set up method that will run before every Test''' self.new_news = News(1234,'Python Must Be Crazy','A thrilling new Python Series','sdsdsfs...
33.5
112
0.692964
6cd9e848d4226a3ce345dff5a06c2d8dd0734b99
1,568
py
Python
operators/functions/unsorted_segment_sum.py
YuhangSong/RBP
68a230053198de1b689e262974947c4186ee1c49
[ "MIT" ]
316
2019-01-03T19:54:44.000Z
2022-03-11T21:25:08.000Z
operators/functions/unsorted_segment_sum.py
YuhangSong/RBP
68a230053198de1b689e262974947c4186ee1c49
[ "MIT" ]
10
2019-01-17T20:43:27.000Z
2020-05-30T23:07:50.000Z
operators/functions/unsorted_segment_sum.py
YuhangSong/RBP
68a230053198de1b689e262974947c4186ee1c49
[ "MIT" ]
63
2019-01-03T20:18:38.000Z
2022-03-11T21:58:17.000Z
import math import numpy as np import torch from torch.autograd import Function, Variable from operators._ext import segment_reduction class UnsortedSegmentSumFunction(Function): @staticmethod def forward(ctx, data, segment_index, num_segments): # data's shape should be (batch, dim1, dim2), and segment redu...
34.844444
99
0.656888
5a112a1028f5cdac6dd2bdd994d5a20d112682de
1,361
py
Python
lang/py/pylib/code/zipimport/zipimport_load_module.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
lang/py/pylib/code/zipimport/zipimport_load_module.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
lang/py/pylib/code/zipimport/zipimport_load_module.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
#!/usr/bin/env python # # Copyright 2007 Doug Hellmann. # # # All Rights Reserved # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose and without fee is hereby # granted, provided that the above copyright notice appear in all # copies and tha...
34.025
70
0.766348
cf30488d1e2a2d20ed23fd56f9b73c6df5102e83
1,789
py
Python
Megatron-LM-v1.1.5-ZeRO3/seelog.py
zhuzilin/DeepSpeedExamples
c86ec361d16f940b93f2fbb17c49733b2a71297c
[ "MIT" ]
null
null
null
Megatron-LM-v1.1.5-ZeRO3/seelog.py
zhuzilin/DeepSpeedExamples
c86ec361d16f940b93f2fbb17c49733b2a71297c
[ "MIT" ]
null
null
null
Megatron-LM-v1.1.5-ZeRO3/seelog.py
zhuzilin/DeepSpeedExamples
c86ec361d16f940b93f2fbb17c49733b2a71297c
[ "MIT" ]
null
null
null
import os import sys class MyResDict(object): def __init__(self): self._data = [] print("here") def insert(self, model_name, gpu, mp, bs, perf): self._data.append(((model_name, gpu, mp, bs), perf)) def showme(self): self._data = sorted(self._data, key=lambda elem: elem[0])...
28.396825
67
0.515931
15ed054ef881ac10d238c2a13c57232f61ae4e50
3,372
py
Python
melodic/src/rqt_bag/rqt_bag/src/rqt_bag/plugins/message_view.py
disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA
3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0
[ "BSD-3-Clause" ]
2
2021-07-14T12:33:55.000Z
2021-11-21T07:14:13.000Z
melodic/src/rqt_bag/rqt_bag/src/rqt_bag/plugins/message_view.py
disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA
3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0
[ "BSD-3-Clause" ]
null
null
null
melodic/src/rqt_bag/rqt_bag/src/rqt_bag/plugins/message_view.py
disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA
3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0
[ "BSD-3-Clause" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2012, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above...
35.125
92
0.678826
132a743de740fffe73cde54d80e503a7cc9dbdbe
15,692
py
Python
Scripts/plot_MSFigure_3_squeeze.py
zmlabe/predictGMSTrate
2bde4a106de1988d772f15a52d283d23bb7128f4
[ "MIT" ]
2
2022-01-20T20:20:04.000Z
2022-02-21T12:33:37.000Z
Scripts/plot_MSFigure_3_squeeze.py
zmlabe/predictGMSTrate
2bde4a106de1988d772f15a52d283d23bb7128f4
[ "MIT" ]
null
null
null
Scripts/plot_MSFigure_3_squeeze.py
zmlabe/predictGMSTrate
2bde4a106de1988d772f15a52d283d23bb7128f4
[ "MIT" ]
3
2022-01-19T16:25:37.000Z
2022-03-22T13:25:00.000Z
""" Make figure of LRP maps for manuscript Author : Zachary M. Labe Date : 7 October 2021 Version : 2 """ ### Import packages import sys import matplotlib.pyplot as plt import numpy as np from netCDF4 import Dataset import scipy.stats as stats from mpl_toolkits.basemap import Basemap, addcyclic, shiftgr...
41.734043
287
0.571947
4edfc145fe3ee3774cbf04016c2524d2ed4cf7dd
14,886
py
Python
reid/models/resnet_fusion.py
johnzhang1999/Spatial-Attention
9e8e90ba624e52dcccba47c7289bb305765f5da6
[ "MIT" ]
228
2018-12-04T10:32:46.000Z
2020-07-19T07:32:19.000Z
reid/models/resnet_fusion.py
YUE-FAN/Spatial-Attention
71cf324f0fb0829355e5ca322058ebbb9d8be610
[ "MIT" ]
13
2018-12-23T02:06:54.000Z
2020-05-27T06:47:42.000Z
reid/models/resnet_fusion.py
YUE-FAN/Spatial-Attention
71cf324f0fb0829355e5ca322058ebbb9d8be610
[ "MIT" ]
32
2018-12-05T13:46:48.000Z
2020-07-01T04:35:49.000Z
from __future__ import absolute_import from torch import nn from torch.nn import functional as F from torch.nn import init import torchvision import torch import torch.utils.model_zoo as model_zoo __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152'] class Bottleneck(nn.Module...
42.169972
105
0.469636
f25c302798289c29557bfd42fbf827f186adf320
254
py
Python
21-07/Starters7/1.py
allenalvin333/Codechef_Competitions
44c3626de33cd9e17d1acfc74abe0aab809efbad
[ "MIT" ]
null
null
null
21-07/Starters7/1.py
allenalvin333/Codechef_Competitions
44c3626de33cd9e17d1acfc74abe0aab809efbad
[ "MIT" ]
null
null
null
21-07/Starters7/1.py
allenalvin333/Codechef_Competitions
44c3626de33cd9e17d1acfc74abe0aab809efbad
[ "MIT" ]
null
null
null
# https://www.codechef.com/START7C/problems/CHSFORMT for T in range(int(input())): a,b=map(int,input().split()) if((a+b)<3): print(1) elif((a+b) in range(3,11)): print(2) elif((a+b) in range(11,61)): print(3) elif((a+b)>60): print(4)
31.75
52
0.586614
6185ca727a546bc14cd1cb818ff3024b71b15ef2
12,086
py
Python
neutron/tests/unit/db/metering/test_db_metering.py
hughsaunders/neutron
8e600ec5b1f0f4ed99b9bf8c72226ca3dab3efad
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/db/metering/test_db_metering.py
hughsaunders/neutron
8e600ec5b1f0f4ed99b9bf8c72226ca3dab3efad
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/db/metering/test_db_metering.py
hughsaunders/neutron
8e600ec5b1f0f4ed99b9bf8c72226ca3dab3efad
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com> # # Author: Sylvain Afchain <sylvain.afchain@enovance.com> # # 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.apach...
41.390411
79
0.554443
f4ec40fcb150319966c787a85389671714c5dd14
21,934
py
Python
tests/components/zha/test_channels.py
GuyKh/core
859bcb6eb4dbb9a8b87b6e4e888e074502db5df1
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
tests/components/zha/test_channels.py
GuyKh/core
859bcb6eb4dbb9a8b87b6e4e888e074502db5df1
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/zha/test_channels.py
marecabo/home-assistant
e33774a61e7fcc88aff752dfa4618dd26a746872
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Test ZHA Core channels.""" import asyncio import math from unittest import mock from unittest.mock import AsyncMock, patch import pytest import zigpy.profiles.zha import zigpy.types as t import zigpy.zcl.clusters import homeassistant.components.zha.core.channels as zha_channels import homeassistant.components.zha....
35.263666
87
0.669463
d00a6a78d554d3b551d847fba8c32d0052666e61
47,645
py
Python
geowombat/core/io.py
jgrss/geowombat
e691102a3dcce13b272810b43bc9586681ae6934
[ "MIT" ]
38
2020-01-13T22:45:18.000Z
2022-03-31T05:44:35.000Z
geowombat/core/io.py
jgrss/geowombat
e691102a3dcce13b272810b43bc9586681ae6934
[ "MIT" ]
41
2020-01-27T00:57:58.000Z
2022-03-10T19:52:20.000Z
geowombat/core/io.py
jgrss/geowombat
e691102a3dcce13b272810b43bc9586681ae6934
[ "MIT" ]
4
2020-01-14T19:27:38.000Z
2021-08-23T03:08:37.000Z
import os from pathlib import Path import shutil import itertools import ctypes import concurrent.futures import multiprocessing as multi import threading import random import string import logging from ..handler import add_handler from ..backends.rasterio_ import to_gtiff, WriteDaskArray from .windows import get_wind...
37.048989
217
0.530129
ee01a7e4fc91e3027e3504f16ddf27372a05f9c9
8,164
py
Python
sitepackages/django/db/backends/mysql/operations.py
bitcpf/djangoage
f116860cbfa799eb6c47306a72d742b63c970dce
[ "Apache-2.0" ]
2
2017-06-21T09:46:55.000Z
2018-05-30T10:07:32.000Z
sitepackages/django/db/backends/mysql/operations.py
bitcpf/djangoage
f116860cbfa799eb6c47306a72d742b63c970dce
[ "Apache-2.0" ]
4
2020-02-12T02:53:08.000Z
2021-06-10T21:37:06.000Z
sitepackages/django/db/backends/mysql/operations.py
bitcpf/djangoage
f116860cbfa799eb6c47306a72d742b63c970dce
[ "Apache-2.0" ]
2
2021-03-24T12:11:48.000Z
2021-06-10T19:56:03.000Z
from __future__ import unicode_literals import uuid from django.conf import settings from django.db.backends.base.operations import BaseDatabaseOperations from django.utils import six, timezone from django.utils.encoding import force_text class DatabaseOperations(BaseDatabaseOperations): compiler_module = "djan...
39.439614
113
0.607178
604f7e300947d8a668b1a5a12ff4d02f5e3e5b2c
2,447
py
Python
twitoff/app.py
cicbeast/TwitOff
1b040036a4f0698f32ee559ea5f172e5e65893fc
[ "MIT" ]
null
null
null
twitoff/app.py
cicbeast/TwitOff
1b040036a4f0698f32ee559ea5f172e5e65893fc
[ "MIT" ]
2
2021-06-02T00:59:42.000Z
2021-06-08T20:34:25.000Z
twitoff/app.py
cicbeast/TwitOff
1b040036a4f0698f32ee559ea5f172e5e65893fc
[ "MIT" ]
null
null
null
from decouple import config from dotenv import load_dotenv from flask import Flask, render_template, request from .model import DB, User from .predict import predict_user from .twitter import add_or_update_user, update_all_users, add_default_users load_dotenv() def create_app(): '''Create and configure an instan...
35.985294
96
0.630568
8b426cdd92be0771821dc9b14d2e9b557cbd9e13
286
py
Python
examples/example_pydantic.py
katunilya/mona
8f44a9e06910466afbc9b2bcfb42144dcd25ed5a
[ "MIT" ]
2
2022-03-26T15:27:31.000Z
2022-03-28T22:00:32.000Z
examples/example_pydantic.py
katunilya/mona
8f44a9e06910466afbc9b2bcfb42144dcd25ed5a
[ "MIT" ]
null
null
null
examples/example_pydantic.py
katunilya/mona
8f44a9e06910466afbc9b2bcfb42144dcd25ed5a
[ "MIT" ]
null
null
null
from pydantic import BaseModel from moona import asgi, http class User(BaseModel): username: str name: str email: str age: int user = User(username="jdoe", name="John Doe", email="john_doe@example.org", age=33) app = asgi.create(http_handler=http.negotiate(user))
17.875
83
0.702797
816087262936cfca997be614b4f7179d14ec71ec
7,733
py
Python
tools/symsrc/source_index.py
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
1
2015-10-12T09:14:22.000Z
2015-10-12T09:14:22.000Z
tools/symsrc/source_index.py
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
null
null
null
tools/symsrc/source_index.py
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
1
2020-11-04T07:22:28.000Z
2020-11-04T07:22:28.000Z
#!/usr/bin/env python # Copyright (c) 2008 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Usage: <win-path-to-pdb.pdb> This tool will take a PDB on the command line, extract the source files that were used in building...
38.093596
102
0.654856
8b5f92e2831788e4e5d354bd9414187479487f39
215
py
Python
src/clock.py
ohjelmistotekniikka-hy/pygame-sokoban
4b9937166bbcd3adc7dc6522fcf898b90400926a
[ "MIT" ]
null
null
null
src/clock.py
ohjelmistotekniikka-hy/pygame-sokoban
4b9937166bbcd3adc7dc6522fcf898b90400926a
[ "MIT" ]
null
null
null
src/clock.py
ohjelmistotekniikka-hy/pygame-sokoban
4b9937166bbcd3adc7dc6522fcf898b90400926a
[ "MIT" ]
2
2021-05-16T20:32:04.000Z
2021-12-07T17:26:30.000Z
import pygame class Clock: def __init__(self): self._clock = pygame.time.Clock() def tick(self, fps): self._clock.tick(fps) def get_ticks(self): return pygame.time.get_ticks()
17.916667
41
0.623256
de58366f4a46d853cc93958128aded4de3b4ee8e
803
py
Python
OCRTTS.py
dys0763/ocr-tts
0dc8642ab0d2f030823210b5d829e0ace44ded09
[ "MIT" ]
null
null
null
OCRTTS.py
dys0763/ocr-tts
0dc8642ab0d2f030823210b5d829e0ace44ded09
[ "MIT" ]
null
null
null
OCRTTS.py
dys0763/ocr-tts
0dc8642ab0d2f030823210b5d829e0ace44ded09
[ "MIT" ]
null
null
null
import pyttsx3 from pytesseract import * def ocr(img, lang='kor'): #recognizes a given letter image #returns the recognized letters print('Letter Recognizing Started.') text = image_to_string(img, lang=lang) return text def tts(text, lang='kor+kor100', ADD_VOLUME=0, RATE=150): #transform a g...
27.689655
65
0.678705
ef01b69296a50a6896325d3e990b868de2adf91a
3,977
py
Python
examples/adwords/v201509/basic_operations/add_campaigns.py
fosterwei/adwords-keyword-planner-API-googleads-python-lib
b80b8b3741a55f1d00c5974bc58f92540663c6f6
[ "Apache-2.0" ]
1
2020-05-23T11:32:32.000Z
2020-05-23T11:32:32.000Z
examples/adwords/v201509/basic_operations/add_campaigns.py
fosterwei/adwords-keyword-planner-API-googleads-python-lib
b80b8b3741a55f1d00c5974bc58f92540663c6f6
[ "Apache-2.0" ]
null
null
null
examples/adwords/v201509/basic_operations/add_campaigns.py
fosterwei/adwords-keyword-planner-API-googleads-python-lib
b80b8b3741a55f1d00c5974bc58f92540663c6f6
[ "Apache-2.0" ]
2
2018-04-20T02:16:33.000Z
2020-11-12T20:58:54.000Z
#!/usr/bin/python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
31.314961
77
0.597184
f47eb63e8b30f8fa46c943d06a4f70c203c1ad5c
646
py
Python
CLV-dataset-weekly-training-and-prediction/config.py
mbrummerstedt/CLV_Production_Google_Cloud
7e34567503b070b273a1baebae1c0892bd16d5af
[ "Apache-2.0" ]
1
2021-09-07T18:45:48.000Z
2021-09-07T18:45:48.000Z
CLV-dataset-weekly-training-and-prediction/config.py
mbrummerstedt/CLV_Production_Google_Cloud
7e34567503b070b273a1baebae1c0892bd16d5af
[ "Apache-2.0" ]
null
null
null
CLV-dataset-weekly-training-and-prediction/config.py
mbrummerstedt/CLV_Production_Google_Cloud
7e34567503b070b273a1baebae1c0892bd16d5af
[ "Apache-2.0" ]
1
2021-02-25T03:30:25.000Z
2021-02-25T03:30:25.000Z
config_vars = { # Set Variables that will be used in script 'PENALIZER_COEF': 0.03, 'DISCOUNT_RATE': 0.01, 'PREDICTION_LENGTH_IN_MONTHS': 6, 'MODEL_TYPE':'BGNBD', 'FREQUENZY':'M', 'GCS_BUCKET_MODELS': 'your_company_trained_ml_models_production', 'GCS_BUCKET_PREDICTIONS': 'your_company_ml...
43.066667
101
0.733746
899df1e1496ff34b2e49013400691a267f60a3e2
3,675
py
Python
batch-norm/bn/bn/train_vgg.py
vbursztyn/deep-learning-for-practitioners
7b88473f32e6114053068ff90de00398eaefa128
[ "MIT" ]
6
2020-04-12T20:05:36.000Z
2022-02-23T03:03:20.000Z
batch-norm/bn/bn/train_vgg.py
vbursztyn/deep-learning-for-practitioners
7b88473f32e6114053068ff90de00398eaefa128
[ "MIT" ]
2
2020-05-03T23:59:22.000Z
2020-05-08T18:05:24.000Z
batch-norm/bn/bn/train_vgg.py
vbursztyn/deep-learning-for-practitioners
7b88473f32e6114053068ff90de00398eaefa128
[ "MIT" ]
20
2020-04-20T21:05:50.000Z
2021-03-31T09:53:47.000Z
from enum import Enum from datetime import datetime import importlib import torch import torchvision import torchvision.transforms as transforms from torch.utils.tensorboard import SummaryWriter from bn import VGGToy, VGG11 class ModelType(str, Enum): VGG11 = 'VGG11' VGG_Toy = 'VGGToy' def test_loop(model,...
33.108108
123
0.623129
f2507060f24225590a88d3c1930b94c043e18d72
1,121
py
Python
reactdjango/users/tests/test_forms.py
nimacgit/reactdjango
b76f1d4ed5f504ee9f27d9cfae11942160a65140
[ "Apache-2.0" ]
null
null
null
reactdjango/users/tests/test_forms.py
nimacgit/reactdjango
b76f1d4ed5f504ee9f27d9cfae11942160a65140
[ "Apache-2.0" ]
null
null
null
reactdjango/users/tests/test_forms.py
nimacgit/reactdjango
b76f1d4ed5f504ee9f27d9cfae11942160a65140
[ "Apache-2.0" ]
null
null
null
import pytest from reactdjango.users.forms import UserCreationForm from reactdjango.users.tests.factories import UserFactory pytestmark = pytest.mark.django_db class TestUserCreationForm: def test_clean_username(self): # A user with proto_user params does not exist yet. proto_user = UserFactory....
27.341463
59
0.595897
0b285e4b2792fbfaaaf0b342b457f06d1ced78fa
6,182
py
Python
App/src/smtp_engine.py
JiJiU33C43I/UCI-Schedule-Assistant
ed7d8cd92da816a3909f34d0eb5e2ef3ee507a7d
[ "MIT" ]
null
null
null
App/src/smtp_engine.py
JiJiU33C43I/UCI-Schedule-Assistant
ed7d8cd92da816a3909f34d0eb5e2ef3ee507a7d
[ "MIT" ]
13
2018-12-15T11:43:54.000Z
2022-03-11T23:42:57.000Z
App/src/smtp_engine.py
JiJiU33C43I/UCI-Schedule-Assistant
ed7d8cd92da816a3909f34d0eb5e2ef3ee507a7d
[ "MIT" ]
null
null
null
''' MIT License Copyright (c) 2019 JiJiU33C43I Contributors 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, modify, merg...
40.671053
135
0.560984
bc8c4d7974cb7c9a4c3197ca6701e37add8e7e12
1,642
py
Python
datalad/tests/test__main__.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
1
2021-06-11T19:54:19.000Z
2021-06-11T19:54:19.000Z
datalad/tests/test__main__.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
21
2015-03-12T11:48:18.000Z
2020-08-31T09:28:05.000Z
datalad/tests/test__main__.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
33.510204
87
0.652253
437b6cc7af0503ba8d9c2e7c4d616ce2bed6ca91
9,478
py
Python
dopamine/continuous_domains/run_experiment.py
crawlingcub/dopamine
0d155c12f96606188a97a001e02189bdd3723d4d
[ "Apache-2.0" ]
null
null
null
dopamine/continuous_domains/run_experiment.py
crawlingcub/dopamine
0d155c12f96606188a97a001e02189bdd3723d4d
[ "Apache-2.0" ]
null
null
null
dopamine/continuous_domains/run_experiment.py
crawlingcub/dopamine
0d155c12f96606188a97a001e02189bdd3723d4d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Dopamine Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
39.823529
80
0.715235
16a0941f4e6f5ba700521cfd30e33eebd0c4fcef
1,544
py
Python
projects/flow.sklearn.init-ParameterGrid/init.py
phmalek/signac-examples
d48def3106afcde70e58f07940ab0de3779bad4b
[ "BSD-3-Clause" ]
1
2020-03-12T19:27:46.000Z
2020-03-12T19:27:46.000Z
projects/flow.sklearn.init-ParameterGrid/init.py
phmalek/signac-examples
d48def3106afcde70e58f07940ab0de3779bad4b
[ "BSD-3-Clause" ]
null
null
null
projects/flow.sklearn.init-ParameterGrid/init.py
phmalek/signac-examples
d48def3106afcde70e58f07940ab0de3779bad4b
[ "BSD-3-Clause" ]
null
null
null
"""This example performs grid search, saving the results of each evaluated parameter set into a signac data space. See also: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.RandomizedSearchCV.html """ import joblib import signac from sklearn import datasets, svm from sklearn.model_selection i...
32.166667
97
0.685233
bae55349cea202d3ccfe436423aa243a6c3ead33
3,228
py
Python
region_count_prediction/data_setup.py
fegb-dataset22/dataset22
6642a01ca7ab9948c9b5ffc3aae1201cd8c72f0b
[ "MIT" ]
null
null
null
region_count_prediction/data_setup.py
fegb-dataset22/dataset22
6642a01ca7ab9948c9b5ffc3aae1201cd8c72f0b
[ "MIT" ]
null
null
null
region_count_prediction/data_setup.py
fegb-dataset22/dataset22
6642a01ca7ab9948c9b5ffc3aae1201cd8c72f0b
[ "MIT" ]
null
null
null
from typing import Tuple import pandas as pd from sklearn.model_selection import train_test_split from data.data_helpers import get_original_data from root import ROOT_DIR from weighted_mean_prediction.data_setup import one_hot_encode_df, split_data global REGIONS REGIONS = [f"R{_}" for _ in range(1, 9)] def get_n...
43.04
101
0.694238
66ad2872aed877a8b3bba2a3776bd95125587f83
562
py
Python
tests/DistributedAverager/Sensor.py
timkrentz/riaps-pycom
5b4d9b3c80f9191ec9f680264e6d0ccb14f171ba
[ "ECL-2.0", "Apache-2.0" ]
6
2019-02-24T10:14:46.000Z
2020-07-08T16:22:17.000Z
tests/DistributedAverager/Sensor.py
timkrentz/riaps-pycom
5b4d9b3c80f9191ec9f680264e6d0ccb14f171ba
[ "ECL-2.0", "Apache-2.0" ]
36
2018-10-16T04:39:54.000Z
2022-02-09T17:38:05.000Z
tests/DistributedAverager/Sensor.py
timkrentz/riaps-pycom
5b4d9b3c80f9191ec9f680264e6d0ccb14f171ba
[ "ECL-2.0", "Apache-2.0" ]
8
2018-10-23T22:09:18.000Z
2021-04-23T02:53:24.000Z
# import riaps from riaps.run.comp import Component import logging import random class Sensor(Component): def __init__(self,value): super(Sensor, self).__init__() if value == 0.0: self.myValue = (10.0 * random.random()) - 5.0 else: self.myValue = value ...
28.1
65
0.588968
c866ff62f7349b4bd29b73f13532c693fd143ca1
48,902
py
Python
python/ccxt/probit.py
TheTexasFarmer/ccxt
38a9d3a8ec14bf8aaa0a7d1dfb60f1b57c8df402
[ "MIT" ]
2
2021-07-19T06:59:47.000Z
2021-12-17T21:01:08.000Z
python/ccxt/probit.py
TheTexasFarmer/ccxt
38a9d3a8ec14bf8aaa0a7d1dfb60f1b57c8df402
[ "MIT" ]
null
null
null
python/ccxt/probit.py
TheTexasFarmer/ccxt
38a9d3a8ec14bf8aaa0a7d1dfb60f1b57c8df402
[ "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.337278
512
0.486176
ddbc34cca175cb340353d9c9c36085f929c84419
23,936
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_wans_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_wans_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_wans_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
46.387597
166
0.672543
78a1ba7d74557f0cd64ea97a5e4ecd39de551725
458
py
Python
plotly/validators/histogram2dcontour/_hoverinfosrc.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/histogram2dcontour/_hoverinfosrc.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/histogram2dcontour/_hoverinfosrc.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name='hoverinfosrc', parent_name='histogram2dcontour', **kwargs ): super(HoverinfosrcValidator, self).__init__( plotly_nam...
24.105263
71
0.611354
dd09657b269332f7febe917db709a47bbc98d9f1
12,698
py
Python
localstack/services/dynamodb/dynamodb_listener.py
jrideout/localstack
5ad9414b9aa0446efaccc4a537ef8c0f0cc822a0
[ "Apache-2.0" ]
null
null
null
localstack/services/dynamodb/dynamodb_listener.py
jrideout/localstack
5ad9414b9aa0446efaccc4a537ef8c0f0cc822a0
[ "Apache-2.0" ]
null
null
null
localstack/services/dynamodb/dynamodb_listener.py
jrideout/localstack
5ad9414b9aa0446efaccc4a537ef8c0f0cc822a0
[ "Apache-2.0" ]
1
2020-03-07T18:21:17.000Z
2020-03-07T18:21:17.000Z
import re import json import random import logging import threading from binascii import crc32 from requests.models import Response from localstack import config from localstack.utils.aws import aws_stack from localstack.utils.common import to_bytes, to_str, clone from localstack.utils.analytics import event_publisher ...
42.186047
118
0.621121
786c064bbef4bff3805e114ab466bfa525e874ac
9,078
py
Python
code/showcases/recursive-voronoi.py
geo7/scientific-visualization-book
71f6bac4db7ee2f26e88052fe7faa800303d8b00
[ "BSD-2-Clause" ]
2
2021-11-17T15:10:09.000Z
2021-12-24T13:31:10.000Z
code/showcases/recursive-voronoi.py
WuShichao/scientific-visualization-book
389766215aa6b234ed1cf560a3768437d41d1d37
[ "BSD-2-Clause" ]
1
2021-12-12T11:37:48.000Z
2021-12-12T11:39:00.000Z
code/showcases/recursive-voronoi.py
WuShichao/scientific-visualization-book
389766215aa6b234ed1cf560a3768437d41d1d37
[ "BSD-2-Clause" ]
2
2021-12-30T12:20:07.000Z
2022-02-24T06:36:41.000Z
# ---------------------------------------------------------------------------- # Title: Scientific Visualisation - Python & Matplotlib # Author: Nicolas P. Rougier # License: BSD # ---------------------------------------------------------------------------- import numpy as np import scipy.spatial import matplotlib.p...
31.852632
85
0.564772
10bcdfc38a07a0250d6f7c82b6914700baaaa5cf
3,708
py
Python
app/lex_interface.py
rwdavis513/bible-verse-lookup
643146fdf77d701c050f4f36526b974136094c9a
[ "MIT" ]
null
null
null
app/lex_interface.py
rwdavis513/bible-verse-lookup
643146fdf77d701c050f4f36526b974136094c9a
[ "MIT" ]
1
2021-06-01T22:12:06.000Z
2021-06-01T22:12:06.000Z
app/lex_interface.py
rwdavis513/bible-verse-lookup
643146fdf77d701c050f4f36526b974136094c9a
[ "MIT" ]
null
null
null
import datetime import dateutil.parser # --- Helpers that build all of the responses --- def elicit_slot(session_attributes, intent_name, slots, slot_to_elicit, message, response_card=None): if type(message) != dict: message = {'contentType': 'PlainText', 'content': mes...
25.93007
81
0.565804
ddaf6317f8f8438f882f9f96ef8a57588d45ce1f
908
py
Python
tensorflow1/dataset_benchmark.py
Alwaysproblem/explore-ipu
7f039768d40e1f3163e0941e2f8246f11ab953c2
[ "Apache-2.0" ]
null
null
null
tensorflow1/dataset_benchmark.py
Alwaysproblem/explore-ipu
7f039768d40e1f3163e0941e2f8246f11ab953c2
[ "Apache-2.0" ]
null
null
null
tensorflow1/dataset_benchmark.py
Alwaysproblem/explore-ipu
7f039768d40e1f3163e0941e2f8246f11ab953c2
[ "Apache-2.0" ]
null
null
null
import tensorflow import json # from tensorflow.python.ipu import (ipu_compiler, ipu_infeed_queue, ipu_outfeed_queue, loops, scopes, utils) # import tensorflow.compat.v1 as tf import tensorflow_core._api.v1.compat.v1 as tf from tensorflow_core.python import ipu from tensorflow_core.python.ipu import (ipu_compiler, ipu...
37.833333
127
0.80837
5f3de83522daddd7f3b016f3f44b305b60b25a8f
4,125
py
Python
train_with_your_data/scripts/cpmg/automated_metabolite_quantification/model_utils.py
ciceklab/targeted_brain_tumor_margin_assessment
2cf729019dfc1785992208a69c353a659c9b6448
[ "MIT" ]
1
2021-12-11T20:06:39.000Z
2021-12-11T20:06:39.000Z
train_with_your_data/scripts/eretic_cpmg/automated_metabolite_quantification/model_utils.py
ciceklab/targeted_brain_tumor_margin_assessment
2cf729019dfc1785992208a69c353a659c9b6448
[ "MIT" ]
null
null
null
train_with_your_data/scripts/eretic_cpmg/automated_metabolite_quantification/model_utils.py
ciceklab/targeted_brain_tumor_margin_assessment
2cf729019dfc1785992208a69c353a659c9b6448
[ "MIT" ]
2
2021-12-15T18:17:17.000Z
2021-12-16T12:08:30.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torch.nn.modules.module import _addindent from torch.utils.data import Dataset import numpy as np from collections import Counter import pdb import matplotlib.pyplot as plt import os # summarize Pyt...
38.915094
189
0.624727
5551cbb05754e4131257cbcc8d205fde41f44f1c
125
py
Python
ozone/message/__init__.py
wenbo1188/ozone
962f9bfbbe4ea29eb7cb50eff8058806efee7143
[ "MIT" ]
null
null
null
ozone/message/__init__.py
wenbo1188/ozone
962f9bfbbe4ea29eb7cb50eff8058806efee7143
[ "MIT" ]
8
2018-03-24T01:44:42.000Z
2018-08-25T06:43:49.000Z
ozone/message/__init__.py
wenbo1188/ozone
962f9bfbbe4ea29eb7cb50eff8058806efee7143
[ "MIT" ]
null
null
null
from flask import Blueprint message_page = Blueprint("message", __name__, template_folder="templates") from . import views
20.833333
74
0.792
1fae64af4a40b962011e2c09986ef492bf48bc13
16,300
py
Python
finrl/env/env_stocktrading_cashpenalty.py
kura52/FinRL-Library
238f8fd85e936ab3cf77144f9a4588a84cb41c9c
[ "MIT" ]
null
null
null
finrl/env/env_stocktrading_cashpenalty.py
kura52/FinRL-Library
238f8fd85e936ab3cf77144f9a4588a84cb41c9c
[ "MIT" ]
null
null
null
finrl/env/env_stocktrading_cashpenalty.py
kura52/FinRL-Library
238f8fd85e936ab3cf77144f9a4588a84cb41c9c
[ "MIT" ]
null
null
null
import logging import numpy as np import pandas as pd import random from copy import deepcopy import gym import time from gym.utils import seeding from gym import spaces import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt from stable_baselines3.common.vec_env import DummyVecEnv, SubprocVecEnv from ...
39.659367
205
0.592883
af530cfa7e8fadb091dca66d7947a5723157f366
276
py
Python
UnityEngine/ParticleSystemSubEmitterType/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/ParticleSystemSubEmitterType/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/ParticleSystemSubEmitterType/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
from UdonPie import UnityEngine from UdonPie.Undefined import * class ParticleSystemSubEmitterType: def __new__(cls, arg1=None): ''' :returns: ParticleSystemSubEmitterType :rtype: UnityEngine.ParticleSystemSubEmitterType ''' pass
23
56
0.692029
77cbedd875b2297903582a0286d744fa40b64bb6
39,625
py
Python
syncplay/messages_de.py
muaz742/syncplay
36239ce01c2ce9ebc8e83b163ae38916ea7a5226
[ "Apache-2.0" ]
null
null
null
syncplay/messages_de.py
muaz742/syncplay
36239ce01c2ce9ebc8e83b163ae38916ea7a5226
[ "Apache-2.0" ]
null
null
null
syncplay/messages_de.py
muaz742/syncplay
36239ce01c2ce9ebc8e83b163ae38916ea7a5226
[ "Apache-2.0" ]
null
null
null
# coding:utf8 """Deutsch dictionary""" de = { "LANGUAGE": "Deutsch", # (German) # Client notifications "config-cleared-notification": "Einstellungen gelöscht. Änderungen werden gespeichert, wenn du eine gültige Konfiguration speicherst.", "relative-config-notification": "Relative Konfigurationsdate...
75.909962
637
0.737615
0278dfff32933c7fae2d78b99f1ce026decbe046
28,525
py
Python
keystone/tests/unit/backend/domain_config/core.py
whitepages/keystone
7a0874f6f69852584061fa384f75dfb0d5f1c229
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/backend/domain_config/core.py
whitepages/keystone
7a0874f6f69852584061fa384f75dfb0d5f1c229
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/backend/domain_config/core.py
whitepages/keystone
7a0874f6f69852584061fa384f75dfb0d5f1c229
[ "Apache-2.0" ]
1
2021-03-21T11:38:30.000Z
2021-03-21T11:38:30.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
47.860738
79
0.61234
377110a72bd812519724bbec0d55b3984c5d9c86
728
py
Python
decorators.py
pavel-yas1405/teamwork
52a984576046a4d9ad2a6e48e52ec1a17688cd99
[ "MIT" ]
null
null
null
decorators.py
pavel-yas1405/teamwork
52a984576046a4d9ad2a6e48e52ec1a17688cd99
[ "MIT" ]
null
null
null
decorators.py
pavel-yas1405/teamwork
52a984576046a4d9ad2a6e48e52ec1a17688cd99
[ "MIT" ]
null
null
null
from functools import wraps from flask import current_app, flash, request, redirect, url_for from flask_login import config, current_user def admin_required(func): @wraps(func) def decorated_view(*args, **kwargs): if request.method in config.EXEMPT_METHODS: return func(*args, **kwargs) ...
36.4
64
0.679945
497b16aeeccd0896664a6533fc5cccdf4ed770be
1,558
py
Python
tests/test_mod.py
smnorris/terraincache
02de5ee7fd697cb0dd47d79bbc750c7f49a9199c
[ "MIT" ]
3
2020-10-05T22:19:26.000Z
2021-12-23T02:50:27.000Z
tests/test_mod.py
smnorris/terraincache
02de5ee7fd697cb0dd47d79bbc750c7f49a9199c
[ "MIT" ]
4
2019-10-12T00:08:45.000Z
2019-11-12T21:40:44.000Z
tests/test_mod.py
smnorris/terraincache
02de5ee7fd697cb0dd47d79bbc750c7f49a9199c
[ "MIT" ]
null
null
null
import os from pathlib import Path import mercantile from mercantile import Tile from terraincache import TerrainTiles TEST_TILE = Tile(x=622, y=1364, z=12) TEST_BOUNDS = (-125.271412, 51.370639, -125.254793, 51.376881) TEST_ZOOM_1 = 12 TEST_ZOOM_2 = 14 def tile_path(tile): return "/".join([str(tile.z), str(t...
25.540984
70
0.675225
bd4281a17a4fa547ca70434925bf77f99fe013bb
25,779
py
Python
LSIMasks/losses/latent_mask_loss.py
charlesity/LSIMasks
f3ff1984c6cd83baf3aee9a336d5b515898eec29
[ "MIT" ]
null
null
null
LSIMasks/losses/latent_mask_loss.py
charlesity/LSIMasks
f3ff1984c6cd83baf3aee9a336d5b515898eec29
[ "MIT" ]
null
null
null
LSIMasks/losses/latent_mask_loss.py
charlesity/LSIMasks
f3ff1984c6cd83baf3aee9a336d5b515898eec29
[ "MIT" ]
null
null
null
import warnings import gc import numpy as np from copy import deepcopy import torch import torch.utils.data import torch.nn as nn from torch.nn.parallel.data_parallel import data_parallel from inferno.extensions.criteria.set_similarity_measures import SorensenDiceLoss from inferno.extensions.containers.graph import I...
52.503055
144
0.574848
a045e1858abc454a2c43aa739b0ff2bba3c45b31
4,351
py
Python
sel_dedicated_codegen/models/price_model.py
xRocketPowerx/python-sel-dedicated
3b9b41fbd7abc05d427e8abf688b007b6dcf9e96
[ "MIT" ]
2
2019-10-12T08:56:31.000Z
2019-10-12T17:34:51.000Z
sel_dedicated_codegen/models/price_model.py
xRocketPowerx/python-sel-dedicated
3b9b41fbd7abc05d427e8abf688b007b6dcf9e96
[ "MIT" ]
null
null
null
sel_dedicated_codegen/models/price_model.py
xRocketPowerx/python-sel-dedicated
3b9b41fbd7abc05d427e8abf688b007b6dcf9e96
[ "MIT" ]
null
null
null
# coding: utf-8 """ Seido User REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 2.4.8 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import ...
25.89881
124
0.546541
69914c5ccbb400d14eb5c094cce1360dc676e927
2,600
py
Python
com/LimePencil/Q12844/XOR.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
null
null
null
com/LimePencil/Q12844/XOR.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
null
null
null
com/LimePencil/Q12844/XOR.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
null
null
null
# import sys # import math # def init(node, start, end): # if start == end: # tree[node] = arr[start] # else: # init(node*2, start, (start+end)//2) # init(node*2+1, (start+end)//2+1, end) # tree[node] = tree[node*2] ^ tree[node*2+1] # def lazy_update(node,start,end): # if l...
26.804124
114
0.543462
321f39d2a75d0c5398ab530e26d009e5951cb69a
2,314
py
Python
plugins/radio.py
MizoTelegram/tgvc-RadioBot
c4d18c0aadc85c1a56ee6841620e97408244180a
[ "MIT" ]
null
null
null
plugins/radio.py
MizoTelegram/tgvc-RadioBot
c4d18c0aadc85c1a56ee6841620e97408244180a
[ "MIT" ]
null
null
null
plugins/radio.py
MizoTelegram/tgvc-RadioBot
c4d18c0aadc85c1a56ee6841620e97408244180a
[ "MIT" ]
null
null
null
#MIT License #Copyright (c) 2021 Zaute Km #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, modify, merge, publish, di...
43.660377
139
0.743302
b71f655a33582d30740edf4a44926d35ff4064b8
1,480
py
Python
dags/dag_factory/components/utils.py
newspipe/Newspipe
752becd1b0c6e0358f087d6e5ced01175841a09f
[ "Apache-2.0" ]
3
2021-11-24T19:30:51.000Z
2022-01-21T05:38:59.000Z
dags/dag_factory/components/utils.py
newspipe/Newspipe
752becd1b0c6e0358f087d6e5ced01175841a09f
[ "Apache-2.0" ]
1
2020-09-19T21:00:20.000Z
2020-09-23T18:16:48.000Z
dags/dag_factory/components/utils.py
newspipe/Newspipe
752becd1b0c6e0358f087d6e5ced01175841a09f
[ "Apache-2.0" ]
1
2021-12-26T07:16:33.000Z
2021-12-26T07:16:33.000Z
import os import yaml import time from datetime import datetime def get_all_csv_paths(path): csv_paths = [] for root, dirs, files in os.walk(path): for file in files: if file.endswith(".csv"): csv_paths.append(os.path.join(root, file)) return csv_paths def date_str_to...
24.666667
71
0.506757
7f3ddea355743fa25b1859937a10fa00dd6544ef
236
py
Python
Mundo1/des16.1.py
julimoraislima/Python-CursoEmVideo
d21b0485d2f5767039d819cf743255dfd0f27b18
[ "MIT" ]
2
2021-01-05T12:31:00.000Z
2021-03-20T00:31:18.000Z
Mundo1/des16.1.py
julimoraislima/Python-CursoEmVideo
d21b0485d2f5767039d819cf743255dfd0f27b18
[ "MIT" ]
null
null
null
Mundo1/des16.1.py
julimoraislima/Python-CursoEmVideo
d21b0485d2f5767039d819cf743255dfd0f27b18
[ "MIT" ]
1
2020-12-28T22:56:10.000Z
2020-12-28T22:56:10.000Z
#desafio 16: usando o trunc, o trunc quebra o número real deixando ele inteiro. from math import trunc num = float(input('Digite um número real: ')) print('='*40) print(f'O número {num} tem a parte inteira {trunc(num)}') print('='*40)
29.5
79
0.70339
7f6c43922571e7929d354c75aad5be84af390dd5
704
py
Python
movingpandas/__init__.py
menegon/movingpandas
d1dbf633ee44a9caeabf1a16bf25bc855e0b00ce
[ "BSD-3-Clause" ]
null
null
null
movingpandas/__init__.py
menegon/movingpandas
d1dbf633ee44a9caeabf1a16bf25bc855e0b00ce
[ "BSD-3-Clause" ]
null
null
null
movingpandas/__init__.py
menegon/movingpandas
d1dbf633ee44a9caeabf1a16bf25bc855e0b00ce
[ "BSD-3-Clause" ]
null
null
null
""" `movingpandas`: Implementation of Trajectory classes and functions built on top of GeoPandas """ from .trajectory import Trajectory from .trajectory_generalizer import TrajectoryGeneralizer, MaxDistanceGeneralizer, MinDistanceGeneralizer, \ MinTimeDeltaGeneralizer, DouglasPeuckerGeneralizer from .trajectory_co...
41.411765
111
0.855114
84ee92c53bdccb84d2fad511c493ad5a42dca7ab
8,643
py
Python
main/help_window.py
Gloryness/YoutubeDL-GUI
c7052969af1e31ff5d6ff1f1ff027c0d29b0e8ba
[ "MIT" ]
3
2020-06-18T10:57:16.000Z
2020-06-23T09:10:43.000Z
main/help_window.py
Gloryness/Download-Videos
c7052969af1e31ff5d6ff1f1ff027c0d29b0e8ba
[ "MIT" ]
null
null
null
main/help_window.py
Gloryness/Download-Videos
c7052969af1e31ff5d6ff1f1ff027c0d29b0e8ba
[ "MIT" ]
null
null
null
import threading import webbrowser from tkinter import * from tkinter import ttk from tkinter.font import * count = 1 def reset(win): global count count = 1 win.destroy() class Help: def __init__(self, version): self.version = version global count if count == 1: se...
66.484615
183
0.648386
2f745828a07e10b2da5357c0e5622fdbf3b430b1
1,703
py
Python
dockermap/map/runner/signal_stop.py
merll/docker-map
54e325595fc0b6b9d154dacc790a222f957895da
[ "MIT" ]
85
2015-01-02T01:05:14.000Z
2022-03-23T22:23:12.000Z
dockermap/map/runner/signal_stop.py
merll/docker-map
54e325595fc0b6b9d154dacc790a222f957895da
[ "MIT" ]
21
2015-02-10T18:25:03.000Z
2020-10-28T08:38:39.000Z
dockermap/map/runner/signal_stop.py
merll/docker-map
54e325595fc0b6b9d154dacc790a222f957895da
[ "MIT" ]
15
2015-02-27T12:19:35.000Z
2021-09-29T06:20:14.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import logging import signal from requests.exceptions import Timeout from ..action import ContainerUtilAction from ..input import ItemType log = logging.getLogger(__name__) class SignalMixin(object): action_method_names = [ (ItemType.CONT...
35.479167
110
0.637111
3178e77a83eb9d8c57cc70e9fd09e67e6cfc9116
2,948
py
Python
Python-Standard-Library/DataCompression/zlib_server.py
gaufung/CodeBase
0292b06cfe002b3ad0299e43bb51192816a02c74
[ "MIT" ]
1
2018-10-06T23:50:53.000Z
2018-10-06T23:50:53.000Z
Python-Standard-Library/DataCompression/zlib_server.py
wsgan001/CodeBase
0292b06cfe002b3ad0299e43bb51192816a02c74
[ "MIT" ]
null
null
null
Python-Standard-Library/DataCompression/zlib_server.py
wsgan001/CodeBase
0292b06cfe002b3ad0299e43bb51192816a02c74
[ "MIT" ]
1
2018-10-06T23:50:50.000Z
2018-10-06T23:50:50.000Z
import zlib import logging import socketserver import binascii BLOCK_SIZE = 64 class ZlibRequestHandler(socketserver.BaseRequestHandler): logger = logging.getLogger('Server') def handle(self): compressor = zlib.compressobj(1) filename = self.request.recv(1024).decode('utf-8') ...
33.885057
76
0.604138
6171632c035ea3af6bf1253c01d1d4ee6f96c3d7
955
py
Python
p7e11.py
yannickbf-prog/python
da4bd2c8668966359b829a8ac2a896afeca2b150
[ "MIT" ]
null
null
null
p7e11.py
yannickbf-prog/python
da4bd2c8668966359b829a8ac2a896afeca2b150
[ "MIT" ]
null
null
null
p7e11.py
yannickbf-prog/python
da4bd2c8668966359b829a8ac2a896afeca2b150
[ "MIT" ]
null
null
null
#Yannick p7e11 Escribe un programa que te pida una frase, y pase la frase como parámetro a una función. Ésta debe devolver si es palíndroma o no , y el programa principal escribirá el resultado por pantalla: def comprobarPalindromo(fraseONumero): fraseONumero = fraseONumero.replace (" ", "") contarFras...
31.833333
208
0.66178
37b2f198905fcd4f56760b4d3e65f326d4b8aeb0
1,028
py
Python
examples/ssl_echo_client.py
Flared/proxy.py
7199459c69a717bb55f932230ae9a39707430149
[ "BSD-3-Clause" ]
null
null
null
examples/ssl_echo_client.py
Flared/proxy.py
7199459c69a717bb55f932230ae9a39707430149
[ "BSD-3-Clause" ]
null
null
null
examples/ssl_echo_client.py
Flared/proxy.py
7199459c69a717bb55f932230ae9a39707430149
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ proxy.py ~~~~~~~~ ⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging. :copyright: (c) 2013-present by Abhinav Singh and contributors. :license: BSD, see LICENSE...
29.371429
86
0.659533
911298bf3109f6aa8d3ab54cb169fe3041c1faf6
459
py
Python
0001-0100/0041-First Missing Positive/0041-First Missing Positive.py
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
0001-0100/0041-First Missing Positive/0041-First Missing Positive.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
0001-0100/0041-First Missing Positive/0041-First Missing Positive.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
class Solution: def firstMissingPositive(self, nums: List[int]) -> int: for i in range(len(nums)): while nums[i] != i + 1 and 1 <= nums[i] <= len(nums) and nums[i] != nums[nums[i] - 1]: temp = nums[i] nums[i] = nums[nums[i] - 1] nums[temp - 1] = te...
35.307692
98
0.448802
d2cefc6573275ee90ff12079f82e95080844dc61
563
py
Python
django_contactme/admin.py
petekalo/django-contactme
8a7d1e0213f0e02e9fa8043fdb74edbf8be921c0
[ "MIT" ]
null
null
null
django_contactme/admin.py
petekalo/django-contactme
8a7d1e0213f0e02e9fa8043fdb74edbf8be921c0
[ "MIT" ]
null
null
null
django_contactme/admin.py
petekalo/django-contactme
8a7d1e0213f0e02e9fa8043fdb74edbf8be921c0
[ "MIT" ]
null
null
null
from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from django_contactme.models import ContactMsg class ContactMsgAdmin(admin.ModelAdmin): list_display = ('name', 'ip_address', 'submit_date') fieldsets = ( (None, {'fields': ('site',)}), (_('Conte...
31.277778
67
0.648313
8c8cf11af61fe072f5f42646b91c1ee83b90afca
1,229
py
Python
app/auth/forms.py
crandquist/PrinterApp
fda5ba2b7494c83ebec9eef6bb03eb8cc176b5d4
[ "MIT" ]
null
null
null
app/auth/forms.py
crandquist/PrinterApp
fda5ba2b7494c83ebec9eef6bb03eb8cc176b5d4
[ "MIT" ]
12
2020-07-23T03:04:46.000Z
2020-08-10T19:37:40.000Z
app/auth/forms.py
crandquist/PrinterApp
fda5ba2b7494c83ebec9eef6bb03eb8cc176b5d4
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField from wtforms.validators import DataRequired, Email, EqualTo, ValidationError from app.models import User class LoginForm(FlaskForm): username = StringField('Username', validators=[DataRequired()]) password = PasswordF...
39.645161
79
0.703824
da1af07ea719efb6bd0de260ea8765075f164d15
7,704
py
Python
dgi_repo/fcrepo3/datastream_resource.py
discoverygarden/dgi_repo
1bb30d51a4cefc2ae510f5aeac4b36ed7a78f6a6
[ "Apache-2.0" ]
null
null
null
dgi_repo/fcrepo3/datastream_resource.py
discoverygarden/dgi_repo
1bb30d51a4cefc2ae510f5aeac4b36ed7a78f6a6
[ "Apache-2.0" ]
null
null
null
dgi_repo/fcrepo3/datastream_resource.py
discoverygarden/dgi_repo
1bb30d51a4cefc2ae510f5aeac4b36ed7a78f6a6
[ "Apache-2.0" ]
null
null
null
""" Class file for the implementation of the datastream resource. """ from psycopg2.extensions import ISOLATION_LEVEL_READ_COMMITTED import dgi_repo.database.read.repo_objects as object_reader import dgi_repo.database.read.datastreams as ds_reader import dgi_repo.database.write.datastreams as ds_writer import dgi_rep...
36.339623
78
0.548157
18e56b70f69726222243ae0f89028e97b4405958
195
py
Python
SPOJ/LASTDIG2.py
cquark7/competitive_programming
c90754d91628b273703c74e373356394732f0cd3
[ "MIT" ]
1
2019-06-16T08:21:56.000Z
2019-06-16T08:21:56.000Z
SPOJ/LASTDIG2.py
cquark7/competitive_programming
c90754d91628b273703c74e373356394732f0cd3
[ "MIT" ]
null
null
null
SPOJ/LASTDIG2.py
cquark7/competitive_programming
c90754d91628b273703c74e373356394732f0cd3
[ "MIT" ]
null
null
null
d2 = {n: {p % 4: str(n ** p)[-1] for p in range(4, 8)} for n in range(10)} for tc in range(int(input())): a, b = input().split() b = int(b) print(d2[int(a[-1])][b % 4] if b else '1')
32.5
74
0.492308
d68302e0aa5fba61998c63dd126fce2d702acbf7
2,433
py
Python
open_spiel/python/examples/playthrough.py
ReedyHarbour/MultiplayerPoker
70f3872a046d954d6ec2fca3d829ec36ac70e259
[ "Apache-2.0" ]
null
null
null
open_spiel/python/examples/playthrough.py
ReedyHarbour/MultiplayerPoker
70f3872a046d954d6ec2fca3d829ec36ac70e259
[ "Apache-2.0" ]
null
null
null
open_spiel/python/examples/playthrough.py
ReedyHarbour/MultiplayerPoker
70f3872a046d954d6ec2fca3d829ec36ac70e259
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies Ltd. 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 appl...
33.328767
88
0.706124
982703282a52fe3b6af5a568dcde080ce74e987c
26,752
py
Python
tensorboard/plugins/graph/keras_util_test.py
tjgq/tensorboard
751c961b90183115e4ab0ae3975d50146c0705b9
[ "Apache-2.0" ]
7
2020-04-04T16:25:42.000Z
2021-10-02T18:26:56.000Z
tensorboard/plugins/graph/keras_util_test.py
tjgq/tensorboard
751c961b90183115e4ab0ae3975d50146c0705b9
[ "Apache-2.0" ]
1
2021-09-02T14:57:13.000Z
2021-09-02T14:57:13.000Z
tensorboard/plugins/graph/keras_util_test.py
tjgq/tensorboard
751c961b90183115e4ab0ae3975d50146c0705b9
[ "Apache-2.0" ]
4
2020-08-08T18:08:44.000Z
2021-05-13T05:22:40.000Z
# 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...
27.437949
80
0.366216
82499e1efb50b0439d17ad9a5c921641ee95c56a
1,308
py
Python
tests/settings.py
systemallica/django-snitch
557ae2a0e01184ffc552536507782fff39785457
[ "MIT" ]
null
null
null
tests/settings.py
systemallica/django-snitch
557ae2a0e01184ffc552536507782fff39785457
[ "MIT" ]
null
null
null
tests/settings.py
systemallica/django-snitch
557ae2a0e01184ffc552536507782fff39785457
[ "MIT" ]
null
null
null
DEBUG = True USE_TZ = True SECRET_KEY = "dummy" DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}} INSTALLED_APPS = [ "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sites", "snitch", "tests.app", ] # Schedules INSTALLED_APPS += ["django_c...
26.693878
85
0.561162
7092d44a81a731393a94d95dc59a7a424526ad3e
2,994
py
Python
config.py
simpen/flaskz
49efe908cd8a325b51453d960155f5ad20fa1e16
[ "MIT" ]
null
null
null
config.py
simpen/flaskz
49efe908cd8a325b51453d960155f5ad20fa1e16
[ "MIT" ]
null
null
null
config.py
simpen/flaskz
49efe908cd8a325b51453d960155f5ad20fa1e16
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string' SSL_DISVBLE = True SQLALCHEMY_COMMIT_ON_TEARDOWN = True SQLALCHEMY_TRACK_MODIFICATIONS = True SQLALCHEMY_RECORD_QUERIES = True ...
30.242424
74
0.669339
2ebbaf7ffbcc42f2f7fe49ef985b7a9549a40b18
24,681
py
Python
test/functional/feature_csv_activation.py
cho2559/readercoin
aad2d84976b4fc5c8577f5460a303ec7492a3f25
[ "MIT" ]
null
null
null
test/functional/feature_csv_activation.py
cho2559/readercoin
aad2d84976b4fc5c8577f5460a303ec7492a3f25
[ "MIT" ]
null
null
null
test/functional/feature_csv_activation.py
cho2559/readercoin
aad2d84976b4fc5c8577f5460a303ec7492a3f25
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Readercoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test activation of the first version bits soft fork. This soft fork will activate the following BIP...
50.783951
166
0.695636
1d886c4765d7d85e7da97aa2fc71a047f7ee9135
4,816
py
Python
group/migrations/0001_initial.py
mingyuchoo/myartworks
9404dad4b9ee0047049a1a0196cb9ac32ce520d7
[ "MIT" ]
1
2016-08-16T06:34:36.000Z
2016-08-16T06:34:36.000Z
group/migrations/0001_initial.py
mingyuchoo/myartworks
9404dad4b9ee0047049a1a0196cb9ac32ce520d7
[ "MIT" ]
null
null
null
group/migrations/0001_initial.py
mingyuchoo/myartworks
9404dad4b9ee0047049a1a0196cb9ac32ce520d7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-15 01:42 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import taggit.managers class Migration(migrations.Migration): ini...
47.215686
170
0.580357
75e50b92d760f4ceae1d6a425cc18253285d6755
5,289
py
Python
saleor/graphql/order/tests/benchmark/test_order.py
siyoola/saleor
4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/order/tests/benchmark/test_order.py
siyoola/saleor
4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0
[ "CC-BY-4.0" ]
86
2021-11-01T04:51:55.000Z
2022-03-30T16:30:16.000Z
saleor/graphql/order/tests/benchmark/test_order.py
siyoola/saleor
4e52b8655a5570a8ce0a3b1484b4d8b46fbd0ad0
[ "CC-BY-4.0" ]
null
null
null
import graphene import pytest from ....checkout.tests.benchmark.test_checkout_mutations import ( FRAGMENT_ADDRESS, FRAGMENT_PRODUCT_VARIANT, ) from ....tests.utils import get_graphql_content FRAGMENT_DISCOUNTS = """ fragment OrderDiscounts on OrderDiscount { id type valueType value name ...
20.579767
82
0.563244
64254b620c8c573d1f4f5a5ec866a1ba992810d2
4,811
py
Python
src/gluonnlp/data/candidate_sampler.py
davisliang/gluon-nlp
18a736dbb55c80c2de82d73b923c3cd3d9d53591
[ "Apache-2.0" ]
7
2019-12-05T02:49:07.000Z
2020-08-17T01:11:59.000Z
src/gluonnlp/data/candidate_sampler.py
davisliang/gluon-nlp
18a736dbb55c80c2de82d73b923c3cd3d9d53591
[ "Apache-2.0" ]
null
null
null
src/gluonnlp/data/candidate_sampler.py
davisliang/gluon-nlp
18a736dbb55c80c2de82d73b923c3cd3d9d53591
[ "Apache-2.0" ]
3
2021-03-12T04:41:00.000Z
2021-03-12T04:41:24.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...
36.172932
80
0.617335
08cd75650a2b7ff3310a54d75c49613baada1365
26,191
py
Python
dosagelib/plugins/webtoons.py
toonn/dosage
890f116179b34dfa5349495b9792a643ee4c2d74
[ "MIT" ]
null
null
null
dosagelib/plugins/webtoons.py
toonn/dosage
890f116179b34dfa5349495b9792a643ee4c2d74
[ "MIT" ]
null
null
null
dosagelib/plugins/webtoons.py
toonn/dosage
890f116179b34dfa5349495b9792a643ee4c2d74
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright (C) 2019-2021 Tobias Gruetzmacher # Copyright (C) 2019-2020 Daniel Ring from ..scraper import _ParserScraper class WebToons(_ParserScraper): imageSearch = '//img[contains(@class, "_images")]/@data-url' prevSearch = '//a[contains(@class, "_prevEpisode")]' multiple...
61.481221
121
0.590126
b8ce2077e41cac03f7d2fba692f127dc2da2b639
1,156
py
Python
cogs/dbl.py
IceeMC/dat-banana-bot
14a81dc254e38dd6a4d65a9f7c6fd41da1e2369e
[ "MIT" ]
null
null
null
cogs/dbl.py
IceeMC/dat-banana-bot
14a81dc254e38dd6a4d65a9f7c6fd41da1e2369e
[ "MIT" ]
null
null
null
cogs/dbl.py
IceeMC/dat-banana-bot
14a81dc254e38dd6a4d65a9f7c6fd41da1e2369e
[ "MIT" ]
null
null
null
import discord import json import aiohttp import asyncio import os from discord.ext import commands uri = 'https://discordbots.org/api' class dbl: def __init__(self, bot): self.bot = bot self.session = self.bot.session with open("data/apikeys.json") as f: x = json.loads(f.read()...
23.591837
75
0.58391
3a3f17af0dcf98f0c42df3855a6872ee8b29018d
207
py
Python
cwe/categories.py
Julian-Nash/cwe
af43faeccc8b9489d1ceb6403fac53814a2c5f9c
[ "MIT" ]
11
2020-04-01T14:56:47.000Z
2022-02-22T06:00:50.000Z
cwe/categories.py
Julian-Nash/cwe
af43faeccc8b9489d1ceb6403fac53814a2c5f9c
[ "MIT" ]
3
2020-05-21T02:45:23.000Z
2021-11-18T11:09:44.000Z
cwe/categories.py
Julian-Nash/cwe
af43faeccc8b9489d1ceb6403fac53814a2c5f9c
[ "MIT" ]
2
2020-05-21T05:47:28.000Z
2021-08-06T04:59:19.000Z
import enum @enum.unique class CWECategory(enum.Enum): HARDWARE_DESIGN: str = "hardware_design" RESEARCH_CONCEPTS: str = "research_concepts" SOFTWARE_DEVELOPMENT: str = "software_development"
20.7
54
0.758454
875142c6e23e705c6fa866e566dcce397449bea1
1,977
py
Python
pca/interfaces/repository.py
daniel-butler/python-clean-architecture
a95da91fffb1120e1e748c9ee7717a622647288e
[ "MIT" ]
null
null
null
pca/interfaces/repository.py
daniel-butler/python-clean-architecture
a95da91fffb1120e1e748c9ee7717a622647288e
[ "MIT" ]
null
null
null
pca/interfaces/repository.py
daniel-butler/python-clean-architecture
a95da91fffb1120e1e748c9ee7717a622647288e
[ "MIT" ]
1
2019-12-11T01:32:08.000Z
2019-12-11T01:32:08.000Z
import typing as t from .dao import IDao from .entity import Entity, Id class IRepository(t.Generic[Id, Entity]): """ Repository serves as a collection of entites (with methods such as get, add, update, remove) with underlying persistence layer. Should know how to construct an instance, serialize it ...
35.303571
96
0.671725
409197ee9fee03511d1dcc396972f94baa718aad
6,677
py
Python
sdk/python/pulumi_azure_native/eventhub/latest/namespace_authorization_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventhub/latest/namespace_authorization_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventhub/latest/namespace_authorization_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
51.361538
952
0.685338
5d7712b001f5f308c13b2eeb3890c392db9b0fed
3,532
py
Python
tests/test_content.py
brianwisti/rgb-zola
60504a4ea91e72b14c120dc47b43264f2691d5cd
[ "CC-BY-4.0" ]
null
null
null
tests/test_content.py
brianwisti/rgb-zola
60504a4ea91e72b14c120dc47b43264f2691d5cd
[ "CC-BY-4.0" ]
null
null
null
tests/test_content.py
brianwisti/rgb-zola
60504a4ea91e72b14c120dc47b43264f2691d5cd
[ "CC-BY-4.0" ]
null
null
null
"""Check that content sources are in good, quality shape.""" from pathlib import Path from subprocess import run import frontmatter import pytest import yamale CONTENT_PATH = Path("content") ALL_MARKDOWN = list(CONTENT_PATH.glob("**/*.md")) BLOG_ARTICLES = [ article for article in ALL_MARKDOWN if articl...
31.256637
87
0.703001
e3062059aaf3642ef120a7d85726a8e5d2d2df9b
1,079
py
Python
examples/animations/warping.py
goodhertz/coldtype
2460b66abb28e9532f9e2b55167ae565f95366e7
[ "Apache-2.0" ]
142
2020-06-12T17:01:58.000Z
2022-03-16T23:21:37.000Z
examples/animations/warping.py
goodhertz/coldtype
2460b66abb28e9532f9e2b55167ae565f95366e7
[ "Apache-2.0" ]
35
2020-04-15T15:34:54.000Z
2022-03-19T20:26:47.000Z
examples/animations/warping.py
goodhertz/coldtype
2460b66abb28e9532f9e2b55167ae565f95366e7
[ "Apache-2.0" ]
14
2020-06-23T18:56:46.000Z
2022-03-31T15:54:56.000Z
from coldtype import * from coldtype.warping import warp_fn from coldtype.fx.skia import phototype Style.RegisterShorthandPrefix("≈", "~/Type/fonts/fonts") peshka = Font.Find("CoFoPeshkaV") loop = Loop(150, 15, [ # some keyframes dict(wdth=0, wght=0, rotate=-15, leading=200, font_size=700, warp=0, blur=15...
37.206897
70
0.612604
17c89b102d5fc0d5e6b4220c5cf78a24c1d13a66
4,722
py
Python
purity_fb/purity_fb_1dot12/models/array_connection_path_response.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
5
2017-09-08T20:47:22.000Z
2021-06-29T02:11:05.000Z
purity_fb/purity_fb_1dot12/models/array_connection_path_response.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
16
2017-11-27T20:57:48.000Z
2021-11-23T18:46:43.000Z
purity_fb/purity_fb_1dot12/models/array_connection_path_response.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
22
2017-10-13T15:33:05.000Z
2021-11-08T19:56:21.000Z
# coding: utf-8 """ Pure Storage FlashBlade REST 1.12 Python SDK Pure Storage FlashBlade REST 1.12 Python SDK. Compatible with REST API versions 1.0 - 1.12. Developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/...
31.271523
251
0.613088
489301969a2f7e437c398ebfb022471543a594d3
358
py
Python
src/metarl/torch/optimizers/__init__.py
neurips2020submission11699/metarl
ae4825d21478fa1fd0aa6b116941ea40caa152a5
[ "MIT" ]
2
2021-02-07T12:14:52.000Z
2021-07-29T08:07:22.000Z
src/metarl/torch/optimizers/__init__.py
neurips2020submission11699/metarl
ae4825d21478fa1fd0aa6b116941ea40caa152a5
[ "MIT" ]
null
null
null
src/metarl/torch/optimizers/__init__.py
neurips2020submission11699/metarl
ae4825d21478fa1fd0aa6b116941ea40caa152a5
[ "MIT" ]
null
null
null
"""PyTorch optimizers.""" from metarl.torch.optimizers.conjugate_gradient_optimizer import ( ConjugateGradientOptimizer) from metarl.torch.optimizers.differentiable_sgd import DifferentiableSGD from metarl.torch.optimizers.optimizer_wrapper import OptimizerWrapper __all__ = [ 'OptimizerWrapper', 'ConjugateGrad...
35.8
73
0.832402
bc275a9c665ad37e4b267c896a0a491345f2dc94
1,367
py
Python
sasx/magic.py
python-sasx/sasx
b8c812bf204701d5a175ad0f0c2286e6494f79c2
[ "MIT" ]
3
2016-04-24T15:21:00.000Z
2018-07-08T04:28:35.000Z
sasx/magic.py
python-sasx/sasx
b8c812bf204701d5a175ad0f0c2286e6494f79c2
[ "MIT" ]
null
null
null
sasx/magic.py
python-sasx/sasx
b8c812bf204701d5a175ad0f0c2286e6494f79c2
[ "MIT" ]
null
null
null
from __future__ import division import pandas from IPython.core.magic import (Magics, magics_class, cell_magic) from sasx.parse import sasx_parse from sasx.code import sasx_preloop from sasx.code import sasx_loop from sasx.code import sasx_postloop @magics_class class SasxMagics(Magics): """Define Magic to run c...
23.982456
68
0.603511
21396df2d73ba0f2b3a0b50a224c0edc28e70bcb
6,408
py
Python
Examples/FanFicFare-master/fanficfare/adapters/adapter_noveltrovecom.py
TomNorrie/ePubify
89c89bd22cafdea787f3131ca9cdc8336209ed6c
[ "MIT" ]
null
null
null
Examples/FanFicFare-master/fanficfare/adapters/adapter_noveltrovecom.py
TomNorrie/ePubify
89c89bd22cafdea787f3131ca9cdc8336209ed6c
[ "MIT" ]
null
null
null
Examples/FanFicFare-master/fanficfare/adapters/adapter_noveltrovecom.py
TomNorrie/ePubify
89c89bd22cafdea787f3131ca9cdc8336209ed6c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 Fanficdownloader team, 2017 FanFicFare team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
40.301887
118
0.564607
a6e1e665cdb4972593b64de7d6c9eb40a4c4f205
7,327
py
Python
sdk/python/pulumi_azure/containerservice/get_kubernetes_cluster.py
Frassle/pulumi-azure
593dd1020b09b83422928913d06bf91538926155
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/containerservice/get_kubernetes_cluster.py
Frassle/pulumi-azure
593dd1020b09b83422928913d06bf91538926155
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/containerservice/get_kubernetes_cluster.py
Frassle/pulumi-azure
593dd1020b09b83422928913d06bf91538926155
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime from .. import utilities, tables class GetKubernetesClusterResult(object): """ A collectio...
49.506757
384
0.686229
d99ca9dd059c744d68ba1802d9a1ede730341d8c
893
py
Python
tracker/site/management/commands/reset_counters.py
ashwoods/potato
0335ae8ee4a28832bc1ca8337c03c029b44c0665
[ "Apache-2.0" ]
null
null
null
tracker/site/management/commands/reset_counters.py
ashwoods/potato
0335ae8ee4a28832bc1ca8337c03c029b44c0665
[ "Apache-2.0" ]
16
2016-02-16T20:12:14.000Z
2016-02-22T06:47:44.000Z
tracker/site/management/commands/reset_counters.py
ashwoods/potatoist
0335ae8ee4a28832bc1ca8337c03c029b44c0665
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from tracker.site.models import Project class Command(BaseCommand): help = 'Closes the specified poll for voting' def handle(self, *args, **options): counter = 0 STATES = {'deleted': 0, 'new': 1, 'open': 2, 'closed': 3} ...
40.590909
77
0.617021
1757b98c42a0e25221799b457250a1dd6614bb53
1,699
py
Python
pwm/compute-ic.py
CostaLab/snp-selex
33421c4d1eff8ee60594af983b9f95a53502ef9e
[ "MIT" ]
13
2021-01-28T06:30:31.000Z
2022-02-14T16:40:11.000Z
pwm/compute-ic.py
CostaLab/snp-selex
33421c4d1eff8ee60594af983b9f95a53502ef9e
[ "MIT" ]
2
2021-05-27T07:54:08.000Z
2022-01-17T17:50:21.000Z
pwm/compute-ic.py
CostaLab/snp-selex
33421c4d1eff8ee60594af983b9f95a53502ef9e
[ "MIT" ]
6
2021-02-01T02:14:08.000Z
2022-01-13T17:14:56.000Z
import click import csv import numpy as np from math import log from Bio import motifs from Bio.Seq import Seq from Bio.Alphabet import generic_dna from Bio.Alphabet.IUPAC import unambiguous_dna def homer_parse(fstream): def build(name, freq): m = motifs.Motif(counts=freq) m.name = name re...
24.623188
86
0.547381
b4c7c26a148e569f736d7dc7f9ea394cb617a7a0
1,370
py
Python
UniSim/tools/analyzer.py
RDC4Smart-Mobility/UniSim
872a22ccdac859b9a12f11a9f5d20467e9db18ee
[ "MIT" ]
null
null
null
UniSim/tools/analyzer.py
RDC4Smart-Mobility/UniSim
872a22ccdac859b9a12f11a9f5d20467e9db18ee
[ "MIT" ]
null
null
null
UniSim/tools/analyzer.py
RDC4Smart-Mobility/UniSim
872a22ccdac859b9a12f11a9f5d20467e9db18ee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import, unicode_literals import sqlite3 import matplotlib.pyplot as plt import numpy as np class Analyzer(object): def __init__(self, dbpath): self.dbpath = dbpath def connect(self): if self.dbpath: ...
25.849057
82
0.537226
20a848b7967e2de70cc68a8a9b85b8f4c9992191
478
py
Python
tests/test_paths.py
seanholmes77/yfs
7f422848aec5f47e8a76c43647e034740abadbde
[ "MIT" ]
3
2021-01-24T03:52:28.000Z
2022-01-10T19:21:09.000Z
tests/test_paths.py
seanholmes77/yfs
7f422848aec5f47e8a76c43647e034740abadbde
[ "MIT" ]
null
null
null
tests/test_paths.py
seanholmes77/yfs
7f422848aec5f47e8a76c43647e034740abadbde
[ "MIT" ]
1
2021-01-19T02:01:23.000Z
2021-01-19T02:01:23.000Z
from yfs import __version__ from yfs.paths import PROJECT_ROOT, SOURCE_ROOT import toml def test_sanity(): pyproject_path = PROJECT_ROOT / "pyproject.toml" assert pyproject_path.exists() with open(pyproject_path, mode="r") as file: content = toml.loads(file.read()) assert content["tool"]["po...
25.157895
66
0.707113
a5b5e7b7c9310b809d126aed9e9a7629c11730ce
5,569
py
Python
src/patcher.py
luisvalesilva/multisurv
9f7c12b51260a3ea853df786014b5e68284c2b95
[ "MIT" ]
11
2021-08-02T09:18:59.000Z
2022-02-04T15:51:25.000Z
src/patcher.py
luisvalesilva/multisurv
9f7c12b51260a3ea853df786014b5e68284c2b95
[ "MIT" ]
null
null
null
src/patcher.py
luisvalesilva/multisurv
9f7c12b51260a3ea853df786014b5e68284c2b95
[ "MIT" ]
8
2021-07-02T08:06:47.000Z
2022-03-08T16:07:34.000Z
"""Run offline patching from GDC slides. Generate WSI patches and save to disk as PNG files. """ import os import threading import uuid from PIL import Image from wsipre import slide class PatchGenerator(object): """Generator of GDC WSI patches.""" def __init__(self, slide_files, slide_level=0, random_tis...
32.190751
77
0.598133
8c9d652bebd2fe21abfef15741e608c055827e86
6,321
py
Python
test/functional/feature_cltv.py
developertask/pivx-4
012420f23ae79c8f2e42223cc4bdb2b315e4445c
[ "MIT" ]
null
null
null
test/functional/feature_cltv.py
developertask/pivx-4
012420f23ae79c8f2e42223cc4bdb2b315e4445c
[ "MIT" ]
null
null
null
test/functional/feature_cltv.py
developertask/pivx-4
012420f23ae79c8f2e42223cc4bdb2b315e4445c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test BIP65 (CHECKLOCKTIMEVERIFY). Test that the CHECKLOCKTIMEVERIFY soft-fork activates at (regtest) b...
40.780645
107
0.682012
6b96dc68283c30619b9e51c1cf05bac17194ed9c
514
py
Python
protex/__init__.py
wiederm/protex
7fb945dcee138705e28465f4657678185ed97cb8
[ "MIT" ]
5
2021-06-01T13:36:29.000Z
2022-03-04T13:10:57.000Z
protex/__init__.py
wiederm/protex
7fb945dcee138705e28465f4657678185ed97cb8
[ "MIT" ]
5
2021-05-12T07:34:24.000Z
2022-03-21T14:49:59.000Z
protex/__init__.py
wiederm/protex
7fb945dcee138705e28465f4657678185ed97cb8
[ "MIT" ]
1
2021-12-09T16:18:13.000Z
2021-12-09T16:18:13.000Z
""" protex Proton exchange using SAMS and openMM for ionic liquids """ # Add imports here from .protex import * # Handle versioneer from ._version import get_versions versions = get_versions() __version__ = versions["version"] __git_revision__ = versions["full-revisionid"] del get_versions, versions import logging ...
22.347826
80
0.743191
9a5a16a0441913718fc674d42f3bbebcf055eb82
6,270
py
Python
nas_bench_x11/models/svd_xgb.py
automl/nas-bench-x11
56aee15f125339c4d2af1cbfad9f66fd4643c9d7
[ "Apache-2.0" ]
14
2021-12-08T17:56:01.000Z
2022-01-15T05:06:59.000Z
nas_bench_x11/models/svd_xgb.py
shenyann/nas-bench-x11
ebf64ce3c30cc2ad0909508b5e25652011179956
[ "Apache-2.0" ]
4
2022-01-10T09:04:38.000Z
2022-01-23T03:35:09.000Z
nas_bench_x11/models/svd_xgb.py
shenyann/nas-bench-x11
ebf64ce3c30cc2ad0909508b5e25652011179956
[ "Apache-2.0" ]
1
2021-12-08T17:56:06.000Z
2021-12-08T17:56:06.000Z
import logging import os import joblib import numpy as np import xgboost as xgb from sklearn.multioutput import RegressorChain from sklearn.preprocessing import StandardScaler from nas_bench_x11.utils import utils from nas_bench_x11.surrogate_model import SurrogateModel class SVDXGBModel(SurrogateModel): def __i...
40.980392
145
0.676236
e6229fc27c8a06d4d92bd7c6f797a3663bbc1115
3,085
py
Python
preprocess/init_rw.py
WWW2022PAGG/PAGG
f3eddec9157d1b34c100883193221d64c26be7ee
[ "MIT" ]
null
null
null
preprocess/init_rw.py
WWW2022PAGG/PAGG
f3eddec9157d1b34c100883193221d64c26be7ee
[ "MIT" ]
null
null
null
preprocess/init_rw.py
WWW2022PAGG/PAGG
f3eddec9157d1b34c100883193221d64c26be7ee
[ "MIT" ]
null
null
null
import numpy as np import json import time from pathlib import Path from dataset import PlanetoidData from torch_geometric.utils import from_scipy_sparse_matrix import torch import compute_merw as rw import scipy import argparse from scipy.sparse import csr_matrix import warnings warnings.filterwarnings('ignore') pars...
34.277778
77
0.603566
fa1497e8baa8bcc5bb270a9c6e78876648c1cea3
10,893
py
Python
burst/lcloud.py
eye0inc/burst
c51290a8c52323714735f7f38a7822011d2db7cd
[ "Apache-2.0" ]
null
null
null
burst/lcloud.py
eye0inc/burst
c51290a8c52323714735f7f38a7822011d2db7cd
[ "Apache-2.0" ]
null
null
null
burst/lcloud.py
eye0inc/burst
c51290a8c52323714735f7f38a7822011d2db7cd
[ "Apache-2.0" ]
null
null
null
import os, sys, time, argparse, json import yaml from pprint import pprint from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver from libcloud.compute.base import NodeAuthSSHKey from libcloud.common.google import ResourceNotFoundError from easydict import EasyDict as dictobj fro...
38.62766
151
0.584228
565961e1b8c5391a5674c944eff3349f69447085
34,797
py
Python
homeassistant/components/cast/media_player.py
wstewart15/core
854d7d49367d560406d6099a5ba56a0be6c0b9c7
[ "Apache-2.0" ]
null
null
null
homeassistant/components/cast/media_player.py
wstewart15/core
854d7d49367d560406d6099a5ba56a0be6c0b9c7
[ "Apache-2.0" ]
7
2020-08-05T07:22:37.000Z
2020-10-12T10:43:30.000Z
homeassistant/components/cast/media_player.py
wstewart15/core
854d7d49367d560406d6099a5ba56a0be6c0b9c7
[ "Apache-2.0" ]
1
2022-01-03T06:44:44.000Z
2022-01-03T06:44:44.000Z
"""Provide functionality to interact with Cast devices on the network.""" from __future__ import annotations import asyncio from contextlib import suppress from datetime import datetime import json import logging import pychromecast from pychromecast.controllers.homeassistant import HomeAssistantController from pychr...
36.589905
88
0.645515
c40794397cf49fcc83153df678b749f00bf27755
1,037
py
Python
FreeInductionDecay/analysis/hilbert_transform.py
renereimann/FID_Simulation
40fe7f0892a5f4600d863658f748906bff050b67
[ "MIT" ]
null
null
null
FreeInductionDecay/analysis/hilbert_transform.py
renereimann/FID_Simulation
40fe7f0892a5f4600d863658f748906bff050b67
[ "MIT" ]
null
null
null
FreeInductionDecay/analysis/hilbert_transform.py
renereimann/FID_Simulation
40fe7f0892a5f4600d863658f748906bff050b67
[ "MIT" ]
1
2020-04-11T04:18:31.000Z
2020-04-11T04:18:31.000Z
# -*- coding: utf-8 -*- import numpy as np from scipy.signal import hilbert from ..units import uV, ms class HilbertTransform(object): def __init__(self, times, flux): if len(times) != len(flux): raise AttributeError("times and flux must have the same dimension") self.N = len(flux) ...
28.805556
79
0.584378
69d9b8dcb1063804a274138acfd44b66ee48ab5f
1,616
py
Python
geotrek/appconfig.py
fossabot/Geotrek-admin
ea2c873511ad724c742c64d81cbf31f37dbe3093
[ "BSD-2-Clause" ]
null
null
null
geotrek/appconfig.py
fossabot/Geotrek-admin
ea2c873511ad724c742c64d81cbf31f37dbe3093
[ "BSD-2-Clause" ]
null
null
null
geotrek/appconfig.py
fossabot/Geotrek-admin
ea2c873511ad724c742c64d81cbf31f37dbe3093
[ "BSD-2-Clause" ]
null
null
null
from django.apps import AppConfig from django.contrib.admin.apps import AdminConfig from django.contrib.auth.apps import AuthConfig from django.contrib.contenttypes.apps import ContentTypesConfig from django.contrib.sessions.apps import SessionsConfig from django.db.models.signals import post_migrate, pre_migrate from ...
29.381818
106
0.770421
11302a14b1d829799a07ae503a05f54d8c58f734
5,767
py
Python
python/tvm/tir/sparse.py
yzh119/tvm
19400c9967020ca822399f57de0253c3dc98845b
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
python/tvm/tir/sparse.py
yzh119/tvm
19400c9967020ca822399f57de0253c3dc98845b
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
9
2021-10-20T13:48:52.000Z
2021-12-09T07:14:24.000Z
python/tvm/tir/sparse.py
yzh119/tvm
19400c9967020ca822399f57de0253c3dc98845b
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
23.73251
104
0.658575
82b9ca856b434b9abd044923c0088faa91e76968
1,169
py
Python
octavia/api/v2/controllers/__init__.py
BeaconFramework/Distributor
c9f8737063263ca69365679c8b76331766d63191
[ "Apache-2.0" ]
1
2019-01-11T06:20:25.000Z
2019-01-11T06:20:25.000Z
octavia/api/v2/controllers/__init__.py
BeaconFramework/Distributor
c9f8737063263ca69365679c8b76331766d63191
[ "Apache-2.0" ]
null
null
null
octavia/api/v2/controllers/__init__.py
BeaconFramework/Distributor
c9f8737063263ca69365679c8b76331766d63191
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel # # 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...
27.833333
78
0.730539