hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
0967e8321a3aebd0cdc22c04c4cca5451f40b6cc
16,824
py
Python
subsdownloader2/src/SourceCode/chardet/langhungarianmodel.py
builder08/enigma2-plugins_2
f8f08b947e23c1c86b011492a7323125774c3482
[ "OLDAP-2.3" ]
null
null
null
subsdownloader2/src/SourceCode/chardet/langhungarianmodel.py
builder08/enigma2-plugins_2
f8f08b947e23c1c86b011492a7323125774c3482
[ "OLDAP-2.3" ]
null
null
null
subsdownloader2/src/SourceCode/chardet/langhungarianmodel.py
builder08/enigma2-plugins_2
f8f08b947e23c1c86b011492a7323125774c3482
[ "OLDAP-2.3" ]
null
null
null
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...
74.442478
95
0.4153
a25abe3e613d649f188d0c2834ebb72b4ca819da
1,150
py
Python
app/portal/horizon/openstack_dashboard/dashboards/project/cgroups/tabs.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
37
2018-10-30T02:47:24.000Z
2021-12-04T10:29:40.000Z
app/portal/horizon/openstack_dashboard/dashboards/project/cgroups/tabs.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
106
2019-01-18T03:06:55.000Z
2019-11-29T05:06:18.000Z
app/portal/horizon/openstack_dashboard/dashboards/project/cgroups/tabs.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
35
2018-11-26T03:36:31.000Z
2021-12-04T10:29:41.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
32.857143
78
0.71913
29a2c4d98e3b82b8e7fd5150aff506199d09ea0b
3,445
py
Python
stdplugins/PKarbonRGB_2.py
Deepumad77/CartoonBot
eff24f40043e41feadc70a63fa655353c1783ee0
[ "Apache-2.0" ]
null
null
null
stdplugins/PKarbonRGB_2.py
Deepumad77/CartoonBot
eff24f40043e41feadc70a63fa655353c1783ee0
[ "Apache-2.0" ]
2
2020-05-22T14:59:05.000Z
2020-05-28T12:04:02.000Z
stdplugins/PKarbonRGB_2.py
Deepumad77/CartoonBot
eff24f40043e41feadc70a63fa655353c1783ee0
[ "Apache-2.0" ]
3
2021-01-28T15:42:25.000Z
2021-11-18T04:02:01.000Z
"""Carbon Scraper Plugin for Userbot. //text in creative way. usage: .rgbk2 //as a reply to any text message Thanks to @r4v4n4 for vars,,, Random RGB feature by @PhycoNinja13b""" from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.webdriver.chrome.options imp...
42.530864
241
0.693179
f26e971a94e5bec49f551a5850dceb21ecde0aef
6,582
py
Python
vk_api/audio.py
deker104/vk_api
dffe3156717c5bf70594a8f10138e01d3b5420f4
[ "Apache-2.0" ]
null
null
null
vk_api/audio.py
deker104/vk_api
dffe3156717c5bf70594a8f10138e01d3b5420f4
[ "Apache-2.0" ]
null
null
null
vk_api/audio.py
deker104/vk_api
dffe3156717c5bf70594a8f10138e01d3b5420f4
[ "Apache-2.0" ]
1
2019-07-20T11:10:35.000Z
2019-07-20T11:10:35.000Z
# -*- coding: utf-8 -*- """ :authors: python273 :contact: https://vk.com/python273 :license: Apache License, Version 2.0, see LICENSE file :copyright: (c) 2018 python273 """ import re from bs4 import BeautifulSoup from .audio_url_decoder import decode_audio_url from .exceptions import AccessDenied RE_AUDIO_ID = re...
26.433735
80
0.538438
81529226102191fb9696865cfdb664de15adaf8e
2,032
py
Python
patrace/python/patracetools/patracetools/change_msaa_samples.py
ylz-at/patrace
b42ba9189616dc6c1599e40a702a90bb974e23f7
[ "MIT" ]
1
2019-10-13T16:57:52.000Z
2019-10-13T16:57:52.000Z
patrace/python/patracetools/patracetools/change_msaa_samples.py
xiangruipuzhao/patrace
db444184177277b23e1de93fd320493628aae850
[ "MIT" ]
null
null
null
patrace/python/patracetools/patracetools/change_msaa_samples.py
xiangruipuzhao/patrace
db444184177277b23e1de93fd320493628aae850
[ "MIT" ]
1
2021-04-15T17:34:35.000Z
2021-04-15T17:34:35.000Z
#!/usr/bin/env python2 import argparse import json try: from patrace import InputFile, OutputFile except ImportError: print 'patrace (Python interface of PATrace SDK) is required.' def change_msaa_samples(input, output, samples): header = json.loads(input.jsonHeader) output.jsonHeader = json.dumps(he...
34.440678
139
0.641732
4e78e1ed314e89bd90bf7a73014ac7b3a5027b98
12,680
py
Python
dataset/my_dataset_nocs.py
pairlab/6pack
47ea2dbfc48dbe239d8a52517c7e46345b7b57b8
[ "MIT" ]
4
2020-05-13T11:42:29.000Z
2021-02-26T18:19:57.000Z
dataset/my_dataset_nocs.py
pairlab/6pack
47ea2dbfc48dbe239d8a52517c7e46345b7b57b8
[ "MIT" ]
null
null
null
dataset/my_dataset_nocs.py
pairlab/6pack
47ea2dbfc48dbe239d8a52517c7e46345b7b57b8
[ "MIT" ]
1
2021-02-26T18:19:58.000Z
2021-02-26T18:19:58.000Z
import os import os.path import torch import numpy as np import torchvision.transforms as transforms from transformations import euler_matrix from torch.autograd import Variable import argparse import time import random import numpy.ma as ma import copy import math import scipy.misc import scipy.io as scio import cv2 f...
32.764858
181
0.555836
b5c84caf2073e9d8b0d4bd1b7961c722e47701df
963
py
Python
setup.py
datature/hub
d3abe283887a7e56df9270aa5508834a329e5b80
[ "MIT" ]
6
2021-04-22T09:25:40.000Z
2021-08-02T13:49:06.000Z
setup.py
datature/hub
d3abe283887a7e56df9270aa5508834a329e5b80
[ "MIT" ]
1
2021-06-04T04:19:38.000Z
2021-06-04T04:19:38.000Z
setup.py
datature/hub
d3abe283887a7e56df9270aa5508834a329e5b80
[ "MIT" ]
null
null
null
import setuptools with open("longdescription.md", "r") as fh: long_description = fh.read() setuptools.setup( name="datature-hub", version="0.2.1", author="Ian Duncan", author_email="ian@datature.io", description="Loader for models trained on the Datature platform", include_package_data=Tru...
29.181818
69
0.619938
4e1aef45e4a8ecef861e449e17b1874814408074
36,487
py
Python
thermo/joback.py
tedhyu/thermo
1966c7cba5a603984b49f22c97ff00a144d90812
[ "MIT" ]
1
2021-03-05T23:39:47.000Z
2021-03-05T23:39:47.000Z
thermo/joback.py
tedhyu/thermo
1966c7cba5a603984b49f22c97ff00a144d90812
[ "MIT" ]
1
2021-12-17T21:28:17.000Z
2021-12-17T21:28:17.000Z
thermo/joback.py
tedhyu/thermo
1966c7cba5a603984b49f22c97ff00a144d90812
[ "MIT" ]
1
2022-01-18T16:14:59.000Z
2022-01-18T16:14:59.000Z
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2017, Caleb Bell <Caleb.Andrew.Bell@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...
39.360302
145
0.555787
3b703ee1642dd63b71fa04a30b229b7ade7bfd07
108,751
py
Python
boto/opsworks/layer1.py
kyleknap/boto
38478c1e71b2c307cdfff13ff0191dfa55006139
[ "MIT" ]
1
2016-08-19T11:22:12.000Z
2016-08-19T11:22:12.000Z
boto/opsworks/layer1.py
kyleknap/boto
38478c1e71b2c307cdfff13ff0191dfa55006139
[ "MIT" ]
null
null
null
boto/opsworks/layer1.py
kyleknap/boto
38478c1e71b2c307cdfff13ff0191dfa55006139
[ "MIT" ]
null
null
null
# Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved # # 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 ...
41.972597
79
0.638578
6efd2fc08e3f82e3345e69597451da3b28f309e2
12,376
py
Python
Validation/RecoTau/test/RunValidation_cfg.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
Validation/RecoTau/test/RunValidation_cfg.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
Validation/RecoTau/test/RunValidation_cfg.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
from __future__ import print_function #!/usr/bin/env cmsRun import shutil import sys from Validation.RecoTau.ValidationOptions_cff import * import Validation.RecoTau.RecoTauValidation_cfi as validation process = cms.Process("TEST") # command options defined in Validation/RecoTau/python/ValidationOptions_cfi options...
38.197531
170
0.687217
67e0213e566250fa61142a70c41535f7491d394e
1,069
py
Python
pulsar/tests/test_integration.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
pulsar/tests/test_integration.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
pulsar/tests/test_integration.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2022-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from datadog_checks.base.constants import ServiceCheck from datadog_checks.dev.utils import get_metadata_metrics from .common import EXPECTED_METRICS, METRICS_URL, OPTIONAL_METRICS pytestm...
35.633333
96
0.791394
14878f31f8efdee12e633a2d2ceb6b32d52486d9
807
py
Python
soma-matrizes.py
DariaMachado/Algoritmos_Python
1ad8827f1bb0b7298309d457c995fbd5a2c066fd
[ "MIT" ]
1
2021-07-21T01:53:58.000Z
2021-07-21T01:53:58.000Z
soma-matrizes.py
DariaMachado/Algoritmos_Python
1ad8827f1bb0b7298309d457c995fbd5a2c066fd
[ "MIT" ]
null
null
null
soma-matrizes.py
DariaMachado/Algoritmos_Python
1ad8827f1bb0b7298309d457c995fbd5a2c066fd
[ "MIT" ]
null
null
null
m: int; n: int; j: int; i: int m = int(input("Quantas linhas vai ter cada matriz? ")) n = int(input("Quantas colunas vai ter cada matriz? ")) A: [[int]] = [[0 for x in range(n)] for x in range(m)] B: [[int]] = [[0 for x in range(n)] for x in range(m)] C: [[int]] = [[0 for x in range(n)] for x in range(m)] print("Dig...
22.416667
55
0.52912
482d7b7d50aa628d80a45fc900b480866541b5d4
319
py
Python
1798_MaximumNumberOfConsecutiveValuesYouCanMake.py
yingzhuo1994/LeetCode
636eef90867d21e3439d258ec99fbb8e5ad5a742
[ "MIT" ]
null
null
null
1798_MaximumNumberOfConsecutiveValuesYouCanMake.py
yingzhuo1994/LeetCode
636eef90867d21e3439d258ec99fbb8e5ad5a742
[ "MIT" ]
null
null
null
1798_MaximumNumberOfConsecutiveValuesYouCanMake.py
yingzhuo1994/LeetCode
636eef90867d21e3439d258ec99fbb8e5ad5a742
[ "MIT" ]
null
null
null
class Solution(object): def getMaximumConsecutive(self, coins): """ :type coins: List[int] :rtype: int """ coins.sort() amount = 0 for coin in coins: if coin > amount + 1: break amount += coin return amount + 1
22.785714
43
0.460815
ad48860d113cf22cfab3960c0135ebcba4a27747
1,500
py
Python
gaservices/utils/gaconstants.py
MicrohexHQ/garecovery
4455a2fddcd4f15f098138cc1aa74d26fd427a45
[ "MIT" ]
1
2020-08-27T05:00:42.000Z
2020-08-27T05:00:42.000Z
gaservices/utils/gaconstants.py
johnmahlon/garecovery
62aeb66e3fa674843c19a81c45e2ca35a693df97
[ "MIT" ]
null
null
null
gaservices/utils/gaconstants.py
johnmahlon/garecovery
62aeb66e3fa674843c19a81c45e2ca35a693df97
[ "MIT" ]
null
null
null
""" Constant values for recovery/BTC """ import decimal import sys PY3 = sys.version_info.major > 2 SATOSHI_PER_BTC = decimal.Decimal(1e8) MAX_BIP125_RBF_SEQUENCE = 0xfffffffd # BIP32 hardened derivation flag HARDENED = 0x80000000 SUPPORTED_NETWORKS = ['mainnet', 'testnet'] P2PKH_MAINNET = 0x00 P2SH_MAINNET = 0x0...
28.846154
88
0.806
1db728908137b0c1242498dfdb2e794e6ef8b6f9
4,278
py
Python
third_party/WebKit/Source/build/scripts/make_style_builder.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
777
2017-08-29T15:15:32.000Z
2022-03-21T05:29:41.000Z
third_party/WebKit/Source/build/scripts/make_style_builder.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
66
2017-08-30T18:31:18.000Z
2021-08-02T10:59:35.000Z
third_party/WebKit/Source/build/scripts/make_style_builder.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
123
2017-08-30T01:19:34.000Z
2022-03-17T22:55:31.000Z
#!/usr/bin/env python # Copyright (C) 2013 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list ...
44.103093
115
0.679523
5128219ea540952a0c85019d777756117a9d97ef
805
py
Python
scraper/model/schedule/series.py
mathsdada/mathsdada
dfffcc83bbf2cb68d95978ba6bec000d3ff9d3e7
[ "MIT" ]
null
null
null
scraper/model/schedule/series.py
mathsdada/mathsdada
dfffcc83bbf2cb68d95978ba6bec000d3ff9d3e7
[ "MIT" ]
null
null
null
scraper/model/schedule/series.py
mathsdada/mathsdada
dfffcc83bbf2cb68d95978ba6bec000d3ff9d3e7
[ "MIT" ]
null
null
null
from scraper.common_util import Common class Series: def __init__(self, title, link, category): self.title = title self.id = Common.get_id_from_link(link) self.gender = "Men" self.category = category if "women" in title.lower(): self.gender = "Women" se...
28.75
91
0.598758
58f306e9763e48d4243788c1a6f8442a7ea8f559
14,677
py
Python
contrib/migrate.py
TinlokLee/Django-Celery
320b36ee2091aa876ecf92003af6b8e11b3041ed
[ "Apache-2.0" ]
null
null
null
contrib/migrate.py
TinlokLee/Django-Celery
320b36ee2091aa876ecf92003af6b8e11b3041ed
[ "Apache-2.0" ]
null
null
null
contrib/migrate.py
TinlokLee/Django-Celery
320b36ee2091aa876ecf92003af6b8e11b3041ed
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Message migration tools (Broker <-> Broker).""" from __future__ import absolute_import, print_function, unicode_literals import socket from functools import partial from itertools import cycle, islice from kombu import Queue, eventloop from kombu.common import maybe_declare from k...
35.366265
80
0.597057
b73a6465a185230781c222b9a44cc9e483c1ecd7
128
py
Python
docs/test/test_docs.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
63
2020-08-15T19:02:06.000Z
2022-03-29T16:19:00.000Z
docs/test/test_docs.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
133
2020-08-18T03:51:05.000Z
2022-03-05T13:43:22.000Z
docs/test/test_docs.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
10
2020-08-25T05:19:31.000Z
2022-02-03T10:33:41.000Z
from unittest import TestCase class PassingTestCase(TestCase): def test_should_pass(self): self.assertTrue(True)
16
32
0.742188
8cfb717129028d671892ac27985d2d989ae3eb81
11,372
py
Python
deepmath/deephol/train/architectures.py
LaudateCorpus1/deepmath
b5b721f54de1d5d6a02d78f5da5995237f9995f9
[ "Apache-2.0" ]
830
2016-11-07T21:46:27.000Z
2022-03-23T08:01:03.000Z
deepmath/deephol/train/architectures.py
LaudateCorpus1/deepmath
b5b721f54de1d5d6a02d78f5da5995237f9995f9
[ "Apache-2.0" ]
26
2016-11-07T22:06:31.000Z
2022-02-16T00:18:29.000Z
deepmath/deephol/train/architectures.py
LaudateCorpus1/deepmath
b5b721f54de1d5d6a02d78f5da5995237f9995f9
[ "Apache-2.0" ]
168
2016-11-07T21:48:55.000Z
2022-03-19T02:47:14.000Z
"""Architecture functions for HOLparam models.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import tensorflow as tf from deepmath.deephol.train import losses from deepmath.deephol.train import utils from deepmath.deephol.train import...
35.20743
80
0.715002
2b92fc166e949f2f39bd84ada1c9d6a71f39e921
6,298
py
Python
fetcher/integration_tests/fetcher_dispatcher/blackbox/test_fetcher.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
6
2020-09-29T09:03:04.000Z
2022-03-14T06:52:25.000Z
fetcher/integration_tests/fetcher_dispatcher/blackbox/test_fetcher.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
null
null
null
fetcher/integration_tests/fetcher_dispatcher/blackbox/test_fetcher.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
4
2020-10-01T07:49:22.000Z
2021-06-16T19:44:12.000Z
import dataclasses import pytest from kafka import KafkaProducer, KafkaConsumer from time import time from typing import Callable from bai_kafka_utils.cmd_callback import KafkaCommandCallback from bai_kafka_utils.events import ( BenchmarkEvent, DownloadableContent, BenchmarkDoc, FetcherPayload, Fe...
36.830409
119
0.753096
2618abe83f197447a187e7458582eaab4de9c3e9
292,424
py
Python
headers/header_operations.py
Ikaguia/LWBR-WarForge
0099fe20188b2dbfff237e8690ae54c33671656f
[ "Unlicense" ]
null
null
null
headers/header_operations.py
Ikaguia/LWBR-WarForge
0099fe20188b2dbfff237e8690ae54c33671656f
[ "Unlicense" ]
null
null
null
headers/header_operations.py
Ikaguia/LWBR-WarForge
0099fe20188b2dbfff237e8690ae54c33671656f
[ "Unlicense" ]
null
null
null
################################################################################ # header_operations expanded v.1.0.0 # ################################################################################ # TABLE OF CONTENTS #########################################################...
94.912042
526
0.658537
182dd446982804ddccc9e2f96414958a00c9a917
7,210
py
Python
ginga/misc/Settings.py
godber/ginga
acb32ed422aa604681c63c5a9494ffb0ad96cf2e
[ "BSD-3-Clause" ]
null
null
null
ginga/misc/Settings.py
godber/ginga
acb32ed422aa604681c63c5a9494ffb0ad96cf2e
[ "BSD-3-Clause" ]
null
null
null
ginga/misc/Settings.py
godber/ginga
acb32ed422aa604681c63c5a9494ffb0ad96cf2e
[ "BSD-3-Clause" ]
null
null
null
# # Settings.py -- Simple class to manage stateful user preferences. # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import os import pprint import numpy from . import...
29.793388
83
0.512067
e3bbdb52db29269bd698afb55e2389c5536152d4
2,958
py
Python
utils/roasts.py
pratheek78/Ezebot-Open-Source
7888bee4d9867c32832bbcb051afb1bae0ca16d4
[ "Apache-2.0" ]
2
2021-12-15T15:59:46.000Z
2021-12-18T16:15:16.000Z
utils/roasts.py
pratheek78/Ezebot-Open-Source
7888bee4d9867c32832bbcb051afb1bae0ca16d4
[ "Apache-2.0" ]
1
2022-01-01T04:23:19.000Z
2022-01-29T03:21:03.000Z
utils/roasts.py
pratheek78/Ezebot-Open-Source
7888bee4d9867c32832bbcb051afb1bae0ca16d4
[ "Apache-2.0" ]
1
2022-02-21T15:10:56.000Z
2022-02-21T15:10:56.000Z
roastsList = ["If your brain was dynamite, there wouldnt be enough to blow your hat off", "You're so annoying, you make your Happy Meal cry", "Light travels faster than sound, which is why you seemed bright until you spoke", "I'm not insulting you, dude, im just describin...
77.842105
118
0.606491
02d3d6399e84c6adc255bdcf76e8a71456a894fe
9,176
py
Python
src/rez/utils/scope.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rez/utils/scope.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rez/utils/scope.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
1
2020-09-24T08:33:43.000Z
2020-09-24T08:33:43.000Z
# Copyright Contributors to the Rez project # # 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 ...
33.126354
79
0.559721
3f21f007554e17dbc8b4dc86327dd0aa1e171400
2,007
py
Python
stubs/micropython-v1_17-esp8266/usocket.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_17-esp8266/usocket.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_17-esp8266/usocket.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'usocket' on micropython-v1.17-esp8266 """ # MCU: {'ver': 'v1.17', 'port': 'esp8266', 'arch': 'xtensa', 'sysname': 'esp8266', 'release': '1.17', 'name': 'micropython', 'mpy': 9733, 'version': '1.17', 'machine': 'ESP module with ESP8266', 'build': '', 'nodename': 'esp8266', 'platform': 'esp8266', 'family': '...
21.126316
278
0.508221
a0a120a0bdaad4c795fe1050abb356d050fb9102
787
py
Python
setup.py
youben11/simplesearch
f9d006f64caa441f21305427a71b29c6a9f10f2a
[ "Apache-2.0" ]
null
null
null
setup.py
youben11/simplesearch
f9d006f64caa441f21305427a71b29c6a9f10f2a
[ "Apache-2.0" ]
null
null
null
setup.py
youben11/simplesearch
f9d006f64caa441f21305427a71b29c6a9f10f2a
[ "Apache-2.0" ]
null
null
null
import setuptools import os def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requirements = read("requirements.txt").split() setuptools.setup( name="simplesearch", version="0.1a", author="Ayoub Benaissa", author_email="ayouben9@gmail.com", description="A l...
27.137931
72
0.684879
ff940bf50a1502929acc64f7de9db4f4457187d9
1,291
py
Python
hackathon_ht3/code/geo_sort-key_bnb-python-test.py
encodingintuition/MachineLearningWorkbook
fb8e985475ad930c30092a0b1a27f4b8be3c7979
[ "MIT" ]
null
null
null
hackathon_ht3/code/geo_sort-key_bnb-python-test.py
encodingintuition/MachineLearningWorkbook
fb8e985475ad930c30092a0b1a27f4b8be3c7979
[ "MIT" ]
null
null
null
hackathon_ht3/code/geo_sort-key_bnb-python-test.py
encodingintuition/MachineLearningWorkbook
fb8e985475ad930c30092a0b1a27f4b8be3c7979
[ "MIT" ]
null
null
null
# basic py libs import numpy as np import pandas as pd import json # GIS libs import geopandas as gpd from shapely.geometry import Point, Polygon # Sample JSON the BnBKey from the Json list of Gems # INGESTION longitude = -73.9233 latitude = 43.7717 bnb_geo_address = [ longitude,latitude ] # Data for GEMS hard coded...
28.065217
88
0.693261
3d71640624c8dca8e15f3148682b5a19097ee5ec
23,306
py
Python
train_model_Resnet50_keras_tuner.py
jamestd-td/dataset_shift
5b1c66c29bffced3267ed94706d9a5706753fcf6
[ "MIT" ]
null
null
null
train_model_Resnet50_keras_tuner.py
jamestd-td/dataset_shift
5b1c66c29bffced3267ed94706d9a5706753fcf6
[ "MIT" ]
null
null
null
train_model_Resnet50_keras_tuner.py
jamestd-td/dataset_shift
5b1c66c29bffced3267ed94706d9a5706753fcf6
[ "MIT" ]
null
null
null
import tensorflow as tf import keras_tuner as kt from sklearn.metrics import roc_curve, roc_auc_score from sklearn.metrics import auc import matplotlib.pyplot as plt import numpy as np import os import seaborn as sns # ============================================================================= # Tensorflow setup fo...
39.23569
111
0.546254
be71a6b5241721d70160591082153a4bc1a9f7d2
3,048
py
Python
GetStarted/02_adding_data_to.py
ganeshghimire1986/google_earth_engine
21436dd80318b1d02ac3d2ef880ad01d626b84cb
[ "MIT" ]
null
null
null
GetStarted/02_adding_data_to.py
ganeshghimire1986/google_earth_engine
21436dd80318b1d02ac3d2ef880ad01d626b84cb
[ "MIT" ]
null
null
null
GetStarted/02_adding_data_to.py
ganeshghimire1986/google_earth_engine
21436dd80318b1d02ac3d2ef880ad01d626b84cb
[ "MIT" ]
null
null
null
# %% """ <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/GetStarted/02_adding_data_to.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target=...
39.584416
457
0.724738
ced8292a725dbe6e8109b7a020805b93e8048053
158
py
Python
examples/bioinformatics/research/exploratory_data_analysis/nmf_comparison.py
LiorZ/labnote
d3732e8ce6414796c1631ac009147e7488012066
[ "BSD-2-Clause-FreeBSD" ]
19
2017-02-23T04:02:54.000Z
2021-02-04T12:34:57.000Z
examples/bioinformatics/research/exploratory_data_analysis/nmf_comparison.py
LiorZ/labnote
d3732e8ce6414796c1631ac009147e7488012066
[ "BSD-2-Clause-FreeBSD" ]
1
2019-03-06T23:27:46.000Z
2019-03-06T23:27:46.000Z
examples/bioinformatics/research/exploratory_data_analysis/nmf_comparison.py
LiorZ/labnote
d3732e8ce6414796c1631ac009147e7488012066
[ "BSD-2-Clause-FreeBSD" ]
4
2017-06-16T03:47:44.000Z
2022-02-18T03:40:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Nonnegative matrix factorization comparison """ def main(): pass if __name__ == "__main__": main()
14.363636
43
0.620253
a328c9e3c8b8e2bb05d44110bd624b1c5ce7a289
224
py
Python
sample/insert_after.py
iogf/ehp
14d2cae449f411863fea201c3a99802fa37f1696
[ "MIT" ]
47
2015-09-11T20:44:05.000Z
2022-03-03T01:16:51.000Z
sample/insert_after.py
iogf/ehp
14d2cae449f411863fea201c3a99802fa37f1696
[ "MIT" ]
6
2016-06-30T18:55:08.000Z
2020-08-15T20:19:11.000Z
sample/insert_after.py
iogf/ehp
14d2cae449f411863fea201c3a99802fa37f1696
[ "MIT" ]
15
2016-05-08T01:17:10.000Z
2021-06-29T07:43:08.000Z
from ehp import * data = '''<html><body><em> alpha </em></body></html>''' dom = Html().feed(data) x = Tag('em') x.append(Data('beta')) for root, ind in dom.find_with_root('em'): root.insert_after(ind, x) print(dom)
16
55
0.611607
16c83f71f80919c36c1fb4e9708f80619158a40d
1,673
py
Python
creme/optim/rms_prop.py
Raul9595/creme
39cec7ac27ccd40ff0a7bdd6bceaf7ce25c1a8da
[ "BSD-3-Clause" ]
1
2020-07-27T03:06:46.000Z
2020-07-27T03:06:46.000Z
creme/optim/rms_prop.py
2torus/creme
bcc5e2a0155663a1f0ba779c68f23456695bcb54
[ "BSD-3-Clause" ]
null
null
null
creme/optim/rms_prop.py
2torus/creme
bcc5e2a0155663a1f0ba779c68f23456695bcb54
[ "BSD-3-Clause" ]
2
2021-06-20T09:29:38.000Z
2021-06-23T07:47:21.000Z
import collections from . import base __all__ = ['RMSProp'] class RMSProp(base.Optimizer): """RMSProp optimizer. Example: :: >>> from creme import compose >>> from creme import linear_model >>> from creme import metrics >>> from creme import model_...
28.844828
152
0.53676
8b3521a184d8613d684d1718bb3d73340c541af3
174
py
Python
pyroot/check_model.py
mj-will/ml4np
7dca09d430e588b04ced8a12e46caa5d2a6f2c09
[ "MIT" ]
null
null
null
pyroot/check_model.py
mj-will/ml4np
7dca09d430e588b04ced8a12e46caa5d2a6f2c09
[ "MIT" ]
null
null
null
pyroot/check_model.py
mj-will/ml4np
7dca09d430e588b04ced8a12e46caa5d2a6f2c09
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from keras.models import load_model # get filename fname = sys.argv[1] print(fname) # load model model = load_model(fname) model.summary()
14.5
35
0.747126
d5ead432df7de39a5e5e5248351fa79063b25e8a
485
py
Python
src/configs.py
mariolovric/solubility
55f8002b27fc03a05a37d88607b69c7e6146ba06
[ "MIT" ]
2
2021-12-14T13:09:02.000Z
2022-02-13T16:17:42.000Z
src/configs.py
mariolovric/solubility
55f8002b27fc03a05a37d88607b69c7e6146ba06
[ "MIT" ]
null
null
null
src/configs.py
mariolovric/solubility
55f8002b27fc03a05a37d88607b69c7e6146ba06
[ "MIT" ]
2
2020-09-28T02:12:39.000Z
2021-08-13T08:14:00.000Z
param_space = { 'rf_': { 'max_depth': (8, 30), 'n_estimators': (50, 300), 'max_samples': (.25, .6), 'min_samples_split': (3, 10) }, 'lg_': { 'num_leaves': (20, 250), 'max_depth': (2, 50), 'lambda_l2': (0.0, .1), 'lambda_l1': (0.0, .1),...
15.645161
36
0.385567
48c6c942c553c1df572b05b72d8910f79f7139c0
2,170
py
Python
pinakes/main/analytics/tasks.py
mkanoor/pinakes
cfcc6e8e12e9c68d7930f41075b5e4e0dfee51c3
[ "Apache-2.0" ]
null
null
null
pinakes/main/analytics/tasks.py
mkanoor/pinakes
cfcc6e8e12e9c68d7930f41075b5e4e0dfee51c3
[ "Apache-2.0" ]
null
null
null
pinakes/main/analytics/tasks.py
mkanoor/pinakes
cfcc6e8e12e9c68d7930f41075b5e4e0dfee51c3
[ "Apache-2.0" ]
null
null
null
""" Tasks for metrics collection """ import logging import django_rq from rq import Queue from rq.job import Job from rq import get_current_job from rq import exceptions from django.utils.timezone import make_aware from pinakes.main.analytics.collector import AnalyticsCollector from pinakes.main.analytics import anal...
26.144578
72
0.682028
529f9c855773196fd5759108688b1a147af1c8dd
85,453
py
Python
src/aequitas/plotting.py
LiFaytheGoblin/aequitas
e5690baa955c94ea6459af5064cf1c741a345646
[ "MIT" ]
469
2018-04-24T23:11:45.000Z
2022-03-29T07:54:07.000Z
src/aequitas/plotting.py
LiFaytheGoblin/aequitas
e5690baa955c94ea6459af5064cf1c741a345646
[ "MIT" ]
62
2018-04-16T00:14:56.000Z
2021-11-12T10:35:01.000Z
src/aequitas/plotting.py
LiFaytheGoblin/aequitas
e5690baa955c94ea6459af5064cf1c741a345646
[ "MIT" ]
94
2018-05-21T16:13:57.000Z
2022-03-25T20:07:25.000Z
import logging import math import numpy as np import collections import seaborn as sns import matplotlib.pyplot as plt import matplotlib.colors import matplotlib.cm from aequitas import squarify_flipped as sf logging.getLogger(__name__) __author__ = "Pedro Saleiro <saleiro@uchicago.edu>, Loren Hinkson" __copyright__...
45.237163
212
0.593519
382b9578d66961ed4369fb6bf9a30df328d21003
3,115
py
Python
qa/rpc-tests/invalidateblock.py
mirzaei-ce/core-shahbit
57ad738667b3d458c92d94aee713c184d911c537
[ "MIT" ]
null
null
null
qa/rpc-tests/invalidateblock.py
mirzaei-ce/core-shahbit
57ad738667b3d458c92d94aee713c184d911c537
[ "MIT" ]
null
null
null
qa/rpc-tests/invalidateblock.py
mirzaei-ce/core-shahbit
57ad738667b3d458c92d94aee713c184d911c537
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test InvalidateBlock code # from test_framework.test_framework import ShahbitTestFramework from test...
40.986842
95
0.646549
5eb84b139256fbc9fc91bfe1abd024934c0b1897
387
py
Python
plgnd/wsgi.py
Griperis/django-heroku-deployment
1a47b83d62e0ae11eb7bc76d05bea7efe28e7636
[ "MIT" ]
null
null
null
plgnd/wsgi.py
Griperis/django-heroku-deployment
1a47b83d62e0ae11eb7bc76d05bea7efe28e7636
[ "MIT" ]
null
null
null
plgnd/wsgi.py
Griperis/django-heroku-deployment
1a47b83d62e0ae11eb7bc76d05bea7efe28e7636
[ "MIT" ]
null
null
null
""" WSGI config for plgnd project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
11a92d3ef8eb74714bdbe7cd0e22766b9c76469e
7,844
py
Python
docs/source/conf.py
stengaard/trousseau
9f9c920f7eb4feb958946b9f7a89a28b9c622669
[ "MIT" ]
1
2017-08-13T00:16:35.000Z
2017-08-13T00:16:35.000Z
docs/source/conf.py
stengaard/trousseau
9f9c920f7eb4feb958946b9f7a89a28b9c622669
[ "MIT" ]
null
null
null
docs/source/conf.py
stengaard/trousseau
9f9c920f7eb4feb958946b9f7a89a28b9c622669
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # trousseau documentation build configuration file, created by # sphinx-quickstart on Tue Feb 18 12:47:01 2014. # # 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. # # A...
31.502008
80
0.714049
0d77b5eace18bd5911cc05ed35f899fa62a9e209
48,878
py
Python
haros/metamodel.py
ipa-nhg/haros
ed657653b07418d9f93915d66fb201e7a1762602
[ "MIT" ]
null
null
null
haros/metamodel.py
ipa-nhg/haros
ed657653b07418d9f93915d66fb201e7a1762602
[ "MIT" ]
null
null
null
haros/metamodel.py
ipa-nhg/haros
ed657653b07418d9f93915d66fb201e7a1762602
[ "MIT" ]
null
null
null
#Copyright (c) 2017 Andre Santos # #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, publish, distribute...
32.433975
80
0.554687
a963424cd3da033f00bffe2b364c607cc2e2a1b8
265
py
Python
tests/test_array.py
IamGianluca/hackerrank
6f58451ebf8726d88b19c6aab0368d9b704666cd
[ "MIT" ]
null
null
null
tests/test_array.py
IamGianluca/hackerrank
6f58451ebf8726d88b19c6aab0368d9b704666cd
[ "MIT" ]
null
null
null
tests/test_array.py
IamGianluca/hackerrank
6f58451ebf8726d88b19c6aab0368d9b704666cd
[ "MIT" ]
null
null
null
import pytest from hrank.data_structures.arrays.arrays import reverse_array @pytest.mark.parametrize('arr,expected', [ ([1,2,3,10], [10,3,2,1]), ([0,0,-1,5], [5,-1,0,0]) ]) def test_reverse_array(arr, expected): assert reverse_array(arr) == expected
22.083333
61
0.675472
c2440a44857869e872bd4dced23e6a32335bf637
1,429
py
Python
Algorithms/Python/OS/priority-premtive.py
ANUBHAVNATANI/Data-Strucures
fd57031b7b4c82b3ef734d26709d2066b6630f81
[ "MIT" ]
4
2018-03-15T20:54:44.000Z
2018-04-15T10:09:33.000Z
Algorithms/Python/OS/priority-premtive.py
ANUBHAVNATANI/Data-Structures-And-Algorithms
fd57031b7b4c82b3ef734d26709d2066b6630f81
[ "MIT" ]
null
null
null
Algorithms/Python/OS/priority-premtive.py
ANUBHAVNATANI/Data-Structures-And-Algorithms
fd57031b7b4c82b3ef734d26709d2066b6630f81
[ "MIT" ]
5
2018-07-30T07:37:46.000Z
2020-10-03T09:57:23.000Z
# program for premtive priority n_p = 5 brust_time = [7, 3, 2, 10, 8] priority = [2, 3, 4, 1, 5] arr_time = [0, 2, 5, 6, 7] turn_around_time = [0, 0, 0, 0, 0] waiting_time = [0, 0, 0, 0, 0] c = [7, 3, 2, 10, 8] time_stamp = 0 curr = 6 ij = -1 def ifless(a, curr, t): s = [] i = 0 # print("time"+str(t)) ...
22.68254
71
0.463261
5a9a1ea43f50307f32f9250ba8fcc1225a93b89d
324
py
Python
contrib/capitalone_dataprofiler_expectations/setup.py
arunnthevapalan/great_expectations
97f1481bcd1c3f4d8878c6f383f4e6f008b20cd1
[ "Apache-2.0" ]
1
2022-03-16T22:09:49.000Z
2022-03-16T22:09:49.000Z
contrib/capitalone_dataprofiler_expectations/setup.py
draev/great_expectations
317e15ee7e50f6e0d537b62154177440f33b795d
[ "Apache-2.0" ]
null
null
null
contrib/capitalone_dataprofiler_expectations/setup.py
draev/great_expectations
317e15ee7e50f6e0d537b62154177440f33b795d
[ "Apache-2.0" ]
1
2022-03-03T16:47:32.000Z
2022-03-03T16:47:32.000Z
from typing import List import setuptools def get_requirements() -> List[str]: with open("requirements.txt") as f: requirements = f.read().splitlines() return requirements setuptools.setup( name="capitalone_dataprofiler_expectations", version="0.1.0", install_requires=get_requirements()...
19.058824
48
0.709877
fff5732baad18e290e56b65403f3e8525b4ef105
12,738
py
Python
tests/unit/modules/test_cmdmod.py
amaclean199/salt
8aaac011b4616e3c9e74a1daafb4a2146a5a430f
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_cmdmod.py
amaclean199/salt
8aaac011b4616e3c9e74a1daafb4a2146a5a430f
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_cmdmod.py
amaclean199/salt
8aaac011b4616e3c9e74a1daafb4a2146a5a430f
[ "Apache-2.0" ]
1
2019-06-10T17:42:31.000Z
2019-06-10T17:42:31.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Nicole Thomas <nicole@saltstack.com>` ''' # Import python libs from __future__ import absolute_import, print_function, unicode_literals import os import sys import tempfile # Import Salt Libs import salt.utils.platform import salt.modules.cmdmod as cmdmod from salt...
41.627451
108
0.605825
39740a59fb05d2a5c9bac9cbc0e37075774eeba0
1,174
py
Python
ios_behave/steps/calc.py
jcnav/toolium-examples
6e5429a6fe532407856103f655435e964fa89da9
[ "Apache-2.0" ]
9
2016-01-21T13:57:39.000Z
2020-12-21T07:28:17.000Z
ios_behave/steps/calc.py
jcnav/toolium-examples
6e5429a6fe532407856103f655435e964fa89da9
[ "Apache-2.0" ]
5
2017-09-12T09:00:38.000Z
2022-01-19T13:08:33.000Z
ios_behave/steps/calc.py
jcnav/toolium-examples
6e5429a6fe532407856103f655435e964fa89da9
[ "Apache-2.0" ]
13
2016-05-24T07:40:13.000Z
2021-12-06T12:35:07.000Z
# -*- coding: utf-8 -*- u""" Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U. This file is part of Toolium. 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/lic...
31.72973
72
0.774276
2d2714e1cabfde76e088953d533dc15a7957831b
15,383
py
Python
tests/test_notifier.py
HumanCellAtlas/data-store
6b27d0f7e0110c62b3079151708689ab5145f15b
[ "MIT" ]
46
2017-03-24T15:56:09.000Z
2021-03-15T19:49:07.000Z
tests/test_notifier.py
HumanCellAtlas/DCC
6b27d0f7e0110c62b3079151708689ab5145f15b
[ "MIT" ]
1,799
2017-04-04T17:54:28.000Z
2020-11-19T12:30:13.000Z
tests/test_notifier.py
HumanCellAtlas/DCC
6b27d0f7e0110c62b3079151708689ab5145f15b
[ "MIT" ]
13
2017-03-27T23:49:35.000Z
2021-01-18T07:39:49.000Z
#!/usr/bin/env python # coding: utf-8 from collections import Counter from http.server import HTTPServer, BaseHTTPRequestHandler from itertools import count import json import logging from math import sqrt from socketserver import ThreadingMixIn from typing import List, Tuple, Optional from unittest import mock import...
44.588406
119
0.631216
7f892f1bd98c82a7aa9893c46869bc7401e92d1e
5,951
py
Python
real_trade/Algorithm_PriceDeciderByContinuousPositiveLine.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
3
2018-05-22T22:45:23.000Z
2020-02-13T16:45:03.000Z
real_trade/Algorithm_PriceDeciderByContinuousPositiveLine.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
null
null
null
real_trade/Algorithm_PriceDeciderByContinuousPositiveLine.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import time import math from ChartBars import Chart from Util import TimeUtil from Algorithm_PriceDecider_CloseFixedRateAndTime_base import PriceDecider_CloseFixedRateAndTime_base class PriceDeciderByContinuousPositiveLine(PriceDecider_CloseFixedRateAndTime_base): def __init__(self, ...
41.326389
144
0.648126
69a5880b609c89914bfe3947f5843eae0c0ce431
844
py
Python
demo/test_basic_examples.py
AnandJyrm/allure-pytest
495a90d64690d200ca402a5dbffb96f6335d428b
[ "Apache-2.0" ]
112
2017-01-24T21:37:49.000Z
2022-03-25T22:32:12.000Z
demo/test_basic_examples.py
AnandJyrm/allure-pytest
495a90d64690d200ca402a5dbffb96f6335d428b
[ "Apache-2.0" ]
56
2017-01-21T20:01:41.000Z
2019-01-14T13:35:53.000Z
demo/test_basic_examples.py
AnandJyrm/allure-pytest
495a90d64690d200ca402a5dbffb96f6335d428b
[ "Apache-2.0" ]
52
2017-01-23T13:40:40.000Z
2022-03-30T00:02:31.000Z
''' This module contains basic examples of tests ''' import pytest def test_success(): 'this test succedes' assert True def test_failure(): 'this test fails' assert False def test_skip(): 'this test is skipped' pytest.skip('for a reason!') @pytest.mark.xfail() def test_xfail(): 'this...
15.071429
70
0.654028
45896dd1f59326b46c5723bbc8f2232796687193
4,873
py
Python
setup.py
drbenschmidt/raspberrypi-hunter-remote
b8b21af4ebb555a71913180b2bf64a37c7d975a5
[ "MIT" ]
null
null
null
setup.py
drbenschmidt/raspberrypi-hunter-remote
b8b21af4ebb555a71913180b2bf64a37c7d975a5
[ "MIT" ]
null
null
null
setup.py
drbenschmidt/raspberrypi-hunter-remote
b8b21af4ebb555a71913180b2bf64a37c7d975a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command from setuptools.command.test import test as TestCommand def read(fname): with open(os.path.join(os.path.dirname(__file__), fname)) as f: return f.read() install_requires = read('re...
27.845714
77
0.662836
0fa5354f5b578f43b1f6f5a556273bb58722475a
5,546
py
Python
testing/cross_language/prf_set_test.py
fax001/tink
9f30c97cb84b10bbba6978bc9c12c86478024050
[ "Apache-2.0" ]
1
2022-03-15T03:21:44.000Z
2022-03-15T03:21:44.000Z
testing/cross_language/prf_set_test.py
fax001/tink
9f30c97cb84b10bbba6978bc9c12c86478024050
[ "Apache-2.0" ]
1
2022-03-02T13:25:38.000Z
2022-03-02T13:25:38.000Z
testing/cross_language/prf_set_test.py
fax001/tink
9f30c97cb84b10bbba6978bc9c12c86478024050
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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, ...
36.248366
80
0.740534
580a560f4d4a760a26e5cd4f85569ee5bc541aa0
1,202
py
Python
tests/repository/elements.py
proteanhq/protean
2006832265435cad8d4f9b86d1a789d8828d2707
[ "BSD-3-Clause" ]
6
2018-09-26T04:54:09.000Z
2022-03-30T01:01:45.000Z
tests/repository/elements.py
proteanhq/protean
2006832265435cad8d4f9b86d1a789d8828d2707
[ "BSD-3-Clause" ]
261
2018-09-20T09:53:33.000Z
2022-03-08T17:43:04.000Z
tests/repository/elements.py
proteanhq/protean
2006832265435cad8d4f9b86d1a789d8828d2707
[ "BSD-3-Clause" ]
6
2018-07-22T07:09:15.000Z
2021-02-02T05:17:23.000Z
import re from collections import defaultdict from typing import List from protean import BaseAggregate, BaseRepository, BaseValueObject from protean.fields import Integer, String, ValueObject from protean.globals import current_domain class Person(BaseAggregate): first_name = String(max_length=50, required=Tru...
27.318182
86
0.705491
f78adb9e923820de4494f299b90384f25c8e39e0
533
py
Python
trac/versioncontrol/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/versioncontrol/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/versioncontrol/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
35.533333
67
0.761726
ccc4c9577fda3912d40be7b9cc8a1e414aede96a
2,291
py
Python
ircrobots/matching/responses.py
examknow/ircrobots
ac4c144d58aaf7b70ad7248a385922fe6528dbcb
[ "MIT" ]
18
2020-04-13T23:32:55.000Z
2022-02-04T16:11:34.000Z
ircrobots/matching/responses.py
examknow/ircrobots
ac4c144d58aaf7b70ad7248a385922fe6528dbcb
[ "MIT" ]
6
2020-10-04T00:34:04.000Z
2021-03-26T12:14:21.000Z
ircrobots/matching/responses.py
examknow/ircrobots
ac4c144d58aaf7b70ad7248a385922fe6528dbcb
[ "MIT" ]
7
2020-04-20T01:11:09.000Z
2022-03-28T22:36:55.000Z
from typing import List, Optional, Sequence, Union from irctokens import Line from ..interface import (IServer, IMatchResponse, IMatchResponseParam, IMatchResponseHostmask) from .params import * TYPE_PARAM = Union[str, IMatchResponseParam] class Responses(IMatchResponse): def __init__(self, ...
35.796875
70
0.577041
f6ad6c574b8c08cbfb3f31cfaad8166ab3cce2ce
1,342
py
Python
tools_cmd/cmd_blog.py
Landers1037/tools
864a5889af746e4114a4f6708858e7321e675a3c
[ "MIT" ]
null
null
null
tools_cmd/cmd_blog.py
Landers1037/tools
864a5889af746e4114a4f6708858e7321e675a3c
[ "MIT" ]
null
null
null
tools_cmd/cmd_blog.py
Landers1037/tools
864a5889af746e4114a4f6708858e7321e675a3c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Time: 2020-08-15 15:32 # Author: Landers1037 # Mail: liaorenj@gmail.com # File: blog.py import click,os from utils.db_trans import * from utils.to_json import newjson @click.command() @click.option("-r","--remove",is_flag=True,default=False,help="删除数据库") @click.option("-n","--new",...
29.173913
75
0.564083
134774fce1bd135409487fa79f95796ef93b64ba
10,034
py
Python
docs/src/conf.py
buruzaemon/natto-py
8f3b8863ca48eb10d9bec74af81408bcaebab7ce
[ "BSD-2-Clause" ]
83
2015-02-24T03:55:14.000Z
2022-03-22T11:01:03.000Z
docs/src/conf.py
buruzaemon/natto-py
8f3b8863ca48eb10d9bec74af81408bcaebab7ce
[ "BSD-2-Clause" ]
60
2015-02-10T13:50:34.000Z
2021-10-04T01:09:35.000Z
docs/src/conf.py
buruzaemon/natto-py
8f3b8863ca48eb10d9bec74af81408bcaebab7ce
[ "BSD-2-Clause" ]
16
2015-02-24T03:55:25.000Z
2021-05-12T16:56:12.000Z
# -*- coding: utf-8 -*- # # natto-py documentation build configuration file, created by # sphinx-quickstart on Sat Oct 1 08:25:03 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. # # ...
28.505682
80
0.70012
45c4fb5dfc45dd84a006d5497df177361ac1aa69
4,458
py
Python
tests/inference/qhbm_utils_test.py
ecsbeats/qhbm-library
9d938a915d54fdbb4839ce346110884e0c53feb8
[ "Apache-2.0" ]
19
2022-02-17T19:32:36.000Z
2022-03-31T01:07:19.000Z
tests/inference/qhbm_utils_test.py
ecsbeats/qhbm-library
9d938a915d54fdbb4839ce346110884e0c53feb8
[ "Apache-2.0" ]
37
2022-02-17T17:26:01.000Z
2022-03-31T21:32:16.000Z
tests/inference/qhbm_utils_test.py
ecsbeats/qhbm-library
9d938a915d54fdbb4839ce346110884e0c53feb8
[ "Apache-2.0" ]
8
2022-02-17T17:26:32.000Z
2022-03-18T12:11:33.000Z
# Copyright 2021 The QHBM Library 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
36.540984
80
0.695379
6be3313a2ea31f912e49f763ab5d83b41786112c
177
py
Python
django_restframework_2fa/apps.py
jeetpatel9/django-restframework-2fa
8544a2b553f6e61040541ccaa77fc15076c08345
[ "MIT" ]
null
null
null
django_restframework_2fa/apps.py
jeetpatel9/django-restframework-2fa
8544a2b553f6e61040541ccaa77fc15076c08345
[ "MIT" ]
3
2021-06-09T14:41:08.000Z
2021-06-09T14:42:18.000Z
django_restframework_2fa/apps.py
jeetpatel9/django-restframework-2fa
8544a2b553f6e61040541ccaa77fc15076c08345
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DjangoRestframework2FaConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'django_restframework_2fa'
29.5
56
0.80791
f59312fbaa0bc928f91cffc720570605161d86be
2,835
py
Python
demo/tasks.py
honorabel/python-fretboard
fb6a37e29bf6a19bee11940e9b42d58220c1306c
[ "MIT" ]
1
2020-11-02T16:30:38.000Z
2020-11-02T16:30:38.000Z
demo/tasks.py
honorabel/python-fretboard
fb6a37e29bf6a19bee11940e9b42d58220c1306c
[ "MIT" ]
null
null
null
demo/tasks.py
honorabel/python-fretboard
fb6a37e29bf6a19bee11940e9b42d58220c1306c
[ "MIT" ]
null
null
null
import os import sys import invoke import livereload sys.path.append(os.path.abspath('..')) import fretboard server = livereload.Server() @invoke.task def clean(ctx): os.system('rm -rf ./svg/*.svg') @invoke.task def build(ctx): # Chord (D) chord = fretboard.Chord(positions='xx0232', fingers='---132'...
30.483871
89
0.628571
0971055e828797d96000daa19b4c28cfbb2f6b83
14,640
py
Python
data_utils.py
SauravMaheshkar/IGMC
b6f7ec543c3f713373b27f9cf486aa1456384fd8
[ "MIT" ]
null
null
null
data_utils.py
SauravMaheshkar/IGMC
b6f7ec543c3f713373b27f9cf486aa1456384fd8
[ "MIT" ]
4
2022-01-06T19:49:47.000Z
2022-01-07T10:21:41.000Z
data_utils.py
SauravMaheshkar/IGMC
b6f7ec543c3f713373b27f9cf486aa1456384fd8
[ "MIT" ]
null
null
null
from __future__ import division, print_function import os.path import random # For automatic dataset downloading from urllib.request import urlopen from zipfile import ZipFile import numpy as np import pandas as pd import scipy.sparse as sp from tqdm import tqdm try: from BytesIO import BytesIO except ImportErr...
31.483871
114
0.582309
c4d3910bbcfac2e0d5a0bad43d8f250a9115aa84
11,719
py
Python
QUANTAXIS/__init__.py
yehonghao/QUANTAXIS
d977810233607e2bea016450bef6bb080582b498
[ "MIT" ]
1
2021-02-19T07:49:31.000Z
2021-02-19T07:49:31.000Z
QUANTAXIS/__init__.py
yehonghao/QUANTAXIS
d977810233607e2bea016450bef6bb080582b498
[ "MIT" ]
null
null
null
QUANTAXIS/__init__.py
yehonghao/QUANTAXIS
d977810233607e2bea016450bef6bb080582b498
[ "MIT" ]
1
2021-02-19T07:49:38.000Z
2021-02-19T07:49:38.000Z
#coding :utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2019 yutiansut/QUANTAXIS # # 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...
56.613527
137
0.632989
46c535414ccdd8943ae848255aaf38bfe69effe9
10,757
py
Python
gbpclient/tests/unit/test_cli20_l3policy.py
noironetworks/python-group-based-policy-client
150c9b0d752bfea79651253d9fa3382842df1a69
[ "Apache-2.0" ]
null
null
null
gbpclient/tests/unit/test_cli20_l3policy.py
noironetworks/python-group-based-policy-client
150c9b0d752bfea79651253d9fa3382842df1a69
[ "Apache-2.0" ]
null
null
null
gbpclient/tests/unit/test_cli20_l3policy.py
noironetworks/python-group-based-policy-client
150c9b0d752bfea79651253d9fa3382842df1a69
[ "Apache-2.0" ]
1
2015-09-29T21:36:04.000Z
2015-09-29T21:36:04.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
40.746212
78
0.549596
28873e06fec5d13855310a4e94a1b01786466372
3,541
py
Python
fmriprep/workflows/bold/t2s.py
franklin-feingold/fmriprep
f46467101fccb257a23b1ba81ed5cdc66f278932
[ "BSD-3-Clause" ]
null
null
null
fmriprep/workflows/bold/t2s.py
franklin-feingold/fmriprep
f46467101fccb257a23b1ba81ed5cdc66f278932
[ "BSD-3-Clause" ]
null
null
null
fmriprep/workflows/bold/t2s.py
franklin-feingold/fmriprep
f46467101fccb257a23b1ba81ed5cdc66f278932
[ "BSD-3-Clause" ]
1
2022-02-21T08:19:49.000Z
2022-02-21T08:19:49.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Generate T2* map from multi-echo BOLD images ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. autofunction:: init_bold_t2s_wf """ from nipype import logging from nipype.pipeline...
35.767677
152
0.675798
be1ed61ff7fccadd9c383600f5b1b919765c5a8f
22,682
py
Python
neutron/services/qos/qos_plugin.py
knodir/neutron
ac4e28478ac8a8a0c9f5c5785f6a6bcf532c66b8
[ "Apache-2.0" ]
null
null
null
neutron/services/qos/qos_plugin.py
knodir/neutron
ac4e28478ac8a8a0c9f5c5785f6a6bcf532c66b8
[ "Apache-2.0" ]
null
null
null
neutron/services/qos/qos_plugin.py
knodir/neutron
ac4e28478ac8a8a0c9f5c5785f6a6bcf532c66b8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 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 required...
42.555347
79
0.660083
a630191266da5c993c2097f065eb69e34d5565c6
2,260
py
Python
source/conf.py
xxzhai123/nfn
5896c30cbe3fe6bb4d5d35af97c3a26cb9f6b59b
[ "MIT" ]
null
null
null
source/conf.py
xxzhai123/nfn
5896c30cbe3fe6bb4d5d35af97c3a26cb9f6b59b
[ "MIT" ]
null
null
null
source/conf.py
xxzhai123/nfn
5896c30cbe3fe6bb4d5d35af97c3a26cb9f6b59b
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.731343
79
0.682301
d04753fe91c8146937314e57fe53406b12fce300
1,477
py
Python
mask.py
sahin88/face_mask_detection
be3bb506a62be5298b05ff93e9c7bb6d856650fd
[ "Unlicense" ]
null
null
null
mask.py
sahin88/face_mask_detection
be3bb506a62be5298b05ff93e9c7bb6d856650fd
[ "Unlicense" ]
null
null
null
mask.py
sahin88/face_mask_detection
be3bb506a62be5298b05ff93e9c7bb6d856650fd
[ "Unlicense" ]
null
null
null
import numpy as np import tensorflow as tf import matplotlib.pyplot as plt import cv2 cascade_path='/home/alex/Downloads/haarcascade_frontalface_default.xml' model_paramaters='/home/alex/Downloads/face_mask1.h5' name="face_mask_detection" new_model=tf.keras.models.load_model(model_paramaters) cv2.namedWindow(name) ...
29.54
82
0.748138
88bb8215fe26dd6d125b7dfc701496e608d772c5
44,722
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" MixedModuleStore allows for aggregation between multiple modulestores. In this way, courses can be served up via either SplitMongoModuleStore or MongoModuleStore. """ import functools import itertools import logging from contextlib import contextmanager from opaque_keys import InvalidKeyError from opaque_keys.ed...
42.919386
169
0.651514
f4e1138cdb9f300fce2661a1d3e1c03e56b5431b
134
py
Python
pypi_librarian/_version.py
jayvdb/pypi_librarian
e1b98bd035c7d9bbab7bdd1511d03e58fb927236
[ "MIT" ]
3
2019-06-07T14:45:03.000Z
2019-12-26T19:48:29.000Z
pypi_librarian/_version.py
jayvdb/pypi_librarian
e1b98bd035c7d9bbab7bdd1511d03e58fb927236
[ "MIT" ]
2
2019-12-26T15:13:18.000Z
2020-03-30T06:35:22.000Z
pypi_librarian/_version.py
jayvdb/pypi_librarian
e1b98bd035c7d9bbab7bdd1511d03e58fb927236
[ "MIT" ]
2
2019-06-07T14:45:07.000Z
2019-12-26T14:37:16.000Z
# coding=utf-8 """ Just version so that if this is run, there is no side effects. """ __version__ = "0.1.6" # Jiggle Version Was Here
22.333333
62
0.686567
d1c16281614bfaf120352121c36fd7406b7c16f4
3,972
py
Python
riak/transports/http/connection.py
lixen/riak-python-client
43c0e2d43b185180fe8dd02ca759fbfb54bfec4b
[ "Apache-2.0" ]
89
2015-01-06T01:54:57.000Z
2020-11-25T04:47:09.000Z
riak/transports/http/connection.py
lixen/riak-python-client
43c0e2d43b185180fe8dd02ca759fbfb54bfec4b
[ "Apache-2.0" ]
125
2015-01-05T09:32:37.000Z
2021-06-27T21:28:51.000Z
riak/transports/http/connection.py
lixen/riak-python-client
43c0e2d43b185180fe8dd02ca759fbfb54bfec4b
[ "Apache-2.0" ]
73
2015-01-19T18:04:35.000Z
2022-03-25T17:10:51.000Z
# Copyright 2010-present Basho Technologies, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.241379
75
0.614552
2b750d2cea6f0e163ee49617941e82f8a4e81fe1
6,868
py
Python
spacq/gui/config/measurement.py
bleutooth65/SpanishAcquisition3
50d1445c57f7ecf3bbf03a2cb28befedba1bd57a
[ "BSD-2-Clause" ]
1
2020-09-30T15:52:48.000Z
2020-09-30T15:52:48.000Z
spacq/gui/config/measurement.py
bleutooth65/SpanishAcquisition3
50d1445c57f7ecf3bbf03a2cb28befedba1bd57a
[ "BSD-2-Clause" ]
null
null
null
spacq/gui/config/measurement.py
bleutooth65/SpanishAcquisition3
50d1445c57f7ecf3bbf03a2cb28befedba1bd57a
[ "BSD-2-Clause" ]
3
2019-06-13T20:59:13.000Z
2021-02-07T03:23:11.000Z
from pubsub import pub import wx from spacq.iteration.variables import InputVariable from ..tool.box import OK_BACKGROUND_COLOR, MessageDialog from .scaling import ScalingSettings, ScalingSettingsDialog class MeasurementConfigPanel(wx.Panel): """ Measurement configuration panel. """ def __init__(self, parent, ...
32.093458
103
0.765871
4b8d13ce30355419383d93b71018f02a3a048e49
182,160
py
Python
pandas/core/frame.py
ledmonster/pandas
bae392d2ee27273b11cd7c4d1c2a20a999bed357
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/frame.py
ledmonster/pandas
bae392d2ee27273b11cd7c4d1c2a20a999bed357
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/frame.py
ledmonster/pandas
bae392d2ee27273b11cd7c4d1c2a20a999bed357
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
37.001828
109
0.544038
f0110d5ea1d9f0bfc4ad92240c8d101dcbfdd22c
193
py
Python
tests/quick/se/40.m5threads-test-atomic/test.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
135
2016-10-21T03:31:49.000Z
2022-03-25T01:22:20.000Z
tests/quick/se/40.m5threads-test-atomic/test.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
35
2017-03-10T17:57:46.000Z
2022-02-18T17:34:16.000Z
tests/quick/se/40.m5threads-test-atomic/test.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
48
2016-12-08T12:03:13.000Z
2022-02-16T09:16:13.000Z
process = Process(executable = binpath('m5threads', 'test_atomic'), cmd = ['test_atomic', str(nb_cores)]) for i in range(nb_cores): root.system.cpu[i].workload = process
32.166667
67
0.642487
ffc7dc1837223ad3e751d7e597e39301ab0bf2f9
3,368
py
Python
dataloaders/datasets/combine_dbs.py
dfsbbl/pytorch-deeplabv3
66877e98bcfa1caf8e3074418221ed83df921bb2
[ "MIT" ]
null
null
null
dataloaders/datasets/combine_dbs.py
dfsbbl/pytorch-deeplabv3
66877e98bcfa1caf8e3074418221ed83df921bb2
[ "MIT" ]
null
null
null
dataloaders/datasets/combine_dbs.py
dfsbbl/pytorch-deeplabv3
66877e98bcfa1caf8e3074418221ed83df921bb2
[ "MIT" ]
null
null
null
import torch.utils.data as data class CombineDBs(data.Dataset): NUM_CLASSES = 21 def __init__(self, dataloaders, excluded=None): self.dataloaders = dataloaders self.excluded = excluded self.im_ids = [] # Combine object lists for dl in dataloaders: for elem...
32.07619
76
0.574228
8d3c33334ccb416d48f66a5362837377f9559d0a
83
py
Python
openpifpaf_posetrack/decoder/pose_distance/__init__.py
vita-epfl/openpifpaf_posetrack
282ba063450d523728637167420d9ade4d9c1e65
[ "MIT" ]
9
2021-03-04T04:47:27.000Z
2021-03-30T01:48:55.000Z
openpifpaf_posetrack/decoder/pose_distance/__init__.py
vita-epfl/openpifpaf_posetrack
282ba063450d523728637167420d9ade4d9c1e65
[ "MIT" ]
4
2021-03-16T03:24:27.000Z
2021-04-01T19:22:02.000Z
openpifpaf_posetrack/decoder/pose_distance/__init__.py
vita-epfl/openpifpaf_posetrack
282ba063450d523728637167420d9ade4d9c1e65
[ "MIT" ]
null
null
null
from .crafted import Crafted from .euclidean import Euclidean from .oks import Oks
20.75
32
0.819277
1320629aeb4bd1a7459449a19f3d9756442f482b
6,154
py
Python
homeassistant/components/image_processing/__init__.py
paranoidmonoid/core
c4f98a3084f2648749d3e4eeeade9696630d9abd
[ "Apache-2.0" ]
1
2021-03-23T07:20:03.000Z
2021-03-23T07:20:03.000Z
homeassistant/components/image_processing/__init__.py
paranoidmonoid/core
c4f98a3084f2648749d3e4eeeade9696630d9abd
[ "Apache-2.0" ]
51
2020-08-03T07:30:44.000Z
2022-03-22T06:02:42.000Z
homeassistant/components/image_processing/__init__.py
mkrzywie/core
0503b14fbe5a50bc725a22bcaf40167445689dc8
[ "Apache-2.0" ]
null
null
null
"""Provides functionality to interact with image processing services.""" import asyncio from datetime import timedelta import logging from typing import final import voluptuous as vol from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_NAME, CONF_ENTITY_ID, CONF_NAME, CONF_SOURCE, ) from homeas...
27.846154
88
0.647709
06a19487fd862d143a552cb3bfb57a1fdeeef3c0
997
py
Python
workalendar/europe/hungary.py
chopanpma/workalendar
619687b9d788d0e8294d2831687d58a3444854a1
[ "MIT" ]
null
null
null
workalendar/europe/hungary.py
chopanpma/workalendar
619687b9d788d0e8294d2831687d58a3444854a1
[ "MIT" ]
null
null
null
workalendar/europe/hungary.py
chopanpma/workalendar
619687b9d788d0e8294d2831687d58a3444854a1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from workalendar.core import WesternCalendar, ChristianMixin from workalendar.registry import iso_register @iso_register('HU') class Hungary(WesternCalendar, ChristianMixin): 'Hungary' include_easter_sunday = True include_easter_monday = Tru...
30.212121
60
0.686058
e46178af54f54d5a05ed20eabf36a5136ebbf066
27,615
py
Python
tests/test_base.py
jack1142/uvloop
cdd2218fa3bb89eeec097bf0b7828897ef185aed
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_base.py
jack1142/uvloop
cdd2218fa3bb89eeec097bf0b7828897ef185aed
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_base.py
jack1142/uvloop
cdd2218fa3bb89eeec097bf0b7828897ef185aed
[ "Apache-2.0", "MIT" ]
null
null
null
import asyncio import fcntl import logging import os import sys import threading import time import uvloop import unittest import weakref from unittest import mock from uvloop._testbase import UVTestCase, AIOTestCase class _TestBase: def test_close(self): self.assertFalse(self.loop._closed) self...
31.59611
78
0.583958
03ef0d1a9dd9e99743c9351b4ce38b20705cfcb1
956
py
Python
apps/fhirproxy/utils.py
thebureaugroup/sharemyhealth
de93793d7065d50af53f260e3347b8ed30d8c864
[ "Apache-2.0" ]
null
null
null
apps/fhirproxy/utils.py
thebureaugroup/sharemyhealth
de93793d7065d50af53f260e3347b8ed30d8c864
[ "Apache-2.0" ]
4
2021-06-05T00:09:17.000Z
2021-12-13T20:52:41.000Z
apps/fhirproxy/utils.py
thebureaugroup/sharemyhealth
de93793d7065d50af53f260e3347b8ed30d8c864
[ "Apache-2.0" ]
null
null
null
import requests import urllib from django.conf import settings def fhir_get_access_token_with_client_credentials(): data = urllib.parse.urlencode({"client_id": settings.BACKEND_FHIR_CLIENT_ID, "client_secret": settings.BACKEND_FHIR_CLIENT_SECRET, ...
38.24
88
0.669456
e086b5a2bf9f4b39a3781791f9fc70ddd8fe75d7
4,622
py
Python
pong.py
jmsstudio/practice-python
509c23040a6e78dd2dad62f47b80bc603d98607c
[ "MIT" ]
null
null
null
pong.py
jmsstudio/practice-python
509c23040a6e78dd2dad62f47b80bc603d98607c
[ "MIT" ]
null
null
null
pong.py
jmsstudio/practice-python
509c23040a6e78dd2dad62f47b80bc603d98607c
[ "MIT" ]
null
null
null
# Implementation of classic arcade game Pong import simplegui import random # initialize globals - pos and vel encode vertical info for paddles WIDTH = 600 HEIGHT = 400 BALL_RADIUS = 20 PAD_WIDTH = 8 PAD_HEIGHT = 80 HALF_PAD_WIDTH = PAD_WIDTH / 2 HALF_PAD_HEIGHT = PAD_HEIGHT / 2 LEFT = False RIGH...
30.20915
134
0.608178
eb4619310fc703c8253ae278c4afed6384c66753
3,320
py
Python
looking_for_group/adminutils/views.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
looking_for_group/adminutils/views.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
looking_for_group/adminutils/views.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
import logging from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.sites.shortcuts import get_current_site from django.db.models.query_utils import Q from django.http import HttpResponseRedirect from django.urls import reverse_lazy from django.utils.transla...
42.025316
110
0.725904
68b5d44e89b7e6c990a0b61b5d41be69d2a832c7
474
py
Python
1. python-course-udemy/poo_avancado/evolucao_v2.py
karlscode/python-basics
90f215de323f907cb692369b87c34659ba49f1d2
[ "MIT" ]
null
null
null
1. python-course-udemy/poo_avancado/evolucao_v2.py
karlscode/python-basics
90f215de323f907cb692369b87c34659ba49f1d2
[ "MIT" ]
null
null
null
1. python-course-udemy/poo_avancado/evolucao_v2.py
karlscode/python-basics
90f215de323f907cb692369b87c34659ba49f1d2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 class Humano: # atributo de classe especie = 'Homo Sapiens' def __init__(self, nome): self.nome = nome def das_cavernas(self): self.especie = 'Homo Neanderthalensis' return self if __name__ == '__main__': jose = Humano('José') grokn = Humano('Grok...
20.608696
46
0.628692
936fa3533cc2a831ac92dea63a9d84a1bb266b83
4,889
py
Python
updated/vgg.py
dtocci1/Keras-FRCNN-TF2
6f19509fd9097510ccd6a815530554118e189d5c
[ "Apache-2.0" ]
null
null
null
updated/vgg.py
dtocci1/Keras-FRCNN-TF2
6f19509fd9097510ccd6a815530554118e189d5c
[ "Apache-2.0" ]
null
null
null
updated/vgg.py
dtocci1/Keras-FRCNN-TF2
6f19509fd9097510ccd6a815530554118e189d5c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """VGG16 model for Keras. # Reference - [Very Deep Convolutional Networks for Large-Scale Image Recognition](https://arxiv.org/abs/1409.1556) """ from __future__ import print_function from __future__ import absolute_import from __future__ import division import warnings from keras.models import...
39.747967
154
0.67928
aaf378b489a274e27cdc1f8760400d9a181c64a5
159
py
Python
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_ConstantTrend_BestCycle_ARX.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_ConstantTrend_BestCycle_ARX.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_ConstantTrend_BestCycle_ARX.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Quantization'] , ['ConstantTrend'] , ['BestCycle'] , ['ARX'] );
39.75
86
0.754717
7b76c692ba8a45ed0a877390ae0261a848e2cd9a
2,819
py
Python
test/lint/check-doc.py
Darrenshome40/shitecoin
a2535c8fc5a43ee21ec818d5367439f6302cd084
[ "MIT" ]
null
null
null
test/lint/check-doc.py
Darrenshome40/shitecoin
a2535c8fc5a43ee21ec818d5367439f6302cd084
[ "MIT" ]
null
null
null
test/lint/check-doc.py
Darrenshome40/shitecoin
a2535c8fc5a43ee21ec818d5367439f6302cd084
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2020 The shitecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Autho...
42.074627
130
0.723306
262b1d25096021716fcc6feff64b17c6e8b78f67
316
py
Python
impression_client/admin.py
gregschmit/django-impression-client
a2f4328024a67865eccaeff79567320842ab5d5c
[ "MIT" ]
1
2020-01-11T02:06:59.000Z
2020-01-11T02:06:59.000Z
impression_client/admin.py
gregschmit/django-impression-client
a2f4328024a67865eccaeff79567320842ab5d5c
[ "MIT" ]
null
null
null
impression_client/admin.py
gregschmit/django-impression-client
a2f4328024a67865eccaeff79567320842ab5d5c
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models @admin.register(models.RemoteImpressionServer) class RemoteImpressionServerAdmin(admin.ModelAdmin): list_filter = [] search_fields = ["name", "target", "authentication_token"] list_display = ["name", "is_active", "target", "authentication_token"]
28.727273
74
0.75
2cbab1b2219f6dbfeed81cdd2a558a7e986beeea
3,293
py
Python
psico/geometry.py
speleo3/pymol-psico
4e5402b4dca9a509b34a03691f12dc49e93c4973
[ "BSD-2-Clause" ]
31
2015-10-22T11:11:08.000Z
2022-02-25T10:26:07.000Z
psico/geometry.py
speleo3/pymol-psico
4e5402b4dca9a509b34a03691f12dc49e93c4973
[ "BSD-2-Clause" ]
11
2016-02-29T13:55:47.000Z
2022-03-26T07:44:24.000Z
psico/geometry.py
speleo3/pymol-psico
4e5402b4dca9a509b34a03691f12dc49e93c4973
[ "BSD-2-Clause" ]
21
2015-08-04T16:58:19.000Z
2022-03-25T21:07:01.000Z
''' (c) 2011 Thomas Holder, MPI for Develpomental Biology License: BSD-2-Clause ''' from __future__ import print_function from pymol import cmd def qdelaunay(X, n=0, m=0, options='Qt', qdelaunay_exe='qdelaunay'): ''' Triangulation using qdelaunay. (http://www.qhull.org) @param X: iterable object ...
28.145299
80
0.577589
e43c43e33a78d2263051f385707cf2989b62e4d4
8,978
py
Python
tests/test_argument_parsing.py
techchad-lights/pymatrix
b18c59d288a50ebe8e4c5788a7f2d7a0670646aa
[ "MIT" ]
null
null
null
tests/test_argument_parsing.py
techchad-lights/pymatrix
b18c59d288a50ebe8e4c5788a7f2d7a0670646aa
[ "MIT" ]
null
null
null
tests/test_argument_parsing.py
techchad-lights/pymatrix
b18c59d288a50ebe8e4c5788a7f2d7a0670646aa
[ "MIT" ]
null
null
null
import pytest from pymatrix import pymatrix @pytest.mark.parametrize("test_values, expected_results", [ ([], 4), (["-d0"], 0), (["-d1"], 1), (["-d", "2"], 2), (["-d3"], 3), (["-d4"], 4), (["-d 5"], 5), (["-d6"], 6), (["-d7"], 7), (["-d8"], 8), (["-d9"], 9) ]) def test_argument_parsing_delay(test_values,...
34.933852
84
0.700267
eb99e77ff75de8987dbb9758d5f357c3694a05b7
2,613
py
Python
personal/Tommaso/Ideas/lele.py
edervishaj/spotify-recsys-challenge
4077201ac7e4ed9da433bd10a92c183614182437
[ "Apache-2.0" ]
3
2018-10-12T20:19:57.000Z
2019-12-11T01:11:38.000Z
personal/Tommaso/Ideas/lele.py
kiminh/spotify-recsys-challenge
5e7844a77ce3c26658400f161d2d74d682f30e69
[ "Apache-2.0" ]
null
null
null
personal/Tommaso/Ideas/lele.py
kiminh/spotify-recsys-challenge
5e7844a77ce3c26658400f161d2d74d682f30e69
[ "Apache-2.0" ]
4
2018-10-27T20:30:18.000Z
2020-10-14T07:43:27.000Z
import pandas as pd import numpy as np import nltk from nltk import stem from nltk.tokenize import RegexpTokenizer from utils.datareader import Datareader from tqdm import tqdm from scipy import sparse from difflib import SequenceMatcher from difflib import get_close_matches from utils.pre_processing import * from util...
31.107143
119
0.634902
67e2f0d00bd6d423e14d0afd8e363dea244cfd35
1,426
py
Python
Easy/970.PowerfulIntegers.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
39
2020-07-04T11:15:13.000Z
2022-02-04T22:33:42.000Z
Easy/970.PowerfulIntegers.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
1
2020-07-15T11:53:37.000Z
2020-07-15T11:53:37.000Z
Easy/970.PowerfulIntegers.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
20
2020-07-14T19:12:53.000Z
2022-03-02T06:28:17.000Z
""" Given two positive integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and j >= 0. Return a list of all powerful integers that have value less than or equal to bound. You may return the answer in any order. In your answer, each value should occ...
27.960784
91
0.502104
056247f26dd9cc6f550d534d821f98994094229f
4,059
py
Python
src/radical/pilot/agent/resource_manager/slurm.py
karahbit/radical.pilot
c611e1df781749deef899dcf5815728e1d8a962e
[ "MIT" ]
null
null
null
src/radical/pilot/agent/resource_manager/slurm.py
karahbit/radical.pilot
c611e1df781749deef899dcf5815728e1d8a962e
[ "MIT" ]
null
null
null
src/radical/pilot/agent/resource_manager/slurm.py
karahbit/radical.pilot
c611e1df781749deef899dcf5815728e1d8a962e
[ "MIT" ]
null
null
null
__copyright__ = "Copyright 2016, http://radical.rutgers.edu" __license__ = "MIT" import os import hostlist import radical.utils as ru from .base import ResourceManager # ------------------------------------------------------------------------------ # class Slurm(ResourceManager): # -----------------------...
37.583333
97
0.557034
77669895f04167dcaebf87799b8a5bfd28ef9c65
7,778
py
Python
pngFS.py
kugo12/pngFS
1b4a031cea1418b2063ccecb24924cc23c8b0dfa
[ "MIT" ]
null
null
null
pngFS.py
kugo12/pngFS
1b4a031cea1418b2063ccecb24924cc23c8b0dfa
[ "MIT" ]
null
null
null
pngFS.py
kugo12/pngFS
1b4a031cea1418b2063ccecb24924cc23c8b0dfa
[ "MIT" ]
1
2020-09-22T19:41:22.000Z
2020-09-22T19:41:22.000Z
import pyfuse3 import pyfuse3_asyncio import asyncio import os import errno import stat import pngdata import pickle from time import time_ns from argparse import ArgumentParser pyfuse3_asyncio.enable() class SingleShotTimer: __slots__ = ['_callback', '_delay', '_task'] def __init__(self, callback, delay):...
28.386861
95
0.614811
59814edd8cf491e3c361c930fd050c394d12350a
1,007
py
Python
Leetcode/247.strobogrammatic-number-ii.py
EdwaRen/Competitve-Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
1
2021-05-03T21:48:25.000Z
2021-05-03T21:48:25.000Z
Leetcode/247.strobogrammatic-number-ii.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
Leetcode/247.strobogrammatic-number-ii.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
class Solution(object): def findStrobogrammatic(self, n): """ :type n: int :rtype: List[str] """ def recurse(n, orig): # Handle base causes if n == 0: return [''] elif n == 1: return ['1', '8', '0'] ...
23.97619
85
0.397219
c2de33ac60e5505487b2a818cd89fdcbeb42aab1
2,977
py
Python
eval/main.py
MaxyLee/Style-AttnGAN
d33d0df061c94b75ad4af5c750b8d6f37ee1a35a
[ "MIT" ]
36
2020-05-31T14:38:32.000Z
2022-03-26T12:36:00.000Z
eval/main.py
MaxyLee/Style-AttnGAN
d33d0df061c94b75ad4af5c750b8d6f37ee1a35a
[ "MIT" ]
2
2021-10-30T01:13:05.000Z
2022-03-15T01:41:45.000Z
eval/main.py
MaxyLee/Style-AttnGAN
d33d0df061c94b75ad4af5c750b8d6f37ee1a35a
[ "MIT" ]
10
2021-07-21T14:58:34.000Z
2022-02-24T20:26:24.000Z
# Copyright (c) 2018 Tao Xu import os import time import random from eval import * from flask import Flask, jsonify, request, abort from applicationinsights import TelemetryClient from applicationinsights.requests import WSGIApplication from applicationinsights.exceptions import enable from miscc.config import cfg #fr...
31.010417
94
0.624454
e362de5950e9c651cf1ed0a5b7aabd599f461f79
4,287
py
Python
scripts/slave/recipes/infra/try_recipe.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipes/infra/try_recipe.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipes/infra/try_recipe.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
1
2020-07-23T10:57:32.000Z
2020-07-23T10:57:32.000Z
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A recipe for actually running recipe on build/ repo patches as tryjobs. For usage - see https://chromium.googlesource.com/chromium/tools/build/+/master/s...
30.404255
105
0.614416
9b872fdc2e8ab1a2260de0d66608182a7f72185d
1,234
py
Python
apps/users/models.py
ansonsry/Freshshop
79ab8beb1aa993f6365182c8d3bb478ee4e028f8
[ "MIT" ]
null
null
null
apps/users/models.py
ansonsry/Freshshop
79ab8beb1aa993f6365182c8d3bb478ee4e028f8
[ "MIT" ]
1
2021-02-08T20:31:28.000Z
2021-02-08T20:31:28.000Z
apps/users/models.py
ansonsry/Freshshop
79ab8beb1aa993f6365182c8d3bb478ee4e028f8
[ "MIT" ]
null
null
null
from datetime import datetime from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. class UserProfile(AbstractUser): """ 用户 """ name = models.CharField(max_length=30, null=True, blank=True, verbose_name="姓名") birthday = models.DateField(null=Tr...
31.641026
106
0.670178
64513e5deecadb5820c5cc640ab69abf4df4015a
9,979
py
Python
core/controllers/question_editor.py
TheoLipeles/oppia
cd0bb873e08fa716014f3d1480fbbfee95b89121
[ "Apache-2.0" ]
2
2021-03-07T18:39:15.000Z
2021-03-29T20:09:11.000Z
core/controllers/question_editor.py
TheoLipeles/oppia
cd0bb873e08fa716014f3d1480fbbfee95b89121
[ "Apache-2.0" ]
null
null
null
core/controllers/question_editor.py
TheoLipeles/oppia
cd0bb873e08fa716014f3d1480fbbfee95b89121
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Oppia 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 applicable ...
39.916
80
0.644253
f5185e23fa4b3034d20ece2b2ff69e427f396ff9
11,649
py
Python
tests/unit_tests/test_capi.py
johnnyliu27/openmc
d7359f151cc9eece99fb155e80f73a1b3393f7f7
[ "MIT" ]
null
null
null
tests/unit_tests/test_capi.py
johnnyliu27/openmc
d7359f151cc9eece99fb155e80f73a1b3393f7f7
[ "MIT" ]
null
null
null
tests/unit_tests/test_capi.py
johnnyliu27/openmc
d7359f151cc9eece99fb155e80f73a1b3393f7f7
[ "MIT" ]
null
null
null
from collections.abc import Mapping import os import numpy as np import pytest import openmc import openmc.exceptions as exc import openmc.capi from tests import cdtemp @pytest.fixture(scope='module') def pincell_model(): """Set up a model to test with and delete files when done""" openmc.reset_auto_ids() ...
29.416667
90
0.665808
9dfc87296331cff2428c9fcf88824a31c02df1ec
23,111
py
Python
improver_tests/calibration/reliability_calibration/test_ConstructReliabilityCalibrationTables.py
nivnac/improver
c16c794f62598017cebc6ae4f99af8f317219a77
[ "BSD-3-Clause" ]
null
null
null
improver_tests/calibration/reliability_calibration/test_ConstructReliabilityCalibrationTables.py
nivnac/improver
c16c794f62598017cebc6ae4f99af8f317219a77
[ "BSD-3-Clause" ]
null
null
null
improver_tests/calibration/reliability_calibration/test_ConstructReliabilityCalibrationTables.py
nivnac/improver
c16c794f62598017cebc6ae4f99af8f317219a77
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2020 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
42.327839
88
0.599022
6e032bf896ba8def0c3627f6a35dc54484cb4ccf
3,646
py
Python
tern/formats/spdx/spdxjson/consumer.py
ReconPangolin/tern
ed8b2b721397358f5ff8c4253aa4f0aa70a55afe
[ "BSD-2-Clause" ]
null
null
null
tern/formats/spdx/spdxjson/consumer.py
ReconPangolin/tern
ed8b2b721397358f5ff8c4253aa4f0aa70a55afe
[ "BSD-2-Clause" ]
null
null
null
tern/formats/spdx/spdxjson/consumer.py
ReconPangolin/tern
ed8b2b721397358f5ff8c4253aa4f0aa70a55afe
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2021 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause """ SPDXJSON document consumer """ import json import logging import os from tern.classes.image_layer import ImageLayer from tern.classes.package import Package from tern.formats import consumer f...
36.46
79
0.675535
2698faa01b1c2caf81d86e99eaf9f446b5c88955
6,167
py
Python
tests/contrib/timeseries/test_gp.py
patrickeganfoley/pyro
3bd5e099e85f3686c66fc3b53476c3b009a77a02
[ "Apache-2.0" ]
2
2020-06-05T20:40:50.000Z
2020-09-05T15:39:48.000Z
tests/contrib/timeseries/test_gp.py
patrickeganfoley/pyro
3bd5e099e85f3686c66fc3b53476c3b009a77a02
[ "Apache-2.0" ]
1
2020-05-12T16:26:21.000Z
2020-05-12T17:23:13.000Z
tests/contrib/timeseries/test_gp.py
patrickeganfoley/pyro
3bd5e099e85f3686c66fc3b53476c3b009a77a02
[ "Apache-2.0" ]
1
2020-06-04T18:25:38.000Z
2020-06-04T18:25:38.000Z
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import math import torch from tests.common import assert_equal import pyro from pyro.contrib.timeseries import (IndependentMaternGP, LinearlyCoupledMaternGP, GenericLGSSM, GenericLGSSMWithGPNoi...
48.944444
105
0.558618
4fa35d9086ca14e73c3c6178edd156ac63a5de83
1,187
py
Python
tests/bugs/core_1334_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_1334_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_1334_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_1334 # title: Joins with NULL RDB$DB_KEY crash the server # decription: # tracker_id: CORE-1334 # min_versions: [] # versions: 2.1 # qmid: bugs.core_1334 import pytest from firebird.qa import db_factory, isql_act, Action # version: 2.1 # resources: Non...
22.396226
70
0.613311