hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
4a84ca1ff74d6ac1f9694eabe007799d5010cba3
3,728
py
Python
src/data/1220.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1220.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1220.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
#!/usr/bin python3 # -*- coding: utf-8 -*- class Tree(): def __init__(self, n): self.n = n self.edges = [[] for _ in range(n)] self.root = None # 根 self.etnodes = [] # i番目の頂点番号 self.etedges = [] # i番目の辺の番号 self.etL = [0] * n # in self.etR = [0] * n # ou...
28.242424
75
0.441792
3f37e86b6e246dcfd4af33dc291c99d749027858
705
py
Python
plenum/test/node_request/test_pre_prepare/test_num_of_pre_prepare_with_one_fault.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/test/node_request/test_pre_prepare/test_num_of_pre_prepare_with_one_fault.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
null
null
null
plenum/test/node_request/test_pre_prepare/test_num_of_pre_prepare_with_one_fault.py
steptan/indy-plenum
488bf63c82753a74a92ac6952da784825ffd4a3d
[ "Apache-2.0" ]
2
2017-12-13T21:14:54.000Z
2021-06-06T15:48:03.000Z
from functools import partial import pytest from stp_core.common.util import adict from plenum.test.malicious_behaviors_node import makeNodeFaulty, \ delaysPrePrepareProcessing nodeCount = 4 faultyNodes = 1 whitelist = ['cannot process incoming PREPARE'] @pytest.fixture(scope="module") def setup(txnPoolNodeSet...
22.741935
66
0.747518
9663633d8e9dc1620e4de66cde0433a0b68a5cd5
1,261
py
Python
Basic_Python_Programs/lab 3.py
Techme2911/HacktoberFest19-Algo
1ca4007cc014b9d9131be92f362f4d2f846cdbc4
[ "MIT" ]
86
2015-06-13T16:53:55.000Z
2022-03-24T20:56:42.000Z
Basic_Python_Programs/lab 3.py
Techme2911/HacktoberFest19-Algo
1ca4007cc014b9d9131be92f362f4d2f846cdbc4
[ "MIT" ]
9
2015-05-27T07:52:44.000Z
2022-03-29T21:52:40.000Z
Basic_Python_Programs/lab 3.py
Techme2911/HacktoberFest19-Algo
1ca4007cc014b9d9131be92f362f4d2f846cdbc4
[ "MIT" ]
124
2015-12-10T01:17:18.000Z
2021-11-08T04:03:38.000Z
# 1. WAP to create and merge two list and then sort it wihtout function sort # 2. WAP to create list of number and sort even numbers using LIST COMPREHENSION # 3. WAP to calculate number of uppercase and lowercase from input string. l1=[] l2=[] a=int(input("Enter number of elements you want to enter in list 1: "...
21.741379
81
0.581285
b59ca589ddd8a93913244f35064d7b2cb72c65e1
847
py
Python
setup.py
Erotemic/performer-pytorch
968d3340a6a6d0cfd5bc208974bec85aa270e071
[ "MIT" ]
829
2020-10-03T15:38:41.000Z
2022-03-28T15:22:16.000Z
setup.py
Erotemic/performer-pytorch
968d3340a6a6d0cfd5bc208974bec85aa270e071
[ "MIT" ]
77
2020-10-05T18:55:14.000Z
2022-03-28T00:16:29.000Z
setup.py
Erotemic/performer-pytorch
968d3340a6a6d0cfd5bc208974bec85aa270e071
[ "MIT" ]
125
2020-10-11T11:11:18.000Z
2022-03-29T11:14:24.000Z
from setuptools import setup, find_packages setup( name = 'performer-pytorch', packages = find_packages(exclude=['examples']), version = '1.1.0', license='MIT', description = 'Performer - Pytorch', author = 'Phil Wang', author_email = 'lucidrains@gmail.com', url = 'https://github.com/lucidrains/perform...
26.46875
65
0.646989
40f9db98c9d8059a7452f93c8f695a22564f9018
2,558
py
Python
test.py
manestay/CartoonGAN-4731
f8580a7f027d6505ce0e5c15314e2b53fe18b69e
[ "MIT" ]
4
2019-01-23T16:00:06.000Z
2020-05-06T12:45:00.000Z
test.py
manestay/CartoonGAN-4731
f8580a7f027d6505ce0e5c15314e2b53fe18b69e
[ "MIT" ]
null
null
null
test.py
manestay/CartoonGAN-4731
f8580a7f027d6505ce0e5c15314e2b53fe18b69e
[ "MIT" ]
1
2019-12-03T13:16:15.000Z
2019-12-03T13:16:15.000Z
import os, time, pickle, argparse, networks, utils import torch import torch.nn as nn import torch.optim as optim import matplotlib.pyplot as plt from torchvision import transforms parser = argparse.ArgumentParser() parser.add_argument('--name', required=False, default='project_name', help='') parser.add_argument('--...
50.156863
128
0.725567
0f87e2b3acb3ca950e04a77204cb3e0314b81867
16,483
py
Python
configs/example/fs.py
MRGuenther/DynamicPrefetch
02627350c08868ad3988fe89fc004f0bac1a4c14
[ "BSD-3-Clause" ]
1
2020-11-24T14:39:55.000Z
2020-11-24T14:39:55.000Z
configs/example/fs.py
MRGuenther/DynamicPrefetch
02627350c08868ad3988fe89fc004f0bac1a4c14
[ "BSD-3-Clause" ]
null
null
null
configs/example/fs.py
MRGuenther/DynamicPrefetch
02627350c08868ad3988fe89fc004f0bac1a4c14
[ "BSD-3-Clause" ]
1
2021-12-08T10:19:20.000Z
2021-12-08T10:19:20.000Z
# Copyright (c) 2010-2013, 2016 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the fun...
41.310777
87
0.668022
433574e3ad7cb394257ec617aa8d7eddc16c97a1
411
py
Python
examples/how_to/get_version_info_from_last_good_build.py
tuenti/jenkinsapi
52548695da01bd431a6f9fc3c46f7ff42922af39
[ "MIT" ]
null
null
null
examples/how_to/get_version_info_from_last_good_build.py
tuenti/jenkinsapi
52548695da01bd431a6f9fc3c46f7ff42922af39
[ "MIT" ]
null
null
null
examples/how_to/get_version_info_from_last_good_build.py
tuenti/jenkinsapi
52548695da01bd431a6f9fc3c46f7ff42922af39
[ "MIT" ]
1
2019-12-08T16:20:22.000Z
2019-12-08T16:20:22.000Z
""" Extract version information from the latest build. """ from jenkinsapi.jenkins import Jenkins def getSCMInfroFromLatestGoodBuild(url, jobName, username=None, password=None): J = Jenkins(url, username, password) job = J[jobName] lgb = job.get_last_good_build() return lgb.get_revision() if __name__ ...
29.357143
79
0.739659
276c0039a116e6b116726f17dc5b6aa9fe574fdf
610
py
Python
djstripe/migrations/0012_account_djstripe_owner_account.py
TenantBase/dj-stripe
c3fe9da9dd0e15fd714c95402b7672aac07d43e1
[ "MIT" ]
null
null
null
djstripe/migrations/0012_account_djstripe_owner_account.py
TenantBase/dj-stripe
c3fe9da9dd0e15fd714c95402b7672aac07d43e1
[ "MIT" ]
null
null
null
djstripe/migrations/0012_account_djstripe_owner_account.py
TenantBase/dj-stripe
c3fe9da9dd0e15fd714c95402b7672aac07d43e1
[ "MIT" ]
null
null
null
# Generated by Django 3.2.11 on 2022-02-02 19:12 from django.conf import settings from django.db import migrations import django.db.models.deletion import djstripe.fields class Migration(migrations.Migration): dependencies = [ ('djstripe', '0011_2_7'), ] operations = [ migrations.AddFie...
27.727273
191
0.693443
a953834e2af3abb629ef0d9898fa39dfdb3dfe9b
8,187
py
Python
vision/visualizer_human.py
yihui-he2020/epipolar-transformers
6824f4345b2998500fbacd0f4e30f67f8e3da7b8
[ "MIT" ]
360
2020-03-30T07:15:45.000Z
2022-03-04T14:08:04.000Z
vision/visualizer_human.py
yihui-he2020/epipolar-transformers
6824f4345b2998500fbacd0f4e30f67f8e3da7b8
[ "MIT" ]
30
2020-05-12T11:12:20.000Z
2021-12-31T05:49:10.000Z
vision/visualizer_human.py
yihui-he2020/epipolar-transformers
6824f4345b2998500fbacd0f4e30f67f8e3da7b8
[ "MIT" ]
38
2020-05-12T05:33:46.000Z
2022-01-25T22:27:45.000Z
import numpy as np import scipy.ndimage import skimage import cv2 import torch import matplotlib from matplotlib import pylab as plt # from mpl_toolkits.mplot3d import axes3d, Axes3D # matplotlib.use('Agg') CONNECTIVITY_DICT = { 'cmu': [(0, 2), (0, 9), (1, 0), (1, 17), (2, 12), (3, 0), (4, 3), (5, 4), (6, 2), (7...
33.830579
178
0.543545
db5431a85aa344517332f5ef184d8d161f711a87
38,190
py
Python
salt/modules/ssh.py
borgstrom/salt
2f732b5e8cd0b2a13f133d02f70aba3ee9fc0169
[ "Apache-2.0" ]
null
null
null
salt/modules/ssh.py
borgstrom/salt
2f732b5e8cd0b2a13f133d02f70aba3ee9fc0169
[ "Apache-2.0" ]
null
null
null
salt/modules/ssh.py
borgstrom/salt
2f732b5e8cd0b2a13f133d02f70aba3ee9fc0169
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Manage client ssh components .. note:: This module requires the use of MD5 hashing. Certain security audits may not permit the use of MD5. For those cases, this module should be disabled or removed. ''' from __future__ import absolute_import # Import python libs import os import r...
31.535921
109
0.56177
4306426a804a389616a5919b964ad80081e71ea5
4,771
py
Python
src/classifier/routing.py
chengemily/Distributional-Signatures
7ef96f9cfc8aeb2fb54e117e3968e4390aaad819
[ "MIT" ]
243
2019-08-15T18:34:09.000Z
2022-03-31T11:51:00.000Z
src/classifier/routing.py
phymucs/460d60d2c25a118c67dcbfdd37f27d6c
cd7e4659fc9761a8af046e824853aa338b22f2f6
[ "MIT" ]
34
2019-10-22T08:11:28.000Z
2022-03-19T08:03:30.000Z
src/classifier/routing.py
phymucs/460d60d2c25a118c67dcbfdd37f27d6c
cd7e4659fc9761a8af046e824853aa338b22f2f6
[ "MIT" ]
54
2019-08-19T16:11:49.000Z
2022-03-31T05:36:01.000Z
import torch import torch.nn as nn import torch.nn.functional as F from classifier.base import BASE class ROUTING(BASE): ''' Induction and Relation module of "Induction Networks for Few-Shot Text Classification" ''' def __init__(self, ebd_dim, args): super(ROUTING, self).__init__(a...
31.388158
103
0.559002
40964542fdb6760c522e5bebdab2ee6d89f2fa67
6,372
py
Python
compile.py
yassineas/Dream-qBot-Botnet-Source
d76d92776b1995655ef85eba216f5fdffc114b29
[ "MIT" ]
14
2020-12-22T01:38:02.000Z
2022-02-08T15:59:39.000Z
compile.py
yassineas/Dream-qBot-Botnet-Source
d76d92776b1995655ef85eba216f5fdffc114b29
[ "MIT" ]
2
2021-03-02T23:46:05.000Z
2022-03-16T10:20:48.000Z
compile.py
yassineas/Dream-qBot-Botnet-Source
d76d92776b1995655ef85eba216f5fdffc114b29
[ "MIT" ]
8
2020-10-08T02:16:19.000Z
2021-12-31T09:25:30.000Z
import subprocess, sys if len(sys.argv[2]) != 0: ip = sys.argv[2] else: print("\x1b[0;31mIncorrect Usage!") print("\x1b[0;32mUsage: python " + sys.argv[0] + " <BOTNAME.C> <IPADDR> \x1b[0m") exit(1) bot = sys.argv[1] SNOOPY= raw_input("Y/n Get Arch-") if SNOOPY.lower() == "y": get_a...
42.198675
444
0.566384
d91931efc1a8dc9e9617eb6fe7838e2b5b31012c
1,275
py
Python
deritradeterminal/threads/orders/LimitBuyThread.py
mrhelloyellow/deri-trade-terminal
a882ac4ae01924a06faf1b92ebe3bfe7110d2105
[ "MIT" ]
null
null
null
deritradeterminal/threads/orders/LimitBuyThread.py
mrhelloyellow/deri-trade-terminal
a882ac4ae01924a06faf1b92ebe3bfe7110d2105
[ "MIT" ]
null
null
null
deritradeterminal/threads/orders/LimitBuyThread.py
mrhelloyellow/deri-trade-terminal
a882ac4ae01924a06faf1b92ebe3bfe7110d2105
[ "MIT" ]
null
null
null
from PyQt5 import * from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * from deritradeterminal.util.deribit_api import RestClient from deritradeterminal.managers.ConfigManager import ConfigManager class LimitBuyThread(QThread): signeler = pyqtSignal(bool,str,str) def processO...
36.428571
178
0.661176
a79fb2ea1f73f4d7ba3ff4c225204eedff7c7463
718
py
Python
tests/test_helpers.py
michael-karotsieris/taggsy
94bd0522963f699c5b3b94d9c7d25d447d75d148
[ "MIT" ]
null
null
null
tests/test_helpers.py
michael-karotsieris/taggsy
94bd0522963f699c5b3b94d9c7d25d447d75d148
[ "MIT" ]
null
null
null
tests/test_helpers.py
michael-karotsieris/taggsy
94bd0522963f699c5b3b94d9c7d25d447d75d148
[ "MIT" ]
null
null
null
from unittest import TestCase from .context import taggsy class TestFilterStopwords(TestCase): def test_filters_out_stopwords(self): ''' Test that stopwords are filtered out ''' word_list = ['this', 'is', 'are'] filtered_list = taggsy.helpers.filter_stopwords(words=word_l...
26.592593
72
0.657382
96a01725d974a4f5863d067df7dc10ea9a6673ad
229
py
Python
Task/Averages-Median/Python/averages-median.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
5
2021-01-29T20:08:05.000Z
2022-03-22T06:16:05.000Z
Task/Averages-Median/Python/averages-median.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/Averages-Median/Python/averages-median.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
def median(aray): srtd = sorted(aray) alen = len(srtd) return 0.5*( srtd[(alen-1)//2] + srtd[alen//2]) a = (4.1, 5.6, 7.2, 1.7, 9.3, 4.4, 3.2) print a, median(a) a = (4.1, 7.2, 1.7, 9.3, 4.4, 3.2) print a, median(a)
22.9
51
0.519651
886599ad0d84c0ce611ddced49e4889dff31a7ea
3,530
py
Python
test/test_partner.py
SimplyAutomationized/python-snap7
966127a712754a543eeb4a5d71d52be7a80811f9
[ "MIT" ]
8
2016-01-08T21:11:05.000Z
2019-08-03T02:52:30.000Z
test/test_partner.py
SimplyAutomationized/python-snap7
966127a712754a543eeb4a5d71d52be7a80811f9
[ "MIT" ]
null
null
null
test/test_partner.py
SimplyAutomationized/python-snap7
966127a712754a543eeb4a5d71d52be7a80811f9
[ "MIT" ]
3
2016-01-31T18:43:33.000Z
2020-02-04T14:08:52.000Z
import logging import unittest as unittest import snap7.partner from snap7.snap7exceptions import Snap7Exception logging.basicConfig(level=logging.WARNING) class TestPartner(unittest.TestCase): def setUp(self): self.partner = snap7.partner.Partner() self.partner.start() def test_as_b_send(s...
30.17094
81
0.633144
9a2077225534ddcaded39bba9108c9b10ed9519f
25,916
py
Python
tests/test_tf.py
InduManimaran/pennylane
375d25acc7bd2e6d5243b5273958b26513c33189
[ "Apache-2.0" ]
2
2021-06-29T01:30:08.000Z
2021-08-23T10:38:52.000Z
tests/test_tf.py
InduManimaran/pennylane
375d25acc7bd2e6d5243b5273958b26513c33189
[ "Apache-2.0" ]
null
null
null
tests/test_tf.py
InduManimaran/pennylane
375d25acc7bd2e6d5243b5273958b26513c33189
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
35.994444
115
0.587861
de653c89ff97f8f9124be9ca82bdbb3f191e90bb
13,244
py
Python
bucky3/statsd.py
smarkets/bucky3
7bca15c28d3e55027b831923c43a811da9d62ecb
[ "Apache-2.0" ]
null
null
null
bucky3/statsd.py
smarkets/bucky3
7bca15c28d3e55027b831923c43a811da9d62ecb
[ "Apache-2.0" ]
null
null
null
bucky3/statsd.py
smarkets/bucky3
7bca15c28d3e55027b831923c43a811da9d62ecb
[ "Apache-2.0" ]
1
2022-03-26T12:11:29.000Z
2022-03-26T12:11:29.000Z
# -*- 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/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
41.77918
121
0.553609
0824afd7e96bf3bf971d3da7c2e93bad5d917fea
16,720
py
Python
GUI/Monitoring.py
kyvipro113/Speed_Monitoring_System
3ce877c87644bfe20a1d59f3cd6c0435c772e5c5
[ "MIT" ]
null
null
null
GUI/Monitoring.py
kyvipro113/Speed_Monitoring_System
3ce877c87644bfe20a1d59f3cd6c0435c772e5c5
[ "MIT" ]
null
null
null
GUI/Monitoring.py
kyvipro113/Speed_Monitoring_System
3ce877c87644bfe20a1d59f3cd6c0435c772e5c5
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QFrame from GUI.Ui_Monitoring import Ui_Monitoring from PyQt5 import QtWidgets from PyQt5.QtCore import pyqtSlot, pyqtSignal, QThread, Qt, pyqtSlot from PyQt5.QtGui import QImage, QPixmap from PyQt5.QtWidgets import QFileDialog import cv2 from pathlib import Path import os.path import numpy ...
41.8
191
0.527811
984e1b1e356b23b0ce904f5c8ff3909af6b45cb4
8,684
py
Python
venv/lib/python2.7/site-packages/ansible/modules/web_infrastructure/htpasswd.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
venv/lib/python2.7/site-packages/ansible/modules/web_infrastructure/htpasswd.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
venv/lib/python2.7/site-packages/ansible/modules/web_infrastructure/htpasswd.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2013, Nimbis Services, Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
31.926471
110
0.630815
33d3ad77b7e98a7f0c9621d698f0aed0dca4ca4a
2,032
py
Python
get_authors.py
fermi-controls/redmine-git-authors
2c8d52a7ddcebbd229e9735074e4a8def7e44734
[ "MIT" ]
null
null
null
get_authors.py
fermi-controls/redmine-git-authors
2c8d52a7ddcebbd229e9735074e4a8def7e44734
[ "MIT" ]
null
null
null
get_authors.py
fermi-controls/redmine-git-authors
2c8d52a7ddcebbd229e9735074e4a8def7e44734
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Get the list of unique authors and contributors from Redmine.""" import json from pathlib import Path import subprocess names = set() output_path = Path('./authors.txt') def xlat_with(input_dict): """Translate the author name.""" input_keys = input_dict.keys() return lambda v...
31.261538
84
0.607283
1fe4445681c2a5bd1b10ef6585e60db930cd8a10
455
py
Python
tutorials/W3D4_DeepLearning1/solutions/W3D4_Tutorial1_Solution_2a11ec87.py
liuxiaomiao123/NeuroMathAcademy
16a7969604a300bf9fbb86f8a5b26050ebd14c65
[ "CC-BY-4.0" ]
2
2020-07-03T04:39:09.000Z
2020-07-12T02:08:31.000Z
tutorials/W3D4_DeepLearning1/solutions/W3D4_Tutorial1_Solution_2a11ec87.py
NinaHKivanani/course-content
3c91dd1a669cebce892486ba4f8086b1ef2e1e49
[ "CC-BY-4.0" ]
1
2020-06-22T22:57:03.000Z
2020-06-22T22:57:03.000Z
tutorials/W3D4_DeepLearning1/solutions/W3D4_Tutorial1_Solution_2a11ec87.py
NinaHKivanani/course-content
3c91dd1a669cebce892486ba4f8086b1ef2e1e49
[ "CC-BY-4.0" ]
1
2021-03-29T21:08:26.000Z
2021-03-29T21:08:26.000Z
def plot_tuning(): """Plot the tuning curve of a random neuron""" neuron_indx = np.random.choice(n_neurons) # pick random neuron plt.plot(np.rad2deg(stimuli), resp[:, neuron_indx], '.') # plot its responses as a function of stimulus orientation plt.title('neuron %i' % neuron_indx) plt.xlabel('stimulus o...
32.5
118
0.69011
9d394e96942e4c5f65e52e1f00e476f2d4883fa9
6,542
py
Python
mlp/mlp.py
Yuxiang-Wei/DeepLearning
5ad27384a6b45b97700094fe979a67b0d1522be8
[ "MIT" ]
7
2019-06-28T15:21:20.000Z
2020-04-22T14:35:35.000Z
mlp/mlp.py
csyxwei/DeepLearning
5ad27384a6b45b97700094fe979a67b0d1522be8
[ "MIT" ]
null
null
null
mlp/mlp.py
csyxwei/DeepLearning
5ad27384a6b45b97700094fe979a67b0d1522be8
[ "MIT" ]
1
2019-07-02T03:33:37.000Z
2019-07-02T03:33:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 19-5-10 # @Author : wyxiang # @File : mlp.py # @Env: Ubuntu16.04 Python3.6 Pytorch0.4.1 import torch import torch.nn as nn import torch.nn.functional as F from torchvision import datasets, transforms from torch.utils.data.dataloader import DataLoader from ...
31.301435
90
0.576888
e1a083851a06d03379c8ce0652a6846ce73ba485
2,110
py
Python
birthday_calendar/__main__.py
Raiytak/Birthday-Calendar
879a268439503bc3debec9fca6363c9da44829a7
[ "MIT" ]
null
null
null
birthday_calendar/__main__.py
Raiytak/Birthday-Calendar
879a268439503bc3debec9fca6363c9da44829a7
[ "MIT" ]
null
null
null
birthday_calendar/__main__.py
Raiytak/Birthday-Calendar
879a268439503bc3debec9fca6363c9da44829a7
[ "MIT" ]
null
null
null
import argparse from .accessor import BirthdayAccessor from .convert import convertDictToBirthdays from .app_shell import AppShell from .app_func import AppFunctionalities """ Main script Handles the arguments and craetes a mixin with the shell, core functions and accessor """ class MainApp(AppFunctionalities, App...
28.90411
108
0.732227
b15067f15e9b299586b8c31ce9467c984c2cf2dc
32,516
py
Python
tools/third_party/pytest/testing/test_doctest.py
shs96c/web-platform-tests
61acad6dd9bb99d32340eb41f5146de64f542359
[ "BSD-3-Clause" ]
1
2018-02-26T09:45:53.000Z
2018-02-26T09:45:53.000Z
tools/third_party/pytest/testing/test_doctest.py
shs96c/web-platform-tests
61acad6dd9bb99d32340eb41f5146de64f542359
[ "BSD-3-Clause" ]
null
null
null
tools/third_party/pytest/testing/test_doctest.py
shs96c/web-platform-tests
61acad6dd9bb99d32340eb41f5146de64f542359
[ "BSD-3-Clause" ]
1
2021-04-06T20:06:58.000Z
2021-04-06T20:06:58.000Z
# encoding: utf-8 from __future__ import absolute_import, division, print_function import sys import _pytest._code from _pytest.compat import MODULE_NOT_FOUND_ERROR from _pytest.doctest import DoctestItem, DoctestModule, DoctestTextfile import pytest class TestDoctests(object): def test_collect_testtextfile(self...
32.386454
105
0.490405
ff1e90e1472653bd3368e620345df18e0e561371
654
py
Python
MultielementPolynomial/src/main.py
LonelySteve/data-structure-and-algorithms-tasks
4698a5030d8c3c9093933e37e3247e4c76d8d895
[ "MIT" ]
1
2019-04-17T00:18:13.000Z
2019-04-17T00:18:13.000Z
MultielementPolynomial/src/main.py
LonelySteve/data-structure-and-algorithms-tasks
4698a5030d8c3c9093933e37e3247e4c76d8d895
[ "MIT" ]
null
null
null
MultielementPolynomial/src/main.py
LonelySteve/data-structure-and-algorithms-tasks
4698a5030d8c3c9093933e37e3247e4c76d8d895
[ "MIT" ]
null
null
null
from MultielementPolynomial.src.parser.parser import Parser from MultielementPolynomial.src.mplist import get_mp_struct, convert def main(): expr_1 = "8*x^9+5*x^8*y^7+3*x^4*y^4+6*y^2-5" expr_2 = "6*x^5*y^4+7*x^3*y^2+21*x*y^2+8" p_1 = Parser(expr_1) ex_1 = p_1.parse() vars_1 = list(ex_1.vars) ...
23.357143
68
0.646789
321a2b976f77f6d80094268622882fae99820723
427
py
Python
packages/python/plotly/plotly/validators/bar/_ids.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/bar/_ids.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/bar/_ids.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name="ids", parent_name="bar", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, anim=kwargs...
32.846154
71
0.644028
dc04af8c4672908cae13c830079b386c48ea12c1
4,737
py
Python
sib_api_v3_sdk/models/get_contacts.py
tarraschk/APIv3-python-library
440883d3a7ca503a655f16bf69cef6c122a95e01
[ "MIT" ]
46
2018-12-18T21:37:18.000Z
2022-03-30T20:38:29.000Z
sib_api_v3_sdk/models/get_contacts.py
tarraschk/APIv3-python-library
440883d3a7ca503a655f16bf69cef6c122a95e01
[ "MIT" ]
41
2018-03-02T13:22:48.000Z
2021-11-25T04:32:03.000Z
sib_api_v3_sdk/models/get_contacts.py
tarraschk/APIv3-python-library
440883d3a7ca503a655f16bf69cef6c122a95e01
[ "MIT" ]
45
2018-01-22T14:42:32.000Z
2021-12-16T19:58:45.000Z
# coding: utf-8 """ SendinBlue API SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at h...
32.445205
856
0.568292
79e26c86be889bbedce90f1f952afa1e472f6872
3,302
py
Python
backend/suggestion/algo_genre.py
PierreSanson/centrale
45bf1944c46f22f21b018bd19d8c3b504548d25f
[ "MIT" ]
null
null
null
backend/suggestion/algo_genre.py
PierreSanson/centrale
45bf1944c46f22f21b018bd19d8c3b504548d25f
[ "MIT" ]
null
null
null
backend/suggestion/algo_genre.py
PierreSanson/centrale
45bf1944c46f22f21b018bd19d8c3b504548d25f
[ "MIT" ]
null
null
null
import numpy as np from get_dictionaries import * import pandas as pd def meilleur_score(d,n): liste=[] new_d={} for k, v in sorted(d.items(), key=lambda x: x[1]): liste.append([k,v]) liste.reverse() for i in range(n): new_d[liste[i][0]]=liste[i][1] return new_d def average_pop...
40.765432
401
0.61811
028fd31cc5e83cc82f56c9c03f08a47797f72754
8,484
py
Python
testproject/pytests/test_blog_post.py
Bebe-ops/conduit
e06d78ebe9ca72595ddef0f5c7fcfd2868a5fa08
[ "MIT" ]
null
null
null
testproject/pytests/test_blog_post.py
Bebe-ops/conduit
e06d78ebe9ca72595ddef0f5c7fcfd2868a5fa08
[ "MIT" ]
null
null
null
testproject/pytests/test_blog_post.py
Bebe-ops/conduit
e06d78ebe9ca72595ddef0f5c7fcfd2868a5fa08
[ "MIT" ]
null
null
null
from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time from random import randint from selenium.webdriver.chro...
35.797468
120
0.6814
355497f855a5610e465ee945f6f0c2e91bfa5610
6,198
py
Python
maf_merge_from_consensus.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
null
null
null
maf_merge_from_consensus.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
1
2020-09-17T11:14:13.000Z
2020-09-17T11:14:13.000Z
maf_merge_from_consensus.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Merge multi-stage whole genome alignments maf_merge_from_consensus.py --output <output file> <input maf> <input_name:input_file...> """ import argparse import collections from Bio import Seq MafSeq = collections.namedtuple('MafSeq', 'seq_name start aligned_bases strand con...
42.452055
119
0.495482
b90b1f49a610781c4aad85f09b0d68671b8b54c5
3,825
py
Python
setup.py
vischia/madminer
98c2bcfb93d0fd84ff1872b344c4d89adf51217f
[ "MIT" ]
null
null
null
setup.py
vischia/madminer
98c2bcfb93d0fd84ff1872b344c4d89adf51217f
[ "MIT" ]
null
null
null
setup.py
vischia/madminer
98c2bcfb93d0fd84ff1872b344c4d89adf51217f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Based on https://github.com/kennethreitz/setup.py # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-da...
27.517986
87
0.635033
0d7dff9e05a11b257e2d2d4b98a9b4030e9c24c4
5,246
py
Python
awx/main/notifications/grafana_backend.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
null
null
null
awx/main/notifications/grafana_backend.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
2
2022-02-10T11:57:21.000Z
2022-02-27T22:43:44.000Z
awx/main/notifications/grafana_backend.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Ansible, Inc. # All Rights Reserved. import datetime import json import logging import requests import dateutil.parser as dp from django.utils.encoding import smart_str from django.utils.translation import gettext_lazy as _ from awx.main.notifications.base import AWXBaseEmailBackend from awx.mai...
49.028037
155
0.682234
894dd87fd23352ae4249a35a3c4032479c290306
1,292
py
Python
test/functional/rpcnamedargs.py
Exgibichi/statusquo
0a31913747fa09637cdaeadf009df75381e6efc4
[ "MIT" ]
null
null
null
test/functional/rpcnamedargs.py
Exgibichi/statusquo
0a31913747fa09637cdaeadf009df75381e6efc4
[ "MIT" ]
null
null
null
test/functional/rpcnamedargs.py
Exgibichi/statusquo
0a31913747fa09637cdaeadf009df75381e6efc4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 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 using named arguments for RPCs.""" from test_framework.test_framework import StatusquoTestFramework fr...
30.761905
92
0.657121
2c393e83c6867ab3f6e38512c9d56c3a33b1f643
949
py
Python
test/test_topology_lib_subinterface.py
payalupadhyaya/topology_lib_subinterface
80ddd3d24ca0ff10c12ec6cd68dc3a8c5ec6c2ec
[ "Apache-2.0" ]
null
null
null
test/test_topology_lib_subinterface.py
payalupadhyaya/topology_lib_subinterface
80ddd3d24ca0ff10c12ec6cd68dc3a8c5ec6c2ec
[ "Apache-2.0" ]
null
null
null
test/test_topology_lib_subinterface.py
payalupadhyaya/topology_lib_subinterface
80ddd3d24ca0ff10c12ec6cd68dc3a8c5ec6c2ec
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2016 Hewlett Packard Enterprise Development LP # # 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 # # U...
27.911765
66
0.741834
cbf1e8dee92d101a9bcf56d360c0b18ae3a79a52
1,775
py
Python
dataset/utils.py
wolfib/proxy-nca
7166025081b98dfafa02ba5dc1288ce981b9367e
[ "MIT" ]
null
null
null
dataset/utils.py
wolfib/proxy-nca
7166025081b98dfafa02ba5dc1288ce981b9367e
[ "MIT" ]
null
null
null
dataset/utils.py
wolfib/proxy-nca
7166025081b98dfafa02ba5dc1288ce981b9367e
[ "MIT" ]
null
null
null
from torchvision import transforms import PIL.Image import torch def std_per_channel(images): images = torch.stack(images, dim = 0) return images.view(3, -1).std(dim = 1) def mean_per_channel(images): images = torch.stack(images, dim = 0) return images.view(3, -1).mean(dim = 1) class Identity(): #...
29.098361
77
0.588732
e9f6b6c744f2841c65955a490697e99665544cb6
33
py
Python
venus/db/dbo/adapter/__init__.py
nagylzs/python-venus-lib
336d20532c32e874ab0a43cf866092b9e55dded5
[ "Apache-2.0" ]
null
null
null
venus/db/dbo/adapter/__init__.py
nagylzs/python-venus-lib
336d20532c32e874ab0a43cf866092b9e55dded5
[ "Apache-2.0" ]
1
2019-02-15T13:40:49.000Z
2019-02-15T13:40:49.000Z
venus/db/dbo/adapter/__init__.py
nagylzs/python-venus-lib
336d20532c32e874ab0a43cf866092b9e55dded5
[ "Apache-2.0" ]
null
null
null
"""Database adapters package."""
16.5
32
0.69697
38b6fc9243373b4563b87ae2eb886f68c67f81b3
274
py
Python
problems/remove_element/solution.py
nagahshi/LeetCodeProblems_Repository
ed9831141fdd6ca432acb25318ef5afdb3a7fd3a
[ "MIT" ]
null
null
null
problems/remove_element/solution.py
nagahshi/LeetCodeProblems_Repository
ed9831141fdd6ca432acb25318ef5afdb3a7fd3a
[ "MIT" ]
null
null
null
problems/remove_element/solution.py
nagahshi/LeetCodeProblems_Repository
ed9831141fdd6ca432acb25318ef5afdb3a7fd3a
[ "MIT" ]
null
null
null
class Solution(object): def removeElement(self, nums: List[int], val: int) -> int: """ :type nums: list :type val: int :rtype: int (size of num) """ while val in nums: nums.remove(val) return len(nums)
27.4
62
0.50365
38380a24448b26b5a31f3dcdef75bf92e9def696
1,844
py
Python
cgi-bin/passmots/salvaOrigemRegistro.py
wsampaio/multi_agenda_py
72c9cf4d8b26827a9eba6de3119e63464d312aea
[ "CC-BY-4.0" ]
null
null
null
cgi-bin/passmots/salvaOrigemRegistro.py
wsampaio/multi_agenda_py
72c9cf4d8b26827a9eba6de3119e63464d312aea
[ "CC-BY-4.0" ]
null
null
null
cgi-bin/passmots/salvaOrigemRegistro.py
wsampaio/multi_agenda_py
72c9cf4d8b26827a9eba6de3119e63464d312aea
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 # # Este arquivo é parte do programa multi_agenda # # Esta obra está licenciada com uma # Licença Creative Commons Atribuição 4.0 Internacional. # (CC BY 4.0 Internacional) # # Para ver uma cópia da licença, visite # https://creativecommons.org/licenses/by/4.0/legalcode # # WELLINGTON SAMPAI...
20.719101
78
0.743492
22c5e29803815291c40cae37e56aea0fb333e1fc
355
py
Python
project/editorial/migrations/0015_remove_videoasset_embed.py
cojennin/facet
230e65316134b3399a35d40034728e61ba63cb2a
[ "MIT" ]
25
2015-07-13T22:16:36.000Z
2021-11-11T02:45:32.000Z
project/editorial/migrations/0015_remove_videoasset_embed.py
cojennin/facet
230e65316134b3399a35d40034728e61ba63cb2a
[ "MIT" ]
74
2015-12-01T18:57:47.000Z
2022-03-11T23:25:47.000Z
project/editorial/migrations/0015_remove_videoasset_embed.py
cojennin/facet
230e65316134b3399a35d40034728e61ba63cb2a
[ "MIT" ]
6
2016-01-08T21:12:43.000Z
2019-05-20T16:07:56.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('editorial', '0014_videoasset_embed'), ] operations = [ migrations.RemoveField( model_name='videoasset', ...
18.684211
47
0.605634
15c140aa69963c538a5e1891ea45929940c8e9ad
6,268
py
Python
Scripts/xbbtools/xbb_search.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
1
2020-02-13T14:32:44.000Z
2020-02-13T14:32:44.000Z
Scripts/xbbtools/xbb_search.py
EsamTolba/biopython
120616cf0d28cb8e581898afd6604e5a2065a137
[ "BSD-3-Clause" ]
null
null
null
Scripts/xbbtools/xbb_search.py
EsamTolba/biopython
120616cf0d28cb8e581898afd6604e5a2065a137
[ "BSD-3-Clause" ]
1
2019-03-14T18:59:30.000Z
2019-03-14T18:59:30.000Z
#!/usr/bin/env python # Copyright 2000 by Thomas Sicheritz-Ponten. # Copyrigth 2016 by Markus Piotrowski. # All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # Created: Sun Dec 3 ...
30.72549
79
0.575463
75d479b2e671da56a4ab026019d9566aaadd7f37
21,129
py
Python
projects/QQP/tokenizer/bert_tokenization.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
55
2021-12-10T08:47:06.000Z
2022-03-28T09:02:15.000Z
projects/QQP/tokenizer/bert_tokenization.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
106
2021-11-03T05:16:45.000Z
2022-03-31T06:16:23.000Z
projects/QQP/tokenizer/bert_tokenization.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
13
2021-12-29T08:12:08.000Z
2022-03-28T06:59:45.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
33.860577
84
0.572673
165b8e8c4b1a7d413d83edb7485f2b41f1ad079a
8,977
py
Python
tests/mixins/stream_hls.py
lijinquan123/streamlink
1e0ff12f38df4879a704c11376b7e2a118a01e3b
[ "BSD-2-Clause" ]
1
2021-07-19T17:25:11.000Z
2021-07-19T17:25:11.000Z
tests/mixins/stream_hls.py
Inncee81/streamlink
07029669d58a835bd05029316211343eef78ddf2
[ "BSD-2-Clause" ]
2
2021-08-06T01:59:11.000Z
2022-01-20T08:27:45.000Z
tests/mixins/stream_hls.py
Inncee81/streamlink
07029669d58a835bd05029316211343eef78ddf2
[ "BSD-2-Clause" ]
1
2021-08-05T12:15:07.000Z
2021-08-05T12:15:07.000Z
import unittest from binascii import hexlify from collections import OrderedDict from functools import partial from threading import Event, Thread import requests_mock from streamlink import Streamlink from streamlink.stream.hls import HLSStream, HLSStreamWriter as _HLSStreamWriter class HLSItemBase: path = "" ...
33.621723
118
0.606439
a206535b45dc6caa78816eab68b6a1b1b1654290
9,080
py
Python
scripts/saxs_open.py
cristina-mt/biosoft_SAXS
1d4f4dea5dfb5ef57089e5450a2f3504547c0f24
[ "MIT" ]
null
null
null
scripts/saxs_open.py
cristina-mt/biosoft_SAXS
1d4f4dea5dfb5ef57089e5450a2f3504547c0f24
[ "MIT" ]
null
null
null
scripts/saxs_open.py
cristina-mt/biosoft_SAXS
1d4f4dea5dfb5ef57089e5450a2f3504547c0f24
[ "MIT" ]
null
null
null
""" Group of functions to read and display raw data generated from SAXS experiments at the ESRF - poni file: calibration information - mask file: identifies the detector lines and beam stopper - edf file: contains the saxs data Notes: - Mask is read either from txt file generated with matlab code, or edf file. - EDF f...
33.382353
139
0.690419
74839ed5664567bbda6e44f085c0f79bc643e6ea
699
py
Python
tensorflow_datasets/question_answering/coqa/__init__.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
2
2022-02-14T09:51:39.000Z
2022-02-14T13:27:49.000Z
tensorflow_datasets/question_answering/coqa/__init__.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/question_answering/coqa/__init__.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
1
2020-12-13T22:11:33.000Z
2020-12-13T22:11:33.000Z
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
36.789474
74
0.76824
fd0ba89a2c0e0fa8bbb68a04f8ee3631e85ffd36
4,263
py
Python
Tests/misc/xmlWriter_test.py
anntzer/fonttools
726cd67549956b985bbbe83e26fb0af9da59ddf7
[ "MIT", "BSD-3-Clause" ]
1
2020-05-07T16:29:02.000Z
2020-05-07T16:29:02.000Z
Tests/misc/xmlWriter_test.py
anntzer/fonttools
726cd67549956b985bbbe83e26fb0af9da59ddf7
[ "MIT", "BSD-3-Clause" ]
74
2020-01-30T07:27:54.000Z
2021-08-03T05:47:17.000Z
Tests/misc/xmlWriter_test.py
anntzer/fonttools
726cd67549956b985bbbe83e26fb0af9da59ddf7
[ "MIT", "BSD-3-Clause" ]
1
2020-01-22T20:06:09.000Z
2020-01-22T20:06:09.000Z
from fontTools.misc.py23 import * import os import unittest from fontTools.misc.xmlWriter import XMLWriter linesep = tobytes(os.linesep) HEADER = b'<?xml version="1.0" encoding="UTF-8"?>' + linesep class TestXMLWriter(unittest.TestCase): def test_comment_escaped(self): writer = XMLWriter(BytesIO()) writer.comme...
33.304688
99
0.696223
b89bcabfdc13ad72fede6d69e6c776c12e99dcf8
2,526
py
Python
cs224n/assignment1/q2_gradcheck.py
Rolight/Mooc-Assignments
0031771c0662426af3cf9935051e3d35d08cca20
[ "Apache-2.0" ]
null
null
null
cs224n/assignment1/q2_gradcheck.py
Rolight/Mooc-Assignments
0031771c0662426af3cf9935051e3d35d08cca20
[ "Apache-2.0" ]
null
null
null
cs224n/assignment1/q2_gradcheck.py
Rolight/Mooc-Assignments
0031771c0662426af3cf9935051e3d35d08cca20
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import numpy as np import random # First implement a gradient checker by filling in the following functions def gradcheck_naive(f, x): """ Gradient check for a function f. Arguments: f -- a function that takes a single argument and outputs the cost and its gradients x ...
28.382022
79
0.605305
3e824d1cdcc28656b403fbacbfa69acc3f0f6088
105
py
Python
pyecore/__init__.py
afonsobspinto/pyecore
a741243c68d1b6d3ed383165493531827d9c4c02
[ "BSD-3-Clause" ]
null
null
null
pyecore/__init__.py
afonsobspinto/pyecore
a741243c68d1b6d3ed383165493531827d9c4c02
[ "BSD-3-Clause" ]
null
null
null
pyecore/__init__.py
afonsobspinto/pyecore
a741243c68d1b6d3ed383165493531827d9c4c02
[ "BSD-3-Clause" ]
null
null
null
""" """ from .utils import install_issubclass_patch __version__ = "0.8.6" install_issubclass_patch()
10.5
43
0.733333
472f1f253f59e246ccf368725276c3e53bb61fc4
1,415
py
Python
trailscraper/boto_service_definitions.py
flosell/trailscraper
511a073ae75bba1cc4dd7b6bea1d51a70d95ad48
[ "Apache-2.0" ]
497
2018-01-08T15:36:05.000Z
2022-03-30T14:11:54.000Z
trailscraper/boto_service_definitions.py
flosell/trailscraper
511a073ae75bba1cc4dd7b6bea1d51a70d95ad48
[ "Apache-2.0" ]
97
2017-11-26T13:52:20.000Z
2022-02-07T01:36:10.000Z
trailscraper/boto_service_definitions.py
flosell/trailscraper
511a073ae75bba1cc4dd7b6bea1d51a70d95ad48
[ "Apache-2.0" ]
26
2019-04-04T21:37:29.000Z
2022-02-18T10:23:07.000Z
"""Helper Methods to get service definition information out of the boto library""" import fnmatch import json import os from pkg_resources import resource_filename, Requirement def boto_service_definition_files(): """Return paths to all service definition files from botocore""" botocore_data_dir = resource_...
38.243243
95
0.722968
cf6d727a692de15f339561a2cfe745e1d84ac42a
25,305
py
Python
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/mail/alias.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
4
2016-03-30T14:31:52.000Z
2019-02-02T05:01:32.000Z
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/mail/alias.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
1
2020-03-06T04:49:42.000Z
2020-03-06T04:49:42.000Z
IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/mail/alias.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
# -*- test-case-name: twisted.mail.test.test_mail -*- # # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Support for aliases(5) configuration files. @author: Jp Calderone """ import os import tempfile from twisted.mail import smtp from twisted.internet import reactor fro...
31.04908
89
0.592334
ec3661ddc38fe4da04624cb4b8f004fc142a080f
1,350
py
Python
zipper.py
mayankcodeops/museum_api
d93f94e7938e13e5a01f95cb930a87692e6bd166
[ "MIT" ]
null
null
null
zipper.py
mayankcodeops/museum_api
d93f94e7938e13e5a01f95cb930a87692e6bd166
[ "MIT" ]
1
2021-12-07T09:47:31.000Z
2021-12-07T09:47:31.000Z
zipper.py
mayankcodeops/museum_api
d93f94e7938e13e5a01f95cb930a87692e6bd166
[ "MIT" ]
null
null
null
import logging import zipfile import os from config import config CONFIG_NAME = os.environ.get('CONFIG_NAME', 'default') logging.basicConfig(filename='app.log', filemode='w', format='%(asctime)s : %(levelname)s : %(message)s', level=logging.DEBUG) def zip_reports(compressed_file, *args): """...
38.571429
115
0.624444
53449c2f118c7bdd197f5c421c9a494a06a7fff1
8,993
py
Python
examples/generative_models/jtnn/jtnn/datautils.py
seqRep/dgl-lifesci
c4bd45be6dbb59dc270957ed90bb19d9ed6dc157
[ "Apache-2.0" ]
1
2020-06-22T19:19:24.000Z
2020-06-22T19:19:24.000Z
examples/generative_models/jtnn/jtnn/datautils.py
seqRep/dgl-lifesci
c4bd45be6dbb59dc270957ed90bb19d9ed6dc157
[ "Apache-2.0" ]
null
null
null
examples/generative_models/jtnn/jtnn/datautils.py
seqRep/dgl-lifesci
c4bd45be6dbb59dc270957ed90bb19d9ed6dc157
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import dgl import os import torch from dgl.data.utils import download, extract_archive, get_download_dir from torch.utils.data import Dataset from .mol_tree import Vocab, DGLMolTree fr...
37.785714
81
0.603136
e0a5b48147e5339d4b061e16b74df66abe2ffbc1
8,727
py
Python
src/utils/convergence_test_utils.py
vishalbelsare/crosscat
1f2ac5a43a50ebd7aaa89f0c5ac3815a170848c5
[ "Apache-2.0" ]
207
2015-09-23T08:35:22.000Z
2021-11-24T23:05:55.000Z
src/utils/convergence_test_utils.py
vishalbelsare/crosscat
1f2ac5a43a50ebd7aaa89f0c5ac3815a170848c5
[ "Apache-2.0" ]
52
2015-09-18T21:19:54.000Z
2018-12-15T21:17:32.000Z
src/utils/convergence_test_utils.py
vishalbelsare/crosscat
1f2ac5a43a50ebd7aaa89f0c5ac3815a170848c5
[ "Apache-2.0" ]
33
2015-10-30T22:50:30.000Z
2020-07-01T00:29:55.000Z
# # Copyright (c) 2010-2016, MIT Probabilistic Computing Project # # Lead Developers: Dan Lovell and Jay Baxter # Authors: Dan Lovell, Baxter Eaves, Jay Baxter, Vikash Mansinghka # Research Leads: Vikash Mansinghka, Patrick Shafto # # Licensed under the Apache License, Version 2.0 (the "License"); # you may...
44.075758
186
0.719147
4debb766c3fe5106b666815ce1a1772e065de58a
727
py
Python
irida_staramr_results/test_unit/test_downloader.py
phac-nml/irida-staramr-results
7574b6eead97929605bdaf226cb34062b20c1dac
[ "Apache-2.0" ]
2
2021-04-19T16:07:45.000Z
2021-07-05T15:09:04.000Z
irida_staramr_results/test_unit/test_downloader.py
phac-nml/irida-staramr-results
7574b6eead97929605bdaf226cb34062b20c1dac
[ "Apache-2.0" ]
16
2021-02-05T19:25:13.000Z
2021-11-30T18:01:16.000Z
irida_staramr_results/test_unit/test_downloader.py
phac-nml/irida-staramr-results
7574b6eead97929605bdaf226cb34062b20c1dac
[ "Apache-2.0" ]
3
2021-03-08T14:01:15.000Z
2021-07-20T16:39:21.000Z
import unittest from irida_staramr_results.downloader import _get_output_file_name class TestDownloader(unittest.TestCase): def setUp(self): print("\nStarting " + self.__module__ + ": " + self._testMethodName) def tearDown(self): pass def test_get_output_file(self): """ ...
23.451613
87
0.672627
b373fdbd5517742623a5158e4b39ae13ef4c20fe
4,010
py
Python
simulation/src/launch_tools/scripts/launch_tools/services_timer.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
simulation/src/launch_tools/scripts/launch_tools/services_timer.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
simulation/src/launch_tools/scripts/launch_tools/services_timer.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Copyright (c) 2013, Systems, Robotics and Vision Group University of the Balearican Islands 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 ...
37.830189
86
0.702993
b997b907b13ae65512d576ca309ad7a35494a3e4
565
bzl
Python
consensus/conf.bzl
francescolavra/entangled
b580441a79859455aff77fb158db31f582c24847
[ "Apache-2.0" ]
null
null
null
consensus/conf.bzl
francescolavra/entangled
b580441a79859455aff77fb158db31f582c24847
[ "Apache-2.0" ]
null
null
null
consensus/conf.bzl
francescolavra/entangled
b580441a79859455aff77fb158db31f582c24847
[ "Apache-2.0" ]
null
null
null
CONSENSUS_MAINNET_VARIABLES = [ "SNAPSHOT_CONF_FILE='\"external/snapshot_conf_mainnet/file/downloaded\"'", "SNAPSHOT_SIG_FILE='\"external/snapshot_sig_mainnet/file/downloaded\"'", "SNAPSHOT_FILE='\"external/snapshot_mainnet/file/downloaded\"'", "NUM_KEYS_IN_MILESTONE=20", "MWM=14", ] CONSENSUS_TEST...
35.3125
78
0.723894
f986d49847702197173712d11338d000520ba73f
3,867
py
Python
lib/datasets/dataset_catalog.py
BarneyQiao/pcl.pytorch
4e0280e5e1470f705e620eda26f881d627c5016c
[ "MIT" ]
233
2019-05-10T07:17:42.000Z
2022-03-30T09:24:16.000Z
lib/datasets/dataset_catalog.py
BarneyQiao/pcl.pytorch
4e0280e5e1470f705e620eda26f881d627c5016c
[ "MIT" ]
78
2019-05-10T21:10:47.000Z
2022-03-29T13:57:32.000Z
lib/datasets/dataset_catalog.py
BarneyQiao/pcl.pytorch
4e0280e5e1470f705e620eda26f881d627c5016c
[ "MIT" ]
57
2019-05-10T07:17:37.000Z
2022-03-24T04:43:24.000Z
# Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
29.746154
78
0.605379
bf1ee9086b57e9e853ba008e72e1a67bbfca0ff8
4,438
py
Python
benchmark/startQiskit_QC1048.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC1048.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC1048.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=51 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
32.394161
165
0.623704
51c3ef48c338f4fd5eaaa54d7c42c14c05ef93ee
7,950
py
Python
tools/perf/core/results_processor/command_line.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
76
2020-09-02T03:05:41.000Z
2022-03-30T04:40:55.000Z
tools/perf/core/results_processor/command_line.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
45
2020-09-02T03:21:37.000Z
2022-03-31T22:19:45.000Z
tools/perf/core/results_processor/command_line.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
8
2020-07-22T18:49:18.000Z
2022-02-08T10:27:16.000Z
# Copyright 2019 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. """Implements the interface of the results_processor module. Provides functions to parse command line arguments and process options. """ import argparse im...
38.592233
80
0.69673
da84c603ef3231977a96c020227ad4964a69345c
9,777
py
Python
build/builder/build-assist.py
zhoulhb/teleport
54da194697898ef77537cfe7032d774555dc1335
[ "Apache-2.0" ]
3
2019-02-18T09:14:37.000Z
2019-07-30T08:40:21.000Z
build/builder/build-assist.py
zhoulhb/teleport
54da194697898ef77537cfe7032d774555dc1335
[ "Apache-2.0" ]
null
null
null
build/builder/build-assist.py
zhoulhb/teleport
54da194697898ef77537cfe7032d774555dc1335
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from core import colorconsole as cc from core import utils from core.ver import * from core.context import * from core.env import env ctx = BuildContext() class BuilderBase: def __init__(self): self.out_dir = '' def build_exe(self): pass def bu...
41.782051
149
0.615935
2c31f439e5d1a4880464007ba2fe3ff47e96aaa7
455
py
Python
testproj/people/models.py
gdalmau/drf-yasg
acff90ac26eba01e363bfd3ecc75b71a6a37088a
[ "BSD-3-Clause" ]
65
2020-10-06T15:37:49.000Z
2022-02-24T05:18:28.000Z
testproj/people/models.py
gdalmau/drf-yasg
acff90ac26eba01e363bfd3ecc75b71a6a37088a
[ "BSD-3-Clause" ]
48
2020-10-07T11:14:40.000Z
2021-02-03T15:07:39.000Z
testproj/people/models.py
gdalmau/drf-yasg
acff90ac26eba01e363bfd3ecc75b71a6a37088a
[ "BSD-3-Clause" ]
4
2020-10-10T18:03:33.000Z
2020-10-23T07:56:34.000Z
from django.db import models from django.utils.safestring import mark_safe class Identity(models.Model): first_name = models.CharField(max_length=30, null=True) last_name = models.CharField( max_length=30, null=True, help_text=mark_safe("<strong>Here's some HTML!</strong>"), ) cl...
25.277778
66
0.696703
44885e97fba996d73ce0ac7c398d95e567adefc2
662
py
Python
Mundo 3/Exercicios/Desafio115/cadastro/ui/__init__.py
yWolfBR/Python-CursoEmVideo
17bab8ad3c4293daf8377c5d49242942845b3577
[ "MIT" ]
null
null
null
Mundo 3/Exercicios/Desafio115/cadastro/ui/__init__.py
yWolfBR/Python-CursoEmVideo
17bab8ad3c4293daf8377c5d49242942845b3577
[ "MIT" ]
null
null
null
Mundo 3/Exercicios/Desafio115/cadastro/ui/__init__.py
yWolfBR/Python-CursoEmVideo
17bab8ad3c4293daf8377c5d49242942845b3577
[ "MIT" ]
null
null
null
def showline(): return '-' * 50 def header(txt): print(f'{showline()}\n{txt:^50}\n{showline()}') def leiaint(txt): while True: try: n = int(input(txt)) except (ValueError, TypeError): print('ERRO! Digite um número inteiro válido!') except KeyboardInterrupt...
20.060606
59
0.542296
bb624269990a68189f4fef67b8b4425a7155e2d9
9,847
py
Python
inceptionv4.py
theroyakash/InceptionV4
ba21f3246503fe40343bea599ad5f94755fc1b65
[ "Apache-2.0" ]
null
null
null
inceptionv4.py
theroyakash/InceptionV4
ba21f3246503fe40343bea599ad5f94755fc1b65
[ "Apache-2.0" ]
null
null
null
inceptionv4.py
theroyakash/InceptionV4
ba21f3246503fe40343bea599ad5f94755fc1b65
[ "Apache-2.0" ]
null
null
null
''' Copyright 2020 TensorFlow Authors and theroyakash Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
32.391447
133
0.643242
d54673b297fc0493bc7cb50661d05eecdfcc3a7a
2,055
py
Python
inttests/channel_routes_test.py
andrew-boutin/dndtextapi
4af1af9b9424baf64f7f45db394467e8344ae21e
[ "RSA-MD" ]
3
2018-07-26T12:48:12.000Z
2018-08-16T01:00:05.000Z
inttests/channel_routes_test.py
andrew-boutin/dndtextapi
4af1af9b9424baf64f7f45db394467e8344ae21e
[ "RSA-MD" ]
null
null
null
inttests/channel_routes_test.py
andrew-boutin/dndtextapi
4af1af9b9424baf64f7f45db394467e8344ae21e
[ "RSA-MD" ]
null
null
null
# Copyright (C) 2018, Baking Bits Studios - All Rights Reserved import requests, json from base import TestBase # TODO: Created, Delete class TestChannelRoutes(TestBase): def setup_method(self, test_method): super(TestChannelRoutes, self).setup_method(test_method) self.url = f"{self.base}/channel...
41.938776
458
0.665693
4a515836d1175cb1ec0a8c559bb5981b822f8f76
3,111
py
Python
uncertainty_baselines/models/movielens.py
athon-millane/uncertainty-baselines
aa504fc51aac6d4cac47dbd34aa672c670dfbd28
[ "Apache-2.0" ]
2
2022-02-22T10:22:46.000Z
2022-03-09T09:22:41.000Z
uncertainty_baselines/models/movielens.py
PGM-Lab/2022-AISTATS-diversity
63df2e5f29cdaefe49626439bbe13289f37eed36
[ "Apache-2.0" ]
null
null
null
uncertainty_baselines/models/movielens.py
PGM-Lab/2022-AISTATS-diversity
63df2e5f29cdaefe49626439bbe13289f37eed36
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Uncertainty Baselines 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 ap...
36.6
115
0.738669
b6009e0f3bf594da238530174d55b94f3f898959
1,515
py
Python
mapproxy/template.py
gongzhengkun/mapproxy
3c6fd6d61aa95ddcc4e76a9a2b5dcf42f13d9f95
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/template.py
gongzhengkun/mapproxy
3c6fd6d61aa95ddcc4e76a9a2b5dcf42f13d9f95
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/template.py
gongzhengkun/mapproxy
3c6fd6d61aa95ddcc4e76a9a2b5dcf42f13d9f95
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# This file is part of the MapProxy project. # Copyright (C) 2010 Omniscale <http://omniscale.de> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
39.868421
99
0.712211
300fee021fbfe91811b33498b026b2b0cdb1033f
2,843
py
Python
sparklanes/_framework/spark.py
ksbg/sparklanes
0e5fc04a5de46f070213b64319ea6982e28e16da
[ "MIT" ]
15
2018-06-11T08:08:06.000Z
2022-03-26T00:11:38.000Z
sparklanes/_framework/spark.py
ksbg/pyspark-etl
0e5fc04a5de46f070213b64319ea6982e28e16da
[ "MIT" ]
10
2019-01-31T03:37:16.000Z
2021-06-01T22:29:02.000Z
sparklanes/_framework/spark.py
ksbg/pyspark-etl
0e5fc04a5de46f070213b64319ea6982e28e16da
[ "MIT" ]
6
2018-07-05T10:00:19.000Z
2019-10-13T13:40:52.000Z
"""Used to allow sharing of SparkContext and SparkSession, to avoid having to "getOrCreate" them again and again for each task. This way, they can just be imported and used right away.""" # pylint: disable=invalid-name,too-many-arguments from pyspark import SparkContext, PickleSerializer, BasicProfiler from pyspark.sql...
38.945205
102
0.679212
f9cd1cbf523d65394631a8c524ee17978f942137
29,034
py
Python
octavia/tests/functional/api/v2/test_flavor_profiles.py
mauroseb/octavia
8f032d884e0f89ac69d5b6e5f5b77d19ee6eb1d7
[ "Apache-2.0" ]
null
null
null
octavia/tests/functional/api/v2/test_flavor_profiles.py
mauroseb/octavia
8f032d884e0f89ac69d5b6e5f5b77d19ee6eb1d7
[ "Apache-2.0" ]
null
null
null
octavia/tests/functional/api/v2/test_flavor_profiles.py
mauroseb/octavia
8f032d884e0f89ac69d5b6e5f5b77d19ee6eb1d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Walmart Stores Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
49.886598
79
0.597644
3503a652c351bffd54f475a1937194144e327487
1,479
py
Python
skimage/transform/integral.py
odebeir/scikits-image
13b2170dfd3ee9065ba6d65f29ff37f6b3bf948e
[ "BSD-3-Clause" ]
8
2016-03-11T13:23:51.000Z
2021-12-19T10:43:26.000Z
skimage/transform/integral.py
odebeir/scikits-image
13b2170dfd3ee9065ba6d65f29ff37f6b3bf948e
[ "BSD-3-Clause" ]
5
2021-03-19T08:36:48.000Z
2022-01-13T01:52:34.000Z
skimage/transform/integral.py
odebeir/scikits-image
13b2170dfd3ee9065ba6d65f29ff37f6b3bf948e
[ "BSD-3-Clause" ]
4
2020-06-19T00:04:34.000Z
2021-02-23T07:24:00.000Z
import numpy as np def integral_image(x): """Integral image / summed area table. The integral image contains the sum of all elements above and to the left of it, i.e.: .. math:: S[m, n] = \sum_{i \leq m} \sum_{j \leq n} X[i, j] Parameters ---------- x : ndarray Input ima...
20.830986
72
0.529412
992154694fca84a12a87b45f9714c1c9d5ff7674
3,498
py
Python
articat/tests/utils.py
related-sciences/articat
76f6469484afc0525f5a9a3a418f28dd8e2a900b
[ "Apache-2.0" ]
2
2021-10-20T10:24:49.000Z
2021-12-01T01:53:30.000Z
articat/tests/utils.py
related-sciences/articat
76f6469484afc0525f5a9a3a418f28dd8e2a900b
[ "Apache-2.0" ]
21
2021-07-12T20:06:52.000Z
2022-02-08T21:48:08.000Z
articat/tests/utils.py
related-sciences/articat
76f6469484afc0525f5a9a3a418f28dd8e2a900b
[ "Apache-2.0" ]
null
null
null
import os from contextlib import contextmanager from datetime import date, timedelta from functools import lru_cache from random import shuffle from typing import TYPE_CHECKING, ClassVar, Iterator, Optional, Type, TypeVar import fsspec from google.cloud import datastore from articat.artifact import ID, Partition, Ver...
32.091743
78
0.670669
9a327b067a0d36d4754df4890de769bd8d78f2d8
2,335
py
Python
django_airavata/apps/auth/migrations/0008_auto_20210422_1838.py
akbranam/airavata-django-portal
2ba71a34af95b58ba225abb6d5ad1d969af92142
[ "Apache-2.0" ]
19
2017-09-04T00:36:52.000Z
2022-01-24T08:44:22.000Z
django_airavata/apps/auth/migrations/0008_auto_20210422_1838.py
akbranam/airavata-django-portal
2ba71a34af95b58ba225abb6d5ad1d969af92142
[ "Apache-2.0" ]
35
2017-10-17T02:36:01.000Z
2022-03-09T04:46:57.000Z
django_airavata/apps/auth/migrations/0008_auto_20210422_1838.py
akbranam/airavata-django-portal
2ba71a34af95b58ba225abb6d5ad1d969af92142
[ "Apache-2.0" ]
38
2017-09-15T14:17:42.000Z
2021-12-15T17:11:31.000Z
# Generated by Django 2.2.17 on 2021-04-22 18:38 import uuid import django.db.models.deletion from django.conf import settings from django.db import migrations, models from django_airavata.apps.auth.models import VERIFY_EMAIL_CHANGE_TEMPLATE def default_templates(apps, schema_editor): EmailTemplate = apps.get_...
38.916667
257
0.643255
b5b5826fc5f3a62d3a91b26bd49de9e2645ba626
2,396
py
Python
datagen/utilities/collectAreaAndDelay.py
animeshbchowdhury/OpenABC
140191680bbe7843b1407af5822b099421212cf1
[ "BSD-3-Clause" ]
18
2021-10-10T00:19:59.000Z
2022-03-22T01:24:58.000Z
datagen/utilities/collectAreaAndDelay.py
animeshbchowdhury/OpenABC
140191680bbe7843b1407af5822b099421212cf1
[ "BSD-3-Clause" ]
1
2021-12-22T19:37:33.000Z
2021-12-22T20:52:09.000Z
datagen/utilities/collectAreaAndDelay.py
animeshbchowdhury/OpenABC
140191680bbe7843b1407af5822b099421212cf1
[ "BSD-3-Clause" ]
1
2022-02-21T15:09:47.000Z
2022-02-21T15:09:47.000Z
import os,sys import re,argparse import os.path as osp designSet1 = ['i2c','spi','des3_area','ss_pcm','usb_phy','sasc','wb_dma','simple_spi'] designSet2 = ['dynamic_node','aes','pci','ac97_ctrl','mem_ctrl','tv80','fpu'] designSet3 = ['wb_conmax','tinyRocket','aes_xcrypt','aes_secworks'] designSet4 = ['jpeg','bp_be','e...
36.861538
119
0.702003
49ee95dd998d6a46a62aa0a68099b0ef80babadd
840
py
Python
talentmap_api/common/management/commands/create_base_permissions.py
MetaPhase-Consulting/State-TalentMAP-API
4e238cbfe241fd3d0a718a9a0fc038dbed00f13b
[ "CC0-1.0" ]
7
2018-10-17T15:13:05.000Z
2021-12-10T14:53:38.000Z
talentmap_api/common/management/commands/create_base_permissions.py
MetaPhase-Consulting/State-TalentMAP-API
4e238cbfe241fd3d0a718a9a0fc038dbed00f13b
[ "CC0-1.0" ]
208
2018-12-28T17:11:00.000Z
2022-03-29T18:47:23.000Z
talentmap_api/common/management/commands/create_base_permissions.py
MetaPhase-Consulting/State-TalentMAP-API
4e238cbfe241fd3d0a718a9a0fc038dbed00f13b
[ "CC0-1.0" ]
null
null
null
from django.core.management.base import BaseCommand import logging from django.contrib.auth.models import Group class Command(BaseCommand): help = 'Creates application-wide permissions and groups' logger = logging.getLogger(__name__) def __init__(self, *args, **kwargs): super(Command, self).__i...
26.25
64
0.578571
3e1b52c4b51dd8de73eb0dd715ad76752b3dbfef
603
py
Python
tensorhive/migrations/versions/58a12e45663e_add_hostname_column_to_the_resources_.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
129
2017-08-25T11:45:15.000Z
2022-03-29T05:11:25.000Z
tensorhive/migrations/versions/58a12e45663e_add_hostname_column_to_the_resources_.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
251
2017-07-27T10:05:58.000Z
2022-03-02T12:46:13.000Z
tensorhive/migrations/versions/58a12e45663e_add_hostname_column_to_the_resources_.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
20
2017-08-13T13:05:14.000Z
2022-03-19T02:21:37.000Z
"""Add hostname column to the resources table Revision ID: 58a12e45663e Revises: 06ce06e9bb85 Create Date: 2020-10-20 18:24:40.267394 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '58a12e45663e' down_revision = '06ce06e9bb85' branch_labels = None depends_on =...
22.333333
87
0.74461
ef9bd30b7501bb0dd13a1a0c38aad8fefc9664c2
1,610
py
Python
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/GetRecordOssUploadParamRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/GetRecordOssUploadParamRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/GetRecordOssUploadParamRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# 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 u...
36.590909
76
0.768323
3e257987a705a275fde7132f4219c8f8360e7356
602
py
Python
thecut/ordering/receivers.py
exemplarysoftware/thecut-ordering
7de68cd993e2a1833863c83d2f3edd34dae9571b
[ "Apache-2.0" ]
null
null
null
thecut/ordering/receivers.py
exemplarysoftware/thecut-ordering
7de68cd993e2a1833863c83d2f3edd34dae9571b
[ "Apache-2.0" ]
null
null
null
thecut/ordering/receivers.py
exemplarysoftware/thecut-ordering
7de68cd993e2a1833863c83d2f3edd34dae9571b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.db.models import Max def set_order(sender, instance, **kwargs): """If not set, determine and set the instance's order value.""" from .models import OrderMixin is_order_subclass = issubclass(instance.__class__, Or...
35.411765
73
0.694352
e3b286be06c7cdde074647e23434bbc9a31b0519
637
py
Python
tests/test_util.py
michaelrath-work/spojit
75b8c920a342ca9b7869b2fdd826f0b468482341
[ "MIT" ]
null
null
null
tests/test_util.py
michaelrath-work/spojit
75b8c920a342ca9b7869b2fdd826f0b468482341
[ "MIT" ]
null
null
null
tests/test_util.py
michaelrath-work/spojit
75b8c920a342ca9b7869b2fdd826f0b468482341
[ "MIT" ]
null
null
null
import pytest from spojit.util import date_time_to_timestamp from spojit.util import resource_similarity def test_date_time_to_timestamp(): assert 1497967200 == date_time_to_timestamp("2017-06-20T16:00:00Z") def test_resource_similarity(): assert pytest.approx(0.5, 0.01) == resource_similarity( ["a...
27.695652
82
0.616954
ed84901f3b1d1e91252a6f743abe5ddd8fab5dff
155
py
Python
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_MovingMedian_NoCycle_AR.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_MovingMedian_NoCycle_AR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_MovingMedian_NoCycle_AR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Quantization'] , ['MovingMedian'] , ['NoCycle'] , ['AR'] );
38.75
82
0.748387
aae53f91690d7960fdfa06cb9d005dc42e31a3a9
1,108
py
Python
twisted/conch/ssh/address.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/twisted/conch/ssh/address.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/twisted/conch/ssh/address.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
1
2018-11-07T12:52:07.000Z
2018-11-07T12:52:07.000Z
# -*- test-case-name: twisted.conch.test.test_address -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Address object for SSH network connections. Maintainer: Paul Swartz @since: 12.1 """ from zope.interface import implementer from twisted.internet.interfaces import IAddress from twi...
23.574468
75
0.714801
c1ded32814009c4305b6ef7c8e51b7e7ba989304
247
py
Python
000-025/p003/inle/inle_2.py
CDL-Project-Euler/Solutions
2a31ff286b9bbe7a9cd97539da5ce9091c1123d8
[ "MIT" ]
3
2020-05-09T17:48:49.000Z
2021-10-09T06:45:41.000Z
000-025/p003/inle/inle_2.py
CDL-Project-Euler/solutions
2a31ff286b9bbe7a9cd97539da5ce9091c1123d8
[ "MIT" ]
null
null
null
000-025/p003/inle/inle_2.py
CDL-Project-Euler/solutions
2a31ff286b9bbe7a9cd97539da5ce9091c1123d8
[ "MIT" ]
null
null
null
def largest_prime_factor(num, prev_max = 2): for pos_fact in range(prev_max, num): if num % pos_fact == 0: return largest_prime_factor(int(num / pos_fact), pos_fact) return num print(largest_prime_factor(600851475143))
35.285714
70
0.696356
0c158d47cfa3b98e76b6fbd8861f96500d300d02
134,381
py
Python
pandas/core/indexes/multi.py
rth/pandas
fd151ba5a873ecf6392897f722abfdfae915303e
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-08-30T15:26:32.000Z
2021-08-30T15:26:32.000Z
pandas/core/indexes/multi.py
rth/pandas
fd151ba5a873ecf6392897f722abfdfae915303e
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-09-05T22:23:43.000Z
2021-09-07T01:54:50.000Z
pandas/core/indexes/multi.py
rth/pandas
fd151ba5a873ecf6392897f722abfdfae915303e
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from functools import wraps from sys import getsizeof from typing import ( TYPE_CHECKING, Any, Callable, Collection, Hashable, Iterable, List, Sequence, Tuple, cast, ) import warnings import numpy as np from pandas._config import get_option ...
34.359755
88
0.533148
a483ede61a9cc7a58b855d8bc24488c21b9c7142
194
py
Python
tomaty/lib/utilities/date_utilities.py
nucle0tides/tomaty
45eb0475f9e9635a6aa2fe41606e4d2fb6403101
[ "MIT" ]
5
2018-03-29T16:27:36.000Z
2020-06-14T15:19:19.000Z
tomaty/lib/utilities/date_utilities.py
nucle0tides/tomaty
45eb0475f9e9635a6aa2fe41606e4d2fb6403101
[ "MIT" ]
29
2018-03-29T16:29:43.000Z
2018-04-24T02:03:13.000Z
tomaty/lib/utilities/date_utilities.py
nucle0tides/tomaty
45eb0475f9e9635a6aa2fe41606e4d2fb6403101
[ "MIT" ]
2
2018-03-29T16:27:39.000Z
2018-03-29T20:42:03.000Z
from datetime import timedelta, datetime def string_to_timedelta(datestr): t = datetime.strptime(datestr, '%H:%M:%S') return timedelta(hours=t.hour, minutes=t.minute, seconds=t.second)
32.333333
70
0.742268
b1de9ec75221cc1a4a1a4719d1bdec58a6cc349b
917
py
Python
tests/python/contrib/test_hexagon/test_relax_integration.py
octoml/relax
41f14415ba28d62e155b75ea2c740b25213a9970
[ "Apache-2.0" ]
11
2021-11-02T00:49:16.000Z
2021-11-19T02:17:00.000Z
tests/python/contrib/test_hexagon/test_relax_integration.py
octoml/relax
41f14415ba28d62e155b75ea2c740b25213a9970
[ "Apache-2.0" ]
16
2021-11-02T00:17:12.000Z
2021-11-21T20:47:52.000Z
tests/python/contrib/test_hexagon/test_relax_integration.py
octoml/relax
41f14415ba28d62e155b75ea2c740b25213a9970
[ "Apache-2.0" ]
4
2021-11-05T18:17:23.000Z
2021-11-11T06:22:00.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 u...
32.75
62
0.762268
2249eabccebce6f55538df48e6f4d43054666f25
580
py
Python
build/wiimote_state_estimation/catkin_generated/pkg.develspace.context.pc.py
odinase/roswiimote
b3a9b4c18a1598f8cf4399e038d1cddd06954063
[ "MIT" ]
null
null
null
build/wiimote_state_estimation/catkin_generated/pkg.develspace.context.pc.py
odinase/roswiimote
b3a9b4c18a1598f8cf4399e038d1cddd06954063
[ "MIT" ]
null
null
null
build/wiimote_state_estimation/catkin_generated/pkg.develspace.context.pc.py
odinase/roswiimote
b3a9b4c18a1598f8cf4399e038d1cddd06954063
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/odin/ros_testing/roswiimote/src/wiimote_state_estimation/include".split(';') if "/home/odin/ros_testing/roswiimote/src/wiimote_state_estimation/include" != "" else [] PROJECT_CATKIN_DEPENDS = "me...
64.444444
207
0.77931
588a39493e74947f33f29aab4a6a3325dd634be6
4,572
py
Python
moocng/api/validation.py
OpenMOOC/moocng
1e3dafb84aa1838c881df0c9bcca069e47c7f52d
[ "Apache-2.0" ]
36
2015-01-10T06:00:36.000Z
2020-03-19T10:06:59.000Z
moocng/api/validation.py
OpenMOOC/moocng
1e3dafb84aa1838c881df0c9bcca069e47c7f52d
[ "Apache-2.0" ]
3
2015-10-01T17:59:32.000Z
2018-09-04T03:32:17.000Z
moocng/api/validation.py
OpenMOOC/moocng
1e3dafb84aa1838c881df0c9bcca069e47c7f52d
[ "Apache-2.0" ]
17
2015-01-13T03:46:58.000Z
2020-07-05T06:29:51.000Z
# -*- coding: utf-8 -*- # Copyright 2012-2013 UNED # # 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 a...
35.44186
102
0.617892
bcc3b7039c50d47b9d7189eb36868a920c150ea4
20,305
py
Python
active_subspaces/domains.py
carlosal1015/active_subspaces
caaf108fcb89548a374fea7704b0d92d38b4539a
[ "MIT" ]
1
2020-03-16T18:05:05.000Z
2020-03-16T18:05:05.000Z
active_subspaces/domains.py
carlosal1015/active_subspaces
caaf108fcb89548a374fea7704b0d92d38b4539a
[ "MIT" ]
null
null
null
active_subspaces/domains.py
carlosal1015/active_subspaces
caaf108fcb89548a374fea7704b0d92d38b4539a
[ "MIT" ]
1
2020-03-16T18:05:09.000Z
2020-03-16T18:05:09.000Z
"""Utilities for building the domains and maps for active variables.""" import numpy as np import logging from utils.misc import process_inputs, BoundedNormalizer from scipy.spatial import ConvexHull from scipy.misc import comb from utils.qp_solver import QPSolver from subspaces import Subspaces class ActiveVariableDo...
32.802908
139
0.611918
6d76e5ff0e17889908d0167a4c701c5a35efa948
5,798
py
Python
spec/clean/wrapper_spec.py
slavad/py-series-clean
2a7cbd0cec1a46374e49eae79e6a88afb31ca54a
[ "MIT" ]
null
null
null
spec/clean/wrapper_spec.py
slavad/py-series-clean
2a7cbd0cec1a46374e49eae79e6a88afb31ca54a
[ "MIT" ]
null
null
null
spec/clean/wrapper_spec.py
slavad/py-series-clean
2a7cbd0cec1a46374e49eae79e6a88afb31ca54a
[ "MIT" ]
null
null
null
from spec.spec_helper import * import clean.wrapper as wrp with description(wrp.Wrapper) as self: with before.all: self.use_aver = False self.round_precision = 10 self.khi = 4 self.detection_treshold = 0.3 self.harmonic_share = 0.5 self.max_iterations = 10 se...
44.945736
106
0.600552
82de6fe2d00868a8647723b5969818dda0271144
6,235
py
Python
software/utils/run_covent_tests.py
dheater/Ventilator
f10c03805f8907683ee91e1da0fd82088b028563
[ "Apache-2.0" ]
null
null
null
software/utils/run_covent_tests.py
dheater/Ventilator
f10c03805f8907683ee91e1da0fd82088b028563
[ "Apache-2.0" ]
null
null
null
software/utils/run_covent_tests.py
dheater/Ventilator
f10c03805f8907683ee91e1da0fd82088b028563
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Wrapper around controller_debug.py that runs all of the covent tests in a row and packages them into a standard, sharable format. """ from datetime import date from pathlib import Path import argparse import atexit import math import os import subprocess import time import sys import shlex ...
31.489899
88
0.636568
d1407978d93c3aa875c8f532333b9189b1020197
48,603
py
Python
python/ccxt/bitfinex.py
machenjie/ccxt
fb18393cdf893dba62eab7838040fb9cec7f10fd
[ "MIT" ]
1
2021-07-07T14:56:56.000Z
2021-07-07T14:56:56.000Z
python/ccxt/bitfinex.py
machenjie/ccxt
fb18393cdf893dba62eab7838040fb9cec7f10fd
[ "MIT" ]
1
2022-03-05T13:29:47.000Z
2022-03-05T15:00:38.000Z
python/ccxt/bitfinex.py
machenjie/ccxt
fb18393cdf893dba62eab7838040fb9cec7f10fd
[ "MIT" ]
1
2021-11-30T11:30:35.000Z
2021-11-30T11:30:35.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import ...
40.401496
426
0.456968
88566ac20266e896964e385e3e424097743bffdd
4,933
py
Python
abm/dda-mesa/dda-mesa/agent.py
nickmalleson/surf
d6b8abb75635ac0fbadb445e67fc50ccb8b19945
[ "MIT" ]
3
2018-09-15T03:16:33.000Z
2020-07-11T00:50:39.000Z
abm/dda-mesa/dda-mesa/agent.py
nickmalleson/surf
d6b8abb75635ac0fbadb445e67fc50ccb8b19945
[ "MIT" ]
null
null
null
abm/dda-mesa/dda-mesa/agent.py
nickmalleson/surf
d6b8abb75635ac0fbadb445e67fc50ccb8b19945
[ "MIT" ]
10
2016-08-25T13:38:57.000Z
2021-02-01T10:20:01.000Z
from mesa import Agent import random class DDAAgent(Agent): """Default DDA agent""" def __init__(self, unique_id, model): """Initialise an agent with a unique_id and a reference to the model""" super().__init__(unique_id, model) # Agents need a state - this will be set by the model w...
41.805085
108
0.62538
5da9fa0411f97f9e5a4e175a9c22d85cf83c4088
6,030
py
Python
tccli/services/habo/habo_client.py
zqfan/tencentcloud-cli
b6ad9fced2a2b340087e4e5522121d405f68b615
[ "Apache-2.0" ]
null
null
null
tccli/services/habo/habo_client.py
zqfan/tencentcloud-cli
b6ad9fced2a2b340087e4e5522121d405f68b615
[ "Apache-2.0" ]
null
null
null
tccli/services/habo/habo_client.py
zqfan/tencentcloud-cli
b6ad9fced2a2b340087e4e5522121d405f68b615
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import json import tccli.options_define as OptionsDefine import tccli.format_output as FormatOutput from tccli import __version__ from tccli.utils import Utils from tccli.exceptions import ConfigurationError from tencentcloud.common import credential from tencentcloud.common.profile.ht...
36.993865
105
0.696849
60f82d75d1c71227b9c9d63fa12af51e571b9f33
3,045
py
Python
seqcluster/libs/table.py
kkarolis/seqcluster
774e23add8cd4fdc83d626cea3bd1f458e7d060d
[ "MIT" ]
33
2015-01-26T23:18:01.000Z
2022-01-07T21:40:49.000Z
seqcluster/libs/table.py
kkarolis/seqcluster
774e23add8cd4fdc83d626cea3bd1f458e7d060d
[ "MIT" ]
44
2015-01-21T17:43:42.000Z
2021-08-25T15:49:18.000Z
seqcluster/libs/table.py
kkarolis/seqcluster
774e23add8cd4fdc83d626cea3bd1f458e7d060d
[ "MIT" ]
18
2015-05-18T15:34:32.000Z
2021-02-10T17:58:24.000Z
from seqcluster.libs.seqviz import seqviz START1= '''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>clusters information</title> <style type="text/css" title="currentStyle"> @import ".....
29
210
0.658456
d8698eb6f4a5c4caa030663f996926a1f91653e9
5,255
py
Python
uav.py
ashishkishor/Internet-of-Things-IOT-
1cfd9f4890ee39111f1a1610e45c378299e30698
[ "MIT" ]
null
null
null
uav.py
ashishkishor/Internet-of-Things-IOT-
1cfd9f4890ee39111f1a1610e45c378299e30698
[ "MIT" ]
null
null
null
uav.py
ashishkishor/Internet-of-Things-IOT-
1cfd9f4890ee39111f1a1610e45c378299e30698
[ "MIT" ]
null
null
null
import paho.mqtt.client as mqttClient import time import random import math import sys import json #importing all the libraries all_data=[] #to store preferences of individual UAV in list ls=[] #to know how many vehicle are left to get picked in case of ties all_clients = [] #all UAV list uav_location=[] ...
31.848485
108
0.618649
ed22a40875a7bcb48174eea7fe92f2b936a35ac3
8,389
py
Python
MiGRIDS/Model/Controls/genSchedule0.py
mmuellerstoffels/GBSTools
aebd8aa6667a2284aaa16424f9b9d22ca3a2a375
[ "MIT" ]
8
2019-02-18T14:18:55.000Z
2022-03-04T12:34:24.000Z
MiGRIDS/Model/Controls/genSchedule0.py
mmuellerstoffels/GBSTools
aebd8aa6667a2284aaa16424f9b9d22ca3a2a375
[ "MIT" ]
3
2019-02-13T09:42:08.000Z
2019-05-10T16:59:02.000Z
MiGRIDS/Model/Controls/genSchedule0.py
acep-uaf/GBSTools
aebd8aa6667a2284aaa16424f9b9d22ca3a2a375
[ "MIT" ]
3
2019-06-10T19:49:22.000Z
2021-05-08T08:42:57.000Z
# Project: GBS Tool # Author: Jeremy VanderMeer, jbvandermeer@alaska.edu, Alaska Center for Energy and Power # Date: October 1, 2018 # License: MIT License (see LICENSE file of this package for more information) # imports import numpy as np class genSchedule: def __init__(self,args): # whether to try to ...
61.683824
204
0.669448
cbb79b1d910487205f22699a6b71e2116eae054e
55,158
py
Python
main.py
AntonioRochaAZ/ProcessEngineering
ce3bf779c20b5c7c190d5c1418ae299c0b5a17b1
[ "MIT" ]
null
null
null
main.py
AntonioRochaAZ/ProcessEngineering
ce3bf779c20b5c7c190d5c1418ae299c0b5a17b1
[ "MIT" ]
null
null
null
main.py
AntonioRochaAZ/ProcessEngineering
ce3bf779c20b5c7c190d5c1418ae299c0b5a17b1
[ "MIT" ]
1
2022-01-08T01:13:49.000Z
2022-01-08T01:13:49.000Z
### ALGORITMO DE ORDENAÇÃO DE EQUAÇÕES from warnings import warn import inspect import numpy as np import matplotlib.pyplot as plt from typing import Tuple, Callable, Union, Dict, Generator import networkx as nx # TODO: Make it so that we cannot have two equipments or streams with the same name # Also, add a few deta...
35.585806
105
0.538906
7930134972a27ddb372f9b29206b46d022e175d6
3,985
py
Python
src/cobra/templatetags/helper_tags.py
lyoniionly/django-cobra
2427e5cf74b7739115b1224da3306986b3ee345c
[ "Apache-2.0" ]
1
2015-01-27T08:56:46.000Z
2015-01-27T08:56:46.000Z
src/cobra/templatetags/helper_tags.py
lyoniionly/django-cobra
2427e5cf74b7739115b1224da3306986b3ee345c
[ "Apache-2.0" ]
null
null
null
src/cobra/templatetags/helper_tags.py
lyoniionly/django-cobra
2427e5cf74b7739115b1224da3306986b3ee345c
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import six from datetime import timedelta from django import template from django.conf import settings from django.utils import timezone from django.utils.translation import ugettext as _, get_language from cobra.core.javascript import to_json from cobra.core.loading import get...
29.962406
109
0.677541
bb134329973bfa0d6a1f2685165d0cd29ba44759
1,038
py
Python
Utils.py
YungRAW/ComputerScienceLicense---PlagiarismChecker
411199d4d8cb33dbeebc0f204c46d74c976fb9cd
[ "MIT" ]
10
2020-06-29T13:18:22.000Z
2021-07-29T02:19:54.000Z
Utils.py
YungRAW/ComputerScienceLicense---PlagiarismChecker
411199d4d8cb33dbeebc0f204c46d74c976fb9cd
[ "MIT" ]
1
2020-08-20T17:29:31.000Z
2020-08-20T19:43:12.000Z
Utils.py
YungRAW/ComputerScienceLicense---PlagiarismChecker
411199d4d8cb33dbeebc0f204c46d74c976fb9cd
[ "MIT" ]
2
2021-08-24T18:57:20.000Z
2022-02-17T00:31:02.000Z
import re def split_text_max_words(lines, max_words): sentences = [] for line in lines: splits = re.finditer("\. [A-Z]|\.\n", line) last_split_idx = 0 for split in splits: sentence = line[last_split_idx: split.start() + 1] if(len(sentence.split(" ")) >= 5): ...
34.6
80
0.570328
0c51ba6c79548338d911c506b0cadf274268e327
3,102
py
Python
src/protean/core/command_handler.py
mpsiva89/protean
315fa56da3f64178bbbf0edf1995af46d5eb3da7
[ "BSD-3-Clause" ]
null
null
null
src/protean/core/command_handler.py
mpsiva89/protean
315fa56da3f64178bbbf0edf1995af46d5eb3da7
[ "BSD-3-Clause" ]
null
null
null
src/protean/core/command_handler.py
mpsiva89/protean
315fa56da3f64178bbbf0edf1995af46d5eb3da7
[ "BSD-3-Clause" ]
null
null
null
import inspect from protean.container import Element, OptionsMixin from protean.core.command import BaseCommand from protean.exceptions import IncorrectUsageError, NotSupportedError from protean.utils import DomainObjects, derive_element_class, fully_qualified_name from protean.utils.mixins import HandlerMixin class...
39.769231
104
0.618956
6e4269d20691bbcaf70cd315b27ff53c65700a19
2,161
py
Python
core/windows.py
9526xu/wenda-helper
ee61f480da42002f53345529d0c37f6fb122a3a2
[ "MIT" ]
2
2019-12-13T06:31:38.000Z
2020-03-17T07:20:57.000Z
core/windows.py
9526xu/wenda-helper
ee61f480da42002f53345529d0c37f6fb122a3a2
[ "MIT" ]
5
2021-03-18T20:24:53.000Z
2022-01-13T00:42:04.000Z
core/windows.py
9526xu/wenda-helper
ee61f480da42002f53345529d0c37f6fb122a3a2
[ "MIT" ]
3
2018-03-15T05:25:38.000Z
2020-10-13T04:09:11.000Z
# -*- coding: utf-8 -*- """ capture the VM screen then use hanwang text recognize the text then use baidu to search answer """ import ctypes import os import time import win32gui import win32com.client import win32con from PIL import Image, ImageGrab class RECT(ctypes.Structure): _fields_ = [('le...
25.72619
89
0.649236
e809fa3da29481d331bcc8c16cfde7a471689892
2,082
py
Python
controllers/tests/benchmark/benchmark.py
neuroailab/magnebot
3f537fcd95685efeadf7200208a310a4c6a2f10c
[ "MIT" ]
null
null
null
controllers/tests/benchmark/benchmark.py
neuroailab/magnebot
3f537fcd95685efeadf7200208a310a4c6a2f10c
[ "MIT" ]
null
null
null
controllers/tests/benchmark/benchmark.py
neuroailab/magnebot
3f537fcd95685efeadf7200208a310a4c6a2f10c
[ "MIT" ]
null
null
null
from typing import List from time import time from magnebot.test_controller import TestController class Benchmark(TestController): """ Run simple benchmarks for the average speed of an action. In an actual use-case, the action will usually be somewhat slower because of the complexity of the scene. ""...
27.76
109
0.561479