hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
1af704ced8bbc9737483e4fe868964128973d0d0
10,846
py
Python
habitat/utils/visualizations/utils.py
Ram81/habitat-imitation-baselines
c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505
[ "MIT" ]
null
null
null
habitat/utils/visualizations/utils.py
Ram81/habitat-imitation-baselines
c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505
[ "MIT" ]
null
null
null
habitat/utils/visualizations/utils.py
Ram81/habitat-imitation-baselines
c6e11c8ebadbf1260e1bed58a5b8dfb7faf6a505
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import cv2 import os import textwrap from typing import Dict, List, Optional, Tuple import colorsys import imageio impo...
34.874598
96
0.627051
1af715abecaa12234db105296d06e92d47e9b302
8,449
py
Python
chroma_core/models/command.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
chroma_core/models/command.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
chroma_core/models/command.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import traceback import logging from django.db import models from django.contrib.contenttypes.models import ContentType from chroma_core.lib.job import job_log from ch...
38.756881
158
0.648834
1af775f43fdbd58f93b5d213c0a7fb97f13c3789
9,775
py
Python
wmpl/Utils/ShowerAssociation.py
gmke/WesternMeteorPyLib
f218ac5abc9c1a53fe3844039909f8efb929b50e
[ "MIT" ]
20
2019-04-11T01:15:23.000Z
2022-03-08T17:36:35.000Z
wmpl/Utils/ShowerAssociation.py
adalava/WesternMeteorPyLib
d1083734bab7ad82580a0370121986296547f0b0
[ "MIT" ]
9
2019-11-12T02:46:42.000Z
2021-11-16T21:14:24.000Z
wmpl/Utils/ShowerAssociation.py
adalava/WesternMeteorPyLib
d1083734bab7ad82580a0370121986296547f0b0
[ "MIT" ]
11
2019-08-22T03:01:36.000Z
2022-03-07T18:36:59.000Z
""" Associate the given meteor trajectory to a meteor shower. """ from __future__ import print_function, division, absolute_import import os import sys import copy # Preserve Python 2 compatibility for the encoding option in the "open" function from io import open import numpy as np from wmpl.Config import conf...
32.260726
190
0.660051
1af777d49fa7d0ed5d696c94bf1c6cab8fc64d57
8,160
py
Python
soaplib/core/test/type/test_clazz.py
divaliu1408/overfit
083dcfaa758391092933e19544462cd831e73ef0
[ "Apache-2.0" ]
null
null
null
soaplib/core/test/type/test_clazz.py
divaliu1408/overfit
083dcfaa758391092933e19544462cd831e73ef0
[ "Apache-2.0" ]
null
null
null
soaplib/core/test/type/test_clazz.py
divaliu1408/overfit
083dcfaa758391092933e19544462cd831e73ef0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # soaplib - Copyright (C) Soaplib contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any late...
29.458484
81
0.634436
1af78061492139acad4f67a6ee3efd894033bbdc
7,050
py
Python
src/command_modules/azure-cli-cdn/azure/cli/command_modules/cdn/_help.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-cdn/azure/cli/command_modules/cdn/_help.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-cdn/azure/cli/command_modules/cdn/_help.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
33.732057
101
0.602837
1af78bae29c96149df5fcc66b322cdc7b576767e
12,920
py
Python
sdks/python/appcenter_sdk/models/StackFrame.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/StackFrame.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/StackFrame.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class StackFrame(obj...
27.844828
244
0.583359
1af7a64eda40fa0a3424584831b331d125ed71a1
1,873
py
Python
ckan/model/test_user.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
1
2016-02-11T04:51:21.000Z
2016-02-11T04:51:21.000Z
ckan/model/test_user.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
null
null
null
ckan/model/test_user.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
null
null
null
import ckan.model as model from ckan.tests import * from ckan.lib.create_test_data import CreateTestData import ckan.model.user class TestUser(object): @classmethod def setup_class(self): CreateTestData.create() @classmethod def teardown_class(self): model.Session.remove() m...
31.745763
78
0.614522
1af7b52f7c8e90e33f1c9639c55cc5ce89646650
4,395
py
Python
fedml_api/data_preprocessing/MNIST/data_loader.py
ZHTushar23/FedML
23f65f3a674c53e94ae324676d6fe23234f0c7c3
[ "Apache-2.0" ]
null
null
null
fedml_api/data_preprocessing/MNIST/data_loader.py
ZHTushar23/FedML
23f65f3a674c53e94ae324676d6fe23234f0c7c3
[ "Apache-2.0" ]
null
null
null
fedml_api/data_preprocessing/MNIST/data_loader.py
ZHTushar23/FedML
23f65f3a674c53e94ae324676d6fe23234f0c7c3
[ "Apache-2.0" ]
null
null
null
import json import logging import os import numpy as np import torch def read_data(train_data_dir, test_data_dir): '''parses data in given train and test data directories assumes: - the data in the input directories are .json files with keys 'users' and 'user_data' - the set of train set us...
34.880952
92
0.637998
1af7d42f0a8a4c182841d6a97193c7f5be5193b1
1,584
py
Python
venv/Lib/site-packages/pyrogram/session/internals/msg_id.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/session/internals/msg_id.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/session/internals/msg_id.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
34.434783
82
0.705808
1af7ddd833c2c4a959995f7cdb828f1539e170c6
776
py
Python
test/test_github.py
OrkoHunter/augur
98be049680f5bdcea4bb3db6698a14f0d7e0bdfd
[ "MIT" ]
null
null
null
test/test_github.py
OrkoHunter/augur
98be049680f5bdcea4bb3db6698a14f0d7e0bdfd
[ "MIT" ]
null
null
null
test/test_github.py
OrkoHunter/augur
98be049680f5bdcea4bb3db6698a14f0d7e0bdfd
[ "MIT" ]
null
null
null
import os import pytest import pandas @pytest.fixture def github(): import augur augurApp = augur.Application() return augurApp.github() """ Pandas testing format assert ghtorrent.<function>(ghtorrent.repoid('owner', 'repo')).isin(['<data that should be in dataframe>']).any The tests check if a value is...
16.869565
111
0.634021
1af7faf12830532d68e092e74fe11a67b01eb254
373
py
Python
main.py
Ciremun/shtcd
8967f1114cc633d504b30e69f24c91c1eeb59eb6
[ "MIT" ]
1
2021-02-22T12:36:24.000Z
2021-02-22T12:36:24.000Z
main.py
Ciremun/shtcd
8967f1114cc633d504b30e69f24c91c1eeb59eb6
[ "MIT" ]
2
2021-02-06T19:41:20.000Z
2021-03-13T16:31:45.000Z
main.py
Ciremun/shtcd
8967f1114cc633d504b30e69f24c91c1eeb59eb6
[ "MIT" ]
null
null
null
# TODO(#2): pixiv api broke if __name__ == '__main__': from src.utils import timecode_convert from src.chat import ChatThread import src.server as server import src.config as g g.sr_max_song_duration = timecode_convert(g.sr_max_song_duration) g.sr_user_cooldown = timecode_convert(g.sr_user_coold...
33.909091
69
0.734584
1af83f2b66e6d0ed3f09062dbcd27e45bf61ef08
2,745
py
Python
Tools/Scripts/webkitpy/tool/steps/closebug.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/tool/steps/closebug.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/tool/steps/closebug.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2010 Google 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 copyright # notice, this list of conditions and the ...
48.157895
182
0.722769
1af855fd58008b77d18925816a2c087af3e4ebbb
21,632
py
Python
mapboxgl/viz.py
bnaul/mapboxgl-jupyter
01f401642961d1044f8bc86eac04de8bebe3705c
[ "MIT" ]
null
null
null
mapboxgl/viz.py
bnaul/mapboxgl-jupyter
01f401642961d1044f8bc86eac04de8bebe3705c
[ "MIT" ]
null
null
null
mapboxgl/viz.py
bnaul/mapboxgl-jupyter
01f401642961d1044f8bc86eac04de8bebe3705c
[ "MIT" ]
1
2019-12-27T15:48:22.000Z
2019-12-27T15:48:22.000Z
import json import os from IPython.core.display import HTML, display import numpy from mapboxgl.errors import TokenError from mapboxgl.utils import color_map from mapboxgl import templates from mapboxgl.utils import img_encode GL_JS_VERSION = 'v0.44.1' class MapViz(object): def __init__(self, ...
38.906475
127
0.614645
1af884592eed5be542a0e3d9d2d690d359910943
3,188
py
Python
docs/postprocess.py
notaJiminLee/pycoral
d04eabadb69b57899c429d808633969444985ff2
[ "Apache-2.0" ]
149
2020-10-27T11:25:52.000Z
2022-03-22T17:55:30.000Z
docs/postprocess.py
notaJiminLee/pycoral
d04eabadb69b57899c429d808633969444985ff2
[ "Apache-2.0" ]
73
2020-11-09T15:53:27.000Z
2022-03-19T11:13:23.000Z
docs/postprocess.py
notaJiminLee/pycoral
d04eabadb69b57899c429d808633969444985ff2
[ "Apache-2.0" ]
65
2020-11-17T06:18:51.000Z
2022-03-12T03:24:38.000Z
# Lint as: python3 # Copyright 2020 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 or agr...
27.964912
79
0.678482
1af88abb282c537153a7c339da61aea4153b2d61
3,082
py
Python
ibis/tests/expr/test_case.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
5
2018-04-26T17:42:14.000Z
2020-10-14T19:02:59.000Z
ibis/tests/expr/test_case.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
12
2018-04-07T03:13:34.000Z
2020-07-13T15:45:34.000Z
ibis/expr/tests/test_case.py
ian-r-rose/ibis
c2323b8dfd7b56db821426513c379de38203b332
[ "Apache-2.0" ]
2
2020-11-27T22:21:50.000Z
2021-04-03T09:36:25.000Z
import pytest import ibis import ibis.expr.datatypes as dt import ibis.expr.operations as ops import ibis.expr.types as ir from ibis.tests.util import assert_equal def test_ifelse(table): bools = table.g.isnull() result = bools.ifelse("foo", "bar") assert isinstance(result, ir.StringColumn) @pytest.mar...
24.656
75
0.643089
1af8a4bc2e5f6a0b0dc0accbc9013c1ae2f6e7bf
4,962
py
Python
test/test_sxfile.py
tonypdmtr/sxtool
225468d70c5fe1bf7414f19ce13dcdd43e872433
[ "BSD-2-Clause" ]
3
2018-10-11T15:34:24.000Z
2022-02-20T23:24:01.000Z
test/test_sxfile.py
tonypdmtr/sxtool
225468d70c5fe1bf7414f19ce13dcdd43e872433
[ "BSD-2-Clause" ]
1
2018-10-16T06:58:22.000Z
2018-10-22T20:19:55.000Z
test/test_sxfile.py
tonypdmtr/sxtool
225468d70c5fe1bf7414f19ce13dcdd43e872433
[ "BSD-2-Clause" ]
1
2022-02-20T23:26:50.000Z
2022-02-20T23:26:50.000Z
import io import unittest from src.sx_file import SxFile from src.sx_item import SxItem from test.test_const import * class TestSxFile(unittest.TestCase): def testDeleteEmptySxFile(self): sxf = SxFile() del sxf def testDeleteFullSxFile(self): mys = '''S00A11223344556677889900 S10B00...
29.535714
72
0.548972
1af8b034429cc70ed09e77ee3c60b0f8c0d9d48e
4,368
py
Python
SciPy2016/MTwork/inv3d_HPK1/run2/findDiam_inversion.py
simpeg/simpegExamples
38b8064fb854d809f72b7f1ca8b8096bca696af1
[ "MIT" ]
1
2021-08-07T13:46:54.000Z
2021-08-07T13:46:54.000Z
SciPy2016/MTwork/inv3d_HPK1/run2/findDiam_inversion.py
simpeg/simpegExamples
38b8064fb854d809f72b7f1ca8b8096bca696af1
[ "MIT" ]
1
2016-07-27T22:20:36.000Z
2016-07-27T22:20:36.000Z
SciPy2016/MTwork/inv3d_HPK1/run2/findDiam_inversion.py
simpeg/simpegExamples
38b8064fb854d809f72b7f1ca8b8096bca696af1
[ "MIT" ]
null
null
null
# Import modules import numpy as np, sys, os, time, gzip, cPickle as pickle, scipy sys.path.append('/tera_raid/gudni/gitCodes/simpeg') sys.path.append('/tera_raid/gudni') from pymatsolver import MumpsSolver import SimPEG as simpeg from SimPEG import MT from numpy.lib import recfunctions as rFunc # Function to get data...
33.343511
108
0.715659
1af8d463f955997ddfac669333f40fef8474ad51
2,215
py
Python
matrix_content_scanner/crypto.py
babolivier/matrix-content-scanner-python
3a9fe707467a551d06fedb94921d057f9177728f
[ "Apache-2.0" ]
1
2021-12-10T18:59:02.000Z
2021-12-10T18:59:02.000Z
matrix_content_scanner/crypto.py
babolivier/matrix-content-scanner-python
3a9fe707467a551d06fedb94921d057f9177728f
[ "Apache-2.0" ]
null
null
null
matrix_content_scanner/crypto.py
babolivier/matrix-content-scanner-python
3a9fe707467a551d06fedb94921d057f9177728f
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Matrix.org Foundation C.I.C. # # 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 la...
33.059701
82
0.6614
1af8db58d0ca7d523b0e5e1279d34e44b0666505
7,920
py
Python
doc/source/conf.py
starlingx-staging/stx-python-cinderclient
6741051377df5d6ac229a3c4674f770fc47cce5a
[ "Apache-1.1" ]
null
null
null
doc/source/conf.py
starlingx-staging/stx-python-cinderclient
6741051377df5d6ac229a3c4674f770fc47cce5a
[ "Apache-1.1" ]
1
2018-09-10T23:44:02.000Z
2018-09-12T16:28:07.000Z
doc/source/conf.py
starlingx-staging/stx-python-cinderclient
6741051377df5d6ac229a3c4674f770fc47cce5a
[ "Apache-1.1" ]
2
2018-09-07T23:17:23.000Z
2019-01-11T16:10:08.000Z
# -*- coding: utf-8 -*- # 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, softw...
33.846154
79
0.711364
1af8f936875089e07953e360566c60805b9c3975
5,053
py
Python
scripts/manual_control.py
ryanp543/agrobotarmcontrol
cf1bed8a2fb36e5d9c64039c20e3e4d6cea4a31c
[ "MIT" ]
null
null
null
scripts/manual_control.py
ryanp543/agrobotarmcontrol
cf1bed8a2fb36e5d9c64039c20e3e4d6cea4a31c
[ "MIT" ]
null
null
null
scripts/manual_control.py
ryanp543/agrobotarmcontrol
cf1bed8a2fb36e5d9c64039c20e3e4d6cea4a31c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import time import numpy as np import rospy import pygame from std_msgs.msg import String from agrobot_arm_v2.msg import FloatList from struct import * HOST = "localhost" PORT = 4223 UID_step = "6yJzPW" # Motor settings POS_MIN_STEP = 0.02 # Minimum step to be taken b...
33.243421
126
0.621413
1af8fc5ae897fab68262ccc6de50d6a75430ac56
854
py
Python
python/tvm/relay/backend/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
python/tvm/relay/backend/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
python/tvm/relay/backend/__init__.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.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...
44.947368
62
0.771663
1af927d5004d235fbde81c4b36b08ff0d504bc19
103
py
Python
tests/context.py
zenaix/ICSuit
792b498df7f0e700b77f147e4f888b950f3ba296
[ "Apache-2.0" ]
1
2021-02-21T11:19:23.000Z
2021-02-21T11:19:23.000Z
tests/context.py
zenaix/ICSuit
792b498df7f0e700b77f147e4f888b950f3ba296
[ "Apache-2.0" ]
null
null
null
tests/context.py
zenaix/ICSuit
792b498df7f0e700b77f147e4f888b950f3ba296
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os sys.path.insert(0, os.path.abspath('..')) import icsuit
12.875
41
0.640777
1af954c62fb77f448b549f24a6d6556b7a1500ea
406
py
Python
app/api/users/services/user_services.py
vousmeevoyez/flask-rest-boilerplate
3e15e45f67f7b18733809e27aa3f084de9fb2b72
[ "MIT" ]
1
2020-03-23T00:34:26.000Z
2020-03-23T00:34:26.000Z
app/api/users/services/user_services.py
vousmeevoyez/flask-rest-boilerplate
3e15e45f67f7b18733809e27aa3f084de9fb2b72
[ "MIT" ]
null
null
null
app/api/users/services/user_services.py
vousmeevoyez/flask-rest-boilerplate
3e15e45f67f7b18733809e27aa3f084de9fb2b72
[ "MIT" ]
null
null
null
""" User Services """ from app.api.models import User from app.api.serializer import UserSchema class UserServices: def add(self, request_data): response = { "message" : "Successfully add user!" } user = User(**request_data) user.save() return response def get(self, username): user = User.objects(...
19.333333
48
0.706897
1af95dfb9e952ec3963ff6e1011ba6442ae5fda3
473
py
Python
cogbot/cogs/robo_mod/triggers/member_left.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
8
2016-12-26T14:10:38.000Z
2021-01-02T03:50:05.000Z
cogbot/cogs/robo_mod/triggers/member_left.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
28
2016-12-12T04:06:53.000Z
2020-04-23T06:18:55.000Z
cogbot/cogs/robo_mod/triggers/member_left.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
9
2017-06-03T00:33:57.000Z
2020-10-29T18:16:02.000Z
from typing import Optional from discord import Member from cogbot.cogs.robo_mod.robo_mod_rule import RoboModRule from cogbot.cogs.robo_mod.robo_mod_trigger import RoboModTrigger class MemberLeftTrigger(RoboModTrigger): def __init__(self, state: "RoboModServerState", rule: RoboModRule, member: Member): ...
27.823529
87
0.750529
1af966318d9765e960d8b8f58be6ee5583906a89
2,487
py
Python
instaApp/views.py
jakesIII/instagrama
9580458f77ed40a54f421248290a1d2b2d3cd16b
[ "Unlicense" ]
null
null
null
instaApp/views.py
jakesIII/instagrama
9580458f77ed40a54f421248290a1d2b2d3cd16b
[ "Unlicense" ]
3
2020-02-12T03:27:52.000Z
2021-06-10T22:28:22.000Z
instaApp/views.py
jakesIII/instagrama
9580458f77ed40a54f421248290a1d2b2d3cd16b
[ "Unlicense" ]
1
2020-08-11T17:06:27.000Z
2020-08-11T17:06:27.000Z
from django.shortcuts import render from .forms import UploadForm,ProfileUpdateForm, CommentForm from .models import Image, Profile, Comments from django.http import HttpResponseRedirect, Http404 from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User # Create your views he...
34.541667
75
0.671894
1af96e80e2b0fe5b36a4a98ddd9d04237ba263ac
1,995
py
Python
burger_war_dev/scripts/navirun.py
Yuto723/burger_war_dev
46900c0472a228c528dbe684299c87d931a94390
[ "BSD-3-Clause" ]
4
2021-01-29T15:02:39.000Z
2022-02-27T23:55:25.000Z
burger_war_dev/scripts/navirun.py
Yuto723/burger_war_dev
46900c0472a228c528dbe684299c87d931a94390
[ "BSD-3-Clause" ]
9
2021-02-23T02:39:39.000Z
2021-03-18T03:14:46.000Z
burger_war_dev/scripts/navirun.py
Yuto723/burger_war_dev
46900c0472a228c528dbe684299c87d931a94390
[ "BSD-3-Clause" ]
71
2021-01-29T08:28:12.000Z
2022-02-07T09:36:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import rospy import random from geometry_msgs.msg import Twist import tf import actionlib from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal import actionlib_msgs # Ref: https://hotblackrobotics.github.io/en/blog/2018/01/29/action-client-py/ #from std_msgs.ms...
25.576923
78
0.635088
1af96f938070bb0a9abbaa55aa270d52675564c8
1,309
py
Python
public_data/urls.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
public_data/urls.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
3
2022-02-10T11:47:58.000Z
2022-02-23T18:50:24.000Z
public_data/urls.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework import routers from .api_views import ( Artificialisee2015to2018ViewSet, Artificielle2018ViewSet, CommunesSybarvalViewSet, CouvertureSolViewset, EnveloppeUrbaine2018ViewSet, OcsgeViewSet, Renaturee2018to2015ViewSet, SybarvalViewSet, U...
30.44186
87
0.809778
1af96fe08abc9db28f4654ce4a03378d2fbc249a
45,698
py
Python
discavar/analysis.py
JulianFlesch/discavar-vcf
84e89f57abb3ae07e5c857e6a700ebb4bcea2c64
[ "MIT" ]
null
null
null
discavar/analysis.py
JulianFlesch/discavar-vcf
84e89f57abb3ae07e5c857e6a700ebb4bcea2c64
[ "MIT" ]
null
null
null
discavar/analysis.py
JulianFlesch/discavar-vcf
84e89f57abb3ae07e5c857e6a700ebb4bcea2c64
[ "MIT" ]
null
null
null
from .vcfwrapper import VCFWrapper, get_samples_from_vcf from .annotation_parser import VEPAnnotation from .cli import InputFile, error, warning, info from .filters import VariantFilter, AnnotationFilter from cyvcf2 import VCF from scipy import stats, mean import pandas as pd import numpy as np import matplotlib.pyplo...
32.758423
80
0.514005
1af9a75b6019ae44bdf9b9531f826ab672f7d6e4
2,432
py
Python
src/spaceone/inventory/api/v1/ip_address.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/api/v1/ip_address.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/api/v1/ip_address.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
from spaceone.api.inventory.v1 import ip_address_pb2, ip_address_pb2_grpc from spaceone.core.pygrpc import BaseAPI class IPAddress(BaseAPI, ip_address_pb2_grpc.IPAddressServicer): pb2 = ip_address_pb2 pb2_grpc = ip_address_pb2_grpc def allocate(self, request, context): params, metadata = self.pa...
41.220339
106
0.704359
1af9e4e381a8c6e054698eaecc910ef67fade30b
10,608
py
Python
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/boto/s3/s3_client.py
larsll/deepracer-simapp
9251c32ff33d49955b63ccca4f38d01a0c721d4f
[ "MIT" ]
1
2022-02-23T20:34:00.000Z
2022-02-23T20:34:00.000Z
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/boto/s3/s3_client.py
Bandwidth/deepracer-simapp
9bf0a5f9c55e37ecef8e72b1b6dc15ecb0370bc1
[ "MIT" ]
null
null
null
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/boto/s3/s3_client.py
Bandwidth/deepracer-simapp
9bf0a5f9c55e37ecef8e72b1b6dc15ecb0370bc1
[ "MIT" ]
null
null
null
"""This module implement s3 client""" import botocore from markov.log_handler.exception_handler import log_and_exit from markov.log_handler.deepracer_exceptions import GenericNonFatalException from markov.log_handler.constants import (SIMAPP_EVENT_SYSTEM_ERROR, SIMAPP_EVENT_U...
43.121951
101
0.538556
1af9f2a2123a80ff57b3f89942db9aaf51a6051a
8,184
py
Python
import_AFM_data.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
3
2020-12-02T16:19:46.000Z
2021-12-21T13:26:53.000Z
import_AFM_data.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
null
null
null
import_AFM_data.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
1
2022-03-03T15:17:58.000Z
2022-03-03T15:17:58.000Z
# -*- coding: utf-8 -*- """ @author: Yuri # 2019 septemebr - Yuri Efremov <yu.efremov@gmail.com> # for import from single Bruker file """ import struct import numpy as np import matplotlib.pyplot as plt class Bruker_import: """ Class to import Bruker AFM force curves and force maps """...
40.716418
99
0.467498
1afa11186f2a60fead532b5232101d455b25d234
8,651
py
Python
aiortc/codecs/vpx.py
dsvictor94/aiortc
081d05e4e8fab41bc787da26ef7b2c46e2e92be4
[ "BSD-3-Clause" ]
1
2021-07-23T09:44:11.000Z
2021-07-23T09:44:11.000Z
aiortc/codecs/vpx.py
dsvictor94/aiortc
081d05e4e8fab41bc787da26ef7b2c46e2e92be4
[ "BSD-3-Clause" ]
null
null
null
aiortc/codecs/vpx.py
dsvictor94/aiortc
081d05e4e8fab41bc787da26ef7b2c46e2e92be4
[ "BSD-3-Clause" ]
null
null
null
import math import multiprocessing import random from struct import pack, unpack from ..mediastreams import VideoFrame from ._vpx import ffi, lib PACKET_MAX = 1300 - 4 MAX_FRAME_RATE = 30 def number_of_threads(pixels, cpus): if pixels >= 1920 * 1080 and cpus > 8: return 8 elif pixels > 1280 * 960 an...
34.329365
100
0.530459
1afa3912050d15a4861561c4689cb76ce30ee62b
4,094
py
Python
fairscale/nn/pipe/copy.py
aurickq/fairscale
909c84462c6c53abcc4c2841d14a9496e6a3e033
[ "Apache-2.0", "BSD-3-Clause" ]
1,662
2020-07-15T21:40:19.000Z
2022-03-31T10:45:12.000Z
fairscale/nn/pipe/copy.py
aurickq/fairscale
909c84462c6c53abcc4c2841d14a9496e6a3e033
[ "Apache-2.0", "BSD-3-Clause" ]
648
2020-07-21T19:00:32.000Z
2022-03-30T23:11:41.000Z
fairscale/nn/pipe/copy.py
aurickq/fairscale
909c84462c6c53abcc4c2841d14a9496e6a3e033
[ "Apache-2.0", "BSD-3-Clause" ]
170
2020-07-16T00:28:01.000Z
2022-03-15T19:39:21.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. # Copyright 2019 Kakao Brain # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this f...
34.694915
116
0.677577
1afaa3fe3321f5aacd490643f5bb7176c74bcf1b
1,478
py
Python
catalog/migrations/0023_movies.py
jansgreen/django-locallibrary-tutorial
9e3f5b694de3676dba66fc4df05435af339a44ab
[ "CC0-1.0" ]
null
null
null
catalog/migrations/0023_movies.py
jansgreen/django-locallibrary-tutorial
9e3f5b694de3676dba66fc4df05435af339a44ab
[ "CC0-1.0" ]
null
null
null
catalog/migrations/0023_movies.py
jansgreen/django-locallibrary-tutorial
9e3f5b694de3676dba66fc4df05435af339a44ab
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.0.7 on 2020-08-04 14:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0022_auto_20181028_1731'), ] operations = [ migrations.CreateModel( name='Movies', fields=[ ...
43.470588
114
0.58525
1afae510adf7569ece169e95edcf30c7c418d13a
4,913
py
Python
castero/players/vlcplayer.py
GhostOfMe/castero
b13609358fd459ed3e38b1241ec62c535f99a34d
[ "MIT" ]
null
null
null
castero/players/vlcplayer.py
GhostOfMe/castero
b13609358fd459ed3e38b1241ec62c535f99a34d
[ "MIT" ]
null
null
null
castero/players/vlcplayer.py
GhostOfMe/castero
b13609358fd459ed3e38b1241ec62c535f99a34d
[ "MIT" ]
null
null
null
import time from castero.player import Player, PlayerDependencyError class VLCPlayer(Player): """Interface for the vlc media player. """ NAME = "vlc" def __init__(self, title, path, episode) -> None: """ Overrides method from Player; see documentation in that class. """ ...
31.696774
74
0.579279
1afae837a5be6121db2a205825f1a08912f74d27
7,705
py
Python
synapse/lib/aha.py
kcreyts/synapse
fe740fd1e0febfa32f8d431b32ab48f8a0cf306e
[ "Apache-2.0" ]
1
2021-02-15T22:07:05.000Z
2021-02-15T22:07:05.000Z
synapse/lib/aha.py
kcreyts/synapse
fe740fd1e0febfa32f8d431b32ab48f8a0cf306e
[ "Apache-2.0" ]
null
null
null
synapse/lib/aha.py
kcreyts/synapse
fe740fd1e0febfa32f8d431b32ab48f8a0cf306e
[ "Apache-2.0" ]
null
null
null
import os import logging import synapse.common as s_common import synapse.lib.cell as s_cell import synapse.lib.nexus as s_nexus import synapse.lib.jsonstor as s_jsonstor import synapse.lib.lmdbslab as s_lmdbslab logger = logging.getLogger(__file__) class AhaApi(s_cell.CellApi): async def getAhaUrls(self): ...
31.194332
88
0.606489
1afb02a649e7d69402490adf57a9d44f31b3f292
3,778
py
Python
mkvimdb/cli.py
GnomonConquest/mkvimdb
ad3fd040dea254940ddf72604c482fd8279bd716
[ "MIT" ]
null
null
null
mkvimdb/cli.py
GnomonConquest/mkvimdb
ad3fd040dea254940ddf72604c482fd8279bd716
[ "MIT" ]
516
2020-09-25T12:54:30.000Z
2022-03-31T13:17:18.000Z
mkvimdb/cli.py
GnomonConquest/mkvimdb
ad3fd040dea254940ddf72604c482fd8279bd716
[ "MIT" ]
null
null
null
"""Console script for mkvimdb.""" import sys import os from optparse import OptionParser import mkvimdb.mkvimdb as mi def main(argv=None): """ Console script for mkvimdb. """ program_name = os.path.basename(sys.argv[0]) program_version = "all" program_build_date = "%s" % 2020 program_vers...
39.768421
86
0.528322
1afb101f6bd870f913cc4df9d657b96077290a50
4,800
py
Python
src/test_only_plugins/bitbucket/repository_provider.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/test_only_plugins/bitbucket/repository_provider.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/test_only_plugins/bitbucket/repository_provider.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import six from uuid import uuid4 from sentry.app import locks from sentry.models import OrganizationOption from sentry.plugins import providers from sentry.utils.http import absolute_uri from test_only_plugins.exceptions import ApiError from .endpoints.webhook import parse_r...
34.782609
94
0.550625
1afb25be531e55b2053a5b916c2cda4a0aebb80e
4,702
py
Python
geoapps/simpegPF/EM/Analytics/FDEMcasing.py
RichardScottOZ/geoapps
5b3c1d4fd11add45992e8b2497312ac014272b69
[ "MIT" ]
1
2022-02-18T16:24:53.000Z
2022-02-18T16:24:53.000Z
geoapps/simpegPF/EM/Analytics/FDEMcasing.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
geoapps/simpegPF/EM/Analytics/FDEMcasing.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
import numpy as np from .. import Utils from scipy.constants import mu_0, epsilon_0 from EM.Utils.EMUtils import k def getKc(freq, sigma, a, b, mu=mu_0, eps=epsilon_0): a = float(a) b = float(b) # return 1./(2*np.pi) * np.sqrt(b / a) * np.exp(-1j*k(freq,sigma,mu,eps)*(b-a)) return np.sqrt(b / a) * np....
28.846626
86
0.594641
1afb40f587069f0b54011ecb6c3d35abc348a52d
42
py
Python
sorbic/__init__.py
s0undt3ch/sorbic
feeb135165044b1f046164bcf9369d5720e5ce5d
[ "Apache-2.0" ]
null
null
null
sorbic/__init__.py
s0undt3ch/sorbic
feeb135165044b1f046164bcf9369d5720e5ce5d
[ "Apache-2.0" ]
null
null
null
sorbic/__init__.py
s0undt3ch/sorbic
feeb135165044b1f046164bcf9369d5720e5ce5d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- version = '0.2.0'
14
23
0.47619
1afb5117ba637677cd1f748d7b2f382ccdc63fce
1,255
py
Python
src/user_utils.py
ZachAndrews98/TerminalGithub
65c06f42ef9d521c0505458e64b5f17a016ae937
[ "MIT" ]
null
null
null
src/user_utils.py
ZachAndrews98/TerminalGithub
65c06f42ef9d521c0505458e64b5f17a016ae937
[ "MIT" ]
null
null
null
src/user_utils.py
ZachAndrews98/TerminalGithub
65c06f42ef9d521c0505458e64b5f17a016ae937
[ "MIT" ]
null
null
null
""" Handles displaying user information. """ from github import GithubException import gen_utils def get_user_info(user): """ Display user information """ print("Name:", user.name) print("Email:", user.email) print("Bio:", user.bio) print("Company:", user.company) print("Organizations:", li...
27.282609
77
0.653386
1afb710ee8ca206725f94e9cb26a841ab2d7275e
433
py
Python
amatino/recursive_balance.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
2
2018-07-20T20:00:33.000Z
2020-10-08T15:49:06.000Z
amatino/recursive_balance.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
1
2020-05-21T02:49:29.000Z
2020-05-21T02:49:29.000Z
amatino/recursive_balance.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
3
2018-09-03T09:31:31.000Z
2020-05-21T05:30:00.000Z
""" Amatino API Python Bindings Recursive Balance Module Author: hugh@blinkybeach.com """ from amatino.internal.immutable import Immutable from amatino.internal.balance_protocol import BalanceProtocol class RecursiveBalance(BalanceProtocol): """ A Recursive Balance represents the sum total value of all Entrie...
25.470588
78
0.766744
1afb968ba6ccfb4669fd43be7e78f494c46b877b
2,061
py
Python
merlin/common/abstracts/enums/__init__.py
ymubarka/merlin
3f1e4318c20ccdcca95dd6044bc0d8727ed9ca8a
[ "MIT" ]
50
2019-11-20T03:14:16.000Z
2022-03-30T07:55:37.000Z
merlin/common/abstracts/enums/__init__.py
ymubarka/merlin
3f1e4318c20ccdcca95dd6044bc0d8727ed9ca8a
[ "MIT" ]
150
2019-11-26T23:31:55.000Z
2022-03-28T21:23:05.000Z
merlin/common/abstracts/enums/__init__.py
ymubarka/merlin
3f1e4318c20ccdcca95dd6044bc0d8727ed9ca8a
[ "MIT" ]
12
2019-11-20T20:48:33.000Z
2021-08-10T15:08:36.000Z
############################################################################### # Copyright (c) 2019, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory # Written by the Merlin dev team, listed in the CONTRIBUTORS file. # <merlin@llnl.gov> # # LLNL-CODE-797170 # All righ...
33.786885
79
0.673459
1afba2145a14d0d53babb6bf27a159f9d2f13290
48,171
py
Python
sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ # pylint:disable=too-many-lines,too-many-public-methods import base64 from functools import partial from azure.core.polling import LROPoller from azure.core.tracing.dec...
46.904576
120
0.674638
1afbb4cb325f378d8277bc7fde137944c8728819
1,289
py
Python
examples/matplotlib/image_show.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
17
2019-10-25T01:33:43.000Z
2022-03-21T03:31:56.000Z
examples/matplotlib/image_show.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
34
2019-10-17T06:52:30.000Z
2022-01-19T12:45:43.000Z
examples/matplotlib/image_show.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
4
2019-11-29T09:19:38.000Z
2021-10-13T03:12:25.000Z
#!/usr/bin/python # -*- encoding: utf-8 -*- # part of https://github.com/WolfgangFahl/play-chess-with-a-webcam # see https://stackoverflow.com/questions/43372792/matplotlib-opencv-image-subplot import matplotlib.pyplot as plt import sys import cv2 def main(argv): # get the square chessbord file as an example d...
26.854167
82
0.644686
1afbc9c2df06ae36c6ab2d1e4d09ae4d112037f8
33,810
py
Python
ml_utils/models/gp.py
rubinxin/asynchronous-BO
fcfe8938e83fc7d925268ff21e1cfb52903ee752
[ "MIT" ]
null
null
null
ml_utils/models/gp.py
rubinxin/asynchronous-BO
fcfe8938e83fc7d925268ff21e1cfb52903ee752
[ "MIT" ]
null
null
null
ml_utils/models/gp.py
rubinxin/asynchronous-BO
fcfe8938e83fc7d925268ff21e1cfb52903ee752
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This module contains the basic Gaussian process class. This class is used as a standard GP model but also as a base for the specific noisy-input GP models in nigp.py and randfuncgp.py. """ import sys from pprint import pprint from typing import Union, Tuple, List, Optional import GPy imp...
31.686973
79
0.52449
1afbd9968c8d92fcb5bab87dbbba012f78e6bbd5
17,718
py
Python
test/api/test_region.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
test/api/test_region.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
test/api/test_region.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
import os import uuid import random import unittest from langcodes import Language from spaceone.core import config from spaceone.core import pygrpc from spaceone.core import utils from spaceone.core.unittest.runner import RichTestRunner from google.protobuf.json_format import MessageToDict def random_string(): r...
31.193662
113
0.550175
1afbd9c05103bfa580a30dce00bdd3399ea3464d
4,702
py
Python
sdk/eventhub/azure-eventhubs/tests/test_longrunning_receive.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/eventhub/azure-eventhubs/tests/test_longrunning_receive.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/eventhub/azure-eventhubs/tests/test_longrunning_receive.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
35.353383
101
0.597618
1afbe13260efe7608a25f866f0d887e4830f05a6
289
py
Python
pythonapi/restapi/urls.py
lavaraja/python-api
071d31980508fbc18c6b6efed8e599bdfcfb969a
[ "BSD-3-Clause" ]
null
null
null
pythonapi/restapi/urls.py
lavaraja/python-api
071d31980508fbc18c6b6efed8e599bdfcfb969a
[ "BSD-3-Clause" ]
8
2019-12-04T23:34:21.000Z
2021-06-10T18:21:40.000Z
pythonapi/restapi/urls.py
lavaraja/python-api
071d31980508fbc18c6b6efed8e599bdfcfb969a
[ "BSD-3-Clause" ]
null
null
null
from rest_framework import routers,serializers,viewsets from django.urls import path from django.urls import include from . import views urlpatterns = [ path('external-books',views.getBooks), path('v1/books', views.book_list), path('v1/books/<int:pk>/', views.book_detail), ]
26.272727
55
0.740484
1afbe5d4641d91d3b20f2de7a6928d5bd85b8c0d
5,286
py
Python
demisto_sdk/commands/common/tests/old_release_notes_test.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/tests/old_release_notes_test.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/tests/old_release_notes_test.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
import pytest from demisto_sdk.commands.common.hook_validations.old_release_notes import \ OldReleaseNotesValidator def get_validator(file_path='', diff=''): release_notes_validator = OldReleaseNotesValidator("") release_notes_validator.file_path = file_path release_notes_validator.release_notes_path ...
56.234043
119
0.513621
1afc18ef0c5d7e5d42f3c500ba8d2c035725546c
108
py
Python
python/__init__.py
eladnoor/sloppy
c2434461f9c445fd54648bee358898a103297629
[ "MIT" ]
null
null
null
python/__init__.py
eladnoor/sloppy
c2434461f9c445fd54648bee358898a103297629
[ "MIT" ]
null
null
null
python/__init__.py
eladnoor/sloppy
c2434461f9c445fd54648bee358898a103297629
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Sep 6 14:13:56 2017 @author: noore """
12
35
0.583333
1afca1981e6161b348582b416c3b6903c8920738
7,620
py
Python
src/RandomForestKernel.py
marcdmc/RF-kernel
080c52cc4cf37dff11a86bf7303edc37bec7ed3b
[ "MIT" ]
null
null
null
src/RandomForestKernel.py
marcdmc/RF-kernel
080c52cc4cf37dff11a86bf7303edc37bec7ed3b
[ "MIT" ]
null
null
null
src/RandomForestKernel.py
marcdmc/RF-kernel
080c52cc4cf37dff11a86bf7303edc37bec7ed3b
[ "MIT" ]
null
null
null
import ray import numpy as np import pandas as pd import matplotlib.pyplot as plt import random import os import ray from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split from sklearn.metrics import confusion_matrix import time @ray.remote def groupingsToTrainMatrix(g...
34.324324
145
0.580971
1afca9e8de93a2dbb5a915c69603e8f5c17ca859
1,830
py
Python
chef_validator/api/middleware/ssl.py
ging/fi-ware-chef_validator
eaeb72801f3f2dba7f933740b033687dcb02e5c8
[ "Apache-2.0" ]
1
2015-08-27T08:49:28.000Z
2015-08-27T08:49:28.000Z
chef_validator/api/middleware/ssl.py
ging/fiware-chef_validator
eaeb72801f3f2dba7f933740b033687dcb02e5c8
[ "Apache-2.0" ]
null
null
null
chef_validator/api/middleware/ssl.py
ging/fiware-chef_validator
eaeb72801f3f2dba7f933740b033687dcb02e5c8
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under...
35.882353
79
0.714754
1afcad19e690367c4eb70df7fa7e6b57ac0ee820
6,943
py
Python
test/serde/msgpack/test_msgpack_serde_full.py
ivynasantino/PySyft
2efacddc5053c61dff9f05658207be228a90e872
[ "Apache-2.0" ]
1
2020-04-11T06:46:49.000Z
2020-04-11T06:46:49.000Z
test/serde/msgpack/test_msgpack_serde_full.py
haofanwang/PySyft
653d31001dbc0c611d486c6c5543fce0abf9b27d
[ "Apache-2.0" ]
1
2020-04-07T13:36:44.000Z
2020-04-07T13:36:44.000Z
test/serde/msgpack/test_msgpack_serde_full.py
JMBehnken/PySyft
35012f5bf55628bb19761d5f40d03181fbbb1766
[ "Apache-2.0" ]
1
2020-03-11T09:52:47.000Z
2020-03-11T09:52:47.000Z
from collections import OrderedDict import pytest import numpy import torch from functools import partial import traceback import io import syft from syft.serde import msgpack from test.serde.serde_helpers import * # Dictionary containing test samples functions samples = OrderedDict() # Native samples[float] = make_...
41.825301
97
0.77128
1afce246525bb538b7653ca4d4514d55577c177a
527
py
Python
auditlog/migrations/0009_timestamp_id_index.py
stephanpoetschner/django-auditlog
bf93089a2b21eaa77eddbe25f770f5ad211f3abf
[ "MIT" ]
null
null
null
auditlog/migrations/0009_timestamp_id_index.py
stephanpoetschner/django-auditlog
bf93089a2b21eaa77eddbe25f770f5ad211f3abf
[ "MIT" ]
null
null
null
auditlog/migrations/0009_timestamp_id_index.py
stephanpoetschner/django-auditlog
bf93089a2b21eaa77eddbe25f770f5ad211f3abf
[ "MIT" ]
1
2021-09-07T13:29:55.000Z
2021-09-07T13:29:55.000Z
# -*- coding: utf-8 -*- from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("auditlog", "0008_timestamp_index"), ] operations = [ migrations.AlterIndexTogether( name="logentry", index_together={("timestamp", "id")}, ...
23.954545
84
0.57685
1afd183dd3aa93c4f30a8a42c01bc1886db5248f
3,324
py
Python
software/python/led_pwm_tlc5947/led_pwm_tlc5947/led_pwm_tlc5947.py
willdickson/led_pwm_tlc5947
9943ae76af0a33366509763917969d2da2bb60ce
[ "MIT" ]
null
null
null
software/python/led_pwm_tlc5947/led_pwm_tlc5947/led_pwm_tlc5947.py
willdickson/led_pwm_tlc5947
9943ae76af0a33366509763917969d2da2bb60ce
[ "MIT" ]
null
null
null
software/python/led_pwm_tlc5947/led_pwm_tlc5947/led_pwm_tlc5947.py
willdickson/led_pwm_tlc5947
9943ae76af0a33366509763917969d2da2bb60ce
[ "MIT" ]
null
null
null
""" ================ led_pwm_tlc5947 ================ This module implements the serial interface to the led_pwm_tlc5947 firmware which provides and interface to the 24-channel 16-bit TLC5947 LED PWM controller. :copyright: (c) 2019 Will Dickson :license: MIT, see LICENSE.txt for more details. """ f...
25.96875
102
0.59657
1afd4a8b8558a631c7f28078de2f51da939ff055
1,900
py
Python
cnn2d/skp/factory/train/onecycle.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
48
2020-06-12T15:46:14.000Z
2022-03-19T16:02:05.000Z
cnn2d/skp/factory/train/onecycle.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
2
2020-11-11T10:40:49.000Z
2020-11-16T02:07:23.000Z
cnn2d/skp/factory/train/onecycle.py
jphdotam/DFDC
b08c31781406e303394642c2af1ab59222115683
[ "MIT" ]
17
2020-06-13T12:25:42.000Z
2021-11-22T14:49:26.000Z
from torch.optim.lr_scheduler import OneCycleLR class CustomOneCycleLR(OneCycleLR): ''' This implements a 2-phase one cycle learning rate policy that fast.ai says improves performance. Phase 1: Increase LR linearly from initial to max Phase 2: Decrease LR using cosine annealing from max to 0 ...
44.186047
120
0.567895
1afd99e41c5624c4f8fab37ecd1cc522d8b6cd65
2,905
py
Python
examples/class_based_api/chapter_3.py
halvgaard/zenml
7f9a3be90c7e0a94927b599939b5b9c1bc741b0b
[ "Apache-2.0" ]
1
2022-03-11T10:15:22.000Z
2022-03-11T10:15:22.000Z
examples/class_based_api/chapter_3.py
halvgaard/zenml
7f9a3be90c7e0a94927b599939b5b9c1bc741b0b
[ "Apache-2.0" ]
null
null
null
examples/class_based_api/chapter_3.py
halvgaard/zenml
7f9a3be90c7e0a94927b599939b5b9c1bc741b0b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) ZenML GmbH 2021. 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: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
30.904255
78
0.762823
1afda8ba7b8c165a8e2cf27b72e5e03010710c99
99
py
Python
handle_data_functions/garmin_lidar_lite_v3HP.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
2
2021-04-03T13:19:32.000Z
2022-01-03T00:38:55.000Z
handle_data_functions/garmin_lidar_lite_v3HP.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
handle_data_functions/garmin_lidar_lite_v3HP.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
def handle_data(data): reading = data[0] << 8 | data[1] return ustruct.pack("<H", reading)
24.75
38
0.616162
1afdbe79bf7a97c64f82a0b7fe8b3f959b178837
82
py
Python
conftest.py
yougov/vr.common
8b0312481185d0c195e33665df1165a8de7ee3e8
[ "MIT" ]
null
null
null
conftest.py
yougov/vr.common
8b0312481185d0c195e33665df1165a8de7ee3e8
[ "MIT" ]
4
2017-04-02T13:28:36.000Z
2019-03-01T14:32:54.000Z
conftest.py
yougov/vr.common
8b0312481185d0c195e33665df1165a8de7ee3e8
[ "MIT" ]
2
2018-05-08T16:14:21.000Z
2022-03-26T07:43:50.000Z
import django.conf def pytest_configure(): django.conf.settings.configure()
13.666667
36
0.756098
1afdc8478e70218c7afc50be5772e02236d0adc7
10,003
py
Python
securitySystem/application.py
1Epoch/Face-Recognition
a6d9b08965ec2b648e7caa2686f112f58b43c718
[ "MIT" ]
null
null
null
securitySystem/application.py
1Epoch/Face-Recognition
a6d9b08965ec2b648e7caa2686f112f58b43c718
[ "MIT" ]
null
null
null
securitySystem/application.py
1Epoch/Face-Recognition
a6d9b08965ec2b648e7caa2686f112f58b43c718
[ "MIT" ]
1
2018-12-20T18:38:25.000Z
2018-12-20T18:38:25.000Z
# USAGE # python3 application.py --prototxt deploy.prototxt.txt --model res10_300x300_ssd_iter_140000.caffemodel # import the necessary packages import os import time os.environ['CUDA_VISIBLE_DEVICES'] = '-1' print ("Time Taken to Load Libraries") start_time = time.time() from keras.models import Sequential from ker...
43.116379
123
0.643407
1afddbf97e46c28ee526a631960ea35008a74737
12,151
py
Python
tests/test_forms.py
fdevillard/rasa_core
0d0c2f9d6bb3c0c5b0c1e83dab2d9d8b6819303d
[ "Apache-2.0" ]
1
2019-02-22T11:26:18.000Z
2019-02-22T11:26:18.000Z
tests/test_forms.py
fdevillard/rasa_core
0d0c2f9d6bb3c0c5b0c1e83dab2d9d8b6819303d
[ "Apache-2.0" ]
null
null
null
tests/test_forms.py
fdevillard/rasa_core
0d0c2f9d6bb3c0c5b0c1e83dab2d9d8b6819303d
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from rasa_core.events import ( ActionExecuted, BotUttered, SlotSet, UserUttered ) from rasa_core.actions.forms import ( BooleanFormField, EntityFo...
32.840541
73
0.676734
1afe1a2f088a5c26ed2f88c6bc8e94b2855b3d99
213
py
Python
boo/test/test_dir.py
AirVetra/boo
bb8404c48a6f17402a98a88454fdd876184c35c1
[ "MIT" ]
1
2019-12-06T21:13:22.000Z
2019-12-06T21:13:22.000Z
boo/test/test_dir.py
AirVetra/boo
bb8404c48a6f17402a98a88454fdd876184c35c1
[ "MIT" ]
null
null
null
boo/test/test_dir.py
AirVetra/boo
bb8404c48a6f17402a98a88454fdd876184c35c1
[ "MIT" ]
null
null
null
import pytest from pathlib import Path @pytest.fixture def tempdir(tmpdir): return Path(tmpdir) def test_dir(tempdir): assert tempdir.exists() if __name__ == "__main__": pytest.main([__file__])
12.529412
27
0.70892
1afe30e199abe52368905e98cfafa5f0e4d01464
21,326
py
Python
sabnzbd/osxmenu.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
2
2022-01-04T18:26:12.000Z
2022-01-04T18:26:13.000Z
sabnzbd/osxmenu.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
19
2022-02-08T12:23:06.000Z
2022-03-27T00:21:00.000Z
sabnzbd/osxmenu.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
null
null
null
#!/usr/bin/python3 -OO # Copyright 2007-2021 The SABnzbd-Team <team@sabnzbd.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any late...
40.698473
120
0.60724
1afe7c4e9735d226b0e491a260c30bc738cde293
615
py
Python
setup.py
cooperra/humblebundle-python
2fa5a3451537f5e2a76a16c0f3ea5d1e1f6d1c0d
[ "MIT" ]
61
2015-01-08T20:35:45.000Z
2022-01-24T01:07:35.000Z
setup.py
cooperra/humblebundle-python
2fa5a3451537f5e2a76a16c0f3ea5d1e1f6d1c0d
[ "MIT" ]
10
2015-01-16T08:21:18.000Z
2020-04-06T11:54:11.000Z
setup.py
cooperra/humblebundle-python
2fa5a3451537f5e2a76a16c0f3ea5d1e1f6d1c0d
[ "MIT" ]
19
2015-01-02T07:19:27.000Z
2021-05-29T16:44:56.000Z
#!/usr/bin/env python __author__ = "Joel Pedraza" __copyright__ = "Copyright 2014, Joel Pedraza" __license__ = "MIT" try: from setuptools import setup except ImportError: from distutils.core import setup setup(name='humblebundle', version='0.1.1', description='Humble Indie Bundle API client', ...
27.954545
80
0.684553
1afe895919aecb990427f7d2aef86ff3e83afe4e
3,535
py
Python
deepsim_btree/deepsim_btree/composites/selector.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
1
2022-03-25T07:20:49.000Z
2022-03-25T07:20:49.000Z
deepsim_btree/deepsim_btree/composites/selector.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
deepsim_btree/deepsim_btree/composites/selector.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
################################################################################# # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). ...
40.632184
81
0.509477
1afe9723742f7dbc72b2895cc0da8d2fa3f83b5f
27,018
py
Python
testrepository/testcommand.py
astitva3107/testrepository
76a5b9b1b8269c1c5ddcd11bdbfeb8eefa28c687
[ "Apache-2.0" ]
14
2015-03-31T16:30:51.000Z
2022-01-06T02:54:42.000Z
testrepository/testcommand.py
astitva3107/testrepository
76a5b9b1b8269c1c5ddcd11bdbfeb8eefa28c687
[ "Apache-2.0" ]
32
2015-01-14T01:46:29.000Z
2021-12-27T00:01:14.000Z
testrepository/testcommand.py
astitva3107/testrepository
76a5b9b1b8269c1c5ddcd11bdbfeb8eefa28c687
[ "Apache-2.0" ]
35
2015-03-04T04:33:01.000Z
2022-02-22T04:31:24.000Z
# # Copyright (c) 2010 Testrepository Contributors # # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause # license at the users choice. A copy of both licenses are available in the # project source as Apache-2.0 and BSD. You may not use this file except in # compliance with one of these two lic...
42.347962
112
0.622992
1afeab9342fbfad06d4b8e4c6bd825ce257812f1
61,897
py
Python
pyBumpHunter/bumphunter_1dim.py
jmduarte/pyBumpHunter
06e8795ff041ce4158fd513f9fd1cf4015816565
[ "BSD-3-Clause" ]
null
null
null
pyBumpHunter/bumphunter_1dim.py
jmduarte/pyBumpHunter
06e8795ff041ce4158fd513f9fd1cf4015816565
[ "BSD-3-Clause" ]
null
null
null
pyBumpHunter/bumphunter_1dim.py
jmduarte/pyBumpHunter
06e8795ff041ce4158fd513f9fd1cf4015816565
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Python version of the BupHunter algorithm as described in https://arxiv.org/pdf/1101.0390.pdf""" import concurrent.futures as thd from abc import ABCMeta, abstractmethod import matplotlib.pyplot as plt import numpy as np from matplotlib import gridspec as grd from scipy.special import gammain...
38.637328
193
0.571708
1afee15b51a050e92f1e4d608de790b37fc3ae89
9,718
py
Python
metadata-ingestion/src/datahub/ingestion/source/sql/trino.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
289
2022-03-16T00:30:15.000Z
2022-03-31T23:16:21.000Z
metadata-ingestion/src/datahub/ingestion/source/sql/trino.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
155
2022-03-15T19:43:07.000Z
2022-03-31T20:33:41.000Z
metadata-ingestion/src/datahub/ingestion/source/sql/trino.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
46
2022-03-15T19:08:32.000Z
2022-03-31T17:56:26.000Z
import json import uuid from textwrap import dedent from typing import Any, Dict, List import sqlalchemy # This import verifies that the dependencies are available. import trino.sqlalchemy # noqa: F401 from pydantic.fields import Field from sqlalchemy import exc, sql from sqlalchemy.engine import reflection from sql...
32.178808
99
0.637374
1afef62bd97dfe09d22448fbd8a17f4af45ed695
699
py
Python
terrascript/guacamole/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/guacamole/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/guacamole/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/guacamole/d.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class guacamole_connection_group(terrascript.Data): pass class guacamole_connection_kubernetes(terr...
16.642857
79
0.783977
1aff22ca8c901a980916d7fa83b06f9dd95cc73e
994
py
Python
sdks/python/test/test_ReleaseProvisionResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_ReleaseProvisionResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_ReleaseProvisionResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
24.85
107
0.738431
1aff2f2a2daa3b24c97c9573499d7e2c8ddf4b6c
4,767
py
Python
sdks/python/appcenter_sdk/models/EventPropertyValue.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/EventPropertyValue.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/EventPropertyValue.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class EventPropertyV...
28.54491
91
0.581708
1aff77deebe4cc2b4695485e348fdac3db383fa7
21,249
py
Python
kivy/config.py
Abestanis/kivy
a3dc9211830eb932421cdd2223e7cc7da3891211
[ "MIT" ]
null
null
null
kivy/config.py
Abestanis/kivy
a3dc9211830eb932421cdd2223e7cc7da3891211
[ "MIT" ]
null
null
null
kivy/config.py
Abestanis/kivy
a3dc9211830eb932421cdd2223e7cc7da3891211
[ "MIT" ]
null
null
null
''' Configuration object ==================== The :class:`Config` object is an instance of a modified Python ConfigParser. See the `ConfigParser documentation <http://docs.python.org/library/configparser.html>`_ for more information. Kivy has a configuration file which determines the default settings. In order to cha...
38.355596
79
0.629865
1aff7b9b842054d88135b2b0808a507303b6ab2d
89
py
Python
setup.py
jutanke/junn
27c17dc8249c6be9a79b4fa9e819c36022f025b0
[ "MIT" ]
1
2020-05-30T22:38:45.000Z
2020-05-30T22:38:45.000Z
setup.py
jutanke/junn
27c17dc8249c6be9a79b4fa9e819c36022f025b0
[ "MIT" ]
null
null
null
setup.py
jutanke/junn
27c17dc8249c6be9a79b4fa9e819c36022f025b0
[ "MIT" ]
null
null
null
from distutils.core import setup setup(name="junn", version="2.0.3", packages=["junn"])
22.25
54
0.707865
1aff923f60d890eb8969a86511a26dce1a3e05b2
268
py
Python
bit-manipulation/0050-powx-n(2、循环,把指数看成 2 进制).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-01-10T17:03:21.000Z
2021-01-10T17:03:21.000Z
bit-manipulation/0050-powx-n(2、循环,把指数看成 2 进制).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
null
null
null
bit-manipulation/0050-powx-n(2、循环,把指数看成 2 进制).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-07-25T07:53:14.000Z
2021-07-25T07:53:14.000Z
class Solution: def myPow(self, x: float, n: int) -> float: if n < 0: x = 1 / x n = - n res = 1 while n: if n & 1 == 1: res *= x x *= x n >>= 1 return res
19.142857
47
0.302239
1affa9b92f84f45f0c0e41789a7b9e8465bdd68d
2,702
py
Python
quick-add/quick-add.py
anuragbanerjee/handy-dandy
188e8ec26f131378f688867390d5bf4555b057de
[ "MIT" ]
1
2016-10-27T17:30:32.000Z
2016-10-27T17:30:32.000Z
quick-add/quick-add.py
anuragbanerjee/handy_dandy
188e8ec26f131378f688867390d5bf4555b057de
[ "MIT" ]
null
null
null
quick-add/quick-add.py
anuragbanerjee/handy_dandy
188e8ec26f131378f688867390d5bf4555b057de
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Quick Add Created by Anurag Banerjee. Copyright 2016. All rights reserved. You may need to get your client_secret.json from console.developers.google.com. USAGE `python quick-add.py -q <EVENT DETAILS>` -q <EVENT DETAILS>: sets the Quick Add message/query to send to Google Calendar ''' fro...
29.369565
121
0.69134
1affed029564fa7607e906273413e669391290d5
8,565
py
Python
docs/conf.py
harmannkibue/Flask-Security-Patch
5a0d4443fda88dfa95428ac640939244dfacd223
[ "MIT" ]
2
2021-02-28T15:26:17.000Z
2021-03-01T13:30:25.000Z
docs/conf.py
harmannkibue/Flask-Security-Patch
5a0d4443fda88dfa95428ac640939244dfacd223
[ "MIT" ]
null
null
null
docs/conf.py
harmannkibue/Flask-Security-Patch
5a0d4443fda88dfa95428ac640939244dfacd223
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Flask-Security documentation build configuration file, created by # sphinx-quickstart on Mon Mar 12 15:35:21 2012. # # This file is execfile()d with the current directory set to its containing # dir. # # Note that not all possible configuration values are present in this # autogenerated file...
31.605166
86
0.696789
1afff3c020437f561516864afb5102016025aa60
9,870
py
Python
src/buvar/di/__init__.py
diefans/buvar
5c47cef0a1a9792d6b2aee0d32f724f83834715c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-02-28T22:59:19.000Z
2020-02-28T22:59:19.000Z
src/buvar/di/__init__.py
diefans/buvar
5c47cef0a1a9792d6b2aee0d32f724f83834715c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
src/buvar/di/__init__.py
diefans/buvar
5c47cef0a1a9792d6b2aee0d32f724f83834715c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
"""Dependency injection. Register a class, function or method to adapt arguments into something else. >>> class Bar: ... pass >>> class Foo: ... def __init__(self, bar: Bar): ... self.bar = bar ... @classmethod ... def adapt(cls, bar: Bar) -> 'Foo': ... return cls(bar) >>> def adapt(...
30.369231
88
0.611955
210038db0172d64ad6bbd476ec8a84e0a3396b58
2,309
py
Python
dl_data_validation_toolset/framework/report/file.py
kwierman/dl_data_validation_toolset
fb0486abd000ba28c6474f8979762c92fb4ee038
[ "MIT" ]
1
2017-08-24T00:46:47.000Z
2017-08-24T00:46:47.000Z
dl_data_validation_toolset/framework/report/file.py
kwierman/dl_data_validation_toolset
fb0486abd000ba28c6474f8979762c92fb4ee038
[ "MIT" ]
177
2017-04-10T23:03:27.000Z
2022-03-28T22:07:54.000Z
dl_data_validation_toolset/framework/report/file.py
HEP-DL/dl_data_validation_toolset
fb0486abd000ba28c6474f8979762c92fb4ee038
[ "MIT" ]
null
null
null
import os import logging from .base import BaseReport import numpy as np import h5py from scipy.stats import threshold from scipy.misc import imsave class FileReport(BaseReport): logger = logging.getLogger("ddvt.rep.file") def __init__(self, file, temp_dir): self.file = file # all files are valid until p...
32.069444
77
0.556085
21003fd7c27de3ced76a3f477df67df845c3b0d4
5,122
py
Python
plugins/holland.backup.mysqldump/holland/backup/mysqldump/base.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysqldump/holland/backup/mysqldump/base.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysqldump/holland/backup/mysqldump/base.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
"""Main driver""" import errno import logging import json from holland.core.backup import BackupError from holland.lib.safefilename import encode from holland.backup.mysqldump.command import ALL_DATABASES LOG = logging.getLogger(__name__) def start( mysqldump, schema=None, lock_method="auto-detect", ...
34.608108
100
0.597618
21005718f162f8010855efcbcda04705aa7dd197
6,575
py
Python
PythonProjects/99-CapstoneProject-202020b_SOLUTION/labs/lab2_arm_and_claw.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020b_SOLUTION/labs/lab2_arm_and_claw.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020b_SOLUTION/labs/lab2_arm_and_claw.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" Capstone Team Project. Code to run on a ROBOT (NOT a laptop). This module is for testing STAND-ALONE code running on the ROBOT (WITHOUT having LAPTOP GUI code running on the LAPTOP at the same time). Authors: Your professors (for the framework) and PUT_YOUR_NAME_HERE. Winter term, 2019-2020. """ # TODO: 1. ...
40.58642
98
0.474525
21005de6e471079cd1e9b4c12fe6b2c62b2a3555
8,513
py
Python
code/util/err_extract.py
SQLPATCH/SQLPatch
b54e572d1944ecbf01cff9b1fc8db50ba8463470
[ "Apache-2.0" ]
null
null
null
code/util/err_extract.py
SQLPATCH/SQLPatch
b54e572d1944ecbf01cff9b1fc8db50ba8463470
[ "Apache-2.0" ]
null
null
null
code/util/err_extract.py
SQLPATCH/SQLPatch
b54e572d1944ecbf01cff9b1fc8db50ba8463470
[ "Apache-2.0" ]
null
null
null
''' Description: Extract and process vulnerability reports LastEditTime: 2021-12-12 15:14:14 ''' import json import pandas as pd from pandas import DataFrame import re import os from util.frontend import print_to_log def single_version_extract(jsonpath, txtpath, output_path, name): ''' description: Handle vu...
29.975352
106
0.583461
21005f9028226cb99c4a80845f624c2b1ec9f701
7,302
py
Python
hcm.py
cenkcorapci/visual-fashion-item-search
47b93f97383c1b7f9ec23bb4ff66f90504db3da8
[ "MIT" ]
1
2021-02-22T00:35:40.000Z
2021-02-22T00:35:40.000Z
hcm.py
cenkcorapci/visual-fashion-item-search
47b93f97383c1b7f9ec23bb4ff66f90504db3da8
[ "MIT" ]
null
null
null
hcm.py
cenkcorapci/visual-fashion-item-search
47b93f97383c1b7f9ec23bb4ff66f90504db3da8
[ "MIT" ]
1
2021-08-30T10:24:16.000Z
2021-08-30T10:24:16.000Z
import logging import random import pandas as pd import pytorch_metric_learning.utils.logging_presets as logging_presets import torch import torch.nn as nn from pytorch_metric_learning import losses, miners, samplers, trainers, testers from torchvision import models, transforms from commons.config import LOGS_PATH fr...
41.254237
115
0.673788
210095c30bd3cdf7832748bd55009affb6ce2d86
23,962
py
Python
graphtik/pipeline.py
ankostis/graphkit
9b72592b51571952802d865b162b5fbbd2dc460e
[ "Apache-2.0" ]
1
2021-03-23T15:23:06.000Z
2021-03-23T15:23:06.000Z
graphtik/pipeline.py
ankostis/graphtik
9b72592b51571952802d865b162b5fbbd2dc460e
[ "Apache-2.0" ]
null
null
null
graphtik/pipeline.py
ankostis/graphtik
9b72592b51571952802d865b162b5fbbd2dc460e
[ "Apache-2.0" ]
1
2019-10-29T18:40:02.000Z
2019-10-29T18:40:02.000Z
# Copyright 2016, Yahoo Inc. # Licensed under the terms of the Apache License, Version 2.0. See the LICENSE file associated with the project for terms. """ :term:`compose` :term:`pipeline`\\s by :term:`combining <combine pipelines>` operations into :term:`network`. .. note:: This module (along with :mod:`.op` & :m...
34.428161
122
0.567941
2100b23ea2ebe95a9d519a372b5529d4c224a836
18,258
py
Python
wandb/sdk/internal/tb_watcher.py
davebulaval/client
1da907af1d35cdbd2cfd9eb9aa0ebac3e95bf363
[ "MIT" ]
null
null
null
wandb/sdk/internal/tb_watcher.py
davebulaval/client
1da907af1d35cdbd2cfd9eb9aa0ebac3e95bf363
[ "MIT" ]
null
null
null
wandb/sdk/internal/tb_watcher.py
davebulaval/client
1da907af1d35cdbd2cfd9eb9aa0ebac3e95bf363
[ "MIT" ]
null
null
null
# """ tensor b watcher. """ import glob import logging import os import socket import sys import threading import time from typing import TYPE_CHECKING import six from six.moves import queue import wandb from wandb import util from wandb.viz import custom_chart_panel_config, CustomChart from . import run as internal...
36.370518
147
0.601983
2100b2b039c7f12d6233c2592dfb0971b754a650
2,193
py
Python
app/api/v1/schema/__init__.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
6
2018-11-07T12:41:30.000Z
2020-04-12T18:07:03.000Z
app/api/v1/schema/__init__.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
1
2020-10-20T12:33:18.000Z
2020-10-20T12:33:18.000Z
app/api/v1/schema/__init__.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
10
2018-11-12T06:15:19.000Z
2021-11-18T05:45:12.000Z
""" Python module. Copyright (c) 2018-2020 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: Redistributions of source ...
137.0625
844
0.80757
2100d6468ce764e3aacf4b767eb9e583fdbe5d5e
345
py
Python
airdashladder/airdashladder/routing.py
prki/airdash-ladder
87de9e1176bf792a0f2101bf2a5ad5b2e4a86ec2
[ "MIT" ]
null
null
null
airdashladder/airdashladder/routing.py
prki/airdash-ladder
87de9e1176bf792a0f2101bf2a5ad5b2e4a86ec2
[ "MIT" ]
null
null
null
airdashladder/airdashladder/routing.py
prki/airdash-ladder
87de9e1176bf792a0f2101bf2a5ad5b2e4a86ec2
[ "MIT" ]
null
null
null
from channels.auth import AuthMiddlewareStack from channels.routing import ProtocolTypeRouter, URLRouter import matchmaking.routing application = ProtocolTypeRouter({ # (http->django views is added by default) 'websocket': AuthMiddlewareStack( URLRouter( matchmaking.routing.websocket_urlpa...
26.538462
58
0.733333
2100d960fd63f5bb08dff22fb7c6593375e50e40
11,930
py
Python
oscar/lib/python2.7/site-packages/django/dispatch/dispatcher.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/dispatch/dispatcher.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/dispatch/dispatcher.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
import sys import threading import warnings import weakref from django.utils import six from django.utils.deprecation import RemovedInDjango20Warning from django.utils.inspect import func_accepts_kwargs from django.utils.six.moves import range if six.PY2: from .weakref_backports import WeakMethod else...
37.515723
113
0.583403
2100ffdec370fd4a10c9e239f352e5e3ae6757a9
3,238
py
Python
docs/source/_static/zzz_GENERATED_NOTEBOOK_SOURCE/etl/lift-over.py
heuermh/glow
4a414c62a28fddce6f4428ecdb746a2a58251fc1
[ "Apache-2.0" ]
null
null
null
docs/source/_static/zzz_GENERATED_NOTEBOOK_SOURCE/etl/lift-over.py
heuermh/glow
4a414c62a28fddce6f4428ecdb746a2a58251fc1
[ "Apache-2.0" ]
null
null
null
docs/source/_static/zzz_GENERATED_NOTEBOOK_SOURCE/etl/lift-over.py
heuermh/glow
4a414c62a28fddce6f4428ecdb746a2a58251fc1
[ "Apache-2.0" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC # MAGIC To perform coordinate or variant liftover, you must download a chain file to each node. # MAGIC # MAGIC On a Databricks cluster, an example of a [cluster-scoped init script](https://docs.azuredatabricks.net/clusters/init-scripts.html#cluster-scoped-init-script...
39.975309
223
0.740889
2101483419b5dfb7dabccf87913cf6fd20c5d11e
513
py
Python
CodeChef/JULY20/ADAKING.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
CodeChef/JULY20/ADAKING.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
CodeChef/JULY20/ADAKING.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
if __name__ == '__main__': for t in range(int(input())): k = int(input()) count = 64 - k flag = True for i in range(8): for i in range(8): if count > 0: print('X', end = "") count -= 1 elif flag: ...
22.304348
40
0.296296
21015ce7324d44f7fa3fd205517e5c60188cfa1f
2,974
py
Python
src/python/pants/backend/graph_info/tasks/listtargets.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/graph_info/tasks/listtargets.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/graph_info/tasks/listtargets.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals from pants.base.exceptions import TaskError from pants.task.console_task import ConsoleTa...
39.653333
100
0.682582
210169d6bbdc5f38e3d919e20acff75d2d277bcb
721
py
Python
tests/utils_test.py
martinghunt/simutator
0218c8a5b37fd72eb4e5b2df4cba9f6118f96788
[ "MIT" ]
7
2020-01-09T15:25:17.000Z
2021-08-05T15:58:25.000Z
tests/utils_test.py
martinghunt/simutator
0218c8a5b37fd72eb4e5b2df4cba9f6118f96788
[ "MIT" ]
null
null
null
tests/utils_test.py
martinghunt/simutator
0218c8a5b37fd72eb4e5b2df4cba9f6118f96788
[ "MIT" ]
1
2020-01-09T13:10:02.000Z
2020-01-09T13:10:02.000Z
import os import pytest from simutator import utils modules_dir = os.path.dirname(os.path.abspath(utils.__file__)) data_dir = os.path.join(modules_dir, "tests", "data", "utils") def test_syscall_get_stdout(): """test syscall with no error""" got = utils.syscall("echo testing 123") assert got.stdout == "t...
26.703704
62
0.690707
21016b5b392fe3034ed66689dc730c97e53b5f76
3,175
py
Python
torchio/transforms/augmentation/random_transform.py
thomaskuestner/torchio
667b8f8bb697af17b591ca7c33b24e56bc1dd018
[ "MIT" ]
1
2021-05-18T09:36:35.000Z
2021-05-18T09:36:35.000Z
torchio/transforms/augmentation/random_transform.py
thomaskuestner/torchio
667b8f8bb697af17b591ca7c33b24e56bc1dd018
[ "MIT" ]
null
null
null
torchio/transforms/augmentation/random_transform.py
thomaskuestner/torchio
667b8f8bb697af17b591ca7c33b24e56bc1dd018
[ "MIT" ]
1
2022-01-12T06:41:26.000Z
2022-01-12T06:41:26.000Z
""" This is the docstring of random transform module """ import numbers from typing import Optional, Tuple, Union import torch import numpy as np from ...data.subject import Subject from ... import TypeNumber, TypeRangeFloat from .. import Transform class RandomTransform(Transform): """Base class for stochasti...
31.127451
77
0.576063
2101a4969e2e03fb9f4f5c875de1fe02b4b7c0dc
2,657
py
Python
city_scrapers/spiders/det_land_bank.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
city_scrapers/spiders/det_land_bank.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
city_scrapers/spiders/det_land_bank.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from city_scrapers.spider import Spider import json from dateutil.parser import parse as dateparse class DetLandBankSpider(Spider): name = 'det_land_bank' agency_id = 'Detroit Land Bank Authority' timezone = 'America/Detroit' allowed_domains = ['buildingdetroit.or...
33.632911
153
0.547986
2101af133b1ad60d5ca15422f53f8416999ad4f0
18,283
py
Python
tastypie/serializers.py
pexip/os-django-tastypie
f67d6e9e3b1667a2469bf6476d1948cbf2b52141
[ "BSD-3-Clause" ]
null
null
null
tastypie/serializers.py
pexip/os-django-tastypie
f67d6e9e3b1667a2469bf6476d1948cbf2b52141
[ "BSD-3-Clause" ]
5
2015-12-01T17:39:25.000Z
2017-07-13T06:27:15.000Z
tastypie/serializers.py
RevelSystems/django-tastypie
931617785b5bfda9fdbcc99e3fdba611f72dca77
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import datetime import json import re from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils import six from django.utils.encoding import force_text, smart_bytes from django.core.serializers import json as djangojson from tas...
33.546789
186
0.6028
2101c9033b6e372fb7138671c31c5c21d022c69a
3,203
py
Python
setup.py
Ark-kun/python-aiplatform
193ef7d28ca9c302f86c4c295f4f468e8f02d529
[ "Apache-2.0" ]
2
2021-10-02T02:25:44.000Z
2021-11-17T10:35:01.000Z
setup.py
Ark-kun/python-aiplatform
193ef7d28ca9c302f86c4c295f4f468e8f02d529
[ "Apache-2.0" ]
null
null
null
setup.py
Ark-kun/python-aiplatform
193ef7d28ca9c302f86c4c295f4f468e8f02d529
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
32.683673
88
0.663128
2101cc9e18e72d2e91199c46f647bdc943cf744e
5,501
py
Python
validator/sawtooth_validator/consensus/poet0/poet_consensus.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
1
2019-03-18T13:31:11.000Z
2019-03-18T13:31:11.000Z
validator/sawtooth_validator/consensus/poet0/poet_consensus.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
validator/sawtooth_validator/consensus/poet0/poet_consensus.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
36.919463
80
0.655517
2101e1e24a5bfd5a4a4c416959bc3e38074e01ce
1,614
py
Python
authorization/validators.py
Joost-dm/jooster
04f3fa979b689b61a4aeae8a5309a09277404fd6
[ "MIT" ]
1
2020-06-17T02:51:35.000Z
2020-06-17T02:51:35.000Z
authorization/validators.py
Joost-dm/jooster
04f3fa979b689b61a4aeae8a5309a09277404fd6
[ "MIT" ]
7
2020-06-06T18:32:37.000Z
2022-03-12T00:33:42.000Z
authorization/validators.py
Joost-dm/jooster
04f3fa979b689b61a4aeae8a5309a09277404fd6
[ "MIT" ]
null
null
null
import math from django.core.files.images import get_image_dimensions from rest_framework.exceptions import ValidationError from main.settings import USER_SETTINGS AVATAR_SETTINGS = USER_SETTINGS['USER_AVATAR_SETTINGS'] class DownloadedAvatarValidator(object): """ Validation class for downloaded user's avatar im...
34.340426
79
0.621437
2101eb59ca8f733a8e9fcfdb6a8282551cb721d4
1,969
py
Python
CF_Functions/Challenges/exploringEarthquakes.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
null
null
null
CF_Functions/Challenges/exploringEarthquakes.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
null
null
null
CF_Functions/Challenges/exploringEarthquakes.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
1
2020-07-30T17:37:12.000Z
2020-07-30T17:37:12.000Z
import json import urllib.request def exploringEarthquakes(city, radius, startdate, enddate, mode): #encode city city = city.replace(' ', '+') #helper to get json data from API def getJSONDataFromAPI(url): req = urllib.request.Request(url) resp = urllib.request.urlopen(req).read()...
33.948276
231
0.618588
2101eea16e2962085768b634dac2889699387ece
422
py
Python
test/dom/html/test_blockquote.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
2
2018-05-28T23:01:20.000Z
2018-05-29T03:59:38.000Z
test/dom/html/test_blockquote.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
test/dom/html/test_blockquote.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
from util import testAttribute from util import testIntAttribute def test(): print 'testing source code syntax' from xml.dom.html import HTMLQuoteElement from xml.dom import implementation doc = implementation.createHTMLDocument('Title') b = doc.createElement('BlockQuote'); print 'testing get/...
22.210526
52
0.708531