hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
40b2eb86509a7b4bf8ce745acfda0a37083d5216
21,968
py
Python
squareconnect/models/v1_order.py
xethorn/connect-python-sdk
a0543b2f7ea498865c6d916de0b10370f89ebc77
[ "Apache-2.0" ]
null
null
null
squareconnect/models/v1_order.py
xethorn/connect-python-sdk
a0543b2f7ea498865c6d916de0b10370f89ebc77
[ "Apache-2.0" ]
null
null
null
squareconnect/models/v1_order.py
xethorn/connect-python-sdk
a0543b2f7ea498865c6d916de0b10370f89ebc77
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Copyright 2017 Square, 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 la...
29.487248
515
0.609978
87b87d926cd880f4f05e539e95e224d7160a6e98
3,784
py
Python
virtual/lib/python3.6/site-packages/pylint/test/functional/name_styles.py
drewheathens/The-Moringa-Tribune
98ee4d63c9df6f1f7497fc6876960a822d914500
[ "MIT" ]
69
2019-02-18T12:07:35.000Z
2022-03-12T10:38:32.000Z
virtual/lib/python3.6/site-packages/pylint/test/functional/name_styles.py
drewheathens/The-Moringa-Tribune
98ee4d63c9df6f1f7497fc6876960a822d914500
[ "MIT" ]
16
2020-02-12T00:28:11.000Z
2022-03-11T23:48:19.000Z
virtual/lib/python3.6/site-packages/pylint/test/functional/name_styles.py
drewheathens/The-Moringa-Tribune
98ee4d63c9df6f1f7497fc6876960a822d914500
[ "MIT" ]
28
2019-03-22T01:07:13.000Z
2022-02-21T16:38:27.000Z
"""Test for the invalid-name warning.""" # pylint: disable=no-absolute-import, useless-object-inheritance, unnecessary-pass from __future__ import print_function import abc import collections GOOD_CONST_NAME = '' bad_const_name = 0 # [invalid-name] def BADFUNCTION_name(): # [invalid-name] """Bad function name....
26.836879
82
0.691332
fa157f1a04736ecf925e50cd19d3e85ec8f2cb78
16,159
py
Python
venv/Lib/site-packages/jet/utils.py
majestylink/majestyAccencis
41bdde6f9982980609f93a8b44bcaf06cc5f6ea6
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
venv/Lib/site-packages/jet/utils.py
majestylink/majestyAccencis
41bdde6f9982980609f93a8b44bcaf06cc5f6ea6
[ "MIT" ]
21
2021-02-04T01:37:44.000Z
2022-03-12T01:00:55.000Z
venv/Lib/site-packages/jet/utils.py
majestylink/majestyAccencis
41bdde6f9982980609f93a8b44bcaf06cc5f6ea6
[ "MIT" ]
null
null
null
import datetime import json from django.template import Context from django.utils import translation from jet import settings from jet.models import PinnedApplication try: from django.apps.registry import apps except ImportError: try: from django.apps import apps # Fix Django 1.7 import issue excep...
34.454158
119
0.605545
fe55cf7adcc9d0c1a1d9a540df15ea1a2748d6ec
885
py
Python
python/django_14_app/django_14_app/urls.py
go/trace-examples
813e262f2182f7f90d370887de88fd9609526252
[ "BSD-3-Clause" ]
1
2020-04-01T16:29:48.000Z
2020-04-01T16:29:48.000Z
python/django_14_app/django_14_app/urls.py
go/trace-examples
813e262f2182f7f90d370887de88fd9609526252
[ "BSD-3-Clause" ]
4
2020-06-06T00:36:58.000Z
2021-06-10T22:35:19.000Z
python/django_14_app/django_14_app/urls.py
go/trace-examples
813e262f2182f7f90d370887de88fd9609526252
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', (r'^polls/simple', 'polls.views.simple_view'), (r'^polls/templated', 'polls.views.templated_view'), (r'^polls/cached'...
35.4
71
0.684746
f42377dab9448b694dafb0de48c5dafac07fb982
1,450
py
Python
spider/BingPictures/main.py
hiyongz/pythontools
b26b417a69c4ce295322dbf4f2eb4cbfa4606184
[ "MIT" ]
null
null
null
spider/BingPictures/main.py
hiyongz/pythontools
b26b417a69c4ce295322dbf4f2eb4cbfa4606184
[ "MIT" ]
null
null
null
spider/BingPictures/main.py
hiyongz/pythontools
b26b417a69c4ce295322dbf4f2eb4cbfa4606184
[ "MIT" ]
null
null
null
""" 一个爬取图片的例子,用的是很基础的方法,下载速度不快,供学习 """ import os import requests # 先导入爬虫的库 from lxml import html headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36" } # 设置头部信息,伪装浏览器 host = "https://bing.ioliu.cn" # 爬取这个网站上的图片 p = 1 # ...
35.365854
135
0.568276
72ae1493a5fb176f0bb4067fb6a868bbb6c8ffc5
4,448
py
Python
TargetEncoder.py
mohsinkhn/ltfs-av
43077049b817e6eb0a8a8a2bf0177c9a1d9940d0
[ "MIT" ]
5
2019-04-26T20:07:30.000Z
2021-02-04T20:24:34.000Z
TargetEncoder.py
mohsinkhn/ltfs-av
43077049b817e6eb0a8a8a2bf0177c9a1d9940d0
[ "MIT" ]
null
null
null
TargetEncoder.py
mohsinkhn/ltfs-av
43077049b817e6eb0a8a8a2bf0177c9a1d9940d0
[ "MIT" ]
1
2019-04-29T09:45:12.000Z
2019-04-29T09:45:12.000Z
import pandas as pd import numpy as np from collections import Counter from sklearn.base import BaseEstimator, TransformerMixin #@author: Mohsin class TargetEncoderWithThresh(BaseEstimator, TransformerMixin): """ A utlity class to help encode categorical variables using different methods. Ideas taken fro...
45.85567
154
0.645683
9a07d0a3e4d8f03e06b1c63786253e070e396355
5,328
py
Python
supervisor/compat.py
alex/supervisor
7ffe1cbd53e540ca4e242e0dd3c431766cf186fc
[ "ZPL-2.1" ]
1
2015-11-08T13:01:35.000Z
2015-11-08T13:01:35.000Z
supervisor/compat.py
alex/supervisor
7ffe1cbd53e540ca4e242e0dd3c431766cf186fc
[ "ZPL-2.1" ]
null
null
null
supervisor/compat.py
alex/supervisor
7ffe1cbd53e540ca4e242e0dd3c431766cf186fc
[ "ZPL-2.1" ]
null
null
null
from __future__ import absolute_import import sys PY3 = sys.version>'3' if PY3: # pragma: no cover long = int basestring = str unichr = chr raw_input = input class unicode(str): def __init__(self, string, encoding, errors): str.__init__(self, string) def as_bytes(s): return...
32.290909
90
0.65503
a1a5a8a23235f968dd06024e3d211dff1983775a
424
py
Python
Exercices/Secao05/exercicio06.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao05/exercicio06.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao05/exercicio06.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
print('Digite dois números, para ver qual é o maior entre eles e a sua diferença') n1 = int(input('Número 1: ')) n2 = int(input('Número 2: ')) if n1 > n2: diferenca = n1 - n2 print(f'O primeiro número {n1} é maior que o segundo número {n2} e a sua diferença é de: {diferenca}') else: diferenca1 = n2 - n1 ...
47.111111
107
0.667453
77d9bcdef8235c1176bd5b537e8d8ed26fe85b22
16,101
py
Python
03_SweynTooth/libs/scapy/layers/dhcp.py
Charmve/BLE-Security-Att-Def
3652d84bf4ac0c694bb3c4c0f611098da9122af0
[ "BSD-2-Clause" ]
149
2020-10-23T23:31:51.000Z
2022-03-15T00:25:35.000Z
03_SweynTooth/libs/scapy/layers/dhcp.py
Charmve/BLE-Security-Att-Def
3652d84bf4ac0c694bb3c4c0f611098da9122af0
[ "BSD-2-Clause" ]
1
2021-04-12T19:24:00.000Z
2021-04-27T03:11:07.000Z
03_SweynTooth/libs/scapy/layers/dhcp.py
Charmve/BLE-Security-Att-Def
3652d84bf4ac0c694bb3c4c0f611098da9122af0
[ "BSD-2-Clause" ]
22
2020-11-17T02:52:40.000Z
2022-03-15T00:26:38.000Z
# This file is part of Scapy # See http://www.secdev.org/projects/scapy for more information # Copyright (C) Philippe Biondi <phil@secdev.org> # This program is published under a GPLv2 license """ DHCP (Dynamic Host Configuration Protocol) and BOOTP """ from __future__ import absolute_import from __future__ import pr...
34.184713
131
0.537358
7d333c9b3eb5ec39028dab3002d5b90e3709883b
58,157
py
Python
tests/unit/gapic/dialogflow_v2/test_fulfillments.py
rogers140/python-dialogflow
d9ce91f8590947736560727624fbc0846601ce1c
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/dialogflow_v2/test_fulfillments.py
rogers140/python-dialogflow
d9ce91f8590947736560727624fbc0846601ce1c
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/dialogflow_v2/test_fulfillments.py
rogers140/python-dialogflow
d9ce91f8590947736560727624fbc0846601ce1c
[ "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...
38.160761
114
0.689685
a11a884cffac6ba104ee1d938e98fa4bb4b2693e
38,504
py
Python
checks.d/vsphere.py
takus/dd-agent
3029873135f0f55c1bcdf3f825691aafca5abf97
[ "BSD-3-Clause" ]
2
2018-01-31T03:50:55.000Z
2018-01-31T03:51:04.000Z
checks.d/vsphere.py
takus/dd-agent
3029873135f0f55c1bcdf3f825691aafca5abf97
[ "BSD-3-Clause" ]
null
null
null
checks.d/vsphere.py
takus/dd-agent
3029873135f0f55c1bcdf3f825691aafca5abf97
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2010-2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) # stdlib from datetime import datetime, timedelta from hashlib import md5 from Queue import Empty, Queue import re import ssl import time import traceback # 3p from pyVim import connect from pyVmomi import vim #...
39.491282
137
0.597237
23decabb8c0f6029c8e7767bb3d56c4fafa65c5b
925
py
Python
DQMOffline/CalibCalo/python/MonitorAlCaHcalPhisym_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
DQMOffline/CalibCalo/python/MonitorAlCaHcalPhisym_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
DQMOffline/CalibCalo/python/MonitorAlCaHcalPhisym_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
# The following comments couldn't be translated into the new config version: # prescale import FWCore.ParameterSet.Config as cms # # # \author Stefano Argiro # from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer HcalPhiSymMon = DQMEDAnalyzer('DQMHcalPhiSymAlCaReco', # product to monitor hbheInputMB = cm...
29.83871
76
0.707027
de059c65018fc6990af1648e4cec32c88f06319b
3,875
py
Python
upsea_Ver_0.1/Ea_02_money/moneySecond.py
UpSea/PyAlgoTradeMid
c8edcbc089d92dbfbb8bb25af92a039146f6c6da
[ "MIT" ]
null
null
null
upsea_Ver_0.1/Ea_02_money/moneySecond.py
UpSea/PyAlgoTradeMid
c8edcbc089d92dbfbb8bb25af92a039146f6c6da
[ "MIT" ]
null
null
null
upsea_Ver_0.1/Ea_02_money/moneySecond.py
UpSea/PyAlgoTradeMid
c8edcbc089d92dbfbb8bb25af92a039146f6c6da
[ "MIT" ]
1
2021-04-10T06:04:04.000Z
2021-04-10T06:04:04.000Z
# -*- coding: utf-8 -*- import baseMoney class moneySecond(baseMoney.baseMoney): def __init__(self): '''mid 回测过程中,关于账户状况,只有两个数据可以获取: 1.账户权益价值 2.账户现金资产价值 权益价值 = 现金资产价值 + 非现金资产价值 非现金资产包括账户中持有的所有头寸的价值 买入时: 现金减少 购入资产增加,资产价值以正值表示 1000现金,买入4...
39.540816
127
0.536258
56cb5a6e5265983fb9a628a01044ce1e8ed7d9fe
29,088
py
Python
google/ads/google_ads/v2/services/language_constant_service_client.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2019-11-30T23:42:39.000Z
2019-11-30T23:42:39.000Z
google/ads/google_ads/v2/services/language_constant_service_client.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v2/services/language_constant_service_client.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2020-09-30T17:04:06.000Z
2020-09-30T17:04:06.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
62.554839
119
0.810472
c6c42b7cbfe3c98fa501e805191be2fe65f9573d
3,618
py
Python
app/main/views.py
kamransumar/blog-ip
4e55e641effb79ad96c3d16149c7aea179b627f1
[ "Unlicense" ]
null
null
null
app/main/views.py
kamransumar/blog-ip
4e55e641effb79ad96c3d16149c7aea179b627f1
[ "Unlicense" ]
null
null
null
app/main/views.py
kamransumar/blog-ip
4e55e641effb79ad96c3d16149c7aea179b627f1
[ "Unlicense" ]
null
null
null
from flask import render_template, request, redirect, url_for, abort from flask_login import login_required, current_user from . import main from ..models import User, Blog, Comment from .forms import * from .. import db, photos from datetime import datetime # Views @main.route('/') def index(): ''' View root...
25.659574
92
0.644831
f80376cc7b7cab8bb8a2ab44e925315dd59b4934
5,300
py
Python
app.py
avirupsinha10/Face-Mask-Detection
80581febe9cd21054e4c972be5238fe975cb1ef6
[ "MIT" ]
null
null
null
app.py
avirupsinha10/Face-Mask-Detection
80581febe9cd21054e4c972be5238fe975cb1ef6
[ "MIT" ]
null
null
null
app.py
avirupsinha10/Face-Mask-Detection
80581febe9cd21054e4c972be5238fe975cb1ef6
[ "MIT" ]
null
null
null
import streamlit as st from PIL import Image, ImageEnhance import numpy as np import cv2 import os from tensorflow.keras.applications.mobilenet_v2 import preprocess_input from tensorflow.keras.preprocessing.image import img_to_array from tensorflow.keras.models import load_model import detect_mask_image # Se...
44.166667
120
0.619057
92c908da80dbb180123f1ac420516a6050741814
7,988
py
Python
docs/conf.py
GMakarenko/ultimatepyxl
1bf1d1864d37a5935a4fcebcb7a564493b7c57f9
[ "MIT" ]
null
null
null
docs/conf.py
GMakarenko/ultimatepyxl
1bf1d1864d37a5935a4fcebcb7a564493b7c57f9
[ "MIT" ]
null
null
null
docs/conf.py
GMakarenko/ultimatepyxl
1bf1d1864d37a5935a4fcebcb7a564493b7c57f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # editpyxl documentation build configuration file, created by # sphinx-quickstart on Wed May 7 10:56:37 2014. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
32.080321
113
0.714572
b2b11e99032968bf39c2611d402de07ef9204747
4,435
py
Python
Unet/UNet.py
hong2223/traffic4cast2020
767af3714dcfef529f514bf253ef7aa8b3a00203
[ "Apache-2.0" ]
null
null
null
Unet/UNet.py
hong2223/traffic4cast2020
767af3714dcfef529f514bf253ef7aa8b3a00203
[ "Apache-2.0" ]
null
null
null
Unet/UNet.py
hong2223/traffic4cast2020
767af3714dcfef529f514bf253ef7aa8b3a00203
[ "Apache-2.0" ]
1
2021-11-01T12:08:48.000Z
2021-11-01T12:08:48.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import init class conv_block(nn.Module): def __init__(self, ch_in, ch_out, k_size=3): super(conv_block, self).__init__() self.conv = nn.Sequential( nn.Conv2d(ch_in, ch_out, kernel_size=k_size, padding=k_si...
30.586207
108
0.58805
be31f6d65f3c6101b61de2c948d7a1360162e178
19,292
py
Python
dadmatools/models/flair/trainers/.ipynb_checkpoints/language_model_trainer-checkpoint.py
njzr/DadmaTools
64ff407d5d818d5a9216340cccf0d1cc909d3b1b
[ "Apache-2.0" ]
25
2021-12-01T15:19:36.000Z
2022-03-12T12:50:28.000Z
dadmatools/models/flair/trainers/.ipynb_checkpoints/language_model_trainer-checkpoint.py
ebad84/DadmaTools
b26ad8aa834f642d49bd120bd7cf1fdf40741be1
[ "Apache-2.0" ]
3
2021-12-14T06:34:52.000Z
2022-02-17T08:23:20.000Z
dadmatools/models/flair/trainers/.ipynb_checkpoints/language_model_trainer-checkpoint.py
ebad84/DadmaTools
b26ad8aa834f642d49bd120bd7cf1fdf40741be1
[ "Apache-2.0" ]
6
2021-10-12T13:44:17.000Z
2022-03-07T13:54:17.000Z
import time, datetime import random import sys import logging from pathlib import Path from typing import Union from torch import cuda from torch.utils.data import Dataset, DataLoader from torch.optim.sgd import SGD try: from apex import amp except ImportError: amp = None import models.flair as flair from mo...
34.823105
112
0.488596
1f0ec10b9f37ada40955d263e08b46d386e70ea7
2,469
py
Python
nideep/nets/net_surgery_fcn_cont.py
kashefy/caffe_sandbox
31afc409df14fece0ac21707185e586dd2d625a9
[ "BSD-2-Clause" ]
15
2015-08-26T21:15:15.000Z
2016-03-10T06:25:08.000Z
nideep/nets/net_surgery_fcn_cont.py
nigroup/nideep
31afc409df14fece0ac21707185e586dd2d625a9
[ "BSD-2-Clause" ]
35
2016-05-24T13:57:01.000Z
2018-03-07T18:43:07.000Z
nideep/nets/net_surgery_fcn_cont.py
nigroup/nideep
31afc409df14fece0ac21707185e586dd2d625a9
[ "BSD-2-Clause" ]
11
2016-05-24T13:42:55.000Z
2019-10-04T16:20:54.000Z
''' Created on Jul 21, 2015 @author: kashefy ''' import os import caffe def make_fully_conv(path_model_src, path_weights_src, path_model_full_conv, param_pairs, path_weights_dst ): # PART A: Load the original netw...
37.409091
144
0.64439
c7679c24c63a7447494149e53adce080df266681
5,153
py
Python
tensorflow_probability/python/experimental/inference_gym/targets/banana.py
bourov/probability
1e4053a0938b4773c3425bcbb07b3f1e5d50c7e2
[ "Apache-2.0" ]
2
2020-12-17T20:43:24.000Z
2021-06-11T22:09:16.000Z
tensorflow_probability/python/experimental/inference_gym/targets/banana.py
bourov/probability
1e4053a0938b4773c3425bcbb07b3f1e5d50c7e2
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/inference_gym/targets/banana.py
bourov/probability
1e4053a0938b4773c3425bcbb07b3f1e5d50c7e2
[ "Apache-2.0" ]
1
2020-10-22T21:09:22.000Z
2020-10-22T21:09:22.000Z
# Lint as: python2, python3 # Copyright 2020 The TensorFlow Probability 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 ...
35.784722
82
0.658451
9dfa1e025d04047916fe7e6022a1106b243f4b54
16,037
py
Python
sunspec2/modbus/client.py
sunspec/pysunspec2
e946f86d7167b14039dd5fe4e442cd899072401b
[ "Apache-2.0" ]
26
2020-09-05T22:23:53.000Z
2022-03-17T21:44:00.000Z
sunspec2/modbus/client.py
sunspec/pysunspec2
e946f86d7167b14039dd5fe4e442cd899072401b
[ "Apache-2.0" ]
45
2020-09-09T21:34:54.000Z
2022-02-16T12:28:41.000Z
sunspec2/modbus/client.py
sunspec/pysunspec2
e946f86d7167b14039dd5fe4e442cd899072401b
[ "Apache-2.0" ]
10
2020-09-28T17:23:12.000Z
2021-09-16T15:50:30.000Z
""" Copyright (C) 2020 SunSpec Alliance Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
37.823113
120
0.60454
28ab413f25ba4a6ef11df0a1408951ed8e2254a1
5,475
py
Python
doc/generate_config_rst.py
heidihoward/CCF
2a048e2ef9da7a5b09e759f232b7abe0fe497e93
[ "Apache-2.0" ]
null
null
null
doc/generate_config_rst.py
heidihoward/CCF
2a048e2ef9da7a5b09e759f232b7abe0fe497e93
[ "Apache-2.0" ]
22
2021-11-09T00:42:40.000Z
2022-01-13T11:54:37.000Z
doc/generate_config_rst.py
heidihoward/CCF
2a048e2ef9da7a5b09e759f232b7abe0fe497e93
[ "Apache-2.0" ]
1
2021-12-04T22:44:27.000Z
2021-12-04T22:44:27.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import os import sys import json import tempfile import filecmp # Generated document is included in existing page, so # start at heading of depth 1 (equivalent to markdown h2.) START_DEPTH = 1 class MinimalRstGenera...
34.651899
105
0.557078
c143b21a5224cdf8f652246bed038635a8cd1c3f
370
py
Python
aula07/ex006.py
avacorreia/Exercicio-Curso-em-Video-Pyton-Modulo1
f04a3b0bc360318b1420b23df3325908220773aa
[ "MIT" ]
null
null
null
aula07/ex006.py
avacorreia/Exercicio-Curso-em-Video-Pyton-Modulo1
f04a3b0bc360318b1420b23df3325908220773aa
[ "MIT" ]
null
null
null
aula07/ex006.py
avacorreia/Exercicio-Curso-em-Video-Pyton-Modulo1
f04a3b0bc360318b1420b23df3325908220773aa
[ "MIT" ]
null
null
null
n1 = int(input('insira o 1 numero')) n2 = int(input('insira o 2 numero')) soma = n1 + n2 sub = n1 - n2 div = n1/n2 mul = n1 * n2 pot = n1 ** n2 divint = n1 // n2 res = n1 % n2 print('soma = ', soma) print('Sub = ', sub) print('Divisão = ', div) print('multiplicação', mul) print('potencia = ', pot) print('Divisão inteir...
20.555556
36
0.605405
be62832ec0b93736200fa73f8a1a91e17d22a3ee
34,258
py
Python
raiden/tests/integration/long_running/test_settlement.py
marcosmartinez7/lumino
2a5a74589aaf26172cee6ec23fde5f4fc1938a43
[ "MIT" ]
8
2019-06-12T14:50:06.000Z
2022-02-15T16:20:07.000Z
raiden/tests/integration/long_running/test_settlement.py
marcosmartinez7/lumino
2a5a74589aaf26172cee6ec23fde5f4fc1938a43
[ "MIT" ]
141
2019-06-18T13:04:08.000Z
2021-11-23T22:00:32.000Z
raiden/tests/integration/long_running/test_settlement.py
marcosmartinez7/lumino
2a5a74589aaf26172cee6ec23fde5f4fc1938a43
[ "MIT" ]
17
2019-05-21T18:09:05.000Z
2020-10-29T13:01:01.000Z
import random import gevent import pytest from raiden import waiting from raiden.api.python import RaidenAPI from raiden.constants import UINT64_MAX, EMPTY_PAYMENT_HASH_INVOICE from raiden.exceptions import RaidenUnrecoverableError from raiden.messages import LockedTransfer, LockExpired, RevealSecret from raiden.stor...
36.367304
99
0.740177
1df747a0e99e6e5eba676deaf0da2f70b26e4816
806
py
Python
ex32.py
EthanPen/Learn-Python-The-Hard-Way
42c679dcac3d971b72f6e92714146ff8e1488c75
[ "CNRI-Python" ]
null
null
null
ex32.py
EthanPen/Learn-Python-The-Hard-Way
42c679dcac3d971b72f6e92714146ff8e1488c75
[ "CNRI-Python" ]
null
null
null
ex32.py
EthanPen/Learn-Python-The-Hard-Way
42c679dcac3d971b72f6e92714146ff8e1488c75
[ "CNRI-Python" ]
null
null
null
the_count = [1, 2, 3, 4, 5] fruits = ['apples', 'oranges', 'pears', 'apricots'] change = [1, 'pennies', 2, 'dimes', 3, 'quarters'] # this first kind of for-loop goes through a list for number in the_count: print "This is count %d" % number # same as above for fruit in fruits: print "A fruit of type: %s" % fru...
27.793103
59
0.657568
7b13b24032ffc40007e64b7e65ed6a7fa5815b5b
2,750
py
Python
script/python/python-ad-0.9/lib/ad/util/parser.py
nkysg/Asenal
12444c7e50fae2be82d3c4737715a52e3693a3cd
[ "Apache-2.0" ]
9
2015-03-28T16:05:01.000Z
2021-05-15T02:53:44.000Z
lib/ad/util/parser.py
geertj/python-ad
3089eae072bd2e871c11251961ec35a09b83dd38
[ "MIT" ]
null
null
null
lib/ad/util/parser.py
geertj/python-ad
3089eae072bd2e871c11251961ec35a09b83dd38
[ "MIT" ]
7
2015-04-14T13:04:52.000Z
2021-02-24T12:50:05.000Z
# # This file is part of Python-AD. Python-AD is free software that is made # available under the MIT license. Consult the file "LICENSE" that is # distributed together with this file for the exact licensing terms. # # Python-AD is copyright (c) 2007 by the Python-AD authors. See the file # "AUTHORS" for a complete ove...
31.609195
73
0.572364
74df37b1bf91a8ee28820c319af2f4288426bca4
3,033
py
Python
pydepend/project.py
herczy/pydepend
ee64ba30efc3e19d643da2ed22e078ef4a06795d
[ "BSD-3-Clause" ]
2
2019-04-21T06:10:09.000Z
2020-04-24T23:12:02.000Z
pydepend/project.py
herczy/pydepend
ee64ba30efc3e19d643da2ed22e078ef4a06795d
[ "BSD-3-Clause" ]
null
null
null
pydepend/project.py
herczy/pydepend
ee64ba30efc3e19d643da2ed22e078ef4a06795d
[ "BSD-3-Clause" ]
null
null
null
import sys import ast import os.path import imp from .collector import Collector from .report import Result, ResultCollection class Project(object): def __scan_module(self, fq_name, path=None): modpath = self.__resolve_module_path(fq_name, path=path) return self.__scan_path(modpath) def __re...
29.446602
103
0.602704
1789c1a00a995b1c83b2de352f77c248412aece0
34,212
py
Python
Tests/MDXUtils.py
harveyca307/tm1py-1
d12a9bc02e0c543d61fcda9e367490c5388bd1fb
[ "MIT" ]
null
null
null
Tests/MDXUtils.py
harveyca307/tm1py-1
d12a9bc02e0c543d61fcda9e367490c5388bd1fb
[ "MIT" ]
null
null
null
Tests/MDXUtils.py
harveyca307/tm1py-1
d12a9bc02e0c543d61fcda9e367490c5388bd1fb
[ "MIT" ]
null
null
null
import configparser import json import random import unittest from pathlib import Path from TM1py import Subset from TM1py.Objects import Cube, Dimension, Hierarchy, MDXView from TM1py.Services import TM1Service from TM1py.Utils import MDXUtils, Utils, format_url from TM1py.Utils.MDXUtils import ( DimensionSelecti...
38.965831
118
0.584853
1e2367c0855442606768ad594b4ecd7bee790509
2,433
py
Python
storyboard/db/migration/alembic_migrations/versions/057_allow_stories_and_tasks_to_be_made_.py
Sitcode-Zoograf/storyboard
5833f87e20722c524a1e4a0b8e1fb82206fb4e5c
[ "Apache-2.0" ]
null
null
null
storyboard/db/migration/alembic_migrations/versions/057_allow_stories_and_tasks_to_be_made_.py
Sitcode-Zoograf/storyboard
5833f87e20722c524a1e4a0b8e1fb82206fb4e5c
[ "Apache-2.0" ]
null
null
null
storyboard/db/migration/alembic_migrations/versions/057_allow_stories_and_tasks_to_be_made_.py
Sitcode-Zoograf/storyboard
5833f87e20722c524a1e4a0b8e1fb82206fb4e5c
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Codethink Ltd # # 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...
34.267606
79
0.695849
2c92819f76bddaca52c85ab177e1e234291fd93c
7,061
py
Python
fink_broker/slackUtils.py
astrolabsoftware/fink-source
9003e933e1d8c3f03b70c2b277638de97be102ec
[ "Apache-2.0" ]
17
2019-03-08T12:37:06.000Z
2022-02-01T18:02:07.000Z
fink_broker/slackUtils.py
astrolabsoftware/fink-source
9003e933e1d8c3f03b70c2b277638de97be102ec
[ "Apache-2.0" ]
559
2019-03-07T14:55:27.000Z
2022-03-11T20:13:12.000Z
fink_broker/slackUtils.py
tallamjr/fink-broker
97753ff695b78ea52d084cac787dec6c52c4e4cc
[ "Apache-2.0" ]
12
2019-03-08T13:04:38.000Z
2022-01-23T22:22:50.000Z
#!/usr/bin/env python3 # Copyright 2019 AstroLab Software # Author: Abhishek Chauhan # # 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 # # Unl...
32.995327
93
0.574281
207d05e610cec336a68361bd58372d653fcda1eb
5,036
py
Python
src/cfnlint/rules/resources/properties/ListDuplicatesAllowed.py
amabowilli/cfn-python-lint
21e37e096fdcd94507d0a520aff0f8c8230ee438
[ "MIT-0" ]
null
null
null
src/cfnlint/rules/resources/properties/ListDuplicatesAllowed.py
amabowilli/cfn-python-lint
21e37e096fdcd94507d0a520aff0f8c8230ee438
[ "MIT-0" ]
null
null
null
src/cfnlint/rules/resources/properties/ListDuplicatesAllowed.py
amabowilli/cfn-python-lint
21e37e096fdcd94507d0a520aff0f8c8230ee438
[ "MIT-0" ]
null
null
null
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 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 ...
45.781818
118
0.638006
2cb276d45b7b504501942403d5bfc45041d67a65
17,172
py
Python
cea/analysis/lca/embodied.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
cea/analysis/lca/embodied.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
cea/analysis/lca/embodied.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
""" Embodied energy and related grey emissions model algorithm """ from __future__ import division import os import numpy as np import pandas as pd from cea.datamanagement.data_helper import calc_mainuse from cea.datamanagement.data_helper import calc_category from cea.utilities.dbf import dbf_to_dataframe from geopan...
55.038462
136
0.70615
21646d61871d21cac8f865dfa95d1409472ce8a9
8,923
py
Python
rllib/agents/dreamer/dreamer.py
Crissman/ray
2092b097eab41b118a117fdfadd0fe664db41f63
[ "Apache-2.0" ]
3
2021-06-22T19:57:41.000Z
2021-06-23T07:16:44.000Z
rllib/agents/dreamer/dreamer.py
h453693821/ray
9eb79727aa6ad94b01f8b660b83e1182555a89f6
[ "Apache-2.0" ]
84
2021-03-06T08:02:56.000Z
2022-03-05T08:07:19.000Z
rllib/agents/dreamer/dreamer.py
h453693821/ray
9eb79727aa6ad94b01f8b660b83e1182555a89f6
[ "Apache-2.0" ]
2
2021-05-05T21:05:16.000Z
2021-06-22T21:16:03.000Z
import logging import random import numpy as np from ray.rllib.agents import with_common_config from ray.rllib.agents.dreamer.dreamer_torch_policy import DreamerTorchPolicy from ray.rllib.agents.trainer_template import build_trainer from ray.rllib.execution.common import STEPS_SAMPLED_COUNTER, \ LEARNER_INFO, _ge...
33.171004
79
0.654376
79911fd7c68ebfd4fb1adf3557b1f4c3eb36d7f2
8,061
py
Python
analysis/models/nodes/filters/damage_node.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
analysis/models/nodes/filters/damage_node.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
analysis/models/nodes/filters/damage_node.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
import itertools import operator from functools import reduce from typing import Optional from django.db import models from django.db.models.query_utils import Q from analysis.models.nodes.analysis_node import AnalysisNode from annotation.models.damage_enums import PathogenicityImpact from annotation.models.models im...
42.204188
134
0.66952
1b8be3b8c47f6ca3d7b589a4f8bf29550687b7bd
55,981
py
Python
towhee/models/collaborative_experts/collaborative_experts.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "Apache-2.0" ]
null
null
null
towhee/models/collaborative_experts/collaborative_experts.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "Apache-2.0" ]
null
null
null
towhee/models/collaborative_experts/collaborative_experts.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "Apache-2.0" ]
null
null
null
# Built on top of the original implementation at https://github.com/albanie/collaborative-experts # # Modifications by Copyright 2022 Zilliz. 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 cop...
44.749001
130
0.563316
d8620e879e3a4bca7143f884ff106be7f63e3e21
1,824
py
Python
Task8.py
venkatchinmai/OPL-Assignments
71084f4029b9322c0415b0497abed2be061dfa75
[ "MIT" ]
null
null
null
Task8.py
venkatchinmai/OPL-Assignments
71084f4029b9322c0415b0497abed2be061dfa75
[ "MIT" ]
null
null
null
Task8.py
venkatchinmai/OPL-Assignments
71084f4029b9322c0415b0497abed2be061dfa75
[ "MIT" ]
null
null
null
class add: def __init__(self,number1,number2): self.number1=number1 self.number2=number2 def __str__(self): return "(+ "+str(self.number1)+" "+str(self.number2)+" )" class mul: def __init__(self,number3,number4): self.number3=number3 self.number4=number4 d...
21.458824
88
0.546601
c30ee7b543edc97e803f5f48f2accdff24f00aed
18,356
py
Python
graphsage/unsupervised_train.py
pyalex/GraphSAGE
683df699586a2724720fed60dc25c3523c4bf675
[ "MIT" ]
3
2019-03-20T08:44:34.000Z
2021-02-26T12:30:38.000Z
graphsage/unsupervised_train.py
pyalex/GraphSAGE
683df699586a2724720fed60dc25c3523c4bf675
[ "MIT" ]
null
null
null
graphsage/unsupervised_train.py
pyalex/GraphSAGE
683df699586a2724720fed60dc25c3523c4bf675
[ "MIT" ]
1
2019-05-29T08:15:25.000Z
2019-05-29T08:15:25.000Z
from __future__ import division from __future__ import print_function import os import time import tensorflow as tf import numpy as np from graphsage.models import SampleAndAggregate, SAGEInfo, Node2VecModel from graphsage.minibatch import EdgeMinibatchIterator from graphsage.neigh_samplers import UniformNeighborSamp...
42.688372
120
0.590216
04772287f43a21a4e69da47db18178d4944fb412
8,599
py
Python
datumaro/tests/test_RISE.py
lravindr/cvat
b025acea43fbb55c7ea7eac7b12007f0eb6d3f45
[ "MIT" ]
2
2020-03-16T03:41:27.000Z
2020-03-16T03:53:01.000Z
datumaro/tests/test_RISE.py
lravindr/cvat
b025acea43fbb55c7ea7eac7b12007f0eb6d3f45
[ "MIT" ]
24
2020-11-13T18:43:15.000Z
2022-03-12T00:21:52.000Z
datumaro/tests/test_RISE.py
lravindr/cvat
b025acea43fbb55c7ea7eac7b12007f0eb6d3f45
[ "MIT" ]
9
2021-05-17T07:00:03.000Z
2021-06-26T02:15:10.000Z
from collections import namedtuple import numpy as np from unittest import TestCase from datumaro.components.extractor import Label, Bbox from datumaro.components.launcher import Launcher from datumaro.components.algorithms.rise import RISE class RiseTest(TestCase): def test_rise_can_be_applied_to_classificatio...
37.225108
100
0.485522
08d1197bb0e66f87ae50de028f57b286cf564b17
9,660
py
Python
atkinson/errors/reporters/trello.py
jguiditta/atkinson
17479ac1a5b2975f8ec056409ff7b0436c143701
[ "MIT" ]
null
null
null
atkinson/errors/reporters/trello.py
jguiditta/atkinson
17479ac1a5b2975f8ec056409ff7b0436c143701
[ "MIT" ]
6
2018-10-18T17:03:05.000Z
2021-12-08T15:03:56.000Z
atkinson/errors/reporters/trello.py
jguiditta/atkinson
17479ac1a5b2975f8ec056409ff7b0436c143701
[ "MIT" ]
4
2018-07-11T16:11:57.000Z
2019-02-27T11:04:07.000Z
#! /usr/bin/env python """ Trello Card error reporter """ import re from trollo import TrelloApi from atkinson.config.manager import ConfigManager from atkinson.errors.reporters import BaseReport def get_trello_api(): """ Construct an interface to trello using the trollo api """ conf = ConfigManage...
39.753086
82
0.578261
6319a6fb2e0a8a1767f37d99b5d9dc59f4fcbaad
2,958
py
Python
sentry/web/frontend/generic.py
davedash/sentry
8c11b2db7f09844aa860bfe7f1c3ff23c0d30f94
[ "BSD-3-Clause" ]
null
null
null
sentry/web/frontend/generic.py
davedash/sentry
8c11b2db7f09844aa860bfe7f1c3ff23c0d30f94
[ "BSD-3-Clause" ]
null
null
null
sentry/web/frontend/generic.py
davedash/sentry
8c11b2db7f09844aa860bfe7f1c3ff23c0d30f94
[ "BSD-3-Clause" ]
null
null
null
""" sentry.web.frontend.generic ~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from django.http import HttpResponseRedirect, Http404, HttpResponseNotModified, \ HttpResponse from django.core.urlresolvers import ...
37.443038
120
0.68526
9728de65224d5ef1838bb9f47b6810f1fe7f7264
68,183
py
Python
src/bin/train_nstages-sparse-wavernn_dualgru_compact_lpcseg.py
ml-applications/cyclevae-vc-neuralvoco
a1976c127eaf9d2a3ef7a8a783839743ffb69c5c
[ "Apache-2.0" ]
1
2020-08-27T14:05:38.000Z
2020-08-27T14:05:38.000Z
src/bin/train_nstages-sparse-wavernn_dualgru_compact_lpcseg.py
ml-applications/cyclevae-vc-neuralvoco
a1976c127eaf9d2a3ef7a8a783839743ffb69c5c
[ "Apache-2.0" ]
null
null
null
src/bin/train_nstages-sparse-wavernn_dualgru_compact_lpcseg.py
ml-applications/cyclevae-vc-neuralvoco
a1976c127eaf9d2a3ef7a8a783839743ffb69c5c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2020 Patrick Lumban Tobing (Nagoya University) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) from __future__ import division from __future__ import print_function import argparse from dateutil.relativedelta import relativedelta from distutils.ut...
54.5464
228
0.572415
15023a4765a5f5697f5bb6a63ada8e3acba50482
236
py
Python
abing/backend/abing/crud/__init__.py
dohyungp/abitrary
4dc3f4c79a433a2debe1f1e151d00400a2225e9c
[ "MIT" ]
5
2020-12-04T14:15:26.000Z
2020-12-30T09:11:09.000Z
abing/backend/abing/crud/__init__.py
dohyungp/abitrary
4dc3f4c79a433a2debe1f1e151d00400a2225e9c
[ "MIT" ]
8
2020-12-20T16:33:30.000Z
2021-01-06T01:56:55.000Z
abing/backend/abing/crud/__init__.py
dohyungp/abitrary
4dc3f4c79a433a2debe1f1e151d00400a2225e9c
[ "MIT" ]
1
2021-01-06T15:25:19.000Z
2021-01-06T15:25:19.000Z
from .crud_user import user from .crud_experiment import experiment from .crud_arm import arm from .crud_feature import feature from .crud_allocation import allocation from .crud_event import event from .crud_event_log import event_log
29.5
39
0.851695
6fa2cb92217d32b16a38dd87411f67b02acdf195
2,840
py
Python
MODULES/Discovery_RemoteSystemDiscovery_GetDomainIPAddress.py
hellorubbish/viperpython
42d9ea572fb914059039656b176daca7d7fd5a77
[ "BSD-3-Clause" ]
1
2022-01-07T01:24:32.000Z
2022-01-07T01:24:32.000Z
MODULES/Discovery_RemoteSystemDiscovery_GetDomainIPAddress.py
hellorubbish/viperpython
42d9ea572fb914059039656b176daca7d7fd5a77
[ "BSD-3-Clause" ]
null
null
null
MODULES/Discovery_RemoteSystemDiscovery_GetDomainIPAddress.py
hellorubbish/viperpython
42d9ea572fb914059039656b176daca7d7fd5a77
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # @File : SimplePostPowershellModule.py # @Date : 2019/1/12 # @Desc : from Lib.ModuleAPI import * class PostModule(PostMSFPowershellFunctionModule): NAME = "获取域主机的IP信息" DESC = "默认收集所控主机的IP地址.\n如果需要收集域内其他主机,如域控或其他域用户ip,请输入主机名作为参数" MODULETYPE = TAG2CH.Discovery PLATFORM = ["W...
39.444444
119
0.601056
07e85f03a301e701b835b0e0ef561fac76ce3cca
126
py
Python
024-raw-sql/student/admin.py
karuvally/Django-ORM-Mastery-DJ003
5792d717185b231449d41bd4ef82d6b4367d4722
[ "MIT" ]
33
2021-06-08T21:49:24.000Z
2022-03-06T22:31:59.000Z
024-raw-sql/student/admin.py
WilliamOtieno/Django-ORM-Mastery-DJ003
0eca2d2408bfc1112b7092fbdce1c5f188a428d3
[ "MIT" ]
null
null
null
024-raw-sql/student/admin.py
WilliamOtieno/Django-ORM-Mastery-DJ003
0eca2d2408bfc1112b7092fbdce1c5f188a428d3
[ "MIT" ]
33
2021-06-09T12:43:17.000Z
2022-03-29T08:16:12.000Z
from django.contrib import admin from . import models admin.site.register(models.Student) admin.site.register(models.Teacher)
25.2
35
0.825397
fbfc60a4538ffde2e57e490294f23492856c7edf
2,252
py
Python
LDAP/scripts/modify_add_users_to_group.py
IdahoLabCuttingBoard/LinuxSA
a4475623e34f40a47c11d87a4c642fe59810707e
[ "MIT" ]
null
null
null
LDAP/scripts/modify_add_users_to_group.py
IdahoLabCuttingBoard/LinuxSA
a4475623e34f40a47c11d87a4c642fe59810707e
[ "MIT" ]
null
null
null
LDAP/scripts/modify_add_users_to_group.py
IdahoLabCuttingBoard/LinuxSA
a4475623e34f40a47c11d87a4c642fe59810707e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 Battelle Energy Alliance, LLC import subprocess import getpass import argparse import sys import re import textwrap from argparse import RawTextHelpFormatter import os sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../lib')) sys.path....
32.171429
139
0.585702
afb75e9fe19f963cffee9c7a11e01cf4345281da
1,148
py
Python
tests/test_download.py
rickh94/airtable_local_backup
69dfc1aef30cd92a3f8e0ddc0cae8a9ba5122243
[ "MIT" ]
29
2017-10-23T07:57:52.000Z
2021-11-10T01:39:24.000Z
tests/test_download.py
rickh94/airtable_local_backup
69dfc1aef30cd92a3f8e0ddc0cae8a9ba5122243
[ "MIT" ]
2
2018-10-18T15:36:53.000Z
2019-11-22T07:28:19.000Z
tests/test_download.py
rickh94/airtable_local_backup
69dfc1aef30cd92a3f8e0ddc0cae8a9ba5122243
[ "MIT" ]
8
2018-05-23T12:01:38.000Z
2022-03-02T17:41:16.000Z
from airtable import Airtable import requests import pytest from airtable_local_backup import download def rettrue(*args): return True def test_download_table(lots_of_fields_raw, lots_of_fields_hashes, monkeypatch, filedata, lots_of_fields_correct): def get_attach_patched(url): ...
34.787879
75
0.676829
313f6ccb08593f0843b98f80747e2eb56383770b
1,704
py
Python
main.py
ilyamordasov/HAP-python
698eb612c35b5672c4aab9d7896093924cbd358c
[ "Apache-2.0" ]
1
2018-09-23T20:44:46.000Z
2018-09-23T20:44:46.000Z
main.py
ilyamordasov/HAP-python
698eb612c35b5672c4aab9d7896093924cbd358c
[ "Apache-2.0" ]
1
2019-10-02T11:12:13.000Z
2019-10-02T11:12:13.000Z
main.py
ilyamordasov/HAP-python
698eb612c35b5672c4aab9d7896093924cbd358c
[ "Apache-2.0" ]
null
null
null
"""An example of how to setup and start an Accessory. This is: 1. Create the Accessory object you want. 2. Add it to an AccessoryDriver, which will advertise it on the local network, setup a server to answer client queries, etc. """ import logging import signal from pyhap.accessory import Bridge from pyhap.access...
31.555556
81
0.772887
161313e2ac15da6a06d44695b818bca255260fbe
17,118
py
Python
peering/tables.py
2bithacker/peering-manager
5953c4b1f2cff2a370b68d418a98c5c9e3037de8
[ "Apache-2.0" ]
null
null
null
peering/tables.py
2bithacker/peering-manager
5953c4b1f2cff2a370b68d418a98c5c9e3037de8
[ "Apache-2.0" ]
1
2021-11-11T22:08:22.000Z
2021-11-11T22:08:22.000Z
peering/tables.py
2bithacker/peering-manager
5953c4b1f2cff2a370b68d418a98c5c9e3037de8
[ "Apache-2.0" ]
null
null
null
import django_tables2 as tables from django.utils.safestring import mark_safe from net.models import Connection from utils.tables import ( BaseTable, BooleanColumn, ButtonsColumn, SelectColumn, TagColumn, ) from .models import ( AutonomousSystem, BGPGroup, Community, Configuration,...
34.581818
257
0.603867
2e314cf11cf1c015ee618ee314645d4b295b389b
1,539
py
Python
tests/helpers_test.py
RobertoPrevato/Flask-three-template
00b7dd6dd299a1fd91f08f60007fe09235216096
[ "MIT" ]
7
2015-11-19T20:45:16.000Z
2020-04-22T22:18:34.000Z
tests/helpers_test.py
RobertoPrevato/Flask-three-template
00b7dd6dd299a1fd91f08f60007fe09235216096
[ "MIT" ]
null
null
null
tests/helpers_test.py
RobertoPrevato/Flask-three-template
00b7dd6dd299a1fd91f08f60007fe09235216096
[ "MIT" ]
2
2016-10-08T20:09:06.000Z
2020-04-22T22:18:36.000Z
import server import unittest class HelpersTestCase(unittest.TestCase): """ Custom template helpers tests. """ def setUp(self): """ The code in the setUp() method is called before each individual test function is run. """ self.app = server.app.test_client() de...
29.596154
154
0.560754
c55dc6d2684dfbc66c856858b348c669e5be3174
3,747
py
Python
sdk/python/pulumi_azure_native/security/get_workspace_setting.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/security/get_workspace_setting.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/security/get_workspace_setting.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __a...
32.301724
146
0.642647
6a727db51b330233fc53a4457786c2a8e8c28735
244
py
Python
batch_script.py
aarjavchauhan/web_visualization
7a4b8a5d22d140762ae29ec808bb02dbc79763f4
[ "MIT" ]
1
2020-10-29T03:28:08.000Z
2020-10-29T03:28:08.000Z
batch_script.py
aarjavchauhan/web_visualization
7a4b8a5d22d140762ae29ec808bb02dbc79763f4
[ "MIT" ]
null
null
null
batch_script.py
aarjavchauhan/web_visualization
7a4b8a5d22d140762ae29ec808bb02dbc79763f4
[ "MIT" ]
null
null
null
import os import sys folder = sys.argv[1] script = sys.argv[2] for root, dirs, files in os.walk(folder): for filename in files: data_file = "{}/{}".format(root,filename) os.system("python3 {} {}".format(script,data_file))
22.181818
59
0.639344
8128eb8f110a867e354a854e4556d9f3eb0fa4df
6,040
py
Python
pybind/nos/v7_1_0/rbridge_id/system_monitor/sfp/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/rbridge_id/system_monitor/sfp/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/rbridge_id/system_monitor/sfp/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
48.709677
546
0.711589
0c6d2afccf2b28d4837037a0c214d860be6087a4
2,365
py
Python
sorting-numbers/custom_training_loop.py
AndreMaz/dnn-attention
86e834b90bd419646fd00c6ff4df910ab7874910
[ "MIT" ]
1
2020-03-11T22:52:19.000Z
2020-03-11T22:52:19.000Z
sorting-numbers/custom_training_loop.py
AndreMaz/dnn-attention
86e834b90bd419646fd00c6ff4df910ab7874910
[ "MIT" ]
3
2021-05-21T16:15:18.000Z
2022-02-10T01:11:23.000Z
sorting-numbers/custom_training_loop.py
AndreMaz/dnn-attention
86e834b90bd419646fd00c6ff4df910ab7874910
[ "MIT" ]
null
null
null
# from dataset.dataset_generator import ArtificialDataset from dataset.generator import generateDataset from models.pointer_network.model import EagerModel from models.inference import runSeq2SeqInference from utils.read_configs import get_configs from utils.tester import tester import tensorflow as tf import numpy as...
30.714286
79
0.621987
fbfeb5384b522069a6909b2575e7e76984231ade
993
py
Python
TopQuarkAnalysis/TopEventProducers/test/ttDecaySubset_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
TopQuarkAnalysis/TopEventProducers/test/ttDecaySubset_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
TopQuarkAnalysis/TopEventProducers/test/ttDecaySubset_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") ## add message logger process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger.ParticleListDrawer=dict() ## define input from TopQuarkAnalysis.TopEventProducers.tqafInputFiles_cff import relValTTbar process.source = cms.Source...
29.205882
82
0.794562
5a45edca79d0635facf0e9de957a35fdc251c9f2
2,391
py
Python
sps/api/v1/router.py
tantexian/sps-2014-12-4
0cdab186cb3bf148656c4c214a18215643b4969c
[ "Apache-2.0" ]
1
2018-07-27T15:16:14.000Z
2018-07-27T15:16:14.000Z
sps/api/v1/router.py
tantexian/sps-2014-12-4
0cdab186cb3bf148656c4c214a18215643b4969c
[ "Apache-2.0" ]
null
null
null
sps/api/v1/router.py
tantexian/sps-2014-12-4
0cdab186cb3bf148656c4c214a18215643b4969c
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation # 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 requ...
37.952381
93
0.543287
22b29763094b61bd03b1f025ef4d6ef7fcbbef3f
10,595
py
Python
curie/reaction.py
jtmorrell/curie
cf63d7771432a58ab79ee6dfb83b9c211ee33a1f
[ "MIT" ]
1
2021-01-15T15:33:24.000Z
2021-01-15T15:33:24.000Z
curie/reaction.py
jtmorrell/curie
cf63d7771432a58ab79ee6dfb83b9c211ee33a1f
[ "MIT" ]
1
2021-07-07T23:25:09.000Z
2021-07-07T23:25:09.000Z
curie/reaction.py
jtmorrell/curie
cf63d7771432a58ab79ee6dfb83b9c211ee33a1f
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import pandas as pd from scipy.interpolate import interp1d from .data import _get_connection from .plotting import _init_plot, _draw_plot, colormap from .isotope import Isotope from .library...
28.103448
166
0.657952
8e298bddff6827bb150122ae810a98f8ad3bf96b
530
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/coucou-28726
9e5ec0bd3aee99dacf2ec09c309bf424572daf2e
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/coucou-28726
9e5ec0bd3aee99dacf2ec09c309bf424572daf2e
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/coucou-28726
9e5ec0bd3aee99dacf2ec09c309bf424572daf2e
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "coucou-28726.botics.co" site_params = { "name": "coucou", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_create(def...
20.384615
61
0.65283
d0f5d09558b808324d9e99307490339e40324bb3
2,894
py
Python
tests/single_layer_tests.py
godspeed20/healthCheckMasseuse
72cc97776a6b28f606e1192694141f249619bf8d
[ "MIT" ]
null
null
null
tests/single_layer_tests.py
godspeed20/healthCheckMasseuse
72cc97776a6b28f606e1192694141f249619bf8d
[ "MIT" ]
null
null
null
tests/single_layer_tests.py
godspeed20/healthCheckMasseuse
72cc97776a6b28f606e1192694141f249619bf8d
[ "MIT" ]
null
null
null
import unittest from http.server import BaseHTTPRequestHandler, HTTPServer from flask import jsonify import server import socket from threading import Thread class MockEmptyServerRequestHandler(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200, "") self.end_headers...
34.452381
99
0.662751
00702fdc7cf80b65a8e5fa1b0116e4e6cf1bf6a9
2,068
py
Python
zeus/datasets/common/nasbench201.py
shaido987/vega
14d5d49fb8bdf96bd1f3fcfac201ce6b6712c3b6
[ "MIT" ]
240
2020-08-15T15:11:49.000Z
2022-03-28T07:26:23.000Z
zeus/datasets/common/nasbench201.py
WholeG/vega
d1ccf1c3ce68a118bdb6775594ceed0f895911e7
[ "MIT" ]
20
2020-08-29T06:18:21.000Z
2022-03-21T04:35:57.000Z
zeus/datasets/common/nasbench201.py
WholeG/vega
d1ccf1c3ce68a118bdb6775594ceed0f895911e7
[ "MIT" ]
69
2020-08-15T15:41:53.000Z
2022-03-16T08:27:47.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the...
40.54902
117
0.700193
f1d3aa475377c42830af025e447a45fbb644b2cd
14,362
py
Python
terminal_player.py
o-santi/desemprego
b61cfde64d4c58efd4181d4e356062454418163d
[ "MIT" ]
1
2021-01-23T12:40:14.000Z
2021-01-23T12:40:14.000Z
terminal_player.py
o-santi/desemprego
b61cfde64d4c58efd4181d4e356062454418163d
[ "MIT" ]
null
null
null
terminal_player.py
o-santi/desemprego
b61cfde64d4c58efd4181d4e356062454418163d
[ "MIT" ]
null
null
null
""" Really bad video player made to play on the terminal. Can also print images. """ from PIL import Image, UnidentifiedImageError import numpy as np from tqdm import tqdm import time from pynput import keyboard import asyncio import aiofiles import argparse import mmap import threading import c...
40.229692
142
0.561412
7753be620e491966a793ac56834450cf639191e2
2,121
py
Python
starter/migrations/0003_auto_20161017_0406.py
dwetterau/starter
e23bfe1c86a2c20687a763f359198f5903e655d4
[ "MIT" ]
1
2021-03-30T11:36:50.000Z
2021-03-30T11:36:50.000Z
starter/migrations/0003_auto_20161017_0406.py
dwetterau/starter
e23bfe1c86a2c20687a763f359198f5903e655d4
[ "MIT" ]
4
2020-09-04T10:38:37.000Z
2021-05-07T12:22:02.000Z
starter/migrations/0003_auto_20161017_0406.py
dwetterau/starter
e23bfe1c86a2c20687a763f359198f5903e655d4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-17 04:06 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('starter', '0002_tag_task')...
35.949153
185
0.612918
0f0dd9cac7600a14780a806d78fbfa73bb300b23
2,482
py
Python
analytics/management/commands/analyze_user_activity.py
yakkl/yakkl
89ecf4ee8998554a0634667067e16f428e4c480c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
analytics/management/commands/analyze_user_activity.py
yakkl/yakkl
89ecf4ee8998554a0634667067e16f428e4c480c
[ "ECL-2.0", "Apache-2.0" ]
4
2020-06-06T00:51:42.000Z
2022-02-10T21:38:40.000Z
analytics/management/commands/analyze_user_activity.py
yakkl/yakkl
89ecf4ee8998554a0634667067e16f428e4c480c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import datetime from typing import Any, Dict from django.core.management.base import BaseCommand, CommandParser from django.utils.timezone import utc from zerver.lib.statistics import seconds_usage_between from zerver.models import UserProfile def analyze_activity(options: Dict[str, Any]) -> None: day_start = da...
43.54386
100
0.707897
5c426a8e9a4e42d8f5f2bc9ac6cf1da87542e736
1,764
py
Python
personal/migrations/0001_initial.py
Mosesvalei/Personal-gallery-application
fb910cb720914e017ba3506ebb6d9e39126c629e
[ "MIT" ]
null
null
null
personal/migrations/0001_initial.py
Mosesvalei/Personal-gallery-application
fb910cb720914e017ba3506ebb6d9e39126c629e
[ "MIT" ]
null
null
null
personal/migrations/0001_initial.py
Mosesvalei/Personal-gallery-application
fb910cb720914e017ba3506ebb6d9e39126c629e
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-09-14 09:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
37.531915
128
0.565193
37561cba2e6d01c2f626110dc1ce7fc05a0ec556
279
py
Python
app/worker/tasks/get_current_count.py
toh995/fastapi-faust-example
f0dd84fb7d5fe1edfe8f2ce4c3178315a3b9ea8b
[ "MIT" ]
36
2020-11-29T05:28:35.000Z
2022-02-18T12:39:11.000Z
app/worker/tasks/get_current_count.py
toh995/fastapi-faust-example
f0dd84fb7d5fe1edfe8f2ce4c3178315a3b9ea8b
[ "MIT" ]
2
2021-01-28T02:56:27.000Z
2022-01-19T15:55:33.000Z
app/worker/tasks/get_current_count.py
toh995/fastapi-faust-example
f0dd84fb7d5fe1edfe8f2ce4c3178315a3b9ea8b
[ "MIT" ]
8
2020-12-01T11:35:06.000Z
2022-03-05T16:58:36.000Z
from app.worker import get_faust_app from app.worker.tables.count_table import count_table faust_app = get_faust_app() topic = faust_app.topic("get_current_count") @faust_app.agent(topic) async def agent(stream): async for _ in stream: yield count_table["count"]
21.461538
53
0.763441
6d36b404bc9618e06ae720713cc42d8af605bd5a
10,165
py
Python
tests/build/scipy/scipy/weave/size_check.py
crougeux/-a-i_v1.6.3_modif
b499a812e79f335d082d3f9b1070e0465ad67bab
[ "BSD-3-Clause" ]
26
2018-02-14T23:52:58.000Z
2021-08-16T13:50:03.000Z
tests/build/scipy/scipy/weave/size_check.py
crougeux/-a-i_v1.6.3_modif
b499a812e79f335d082d3f9b1070e0465ad67bab
[ "BSD-3-Clause" ]
null
null
null
tests/build/scipy/scipy/weave/size_check.py
crougeux/-a-i_v1.6.3_modif
b499a812e79f335d082d3f9b1070e0465ad67bab
[ "BSD-3-Clause" ]
10
2018-08-13T19:38:39.000Z
2020-04-19T03:02:00.000Z
from __future__ import absolute_import, print_function from numpy import ones, ndarray, array, asarray, concatenate, zeros, shape, \ alltrue, equal, divide, arccos, arcsin, arctan, cos, cosh, \ sin, sinh, exp, ceil, floor, fabs, log, log10, sqrt, argmin, \ argmax, argsort, around, absolute, ...
29.635569
88
0.532907
500de0d61513c89f0eec538e534a0e21b2b6aab8
3,821
py
Python
models/num2eng.py
martinjwkim/numbers_api
eb06df2424aee0c77d86fadb378d6fa2493948aa
[ "MIT" ]
null
null
null
models/num2eng.py
martinjwkim/numbers_api
eb06df2424aee0c77d86fadb378d6fa2493948aa
[ "MIT" ]
null
null
null
models/num2eng.py
martinjwkim/numbers_api
eb06df2424aee0c77d86fadb378d6fa2493948aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''Convert number to English words $./num2eng.py 1411893848129211 one quadrillion, four hundred and eleven trillion, eight hundred and ninety three billion, eight hundred and forty eight million, one hundred and twenty nine thousand, two hundred and eleven $ Algorithm from http://mini.net/tcl/591...
24.49359
76
0.544098
7d5d2c96fb21c8c283ba5fb98bf19b17a8fa2308
396
py
Python
dlflow/utils/check.py
12860/dlflow
6fb974fd800649af82b20c5f4e40aea123559d10
[ "Apache-2.0" ]
156
2020-04-22T10:59:26.000Z
2022-02-28T09:09:01.000Z
dlflow/utils/check.py
12860/dlflow
6fb974fd800649af82b20c5f4e40aea123559d10
[ "Apache-2.0" ]
5
2020-07-10T05:39:48.000Z
2022-03-15T14:38:23.000Z
dlflow/utils/check.py
12860/dlflow
6fb974fd800649af82b20c5f4e40aea123559d10
[ "Apache-2.0" ]
31
2020-04-22T12:51:32.000Z
2022-03-15T07:02:05.000Z
from dlflow.utils.locale import i18n def env_version_check(): import tensorflow import sys v_major = sys.version_info[0] v_minor = sys.version_info[1] assert (v_major == 3 and v_minor >= 6) or v_major > 3, \ i18n("This program requires at least Python 3.6") assert tensorflow.__versio...
26.4
60
0.674242
d247fa8d7ab635f284fcd8cfc1ad4e62e036c080
2,075
py
Python
scripts/onnx/marian_to_onnx_example.py
delong-coder/marian-dev
2ef018e829e08a688eb02d3a56f29d23b284b901
[ "MIT" ]
829
2017-06-05T12:14:34.000Z
2022-03-29T17:24:03.000Z
scripts/onnx/marian_to_onnx_example.py
delong-coder/marian-dev
2ef018e829e08a688eb02d3a56f29d23b284b901
[ "MIT" ]
732
2017-07-21T15:32:27.000Z
2022-03-22T10:26:09.000Z
scripts/onnx/marian_to_onnx_example.py
delong-coder/marian-dev
2ef018e829e08a688eb02d3a56f29d23b284b901
[ "MIT" ]
192
2017-06-27T10:17:26.000Z
2022-03-28T05:33:11.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ Example program demonstrating how to convert a Marian model using the marian_to_onnx library to a self-contained ONNX model that implements greedy search. """ import os, sys import marian_to_onnx as mo # The following variables would normal...
43.229167
118
0.718072
c4bb9f52891757a3ba9a7cd0febb5d253b492118
4,388
py
Python
sahara/plugins/mapr/versions/v4_0_1_mrv1/version_handler.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
null
null
null
sahara/plugins/mapr/versions/v4_0_1_mrv1/version_handler.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
null
null
null
sahara/plugins/mapr/versions/v4_0_1_mrv1/version_handler.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014, MapR Technologies # # 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...
38.156522
79
0.708067
4e74a3c9b1f670998305f28a74c16da2ed70dd8d
2,378
py
Python
sympy/utilities/tests/test_matchpy_connector.py
caley/sympy
7dfa5ceadf8b1500119583b33c70b618b59ca7ac
[ "BSD-3-Clause" ]
null
null
null
sympy/utilities/tests/test_matchpy_connector.py
caley/sympy
7dfa5ceadf8b1500119583b33c70b618b59ca7ac
[ "BSD-3-Clause" ]
null
null
null
sympy/utilities/tests/test_matchpy_connector.py
caley/sympy
7dfa5ceadf8b1500119583b33c70b618b59ca7ac
[ "BSD-3-Clause" ]
null
null
null
from sympy import symbols, cos, sin from sympy.external import import_module from sympy.utilities.matchpy_connector import WildDot, WildPlus, WildStar matchpy = import_module("matchpy") x, y, z = symbols("x y z") def _get_first_match(expr, pattern): from matchpy import ManyToOneMatcher, Pattern matcher = M...
27.651163
79
0.6455
7991d86db1a558f195424797c3c192bb8b58b635
808
py
Python
iopipe/send_report.py
skeptycal/iopipe-python
f6afba36663751779cba55ce53c0e1f2042df0d7
[ "Apache-2.0" ]
74
2016-08-18T14:26:50.000Z
2021-11-21T10:58:32.000Z
iopipe/send_report.py
vemel/iopipe-python
46c277f9447ddb00e544437ceaa7ba263a759c1d
[ "Apache-2.0" ]
198
2016-08-18T18:52:43.000Z
2021-05-09T10:01:14.000Z
iopipe/send_report.py
vemel/iopipe-python
46c277f9447ddb00e544437ceaa7ba263a759c1d
[ "Apache-2.0" ]
23
2016-08-04T23:22:21.000Z
2020-01-20T13:54:27.000Z
import logging try: import requests except ImportError: from botocore.vendored import requests logger = logging.getLogger(__name__) session = requests.Session() def send_report(report, config): """ Sends the report to IOpipe's collector. :param report: The report to be sent. :param config: ...
26.064516
80
0.657178
6b9cdefdca5da3b8f1f146fa0faa7d5e89ab271f
14,769
py
Python
lib/datasets/pascal_voc.py
user-never-lose/fpn.pytorch
21b15e1414db9bb8fb8c5574cfc0ce0d40e01286
[ "MIT" ]
null
null
null
lib/datasets/pascal_voc.py
user-never-lose/fpn.pytorch
21b15e1414db9bb8fb8c5574cfc0ce0d40e01286
[ "MIT" ]
null
null
null
lib/datasets/pascal_voc.py
user-never-lose/fpn.pytorch
21b15e1414db9bb8fb8c5574cfc0ce0d40e01286
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import xml.dom.minidom as minidom import os # import PIL import numpy ...
39.701613
88
0.54716
8e73b2f34cc2e341b374b89c5369f817de6f3340
27,156
py
Python
rest_meets_djongo/serializers.py
jino-cod/rest_meets_djongo
bec3ee0843222d6c62b189673d07e426c789af01
[ "MIT" ]
22
2019-10-01T15:31:42.000Z
2021-05-04T08:01:08.000Z
rest_meets_djongo/serializers.py
jino-cod/rest_meets_djongo
bec3ee0843222d6c62b189673d07e426c789af01
[ "MIT" ]
10
2019-12-07T17:21:50.000Z
2021-06-10T17:49:53.000Z
rest_meets_djongo/serializers.py
jino-cod/rest_meets_djongo
bec3ee0843222d6c62b189673d07e426c789af01
[ "MIT" ]
5
2020-05-12T16:11:06.000Z
2022-01-02T02:08:23.000Z
import copy from collections import namedtuple import traceback from django.db import models as dja_fields from djongo.models import fields as djm_fields from rest_framework import fields as drf_fields from rest_framework import serializers as drf_ser from rest_framework.settings import api_settings from rest_framewor...
41.083207
96
0.617838
8a83c0d98d1158831f856ff51b50e69059146382
3,055
py
Python
venv/lib/python3.8/site-packages/sympy/strategies/core.py
gaabgonca/pseudocode_parser
b8c75856ca6fe2d213a681c966ba2f7a1f9f8524
[ "Apache-2.0" ]
2
2021-01-09T23:11:25.000Z
2021-01-11T15:04:22.000Z
venv/lib/python3.8/site-packages/sympy/strategies/core.py
gaabgonca/pseudocode_parser
b8c75856ca6fe2d213a681c966ba2f7a1f9f8524
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/sympy/strategies/core.py
gaabgonca/pseudocode_parser
b8c75856ca6fe2d213a681c966ba2f7a1f9f8524
[ "Apache-2.0" ]
2
2021-01-08T23:03:23.000Z
2021-01-13T18:57:02.000Z
""" Generic SymPy-Independent Strategies """ from __future__ import print_function, division from sympy.core.compatibility import get_function_name identity = lambda x: x def exhaust(rule): """ Apply a rule repeatedly until it has no effect """ def exhaustive_rl(expr): new, old = rule(expr), expr ...
26.336207
75
0.583633
a5e65150dbb6e46719fedb095fad5d23e8965ca9
1,502
py
Python
LinkGeneratorMain.py
lukaszs02/SublimeLinkGenerator
9df0a266b7c408a4a2c5f28d2ec7440c88689b4b
[ "MIT" ]
null
null
null
LinkGeneratorMain.py
lukaszs02/SublimeLinkGenerator
9df0a266b7c408a4a2c5f28d2ec7440c88689b4b
[ "MIT" ]
null
null
null
LinkGeneratorMain.py
lukaszs02/SublimeLinkGenerator
9df0a266b7c408a4a2c5f28d2ec7440c88689b4b
[ "MIT" ]
null
null
null
from os.path import dirname, realpath import os import re import sublime import sublime_plugin class GeneratelinkCommand(sublime_plugin.TextCommand): def run(self, edit): link = self.generateLink() print(link) sublime.set_clipboard(link) def generateLink(self): settings = sub...
39.526316
179
0.637816
70ae38c98d1c979f36babf6d223e3c40e197b4cc
2,305
py
Python
book_crawler/tests/str2num.py
zheng-zy/book_crawler
a092607a097986e9cd242809066e0948e64d8bcb
[ "Apache-2.0" ]
null
null
null
book_crawler/tests/str2num.py
zheng-zy/book_crawler
a092607a097986e9cd242809066e0948e64d8bcb
[ "Apache-2.0" ]
null
null
null
book_crawler/tests/str2num.py
zheng-zy/book_crawler
a092607a097986e9cd242809066e0948e64d8bcb
[ "Apache-2.0" ]
null
null
null
#!usr/bin/env python # coding=utf-8 # Created by zhezhiyong@163.com on 2016/11/17. CN_NUM = { u'〇': 0, u'一': 1, u'二': 2, u'三': 3, u'四': 4, u'五': 5, u'六': 6, u'七': 7, u'八': 8, u'九': 9, u'零': 0, u'壹': 1, u'贰': 2, u'叁': 3, u'肆': 4, u'伍': 5, u'陆': 6, ...
17.730769
47
0.385249
327a80aacb749d8a042c3b4ef313cdacd356b5d2
832
py
Python
senti_analysis_per_product.py
DiptarkBose/AmazoNLP
301e9bd4c14a6e696bdd2b7b2924f20999f0f2b9
[ "MIT" ]
1
2018-08-13T02:53:27.000Z
2018-08-13T02:53:27.000Z
senti_analysis_per_product.py
DiptarkBose/AmazoNLP
301e9bd4c14a6e696bdd2b7b2924f20999f0f2b9
[ "MIT" ]
null
null
null
senti_analysis_per_product.py
DiptarkBose/AmazoNLP
301e9bd4c14a6e696bdd2b7b2924f20999f0f2b9
[ "MIT" ]
null
null
null
from textblob import TextBlob from nltk import sent_tokenize #repeat this code snippet for 5 times for top 5 products obtained review_list=[] n=0 review_count=0 total=[] for i in review_list: review=sent_tokenize(i) pos=[] count=0 for line in review: line=TextBlob(line) count=count+1 pos.append(line.sentim...
22.486486
78
0.753606
3e462b408fa74b7edbe801fd4a9cc4fcfb47c0a1
6,151
py
Python
notebooks/Detection/1_Build_Dataset/Shapes/utils.py
hadim/maskflow
6a70725ba26c6e65189936fd5c242c5ab15d6952
[ "BSD-3-Clause" ]
3
2018-11-03T20:01:12.000Z
2019-05-20T12:57:51.000Z
notebooks/Detection/1_Build_Dataset/Shapes/utils.py
hadim/maskflow
6a70725ba26c6e65189936fd5c242c5ab15d6952
[ "BSD-3-Clause" ]
null
null
null
notebooks/Detection/1_Build_Dataset/Shapes/utils.py
hadim/maskflow
6a70725ba26c6e65189936fd5c242c5ab15d6952
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import cv2 def compute_iou(box, boxes, box_area, boxes_area): """Calculates IoU of the given box with the array of the given boxes. box: 1D vector [y1, x1, y2, x2] boxes: [boxes_count, (y1, x1, y2, x2)] box_area: float. the area of 'box' boxes_area: array of length boxes_count. ...
36.613095
86
0.595513
d272c48a21249f7da033aeb95602d5e682274ca7
1,271
py
Python
tests/test_PT020_deprecated_yield_fixture.py
kianmeng/flake8-pytest-style
ea50dfeaa83cd0b102f1d149ffa9567eeabe4a8e
[ "MIT" ]
125
2019-05-23T12:44:51.000Z
2022-03-31T17:29:32.000Z
tests/test_PT020_deprecated_yield_fixture.py
kianmeng/flake8-pytest-style
ea50dfeaa83cd0b102f1d149ffa9567eeabe4a8e
[ "MIT" ]
169
2020-01-18T13:13:46.000Z
2022-03-30T02:21:52.000Z
tests/test_PT020_deprecated_yield_fixture.py
kianmeng/flake8-pytest-style
ea50dfeaa83cd0b102f1d149ffa9567eeabe4a8e
[ "MIT" ]
12
2020-02-03T18:34:51.000Z
2022-03-09T15:33:39.000Z
from flake8_plugin_utils import assert_error, assert_not_error from flake8_pytest_style.config import DEFAULT_CONFIG from flake8_pytest_style.errors import DeprecatedYieldFixture from flake8_pytest_style.visitors import FixturesVisitor def test_ok_no_parameters(): code = """ import pytest @pytes...
24.442308
86
0.683714
7fe4e8c5c63d5091fedbe3ae32f73d8c88374680
542
py
Python
circulos.py
GabrielSilva2y3d/Pygame-BOOTCAMP-IGTI
4fb3c57a7f14c4dba7a60fd894bd97a7f7a86c44
[ "MIT" ]
1
2021-09-21T22:54:38.000Z
2021-09-21T22:54:38.000Z
circulos.py
GabrielSilva2y3d/Snake-game-python-igti
4fb3c57a7f14c4dba7a60fd894bd97a7f7a86c44
[ "MIT" ]
null
null
null
circulos.py
GabrielSilva2y3d/Snake-game-python-igti
4fb3c57a7f14c4dba7a60fd894bd97a7f7a86c44
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * from sys import exit from random import * pygame.init() screen = pygame.display.set_mode((640,480),0,32) for _ in range(25): random_color = (randint(0,255),randint(0,255),randint(0,255)) random_pos = (randint(0,639),randint(0,479)) random_radius = randint(1,200) ...
25.809524
68
0.673432
ef783119c0d413cfa7d1c801964c9a2aee3e5705
10,474
py
Python
toontown/toon/DistributedNPCToonAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/toon/DistributedNPCToonAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/toon/DistributedNPCToonAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from otp.ai.AIBaseGlobal import * from direct.task.Task import Task from pandac.PandaModules import * from toontown.toon.DistributedNPCToonBaseAI import * from toontown.quest import Quests class DistributedNPCToonAI(DistributedNPCToonBaseAI): FourthGagVelvetRopeBan = config.GetBool('want-ban-fourth-gag-velvet-rope...
38.3663
119
0.619916
881f4c9531a9269963aa4d53aeda30d3f27e1909
1,897
py
Python
npass_console.py
appath/NPass
ca19db2657bec506e602269d2e5f11dff8dbd5af
[ "MIT" ]
null
null
null
npass_console.py
appath/NPass
ca19db2657bec506e602269d2e5f11dff8dbd5af
[ "MIT" ]
null
null
null
npass_console.py
appath/NPass
ca19db2657bec506e602269d2e5f11dff8dbd5af
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import uuid import random import argparse parser = argparse.ArgumentParser(prog="NPass Console", formatter_class=argparse.RawDescriptionHelpFormatter, description="""\ To prevent your passwords from being hacked by social engineering, brute force or dictionary attack method, and ...
44.116279
126
0.712704
c64e64c31ced9837ccfffa0d1a66aa50fbd68f56
4,298
py
Python
optim/MNIST_example.py
201419/PersonalCodeRepository
e79ac1489fa424f1334e74aab74ea25d1246b40e
[ "Apache-2.0" ]
null
null
null
optim/MNIST_example.py
201419/PersonalCodeRepository
e79ac1489fa424f1334e74aab74ea25d1246b40e
[ "Apache-2.0" ]
null
null
null
optim/MNIST_example.py
201419/PersonalCodeRepository
e79ac1489fa424f1334e74aab74ea25d1246b40e
[ "Apache-2.0" ]
null
null
null
import torch import torchvision.datasets as dsets import numpy as np import random import copy import time from svrg import SVRG from data import load_mnist # Get MNIST using autograd data loader # Couldn't download MNIST on my system with pytorch built in dataloader N, train_images, train_labels, test_images, test_...
29.040541
94
0.681712
3a3bca643839e95716721f438fb83ceded6c3cf8
3,140
py
Python
extractor/AICityReID/extract_features.py
muzhial/deep_sort
7d2d56e8c72c7cb447c0622192a798924c340174
[ "MIT" ]
null
null
null
extractor/AICityReID/extract_features.py
muzhial/deep_sort
7d2d56e8c72c7cb447c0622192a798924c340174
[ "MIT" ]
null
null
null
extractor/AICityReID/extract_features.py
muzhial/deep_sort
7d2d56e8c72c7cb447c0622192a798924c340174
[ "MIT" ]
null
null
null
import os from shutil import copyfile import time import math import yaml import argparse from tqdm import tqdm import numpy as np import scipy.io from sklearn.cluster import DBSCAN from PIL import Image import torch import torch.nn as nn import torchvision from torchvision import datasets, models, transforms import t...
32.371134
86
0.600637
361b80df56417d3fc763cc15d17ff2d284853c52
4,146
py
Python
examples/mxnet/tagcn/train.py
vipermu/dgl
c9ac6c9889423019977e431c8b74a7b6c70cdc01
[ "Apache-2.0" ]
6
2020-04-27T16:31:53.000Z
2022-03-24T16:27:51.000Z
examples/mxnet/tagcn/train.py
vipermu/dgl
c9ac6c9889423019977e431c8b74a7b6c70cdc01
[ "Apache-2.0" ]
null
null
null
examples/mxnet/tagcn/train.py
vipermu/dgl
c9ac6c9889423019977e431c8b74a7b6c70cdc01
[ "Apache-2.0" ]
4
2020-03-17T11:21:56.000Z
2020-07-02T09:42:24.000Z
import argparse, time import numpy as np import networkx as nx import mxnet as mx from mxnet import gluon from dgl import DGLGraph from dgl.data import register_data_args, load_data from tagcn import TAGCN def evaluate(model, features, labels, mask): pred = model(features).argmax(axis=1) accuracy = ((pred ==...
32.390625
90
0.604438
acb6c8c217ab422b4a9d85ce070f1f7e7bba55ff
90,710
py
Python
test/functional/p2p-segwit.py
magnumopusnetwork/Alchimia
324e2aefd1b25061fd36e2472581004a31dd84d5
[ "MIT" ]
null
null
null
test/functional/p2p-segwit.py
magnumopusnetwork/Alchimia
324e2aefd1b25061fd36e2472581004a31dd84d5
[ "MIT" ]
null
null
null
test/functional/p2p-segwit.py
magnumopusnetwork/Alchimia
324e2aefd1b25061fd36e2472581004a31dd84d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test segwit transactions and blocks on P2P network.""" from test_framework.mininode import * from test_fram...
46.304237
150
0.658626
0282ad7623f559db43460425abbffb5401f91337
59
py
Python
ocr_cipher_solver/data_formats/colors.py
ocr-cipher-solver/ocr-cipher-solver
0932a631149164efb2abc28274b65ded6df79caf
[ "MIT" ]
null
null
null
ocr_cipher_solver/data_formats/colors.py
ocr-cipher-solver/ocr-cipher-solver
0932a631149164efb2abc28274b65ded6df79caf
[ "MIT" ]
1
2021-10-09T16:20:24.000Z
2021-10-09T16:20:24.000Z
ocr_cipher_solver/data_formats/colors.py
ocr-cipher-solver/ocr-cipher-solver
0932a631149164efb2abc28274b65ded6df79caf
[ "MIT" ]
null
null
null
from typing import Tuple RGBA = Tuple[int, int, int, int]
14.75
32
0.711864
2db0e5e9ed129382a1cba7c7e53a50291124ac5c
26,530
py
Python
hpeOneView/connection.py
LaudateCorpus1/oneview-python
8373b144f0774f6b2193fe5bafdd099d1d21796a
[ "Apache-2.0" ]
18
2019-12-13T16:55:14.000Z
2022-03-24T15:37:32.000Z
hpeOneView/connection.py
LaudateCorpus1/oneview-python
8373b144f0774f6b2193fe5bafdd099d1d21796a
[ "Apache-2.0" ]
55
2019-12-20T09:56:18.000Z
2022-01-28T06:42:04.000Z
hpeOneView/connection.py
LaudateCorpus1/oneview-python
8373b144f0774f6b2193fe5bafdd099d1d21796a
[ "Apache-2.0" ]
33
2019-11-12T08:53:22.000Z
2022-03-07T11:20:14.000Z
# -*- coding: utf-8 -* ### # (C) Copyright [2020] Hewlett Packard Enterprise Development LP # # 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 # ...
38.449275
119
0.547908
f62bdac439a6b0a8eef843ff2cbbfa436af1f101
81,991
py
Python
qcodes/dataset/sqlite_base.py
joe1gi/Qcodes
62f18d7ac1aaf50eb17b9c5e5e5fb1f803cabf05
[ "MIT" ]
null
null
null
qcodes/dataset/sqlite_base.py
joe1gi/Qcodes
62f18d7ac1aaf50eb17b9c5e5e5fb1f803cabf05
[ "MIT" ]
null
null
null
qcodes/dataset/sqlite_base.py
joe1gi/Qcodes
62f18d7ac1aaf50eb17b9c5e5e5fb1f803cabf05
[ "MIT" ]
null
null
null
import sys from contextlib import contextmanager import logging import sqlite3 import time import io import warnings from typing import (Any, List, Optional, Tuple, Union, Dict, cast, Callable, Sequence, DefaultDict) import itertools from functools import wraps from collections import defaultdict f...
31.977769
127
0.592553
2f47c4ba6b2f50994b9774948c47f978d9ef15c7
419
py
Python
Tagger_unit_test.py
akikowork/DeepDanbooru
e4b3e6eb60769d1257c826d842ce387812ad1ab5
[ "MIT" ]
4
2020-04-01T09:55:31.000Z
2022-01-07T08:40:52.000Z
Tagger_unit_test.py
Hecate2/DeepDanbooru
5b6bbb1f9d99d7adc5dd7e45c0d9004966d20b9b
[ "MIT" ]
null
null
null
Tagger_unit_test.py
Hecate2/DeepDanbooru
5b6bbb1f9d99d7adc5dd7e45c0d9004966d20b9b
[ "MIT" ]
1
2020-04-02T00:31:35.000Z
2020-04-02T00:31:35.000Z
def format_url(fileurl): tmpchr="" tmpchrs="" for chars in fileurl: if chars == '/': tmpchr = "" else: tmpchr+=chars for chars in tmpchr: if chars != '_': tmpchrs+=chars else: ...
23.277778
35
0.417661
6c848fe316b9b8e462259d1f614536c09b2fd837
711
py
Python
apps/sgx/prepare_test_libs.py
TaoLv/tvm
11318966571f654f4e8bc550bfd9a293303e3000
[ "Apache-2.0" ]
1
2020-01-01T06:59:43.000Z
2020-01-01T06:59:43.000Z
apps/sgx/prepare_test_libs.py
TaoLv/tvm
11318966571f654f4e8bc550bfd9a293303e3000
[ "Apache-2.0" ]
null
null
null
apps/sgx/prepare_test_libs.py
TaoLv/tvm
11318966571f654f4e8bc550bfd9a293303e3000
[ "Apache-2.0" ]
2
2019-04-07T07:28:19.000Z
2019-11-18T08:09:06.000Z
"""Script to prepare test_addone_sys.o""" from os import path as osp import tvm CWD = osp.dirname(osp.abspath(osp.expanduser(__file__))) def prepare_test_libs(base_path): n = tvm.var('n') A = tvm.placeholder((n,), name='A') B = tvm.compute(A.shape, lambda *i: A(*i) + 1, name='B') s = tvm.create_sche...
26.333333
60
0.651195
cf901633d1e0453c1dedd91c20e944483338c159
992
py
Python
python/phonenumbers/shortdata/region_AT.py
vishnuku/python-phonenumbers
6ac2cdd06b7ccf709a8efb21629cf2c5f030e627
[ "Apache-2.0" ]
3
2018-12-02T23:09:00.000Z
2018-12-02T23:16:59.000Z
python/phonenumbers/shortdata/region_AT.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/shortdata/region_AT.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
"""Auto-generated file, do not edit by hand. AT metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AT = PhoneMetadata(id='AT', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2,5}', possible_number_pattern='\\...
76.307692
184
0.742944
e51684c6fd8896b3ad857f588edaf938e72bcdc3
29,508
py
Python
aries-cloudagent-python/aries_cloudagent/protocols/endorse_transaction/v1_0/tests/test_manager.py
sed-szeged/IndyPerf
68bb48c7c651cae113cf30696110825ff3267ccc
[ "CC0-1.0" ]
null
null
null
aries-cloudagent-python/aries_cloudagent/protocols/endorse_transaction/v1_0/tests/test_manager.py
sed-szeged/IndyPerf
68bb48c7c651cae113cf30696110825ff3267ccc
[ "CC0-1.0" ]
null
null
null
aries-cloudagent-python/aries_cloudagent/protocols/endorse_transaction/v1_0/tests/test_manager.py
sed-szeged/IndyPerf
68bb48c7c651cae113cf30696110825ff3267ccc
[ "CC0-1.0" ]
1
2022-02-02T17:05:27.000Z
2022-02-02T17:05:27.000Z
import json import uuid from aiohttp import web from asynctest import mock as async_mock from asynctest import TestCase as AsyncTestCase from .....cache.base import BaseCache from .....cache.in_memory import InMemoryCache from .....connections.models.conn_record import ConnRecord from .....core.in_memory import InMem...
41.677966
88
0.649654
7a28e004e32a21ec644fa49111aa7697d49f26ac
1,643
py
Python
bud_get/bud_get.py
doggan/bud-get
9b678493783705f416ea73ba174f083f0b733d03
[ "Unlicense" ]
null
null
null
bud_get/bud_get.py
doggan/bud-get
9b678493783705f416ea73ba174f083f0b733d03
[ "Unlicense" ]
null
null
null
bud_get/bud_get.py
doggan/bud-get
9b678493783705f416ea73ba174f083f0b733d03
[ "Unlicense" ]
null
null
null
""" Budget utilities. """ import csv def _reader_filter(entries, *keys): """ Perform filtering of dictionary keys, returning an interator. """ for entry in entries: yield dict((k, entry[k]) for k in keys) FILTER_COLUMNS = ('Type', 'Trans Date', 'Description', 'Amount') def filter_csv(in_file): ...
26.934426
69
0.561169
aa2cd3da2e69287cd5685b8bc4c3a1b05327fed2
908
py
Python
setup.py
goes-funky/tap-google-analytics
13e3fc81ad96dcf165eb18ef65b60c9b072c9360
[ "MIT" ]
null
null
null
setup.py
goes-funky/tap-google-analytics
13e3fc81ad96dcf165eb18ef65b60c9b072c9360
[ "MIT" ]
null
null
null
setup.py
goes-funky/tap-google-analytics
13e3fc81ad96dcf165eb18ef65b60c9b072c9360
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name="tap-google-analytics", version="0.1.1", description="Singer.io tap for extracting data from the Google Analytics Reporting API", author='Meltano Team & Contributors', author_email="meltano@gitlab.com", url="https://gitlab.com/melta...
29.290323
92
0.64978
9d4686fd7bfd962414e0686df3ff28f8967303a7
30,014
py
Python
b2share/modules/records/views.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
null
null
null
b2share/modules/records/views.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
null
null
null
b2share/modules/records/views.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
1
2020-09-29T10:56:03.000Z
2020-09-29T10:56:03.000Z
# -*- coding: utf-8 -*- # # This file is part of EUDAT B2Share. # Copyright (C) 2016 CERN. # # B2Share is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any...
41.455801
112
0.639735
23357343c9c6501b46aa6e8b005c3e39c6eed43f
15,796
py
Python
python/plugins/processing/algs/qgis/ServiceAreaFromPoint.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
python/plugins/processing/algs/qgis/ServiceAreaFromPoint.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
python/plugins/processing/algs/qgis/ServiceAreaFromPoint.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
# -*- coding: utf-8 -*- """ *************************************************************************** ServiceAreaFromPoint.py --------------------- Date : December 2016 Copyright : (C) 2016 by Alexander Bruy Email : alexander dot bruy at gmail dot com ***...
47.722054
150
0.528488
af3f75b6a610a014a8b5a89ddce61a0c346c78c6
5,331
py
Python
research/delf/delf/python/feature_extractor_test.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
research/delf/delf/python/feature_extractor_test.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
research/delf/delf/python/feature_extractor_test.py
Dzinushi/models_1_4
d7e72793a68c1667d403b1542c205d1cd9b1d17c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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 applicab...
40.082707
94
0.587882
09d359d0bf8170d1130254afed75670ea07789a7
2,646
py
Python
utils/makebad.py
emit-sds/emit-sds-l1b
be5307fe6821a043971becdd33609b4cf89b1974
[ "Apache-2.0" ]
null
null
null
utils/makebad.py
emit-sds/emit-sds-l1b
be5307fe6821a043971becdd33609b4cf89b1974
[ "Apache-2.0" ]
null
null
null
utils/makebad.py
emit-sds/emit-sds-l1b
be5307fe6821a043971becdd33609b4cf89b1974
[ "Apache-2.0" ]
null
null
null
# David R Thompson import argparse, sys, os import numpy as np import pylab as plt from glob import glob from spectral.io import envi from scipy.stats import norm from scipy.linalg import solve, inv from astropy import modeling from scipy.interpolate import interp1d from sklearn.linear_model import RANSACRegressor from...
30.068182
97
0.642857