hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
5578dc4f671307398a9d0705dce7afae3c84c6e1
2,323
py
Python
blueprints/vgg_cifar.py
vdeuschle/rysia
c8c5adc2c770424b3a328a936f23a80a38c9f0f2
[ "Apache-2.0" ]
2
2020-08-17T15:46:30.000Z
2020-08-20T19:20:57.000Z
blueprints/vgg_cifar.py
vdeuschle/rysia
c8c5adc2c770424b3a328a936f23a80a38c9f0f2
[ "Apache-2.0" ]
null
null
null
blueprints/vgg_cifar.py
vdeuschle/rysia
c8c5adc2c770424b3a328a936f23a80a38c9f0f2
[ "Apache-2.0" ]
null
null
null
from rysia.core import blueprint as bp architecture = bp.model( bp.InputLayer(shape=(32, 32, 3)), bp.Convolution(channel=64, kernel_size=(3, 3), activation='relu'), bp.Convolution(channel=64, kernel_size=(3, 3), activation='relu'), bp.Pooling(kernel_size=(2, 2)), bp.Convolution(channel=128, kernel_...
32.71831
72
0.727077
3a18c3eb44bd9861ea3b6d21912ef619a2cf25d0
2,037
py
Python
scripts/pyqtgraph-develop/examples/GLVolumeItem.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
scripts/pyqtgraph-develop/examples/GLVolumeItem.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
scripts/pyqtgraph-develop/examples/GLVolumeItem.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Demonstrates GLVolumeItem for displaying volumetric data. """ ## Add path to library (just for examples; you do not need this) import initExample from pyqtgraph.Qt import QtCore, QtGui import pyqtgraph.opengl as gl app = QtGui.QApplication([]) w = gl.GLViewWidget() w.opts['...
29.1
152
0.542464
f2ee387253d25f8855ea851e5966c94fce6ed421
20,223
py
Python
inventories/views.py
lueho/BRIT
1eae630c4da6f072aa4e2139bc406db4f4756391
[ "MIT" ]
null
null
null
inventories/views.py
lueho/BRIT
1eae630c4da6f072aa4e2139bc406db4f4756391
[ "MIT" ]
4
2022-03-29T20:52:31.000Z
2022-03-29T20:52:31.000Z
inventories/views.py
lueho/BRIT
1eae630c4da6f072aa4e2139bc406db4f4756391
[ "MIT" ]
null
null
null
import io import json from bootstrap_modal_forms.generic import BSModalCreateView, BSModalUpdateView, BSModalDeleteView from celery.result import AsyncResult from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.http import JsonResponse, HttpResponse from django.shortcuts import re...
39.575342
139
0.673985
d1acdb1eaacc0eb45792fa18a2baa078cb4224ce
151
py
Python
Exercicios/Mundo1/ex003.py
mpaullos/cursoemvideo-python
80732626b6b5471ec7fea6dc01d83931e5cfd8fb
[ "MIT" ]
null
null
null
Exercicios/Mundo1/ex003.py
mpaullos/cursoemvideo-python
80732626b6b5471ec7fea6dc01d83931e5cfd8fb
[ "MIT" ]
null
null
null
Exercicios/Mundo1/ex003.py
mpaullos/cursoemvideo-python
80732626b6b5471ec7fea6dc01d83931e5cfd8fb
[ "MIT" ]
null
null
null
n1 = int (input ('Digite um valor: ')) n2 = int (input ('Digite outro valor: ')) soma = n1+n2 print('A soma entre {} e {} vale {}!'.format(n1,n2,soma))
37.75
57
0.602649
2a8e3513acfbfe8c954078bc9d7b57c695f1d818
4,868
py
Python
ngraph/frontends/onnx/tests/test_ops_nonlinear.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/frontends/onnx/tests/test_ops_nonlinear.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/frontends/onnx/tests/test_ops_nonlinear.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2017-2018 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.apa...
42.330435
98
0.615859
b1e2167bca2d6040007b1b06c4c4ba5d6314b44a
64,763
py
Python
ivi/tektronix/tektronixBaseScope.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
161
2015-01-23T17:43:01.000Z
2022-03-29T14:42:42.000Z
ivi/tektronix/tektronixBaseScope.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
45
2015-01-15T13:35:04.000Z
2021-06-03T01:58:55.000Z
ivi/tektronix/tektronixBaseScope.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
87
2015-01-31T10:55:23.000Z
2022-03-17T08:18:47.000Z
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2016-2017 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
43.996603
158
0.623257
e36ad755e4f82ff66aa727d3a110dfda597c1faf
1,960
py
Python
tornado_ipware/ip.py
lumbrefrio/tornado-ipware
a557c4a57c6354a6db61c45c3f6bce4ae34c2783
[ "MIT" ]
null
null
null
tornado_ipware/ip.py
lumbrefrio/tornado-ipware
a557c4a57c6354a6db61c45c3f6bce4ae34c2783
[ "MIT" ]
null
null
null
tornado_ipware/ip.py
lumbrefrio/tornado-ipware
a557c4a57c6354a6db61c45c3f6bce4ae34c2783
[ "MIT" ]
null
null
null
from . import utils as util from . import defaults as defs def get_client_ip( request, proxy_order='left-most', proxy_count=None, proxy_trusted_ips=None, request_header_order=None, ): client_ip = None routable = False if proxy_count is None: proxy_count = -1 if proxy_trus...
32.131148
106
0.578061
a3125dc4e4024c4f1f946d3877005b9d61dc4aad
9,058
py
Python
venv/Lib/site-packages/pandas/tests/arrays/integer/test_dtypes.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/arrays/integer/test_dtypes.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/arrays/integer/test_dtypes.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
import numpy as np import pytest from pandas.core.dtypes.generic import ABCIndexClass import pandas as pd import pandas._testing as tm from pandas.core.arrays import integer_array from pandas.core.arrays.integer import Int8Dtype, UInt32Dtype def test_dtypes(dtype): # smoke tests on auto dtype constr...
31.234483
82
0.631817
8d0cb5f5e0a0c7e6d66508db95ce15565aa33bb2
685
py
Python
test/mac/gyptest-postbuild-defaults.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
test/mac/gyptest-postbuild-defaults.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
test/mac/gyptest-postbuild-defaults.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies that a postbuild invoking |defaults| works. """ import TestGyp import sys if sys.platform == 'darwin': test...
22.833333
73
0.678832
c8459be99440754474e0b768f4032e4902442a8b
408
py
Python
legacy/test_actor.py
LaoKpa/reinforcement_trader
1465731269e6d58900a28a040346bf45ffb5cf97
[ "MIT" ]
7
2020-09-28T23:36:40.000Z
2022-02-22T02:00:32.000Z
legacy/test_actor.py
LaoKpa/reinforcement_trader
1465731269e6d58900a28a040346bf45ffb5cf97
[ "MIT" ]
4
2020-11-13T18:48:52.000Z
2022-02-10T01:29:47.000Z
legacy/test_actor.py
lzcaisg/reinforcement_trader
1465731269e6d58900a28a040346bf45ffb5cf97
[ "MIT" ]
3
2020-11-23T17:31:59.000Z
2021-04-08T10:55:03.000Z
from Actor import Actor import datetime actor = Actor(todayDate=datetime.datetime(2016, 12, 10), startDate=datetime.datetime(2016, 9, 10), etfList=["FTSE 100", "Nasdaq 100", "Shanghai Composite"], initValue=1000000) print(actor.etfLocalMinMaxDict['FTSE 100']['max']["180"].to_s...
40.8
78
0.671569
2ecae0fc450a182b8c5bf47f49f86b60f1dcfda7
6,613
py
Python
Lib/test/test_resource.py
Hadron/python
73137f499ed658169f49273eee46845e3b53e800
[ "PSF-2.0" ]
1,872
2015-01-02T18:56:47.000Z
2022-03-31T07:34:39.000Z
Lib/test/test_resource.py
Hadron/python
73137f499ed658169f49273eee46845e3b53e800
[ "PSF-2.0" ]
675
2015-02-27T09:01:01.000Z
2022-03-31T14:03:25.000Z
Lib/test/test_resource.py
Hadron/python
73137f499ed658169f49273eee46845e3b53e800
[ "PSF-2.0" ]
278
2015-01-02T03:48:20.000Z
2022-03-29T20:40:44.000Z
import contextlib import sys import os import unittest from test import support import time resource = support.import_module('resource') # This test is checking a few specific problem spots with the resource module. class ResourceTest(unittest.TestCase): def test_args(self): self.assertRaises(TypeError,...
39.598802
80
0.576743
ea06631a8b86dbab76914971df02be27908be89a
13,477
py
Python
amazonadapi/amazonclient.py
barce/amazonadapi
76558774f26a6d1e2b496b9cbc0be1c603c85346
[ "MIT" ]
3
2018-10-17T19:06:17.000Z
2021-04-04T13:52:39.000Z
amazonadapi/amazonclient.py
barce/amazonadapi
76558774f26a6d1e2b496b9cbc0be1c603c85346
[ "MIT" ]
5
2018-09-12T20:07:40.000Z
2018-10-15T16:34:52.000Z
amazonadapi/amazonclient.py
barce/amazonadapi
76558774f26a6d1e2b496b9cbc0be1c603c85346
[ "MIT" ]
3
2018-02-05T21:04:28.000Z
2018-10-27T09:45:56.000Z
#!/usr/bin/env python from future.standard_library import install_aliases install_aliases() import json import jwt import requests import time import os import sys import re from urllib3._collections import HTTPHeaderDict use_environment_variables = None try: from django.conf import settings except ImportError...
34.468031
240
0.662759
d33cd77ce18a1ed2136790689ce81045bcd3c7ce
758
py
Python
chapter-09/Exercise_9_9.py
yuetsin/CS-902
ae945f55944830ed3c6e4d71cfff2798cdf571ac
[ "MIT" ]
1
2019-05-16T11:00:40.000Z
2019-05-16T11:00:40.000Z
chapter-09/Exercise_9_9.py
yuetsin/CS-902
ae945f55944830ed3c6e4d71cfff2798cdf571ac
[ "MIT" ]
null
null
null
chapter-09/Exercise_9_9.py
yuetsin/CS-902
ae945f55944830ed3c6e4d71cfff2798cdf571ac
[ "MIT" ]
null
null
null
# Exercise 9.9 from random import random from math import sin from math import cos def oneStep(): stepAngle = random() * 6.283185307178 return (cos(stepAngle), sin(stepAngle)) def goHiking(steps): Xpos = Ypos = 0 for i in range(steps): Movement = oneStep() Xpos += Movement[0] ...
24.451613
75
0.612137
195370e5cba51682190098714416dac29f8693ad
182
py
Python
tests/testapp/application_urls.py
barseghyanartur/feincms3-language-sites
f02e46e895a8c0d52b0bdad60352926073ffbd4b
[ "BSD-3-Clause" ]
2
2021-09-14T07:23:32.000Z
2021-10-03T12:15:11.000Z
tests/testapp/application_urls.py
barseghyanartur/feincms3-language-sites
f02e46e895a8c0d52b0bdad60352926073ffbd4b
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/application_urls.py
barseghyanartur/feincms3-language-sites
f02e46e895a8c0d52b0bdad60352926073ffbd4b
[ "BSD-3-Clause" ]
1
2021-09-14T07:23:34.000Z
2021-09-14T07:23:34.000Z
from django.http import HttpResponse from django.urls import path app_name = "application" urlpatterns = [ path("", lambda request: HttpResponse(request.path), name="root"), ]
20.222222
70
0.736264
d6fecc0794f5810a2b814da663443fa75093ad7f
88,971
py
Python
tests/integration/awslambda/test_lambda.py
TheRakeshPurohit/localstack
063e07827934a7c7ff00e6d7cf6e243bcce0eb99
[ "Apache-2.0" ]
null
null
null
tests/integration/awslambda/test_lambda.py
TheRakeshPurohit/localstack
063e07827934a7c7ff00e6d7cf6e243bcce0eb99
[ "Apache-2.0" ]
null
null
null
tests/integration/awslambda/test_lambda.py
TheRakeshPurohit/localstack
063e07827934a7c7ff00e6d7cf6e243bcce0eb99
[ "Apache-2.0" ]
null
null
null
import base64 import json import logging import os import re import shutil import time from io import BytesIO from typing import Dict, TypeVar import pytest from botocore.exceptions import ClientError from botocore.response import StreamingBody from localstack.constants import LAMBDA_TEST_ROLE, TEST_AWS_ACCOUNT_ID fr...
38.415803
247
0.64584
06d783690782d48e595dd4b1b084b7b4f832fb63
20,724
py
Python
interact/core/topology_dataframe.py
MD-Studio/MDInteract
55bb51d27ec8d4095118837a997eea7467c2ac53
[ "Apache-2.0" ]
4
2019-06-24T12:56:28.000Z
2021-03-27T17:32:17.000Z
interact/core/topology_dataframe.py
MD-Studio/MDInteract
55bb51d27ec8d4095118837a997eea7467c2ac53
[ "Apache-2.0" ]
1
2020-09-25T12:15:27.000Z
2020-10-11T10:28:30.000Z
interact/core/topology_dataframe.py
MD-Studio/MDInteract
55bb51d27ec8d4095118837a997eea7467c2ac53
[ "Apache-2.0" ]
5
2019-09-12T02:35:04.000Z
2021-07-30T18:05:28.000Z
# -*- coding: utf-8 -*- import logging import numpy from pandas import DataFrame, Series, concat from scipy.spatial.distance import cdist from interact import constants, reference_data, __module__ from interact.core.topology_base import TopologyBaseClass from interact.core.topology_series import TopologySeries from ...
37.68
119
0.618655
e06dd96e75fcb6625fd86ce3cd96170940051c46
6,413
py
Python
avalanche/benchmarks/utils/data_loader.py
ryanlindeborg/avalanche
32333776e729bad22f369f8923bc32416c9edcf9
[ "MIT" ]
12
2021-04-16T15:49:59.000Z
2022-02-27T18:04:58.000Z
avalanche/benchmarks/utils/data_loader.py
ryanlindeborg/avalanche
32333776e729bad22f369f8923bc32416c9edcf9
[ "MIT" ]
null
null
null
avalanche/benchmarks/utils/data_loader.py
ryanlindeborg/avalanche
32333776e729bad22f369f8923bc32416c9edcf9
[ "MIT" ]
2
2021-06-22T04:11:52.000Z
2021-11-12T03:27:18.000Z
################################################################################ # Copyright (c) 2021 ContinualAI. # # Copyrights licensed under the MIT License. # # See the accompanying LICENSE file for terms. ...
45.161972
80
0.52877
f5e49e1739f75184ca42fed0eccfc0275e567f4d
1,540
py
Python
cifar10/cifar10_pre_process.py
Arvind-Ideas2IT/pytorch-pipeline
dc9f8a7b8f45a18dc5cc045a692e15eb17f2d99e
[ "MIT" ]
null
null
null
cifar10/cifar10_pre_process.py
Arvind-Ideas2IT/pytorch-pipeline
dc9f8a7b8f45a18dc5cc045a692e15eb17f2d99e
[ "MIT" ]
null
null
null
cifar10/cifar10_pre_process.py
Arvind-Ideas2IT/pytorch-pipeline
dc9f8a7b8f45a18dc5cc045a692e15eb17f2d99e
[ "MIT" ]
1
2021-02-16T08:48:02.000Z
2021-02-16T08:48:02.000Z
import sys, argparse, logging import os import torch.utils.data from PIL import Image import json import pandas as pd import numpy as np import torch import torchvision from torch.utils.data import DataLoader, Dataset import torchvision.transforms as transforms import webdataset as wds from pathlib import Path from skl...
32.765957
93
0.681818
e8e854481b0e934e4271724e1e97b7b382f331bf
4,493
py
Python
tensorflow/python/data/experimental/kernel_tests/service/coordinated_read_ft_test.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
10
2021-05-25T17:43:04.000Z
2022-03-08T10:46:09.000Z
tensorflow/python/data/experimental/kernel_tests/service/coordinated_read_ft_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/data/experimental/kernel_tests/service/coordinated_read_ft_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
6
2016-09-07T04:00:15.000Z
2022-01-12T01:47:38.000Z
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.756303
104
0.718228
b4f9e74a03a71d7129afa6dd86d7e72809eee736
1,793
py
Python
frappe/templates/pages/integrations/razorpay_checkout.py
GitlabABC/frappe
be3aaf715c1c978240bfe276bfcbb699c1dc33ba
[ "MIT" ]
null
null
null
frappe/templates/pages/integrations/razorpay_checkout.py
GitlabABC/frappe
be3aaf715c1c978240bfe276bfcbb699c1dc33ba
[ "MIT" ]
null
null
null
frappe/templates/pages/integrations/razorpay_checkout.py
GitlabABC/frappe
be3aaf715c1c978240bfe276bfcbb699c1dc33ba
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE import json import frappe from frappe import _ from frappe.utils import cint, flt no_cache = 1 expected_keys = ( "amount", "title", "description", "reference_doctype", "reference_docname", "payer_name", "payer_ema...
22.4125
92
0.731177
5c6c04ae0e226dd143d55c85ce2a1026b409607b
130
py
Python
utils/__init__.py
Kylin9511/CRNet
22c9abd61490af46af63d737ca470f0943efa973
[ "MIT" ]
52
2019-10-25T17:00:34.000Z
2022-03-28T12:36:45.000Z
utils/__init__.py
WANDERMEN/CRNet
45427797c702bd88d7667ab703e9774900340676
[ "MIT" ]
6
2019-10-30T03:14:34.000Z
2022-03-25T15:20:02.000Z
utils/__init__.py
WANDERMEN/CRNet
45427797c702bd88d7667ab703e9774900340676
[ "MIT" ]
23
2019-11-01T02:14:52.000Z
2022-01-09T10:37:39.000Z
from . import logger from .logger import log_level, line_seg from .init import * from .scheduler import * from .solver import *
16.25
39
0.753846
e406a519c8d982209cc618d6d7ee3cff06d4c268
1,665
py
Python
bbsauth.py
HenryHu/pybbs
cb2a870f3879d5432739d0748a01842660793ba9
[ "BSD-2-Clause-FreeBSD" ]
14
2015-01-18T16:27:20.000Z
2021-06-20T19:27:32.000Z
bbsauth.py
HenryHu/pybbs
cb2a870f3879d5432739d0748a01842660793ba9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
bbsauth.py
HenryHu/pybbs
cb2a870f3879d5432739d0748a01842660793ba9
[ "BSD-2-Clause-FreeBSD" ]
2
2016-04-11T07:08:04.000Z
2018-08-02T15:39:27.000Z
"""bbsauth -- verifies session token <http://www.ietf.org/rfc/rfc4616.txt> Copyright (c) 2009, Coptix, Inc. All rights reserved. See the LICENSE file for license terms and warranty disclaimer. """ from __future__ import absolute_import from sasl import mechanism as mech, auth __all__ = ('BBSAuth') class BBSAuth(me...
25.615385
70
0.601802
60e065fca11b08c0e5f4263776eab5ffbfc1f083
9,495
py
Python
RockPhysicsInversionDriver.py
aadm/SeReMpy
16486812b35d6c0e8d8c9787cd1e7cfe05a5e960
[ "MIT" ]
null
null
null
RockPhysicsInversionDriver.py
aadm/SeReMpy
16486812b35d6c0e8d8c9787cd1e7cfe05a5e960
[ "MIT" ]
null
null
null
RockPhysicsInversionDriver.py
aadm/SeReMpy
16486812b35d6c0e8d8c9787cd1e7cfe05a5e960
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Nov 20 07:24:51 2020 @author: dariograna Reference: Grana and de Figueiredo, 2021, SeReMpy """ #% Rock physics inversion Driver %% # In this script we apply the Bayesian Rock phyisics inversion to predict # the petrophysical properties (porosity, cla...
32.406143
187
0.661295
ff793e04829b0530c5aaa13414fc7efa98c78d4d
603
py
Python
ganexa_event_manager/users/migrations/0002_auto_20220315_0511.py
luiscberrocal/ganexa_event_manager
c74d2b687c713cc9c90e8bf33dcf48a4eecf0000
[ "MIT" ]
null
null
null
ganexa_event_manager/users/migrations/0002_auto_20220315_0511.py
luiscberrocal/ganexa_event_manager
c74d2b687c713cc9c90e8bf33dcf48a4eecf0000
[ "MIT" ]
6
2022-03-18T10:41:25.000Z
2022-03-31T10:38:16.000Z
ganexa_event_manager/users/migrations/0002_auto_20220315_0511.py
luiscberrocal/ganexa_event_manager
c74d2b687c713cc9c90e8bf33dcf48a4eecf0000
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-03-15 10:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='first_name', fi...
25.125
89
0.588723
7582d7e4e7ccdf08edeacffb8ac393bed5aa65e1
16,372
py
Python
lib/exabgp/bgp/message/update/nlri/flow.py
lochiiconnectivity/exabgp
2cb8a99af89969ff4b0b5561de6168a18179b704
[ "BSD-3-Clause" ]
null
null
null
lib/exabgp/bgp/message/update/nlri/flow.py
lochiiconnectivity/exabgp
2cb8a99af89969ff4b0b5561de6168a18179b704
[ "BSD-3-Clause" ]
null
null
null
lib/exabgp/bgp/message/update/nlri/flow.py
lochiiconnectivity/exabgp
2cb8a99af89969ff4b0b5561de6168a18179b704
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 """ flow.py Created by Thomas Mangin on 2010-01-14. Copyright (c) 2009-2015 Exa Networks. All rights reserved. """ # Do not use __slots__ here, we never create enough of them to be worth it # And it really break complex inheritance from struct import pack from struct import unpack from exabgp.prot...
27.986325
125
0.689836
804c5d561600d69d59b80e5b2dd0b0e4b67416ba
2,878
py
Python
fidesctl/src/fidesapi/main.py
Tannahooks/fides
d4e1b3bdf3490a31ae5a7876b65ce527884d25d8
[ "Apache-2.0" ]
null
null
null
fidesctl/src/fidesapi/main.py
Tannahooks/fides
d4e1b3bdf3490a31ae5a7876b65ce527884d25d8
[ "Apache-2.0" ]
null
null
null
fidesctl/src/fidesapi/main.py
Tannahooks/fides
d4e1b3bdf3490a31ae5a7876b65ce527884d25d8
[ "Apache-2.0" ]
null
null
null
""" Contains the code that sets up the API. """ from datetime import datetime from enum import Enum from logging import WARNING from typing import Callable, Dict from fastapi import FastAPI, Request, Response from loguru import logger as log from uvicorn import Config, Server from fidesapi import crud, database, db_...
29.367347
78
0.706393
398811e51d14355898a6134e31708bc98e1715ff
2,155
py
Python
src/classes/Property.py
PayParty/dbtools
086d4df9072e81befd4257540ab7d3034c44b721
[ "MIT" ]
null
null
null
src/classes/Property.py
PayParty/dbtools
086d4df9072e81befd4257540ab7d3034c44b721
[ "MIT" ]
null
null
null
src/classes/Property.py
PayParty/dbtools
086d4df9072e81befd4257540ab7d3034c44b721
[ "MIT" ]
null
null
null
from bson import ObjectId class Property: # Property # # Represents a simple property contained in a model. # def __init__(self, from_plain=None, **kwargs): # Constructor # # Properties # _class: string with object class # name: string with property name # type: string with property type # opt...
22.447917
89
0.620882
41092111f70e26e08ed312e033de3e34d7e1fcce
217
py
Python
tests/integration/testdata/logs/python-apigw-sfn/apigw-function/app.py
praneetap/aws-sam-cli
2a713566c8de72a68eb8954584674a61a2d807ac
[ "Apache-2.0" ]
2,285
2017-08-11T16:57:31.000Z
2018-05-08T20:38:25.000Z
tests/integration/testdata/logs/python-apigw-sfn/apigw-function/app.py
praneetap/aws-sam-cli
2a713566c8de72a68eb8954584674a61a2d807ac
[ "Apache-2.0" ]
314
2017-08-11T17:29:27.000Z
2018-05-08T20:51:47.000Z
tests/integration/testdata/logs/python-apigw-sfn/apigw-function/app.py
praneetap/aws-sam-cli
2a713566c8de72a68eb8954584674a61a2d807ac
[ "Apache-2.0" ]
284
2017-08-11T17:35:48.000Z
2018-05-08T20:15:59.000Z
def handler(event, context): print("Hello world from HelloWorldServerlessApi/hello function") print("Hello world from ApiGwFunction function") print("this should be filtered ApiGwFunction") return {}
31
68
0.741935
416a13c10d0d11eb00aede9096e16fcdca6732bb
885
py
Python
ws2122-lspm/Lib/site-packages/pm4py/algo/conformance/tree_alignments/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/conformance/tree_alignments/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/conformance/tree_alignments/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py 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 3 of the License, or (at your option) any late...
40.227273
87
0.748023
2701ad89bf85792091760d18d393b7124981569b
2,171
py
Python
packages/Python/lldbsuite/test/lang/swift/variables/cgtypes/TestCGTypes.py
xiaobai/swift-lldb
9238527ce430e6837108a16d2a91b147551fb83c
[ "Apache-2.0" ]
765
2015-12-03T16:44:59.000Z
2022-03-07T12:41:10.000Z
packages/Python/lldbsuite/test/lang/swift/variables/cgtypes/TestCGTypes.py
xiaobai/swift-lldb
9238527ce430e6837108a16d2a91b147551fb83c
[ "Apache-2.0" ]
1,815
2015-12-11T23:56:05.000Z
2020-01-10T19:28:43.000Z
packages/Python/lldbsuite/test/lang/swift/variables/cgtypes/TestCGTypes.py
xiaobai/swift-lldb
9238527ce430e6837108a16d2a91b147551fb83c
[ "Apache-2.0" ]
284
2015-12-03T16:47:25.000Z
2022-03-12T05:39:48.000Z
# TestCGTypes.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swift.org/CONTRIBUTORS...
31.014286
85
0.573929
480d1df18c2e9a74bc42bf0c110e981cf89f2f2b
1,488
py
Python
test/cmd/at/test_cmd_at_get_imsi.py
carr-elagheb/moler
b896ff668d9cc3704b6f806f7c2bf6e76c13427d
[ "BSD-3-Clause" ]
null
null
null
test/cmd/at/test_cmd_at_get_imsi.py
carr-elagheb/moler
b896ff668d9cc3704b6f806f7c2bf6e76c13427d
[ "BSD-3-Clause" ]
null
null
null
test/cmd/at/test_cmd_at_get_imsi.py
carr-elagheb/moler
b896ff668d9cc3704b6f806f7c2bf6e76c13427d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Testing AtGetIMSI commands. """ __author__ = 'Lukasz Blaszkiewicz, Kamil Kania, Grzegorz Latuszek' __copyright__ = 'Copyright (C) 2018, Nokia' __email__ = 'kamil.kania@nokia.com, grzegorz.latuszek@nokia.com' import pytest # --------------------------- testing base class -----------------...
41.333333
91
0.733199
237b6353d53104d1ccca9ecedea6efd6910a2128
23,439
py
Python
heisenbridge/private_room.py
sumnerevans/heisenbridge
caf122a0f064b8bc2cd9fbd0f9ae703d323b7d04
[ "MIT" ]
null
null
null
heisenbridge/private_room.py
sumnerevans/heisenbridge
caf122a0f064b8bc2cd9fbd0f9ae703d323b7d04
[ "MIT" ]
null
null
null
heisenbridge/private_room.py
sumnerevans/heisenbridge
caf122a0f064b8bc2cd9fbd0f9ae703d323b7d04
[ "MIT" ]
null
null
null
import asyncio import html import logging import re import unicodedata from datetime import datetime from datetime import timezone from html import escape from typing import List from typing import Optional from typing import Tuple from urllib.parse import urlparse from mautrix.api import Method from mautrix.api impor...
35.567527
124
0.55894
64c09a058b4774ff4bf88d9b1dba9a494a4179e1
322
py
Python
setup.py
shinoaki-tatsuya/mp4tojson
3b21e8966b56774105481ba88e76fe35e0e4c123
[ "MIT" ]
null
null
null
setup.py
shinoaki-tatsuya/mp4tojson
3b21e8966b56774105481ba88e76fe35e0e4c123
[ "MIT" ]
null
null
null
setup.py
shinoaki-tatsuya/mp4tojson
3b21e8966b56774105481ba88e76fe35e0e4c123
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import mp4tojson setup( name='mp4tojson', version=mp4tojson.__version__, packages=find_packages(exclude=['tests']), entry_points=''' [console_scripts] mp4tojson = mp4tojson.main:main ''', install_requires=[ 'click', ]...
21.466667
46
0.636646
9364babed1813daf4504ebae83fe160b7ee54f6b
8,040
py
Python
examples/pybullet/gym/pybullet_envs/bullet/kuka.py
msieb1/bullet3
0803a1f53e22ddd212eafe1194b1dd9e891a7eaf
[ "Zlib" ]
null
null
null
examples/pybullet/gym/pybullet_envs/bullet/kuka.py
msieb1/bullet3
0803a1f53e22ddd212eafe1194b1dd9e891a7eaf
[ "Zlib" ]
null
null
null
examples/pybullet/gym/pybullet_envs/bullet/kuka.py
msieb1/bullet3
0803a1f53e22ddd212eafe1194b1dd9e891a7eaf
[ "Zlib" ]
null
null
null
import os, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(os.path.dirname(currentdir)) os.sys.path.insert(0,parentdir) import pybullet as p import numpy as np import copy import math import pybullet_data import time from pdb import set_trace...
40.2
232
0.6801
9a213abc44ec3762e4b3676f12a5c930d48e419c
633
py
Python
rapidfire/__init__.py
wanshot/rapid_fire
edee22a86b609805c602bb701bd6812c214f5c7b
[ "MIT" ]
2
2017-02-16T00:05:20.000Z
2017-03-06T09:00:49.000Z
rapidfire/__init__.py
wanshot/rapid_fire
edee22a86b609805c602bb701bd6812c214f5c7b
[ "MIT" ]
14
2017-02-19T14:52:18.000Z
2017-05-28T07:09:28.000Z
rapidfire/__init__.py
wanshot/RapidFire
edee22a86b609805c602bb701bd6812c214f5c7b
[ "MIT" ]
null
null
null
__version__ = '1.0.0' __license__ = 'MIT' __author__ = 'wanshot' __author_email__ = 'nishikawa0228@sj9.so-net.ne.jp' __logo__ = """ ____ _ _________ / __ \____ _____ (_)___/ / ____(_)_______ / /_/ / __ `/ __ \/ / __ / /_ / / ___/ _ \\ / _, _/ /_/ / /_/ / / /_/ / __/ / / / / __/ /_/...
23.444444
51
0.496051
2646eb026ed9e4bf15b8e8bfb6d0edab5104a3bc
6,936
py
Python
utils.py
meta-inf/qbdiv
27ea43d5a453b9367aabadf08349a4cbc287e9b2
[ "MIT" ]
2
2022-03-04T20:48:44.000Z
2022-03-14T04:19:28.000Z
utils.py
meta-inf/qbdiv
27ea43d5a453b9367aabadf08349a4cbc287e9b2
[ "MIT" ]
null
null
null
utils.py
meta-inf/qbdiv
27ea43d5a453b9367aabadf08349a4cbc287e9b2
[ "MIT" ]
null
null
null
# import torch as th from __future__ import annotations from typing import Iterable, Callable, Any, Union, Tuple import numpy as onp import scipy import jax from jax import numpy as np class UniformNystromSampler(object): """ the sampler will not modify its state """ def __init__(self, pkey: jax.rand...
28.195122
95
0.575836
864da24b695fd8123732b16c273cfa57f14655df
1,027
py
Python
ingaia-helpers/config.py
emersonfdias/ingaia-helpers
f9670072a3339c7cbd619f27e80278b109f67819
[ "MIT" ]
null
null
null
ingaia-helpers/config.py
emersonfdias/ingaia-helpers
f9670072a3339c7cbd619f27e80278b109f67819
[ "MIT" ]
null
null
null
ingaia-helpers/config.py
emersonfdias/ingaia-helpers
f9670072a3339c7cbd619f27e80278b109f67819
[ "MIT" ]
null
null
null
""" api.helpers.config ~~~~~~~~~~~~~~~~~~~~~~~~~ Implements project configuration helpers. """ import yaml class Dotable(dict): __getattr__= dict.__getitem__ def __init__(self, d): self.update(**dict((k, self.parse(v)) for k, v in d.iteritems())) @classmeth...
23.883721
68
0.573515
1de1909c4179fc455525beb87a0303ecd36b9979
1,148
py
Python
metricbeat/scripts/generate_imports_helper.py
swift1911/beats
f9e06417b654c6e32bb7d05d34fb63b7a759f77a
[ "Apache-2.0" ]
11
2018-04-01T06:15:48.000Z
2021-04-29T06:02:58.000Z
metricbeat/scripts/generate_imports_helper.py
swift1911/beats
f9e06417b654c6e32bb7d05d34fb63b7a759f77a
[ "Apache-2.0" ]
13
2018-03-23T21:04:55.000Z
2019-02-06T21:27:01.000Z
metricbeat/scripts/generate_imports_helper.py
swift1911/beats
f9e06417b654c6e32bb7d05d34fb63b7a759f77a
[ "Apache-2.0" ]
4
2019-02-08T16:32:49.000Z
2021-06-23T14:55:56.000Z
from os.path import abspath, isdir, join from os import listdir comment = """Package include imports all Module and MetricSet packages so that they register their factories with the global registry. This package can be imported in the main package to automatically register all of the standard supported Metricbeat modu...
42.518519
118
0.718641
834f97fb57966ed7136d2ddaf2ab7a0ec4e86e09
1,184
py
Python
postgres/migrations/migrations/versions/3dcd7657d563_.py
rbroc/neuroscout
da6b0097050c1a468baf03d3c71161adbf688d5b
[ "BSD-3-Clause" ]
null
null
null
postgres/migrations/migrations/versions/3dcd7657d563_.py
rbroc/neuroscout
da6b0097050c1a468baf03d3c71161adbf688d5b
[ "BSD-3-Clause" ]
9
2019-11-05T16:02:19.000Z
2022-03-11T23:52:52.000Z
postgres/migrations/migrations/versions/3dcd7657d563_.py
rbroc/neuroscout
da6b0097050c1a468baf03d3c71161adbf688d5b
[ "BSD-3-Clause" ]
1
2019-07-22T18:08:55.000Z
2019-07-22T18:08:55.000Z
"""empty message Revision ID: 3dcd7657d563 Revises: 9efb0d7634e3 Create Date: 2019-05-22 19:23:56.537827 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3dcd7657d563' down_revision = '9efb0d7634e3' branch_labels = None depends_on = None def upgrade(): # ...
31.157895
108
0.701014
d5d40f573c6a7992d8c580173eb490cb1838befd
140
py
Python
test/__init__.py
JosephMcGrath/Chao-Examiner
a1b5b016ccfd579fbe0ae7a9ab9810ab280b3432
[ "MIT" ]
null
null
null
test/__init__.py
JosephMcGrath/Chao-Examiner
a1b5b016ccfd579fbe0ae7a9ab9810ab280b3432
[ "MIT" ]
null
null
null
test/__init__.py
JosephMcGrath/Chao-Examiner
a1b5b016ccfd579fbe0ae7a9ab9810ab280b3432
[ "MIT" ]
null
null
null
""" Tests for the chao_examiner package. """ import sys sys.path.append("src") import chao_examiner chao_examiner.setup_logging("test")
11.666667
36
0.75
b5f23acd5972d0bbe44ccc4bba9d69319eb1e888
3,085
py
Python
configs/_base_/models/centerpoint_02pillar_second_secfpn_nus.py
BB88Lee/mmdetection3d
62aeeadf70ac1229c595e3a4fe09d8a49df808f1
[ "Apache-2.0" ]
136
2021-06-03T06:37:56.000Z
2022-03-29T13:29:03.000Z
configs/_base_/models/centerpoint_02pillar_second_secfpn_nus.py
BB88Lee/mmdetection3d
62aeeadf70ac1229c595e3a4fe09d8a49df808f1
[ "Apache-2.0" ]
38
2021-06-05T12:41:30.000Z
2022-03-23T07:31:28.000Z
configs/_base_/models/centerpoint_02pillar_second_secfpn_nus.py
BB88Lee/mmdetection3d
62aeeadf70ac1229c595e3a4fe09d8a49df808f1
[ "Apache-2.0" ]
14
2020-08-12T13:14:32.000Z
2022-01-28T16:34:21.000Z
voxel_size = [0.2, 0.2, 8] model = dict( type='CenterPoint', pts_voxel_layer=dict( max_num_points=20, voxel_size=voxel_size, max_voxels=(30000, 40000)), pts_voxel_encoder=dict( type='PillarFeatureNet', in_channels=5, feat_channels=[64], with_distance=False, vo...
36.72619
77
0.572447
fdc0bd1b448005fad76d752deb47bfb177420ba8
776
py
Python
game/data/scripts/custom/7001_ClanItems/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
10
2019-07-27T13:12:11.000Z
2022-01-15T19:13:26.000Z
game/data/scripts/custom/7001_ClanItems/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
1
2021-08-06T12:15:01.000Z
2021-08-09T10:18:47.000Z
game/data/scripts/custom/7001_ClanItems/__init__.py
TheDemonLife/Lineage2Server-Interlude
d23d145db533fd899d4064026e4bc7ee45c6624a
[ "Apache-2.0" ]
2
2020-02-20T23:02:26.000Z
2020-11-22T09:27:51.000Z
# Created by L2Emu Team import sys from ru.catssoftware.gameserver.model.quest import State from ru.catssoftware.gameserver.model.quest import QuestState from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest qn = "7001_ClanItems" class Quest (JQuest) : def __init__(self,id,na...
26.758621
79
0.722938
6148e4fdd5599aff18b9c6d8af04b75ab214fbf1
81
py
Python
egs2/slurp_entity/asr1/local/evaluation/metrics/__init__.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
egs2/slurp_entity/asr1/local/evaluation/metrics/__init__.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
egs2/slurp_entity/asr1/local/evaluation/metrics/__init__.py
roshansh-cmu/espnet
5fa6dcc4e649dc66397c629d0030d09ecef36b80
[ "Apache-2.0" ]
null
null
null
from .distance import Distance from .metrics import ErrorMetric, compute_metrics
27
49
0.851852
5a8ccc7a90068c91644e1667a207cbe0377655df
28,319
py
Python
cirq-core/cirq/work/observable_measurement.py
BearerPipelineTest/Cirq
e00767a2ef1233e82e9089cf3801a77e4cc3aea3
[ "Apache-2.0" ]
1
2022-02-05T22:17:39.000Z
2022-02-05T22:17:39.000Z
cirq-core/cirq/work/observable_measurement.py
BearerPipelineTest/Cirq
e00767a2ef1233e82e9089cf3801a77e4cc3aea3
[ "Apache-2.0" ]
4
2022-01-16T14:12:15.000Z
2022-02-24T03:58:46.000Z
cirq-core/cirq/work/observable_measurement.py
Nexuscompute/Cirq
640ef8f82d6a56ec95361388ce7976e096cca906
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Cirq Developers # # 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 agreed to in ...
40.340456
99
0.694269
891d5b6d543f30860cddad3a823ee0f978da10f8
8,514
py
Python
tests/python/pants_test/engine/test_engine.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/engine/test_engine.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/engine/test_engine.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import unittest from dataclasses import dataclass, field from textwrap import dedent from typing import List from pants.engine.rules import RootRule, rule from pants.engine.scheduler impo...
31.88764
116
0.685929
0fef6c7482ec5330a40fd7fdea2337f9f2d2b406
4,093
py
Python
python/wct.py
octo-willy/mapping-wetlands
a9acab6a55e25bb4ef2c70106389006fc5462fb7
[ "MIT" ]
null
null
null
python/wct.py
octo-willy/mapping-wetlands
a9acab6a55e25bb4ef2c70106389006fc5462fb7
[ "MIT" ]
null
null
null
python/wct.py
octo-willy/mapping-wetlands
a9acab6a55e25bb4ef2c70106389006fc5462fb7
[ "MIT" ]
1
2021-04-20T01:53:21.000Z
2021-04-20T01:53:21.000Z
#!/usr/bin/env python # coding: utf-8 # In[ ]: from sklearn.cluster import MiniBatchKMeans import rasterio as rio import numpy as np from skimage.filters import threshold_otsu from python.misc import compute_index from rasterio.plot import reshape_as_image def compute_cluster(img,k=3,random_seed=42): """ Compu...
34.982906
128
0.620083
6989de50b8cb917f9a0186a4297967d681d036ee
454
py
Python
test/read_informs_test.py
qiyuangong/ppdpes_core
f4c955401559dcf09f62a7ef163e900df01f499b
[ "MIT" ]
null
null
null
test/read_informs_test.py
qiyuangong/ppdpes_core
f4c955401559dcf09f62a7ef163e900df01f499b
[ "MIT" ]
null
null
null
test/read_informs_test.py
qiyuangong/ppdpes_core
f4c955401559dcf09f62a7ef163e900df01f499b
[ "MIT" ]
null
null
null
import unittest from utils.read_informs_data import read_data from utils.read_informs_data import read_tree class test_read_informs(unittest.TestCase): """ informs dataset contains 58568 records """ def test_read_normal(self): data = read_data() self.assertEqual(len(data), 58568) ...
19.73913
45
0.685022
7055f81cc915d1fe43ccc147082d5447eb4a4a54
2,031
py
Python
gdpr/utils.py
hronecviktor/django-GDPR
fa2a69e6f1d08fe8d2c646074c85fd0dc6ea6b8d
[ "MIT" ]
null
null
null
gdpr/utils.py
hronecviktor/django-GDPR
fa2a69e6f1d08fe8d2c646074c85fd0dc6ea6b8d
[ "MIT" ]
null
null
null
gdpr/utils.py
hronecviktor/django-GDPR
fa2a69e6f1d08fe8d2c646074c85fd0dc6ea6b8d
[ "MIT" ]
null
null
null
from typing import Any, Type from django.core.exceptions import FieldDoesNotExist from django.db.models import Model, QuerySet def str_to_class(class_string: str) -> Any: module_name, class_name = class_string.rsplit('.', 1) # load the module, will raise ImportError if module cannot be loaded m = __impor...
26.038462
106
0.687346
7fecbd18fa02c03d4003972af012cf71c6c34b8e
777
py
Python
francoralite/apps/francoralite_api/models/dance.py
Francoralite/francoralite
f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c
[ "BSD-3-Clause" ]
2
2021-07-26T08:29:26.000Z
2021-07-26T08:29:27.000Z
francoralite/apps/francoralite_api/models/dance.py
lluc/telemeta-integration
c2fb116471235674eae597abac84a7113e0f7c82
[ "BSD-3-Clause" ]
167
2018-10-20T14:34:46.000Z
2021-06-01T10:40:55.000Z
francoralite/apps/francoralite_api/models/dance.py
Francoralite/francoralite
f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c
[ "BSD-3-Clause" ]
1
2021-06-06T12:16:49.000Z
2021-06-06T12:16:49.000Z
# -*- coding: utf-8 -*- # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # Authors: Luc LEGER / Cooperative Artefacts <artefacts.lle@gmail.com> from django.db import models from django.utils.translation import gettext_...
27.75
74
0.673102
aee0e8c69d98fb983bce30bf8e64850c6c6c20b7
1,644
py
Python
JPMC-tech-task-1/jpm_module_1/client_test.py
Abhishek-Doshi/J_P_Morgan_Chase-Virtual-Internship
62500dcea4284f11424c2b02f33685830efce6c8
[ "MIT" ]
1
2020-07-02T15:11:10.000Z
2020-07-02T15:11:10.000Z
JPMC-tech-task-1/jpm_module_1/client_test.py
Abhishek-Doshi/J_P_Morgan_Chase-Virtual-Internship
62500dcea4284f11424c2b02f33685830efce6c8
[ "MIT" ]
null
null
null
JPMC-tech-task-1/jpm_module_1/client_test.py
Abhishek-Doshi/J_P_Morgan_Chase-Virtual-Internship
62500dcea4284f11424c2b02f33685830efce6c8
[ "MIT" ]
null
null
null
import unittest from client3 import getDataPoint, getRatio class ClientTest(unittest.TestCase): def test_getDataPoint_calculatePrice(self): quotes = [ {'top_ask': {'price': 121.2, 'size': 36}, 'timestamp': '2019-02-11 22:06:30.572453', 'top_bid': {'price': 120.48, 'size': 109}, 'id': '0.10997469777...
63.230769
180
0.559002
211d5fdda3ae431350ecddd346f910bb44c8516b
1,579
py
Python
tests/commands/new/test_validate_app_name.py
danyeaw/briefcase
fd9744e5b8dfc8a4c7606dc63cddfcda2dd00d78
[ "BSD-3-Clause" ]
1
2022-03-29T01:22:42.000Z
2022-03-29T01:22:42.000Z
tests/commands/new/test_validate_app_name.py
danyeaw/briefcase
fd9744e5b8dfc8a4c7606dc63cddfcda2dd00d78
[ "BSD-3-Clause" ]
null
null
null
tests/commands/new/test_validate_app_name.py
danyeaw/briefcase
fd9744e5b8dfc8a4c7606dc63cddfcda2dd00d78
[ "BSD-3-Clause" ]
null
null
null
import pytest @pytest.mark.parametrize( 'name', [ 'helloworld', 'helloWorld', 'hello42world', '42helloworld', # ?? Are we sure this is correct? 'hello_world', 'hello-world', ] ) def test_valid_app_name(new_command, name): "Test that valid app names are ...
31.58
76
0.626979
37577ff41d6ecff098e672c763977cfd4ac2b2f3
3,206
py
Python
Lib/importlib/__init__.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2020-11-26T18:53:46.000Z
2020-11-26T18:53:46.000Z
Lib/importlib/__init__.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
null
null
null
Lib/importlib/__init__.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
2
2018-08-06T04:37:38.000Z
2022-02-27T18:07:12.000Z
"""A pure Python implementation of import. References on import: * Language reference http://docs.python.org/ref/import.html * __import__ function http://docs.python.org/lib/built-in-funcs.html * Packages http://www.python.org/doc/essays/packages.html * PEP 235: Import on...
25.648
80
0.636619
149139c3656900d7a2d576df6b01f25ee9a683ff
2,335
py
Python
src/assets/environments/mingw64/lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++_64-6.dll-gdb.py
Sunhr520/ioeditor
6790a4384d075d6c61c680e0e30f5cd92b6a5425
[ "MIT" ]
null
null
null
src/assets/environments/mingw64/lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++_64-6.dll-gdb.py
Sunhr520/ioeditor
6790a4384d075d6c61c680e0e30f5cd92b6a5425
[ "MIT" ]
null
null
null
src/assets/environments/mingw64/lib/gcc/x86_64-w64-mingw32/4.8.1/libstdc++_64-6.dll-gdb.py
Sunhr520/ioeditor
6790a4384d075d6c61c680e0e30f5cd92b6a5425
[ "MIT" ]
null
null
null
# -*- python -*- # Copyright (C) 2009-2013 Free Software Foundation, Inc. # 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 3 of the License, or # (at your option) any later versio...
38.278689
72
0.719058
d06853e47b4bfaf2f6b7da5ab40ff5fff23fc6a8
858
py
Python
projects/DA-project-3/problem-1.py
metanitesh/Data-Structure-Algorithm-Python
48c4e74909700a3b4438f79050c7f974cd95b9a2
[ "MIT" ]
null
null
null
projects/DA-project-3/problem-1.py
metanitesh/Data-Structure-Algorithm-Python
48c4e74909700a3b4438f79050c7f974cd95b9a2
[ "MIT" ]
null
null
null
projects/DA-project-3/problem-1.py
metanitesh/Data-Structure-Algorithm-Python
48c4e74909700a3b4438f79050c7f974cd95b9a2
[ "MIT" ]
null
null
null
def findRoot(starting, end, number): mid = (end+ starting) //2; if mid*mid == number: return mid; if (mid*mid < number) and (mid+1)*(mid+1)>number: return mid; if(mid*mid > number): return findRoot(0, mid, number) else: return findRoot(mid, end, number) def sqrt(number): if(number ...
18.652174
57
0.601399
897ec9593bd7096aff055d2bb4cdb3e3b353b674
3,150
py
Python
lib/src/align/optimization/optimize_parameters.py
thormeier-fhnw-repos/ip619bb-i4ds02-audio-text-alignment
382800891c8de35c541d726da78f108a5a86b210
[ "MIT" ]
null
null
null
lib/src/align/optimization/optimize_parameters.py
thormeier-fhnw-repos/ip619bb-i4ds02-audio-text-alignment
382800891c8de35c541d726da78f108a5a86b210
[ "MIT" ]
null
null
null
lib/src/align/optimization/optimize_parameters.py
thormeier-fhnw-repos/ip619bb-i4ds02-audio-text-alignment
382800891c8de35c541d726da78f108a5a86b210
[ "MIT" ]
null
null
null
from bin._bin import bin_print from lib.src.align.aligner.google.GoogleFilesAligner import GoogleFilesAligner from lib.src.align.compare.compare_alignments import compare_alignments from typing import Dict, Any, List from GPyOpt.methods import BayesianOptimization import numpy as np def optimize_parameters( i...
37.951807
116
0.659048
a5675d7ea8d11072b039e787f858d722f135619e
2,218
py
Python
app/location.py
PhotoScout/API
24c2040b0a2fcb1ea906c7aa095c9e74d3ca4fa9
[ "MIT" ]
null
null
null
app/location.py
PhotoScout/API
24c2040b0a2fcb1ea906c7aa095c9e74d3ca4fa9
[ "MIT" ]
null
null
null
app/location.py
PhotoScout/API
24c2040b0a2fcb1ea906c7aa095c9e74d3ca4fa9
[ "MIT" ]
null
null
null
from app import app, db, auth, api from flask import Flask, request, url_for, jsonify, abort, g from flask_restful import Resource, reqparse, fields, marshal from app.models import Photo, Guide import requests from app.fields.places import * class Google_Location(): def __init__(self, place): self.latitude...
31.685714
224
0.629847
04242b4ce015a4f80890e4dcd107fdd6acddc4c0
11,314
py
Python
tests/test_types.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
25
2021-04-03T20:26:57.000Z
2022-02-08T15:02:17.000Z
tests/test_types.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
8
2022-01-23T10:55:43.000Z
2022-03-01T14:03:01.000Z
tests/test_types.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
3
2021-09-16T11:23:25.000Z
2022-01-23T10:49:26.000Z
# -*- coding: utf-8 -*- """ test.test_types ~~~~~~~~~~~~~~~ This module contains the Diameter protocol types unittests. :copyright: (c) 2020 Henrique Marques Ribeiro. :license: MIT, see LICENSE for more details. """ import unittest import os import sys testing_dir = os.path.dirname(os.path.a...
42.05948
138
0.680396
f9434ad6812b364772f198c34b0d780c1176903a
12,108
py
Python
yum/gui.py
HalfDeadPie/Yum4FIT
e47ae12f9da037c5c56277ae3e58d8d29b9692d0
[ "MIT" ]
1
2018-02-12T15:48:59.000Z
2018-02-12T15:48:59.000Z
yum/gui.py
HalfDeadPie/Yum4FIT
e47ae12f9da037c5c56277ae3e58d8d29b9692d0
[ "MIT" ]
1
2018-02-11T09:36:21.000Z
2018-02-11T09:36:21.000Z
yum/gui.py
HalfDeadPie/Yum4FIT
e47ae12f9da037c5c56277ae3e58d8d29b9692d0
[ "MIT" ]
null
null
null
import json import urllib import webbrowser from PyQt5.QtCore import QSize, Qt from PyQt5.QtWidgets import QVBoxLayout, QLabel, QListView, QListWidgetItem, QListWidget, QGroupBox, QTextBrowser, \ QCheckBox, QFileDialog, QInputDialog, QLineEdit from PyQt5.uic.Compiler.qtproxies import QtWidgets from PyQt5 import Qt...
32.991826
120
0.555913
f529ccd3f630381a47bdf178b6d5f04901f084a8
24,142
py
Python
core/shell.py
happysalada/oil
11aa7b4abf93022fceada06abf23922c1c60787a
[ "Apache-2.0" ]
null
null
null
core/shell.py
happysalada/oil
11aa7b4abf93022fceada06abf23922c1c60787a
[ "Apache-2.0" ]
null
null
null
core/shell.py
happysalada/oil
11aa7b4abf93022fceada06abf23922c1c60787a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 """ core/shell.py -- Entry point for the shell interpreter. """ from __future__ import print_function import errno import time from _devbuild.gen import arg_types from _devbuild.gen.option_asdl import option_i, builtin_i from _devbuild.gen.syntax_asdl import source from asdl import runtime fr...
34.887283
129
0.68619
cc8b5733e7c2490bd66cd2444e296424fd581101
1,813
py
Python
venv/lib/python3.8/site-packages/pyqtgraph/exporters/HDF5Exporter.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
23
2017-09-04T13:20:38.000Z
2022-03-08T08:15:17.000Z
venv/lib/python3.8/site-packages/pyqtgraph/exporters/HDF5Exporter.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
102
2021-01-20T11:14:21.000Z
2021-12-12T17:34:42.000Z
venv/lib/python3.8/site-packages/pyqtgraph/exporters/HDF5Exporter.py
willBear/willBear-Fundamental_Analysis
bc67eb1e69dcf6765c0b77314d37f7f165a7318f
[ "MIT" ]
5
2017-11-26T19:40:46.000Z
2021-03-11T17:25:23.000Z
from ..Qt import QtGui, QtCore from .Exporter import Exporter from ..parametertree import Parameter from .. import PlotItem import numpy try: import h5py HAVE_HDF5 = True except ImportError: HAVE_HDF5 = False __all__ = ['HDF5Exporter'] class HDF5Exporter(Exporter): Name = "HDF5 Export: plot...
30.728814
108
0.557639
e5f270ec96878a308026b83752557eb51b15879e
3,873
py
Python
tests/sa/test_sa_default.py
ghostebony/aiomysql
6df06f3bdd6fb7363bf3aafae8cf7fc4f2a8fbc6
[ "MIT" ]
null
null
null
tests/sa/test_sa_default.py
ghostebony/aiomysql
6df06f3bdd6fb7363bf3aafae8cf7fc4f2a8fbc6
[ "MIT" ]
11
2022-01-17T01:47:38.000Z
2022-03-31T01:42:22.000Z
tests/sa/test_sa_default.py
ghostebony/aiomysql
6df06f3bdd6fb7363bf3aafae8cf7fc4f2a8fbc6
[ "MIT" ]
null
null
null
import datetime import pytest from sqlalchemy import MetaData, Table, Column, Integer, String from sqlalchemy import func, DateTime, Boolean from aiomysql import sa meta = MetaData() table = Table('sa_tbl_default_test', meta, Column('id', Integer, nullable=False, primary_key=True), Column...
34.274336
73
0.571133
98e731fb2b350b366de1c540835480bba5858d71
831
py
Python
GPSInfo/tests/test_example.py
jgraber/Python_Scripts
ffdbf17d28521cf5c2a3f7aadfb817e7811f86b7
[ "MIT" ]
null
null
null
GPSInfo/tests/test_example.py
jgraber/Python_Scripts
ffdbf17d28521cf5c2a3f7aadfb817e7811f86b7
[ "MIT" ]
3
2021-07-01T19:36:30.000Z
2021-08-30T19:59:00.000Z
GPSInfo/tests/test_example.py
jgraber/Python_Scripts
ffdbf17d28521cf5c2a3f7aadfb817e7811f86b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ .. currentmodule:: test_example .. moduleauthor:: Johnny Graber <JG@JGraber.ch> This is a sample test module. """ import pytest """ This is just an example test suite. It will check the current project version numbers against the original version numbers and will s...
25.181818
79
0.672684
d82a1e37cb637c76b0b08ec14fbd60c86127cb25
5,778
py
Python
action-baseline/nets/anchor_target_layer.py
leaderj1001/Action-Localization
04d972e6dc3c07d347c70893723d91487c1c8cbd
[ "MIT" ]
24
2019-07-10T15:13:27.000Z
2021-07-08T12:12:40.000Z
action-baseline/nets/anchor_target_layer.py
leaderj1001/Action-Localization
04d972e6dc3c07d347c70893723d91487c1c8cbd
[ "MIT" ]
7
2019-10-06T12:22:04.000Z
2020-04-15T13:14:10.000Z
action-baseline/nets/anchor_target_layer.py
leaderj1001/Action-Localization
04d972e6dc3c07d347c70893723d91487c1c8cbd
[ "MIT" ]
4
2019-10-31T09:01:15.000Z
2021-03-26T04:20:21.000Z
import os from utils.config import cfg import numpy as np import numpy.random as npr from nets.bbox_transform import bbox_overlaps, bbox_transform import torch def anchor_target_layer(rpn_cls_score, gt_boxes, im_info, _feat_stride, all_anchors, num_anchors): """Same as the anchor target layer in original Fast/er ...
40.978723
123
0.690897
4c7b06aae28834cf55e0ad57f40cf8c1394f6c17
3,091
py
Python
beers/models/drinks.py
nvembar/onehundredbeers
96af46ad946e63736f9924cb3b966b0d597254f5
[ "CC0-1.0" ]
1
2017-07-23T22:44:29.000Z
2017-07-23T22:44:29.000Z
beers/models/drinks.py
nvembar/onehundredbeers
96af46ad946e63736f9924cb3b966b0d597254f5
[ "CC0-1.0" ]
25
2017-07-23T21:04:17.000Z
2021-06-10T18:06:50.000Z
beers/models/drinks.py
nvembar/onehundredbeers
96af46ad946e63736f9924cb3b966b0d597254f5
[ "CC0-1.0" ]
1
2019-02-24T01:16:08.000Z
2019-02-24T01:16:08.000Z
"""The objects that can get a player points""" import datetime import logging from django.db import models from django.utils import timezone class BeerManager(models.Manager): """Manages beer data""" def create_beer(self, name, brewery, untappd_url='', style='', description='', brewery_url...
43.535211
89
0.615011
7a343a6529e8dd24e9cc9c56ef68eebf2705efb8
11,233
py
Python
xarray/backends/rasterio_.py
visr/xarray
9e8707d2041cfa038c31fc2284c1fe40bc3368e9
[ "Apache-2.0" ]
null
null
null
xarray/backends/rasterio_.py
visr/xarray
9e8707d2041cfa038c31fc2284c1fe40bc3368e9
[ "Apache-2.0" ]
1
2018-12-05T09:21:17.000Z
2018-12-05T09:21:17.000Z
xarray/backends/rasterio_.py
visr/xarray
9e8707d2041cfa038c31fc2284c1fe40bc3368e9
[ "Apache-2.0" ]
1
2020-05-29T16:17:35.000Z
2020-05-29T16:17:35.000Z
import os import warnings from collections import OrderedDict from distutils.version import LooseVersion import numpy as np from .. import DataArray from ..core import indexing from ..core.utils import is_scalar from .common import BackendArray from .file_manager import CachingFileManager from .locks import Serializa...
35.103125
109
0.611947
12444977af2f3f16a18597bc7a7a79535fe7283e
4,330
py
Python
iot/sway/Experiments/spl_sway.py
moar82/jMetalPy
6c5c0fa50a1e16e2b477e321341c12481ab81515
[ "MIT" ]
null
null
null
iot/sway/Experiments/spl_sway.py
moar82/jMetalPy
6c5c0fa50a1e16e2b477e321341c12481ab81515
[ "MIT" ]
null
null
null
iot/sway/Experiments/spl_sway.py
moar82/jMetalPy
6c5c0fa50a1e16e2b477e321341c12481ab81515
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2016, Jianfeng Chen <jchen37@ncsu.edu> # vim: set ts=4 sts=4 sw=4 expandtab smartindent: # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in t...
30.928571
113
0.621478
3d538d76800ef8093488e7f84c640148d36af63f
5,015
py
Python
pyvisa/resources/usb.py
jpsecher/pyvisa
bb8fd9d21b1efa1f311e12402e21292a656a0e6a
[ "MIT" ]
null
null
null
pyvisa/resources/usb.py
jpsecher/pyvisa
bb8fd9d21b1efa1f311e12402e21292a656a0e6a
[ "MIT" ]
null
null
null
pyvisa/resources/usb.py
jpsecher/pyvisa
bb8fd9d21b1efa1f311e12402e21292a656a0e6a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """High level wrapper for USB resources. This file is part of PyVISA. :copyright: 2014-2020 by PyVISA Authors, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ from .. import attributes, constants from ..attributes import Attribute from .messagebased import Contr...
34.115646
95
0.662014
c3805ccaacc75e2dc1da23d2fbe3e6e59a1d26aa
7,656
py
Python
src/encoders/encoder.py
ligerfotis/semantic-code-search_gpt2_tf
5eff2ceda0789ee265ad08b742f0d728884e3df8
[ "MIT" ]
1
2020-09-12T04:03:12.000Z
2020-09-12T04:03:12.000Z
src/encoders/encoder.py
ligerfotis/semantic-code-search_gpt2_tf
5eff2ceda0789ee265ad08b742f0d728884e3df8
[ "MIT" ]
1
2022-03-03T17:41:25.000Z
2022-03-16T01:11:02.000Z
src/encoders/encoder.py
ligerfotis/semantic-code-search_gpt2_tf
5eff2ceda0789ee265ad08b742f0d728884e3df8
[ "MIT" ]
1
2021-12-07T06:55:41.000Z
2021-12-07T06:55:41.000Z
from abc import ABC, abstractmethod from enum import Enum from typing import List, Dict, Any, Optional, Tuple import tensorflow as tf class QueryType(Enum): DOCSTRING = 'docstring_as_query' FUNCTION_NAME = 'func_name_as_query' class Encoder(ABC): @classmethod @abstractmethod def get_default_hyp...
36.631579
143
0.617947
079672191f91780a7588313a2b0d673b8ffd20d2
5,622
py
Python
src/pip/_internal/vcs/mercurial.py
jameshfisher/pip
8365bc3dcc21809f2fb86c4db5e40aaf2384c897
[ "MIT" ]
1
2020-11-29T23:59:03.000Z
2020-11-29T23:59:03.000Z
src/pip/_internal/vcs/mercurial.py
jameshfisher/pip
8365bc3dcc21809f2fb86c4db5e40aaf2384c897
[ "MIT" ]
null
null
null
src/pip/_internal/vcs/mercurial.py
jameshfisher/pip
8365bc3dcc21809f2fb86c4db5e40aaf2384c897
[ "MIT" ]
null
null
null
import configparser import logging import os from typing import TYPE_CHECKING from pip._internal.exceptions import BadCommand, InstallationError from pip._internal.utils.misc import display_path from pip._internal.utils.subprocess import make_command from pip._internal.utils.temp_dir import TempDirectory from pip._int...
31.943182
78
0.588581
ba5ece0136a21fe86c92336f4506e2736a0d985f
4,572
py
Python
clase_3/mini_desafios.py
ivigilante/curso-python-itba
57ce47a5202c3d4fe3783fea52f550cfec957331
[ "MIT" ]
null
null
null
clase_3/mini_desafios.py
ivigilante/curso-python-itba
57ce47a5202c3d4fe3783fea52f550cfec957331
[ "MIT" ]
null
null
null
clase_3/mini_desafios.py
ivigilante/curso-python-itba
57ce47a5202c3d4fe3783fea52f550cfec957331
[ "MIT" ]
null
null
null
# Leer el archivo Tabla1.xlsx que contiene los puntos de un campeonato. # El archivo tiene dos columnas, Equipo y Puntos. # Determinar de cada equipo la diferencia de gol # (goles a favor - goles en contra), y mostrar todas las diferencias de gol con print import pandas def dif_goles(): archivo = pandas.read_exce...
43.132075
213
0.716754
95879bb07bc8e4e23ae9b627ef673d90ef8aa25d
5,417
py
Python
qiskit_machine_learning/neural_networks/two_layer_qnn.py
Zoufalc/qiskit-machine-learning
aae3941214cd9667a53b643f229d11d0bff32c60
[ "Apache-2.0" ]
1
2021-07-07T21:23:38.000Z
2021-07-07T21:23:38.000Z
qiskit_machine_learning/neural_networks/two_layer_qnn.py
Zoufalc/qiskit-machine-learning
aae3941214cd9667a53b643f229d11d0bff32c60
[ "Apache-2.0" ]
null
null
null
qiskit_machine_learning/neural_networks/two_layer_qnn.py
Zoufalc/qiskit-machine-learning
aae3941214cd9667a53b643f229d11d0bff32c60
[ "Apache-2.0" ]
1
2021-04-11T14:30:32.000Z
2021-04-11T14:30:32.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
41.669231
100
0.657929
7f8dfdc9f5694fe9f05d537c4bf1f600d45a8d4d
9,067
py
Python
one_fm/api/mobile/authentication.py
mohsinalimat/One-FM
ad9a5d8f785c4e69ca68ba1ef75dd26725e5c9c3
[ "MIT" ]
null
null
null
one_fm/api/mobile/authentication.py
mohsinalimat/One-FM
ad9a5d8f785c4e69ca68ba1ef75dd26725e5c9c3
[ "MIT" ]
null
null
null
one_fm/api/mobile/authentication.py
mohsinalimat/One-FM
ad9a5d8f785c4e69ca68ba1ef75dd26725e5c9c3
[ "MIT" ]
null
null
null
import frappe import pyotp from frappe.twofactor import get_otpsecret_for_, process_2fa_for_sms, confirm_otp_token,get_email_subject_for_2fa,get_email_body_for_2fa from frappe.integrations.oauth2 import get_token from frappe.utils.background_jobs import enqueue from frappe.core.doctype.sms_settings.sms_settings import ...
32.732852
136
0.717437
95822f9ebf6e0d2d116705a87dcc095aa3b4b992
22
py
Python
btd6_memory_info/generated/NinjaKiwi/LiNK/DataModels/data_models.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/NinjaKiwi/LiNK/DataModels/data_models.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/NinjaKiwi/LiNK/DataModels/data_models.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class DataModels: pass
22
22
0.863636
62a93f25a7f92ece47e53bc59f627688995310c4
482
py
Python
recipes/Python/577699_Linux_cat_command_backward/recipe-577699.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/577699_Linux_cat_command_backward/recipe-577699.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/577699_Linux_cat_command_backward/recipe-577699.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
#!/usr/bin/python import sys import os.path import os if len(sys.argv) < 2: print('Usage: %s file_name' % sys.argv[0]) fp = open(sys.argv[1],'r') #size = os.path.getsize(sys.argv[1]) fp.seek(-1, 2) try: data = '' data = fp.read(1) while True: fp.seek(-2, 1) t = fp.read(1) i...
16.62069
46
0.508299
9bcbae400db34cdde23edc19918025358558a309
70,327
py
Python
test/install_and_test_tool_shed_repositories/base/util.py
gmauro/galaxy-central
52d50d1b6bbd7db821fffff89607b7c483779f3e
[ "CC-BY-3.0" ]
null
null
null
test/install_and_test_tool_shed_repositories/base/util.py
gmauro/galaxy-central
52d50d1b6bbd7db821fffff89607b7c483779f3e
[ "CC-BY-3.0" ]
1
2015-02-21T18:48:19.000Z
2015-02-27T15:50:32.000Z
test/install_and_test_tool_shed_repositories/base/util.py
gmauro/galaxy-central
52d50d1b6bbd7db821fffff89607b7c483779f3e
[ "CC-BY-3.0" ]
3
2015-02-22T13:34:16.000Z
2020-10-01T01:28:04.000Z
import os import sys cwd = os.getcwd() sys.path.append( cwd ) new_path = [ os.path.join( cwd, "lib" ), os.path.join( cwd, 'test' ), os.path.join( cwd, 'lib', 'tool_shed', 'scripts', 'api' ) ] new_path.extend( sys.path ) sys.path = new_path from galaxy import eggs eggs.require( 'mercurial' ) ...
61.207137
178
0.656846
ebcefe9914a7337dd41cbae7c274e6f6b49bc68d
341
py
Python
schedules/templatetags/calendar_month.py
dvek/scyp
0f70d6a9071edbf9e26b7cb3cfaea38905e192d1
[ "MIT" ]
null
null
null
schedules/templatetags/calendar_month.py
dvek/scyp
0f70d6a9071edbf9e26b7cb3cfaea38905e192d1
[ "MIT" ]
4
2020-06-05T18:27:22.000Z
2021-09-07T23:55:27.000Z
schedules/templatetags/calendar_month.py
dvek/scyp
0f70d6a9071edbf9e26b7cb3cfaea38905e192d1
[ "MIT" ]
null
null
null
from django import template from django.utils import timezone from schedules.services import get_times_from_day from schedules.models import TimeOfDay register = template.Library() @register.inclusion_tag('templatetags/calendar_month.html') def calendar_month(): variable = None print(">>>>>>") return {'...
22.733333
59
0.768328
ed0183a4a8a374589658494b7e71585e5c52685b
1,896
py
Python
TimeFreeze/utils.py
Ashish013/Image-Filters
c49d98232d0b44c0a77a11693658d689dcf89457
[ "MIT" ]
null
null
null
TimeFreeze/utils.py
Ashish013/Image-Filters
c49d98232d0b44c0a77a11693658d689dcf89457
[ "MIT" ]
null
null
null
TimeFreeze/utils.py
Ashish013/Image-Filters
c49d98232d0b44c0a77a11693658d689dcf89457
[ "MIT" ]
null
null
null
import os,requests,cv2,shutil def files_downloader(filename = "rcnn_files"): print("Downloading files for Mask-Rcnn.....") file_url = "http://download.tensorflow.org/models/object_detection/mask_rcnn_inception_v2_coco_2018_01_28.tar.gz" response = requests.get(file_url,stream = True) if (os.p...
46.243902
135
0.666139
ee7aecf1758c14298a1c9f085484f971507cbee1
1,189
py
Python
ERAutomation/steps/manager_form_steps.py
dboudreau4/ReimbursementSystemAutomation
57d8c322ac80dd26679000f8d9d67e16fd865804
[ "MIT" ]
null
null
null
ERAutomation/steps/manager_form_steps.py
dboudreau4/ReimbursementSystemAutomation
57d8c322ac80dd26679000f8d9d67e16fd865804
[ "MIT" ]
null
null
null
ERAutomation/steps/manager_form_steps.py
dboudreau4/ReimbursementSystemAutomation
57d8c322ac80dd26679000f8d9d67e16fd865804
[ "MIT" ]
null
null
null
from behave import given, when, then from selenium.webdriver.support.ui import Select @given('The Manager is on the View Request page') def open_view_request(context): context.driver.get("C:\\Users\\david\\Documents\\ExpenseReimbursementFrontend\\viewrequest.html") @given('The Manager has clicked the view reque...
30.487179
101
0.764508
39957cdbca8b485f2049f76cecf9118988ad09cd
2,750
py
Python
homeassistant/components/epson_monitor/config_flow.py
samsunga3888/core
e2785d4807bdd216982c452ceabe2e6f038cc321
[ "Apache-2.0" ]
null
null
null
homeassistant/components/epson_monitor/config_flow.py
samsunga3888/core
e2785d4807bdd216982c452ceabe2e6f038cc321
[ "Apache-2.0" ]
null
null
null
homeassistant/components/epson_monitor/config_flow.py
samsunga3888/core
e2785d4807bdd216982c452ceabe2e6f038cc321
[ "Apache-2.0" ]
null
null
null
"""Config flow for epson integration.""" import logging import random import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT,CONF_PASSWORD from . import validate_projector from .const import DOMAIN from .exceptions import CannotConnect, Powere...
38.732394
98
0.605455
97331a116d060312acbc78e63b3298ea7c54bca5
290
py
Python
api/user/urls.py
depromeet/octo-palm-server
95028764cda0dbecdda2d24f4e38de853e67e634
[ "MIT" ]
null
null
null
api/user/urls.py
depromeet/octo-palm-server
95028764cda0dbecdda2d24f4e38de853e67e634
[ "MIT" ]
null
null
null
api/user/urls.py
depromeet/octo-palm-server
95028764cda0dbecdda2d24f4e38de853e67e634
[ "MIT" ]
2
2019-01-12T07:14:34.000Z
2019-08-29T02:55:23.000Z
from django.urls import path from . import views urlpatterns = [ path('social/login/', views.SocialUserLoginAPIView.as_view(), name='social_login' ), path('guest/login/', views.GuestUserLoginAPIView.as_view(), name='guest_login' ), ]
19.333333
49
0.610345
5dcbee4c5eeb1173fa44fc3112a7dc6123b59169
77,422
py
Python
tests/components/zwave_js/test_config_flow.py
DoctorU/core
5b218d7e1c4164e32d41473977459cbaf23adf42
[ "Apache-2.0" ]
1
2021-10-01T10:38:31.000Z
2021-10-01T10:38:31.000Z
tests/components/zwave_js/test_config_flow.py
DoctorU/core
5b218d7e1c4164e32d41473977459cbaf23adf42
[ "Apache-2.0" ]
66
2020-10-15T06:45:11.000Z
2022-03-30T23:05:28.000Z
tests/components/zwave_js/test_config_flow.py
DoctorU/core
5b218d7e1c4164e32d41473977459cbaf23adf42
[ "Apache-2.0" ]
1
2022-02-01T13:19:32.000Z
2022-02-01T13:19:32.000Z
"""Test the Z-Wave JS config flow.""" import asyncio from unittest.mock import DEFAULT, call, patch import aiohttp import pytest from zwave_js_server.version import VersionInfo from homeassistant import config_entries, setup from homeassistant.components.hassio.handler import HassioAPIError from homeassistant.compone...
31.218548
117
0.626127
e43ba1e7353c26535170cef8c1aa351a3a1b4bb8
6,901
py
Python
nncf/torch/sparsity/rb/algo.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
136
2020-06-01T14:03:31.000Z
2020-10-28T06:10:50.000Z
nncf/torch/sparsity/rb/algo.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
133
2020-05-26T13:48:04.000Z
2020-10-28T05:25:55.000Z
nncf/torch/sparsity/rb/algo.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
36
2020-05-28T08:18:39.000Z
2020-10-27T14:46:58.000Z
""" Copyright (c) 2019-2022 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 w...
44.522581
114
0.7283
a72e1bb9491da0eb1b00b821f46182c9de7ec2fc
1,106
py
Python
backend/us_covid_stats/etl/load.py
dashmug/us-covid-stats
321f015cb763f0e8d62bddd866020676da732ef8
[ "MIT" ]
2
2020-11-18T19:01:01.000Z
2020-11-25T02:07:22.000Z
backend/us_covid_stats/etl/load.py
dashmug/us-covid-stats
321f015cb763f0e8d62bddd866020676da732ef8
[ "MIT" ]
565
2020-10-10T20:57:05.000Z
2021-08-04T18:05:26.000Z
backend/us_covid_stats/etl/load.py
dashmug/us-covid-stats
321f015cb763f0e8d62bddd866020676da732ef8
[ "MIT" ]
1
2021-03-24T16:08:23.000Z
2021-03-24T16:08:23.000Z
from pandas import DataFrame from us_covid_stats.infrastructure.s3 import MissingFileError from us_covid_stats.repositories.cases import CaseData, save_cases from us_covid_stats.repositories.csv import s3_csv_to_dataframe, dataframe_to_s3_csv def load_data_to_database(latest_data: DataFrame) -> str: try: ...
28.358974
84
0.598553
97c0eb90b923781478cd44a80b76f32947b4dd26
13,730
py
Python
src/paramiko-master/tests/test_sftp_big.py
zhanggen3714/zhanggen_audit
3913d4c0179472b5a0903ecff57ddd45a682ac20
[ "Apache-2.0" ]
1
2020-04-19T14:13:35.000Z
2020-04-19T14:13:35.000Z
src/paramiko-master/tests/test_sftp_big.py
zhanggen3714/zhanggen_audit
3913d4c0179472b5a0903ecff57ddd45a682ac20
[ "Apache-2.0" ]
null
null
null
src/paramiko-master/tests/test_sftp_big.py
zhanggen3714/zhanggen_audit
3913d4c0179472b5a0903ecff57ddd45a682ac20
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2003-2009 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko 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 (a...
36.419098
88
0.46992
c70f29ef60251f0c0efd6ef145b03ad87d0b39f1
1,704
py
Python
enterprise_extensions/frequentist/chi_squared.py
achalumeau/enterprise_extensions
1b12f97c1be0edbc4c8431e6fa4d893970145cbf
[ "MIT" ]
null
null
null
enterprise_extensions/frequentist/chi_squared.py
achalumeau/enterprise_extensions
1b12f97c1be0edbc4c8431e6fa4d893970145cbf
[ "MIT" ]
null
null
null
enterprise_extensions/frequentist/chi_squared.py
achalumeau/enterprise_extensions
1b12f97c1be0edbc4c8431e6fa4d893970145cbf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import scipy.linalg as sl def get_chi2(pta, xs): """Compute generalize chisq for pta: chisq = y^T (N + F phi F^T)^-1 y = y^T N^-1 y - y^T N^-1 F (F^T N^-1 F + phi^-1)^-1 F^T N^-1 y """ params = xs if isinstance(xs, dict) else pta.map_param...
30.428571
81
0.567488
59f45df39cb05ca14445af9767a5be7c4128e067
5,544
py
Python
whirlybird/server/devices/battery_monitor.py
levisaya/whirlybird
9d65933f0e978aa9c907bc6dfa338afd28c4b972
[ "MIT" ]
null
null
null
whirlybird/server/devices/battery_monitor.py
levisaya/whirlybird
9d65933f0e978aa9c907bc6dfa338afd28c4b972
[ "MIT" ]
null
null
null
whirlybird/server/devices/battery_monitor.py
levisaya/whirlybird
9d65933f0e978aa9c907bc6dfa338afd28c4b972
[ "MIT" ]
null
null
null
import time import RPi.GPIO as GPIO class BatteryMonitor(object): """ Device to read the voltage off an ADC. Specifically used to monitor the lipo voltage. """ def __init__(self, vin_max, vin_min, r1, r2, chip_sel...
39.6
119
0.602633
d128a2f96f1afa225c64d5a14414ef590a7b2500
6,220
py
Python
pbt/members.py
SamuelMarks/pbt-keras
86506e9b7f01c73636cdc0cf442d6c2c1141dae1
[ "MIT" ]
31
2019-07-29T09:20:41.000Z
2022-02-16T19:10:24.000Z
pbt/members.py
SamuelMarks/pbt-keras
86506e9b7f01c73636cdc0cf442d6c2c1141dae1
[ "MIT" ]
7
2019-09-20T07:43:47.000Z
2022-02-10T00:33:12.000Z
pbt/members.py
SamuelMarks/pbt-keras
86506e9b7f01c73636cdc0cf442d6c2c1141dae1
[ "MIT" ]
4
2019-10-05T17:27:58.000Z
2020-05-11T08:34:55.000Z
from collections import deque import numpy as np from pbt.hyperparameters import find_hyperparameters_layer, \ find_hyperparameters_model, Hyperparameter, FloatHyperparameter class Member: """Population member. Each member wraps an instance of a Keras model to tune. The member holds references to t...
34.555556
80
0.623151
19dbe065aba5f910940f9497d317b24c35de905f
1,588
py
Python
api/pokeme/commands.py
bahattincinic/pokeme
ec8b63842fbe6aa4512704f304af91cd16c97ea8
[ "MIT" ]
1
2020-10-12T07:14:28.000Z
2020-10-12T07:14:28.000Z
api/pokeme/commands.py
bahattincinic/pokeme
ec8b63842fbe6aa4512704f304af91cd16c97ea8
[ "MIT" ]
null
null
null
api/pokeme/commands.py
bahattincinic/pokeme
ec8b63842fbe6aa4512704f304af91cd16c97ea8
[ "MIT" ]
null
null
null
import datetime import schedule import time import pytz from functools import partial from apistar import Command from apistar.backends.sqlalchemy_backend import ( create_tables, drop_tables, SQLAlchemyBackend ) from .models import Note, User from .utils import send_push_notification from .settings import settin...
24.8125
75
0.653652
9df5a0d44f0918c075c982605d430047f4b9a6ca
25,881
py
Python
trackintel_modified.py
dlaumer/ipa2020
ca71bc5c38d4a08543b12715968b31eb067948e9
[ "MIT" ]
null
null
null
trackintel_modified.py
dlaumer/ipa2020
ca71bc5c38d4a08543b12715968b31eb067948e9
[ "MIT" ]
null
null
null
trackintel_modified.py
dlaumer/ipa2020
ca71bc5c38d4a08543b12715968b31eb067948e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Trackintel This file is mostly refered to the trackintel package of MIE lab except 1 - a maximum time threshold is added to detect stay points in extract_staypoints_ipa 2 - the final stay point is treated as the stay point if it meets the minimum time thre...
53.583851
198
0.520575
abd466032857caa3c62309be4570b75b23f3e595
1,829
py
Python
test/data/statshelp.py
jackscott/python-statlib
168d5b9c879cf64ce93862aadff4c9e0253f007c
[ "MIT" ]
null
null
null
test/data/statshelp.py
jackscott/python-statlib
168d5b9c879cf64ce93862aadff4c9e0253f007c
[ "MIT" ]
null
null
null
test/data/statshelp.py
jackscott/python-statlib
168d5b9c879cf64ce93862aadff4c9e0253f007c
[ "MIT" ]
1
2019-12-19T14:31:52.000Z
2019-12-19T14:31:52.000Z
from statlib.stats import * from statlib import pstat def dopaired(x,y): """\nRuns all paired stats that are possible to run on the data provided. Assumes 2 columns to the input data. Format: dopaired(x,y) Returns: appropriate statistcs\n""" t,p = ttest_ind(x,y) print '\nAssuming 2 independen...
36.58
114
0.581739
03b34cf4e36df6fa5c2fba716aff62516f5928a2
2,618
py
Python
Tools/LyTestTools/tests/unit/test_launcher_mac.py
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
1
2022-03-28T08:06:58.000Z
2022-03-28T08:06:58.000Z
Tools/LyTestTools/tests/unit/test_launcher_mac.py
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
null
null
null
Tools/LyTestTools/tests/unit/test_launcher_mac.py
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT Unit Tests for mac launcher-wrappers: all are sanity code-path tests, since no interprocess actions should be taken...
37.942029
115
0.695569
aa00cf234d9ee69b9ec95ab6020b59348f174aa4
94,602
py
Python
pandas/tests/frame/test_constructors.py
big-o/pandas
a2178065fd5eecc2562f8c3725ac09573b687022
[ "BSD-3-Clause" ]
2
2019-11-13T18:20:29.000Z
2020-04-18T02:58:39.000Z
pandas/tests/frame/test_constructors.py
big-o/pandas
a2178065fd5eecc2562f8c3725ac09573b687022
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/test_constructors.py
big-o/pandas
a2178065fd5eecc2562f8c3725ac09573b687022
[ "BSD-3-Clause" ]
1
2020-01-31T14:26:04.000Z
2020-01-31T14:26:04.000Z
from collections import OrderedDict, abc from datetime import datetime, timedelta import functools import itertools import numpy as np import numpy.ma as ma import numpy.ma.mrecords as mrecords import pytest from pandas.compat import PY36, is_platform_little_endian from pandas.core.dtypes.cast import construct_1d_ob...
36.413395
88
0.552155
7036966b1cecbdc9588c3a671250a530156ad61c
117
py
Python
addons/payment_stripe_sca/controllers/__init__.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/payment_stripe_sca/controllers/__init__.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/payment_stripe_sca/controllers/__init__.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import main
39
74
0.709402
a1101850dd613fc30ec3216ba7c389f21ed8a565
1,420
py
Python
src/sentry/api/endpoints/internal_mail.py
xiaotian45123/sentry
93428feeaa495cc36c5dcab90f3bb2bb967dd311
[ "BSD-3-Clause" ]
1
2020-02-27T02:46:25.000Z
2020-02-27T02:46:25.000Z
src/sentry/api/endpoints/internal_mail.py
xiaotian45123/sentry
93428feeaa495cc36c5dcab90f3bb2bb967dd311
[ "BSD-3-Clause" ]
1
2020-11-05T14:54:44.000Z
2020-11-19T21:54:19.000Z
src/sentry/api/endpoints/internal_mail.py
xiaotian45123/sentry
93428feeaa495cc36c5dcab90f3bb2bb967dd311
[ "BSD-3-Clause" ]
1
2017-02-09T06:36:57.000Z
2017-02-09T06:36:57.000Z
from __future__ import absolute_import import six from rest_framework.response import Response from sentry import options from sentry.utils.email import send_mail from sentry.api.base import Endpoint from sentry.api.permissions import SuperuserPermission class InternalMailEndpoint(Endpoint): permission_classes ...
32.272727
102
0.612676
fa1ad641893aed158a086c101410888a31cc2fa2
9,904
py
Python
train.py
winterest/mot-transform
92cd7d55b273d603572a62173c6b5dc75156734f
[ "MIT" ]
null
null
null
train.py
winterest/mot-transform
92cd7d55b273d603572a62173c6b5dc75156734f
[ "MIT" ]
null
null
null
train.py
winterest/mot-transform
92cd7d55b273d603572a62173c6b5dc75156734f
[ "MIT" ]
null
null
null
import argparse import json import time from time import gmtime, strftime import test import torch from models import Darknet, load_darknet_weights from shutil import copyfile from utils.datasets import JointDataset, collate_fn from utils.utils import mkdir_if_missing, init_seeds from utils.log import logger ...
40.757202
126
0.5833
ac1a8ac3619065a311acab1a40daf00638474ee1
1,838
py
Python
leetcode/100.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
leetcode/100.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
leetcode/100.py
GihwanKim/Baekjoon
52eb2bf80bb1243697858445e5b5e2d50d78be4e
[ "MIT" ]
null
null
null
""" File: 100.py Title: Same Tree Difficulty: Easy URL: https://leetcode.com/problems/same-tree/ """ import unittest from typing import List class TreeNode: def __init__(self, val: int = 0, left: "TreeNode" = None, right: "TreeNode" = None): ...
23.87013
59
0.556039
73511231acaa6a4ba905680b1a0bc2ec7cbc3701
1,240
py
Python
userbot/plugins/weebify.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/weebify.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/weebify.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
""" Weebify a text, Ported from Saitama Bot. By :- @PhycoNinja13b Modified by :- @kirito6969 .weeb <text> """ from uniborg.util import lightning_cmd normiefont = [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", ...
14.939759
73
0.452419
a862ec5679723325232f56b567b5f351b126f391
3,628
py
Python
mesonbuild/scripts/meson_exe.py
ueno/meson
5a0fec13b6463f45f88860d67e8fb50f34c8d739
[ "Apache-2.0" ]
1
2019-05-02T17:44:19.000Z
2019-05-02T17:44:19.000Z
mesonbuild/scripts/meson_exe.py
ueno/meson
5a0fec13b6463f45f88860d67e8fb50f34c8d739
[ "Apache-2.0" ]
null
null
null
mesonbuild/scripts/meson_exe.py
ueno/meson
5a0fec13b6463f45f88860d67e8fb50f34c8d739
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2016 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
35.223301
98
0.616318
2ebee1fad349339bc3b68c3e66c6e95cfc49b165
1,247
py
Python
fn_sentinelone/fn_sentinelone/components/funct_sentinelone_abort_disk_scan.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
null
null
null
fn_sentinelone/fn_sentinelone/components/funct_sentinelone_abort_disk_scan.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
null
null
null
fn_sentinelone/fn_sentinelone/components/funct_sentinelone_abort_disk_scan.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use # (c) Copyright IBM Corp. 2010, 2022. All Rights Reserved. """AppFunction implementation""" from resilient_circuits import AppFunctionComponent, app_function, FunctionResult from fn_sentinelone.lib.sentinelone_common import SentinelOneClien...
33.702703
89
0.72494
9d686239047a7c9f88df45568ba70a7aec7f9be7
9,725
py
Python
octoprint_octolabel/__init__.py
LowieGoossens/octolabel
5de688da7f32e73fa9daeffb0e1f12257a61d779
[ "MIT" ]
7
2021-03-22T09:27:50.000Z
2021-10-03T16:08:02.000Z
octoprint_octolabel/__init__.py
LowieGoossens/octolabel
5de688da7f32e73fa9daeffb0e1f12257a61d779
[ "MIT" ]
4
2021-03-21T18:09:34.000Z
2021-10-06T10:16:20.000Z
octoprint_octolabel/__init__.py
LowieGoossens/octolabel
5de688da7f32e73fa9daeffb0e1f12257a61d779
[ "MIT" ]
2
2021-03-21T04:19:54.000Z
2021-03-21T19:56:24.000Z
# coding=utf-8 from __future__ import absolute_import import os import subprocess from datetime import timedelta import octoprint.filemanager # from .discord import Hook import octoprint.plugin import octoprint.settings import requests class OctolabelPlugin(octoprint.plugin.EventHandlerPlugin, octoprint.plug...
29.64939
117
0.673111