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
429e737dd096aa2405fe7eaeb9e70178d91d5a27
6,445
py
Python
seq2seq/test/metrics_test.py
soupstandstop/test
ad3f185b8041d3fa611f387291ee8106439353b6
[ "Apache-2.0" ]
6,053
2017-03-13T00:58:43.000Z
2022-03-31T08:05:00.000Z
seq2seq/test/metrics_test.py
soupstandstop/test
ad3f185b8041d3fa611f387291ee8106439353b6
[ "Apache-2.0" ]
319
2017-03-13T09:26:53.000Z
2022-03-21T20:39:49.000Z
seq2seq/test/metrics_test.py
soupstandstop/test
ad3f185b8041d3fa611f387291ee8106439353b6
[ "Apache-2.0" ]
1,527
2017-03-13T02:02:00.000Z
2022-03-27T03:06:37.000Z
# -*- coding: utf-8 -*- # Copyright 2017 Google 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 ...
30.690476
79
0.646548
c5d3849b4690a1a3708ad730715da42d09e8cfe4
311
py
Python
colibris/authentication/exceptions.py
AMecea/colibris
068b7cbc4ed328dd9f3b4c40c5227b026589b028
[ "BSD-3-Clause" ]
6
2019-06-22T19:36:10.000Z
2021-11-16T08:07:21.000Z
colibris/authentication/exceptions.py
AMecea/colibris
068b7cbc4ed328dd9f3b4c40c5227b026589b028
[ "BSD-3-Clause" ]
34
2019-07-07T18:01:41.000Z
2020-11-01T16:14:58.000Z
colibris/authentication/exceptions.py
AMecea/colibris
068b7cbc4ed328dd9f3b4c40c5227b026589b028
[ "BSD-3-Clause" ]
2
2020-09-01T13:07:17.000Z
2021-07-29T12:16:29.000Z
class AuthenticationException(Exception): pass class NoSuchAccount(AuthenticationException): def __init__(self): super().__init__('no such account') class IdentityVerificationFailed(AuthenticationException): def __init__(self): super().__init__('identity verification failed')
20.733333
58
0.742765
6f3712bea86b875db7045c49c0494cd5dabfcf97
1,472
py
Python
www/oldhawaii_metadata/apps/api/sources_views.py
oldhawaii/oldhawaii-metadata
838de68bb5e3aa137fe3dab4a02509fedfe829ac
[ "MIT" ]
1
2015-08-16T07:08:03.000Z
2015-08-16T07:08:03.000Z
www/oldhawaii_metadata/apps/api/sources_views.py
oldhawaii/oldhawaii-metadata
838de68bb5e3aa137fe3dab4a02509fedfe829ac
[ "MIT" ]
null
null
null
www/oldhawaii_metadata/apps/api/sources_views.py
oldhawaii/oldhawaii-metadata
838de68bb5e3aa137fe3dab4a02509fedfe829ac
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from flask import Blueprint from flask import jsonify from flask import request from flask.ext.login import login_required import json from .utilities import ResourceApiClient BASE_API_URL = 'http://127.0.0.1:5001' sources_api = Blueprint( 'sources_api', __name__, ur...
25.37931
55
0.706522
49ed330cd594387dc0a9f5aa2e7dc15724d40e95
690
py
Python
UniGrammarRuntime/FormatMetadata.py
UniGrammar/UniGrammarRuntime.py
58097f1d03f35c346a0534d1eb821b98edd25ad5
[ "Unlicense" ]
null
null
null
UniGrammarRuntime/FormatMetadata.py
UniGrammar/UniGrammarRuntime.py
58097f1d03f35c346a0534d1eb821b98edd25ad5
[ "Unlicense" ]
null
null
null
UniGrammarRuntime/FormatMetadata.py
UniGrammar/UniGrammarRuntime.py
58097f1d03f35c346a0534d1eb821b98edd25ad5
[ "Unlicense" ]
null
null
null
import typing import warnings from UniGrammarRuntime.ToolMetadata import Product class FormatMetadata: __slots__ = ("product", "grammarExtensions") def __init__(self, grammarExtensions: typing.Optional[typing.Union[typing.Tuple[str, str], typing.Tuple[str]]] = None, product: typing.Optional[Product] = None) -> No...
32.857143
170
0.76087
2257f31fdff617c53e3f54bda8042cfc7ed2d580
395
py
Python
ss/bundles/migrations/0002_bundle_bname.py
nishendra3/task_managent_tool
e228213df2c5d22e014e5efd8c7e1011160cf3ef
[ "MIT" ]
null
null
null
ss/bundles/migrations/0002_bundle_bname.py
nishendra3/task_managent_tool
e228213df2c5d22e014e5efd8c7e1011160cf3ef
[ "MIT" ]
null
null
null
ss/bundles/migrations/0002_bundle_bname.py
nishendra3/task_managent_tool
e228213df2c5d22e014e5efd8c7e1011160cf3ef
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-05-23 09:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bundles', '0001_initial'), ] operations = [ migrations.AddField( model_name='bundle', name='bname', field=...
20.789474
75
0.594937
c031f0477725253b7fb217f678e0a1bbf41efbc1
9,225
py
Python
tests/test_legacy.py
Jude188/pyusb
29494039ad5b127eb46e8601b06970b7c3faa108
[ "BSD-3-Clause" ]
1
2019-12-22T16:45:17.000Z
2019-12-22T16:45:17.000Z
tests/test_legacy.py
Jude188/pyusb
29494039ad5b127eb46e8601b06970b7c3faa108
[ "BSD-3-Clause" ]
null
null
null
tests/test_legacy.py
Jude188/pyusb
29494039ad5b127eb46e8601b06970b7c3faa108
[ "BSD-3-Clause" ]
2
2019-09-23T03:27:53.000Z
2022-03-11T01:33:36.000Z
# Copyright (C) 2009-2017 Wander Lairson Costa # Copyright (C) 2017-2018 Robert Wlodarczyk # # 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 #...
34.811321
107
0.577453
772e8610c4be60aa67bfa9b443579533be21d61f
3,517
py
Python
papertrack/core/Configuration.py
fantastic001/papertrack
f5a13ccabf1836a60020eb65e2e998b6ba33d8bd
[ "MIT" ]
null
null
null
papertrack/core/Configuration.py
fantastic001/papertrack
f5a13ccabf1836a60020eb65e2e998b6ba33d8bd
[ "MIT" ]
null
null
null
papertrack/core/Configuration.py
fantastic001/papertrack
f5a13ccabf1836a60020eb65e2e998b6ba33d8bd
[ "MIT" ]
null
null
null
from collections import namedtuple from io import DEFAULT_BUFFER_SIZE import os import json Field = namedtuple("Field", ["name", "categories", "default_category"]) class Configuration: default_configuration = { "states": { "READY": { "READING": "Start reading", }, "READING": { "DONE"...
38.228261
124
0.656241
dee8d788ca6a73f7d2ddac0339e774530d28d292
270
py
Python
ratchet/__init__.py
bracket/ratchet
48c139ca040fe8318a39b61889a2ae6772bd5200
[ "MIT" ]
1
2016-12-07T03:39:32.000Z
2016-12-07T03:39:32.000Z
ratchet/__init__.py
bracket/ratchet
48c139ca040fe8318a39b61889a2ae6772bd5200
[ "MIT" ]
null
null
null
ratchet/__init__.py
bracket/ratchet
48c139ca040fe8318a39b61889a2ae6772bd5200
[ "MIT" ]
null
null
null
''' ratchet - sound generation tools for Python ratchet is a libary for constructing real and non-real time synthesizers. Most functionality is contained in the in generator and runner modules. ''' __version__ = '0.1.0' from . import generator from . import runner
20.769231
73
0.762963
366c69c3d7647e7e9d6a004184054433796c7b38
10,982
py
Python
tests/test_dedupe.py
NickCrews/dedupe
05ed2d81702d0d7557741f6a1e5b0cee13e42729
[ "MIT" ]
null
null
null
tests/test_dedupe.py
NickCrews/dedupe
05ed2d81702d0d7557741f6a1e5b0cee13e42729
[ "MIT" ]
null
null
null
tests/test_dedupe.py
NickCrews/dedupe
05ed2d81702d0d7557741f6a1e5b0cee13e42729
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import itertools import numpy import dedupe DATA = { 100: {"name": "Bob", "age": "50"}, 105: {"name": "Charlie", "age": "75"}, 110: {"name": "Meredith", "age": "40"}, 115: {"name": "Sue", "age": "10"}, 120: {"name": "Jimmy", "age": "20"}, 125: {"name":...
34.534591
88
0.457294
7a1059ff1897f0ee6e2a9a88954886da1492e4bb
122
py
Python
veronica/commands/calc.py
nirmalhk7/veronica-cli
512d61d490b9c0ff2e2c745fe2664d89fde01a92
[ "MIT" ]
null
null
null
veronica/commands/calc.py
nirmalhk7/veronica-cli
512d61d490b9c0ff2e2c745fe2664d89fde01a92
[ "MIT" ]
19
2021-11-01T13:56:31.000Z
2021-11-30T16:20:46.000Z
veronica/commands/calc.py
nirmalhk7/veronica-cli
512d61d490b9c0ff2e2c745fe2664d89fde01a92
[ "MIT" ]
null
null
null
def do_calc(self, args): inpstr = args.split(' ')[0] self.output.print("Your result is {}".format(eval(inpstr)))
24.4
63
0.631148
ae5eac41aa9f63ddf16d19636f7d98cb87877009
2,028
py
Python
IPython/utils/syspathcontext.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
2
2020-11-30T14:04:30.000Z
2021-11-08T11:29:05.000Z
IPython/utils/syspathcontext.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
3
2015-04-01T13:14:57.000Z
2015-05-26T16:01:37.000Z
IPython/utils/syspathcontext.py
dchichkov/ipython
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
[ "BSD-3-Clause-Clear" ]
1
2015-05-17T14:14:26.000Z
2015-05-17T14:14:26.000Z
# encoding: utf-8 """ Context managers for adding things to sys.path temporarily. Authors: * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license...
28.971429
78
0.456114
70d77807c4001b21d4759082c48456b1ceaea3ae
1,448
py
Python
admin_tools_stats/admin.py
afkmamunbd/django-admin-tools-stats
b68fa8a1ffe6d73cb7e931450d95159cdeecd5bc
[ "MIT" ]
204
2015-04-08T22:58:27.000Z
2022-02-27T21:59:33.000Z
admin_tools_stats/admin.py
afkmamunbd/django-admin-tools-stats
b68fa8a1ffe6d73cb7e931450d95159cdeecd5bc
[ "MIT" ]
39
2015-07-08T14:55:50.000Z
2021-11-22T14:31:03.000Z
admin_tools_stats/admin.py
afkmamunbd/django-admin-tools-stats
b68fa8a1ffe6d73cb7e931450d95159cdeecd5bc
[ "MIT" ]
40
2015-06-30T09:53:50.000Z
2022-02-21T01:23:57.000Z
# # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (C) 2011-2014 Star2Billing S.L. # # The Initial Developer of the Original Code is # Arezqui Belaid <info@...
33.674419
95
0.736188
f477e979ca37095d97a09075aa5c24f4819b7215
2,080
py
Python
ch05/q5-02.py
iamnicoj/ctci
f71f995cb3d3257d3d58f1f167fcab8eaf84d457
[ "MIT" ]
null
null
null
ch05/q5-02.py
iamnicoj/ctci
f71f995cb3d3257d3d58f1f167fcab8eaf84d457
[ "MIT" ]
3
2021-03-19T14:35:27.000Z
2021-03-20T16:12:34.000Z
ch05/q5-02.py
iamnicoj/ctci
f71f995cb3d3257d3d58f1f167fcab8eaf84d457
[ "MIT" ]
null
null
null
def number_to_binary_str(number): if number == 0: return "0" result = '' while number > 1: flag = number % 2 result = str(flag) + result number = number // 2; result = str(number) + result return result # print(number_to_binary_str(0)) # print(number_to_binary_str(1...
20
55
0.598558
883761f12bb78e13e8962d2949351a23c2cdb374
12,465
py
Python
models/networks.py
hkwon214/pGan-cGan-APT
4ced92da90948657129a4618f8edc750553b17d5
[ "BSD-3-Clause" ]
28
2019-05-29T22:46:06.000Z
2022-02-14T01:49:18.000Z
models/networks.py
MahmutYurt0/pGAN-cGAN
b4ca7047cb98c5b81014912ed6f58dc0ed501c5f
[ "BSD-3-Clause" ]
4
2019-10-07T12:56:05.000Z
2020-11-16T09:22:43.000Z
models/networks.py
MahmutYurt0/pGAN-cGAN
b4ca7047cb98c5b81014912ed6f58dc0ed501c5f
[ "BSD-3-Clause" ]
15
2019-08-22T15:03:06.000Z
2022-02-14T01:49:20.000Z
import torch import torch.nn as nn from torch.nn import init import functools from torch.autograd import Variable from torch.optim import lr_scheduler ############################################################################### # Functions #############################################################################...
36.554252
146
0.597272
e9f882fbfd5da0c37993f9cb69c491834236fbd6
8,571
py
Python
model_verbq_iter_rolerepnlq.py
thilinicooray/mac-network-pytorch
0e4bf3f7f301570b652490f697758361c866f3c1
[ "MIT" ]
null
null
null
model_verbq_iter_rolerepnlq.py
thilinicooray/mac-network-pytorch
0e4bf3f7f301570b652490f697758361c866f3c1
[ "MIT" ]
null
null
null
model_verbq_iter_rolerepnlq.py
thilinicooray/mac-network-pytorch
0e4bf3f7f301570b652490f697758361c866f3c1
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from attention import Attention, NewAttention from language_model import WordEmbedding, QuestionEmbedding from classifier import SimpleClassifier from fc import FCNet import torch.nn.functional as F import torchvision as tv import utils import numpy as np import model_roles_recqa_nose...
33.22093
130
0.635515
74d1a3c471bebadf67484bd4ac15366d144a92b5
33,475
py
Python
icarus/models/cache/tests/test_policies.py
oascigil/icarus_edge_comp
b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b
[ "MIT" ]
5
2021-03-20T09:22:55.000Z
2021-12-20T17:01:33.000Z
icarus/models/cache/tests/test_policies.py
oascigil/icarus_edge_comp
b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b
[ "MIT" ]
1
2021-12-13T07:40:46.000Z
2021-12-20T16:59:08.000Z
icarus/models/cache/tests/test_policies.py
oascigil/icarus_edge_comp
b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b
[ "MIT" ]
1
2021-11-25T05:42:20.000Z
2021-11-25T05:42:20.000Z
# -*- coding: utf-8 -*- from __future__ import division import unittest import collections import numpy as np import icarus.models as cache class TestLinkedSet(unittest.TestCase): def link_consistency(self, linked_set): """Checks that links of a linked set are consistent iterating from top or fr...
32.094919
85
0.547543
8505aee05f90f999347b687349fdfd7c7caf1a0f
3,010
py
Python
fluid/PaddleCV/caffe2fluid/kaffe/custom_layers/__init__.py
awesome-archive/models-1
747f947eff1511d3291d86dcd27736214dfbf2bc
[ "Apache-2.0" ]
3
2019-04-29T09:12:21.000Z
2021-04-30T02:39:02.000Z
fluid/PaddleCV/caffe2fluid/kaffe/custom_layers/__init__.py
ThinkPeace/models
5d25e00c94943e50e64780a244136f88f13c0a88
[ "Apache-2.0" ]
2
2019-06-26T03:21:49.000Z
2019-09-19T09:43:42.000Z
fluid/PaddleCV/caffe2fluid/kaffe/custom_layers/__init__.py
ThinkPeace/models
5d25e00c94943e50e64780a244136f88f13c0a88
[ "Apache-2.0" ]
2
2019-05-06T12:10:15.000Z
2019-09-01T04:28:10.000Z
""" """ from .register import get_registered_layers #custom layer import begins import axpy import flatten import argmax import reshape import roipooling import priorbox import permute import detection_out import normalize import select import crop import power import reduction #custom layer import ends custom_laye...
26.173913
79
0.678738
65694a97d1cc7fce7b067f619cb139d7c477cdd6
6,713
py
Python
gaps/edge/crossover.py
weiyuhan/gaps
47582d34a6d6395a0b0b75dffca6c94839d4abf1
[ "MIT" ]
null
null
null
gaps/edge/crossover.py
weiyuhan/gaps
47582d34a6d6395a0b0b75dffca6c94839d4abf1
[ "MIT" ]
null
null
null
gaps/edge/crossover.py
weiyuhan/gaps
47582d34a6d6395a0b0b75dffca6c94839d4abf1
[ "MIT" ]
1
2020-05-20T12:14:56.000Z
2020-05-20T12:14:56.000Z
import random import heapq from gaps.edge.image_analysis import ImageAnalysis from gaps.edge.individual import Individual SHARED_PIECE_PRIORITY = -10 BUDDY_PIECE_PRIORITY = -1 class Crossover(object): def __init__(self, first_parent, second_parent): self._parents = (first_parent, second_parent) ...
38.58046
111
0.673767
157f354ce5addd4106100589183b2cfc7ae512e2
2,038
py
Python
scripts/helpers/clang-tidy-launcher.py
mykrupp/connectedhomeip-1
c6ca8bde66f76fa95b0383e2faa6a67c74cef2c3
[ "Apache-2.0" ]
null
null
null
scripts/helpers/clang-tidy-launcher.py
mykrupp/connectedhomeip-1
c6ca8bde66f76fa95b0383e2faa6a67c74cef2c3
[ "Apache-2.0" ]
null
null
null
scripts/helpers/clang-tidy-launcher.py
mykrupp/connectedhomeip-1
c6ca8bde66f76fa95b0383e2faa6a67c74cef2c3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env -S python3 -B # Copyright (c) 2021 Project CHIP 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 a...
27.173333
81
0.647203
024a097aa0c76e49cd929be9d61242eb2b5d4553
5,657
py
Python
test/functional/rpc_getdescriptorinfo.py
robbelouwet/Elixir
609412402c5dd4fb9d77ae6d87505d8efd608132
[ "MIT" ]
null
null
null
test/functional/rpc_getdescriptorinfo.py
robbelouwet/Elixir
609412402c5dd4fb9d77ae6d87505d8efd608132
[ "MIT" ]
null
null
null
test/functional/rpc_getdescriptorinfo.py
robbelouwet/Elixir
609412402c5dd4fb9d77ae6d87505d8efd608132
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2019-2020 The Elixir Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test getdescriptorinfo RPC. """ from test_framework.test_framework import ElixirTestFramework from test...
84.432836
328
0.78805
011ad55a028ebb6e6f479ac64f38eb4482c51d50
9,863
py
Python
docs/conf.py
matsuuran/hil
27963f5f401e320b2da7409498b0220ea66b7e9c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/conf.py
matsuuran/hil
27963f5f401e320b2da7409498b0220ea66b7e9c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/conf.py
matsuuran/hil
27963f5f401e320b2da7409498b0220ea66b7e9c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # HIL documentation build configuration file, created by # sphinx-quickstart on Tue Sep 20 13:24:57 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
28.423631
80
0.700294
964c550c7c05baeab5865189e790178711d3d778
5,402
py
Python
kornia/utils/image.py
dhernandez0/kornia
4014903163b4b840d32a28928353567339bd75fa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/utils/image.py
dhernandez0/kornia
4014903163b4b840d32a28928353567339bd75fa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/utils/image.py
dhernandez0/kornia
4014903163b4b840d32a28928353567339bd75fa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from functools import wraps from typing import TYPE_CHECKING import torch import torch.nn as nn if TYPE_CHECKING: import numpy as np def image_to_tensor(image: "np.ndarray", keepdim: bool = True) -> torch.Tensor: """Convert a numpy image to a PyTorch 4d tensor image. Args: image: image of the f...
30.868571
108
0.575898
3fa04b6ba385db8722e9438be70fb0b02a0da198
883
py
Python
htmlformat.py
dougmassay/appveyor-testing
6b271ec5950bc23673669d297a1db2ebf493fcfe
[ "MIT" ]
1
2021-03-20T01:50:18.000Z
2021-03-20T01:50:18.000Z
htmlformat.py
dougmassay/appveyor-testing
6b271ec5950bc23673669d297a1db2ebf493fcfe
[ "MIT" ]
null
null
null
htmlformat.py
dougmassay/appveyor-testing
6b271ec5950bc23673669d297a1db2ebf493fcfe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai from __future__ import unicode_literals, division, absolute_import, print_function import textwrap import regex import sigil_gumbo_bs4_adapter as gumbo_bs4 HTML = textwrap.dedent('''<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBL...
24.527778
86
0.659117
3d7d9dce1864771ff2bac4e3d76e46aef8f304db
24,076
py
Python
detectron/modeling/model_builder.py
corelab-src/Detectron
010d86afa1a15fde2161879398f6e4b6b0cd189b
[ "Apache-2.0" ]
3
2020-04-30T13:21:43.000Z
2020-05-22T12:48:34.000Z
detectron/modeling/model_builder.py
corelab-src/Detectron
010d86afa1a15fde2161879398f6e4b6b0cd189b
[ "Apache-2.0" ]
null
null
null
detectron/modeling/model_builder.py
corelab-src/Detectron
010d86afa1a15fde2161879398f6e4b6b0cd189b
[ "Apache-2.0" ]
3
2020-05-22T12:48:22.000Z
2021-02-21T13:52:07.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...
35.405882
127
0.659952
9c2003bf51f3c5babbaa0c74463e9c15f1aef490
1,128
py
Python
climetlab/__init__.py
rragrawal/climetlab
3859f5cb05c15edcddb0f528d4c6dbc67fb09bb4
[ "Apache-2.0" ]
1
2021-10-02T12:30:12.000Z
2021-10-02T12:30:12.000Z
climetlab/__init__.py
rragrawal/climetlab
3859f5cb05c15edcddb0f528d4c6dbc67fb09bb4
[ "Apache-2.0" ]
null
null
null
climetlab/__init__.py
rragrawal/climetlab
3859f5cb05c15edcddb0f528d4c6dbc67fb09bb4
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2020 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmenta...
23.020408
78
0.748227
465a8e27a1e18061531a9c90a9b863c4bbd194d0
2,787
py
Python
LAUG/util/multiwoz/lexicalize.py
wise-east/LAUG
c5fc674e76a0a20622a77301f9986ad58713d58d
[ "Apache-2.0" ]
10
2021-07-10T12:40:42.000Z
2022-03-14T07:51:06.000Z
LAUG/util/multiwoz/lexicalize.py
wise-east/LAUG
c5fc674e76a0a20622a77301f9986ad58713d58d
[ "Apache-2.0" ]
5
2021-07-01T11:23:58.000Z
2021-09-09T05:51:02.000Z
LAUG/util/multiwoz/lexicalize.py
wise-east/LAUG
c5fc674e76a0a20622a77301f9986ad58713d58d
[ "Apache-2.0" ]
2
2021-09-13T16:26:42.000Z
2021-11-16T09:26:54.000Z
from copy import deepcopy from LAUG.util.multiwoz.multiwoz_slot_trans import REF_SYS_DA def delexicalize_da(da, requestable): delexicalized_da = [] counter = {} for intent, domain, slot, value in da: if intent in requestable: v = '?' else: if slot=='none': ...
32.788235
119
0.484751
ed71df74a21575263e55efca4b2b2de800e2c1fc
1,618
py
Python
alarmist.py
popoffka/alarmist
a069a1eba1ccbd72fcc0a548b3bf4d56f300aea6
[ "MIT" ]
1
2016-04-10T15:27:53.000Z
2016-04-10T15:27:53.000Z
alarmist.py
popoffka/alarmist
a069a1eba1ccbd72fcc0a548b3bf4d56f300aea6
[ "MIT" ]
null
null
null
alarmist.py
popoffka/alarmist
a069a1eba1ccbd72fcc0a548b3bf4d56f300aea6
[ "MIT" ]
null
null
null
from AlarmistExceptions import * from PeriodicTimer import PeriodicTimer import os class Alarmist(): def __init__(self, panic, panicOptions, sensor, sensorOptions, UI, UIOptions, initState, timeout): self.state = initState self.panicM = panic(panicOptions) self.sensor = sensor(sensorOptions, self.panic, self.st...
24.149254
99
0.720643
6f70e09430220391c5a6094793a7c0823d807c7a
10,872
py
Python
Buzznauts/analysis/baseline.py
eduardojdiniz/Buzznauts
8ac242a8d5309b4090a0f0b148ec275cac762bc0
[ "MIT" ]
2
2021-08-03T15:07:04.000Z
2022-03-02T15:10:07.000Z
Buzznauts/analysis/baseline.py
eduardojdiniz/Buzznauts
8ac242a8d5309b4090a0f0b148ec275cac762bc0
[ "MIT" ]
8
2021-08-04T14:21:14.000Z
2021-08-16T21:07:12.000Z
Buzznauts/analysis/baseline.py
eduardojdiniz/Buzznauts
8ac242a8d5309b4090a0f0b148ec275cac762bc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 import numpy as np import os import os.path as op import glob from Buzznauts.models.baseline.alexnet import get_imagenet_labels from Buzznauts.data.videodataframe import VideoFrameDataset, ImglistToTensor from Buzznauts.utils import seed_worker, set_generator, set_seed from Buzznau...
35.298701
79
0.640085
e72a8188d867e308aadbe17ae45f063147826f0b
15,675
py
Python
tools/experiments.py
lhutton1/benchmark-tvm
61c30e6590610ea3be8a28eaec4db828dcfa8993
[ "Apache-2.0" ]
1
2021-11-28T23:27:32.000Z
2021-11-28T23:27:32.000Z
tools/experiments.py
lhutton1/ga-dqn-tuner
61c30e6590610ea3be8a28eaec4db828dcfa8993
[ "Apache-2.0" ]
null
null
null
tools/experiments.py
lhutton1/ga-dqn-tuner
61c30e6590610ea3be8a28eaec4db828dcfa8993
[ "Apache-2.0" ]
null
null
null
import numpy as np import tvm from tvm import relay from tvm.relay import testing from tvm import autotvm from rl_tuner.ga_dqn_tuner_debug import GADQNTuner, RewardFunction from ga_tuner.ga_tuner import GATuner from .plots import * """ Run experiments for reinforcement learning tuning. """ target = tvm.target.Targe...
38.608374
160
0.617352
0efc6a4bc267a881174daa50cb877bf828481616
24,721
py
Python
speedyspotify/client.py
steinitzu/speedyspotify
727605ecaa0c38567c341ced79ef8110fccc3c67
[ "MIT" ]
1
2017-06-29T22:43:02.000Z
2017-06-29T22:43:02.000Z
speedyspotify/client.py
steinitzu/speedyspotify
727605ecaa0c38567c341ced79ef8110fccc3c67
[ "MIT" ]
null
null
null
speedyspotify/client.py
steinitzu/speedyspotify
727605ecaa0c38567c341ced79ef8110fccc3c67
[ "MIT" ]
null
null
null
from functools import partialmethod, partial, update_wrapper import json import inspect import math from requests.packages.urllib3.util.retry import Retry import requests from gevent.pool import Pool as GeventPool import gevent from .util import get_id, get_ids, find_item, get_uri, get_uris, chunked, extract_list d...
37.007485
116
0.613203
4f548f3dbe665f15aab425733f639494cee8b888
2,750
py
Python
catch/filter/tests/test_polya_filter.py
broadinstitute/catch
2fedca15f921116f580de8b2ae7ac9972932e59e
[ "MIT" ]
58
2018-01-24T16:31:37.000Z
2022-02-25T07:46:35.000Z
catch/filter/tests/test_polya_filter.py
broadinstitute/catch
2fedca15f921116f580de8b2ae7ac9972932e59e
[ "MIT" ]
29
2018-04-17T17:36:06.000Z
2022-02-25T11:48:58.000Z
catch/filter/tests/test_polya_filter.py
broadinstitute/catch
2fedca15f921116f580de8b2ae7ac9972932e59e
[ "MIT" ]
16
2018-05-23T12:19:41.000Z
2021-08-09T04:16:00.000Z
"""Tests for polya_filter module. """ import random import unittest from catch.filter import polya_filter from catch import probe __author__ = 'Hayden Metsky <hayden@mit.edu>' class TestPolyAFilter(unittest.TestCase): """Tests the polyA filter output on contrived input. """ def check_output(self, inpu...
38.194444
70
0.665455
160efd8c001fe117503506d3d99f70d268fbb337
11,907
py
Python
tests/test_apigw_stage.py
e-nastasia/api-gateway-ansible
bb9c387c7a4286f75769a1ec02d1bdc213dbd692
[ "MIT" ]
null
null
null
tests/test_apigw_stage.py
e-nastasia/api-gateway-ansible
bb9c387c7a4286f75769a1ec02d1bdc213dbd692
[ "MIT" ]
1
2019-03-22T15:59:48.000Z
2019-03-22T15:59:48.000Z
tests/test_apigw_stage.py
e-nastasia/api-gateway-ansible
bb9c387c7a4286f75769a1ec02d1bdc213dbd692
[ "MIT" ]
1
2021-08-17T12:11:15.000Z
2021-08-17T12:11:15.000Z
#!/usr/bin/python # TODO: License goes here import library.apigw_stage as apigw_stage from library.apigw_stage import ApiGwStage import mock from mock import patch from mock import create_autospec from mock import ANY import unittest import boto from botocore.exceptions import BotoCoreError, ClientError class TestApi...
34.917889
129
0.697069
723201eb6a1ea0071672059c828cfe01aa312b4d
40,397
py
Python
tools/gyp/pylib/gyp/msvs_emulation.py
WigWagCo/node
e6e85cbab339699420e4fb7ce4de9b0ba8d58d18
[ "Artistic-2.0" ]
1
2015-05-22T14:55:21.000Z
2015-05-22T14:55:21.000Z
tools/gyp/pylib/gyp/msvs_emulation.py
WigWagCo/node
e6e85cbab339699420e4fb7ce4de9b0ba8d58d18
[ "Artistic-2.0" ]
null
null
null
tools/gyp/pylib/gyp/msvs_emulation.py
WigWagCo/node
e6e85cbab339699420e4fb7ce4de9b0ba8d58d18
[ "Artistic-2.0" ]
null
null
null
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ This module helps emulate Visual Studio 2008 behavior on top of other build systems, primarily ninja. """ import os import re import subprocess import sys im...
44.24644
80
0.671634
b132dcd7055027d6290ecd294e282ffd5e3d069a
487
py
Python
habitat_sim/nav/__init__.py
xjwang-cs/habitat-sim
bb984fe8d2b8c9844bcfc1f121dd83fcb377aeda
[ "MIT" ]
1
2020-05-02T09:07:59.000Z
2020-05-02T09:07:59.000Z
habitat_sim/nav/__init__.py
xjwang-cs/habitat-sim
bb984fe8d2b8c9844bcfc1f121dd83fcb377aeda
[ "MIT" ]
null
null
null
habitat_sim/nav/__init__.py
xjwang-cs/habitat-sim
bb984fe8d2b8c9844bcfc1f121dd83fcb377aeda
[ "MIT" ]
null
null
null
from habitat_sim._ext.habitat_sim_bindings import ( GreedyFollowerCodes, GreedyGeodesicFollowerImpl, HitRecord, MultiGoalShortestPath, PathFinder, ShortestPath, VectorGreedyCodes, ) from .greedy_geodesic_follower import GreedyGeodesicFollower __all__ = [ "GreedyGeodesicFollower", "...
21.173913
60
0.735113
a2ef77057ebcbc88950023142df398750d0f63fc
1,899
py
Python
NCM/train.py
OpenXAIProject/Neural-Conversation-Models
72c2e71f0a5068733762078dfbb5f1405ea0be00
[ "MIT" ]
11
2020-11-24T00:05:50.000Z
2020-11-25T07:52:07.000Z
NCM/train.py
OpenXAIProject/Neural-Conversation-Models-Response-Evaluation
72c2e71f0a5068733762078dfbb5f1405ea0be00
[ "MIT" ]
null
null
null
NCM/train.py
OpenXAIProject/Neural-Conversation-Models-Response-Evaluation
72c2e71f0a5068733762078dfbb5f1405ea0be00
[ "MIT" ]
null
null
null
from utils import get_loader from config import get_config from utils import Vocab import os import solvers from utils import load_pickle if __name__ == '__main__': config = get_config(mode='train') val_config = get_config(mode='valid') with open(os.path.join(config.save_path, 'config.txt'), 'w') as f: ...
41.282609
99
0.642443
f6f35f3d8f0069b85959d4d762d303feb73aca61
25,485
py
Python
src/pretalx/orga/views/submission.py
hrchu/pretalx
cd7e5525f80c7290d9650065b4cf4f085032adfc
[ "Apache-2.0" ]
3
2020-03-28T06:21:27.000Z
2020-03-28T12:59:21.000Z
src/pretalx/orga/views/submission.py
hrchu/pretalx
cd7e5525f80c7290d9650065b4cf4f085032adfc
[ "Apache-2.0" ]
14
2020-03-27T22:46:38.000Z
2020-03-29T18:40:02.000Z
src/pretalx/orga/views/submission.py
hrchu/pretalx
cd7e5525f80c7290d9650065b4cf4f085032adfc
[ "Apache-2.0" ]
4
2020-03-21T10:33:20.000Z
2020-03-28T10:14:19.000Z
import datetime as dt import json from collections import Counter from contextlib import suppress from operator import itemgetter from dateutil import rrule from django.contrib import messages from django.contrib.syndication.views import Feed from django.db import transaction from django.db.models import Q from django...
33.799735
125
0.597646
328d0ec1f94a73bd3ea29c88b1dd394d0ea6d8cf
2,272
py
Python
masonite/drivers/broadcast/BroadcastPusherDriver.py
STejas6/core
0576d50093b4520915636a216ebb26aa72aea9d5
[ "MIT" ]
95
2018-02-22T23:54:00.000Z
2021-04-17T03:39:21.000Z
masonite/drivers/broadcast/BroadcastPusherDriver.py
STejas6/core
0576d50093b4520915636a216ebb26aa72aea9d5
[ "MIT" ]
840
2018-01-27T04:26:20.000Z
2021-01-24T12:28:58.000Z
masonite/drivers/broadcast/BroadcastPusherDriver.py
STejas6/core
0576d50093b4520915636a216ebb26aa72aea9d5
[ "MIT" ]
100
2018-02-23T00:19:55.000Z
2020-08-28T07:59:31.000Z
"""Module for the Pusher websocket driver.""" from masonite.contracts import BroadcastContract from masonite.drivers import BaseDriver from masonite.exceptions import DriverLibraryNotFound from masonite.helpers import config class BroadcastPusherDriver(BroadcastContract, BaseDriver): """Class for the Pusher webs...
31.123288
116
0.619718
406f9635551d2c14686276815a18565215764576
36,754
py
Python
examples/run_glue_probing_es_db.py
trishasingh/bert-lm-transferability
19df2aa7b9d76bc6fa7e96cb120b9cea65ffc806
[ "Apache-2.0" ]
null
null
null
examples/run_glue_probing_es_db.py
trishasingh/bert-lm-transferability
19df2aa7b9d76bc6fa7e96cb120b9cea65ffc806
[ "Apache-2.0" ]
null
null
null
examples/run_glue_probing_es_db.py
trishasingh/bert-lm-transferability
19df2aa7b9d76bc6fa7e96cb120b9cea65ffc806
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
43.911589
150
0.639468
b9aeb02ee4920873410702f7ee74569a8824b938
5,890
py
Python
src/poppi.py
nullfact0r/Poppi-QTpi
fd7c9e44bd4c7c43482b84a852baab156c97b6e4
[ "MIT" ]
6
2020-04-11T20:02:21.000Z
2021-01-13T00:51:59.000Z
src/poppi.py
nullfact0r/Poppi-QTpi
fd7c9e44bd4c7c43482b84a852baab156c97b6e4
[ "MIT" ]
12
2021-05-22T05:14:36.000Z
2022-02-01T12:08:50.000Z
src/poppi.py
nullfact0r/Poppi-QTpi
fd7c9e44bd4c7c43482b84a852baab156c97b6e4
[ "MIT" ]
null
null
null
import platform import discord from discord.ext import commands from pyArango.connection import Connection from pyArango.theExceptions import CreationError from api_helpers import APIUtils from config import Config from poppi_helpers import PoppiEmbed from profile_helpers import ProfileHelpers class Poppi(commands....
37.75641
119
0.539559
e3b07ea02050cedd058b5d11b0e60cbb65844278
4,500
py
Python
deepneuro/pipelines/Skull_Stripping/cli.py
QTIM-Lab/DeepR
96b16aac873089e0d766fea34ed428a59c9e9080
[ "MIT" ]
5
2019-02-07T08:03:13.000Z
2021-02-23T03:55:27.000Z
deepneuro/pipelines/Skull_Stripping/cli.py
QTIM-Lab/DeepR
96b16aac873089e0d766fea34ed428a59c9e9080
[ "MIT" ]
null
null
null
deepneuro/pipelines/Skull_Stripping/cli.py
QTIM-Lab/DeepR
96b16aac873089e0d766fea34ed428a59c9e9080
[ "MIT" ]
2
2019-10-09T11:17:22.000Z
2021-02-23T03:55:29.000Z
import argparse import sys import os from deepneuro.docker.docker_cli import nvidia_docker_wrapper class Skull_Stripping_cli(object): def __init__(self): parser = argparse.ArgumentParser( description='A number of pre-packaged commands used by the Quantiative Tumor Imaging Lab at the Martino...
52.325581
364
0.689333
e93649de451f4325c8641cb54f5f5620c46b7cfe
2,605
py
Python
homeassistant/components/lovelace/const.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
6
2017-08-02T19:26:39.000Z
2020-03-14T22:47:41.000Z
homeassistant/components/lovelace/const.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
57
2020-10-15T06:47:00.000Z
2022-03-31T06:11:18.000Z
homeassistant/components/lovelace/const.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Constants for Lovelace.""" from typing import Any import voluptuous as vol from homeassistant.const import CONF_ICON, CONF_TYPE, CONF_URL from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers import config_validation as cv from homeassistant.util import slugify DOMAIN = "lovelace" EVE...
27.712766
67
0.741267
00c3889f6990a576cdc768a0b8146480b5024703
22
py
Python
saspy/version.py
datasciencemonkey/saspy
4ddd44c3a6d5d75fc53aedc60cf114adf279bfc5
[ "Apache-2.0" ]
null
null
null
saspy/version.py
datasciencemonkey/saspy
4ddd44c3a6d5d75fc53aedc60cf114adf279bfc5
[ "Apache-2.0" ]
null
null
null
saspy/version.py
datasciencemonkey/saspy
4ddd44c3a6d5d75fc53aedc60cf114adf279bfc5
[ "Apache-2.0" ]
null
null
null
__version__ = '2.2.9'
11
21
0.636364
929b70e3b4c991f4a6e944aa31146693aff9ec6e
40,068
py
Python
spytest/tests/switching/test_vlan.py
macikgozwa/sonic-mgmt
86338be8b2e55fd03d4913037d0e641e443762b0
[ "Apache-2.0" ]
null
null
null
spytest/tests/switching/test_vlan.py
macikgozwa/sonic-mgmt
86338be8b2e55fd03d4913037d0e641e443762b0
[ "Apache-2.0" ]
1
2021-02-24T13:48:41.000Z
2021-02-24T13:48:41.000Z
spytest/tests/switching/test_vlan.py
macikgozwa/sonic-mgmt
86338be8b2e55fd03d4913037d0e641e443762b0
[ "Apache-2.0" ]
null
null
null
import pytest from spytest import st, tgapi, SpyTestDict from spytest.utils import random_vlan_list import apis.switching.vlan as vlan import apis.system.logging as slog import apis.switching.mac as mac import apis.system.storm_control as scapi import apis.system.interface as ifapi import apis.switching.portchannel a...
51.107143
151
0.686159
3c429fc167d4e876de60d33eeb655350cb7ed1b4
9,563
py
Python
carla/recourse_methods/catalog/actionable_recourse/model.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/recourse_methods/catalog/actionable_recourse/model.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/recourse_methods/catalog/actionable_recourse/model.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
from typing import Dict, Optional, Tuple import numpy as np import pandas as pd import recourse as rs from lime.lime_tabular import LimeTabularExplainer from carla import log from carla.recourse_methods.processing import encode_feature_names from ...api import RecourseMethod from ...processing.counterfactuals import...
36.5
123
0.623654
bf90304c3a47b44857fca8c1fd31d501c871a1de
1,151
py
Python
kattis/musicalnotation/musicalnotation.py
ShengyuanWang/ShengyuanWang.github.io
b43f867a1b140b78f8031725cff212b43ecd001b
[ "MIT" ]
1
2022-01-20T21:12:00.000Z
2022-01-20T21:12:00.000Z
kattis/musicalnotation/musicalnotation.py
ShengyuanWang/ShengyuanWang.github.io
b43f867a1b140b78f8031725cff212b43ecd001b
[ "MIT" ]
null
null
null
kattis/musicalnotation/musicalnotation.py
ShengyuanWang/ShengyuanWang.github.io
b43f867a1b140b78f8031725cff212b43ecd001b
[ "MIT" ]
null
null
null
nums = int(input()) notes = list(input().strip().split()) total = 0 for note in notes: if len(note) == 1: total += 2 else: total += (int(note[1])+1) total -= 1 dic = {} dic["G"] = [" " for _ in range(total)] dic["F"] = ["-" for _ in range(total)] dic["E"] = [" " for _ in range(total)] dic["D"] ...
25.021739
80
0.456125
3a64b14e30490c421c0859eb2476408b79a3fa95
406
py
Python
Vigenere_Cipher/Python/Valery S/VigenereCipher_test.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
1,184
2015-01-01T14:11:29.000Z
2022-03-21T19:40:47.000Z
Vigenere_Cipher/Python/Valery S/VigenereCipher_test.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
89
2015-01-01T15:49:17.000Z
2021-12-05T19:11:38.000Z
Vigenere_Cipher/Python/Valery S/VigenereCipher_test.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
388
2015-01-02T03:26:17.000Z
2022-03-24T14:36:10.000Z
#Tests for vigenere_cipher.py from VigenereCipher import VigenereCipher VC = VigenereCipher() assert(VC.cipher('take', 'care') == 'VABI') assert(VC.decipher('VABI', 'care') == 'TAKE') assert(VC.cipher('ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') == 'ACEGIKMOQSUWYACEGIKMOQSUWY') assert(VC.decipher('ACEGI...
50.75
111
0.785714
c500841cf25c5826c43c7a05d3e223f7eefc39d8
42,951
py
Python
src/sage/logic/boolformula.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
3
2019-07-15T13:48:24.000Z
2019-11-08T12:31:43.000Z
src/sage/logic/boolformula.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
2
2018-10-30T13:40:20.000Z
2020-07-23T12:13:30.000Z
src/sage/logic/boolformula.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
1
2020-07-23T10:29:58.000Z
2020-07-23T10:29:58.000Z
r""" Boolean Formulas Formulas consist of the operators ``&``, ``|``, ``~``, ``^``, ``->``, ``<->``, corresponding to ``and``, ``or``, ``not``, ``xor``, ``if...then``, ``if and only if``. Operators can be applied to variables that consist of a leading letter and trailing underscores and alphanumerics. Parentheses ma...
30.098809
124
0.517031
5aa75c2235cebab661e474e723d9de8dc931fc22
1,090
py
Python
archive/database_python.py
Google-DSC-UAlberta/Discord-Bot
3bf05f44b5154cbc6dde9711f6eb3922a4556d49
[ "MIT" ]
null
null
null
archive/database_python.py
Google-DSC-UAlberta/Discord-Bot
3bf05f44b5154cbc6dde9711f6eb3922a4556d49
[ "MIT" ]
null
null
null
archive/database_python.py
Google-DSC-UAlberta/Discord-Bot
3bf05f44b5154cbc6dde9711f6eb3922a4556d49
[ "MIT" ]
2
2022-03-11T19:49:47.000Z
2022-03-23T05:18:24.000Z
import sqlite3 import pandas as pd # Making the database information connection=sqlite3.connect("information.db") cur=connection.cursor() # Making the table USER # 1) USERNAME # 2) PASSWORD (encrypted) # 3) NOTIF_INTERVAL # 4) JOB_KEY # 5) LOCATION #cur.execute('''CREATE TABLE if not exists sorte...
24.772727
112
0.701835
0b04ea6348bcc5ed231894837a70c544205fc3de
3,981
py
Python
gastarme/purchases/tests/test_views.py
rafaeltardivo/gastarme
7e97e611118ab61885f5088a0df7ab1792b71e6e
[ "MIT" ]
null
null
null
gastarme/purchases/tests/test_views.py
rafaeltardivo/gastarme
7e97e611118ab61885f5088a0df7ab1792b71e6e
[ "MIT" ]
null
null
null
gastarme/purchases/tests/test_views.py
rafaeltardivo/gastarme
7e97e611118ab61885f5088a0df7ab1792b71e6e
[ "MIT" ]
null
null
null
from unittest.mock import patch from django.urls import reverse from rest_framework import status, test from purchases.models import Purchase from wallets.tests.factories import WalletFactory, CreditCardFactory from users.tests.factories import UserFactory from .factories import PurchaseFactory class TestPurchaseV...
30.860465
75
0.619945
4493a6240666c17cf88c5c9c9df2cad1cb782818
12,956
py
Python
idrlnet/pde_op/operator.py
zweien/idrlnet
3a19a3301d565c0906aac84ff31eefcff75726a8
[ "Apache-2.0" ]
66
2021-07-09T00:13:57.000Z
2022-03-28T08:09:43.000Z
idrlnet/pde_op/operator.py
zweien/idrlnet
3a19a3301d565c0906aac84ff31eefcff75726a8
[ "Apache-2.0" ]
3
2021-07-15T04:56:13.000Z
2021-10-09T07:43:20.000Z
idrlnet/pde_op/operator.py
zweien/idrlnet
3a19a3301d565c0906aac84ff31eefcff75726a8
[ "Apache-2.0" ]
22
2021-07-09T00:45:39.000Z
2022-03-17T00:59:56.000Z
"""Operators in PDE """ import numpy as np import sympy as sp import torch from idrlnet.node import Node from idrlnet.pde import PdeNode from sympy import Symbol, Function, symbols, Number from typing import Union, List from idrlnet.torch_util import integral, _replace_derivatives, torch_lambdify from idrlnet.variable...
30.34192
86
0.520917
b557733cff182c1cb0f00b0b6d5cfa8c0300d4d2
1,496
py
Python
openrave/python/examples/__init__.py
jdsika/TUM_HOly
a2ac55fa1751a3a8038cf61d29b95005f36d6264
[ "MIT" ]
2
2015-11-13T16:40:57.000Z
2017-09-15T15:37:19.000Z
openrave/python/examples/__init__.py
jdsika/holy
a2ac55fa1751a3a8038cf61d29b95005f36d6264
[ "MIT" ]
1
2016-06-13T01:29:51.000Z
2016-06-14T00:38:27.000Z
openrave/python/examples/__init__.py
jdsika/holy
a2ac55fa1751a3a8038cf61d29b95005f36d6264
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Examples showing common planning and usage scenarios. Unlike the tutorials, python examples are installed with openravepy and their list can be retrieved with: .. code-block:: bash openrave.py --listexamples Execute example ``X`` using: .. code-block:: bash openrave.py --example X Ea...
23.375
108
0.847594
f2fa78e2294b4daec7056e43dcd7946c57ed0922
109,029
py
Python
tests/regressiontests/forms/tests/forms.py
skyl/django
843e7450ddcb820b2bdc6d47d6c4aab9820a46c4
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/forms/tests/forms.py
skyl/django
843e7450ddcb820b2bdc6d47d6c4aab9820a46c4
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/forms/tests/forms.py
skyl/django
843e7450ddcb820b2bdc6d47d6c4aab9820a46c4
[ "BSD-3-Clause" ]
1
2021-09-14T06:09:11.000Z
2021-09-14T06:09:11.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from django.core.files.uploadedfile import SimpleUploadedFile from django.forms import * from django.http import QueryDict from django.template import Template, Context from django.test import TestCase from django.test.utils import str_pr...
60.571667
519
0.63717
3ee09d2a676b534cb38f11fadeb07e27dea20839
1,261
py
Python
docker/storperf-master/storperf/db/test_results_db.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
docker/storperf-master/storperf/db/test_results_db.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
docker/storperf-master/storperf/db/test_results_db.py
hashnfv/hashnfv-storperf
9eebe429ae9ec58a593611063da5b541634f8932
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2016 EMC and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # ht...
34.081081
78
0.542427
f9f7f0f0af14a245abfaf91d9d6bfb39a60f7267
295
py
Python
example.py
MortezaHaddadi/travisA
170a8daf79c7a297c3c687e2f609834ab0729cda
[ "MIT" ]
null
null
null
example.py
MortezaHaddadi/travisA
170a8daf79c7a297c3c687e2f609834ab0729cda
[ "MIT" ]
1
2020-02-27T13:18:14.000Z
2020-02-27T13:18:14.000Z
example.py
MortezaHaddadi/travisA
170a8daf79c7a297c3c687e2f609834ab0729cda
[ "MIT" ]
1
2020-02-27T13:02:07.000Z
2020-02-27T13:02:07.000Z
def add(a, b): return a + b def test_add(): assert add(2, 3) == 5 assert add('space', 'ship') == 'spaceship' def subtract(a, b): return a - b # <--- fix this in step 8 # uncomment the following test in step 5 def test_subtract(): assert subtract(2, 3) == -1 # dummy
14.75
46
0.579661
8c2039d18ea6e544949ae009ce317b1465810f4e
389
py
Python
pyqt_dark_calculator/calculatorApp.py
yjg30737/pyqt-dark-calculator
f9dea7a4f3c1342d7966cdb906f5a6e170c05e36
[ "MIT" ]
1
2022-01-06T08:55:41.000Z
2022-01-06T08:55:41.000Z
pyqt_dark_calculator/calculatorApp.py
yjg30737/pyqt-dark-calculator
f9dea7a4f3c1342d7966cdb906f5a6e170c05e36
[ "MIT" ]
null
null
null
pyqt_dark_calculator/calculatorApp.py
yjg30737/pyqt-dark-calculator
f9dea7a4f3c1342d7966cdb906f5a6e170c05e36
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QApplication from pyqt_dark_calculator.calculator import Calculator import absresgetter from pyqt_new_window_handler import NewWindowHandler class CalculatorApp(QApplication): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.__handler = NewWi...
35.363636
99
0.789203
f2f7a84339e5d07f2b2ba60fc9853225d89139f9
773
py
Python
index.py
itaweb/Generation_of_Name
b47a5eeea5f76a202bd7bffda9eeb20be5580592
[ "MIT" ]
null
null
null
index.py
itaweb/Generation_of_Name
b47a5eeea5f76a202bd7bffda9eeb20be5580592
[ "MIT" ]
null
null
null
index.py
itaweb/Generation_of_Name
b47a5eeea5f76a202bd7bffda9eeb20be5580592
[ "MIT" ]
null
null
null
import sys import random print('Добро пожаловать в генератор забавных имён!\n') print('Например, вот забавное имя для твоего друга: \n\n') first = ('Чайник', 'Кипятильник', 'Рубильник', 'Пылесос', 'Пуховик', 'Клоун', 'Пёс', 'Пудель') last = ('Мохнорылый', 'Толстожопый', 'Не приятный', 'Плохопахнущий', 'Куче...
28.62963
102
0.645537
af6bf850c40fb1aea2b854821cd56f7d97afdce4
506
py
Python
sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview/version.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview/version.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview/version.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.142857
76
0.529644
cadc1f602011fd5c9f84ec3503e2e933133e2b2f
2,146
py
Python
commlib/rest.py
robotics-4-all/commlib-py
9d56e0a2e13410feac0e10d9866a1c4a60ade2c7
[ "MIT" ]
1
2021-06-09T09:32:53.000Z
2021-06-09T09:32:53.000Z
commlib/rest.py
robotics-4-all/commlib-py
9d56e0a2e13410feac0e10d9866a1c4a60ade2c7
[ "MIT" ]
7
2022-03-10T23:57:25.000Z
2022-03-13T19:12:54.000Z
commlib/rest.py
robotics-4-all/commlib-py
9d56e0a2e13410feac0e10d9866a1c4a60ade2c7
[ "MIT" ]
1
2021-06-07T16:25:05.000Z
2021-06-07T16:25:05.000Z
import time import json import http.client from typing import Dict, List, Any, Optional from commlib.endpoints import TransportType, EndpointType, endpoint_factory from commlib.msg import DataClass, DataField, Object, PubSubMessage, RPCMessage """ { HOST: 'example.org/user', VERB: 'GET', PARAMS: { ...
28.613333
79
0.559646
6b5566dd763916a37678ec19860134a356132acd
8,224
py
Python
.venv/lib/python3.7/site-packages/pymdownx/tabbed.py
Stam21/alcali
471e714353e94311080ce6f23c980bc35d739ecb
[ "MIT" ]
null
null
null
.venv/lib/python3.7/site-packages/pymdownx/tabbed.py
Stam21/alcali
471e714353e94311080ce6f23c980bc35d739ecb
[ "MIT" ]
null
null
null
.venv/lib/python3.7/site-packages/pymdownx/tabbed.py
Stam21/alcali
471e714353e94311080ce6f23c980bc35d739ecb
[ "MIT" ]
null
null
null
""" Tabbed. pymdownx.tabbed MIT license. Copyright (c) 2017 Isaac Muse <isaacmuse@gmail.com> 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 th...
34.700422
111
0.536357
a566486423a57548c90d865f92616aa5b8f7028a
15,197
py
Python
src/panoptes/pocs/focuser/birger.py
programatt/POCS
6450a27e3d3a9bb33e251f5d3508266445fe8136
[ "MIT" ]
69
2015-08-27T01:17:26.000Z
2022-01-05T19:11:09.000Z
src/panoptes/pocs/focuser/birger.py
programatt/POCS
6450a27e3d3a9bb33e251f5d3508266445fe8136
[ "MIT" ]
1,094
2016-01-19T18:18:06.000Z
2022-03-17T04:28:38.000Z
src/panoptes/pocs/focuser/birger.py
programatt/POCS
6450a27e3d3a9bb33e251f5d3508266445fe8136
[ "MIT" ]
65
2015-08-27T01:17:28.000Z
2021-02-24T04:12:03.000Z
import re import serial import glob from contextlib import suppress from panoptes.pocs.focuser.serial import AbstractSerialFocuser from panoptes.utils import error # Birger adaptor serial numbers should be 5 digits SERIAL_NUMBER_PATTERN = re.compile(r'^\d{5}$') # Error codes should be 'ERR' followed by 1-2 digits er...
40.097625
99
0.569981
8c30ba817df6ac5a409dde481c92b2e60db2a5a0
4,347
py
Python
pykg2vec/utils/bayesian_optimizer.py
emilbaekdahl/pykg2vec
5fe625e037065dbf8e8b5c47d796d4c29a4ef8ad
[ "MIT" ]
null
null
null
pykg2vec/utils/bayesian_optimizer.py
emilbaekdahl/pykg2vec
5fe625e037065dbf8e8b5c47d796d4c29a4ef8ad
[ "MIT" ]
null
null
null
pykg2vec/utils/bayesian_optimizer.py
emilbaekdahl/pykg2vec
5fe625e037065dbf8e8b5c47d796d4c29a4ef8ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module is for performing bayesian optimization on algorithms """ from hyperopt import fmin, tpe, Trials, STATUS_OK, space_eval import pandas as pd from pykg2vec.data.kgcontroller import KnowledgeGraph from pykg2vec.utils.trainer import Trainer from pykg2vec.utils....
38.8125
112
0.665056
b300ab0b0d7ca7e71e188a422b3b82db11468b2f
892
py
Python
Pacote Dowload/CursoemVideo/ex 071.py
AMF1971/Cursoemvideo-Python
814ce748ab72e2d6b09a4e15f943bd72b0922f8c
[ "MIT" ]
null
null
null
Pacote Dowload/CursoemVideo/ex 071.py
AMF1971/Cursoemvideo-Python
814ce748ab72e2d6b09a4e15f943bd72b0922f8c
[ "MIT" ]
null
null
null
Pacote Dowload/CursoemVideo/ex 071.py
AMF1971/Cursoemvideo-Python
814ce748ab72e2d6b09a4e15f943bd72b0922f8c
[ "MIT" ]
null
null
null
#Crie um programa que simule o funcionamento de um caixa eletrônico. # No início, pergunte ao usuário qual será o valor a ser sacado (número inteiro) # e o programa vai informar quantas cédulas de cada valor serão entregues. OBS: #considere que o caixa possui cédulas de R$50, R$20, R$10 e R$1. print('=' * 30) print('...
21.756098
80
0.56278
5af9f4156fd43f1d970cae16bdd436b145546f2f
7,719
py
Python
mmdet/models/losses/focal_loss.py
changjiahao/ddod_extend
c6d55d4fe827f33ad779986392afba579afa89b8
[ "Apache-2.0" ]
null
null
null
mmdet/models/losses/focal_loss.py
changjiahao/ddod_extend
c6d55d4fe827f33ad779986392afba579afa89b8
[ "Apache-2.0" ]
null
null
null
mmdet/models/losses/focal_loss.py
changjiahao/ddod_extend
c6d55d4fe827f33ad779986392afba579afa89b8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn import torch.nn.functional as F from mmcv.ops import sigmoid_focal_loss as _sigmoid_focal_loss from ..builder import LOSSES from .utils import weight_reduce_loss # This method is only for debugging def py_sigmoid_focal_loss(pred, ...
41.5
79
0.56497
1ca9be713334bece830f7cf42c6c48916534611a
33,930
py
Python
saleor/payment/gateways/adyen/webhooks.py
csmatar/saleor
125c90cc185731b49733178e02c0b43bf5939013
[ "CC-BY-4.0" ]
1
2022-01-30T15:34:11.000Z
2022-01-30T15:34:11.000Z
saleor/payment/gateways/adyen/webhooks.py
csmatar/saleor
125c90cc185731b49733178e02c0b43bf5939013
[ "CC-BY-4.0" ]
2
2022-03-01T14:30:57.000Z
2022-03-31T13:14:52.000Z
saleor/payment/gateways/adyen/webhooks.py
csmatar/saleor
125c90cc185731b49733178e02c0b43bf5939013
[ "CC-BY-4.0" ]
null
null
null
import base64 import binascii import hashlib import hmac import json import logging from json.decoder import JSONDecodeError from typing import Any, Callable, Dict, Optional from urllib.parse import urlencode, urlparse import Adyen import graphene from django.contrib.auth.hashers import check_password from django.cont...
37.450331
88
0.69163
490a5ce47a505ca2bb8bc03a2178335de7750b01
577,237
py
Python
test/test_jit.py
metacpp/pytorch
1e7a4d6bbe1fac4fb94f6b62f24c6e242db1e952
[ "Intel" ]
1
2022-03-02T00:28:04.000Z
2022-03-02T00:28:04.000Z
test/test_jit.py
metacpp/pytorch
1e7a4d6bbe1fac4fb94f6b62f24c6e242db1e952
[ "Intel" ]
1
2022-03-01T06:10:50.000Z
2022-03-01T06:10:50.000Z
test/test_jit.py
metacpp/pytorch
1e7a4d6bbe1fac4fb94f6b62f24c6e242db1e952
[ "Intel" ]
null
null
null
# -*- coding: utf-8 -*- # Owner(s): ["oncall: jit"] import torch # This is how we include tests located in test/jit/... # They are included here so that they are invoked when you call `test_jit.py`, # do not run these test files directly. from jit.test_tracer import TestTracer, TestMixTracingScripting # noqa: F401 f...
35.322298
132
0.535964
b39dba7db6a8ae00de78c81f99e0b1c795ca80e4
44,750
py
Python
tensorflow/contrib/distributions/python/ops/vector_diffeomixture.py
ocjosen/tensorflow
ada0605591911094c142d39cbd87294ed2716e8b
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/distributions/python/ops/vector_diffeomixture.py
ocjosen/tensorflow
ada0605591911094c142d39cbd87294ed2716e8b
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/distributions/python/ops/vector_diffeomixture.py
ocjosen/tensorflow
ada0605591911094c142d39cbd87294ed2716e8b
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2017 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...
42.018779
109
0.664916
5630cb32bbe295ab6b6ec5c1f593555cc4a69874
633
py
Python
BAB 03/3.7TugasProgramPencabanganIF-else(Blok).py
Dhn-nys/1stmlernpython-
d51439515c125a7bc50fdcf304b604846e740290
[ "Apache-2.0" ]
1
2020-11-22T13:44:35.000Z
2020-11-22T13:44:35.000Z
BAB 03/3.7TugasProgramPencabanganIF-else(Blok).py
Dhn-nys/1stmlernpython
d51439515c125a7bc50fdcf304b604846e740290
[ "Apache-2.0" ]
null
null
null
BAB 03/3.7TugasProgramPencabanganIF-else(Blok).py
Dhn-nys/1stmlernpython
d51439515c125a7bc50fdcf304b604846e740290
[ "Apache-2.0" ]
null
null
null
# BAB 3 # Start program NAMAPGW=(input("Nama Pegawai ")) # input nama GAPOK=int(input("Gaji Pokok Rp. ")) # Input gajih pokok JMLJAMKJ=int(input("Jumlah Jam Kerja ")) # Input jumlah jam kerja GATOR=GAPOK*JMLJAMKJ # Formulas gaji kotor if GATOR > 500000: # Formula if TAX=GATOR*0.5 keterangan="Pajak" # Output ke...
33.315789
65
0.721959
9d5e1b8e7a04e111bc82f06283528f3f7bee8e08
436
py
Python
setup.py
gwarmstrong/mohawk-training-worfklow
3b943ca8e016f46bbc5cf20930c7325f6f69dc46
[ "BSD-3-Clause" ]
null
null
null
setup.py
gwarmstrong/mohawk-training-worfklow
3b943ca8e016f46bbc5cf20930c7325f6f69dc46
[ "BSD-3-Clause" ]
null
null
null
setup.py
gwarmstrong/mohawk-training-worfklow
3b943ca8e016f46bbc5cf20930c7325f6f69dc46
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages setup( name='clippers', version='0.1dev', packages=find_packages(), include_package_data=True, install_requires=[ 'Click', ], author="George Armstrong", license='BSD-3-Clause', author_email="garmstro@eng.ucsd.edu", url="https:/...
25.647059
66
0.68578
6dd8185597fca4746836b99a453ea904e0deab5b
674
py
Python
convenience/netdisco/discoverables/belkin_wemo.py
rubund/debian-home-assistant
1a3e8f7e4b9ddec60a4380e141fb327d03ac69b5
[ "MIT" ]
null
null
null
convenience/netdisco/discoverables/belkin_wemo.py
rubund/debian-home-assistant
1a3e8f7e4b9ddec60a4380e141fb327d03ac69b5
[ "MIT" ]
null
null
null
convenience/netdisco/discoverables/belkin_wemo.py
rubund/debian-home-assistant
1a3e8f7e4b9ddec60a4380e141fb327d03ac69b5
[ "MIT" ]
null
null
null
"""Discover Belkin Wemo devices.""" from . import SSDPDiscoverable class Discoverable(SSDPDiscoverable): """Add support for discovering Belkin WeMo platform devices.""" def info_from_entry(self, entry): """Return most important info from a uPnP entry.""" device = entry.description['device'] ...
33.7
71
0.643917
e7df2b1f97c02f4429c306a01d936ee21ceb5f2a
868
py
Python
tests/test_dataset.py
Christin95/mseg-semantic
2d7864e7a61b38eaf83189e179ca220953cf02c7
[ "MIT" ]
null
null
null
tests/test_dataset.py
Christin95/mseg-semantic
2d7864e7a61b38eaf83189e179ca220953cf02c7
[ "MIT" ]
null
null
null
tests/test_dataset.py
Christin95/mseg-semantic
2d7864e7a61b38eaf83189e179ca220953cf02c7
[ "MIT" ]
1
2022-02-07T13:20:23.000Z
2022-02-07T13:20:23.000Z
from pathlib import Path from mseg_semantic.utils.dataset import SemData, make_dataset TEST_DATA_ROOT = Path(__file__).resolve().parent / "test_data" def test_make_dataset() -> None: """Ensure make_dataset() returns the proper outputs""" split = "train" data_root = "/home/dummy_data_root" data_list_...
41.333333
107
0.746544
d78a8220ea479b8006d180254486c1f4a8e0647c
3,730
py
Python
tests/test_filtsmooth/test_gaussfiltsmooth/filtsmooth_testcases.py
coldfix/probnum
9b93d822c8d6501f9a12a783da84867ea54e6f6c
[ "MIT" ]
null
null
null
tests/test_filtsmooth/test_gaussfiltsmooth/filtsmooth_testcases.py
coldfix/probnum
9b93d822c8d6501f9a12a783da84867ea54e6f6c
[ "MIT" ]
null
null
null
tests/test_filtsmooth/test_gaussfiltsmooth/filtsmooth_testcases.py
coldfix/probnum
9b93d822c8d6501f9a12a783da84867ea54e6f6c
[ "MIT" ]
null
null
null
""" Test cases for Gaussian Filtering and Smoothing """ import unittest import numpy as np from probnum.filtsmooth import * from probnum.prob import * __all__ = [ "CarTrackingDDTestCase", "OrnsteinUhlenbeckCDTestCase", "PendulumNonlinearDDTestCase", ] class CarTrackingDDTestCase(unittest.TestCase): ...
29.140625
88
0.54504
a57fe1f0a16f5e121af2e6109caafa825c891c6f
670
py
Python
networking_ipvs/version.py
OnionPiece/networking-ipvs
f2afa4e663486bfc15810252c965b314b2ec0457
[ "Apache-2.0" ]
null
null
null
networking_ipvs/version.py
OnionPiece/networking-ipvs
f2afa4e663486bfc15810252c965b314b2ec0457
[ "Apache-2.0" ]
null
null
null
networking_ipvs/version.py
OnionPiece/networking-ipvs
f2afa4e663486bfc15810252c965b314b2ec0457
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 # # 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 writi...
37.222222
78
0.734328
9b2c16e4ff7a657178b00ec44c37ca487f49db03
728
py
Python
src/grok/generations.py
zopefoundation/grok
9c29591071aff824e6ef72acf8137bb21c0ea861
[ "ZPL-2.1" ]
21
2015-11-06T08:54:43.000Z
2021-08-15T13:41:13.000Z
src/grok/generations.py
zopefoundation/grok
9c29591071aff824e6ef72acf8137bb21c0ea861
[ "ZPL-2.1" ]
8
2016-03-18T14:25:17.000Z
2020-06-10T23:17:26.000Z
src/grok/generations.py
zopefoundation/grok
9c29591071aff824e6ef72acf8137bb21c0ea861
[ "ZPL-2.1" ]
13
2015-09-19T22:42:44.000Z
2022-01-24T18:55:20.000Z
import grokcore.component import grok.events import zope.event from zope.generations.interfaces import IInstallableSchemaManager from zope.generations.utility import getRootFolder class GrokDatabaseCreated(grokcore.component.GlobalUtility): # The name starts with a null byte so that then they are sorted and ...
30.333333
71
0.766484
ebabed94cb3f020c5f01c092444fa5cdcfdd4fb6
4,533
py
Python
sources/services/storage_service.py
pablintino/Altium-DBlib-source
65e85572f84048a7e7c5a116b429e09ac9a33e82
[ "MIT" ]
1
2021-06-23T20:19:45.000Z
2021-06-23T20:19:45.000Z
sources/services/storage_service.py
pablintino/Altium-DBlib-source
65e85572f84048a7e7c5a116b429e09ac9a33e82
[ "MIT" ]
null
null
null
sources/services/storage_service.py
pablintino/Altium-DBlib-source
65e85572f84048a7e7c5a116b429e09ac9a33e82
[ "MIT" ]
null
null
null
# # MIT License # # Copyright (c) 2020 Pablo Rodriguez Nava, @pablintino # # 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 # t...
39.763158
121
0.698434
dfe1c8a6f384198b17f49766991e04a51d7157c3
1,917
py
Python
src/Battle.py
gle8098/hundred-years-war
c74820337dd4ea6129c0b2aaa012be5666814e76
[ "WTFPL" ]
null
null
null
src/Battle.py
gle8098/hundred-years-war
c74820337dd4ea6129c0b2aaa012be5666814e76
[ "WTFPL" ]
null
null
null
src/Battle.py
gle8098/hundred-years-war
c74820337dd4ea6129c0b2aaa012be5666814e76
[ "WTFPL" ]
null
null
null
from src.ManeuverCommands import * from src.PrintManager import PrintManager from src import GameplayParameters as gameplay_params class Battle: _english_army = None _french_army = None def __init__(self, english_army, french_army): self._english_army = english_army self._frenc...
37.588235
130
0.610329
3b8f52343d66b9c38b09dbdc3aa49ed24db8f131
102
py
Python
codershq/events/admin.py
Coders-HQ/CodersHQ
011fe5b3c5da0e28ed3930b922500596c4ab7321
[ "MIT" ]
45
2021-02-24T11:10:29.000Z
2022-03-25T07:14:46.000Z
codershq/events/admin.py
Coders-HQ/CodersHQ
011fe5b3c5da0e28ed3930b922500596c4ab7321
[ "MIT" ]
96
2021-03-01T16:36:37.000Z
2022-03-26T17:32:26.000Z
codershq/events/admin.py
Coders-HQ/CodersHQ
011fe5b3c5da0e28ed3930b922500596c4ab7321
[ "MIT" ]
29
2021-08-08T18:24:50.000Z
2022-03-29T12:17:06.000Z
from django.contrib import admin from codershq.events.models import Event admin.site.register(Event)
20.4
40
0.833333
1f1528271847f9086cd76a53168ada0715eac3fb
39,517
py
Python
test/functional/test_framework/messages.py
arock121/pocketnet.core
bc08bf9dc565c60d7e7d53e3cc615408b76f9bde
[ "ECL-2.0", "Apache-2.0" ]
72
2019-06-23T07:48:03.000Z
2022-03-31T03:47:04.000Z
test/functional/test_framework/messages.py
arock121/pocketnet.core
bc08bf9dc565c60d7e7d53e3cc615408b76f9bde
[ "ECL-2.0", "Apache-2.0" ]
153
2021-01-20T08:10:23.000Z
2022-03-31T23:30:50.000Z
test/functional/test_framework/messages.py
arock121/pocketnet.core
bc08bf9dc565c60d7e7d53e3cc615408b76f9bde
[ "ECL-2.0", "Apache-2.0" ]
20
2019-10-10T22:18:25.000Z
2022-02-12T01:08:29.000Z
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2018 The Pocketcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Pocketcoi...
29.185377
262
0.598603
5f70ac72896d8ebdaca74064af12494948e5564e
1,173
py
Python
duplicate_finder/duplicate_finder/doctype/duplicate_finder/duplicate_finder.py
bailabs/duplicate_finder
6a344cf759b23d3bb46ec0f960f35fe5b0737be3
[ "MIT" ]
null
null
null
duplicate_finder/duplicate_finder/doctype/duplicate_finder/duplicate_finder.py
bailabs/duplicate_finder
6a344cf759b23d3bb46ec0f960f35fe5b0737be3
[ "MIT" ]
null
null
null
duplicate_finder/duplicate_finder/doctype/duplicate_finder/duplicate_finder.py
bailabs/duplicate_finder
6a344cf759b23d3bb46ec0f960f35fe5b0737be3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, Bai Web and Mobile Lab and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class DuplicateFinder(Document): pass @frappe.whitelist() def get_duplicates(): so...
31.702703
150
0.71526
6874a318607c469c1a9f77b14310b7026dbeeb7f
6,470
py
Python
daily_digest.py
NateDimick/daily-hockey-digest
8606228b4e88a9692cb5435fbb3105491f1eb09f
[ "MIT" ]
null
null
null
daily_digest.py
NateDimick/daily-hockey-digest
8606228b4e88a9692cb5435fbb3105491f1eb09f
[ "MIT" ]
null
null
null
daily_digest.py
NateDimick/daily-hockey-digest
8606228b4e88a9692cb5435fbb3105491f1eb09f
[ "MIT" ]
null
null
null
""" main script the goal is to 1. make api calls to get yesterday's results and today's games 2. update database 3. send out email to me with everything I want to know, nicely formatted """ import json from components.client import get_scores_from_date, just_todays_games from components.mailer import send_email from co...
38.742515
97
0.667388
2aae1d717dfccd849f825870b25b8dd18c598ad3
4,212
py
Python
fpipy/testing.py
Moskari/fpipy
4ef8343def686b7bcbc6fa5ced13fe23d4b2fd67
[ "MIT" ]
4
2018-04-13T11:13:06.000Z
2021-04-08T06:11:05.000Z
fpipy/testing.py
Moskari/fpipy
4ef8343def686b7bcbc6fa5ced13fe23d4b2fd67
[ "MIT" ]
3
2018-11-26T14:11:18.000Z
2019-05-24T09:48:17.000Z
fpipy/testing.py
Moskari/fpipy
4ef8343def686b7bcbc6fa5ced13fe23d4b2fd67
[ "MIT" ]
4
2018-09-14T13:33:04.000Z
2019-12-07T14:18:02.000Z
"""Test data generators for debugging and benchmarking.""" import numpy as np import xarray as xr import colour_demosaicing as cdm from . import conventions as c from .raw import BayerPattern def raw(cfa, dark, pattern, exposure, gain, metas, wl_range): """Raw data (CFA, dark and metadata).""" b, _, _ = cfa...
31.2
79
0.52849
0ffadd3cc7e8d1351ff02450540dd57f3fb3bfd6
112,006
py
Python
nova/scheduler/client/report.py
adanin/nova
1f74441680b4376cd401ecc0b0449b464cf7a5fb
[ "Apache-2.0" ]
null
null
null
nova/scheduler/client/report.py
adanin/nova
1f74441680b4376cd401ecc0b0449b464cf7a5fb
[ "Apache-2.0" ]
null
null
null
nova/scheduler/client/report.py
adanin/nova
1f74441680b4376cd401ecc0b0449b464cf7a5fb
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Red Hat, 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 require...
48.174624
79
0.609226
ab1ffde62c87bd03338f41fe7a251ed9b89d5a01
6,875
py
Python
docs/source/conf.py
yutiansut/Riskfolio-Lib
709af5302998e1629c3cd79552ebc4bdbf2ba34e
[ "BSD-3-Clause" ]
1
2021-07-22T06:06:48.000Z
2021-07-22T06:06:48.000Z
docs/source/conf.py
yutiansut/Riskfolio-Lib
709af5302998e1629c3cd79552ebc4bdbf2ba34e
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
yutiansut/Riskfolio-Lib
709af5302998e1629c3cd79552ebc4bdbf2ba34e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
31.392694
107
0.647273
7308c75ea37e0f0f6eb82d125ab4634c916a3a47
915
py
Python
tests/update_only_fields/models.py
imjvdn/scratch-game-1
5dffd79f17e0b66d3d2e57262749311aca28e850
[ "PSF-2.0", "BSD-3-Clause" ]
19
2015-07-07T02:08:59.000Z
2021-11-08T11:05:40.000Z
tests/update_only_fields/models.py
imjvdn/scratch-game-1
5dffd79f17e0b66d3d2e57262749311aca28e850
[ "PSF-2.0", "BSD-3-Clause" ]
10
2016-05-19T21:54:42.000Z
2019-08-09T15:59:50.000Z
tests/update_only_fields/models.py
imjvdn/scratch-game-1
5dffd79f17e0b66d3d2e57262749311aca28e850
[ "PSF-2.0", "BSD-3-Clause" ]
145
2019-03-14T18:54:45.000Z
2022-03-04T20:25:31.000Z
from django.db import models class Account(models.Model): num = models.IntegerField() class Person(models.Model): GENDER_CHOICES = ( ('M', 'Male'), ('F', 'Female'), ) name = models.CharField(max_length=20) gender = models.CharField(max_length=1, choices=GENDER_CHOICES) pid =...
23.461538
95
0.681967
160ee2ae21d11e4b01c673307697e3ba1d22cc51
340
py
Python
Workspace for Python/studying file/Error test/Textwrtest.py
ArchibaldChain/python-workspace
71890f296c376155e374b2096ac3d8f1d286b7d2
[ "MIT" ]
null
null
null
Workspace for Python/studying file/Error test/Textwrtest.py
ArchibaldChain/python-workspace
71890f296c376155e374b2096ac3d8f1d286b7d2
[ "MIT" ]
3
2020-06-17T16:01:27.000Z
2022-01-13T02:52:53.000Z
Workspace for Python/studying file/Error test/Textwrtest.py
ArchibaldChain/python-workspace
71890f296c376155e374b2096ac3d8f1d286b7d2
[ "MIT" ]
null
null
null
def textwrtest(a): sault = ["Hello", "How are you", "See you"] ab = open("greed.txt", 'wt+') try: ab.write(sault[a]) print(sault[a]) print("correct") except: print("IndexError") finally: ab.close() return "down" print(textwrtest(1)) pr...
20
48
0.502941
52ffd05fdf9cc2d10a3292702bbcf001f571047e
639
py
Python
src/DataReader.py
jeanpierrevanzyl/LUXOR-trader
8206d0b0b9733779dcf778a8e6a5df7de0756970
[ "MIT" ]
null
null
null
src/DataReader.py
jeanpierrevanzyl/LUXOR-trader
8206d0b0b9733779dcf778a8e6a5df7de0756970
[ "MIT" ]
null
null
null
src/DataReader.py
jeanpierrevanzyl/LUXOR-trader
8206d0b0b9733779dcf778a8e6a5df7de0756970
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd class DataReader: def __init__(self, inputname, isFolder=False): self.data = pd.DataFrame() if (isFolder): for fname in os.listdir(inputname): self.data = self.data.append(pd.read_csv(os.path.join(inputname, fname), p...
39.9375
107
0.652582
1a016ec48d61cc8448a7babaf19c8fd40d2a7b81
1,964
py
Python
examples/trans_types/net_type.py
TARTRL/TLaunch
198dada129f2143b6f626a50b82d45575f4c1115
[ "Apache-2.0" ]
18
2021-12-19T09:43:17.000Z
2021-12-30T06:09:03.000Z
examples/trans_types/net_type.py
TARTRL/TLaunch
198dada129f2143b6f626a50b82d45575f4c1115
[ "Apache-2.0" ]
null
null
null
examples/trans_types/net_type.py
TARTRL/TLaunch
198dada129f2143b6f626a50b82d45575f4c1115
[ "Apache-2.0" ]
1
2022-01-14T06:20:20.000Z
2022-01-14T06:20:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2021 The TARTRL 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 # # Unle...
24.860759
74
0.677699
1a54f402f8831ff2c48e7eefb4ca2ca51490b332
4,793
py
Python
lektor/sourceobj.py
pascalmolin/lektor
c1d6775af9ab0de73ae1fda145b764b2de690936
[ "BSD-3-Clause" ]
null
null
null
lektor/sourceobj.py
pascalmolin/lektor
c1d6775af9ab0de73ae1fda145b764b2de690936
[ "BSD-3-Clause" ]
null
null
null
lektor/sourceobj.py
pascalmolin/lektor
c1d6775af9ab0de73ae1fda145b764b2de690936
[ "BSD-3-Clause" ]
null
null
null
import posixpath from weakref import ref as weakref from lektor.environment import PRIMARY_ALT from lektor.utils import is_path_child_of from lektor.utils import join_path class SourceObject(object): source_classification = "generic" # We consider this class at least what public usage is to considered #...
29.048485
82
0.598999
3f7befab7232354f9f6d2b9c4c931bc2d86eb89a
19
py
Python
main/python-pluggy/update.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
46
2021-06-10T02:27:32.000Z
2022-03-27T11:33:24.000Z
main/python-pluggy/update.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
58
2021-07-03T13:58:20.000Z
2022-03-13T16:45:35.000Z
main/python-pluggy/update.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
6
2021-07-04T10:46:40.000Z
2022-01-09T00:03:59.000Z
ignore = ["*dev*"]
9.5
18
0.473684
a8736a6263f786a735aaa06ea7cbe9305232202a
447
py
Python
simulation/migrations/0007_feeds_price.py
BenLatham/Agricultural-Simulation
23ae2c6ae2ae6d0b1ca318c6e4543ccbe40a0039
[ "MIT" ]
null
null
null
simulation/migrations/0007_feeds_price.py
BenLatham/Agricultural-Simulation
23ae2c6ae2ae6d0b1ca318c6e4543ccbe40a0039
[ "MIT" ]
5
2016-07-08T12:05:31.000Z
2016-07-08T17:31:23.000Z
simulation/migrations/0007_feeds_price.py
BenLatham/FLOSS-Agricultural-Simulation
23ae2c6ae2ae6d0b1ca318c6e4543ccbe40a0039
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-08-16 11:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('simulation', '0006_auto_20170815_2240'), ] operations = [ migrations.AddFie...
21.285714
50
0.612975
7853778991cbb43d2888a519fd61c8fdf76a971a
26,940
py
Python
krake/tests/api/test_kubernetes.py
rak-n-rok/Krake
2f0d4a382b99639e2c1149ee8593a9bb589d2d3f
[ "Apache-2.0" ]
1
2020-05-29T08:43:32.000Z
2020-05-29T08:43:32.000Z
krake/tests/api/test_kubernetes.py
rak-n-rok/Krake
2f0d4a382b99639e2c1149ee8593a9bb589d2d3f
[ "Apache-2.0" ]
null
null
null
krake/tests/api/test_kubernetes.py
rak-n-rok/Krake
2f0d4a382b99639e2c1149ee8593a9bb589d2d3f
[ "Apache-2.0" ]
1
2019-11-19T13:39:02.000Z
2019-11-19T13:39:02.000Z
import asyncio import json import pytz import yaml from copy import deepcopy from itertools import count from operator import attrgetter from secrets import token_urlsafe from krake.data.core import WatchEvent, WatchEventType, ResourceRef, resource_ref from krake.data.kubernetes import ( Application, Applicat...
33.341584
88
0.702747
e4a42e07ef6034261f55fd930061f5038f180a18
1,294
py
Python
src/wallet/migrations/0004_auto_20160309_1721.py
uppsaladatavetare/foobar-api
c63e824ce246b15163e352f5150ef4ecbee81b96
[ "MIT" ]
16
2015-10-29T14:23:37.000Z
2020-04-21T00:19:39.000Z
src/wallet/migrations/0004_auto_20160309_1721.py
uppsaladatavetare/foobar-api
c63e824ce246b15163e352f5150ef4ecbee81b96
[ "MIT" ]
74
2016-09-14T19:52:32.000Z
2018-10-03T10:11:16.000Z
src/wallet/migrations/0004_auto_20160309_1721.py
uppsaladatavetare/foobar-api
c63e824ce246b15163e352f5150ef4ecbee81b96
[ "MIT" ]
7
2017-02-08T13:11:20.000Z
2021-08-11T07:29:35.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-03-09 17:21 from __future__ import unicode_literals import enum from moneyed import Money from django.db import migrations, models class TrxType(enum.Enum): INCOMING = 0 OUTGOING = 1 class TrxStatus(enum.Enum): PENDING = 0 FINALIZED = 1 ...
26.408163
68
0.65456
a2ae8e5ab025f150cbb330b90a4bb546a5166b64
3,133
py
Python
patrole_tempest_plugin/tests/api/compute/test_volume_rbac.py
TaruniSurampally/testpatrolev
7c7fe1cad2967e0be84ca74b9a200ae2fde356db
[ "Apache-2.0" ]
null
null
null
patrole_tempest_plugin/tests/api/compute/test_volume_rbac.py
TaruniSurampally/testpatrolev
7c7fe1cad2967e0be84ca74b9a200ae2fde356db
[ "Apache-2.0" ]
null
null
null
patrole_tempest_plugin/tests/api/compute/test_volume_rbac.py
TaruniSurampally/testpatrolev
7c7fe1cad2967e0be84ca74b9a200ae2fde356db
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 AT&T Corporation. # 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 require...
41.223684
105
0.719438
e1dee07f19a18ca4ff06820ca80565d5d78a93fa
704
py
Python
tests/helpers.py
AlexanderGrooff/discrete-event-simulation
2160cebfd6106d4a1299b3a2ff5480affa63aed0
[ "MIT" ]
null
null
null
tests/helpers.py
AlexanderGrooff/discrete-event-simulation
2160cebfd6106d4a1299b3a2ff5480affa63aed0
[ "MIT" ]
null
null
null
tests/helpers.py
AlexanderGrooff/discrete-event-simulation
2160cebfd6106d4a1299b3a2ff5480affa63aed0
[ "MIT" ]
null
null
null
from typing import OrderedDict from unittest import TestCase as UnitTestCase class TestCase(UnitTestCase): @staticmethod def assertOrderedDictEqual(od1: OrderedDict, od2: OrderedDict): errors = [] if len(od1.keys()) != len(od2.keys()): raise AssertionError("Number of items don't ma...
37.052632
87
0.569602
3f4174a1da84bcb7f86195b59d98c9ef17e59867
48,073
py
Python
spectral/graphics/spypylab.py
wang2700/spectral
1abac625bdae2131df402dea0cfe8273015618c7
[ "MIT" ]
1
2021-02-24T04:06:05.000Z
2021-02-24T04:06:05.000Z
spectral/graphics/spypylab.py
wang2700/spectral
1abac625bdae2131df402dea0cfe8273015618c7
[ "MIT" ]
null
null
null
spectral/graphics/spypylab.py
wang2700/spectral
1abac625bdae2131df402dea0cfe8273015618c7
[ "MIT" ]
null
null
null
''' Code to use matplotlib for creating raster and spectral views. ''' from __future__ import absolute_import, division, print_function, unicode_literals __all__ = ['ImageView', 'imshow'] import numpy as np import warnings _mpl_callbacks_checked = False def check_disable_mpl_callbacks(): '''Disables matplotlib...
37.265891
99
0.572026
63ccc27de35a265ce564c47c52036cba6b5c6d9c
41,314
py
Python
neutron/plugins/ofagent/agent/ofa_neutron_agent.py
leenheer/neutron
e7ac9421506b31920eb846ae5453ad86d952725c
[ "Apache-2.0" ]
1
2017-01-04T16:29:20.000Z
2017-01-04T16:29:20.000Z
neutron/plugins/ofagent/agent/ofa_neutron_agent.py
leenheer/neutron
e7ac9421506b31920eb846ae5453ad86d952725c
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ofagent/agent/ofa_neutron_agent.py
leenheer/neutron
e7ac9421506b31920eb846ae5453ad86d952725c
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2014 VA Linux Systems Japan K.K. # Copyright (C) 2014 YAMAMOTO Takashi <yamamoto at valinux co jp> # Copyright (C) 2014 Fumihiko Kakuma <kakuma at valinux co jp> # All Rights Reserved. # # Based on openvswitch agent. # # Copyright 2011 VMware, Inc. # All Rights Reserved. # # Licensed under the Apache...
43.672304
79
0.575035
c40258e70baecc0a0824a6ae23dc140f7e838f3a
9,230
py
Python
eng/tox/install_depend_packages.py
mrwbarg/azure-sdk-for-python
ecfd1093cd623040d1359444d76ac0b57a786f63
[ "MIT" ]
null
null
null
eng/tox/install_depend_packages.py
mrwbarg/azure-sdk-for-python
ecfd1093cd623040d1359444d76ac0b57a786f63
[ "MIT" ]
null
null
null
eng/tox/install_depend_packages.py
mrwbarg/azure-sdk-for-python
ecfd1093cd623040d1359444d76ac0b57a786f63
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
37.673469
152
0.682232
cc6369a7a2039e5909bb870b1c0113de5a0ad1bc
2,446
py
Python
webdriver/tests/bidi/browsing_context/get_tree/frames.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
null
null
null
webdriver/tests/bidi/browsing_context/get_tree/frames.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
112
2021-09-27T14:39:02.000Z
2022-03-30T14:26:35.000Z
webdriver/tests/bidi/browsing_context/get_tree/frames.py
clopez/wpt
4ba8a4a1f41e166289c0a7feaa5665e1385e90f3
[ "BSD-3-Clause" ]
null
null
null
import pytest from .. import assert_browsing_context pytestmark = pytest.mark.asyncio async def test_multiple_frames( bidi_session, current_session, top_context, test_page, test_page2, test_page_multiple_frames, ): await bidi_session.browsing_context.navigate( context=top_context...
26.301075
90
0.682747
71148e0d14dba87ec624fd6c763a01b7a4a0434a
2,141
py
Python
atlas/scrapers/councilman/councilman/spiders/spider.py
novelo-io/atlas
db7eadf8edfcf5a386f37aeb493eec7e74910b60
[ "MIT" ]
2
2017-02-28T18:51:00.000Z
2017-07-10T03:57:48.000Z
atlas/scrapers/councilman/councilman/spiders/spider.py
novelo-io/atlas
db7eadf8edfcf5a386f37aeb493eec7e74910b60
[ "MIT" ]
1
2017-05-13T00:37:55.000Z
2017-05-15T14:15:47.000Z
atlas/scrapers/councilman/councilman/spiders/spider.py
novelo-io/atlas
db7eadf8edfcf5a386f37aeb493eec7e74910b60
[ "MIT" ]
1
2017-03-28T19:57:13.000Z
2017-03-28T19:57:13.000Z
import scrapy from councilman.items import Councilman class CouncilmanSpider(scrapy.Spider): name = 'councilman_spider' start_urls = [ 'http://www.camara.sp.gov.br/vereadores/', 'http://www.camara.sp.gov.br/vereadores/?filtro=licenciados' ] def parse(self, response): councilm...
37.561404
113
0.599253
733ebfafe381cf35400934958dc36d1a33a7bdd8
33
py
Python
components/micropython/modules/hackerhotel2019/shell.py
badgeteam/Firmware
6192b2902c70beb7a298a256d9087274d045fbc0
[ "Apache-2.0" ]
7
2019-02-11T10:02:14.000Z
2019-08-02T00:08:45.000Z
components/micropython/modules/hackerhotel2019/shell.py
badgeteam/Firmware
6192b2902c70beb7a298a256d9087274d045fbc0
[ "Apache-2.0" ]
17
2019-01-05T18:02:11.000Z
2019-03-09T21:46:43.000Z
components/micropython/modules/hackerhotel2019/shell.py
badgeteam/Firmware
6192b2902c70beb7a298a256d9087274d045fbc0
[ "Apache-2.0" ]
4
2019-02-15T16:03:20.000Z
2019-06-27T22:23:24.000Z
import system system.shell(True)
11
18
0.818182
6ffb7f8b0c1676d1aa1b101ffc3be67c42414b29
138
py
Python
pola/__init__.py
ad-m/pola-backend
295cc962f60844a14b9aeb23fb1b42624c7e6015
[ "BSD-3-Clause" ]
30
2015-08-13T01:05:36.000Z
2022-01-22T03:02:50.000Z
pola/__init__.py
ad-m/pola-backend
295cc962f60844a14b9aeb23fb1b42624c7e6015
[ "BSD-3-Clause" ]
1,428
2015-10-08T07:38:26.000Z
2022-03-31T08:36:08.000Z
pola/__init__.py
ad-m/pola-backend
295cc962f60844a14b9aeb23fb1b42624c7e6015
[ "BSD-3-Clause" ]
13
2015-12-27T22:35:25.000Z
2022-02-01T15:55:58.000Z
__version__ = '0.1.0' __version_info__ = tuple(int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.'))
46
115
0.666667