hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
9f775af7b3cce8b78176e17a592e171634c325f7
16
py
Python
this_file.py
edsonlb/holyshit
eaf047496f0cc3260f1d5057c584969e13f2d976
[ "MIT" ]
null
null
null
this_file.py
edsonlb/holyshit
eaf047496f0cc3260f1d5057c584969e13f2d976
[ "MIT" ]
null
null
null
this_file.py
edsonlb/holyshit
eaf047496f0cc3260f1d5057c584969e13f2d976
[ "MIT" ]
null
null
null
print 'holyshit'
16
16
0.8125
4b51ef85089d93ac92c98314ebe77447672419bb
15,688
py
Python
hematite/serdes.py
abilian/hematite
1d8c3390f06522cb03b2c6a39b3b8aff87f2ac71
[ "BSD-3-Clause" ]
null
null
null
hematite/serdes.py
abilian/hematite
1d8c3390f06522cb03b2c6a39b3b8aff87f2ac71
[ "BSD-3-Clause" ]
null
null
null
hematite/serdes.py
abilian/hematite
1d8c3390f06522cb03b2c6a39b3b8aff87f2ac71
[ "BSD-3-Clause" ]
null
null
null
import re import time from datetime import datetime, timedelta from hematite.constants import HEADER_CASE_MAP from hematite.raw import core from hematite.raw.datastructures import Headers # these two functions are shared by Request and Response. Could use a # metaclass maybe, but we'll see. def _init_headers(self)...
27.619718
84
0.567313
4eed7230ebb8e080e7a8e6e6b56aa79abaf537b5
277
py
Python
delayreport/GTFSFileTypes/Trips.py
alex-wenzel/delay-report
caecac13e4ec29a532ae6a527ed660f0fcafcd1c
[ "MIT" ]
null
null
null
delayreport/GTFSFileTypes/Trips.py
alex-wenzel/delay-report
caecac13e4ec29a532ae6a527ed660f0fcafcd1c
[ "MIT" ]
null
null
null
delayreport/GTFSFileTypes/Trips.py
alex-wenzel/delay-report
caecac13e4ec29a532ae6a527ed660f0fcafcd1c
[ "MIT" ]
null
null
null
""" Python representation of the GTFS trips.txt file """ from GTFSFile import GTFSFile class Trips(GTFSFile): def __init__(self, file_path): """ Instantiate trips representation """ GTFSFile.__init__(self, file_path, index_name="trip_id")
21.307692
64
0.66787
0011ebc74a39e610b7033e833a8b47cc2c46cabd
930
py
Python
scripts/fsm2fsg.py
alumae/ruby-pocketsphinx-server
2c13f377650745dac61cd45253ac6cb7f7659d07
[ "BSD-3-Clause" ]
43
2015-01-05T18:15:49.000Z
2022-01-01T23:11:04.000Z
scripts/fsm2fsg.py
alumae/ruby-pocketsphinx-server
2c13f377650745dac61cd45253ac6cb7f7659d07
[ "BSD-3-Clause" ]
4
2015-01-16T02:24:19.000Z
2017-06-28T12:47:15.000Z
scripts/fsm2fsg.py
alumae/ruby-pocketsphinx-server
2c13f377650745dac61cd45253ac6cb7f7659d07
[ "BSD-3-Clause" ]
11
2015-02-16T07:11:22.000Z
2020-12-28T12:43:22.000Z
#! /usr/bin/env python import sys from math import exp if __name__ == '__main__': #HACK: currently all weights are set to 1. Seems to make the recognition more robust arcs = [] for l in sys.stdin: ss = l.split() if len(ss) == 5: arcs.append((int(ss[0]), int(ss[1]), ss[2], 1)) elif len(ss) ...
24.473684
99
0.570968
f562a48e44ae99f51ac82e884aaf828fe87a4104
7,263
py
Python
tests/python/unittest/test_lang_tensor.py
azai91/tvm
e986f87e348e9e399297a916c78f8a0b916e92ad
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_lang_tensor.py
azai91/tvm
e986f87e348e9e399297a916c78f8a0b916e92ad
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_lang_tensor.py
azai91/tvm
e986f87e348e9e399297a916c78f8a0b916e92ad
[ "Apache-2.0" ]
null
null
null
import tvm from topi.nn.pooling import pool def test_tensor(): m = tvm.var('m') n = tvm.var('n') l = tvm.var('l') A = tvm.placeholder((m, l), name='A') B = tvm.placeholder((n, l), name='B') T = tvm.compute((m, n, l), lambda i, j, k: A[i, k] * B[j, k]) print(T) print(T.op.body) asser...
31.306034
85
0.549497
541a75aa3f0219e94d4bfed11913f90dd01dbfc8
34,861
py
Python
web/addons/website/models/website.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
web/addons/website/models/website.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
web/addons/website/models/website.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import cStringIO import contextlib import datetime import hashlib import inspect import logging import math import mimetypes import unicodedata import os import re import time import urlparse from PIL import Image from sys import maxint import werkzeug # optional python-slugify import (https:/...
41.158205
168
0.587505
91302286fb1d04a86a4cdc8750fc21228caacbab
466
py
Python
resources/PyInstaller-3.0/tests/old_suite/basic/test_onefile_nestedlaunch0.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
resources/PyInstaller-3.0/tests/old_suite/basic/test_onefile_nestedlaunch0.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
resources/PyInstaller-3.0/tests/old_suite/basic/test_onefile_nestedlaunch0.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this softwa...
29.125
78
0.491416
223335188bce28e0964b016dd64f9677274e7613
1,948
py
Python
echopype/convert/parse_ek80.py
imranmaj/echopype
b2b51334fad78086f0ccb52cd4ddba4ab4ecf40c
[ "Apache-2.0" ]
1
2020-06-20T20:50:24.000Z
2020-06-20T20:50:24.000Z
echopype/convert/parse_ek80.py
imranmaj/echopype
b2b51334fad78086f0ccb52cd4ddba4ab4ecf40c
[ "Apache-2.0" ]
3
2020-12-18T03:22:57.000Z
2021-08-12T21:04:44.000Z
echopype/convert/parse_ek80.py
imranmaj/echopype
b2b51334fad78086f0ccb52cd4ddba4ab4ecf40c
[ "Apache-2.0" ]
1
2020-11-13T22:35:55.000Z
2020-11-13T22:35:55.000Z
from .parse_base import ParseEK class ParseEK80(ParseEK): """Class for converting data from Simrad EK80 echosounders. """ def __init__(self, file, params, storage_options={}): super().__init__(file, params, storage_options) self.environment = {} # dictionary to store environment data ...
44.272727
115
0.594969
1f9e1739dcbadfb09eb9ce0598f2095ae50be190
4,367
py
Python
test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
41.590476
106
0.670712
84e60665a805a46cb596f6d49ef69a6f3f7bde94
6,761
py
Python
Interoperability/python/src/qsharp/clients/iqsharp.py
thomascherickal/QuantumLibraries
deddc063780aae3de6448ef75624a71435e2b240
[ "MIT" ]
1
2019-09-02T00:31:41.000Z
2019-09-02T00:31:41.000Z
Interoperability/python/src/qsharp/clients/iqsharp.py
thomascherickal/QuantumLibraries
deddc063780aae3de6448ef75624a71435e2b240
[ "MIT" ]
null
null
null
Interoperability/python/src/qsharp/clients/iqsharp.py
thomascherickal/QuantumLibraries
deddc063780aae3de6448ef75624a71435e2b240
[ "MIT" ]
1
2019-09-02T00:36:03.000Z
2019-09-02T00:36:03.000Z
#!/bin/env python # -*- coding: utf-8 -*- ## # iqsharp.py: Client for the IQ# Jupyter kernel. ## # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. ## import subprocess import time import http.client import atexit import json import sys import urllib.parse import os import j...
32.980488
123
0.620914
9715b5c9313822988e418991ee018322c60375fa
3,347
py
Python
main.py
cbordei/AeB-Bot
1e4e0df820297017426dc4b9bab4564d2ed36223
[ "MIT" ]
null
null
null
main.py
cbordei/AeB-Bot
1e4e0df820297017426dc4b9bab4564d2ed36223
[ "MIT" ]
null
null
null
main.py
cbordei/AeB-Bot
1e4e0df820297017426dc4b9bab4564d2ed36223
[ "MIT" ]
null
null
null
import skype_chatbot import json from common import log import shlex import random import settings import imgur_api import links import commands import skypebottoken import os import bleach import db from bs4 import BeautifulSoup from flask import Flask, request app = Flask(__name__) last_sender = "" nsfw_tag = Fals...
25.746154
104
0.63908
1cc45c2aa040736dd80915b66c24ccf59cbc1ba9
2,946
py
Python
difflogic/thutils.py
matthieu637/DLM
18fb6c80508abde6b81873d06c7e57f93e3425e3
[ "Apache-2.0", "MIT" ]
9
2021-04-07T13:29:37.000Z
2022-01-06T02:29:50.000Z
difflogic/thutils.py
matthieu637/DLM
18fb6c80508abde6b81873d06c7e57f93e3425e3
[ "Apache-2.0", "MIT" ]
1
2021-07-26T17:42:09.000Z
2021-11-14T13:04:34.000Z
difflogic/thutils.py
matthieu637/DLM
18fb6c80508abde6b81873d06c7e57f93e3425e3
[ "Apache-2.0", "MIT" ]
3
2021-07-27T15:45:23.000Z
2021-12-29T07:57:30.000Z
#! /usr/bin/env python3 # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
30.061224
74
0.674474
88cb34bf157e0f48ba50e7caeb98fe7858b4d070
1,267
py
Python
client/Agent/module/lua.py
zhanglei/Qalarm
b528a405c48ed9a5dbdc9c5e09bc060e6ba31f9b
[ "MIT" ]
1
2019-04-29T12:39:43.000Z
2019-04-29T12:39:43.000Z
client/Agent/module/lua.py
zhanglei/Qalarm
b528a405c48ed9a5dbdc9c5e09bc060e6ba31f9b
[ "MIT" ]
null
null
null
client/Agent/module/lua.py
zhanglei/Qalarm
b528a405c48ed9a5dbdc9c5e09bc060e6ba31f9b
[ "MIT" ]
null
null
null
import re import time def check_resty(fp, module, report): ''' Example line 2016/09/18 16:13:15 [error] 19875#0: *20607461 lua tcp socket read timed out, client: 10.209.37.76, server: , request: "POST /shake/v2/lottery/luck?puid=78176F4B526D448EB75AFF2A1D4BA15A&__v=v2&_realip=117.136.7.13&__trace_id=10.20...
30.166667
308
0.501184
768109d1420ff5cc28d8d88f95be338ea0017f1b
4,932
py
Python
src/GraphQueries/MyGraphQueriesVisitor.py
lanasheep/graph_DB
139aca8d1fa376291a181606b4d6fbc5be82de55
[ "MIT" ]
null
null
null
src/GraphQueries/MyGraphQueriesVisitor.py
lanasheep/graph_DB
139aca8d1fa376291a181606b4d6fbc5be82de55
[ "MIT" ]
4
2020-09-27T10:46:29.000Z
2020-10-03T08:34:38.000Z
src/GraphQueries/MyGraphQueriesVisitor.py
lanasheep/graph_DB
139aca8d1fa376291a181606b4d6fbc5be82de55
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os from collections import defaultdict from antlr4 import * from algebra import tensor_alg from chomsky import get_new_nonterm from cyk import parse_graph if __name__ is not None and "." in __name__: from .GraphQueriesParser import GraphQueriesParser else: from GraphQueriesParser i...
36.80597
120
0.617599
a2fec7a730d68b5da2571946d26dea3ae56c694f
2,302
py
Python
tools/audio_player.py
deeredman1991/CreepSmash
566b87c6d70f3663016f1c6d41d63432f9d0e785
[ "MIT" ]
null
null
null
tools/audio_player.py
deeredman1991/CreepSmash
566b87c6d70f3663016f1c6d41d63432f9d0e785
[ "MIT" ]
null
null
null
tools/audio_player.py
deeredman1991/CreepSmash
566b87c6d70f3663016f1c6d41d63432f9d0e785
[ "MIT" ]
null
null
null
import tools.toolbox as toolbox import threading import time import tools.pyaudio.pyaudio as pyaudio import wave class AudioPlayer(object): def __init__(self, jSettings): self._music_settings = jSettings.music self._audio_file = None self._music_track = None self._stop_music = Fals...
28.775
74
0.565595
53c7af7110474f786cb33a191e324f36c349b51b
253
py
Python
lit_management/lit_management/doctype/ct_docs_notices/ct_docs_notices.py
bittssystem/lit_management
81411eca2925ae24990eb1a2dfbbe5e63271ee18
[ "MIT" ]
1
2019-11-07T05:40:43.000Z
2019-11-07T05:40:43.000Z
lit_management/lit_management/doctype/ct_docs_notices/ct_docs_notices.py
bittssystem/lit_management
81411eca2925ae24990eb1a2dfbbe5e63271ee18
[ "MIT" ]
null
null
null
lit_management/lit_management/doctype/ct_docs_notices/ct_docs_notices.py
bittssystem/lit_management
81411eca2925ae24990eb1a2dfbbe5e63271ee18
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, KEA and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class CTDOCSNOTICES(Document): pass
23
49
0.778656
cfeb529dc930cfc67e137d4a17c02ec0d9c93edc
350
py
Python
Community/GitLab Management/gitlab_configuration/__init__.py
hungtranusa/gateway-workflows
379a5d323818befcfe5d2764f93db5b41b9b9884
[ "Apache-2.0" ]
null
null
null
Community/GitLab Management/gitlab_configuration/__init__.py
hungtranusa/gateway-workflows
379a5d323818befcfe5d2764f93db5b41b9b9884
[ "Apache-2.0" ]
null
null
null
Community/GitLab Management/gitlab_configuration/__init__.py
hungtranusa/gateway-workflows
379a5d323818befcfe5d2764f93db5b41b9b9884
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 BlueCat Networks. All rights reserved. # -*- coding: utf-8 -*- type = 'ui' sub_pages = [ { 'name' : 'gitlab_configuration_page', 'title' : u'GitLab Configuration', 'endpoint' : 'gitlab_configuration/gitlab_configuration_endpoint', 'description' : u'g...
26.923077
77
0.608571
e818b8c4203ee8f10f2fdac847d8d14443a65c16
7,488
py
Python
applications/Ma-Net/networks/loss.py
Simon-liusheng/PaddleVideo
6c35b68bc745c659813d6517eecade9c9508a628
[ "Apache-2.0" ]
1
2022-02-19T23:50:49.000Z
2022-02-19T23:50:49.000Z
applications/Ma-Net/networks/loss.py
liutinglong/PaddleVideo
6b8a723360ac652ca7aafa1908e6c67a67cf5ea5
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
applications/Ma-Net/networks/loss.py
Thinksky5124/PaddleVideo
c8e9c5ff53d99bd70bfeb6246a53e668064a9940
[ "Apache-2.0" ]
null
null
null
import paddle import paddle.nn as nn import os class Added_BCEWithLogitsLoss(nn.Layer): def __init__(self, top_k_percent_pixels=None, hard_example_mining_step=100000): super(Added_BCEWithLogitsLoss, self).__init__() self.top_k_percent_pixels = top_k_percent_pixels...
48.623377
85
0.538061
1612938d1c94308fac586fd729bb325c00c116af
44,691
py
Python
compiler/modules/control_logic.py
andresag01/OpenRAM
1d8f2a4ad6dea40bab54a49ff68d12b3934782d8
[ "BSD-3-Clause" ]
null
null
null
compiler/modules/control_logic.py
andresag01/OpenRAM
1d8f2a4ad6dea40bab54a49ff68d12b3934782d8
[ "BSD-3-Clause" ]
null
null
null
compiler/modules/control_logic.py
andresag01/OpenRAM
1d8f2a4ad6dea40bab54a49ff68d12b3934782d8
[ "BSD-3-Clause" ]
null
null
null
# See LICENSE for licensing information. # # Copyright (c) 2016-2019 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # from math import log import design from tech imp...
44.870482
154
0.603097
0679f6c511888d34b6cb377dfdca624a91b6abbc
1,148
py
Python
service/app/tests/test_commands.py
nikitazigman/Django_vehicle_models_service
ac9e8c16565b8989cfcdf76ce10fc227287ac93a
[ "Apache-2.0" ]
null
null
null
service/app/tests/test_commands.py
nikitazigman/Django_vehicle_models_service
ac9e8c16565b8989cfcdf76ce10fc227287ac93a
[ "Apache-2.0" ]
null
null
null
service/app/tests/test_commands.py
nikitazigman/Django_vehicle_models_service
ac9e8c16565b8989cfcdf76ce10fc227287ac93a
[ "Apache-2.0" ]
null
null
null
import json from pathlib import Path from app.models import VehicleModel from app.serializers import VehicleModelSerializer from django.core.management import call_command from django.test import TestCase class AddVehicleModelsCommandTest(TestCase): @classmethod def setUpTestData(cls): vehicle_model_...
30.210526
71
0.66115
225fb2fced112c2b2bfae369923873d32fcd3bbf
1,149
py
Python
jupyterlab/graphs/makeMaintainerFirstDays.py
markuszm/npm-analysis
b7fba0ccf0eb6bfd9ac4a739cdf3c9aee5be5a9f
[ "MIT" ]
2
2019-09-30T07:50:31.000Z
2020-05-08T10:56:56.000Z
jupyterlab/graphs/makeMaintainerFirstDays.py
markuszm/npm-analysis
b7fba0ccf0eb6bfd9ac4a739cdf3c9aee5be5a9f
[ "MIT" ]
2
2021-05-07T22:04:20.000Z
2021-05-07T22:07:14.000Z
jupyterlab/graphs/makeMaintainerFirstDays.py
markuszm/npm-analysis
b7fba0ccf0eb6bfd9ac4a739cdf3c9aee5be5a9f
[ "MIT" ]
2
2019-09-30T08:30:19.000Z
2019-11-18T19:26:48.000Z
#!/usr/bin/env python3.7 import sys import json from datetime import datetime from pprint import pprint from pymongo import MongoClient client = MongoClient('localhost', 27017, authSource='admin', username='npm', password='npm123') db = client.npm maintainerFirstDays = {} for module in db.timelineNew.find(): fo...
31.916667
114
0.657093
6333ddfdebb6e4154fc4fcf89f55e898eea7cc7d
817
py
Python
Python/Samples/PollsDjango/app/urls.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Samples/PollsDjango/app/urls.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Samples/PollsDjango/app/urls.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
""" Definition of urls for polls viewing and voting. """ from django.conf.urls import patterns, url from app.models import Poll from app.views import PollListView, PollDetailView, PollResultsView urlpatterns = patterns('', url(r'^$', PollListView.as_view( queryset=Poll.objects.order...
31.423077
69
0.588739
8d1f24de8760afa4b21bdaf018550c09ad40e0e9
3,061
py
Python
jinahub/encoders/text/SpacyTextEncoder/spacy_text_encoder.py
jina-ai/executors
fbc0e857066317366c29fc77e0ea70e299784be0
[ "Apache-2.0" ]
29
2021-07-26T07:16:38.000Z
2022-03-27T15:10:34.000Z
jinahub/encoders/text/SpacyTextEncoder/spacy_text_encoder.py
jina-ai/executors
fbc0e857066317366c29fc77e0ea70e299784be0
[ "Apache-2.0" ]
176
2021-07-23T08:30:21.000Z
2022-03-14T12:29:06.000Z
jinahub/encoders/text/SpacyTextEncoder/spacy_text_encoder.py
jina-ai/executors
fbc0e857066317366c29fc77e0ea70e299784be0
[ "Apache-2.0" ]
16
2021-07-26T20:55:40.000Z
2022-03-18T15:32:17.000Z
__copyright__ = "Copyright (c) 2020-2021 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import subprocess from typing import Dict, Iterable, Optional import spacy from jina import DocumentArray, Executor, requests _EXCLUDE_COMPONENTS = [ 'tagger', 'parser', 'ner', 'senter', 'le...
35.183908
111
0.592617
632b0a15490e280ad00eb8b85612d2402d5d8423
16,150
py
Python
open_spiel/python/policy.py
wyz2368/open_spiel_egta
6bcb3d4d863e7d89283029dd860412c3ef1731dd
[ "Apache-2.0" ]
null
null
null
open_spiel/python/policy.py
wyz2368/open_spiel_egta
6bcb3d4d863e7d89283029dd860412c3ef1731dd
[ "Apache-2.0" ]
null
null
null
open_spiel/python/policy.py
wyz2368/open_spiel_egta
6bcb3d4d863e7d89283029dd860412c3ef1731dd
[ "Apache-2.0" ]
1
2020-12-25T03:02:31.000Z
2020-12-25T03:02:31.000Z
# 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...
38.544153
80
0.720743
b3872fe93b08221dd4ac6186a1cd256502b6cd5a
207
py
Python
tests/keras_contrib/optimizers/padam_test.py
rgreenblatt/keras-contrib
46fcdb9384b3bc9399c651b2b43640aa54098e64
[ "MIT" ]
7
2017-07-22T09:05:44.000Z
2019-04-30T02:08:04.000Z
tests/keras_contrib/optimizers/padam_test.py
rgreenblatt/keras-contrib
46fcdb9384b3bc9399c651b2b43640aa54098e64
[ "MIT" ]
1
2017-12-26T02:59:59.000Z
2017-12-26T02:59:59.000Z
tests/keras_contrib/optimizers/padam_test.py
rgreenblatt/keras-contrib
46fcdb9384b3bc9399c651b2b43640aa54098e64
[ "MIT" ]
11
2017-07-06T14:11:51.000Z
2021-08-21T23:18:20.000Z
from __future__ import print_function from keras_contrib.tests import optimizers from keras_contrib.optimizers import Padam optimizers._test_optimizer(Padam()) optimizers._test_optimizer(Padam(decay=1e-3))
29.571429
45
0.859903
4098f16334cfc9283c30c3513b839663eac835a0
1,794
py
Python
kolibri/core/notifications/test/test_tasks.py
techZM/kolibri
617e4c382e446b16a968e8add7f1766f8cd7c54a
[ "MIT" ]
null
null
null
kolibri/core/notifications/test/test_tasks.py
techZM/kolibri
617e4c382e446b16a968e8add7f1766f8cd7c54a
[ "MIT" ]
null
null
null
kolibri/core/notifications/test/test_tasks.py
techZM/kolibri
617e4c382e446b16a968e8add7f1766f8cd7c54a
[ "MIT" ]
1
2021-07-26T11:38:29.000Z
2021-07-26T11:38:29.000Z
from django.test import TestCase from mock import MagicMock from ..tasks import AsyncNotificationQueue class TaskQueueTest(TestCase): def test_run_queue_executes_running(self): log_queue = AsyncNotificationQueue() fn = MagicMock() log_queue.running.append(fn) log_queue.run() ...
30.40678
55
0.676143
4140a956a8d8805fb79585572aa03de4a60ad5b7
994
py
Python
appu/tests/publish_test.py
EDyO/appu
8b4c8ec993bb89f878e2ec7013bcc349ba4b76f6
[ "MIT" ]
1
2018-02-10T22:29:50.000Z
2018-02-10T22:29:50.000Z
appu/tests/publish_test.py
EDyO/appu
8b4c8ec993bb89f878e2ec7013bcc349ba4b76f6
[ "MIT" ]
29
2017-09-24T16:31:14.000Z
2022-01-25T22:40:01.000Z
appu/tests/publish_test.py
EDyO/appu
8b4c8ec993bb89f878e2ec7013bcc349ba4b76f6
[ "MIT" ]
4
2018-02-08T09:32:52.000Z
2020-07-05T15:44:31.000Z
import pytest from botocore.exceptions import ClientError from publish import upload_file class MockS3Client(object): def upload_file(self, file_name, bucket, object_name): if bucket == "private-bucket": raise ClientError( {'Error': {'Code': 'AccessDenied', ...
25.487179
76
0.625755
be6c5d007a2ba87f21b7c3ba72cbbd1ea0d9d6d7
4,914
py
Python
mhs/common/mhs_common/messages/soap_envelope.py
uk-gov-mirror/nhsconnect.integration-adaptors
f840d603f6c56320a499404ee6c8311487112fae
[ "Apache-2.0" ]
15
2019-08-06T16:08:12.000Z
2021-05-24T13:14:39.000Z
mhs/common/mhs_common/messages/soap_envelope.py
uk-gov-mirror/nhsconnect.integration-adaptors
f840d603f6c56320a499404ee6c8311487112fae
[ "Apache-2.0" ]
75
2019-04-25T13:59:02.000Z
2021-09-15T06:05:36.000Z
mhs/common/mhs_common/messages/soap_envelope.py
uk-gov-mirror/nhsconnect.integration-adaptors
f840d603f6c56320a499404ee6c8311487112fae
[ "Apache-2.0" ]
7
2019-11-12T15:26:34.000Z
2021-04-11T07:23:56.000Z
"""This module defines the envelope used to wrap synchronous messages to be sent to a remote MHS.""" import copy import json from pathlib import Path from typing import Dict, Tuple, Union import lxml.etree as ET from comms.http_headers import HttpHeaders from utilities import integration_adaptors_logger as log, messa...
43.105263
116
0.706349
85aa1f7c9afa083feb854c0ce31de72b02392320
772
py
Python
segregation/tests/test_local_multi_location_quotient.py
weikang9009/segregation
403cc63772545f688308692d446c289ed2e7f99a
[ "BSD-3-Clause" ]
null
null
null
segregation/tests/test_local_multi_location_quotient.py
weikang9009/segregation
403cc63772545f688308692d446c289ed2e7f99a
[ "BSD-3-Clause" ]
null
null
null
segregation/tests/test_local_multi_location_quotient.py
weikang9009/segregation
403cc63772545f688308692d446c289ed2e7f99a
[ "BSD-3-Clause" ]
null
null
null
import unittest from libpysal.examples import load_example import geopandas as gpd import numpy as np from segregation.local import MultiLocationQuotient class Multi_Location_Quotient_Tester(unittest.TestCase): def test_Multi_Location_Quotient(self): s_map = gpd.read_file(load_example("Sacramento1").get_p...
36.761905
113
0.677461
f1eb472096edf9fe7f6ffc641d64c1d22b7774e7
734
py
Python
tests/test-user.py
Ianwanarua/pitches
f8338c82c20d56a2017a793b1a318ca642f52e40
[ "MIT" ]
null
null
null
tests/test-user.py
Ianwanarua/pitches
f8338c82c20d56a2017a793b1a318ca642f52e40
[ "MIT" ]
null
null
null
tests/test-user.py
Ianwanarua/pitches
f8338c82c20d56a2017a793b1a318ca642f52e40
[ "MIT" ]
null
null
null
import unittest from app.models import User from app import db class UserModelTest(unittest.TestCase): def setUp(self): self.new_user = User(username="Ian", email="ian.wanarua@student.moringaschool.com", password = 'Chicken@7') def test_password_setter(self): self.assertTrue(self.new_user.pas...
29.36
115
0.677112
7b516b9332b78f2f4795211a4349bdca20f5fb15
13,827
py
Python
py2/shell.py
ndparker/setup-common
a7aa7ebe44b8ca227b9f7527e555080c1b1e08f8
[ "Apache-2.0" ]
null
null
null
py2/shell.py
ndparker/setup-common
a7aa7ebe44b8ca227b9f7527e555080c1b1e08f8
[ "Apache-2.0" ]
null
null
null
py2/shell.py
ndparker/setup-common
a7aa7ebe44b8ca227b9f7527e555080c1b1e08f8
[ "Apache-2.0" ]
null
null
null
# -*- coding: ascii -*- # # Copyright 2007 - 2013 # Andr\xe9 Malo or his licensors, as applicable # # 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/LICENS...
28.627329
79
0.533521
70d9ef144b62787c09bd8cb9686c9e792286867a
7,960
py
Python
src/python/pants/backend/python/macros/python_requirements_test.py
Eric-Arellano/pants
aaa9756bc4f2cc97bb97851a4295a0de85f374b1
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/macros/python_requirements_test.py
Eric-Arellano/pants
aaa9756bc4f2cc97bb97851a4295a0de85f374b1
[ "Apache-2.0" ]
12
2022-01-06T23:20:22.000Z
2022-03-17T05:06:37.000Z
src/python/pants/backend/python/macros/python_requirements_test.py
Eric-Arellano/pants
aaa9756bc4f2cc97bb97851a4295a0de85f374b1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from textwrap import dedent from typing import Iterable import pytest from pkg_resources import Requirement from pants.backend.python.macros.python_requirements import PythonRequirements...
37.196262
100
0.575503
fefbc395f0acba3b328b036469e6bb7269514aa9
36,247
py
Python
Cython/Compiler/FusedNode.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
Cython/Compiler/FusedNode.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
Cython/Compiler/FusedNode.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import copy from . import (ExprNodes, PyrexTypes, MemoryView, ParseTreeTransforms, StringEncoding, Errors) from .ExprNodes import CloneNode, ProxyNode, TupleNode from .Nodes import FuncDefNode, CFuncDefNode, StatListNode, DefNode from ..Utils import OrderedSet c...
41.807382
120
0.584435
b505bbe8dadd1c97e95c6aa530661c465ba934af
812
py
Python
app.py
bsatterwhite3/nfl-play-gen-api
00e0a8ed4813acad78cf82ec592ab1bbd54b94c9
[ "MIT" ]
null
null
null
app.py
bsatterwhite3/nfl-play-gen-api
00e0a8ed4813acad78cf82ec592ab1bbd54b94c9
[ "MIT" ]
null
null
null
app.py
bsatterwhite3/nfl-play-gen-api
00e0a8ed4813acad78cf82ec592ab1bbd54b94c9
[ "MIT" ]
null
null
null
import logging import sys from flask import Flask, jsonify, current_app, request from playgen import dataloader, playsampler, filters, handlers logger = logging.getLogger(__name__) handler = logging.StreamHandler(sys.stdout) handler.setFormatter(logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(mess...
26.193548
82
0.747537
393e156634e65f2bac95acfc91e725db4190723c
4,377
py
Python
astropy/io/misc/asdf/tags/transform/polynomial.py
rkiman/astropy
99de28bc0dbfe2ee0bef95b67f5619e03d22cc06
[ "BSD-3-Clause" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
astropy/io/misc/asdf/tags/transform/polynomial.py
rkiman/astropy
99de28bc0dbfe2ee0bef95b67f5619e03d22cc06
[ "BSD-3-Clause" ]
null
null
null
astropy/io/misc/asdf/tags/transform/polynomial.py
rkiman/astropy
99de28bc0dbfe2ee0bef95b67f5619e03d22cc06
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- import numpy as np from numpy.testing import assert_array_equal from asdf import yamlutil from astropy import modeling from .basic import TransformType __all__ = ['ShiftType', 'ScaleType', 'PolynomialType'] class ShiftType(Tr...
35.585366
95
0.619602
ffbf3db1a47b43e672b9062ae9d14226395ea516
1,789
py
Python
get_cases.py
cathy-ludwig/courtcase_tracker
e023996ca6305af6987be4d0999b77081f820035
[ "MIT" ]
null
null
null
get_cases.py
cathy-ludwig/courtcase_tracker
e023996ca6305af6987be4d0999b77081f820035
[ "MIT" ]
1
2020-12-11T16:12:04.000Z
2020-12-11T16:12:04.000Z
get_cases.py
cathy-ludwig/courtcase_tracker
e023996ca6305af6987be4d0999b77081f820035
[ "MIT" ]
1
2020-12-14T01:29:00.000Z
2020-12-14T01:29:00.000Z
import json import psycopg2 from psycopg2 import sql import os DB_HOST = os.getenv('DB_HOST') DB_NAME = os.getenv('DB_NAME') DB_USER = os.getenv('DB_USER') DB_PASSWORD = os.getenv('DB_PASSWORD') class CourtCase(): def __init__(self, case_row): self.court_date, self.hearing_type, self.case_id, self.caption...
32.527273
142
0.616546
e0cdb8746f84bd3653640567262c2debda245f87
80
py
Python
aws_mongo_cdc_kinesis/__main__.py
joshuamarango/aws-mongo-cdc-kinesis
1b546ef5b52e87b0b839a411653ed26a597802b9
[ "MIT" ]
null
null
null
aws_mongo_cdc_kinesis/__main__.py
joshuamarango/aws-mongo-cdc-kinesis
1b546ef5b52e87b0b839a411653ed26a597802b9
[ "MIT" ]
null
null
null
aws_mongo_cdc_kinesis/__main__.py
joshuamarango/aws-mongo-cdc-kinesis
1b546ef5b52e87b0b839a411653ed26a597802b9
[ "MIT" ]
null
null
null
from aws_mongo_cdc_kinesis import app if __name__ == "__main__": app.run()
16
37
0.725
f2596777e846c14ef0ff55970ff180eeb2094784
2,328
py
Python
src/python/pants/base/build_root_test.py
yoav-orca/pants
995448e9add343975844c7a43d5d64618fc4e4d9
[ "Apache-2.0" ]
1,806
2015-01-05T07:31:00.000Z
2022-03-31T11:35:41.000Z
src/python/pants/base/build_root_test.py
yoav-orca/pants
995448e9add343975844c7a43d5d64618fc4e4d9
[ "Apache-2.0" ]
9,565
2015-01-02T19:01:59.000Z
2022-03-31T23:25:16.000Z
src/python/pants/base/build_root_test.py
ryanking/pants
e45b00d2eb467b599966bca262405a5d74d27bdd
[ "Apache-2.0" ]
443
2015-01-06T20:17:57.000Z
2022-03-31T05:28:17.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os import unittest import pytest from pants.base.build_root import BuildRoot from pants.util.contextutil import environment_as, pushd, temporary_dir from pants.util.dirutil import...
34.235294
75
0.6439
3f2ccc432830713f50599e0a33e581e7d7d71fb8
572
py
Python
Server/app/docs/v2/mixed/metadata/links.py
moreal/DMS-Backend
c0a3b28972739c58049a296570bb873f32c03eec
[ "MIT" ]
27
2018-01-14T08:07:18.000Z
2020-01-20T14:21:17.000Z
Server/app/docs/v2/mixed/metadata/links.py
moreal/DMS-Backend
c0a3b28972739c58049a296570bb873f32c03eec
[ "MIT" ]
50
2018-02-12T12:51:33.000Z
2018-08-28T00:48:31.000Z
Server/app/docs/v2/mixed/metadata/links.py
moreal/DMS-Backend
c0a3b28972739c58049a296570bb873f32c03eec
[ "MIT" ]
10
2018-03-31T16:30:32.000Z
2021-03-02T10:30:31.000Z
LINKS_GET = { 'tags': ['[Mixed] 메타데이터'], 'description': 'DMS에 관련된 링크 정보를 조회합니다.', 'responses': { '200': { 'description': '정보 조회 성공', 'examples': { '': { 'facebook': 'https://www.facebook.com/DMSforDSM/', 'github': 'https...
31.777778
98
0.440559
927c1f59cbcc36d0da5f3e31b8a00c09a1e2dbf1
1,273
py
Python
model_apply.py
DostEducation/voicemail_processing
cff49cc0b2898f66e64854099951bbc8c34bc7ce
[ "MIT" ]
null
null
null
model_apply.py
DostEducation/voicemail_processing
cff49cc0b2898f66e64854099951bbc8c34bc7ce
[ "MIT" ]
null
null
null
model_apply.py
DostEducation/voicemail_processing
cff49cc0b2898f66e64854099951bbc8c34bc7ce
[ "MIT" ]
null
null
null
""" This set of functions unpickle the trained validation and gender models and applies the audio features to these to produce a dictionary that describes the output predictions. """ import pickle def model_load(model_filename): """ Unpickle the model files. """ return pickle.load(open(model_filename, 'rb')) ...
42.433333
95
0.715632
41dd416a76a7a211de88d538c7a2635d5b117a6a
62
py
Python
fsk_backend/manage.py
odunet/React_Flask_FullStack_GameApp
35ee4f197d0f68c78944c87ccf3184513bd9a629
[ "MIT" ]
40
2020-08-03T19:47:16.000Z
2022-02-19T10:52:33.000Z
fsk_backend/manage.py
odunet/React_Flask_FullStack_GameApp
35ee4f197d0f68c78944c87ccf3184513bd9a629
[ "MIT" ]
17
2020-02-20T16:07:19.000Z
2022-03-30T23:38:23.000Z
fsk_backend/manage.py
odunet/React_Flask_FullStack_GameApp
35ee4f197d0f68c78944c87ccf3184513bd9a629
[ "MIT" ]
131
2020-04-11T01:46:51.000Z
2022-03-31T19:39:28.000Z
from main import app if __name__ == "__main__": app.run()
15.5
26
0.66129
d0f5facca76277e9b56cd59bd2982115bfbab5e3
428
py
Python
run.py
iteming/ProxyPool
52b0c5bca20482a941f1cc499804db3fc305a66f
[ "MIT" ]
null
null
null
run.py
iteming/ProxyPool
52b0c5bca20482a941f1cc499804db3fc305a66f
[ "MIT" ]
null
null
null
run.py
iteming/ProxyPool
52b0c5bca20482a941f1cc499804db3fc305a66f
[ "MIT" ]
null
null
null
from proxypool.scheduler import Scheduler import argparse parser = argparse.ArgumentParser(description='ProxyPool') parser.add_argument('--processor', type=str, help='processor to run') args = parser.parse_args() if __name__ == '__main__': # if processor set, just run it if args.processor: getattr(Sc...
28.533333
69
0.691589
cc66ef4b9d7005cd9ccec16d522afd58268df6b3
120
py
Python
src/database/models/mixins/__init__.py
DmitryKovtun/text-splitter
a1d97d2d7f74eeb86b185f2356cabb718f010310
[ "MIT" ]
1
2020-06-21T02:23:31.000Z
2020-06-21T02:23:31.000Z
src/database/models/mixins/__init__.py
DmitryKovtun/text-splitter
a1d97d2d7f74eeb86b185f2356cabb718f010310
[ "MIT" ]
null
null
null
src/database/models/mixins/__init__.py
DmitryKovtun/text-splitter
a1d97d2d7f74eeb86b185f2356cabb718f010310
[ "MIT" ]
1
2020-06-21T02:23:32.000Z
2020-06-21T02:23:32.000Z
from .primary_key import MysqlIdMixin from .status import MysqlStatusMixin from .timestamps import MysqlTimestampsMixin
30
44
0.875
43236f403c082858edfcc1c90f796aaa560de965
1,658
py
Python
hobimakanbanyuwangi/utils/scrapper.py
rririanto/hobimakanbanyuwangi
fb20b4ef9172d427fc463cee1e1ea61b71edd5f0
[ "WTFPL" ]
1
2020-04-26T00:25:16.000Z
2020-04-26T00:25:16.000Z
hobimakanbanyuwangi/utils/scrapper.py
rririanto/hobimakanbanyuwangi
fb20b4ef9172d427fc463cee1e1ea61b71edd5f0
[ "WTFPL" ]
8
2021-04-08T20:18:00.000Z
2022-03-12T00:25:14.000Z
hobimakanbanyuwangi/utils/scrapper.py
rririanto/hobimakanbanyuwangi
fb20b4ef9172d427fc463cee1e1ea61b71edd5f0
[ "WTFPL" ]
null
null
null
from subprocess import Popen, PIPE from config.settings.base import APPS_DIR import os, re venv_path = os.environ['VIRTUAL_ENV'] script_path = (str(APPS_DIR / "utils")) class CollectData: def cmd(self): return [ f'{venv_path}/bin/instagram-scraper', 'hobimakan.banyuwangi', ...
26.31746
73
0.506031
f1abe5ed4d030921c3a0fcd77b61939fafb99bcd
3,133
py
Python
predict_landmarks.py
konatasick/face-of-art
e796747d0ef2df2df863adf53e217ff5c86c816b
[ "MIT" ]
null
null
null
predict_landmarks.py
konatasick/face-of-art
e796747d0ef2df2df863adf53e217ff5c86c816b
[ "MIT" ]
null
null
null
predict_landmarks.py
konatasick/face-of-art
e796747d0ef2df2df863adf53e217ff5c86c816b
[ "MIT" ]
null
null
null
from menpo_functions import * from deep_heatmaps_model_fusion_net import DeepHeatmapsModel from scipy.misc import imsave import sys import tensorflow as tf if __name__ == "__main__": data_dir = sys.argv[1] test_data = sys.argv[2] # *************** define parameters and paths *************** # data_dir = '~/AF...
39.658228
123
0.689754
d37e80b76c50c2abe07e1984ec13fff6f53b5401
376
py
Python
package/module.py
TheRenegadeCoder/python-project-template
f4f31052827a73e7bcecfbd278063373e166b7b9
[ "MIT" ]
2
2021-08-09T17:43:57.000Z
2021-11-01T18:51:32.000Z
package/module.py
TheRenegadeCoder/python-project-template
f4f31052827a73e7bcecfbd278063373e166b7b9
[ "MIT" ]
1
2021-08-09T19:31:58.000Z
2021-08-09T19:31:58.000Z
package/module.py
TheRenegadeCoder/python-project-template
f4f31052827a73e7bcecfbd278063373e166b7b9
[ "MIT" ]
1
2021-11-01T18:51:33.000Z
2021-11-01T18:51:33.000Z
import logging logger = logging.getLogger(__name__) def example_module_function(name: str) -> str: """ Generates a string including a name. :param str name: the name of someone :return: a string in the form 'Hello, my name is {name}' """ logger.debug(f"Constructing a string from the following...
26.857143
75
0.680851
89660ac32ebac7abd8e4aa1f76d4d798e865e062
231
py
Python
ch02/test_pymongo_2.py
pjhinton/Agile_Data_Code_2
a1f9ecfdbeffb54785a74424b2beff3dd8648456
[ "MIT" ]
454
2016-03-16T22:17:04.000Z
2022-02-16T05:03:20.000Z
ch02/test_pymongo_2.py
joyoyoyoyoyo/Agile_Data_Code_2
cd559b04585e001ca74c492f81b772478ca580e1
[ "MIT" ]
121
2016-12-19T05:30:28.000Z
2021-10-16T21:02:40.000Z
ch02/test_pymongo_2.py
joyoyoyoyoyo/Agile_Data_Code_2
cd559b04585e001ca74c492f81b772478ca580e1
[ "MIT" ]
324
2016-10-06T03:48:48.000Z
2022-03-31T04:30:42.000Z
from pymongo import MongoClient client = MongoClient() record = {"foo": "bar"} client.agile_data_science.collection_two.insert_one(record) record2 = client.agile_data_science.collection_one.find_one( { "foo": "bar" } )
16.5
60
0.735931
3e06f905a53442aa60ac231ed94ad88dfa644dbd
3,469
py
Python
mysite/settings.py
ssnwangfei/wfsite
8634b0c5cebb5eef30b109d260679620f3b46fce
[ "Apache-2.0" ]
null
null
null
mysite/settings.py
ssnwangfei/wfsite
8634b0c5cebb5eef30b109d260679620f3b46fce
[ "Apache-2.0" ]
null
null
null
mysite/settings.py
ssnwangfei/wfsite
8634b0c5cebb5eef30b109d260679620f3b46fce
[ "Apache-2.0" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.2.12. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib...
26.684615
91
0.694436
f30ad50ffcd73bd61a3f53ab302e80ae4ef05ce8
217
py
Python
app/views/index.py
MDeLuise/weather-comparator
bbc59cad4399b6c8dbe418fdf678c106ae1581b6
[ "MIT" ]
null
null
null
app/views/index.py
MDeLuise/weather-comparator
bbc59cad4399b6c8dbe418fdf678c106ae1581b6
[ "MIT" ]
null
null
null
app/views/index.py
MDeLuise/weather-comparator
bbc59cad4399b6c8dbe418fdf678c106ae1581b6
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template, redirect, request import requests index = Blueprint('index', __name__) @index.route('/', methods=['POST', 'GET']) def home(): return render_template("weather.html")
24.111111
63
0.728111
a35e2af0eb4d6c0582c79db3d82cd7cdd65e5c0b
1,171
py
Python
ciphers/r13.py
CythesOut/Cryptex
6b111d2e828018c835d7ede3c4730d58f246076d
[ "BSD-3-Clause" ]
1
2021-11-23T21:40:57.000Z
2021-11-23T21:40:57.000Z
ciphers/r13.py
CythesOut/Cryptex
6b111d2e828018c835d7ede3c4730d58f246076d
[ "BSD-3-Clause" ]
4
2021-11-23T08:53:34.000Z
2022-02-09T17:43:32.000Z
ciphers/r13.py
CythesOut/Cryptex
6b111d2e828018c835d7ede3c4730d58f246076d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Rot13 package for the the codex project # created by : C0SM0 | Fyzz # imports import os # help menu for cipheringing process help_menu = """ +-------------------------------------------------------+ | [+] ARGUMENTS Rotation13-Cipher | | [+] ARG 1. Ciphering Process ...
32.527778
58
0.351836
79e73baa882a952b405d95d8c3fac3c97921ee2a
26,386
py
Python
src/imitation/algorithms/dagger.py
jadecastro/imitation
e05d7f5a4adfb021699647b80576c74ba6bd9443
[ "MIT" ]
438
2019-04-11T22:02:03.000Z
2022-03-30T05:17:19.000Z
src/imitation/algorithms/dagger.py
jadecastro/imitation
e05d7f5a4adfb021699647b80576c74ba6bd9443
[ "MIT" ]
397
2019-03-22T18:24:10.000Z
2022-03-29T23:08:05.000Z
src/imitation/algorithms/dagger.py
jadecastro/imitation
e05d7f5a4adfb021699647b80576c74ba6bd9443
[ "MIT" ]
106
2019-04-11T22:02:08.000Z
2022-03-28T14:12:20.000Z
"""DAgger (https://arxiv.org/pdf/1011.0686.pdf). Interactively trains policy by collecting some demonstrations, doing BC, collecting more demonstrations, doing BC again, etc. Initially the demonstrations just come from the expert's policy; over time, they shift to be drawn more and more from the imitator's policy. """...
40.407351
88
0.643106
032f806bb33844e2268dd09f29a482c67efe485a
1,055
py
Python
tests/test_postcodes.py
pankajsonar19/uk-postcodes-library
a7325cc4118ebc004c2d036b38cca3fe96a6f6c1
[ "MIT" ]
null
null
null
tests/test_postcodes.py
pankajsonar19/uk-postcodes-library
a7325cc4118ebc004c2d036b38cca3fe96a6f6c1
[ "MIT" ]
null
null
null
tests/test_postcodes.py
pankajsonar19/uk-postcodes-library
a7325cc4118ebc004c2d036b38cca3fe96a6f6c1
[ "MIT" ]
null
null
null
from uk_postcodes.postcodes import format_postcode, deep_validaion, load_postcodes import pytest import sys import os sys.path.insert(1, os.getcwd()) demo_code = [ 'BA1 0GL' ] valid_values = ['BA10GL','B11DD', 'CH11DQ', 'G1 1DW'] invalid_values = ['V25 1PT', 'AI2 9AA', 'BA4 0MO'] load_postcodes() ...
22.934783
83
0.711848
9a9c62b163287b6e49359de4b119414f3c12c5bf
381
py
Python
lab4_ZHANG_ZHENG_YANG/Python/lab4_mass.py
cvemeki/Computational-motor-control
cf02c77bff44ffdff63630c445b35b657a1d2b6c
[ "Apache-2.0" ]
null
null
null
lab4_ZHANG_ZHENG_YANG/Python/lab4_mass.py
cvemeki/Computational-motor-control
cf02c77bff44ffdff63630c445b35b657a1d2b6c
[ "Apache-2.0" ]
null
null
null
lab4_ZHANG_ZHENG_YANG/Python/lab4_mass.py
cvemeki/Computational-motor-control
cf02c77bff44ffdff63630c445b35b657a1d2b6c
[ "Apache-2.0" ]
null
null
null
""" Force-Velocity Setup """ import numpy as np import biolog def mass_equation(pos, vel, force, mass_params): """ Mass equation""" d2x = -force/mass_params.mass + mass_params.g return d2x def mass_system(pos, vel, force, mass_params): """ Muscle-Mass System""" return np.array( [vel, ...
21.166667
62
0.643045
79c2398094d19a51fbf3d981b816b0cbdcde81a1
6,094
py
Python
tests/test_lorentz_math.py
SsnL/geoopt
47e7e6b79c177e3172161afaef8424d61b917a7b
[ "Apache-2.0" ]
null
null
null
tests/test_lorentz_math.py
SsnL/geoopt
47e7e6b79c177e3172161afaef8424d61b917a7b
[ "Apache-2.0" ]
null
null
null
tests/test_lorentz_math.py
SsnL/geoopt
47e7e6b79c177e3172161afaef8424d61b917a7b
[ "Apache-2.0" ]
null
null
null
import torch import random import numpy as np import pytest from geoopt.manifolds import lorentz @pytest.fixture("module", autouse=True, params=range(30, 40)) def seed(request): seed = request.param torch.manual_seed(seed) random.seed(seed) np.random.seed(seed) return seed @pytest.fixture("modul...
27.084444
82
0.628651
898aaa72bde19e1c7e2dec09f0d9f9d1467eb6d1
965
py
Python
src/blogs/migrations/0012_auto_20180114_1938.py
tonybolanyo/wordplease
5b065b84e91ebb92d0d2af3aab4cf754a3a3b51c
[ "MIT" ]
null
null
null
src/blogs/migrations/0012_auto_20180114_1938.py
tonybolanyo/wordplease
5b065b84e91ebb92d0d2af3aab4cf754a3a3b51c
[ "MIT" ]
3
2020-06-05T17:06:13.000Z
2021-06-10T18:06:33.000Z
src/blogs/migrations/0012_auto_20180114_1938.py
tonybolanyo/wordplease
5b065b84e91ebb92d0d2af3aab4cf754a3a3b51c
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-01-14 18:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blogs', '0011_auto_20180114_1937'), ] operations = [ migrations.AlterField( model_name='category', name='created', ...
28.382353
82
0.586528
3dec81b0122e003ccf3bf4b7e88dda455554f0da
2,306
py
Python
test/fib_test.py
alanbbr/luigi
49276c9044d68623dc182cb54c777094b2bc9756
[ "Apache-2.0" ]
2
2016-08-22T22:52:47.000Z
2018-07-14T20:00:52.000Z
test/fib_test.py
alanbbr/luigi
49276c9044d68623dc182cb54c777094b2bc9756
[ "Apache-2.0" ]
5
2015-01-22T06:54:59.000Z
2021-01-13T23:09:09.000Z
test/fib_test.py
alanbbr/luigi
49276c9044d68623dc182cb54c777094b2bc9756
[ "Apache-2.0" ]
4
2017-01-18T02:23:25.000Z
2020-11-07T10:29:37.000Z
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
28.121951
92
0.630095
daf6ef34a82c86f934e64411c71cf21926f4700e
24,213
py
Python
blender/arm/make.py
ValtoGameEngines/Armory
ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32
[ "Zlib" ]
1
2020-09-08T08:38:04.000Z
2020-09-08T08:38:04.000Z
blender/arm/make.py
ValtoGameEngines/Armory
ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32
[ "Zlib" ]
null
null
null
blender/arm/make.py
ValtoGameEngines/Armory
ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32
[ "Zlib" ]
1
2020-06-29T07:54:21.000Z
2020-06-29T07:54:21.000Z
import os import glob import time import shutil import bpy import json import stat from bpy.props import * import subprocess import threading import webbrowser import arm.utils import arm.write_data as write_data import arm.make_logic as make_logic import arm.make_renderpath as make_renderpath import arm.make_world as ...
38.070755
165
0.627927
505e4d755f5e5d6aca47db3934e631dc17f2e73f
1,823
py
Python
thesis_code/my_yolov3.py
hhodac/keras-yolo3
bd9f1595d271c4c5d340796b352b0254c9e63322
[ "MIT" ]
null
null
null
thesis_code/my_yolov3.py
hhodac/keras-yolo3
bd9f1595d271c4c5d340796b352b0254c9e63322
[ "MIT" ]
null
null
null
thesis_code/my_yolov3.py
hhodac/keras-yolo3
bd9f1595d271c4c5d340796b352b0254c9e63322
[ "MIT" ]
null
null
null
import argparse import os from keras.models import load_model import torch import torchvision import torchvision.transforms.functional as TF import PIL os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' argparser = argparse.ArgumentParser( description='my pre-converted yolov3 wwith weights' ) argparser.add_argument( ...
36.46
107
0.597367
c0ae9f61ee3d2b577aa487b84ac00be6d2b4f859
7,699
py
Python
algorithms_datastructures/heaps/min_heap.py
vaishnavprachi98/technical-interviews
7e61aaf08774d67090f022bd288394ffce7c437d
[ "MIT" ]
65
2017-11-17T09:08:36.000Z
2021-12-25T03:20:06.000Z
algorithms_datastructures/heaps/min_heap.py
vaishnavprachi98/technical-interviews
7e61aaf08774d67090f022bd288394ffce7c437d
[ "MIT" ]
null
null
null
algorithms_datastructures/heaps/min_heap.py
vaishnavprachi98/technical-interviews
7e61aaf08774d67090f022bd288394ffce7c437d
[ "MIT" ]
14
2018-03-08T03:06:26.000Z
2021-09-14T13:50:53.000Z
""" @author: David Lei @since: 17/10/2017 """ class MinHeap: """A min heap/priority queue class. Uses the heap implementation based on an array. Index 0 is blank, the root is at index 1. The children of the root are at indexes 1 * 2 + 1 and 1 * 2. Their respective children follow the same formula. The...
43.744318
247
0.602026
e55995848324804dcdcc0fed5aba64727b5b2a75
12,157
py
Python
modules/export.py
mindsphere/dataModelHandler
6d5f415976794802ca8ccea66b26b2a7bcbec751
[ "MIT" ]
null
null
null
modules/export.py
mindsphere/dataModelHandler
6d5f415976794802ca8ccea66b26b2a7bcbec751
[ "MIT" ]
2
2021-05-18T02:39:30.000Z
2021-05-24T02:26:16.000Z
modules/export.py
mindsphere/dataModelHandler
6d5f415976794802ca8ccea66b26b2a7bcbec751
[ "MIT" ]
1
2021-10-31T15:21:35.000Z
2021-10-31T15:21:35.000Z
import uuid import requests import json import datetime, traceback import os import sys import configparser import traceback import csv from pprint import pprint import collections from pathlib import Path import helpers #Custom Modules import modules.readConfig as config from modules.helpers impor...
48.242063
222
0.681747
a83bb2d2d240e31deaafb74c7d95b28022c1c65d
20,796
py
Python
core/python_utils.py
vpeopleonatank/oppia
198bec34770f61e160a12bc536968b2b2bb27cdc
[ "Apache-2.0" ]
null
null
null
core/python_utils.py
vpeopleonatank/oppia
198bec34770f61e160a12bc536968b2b2bb27cdc
[ "Apache-2.0" ]
null
null
null
core/python_utils.py
vpeopleonatank/oppia
198bec34770f61e160a12bc536968b2b2bb27cdc
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2019 The Oppia 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 requi...
33.650485
153
0.686238
df8d6e17bb94081d053260dbeef0a6a15934c187
5,672
py
Python
tests/test_client_edge_cases.py
gmr/aiorabbit
bd4005d3b564d38fc986c9cee10329395134c8ab
[ "BSD-3-Clause" ]
17
2019-12-17T19:06:04.000Z
2021-09-11T12:31:34.000Z
tests/test_client_edge_cases.py
gmr/aiorabbit
bd4005d3b564d38fc986c9cee10329395134c8ab
[ "BSD-3-Clause" ]
11
2020-03-31T20:48:47.000Z
2022-03-24T22:31:42.000Z
tests/test_client_edge_cases.py
gmr/aiorabbit
bd4005d3b564d38fc986c9cee10329395134c8ab
[ "BSD-3-Clause" ]
6
2020-03-30T13:33:38.000Z
2021-07-23T10:20:47.000Z
import asyncio import os from pamqp import base, commands from aiorabbit import client, exceptions, state from . import testing class ClientCloseTestCase(testing.ClientTestCase): @testing.async_test async def test_close(self): await self.connect() await self.client.close() self.asse...
32.045198
79
0.687236
1aaf534c6a130018000606542fe6e657eaa8f9f6
6,542
py
Python
uge/api/impl/dict_list_based_object_manager.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
6
2017-01-18T00:11:19.000Z
2022-02-10T08:18:00.000Z
uge/api/impl/dict_list_based_object_manager.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
3
2017-05-11T13:54:42.000Z
2020-08-12T06:15:43.000Z
uge/api/impl/dict_list_based_object_manager.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
4
2017-05-11T13:27:33.000Z
2019-10-29T02:02:24.000Z
#!/usr/bin/env python # # ___INFO__MARK_BEGIN__ ####################################################################################### # Copyright 2016-2021 Univa Corporation (acquired and owned by Altair Engineering Inc.) # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file e...
43.90604
119
0.656068
6f669e8b224413ac5512c4fb74a5ded3fe3ceb2c
668
py
Python
resdk/tests/unit/test_process.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/tests/unit/test_process.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/tests/unit/test_process.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
""" Unit tests for resdk/resources/process.py file. """ # pylint: disable=missing-docstring, protected-access import unittest from mock import patch from resdk.resources.process import Process class TestBaseCollection(unittest.TestCase): @patch('resdk.resources.process._print_input_line', spec=True) @patc...
26.72
72
0.763473
38ed0513005757f7832167609ead2b3e9b22410e
134
py
Python
Easy/Introduction/python-print-English.py
fotisk07/Hacker-Rank-Python
0f94302afe4104e48baacbc995d157da7fbc076a
[ "MIT" ]
3
2020-09-23T15:13:18.000Z
2021-12-21T07:36:22.000Z
Easy/Introduction/python-print-English.py
fotisk07/Hacker-Rank-Python
0f94302afe4104e48baacbc995d157da7fbc076a
[ "MIT" ]
null
null
null
Easy/Introduction/python-print-English.py
fotisk07/Hacker-Rank-Python
0f94302afe4104e48baacbc995d157da7fbc076a
[ "MIT" ]
3
2018-12-04T19:33:42.000Z
2021-04-05T15:57:29.000Z
def count(n): for i in range(1,n+1): print(i,end='') if __name__ == '__main__': n = int(input()) count(n)
16.75
27
0.485075
7efeb646d13562a6bca106cb56079eabf65cf53e
430
py
Python
tests/test_skippa.py
data-science-lab-amsterdam/skippa
1349317c441f1e46e22f4c02a8aceae767aea5fe
[ "BSD-3-Clause" ]
33
2021-12-15T22:56:12.000Z
2022-02-26T12:33:56.000Z
tests/test_skippa.py
data-science-lab-amsterdam/skippa
1349317c441f1e46e22f4c02a8aceae767aea5fe
[ "BSD-3-Clause" ]
null
null
null
tests/test_skippa.py
data-science-lab-amsterdam/skippa
1349317c441f1e46e22f4c02a8aceae767aea5fe
[ "BSD-3-Clause" ]
1
2022-01-20T15:41:35.000Z
2022-01-20T15:41:35.000Z
#!/usr/bin/env python """Tests for `skippa` package.""" import pytest import pandas as pd from skippa import Skippa, columns def test_pipeline(test_data): """Test if the pipeline works, i.e. returns a dataframe""" X, _ = test_data pipe = ( Skippa() .select(columns()) .build() ...
18.695652
62
0.625581
72646531a9e10d7ab4349c907de30da559c1f0a4
38,676
py
Python
sonic_installer/main.py
chaoskao/sonic-utilities
47a9a0f56db95265c15c74c4c8dc6a3998bfd2d3
[ "Apache-2.0" ]
91
2016-03-23T14:24:41.000Z
2022-03-18T20:25:37.000Z
sonic_installer/main.py
chaoskao/sonic-utilities
47a9a0f56db95265c15c74c4c8dc6a3998bfd2d3
[ "Apache-2.0" ]
1,495
2017-02-15T10:49:10.000Z
2022-03-31T18:49:56.000Z
sonic_installer/main.py
chaoskao/sonic-utilities
47a9a0f56db95265c15c74c4c8dc6a3998bfd2d3
[ "Apache-2.0" ]
466
2016-04-25T09:31:23.000Z
2022-03-31T06:54:17.000Z
import configparser import os import re import subprocess import sys import time import utilities_common.cli as clicommon from urllib.request import urlopen, urlretrieve import click from sonic_py_common import logger from swsscommon.swsscommon import SonicV2Connector from .bootloader import get_bootloader from .comm...
42.454446
150
0.66964
d7ab8f1b6bd5157a162fe0a184b7e3da6d314241
4,795
py
Python
examples/run_somaworkflow_no_gui.py
neurospin/pylearn-epac
45e63f254e62e564bad929103d1fff666ab88fef
[ "BSD-3-Clause" ]
6
2015-02-27T13:21:48.000Z
2020-06-06T17:51:24.000Z
examples/run_somaworkflow_no_gui.py
neurospin/pylearn-epac
45e63f254e62e564bad929103d1fff666ab88fef
[ "BSD-3-Clause" ]
null
null
null
examples/run_somaworkflow_no_gui.py
neurospin/pylearn-epac
45e63f254e62e564bad929103d1fff666ab88fef
[ "BSD-3-Clause" ]
2
2016-12-16T10:40:17.000Z
2018-08-11T15:43:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Wed Apr 24 12:13:11 2013 @author: edouard.duchesnay@cea.fr @author: benoit.da_mota@inria.fr @author: jinpeng.li@cea.fr Introduction ------------ The library Epac can create an Epac tree for machine learning algorithms. This example shows how to compute Ep...
35.783582
76
0.553702
339d9da36c545dfb7d4dd765af70b69a916e6fad
847
py
Python
Exemplos/ex8.4aula.py
ArthurBrito1/MY-SCRIPTS-PYTHON
86967fe293715a705ac50e908d3369fa3257b5a2
[ "MIT" ]
1
2019-11-21T02:08:58.000Z
2019-11-21T02:08:58.000Z
Exemplos/ex8.4aula.py
ArthurBrito1/MY-SCRIPTS-PYTHON
86967fe293715a705ac50e908d3369fa3257b5a2
[ "MIT" ]
null
null
null
Exemplos/ex8.4aula.py
ArthurBrito1/MY-SCRIPTS-PYTHON
86967fe293715a705ac50e908d3369fa3257b5a2
[ "MIT" ]
null
null
null
somaidade = 0 mediadasidades = 0 homemmaisvelho = 0 nomedohomemaisvelho = '' mulher20 = 0 for n in range(1,4+1): print('-----PESSOA{}-----'.format(n)) nome = str(input('Nome:')) idade = int(input('Idade:')) sexo = str(input('[M/F]:')) somaidade = somaidade + idade if n==1 and sexo in...
35.291667
99
0.625738
f00cdcab605182e0c767cc5f3584b5a7a7b91aee
495
py
Python
.history/gram/views_20201122014419.py
Nyash-Mauro/Instagram-clone
39f3b660b3bdd59996fa88816712c906d0e3fba5
[ "MIT" ]
null
null
null
.history/gram/views_20201122014419.py
Nyash-Mauro/Instagram-clone
39f3b660b3bdd59996fa88816712c906d0e3fba5
[ "MIT" ]
null
null
null
.history/gram/views_20201122014419.py
Nyash-Mauro/Instagram-clone
39f3b660b3bdd59996fa88816712c906d0e3fba5
[ "MIT" ]
null
null
null
from django import forms from django.http import HttpResponse from django.shortcuts import render,redirect from cloudinary.forms import cl_init_js_callbacks from .models import from .forms import PhotoForm def upload(request): context = dict( backend_form = PhotoForm()) if request.method == 'POST': for...
27.5
55
0.733333
aaa65eed26acd791f3fd62865a4438a2faaa7f14
3,240
py
Python
app/core/models.py
CultureCitizen/recipe-app-api
7ad026217ee35b9be063a894135fe74e51f37c46
[ "MIT" ]
null
null
null
app/core/models.py
CultureCitizen/recipe-app-api
7ad026217ee35b9be063a894135fe74e51f37c46
[ "MIT" ]
null
null
null
app/core/models.py
CultureCitizen/recipe-app-api
7ad026217ee35b9be063a894135fe74e51f37c46
[ "MIT" ]
null
null
null
import uuid import os from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin from django.core.validators import validate_email from django.core.exceptions import ValidationError from django.conf import settings def recipe_image_file_path(instance,...
32.4
104
0.662654
11b3561d81ee235b79669cbcb2e83f27728aa938
80,077
py
Python
tests/block_tools.py
grayfallstown/btcgreen-blockchain
9a1b8ed604ee7b3b01dff08076ec03f1e22924d5
[ "Apache-2.0" ]
null
null
null
tests/block_tools.py
grayfallstown/btcgreen-blockchain
9a1b8ed604ee7b3b01dff08076ec03f1e22924d5
[ "Apache-2.0" ]
null
null
null
tests/block_tools.py
grayfallstown/btcgreen-blockchain
9a1b8ed604ee7b3b01dff08076ec03f1e22924d5
[ "Apache-2.0" ]
null
null
null
import copy import logging import os import random import shutil import sys import tempfile import time from argparse import Namespace from dataclasses import replace from pathlib import Path from typing import Callable, Dict, List, Optional, Tuple, Any from blspy import AugSchemeMPL, G1Element, G2Element, PrivateKey ...
43.638692
121
0.605105
e23a5af5b03d0965c323884ff05c161af2fd1561
5,070
py
Python
PassMePass/PassMePass.py
machinexa2/My-Scripts
50735a155a67bb2f9421008052bbc7b3bd7eb539
[ "MIT" ]
1
2020-11-02T05:10:13.000Z
2020-11-02T05:10:13.000Z
PassMePass/PassMePass.py
machinexa2/My-Scripts
50735a155a67bb2f9421008052bbc7b3bd7eb539
[ "MIT" ]
1
2020-06-16T11:44:36.000Z
2020-06-16T11:44:36.000Z
PassMePass/PassMePass.py
machinexa2/My-Scripts
50735a155a67bb2f9421008052bbc7b3bd7eb539
[ "MIT" ]
1
2022-02-09T13:59:30.000Z
2022-02-09T13:59:30.000Z
#!/usr/bin/python3 from termcolor import colored from argparse import ArgumentParser from lib.Globals import sql_dict, Color from lib.PathFunctions import urler, ender from lib.Functions import starter, connector, print_sql_dict parser = ArgumentParser(description=colored("Store and update passwords!",color='yellow')...
33.8
138
0.608087
110821930d0322a4c44cfca277d60f8694a0390b
1,328
py
Python
usaspending_api/download/filestreaming/s3_handler.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
1
2020-08-14T04:14:32.000Z
2020-08-14T04:14:32.000Z
usaspending_api/download/filestreaming/s3_handler.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
null
null
null
usaspending_api/download/filestreaming/s3_handler.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
null
null
null
import logging from django.conf import settings logger = logging.getLogger(__name__) class S3Handler: """ This class acts as a wrapper for S3 URL Signing """ def __init__(self, bucket_name, redirect_dir, region=None, environment=None): """ Creates the object for signing URLS ...
30.883721
108
0.635542
990a7e4a7e920d72b44b9ea9d9359d92e453271b
15,314
py
Python
tests/unit/python/fledge/services/core/api/test_backup_restore.py
DDC-NDRS/fledge-iot_fledge
27a5e66a55daaab1aca14ce6e66f9f1e6efaef51
[ "Apache-2.0" ]
null
null
null
tests/unit/python/fledge/services/core/api/test_backup_restore.py
DDC-NDRS/fledge-iot_fledge
27a5e66a55daaab1aca14ce6e66f9f1e6efaef51
[ "Apache-2.0" ]
null
null
null
tests/unit/python/fledge/services/core/api/test_backup_restore.py
DDC-NDRS/fledge-iot_fledge
27a5e66a55daaab1aca14ce6e66f9f1e6efaef51
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # FLEDGE_BEGIN # See: http://fledge-iot.readthedocs.io/ # FLEDGE_END import os import asyncio import json import sys from unittest.mock import MagicMock, patch from collections import Counter from aiohttp import web import pytest from fledge.services.core import routes from fledge.services.co...
48.770701
123
0.624592
2e04be4c31c4273fd8a956bbb4b7b56890f8872b
233
py
Python
src/postprocess/base_processor.py
jwpttcg66/ExcelToTransfer
3afc0cf088f4c991bbf4dc2d6d1f395a71cbc3c7
[ "Apache-2.0" ]
47
2017-06-23T07:47:50.000Z
2022-03-07T22:36:19.000Z
xl2code/postprocess/base_processor.py
twjitm/ExcelToCode
d160c75b9b7a305f4b3367d85ee0550572869d3e
[ "MIT" ]
1
2019-03-12T06:12:50.000Z
2019-04-03T00:50:01.000Z
xl2code/postprocess/base_processor.py
twjitm/ExcelToCode
d160c75b9b7a305f4b3367d85ee0550572869d3e
[ "MIT" ]
23
2017-05-12T07:46:07.000Z
2022-01-22T03:19:50.000Z
# -*- coding: utf-8 -*- class BaseProcessor(object): def __init__(self, exporter, generator_info): super(BaseProcessor, self).__init__() self.exporter = exporter self.generator_info = generator_info def run(self): pass
17.923077
46
0.716738
bf1b30ed183143c6c6140a55fddc3ee3b48b66bb
19,321
py
Python
tests/engine/cloud/test_cloud_task_runner.py
karmijo/prefect
6e3f3e094e770f0b490a626a0fad7195ee3f79e2
[ "Apache-2.0" ]
null
null
null
tests/engine/cloud/test_cloud_task_runner.py
karmijo/prefect
6e3f3e094e770f0b490a626a0fad7195ee3f79e2
[ "Apache-2.0" ]
null
null
null
tests/engine/cloud/test_cloud_task_runner.py
karmijo/prefect
6e3f3e094e770f0b490a626a0fad7195ee3f79e2
[ "Apache-2.0" ]
null
null
null
import datetime import os import tempfile import time import uuid from unittest.mock import MagicMock import cloudpickle import pytest import prefect from prefect.client import Client from prefect.core import Edge, Task from prefect.engine.cloud import CloudResultHandler, CloudTaskRunner from prefect.engine.result im...
35.647601
91
0.666736
8ee5c52d24c1ea14e62fcc72769993ae91602f4a
1,074
py
Python
problems/CR/auto/problem183_CR.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
5
2020-10-15T14:40:03.000Z
2021-08-20T17:45:41.000Z
problems/CR/auto/problem183_CR.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
null
null
null
problems/CR/auto/problem183_CR.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
2
2020-10-15T07:06:14.000Z
2020-10-15T17:33:01.000Z
__author__ = 'patras' from domain_chargeableRobot import * from timer import DURATION from state import state DURATION.TIME = { 'put': 2, 'take': 2, 'perceive': 3, 'charge': 5, 'move': 10, 'moveToEmergency': 5, 'moveCharger': 15, 'addressEmergency': 10, 'wait': 5, } DURATION.COUNTE...
20.653846
56
0.51676
437fdd2be8d85ac46aa12d328bfb08fabc005a86
62,458
py
Python
Lib/test/test_optparse.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
11,058
2018-05-29T07:40:06.000Z
2022-03-31T11:38:42.000Z
Lib/test/test_optparse.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
2,105
2018-06-01T10:07:16.000Z
2022-03-31T14:56:42.000Z
Lib/test/test_optparse.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
914
2018-07-27T09:36:14.000Z
2022-03-31T19:56:34.000Z
# # Test suite for Optik. Supplied by Johannes Gijsbers # (taradino@softhome.net) -- translated from the original Optik # test suite to this PyUnit-based version. # # $Id$ # import sys import os import re import copy import unittest from io import StringIO from test import support import optparse from optparse imp...
37.557426
85
0.542509
e8094d64da0cf94d31578b995a0baf1422a70ac5
128
py
Python
users/urls.py
avsedeleva/save_homework
b8e6314938d43b0618cfb3f68fc5adea7a598e52
[ "BSD-3-Clause" ]
1
2021-03-05T23:27:11.000Z
2021-03-05T23:27:11.000Z
users/urls.py
avsedeleva/save_homework
b8e6314938d43b0618cfb3f68fc5adea7a598e52
[ "BSD-3-Clause" ]
9
2020-07-27T19:06:02.000Z
2021-09-22T19:37:00.000Z
users/urls.py
avsedeleva/save_homework
b8e6314938d43b0618cfb3f68fc5adea7a598e52
[ "BSD-3-Clause" ]
1
2021-06-06T11:15:58.000Z
2021-06-06T11:15:58.000Z
from django.urls import path from . import views urlpatterns = [ path('signup/', views.SignUp.as_view(), name='signup') ]
16
58
0.6875
807abcebfe711792dd29b78874e16d7123425816
6,412
py
Python
FlaskTaskr/tests/test_users.py
nipunsadvilkar/web-dev-deliberate-practice
7074f646cee3b3729ab80d4a51072e4df23aedf7
[ "MIT" ]
null
null
null
FlaskTaskr/tests/test_users.py
nipunsadvilkar/web-dev-deliberate-practice
7074f646cee3b3729ab80d4a51072e4df23aedf7
[ "MIT" ]
null
null
null
FlaskTaskr/tests/test_users.py
nipunsadvilkar/web-dev-deliberate-practice
7074f646cee3b3729ab80d4a51072e4df23aedf7
[ "MIT" ]
null
null
null
import os import unittest from flasktaskr import app, db, bcrypt from flasktaskr._config import basedir from flasktaskr.models import Task, User TEST_DB = 'test.db' class TestsUser(unittest.TestCase): ############################ #### setup and teardown #### ############################ def setUp(...
31.742574
97
0.553961
e4f2c7fc7e20735847ff0359f5684393bcb84f80
5,185
py
Python
setup.py
timgates42/nikola
910d7fc865cf9f2e1dad8135a242c9ab3a6ff48b
[ "MIT" ]
null
null
null
setup.py
timgates42/nikola
910d7fc865cf9f2e1dad8135a242c9ab3a6ff48b
[ "MIT" ]
null
null
null
setup.py
timgates42/nikola
910d7fc865cf9f2e1dad8135a242c9ab3a6ff48b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import shutil from setuptools import setup, find_packages from setuptools.command.install import install with open('requirements.txt', 'r') as fh: dependencies = [l.strip().split("#")[0] for l in fh] extras = {} with open('requirements-extras.txt', 'r') as fh: ext...
34.798658
79
0.58785
3c58b112e0c2cc5487dec083520996ad0540b7b5
9,223
py
Python
ggshield/scan/scannable.py
segudev/ggshield
d880ca58d6405f81dd57e1151f337010a019bcda
[ "MIT" ]
null
null
null
ggshield/scan/scannable.py
segudev/ggshield
d880ca58d6405f81dd57e1151f337010a019bcda
[ "MIT" ]
null
null
null
ggshield/scan/scannable.py
segudev/ggshield
d880ca58d6405f81dd57e1151f337010a019bcda
[ "MIT" ]
null
null
null
import concurrent.futures import re from typing import Any, Callable, Dict, Iterable, List, NamedTuple, Optional, Set import click from pygitguardian import GGClient from pygitguardian.config import MULTI_DOCUMENT_LIMIT from pygitguardian.models import ScanResult from ggshield.config import CPU_COUNT, MAX_FILE_SIZE, ...
31.803448
85
0.578011
42ce6ccc3c163e0cf1bd09b1bd7bebafedcd244d
3,397
py
Python
test/test_quadrature.py
draenog/basix
172720a7ecf2caaf4619a4718fa3f3e1cbe0c1e4
[ "MIT" ]
null
null
null
test/test_quadrature.py
draenog/basix
172720a7ecf2caaf4619a4718fa3f3e1cbe0c1e4
[ "MIT" ]
null
null
null
test/test_quadrature.py
draenog/basix
172720a7ecf2caaf4619a4718fa3f3e1cbe0c1e4
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Chris Richardson # FEniCS Project # SPDX-License-Identifier: MIT import basix import pytest import numpy as np import sympy @pytest.mark.parametrize("celltype", [(basix.CellType.quadrilateral, 1.0), (basix.CellType.hexahedron, 1.0), ...
32.663462
107
0.556373
93bf7f960504812eb23b982685fdf52ae4d59037
5,398
py
Python
RecSys And Deep Learning/DNN/pnn/code/main.py
linohan/Recommender-Systems-Samples
f83dd03e4c3b0b9e0671be9ddfc44615f2080c56
[ "MIT" ]
77
2019-08-16T07:39:45.000Z
2022-03-01T07:00:10.000Z
RecSys And Deep Learning/DNN/pnn/code/main.py
zyljx1314/Recommender-Systems-Samples
f83dd03e4c3b0b9e0671be9ddfc44615f2080c56
[ "MIT" ]
null
null
null
RecSys And Deep Learning/DNN/pnn/code/main.py
zyljx1314/Recommender-Systems-Samples
f83dd03e4c3b0b9e0671be9ddfc44615f2080c56
[ "MIT" ]
65
2019-08-20T11:16:12.000Z
2022-01-14T01:14:10.000Z
from __future__ import print_function from __future__ import absolute_import from __future__ import division import sys if sys.version[0] == '2': import cPickle as pkl else: import pickle as pkl import numpy as np from sklearn.metrics import roc_auc_score import os p = os.path.dirname(os.path.dirname(os.path...
30.325843
118
0.589107
606300ef9c8b6e6fa5a29c14f7437443c7e71ce2
378
py
Python
yxtx/myApp/migrations/0021_auto_20200327_2254.py
wjh112233/yxtx
f118c2b9983ca48b099f2c328487e23f5430303f
[ "Apache-2.0" ]
null
null
null
yxtx/myApp/migrations/0021_auto_20200327_2254.py
wjh112233/yxtx
f118c2b9983ca48b099f2c328487e23f5430303f
[ "Apache-2.0" ]
null
null
null
yxtx/myApp/migrations/0021_auto_20200327_2254.py
wjh112233/yxtx
f118c2b9983ca48b099f2c328487e23f5430303f
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.2 on 2020-03-27 14:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myApp', '0020_delete_chat'), ] operations = [ migrations.AlterField( model_name='cart', name='productid', ...
19.894737
50
0.589947
eb853d3ff993ed661ff5bf5c5f14f42e9dfbd90e
6,775
py
Python
fuse_examples/tutorials/multimodality_image_clinical/dataset.py
alexgo1/fuse-med-ml
928375828ff321d2bf7b2084389e34e1db0682e9
[ "Apache-2.0" ]
null
null
null
fuse_examples/tutorials/multimodality_image_clinical/dataset.py
alexgo1/fuse-med-ml
928375828ff321d2bf7b2084389e34e1db0682e9
[ "Apache-2.0" ]
null
null
null
fuse_examples/tutorials/multimodality_image_clinical/dataset.py
alexgo1/fuse-med-ml
928375828ff321d2bf7b2084389e34e1db0682e9
[ "Apache-2.0" ]
null
null
null
import os import sys from typing import Callable, Optional from fuse.data.visualizer.visualizer_default import FuseVisualizerDefault from fuse.data.augmentor.augmentor_default import FuseAugmentorDefault from fuse.data.augmentor.augmentor_toolbox import aug_op_affine, aug_op_color, aug_op_gaussian from fuse.data.data...
44.281046
166
0.593506
07964adef7d73331450ead5448b4fc2546e418dc
4,310
py
Python
zasim/examples/dualrule/main.py
timo/zasim
54d8eb329af73700bf0df2be6e753e309e9d8191
[ "BSD-3-Clause" ]
2
2017-05-15T12:24:57.000Z
2018-03-09T10:25:45.000Z
zasim/examples/dualrule/main.py
timo/zasim
54d8eb329af73700bf0df2be6e753e309e9d8191
[ "BSD-3-Clause" ]
null
null
null
zasim/examples/dualrule/main.py
timo/zasim
54d8eb329af73700bf0df2be6e753e309e9d8191
[ "BSD-3-Clause" ]
null
null
null
from zasim.external.qt import ( QDialog, QSlider, QPushButton, QSpinBox, QVBoxLayout, QHBoxLayout, QTimer, Qt, app) from zasim.gui.displaywidgets import DisplayWidget from zasim.cagen.dualrule import DualRuleCellularAutomaton from zasim.cagen.simulators import automatic_stepfunc from zasim.simulator im...
36.525424
85
0.690719
0b5476e24d1a67bdc2da132bc29850e28371174e
706
py
Python
django_pgviews/db/sql/query.py
MELScience/django-pgviews
d46346170d4fa5e14f1fb0cc1ed5cc92c83a8272
[ "Unlicense" ]
1
2018-11-03T01:29:13.000Z
2018-11-03T01:29:13.000Z
django_pgviews/db/sql/query.py
MELScience/django-pgviews
d46346170d4fa5e14f1fb0cc1ed5cc92c83a8272
[ "Unlicense" ]
null
null
null
django_pgviews/db/sql/query.py
MELScience/django-pgviews
d46346170d4fa5e14f1fb0cc1ed5cc92c83a8272
[ "Unlicense" ]
2
2019-01-02T05:01:45.000Z
2019-01-02T05:05:23.000Z
from django.db import connections from django.db.models.sql import query from django_pgviews.db.sql import compiler class NonQuotingQuery(query.Query): """Query class that uses the NonQuotingCompiler. """ def get_compiler(self, using=None, connection=None): """Get the NonQuotingCompiler object. ...
30.695652
67
0.694051
3bbad0ead1b03e26ff18ab87db3287242695e23e
18,613
py
Python
pubsub/cloud-client/subscriber.py
nilold/python-docs-samples
a6405189fc47dd41b90c185061293105eebd8a94
[ "Apache-2.0" ]
3
2021-01-24T23:42:57.000Z
2021-02-17T12:02:12.000Z
pubsub/cloud-client/subscriber.py
nilold/python-docs-samples
a6405189fc47dd41b90c185061293105eebd8a94
[ "Apache-2.0" ]
null
null
null
pubsub/cloud-client/subscriber.py
nilold/python-docs-samples
a6405189fc47dd41b90c185061293105eebd8a94
[ "Apache-2.0" ]
1
2021-09-24T04:11:14.000Z
2021-09-24T04:11:14.000Z
#!/usr/bin/env python # Copyright 2016 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...
37.300601
79
0.713748
68ec2f2b4494c3d01c7f0ead15295cf1a224f7f4
24,509
py
Python
sdk/python/pulumi_azure_native/kubernetesconfiguration/v20191101preview/source_control_configuration.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kubernetesconfiguration/v20191101preview/source_control_configuration.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kubernetesconfiguration/v20191101preview/source_control_configuration.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "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, overload from ... import _utilities fro...
49.815041
946
0.683749
5d9354e3afa4e655cdfb9d474e188ed7a41447d9
242
py
Python
src/docxCreater/helloWorld/main.py
HoPGoldy/docx-server
d1612b832e4f078080342b74a2a80cc5eca7c5b4
[ "MIT" ]
null
null
null
src/docxCreater/helloWorld/main.py
HoPGoldy/docx-server
d1612b832e4f078080342b74a2a80cc5eca7c5b4
[ "MIT" ]
1
2021-03-31T19:58:14.000Z
2021-03-31T19:58:14.000Z
src/docxCreater/helloWorld/main.py
HoPGoldy/docx-server
d1612b832e4f078080342b74a2a80cc5eca7c5b4
[ "MIT" ]
null
null
null
from docx import Document from ..utils import save def create(): ''' 基本示例, 执行此方法即可获取文档流 RETURNS: fileStream: 文档的 io 流 ''' document = Document() document.add_paragraph('Hello World!') return save(document)
18.615385
42
0.636364
146d1befc7a250069a351fd5f167f4e17943e60f
1,761
py
Python
hummingbot/connector/exchange/blocktane/blocktane_utils.py
coreydemarse/hummingbot
48dd45b103622b198ca8e833ed9de7d0ad573ed9
[ "Apache-2.0" ]
37
2020-07-08T03:44:26.000Z
2022-01-16T12:35:26.000Z
hummingbot/connector/exchange/blocktane/blocktane_utils.py
coreydemarse/hummingbot
48dd45b103622b198ca8e833ed9de7d0ad573ed9
[ "Apache-2.0" ]
3
2021-04-13T10:40:05.000Z
2021-05-09T16:15:42.000Z
hummingbot/connector/exchange/blocktane/blocktane_utils.py
coreydemarse/hummingbot
48dd45b103622b198ca8e833ed9de7d0ad573ed9
[ "Apache-2.0" ]
17
2021-04-07T21:29:46.000Z
2022-02-03T02:01:04.000Z
import re from typing import Optional, Tuple from hummingbot.client.config.config_var import ConfigVar from hummingbot.client.config.config_methods import using_exchange CENTRALIZED = True EXAMPLE_PAIR = "BTC-BRL" DEFAULT_FEES = [0.35, 0.45] # The actual fees KEYS = { "blocktane_api_key": ConfigVar(k...
32.018182
84
0.654174
a4cd4f80b30156e34f81e02b2239c85c4a5ce371
1,668
py
Python
openapi/spec/ext/cli/main.py
t2y/openapi-ext-tools
1253053af4f9a90f85b611e79a8f39c7d226a002
[ "Apache-2.0" ]
1
2020-08-30T07:47:57.000Z
2020-08-30T07:47:57.000Z
openapi/spec/ext/cli/main.py
t2y/openapi-ext-tools
1253053af4f9a90f85b611e79a8f39c7d226a002
[ "Apache-2.0" ]
null
null
null
openapi/spec/ext/cli/main.py
t2y/openapi-ext-tools
1253053af4f9a90f85b611e79a8f39c7d226a002
[ "Apache-2.0" ]
null
null
null
import argparse import logging import os import pathlib import sys from pprint import pprint from openapi_spec_validator import validate_spec_url from openapi_spec_validator.exceptions import ValidationError from ..utils.log import log from ..spec import BundledSpec def validate(path): try: abspath = os...
22.540541
70
0.658273
8fb1d411952cd10c70ab3e8ca64ffc4ac0a0dc96
1,179
py
Python
intake_xarray/xzarr.py
hydrocloudservices/intake-xarray
45972ab9097bc74619ec951f35a98a12095e5e48
[ "BSD-2-Clause" ]
34
2019-04-05T12:06:11.000Z
2022-03-30T02:29:02.000Z
intake_xarray/xzarr.py
hydrocloudservices/intake-xarray
45972ab9097bc74619ec951f35a98a12095e5e48
[ "BSD-2-Clause" ]
75
2019-02-22T21:04:08.000Z
2022-03-30T12:44:02.000Z
intake_xarray/xzarr.py
hydrocloudservices/intake-xarray
45972ab9097bc74619ec951f35a98a12095e5e48
[ "BSD-2-Clause" ]
29
2019-05-07T18:46:41.000Z
2022-02-11T10:19:05.000Z
from .base import DataSourceMixin class ZarrSource(DataSourceMixin): """Open a xarray dataset. Parameters ---------- urlpath: str Path to source. This can be a local directory or a remote data service (i.e., with a protocol specifier like ``'s3://``). storage_options: dict ...
29.475
79
0.625954
4088e01f2e004a767bf4ba70a864d32ee9abfa3e
3,687
py
Python
tests/pcsv/dsort.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
6
2015-12-15T04:09:08.000Z
2020-02-21T01:40:57.000Z
tests/pcsv/dsort.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
null
null
null
tests/pcsv/dsort.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
2
2016-01-21T23:29:17.000Z
2020-02-21T01:41:05.000Z
# dsort.py # Copyright (c) 2013-2016 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0103,C0111,C0302,E0611,F0401,R0201,R0915,W0232 # PyPI imports import pytest # Putil imports import putil.misc import putil.pcsv import putil.test from putil.test import AE, AI, RE from tests.pcsv.fixtures import ( ...
39.645161
79
0.608354
11fafc75192cae8e07b04f579c322cf8854bbf21
938
py
Python
tests/test_imports.py
uk0/lektor
21bdf99aa1183b4398043f87ba8ed137fad529ce
[ "BSD-3-Clause" ]
null
null
null
tests/test_imports.py
uk0/lektor
21bdf99aa1183b4398043f87ba8ed137fad529ce
[ "BSD-3-Clause" ]
null
null
null
tests/test_imports.py
uk0/lektor
21bdf99aa1183b4398043f87ba8ed137fad529ce
[ "BSD-3-Clause" ]
null
null
null
"""Test that all modules/packages in the lektor tree are importable in any order Here we import each module by itself, one at a time, each in a new python interpreter. """ import pkgutil import sys from subprocess import run import pytest import lektor from lektor.markdown import MISTUNE_VERSION ignored = set() ...
23.45
80
0.73774
472aa1b701a452845ca53802853c5c6c1ca648ea
16,894
py
Python
qa/rpc-tests/pruning.py
ripox/ripoffcoinv2
c9d34fbf5350ea7b6a7e36465155bd8e195d2575
[ "MIT" ]
null
null
null
qa/rpc-tests/pruning.py
ripox/ripoffcoinv2
c9d34fbf5350ea7b6a7e36465155bd8e195d2575
[ "MIT" ]
null
null
null
qa/rpc-tests/pruning.py
ripox/ripoffcoinv2
c9d34fbf5350ea7b6a7e36465155bd8e195d2575
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 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 pruning code # ******** # WARNING: # This test uses 4GB of disk space. # This test tak...
49.397661
168
0.575175
8728b6b527fb6e7ad83c21ba0f12166279543bb8
7,644
py
Python
farmlogger/farm/tests.py
bdzim/farmlogger
c8565dca9287945b13c93cc50b1587aaefcb0c4d
[ "MIT" ]
null
null
null
farmlogger/farm/tests.py
bdzim/farmlogger
c8565dca9287945b13c93cc50b1587aaefcb0c4d
[ "MIT" ]
null
null
null
farmlogger/farm/tests.py
bdzim/farmlogger
c8565dca9287945b13c93cc50b1587aaefcb0c4d
[ "MIT" ]
null
null
null
import json import pytz from django.test import TestCase from django.utils.dateparse import parse_datetime from farmlogger.farm.models import ( Event, User, Field ) class EventTestCase(TestCase): def _parse_date_string(self, date_string): return pytz.timezone('UTC').localize(parse_datetime(date_strin...
33.379913
83
0.481554
40c1b99961aad3c3f551a016c530caa0d9fb9d3b
2,596
py
Python
fetch/api/resources/redirect.py
vfalconi/web-platform-tests
cc364d6f98b111e488aa1d88064af21566ec4184
[ "BSD-3-Clause" ]
1
2021-01-07T18:46:45.000Z
2021-01-07T18:46:45.000Z
fetch/api/resources/redirect.py
vfalconi/web-platform-tests
cc364d6f98b111e488aa1d88064af21566ec4184
[ "BSD-3-Clause" ]
null
null
null
fetch/api/resources/redirect.py
vfalconi/web-platform-tests
cc364d6f98b111e488aa1d88064af21566ec4184
[ "BSD-3-Clause" ]
null
null
null
from urllib import urlencode from urlparse import urlparse import time def main(request, response): stashed_data = {'count': 0, 'preflight': "0"} status = 302 headers = [("Content-Type", "text/plain"), ("Cache-Control", "no-cache"), ("Pragma", "no-cache")] if "Origin" in r...
37.623188
90
0.593606