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
ad6dcb6eeccd9b97bbca6d4c697086b1de225dd7
63,448
py
Python
tinytag/tinytag.py
enzanki-ars/tinytag
9e9edf6abce4c42bdc1675159f67a1d65187dd6c
[ "MIT" ]
451
2015-01-09T00:11:19.000Z
2022-03-31T11:47:14.000Z
tinytag/tinytag.py
enzanki-ars/tinytag
9e9edf6abce4c42bdc1675159f67a1d65187dd6c
[ "MIT" ]
125
2015-04-02T18:46:21.000Z
2022-03-15T11:17:29.000Z
tinytag/tinytag.py
enzanki-ars/tinytag
9e9edf6abce4c42bdc1675159f67a1d65187dd6c
[ "MIT" ]
102
2015-01-18T10:05:52.000Z
2022-03-07T18:23:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # tinytag - an audio meta info reader # Copyright (c) 2014-2021 Tom Wallroth # # Sources on github: # http://github.com/devsnd/tinytag/ # MIT License # Copyright (c) 2014-2021 Tom Wallroth # Permission is hereby granted, free of charge, to any person obtaining a copy # ...
47.993949
143
0.568907
2913bca47604ace1be6ffe54ae540b869d30568d
168
py
Python
mtorch/core/logger/__init__.py
NullConvergence/torch_temp
29a0d7190f0be6124f51bd85b8320cd8b3cef29a
[ "MIT" ]
3
2019-08-08T13:23:50.000Z
2019-08-15T15:29:36.000Z
mtorch/core/logger/__init__.py
NullConvergence/torch-template
29a0d7190f0be6124f51bd85b8320cd8b3cef29a
[ "MIT" ]
10
2019-09-20T21:25:22.000Z
2019-10-16T10:52:04.000Z
mtorch/core/logger/__init__.py
NullConvergence/mtorch
29a0d7190f0be6124f51bd85b8320cd8b3cef29a
[ "MIT" ]
2
2019-08-08T13:23:52.000Z
2019-08-08T19:46:55.000Z
from .logger import * from .tensorboard_writer import * from .tb_logger import * from .sacred_logger import * from .wandb_logger import * from .neptune_logger import *
24
33
0.785714
77e71887c848545f2d0feb72c264e6a1123e9191
156
py
Python
bin/hexes/pentahexes-hexagram-6.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/hexes/pentahexes-hexagram-6.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/hexes/pentahexes-hexagram-6.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """ solutions""" import puzzler from puzzler.puzzles.pentahexes import PentahexesHexagram6 puzzler.run(PentahexesHexagram6)
15.6
58
0.775641
34d8203c312e02542eccefef80f858cd939a3415
111
py
Python
configs/hpa_v4/mask_rcnn_r50_fpn_1x_coco.py
mducducd/mmdetection
d0dc5ca88077874c24f809b74548c2e01fc01aaf
[ "Apache-2.0" ]
null
null
null
configs/hpa_v4/mask_rcnn_r50_fpn_1x_coco.py
mducducd/mmdetection
d0dc5ca88077874c24f809b74548c2e01fc01aaf
[ "Apache-2.0" ]
null
null
null
configs/hpa_v4/mask_rcnn_r50_fpn_1x_coco.py
mducducd/mmdetection
d0dc5ca88077874c24f809b74548c2e01fc01aaf
[ "Apache-2.0" ]
null
null
null
_base_ = [ 'mask_rcnn_r50_fpn.py', 'hpa_instance.py', 'schedule_1x.py', 'default_runtime.py' ]
15.857143
27
0.621622
aedaa0ff95d85d163cfb4a06a1634932e012091a
41
py
Python
src/WebApp/App_Data/jobs/continuous/Simulator/devices/engines/__init__.py
Azure/AI
0f46e58a678c7026f01d863ad1de7c7aa2ec7d9a
[ "CC-BY-4.0", "MIT" ]
110
2018-01-31T23:50:50.000Z
2022-03-30T15:54:37.000Z
src/WebApp/App_Data/jobs/continuous/Simulator/devices/engines/__init__.py
Azure/AI
0f46e58a678c7026f01d863ad1de7c7aa2ec7d9a
[ "CC-BY-4.0", "MIT" ]
20
2018-02-20T23:03:47.000Z
2021-12-20T16:11:25.000Z
src/WebApp/App_Data/jobs/continuous/Simulator/devices/engines/__init__.py
Azure/AI
0f46e58a678c7026f01d863ad1de7c7aa2ec7d9a
[ "CC-BY-4.0", "MIT" ]
70
2018-03-04T03:36:10.000Z
2022-01-31T11:18:49.000Z
from devices.engines.engine import Engine
41
41
0.878049
f325413c4e3c43e4f026b93e717b2a4af84391de
627
py
Python
auctions/tests/bidtest.py
ntdai95/AuctionWebsite
ed1e4c779c9ba27fd26956756b5bd80a47fb44c5
[ "MIT" ]
1
2022-01-24T07:46:47.000Z
2022-01-24T07:46:47.000Z
auctions/tests/bidtest.py
ntdai95/AuctionWebsite
ed1e4c779c9ba27fd26956756b5bd80a47fb44c5
[ "MIT" ]
null
null
null
auctions/tests/bidtest.py
ntdai95/AuctionWebsite
ed1e4c779c9ba27fd26956756b5bd80a47fb44c5
[ "MIT" ]
null
null
null
import requests import sys host="auctions" def diff_user(user=88,bid_price=100,auction=4): data={"auction_id":auction,"user_id":user,"bid_price":bid_price} res = requests.post(f"http://{host}:5002/create-new-bid",json=data) print(res.json()) if len(sys.argv)>1: if sys.argv[1]=="diff": diff_...
28.5
77
0.649123
2285ffc980ac4b36df0c4c3d958bf0982aa156ac
2,632
py
Python
tools/grit/grit/tool/menu_from_parts.py
JoKaWare/WTL-DUI
89fd6f4ed7e6a4ce85f9af29c40de0d9a85ca8b2
[ "BSD-3-Clause" ]
19
2015-03-30T09:49:58.000Z
2020-01-17T20:05:12.000Z
tools/grit/grit/tool/menu_from_parts.py
jjzhang166/WTL-DUI
89fd6f4ed7e6a4ce85f9af29c40de0d9a85ca8b2
[ "BSD-3-Clause" ]
1
2015-12-31T06:08:27.000Z
2015-12-31T06:08:27.000Z
tools/grit/grit/tool/menu_from_parts.py
jjzhang166/WTL-DUI
89fd6f4ed7e6a4ce85f9af29c40de0d9a85ca8b2
[ "BSD-3-Clause" ]
11
2015-06-01T06:18:03.000Z
2020-05-10T07:18:53.000Z
#!/usr/bin/env python # 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. '''The 'grit menufromparts' tool.''' import os import getopt import types from grit.tool import interface from grit.tool import t...
30.964706
91
0.657675
3d3133abf805089d5a887ad6e8c3758f290e616b
2,612
py
Python
photos/migrations/0001_initial.py
abbyshabi/DeeGram
c927b25491ab785a076ae9b456470f271e2857eb
[ "MIT" ]
null
null
null
photos/migrations/0001_initial.py
abbyshabi/DeeGram
c927b25491ab785a076ae9b456470f271e2857eb
[ "MIT" ]
4
2020-06-05T20:04:50.000Z
2021-09-08T00:52:52.000Z
photos/migrations/0001_initial.py
abbyshabi/DeeGram
c927b25491ab785a076ae9b456470f271e2857eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-03-11 11:40 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import tinymce.models class Migration(migrations.Migration): initial = True dependencies ...
45.034483
145
0.619066
97b25413d41ad04fdee4388ee60f515293924704
691
py
Python
empg_erp/empg_integrations/scripts/__init__.py
shahzadzameen/empghr_erp
ba24a833b7fea8f17b155435064ead761f2a134c
[ "MIT" ]
null
null
null
empg_erp/empg_integrations/scripts/__init__.py
shahzadzameen/empghr_erp
ba24a833b7fea8f17b155435064ead761f2a134c
[ "MIT" ]
null
null
null
empg_erp/empg_integrations/scripts/__init__.py
shahzadzameen/empghr_erp
ba24a833b7fea8f17b155435064ead761f2a134c
[ "MIT" ]
null
null
null
import frappe def remove_departments_spaces(): departments = frappe.get_all('Department', {}, ['name', 'parent_department']) for d in departments: if d.name.endswith(' '): frappe.rename_doc('Department', d.name, d.name.strip(), 0, 0) if d.parent_department.endswith(' '): ...
46.066667
125
0.629522
de5eb6016dcf1f1f88bc87b008f45422b211148c
12,620
py
Python
form_api/models/submission.py
DocSpring/formapi-python
69fe8b14f78cae57e07a888f97c0903d5f0f545c
[ "MIT" ]
2
2017-10-07T17:38:10.000Z
2017-10-10T06:14:13.000Z
form_api/models/submission.py
FormAPI/formapi-python
69fe8b14f78cae57e07a888f97c0903d5f0f545c
[ "MIT" ]
null
null
null
form_api/models/submission.py
FormAPI/formapi-python
69fe8b14f78cae57e07a888f97c0903d5f0f545c
[ "MIT" ]
null
null
null
# coding: utf-8 """ API v1 FormAPI is a service that helps you fill out and sign PDF templates. # noqa: E501 OpenAPI spec version: v1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Submission(object): """NOTE: This class is auto gener...
27.375271
264
0.583835
0470dc58015983e588c57f433b04f3c418da9a8d
23,630
py
Python
openpathsampling/experimental/simstore/sql_backend.py
hjjonas/openpathsampling
4eff8c67e4a2e26cb073294c5bd75cac5898fe30
[ "MIT" ]
null
null
null
openpathsampling/experimental/simstore/sql_backend.py
hjjonas/openpathsampling
4eff8c67e4a2e26cb073294c5bd75cac5898fe30
[ "MIT" ]
null
null
null
openpathsampling/experimental/simstore/sql_backend.py
hjjonas/openpathsampling
4eff8c67e4a2e26cb073294c5bd75cac5898fe30
[ "MIT" ]
null
null
null
import os import collections from collections import abc import sqlalchemy as sql from .storage import universal_schema from .tools import group_by, compare_sets, grouper from . import tools # import ujson as json # ujson is no longer maintained import json from .backend import extract_backend_metadata from .my_types...
37.037618
78
0.597842
a14081cb230004645393299003ab4975b20e726b
273
py
Python
solutions/Number of Different Integers in a String/solution.py
nilax97/leetcode-solutions
d3c12f2b289662d199510e0431e177bbf3cda121
[ "MIT" ]
3
2021-06-06T22:03:15.000Z
2021-06-08T08:49:04.000Z
solutions/Number of Different Integers in a String/solution.py
nilax97/leetcode-solutions
d3c12f2b289662d199510e0431e177bbf3cda121
[ "MIT" ]
null
null
null
solutions/Number of Different Integers in a String/solution.py
nilax97/leetcode-solutions
d3c12f2b289662d199510e0431e177bbf3cda121
[ "MIT" ]
null
null
null
class Solution: def numDifferentIntegers(self, word: str) -> int: ans = set() val = [x if x.isdigit() else " " for x in word] val = "".join(val) val = val.split() for x in val: ans.add(int(x)) return len(ans)
27.3
55
0.498168
b5d669ec2da709f6353983ef41dd5c1ecbb9d598
397
py
Python
yatube/posts/migrations/0008_auto_20210912_2205.py
ShumilovAlexandr/hw04_tests
9c64af00f304f05a13e5abf14ef3b37866c3de98
[ "MIT" ]
null
null
null
yatube/posts/migrations/0008_auto_20210912_2205.py
ShumilovAlexandr/hw04_tests
9c64af00f304f05a13e5abf14ef3b37866c3de98
[ "MIT" ]
null
null
null
yatube/posts/migrations/0008_auto_20210912_2205.py
ShumilovAlexandr/hw04_tests
9c64af00f304f05a13e5abf14ef3b37866c3de98
[ "MIT" ]
null
null
null
# Generated by Django 2.2.19 on 2021-09-12 19:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0007_comment'), ] operations = [ migrations.AlterField( model_name='post', name='pub_date', fi...
20.894737
73
0.602015
4897050476809ec53d5c23dc78b6c5f68f872ac4
4,292
py
Python
main.py
minexixi/FILE2CHAR
1d193b06a21c495c0596c7003327c9475e9e741b
[ "MIT" ]
null
null
null
main.py
minexixi/FILE2CHAR
1d193b06a21c495c0596c7003327c9475e9e741b
[ "MIT" ]
null
null
null
main.py
minexixi/FILE2CHAR
1d193b06a21c495c0596c7003327c9475e9e741b
[ "MIT" ]
null
null
null
import binascii # coding = utf-8 def f(nx, x1, x): # n为待转换的十进制数,x为机制,取值为2-49 a = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '-', '/', '!', '$', ...
31.558824
91
0.410531
a34e9b8d9575551b8015a6c96c299c7545b16e92
931
py
Python
tools/coda/coda/panel.py
osuosl/osops
602d0fd4d6a29c5a7d186385a27391b39afffe86
[ "Apache-2.0" ]
2
2021-04-23T02:29:37.000Z
2021-12-06T06:01:31.000Z
tools/coda/coda/panel.py
osuosl/osops
602d0fd4d6a29c5a7d186385a27391b39afffe86
[ "Apache-2.0" ]
null
null
null
tools/coda/coda/panel.py
osuosl/osops
602d0fd4d6a29c5a7d186385a27391b39afffe86
[ "Apache-2.0" ]
1
2022-03-21T18:10:30.000Z
2022-03-21T18:10:30.000Z
# Copyright [2015] Hewlett-Packard Development Company, L.P. # # 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...
25.861111
74
0.745435
727b2935b871d1c154b3f89851d504f750f6202e
537
py
Python
test/test_arnoldi.py
JohnReid/nolina
23894517ac60d27d167447871ef85a4a78cad630
[ "MIT" ]
null
null
null
test/test_arnoldi.py
JohnReid/nolina
23894517ac60d27d167447871ef85a4a78cad630
[ "MIT" ]
null
null
null
test/test_arnoldi.py
JohnReid/nolina
23894517ac60d27d167447871ef85a4a78cad630
[ "MIT" ]
null
null
null
from codetiming import Timer import logging import pytest import numpy as np from nolina import random, arnoldi _logger = logging.getLogger(__name__) js = [9, 10, 11] @pytest.mark.parametrize("j", js) def test_arnoldi(j, rng, seed): d = 11 A = random.random_spsd_matrix(d=d, random_state=rng) b = random.r...
25.571429
75
0.698324
cdee79baef879d7f84b8b0d0cc9aab9519d94ff6
58
py
Python
quilted/__init__.py
stuarteberg/quilted
11c6e38cbce95133ab4e9cfe0dd2afb14ae088f7
[ "BSD-3-Clause" ]
null
null
null
quilted/__init__.py
stuarteberg/quilted
11c6e38cbce95133ab4e9cfe0dd2afb14ae088f7
[ "BSD-3-Clause" ]
null
null
null
quilted/__init__.py
stuarteberg/quilted
11c6e38cbce95133ab4e9cfe0dd2afb14ae088f7
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from . import tests
29
38
0.862069
b0891976484298d00ce4a0e3acc712c7c1887cd8
2,671
py
Python
hivs_clients/api/views.py
tehamalab/hivs
db7dfa7f89174be07d42bd469fd23c8553c0eff2
[ "MIT" ]
null
null
null
hivs_clients/api/views.py
tehamalab/hivs
db7dfa7f89174be07d42bd469fd23c8553c0eff2
[ "MIT" ]
null
null
null
hivs_clients/api/views.py
tehamalab/hivs
db7dfa7f89174be07d42bd469fd23c8553c0eff2
[ "MIT" ]
null
null
null
from django.apps import apps from django.db.models import Count from django.utils.translation import gettext_lazy as _ from rest_framework import status from rest_framework import viewsets from rest_framework.response import Response from rest_framework.decorators import action from .serializers import ProfileSerialize...
30.352273
89
0.59678
ce150395ef6c78a9192b75ce1406bbfe3ec6e04c
145
py
Python
profile/validation-profile.py
orest-d/libhxl-python
fd4523bdef7c0c0333bd0b287d7eed70e18e48e1
[ "Unlicense" ]
30
2015-06-02T22:06:22.000Z
2020-07-30T08:43:40.000Z
profile/validation-profile.py
orest-d/libhxl-python
fd4523bdef7c0c0333bd0b287d7eed70e18e48e1
[ "Unlicense" ]
262
2015-01-27T16:43:28.000Z
2022-03-28T15:33:53.000Z
profile/validation-profile.py
orest-d/libhxl-python
fd4523bdef7c0c0333bd0b287d7eed70e18e48e1
[ "Unlicense" ]
9
2015-01-20T06:06:28.000Z
2020-07-13T23:54:03.000Z
import hxl DATA_FILE='data/unhcr_popstats_export_persons_of_concern_all_data.hxl' hxl.validate(hxl.io.make_input(DATA_FILE, allow_local=True))
24.166667
70
0.855172
c5cc4c7c6b1d054e80f41313a379b02324567536
3,553
py
Python
flask/__init__.py
odysseyhack/gazorpazorp
1801c28ea7fa59e0eabb2968dfc539e118cf0b14
[ "Apache-2.0" ]
null
null
null
flask/__init__.py
odysseyhack/gazorpazorp
1801c28ea7fa59e0eabb2968dfc539e118cf0b14
[ "Apache-2.0" ]
null
null
null
flask/__init__.py
odysseyhack/gazorpazorp
1801c28ea7fa59e0eabb2968dfc539e118cf0b14
[ "Apache-2.0" ]
null
null
null
from flask import Flask, json, redirect, render_template, request, url_for app = Flask(__name__) @app.route("/") def index(): return render_template("index.html") @app.route("/projects") def projects(): # Read project database with app.open_resource('database.json', mode='r') as jsonfeed: project...
34.163462
80
0.604841
ba74767a28a853da5b6725b0566c67414d97d66f
7,055
py
Python
other program codes/MA-SZZ codes and steps description/GetMetrics/main_merge.py
sticeran/InconsistentLabels
55336830bf9d046c015e1463a5fa106c81b5d60d
[ "Apache-2.0" ]
1
2022-03-01T06:34:15.000Z
2022-03-01T06:34:15.000Z
other program codes/MA-SZZ codes and steps description/GetMetrics/main_merge.py
sticeran/InconsistentLabels
55336830bf9d046c015e1463a5fa106c81b5d60d
[ "Apache-2.0" ]
null
null
null
other program codes/MA-SZZ codes and steps description/GetMetrics/main_merge.py
sticeran/InconsistentLabels
55336830bf9d046c015e1463a5fa106c81b5d60d
[ "Apache-2.0" ]
2
2021-02-05T01:19:04.000Z
2022-03-13T07:01:30.000Z
''' 定义3个类别: (1)dormant(2)mislabeling_FP(3)collision (3)指在标签传播过程中,对于代码完全一致的类,标签发生多次改变的现象,如1 0 0 1 0 0(从右往左看)。 记录改变次数,对于改变次数>=2的全部当作噪音抛掉 bug标签:0代表无bug,1代表有bug ''' import pandas as pd import step1_3.getFileList as GFL import step1_3.fileNameSorting as FNS #'\'需替换成'/' def function_separatorSubstitution(x): return x.r...
48.321918
135
0.666478
5a4ae38d4e655271705f82f8ca1f5a3fa7551614
1,397
py
Python
test/functional/feature_shutdown.py
zejii/digibyte
9044278182da3701656acd537f3c1cf298c69a11
[ "MIT" ]
null
null
null
test/functional/feature_shutdown.py
zejii/digibyte
9044278182da3701656acd537f3c1cf298c69a11
[ "MIT" ]
null
null
null
test/functional/feature_shutdown.py
zejii/digibyte
9044278182da3701656acd537f3c1cf298c69a11
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018-2020 The DigiByte Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test digibyted shutdown.""" from test_framework.test_framework import DigiByteTestFramework from test...
38.805556
103
0.71582
231bb5e4cc6d437c3a44d49ccc72c4557e7b6a2a
166,305
py
Python
tensorflow/python/ops/math_ops.py
jraman/tensorflow
41c6bf7c6215bea9bfb9bf0a9b63f2084e6f3058
[ "Apache-2.0" ]
1
2020-02-15T14:00:01.000Z
2020-02-15T14:00:01.000Z
tensorflow/python/ops/math_ops.py
rakeshacharya-d/tensorflow
9028828d3b8a2a622f7203a317002cc749531695
[ "Apache-2.0" ]
1
2022-02-10T01:08:48.000Z
2022-02-10T01:08:48.000Z
tensorflow/python/ops/math_ops.py
rakeshacharya-d/tensorflow
9028828d3b8a2a622f7203a317002cc749531695
[ "Apache-2.0" ]
1
2020-02-14T10:12:19.000Z
2020-02-14T10:12:19.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.603725
121
0.66197
e05f017f04516984af89f9e7b3ca08c2a28fbb5b
790
py
Python
util/chplenv/chpl_tasks.py
nldias/chapel
3a63044cd50b639dca8e851d4a505546b57bc299
[ "ECL-2.0", "Apache-2.0" ]
3
2019-10-03T21:04:56.000Z
2019-10-04T01:22:53.000Z
util/chplenv/chpl_tasks.py
nldias/chapel
3a63044cd50b639dca8e851d4a505546b57bc299
[ "ECL-2.0", "Apache-2.0" ]
30
2017-01-20T21:37:45.000Z
2017-03-28T21:11:56.000Z
util/chplenv/chpl_tasks.py
nldias/chapel
3a63044cd50b639dca8e851d4a505546b57bc299
[ "ECL-2.0", "Apache-2.0" ]
2
2020-02-27T21:06:13.000Z
2020-04-21T11:19:31.000Z
#!/usr/bin/env python3 import sys import chpl_compiler, chpl_platform, overrides from chpl_home_utils import using_chapel_module from compiler_utils import CompVersion, get_compiler_version from utils import memoize @memoize def get(): tasks_val = overrides.get('CHPL_TASKS') if not tasks_val: platfor...
23.939394
60
0.667089
0fa26758859457e0bfb9a1c642e8ae4420afa2d1
1,520
py
Python
ichnaea/api/exceptions.py
JaredKerim-Mozilla/ichnaea
cfaef2b903960374050be3ea2e4c1520687de56b
[ "Apache-1.1" ]
null
null
null
ichnaea/api/exceptions.py
JaredKerim-Mozilla/ichnaea
cfaef2b903960374050be3ea2e4c1520687de56b
[ "Apache-1.1" ]
null
null
null
ichnaea/api/exceptions.py
JaredKerim-Mozilla/ichnaea
cfaef2b903960374050be3ea2e4c1520687de56b
[ "Apache-1.1" ]
null
null
null
from pyramid.httpexceptions import HTTPClientError from pyramid.response import Response from ichnaea.exceptions import BaseClientError class BaseAPIError(HTTPClientError, BaseClientError): code = 400 domain = '' reason = '' message = '' def __init__(self): # explicitly avoid calling th...
22.352941
77
0.596053
800cee6071c93e353621df2480470de921aa1667
6,455
py
Python
tests/experimental/101.corebot-bert-bidaf/model/model_corebot101/bert/common/bert_util.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
388
2019-05-07T15:53:21.000Z
2022-03-28T20:29:46.000Z
tests/experimental/101.corebot-bert-bidaf/model/model_corebot101/bert/common/bert_util.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
1,286
2019-05-07T23:38:19.000Z
2022-03-31T10:44:16.000Z
tests/experimental/101.corebot-bert-bidaf/model/model_corebot101/bert/common/bert_util.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
168
2019-05-14T20:23:25.000Z
2022-03-16T06:49:14.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import logging from typing import List from .input_features import InputFeatures from scipy.stats import pearsonr, spearmanr from sklearn.metrics import f1_score class BertUtil: logger = logging.getLogger(_...
41.11465
89
0.547018
c9b81b2cd2072c598ebb52faf779f9fffb98a862
711
py
Python
test/test.py
kyzhouhzau/tfmetrics
e7111ede6937dc4b27d0c3d1ab3497806940cbd8
[ "MIT" ]
2
2019-05-16T02:42:20.000Z
2020-06-26T16:55:35.000Z
test/test.py
kyzhouhzau/tfmetrics
e7111ede6937dc4b27d0c3d1ab3497806940cbd8
[ "MIT" ]
null
null
null
test/test.py
kyzhouhzau/tfmetrics
e7111ede6937dc4b27d0c3d1ab3497806940cbd8
[ "MIT" ]
1
2020-06-26T16:55:28.000Z
2020-06-26T16:55:28.000Z
#! usr/bin/env python3 # -*- coding:utf-8 -*- """ @Author:zhoukaiyin """ from sklearn.metrics import recall_score import tensorflow as tf from tfmetrics.metrics import evalsequence y_true = tf.constant([[0, 0, 0, 1, 2, 2, 0], [3, 4, 0, 0, 0, 0, 0]]) y_pred = tf.constant([[0, 0, 1, 2, 2, 2, 0], [3, 4, 0, 0, 0, ...
37.421053
77
0.618847
3cbc6e8e66eab88a0ae565d37529fcb443525df7
164
py
Python
examples/index/render.py
rmorshea/viewdom
24c528642e9ef0179999936b2e6f3b8a9d770df8
[ "MIT" ]
null
null
null
examples/index/render.py
rmorshea/viewdom
24c528642e9ef0179999936b2e6f3b8a9d770df8
[ "MIT" ]
null
null
null
examples/index/render.py
rmorshea/viewdom
24c528642e9ef0179999936b2e6f3b8a9d770df8
[ "MIT" ]
null
null
null
from viewdom import html, render expected = '<div>Hello World</div>' # start-after result = render(html('''<div>Hello World</div>''')) # '<div>Hello World</div>'
20.5
51
0.664634
ff5bfbe611223240978b259e153a3dc37b889f00
10,312
py
Python
quickpi/testsuite/fulltest.py
France-ioi/quick-pi
4f36d05679095da3d6623eda7f22324a23f44407
[ "MIT" ]
null
null
null
quickpi/testsuite/fulltest.py
France-ioi/quick-pi
4f36d05679095da3d6623eda7f22324a23f44407
[ "MIT" ]
null
null
null
quickpi/testsuite/fulltest.py
France-ioi/quick-pi
4f36d05679095da3d6623eda7f22324a23f44407
[ "MIT" ]
1
2019-01-02T19:04:33.000Z
2019-01-02T19:04:33.000Z
from quickpi import * import time import RPi.GPIO as GPIO import threading import random import os def checkTest(value, name): if value: print("Test " + name + " passed") displayTextOled("Test " + name + " passed") else: print("Test " + name + " failed") displayTextOled("Test " + name + " failed") return [v...
21.940426
78
0.664566
3c475ee3c9a2204abc7c7dbb40f064bb2fd1ae43
1,202
py
Python
test/lazy/test_sum_batch_lazy_tensor.py
cdgreenidge/gpytorch
d4cc610963bd812052e43e3aed84fb8b2ec94aa6
[ "MIT" ]
null
null
null
test/lazy/test_sum_batch_lazy_tensor.py
cdgreenidge/gpytorch
d4cc610963bd812052e43e3aed84fb8b2ec94aa6
[ "MIT" ]
null
null
null
test/lazy/test_sum_batch_lazy_tensor.py
cdgreenidge/gpytorch
d4cc610963bd812052e43e3aed84fb8b2ec94aa6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import torch import unittest from gpytorch.lazy import SumBatchLazyTensor, NonLazyTensor from test.lazy._lazy_tensor_test_case import LazyTensorTestCase class TestSumBatchLazyTensor(LazyTensorTestCase, unittest.TestCase): seed = 6 should_test_sample = True def create_lazy_tensor(s...
29.317073
73
0.717138
d8289189d5d7b9c6095258c7af19edad1129f614
3,434
py
Python
setup.py
grenagit/pibooth
4ab0e2962da3951c043e281917b08250635bf838
[ "MIT" ]
null
null
null
setup.py
grenagit/pibooth
4ab0e2962da3951c043e281917b08250635bf838
[ "MIT" ]
null
null
null
setup.py
grenagit/pibooth
4ab0e2962da3951c043e281917b08250635bf838
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pibooth import sys from io import open import os.path as osp from setuptools import setup, find_packages HERE = osp.abspath(osp.dirname(__file__)) sys.path.insert(0, HERE) import pibooth # nopep8 : import shall be done after adding setup to paths def main(): ...
37.326087
104
0.537857
8fff810c4b1368416abb7cc1b0224ec79554c0d9
606
py
Python
ajax_forms/tests/tests.py
Edge-On-Demand/django-ajax-forms
0469a92fa05dff832b78b8cb6ed4226814ace673
[ "BSD-3-Clause" ]
null
null
null
ajax_forms/tests/tests.py
Edge-On-Demand/django-ajax-forms
0469a92fa05dff832b78b8cb6ed4226814ace673
[ "BSD-3-Clause" ]
null
null
null
ajax_forms/tests/tests.py
Edge-On-Demand/django-ajax-forms
0469a92fa05dff832b78b8cb6ed4226814ace673
[ "BSD-3-Clause" ]
null
null
null
from django.urls import reverse from django.test import TestCase from .forms import ContactForm class AjaxFormViewTest(TestCase): urls = 'ajax_forms.tests.urls' def test_basic_initial(self): response = self.client.get(reverse('contact')) self.assertEqual(response.status_code, 200) se...
28.857143
74
0.684818
7872eb9554911241fe300e1fde0a377755ffee6b
2,773
py
Python
mvqag/train/losses.py
VirkSaab/Medical-VQA
6d77963cc81940fc680a18d931e0d88a3264f5fa
[ "MIT" ]
null
null
null
mvqag/train/losses.py
VirkSaab/Medical-VQA
6d77963cc81940fc680a18d931e0d88a3264f5fa
[ "MIT" ]
null
null
null
mvqag/train/losses.py
VirkSaab/Medical-VQA
6d77963cc81940fc680a18d931e0d88a3264f5fa
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F import numpy as np from scipy.special import lambertw __all__ = [ 'SuperLoss', 'LabelSmoothingCrossEntropyWithSuperLoss', 'LabelSmoothingCrossEntropy' ] class SuperLoss(torch.nn.Module): def __init__(self, C=330, lam=0.25, rank=None): super(Supe...
35.551282
122
0.599351
6128d74bfd94a73863cd0ab6c85f15bb008c0407
3,920
py
Python
django_ru_fields/forms.py
suvitorg/django-ru-fields
4252fa13579da87569cfd34b21970eca65ff76b4
[ "MIT" ]
2
2020-05-06T09:10:53.000Z
2022-01-31T06:37:00.000Z
django_ru_fields/forms.py
suvitorg/django-ru-fields
4252fa13579da87569cfd34b21970eca65ff76b4
[ "MIT" ]
null
null
null
django_ru_fields/forms.py
suvitorg/django-ru-fields
4252fa13579da87569cfd34b21970eca65ff76b4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* import logging from django.forms import ValidationError from django.forms.fields import Field, RegexField from django.utils.encoding import smart_unicode, smart_str from django_ru_fields.utils import test_inn, test_inn_org logger = logging.getLogger(__name__) class RUPostalCodeField(RegexFie...
30.866142
85
0.641582
76c1350a7b8a09d0344e61db0df3a2287c9a1220
17,935
py
Python
phase_1/example/nevins/poller/nevins-poller.py
cromulencellc/chess-aces
7780e29de1991758078816ca501ff79a2586b8c2
[ "MIT" ]
null
null
null
phase_1/example/nevins/poller/nevins-poller.py
cromulencellc/chess-aces
7780e29de1991758078816ca501ff79a2586b8c2
[ "MIT" ]
null
null
null
phase_1/example/nevins/poller/nevins-poller.py
cromulencellc/chess-aces
7780e29de1991758078816ca501ff79a2586b8c2
[ "MIT" ]
null
null
null
import sys import socket import random import time import base64 import os import datetime import struct import string import traceback import logging import subprocess ### these files are expected to be inside of the test_files directory files = ['chess.jpg', 'faq.html', 'rr.html', 'test.doc', 'test.txt', 'test_del.t...
22.114673
196
0.53298
ceacf5c51db315b6a43893bce484724cf1d71abd
472
py
Python
onadata/apps/main/management/commands/migrate_audit_log.py
childhelpline/myhelpline
d72120ee31b6713cbaec79f299f5ee8bcb7ea429
[ "BSD-3-Clause" ]
1
2018-07-15T13:13:43.000Z
2018-07-15T13:13:43.000Z
onadata/apps/main/management/commands/migrate_audit_log.py
aondiaye/myhelpline
d72120ee31b6713cbaec79f299f5ee8bcb7ea429
[ "BSD-3-Clause" ]
14
2018-07-10T12:48:46.000Z
2022-03-11T23:24:51.000Z
onadata/apps/main/management/commands/migrate_audit_log.py
aondiaye/myhelpline
d72120ee31b6713cbaec79f299f5ee8bcb7ea429
[ "BSD-3-Clause" ]
5
2018-07-04T07:59:14.000Z
2020-01-28T07:50:18.000Z
from django.conf import settings from django.core.management.base import BaseCommand from django.utils.translation import ugettext_lazy from onadata.apps.main.models.audit import Audit class Command(BaseCommand): help = ugettext_lazy("migrate audit log from mongo to postgres") def handle(self, *args, **kwar...
29.5
68
0.711864
7016ecd1d7a0a5faf34620a7f089c735a9fb4651
15,032
py
Python
test_copy_l.py
CeibaSheep/Person_reID_baseline_pytorch
3745831b998f0d9e23f7a66285b21d3ae92eede9
[ "MIT" ]
null
null
null
test_copy_l.py
CeibaSheep/Person_reID_baseline_pytorch
3745831b998f0d9e23f7a66285b21d3ae92eede9
[ "MIT" ]
null
null
null
test_copy_l.py
CeibaSheep/Person_reID_baseline_pytorch
3745831b998f0d9e23f7a66285b21d3ae92eede9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, division import argparse import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler from torch.autograd import Variable import torch.backends.cudnn as cudnn import numpy as np import torchvision from torchvision im...
37.768844
181
0.597193
5f7e457947e90092d6668d1e145696364acb139a
13,031
py
Python
pyfl_utils/models/component.py
c-goldschmidt/pyfl-utils
7026736238e10c9401981164564fec87e68127f7
[ "WTFPL" ]
null
null
null
pyfl_utils/models/component.py
c-goldschmidt/pyfl-utils
7026736238e10c9401981164564fec87e68127f7
[ "WTFPL" ]
null
null
null
pyfl_utils/models/component.py
c-goldschmidt/pyfl-utils
7026736238e10c9401981164564fec87e68127f7
[ "WTFPL" ]
null
null
null
import numpy as np from .mesh import ( MeshReader, FixNode, RevNode, SphNode, PrisNode, MeshWriter, ) class Component(object): def __init__(self, cmp=None): self.fix_data = {} self.rev_data = {} self.pris_data = {} self.sph_data = {} ...
30.952494
85
0.553756
91077dc76e4ed39dc7b518f76451bf96b5ed6c22
55,727
py
Python
zarc/models_2017-08-11-11:58:18.py
nyimbi/caseke
ce4a0fa44cd383bc23900e42f81656f089c8fdd9
[ "MIT" ]
1
2019-06-03T16:20:35.000Z
2019-06-03T16:20:35.000Z
zarc/models_2017-08-11-11:58:18.py
nyimbi/caseke
ce4a0fa44cd383bc23900e42f81656f089c8fdd9
[ "MIT" ]
20
2020-01-28T22:02:29.000Z
2022-03-29T22:28:34.000Z
zarc/models_2017-08-11-11:58:18.py
nyimbi/caseke
ce4a0fa44cd383bc23900e42f81656f089c8fdd9
[ "MIT" ]
1
2019-06-10T17:20:48.000Z
2019-06-10T17:20:48.000Z
# coding: utf-8 # AUTOGENERATED BY gen_script.sh from kp2.py # Copyright (C) Nyimbi Odero, Fri Aug 4 06:42:45 EAT 2017 from sqlalchemy import func from flask_appbuilder import Model from flask_appbuilder.models.mixins import AuditMixin, FileColumn, ImageColumn, UserExtensionMixin from flask_appbuilder.models.decora...
42.60474
158
0.64929
06b4e0b816e8022fb098af85854794f741435f5b
1,075
py
Python
exifreader/exif_log.py
Cyb3r-Jak3/ExifReader
483df30b73ee6be81be5afb27e6cffc7fe12a27c
[ "BSD-3-Clause" ]
1
2020-07-12T20:45:29.000Z
2020-07-12T20:45:29.000Z
exifreader/exif_log.py
Cyb3r-Jak3/ExifReader
483df30b73ee6be81be5afb27e6cffc7fe12a27c
[ "BSD-3-Clause" ]
null
null
null
exifreader/exif_log.py
Cyb3r-Jak3/ExifReader
483df30b73ee6be81be5afb27e6cffc7fe12a27c
[ "BSD-3-Clause" ]
null
null
null
""" Custom log output """ import sys import logging TEXT_NORMAL = 0 TEXT_BOLD = 1 TEXT_RED = 31 TEXT_GREEN = 32 TEXT_YELLOW = 33 TEXT_BLUE = 34 TEXT_MAGENTA = 35 TEXT_CYAN = 36 def get_logger(): return logging.getLogger('exifreader') def setup_logger(debug): """Configure the logger.""" if debug: ...
20.283019
56
0.660465
a435fb8c07edabc069af73c41ebb4c7940094467
1,512
py
Python
yatube/yatube/urls.py
Falken565/Yatube-CV-
c9eb19099344a3ad5097a921595a6b0051db8e2a
[ "BSD-3-Clause" ]
null
null
null
yatube/yatube/urls.py
Falken565/Yatube-CV-
c9eb19099344a3ad5097a921595a6b0051db8e2a
[ "BSD-3-Clause" ]
null
null
null
yatube/yatube/urls.py
Falken565/Yatube-CV-
c9eb19099344a3ad5097a921595a6b0051db8e2a
[ "BSD-3-Clause" ]
null
null
null
"""yatube URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/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-based ...
37.8
77
0.695767
1444dd3010459bab5d059dad2ed5305a417b096a
7,340
py
Python
mnist_1.0_softmax_moreLayers_conv.py
cbienpourtoi/test-tensorflow
afc4f86dd5c6ef8e7557b044af75b4b316d369bb
[ "Apache-2.0" ]
null
null
null
mnist_1.0_softmax_moreLayers_conv.py
cbienpourtoi/test-tensorflow
afc4f86dd5c6ef8e7557b044af75b4b316d369bb
[ "Apache-2.0" ]
null
null
null
mnist_1.0_softmax_moreLayers_conv.py
cbienpourtoi/test-tensorflow
afc4f86dd5c6ef8e7557b044af75b4b316d369bb
[ "Apache-2.0" ]
null
null
null
# encoding: UTF-8 # Copyright 2016 Google.com # # 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...
37.835052
153
0.675613
c9d409b13f41b63fd41ca2cc752fc9afa9dcc678
301
py
Python
src/snaps/Base.py
z/snaps
32ea84d20880f576d98c6e75a1f3fde030a44566
[ "MIT" ]
null
null
null
src/snaps/Base.py
z/snaps
32ea84d20880f576d98c6e75a1f3fde030a44566
[ "MIT" ]
1
2016-04-26T21:40:32.000Z
2016-04-26T21:40:32.000Z
src/snaps/Base.py
z/snaps
32ea84d20880f576d98c6e75a1f3fde030a44566
[ "MIT" ]
null
null
null
import logging from .Config import Config class Base(object): def __init__(self): self.config = Config.get_instance().config self.log = logging.getLogger('.'.join([self.__module__, self.__class__.__name__])) self.log.setLevel(level=self.config['default']['log_level'])
25.083333
90
0.687708
cb8b030df5da5a42569d86f81c641d37d273cde9
1,615
py
Python
Chapter07/roles/phonebook/files/phonebook-docker/app.py
edinzade/ansible-automation
49afa7e586ee36c7df96584218620d80b90fa15f
[ "MIT" ]
19
2018-02-24T03:16:58.000Z
2021-10-01T22:12:05.000Z
Chapter07/roles/phonebook/files/phonebook-docker/app.py
edinzade/ansible-automation
49afa7e586ee36c7df96584218620d80b90fa15f
[ "MIT" ]
null
null
null
Chapter07/roles/phonebook/files/phonebook-docker/app.py
edinzade/ansible-automation
49afa7e586ee36c7df96584218620d80b90fa15f
[ "MIT" ]
28
2018-03-05T15:17:49.000Z
2021-12-28T07:38:25.000Z
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask import Flask, request, flash, url_for, redirect, render_template from flask_migrate import Migrate import os app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db' app.secret_key = os.urandom(32) db = SQLAlchemy(...
28.839286
94
0.621053
a7dad3f9662ed6c335b35f23798eb6d289ff808f
23,086
py
Python
tests/test_builder.py
ricardozanini/cekit
dd522634604932a105166ed9674d3a4f58a2384b
[ "MIT" ]
null
null
null
tests/test_builder.py
ricardozanini/cekit
dd522634604932a105166ed9674d3a4f58a2384b
[ "MIT" ]
null
null
null
tests/test_builder.py
ricardozanini/cekit
dd522634604932a105166ed9674d3a4f58a2384b
[ "MIT" ]
null
null
null
import glob import logging import os import subprocess import time import pytest import yaml from cekit.descriptor import Image from cekit.errors import CekitError from cekit.generator.docker import DockerGenerator from cekit.tools import Map try: from unittest.mock import call except ImportError: from mock ...
35.516923
260
0.629776
b7595789c3d985557ada59b7ef70a622ffb4c8f9
7,857
py
Python
tests/unit/fs/test_dvc.py
amritghimire/dvc-1
27666ffba7002c82ad3a3f8a4399c79056722e41
[ "Apache-2.0" ]
null
null
null
tests/unit/fs/test_dvc.py
amritghimire/dvc-1
27666ffba7002c82ad3a3f8a4399c79056722e41
[ "Apache-2.0" ]
99
2021-03-29T08:59:15.000Z
2022-03-31T04:10:23.000Z
tests/unit/fs/test_dvc.py
amritghimire/dvc-1
27666ffba7002c82ad3a3f8a4399c79056722e41
[ "Apache-2.0" ]
null
null
null
import os import shutil import pytest from dvc.config import NoRemoteError from dvc.fs.dvc import DvcFileSystem from dvc.hash_info import HashInfo from dvc.objects.stage import stage from dvc.path_info import PathInfo from dvc.utils.fs import remove def test_exists(tmp_dir, dvc): tmp_dir.gen("foo", "foo") d...
27.960854
79
0.586483
c005d050f31ec2ef0a9605c865927ee294b57712
1,294
py
Python
apps/tasks/templatetags/taskfilter.py
raiots/TasksManager
92971237f5e82de5aa0662cb8060dae60add018a
[ "MIT" ]
7
2021-08-14T03:55:04.000Z
2022-03-12T03:33:50.000Z
apps/tasks/templatetags/taskfilter.py
raiots/TasksManager
92971237f5e82de5aa0662cb8060dae60add018a
[ "MIT" ]
null
null
null
apps/tasks/templatetags/taskfilter.py
raiots/TasksManager
92971237f5e82de5aa0662cb8060dae60add018a
[ "MIT" ]
null
null
null
from django import template from datetime import datetime from dateutil.relativedelta import relativedelta register = template.Library() @register.filter(name='quarter_cate') def quarter_cate(value, quarter): month = value.deadline.strftime('%m') month = int(month) quarter = int(quarter) if quarter...
27.531915
54
0.651468
4fd293cc25c968a3dbb68411e5151accb391fdcd
589
py
Python
todo/urls.py
Garg007/Django_todoApp
b289b4025ebacfd371d8e4af9517e43ddc260a64
[ "Apache-2.0" ]
null
null
null
todo/urls.py
Garg007/Django_todoApp
b289b4025ebacfd371d8e4af9517e43ddc260a64
[ "Apache-2.0" ]
null
null
null
todo/urls.py
Garg007/Django_todoApp
b289b4025ebacfd371d8e4af9517e43ddc260a64
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^get/$', views.index, name='index'), url(r'^details/(?P<id>\w)/$', views.details, name='details'), url(r'^add/$', views.add, name='add'), url(r'^delete/$', views.delete, name='delete')...
34.647059
65
0.599321
54d85be4b1986dc0a033c3c2571eb8c6bf30780c
16,335
py
Python
lab-13/main.py
adipopbv/lftc-laboratory
b03e96ac7ac1fd1ad9375e74410483a4e2794642
[ "BSD-3-Clause" ]
null
null
null
lab-13/main.py
adipopbv/lftc-laboratory
b03e96ac7ac1fd1ad9375e74410483a4e2794642
[ "BSD-3-Clause" ]
null
null
null
lab-13/main.py
adipopbv/lftc-laboratory
b03e96ac7ac1fd1ad9375e74410483a4e2794642
[ "BSD-3-Clause" ]
null
null
null
import copy import re class RegexString(str): def re_eq(self, other): if re.match(str(self), other): return True return False def swap_elements(list_of_elements: list, i: int, j: int) -> list: new_list = copy.deepcopy(list_of_elements) new_list[i], new_list[j] = new_list[j], ...
44.02965
88
0.528069
ef10b68d0da78ae5a845f98a119d030a86a6f2f1
2,070
py
Python
kubernetes/test/test_v1_certificate_signing_request_spec.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_certificate_signing_request_spec.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_certificate_signing_request_spec.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
30
126
0.59372
77d0ab5e6e010cdcb65976918ab353a203165979
854
py
Python
nutch/__init__.py
sujen1412/nutch-python
07ae182e283b2f74ef062ddfa20a690a59ab6f5a
[ "Apache-2.0" ]
40
2015-08-21T02:16:44.000Z
2021-05-18T04:49:25.000Z
nutch/__init__.py
sujen1412/nutch-python
07ae182e283b2f74ef062ddfa20a690a59ab6f5a
[ "Apache-2.0" ]
19
2015-09-17T16:41:57.000Z
2018-07-19T07:30:51.000Z
nutch/__init__.py
sujen1412/nutch-python
07ae182e283b2f74ef062ddfa20a690a59ab6f5a
[ "Apache-2.0" ]
22
2015-09-04T18:27:04.000Z
2021-05-18T05:07:52.000Z
# encoding: utf-8 # 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")...
47.444444
74
0.775176
dcefeef6ae9a93cbe87fe80028ae15b0f2e0a5ae
24,222
py
Python
quetz/pkgstores.py
maresb/quetz
55313ca9c2ae04577d23a1dddb38c045b4a056f4
[ "BSD-3-Clause" ]
108
2020-09-16T16:15:01.000Z
2022-03-29T02:49:31.000Z
quetz/pkgstores.py
maresb/quetz
55313ca9c2ae04577d23a1dddb38c045b4a056f4
[ "BSD-3-Clause" ]
317
2020-09-07T18:37:33.000Z
2022-03-25T13:10:41.000Z
quetz/pkgstores.py
janjagusch/quetz
4d88b4695166d310823a48e81e025983846afd05
[ "BSD-3-Clause" ]
36
2020-09-07T22:01:27.000Z
2022-03-26T17:06:07.000Z
# Copyright 2020 Codethink Ltd # Distributed under the terms of the Modified BSD License. import abc import base64 import calendar import contextlib import datetime import hashlib import logging import os import os.path as path import shutil import tempfile from contextlib import contextmanager from os import PathLike...
34.163611
88
0.60185
6fa6364a592f8999de68f39fd247d3f210ee5ff6
2,103
py
Python
bball_intel/bball_intel/settings/base.py
ltiao/basketball-intelligence
c39a2794ca013a1bacd35ec2cbe778977c69834e
[ "MIT" ]
2
2015-11-03T22:58:48.000Z
2020-11-10T22:29:11.000Z
bball_intel/bball_intel/settings/base.py
ltiao/basketball-intelligence
c39a2794ca013a1bacd35ec2cbe778977c69834e
[ "MIT" ]
null
null
null
bball_intel/bball_intel/settings/base.py
ltiao/basketball-intelligence
c39a2794ca013a1bacd35ec2cbe778977c69834e
[ "MIT" ]
null
null
null
""" Django settings for bball_intel project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: BASE_DIR.child(...) from u...
24.453488
71
0.746553
af9fefbc39ca0dcfae99fa1ce87167850a1f37d2
1,315
py
Python
src/profiles/forms.py
abhijithanilkumar/CollegeSeatAllocation
b8b78712c6c5f7d6dfb8445a79f543934c850e03
[ "MIT" ]
null
null
null
src/profiles/forms.py
abhijithanilkumar/CollegeSeatAllocation
b8b78712c6c5f7d6dfb8445a79f543934c850e03
[ "MIT" ]
null
null
null
src/profiles/forms.py
abhijithanilkumar/CollegeSeatAllocation
b8b78712c6c5f7d6dfb8445a79f543934c850e03
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions from django.contrib.auth import get_user_model from . impo...
28.586957
77
0.610646
4d0e3d0e4da1b5ba43a3adc0bf9e455e7dfc6a12
3,923
py
Python
pcv_book/sift.py
gahan9/PCV
2df187ee0abbfc3f75fb434a26d64b3d76c207e9
[ "BSD-2-Clause" ]
1
2019-02-07T05:41:44.000Z
2019-02-07T05:41:44.000Z
pcv_book/sift.py
gahan9/PCV
2df187ee0abbfc3f75fb434a26d64b3d76c207e9
[ "BSD-2-Clause" ]
null
null
null
pcv_book/sift.py
gahan9/PCV
2df187ee0abbfc3f75fb434a26d64b3d76c207e9
[ "BSD-2-Clause" ]
null
null
null
from PIL import Image import os from numpy import * from pylab import * def process_image(imagename, resultname, params="--edge-thresh 10 --peak-thresh 5"): """ Process an image and save the results in a file. """ if imagename[-3:] != 'pgm': # create a pgm file im = Image.open(imagename).conv...
30.176923
95
0.609992
5d255e1606e0e0ae8c7c200c6d7caca85c6e9934
1,565
py
Python
features.py
gebgebgeb/itg-difficulty
02176a87ba87fa36af5b3b4e9b1eed9577df4445
[ "MIT" ]
null
null
null
features.py
gebgebgeb/itg-difficulty
02176a87ba87fa36af5b3b4e9b1eed9577df4445
[ "MIT" ]
null
null
null
features.py
gebgebgeb/itg-difficulty
02176a87ba87fa36af5b3b4e9b1eed9577df4445
[ "MIT" ]
null
null
null
def vecify(song, difficulty, feature_indices=None): chart_data = song['charts'][difficulty]['features'] bpm = song['bpms'][0][1] effective_bpm = bpm*chart_data['most_common_strm_res'] out = [bpm , bpm**2 , bpm**.5 , effective_bpm , effective_bpm**.5 ...
41.184211
79
0.566773
ee4633c88caa41beb31656fc16d2438d292b987a
7,944
py
Python
examples/lucene_grammar.py
yawor/pyparsing
39934574db9796f27397b9f76a112c2466bd1a69
[ "MIT" ]
null
null
null
examples/lucene_grammar.py
yawor/pyparsing
39934574db9796f27397b9f76a112c2466bd1a69
[ "MIT" ]
1
2020-03-31T01:28:54.000Z
2020-03-31T01:28:54.000Z
examples/lucene_grammar.py
yawor/pyparsing
39934574db9796f27397b9f76a112c2466bd1a69
[ "MIT" ]
1
2020-03-26T00:43:50.000Z
2020-03-26T00:43:50.000Z
# # lucene_grammar.py # # Copyright 2011, Paul McGuire # # implementation of Lucene grammar, as decribed # at http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/docs/queryparsersyntax.html # import pyparsing as pp from pyparsing import pyparsing_common as ppc pp.ParserElement.enablePackrat() COLON, LBRACK, RBRACK,...
23.296188
86
0.465634
dbaf018adaf20a1e4a7727b2f5ac3a8709385e07
377
py
Python
Python-Programing-Basics/First Steps in Coding/First Steps in Coding - Exercise/08_fish_tank/fish_tank.py
alexanderivanov2/Softuni-Software-Engineering
8adb96f445f1da17dbb6eded9e9594319154c7e7
[ "MIT" ]
null
null
null
Python-Programing-Basics/First Steps in Coding/First Steps in Coding - Exercise/08_fish_tank/fish_tank.py
alexanderivanov2/Softuni-Software-Engineering
8adb96f445f1da17dbb6eded9e9594319154c7e7
[ "MIT" ]
null
null
null
Python-Programing-Basics/First Steps in Coding/First Steps in Coding - Exercise/08_fish_tank/fish_tank.py
alexanderivanov2/Softuni-Software-Engineering
8adb96f445f1da17dbb6eded9e9594319154c7e7
[ "MIT" ]
null
null
null
length_cm = int(input()) width_cm = int(input()) height_cm = int(input()) procent_get = float(input()) def calculate_liters_water(length, width, height, procent): aquarium_qb = ((length * width * height) / 1000) liters_water = aquarium_qb - (aquarium_qb * (procent / 100)) print(liters_water) calculate_l...
26.928571
67
0.721485
e8a834940631bd1f0c80321ef8f22317d179e5c9
91
py
Python
pokeman/amqp_resources/__init__.py
wmarcuse/pokeman
5d654c227c456a065b2fea6a0d5827bff424c703
[ "BSD-3-Clause" ]
null
null
null
pokeman/amqp_resources/__init__.py
wmarcuse/pokeman
5d654c227c456a065b2fea6a0d5827bff424c703
[ "BSD-3-Clause" ]
null
null
null
pokeman/amqp_resources/__init__.py
wmarcuse/pokeman
5d654c227c456a065b2fea6a0d5827bff424c703
[ "BSD-3-Clause" ]
null
null
null
from .globals import Exchange, Queue __all__ = [ # Resources 'Exchange', 'Queue' ]
15.166667
36
0.648352
54d3e0c3d4fc5d0680cbde0ccb698735c9a16494
703
py
Python
examples/plotting/server/twin_axis.py
rothnic/bokeh
8da5e16b260a75caa8e7ef4caf215bb93dd784db
[ "BSD-3-Clause" ]
1
2015-07-17T13:57:01.000Z
2015-07-17T13:57:01.000Z
examples/plotting/server/twin_axis.py
evidation-health/bokeh
2c580d93419033b962d36e3c46d7606cc2f24606
[ "BSD-3-Clause" ]
null
null
null
examples/plotting/server/twin_axis.py
evidation-health/bokeh
2c580d93419033b962d36e3c46d7606cc2f24606
[ "BSD-3-Clause" ]
1
2016-03-18T03:01:59.000Z
2016-03-18T03:01:59.000Z
# The plot server must be running # Go to http://localhost:5006/bokeh to view this plot from __future__ import print_function from numpy import pi, arange, sin, linspace from bokeh.plotting import figure, show, output_server from bokeh.models import LinearAxis, Range1d x = arange(-2*pi, 2*pi, 0.1) y = sin(x) y2 = l...
27.038462
82
0.714083
29a575a41558c0894ef145d4ce70b29c70aef992
106
py
Python
app/SuperPhy/models/sparql/__init__.py
superphy/semantic
06b3885a6a3e424ba57be0c839ae2bd8a46364ac
[ "Apache-2.0" ]
16
2015-09-23T17:19:35.000Z
2020-05-26T16:02:54.000Z
app/SuperPhy/models/sparql/__init__.py
superphy/semantic
06b3885a6a3e424ba57be0c839ae2bd8a46364ac
[ "Apache-2.0" ]
21
2015-11-03T15:43:58.000Z
2017-10-30T02:23:37.000Z
app/SuperPhy/models/sparql/__init__.py
superphy/semantic
06b3885a6a3e424ba57be0c839ae2bd8a46364ac
[ "Apache-2.0" ]
5
2015-10-19T17:12:39.000Z
2018-09-10T16:19:56.000Z
from general import * from user import * from genomes import * from genes import * from prefixes import *
17.666667
22
0.764151
a04f0dbac494ebd277edca55a8e6ee8d996546a0
7,121
py
Python
AstroML/solutions/exercise_03.py
eduavencama/va_course_2015
59ff3f08684f0f07317b4d3ae1f80a9bca58c0ef
[ "MIT" ]
2
2015-12-27T05:56:36.000Z
2017-07-04T21:48:35.000Z
AstroML/solutions/exercise_03.py
eduavencama/va_course_2015
59ff3f08684f0f07317b4d3ae1f80a9bca58c0ef
[ "MIT" ]
2
2016-02-15T15:58:28.000Z
2019-10-14T01:40:42.000Z
AstroML/solutions/exercise_03.py
eduavencama/va_course_2015
59ff3f08684f0f07317b4d3ae1f80a9bca58c0ef
[ "MIT" ]
6
2015-06-09T13:24:30.000Z
2019-10-11T15:07:56.000Z
""" Astronomy Tutorial: exercise 3 Dimensionality reduction of stellar spectra Usage: python exercise_03.py datadir [-m method] [-k n_neigbors] [-n norm_type] [-N n_samples] [-s] - datadir is $TUTORIAL_DIR/data/sdss_photoz This directory...
32.665138
85
0.617891
d65aa8e66fa50f9f12835e2dfa75fb04f028dfcd
106
py
Python
src.py
realbiba/Python1Ass
2615bcef7726abe6d20dd10fe941135fe906348f
[ "MIT" ]
null
null
null
src.py
realbiba/Python1Ass
2615bcef7726abe6d20dd10fe941135fe906348f
[ "MIT" ]
null
null
null
src.py
realbiba/Python1Ass
2615bcef7726abe6d20dd10fe941135fe906348f
[ "MIT" ]
null
null
null
from pycoingecko import CoinGeckoAPI cg = CoinGeckoAPI() result = cg.get_coins_markets(vs_currency='usd')
26.5
48
0.811321
da0abb205dbee6206b81335784690e6b9711e866
25,923
py
Python
ibmsecurity/appliance/isamappliance.py
sandermey/ibmsecurity
92ba7828260e96a6a323f4ac3830bfa43ee8dd7e
[ "Apache-2.0" ]
null
null
null
ibmsecurity/appliance/isamappliance.py
sandermey/ibmsecurity
92ba7828260e96a6a323f4ac3830bfa43ee8dd7e
[ "Apache-2.0" ]
null
null
null
ibmsecurity/appliance/isamappliance.py
sandermey/ibmsecurity
92ba7828260e96a6a323f4ac3830bfa43ee8dd7e
[ "Apache-2.0" ]
null
null
null
import json import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning import logging from .ibmappliance import IBMAppliance from .ibmappliance import IBMError from ibmsecurity.utilities import tools class ISAMAppliance(IBMAppliance): def __init__(self, hostname, user, lmi_port=443): ...
44.237201
120
0.565521
2e3ae1922d1f7970f26f55090109c904aa197f98
859
py
Python
src/sima/custom/blueprints/customcomponent.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/custom/blueprints/customcomponent.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/custom/blueprints/customcomponent.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# # Generated with CustomComponentBlueprint from dmt.blueprint import Blueprint from dmt.dimension import Dimension from dmt.attribute import Attribute from dmt.enum_attribute import EnumAttribute from dmt.blueprint_attribute import BlueprintAttribute from sima.sima.blueprints.moao import MOAOBlueprint class CustomCo...
47.722222
121
0.754366
debc328a50faa6e85c454bb2e4aa1833d1ac8b0a
10,626
py
Python
test/integration/test_seq_copy_int.py
shuoyangd/sockeye
8ee6fd87b0c9c6bfa691bd3efb29e2eda7219480
[ "Apache-2.0" ]
1
2019-02-20T17:46:48.000Z
2019-02-20T17:46:48.000Z
test/integration/test_seq_copy_int.py
shuoyangd/sockeye
8ee6fd87b0c9c6bfa691bd3efb29e2eda7219480
[ "Apache-2.0" ]
2
2018-11-13T19:08:18.000Z
2018-11-27T02:16:11.000Z
test/integration/test_seq_copy_int.py
shuoyangd/sockeye
8ee6fd87b0c9c6bfa691bd3efb29e2eda7219480
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, 2018 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" fi...
58.065574
119
0.658762
7bfdf989bbee6831f2d0ce4a2123874bf7f09423
1,933
py
Python
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/BatchCheckDeviceNamesRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/BatchCheckDeviceNamesRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/BatchCheckDeviceNamesRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "Apache-2.0" ]
null
null
null
# 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...
37.173077
80
0.763063
dace6181de7549e804c50f65873dc117c5213353
2,324
py
Python
test/functional/credit_combined_outputs_exceed_gas_limit.py
The-Terra-Foundation/Credit-Core
eff0485f19ce5c122f9d7f1f43c8c4ebe53d1470
[ "MIT" ]
3
2021-08-31T13:16:57.000Z
2022-03-27T16:06:06.000Z
test/functional/credit_combined_outputs_exceed_gas_limit.py
The-Terra-Foundation/Credit-Core
eff0485f19ce5c122f9d7f1f43c8c4ebe53d1470
[ "MIT" ]
null
null
null
test/functional/credit_combined_outputs_exceed_gas_limit.py
The-Terra-Foundation/Credit-Core
eff0485f19ce5c122f9d7f1f43c8c4ebe53d1470
[ "MIT" ]
2
2021-08-31T13:17:03.000Z
2021-09-07T08:02:07.000Z
#!/usr/bin/env python3 from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from test_framework.script import * from test_framework.mininode import * from test_framework.credit import * from test_framework.address import * import time class CreditCombinedOutputsExceedGasLim...
44.692308
252
0.70568
dfc28b264bf5b1c7ee84794d280d1ca7893b4ef2
22,518
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/course_modes/tests/test_views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/course_modes/tests/test_views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/course_modes/tests/test_views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Tests for course_modes views. """ import decimal import unittest from datetime import datetime, timedelta from unittest.mock import patch import ddt import freezegun import httpretty import pytz from django.conf import settings from django.urls import reverse from common.djangoapps.course_modes.models import Co...
41.469613
119
0.668709
fc759a363c8610663ccc7f5e0f4e07f00f96ed4c
1,893
py
Python
Api/ProxyApi.py
andrewngg/proxy_pool
fec8398b2bbb24f14881b8906d783b1400bfdb8f
[ "MIT" ]
8
2018-12-29T13:20:05.000Z
2020-10-25T12:43:32.000Z
Api/ProxyApi.py
andrewngg/proxy_pool
fec8398b2bbb24f14881b8906d783b1400bfdb8f
[ "MIT" ]
null
null
null
Api/ProxyApi.py
andrewngg/proxy_pool
fec8398b2bbb24f14881b8906d783b1400bfdb8f
[ "MIT" ]
2
2018-10-24T12:31:46.000Z
2018-10-25T10:05:28.000Z
# -*- coding: utf-8 -*- # !/usr/bin/env python """ ------------------------------------------------- File Name: ProxyApi.py Description : Author : JHao date: 2016/12/4 ------------------------------------------------- Change Activity: 2016/12/4: ---------------------...
20.576087
69
0.594823
a217e65e76e2e2759eb3b6999e82f56118f7159a
3,843
py
Python
app/notebook/views/invite.py
Lontras-e-Preguicas/cnotes-server
66e15c3f260a9ba3be06c77eb5d03b0f0431019d
[ "MIT" ]
1
2021-02-21T01:03:06.000Z
2021-02-21T01:03:06.000Z
app/notebook/views/invite.py
Lontras-e-Preguicas/cnotes-server
66e15c3f260a9ba3be06c77eb5d03b0f0431019d
[ "MIT" ]
1
2021-02-12T22:49:18.000Z
2021-02-12T22:49:18.000Z
app/notebook/views/invite.py
Lontras-e-Preguicas/cnotes-server
66e15c3f260a9ba3be06c77eb5d03b0f0431019d
[ "MIT" ]
1
2021-02-16T20:45:32.000Z
2021-02-16T20:45:32.000Z
from django.core.exceptions import ValidationError as DjangoValidationError from django.db.models import Q from django.utils.translation import gettext_lazy as _ from drf_yasg.openapi import Parameter from drf_yasg.utils import swagger_auto_schema from rest_framework import viewsets, permissions, authentication, mixins...
40.452632
107
0.666667
1da95b1a735b9b401457a6162ed8874dd484ec39
9,964
py
Python
doc/conf.py
usnistgov/corr-deploy
0184708e672b82b92c59d49f077864a29d1b75de
[ "MIT" ]
null
null
null
doc/conf.py
usnistgov/corr-deploy
0184708e672b82b92c59d49f077864a29d1b75de
[ "MIT" ]
5
2016-12-19T16:09:46.000Z
2016-12-19T16:13:40.000Z
doc/conf.py
usnistgov/corr-deploy
0184708e672b82b92c59d49f077864a29d1b75de
[ "MIT" ]
2
2016-11-30T21:39:10.000Z
2016-12-27T16:06:02.000Z
# -*- coding: utf-8 -*- # # electrical documentation build configuration file, created by # sphinx-quickstart on Thu Mar 22 15:47:53 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
31.23511
86
0.702228
b21f0de222a58b1ad5d7a133d863164b72aac19d
1,529
py
Python
config.py
jorgensoares/ocloud-flask-base
969ca8482a7aad14c8e98c0107d88c51edb5df39
[ "MIT" ]
null
null
null
config.py
jorgensoares/ocloud-flask-base
969ca8482a7aad14c8e98c0107d88c51edb5df39
[ "MIT" ]
null
null
null
config.py
jorgensoares/ocloud-flask-base
969ca8482a7aad14c8e98c0107d88c51edb5df39
[ "MIT" ]
null
null
null
# # Application configuration # Changes the variables below # # Server settings SERVER_IP = 'localhost' LOG_ENABLE = False LOG = '../ocloud.log' LOG_MAX_SIZE_BYTES = 100000 UPLOAD_FOLDER = '../static/images' # Security settings DEBUG = True WTF_CSRF_ENABLED = True SECRET_KEY = 'super secret string' # Recaptcha settin...
20.662162
60
0.754742
966cfa0301829784287275a11f14038b92af74e3
1,366
py
Python
redditetl/reddit/scraping.py
FasihJaved/reddit-etl
50cf8202cbdb7d39956d0278cb809f4b68c4a7b4
[ "MIT" ]
null
null
null
redditetl/reddit/scraping.py
FasihJaved/reddit-etl
50cf8202cbdb7d39956d0278cb809f4b68c4a7b4
[ "MIT" ]
null
null
null
redditetl/reddit/scraping.py
FasihJaved/reddit-etl
50cf8202cbdb7d39956d0278cb809f4b68c4a7b4
[ "MIT" ]
null
null
null
from requests_html import HTML, HTMLSession import pandas as pd MAINLINK = 'https://www.isidewith.com/' SECONDLINK = "https://www.isidewith.com/candidates/" #top_topics = [] #cand_ratings = [] def start_session(link): session = HTMLSession() return session.get(link) def main_top_topics(r): top_topics =...
26.269231
73
0.70571
ad1c36c30407b5283cf05709579e6145e3c34d0e
5,644
py
Python
rally/plugins/openstack/scenario.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenario.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenario.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# Copyright 2015: Mirantis 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 b...
38.924138
78
0.605245
ae93583f85babe880a1b89af74f6d317e9315af0
13,221
py
Python
src/bookmarks_converter/models.py
radam9/bookmarks_parser
fc508908fe4b5551d517e7da7120bcc2480200f7
[ "MIT" ]
8
2021-02-19T09:28:31.000Z
2022-02-16T02:33:26.000Z
src/bookmarks_converter/models.py
radam9/bookmarks_parser
fc508908fe4b5551d517e7da7120bcc2480200f7
[ "MIT" ]
50
2021-02-06T14:16:38.000Z
2022-03-01T17:55:05.000Z
src/bookmarks_converter/models.py
radam9/bookmarks_parser
fc508908fe4b5551d517e7da7120bcc2480200f7
[ "MIT" ]
1
2021-09-15T16:45:08.000Z
2021-09-15T16:45:08.000Z
import itertools import time from bs4 import Tag from sqlalchemy import Column, ForeignKey, Integer, String, create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import backref, relationship, sessionmaker engine = create_engine("sqlite:///:memory:") Session = sessionmaker(bind=eng...
31.78125
154
0.599955
e5fcea4a9cf6954e826884360ed7091a55ae08dc
2,277
py
Python
backend/harmonymerchandiser_30146/urls.py
crowdbotics-apps/harmonymerchandiser-30146
d54b0acd12740f33f33d1a96f7b877119f39bf36
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/harmonymerchandiser_30146/urls.py
crowdbotics-apps/harmonymerchandiser-30146
d54b0acd12740f33f33d1a96f7b877119f39bf36
[ "FTL", "AML", "RSA-MD" ]
10
2021-08-30T05:26:28.000Z
2021-10-06T03:55:30.000Z
backend/harmonymerchandiser_30146/urls.py
crowdbotics-apps/harmonymerchandiser-30146
d54b0acd12740f33f33d1a96f7b877119f39bf36
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""harmonymerchandiser_30146 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/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='...
36.142857
87
0.720685
95b0bc9cd7e3c278a21d993b21c116a1e825a345
289
py
Python
references/urls.py
tgeery/blog
4df7420a9dea07dbb610e987bd6eadeaccb271ba
[ "MIT" ]
null
null
null
references/urls.py
tgeery/blog
4df7420a9dea07dbb610e987bd6eadeaccb271ba
[ "MIT" ]
6
2020-08-18T22:59:38.000Z
2021-09-22T19:17:33.000Z
references/urls.py
tgeery/blog
4df7420a9dea07dbb610e987bd6eadeaccb271ba
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('entry_1', views.entry_1, name='entry_1'), path('entry_2', views.entry_2, name='entry_2'), path('entry_3', views.entry_3, name='entry_3') ]
26.272727
55
0.605536
b41e08e749e2ef327f357a77c33436f49e93f761
3,384
py
Python
examples/30_extended/suites_tutorial.py
Rong-Inspur/openml-python
07d429c843cf589d8096db76d520317acf7a99ab
[ "BSD-3-Clause" ]
null
null
null
examples/30_extended/suites_tutorial.py
Rong-Inspur/openml-python
07d429c843cf589d8096db76d520317acf7a99ab
[ "BSD-3-Clause" ]
null
null
null
examples/30_extended/suites_tutorial.py
Rong-Inspur/openml-python
07d429c843cf589d8096db76d520317acf7a99ab
[ "BSD-3-Clause" ]
null
null
null
""" ================ Benchmark suites ================ How to list, download and upload benchmark suites. If you want to learn more about benchmark suites, check out our `brief introductory tutorial <../20_basic/simple_suites_tutorial.html>`_ or the `OpenML benchmark docs <https://docs.openml.org/benchmark/#benchmark...
33.84
91
0.549054
99d7a03bf41676471c73d0b8656a11dbb010e598
30,370
py
Python
test/functional/rpc_rawtransaction.py
xaya/xaya
2ded8ee56fe399b023a0ec7341c54b45f9d6691b
[ "MIT" ]
96
2018-07-15T14:09:46.000Z
2022-03-27T23:37:15.000Z
test/functional/rpc_rawtransaction.py
xaya/xaya
2ded8ee56fe399b023a0ec7341c54b45f9d6691b
[ "MIT" ]
45
2018-07-13T13:53:19.000Z
2022-01-12T09:09:26.000Z
test/functional/rpc_rawtransaction.py
xaya/xaya
2ded8ee56fe399b023a0ec7341c54b45f9d6691b
[ "MIT" ]
47
2018-08-03T04:55:45.000Z
2022-03-10T07:50:31.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2020 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 the rawtransaction RPCs. Test the following RPCs: - getrawtransaction - createrawtransactio...
56.136784
363
0.65861
2779b9038a0781842afe9e27ed01aa4b649e373b
23,924
py
Python
testutils/ptest/hivetest.py
tengine/hive
f92e2544f8edd76217b7e6a5825ccc0a5c448329
[ "Apache-2.0" ]
null
null
null
testutils/ptest/hivetest.py
tengine/hive
f92e2544f8edd76217b7e6a5825ccc0a5c448329
[ "Apache-2.0" ]
null
null
null
testutils/ptest/hivetest.py
tengine/hive
f92e2544f8edd76217b7e6a5825ccc0a5c448329
[ "Apache-2.0" ]
1
2020-06-05T07:01:55.000Z
2020-06-05T07:01:55.000Z
#!/usr/bin/env python # # 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 "Lic...
39.609272
150
0.640946
6c4238f5470b5ffc65bb63b006653991b4f54143
2,320
py
Python
prototypes/originals/plot_qt.py
cbrnr/gsoc2021
b0663b74445681ad4e7d1bb0937488be1aa37b4b
[ "BSD-3-Clause" ]
1
2021-05-19T10:32:41.000Z
2021-05-19T10:32:41.000Z
prototypes/originals/plot_qt.py
cbrnr/gsoc2021
b0663b74445681ad4e7d1bb0937488be1aa37b4b
[ "BSD-3-Clause" ]
null
null
null
prototypes/originals/plot_qt.py
cbrnr/gsoc2021
b0663b74445681ad4e7d1bb0937488be1aa37b4b
[ "BSD-3-Clause" ]
1
2021-07-13T06:15:42.000Z
2021-07-13T06:15:42.000Z
""" This is a prototype of a Raw-Plot based just on the Plotting-Capabilities of PyQt5/PySide2. It was originally created by Clemens Brunner (https://github.com/cbrnr). """ import sys from qtpy.QtWidgets import (QApplication, QGraphicsPathItem, QGraphicsScene, QGraphicsView, QOpenGLWidget) f...
29.367089
91
0.656897
637765f6648f2900d46ffad9c285e3402307672e
2,803
py
Python
spotlob/calibration.py
fa-me/spotlob
1f76f05bf351ba84dc8d3693fc692aa4af05c5d3
[ "BSD-3-Clause" ]
1
2020-02-14T19:38:55.000Z
2020-02-14T19:38:55.000Z
spotlob/calibration.py
fa-me/spotlob
1f76f05bf351ba84dc8d3693fc692aa4af05c5d3
[ "BSD-3-Clause" ]
null
null
null
spotlob/calibration.py
fa-me/spotlob
1f76f05bf351ba84dc8d3693fc692aa4af05c5d3
[ "BSD-3-Clause" ]
null
null
null
import json import os.path from pkg_resources import resource_filename class Calibration(object): def __init__(self, *args, **kwargs): """ Calibration(0.34) - 0.34 pixel per micrometer OR Calibration(microscope = "Zeiss", objective = "20x") """ try: ...
35.481013
79
0.610417
102ce5be61b0c946aa68d715879b6e385c6dcdbd
11,753
py
Python
pipenv/patched/notpip/_internal/network/auth.py
offby1/pipenv
ce83c629385b4e7a791bd6857c2cf1e26ceb2351
[ "MIT" ]
1
2022-02-20T03:49:25.000Z
2022-02-20T03:49:25.000Z
pipenv/patched/notpip/_internal/network/auth.py
offby1/pipenv
ce83c629385b4e7a791bd6857c2cf1e26ceb2351
[ "MIT" ]
1
2022-03-17T13:12:17.000Z
2022-03-17T13:12:17.000Z
pipenv/patched/notpip/_internal/network/auth.py
offby1/pipenv
ce83c629385b4e7a791bd6857c2cf1e26ceb2351
[ "MIT" ]
null
null
null
"""Network Authentication Helpers Contains interface (MultiDomainBasicAuth) and associated glue code for providing credentials in the context of network requests. """ import urllib.parse from typing import Any, Dict, List, Optional, Tuple from pipenv.patched.notpip._vendor.requests.auth import AuthBase, HTTPBasicAut...
37.07571
88
0.632434
aea189b304ec4c770707dae625848134bc6a85e5
5,430
py
Python
Webscraping/ECB/Parsing/parse_interviews.py
Moritz-Pfeifer/Money-Trust-and-Central-Bank-Communications
6dd507eeb2892c38ed2c301b94aa3777dfefb395
[ "MIT" ]
null
null
null
Webscraping/ECB/Parsing/parse_interviews.py
Moritz-Pfeifer/Money-Trust-and-Central-Bank-Communications
6dd507eeb2892c38ed2c301b94aa3777dfefb395
[ "MIT" ]
null
null
null
Webscraping/ECB/Parsing/parse_interviews.py
Moritz-Pfeifer/Money-Trust-and-Central-Bank-Communications
6dd507eeb2892c38ed2c301b94aa3777dfefb395
[ "MIT" ]
null
null
null
import json import os import sqlite3 import sys import time import traceback from time import sleep import requests from bs4 import BeautifulSoup def get_links(): ids = [] records = [] try: TABLE_NAME = 'links' DB_PATH = 'ecb_interviews.db' conn = sqlite3.connect(DB_PATH) ...
33.726708
146
0.539963
458810089d6a30bc0fef44b0bfc23b02a817a394
2,629
py
Python
kalik_bot.py
MysterionRise/anti-mayonnaise
2eb71677a1397051969f2762f25b6b5fd3dbb78a
[ "MIT" ]
null
null
null
kalik_bot.py
MysterionRise/anti-mayonnaise
2eb71677a1397051969f2762f25b6b5fd3dbb78a
[ "MIT" ]
null
null
null
kalik_bot.py
MysterionRise/anti-mayonnaise
2eb71677a1397051969f2762f25b6b5fd3dbb78a
[ "MIT" ]
null
null
null
import os.path import pickle from telegram import InlineKeyboardButton, InlineKeyboardMarkup from telegram.ext import CallbackQueryHandler, CommandHandler, Updater from telegram.ext.dispatcher import run_async import settings @run_async def bot_help(update, context): chat_id = update.message.chat.id context...
24.119266
83
0.653861
16a1cf4f956d37d2d25c4462431b6787a15f7305
1,372
py
Python
tests-cuda/test_0645-to-jax.py
colesbury/awkward-1.0
d036ab18eb54de8a2571d9f179d315ac8ee22119
[ "BSD-3-Clause" ]
null
null
null
tests-cuda/test_0645-to-jax.py
colesbury/awkward-1.0
d036ab18eb54de8a2571d9f179d315ac8ee22119
[ "BSD-3-Clause" ]
null
null
null
tests-cuda/test_0645-to-jax.py
colesbury/awkward-1.0
d036ab18eb54de8a2571d9f179d315ac8ee22119
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE import pytest # noqa: F401 import numpy as np # noqa: F401 import awkward as ak # noqa: F401 jax = pytest.importorskip("jax") jax.config.update("jax_platform_name", "gpu") jax.config.update("jax_enable_x64", True) def test_f...
31.906977
87
0.651603
10fc6334121c06b48819548a7fce02442a158218
1,580
py
Python
M/12.py
jnoddell/LC
be17ab80e745169a6617788ba82ad2c5b250c0d5
[ "Apache-2.0" ]
2
2021-01-20T14:31:36.000Z
2021-01-20T14:32:31.000Z
M/12.py
jnoddell/LC
be17ab80e745169a6617788ba82ad2c5b250c0d5
[ "Apache-2.0" ]
null
null
null
M/12.py
jnoddell/LC
be17ab80e745169a6617788ba82ad2c5b250c0d5
[ "Apache-2.0" ]
null
null
null
class Solution(object): def intToRoman(self, num): """ :type num: int :rtype: str """ exchange = [['I', 1], ['V', 5], ['X', 10], ['L', 50], ['C', 100], ['D', 500], ['M', 1000]] exchange = exchange[::-1] roman = "" index = 0 while num >...
32.916667
98
0.406329
c22b98fef149e58a076f629bde16dfea1dd78ce3
259
py
Python
az-query-report/setup.py
benmack/azure-query-report
4f397c94ab6b02a8c3948bfbaa3f208d4114ff8a
[ "MIT" ]
null
null
null
az-query-report/setup.py
benmack/azure-query-report
4f397c94ab6b02a8c3948bfbaa3f208d4114ff8a
[ "MIT" ]
1
2020-03-24T21:47:01.000Z
2020-03-24T21:47:01.000Z
az-query-report/setup.py
benmack/azure-query-report
4f397c94ab6b02a8c3948bfbaa3f208d4114ff8a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='azure-query-report', version='0.1', py_modules=['make_report'], install_requires=[ 'Click', ], entry_points=''' [console_scripts] make_report=make_report:cli ''', )
18.5
35
0.590734
29ee9a0bec666a33201dc1fc6eab53f6d80c9768
89
py
Python
yc157/485.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc157/485.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc157/485.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
A, B = map(int, input().split()) if B % A == 0: print(B // A) else: print('NO')
12.714286
32
0.460674
fa24ab7859867d53b4146feca218e064e046a2e6
9,015
py
Python
aws_codecommit_notification_4_teams/app.py
answer-d/aws-codecommit-notification-4-teams
5281c6a26db10f59f45e83533884e33129b1e3ff
[ "MIT" ]
3
2021-03-01T04:31:22.000Z
2021-11-02T09:57:39.000Z
aws_codecommit_notification_4_teams/app.py
answer-d/aws-codecommit-notification-4-teams
5281c6a26db10f59f45e83533884e33129b1e3ff
[ "MIT" ]
19
2021-03-02T15:38:16.000Z
2021-04-01T05:18:06.000Z
aws_codecommit_notification_4_teams/app.py
answer-d/aws-codecommit-notification-4-teams
5281c6a26db10f59f45e83533884e33129b1e3ff
[ "MIT" ]
null
null
null
import json import pymsteams import os import boto3 def lambda_handler(event, context): print(json.dumps(event)) event_message = json.loads(event['Records'][0]['Sns']['Message']) ccard_info = { 'url': os.environ['HOOK_URL'] } print(json.dumps(event_message)) detail_type = event_messag...
32.545126
79
0.606545
61f9a0f0a6fc70794293f3a256ad1013e9aa2612
5,780
py
Python
nova/tests/functional/regressions/test_bug_1781710.py
jdmoravec/nova
d73ab00e669b65946b459ba9e1a0825271fd2d2d
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/regressions/test_bug_1781710.py
jdmoravec/nova
d73ab00e669b65946b459ba9e1a0825271fd2d2d
[ "Apache-2.0" ]
1
2021-03-31T19:29:01.000Z
2021-03-31T19:29:01.000Z
nova/tests/functional/regressions/test_bug_1781710.py
jdmoravec/nova
d73ab00e669b65946b459ba9e1a0825271fd2d2d
[ "Apache-2.0" ]
1
2020-07-22T22:14:40.000Z
2020-07-22T22:14:40.000Z
# 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...
46.99187
79
0.686332
dc7aa50b3ce5de10652f66a75e1251dd13c500df
392
py
Python
app/model/forms/report.py
nataliafonseca/flask-systrans
9af6372361dbe46bc12bd39cc679f10f328cbf7b
[ "MIT" ]
1
2022-03-30T04:24:20.000Z
2022-03-30T04:24:20.000Z
app/model/forms/report.py
nataliafonseca/flask-systrans
9af6372361dbe46bc12bd39cc679f10f328cbf7b
[ "MIT" ]
null
null
null
app/model/forms/report.py
nataliafonseca/flask-systrans
9af6372361dbe46bc12bd39cc679f10f328cbf7b
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, DateField, FloatField, TimeField from wtforms.validators import DataRequired, Length class ReportForm(FlaskForm): initial_date = DateField( 'initial_date', validators=[DataRequired('Campo obrigatório')] ) final_date = DateField( ...
28
70
0.742347
4e75fe2c72b5420bbdfe082223dba2417f5c48d8
19,218
py
Python
examples/torchvision_onnx_resnet18/torchvision_onnx_resnet18.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
207
2019-11-12T11:42:25.000Z
2022-03-20T20:32:17.000Z
examples/torchvision_onnx_resnet18/torchvision_onnx_resnet18.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
31
2019-11-25T07:33:30.000Z
2022-03-17T12:34:34.000Z
examples/torchvision_onnx_resnet18/torchvision_onnx_resnet18.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
29
2019-11-07T02:25:48.000Z
2022-03-12T16:22:57.000Z
from __future__ import absolute_import from __future__ import print_function import os import sys import math import numpy as np import PIL import json import torch import torchvision import torchvision.transforms as transforms import torch.nn as nn import torch.nn.functional as F import torch.autograd # the next li...
38.902834
103
0.526798
1f06c3a7fbd043979c3816f712fe1f80e12c93b3
1,166
py
Python
common/src/stack/command/stack/commands/report/__init__.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/report/__init__.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/report/__init__.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
null
null
null
# @copyright@ # Copyright (c) 2006 - 2018 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ # # @rocks@ # Copyright (c) 2000 - 2010 The Regents of the University of California # All rights reserved. Rocks(r) v5.4 www.rocksclusters.org # ...
23.795918
71
0.641509
9be6298d4dc48c9af3e82e478d79e3a4cbd2dba4
5,746
py
Python
swagger_client/models/node.py
atlanticwave-sdx/sdx-controller-client
426453bf84e9522e857fd78139bb63429b9091cc
[ "MIT" ]
null
null
null
swagger_client/models/node.py
atlanticwave-sdx/sdx-controller-client
426453bf84e9522e857fd78139bb63429b9091cc
[ "MIT" ]
null
null
null
swagger_client/models/node.py
atlanticwave-sdx/sdx-controller-client
426453bf84e9522e857fd78139bb63429b9091cc
[ "MIT" ]
null
null
null
# coding: utf-8 """ SDX-Controller You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). # noqa: E501 OpenAPI spec version: 1.0.0 Contact: yxin@renci.org Generated by: https://github.com/swagger-api/swagger-code...
26.237443
156
0.539332
f5d227c384de4f7c30c36330b7f58175803b2436
4,440
py
Python
tensorflow_datasets/image/patch_camelyon.py
abhinavsp0730/datasets
3c69b42456fb947a7af7086a3310b972bd1ae3fb
[ "Apache-2.0" ]
2
2019-09-27T10:28:27.000Z
2020-12-25T17:20:14.000Z
tensorflow_datasets/image/patch_camelyon.py
abhinavsp0730/datasets
3c69b42456fb947a7af7086a3310b972bd1ae3fb
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/image/patch_camelyon.py
abhinavsp0730/datasets
3c69b42456fb947a7af7086a3310b972bd1ae3fb
[ "Apache-2.0" ]
3
2019-12-06T01:05:46.000Z
2019-12-07T16:53:21.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets 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 appl...
37
79
0.665766
93257a4b2d4af64146f45b22716783e2eb0a5368
4,332
py
Python
altera_hosts.py
viniciustbitencourt/crud-apizabbix
e930df031de2abd96e740a8990149f512e25c818
[ "MIT" ]
null
null
null
altera_hosts.py
viniciustbitencourt/crud-apizabbix
e930df031de2abd96e740a8990149f512e25c818
[ "MIT" ]
null
null
null
altera_hosts.py
viniciustbitencourt/crud-apizabbix
e930df031de2abd96e740a8990149f512e25c818
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 #DESCRICAO #Esse script foi desenvolvido para facilitar a forma como cadastramos, #alteramos ou excluímos os principais ativos em dois ou mais servidores zabbix. #A ideia é utilizar esse script para ambientes onde os eventos não estão sincronizados, #permitindo uma ótima facilida...
36.711864
95
0.590951
0af762f0ab32bc48b385938539dc78160d27b690
1,666
py
Python
nidaqmx/tests/test_teds.py
stafak/nidaqmx-python
f354d7971b21074c120c6f298dbbf4a5e0e4f4f4
[ "MIT" ]
252
2017-03-22T02:43:16.000Z
2022-03-27T14:44:44.000Z
nidaqmx/tests/test_teds.py
stafak/nidaqmx-python
f354d7971b21074c120c6f298dbbf4a5e0e4f4f4
[ "MIT" ]
133
2017-03-21T20:57:59.000Z
2022-03-31T16:08:12.000Z
nidaqmx/tests/test_teds.py
stafak/nidaqmx-python
f354d7971b21074c120c6f298dbbf4a5e0e4f4f4
[ "MIT" ]
124
2017-04-01T18:35:24.000Z
2022-03-25T06:30:00.000Z
import os import pytest import random import nidaqmx from nidaqmx.constants import TerminalConfiguration, TEDSUnits from nidaqmx.tests.fixtures import x_series_device from nidaqmx.tests.helpers import generate_random_seed class TestTEDS(object): """ Contains a collection of pytest tests that validate the TED...
35.446809
78
0.692077
9655f9b1a8202e0d5aaace6d4b295c22888a79d8
6,962
py
Python
hdk/tests/test_create_afi.py
JimMadge/aws-fpga
099d4898d1a8c5a9f23c1053eb1a8071ffb6d1a5
[ "Apache-2.0" ]
1,275
2017-04-19T20:03:34.000Z
2022-03-28T13:39:01.000Z
hdk/tests/test_create_afi.py
QPC-database/aws-fpga
f29834c1dc98d5e4bab5f84eb4d9fe1430580fa7
[ "Apache-2.0" ]
124
2017-04-21T08:51:11.000Z
2022-03-22T23:21:02.000Z
hdk/tests/test_create_afi.py
QPC-database/aws-fpga
f29834c1dc98d5e4bab5f84eb4d9fe1430580fa7
[ "Apache-2.0" ]
556
2017-04-19T21:12:03.000Z
2022-03-29T06:40:36.000Z
#!/usr/bin/env python2.7 # Amazon FPGA Hardware Development Kit # # Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Amazon Software License (the "License"). You may not use # this file except in compliance with the License. A copy of the License is # located at # # htt...
45.207792
166
0.705544