hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
33691ce250a8717c15ad812e29257b13be0864ea
33
py
Python
src/petronia/defimpl/configuration/file/defs.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
19
2017-06-21T10:28:24.000Z
2021-12-31T11:49:28.000Z
src/petronia/defimpl/configuration/file/defs.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
10
2016-11-11T18:57:57.000Z
2021-02-01T15:33:43.000Z
src/petronia/defimpl/configuration/file/defs.py
groboclown/petronia
486338023d19cee989e92f0c5692680f1a37811f
[ "MIT" ]
3
2017-09-17T03:29:35.000Z
2019-06-03T10:43:08.000Z
""" Basic type definitions. """
6.6
23
0.606061
336a6fab7ed0883fc7d394502eed5edc3d498110
7,986
py
Python
clone-zadara-volume.py
harvard-dce/mh-backup
78a6f987759de22eb27b3b7e29943c7aba70cbac
[ "Apache-2.0" ]
null
null
null
clone-zadara-volume.py
harvard-dce/mh-backup
78a6f987759de22eb27b3b7e29943c7aba70cbac
[ "Apache-2.0" ]
null
null
null
clone-zadara-volume.py
harvard-dce/mh-backup
78a6f987759de22eb27b3b7e29943c7aba70cbac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import time import logging import logging.config import logging.handlers import yaml from zadarest import ZConsoleClient from zadarest import ZVpsaClient logger = None if __name__ == '__main__': cfg = read_config( 'config.yml' ) setup_loggi...
33
105
0.660406
336e88674a45678661a794705e119393a26a094e
862
py
Python
env/Lib/site-packages/bidict/_typing.py
NXPY123/gsoc-tagger
c85602ae9f5dbb9bec45cc5e9e50ec62177d46a5
[ "MIT" ]
9
2021-02-15T05:53:17.000Z
2022-02-25T01:47:09.000Z
env/Lib/site-packages/bidict/_typing.py
NXPY123/gsoc-tagger
c85602ae9f5dbb9bec45cc5e9e50ec62177d46a5
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
env/Lib/site-packages/bidict/_typing.py
NXPY123/gsoc-tagger
c85602ae9f5dbb9bec45cc5e9e50ec62177d46a5
[ "MIT" ]
7
2022-02-05T20:29:14.000Z
2022-03-26T13:16:44.000Z
# -*- coding: utf-8 -*- # Copyright 2009-2020 Joshua Bronson. All Rights Reserved. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """Provide typing-related objects....
25.352941
69
0.676334
33718dd21d032cfa041834f0670c883a14f8767a
5,032
py
Python
tests/util/test_mwi_validators.py
chimmy-changa/d-mdp
2ffbb4e41c980a71d95bcdb56fe47b2d7a5893a1
[ "BSD-2-Clause" ]
null
null
null
tests/util/test_mwi_validators.py
chimmy-changa/d-mdp
2ffbb4e41c980a71d95bcdb56fe47b2d7a5893a1
[ "BSD-2-Clause" ]
null
null
null
tests/util/test_mwi_validators.py
chimmy-changa/d-mdp
2ffbb4e41c980a71d95bcdb56fe47b2d7a5893a1
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2021 The MathWorks, Inc. """Tests for functions in matlab_desktop_proxy/util/mwi_validators.py """ import pytest, os, tempfile, socket, random import matlab_desktop_proxy from matlab_desktop_proxy.util import mwi_validators from matlab_desktop_proxy import mwi_environment_variables as mwi_env from matlab_d...
35.43662
96
0.738275
3371e72f879cbac52d993d514cd9197823e924d2
1,758
py
Python
pub/models.py
DASTUDIO/MyVHost
b9eda56a67c2df9236b7866087bc7f465542f951
[ "MIT" ]
2
2021-07-27T10:38:57.000Z
2021-10-10T20:42:56.000Z
pub/models.py
DASTUDIO/MyVHost
b9eda56a67c2df9236b7866087bc7f465542f951
[ "MIT" ]
null
null
null
pub/models.py
DASTUDIO/MyVHost
b9eda56a67c2df9236b7866087bc7f465542f951
[ "MIT" ]
null
null
null
# coding=utf-8 from pub.tables.resources import * from pub.tables.map.domain import * from pub.tables.cache.token import * from pub.tables.map.files import * from pub.tables.user import * from pub.tables.cache.suspend import * from pub.tables.notice import * from pub.tables.template import * from pub.tables.comments im...
24.416667
63
0.85438
33748e69536633ebb01ec7a16665fe6f91b383bc
1,169
py
Python
editor/templates/tests/test_review.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
null
null
null
editor/templates/tests/test_review.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
null
null
null
editor/templates/tests/test_review.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
1
2021-11-01T07:58:18.000Z
2021-11-01T07:58:18.000Z
# Copyright (c) 2005-2006 gocept gmbh & co. kg # See also LICENSE.txt # $Id: test_processmanager.py 4614 2007-03-26 20:12:22Z ctheune $ import unittest from Products.AlphaFlow.tests.AlphaFlowTestCase import AlphaFlowTestCase from Products.AlphaFlow.process import Process, ProcessVersion
33.4
112
0.700599
681bea3ce9c8135cbe81134242ec4563bc113cbf
353
py
Python
tools/find-broken-edition-parm.py
ctheune/assembly-cms
20e000373fc30d9a14cb5dc882499b5eed1d86ee
[ "ZPL-2.1" ]
null
null
null
tools/find-broken-edition-parm.py
ctheune/assembly-cms
20e000373fc30d9a14cb5dc882499b5eed1d86ee
[ "ZPL-2.1" ]
null
null
null
tools/find-broken-edition-parm.py
ctheune/assembly-cms
20e000373fc30d9a14cb5dc882499b5eed1d86ee
[ "ZPL-2.1" ]
null
null
null
# Copyright (c) 2010 gocept gmbh & co. kg # See also LICENSE.txt import zope.traversing.api stack = [root['summer10']] while stack: page = stack.pop() for edition in page.editions: for tag in edition.parameters: if not ':' in tag: print zope.traversing.api.getPath(edition)...
23.533333
58
0.637394
681c71e1cbd6fe545a1017f7ab45742ad74b1e3f
3,926
py
Python
storm_summaries.py
uva-hydroinformatics-lab/precipitation_processing
54ef1673900b6bb2ee38daec3aac33748a8402cd
[ "MIT" ]
1
2019-01-08T03:57:49.000Z
2019-01-08T03:57:49.000Z
storm_summaries.py
uva-hydroinformatics/precipitation_processing
54ef1673900b6bb2ee38daec3aac33748a8402cd
[ "MIT" ]
null
null
null
storm_summaries.py
uva-hydroinformatics/precipitation_processing
54ef1673900b6bb2ee38daec3aac33748a8402cd
[ "MIT" ]
null
null
null
from storm_stats_functions import * ######################################################################################################################## # Prepare Data########################################################################################################## #########################################...
40.474227
120
0.464595
681ce2b89477a5b6b497d174c63e24c3840af009
573
py
Python
jqi/completion.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
3
2020-04-15T13:40:59.000Z
2021-06-30T10:09:33.000Z
jqi/completion.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
jqi/completion.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
from .lexer import lex from .parser import top_level from .completer import * from .eval import make_env, splice
27.285714
82
0.616056
681d29014f10010799276f1e756503fc734bd148
21
py
Python
portfolio/Python/scrapy/loi/__init__.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/loi/__init__.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/loi/__init__.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
5
2016-03-22T07:40:46.000Z
2021-05-30T16:12:21.000Z
ACCOUNT_NAME = 'Loi'
10.5
20
0.714286
681d2bfe163a3550e1484324ef1588560df68dbc
5,948
py
Python
conda-store-server/conda_store_server/server/views/api.py
saulshanabrook/conda-store
4d2c442d92cc92c236f52d138a403a693eff1eb9
[ "BSD-3-Clause" ]
null
null
null
conda-store-server/conda_store_server/server/views/api.py
saulshanabrook/conda-store
4d2c442d92cc92c236f52d138a403a693eff1eb9
[ "BSD-3-Clause" ]
null
null
null
conda-store-server/conda_store_server/server/views/api.py
saulshanabrook/conda-store
4d2c442d92cc92c236f52d138a403a693eff1eb9
[ "BSD-3-Clause" ]
null
null
null
from flask import Blueprint, jsonify, redirect, request import pydantic from conda_store_server import api, schema, utils from conda_store_server.server.utils import get_conda_store, get_auth from conda_store_server.server.auth import Permissions app_api = Blueprint("api", __name__)
30.502564
88
0.686785
681dc97becea3bc42ad4fd6d5283822462ab98cd
6,781
py
Python
wrangle.py
brandonjbryant/regression-project
1c7dabece335c28931bcca3c002cb3cfa733bcbd
[ "MIT" ]
null
null
null
wrangle.py
brandonjbryant/regression-project
1c7dabece335c28931bcca3c002cb3cfa733bcbd
[ "MIT" ]
null
null
null
wrangle.py
brandonjbryant/regression-project
1c7dabece335c28931bcca3c002cb3cfa733bcbd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as numpy from env import host, user, password import os from sklearn.model_selection import train_test_split import sklearn.preprocessing ############################# Acquire Zillow ############################# # defines function to create a sql url using personal credentials...
33.078049
122
0.621442
681e1d5a6599b7cdcc0f82c8c9f48fcd4cf5f272
5,107
py
Python
server/shserver/GetCategory.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
1
2017-05-02T10:02:28.000Z
2017-05-02T10:02:28.000Z
server/shserver/GetCategory.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
null
null
null
server/shserver/GetCategory.py
AsherYang/ThreeLine
351dc8bfd1c0a536ffbf36ce8b1af953cc71f93a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Author: AsherYang Email: 1181830457@qq.com Date: 2017/7/24 Desc: get weidian token @see https://wiki.open.weidian.com/api#94 url = https://api.vdian.com/api?param={"showNoCate":"0"}&public={"method":"weidian.cate.get.list","access_token":"9882ff6e635aac4740646cf93f23...
34.046667
174
0.639319
681e352b042459db2c73a2cf9e2013e8047fcc1a
600
py
Python
tests/test_parametrized_circuit.py
mdrft/Blueqat
878d24e2038063e32b4d391a03bc2c2be0600470
[ "Apache-2.0" ]
25
2018-09-16T22:54:48.000Z
2019-02-22T01:21:30.000Z
tests/test_parametrized_circuit.py
mdrft/blueqat
6c5f26b377bc3ce0d02adec8b9132d70870b3d95
[ "Apache-2.0" ]
22
2018-09-20T02:47:56.000Z
2019-02-08T05:25:30.000Z
tests/test_parametrized_circuit.py
mdrft/blueqat
6c5f26b377bc3ce0d02adec8b9132d70870b3d95
[ "Apache-2.0" ]
5
2018-10-23T04:56:04.000Z
2019-02-13T14:02:31.000Z
from blueqat import Circuit, ParametrizedCircuit
26.086957
79
0.605
68228cac371d172bb8b04045ab01daa77707fe2a
453
py
Python
add_admin.py
xcoders-hub/file-link-telegram-bot
08fe2803766bf8027991698d057f927c02501d06
[ "Apache-2.0" ]
1
2020-08-11T09:13:11.000Z
2020-08-11T09:13:11.000Z
add_admin.py
xcoders-hub/file-link-telegram-bot
08fe2803766bf8027991698d057f927c02501d06
[ "Apache-2.0" ]
null
null
null
add_admin.py
xcoders-hub/file-link-telegram-bot
08fe2803766bf8027991698d057f927c02501d06
[ "Apache-2.0" ]
2
2021-01-01T15:17:15.000Z
2021-02-02T14:42:45.000Z
import sqlite3 from config import DB_PATH try: admin_id = int(input('Enter admin id: ')) exe_query(f'INSERT INTO Admin (telegram_id) VALUES ({admin_id});') print(f'Admin ({admin_id}) added successfully!') except ValueError: print('Invalid admin id')
22.65
70
0.686534
68247d930223fc7ffe60ad9d81a38863a76ea6be
2,832
py
Python
resources/code/train/Python/cp.py
searene/PLDetector
a8052b1d2ba91bfcc3fd4a5252480cf511d8a210
[ "MIT" ]
1
2020-11-09T08:24:17.000Z
2020-11-09T08:24:17.000Z
resources/code/train/Python/cp.py
searene/PLDetector
a8052b1d2ba91bfcc3fd4a5252480cf511d8a210
[ "MIT" ]
null
null
null
resources/code/train/Python/cp.py
searene/PLDetector
a8052b1d2ba91bfcc3fd4a5252480cf511d8a210
[ "MIT" ]
null
null
null
# This file is part of the Hotwire Shell project API. # Copyright (C) 2007 Colin Walters <walters@verbum.org> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, includin...
42.268657
89
0.676907
6825ecd07438de3cfbf3309ee1fabb498392216d
2,973
py
Python
src/other/other/features/tests.py
ManuelLobo/IBEnt
2ea885770a843f30224920d1bf6f6381fdf98c4c
[ "MIT" ]
null
null
null
src/other/other/features/tests.py
ManuelLobo/IBEnt
2ea885770a843f30224920d1bf6f6381fdf98c4c
[ "MIT" ]
null
null
null
src/other/other/features/tests.py
ManuelLobo/IBEnt
2ea885770a843f30224920d1bf6f6381fdf98c4c
[ "MIT" ]
null
null
null
import glob import random import os import subprocess import time import argparse import codecs import logging if __name__ == "__main__": main()
39.64
265
0.670703
6825edb56f620e4af468cbc1facebc1899cc9b2c
4,882
py
Python
tests/proc/test_manager.py
pmrowla/dvc-task
b2698c5b76dfe14099eefc90b2f9372ec774549d
[ "Apache-2.0" ]
2
2022-02-15T12:28:13.000Z
2022-03-08T17:19:38.000Z
tests/proc/test_manager.py
pmrowla/dvc-task
b2698c5b76dfe14099eefc90b2f9372ec774549d
[ "Apache-2.0" ]
12
2022-02-15T12:55:13.000Z
2022-03-30T09:24:13.000Z
tests/proc/test_manager.py
pmrowla/dvc-task
b2698c5b76dfe14099eefc90b2f9372ec774549d
[ "Apache-2.0" ]
1
2022-03-08T07:15:18.000Z
2022-03-08T07:15:18.000Z
"""Process manager tests.""" import builtins import signal import sys import pytest from pytest_mock import MockerFixture from pytest_test_utils import TmpDir from dvc_task.proc.exceptions import ( ProcessNotTerminatedError, UnsupportedSignalError, ) from dvc_task.proc.manager import ProcessManager from dvc_t...
29.409639
79
0.705653
68272da9ef5f1c688a86d4dfd33eef8b07b524c3
2,447
py
Python
laceworksdk/api/run_reports.py
kiddinn/python-sdk
23a33313f97337fddea155bcb19c8d5270fc8013
[ "MIT" ]
10
2021-03-20T18:12:16.000Z
2022-02-14T21:33:23.000Z
laceworksdk/api/run_reports.py
kiddinn/python-sdk
23a33313f97337fddea155bcb19c8d5270fc8013
[ "MIT" ]
10
2021-02-22T23:31:32.000Z
2022-03-25T14:11:27.000Z
laceworksdk/api/run_reports.py
kiddinn/python-sdk
23a33313f97337fddea155bcb19c8d5270fc8013
[ "MIT" ]
7
2021-06-18T18:17:12.000Z
2022-03-25T13:52:14.000Z
""" Lacework Run Reports API wrapper. """ import logging logger = logging.getLogger(__name__)
25.489583
118
0.624029
682755414252899eae0fb1b519e05847d5ff143c
56
py
Python
djangoautoconf/keys_default/admin_account_template.py
weijia/djangoautoconf
590acfdcc6a3e051a2048ba1dbf980f908a7af91
[ "BSD-3-Clause" ]
null
null
null
djangoautoconf/keys_default/admin_account_template.py
weijia/djangoautoconf
590acfdcc6a3e051a2048ba1dbf980f908a7af91
[ "BSD-3-Clause" ]
null
null
null
djangoautoconf/keys_default/admin_account_template.py
weijia/djangoautoconf
590acfdcc6a3e051a2048ba1dbf980f908a7af91
[ "BSD-3-Clause" ]
null
null
null
admin_username = "richard" admin_password = "richard666"
28
29
0.803571
68276c114e2c9758ed125fc1c18ac3b0599cfe2a
888
py
Python
open_box/conf/__init__.py
PeterPZhang/open-box
987f91edf0f502d678459f7cc50070cae34accd9
[ "MIT" ]
2
2021-02-20T04:28:48.000Z
2021-02-23T09:51:02.000Z
open_box/conf/__init__.py
PeterPZhang/open-box
987f91edf0f502d678459f7cc50070cae34accd9
[ "MIT" ]
null
null
null
open_box/conf/__init__.py
PeterPZhang/open-box
987f91edf0f502d678459f7cc50070cae34accd9
[ "MIT" ]
1
2021-02-22T06:52:48.000Z
2021-02-22T06:52:48.000Z
import json
24
61
0.480856
682899166e4668f5ec87c91ad26dfdd76110e5e1
2,523
py
Python
discordbot.py
reowoon/discordpy-startup
9922c48569277b18d74af9bc889aea6b1c54e424
[ "MIT" ]
null
null
null
discordbot.py
reowoon/discordpy-startup
9922c48569277b18d74af9bc889aea6b1c54e424
[ "MIT" ]
null
null
null
discordbot.py
reowoon/discordpy-startup
9922c48569277b18d74af9bc889aea6b1c54e424
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import os from discord.ext import tasks from datetime import datetime bot = commands.Bot(command_prefix='&') token = os.environ['DISCORD_BOT_TOKEN'] guild = bot.get_guild(417245684656373766) # # # # #VC # # bot.run(token)
29.682353
137
0.671027
682938278246a7af352a4330807844b209118da3
7,225
py
Python
mplStyle/types/lib.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
39
2015-03-08T23:05:01.000Z
2022-02-07T16:03:35.000Z
mplStyle/types/lib.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
null
null
null
mplStyle/types/lib.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
23
2015-03-08T19:56:59.000Z
2021-07-15T15:16:26.000Z
#=========================================================================== # # Copyright (c) 2014, California Institute of Technology. # U.S. Government Sponsorship under NASA Contract NAS7-03001 is # acknowledged. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modific...
33.142202
79
0.593356
68294eda3a4048aa6022b5b8002d5929dc0d41b6
12,285
py
Python
plot.py
osamayasserr/vaccum-cleaner
d6b8ea2eedadaca001ae14b66ff55c42ff3facb8
[ "MIT" ]
2
2021-01-11T22:54:38.000Z
2021-01-28T16:15:13.000Z
plot.py
osamayasserr/vaccum-cleaner
d6b8ea2eedadaca001ae14b66ff55c42ff3facb8
[ "MIT" ]
null
null
null
plot.py
osamayasserr/vaccum-cleaner
d6b8ea2eedadaca001ae14b66ff55c42ff3facb8
[ "MIT" ]
1
2021-01-13T09:59:14.000Z
2021-01-13T09:59:14.000Z
import math import pylab from app import StandardRobot, LeastDistanceRobot, RandomWalkRobot, runSimulation def timeNumberPlot(title, x_label, y_label, dim_length): """ Plots the relation between the number of robots and the average time taken by different robots to clean a portion of the room. """ ...
39
88
0.654945
6829fc0412ea7a5055c0ef733f3314f215ac41ec
795
py
Python
kf_lib_data_ingest/templates/my_ingest_package/ingest_package_config.py
kids-first/kf-lib-data-ingest
92889efef082c64744a00a9c110d778da7383959
[ "Apache-2.0" ]
3
2018-10-30T17:56:44.000Z
2020-05-27T16:18:05.000Z
kf_lib_data_ingest/templates/my_ingest_package/ingest_package_config.py
kids-first/kf-lib-data-ingest
92889efef082c64744a00a9c110d778da7383959
[ "Apache-2.0" ]
344
2018-11-01T16:47:56.000Z
2022-02-23T20:36:21.000Z
kf_lib_data_ingest/templates/my_ingest_package/ingest_package_config.py
kids-first/kf-lib-data-ingest
92889efef082c64744a00a9c110d778da7383959
[ "Apache-2.0" ]
1
2020-08-19T21:25:25.000Z
2020-08-19T21:25:25.000Z
""" Ingest Package Config """ # The list of entities that will be loaded into the target service. These # should be class_name values of your target API config's target entity # classes. target_service_entities = [ "family", "participant", "diagnosis", "phenotype", "outcome", "biospecimen", ...
27.413793
75
0.732075
682a6e3c9903c978ec62e69b0a956020a4566963
1,877
py
Python
src/dbmanage/database_from_csv.py
resolutedreamer/NESLDashboard
b87c65db8bbb2e4999073f08bfd374a3eb769b3d
[ "MIT" ]
null
null
null
src/dbmanage/database_from_csv.py
resolutedreamer/NESLDashboard
b87c65db8bbb2e4999073f08bfd374a3eb769b3d
[ "MIT" ]
null
null
null
src/dbmanage/database_from_csv.py
resolutedreamer/NESLDashboard
b87c65db8bbb2e4999073f08bfd374a3eb769b3d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Written by Anthony Nguyen 2015/06/20 """ import sqlite3 import sys #import smap_analytics as smap_analytics open_this_file = None if len(sys.argv) == 2: open_this_file = sys.argv[1] else: open_this_file = "config/smap_2015.csv" with sqlite3.connect('dashboard.db') as conn: c = c...
31.283333
112
0.580181
682b4349f15570d914af6d4986f32343c6454f8e
3,746
py
Python
RevCompLibrary.py
sayloren/fennel
b85a08b36900c23931ef2cd988798ae9e671cf8b
[ "Apache-2.0" ]
null
null
null
RevCompLibrary.py
sayloren/fennel
b85a08b36900c23931ef2cd988798ae9e671cf8b
[ "Apache-2.0" ]
null
null
null
RevCompLibrary.py
sayloren/fennel
b85a08b36900c23931ef2cd988798ae9e671cf8b
[ "Apache-2.0" ]
null
null
null
""" Script to perform RC sorting Wren Saylor July 5 2017 Copyright 2017 Harvard University, Wu Lab 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 ...
41.622222
141
0.780566
682b439a68c9aa5528add307c36e60310cd9655f
580
py
Python
exos/temperatures.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
7
2016-09-29T07:20:25.000Z
2021-03-15T15:00:06.000Z
exos/temperatures.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
1
2018-10-08T10:52:48.000Z
2018-10-08T10:52:48.000Z
exos/temperatures.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
11
2017-01-12T18:50:49.000Z
2021-02-28T22:44:29.000Z
import sys import math # Auto-generated code below aims at helping you parse # the standard input according to the problem statement. n = int(input()) # the number of temperatures to analyse temps = input() # the n temperatures expressed as integers ranging from -273 to 5526 temps = temps.split() if n == 0: pr...
26.363636
85
0.641379
682c0922524d4921d715e9972404209c73d7dea6
694
py
Python
omep-python-test.py
yas-sim/openvino-model-experiment-package
cb96331908b55c5ab15c7bc8c042fb53cd4a2b35
[ "Apache-2.0" ]
3
2020-07-04T02:16:42.000Z
2020-07-05T21:21:22.000Z
omep-python-test.py
yas-sim/openvino-model-experiment-package
cb96331908b55c5ab15c7bc8c042fb53cd4a2b35
[ "Apache-2.0" ]
null
null
null
omep-python-test.py
yas-sim/openvino-model-experiment-package
cb96331908b55c5ab15c7bc8c042fb53cd4a2b35
[ "Apache-2.0" ]
null
null
null
import numpy as np import cv2 import matplotlib.pyplot as plt from openvino.inference_engine import IECore import openvino_model_experiment_package as omep # Load an IR model model = 'intel/human-pose-estimation-0001/FP16/human-pose-estimation-0001' ie, net, exenet, inblobs, outblobs, inshapes, outshapes = omep.loa...
27.76
85
0.795389
682c4faf90aa04f1fdb70d9f1262a3c8fcfba960
657
py
Python
molecule/tiff/tests/request_tile_in_container.py
girder/ansible-role-large-image
bb2fe69373bf38a2e0afd0a8ae011dabd9f1caf9
[ "Apache-2.0" ]
1
2018-09-17T17:38:41.000Z
2018-09-17T17:38:41.000Z
molecule/tiff/tests/request_tile_in_container.py
girder/ansible-role-large-image
bb2fe69373bf38a2e0afd0a8ae011dabd9f1caf9
[ "Apache-2.0" ]
1
2020-03-05T03:18:07.000Z
2020-03-05T03:18:07.000Z
molecule/tiff/tests/request_tile_in_container.py
girder/ansible-role-large-image
bb2fe69373bf38a2e0afd0a8ae011dabd9f1caf9
[ "Apache-2.0" ]
null
null
null
import large_image import urllib import pytest
36.5
78
0.733638
682c8eecc709a3adc399c98e9632ec8b019beeda
3,359
py
Python
XSTAF/core/tool_manage.py
xcgspring/XSTAF
68a5bec4312173f931b9024e851cefaf778e3bfd
[ "Apache-2.0" ]
2
2016-03-21T01:02:57.000Z
2018-03-16T02:25:04.000Z
XSTAF/core/tool_manage.py
xcgspring/XSTAF
68a5bec4312173f931b9024e851cefaf778e3bfd
[ "Apache-2.0" ]
null
null
null
XSTAF/core/tool_manage.py
xcgspring/XSTAF
68a5bec4312173f931b9024e851cefaf778e3bfd
[ "Apache-2.0" ]
null
null
null
import os import sys import pickle import traceback from XSTAF.core.logger import LOGGER
39.05814
108
0.608514
682d4d61b5d8bc567488186baf7596163fa2d5a9
1,200
py
Python
foodies/forms.py
sharonandisi/foodgram
489794bf23734a80961fd9a790ac17c694335d27
[ "PostgreSQL" ]
null
null
null
foodies/forms.py
sharonandisi/foodgram
489794bf23734a80961fd9a790ac17c694335d27
[ "PostgreSQL" ]
null
null
null
foodies/forms.py
sharonandisi/foodgram
489794bf23734a80961fd9a790ac17c694335d27
[ "PostgreSQL" ]
null
null
null
from django import forms from .models import Image, Profile, Comments
28.571429
91
0.626667
682eb91e753309f5167c5c3ce7b313c8b3f7ea9a
120
py
Python
Oefeningen/standalone/list_comprehension_4.py
Seviran/Python_3
e30ead250129d25bbc0a7ee2f6298775b2f4529a
[ "MIT" ]
null
null
null
Oefeningen/standalone/list_comprehension_4.py
Seviran/Python_3
e30ead250129d25bbc0a7ee2f6298775b2f4529a
[ "MIT" ]
null
null
null
Oefeningen/standalone/list_comprehension_4.py
Seviran/Python_3
e30ead250129d25bbc0a7ee2f6298775b2f4529a
[ "MIT" ]
null
null
null
string_input = "amazing" vowels = "aeiou" answer = [char for char in string_input if char not in vowels] print(answer)
20
62
0.741667
682f048ab5bbb8cf7aa88b049ef30b187c3d0139
3,404
py
Python
pyingest/tests/test_serializers.py
golnazads/adsabs-pyingest
37b37dd9e0d8a6e5cc34c59d30acd14e3381b48e
[ "MIT" ]
null
null
null
pyingest/tests/test_serializers.py
golnazads/adsabs-pyingest
37b37dd9e0d8a6e5cc34c59d30acd14e3381b48e
[ "MIT" ]
null
null
null
pyingest/tests/test_serializers.py
golnazads/adsabs-pyingest
37b37dd9e0d8a6e5cc34c59d30acd14e3381b48e
[ "MIT" ]
null
null
null
""" Test serializer """ import unittest import glob import json try: from cStringIO import StringIO except ImportError: from io import StringIO from pyingest.parsers.iop import IOPJATSParser from pyingest.serializers.classic import Tagged from pyingest.serializers.refwriter import *
36.212766
118
0.596063
682fac4fc964dc03647c016ce6c38daafb6bb051
1,473
py
Python
Chapter10-debugging/maxsubarray_v4.py
showa-yojyo/Software-Architecture-with-Python
46ba48911065292c9d391f66d7213c01699fca80
[ "MIT" ]
null
null
null
Chapter10-debugging/maxsubarray_v4.py
showa-yojyo/Software-Architecture-with-Python
46ba48911065292c9d391f66d7213c01699fca80
[ "MIT" ]
null
null
null
Chapter10-debugging/maxsubarray_v4.py
showa-yojyo/Software-Architecture-with-Python
46ba48911065292c9d391f66d7213c01699fca80
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Code Listing #4 """ Maximum subarray problem - final version """ from contextlib import contextmanager import random import time # def num_array(size): """ Return a list of numbers in a fixed random range of given size """ nums = [] for i in range(size): nums.appen...
22.318182
71
0.618466
68301f03cab4108ed375425743ca10036cf4ec40
4,012
py
Python
scripts/frontpage_sqlite_migration.py
r-anime/modbot
52e8f251273435e0146bd8d6633ff22549e138aa
[ "MIT" ]
3
2020-07-06T08:26:12.000Z
2021-04-20T05:31:38.000Z
scripts/frontpage_sqlite_migration.py
r-anime/modbot
52e8f251273435e0146bd8d6633ff22549e138aa
[ "MIT" ]
8
2021-06-01T03:49:28.000Z
2022-03-18T02:27:43.000Z
scripts/frontpage_sqlite_migration.py
r-anime/modbot
52e8f251273435e0146bd8d6633ff22549e138aa
[ "MIT" ]
1
2021-04-20T05:30:46.000Z
2021-04-20T05:30:46.000Z
""" One-time migration script from sqlalchemy models and sqlite database to custom ORM & PostgreSQL. Not designed to work as part of the regular alembic system, merely placed here for archive purposes. Should never need to run this again. 2021-05-03 """ from datetime import datetime, timedelta import sqlite3 from d...
31.100775
113
0.667248
68306374b036197a8b5db541b5852c5594665fb4
291
py
Python
coursera/a_8_4_romeo.py
polde-live/learnpython
ff8ec96db1951d99797205d0bd491e542152a36f
[ "Unlicense" ]
null
null
null
coursera/a_8_4_romeo.py
polde-live/learnpython
ff8ec96db1951d99797205d0bd491e542152a36f
[ "Unlicense" ]
null
null
null
coursera/a_8_4_romeo.py
polde-live/learnpython
ff8ec96db1951d99797205d0bd491e542152a36f
[ "Unlicense" ]
null
null
null
# fname = raw_input("Enter file name: ") fname = "romeo.txt" fh = open(fname) lst = list() for line in fh: words = line.split() add_to_list(words) lst.sort() print lst
17.117647
40
0.597938
68311b9713af61f80d3b503c3c629b2c60cf2d3b
1,376
py
Python
Code/datasets/yahoo.py
jiahuanluo/label-inference-attacks
ac944418a207943f92f3b45b5c741aa41984a786
[ "MIT" ]
3
2022-01-14T10:15:41.000Z
2022-03-14T12:53:11.000Z
Code/datasets/yahoo.py
jiahuanluo/label-inference-attacks
ac944418a207943f92f3b45b5c741aa41984a786
[ "MIT" ]
1
2022-03-04T06:28:35.000Z
2022-03-04T06:28:35.000Z
Code/datasets/yahoo.py
jiahuanluo/label-inference-attacks
ac944418a207943f92f3b45b5c741aa41984a786
[ "MIT" ]
4
2021-11-20T09:11:19.000Z
2022-03-03T08:16:14.000Z
from datasets.dataset_setup import DatasetSetup from models import read_data_text if __name__ == '__main__': dataset_setup = YahooSetup() train_dataset = dataset_setup.get_transformed_dataset(file_path='D:/Datasets/yahoo_answers_csv/',train=True) print("s")
40.470588
112
0.694767
6831695451c0f9a55c30a633eac4c6bb030724d8
744
py
Python
scripts/cloud_function.py
sansbacon/mfl_playoff_leagues
33fd070be6e9e4d900acea2fbc9cf47068c655e0
[ "MIT" ]
null
null
null
scripts/cloud_function.py
sansbacon/mfl_playoff_leagues
33fd070be6e9e4d900acea2fbc9cf47068c655e0
[ "MIT" ]
2
2022-01-24T14:06:11.000Z
2022-01-24T14:48:02.000Z
scripts/cloud_function.py
sansbacon/mfl_playoff_leagues
33fd070be6e9e4d900acea2fbc9cf47068c655e0
[ "MIT" ]
null
null
null
from mfl_playoff_leagues import MFL def run(request): """Responds to any HTTP request. Args: request (flask.Request): HTTP request object. Returns: The response text or any set of values that can be turned into a Response object using `make_response <http://flask.poco...
26.571429
89
0.653226
6831702b54dbaea7d1289e2c3040f25037a1de8b
262
py
Python
third_party/pdfium/build/gyp_pdfium.py
satorumpen/node-pdfium-native
90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c
[ "BSD-2-Clause" ]
303
2015-03-13T08:31:24.000Z
2022-03-21T10:06:45.000Z
third_party/pdfium/build/gyp_pdfium.py
satorumpen/node-pdfium-native
90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c
[ "BSD-2-Clause" ]
15
2015-04-03T02:33:53.000Z
2020-01-28T10:42:29.000Z
third_party/pdfium/build/gyp_pdfium.py
satorumpen/node-pdfium-native
90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c
[ "BSD-2-Clause" ]
100
2015-03-13T08:28:56.000Z
2022-02-18T03:19:39.000Z
# Copyright 2014 PDFium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os path = os.path.abspath(os.path.split(__file__)[0]) execfile(os.path.join(path, 'gyp_pdfium'))
29.111111
72
0.751908
6831bfd553ffd66dddccc11e3bad3d1009993596
1,508
py
Python
docs/source/examples/complex.py
dev10110/pyObjective
6d831accaf5c67a8252b2dc744001dd9e5db5f4d
[ "MIT" ]
null
null
null
docs/source/examples/complex.py
dev10110/pyObjective
6d831accaf5c67a8252b2dc744001dd9e5db5f4d
[ "MIT" ]
null
null
null
docs/source/examples/complex.py
dev10110/pyObjective
6d831accaf5c67a8252b2dc744001dd9e5db5f4d
[ "MIT" ]
null
null
null
from pyObjective import Variable, Model import numpy as np """This example script is written to demonstrate the use of classes, and how more complicated models can be built, and still passed to the solver. As a rudimentary example, it has two cubes and a sphere, and we are trying to find the dimensions such that the...
24.322581
115
0.653183
6833573a8789e8696ad0b078fc32733ac35d4da7
3,005
py
Python
tests/test_inlinequeryresultgame.py
ehsanbarkhordar/botcup
4e45c3df2dceb8afe3833c0e89813fa9493295ed
[ "MIT" ]
1
2019-10-22T03:46:17.000Z
2019-10-22T03:46:17.000Z
python-telegram-bot/tests/test_inlinequeryresultgame.py
shyguy-ry/paddingCheckBot
d0a60cc2f397b9b8e4d60bdea699a94beaff2ea1
[ "Apache-2.0" ]
null
null
null
python-telegram-bot/tests/test_inlinequeryresultgame.py
shyguy-ry/paddingCheckBot
d0a60cc2f397b9b8e4d60bdea699a94beaff2ea1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2018 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
39.539474
85
0.702163
6833d75d22c19c184314891bfedfda10a657b443
835
py
Python
project/ui/sheet.py
surister/code-jam-3
9d13c4e3f99dd34b3ced699964fd1298c2c8df81
[ "MIT" ]
2
2018-10-30T13:03:43.000Z
2019-03-08T10:59:01.000Z
project/ui/sheet.py
skilldeliver/code-jam-3
9d13c4e3f99dd34b3ced699964fd1298c2c8df81
[ "MIT" ]
null
null
null
project/ui/sheet.py
skilldeliver/code-jam-3
9d13c4e3f99dd34b3ced699964fd1298c2c8df81
[ "MIT" ]
2
2019-07-21T15:32:41.000Z
2020-10-01T17:49:57.000Z
import pygame as pg
30.925926
87
0.602395
6837584b088def649cb22875398b8143f9388db8
5,398
py
Python
sandbox/bendpy/discont/dg_sine.py
MiroK/lega
ceb684ad639521e4a6e679188761984e2caa5611
[ "MIT" ]
3
2015-07-14T01:19:17.000Z
2020-12-10T14:00:45.000Z
sandbox/bendpy/discont/dg_sine.py
MiroK/lega
ceb684ad639521e4a6e679188761984e2caa5611
[ "MIT" ]
null
null
null
sandbox/bendpy/discont/dg_sine.py
MiroK/lega
ceb684ad639521e4a6e679188761984e2caa5611
[ "MIT" ]
null
null
null
# Analytical solutions for problems that can be solved with the two sine basis. ### # Problem one is # # -u`` = f in [0, pi] with u(0) = u(pi) = 0 for f which is # g on [0, pi/2) and h on [pi/2, pi] # ### # Problem two is # # u```` = f in [0, pi] with u(0) = u(pi) = 0, u`(0) = u`(pi) = 0 for f which is # g on [0, ...
31.022989
79
0.483142
6837ab42c2f65e2a2df59f39ed16d067247c7e29
7,642
py
Python
pyunity/values/quaternion.py
rayzchen/PyUnity
8ed436eca7a84f05190c1fa275c58da5c6059926
[ "MIT" ]
null
null
null
pyunity/values/quaternion.py
rayzchen/PyUnity
8ed436eca7a84f05190c1fa275c58da5c6059926
[ "MIT" ]
null
null
null
pyunity/values/quaternion.py
rayzchen/PyUnity
8ed436eca7a84f05190c1fa275c58da5c6059926
[ "MIT" ]
null
null
null
# Copyright (c) 2020-2022 The PyUnity Team # This file is licensed under the MIT License. # See https://docs.pyunity.x10.bz/en/latest/license.html """Class to represent a rotation in 3D space.""" __all__ = ["Quaternion", "QuaternionDiff"] from . import Mathf from .vector import Vector3, conv from .other import Locke...
29.392308
106
0.522245
6837cc30692c462a7a0c489ba23cd6a7b34c84cf
402
py
Python
db/db_connector.py
waynshang/stock_institution
72b0374ed148f1bdb4e276422a095411ab564455
[ "MIT" ]
1
2021-05-29T11:08:09.000Z
2021-05-29T11:08:09.000Z
db/db_connector.py
waynshang/stock_institution
72b0374ed148f1bdb4e276422a095411ab564455
[ "MIT" ]
1
2021-08-03T12:36:46.000Z
2021-08-03T12:36:46.000Z
db/db_connector.py
waynshang/stock_institution
72b0374ed148f1bdb4e276422a095411ab564455
[ "MIT" ]
null
null
null
from config import secret from utils import getLogger DEBUG = getLogger()
33.5
60
0.711443
683999d61c2d040fef9e9f17e0c36c60ebd1671e
5,147
py
Python
tests/docker/testhost/ui_test.py
huskywhale/safeplaces-frontend
bb46580837692a8ec6e02af3fa9d415242439b25
[ "MIT" ]
null
null
null
tests/docker/testhost/ui_test.py
huskywhale/safeplaces-frontend
bb46580837692a8ec6e02af3fa9d415242439b25
[ "MIT" ]
null
null
null
tests/docker/testhost/ui_test.py
huskywhale/safeplaces-frontend
bb46580837692a8ec6e02af3fa9d415242439b25
[ "MIT" ]
null
null
null
#from selenium.webdriver.remote import webdriver from selenium import webdriver #from selenium.webdriver.chrome import options from page_objects import EntryPage, LoginPage, RedactionPage, ContactTracePage, AddNewRecordPage, AddDataToRecordPage, StageForPublishingPage, PublishDataPage, SettingsPage, Tools import unitte...
45.149123
194
0.682922
683a3d763a7c968c779e9e79c5590b8d66a1acc0
2,532
py
Python
kenning/outputcollectors/name_printer.py
antmicro/edge-ai-tester
6b145145ed1cec206ae0229c846fb33d272f3ffa
[ "Apache-2.0" ]
20
2021-06-24T13:37:21.000Z
2022-03-25T10:50:26.000Z
kenning/outputcollectors/name_printer.py
antmicro/edge-ai-tester
6b145145ed1cec206ae0229c846fb33d272f3ffa
[ "Apache-2.0" ]
null
null
null
kenning/outputcollectors/name_printer.py
antmicro/edge-ai-tester
6b145145ed1cec206ae0229c846fb33d272f3ffa
[ "Apache-2.0" ]
1
2021-11-09T17:23:04.000Z
2021-11-09T17:23:04.000Z
""" A small, very basic OutputCollector-derived class used to test handling of multiple OutputCollectors in inference_runner scenario """ from kenning.core.outputcollector import OutputCollector from kenning.datasets.open_images_dataset import DectObject from typing import Any, Union import numpy as np from pathlib imp...
32.883117
110
0.540679
683a460d29953d3626084a99677147d11506c15d
291
py
Python
plugins/bilibili_activity/contents/unknown.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
2
2022-02-14T06:37:05.000Z
2022-03-30T12:18:15.000Z
plugins/bilibili_activity/contents/unknown.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
null
null
null
plugins/bilibili_activity/contents/unknown.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
null
null
null
from typing import Any from .. import util FORMAT = '''\ {username} https://t.bilibili.com/{id} qwq'''
22.384615
62
0.670103
683d706676e142f86e414d75b32aa04fdb20a6fb
4,159
py
Python
georiviere/observations/tests/test_views.py
georiviere/Georiviere-admin
4ac532f84a7a8fef3e01384fad63e8e288d397c0
[ "BSD-2-Clause" ]
7
2021-11-05T14:52:25.000Z
2022-03-24T21:18:02.000Z
georiviere/observations/tests/test_views.py
georiviere/Georiviere-admin
4ac532f84a7a8fef3e01384fad63e8e288d397c0
[ "BSD-2-Clause" ]
57
2021-11-02T10:27:34.000Z
2022-03-31T14:08:32.000Z
georiviere/observations/tests/test_views.py
georiviere/Georiviere-admin
4ac532f84a7a8fef3e01384fad63e8e288d397c0
[ "BSD-2-Clause" ]
1
2021-12-05T14:55:42.000Z
2021-12-05T14:55:42.000Z
from collections import OrderedDict from geotrek.authent.tests.factories import StructureFactory from georiviere.tests import CommonRiverTest from georiviere.observations.models import Station, ParameterTracking from .factories import ( StationFactory, StationProfileFactory, ParameterFactory )
40.77451
107
0.622265
683ea3da0b0b99dd76dd80bf6093b1dfbb0b984c
8,145
py
Python
lowendspirit/cloudflareAPI.py
boxcontrol/lowendspirit
d6ca41d14c1a974794c483d3baf885f1f3a40baf
[ "MIT" ]
3
2017-04-25T20:00:35.000Z
2021-12-03T01:28:38.000Z
lowendspirit/cloudflareAPI.py
boxcontrol/lowendspirit
d6ca41d14c1a974794c483d3baf885f1f3a40baf
[ "MIT" ]
null
null
null
lowendspirit/cloudflareAPI.py
boxcontrol/lowendspirit
d6ca41d14c1a974794c483d3baf885f1f3a40baf
[ "MIT" ]
2
2020-05-14T23:07:47.000Z
2022-01-08T16:49:05.000Z
import requests from requests.auth import HTTPBasicAuth import json import pprint
35.881057
108
0.59558
683f08f0ca695b37d41ba51ec1f2b90d9c25e9ea
1,085
py
Python
tests/unit_tests/test_features.py
constantinpape/mc_luigi
c8dac84ace7d422f7ec25d722204b25d625c84e1
[ "MIT" ]
null
null
null
tests/unit_tests/test_features.py
constantinpape/mc_luigi
c8dac84ace7d422f7ec25d722204b25d625c84e1
[ "MIT" ]
null
null
null
tests/unit_tests/test_features.py
constantinpape/mc_luigi
c8dac84ace7d422f7ec25d722204b25d625c84e1
[ "MIT" ]
null
null
null
import unittest import os from subprocess import call import z5py import vigra from test_class import McLuigiTestCase if __name__ == '__main__': unittest.main()
27.125
77
0.684793
683fdfc38c6be9c97c19d59c1851c1bf1394efb9
1,912
py
Python
src/images/migrations/0004_auto_20200713_1943.py
thesus/bokstaever
e0a5e2614dd222ccd56a8945aba4fd28de85dd31
[ "MIT" ]
null
null
null
src/images/migrations/0004_auto_20200713_1943.py
thesus/bokstaever
e0a5e2614dd222ccd56a8945aba4fd28de85dd31
[ "MIT" ]
7
2019-11-18T16:11:01.000Z
2019-11-18T16:11:04.000Z
src/images/migrations/0004_auto_20200713_1943.py
thesus/bokstaever
e0a5e2614dd222ccd56a8945aba4fd28de85dd31
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-13 19:43 from django.db import migrations, models import django.db.models.deletion
30.83871
88
0.550732
684030ef33682d87ebeb550a206ba38d9db656d9
4,733
py
Python
grblas/backends/python/matrix.py
jim22k/grblas-dev
5574894c6317c61fa747ac17b4112f2c6b3c4a6c
[ "Apache-2.0" ]
null
null
null
grblas/backends/python/matrix.py
jim22k/grblas-dev
5574894c6317c61fa747ac17b4112f2c6b3c4a6c
[ "Apache-2.0" ]
null
null
null
grblas/backends/python/matrix.py
jim22k/grblas-dev
5574894c6317c61fa747ac17b4112f2c6b3c4a6c
[ "Apache-2.0" ]
null
null
null
import numba import numpy as np from scipy.sparse import csr_matrix from .base import BasePointer, GraphBlasContainer from .context import handle_panic, return_error from .exceptions import GrB_Info # TODO: this is just the essential code; it needs to handle descriptors, masks, accumulators, etc
30.733766
97
0.603
684188842440f0302697bdfa81cff956f82483fa
266
py
Python
server/medication_icons/admin.py
nickdotreid/opioid-mat-decision-aid
bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1
[ "MIT" ]
null
null
null
server/medication_icons/admin.py
nickdotreid/opioid-mat-decision-aid
bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1
[ "MIT" ]
27
2018-09-30T07:59:21.000Z
2020-11-05T19:25:41.000Z
server/medication_icons/admin.py
nickdotreid/opioid-mat-decision-aid
bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1
[ "MIT" ]
null
null
null
from django.contrib import admin from imagekit.admin import AdminThumbnail from .models import Icon
26.6
60
0.785714
6842eadf7eb0da603518d7dfbb7c45e88afc4efa
2,933
py
Python
tests/test_storage.py
tefra/pytubefm
a7c5d6252584dc0abee946e707f496cecaebf1bb
[ "MIT" ]
null
null
null
tests/test_storage.py
tefra/pytubefm
a7c5d6252584dc0abee946e707f496cecaebf1bb
[ "MIT" ]
2
2019-01-06T00:16:23.000Z
2019-01-12T19:17:07.000Z
tests/test_storage.py
tefra/pytubefm
a7c5d6252584dc0abee946e707f496cecaebf1bb
[ "MIT" ]
null
null
null
import json import os import shutil import tempfile from datetime import timedelta from unittest import mock from unittest import TestCase from pytuber.storage import Registry
27.157407
69
0.545176
6842faa221c3f8cd72b5a952bcb528ae995ea413
2,636
py
Python
Solutions/187.py
ruppysuppy/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
70
2021-03-18T05:22:40.000Z
2022-03-30T05:36:50.000Z
Solutions/187.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
null
null
null
Solutions/187.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
30
2021-03-18T05:22:43.000Z
2022-03-17T10:25:18.000Z
""" Problem: You are given given a list of rectangles represented by min and max x- and y-coordinates. Compute whether or not a pair of rectangles overlap each other. If one rectangle completely covers another, it is considered overlapping. For example, given the following rectangles: { "top_left": (1, 4), "...
27.747368
85
0.621396
6845278d22fbe126696231718367291253a5efff
1,819
py
Python
benchmark/bench_asynckafka.py
askuratovsky/asynckafka
16be6d89b0e5c18899047c1c5abd899edec1204b
[ "MIT" ]
31
2018-02-28T09:43:01.000Z
2022-01-06T14:51:03.000Z
benchmark/bench_asynckafka.py
askuratovsky/asynckafka
16be6d89b0e5c18899047c1c5abd899edec1204b
[ "MIT" ]
7
2018-11-07T20:21:57.000Z
2022-01-06T14:50:58.000Z
benchmark/bench_asynckafka.py
askuratovsky/asynckafka
16be6d89b0e5c18899047c1c5abd899edec1204b
[ "MIT" ]
6
2019-05-17T06:25:07.000Z
2022-01-15T13:05:29.000Z
import asyncio from asynckafka import Producer, Consumer import config import utils loop = asyncio.get_event_loop() if __name__ == "__main__": loop.run_until_complete(main_coro())
27.984615
78
0.68829
6849219d3c1b5f5dd246b210ec443de592738989
744
py
Python
lcd/interrupts/interrupt3.py
BornToDebug/homeStruction
354e03c05cb363d8397d0e2d7afeb78a029266f9
[ "Apache-2.0" ]
6
2016-08-31T16:46:54.000Z
2017-09-15T19:34:30.000Z
lcd/interrupts/interrupt3.py
BornToDebug/homeStruction
354e03c05cb363d8397d0e2d7afeb78a029266f9
[ "Apache-2.0" ]
4
2016-09-02T09:18:41.000Z
2016-09-02T09:24:08.000Z
lcd/interrupts/interrupt3.py
BornToDebug/homeStruction
354e03c05cb363d8397d0e2d7afeb78a029266f9
[ "Apache-2.0" ]
null
null
null
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(24, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) raw_input("Press Enter when ready\n>") GPIO.add_event_detect(18, GPIO.FALLING, callback=my_callback, bouncetime=300) ...
27.555556
78
0.77957
6849e5b2237ba2dd6b7a8100fe52a7772987a103
2,465
py
Python
tests/module/module_topology_distmat_test.py
MD-Studio/MDInteract
55bb51d27ec8d4095118837a997eea7467c2ac53
[ "Apache-2.0" ]
4
2019-06-24T12:56:28.000Z
2021-03-27T17:32:17.000Z
tests/module/module_topology_distmat_test.py
MD-Studio/MDInteract
55bb51d27ec8d4095118837a997eea7467c2ac53
[ "Apache-2.0" ]
1
2020-09-25T12:15:27.000Z
2020-10-11T10:28:30.000Z
tests/module/module_topology_distmat_test.py
MD-Studio/MDInteract
55bb51d27ec8d4095118837a997eea7467c2ac53
[ "Apache-2.0" ]
5
2019-09-12T02:35:04.000Z
2021-07-30T18:05:28.000Z
# -*- coding: utf-8 -*- """ file: module_topology_distmat_test.py Unit tests for distance matrix computations """ import os from pandas import DataFrame from interact.md_system import System from tests.module.unittest_baseclass import UnittestPythonCompatibility
30.8125
84
0.664909
684a7ad5dfe8d2dab224d7cde08220c071cef36c
1,010
py
Python
src/kgmk/ruijianime/scrape/comic_ids/all.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/ruijianime/scrape/comic_ids/all.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/ruijianime/scrape/comic_ids/all.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
import typing import bs4 import requests
16.833333
31
0.515842
684aa04b39502e680a61c0b2aa16db3b3d2dae83
6,241
py
Python
pymdownx/pathconverter.py
willstott101/pymdown-extensions
11796a749d781b12db43c3967af66e901c1dc6d8
[ "MIT" ]
null
null
null
pymdownx/pathconverter.py
willstott101/pymdown-extensions
11796a749d781b12db43c3967af66e901c1dc6d8
[ "MIT" ]
2
2019-12-10T23:12:38.000Z
2020-02-20T23:27:26.000Z
pymdownx/pathconverter.py
Richienb/pymdown-extensions
2385c38bf6988c86c553557e248c4d8c3140dfc1
[ "MIT" ]
null
null
null
""" Path Converter. pymdownx.pathconverter An extension for Python Markdown. An extension to covert tag paths to relative or absolute: Given an absolute base and a target relative path, this extension searches for file references that are relative and converts them to a path relative to the base path. -or- Given a...
34.865922
120
0.619452
684b4c2dccb681c7ad6626bfed2957b27acae3cb
879
py
Python
backdoors/shell/__pupy/pupy/packages/src/VideoCapture/src/fixhtml.py
mehrdad-shokri/backdoorme
f9755ca6cec600335e681752e7a1c5c617bb5a39
[ "MIT" ]
796
2015-10-09T20:30:04.000Z
2022-03-24T19:07:32.000Z
backdoors/shell/__pupy/pupy/packages/src/VideoCapture/src/fixhtml.py
mehrdad-shokri/backdoorme
f9755ca6cec600335e681752e7a1c5c617bb5a39
[ "MIT" ]
169
2015-11-26T16:14:02.000Z
2020-08-04T21:51:58.000Z
backdoors/shell/__pupy/pupy/packages/src/VideoCapture/src/fixhtml.py
mehrdad-shokri/backdoorme
f9755ca6cec600335e681752e7a1c5c617bb5a39
[ "MIT" ]
168
2015-11-27T23:21:04.000Z
2022-01-23T06:14:33.000Z
import os, string oldWin = '''span { font-family: Verdana; background: #e0e0d0; font-size: 10pt; } </style> </head> <body bgcolor="#e0e0d0"> ''' oldLinux = '''span { font-family: Verdana; background: #e0e0d0; font-size: 13pt; } </style> </head> <body bgcolor="#e0e0d0"> ''' new = '''span { font-family: Verdana...
18.3125
53
0.571104
684d4d1dfa257a989173c87dfaa7f66ed6d73ef4
1,191
py
Python
pyaww/static_header.py
ammarsys/pyanywhere-wrapper
d8cde2d29900c25fc7ab3cd8103923f727b5dade
[ "MIT" ]
5
2021-06-25T14:34:52.000Z
2021-07-04T14:15:13.000Z
pyaww/static_header.py
ammarsys/pyanywhere-wrapper
d8cde2d29900c25fc7ab3cd8103923f727b5dade
[ "MIT" ]
1
2021-12-12T00:47:25.000Z
2022-01-24T17:19:43.000Z
pyaww/static_header.py
ammarsys/pyanywhere-wrapper
d8cde2d29900c25fc7ab3cd8103923f727b5dade
[ "MIT" ]
1
2021-12-14T15:44:52.000Z
2021-12-14T15:44:52.000Z
from typing import TYPE_CHECKING if TYPE_CHECKING: from .webapp import WebApp
26.466667
109
0.581864
684e278a6a7cc07b68dfd75e5943c572c4fc026f
3,354
py
Python
mmdet/core/utils/my_hook.py
ydiller/NoMoreNMS
1c1557357e5312c287f0971c840060deb1bcd039
[ "Apache-2.0" ]
null
null
null
mmdet/core/utils/my_hook.py
ydiller/NoMoreNMS
1c1557357e5312c287f0971c840060deb1bcd039
[ "Apache-2.0" ]
null
null
null
mmdet/core/utils/my_hook.py
ydiller/NoMoreNMS
1c1557357e5312c287f0971c840060deb1bcd039
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import copy import logging from collections import defaultdict from itertools import chain from torch.nn.utils import clip_grad from mmcv.utils import TORCH_VERSION, _BatchNorm, digit_version # from ..dist_utils import allreduce_grads # from ..fp16_utils import LossScal...
36.857143
78
0.613298
684f7a6494a0ed2b61957330a13887c3aaff66e6
436
py
Python
tests/fixtures/reporters/feed.py
kuc2477/news
215f87e6ce1a7fc99175596e6fd5b4b50a3179c6
[ "MIT" ]
2
2016-01-21T04:16:57.000Z
2016-04-27T04:46:13.000Z
tests/fixtures/reporters/feed.py
kuc2477/news
215f87e6ce1a7fc99175596e6fd5b4b50a3179c6
[ "MIT" ]
null
null
null
tests/fixtures/reporters/feed.py
kuc2477/news
215f87e6ce1a7fc99175596e6fd5b4b50a3179c6
[ "MIT" ]
null
null
null
import pytest from news.reporters import ReporterMeta from news.reporters.feed import AtomReporter, RSSReporter
27.25
57
0.805046
6850a777d683c3f59834728ab8d549add89917c0
4,945
py
Python
deployer/main.py
sportsy/deployer
e5dff46707773992aad7bcf47539b1d59ac3ee2c
[ "MIT" ]
null
null
null
deployer/main.py
sportsy/deployer
e5dff46707773992aad7bcf47539b1d59ac3ee2c
[ "MIT" ]
null
null
null
deployer/main.py
sportsy/deployer
e5dff46707773992aad7bcf47539b1d59ac3ee2c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import os import ConfigParser import json import time import threading from distutils.core import setup import pika import boto import pusherclient from boto.sqs.message import RawMessage # set defaults channel = None global pusher config = ConfigParser.ConfigParser() def main():...
29.969697
173
0.61092
68510211118d2b8c5a255e3f39fd3647748d0494
245
py
Python
nipype/workflows/dmri/mrtrix/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
nipype/workflows/dmri/mrtrix/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
nipype/workflows/dmri/mrtrix/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
2
2017-09-23T16:22:00.000Z
2019-08-01T14:18:52.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from .diffusion import create_mrtrix_dti_pipeline from .connectivity_mapping import create_connectivity_pipeline from .group_connectivity import (create_group_connectivity_pipeline)
40.833333
68
0.857143
6851217599a86b71913e6f6728bab12730f9d8ae
1,528
py
Python
main.py
dunderstab/SembleLang
395d30419d52107b2fa248555b839bd852992594
[ "MIT" ]
null
null
null
main.py
dunderstab/SembleLang
395d30419d52107b2fa248555b839bd852992594
[ "MIT" ]
null
null
null
main.py
dunderstab/SembleLang
395d30419d52107b2fa248555b839bd852992594
[ "MIT" ]
null
null
null
import src.lex import src.parse import src.eval import src.tools import src.optimize import src.pre import re import sys if __name__ == '__main__': #print(src.lex.checkFuncCall("hello(helo,hello, h)")) #if re.match(r"^\[\d+\]\[(.*\,)*(.*)\]$", "[7][6, 6,]"): # print("hello") #print(src.lex.checkIndexRef("h...
25.04918
94
0.59555
6851afbd7c56c12caaf48e494760ed9de7cf64a5
5,005
py
Python
lib/browser.py
qwghlm/WhensMyBus
bef206c15a5efdeeca234a9f31d98b2ec33342af
[ "MIT" ]
4
2015-01-02T20:31:43.000Z
2017-03-02T11:27:39.000Z
lib/browser.py
qwghlm/WhensMyBus
bef206c15a5efdeeca234a9f31d98b2ec33342af
[ "MIT" ]
1
2016-10-17T21:23:48.000Z
2016-10-17T21:23:48.000Z
lib/browser.py
qwghlm/WhensMyBus
bef206c15a5efdeeca234a9f31d98b2ec33342af
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Data browser for When's My Transport, with caching and JSON/XML parsing """ import json import logging import os import urllib2 import time from xml.dom.minidom import parseString from xml.etree.ElementTree import fromstring from lib.exceptions import WhensMyTransportException # # API URLs ...
39.409449
120
0.600999
6851b38c6e5c265b8398f65f866f61d65d0c141e
1,099
py
Python
oommfpy/tools/plot_tools.py
davidcortesortuno/oommfpy
daa56f96fd0d301d42a4bc260f7142f0a8e62f8d
[ "BSD-2-Clause" ]
9
2019-05-25T07:42:14.000Z
2022-02-22T21:08:47.000Z
oommfpy/tools/plot_tools.py
davidcortesortuno/oommfpy
daa56f96fd0d301d42a4bc260f7142f0a8e62f8d
[ "BSD-2-Clause" ]
9
2019-05-25T07:41:57.000Z
2021-11-27T14:12:28.000Z
oommfpy/tools/plot_tools.py
davidcortesortuno/oommfpy
daa56f96fd0d301d42a4bc260f7142f0a8e62f8d
[ "BSD-2-Clause" ]
7
2019-07-21T05:42:39.000Z
2022-03-28T13:57:03.000Z
import colorsys import numpy as np # ----------------------------------------------------------------------------- # Utilities to generate a HSL colourmap from the magnetisation field data def generate_colours(field_data, colour_model='rgb'): """ field_data :: (n, 3) array """ hls = np.ones_l...
28.921053
79
0.44404
6853ac15da1a977cf572b5b81090168754bb6148
9,165
py
Python
RecSysFramework/Evaluation/Comparator.py
damicoedoardo/NNMF
69fff4848b3243a2d3347bec3e1c9a01ae40e51a
[ "MIT" ]
2
2020-12-11T12:46:00.000Z
2021-08-17T13:29:41.000Z
RecSysFramework/Evaluation/Comparator.py
damicoedoardo/NNMF
69fff4848b3243a2d3347bec3e1c9a01ae40e51a
[ "MIT" ]
null
null
null
RecSysFramework/Evaluation/Comparator.py
damicoedoardo/NNMF
69fff4848b3243a2d3347bec3e1c9a01ae40e51a
[ "MIT" ]
null
null
null
''' Created on Wed Sep 18 2019 @author XXX ''' import numpy as np import scipy.sparse as sps import time import sys import copy from tqdm import tqdm from enum import Enum from RecSysFramework.Utils import seconds_to_biggest_unit from RecSysFramework.Utils.compute_popularity import compute_popularity_user from RecSys...
41.098655
167
0.600327
6853c8f28ea7f7496002136021b31195092bc07c
3,233
py
Python
app/grid_model.py
vinhta314/game-of-life-visualiser
957ba490c12836e38e6b40024046c10466780739
[ "MIT" ]
null
null
null
app/grid_model.py
vinhta314/game-of-life-visualiser
957ba490c12836e38e6b40024046c10466780739
[ "MIT" ]
null
null
null
app/grid_model.py
vinhta314/game-of-life-visualiser
957ba490c12836e38e6b40024046c10466780739
[ "MIT" ]
null
null
null
import numpy as np
32.989796
110
0.590473
68584b0872eb1fd43baeac7af1a1487c2977e004
21,365
py
Python
session.py
cheng6076/virnng
d790c02833865c43cb8afb2552a75c9445365f24
[ "Apache-2.0" ]
13
2017-05-18T22:44:22.000Z
2020-09-16T14:19:49.000Z
session.py
cheng6076/virnng
d790c02833865c43cb8afb2552a75c9445365f24
[ "Apache-2.0" ]
1
2018-07-02T12:08:15.000Z
2018-07-02T12:08:15.000Z
session.py
cheng6076/virnng
d790c02833865c43cb8afb2552a75c9445365f24
[ "Apache-2.0" ]
3
2017-11-08T11:51:17.000Z
2019-11-03T23:18:50.000Z
from encoder import Encoder from decoder import Decoder from parser import Parser from baseline import * from language_model import LanguageModel from util import Reader import dynet as dy from misc import compute_eval_score, compute_perplexity import os initializers = {'glorot': dy.GlorotInitializer(), ...
42.475149
148
0.514299
68587aa670f83d82520736428332f2bf416f400e
254
py
Python
funcion_mutacion.py
J0SU3IC3/Proyecto_Algoritmo_Genetico
bcf98d335def651726b17154624c96ee3b8cfdeb
[ "BSD-2-Clause" ]
null
null
null
funcion_mutacion.py
J0SU3IC3/Proyecto_Algoritmo_Genetico
bcf98d335def651726b17154624c96ee3b8cfdeb
[ "BSD-2-Clause" ]
null
null
null
funcion_mutacion.py
J0SU3IC3/Proyecto_Algoritmo_Genetico
bcf98d335def651726b17154624c96ee3b8cfdeb
[ "BSD-2-Clause" ]
null
null
null
import random
19.538462
44
0.681102
685b7db6474e2581fd6fc7a88d44f479e33ae88c
4,724
py
Python
examples/import_hostgroups.py
jkraenzle/steelscript-netprofiler
970a8f492203875a35cc13e94237740b31eb01b4
[ "MIT" ]
5
2016-02-29T01:16:36.000Z
2019-12-08T19:04:54.000Z
examples/import_hostgroups.py
jkraenzle/steelscript-netprofiler
970a8f492203875a35cc13e94237740b31eb01b4
[ "MIT" ]
5
2015-08-18T19:07:44.000Z
2020-06-04T15:56:38.000Z
examples/import_hostgroups.py
jkraenzle/steelscript-netprofiler
970a8f492203875a35cc13e94237740b31eb01b4
[ "MIT" ]
3
2016-02-29T01:16:37.000Z
2020-06-04T00:43:38.000Z
#!/usr/bin/env python # Copyright (c) 2019 Riverbed Technology, Inc. # # This software is licensed under the terms and conditions of the MIT License # accompanying the software ("License"). This software is distributed "AS IS" # as set forth in the License. import csv import sys import string import optparse from co...
34.231884
78
0.605419
685bdb02c954b53c73259dab606713b94ba02c39
330
py
Python
exec.py
developerHaneum/listBug
d3828813b36a533aef93ac691eeafb08a62a03c0
[ "MIT" ]
2
2021-07-07T06:38:05.000Z
2021-07-07T07:07:35.000Z
exec.py
developerHaneum/listBug
d3828813b36a533aef93ac691eeafb08a62a03c0
[ "MIT" ]
null
null
null
exec.py
developerHaneum/listBug
d3828813b36a533aef93ac691eeafb08a62a03c0
[ "MIT" ]
1
2021-07-07T06:38:06.000Z
2021-07-07T06:38:06.000Z
from clint.textui import * Print()
22
78
0.490909
685bf7a01002d00376abfb0f9c41e4c0b30ff038
229
py
Python
datasets/hscic/scrape.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
null
null
null
datasets/hscic/scrape.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
11
2015-03-02T16:30:20.000Z
2016-11-29T12:16:15.000Z
datasets/hscic/scrape.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
2
2020-12-25T20:38:31.000Z
2021-04-11T07:35:01.000Z
from datasets.hscic.hscic_datasets import scrape as datasets_scrape from datasets.hscic.hscic_indicators import scrape as indicators_scrape
22.9
71
0.829694
685caf0e5603d61d8ec4f3adc7a5d8734b0c911d
5,754
py
Python
src/tests/behave/api/features/client.py
shaneutt/mercury
d8d3c9a86ab3235d4e36583fcee6f656e5209b7e
[ "Apache-2.0" ]
4
2017-07-21T20:56:46.000Z
2018-04-30T13:37:37.000Z
src/tests/behave/api/features/client.py
jr0d/mercury
d8d3c9a86ab3235d4e36583fcee6f656e5209b7e
[ "Apache-2.0" ]
11
2017-08-24T04:55:58.000Z
2021-12-13T19:36:21.000Z
src/tests/behave/api/features/client.py
shaneutt/mercury
d8d3c9a86ab3235d4e36583fcee6f656e5209b7e
[ "Apache-2.0" ]
6
2017-08-18T15:59:15.000Z
2018-08-21T19:54:34.000Z
import copy import json import requests import datetime from src.tests.behave.common.config import get_conflagration
36.649682
79
0.550574
685d6be8bc9e1c64b0fa673c0b867858db37f70e
10,556
py
Python
Instrument_Examples/DMM6500/Upload_and_Execute_a_Test_Sequence_to_the_Series_2260B_Power_Supply/Upload_and_Execute_Test_Sequence_File_to_2260B_Power_Supply_Rev_B.py
398786172/keithley
f78c5220841775a45ae60645c774e8b443b02ec3
[ "BSD-Source-Code" ]
31
2019-04-11T14:25:39.000Z
2022-03-18T15:09:33.000Z
Instrument_Examples/DMM6500/Upload_and_Execute_a_Test_Sequence_to_the_Series_2260B_Power_Supply/Upload_and_Execute_Test_Sequence_File_to_2260B_Power_Supply_Rev_B.py
398786172/keithley
f78c5220841775a45ae60645c774e8b443b02ec3
[ "BSD-Source-Code" ]
27
2019-04-10T20:21:52.000Z
2021-12-09T01:59:32.000Z
Instrument_Examples/DMM6500/Upload_and_Execute_a_Test_Sequence_to_the_Series_2260B_Power_Supply/Upload_and_Execute_Test_Sequence_File_to_2260B_Power_Supply_Rev_B.py
398786172/keithley
f78c5220841775a45ae60645c774e8b443b02ec3
[ "BSD-Source-Code" ]
30
2019-06-08T09:38:20.000Z
2022-03-18T15:10:37.000Z
"""*********************************************************** *** Copyright Tektronix, Inc. *** *** See www.tek.com/sample-license for licensing terms. *** ***********************************************************""" import socket import struct import math import time import sys echo_cmd =...
38.108303
120
0.597764
685e4d13ea104ac619e52a74bbf71675b69b19ec
1,143
py
Python
autopilot.py
SpeedrunnerG55/EDAutopilot
e8553f66e51731a3e8ed04f168e36524cdd0678d
[ "MIT" ]
5
2020-05-08T12:58:39.000Z
2020-06-21T23:39:00.000Z
autopilot.py
SpeedrunnerG55/EDAutopilot
e8553f66e51731a3e8ed04f168e36524cdd0678d
[ "MIT" ]
null
null
null
autopilot.py
SpeedrunnerG55/EDAutopilot
e8553f66e51731a3e8ed04f168e36524cdd0678d
[ "MIT" ]
null
null
null
import cv2 from dev_autopilot import autopilot from emulation import get_bindings, clear_input import threading import kthread from pynput import keyboard from programInfo import showInfo STATE = 0 showInfo(); # Collect events until released with keyboard.Listener(on_press=on_press,on_release=on_release...
25.4
77
0.63867
685ec69b006b0a9078bc34ecf58f2a15ca333c06
3,284
py
Python
colour/examples/temperature/examples_cct.py
soma2000-lang/colour
bb7ee23ac65e09613af78bd18dd98dffb1a2904a
[ "BSD-3-Clause" ]
1
2022-02-12T06:28:15.000Z
2022-02-12T06:28:15.000Z
colour/examples/temperature/examples_cct.py
soma2000-lang/colour
bb7ee23ac65e09613af78bd18dd98dffb1a2904a
[ "BSD-3-Clause" ]
null
null
null
colour/examples/temperature/examples_cct.py
soma2000-lang/colour
bb7ee23ac65e09613af78bd18dd98dffb1a2904a
[ "BSD-3-Clause" ]
null
null
null
""" Showcases correlated colour temperature computations. """ import colour from colour.utilities import message_box message_box("Correlated Colour Temperature Computations") cmfs = colour.MSDS_CMFS["CIE 1931 2 Degree Standard Observer"] illuminant = colour.SDS_ILLUMINANTS["D65"] xy = colour.XYZ_to_xy(colour.sd_to_X...
32.196078
78
0.739647
685ee66a7e20613fe4b2dd17fc3161351e75e8b6
9,940
py
Python
qsync.py
Bibliome/misc-utils
e44ac3232f2763836d844576d812a552e54e8a38
[ "MIT" ]
1
2017-02-24T09:57:24.000Z
2017-02-24T09:57:24.000Z
qsync.py
Bibliome/misc-utils
e44ac3232f2763836d844576d812a552e54e8a38
[ "MIT" ]
4
2018-10-10T09:59:48.000Z
2019-01-17T15:32:48.000Z
qsync.py
Bibliome/misc-utils
e44ac3232f2763836d844576d812a552e54e8a38
[ "MIT" ]
null
null
null
#!/usr/bin/env python import drmaa import shlex from optparse import OptionParser from sys import stderr, stdin, exit from datetime import datetime import traceback def Stop(pool, jt, info): '''Job failure function that stops synchronization.''' pool.shall_stop = True pool.all_done = False pool.failed...
40.242915
224
0.593763
685f5db033e1479b41714578109a39dd1abc851f
678
py
Python
setup.py
Bpowers4/jupyterlab-heroku
817a841a54f6196942e152704d1e654301def5d9
[ "BSD-3-Clause" ]
null
null
null
setup.py
Bpowers4/jupyterlab-heroku
817a841a54f6196942e152704d1e654301def5d9
[ "BSD-3-Clause" ]
null
null
null
setup.py
Bpowers4/jupyterlab-heroku
817a841a54f6196942e152704d1e654301def5d9
[ "BSD-3-Clause" ]
null
null
null
import os import setuptools with open("README.md", "r") as fh: long_description = fh.read() here = os.path.dirname(os.path.abspath(__file__)) version_ns = {} with open(os.path.join(here, "jupyterlab_heroku", "_version.py")) as f: exec(f.read(), {}, version_ns) setuptools.setup( name="jupyterlab_heroku", ...
29.478261
73
0.715339
685f6ab1c2d0c0bbd4bb81f5a339300b7344f2f1
258
py
Python
placement/serializers.py
uditpd3000/SCP-Backend
604c9040faf5652d31bf923d647684ff8f272dc7
[ "Apache-2.0" ]
5
2021-06-21T18:36:56.000Z
2021-08-04T04:07:56.000Z
placement/serializers.py
uditpd3000/SCP-Backend
604c9040faf5652d31bf923d647684ff8f272dc7
[ "Apache-2.0" ]
23
2021-05-31T13:41:13.000Z
2021-07-23T08:12:17.000Z
placement/serializers.py
uditpd3000/SCP-Backend
604c9040faf5652d31bf923d647684ff8f272dc7
[ "Apache-2.0" ]
30
2021-05-31T10:53:14.000Z
2022-03-01T12:56:36.000Z
from rest_framework import serializers from .models import Placement
28.666667
88
0.72093
686056fb7ad084c4bde838715d568d384a2cd5ae
509
py
Python
tutorials/W0D1_PythonWorkshop1/solutions/W0D1_Tutorial1_Solution_695309c2.py
liuxiaomiao123/NeuroMathAcademy
16a7969604a300bf9fbb86f8a5b26050ebd14c65
[ "CC-BY-4.0" ]
26
2020-07-01T20:38:44.000Z
2021-06-20T06:37:27.000Z
tutorials/W0D1_PythonWorkshop1/solutions/W0D1_Tutorial1_Solution_695309c2.py
NinaHKivanani/course-content
3c91dd1a669cebce892486ba4f8086b1ef2e1e49
[ "CC-BY-4.0" ]
3
2020-06-23T03:46:36.000Z
2020-07-07T05:26:01.000Z
tutorials/W0D1_PythonWorkshop1/solutions/W0D1_Tutorial1_Solution_695309c2.py
NinaHKivanani/course-content
3c91dd1a669cebce892486ba4f8086b1ef2e1e49
[ "CC-BY-4.0" ]
16
2020-07-06T06:48:02.000Z
2021-07-30T08:18:52.000Z
# set random number generator np.random.seed(2020) # initialize step_end and v step_end = int(t_max / dt) v = el t = 0 with plt.xkcd(): # initialize the figure plt.figure() plt.title('$V_m$ with random I(t)') plt.xlabel('time (s)') plt.ylabel(r'$V_m$ (V)') # loop for step_end steps for step in range(s...
20.36
79
0.565815
6861bdce3968ccd85c24124237aad059f44788f8
1,509
py
Python
varclr/utils/similarity_search.py
qibinc/VarCLR
1c59ae4a8e27b71de2f57db13d3278a8aecfc9e9
[ "MIT" ]
28
2021-12-03T22:39:10.000Z
2022-03-13T02:38:04.000Z
varclr/utils/similarity_search.py
qibinc/VarCLR
1c59ae4a8e27b71de2f57db13d3278a8aecfc9e9
[ "MIT" ]
1
2021-12-16T11:33:35.000Z
2021-12-27T00:52:59.000Z
varclr/utils/similarity_search.py
qibinc/VarCLR
1c59ae4a8e27b71de2f57db13d3278a8aecfc9e9
[ "MIT" ]
3
2021-12-05T18:30:19.000Z
2021-12-16T11:01:28.000Z
import sys from collections import defaultdict import torch from varclr.utils.infer import MockArgs from varclr.data.preprocessor import CodePreprocessor if __name__ == "__main__": ret = torch.load(sys.argv[2]) vars, embs = ret["vars"], ret["embs"] embs /= embs.norm(dim=1, keepdim=True) embs = embs.c...
32.804348
81
0.524851
68620b151d37333bd311ec05c4015d1947dbf90c
11,285
py
Python
plugin/CustomerSupportArchive/chipDiagnostics/tools/flowcorr.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
125
2015-01-22T05:43:23.000Z
2022-03-22T17:15:59.000Z
plugin/CustomerSupportArchive/Lane_Diagnostics/tools/flowcorr.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
59
2015-02-10T09:13:06.000Z
2021-11-11T02:32:38.000Z
plugin/CustomerSupportArchive/autoCal/tools/flowcorr.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
98
2015-01-17T01:25:10.000Z
2022-03-18T17:29:42.000Z
import os import numpy as np from . import imtools, datprops from .datfile import DatFile from .chiptype import ChipType moduleDir = os.path.abspath( os.path.dirname( __file__ ) )
49.933628
203
0.589012
6862d3264687638cc92a1818114ac16c66aeabc5
688
py
Python
classifier/cal.py
EnviewFulda/SeagrassExplorer
0f6a0e15d1ffb8220e951c52ec1634e7a0763f4e
[ "BSD-2-Clause" ]
null
null
null
classifier/cal.py
EnviewFulda/SeagrassExplorer
0f6a0e15d1ffb8220e951c52ec1634e7a0763f4e
[ "BSD-2-Clause" ]
null
null
null
classifier/cal.py
EnviewFulda/SeagrassExplorer
0f6a0e15d1ffb8220e951c52ec1634e7a0763f4e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import numpy as np def ini(): '''initialization Args: Returns: ''' pass def accuracy(Yte_predict, Yte): '''verification of the correct label with the predicted one Args: Yte_predict (list): predicted labels (by computer) Yte (list): true labels ...
16.780488
69
0.616279
6864b398d75f0afbf2d3bc574f814cc0b57e494e
2,354
py
Python
recohut/models/dnn.py
sparsh-ai/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
null
null
null
recohut/models/dnn.py
sparsh-ai/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
1
2022-01-12T05:40:57.000Z
2022-01-12T05:40:57.000Z
recohut/models/dnn.py
RecoHut-Projects/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/models/models.dnn.ipynb (unless otherwise specified). __all__ = ['Multi_Layer_Perceptron', 'CollabFNet'] # Cell import torch import torch.nn as nn import torch.nn.functional as F # Cell # Cell
37.967742
104
0.65463
6865502dfb12453a7c664da7a679fbf4159aa717
477
py
Python
src/features/test_outlier_correction.py
KennedyMurphy/elomerchant
b6561de4e13a0bcfcda72bb99cec722a58e8f09e
[ "FTL" ]
null
null
null
src/features/test_outlier_correction.py
KennedyMurphy/elomerchant
b6561de4e13a0bcfcda72bb99cec722a58e8f09e
[ "FTL" ]
12
2019-12-26T17:02:54.000Z
2022-03-21T22:16:55.000Z
src/features/test_outlier_correction.py
KennedyMurphy/elomerchant
b6561de4e13a0bcfcda72bb99cec722a58e8f09e
[ "FTL" ]
null
null
null
import unittest import pandas as pd import numpy as np import src.features.outlier_correction as oc
26.5
63
0.677149
68691956fa1e08fddebbb9eacec7b248df8c8d1e
3,613
py
Python
Practica2/ejercicio1.1.py
martapastor/GIW-Practicas
550e98b376fdea51c8594da6d1b616286c74bed5
[ "MIT" ]
null
null
null
Practica2/ejercicio1.1.py
martapastor/GIW-Practicas
550e98b376fdea51c8594da6d1b616286c74bed5
[ "MIT" ]
null
null
null
Practica2/ejercicio1.1.py
martapastor/GIW-Practicas
550e98b376fdea51c8594da6d1b616286c74bed5
[ "MIT" ]
null
null
null
import csv import operator if __name__ == "__main__": # We use try-except statements to properly handle errors, as in case the # input file does not exist in the directory. try: # We open the .csv file loading the filds separated by a ; delimiter: csv_archivo_locales = open("Locales.csv", e...
46.320513
99
0.65375
6869245bc8389ed7735b3d7033bfcf7e4bd56869
3,076
py
Python
sensor_test.py
YoungYoung619/driving-desicion-in-carla
7641c4b970d780b7c9ea242c72f186d8dbe5d296
[ "MIT" ]
1
2022-03-31T08:30:55.000Z
2022-03-31T08:30:55.000Z
sensor_test.py
YoungYoung619/driving-desicion-in-carla
7641c4b970d780b7c9ea242c72f186d8dbe5d296
[ "MIT" ]
1
2019-08-02T12:24:02.000Z
2019-08-02T12:24:02.000Z
sensor_test.py
YoungYoung619/driving-desicion-in-carla
7641c4b970d780b7c9ea242c72f186d8dbe5d296
[ "MIT" ]
3
2020-05-17T11:21:55.000Z
2021-11-15T06:32:01.000Z
""" Copyright (c) College of Mechatronics and Control Engineering, Shenzhen University. All rights reserved. Description : AuthorTeam Li """ import glob, os, sys, time from threading import Thread import cv2 from carla_utils.world_ops import * from carla_utils.sensor_ops import * try: sys.path.append(glob.glob...
32.723404
102
0.619636
68696cfa2203f9ed2457ed75b22b08dfe6fa5fca
2,792
py
Python
config.py
aEnigmatic/nwwatch
d9d81501d0d5eb717fcf4d2bb3de2b16180b23d2
[ "MIT" ]
null
null
null
config.py
aEnigmatic/nwwatch
d9d81501d0d5eb717fcf4d2bb3de2b16180b23d2
[ "MIT" ]
null
null
null
config.py
aEnigmatic/nwwatch
d9d81501d0d5eb717fcf4d2bb3de2b16180b23d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os if not os.path.isfile("/proc/sys/fs/binfmt_misc/WSLInterop"): # windows LOGFILE = os.environ['LOCALAPPDATA'] + "\\AGS\\New World\\Game.log" else: # wsl LOGFILE = os.popen('cmd.exe /c "echo %LocalAppData%"').read().strip() + "\\AGS\\New World\\Game.log" LOGFILE = os.popen("wslpath ...
42.30303
152
0.678009
686a214c567ebd3ab53753f4ce246c0fac04cd72
109
py
Python
Python/Arrays/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
2
2019-08-07T19:58:20.000Z
2019-08-27T00:06:09.000Z
Python/Arrays/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
1
2020-06-11T19:09:48.000Z
2020-06-11T19:09:48.000Z
Python/Arrays/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
7
2019-08-27T00:06:11.000Z
2021-12-11T10:01:45.000Z
#author SANKALP SAXENA
10.9
31
0.614679
686c412499560689228388863939962fab82d49c
2,508
py
Python
test/connect/test_KafkaConnection.py
pip-services3-python/pip-services3-kafka-python
8c6df619af56c033de68b518004c93e45a335517
[ "MIT" ]
null
null
null
test/connect/test_KafkaConnection.py
pip-services3-python/pip-services3-kafka-python
8c6df619af56c033de68b518004c93e45a335517
[ "MIT" ]
null
null
null
test/connect/test_KafkaConnection.py
pip-services3-python/pip-services3-kafka-python
8c6df619af56c033de68b518004c93e45a335517
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import time import pytest from pip_services3_commons.config import ConfigParams from pip_services3_kafka.connect.KafkaConnection import KafkaConnection broker_host = os.environ.get('KAFKA_SERVICE_HOST') or 'localhost' broker_port = os.environ.get('KAFKA_SERVICE_PORT') or 9092 broke...
32.153846
97
0.681818
686d545f481b3b15e8e0f634c3a1126c10626456
5,964
py
Python
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/operations/actions.py
mickeymitic/azure-cli
92af6b3cea52f99eee84df93f5d3e2003a273d04
[ "MIT" ]
1
2018-01-30T05:55:29.000Z
2018-01-30T05:55:29.000Z
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/operations/actions.py
mickeymitic/azure-cli
92af6b3cea52f99eee84df93f5d3e2003a273d04
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/operations/actions.py
mickeymitic/azure-cli
92af6b3cea52f99eee84df93f5d3e2003a273d04
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
46.232558
117
0.618545
686f8c834ca06e0613cf090830a8208f91cd4c47
2,465
py
Python
tests/test_gremlin_pl.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
24
2020-11-20T19:10:23.000Z
2022-03-13T13:26:56.000Z
tests/test_gremlin_pl.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
10
2020-10-21T21:42:14.000Z
2020-11-18T07:57:30.000Z
tests/test_gremlin_pl.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
7
2020-12-27T00:44:18.000Z
2021-11-07T05:16:49.000Z
import itertools import numpy as np import torch import unittest from mogwai.data_loading import one_hot from mogwai.models import GremlinPseudolikelihood if __name__ == "__main__": unittest.main()
28.333333
76
0.610142
68717b37b4acbe351d989e9f887e2dec9723c9d1
10,233
py
Python
autograd_cupy/cupy_jvps.py
ericmjl/autograd-cupy
493a90cabae42f9e0fdbea77cef758aff659604f
[ "MIT" ]
3
2018-08-03T00:11:17.000Z
2018-12-27T17:47:54.000Z
autograd_cupy/cupy_jvps.py
ericmjl/autograd-cupy
493a90cabae42f9e0fdbea77cef758aff659604f
[ "MIT" ]
null
null
null
autograd_cupy/cupy_jvps.py
ericmjl/autograd-cupy
493a90cabae42f9e0fdbea77cef758aff659604f
[ "MIT" ]
null
null
null
from . import cupy_wrapper as acp from .cupy_vjps import ( untake, balanced_eq, match_complex, replace_zero, dot_adjoint_0, dot_adjoint_1, tensordot_adjoint_0, tensordot_adjoint_1, nograd_functions, ) from autograd.extend import ( defjvp, defjvp_argnum, def_linear, vs...
28.267956
90
0.626991
68725e7d29c539b971a9d4373987ad3774e42e53
1,950
py
Python
testAppium/conf/getStartActivityConfig.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
testAppium/conf/getStartActivityConfig.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
testAppium/conf/getStartActivityConfig.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/env python # -*- coding = utf-8 -*- # @Author:wanghui # @Time: # @File:getStartActivityConfig.py import configparser import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) if __name__ == '__main__': main()
25
66
0.578462