hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
21986418ea3b33d23544661f40dfaae8b78d0a90
1,384
py
Python
instructors/course-2015/flask-cont/examples/in_class/models.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/course-2015/flask-cont/examples/in_class/models.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/course-2015/flask-cont/examples/in_class/models.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
from datetime import datetime from flask.ext.login import UserMixin from config import db def create_db(): """need to run this just ONCE to create the database """ db.create_all() class User(UserMixin, db.Model): __tablename__ = "hack_news_users" id = db.Column(db.Integer, primary_key=True) ...
26.615385
83
0.666185
21987144dc32d10dddfcf7c0724f78d5d6ee05c8
1,835
py
Python
alipay/aop/api/domain/AlipayBossFncApbillBillcustviewBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayBossFncApbillBillcustviewBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayBossFncApbillBillcustviewBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayBossFncApbillBillcustviewBatchqueryModel(object): def __init__(self): self._bill_nos = None self._invoice_type = None @property def bill_nos(self): return s...
28.671875
75
0.582016
2198901a4da63b739c800f47ecc06e000c8d1d64
1,090
py
Python
riptide_controllers/action/goToDepth.py
tsender/riptide_software
e30489403310578fa475d1075cab98495d070a58
[ "BSD-2-Clause" ]
null
null
null
riptide_controllers/action/goToDepth.py
tsender/riptide_software
e30489403310578fa475d1075cab98495d070a58
[ "BSD-2-Clause" ]
null
null
null
riptide_controllers/action/goToDepth.py
tsender/riptide_software
e30489403310578fa475d1075cab98495d070a58
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python import rospy import actionlib from riptide_msgs.msg import DepthCommand, Depth import riptide_controllers.msg class GoToDepthAction(object): def __init__(self): self.depthPub = rospy.Publisher("/command/depth", DepthCommand, queue_size=1) self._as = actionlib.SimpleActionS...
30.277778
149
0.647706
2198ad9fa2815ac2411840b58f274c8a47f0052d
9,046
py
Python
pyKinectTools/utils/DepthReader.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
33
2015-04-07T16:28:04.000Z
2021-11-22T00:28:43.000Z
pyKinectTools/utils/DepthReader.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyKinectTools/utils/DepthReader.py
colincsl/pyKinectTools
a84bb5b7ff9dd613576415932865c2ad435520b3
[ "BSD-2-Clause-FreeBSD" ]
13
2015-04-07T16:28:34.000Z
2021-04-26T08:04:36.000Z
import os, time, sys import numpy as np import cv, cv2 from math import floor # import SkelPlay as SR import pyKinectTools.utils.SkeletonUtils as SR # from pyKinectTools.utils.DepthUtils import * from pyKinectTools.algs.BackgroundSubtraction import constrain def getFolderTime(folderName): # Folder name is of forma...
29.854785
156
0.63166
2198c0d86eb45981f1b17fb73f7e599c486f8f36
2,287
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/messages/get_sticker_set.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/messages/get_sticker_set.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/messages/get_sticker_set.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.763889
103
0.636642
2198c2e7506b1a81ae5fa2c2a4e86677b8e1497e
7,162
py
Python
ryu/app/MeshsrGUI_DBDeamon/GUIAdapter.py
samueldeng/ryu
9dd1c746f3ceb8f3255d068acee89bc755b15214
[ "Apache-2.0" ]
null
null
null
ryu/app/MeshsrGUI_DBDeamon/GUIAdapter.py
samueldeng/ryu
9dd1c746f3ceb8f3255d068acee89bc755b15214
[ "Apache-2.0" ]
null
null
null
ryu/app/MeshsrGUI_DBDeamon/GUIAdapter.py
samueldeng/ryu
9dd1c746f3ceb8f3255d068acee89bc755b15214
[ "Apache-2.0" ]
null
null
null
import json from time import sleep import MySQLdb import copy __author__ = 'samuel' REST_SERVER_ADDR = 'http://localhost:8080' DBADRESS = 'localhost' DBUSER = 'root' DBPASSWD = 'mysql' DBNAME = 'meshsr' conn = MySQLdb.connect(host=DBADRESS, user=DBUSER, passwd=DBPASSWD, db=DBNAME) conn.autocommit(True) cursor = con...
31.275109
103
0.604859
2198c88941af37c7a7e6c24f3cea2d091ef07379
428
py
Python
smartva/rules/drowning_adult.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-23T12:57:47.000Z
2020-04-18T17:13:08.000Z
smartva/rules/drowning_adult.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-09T22:10:07.000Z
2022-02-16T04:57:06.000Z
smartva/rules/drowning_adult.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
11
2018-12-11T22:01:13.000Z
2022-01-07T11:38:02.000Z
# https://stash.ihme.washington.edu/projects/VA/repos/business_rules/browse/doc/md/drowning.md from smartva.data.constants import * from smartva.utils.utils import value_from_row, int_or_float CAUSE_ID = 15 def logic_rule(row): value_of = value_from_row(row, int_or_float) drowning = value_of(Adult.DROWNING)...
26.75
94
0.773364
2198d70ee4472448f733a588627d25592daff1e3
1,798
py
Python
instructors/course-2015/errors_and_introspection/examples/pdb0.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/course-2015/errors_and_introspection/examples/pdb0.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/course-2015/errors_and_introspection/examples/pdb0.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
""" This isn't a script, here's the first way to run pdb: $ python -m pdb myscript.py From our PDB docs: When invoked as a script, pdb will automatically enter post-mortem debugging if the program being debugged exits abnormally. After post-mortem debugging (or after normal exit of the program), pdb will rest...
30.474576
371
0.6802
2198fa42e6174e48f092087404d7f3f3db8310b0
791
py
Python
app/notifications/utils.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
51
2016-04-03T23:36:17.000Z
2022-03-21T20:04:52.000Z
app/notifications/utils.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
1,335
2015-12-15T14:28:50.000Z
2022-03-30T16:24:27.000Z
app/notifications/utils.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
30
2016-01-08T19:05:32.000Z
2021-12-20T16:37:23.000Z
import requests from flask import current_app def confirm_subscription(confirmation_request): url = confirmation_request.get('SubscribeURL') if not url: current_app.logger.warning("SubscribeURL does not exist or empty") return response = requests.get(url) try: response.raise_f...
30.423077
106
0.716814
2199344c98188a474be9783e1b20c7644915293c
656
py
Python
performance/driver/core/classes/tracker.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
2
2018-02-27T18:21:21.000Z
2018-03-16T12:12:12.000Z
performance/driver/core/classes/tracker.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
1
2018-06-25T07:14:41.000Z
2018-06-25T07:14:41.000Z
performance/driver/core/classes/tracker.py
mesosphere/dcos-perf-test-driver
8fba87cb6c6f64690c0b5bef5c7d9f2aa0fba06b
[ "Apache-2.0" ]
1
2020-06-25T10:37:21.000Z
2020-06-25T10:37:21.000Z
import logging from performance.driver.core.config import Configurable from performance.driver.core.events import MetricUpdateEvent from performance.driver.core.eventbus import EventBusSubscriber class Tracker(EventBusSubscriber, Configurable): def __init__(self, config, eventbus, summarizer): Configurable.__i...
32.8
78
0.766768
21993c550960c1127ed3747f671eb0a0d838f67c
1,761
py
Python
password.py
Peet-pitz/Password-Locker
17588b045a573af9dced405dda086a8631abecf1
[ "Unlicense" ]
null
null
null
password.py
Peet-pitz/Password-Locker
17588b045a573af9dced405dda086a8631abecf1
[ "Unlicense" ]
null
null
null
password.py
Peet-pitz/Password-Locker
17588b045a573af9dced405dda086a8631abecf1
[ "Unlicense" ]
null
null
null
class User : """ Class that generates new instances of users """ user_list = [] def __init__ (self,user_name,account_name,email,password): """ __init__ method that helps us define properties for our objects. Args: name: New name of the user. ...
25.521739
98
0.560477
2199712d9152f1efb8b2f200d07e6f9f5ffa0c19
703
py
Python
src/olympia/scanners/migrations/0026_auto_20200217_1528.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/scanners/migrations/0026_auto_20200217_1528.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/scanners/migrations/0026_auto_20200217_1528.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
# Generated by Django 2.2.10 on 2020-02-17 15:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scanners', '0025_switch_enable_call_ml_api_task'), ] operations = [ migrations.AddField( model_name='scannerqueryrule', ...
29.291667
130
0.631579
21997ab89d384da8dda7dc0db848b0cade919db9
12,800
py
Python
altair_viewer/_viewer.py
mattijn/altair_viewer
57a9a4e94cd0118d87a8c624a8a891bcdbeca697
[ "BSD-3-Clause" ]
51
2019-12-29T02:37:28.000Z
2021-11-09T13:09:24.000Z
altair_viewer/_viewer.py
mattijn/altair_viewer
57a9a4e94cd0118d87a8c624a8a891bcdbeca697
[ "BSD-3-Clause" ]
11
2020-01-02T20:13:44.000Z
2022-02-16T11:12:11.000Z
altair_viewer/_viewer.py
mattijn/altair_viewer
57a9a4e94cd0118d87a8c624a8a891bcdbeca697
[ "BSD-3-Clause" ]
6
2019-12-28T15:17:48.000Z
2022-01-12T22:56:22.000Z
import json import pkgutil from typing import Dict, Optional, Union import uuid import webbrowser import altair as alt from altair_data_server import Provider, Resource from altair_viewer._scripts import get_bundled_script from altair_viewer._event_provider import EventProvider, DataSource CDN_URL = "https://cdn.jsde...
35.654596
188
0.574531
21997c0cefd2aad3094d102e86305169aef931c1
10,901
gyp
Python
content/content.gyp
leiferikb/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-11-15T15:17:43.000Z
2021-11-15T15:17:43.000Z
content/content.gyp
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/content.gyp
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:02.000Z
2020-11-04T07:24:02.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, # Use higher warning level. 'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/d...
30.88102
101
0.462618
2199c620067beff21d6f60c0dc8839e518fea714
2,229
py
Python
src/continuous_scheduler.py
tdm-project/tdm-power-load-forecaster
4e3644dedd204b6db4bdcf459e7f9fdc4a721588
[ "Apache-2.0" ]
null
null
null
src/continuous_scheduler.py
tdm-project/tdm-power-load-forecaster
4e3644dedd204b6db4bdcf459e7f9fdc4a721588
[ "Apache-2.0" ]
null
null
null
src/continuous_scheduler.py
tdm-project/tdm-power-load-forecaster
4e3644dedd204b6db4bdcf459e7f9fdc4a721588
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2018-2021, CRS4 - Center for Advanced Studies, Research and Development in Sardinia # # 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...
35.380952
96
0.493046
2199c80ec1f4e99b38d40c7201ebf999d47139d4
1,922
py
Python
deid/tests/common.py
glebsts/deid
a0c630ee613d358b3c8e936dd539d51dee94a5a7
[ "MIT" ]
88
2017-10-16T12:47:09.000Z
2022-03-10T23:08:04.000Z
deid/tests/common.py
glebsts/deid
a0c630ee613d358b3c8e936dd539d51dee94a5a7
[ "MIT" ]
180
2017-06-15T01:37:00.000Z
2022-03-23T23:05:57.000Z
deid/tests/common.py
glebsts/deid
a0c630ee613d358b3c8e936dd539d51dee94a5a7
[ "MIT" ]
41
2017-09-29T00:29:50.000Z
2022-03-16T02:26:54.000Z
#!/usr/bin/env python """ Copyright (c) 2016-2021 Vanessa Sochat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
31.508197
78
0.743496
2199e828d3484b0dc7c612b214b9a766a5a6b1a9
4,784
py
Python
api_v1/api_handler/response.py
publichealthengland/coronavirus-dashboard-api-v1
7ed3949ed1a4961345ab0abe433ab469092b93dc
[ "MIT" ]
null
null
null
api_v1/api_handler/response.py
publichealthengland/coronavirus-dashboard-api-v1
7ed3949ed1a4961345ab0abe433ab469092b93dc
[ "MIT" ]
65
2020-12-03T20:15:58.000Z
2022-03-17T09:06:52.000Z
api_v1/api_handler/response.py
publichealthengland/coronavirus-dashboard-api-v1
7ed3949ed1a4961345ab0abe433ab469092b93dc
[ "MIT" ]
1
2020-12-07T13:45:20.000Z
2020-12-07T13:45:20.000Z
#!/usr/bin python3 """ API Response ------------ Utilities that are used to prepare and format the API response. Author: Pouria Hadjibagheri <pouria.hadjibagheri@phe.gov.uk> Created: 23 May 2020 License: MIT Contributors: Pouria Hadjibagheri """ # Imports # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
32.107383
97
0.577968
2199e9b7cd49391a27f884a686a342a65a5bb689
6,360
py
Python
MersProject/removeSubsets.py
arpitbajaj98/MersProject
e26230ad748b164cbde6efd1165f8c0c1b456329
[ "Apache-2.0" ]
1
2020-01-17T02:37:34.000Z
2020-01-17T02:37:34.000Z
MersProject/removeSubsets.py
nhcha6/MersProject
445ee9dfb0c60002a7f3317f90eaa0115d5c6484
[ "Apache-2.0" ]
null
null
null
MersProject/removeSubsets.py
nhcha6/MersProject
445ee9dfb0c60002a7f3317f90eaa0115d5c6484
[ "Apache-2.0" ]
1
2020-01-17T02:19:26.000Z
2020-01-17T02:19:26.000Z
from concatPeps import * # input file name and sortedFile name. This is used if running this script independantly of the rest of the splicing # program. PEPTIDE_FASTA = 'example6-14_Linear_1_040419_0925' def removeSubsetSeq(outputPath): """ This function manages the flow of the script, calling the functions r...
43.561644
143
0.7
2199ee20246d802552413b56fe8f46ba4e74264a
511
py
Python
fedcloudclient/cli.py
pakoselo/fedcloudclient
5f14ec6b8f686a6df845a13dc76b1cfedac0b0d0
[ "MIT" ]
null
null
null
fedcloudclient/cli.py
pakoselo/fedcloudclient
5f14ec6b8f686a6df845a13dc76b1cfedac0b0d0
[ "MIT" ]
null
null
null
fedcloudclient/cli.py
pakoselo/fedcloudclient
5f14ec6b8f686a6df845a13dc76b1cfedac0b0d0
[ "MIT" ]
null
null
null
""" Main CLI module """ import click from fedcloudclient.checkin import token from fedcloudclient.ec3 import ec3 from fedcloudclient.endpoint import endpoint from fedcloudclient.openstack import openstack, openstack_int from fedcloudclient.sites import site @click.group() @click.version_option() def cli(): pass...
17.62069
61
0.790607
2199f73c25abd2b4736b8b3b9d41facf72431021
5,372
py
Python
server_utils.py
Nikolaj-K/wiki-server
1e73d23cea5acb836cb470bf5c1ec87694ebe36d
[ "MIT" ]
null
null
null
server_utils.py
Nikolaj-K/wiki-server
1e73d23cea5acb836cb470bf5c1ec87694ebe36d
[ "MIT" ]
null
null
null
server_utils.py
Nikolaj-K/wiki-server
1e73d23cea5acb836cb470bf5c1ec87694ebe36d
[ "MIT" ]
null
null
null
import os import re import subprocess from termcolor import colored import server_config as config from server_finder import WordFinder HTML_BAR = '<hr style="border:solid .5px black;">' def get_file_content(filepath): """ docs """ content = open(filepath).read() content = content.replace('\n...
31.052023
143
0.634028
219a181c0e1b518ebd3a632f4c016bce2504111f
162
py
Python
tests/mockprog.py
realead/exetest
7143c04de8f857f556ff0396b4fa8afc147720a5
[ "MIT" ]
null
null
null
tests/mockprog.py
realead/exetest
7143c04de8f857f556ff0396b4fa8afc147720a5
[ "MIT" ]
null
null
null
tests/mockprog.py
realead/exetest
7143c04de8f857f556ff0396b4fa8afc147720a5
[ "MIT" ]
null
null
null
from __future__ import print_function import sys if len(sys.argv) == 1: exit(42) print(sys.argv[1]) print(sys.argv[1]+sys.argv[1], file=sys.stderr) exit(0)
16.2
47
0.703704
219a50ed28db3909801db88d27c533d9d7333a77
22,696
py
Python
wrappers/python/tests/ledger/test_submit_request.py
Diiaablo95/indy-sdk
0ef7321f5902683af928cdc7ea94d522bee33d30
[ "Apache-2.0" ]
null
null
null
wrappers/python/tests/ledger/test_submit_request.py
Diiaablo95/indy-sdk
0ef7321f5902683af928cdc7ea94d522bee33d30
[ "Apache-2.0" ]
null
null
null
wrappers/python/tests/ledger/test_submit_request.py
Diiaablo95/indy-sdk
0ef7321f5902683af928cdc7ea94d522bee33d30
[ "Apache-2.0" ]
null
null
null
import datetime import json import logging import time import pytest from indy import ledger, anoncreds, blob_storage from indy.error import ErrorCode, IndyError @pytest.mark.asyncio async def test_submit_request_works(pool_handle): request = { "reqId": 1491566332010860, "identifier": "Th7MpTaRZ...
50.774049
127
0.710257
219a58235e0e05bda4221955a6ec90afafc591c0
1,247
py
Python
1648.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
1648.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
1648.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
''' @author: l4zyc0d3r People who are happy makes other happy. I am gonna finish it slowly but definitely.cdt ''' class Solution: def maxProfit(self, I: List[int], O: int) -> int: def chkfn(ll): sm = 0 for n in I: if n>ll: sm+= n-ll else: break ...
26.531915
86
0.377706
219a8951b74814ef78573362f5049c21ca3555ff
75
py
Python
docs/homepage/exampletask.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
2
2017-05-24T13:03:30.000Z
2017-09-04T08:24:19.000Z
examples/django/demoproject/demoapp/tasks.py
winhamwr/celery
249a270301ddb9b025cf8d00400bb442df9cae62
[ "BSD-3-Clause" ]
null
null
null
examples/django/demoproject/demoapp/tasks.py
winhamwr/celery
249a270301ddb9b025cf8d00400bb442df9cae62
[ "BSD-3-Clause" ]
null
null
null
from celery.decorators import task @task def add(x, y): return x + y
10.714286
34
0.666667
219a8bbbb5ddcdc7faeef3271b80de9f0bb6efe5
2,927
py
Python
SingleCodeRun.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
SingleCodeRun.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
1
2021-11-11T22:15:36.000Z
2021-11-11T22:15:36.000Z
SingleCodeRun.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
# %% TEst Final run %matplotlib widget import matplotlib.pyplot as plt import numpy as np import VectorFunctions as vf import importlib as imp import functions as f imp.reload(vf) angles_BA = np.array(f.import_bz2('test_photos_angles2')) cameraA_r0 = np.array([0,0,0]) cameraB_r0 = np.array([-29,42,1]) cameras_r0 = [...
28.696078
97
0.680902
219aa0bb0076a8ada723703ee17ae8804c0b44bf
12,898
py
Python
wienerschnitzelgemeinschaft/src/Dmytro/src/utils.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Dmytro/src/utils.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Dmytro/src/utils.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import math import pickle import time import random from contextlib import contextmanager import skimage.io import skimage.transform from skimage.transform import SimilarityTransform, AffineTransform import numpy as np import matplotlib.pyplot as plt import torch.optim.lr_scheduler class CosineAnnealingLRWithRestart...
33.853018
121
0.610947
219af144d78a0fa789c5b79d4ff41a532747c328
114,011
py
Python
nion/data/Core.py
icbicket/niondata
30532a222120d22debe69d7a53a874e643f5d41e
[ "Apache-2.0" ]
null
null
null
nion/data/Core.py
icbicket/niondata
30532a222120d22debe69d7a53a874e643f5d41e
[ "Apache-2.0" ]
null
null
null
nion/data/Core.py
icbicket/niondata
30532a222120d22debe69d7a53a874e643f5d41e
[ "Apache-2.0" ]
null
null
null
# standard libraries import copy import functools import math import operator import typing # third party libraries import numpy import numpy.fft import numpy.typing import scipy import scipy.fftpack import scipy.ndimage import scipy.ndimage.filters import scipy.ndimage.fourier import scipy.signal # local libraries f...
53.028372
251
0.720132
219affcf9cf79c75fe87840fccbb38128fdc8045
4,851
py
Python
src/rxn_network/enumerators/utils.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
29
2020-08-04T07:07:04.000Z
2022-02-22T22:09:20.000Z
src/rxn_network/enumerators/utils.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
70
2021-02-22T07:01:40.000Z
2022-03-31T20:11:56.000Z
src/rxn_network/enumerators/utils.py
GENESIS-EFRC/reaction-network
1482ac1b6b550a5bc9961e9210e33c86c07f64cf
[ "BSD-3-Clause-LBNL" ]
3
2021-04-20T09:29:39.000Z
2022-02-02T17:43:52.000Z
""" Helpful utility functions used by the enumerator classes. """ from typing import List, Union from pymatgen.entries.computed_entries import Entry, ComputedEntry import rxn_network.costs.calculators as calcs from rxn_network.entries.entry_set import GibbsEntrySet from rxn_network.reactions.computed import ComputedR...
23.896552
88
0.661307
219b248f2dfb3992dfabe18970b754f1f118c67d
2,746
py
Python
test/test_facility_resource.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
test/test_facility_resource.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
test/test_facility_resource.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest im...
37.616438
143
0.615805
219b29828a7c5cb43be1ecd14490c5b7b60392b7
179
py
Python
grazer/version.py
CodersOfTheNight/web-grazer
e74f81493842a97f405ddc427b4358ecd40ec756
[ "MIT" ]
null
null
null
grazer/version.py
CodersOfTheNight/web-grazer
e74f81493842a97f405ddc427b4358ecd40ec756
[ "MIT" ]
null
null
null
grazer/version.py
CodersOfTheNight/web-grazer
e74f81493842a97f405ddc427b4358ecd40ec756
[ "MIT" ]
null
null
null
""" Module just to print out current version. That's all. """ VERSION = (1, 2, 1) def get_version(): """ Returns version """ return ".".join(map(str, VERSION))
12.785714
41
0.575419
219b5ea130260d55585972bb2154fcaac416cf2f
8,947
py
Python
avanthive/tests/test_hive.py
amount/PyHive
be525f1ab500916bd1b04de6aed6e1505db4f3d8
[ "Apache-2.0" ]
null
null
null
avanthive/tests/test_hive.py
amount/PyHive
be525f1ab500916bd1b04de6aed6e1505db4f3d8
[ "Apache-2.0" ]
null
null
null
avanthive/tests/test_hive.py
amount/PyHive
be525f1ab500916bd1b04de6aed6e1505db4f3d8
[ "Apache-2.0" ]
null
null
null
"""Hive integration tests. These rely on having a Hive+Hadoop cluster set up with HiveServer2 running. They also require a tables created by make_test_tables.sh. """ from __future__ import absolute_import from __future__ import unicode_literals import contextlib import subprocess import time import unittest import ...
40.853881
99
0.612608
219b7d47c6d7de72088e56f897595dc65e45cb81
4,207
py
Python
bin/auscophub_checkXmlByRoi.py
CopernicusAustralasia/auscophub
d7e2974898bb3ee9b262281fbd663326c1c48d05
[ "MIT" ]
4
2020-01-25T02:01:49.000Z
2021-06-21T08:38:18.000Z
bin/auscophub_checkXmlByRoi.py
CopernicusAustralasia/auscophub
d7e2974898bb3ee9b262281fbd663326c1c48d05
[ "MIT" ]
null
null
null
bin/auscophub_checkXmlByRoi.py
CopernicusAustralasia/auscophub
d7e2974898bb3ee9b262281fbd663326c1c48d05
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Take a list of AusCopHubMeta XML files, and a shapefile of the ROI (region of interest), and report which XML files are completely outside the ROI. This script is intended to be used on the server, to check all of the holdings against a new ROI, to see which (if any) can now be discarded. It...
29.41958
99
0.672926
219b87b5f4cd59c74270d5c7974b2a855845abf0
2,632
py
Python
ripley/test/python/run_umfpackSolversOnRipley.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
ripley/test/python/run_umfpackSolversOnRipley.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
ripley/test/python/run_umfpackSolversOnRipley.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unt...
32.097561
93
0.678571
219bad4dfbce3f82ff0bada7d42b94687030b0f1
71
py
Python
src/models/__init__.py
Nmegha2601/activitygraph_transformer
4e21a4ea12527df470b7586d149fa4168a41307c
[ "MIT" ]
63
2021-01-22T06:18:01.000Z
2022-03-13T08:28:47.000Z
src/models/__init__.py
Nmegha2601/activitygraph_transformer
4e21a4ea12527df470b7586d149fa4168a41307c
[ "MIT" ]
11
2021-01-28T07:40:36.000Z
2021-04-20T13:23:17.000Z
src/models/__init__.py
Nmegha2601/activitygraph_transformer
4e21a4ea12527df470b7586d149fa4168a41307c
[ "MIT" ]
17
2021-01-22T03:36:10.000Z
2022-01-10T03:54:50.000Z
from .agt import build def build_model(args): return build(args)
11.833333
22
0.71831
219bb6d2851ce2fa58b02c99909fa8df7cba802f
10,095
py
Python
utilities/excel2yaml.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
5
2019-12-18T15:27:28.000Z
2020-10-03T09:10:23.000Z
utilities/excel2yaml.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
11
2019-12-18T14:53:03.000Z
2021-12-30T07:26:46.000Z
utilities/excel2yaml.py
roseDickinson/nismod2
5c571b055a6f5dc26bdc2bc8950b9cf1c9202fca
[ "MIT" ]
3
2019-12-18T15:27:39.000Z
2022-02-25T07:04:06.000Z
#!/usr/bin/env python """Convert from integration_template.xlsx to yaml project files Example usage:: ./excel2yaml.py energy_supply ./integration_template.xlsx ../project/ Arguments --------- - name of simulation model - path to template excel file - path to project directory Process ------- - read region_defin...
35.421053
164
0.651313
219bd91a7d37e012b23eb3c1a569b27086784bd2
11,292
py
Python
ginga/misc/plugins/Compose.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
ginga/misc/plugins/Compose.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
ginga/misc/plugins/Compose.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
# # Compose.py -- Compose plugin for Ginga reference viewer # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import os from ginga.gw import Widgets from ginga.misc import Bunch from ginga import RGBImage, LayerImage from ginga import GingaPlugin import nu...
31.898305
114
0.604145
219beb2c3802c131f9f970a34786d4ffe17403cd
1,077
py
Python
nicos_pnpi/nero/setups/virtual-count.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_pnpi/nero/setups/virtual-count.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos_pnpi/nero/setups/virtual-count.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Count nero devices' excludes = ['count'] devices = dict( det1_timer = device('nicos.devices.generic.VirtualTimer', description = 'timer', ), det1_mon1 = device('nicos.devices.generic.VirtualCounter', description = 'Monitor',...
33.65625
62
0.444754
219c440a0559da2d139802a132172df5ac455c87
7,816
py
Python
ep/ep_font.py
epthegeek/cactuscanyon
b732692090cf9c60aebb2aa8b5e8e2b52c9ef00b
[ "Unlicense" ]
10
2015-11-04T21:19:42.000Z
2022-01-04T06:15:28.000Z
ep/ep_font.py
epthegeek/cactuscanyon
b732692090cf9c60aebb2aa8b5e8e2b52c9ef00b
[ "Unlicense" ]
null
null
null
ep/ep_font.py
epthegeek/cactuscanyon
b732692090cf9c60aebb2aa8b5e8e2b52c9ef00b
[ "Unlicense" ]
5
2017-03-16T18:14:41.000Z
2020-10-17T15:21:53.000Z
import os from procgame.dmd import Animation, Frame from procgame import config from procgame import util import ep # Anchor values are used by Font.draw_in_rect(): AnchorN = 1 AnchorW = 2 AnchorE = 4 AnchorS = 8 AnchorNE = AnchorN | AnchorE AnchorNW = AnchorN | AnchorW AnchorSE = AnchorS | AnchorE AnchorSW = AnchorS ...
39.276382
167
0.600051
219cbdd0db3312465ace0a03a9e9e704c37ccfe7
846
py
Python
src/gcg/analyze/utils.py
gkahn13/GtS
8186177de430d4bfef253bb0ea584ee60dc58d3a
[ "MIT" ]
74
2019-02-12T04:52:01.000Z
2021-06-11T00:19:45.000Z
src/gcg/analyze/utils.py
gkahn13/GtS
8186177de430d4bfef253bb0ea584ee60dc58d3a
[ "MIT" ]
5
2019-02-27T13:38:56.000Z
2020-11-30T11:29:28.000Z
src/gcg/analyze/utils.py
gkahn13/GtS
8186177de430d4bfef253bb0ea584ee60dc58d3a
[ "MIT" ]
16
2019-02-20T12:09:25.000Z
2022-02-09T12:49:09.000Z
import numpy as np import scipy import scipy.interpolate def moving_avg_std(idxs, data, window): avg_idxs, means, stds = [], [], [] for i in range(window//2, len(data)-window//2): avg_idxs.append(np.mean(idxs[i - window//2:i + window//2])) means.append(np.mean(data[i - window//2:i + window//2])...
31.333333
74
0.594563
219cd93afc7cf9fb28a375318ed6166f41c97a29
168
py
Python
tests/tf_influence.py
cmu-transparency/lib-attribution
248d10ac5518a220205081ff6a5954fa594d4d78
[ "MIT" ]
5
2020-09-16T21:22:59.000Z
2021-08-12T01:03:31.000Z
tests/tf_influence.py
cmu-transparency/lib-attribution
248d10ac5518a220205081ff6a5954fa594d4d78
[ "MIT" ]
1
2021-06-25T10:35:19.000Z
2021-06-27T08:17:07.000Z
tests/tf_influence.py
cmu-transparency/lib-attribution
248d10ac5518a220205081ff6a5954fa594d4d78
[ "MIT" ]
1
2021-08-12T01:03:48.000Z
2021-08-12T01:03:48.000Z
import os os.environ["KERAS_BACKEND"]="tensorflow" import numpy as np from influence_tests import all_tests if __name__ == "__main__": np.random.seed(0) all_tests()
18.666667
40
0.767857
219d0e76d5997000f19143d75d38817511677801
796
py
Python
xos/manage.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/manage.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/manage.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.chdir('..') # <<<---This is what you want to add os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xos.settings") from django.core.management import execute_from_command_line if "--makemigrations" in sys.argv: os.system(...
30.615385
67
0.684673
219d271083d3efa184ce1a81ae52d0f950fd1372
3,400
py
Python
test2/test_ICUFoldingFilter.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
test2/test_ICUFoldingFilter.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
test2/test_ICUFoldingFilter.py
IreneZhou0129/PyLucene-assignment
70916f1c8451c5dce5c5205915b25f214ffed2e4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ==================================================================== # 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/LIC...
34.343434
96
0.594706
219d49ded00b492bb5ec09a8f9be987c847f9440
7,853
py
Python
DeepLearning/DeepLearning/09_Deep_SongJW/book/common/layers.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
1
2019-06-27T04:05:59.000Z
2019-06-27T04:05:59.000Z
DeepLearning/DeepLearning/09_Deep_SongJW/book/common/layers.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
DeepLearning/DeepLearning/09_Deep_SongJW/book/common/layers.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np from book.common.functions import * from book.common.util import im2col, col2im class Relu: def __init__(self): self.mask = None def forward(self, x): self.mask = (x <= 0) out = x.copy() out[self.mask] = 0 return out def backwar...
26.530405
101
0.51891
219d6aa9f0361425558e5a21d607475b2f870c92
389
py
Python
personal/yxl1632/CameronTests/polls/urls.py
gentsk77/EECS341-Final
6a050e1d2718996af2cb672af6b9ea41d0da04d4
[ "MIT" ]
1
2019-03-26T22:02:38.000Z
2019-03-26T22:02:38.000Z
personal/yxl1632/CameronTests/polls/urls.py
Susanou/FitHub
6a050e1d2718996af2cb672af6b9ea41d0da04d4
[ "MIT" ]
4
2019-04-29T07:35:37.000Z
2019-05-05T12:12:52.000Z
personal/yxl1632/CameronTests/polls/urls.py
Susanou/FitHub
6a050e1d2718996af2cb672af6b9ea41d0da04d4
[ "MIT" ]
2
2019-05-06T04:56:13.000Z
2020-02-03T20:00:21.000Z
from django.urls import path from . import views app_name = 'polls' urlpatterns = [ # "/polls" is the prefix path('', views.index, name='index'), # Use in the form /polls/#(/....) path('<int:question_id>/', views.detail, name='detail'), path('<int:question_id>/result/', views.result, name='resul...
24.3125
67
0.622108
219d71b9166ddcb5ccd19507ebfc7ba229e1fbf7
15,292
py
Python
src/dataprotection/azext_dataprotection/vendored_sdks/dataprotection/aio/operations/_backup_policies_operations.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/dataprotection/azext_dataprotection/vendored_sdks/dataprotection/aio/operations/_backup_policies_operations.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/dataprotection/azext_dataprotection/vendored_sdks/dataprotection/aio/operations/_backup_policies_operations.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0....
48.700637
219
0.672574
219d9fbdec3f6e09fb2b701e393550581f40de43
2,983
py
Python
create-video-chunks.py
tsigalko18/udacity-self-driving-car
71db9cf63f2e2eb6f294f422c3eb430a7bce556b
[ "MIT" ]
2
2019-08-22T18:06:58.000Z
2020-02-10T12:58:27.000Z
create-video-chunks.py
tsigalko18/udacity-self-driving-car
71db9cf63f2e2eb6f294f422c3eb430a7bce556b
[ "MIT" ]
6
2020-03-26T19:17:27.000Z
2022-02-10T01:41:45.000Z
create-video-chunks.py
tsigalko18/udacity-self-driving-car
71db9cf63f2e2eb6f294f422c3eb430a7bce556b
[ "MIT" ]
2
2019-09-11T07:31:59.000Z
2020-10-26T04:38:19.000Z
import argparse import csv import os import numpy as np import utils import itertools from itertools import combinations, permutations from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip def get_metric_speed(metric_array, frame_time): """ get metric values over a time window :param metric_a...
33.897727
131
0.653369
219da1ee510bded27689370fcaf8b716350204f2
5,179
py
Python
azure-devops/azext_devops/vstsCompressed/build/v4_1/models/__init__.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
azure-devops/azext_devops/vstsCompressed/build/v4_1/models/__init__.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
37
2020-04-27T07:45:19.000Z
2021-04-05T07:27:15.000Z
azure-devops/azext_devops/vstsCompressed/build/v4_1/models/__init__.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "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. # --------------------------------------------------------------------...
33.62987
94
0.754007
219de11d1360e41a2ba213fea078e1a87d0c64a8
2,727
py
Python
automaton/plugins/say.py
nemec/Automaton
eea2f89dc10031fba45c80eb63053480dfc3543f
[ "MIT" ]
6
2016-01-05T09:14:57.000Z
2021-05-17T20:46:46.000Z
automaton/plugins/say.py
nemec/Automaton
eea2f89dc10031fba45c80eb63053480dfc3543f
[ "MIT" ]
null
null
null
automaton/plugins/say.py
nemec/Automaton
eea2f89dc10031fba45c80eb63053480dfc3543f
[ "MIT" ]
1
2018-12-18T02:37:24.000Z
2018-12-18T02:37:24.000Z
import os import tempfile import gst import gobject #import threading import subprocess as sp import automaton.lib.plugin import automaton.lib.autoplatform as autoplatform gobject.threads_init() def platform(): """Return the list of platforms the plugin is available for.""" return ['linux'] class Say(automato...
26.735294
122
0.610194
219de45773b369f822926c1bb7ea13594d1b44dc
7,437
py
Python
oracle/datadog_checks/oracle/oracle.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
oracle/datadog_checks/oracle/oracle.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
oracle/datadog_checks/oracle/oracle.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import itertools from contextlib import closing import cx_Oracle from datadog_checks.base import AgentCheck, ConfigurationError from datadog_checks.base.utils.db import QueryManager from . import querie...
39.770053
119
0.63211
219deb1fb78f24267f023e9f9f44f39144ba0780
3,544
py
Python
h/views/api/users.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
1
2019-10-20T11:15:27.000Z
2019-10-20T11:15:27.000Z
h/views/api/users.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
h/views/api/users.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from pyramid.httpexceptions import HTTPConflict from h.auth.util import client_authority from h.views.api.exceptions import PayloadError from h.views.api.config import api_config from h.presenters import TrustedUserJSONPresenter from h.schemas.api.user ...
30.817391
81
0.709932
219e033169757e59f1d00e11485438b55e6940e0
1,274
py
Python
savu/plugins/filters/strip_background_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/filters/strip_background_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/filters/strip_background_tools.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
from savu.plugins.plugin_tools import PluginTools class StripBackgroundTools(PluginTools): """1D background removal. PyMca magic function """ def define_parameters(self): """ iterations: visibility: basic dtype: int description: Number of iteration...
31.073171
70
0.536892
219e28caf570d34d6195e8f9eb597765174ec9d4
1,695
py
Python
idlib/__init__.py
tgbugs/idlib
4760322b023cc38a8f6800141fe8735d10fa014a
[ "MIT" ]
2
2021-11-28T23:52:48.000Z
2022-02-17T18:12:32.000Z
idlib/__init__.py
tgbugs/idlib
4760322b023cc38a8f6800141fe8735d10fa014a
[ "MIT" ]
2
2020-05-22T10:40:58.000Z
2022-01-05T22:38:06.000Z
idlib/__init__.py
tgbugs/idlib
4760322b023cc38a8f6800141fe8735d10fa014a
[ "MIT" ]
null
null
null
from idlib import exceptions as exc from idlib.utils import families from idlib.streams import (Stream, HelperNoData, StreamUri,) from idlib.identifiers import (Identifier,) import idlib.conventions.type # LOL PYTHON import idlib.conventions.local # LOL PYTHON fr...
28.728814
67
0.505015
219e29b1e1b7cc3b6f8eed82e48eaceb349a289b
1,722
py
Python
source/actors/simulated_robot.py
yuhangc/hri_planner_sim
fe4ff1bd5c522ed015798461b53a697095471849
[ "Apache-2.0" ]
null
null
null
source/actors/simulated_robot.py
yuhangc/hri_planner_sim
fe4ff1bd5c522ed015798461b53a697095471849
[ "Apache-2.0" ]
null
null
null
source/actors/simulated_robot.py
yuhangc/hri_planner_sim
fe4ff1bd5c522ed015798461b53a697095471849
[ "Apache-2.0" ]
null
null
null
from actor_base import Actor from source.planner.utils import * class SimulatedDetRobot(Actor): def __init__(self, fp_radius=0.2, pose_init=(0.0, 0.0, 0.0), properties=None): Actor.__init__(self, fp_radius) # do not follow trajectory self.set_follow_trajectory(False) # current ve...
31.888889
82
0.529617
219e57a56db081f7c30fdb1d9d56b01712e9283f
1,003
py
Python
tests/test_actuator.py
twodayslate/openc2-lycan-python
57d68bf1bffb79af34be677645049d3c45d690a4
[ "MIT" ]
6
2018-04-27T14:55:36.000Z
2022-02-06T16:42:53.000Z
tests/test_actuator.py
twodayslate/openc2-lycan-python
57d68bf1bffb79af34be677645049d3c45d690a4
[ "MIT" ]
25
2018-06-21T17:50:56.000Z
2020-04-08T15:38:14.000Z
tests/test_actuator.py
twodayslate/openc2-lycan-python
57d68bf1bffb79af34be677645049d3c45d690a4
[ "MIT" ]
10
2018-04-25T15:17:35.000Z
2021-08-14T09:36:23.000Z
import openc2 import pytest import json import sys def test_actuator_requested(): @openc2.v10.CustomActuator("x-thing", [("id", openc2.properties.StringProperty())]) class MyCustomActuator(object): pass foo = MyCustomActuator(id="id") assert foo assert foo.id == "id" bar = openc2.uti...
24.463415
87
0.626122
219e90b3b9a70149e53c5d7e6ad87d24c2dcbf08
12,815
py
Python
skynet/full_node/coin_store.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
null
null
null
skynet/full_node/coin_store.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
null
null
null
skynet/full_node/coin_store.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional import aiosqlite from skynet.types.blockchain_format.coin import Coin from skynet.types.blockchain_format.sized_bytes import bytes32 from skynet.types.coin_record import CoinRecord from skynet.types.full_block import FullBlock from skynet.util.db_wrapper import DBWrapper from skynet....
39.922118
118
0.602731
219eb3ba69604f290fcc7d2637047e19d412534e
3,644
py
Python
setup.py
winnerineast/espnet
e9ac470dd2b1b3263c7c20e1ff7d2bef1208dc7b
[ "Apache-2.0" ]
null
null
null
setup.py
winnerineast/espnet
e9ac470dd2b1b3263c7c20e1ff7d2bef1208dc7b
[ "Apache-2.0" ]
null
null
null
setup.py
winnerineast/espnet
e9ac470dd2b1b3263c7c20e1ff7d2bef1208dc7b
[ "Apache-2.0" ]
1
2020-01-05T10:50:15.000Z
2020-01-05T10:50:15.000Z
#!/usr/bin/env python3 from distutils.version import LooseVersion import os import pip from setuptools import find_packages from setuptools import setup import sys if LooseVersion(sys.version) < LooseVersion('3.6'): raise RuntimeError( 'ESPnet requires Python>=3.6, ' 'but your Python is {}'.format...
33.431193
82
0.570801
219eb51d20bc2da8a062384b01c67b7c16bb8c06
1,110
py
Python
py3server/swagger_server/controllers/evidence_controller.py
lhannest/pythonBeaconServerStub
3fee2505f5f7afda9184277b5f6308ff05832e35
[ "MIT" ]
null
null
null
py3server/swagger_server/controllers/evidence_controller.py
lhannest/pythonBeaconServerStub
3fee2505f5f7afda9184277b5f6308ff05832e35
[ "MIT" ]
null
null
null
py3server/swagger_server/controllers/evidence_controller.py
lhannest/pythonBeaconServerStub
3fee2505f5f7afda9184277b5f6308ff05832e35
[ "MIT" ]
null
null
null
import connexion from swagger_server.models import InlineResponse2004 from datetime import date, datetime from typing import List, Dict from six import iteritems from ..util import deserialize_date, deserialize_datetime def get_evidence(statementId, keywords=None, pageNumber=None, pageSize=None): """ get_evid...
44.4
179
0.761261
219ece266b7e89bf9d49b3611120ab1a7085c9c4
8,162
py
Python
demisto_sdk/commands/common/tests/readme_test.py
cyrengmbh/demisto-sdk
4d05532efd627a32b1af659e010540cf7ed3ebf3
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/tests/readme_test.py
cyrengmbh/demisto-sdk
4d05532efd627a32b1af659e010540cf7ed3ebf3
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/tests/readme_test.py
cyrengmbh/demisto-sdk
4d05532efd627a32b1af659e010540cf7ed3ebf3
[ "MIT" ]
null
null
null
import io import os import sys import pytest from demisto_sdk.commands.common.hook_validations.readme import ReadMeValidator from demisto_sdk.commands.common.legacy_git_tools import git_path VALID_MD = f'{git_path()}/demisto_sdk/tests/test_files/README-valid.md' INVALID_MD = f'{git_path()}/demisto_sdk/tests/test_file...
41.85641
117
0.666503
219ed4cc537cae2945a06e68b20e8f704a126dad
157
py
Python
seleniumdirector/__init__.py
cshanu/seleniumdirector
c2e7a343225bcca35e9119fd4d5854626e1ac48a
[ "MIT" ]
5
2018-05-02T15:01:46.000Z
2021-11-05T20:26:56.000Z
seleniumdirector/__init__.py
cshanu/seleniumdirector
c2e7a343225bcca35e9119fd4d5854626e1ac48a
[ "MIT" ]
null
null
null
seleniumdirector/__init__.py
cshanu/seleniumdirector
c2e7a343225bcca35e9119fd4d5854626e1ac48a
[ "MIT" ]
1
2020-02-09T11:43:06.000Z
2020-02-09T11:43:06.000Z
from seleniumdirector.webdirector import WebDirector from seleniumdirector.exceptions import SeleniumDirectorException __version__ = "DEVELOPMENT_VERSION"
26.166667
65
0.88535
219ed89a0f929ebe10d8b00a959771c5be266bf1
25,069
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/operations/_import_pipelines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/operations/_import_pipelines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/operations/_import_pipelines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.369912
225
0.678727
219eea5016830fbe7eb8d1fee258fc0312b11e5b
7,218
py
Python
lib/istft.py
ttaoREtw/semi-tts
46750fc68d1547e82bda9341f5029595ded984c8
[ "MIT" ]
40
2020-07-22T04:49:43.000Z
2021-12-19T15:11:30.000Z
lib/istft.py
ttaoREtw/semi-tts
46750fc68d1547e82bda9341f5029595ded984c8
[ "MIT" ]
1
2021-12-13T02:39:29.000Z
2021-12-13T02:39:29.000Z
lib/istft.py
ttaoREtw/semi-tts
46750fc68d1547e82bda9341f5029595ded984c8
[ "MIT" ]
4
2020-08-16T08:43:40.000Z
2021-02-19T09:53:26.000Z
import torch def istft( stft_matrix, # type: Tensor n_fft, # type: int hop_length=None, # type: Optional[int] win_length=None, # type: Optional[int] window=None, # type: Optional[Tensor] center=True, # type: bool pad_mode="reflect", # type: str normalized=False, # type: bool ...
46.269231
106
0.663757
219f1a70e2da5354d86d8df579a39ffc2a3dc5b9
4,964
py
Python
monai/networks/blocks/crf.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
1
2021-07-13T00:34:41.000Z
2021-07-13T00:34:41.000Z
monai/networks/blocks/crf.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/networks/blocks/crf.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
41.714286
121
0.69863
219f8c01884b8a1092ecd2a1defafbd47e79ac00
2,525
py
Python
src/uhod/camels.py
changhoonhahn/uhod
793c6a6d52ad03f7bb60627cd794a46579c10b89
[ "MIT" ]
null
null
null
src/uhod/camels.py
changhoonhahn/uhod
793c6a6d52ad03f7bb60627cd794a46579c10b89
[ "MIT" ]
null
null
null
src/uhod/camels.py
changhoonhahn/uhod
793c6a6d52ad03f7bb60627cd794a46579c10b89
[ "MIT" ]
null
null
null
''' module for interfacing with CAMELS data ''' import os import numpy as np import astropy.table as aTable def Rockstar(snap, real='LH_0', sim='tng') : ''' rockstar+consistent tree halo catalogs with assembly history information ''' # rockstar directory dat_dirs = ['/projects/QUIJOTE/CAMELS/...
25.765306
81
0.568317
219fb22c457d2719480617b293f196fa6e9a39ac
3,621
py
Python
scrapy_products/settings.py
yecharlie/scrapy_products
93280d6676a177c3a7368d222c92c145513082d3
[ "MIT" ]
1
2022-02-17T08:35:13.000Z
2022-02-17T08:35:13.000Z
scrapy_products/settings.py
yecharlie/scrapy_products
93280d6676a177c3a7368d222c92c145513082d3
[ "MIT" ]
null
null
null
scrapy_products/settings.py
yecharlie/scrapy_products
93280d6676a177c3a7368d222c92c145513082d3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for scrapy_products project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/la...
33.841121
103
0.779619
219fba92172c274c9949ca24cef8d986b04d253c
9,281
py
Python
billingclient/v1/report/shell.py
nubeliu/billingclient
f2539e211ca049f3ddc9ce5680932f8f5eff7434
[ "Apache-2.0" ]
1
2018-01-04T16:20:51.000Z
2018-01-04T16:20:51.000Z
billingclient/v1/report/shell.py
nubeliu/billingclient
f2539e211ca049f3ddc9ce5680932f8f5eff7434
[ "Apache-2.0" ]
null
null
null
billingclient/v1/report/shell.py
nubeliu/billingclient
f2539e211ca049f3ddc9ce5680932f8f5eff7434
[ "Apache-2.0" ]
null
null
null
# NubeliU Billing SDK # @autor: Sergio Colinas from billingclient.common import utils from billingclient import exc def do_report_definition_list(cc, args): data = cc.metrics.reports.list() fields = ['id', 'name', 'description', 'metrics', 'granularities', 'time_range_start', 'time_range_end', '...
40.70614
79
0.604892
219fc30ec3628d14e2ca5b1746f721d66816e1d8
8,279
py
Python
osbenchmark/utils/repo.py
opensearch-project/opensearch-benchmark
e589e95457bb8e5b9c6520a779cf32d8f1f8fb01
[ "Apache-2.0" ]
26
2021-12-09T06:58:53.000Z
2022-03-29T15:01:37.000Z
osbenchmark/utils/repo.py
opensearch-project/opensearch-benchmark
e589e95457bb8e5b9c6520a779cf32d8f1f8fb01
[ "Apache-2.0" ]
63
2021-12-08T20:47:17.000Z
2022-03-31T18:21:31.000Z
osbenchmark/utils/repo.py
opensearch-project/opensearch-benchmark
e589e95457bb8e5b9c6520a779cf32d8f1f8fb01
[ "Apache-2.0" ]
5
2021-12-09T10:17:30.000Z
2022-03-03T05:31:12.000Z
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. # Licensed to Elasticsearch B.V. under one ...
51.42236
140
0.632444
219fcaa26d6877f45105ecdce9c91ef0037c973d
1,917
py
Python
AlgorithmicTradingAndQuantitativeAnalysis/Examples/37_renko.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
AlgorithmicTradingAndQuantitativeAnalysis/Examples/37_renko.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
AlgorithmicTradingAndQuantitativeAnalysis/Examples/37_renko.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
# ============================================================================= # Import OHLCV data and transform it to Renko # Author : Mayank Rasu # Please report bug/issues in the Q&A section # ============================================================================= # Import necesary libraries import pandas_d...
42.6
149
0.558164
21a01a88cd5e177dd2b01a8fcec93197ae735a14
5,418
py
Python
menu/tests.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
1
2021-01-28T20:10:36.000Z
2021-01-28T20:10:36.000Z
menu/tests.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
150
2016-08-27T21:38:36.000Z
2021-10-16T23:32:05.000Z
menu/tests.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
2
2016-08-27T21:35:12.000Z
2018-01-13T08:11:33.000Z
""" :Created: 24 August 2016 :Author: Lucas Connors """ from menu.models import Category, MenuItem from restaurant.models import Table from seared_quail.tests import MigrationTestCase, SearedQuailTestCase class MenuItemInitialOrdersMigrationTestCase(MigrationTestCase): migrate_from = "0003_auto_20150514_2203" ...
36.12
86
0.643965
21a02f89b1fd3f8503e93a237bf43c779903937b
1,013
py
Python
the_millionaire/contrib/sites/migrations/0003_set_site_domain_and_name.py
mrsaemir/the_millionaire
3fe2c9c114b43648b1c2e039589733bbf778b7f6
[ "MIT" ]
null
null
null
the_millionaire/contrib/sites/migrations/0003_set_site_domain_and_name.py
mrsaemir/the_millionaire
3fe2c9c114b43648b1c2e039589733bbf778b7f6
[ "MIT" ]
null
null
null
the_millionaire/contrib/sites/migrations/0003_set_site_domain_and_name.py
mrsaemir/the_millionaire
3fe2c9c114b43648b1c2e039589733bbf778b7f6
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
28.942857
129
0.688055
21a03589cd6a3844ccfe9a3448bd80b8213ae9ed
14,958
py
Python
src/entities.py
luzpaz/floor-planner
971334bb7054232035411419910bc860d5da9206
[ "MIT" ]
null
null
null
src/entities.py
luzpaz/floor-planner
971334bb7054232035411419910bc860d5da9206
[ "MIT" ]
null
null
null
src/entities.py
luzpaz/floor-planner
971334bb7054232035411419910bc860d5da9206
[ "MIT" ]
null
null
null
import math, sdl2 from tools import Tools class Entity: """The base class for objects displayed onto the screen. The user can select these objects and assign them to layers. Child classes define how the object's position is determined.""" def __init__(self, layer = 0): # Whether the entity is...
34.465438
80
0.590119
21a0428ff6fd5fb23d728ffe0bbdeffef87f9d34
5,067
py
Python
support/v8/test/message/testcfg.py
hflw/Blackpyre-Engine
9cc22f002cb9a4f9c7995232ef92518c039be9ab
[ "AFL-3.0" ]
48
2015-01-09T20:39:35.000Z
2021-12-21T21:17:52.000Z
deps/v8/test/message/testcfg.py
amdg/node
232b0922751311bafb83cf36e309ea4ff9041a4e
[ "MIT" ]
2
2016-02-05T10:27:37.000Z
2019-01-22T16:22:51.000Z
deps/v8/test/message/testcfg.py
amdg/node
232b0922751311bafb83cf36e309ea4ff9041a4e
[ "MIT" ]
8
2015-01-12T17:14:36.000Z
2018-09-15T14:10:27.000Z
# Copyright 2008 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
36.717391
90
0.677521
21a04e4606ba8e8b5f90a066d65dc854f9431004
1,857
py
Python
medkit/bases/base_env.py
XanderJC/medkit-learn
13b06906f6d093c4978f52f1e8f06e998608faa3
[ "Apache-2.0" ]
14
2021-06-06T18:14:55.000Z
2022-03-18T14:00:05.000Z
medkit/bases/base_env.py
vanderschaarlab/medkit-learn
a8bed6e7a76769f28abfadb3231f139cbfe44b49
[ "Apache-2.0" ]
1
2021-06-13T05:34:21.000Z
2021-06-15T09:52:50.000Z
medkit/bases/base_env.py
vanderschaarlab/medkit-learn
a8bed6e7a76769f28abfadb3231f139cbfe44b49
[ "Apache-2.0" ]
1
2021-10-18T14:07:45.000Z
2021-10-18T14:07:45.000Z
from .__head__ import * from .base_model import BaseModel from .base_reward import BaseReward class BaseEnv(gym.Env): """ Base Environment class. """ def __init__(self, domain): super(BaseEnv, self).__init__() self.name = None # unique string # self.model_config = domain.get_...
25.791667
87
0.600431
21a0506e7f2472dde786d49099acd87b5de0303b
20,989
py
Python
salt/modules/cp.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
1
2020-09-16T21:31:02.000Z
2020-09-16T21:31:02.000Z
salt/modules/cp.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
salt/modules/cp.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Minion side functions for salt-cp ''' from __future__ import absolute_import # Import python libs import os import logging import fnmatch # Import salt libs import salt.minion import salt.fileclient import salt.utils import salt.crypt import salt.transport from salt.exceptions import Comma...
28.791495
94
0.600505
21a08c3e3b4ae22959cf992ea1c929d9e2e2219b
1,240
py
Python
spydrnet/ir/tests/test_bundle.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
34
2020-03-12T15:40:49.000Z
2022-02-28T07:13:47.000Z
spydrnet/ir/tests/test_bundle.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
104
2020-01-06T20:32:19.000Z
2022-01-02T00:20:14.000Z
spydrnet/ir/tests/test_bundle.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
10
2020-09-02T20:24:00.000Z
2022-02-24T16:10:07.000Z
import unittest import spydrnet as sdn from spydrnet.ir.bundle import Bundle from spydrnet.ir.first_class_element import FirstClassElement class TestBundle(unittest.TestCase): def setUp(self) -> None: self.bundle = Bundle() def test_constructor(self): self.assertIsInstance(self.bundle, First...
32.631579
90
0.71371
21a0fb13c441aab710ff43e476dfe91fdd0dbf35
2,736
py
Python
gui/feature_tool_delete.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
null
null
null
gui/feature_tool_delete.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
null
null
null
gui/feature_tool_delete.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** Delete point. Synchonize with layer and file ------------------- begin : 2018-07-11 git sha : $Format:%H$ author : M...
29.73913
78
0.467471
21a138590154313d4a3144ceb4ec1a3b2422d968
46,564
py
Python
trac/wiki/tests/macros.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/macros.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/macros.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
44.304472
991
0.554377
21a145c226e3c19384d55b92593a3745c7e01511
971
py
Python
sncosmo/tests/test_utils.py
MickaelRigault/sncosmo
6b934228f7d3734223e4f21cb590a24d76e39511
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
1
2021-03-22T22:24:29.000Z
2021-03-22T22:24:29.000Z
sncosmo/tests/test_utils.py
MickaelRigault/sncosmo
6b934228f7d3734223e4f21cb590a24d76e39511
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
sncosmo/tests/test_utils.py
MickaelRigault/sncosmo
6b934228f7d3734223e4f21cb590a24d76e39511
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSES import numpy as np from numpy.testing import assert_allclose, assert_approx_equal from scipy.stats import norm from sncosmo import utils def test_format_value(): assert utils.format_value(1.234567) == '1.2345670' assert utils.format_value(0.001234...
28.558824
70
0.641607
21a1593dba9cec89a457d900f71af7620941646a
1,350
py
Python
swaplib/faceboxloc/facebox.py
HCW0727/headswap-machine
16423279a18e30db9d240fd03a9410b7fb213730
[ "MIT" ]
null
null
null
swaplib/faceboxloc/facebox.py
HCW0727/headswap-machine
16423279a18e30db9d240fd03a9410b7fb213730
[ "MIT" ]
null
null
null
swaplib/faceboxloc/facebox.py
HCW0727/headswap-machine
16423279a18e30db9d240fd03a9410b7fb213730
[ "MIT" ]
null
null
null
# Function that executes the code (this is one import all the rest) import cv2 from cv2 import bitwise_and,bitwise_not,bitwise_or from .facelib import * from ..seglib.faceSegmentation import * route = f"{Path(__file__).parent}" def makeFaceBox(source_path, cropface_pathsave='./crop_source.jpg', save=True): ...
28.723404
87
0.705185
21a15c80710d573a142a2e5731cc310216aea7e5
4,717
py
Python
etd/context.py
fmaguire/evolving_threat_detector
3f38ddf3760c604146d75266fe07ec2d7502b7a3
[ "MIT" ]
2
2019-12-14T17:32:57.000Z
2020-01-07T21:39:22.000Z
etd/context.py
fmaguire/evolving_threat_detector
3f38ddf3760c604146d75266fe07ec2d7502b7a3
[ "MIT" ]
11
2019-12-13T20:26:08.000Z
2020-06-17T15:47:33.000Z
etd/context.py
fmaguire/evolving_threat_detector
3f38ddf3760c604146d75266fe07ec2d7502b7a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import pandas as pd import os import sys import seaborn as sns import matplotlib.pyplot as plt def load_metadata(database_dir): card_prev_metadata_path = os.path.join(database_dir, "index", "card_prevalence.txt.gz") if os.path.exists(card_prev_metad...
37.141732
103
0.653169
21a16e19796313399bdfdfe053005aacf8f66df9
423
py
Python
terrascript/resource/mumoshu/helmfile.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/mumoshu/helmfile.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/mumoshu/helmfile.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/mumoshu/helmfile.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:18:32 UTC) import terrascript class helmfile_embedding_example(terrascript.Resource): pass class helmfile_release(terrascript.Resource): pass class helmfile_release_set(terrascript.Resource): pass...
18.391304
73
0.768322
21a186b3d3be23d3bf2616ccb42a4687ee840408
15,785
py
Python
third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-07-15T09:50:14.000Z
2020-07-15T09:50:14.000Z
third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner_unittest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (C) 2012 Google Inc. All rights reserved. # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Szeged # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of so...
52.969799
126
0.652138
21a1908e9df416fd05aef6419e41fc94a40c40c4
65
py
Python
alsek/tools/__init__.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
1
2021-08-16T02:38:40.000Z
2021-08-16T02:38:40.000Z
alsek/tools/__init__.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
null
null
null
alsek/tools/__init__.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
null
null
null
""" Tools """ from alsek.tools.iteration import ResultPool
9.285714
44
0.676923
21a1942374e4feec02a56a4703cf968c76969330
7,596
py
Python
tests/Unit/AutoML/test_data_processing.py
nielsuit227/AutoML
51e2076d52d76dc84a190293b5bb59da2833df89
[ "MIT" ]
2
2021-06-16T22:09:01.000Z
2021-09-06T20:26:42.000Z
tests/Unit/AutoML/test_data_processing.py
nielsuit227/AutoML
51e2076d52d76dc84a190293b5bb59da2833df89
[ "MIT" ]
1
2021-06-04T08:22:02.000Z
2021-06-04T08:22:02.000Z
tests/Unit/AutoML/test_data_processing.py
nielsuit227/AutoML
51e2076d52d76dc84a190293b5bb59da2833df89
[ "MIT" ]
1
2021-09-15T08:34:20.000Z
2021-09-15T08:34:20.000Z
import json import unittest import numpy as np import pandas as pd from sklearn.datasets import load_iris from sklearn.datasets import fetch_california_housing from Amplo.AutoML import DataProcesser from Amplo.Utils import check_dataframe_quality class TestDataProcessing(unittest.TestCase): @classmethod def ...
40.620321
116
0.551343
21a1a579821be3aaff3b54bbdce7cddb3c54b814
1,542
py
Python
pyplan_engine/classes/wizards/BaseWizard.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
null
null
null
pyplan_engine/classes/wizards/BaseWizard.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
null
null
null
pyplan_engine/classes/wizards/BaseWizard.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
null
null
null
import json import autopep8 class BaseWizard(object): def getLastDefinition(self, definition): newDef = definition.replace( "result=", "_df =").replace("result =", "_df =") return newDef def getColumnList(self, model, params): res = [] nodeId = params["nodeId"] ...
30.84
88
0.532425
21a1b33ee5d1831c5aa425e7823cfc19f5b76938
4,792
py
Python
get_neighbors.py
uconn-maglab/get-neighbors
392328b3104e6ad590a788f263328843e42555d4
[ "MIT" ]
null
null
null
get_neighbors.py
uconn-maglab/get-neighbors
392328b3104e6ad590a788f263328843e42555d4
[ "MIT" ]
null
null
null
get_neighbors.py
uconn-maglab/get-neighbors
392328b3104e6ad590a788f263328843e42555d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ module: get_neighbor.py author: R Steiner license: MIT License, copyright (c) 2016 R Steiner description: Contains the class NeighborHunt, which finds the phonological neighbors of a list of words. """ import json class NeighborHunt: """ Finds the phonological neighbors (DAS) of a...
37.4375
103
0.562396
21a1dde30112c3bccdd703131edbca9632b7fb13
460
py
Python
src/oscar/templatetags/purchase_info_tags.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/templatetags/purchase_info_tags.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/templatetags/purchase_info_tags.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django import template from oscar.core.compat import assignment_tag register = template.Library() @assignment_tag(register) def purchase_info_for_product(request, product): if product.is_parent: return request.strategy.fetch_for_parent(product) return request.strategy.fetch_for_pro...
24.210526
58
0.769565
21a1ec3a5186a88db952488b4a29bff6b7691122
45,750
py
Python
rmgpy/kinetics/arrheniusTest.py
yubioinfo/RMG-Py
bfffc5b650934fe7ced117939d6b3b219f2317e5
[ "MIT" ]
1
2020-03-17T13:16:51.000Z
2020-03-17T13:16:51.000Z
rmgpy/kinetics/arrheniusTest.py
yubioinfo/RMG-Py
bfffc5b650934fe7ced117939d6b3b219f2317e5
[ "MIT" ]
null
null
null
rmgpy/kinetics/arrheniusTest.py
yubioinfo/RMG-Py
bfffc5b650934fe7ced117939d6b3b219f2317e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################### # # # RMG - Reaction Mechanism Generator # # ...
44.721408
116
0.600066
21a1edb9356a53d97c9597e9523e6affe37a847a
209
py
Python
backend/share/paste/endpoints.py
Kel0/share_gist
992043e40735351f67022c09cdf65b7d99fc67c0
[ "MIT" ]
1
2020-12-07T11:29:42.000Z
2020-12-07T11:29:42.000Z
backend/share/paste/endpoints.py
Kel0/share_gist
992043e40735351f67022c09cdf65b7d99fc67c0
[ "MIT" ]
10
2020-12-02T13:14:55.000Z
2021-01-11T13:30:55.000Z
backend/share/paste/endpoints.py
Kel0/share_gist
992043e40735351f67022c09cdf65b7d99fc67c0
[ "MIT" ]
null
null
null
from django.urls import path from .views import LexersView, PastesView urlpatterns = [ path("lexers/", LexersView.as_view(), name="lexers"), path("snippet/", PastesView.as_view(), name="snippet"), ]
23.222222
59
0.698565
21a2090cc4938dd0488069be75d04d14345a3e02
1,315
py
Python
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/management/commands/elasticsearch_remove_indexes.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
null
null
null
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/management/commands/elasticsearch_remove_indexes.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/management/commands/elasticsearch_remove_indexes.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
1
2020-11-04T03:21:24.000Z
2020-11-04T03:21:24.000Z
from django.core.management.base import BaseCommand from ...elasticsearch_helpers import delete_all_indices, get_all_indices class Command(BaseCommand): help = 'Remove all indexes from Elasticsearch' def add_arguments(self, parser): # Named (optional) arguments parser.add_argument( ...
34.605263
79
0.601521
21a218807ee462e21e47e73ea6f42d3bcbbbb735
17,672
py
Python
src/servman/servman.py
dggfi/Servman
5415b2f952fd082a5b50d583c53eb6a21b83a296
[ "MIT" ]
null
null
null
src/servman/servman.py
dggfi/Servman
5415b2f952fd082a5b50d583c53eb6a21b83a296
[ "MIT" ]
null
null
null
src/servman/servman.py
dggfi/Servman
5415b2f952fd082a5b50d583c53eb6a21b83a296
[ "MIT" ]
null
null
null
import multiprocessing import asyncio import websockets from websockets.exceptions import ConnectionClosed, ConnectionClosedError import traceback, logging import json from json.decoder import JSONDecodeError from path import Path from uuid import uuid4 as uuidv4 from collections import defaultdict from servman.typings...
40.439359
193
0.619568
21a24f576bc65784341051309dd589b19bde4e26
2,019
py
Python
services/actors/main.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
3
2020-03-17T23:18:39.000Z
2021-03-06T02:56:46.000Z
services/actors/main.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
3
2020-03-21T08:47:34.000Z
2020-05-11T21:56:56.000Z
services/actors/main.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
1
2020-03-17T14:13:54.000Z
2020-03-17T14:13:54.000Z
#!/usr/bin/env python3 from concurrent import futures import argparse import grpc import os import sys import time from utils.connect import get_service_channel from utils.logger import get_logger from utils.users import UsersUtil from utils.activities import ActivitiesUtil from servicer import Servicer from services...
29.26087
86
0.692917
21a2b507130ffa33912f4e4433904fee1f441010
2,041
py
Python
pypykatz/lsadecryptor/packages/wdigest/decryptor.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
1
2018-08-19T11:53:30.000Z
2018-08-19T11:53:30.000Z
pypykatz/lsadecryptor/packages/wdigest/decryptor.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
null
null
null
pypykatz/lsadecryptor/packages/wdigest/decryptor.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
2
2019-08-04T23:16:05.000Z
2019-12-05T10:41:50.000Z
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # import io import logging from pypykatz.lsadecryptor.package_commons import * class WdigestCredential: def __init__(self): self.credtype = 'wdigest' self.username = None self.domainname = None self.password = None self.luid = None def to_dict(s...
30.014706
104
0.736404
21a2d4ea9e17b3db0244d06a85dbca61cc976189
3,003
py
Python
gpam_training/metrics.py
medeiroslucas/gpam_training
1b1d636caec6f83a712a04f3589c6b01beecc619
[ "Apache-2.0" ]
null
null
null
gpam_training/metrics.py
medeiroslucas/gpam_training
1b1d636caec6f83a712a04f3589c6b01beecc619
[ "Apache-2.0" ]
null
null
null
gpam_training/metrics.py
medeiroslucas/gpam_training
1b1d636caec6f83a712a04f3589c6b01beecc619
[ "Apache-2.0" ]
null
null
null
def hit_one(y_true, y_pred): score = [] for pred, true in zip(y_pred, y_true): indexes = np.where(true == 1) if (pred[indexes] == true[indexes]).any(): score.append(1) else: score.append(0) return sum(score) / len(score) def mistake_one(y_true, y_pred): s...
35.75
107
0.618382
21a2ddbbbc14b75f866e621c25a669189811c846
6,678
py
Python
gui/gui_mainmenu.py
ChristophBeckmann/ResearchTool
178ae87a23ea7fcc908505a8469075be3c2205ee
[ "MIT" ]
null
null
null
gui/gui_mainmenu.py
ChristophBeckmann/ResearchTool
178ae87a23ea7fcc908505a8469075be3c2205ee
[ "MIT" ]
null
null
null
gui/gui_mainmenu.py
ChristophBeckmann/ResearchTool
178ae87a23ea7fcc908505a8469075be3c2205ee
[ "MIT" ]
null
null
null
import logging import tkinter as tk from gui import gui_summarize from gui import gui_helpers as helper from gui import gui_analyze from gui import gui_research logger = logging.getLogger(__name__) class GUIMainMenu(tk.Tk): """ Class for create the main Form """ def __init__(self): """ ...
25.105263
120
0.481432
21a2e17abd93f36ab2235fd6d755c1312f8a2c11
2,736
py
Python
foe/models/model.py
WallyCZ/foe-bot
70322d46ac9c1b28ed5bd70163208d95ed4533e9
[ "MIT" ]
null
null
null
foe/models/model.py
WallyCZ/foe-bot
70322d46ac9c1b28ed5bd70163208d95ed4533e9
[ "MIT" ]
null
null
null
foe/models/model.py
WallyCZ/foe-bot
70322d46ac9c1b28ed5bd70163208d95ed4533e9
[ "MIT" ]
null
null
null
""" """ # Native import uuid # 3rd-Party from sqlalchemy import inspect from sqlalchemy.ext.declarative import declarative_base, declared_attr, has_inherited_table from sqlalchemy.ext.hybrid import hybrid_property # Proprietary from foe.config import config from foe.request import Request Base = declarative_base(...
21.714286
211
0.480994
21a2e420cd070123a737ccd87d695c58f2270ac3
4,564
py
Python
plotting/01k_plot_learning.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
1
2022-03-17T15:46:25.000Z
2022-03-17T15:46:25.000Z
plotting/01k_plot_learning.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
null
null
null
plotting/01k_plot_learning.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Compare BN (pre and post) vs no normalization in dense Unet (Tiramisu).""" import os import numpy as np import seaborn as sns import pandas as pd import matplotlib.pyplot as plt from load_tfevents import func_load_event # %% Set input parameters # Set path to log dir...
37.719008
99
0.665425
21a32754f790537249311ba35cd9323f40dd3f1e
9,308
py
Python
contrib/node/src/python/pants/contrib/node/subsystems/node_distribution.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
contrib/node/src/python/pants/contrib/node/subsystems/node_distribution.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
contrib/node/src/python/pants/contrib/node/subsystems/node_distribution.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import filecmp import logging import os import shutil from typing import Tuple from pants.base.exceptions import TaskError from pants.binaries.binary_tool import NativeTool from pants.bin...
42.697248
101
0.70015
21a36c17e6617b626d0dce750af43d211689fcb7
2,469
py
Python
scripts/python/wxt/run_wxt_test.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2020-06-03T15:59:50.000Z
2020-12-21T11:11:57.000Z
scripts/python/wxt/run_wxt_test.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
null
null
null
scripts/python/wxt/run_wxt_test.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2019-10-02T06:47:23.000Z
2020-02-02T18:32:23.000Z
#!/usr/bin/env python """""" import os import time import tim Exec = "/d1/gerry/cvs/projects/vdt/apps/probe_message_dataset_manager/probe_message_dataset_manager" Config = "/d2/vii/data/static/config/vdt_config.cfg" Road_segment_file = "/d2/vii/data/static/cdl/mn_1_mile_road_segments.nc" def wxt_file_parse(fname): ...
41.15
252
0.660996
21a37afab49b2ff78841d27174eec54ce611c554
372
py
Python
backend/report/json_render.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/report/json_render.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/report/json_render.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
import json from report import Render from utils import DateTimeJSONEncoder class JsonRender(Render): output_format = "json" def __init__(self, template_dir=None): super().__init__(template_dir) def _render(self, aggregated, configuration, locale, language, **kwargs): return json.dumps(a...
26.571429
78
0.736559
21a399cbe296440e5fa5c79748417e9cbed972ac
8,223
py
Python
tempest/scenario/test_volume_boot_pattern.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/scenario/test_volume_boot_pattern.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/scenario/test_volume_boot_pattern.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
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 # d...
42.386598
79
0.657789