hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7953ce9836a274d9c32140c193b43e238251adbf
31,921
py
Python
Incident-Response/Tools/dfirtrack/dfirtrack_artifacts/tests/artifact/test_artifact_exporter_spreadsheet_xls_views.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/dfirtrack/dfirtrack_artifacts/tests/artifact/test_artifact_exporter_spreadsheet_xls_views.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/dfirtrack/dfirtrack_artifacts/tests/artifact/test_artifact_exporter_spreadsheet_xls_views.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
from datetime import datetime from django.contrib.auth.models import User from django.test import TestCase from django.utils import timezone from dfirtrack_artifacts.exporter.spreadsheet.xls import artifact_cron from dfirtrack_artifacts.models import Artifact, Artifactstatus, Artifacttype from dfirtrack_config.models i...
61.268714
293
0.740986
7953ceede916ce16308fd64918d79c75fece3e0d
12,594
py
Python
python/tensorflow_sample/Ver2.x/06_optimizer/trainer/trainer.py
ryoma-jp/samples
85c0be62f9de1194121d225adee12c9810229960
[ "Apache-2.0" ]
null
null
null
python/tensorflow_sample/Ver2.x/06_optimizer/trainer/trainer.py
ryoma-jp/samples
85c0be62f9de1194121d225adee12c9810229960
[ "Apache-2.0" ]
null
null
null
python/tensorflow_sample/Ver2.x/06_optimizer/trainer/trainer.py
ryoma-jp/samples
85c0be62f9de1194121d225adee12c9810229960
[ "Apache-2.0" ]
null
null
null
#! -*- coding: utf-8 -*- #--------------------------------- # モジュールのインポート #--------------------------------- import os import numpy as np import pandas as pd import matplotlib.pyplot as plt import tensorflow as tf from tensorflow import keras from tensorflow.keras.preprocessing.image import ImageDataGenerator #-----...
33.584
114
0.662061
7953cf3df110a0380fd68c85de561c8dcf9092bd
3,845
py
Python
tordatahub/tests/blob/blob_topic_pub.py
jasonz93/python-tordatahub
3a9a497d5a0bebf915d7e24049dd8b06099e3c04
[ "Apache-2.0" ]
null
null
null
tordatahub/tests/blob/blob_topic_pub.py
jasonz93/python-tordatahub
3a9a497d5a0bebf915d7e24049dd8b06099e3c04
[ "Apache-2.0" ]
null
null
null
tordatahub/tests/blob/blob_topic_pub.py
jasonz93/python-tordatahub
3a9a497d5a0bebf915d7e24049dd8b06099e3c04
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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...
33.434783
96
0.650455
7953cf45598e56833d175d017d7466830cd8c281
8,472
py
Python
nova/api/openstack/compute/contrib/os_tenant_networks.py
TMaddox/nova
e5c169d15528a8e2eadb8eca668ea0d183cf8648
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/contrib/os_tenant_networks.py
TMaddox/nova
e5c169d15528a8e2eadb8eca668ea0d183cf8648
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/contrib/os_tenant_networks.py
TMaddox/nova
e5c169d15528a8e2eadb8eca668ea0d183cf8648
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 OpenStack Foundation # 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 requ...
37.157895
78
0.612016
7953cff5e22045880a88f583d63dfa688e8712e4
72,532
py
Python
graph_compression/compression_lib/compression_op.py
pervrosen/google-research
70e862c1463969f4e44f87f51e398a8b3aa48fd5
[ "Apache-2.0" ]
2
2021-09-04T09:08:38.000Z
2021-09-04T09:08:44.000Z
graph_compression/compression_lib/compression_op.py
xingyul/google-research
45eca1118642cc1257824856ac6e1ab0aa7bf299
[ "Apache-2.0" ]
null
null
null
graph_compression/compression_lib/compression_op.py
xingyul/google-research
45eca1118642cc1257824856ac6e1ab0aa7bf299
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
39.700055
90
0.671345
7953d0fc2ad622a50b15d569e46f56c509413ecb
6,783
py
Python
third_party/WebKit/Source/bindings/scripts/code_generator_web_module.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/bindings/scripts/code_generator_web_module.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/bindings/scripts/code_generator_web_module.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
# 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. # pylint: disable=import-error,print-statement,relative-import """Generates Blink Web Module bindings. The Blink Web Module bindings provide a stable, IDL-...
36.86413
80
0.701902
7953d23e9ee28c6540142bfe54dbf185ea6e76f6
12,890
py
Python
setup.py
Technologicat/orderfix
0235bec6bd4ad978356540d91878aed4a09826f6
[ "BSD-2-Clause" ]
null
null
null
setup.py
Technologicat/orderfix
0235bec6bd4ad978356540d91878aed4a09826f6
[ "BSD-2-Clause" ]
null
null
null
setup.py
Technologicat/orderfix
0235bec6bd4ad978356540d91878aed4a09826f6
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # """setuptools-based setup.py for orderfix. Supports Python 2.7 and 3.4. Usage as usual with setuptools: python setup.py build_ext python setup.py build python setup.py install python setup.py sdist For details, see http://setuptools.readthedocs.io/en/latest/setuptools.ht...
35.706371
141
0.647711
7953d2620d0c0f24e66264d86d5d612f57dd9825
2,297
py
Python
zerver/webhooks/travis/tests.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
2
2020-11-12T12:28:46.000Z
2020-11-16T11:17:46.000Z
zerver/webhooks/travis/tests.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
1
2021-08-05T14:46:02.000Z
2021-08-05T14:46:02.000Z
zerver/webhooks/travis/tests.py
TylerPham2000/zulip
2e7aaba0dde5517b4a55cb0bd782f009be45e3ba
[ "Apache-2.0" ]
1
2021-08-05T14:27:13.000Z
2021-08-05T14:27:13.000Z
import urllib from zerver.lib.test_classes import WebhookTestCase class TravisHookTests(WebhookTestCase): STREAM_NAME = "travis" URL_TEMPLATE = "/api/v1/external/travis?stream={stream}&api_key={api_key}" FIXTURE_DIR_NAME = "travis" TOPIC = "builds" def test_travis_message(self) -> None: ...
35.890625
92
0.626905
7953d269697a37a2692729c2c5d831ecc69509fe
187
py
Python
Basics of Classes 3.py
soer7022/hacktoberfest
e7c636bead5309f1e959decce99e745b37735ccd
[ "MIT" ]
null
null
null
Basics of Classes 3.py
soer7022/hacktoberfest
e7c636bead5309f1e959decce99e745b37735ccd
[ "MIT" ]
2
2020-10-13T15:11:57.000Z
2020-10-13T15:15:01.000Z
Basics of Classes 3.py
soer7022/hacktoberfest
e7c636bead5309f1e959decce99e745b37735ccd
[ "MIT" ]
11
2020-10-06T07:25:06.000Z
2020-10-25T23:03:38.000Z
class New: def __init__(self, x,y): self.x= x self.new= y def tr(self): print(f'hii{self.new}') point = New(9,10) print(point.new) point.tr()
15.583333
32
0.508021
7953d32ac520a141741a809a8c62a773be35a056
2,276
py
Python
protopype/find_similar_images.py
sumeetkr/ClusteringSimilarImages
53689a3c23361c73dde17ca61c21c6aaa37036c0
[ "Apache-2.0" ]
null
null
null
protopype/find_similar_images.py
sumeetkr/ClusteringSimilarImages
53689a3c23361c73dde17ca61c21c6aaa37036c0
[ "Apache-2.0" ]
null
null
null
protopype/find_similar_images.py
sumeetkr/ClusteringSimilarImages
53689a3c23361c73dde17ca61c21c6aaa37036c0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import (absolute_import, division, print_function) from PIL import Image import six import imagehash """ Demo of hashing """ def find_similar_images(userpaths, hashfunc = imagehash.average_hash): print('finding similar images') import os def is_image(filename): ...
29.179487
108
0.614675
7953d4a4609ee610be6b513c08a2b2fff3c93a25
13,202
py
Python
tests/test_simple.py
JoostvDoorn/pywren
04ded2c2c90ad72dfb40a1ade6def5a2be403f3a
[ "Apache-2.0" ]
630
2017-02-24T17:15:05.000Z
2022-03-29T23:27:06.000Z
tests/test_simple.py
Scusemua/pywren
57f8ac9d988fea60df9510fc80c0e44d037d0e8c
[ "Apache-2.0" ]
234
2017-02-24T02:56:58.000Z
2022-03-06T21:17:13.000Z
tests/test_simple.py
Scusemua/pywren
57f8ac9d988fea60df9510fc80c0e44d037d0e8c
[ "Apache-2.0" ]
96
2017-02-25T02:17:10.000Z
2022-03-16T04:30:52.000Z
# # Copyright 2018 PyWren Team # # 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...
26.887984
100
0.58726
7953d4e52373eedae4c939dfa3bc4df196476455
13,525
py
Python
pypy/module/_io/test/test_io.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
pypy/module/_io/test/test_io.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
pypy/module/_io/test/test_io.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
30
2018-08-20T03:16:34.000Z
2022-01-12T17:39:22.000Z
from __future__ import with_statement from rpython.tool.udir import udir class AppTestIoModule: spaceconfig = dict(usemodules=['_io']) def test_import(self): import io def test_iobase(self): import io io.IOBase() class MyFile(io.BufferedIOBase): def __init__...
30.257271
78
0.478447
7953d52c80347444ecae94c7d8ec4726bcb1dcbb
10,156
py
Python
tensorlayer/layers/normalization.py
awesome-archive/tensorlayer
120a79f957926475b6f3db02da71a269f8130771
[ "Apache-2.0" ]
null
null
null
tensorlayer/layers/normalization.py
awesome-archive/tensorlayer
120a79f957926475b6f3db02da71a269f8130771
[ "Apache-2.0" ]
null
null
null
tensorlayer/layers/normalization.py
awesome-archive/tensorlayer
120a79f957926475b6f3db02da71a269f8130771
[ "Apache-2.0" ]
1
2018-03-12T23:57:57.000Z
2018-03-12T23:57:57.000Z
# -*- coding: utf-8 -*- from .core import * class LocalResponseNormLayer(Layer): """The :class:`LocalResponseNormLayer` layer is for Local Response Normalization. See ``tf.nn.local_response_normalization`` or ``tf.nn.lrn`` for new TF version. The 4-D input tensor is a 3-D array of 1-D vectors (along the ...
38.037453
177
0.604766
7953d5fe533f17e515b79510955f8974d000fbae
12,783
py
Python
doc/user-manual/conf.py
Blaisorblade/Agda
802a28aa8374f15fe9d011ceb80317fdb1ec0949
[ "BSD-3-Clause" ]
3
2015-03-28T14:51:03.000Z
2015-12-07T20:14:00.000Z
doc/user-manual/conf.py
Blaisorblade/Agda
802a28aa8374f15fe9d011ceb80317fdb1ec0949
[ "BSD-3-Clause" ]
null
null
null
doc/user-manual/conf.py
Blaisorblade/Agda
802a28aa8374f15fe9d011ceb80317fdb1ec0949
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Agda documentation build configuration file, created by # sphinx-quickstart on Sun Jun 5 20:41:51 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All ...
28.790541
534
0.704451
7953d615d03fc3f6770a98ca34b2919aeaf97037
2,606
py
Python
tests/download_test_images.py
imi-bigpicture/opentile
1a84284c5bc2c3515e14d5345b6077842897b547
[ "Apache-2.0" ]
4
2021-12-02T17:19:10.000Z
2022-02-02T16:35:48.000Z
tests/download_test_images.py
sectra-medical/opentile
1a84284c5bc2c3515e14d5345b6077842897b547
[ "Apache-2.0" ]
6
2021-12-02T13:22:04.000Z
2022-03-09T14:01:19.000Z
tests/download_test_images.py
sectra-medical/opentile
1a84284c5bc2c3515e14d5345b6077842897b547
[ "Apache-2.0" ]
4
2022-02-04T08:24:20.000Z
2022-02-16T12:39:39.000Z
# Copyright 2022 SECTRA AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
38.323529
90
0.670376
7953d6327cf2a8243ca7efa2bc44a3dab3826773
4,516
py
Python
config/settings/production.py
DustinHolden/challenge
7c62acb965600a9532aef35eb02545872cf39cc7
[ "MIT" ]
null
null
null
config/settings/production.py
DustinHolden/challenge
7c62acb965600a9532aef35eb02545872cf39cc7
[ "MIT" ]
null
null
null
config/settings/production.py
DustinHolden/challenge
7c62acb965600a9532aef35eb02545872cf39cc7
[ "MIT" ]
null
null
null
from .common import * # noqa from .common import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env('DJANGO_SECRET_KEY') # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts ALL...
37.016393
87
0.579717
7953d650636be17aec36a20133846faec5f03c89
67,029
py
Python
venv/lib/python3.8/site-packages/pandas/tests/dtypes/test_inference.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
3
2018-04-24T13:31:51.000Z
2019-07-09T07:31:43.000Z
venv/lib/python3.8/site-packages/pandas/tests/dtypes/test_inference.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
5
2022-02-13T14:38:04.000Z
2022-02-15T00:13:07.000Z
venv/lib/python3.8/site-packages/pandas/tests/dtypes/test_inference.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
5
2018-04-24T13:31:56.000Z
2021-10-21T05:06:23.000Z
""" These the test the public routines exposed in types/common.py related to inference and not otherwise tested in types/test_common.py """ import collections from collections import namedtuple from datetime import ( date, datetime, time, timedelta, ) from decimal import Decimal from fractions import F...
34.285934
88
0.597458
7953d6718675c6416d04d20c4ccca1176e1469c7
9,488
py
Python
tds/commands/application.py
minddrive/tds
573836434c76603fdd3dd9e07545b48f86e5f70f
[ "Apache-2.0" ]
1
2020-01-02T13:44:23.000Z
2020-01-02T13:44:23.000Z
tds/commands/application.py
minddrive/tds
573836434c76603fdd3dd9e07545b48f86e5f70f
[ "Apache-2.0" ]
1
2016-08-16T18:35:51.000Z
2016-08-16T18:35:51.000Z
tds/commands/application.py
minddrive/tds
573836434c76603fdd3dd9e07545b48f86e5f70f
[ "Apache-2.0" ]
1
2016-08-02T06:06:35.000Z
2016-08-02T06:06:35.000Z
# Copyright 2016 Ifwe 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, so...
34.129496
78
0.574304
7953d6cc35a9f40a4fb409038ff1830710cfd387
3,424
py
Python
code/data_process.py
IBM/answer-type-prediction
5818237ed9f0f5de6f8b8de8f16ef7efabbf414b
[ "Apache-2.0" ]
null
null
null
code/data_process.py
IBM/answer-type-prediction
5818237ed9f0f5de6f8b8de8f16ef7efabbf414b
[ "Apache-2.0" ]
null
null
null
code/data_process.py
IBM/answer-type-prediction
5818237ed9f0f5de6f8b8de8f16ef7efabbf414b
[ "Apache-2.0" ]
null
null
null
import torch from torch.utils.data import TensorDataset import utils def get_context_representation( text, tokenizer, max_seq_length, ): context_tokens = tokenizer.tokenize(text) context_ids = tokenizer.convert_tokens_to_ids(context_tokens) context_ids = context_ids[:(max_seq_len...
34.24
132
0.710864
7953d72c3698648f598a58f2c9f5a8f0542f0017
25,500
py
Python
tasks-deploy/patched-python/check.py
HackerDom/qctf-starter-2018
f4eef0fd41d777661b9fbcc61dcee9709d9f6268
[ "MIT" ]
8
2018-03-15T12:07:11.000Z
2020-12-01T15:02:46.000Z
tasks-deploy/patched-python/check.py
HackerDom/qctf-starter-2018
f4eef0fd41d777661b9fbcc61dcee9709d9f6268
[ "MIT" ]
17
2020-01-28T22:17:42.000Z
2022-03-11T23:18:09.000Z
tasks-deploy/patched-python/check.py
HackerDom/qctf-starter-2018
f4eef0fd41d777661b9fbcc61dcee9709d9f6268
[ "MIT" ]
2
2018-11-26T18:54:27.000Z
2018-12-05T17:37:32.000Z
flags = ['QCTF{1379bae3fba0b9b5279f09d3f6191b98}', 'QCTF{789d8f8ccbbabc0931c867d14e550a77}', 'QCTF{cfec60d2c289a4d100a9c375697a3498}', 'QCTF{caf1209affb7e796868211e18021f434}', 'QCTF{d44770ff79bcdb4abfabbc1b4eb5c8df}', 'QCTF{d385a633a8b527f95d2efeb49fabfdc7}', 'QCTF{4e1e9a31a860c496f037f19a45805ccc}', 'QCTF{b12cc106e92...
2,550
25,172
0.855451
7953d84948d39036b6961c0fed856a5f8a858400
180
py
Python
array/sorted_array_squares.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
array/sorted_array_squares.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
array/sorted_array_squares.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
def sorted_squares(nums): squares = [num ** 2 for num in nums] return sorted(squares) print(sorted_squares([-4, -1, 0, 3, 10])) print(sorted_squares([-7, -3, 2, 3, 11]))
22.5
41
0.627778
7953d87d0c3f4d8a9f273f5aced368b3f4892d07
436
py
Python
phdhelper/helpers/os_shortcuts.py
jmsplank/phdhelper
c06dd06669b42dbe4c9e1a6eeec3d0ad3885d2eb
[ "MIT" ]
null
null
null
phdhelper/helpers/os_shortcuts.py
jmsplank/phdhelper
c06dd06669b42dbe4c9e1a6eeec3d0ad3885d2eb
[ "MIT" ]
null
null
null
phdhelper/helpers/os_shortcuts.py
jmsplank/phdhelper
c06dd06669b42dbe4c9e1a6eeec3d0ad3885d2eb
[ "MIT" ]
null
null
null
import os def get_path(file, level="."): path = os.path.dirname(os.path.realpath(file)) levels = level.count(".") if levels > 1: for l in range(levels - 1): path = "/".join(path.split("/")[:-1]) return path def new_path(path, extension=""): def f(filename): # return p...
22.947368
79
0.548165
7953d98bcbb826267fa21f6503e55049c8aff5ba
118,515
py
Python
python/paddle/fluid/framework.py
ShinanWu/Paddle
0d276d38b456b7e77cd69903939edb63cc34f73c
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/framework.py
ShinanWu/Paddle
0d276d38b456b7e77cd69903939edb63cc34f73c
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/framework.py
ShinanWu/Paddle
0d276d38b456b7e77cd69903939edb63cc34f73c
[ "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...
33.403326
105
0.570873
7953da544c8b6874d3e06132ce1376c43e0b3d6d
6,486
py
Python
dali/test/python/test_operator_readers_index.py
Riyria-was-taken/DALI
35360cf0986957f9c6d93ed54be221628d99ad0c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/test/python/test_operator_readers_index.py
Riyria-was-taken/DALI
35360cf0986957f9c6d93ed54be221628d99ad0c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/test/python/test_operator_readers_index.py
Riyria-was-taken/DALI
35360cf0986957f9c6d93ed54be221628d99ad0c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
43.530201
124
0.660191
7953dabebfd901f3435d828c32297755a5df7147
3,994
py
Python
lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_set_command/TestWatchLocationWithWatchSet.py
azharudd/llvm-project
2fe2a3f923125e4c86bc5d140f327b5904a5bc97
[ "Apache-2.0" ]
1
2022-03-28T05:58:03.000Z
2022-03-28T05:58:03.000Z
lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_set_command/TestWatchLocationWithWatchSet.py
DougGregor/llvm-project
97602a8bd045f087e02348b64ffbdd143a33e10b
[ "Apache-2.0" ]
null
null
null
lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_set_command/TestWatchLocationWithWatchSet.py
DougGregor/llvm-project
97602a8bd045f087e02348b64ffbdd143a33e10b
[ "Apache-2.0" ]
null
null
null
""" Test lldb watchpoint that uses 'watchpoint set -w write -s size' to watch a pointed location with size. """ from __future__ import print_function import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class WatchLocationUsingWatchpointSetTe...
38.403846
103
0.611167
7953db83938c77357a9c86dfe01eb506d3edd338
677
py
Python
queuedownloader/services/youtube.py
RevolutionsDev/queuedownloader
cf93c26b82357ae02d452cb2a3396d27a9db8c42
[ "MIT" ]
null
null
null
queuedownloader/services/youtube.py
RevolutionsDev/queuedownloader
cf93c26b82357ae02d452cb2a3396d27a9db8c42
[ "MIT" ]
null
null
null
queuedownloader/services/youtube.py
RevolutionsDev/queuedownloader
cf93c26b82357ae02d452cb2a3396d27a9db8c42
[ "MIT" ]
null
null
null
from ._base import DownloaderService from youtube_dl import YoutubeDL class YouTubeService(DownloaderService): name = "YouTubeService" def __init__(self, *args, **kwargs): super(YouTubeService, self).__init__(*args, **kwargs) self.subtitles = kwargs.get("subtitles", True) ...
32.238095
94
0.604136
7953db8df50b416fd18c4267d002220eebae40cb
14,697
py
Python
nas_gcn/analysis/analysis_utils.py
deephyper/nas-gcn
7faa66e9f4ec1f990a5ccdcfe0dd5255d4475b6f
[ "BSD-2-Clause" ]
null
null
null
nas_gcn/analysis/analysis_utils.py
deephyper/nas-gcn
7faa66e9f4ec1f990a5ccdcfe0dd5255d4475b6f
[ "BSD-2-Clause" ]
null
null
null
nas_gcn/analysis/analysis_utils.py
deephyper/nas-gcn
7faa66e9f4ec1f990a5ccdcfe0dd5255d4475b6f
[ "BSD-2-Clause" ]
null
null
null
import json import pickle import glob import numpy as np import pandas as pd from tabulate import tabulate from datetime import datetime from sklearn.metrics import mean_absolute_error, mean_squared_error, r2_score import matplotlib.pyplot as plt from sklearn.ensemble import RandomForestRegressor from sklearn.preproces...
39.087766
118
0.578758
7953dc178fe088c3778dc1f32c2475638aa9371d
3,341
py
Python
Dashboard/account/migrations/0001_initial.py
Dheerajdoppalapudi/DashBoard-BackEnd
67fdffcd8d2236cb7032588157f1f482bef1704c
[ "Apache-2.0" ]
null
null
null
Dashboard/account/migrations/0001_initial.py
Dheerajdoppalapudi/DashBoard-BackEnd
67fdffcd8d2236cb7032588157f1f482bef1704c
[ "Apache-2.0" ]
25
2022-01-07T09:04:19.000Z
2022-02-27T17:51:16.000Z
Dashboard/account/migrations/0001_initial.py
Dheerajdoppalapudi/DashBoard-BackEnd
67fdffcd8d2236cb7032588157f1f482bef1704c
[ "Apache-2.0" ]
2
2022-01-07T09:11:18.000Z
2022-01-11T06:07:17.000Z
# Generated by Django 3.2.8 on 2022-02-05 17:53 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
41.7625
121
0.414247
7953dcdf5d329cbe2d8afb091e97c5e334913c2b
6,242
py
Python
tests/ci/fast_test_check.py
stdpain/ClickHouse
7699d3f35e8d51d0c7bac39fc14469baeea928cd
[ "Apache-2.0" ]
null
null
null
tests/ci/fast_test_check.py
stdpain/ClickHouse
7699d3f35e8d51d0c7bac39fc14469baeea928cd
[ "Apache-2.0" ]
null
null
null
tests/ci/fast_test_check.py
stdpain/ClickHouse
7699d3f35e8d51d0c7bac39fc14469baeea928cd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import logging import subprocess import os import csv import sys from github import Github from pr_info import PRInfo, get_event from s3_helper import S3Helper from get_robot_token import get_best_robot_token from upload_result_helper import upload_results from docker_pull_helper import get_ima...
40.012821
160
0.714354
7953ddc681294c6458bf383284943581703fb418
610
py
Python
jsngram/users/admin.py
jjh0106/jsngram
74f2fd79ddd6a6975d3c981ca9cb5bbed050f532
[ "MIT" ]
null
null
null
jsngram/users/admin.py
jjh0106/jsngram
74f2fd79ddd6a6975d3c981ca9cb5bbed050f532
[ "MIT" ]
11
2020-06-05T20:06:56.000Z
2022-02-17T20:23:22.000Z
jsngram/users/admin.py
jjh0106/jsngram
74f2fd79ddd6a6975d3c981ca9cb5bbed050f532
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from jsngram.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class UserAdmin(auth_admin.UserAdmin): form = UserChangeForm add...
30.5
118
0.718033
7953de15d837ee9d94c324f5ebb4d147cc0bd346
122,627
py
Python
numpy/lib/tests/test_function_base.py
bdvd/numpy
cea994fac86dbc5af7bee3f15fc5b475a99163fa
[ "BSD-3-Clause" ]
1
2020-12-07T17:25:19.000Z
2020-12-07T17:25:19.000Z
numpy/lib/tests/test_function_base.py
sahanabalappa/numpy
cea994fac86dbc5af7bee3f15fc5b475a99163fa
[ "BSD-3-Clause" ]
20
2020-02-14T11:37:52.000Z
2020-02-18T21:18:45.000Z
numpy/lib/tests/test_function_base.py
sahanabalappa/numpy
cea994fac86dbc5af7bee3f15fc5b475a99163fa
[ "BSD-3-Clause" ]
null
null
null
import operator import warnings import sys import decimal from fractions import Fraction import pytest import numpy as np from numpy import ma from numpy.testing import ( assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_raises, assert_allclose, IS_PYPY, asse...
37.295316
102
0.523115
7953de221e02bf9fa1a466555a945a2263e32b34
8,965
py
Python
suunto_exercise_data.py
Snijderfrey/suunto2python
704bc046221d6809dc3bdd2118b34927a192600f
[ "MIT" ]
7
2020-09-10T06:41:24.000Z
2022-01-15T22:25:53.000Z
suunto_exercise_data.py
Snijderfrey/suunto2python
704bc046221d6809dc3bdd2118b34927a192600f
[ "MIT" ]
null
null
null
suunto_exercise_data.py
Snijderfrey/suunto2python
704bc046221d6809dc3bdd2118b34927a192600f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json import zipfile import glob import numpy as np import pandas as pd from tqdm import tqdm class exercise_data: """ Imports data recorded by a Suunto Ambit 3 Peak into a Pandas DataFrame. Currently, the data is imported best from the zip file found...
41.123853
93
0.565533
7953de8d729715e06067b76f035c0d56660d53cb
2,125
py
Python
contrib/runners/noop_runner/noop_runner/noop_runner.py
nickbaum/st2
21c01c7c8c0f511ee75e3b2a3a03502472281058
[ "Apache-2.0" ]
1
2020-11-09T21:05:33.000Z
2020-11-09T21:05:33.000Z
contrib/runners/noop_runner/noop_runner/noop_runner.py
ellerbrock/st2
b3a0d9f82053c1fd5adb616dc8331bad427cd11f
[ "Apache-2.0" ]
3
2021-03-26T00:29:52.000Z
2021-03-26T00:34:45.000Z
contrib/runners/noop_runner/noop_runner/noop_runner.py
ellerbrock/st2
b3a0d9f82053c1fd5adb616dc8331bad427cd11f
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
30.797101
87
0.716235
7953de9ad5ee488b2fa6d14acdc5b5ba07fc7c1a
4,772
py
Python
src/offline_RL/dcql_roundabout.py
hougiebear/Deepdrive-Autonomous-Vehicles
6b952c9e5d01893dc4319bbd74b9fa951719fcf9
[ "MIT" ]
1
2021-12-27T02:22:27.000Z
2021-12-27T02:22:27.000Z
src/offline_RL/dcql_roundabout.py
hougiebear/Deepdrive-Autonomous-Vehicles
6b952c9e5d01893dc4319bbd74b9fa951719fcf9
[ "MIT" ]
null
null
null
src/offline_RL/dcql_roundabout.py
hougiebear/Deepdrive-Autonomous-Vehicles
6b952c9e5d01893dc4319bbd74b9fa951719fcf9
[ "MIT" ]
null
null
null
import gym import highway_env import numpy as np import gym from d3rlpy.algos import DQN from d3rlpy.online.buffers import ReplayBuffer from d3rlpy.online.explorers import LinearDecayEpsilonGreedy import d3rlpy from d3rlpy.wrappers.sb3 import to_mdp_dataset import torch.nn as nn import torch from d3rlpy.algos import D...
33.370629
100
0.654443
7953deafebb2b13f637d904391c56571e300e640
7,345
py
Python
src/utils/train_utils.py
sniafas/photography-style-analysis
b5d828055cf40b127ac69e86af173a77bada3b32
[ "Apache-2.0" ]
3
2022-01-03T17:57:32.000Z
2022-02-10T12:32:58.000Z
src/utils/train_utils.py
sniafas/photography-style-analysis
b5d828055cf40b127ac69e86af173a77bada3b32
[ "Apache-2.0" ]
null
null
null
src/utils/train_utils.py
sniafas/photography-style-analysis
b5d828055cf40b127ac69e86af173a77bada3b32
[ "Apache-2.0" ]
null
null
null
import json import numpy as np import pandas as pd import tensorflow as tf import importlib import datetime import tensorflow_addons as tfa from tensorflow.keras.losses import CategoricalCrossentropy from tensorflow.keras.metrics import CategoricalAccuracy, Mean, Precision, Recall, AUC import matplotlib.pyplot as plt...
29.38
86
0.661675
7953dfc6118a4604304384d8c4b0110cf6fb3d0b
2,749
py
Python
_build/jupyter_execute/Module3/quiz3.py
liuzhengqi1996/math452_Spring2022
b01d1d9bee4778b3069e314c775a54f16dd44053
[ "MIT" ]
null
null
null
_build/jupyter_execute/Module3/quiz3.py
liuzhengqi1996/math452_Spring2022
b01d1d9bee4778b3069e314c775a54f16dd44053
[ "MIT" ]
null
null
null
_build/jupyter_execute/Module3/quiz3.py
liuzhengqi1996/math452_Spring2022
b01d1d9bee4778b3069e314c775a54f16dd44053
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Quiz 3 # For Penn State student, access quiz [here](https://psu.instructure.com/courses/2177217) # In[1]: import ipywidgets as widgets # ## Question 1 # Is $f(x)=e^x$  a convex function?  # ```{dropdown} Show answer # Answer: Yes # ``` # ## Question 2 # Consider the uni...
17.074534
137
0.582757
7953dfe73af24a3990b3c7bdab2e6a272012b368
6,208
py
Python
training/cb_vae.py
aseembits93/avoiding-side-effects
f6cbe803749df93c07cdd0a8dbc68d18bb8c11b2
[ "Apache-2.0" ]
8
2020-11-22T15:34:35.000Z
2022-02-24T10:05:32.000Z
training/cb_vae.py
neale/avoiding-side-effects
72ebc8ce5d66c846780aa9e710ae56ff12bd23af
[ "Apache-2.0" ]
null
null
null
training/cb_vae.py
neale/avoiding-side-effects
72ebc8ce5d66c846780aa9e710ae56ff12bd23af
[ "Apache-2.0" ]
1
2022-02-24T10:05:47.000Z
2022-02-24T10:05:47.000Z
############################################################################### # CB-VAE code adapted from https://github.com/Robert-Aduviri/Continuous-Bernoulli-VAE ############################################################################### #MIT License #Copyright (c) 2019 Robert Aduviri #Permission is hereby...
37.39759
108
0.617429
7953e077c12a5d8de475c3816a171cb9e69431d8
8,854
py
Python
src/bio2bel_kegg/client.py
jmarinllao/kegg
321a1a5157f66922d84e8f8dce11f105c6fd52a7
[ "MIT" ]
null
null
null
src/bio2bel_kegg/client.py
jmarinllao/kegg
321a1a5157f66922d84e8f8dce11f105c6fd52a7
[ "MIT" ]
null
null
null
src/bio2bel_kegg/client.py
jmarinllao/kegg
321a1a5157f66922d84e8f8dce11f105c6fd52a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module parsers the description files -> http://rest.kegg.jp/get/ in KEGG RESTful API.""" import itertools as itt import logging import os from multiprocessing.pool import ThreadPool from operator import itemgetter from typing import Any, Collection, Iterable, List, Mapping, Optional, T...
36.138776
109
0.563022
7953e1665e649283a433665f96f6d869a9e0211f
5,214
py
Python
tests/measurement/editors/test_sequence_editor.py
rassouly/exopy_pulses
bf71a3899c9b04434ee928ede08a21a0dd62f0a5
[ "BSD-3-Clause" ]
null
null
null
tests/measurement/editors/test_sequence_editor.py
rassouly/exopy_pulses
bf71a3899c9b04434ee928ede08a21a0dd62f0a5
[ "BSD-3-Clause" ]
null
null
null
tests/measurement/editors/test_sequence_editor.py
rassouly/exopy_pulses
bf71a3899c9b04434ee928ede08a21a0dd62f0a5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2015-2018 by ExopyPulses Authors, see AUTHORS for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # ---------...
32.792453
79
0.654392
7953e26750be7e9bc6b941552f7cfa1196d359bf
3,044
py
Python
stanCode_projects/anagram/anagram.py
lindcrj/stanCode_projects
2ce2f7b51fb1e6940ab2b62b05edccfef66739b4
[ "MIT" ]
null
null
null
stanCode_projects/anagram/anagram.py
lindcrj/stanCode_projects
2ce2f7b51fb1e6940ab2b62b05edccfef66739b4
[ "MIT" ]
null
null
null
stanCode_projects/anagram/anagram.py
lindcrj/stanCode_projects
2ce2f7b51fb1e6940ab2b62b05edccfef66739b4
[ "MIT" ]
null
null
null
""" File: anagram.py Name: ---------------------------------- This program recursively finds all the anagram(s) for the word input by user and terminates when the input string matches the EXIT constant defined at line 19 If you correctly implement this program, you should see the number of anagrams for each word liste...
24.747967
93
0.486859
7953e2c043c82a67cfdc084b9a81de2bc3b5121b
10,019
py
Python
FacebookPostsScraper.py
hackingbutlegal/FacebookPostsScraper
aa873eb97f7b1ad00ca0dbb4da1d63f38bcbbdb9
[ "MIT" ]
73
2020-05-14T04:12:06.000Z
2021-09-02T14:36:20.000Z
FacebookPostsScraper.py
hackingbutlegal/FacebookPostsScraper
aa873eb97f7b1ad00ca0dbb4da1d63f38bcbbdb9
[ "MIT" ]
20
2020-06-08T10:19:18.000Z
2021-04-29T21:22:27.000Z
FacebookPostsScraper.py
hackingbutlegal/FacebookPostsScraper
aa873eb97f7b1ad00ca0dbb4da1d63f38bcbbdb9
[ "MIT" ]
40
2020-05-14T04:11:56.000Z
2021-08-21T04:32:35.000Z
import requests from bs4 import BeautifulSoup import pickle import os from urllib.parse import urlparse, unquote from urllib.parse import parse_qs import pandas as pd import json class FacebookPostsScraper: # We need the email and password to access Facebook, and optionally the text in the Url that identifies th...
40.236948
151
0.566524
7953e2dc552b67874fc880f5bf9399057ead3146
6,270
py
Python
sgespawner/spawner.py
willfurnass/sgespawner
b294c6194c511bdbc870e13c377ffb3233e3f406
[ "BSD-2-Clause" ]
1
2019-04-24T14:35:02.000Z
2019-04-24T14:35:02.000Z
sgespawner/spawner.py
willfurnass/sgespawner
b294c6194c511bdbc870e13c377ffb3233e3f406
[ "BSD-2-Clause" ]
7
2017-05-08T14:12:36.000Z
2020-01-14T16:36:07.000Z
sgespawner/spawner.py
willfurnass/sgespawner
b294c6194c511bdbc870e13c377ffb3233e3f406
[ "BSD-2-Clause" ]
null
null
null
from subprocess import Popen, PIPE, STDOUT, run import jinja2 from defusedxml import ElementTree as ET from jupyterhub.utils import random_port from jupyterhub.spawner import Spawner from tornado import gen from traitlets import List, Unicode __all__ = ['SGESpawner'] class SGESpawner(Spawner): sge_template = ...
34.450549
84
0.572249
7953e33b03cf8d39cf9a5ab477477544cb178be4
12,160
py
Python
qa/complete_moderated_with_timeout.py
anchaj/openbazaar-go
ce88cba2f1ee2edec356f908cc4acbbf28c9a3de
[ "MIT" ]
2
2019-08-04T01:15:39.000Z
2019-10-30T23:08:37.000Z
qa/complete_moderated_with_timeout.py
anchaj/openbazaar-go
ce88cba2f1ee2edec356f908cc4acbbf28c9a3de
[ "MIT" ]
24
2017-12-08T22:34:36.000Z
2019-08-16T14:29:57.000Z
qa/complete_moderated_with_timeout.py
anchaj/openbazaar-go
ce88cba2f1ee2edec356f908cc4acbbf28c9a3de
[ "MIT" ]
12
2017-12-07T05:41:55.000Z
2018-12-18T12:00:26.000Z
import requests import json import time from collections import OrderedDict from test_framework.test_framework import OpenBazaarTestFramework, TestFailure class CompleteModeratedWithTimeout(OpenBazaarTestFramework): def __init__(self): super().__init__() self.num_nodes = 4 def run_test(self)...
48.253968
121
0.639967
7953e4f271e97bda7fd65bd269537afd0d10ab45
726
py
Python
code/obtuse_angled_triangles/sol_210.py
bhavinjawade/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
2
2020-07-16T08:16:32.000Z
2020-10-01T07:16:48.000Z
code/obtuse_angled_triangles/sol_210.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
null
null
null
code/obtuse_angled_triangles/sol_210.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
1
2021-05-07T18:06:08.000Z
2021-05-07T18:06:08.000Z
# -*- coding: utf-8 -*- ''' File name: code\obtuse_angled_triangles\sol_210.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #210 :: Obtuse Angled Triangles # # For more information see: # https://projecteuler.net/problem=210 # Problem St...
24.2
136
0.663912
7953e624e2d9ef81b41d2faeb390839cecb77735
3,280
py
Python
src/AoC_2016/d16_dragon_checksum/dragon_checksum.py
derailed-dash/Advent-of-Code
12378baf33ef4a59958e84eb60e795b6530c22ba
[ "MIT" ]
9
2021-12-31T20:13:03.000Z
2022-03-05T07:05:06.000Z
src/AoC_2016/d16_dragon_checksum/dragon_checksum.py
derailed-dash/Advent-of-Code
12378baf33ef4a59958e84eb60e795b6530c22ba
[ "MIT" ]
1
2022-01-25T08:35:04.000Z
2022-01-29T00:07:00.000Z
src/AoC_2016/d16_dragon_checksum/dragon_checksum.py
derailed-dash/Advent-of-Code
12378baf33ef4a59958e84eb60e795b6530c22ba
[ "MIT" ]
null
null
null
""" Author: Darren Date: 07/08/2021 Solving https://adventofcode.com/2016/day/16 Part 1: So trivial, doesn't really require explaining. Part 2: Same as part 1, but with a much longer target. No changes required. """ import logging import os import time SCRIPT_DIR = os.path.dirname(__file__) INPUT_FILE...
32.8
113
0.664939
7953e632472f52f8038aef97305b6c4d9b0596c1
4,701
py
Python
ontask/settings.py
LucasFranciscoCorreia/ontask_b
5473e9faa24c71a2a1102d47ebc2cbf27608e42a
[ "MIT" ]
null
null
null
ontask/settings.py
LucasFranciscoCorreia/ontask_b
5473e9faa24c71a2a1102d47ebc2cbf27608e42a
[ "MIT" ]
null
null
null
ontask/settings.py
LucasFranciscoCorreia/ontask_b
5473e9faa24c71a2a1102d47ebc2cbf27608e42a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Action configuration options.""" import os import sys from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ ############ # # NOTIFICATION EMAILS # ############ NOTIFICATION_TEMPLATE = getattr( settings, 'EMAIL_ACTION_...
27.982143
79
0.549458
7953e7b0a79fdeb43241ffa0ff1fe16376b25f8e
4,062
py
Python
digits/download_data/mnist.py
ojmakhura/DIGITS
f34e62c245054b51ea51fcb8949d2ca777f162d1
[ "BSD-3-Clause" ]
null
null
null
digits/download_data/mnist.py
ojmakhura/DIGITS
f34e62c245054b51ea51fcb8949d2ca777f162d1
[ "BSD-3-Clause" ]
null
null
null
digits/download_data/mnist.py
ojmakhura/DIGITS
f34e62c245054b51ea51fcb8949d2ca777f162d1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. import gzip import os import struct import numpy as np import PIL.Image from .downloader import DataDownloader class MnistDownloader(DataDownloader): """ See details about the MNIST dataset here: http://yann.lecun.com/exdb/mnist/ ...
40.217822
92
0.573363
7953e831915c6628cb019c3adbc19ade324a7de9
1,247
py
Python
100-200q/116.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
990
2018-06-05T11:49:22.000Z
2022-03-31T08:59:17.000Z
100-200q/116.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
1
2021-11-01T01:29:38.000Z
2021-11-01T01:29:38.000Z
100-200q/116.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
482
2018-06-12T22:16:53.000Z
2022-03-29T00:23:29.000Z
''' Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL. Initially, all next pointers are set to NULL Example: Given ...
21.5
132
0.575782
7953eacf220d07c08b680d83faf5dbad33525914
15,567
py
Python
jobs/signing/sign-rhacs/umb_producer.py
brenton/aos-cd-jobs
34e427bb7091c52791bc93a34f062e57dc005082
[ "Apache-2.0" ]
null
null
null
jobs/signing/sign-rhacs/umb_producer.py
brenton/aos-cd-jobs
34e427bb7091c52791bc93a34f062e57dc005082
[ "Apache-2.0" ]
null
null
null
jobs/signing/sign-rhacs/umb_producer.py
brenton/aos-cd-jobs
34e427bb7091c52791bc93a34f062e57dc005082
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 import base64 import json import logging import ssl import subprocess import sys import threading import click import requests from rhmsg.activemq.producer import AMQProducer from rhmsg.activemq.consumer import AMQConsumer # Expose errors during signing for debugging logging.basicConfig(stream...
37.783981
144
0.638081
7953eba9ff2847006316ca6e24ffcaec01e2f39c
304
py
Python
LeetCode/5413.py
LauZyHou/-
66c047fe68409c73a077eae561cf82b081cf8e45
[ "MIT" ]
7
2019-02-25T13:15:00.000Z
2021-12-21T22:08:39.000Z
LeetCode/5413.py
LauZyHou/-
66c047fe68409c73a077eae561cf82b081cf8e45
[ "MIT" ]
null
null
null
LeetCode/5413.py
LauZyHou/-
66c047fe68409c73a077eae561cf82b081cf8e45
[ "MIT" ]
1
2019-04-03T06:12:46.000Z
2019-04-03T06:12:46.000Z
class Solution: def arrangeWords(self, text: str) -> str: mylist = text.split(" ") mylist = [s.lower() for s in mylist] mylist.sort(key=lambda x: len(x)) if len(mylist) > 0: mylist[0] = mylist[0][0:1].upper() + mylist[0][1:] return " ".join(mylist)
38
62
0.532895
7953ec77cf0e443c5b960fbcbd7c423b76044121
5,492
py
Python
src/spaceone/inventory/manager/compute_engine/snapshot_manager.py
spaceone-dev/plugin-google-cloud-inven-collector
3e103412e7598ee9fa5f68b6241a831a40e8b9bc
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/manager/compute_engine/snapshot_manager.py
spaceone-dev/plugin-google-cloud-inven-collector
3e103412e7598ee9fa5f68b6241a831a40e8b9bc
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/manager/compute_engine/snapshot_manager.py
spaceone-dev/plugin-google-cloud-inven-collector
3e103412e7598ee9fa5f68b6241a831a40e8b9bc
[ "Apache-2.0" ]
null
null
null
import time import logging from spaceone.inventory.libs.manager import GoogleCloudManager from spaceone.inventory.libs.schema.base import ReferenceModel from spaceone.inventory.connector.compute_engine.snapshot import SnapshotConnector from spaceone.inventory.model.compute_engine.snapshot.cloud_service_type import CLO...
41.293233
115
0.542972
7953ec810c743dd0e829667eec9582346bf5426c
2,555
py
Python
tests/test_minimal_tests.py
cmadjar/conp-dataset
d67eec79978f3f050245bba2aff8a1b514a87263
[ "MIT" ]
null
null
null
tests/test_minimal_tests.py
cmadjar/conp-dataset
d67eec79978f3f050245bba2aff8a1b514a87263
[ "MIT" ]
null
null
null
tests/test_minimal_tests.py
cmadjar/conp-dataset
d67eec79978f3f050245bba2aff8a1b514a87263
[ "MIT" ]
null
null
null
"""Test the minimalTest function in create_tests.py. This function should return the minimal set of test to execute. """ import git import pytest from tests.create_tests import minimal_tests @pytest.fixture(autouse=True) def retrieve_submodule(): """Fixture to get all the CONP datasets before a test.""" pyt...
29.367816
88
0.6818
7953ec8c3a17be15ad3bd7ee9d46dd6127805815
12,170
py
Python
HW2/HW2.py
masher1/SocialMediaMining
615205159f363bffd8d6cd8fd32afd65cdfe4332
[ "MIT" ]
null
null
null
HW2/HW2.py
masher1/SocialMediaMining
615205159f363bffd8d6cd8fd32afd65cdfe4332
[ "MIT" ]
null
null
null
HW2/HW2.py
masher1/SocialMediaMining
615205159f363bffd8d6cd8fd32afd65cdfe4332
[ "MIT" ]
null
null
null
import twitter import json import networkx import matplotlib import sys import numpy import sys import time from functools import partial from sys import maxsize as maxint from urllib.error import URLError from http.client import BadStatusLine import matplotlib.pyplot as plt import Chapter_9Twitter_Cookbook def oauth_...
38.881789
158
0.598932
7953ed0718046b60e614848b3ce90929362265e1
4,584
py
Python
sympy/register.py
DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
7adab3877fc1d3f1d5f57e6c1743dae8f76f72c5
[ "Apache-2.0" ]
3,266
2017-08-06T16:51:46.000Z
2022-03-30T07:34:24.000Z
sympy/register.py
nuhaltinsoy/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
6017441f2d476f9c6c568dd886da43c6c0fd89bd
[ "Apache-2.0" ]
150
2017-08-28T14:59:36.000Z
2022-03-11T23:21:35.000Z
sympy/register.py
nuhaltinsoy/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
6017441f2d476f9c6c568dd886da43c6c0fd89bd
[ "Apache-2.0" ]
1,449
2017-08-06T17:40:59.000Z
2022-03-31T12:03:24.000Z
import numpy as np import numpy.random as random import matplotlib.pyplot as plt class QuantumRegister(object): def __init__(self, n_qubits): self.n_qubits = n_qubits self.n_states = 2 ** n_qubits self.qubits = np.zeros(self.n_states, dtype=complex) self.qubits[0] = 1.0 def re...
33.705882
105
0.545593
7953ee0cccff774b4f0669338f833bf483067f87
2,043
py
Python
src/main.py
isaacrivriv/ChemLAB-PL
3ddb586ca95cdfceba8c1637ce3615767f1c47cf
[ "MIT" ]
1
2020-04-07T23:06:54.000Z
2020-04-07T23:06:54.000Z
src/main.py
isaacrivriv/ChemLAB-PL
3ddb586ca95cdfceba8c1637ce3615767f1c47cf
[ "MIT" ]
8
2020-04-12T17:32:48.000Z
2020-05-07T03:46:46.000Z
src/main.py
isaacrivriv/ChemLAB-PL
3ddb586ca95cdfceba8c1637ce3615767f1c47cf
[ "MIT" ]
2
2020-04-07T23:07:30.000Z
2020-07-14T17:03:31.000Z
import chem_lex.ChemlabLexer as Lexer import chem_parse.ChemlabParser as Parser import sys def main(): # If no file name passed when running we open the ChemLAB command line, if not we try to parse the file passed try: # Check if something was passed. If not, we open command line theme trace =...
34.05
114
0.487029
7953ee54489d1166a8bd30a6180493bfbf86657f
28,625
py
Python
nli_02_models_trials1.py
abgoswam/cs224u
33e1a22d1c9586b473f43b388163a74264e9258a
[ "Apache-2.0" ]
null
null
null
nli_02_models_trials1.py
abgoswam/cs224u
33e1a22d1c9586b473f43b388163a74264e9258a
[ "Apache-2.0" ]
null
null
null
nli_02_models_trials1.py
abgoswam/cs224u
33e1a22d1c9586b473f43b388163a74264e9258a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Natural language inference: models # In[1]: __author__ = "Christopher Potts" __version__ = "CS224u, Stanford, Spring 2020" # ## Contents # # 1. [Contents](#Contents) # 1. [Overview](#Overview) # 1. [Set-up](#Set-up) # 1. [Sparse feature representations](#Sparse-feature-r...
38.268717
743
0.712559
7953f0476f3f39b6e57c98b9f7e440474868521d
774
py
Python
examples/cloudobject.py
gerardparis/pywren-ibm-cloud
ca69bed54f5bd5157bcda961b86dbfcfecf3c54a
[ "Apache-2.0" ]
null
null
null
examples/cloudobject.py
gerardparis/pywren-ibm-cloud
ca69bed54f5bd5157bcda961b86dbfcfecf3c54a
[ "Apache-2.0" ]
null
null
null
examples/cloudobject.py
gerardparis/pywren-ibm-cloud
ca69bed54f5bd5157bcda961b86dbfcfecf3c54a
[ "Apache-2.0" ]
null
null
null
""" Simple PyWren example using cloudobjects to transparently pass objects stored in the storage backend between functions without knowing they exact location (bucket, key) """ import pywren_ibm_cloud as pywren def my_function_put(text, internal_storage): co1 = internal_storage.put_object('Temp object test 1: {}'...
28.666667
78
0.732558
7953f0deb4bfbf859be4a0992be763073681869a
397
py
Python
bin/cakechat_server.py
sketscripter/emotional-chatbot-cakechat
470df58a2206a0ea38b6bed53b20cbc63bd3de24
[ "Apache-2.0" ]
1,608
2018-01-31T15:22:29.000Z
2022-03-30T19:59:16.000Z
bin/cakechat_server.py
GaelicThunder/cakechat
844507281b30d81b3fe3674895fe27826dba8438
[ "Apache-2.0" ]
60
2018-02-01T11:45:51.000Z
2019-11-13T10:35:59.000Z
bin/cakechat_server.py
GaelicThunder/cakechat
844507281b30d81b3fe3674895fe27826dba8438
[ "Apache-2.0" ]
690
2018-01-31T17:57:19.000Z
2022-03-30T07:07:41.000Z
import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from cakechat.utils.env import set_keras_tf_session gpu_memory_fraction = os.environ.get('GPU_MEMORY_FRACTION', 0.1) set_keras_tf_session(gpu_memory_fraction) from cakechat.api.v1.server import app if __name__ == '__m...
24.8125
76
0.7733
7953f0fe616255ca5f2f84a88997834a94d16a25
17,958
py
Python
tetris.py
ForceOverArea/tetrabot-code
56bfae9cea347016f65077bb5e5942c8e64ca85d
[ "MIT" ]
null
null
null
tetris.py
ForceOverArea/tetrabot-code
56bfae9cea347016f65077bb5e5942c8e64ca85d
[ "MIT" ]
2
2020-12-01T22:36:48.000Z
2021-06-05T21:44:56.000Z
tetris.py
ForceOverArea/tetrabot-code
56bfae9cea347016f65077bb5e5942c8e64ca85d
[ "MIT" ]
null
null
null
import copy, random """ This library is a 'toolbox' for building a tetris game elsewhere - This library intended for use with Discord.py/Discord API """ def default(): # This function can be copied and modified to # provide different skins for the game """ Returns a dict of the default d...
33.503731
159
0.447489
7953f110dc7f2fc36ffd1f5ce007c29f207b8bc9
288
py
Python
OPTIMIZED_CLEAN.py
CaptainVietnam6/GoPro-output-cleaner
fbffc8ff91d2cc9845c2aab1c41a0e0f9c6ac6d4
[ "MIT" ]
null
null
null
OPTIMIZED_CLEAN.py
CaptainVietnam6/GoPro-output-cleaner
fbffc8ff91d2cc9845c2aab1c41a0e0f9c6ac6d4
[ "MIT" ]
null
null
null
OPTIMIZED_CLEAN.py
CaptainVietnam6/GoPro-output-cleaner
fbffc8ff91d2cc9845c2aab1c41a0e0f9c6ac6d4
[ "MIT" ]
null
null
null
import os n=0 d=f"./GoPro{n}.mp4" l=(".WAV",".THM",".LRV") while True: if os.path.exists(d)==True: n+=1 else: break for f in os.listdir("./"): if f.endswith(".MP4"): os.rename(f,f"GoPro{n}.mp4") n+=1 elif f.endswith(l): os.remove(f)
19.2
36
0.496528
7953f20364fdede96cd3eadcf6253d9aa42d82b8
897
py
Python
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_inischema.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2017-08-13T14:09:32.000Z
2018-07-16T23:39:00.000Z
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_inischema.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
null
null
null
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_inischema.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2018-04-02T06:45:11.000Z
2018-07-16T23:39:02.000Z
SAMPLE_SCHEMA = """ [first] value1 = int value2 = string value3 = float value4 = listofstrings value5 = listofints [second] value1 = string value2 = int """ SAMPLE_CONFIGURATION = """ [first] value1 = 3 value2 = Three value3 = 3.0 value4 = Three Drei value5 = 3 3 [second] value1 = a few line breaks are no p...
20.860465
74
0.656633
7953f3163af7bc874692f51aa8af9824cf787989
13,356
py
Python
tenable/io/users.py
Rogdham/pyTenable
79f3f7360f8ef31b964f1db99d0c7b8a0bc25d7a
[ "MIT" ]
1
2022-03-01T17:17:19.000Z
2022-03-01T17:17:19.000Z
tenable/io/users.py
Rogdham/pyTenable
79f3f7360f8ef31b964f1db99d0c7b8a0bc25d7a
[ "MIT" ]
25
2021-11-16T18:41:36.000Z
2022-03-25T05:43:31.000Z
tenable/io/users.py
Rogdham/pyTenable
79f3f7360f8ef31b964f1db99d0c7b8a0bc25d7a
[ "MIT" ]
2
2022-03-02T12:24:40.000Z
2022-03-29T05:12:04.000Z
''' Users ===== The following methods allow for interaction into the Tenable.io :devportal:`users <users>` API endpoints. Methods available on ``tio.users``: .. rst-class:: hide-signature .. autoclass:: UsersAPI :members: ''' from tenable.utils import dict_merge from tenable.io.base import TIOEndpoint class Use...
33.557789
100
0.562519
7953f35b3d1500c435877da74fb97a6a734f8bf2
1,187
py
Python
Creacion-de-un-experimento-en-Azure-Machine-Learning-Studio/test.py
josephLSalgado/IA-Innovaccion
67650ab1f27099859afaa704546d0eee64a71fac
[ "MIT" ]
null
null
null
Creacion-de-un-experimento-en-Azure-Machine-Learning-Studio/test.py
josephLSalgado/IA-Innovaccion
67650ab1f27099859afaa704546d0eee64a71fac
[ "MIT" ]
null
null
null
Creacion-de-un-experimento-en-Azure-Machine-Learning-Studio/test.py
josephLSalgado/IA-Innovaccion
67650ab1f27099859afaa704546d0eee64a71fac
[ "MIT" ]
null
null
null
import urllib import urllib.request import json data = { "Inputs": { "input1": { "ColumnNames": ["WallArea", "RoofArea", "OverallHeight", "GlazingArea", "HeatingLoad"], "Values": [ [ "296", "110.25", "7", "0", "15.55" ], [ "400", "93.2...
32.081081
174
0.610783
7953f3fb045972e2ab2eddbe79a450e587288f8a
192
py
Python
bin/cubes/non-convex-pentacubes-diagonal-wall.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/cubes/non-convex-pentacubes-diagonal-wall.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/cubes/non-convex-pentacubes-diagonal-wall.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """many solutions""" import puzzler.puzzles from puzzler.puzzles.pentacubes import NonConvexPentacubesDiagonalWall puzzler.run(NonConvexPentacubesDiagonalWall)
19.2
70
0.8125
7953f409bacbee1865666a71b44024d600ad0fba
1,676
py
Python
src/networks.py
jlebensold/flrl-ddpg
d91e9f4aedf48d0614e33bd22c7f684ecda089b1
[ "MIT" ]
1
2021-05-11T06:28:01.000Z
2021-05-11T06:28:01.000Z
src/networks.py
jlebensold/flrl-ddpg
d91e9f4aedf48d0614e33bd22c7f684ecda089b1
[ "MIT" ]
null
null
null
src/networks.py
jlebensold/flrl-ddpg
d91e9f4aedf48d0614e33bd22c7f684ecda089b1
[ "MIT" ]
1
2021-03-07T06:33:17.000Z
2021-03-07T06:33:17.000Z
import random import gym import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.distributions import Normal from collections import ChainMap class ValueNetwork(nn.Module): def __init__(self, num_inputs, num_actions, hidden_size, init_w=3e-3)...
29.403509
74
0.664081
7953f43a2d724a0df9c7ea3aeca8677a64adee20
2,364
py
Python
examples/self_distribution_distillation/self_distribution_distillation_src/uncertainty/categorical.py
yassirf/sequence-training
a7cd7a9bb2f4f1d76c4f62a62704e396ad029540
[ "MIT" ]
null
null
null
examples/self_distribution_distillation/self_distribution_distillation_src/uncertainty/categorical.py
yassirf/sequence-training
a7cd7a9bb2f4f1d76c4f62a62704e396ad029540
[ "MIT" ]
null
null
null
examples/self_distribution_distillation/self_distribution_distillation_src/uncertainty/categorical.py
yassirf/sequence-training
a7cd7a9bb2f4f1d76c4f62a62704e396ad029540
[ "MIT" ]
null
null
null
import numpy as np import torch from .estimators import EnsembleCategoricals from .misc import process_outputs def compute_token_uncertainties(args, outputs, extra): """ Function which computes token-level measures of uncertainty for Categorical model. :param args: specifies uncertainty estimation parame...
39.4
104
0.730118
7953f596ae99c9a63c9df6e5724925b0a154ff89
3,499
py
Python
scripts/utils/travelled_dist.py
tpet/rpz_planning
cf52732bfac8aef7d1ba9da20e3930671e142b80
[ "BSD-3-Clause" ]
null
null
null
scripts/utils/travelled_dist.py
tpet/rpz_planning
cf52732bfac8aef7d1ba9da20e3930671e142b80
[ "BSD-3-Clause" ]
null
null
null
scripts/utils/travelled_dist.py
tpet/rpz_planning
cf52732bfac8aef7d1ba9da20e3930671e142b80
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Float64 from nav_msgs.msg import Path from geometry_msgs.msg import PoseStamped import numpy as np from ros_numpy import msgify, numpify import tf2_ros class TravelledDistPub: """ This ROS node publishes ground truth travelled distance and route. ...
39.314607
107
0.592741
7953f6b7489acf345c8141ee58005c051f60c80b
5,542
py
Python
examples/multi_physics/biot_npbc.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
510
2015-01-19T16:22:25.000Z
2022-03-30T19:02:51.000Z
examples/multi_physics/biot_npbc.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
402
2015-01-22T10:57:50.000Z
2022-03-30T15:19:23.000Z
examples/multi_physics/biot_npbc.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
156
2015-01-05T14:23:38.000Z
2022-03-22T13:08:30.000Z
r""" Biot problem - deformable porous medium with the no-penetration boundary condition on a boundary region. Find :math:`\ul{u}`, :math:`p` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) - \int_{\Omega} p\ \alpha_{ij} e_{ij}(\ul{v}) = 0 \;, \quad \forall \ul{v} \;, \...
27.71
80
0.496211
7953f6bb99158441109893b302a3c7d1f1a3ca52
1,686
py
Python
sparkql/accessors.py
radeklat/sparkql
57d55c7599460f2e7e5957c037d7c25cedb92647
[ "MIT" ]
null
null
null
sparkql/accessors.py
radeklat/sparkql
57d55c7599460f2e7e5957c037d7c25cedb92647
[ "MIT" ]
null
null
null
sparkql/accessors.py
radeklat/sparkql
57d55c7599460f2e7e5957c037d7c25cedb92647
[ "MIT" ]
null
null
null
"""Accessor functions in order to access field paths, field names, and related field attributes.""" # pylint: disable=protected-access from typing import Sequence from pyspark.sql import Column from pyspark.sql import functions as sql_funcs from pyspark.sql.types import StructField from sparkql.fields.base import B...
31.222222
115
0.697509
7953f7bbfd1f41ed9738ffec1e04dd2d56131960
4,118
py
Python
release/sign-launcher.py
sambacha/repo
e4d8f5a2f332854acb140b22f1b96fd06c42b66e
[ "Apache-2.0" ]
1
2021-12-11T01:57:58.000Z
2021-12-11T01:57:58.000Z
release/sign-launcher.py
sambacha/repo
e4d8f5a2f332854acb140b22f1b96fd06c42b66e
[ "Apache-2.0" ]
null
null
null
release/sign-launcher.py
sambacha/repo
e4d8f5a2f332854acb140b22f1b96fd06c42b66e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (C) 2020 The Android Open Source 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 requ...
28.597222
88
0.616561
7953f9d21dbd0d6b5eeeb0ced4c7d078a81ced37
773
py
Python
setup.py
vdltech/napalm-ruckus-fastiron
4f49ff5dbceefef2336951236e043ae6c7ea38d5
[ "Apache-2.0" ]
null
null
null
setup.py
vdltech/napalm-ruckus-fastiron
4f49ff5dbceefef2336951236e043ae6c7ea38d5
[ "Apache-2.0" ]
null
null
null
setup.py
vdltech/napalm-ruckus-fastiron
4f49ff5dbceefef2336951236e043ae6c7ea38d5
[ "Apache-2.0" ]
null
null
null
"""setup.py file.""" from setuptools import find_packages, setup __author__ = 'Johan van den Dorpe' with open("requirements.txt", "r") as fs: reqs = [r for r in fs.read().splitlines()] setup( name="napalm-brocade-fastiron", version="0.11", packages=find_packages(), author="Johan van den Dorpe", ...
29.730769
100
0.65718
7953fae78c2a926fe227be8a6f7620531224614d
260
py
Python
consultas/consultas/doctype/antibiotico/antibiotico.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
consultas/consultas/doctype/antibiotico/antibiotico.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
consultas/consultas/doctype/antibiotico/antibiotico.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Lewin Villar and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class Antibiotico(Document): pass
23.636364
51
0.780769
7953faf5f5cca2ef0f3c179174903cf9902a33a3
15,939
py
Python
cogs/admin.py
SarrowSeviper/Bui
8d1c89566d5be1f882666cabc77cfbfeee5d56e3
[ "MIT" ]
1
2018-10-13T16:06:02.000Z
2018-10-13T16:06:02.000Z
cogs/admin.py
SarrowSeviper/Bui
8d1c89566d5be1f882666cabc77cfbfeee5d56e3
[ "MIT" ]
13
2018-10-31T21:15:05.000Z
2018-10-31T21:15:16.000Z
cogs/admin.py
BuiArtSociety/buibot
b362aa8e61cc79fd3b9575f364ea610ba4d0a0d9
[ "MIT" ]
1
2018-11-25T11:54:15.000Z
2018-11-25T11:54:15.000Z
import time import aiohttp import traceback import discord import textwrap import io import datetime import random import json import shlex import gc import os from subprocess import Popen, PIPE from dhooks import Webhook from contextlib import redirect_stdout from copy import copy from typing import Union from utils ...
36.981439
307
0.583098
7953fb9f581b085ec1a9f8c794f68b3d1c1df395
8,128
py
Python
nilearn/input_data/tests/test_multi_nifti_masker.py
ryanhammonds/nilearn
f33cd4e4685d9050e5bba0a8ece1b0b0f0ad1be2
[ "BSD-2-Clause" ]
null
null
null
nilearn/input_data/tests/test_multi_nifti_masker.py
ryanhammonds/nilearn
f33cd4e4685d9050e5bba0a8ece1b0b0f0ad1be2
[ "BSD-2-Clause" ]
null
null
null
nilearn/input_data/tests/test_multi_nifti_masker.py
ryanhammonds/nilearn
f33cd4e4685d9050e5bba0a8ece1b0b0f0ad1be2
[ "BSD-2-Clause" ]
null
null
null
""" Test the multi_nifti_masker module """ # Author: Gael Varoquaux # License: simplified BSD import shutil from distutils.version import LooseVersion from tempfile import mkdtemp import nibabel import numpy as np import sklearn from nibabel import Nifti1Image from nose import SkipTest from nose.tools import assert_tr...
34.735043
77
0.611467
7953fc44bc41a5093f6dcfaf0b57b9c1fd6a1073
308
py
Python
helper_utils/helperutils/boolean_argparse.py
splitstrument/utils
8e33caec64dfd66369c3a19c069cf4a946a3fc95
[ "MIT" ]
null
null
null
helper_utils/helperutils/boolean_argparse.py
splitstrument/utils
8e33caec64dfd66369c3a19c069cf4a946a3fc95
[ "MIT" ]
null
null
null
helper_utils/helperutils/boolean_argparse.py
splitstrument/utils
8e33caec64dfd66369c3a19c069cf4a946a3fc95
[ "MIT" ]
null
null
null
def str2bool(v): import argparse if isinstance(v, bool): return v if v.lower() in ('yes', 'true', 't', 'y', '1'): return True elif v.lower() in ('no', 'false', 'f', 'n', '0'): return False else: raise argparse.ArgumentTypeError('Boolean value expected.')
25.666667
67
0.542208
7953fc4782f1a0d6f25c5c6def8ee4e211c3e7c7
15,230
py
Python
quizv2.1.py
nealalan/quiz-giver
86a089d4d75c91104102f6f6a637f96ba496b521
[ "Unlicense" ]
1
2019-03-18T15:09:37.000Z
2019-03-18T15:09:37.000Z
quizv2.1.py
nealalan/quiz-giver
86a089d4d75c91104102f6f6a637f96ba496b521
[ "Unlicense" ]
null
null
null
quizv2.1.py
nealalan/quiz-giver
86a089d4d75c91104102f6f6a637f96ba496b521
[ "Unlicense" ]
null
null
null
########################################################################### # project: https://nealalan.github.io/quiz-giver-sec-plus # updated: 2018/10/20 v2.1b # # python program to give a quiz based on two input files # # v2.1b commented out prints used for debugging and validated the Q# # input incase the user mes...
49.934426
212
0.560867
7953fc826102a212dd2440408c6d1e9663a37b55
13,296
py
Python
nvidia_MODEL2.py
savinay95n/Behavioral-cloning-Steering-angle-prediction
efa0c02d1d21dc7233899193de0be5615fe27318
[ "Apache-2.0" ]
2
2022-02-07T20:46:32.000Z
2022-03-13T07:27:44.000Z
nvidia_MODEL2.py
savinay95n/Behavioral-cloning-Steering-angle-prediction
efa0c02d1d21dc7233899193de0be5615fe27318
[ "Apache-2.0" ]
2
2021-05-04T19:42:32.000Z
2021-05-04T19:50:49.000Z
nvidia_MODEL2.py
savinay95n/Behavioral-cloning-Steering-angle-prediction
efa0c02d1d21dc7233899193de0be5615fe27318
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import os import cv2 import random import json import math import keras from keras.preprocessing.image import * from keras.models import Sequential, Model from keras.layers import Convolution2D, Flatten, MaxPooling2D, Lambda, ELU from ...
34.897638
137
0.66426
7953fe1ac7e30c8cc6c2252b0c6a2892b8d030bf
1,014
py
Python
src/adata/window/__init__.py
txemavs/adata
89a6d27fa59dc26ae3036685bb9d8bfb8e983fd9
[ "MIT" ]
1
2018-03-24T12:18:08.000Z
2018-03-24T12:18:08.000Z
src/adata/window/__init__.py
txemavs/adata
89a6d27fa59dc26ae3036685bb9d8bfb8e983fd9
[ "MIT" ]
null
null
null
src/adata/window/__init__.py
txemavs/adata
89a6d27fa59dc26ae3036685bb9d8bfb8e983fd9
[ "MIT" ]
null
null
null
import wx.html2 from ..core import * from ..gui.text import TextEditor class TextWindow(wx.Frame): '''A text editor window ''' def __init__(self, filepath=None): wx.Frame.__init__(self, None, -1, filepath, size=(800, 600)) self.text = TextEditor(self) self.sizer = wx.BoxSizer(wx.V...
23.581395
68
0.585799
7953fede98d7a26981cd0d4f577fe63f954965ba
644
py
Python
tests/test_set_ramp_z.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
64
2020-03-18T12:11:22.000Z
2022-03-31T08:19:18.000Z
tests/test_set_ramp_z.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
148
2020-05-14T06:14:11.000Z
2022-03-26T15:02:31.000Z
tests/test_set_ramp_z.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
16
2020-05-31T00:53:44.000Z
2022-03-23T13:20:57.000Z
import pyclesperanto_prototype as cle import numpy as np def test_set_ramp_z(): result = cle.push(np.asarray([ [ [0, 0, 0], [3, 4, 3], [3, 4, 3] ], [ [3, 4, 3], [3, 4, 3], [3, 4, 3] ] ])) reference = cle.push(n...
17.405405
37
0.354037
7953ff924c2ac4094200c80736168f32da38a40b
1,020
py
Python
src/charma/media_info/interface.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-01-16T23:36:10.000Z
2020-01-16T23:36:10.000Z
src/charma/media_info/interface.py
mononobi/imovie-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
24
2020-06-08T18:27:04.000Z
2021-06-06T12:01:39.000Z
src/charma/media_info/interface.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-12-20T05:29:04.000Z
2020-12-20T05:29:04.000Z
# -*- coding: utf-8 -*- """ media info interface module. """ from threading import Lock from abc import abstractmethod from pyrin.core.structs import CoreObject, MultiSingletonMeta from pyrin.core.exceptions import CoreNotImplementedError class MediaInfoSingletonMeta(MultiSingletonMeta): """ media info sing...
22.173913
78
0.655882
7953ffa279b8649e92758d2ab5c797dcca767b53
5,956
py
Python
webapp/models/l0_model.py
dushik/AdversarialDNN-Playground
cd960c37aeb610f01c30c296ac481606209ed9ee
[ "Apache-2.0" ]
125
2017-05-03T23:56:48.000Z
2022-03-31T09:49:23.000Z
webapp/models/l0_model.py
dushik/AdversarialDNN-Playground
cd960c37aeb610f01c30c296ac481606209ed9ee
[ "Apache-2.0" ]
4
2017-06-05T15:16:48.000Z
2022-02-09T23:26:25.000Z
webapp/models/l0_model.py
Qdata4Capstone/capstone18-AdversarialTexPlayground2
8feb6e1ef1d293dcb8869faa8a84216cdc3dd5ce
[ "Apache-2.0" ]
29
2017-06-01T15:31:27.000Z
2021-04-01T13:01:35.000Z
# ML includes import tensorflow as tf import numpy as np import pandas as pd # General python includes import os import math import json from itertools import permutations, combinations, product # Plotting import matplotlib import matplotlib.pyplot as plt matplotlib.style.use('fivethirtyeight') def grad(F): x = tf...
31.183246
112
0.665883
7953ffbba29f0d026f8de5ea81967dddf76cd2c2
2,332
py
Python
samples/cli/accelbyte_py_sdk_cli/ugc/_single_admin_get_group.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
samples/cli/accelbyte_py_sdk_cli/ugc/_single_admin_get_group.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
samples/cli/accelbyte_py_sdk_cli/ugc/_single_admin_get_group.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # justice-ugc-service (2.1.0) # pylint: disable=duplicate-code # p...
31.945205
94
0.744425
79540109ca08e895ba6ccd122a27747fadfbc57a
1,227
py
Python
pov/make_timelapse.py
ANaka/pov
59edc1e6761baa45f197f3f8d9a79a7152eb9dc8
[ "CC0-1.0" ]
null
null
null
pov/make_timelapse.py
ANaka/pov
59edc1e6761baa45f197f3f8d9a79a7152eb9dc8
[ "CC0-1.0" ]
null
null
null
pov/make_timelapse.py
ANaka/pov
59edc1e6761baa45f197f3f8d9a79a7152eb9dc8
[ "CC0-1.0" ]
null
null
null
import ffmpeg import click from pathlib import Path import fn ROOT_DIRECTORY = '/home/naka/Videos/pov' @click.command() @click.option('--input_dir', '-i', default=None) @click.option('--suffix', '-s', default='.jpg') @click.option('--output', '-o', default=None) @click.option('--framerate', '-r', default=35) @cli...
27.266667
58
0.560717
7954014a7c8fa87f1ee562fe3804f25b2adbddbd
4,078
py
Python
recipes/WHAMandWHAMR/meta/create_whamr_rirs.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
3,913
2021-03-14T13:54:52.000Z
2022-03-30T05:09:55.000Z
recipes/WHAMandWHAMR/meta/create_whamr_rirs.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
667
2021-03-14T20:11:17.000Z
2022-03-31T04:07:17.000Z
recipes/WHAMandWHAMR/meta/create_whamr_rirs.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
785
2021-03-14T13:20:57.000Z
2022-03-31T03:26:03.000Z
""" Adapted from the original WHAMR script to obtain the Room Impulse ResponsesRoom Impulse Responses Authors * Cem Subakan 2021 """ import os import pandas as pd import argparse import torchaudio from recipes.WHAMandWHAMR.meta.wham_room import WhamRoom from scipy.signal import resample_poly import torch from spe...
28.71831
97
0.518391
79540179b72e0281f0ce55e7dbd1eaf23fed7889
8,953
py
Python
forms-flow-api/tests/unit/api/test_application.py
sreehari-aot/forms-flow-ai
11e2fdd6da792aaa9dd46c0cec38564fe5916b58
[ "Apache-2.0" ]
null
null
null
forms-flow-api/tests/unit/api/test_application.py
sreehari-aot/forms-flow-ai
11e2fdd6da792aaa9dd46c0cec38564fe5916b58
[ "Apache-2.0" ]
null
null
null
forms-flow-api/tests/unit/api/test_application.py
sreehari-aot/forms-flow-ai
11e2fdd6da792aaa9dd46c0cec38564fe5916b58
[ "Apache-2.0" ]
null
null
null
"""Test suite for application API endpoint.""" import pytest from tests.utilities.base_test import ( factory_auth_header, get_application_create_payload, get_form_request_payload, ) class TestApplicationResource: """Test suite for the application endpoint.""" def test_application_no_auth_api(sel...
34.302682
100
0.624707
795402c19ffcdb82de32560aa3e330ee034cc1c8
1,450
py
Python
Datacamp Assignments/Data Engineer Track/4. Writing Efficient Python Code/21_gathering_unique_items.py
Ali-Parandeh/Data_Science_Playground
c529e9b3692381572de259e7c93938d6611d83da
[ "MIT" ]
null
null
null
Datacamp Assignments/Data Engineer Track/4. Writing Efficient Python Code/21_gathering_unique_items.py
Ali-Parandeh/Data_Science_Playground
c529e9b3692381572de259e7c93938d6611d83da
[ "MIT" ]
null
null
null
Datacamp Assignments/Data Engineer Track/4. Writing Efficient Python Code/21_gathering_unique_items.py
Ali-Parandeh/Data_Science_Playground
c529e9b3692381572de259e7c93938d6611d83da
[ "MIT" ]
1
2021-03-10T09:40:05.000Z
2021-03-10T09:40:05.000Z
# Use find_unique_items() to collect unique Pokémon names uniq_names_func = find_unique_items(names) print(len(uniq_names_func)) ''' 368 ''' # Convert the names list to a set to collect unique Pokémon names uniq_names_set = set(names) print(len(uniq_names_set)) ''' 368 ''' # Check that both unique collections are e...
30.851064
158
0.717931
795402d59431b803c332ac676a7b71ad83f40853
5,275
py
Python
translate/instantiate.py
schultet/goa
b76af608109ff217a2b68ca4e66582850c0a47ea
[ "MIT" ]
2
2019-05-13T11:59:18.000Z
2019-05-13T12:37:51.000Z
translate/instantiate.py
schultet/goa
b76af608109ff217a2b68ca4e66582850c0a47ea
[ "MIT" ]
null
null
null
translate/instantiate.py
schultet/goa
b76af608109ff217a2b68ca4e66582850c0a47ea
[ "MIT" ]
null
null
null
#! /usr/bin/env python from __future__ import print_function from collections import defaultdict import build_model import pddl_to_prolog import pddl import timers def get_fluent_facts(task, model): fluent_predicates = set() for action in task.actions: for effect in action.effects: fluen...
35.641892
87
0.640758
795403e1b2351da644ae486f1de11d26fbd4fda5
101
py
Python
src/bucket_service/bucket_app/run.py
cinmoy98/bucket-list---microservices-restapi-flask-mongodb
2f1f34c1e88ef3d7d06447042a3c1256dd789a4a
[ "MIT" ]
null
null
null
src/bucket_service/bucket_app/run.py
cinmoy98/bucket-list---microservices-restapi-flask-mongodb
2f1f34c1e88ef3d7d06447042a3c1256dd789a4a
[ "MIT" ]
null
null
null
src/bucket_service/bucket_app/run.py
cinmoy98/bucket-list---microservices-restapi-flask-mongodb
2f1f34c1e88ef3d7d06447042a3c1256dd789a4a
[ "MIT" ]
null
null
null
from app import bapp if __name__ == '__main__': bapp.run(host = '127.0.0.3', port=5000, debug=True)
25.25
52
0.683168
795404e4e14faecb5237aee9e42759988b11d60b
1,354
py
Python
ooobuild/dyn/report/x_report_engine.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/report/x_report_engine.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/report/x_report_engine.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
36.594595
82
0.767356
7954051e64c761a6473a4ae54e063c1b13269191
23,695
py
Python
onmt/Models.py
mingchen62/im2text-pytorch
9516be1aad70517603383a92670c296f8d7e343e
[ "MIT" ]
1
2020-03-24T08:42:38.000Z
2020-03-24T08:42:38.000Z
onmt/Models.py
mingchen62/im2text-pytorch
9516be1aad70517603383a92670c296f8d7e343e
[ "MIT" ]
null
null
null
onmt/Models.py
mingchen62/im2text-pytorch
9516be1aad70517603383a92670c296f8d7e343e
[ "MIT" ]
null
null
null
from __future__ import division import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torch.nn.utils.rnn import pack_padded_sequence as pack from torch.nn.utils.rnn import pad_packed_sequence as unpack import onmt from onmt.Utils import aeq def rnn_factory(rnn_t...
35.955994
79
0.578097
79540567aa7b78345ec78d7784122b87ed62854a
17,453
py
Python
marl/algorithms/masac/run_masac.py
Justin-Yuan/learn-to-interact
eb013bb3bab269bda8a8075e64fe3bcd2964d8ae
[ "MIT" ]
1
2021-01-14T02:49:58.000Z
2021-01-14T02:49:58.000Z
marl/algorithms/masac/run_masac.py
Justin-Yuan/learn-to-interact
eb013bb3bab269bda8a8075e64fe3bcd2964d8ae
[ "MIT" ]
8
2020-09-25T21:36:55.000Z
2022-02-10T01:17:25.000Z
marl/algorithms/masac/run_masac.py
Justin-Yuan/learn-to-interact
eb013bb3bab269bda8a8075e64fe3bcd2964d8ae
[ "MIT" ]
1
2020-10-26T13:52:16.000Z
2020-10-26T13:52:16.000Z
import os import sys # path at level marl/ sys.path.insert(0, os.path.abspath(".")) import time import argparse import numpy as np from functools import partial from collections import OrderedDict, defaultdict import torch # local from algorithms.masac.utils import get_sample_scheme, dispatch_samples from algorithms...
49.16338
130
0.600527
795406276555af9a490d25509ba6a7b134fbadbd
3,155
py
Python
great_expectations/render/renderer/page_renderer.py
orenovadia/great_expectations
76ef0c4e066227f8b589a1ee6ac885618f65906e
[ "Apache-2.0" ]
null
null
null
great_expectations/render/renderer/page_renderer.py
orenovadia/great_expectations
76ef0c4e066227f8b589a1ee6ac885618f65906e
[ "Apache-2.0" ]
null
null
null
great_expectations/render/renderer/page_renderer.py
orenovadia/great_expectations
76ef0c4e066227f8b589a1ee6ac885618f65906e
[ "Apache-2.0" ]
null
null
null
from .renderer import Renderer from .column_section_renderer import ( DescriptiveColumnSectionRenderer, PrescriptiveColumnSectionRenderer, ) from .other_section_renderer import ( DescriptiveOverviewSectionRenderer, ) class PrescriptivePageRenderer(Renderer): @classmethod def render(cls, expectati...
36.264368
109
0.593344
795406d9d5d313c79ef7d034e8713db6265b2bd7
9,074
py
Python
airflow/sensors/base_sensor_operator.py
j-y-matsubara/airflow
94a7673e8b208af165a191d940034bfb8b8e0b7e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/sensors/base_sensor_operator.py
j-y-matsubara/airflow
94a7673e8b208af165a191d940034bfb8b8e0b7e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/sensors/base_sensor_operator.py
j-y-matsubara/airflow
94a7673e8b208af165a191d940034bfb8b8e0b7e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-07-06T17:12:07.000Z
2021-07-06T17:12:07.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...
41.623853
96
0.641724
79540885beac52316d128981f3ef0c3ec883d799
5,208
py
Python
src/m7_summing.py
josephklaw/03-AccumulatorsAndFunctionsWithParameters
7228fa5ab696737a4365f9ee3f600df503e1a645
[ "MIT" ]
null
null
null
src/m7_summing.py
josephklaw/03-AccumulatorsAndFunctionsWithParameters
7228fa5ab696737a4365f9ee3f600df503e1a645
[ "MIT" ]
null
null
null
src/m7_summing.py
josephklaw/03-AccumulatorsAndFunctionsWithParameters
7228fa5ab696737a4365f9ee3f600df503e1a645
[ "MIT" ]
null
null
null
""" This module lets you practice the ACCUMULATOR pattern in its simplest classic forms: SUMMING: total = total + number Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Aaron Wilkin, their colleagues, and Joseph Law. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. impo...
39.454545
106
0.495392
795408edeb70aa5b743d84dbddcfefd1e48d0eb2
6,847
py
Python
tests/test_utils.py
TobiasUhmann/pykeen
82ca32a69f46f2e8a6255d7d2ce519eefbb3757e
[ "MIT" ]
2
2020-11-25T14:16:39.000Z
2021-04-15T18:36:46.000Z
tests/test_utils.py
TobiasUhmann/pykeen
82ca32a69f46f2e8a6255d7d2ce519eefbb3757e
[ "MIT" ]
null
null
null
tests/test_utils.py
TobiasUhmann/pykeen
82ca32a69f46f2e8a6255d7d2ce519eefbb3757e
[ "MIT" ]
1
2021-04-02T13:15:58.000Z
2021-04-02T13:15:58.000Z
# -*- coding: utf-8 -*- """Unittest for for global utilities.""" import string import unittest import numpy import torch from pykeen.nn import Embedding from pykeen.utils import ( clamp_norm, compact_mapping, flatten_dictionary, get_until_first_blank, l2_regularization, ) class L2Regularizatio...
31.122727
107
0.569154
7954094c29f9c06372b19a01e6d5c7f0b61dc5bb
6,274
py
Python
botstart.py
Mahas1/Guren
6bb8947b0407435f15be1e5a12de6050bf7de95c
[ "MIT" ]
null
null
null
botstart.py
Mahas1/Guren
6bb8947b0407435f15be1e5a12de6050bf7de95c
[ "MIT" ]
null
null
null
botstart.py
Mahas1/Guren
6bb8947b0407435f15be1e5a12de6050bf7de95c
[ "MIT" ]
null
null
null
import asyncio import os import random import logging import contextlib import sqlite3 import discord from discord.ext import commands from pathlib import Path import motor.motor_asyncio import io import textwrap import traceback from traceback import format_exception import utils.json_loader from utils.mongo import ...
28.261261
87
0.639624
79540a9b1fb92958e29f28edbb9a1a559986a092
5,813
py
Python
tests/modules/seq2vec_encoders/pytorch_seq2vec_wrapper_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
11,433
2017-06-27T03:08:46.000Z
2022-03-31T18:14:33.000Z
tests/modules/seq2vec_encoders/pytorch_seq2vec_wrapper_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
4,006
2017-06-26T21:45:43.000Z
2022-03-31T02:11:10.000Z
tests/modules/seq2vec_encoders/pytorch_seq2vec_wrapper_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
2,560
2017-06-26T21:16:53.000Z
2022-03-30T07:55:46.000Z
import pytest from numpy.testing import assert_almost_equal import torch from torch.nn import LSTM from torch.nn.utils.rnn import pack_padded_sequence from allennlp.common.checks import ConfigurationError from allennlp.common.testing import AllenNlpTestCase from allennlp.modules.seq2vec_encoders import PytorchSeq2VecW...
43.059259
100
0.652675
79540c107b095117e67e61936eb603b7d19b3cec
1,018
py
Python
src/events/EventMessageBuilder.py
ITAnalyst-JU/process-logger
a51d4604b2dc3047dec9adfec96334ff20a3782f
[ "MIT" ]
null
null
null
src/events/EventMessageBuilder.py
ITAnalyst-JU/process-logger
a51d4604b2dc3047dec9adfec96334ff20a3782f
[ "MIT" ]
null
null
null
src/events/EventMessageBuilder.py
ITAnalyst-JU/process-logger
a51d4604b2dc3047dec9adfec96334ff20a3782f
[ "MIT" ]
null
null
null
import html import json def _str(s): return html.escape(str(s)) class EventMessageBuilder: def __init__(self, event_name, content=None): self.event_name = str(event_name) self.content = str(content) if content is not None else '' self.attrs = {} def attributes(self, **attrs): ...
28.277778
73
0.543222
79540db7343cd37c04169f2c2a9534f0c0ea7d5c
1,187
py
Python
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
21
2018-01-05T09:24:49.000Z
2021-04-24T03:25:25.000Z
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
1
2019-11-11T18:34:53.000Z
2019-11-13T15:56:10.000Z
code/math_examples.py
rustam-fork/ml-course-uz
e1554d4c69bf0e421aa596d77aab65639df1ff73
[ "MIT" ]
13
2018-01-05T10:26:47.000Z
2022-01-25T07:48:33.000Z
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm def draw_parabola(steps=50): x = np.linspace(-4, 4, steps) plt.plot(x, x ** 2) plt.axvline(x=0, color='b', linestyle='dashed') def draw_paraboloid(steps=50): fig = plt.figure(figsize=...
27.604651
118
0.57877
79540e2cd3e0b225ae8438ea4529e9123555eb1f
76
py
Python
tests/fixtures/.marten/manual.py
nick-allen/python-marten
0351ba590311ca09bc3b3184678a2e6cf00aa2d9
[ "MIT" ]
null
null
null
tests/fixtures/.marten/manual.py
nick-allen/python-marten
0351ba590311ca09bc3b3184678a2e6cf00aa2d9
[ "MIT" ]
null
null
null
tests/fixtures/.marten/manual.py
nick-allen/python-marten
0351ba590311ca09bc3b3184678a2e6cf00aa2d9
[ "MIT" ]
null
null
null
__author__ = 'Nick Allen <nick.allen.cse@gmail.com>' MARTEN_FIXTURE = False
25.333333
52
0.763158