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
1a0c55e81de2d1138689ce8a17aa9a9f32891ab7
2,703
py
Python
src/genie/libs/parser/junos/tests/ShowOspfStatistics/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/junos/tests/ShowOspfStatistics/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/junos/tests/ShowOspfStatistics/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "ospf-statistics-information": { "ospf-statistics": { "dbds-retransmit": "203656", "dbds-retransmit-5seconds": "0", "flood-queue-depth": "0", "lsas-acknowledged": "225554974", "lsas-acknowledged-5seconds"...
41.584615
57
0.371439
1a0cfe1974d3fead0e36d406bfbe33d55d632379
6,981
py
Python
marc_5gempower/run_5gempower.py
arled-papa/marc
cb94636d786e215195e914b37131277f835bcf52
[ "Apache-2.0" ]
1
2021-11-30T00:07:28.000Z
2021-11-30T00:07:28.000Z
marc_5gempower/run_5gempower.py
arled-papa/marc
cb94636d786e215195e914b37131277f835bcf52
[ "Apache-2.0" ]
null
null
null
marc_5gempower/run_5gempower.py
arled-papa/marc
cb94636d786e215195e914b37131277f835bcf52
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2021 Arled Papa # Author: Arled Papa <arled.papa@tum.de> # # 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...
56.756098
116
0.627847
1a0dcd546c9fb9cfb2c22a03b6cf3ce13d629047
3,531
py
Python
jina/peapods/peas/gateway/grpc/__init__.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
1
2020-12-23T08:58:49.000Z
2020-12-23T08:58:49.000Z
jina/peapods/peas/gateway/grpc/__init__.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
jina/peapods/peas/gateway/grpc/__init__.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
import asyncio import argparse import os from multiprocessing.synchronize import Event from typing import Union, Dict import grpc import zmq.asyncio from .async_call import AsyncPrefetchCall from ... import BasePea from ....zmq import send_message_async, recv_message_async, _init_socket from .....enums import SocketT...
38.802198
112
0.652223
1a0ddf6aed80f212b94b5faabe9879bd5b5f6957
895
py
Python
Spell Compendium/scr/Spell1059 - Improvisation.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
1
2021-04-26T08:03:56.000Z
2021-04-26T08:03:56.000Z
Spell Compendium/scr/Spell1059 - Improvisation.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
2
2021-06-11T05:55:01.000Z
2021-08-03T23:41:02.000Z
Spell Compendium/scr/Spell1059 - Improvisation.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
1
2021-05-17T15:37:58.000Z
2021-05-17T15:37:58.000Z
from toee import *
35.8
121
0.755307
1a0ee9a3148043007875afdc8ae0b227516a59d4
131,586
py
Python
pybind/slxos/v17r_2_00/mpls_state/lsp/secondary_path/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/mpls_state/lsp/secondary_path/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/mpls_state/lsp/secondary_path/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
75.973441
1,982
0.766221
1a11560f409eb43a0ed24b3b54e89719dbd21b76
171
py
Python
Theseus/Tests/__init__.py
amias-iohk/theseus
88d9294721e3bbbb756b983f55df6d669e632da4
[ "MIT" ]
4
2018-08-08T07:11:29.000Z
2018-11-08T02:43:11.000Z
Theseus/Tests/__init__.py
amias-iohk/theseus
88d9294721e3bbbb756b983f55df6d669e632da4
[ "MIT" ]
null
null
null
Theseus/Tests/__init__.py
amias-iohk/theseus
88d9294721e3bbbb756b983f55df6d669e632da4
[ "MIT" ]
3
2018-10-18T13:42:24.000Z
2021-01-20T15:21:25.000Z
__author__ = 'Amias Channer <amias.channer@iohk.io> for IOHK' __doc__ = 'Daedalus Testing functions' from .Cardano import * from .Daedalus import * from .Common import *
24.428571
61
0.754386
1a118f7d8b03da075a37997cfb06c80ceb08fc58
907
py
Python
mobula/operators/Multiply.py
wkcn/mobula
4eec938d6477776f5f2d68bcf41de83fb8da5195
[ "MIT" ]
47
2017-07-15T02:13:18.000Z
2022-01-01T09:37:59.000Z
mobula/operators/Multiply.py
wkcn/mobula
4eec938d6477776f5f2d68bcf41de83fb8da5195
[ "MIT" ]
3
2018-06-22T13:55:12.000Z
2020-01-29T01:41:13.000Z
mobula/operators/Multiply.py
wkcn/mobula
4eec938d6477776f5f2d68bcf41de83fb8da5195
[ "MIT" ]
8
2017-09-03T12:42:54.000Z
2020-09-27T03:38:59.000Z
from .Layer import * Multiply.OP_L = MultiplyConstant Multiply.OP_R = MultiplyConstant
32.392857
84
0.624035
1a1196d66c0c37b1c2d9a2fa6bdb80334a47691b
581
py
Python
project/settings_deploy.py
djstein/vue-django-webpack
d072e116d45800064b3972decbc6ec493801ea5b
[ "MIT" ]
43
2017-02-24T17:59:27.000Z
2020-02-04T16:49:38.000Z
project/settings_deploy.py
djstein/vue-django-webpack
d072e116d45800064b3972decbc6ec493801ea5b
[ "MIT" ]
6
2017-01-10T01:49:03.000Z
2017-10-03T06:12:59.000Z
project/settings_deploy.py
djstein/vue-django-webpack
d072e116d45800064b3972decbc6ec493801ea5b
[ "MIT" ]
13
2017-05-18T20:00:24.000Z
2021-01-22T06:32:45.000Z
from project.settings import INSTALLED_APPS, ALLOWED_HOSTS, BASE_DIR import os INSTALLED_APPS.append( 'webpack_loader',) INSTALLED_APPS.append( 'app',) ALLOWED_HOSTS.append('*',) # STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = [ # os.path.join(BASE_DIR, 'static',) os.path.join(BASE_DIR, ...
22.346154
83
0.652324
1a124f44649021a9482a062fee582fc8ecf4209e
268
py
Python
dockerfiles/igv/igv.py
leipzig/gatk-sv
96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a
[ "BSD-3-Clause" ]
76
2020-06-18T21:31:43.000Z
2022-03-02T18:42:58.000Z
dockerfiles/igv/igv.py
iamh2o/gatk-sv
bf3704bd1d705339577530e267cd4d1b2f77a17f
[ "BSD-3-Clause" ]
195
2020-06-22T15:12:28.000Z
2022-03-28T18:06:46.000Z
dockerfiles/igv/igv.py
iamh2o/gatk-sv
bf3704bd1d705339577530e267cd4d1b2f77a17f
[ "BSD-3-Clause" ]
39
2020-07-03T06:47:18.000Z
2022-03-03T03:47:25.000Z
import sys [_, varfile] = sys.argv plotdir = "plots" igvfile = "igv.txt" igvsh = "igv.sh" with open(varfile, 'r') as f: for line in f: dat = line.split('\t') chr = dat[0] start = dat[1] end = dat[2] data = dat[3].split(',')
20.615385
32
0.511194
1a12b43b837e725bb85bfe8e14b6c166c2be8e99
691
py
Python
model/sample/adg.py
sdy99/PowerAI
ef40bacddbad72322e3e423417ae13d478d56a6d
[ "MIT" ]
7
2020-04-11T03:28:50.000Z
2021-03-29T14:53:36.000Z
model/sample/adg.py
sdy99/PowerAI
ef40bacddbad72322e3e423417ae13d478d56a6d
[ "MIT" ]
null
null
null
model/sample/adg.py
sdy99/PowerAI
ef40bacddbad72322e3e423417ae13d478d56a6d
[ "MIT" ]
5
2020-04-11T03:28:52.000Z
2021-11-27T05:23:12.000Z
# coding: gbk """ @author: sdy @email: sdy@epri.sgcc.com.cn Abstract distribution and generation class """
20.323529
49
0.662808
1a135f93a11c5cc15bf96c7f89491d4b0c295264
903
py
Python
src/validatesigner.py
harryttd/remote-signer
a1af4e58b1d6628b09166368362d05d6e876e466
[ "MIT" ]
null
null
null
src/validatesigner.py
harryttd/remote-signer
a1af4e58b1d6628b09166368362d05d6e876e466
[ "MIT" ]
null
null
null
src/validatesigner.py
harryttd/remote-signer
a1af4e58b1d6628b09166368362d05d6e876e466
[ "MIT" ]
null
null
null
# # The ValidateSigner applies a ChainRatchet to the signature request # and then passes it down to a signer. In order to do this, it must # parse the request and to obtain the level and round to pass to the # ratchet code. import logging from src.sigreq import SignatureReq
30.1
68
0.663344
1a146284d92debe9f0fcbd843d3eb7e8ae94afbb
25,766
py
Python
CODE/web_server/server/audio_processing/DataLoader.py
andrewbartels1/Marine-Mammal-Acoustics
9f833d97ac26ecd51b4c4e276a815ab9d2b67bb6
[ "MIT" ]
1
2022-03-29T12:24:11.000Z
2022-03-29T12:24:11.000Z
CODE/web_server/server/audio_processing/DataLoader.py
andrewbartels1/Marine-Mammal-Acoustics
9f833d97ac26ecd51b4c4e276a815ab9d2b67bb6
[ "MIT" ]
null
null
null
CODE/web_server/server/audio_processing/DataLoader.py
andrewbartels1/Marine-Mammal-Acoustics
9f833d97ac26ecd51b4c4e276a815ab9d2b67bb6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 1 17:48:01 2021 @author: bartelsaa """ # boiler plate stuff import re, os, io from glob import glob import pandas as pd import sys import pytz from models import Sensor from datetime import datetime, timezone import pathlib from data_schema import ...
46.175627
168
0.557595
1a150533d8cad7a2aba7a53cd1cb833f76eb2499
3,078
py
Python
tests/lib/test_otping.py
reputage/py-didery
2d54a9e39fb01a81d4d6f7814ca7a611a7418a47
[ "Apache-2.0" ]
null
null
null
tests/lib/test_otping.py
reputage/py-didery
2d54a9e39fb01a81d4d6f7814ca7a611a7418a47
[ "Apache-2.0" ]
15
2018-05-24T23:30:21.000Z
2018-05-25T17:39:51.000Z
tests/lib/test_otping.py
reputage/py-didery
2d54a9e39fb01a81d4d6f7814ca7a611a7418a47
[ "Apache-2.0" ]
null
null
null
import pytest try: import simplejson as json except ImportError: import json from ioflo.aio.http import Valet # import didery.routing from diderypy.lib import generating as gen from diderypy.lib import otping as otp vk, sk, did = gen.keyGen() otpData = { "id": did, "blob": "AeYbsHot0pmdWAcgTo5sD8iA...
24.624
118
0.692982
1a16d3dc97a2e27b58e28cd919840f007fc7b43f
3,722
py
Python
src/DCGMM/measuring/Logging.py
anon-scientist/dcgmm
1d2d96d1d9811c387ee11d462ff0a3819a66e137
[ "Apache-2.0", "MIT" ]
null
null
null
src/DCGMM/measuring/Logging.py
anon-scientist/dcgmm
1d2d96d1d9811c387ee11d462ff0a3819a66e137
[ "Apache-2.0", "MIT" ]
null
null
null
src/DCGMM/measuring/Logging.py
anon-scientist/dcgmm
1d2d96d1d9811c387ee11d462ff0a3819a66e137
[ "Apache-2.0", "MIT" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed u...
39.595745
166
0.610962
1a16e50ba3f5373ee622624d05fe6164d2927423
1,863
py
Python
demos/demo_pyqtgraph_threadsafe_static.py
Dennis-van-Gils/python-dvg-pyqtgraph-threadsafe
c766cef85c60195ecfdeacc6b62f16fd1b90dcf0
[ "MIT" ]
null
null
null
demos/demo_pyqtgraph_threadsafe_static.py
Dennis-van-Gils/python-dvg-pyqtgraph-threadsafe
c766cef85c60195ecfdeacc6b62f16fd1b90dcf0
[ "MIT" ]
1
2020-10-24T05:18:48.000Z
2020-10-24T11:37:09.000Z
demos/demo_pyqtgraph_threadsafe_static.py
Dennis-van-Gils/python-dvg-pyqtgraph-threadsafe
c766cef85c60195ecfdeacc6b62f16fd1b90dcf0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import numpy as np from PyQt5 import QtWidgets as QtWid import pyqtgraph as pg from dvg_pyqtgraph_threadsafe import PlotCurve USE_OPENGL = True if USE_OPENGL: print("OpenGL acceleration: Enabled") pg.setConfigOptions(useOpenGL=True) pg.setConfigO...
27.397059
80
0.500805
1a17b1be2074f64913108dde8915d54ffd44bd53
1,889
py
Python
froide/team/services.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
froide/team/services.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
froide/team/services.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
import hashlib import hmac from django.conf import settings from django.template.loader import render_to_string from django.utils.crypto import constant_time_compare from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from froide.helper.email_sending import send_mail from .models ...
29.061538
65
0.599788
1a183c6499418e4965e990ea2623cf57e6ec50c1
340
py
Python
turtle/snowflake.py
yunzhang599/Python3_Package_Examples
3e479925f3f6818bf35e46123f720839acf075eb
[ "MIT" ]
1
2019-11-16T05:06:01.000Z
2019-11-16T05:06:01.000Z
turtle/snowflake.py
yunzhang599/Python3_Package_Examples
3e479925f3f6818bf35e46123f720839acf075eb
[ "MIT" ]
null
null
null
turtle/snowflake.py
yunzhang599/Python3_Package_Examples
3e479925f3f6818bf35e46123f720839acf075eb
[ "MIT" ]
null
null
null
from turtle import forward, left, right, width, color, clearscreen clearscreen() color("lightblue") width(3) for i in range(6): forward(50) left(60) forward(25) left(180) forward(25) left(60) forward(25) left(180) forward(25) right(120) forward(25) left(180) forwar...
14.782609
66
0.608824
1a1935f678ac36846905eb87be171d453fa2af35
1,185
py
Python
pyechonest/config.py
gleitz/automaticdj
3880c175bc09c17ed9f71ba9902e348a00bb64ef
[ "MIT" ]
14
2015-06-19T22:00:41.000Z
2021-03-14T07:41:38.000Z
pyechonest/config.py
gleitz/automaticdj
3880c175bc09c17ed9f71ba9902e348a00bb64ef
[ "MIT" ]
null
null
null
pyechonest/config.py
gleitz/automaticdj
3880c175bc09c17ed9f71ba9902e348a00bb64ef
[ "MIT" ]
2
2015-07-19T10:51:23.000Z
2019-04-10T14:46:23.000Z
#!/usr/bin/env python # encoding: utf-8 """ Copyright (c) 2010 The Echo Nest. All rights reserved. Created by Tyler Williams on 2010-04-25. Global configuration variables for accessing the Echo Nest web API. """ __version__ = "4.2.8" import os if('ECHO_NEST_API_KEY' in os.environ): ECHO_NEST_API_KEY = os.envir...
19.42623
151
0.729958
1a19acc97f7f0626e13396cbd8314c6fbb0fd66e
18,836
py
Python
norbert/__init__.py
AppleHolic/norbert
cceaa24bce625bcba3146198271a20e4c265f2c8
[ "MIT" ]
142
2019-03-19T18:36:28.000Z
2022-03-22T21:28:25.000Z
norbert/__init__.py
AppleHolic/norbert
cceaa24bce625bcba3146198271a20e4c265f2c8
[ "MIT" ]
15
2019-03-07T15:54:31.000Z
2022-03-04T15:13:21.000Z
norbert/__init__.py
AppleHolic/norbert
cceaa24bce625bcba3146198271a20e4c265f2c8
[ "MIT" ]
27
2018-10-28T14:13:34.000Z
2021-09-13T12:12:41.000Z
import numpy as np import itertools from .contrib import compress_filter, smooth, residual_model from .contrib import reduce_interferences def expectation_maximization(y, x, iterations=2, verbose=0, eps=None): r"""Expectation maximization algorithm, for refining source separation estimates. This algorith...
36.223077
79
0.646369
1a1ab30134ffb46a2768f3d6e4b82bd7fcbd06d6
9,170
py
Python
postr/twitter_postr.py
dbgrigsby/Postr
c374648134123f857babb65aff161a4c3c470502
[ "MIT" ]
3
2018-10-09T17:02:05.000Z
2022-03-21T08:58:49.000Z
postr/twitter_postr.py
dbgrigsby/Postr
c374648134123f857babb65aff161a4c3c470502
[ "MIT" ]
11
2018-09-26T05:33:30.000Z
2019-04-06T04:06:51.000Z
postr/twitter_postr.py
dbgrigsby/Postr
c374648134123f857babb65aff161a4c3c470502
[ "MIT" ]
3
2018-12-20T18:35:25.000Z
2022-03-21T08:58:54.000Z
import csv import datetime import json import re import os import time from typing import List import matplotlib import matplotlib.pyplot as plt from tweepy import OAuthHandler from tweepy import Stream from tweepy.api import API from tweepy.streaming import StreamListener from tweepy.cursor import Cursor from textblo...
33.589744
108
0.619738
1a1ae330b5d97b072b7de9905431059440f2b93a
2,149
py
Python
Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py
Acidburn0zzz/Sub-Zero.bundle
eb3a0d52fde281773ba5109fad9801ede9c938ba
[ "MIT" ]
1
2018-02-01T18:00:59.000Z
2018-02-01T18:00:59.000Z
Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py
Acidburn0zzz/Sub-Zero.bundle
eb3a0d52fde281773ba5109fad9801ede9c938ba
[ "MIT" ]
null
null
null
Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py
Acidburn0zzz/Sub-Zero.bundle
eb3a0d52fde281773ba5109fad9801ede9c938ba
[ "MIT" ]
null
null
null
# coding=utf-8 import logging from subliminal.providers.legendastv import LegendasTVSubtitle as _LegendasTVSubtitle, \ LegendasTVProvider as _LegendasTVProvider, Episode, Movie, guess_matches, guessit, sanitize logger = logging.getLogger(__name__)
33.578125
109
0.635179
1a1b2daed4ebe5ea602e637a406c3b3e1a5fa4ac
339
py
Python
takeyourmeds/groups/groups_billing/plans.py
takeyourmeds/takeyourmeds-web
edf24188f26948902cfb69793b4d5aa3cf8b6dea
[ "MIT" ]
11
2015-06-01T16:31:42.000Z
2022-03-01T01:20:58.000Z
takeyourmeds/groups/groups_billing/plans.py
takeyourmeds/takeyourmeds-web
edf24188f26948902cfb69793b4d5aa3cf8b6dea
[ "MIT" ]
111
2015-07-20T13:23:16.000Z
2017-09-08T08:17:10.000Z
takeyourmeds/groups/groups_billing/plans.py
takeyourmeds/takeyourmeds-web
edf24188f26948902cfb69793b4d5aa3cf8b6dea
[ "MIT" ]
6
2015-07-15T08:08:12.000Z
2018-06-23T00:13:13.000Z
""" This file must be kept up-to-date with Stripe, especially the slugs: https://manage.stripe.com/plans """ PLANS = {} FREE = Plan(1, 'free', "Free plan")
18.833333
68
0.613569
1a1bc945602cc44132190cba60d0afbf196c8e4e
34,864
py
Python
footprint/socialnetwork/views.py
hairleng/Footprint
3c5ab2743584bcdf19161972f4a7e7581ba9d1ee
[ "MIT" ]
null
null
null
footprint/socialnetwork/views.py
hairleng/Footprint
3c5ab2743584bcdf19161972f4a7e7581ba9d1ee
[ "MIT" ]
null
null
null
footprint/socialnetwork/views.py
hairleng/Footprint
3c5ab2743584bcdf19161972f4a7e7581ba9d1ee
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 import json from django.http import HttpResponse, Http404 from django.urls import reverse from django.contrib.auth.decorators import login_required from django.utils import timezone # Create your views here. from socialnetwork.forms import * from soci...
40.776608
184
0.645336
1a1cb891a28d6f1130bc984167bf2fda46be3fe3
24,095
py
Python
Application/datasources/datapod_backup/utils.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
Application/datasources/datapod_backup/utils.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
Application/datasources/datapod_backup/utils.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
from abc import ABC,abstractmethod import os import binascii import subprocess import time import datetime import platform import tempfile import requests import json import aiohttp from sanic import response from asyncinit import asyncinit from errors_module.errors import MnemonicRequiredError from errors_module.err...
40.838983
210
0.638431
1a1fd264d38d2e67d8ce555d1064ae3d9aad16df
141
py
Python
abc/abc145/abc145b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc145/abc145b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc145/abc145b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
N = int(input()) S = input() if N % 2 == 1: print('No') exit() if S[:N // 2] == S[N // 2:]: print('Yes') else: print('No')
11.75
28
0.411348
1a20018810aca71e231531dd6b4c27f07d98ddd0
289
py
Python
gadget/reboot.py
vaginessa/RaspberryPiZero_HID_MultiTool
c6227c7263cb1321a5655f938462392eb014a352
[ "Apache-2.0" ]
54
2017-01-06T21:43:40.000Z
2022-02-14T02:57:57.000Z
gadget/reboot.py
vaginessa/RaspberryPiZero_HID_MultiTool
c6227c7263cb1321a5655f938462392eb014a352
[ "Apache-2.0" ]
null
null
null
gadget/reboot.py
vaginessa/RaspberryPiZero_HID_MultiTool
c6227c7263cb1321a5655f938462392eb014a352
[ "Apache-2.0" ]
13
2017-01-31T23:35:21.000Z
2021-12-22T12:48:59.000Z
#!/usr/bin/python import RPi.GPIO as GPIO import os gpio_pin_number=21 GPIO.setmode(GPIO.BCM) GPIO.setup(gpio_pin_number, GPIO.IN, pull_up_down=GPIO.PUD_UP) try: GPIO.wait_for_edge(gpio_pin_number, GPIO.FALLING) os.system("sudo shutdown -h now") except: pass GPIO.cleanup()
18.0625
62
0.750865
1a209ab2fb009b89d259657281d619b4962c46e2
64
py
Python
code/sample_1-2-16.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
1
2022-03-29T13:50:12.000Z
2022-03-29T13:50:12.000Z
code/sample_1-2-16.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
code/sample_1-2-16.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
rows = int(input()) x = [input() for i in range(rows)] print(x)
16
34
0.609375
1a20d5d763008a4d9582e33481f4795a17bbec47
1,056
py
Python
barcap/main.py
Barmaley13/CaptureBarcode
e19556dd515a1b86cf32b5bdca4dca398d1f0ef1
[ "MIT" ]
1
2021-04-17T18:04:19.000Z
2021-04-17T18:04:19.000Z
barcap/main.py
Barmaley13/CaptureBarcode
e19556dd515a1b86cf32b5bdca4dca398d1f0ef1
[ "MIT" ]
1
2021-07-08T09:48:07.000Z
2021-07-08T17:36:22.000Z
barcap/main.py
Barmaley13/CaptureBarcode
e19556dd515a1b86cf32b5bdca4dca398d1f0ef1
[ "MIT" ]
1
2019-09-27T12:37:25.000Z
2019-09-27T12:37:25.000Z
""" Run capture as a separate process """ import time from barcap.barcode import BarcodeCapture
22.956522
95
0.602273
1a215082fa2f89d1a45dff26f70391daf14feaea
6,162
py
Python
gabriel_lego/lego_engine/config.py
molguin92/gabriel-lego-py3
2f8828326ca025997687a19d1af80bc1590a9290
[ "Apache-2.0" ]
null
null
null
gabriel_lego/lego_engine/config.py
molguin92/gabriel-lego-py3
2f8828326ca025997687a19d1af80bc1590a9290
[ "Apache-2.0" ]
1
2019-09-10T23:41:41.000Z
2019-09-11T20:21:11.000Z
gabriel_lego/lego_engine/config.py
molguin92/gabriel-lego-py3
2f8828326ca025997687a19d1af80bc1590a9290
[ "Apache-2.0" ]
1
2022-02-22T15:29:27.000Z
2022-02-22T15:29:27.000Z
#!/usr/bin/env python # # Cloudlet Infrastructure for Mobile Computing # - Task Assistance # # Author: Zhuo Chen <zhuoc@cs.cmu.edu> # # Copyright (C) 2011-2013 Carnegie Mellon University # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the...
33.857143
79
0.697988
1a22da72753f4f1b92c14d244c71af9de316f1cd
5,670
py
Python
civis_jupyter_notebooks/platform_persistence.py
menglewis/civis-jupyter-notebook
71f9b3ae50d62280750a593e0125372f41ba90ab
[ "BSD-3-Clause" ]
null
null
null
civis_jupyter_notebooks/platform_persistence.py
menglewis/civis-jupyter-notebook
71f9b3ae50d62280750a593e0125372f41ba90ab
[ "BSD-3-Clause" ]
null
null
null
civis_jupyter_notebooks/platform_persistence.py
menglewis/civis-jupyter-notebook
71f9b3ae50d62280750a593e0125372f41ba90ab
[ "BSD-3-Clause" ]
null
null
null
""" This file contains utilities that bind the Jupyter notebook to our platform. It performs two functions: 1. On startup, pull the contents of the notebook from platform to the local disk 2. As a Jupyter post-save hook, push the contents of the notebook and a HTML preview of the same back to platform. 3. Cus...
36.580645
116
0.711817
1a241fc805a6084215d593c48583935b44833885
2,118
py
Python
dbt_cloud/command/job/run.py
jeremyyeo/dbt-cloud-cli
f1253bcc343c08232e18ea01ef4a74c2e62a9999
[ "Apache-2.0" ]
33
2021-12-09T11:17:58.000Z
2022-03-23T21:51:43.000Z
dbt_cloud/command/job/run.py
jeremyyeo/dbt-cloud-cli
f1253bcc343c08232e18ea01ef4a74c2e62a9999
[ "Apache-2.0" ]
20
2021-11-26T15:46:43.000Z
2022-03-25T15:49:20.000Z
dbt_cloud/command/job/run.py
jeremyyeo/dbt-cloud-cli
f1253bcc343c08232e18ea01ef4a74c2e62a9999
[ "Apache-2.0" ]
4
2022-01-17T19:18:34.000Z
2022-03-12T09:55:31.000Z
import os import requests from typing import Optional, List from pydantic import Field, validator from dbt_cloud.command.command import DbtCloudAccountCommand from dbt_cloud.field import JOB_ID_FIELD
35.3
91
0.686497
1a257d44848898125832b45b07d58d12e6e91f60
1,266
py
Python
modelzoo/migrations/0024_auto_20201014_1425.py
SuperElastix/ElastixModelZooWebsite
00d7b4aec8eb04c285d3771d53310079a3443fab
[ "Apache-2.0" ]
1
2021-11-15T07:30:24.000Z
2021-11-15T07:30:24.000Z
modelzoo/migrations/0024_auto_20201014_1425.py
SuperElastix/ElastixModelZooWebsite
00d7b4aec8eb04c285d3771d53310079a3443fab
[ "Apache-2.0" ]
null
null
null
modelzoo/migrations/0024_auto_20201014_1425.py
SuperElastix/ElastixModelZooWebsite
00d7b4aec8eb04c285d3771d53310079a3443fab
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.3 on 2020-10-14 12:25 from django.db import migrations, models
26.93617
180
0.518167
1a270b137592d14be9f26784b9d3fa7001be71f2
5,982
py
Python
src/misc/MBExp.py
akshatha-k/Calibrated_MOPO
3b2e675003e9f6d31a0763be2ec784ceeae5099e
[ "MIT" ]
null
null
null
src/misc/MBExp.py
akshatha-k/Calibrated_MOPO
3b2e675003e9f6d31a0763be2ec784ceeae5099e
[ "MIT" ]
null
null
null
src/misc/MBExp.py
akshatha-k/Calibrated_MOPO
3b2e675003e9f6d31a0763be2ec784ceeae5099e
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function from __future__ import absolute_import import os from time import time, localtime, strftime import numpy as np from scipy.io import savemat from dotmap import DotMap from src.modeling.trainers import BNN_trainer from src.misc.DotmapUtils import ge...
39.615894
99
0.531595
1a286a917af5eacc1b12d3158f1106f90974b451
252
py
Python
lightnn/base/__init__.py
tongluocq/lightnn
602b0742d1141efc73a7146c930c5ea9eb994d37
[ "Apache-2.0" ]
131
2017-04-05T06:03:25.000Z
2021-05-20T03:05:36.000Z
ch4/lightnn/lightnn/base/__init__.py
helloqorld/book-of-qna-code
54950478fb28d15cd73dae4dc39f3cd783721e08
[ "Apache-2.0" ]
27
2018-11-26T07:39:25.000Z
2022-02-09T23:44:53.000Z
ch4/lightnn/lightnn/base/__init__.py
helloqorld/book-of-qna-code
54950478fb28d15cd73dae4dc39f3cd783721e08
[ "Apache-2.0" ]
62
2018-11-26T07:44:02.000Z
2022-01-13T08:31:00.000Z
#!/usr/bin/env python # coding=utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function from .activations import * from .losses import * from .initializers import * from .optimizers import *
19.384615
38
0.797619
1a288c60c996fe5119fab7f4db833d65180f5556
3,273
py
Python
tests/vvadd/Q.py
sa2257/llvm-runtime-pass
6f2c92141465e7df56f9720ab7753826663d799f
[ "MIT" ]
null
null
null
tests/vvadd/Q.py
sa2257/llvm-runtime-pass
6f2c92141465e7df56f9720ab7753826663d799f
[ "MIT" ]
null
null
null
tests/vvadd/Q.py
sa2257/llvm-runtime-pass
6f2c92141465e7df56f9720ab7753826663d799f
[ "MIT" ]
null
null
null
import time
32.405941
84
0.513902
1a2b8e3fe78c16eea9e7fc19485f21ac4d60d622
22
py
Python
middleman/api/application/__init__.py
scooterman/middleman
c765c9157cce02574e7191608dacd573156e333b
[ "Xnet", "X11" ]
5
2020-03-19T07:19:49.000Z
2021-09-29T06:33:47.000Z
trends/__init__.py
victorkifer/SocialMediaTopTrends
32098f1621059700d9ca6437a988956ebe1d319a
[ "MIT" ]
22
2015-09-20T14:00:16.000Z
2021-06-10T20:08:25.000Z
trends/__init__.py
victorkifer/SocialMediaTopTrends
32098f1621059700d9ca6437a988956ebe1d319a
[ "MIT" ]
6
2015-12-14T21:05:01.000Z
2019-11-02T19:35:24.000Z
__author__ = 'victor'
11
21
0.727273
1a2c8ecde415f77d6438cc4d119dd253cc4b947d
799
py
Python
2009/plotting_data_monitor/_distrib.py
mikiec84/code-for-blog
79b2264f9a808eb14f624cb3c5ae7624038c043a
[ "Unlicense" ]
1,199
2015-01-06T14:09:37.000Z
2022-03-29T19:39:51.000Z
2009/plotting_data_monitor/_distrib.py
mikiec84/code-for-blog
79b2264f9a808eb14f624cb3c5ae7624038c043a
[ "Unlicense" ]
25
2016-07-29T15:44:01.000Z
2021-11-19T16:21:01.000Z
2009/plotting_data_monitor/_distrib.py
mikiec84/code-for-blog
79b2264f9a808eb14f624cb3c5ae7624038c043a
[ "Unlicense" ]
912
2015-01-04T00:39:50.000Z
2022-03-29T06:50:22.000Z
from eblib import libcollect # Create a LibCollect object lc = libcollect.LibCollect() # Prepare arguments for do_collect # # Path to the script (can be absolute or relative) scriptname = 'plotting_data_monitor.pyw' # Ask the resulting distribution to be placed in # directory distrib targetdir = 'distr...
24.212121
55
0.624531
1a2d28dea2bb837c0dd72c1aefaedfb353d8cc72
3,751
py
Python
tests/conftest.py
cread/aws-parallelcluster-node
1f3bcd32f216d246d89e0e175be8027c923ae8ec
[ "Apache-2.0" ]
33
2018-11-14T14:54:47.000Z
2022-03-22T23:47:51.000Z
tests/conftest.py
cread/aws-parallelcluster-node
1f3bcd32f216d246d89e0e175be8027c923ae8ec
[ "Apache-2.0" ]
180
2019-02-21T09:33:10.000Z
2022-03-31T08:01:28.000Z
tests/conftest.py
cread/aws-parallelcluster-node
1f3bcd32f216d246d89e0e175be8027c923ae8ec
[ "Apache-2.0" ]
35
2019-02-06T13:36:18.000Z
2022-03-01T12:54:05.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance # with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
41.21978
119
0.702479
1a2d480359b08490e3beec01917db1a8d876c6dd
7,263
py
Python
scripts/fastrfaa.py
Facenapalm/NapalmBot
ce775a270f374e626bcabc313676e4e2f9dbb843
[ "MIT" ]
4
2016-05-14T17:42:03.000Z
2018-09-24T18:43:03.000Z
scripts/fastrfaa.py
Facenapalm/NapalmBot
ce775a270f374e626bcabc313676e4e2f9dbb843
[ "MIT" ]
null
null
null
scripts/fastrfaa.py
Facenapalm/NapalmBot
ce775a270f374e626bcabc313676e4e2f9dbb843
[ "MIT" ]
1
2021-05-08T15:45:30.000Z
2021-05-08T15:45:30.000Z
""" Maintainer script for ruwiki's administrator attention requests table ([[:ru::]]). Log file is used for saving "" field in deleted requests. Usage: python fastrfaa.py [logfile] """ import re import sys from datetime import datetime import pywikibot REGEXP = re.compile(r""" (?P<indent>\n*) ==[ ]*(?P<...
31.171674
103
0.592317
a7de746c56c67620e56b1437e51a6c5e5965554a
1,102
py
Python
rssfly/tests/common.py
lidavidm/rssfly
1cfb893a249e4095412b966a1bf50fc3de7744e7
[ "Apache-2.0" ]
1
2021-02-14T03:44:35.000Z
2021-02-14T03:44:35.000Z
rssfly/tests/common.py
lidavidm/rssfly
1cfb893a249e4095412b966a1bf50fc3de7744e7
[ "Apache-2.0" ]
6
2021-07-15T13:03:19.000Z
2022-03-26T14:14:14.000Z
rssfly/tests/common.py
lidavidm/rssfly
1cfb893a249e4095412b966a1bf50fc3de7744e7
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 David Li # # 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 writing, so...
29.783784
74
0.696915
a7dfe24c47f27180a9478cedac00f9ebde2a0811
16,502
py
Python
pybind/slxos/v16r_1_00b/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
85.061856
1,055
0.690038
a7e04b7806a0a0c1a8e2d03be13546c94ed6e271
3,253
py
Python
scripts/generate.py
maruina/diagrams
8a9012fa24e2987b49672bae0abf16585fed440a
[ "MIT" ]
null
null
null
scripts/generate.py
maruina/diagrams
8a9012fa24e2987b49672bae0abf16585fed440a
[ "MIT" ]
null
null
null
scripts/generate.py
maruina/diagrams
8a9012fa24e2987b49672bae0abf16585fed440a
[ "MIT" ]
null
null
null
import os import sys from typing import Iterable from jinja2 import Environment, FileSystemLoader, Template import config as cfg from . import app_root_dir, doc_root_dir, resource_dir, template_dir _usage = "Usage: generate.py <onprem|aws|gcp|azure|k8s|alibabacloud|oci|programming|saas>" def gen_classes(pvd: str...
31.582524
90
0.640639
a7e08ada30043433441727fc2f8b4036acae9399
5,023
py
Python
src/GUI/menuTypes.py
Vidhu007/Cloud-Encryption
ec9ccd76a71e98740d937b34a7734f821448fae0
[ "MIT" ]
7
2021-05-10T13:30:51.000Z
2022-03-20T17:49:59.000Z
src/GUI/menuTypes.py
Vidhu007/Cloud-Encryption
ec9ccd76a71e98740d937b34a7734f821448fae0
[ "MIT" ]
null
null
null
src/GUI/menuTypes.py
Vidhu007/Cloud-Encryption
ec9ccd76a71e98740d937b34a7734f821448fae0
[ "MIT" ]
8
2019-04-05T10:40:49.000Z
2022-03-20T06:00:43.000Z
import users import sys import encryption import googleDriveAPI u= users e= encryption g= googleDriveAPI #Function to generate menu for privileged (admin) user #Function which generates menu for standard non-privileged users
38.937984
129
0.428827
a7e0cc5a6d14c321badeeffabba58fb153ebc18b
657
py
Python
eap_backend/eap_api/migrations/0005_alter_eapuser_is_active.py
alan-turing-institute/AssurancePlatform
1aa34b544990f981a289f6d21a832657ad19742e
[ "MIT" ]
5
2021-09-28T15:02:21.000Z
2022-03-23T14:37:51.000Z
eap_backend/eap_api/migrations/0005_alter_eapuser_is_active.py
alan-turing-institute/AssurancePlatform
1aa34b544990f981a289f6d21a832657ad19742e
[ "MIT" ]
69
2021-09-28T14:21:24.000Z
2022-03-31T17:12:19.000Z
eap_backend/eap_api/migrations/0005_alter_eapuser_is_active.py
alan-turing-institute/AssurancePlatform
1aa34b544990f981a289f6d21a832657ad19742e
[ "MIT" ]
1
2021-09-28T15:11:00.000Z
2021-09-28T15:11:00.000Z
# Generated by Django 3.2.8 on 2022-05-31 10:13 from django.db import migrations, models
25.269231
81
0.531202
a7e26aa446e86411030f396561a3b8cb6f32b961
465
py
Python
lucid_torch/transforms/monochrome/TFMSMonochromeTo.py
HealthML/lucid-torch
627700a83b5b2690cd8f95010b5ed439204102f4
[ "MIT" ]
1
2021-08-20T07:38:09.000Z
2021-08-20T07:38:09.000Z
lucid_torch/transforms/monochrome/TFMSMonochromeTo.py
HealthML/lucid-torch
627700a83b5b2690cd8f95010b5ed439204102f4
[ "MIT" ]
5
2021-03-19T15:50:42.000Z
2022-03-12T00:53:17.000Z
lucid_torch/transforms/monochrome/TFMSMonochromeTo.py
HealthML/lucid-torch
627700a83b5b2690cd8f95010b5ed439204102f4
[ "MIT" ]
null
null
null
import torch
31
79
0.658065
a7e2b57529b0723b4ab18b73801cd2816d8025dd
1,027
py
Python
python/paddle/v2/framework/tests/test_modified_huber_loss_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
null
null
null
python/paddle/v2/framework/tests/test_modified_huber_loss_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
null
null
null
python/paddle/v2/framework/tests/test_modified_huber_loss_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
1
2020-06-04T04:27:15.000Z
2020-06-04T04:27:15.000Z
import unittest import numpy as np from op_test import OpTest if __name__ == '__main__': unittest.main()
25.675
80
0.590068
a7e54d153065f4c3487a12be2e95a69fef30b9f1
5,626
py
Python
bots.py
FatherUsarox/generadorqr
a56cc91c1b9320c03f3579c5a4d7d21f71b42f17
[ "MIT" ]
null
null
null
bots.py
FatherUsarox/generadorqr
a56cc91c1b9320c03f3579c5a4d7d21f71b42f17
[ "MIT" ]
null
null
null
bots.py
FatherUsarox/generadorqr
a56cc91c1b9320c03f3579c5a4d7d21f71b42f17
[ "MIT" ]
null
null
null
#!/usr/bin/env python # pylint: disable=C0116,W0613 # This program is dedicated to the public domain under the CC0 license. """ First, a few callback functions are defined. Then, those functions are passed to the Dispatcher and registered at their respective places. Then, the bot is started and runs until we press Ctr...
32.900585
99
0.682545
a7e702d2867f4402c54e0d45a5281d763c846bf9
746
py
Python
src/tests/TestQuadratureRule.py
WaveBlocks/WaveBlocks
2af3730dcf27e54006ec602e696b4d4df25459d8
[ "BSD-3-Clause" ]
null
null
null
src/tests/TestQuadratureRule.py
WaveBlocks/WaveBlocks
2af3730dcf27e54006ec602e696b4d4df25459d8
[ "BSD-3-Clause" ]
null
null
null
src/tests/TestQuadratureRule.py
WaveBlocks/WaveBlocks
2af3730dcf27e54006ec602e696b4d4df25459d8
[ "BSD-3-Clause" ]
null
null
null
"""The WaveBlocks Project Plot some quadrature rules. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011 R. Bourquin @license: Modified BSD License """ from numpy import squeeze from matplotlib.pyplot import * from WaveBlocks import GaussHermiteQR tests = (2, 3, 4, 7, 32, 64, 128) for I in tests: ...
18.65
89
0.61126
a7e7986c81b7eb2a012589680dc9149ce7e709a3
7,141
py
Python
neural_network.py
lee-winchester/deep-neural-network
8f7c012e864a6bf9a3257d8cd08e3b3488243b19
[ "MIT" ]
null
null
null
neural_network.py
lee-winchester/deep-neural-network
8f7c012e864a6bf9a3257d8cd08e3b3488243b19
[ "MIT" ]
null
null
null
neural_network.py
lee-winchester/deep-neural-network
8f7c012e864a6bf9a3257d8cd08e3b3488243b19
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np import matplotlib.pyplot as plt import scipy ROWS = 64 COLS = 64 CHANNELS = 3 TRAIN_DIR = 'Train_data/' TEST_DIR = 'Test_data/' train_images = [TRAIN_DIR+i for i in os.listdir(TRAIN_DIR)] test_images = [TEST_DIR+i for i in os.listdir(TEST_DIR)] train_set_x, train_set_y = pre...
30.780172
148
0.618261
a7e7c360d245af4066c15b6cc4582b7c3939eb5b
798
py
Python
main.py
UstymHanyk/NearbyMovies
b54995463a30a130f9023c63d6549e734c45251c
[ "MIT" ]
1
2021-02-15T20:20:06.000Z
2021-02-15T20:20:06.000Z
main.py
UstymHanyk/NearbyMovies
b54995463a30a130f9023c63d6549e734c45251c
[ "MIT" ]
null
null
null
main.py
UstymHanyk/NearbyMovies
b54995463a30a130f9023c63d6549e734c45251c
[ "MIT" ]
null
null
null
""" A module for generating a map with 10 nearest movies """ from data_reader import read_data, select_year from locations_finder import coord_finder, find_nearest_movies from map_generator import generate_map if __name__=="__main__": start()
42
114
0.766917
a7e7f170ca97fac3a1e811a7610e759c8f771e42
9,003
py
Python
wbtools/lib/nlp/entity_extraction/ntt_extractor.py
WormBase/wbtools
70d07109182706b2a6cc333ef7a17dcd293cc3f3
[ "MIT" ]
1
2021-02-17T06:54:13.000Z
2021-02-17T06:54:13.000Z
wbtools/lib/nlp/entity_extraction/ntt_extractor.py
WormBase/wbtools
70d07109182706b2a6cc333ef7a17dcd293cc3f3
[ "MIT" ]
1
2021-04-28T20:58:57.000Z
2021-04-28T20:58:57.000Z
wbtools/lib/nlp/entity_extraction/ntt_extractor.py
WormBase/wbtools
70d07109182706b2a6cc333ef7a17dcd293cc3f3
[ "MIT" ]
1
2021-03-31T17:23:37.000Z
2021-03-31T17:23:37.000Z
import math import re from typing import List, Dict from wbtools.db.generic import WBGenericDBManager from wbtools.lib.nlp.common import EntityType from wbtools.lib.nlp.literature_index.abstract_index import AbstractLiteratureIndex ALL_VAR_REGEX = r'({designations}|m|p|It)(_)?([A-z]+)?([0-9]+)([a-zA-Z]{{1,4}}[0-9]*)?...
56.26875
128
0.59258
a7e832d5a07f4dde801acb1a916d9e7763b10c42
3,228
py
Python
tests/feature_extractors/test_bitteli.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
21
2016-08-22T22:00:49.000Z
2020-03-29T04:15:19.000Z
tests/feature_extractors/test_bitteli.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
22
2016-08-28T01:07:08.000Z
2018-02-07T14:38:26.000Z
tests/feature_extractors/test_bitteli.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
3
2017-01-12T10:04:27.000Z
2022-01-06T13:25:48.000Z
"""Test motif.features.bitteli """ import unittest import numpy as np from motif.feature_extractors import bitteli
30.742857
66
0.565675
a7e94b54f09da5dbd4544a51eda95b42dbf4bd2e
3,436
py
Python
qf_lib/backtesting/events/time_event/regular_date_time_rule.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
198
2019-08-16T15:09:23.000Z
2022-03-30T12:44:00.000Z
qf_lib/backtesting/events/time_event/regular_date_time_rule.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
13
2021-01-07T10:15:19.000Z
2022-03-29T13:01:47.000Z
qf_lib/backtesting/events/time_event/regular_date_time_rule.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
29
2019-08-16T15:21:28.000Z
2022-02-23T09:53:49.000Z
# Copyright 2016-present CERN European Organization for Nuclear Research # # 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....
45.813333
116
0.680151
a7ea14ccf7f41c0614b8f95c605b3bd30018a21b
2,643
py
Python
example_project/blog/migrations/0001_initial.py
allran/djangorestframework-appapi
5e843b70910ccd55d787096ee08eb85315c80000
[ "BSD-2-Clause" ]
4
2019-10-15T06:47:29.000Z
2019-11-11T13:16:15.000Z
example_project/blog/migrations/0001_initial.py
allran/djangorestframework-appapi
5e843b70910ccd55d787096ee08eb85315c80000
[ "BSD-2-Clause" ]
null
null
null
example_project/blog/migrations/0001_initial.py
allran/djangorestframework-appapi
5e843b70910ccd55d787096ee08eb85315c80000
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-16 02:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
43.327869
193
0.573212
a7eb2348cfa9a172a906c37500f1917164aff9ba
515
py
Python
hamming/hamming.py
olepunchy/exercism-python-solutions
7710e49ec0188510d50a22928cdb951063ad1a44
[ "BSD-3-Clause" ]
1
2021-12-20T11:29:35.000Z
2021-12-20T11:29:35.000Z
hamming/hamming.py
olepunchy/exercism-python-solutions
7710e49ec0188510d50a22928cdb951063ad1a44
[ "BSD-3-Clause" ]
null
null
null
hamming/hamming.py
olepunchy/exercism-python-solutions
7710e49ec0188510d50a22928cdb951063ad1a44
[ "BSD-3-Clause" ]
null
null
null
"""Hamming Distance from Exercism""" def distance(strand_a, strand_b): """Determine the hamming distance between two RNA strings param: str strand_a param: str strand_b return: int calculation of the hamming distance between strand_a and strand_b """ if len(strand_a) != len(strand_b): ...
25.75
81
0.660194
a7ec26521d5754d63393dc5921008ed61eb700b3
1,384
py
Python
python/scopePractice.py
5x5x5x5/Back2Basics
4cd4117c6fdcb064b6cd62fde63be92347950526
[ "Unlicense" ]
null
null
null
python/scopePractice.py
5x5x5x5/Back2Basics
4cd4117c6fdcb064b6cd62fde63be92347950526
[ "Unlicense" ]
1
2016-02-14T00:09:48.000Z
2016-02-14T00:10:05.000Z
python/scopePractice.py
5x5x5x5/Back2Basics
4cd4117c6fdcb064b6cd62fde63be92347950526
[ "Unlicense" ]
null
null
null
#def spam(): # eggs = 31337 #spam() #print(eggs) """ def spam(): eggs = 98 bacon() print(eggs) def bacon(): ham = 101 eggs = 0 spam() """ """ # Global variables can be read from local scope. def spam(): print(eggs) eggs = 42 spam() print(eggs) """ """ # Local and global variables with th...
16.674699
257
0.621387
a7ee3074b0e06212ba87fbc858e47dc0897b2f73
3,114
py
Python
utils/csv_generator.py
stegmaierj/CellSynthesis
de2c90ed668b7f57b960896473df3d56636eca82
[ "Apache-2.0" ]
1
2021-07-21T21:40:32.000Z
2021-07-21T21:40:32.000Z
utils/csv_generator.py
stegmaierj/CellSynthesis
de2c90ed668b7f57b960896473df3d56636eca82
[ "Apache-2.0" ]
null
null
null
utils/csv_generator.py
stegmaierj/CellSynthesis
de2c90ed668b7f57b960896473df3d56636eca82
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ # 3D Image Data Synthesis. # Copyright (C) 2021 D. Eschweiler, M. Rethwisch, M. Jarchow, S. Koppers, J. Stegmaier # # 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 Liceense at ...
33.847826
113
0.633269
a7f02ff728dc30360284b4e08bfb0d211597ed3b
1,003
py
Python
test/test_VersionUpdaterWindow.py
jmarrec/IDFVersionUpdater2
0420732141e41bdc06c85f1372d82f0843f8cebf
[ "BSD-3-Clause" ]
null
null
null
test/test_VersionUpdaterWindow.py
jmarrec/IDFVersionUpdater2
0420732141e41bdc06c85f1372d82f0843f8cebf
[ "BSD-3-Clause" ]
null
null
null
test/test_VersionUpdaterWindow.py
jmarrec/IDFVersionUpdater2
0420732141e41bdc06c85f1372d82f0843f8cebf
[ "BSD-3-Clause" ]
2
2020-09-25T08:02:39.000Z
2021-08-18T08:30:31.000Z
import os import sys import tempfile import unittest sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'IDFVersionUpdater')) from VersionUpdaterWindow import VersionUpdaterWindow
31.34375
101
0.682951
a7f04cab3ce9aa87269ec6d3083f5676dec9b76a
421
py
Python
Algorithm/Mathematical/453. Minimum Moves to Equal Array Elements.py
smsubham/Data-Structure-Algorithms-Questions
45da68231907068ef4e4a0444ffdac69b337fa7c
[ "Apache-2.0" ]
null
null
null
Algorithm/Mathematical/453. Minimum Moves to Equal Array Elements.py
smsubham/Data-Structure-Algorithms-Questions
45da68231907068ef4e4a0444ffdac69b337fa7c
[ "Apache-2.0" ]
null
null
null
Algorithm/Mathematical/453. Minimum Moves to Equal Array Elements.py
smsubham/Data-Structure-Algorithms-Questions
45da68231907068ef4e4a0444ffdac69b337fa7c
[ "Apache-2.0" ]
null
null
null
# https://leetcode.com/problems/minimum-moves-to-equal-array-elements/ # Explanation: https://leetcode.com/problems/minimum-moves-to-equal-array-elements/discuss/93817/It-is-a-math-question # Source: https://leetcode.com/problems/minimum-moves-to-equal-array-elements/discuss/272994/Python-Greedy-Sum-Min*Len
60.142857
118
0.752969
a7f28bd0d14c90ec88699bf98d0a9fe7b8320366
583
py
Python
tests/test_decisions.py/test_binary_decision.py
evanofslack/pyminion
0d0bfc6d8e84e9f33e617c7d01b6edb649166290
[ "MIT" ]
5
2021-12-17T20:34:55.000Z
2022-01-24T15:18:05.000Z
tests/test_decisions.py/test_binary_decision.py
evanofslack/pyminion
0d0bfc6d8e84e9f33e617c7d01b6edb649166290
[ "MIT" ]
31
2021-10-29T21:05:00.000Z
2022-03-22T03:27:14.000Z
tests/test_decisions.py/test_binary_decision.py
evanofslack/pyminion
0d0bfc6d8e84e9f33e617c7d01b6edb649166290
[ "MIT" ]
1
2021-12-23T18:32:47.000Z
2021-12-23T18:32:47.000Z
from pyminion.decisions import binary_decision
27.761905
56
0.749571
a7f2b60426d4a9b0bbe027e12dcdd2ac3143d158
1,658
py
Python
commands/limit.py
nstra111/autovc
e73e1fea7b566721c3dce3ca6f587472e7ee9d1b
[ "MIT" ]
177
2020-02-02T18:03:46.000Z
2022-03-17T06:18:43.000Z
commands/limit.py
zigsphere/Auto-Voice-Channels
6ae901728580bef4246737a6f1b9f10763badd3e
[ "MIT" ]
82
2020-02-02T17:43:18.000Z
2022-03-24T20:34:55.000Z
commands/limit.py
zigsphere/Auto-Voice-Channels
6ae901728580bef4246737a6f1b9f10763badd3e
[ "MIT" ]
165
2019-02-17T20:15:20.000Z
2022-03-27T23:59:23.000Z
import utils import functions as func from commands.base import Cmd help_text = [ [ ("Usage:", "<PREFIX><COMMAND>\n" "<PREFIX><COMMAND> `N`"), ("Description:", "Use when already in a channel - Limit the number of users allowed in your channel to either the current " ...
28.586207
115
0.571773
a7f2fd039004fefa20925e8a466b301e8532a1f0
11,548
py
Python
salt/tests/unit/modules/test_metalk8s_solutions.py
zarumaru/metalk8s
8c79a28c2bd28ca5b84e58ace5605cbe6183fc75
[ "Apache-2.0" ]
null
null
null
salt/tests/unit/modules/test_metalk8s_solutions.py
zarumaru/metalk8s
8c79a28c2bd28ca5b84e58ace5605cbe6183fc75
[ "Apache-2.0" ]
null
null
null
salt/tests/unit/modules/test_metalk8s_solutions.py
zarumaru/metalk8s
8c79a28c2bd28ca5b84e58ace5605cbe6183fc75
[ "Apache-2.0" ]
null
null
null
import errno import os.path import yaml from parameterized import param, parameterized from salt.exceptions import CommandExecutionError from salttesting.mixins import LoaderModuleMockMixin from salttesting.unit import TestCase from salttesting.mock import MagicMock, mock_open, patch import metalk8s_solutions from...
36.660317
79
0.559144
a7f5cbeb6c6ac6730e6541d991681e7c83554dd8
523
py
Python
fun.py
Krishna-Aaseri/Python_Logical_Questions
c0f025a56dbbf85426142adb423b25fa7b034adb
[ "MIT" ]
null
null
null
fun.py
Krishna-Aaseri/Python_Logical_Questions
c0f025a56dbbf85426142adb423b25fa7b034adb
[ "MIT" ]
null
null
null
fun.py
Krishna-Aaseri/Python_Logical_Questions
c0f025a56dbbf85426142adb423b25fa7b034adb
[ "MIT" ]
null
null
null
#def add(num,num1): # add1=num+num1 # print add1 #add(6,7) #def welcome(): # print "python kaisa lagta h aapko" # print "but please reply na kare aap" #welcome() user = int(raw_input("enter a number")) i = 0 new = [] while i < (user): user1 = int(raw_input("enter a number")) new.append(user1) i = i + 1 print new ...
13.763158
54
0.565966
a7f7aa50e11186fe4bb67eb3b4c81147ea13ad7a
29
py
Python
app.py
00MB/lottocoin
ebf27f5a02169d948e8633b1dc5d5ad37ee1bb4a
[ "MIT" ]
2
2021-02-10T01:40:36.000Z
2021-02-10T01:41:22.000Z
app.py
00MB/lottocoin
ebf27f5a02169d948e8633b1dc5d5ad37ee1bb4a
[ "MIT" ]
null
null
null
app.py
00MB/lottocoin
ebf27f5a02169d948e8633b1dc5d5ad37ee1bb4a
[ "MIT" ]
null
null
null
from lottocoin import app
5.8
25
0.758621
a7f8a1ad9e3a4405d58d74a78a4a7eac31d085da
30,883
py
Python
api/views_v2.py
GeRDI-Project/HarvesterControlCenter
ce161a31a6510ae28ffa68b8e0fd43c42060cb07
[ "Apache-2.0" ]
null
null
null
api/views_v2.py
GeRDI-Project/HarvesterControlCenter
ce161a31a6510ae28ffa68b8e0fd43c42060cb07
[ "Apache-2.0" ]
9
2020-01-07T12:40:26.000Z
2021-09-22T18:00:38.000Z
api/views_v2.py
GeRDI-Project/HarvesterControlCenter
ce161a31a6510ae28ffa68b8e0fd43c42060cb07
[ "Apache-2.0" ]
null
null
null
""" This is the views module which encapsulates the backend logic which will be riggered via the corresponding path (url). """ import collections import json import logging from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib...
36.036173
96
0.628307
a7f8c76db9c1ab40ada45ae9f5ec62c61c102d7a
8,151
py
Python
rin/modules/setu/lolicon.py
oralvi/rinyuuki
2b55a5a9f0ebbecbdba815e242450b248c8e727a
[ "MIT" ]
null
null
null
rin/modules/setu/lolicon.py
oralvi/rinyuuki
2b55a5a9f0ebbecbdba815e242450b248c8e727a
[ "MIT" ]
null
null
null
rin/modules/setu/lolicon.py
oralvi/rinyuuki
2b55a5a9f0ebbecbdba815e242450b248c8e727a
[ "MIT" ]
null
null
null
import datetime import io import json import os import random import traceback import aiohttp from PIL import Image import rin from rin import R from .config import get_api_num, get_config, key_vaildable_query, set_key_invaild quota_limit_time = datetime.datetime.now() native_info = {} native_r18_info = {} # ...
25.392523
100
0.655502
a7fa41d77e47cb4e42dcb175ead24d162418cceb
363
py
Python
Python Backend/diarization/build/lib/s4d/__init__.py
AdityaK1211/Final_Year_Project_SCET
1a6092e1345dad473375ada787fb5cb00ee7515f
[ "MIT" ]
1
2022-02-15T02:49:22.000Z
2022-02-15T02:49:22.000Z
Python Backend/diarization/build/lib/s4d/__init__.py
AdityaK1211/Final_Year_Project_SCET
1a6092e1345dad473375ada787fb5cb00ee7515f
[ "MIT" ]
null
null
null
Python Backend/diarization/build/lib/s4d/__init__.py
AdityaK1211/Final_Year_Project_SCET
1a6092e1345dad473375ada787fb5cb00ee7515f
[ "MIT" ]
2
2021-07-11T12:42:43.000Z
2022-02-15T02:49:24.000Z
__author__ = 'meignier' import s4d.clustering.hac_bic import s4d.clustering.hac_clr import s4d.clustering.hac_iv import s4d.clustering.hac_utils import s4d.model_iv from s4d.clustering.cc_iv import ConnectedComponent from s4d.diar import Diar from s4d.segmentation import sanity_check, bic_linear, div_gauss from s4d.vi...
27.923077
64
0.837466
a7faceab673a31a756534245b8aaabc503d661d6
1,217
py
Python
docs/demos/theme_explorer/list_group.py
sthagen/facultyai-dash-bootstrap-components
2dd5eaf1c1494b2077bcee82eb7968ec2e23af46
[ "Apache-2.0" ]
50
2018-09-23T08:57:28.000Z
2019-02-02T19:59:35.000Z
docs/demos/theme_explorer/list_group.py
sthagen/dash-bootstrap-components
d79ad7f8fdf4c26165038e6989e24f2ac17663b1
[ "Apache-2.0" ]
99
2018-09-21T11:06:29.000Z
2019-02-04T09:04:07.000Z
docs/demos/theme_explorer/list_group.py
sthagen/dash-bootstrap-components
d79ad7f8fdf4c26165038e6989e24f2ac17663b1
[ "Apache-2.0" ]
3
2018-09-25T02:16:24.000Z
2018-12-22T20:56:31.000Z
import dash_bootstrap_components as dbc from dash import html from .util import make_subheading list_group = html.Div( [ make_subheading("ListGroup", "list_group"), dbc.ListGroup( [ dbc.ListGroupItem("No color applied"), dbc.ListGroupItem("The primary it...
36.878788
73
0.520953
a7fd2734a072f2bcad84ee84ad66f361e1da1371
865
py
Python
products/migrations/0004_auto_20210715_2006.py
keeks-mtl/go-tennis
af3f325a9cfb2faba4d935824492f4aea6d10309
[ "W3C", "PostgreSQL" ]
null
null
null
products/migrations/0004_auto_20210715_2006.py
keeks-mtl/go-tennis
af3f325a9cfb2faba4d935824492f4aea6d10309
[ "W3C", "PostgreSQL" ]
null
null
null
products/migrations/0004_auto_20210715_2006.py
keeks-mtl/go-tennis
af3f325a9cfb2faba4d935824492f4aea6d10309
[ "W3C", "PostgreSQL" ]
null
null
null
# Generated by Django 3.2.3 on 2021-07-15 20:06 from django.db import migrations, models
25.441176
62
0.557225
a7fd5742db5fc95146713081d7d7a20b702afa5b
5,967
py
Python
task_landscape.py
aspnetcs/RecurJac-and-CROWN
5b3fcaaa7a275483e26164506f66a618538ee881
[ "BSD-2-Clause" ]
54
2020-09-09T12:43:43.000Z
2022-03-17T17:31:19.000Z
task_landscape.py
huanzhang12/RecurJac-Jacobian-Bounds
163c84e7a8d345d18c718cf6b0bc61baa8a1a78a
[ "BSD-2-Clause" ]
8
2020-09-23T05:11:31.000Z
2022-03-12T00:47:29.000Z
task_landscape.py
huanzhang12/RecurJac
163c84e7a8d345d18c718cf6b0bc61baa8a1a78a
[ "BSD-2-Clause" ]
5
2020-09-10T07:19:43.000Z
2021-07-24T06:28:04.000Z
## task_landscape.py ## ## Run RecurJac/FastLip bounds for exploring local optimization landscape ## ## Copyright (C) 2018, Huan Zhang <huan@huan-zhang.com> and contributors ## ## This program is licenced under the BSD 2-Clause License, ## contained in the LICENCE file in this directory. ## See CREDITS for a list of ...
54.743119
392
0.657282
a7fe6e62a19f61aac68612f736fdb8db8ad2bc69
5,956
py
Python
tests/test_prepareDeploymentContainerDefinitionsStep.py
AdventielFr/ecs-crd-cli
f1421055be0b2b25e5334aef277d27bc30f161e5
[ "MIT" ]
1
2020-07-22T15:18:51.000Z
2020-07-22T15:18:51.000Z
tests/test_prepareDeploymentContainerDefinitionsStep.py
AdventielFr/ecs-crd-cli
f1421055be0b2b25e5334aef277d27bc30f161e5
[ "MIT" ]
4
2020-03-24T17:30:40.000Z
2021-06-02T00:23:48.000Z
tests/test_prepareDeploymentContainerDefinitionsStep.py
AdventielFr/ecs-crd-cli
f1421055be0b2b25e5334aef277d27bc30f161e5
[ "MIT" ]
2
2019-09-24T15:21:56.000Z
2021-07-05T07:25:20.000Z
import pytest from unittest.mock import MagicMock import logging from ecs_crd.canaryReleaseInfos import CanaryReleaseInfos from ecs_crd.prepareDeploymentContainerDefinitionsStep import PrepareDeploymentContainerDefinitionsStep from ecs_crd.canaryReleaseInfos import ScaleInfos logger = logging.Logger('mock') infos = C...
30.54359
103
0.684184
a7fef4c124b33416bb39eb6677220ad02a959e38
4,871
py
Python
Sim/A_star/A_star.py
Chains99/Battlefield-Simulator
9dc209c34aac5160232e47d6799bbe1b1bfcebad
[ "MIT" ]
null
null
null
Sim/A_star/A_star.py
Chains99/Battlefield-Simulator
9dc209c34aac5160232e47d6799bbe1b1bfcebad
[ "MIT" ]
null
null
null
Sim/A_star/A_star.py
Chains99/Battlefield-Simulator
9dc209c34aac5160232e47d6799bbe1b1bfcebad
[ "MIT" ]
null
null
null
from Sim.A_star.heap import node_heap,heapify_down,heapify_up,extract_min,append_node from math import inf from math import pow # Recibe x, y componentes de la matriz y devuelve la distancia euclideana entre ellos # Construimos un heap con los nodos del mapa con un valor inicial inf # Actualizamos el peso/costo d...
31.836601
148
0.624512
a7ff7c5a80c329a083ab577506e02644e8986047
919
py
Python
setup.py
danielcliu/youtube-transcript-channel-api
3102c23379ad86231374b4763716310890133553
[ "MIT" ]
7
2020-10-21T08:55:38.000Z
2021-03-22T02:53:20.000Z
setup.py
danielcliu/youtube-transcript-channel-api
3102c23379ad86231374b4763716310890133553
[ "MIT" ]
3
2021-06-02T12:30:15.000Z
2022-02-11T12:46:13.000Z
setup.py
danielcliu/youtube-transcript-channel-api
3102c23379ad86231374b4763716310890133553
[ "MIT" ]
1
2021-03-25T20:03:36.000Z
2021-03-25T20:03:36.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="youtube-channel-transcript-api", # Replace with your own username version="0.0.1", author="Daniel Liu", author_email="dcliu@ucdavis.edu", description="A python package the utilizes the You...
32.821429
126
0.669206
c50026f8c76e0a37813e1e12579a0e280470bcd9
1,252
py
Python
51-100/67.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
51-100/67.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
51-100/67.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
# Given two binary strings, return their sum (also a binary string). # # For example, # a = "11" # b = "1" # Return "100". s = Solution() print(s.addBinary("0", "0")) # print(s.addBinary("11", "1"))
23.185185
68
0.384185
c5013b78c012ef81d3fc817c0e0956eb0e420741
2,761
py
Python
src/mds/query.py
phs-rcg/metadata-service
227ab79f1d8eadc3265cdb0c0bfcfc54db1da3b8
[ "Apache-2.0" ]
10
2020-04-28T10:20:02.000Z
2021-11-01T22:20:10.000Z
src/mds/query.py
phs-rcg/metadata-service
227ab79f1d8eadc3265cdb0c0bfcfc54db1da3b8
[ "Apache-2.0" ]
23
2020-02-04T22:36:02.000Z
2022-03-24T18:26:49.000Z
src/mds/query.py
phs-rcg/metadata-service
227ab79f1d8eadc3265cdb0c0bfcfc54db1da3b8
[ "Apache-2.0" ]
6
2020-01-14T20:44:50.000Z
2022-02-15T22:17:14.000Z
from fastapi import HTTPException, Query, APIRouter from starlette.requests import Request from starlette.status import HTTP_404_NOT_FOUND from .models import db, Metadata mod = APIRouter() def init_app(app): app.include_router(mod, tags=["Query"])
27.61
88
0.574067
c5013dd528c7dae240161ed939f71c7b9ea2e1ef
695
py
Python
src/RTmission/storeinfo/forms.py
shehabkotb/RTmission_backend
90afb06e7d290e934e3e5f77e789b9c5227805f7
[ "BSD-3-Clause" ]
null
null
null
src/RTmission/storeinfo/forms.py
shehabkotb/RTmission_backend
90afb06e7d290e934e3e5f77e789b9c5227805f7
[ "BSD-3-Clause" ]
null
null
null
src/RTmission/storeinfo/forms.py
shehabkotb/RTmission_backend
90afb06e7d290e934e3e5f77e789b9c5227805f7
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.core import validators from .models import UserInfo
22.419355
89
0.539568
c50321a74b64b29dc6c4a647f031c7b97620662c
2,668
py
Python
python/54.spiral-matrix.py
kadaliao/leetcode
32170b1c2ba24b3765d22f9379534651080bab26
[ "MIT" ]
null
null
null
python/54.spiral-matrix.py
kadaliao/leetcode
32170b1c2ba24b3765d22f9379534651080bab26
[ "MIT" ]
null
null
null
python/54.spiral-matrix.py
kadaliao/leetcode
32170b1c2ba24b3765d22f9379534651080bab26
[ "MIT" ]
null
null
null
# @lc app=leetcode.cn id=54 lang=python3 # # [54] # # https://leetcode-cn.com/problems/spiral-matrix/description/ # # algorithms # Medium (43.22%) # Total Accepted: 129.4K # Total Submissions: 284.1K # Testcase Example: '[[1,2,3],[4,5,6],[7,8,9]]' # # m n matrix # # # 1 # # # matrix = [[1,2,3],[4,5,6],[7,8,...
24.477064
87
0.467391
c503e7668b1bca9c8fa3e9b2fad69b66aea6dd54
660
py
Python
tests/test_path.py
Infinidat/infi.gevent-utils
7aef923fb19c2ea7abfe9f8341d2dfcb7b7eebdd
[ "BSD-3-Clause" ]
null
null
null
tests/test_path.py
Infinidat/infi.gevent-utils
7aef923fb19c2ea7abfe9f8341d2dfcb7b7eebdd
[ "BSD-3-Clause" ]
null
null
null
tests/test_path.py
Infinidat/infi.gevent-utils
7aef923fb19c2ea7abfe9f8341d2dfcb7b7eebdd
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from infi.gevent_utils.os import path import sys import os sys.path.append(os.path.dirname(__file__)) from utils import GreenletCalledValidatorTestCase
33
100
0.771212
c5041849eb6e20166cf188e490e80a877301469d
2,951
py
Python
download-from-web/govori.py
miroslavradojevic/python-snippets
753e1c15dc077d3bcf5de4fd5d3a675daf0da27c
[ "MIT" ]
null
null
null
download-from-web/govori.py
miroslavradojevic/python-snippets
753e1c15dc077d3bcf5de4fd5d3a675daf0da27c
[ "MIT" ]
null
null
null
download-from-web/govori.py
miroslavradojevic/python-snippets
753e1c15dc077d3bcf5de4fd5d3a675daf0da27c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Download .mp3 podcast files of Radio Belgrade show Govori da bih te video (Speak so that I can see you) # grab all mp3s and save them with parsed name and date to the output folder import requests import os import time import xml.dom.minidom from urllib.parse import urlparse url = "https://www....
36.432099
105
0.597763
c506aceeb7ea06c9672cd06b35d80f96cd51d00c
830
py
Python
setup.py
uhlerlab/conditional_independence
aa4b5117b6f24bf39433d427d490312864e9bd69
[ "BSD-3-Clause" ]
4
2021-01-29T20:27:31.000Z
2022-02-01T11:55:33.000Z
setup.py
uhlerlab/conditional_independence
aa4b5117b6f24bf39433d427d490312864e9bd69
[ "BSD-3-Clause" ]
null
null
null
setup.py
uhlerlab/conditional_independence
aa4b5117b6f24bf39433d427d490312864e9bd69
[ "BSD-3-Clause" ]
1
2021-09-12T13:41:21.000Z
2021-09-12T13:41:21.000Z
import setuptools setuptools.setup( name='conditional_independence', version='0.1a.4', description='Parametric and non-parametric conditional independence tests.', long_description='', author='Chandler Squires', author_email='chandlersquires18@gmail.com', packages=setuptools.find_packages(e...
25.151515
80
0.6
c509490417a8c93598f13380d18986bf96b33fd7
200
py
Python
feedbacks/urls.py
mpyatishev/djfeedback
fc1ebf0646d4449371ed80560db7cbb3f7996156
[ "MIT" ]
null
null
null
feedbacks/urls.py
mpyatishev/djfeedback
fc1ebf0646d4449371ed80560db7cbb3f7996156
[ "MIT" ]
null
null
null
feedbacks/urls.py
mpyatishev/djfeedback
fc1ebf0646d4449371ed80560db7cbb3f7996156
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from . import views urlpatterns = patterns( '', url(r'feedback$', views.FeedbackView.as_view(), name='feedback-post') )
15.384615
73
0.655
c5095d645afe3699b5e0ecd4c38a1042890d0c0e
6,466
py
Python
pygeoapi/provider/mongo.py
paul121/pygeoapi
21c4d36a408f510ac83ff6c1d56932338ddb6d6e
[ "MIT" ]
null
null
null
pygeoapi/provider/mongo.py
paul121/pygeoapi
21c4d36a408f510ac83ff6c1d56932338ddb6d6e
[ "MIT" ]
null
null
null
pygeoapi/provider/mongo.py
paul121/pygeoapi
21c4d36a408f510ac83ff6c1d56932338ddb6d6e
[ "MIT" ]
1
2021-10-02T14:04:20.000Z
2021-10-02T14:04:20.000Z
# ================================================================= # # Authors: Timo Tuunanen <timo.tuunanen@rdvelho.com> # # Copyright (c) 2019 Timo Tuunanen # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to de...
35.333333
79
0.604547
c509a2151c61ed3015af0423248b9cd0ce672927
1,975
py
Python
examples/ecs/server_interface.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
examples/ecs/server_interface.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
examples/ecs/server_interface.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.000Z
# -*-coding:utf-8 -*- from openstack import connection # create connection username = "xxxxxx" password = "xxxxxx" projectId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" # tenant ID userDomainId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" # user account ID auth_url = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" # endpoint url conn = connection....
32.377049
75
0.671392
c50a6cdccc88ffe721b0e07a35e407563cda966e
9,060
py
Python
sdk/python/pulumi_google_native/dlp/v2/stored_info_type.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/dlp/v2/stored_info_type.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/dlp/v2/stored_info_type.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
45.757576
294
0.663135
c50a6f36d8c6b2d26bcac12eab8fe5a236ca18f3
7,795
py
Python
python/GafferSceneUI/SceneHistoryUI.py
pier-robot/gaffer
9267f2ba3822b14430d8a283c745261110b0f570
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUI/SceneHistoryUI.py
pier-robot/gaffer
9267f2ba3822b14430d8a283c745261110b0f570
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUI/SceneHistoryUI.py
pier-robot/gaffer
9267f2ba3822b14430d8a283c745261110b0f570
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2019, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
31.946721
109
0.710969
c50ac3b029d23e93f95a2998c1cb8c9b33f3b8ee
294
py
Python
core/middleware/scheduler.py
jiangxuewen16/hq-crawler
f03ec1e454513307e335943f224f4d927eaf2bbf
[ "MIT" ]
1
2021-02-25T08:33:40.000Z
2021-02-25T08:33:40.000Z
core/middleware/scheduler.py
jiangxuewen16/hq-crawler
f03ec1e454513307e335943f224f4d927eaf2bbf
[ "MIT" ]
null
null
null
core/middleware/scheduler.py
jiangxuewen16/hq-crawler
f03ec1e454513307e335943f224f4d927eaf2bbf
[ "MIT" ]
2
2021-03-08T07:25:16.000Z
2021-12-07T15:28:02.000Z
from django.utils.deprecation import MiddlewareMixin from django.utils.autoreload import logger
21
52
0.731293
c50d8c67882d7ef410bf79b36de881a95ed1d06e
631
py
Python
python/cw/letterfreq2.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
7
2016-01-03T19:42:07.000Z
2018-10-23T14:03:12.000Z
python/cw/letterfreq2.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
null
null
null
python/cw/letterfreq2.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
1
2018-03-09T08:52:01.000Z
2018-03-09T08:52:01.000Z
#!/usr/bin/env python from __future__ import division import sys from string import ascii_lowercase with open(sys.argv[1]) as f: data = f.read().splitlines() d = {} for line in data: for letter in line: letter = letter.lower() if letter not in ascii_lowercase+' ': continue ...
21.033333
55
0.557845
c50e54be42b3e46e041c3408bc115beca68acf17
946
py
Python
function/python/brightics/function/extraction/test/label_encoder_test.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/extraction/test/label_encoder_test.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/extraction/test/label_encoder_test.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
1
2020-11-19T06:44:15.000Z
2020-11-19T06:44:15.000Z
import unittest from brightics.function.extraction.encoder import label_encoder, \ label_encoder_model from brightics.common.datasets import load_iris import random
30.516129
101
0.684989
c510311a203699e5c3e0a6d1d76232cf2598509a
4,629
py
Python
data/query-with-params/parameter_supported_query_results.py
samelamin/setup
73f7807ad1bd37bfc7e7021c8c71f9ef34c8b9b4
[ "BSD-2-Clause" ]
7
2021-08-20T22:48:39.000Z
2022-01-29T04:07:43.000Z
redash_parameter_supported_query_results_query_runner/parameter_supported_query_results.py
ariarijp/redash-parameter-supported-query-results-query-runner
09e688c2be91354a8be76051b9a8e27c4cde5e4c
[ "BSD-2-Clause" ]
null
null
null
redash_parameter_supported_query_results_query_runner/parameter_supported_query_results.py
ariarijp/redash-parameter-supported-query-results-query-runner
09e688c2be91354a8be76051b9a8e27c4cde5e4c
[ "BSD-2-Clause" ]
null
null
null
import hashlib import json import logging import re import sqlite3 from typing import List, Optional, Tuple import pystache from redash.models import Query, User from redash.query_runner import TYPE_STRING, guess_type, register from redash.query_runner.query_results import Results, _load_query, create_table from reda...
29.864516
110
0.62022
c5116b08a2ee4021d6233bcbecfc48a6ba698572
1,111
py
Python
notes/migrations/0005_auto_20160130_0015.py
nicbou/markdown-notes
a5d398b032b7a837909b684bb3121c7b68f49e7b
[ "CC0-1.0" ]
121
2015-04-11T20:59:48.000Z
2021-05-12T02:15:36.000Z
notes/migrations/0005_auto_20160130_0015.py
nicbou/markdown-notes
a5d398b032b7a837909b684bb3121c7b68f49e7b
[ "CC0-1.0" ]
56
2015-08-10T08:16:35.000Z
2022-03-11T23:12:33.000Z
notes/migrations/0005_auto_20160130_0015.py
nicbou/markdown-notes
a5d398b032b7a837909b684bb3121c7b68f49e7b
[ "CC0-1.0" ]
32
2015-08-11T02:50:44.000Z
2021-09-02T10:15:00.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.db.models.deletion from django.conf import settings
30.861111
126
0.591359
c5118009a2cf132e4b87f2f696c2abdd36248815
5,479
py
Python
Coursework_02/Q3/airport/scenarios.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
Coursework_02/Q3/airport/scenarios.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
Coursework_02/Q3/airport/scenarios.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
''' Created on 25 Jan 2022 @author: ucacsjj ''' from .airport_map import MapCellType from .airport_map import AirportMap # This file contains a set of functions which build different maps. Only # two of these are needed for the coursework. Others are ones which were # used for developing and testing the algorithms a...
32.613095
94
0.686804
c511d2974df6ea839e2f08eec91ae6a38dd211bf
332
py
Python
setup.py
abkfenris/adm_locations
266915ab7e7559bd4c66d4090bcd69a2a93ab563
[ "MIT" ]
null
null
null
setup.py
abkfenris/adm_locations
266915ab7e7559bd4c66d4090bcd69a2a93ab563
[ "MIT" ]
null
null
null
setup.py
abkfenris/adm_locations
266915ab7e7559bd4c66d4090bcd69a2a93ab563
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='csv_locate', version='0.1', py_modules=['csv_to_json'], install_requires=[ 'click', 'colorama', 'geocoder', 'geojson', 'jinja2', ], entry_points=''' [console_scripts] csv_locate=csv_to_json:convert...
17.473684
38
0.539157
c511e84604115905acf9bda9b841b2099fbb06a7
1,600
py
Python
app.py
LuizGGoncalves/Corona-Graphics-Python
e2374abcff6e67f226a3e8f3d5a3dec5b4f2a5a8
[ "MIT" ]
null
null
null
app.py
LuizGGoncalves/Corona-Graphics-Python
e2374abcff6e67f226a3e8f3d5a3dec5b4f2a5a8
[ "MIT" ]
null
null
null
app.py
LuizGGoncalves/Corona-Graphics-Python
e2374abcff6e67f226a3e8f3d5a3dec5b4f2a5a8
[ "MIT" ]
null
null
null
from flask import Flask from Config import app_config, app_active from flask import render_template from flask_sqlalchemy import SQLAlchemy import Forms import LDB import gGraficos config = app_config[app_active]
34.782609
134
0.59
c5137e8834c331e474c1e9e3483b2dcf01683c8b
4,852
py
Python
kitti_meters/frustum.py
HaochengWan/PVT
95818d303ee63084f044a057344b2049d1fa4492
[ "MIT" ]
27
2021-12-14T02:10:37.000Z
2022-03-31T09:54:09.000Z
kitti_meters/frustum.py
HaochengWan/PVT
95818d303ee63084f044a057344b2049d1fa4492
[ "MIT" ]
3
2022-02-20T09:42:01.000Z
2022-03-21T07:32:46.000Z
kitti_meters/frustum.py
HaochengWan/PVT
95818d303ee63084f044a057344b2049d1fa4492
[ "MIT" ]
2
2021-12-30T05:43:41.000Z
2022-02-15T13:47:21.000Z
import numpy as np import torch from modules.frustum import get_box_corners_3d from kitti_meters.util import get_box_iou_3d __all__ = ['MeterFrustumKitti']
54.516854
117
0.650041
c5160250b4498c1f1e7cd89943e80a080c1c9214
689
py
Python
Base/__init__.py
jasrub/panorama-worker
35083d4e46b7c15e33ef352562bd7889634dcebc
[ "MIT" ]
2
2017-05-30T13:38:44.000Z
2020-06-08T08:27:32.000Z
Base/__init__.py
jasrub/panorama-worker
35083d4e46b7c15e33ef352562bd7889634dcebc
[ "MIT" ]
null
null
null
Base/__init__.py
jasrub/panorama-worker
35083d4e46b7c15e33ef352562bd7889634dcebc
[ "MIT" ]
null
null
null
import os import json import ConfigParser import logging.config base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # load the shared settings file settings_file_path = os.path.join(base_dir, 'config', 'settings.config') settings = ConfigParser.ConfigParser() settings.read(settings_file_path) # s...
32.809524
87
0.69521
c5160d08bb96e67a6e7e528e268fa0a4a2d6dfb2
2,462
py
Python
src/main.py
Grant-Steinfeld/python-ubi-openshift
82fb2d4a4093a5b67c68a3443da23532f59a230c
[ "Apache-2.0" ]
7
2020-04-21T21:23:39.000Z
2022-02-16T11:09:58.000Z
src/main.py
Grant-Steinfeld/python-ubi-openshift
82fb2d4a4093a5b67c68a3443da23532f59a230c
[ "Apache-2.0" ]
3
2020-02-18T21:57:04.000Z
2020-03-26T20:37:22.000Z
src/main.py
Grant-Steinfeld/python-ubi-openshift
82fb2d4a4093a5b67c68a3443da23532f59a230c
[ "Apache-2.0" ]
13
2020-04-27T19:56:43.000Z
2022-03-31T03:53:22.000Z
from flask import Flask from flask_restplus import Api, Resource, fields from services.serviceHandler import convertCurrency, getCurrencyExchangeRates from services.countryCurrencyCodeHandler import ( getCountryAndCurrencyCode, getCurrencyNameAndCode, ) app = Flask(__name__) api = Api( app, version="1....
31.974026
98
0.718522
c517a4c10d04e5d45c2f649fb106b2a711638d2d
6,344
py
Python
orchestration/run/BrokerActions.py
pjk25/RabbitTestTool
c0b9e820f079d14d516185f2790371380e190d6c
[ "MIT" ]
null
null
null
orchestration/run/BrokerActions.py
pjk25/RabbitTestTool
c0b9e820f079d14d516185f2790371380e190d6c
[ "MIT" ]
null
null
null
orchestration/run/BrokerActions.py
pjk25/RabbitTestTool
c0b9e820f079d14d516185f2790371380e190d6c
[ "MIT" ]
null
null
null
import sys import io import subprocess import threading import time import uuid import os.path import requests import json from random import randint from UniqueConfiguration import UniqueConfiguration from CommonConfiguration import CommonConfiguration from printer import console_out
42.577181
144
0.589061
c5198d8481c8a0970f981fde506e8ae0b90aab1f
1,763
py
Python
bin/wls_users.py
rstyczynski/wls-tools
292a39a3f7af7b9d7d4c4849618d6789daae9b58
[ "Apache-2.0" ]
null
null
null
bin/wls_users.py
rstyczynski/wls-tools
292a39a3f7af7b9d7d4c4849618d6789daae9b58
[ "Apache-2.0" ]
null
null
null
bin/wls_users.py
rstyczynski/wls-tools
292a39a3f7af7b9d7d4c4849618d6789daae9b58
[ "Apache-2.0" ]
null
null
null
#!$BEA_HOME/oracle_common/common/bin/wlst.sh # default values admin_name = 'AdminServer' admin_address = 'localhost' admin_port = 7001 admin_protocol = 't3' admin_url = admin_protocol + "://" + admin_address + ":" + str(admin_port) try: opts, args = getopt.getopt( sys.argv[1:], 's:p:u::d:h', ['server=','port='...
27.546875
101
0.642087
c51b416cfe1486d20ea86dd385bdcfa1be5f1bbe
1,082
py
Python
scripts/drop_low_coverage.py
godzilla-but-nicer/SporeLoss
8159a628e5f17191254583c053891070ba3d6e7f
[ "MIT" ]
null
null
null
scripts/drop_low_coverage.py
godzilla-but-nicer/SporeLoss
8159a628e5f17191254583c053891070ba3d6e7f
[ "MIT" ]
null
null
null
scripts/drop_low_coverage.py
godzilla-but-nicer/SporeLoss
8159a628e5f17191254583c053891070ba3d6e7f
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from Bio import AlignIO, Seq # parameter to determine the maximum missing proportion that we keep missing_thresh = 0.4 # load the alignments and turn them into a numpy array alignments = AlignIO.read(snakemake.input[0], 'fasta') align_arr = np.array([list(rec) for rec in alignme...
31.823529
72
0.711645
c51b5610a93a01c7edaae445a44f41f8aa36b738
626
py
Python
get_proc_users.py
dangtrinhnt/gem
bc53cf19d3541542e4c14c24b5fb186432e91c45
[ "Apache-2.0" ]
null
null
null
get_proc_users.py
dangtrinhnt/gem
bc53cf19d3541542e4c14c24b5fb186432e91c45
[ "Apache-2.0" ]
44
2019-11-18T20:15:35.000Z
2021-07-27T20:26:38.000Z
get_proc_users.py
dangtrinhnt/gem
bc53cf19d3541542e4c14c24b5fb186432e91c45
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import sys from commons import * if __name__ == "__main__": csv_path = sys.argv[1] if sys.argv[2] == 'all': condition_number = [-1] else: condition_number = map(int, sys.argv[2].split(',')) print_proc_users(csv_path, condition_number)
24.076923
64
0.699681