hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
4a8f1c2b21e9f7321bc8056b973b7bad4e6c12de
754
py
Python
configs/mot/tracktor/tracktor_faster-rcnn_r50_fpn_4e_mot17-public.py
sht47/mmtracking
5a25e418e9c598d1b576bce8702f5e156cbbefe7
[ "Apache-2.0" ]
12
2021-09-05T20:47:16.000Z
2022-03-23T07:00:35.000Z
configs/mot/tracktor/tracktor_faster-rcnn_r50_fpn_4e_mot17-public.py
hellock/mmtracking
a22a36b2055d80cf4a7a5ef3913849abb56defcb
[ "Apache-2.0" ]
2
2021-09-06T13:20:09.000Z
2022-01-13T05:36:14.000Z
configs/mot/tracktor/tracktor_faster-rcnn_r50_fpn_4e_mot17-public.py
hellock/mmtracking
a22a36b2055d80cf4a7a5ef3913849abb56defcb
[ "Apache-2.0" ]
1
2021-07-15T00:26:35.000Z
2021-07-15T00:26:35.000Z
_base_ = ['./tracktor_faster-rcnn_r50_fpn_4e_mot17-public-half.py'] model = dict( pretrains=dict( detector= # noqa: E251 'https://download.openmmlab.com/mmtracking/mot/faster_rcnn/faster-rcnn_r50_fpn_4e_mot17-ffa52ae7.pth' # noqa: E501 )) data_root = 'data/MOT17/' test_set = 'test' data = dict...
41.888889
123
0.708223
0
0
0
0
0
0
0
0
385
0.51061
4a8f5a90f2c6e24db504d3e023a88b1bddaccca9
2,277
py
Python
browserstack/first_sample_build.py
Shaimyst/scrive_test
38e3ea0192885d1776d24afdbea110d73adc4e8b
[ "MIT" ]
null
null
null
browserstack/first_sample_build.py
Shaimyst/scrive_test
38e3ea0192885d1776d24afdbea110d73adc4e8b
[ "MIT" ]
null
null
null
browserstack/first_sample_build.py
Shaimyst/scrive_test
38e3ea0192885d1776d24afdbea110d73adc4e8b
[ "MIT" ]
null
null
null
from threading import Thread from time import sleep from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWai...
42.166667
149
0.700044
0
0
0
0
0
0
0
0
1,141
0.501098
4a912235328cee2f8b87e2aaba4351c27f0e4c61
2,396
py
Python
sanitizers/mvj.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
1
2021-01-12T08:14:10.000Z
2021-01-12T08:14:10.000Z
sanitizers/mvj.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
249
2017-04-18T14:00:13.000Z
2022-03-30T12:18:03.000Z
sanitizers/mvj.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
7
2017-04-18T08:43:54.000Z
2021-07-28T07:29:30.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import random from random import choice from string import digits from faker import Faker fake = Faker("fi_FI") def sanitize_address(value): return fake.address() def sanitize_address_if_exist(value): if value: return sanitize_addres...
18.866142
79
0.736227
0
0
0
0
0
0
0
0
80
0.033389
4a914cd003bec02fcf0ace8e2f7e5de8208c8146
11,024
py
Python
ISM_catalog_profile/scripts/ISM/ISM.py
rhmdnd/compliance-trestle-demos
1d92c91cca1d23cf707f82f035b2d58ec67c953a
[ "Apache-2.0" ]
10
2021-09-03T05:07:19.000Z
2022-03-26T13:24:51.000Z
ISM_catalog_profile/scripts/ISM/ISM.py
rhmdnd/compliance-trestle-demos
1d92c91cca1d23cf707f82f035b2d58ec67c953a
[ "Apache-2.0" ]
null
null
null
ISM_catalog_profile/scripts/ISM/ISM.py
rhmdnd/compliance-trestle-demos
1d92c91cca1d23cf707f82f035b2d58ec67c953a
[ "Apache-2.0" ]
4
2021-12-14T22:15:06.000Z
2022-03-29T16:16:19.000Z
#!/usr/bin/env python3 # # -*- mode:python; coding:utf-8 -*- # Copyright (c) 2020 IBM Corp. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org...
42.4
119
0.642144
8,729
0.791818
0
0
0
0
0
0
4,076
0.369739
4a9299355672fcaae0c15f4927fbd9d0f9c5887b
642
py
Python
logistics/permissions.py
geo2tag-logistics/main
3b55185ea97481bbabe38497e4608abefbf1ece1
[ "Apache-2.0" ]
null
null
null
logistics/permissions.py
geo2tag-logistics/main
3b55185ea97481bbabe38497e4608abefbf1ece1
[ "Apache-2.0" ]
5
2016-09-25T20:01:43.000Z
2016-09-25T20:32:44.000Z
logistics/permissions.py
geo2tag-logistics/main
3b55185ea97481bbabe38497e4608abefbf1ece1
[ "Apache-2.0" ]
null
null
null
from rest_framework import permissions def is_owner(user): return user.groups.filter(name='OWNER').exists() def is_driver(user): return user.groups.filter(name='DRIVER').exists() class IsOwnerPermission(permissions.BasePermission): def has_permission(self, request, view): return is_owner(reque...
25.68
64
0.755452
442
0.688474
0
0
0
0
0
0
15
0.023364
4a92c1904e0ba01d29ac9f188cf088ddb5d2ab71
1,488
py
Python
src/python/reduce_fps_parallel.py
blancKaty/alignmentFralework_and_classif
192565a928dad0d98553e0602e91eed59c4a193d
[ "Apache-2.0" ]
null
null
null
src/python/reduce_fps_parallel.py
blancKaty/alignmentFralework_and_classif
192565a928dad0d98553e0602e91eed59c4a193d
[ "Apache-2.0" ]
null
null
null
src/python/reduce_fps_parallel.py
blancKaty/alignmentFralework_and_classif
192565a928dad0d98553e0602e91eed59c4a193d
[ "Apache-2.0" ]
1
2019-10-05T05:40:08.000Z
2019-10-05T05:40:08.000Z
import os import shutil import sys import multiprocessing import glob def copy(source, dest): shutil.copyfile(source, dest) def main(): input_folder = sys.argv[1] output_folder = sys.argv[2] print 'input reduce fps : ' , sys.argv fps = int(sys.argv[3]); final_length=float(sys.argv[4]) ; ...
24
72
0.608871
0
0
0
0
0
0
0
0
261
0.175403
4a93ca990a939c4bbe34b2ca2569173da90ecbc7
3,598
py
Python
ansible/utils/module_docs_fragments/docker.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2021-04-02T08:08:39.000Z
2021-04-02T08:08:39.000Z
ansible/utils/module_docs_fragments/docker.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
ansible/utils/module_docs_fragments/docker.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2020-05-03T01:13:16.000Z
2020-05-03T01:13:16.000Z
# This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed in the hope that ...
38.276596
118
0.660645
2,941
0.817399
0
0
0
0
0
0
3,521
0.978599
4a9405edbd8cfdcda2cba6e2d4bef4fc6c17c93b
806
py
Python
setup.py
cyberjunky/python-garminconnect-aio
fb913a15107edee5c5530f3bded7c553ec57923b
[ "MIT" ]
11
2021-06-08T14:55:33.000Z
2022-02-03T03:12:14.000Z
setup.py
cyberjunky/python-garminconnect-aio
fb913a15107edee5c5530f3bded7c553ec57923b
[ "MIT" ]
1
2021-08-07T09:24:35.000Z
2021-08-07T17:30:40.000Z
setup.py
cyberjunky/python-garminconnect-aio
fb913a15107edee5c5530f3bded7c553ec57923b
[ "MIT" ]
2
2021-06-04T15:34:22.000Z
2021-10-02T19:48:13.000Z
#!/usr/bin/env python from setuptools import setup with open("README.md") as readme_file: readme = readme_file.read() setup( author="Ron Klinkien", author_email="ron@cyberjunky.nl", classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", ...
29.851852
67
0.666253
0
0
0
0
0
0
0
0
418
0.51861
4a940fa45e0ab9b5f708abce624a09bc0ed42b1a
9,513
py
Python
nova/tests/unit/virt/libvirt/fake_imagebackend.py
ChameleonCloud/nova
4bb9421b02b71f2b218278aa6f97abace871b111
[ "Apache-2.0" ]
1
2016-07-18T22:05:01.000Z
2016-07-18T22:05:01.000Z
nova/tests/unit/virt/libvirt/fake_imagebackend.py
ChameleonCloud/nova
4bb9421b02b71f2b218278aa6f97abace871b111
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/libvirt/fake_imagebackend.py
ChameleonCloud/nova
4bb9421b02b71f2b218278aa6f97abace871b111
[ "Apache-2.0" ]
1
2021-11-12T03:55:41.000Z
2021-11-12T03:55:41.000Z
# Copyright 2012 Grid Dynamics # 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...
41.723684
79
0.654157
8,635
0.907705
0
0
377
0.03963
0
0
4,877
0.512667
4a94f180b8cf8188f6c73d72cff2209e4e3ba275
8,504
py
Python
tests/test_email_subscriptions.py
coolboi567/dnstwister
b809ca721a13efc6b59e11587c582f6ba4b11587
[ "Unlicense" ]
null
null
null
tests/test_email_subscriptions.py
coolboi567/dnstwister
b809ca721a13efc6b59e11587c582f6ba4b11587
[ "Unlicense" ]
null
null
null
tests/test_email_subscriptions.py
coolboi567/dnstwister
b809ca721a13efc6b59e11587c582f6ba4b11587
[ "Unlicense" ]
null
null
null
"""Tests of the email subscription mechanism.""" import binascii import flask_webtest import mock import pytest import webtest.app import dnstwister import dnstwister.tools import patches @mock.patch('dnstwister.views.www.email.emailer', patches.NoEmailer()) @mock.patch('dnstwister.repository.db', patch...
32.212121
118
0.688147
0
0
0
0
7,901
0.929092
0
0
2,163
0.254351
4a95eafd7882de8499fc568c3c76a78f53505995
6,671
py
Python
ershoufang/crawler_v2.py
zlikun/python-crawler-lianjia
7e7bf0cbd333486ee62ac015e72b96d6003c8713
[ "Apache-2.0" ]
2
2018-10-25T05:52:33.000Z
2021-12-22T06:39:30.000Z
ershoufang/crawler_v2.py
zlikun/python-crawler-lianjia
7e7bf0cbd333486ee62ac015e72b96d6003c8713
[ "Apache-2.0" ]
null
null
null
ershoufang/crawler_v2.py
zlikun/python-crawler-lianjia
7e7bf0cbd333486ee62ac015e72b96d6003c8713
[ "Apache-2.0" ]
2
2019-02-02T14:38:26.000Z
2020-07-21T01:57:17.000Z
""" 第二版:多进程二手房信息爬虫 1. 将爬虫分解为下载任务和解析任务(可以继续分解,但在本案中意义不大)两部分,两部分各使用一个子进程,相互通过数据管道通信 2. 下载任务内部不使用队列,使用任务管道实现(在多进程:主进程、子进程、子进程内部进程池等场景下,队列并不好用)任务管理和通信 3. 解析任务从与下载任务间的管道中获取数据,解析并保存 问题:当目标被爬完后,怎样让爬虫停止? """ import csv import datetime import logging import multiprocessing as mp import re import time from collections import O...
28.75431
115
0.582072
0
0
0
0
0
0
0
0
4,172
0.502348
4a960357ff5666b9fe043faf558321c7ac02d8e5
8,415
py
Python
desktop/core/ext-py/pyu2f-0.1.4/pyu2f/convenience/customauthenticator.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/pyu2f-0.1.4/pyu2f/convenience/customauthenticator.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
desktop/core/ext-py/pyu2f-0.1.4/pyu2f/convenience/customauthenticator.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
34.487705
80
0.684848
7,369
0.875698
0
0
0
0
0
0
3,570
0.424242
4a9667d37782748097516470365e83980101a92e
1,681
py
Python
kive/portal/management/commands/graph_kive.py
dmacmillan/Kive
76bc8f289f66fb133f78cb6d5689568b7d015915
[ "BSD-3-Clause" ]
1
2021-12-22T06:10:01.000Z
2021-12-22T06:10:01.000Z
kive/portal/management/commands/graph_kive.py
dmacmillan/Kive
76bc8f289f66fb133f78cb6d5689568b7d015915
[ "BSD-3-Clause" ]
null
null
null
kive/portal/management/commands/graph_kive.py
dmacmillan/Kive
76bc8f289f66fb133f78cb6d5689568b7d015915
[ "BSD-3-Clause" ]
null
null
null
import itertools import os from django.conf import settings from django.core.management import call_command from django.core.management.base import BaseCommand class Command(BaseCommand): help = 'Generates class diagrams.' def handle(self, *args, **options): if 'django_extensions' not in settings.IN...
38.204545
86
0.543129
1,517
0.902439
0
0
0
0
0
0
290
0.172516
4a971f56d894bd93c1e6642fd2fd7e799cec7a1d
8,543
py
Python
summary.py
rpls/openlane_summary
5057fab80a4acaf08e6503ced7abb932684145a5
[ "Apache-2.0" ]
null
null
null
summary.py
rpls/openlane_summary
5057fab80a4acaf08e6503ced7abb932684145a5
[ "Apache-2.0" ]
null
null
null
summary.py
rpls/openlane_summary
5057fab80a4acaf08e6503ced7abb932684145a5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import glob import csv import sys import re from shutil import which import datetime def is_tool(name): return which(name) is not None def check_path(path): paths = glob.glob(path) if len(paths) == 0: exit("file not found: %s" % path) if len(pa...
40.29717
164
0.628
0
0
0
0
0
0
0
0
2,868
0.335713
4a9a27b8be786f9438239fbfe717a4e94dce8571
992
py
Python
var/spack/repos/builtin/packages/py-cupy/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/py-cupy/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/py-cupy/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyCupy(PythonPackage): """CuPy is an open-source array library accelerated with NVIDIA...
35.428571
95
0.704637
771
0.777218
0
0
0
0
0
0
718
0.72379
4a9acf16b780b19cf351bb2d89e76f1956c1db38
1,742
py
Python
simple_rest_client/decorators.py
cfytrok/python-simple-rest-client
4896e8226ffe194625c63773ea6f49531293b308
[ "MIT" ]
null
null
null
simple_rest_client/decorators.py
cfytrok/python-simple-rest-client
4896e8226ffe194625c63773ea6f49531293b308
[ "MIT" ]
null
null
null
simple_rest_client/decorators.py
cfytrok/python-simple-rest-client
4896e8226ffe194625c63773ea6f49531293b308
[ "MIT" ]
null
null
null
import logging from functools import wraps import status from httpx import exceptions from .exceptions import AuthError, ClientConnectionError, ClientError, NotFoundError, ServerError logger = logging.getLogger(__name__) def validate_response(response): error_suffix = " response={!r}".format(response) if r...
29.033333
97
0.675086
0
0
0
0
312
0.179104
423
0.242824
117
0.067164
4a9ad45bc6d5f8001c81f4145b812d1bf0d096f9
100
py
Python
HPOBenchExperimentUtils/resource_manager/__init__.py
PhMueller/TrajectoryParser
9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f
[ "Apache-2.0" ]
null
null
null
HPOBenchExperimentUtils/resource_manager/__init__.py
PhMueller/TrajectoryParser
9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f
[ "Apache-2.0" ]
1
2021-09-01T16:35:21.000Z
2021-11-05T19:53:25.000Z
HPOBenchExperimentUtils/resource_manager/__init__.py
automl/HPOBenchExperimentUtils
9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f
[ "Apache-2.0" ]
null
null
null
from HPOBenchExperimentUtils.resource_manager.file_resource_manager import FileBasedResourceManager
50
99
0.94
0
0
0
0
0
0
0
0
0
0
4a9b559c6d7c0db14da8219dc9c4e053b7a27ff8
442
bzl
Python
tools/mirrors.bzl
kkiningh/slime
85853115e284bda35b3da10957823d23428b65d3
[ "Apache-2.0" ]
null
null
null
tools/mirrors.bzl
kkiningh/slime
85853115e284bda35b3da10957823d23428b65d3
[ "Apache-2.0" ]
null
null
null
tools/mirrors.bzl
kkiningh/slime
85853115e284bda35b3da10957823d23428b65d3
[ "Apache-2.0" ]
null
null
null
DEFAULT_MIRRORS = { "bitbucket": [ "https://bitbucket.org/{repository}/get/{commit}.tar.gz", ], "buildifier": [ "https://github.com/bazelbuild/buildtools/releases/download/{version}/{filename}", ], "github": [ "https://github.com/{repository}/archive/{commit}.tar.gz", ], ...
29.466667
98
0.58371
0
0
0
0
0
0
0
0
320
0.723982
4a9cb65121c1db2693bb70ca50a62adb977ff292
2,059
py
Python
201805_ChIP_ATAC/codes_old/read_txt.py
ScrippsPipkinLab/GenomeTracks
89824daceba82f7a52cf8a31149845548fe1aa76
[ "CC0-1.0" ]
null
null
null
201805_ChIP_ATAC/codes_old/read_txt.py
ScrippsPipkinLab/GenomeTracks
89824daceba82f7a52cf8a31149845548fe1aa76
[ "CC0-1.0" ]
2
2020-12-09T02:41:54.000Z
2020-12-09T02:45:43.000Z
201805_ChIP_ATAC/codes_old/read_txt.py
ScrippsPipkinLab/GenomeTracks
89824daceba82f7a52cf8a31149845548fe1aa76
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Jun 6 21:15:23 2017 @author: yolandatiao """ import csv import glob import os from astropy.io import ascii # For using ascii table to open csv from astropy.table import Table, Column # For using astropy table functions os.chdir("/Volumes/Huitian/...
21.226804
78
0.629432
0
0
0
0
0
0
0
0
600
0.291404
4a9cba0b5388d429f06edbee8329e6af7d50f140
674
py
Python
tests/test_vendcrawler.py
josetaas/vendcrawler
5cb497d0741f6dbd29a6e41fa9f1cb3374e8f062
[ "MIT" ]
null
null
null
tests/test_vendcrawler.py
josetaas/vendcrawler
5cb497d0741f6dbd29a6e41fa9f1cb3374e8f062
[ "MIT" ]
null
null
null
tests/test_vendcrawler.py
josetaas/vendcrawler
5cb497d0741f6dbd29a6e41fa9f1cb3374e8f062
[ "MIT" ]
null
null
null
import unittest from vendcrawler.scripts.vendcrawler import VendCrawler class TestVendCrawlerMethods(unittest.TestCase): def test_get_links(self): links = VendCrawler('a', 'b', 'c').get_links(2) self.assertEqual(links, ['https://sarahserver.net/?module=vendor&p=1', ...
32.095238
73
0.615727
551
0.817507
0
0
0
0
0
0
142
0.210682
4aa2559e81941797f8eb297eceb0ea501eab99d6
7,104
py
Python
services/spotify-service.py
thk4711/mediamanager
8f6d21c220767aa9ee5d65635d2993dba07eceed
[ "MIT" ]
null
null
null
services/spotify-service.py
thk4711/mediamanager
8f6d21c220767aa9ee5d65635d2993dba07eceed
[ "MIT" ]
null
null
null
services/spotify-service.py
thk4711/mediamanager
8f6d21c220767aa9ee5d65635d2993dba07eceed
[ "MIT" ]
1
2022-02-07T08:09:15.000Z
2022-02-07T08:09:15.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- import time import json import os import sys import time import urllib import socket import argparse import requests import lib.common as common base_url = 'http://localhost:24879/player/' #------------------------------------------------------------------------------# # ...
39.466667
91
0.366273
0
0
0
0
0
0
0
0
3,956
0.556869
4aa2c859139d7fe0cc49624a8f1cffa727776312
9,913
py
Python
Segment/models/other/fcn.py
YuHe0108/cvmodule
ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd
[ "Apache-2.0" ]
null
null
null
Segment/models/other/fcn.py
YuHe0108/cvmodule
ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd
[ "Apache-2.0" ]
null
null
null
Segment/models/other/fcn.py
YuHe0108/cvmodule
ea00a90fc9bbca5b2c7809791cbd1f7b0da526cd
[ "Apache-2.0" ]
null
null
null
# from tensorflow.keras import Model, Input # from tensorflow.keras.applications import vgg16, resnet50 # from tensorflow.keras.layers import (Conv2D, Conv2DTranspose, Cropping2D, add, Dropout, Reshape, Activation) # from tensorflow.keras import layers # import tensorflow as tf # # """ # FCN-8特点: # 1、不含全连接层...
42.182979
121
0.605468
0
0
0
0
0
0
0
0
8,530
0.765228
4aa366c3a95eb19c5533d5c2db8cc7a7e0760866
1,331
py
Python
tests/Python/test_all_configs_output.py
lopippo/IsoSpec
dfc6d7dac213f174fb9c61a5ee018d3f6174febc
[ "BSD-2-Clause" ]
27
2016-05-10T21:27:35.000Z
2022-03-30T08:11:36.000Z
tests/Python/test_all_configs_output.py
lopippo/IsoSpec
dfc6d7dac213f174fb9c61a5ee018d3f6174febc
[ "BSD-2-Clause" ]
30
2017-08-08T14:24:56.000Z
2022-03-30T12:44:11.000Z
tests/Python/test_all_configs_output.py
lopippo/IsoSpec
dfc6d7dac213f174fb9c61a5ee018d3f6174febc
[ "BSD-2-Clause" ]
10
2017-06-26T12:14:00.000Z
2020-11-01T13:45:14.000Z
def binom(n, k): """Quickly adapted from https://stackoverflow.com/questions/26560726/python-binomial-coefficient""" if k < 0 or k > n: return 0 if k == 0 or k == n: return 1 total_ways = 1 for i in range(min(k, n - k)): total_ways = total_ways * (n - i) // (i + 1) return...
28.319149
103
0.602554
0
0
0
0
0
0
0
0
310
0.232908
4aa38327240010c87a37f52f085b58c65fe79f76
5,090
py
Python
tractseg/models/UNet_Pytorch_Regression.py
soichih/TractSeg
f78d0c6dc998905e593cbf4346745467e30d1979
[ "Apache-2.0" ]
null
null
null
tractseg/models/UNet_Pytorch_Regression.py
soichih/TractSeg
f78d0c6dc998905e593cbf4346745467e30d1979
[ "Apache-2.0" ]
null
null
null
tractseg/models/UNet_Pytorch_Regression.py
soichih/TractSeg
f78d0c6dc998905e593cbf4346745467e30d1979
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Division of Medical Image Computing, German Cancer Research Center (DKFZ) # # 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 #...
40.07874
167
0.678978
3,912
0.768566
0
0
0
0
0
0
942
0.185069
4aa4605e775071451ff4f02953c5854fc600fb27
1,619
py
Python
platform/core/polyaxon/sidecar/sidecar/__main__.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/sidecar/sidecar/__main__.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/sidecar/sidecar/__main__.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
import argparse import time from kubernetes.client.rest import ApiException from polyaxon_client.client import PolyaxonClient from polyaxon_k8s.manager import K8SManager from sidecar import settings from sidecar.monitor import is_pod_running if __name__ == '__main__': parser = argparse.ArgumentParser() pars...
27.440678
79
0.6084
0
0
0
0
0
0
0
0
159
0.098209
4aa4e20dc8b2673c6655b3fbcb68df91576905a0
615
py
Python
simple_robot_tests/src/test_odometry.py
plusangel/simple_robot
d9ad5ed8cd592f4aee14df13465435279b4d60d7
[ "MIT" ]
1
2022-03-02T14:55:27.000Z
2022-03-02T14:55:27.000Z
simple_robot_tests/src/test_odometry.py
plusangel/simple_robot
d9ad5ed8cd592f4aee14df13465435279b4d60d7
[ "MIT" ]
null
null
null
simple_robot_tests/src/test_odometry.py
plusangel/simple_robot
d9ad5ed8cd592f4aee14df13465435279b4d60d7
[ "MIT" ]
null
null
null
#! /usr/bin/env python import rospy from nav_msgs.msg import Odometry class OdomTopicReader(object): def __init__(self, topic_name = '/odom'): self._topic_name = topic_name self._sub = rospy.Subscriber(self._topic_name, Odometry, self.topic_callback) self._odomdata = Odometry() def to...
26.73913
85
0.681301
339
0.55122
0
0
0
0
0
0
62
0.100813
4aa67ef1976bb462a8e4797f9376dea3623f23b3
4,432
py
Python
test/test_random.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
100
2020-12-01T02:40:12.000Z
2021-09-09T08:14:22.000Z
test/test_random.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
25
2021-01-05T00:16:17.000Z
2021-09-10T03:24:01.000Z
test/test_random.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
25
2020-12-01T19:07:08.000Z
2021-08-30T14:20:07.000Z
"""Tests for quantization""" import numpy as np import unittest import os import shutil import yaml import tensorflow as tf def build_fake_yaml(): fake_yaml = ''' model: name: fake_yaml framework: tensorflow inputs: x outputs: op_to_store dev...
32.115942
108
0.559792
1,257
0.283619
0
0
315
0.071074
0
0
1,168
0.263538
4aa6a27eafd16cd1848b1b408b9c5ae618566d25
43,229
py
Python
cirq/google/engine/engine_client_test.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
1
2020-04-06T17:06:10.000Z
2020-04-06T17:06:10.000Z
cirq/google/engine/engine_client_test.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
null
null
null
cirq/google/engine/engine_client_test.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
1
2020-04-14T15:29:29.000Z
2020-04-14T15:29:29.000Z
# Copyright 2020 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
39.478539
80
0.637373
0
0
0
0
41,858
0.968285
0
0
9,579
0.221587
4aa74af42d1bc1038ceab671898746be1f6af4af
3,163
py
Python
google/ads/google_ads/v0/proto/services/media_file_service_pb2_grpc.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v0/proto/services/media_file_service_pb2_grpc.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v0/proto/services/media_file_service_pb2_grpc.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.ads.google_ads.v0.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_media__file__pb2 from google.ads.google_ads.v0.proto.services import media_file_service_pb2 as google_dot...
48.661538
163
0.812204
1,666
0.526715
0
0
0
0
0
0
652
0.206133
4aa9aadd40d912fb75115061e304f8eab10a0530
15,044
py
Python
docs/generate_example_images.py
KhaledSharif/kornia
9bae28e032b092b065658117723a82816d09dbac
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/generate_example_images.py
KhaledSharif/kornia
9bae28e032b092b065658117723a82816d09dbac
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/generate_example_images.py
KhaledSharif/kornia
9bae28e032b092b065658117723a82816d09dbac
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import importlib import math import os from pathlib import Path from typing import Optional, Tuple import cv2 import numpy as np import requests import torch import kornia as K def read_img_from_url(url: str, resize_to: Optional[Tuple[int, int]] = None) -> torch.Tensor: # perform request response = requests...
42.982857
120
0.545865
0
0
0
0
0
0
0
0
4,151
0.275924
4aa9bb3cf3909a79588350f79db082251d5ab096
3,318
py
Python
forte/processors/data_augment/algorithms/embedding_similarity_replacement_op.py
Pushkar-Bhuse/forte
b7402330cf0b2b26fe56234f0ae43c89b31c0082
[ "Apache-2.0" ]
null
null
null
forte/processors/data_augment/algorithms/embedding_similarity_replacement_op.py
Pushkar-Bhuse/forte
b7402330cf0b2b26fe56234f0ae43c89b31c0082
[ "Apache-2.0" ]
null
null
null
forte/processors/data_augment/algorithms/embedding_similarity_replacement_op.py
Pushkar-Bhuse/forte
b7402330cf0b2b26fe56234f0ae43c89b31c0082
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Forte 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 applicable ...
36.065217
77
0.676311
2,358
0.710669
0
0
0
0
0
0
1,778
0.535865
4aa9bbcefe6db481163c6d0a501873756cbebc17
565
py
Python
src/sentry/receivers/experiments.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/sentry/receivers/experiments.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/sentry/receivers/experiments.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, absolute_import from sentry import analytics from sentry.signals import join_request_created, join_request_link_viewed @join_request_created.connect(weak=False) def record_join_request_created(member, **kwargs): analytics.record( "join_request.created", member_id=me...
33.235294
91
0.823009
0
0
0
0
400
0.707965
0
0
48
0.084956
4aaa0313e4b848ea3e028c07ae2b856db9916524
715
py
Python
arturtamborskipl/urls.py
arturtamborski/arturtamborskipl
9b93be045f58d5802d9a61568d7ecfbb12042b59
[ "MIT" ]
1
2017-05-05T12:01:43.000Z
2017-05-05T12:01:43.000Z
arturtamborskipl/urls.py
arturtamborski/arturtamborskipl
9b93be045f58d5802d9a61568d7ecfbb12042b59
[ "MIT" ]
null
null
null
arturtamborskipl/urls.py
arturtamborski/arturtamborskipl
9b93be045f58d5802d9a61568d7ecfbb12042b59
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin from django.views.generic import RedirectView from django.views.generic import TemplateView from django.contrib.sitemaps.views import sitemap from django.conf import settings from blog.sitemaps import ArticleSitemap urlpatterns = [ url(r'^...
29.791667
103
0.721678
0
0
0
0
0
0
0
0
121
0.169231
4aaa0768bd968c91cbf077505e1dc0e7ee6365c8
34,840
py
Python
ion_functions/qc/qc_functions.py
steinermg/ion-functions
cea532ad9af51e86768572c8deb48547d99567c5
[ "Apache-2.0" ]
10
2015-04-03T15:32:21.000Z
2018-11-21T11:57:26.000Z
ion_functions/qc/qc_functions.py
steinermg/ion-functions
cea532ad9af51e86768572c8deb48547d99567c5
[ "Apache-2.0" ]
8
2015-01-07T15:19:22.000Z
2015-12-08T18:14:04.000Z
ion_functions/qc/qc_functions.py
steinermg/ion-functions
cea532ad9af51e86768572c8deb48547d99567c5
[ "Apache-2.0" ]
17
2015-01-14T16:23:00.000Z
2021-07-19T08:26:52.000Z
#!/usr/bin/env python """ @package ion_functions.qc_functions @file ion_functions/qc_functions.py @author Christopher Mueller @brief Module containing QC functions ported from matlab samples in DPS documents """ from ion_functions.qc.qc_extensions import stuckvalues, spikevalues, gradientvalues, ntp_to_month import ...
37.746479
215
0.632319
0
0
0
0
0
0
0
0
20,431
0.586424
4aaa32daecbc845e7f79a56464fde4fa9e4bd81d
10,702
py
Python
datatest/__past__/api08.py
avshalomt2/datatest
f622b0e990b53c73f56730a9009b39af7653df20
[ "Apache-2.0" ]
null
null
null
datatest/__past__/api08.py
avshalomt2/datatest
f622b0e990b53c73f56730a9009b39af7653df20
[ "Apache-2.0" ]
null
null
null
datatest/__past__/api08.py
avshalomt2/datatest
f622b0e990b53c73f56730a9009b39af7653df20
[ "Apache-2.0" ]
null
null
null
"""Backward compatibility for version 0.8 API.""" from __future__ import absolute_import import inspect import datatest from datatest._compatibility import itertools from datatest._compatibility.collections.abc import Sequence from datatest._load.get_reader import get_reader from datatest._load.load_csv import load_cs...
36.03367
86
0.652775
3,851
0.359839
0
0
1,430
0.13362
0
0
2,038
0.190432
4aab427f1e96678aba34462ced9f7928129f2aef
7,288
py
Python
lib/reinteract/editor.py
jonkuhn/reinteract-jk
319c8d930f142cf3c3b8693fbff1b84fd582387c
[ "BSD-2-Clause" ]
1
2016-05-08T14:35:25.000Z
2016-05-08T14:35:25.000Z
lib/reinteract/editor.py
jonkuhn/reinteract-jk
319c8d930f142cf3c3b8693fbff1b84fd582387c
[ "BSD-2-Clause" ]
null
null
null
lib/reinteract/editor.py
jonkuhn/reinteract-jk
319c8d930f142cf3c3b8693fbff1b84fd582387c
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2008 Owen Taylor # # This file is part of Reinteract and distributed under the terms # of the BSD license. See the file COPYING in the Reinteract # distribution for full details. # ######################################################################## import os import gobject import gtk import pango fr...
29.387097
109
0.565587
6,748
0.925906
0
0
675
0.092618
0
0
858
0.117728
4aabc93bad87b0dbf891bc8cb36cc3c5cdca1038
5,975
py
Python
python/scripts/compare_events.py
tvogels01/arthur-redshift-etl
477f822d16cd3a86b3bf95cfa28915cb7470a6e4
[ "MIT" ]
null
null
null
python/scripts/compare_events.py
tvogels01/arthur-redshift-etl
477f822d16cd3a86b3bf95cfa28915cb7470a6e4
[ "MIT" ]
44
2021-11-22T02:18:41.000Z
2022-03-28T02:13:32.000Z
python/scripts/compare_events.py
tvogels01/arthur-redshift-etl
477f822d16cd3a86b3bf95cfa28915cb7470a6e4
[ "MIT" ]
null
null
null
""" This script compares events from two ETLs to highlight differences in elapsed times or row counts. * Pre-requisites You need to have a list of events for each ETL. Arthur can provide this using the "query_events" command. For example: ``` arthur.py query_events -p development 37ACEC7440AB4620 -q > 37ACEC7440AB46...
33.948864
101
0.654226
0
0
1,071
0.179247
0
0
0
0
2,223
0.37205
4aacfc97b162e67687e0053e093dc275ef1915a8
4,163
py
Python
harness/drifter.py
cmu-sei/augur-code
d8c1e29ce3276037b26b65ea316d251752529449
[ "BSD-3-Clause" ]
null
null
null
harness/drifter.py
cmu-sei/augur-code
d8c1e29ce3276037b26b65ea316d251752529449
[ "BSD-3-Clause" ]
null
null
null
harness/drifter.py
cmu-sei/augur-code
d8c1e29ce3276037b26b65ea316d251752529449
[ "BSD-3-Clause" ]
null
null
null
# Augur: A Step Towards Realistic Drift Detection in Production MLSystems - Code # Copyright 2022 Carnegie Mellon University. # # NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITH...
54.064935
513
0.764833
0
0
0
0
0
0
0
0
2,572
0.617675
4aadfd2d97ab81dd6472cc9d6d7741a3c62a553c
2,316
py
Python
server/server-flask/app/docs/admin/survey/survey.py
DSM-DMS/Project-DMS-Web
73a5d8fc2310bca90169414abf50f541ca0724c7
[ "MIT" ]
11
2017-07-04T07:44:07.000Z
2017-09-19T12:56:55.000Z
server/server-flask/app/docs/admin/survey/survey.py
DSM-DMS/DMS
73a5d8fc2310bca90169414abf50f541ca0724c7
[ "MIT" ]
null
null
null
server/server-flask/app/docs/admin/survey/survey.py
DSM-DMS/DMS
73a5d8fc2310bca90169414abf50f541ca0724c7
[ "MIT" ]
2
2017-10-23T06:11:16.000Z
2017-10-26T03:27:57.000Z
SURVEY_POST = { 'tags': ['설문조사 관리'], 'description': '설문조사 등록', 'parameters': [ { 'name': 'Authorization', 'description': 'JWT Token', 'in': 'header', 'type': 'str', 'required': True }, { 'name': 'title', ...
23.16
47
0.345423
0
0
0
0
0
0
0
0
1,178
0.4712
4aae62b164701dc61724cb01ba008cf15083826f
8,528
py
Python
network/baselines_archive/resnet_3d101.py
xuyu0010/ARID_v1
b03d0975f41547e8aa78929b8e26a62248f8e18f
[ "CC-BY-4.0" ]
5
2020-06-24T07:33:36.000Z
2021-11-30T17:52:08.000Z
network/baselines_archive/resnet_3d101.py
xuyu0010/ARID_v1
b03d0975f41547e8aa78929b8e26a62248f8e18f
[ "CC-BY-4.0" ]
1
2022-03-29T05:23:24.000Z
2022-03-29T06:19:57.000Z
network/baselines_archive/resnet_3d101.py
xuyu0010/ARID_v1
b03d0975f41547e8aa78929b8e26a62248f8e18f
[ "CC-BY-4.0" ]
3
2021-02-06T10:56:30.000Z
2022-01-18T18:50:12.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import math from functools import partial import logging import os try: from . import initializer from .utils import load_state except: import initializer from utils import load_state __all__ = ['Re...
31.238095
124
0.533654
6,747
0.791159
0
0
0
0
0
0
377
0.044207
4ab01eaed0874fd5f366410cee4ae62597dd8de5
4,167
py
Python
tests/ninety_nine_problems/test_miscellaneous_problems.py
gecBurton/inference_logic
2531d8f8fb0154b3bd42ac86eccc44d7038f6ef6
[ "MIT" ]
3
2020-10-19T20:35:24.000Z
2020-10-21T07:13:02.000Z
tests/ninety_nine_problems/test_miscellaneous_problems.py
gecBurton/inference_logic
2531d8f8fb0154b3bd42ac86eccc44d7038f6ef6
[ "MIT" ]
2
2020-11-10T16:54:13.000Z
2020-11-10T18:51:31.000Z
tests/ninety_nine_problems/test_miscellaneous_problems.py
gecBurton/inference_logic
2531d8f8fb0154b3bd42ac86eccc44d7038f6ef6
[ "MIT" ]
1
2020-10-21T07:13:14.000Z
2020-10-21T07:13:14.000Z
import pytest from inference_logic import Rule, Variable, search from inference_logic.data_structures import Assert, Assign @pytest.mark.xfail def test_90(): r""" P90 (**) Eight queens problem This is a classical problem in computer science. The objective is to place eight queens on a chessboard so ...
35.313559
88
0.538037
0
0
0
0
4,039
0.969282
0
0
2,569
0.616511
4ab03ce1ed84ecb90d03ef035bc80050cf57b143
4,856
py
Python
airbus_cobot_gui/src/airbus_cobot_gui/diagnostics/diagnostics.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
4
2017-10-15T23:32:24.000Z
2019-12-26T12:31:53.000Z
airbus_cobot_gui/src/airbus_cobot_gui/diagnostics/diagnostics.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
6
2017-09-05T13:52:00.000Z
2017-12-01T14:18:27.000Z
airbus_cobot_gui/src/airbus_cobot_gui/diagnostics/diagnostics.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
4
2017-09-04T08:14:36.000Z
2017-09-18T07:22:21.000Z
#!/usr/bin/env python # # Copyright 2015 Airbus # Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA) # # 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 # # ...
35.97037
150
0.691928
3,341
0.688015
0
0
0
0
0
0
1,483
0.305395
4ab09ca1eb1f8969f1a877484a232ef5df5d51ce
253
py
Python
sanansaattaja/website/forms/comment_form.py
KEZKA/YL-WEB-PROJECT
dcefb490bdd6a1ae8449b3cbd5d6b36219506e8f
[ "MIT" ]
3
2020-04-04T12:48:11.000Z
2020-05-03T04:12:34.000Z
sanansaattaja/website/forms/comment_form.py
KEZKA/YL-WEB-PROJECT
dcefb490bdd6a1ae8449b3cbd5d6b36219506e8f
[ "MIT" ]
null
null
null
sanansaattaja/website/forms/comment_form.py
KEZKA/YL-WEB-PROJECT
dcefb490bdd6a1ae8449b3cbd5d6b36219506e8f
[ "MIT" ]
3
2020-03-24T15:49:50.000Z
2020-05-04T14:00:27.000Z
from flask_wtf import FlaskForm from wtforms import SubmitField, TextAreaField from wtforms.validators import DataRequired class CommentForm(FlaskForm): text = TextAreaField("Text", validators=[DataRequired()]) submit = SubmitField('Publish')
28.111111
61
0.790514
127
0.501976
0
0
0
0
0
0
15
0.059289
4ab14530560ea0c6ff68422c45af6c1228280da2
758
py
Python
graphgallery/functional/dense/onehot.py
dongzizhu/GraphGallery
c65eab42daeb52de5019609fe7b368e30863b4ae
[ "MIT" ]
1
2020-07-29T08:00:32.000Z
2020-07-29T08:00:32.000Z
graphgallery/functional/dense/onehot.py
dongzizhu/GraphGallery
c65eab42daeb52de5019609fe7b368e30863b4ae
[ "MIT" ]
null
null
null
graphgallery/functional/dense/onehot.py
dongzizhu/GraphGallery
c65eab42daeb52de5019609fe7b368e30863b4ae
[ "MIT" ]
null
null
null
import numpy as np from ..transform import DenseTransform from ..decorators import multiple from ..transform import Transform __all__ = ['onehot', 'Onehot'] @Transform.register() class Onehot(DenseTransform): def __init__(self, depth=None): super().__init__() self.collect(locals()...
25.266667
84
0.634565
204
0.269129
0
0
580
0.765172
0
0
115
0.151715
4ab1c757764878f4d5cd5d264e6b8d82bbff63ba
12,893
py
Python
models.py
Bileonaire/api-ridemyway
af5a669c811356998e1935ace555ba955de1e8d0
[ "MIT" ]
null
null
null
models.py
Bileonaire/api-ridemyway
af5a669c811356998e1935ace555ba955de1e8d0
[ "MIT" ]
null
null
null
models.py
Bileonaire/api-ridemyway
af5a669c811356998e1935ace555ba955de1e8d0
[ "MIT" ]
1
2018-10-20T12:00:53.000Z
2018-10-20T12:00:53.000Z
"""Handles data storage for Users, rides and requests """ # pylint: disable=E1101 import datetime from flask import make_response, jsonify, current_app from werkzeug.security import generate_password_hash import psycopg2 import config from databasesetup import db class User(): """Contains user columns and method...
39.307927
173
0.556891
12,617
0.978593
0
0
10,404
0.80695
0
0
3,437
0.266579
4ab3a002c74475748d23b9510c6318a19949f281
752
py
Python
lesson06/liqi/test.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson06/liqi/test.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson06/liqi/test.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
import configparser ''' config = configparser.ConfigParser() config.read('db.ini') print(config.sections()) print(dict(config['mysqld'])['symbolic-links']) ''' def ReadConfig(filename, section, key=None): print(filename) config = configparser.ConfigParser() config.read(filename) print(config.section...
22.117647
53
0.640957
0
0
0
0
0
0
0
0
224
0.297872
4ab3ac9ae685aecfb387f1a734cc96132d725108
1,947
py
Python
core/forms.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
core/forms.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
core/forms.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Forms wrapper # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ------------------------------------------------------------------...
32.45
83
0.558295
1,473
0.756549
178
0.091423
0
0
0
0
544
0.279404
4ab43c897df779b46c4155028b30eff4d2ad17d1
1,990
py
Python
ersteops/unit/views.py
Prescrypto/ErsteOps
0b744173fb4f500003c96c4dcb26fb67d6eaa5ec
[ "MIT" ]
null
null
null
ersteops/unit/views.py
Prescrypto/ErsteOps
0b744173fb4f500003c96c4dcb26fb67d6eaa5ec
[ "MIT" ]
33
2017-11-24T19:44:57.000Z
2022-02-12T07:02:53.000Z
ersteops/unit/views.py
Prescrypto/ErsteOps
0b744173fb4f500003c96c4dcb26fb67d6eaa5ec
[ "MIT" ]
1
2017-12-11T09:15:04.000Z
2017-12-11T09:15:04.000Z
import json from django.shortcuts import get_object_or_404 from django.core import serializers from django.http import HttpResponse from .models import Unit from .utils import UNIT_LIST_FIELD BAD_REQUEST = HttpResponse(json.dumps({'error': 'Bad Request'}), status=400, content_type='application/json') def unit_json_li...
39.019608
123
0.665327
0
0
0
0
0
0
0
0
396
0.198995
4ab456260f6c742ad312aaa99e3e2590ddc0675c
731
py
Python
olamundo.py/exercicios_refeitos/ex029.py
gabrielviticov/exercicios-python
4068cb0029513f8ab8bd12fa3a9055f37b4040d4
[ "MIT" ]
null
null
null
olamundo.py/exercicios_refeitos/ex029.py
gabrielviticov/exercicios-python
4068cb0029513f8ab8bd12fa3a9055f37b4040d4
[ "MIT" ]
null
null
null
olamundo.py/exercicios_refeitos/ex029.py
gabrielviticov/exercicios-python
4068cb0029513f8ab8bd12fa3a9055f37b4040d4
[ "MIT" ]
null
null
null
''' ex029: Escreva um programa que leia a velocidade de uma carro. Se ele ultrapassar 80 km/h, mostre uma mensagem dizendo que ele foi multado. A multa vai custar R$ 7,00 por cada Km acima do limite. ''' from colorise import set_color, reset_color cor = { 'limpa':'\033[m', 'white':'\033[1;97m' } set_color(fg='...
36.55
195
0.679891
0
0
0
0
0
0
0
0
436
0.594005
4ab62b5efbeb5c0a7886f27f8824551ce65f3eab
256
py
Python
fruit/mixin/drawable.py
felko/fruit
4768fd333ac3b7c0bd6d339304b23e20e312d2d1
[ "MIT" ]
4
2017-06-14T14:50:05.000Z
2019-07-29T16:51:24.000Z
fruit/mixin/drawable.py
felko/fruit
4768fd333ac3b7c0bd6d339304b23e20e312d2d1
[ "MIT" ]
null
null
null
fruit/mixin/drawable.py
felko/fruit
4768fd333ac3b7c0bd6d339304b23e20e312d2d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.4 # coding: utf-8 class Drawable: """ Base class for drawable objects. """ def draw(self): """ Returns a Surface object. """ raise NotImplementedError( "Method `draw` is not implemented for {}".format(type(self)))
15.058824
64
0.648438
212
0.828125
0
0
0
0
0
0
159
0.621094
4ab74d6454f4022c0cd33cf7aa9d2924c227290a
2,394
py
Python
src/action/tests/test_logic.py
uts-cic/ontask_b
b313e2352c77b40655f41dd5acba3a7635e6f3b3
[ "MIT" ]
3
2018-08-24T10:48:40.000Z
2020-05-29T06:33:23.000Z
src/action/tests/test_logic.py
Lukahm/ontask
f16bdaa06ea450ee56d4581340e611b1076bed16
[ "MIT" ]
null
null
null
src/action/tests/test_logic.py
Lukahm/ontask
f16bdaa06ea450ee56d4581340e611b1076bed16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import os from django.conf import settings from django.shortcuts import reverse from django.core.management import call_command import test from dataops import pandas_db from workflow.models import Workflow class EmailActionTracking(te...
38.612903
202
0.704678
2,101
0.877611
0
0
139
0.058062
0
0
1,020
0.426065
4ab90259acfbeda3412addc434ad2001de65b77a
5,371
py
Python
obniz/parts/Moving/StepperMotor/__init__.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
11
2019-03-22T12:02:11.000Z
2021-01-21T04:57:18.000Z
obniz/parts/Moving/StepperMotor/__init__.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
5
2019-03-02T08:28:25.000Z
2021-02-02T22:06:37.000Z
obniz/parts/Moving/StepperMotor/__init__.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
3
2019-07-20T06:55:09.000Z
2019-12-04T05:05:00.000Z
from attrdict import AttrDefault import asyncio class StepperMotor: def __init__(self): self.keys = ['a', 'b', 'aa', 'bb', 'common'] self.required_keys = ['a', 'b', 'aa', 'bb'] self._step_instructions = AttrDefault(bool, { '1': [[0, 1, 1, 1], [1, 0, 1, 1], [1, 1...
37.559441
135
0.571216
5,321
0.990691
0
0
88
0.016384
3,136
0.583876
159
0.029603
4ab990bdf241333adbd85027e848b2433fdf4b53
52
py
Python
basic_assignment/39.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
basic_assignment/39.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
basic_assignment/39.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
input_num = raw_input() print(str(eval(input_num)))
17.333333
27
0.75
0
0
0
0
0
0
0
0
0
0
4ab9a2726c38f9bfc3c6566bc523e4832e60605f
2,808
py
Python
website/website/apps/entry/admin.py
SimonGreenhill/Language5
c59f502dda7be27fc338f0338cc3b03e63bad9c8
[ "MIT" ]
1
2020-08-17T05:56:16.000Z
2020-08-17T05:56:16.000Z
website/website/apps/entry/admin.py
SimonGreenhill/Language5
c59f502dda7be27fc338f0338cc3b03e63bad9c8
[ "MIT" ]
5
2020-06-05T17:51:56.000Z
2022-01-13T00:42:51.000Z
website/website/apps/entry/admin.py
SimonGreenhill/Language5
c59f502dda7be27fc338f0338cc3b03e63bad9c8
[ "MIT" ]
1
2015-02-23T22:54:00.000Z
2015-02-23T22:54:00.000Z
from django.contrib import admin from django.db.models import Count from reversion.admin import VersionAdmin from website.apps.lexicon.models import Lexicon from website.apps.entry.models import Task, TaskLog, Wordlist, WordlistMember from website.apps.core.admin import TrackedModelAdmin class CheckpointListFilter(adm...
33.428571
103
0.666667
2,344
0.834758
0
0
0
0
0
0
879
0.313034
4abb4683ee2e4ff41f7985424a94c70975cdae94
356
py
Python
src/modules/python.py
fest2bash/fest2bash
008282f67d4d4415c27b3b9b6162daf54f8d6028
[ "MIT" ]
null
null
null
src/modules/python.py
fest2bash/fest2bash
008282f67d4d4415c27b3b9b6162daf54f8d6028
[ "MIT" ]
null
null
null
src/modules/python.py
fest2bash/fest2bash
008282f67d4d4415c27b3b9b6162daf54f8d6028
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import re import sys sys.dont_write_bytecode = True from pprint import pprint from base import BaseFest2Bash class Fest2Bash(BaseFest2Bash): def __init__(self, manifest): super(Fest2Bash, self).__init__(manifest) def generate(self, *args, **kw...
19.777778
49
0.710674
185
0.519663
0
0
0
0
0
0
45
0.126404
4abb8389f46537b21c77c0aa5024c68649d338e4
2,241
py
Python
opennem/utils/scrapyd.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
22
2020-06-30T05:27:21.000Z
2022-02-21T12:13:51.000Z
opennem/utils/scrapyd.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
71
2020-08-07T13:06:30.000Z
2022-03-15T06:44:49.000Z
opennem/utils/scrapyd.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
13
2020-06-30T03:28:32.000Z
2021-12-30T08:17:16.000Z
#!/usr/bin/env python """ Srapyd control methods """ import logging from typing import Any, Dict, List from urllib.parse import urljoin from opennem.settings import settings from opennem.utils.http import http from opennem.utils.scrapy import get_spiders logger = logging.getLogger("scrapyd.client") def get_jobs() ...
23.103093
87
0.635431
0
0
0
0
0
0
0
0
405
0.180723
4abeb59415a08109665cd4a0b2b19c7296f2ab4d
6,316
py
Python
src/abaqus/Material/Elastic/Linear/Elastic.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
7
2022-01-21T09:15:45.000Z
2022-02-15T09:31:58.000Z
src/abaqus/Material/Elastic/Linear/Elastic.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
src/abaqus/Material/Elastic/Linear/Elastic.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
from abaqusConstants import * from .FailStrain import FailStrain from .FailStress import FailStress class Elastic: """The Elastic object specifies elastic material properties. Notes ----- This object can be accessed by: .. code-block:: python import material ...
32.22449
103
0.572198
6,213
0.983692
0
0
0
0
0
0
5,754
0.91102
4abedd6e3a784e93e18495ecbb7c4ea6ddcaa98a
3,255
py
Python
apps/pyscrabble/pyscrabble-hatchet/setup.py
UWSysLab/diamond
1beec323c084d9d477c770ca6b9625c8f5682a39
[ "MIT" ]
19
2016-08-22T23:54:24.000Z
2021-03-19T08:08:35.000Z
apps/pyscrabble/pyscrabble-hatchet/setup.py
UWSysLab/diamond
1beec323c084d9d477c770ca6b9625c8f5682a39
[ "MIT" ]
3
2020-12-02T18:29:32.000Z
2021-06-23T20:26:09.000Z
apps/pyscrabble/pyscrabble-hatchet/setup.py
UWSysLab/diamond
1beec323c084d9d477c770ca6b9625c8f5682a39
[ "MIT" ]
5
2017-01-25T19:31:49.000Z
2018-07-25T05:08:19.000Z
# setup.py for pyscrabble from distutils.core import setup try: import py2exe HAS_PY2EXE = True except ImportError: HAS_PY2EXE = False import glob import os import pkg_resources import sys from pyscrabble.constants import VERSION from pyscrabble import util from pyscrabble import dist def fi...
37.848837
118
0.580031
0
0
0
0
0
0
0
0
1,496
0.459601
4abf6af83131868287dda032df11a21439ed9d49
1,164
py
Python
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial1_Solution_437c0b24.py
liuxiaomiao123/NeuroMathAcademy
16a7969604a300bf9fbb86f8a5b26050ebd14c65
[ "CC-BY-4.0" ]
2
2020-07-03T04:39:09.000Z
2020-07-12T02:08:31.000Z
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial1_Solution_437c0b24.py
NinaHKivanani/course-content
3c91dd1a669cebce892486ba4f8086b1ef2e1e49
[ "CC-BY-4.0" ]
1
2020-06-22T22:57:03.000Z
2020-06-22T22:57:03.000Z
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial1_Solution_437c0b24.py
NinaHKivanani/course-content
3c91dd1a669cebce892486ba4f8086b1ef2e1e49
[ "CC-BY-4.0" ]
1
2021-03-29T21:08:26.000Z
2021-03-29T21:08:26.000Z
def integrate_exponential(a, x0, dt, T): """Compute solution of the differential equation xdot=a*x with initial condition x0 for a duration T. Use time step dt for numerical solution. Args: a (scalar): parameter of xdot (xdot=a*x) x0 (scalar): initial condition (x at time 0) dt (scalar): timeste...
27.714286
80
0.640893
0
0
0
0
0
0
0
0
725
0.622852
4abf7b9f84deaebd77faef58a9ebbc8bcdd69360
1,199
py
Python
PyTemp/gis/shapefile_to_geojson.py
SwaggerKhan/PatrolGis
89b1a398ffd6171ac35ea9d023bce98a0fc7e930
[ "MIT" ]
null
null
null
PyTemp/gis/shapefile_to_geojson.py
SwaggerKhan/PatrolGis
89b1a398ffd6171ac35ea9d023bce98a0fc7e930
[ "MIT" ]
null
null
null
PyTemp/gis/shapefile_to_geojson.py
SwaggerKhan/PatrolGis
89b1a398ffd6171ac35ea9d023bce98a0fc7e930
[ "MIT" ]
null
null
null
import json import geojson import geopandas as gpd class SaveToGeoJSON: __name_counter = 0 def file_name(self): if self.__name_counter == 0: self.__name_counter = 1 return "./out"+str(self.__name_counter)+".json" elif self.__name_counter == 1: self.__name_co...
31.552632
95
0.605505
1,136
0.947456
0
0
0
0
0
0
124
0.10342
4abf8e0a8ee60fe90e1a20e373c9a2a3d84d695d
3,504
py
Python
ssbio/databases/pdbflex.py
JoshuaMeyers/ssbio
624618602437e2c2e4adf90962adcef3af2d5b40
[ "MIT" ]
76
2017-03-06T02:50:38.000Z
2022-02-08T08:08:48.000Z
ssbio/databases/pdbflex.py
JoshuaMeyers/ssbio
624618602437e2c2e4adf90962adcef3af2d5b40
[ "MIT" ]
30
2017-03-09T14:54:05.000Z
2021-10-06T10:57:45.000Z
ssbio/databases/pdbflex.py
JoshuaMeyers/ssbio
624618602437e2c2e4adf90962adcef3af2d5b40
[ "MIT" ]
21
2017-09-01T23:00:31.000Z
2022-02-23T14:04:30.000Z
import requests import ssbio.utils import os.path as op # #### PDB stats # Request flexibility data about one particular PDB. # # http://pdbflex.org/php/api/PDBStats.php?pdbID=1a50&chainID=A # # pdbID of structure you are interested in # chainID of chain you are interested in # # [{"pdbID":"1a50", # ...
40.275862
161
0.627854
0
0
0
0
0
0
0
0
1,907
0.544235
4abff12be5f57f68704691116cfaac62253e2192
1,065
py
Python
api/insights/insights/infrastructure/mysql/read/modify_notes.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
api/insights/insights/infrastructure/mysql/read/modify_notes.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
api/insights/insights/infrastructure/mysql/read/modify_notes.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
""" Modify Notes """ # pylint: disable=too-few-public-methods from ...mysql.mysql_connection import MySqlConnection from ...mysql.orm.autogen_entities import Task class ModifyNotes(object): """ ModifyNotes responsible to update the record in db """ def __init__(self, db_name, notes_id, title=None, co...
29.583333
68
0.642254
898
0.843192
0
0
0
0
0
0
235
0.220657
4ac08cf9f315cf058d8ec6ec1e3e396023b3a1de
1,834
py
Python
desktop/core/ext-py/pyasn1-0.4.6/tests/type/test_namedval.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/pyasn1-0.4.6/tests/type/test_namedval.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/pyasn1-0.4.6/tests/type/test_namedval.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# # This file is part of pyasn1 software. # # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pyasn1/license.html # import sys try: import unittest2 as unittest except ImportError: import unittest from tests.base import BaseTestCase from pyasn1.type import namedval ...
31.084746
96
0.598691
1,357
0.739913
0
0
0
0
0
0
296
0.161396
4ac2c45edfed557313913a01b6d6e982c2b62143
858
py
Python
setup.py
methane/pymemcache
0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f
[ "Apache-2.0" ]
null
null
null
setup.py
methane/pymemcache
0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f
[ "Apache-2.0" ]
null
null
null
setup.py
methane/pymemcache
0ff5430cdcef7ed52fb3edc2a90c1c7d208ad77f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages from pymemcache import __version__ setup( name = 'pymemcache', version = __version__, author = 'Charles Gordon', author_email = 'charles@pinterest.com', packages = find_packages(), tests_require = ['nose>=1.0'], install_req...
29.586207
72
0.632867
0
0
0
0
0
0
0
0
433
0.504662
4ac2c549f6e7bc96012e6af6cdb10885c9451aa4
543
py
Python
torch_geometric/read/ply.py
DL-85/pytorch_geometric
eb12a94a667e881c4a6bff26b0453428bcb72393
[ "MIT" ]
2
2019-10-10T07:01:07.000Z
2020-11-04T06:26:42.000Z
torch_geometric/read/ply.py
cloudyyyyy/pytorch_geometric
61d389b5f8ee700dda4d18cadca72f24c978fce1
[ "MIT" ]
null
null
null
torch_geometric/read/ply.py
cloudyyyyy/pytorch_geometric
61d389b5f8ee700dda4d18cadca72f24c978fce1
[ "MIT" ]
1
2019-10-31T01:15:03.000Z
2019-10-31T01:15:03.000Z
import torch from plyfile import PlyData from torch_geometric.data import Data def read_ply(path): with open(path, 'rb') as f: data = PlyData.read(f) pos = ([torch.tensor(data['vertex'][axis]) for axis in ['x', 'y', 'z']]) pos = torch.stack(pos, dim=-1) face = None if 'face' in data: ...
23.608696
76
0.607735
0
0
0
0
0
0
0
0
49
0.090239
4ac4732c076aba6b6bc386af069168643221a2c1
2,679
py
Python
ml-agents/mlagents/trainers/brain_conversion_utils.py
ranguera/ml-agents
68779b407b32fce2ea14b16ef1bc26dea7d5e5a8
[ "Apache-2.0" ]
2
2019-12-13T22:00:11.000Z
2019-12-14T00:47:32.000Z
ml-agents/mlagents/trainers/brain_conversion_utils.py
almartson/ml-agents
ee748705b777ddd365c55065366e83596c615811
[ "Apache-2.0" ]
null
null
null
ml-agents/mlagents/trainers/brain_conversion_utils.py
almartson/ml-agents
ee748705b777ddd365c55065366e83596c615811
[ "Apache-2.0" ]
null
null
null
from mlagents.trainers.brain import BrainInfo, BrainParameters, CameraResolution from mlagents.envs.base_env import BatchedStepResult, AgentGroupSpec from mlagents.envs.exception import UnityEnvironmentException import numpy as np from typing import List def step_result_to_brain_info( step_result: BatchedStepResu...
37.732394
87
0.670773
0
0
0
0
0
0
0
0
143
0.053378
4ac65a293f32905c196e86dcfb72e76e3b1b85d2
853
py
Python
mrdc_ws/src/mrdc_serial/setup.py
SoonerRobotics/MRDC22
00c1360138e468bf313eefc93fbde11f289ece82
[ "MIT" ]
null
null
null
mrdc_ws/src/mrdc_serial/setup.py
SoonerRobotics/MRDC22
00c1360138e468bf313eefc93fbde11f289ece82
[ "MIT" ]
1
2021-12-01T01:21:22.000Z
2021-12-01T01:21:22.000Z
mrdc_ws/src/mrdc_serial/setup.py
SoonerRobotics/MRDC22
00c1360138e468bf313eefc93fbde11f289ece82
[ "MIT" ]
1
2021-09-28T23:43:07.000Z
2021-09-28T23:43:07.000Z
from setuptools import find_packages, setup from glob import glob import os package_name = 'mrdc_serial' setup( name=package_name, version='1.0.0', packages=find_packages(), data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + p...
28.433333
85
0.630715
0
0
0
0
0
0
0
0
341
0.399766
4ac74e03723bd148ef8b0804cbefc4d25af183f4
2,577
py
Python
orders/views.py
DobromirZlatkov/anteya
9c66c64643350ad1710bcf60e2e38169e389a66b
[ "MIT" ]
null
null
null
orders/views.py
DobromirZlatkov/anteya
9c66c64643350ad1710bcf60e2e38169e389a66b
[ "MIT" ]
null
null
null
orders/views.py
DobromirZlatkov/anteya
9c66c64643350ad1710bcf60e2e38169e389a66b
[ "MIT" ]
null
null
null
from django.core.urlresolvers import reverse_lazy from django.views import generic from django.shortcuts import redirect, render from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from . import forms from . import models from custommixins import mixins class OrderView(generic.V...
37.897059
102
0.67404
2,272
0.881645
0
0
0
0
0
0
258
0.100116
43493e4caf41318515d94514d68ea22bde6fccc6
5,219
py
Python
PytorchRouting/Examples/run_experiments.py
oleksost/RoutingNetworks
7e3e9219b7389d5af2a832a4882bc9fda0e7fd21
[ "Apache-2.0" ]
63
2018-07-19T20:12:55.000Z
2022-03-31T14:59:37.000Z
PytorchRouting/Examples/run_experiments.py
oleksost/RoutingNetworks
7e3e9219b7389d5af2a832a4882bc9fda0e7fd21
[ "Apache-2.0" ]
2
2019-08-08T18:28:13.000Z
2019-09-24T16:46:22.000Z
PytorchRouting/Examples/run_experiments.py
oleksost/RoutingNetworks
7e3e9219b7389d5af2a832a4882bc9fda0e7fd21
[ "Apache-2.0" ]
16
2018-07-25T05:56:51.000Z
2021-01-09T02:47:05.000Z
""" This file defines some simple experiments to illustrate how Pytorch-Routing functions. """ import numpy as np import tqdm import torch from PytorchRouting.DecisionLayers import REINFORCE, QLearning, SARSA, ActorCritic, GumbelSoftmax, PerTaskAssignment, \ WPL, AAC, AdvantageLearning, RELAX, EGreedyREINFORCE, EGr...
46.185841
119
0.650699
0
0
0
0
0
0
0
0
1,366
0.261736
434a5580172de0ca0736b7166ab6de48eed316fe
121
py
Python
output/models/ms_data/regex/re_g22_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/re_g22_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/re_g22_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.regex.re_g22_xsd.re_g22 import ( Regex, Doc, ) __all__ = [ "Regex", "Doc", ]
12.1
59
0.603306
0
0
0
0
0
0
0
0
12
0.099174
434b79d3907786ef5e26df8cc123133e8b35acdc
6,670
py
Python
code/image-manipulation.py
rgeirhos/object-recognition
4679f7c60665bd9fb274c6c4372fc0fa34b51485
[ "CC-BY-4.0" ]
33
2017-06-22T21:51:25.000Z
2021-09-03T01:59:58.000Z
code/image-manipulation.py
rgeirhos/object-recognition
4679f7c60665bd9fb274c6c4372fc0fa34b51485
[ "CC-BY-4.0" ]
null
null
null
code/image-manipulation.py
rgeirhos/object-recognition
4679f7c60665bd9fb274c6c4372fc0fa34b51485
[ "CC-BY-4.0" ]
20
2017-06-24T01:48:19.000Z
2021-05-12T08:41:23.000Z
#!/usr/bin/env python from skimage.color import rgb2gray from skimage.io import imread, imsave from scipy.misc import toimage import numpy as np import wrapper as wr ########################################################### # IMAGE IO ########################################################### def imload_rgb(pa...
31.913876
75
0.556822
0
0
0
0
0
0
0
0
3,879
0.581559
434c335f1ca44ae4f15f8789642b629548cea61b
659
py
Python
students/K33402/Akhmetzhanov Alisher/lr2/main/forms.py
AlishKZ/ITMO_ICT_WebDevelopment_2020-2021
b3ce82e17392d26d815e64343f5103f1bd46cd81
[ "MIT" ]
null
null
null
students/K33402/Akhmetzhanov Alisher/lr2/main/forms.py
AlishKZ/ITMO_ICT_WebDevelopment_2020-2021
b3ce82e17392d26d815e64343f5103f1bd46cd81
[ "MIT" ]
null
null
null
students/K33402/Akhmetzhanov Alisher/lr2/main/forms.py
AlishKZ/ITMO_ICT_WebDevelopment_2020-2021
b3ce82e17392d26d815e64343f5103f1bd46cd81
[ "MIT" ]
null
null
null
from django.db.models import fields from main.models import RoomReservation, UserRoom from django import forms from django.core.exceptions import ValidationError from django.contrib.auth import authenticate, login from django.contrib.auth import get_user_model class ReservateRoomForm(forms.Form): begin_date = for...
31.380952
75
0.775417
391
0.593323
0
0
0
0
0
0
22
0.033384
434cb653784b20b7295c5b100050122451d7d139
4,855
py
Python
emmet-core/emmet/core/vasp/calc_types.py
espottesmith/emmet
bd28b91d240da9f0c996a2b2efb7e67da9176a09
[ "BSD-3-Clause-LBNL" ]
null
null
null
emmet-core/emmet/core/vasp/calc_types.py
espottesmith/emmet
bd28b91d240da9f0c996a2b2efb7e67da9176a09
[ "BSD-3-Clause-LBNL" ]
78
2020-11-16T06:46:43.000Z
2022-03-28T03:02:51.000Z
emmet-core/emmet/core/vasp/calc_types.py
utf/emmet
27a51a7ad4c300e280de5ba9b59a311dd77cffdd
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" Module to define various calculation types as Enums for VASP """ import datetime from itertools import groupby, product from pathlib import Path from typing import Dict, Iterator, List import bson import numpy as np from monty.json import MSONable from monty.serialization import loadfn from pydantic import BaseMod...
28.391813
98
0.618332
0
0
0
0
0
0
0
0
1,609
0.331411
434cd47f7ba08d7cc16a2a4b4b972a8099060404
207
py
Python
sensors/__init__.py
dawnos/robotcar-to-rosbag
c51035d7fd7e08487629a9b06d84a86890f7cc03
[ "MIT" ]
null
null
null
sensors/__init__.py
dawnos/robotcar-to-rosbag
c51035d7fd7e08487629a9b06d84a86890f7cc03
[ "MIT" ]
null
null
null
sensors/__init__.py
dawnos/robotcar-to-rosbag
c51035d7fd7e08487629a9b06d84a86890f7cc03
[ "MIT" ]
null
null
null
from mono_left import MonoLeft from mono_right import MonoRight from mono_rear import MonoRear from stereo_left import StereoLeft from stereo_right import StereoRight from stereo_centre import StereoCentre
25.875
38
0.879227
0
0
0
0
0
0
0
0
0
0
434df89c1b80cf68699882387250cf1a06bd4617
4,165
py
Python
models/train_classifier.py
YiWang-Evonne/disaster_response
824f646920ac85a01419101e17e92f592a505782
[ "MIT" ]
null
null
null
models/train_classifier.py
YiWang-Evonne/disaster_response
824f646920ac85a01419101e17e92f592a505782
[ "MIT" ]
null
null
null
models/train_classifier.py
YiWang-Evonne/disaster_response
824f646920ac85a01419101e17e92f592a505782
[ "MIT" ]
null
null
null
import sys import pandas as pd from sqlalchemy import create_engine import nltk nltk.download(['punkt', 'wordnet', 'averaged_perceptron_tagger']) import re from nltk.tokenize import word_tokenize from nltk.stem import WordNetLemmatizer from sklearn.metrics import classification_report from sklearn.metrics import confus...
30.181159
96
0.657143
0
0
0
0
0
0
0
0
1,343
0.322449
434e153d430f769d0af982184da673ab7f398f75
6,213
py
Python
terra/terra/emails.py
dymaxionlabs/platform
98fe893d4632d62fea3e2357f16d970014037cdf
[ "BSD-3-Clause" ]
null
null
null
terra/terra/emails.py
dymaxionlabs/platform
98fe893d4632d62fea3e2357f16d970014037cdf
[ "BSD-3-Clause" ]
null
null
null
terra/terra/emails.py
dymaxionlabs/platform
98fe893d4632d62fea3e2357f16d970014037cdf
[ "BSD-3-Clause" ]
null
null
null
import os from datetime import date from django.conf import settings from django.core.mail import send_mail from django.template.loader import render_to_string from django.utils import translation from django.utils.translation import ugettext as _ from mailchimp3 import MailChimp class Email: from_email = settin...
27.860987
77
0.600998
5,783
0.93079
0
0
3,895
0.626911
0
0
935
0.150491
434e8c387b837394ff0f03da5e59c67d77ad7f7c
7,456
py
Python
experimental/attentive_uncertainty/toy_regression/datasets.py
miksu/edward2
973acdb23701f320ebaee8a56fc44d4414acfa4e
[ "Apache-2.0" ]
null
null
null
experimental/attentive_uncertainty/toy_regression/datasets.py
miksu/edward2
973acdb23701f320ebaee8a56fc44d4414acfa4e
[ "Apache-2.0" ]
null
null
null
experimental/attentive_uncertainty/toy_regression/datasets.py
miksu/edward2
973acdb23701f320ebaee8a56fc44d4414acfa4e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Edward2 Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
37.467337
80
0.666309
6,471
0.867892
0
0
0
0
0
0
3,627
0.486454
434ee97c218201d658ac3ee9f3df8bd8d8383c79
1,287
py
Python
critiquebrainz/frontend/views/index.py
shagun6/critiquebrainz
b7ae41fb09ff4dd4e34847b294fbee4ccc76bad5
[ "Apache-2.0" ]
null
null
null
critiquebrainz/frontend/views/index.py
shagun6/critiquebrainz
b7ae41fb09ff4dd4e34847b294fbee4ccc76bad5
[ "Apache-2.0" ]
null
null
null
critiquebrainz/frontend/views/index.py
shagun6/critiquebrainz
b7ae41fb09ff4dd4e34847b294fbee4ccc76bad5
[ "Apache-2.0" ]
1
2019-10-20T05:48:53.000Z
2019-10-20T05:48:53.000Z
from flask import Blueprint, render_template from flask_babel import format_number import critiquebrainz.db.users as db_users import critiquebrainz.db.review as db_review from bs4 import BeautifulSoup from markdown import markdown DEFAULT_CACHE_EXPIRATION = 10 * 60 # seconds frontend_bp = Blueprint('frontend', __nam...
31.390244
110
0.740482
0
0
0
0
953
0.740482
0
0
222
0.172494
434fad48264cdf3b340402e86c40cd6b6db05bc8
2,406
py
Python
Enigma/Enigma-master/GBS/gbsHelper.py
Q-Alpha/Hackathon2020
c0ed45b4c1cc4f475f83786e641b859dad94f863
[ "MIT" ]
12
2020-07-23T17:11:22.000Z
2022-02-03T12:44:56.000Z
Enigma/Enigma-master/GBS/gbsHelper.py
Q-Alpha/Hackathon2020
c0ed45b4c1cc4f475f83786e641b859dad94f863
[ "MIT" ]
1
2020-07-28T13:35:51.000Z
2020-07-28T13:35:51.000Z
Enigma/Enigma-master/GBS/gbsHelper.py
Q-Alpha/Hackathon2020
c0ed45b4c1cc4f475f83786e641b859dad94f863
[ "MIT" ]
25
2020-07-22T14:32:17.000Z
2021-09-08T11:43:55.000Z
import strawberryfields as sf from strawberryfields import ops from strawberryfields.utils import random_interferometer from strawberryfields.apps import data, sample, subgraph, plot import plotly import networkx as nx import numpy as np class GBS: def __init__(self, samples =[], min_pho = 16, max_pho = 30, subgra...
34.869565
101
0.554032
2,166
0.900249
0
0
0
0
0
0
217
0.090191
434fcaaddceb714a13ca57fae4621f94efbd1d3d
10,781
py
Python
happy/HappyNodeJoin.py
jenniexie/happy
6ba01586e20bb3e4f92e180fd8dce3752519f7c9
[ "Apache-2.0" ]
null
null
null
happy/HappyNodeJoin.py
jenniexie/happy
6ba01586e20bb3e4f92e180fd8dce3752519f7c9
[ "Apache-2.0" ]
null
null
null
happy/HappyNodeJoin.py
jenniexie/happy
6ba01586e20bb3e4f92e180fd8dce3752519f7c9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2015-2017 Nest Labs, 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/licen...
35.463816
102
0.626472
9,323
0.864762
0
0
0
0
0
0
3,515
0.326037
434feac939e1b8979a11ce2e5fb237601f1fd855
46,866
py
Python
__init__.py
SDRAST/Data_Reduction
f007d716b5c28c086910a81206cffaf37ff6368c
[ "Apache-2.0" ]
null
null
null
__init__.py
SDRAST/Data_Reduction
f007d716b5c28c086910a81206cffaf37ff6368c
[ "Apache-2.0" ]
null
null
null
__init__.py
SDRAST/Data_Reduction
f007d716b5c28c086910a81206cffaf37ff6368c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Modules to support data reduction in Python. The main purpose of the base module ``Data_Reduction`` is to provide a suplerclass with a good set of attributes and methods to cover all common needs. The base module is also able to read data from a text file as a ``numpy`` structured array. ...
35.370566
91
0.615307
39,546
0.84381
0
0
0
0
0
0
25,565
0.545491
43503b600179235461951733f8a10d6ec6cc9d94
219
py
Python
PyGRB/__init__.py
HughPaynter/PyGRB
2eaf834cf3c62a639a056285ca9518456daa4b7c
[ "BSD-3-Clause" ]
null
null
null
PyGRB/__init__.py
HughPaynter/PyGRB
2eaf834cf3c62a639a056285ca9518456daa4b7c
[ "BSD-3-Clause" ]
null
null
null
PyGRB/__init__.py
HughPaynter/PyGRB
2eaf834cf3c62a639a056285ca9518456daa4b7c
[ "BSD-3-Clause" ]
null
null
null
""" PyGRB. A GRB light-curve analysis package. """ __version__ = "0.0.5" __author__ = 'James Paynter' from . import backend from . import fetch from . import main from . import postprocess from . import preprocess
13.6875
35
0.716895
0
0
0
0
0
0
0
0
73
0.333333
4350f1b77cfb0dfefe4845923da0aa75d35da2ca
363
py
Python
src/config.py
john9384/PyblogRestAPI
f8cd42b6ffd5ccc3224d18f71cbea654f05023d0
[ "MIT" ]
null
null
null
src/config.py
john9384/PyblogRestAPI
f8cd42b6ffd5ccc3224d18f71cbea654f05023d0
[ "MIT" ]
null
null
null
src/config.py
john9384/PyblogRestAPI
f8cd42b6ffd5ccc3224d18f71cbea654f05023d0
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv load_dotenv() class Config: SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI') MAIL_SERVER = 'smtp.gmail.com' MAIL_PORT = 587 MAIL_USE_TLS = True MAIL_USERNAME = os.environ.get('EMAIL_USERNAME') MAIL_P...
25.928571
60
0.730028
305
0.84022
0
0
0
0
0
0
74
0.203857
435242d1a3384ab078fa9b2a0a84286b9581b8f8
8,483
py
Python
Context_Guided_RelRep/train.py
Huda-Hakami/Context-Guided-Relation-Embeddings
520ce89fe7bad3aba2f3eb112329300625bb55f7
[ "Apache-2.0" ]
1
2019-10-06T03:54:53.000Z
2019-10-06T03:54:53.000Z
Context_Guided_RelRep/train.py
Huda-Hakami/Context-Guided-Relation-Embeddings
520ce89fe7bad3aba2f3eb112329300625bb55f7
[ "Apache-2.0" ]
null
null
null
Context_Guided_RelRep/train.py
Huda-Hakami/Context-Guided-Relation-Embeddings
520ce89fe7bad3aba2f3eb112329300625bb55f7
[ "Apache-2.0" ]
null
null
null
import numpy as np from wordreps import WordReps from algebra import cosine, normalize import tensorflow as tf import random from dataset import DataSet import CGRE_Model from Eval import eval_SemEval import sklearn.preprocessing # ============ End Imports ============ class Training(): def __init__(self): # Compo...
37.870536
150
0.707651
5,461
0.643758
204
0.024048
0
0
0
0
2,506
0.295414
43525bbf3ff2f6151c746e2a0599b8ee3f2bbfcc
1,071
py
Python
synch_integrate.py
HerculesJack/grtrans
bc005307d81dac1bdb9520e776e7627126dd690a
[ "MIT" ]
25
2016-02-11T01:52:14.000Z
2021-06-16T02:15:42.000Z
synch_integrate.py
RAnantua/grtrans
a0353a8516335412b27fe4866eabafcfc0fe498f
[ "MIT" ]
6
2016-11-10T15:25:20.000Z
2018-01-18T15:15:57.000Z
synch_integrate.py
RAnantua/grtrans
a0353a8516335412b27fe4866eabafcfc0fe498f
[ "MIT" ]
6
2016-02-11T14:13:01.000Z
2022-03-10T01:56:02.000Z
from radtrans_integrate import radtrans_integrate from polsynchemis import polsynchemis import numpy as np import scipy.integrate # calculate synchrotron emissivity for given coefficients def synch_jarho(nu,n,B,T,theta): if ((np.isscalar(nu)==False) & (np.isscalar(n)==True)): n = n + np.zeros(len(nu)) ...
36.931034
109
0.659197
0
0
0
0
0
0
0
0
57
0.053221
4354188cd39459be1c39fa882aceb00bf1b969f5
1,683
py
Python
actions/lib/Template_Parser.py
pjimmybrcd/campus_ztp_nps
2ab266b32fbcddcbdf9031138aabc40942914c3a
[ "Apache-2.0" ]
null
null
null
actions/lib/Template_Parser.py
pjimmybrcd/campus_ztp_nps
2ab266b32fbcddcbdf9031138aabc40942914c3a
[ "Apache-2.0" ]
null
null
null
actions/lib/Template_Parser.py
pjimmybrcd/campus_ztp_nps
2ab266b32fbcddcbdf9031138aabc40942914c3a
[ "Apache-2.0" ]
null
null
null
""" Copyright 2016 Brocade Communications Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
39.139535
91
0.699346
1,017
0.604278
0
0
0
0
0
0
802
0.47653
43559b99540d7f4aefb586b6180111026c8c9f97
461
py
Python
lca_writer/data/loader.py
line-mind/lca_writer
0f356cf20285ba684826dfdd18b75d0f0ebea120
[ "BSD-3-Clause" ]
1
2022-02-10T21:32:54.000Z
2022-02-10T21:32:54.000Z
lca_writer/data/loader.py
line-mind/lca_writer
0f356cf20285ba684826dfdd18b75d0f0ebea120
[ "BSD-3-Clause" ]
1
2018-12-22T23:12:30.000Z
2018-12-22T23:12:30.000Z
lca_writer/data/loader.py
line-mind/lca_writer
0f356cf20285ba684826dfdd18b75d0f0ebea120
[ "BSD-3-Clause" ]
1
2019-10-09T07:03:09.000Z
2019-10-09T07:03:09.000Z
import os __all__ = ['DATA_FOLDER', 'load_data'] DATA_FOLDER = os.path.dirname(os.path.abspath(__file__)) def load_data(name): """ Loads an Excel form from the data folder with the specified name. Parameters ---------- name : str The name of the form without file extension. """ ...
20.954545
69
0.652928
0
0
0
0
0
0
0
0
240
0.520607
4356791d282fbcbf316192672ada1b6fc8d08206
45
py
Python
main.py
Dephilia/pipenv-docker-development
3be5f63120638922fe98336b6ee5b3b0f6f182dc
[ "MIT" ]
null
null
null
main.py
Dephilia/pipenv-docker-development
3be5f63120638922fe98336b6ee5b3b0f6f182dc
[ "MIT" ]
null
null
null
main.py
Dephilia/pipenv-docker-development
3be5f63120638922fe98336b6ee5b3b0f6f182dc
[ "MIT" ]
null
null
null
var = "Docker" print(f"Hello {var} world!")
11.25
28
0.622222
0
0
0
0
0
0
0
0
29
0.644444
4356793fe5f5eb5615052cdcbe88626695d774de
841
py
Python
app/v1/utils/mixins.py
pndemo/yummy-recipes-api
ae6729bd1c886ce9872d83488a6eaa99e92be513
[ "MIT" ]
null
null
null
app/v1/utils/mixins.py
pndemo/yummy-recipes-api
ae6729bd1c886ce9872d83488a6eaa99e92be513
[ "MIT" ]
3
2019-12-20T23:17:20.000Z
2022-03-21T22:16:25.000Z
app/v1/utils/mixins.py
pndemo/yummy-recipes-api
ae6729bd1c886ce9872d83488a6eaa99e92be513
[ "MIT" ]
1
2017-12-13T12:44:11.000Z
2017-12-13T12:44:11.000Z
""" Model mixin classes for auth, category and recipe modules """ from app import db # pylint: disable=C0103 # pylint: disable=E1101 class BaseMixin(object): """ Define the 'BaseModel' mapped to all database tables. """ id = db.Column(db.Integer, primary_key=True, autoincrement=True) def save(self): ...
29
81
0.67063
702
0.834721
0
0
0
0
0
0
289
0.343639
435728a0cb21ad40d2d8c25c033f2746e09d0952
4,239
py
Python
apps/dash-port-analytics/app/ui/tab_map_controls.py
JeroenvdSande/dash-sample-apps
106fa24693cfdaf47c06466a0aed78e642344f91
[ "MIT" ]
2,332
2019-05-10T18:24:20.000Z
2022-03-30T21:46:29.000Z
apps/dash-port-analytics/app/ui/tab_map_controls.py
JeroenvdSande/dash-sample-apps
106fa24693cfdaf47c06466a0aed78e642344f91
[ "MIT" ]
384
2019-05-09T19:19:56.000Z
2022-03-12T00:58:24.000Z
apps/dash-port-analytics/app/ui/tab_map_controls.py
JeroenvdSande/dash-sample-apps
106fa24693cfdaf47c06466a0aed78e642344f91
[ "MIT" ]
3,127
2019-05-16T17:20:45.000Z
2022-03-31T17:59:07.000Z
import dash_core_components as dcc import dash_html_components as html from config import strings def make_tab_port_map_controls( port_arr: list, port_val: str, vessel_types_arr: list, vessel_type_val: str, year_arr: list, year_val: int, month_arr: list, month_val: int, ) -> html.Div: ...
38.889908
88
0.420854
0
0
0
0
0
0
0
0
1,123
0.264921
43580621cfd0f7e6c205651bbcde02772c3c846a
628
py
Python
subs2srs/gui/state.py
TFarla/subs2srs-cross-platform
79158a313ca4099adb20df97207b19d7bc948697
[ "MIT" ]
3
2020-07-04T22:34:50.000Z
2020-08-10T18:18:51.000Z
subs2srs/gui/state.py
TFarla/subs2srs-cross-platform
79158a313ca4099adb20df97207b19d7bc948697
[ "MIT" ]
5
2020-07-04T08:34:36.000Z
2021-05-19T01:27:04.000Z
subs2srs/gui/state.py
TFarla/subs2srs-cross-platform
79158a313ca4099adb20df97207b19d7bc948697
[ "MIT" ]
null
null
null
from typing import List from subs2srs.core.preview_item import PreviewItem class StatePreview: items: List[PreviewItem] = [] inactive_items = set() def __init__(self): super().__init__() self.items = [] self.inactive_items = set() self.audio = None class State: deck_...
27.304348
93
0.694268
547
0.871019
0
0
0
0
0
0
192
0.305732
435956da8c173c0f00fa6d13687b5307a4d9b2a5
499
py
Python
sync_ends/main.py
nirav1997/sync_ends
04e39ec26ac43ad4e6d4e1bdf685eb73c03b1dbb
[ "MIT" ]
null
null
null
sync_ends/main.py
nirav1997/sync_ends
04e39ec26ac43ad4e6d4e1bdf685eb73c03b1dbb
[ "MIT" ]
null
null
null
sync_ends/main.py
nirav1997/sync_ends
04e39ec26ac43ad4e6d4e1bdf685eb73c03b1dbb
[ "MIT" ]
null
null
null
import sys sys.path.append("..") from src.sync_ends_service import SyncEnd from src.parser import Parser def main(): # get the arguments from commadn line parser = Parser() collection_name, api_key, trigger_interval, slack_channel, slack_token = parser.get_argumenets() sync_end = SyncEnd(api_key, co...
22.681818
100
0.709419
0
0
0
0
0
0
0
0
51
0.102204
435a70dd7b6f4dda69b0f2a7703c3f754714213d
22,429
py
Python
graphql_compiler/compiler/workarounds/orientdb_query_execution.py
0xflotus/graphql-compiler
0c892f5254d0cf3d03a68012080d0b736bc49913
[ "Apache-2.0" ]
null
null
null
graphql_compiler/compiler/workarounds/orientdb_query_execution.py
0xflotus/graphql-compiler
0c892f5254d0cf3d03a68012080d0b736bc49913
[ "Apache-2.0" ]
1
2019-04-18T18:23:16.000Z
2019-04-18T18:23:16.000Z
graphql_compiler/compiler/workarounds/orientdb_query_execution.py
0xflotus/graphql-compiler
0c892f5254d0cf3d03a68012080d0b736bc49913
[ "Apache-2.0" ]
1
2019-11-21T02:38:27.000Z
2019-11-21T02:38:27.000Z
# Copyright 2018-present Kensho Technologies, LLC. """Workarounds for OrientDB scheduler issue that causes poor query planning for certain queries. For purposes of query planning, the OrientDB query planner ignores "where:" clauses that hit indexes but do not use the "=" operator. For example, "CONTAINS" can be used t...
58.257143
100
0.664452
0
0
0
0
0
0
0
0
11,162
0.497659
435b03494c0e0f08adce48e2055f1eb32e5446ba
3,763
py
Python
traffic_light/core.py
ofalk/cleware-traffic-light
be319fec8e190811463ade8aabc37ca2b4f17e57
[ "MIT" ]
null
null
null
traffic_light/core.py
ofalk/cleware-traffic-light
be319fec8e190811463ade8aabc37ca2b4f17e57
[ "MIT" ]
null
null
null
traffic_light/core.py
ofalk/cleware-traffic-light
be319fec8e190811463ade8aabc37ca2b4f17e57
[ "MIT" ]
null
null
null
from enum import IntEnum import functools import usb.core import usb.util from traffic_light.error import TrafficLightError, MultipleTrafficLightsError BM_REQUEST_TYPE = 0x21 B_REQUEST = 0x09 W_VALUE = 0x200 W_INDEX = 0x00 ID_VENDOR = 0x0d50 ID_PRODUCT = 0x0008 INTERFACE = 0 class Color(IntEnum): RED = 0x10 ...
32.439655
122
0.60962
3,475
0.923465
0
0
689
0.183099
0
0
964
0.256179
435b7f5d139890173dc2cf9019b51215cc554d6e
3,646
py
Python
sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_analyze_orchestration_app_luis_response_async.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_analyze_orchestration_app_luis_response_async.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_analyze_orchestration_app_luis_response_async.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """ FILE: sample_analyze_orchestration_app_luis_response_async.py DESCRIPTION: This sample demonstrates how to analyze user query using an orchestra...
39.630435
106
0.637685
0
0
0
0
0
0
2,471
0.677729
1,951
0.535107
435b8874fd825cd72ac9feb3e9f96907066c1541
141
py
Python
src/sunstruck/schemas/__init__.py
la-mar/sunstruck-api
90074a55d3b243f7f0eee6e897a98699d2cebc43
[ "MIT" ]
3
2021-04-04T07:48:48.000Z
2022-02-19T17:42:12.000Z
src/sunstruck/schemas/__init__.py
la-mar/sunstruck-api
90074a55d3b243f7f0eee6e897a98699d2cebc43
[ "MIT" ]
null
null
null
src/sunstruck/schemas/__init__.py
la-mar/sunstruck-api
90074a55d3b243f7f0eee6e897a98699d2cebc43
[ "MIT" ]
null
null
null
# flake8: noqa from schemas.client_credentials import * from schemas.message import * from schemas.token import * from schemas.user import *
23.5
40
0.794326
0
0
0
0
0
0
0
0
14
0.099291
435f04515eafc16cb9b3781591916aadd65a8bd3
2,499
py
Python
intro/deploy.py
terziev-viktor/SolidityCourse
6f10852e94eec69438c5e577795d317694227337
[ "MIT" ]
null
null
null
intro/deploy.py
terziev-viktor/SolidityCourse
6f10852e94eec69438c5e577795d317694227337
[ "MIT" ]
null
null
null
intro/deploy.py
terziev-viktor/SolidityCourse
6f10852e94eec69438c5e577795d317694227337
[ "MIT" ]
null
null
null
import json from web3 import Web3 from solcx import compile_standard, install_solc with open("./SimpleStorage.sol", "r") as file: simple_storage_src = file.read() # install solcx install_solc("0.8.0") # compile the source compiled_sol = compile_standard( { "language": "Solidity", "sources": ...
31.2375
147
0.708283
0
0
0
0
0
0
0
0
810
0.32413
435f7637a4041b297cabc29fa1091a243b6bc151
2,154
py
Python
noise/extras/meta/protocol/protocol.py
mgp25/noise
8560849fa4a1d6e938adde27d26572f4da16e422
[ "MIT" ]
6
2019-05-02T09:40:53.000Z
2021-05-18T00:18:30.000Z
noise/extras/meta/protocol/protocol.py
mgp25/noise
8560849fa4a1d6e938adde27d26572f4da16e422
[ "MIT" ]
null
null
null
noise/extras/meta/protocol/protocol.py
mgp25/noise
8560849fa4a1d6e938adde27d26572f4da16e422
[ "MIT" ]
null
null
null
from noise.dh.dh import DH from noise.cipher.cipher import Cipher from noise.hash.hash import Hash from noise.processing.handshakepatterns.handshakepattern import HandshakePattern from noise.processing.impl.handshakestate import HandshakeState from noise.processing.impl.symmetricstate import SymmetricState from noise....
27.265823
103
0.627205
1,784
0.828227
0
0
285
0.132312
0
0
724
0.336119
4361a9278aa18283e07b14ec0d517fca7051b980
9,550
py
Python
info_popup.py
cartazio/SublimeHaskell
e6f12ea69de939d12212a6ec594bf0aae0603f6d
[ "MIT" ]
2
2021-07-07T16:41:48.000Z
2021-11-17T11:08:50.000Z
info_popup.py
cartazio/SublimeHaskell
e6f12ea69de939d12212a6ec594bf0aae0603f6d
[ "MIT" ]
null
null
null
info_popup.py
cartazio/SublimeHaskell
e6f12ea69de939d12212a6ec594bf0aae0603f6d
[ "MIT" ]
null
null
null
import urllib.parse import webbrowser import json from xml.etree import ElementTree import sublime import SublimeHaskell.sublime_haskell_common as Common import SublimeHaskell.internals.utils as Utils import SublimeHaskell.internals.unicode_opers as UnicodeOpers import SublimeHaskell.symbols as symbols import Sublim...
42.070485
126
0.566387
8,778
0.919162
0
0
0
0
0
0
1,744
0.182618
4361a9d08c25b0f208bbec15d3be738264785d14
4,126
py
Python
modules/google_home_lights.py
artizanatweb/ghome-assistant
dba2bc58979ebae48afc71c356ae2d40b8830eee
[ "Apache-2.0" ]
null
null
null
modules/google_home_lights.py
artizanatweb/ghome-assistant
dba2bc58979ebae48afc71c356ae2d40b8830eee
[ "Apache-2.0" ]
null
null
null
modules/google_home_lights.py
artizanatweb/ghome-assistant
dba2bc58979ebae48afc71c356ae2d40b8830eee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2017 Seeed Technology Limited # # 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 ...
24.128655
74
0.542414
2,971
0.720068
0
0
0
0
0
0
634
0.15366