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
616d43b1b12de2cd7fc0a9c06e2f10c0d5efcbe5
338
py
Python
pypingcli/commands/base.py
tameeshB/pyPingCLI
070edab79b24c257a8512b2a1410d12583f96d69
[ "MIT" ]
1
2020-11-09T16:49:51.000Z
2020-11-09T16:49:51.000Z
pypingcli/commands/base.py
tameeshB/pyPingCLI
070edab79b24c257a8512b2a1410d12583f96d69
[ "MIT" ]
7
2018-10-01T01:13:59.000Z
2018-10-03T16:44:34.000Z
pypingcli/commands/base.py
tameeshB/pyPingCLI
070edab79b24c257a8512b2a1410d12583f96d69
[ "MIT" ]
6
2018-10-01T10:09:16.000Z
2020-09-16T06:59:16.000Z
# skele/commands/base.py """The base command.""" class Base(object): """A base command.""" def __init__(self, options, *args, **kwargs): self.options = options self.args = args self.kwargs = kwargs def run(self): raise NotImplementedError('You must implement the run() m...
24.142857
82
0.615385
62467914ab86514a5e2d611e8d4913b183126218
6,709
py
Python
tests/test_ctype_locale.py
SiameseJuly/angr
24d960d558b77f5a85d76dccb45e5f3827e6227f
[ "BSD-2-Clause" ]
null
null
null
tests/test_ctype_locale.py
SiameseJuly/angr
24d960d558b77f5a85d76dccb45e5f3827e6227f
[ "BSD-2-Clause" ]
null
null
null
tests/test_ctype_locale.py
SiameseJuly/angr
24d960d558b77f5a85d76dccb45e5f3827e6227f
[ "BSD-2-Clause" ]
1
2020-03-10T04:25:33.000Z
2020-03-10T04:25:33.000Z
import nose import os import archinfo import simuvex import angr import subprocess import logging l = logging.getLogger('simuvex.libc.ctype_locale') FAKE_ADDR = 0x100000 test_location = os.path.dirname(os.path.abspath(__file__)) def test_ctype_b_loc(): ''' test_ctype_locale.test_ctype_b_loc const un...
39.934524
185
0.67402
999cbb441dc32089244e53996e77350cf842c23a
352
py
Python
source/plotsettings.py
johnsjob/master-thesis
97b65d1c64ee3ca7c4caaaf2f8712b8f6a2fccce
[ "MIT" ]
null
null
null
source/plotsettings.py
johnsjob/master-thesis
97b65d1c64ee3ca7c4caaaf2f8712b8f6a2fccce
[ "MIT" ]
null
null
null
source/plotsettings.py
johnsjob/master-thesis
97b65d1c64ee3ca7c4caaaf2f8712b8f6a2fccce
[ "MIT" ]
1
2019-11-22T09:57:45.000Z
2019-11-22T09:57:45.000Z
from collections import namedtuple FontSettings = namedtuple('FontSettings', [ 'legend_size', 'label_size', 'title_size', 'tick_size', ]) title = 25 label = 20 legend = 20 tick = 16 PlotSettings = FontSettings( legend_size = legend, label_size = label, title_size = title...
16
41
0.616477
e74a1e373879013feeec1b1ec2fc6eb980261dc8
9,457
py
Python
tests/test_position.py
ssimonee/nept
0b78d02f32adec2bc064d3f3637fd10ee5c04637
[ "MIT" ]
null
null
null
tests/test_position.py
ssimonee/nept
0b78d02f32adec2bc064d3f3637fd10ee5c04637
[ "MIT" ]
null
null
null
tests/test_position.py
ssimonee/nept
0b78d02f32adec2bc064d3f3637fd10ee5c04637
[ "MIT" ]
null
null
null
import numpy as np import pytest from shapely.geometry import Point, LineString import nept def test_position_xy(): times = np.array([1.0, 2.0, 3.0]) data = np.array([[1.1, 3.1], [0.9, 2.0], [2.3, 1.4]]) pos = nept.Position(data, times) assert np.allclose(po...
29.738994
88
0.531775
ad1af2e2364ea3f9c5e108adb5cea5c661c1a9a4
2,452
py
Python
heat/tests/test_crypt.py
mail2nsrajesh/heat
83bd7c261ed29f17b14fbd3746182f3ffe85f26b
[ "Apache-2.0" ]
null
null
null
heat/tests/test_crypt.py
mail2nsrajesh/heat
83bd7c261ed29f17b14fbd3746182f3ffe85f26b
[ "Apache-2.0" ]
1
2018-07-26T22:07:09.000Z
2018-07-26T22:07:09.000Z
heat/tests/test_crypt.py
mail2nsrajesh/heat
83bd7c261ed29f17b14fbd3746182f3ffe85f26b
[ "Apache-2.0" ]
3
2018-07-19T17:43:37.000Z
2019-11-15T22:13:30.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 # ...
38.920635
78
0.661501
081fc7abbe866928ec00e765e50980d916804a84
2,362
py
Python
bigml/tests/test_29_script.py
ayush1208/python-3
8b613225142bbe1dce8fda5c7f8d3acf07c181a7
[ "Apache-2.0" ]
null
null
null
bigml/tests/test_29_script.py
ayush1208/python-3
8b613225142bbe1dce8fda5c7f8d3acf07c181a7
[ "Apache-2.0" ]
null
null
null
bigml/tests/test_29_script.py
ayush1208/python-3
8b613225142bbe1dce8fda5c7f8d3acf07c181a7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2015-2018 BigML # # 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 requi...
38.096774
101
0.611346
57fd4fd0ca43e17b801cba71f300d9aaf1053b4c
461
py
Python
inst/commands/simple_server.py
cran/threeBrain
7bc0d8b68814765e85150029cc87fda560d29f02
[ "MIT" ]
23
2020-01-13T14:11:16.000Z
2022-01-30T02:37:23.000Z
inst/commands/simple_server.py
cran/threeBrain
7bc0d8b68814765e85150029cc87fda560d29f02
[ "MIT" ]
10
2020-01-06T19:33:33.000Z
2021-07-19T05:30:12.000Z
inst/commands/simple_server.py
cran/threeBrain
7bc0d8b68814765e85150029cc87fda560d29f02
[ "MIT" ]
5
2020-04-15T12:03:06.000Z
2022-01-25T18:44:29.000Z
import http.server import socket import webbrowser tcp = socket.socket(socket.AF_INET, socket.SOCK_STREAM) tcp.bind(('', 0)) host, port = tcp.getsockname() tcp.close() host = socket.gethostbyname(socket.gethostname()) url = "http://%s:%d" % ( host, port ) print("Starting a simple web server at \n\t%s" % url) Handle...
23.05
55
0.735358
7334448d9f91632820557228dd8ab4a6dad3db35
3,045
py
Python
arbcharm/exchange_api/binance.py
RunningToTheEdgeOfTheWorld/arbcharm
8cf58c9d425e1a4190118d5a2c93a61e64c28a36
[ "MIT" ]
26
2018-11-07T10:16:38.000Z
2022-01-12T14:36:55.000Z
arbcharm/exchange_api/binance.py
zx403413599/arbcharm
f6ade6e379e157c2d4647d8d7d78946d2c744fae
[ "MIT" ]
1
2021-04-26T14:52:22.000Z
2021-04-26T14:52:22.000Z
arbcharm/exchange_api/binance.py
zx403413599/arbcharm
f6ade6e379e157c2d4647d8d7d78946d2c744fae
[ "MIT" ]
17
2018-11-23T11:13:18.000Z
2022-01-12T14:36:57.000Z
# !/usr/bin/env python __author__ = 'Rick Zhang' __time__ = '2018/10/12' import asyncio import json import time import websockets from arbcharm.models import BaseExchange, OrderBook, OrderRow class Binance(BaseExchange): """ binance websockets doc: https://github.com/binance-exchange/binance-official-a...
30.757576
100
0.538588
4841b5f9d8fe77675b20902282c3201d1f88923a
680
py
Python
SortingAlgorithms/selectionSort.py
shubham2704/codes_instagram
c95aab74aabb4af9d4baa5c7b26698d8f77a95eb
[ "MIT" ]
1
2020-06-05T19:06:49.000Z
2020-06-05T19:06:49.000Z
SortingAlgorithms/selectionSort.py
shubham2704/codes_instagram
c95aab74aabb4af9d4baa5c7b26698d8f77a95eb
[ "MIT" ]
null
null
null
SortingAlgorithms/selectionSort.py
shubham2704/codes_instagram
c95aab74aabb4af9d4baa5c7b26698d8f77a95eb
[ "MIT" ]
null
null
null
""" Description In selection sort we start by finding the minimum value in a given list and move it to a sorted list. Then we repeat the process for each of the remaining elements in the unsorted list. The next element entering the sorted list is compared with the existing elements and placed at its correct position...
30.909091
121
0.667647
9b70703a09c898a6324833e1ede5ccd80faa7c18
6,695
py
Python
keyboa/button.py
cangirolave/keyboa
defb1450611b02234f8961ae0cc96b8369e22b53
[ "MIT" ]
31
2020-05-02T14:59:58.000Z
2022-03-17T14:50:04.000Z
keyboa/button.py
cangirolave/keyboa
defb1450611b02234f8961ae0cc96b8369e22b53
[ "MIT" ]
18
2020-05-02T15:03:53.000Z
2021-10-05T12:18:43.000Z
keyboa/button.py
cangirolave/keyboa
defb1450611b02234f8961ae0cc96b8369e22b53
[ "MIT" ]
4
2021-10-01T00:30:39.000Z
2021-10-20T11:32:58.000Z
# -*- coding:utf-8 -*- """ This module contains all the necessary functions for creating buttons for telegram inline keyboards. """ from dataclasses import dataclass from typing import Optional from telebot.types import InlineKeyboardButton from keyboa.button_check import ButtonCheck from keyboa.constants import ( ...
32.658537
94
0.627782
65856c7e4a9ad320da51da7a045aa8230721d4fe
4,890
py
Python
code/wrapper.py
bdevans/generalisation-humans-DNNs
b38bc59fd4bd34e13c50c8fd19cd418d2f3a36f9
[ "CC-BY-4.0" ]
76
2018-08-28T21:58:02.000Z
2022-03-11T18:47:05.000Z
code/wrapper.py
bdevans/generalisation-humans-DNNs
b38bc59fd4bd34e13c50c8fd19cd418d2f3a36f9
[ "CC-BY-4.0" ]
3
2018-10-10T17:54:24.000Z
2019-07-26T21:25:07.000Z
code/wrapper.py
bdevans/generalisation-humans-DNNs
b38bc59fd4bd34e13c50c8fd19cd418d2f3a36f9
[ "CC-BY-4.0" ]
21
2018-08-29T02:26:28.000Z
2022-01-18T16:22:02.000Z
#!/usr/bin/env python """wrapper.py A small set of functions used to make the eidolon factory code a little easier to integrate and work with. The 'eidolon factory' can be obtained from here: https://github.com/gestaltrevision/Eidolon Note that the Python version likely contains a bug, for which we opened a pull req...
33.265306
79
0.661963
2c208b6c32f5cffbae06aa29f24b8509393d044e
1,729
py
Python
tests/deephyper/search/nas/test_regevomixed.py
felixeperez/deephyper
23c720d19ed9510ca121b41196b5cc8ec4cd0ba9
[ "BSD-3-Clause" ]
185
2018-11-06T18:49:47.000Z
2022-03-31T22:10:41.000Z
tests/deephyper/search/nas/test_regevomixed.py
felixeperez/deephyper
23c720d19ed9510ca121b41196b5cc8ec4cd0ba9
[ "BSD-3-Clause" ]
108
2018-12-17T17:58:05.000Z
2022-03-16T10:22:08.000Z
tests/deephyper/search/nas/test_regevomixed.py
felixeperez/deephyper
23c720d19ed9510ca121b41196b5cc8ec4cd0ba9
[ "BSD-3-Clause" ]
50
2018-12-11T20:41:41.000Z
2022-02-25T19:50:47.000Z
import numpy as np from deephyper.benchmark.nas import linearReg from deephyper.benchmark.nas import linearRegHybrid from deephyper.evaluator import Evaluator from deephyper.nas.run import run_debug_arch from deephyper.search.nas import RegularizedEvolutionMixed def test_regovomixed_without_hp(): create_evaluato...
26.19697
74
0.70561
0a1c4021bb95899d7e49759ce863a3583b056d32
894
py
Python
tests/domain/test_supply.py
xlam/autovirt
a19f9237c8b1123ce4f4b8b396dc88122019d4f8
[ "MIT" ]
null
null
null
tests/domain/test_supply.py
xlam/autovirt
a19f9237c8b1123ce4f4b8b396dc88122019d4f8
[ "MIT" ]
null
null
null
tests/domain/test_supply.py
xlam/autovirt
a19f9237c8b1123ce4f4b8b396dc88122019d4f8
[ "MIT" ]
null
null
null
import pytest from autovirt.domain.supplies import Supplies, Supply, SupplyContract @pytest.fixture def supplies_list(): return [ Supply(id=0, product_id=0, contracts=[]), Supply(id=1, product_id=1, contracts=[]), Supply( id=2, product_id=2, contracts=[...
24.833333
86
0.712528
2b6eb0ad14644386423e2ba5dbb4941bcf2b9f6e
129
py
Python
Aula 09/div.py
mateuschaves/curso-python
53b2f3b4bf083ae2ce7ea19dd358f49a36becd9d
[ "MIT" ]
1
2018-07-23T04:03:35.000Z
2018-07-23T04:03:35.000Z
Aula 09/div.py
mateuschaves/curso-python
53b2f3b4bf083ae2ce7ea19dd358f49a36becd9d
[ "MIT" ]
null
null
null
Aula 09/div.py
mateuschaves/curso-python
53b2f3b4bf083ae2ce7ea19dd358f49a36becd9d
[ "MIT" ]
null
null
null
frase = "Today is gonna be the day That they're gonna throw it back to you" print(frase.split()) print(' '.join(frase.split()))
25.8
75
0.697674
69a47ef1ebec70239ccc8fff39567322da034c0a
686
py
Python
cayennelpp/tests/test_lpp_type_gyrometer.py
smlng/pycayennelpp
28f2ba4fba602527d3369c9cfbce16b783916933
[ "MIT" ]
16
2019-02-18T10:57:51.000Z
2022-03-29T01:54:51.000Z
cayennelpp/tests/test_lpp_type_gyrometer.py
smlng/pycayennelpp
28f2ba4fba602527d3369c9cfbce16b783916933
[ "MIT" ]
40
2018-11-04T17:28:49.000Z
2021-11-26T16:05:16.000Z
cayennelpp/tests/test_lpp_type_gyrometer.py
smlng/pycayennelpp
28f2ba4fba602527d3369c9cfbce16b783916933
[ "MIT" ]
12
2018-11-09T19:06:36.000Z
2021-05-21T17:44:28.000Z
import pytest from cayennelpp.lpp_type import LppType @pytest.fixture def gyro(): return LppType.get_lpp_type(134) def test_gyrometer(gyro): val = (123.45, -123.45, 0.0) gyro_buf = gyro.encode(val) assert gyro.decode(gyro_buf) == val val = (-123.45, 0.0, -123.45) gyro_buf = gyro.encode(val)...
20.787879
42
0.685131
1af1c2e9ca9314df1d833d70a2cc38c4dde6f6c1
4,872
py
Python
tutorials/epochs/plot_visualize_epochs.py
abramhindle/mne-python
989390a484cba219aae74c778b71568586f9edb2
[ "BSD-3-Clause" ]
null
null
null
tutorials/epochs/plot_visualize_epochs.py
abramhindle/mne-python
989390a484cba219aae74c778b71568586f9edb2
[ "BSD-3-Clause" ]
1
2019-09-17T23:54:38.000Z
2019-09-17T23:54:38.000Z
tutorials/epochs/plot_visualize_epochs.py
abramhindle/mne-python
989390a484cba219aae74c778b71568586f9edb2
[ "BSD-3-Clause" ]
null
null
null
""" .. _tut_viz_epochs: Visualize Epochs data ===================== """ # sphinx_gallery_thumbnail_number = 7 import os.path as op import mne data_path = op.join(mne.datasets.sample.data_path(), 'MEG', 'sample') raw = mne.io.read_raw_fif( op.join(data_path, 'sample_audvis_filt-0-40_raw.fif'), preload=True) eve...
51.284211
79
0.688013
52b7229af9b1bf8720c881b8a21e794bbe22edee
1,240
py
Python
implementations/IRLS_Classification.py
HenrySilvaCS/From-Scratch-ML-Algorithms
3c84d581027fdf4f53ce29879d9e1794591fee77
[ "MIT" ]
null
null
null
implementations/IRLS_Classification.py
HenrySilvaCS/From-Scratch-ML-Algorithms
3c84d581027fdf4f53ce29879d9e1794591fee77
[ "MIT" ]
null
null
null
implementations/IRLS_Classification.py
HenrySilvaCS/From-Scratch-ML-Algorithms
3c84d581027fdf4f53ce29879d9e1794591fee77
[ "MIT" ]
null
null
null
import numpy as np def probability_k1(row,parameters): result = np.exp(row @ parameters)/(1 + np.exp(row @ parameters)) return result def probability_vector(dataset,parameters): p = np.zeros((np.size(dataset,0),1)) for i in range(np.size(dataset,0) - 1): p[i] = probability_k1(dataset[i,:],parameters) ...
31.794872
99
0.654032
6cd8315ed8fdd608e5728a75e69280004978bf69
240
py
Python
abcnn/args.py
marthasue/text_matching_1
f05d2d21404f2e0588dd2d5cfafaf94fb6c5ec94
[ "Apache-2.0" ]
null
null
null
abcnn/args.py
marthasue/text_matching_1
f05d2d21404f2e0588dd2d5cfafaf94fb6c5ec94
[ "Apache-2.0" ]
null
null
null
abcnn/args.py
marthasue/text_matching_1
f05d2d21404f2e0588dd2d5cfafaf94fb6c5ec94
[ "Apache-2.0" ]
null
null
null
seq_length = 100 char_embedding_size = 200 learning_rate = 0.001 keep_prob = 0.7 vocab_size = 7901 class_size = 2 epochs = 50 batch_size = 200 filter_width = 3 filter_height = char_embedding_size cnn1_filters = 50 cnn2_filters = 50
11.428571
35
0.758333
3dca25f6abaed89c03ffde70b38dc28962e86610
6,247
py
Python
python/pyspark/pandas/tests/test_frame_spark.py
913624784/spark
81c3cc2312aaa730fa025159f56703170172c454
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2021-06-03T09:59:31.000Z
2021-06-12T14:40:30.000Z
python/pyspark/pandas/tests/test_frame_spark.py
gaoyajun02/spark
2e1e1f83e49f69e37229c65592c1a2e87b1efe56
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
26
2016-10-27T06:07:00.000Z
2018-01-26T00:21:32.000Z
python/pyspark/pandas/tests/test_frame_spark.py
gaoyajun02/spark
2e1e1f83e49f69e37229c65592c1a2e87b1efe56
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2016-08-09T07:22:08.000Z
2017-02-14T16:19:57.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
39.537975
99
0.620618
4e80f0a0235524e291a0312bd0a8bcdfdbb51166
3,896
py
Python
bg_backend/bitglitter/write/write.py
MarkMichon1/BitGlitter-Backend
af399d82b19a7828b15ea1789bc980987f1049fe
[ "MIT" ]
2
2021-07-20T06:31:41.000Z
2021-07-21T11:29:33.000Z
bg_backend/bitglitter/write/write.py
MarkMichon1/BitGlitter-Backend
af399d82b19a7828b15ea1789bc980987f1049fe
[ "MIT" ]
null
null
null
bg_backend/bitglitter/write/write.py
MarkMichon1/BitGlitter-Backend
af399d82b19a7828b15ea1789bc980987f1049fe
[ "MIT" ]
null
null
null
from pathlib import Path from bg_backend.bitglitter.config.config import session from bg_backend.bitglitter.config.configmodels import Config, Constants from bg_backend.bitglitter.utilities.filemanipulation import refresh_directory, remove_working_folder from bg_backend.bitglitter.utilities.gui.messages import write_d...
41.010526
120
0.698152
2bd4db87b0442353348fbe9740380b53a304687b
4,784
py
Python
scanpipe/forms.py
hyounes4560/scancode.io
62911d1fe692327a23af85fa9668344deb5b9ebd
[ "Apache-2.0" ]
1
2021-06-09T18:16:11.000Z
2021-06-09T18:16:11.000Z
scanpipe/forms.py
hyounes4560/scancode.io
62911d1fe692327a23af85fa9668344deb5b9ebd
[ "Apache-2.0" ]
null
null
null
scanpipe/forms.py
hyounes4560/scancode.io
62911d1fe692327a23af85fa9668344deb5b9ebd
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # http://nexb.com and https://github.com/nexB/scancode.io # The ScanCode.io software is licensed under the Apache License version 2.0. # Data generated with ScanCode.io is provided as-is without warranties. # ScanCode is a trademark of nexB Inc. # # You may not use this software ...
32.544218
85
0.645276
e63c62dd54f588a6dcc2708e0790c9dd86de5322
6,696
py
Python
resin/exceptions.py
frank-u/resin-sdk
bc6de33207a03565113f0b7cdb18e2d1d827736b
[ "MIT" ]
null
null
null
resin/exceptions.py
frank-u/resin-sdk
bc6de33207a03565113f0b7cdb18e2d1d827736b
[ "MIT" ]
null
null
null
resin/exceptions.py
frank-u/resin-sdk
bc6de33207a03565113f0b7cdb18e2d1d827736b
[ "MIT" ]
null
null
null
# coding: utf-8 from .resources import Message class MissingOption(Exception): """ Exception type for missing option in settings or auth token. Args: option (str): option name. Attributes: code (str): exception code. exit_code (int): program exit code. message (str): ...
22.698305
87
0.618578
10ecb125571cad37d1888d88fa1afa97c76b99f6
2,095
py
Python
base2designs/utils/model_util_test.py
sethusaim/Automatic-Number-Plate-Recognition
8b26008f8511e52600b150157901079e0fd0ebfe
[ "MIT" ]
null
null
null
base2designs/utils/model_util_test.py
sethusaim/Automatic-Number-Plate-Recognition
8b26008f8511e52600b150157901079e0fd0ebfe
[ "MIT" ]
null
null
null
base2designs/utils/model_util_test.py
sethusaim/Automatic-Number-Plate-Recognition
8b26008f8511e52600b150157901079e0fd0ebfe
[ "MIT" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.410714
80
0.670167
3e6ed66650e328a9ba197c2f29b6cb0e9eb87bc4
1,117
py
Python
src/extras/constants.py
lk-vila/Sebotiao
259995aa88e824ab7ddf71d5a4a6d2f4dfd46f6e
[ "MIT" ]
1
2022-02-16T02:44:07.000Z
2022-02-16T02:44:07.000Z
src/extras/constants.py
lk-vila/Sebotiao
259995aa88e824ab7ddf71d5a4a6d2f4dfd46f6e
[ "MIT" ]
null
null
null
src/extras/constants.py
lk-vila/Sebotiao
259995aa88e824ab7ddf71d5a4a6d2f4dfd46f6e
[ "MIT" ]
5
2021-01-10T03:36:06.000Z
2021-01-15T00:27:50.000Z
class Colours: blue = 0x0279fd bright_green = 0x01d277 dark_green = 0x1f8b4c orange = 0xe67e22 pink = 0xcf84e0 purple = 0xb734eb soft_green = 0x68c290 soft_orange = 0xf9cb54 soft_red = 0xcd6d6d yellow = 0xf9f586 COMMAND_PREFIXES = ['tiao ', 'Tiao ', 'tião ', 'Tião '] RESPOSTA_...
23.270833
119
0.635631
ade65d656fb514debf0ee2fa6523b8bea8a3402e
155
py
Python
flash.py
resin-io-playground/explorer-hat-example
21c6f629006ebb14bff5b1add3e324482ed5ceaf
[ "Apache-2.0" ]
1
2018-05-17T18:44:58.000Z
2018-05-17T18:44:58.000Z
flash.py
resin-io-playground/explorer-hat-python
21c6f629006ebb14bff5b1add3e324482ed5ceaf
[ "Apache-2.0" ]
null
null
null
flash.py
resin-io-playground/explorer-hat-python
21c6f629006ebb14bff5b1add3e324482ed5ceaf
[ "Apache-2.0" ]
null
null
null
import time import explorerhat # Flash the lights! while True: explorerhat.light.on() time.sleep(1) explorerhat.light.off() time.sleep(1)
15.5
27
0.690323
bdb9cd88b04986cb91f097c2d2ca49167a389b66
16,994
py
Python
interactive_lightcurve_GP_widget.py
kjaehnig/GAT_SEBs
280e18727f3c1a4a5b18085c98f028da158b22a5
[ "MIT" ]
null
null
null
interactive_lightcurve_GP_widget.py
kjaehnig/GAT_SEBs
280e18727f3c1a4a5b18085c98f028da158b22a5
[ "MIT" ]
null
null
null
interactive_lightcurve_GP_widget.py
kjaehnig/GAT_SEBs
280e18727f3c1a4a5b18085c98f028da158b22a5
[ "MIT" ]
1
2021-11-25T04:40:35.000Z
2021-11-25T04:40:35.000Z
import lightkurve as lk import astropy.table as astab import pandas as pd import numpy as np import astropy import pickle as pk from astropy.coordinates import SkyCoord from astropy import units as u import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec from matplotlib.widgets import Slider, Button, ...
30.400716
149
0.565376
b0181e143e4858111726f8a18de05307e7aa978b
334
py
Python
maupassant/__init__.py
Jwuthri/TextToolKit
5feb87f9818932cf2f67b404a9a088b785ec5287
[ "MIT" ]
2
2021-01-14T13:56:36.000Z
2021-01-14T18:41:43.000Z
maupassant/__init__.py
Jwuthri/TextToolKit
5feb87f9818932cf2f67b404a9a088b785ec5287
[ "MIT" ]
4
2020-03-25T18:07:29.000Z
2022-02-09T23:40:14.000Z
maupassant/__init__.py
Jwuthri/TextToolKit
5feb87f9818932cf2f67b404a9a088b785ec5287
[ "MIT" ]
null
null
null
# __ ___ __ # / |/ /___ ___ ______ ____ _______________ _____ / /_ # / /|_/ / __ `/ / / / __ \/ __ `/ ___/ ___/ __ `/ __ \/ __/ # / / / / /_/ / /_/ / /_/ / /_/ (__ |__ ) /_/ / / / / /_ # /_/ /_/\__,_/\__,_/ .___/\__,_/____/____/\__,_/_/ /_/\__/ # ...
47.714286
62
0.308383
b5f8c76cab32cda5df773e146a077e787c539a53
6,150
py
Python
unit_02/problem_set_02/problem_1_rectangular_room_class.py
alexmalme/mit_6002
744a469fc024bb495497225a0d24251afa544fe5
[ "MIT" ]
null
null
null
unit_02/problem_set_02/problem_1_rectangular_room_class.py
alexmalme/mit_6002
744a469fc024bb495497225a0d24251afa544fe5
[ "MIT" ]
null
null
null
unit_02/problem_set_02/problem_1_rectangular_room_class.py
alexmalme/mit_6002
744a469fc024bb495497225a0d24251afa544fe5
[ "MIT" ]
null
null
null
''' Problem 1: RectangularRoom Class 10.0/10.0 points (graded) You will need to design two classes to keep track of which parts of the room have been cleaned as well as the position and direction of each robot. In ps2.py, we've provided skeletons for the following two classes, which you will fill in in Problem 1: ...
31.218274
222
0.634959
7899a1b67ff85298cb48c2acffe2e29c449b2c45
957
py
Python
setup.py
ndangol4873/oneNeuron_pypi
d8f3145de281452a10d5a6f8e2713929253f76ee
[ "MIT" ]
null
null
null
setup.py
ndangol4873/oneNeuron_pypi
d8f3145de281452a10d5a6f8e2713929253f76ee
[ "MIT" ]
null
null
null
setup.py
ndangol4873/oneNeuron_pypi
d8f3145de281452a10d5a6f8e2713929253f76ee
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() PROJECT_NAME = "oneNeuron_pypi" USERNAME = "ndangol4873" setuptools.setup( name=f"{PROJECT_NAME}-{USERNAME}", version="0.0.3", author=USERNAME, author_email="nareshkadambi@gmail.com", descripti...
28.147059
77
0.643678
ff7e2cede055695d2505d5b03ff4f906ac5b81d0
3,121
py
Python
sushy/tests/unit/resources/registry/test_attribute_registry.py
calsoft-internal/sushy
ffa84846fdb8691042f2156e64649a98feb1f4a2
[ "Apache-2.0" ]
37
2017-03-24T10:17:37.000Z
2022-02-10T19:42:26.000Z
sushy/tests/unit/resources/registry/test_attribute_registry.py
calsoft-internal/sushy
ffa84846fdb8691042f2156e64649a98feb1f4a2
[ "Apache-2.0" ]
null
null
null
sushy/tests/unit/resources/registry/test_attribute_registry.py
calsoft-internal/sushy
ffa84846fdb8691042f2156e64649a98feb1f4a2
[ "Apache-2.0" ]
29
2017-07-19T21:28:06.000Z
2021-06-09T05:20:32.000Z
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
44.585714
78
0.668055
fdda3b93bbafa87f452a5d8e6277eb9dad398b8f
631
py
Python
turtlebot3_dqn/src/turtlebot3_dqn/goal_generator.py
mroche92/turtlebot3_machine_learning
0aff47f2372bd3c62772a54e4283dad96402fb46
[ "Apache-2.0" ]
null
null
null
turtlebot3_dqn/src/turtlebot3_dqn/goal_generator.py
mroche92/turtlebot3_machine_learning
0aff47f2372bd3c62772a54e4283dad96402fb46
[ "Apache-2.0" ]
null
null
null
turtlebot3_dqn/src/turtlebot3_dqn/goal_generator.py
mroche92/turtlebot3_machine_learning
0aff47f2372bd3c62772a54e4283dad96402fb46
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt map_size = 10 goal_num = 10 goals_x = [] goals_y = [] goals_x_p = [] goals_y_p = [] goals_x.append(0) goals_y.append(0) goals_x.append(0.6) goals_y.append(0) for i in range(goal_num-2): goals_x.append((np.random.rand(1)[0]*(map_size-0.5))-((map_size+1)/2)) go...
24.269231
74
0.675119
349dca2b11d9088139bce6b41e82c9b3c1588b73
4,916
py
Python
test/validate/frc_eia923_test.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
null
null
null
test/validate/frc_eia923_test.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
18
2021-03-31T06:48:46.000Z
2022-03-30T13:08:06.000Z
test/validate/frc_eia923_test.py
fchorney/pudl
a2c1b996ea81015e586e392bb95609da76161cec
[ "MIT" ]
null
null
null
"""Validate post-ETL Fuel Receipts and Costs data from EIA 923.""" import logging import pytest import pudl from pudl import validate as pv logger = logging.getLogger(__name__) @pytest.mark.parametrize( "cases", [ pytest.param(pv.frc_eia923_coal_mercury_content, id="coal_mercury"), pytest.param...
46.377358
79
0.664768
649796fc6892373cd358b9ae0ff0471d9dffe9cf
1,474
py
Python
own/recursive_lomuto_quick_select_k_set_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
own/recursive_lomuto_quick_select_k_set_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
own/recursive_lomuto_quick_select_k_set_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
import random def quick_select_helper(a, beg, end, k): if beg >= end: return if end == beg + 1: if a[beg] > a[end]: a[beg], a[end] = a[end], a[beg] return pivot_index = random.randint(beg, end) pivot = a[pivot_index] # 1 swap pivot with beginning if pivot_i...
23.03125
90
0.57327
f43b41b6f3a8191a206274088cde37832a76ec3c
185
py
Python
src/radauth/admin.py
andrewyager/radius_restserver
8e355afad202b5fcf105a7a69eec8531fcf369e6
[ "MIT" ]
1
2022-03-26T01:52:35.000Z
2022-03-26T01:52:35.000Z
src/radauth/admin.py
andrewyager/radius_restserver
8e355afad202b5fcf105a7a69eec8531fcf369e6
[ "MIT" ]
null
null
null
src/radauth/admin.py
andrewyager/radius_restserver
8e355afad202b5fcf105a7a69eec8531fcf369e6
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import RadiusUser from django.contrib.auth.admin import UserAdmin # Register your models here. admin.site.register(RadiusUser, UserAdmin)
26.428571
47
0.827027
21290816486ba586c8500932863a9ecbab9736e4
356
py
Python
examples/properties_for_rent.py
codingApprentice/daftlistings
240c59d836955b03f5aa2be68c616ee62befb8a7
[ "MIT" ]
126
2016-09-28T20:57:39.000Z
2022-03-29T21:00:03.000Z
examples/properties_for_rent.py
codingApprentice/daftlistings
240c59d836955b03f5aa2be68c616ee62befb8a7
[ "MIT" ]
88
2016-10-19T14:05:59.000Z
2021-12-01T21:14:13.000Z
examples/properties_for_rent.py
codingApprentice/daftlistings
240c59d836955b03f5aa2be68c616ee62befb8a7
[ "MIT" ]
53
2016-10-18T21:56:08.000Z
2022-03-15T00:26:33.000Z
from daftlistings import Daft, Location, SearchType, PropertyType daft = Daft() daft.set_location(Location.DUBLIN) daft.set_search_type(SearchType.RESIDENTIAL_RENT) daft.set_property_type(PropertyType.APARTMENT) listings = daft.search() for listing in listings: print(listing.title) print(listing.price) p...
23.733333
65
0.783708
d87831a97c4d6c3bd25af0536a4b29ebc74211f8
3,848
py
Python
src/app/tinyc/frontend/antlr/tinycLexer.py
lfvilella/dunder-interpreter
954cebe5ae9ecb4dbf4956e54307b995e65c3e8e
[ "MIT" ]
null
null
null
src/app/tinyc/frontend/antlr/tinycLexer.py
lfvilella/dunder-interpreter
954cebe5ae9ecb4dbf4956e54307b995e65c3e8e
[ "MIT" ]
1
2022-03-22T02:38:09.000Z
2022-03-22T02:38:09.000Z
src/app/tinyc/frontend/antlr/tinycLexer.py
lfvilella/dunder-interpreter
954cebe5ae9ecb4dbf4956e54307b995e65c3e8e
[ "MIT" ]
null
null
null
# Generated from /Users/felipe/projects/della-compiler/src/tinyc/frontend/tinyc.g4 by ANTLR 4.8 from antlr4 import * from io import StringIO from typing.io import TextIO import sys def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\23") bu...
40.93617
103
0.514813
49726f9c477f3883fbdb9d8a514adaf65964bb7f
1,441
py
Python
incVat_decVat/VAT.py
Trisanu-007/VAT-iVAT-Algorithms-Python
f42912ad419713fe84ad5dc47d90b1d7c6409a53
[ "MIT" ]
2
2021-06-07T09:07:39.000Z
2021-07-10T05:34:11.000Z
incVat_decVat/VAT.py
Trisanu-007/VAT-iVAT-Algorithms-Python
f42912ad419713fe84ad5dc47d90b1d7c6409a53
[ "MIT" ]
null
null
null
incVat_decVat/VAT.py
Trisanu-007/VAT-iVAT-Algorithms-Python
f42912ad419713fe84ad5dc47d90b1d7c6409a53
[ "MIT" ]
null
null
null
import numpy as np def VAT(mat): rows, cols = mat.shape K = np.linspace(0, rows-1, rows, dtype=int) J = K max_val_eachcol, max_val_index_eachcol = np.amax( mat, axis=0), np.argmax(mat, axis=0) max_val_new, max_val_ind = np.amax( max_val_eachcol), np.argmax(max_val_eachcol) # n...
23.622951
66
0.508675
3cec2540fb97623c2068afdd1ab89606a4b977d5
4,197
py
Python
project/settings.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
null
null
null
project/settings.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
6
2021-03-30T13:35:18.000Z
2021-09-22T19:10:33.000Z
project/settings.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
null
null
null
""" Django settings for awards project. Generated by 'django-admin startproject' using Django 1.11.29. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
25.591463
91
0.710269
4fbdb1bfb6e745cd80fd57ccd98d6e3b64b159c7
2,172
py
Python
src/m3/actions/metrics.py
xyzza/m3-core
48a124c54ed4b9954f5ba7635c5b8f2b9fb688f5
[ "MIT" ]
null
null
null
src/m3/actions/metrics.py
xyzza/m3-core
48a124c54ed4b9954f5ba7635c5b8f2b9fb688f5
[ "MIT" ]
1
2021-03-16T15:14:09.000Z
2021-09-23T12:45:55.000Z
src/m3/actions/metrics.py
xyzza/m3-core
48a124c54ed4b9954f5ba7635c5b8f2b9fb688f5
[ "MIT" ]
4
2015-06-19T08:21:17.000Z
2021-09-26T19:48:33.000Z
# -*- coding: utf-8 -*- import time import hashlib DEFAULT_STATSD_HOST = 'localhost' DEFAULT_STATSD_PORT = 8125 def create_statsd_client(settings): if getattr(settings, 'ENABLE_METRICS_COLLECTION', False): return StatsdClient(settings) else: return FakeStatsdClient() class TimingManager(o...
28.207792
77
0.645948
2270363a4a37ce3a45168d4f9b84c94a23008377
2,078
py
Python
results/rabi_and_lmg_optimizations_20190228/script_lmg_crab10freq_neldermead.py
lucainnocenti/ultrafast-critical-ground-state-preparation-2007.07381
29f80dcf914096555cee9bc2e18249a2c95d6a50
[ "MIT" ]
1
2020-07-21T02:31:41.000Z
2020-07-21T02:31:41.000Z
results/rabi_and_lmg_optimizations_20190228/script_lmg_crab10freq_neldermead.py
lucainnocenti/ultrafast-critical-ground-state-preparation-2007.07381
29f80dcf914096555cee9bc2e18249a2c95d6a50
[ "MIT" ]
null
null
null
results/rabi_and_lmg_optimizations_20190228/script_lmg_crab10freq_neldermead.py
lucainnocenti/ultrafast-critical-ground-state-preparation-2007.07381
29f80dcf914096555cee9bc2e18249a2c95d6a50
[ "MIT" ]
null
null
null
import os import sys import numpy as np import pandas as pd import logging if '../../' not in sys.path: sys.path.append('../../') import src.optimization as optimization model = 'lmg' model_parameters = dict(num_spins=50) protocol = 'crab' num_frequencies = 10 optimization_method = 'Nelder-Mead' # ------ build...
29.267606
70
0.712223
ebde9d84918377e1d80a70e9246fa33139e26bd1
1,820
py
Python
tronapi/common/normalizers.py
Moliholy/tron-api-python
47f2dccec24ea3e425bce34b955823051c9e346c
[ "MIT" ]
111
2018-10-15T19:49:31.000Z
2022-03-26T02:48:37.000Z
tronapi/common/normalizers.py
Moliholy/tron-api-python
47f2dccec24ea3e425bce34b955823051c9e346c
[ "MIT" ]
83
2018-10-24T18:49:56.000Z
2022-03-02T21:36:21.000Z
tronapi/common/normalizers.py
Moliholy/tron-api-python
47f2dccec24ea3e425bce34b955823051c9e346c
[ "MIT" ]
78
2018-10-16T06:29:10.000Z
2022-03-18T04:39:53.000Z
import functools import json from eth_utils import ( is_binary_address, to_hex, hexstr_if_str ) from hexbytes import HexBytes from toolz import curry from tronapi.common.abi import process_type from tronapi.common.account import Address from tronapi.common.encoding import ( to_bytes, text_if_str, ...
20.449438
54
0.706593
5d5607738d908ea197076a44c6404cfd7131b1ed
1,039
py
Python
src/services/deeplinks/src/main.py
fossabot/affo-ce
b78f9617270c94288de4c608b23953c27abb70eb
[ "BSD-3-Clause" ]
null
null
null
src/services/deeplinks/src/main.py
fossabot/affo-ce
b78f9617270c94288de4c608b23953c27abb70eb
[ "BSD-3-Clause" ]
null
null
null
src/services/deeplinks/src/main.py
fossabot/affo-ce
b78f9617270c94288de4c608b23953c27abb70eb
[ "BSD-3-Clause" ]
null
null
null
import base64 import aiohttp from aiohttp import web import aiohttp_jinja2 from aiohttp_session import setup from aiohttp_session.cookie_storage import EncryptedCookieStorage from cryptography import fernet from itsdangerous import URLSafeSerializer import jinja2 from . import settings from .middlewares import s...
22.106383
71
0.774783
7fe934594c68509d619e1fb58a2124ffff030d01
6,472
py
Python
core/sawtooth_poet/poet_consensus/signup_info.py
peterschwarz/sawtooth-poet
6bce9a7c11bd1bdb54e24224b69b75e29b08f1a1
[ "Apache-2.0" ]
14
2018-07-27T06:06:31.000Z
2021-12-03T00:30:39.000Z
core/sawtooth_poet/poet_consensus/signup_info.py
peterschwarz/sawtooth-poet
6bce9a7c11bd1bdb54e24224b69b75e29b08f1a1
[ "Apache-2.0" ]
20
2018-07-24T00:58:10.000Z
2021-12-05T22:42:14.000Z
core/sawtooth_poet/poet_consensus/signup_info.py
peterschwarz/sawtooth-poet
6bce9a7c11bd1bdb54e24224b69b75e29b08f1a1
[ "Apache-2.0" ]
38
2018-07-20T19:54:48.000Z
2022-03-20T07:27:46.000Z
# Copyright 2016, 2017 Intel Corporation # # 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 ...
37.847953
80
0.638288
db478f938223f80947bd1250842cef6b69f1d3f4
387
py
Python
blog_backend/__init__.py
enkidulan/blog_backend
c11c580d6eaae30cee9d1e01a5f17672a8b6d512
[ "Apache-2.0" ]
null
null
null
blog_backend/__init__.py
enkidulan/blog_backend
c11c580d6eaae30cee9d1e01a5f17672a8b6d512
[ "Apache-2.0" ]
null
null
null
blog_backend/__init__.py
enkidulan/blog_backend
c11c580d6eaae30cee9d1e01a5f17672a8b6d512
[ "Apache-2.0" ]
null
null
null
from pyramid.config import Configurator from substanced.db import root_factory def main(global_config, **settings): """ This function returns a Pyramid WSGI application. """ config = Configurator(settings=settings, root_factory=root_factory) config.include('substanced') config.include('blog_backe...
27.642857
71
0.74677
4d138a20004f487000a4764da9c0bbc74adee976
719
py
Python
modules/utils/functions.py
Alijkaz/MCServerStatsBot
cfdf2c53689572f5c7d00d82d45222e37814fd7e
[ "MIT" ]
4
2021-09-15T23:56:46.000Z
2021-12-29T17:14:38.000Z
modules/utils/functions.py
Alijkaz/MCServerStatsBot
cfdf2c53689572f5c7d00d82d45222e37814fd7e
[ "MIT" ]
null
null
null
modules/utils/functions.py
Alijkaz/MCServerStatsBot
cfdf2c53689572f5c7d00d82d45222e37814fd7e
[ "MIT" ]
2
2021-09-16T12:42:54.000Z
2021-12-25T11:23:15.000Z
from time import time import random, string from datetime import datetime as dt def replace_placeholders(string, placeholders): placeholders['%timestamp%'] = str(time()) for placeholder in placeholders: string = string.replace('%' + placeholder + '%', str(placeholders[placeholder])) return st...
28.76
93
0.671766
678b52c87568ad1a3a6f997fdb1f59e7d80506aa
36,494
py
Python
python/paddle/fluid/tests/unittests/test_optimizer.py
javakian/Paddle
10018f1561cb8f75f8df982dcf2217e50cee2647
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_optimizer.py
javakian/Paddle
10018f1561cb8f75f8df982dcf2217e50cee2647
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_optimizer.py
javakian/Paddle
10018f1561cb8f75f8df982dcf2217e50cee2647
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
42.984688
80
0.608155
a672b77e99684099b8fd80a7e4839634456d9516
1,239
py
Python
src/examples/func_calls.py
abhi608/C-to-MIPS-compiler
ccfb0f35ea9ddbcbc68b0dda0dbc71703c44194e
[ "BSD-3-Clause" ]
null
null
null
src/examples/func_calls.py
abhi608/C-to-MIPS-compiler
ccfb0f35ea9ddbcbc68b0dda0dbc71703c44194e
[ "BSD-3-Clause" ]
null
null
null
src/examples/func_calls.py
abhi608/C-to-MIPS-compiler
ccfb0f35ea9ddbcbc68b0dda0dbc71703c44194e
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------- # pycparser: func_defs.py # # Using pycparser for printing out all the calls of some function # in a C file. # # Eli Bendersky [http://eli.thegreenplace.net] # License: BSD #----------------------------------------------------------------- from __future...
26.361702
71
0.605327
efd6026b0c3083e42755fa51a41780120c066182
7,827
py
Python
fs_image/tests/test_package_image.py
snarkmaster/buckit
bc1a176385226ccae1e518c4c9306f7af131b053
[ "BSD-3-Clause" ]
null
null
null
fs_image/tests/test_package_image.py
snarkmaster/buckit
bc1a176385226ccae1e518c4c9306f7af131b053
[ "BSD-3-Clause" ]
null
null
null
fs_image/tests/test_package_image.py
snarkmaster/buckit
bc1a176385226ccae1e518c4c9306f7af131b053
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import os import stat import subprocess import sys import tempfile import unittest from contextlib import contextmanager from typing import Iterator from btrfs_diff.tests.render_subvols import render_sendstream from find_built_subvol import subvolumes_dir from package_image import package_image...
40.979058
80
0.577488
8e664dc5c02406e60df3598a81e33c2fc01db26a
1,323
py
Python
src/euler_python_package/euler_python/easiest/p021.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/easiest/p021.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/easiest/p021.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
def problem021(): """ Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers. For example, the proper divisors...
35.756757
106
0.631897
8f6694c726f447c26d5e007cff3268a0aded7a05
6,625
py
Python
lib/galaxy/model/migrate/check.py
hidelab/galaxy-central-hpc
75539db90abe90377db95718f83cafa7cfa43301
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/migrate/check.py
hidelab/galaxy-central-hpc
75539db90abe90377db95718f83cafa7cfa43301
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/migrate/check.py
hidelab/galaxy-central-hpc
75539db90abe90377db95718f83cafa7cfa43301
[ "CC-BY-3.0" ]
null
null
null
import sys import os.path import logging from galaxy import eggs eggs.require( "SQLAlchemy" ) eggs.require( "decorator" ) #Required by sqlalchemy-migrate eggs.require( "Tempita " ) #Required by sqlalchemy-migrate eggs.require( "sqlalchemy-migrate" ) from sqlalchemy import * from sqlalchemy.exc import NoSuchTableError...
48.713235
190
0.674113
fd9c3abb78d7980fc81627030e8580a4dbf5690a
277
py
Python
var same memory loaction.py
manand881/Python-Programs
eb970cb1b21d4aede0102c60425eb8a1d4ac605c
[ "MIT" ]
null
null
null
var same memory loaction.py
manand881/Python-Programs
eb970cb1b21d4aede0102c60425eb8a1d4ac605c
[ "MIT" ]
null
null
null
var same memory loaction.py
manand881/Python-Programs
eb970cb1b21d4aede0102c60425eb8a1d4ac605c
[ "MIT" ]
null
null
null
# Prove that two string variables of same value point same memory location str1= "anand" str2= "anand" print("\nmemory location of str1",hex(id(str1))) print("\nmemory location of str2",hex(id(str1))) if hex(id(str1))==hex(id(str2)): print("\n\nmemory location matches")
27.7
74
0.711191
f75e93025e0412d54dc52c859b66ed52d50ff310
1,044
py
Python
piicatcher/__init__.py
argos-education/piicatcher
7370cad8a4938762311926e8ab3bc286232e7106
[ "Apache-2.0" ]
4
2019-07-10T08:52:56.000Z
2019-10-23T13:58:18.000Z
piicatcher/__init__.py
argos-education/piicatcher
7370cad8a4938762311926e8ab3bc286232e7106
[ "Apache-2.0" ]
11
2019-03-21T11:28:07.000Z
2019-08-30T12:13:28.000Z
piicatcher/__init__.py
argos-education/piicatcher
7370cad8a4938762311926e8ab3bc286232e7106
[ "Apache-2.0" ]
2
2019-03-21T11:06:49.000Z
2019-03-27T06:05:52.000Z
# flake8: noqa __version__ = "0.19.2" from dbcat.catalog.pii_types import PiiType class Phone(PiiType): name = "Phone" type = "phone" pass class Email(PiiType): name = "Email" type = "email" pass class CreditCard(PiiType, type="credit_card"): # type: ignore name = "Credit Card" t...
14.704225
62
0.609195
a7f5698c1cef6ce9471640192853575e425db3e2
526
py
Python
release/stubs.min/Autodesk/Revit/DB/__init___parts/PointRelativeToPoint.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/PointRelativeToPoint.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/PointRelativeToPoint.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class PointRelativeToPoint(PointElementReference): """ Represents a point placed relative to another point. """ def GetHostPointReference(self): """ GetHostPointReference(self: PointRelativeToPoint) -> Reference Get a copy of the host point reference. """ pass def ...
25.047619
82
0.676806
282c7616c1cb22e115cf80c625771d4209cebaeb
12,326
py
Python
py/yubikey.py
jsoref/yubioath-desktop
26edbfc5ca42640fa15f6e983979fbf5dd280ec5
[ "BSD-2-Clause" ]
null
null
null
py/yubikey.py
jsoref/yubioath-desktop
26edbfc5ca42640fa15f6e983979fbf5dd280ec5
[ "BSD-2-Clause" ]
null
null
null
py/yubikey.py
jsoref/yubioath-desktop
26edbfc5ca42640fa15f6e983979fbf5dd280ec5
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import logging import types import ykman.logging_setup from base64 import b32encode, b64decode from binascii import a2b_hex, b2a_hex from ykman.descriptor import get_descriptors from ykman.util import (TRANSPORT, parse_b32_key) from ykman.driver_otp import Yk...
33.22372
78
0.589405
05d21b1619fbb9b322f483a36c0cfd3c89ad3816
146
py
Python
src/demo_tezos_domains/hooks/on_synchronized.py
dipdup-net/dipdup-py
1f42e3788d8eec1021e5002837471ce31dafe6ee
[ "MIT" ]
39
2021-04-13T10:53:27.000Z
2022-02-11T00:53:44.000Z
src/demo_quipuswap/hooks/on_synchronized.py
dipdup-net/dipdup-py
1f42e3788d8eec1021e5002837471ce31dafe6ee
[ "MIT" ]
113
2021-06-01T18:16:42.000Z
2022-03-28T06:12:58.000Z
src/demo_tezos_domains/hooks/on_synchronized.py
dipdup-net/dipdup-py
1f42e3788d8eec1021e5002837471ce31dafe6ee
[ "MIT" ]
16
2021-05-26T07:04:40.000Z
2022-03-29T06:50:25.000Z
from dipdup.context import HookContext async def on_synchronized( ctx: HookContext, ) -> None: await ctx.execute_sql('on_synchronized')
18.25
44
0.746575
f8dbbd65ab4616fa44681397bd6caa8e7f1964ea
874
py
Python
lab/refactoring/extract_superclass_refactored.py
Deer5000/simplifying_conditional_expressions
34314a4ae935d46dbe3af1d3c7715f1d0c2b2d35
[ "MIT" ]
1
2021-02-08T04:44:36.000Z
2021-02-08T04:44:36.000Z
lab/refactoring/extract_superclass_refactored.py
Deer5000/simplifying_conditional_expressions
34314a4ae935d46dbe3af1d3c7715f1d0c2b2d35
[ "MIT" ]
10
2021-02-18T18:47:15.000Z
2021-06-02T04:40:46.000Z
lab/refactoring/extract_superclass_refactored.py
Deer5000/simplifying_conditional_expressions
34314a4ae935d46dbe3af1d3c7715f1d0c2b2d35
[ "MIT" ]
34
2021-02-02T18:24:32.000Z
2021-08-15T08:57:55.000Z
# By Kamran Bigdely # Extract superclass # Refactored. class Enemy: def __init__(self): self.health = 100 def take_damage(self, damage): self.health -= damage class AngryMushroom(Enemy): def __init__(self): pass def spread_poison(self): print...
18.595745
52
0.618993
e07bceb3d5d6fe1f885206927ddf5b285b695c2c
3,099
py
Python
src/util/constant.py
delavet/SOworkspace
74bbcfa62c7e293b2b02f23249ac408aa22b44af
[ "MIT" ]
6
2020-12-31T06:13:56.000Z
2022-03-27T16:26:12.000Z
src/util/constant.py
delavet/SOworkspace
74bbcfa62c7e293b2b02f23249ac408aa22b44af
[ "MIT" ]
null
null
null
src/util/constant.py
delavet/SOworkspace
74bbcfa62c7e293b2b02f23249ac408aa22b44af
[ "MIT" ]
null
null
null
from pickle import NONE class NodeType: SCOPE = 'SCOPE' MODULE = 'MODULE' PACKAGE = 'PACKAGE' CLASS = 'CLASS' INTERFACE = 'INTERFACE' ENUM = 'ENUM' EXCEPTION = 'EXCEPTION' ERROR = 'ERROR' ANNOTATION = 'ANNOTATION' FIELD = 'FIELD' METHOD = 'METHOD' ENUM_CONSTANT = 'ENUM_...
30.99
129
0.694095
de86f2d4360c7899c477fd3dd9cdcc3c220ca8b8
2,153
py
Python
Python scripts/fillerForNoOfSit_RepsAndDate.py
OQ2000/COVID-19-By-Country
bb8525835fd7910beafc34640cc6c3930758e873
[ "FTL", "CNRI-Python" ]
null
null
null
Python scripts/fillerForNoOfSit_RepsAndDate.py
OQ2000/COVID-19-By-Country
bb8525835fd7910beafc34640cc6c3930758e873
[ "FTL", "CNRI-Python" ]
null
null
null
Python scripts/fillerForNoOfSit_RepsAndDate.py
OQ2000/COVID-19-By-Country
bb8525835fd7910beafc34640cc6c3930758e873
[ "FTL", "CNRI-Python" ]
null
null
null
from pynput.keyboard import Key, Controller, KeyCode, Listener import clipboard from time import sleep import os import os.path import sys import random from pyautogui import press, hotkey, typewrite, keyDown, keyUp import webbrowser import datetime from datetime import time, date, timedelta from openpyxl import Workbo...
35.295082
116
0.704134
7f66d3a2b036c75ed67fe3d41eb242fcb2fd7e4a
1,148
py
Python
src/wealth/importers/common.py
langenhagen/wealth
273887568aa0c6281751647effcf84cf5422ba37
[ "MIT" ]
null
null
null
src/wealth/importers/common.py
langenhagen/wealth
273887568aa0c6281751647effcf84cf5422ba37
[ "MIT" ]
null
null
null
src/wealth/importers/common.py
langenhagen/wealth
273887568aa0c6281751647effcf84cf5422ba37
[ "MIT" ]
null
null
null
"""Contains common code for importing bank transaction csv files.""" import pandas as pd # Columns that most transactions have. transfer_columns = [ "date", "account", "amount", "description", "account_type", "transaction_type", "all_data", "correspondent", "iban", ] def add_all_d...
28.7
81
0.626307
f74e8128ab731ab58c03214a3e6f1dfef6e8e675
403
py
Python
python_aulas/desaf101_funcao_2_voto.py
gilsonaureliano/Python-aulas
64269872acd482bcf297941ba28d30f13f29c752
[ "MIT" ]
1
2021-08-05T13:52:12.000Z
2021-08-05T13:52:12.000Z
python_aulas/desaf101_funcao_2_voto.py
gilsonaureliano/Python-aulas
64269872acd482bcf297941ba28d30f13f29c752
[ "MIT" ]
null
null
null
python_aulas/desaf101_funcao_2_voto.py
gilsonaureliano/Python-aulas
64269872acd482bcf297941ba28d30f13f29c752
[ "MIT" ]
null
null
null
def voto(n): from datetime import date global ano ano = date.today().year - n if 65 > ano >= 18: r = 'OBRIGATÓRIO' return r if ano < 18: r = 'NEGADO' return r if ano > 65: r = 'OPCIONAL' return r # programa principal print('-=' * 20) ano = int(i...
18.318182
39
0.523573
5f1ccca12a8fbb3e2a790844f767ea67bc9b22a6
21,299
py
Python
imate/interpolate_traceinv/interpolate_traceinv.py
ameli/TraceInv
fe759af016c5845d88ca98e56994b6c86c132792
[ "BSD-3-Clause" ]
1
2021-08-21T12:12:28.000Z
2021-08-21T12:12:28.000Z
imate/interpolate_traceinv/interpolate_traceinv.py
ameli/TraceInv
fe759af016c5845d88ca98e56994b6c86c132792
[ "BSD-3-Clause" ]
null
null
null
imate/interpolate_traceinv/interpolate_traceinv.py
ameli/TraceInv
fe759af016c5845d88ca98e56994b6c86c132792
[ "BSD-3-Clause" ]
1
2021-08-21T12:12:44.000Z
2021-08-21T12:12:44.000Z
# SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu> # SPDX-License-Identifier: BSD-3-Clause # SPDX-FileType: SOURCE # # This program is free software: you can redistribute it and/or modify it under # the terms of the license found in the LICENSE.txt file in the root directory # of this source ...
35.03125
79
0.570262
f9db147d8a79bef88a3e0d483729f58c67727f34
3,113
py
Python
tools/kunskap/tests/main_test.py
ZenPylon/professional-services
e579939dabfd135b7ad3c844e0824d4ba06a9793
[ "Apache-2.0" ]
14
2019-09-22T13:19:22.000Z
2021-11-04T01:24:02.000Z
tools/kunskap/tests/main_test.py
ZenPylon/professional-services
e579939dabfd135b7ad3c844e0824d4ba06a9793
[ "Apache-2.0" ]
6
2020-01-28T22:42:21.000Z
2021-10-30T05:50:15.000Z
tools/kunskap/tests/main_test.py
ZenPylon/professional-services
e579939dabfd135b7ad3c844e0824d4ba06a9793
[ "Apache-2.0" ]
19
2019-07-11T17:48:31.000Z
2021-12-01T15:53:31.000Z
# Copyright 2019 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 or agreed to in writing, ...
36.197674
102
0.699004
3337560d40f65ca3f3cd16b6ae3623125c895d16
16,857
py
Python
src/config/utils/provision_pnf_servicechain.py
pawelzny/contrail-controller
4950d3144cb8c422264ddb2a926cf4fe9e40b14d
[ "Apache-2.0" ]
null
null
null
src/config/utils/provision_pnf_servicechain.py
pawelzny/contrail-controller
4950d3144cb8c422264ddb2a926cf4fe9e40b14d
[ "Apache-2.0" ]
null
null
null
src/config/utils/provision_pnf_servicechain.py
pawelzny/contrail-controller
4950d3144cb8c422264ddb2a926cf4fe9e40b14d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2019 Juniper Networks, Inc. All rights reserved. # import sys import time import argparse import ConfigParser import json from vnc_api.vnc_api import * from cfgm_common.exceptions import * # Provision a PNF service chain # Populate provision_pnf_servicechain.ini appropriately cla...
40.04038
80
0.584624
2708fb213e2294d453e6f9257b72868146a60ad6
14,689
py
Python
calc_pixel_pairs.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
2
2017-03-21T14:18:35.000Z
2020-03-30T20:51:33.000Z
calc_pixel_pairs.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
calc_pixel_pairs.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
""" Accumulate flux products from pixel pairs to bins. Uses a Python/C API methods for the actual calculation. There are 2 modes of operation: - mean: sum of weighted flux products, sum of weights - median: a weighted histogram of flux products. Also contains a slower reference implement...
44.783537
116
0.629791
fb2a4077b7f6009ae6b748f2aa6e46e8e2c068e3
1,355
py
Python
SRC/engine/IO/GUI/meshwidget.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
31
2015-04-01T15:59:36.000Z
2022-03-18T20:21:47.000Z
SRC/engine/IO/GUI/meshwidget.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
3
2015-02-06T19:30:24.000Z
2017-05-25T14:14:31.000Z
SRC/engine/IO/GUI/meshwidget.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
7
2015-01-23T15:19:22.000Z
2021-06-09T09:03:59.000Z
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
39.852941
78
0.712177
4c380c24e4d2ed344c33d40e910993d9dcf9f23a
1,036
py
Python
data_visualization/seaborn/example_03_matricial_plots.py
software-foundations/learning-data-science
9214f9228d7d252e85e3b8362d94d294f1237523
[ "MIT" ]
null
null
null
data_visualization/seaborn/example_03_matricial_plots.py
software-foundations/learning-data-science
9214f9228d7d252e85e3b8362d94d294f1237523
[ "MIT" ]
null
null
null
data_visualization/seaborn/example_03_matricial_plots.py
software-foundations/learning-data-science
9214f9228d7d252e85e3b8362d94d294f1237523
[ "MIT" ]
null
null
null
from datasets import load_dataframe_tips, load_dataframe_flights from plots import heatmap, clustermap import matplotlib.pyplot as plt import numpy as np # load datasets flights = load_dataframe_flights() tips = load_dataframe_tips() # general data analysis flights.head() tips.head() flights.info() # heatmap - da...
23.545455
80
0.787645
c27d3f74bf62f0e425e05dfb09ec680473691dfb
1,731
py
Python
studio/firebase_provider.py
NunoEdgarGFlowHub/studio
42b221892a81535842ff25cbbcc434d6422a19e5
[ "Apache-2.0" ]
null
null
null
studio/firebase_provider.py
NunoEdgarGFlowHub/studio
42b221892a81535842ff25cbbcc434d6422a19e5
[ "Apache-2.0" ]
null
null
null
studio/firebase_provider.py
NunoEdgarGFlowHub/studio
42b221892a81535842ff25cbbcc434d6422a19e5
[ "Apache-2.0" ]
null
null
null
from .keyvalue_provider import KeyValueProvider class FirebaseProvider(KeyValueProvider): def __init__(self, db_config, blocking_auth=True, verbose=10, store=None): super( FirebaseProvider, self).__init__( db_config, blocking_auth, verbose, ...
34.62
78
0.52513
263ac9de5b542e0ba547910dc4351393b9fa176a
2,393
py
Python
TP4/agenetico.py
exegonzalez/Inteligencia-Artificial
a8283189937544fd75390c3b0283384319fe27c4
[ "MIT" ]
null
null
null
TP4/agenetico.py
exegonzalez/Inteligencia-Artificial
a8283189937544fd75390c3b0283384319fe27c4
[ "MIT" ]
null
null
null
TP4/agenetico.py
exegonzalez/Inteligencia-Artificial
a8283189937544fd75390c3b0283384319fe27c4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # d) Hacer el algoritmo/seudocódigo: # 1. entrar una cadena # 2. parsear las cadenas de bits en valores # 3. hallar los códigos válidos y reemplazar los bits por los símbolos # 4. descartar las si hay 'n/a' # 5. evaluar fitness import operator def cromosoma(cadena): ...
29.9125
119
0.656498
7855bf070ddec372e45ce4a0ebfa663ad5e44869
688
py
Python
core/migrations/0005_ingredient.py
alessandroHenrique/recipe-app-api
8384cff7e8c07736dc34215a24051ba8785dcd82
[ "MIT" ]
null
null
null
core/migrations/0005_ingredient.py
alessandroHenrique/recipe-app-api
8384cff7e8c07736dc34215a24051ba8785dcd82
[ "MIT" ]
null
null
null
core/migrations/0005_ingredient.py
alessandroHenrique/recipe-app-api
8384cff7e8c07736dc34215a24051ba8785dcd82
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-24 19:19 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0004_tag'), ] operations = [ migrations.CreateModel( n...
28.666667
118
0.619186
c83bfe94c5592a62b9affb5351ee2da4f316cea4
14,650
py
Python
slim/quantization/train_quant.py
windstamp/PaddleSeg
828808ea306adf2e8b94c291b77e7b7cf558bc2a
[ "ECL-2.0", "Apache-2.0" ]
56
2021-01-31T02:19:12.000Z
2022-03-12T12:39:21.000Z
slim/quantization/train_quant.py
windstamp/PaddleSeg
828808ea306adf2e8b94c291b77e7b7cf558bc2a
[ "ECL-2.0", "Apache-2.0" ]
1
2021-07-21T02:36:01.000Z
2021-07-21T02:37:45.000Z
slim/quantization/train_quant.py
windstamp/PaddleSeg
828808ea306adf2e8b94c291b77e7b7cf558bc2a
[ "ECL-2.0", "Apache-2.0" ]
13
2021-02-03T11:18:36.000Z
2022-03-07T08:18:53.000Z
# coding: utf8 # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve. # # 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 requ...
36.262376
121
0.616997
dcbb535da18feda95bf73be6c1aa99a01d9f7615
11,216
py
Python
SearchService2/appscale/search/query_parser/parser.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
SearchService2/appscale/search/query_parser/parser.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
SearchService2/appscale/search/query_parser/parser.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
""" parser module is responsible for parsing query string and building structured tree containing grouped expressions. e.g.: "foo bar OR (price<1025 AND product:(laptop OR camera))" is translated to: ExpressionsGroup( OR ExpressionsGroup( AND Expression(field_name=, operator=EQUALS, value=Value(str_value=...
31.683616
76
0.687143
8705a8d89385d0482e2a415edd77d04628016a21
3,250
py
Python
parameters.py
punk95/Continual-Learning-With-Curiosity
af0c507040e1352beb8740b6b3a7849417fc879a
[ "MIT" ]
2
2021-07-12T17:11:35.000Z
2021-07-13T05:56:30.000Z
parameters.py
punk95/Continual-Learning-With-Curiosity
af0c507040e1352beb8740b6b3a7849417fc879a
[ "MIT" ]
null
null
null
parameters.py
punk95/Continual-Learning-With-Curiosity
af0c507040e1352beb8740b6b3a7849417fc879a
[ "MIT" ]
null
null
null
import torch import numpy as np class NN_Paramters(): def __init__(self, state_dim, action_dim, non_linearity = torch.nn.functional.tanh, weight_initializer = 'xavier', bias_initializer = 'zero', hidden_layer_dim = [128, 128], device= torch.device('cuda'), l_r=0.0001, CNN_layers = [(4, 32, 8,...
37.790698
152
0.630154
6b788bea4eda69c8a645690680eb501eafa81554
2,648
py
Python
dakotathon/method/centered_parameter_study.py
csdms/dakotathon
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
8
2019-09-11T12:59:57.000Z
2021-08-11T16:31:58.000Z
dakotathon/method/centered_parameter_study.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
66
2015-04-06T17:11:21.000Z
2019-02-03T18:09:52.000Z
dakotathon/method/centered_parameter_study.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
5
2015-03-24T22:39:34.000Z
2018-04-21T12:14:05.000Z
#! /usr/bin/env python """Implementation of a Dakota centered parameter study.""" from .base import MethodBase from ..utils import to_iterable classname = "CenteredParameterStudy" class CenteredParameterStudy(MethodBase): """Define parameters for a Dakota centered parameter study.""" def __init__(self, s...
28.170213
84
0.596677
d9aa5166405bd9a6bce45c2b9659469497e59d65
4,972
py
Python
iot/noxfile.py
elisheva-qlogic/google-cloud-python
79a43138a1dd733feff005e4207c29f8b269d8c2
[ "Apache-2.0" ]
null
null
null
iot/noxfile.py
elisheva-qlogic/google-cloud-python
79a43138a1dd733feff005e4207c29f8b269d8c2
[ "Apache-2.0" ]
null
null
null
iot/noxfile.py
elisheva-qlogic/google-cloud-python
79a43138a1dd733feff005e4207c29f8b269d8c2
[ "Apache-2.0" ]
1
2020-04-14T10:47:41.000Z
2020-04-14T10:47:41.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
31.27044
84
0.650845
1db78ca3d88dfd39d3de5abbaa7730a15bc8fa00
8,851
py
Python
libraries/mathy_python/mathy/solver.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
95
2020-01-02T23:02:34.000Z
2022-03-08T18:57:24.000Z
libraries/mathy_python/mathy/solver.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
44
2020-01-05T03:07:45.000Z
2021-08-11T20:45:53.000Z
libraries/mathy_python/mathy/solver.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
5
2020-04-04T16:46:36.000Z
2022-03-30T08:10:02.000Z
"""Use Fractal Monte Carlo search in order to solve mathy problems without a trained neural network.""" from typing import Dict, List, Optional, Union import numpy as np from fragile.core.env import DiscreteEnv from fragile.core.models import DiscreteModel from fragile.core.states import StatesEnv, StatesModel, States...
33.911877
88
0.620721
0b71e02396a0e5b4f9cfe408b4245157926a13ee
23,079
py
Python
conans/test/functional/graph_lock/dynamic_test.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
null
null
null
conans/test/functional/graph_lock/dynamic_test.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
null
null
null
conans/test/functional/graph_lock/dynamic_test.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
null
null
null
import json import textwrap import unittest from conans.client.tools.env import environment_append from conans.test.utils.tools import TestClient, GenConanfile class GraphLockDynamicTest(unittest.TestCase): def test_partial_lock(self): client = TestClient() client.save({"conanfile.py": GenConanf...
50.39083
101
0.612678
ea83af9d01143221cb4aed9ef4bcf91f97976e72
516
py
Python
tests/test_demo.py
liguodongIOT/nlp-app-samples
e0cc747e88c7b5c701b5099462d2dd6277c23381
[ "Apache-2.0" ]
1
2021-09-30T08:16:21.000Z
2021-09-30T08:16:21.000Z
tests/test_demo.py
liguodongIOT/nlp-app-samples
e0cc747e88c7b5c701b5099462d2dd6277c23381
[ "Apache-2.0" ]
null
null
null
tests/test_demo.py
liguodongIOT/nlp-app-samples
e0cc747e88c7b5c701b5099462d2dd6277c23381
[ "Apache-2.0" ]
1
2021-11-24T06:24:44.000Z
2021-11-24T06:24:44.000Z
import numpy as np import bisect split_map = {"train": 0.334, "eval": 0.333, "test": 0.333} probability_mass = np.cumsum(list(split_map.values())) print(probability_mass) max_value = probability_mass[-1] # 从一个均匀分布[low,high)中随机采样,注意定义域是左闭右开,即包含low,不包含high,默认采集一个样本 print(np.ran...
19.111111
71
0.680233
4fa5661058ad3c50967a795371ec222acdfc0f1e
8,427
py
Python
sandbox/matchpoint4.py
ja5per/MuddyMorph
869ff199d9e0ce30e99d9b2289cf7c45fed7d8b8
[ "MIT" ]
1
2021-09-18T16:47:20.000Z
2021-09-18T16:47:20.000Z
sandbox/matchpoint4.py
ja5per/MuddyMorph
869ff199d9e0ce30e99d9b2289cf7c45fed7d8b8
[ "MIT" ]
null
null
null
sandbox/matchpoint4.py
ja5per/MuddyMorph
869ff199d9e0ce30e99d9b2289cf7c45fed7d8b8
[ "MIT" ]
1
2019-07-15T01:39:28.000Z
2019-07-15T01:39:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Combine silhouette & corner based key point detection & matching. Does this yield the powerful and flexible solution we seek? """ ############ # Settings # ############ # Process these files home = r'/Users/jasper/Documents/PythonSpul/muddymorph/testcases' key_a = h...
28.09
80
0.6103
b3fb1c1be5b5d07c779ec05d24aaeb32fddafb34
2,608
py
Python
rlcard/envs/uno.py
wolfranAlpha/ML-ReproducibilityExercise
eb5378578536dcaf51121e104e1de6870b4ebcfa
[ "MIT" ]
null
null
null
rlcard/envs/uno.py
wolfranAlpha/ML-ReproducibilityExercise
eb5378578536dcaf51121e104e1de6870b4ebcfa
[ "MIT" ]
null
null
null
rlcard/envs/uno.py
wolfranAlpha/ML-ReproducibilityExercise
eb5378578536dcaf51121e104e1de6870b4ebcfa
[ "MIT" ]
null
null
null
import numpy as np from rlcard.envs import Env from rlcard.games.uno import Game from rlcard.games.uno.utils import encode_hand, encode_target from rlcard.games.uno.utils import ACTION_SPACE, ACTION_LIST from rlcard.games.uno.utils import cards2list class UnoEnv(Env): def __init__(self, config): self.na...
35.243243
84
0.637653
94cb1e7107fb0068108a9353456d43e2dd6930d2
6,102
py
Python
torch_glow/tests/nodes/layernorm_test.py
saranyakrish14/glow
3562fba6a77d2bb4aacf98a5bff5a737a93f6adc
[ "Apache-2.0" ]
1
2021-03-04T19:42:54.000Z
2021-03-04T19:42:54.000Z
torch_glow/tests/nodes/layernorm_test.py
saranyakrish14/glow
3562fba6a77d2bb4aacf98a5bff5a737a93f6adc
[ "Apache-2.0" ]
1
2021-04-17T11:04:55.000Z
2021-05-17T16:50:01.000Z
torch_glow/tests/nodes/layernorm_test.py
saranyakrish14/glow
3562fba6a77d2bb4aacf98a5bff5a737a93f6adc
[ "Apache-2.0" ]
2
2021-07-29T08:12:35.000Z
2021-09-15T03:46:18.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import torch import torch.nn.functional as F from tests import utils class SimpleLayerNormModule(torch.nn.Module): def __init__(self, normalized_shape): super(SimpleLayerNormModule, self).__init__() self.normalized...
33.527473
87
0.592593
a139c61e93bd3d976aaa5d706da3d269f7d52385
7,483
py
Python
src/sync.py
neybar/icloud-drive-docker
c7e59400c01b304c0f8ed7fd0b3ea2a623623b2e
[ "BSD-3-Clause" ]
null
null
null
src/sync.py
neybar/icloud-drive-docker
c7e59400c01b304c0f8ed7fd0b3ea2a623623b2e
[ "BSD-3-Clause" ]
null
null
null
src/sync.py
neybar/icloud-drive-docker
c7e59400c01b304c0f8ed7fd0b3ea2a623623b2e
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Mandar Patil (mandarons@pm.me)' import datetime import os import re import time from pathlib import Path from shutil import copyfileobj, rmtree from pyicloud import PyiCloudService, utils, exceptions from src import config_parser from src import notify def wanted_file(filters, file_path, verbose=Fals...
42.276836
117
0.647735
a4e2d245b83b1dea55eebea866ad97990814a66e
692
py
Python
secondary-voice-server-AI/lib/tacotron2/loss_function.py
doongu/pnu_opensource_hack
1abcce865776182b677ee468135a86bb462e89a8
[ "MIT" ]
2
2021-05-06T12:34:11.000Z
2021-05-10T02:26:27.000Z
secondary-voice-server-AI/lib/tacotron2/loss_function.py
doongu/pnu_opensource_hack
1abcce865776182b677ee468135a86bb462e89a8
[ "MIT" ]
null
null
null
secondary-voice-server-AI/lib/tacotron2/loss_function.py
doongu/pnu_opensource_hack
1abcce865776182b677ee468135a86bb462e89a8
[ "MIT" ]
2
2020-11-27T00:55:15.000Z
2021-09-20T17:08:11.000Z
from torch import nn class Tacotron2Loss(nn.Module): def __init__(self): super(Tacotron2Loss, self).__init__() def forward(self, model_output, targets): mel_target, gate_target = targets[0], targets[1] mel_target.requires_grad = False gate_target.requires_grad = Fals...
34.6
66
0.644509
f5ce0045f3c6dfdd357cd874f8ee24df0d8cb3d9
1,705
py
Python
research/autoencoder/VariationalAutoencoderRunner.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
3,326
2018-01-26T22:42:25.000Z
2022-02-16T13:16:39.000Z
research/autoencoder/VariationalAutoencoderRunner.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
150
2017-08-28T14:59:36.000Z
2022-03-11T23:21:35.000Z
research/autoencoder/VariationalAutoencoderRunner.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
1,474
2018-02-01T04:33:18.000Z
2022-03-08T07:02:20.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import sklearn.preprocessing as prep import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data from autoencoder_models.VariationalAutoencoder import VariationalAutoe...
29.912281
76
0.73607
85416428c979c84b01589ad3cb42d3b0e701b1f3
18,518
py
Python
utils/util.py
aalto-intelligent-robotics/DDGC
2118c67f4a1bd53390d5db60fe296a80c1550121
[ "MIT" ]
2
2021-11-18T03:40:13.000Z
2021-12-28T08:43:59.000Z
utils/util.py
aalto-intelligent-robotics/DDGC
2118c67f4a1bd53390d5db60fe296a80c1550121
[ "MIT" ]
null
null
null
utils/util.py
aalto-intelligent-robotics/DDGC
2118c67f4a1bd53390d5db60fe296a80c1550121
[ "MIT" ]
1
2022-03-07T09:21:16.000Z
2022-03-07T09:21:16.000Z
from __future__ import print_function from collections import OrderedDict import trimesh import quaternion import torch import math import os import numpy as np from PIL import Image import copy import cvxopt as cvx cvx.solvers.options['show_progress'] = False def batch_pairwise_dist(x, y, use_cuda=True): bs, num...
34.166052
172
0.578194
6f89c0344fffbccdfd96407366e1d2e85fa5a5be
39,415
py
Python
weibull/weibull.py
slightlynybbled/weibull2
dcf18c1d265bca82d202aa94b6e82acd936dee34
[ "MIT" ]
29
2017-12-14T18:59:40.000Z
2022-02-23T23:51:15.000Z
weibull/weibull.py
slightlynybbled/weibull
dcf18c1d265bca82d202aa94b6e82acd936dee34
[ "MIT" ]
30
2017-12-14T16:38:21.000Z
2020-05-27T05:25:46.000Z
weibull/weibull.py
slightlynybbled/weibull2
dcf18c1d265bca82d202aa94b6e82acd936dee34
[ "MIT" ]
22
2018-01-27T20:57:25.000Z
2021-11-27T10:14:11.000Z
import logging import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl from matplotlib import rcParams import scipy.stats from scipy.special import gamma import datetime from pathlib import Path rcParams.update({'figure.autolayout': True}) # Set a larger default size for plots ...
37.324811
273
0.557859
b46be718dd26fa7cad4784c2269374e35963c6a7
10,205
py
Python
lib/gvLoggingConfig.py
globalvillagesoftware/infrastructure
2e052c9da85a0d6be61795d66e0bf7b12fb62f09
[ "Apache-2.0" ]
null
null
null
lib/gvLoggingConfig.py
globalvillagesoftware/infrastructure
2e052c9da85a0d6be61795d66e0bf7b12fb62f09
[ "Apache-2.0" ]
20
2020-05-03T17:48:51.000Z
2020-05-09T00:32:41.000Z
lib/gvLoggingConfig.py
globalvillagesoftware/infrastructure
2e052c9da85a0d6be61795d66e0bf7b12fb62f09
[ "Apache-2.0" ]
null
null
null
""" Logging Configuration Support This class will eventually run stand-alone and will provide logging configuration for an entire physical site, but originally it will simply be part of the logging system support. .. only:: development_administrator Created on Jul. 14, 2020 @author: Jonathan Gossag...
45.762332
80
0.616267
99681a427f85b575eb8e1e8c1adfc6d16b7ddf2f
2,117
py
Python
ui/utils.py
vietanhdang/Haystack-Modified-
c13352debe1decb537aea156137b55c11f64877a
[ "Apache-2.0" ]
null
null
null
ui/utils.py
vietanhdang/Haystack-Modified-
c13352debe1decb537aea156137b55c11f64877a
[ "Apache-2.0" ]
null
null
null
ui/utils.py
vietanhdang/Haystack-Modified-
c13352debe1decb537aea156137b55c11f64877a
[ "Apache-2.0" ]
null
null
null
import os import requests import streamlit as st API_ENDPOINT = os.getenv("API_ENDPOINT", "http://localhost:8000") DOC_REQUEST = "query" DOC_FEEDBACK = "feedback" DOC_UPLOAD = "file-upload" @st.cache(show_spinner=False) def retrieve_doc(query, filters=None, top_k_reader=5, top_k_retriever=5): # Query Haystack A...
33.078125
119
0.612659
9d9e06504524ebc88d907f2d94e64fe257c69c3c
17,645
py
Python
models/cycle_gan_mask_patch_model.py
pnsuau/CycleGAN
c88fce9c9404d2055e7ddb3f783f55ece5f9fbb7
[ "BSD-3-Clause" ]
1
2020-03-16T15:44:47.000Z
2020-03-16T15:44:47.000Z
models/cycle_gan_mask_patch_model.py
pnsuau/CycleGAN
c88fce9c9404d2055e7ddb3f783f55ece5f9fbb7
[ "BSD-3-Clause" ]
1
2020-06-30T09:56:10.000Z
2020-06-30T09:56:10.000Z
models/cycle_gan_mask_patch_model.py
pnsuau/CycleGAN
c88fce9c9404d2055e7ddb3f783f55ece5f9fbb7
[ "BSD-3-Clause" ]
null
null
null
import torch import itertools from util.image_pool import ImagePool from .base_model import BaseModel from . import networks from torch.autograd import Variable import numpy as np import torch.nn.functional as F import kornia.geometry.transform as f class CycleGANMaskPatchModel(BaseModel): #def name(self): # ...
49.844633
362
0.59779
658221c73ea8c6408f686f27a33b6248b1d3ff1e
3,464
py
Python
detectron2/modeling/backbone/weight_init.py
thirdwave-ai/detectron2
dc5d028721aa77558b7755ed81e4e13e1fef27e5
[ "Apache-2.0" ]
null
null
null
detectron2/modeling/backbone/weight_init.py
thirdwave-ai/detectron2
dc5d028721aa77558b7755ed81e4e13e1fef27e5
[ "Apache-2.0" ]
1
2021-07-21T17:10:32.000Z
2021-07-21T17:10:32.000Z
detectron2/modeling/backbone/weight_init.py
thirdwave-ai/detectron2
dc5d028721aa77558b7755ed81e4e13e1fef27e5
[ "Apache-2.0" ]
1
2021-12-15T20:44:46.000Z
2021-12-15T20:44:46.000Z
""" Taken from timm.models.layers here: https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/layers/weight_init.py """ import torch import math import warnings from torch.nn.init import _calculate_fan_in_and_fan_out def _no_grad_trunc_normal_(tensor, mean, std, a, b): # Cut & paste from PyT...
37.247312
131
0.64694
428b12fd1e0c4b4c0e15da9f136db115202761fc
4,931
py
Python
eval.py
villmow/transformer-xl
059edb641c92f753a629b46d1dbe39b84692a3b2
[ "Apache-2.0" ]
null
null
null
eval.py
villmow/transformer-xl
059edb641c92f753a629b46d1dbe39b84692a3b2
[ "Apache-2.0" ]
null
null
null
eval.py
villmow/transformer-xl
059edb641c92f753a629b46d1dbe39b84692a3b2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ git clone https://github.com/cybertronai/transformer-xl.git cd transformer-xl/pytorch source activate pytorch_p36 # Match eval parameters from paper. # https://github.com/kimiyoung/transformer-xl/blob/master/tf/scripts/wt103_large_tpu.sh python eval.py --data=data/wikitext-103 --dataset=wt103 --bat...
39.766129
168
0.623403
e3a8aecd4eb26e844dc954d6429716eebe521622
679
py
Python
regex/re-applications/ip-address-validation.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
41
2018-05-11T07:54:34.000Z
2022-03-29T19:02:32.000Z
regex/re-applications/ip-address-validation.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
2
2021-09-13T10:03:26.000Z
2021-10-04T10:21:05.000Z
regex/re-applications/ip-address-validation.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
21
2019-01-23T19:06:59.000Z
2021-12-23T16:03:47.000Z
# Regex > Applications > IP Address Validation # Validate possible IP Addresses with regex. # # https://www.hackerrank.com/challenges/ip-address-validation/problem # https://www.hackerrank.com/contests/programming-interviews-practice-session/challenges/ip-address-validation # challenge id: 896 # import re def check_...
26.115385
110
0.599411
86d09e1dc3e46993f24d76109f174e7dcebf0c71
43,878
py
Python
mne/chpi.py
cuckoong/mne-python
09ede511b83720076d26e22b71c5eb5cad5c2f9f
[ "BSD-3-Clause" ]
null
null
null
mne/chpi.py
cuckoong/mne-python
09ede511b83720076d26e22b71c5eb5cad5c2f9f
[ "BSD-3-Clause" ]
null
null
null
mne/chpi.py
cuckoong/mne-python
09ede511b83720076d26e22b71c5eb5cad5c2f9f
[ "BSD-3-Clause" ]
1
2020-03-05T08:43:17.000Z
2020-03-05T08:43:17.000Z
# -*- coding: utf-8 -*- """Functions for fitting head positions with (c)HPI coils.""" # To fit head positions (continuously), the procedure using # ``_calculate_chpi_positions`` is: # # 1. Get HPI coil locations (as digitized in info['dig'] in head coords # using ``_get_hpi_initial_fit``. # 2. Get HPI f...
38.489474
79
0.578354
c4645143540c9c8d93012d3f036e9672656b8b7b
5,086
py
Python
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/CreateFlowJobRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/CreateFlowJobRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/CreateFlowJobRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.395062
107
0.748132
2f2b9ffd62f7d3bbdbc8f3efeda84c068aea682c
263
py
Python
scripts/init.py
eduardonunes2525/competitive-programming
0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b
[ "MIT" ]
null
null
null
scripts/init.py
eduardonunes2525/competitive-programming
0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b
[ "MIT" ]
1
2018-10-17T11:53:02.000Z
2018-10-17T11:54:42.000Z
scripts/init.py
eduardonunes2525/competitive-programming
0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b
[ "MIT" ]
1
2018-10-17T12:14:04.000Z
2018-10-17T12:14:04.000Z
import os, sys command = ("cp /home/eduardonunes/workspace/competitive-programming/scripts/template.cpp ./%s.cpp" % (sys.argv[1])) os.system(command) os.system("vim %s.cpp" % sys.argv[1]) #os.system("mkdir test_cases && cd test_cases && touch in1.txt out1.txt")
37.571429
115
0.714829
70ffd3beeb40399cf810857d3f8ad106fa282fe7
23,085
py
Python
unit_tests/utilities/test_zaza_utilities_parallel_series_upgrade.py
nicholasnjihian/zaza-openstack-tests
59d5d24acf7e95ddcb18f224a975715e925a0109
[ "ECL-2.0", "Apache-2.0" ]
5
2019-08-09T02:39:12.000Z
2021-05-18T14:19:51.000Z
unit_tests/utilities/test_zaza_utilities_parallel_series_upgrade.py
nicholasnjihian/zaza-openstack-tests
59d5d24acf7e95ddcb18f224a975715e925a0109
[ "ECL-2.0", "Apache-2.0" ]
350
2019-05-13T10:28:33.000Z
2022-03-30T13:35:16.000Z
unit_tests/utilities/test_zaza_utilities_parallel_series_upgrade.py
nicholasnjihian/zaza-openstack-tests
59d5d24acf7e95ddcb18f224a975715e925a0109
[ "ECL-2.0", "Apache-2.0" ]
72
2019-04-18T06:05:01.000Z
2022-03-29T05:41:40.000Z
# Copyright 2020 Canonical Ltd. # # 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 writin...
39.327087
79
0.60927
d9ab475fe377136f0d553858a89d11a8bd4de9bf
551
py
Python
misc/serial_ports_info.py
kr-g/thonny
8aec29b6920482ba131bb03aab36ae2765e17d0d
[ "MIT" ]
null
null
null
misc/serial_ports_info.py
kr-g/thonny
8aec29b6920482ba131bb03aab36ae2765e17d0d
[ "MIT" ]
null
null
null
misc/serial_ports_info.py
kr-g/thonny
8aec29b6920482ba131bb03aab36ae2765e17d0d
[ "MIT" ]
null
null
null
import sys if sys.platform == "darwin": from adafruit_board_toolkit._list_ports_osx import comports elif sys.platform == "win32": from adafruit_board_toolkit._list_ports_windows import comports else: from serial.tools.list_ports import comports for p in comports(): #if "VID" in p.hwid: for key ...
34.4375
91
0.622505
11339e719f4a665f33d2c1f809c6b51fa1362ef5
14,651
py
Python
test/functional/wallet_address_types.py
sirgreyhat/verge
3181a2658e01d2d8dceed6f57dca356d94c92be1
[ "MIT" ]
1,787
2016-02-20T23:38:23.000Z
2020-02-11T14:10:01.000Z
test/functional/wallet_address_types.py
sirgreyhat/verge
3181a2658e01d2d8dceed6f57dca356d94c92be1
[ "MIT" ]
824
2016-03-09T22:08:06.000Z
2020-01-24T12:01:15.000Z
test/functional/wallet_address_types.py
sirgreyhat/verge
3181a2658e01d2d8dceed6f57dca356d94c92be1
[ "MIT" ]
577
2016-02-10T20:26:47.000Z
2020-01-13T09:22:44.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 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 that the wallet can send and receive using all combinations of address types. There are 5 nodes-under-...
49.16443
205
0.649853
a3b4f8f172845a0666f68f0999ec1a5ed6a33449
5,028
py
Python
survey/migrations/0001_initial.py
ShaonMahmood/SurveyApp
981513d30e14afe10623993532a6390e12a23f12
[ "MIT" ]
1
2021-11-06T23:57:43.000Z
2021-11-06T23:57:43.000Z
survey/migrations/0001_initial.py
ShaonMahmood/SurveyApp
981513d30e14afe10623993532a6390e12a23f12
[ "MIT" ]
null
null
null
survey/migrations/0001_initial.py
ShaonMahmood/SurveyApp
981513d30e14afe10623993532a6390e12a23f12
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-23 06:26 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('question', '0001_initial'), migrations.swappable_de...
68.876712
216
0.654535
0731d179f98800ffd22ef282d530d14a851151f5
46
py
Python
tgext/chameleon_genshi/__init__.py
TurboGears/tgext.chameleon_genshi
c6c223a353af0655512e693dcbfd8a717a36efeb
[ "MIT" ]
null
null
null
tgext/chameleon_genshi/__init__.py
TurboGears/tgext.chameleon_genshi
c6c223a353af0655512e693dcbfd8a717a36efeb
[ "MIT" ]
null
null
null
tgext/chameleon_genshi/__init__.py
TurboGears/tgext.chameleon_genshi
c6c223a353af0655512e693dcbfd8a717a36efeb
[ "MIT" ]
null
null
null
from .renderer import ChameleonGenshiRenderer
23
45
0.891304
60650a4df909c4cb08cec2b8d3754d711f708d9b
6,680
py
Python
grr/client/grr_response_client/streaming.py
billstackpole/grr
203a0a99990a2d4004aed84a5cd822cbda2b418c
[ "Apache-2.0" ]
1
2019-03-28T07:09:41.000Z
2019-03-28T07:09:41.000Z
grr/client/grr_response_client/streaming.py
gingogo/grr
203a0a99990a2d4004aed84a5cd822cbda2b418c
[ "Apache-2.0" ]
null
null
null
grr/client/grr_response_client/streaming.py
gingogo/grr
203a0a99990a2d4004aed84a5cd822cbda2b418c
[ "Apache-2.0" ]
1
2018-08-30T14:50:24.000Z
2018-08-30T14:50:24.000Z
#!/usr/bin/env python """Utility classes for streaming files and memory.""" import abc import os from future.utils import with_metaclass class Streamer(object): """An utility class for buffered processing. Input is divided into chunk objects that can be processed individually. If needed chunks returned by the...
29.043478
80
0.68503