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
0204e01e045e7b7fbab8d194c09dac65e63c87ef
786
py
Python
Algorithms/pca.py
cody343960591/Evaluation-of-Data-Compression
d4aa87c83068b6e7e8622735d2ba1ae74543587d
[ "MIT" ]
1
2019-02-22T09:29:07.000Z
2019-02-22T09:29:07.000Z
Algorithms/pca.py
cody343960591/Evaluation-of-Data-Compression
d4aa87c83068b6e7e8622735d2ba1ae74543587d
[ "MIT" ]
null
null
null
Algorithms/pca.py
cody343960591/Evaluation-of-Data-Compression
d4aa87c83068b6e7e8622735d2ba1ae74543587d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' # Created on Feb-24-19 22:06 # pca.py # @author: Cody Xu ''' import pandas as pd def pca(df, num, **kw): max_value = df.max()[0] min_value = df.min()[0] window_size = int(kw['algorithm_param']['PCA']['window_size']) dl_out = [] loc = 0 while...
26.2
71
0.557252
76730965df72ab821113fc30b8bf29e7ba77e841
4,462
py
Python
function/handler.py
locational/fn-prevalence-predictor
d4df1dbf647c4fdfdc4f50b28f216e938c74c598
[ "MIT" ]
null
null
null
function/handler.py
locational/fn-prevalence-predictor
d4df1dbf647c4fdfdc4f50b28f216e938c74c598
[ "MIT" ]
1
2021-05-07T07:18:03.000Z
2021-05-07T07:18:03.000Z
function/handler.py
locational/fn-prevalence-predictor
d4df1dbf647c4fdfdc4f50b28f216e938c74c598
[ "MIT" ]
null
null
null
import json import sys import uuid import numpy as np import pandas as pd import geopandas as gp import requests import disarm_gears def run_function(params: dict): # # 1. Handle input # # Set random seed np.random.seed(1000) layer_names = params.get('layer_names') exceedance_threshold ...
39.140351
149
0.676154
e91791965c7dc979ff4bab7a75213b5a0c7c486b
940
py
Python
dbonconflict.py
InNolanFun/PyqueryLianjia
ad4ffddc0755b978e30b1b3501cc068d5950e7c3
[ "Apache-2.0" ]
null
null
null
dbonconflict.py
InNolanFun/PyqueryLianjia
ad4ffddc0755b978e30b1b3501cc068d5950e7c3
[ "Apache-2.0" ]
null
null
null
dbonconflict.py
InNolanFun/PyqueryLianjia
ad4ffddc0755b978e30b1b3501cc068d5950e7c3
[ "Apache-2.0" ]
null
null
null
import localdb def main(): tablename = 'testtable' localdb.createdb(tablename) ls = list() for i in range(10): detail_dict = dict() # 单价 detail_dict['unit_price'] = 'unit_price{}'.format(i) # 总价 detail_dict['all_price'] = 'all_price{}'.format(i) # 标题 ...
26.111111
60
0.541489
22076fc0725199e85404a230dff0917b885eb9fd
1,111
py
Python
FlaskApp/app/views.py
matthewzhou/TopicMatch
d6bdcb26d25129c730487710657cefb02a0c6d02
[ "MIT" ]
5
2018-07-23T19:12:27.000Z
2020-05-06T16:28:45.000Z
FlaskApp/app/views.py
matthewzhou/TopicMatch
d6bdcb26d25129c730487710657cefb02a0c6d02
[ "MIT" ]
null
null
null
FlaskApp/app/views.py
matthewzhou/TopicMatch
d6bdcb26d25129c730487710657cefb02a0c6d02
[ "MIT" ]
1
2020-05-06T10:37:04.000Z
2020-05-06T10:37:04.000Z
from app import app from flask import Flask, jsonify, render_template, request, redirect import time, math from kafka import KafkaConsumer, KafkaClient @app.route('/_timeseries') def timeseries(): """Retrieve time series for currKey""" cumulative = [] hashtags = [] count = 0 consumer = KafkaConsum...
30.861111
120
0.689469
7455936e5beaf01bd772e5c627d6a1366e8a8594
1,949
py
Python
utils/scripts/OOOlevelGen/src/sprites/SpikeyBuddy.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
utils/scripts/OOOlevelGen/src/sprites/SpikeyBuddy.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
utils/scripts/OOOlevelGen/src/sprites/SpikeyBuddy.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
import PhysicsMixin import ID BODIES = """ <dict> <key>body</key> <dict> <key>x</key> <integer>%(x)s</integer> <key>y</key> <integer>%(y)s</integer> <key>width</key> <integer>%(width)s</integer> <key>height</key> <integer>%(height)s</integer> <key>firstFrame</key>...
23.481928
76
0.533607
b0b5719f252b9cd892210a161e3e8fb1e8004200
10,877
py
Python
deepctr/models/sequence/dien.py
dzzxjl/DeepCTR
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
[ "Apache-2.0" ]
6,192
2017-12-05T03:02:35.000Z
2022-03-31T20:59:30.000Z
deepctr/models/sequence/dien.py
dzzxjl/DeepCTR
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
[ "Apache-2.0" ]
362
2018-04-15T06:53:20.000Z
2022-03-21T15:03:02.000Z
deepctr/models/sequence/dien.py
dzzxjl/DeepCTR
ec3fa832865c14aa2cc843be2b1eab1bfa7b3e4e
[ "Apache-2.0" ]
1,960
2017-12-05T03:16:04.000Z
2022-03-31T06:37:00.000Z
# -*- coding:utf-8 -*- """ Author: Weichen Shen, weichenswc@163.com Reference: [1] Zhou G, Mou N, Fan Y, et al. Deep Interest Evolution Network for Click-Through Rate Prediction[J]. arXiv preprint arXiv:1809.03672, 2018. (https://arxiv.org/pdf/1809.03672.pdf) """ import tensorflow as tf from tensorflow.python...
49.666667
184
0.674818
4c6601ccab910a790b2de29c0fc35a4c7888f03a
5,944
py
Python
landsat/landsat_cli.py
kclosu/Landsat578
a38127f19fbf510a9d4bb6670ae1f849ed6cffde
[ "Apache-2.0" ]
58
2017-04-28T09:40:12.000Z
2022-01-05T08:48:26.000Z
landsat/landsat_cli.py
kclosu/Landsat578
a38127f19fbf510a9d4bb6670ae1f849ed6cffde
[ "Apache-2.0" ]
30
2017-04-28T21:19:30.000Z
2021-12-13T19:44:17.000Z
landsat/landsat_cli.py
kclosu/Landsat578
a38127f19fbf510a9d4bb6670ae1f849ed6cffde
[ "Apache-2.0" ]
28
2017-05-25T18:24:28.000Z
2021-09-24T19:46:24.000Z
#!/usr/bin/env python # =============================================================================== # Copyright 2017 dgketchum # # 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://w...
34.964706
119
0.584287
c8ad6b0fc0d11152dbe1a4f6cc2e6c9bb72ce455
2,033
py
Python
userbot/modules/webupload.py
PratyakshM/DirtyBlack_EXTENDED
d842013d969c9ca57c640a944fc3e8b23f1eb68a
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-03-22T11:40:54.000Z
2021-03-22T11:40:54.000Z
userbot/modules/webupload.py
PratyakshM/DirtyBlack_EXTENDED
d842013d969c9ca57c640a944fc3e8b23f1eb68a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/webupload.py
PratyakshM/DirtyBlack_EXTENDED
d842013d969c9ca57c640a944fc3e8b23f1eb68a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
from telethon import events import subprocess import os from telethon.errors import MessageEmptyError, MessageTooLongError, MessageNotModifiedError import io import asyncio import time from userbot import CMD_HELP from userbot.events import register @register(pattern="^.webupload ?(.+?|) (?:--)(anonfiles|transfer|file...
52.128205
569
0.691097
1166259a0ba644ee776547a06c19a450da465254
6,539
py
Python
env/Lib/site-packages/OpenGL/raw/GL/VERSION/GL_3_1.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/raw/GL/VERSION/GL_3_1.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/raw/GL/VERSION/GL_3_1.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import ctypes _...
54.491667
111
0.866187
ceedab0ad5a31516210658f265214b59c5d304bb
34,507
py
Python
tests/nightly/test_large_vector.py
litaotju/incubator-mxnet
83b28911cbc4a49521c69d8c4330a7234436b2fa
[ "Apache-2.0" ]
null
null
null
tests/nightly/test_large_vector.py
litaotju/incubator-mxnet
83b28911cbc4a49521c69d8c4330a7234436b2fa
[ "Apache-2.0" ]
null
null
null
tests/nightly/test_large_vector.py
litaotju/incubator-mxnet
83b28911cbc4a49521c69d8c4330a7234436b2fa
[ "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...
32.646168
119
0.558843
b5c799d7c4e219b740d8e429ce56bd0c958d7066
16,678
py
Python
addons/purchase_mrp/tests/test_purchase_mrp_flow.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/purchase_mrp/tests/test_purchase_mrp_flow.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/purchase_mrp/tests/test_purchase_mrp_flow.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests.common import Form, TransactionCase from odoo.tests import Form class TestSaleMrpFlow(TransactionCase): def setUp(self): super(TestSaleMrpFlow, self).setUp() # Useful models ...
40.480583
123
0.586701
62be6027e7585b38a5b0f05ca10a744127759863
298
py
Python
python-modules/twisted/twisted/plugins/twisted_telnet.py
stormtheh4ck3r/python-for-android
b9ea9161392f60566b81482b1e25cd77004d5c45
[ "Apache-2.0" ]
267
2015-03-22T15:23:48.000Z
2022-03-05T21:57:34.000Z
python-modules/twisted/twisted/plugins/twisted_telnet.py
stormtheh4ck3r/python-for-android
b9ea9161392f60566b81482b1e25cd77004d5c45
[ "Apache-2.0" ]
133
2015-03-21T15:13:43.000Z
2021-12-11T23:37:58.000Z
python-modules/twisted/twisted/plugins/twisted_telnet.py
stormtheh4ck3r/python-for-android
b9ea9161392f60566b81482b1e25cd77004d5c45
[ "Apache-2.0" ]
119
2015-04-28T16:07:10.000Z
2022-03-18T03:49:48.000Z
# Copyright (c) 2001-2008 Twisted Matrix Laboratories. # See LICENSE for details. from twisted.application.service import ServiceMaker TwistedTelnet = ServiceMaker( "Twisted Telnet Shell Server", "twisted.tap.telnet", "A simple, telnet-based remote debugging service.", "telnet")
27.090909
55
0.741611
de25301d6dd14b2e0ebeab58a90f24bb227783fc
522
py
Python
graphs/graph_matrix.py
joeyzhou85/python
9c0cbe33076a570a3c02825b7c6d9866a760e777
[ "MIT" ]
1,568
2019-04-25T11:54:45.000Z
2022-03-31T23:35:23.000Z
graphs/graph_matrix.py
joeyzhou85/python
9c0cbe33076a570a3c02825b7c6d9866a760e777
[ "MIT" ]
58
2019-02-20T10:45:50.000Z
2020-09-30T12:18:45.000Z
graphs/graph_matrix.py
joeyzhou85/python
9c0cbe33076a570a3c02825b7c6d9866a760e777
[ "MIT" ]
464
2019-04-17T04:57:16.000Z
2022-03-31T04:12:57.000Z
from __future__ import print_function class Graph: def __init__(self, vertex): self.vertex = vertex self.graph = [[0] * vertex for i in range(vertex) ] def add_edge(self, u, v): self.graph[u - 1][v - 1] = 1 self.graph[v - 1][u - 1] = 1 def show(self): for i in s...
15.818182
59
0.52682
aac850197673fe0ff3c3f02829c44f7a502eb98c
8,423
py
Python
tests/test_tf_model.py
NREL/phygnn
3a508ccd3efda66e851d418f9f4eda319d58a947
[ "BSD-3-Clause" ]
41
2020-08-20T17:05:00.000Z
2022-03-04T12:23:50.000Z
tests/test_tf_model.py
NREL/phygnn
3a508ccd3efda66e851d418f9f4eda319d58a947
[ "BSD-3-Clause" ]
19
2020-08-24T17:14:04.000Z
2022-03-28T22:37:15.000Z
tests/test_tf_model.py
NREL/phygnn
3a508ccd3efda66e851d418f9f4eda319d58a947
[ "BSD-3-Clause" ]
11
2020-09-24T16:54:17.000Z
2022-02-15T00:07:58.000Z
""" Tests for basic tensorflow model functionality and execution. """ # pylint: disable=W0613 import numpy as np import os import pandas as pd import pytest import tempfile from phygnn.utilities import TF2 from phygnn.model_interfaces.tf_model import TfModel TfModel.seed(0) if TF2: mae_key = 'val_mae' else: ...
37.435556
79
0.560964
a2c1f387fbccbf427bba3450e53e87296add5c4d
10,839
py
Python
8_pytorch_rfbnet/lib/data/coco.py
Het-Shah/Monk_Object_Detection
1d7a07193ea3455221caa41d07c33c81d50c6b3f
[ "Apache-2.0" ]
15
2020-05-08T09:22:23.000Z
2022-01-10T19:13:16.000Z
8_pytorch_rfbnet/lib/data/coco.py
nathnim/Monk_Object_Detection
1d7a07193ea3455221caa41d07c33c81d50c6b3f
[ "Apache-2.0" ]
11
2021-06-08T21:23:31.000Z
2022-03-12T00:25:55.000Z
8_pytorch_rfbnet/lib/data/coco.py
nathnim/Monk_Object_Detection
1d7a07193ea3455221caa41d07c33c81d50c6b3f
[ "Apache-2.0" ]
18
2020-05-05T14:04:45.000Z
2021-10-30T12:02:17.000Z
"""VOC Dataset Classes Original author: Francisco Massa https://github.com/fmassa/vision/blob/voc_dataset/torchvision/datasets/voc.py Updated by: Ellis Brown, Max deGroot """ import os import pickle import os.path import sys import torch import torch.utils.data as data import torchvision.transforms as transforms imp...
36.372483
102
0.57819
adfc2718afc1bd5f0057e5ca73ec46815a89e6b5
19,300
py
Python
lib/galaxy/authnz/psa_authnz.py
corburn/galaxy
850d483bf260cba969ddb21de2f5404c15e09d1c
[ "CC-BY-3.0" ]
2
2017-03-28T12:11:41.000Z
2017-04-22T02:58:25.000Z
lib/galaxy/authnz/psa_authnz.py
bioinfo1992/galaxy
46690eb76f3a1987ea2ac5ff0d3386177cf2154f
[ "CC-BY-3.0" ]
1
2019-08-19T15:24:17.000Z
2019-08-19T15:24:17.000Z
lib/galaxy/authnz/psa_authnz.py
bioinfo1992/galaxy
46690eb76f3a1987ea2ac5ff0d3386177cf2154f
[ "CC-BY-3.0" ]
null
null
null
import json import requests import six from social_core.actions import do_auth, do_complete, do_disconnect from social_core.backends.utils import get_backend from social_core.strategy import BaseStrategy from social_core.utils import module_member, setting_name from sqlalchemy.exc import IntegrityError from galaxy.ex...
46.394231
129
0.67943
e74a43149d18359a111cd8b06db556e2a1be05d9
540
py
Python
pagination/page_list.py
AmrAnwar/notarabic
38b65b38dfc51afeac9ad0e3c3fca8f1c356ffbd
[ "BSD-2-Clause" ]
1
2019-06-10T20:14:40.000Z
2019-06-10T20:14:40.000Z
pagination/page_list.py
AmrAnwar/notarabic
38b65b38dfc51afeac9ad0e3c3fca8f1c356ffbd
[ "BSD-2-Clause" ]
1
2021-06-01T23:49:52.000Z
2021-06-01T23:49:52.000Z
pagination/page_list.py
AmrAnwar/notarabic
38b65b38dfc51afeac9ad0e3c3fca8f1c356ffbd
[ "BSD-2-Clause" ]
1
2019-06-23T23:33:45.000Z
2019-06-23T23:33:45.000Z
from rest_framework.pagination import PageNumberPagination from rest_framework.response import Response class PagePageListPagination(PageNumberPagination): page_size = 5 page_size_query_param = 'limit' def get_paginated_response(self, data): return Response({ 'next': self.get_next_li...
28.421053
58
0.65
7a165cbfe803f379a08af6bcf7248ea63cd071a3
1,484
py
Python
cqlengine/tests/statements/test_insert_statement.py
jfelectron/cqlengine
34a121aeebfb1ab6954b08a664eeba53d6c122ba
[ "BSD-3-Clause" ]
57
2015-01-06T14:47:20.000Z
2020-10-27T00:55:48.000Z
cqlengine/tests/statements/test_insert_statement.py
jfelectron/cqlengine
34a121aeebfb1ab6954b08a664eeba53d6c122ba
[ "BSD-3-Clause" ]
66
2015-01-03T20:48:41.000Z
2021-07-25T00:01:49.000Z
cqlengine/tests/statements/test_insert_statement.py
jfelectron/cqlengine
34a121aeebfb1ab6954b08a664eeba53d6c122ba
[ "BSD-3-Clause" ]
35
2015-01-03T20:49:51.000Z
2021-07-23T12:34:52.000Z
from unittest import TestCase from cqlengine.statements import InsertStatement, StatementException, AssignmentClause import six class InsertStatementTests(TestCase): def test_where_clause_failure(self): """ tests that where clauses cannot be added to Insert statements """ ist = InsertStatement('t...
35.333333
86
0.632749
bbecf059d4515f7025f68a97e2406e5fd5e488f2
387
py
Python
plantumlcli/utils/function.py
cathiele/plantumlcli
c969c38795538245ab06f4c52a230ed9ebca30c0
[ "Apache-2.0" ]
11
2020-11-29T15:08:35.000Z
2021-11-19T16:40:15.000Z
plantumlcli/utils/function.py
cathiele/plantumlcli
c969c38795538245ab06f4c52a230ed9ebca30c0
[ "Apache-2.0" ]
5
2020-11-30T06:18:07.000Z
2021-11-20T12:32:56.000Z
plantumlcli/utils/function.py
cathiele/plantumlcli
c969c38795538245ab06f4c52a230ed9ebca30c0
[ "Apache-2.0" ]
1
2021-11-19T16:40:19.000Z
2021-11-19T16:40:19.000Z
from typing import Callable, Any def all_func(*funcs: Callable[[], Any], quick_fail: bool = True) -> Callable[[], bool]: def _func(): _success = True for _item_func in funcs: _ret = not not _item_func() _success = _success and _ret if not _success and quick_fail...
24.1875
87
0.576227
80b957ffb6e3cc6a6d385e5301b0ac679f3b0cfe
2,354
py
Python
python/tskit/exceptions.py
winni2k/tskit
92fe9c04a27385401732a698843756aa797bacdd
[ "MIT" ]
null
null
null
python/tskit/exceptions.py
winni2k/tskit
92fe9c04a27385401732a698843756aa797bacdd
[ "MIT" ]
null
null
null
python/tskit/exceptions.py
winni2k/tskit
92fe9c04a27385401732a698843756aa797bacdd
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2018-2019 Tskit Developers # Copyright (c) 2017 University of Oxford # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without l...
39.233333
80
0.774851
779ce43c112895dc026b449bd140f2e6779a5684
2,410
py
Python
src/models/model.py
FreddyMurphy/MLOpsProject
176d91636ad2ba6da565bba8df5745e9d65a9137
[ "MIT" ]
null
null
null
src/models/model.py
FreddyMurphy/MLOpsProject
176d91636ad2ba6da565bba8df5745e9d65a9137
[ "MIT" ]
3
2021-06-20T17:07:06.000Z
2021-06-22T16:32:56.000Z
src/models/model.py
FreddyMurphy/MLOpsProject
176d91636ad2ba6da565bba8df5745e9d65a9137
[ "MIT" ]
null
null
null
import torch_enhance from kornia.losses import SSIMLoss from pytorch_lightning import LightningModule from torch import optim from torch_enhance import metrics class SRCNN(LightningModule): def __init__(self, scaling=2, n_channels=3, lr=0.001, wi...
26.195652
69
0.594191
63ba3d0973c54622d61ebd9a72274a17959bf539
1,258
py
Python
index.py
esan94/bsm03
51a1ceab2dc9e6f834aa0400eb44a7480dd854ca
[ "MIT" ]
5
2020-08-18T21:32:55.000Z
2021-02-05T09:38:26.000Z
index.py
esan94/bsm03
51a1ceab2dc9e6f834aa0400eb44a7480dd854ca
[ "MIT" ]
null
null
null
index.py
esan94/bsm03
51a1ceab2dc9e6f834aa0400eb44a7480dd854ca
[ "MIT" ]
3
2020-08-24T14:25:40.000Z
2020-09-30T19:06:15.000Z
""" Este es el archivo que se usa para ejecutar la aplicación. """ import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import constants as c from app import app from home import layout_home from update import layout_update from analysis import layout_analy...
25.16
61
0.665342
e9d75f3c9c9fe2734301a6bdb1a790968375ca09
1,555
py
Python
setup.py
digirati-co-uk/pyelucidate
f321fefdb3c59f18c886a1870db1951177625241
[ "MIT" ]
4
2019-04-04T19:59:09.000Z
2019-05-24T13:54:36.000Z
setup.py
digirati-co-uk/pyelucidate
f321fefdb3c59f18c886a1870db1951177625241
[ "MIT" ]
1
2021-06-01T23:02:34.000Z
2021-06-01T23:02:34.000Z
setup.py
digirati-co-uk/pyelucidate
f321fefdb3c59f18c886a1870db1951177625241
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == "publish": os.system("python setup.py sdist upload") sys.exit() readme = open("README.rst").read() doclink = """ Documentation ------------- The full...
29.339623
80
0.636656
d80b849bf80ee6b8d6793954266848e6cab37d55
9,352
py
Python
homeassistant/components/homekit_controller/__init__.py
cipacda/core
1a9bb47f78401340c80c4bfe52b93dcaee5d3625
[ "Apache-2.0" ]
5
2017-01-26T16:33:09.000Z
2018-07-20T13:50:47.000Z
homeassistant/components/homekit_controller/__init__.py
cipacda/core
1a9bb47f78401340c80c4bfe52b93dcaee5d3625
[ "Apache-2.0" ]
66
2020-08-05T07:21:39.000Z
2022-03-31T06:02:16.000Z
homeassistant/components/homekit_controller/__init__.py
cipacda/core
1a9bb47f78401340c80c4bfe52b93dcaee5d3625
[ "Apache-2.0" ]
2
2021-03-02T10:36:33.000Z
2021-04-10T07:57:03.000Z
"""Support for Homekit device discovery.""" from __future__ import annotations import asyncio from typing import Any import aiohomekit from aiohomekit.model import Accessory from aiohomekit.model.characteristics import ( Characteristic, CharacteristicPermissions, CharacteristicsTypes, ) from aiohomekit.mo...
35.694656
115
0.691082
4d967d992a282f727a447350ae70f5216bd83da5
2,028
py
Python
paralelismo/k_means/using_nworkers/SparseManualWorker.py
davidcediel12/Cliente-Servidor
58859cb8bb67167e0929b74071de86ce53376943
[ "Apache-2.0" ]
null
null
null
paralelismo/k_means/using_nworkers/SparseManualWorker.py
davidcediel12/Cliente-Servidor
58859cb8bb67167e0929b74071de86ce53376943
[ "Apache-2.0" ]
1
2020-05-05T00:12:58.000Z
2020-05-05T00:12:58.000Z
paralelismo/k_means/using_nworkers/SparseManualWorker.py
davidcediel12/Cliente-Servidor
58859cb8bb67167e0929b74071de86ce53376943
[ "Apache-2.0" ]
1
2020-05-04T23:57:44.000Z
2020-05-04T23:57:44.000Z
""" Solo cambia las funciones de distancia y la forma de abrir el dataset, la suma de los puntos ahora tambien es una matriz dispersa """ import argparse import numpy as np from utils import * import time from GenericWorker import SparseWorkerGeneric from os.path import join class SparseManualWorker(Sp...
36.214286
104
0.662229
9c18936882d46b5cada5e3b0a802cf8be367b27b
7,168
py
Python
mathematics_dataset/util/display_test.py
PhysicsTeacher13/Mathematics_Dataset
7f13bf661e6f36d61542bf0360b27f31eb9efe20
[ "Apache-2.0" ]
8
2019-11-13T13:48:09.000Z
2020-05-06T07:49:11.000Z
mathematics_dataset/util/display_test.py
PhysicsTeacher13/Mathematics_Dataset
7f13bf661e6f36d61542bf0360b27f31eb9efe20
[ "Apache-2.0" ]
1
2021-10-05T16:16:36.000Z
2021-10-05T16:16:36.000Z
mathematics_dataset/util/display_test.py
LaudateCorpus1/mathematics_dataset
e91dba649b843597c14b9d84dfe92bff79b7d299
[ "Apache-2.0" ]
1
2019-11-13T14:01:03.000Z
2019-11-13T14:01:03.000Z
# Copyright 2018 DeepMind Technologies Limited. # # 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...
34.461538
79
0.70731
746c25a707a05c3d0a0b60b34a07e9488ab90faf
1,066
py
Python
Python/0002AddTwoNumbers.py
MarginCode/LeetCodeNote
4b166687806e9672f13586eac88d04da867606ee
[ "MIT" ]
null
null
null
Python/0002AddTwoNumbers.py
MarginCode/LeetCodeNote
4b166687806e9672f13586eac88d04da867606ee
[ "MIT" ]
null
null
null
Python/0002AddTwoNumbers.py
MarginCode/LeetCodeNote
4b166687806e9672f13586eac88d04da867606ee
[ "MIT" ]
null
null
null
# Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: carry=0 head=tail=None #首先判断是否为空 while (l1 or l2): ...
31.352941
68
0.515947
902fa32c52502716c5c7451850208c9ce923c6e0
570
py
Python
setup.py
MikeData/cmd-v4-hierarchy-parent-injector
3ef5687f2c6a8d9fd18fce863b022939cf1a01b0
[ "MIT" ]
null
null
null
setup.py
MikeData/cmd-v4-hierarchy-parent-injector
3ef5687f2c6a8d9fd18fce863b022939cf1a01b0
[ "MIT" ]
null
null
null
setup.py
MikeData/cmd-v4-hierarchy-parent-injector
3ef5687f2c6a8d9fd18fce863b022939cf1a01b0
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'hierarchyParentInjector', packages = ['hierarchyParentInjector'], version = '0.1', description = 'Inserts additional rows into a V4 csv load file, for hierarcical parents nodes that are missing totals. ', author = 'Michael Adams', author_email = 'michael.adam...
38
123
0.726316
0b31f9b9d6a369df93605cfd247bf154f41564c0
18,647
py
Python
tests/integration/cattletest/core/test_shared_volumes.py
moul/cattle
d682921b45fce95c0886c2a8a95e7e8345d30521
[ "Apache-2.0" ]
1
2021-04-24T08:16:38.000Z
2021-04-24T08:16:38.000Z
tests/integration/cattletest/core/test_shared_volumes.py
moul/cattle
d682921b45fce95c0886c2a8a95e7e8345d30521
[ "Apache-2.0" ]
1
2022-01-21T23:49:42.000Z
2022-01-21T23:49:42.000Z
tests/integration/cattletest/core/test_shared_volumes.py
moul/cattle
d682921b45fce95c0886c2a8a95e7e8345d30521
[ "Apache-2.0" ]
null
null
null
from common_fixtures import * # NOQA from cattle import ClientApiError SP_CREATE = "storagepool.create" VOLUME_CREATE = "volume.create" def more_hosts(context): host2 = register_simulated_host(context) host3 = register_simulated_host(context) return context.host, host2, host3 def from_context(context)...
38.055102
79
0.660911
e1e94356ebbe9a698af58cc76d74d9338e6c0446
7,312
py
Python
tests/backward_compatibility/tabor_backward_compatibility_tests.py
eendebakpt/qupulse
5b5b48de10084d413e10cfd8f6e9f7536c69dd70
[ "MIT" ]
30
2018-09-13T02:59:55.000Z
2022-03-21T04:25:22.000Z
tests/backward_compatibility/tabor_backward_compatibility_tests.py
eendebakpt/qupulse
5b5b48de10084d413e10cfd8f6e9f7536c69dd70
[ "MIT" ]
220
2018-09-06T14:43:15.000Z
2022-03-25T12:26:25.000Z
tests/backward_compatibility/tabor_backward_compatibility_tests.py
eendebakpt/qupulse
5b5b48de10084d413e10cfd8f6e9f7536c69dd70
[ "MIT" ]
14
2019-01-08T14:42:36.000Z
2021-05-21T08:53:06.000Z
import unittest import os import json import typing import importlib.util import sys import warnings from tests.hardware.tabor_simulator_based_tests import TaborSimulatorManager from tests.hardware.dummy_devices import DummyDAC from tests.backward_compatibility.hardware_test_helper import LoadingAndSequencingHelper f...
43.266272
114
0.711844
e09cbead5280a0460aa71aef688bfa39134f0c93
2,271
py
Python
build/license.py
coolofficials/hafnium-verification
5483868545cae54fbe02c044a02ba0f4999f1f8b
[ "Apache-2.0" ]
30
2019-06-28T15:20:25.000Z
2021-08-25T11:37:30.000Z
build/license.py
coolofficials/hafnium-verification
5483868545cae54fbe02c044a02ba0f4999f1f8b
[ "Apache-2.0" ]
75
2019-07-16T04:23:53.000Z
2021-03-26T15:35:14.000Z
build/license.py
coolofficials/hafnium-verification
5483868545cae54fbe02c044a02ba0f4999f1f8b
[ "Apache-2.0" ]
17
2019-06-28T14:40:41.000Z
2021-03-11T19:26:13.000Z
#!/usr/bin/env python # # Copyright 2018 The Hafnium 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
35.484375
83
0.702334
e723a007c888a21ddec843d01a44a9465f44e390
3,889
py
Python
scholariumat/products/utils.py
valuehack/scholariumat
47c13f3429b95b9ad5ca59b45cf971895260bb5c
[ "MIT" ]
null
null
null
scholariumat/products/utils.py
valuehack/scholariumat
47c13f3429b95b9ad5ca59b45cf971895260bb5c
[ "MIT" ]
232
2018-06-30T11:40:52.000Z
2020-04-29T23:55:41.000Z
scholariumat/products/utils.py
valuehack/scholariumat
47c13f3429b95b9ad5ca59b45cf971895260bb5c
[ "MIT" ]
3
2018-05-31T12:57:03.000Z
2020-02-27T16:25:44.000Z
import requests from requests.auth import HTTPBasicAuth import xml.dom.minidom import logging from django.conf import settings logger = logging.getLogger(__name__) class SofortPayment(object): """ Idee der Sofort-Api-Schnittstelle: mit jedem Api-Aufruf müssen Authentifizierungsdaten mitgeschickt we...
34.723214
125
0.642582
24033bf8f6bd4a8bfd1da1aed4432bb52102e607
686
py
Python
proj01/proj01.py
boredtorchic/Birb_proj
c87b321727cca2c43b7611f4f70d6db6a322b78c
[ "MIT" ]
null
null
null
proj01/proj01.py
boredtorchic/Birb_proj
c87b321727cca2c43b7611f4f70d6db6a322b78c
[ "MIT" ]
null
null
null
proj01/proj01.py
boredtorchic/Birb_proj
c87b321727cca2c43b7611f4f70d6db6a322b78c
[ "MIT" ]
null
null
null
# Name: # Date: # proj01: A Simple Program # This program asks the user for his/her name and age. # Then, it prints a sentence that says when the user will turn 100. # If you User_input1 = raw_input("Enter your name") User_input2 = raw_input("Enter your age:") User_input3 = raw_input("Have you had your birthday yet? ...
28.583333
69
0.705539
4e8988ce69d66bc9c4adababee666b2501460f7f
966
py
Python
setup.py
Mortafix/Colorifix
5ea3c72403a53032054c35feda320522b1fce71d
[ "MIT" ]
null
null
null
setup.py
Mortafix/Colorifix
5ea3c72403a53032054c35feda320522b1fce71d
[ "MIT" ]
null
null
null
setup.py
Mortafix/Colorifix
5ea3c72403a53032054c35feda320522b1fce71d
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="colorifix", version="2.0.2", author="Moris Doratiotto", author_email="moris.doratiotto@gmail.com", description="A python module to color your terminal output life", long_description=lo...
33.310345
69
0.638716
fb23aa3abf9f91a447c8e488098ce23ee4c7b396
4,981
py
Python
robote/__main__.py
gufimov/maybe-delete-as-f-
836cef51dd26bb132b8714820ad0eb1c008918f1
[ "MIT" ]
1
2021-06-28T19:45:51.000Z
2021-06-28T19:45:51.000Z
robote/__main__.py
gufimov/maybe-delete-as-f-
836cef51dd26bb132b8714820ad0eb1c008918f1
[ "MIT" ]
null
null
null
robote/__main__.py
gufimov/maybe-delete-as-f-
836cef51dd26bb132b8714820ad0eb1c008918f1
[ "MIT" ]
4
2020-11-19T17:43:57.000Z
2021-12-22T09:40:51.000Z
#!/usr/bin/env python3 # - * -coding: utf - 8 - * - import os import io import sys import traceback from robote import(DOWNLOAD_LOCATION, TEGE_TOKEN, TEGE_API_ID, TEGE_API_HASH, AUTH_CHANNEL, LEECH_COMMAND, YTDL_COMMAND, GLEECH_COMMAND, TELEGRAM_LEECH_COMMAND_G, CANCEL_COMMAND_G, GET_SIZE_G, STATUS_COMMAND, SAVE_THUM...
71.157143
271
0.816101
c85d1aad36359b7dce59d71fb00a6e6472928abc
4,951
py
Python
timesketch/models/user.py
rushattac/timesketch
0a6fa301aadb36db450ec993c5cf51452c375de2
[ "Apache-2.0" ]
1,810
2015-01-03T22:34:45.000Z
2022-03-30T10:23:18.000Z
timesketch/models/user.py
rushattac/timesketch
0a6fa301aadb36db450ec993c5cf51452c375de2
[ "Apache-2.0" ]
1,291
2015-01-08T00:00:12.000Z
2022-03-29T03:26:58.000Z
timesketch/models/user.py
rushattac/timesketch
0a6fa301aadb36db450ec993c5cf51452c375de2
[ "Apache-2.0" ]
519
2015-01-20T09:26:06.000Z
2022-03-29T11:02:10.000Z
# Copyright 2015 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 a...
36.674074
80
0.686124
fdcef74debd1b7b1e22646725d83d63087631e74
2,444
py
Python
.history/ClassFiles/OOP/Polymorphism_20210105142603.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/OOP/Polymorphism_20210105142603.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/OOP/Polymorphism_20210105142603.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
''' Polymorphism : Part 1 Polymorphism basically means the ability to take or have multiple or various forms. Polymorphim means the ability to take or have various forms. Polymorphism: Part 2 30 # Polymorphism: Part 3 60 Creating a polymorphic class method. ...
23.960784
155
0.605974
0e0bba36448441dae879da4f6f12ff91c16d1ce2
385
py
Python
pycomlink/spatial/__init__.py
cchwala/pycomlink
979d5595243a06278052023cc5f9aec09fbd8e12
[ "BSD-3-Clause" ]
12
2017-04-26T07:27:39.000Z
2021-08-31T13:23:59.000Z
pycomlink/spatial/__init__.py
cchwala/pycomlink
979d5595243a06278052023cc5f9aec09fbd8e12
[ "BSD-3-Clause" ]
72
2017-08-24T20:15:24.000Z
2022-03-09T08:55:03.000Z
pycomlink/spatial/__init__.py
cchwala/pycomlink
979d5595243a06278052023cc5f9aec09fbd8e12
[ "BSD-3-Clause" ]
18
2016-11-08T15:33:12.000Z
2021-07-13T11:55:19.000Z
# ---------------------------------------------------------------------------- # Name: # Purpose: # # Authors: # # Created: # Copyright: (c) Christian Chwala 2014 # Licence: The MIT License # ---------------------------------------------------------------------------- from __future__ import absolute_import fro...
24.0625
78
0.420779
485aaf28b243688fad464a810af835ae4e0853d2
110,029
py
Python
mfem/_ser/coefficient.py
mfem/PyMFEM
b7b7c3d3de1082eac1015e3a313cf513db06fd7b
[ "BSD-3-Clause" ]
93
2017-03-01T16:45:33.000Z
2022-03-27T22:10:33.000Z
mfem/_ser/coefficient.py
mfem/PyMFEM
b7b7c3d3de1082eac1015e3a313cf513db06fd7b
[ "BSD-3-Clause" ]
64
2017-03-15T21:47:31.000Z
2022-03-31T23:59:00.000Z
mfem/_ser/coefficient.py
mfem/PyMFEM
b7b7c3d3de1082eac1015e3a313cf513db06fd7b
[ "BSD-3-Clause" ]
32
2017-03-02T22:13:38.000Z
2022-03-26T13:09:31.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.2 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise Runtime...
47.528726
183
0.745249
4dfc18b9572c1c96bf9b7ee69b281b16456b1aa6
2,936
py
Python
exchange_server/datadog_checks/exchange_server/check.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
null
null
null
exchange_server/datadog_checks/exchange_server/check.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
null
null
null
exchange_server/datadog_checks/exchange_server/check.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.base.checks.windows.perf_counters.base import PerfCountersBaseCheckWithLegacySupport from datadog_checks.base.checks.windows.perf_counters.counter import PerfObject from datadog_checks....
36.246914
115
0.616485
2b72f711154f8823c19eb2dd6047a99b87cf86ae
2,664
py
Python
service/generated_flatbuffers/tflite/MirrorPadOptions.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
213
2021-06-11T01:15:16.000Z
2022-02-25T16:18:57.000Z
service/generated_flatbuffers/tflite/MirrorPadOptions.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
32
2021-06-17T17:58:54.000Z
2022-02-02T05:58:10.000Z
service/generated_flatbuffers/tflite/MirrorPadOptions.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
28
2021-06-17T17:34:21.000Z
2022-03-24T14:05:20.000Z
# Copyright 2021 Google LLC # # 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, ...
32.096386
114
0.709459
8ed0be66810d38945d2d44a1f072eba182e43410
14,392
py
Python
apteco_api/models/endpoint_details.py
Apteco/apteco-api
7440c98ab10ea6d8a5997187f6fc739ce1c75d2b
[ "Apache-2.0" ]
2
2020-05-21T14:24:16.000Z
2020-12-03T19:56:34.000Z
apteco_api/models/endpoint_details.py
Apteco/apteco-api
7440c98ab10ea6d8a5997187f6fc739ce1c75d2b
[ "Apache-2.0" ]
null
null
null
apteco_api/models/endpoint_details.py
Apteco/apteco-api
7440c98ab10ea6d8a5997187f6fc739ce1c75d2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Apteco API An API to allow access to Apteco Marketing Suite resources # noqa: E501 The version of the OpenAPI document: v2 Contact: support@apteco.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class EndpointDetails(...
36.714286
266
0.644803
059615f702a40aafe050d709894a6572935b06b2
958
py
Python
main.py
camoredo/spaceapps
fc6b8900046d8b5e00b7b9a3b910128594d4b99f
[ "MIT" ]
null
null
null
main.py
camoredo/spaceapps
fc6b8900046d8b5e00b7b9a3b910128594d4b99f
[ "MIT" ]
null
null
null
main.py
camoredo/spaceapps
fc6b8900046d8b5e00b7b9a3b910128594d4b99f
[ "MIT" ]
null
null
null
import pandas as pd import os dir_path = os.path.dirname(os.path.realpath(__file__)) names = os.listdir(os.path.join(dir_path, 'inputs')) scatter_dfs = [] heatmap_dfs = [] count = [0, 0] for name in names: if not name.endswith('.txt'): continue inp_path = os.path.join(dir_path, 'inputs', name) ...
27.371429
104
0.701461
2b7b64a30550946c3b169ce0d4edb0dc310483b6
488
py
Python
merge_180329.py
Jianyang-Hu/numpypractice
f4d4a3e28f5dd10f9722f83b1ac66f0f2ccef8b9
[ "Apache-2.0" ]
null
null
null
merge_180329.py
Jianyang-Hu/numpypractice
f4d4a3e28f5dd10f9722f83b1ac66f0f2ccef8b9
[ "Apache-2.0" ]
null
null
null
merge_180329.py
Jianyang-Hu/numpypractice
f4d4a3e28f5dd10f9722f83b1ac66f0f2ccef8b9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @version : Python3.6 # @Time : 2018/3/29 10:38 # @Author : Jianyang-Hu # @contact : jianyang1993@163.com # @File : merge_180329.py # @Software: PyCharm import pandas as pd df1 = pd.DataFrame({'key':['b','b','a','c','a','a','b'],'data1':range(7)}) df2 = pd.DataFrame({'key':['a','b','d'...
22.181818
74
0.602459
76f828c474fe00bf1c58a06653f04676802c1af0
6,351
py
Python
src/main.py
artem-smotrakov/esp8266-watering
8240d89dac7c361015648a7376e639d1504c9197
[ "MIT" ]
5
2019-09-23T00:56:43.000Z
2021-04-17T14:32:44.000Z
src/main.py
artem-smotrakov/esp8266-watering
8240d89dac7c361015648a7376e639d1504c9197
[ "MIT" ]
null
null
null
src/main.py
artem-smotrakov/esp8266-watering
8240d89dac7c361015648a7376e639d1504c9197
[ "MIT" ]
1
2021-03-30T12:48:06.000Z
2021-03-30T12:48:06.000Z
# ssid and password for the access point # make sure that the password is not too short # otherwise, an OSError occurs while setting up a wi-fi access point ACCESS_POINT_SSID = 'esp8266-watering' ACCESS_POINT_PASSWORD = 'helloesp8266' # template for an HTTP response which is sent by the server HTTP_RESPONSE = b"""\ HT...
36.291429
132
0.61203
1ccd9c1f2ed7a2bff625925281e4e3b276aa6c95
9,612
py
Python
debrisdiskfm/fm_klip.py
seawander/DebisDiskFM
717c09c914c53a5b5a7d18afe78307db79cd1c3e
[ "BSD-3-Clause" ]
3
2018-07-27T22:06:04.000Z
2019-07-19T13:41:51.000Z
debrisdiskfm/fm_klip.py
seawander/DebisDiskFM
717c09c914c53a5b5a7d18afe78307db79cd1c3e
[ "BSD-3-Clause" ]
null
null
null
debrisdiskfm/fm_klip.py
seawander/DebisDiskFM
717c09c914c53a5b5a7d18afe78307db79cd1c3e
[ "BSD-3-Clause" ]
3
2018-07-24T17:52:21.000Z
2021-04-11T23:27:39.000Z
from astropy.io import fits import numpy as np from . import dependencies import image_registration # returns the KLIPped model def flattenAndNormalize(image, mask = None, onlyMasked = True): """Flattend and Normalize the image (for KLIP). Input: image: image; mask: 0-1 mask; onlyMask...
39.555556
158
0.616833
566a9db59b76ffb4bc3d5b11fd2b520425fc2044
4,158
py
Python
indico/web/http_api/metadata/xml.py
nicolas-harraudeau-sonarsource/indico
419b6152529bb70a5a01471be6bb6d91b29bd43e
[ "MIT" ]
1
2021-08-11T19:13:18.000Z
2021-08-11T19:13:18.000Z
indico/web/http_api/metadata/xml.py
vintas/indico
e45f80db156557bb09e9b579683b42c210c31653
[ "MIT" ]
null
null
null
indico/web/http_api/metadata/xml.py
vintas/indico
e45f80db156557bb09e9b579683b42c210c31653
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import re from datetime import datetime import dateutil.parser from lxml import etree from pytz import ti...
36.79646
118
0.564695
b451d4c575757bc850106e980f87d086af148699
10,712
py
Python
argparse/argparse_galaxy_translation.py
bernt-matthias/argparse2tool
cca59571ad18f0bcc7b863ebbdd42a3480801aaf
[ "Apache-2.0" ]
null
null
null
argparse/argparse_galaxy_translation.py
bernt-matthias/argparse2tool
cca59571ad18f0bcc7b863ebbdd42a3480801aaf
[ "Apache-2.0" ]
null
null
null
argparse/argparse_galaxy_translation.py
bernt-matthias/argparse2tool
cca59571ad18f0bcc7b863ebbdd42a3480801aaf
[ "Apache-2.0" ]
null
null
null
import galaxyxml.tool.parameters as gxtp from collections import Counter from pydoc import locate class ArgparseGalaxyTranslation(object): def __gxtp_param_from_type(self, param, flag, label, num_dashes, gxparam_extra_kwargs, default=None): from argparse import FileType """Based on a type, conver...
42.848
138
0.609503
8c501bf7bab37d1dd11b1925cba121a0b2929deb
3,777
py
Python
contrib/macdeploy/custom_dsstore.py
FOScoin/FossilCoin
4f0ca695a66ca8afc61ff44c1ef90b3e17c93ff5
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
FOScoin/FossilCoin
4f0ca695a66ca8afc61ff44c1ef90b3e17c93ff5
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
FOScoin/FossilCoin
4f0ca695a66ca8afc61ff44c1ef90b3e17c93ff5
[ "MIT" ]
3
2018-09-16T03:32:08.000Z
2019-03-02T11:37:28.000Z
#!/usr/bin/env python # Copyright (c) 2013-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. from __future__ import division,print_function,unicode_literals import biplist from ds_store import DSStore...
61.918033
1,817
0.727562
33c99fb8cb75ea538c6603a6dda6d34aabda47cb
399
py
Python
app/core/migrations/0009_notification_value.py
pnsn/squac_api
7b1741cd32dbc32972f75ac53958468fdf7d04ee
[ "MIT" ]
6
2019-11-07T09:32:43.000Z
2021-09-02T22:37:14.000Z
app/core/migrations/0009_notification_value.py
pnsn/squacapi
e330a925aff38937656983841e495ba3824c11e1
[ "MIT" ]
196
2019-10-04T17:03:36.000Z
2022-03-31T17:54:59.000Z
app/core/migrations/0009_notification_value.py
pnsn/squac_api
7b1741cd32dbc32972f75ac53958468fdf7d04ee
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-12-04 23:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0008_auto_20201030_1517'), ] operations = [ migrations.AddField( model_name='notification', name='value', ...
21
63
0.598997
b05fed6fa4fe62050c7eb104ab074622d34d0c9f
5,472
py
Python
flexget/plugins/input/kitsu.py
andocromn/Flexget
853d9e0d6bdcf5c675afd50b8604b9e5805d9b11
[ "MIT" ]
null
null
null
flexget/plugins/input/kitsu.py
andocromn/Flexget
853d9e0d6bdcf5c675afd50b8604b9e5805d9b11
[ "MIT" ]
1
2017-10-09T23:06:44.000Z
2017-10-09T23:06:44.000Z
flexget/plugins/input/kitsu.py
andocromn/Flexget
853d9e0d6bdcf5c675afd50b8604b9e5805d9b11
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import import logging from flexget import plugin from flexget.config_schema import one_or_more from flexget.entry import Entry from flexget.event import event from flexget.utils.cached_input import cached from flexget.utils.requests import RequestException ...
38
98
0.523575
c2f0cdd602cb1be0f3da693ff473dbfe2fa21451
2,212
py
Python
biblion/templatetags/biblion_tags.py
alexissantos/biblion
012c3ca230f264f044b6e5f35027c817eafd1de5
[ "BSD-3-Clause" ]
null
null
null
biblion/templatetags/biblion_tags.py
alexissantos/biblion
012c3ca230f264f044b6e5f35027c817eafd1de5
[ "BSD-3-Clause" ]
null
null
null
biblion/templatetags/biblion_tags.py
alexissantos/biblion
012c3ca230f264f044b6e5f35027c817eafd1de5
[ "BSD-3-Clause" ]
null
null
null
from django import template from biblion.models import Post from biblion.conf import settings register = template.Library() class LatestBlogPostsNode(template.Node): def __init__(self, context_var): self.context_var = context_var def render(self, context): latest_posts = Post.objects.curr...
24.043478
77
0.664557
c423c112db151ac71d8e6a6bc13b77f548cf62bc
535
py
Python
setup.py
wyfo/contextclass
4655574b5b76909b46fc8db7588ffd30cecc599c
[ "MIT" ]
null
null
null
setup.py
wyfo/contextclass
4655574b5b76909b46fc8db7588ffd30cecc599c
[ "MIT" ]
null
null
null
setup.py
wyfo/contextclass
4655574b5b76909b46fc8db7588ffd30cecc599c
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup with open("README.md") as f: README = f.read() setup( name="contextclass", url="https://github.com/wyfo/contextclass", author="Joseph Perez", author_email="joperez@hotmail.fr", description="Typed class wrapper for context variables", long_descrip...
26.75
60
0.684112
b8ac098454d2c1aaeb576a225911d0a2d9146c9a
10,473
py
Python
scripts/mesh_lpt_benchmark.py
santiagocasas/flowpm
9145d0c846d886f2cb34955f2267aa8cc9da31da
[ "MIT" ]
null
null
null
scripts/mesh_lpt_benchmark.py
santiagocasas/flowpm
9145d0c846d886f2cb34955f2267aa8cc9da31da
[ "MIT" ]
null
null
null
scripts/mesh_lpt_benchmark.py
santiagocasas/flowpm
9145d0c846d886f2cb34955f2267aa8cc9da31da
[ "MIT" ]
null
null
null
import numpy as np import os import math import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import mesh_tensorflow as mtf import time import sys sys.path.append('../') sys.path.append('../flowpm/') import flowpm.mesh_ops as mpm import flowpm.mtfpm as mtfpm import flowpm.mesh_utils as mesh_utils import flowpm...
34.003247
144
0.636112
7904640078814a724b5f91b401860607bf111587
3,568
py
Python
2021/day20/day20.py
tcmitchell/AdventOfCode
caaac1aa37c999d4804f9f4154bf7033a06e98af
[ "MIT" ]
null
null
null
2021/day20/day20.py
tcmitchell/AdventOfCode
caaac1aa37c999d4804f9f4154bf7033a06e98af
[ "MIT" ]
null
null
null
2021/day20/day20.py
tcmitchell/AdventOfCode
caaac1aa37c999d4804f9f4154bf7033a06e98af
[ "MIT" ]
null
null
null
from __future__ import annotations import argparse import logging from typing import TextIO def parse_args(args=None): parser = argparse.ArgumentParser() parser.add_argument("input", type=argparse.FileType('r'), metavar="PUZZLE_INPUT") parser.add_argument('-d', '--debug', action='s...
29.00813
76
0.575673
1c23ab98f06128ce61ec705ee0ddc9f007fd5b24
649
py
Python
var/spack/repos/builtin/packages/py-fisher/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-fisher/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/py-fisher/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyFisher(PythonPackage): """Fisher's Exact Test. Simple, fast implementation ...
30.904762
95
0.724191
5463c4445114b390f454d8339b2e930973daace3
5,090
py
Python
src/kumparan_test/kumparanapi.py
teguhcf/python-flask
abe5136241943514038c41668ca2d814809bc1a3
[ "MIT" ]
null
null
null
src/kumparan_test/kumparanapi.py
teguhcf/python-flask
abe5136241943514038c41668ca2d814809bc1a3
[ "MIT" ]
null
null
null
src/kumparan_test/kumparanapi.py
teguhcf/python-flask
abe5136241943514038c41668ca2d814809bc1a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This is a skeleton file that can serve as a starting point for a Python console script. To run this script uncomment the following line in the entry_points section in setup.py: [console_scripts] fibonacci = kumparan_test.skeleton:run Then run `python setup.py ...
28.277778
81
0.671513
0b64050553c13a36b70f3a7862d4cc5caf77a4ff
4,606
py
Python
pgmpy/tests/test_factors/test_FactorSet.py
echoyi/pgmpy
c37dda4401f23ec73fc5d17d957867cd62e588d3
[ "MIT" ]
2,144
2015-01-05T21:25:04.000Z
2022-03-31T08:24:15.000Z
pgmpy/tests/test_factors/test_FactorSet.py
echoyi/pgmpy
c37dda4401f23ec73fc5d17d957867cd62e588d3
[ "MIT" ]
1,181
2015-01-04T18:19:44.000Z
2022-03-30T17:21:19.000Z
pgmpy/tests/test_factors/test_FactorSet.py
echoyi/pgmpy
c37dda4401f23ec73fc5d17d957867cd62e588d3
[ "MIT" ]
777
2015-01-01T11:13:27.000Z
2022-03-28T12:31:57.000Z
import unittest from pgmpy.factors import FactorSet from pgmpy.factors.discrete import DiscreteFactor class TestFactorSet(unittest.TestCase): def setUp(self): self.phi1 = DiscreteFactor(["x1", "x2", "x3"], [2, 3, 2], range(12)) self.phi2 = DiscreteFactor(["x3", "x4", "x1"], [2, 2, 2], range(8)) ...
44.718447
87
0.606817
b84c808393ac6a17ecdcd72afe131ec0360b1fb5
3,889
py
Python
src/initialization.py
farzana0/EvoNRL
993560755a6b63b1941fe6d964521ae88a067b47
[ "MIT" ]
3
2021-02-16T05:20:57.000Z
2021-06-10T09:27:54.000Z
src/initialization.py
farzana0/EvoNRL
993560755a6b63b1941fe6d964521ae88a067b47
[ "MIT" ]
1
2021-02-03T07:18:45.000Z
2021-02-03T07:18:45.000Z
src/initialization.py
farzana0/EvoNRL
993560755a6b63b1941fe6d964521ae88a067b47
[ "MIT" ]
1
2021-06-10T09:27:55.000Z
2021-06-10T09:27:55.000Z
import argparse import numpy as np import networkx as nx from gensim.models import Word2Vec from elasticsearch import Elasticsearch from elasticsearch import helpers global args import random import cPickle class parse_args(): def __init__(self, input, output, walkfile, vecinput , num_walks, walk_length): self.wei...
27.58156
133
0.696066
8bcdc80d4a70b9baa7ee62c7586b5cd76acce39d
2,979
py
Python
AutoAcademicCV/textfile.py
german-arroyo-moreno/AutoAcademia
3f51eb8b4c6706ed5ccc71bb57bf2d478e7cae17
[ "MIT" ]
null
null
null
AutoAcademicCV/textfile.py
german-arroyo-moreno/AutoAcademia
3f51eb8b4c6706ed5ccc71bb57bf2d478e7cae17
[ "MIT" ]
null
null
null
AutoAcademicCV/textfile.py
german-arroyo-moreno/AutoAcademia
3f51eb8b4c6706ed5ccc71bb57bf2d478e7cae17
[ "MIT" ]
null
null
null
# encoding: utf-8 """ Copyright 2018 (c) Germán Arroyo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
31.691489
460
0.645854
d057fe577b58506a6453e541206b6b84fe3b0fce
5,940
py
Python
pex/tools/commands/graph.py
zmanji/pex
e43b9da471a79ab11d905956a40583a420992b28
[ "Apache-2.0" ]
null
null
null
pex/tools/commands/graph.py
zmanji/pex
e43b9da471a79ab11d905956a40583a420992b28
[ "Apache-2.0" ]
null
null
null
pex/tools/commands/graph.py
zmanji/pex
e43b9da471a79ab11d905956a40583a420992b28
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import import logging import os import tempfile import threading from argparse import ArgumentParser, Namespace from contextlib import contextmanager from...
33.942857
94
0.538384
2c416affd035c63233f5388582acbacf9bab9c21
3,762
py
Python
web_features/support/screen.py
alexgarzao/beeweb
c67d024c2d43c6bb2da7ba6877c1648e8760f036
[ "MIT" ]
5
2017-11-10T12:48:10.000Z
2018-02-21T21:29:52.000Z
web_features/support/screen.py
alexgarzao/beeweb
c67d024c2d43c6bb2da7ba6877c1648e8760f036
[ "MIT" ]
1
2018-04-22T00:08:16.000Z
2018-04-22T00:08:16.000Z
web_features/support/screen.py
alexgarzao/beeweb
c67d024c2d43c6bb2da7ba6877c1648e8760f036
[ "MIT" ]
2
2017-11-10T17:06:34.000Z
2017-11-11T03:27:46.000Z
from selenium.webdriver.support.ui import WebDriverWait from .element import IdElement, TextElement, NameElement, XpathElement, AutomationIdElement, ClassNameElement, \ CssSelectorElement from features.support.actions import Actions from features.support.definition import Definition class Screen(Definition): ...
36.882353
114
0.704413
38a95b7759eeba5bc378847f907bb5b52f9ef4ad
3,595
py
Python
Graph/MapGraph.py
King-ofwolf/PACOS
730a6d341640d6f94a8b3d24c0336d71f3b1689e
[ "MIT" ]
2
2019-06-03T12:52:05.000Z
2019-12-12T02:17:41.000Z
Graph/MapGraph.py
King-ofwolf/PACOS
730a6d341640d6f94a8b3d24c0336d71f3b1689e
[ "MIT" ]
1
2019-06-01T16:47:57.000Z
2019-06-03T07:42:26.000Z
Graph/MapGraph.py
King-ofwolf/PACOS
730a6d341640d6f94a8b3d24c0336d71f3b1689e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Author: kingofwolf # @Date: 2019-04-04 16:55:08 # @Last Modified by: kingofwolf # @Last Modified time: 2019-05-24 16:17:34 # @Email: wangshenglingQQ@163.com 'Info: a Python file ' __author__ = 'Wang' __version__= '2019-04-04 16:55:08' from pyecharts import Scatter ...
32.981651
409
0.668428
051e260b17c01fcd9847f9a58d73a36c0669462f
33,369
py
Python
pytorch/pytorchcv/model_provider.py
HyperGAN/imgclsmob
88b9776a5a927dc9a54e85e31978c4a9ec5ecbf3
[ "MIT" ]
null
null
null
pytorch/pytorchcv/model_provider.py
HyperGAN/imgclsmob
88b9776a5a927dc9a54e85e31978c4a9ec5ecbf3
[ "MIT" ]
null
null
null
pytorch/pytorchcv/model_provider.py
HyperGAN/imgclsmob
88b9776a5a927dc9a54e85e31978c4a9ec5ecbf3
[ "MIT" ]
null
null
null
from .models.alexnet import * from .models.zfnet import * from .models.vgg import * from .models.bninception import * from .models.resnet import * from .models.preresnet import * from .models.resnext import * from .models.seresnet import * from .models.sepreresnet import * from .models.seresnext import * from .models.s...
36.31012
75
0.763133
64d682529628358b7708fa54be592ddac85bbbd8
3,845
py
Python
configs/retinanet_r50_fpn_1x.py
ShegnkaiWu/IoU-aware-single-stage-object-detector-for-accurate-localization
67b8955eb59137590dbadc6aac45529ae9459e4a
[ "Apache-2.0" ]
62
2020-04-15T09:01:23.000Z
2022-02-24T04:27:52.000Z
configs/retinanet_r50_fpn_1x.py
ShegnkaiWu/IoU-aware-single-stage-object-detector-for-accurate-localization
67b8955eb59137590dbadc6aac45529ae9459e4a
[ "Apache-2.0" ]
10
2020-04-15T09:05:19.000Z
2022-01-04T08:05:59.000Z
configs/retinanet_r50_fpn_1x.py
ShegnkaiWu/IoU-aware-single-stage-object-detector-for-accurate-localization
67b8955eb59137590dbadc6aac45529ae9459e4a
[ "Apache-2.0" ]
10
2020-04-28T06:58:09.000Z
2021-11-18T00:57:34.000Z
# model settings model = dict( type='RetinaNet', pretrained='modelzoo://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='pytorch'), neck=dict( type='FPN', in_channels=[256, 5...
27.661871
100
0.604421
64564361bb6c1bfba340953e9b3c903948023592
8,793
py
Python
python_modules/libraries/dagster-pandas/dagster_pandas_tests/test_structured_df_types.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
1
2020-08-10T23:03:37.000Z
2020-08-10T23:03:37.000Z
python_modules/libraries/dagster-pandas/dagster_pandas_tests/test_structured_df_types.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-pandas/dagster_pandas_tests/test_structured_df_types.py
johannkm/dagster-okteto
7ad30528a4a92945967d68e59e27727a1e839c2b
[ "Apache-2.0" ]
1
2020-08-20T14:20:31.000Z
2020-08-20T14:20:31.000Z
from dagster_pandas.constraints import ( ColumnWithMetadataException, ConstraintWithMetadataException, MultiAggregateConstraintWithMetadata, MultiColumnConstraintWithMetadata, StrictColumnsWithMetadata, all_unique_validator, column_range_validation_factory, dtype_in_set_validation_factor...
37.417021
96
0.705561
8c2b0649a39b382b87bace37360871810f090884
838,155
py
Python
src/genie/libs/parser/iosxe/tests/test_show_interface.py
alsyz/genieparser
e80a219851aa074482f9cccee1cb9fb42216e225
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/test_show_interface.py
alsyz/genieparser
e80a219851aa074482f9cccee1cb9fb42216e225
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/test_show_interface.py
alsyz/genieparser
e80a219851aa074482f9cccee1cb9fb42216e225
[ "Apache-2.0" ]
null
null
null
#!/bin/env python import sys import unittest from unittest.mock import Mock from unittest.mock import patch from textwrap import dedent ats_mock = Mock() with patch.dict('sys.modules', {'pyats' : ats_mock}, autospec=True): import genie.parsergen from genie.parsergen import oper_fill from genie.pa...
40.292039
161
0.47224
39b9894f6f24bdfd9733b641701f49d9da88c563
3,244
py
Python
tensorflow_model_optimization/python/core/sparsity/keras/prune_distributed_test.py
coffeeshaychildren/master-computing-upload
e9352d0d52f40ef022c74ae01ca9e03395bdf860
[ "Apache-2.0" ]
1
2019-08-22T19:11:05.000Z
2019-08-22T19:11:05.000Z
tensorflow_model_optimization/python/core/sparsity/keras/prune_distributed_test.py
coffeeshaychildren/master-computing-upload
e9352d0d52f40ef022c74ae01ca9e03395bdf860
[ "Apache-2.0" ]
null
null
null
tensorflow_model_optimization/python/core/sparsity/keras/prune_distributed_test.py
coffeeshaychildren/master-computing-upload
e9352d0d52f40ef022c74ae01ca9e03395bdf860
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
37.287356
90
0.734587
a201ebcdb6b368a42cc3ee1217855756341120a6
29,203
py
Python
heat/engine/resources/openstack/cinder/volume.py
larsks/heat
11064586e90166a037f8868835e6ce36f7306276
[ "Apache-2.0" ]
null
null
null
heat/engine/resources/openstack/cinder/volume.py
larsks/heat
11064586e90166a037f8868835e6ce36f7306276
[ "Apache-2.0" ]
null
null
null
heat/engine/resources/openstack/cinder/volume.py
larsks/heat
11064586e90166a037f8868835e6ce36f7306276
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
40.224518
79
0.59422
0587691c067d934bcf67aa6b9a88c77ce426d82d
16,041
py
Python
releng/generate_tests.py
kngoutham/test-infra
9720cce6f1f62be07cb63bfcb1d119b10c819353
[ "Apache-2.0" ]
null
null
null
releng/generate_tests.py
kngoutham/test-infra
9720cce6f1f62be07cb63bfcb1d119b10c819353
[ "Apache-2.0" ]
null
null
null
releng/generate_tests.py
kngoutham/test-infra
9720cce6f1f62be07cb63bfcb1d119b10c819353
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2017 The Kubernetes 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...
37.921986
100
0.623216
01e5155bb233e19097650d73951392ccef998bca
961
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/XML/__init__.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/XML/__init__.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/XML/__init__.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
#!/usr/bin/env python # # Copyright (C) 2007 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser General ...
41.782609
82
0.681582
0a7239c3ec59e322b2fec679af6b9e6c523c79cd
6,964
py
Python
projects/combinatory-chemistry/pool.py
germank/CommAI-env
9dc8007dac3c0e075c2b06aa012ac8fb683be2e6
[ "BSD-3-Clause" ]
null
null
null
projects/combinatory-chemistry/pool.py
germank/CommAI-env
9dc8007dac3c0e075c2b06aa012ac8fb683be2e6
[ "BSD-3-Clause" ]
null
null
null
projects/combinatory-chemistry/pool.py
germank/CommAI-env
9dc8007dac3c0e075c2b06aa012ac8fb683be2e6
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from base_pool import BasePool import random import numpy as np from collections import Counter from expression import Expr...
33.004739
88
0.610281
e717b01c2e809a5f11dea892bd8d7cf73464bad0
12,697
py
Python
tethysext/atcore/controllers/resource_workflows/resource_workflow_router.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
3
2020-11-05T23:50:47.000Z
2021-02-26T21:43:29.000Z
tethysext/atcore/controllers/resource_workflows/resource_workflow_router.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
7
2020-10-29T16:53:49.000Z
2021-05-07T19:46:47.000Z
tethysext/atcore/controllers/resource_workflows/resource_workflow_router.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
null
null
null
""" ******************************************************************************** * Name: resource_workflow_view.py * Author: nswain * Created On: November 19, 2018 * Copyright: (c) Aquaveo 2018 ******************************************************************************** """ import logging from sqlalchemy.exc im...
39.554517
119
0.60345
050e3bc55d4eaa91a7dd77d376af5f586133c3f5
25,962
py
Python
tests/test_observable/test_replay.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
tests/test_observable/test_replay.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
tests/test_observable/test_replay.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
import unittest import reactivex from reactivex import operators as ops from reactivex.testing import ReactiveTest, TestScheduler on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ...
31.430993
506
0.544719
d79c0ba8795ccc18c6e2efb754255d8bb1dbc735
187
py
Python
tests/context.py
rwilson4/bootstrap-sta
da9c373bbe8556e21e76167e80ac0cb2dbf07505
[ "Apache-2.0" ]
null
null
null
tests/context.py
rwilson4/bootstrap-sta
da9c373bbe8556e21e76167e80ac0cb2dbf07505
[ "Apache-2.0" ]
null
null
null
tests/context.py
rwilson4/bootstrap-sta
da9c373bbe8556e21e76167e80ac0cb2dbf07505
[ "Apache-2.0" ]
null
null
null
import sys import os sys.path.insert( 0, os.path.abspath( os.path.join(os.path.dirname(__file__), "..", "bootstrap_stat") ), ) import bootstrap_stat import datasets
14.384615
71
0.657754
f6d922bc93cf0528dc10bcb6b57ffa5c552e6bdc
7,423
py
Python
server/tests/test_iptools.py
natowi/pepi
22df696209ac2545d1e8e1cf0c8822725acadb29
[ "Apache-2.0" ]
4
2017-08-30T03:17:34.000Z
2019-09-24T08:57:41.000Z
server/tests/test_iptools.py
natowi/pepi
22df696209ac2545d1e8e1cf0c8822725acadb29
[ "Apache-2.0" ]
14
2017-09-02T03:53:14.000Z
2022-03-11T23:19:04.000Z
server/tests/test_iptools.py
natowi/pepi
22df696209ac2545d1e8e1cf0c8822725acadb29
[ "Apache-2.0" ]
3
2019-03-27T18:33:25.000Z
2021-07-17T02:18:19.000Z
import netifaces from server import IPTools # noinspection PyAttributeOutsideInit,PyPep8 class TestIPTools(object): """ Unit tests for IPTools module, mainly checking that it extracts the correct IPs from the netifaces package and that they are correctly formatted. """ def test_current_ip(sel...
49.818792
152
0.617136
8d1f5f2493f90f7b13e21f5f7737b770e53f3aee
1,737
py
Python
alfred/utils/mana.py
ckmessi/alfred
48f85f43ee89d4370e1ef5a5ce1158dffc0596d4
[ "Apache-2.0" ]
643
2018-02-04T14:15:28.000Z
2022-03-30T14:25:15.000Z
alfred/utils/mana.py
ckmessi/alfred
48f85f43ee89d4370e1ef5a5ce1158dffc0596d4
[ "Apache-2.0" ]
22
2019-07-26T15:51:19.000Z
2022-02-28T16:59:58.000Z
alfred/utils/mana.py
ckmessi/alfred
48f85f43ee89d4370e1ef5a5ce1158dffc0596d4
[ "Apache-2.0" ]
121
2018-02-21T05:33:31.000Z
2022-03-04T09:30:44.000Z
# # Copyright (c) 2020 JinTian. # # This file is part of alfred # (see http://jinfagang.github.io). # # 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 ...
37.76087
115
0.674151
8bd674e6a7fc70ab5122af454e3cb98a86acf01c
20,602
py
Python
test/test_grid_file.py
tony/mongo-python-driver
d43ca118f91dda373356802ee8ec976d96c366b9
[ "Apache-2.0" ]
2
2019-02-28T08:55:19.000Z
2019-02-28T08:55:31.000Z
test/test_grid_file.py
tony/mongo-python-driver
d43ca118f91dda373356802ee8ec976d96c366b9
[ "Apache-2.0" ]
null
null
null
test/test_grid_file.py
tony/mongo-python-driver
d43ca118f91dda373356802ee8ec976d96c366b9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2009-present MongoDB, 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 applicab...
33.122186
80
0.593438
18cfc7bf22d2b3c47278ae817ea521a71e77e200
5,614
py
Python
app/lms/tests/apis/test_edit_loan.py
SaurabhPanja/redcarpet-lms
6f3104a8b94fb27f0af57bc88f38c4929cfd03e8
[ "MIT" ]
null
null
null
app/lms/tests/apis/test_edit_loan.py
SaurabhPanja/redcarpet-lms
6f3104a8b94fb27f0af57bc88f38c4929cfd03e8
[ "MIT" ]
null
null
null
app/lms/tests/apis/test_edit_loan.py
SaurabhPanja/redcarpet-lms
6f3104a8b94fb27f0af57bc88f38c4929cfd03e8
[ "MIT" ]
null
null
null
from django.test import TestCase from lms.models import User, Loan, EditLoanHistory from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status import re from lms.utils import dprint import time from pprint import pprint from .helper_setUp_func import setUp_users class E...
43.184615
100
0.711079
3708c686d72cc27d9222e8555ddac13fd7181427
9,740
py
Python
src/doblib/action.py
initOS/dob-lib
a07ea11fb40d7bdc1714b96da52fbc89ed37fb7b
[ "Apache-2.0" ]
null
null
null
src/doblib/action.py
initOS/dob-lib
a07ea11fb40d7bdc1714b96da52fbc89ed37fb7b
[ "Apache-2.0" ]
null
null
null
src/doblib/action.py
initOS/dob-lib
a07ea11fb40d7bdc1714b96da52fbc89ed37fb7b
[ "Apache-2.0" ]
null
null
null
# © 2021 Florian Kantelberg (initOS GmbH) # License Apache-2.0 (http://www.apache.org/licenses/). import random import string import uuid from datetime import date, datetime, timedelta from . import base, env, utils ALNUM = string.ascii_letters + string.digits def load_action_arguments(args, actions=None): par...
34.910394
86
0.565708
14548b8a071b679cb6705cc8cd9306283370e027
1,567
py
Python
folks/app.py
marinintim/folks
2dce457c9d57da34626717667b942fa91f62385f
[ "MIT" ]
4
2019-12-02T20:04:55.000Z
2020-04-30T22:14:30.000Z
folks/app.py
marinintim/folks
2dce457c9d57da34626717667b942fa91f62385f
[ "MIT" ]
null
null
null
folks/app.py
marinintim/folks
2dce457c9d57da34626717667b942fa91f62385f
[ "MIT" ]
null
null
null
import click from flask import Flask, jsonify, request from flask_cors import CORS import logging from config import Config logger = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) app = Flask(__name__) app.config.from_object(Config) CORS(app) # lower than app = due to circular dependencies from...
23.044118
55
0.740906
90ca0125647abda8596b57625fd8016b57523ee8
33,045
py
Python
stable_baselines/td3/td3_mem.py
MouseHu/atten_baselines
ef79869a0a89ad73d2a3b3579c69a6a08d32f274
[ "MIT" ]
null
null
null
stable_baselines/td3/td3_mem.py
MouseHu/atten_baselines
ef79869a0a89ad73d2a3b3579c69a6a08d32f274
[ "MIT" ]
null
null
null
stable_baselines/td3/td3_mem.py
MouseHu/atten_baselines
ef79869a0a89ad73d2a3b3579c69a6a08d32f274
[ "MIT" ]
2
2020-12-07T03:12:18.000Z
2020-12-08T12:16:47.000Z
import time import warnings import numpy as np import tensorflow as tf from stable_baselines import logger from stable_baselines.common import tf_util, OffPolicyRLModel, SetVerbosity, TensorboardWriter from stable_baselines.common.vec_env import VecEnv from stable_baselines.common.math_util import safe_mean, unscale_...
52.452381
119
0.582115
e7f379548ebb0ca14d1a1a36e3c8eb78168127de
2,536
py
Python
pycondor/tests/test_visualize.py
GregoryAshton/pycondor
72423eac508c6d5ec79f8f3de71011ba61a38537
[ "MIT" ]
23
2017-05-16T21:37:07.000Z
2021-11-15T13:46:03.000Z
pycondor/tests/test_visualize.py
GregoryAshton/pycondor
72423eac508c6d5ec79f8f3de71011ba61a38537
[ "MIT" ]
83
2017-01-27T21:00:38.000Z
2022-02-10T16:27:54.000Z
pycondor/tests/test_visualize.py
GregoryAshton/pycondor
72423eac508c6d5ec79f8f3de71011ba61a38537
[ "MIT" ]
14
2017-04-05T15:40:37.000Z
2021-11-15T13:38:09.000Z
import pytest graphviz = pytest.importorskip('graphviz') # noqa: E402 import os import re from pycondor.job import Job from pycondor.dagman import Dagman from pycondor.visualize import visualize, extract_format, dag_to_graphviz from pycondor.utils import clear_pycondor_environment_variables clear_pycondor_environme...
27.268817
73
0.656151
1d41b1ad8ea1ce625eb5d29957feaf635f8bb1c8
7,879
py
Python
lxml/builder.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
1
2017-12-05T15:35:47.000Z
2017-12-05T15:35:47.000Z
lxml/builder.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
10
2017-07-13T00:24:03.000Z
2017-07-17T07:39:03.000Z
lxml_aws_binaries/lxml/builder.py
jersearls/cpap-filler
4106c6098d8caf13dcf1acad4366a8e0cc99db02
[ "MIT" ]
7
2017-08-01T04:02:07.000Z
2018-10-06T21:07:20.000Z
# # Element generator factory by Fredrik Lundh. # # Source: # http://online.effbot.org/2006_11_01_archive.htm#et-builder # http://effbot.python-hosting.com/file/stuff/sandbox/elementlib/builder.py # # -------------------------------------------------------------------- # The ElementTree toolkit is # # Copyright (...
33.52766
108
0.552989
fcae2e3846b7677b8be7ca813186bc423acb4fff
791
py
Python
async_stripe/api_resources/abstract/deletable_api_resource.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
8
2021-05-29T08:57:58.000Z
2022-02-19T07:09:25.000Z
async_stripe/api_resources/abstract/deletable_api_resource.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
5
2021-05-31T10:18:36.000Z
2022-01-25T11:39:03.000Z
async_stripe/api_resources/abstract/deletable_api_resource.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
1
2021-05-29T13:27:10.000Z
2021-05-29T13:27:10.000Z
from stripe import util from stripe.six.moves.urllib.parse import quote_plus from stripe.api_resources.abstract.deletable_api_resource import ( DeletableAPIResource, ) async def _cls_delete_patch(cls, sid, **params): url = "%s/%s" % (cls.class_url(), quote_plus(util.utf8(sid))) return await cls._static_re...
32.958333
80
0.777497
9507be01c14445bed7df1105de8c3a4c37a30532
266
py
Python
cracking_the_coding_interview_qs/17.14/get_k_smallest_test.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
cracking_the_coding_interview_qs/17.14/get_k_smallest_test.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
cracking_the_coding_interview_qs/17.14/get_k_smallest_test.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
import unittest from get_k_smallest import get_k_smallest class Test_Case_Get_K_Smallest(unittest.TestCase): def test_get_k_smallest(self): self.assertListEqual(get_k_smallest(3, list(range(30))), [0,1,2]) if __name__ == '__main__': unittest.main()
29.555556
73
0.755639
7edad150a42213d07cad7aed661c2b6b03c00631
534
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-dev/sowtestapp-4
ec084de3641536274f6acf66f4a575fd2652ded3
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-dev/sowtestapp-4
ec084de3641536274f6acf66f4a575fd2652ded3
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-dev/sowtestapp-4
ec084de3641536274f6acf66f4a575fd2652ded3
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "sowtestapp-4.botics.co" site_params = { "name": "SOWTestApp", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_create...
20.538462
61
0.655431
db022e99931a23b1b284bb9b5e9808bed4a4b062
12,370
py
Python
modules/api/functional_test/live_tests/shared_zone_test_context.py
dunn5/vinyldns
a8505d7130c9846c3ab2fec5722aa3e57585a28e
[ "Apache-2.0" ]
null
null
null
modules/api/functional_test/live_tests/shared_zone_test_context.py
dunn5/vinyldns
a8505d7130c9846c3ab2fec5722aa3e57585a28e
[ "Apache-2.0" ]
null
null
null
modules/api/functional_test/live_tests/shared_zone_test_context.py
dunn5/vinyldns
a8505d7130c9846c3ab2fec5722aa3e57585a28e
[ "Apache-2.0" ]
null
null
null
import time from vinyldns_python import VinylDNSClient from vinyldns_context import VinylDNSTestContext from hamcrest import * from utils import * class SharedZoneTestContext(object): """ Creates multiple zones to test authorization / access to shared zones across users """ def __init__(self): ...
44.818841
121
0.501132
735249eebd6af04c4542f65596dcc37e00053e23
56,995
py
Python
chives/rpc/wallet_rpc_api.py
HiveProject2021/chives-light-wallet
0c7c36bfc703b26ce3c938027de643dc90e4191f
[ "Apache-2.0" ]
7
2021-12-26T11:05:19.000Z
2022-02-24T10:42:45.000Z
chives/rpc/wallet_rpc_api.py
HiveProject2021/chives-light-wallet
0c7c36bfc703b26ce3c938027de643dc90e4191f
[ "Apache-2.0" ]
8
2021-12-14T17:27:29.000Z
2022-03-29T18:18:22.000Z
chives/rpc/wallet_rpc_api.py
HiveProject2021/chives-light-wallet
0c7c36bfc703b26ce3c938027de643dc90e4191f
[ "Apache-2.0" ]
1
2021-12-09T23:51:12.000Z
2021-12-09T23:51:12.000Z
import asyncio import logging from pathlib import Path from typing import Callable, Dict, List, Optional, Tuple, Any from blspy import PrivateKey, G1Element from chives.consensus.block_rewards import calculate_base_community_reward, calculate_base_farmer_reward, calculate_pool_reward from chives.pools.pool_wallet imp...
45.486832
137
0.608948
4f85a209e2f4321cced1f99692fa6d3706372441
3,461
py
Python
src/problem4.py
wenningr/08-Exam1-201920
fcfe19a43c186ccfcfe31f2c6c6160151cd45187
[ "MIT" ]
null
null
null
src/problem4.py
wenningr/08-Exam1-201920
fcfe19a43c186ccfcfe31f2c6c6160151cd45187
[ "MIT" ]
null
null
null
src/problem4.py
wenningr/08-Exam1-201920
fcfe19a43c186ccfcfe31f2c6c6160151cd45187
[ "MIT" ]
null
null
null
""" Exam 1, problem 4. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Aaron Wilkin, their colleagues, and PUT_YOUR_NAME_HERE. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. import rosegraphics as rg def main(): """ Calls the TEST functions i...
33.931373
79
0.56111
b64ab06dffd5254d58893f0dbbd4447b761c91aa
778
py
Python
var/spack/repos/builtin/packages/py-progressbar2/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/py-progressbar2/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/py-progressbar2/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
7
2018-09-13T18:04:56.000Z
2020-03-18T20:52:06.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyProgressbar2(PythonPackage): """A progress bar for Python 2 and Python 3""" homepa...
35.363636
96
0.735219
b5db8532236137896b77300aa1942a7c01119214
971
py
Python
python3/koans/triangle.py
ajl0176/python_koans
9ad986cda8543cb1a21ac76e0d269a4d9eedb82b
[ "MIT" ]
null
null
null
python3/koans/triangle.py
ajl0176/python_koans
9ad986cda8543cb1a21ac76e0d269a4d9eedb82b
[ "MIT" ]
null
null
null
python3/koans/triangle.py
ajl0176/python_koans
9ad986cda8543cb1a21ac76e0d269a4d9eedb82b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Triangle Project Code. # Triangle analyzes the lengths of the sides of a triangle # (represented by a, b and c) and returns the type of triangle. # # It returns: # 'equilateral' if all sides are equal # 'isosceles' if exactly 2 sides are equal # 'scalene' ...
29.424242
103
0.645726
14d6a4b7f1e75eb5e2dd89327ae2abaeac87d1fc
755
py
Python
Graphs/LeetCodeGraph/QuickUnion.py
yabur/LeetCode_Practice
d002dedf8f6694b9d313c8facf0d39e688decb15
[ "MIT" ]
null
null
null
Graphs/LeetCodeGraph/QuickUnion.py
yabur/LeetCode_Practice
d002dedf8f6694b9d313c8facf0d39e688decb15
[ "MIT" ]
null
null
null
Graphs/LeetCodeGraph/QuickUnion.py
yabur/LeetCode_Practice
d002dedf8f6694b9d313c8facf0d39e688decb15
[ "MIT" ]
null
null
null
# UnionFind class class UnionFind: def __init__(self, size): self.root = [i for i in range(size)] def find(self, x): while x != self.root[x]: x = self.root[x] return x def union(self, x, y): rootX = self.find(x) rootY = self.find(y) if rootX !=...
21.571429
44
0.556291
5fec09656cae8fb7d25b51156074c7d10bdacc71
27,229
py
Python
UncertainSCI/pce.py
SCIInstitute/UncertainSCI
16aa5b1a79c873391f32f4535d8b2592546f9233
[ "MIT" ]
1
2021-07-25T17:02:36.000Z
2021-07-25T17:02:36.000Z
UncertainSCI/pce.py
SCIInstitute/UncertainSCI
16aa5b1a79c873391f32f4535d8b2592546f9233
[ "MIT" ]
70
2020-04-09T17:38:12.000Z
2022-03-18T17:06:09.000Z
UncertainSCI/pce.py
SCIInstitute/UncertainSCI
16aa5b1a79c873391f32f4535d8b2592546f9233
[ "MIT" ]
7
2020-05-28T17:26:05.000Z
2021-08-13T21:41:10.000Z
from math import floor import numpy as np from UncertainSCI.indexing import MultiIndexSet, TotalDegreeSet from UncertainSCI.distributions import ProbabilityDistribution from UncertainSCI.utils.casting import to_numpy_array from UncertainSCI.utils.version import version_lessthan from UncertainSCI.utils.linalg import l...
39.348266
113
0.581953
6f825807710b411626d4d8130dc7b1ff21429419
372
py
Python
vbb/users/migrations/0002_user_date_of_birth.py
VillageBookBuilders/vbb-portal-packend
9563b492aa93f12fdfed41a905ff185182e97dd8
[ "MIT" ]
1
2022-03-30T18:12:49.000Z
2022-03-30T18:12:49.000Z
vbb/users/migrations/0002_user_date_of_birth.py
VillageBookBuilders/vbb-portal-backend
decdec392f7bd585b73e5554b20c17baea5d133d
[ "MIT" ]
22
2022-02-28T02:37:03.000Z
2022-03-28T02:32:35.000Z
vbb/users/migrations/0002_user_date_of_birth.py
VillageBookBuilders/vbb-portal-packend
9563b492aa93f12fdfed41a905ff185182e97dd8
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-04-20 23:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='date_of_birth', ...
19.578947
47
0.583333
d06b2a1f6975c339643f7ab2099c884429ffc33f
13,531
py
Python
luigi/contrib/postgres.py
nathantsoi/luigi
a5f95fe2381f74ed083aa1a5004279d76fafa72f
[ "Apache-2.0" ]
5
2015-02-26T18:52:56.000Z
2017-07-07T05:47:18.000Z
luigi/contrib/postgres.py
nathantsoi/luigi
a5f95fe2381f74ed083aa1a5004279d76fafa72f
[ "Apache-2.0" ]
6
2015-02-10T17:09:21.000Z
2022-03-22T10:16:09.000Z
luigi/contrib/postgres.py
nathantsoi/luigi
a5f95fe2381f74ed083aa1a5004279d76fafa72f
[ "Apache-2.0" ]
9
2015-01-26T14:47:57.000Z
2020-07-07T17:01:25.000Z
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
34.606138
142
0.593969
7eb5768826066dbc24698167ba588889e82a6aac
4,169
py
Python
cinemasci/cview/__init__.py
utkarshayachit/cinemasci
a06218b2ab6bad7f7c2a68296a4d69297b9302a8
[ "BSD-3-Clause" ]
null
null
null
cinemasci/cview/__init__.py
utkarshayachit/cinemasci
a06218b2ab6bad7f7c2a68296a4d69297b9302a8
[ "BSD-3-Clause" ]
null
null
null
cinemasci/cview/__init__.py
utkarshayachit/cinemasci
a06218b2ab6bad7f7c2a68296a4d69297b9302a8
[ "BSD-3-Clause" ]
null
null
null
import cinemasci import http.server import socketserver from urllib.parse import urlparse from urllib.parse import parse_qs from os import path from os.path import relpath from os import getcwd from os import access from os import R_OK import pathlib # # global variables - can't seem to add an instance variable to the...
34.741667
89
0.614296
03629efe5ba34a829d8a1230db06dd2e957fbcff
1,707
py
Python
tech/entities/processed_lingo.py
fferegrino/techlingo.fyi
0ed41160b4a8c854f9f0c9104ce619e73c2c7e26
[ "MIT" ]
4
2021-06-20T00:53:19.000Z
2022-02-04T19:26:12.000Z
tech/entities/processed_lingo.py
fferegrino/techlingo.fyi
0ed41160b4a8c854f9f0c9104ce619e73c2c7e26
[ "MIT" ]
16
2021-06-15T06:10:15.000Z
2021-07-20T19:02:11.000Z
tech/entities/processed_lingo.py
fferegrino/techlingo.fyi
0ed41160b4a8c854f9f0c9104ce619e73c2c7e26
[ "MIT" ]
1
2021-06-20T03:03:42.000Z
2021-06-20T03:03:42.000Z
from dataclasses import asdict, dataclass from pathlib import Path from typing import List from tech.entities import languages from tech.entities.author import Author from tech.entities.lingo import Lingo @dataclass class ProcessedLingo: original_title: str localised_title: str identifier: str conten...
25.477612
87
0.610428
4a67a5ec035e8e298c5f79e2b21f639e0b74bb14
1,160
py
Python
core/migrations/0015_auto_20180822_1456.py
kaedroho/dit-directory-cms
67c15eeed19e7b3583f1fce1969230ddf83b6813
[ "MIT" ]
null
null
null
core/migrations/0015_auto_20180822_1456.py
kaedroho/dit-directory-cms
67c15eeed19e7b3583f1fce1969230ddf83b6813
[ "MIT" ]
null
null
null
core/migrations/0015_auto_20180822_1456.py
kaedroho/dit-directory-cms
67c15eeed19e7b3583f1fce1969230ddf83b6813
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-08-22 14:56 from __future__ import unicode_literals from directory_constants.constants import cms from django.db import migrations def add_service_name_to_existing_apps(apps, schema_editor): InvestApp = apps.get_model('invest', 'InvestApp') FASApp...
34.117647
88
0.722414
9b0524977219ded1ac54967d09b1d050510f5ae7
2,915
py
Python
qa/rpc-tests/zapwallettxes.py
NoirX/NoirShares
f4552e470da178ce8a04d9a1a01c37763fb5412e
[ "MIT" ]
null
null
null
qa/rpc-tests/zapwallettxes.py
NoirX/NoirShares
f4552e470da178ce8a04d9a1a01c37763fb5412e
[ "MIT" ]
null
null
null
qa/rpc-tests/zapwallettxes.py
NoirX/NoirShares
f4552e470da178ce8a04d9a1a01c37763fb5412e
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The NoirShares Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import NoirSharesTestFramework from test_framework.util import * ...
37.857143
106
0.650086