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
4414ffb6ed6ec95ee5ef9886e9cc643654473f99
45,372
py
Python
samt/samt.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
null
null
null
samt/samt.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
null
null
null
samt/samt.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
null
null
null
import asyncio import logging import math import platform import signal import sys import traceback import types from collections import deque from inspect import iscoroutinefunction, isgenerator, isasyncgen from os import path, system from typing import Dict, Callable, Tuple, Iterable, Union, Collection import aiotas...
37.466557
124
0.536719
b5112bb2de95eccd0d4cfce20903060b02b66346
1,485
py
Python
Bot/Utils/pomice/exceptions.py
SirEduRs/Aurora
80ac028134de93726d8a3eb8060e8a48e7009093
[ "MIT" ]
null
null
null
Bot/Utils/pomice/exceptions.py
SirEduRs/Aurora
80ac028134de93726d8a3eb8060e8a48e7009093
[ "MIT" ]
null
null
null
Bot/Utils/pomice/exceptions.py
SirEduRs/Aurora
80ac028134de93726d8a3eb8060e8a48e7009093
[ "MIT" ]
null
null
null
class PomiceException(Exception): """Base of all Pomice exceptions.""" class NodeException(Exception): """Base exception for nodes.""" class NodeCreationError(NodeException): """There was a problem while creating the node.""" class NodeConnectionFailure(NodeException): """There was a problem while...
22.846154
75
0.726599
89a47ef8a2197b28ac2d3660aac1fc8b18407385
379
py
Python
test_subprocess.py
roopeshhv/JDOT
a680d6667a56f6344ee5f87810bcebba5324849d
[ "MIT" ]
null
null
null
test_subprocess.py
roopeshhv/JDOT
a680d6667a56f6344ee5f87810bcebba5324849d
[ "MIT" ]
null
null
null
test_subprocess.py
roopeshhv/JDOT
a680d6667a56f6344ee5f87810bcebba5324849d
[ "MIT" ]
null
null
null
import paramiko client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect('10.4.96.74', username='vivek', password='nutanix/4u') stdin, stdout, stderr = client.exec_command('cd /home/nutanix; wget http://10.4.8.60/acro_images/DISKs/cirros-0.3.4-x86_64-disk.img') #for l...
29.153846
133
0.744063
ca63eb2165f43946065de42c27e5f0a22ab9d4fe
2,540
py
Python
app/players/forms.py
rookiebulls/scala
504efd5187b8f15a54086590e3e5572d9eda8f16
[ "MIT" ]
null
null
null
app/players/forms.py
rookiebulls/scala
504efd5187b8f15a54086590e3e5572d9eda8f16
[ "MIT" ]
null
null
null
app/players/forms.py
rookiebulls/scala
504efd5187b8f15a54086590e3e5572d9eda8f16
[ "MIT" ]
null
null
null
from flask.ext.wtf import Form from wtforms import StringField, TextAreaField, SubmitField, PasswordField from wtforms.fields.html5 import DateField from wtforms.validators import Optional, Length, Required, URL, Email, Regexp, EqualTo from wtforms import ValidationError from ..models import User, ContentManager clas...
47.924528
124
0.68189
580925c386c5ab5f61dfbdac476ba09dd037ff47
2,616
py
Python
DataWranglingMongoDB/Lesson2/find_author_data.py
napjon/moocs_solution
5c96f43f6cb2ae643f482580446869953a99beb6
[ "MIT" ]
13
2016-04-29T07:21:44.000Z
2021-09-29T03:20:51.000Z
DataWranglingMongoDB/Lesson2/find_author_data.py
napjon/moocs_solution
5c96f43f6cb2ae643f482580446869953a99beb6
[ "MIT" ]
1
2017-02-07T07:37:20.000Z
2017-02-19T08:37:17.000Z
DataWranglingMongoDB/Lesson2/find_author_data.py
napjon/moocs_solution
5c96f43f6cb2ae643f482580446869953a99beb6
[ "MIT" ]
13
2016-01-25T03:23:57.000Z
2019-10-13T15:29:23.000Z
#!/usr/bin/env python # Your task here is to extract data from xml on authors of an article # and add it to a list, one item for an author. # See the provided data structure for the expected format. # The tags for first name, surname and email should map directly # to the dictionary keys import xml.etree.ElementTree a...
40.246154
551
0.546636
f02705ae1c9e695e5e33f7f5cddfb55e4ffa8e79
16,734
py
Python
idcmanager_sdk/api/idcrack/list_v2_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
idcmanager_sdk/api/idcrack/list_v2_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
idcmanager_sdk/api/idcrack/list_v2_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: list_v2.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf imp...
44.624
1,401
0.752002
17ee0033b4d5c79db1da60df3d70fbab11daa5aa
6,764
py
Python
kubernetes/client/models/v1beta1_replica_set_list.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
1
2019-07-12T05:38:06.000Z
2019-07-12T05:38:06.000Z
kubernetes/client/models/v1beta1_replica_set_list.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_replica_set_list.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
1
2021-05-18T12:25:56.000Z
2021-05-18T12:25:56.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.11.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
31.90566
281
0.616795
89084d000194aef0ba40dc77f22b5a290cfc8142
3,770
py
Python
sdk/python/pulumi_azure_nextgen/web/v20200601/list_web_app_function_keys.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/web/v20200601/list_web_app_function_keys.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/web/v20200601/list_web_app_function_keys.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
31.157025
150
0.622281
80f892e1422771bb072594b8f7ee11549b23d08c
10,734
py
Python
qa/rpc-tests/maxuploadtarget.py
CryptoRane/Rane
135c52098deda505dc240f468e2b6b2a35622610
[ "MIT" ]
null
null
null
qa/rpc-tests/maxuploadtarget.py
CryptoRane/Rane
135c52098deda505dc240f468e2b6b2a35622610
[ "MIT" ]
null
null
null
qa/rpc-tests/maxuploadtarget.py
CryptoRane/Rane
135c52098deda505dc240f468e2b6b2a35622610
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import time '''...
40.353383
140
0.654742
0980de09ddae7297291f685c234ffeb5c31fdc6a
6,630
py
Python
pro3/query_system/data.py
Jack-Lio/-Information-retrieval-2019
5c5eb675dbc6ff6977a759da07326b9629ff7f3f
[ "MIT" ]
null
null
null
pro3/query_system/data.py
Jack-Lio/-Information-retrieval-2019
5c5eb675dbc6ff6977a759da07326b9629ff7f3f
[ "MIT" ]
null
null
null
pro3/query_system/data.py
Jack-Lio/-Information-retrieval-2019
5c5eb675dbc6ff6977a759da07326b9629ff7f3f
[ "MIT" ]
null
null
null
############################## # get data from source files # filename:init.py # author: liwei # StuID: 1711350 # date: 2019.12.5 ############################## import os from shutil import copyfile from sys import exit import sys import numpy as np # 学院 xy_dict = { "南开大学商学院":"bs", "南开大学计算机学院":"cc", ...
34.175258
121
0.511312
eb9ad40e2924b2837a946bfdd89aed738d293424
7,502
py
Python
spark/mod_decompress_audio.py
droyston/spectralize
572770e7358acc3ec433470659759c17453409f2
[ "MIT" ]
null
null
null
spark/mod_decompress_audio.py
droyston/spectralize
572770e7358acc3ec433470659759c17453409f2
[ "MIT" ]
null
null
null
spark/mod_decompress_audio.py
droyston/spectralize
572770e7358acc3ec433470659759c17453409f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jun 17 16:12:56 2020 @author: dylanroyston """ # import/configure packages import numpy as np import pandas as pd #import pyarrow as pa import librosa import librosa.display from pathlib import Path #import Ipython.display as ipd #import matplotlib.pyp...
30.620408
94
0.565049
1714ebc98310a294b05e0deb6af805f67d5e468c
223
py
Python
Semester 3/Code Optimization and Debugging-I/Python/Exp_03 - Lowercase to Uppercase.py
Killbot2614/Programming-Lab
ce9ccecf35deba4ee749026b4f5c3a9e6b0ac548
[ "MIT" ]
13
2021-10-16T05:17:51.000Z
2022-01-12T14:53:55.000Z
Semester 3/Code Optimization and Debugging-I/Python/Exp_03 - Lowercase to Uppercase.py
Killbot2614/Code-Optimization-and-Debugging-I
cb3bd0fc5bfb703b29b4a4b9a751f75792ac4a8a
[ "MIT" ]
null
null
null
Semester 3/Code Optimization and Debugging-I/Python/Exp_03 - Lowercase to Uppercase.py
Killbot2614/Code-Optimization-and-Debugging-I
cb3bd0fc5bfb703b29b4a4b9a751f75792ac4a8a
[ "MIT" ]
5
2021-09-24T17:28:08.000Z
2021-12-16T15:47:27.000Z
# Python Program to convert lowercase string to uppercase string # Get the input string # Convert lower case to upper case # Print the output print(input().upper()) # Input: sathyabama # Output: SATHYABAMA
18.583333
66
0.70852
bcc68e1ffe11f4ca3178e81ecccb6f5ccc81896e
11,692
py
Python
stochpy/__init__.py
bgoli/stochpy
ba06e5eaf1204dbc8ea39996ff8a08e9b0b5997d
[ "BSD-3-Clause" ]
35
2016-02-29T22:56:07.000Z
2022-03-06T17:21:29.000Z
stochpy/__init__.py
bgoli/stochpy
ba06e5eaf1204dbc8ea39996ff8a08e9b0b5997d
[ "BSD-3-Clause" ]
6
2016-10-13T12:43:54.000Z
2021-04-30T09:06:59.000Z
stochpy/__init__.py
bgoli/stochpy
ba06e5eaf1204dbc8ea39996ff8a08e9b0b5997d
[ "BSD-3-Clause" ]
13
2016-07-07T19:49:25.000Z
2021-05-14T20:24:17.000Z
#! /usr/bin/env python """ StochPy - Stochastic modeling in Python (http://stochpy.sourceforge.net) Copyright (C) 2010-2015 T.R Maarlveld, B.G. Olivier, F.J. Bruggeman all rights reserved. Timo R. Maarleveld (tmd200@users.sourceforge.net) Centrum Wiskunde & Informatica, Amsterdam, Netherlands VU University, Amsterdam...
40.178694
168
0.629234
e48d4cfd7b3e6484a3c31e160208e23335658a3a
2,619
py
Python
accuracy/visualization/plots_lib.py
phanhuy1502/FYP
600f694bc173547fba167e4885762d96e73f061e
[ "MIT" ]
null
null
null
accuracy/visualization/plots_lib.py
phanhuy1502/FYP
600f694bc173547fba167e4885762d96e73f061e
[ "MIT" ]
null
null
null
accuracy/visualization/plots_lib.py
phanhuy1502/FYP
600f694bc173547fba167e4885762d96e73f061e
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.ticker as ticker def parallel_coordinates(data_sets, style=None): dims = len(data_sets[0]) x = range(dims) fig, axes = plt.subplots(1, dims-1, sharey=False) if style is None: style = ['r-']*len(data_sets) # Calculate the limits on the ...
30.103448
68
0.559374
bd481a202c10749e8890f8eece5014564f4d52e4
1,131
py
Python
localizacao/viewsets.py
WesGtoX/agro-digital
c4a453ae24e774cac48b032c921916820ff7b38f
[ "MIT" ]
null
null
null
localizacao/viewsets.py
WesGtoX/agro-digital
c4a453ae24e774cac48b032c921916820ff7b38f
[ "MIT" ]
null
null
null
localizacao/viewsets.py
WesGtoX/agro-digital
c4a453ae24e774cac48b032c921916820ff7b38f
[ "MIT" ]
null
null
null
from rest_framework import viewsets from slugify import slugify from .models import Regiao, Cidade from .serializers import RegiaoSerializer, CidadeSerializer class RegiaoViewSet(viewsets.ModelViewSet): queryset = Regiao.objects.all() serializer_class = RegiaoSerializer def perform_create(self, seriali...
32.314286
60
0.704686
568b531570d13c5ff92688a457d05097c6f68805
7,533
py
Python
mycroft/util/file_utils.py
OpenVoiceOS/ovos-core
662577740a6e8cb5bb92bec014a05be9a6870b05
[ "Apache-2.0" ]
4
2021-11-03T22:06:30.000Z
2021-11-19T08:03:58.000Z
mycroft/util/file_utils.py
OpenVoiceOS/ovos-core
662577740a6e8cb5bb92bec014a05be9a6870b05
[ "Apache-2.0" ]
62
2021-10-29T21:18:51.000Z
2022-03-30T07:08:29.000Z
mycroft/util/file_utils.py
OpenVoiceOS/ovos-core
662577740a6e8cb5bb92bec014a05be9a6870b05
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
31.128099
90
0.653259
a90ec2349a42388bec95da6af495c9a0c076b58e
11,251
py
Python
mayan/apps/linking/tests/test_api.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
2,743
2017-12-18T07:12:30.000Z
2022-03-27T17:21:25.000Z
mayan/apps/linking/tests/test_api.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
15
2017-12-18T14:58:07.000Z
2021-03-01T20:05:05.000Z
mayan/apps/linking/tests/test_api.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
257
2017-12-18T03:12:58.000Z
2022-03-25T08:59:10.000Z
from __future__ import unicode_literals from django.contrib.auth import get_user_model from django.test import override_settings from django.urls import reverse from documents.models import DocumentType from documents.tests.literals import ( TEST_DOCUMENT_TYPE_LABEL, TEST_SMALL_DOCUMENT_PATH ) from rest_api.tests...
32.611594
89
0.652298
2a4f3d9a784546d79b9452955fdae4420925723c
47,860
py
Python
tests/gclient_scm_test.py
nbaiot/depot_tools
efce0d1b7657c440c90f0f4bce614b96672b9e0b
[ "BSD-3-Clause" ]
1
2021-09-10T06:10:02.000Z
2021-09-10T06:10:02.000Z
tests/gclient_scm_test.py
nbaiot/depot_tools
efce0d1b7657c440c90f0f4bce614b96672b9e0b
[ "BSD-3-Clause" ]
null
null
null
tests/gclient_scm_test.py
nbaiot/depot_tools
efce0d1b7657c440c90f0f4bce614b96672b9e0b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env vpython3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unit tests for gclient_scm.py.""" # pylint: disable=E1103 from shutil import rmtree from subprocess import Popen, PIPE, STDO...
35.610119
80
0.647367
6df241ee328db0bb0b89d2023ec69c8f60af9c79
1,480
py
Python
tacker/db/migration/alembic_migrations/versions/f5c1c3b0f6b4_set_default_value_for_deleted_at.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
116
2015-10-18T02:57:08.000Z
2022-03-15T04:09:18.000Z
tacker/db/migration/alembic_migrations/versions/f5c1c3b0f6b4_set_default_value_for_deleted_at.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
6
2016-11-07T22:15:54.000Z
2021-05-09T06:13:08.000Z
tacker/db/migration/alembic_migrations/versions/f5c1c3b0f6b4_set_default_value_for_deleted_at.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
166
2015-10-20T15:31:52.000Z
2021-11-12T08:39:49.000Z
# Copyright 2017 OpenStack Foundation # # 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 ...
30.204082
78
0.70473
2ddb8fd7fcb206b0c97ffbe520801eb6898a69e3
3,401
py
Python
lib/fontv/settings.py
source-foundry/font-v
590c9f540cf73ffccc2a1907b186d16b296729e5
[ "MIT" ]
14
2017-09-15T23:29:03.000Z
2021-12-06T12:48:39.000Z
lib/fontv/settings.py
source-foundry/font-v
590c9f540cf73ffccc2a1907b186d16b296729e5
[ "MIT" ]
135
2017-09-05T13:33:29.000Z
2022-03-28T08:03:02.000Z
lib/fontv/settings.py
source-foundry/font-v
590c9f540cf73ffccc2a1907b186d16b296729e5
[ "MIT" ]
6
2018-10-23T14:49:17.000Z
2021-12-01T22:47:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # Library Name # ------------------------------------------------------------------------------ lib_name = "font-v" # -------------------------------------------------------------------------...
41.47561
277
0.534549
7a309190f32e5b8543148e0ca45aff47bb3af6a9
95
py
Python
orderadmin/apps.py
jackyicu/django-orderadmin
a634c9f447fb8e352077317d9d3f43e40488e47b
[ "BSD-3-Clause" ]
null
null
null
orderadmin/apps.py
jackyicu/django-orderadmin
a634c9f447fb8e352077317d9d3f43e40488e47b
[ "BSD-3-Clause" ]
null
null
null
orderadmin/apps.py
jackyicu/django-orderadmin
a634c9f447fb8e352077317d9d3f43e40488e47b
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig class OrderadminConfig(AppConfig): name = 'orderadmin'
15.833333
34
0.768421
7ce8dc272c5411f42bdc279378fbb4917b4e00a3
1,256
py
Python
release/scripts/addons/add_camera_rigs/composition_guides_menu.py
vic3t3chn0/Bforartists
7c54a60dd7aa568e20ae7e3778dfef993b61b7b5
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-01-18T22:13:24.000Z
2020-01-18T22:13:24.000Z
release/scripts/addons/add_camera_rigs/composition_guides_menu.py
vic3t3chn0/Bforartists
7c54a60dd7aa568e20ae7e3778dfef993b61b7b5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/addons/add_camera_rigs/composition_guides_menu.py
vic3t3chn0/Bforartists
7c54a60dd7aa568e20ae7e3778dfef993b61b7b5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
import bpy from bpy.types import Menu class ADD_CAMERA_RIGS_MT_composition_guides_menu(Menu): bl_label = "Composition Guides" bl_idname = "ADD_CAMERA_RIGS_MT_composition_guides_menu" def draw(self, context): layout = self.layout activeCameraName = bpy.context.active_object.children[0].na...
29.904762
76
0.730892
e85a44cf4455afb350e84052870e9a485db0fbee
3,350
py
Python
venv/lib/python3.8/site-packages/awscli/customizations/cloudformation/yamlhelper.py
sr9dc/DS_Systems_Project_2
0b348c1dd300756f732b4ce13e04239036dc601a
[ "MIT" ]
4
2022-01-07T13:37:33.000Z
2022-03-31T03:21:17.000Z
venv/lib/python3.8/site-packages/awscli/customizations/cloudformation/yamlhelper.py
sr9dc/DS_Systems_Project_2
0b348c1dd300756f732b4ce13e04239036dc601a
[ "MIT" ]
1
2022-01-27T04:21:58.000Z
2022-01-27T04:21:58.000Z
venv/lib/python3.8/site-packages/awscli/customizations/cloudformation/yamlhelper.py
sr9dc/DS_Systems_Project_2
0b348c1dd300756f732b4ce13e04239036dc601a
[ "MIT" ]
null
null
null
# Copyright 2012-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file ac...
31.308411
79
0.697015
3715cb36e6511a4f1793be1aad5112b33225ce16
4,888
py
Python
models/guided_pix2pix_model.py
MHC-F2V-Research/Image-Reconstruction-Ref2
0a124365fc14708bca092f68205987885c91212a
[ "BSD-3-Clause" ]
197
2019-10-24T19:51:17.000Z
2022-01-29T09:23:49.000Z
models/guided_pix2pix_model.py
andrewjong/Guided-pix2pix
0c6a7b5fde50ad7ea4fb20a6136fc6cb6c4e5542
[ "BSD-3-Clause" ]
10
2019-10-26T23:56:47.000Z
2021-09-03T13:06:53.000Z
models/guided_pix2pix_model.py
andrewjong/Guided-pix2pix
0c6a7b5fde50ad7ea4fb20a6136fc6cb6c4e5542
[ "BSD-3-Clause" ]
24
2019-10-25T06:36:30.000Z
2022-02-10T15:07:46.000Z
import torch from util.image_pool import ImagePool from .base_model import BaseModel from . import networks from util import util class GuidedPix2PixModel(BaseModel): def name(self): return 'GuidedPix2PixModel' def initialize(self, opt): BaseModel.initialize(self, opt) self.isTrain = o...
38.793651
246
0.596768
0b8e0dda873a634c155a3abd50ce71b567367d29
4,633
py
Python
openpose/model/roi_heads/uv_head/inference.py
leehsiu/pyopenpose
c4feef04a9e563fb91e18f745bc187c6f2aeb72c
[ "MIT" ]
null
null
null
openpose/model/roi_heads/uv_head/inference.py
leehsiu/pyopenpose
c4feef04a9e563fb91e18f745bc187c6f2aeb72c
[ "MIT" ]
null
null
null
openpose/model/roi_heads/uv_head/inference.py
leehsiu/pyopenpose
c4feef04a9e563fb91e18f745bc187c6f2aeb72c
[ "MIT" ]
null
null
null
import torch from torch import nn class UVPostProcessor(nn.Module): def __init__(self, keypointer=None): super(UVPostProcessor, self).__init__() self.keypointer = keypointer def forward(self, x, boxes): mask_prob = x if self.keypointer: mask_prob = self.keypointer...
31.951724
83
0.60695
4d9970b82413e179ad9199bda5f91245c1fd980c
8,879
py
Python
vatreturn.py
everknow/vatreturn
b35f8a5b5d1ab6993f8ed507b9bd55cf5675d8d1
[ "MIT" ]
null
null
null
vatreturn.py
everknow/vatreturn
b35f8a5b5d1ab6993f8ed507b9bd55cf5675d8d1
[ "MIT" ]
null
null
null
vatreturn.py
everknow/vatreturn
b35f8a5b5d1ab6993f8ed507b9bd55cf5675d8d1
[ "MIT" ]
null
null
null
from functools import wraps import json import os import requests import datetime from flask import Flask, redirect, url_for from flask import send_from_directory from flask import render_template, g from flask import request from flask import session from hmrc_provider import make_hmrc_blueprint, hmrc from urllib.par...
34.15
186
0.644667
38506ad17eb28d55a72a0d603883e69598d033bb
3,244
py
Python
pytest_splunk_addon_ui_smartx/components/controls/oauth_select.py
artemrys/addon-factory-smartx-ui-test-library
a0ea68a2f90f5662eac383b74043f69e01830251
[ "Apache-2.0" ]
1
2021-03-29T07:03:15.000Z
2021-03-29T07:03:15.000Z
pytest_splunk_addon_ui_smartx/components/controls/oauth_select.py
artemrys/addon-factory-smartx-ui-test-library
a0ea68a2f90f5662eac383b74043f69e01830251
[ "Apache-2.0" ]
181
2020-12-15T19:31:07.000Z
2022-03-18T08:06:06.000Z
pytest_splunk_addon_ui_smartx/components/controls/oauth_select.py
splunk/addon-factory-smartx-ui-test-library
d1bb8d0ce728d53d3c15425c3b5a25e2e526d80e
[ "Apache-2.0" ]
2
2022-02-01T18:39:37.000Z
2022-03-27T16:51:40.000Z
# # Copyright 2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
32.44
98
0.609125
9693add9535f0d8729ba6cd2d4781a323ba18de7
1,324
py
Python
web_dynamic/4-hbnb.py
JoseMarulanda/AirBnB_clone_v4
939bb49decc49194fcd91e585f03ca85a27d9a5e
[ "MIT" ]
null
null
null
web_dynamic/4-hbnb.py
JoseMarulanda/AirBnB_clone_v4
939bb49decc49194fcd91e585f03ca85a27d9a5e
[ "MIT" ]
null
null
null
web_dynamic/4-hbnb.py
JoseMarulanda/AirBnB_clone_v4
939bb49decc49194fcd91e585f03ca85a27d9a5e
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Flask App that integrates with AirBnB static HTML Template """ from flask import Flask, render_template, url_for from models import storage import uuid # flask setup app = Flask(__name__) app.url_map.strict_slashes = False port = 5000 host = '0.0.0.0' # begin flask page rendering @app.teardown...
28.170213
75
0.608761
88f8ff30d10e8cb32963a1c312640f02dd4e0998
4,645
py
Python
perftest/spreadbenchmark.py
wendazhou/finufft
ba52c1d823186aac3ae33341921136b9ed3b6422
[ "Apache-2.0" ]
134
2018-08-23T02:05:01.000Z
2022-03-27T05:13:20.000Z
perftest/spreadbenchmark.py
wendazhou/finufft
ba52c1d823186aac3ae33341921136b9ed3b6422
[ "Apache-2.0" ]
157
2018-09-14T16:36:31.000Z
2022-03-31T23:42:44.000Z
perftest/spreadbenchmark.py
wendazhou/finufft
ba52c1d823186aac3ae33341921136b9ed3b6422
[ "Apache-2.0" ]
66
2018-09-25T15:50:59.000Z
2022-03-21T00:42:28.000Z
import commands import re import sys # Test set tests = [] #tests.append({"dim":1, "M":1e8, "N":1e8, "tol":1e-3}) #tests.append({"dim":1, "M":1e8, "N":1e8, "tol":1e-8}) #tests.append({"dim":1, "M":1e8, "N":1e8, "tol":1e-15}) #tests.append({"dim":3, "M":1e7, "N":1e7, "tol":1e-3}) #tests.append({"dim":3, "M":1e7, "N":...
32.711268
112
0.585791
a1b29d57dea2aa751c8e40b41ba4f19f20fdc9ba
2,910
py
Python
tests/test_cases/test_cocotb/test_tests.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
350
2015-01-09T12:50:13.000Z
2019-07-12T09:08:17.000Z
tests/test_cases/test_cocotb/test_tests.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
710
2015-01-05T16:42:29.000Z
2019-07-16T13:40:00.000Z
tests/test_cases/test_cocotb/test_tests.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
182
2015-01-08T09:35:20.000Z
2019-07-12T18:41:37.000Z
# Copyright cocotb contributors # Licensed under the Revised BSD License, see LICENSE for details. # SPDX-License-Identifier: BSD-3-Clause """ Tests of cocotb.test functionality * expect_error * expect_fail * timeout """ from collections.abc import Coroutine from common import MyException import cocotb from cocotb.t...
22.55814
81
0.720619
842a4e72249c2995181f5213ca5590444b3b8fe0
845
py
Python
setup.py
jumbrich/pyanycsv
ebffa9ac066721d107557619833c138db5e61109
[ "MIT" ]
null
null
null
setup.py
jumbrich/pyanycsv
ebffa9ac066721d107557619833c138db5e61109
[ "MIT" ]
null
null
null
setup.py
jumbrich/pyanycsv
ebffa9ac066721d107557619833c138db5e61109
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup file for anycsv. This file was generated with PyScaffold 3.0.3. PyScaffold helps you to put up the scaffold of your new Python project. Learn more under: http://pyscaffold.org/ """ import sys from setuptools import setup # Add here console scrip...
24.852941
75
0.695858
a99b93611834a5f05fc6c2acbd2d80a30ae7e86e
5,104
py
Python
preprocessing.py
lgraesser/MCER
250aa6965064dbc73462eb5edb559bf9ce949b70
[ "Apache-2.0" ]
null
null
null
preprocessing.py
lgraesser/MCER
250aa6965064dbc73462eb5edb559bf9ce949b70
[ "Apache-2.0" ]
null
null
null
preprocessing.py
lgraesser/MCER
250aa6965064dbc73462eb5edb559bf9ce949b70
[ "Apache-2.0" ]
null
null
null
import logging import numpy as np import tensorflow as tf from sklearn.model_selection import train_test_split import preprocessing import utils logger = logging.getLogger('preprocessing') logger.setLevel(logging.INFO) def preprocess_images(img_name_vector, image_features_extract_model): '''Extracts and saves i...
42.533333
153
0.664185
ba2f42480f5e4ac767c95ec39ced0a6708cf0915
43,949
py
Python
InnerEye/ML/deep_learning_config.py
albernsurya/InnerEye-DeepLearning
62ed6aace84c451a20c4e546f88987454c1bf4bd
[ "MIT" ]
1
2021-07-03T14:05:17.000Z
2021-07-03T14:05:17.000Z
InnerEye/ML/deep_learning_config.py
albernsrya/InnerEye-DeepLearning
420fb1d452d7834d2c0a79c7bdc711ec16509680
[ "MIT" ]
null
null
null
InnerEye/ML/deep_learning_config.py
albernsrya/InnerEye-DeepLearning
420fb1d452d7834d2c0a79c7bdc711ec16509680
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
57.374674
120
0.602266
2aef22d4627d38e20852c7d1e304430948bd3192
3,940
py
Python
tests/unit_tests/homeassistant/test_frunk_lock.py
ehendrix23/teslajsonpy
7e5a86acc053df4e990bfece4db37d2cbb6ac5e0
[ "Apache-2.0" ]
null
null
null
tests/unit_tests/homeassistant/test_frunk_lock.py
ehendrix23/teslajsonpy
7e5a86acc053df4e990bfece4db37d2cbb6ac5e0
[ "Apache-2.0" ]
null
null
null
tests/unit_tests/homeassistant/test_frunk_lock.py
ehendrix23/teslajsonpy
7e5a86acc053df4e990bfece4db37d2cbb6ac5e0
[ "Apache-2.0" ]
null
null
null
"""Test frunk lock.""" import pytest import time from teslajsonpy.controller import Controller from teslajsonpy.homeassistant.trunk import FrunkLock from tests.tesla_mock import TeslaMock, VIN, CAR_ID LAST_UPDATE_TIME = time.time() def test_has_battery(monkeypatch): """Test has_battery().""" _mock = Tesl...
25.921053
73
0.721574
761697770b7ee8d113906fc6bd9849589e1c7dc1
2,565
py
Python
docs/tools/purge_cache_for_changed_files.py
amosnothing/ClickHouse
cf49a839806290c41a3a1ccd5808687d7ccaca78
[ "Apache-2.0" ]
8
2019-06-04T02:50:13.000Z
2022-02-10T06:46:51.000Z
docs/tools/purge_cache_for_changed_files.py
amosnothing/ClickHouse
cf49a839806290c41a3a1ccd5808687d7ccaca78
[ "Apache-2.0" ]
16
2021-06-07T21:32:30.000Z
2022-03-31T21:08:29.000Z
docs/tools/purge_cache_for_changed_files.py
amosnothing/ClickHouse
cf49a839806290c41a3a1ccd5808687d7ccaca78
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import subprocess import requests import os import time FNAME_START = "+++" CLOUDFLARE_URL = "https://api.cloudflare.com/client/v4/zones/4fc6fb1d46e87851605aa7fa69ca6fe0/purge_cache" # we have changes in revision and commit sha on all pages # so such changes have to be ignored MIN_CHANGED_WOR...
32.468354
142
0.661598
4a9c6ab04b03bb899829b621a6a70d8969931f8c
1,256
py
Python
website/instalacion.py
RHoK-Bilbao/desahucios
1815f7398fa7e7f2182d76bb2d3a0b13869bd8c7
[ "BSD-2-Clause" ]
null
null
null
website/instalacion.py
RHoK-Bilbao/desahucios
1815f7398fa7e7f2182d76bb2d3a0b13869bd8c7
[ "BSD-2-Clause" ]
null
null
null
website/instalacion.py
RHoK-Bilbao/desahucios
1815f7398fa7e7f2182d76bb2d3a0b13869bd8c7
[ "BSD-2-Clause" ]
null
null
null
import urllib2 import os import getpass import traceback import os import sys os.system("pip install -r requirements.txt") if os.path.exists("rhok_desahucios.sql"): rhok_db = open("rhok_desahucios.sql").read() else: rhok_db = urllib2.urlopen("http://dev.morelab.deusto.es/rhok_desahucios.sql").read() open("r...
29.209302
88
0.696656
b50359b5096ab54e8f8825a460173cb40714e4d5
255
py
Python
scripts/extract_author.py
UO-CIS-322/grading
d008f861a332dd20270ef5dcb03fd730dc5cf2cc
[ "BSD-2-Clause" ]
1
2017-10-31T07:22:11.000Z
2017-10-31T07:22:11.000Z
scripts/extract_author.py
UO-CIS-322/grading
d008f861a332dd20270ef5dcb03fd730dc5cf2cc
[ "BSD-2-Clause" ]
1
2019-10-27T06:28:23.000Z
2019-10-27T06:28:23.000Z
scripts/extract_author.py
UO-CIS-322/grading
d008f861a332dd20270ef5dcb03fd730dc5cf2cc
[ "BSD-2-Clause" ]
2
2016-11-17T01:04:27.000Z
2017-10-09T17:04:24.000Z
""" Extract the 'author = ' line from a credentials file. File must have fixed name credentials.py, in this directory """ try: import credentials print(credentials.author) except Exception as err: print("***Unable to extract author line***")
25.5
59
0.709804
7c6990006ee919e5e48f99a4eb6018fe5e944e71
782
py
Python
NegNumsMatrix/NegNumsMatrix.py
javiaspiroz/ProgramacionConcurrenteDistribuida
3c998893b47fc739c7755ce510198b448bed88b5
[ "MIT" ]
null
null
null
NegNumsMatrix/NegNumsMatrix.py
javiaspiroz/ProgramacionConcurrenteDistribuida
3c998893b47fc739c7755ce510198b448bed88b5
[ "MIT" ]
null
null
null
NegNumsMatrix/NegNumsMatrix.py
javiaspiroz/ProgramacionConcurrenteDistribuida
3c998893b47fc739c7755ce510198b448bed88b5
[ "MIT" ]
null
null
null
def neg(a): acu=0 fila=0 colu=len(a)-1 while colu>=0 and fila<len(a): if a[fila][colu]<0: acu+=(colu+1) fila+=1 else: colu-=1 return acu print(neg( [[-8,-6,-4,0], [-3,-3,1,0], [-1,1,1,1], [1,2,4,9]])) #sol 6 print(neg( [[-12,-11,-10,-9,-8,-7,-6...
30.076923
119
0.466752
b207bf265aa7adbc3ceb590690b0777377bf4ac2
1,616
py
Python
software/raspberrypi/eyellowcam/lib/osutil.py
andidevel/eyellow
6d98917521943145aee30025d2b6a8314a154032
[ "MIT" ]
null
null
null
software/raspberrypi/eyellowcam/lib/osutil.py
andidevel/eyellow
6d98917521943145aee30025d2b6a8314a154032
[ "MIT" ]
null
null
null
software/raspberrypi/eyellowcam/lib/osutil.py
andidevel/eyellow
6d98917521943145aee30025d2b6a8314a154032
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2021 Anderson R. Livramento # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
37.581395
107
0.741955
ae6c08670abe99491400e1062e7f3c4b184e927d
292
py
Python
Docs/Examples/talks/interpol_05.py
Vectro-Type-Foundry/robofab
cd65d78292d24358c98dce53d283314cdc85878e
[ "BSD-3-Clause" ]
61
2015-01-17T10:15:45.000Z
2018-12-02T13:53:02.000Z
Docs/Examples/talks/interpol_05.py
Vectro-Type-Foundry/robofab
cd65d78292d24358c98dce53d283314cdc85878e
[ "BSD-3-Clause" ]
37
2015-01-05T23:44:56.000Z
2018-03-16T19:05:28.000Z
Docs/Examples/talks/interpol_05.py
Vectro-Type-Foundry/robofab
cd65d78292d24358c98dce53d283314cdc85878e
[ "BSD-3-Clause" ]
25
2015-01-08T19:49:36.000Z
2018-10-29T00:36:46.000Z
# robothon06 # prepare glyph for interpolation # move startpoints # fix directions # fix contour order from robofab.world import CurrentFont f = CurrentFont() glyph = f["A"] glyph.autoContourOrder() glyph.correctDirection() for c in glyph.contours: c.autoStartSegment() glyph.update()
17.176471
37
0.760274
2d7ff60bf4f042b274ac417ac8ceec7c641ae99b
930
py
Python
Baisc_Calculator/Calculator.py
cy275/Statistics_Calculator
c98dec271df98465a87180a170a786bcf817800c
[ "MIT" ]
null
null
null
Baisc_Calculator/Calculator.py
cy275/Statistics_Calculator
c98dec271df98465a87180a170a786bcf817800c
[ "MIT" ]
null
null
null
Baisc_Calculator/Calculator.py
cy275/Statistics_Calculator
c98dec271df98465a87180a170a786bcf817800c
[ "MIT" ]
null
null
null
from Baisc_Calculator.Addition import addition from Baisc_Calculator.Subtraction import subtraction from Baisc_Calculator.Multiplication import multiplication from Baisc_Calculator.Division import division from Baisc_Calculator.Square import square from Baisc_Calculator.Square_Root import square_root class Calculator...
24.473684
58
0.670968
f780b32d79288a2d4dd9a83e7905e7c6ab230390
315
py
Python
DeleteTriggerFunc/__init__.py
jplck/dnsresolver
c02ed41bc2089df1f3dc28ca8af44d704d13d8a5
[ "MIT" ]
null
null
null
DeleteTriggerFunc/__init__.py
jplck/dnsresolver
c02ed41bc2089df1f3dc28ca8af44d704d13d8a5
[ "MIT" ]
null
null
null
DeleteTriggerFunc/__init__.py
jplck/dnsresolver
c02ed41bc2089df1f3dc28ca8af44d704d13d8a5
[ "MIT" ]
null
null
null
import logging import azure.functions as func def main(req: func.HttpRequest) -> func.HttpResponse: return func.HttpResponse( "This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response.", status_code=200 )
26.25
146
0.72381
2eac9572643d1107b74ec3027c6ea5264f43b1c0
622
py
Python
apps/rent/migrations/0002_auto_20210221_0609.py
christianalcantara/book_backend
5c98aad01a1ea7d7985cafa14c6de7eb3d0b48af
[ "MIT" ]
1
2021-02-23T00:55:14.000Z
2021-02-23T00:55:14.000Z
apps/rent/migrations/0002_auto_20210221_0609.py
christianalcantara/book_backend
5c98aad01a1ea7d7985cafa14c6de7eb3d0b48af
[ "MIT" ]
1
2021-02-23T00:33:05.000Z
2021-02-23T00:33:05.000Z
apps/rent/migrations/0002_auto_20210221_0609.py
christianalcantara/book_backend
5c98aad01a1ea7d7985cafa14c6de7eb3d0b48af
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2021-02-21 06:09 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("book", "0002_auto_20210219_2129"), ("rent", "0001_initial"), ] operations = [ migrations.AlterField(...
24.88
60
0.55627
dbad735ad6d5e59a683b52ee9bb8dfaa4c4ccc10
4,550
py
Python
tests/test_utils.py
ebelter/mgi
37ea9cbddb3d64d3f0b9db4357f76f80a16d52e5
[ "MIT" ]
null
null
null
tests/test_utils.py
ebelter/mgi
37ea9cbddb3d64d3f0b9db4357f76f80a16d52e5
[ "MIT" ]
null
null
null
tests/test_utils.py
ebelter/mgi
37ea9cbddb3d64d3f0b9db4357f76f80a16d52e5
[ "MIT" ]
null
null
null
import click, os, pathlib, tempfile, unittest from click.testing import CliRunner class UtilsCliTest(unittest.TestCase): def setUp(self): self.temp_d = tempfile.TemporaryDirectory() self.db_fn = os.path.join(self.temp_d.name, "test.db") self.db_url = "sqlite:///" + self.db_fn os.env...
34.469697
85
0.609231
dd8098259865b20af6c08f97a8722cbee8a9a197
3,553
py
Python
examples/simple-example.py
evanscottgray/pydegensac
0b146e5c002833116adb59e3f676c9d35542fef5
[ "MIT" ]
191
2020-04-24T15:17:36.000Z
2022-03-30T03:08:47.000Z
examples/simple-example.py
evanscottgray/pydegensac
0b146e5c002833116adb59e3f676c9d35542fef5
[ "MIT" ]
11
2020-06-20T12:49:01.000Z
2022-03-31T11:20:58.000Z
examples/simple-example.py
evanscottgray/pydegensac
0b146e5c002833116adb59e3f676c9d35542fef5
[ "MIT" ]
29
2020-04-25T06:12:06.000Z
2022-02-28T03:57:46.000Z
#!/usr/bin/env python # coding: utf-8 import numpy as np import matplotlib.pyplot as plt import cv2 import pydegensac from time import time from copy import deepcopy #Now helper function for running homography RANSAC def verify_cv2(kps1, kps2, tentatives, th = 4.0 , n_iter = 2000): src_pts = np.float32([ kps1[m.qu...
46.142857
114
0.676048
e3bc9640cd1fccd71ee97d439a8bb62f5191bdba
6,668
py
Python
nets/vgg.py
bubbliiiing/ssd-tf2
481fe21bc0c7db6c132235f2dd1daadc97bd9416
[ "MIT" ]
104
2020-07-13T02:35:55.000Z
2022-03-29T06:58:55.000Z
nets/vgg.py
wanghaowen1998/ssd-tf2
4f74d39ff63ee4a8b9b3ebff58c361c77fef8718
[ "MIT" ]
10
2020-07-14T05:51:00.000Z
2021-11-08T16:57:26.000Z
nets/vgg.py
wanghaowen1998/ssd-tf2
4f74d39ff63ee4a8b9b3ebff58c361c77fef8718
[ "MIT" ]
35
2020-08-07T03:07:07.000Z
2022-03-16T01:44:03.000Z
from tensorflow.keras.layers import Conv2D, MaxPooling2D, ZeroPadding2D def VGG16(input_tensor): #----------------------------主干特征提取网络开始---------------------------# # SSD结构,net字典 net = {} # Block 1 net['input'] = input_tensor # 300,300,3 -> 150,150,64 net['conv1_1'] = Conv2D(64,...
50.900763
99
0.393071
4228ee40f5745ed4e826c27f405f28bb7111dddc
5,887
py
Python
src/oci/ai_vision/models/document_field.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ai_vision/models/document_field.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ai_vision/models/document_field.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
33.448864
245
0.656871
185d4859f7d82f37c58b9a3bc895b576134a9846
11,299
py
Python
google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/types/security_settings.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/types/security_settings.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/types/security_settings.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- 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 or...
34.448171
143
0.652182
bd1993c8b031caede7d397417c7ec9bc644abefe
8,526
py
Python
rrd/model/portal/alarm.py
ning1875/falcon-dashboard
c04e625c49358a278d5f1663a8055627eeb56334
[ "Apache-2.0" ]
1
2020-07-09T00:40:42.000Z
2020-07-09T00:40:42.000Z
rrd/model/portal/alarm.py
ning1875/falcon-dashboard
c04e625c49358a278d5f1663a8055627eeb56334
[ "Apache-2.0" ]
null
null
null
rrd/model/portal/alarm.py
ning1875/falcon-dashboard
c04e625c49358a278d5f1663a8055627eeb56334
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright 2017 Xiaomi, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
52.956522
239
0.421065
af5f32fb2a5fdd84ae0fd4a61a802c4acf42dda1
393
py
Python
CtCI/Chapter2/8_Loop_Detection.py
wqw547243068/DS_Algorithm
6d4a9baeb3650a8f93308c7405c9483bac59e98b
[ "RSA-MD" ]
9
2020-07-02T06:06:17.000Z
2022-02-26T11:08:09.000Z
CtCI/Chapter2/8_Loop_Detection.py
wqw547243068/DS_Algorithm
6d4a9baeb3650a8f93308c7405c9483bac59e98b
[ "RSA-MD" ]
1
2021-11-04T17:26:36.000Z
2021-11-04T17:26:36.000Z
CtCI/Chapter2/8_Loop_Detection.py
wqw547243068/DS_Algorithm
6d4a9baeb3650a8f93308c7405c9483bac59e98b
[ "RSA-MD" ]
8
2021-01-31T10:31:12.000Z
2022-03-13T09:15:55.000Z
from LinkedList import LinkedList def loop_detection(ll): fast = slow = ll.head while fast and fast.next: fast = fast.next.next slow = slow.next if fast is slow: break if fast is None or fast.next is None: return None slow = ll.head while fast is not ...
17.863636
41
0.580153
ca5e88db15dc5296bdc875b02cd70547410060ea
497
py
Python
team/migrations/0009_auto_20161031_2306.py
18F/acquisitions.18f.gov
7ef7091fd65b4b6797ddeb1c1f56def29522c43b
[ "CC0-1.0" ]
3
2016-11-27T05:02:52.000Z
2017-01-31T17:36:36.000Z
team/migrations/0009_auto_20161031_2306.py
18F/acquisitions.18f.gov
7ef7091fd65b4b6797ddeb1c1f56def29522c43b
[ "CC0-1.0" ]
61
2016-11-05T00:27:34.000Z
2017-09-15T23:37:58.000Z
team/migrations/0009_auto_20161031_2306.py
18F/acquisitions.18f.gov
7ef7091fd65b4b6797ddeb1c1f56def29522c43b
[ "CC0-1.0" ]
2
2017-07-14T06:21:26.000Z
2021-02-14T11:53:05.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-10-31 23:06 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('team', '0008_auto_20161031_2304'), ] operations = [ migrations.AlterField( ...
23.666667
98
0.625755
108d42d7692c4bc0b91e0d263c5a7312b67143db
4,282
py
Python
src/sentry/models/processingissue.py
JannKleen/sentry
8b29c8234bb51a81d5cab821a1f2ed4ea8e8bd88
[ "BSD-3-Clause" ]
1
2019-02-27T15:13:06.000Z
2019-02-27T15:13:06.000Z
src/sentry/models/processingissue.py
rmax/sentry
8b29c8234bb51a81d5cab821a1f2ed4ea8e8bd88
[ "BSD-3-Clause" ]
null
null
null
src/sentry/models/processingissue.py
rmax/sentry
8b29c8234bb51a81d5cab821a1f2ed4ea8e8bd88
[ "BSD-3-Clause" ]
null
null
null
""" sentry.models.processingissue ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2017 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from hashlib import sha1 from django.db import models from django.db.models.aggregates imp...
31.485294
98
0.641523
23df75319f96ca191ca3503110f5869fa23c9221
32,586
py
Python
src/soda/core.py
dillonhuff/soda-compiler
6112001377d11be395cb248f155180bc4fa0e432
[ "MIT" ]
15
2019-05-06T05:00:41.000Z
2021-01-10T06:11:16.000Z
src/soda/core.py
dillonhuff/soda-compiler
6112001377d11be395cb248f155180bc4fa0e432
[ "MIT" ]
2
2020-02-10T00:05:44.000Z
2020-05-01T17:43:42.000Z
src/soda/core.py
UCLA-VAST/soda-compiler
9ca1a9372147f37dc654339b391920ac33e91de5
[ "MIT" ]
5
2019-07-16T02:28:44.000Z
2020-04-27T15:30:17.000Z
import collections import copy import itertools import logging import operator import cached_property from haoda import ir from haoda import util from haoda.ir import arithmetic from soda import dataflow from soda import grammar from soda import util as soda_util from soda import visitor from soda import mutator _lo...
38.978469
80
0.647517
3c9c9a3ffa5829bc16a00a51fd7af33a19fbc267
3,639
py
Python
script_python/tsne.py
goldleaf3i/generativeCMLgraphs
143b7809ee9cf39a508bdbf5c91ed963b810b403
[ "MIT" ]
null
null
null
script_python/tsne.py
goldleaf3i/generativeCMLgraphs
143b7809ee9cf39a508bdbf5c91ed963b810b403
[ "MIT" ]
null
null
null
script_python/tsne.py
goldleaf3i/generativeCMLgraphs
143b7809ee9cf39a508bdbf5c91ed963b810b403
[ "MIT" ]
null
null
null
# # tsne.py # # Implementation of t-SNE in Python. The implementation was tested on Python 2.5.1, and it requires a working # installation of NumPy. The implementation comes with an example on the MNIST dataset. In order to plot the # results of this example, a working installation of matplotlib is required. # The exa...
34.009346
109
0.594394
0f5ec81bfd32c1e6a787200ebc093f38943d11bf
11,065
py
Python
FlaskApp/routes.py
mikkokallio/dbapp-code
2df452eaef5ea375569d0076129ab65e4ae067e9
[ "MIT" ]
null
null
null
FlaskApp/routes.py
mikkokallio/dbapp-code
2df452eaef5ea375569d0076129ab65e4ae067e9
[ "MIT" ]
null
null
null
FlaskApp/routes.py
mikkokallio/dbapp-code
2df452eaef5ea375569d0076129ab65e4ae067e9
[ "MIT" ]
null
null
null
import json import secrets from os import abort from os import getenv import requests from flask import redirect, render_template, request, session from werkzeug.security import check_password_hash, generate_password_hash from .app import app from . import actions @app.route("/") def index(): """Show user's profi...
34.256966
132
0.658653
6220e1dad304508f4bc3bde73f96e72d974db339
33,716
py
Python
src/sage/algebras/quantum_matrix_coordinate_algebra.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
3
2019-07-15T13:48:24.000Z
2019-11-08T12:31:43.000Z
src/sage/algebras/quantum_matrix_coordinate_algebra.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
2
2018-10-30T13:40:20.000Z
2020-07-23T12:13:30.000Z
src/sage/algebras/quantum_matrix_coordinate_algebra.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
1
2020-07-23T10:29:58.000Z
2020-07-23T10:29:58.000Z
r""" Quantum Matrix Coordinate Algebras AUTHORS: - Travis Scrimshaw (01-2016): initial version """ ############################################################################## # Copyright (C) 2016 Travis Scrimshaw <tscrimsh at umn.edu> # # Distributed under the terms of the GNU General Public License (GPL) ...
33.953676
98
0.495195
acf0996ff1266d915aeabb9ef3a8ff306d1e9121
43,346
py
Python
cookbook/lib/python3.7/site-packages/google/cloud/firestore_admin_v1/proto/operation_pb2.py
ethanga12/cookbooktbd
bc310546f4b05d29a24eff79242c252a086d7260
[ "Apache-2.0" ]
1
2021-01-15T18:00:01.000Z
2021-01-15T18:00:01.000Z
cookbook/lib/python3.7/site-packages/google/cloud/firestore_admin_v1/proto/operation_pb2.py
ethanga12/cookbooktbd
bc310546f4b05d29a24eff79242c252a086d7260
[ "Apache-2.0" ]
null
null
null
cookbook/lib/python3.7/site-packages/google/cloud/firestore_admin_v1/proto/operation_pb2.py
ethanga12/cookbooktbd
bc310546f4b05d29a24eff79242c252a086d7260
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/firestore_admin_v1/proto/operation.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf impor...
36.548061
3,531
0.643289
e943b709981fb20d8be243b5853e805ef571940a
1,515
py
Python
vice/yields/ccsne/engines/tests/cutoff.py
rcooke-ast/VICE
762911eb4192c7206ce2ae36b645d120ed889cb7
[ "MIT" ]
22
2018-09-26T21:02:51.000Z
2022-03-24T18:07:03.000Z
vice/yields/ccsne/engines/tests/cutoff.py
rcooke-ast/VICE
762911eb4192c7206ce2ae36b645d120ed889cb7
[ "MIT" ]
2
2019-05-03T13:08:27.000Z
2021-02-17T20:11:37.000Z
vice/yields/ccsne/engines/tests/cutoff.py
rcooke-ast/VICE
762911eb4192c7206ce2ae36b645d120ed889cb7
[ "MIT" ]
3
2019-05-10T19:26:31.000Z
2021-11-10T08:13:42.000Z
r""" This file implements unit testing of the ``cutoff`` derived class. """ from __future__ import absolute_import from ..cutoff import cutoff from ..._yield_integrator import _MINIMUM_MASS_ from .....testing import moduletest from .....testing import unittest import random @moduletest def test(): r""" vice.yields...
19.934211
66
0.675248
6b679cb9db41d1a3c4e816f655519546e43de3dc
4,129
py
Python
environments/utils.py
bunthet01/robotics-rl-srl
21bed859ca821844b2e1a90f4786675c9e1dd151
[ "MIT" ]
5
2019-08-21T22:57:21.000Z
2021-01-01T21:15:26.000Z
environments/utils.py
bunthet01/robotics-rl-srl
21bed859ca821844b2e1a90f4786675c9e1dd151
[ "MIT" ]
null
null
null
environments/utils.py
bunthet01/robotics-rl-srl
21bed859ca821844b2e1a90f4786675c9e1dd151
[ "MIT" ]
null
null
null
# Modified version of https://github.com/ikostrikov/pytorch-a2c-ppo-acktr/envs.py import importlib import os from gym.envs.registration import registry, patch_deprecated_methods, load from stable_baselines import bench import numpy as np def dynamicEnvLoad(env_id): """ Get from Gym, the module where the env...
37.198198
118
0.673771
a1108f39ed20b25988ff4b5d459e225d06c4ada8
548
py
Python
deepstar/filesystem/frame_set_dir.py
zerofox-oss/deepstar
fe0fe12317975104fa6ff6c058d141f11e6e951d
[ "BSD-3-Clause-Clear" ]
44
2019-08-09T16:14:27.000Z
2022-02-10T06:54:35.000Z
deepstar/filesystem/frame_set_dir.py
zerofox-oss/deepstar
fe0fe12317975104fa6ff6c058d141f11e6e951d
[ "BSD-3-Clause-Clear" ]
2
2020-09-26T00:05:52.000Z
2021-03-22T13:27:36.000Z
deepstar/filesystem/frame_set_dir.py
zerofox-oss/deepstar
fe0fe12317975104fa6ff6c058d141f11e6e951d
[ "BSD-3-Clause-Clear" ]
14
2019-08-19T16:47:32.000Z
2022-03-04T03:57:27.000Z
import os from deepstar.filesystem.file_dir import FileDir class FrameSetDir: """ This class implements the FrameSetDir class. """ @classmethod def path(cls): """ This method returns the path to the frame set directory. :rtype: str """ return os.path.joi...
18.266667
64
0.593066
a6a24ec83324805a35beccda44bf6b2b4c8dae2f
11,223
py
Python
experiments/multi_task_preprocess.py
vishalbelsare/SocialMediaIE
4ecbb4c7082b06454c92e552e4ad3af14a4f38b2
[ "Apache-2.0" ]
14
2019-11-04T05:42:56.000Z
2021-10-05T08:21:53.000Z
experiments/multi_task_preprocess.py
vishalbelsare/SocialMediaIE
4ecbb4c7082b06454c92e552e4ad3af14a4f38b2
[ "Apache-2.0" ]
6
2021-09-08T02:20:11.000Z
2022-03-12T00:41:22.000Z
experiments/multi_task_preprocess.py
vishalbelsare/SocialMediaIE
4ecbb4c7082b06454c92e552e4ad3af14a4f38b2
[ "Apache-2.0" ]
2
2020-06-17T09:33:50.000Z
2021-02-26T00:38:01.000Z
# coding: utf-8 # In[1]: from glob import glob from collections import Counter import pandas as pd from IPython.display import display # In[2]: NER_FILES={ "Finin": { "train": "/datadrive/Datasets/lowlands-data/LREC2014/twitter_ner/data/finin.train.tsv", "test": "/datadrive/Datasets/lowlands-...
35.515823
1,260
0.661766
3d24205ad567517f51acf25ee15983d096432eb0
660
py
Python
neighbourhood/forms.py
amwaniki180/the_hood
12b7201101422d09fc166a964358778f76ed8f27
[ "MIT" ]
null
null
null
neighbourhood/forms.py
amwaniki180/the_hood
12b7201101422d09fc166a964358778f76ed8f27
[ "MIT" ]
5
2020-06-05T22:19:37.000Z
2021-09-08T01:13:25.000Z
neighbourhood/forms.py
amwaniki180/the_hood
12b7201101422d09fc166a964358778f76ed8f27
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.core import validators from django.contrib.auth.forms import UserCreationForm,AuthenticationForm from .models import Profile,Business,Project,Post class ProfileForm(forms.ModelForm): class Meta: model = Profile exclude...
23.571429
73
0.672727
85ae03ce6c642c4e5870a176c2b754f0f0d830b9
1,914
py
Python
app.py
oslokommune/okdata-permission-api
e12739794fb48437c1b39e1bffc9d632e76d2449
[ "MIT" ]
null
null
null
app.py
oslokommune/okdata-permission-api
e12739794fb48437c1b39e1bffc9d632e76d2449
[ "MIT" ]
1
2022-01-14T09:37:58.000Z
2022-01-14T09:37:58.000Z
app.py
oslokommune/okdata-permission-api
e12739794fb48437c1b39e1bffc9d632e76d2449
[ "MIT" ]
null
null
null
import os from fastapi import FastAPI, Request from fastapi.exceptions import RequestValidationError from fastapi.responses import JSONResponse from okdata.aws.logging import add_fastapi_logging from pydantic import ValidationError from resources import ( permissions, my_permissions, webhook_tokens, r...
28.567164
136
0.741379
168090acf8c05bbf412a703c5d8e9636e45aec75
3,725
py
Python
posthog/request.py
mands/posthog-python
cc5649368f520a46fdd228d316a807f8efbb5855
[ "MIT" ]
12
2020-03-24T13:34:49.000Z
2022-02-27T00:51:14.000Z
posthog/request.py
mands/posthog-python
cc5649368f520a46fdd228d316a807f8efbb5855
[ "MIT" ]
28
2020-02-19T02:19:32.000Z
2022-02-28T09:15:38.000Z
posthog/request.py
mands/posthog-python
cc5649368f520a46fdd228d316a807f8efbb5855
[ "MIT" ]
9
2020-02-18T21:09:14.000Z
2022-03-19T17:31:05.000Z
import json import logging from datetime import date, datetime from gzip import GzipFile from io import BytesIO from typing import Any, Optional, Union import requests from dateutil.tz import tzutc from posthog.utils import remove_trailing_slash from posthog.version import VERSION _session = requests.sessions.Sessio...
35.47619
135
0.668993
014fda53fd58a4e17ea47c09e4ec99af575b23ea
657
py
Python
AthleticTeam/SponsorsApp/migrations/0001_initial.py
Temeteron/Athletic-Team
cd4407ac2a7dd543d1120f5a55908fbe2e49c263
[ "MIT" ]
1
2017-04-26T00:08:20.000Z
2017-04-26T00:08:20.000Z
AthleticTeam/SponsorsApp/migrations/0001_initial.py
Temeteron/Athletic-Team
cd4407ac2a7dd543d1120f5a55908fbe2e49c263
[ "MIT" ]
null
null
null
AthleticTeam/SponsorsApp/migrations/0001_initial.py
Temeteron/Athletic-Team
cd4407ac2a7dd543d1120f5a55908fbe2e49c263
[ "MIT" ]
2
2016-05-31T21:14:32.000Z
2021-09-14T18:59:15.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Sponsor', fields=[ ('id', models.AutoField(verb...
28.565217
114
0.582953
efa6832d4f1506fa48f3ed4e34e71770cb91f6a5
4,087
py
Python
meerk40t/core/node/elem_ellipse.py
dpticar/meerk40t
63c4dea8cd1c71bbf8cdf4cb3090f106cdcf0e29
[ "MIT" ]
null
null
null
meerk40t/core/node/elem_ellipse.py
dpticar/meerk40t
63c4dea8cd1c71bbf8cdf4cb3090f106cdcf0e29
[ "MIT" ]
null
null
null
meerk40t/core/node/elem_ellipse.py
dpticar/meerk40t
63c4dea8cd1c71bbf8cdf4cb3090f106cdcf0e29
[ "MIT" ]
null
null
null
from copy import copy from meerk40t.core.node.node import Node from meerk40t.svgelements import Path class EllipseNode(Node): """ EllipseNode is the bootstrapped node type for the 'elem ellipse' type. """ def __init__( self, shape, matrix=None, fill=None, stroke=None, stroke_width=None, **kw...
33.77686
85
0.579398
20a0bd1433c87fa7fe99cdbf245447227f208157
3,091
py
Python
pkgs/statsmodels-0.6.1-np110py27_0/lib/python2.7/site-packages/statsmodels/emplike/elregress.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
1
2016-09-02T20:31:32.000Z
2016-09-02T20:31:32.000Z
pkgs/statsmodels-0.6.1-np110py27_0/lib/python2.7/site-packages/statsmodels/emplike/elregress.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/statsmodels-0.6.1-np110py27_0/lib/python2.7/site-packages/statsmodels/emplike/elregress.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-05-02T10:50:15.000Z
2021-05-02T10:50:15.000Z
""" Empirical Likelihood Linear Regression Inference The script contains the function that is optimized over nuisance parameters to conduct inference on linear regression parameters. It is called by eltest in OLSResults. General References ----------------- Owen, A.B.(2001). Empirical Likelihood. Chapman and Hall...
33.597826
80
0.572307
fe4f9a07c11c716383e8794c8172848d872508fe
229
py
Python
laguinho/errors/handlers.py
MarioHdpz/laguinho-api
36ad947e1efe98b0842889d2baf947ed349234b4
[ "MIT" ]
27
2019-02-09T04:25:23.000Z
2020-05-22T18:34:06.000Z
laguinho/errors/handlers.py
MarioHdpz/laguinho-api
36ad947e1efe98b0842889d2baf947ed349234b4
[ "MIT" ]
51
2019-02-15T03:17:53.000Z
2021-05-10T23:44:40.000Z
laguinho/errors/handlers.py
RonnanSouza/laguinho-api
cef9ee0c4794597796607b47b72c8a4ae009ca0f
[ "MIT" ]
28
2019-02-15T03:16:03.000Z
2020-11-25T15:12:41.000Z
from flask import Blueprint, jsonify from marshmallow import ValidationError errors = Blueprint('errors', __name__) @errors.app_errorhandler(ValidationError) def handle_validation_error(e): return jsonify(e.messages), 422
22.9
41
0.80786
02f5bbc2822f7230aaddf25aaacbbef554b3e60a
9,955
py
Python
bco_api/api/migrations/0001_initial.py
syntheticgio/bco_api
b78c691f0508654aac66e6bfdde4fcd548a89ad1
[ "MIT" ]
null
null
null
bco_api/api/migrations/0001_initial.py
syntheticgio/bco_api
b78c691f0508654aac66e6bfdde4fcd548a89ad1
[ "MIT" ]
null
null
null
bco_api/api/migrations/0001_initial.py
syntheticgio/bco_api
b78c691f0508654aac66e6bfdde4fcd548a89ad1
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-06-24 22:09 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ ...
40.79918
201
0.512808
416aba56a0ee2a6393ae37234052d8c4c59651c9
10,581
py
Python
victoriaepi/seid.py
crissthiandi/Victoria
2d7e3621b472146a262745900ab143ba18ba0340
[ "BSD-3-Clause" ]
3
2021-01-14T15:58:28.000Z
2021-02-17T18:16:59.000Z
victoriaepi/seid.py
crissthiandi/Victoria
2d7e3621b472146a262745900ab143ba18ba0340
[ "BSD-3-Clause" ]
6
2021-02-11T18:38:03.000Z
2021-04-18T02:23:44.000Z
victoriaepi/seid.py
crissthiandi/Victoria
2d7e3621b472146a262745900ab143ba18ba0340
[ "BSD-3-Clause" ]
4
2020-12-09T19:06:38.000Z
2021-03-28T12:38:19.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Oct 3 20:32:32 2020 @author: jac """ import sys import numpy as np import scipy.stats as ss from scipy import integrate import matplotlib.pyplot as plt from . import victoria def odeint( rhs, X0, t_quad, args): """ See https://docs.scipy...
32.161094
234
0.570551
2cab92f8a097d461bca7ff25be6e257b54228b80
12,306
py
Python
ghome/ghome.py
zendainc/ghome
1bcbc5bef01945fbcd37f568d5a23c2645bff909
[ "Apache-2.0" ]
null
null
null
ghome/ghome.py
zendainc/ghome
1bcbc5bef01945fbcd37f568d5a23c2645bff909
[ "Apache-2.0" ]
null
null
null
ghome/ghome.py
zendainc/ghome
1bcbc5bef01945fbcd37f568d5a23c2645bff909
[ "Apache-2.0" ]
null
null
null
__copyright__ = """ Copyright 2019 Samapriya Roy 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 applicabl...
40.084691
226
0.667317
3f6753f78a1ed310e623aa22c2c082d93983f314
9,605
py
Python
chapter10/access_control.py
psxz/reinforcement-learning-an-introduction
cc839b647a3ae54f07b2cae17a602cd8d25436fe
[ "Apache-2.0" ]
12,197
2016-10-04T03:34:49.000Z
2022-03-31T12:55:36.000Z
chapter10/access_control.py
psxz/reinforcement-learning-an-introduction
cc839b647a3ae54f07b2cae17a602cd8d25436fe
[ "Apache-2.0" ]
150
2017-08-28T14:59:36.000Z
2022-03-11T23:21:35.000Z
chapter10/access_control.py
psxz/reinforcement-learning-an-introduction
cc839b647a3ae54f07b2cae17a602cd8d25436fe
[ "Apache-2.0" ]
4,738
2016-09-27T07:38:23.000Z
2022-03-31T10:09:14.000Z
####################################################################### # Copyright (C) # # 2016-2018 Shangtong Zhang(zhangshangtong.cpp@gmail.com) # # 2016 Kenta Shimada(hyperkentakun@gmail.com) # # Permission given to modify the...
39.690083
116
0.659552
72e5f725cc940e887a073d2c2f51e2cd22b4863a
85
py
Python
carro/apps.py
JoseRazo/TiendaOnline
cd6d605d1ed4d8c3b03777f7b05cedaca8db4624
[ "Apache-2.0" ]
null
null
null
carro/apps.py
JoseRazo/TiendaOnline
cd6d605d1ed4d8c3b03777f7b05cedaca8db4624
[ "Apache-2.0" ]
null
null
null
carro/apps.py
JoseRazo/TiendaOnline
cd6d605d1ed4d8c3b03777f7b05cedaca8db4624
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class CarroConfig(AppConfig): name = 'carro'
14.166667
33
0.741176
2448fffe8929cf7ce6c111f4dd9e454dc4576d70
7,739
py
Python
tests/python/unittest/test_tir_transform_vectorize.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
tests/python/unittest/test_tir_transform_vectorize.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2,863
2017-08-17T19:55:50.000Z
2019-11-04T17:18:41.000Z
tests/python/unittest/test_tir_transform_vectorize.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.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...
32.380753
88
0.617522
a3c2072b136e546c58b20afcc9d304aa6dfbb734
4,695
py
Python
mac/google-cloud-sdk/lib/googlecloudsdk/api_lib/iamcredentials/util.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
mac/google-cloud-sdk/lib/googlecloudsdk/api_lib/iamcredentials/util.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
mac/google-cloud-sdk/lib/googlecloudsdk/api_lib/iamcredentials/util.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC. 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 requir...
40.128205
80
0.771885
ebea323c7105a51cc0c5c47dd68359cc4a063fda
7,090
py
Python
feature_extraction/generate_features_alexnet.py
cJarvers/algonauts2021
0c1d6b9c6cbff77ecb1365eaaef0956a4bab96aa
[ "MIT" ]
35
2021-05-01T02:58:03.000Z
2021-12-27T15:13:17.000Z
feature_extraction/generate_features_alexnet.py
cJarvers/algonauts2021
0c1d6b9c6cbff77ecb1365eaaef0956a4bab96aa
[ "MIT" ]
2
2021-06-05T17:34:29.000Z
2021-06-22T20:36:19.000Z
feature_extraction/generate_features_alexnet.py
Neural-Dynamics-of-Visual-Cognition-FUB/Algonauts2021_devkit
61c71a39f592861482ef4bfacf91faf981ea3ed3
[ "MIT" ]
21
2021-05-06T04:59:09.000Z
2021-10-12T21:52:09.000Z
### # This file will: # 1. Generate and save Alexnet features in a given folder # 2. preprocess Alexnet features using PCA and save them in another folder ### import glob from alexnet import * import numpy as np import urllib import torch import cv2 import argparse import time import random from tqdm import tqdm from t...
33.923445
276
0.654866
c78578445adb3b7fb810435dd468db9d06f1ef07
1,831
py
Python
knowledge_graph/knowledge_extraction/oie.py
ihaeyong/drama-graph
60c3c216cd74bb19efd6baf836f6c7c2b42b764f
[ "MIT" ]
3
2021-04-28T07:19:39.000Z
2022-03-07T09:34:19.000Z
knowledge_graph/knowledge_extraction/oie.py
ihaeyong/drama-graph
60c3c216cd74bb19efd6baf836f6c7c2b42b764f
[ "MIT" ]
18
2020-08-24T12:40:38.000Z
2022-03-12T00:47:14.000Z
knowledge_graph/knowledge_extraction/oie.py
ihaeyong/drama-graph
60c3c216cd74bb19efd6baf836f6c7c2b42b764f
[ "MIT" ]
1
2020-10-15T10:09:20.000Z
2020-10-15T10:09:20.000Z
from openie import StanfordOpenIE from stanfordcorenlp import StanfordCoreNLP import json def stanfordOIE(texts): with StanfordOpenIE() as client: result = [] for text in texts: result.append(client.annotate(text)) return result class oie: def __init__(self, config, input, n...
36.62
93
0.452758
84d4b7b1f64b985222dee881fbad049a10b1d4c8
20,596
py
Python
data/dataset_factory.py
burhanmudassar/pytorch-action-detection
16afb9312248d73c0e2be56ac733e0a33040307e
[ "MIT" ]
null
null
null
data/dataset_factory.py
burhanmudassar/pytorch-action-detection
16afb9312248d73c0e2be56ac733e0a33040307e
[ "MIT" ]
null
null
null
data/dataset_factory.py
burhanmudassar/pytorch-action-detection
16afb9312248d73c0e2be56ac733e0a33040307e
[ "MIT" ]
null
null
null
""" Dataset utilities - Dataset Class for dataloading """ import os import os.path import torch import torch.utils.data as data import cv2, pickle import numpy as np import random def readsplitfile(splitfile): with open(splitfile, 'r') as f: temptrainvideos = f.readlines() trainvideos = [] for vid...
40.148148
133
0.597883
888ac6519b30b33c64840baa3577caca88e69b64
12,868
py
Python
google/cloud/texttospeech_v1/services/text_to_speech/transports/grpc_asyncio.py
LaudateCorpus1/python-texttospeech
bc5b73fbc62900f89a01486c6e8d42d459c34fd6
[ "Apache-2.0" ]
null
null
null
google/cloud/texttospeech_v1/services/text_to_speech/transports/grpc_asyncio.py
LaudateCorpus1/python-texttospeech
bc5b73fbc62900f89a01486c6e8d42d459c34fd6
[ "Apache-2.0" ]
null
null
null
google/cloud/texttospeech_v1/services/text_to_speech/transports/grpc_asyncio.py
LaudateCorpus1/python-texttospeech
bc5b73fbc62900f89a01486c6e8d42d459c34fd6
[ "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 or...
43.918089
87
0.637784
f52a82fdee3a90e59eba0e27df83e041cf454e95
5,953
py
Python
api/tacticalrmm/core/models.py
jeffreyvh/tacticalrmm
dcfb1732954c2c165e82e6b24686e27f9f909eb3
[ "MIT" ]
null
null
null
api/tacticalrmm/core/models.py
jeffreyvh/tacticalrmm
dcfb1732954c2c165e82e6b24686e27f9f909eb3
[ "MIT" ]
null
null
null
api/tacticalrmm/core/models.py
jeffreyvh/tacticalrmm
dcfb1732954c2c165e82e6b24686e27f9f909eb3
[ "MIT" ]
null
null
null
from loguru import logger import pytz import os import time import smtplib from email.message import EmailMessage from django.db import models from django.core.exceptions import ValidationError from django.contrib.postgres.fields import ArrayField from django.conf import settings logger.configure(**settin...
34.812865
88
0.567109
83caa36f3ea0a42adc64817465b46aaf8394d8b9
10,357
py
Python
openapi/preprocess_spec.py
spiffxp/gen
a867e601330b0b3dcfe37d37e74ddc00e1548636
[ "Apache-2.0" ]
null
null
null
openapi/preprocess_spec.py
spiffxp/gen
a867e601330b0b3dcfe37d37e74ddc00e1548636
[ "Apache-2.0" ]
null
null
null
openapi/preprocess_spec.py
spiffxp/gen
a867e601330b0b3dcfe37d37e74ddc00e1548636
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
33.517799
100
0.622478
4247e4cb6b1ee6bf1c515f60fb97503dd6b3a7ee
879
py
Python
MyDailyNews/src/MyDailyNews/urls.py
Jackal007/MyDailyNews
964a55abf4b4d1ca7a228a641b9dbd7c6b44e192
[ "Unlicense" ]
2
2017-11-21T06:39:42.000Z
2020-05-05T08:40:07.000Z
MyDailyNews/src/MyDailyNews/urls.py
Jackal007/MyDailyNews
964a55abf4b4d1ca7a228a641b9dbd7c6b44e192
[ "Unlicense" ]
null
null
null
MyDailyNews/src/MyDailyNews/urls.py
Jackal007/MyDailyNews
964a55abf4b4d1ca7a228a641b9dbd7c6b44e192
[ "Unlicense" ]
null
null
null
"""MyDailyNews URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
36.625
83
0.709898
1929ecea8a05ecaabc8e5702556884cbbfcd8165
31,187
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py
benbp/azure-sdk-for-python
2329ba03e48098dcdc581898f6434d7c2b13a7b9
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py
benbp/azure-sdk-for-python
2329ba03e48098dcdc581898f6434d7c2b13a7b9
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py
benbp/azure-sdk-for-python
2329ba03e48098dcdc581898f6434d7c2b13a7b9
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.891847
261
0.676147
db43e36e86ec171237b698bfd3f10aceb5859e31
1,243
py
Python
dictionaries/data_handler.py
mwhittemore2/vocab_manager
05d8ec2bac925a53e1882c645f5e086a540bfe6b
[ "MIT" ]
null
null
null
dictionaries/data_handler.py
mwhittemore2/vocab_manager
05d8ec2bac925a53e1882c645f5e086a540bfe6b
[ "MIT" ]
null
null
null
dictionaries/data_handler.py
mwhittemore2/vocab_manager
05d8ec2bac925a53e1882c645f5e086a540bfe6b
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class DataHandler(ABC): """ Base class for transforming a dictionary entry to its final form. """ def __init__(self, next_handler): """ Initializes the dictionary entry transformer. Parameters ---------- next_handler : Dat...
23.45283
56
0.5535
8ed3e03ab27e865a4e8a6f076efc6d94b735c00e
362
py
Python
week_02/inclass/tests/q2_2.py
ds-connectors/EPS-88-FA20
2ef31ff28e8f26e50929b77b72ee035913b06e5f
[ "BSD-3-Clause" ]
1
2021-01-18T07:08:53.000Z
2021-01-18T07:08:53.000Z
week_02/inclass/tests/q2_2.py
ds-connectors/EPS-88-FA20
2ef31ff28e8f26e50929b77b72ee035913b06e5f
[ "BSD-3-Clause" ]
null
null
null
week_02/inclass/tests/q2_2.py
ds-connectors/EPS-88-FA20
2ef31ff28e8f26e50929b77b72ee035913b06e5f
[ "BSD-3-Clause" ]
2
2020-12-04T11:05:14.000Z
2021-01-12T10:01:26.000Z
test = { 'name': 'Question 2_2', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> 2653.75<topo_sigma<2653.85 True """, 'hidden': False, 'locked': False } ], 'scored': True, 'setup': '', 'teardown'...
15.73913
40
0.342541
64054d1b2fe525851da16ccd9f5f410afdfe767a
2,909
py
Python
dqn_zoo/shaping.py
seblee97/dqn_zoo
d5860441aa95e65db6c74c1be3ac8a4999e29ee2
[ "Apache-2.0" ]
null
null
null
dqn_zoo/shaping.py
seblee97/dqn_zoo
d5860441aa95e65db6c74c1be3ac8a4999e29ee2
[ "Apache-2.0" ]
null
null
null
dqn_zoo/shaping.py
seblee97/dqn_zoo
d5860441aa95e65db6c74c1be3ac8a4999e29ee2
[ "Apache-2.0" ]
1
2021-05-15T15:37:19.000Z
2021-05-15T15:37:19.000Z
import jax.numpy as jnp import jax class NoPenalty: """No penalty placeholder.""" def __call__(self, target_q_values, transitions, rng_key): return transitions.r_t class HardCodedPenalty: """Hard coded constant penalty, i.e. F(s, a, s') = k where k is constant. """ def __init__(self, penalty: floa...
35.91358
119
0.756961
b219cc3fdc6a333c40f422228f571517a448a233
3,557
py
Python
autogluon/utils/try_import.py
brc7/autogluon
423ea14694a4db849fb838903d28329888133ea2
[ "Apache-2.0" ]
1
2020-08-20T08:30:15.000Z
2020-08-20T08:30:15.000Z
autogluon/utils/try_import.py
brc7/autogluon
423ea14694a4db849fb838903d28329888133ea2
[ "Apache-2.0" ]
null
null
null
autogluon/utils/try_import.py
brc7/autogluon
423ea14694a4db849fb838903d28329888133ea2
[ "Apache-2.0" ]
null
null
null
__all__ = ['try_import_catboost', 'try_import_lightgbm', 'try_import_mxboard', 'try_import_mxnet', 'try_import_cv2', 'try_import_gluonnlp'] def try_import_catboost(): try: import catboost except ValueError as e: raise ImportError("Import catboost failed. Numpy version may be outdated...
41.847059
173
0.630025
fe2f68f35f08c8e5921f906119928b989c0fe428
32,105
py
Python
models/vfs.py
wavemind/gcb17ml
350d0a82e5d97dd690b7c17e26f11b58d9c9e9ac
[ "Apache-2.0" ]
null
null
null
models/vfs.py
wavemind/gcb17ml
350d0a82e5d97dd690b7c17e26f11b58d9c9e9ac
[ "Apache-2.0" ]
null
null
null
models/vfs.py
wavemind/gcb17ml
350d0a82e5d97dd690b7c17e26f11b58d9c9e9ac
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
35.711902
80
0.649961
6c21201f6f54af348b14049cb98c51a22e812237
807
py
Python
dns_spoofer.py
menuscreen/PythonEthicalHacking
ebd132b9d6d1f75a1edf2365efbe12c161d0f152
[ "Apache-2.0" ]
null
null
null
dns_spoofer.py
menuscreen/PythonEthicalHacking
ebd132b9d6d1f75a1edf2365efbe12c161d0f152
[ "Apache-2.0" ]
null
null
null
dns_spoofer.py
menuscreen/PythonEthicalHacking
ebd132b9d6d1f75a1edf2365efbe12c161d0f152
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # dns_spoofer.py # # import netfilterqueue import subprocess import scapy.all as scapy def process_packet(packet): scapy_packet = scapy.IP(packet.get_payload()) print(scapy_packet.show()) packet.accept() # packet.drop() # for testing on local machine subprocess.run("iptables -...
24.454545
73
0.684015
7dc771acb3e632ff7319eaef53c2a725f4ad9dff
514
py
Python
tranasaction.py
mmalarz/python-blockchain
f1c378cfe8027f8f92f701dfb33f5a869a2b2768
[ "MIT" ]
null
null
null
tranasaction.py
mmalarz/python-blockchain
f1c378cfe8027f8f92f701dfb33f5a869a2b2768
[ "MIT" ]
null
null
null
tranasaction.py
mmalarz/python-blockchain
f1c378cfe8027f8f92f701dfb33f5a869a2b2768
[ "MIT" ]
null
null
null
import hashlib class Transaction: def __init__(self, from_address, to_address, amount, timestamp): self.from_address = from_address self.to_address = to_address self.amount = amount self.timestamp = timestamp def __repr__(self): return ( f'Transaction(' ...
25.7
68
0.597276
bc4c07ce62d1fe872901cd2878f627841ffaa976
2,158
py
Python
pglifecycle/validation.py
gmr/pglifecycle
d8d3641ba8044f191e0b49686f0d028dd889a089
[ "BSD-3-Clause" ]
3
2019-11-13T20:24:25.000Z
2021-12-06T13:21:10.000Z
pglifecycle/validation.py
gmr/pglifecycle
d8d3641ba8044f191e0b49686f0d028dd889a089
[ "BSD-3-Clause" ]
null
null
null
pglifecycle/validation.py
gmr/pglifecycle
d8d3641ba8044f191e0b49686f0d028dd889a089
[ "BSD-3-Clause" ]
null
null
null
""" Data validation using bundled JSON-Schema files """ import functools import logging import pathlib import jsonschema from jsonschema import exceptions import pkg_resources from pglifecycle import yaml LOGGER = logging.getLogger(__name__) def validate_object(obj_type: str, name: str, data: dict) -> bool: "...
30.394366
77
0.633457
a44427092bae88aa41b3b1d0684cfcf36835b3d2
1,636
py
Python
lite/demo/python/mobilenetv1_light_api.py
jameswu2014/Paddle-Lite
827e349ac8eb769a873fe9b3aa961af8b8b20a96
[ "Apache-2.0" ]
1
2020-03-09T03:51:31.000Z
2020-03-09T03:51:31.000Z
lite/demo/python/mobilenetv1_light_api.py
jameswu2014/Paddle-Lite
827e349ac8eb769a873fe9b3aa961af8b8b20a96
[ "Apache-2.0" ]
null
null
null
lite/demo/python/mobilenetv1_light_api.py
jameswu2014/Paddle-Lite
827e349ac8eb769a873fe9b3aa961af8b8b20a96
[ "Apache-2.0" ]
1
2020-02-13T10:45:37.000Z
2020-02-13T10:45:37.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
28.701754
76
0.726161
3fb7697c2128b89068e6d696b7f2d6bf9be12fb0
5,164
py
Python
embedding/filter_columns.py
guenthermi/table-embeddings
3ce094483fc5057b18f898d450a7c376d49818fa
[ "MIT" ]
6
2021-03-17T09:53:10.000Z
2022-03-28T18:26:22.000Z
embedding/filter_columns.py
guenthermi/table-embeddings
3ce094483fc5057b18f898d450a7c376d49818fa
[ "MIT" ]
null
null
null
embedding/filter_columns.py
guenthermi/table-embeddings
3ce094483fc5057b18f898d450a7c376d49818fa
[ "MIT" ]
null
null
null
import re import gzip import ujson as json from datetime import datetime from whatthelang import WhatTheLang from argparse import ArgumentParser, FileType, ArgumentDefaultsHelpFormatter import utils class ColumnFilter: def __init__(self, config): self.config = config self.result_tables = list() ...
35.129252
144
0.572037
755408848d7c9e768267f259f382c47fab1514df
863
py
Python
setup.py
bratao/tus-flask
3a4c8ed79ec8d5f063ab1fabb1a22e395592b26f
[ "MIT" ]
1
2019-04-10T02:38:00.000Z
2019-04-10T02:38:00.000Z
setup.py
bratao/tus-flask
3a4c8ed79ec8d5f063ab1fabb1a22e395592b26f
[ "MIT" ]
1
2018-10-16T13:28:16.000Z
2018-10-16T13:28:16.000Z
setup.py
bratao/tus-flask
3a4c8ed79ec8d5f063ab1fabb1a22e395592b26f
[ "MIT" ]
null
null
null
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst')) as f: long_description = f.read() setup( name='tus-flask', version='0.1.0', description='A flask filter for the TUS resumable upload protocol', long_description=lo...
26.151515
71
0.621089
1f13827d26a9d1d8a5ea18927e42bbb93e1bb68c
4,010
py
Python
src/glum_benchmarks/benchmark_dense_sandwich.py
readthedocs-assistant/glum
d6c114df9b860cf73b201d846b7965cb15fc7720
[ "BSD-3-Clause" ]
68
2021-10-08T09:05:29.000Z
2022-03-28T14:40:58.000Z
src/glum_benchmarks/benchmark_dense_sandwich.py
readthedocs-assistant/glum
d6c114df9b860cf73b201d846b7965cb15fc7720
[ "BSD-3-Clause" ]
49
2021-10-08T01:44:18.000Z
2022-03-08T08:53:00.000Z
src/glum_benchmarks/benchmark_dense_sandwich.py
readthedocs-assistant/glum
d6c114df9b860cf73b201d846b7965cb15fc7720
[ "BSD-3-Clause" ]
11
2021-10-14T10:34:53.000Z
2022-03-09T11:38:29.000Z
import time from typing import Any, Callable, Dict, List, Tuple import numpy as np import pandas as pd from tabmat.ext.dense import dense_sandwich def _numpy_mklC(X, d): sqrtD = np.sqrt(d)[:, np.newaxis] x_d = X[0] * sqrtD return x_d.T @ x_d def _numpy_mklF(X, d): sqrtD = np.sqrt(d)[:, np.newaxis] ...
28.239437
88
0.500249
daa690fc5242a02a9f8cf1f2ec582199255817de
11,223
py
Python
oss_net/decoder.py
ChristophReich1996/OSS-Net
38ffae60286b53e72f2d17f510dbbfffb7036caa
[ "MIT" ]
17
2021-11-03T18:18:38.000Z
2022-03-20T12:35:56.000Z
oss_net/decoder.py
ChristophReich1996/OSS-Net
38ffae60286b53e72f2d17f510dbbfffb7036caa
[ "MIT" ]
null
null
null
oss_net/decoder.py
ChristophReich1996/OSS-Net
38ffae60286b53e72f2d17f510dbbfffb7036caa
[ "MIT" ]
1
2022-01-12T04:34:39.000Z
2022-01-12T04:34:39.000Z
from typing import Type, Tuple, Any import math import torch import torch.nn as nn from pade_activation_unit.utils import PAU class ResidualCBNDecoder(nn.Module): """ This class implements a residual and Conditional Batch Normalization (CBN) based occupancy decoder. """ def __init__(self, ...
47.757447
118
0.627372
7175be6a886ab36cc03e4d4b7cdeaefabc5dc93c
4,272
py
Python
otcextensions/sdk/auto_scaling/v1/group.py
kucerakk/python-otcextensions
d74d6aaa6dcf7c46d2c5fbe3676656baaf8e81d6
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/auto_scaling/v1/group.py
kucerakk/python-otcextensions
d74d6aaa6dcf7c46d2c5fbe3676656baaf8e81d6
[ "Apache-2.0" ]
null
null
null
otcextensions/sdk/auto_scaling/v1/group.py
kucerakk/python-otcextensions
d74d6aaa6dcf7c46d2c5fbe3676656baaf8e81d6
[ "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 t...
41.475728
76
0.707397
0675dea855ba9d164604c77f69869ebcd9890e5b
1,066
py
Python
scripts/quantile_plot.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
2
2021-04-10T18:12:19.000Z
2021-05-11T12:07:40.000Z
scripts/quantile_plot.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
1
2021-04-22T15:46:27.000Z
2021-04-22T15:46:27.000Z
scripts/quantile_plot.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
1
2021-06-21T01:18:07.000Z
2021-06-21T01:18:07.000Z
import numpy as np import matplotlib.pyplot as plt import pyprobml_utils as pml from scipy.stats import norm x = np.linspace(-3, 3, 100) y = norm.pdf(x) f = norm.cdf(x) plt.figure() plt.plot(x, f) plt.title('CDF') pml.save_fig('gaussianCDF.pdf') plt.show() plt.figure() plt.plot(x, y) pml.save_fig('gaussianPDF.pdf'...
24.227273
70
0.640713
7a9af24eb92488c2b38938c1e5e87418e94a4de3
1,161
py
Python
neutron/db/model_base.py
igor-toga/local-snat
7adfe5668d309ff56350acee0d0b986e670abe7c
[ "Apache-2.0" ]
1
2017-09-10T09:57:35.000Z
2017-09-10T09:57:35.000Z
neutron/db/model_base.py
igor-toga/local-snat
7adfe5668d309ff56350acee0d0b986e670abe7c
[ "Apache-2.0" ]
null
null
null
neutron/db/model_base.py
igor-toga/local-snat
7adfe5668d309ff56350acee0d0b986e670abe7c
[ "Apache-2.0" ]
1
2015-05-05T14:41:11.000Z
2015-05-05T14:41:11.000Z
# Copyright (c) 2012 OpenStack Foundation. # # 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...
32.25
79
0.749354
df62a0f4beec62059401f7a7108f8dc4fa8faee0
146
py
Python
tests/conftest.py
kennyworkman/colony-visual
d4eacb1e90d449e93a34a1ca2e7a1dce067d049e
[ "MIT", "Unlicense" ]
2
2019-09-04T07:36:56.000Z
2020-05-23T15:20:37.000Z
tests/conftest.py
kennyworkman/colony-visual
d4eacb1e90d449e93a34a1ca2e7a1dce067d049e
[ "MIT", "Unlicense" ]
null
null
null
tests/conftest.py
kennyworkman/colony-visual
d4eacb1e90d449e93a34a1ca2e7a1dce067d049e
[ "MIT", "Unlicense" ]
null
null
null
import pytest from cvisual.utils import get_bam_vcf_files @pytest.fixture def dummy_data(): return get_bam_vcf_files('./tests/dummy_data/')
18.25
51
0.787671