hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
797e2eea143636690bfc92e2389f79c14462886a
3,070
py
Python
autotest/t503_test.py
aleaf/flopy
a5777a4d4a745e473110a167c69603ac4ad3106c
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
autotest/t503_test.py
aleaf/flopy
a5777a4d4a745e473110a167c69603ac4ad3106c
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
autotest/t503_test.py
aleaf/flopy
a5777a4d4a745e473110a167c69603ac4ad3106c
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
import os import shutil import flopy import pymake def download_mf6_distribution(): """ Download mf6 distribution and return location of folder """ # set url dirname = 'mf6.1.0' url = 'https://water.usgs.gov/water-resources/software/' + \ 'MODFLOW-6/{0}.zip'.format(dirname) # ...
25.798319
74
0.625733
797e2f44d7c087aa440ed6e46892280efe787a82
9,753
py
Python
libs/utils/analysis/residency_analysis.py
MIPS/external-lisa
48024e3bdcb39528f69bb897a3aff57347535c7d
[ "Apache-2.0" ]
null
null
null
libs/utils/analysis/residency_analysis.py
MIPS/external-lisa
48024e3bdcb39528f69bb897a3aff57347535c7d
[ "Apache-2.0" ]
null
null
null
libs/utils/analysis/residency_analysis.py
MIPS/external-lisa
48024e3bdcb39528f69bb897a3aff57347535c7d
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2015, Google, ARM Limited and contributors. # # 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-...
35.856618
114
0.616323
797e30729692a24b7b5ae73a2e7cbba7e7e95293
2,950
py
Python
common/xrd-ui-tests-qautomate/pagemodel/cs_backup_restore_dlg_delete_confirm.py
nordic-institute/X-Road-tests
e030661a0ad8ceab74dd8122b751e88025a3474a
[ "MIT" ]
1
2019-02-09T00:16:54.000Z
2019-02-09T00:16:54.000Z
common/xrd-ui-tests-qautomate/pagemodel/cs_backup_restore_dlg_delete_confirm.py
nordic-institute/X-Road-tests
e030661a0ad8ceab74dd8122b751e88025a3474a
[ "MIT" ]
1
2018-06-06T08:33:32.000Z
2018-06-06T08:33:32.000Z
common/xrd-ui-tests-qautomate/pagemodel/cs_backup_restore_dlg_delete_confirm.py
nordic-institute/X-Road-tests
e030661a0ad8ceab74dd8122b751e88025a3474a
[ "MIT" ]
3
2018-07-09T08:51:00.000Z
2020-07-23T18:40:24.000Z
# -*- coding: utf-8 -*- # Example for using WebDriver object: driver = get_driver() e.g driver.current_url from QAutoLibrary.extension import TESTDATA from selenium.webdriver.common.by import By from QAutoLibrary.QAutoSelenium import * from time import sleep class Cs_backup_restore_dlg_delete_confirm(CommonUtils): ...
45.384615
270
0.667797
797e30e0b6b527e20a44b7e9938cdd9c89a1d040
144
py
Python
exercicios/ex 001 a 010/ex003.py
CarlosWillian/python
f863578245fbf402e5b46f844a247355afed0d62
[ "MIT" ]
null
null
null
exercicios/ex 001 a 010/ex003.py
CarlosWillian/python
f863578245fbf402e5b46f844a247355afed0d62
[ "MIT" ]
null
null
null
exercicios/ex 001 a 010/ex003.py
CarlosWillian/python
f863578245fbf402e5b46f844a247355afed0d62
[ "MIT" ]
null
null
null
n1 = float(input('Digite um nímero: ')) n2 = float(input('Digite outro: ')) s = n1 + n2 print('A soma entre {} e {} vale {}'.format(n1, n2, s))
28.8
55
0.590278
797e31bee2d4b60f9314b9432cf4955a6c29d0f9
3,668
py
Python
groupdocs_conversion_cloud/models/xls2003_convert_options.py
groupdocs-conversion-cloud/groupdocs-conversion-cloud-python
841d06ad3205e10e8f2726517779ac2d7c33a02a
[ "MIT" ]
5
2019-11-21T04:58:45.000Z
2021-02-05T05:22:37.000Z
groupdocs_conversion_cloud/models/xls2003_convert_options.py
groupdocs-conversion-cloud/groupdocs-conversion-cloud-python
841d06ad3205e10e8f2726517779ac2d7c33a02a
[ "MIT" ]
null
null
null
groupdocs_conversion_cloud/models/xls2003_convert_options.py
groupdocs-conversion-cloud/groupdocs-conversion-cloud-python
841d06ad3205e10e8f2726517779ac2d7c33a02a
[ "MIT" ]
null
null
null
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose Pty Ltd" file="Xls2003ConvertOptions.py"> # Copyright (c) 2003-2021 Aspose Pty Ltd # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a ...
35.269231
85
0.603053
797e332f95295f36c834906a6f4267c8a46c31e4
8,306
py
Python
userbot/events.py
dedeeinheree/Man-Userbot
3f84ec55defc9c822513be34f42556ee70069a30
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/events.py
dedeeinheree/Man-Userbot
3f84ec55defc9c822513be34f42556ee70069a30
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/events.py
dedeeinheree/Man-Userbot
3f84ec55defc9c822513be34f42556ee70069a30
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-11-18T07:01:02.000Z
2021-11-18T07:01:02.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """Userbot module for managing events. One of the main components of the userbot.""" import inspect import re import s...
35.495726
84
0.519865
797e3331e3dd5606719884f549c490d8c7a42ac7
2,148
py
Python
Documentation/test scripts/test_bravia_register2.py
RogueProeliator/IndigoPlugins-Sony-Network-Remote
e5b395630036c090bd29706bfd9700175e2fc1c1
[ "MIT" ]
1
2019-11-04T15:17:49.000Z
2019-11-04T15:17:49.000Z
Documentation/test scripts/test_bravia_register2.py
RogueProeliator/IndigoPlugins-Sony-Network-Remote
e5b395630036c090bd29706bfd9700175e2fc1c1
[ "MIT" ]
1
2017-02-14T19:41:02.000Z
2017-02-14T19:41:02.000Z
Documentation/test scripts/test_bravia_register2.py
RogueProeliator/IndigoPlugins-Sony-Network-Remote
e5b395630036c090bd29706bfd9700175e2fc1c1
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import functools import httplib import Queue import os import re import string import socket import sys import threading import telnetlib import time import urllib import base64 if __name__ == '__main__': try: # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...
34.645161
348
0.626629
797e34f8f0e20d7a2200d80e7f4d247d48783aa5
477
py
Python
read_db.py
kaikoh95/crypto-trading-bot
f849d17845e7f16516860e5a71d79fd5a8c95bd6
[ "MIT" ]
15
2021-10-17T08:10:04.000Z
2022-03-24T11:00:59.000Z
read_db.py
danielrsa97/crypto-trading-bot
f849d17845e7f16516860e5a71d79fd5a8c95bd6
[ "MIT" ]
4
2021-11-12T07:18:53.000Z
2022-01-12T05:26:17.000Z
read_db.py
danielrsa97/crypto-trading-bot
f849d17845e7f16516860e5a71d79fd5a8c95bd6
[ "MIT" ]
9
2021-12-04T01:26:43.000Z
2022-03-07T07:22:02.000Z
import sys from constants import SYMBOL from db import create_engine, fetch_dataframe, plot_stats def main(): engine = create_engine(SYMBOL) dataframe = fetch_dataframe(SYMBOL, engine) if dataframe is None: raise Exception("Unable to fetch dataframe") if len(sys.argv) == 2 and (sys.argv[1] == ...
25.105263
80
0.660377
797e3500a9f124401c058965ea87225564e2a906
8,230
py
Python
trio/_core/tests/test_io.py
itsVale/trio
2cde5fb374b407cc60ec033f31f207559d1c862f
[ "Apache-2.0", "MIT" ]
1
2020-11-18T03:40:44.000Z
2020-11-18T03:40:44.000Z
trio/_core/tests/test_io.py
smurfix/trio
4c255f0ed7ab6c7574ce23c67fd3a41ab1c5ff0b
[ "Apache-2.0", "MIT" ]
null
null
null
trio/_core/tests/test_io.py
smurfix/trio
4c255f0ed7ab6c7574ce23c67fd3a41ab1c5ff0b
[ "Apache-2.0", "MIT" ]
null
null
null
import pytest import socket as stdlib_socket import select import random from ... import _core from ...testing import wait_all_tasks_blocked, Sequencer, assert_checkpoints # Cross-platform tests for IO handling def fill_socket(sock): try: while True: sock.send(b"x" * 65536) except Block...
28.776224
78
0.667072
797e3533e0417d8d6b26380cd99c554225fe53c9
11,754
py
Python
mall/apps/users/views.py
randompaga/meiduo_mall_static_index
5bd6c5f02a861c432e3c5d19ca9ab0d567f02651
[ "MIT" ]
null
null
null
mall/apps/users/views.py
randompaga/meiduo_mall_static_index
5bd6c5f02a861c432e3c5d19ca9ab0d567f02651
[ "MIT" ]
null
null
null
mall/apps/users/views.py
randompaga/meiduo_mall_static_index
5bd6c5f02a861c432e3c5d19ca9ab0d567f02651
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from rest_framework.response import Response # from mall.apps.users.models import User 错误的 # from apps.users.models import User 错误 from goods.models import SKU from goods.serializers import SKUSerializer from users.models import User, Add...
23.697581
121
0.63723
797e35665403f2a940fe71c0b5fa43dfdf09f595
2,441
py
Python
tests/psd_tools/psd/test_linked_layer.py
mrstephenneal/psd-tools2
fde1c9768b8d2a232e5afd5f1b58983ec675b960
[ "MIT" ]
19
2019-11-21T09:26:52.000Z
2022-03-16T13:51:29.000Z
tests/psd_tools/psd/test_linked_layer.py
sfneal/psd-tools3
61e780a2b8dd34b4d9be2d2ffea6274ab17d6051
[ "MIT" ]
1
2018-10-01T13:30:21.000Z
2018-10-01T13:30:21.000Z
tests/psd_tools/psd/test_linked_layer.py
mrstephenneal/psd-tools2
fde1c9768b8d2a232e5afd5f1b58983ec675b960
[ "MIT" ]
1
2021-12-24T06:42:05.000Z
2021-12-24T06:42:05.000Z
from __future__ import absolute_import, unicode_literals import logging import pytest from psd_tools.constants import LinkedLayerType from psd_tools.psd.descriptor import DescriptorBlock from psd_tools.psd.linked_layer import LinkedLayer, LinkedLayers from ..utils import check_write_read logger = logging.getLogger(...
37.553846
120
0.621057
797e35b733f8b4b479525eb53b6d7f16ab9819cd
10,002
py
Python
imxgboost/imbalance_xgb.py
rudolffu/Imbalance-XGBoost
339298a6a2dcd1548387376f84595ee42148e5a0
[ "MIT" ]
null
null
null
imxgboost/imbalance_xgb.py
rudolffu/Imbalance-XGBoost
339298a6a2dcd1548387376f84595ee42148e5a0
[ "MIT" ]
null
null
null
imxgboost/imbalance_xgb.py
rudolffu/Imbalance-XGBoost
339298a6a2dcd1548387376f84595ee42148e5a0
[ "MIT" ]
null
null
null
import numpy as np import xgboost as xgb from imxgboost.weighted_loss import Weight_Binary_Cross_Entropy from imxgboost.focal_loss import Focal_Binary_Loss from sklearn.base import BaseEstimator, ClassifierMixin from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score, matthews_corrcoef def...
47.628571
160
0.634673
797e35d8a01223d95cf4aebdfa7060bde4ba7de8
37,793
py
Python
venv/Lib/site-packages/pygame/tests/color_test.py
ZATGit/Snake-Pygame
3f4a55055116e4cc5ebfa134ab2c61d362ad3232
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pygame/tests/color_test.py
ZATGit/Snake-Pygame
3f4a55055116e4cc5ebfa134ab2c61d362ad3232
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pygame/tests/color_test.py
ZATGit/Snake-Pygame
3f4a55055116e4cc5ebfa134ab2c61d362ad3232
[ "MIT" ]
null
null
null
#################################### IMPORTS ################################### if __name__ == '__main__': import sys import os pkg_dir = os.path.split(os.path.abspath(__file__))[0] parent_dir, pkg_name = os.path.split(pkg_dir) is_pygame_pkg = (pkg_name == 'tests' and os.path....
36.130975
83
0.562168
797e3762ba27bebec981158719dc90248892dbbb
8,777
py
Python
readtwice/layers/recompute_grad.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
readtwice/layers/recompute_grad.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
readtwice/layers/recompute_grad.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
36.268595
102
0.712658
797e3777a59ae5254279585de0a4173ba33998c2
8,171
py
Python
magenta/music/chords_lib_test.py
jellysquider/magenta
0fc8188870f5d1c988b76dae434b21e58362516c
[ "Apache-2.0" ]
null
null
null
magenta/music/chords_lib_test.py
jellysquider/magenta
0fc8188870f5d1c988b76dae434b21e58362516c
[ "Apache-2.0" ]
null
null
null
magenta/music/chords_lib_test.py
jellysquider/magenta
0fc8188870f5d1c988b76dae434b21e58362516c
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
41.902564
80
0.661853
797e37ca5b47fb1dfd83c1a3d673b4f49d863dbf
1,672
py
Python
photos/views.py
melodytowett/My-Gallery
1fe19c77e3bfbe060354ec711d692f7040987ead
[ "Unlicense" ]
null
null
null
photos/views.py
melodytowett/My-Gallery
1fe19c77e3bfbe060354ec711d692f7040987ead
[ "Unlicense" ]
null
null
null
photos/views.py
melodytowett/My-Gallery
1fe19c77e3bfbe060354ec711d692f7040987ead
[ "Unlicense" ]
null
null
null
from email import message from unicodedata import category from django.http import Http404 from django.shortcuts import render import photos from.models import Category, Image,Location # Create your views here. def index(request): location = Location.objects.all() photos = Image.current_images(location) re...
38
124
0.700957
797e385c9261560cb307360ada1ab31235833ef7
17,131
py
Python
tests/contrib/flask/test_hooks.py
tancnle/dd-trace-py
4313f388383b90ccf2bcbca9d7ef1c400c827ece
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/flask/test_hooks.py
tancnle/dd-trace-py
4313f388383b90ccf2bcbca9d7ef1c400c827ece
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/flask/test_hooks.py
tancnle/dd-trace-py
4313f388383b90ccf2bcbca9d7ef1c400c827ece
[ "BSD-3-Clause" ]
null
null
null
from flask import Blueprint from . import BaseFlaskTestCase class FlaskHookTestCase(BaseFlaskTestCase): def setUp(self): super(FlaskHookTestCase, self).setUp() @self.app.route('/') def index(): return 'Hello Flask', 200 self.bp = Blueprint(__name__, 'bp') @s...
36.604701
115
0.653786
797e39331485ec6cfd780fc10df1fe69dafe615d
3,202
py
Python
src/servergui.py
sasunts/Web-Proxy-Server
2be783cbebb6d45cdae24223d3471961454d6035
[ "MIT" ]
null
null
null
src/servergui.py
sasunts/Web-Proxy-Server
2be783cbebb6d45cdae24223d3471961454d6035
[ "MIT" ]
null
null
null
src/servergui.py
sasunts/Web-Proxy-Server
2be783cbebb6d45cdae24223d3471961454d6035
[ "MIT" ]
null
null
null
import Tkinter as tk import socket import sys import threading import os import zlib HEIGHT = 600 WIDTH = 800 MAX_CONNECTION = 50 #Number of backlog request BUFFER = 5120 #buffer size of data to be recieved blocked_urls = [] #list of blocked urls cache ={} ...
27.603448
90
0.627108
797e3bde95885b6cacc05b262a475731bcbace05
3,788
py
Python
benchmarking/platforms/ios/ios_platform.py
llyfacebook/caffe2-benchmarking
facb9502bba18c18b8396bea81e0c14afbb81d11
[ "Apache-2.0" ]
null
null
null
benchmarking/platforms/ios/ios_platform.py
llyfacebook/caffe2-benchmarking
facb9502bba18c18b8396bea81e0c14afbb81d11
[ "Apache-2.0" ]
null
null
null
benchmarking/platforms/ios/ios_platform.py
llyfacebook/caffe2-benchmarking
facb9502bba18c18b8396bea81e0c14afbb81d11
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ############################################################################## # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. ################################...
38.262626
78
0.592925
797e3c19adc6a206de268ae1ed81ed10f8276e49
1,176
py
Python
fetchers/QuandlStockFetcher.py
JoakimFristedt/stocks-data
d2e03d3b874afb23f4392e69d9a8b8c35cde7aa1
[ "Apache-2.0" ]
null
null
null
fetchers/QuandlStockFetcher.py
JoakimFristedt/stocks-data
d2e03d3b874afb23f4392e69d9a8b8c35cde7aa1
[ "Apache-2.0" ]
null
null
null
fetchers/QuandlStockFetcher.py
JoakimFristedt/stocks-data
d2e03d3b874afb23f4392e69d9a8b8c35cde7aa1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import urllib import os class QuandlStockFetcher: def __init__(self, quandleWikiApiUrl, apiKey): self.quandleWikiApiUrl = quandleWikiApiUrl self.apiKey = apiKey self.dataDir = 'data' self.createDataDir() def fetchStockData(self, tickerSymbol): url = ...
29.4
94
0.625
797e3d6b6920e913d7b242d5bb6c485ca0bec67f
10,858
py
Python
NLP/NAACL2021-RocketQA/model/src/model/ernie.py
zhangyimi/Research
866f91d9774a38d205d6e9a3b1ee6293748261b3
[ "Apache-2.0" ]
1,319
2020-02-14T10:42:07.000Z
2022-03-31T15:42:18.000Z
NLP/NAACL2021-RocketQA/model/src/model/ernie.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
192
2020-02-14T02:53:34.000Z
2022-03-31T02:25:48.000Z
NLP/NAACL2021-RocketQA/model/src/model/ernie.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
720
2020-02-14T02:12:38.000Z
2022-03-31T12:21:15.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
39.627737
92
0.620833
797e3d8da73afbc20e4ac1eea30b565d6fe4da87
1,040
py
Python
djangosige/static/tabelas/municipios/cmun_parse.py
limeiragabriel/sige
c7c1728aee1ed134cab1841db945223234e9a40e
[ "MIT" ]
7
2018-07-22T08:15:34.000Z
2022-01-30T20:41:14.000Z
djangosige/static/tabelas/municipios/cmun_parse.py
limeiragabriel/sige
c7c1728aee1ed134cab1841db945223234e9a40e
[ "MIT" ]
8
2020-06-05T18:29:57.000Z
2022-03-11T23:25:47.000Z
djangosige/static/tabelas/municipios/cmun_parse.py
limeiragabriel/sige
c7c1728aee1ed134cab1841db945223234e9a40e
[ "MIT" ]
4
2018-12-06T18:07:53.000Z
2020-11-24T09:16:10.000Z
# -*- coding: utf-8 -*- import csv import codecs import unicodedata import re """ A remoção de acentos foi baseada em uma resposta no Stack Overflow. http://stackoverflow.com/a/517974/3464573 """ def removerAcentosECaracteresEspeciais(palavra): # Unicode normalize transforma um caracter em seu equivalente em ...
28.108108
87
0.647115
797e3e32263599bf70bda5deaf95d53637afff16
5,170
py
Python
DQM/SiPixelPhase1Config/python/SiPixelPhase1OfflineDQM_source_cff.py
vegajustin26/cmssw
96c978e46803b32e86ec46085f2876fae476258f
[ "Apache-2.0" ]
5
2020-07-02T19:05:26.000Z
2022-02-25T14:37:09.000Z
DQM/SiPixelPhase1Config/python/SiPixelPhase1OfflineDQM_source_cff.py
varsill/cmssw
18c56dbcab98dfc5d415deca0daf2395121bf5ae
[ "Apache-2.0" ]
61
2020-07-14T17:22:52.000Z
2022-03-16T11:11:12.000Z
DQM/SiPixelPhase1Config/python/SiPixelPhase1OfflineDQM_source_cff.py
varsill/cmssw
18c56dbcab98dfc5d415deca0daf2395121bf5ae
[ "Apache-2.0" ]
8
2020-06-08T16:28:54.000Z
2021-11-16T14:40:00.000Z
import FWCore.ParameterSet.Config as cms # Raw data from DQM.SiPixelPhase1Common.SiPixelPhase1RawData_cfi import * # Pixel Digi Monitoring from DQM.SiPixelPhase1Common.SiPixelPhase1Digis_cfi import * from DQM.SiPixelPhase1Common.SiPixelPhase1DeadFEDChannels_cfi import * # Cluster (track-independent) monitoring from DQ...
49.711538
142
0.778143
797e3e79ef049a351e163e140db33443d5f71ac7
1,229
py
Python
05 Arrays/09 Wave array.py
MrNevil/GeeksForGeeks-DSA-2
cb53912a2bfea5e04ce1b2c10e103a61ae1d903b
[ "MIT" ]
1
2021-04-03T06:23:42.000Z
2021-04-03T06:23:42.000Z
05 Arrays/09 Wave array.py
MrNevil/GeeksForGeeks-DSA-2
cb53912a2bfea5e04ce1b2c10e103a61ae1d903b
[ "MIT" ]
null
null
null
05 Arrays/09 Wave array.py
MrNevil/GeeksForGeeks-DSA-2
cb53912a2bfea5e04ce1b2c10e103a61ae1d903b
[ "MIT" ]
1
2021-02-26T17:16:36.000Z
2021-02-26T17:16:36.000Z
/* Given a sorted array arr[] of distinct integers. Sort the array into a wave-like array and return it. In other words, arrange the elements into a sequence such that a1 >= a2 <= a3 >= a4 <= a5..... (considering the increasing lexicographical order) */ # Input Format: # The first line contains an integer T, depict...
26.717391
250
0.676973
797e3e96d8d704c18ba1fb09b207a5ab268f97ad
265
py
Python
main/urls.py
ysm1180/lol-study
41d818cdc1e5f201da40156fd98003f498d24d6f
[ "MIT" ]
3
2019-04-12T08:22:29.000Z
2019-06-19T12:06:53.000Z
main/urls.py
ysm1180/lol-study
41d818cdc1e5f201da40156fd98003f498d24d6f
[ "MIT" ]
7
2019-12-04T22:41:36.000Z
2022-02-10T09:26:11.000Z
main/urls.py
ysm1180/lol-study
41d818cdc1e5f201da40156fd98003f498d24d6f
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'main' urlpatterns = [ path('', views.index, name='index'), path('summoner/get', views.get_summoner, name='get_summoner'), path('summoner/name=<str:name>', views.summoner, name='summoner') ]
24.090909
69
0.683019
797e3f27ec0b6edb4733330d8ffcb185819132e3
4,507
py
Python
utils_landmarks.py
phamdinhkhanh/HRNet-Facial-Landmark-Detection
71de7378e8327bee71197030271dbb27d01218db
[ "MIT" ]
null
null
null
utils_landmarks.py
phamdinhkhanh/HRNet-Facial-Landmark-Detection
71de7378e8327bee71197030271dbb27d01218db
[ "MIT" ]
null
null
null
utils_landmarks.py
phamdinhkhanh/HRNet-Facial-Landmark-Detection
71de7378e8327bee71197030271dbb27d01218db
[ "MIT" ]
1
2021-09-22T16:19:38.000Z
2021-09-22T16:19:38.000Z
import cv2 import numpy as np import matplotlib.pyplot as plt def get_five_landmarks_from_net(landmarks): """ Return 5 landmarks needed in face alignment """ num_lmks = landmarks.shape[0] if num_lmks == 5: left_eye = landmarks[0] right_eye = landmarks[1] nose = landmarks[2...
33.385185
116
0.621034
797e415ab9c314174d917e191411f1bb60b9e8e3
36,187
py
Python
pandas/tests/test_strings.py
jmcnamara/pandas
da59b112e73dc4139f09f85a4203c67795a72634
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/tests/test_strings.py
jmcnamara/pandas
da59b112e73dc4139f09f85a4203c67795a72634
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/tests/test_strings.py
jmcnamara/pandas
da59b112e73dc4139f09f85a4203c67795a72634
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# pylint: disable-msg=E1101,W0612 from datetime import datetime, timedelta, date import os import operator import re import warnings import nose from numpy import nan as NA import numpy as np from numpy.testing import assert_array_equal from numpy.random import randint from pandas.compat import range, lrange, u imp...
33.882959
93
0.526101
797e41c765acb1f2c98f74efdbc3ef1ce070b30c
3,972
py
Python
intersight/models/equipment_switch_card_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/equipment_switch_card_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/equipment_switch_card_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class EquipmentSwitchCardList(object): """ NOTE: Th...
25.792208
88
0.563192
797e41eb2321b1b8f99ba41f5b8acbe43287f557
2,224
py
Python
huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/update_server_auto_terminate_time_response.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/update_server_auto_terminate_time_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/update_server_auto_terminate_time_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class UpdateServerAutoTerminateTimeResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. at...
27.121951
88
0.542266
797e4240dd650ed680617d8bc01a99338cd16ee2
6,281
py
Python
pynq/lib/pmod/pmod_tmp2.py
michalkouril/PYNQ
c72febc2decc83816f40b91a7f60e11fe707c248
[ "BSD-3-Clause" ]
1,537
2016-09-26T22:51:50.000Z
2022-03-31T13:33:54.000Z
pynq/lib/pmod/pmod_tmp2.py
michalkouril/PYNQ
c72febc2decc83816f40b91a7f60e11fe707c248
[ "BSD-3-Clause" ]
414
2016-10-03T21:12:10.000Z
2022-03-21T14:55:02.000Z
pynq/lib/pmod/pmod_tmp2.py
michalkouril/PYNQ
c72febc2decc83816f40b91a7f60e11fe707c248
[ "BSD-3-Clause" ]
826
2016-09-23T22:29:43.000Z
2022-03-29T11:02:09.000Z
# Copyright (c) 2016, Xilinx, 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: # # 1. Redistributions of source code must retain the above copyright notice, # this list of ...
31.405
79
0.616622
797e427669c3de0674e99c365f704e0490953d98
3,297
py
Python
Artifacts/linux-vsts-build-agent/agent-install.py
kevinmgates/azure-devtestlab
6650c4d01679f13ae25bab28a22bbede0dc83488
[ "MIT" ]
423
2015-09-26T02:02:33.000Z
2022-03-28T03:06:45.000Z
Artifacts/linux-vsts-build-agent/agent-install.py
kevinmgates/azure-devtestlab
6650c4d01679f13ae25bab28a22bbede0dc83488
[ "MIT" ]
452
2015-09-23T00:23:18.000Z
2022-03-27T18:46:31.000Z
Artifacts/linux-vsts-build-agent/agent-install.py
kevinmgates/azure-devtestlab
6650c4d01679f13ae25bab28a22bbede0dc83488
[ "MIT" ]
795
2015-10-02T02:42:23.000Z
2022-03-20T19:50:38.000Z
#!/usr/bin/python3 from argparse import ArgumentParser from socket import gethostname from os import path, makedirs, environ from sys import argv from tempfile import TemporaryDirectory from subprocess import run, PIPE, STDOUT from requests import get from json import loads def parse_args(args): parser = Argument...
30.527778
126
0.645435
797e42e58e921a80992e31da3117435fafa11314
1,922
py
Python
tests/test_dataset.py
axsaucedo/Voice-Cloning-App
0dceb0175647101ca0873427d92bd3b54487b306
[ "BSD-3-Clause" ]
1
2021-10-31T23:03:44.000Z
2021-10-31T23:03:44.000Z
tests/test_dataset.py
axsaucedo/Voice-Cloning-App
0dceb0175647101ca0873427d92bd3b54487b306
[ "BSD-3-Clause" ]
null
null
null
tests/test_dataset.py
axsaucedo/Voice-Cloning-App
0dceb0175647101ca0873427d92bd3b54487b306
[ "BSD-3-Clause" ]
null
null
null
import os import shutil import json from pathlib import Path from unittest import mock from dataset.clip_generator import clip_generator expected_clips = { "0_2730.wav": "the examination and testimony of the experts", "2820_5100.wav": "enabled the commission to conclude", "5130_7560.wav": "that five shot...
33.137931
105
0.679501
797e43154667edd2841b22b3296d93a7693f44d1
3,043
py
Python
jaseci_core/jaseci/api/jac_api.py
seed4600/jaseci
d738cb5e9e90d5e3e78f516af15cdd5ad920276a
[ "MIT" ]
null
null
null
jaseci_core/jaseci/api/jac_api.py
seed4600/jaseci
d738cb5e9e90d5e3e78f516af15cdd5ad920276a
[ "MIT" ]
null
null
null
jaseci_core/jaseci/api/jac_api.py
seed4600/jaseci
d738cb5e9e90d5e3e78f516af15cdd5ad920276a
[ "MIT" ]
null
null
null
""" Jac tools api functions as a mixin """ from jaseci.api.interface import interface import os import json class jac_api(): """ Jac tool APIs """ @interface.cli_api(cli_args=['file']) def jac_build(self, file: str, out: str = ""): """ Command line tooling for building executable j...
34.579545
75
0.514624
797e445c40acf2dc352df4fdb5e92a772616d679
4,514
py
Python
src/spn/structure/leaves/histogram/Histograms.py
nicoladimauro/SPFlow
80fb4fab074dd541b32d79cf272af134316a581d
[ "Apache-2.0" ]
null
null
null
src/spn/structure/leaves/histogram/Histograms.py
nicoladimauro/SPFlow
80fb4fab074dd541b32d79cf272af134316a581d
[ "Apache-2.0" ]
null
null
null
src/spn/structure/leaves/histogram/Histograms.py
nicoladimauro/SPFlow
80fb4fab074dd541b32d79cf272af134316a581d
[ "Apache-2.0" ]
null
null
null
''' Created on March 20, 2018 @author: Alejandro Molina ''' import numpy as np from spn.structure.Base import Leaf from spn.structure.StatisticalTypes import MetaType, Type rpy_initialized = False def init_rpy(): if rpy_initialized: return from rpy2 import robjects from rpy2.robjects import nu...
32.242857
112
0.6214
797e44d71b730a3d79b9c4bcaa2473c6d2b90389
1,734
py
Python
Tests/scripts/destroy_instances.py
RELnemtzov/content
1a9181748fcfa4151f7fc3b565fe6b22822bff47
[ "MIT" ]
7
2020-09-24T22:38:01.000Z
2021-07-14T15:58:35.000Z
Tests/scripts/destroy_instances.py
RELnemtzov/content
1a9181748fcfa4151f7fc3b565fe6b22822bff47
[ "MIT" ]
7
2021-03-25T23:09:39.000Z
2021-09-23T23:27:14.000Z
Tests/scripts/destroy_instances.py
RELnemtzov/content
1a9181748fcfa4151f7fc3b565fe6b22822bff47
[ "MIT" ]
2
2020-12-08T17:03:33.000Z
2021-07-13T18:32:06.000Z
import sys import os import json import subprocess from Tests.test_utils import print_warning, print_error import Tests.scripts.awsinstancetool.aws_functions as aws_functions def main(): circle_aritfact = sys.argv[1] env_file = sys.argv[2] with open(env_file, 'r') as json_file: env_results = json...
34.68
105
0.600346
797e44dffc0d2fe6b5c4c75518c761b58636e93a
1,014
py
Python
veil_api_client/__init__.py
devalv/veil-api-client
65c7adf3280217c9f9523a7dd7664d7d4d3f46fe
[ "MIT" ]
1
2021-12-26T00:10:27.000Z
2021-12-26T00:10:27.000Z
veil_api_client/__init__.py
devalv/veil-api-client
65c7adf3280217c9f9523a7dd7664d7d4d3f46fe
[ "MIT" ]
null
null
null
veil_api_client/__init__.py
devalv/veil-api-client
65c7adf3280217c9f9523a7dd7664d7d4d3f46fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Veil api client. for additional info see README.md """ __version__ = '2.2.2' from .api_objects import (DomainBackupConfiguration, DomainConfiguration, DomainTcpUsb, DomainUpdateConfiguration, VeilDomainExt, VeilGuestAgentCmd) from .base import (TagConfiguration, ...
39
87
0.761341
797e4501f45d778299ba731c41de6936ff3b2198
21,010
py
Python
roles/lib_utils/filter_plugins/openshift_master.py
system-dev-formations/opensift-ansible
b4f8d820fdd41e92f1f63b63955f89381225ac32
[ "MIT" ]
null
null
null
roles/lib_utils/filter_plugins/openshift_master.py
system-dev-formations/opensift-ansible
b4f8d820fdd41e92f1f63b63955f89381225ac32
[ "MIT" ]
null
null
null
roles/lib_utils/filter_plugins/openshift_master.py
system-dev-formations/opensift-ansible
b4f8d820fdd41e92f1f63b63955f89381225ac32
[ "MIT" ]
2
2020-11-04T06:22:48.000Z
2020-11-06T11:02:14.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Custom filters for use in openshift-master ''' import copy import sys from ansible import errors from ansible.parsing.yaml.dumper import AnsibleDumper from ansible.plugins.filter.core import to_bool as ansible_bool from ansible.module_utils.six import string_types, u imp...
39.197761
120
0.592813
797e454143dcee8e0484176c80cc91bf9835f8be
1,964
py
Python
qucumber/callbacks/logger.py
ZvonimirBandic/QuCumber
81f0291951e89346fd8ab5c35cc90341fd8acf35
[ "Apache-2.0", "BSD-3-Clause" ]
163
2018-07-18T15:00:57.000Z
2022-03-31T09:05:06.000Z
qucumber/callbacks/logger.py
ZvonimirBandic/QuCumber
81f0291951e89346fd8ab5c35cc90341fd8acf35
[ "Apache-2.0", "BSD-3-Clause" ]
101
2018-07-17T17:36:06.000Z
2021-10-19T01:40:10.000Z
qucumber/callbacks/logger.py
ZvonimirBandic/QuCumber
81f0291951e89346fd8ab5c35cc90341fd8acf35
[ "Apache-2.0", "BSD-3-Clause" ]
32
2018-08-18T21:56:02.000Z
2022-03-12T22:04:16.000Z
# Copyright 2019 PIQuIL - All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed ...
39.28
80
0.691955
797e454f357d4de72604733dfd17b781b9c89c83
1,412
py
Python
scripts/study_case/ID_13/torch_geometric/transforms/__init__.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
62
2018-12-12T16:06:34.000Z
2022-02-18T11:32:04.000Z
scripts/study_case/ID_13/torch_geometric/transforms/__init__.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
1
2021-06-30T03:08:15.000Z
2021-06-30T03:08:15.000Z
scripts/study_case/ID_13/torch_geometric/transforms/__init__.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
19
2018-12-12T17:51:43.000Z
2021-09-19T08:01:29.000Z
from .compose import Compose from .constant import Constant from .distance import Distance from .cartesian import Cartesian from .local_cartesian import LocalCartesian from .polar import Polar from .spherical import Spherical from .one_hot_degree import OneHotDegree from .target_indegree import TargetIndegree from .cen...
26.148148
55
0.764164
797e4576aee4f9911f9701364bce663836d62136
5,785
py
Python
scripts/mpc_cmd_pub.py
yluthu/genesis_path_follower
55d6e88a5e928cc214f33b07dc2624e6d13e51df
[ "MIT" ]
1
2021-10-03T10:59:54.000Z
2021-10-03T10:59:54.000Z
scripts/mpc_cmd_pub.py
yluthu/genesis_path_follower
55d6e88a5e928cc214f33b07dc2624e6d13e51df
[ "MIT" ]
null
null
null
scripts/mpc_cmd_pub.py
yluthu/genesis_path_follower
55d6e88a5e928cc214f33b07dc2624e6d13e51df
[ "MIT" ]
1
2020-05-07T00:55:42.000Z
2020-05-07T00:55:42.000Z
#!/usr/bin/env python # MPC Command Publisher/Controller Module Interface to the Genesis. # This version using the Nonlinear Kinematic Bicycle Model. ########################################### #### ROBOTOS ########################################### import rospy from genesis_path_follower.msg import state_est from g...
32.318436
108
0.680207
797e4619c58fdf425f98257193e8577a34dfd94a
192
py
Python
insta/admin.py
kangangi/Finsta
e28211599498657f330fbbf3dff14996e9661338
[ "MIT" ]
null
null
null
insta/admin.py
kangangi/Finsta
e28211599498657f330fbbf3dff14996e9661338
[ "MIT" ]
9
2021-03-19T04:14:56.000Z
2022-03-12T00:32:11.000Z
insta/admin.py
kangangi/Finsta
e28211599498657f330fbbf3dff14996e9661338
[ "MIT" ]
1
2020-06-01T18:59:46.000Z
2020-06-01T18:59:46.000Z
from django.contrib import admin from .models import Comment, Profile, Image # Register your models here. admin.site.register(Comment) admin.site.register(Profile) admin.site.register(Image)
24
43
0.807292
797e466cc2b99af9e070d4474be7f3395e53027e
222
py
Python
Flask/run.py
LieonShelly/PythonFun
811760d368885109f9359c2663d8ce74886f6ad6
[ "MIT" ]
null
null
null
Flask/run.py
LieonShelly/PythonFun
811760d368885109f9359c2663d8ce74886f6ad6
[ "MIT" ]
null
null
null
Flask/run.py
LieonShelly/PythonFun
811760d368885109f9359c2663d8ce74886f6ad6
[ "MIT" ]
null
null
null
from Blog import create_app, db import requests app = create_app() if __name__ == '__main__': # app.run(host='127.0.0.1', port=8080, debug=True) print('=====runing=========') app.run(host='0.0.0.0', port=80)
22.2
54
0.608108
797e477944f79df039415b6e3e6f2087a771cd39
528
py
Python
etl/settings.py
GregAiven/Python-20220216--Adrian-Diaz-Garcia
dbd22c0a9aea480ce07d9631c982e90c72e5c53f
[ "MIT" ]
null
null
null
etl/settings.py
GregAiven/Python-20220216--Adrian-Diaz-Garcia
dbd22c0a9aea480ce07d9631c982e90c72e5c53f
[ "MIT" ]
null
null
null
etl/settings.py
GregAiven/Python-20220216--Adrian-Diaz-Garcia
dbd22c0a9aea480ce07d9631c982e90c72e5c53f
[ "MIT" ]
null
null
null
import os LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO") KAFKA_BOOTSTRAP_SERVER = os.getenv("KAFKA_BOOTSTRAP_SERVER", "kafka:9093") KAFKA_TOPIC = os.getenv("KAFKA_TOPIC", "web_checks") KAFKA_GROUP_ID = os.getenv("KAFKA_GROUP_ID", "web_checks_group") KAFKA_BATCH_SIZE = int(os.getenv("KAFKA_BATCH_SIZE", 5)) DB_HOST = os.get...
40.615385
74
0.746212
797e48686a8b2e868b36d62503968395c6253bcd
4,037
py
Python
ewpproject.py
NampSec/ProjectConvert_fix
07ab2c50d4ad7ea85244e0f316644ba010c88ce9
[ "Apache-2.0", "MIT" ]
null
null
null
ewpproject.py
NampSec/ProjectConvert_fix
07ab2c50d4ad7ea85244e0f316644ba010c88ce9
[ "Apache-2.0", "MIT" ]
null
null
null
ewpproject.py
NampSec/ProjectConvert_fix
07ab2c50d4ad7ea85244e0f316644ba010c88ce9
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Module for converting EWP project format file @file """ import os from lxml import objectify class EWPProject(object): """ Class for converting EWP project format file """ def __init__(self, path, xmlFile): self.project = {} self.path = pa...
39.970297
127
0.494922
797e494275fcd911babc137472bf6b307e26f92c
16,401
py
Python
tr_sys/tr_ars/api.py
tziomics/Relay
de94857d08b5554987d689738283743433b79f4a
[ "MIT" ]
null
null
null
tr_sys/tr_ars/api.py
tziomics/Relay
de94857d08b5554987d689738283743433b79f4a
[ "MIT" ]
null
null
null
tr_sys/tr_ars/api.py
tziomics/Relay
de94857d08b5554987d689738283743433b79f4a
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from django.core import serializers from django.shortcuts import redirect from django.urls import path, re_path, include, reverse from .models import Agent, Message, Channel, Actor import json, sys, logging from inspect import cur...
37.703448
146
0.564356
797e498cfadeadaa5ac02777cc1cdec023e63686
3,121
py
Python
magnate/magnate/settings.py
ToroNZ/django_app1
29d2f4485cebb7830341e042fd5a1327a285a407
[ "MIT" ]
null
null
null
magnate/magnate/settings.py
ToroNZ/django_app1
29d2f4485cebb7830341e042fd5a1327a285a407
[ "MIT" ]
null
null
null
magnate/magnate/settings.py
ToroNZ/django_app1
29d2f4485cebb7830341e042fd5a1327a285a407
[ "MIT" ]
null
null
null
""" Django settings for magnate project. Generated by 'django-admin startproject' using Django 1.10.6. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os...
25.581967
91
0.693047
797e4b0a24a6cd7b199c5893d77d578a25e753b1
307
py
Python
programs/exceptions/try_except_finally.py
dasari-mohana-zz/100_page_python_intro
7b8aecb3be2f2abbaf168b068b1299a1f3b9b97e
[ "MIT" ]
163
2020-12-26T13:24:20.000Z
2022-03-24T14:30:42.000Z
programs/exceptions/try_except_finally.py
pr0b3r7/100_page_python_intro
7b8aecb3be2f2abbaf168b068b1299a1f3b9b97e
[ "MIT" ]
1
2021-06-26T18:26:39.000Z
2021-06-26T18:27:26.000Z
programs/exceptions/try_except_finally.py
pr0b3r7/100_page_python_intro
7b8aecb3be2f2abbaf168b068b1299a1f3b9b97e
[ "MIT" ]
33
2021-02-09T14:13:28.000Z
2022-03-28T21:23:14.000Z
try: num = int(input('Enter a positive integer: ')) if num < 0: raise ValueError except ValueError: print('Not a positive integer, run the program again') else: print(f'Square root of {num} is {num ** 0.5:.3f}') finally: print('\nThanks for using the program, have a nice day')
25.583333
60
0.641694
797e4b9196b073bd35f2594ee97dab12d495acb5
1,471
py
Python
tests/python/pants_test/backend/native/tasks/test_conan_fetch.py
billybecker/pants
ee101f3e360b712aceb9dacf7723aaf9b5567f04
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/native/tasks/test_conan_fetch.py
billybecker/pants
ee101f3e360b712aceb9dacf7723aaf9b5567f04
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/native/tasks/test_conan_fetch.py
billybecker/pants
ee101f3e360b712aceb9dacf7723aaf9b5567f04
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os from pants.backend.native.tasks.conan_fetch import ConanFetch from pants.backe...
39.756757
94
0.768865
797e4e1803afd3fcc981a76ff3c6d7fb99ce8aa0
7,462
py
Python
zfunc.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
zfunc.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
zfunc.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
import numpy as np import itdbase from itdbase import Cell import itin from copy import deepcopy as cp import cPickle as pick # from tsase.optimize import MDMin from ase.optimize.fire import FIRE # from ase.optimize import BFGS from ase import * from ase.io import read, write import os import sys import numpy as np fr...
28.158491
79
0.597829
797e4e478ec19e8510ad23f5d2aa104b865da628
1,033
py
Python
adaboost.py
lukaszplk/boosting
93299e2f33cadf5e23a3d4a0ccd7b86915fc33c0
[ "MIT" ]
null
null
null
adaboost.py
lukaszplk/boosting
93299e2f33cadf5e23a3d4a0ccd7b86915fc33c0
[ "MIT" ]
null
null
null
adaboost.py
lukaszplk/boosting
93299e2f33cadf5e23a3d4a0ccd7b86915fc33c0
[ "MIT" ]
null
null
null
# For this basic implementation, we only need these modules from sklearn.datasets import load_breast_cancer from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier from sklearn.ensemble import AdaBoostClassifier # Load the well-known Breast Cancer dataset # Split into train...
38.259259
102
0.799613
797e4eafe009ad72f1199452a261a8cd22eaea9f
9,650
py
Python
vsrl/utils/visualization.py
IBM/vsrl-framework
42e0853bffb5efbb66cd97178aff9e10ad18c5a9
[ "MIT" ]
44
2020-07-08T20:24:11.000Z
2022-03-10T03:38:12.000Z
vsrl/utils/visualization.py
ThyLor/vsrl-framework
673001eabcd310699d980ad442f3856f60f6e1cf
[ "MIT" ]
5
2020-07-10T14:36:05.000Z
2021-07-22T16:38:42.000Z
vsrl/utils/visualization.py
ThyLor/vsrl-framework
673001eabcd310699d980ad442f3856f60f6e1cf
[ "MIT" ]
12
2020-07-08T15:38:23.000Z
2022-03-10T03:39:23.000Z
# # Copyright (C) 2020 IBM. All Rights Reserved. # # See LICENSE.txt file in the root directory # of this source tree for licensing information. # """ Classes and functions to visualize results of trained agents. This is only intended to be used within a Jupyter notebook. """ import gzip import time from functools i...
34.341637
89
0.58943
797e4f09fa5fde9a1ae93343d049d08fc5c41bd0
34,176
py
Python
TFRegression9.py
neuromorphs/telluride-decoding-toolbox
4d64f96b4d0ca3932ad56fe2a31558c4b8510c5f
[ "Apache-2.0" ]
3
2020-01-29T01:33:17.000Z
2020-08-05T23:03:03.000Z
TFRegression9.py
ddewong/telluride-decoding-toolbox
4d64f96b4d0ca3932ad56fe2a31558c4b8510c5f
[ "Apache-2.0" ]
null
null
null
TFRegression9.py
ddewong/telluride-decoding-toolbox
4d64f96b4d0ca3932ad56fe2a31558c4b8510c5f
[ "Apache-2.0" ]
2
2019-07-06T15:36:28.000Z
2019-08-25T08:55:50.000Z
# -*- coding: utf8 -*- """EEG Regression - Core TensorFlow implementation code. July 2016 March 2017 - update Enea, integrated the queue. """ import gc import math import re import resource import sys import time import matplotlib.pyplot as plot import numpy as np import numpy.matlib import scipy.io as sio import t...
46.624829
120
0.573004
797e4f44ed3c8c93bc4367e37c0a28ca91427448
3,775
py
Python
examples/migrate_roster.py
silkworm3725/https-github.com-fritzy-SleekXMPP
e5582694c07236e6830c20361840360a1dde37f3
[ "BSD-3-Clause" ]
4
2015-03-25T19:12:05.000Z
2020-10-21T12:27:00.000Z
examples/migrate_roster.py
silkworm3725/https-github.com-fritzy-SleekXMPP
e5582694c07236e6830c20361840360a1dde37f3
[ "BSD-3-Clause" ]
null
null
null
examples/migrate_roster.py
silkworm3725/https-github.com-fritzy-SleekXMPP
e5582694c07236e6830c20361840360a1dde37f3
[ "BSD-3-Clause" ]
5
2015-03-09T18:09:45.000Z
2018-10-08T09:00:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import logging import getpass from optparse import OptionParser import sleekxmpp # Python versions before 3.0 do not use UTF-8 encoding # by default. To ensure that Unicode is handled properly # throughout SleekXMPP, we will set the default encoding # ourselve...
31.198347
65
0.685298
797e4fbb73121b1876210b4278e2a06bac56a7dd
1,615
py
Python
src/blast.py
tomice/Blast
8521fb7784fc5269d3d54396f8d89933a78f6de5
[ "MIT" ]
null
null
null
src/blast.py
tomice/Blast
8521fb7784fc5269d3d54396f8d89933a78f6de5
[ "MIT" ]
1
2018-06-19T00:39:40.000Z
2018-06-19T01:40:57.000Z
src/blast.py
tomice/Blast
8521fb7784fc5269d3d54396f8d89933a78f6de5
[ "MIT" ]
null
null
null
import sys import pygame import game_functions as gf from pygame.sprite import Group from settings import Settings from game_stats import GameStats from scoreboard import Scoreboard from button import Button from ship import Ship from enemy import Alien from background import Background def run_game(): ...
35.108696
89
0.677399
797e511c3a7b730623242877f4b95086f2233f97
2,514
py
Python
data/p4VQE/R4/benchmark/startQiskit_Class528.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class528.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class528.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=13 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.626374
118
0.634845
797e516c28c71217f53c98475b9ecf5a4cb62107
2,052
py
Python
co_cn/net/conv1_4.py
zhujiagang/co-cn
4ea18441fa1842eb5d87a90ab8f28f3d803ef1a5
[ "BSD-2-Clause" ]
7
2018-04-18T13:27:22.000Z
2020-05-27T14:43:49.000Z
co_cn/net/conv1_4.py
zhujiagang/co-cn
4ea18441fa1842eb5d87a90ab8f28f3d803ef1a5
[ "BSD-2-Clause" ]
null
null
null
co_cn/net/conv1_4.py
zhujiagang/co-cn
4ea18441fa1842eb5d87a90ab8f28f3d803ef1a5
[ "BSD-2-Clause" ]
1
2019-02-14T08:53:24.000Z
2019-02-14T08:53:24.000Z
# The based unit of graph convolutional networks. import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from .net import conv_init class conv1_4(nn.Module): def __init__(self, in_channels): super(conv1_4, self).__init__() stride =...
35.37931
75
0.47076
797e5198713fe3231c40f99695028397b3ff1211
407
py
Python
tests/test_UArray.py
Bierbunker/Lab-Tool
cb65fa4b39135708045c0da161e9e5e0c908623c
[ "MIT" ]
1
2022-01-12T21:26:37.000Z
2022-01-12T21:26:37.000Z
tests/test_UArray.py
Bierbunker/Lab-Tool
cb65fa4b39135708045c0da161e9e5e0c908623c
[ "MIT" ]
10
2022-01-11T20:02:38.000Z
2022-01-17T14:18:12.000Z
tests/test_UArray.py
etschgi1/Lab-Tool
cb65fa4b39135708045c0da161e9e5e0c908623c
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import uncertainties.unumpy as unp import random from labtool_ex2.uarray import UArray uarr = UArray(unp.uarray(random.sample(range(0, 100), 10), list(random.sample(range(0, 100), 9) + [np.nan]))) # type: ignore uarr = UArray(list(uarr) + [1, 2, 3]) print(uarr) print(uarr.dtype...
23.941176
125
0.714988
797e5223d6b3dfa36faa975c79f2b9c9ab6961c5
530
py
Python
library/flask_app.py
superDB12/pi_led_contraption
7b9fdc236be098ffd912ab5e424ef974a558b660
[ "MIT" ]
null
null
null
library/flask_app.py
superDB12/pi_led_contraption
7b9fdc236be098ffd912ab5e424ef974a558b660
[ "MIT" ]
null
null
null
library/flask_app.py
superDB12/pi_led_contraption
7b9fdc236be098ffd912ab5e424ef974a558b660
[ "MIT" ]
null
null
null
# Flask interface setup from flask import Flask, render_template app = Flask(__name__) @app.route('/') @app.route('/index.htm') def index(): return render_template("index.htm") @app.route('/individual.htm') def individual(): return render_template("individual.htm") @app.route('/group.htm') def group(): ...
17.666667
44
0.698113
797e548490becc0d3d5ba53b6d652ed280651d2d
436
py
Python
core/migrations/0011_auto_20201105_0203.py
winny-/sillypaste
bf6125b35225046226328d1077d7bc7ea5e11c94
[ "Unlicense" ]
3
2021-05-21T03:45:59.000Z
2022-01-23T18:26:45.000Z
core/migrations/0011_auto_20201105_0203.py
winny-/sillypaste
bf6125b35225046226328d1077d7bc7ea5e11c94
[ "Unlicense" ]
13
2021-04-03T19:56:35.000Z
2022-01-23T18:39:47.000Z
core/migrations/0011_auto_20201105_0203.py
winny-/sillypaste
bf6125b35225046226328d1077d7bc7ea5e11c94
[ "Unlicense" ]
1
2021-10-03T18:22:55.000Z
2021-10-03T18:22:55.000Z
# Generated by Django 3.1.1 on 2020-11-05 02:03 from django.db import migrations import django.db.models.functions.text class Migration(migrations.Migration): dependencies = [('core', '0010_paste_freeze_hits')] operations = [ migrations.AlterModelOptions( name='language', op...
22.947368
76
0.610092
797e55d9063021e742da45a45fa917ffccda6d44
3,551
py
Python
paper_examples/data_generation/DMC_DMR_generate_reference_tables_500nodes.py
onnela-lab/net_summary_selection
b2b470fbef2991350eee3fb154aae0de91525602
[ "BSD-3-Clause" ]
null
null
null
paper_examples/data_generation/DMC_DMR_generate_reference_tables_500nodes.py
onnela-lab/net_summary_selection
b2b470fbef2991350eee3fb154aae0de91525602
[ "BSD-3-Clause" ]
null
null
null
paper_examples/data_generation/DMC_DMR_generate_reference_tables_500nodes.py
onnela-lab/net_summary_selection
b2b470fbef2991350eee3fb154aae0de91525602
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ This file generates the reference tables associated to the DMC and DMR models as presented in our paper. Note: When num_cores = 1, the elements of the reference tables are sequentially generated, so we advise relying on parallel computing by using a number of CPU cores (num_cores) ...
61.224138
167
0.623768
797e5628b847986f9ecafafa553b73fb7e031fb3
682
py
Python
src/hector_moveit_config/src/model_spawner.py
MihaiPerju/hector-moveit
72d844f773b22c928b783028ecd00ed9169471c7
[ "MIT" ]
48
2018-09-11T18:03:04.000Z
2022-02-16T12:52:06.000Z
src/hector_moveit_config/src/model_spawner.py
a4aleem/hector-moveit
d49a8a96a0f336abe297299b507a3606fca05b87
[ "MIT" ]
11
2018-08-07T13:33:15.000Z
2022-02-18T15:18:18.000Z
src/hector_moveit_config/src/model_spawner.py
a4aleem/hector-moveit
d49a8a96a0f336abe297299b507a3606fca05b87
[ "MIT" ]
12
2019-08-07T05:42:05.000Z
2021-03-01T15:29:07.000Z
#!/usr/bin/env python import rospy from gazebo_msgs.srv import * from geometry_msgs.msg import * def run(): rospy.wait_for_service('/gazebo/spawn_sdf_model') try: spawn_model = rospy.ServiceProxy('/gazebo/spawn_sdf_model',SpawnModel) model_name = 'apple' f = open('/home/tahsincan/.gaze...
32.47619
78
0.646628
797e56482ee7c3c16da102339b3b0aca1fb862c5
10,468
py
Python
smartpy-contracts/test_scenario.py
hashi-protocol/hashi-tezos
a24659be43d8d53cf5bd22318501b7cb1ad075a1
[ "MIT" ]
1
2021-12-18T20:25:51.000Z
2021-12-18T20:25:51.000Z
smartpy-contracts/test_scenario.py
hashi-protocol/hashi-tezos
a24659be43d8d53cf5bd22318501b7cb1ad075a1
[ "MIT" ]
null
null
null
smartpy-contracts/test_scenario.py
hashi-protocol/hashi-tezos
a24659be43d8d53cf5bd22318501b7cb1ad075a1
[ "MIT" ]
null
null
null
import smartpy as sp # if on SmartPy IDE: FA2 = sp.io.import_template("FA2.py") #if on local #import FA2 class burnableFA2(FA2.FA2): @sp.entry_point def burn(self, params): sp.verify(self.data.ledger.contains((sp.sender,params.token_id)), "Ledger does not own") sp.verify(self.data.ledger[(sp....
46.732143
299
0.619412
797e56959a586a6bd7ff4ea5a15496128644bac5
470
py
Python
app/migrations/0023_board_photo_delete.py
ckr3453/knut_festival
31d41107a30ba7fab28e43292f5c65c0ae2916af
[ "MIT" ]
4
2019-09-04T12:38:35.000Z
2019-09-24T14:56:52.000Z
app/migrations/0023_board_photo_delete.py
ckr3453/knut_festival
31d41107a30ba7fab28e43292f5c65c0ae2916af
[ "MIT" ]
13
2020-03-30T16:29:18.000Z
2022-02-10T10:52:50.000Z
app/migrations/0023_board_photo_delete.py
ckr3453/knut_festival
31d41107a30ba7fab28e43292f5c65c0ae2916af
[ "MIT" ]
4
2019-09-10T02:05:37.000Z
2019-11-04T06:56:58.000Z
# Generated by Django 2.2.5 on 2019-09-20 16:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0022_auto_20190920_2118'), ] operations = [ migrations.AddField( model_name='board', name='photo_delete', ...
24.736842
135
0.593617
797e56a11ac2860d0739f81a3a87e57348746fce
16,010
py
Python
api/views/utils/model.py
arpanlaha/Harmonizer
008a79ad3974525acfe8bb94edf34749bbda8f15
[ "MIT" ]
2
2020-04-05T07:13:16.000Z
2020-04-05T18:18:54.000Z
api/views/utils/model.py
arpanlaha/Harmonizer
008a79ad3974525acfe8bb94edf34749bbda8f15
[ "MIT" ]
21
2020-04-01T02:34:02.000Z
2022-03-26T18:51:46.000Z
api/views/utils/model.py
arpanlaha/Harmonizer
008a79ad3974525acfe8bb94edf34749bbda8f15
[ "MIT" ]
null
null
null
model = { "keys": { "Ab Major": { "name": "Ab Major", "chords": [ "Ab Major", "Bb minor", "C minor", "Db Major", "Eb Major", "F minor", ], }, "Ab minor": { ...
29.925234
85
0.273829
797e56b5344bfe05d5060b9557ed6d62288b37e2
793
py
Python
publishconf.py
moorepants/eme134
e26b71a20acfc7dede98e17f7f269bdb7dc4bcf0
[ "CC-BY-4.0" ]
1
2020-03-30T16:13:14.000Z
2020-03-30T16:13:14.000Z
publishconf.py
moorepants/eme134
e26b71a20acfc7dede98e17f7f269bdb7dc4bcf0
[ "CC-BY-4.0" ]
17
2018-09-18T23:47:13.000Z
2020-04-12T21:45:32.000Z
publishconf.py
moorepants/eme134
e26b71a20acfc7dede98e17f7f269bdb7dc4bcf0
[ "CC-BY-4.0" ]
1
2020-04-12T21:39:41.000Z
2020-04-12T21:39:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * THEME = "pelican-alchemy/alchemy" PLUGIN_PATHS = "pelica...
23.323529
73
0.730139
797e5708cf45b5c56d240be06699c08b67837a12
10,500
py
Python
test/functional/wallet_import_rescan.py
raipay/bitcoin-abc
5e0b712845f9649762aa0fc1e0de8665787207b7
[ "MIT" ]
null
null
null
test/functional/wallet_import_rescan.py
raipay/bitcoin-abc
5e0b712845f9649762aa0fc1e0de8665787207b7
[ "MIT" ]
2
2022-02-27T21:05:11.000Z
2022-02-27T21:05:47.000Z
test/functional/wallet_import_rescan.py
raipay/bitcoin-abc
5e0b712845f9649762aa0fc1e0de8665787207b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test wallet import RPCs. Test rescan behavior of importaddress, importpubkey, importprivkey, and impor...
43.209877
88
0.637429
797e57c6dac90ad7d7fff225804cacea2e6ff281
1,772
py
Python
src/unitmeasure/units/electric_potential_difference.py
gabock/unitmeasure
440ee256d91794317345b9aff102e3e7416363d9
[ "MIT" ]
null
null
null
src/unitmeasure/units/electric_potential_difference.py
gabock/unitmeasure
440ee256d91794317345b9aff102e3e7416363d9
[ "MIT" ]
null
null
null
src/unitmeasure/units/electric_potential_difference.py
gabock/unitmeasure
440ee256d91794317345b9aff102e3e7416363d9
[ "MIT" ]
null
null
null
from unitmeasure import converters from unitmeasure import dimension from unitmeasure.util import classproperty class UnitElectricPotentialDifference(dimension.Dimension): class Symbol(object): megavolts = "MV" kilovolts = "kV" volts = "V" millivolts = "mV" microvolts = "...
29.533333
77
0.602144
797e57d82ca20e5f0c8f30b95fa8f768c3645d67
69
py
Python
opencv/version.py
creativeprojects/speedcam
30fbb19f30c775e5b7e048784964332b253da2f1
[ "MIT" ]
1
2018-01-02T13:29:39.000Z
2018-01-02T13:29:39.000Z
opencv/version.py
creativeprojects/speedcam
30fbb19f30c775e5b7e048784964332b253da2f1
[ "MIT" ]
null
null
null
opencv/version.py
creativeprojects/speedcam
30fbb19f30c775e5b7e048784964332b253da2f1
[ "MIT" ]
null
null
null
import cv2 print("Your OpenCV version: {}".format(cv2.__version__))
17.25
56
0.73913
797e58e3bd5e4f896ce9b4af1eadc0e9a8ddfebf
6,295
py
Python
support/dmg-license.py
jimmckay/create-dmg
c76e14e83bf26cd3a1066da291f64138d7a3aca6
[ "MIT" ]
null
null
null
support/dmg-license.py
jimmckay/create-dmg
c76e14e83bf26cd3a1066da291f64138d7a3aca6
[ "MIT" ]
null
null
null
support/dmg-license.py
jimmckay/create-dmg
c76e14e83bf26cd3a1066da291f64138d7a3aca6
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This script adds a license file to a DMG. Requires Xcode and a plain ascii text license file. Obviously only runs on a Mac. Copyright (C) 2011-2013 Jared Hobbs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (th...
38.384146
96
0.605401
797e58ea439cc8cfe1d368fa42b4dc2725a88a17
3,990
py
Python
ucsmsdk/mometa/sw/SwEthMonFsmStage.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
78
2015-11-30T14:10:05.000Z
2022-02-13T00:29:08.000Z
ucsmsdk/mometa/sw/SwEthMonFsmStage.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
113
2015-11-20T09:42:46.000Z
2022-03-16T16:53:29.000Z
ucsmsdk/mometa/sw/SwEthMonFsmStage.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
86
2015-12-12T08:22:18.000Z
2022-01-23T03:56:34.000Z
"""This module contains the general information for SwEthMonFsmStage ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class SwEthMonFsmStageConsts: LAST_UPDATE_TIME_ = "" NAME_DEPLOY_BEGIN = "DeployBegin" NAME_DEPLOY...
54.657534
265
0.6401
797e5a0c529e7b2f08b545dda4741a474ab1471d
3,556
py
Python
web3/middleware/signing.py
ThinkiumGroup/web3.py
87bd1be95bc8cb6dbbf5bf48424b4033fcfb63ea
[ "MIT" ]
null
null
null
web3/middleware/signing.py
ThinkiumGroup/web3.py
87bd1be95bc8cb6dbbf5bf48424b4033fcfb63ea
[ "MIT" ]
null
null
null
web3/middleware/signing.py
ThinkiumGroup/web3.py
87bd1be95bc8cb6dbbf5bf48424b4033fcfb63ea
[ "MIT" ]
null
null
null
from functools import ( singledispatch, ) import operator from web3.account import ( Account, ) from web3.account.local import ( LocalAccount, ) from eth_keys.datatypes import ( PrivateKey, ) from eth_utils import ( to_dict, ) from web3._utils.formatters import ( apply_formatter_if, ) from web...
25.956204
99
0.69685
797e5a11cd57ccbc11df088e7d312de439251fd0
5,403
py
Python
mealpy/swarm_based/BES.py
ashishpatel26/mealpy
62160e61b8bd4b084e44b80fda720e6bd6332e03
[ "MIT" ]
1
2021-05-20T06:53:08.000Z
2021-05-20T06:53:08.000Z
mealpy/swarm_based/BES.py
chenyuxiang0425/mealpy
69e8dc727e15527e31ac5ace1debe92a0bc7d828
[ "MIT" ]
null
null
null
mealpy/swarm_based/BES.py
chenyuxiang0425/mealpy
69e8dc727e15527e31ac5ace1debe92a0bc7d828
[ "MIT" ]
1
2020-09-30T21:14:33.000Z
2020-09-30T21:14:33.000Z
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu Nguyen" at 14:52, 17/03/2020 % # ...
51.951923
157
0.51638
797e5a86d58d3629c18554a0b4aabdbd6e3d2e1a
6,989
py
Python
multi_plot.py
pholtz/cyclo-analyzer
8cf2a485bd160332f0b361969b5fbf459be28444
[ "MIT" ]
null
null
null
multi_plot.py
pholtz/cyclo-analyzer
8cf2a485bd160332f0b361969b5fbf459be28444
[ "MIT" ]
null
null
null
multi_plot.py
pholtz/cyclo-analyzer
8cf2a485bd160332f0b361969b5fbf459be28444
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import datetime import calendar import pathlib import statistics import pandas as pd import numpy as np import seaborn import matplotlib.pyplot as plt from activity import Activity, create_activity, parse_activities_csv, build_activity_dataframe, extract_activiti...
34.771144
124
0.683503
797e5ae578acff9dc9031169dacb537735d1df03
4,006
py
Python
src/tox/interpreters/__init__.py
scbedd/tox
330599f2979e1e4a5e1757423f76c56de63d27d2
[ "MIT" ]
1
2020-03-19T20:24:27.000Z
2020-03-19T20:24:27.000Z
src/tox/interpreters/__init__.py
immense055/tox
330599f2979e1e4a5e1757423f76c56de63d27d2
[ "MIT" ]
9
2020-08-11T15:19:55.000Z
2022-03-12T00:11:12.000Z
src/tox/interpreters/__init__.py
immense055/tox
330599f2979e1e4a5e1757423f76c56de63d27d2
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import json import sys import tox from tox import reporter from tox.constants import SITE_PACKAGE_QUERY_SCRIPT from tox.interpreters.via_path import get_python_info class Interpreters: def __init__(self, hook): self.name2executable = {} self.executable2inf...
31.543307
99
0.64653
797e5bfeeb195f8fca154d23a1a4e8b07b7a73f8
21,136
py
Python
tests/tracking/test_rest_tracking.py
jspoorta/mlflow
e95805b849e71d9f7ba8374631840961454b5557
[ "Apache-2.0" ]
1
2020-07-03T20:15:27.000Z
2020-07-03T20:15:27.000Z
tests/tracking/test_rest_tracking.py
jspoorta/mlflow
e95805b849e71d9f7ba8374631840961454b5557
[ "Apache-2.0" ]
null
null
null
tests/tracking/test_rest_tracking.py
jspoorta/mlflow
e95805b849e71d9f7ba8374631840961454b5557
[ "Apache-2.0" ]
1
2021-08-13T21:39:01.000Z
2021-08-13T21:39:01.000Z
""" Integration test which starts a local Tracking Server on an ephemeral port, and ensures we can use the tracking API to communicate with it. """ import mock from subprocess import Popen import os import sys import posixpath import pytest from six.moves import urllib import socket import shutil from threading import...
44.310273
100
0.726438
797e5c05cfa71f8a51e1eb5fe0063e71f1a8c3f2
1,650
py
Python
SpotPicker/data_pipe.py
PatTheSilent/SpotPicker
f59d9a1371c09d9dd48525a0137fdbbf68ed3695
[ "MIT" ]
null
null
null
SpotPicker/data_pipe.py
PatTheSilent/SpotPicker
f59d9a1371c09d9dd48525a0137fdbbf68ed3695
[ "MIT" ]
null
null
null
SpotPicker/data_pipe.py
PatTheSilent/SpotPicker
f59d9a1371c09d9dd48525a0137fdbbf68ed3695
[ "MIT" ]
null
null
null
""" This module sets an interface between data backends and data extraction modules. It defines a DataQueue which is used to store all items that need sending to DataBackends as well as a get_data function that matches instance types with Spot Instance Advisor data. """ import boto3 from elasticsearch.exceptions impo...
29.464286
114
0.696364
797e5d525e2e6c9f8824e5c0a729c0d4659b17c9
3,286
py
Python
physic/settings.py
Vaseles/Physicsite
21f29106470218e723d6bfbc782a579c8042df7f
[ "Apache-2.0" ]
1
2022-03-13T18:06:43.000Z
2022-03-13T18:06:43.000Z
physic/settings.py
Vaseles/Physicsite
21f29106470218e723d6bfbc782a579c8042df7f
[ "Apache-2.0" ]
null
null
null
physic/settings.py
Vaseles/Physicsite
21f29106470218e723d6bfbc782a579c8042df7f
[ "Apache-2.0" ]
null
null
null
""" Django settings for physic project. Generated by 'django-admin startproject' using Django 3.2.7. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib ...
25.472868
91
0.695983
797e5e8164e231e8b3806d40b32774711879b050
952
py
Python
tensorflow/contrib/compiler/__init__.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/compiler/__init__.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/compiler/__init__.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.391304
80
0.721639
797e5eac041d545f375e8b5aabe93dc6af52ce51
16,278
py
Python
src/radical/utils/config.py
jcohen02/radical.utils
a6ecd7a756fa8e60c819aedd82004845f3f19c5b
[ "Apache-2.0" ]
null
null
null
src/radical/utils/config.py
jcohen02/radical.utils
a6ecd7a756fa8e60c819aedd82004845f3f19c5b
[ "Apache-2.0" ]
null
null
null
src/radical/utils/config.py
jcohen02/radical.utils
a6ecd7a756fa8e60c819aedd82004845f3f19c5b
[ "Apache-2.0" ]
null
null
null
__author__ = "Radical.Utils Development Team" __copyright__ = "Copyright 2016, RADICAL@Rutgers" __license__ = "MIT" # ------------------------------------------------------------------------------ # # We provide a json based config file parser with following properties # # - system config files will be merged...
32.426295
80
0.532006
797e5f047a32fde9cbaea18ba058466b4c8d0b5f
813
py
Python
fuseq/checker.py
kinkalow/fuseq
020c359881acb7971a350da16f1b687760dfa78e
[ "MIT" ]
null
null
null
fuseq/checker.py
kinkalow/fuseq
020c359881acb7971a350da16f1b687760dfa78e
[ "MIT" ]
null
null
null
fuseq/checker.py
kinkalow/fuseq
020c359881acb7971a350da16f1b687760dfa78e
[ "MIT" ]
null
null
null
import os import shutil class Checker: @staticmethod def isdir(d): if not os.path.isdir(d): print(f'{d} does not exist') exit(1) @staticmethod def isfile(f): if not os.path.isfile(f): print(f'{f} does not exist') exit(1) @staticmetho...
22.583333
77
0.519065
797e609727be69ea03620ba386a7506e1c89f4e4
4,386
py
Python
python_v0.1/offlineRunning.py
dFuture-finance/dFuture-sdk-demo
484be6e8571d162b118fe992e34e13a644e63aa4
[ "MIT" ]
1
2021-11-04T06:03:57.000Z
2021-11-04T06:03:57.000Z
python_v0.1/offlineRunning.py
dFuture-finance/dFuture-sdk-demo
484be6e8571d162b118fe992e34e13a644e63aa4
[ "MIT" ]
null
null
null
python_v0.1/offlineRunning.py
dFuture-finance/dFuture-sdk-demo
484be6e8571d162b118fe992e34e13a644e63aa4
[ "MIT" ]
3
2021-04-01T05:23:39.000Z
2021-09-17T05:36:42.000Z
import json import hashlib import os import time import requests import binascii from web3 import Web3 import offlineOpen import offlineClose providerAddr = 'https://http-mainnet-node.huobichain.com' w3 = Web3(Web3.HTTPProvider(providerAddr)) FPABIFILE = "./abi/FuturePerpetual.json" FPADDR = '0x917e091cc000012bbd58af...
30.887324
96
0.621067
797e621990c4bf5f7a495cb89c67151fdb9a5f67
13,248
py
Python
flws/flwspt.py
vitojph/flws
17f24dc8d84576196a1fd4df3af764ae36c8b097
[ "Apache-2.0" ]
null
null
null
flws/flwspt.py
vitojph/flws
17f24dc8d84576196a1fd4df3af764ae36c8b097
[ "Apache-2.0" ]
null
null
null
flws/flwspt.py
vitojph/flws
17f24dc8d84576196a1fd4df3af764ae36c8b097
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Simple flask-based API to access FreeLing functionalities. """ __author__ = "Víctor Peinado" __email__ = "vitojph@gmail.com" __date__ = "28/06/2013" import freeling from flask import Flask, Response, request from flask.ext.restful import Api, Resource import json #...
33.454545
139
0.530797
797e62bdf6fcdb2106c0f7b7048b7f3c26ccc55b
26,833
py
Python
tests/providers/google/cloud/hooks/test_bigtable.py
arezamoosavi/airflow
c3c81c3144386d1de535c1c5e777270e727bb69e
[ "Apache-2.0" ]
2
2016-08-23T14:22:15.000Z
2017-09-28T19:45:26.000Z
tests/providers/google/cloud/hooks/test_bigtable.py
arezamoosavi/airflow
c3c81c3144386d1de535c1c5e777270e727bb69e
[ "Apache-2.0" ]
4
2019-01-24T11:01:17.000Z
2022-02-28T04:28:07.000Z
tests/providers/google/cloud/hooks/test_bigtable.py
arezamoosavi/airflow
c3c81c3144386d1de535c1c5e777270e727bb69e
[ "Apache-2.0" ]
6
2018-04-09T07:46:05.000Z
2019-07-16T00:13:15.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
48.876138
108
0.730146
797e630160471a05dee522795fe9744a97e36ccd
3,566
py
Python
redshift_connector/interval.py
evgenyx00/amazon-redshift-python-driver
28266c344fdddaf1d6d0e0c00ebe506153209c27
[ "Apache-2.0", "BSD-3-Clause" ]
1
2022-03-17T19:57:10.000Z
2022-03-17T19:57:10.000Z
redshift_connector/interval.py
renauddahou/amazon-redshift-python-driver
ed0caafb74ea146a18e41bf88fb6d0179fefbb8a
[ "Apache-2.0", "BSD-3-Clause" ]
1
2022-03-14T09:25:59.000Z
2022-03-14T09:25:59.000Z
redshift_connector/interval.py
karim7262/amazon-redshift-python-driver
28266c344fdddaf1d6d0e0c00ebe506153209c27
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
from redshift_connector.config import max_int4, max_int8, min_int4, min_int8 class Interval: """An Interval represents a measurement of time. In Amazon Redshift, an interval is defined in the measure of months, days, and microseconds; as such, the interval type represents the same information. Note ...
39.622222
107
0.649187
797e631e596c3c74f03e09064bb55ac5a5047a2b
3,297
py
Python
tests/unit/test_extractive_summarization.py
dreasysnail/nlp-recipes
fcd62f0d8a1495e9157a058ca90bab3dd2276dff
[ "MIT" ]
1
2020-02-14T11:39:17.000Z
2020-02-14T11:39:17.000Z
tests/unit/test_extractive_summarization.py
KingDEV95/nlp-recipes
fcd62f0d8a1495e9157a058ca90bab3dd2276dff
[ "MIT" ]
null
null
null
tests/unit/test_extractive_summarization.py
KingDEV95/nlp-recipes
fcd62f0d8a1495e9157a058ca90bab3dd2276dff
[ "MIT" ]
1
2021-06-17T04:15:02.000Z
2021-06-17T04:15:02.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os import nltk nltk.download("punkt") import pytest from nltk import tokenize from utils_nlp.models.transformers.datasets import SummarizationDataset from utils_nlp.models.transformers.extractive_summarization import...
29.972727
115
0.713376
797e643b62981966775f9fe6a6ab483f2f780626
28,256
py
Python
tests/integration-tests/tests/storage/test_fsx_lustre.py
QPC-database/aws-parallelcluster
8c2e9595ca171340df21695c27d85dc00f19d3e4
[ "Apache-2.0" ]
1
2021-07-10T13:59:46.000Z
2021-07-10T13:59:46.000Z
tests/integration-tests/tests/storage/test_fsx_lustre.py
QPC-database/aws-parallelcluster
8c2e9595ca171340df21695c27d85dc00f19d3e4
[ "Apache-2.0" ]
null
null
null
tests/integration-tests/tests/storage/test_fsx_lustre.py
QPC-database/aws-parallelcluster
8c2e9595ca171340df21695c27d85dc00f19d3e4
[ "Apache-2.0" ]
null
null
null
# 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 acc...
41.069767
119
0.738038
797e65ecddd36f19233e62394d2460d92bc2d36b
254
py
Python
soma_aleatoria.py
MatheusSouza70/Exerc-cios-Python
f8878a0c9d62e49db61dcbce0ee10a161e12a894
[ "MIT" ]
1
2022-03-14T01:35:09.000Z
2022-03-14T01:35:09.000Z
soma_aleatoria.py
MatheusSouza70/Exerc-cios-Python
f8878a0c9d62e49db61dcbce0ee10a161e12a894
[ "MIT" ]
null
null
null
soma_aleatoria.py
MatheusSouza70/Exerc-cios-Python
f8878a0c9d62e49db61dcbce0ee10a161e12a894
[ "MIT" ]
null
null
null
from random import randint x = (int(input("Informe a quantidade de números: "))) soma = 0 for contador in range (x): numero_sorteado = randint(1,10) print(numero_sorteado) soma = soma + numero_sorteado print("A soma é ", soma)
21.166667
54
0.653543
797e6659d7ebc9ea56f6f209783246f8e1315324
10,192
py
Python
recipes/CommonVoice/common_voice_prepare.py
davewhipps/speechbrain
3ea4d4878be74465bfbfc8c5e560bbc6417e8812
[ "Apache-2.0" ]
1
2021-11-28T10:51:52.000Z
2021-11-28T10:51:52.000Z
recipes/CommonVoice/common_voice_prepare.py
davewhipps/speechbrain
3ea4d4878be74465bfbfc8c5e560bbc6417e8812
[ "Apache-2.0" ]
null
null
null
recipes/CommonVoice/common_voice_prepare.py
davewhipps/speechbrain
3ea4d4878be74465bfbfc8c5e560bbc6417e8812
[ "Apache-2.0" ]
null
null
null
""" Data preparation. Download: https://voice.mozilla.org/en/datasets Author ------ Titouan Parcollet """ import os import csv import re import logging import torchaudio import unicodedata from tqdm.contrib import tzip logger = logging.getLogger(__name__) def prepare_common_voice( data_folder, save_folder...
28.954545
93
0.601158
797e67e549379f4c4eb086d70b72884fb1b37c4d
1,147
py
Python
action.py
faisalfaisi34366/FW_esp32_get_IDF_hash_action
8c6bfda3148f1edee61e5a0cfc1e5ce787d77179
[ "MIT" ]
1
2020-02-04T06:57:15.000Z
2020-02-04T06:57:15.000Z
action.py
ccccmagicboy/FW_esp32_get_IDF_hash_action
f3dbe3a9c98bc1ec19a653714c0c83cec1e948b3
[ "MIT" ]
1
2020-05-08T11:24:53.000Z
2020-05-08T11:24:53.000Z
action.py
faisalfaisi34366/FW_esp32_get_IDF_hash_action
8c6bfda3148f1edee61e5a0cfc1e5ce787d77179
[ "MIT" ]
1
2020-04-21T04:39:44.000Z
2020-04-21T04:39:44.000Z
import os #print(os.listdir(os.getcwd())) #print("hello the world from python!!!") v3 = '' v4 = '' command = 'cd my_micropython/ports/esp32 && pwd && make' print(command) result = os.popen(command).read() print(result) print(result.splitlines()) for line in result.splitlines(): if 'Supported git hash' in line: ...
27.97561
72
0.634699
797e67f5e994d299c1c87b07c81e78a060125f11
591
py
Python
qcloudsdkvpc/AddUserGwRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkvpc/AddUserGwRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkvpc/AddUserGwRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from qcloudsdkcore.request import Request class AddUserGwRequest(Request): def __init__(self): super(AddUserGwRequest, self).__init__( 'vpc', 'qcloudcliV1', 'AddUserGw', 'vpc.api.qcloud.com') def get_userGwAddr(self): return self.get_params().get('userGwAd...
26.863636
68
0.671743
797e68bd1eecbe1c60412de6e2c1886010eb9caa
790
py
Python
t_speech_assisstant/venv/lib/python3.7/site-packages/Contacts/__init__.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
1
2020-09-01T16:24:50.000Z
2020-09-01T16:24:50.000Z
t_speech_assisstant/venv/lib/python3.7/site-packages/Contacts/__init__.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
1
2021-01-28T20:40:19.000Z
2021-01-28T20:40:19.000Z
t_speech_assisstant/venv/lib/python3.7/site-packages/Contacts/__init__.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
null
null
null
""" Python mapping for the Contacts framework. This module does not contain docstrings for the wrapped code, check Apple's documentation for details on how to use these functions and classes. """ import objc import sys import Foundation from Contacts import _metadata from Contacts._Contacts import * try: long e...
20.789474
75
0.692405
797e6901b254853cf27e6be96d2f791a3a884057
482
py
Python
kolibri/core/auth/errors.py
priyanka-choubey/kolibri
4070dc158634ab47c6e127768f0aed7548c0a182
[ "MIT" ]
1
2021-11-09T11:30:12.000Z
2021-11-09T11:30:12.000Z
kolibri/core/auth/errors.py
priyanka-choubey/kolibri
4070dc158634ab47c6e127768f0aed7548c0a182
[ "MIT" ]
7
2016-06-23T16:01:02.000Z
2018-12-01T22:15:13.000Z
kolibri/core/auth/errors.py
priyanka-choubey/kolibri
4070dc158634ab47c6e127768f0aed7548c0a182
[ "MIT" ]
1
2021-06-01T23:15:26.000Z
2021-06-01T23:15:26.000Z
from kolibri.core.errors import KolibriError class InvalidRoleKind(KolibriError): pass class UserDoesNotHaveRoleError(KolibriError): pass class UserHasRoleOnlyIndirectlyThroughHierarchyError(KolibriError): pass class UserIsNotFacilityUser(KolibriError): pass class UserIsNotMemberError(KolibriE...
16.066667
68
0.813278
797e69325ba9514e7483a05d73b84dc12ffe36f5
4,874
py
Python
src/dispatch/incident/views.py
gazzerman2/dispatch
18b9b633f20b596521f7a268097ebf0f2925bb38
[ "Apache-2.0" ]
null
null
null
src/dispatch/incident/views.py
gazzerman2/dispatch
18b9b633f20b596521f7a268097ebf0f2925bb38
[ "Apache-2.0" ]
2
2022-02-19T07:48:39.000Z
2022-02-27T17:14:28.000Z
src/dispatch/incident/views.py
gazzerman2/dispatch
18b9b633f20b596521f7a268097ebf0f2925bb38
[ "Apache-2.0" ]
null
null
null
from typing import List from fastapi import APIRouter, BackgroundTasks, Depends, HTTPException, Query from sqlalchemy.orm import Session from dispatch.auth.service import get_current_user from dispatch.database import get_db, search_filter_sort_paginate from dispatch.participant_role.models import ParticipantRoleTyp...
33.613793
98
0.719737
797e6974b3292d0020d9f380e54b9a0b3dfb889a
2,524
py
Python
infocentre.bme680.py
brian-burton/weather-infocentre
977156dd0153507dd6118a4b6d6b2eb7d3192a79
[ "MIT" ]
null
null
null
infocentre.bme680.py
brian-burton/weather-infocentre
977156dd0153507dd6118a4b6d6b2eb7d3192a79
[ "MIT" ]
null
null
null
infocentre.bme680.py
brian-burton/weather-infocentre
977156dd0153507dd6118a4b6d6b2eb7d3192a79
[ "MIT" ]
null
null
null
#!/usr/bin/env python import syslog import signal import bme680 import sys from paho.mqtt import client as mqtt_client from time import sleep from threading import Event sensor = bme680.BME680(bme680.I2C_ADDR_PRIMARY) exit = Event() # These oversampling settings can be tweaked to # change the balance between accuracy...
30.047619
188
0.62599
797e69e2012929d1076df84288164576d61586a0
18,764
py
Python
src/teacup/training/trainingparser.py
vincentiusmartin/teacup
8a6c829a3d9121596b07e11949a996b1607d5590
[ "MIT" ]
null
null
null
src/teacup/training/trainingparser.py
vincentiusmartin/teacup
8a6c829a3d9121596b07e11949a996b1607d5590
[ "MIT" ]
null
null
null
src/teacup/training/trainingparser.py
vincentiusmartin/teacup
8a6c829a3d9121596b07e11949a996b1607d5590
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import numpy as np import itertools import scipy import subprocess from sklearn import tree from sklearn import metrics from sklearn import ensemble from sklearn import svm from sklearn import linear_model from sklearn import naive_bayes from sklea...
40.791304
152
0.567363
797e6ac102ffa7074482d8c774f74d4581909ebb
3,418
py
Python
diabetes_regression/scoring/parallel_batchscore_copyoutput.py
poojashinde610/MLOpsPython
24ab94724ee0f4abcb1c83913c9439695c943c6e
[ "MIT" ]
null
null
null
diabetes_regression/scoring/parallel_batchscore_copyoutput.py
poojashinde610/MLOpsPython
24ab94724ee0f4abcb1c83913c9439695c943c6e
[ "MIT" ]
null
null
null
diabetes_regression/scoring/parallel_batchscore_copyoutput.py
poojashinde610/MLOpsPython
24ab94724ee0f4abcb1c83913c9439695c943c6e
[ "MIT" ]
2
2020-10-19T06:12:57.000Z
2020-11-10T13:05:15.000Z
""" Copyright (C) Microsoft Corporation. All rights reserved.​ ​ Microsoft Corporation (“Microsoft”) grants you a nonexclusive, perpetual, royalty-free right to use, copy, and modify the software code provided by us ("Software Code"). You may not sublicense the Software Code or any use of it (except to your affiliates...
40.211765
79
0.720012
797e6c3ce7dc390ab03025f4cbf2d002c3ccd3d5
3,202
py
Python
main.py
Skopos-team/Prostagma
a6d0a0df421cd3740d3761486dc15d56e81dbc02
[ "Apache-2.0" ]
null
null
null
main.py
Skopos-team/Prostagma
a6d0a0df421cd3740d3761486dc15d56e81dbc02
[ "Apache-2.0" ]
null
null
null
main.py
Skopos-team/Prostagma
a6d0a0df421cd3740d3761486dc15d56e81dbc02
[ "Apache-2.0" ]
null
null
null
import argparse import shutil import numpy as np from project.data_preprocessing.preprocessing import Preprocessor from project.data_preprocessing.data_loader import Loader from project.models.model import Model from prostagma.techniques.grid_search import GridSearch from prostagma.performances.cross_validation impor...
30.207547
85
0.686758
797e6d716b89750293b7d627bfe9d638a5ad57ca
1,903
py
Python
DataSupplier.py
justinhyou/project-z
6fd3f5bf1a30a69d92c0f6a488bc862cc014aa7e
[ "MIT" ]
null
null
null
DataSupplier.py
justinhyou/project-z
6fd3f5bf1a30a69d92c0f6a488bc862cc014aa7e
[ "MIT" ]
null
null
null
DataSupplier.py
justinhyou/project-z
6fd3f5bf1a30a69d92c0f6a488bc862cc014aa7e
[ "MIT" ]
null
null
null
import json import pandas as pd from DataTypeSource import DataTypeSource class DataSupplier: COUNTY_DATA = DataTypeSource.COUNTY.name + ".csv" STATE_DATA = DataTypeSource.STATE.name + ".csv" def __init__(self): return def __getDataFrame(self, fileName): return pd.read_csv(fileName)...
34.6
105
0.604834
797e6d902eb6a13ec6439ccb6ec8fc7c067985b7
3,374
py
Python
mmoss/app.py
tiggerntatie/mMOSS
1e252b6d6b6d740ec49f7e034b47e037af380c82
[ "MIT" ]
null
null
null
mmoss/app.py
tiggerntatie/mMOSS
1e252b6d6b6d740ec49f7e034b47e037af380c82
[ "MIT" ]
null
null
null
mmoss/app.py
tiggerntatie/mMOSS
1e252b6d6b6d740ec49f7e034b47e037af380c82
[ "MIT" ]
null
null
null
#! /usr/bin/python """mMOSS moderately Multiplayer Online Side Scroller Game client/server application class. It Handles command line options and launches the server or chosen client. Classes defined: 1. MMOSSApp Copyright (c) 2011 by Eric Dennison. All rights reserved. """ import os import argparse import loggi...
36.27957
78
0.564612
797e6e10eaaf4d05e7258050f9400ef4777cce5f
950
py
Python
分类代表题目/双指针问题/和大于等于s的最短子数组.py
ResolveWang/algorithm_qa
a0cb649acaf8cf9d808272bc15f1951f2c05c828
[ "MIT" ]
79
2018-03-27T12:37:49.000Z
2022-01-21T10:18:17.000Z
分类代表题目/双指针问题/和大于等于s的最短子数组.py
ResolveWang/algorithm_qa
a0cb649acaf8cf9d808272bc15f1951f2c05c828
[ "MIT" ]
null
null
null
分类代表题目/双指针问题/和大于等于s的最短子数组.py
ResolveWang/algorithm_qa
a0cb649acaf8cf9d808272bc15f1951f2c05c828
[ "MIT" ]
27
2018-04-08T03:07:06.000Z
2021-10-30T00:01:50.000Z
""" 问题: 给定一个含有 n 个正整数的数组和一个正整数 s ,找出该数组中满足其和 ≥ s 的长度最小的子数组。 如果不存在符合条件的子数组,返回 0。 示例: 输入: [2,3,1,2,4,3], s = 7 输出: 2 解释: 子数组 [4,3] 是该条件下的长度最小的子数组。 方法: 子数组问题三板斧 1.以xxx位置开头的情况 2.以xxx位置结尾的情况 3.双指针 本题使用双指针即可解决,时间复杂度为O(n) """ class Solution: def minSubArrayLen(self, s, nums): """ :type s: int ...
20.212766
64
0.457895