hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
9dc39fc8222ff55bb5f11d961baed140d246d0e2
7,518
py
Python
lib/galaxy/webapps/galaxy/api/remote_files.py
openminted/galaxy
bd2147cccf814f8cec93372973b5e6ada4668a80
[ "CC-BY-3.0" ]
1
2021-04-26T08:46:21.000Z
2021-04-26T08:46:21.000Z
lib/galaxy/webapps/galaxy/api/remote_files.py
saxtouri/galaxy
01a098bab92eebe89f02593c46d85360bd3e3ef1
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/galaxy/webapps/galaxy/api/remote_files.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
1
2018-02-08T10:37:26.000Z
2018-02-08T10:37:26.000Z
""" API operations on remote files. """ import os import time import hashlib from galaxy import exceptions from galaxy.web import _future_expose_api as expose_api from galaxy.util import jstree, unicodify from galaxy.web.base.controller import BaseAPIController from operator import itemgetter import logging log = logg...
50.12
167
0.597765
b256b0308b7a4fcdd886fc732ed8ca8860384b34
1,055
py
Python
exp_model.py
shihvictor/Cat-vs-Dog-Kaggle
6823aa9ba983e76c06dc868fd8b77d4c09bc691c
[ "MIT" ]
null
null
null
exp_model.py
shihvictor/Cat-vs-Dog-Kaggle
6823aa9ba983e76c06dc868fd8b77d4c09bc691c
[ "MIT" ]
null
null
null
exp_model.py
shihvictor/Cat-vs-Dog-Kaggle
6823aa9ba983e76c06dc868fd8b77d4c09bc691c
[ "MIT" ]
null
null
null
from keras.layers import Input, ZeroPadding2D, Conv2D, MaxPooling2D, Dropout, Flatten, Dense, Activation, BatchNormalization from keras.models import Model def exp_model(input_shape): """ Keras model :return: Keras model using Keras functional API https://keras.io/guides/functional_api/ """ # Inpu...
31.969697
124
0.667299
f7a08c9ead1753b1ac0445dcd469498c8356e97b
1,948
py
Python
nicos_mlz/ngh/setups/memograph-treff.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/ngh/setups/memograph-treff.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos_mlz/ngh/setups/memograph-treff.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'memograph readout' devices = dict( t_in_memograph_treff = device('nicos_mlz.devices.memograph.MemographValue', hostname = 'memograph04.care.frm2', group = 2, valuename = 'T_in TREFF', description = 'inlet temperature memograph', ), t_out_memograph_treff = devic...
37.461538
82
0.644251
908974b0d5137e8f37ea4cfbd9fef342a0fcbea6
17,802
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuit_peerings_operations.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuit_peerings_operations.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuit_peerings_operations.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.854839
195
0.676216
6be40a31f61f2460917b2b86a9e8de8bea56c2ed
1,018
py
Python
tests/dft/test_bader.py
dgehringer/pyiron_atomistics
f8f2d573a483e802c8e5840998a0769378b95e31
[ "BSD-3-Clause" ]
14
2021-01-18T10:03:56.000Z
2022-03-01T20:59:35.000Z
tests/dft/test_bader.py
dgehringer/pyiron_atomistics
f8f2d573a483e802c8e5840998a0769378b95e31
[ "BSD-3-Clause" ]
569
2018-04-12T06:37:14.000Z
2022-03-31T18:06:27.000Z
tests/dft/test_bader.py
srmnitc/pyiron_atomistics
2c8052b082f2c4fb6f6291ac2b1f801ea7ab1567
[ "BSD-3-Clause" ]
6
2018-10-23T09:48:48.000Z
2022-02-13T12:13:00.000Z
# coding: utf-8 # Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department # Distributed under the terms of "New BSD License", see the LICENSE file. import unittest import numpy as np import os from pyiron_atomistics.dft.bader import parse_charge_vol_file from pyiron_a...
40.72
108
0.74165
6ae28fb22db93a299c87db3bbb2764e9f9c4bdeb
4,084
py
Python
lstchain/scripts/onsite/onsite_create_ffactor_systematics_file.py
cta-observatory/cta-lstchain
d2d22567a6d0028737dd3b663f45c6206e43c437
[ "BSD-3-Clause" ]
19
2018-05-30T14:13:16.000Z
2022-03-10T14:04:04.000Z
lstchain/scripts/onsite/onsite_create_ffactor_systematics_file.py
cta-observatory/cta-lstchain
d2d22567a6d0028737dd3b663f45c6206e43c437
[ "BSD-3-Clause" ]
868
2018-05-31T12:02:25.000Z
2022-03-30T16:02:42.000Z
lstchain/scripts/onsite/onsite_create_ffactor_systematics_file.py
cta-observatory/cta-lstchain
d2d22567a6d0028737dd3b663f45c6206e43c437
[ "BSD-3-Clause" ]
76
2018-05-31T09:59:02.000Z
2022-01-29T17:57:49.000Z
#!/usr//bin/env python """ Onsite script to create a F-factor systematic correction file by fitting an intensity scan """ import argparse import os import subprocess from lstchain.io.data_management import query_yes_no import lstchain def none_or_str(value): if value == "None": return None retur...
34.033333
129
0.641283
418ebf94b1c84c216ff5b1f215c9c2b6866896ad
7,777
py
Python
src/dispatch/plugins/dispatch_slack/actions.py
patcable/dispatch
bd7a2dfd1361a56ac6db12e69b7c9ac5695aee37
[ "Apache-2.0" ]
null
null
null
src/dispatch/plugins/dispatch_slack/actions.py
patcable/dispatch
bd7a2dfd1361a56ac6db12e69b7c9ac5695aee37
[ "Apache-2.0" ]
null
null
null
src/dispatch/plugins/dispatch_slack/actions.py
patcable/dispatch
bd7a2dfd1361a56ac6db12e69b7c9ac5695aee37
[ "Apache-2.0" ]
null
null
null
from fastapi import BackgroundTasks from dispatch.conversation import service as conversation_service from dispatch.conversation.enums import ConversationButtonActions from dispatch.database import SessionLocal from dispatch.decorators import background_task from dispatch.incident import flows as incident_flows from d...
41.367021
151
0.743474
d5127fc0c8fa03ca1295ca888e69ab0cdb154fb8
8,121
py
Python
kair/main_train_rrdb_psnr.py
gifwittit/KAIR
4391a476058037e73893b59f4ae78ecb788a6686
[ "MIT" ]
null
null
null
kair/main_train_rrdb_psnr.py
gifwittit/KAIR
4391a476058037e73893b59f4ae78ecb788a6686
[ "MIT" ]
null
null
null
kair/main_train_rrdb_psnr.py
gifwittit/KAIR
4391a476058037e73893b59f4ae78ecb788a6686
[ "MIT" ]
null
null
null
import os.path import math import argparse import random import numpy as np import logging from torch.utils.data import DataLoader import torch from kair.utils import utils_logger, utils_option as option, utils_image as util from kair.data.select_dataset import define_Dataset from kair.models.select_model import defi...
35.933628
131
0.440956
0e61ea5030f0bcdb08bcb2d55b6b2429d8df5760
35,473
py
Python
core/domain/opportunity_services.py
ReshuKumari/oppia
cb89b633275b3d0b2d02e0d22e0c472d8b8da0e1
[ "Apache-2.0" ]
null
null
null
core/domain/opportunity_services.py
ReshuKumari/oppia
cb89b633275b3d0b2d02e0d22e0c472d8b8da0e1
[ "Apache-2.0" ]
null
null
null
core/domain/opportunity_services.py
ReshuKumari/oppia
cb89b633275b3d0b2d02e0d22e0c472d8b8da0e1
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2019 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
40.773563
80
0.737801
81cde8bbad2444317f45c9efc6e1c571d2368888
1,825
py
Python
watchman/integration/test_bsdish.py
kabat87/watchman
6cab7e98f70722e9d635086596d543c0e1875e28
[ "MIT" ]
null
null
null
watchman/integration/test_bsdish.py
kabat87/watchman
6cab7e98f70722e9d635086596d543c0e1875e28
[ "MIT" ]
null
null
null
watchman/integration/test_bsdish.py
kabat87/watchman
6cab7e98f70722e9d635086596d543c0e1875e28
[ "MIT" ]
null
null
null
# vim:ts=4:sw=4:et: # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os from watchman.integration.lib import WatchmanTestCase @WatchmanTestCase.expand_matrix class TestBSDish(Wat...
33.796296
85
0.603288
ea5b17dace93a0585ea82a8ca973c2d44f1700a3
360
py
Python
app/core/migrations/0005_auto_20210524_0120.py
ManemanFTW/recipe-app-api
c3ced191b0f428af1f9fd0eaaa5459ae956c2a19
[ "MIT" ]
null
null
null
app/core/migrations/0005_auto_20210524_0120.py
ManemanFTW/recipe-app-api
c3ced191b0f428af1f9fd0eaaa5459ae956c2a19
[ "MIT" ]
null
null
null
app/core/migrations/0005_auto_20210524_0120.py
ManemanFTW/recipe-app-api
c3ced191b0f428af1f9fd0eaaa5459ae956c2a19
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2021-05-24 01:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0004_recipe'), ] operations = [ migrations.RenameField( model_name='recipe', old_name='time_minute', ne...
18.947368
48
0.580556
f39af7509c93998789d558137fdc6f0da7e9ef61
58
py
Python
1_PROGI/Exe 1.py
Julymusso/IFES
939277c375dacc7750705c5593537d80ab4cbc0e
[ "MIT" ]
null
null
null
1_PROGI/Exe 1.py
Julymusso/IFES
939277c375dacc7750705c5593537d80ab4cbc0e
[ "MIT" ]
null
null
null
1_PROGI/Exe 1.py
Julymusso/IFES
939277c375dacc7750705c5593537d80ab4cbc0e
[ "MIT" ]
null
null
null
#var #i: inteiro for i in range(1,21,1): print(i)
11.6
23
0.551724
6ccd4d93fe21f485bfa79babd7efd6f9ff8ecc42
903
py
Python
property/migrations/0011_auto_20191119_1610.py
NecrOctopuS/real_estate_agency
bcc61048dd9cbc150776ab90baae43cde0c35d9b
[ "MIT" ]
null
null
null
property/migrations/0011_auto_20191119_1610.py
NecrOctopuS/real_estate_agency
bcc61048dd9cbc150776ab90baae43cde0c35d9b
[ "MIT" ]
6
2020-06-06T00:40:27.000Z
2022-02-10T09:05:44.000Z
property/migrations/0011_auto_20191119_1610.py
NecrOctopuS/real_estate_agency
bcc61048dd9cbc150776ab90baae43cde0c35d9b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-11-19 13:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('property', '0010_auto_20191119_1338'), ] operations = [ migrations.RenameField( model_name='owner', old_name='owner'...
26.558824
127
0.568106
40d6863a2a3cb54daae8d312887468eb1336c862
628
py
Python
contest/migrations/0034_auto_20180703_1705.py
jxtxzzw/eoj3
468c16ed6de8b9b542972d0e83b02fd2cfa35e4f
[ "MIT" ]
1
2020-11-17T13:08:07.000Z
2020-11-17T13:08:07.000Z
contest/migrations/0034_auto_20180703_1705.py
zerolfx/eoj3
156060399d1c3e5f7bcdbf34eaffbe2be66e1b20
[ "MIT" ]
2
2020-09-23T21:27:55.000Z
2021-06-25T15:24:46.000Z
contest/migrations/0034_auto_20180703_1705.py
zerolfx/eoj3
156060399d1c3e5f7bcdbf34eaffbe2be66e1b20
[ "MIT" ]
1
2019-07-13T00:44:39.000Z
2019-07-13T00:44:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-07-03 17:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('contest', '0033_contest_volunteers'), ] operations = [ migrations.AlterField(...
29.904762
220
0.61465
7828290560a0895bd79a59e89cadae94dab0f721
4,957
py
Python
tests/components/solarlog/test_config_flow.py
jasperro/core
26d7b2164e8a971506790ae5af06f31abdf278b5
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
tests/components/solarlog/test_config_flow.py
jasperro/core
26d7b2164e8a971506790ae5af06f31abdf278b5
[ "Apache-2.0" ]
9
2022-01-27T06:32:10.000Z
2022-03-31T07:07:51.000Z
tests/components/solarlog/test_config_flow.py
jasperro/core
26d7b2164e8a971506790ae5af06f31abdf278b5
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Test the solarlog config flow.""" from unittest.mock import patch import pytest from homeassistant import config_entries, data_entry_flow, setup from homeassistant.components.solarlog import config_flow from homeassistant.components.solarlog.const import DEFAULT_HOST, DOMAIN from homeassistant.const import CONF_HO...
36.448529
92
0.700222
4b37dc35cfe1c1a97eadc9907815c0c1a618fcbd
10,388
py
Python
qtum_electrum/dnssec.py
TuoUP/qtum-electrum
d353c3cacce62214660a91836b68133aa92710d3
[ "MIT" ]
null
null
null
qtum_electrum/dnssec.py
TuoUP/qtum-electrum
d353c3cacce62214660a91836b68133aa92710d3
[ "MIT" ]
null
null
null
qtum_electrum/dnssec.py
TuoUP/qtum-electrum
d353c3cacce62214660a91836b68133aa92710d3
[ "MIT" ]
2
2020-01-20T07:51:45.000Z
2020-07-18T08:31:54.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without...
37.912409
418
0.657297
e78cbe4d24272b25eb8bc2833b689d27daed6bfe
1,100
py
Python
scripts/main.py
vsevdrob/nft-brownie-ipfs-pinata-hashlips
32080aa0eca2ee3143e1845adf0a246bbe148192
[ "MIT" ]
2
2022-03-06T21:14:58.000Z
2022-03-16T00:22:22.000Z
scripts/main.py
webdriedesign/nft-brownie-ipfs-pinata-hashlips
32080aa0eca2ee3143e1845adf0a246bbe148192
[ "MIT" ]
2
2022-03-17T00:53:53.000Z
2022-03-17T00:59:20.000Z
scripts/main.py
webdriedesign/nft-brownie-ipfs-pinata-hashlips
32080aa0eca2ee3143e1845adf0a246bbe148192
[ "MIT" ]
1
2022-03-06T21:08:22.000Z
2022-03-06T21:08:22.000Z
from scripts.utils.modify_metadata import modify_metadata from helper_brownie import get_account from scripts.collectible.safe_mint import safe_mint from scripts.collectible.config import AMOUNT_TO_MINT, COLLECTIBLE from brownie import Collectible def main(): account = get_account() collectible = Collectible[...
36.666667
83
0.602727
bf13cc2903797d954c22d461ade24540e7ce7387
1,201
py
Python
my-rl/qlearning_agent.py
siowyisheng/rl-learning
767963d7a61a77df87dc9d38f30f75aeb7c2e454
[ "MIT" ]
null
null
null
my-rl/qlearning_agent.py
siowyisheng/rl-learning
767963d7a61a77df87dc9d38f30f75aeb7c2e454
[ "MIT" ]
null
null
null
my-rl/qlearning_agent.py
siowyisheng/rl-learning
767963d7a61a77df87dc9d38f30f75aeb7c2e454
[ "MIT" ]
null
null
null
# my implementation of a q-learning agent import random import numpy as np class QLearningAgent: """An agent which uses Q learning to optimize actions in an environment.""" def __init__(self, alpha, gamma): self._Q = {} self.alpha = alpha self.gamma = gamma def decide(self, stat...
34.314286
79
0.653622
454bbebb3c92a19b06882a3e19be5704aeb5fb01
4,735
py
Python
tests/test_utils.py
mkdryden/flatland-fork
53a992fc059719c87ba702583b32ec674df82528
[ "MIT" ]
null
null
null
tests/test_utils.py
mkdryden/flatland-fork
53a992fc059719c87ba702583b32ec674df82528
[ "MIT" ]
null
null
null
tests/test_utils.py
mkdryden/flatland-fork
53a992fc059719c87ba702583b32ec674df82528
[ "MIT" ]
null
null
null
# portions of this file are derived from SQLAlchemy from tests._util import eq_, assert_raises from flatland import util def test_lazy_property(): poison = False class Foo(object): @util.lazy_property def squiznart(self): assert not poison return 'abc' assert Foo...
26.160221
78
0.582471
9e5a1256034c8fed5fcdf0cb915dc6895ef816c1
26
py
Python
vaas-app/src/vaas/__init__.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
251
2015-09-02T10:50:51.000Z
2022-03-16T08:00:35.000Z
vaas-app/src/vaas/__init__.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
154
2015-09-02T14:54:08.000Z
2022-03-16T08:34:17.000Z
vaas-app/src/vaas/__init__.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
31
2015-09-03T07:51:05.000Z
2020-09-24T09:02:40.000Z
VERSION = ('2', '0', '1')
13
25
0.384615
e548183265e85cf4468da3103006bdf28132ec01
3,413
py
Python
functional_tests/test_cluster.py
raphaelm/django-parrot
3b33dced0f465379ab682ef975916b891b869e88
[ "Apache-2.0" ]
4
2016-04-03T13:47:02.000Z
2021-12-04T09:55:39.000Z
functional_tests/test_cluster.py
raphaelm/django-parrot
3b33dced0f465379ab682ef975916b891b869e88
[ "Apache-2.0" ]
13
2016-04-02T23:04:53.000Z
2016-07-02T09:35:46.000Z
functional_tests/test_cluster.py
raphaelm/django-parrot
3b33dced0f465379ab682ef975916b891b869e88
[ "Apache-2.0" ]
null
null
null
import multiprocessing import requests from functional_tests import utils_proxy from . import utils def test_put_propagation(): with utils.running_cockatiel_cluster(nodenum=3) as procs: content = 'Hello, this is a testfile'.encode('utf-8') resp = requests.put( 'http://127.0.0.1:{port...
33.460784
106
0.565778
00ad90780fb5780afd0e4567b3427d2126bce9bd
67,184
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/_virtual_network_gateways_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/_virtual_network_gateways_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/_virtual_network_gateways_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
49.363703
231
0.689911
877d842bf74be80d695b9cfe654b2bfb71c1a904
142
py
Python
weather.py
gding/vehicle-modeler
3c4bc53446c1e47c33300de72536f7fa6c71381d
[ "BSD-3-Clause" ]
null
null
null
weather.py
gding/vehicle-modeler
3c4bc53446c1e47c33300de72536f7fa6c71381d
[ "BSD-3-Clause" ]
null
null
null
weather.py
gding/vehicle-modeler
3c4bc53446c1e47c33300de72536f7fa6c71381d
[ "BSD-3-Clause" ]
null
null
null
class Weather(object): def __init__( self, lat, lon, wind_speed, wind_direction, solar_irradiance, cloud_cover):
23.666667
55
0.633803
f61893c71874538d5c062919e261de41db927489
5,554
py
Python
cryptoauthlib/python/cryptoauthlib/iface.py
pjaos/atca
1a6d04468706235c2c8c3b97f6ce3df5f1fba4ec
[ "Apache-2.0" ]
8
2018-01-30T16:24:37.000Z
2022-02-25T12:50:22.000Z
cryptoauthlib/python/cryptoauthlib/iface.py
pjaos/atca
1a6d04468706235c2c8c3b97f6ce3df5f1fba4ec
[ "Apache-2.0" ]
6
2018-03-29T15:07:39.000Z
2022-02-25T11:36:06.000Z
cryptoauthlib/python/cryptoauthlib/iface.py
pjaos/atca
1a6d04468706235c2c8c3b97f6ce3df5f1fba4ec
[ "Apache-2.0" ]
3
2018-04-10T11:17:10.000Z
2021-11-01T23:43:59.000Z
""" Interface Configuration """ # (c) 2015-2018 Microchip Technology Inc. and its subsidiaries. # # Subject to your compliance with these terms, you may use Microchip software # and any derivatives exclusively with Microchip products. It is your # responsibility to comply with third party license terms applicable to yo...
34.7125
108
0.675729
719b7b42aa1d2dd6264575f409d9bea327dac641
843
py
Python
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/Pmv/hostappInterface/cinema4d/test/c4dPmvClient.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/Pmv/hostappInterface/cinema4d/test/c4dPmvClient.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
null
null
null
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/Pmv/hostappInterface/cinema4d/test/c4dPmvClient.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
null
null
null
############################################## # pmvClient.py (c) 2009 by Ludovic Autin # # # # Description: # # # # # ############################################## from Pmv.moleculeViewer import MoleculeViewer from mglu...
36.652174
128
0.608541
3a0a056d3638c0009e50569aed6ad50e137e2ecd
8,776
py
Python
lean/commands/research.py
InvestWeMust/lean-cli
a7241a0af6202dc7d56c0f35d09e51798cc5d426
[ "Apache-2.0" ]
76
2021-02-03T02:32:32.000Z
2022-03-28T17:04:03.000Z
lean/commands/research.py
InvestWeMust/lean-cli
a7241a0af6202dc7d56c0f35d09e51798cc5d426
[ "Apache-2.0" ]
64
2021-02-28T23:14:17.000Z
2022-03-30T23:22:24.000Z
lean/commands/research.py
InvestWeMust/lean-cli
a7241a0af6202dc7d56c0f35d09e51798cc5d426
[ "Apache-2.0" ]
50
2021-02-11T01:25:24.000Z
2022-03-17T03:56:29.000Z
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean CLI v1.0. Copyright 2021 QuantConnect 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...
48.486188
204
0.682201
4f95f2d34263065bdf9005722a687a8b18430389
2,139
py
Python
InteractionTracker/analytics/migrations/0002_auto_20171016_1150.py
desertzebra/Lean-UX-Platform
1b61a4b4e0af6fc08e052fb22b4141e65122ef9a
[ "Apache-2.0" ]
34
2019-03-11T08:10:16.000Z
2021-12-14T05:53:22.000Z
InteractionTracker/analytics/migrations/0002_auto_20171016_1150.py
shahidzaffar/Lean-UX-Platform
40c46c0421dd21cdfca254db689bf566c95e4d6a
[ "Apache-2.0" ]
6
2020-11-17T06:57:39.000Z
2022-01-04T16:51:41.000Z
InteractionTracker/analytics/migrations/0002_auto_20171016_1150.py
shahidzaffar/Lean-UX-Platform
40c46c0421dd21cdfca254db689bf566c95e4d6a
[ "Apache-2.0" ]
28
2019-03-11T08:10:19.000Z
2021-12-14T06:02:37.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-16 02:50 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('analytics', '0001_initial'), ] operations = [ migrations.AlterField( ...
30.126761
63
0.553062
a9fc8d2bb26436a7865655574c6a46645e2d1904
15,099
py
Python
google/cloud/appengine_admin_v1/types/app_yaml.py
parthea/python-appengine-admin
b23b075ae60fb5b7452e9c996b0febdeea81c50e
[ "Apache-2.0" ]
null
null
null
google/cloud/appengine_admin_v1/types/app_yaml.py
parthea/python-appengine-admin
b23b075ae60fb5b7452e9c996b0febdeea81c50e
[ "Apache-2.0" ]
null
null
null
google/cloud/appengine_admin_v1/types/app_yaml.py
parthea/python-appengine-admin
b23b075ae60fb5b7452e9c996b0febdeea81c50e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
35.527059
108
0.671501
d363f269f060ab90666a0a0459316360b0d4efbb
1,105
py
Python
aulas/.resps/parabola.py
achiaver/introducaopython
10c192e680732fd1a244d30822f8e227a2b118dc
[ "MIT" ]
7
2019-03-18T19:38:19.000Z
2021-01-25T20:36:43.000Z
aulas/.resps/parabola.py
achiaver/introducaopython
10c192e680732fd1a244d30822f8e227a2b118dc
[ "MIT" ]
null
null
null
aulas/.resps/parabola.py
achiaver/introducaopython
10c192e680732fd1a244d30822f8e227a2b118dc
[ "MIT" ]
2
2020-03-08T14:23:43.000Z
2020-08-26T14:36:18.000Z
import numpy as np import matplotlib.pyplot as plt from matplotlib import rc rc('font',**{'family':'serif','serif':['Palatino']}) plt.rc('text', usetex=True) x = np.linspace(-4.49, 3.49, 101) a, b, c = 1, 1, -2 y = a*x**2 + b*x + c fig = plt.figure(figsize=(5,4)) gs = plt.GridSpec(1,1, figure=fig) ax = fig.add_subp...
33.484848
94
0.669683
e272a7a67dd36315a90f320d10af2c354f6ea8ef
488
py
Python
src/core/wsgi.py
FGlazov/il2_stats
fb91754e8319c645c875ef3c98c8ec5a3aa01fc2
[ "MIT" ]
11
2016-12-15T21:12:55.000Z
2021-05-02T03:56:41.000Z
src/core/wsgi.py
FGlazov/il2_stats
fb91754e8319c645c875ef3c98c8ec5a3aa01fc2
[ "MIT" ]
16
2019-10-05T21:22:22.000Z
2022-03-11T23:18:01.000Z
src/core/wsgi.py
FGlazov/il2_stats
fb91754e8319c645c875ef3c98c8ec5a3aa01fc2
[ "MIT" ]
4
2020-07-10T01:09:39.000Z
2021-11-24T10:45:30.000Z
""" WSGI config for il2_stats project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
25.684211
78
0.790984
920e1b263be61db8e5a057bff0189137222b88f3
202
py
Python
students/k3340/laboratory_works/MariKh4/laboratory_work_1/scientific_conferences/forms.py
MariKh4/ITMO_ICT_WebProgramming_2020
5296fcfe118490edbd9ec8758bcd9ffe2a0de333
[ "MIT" ]
null
null
null
students/k3340/laboratory_works/MariKh4/laboratory_work_1/scientific_conferences/forms.py
MariKh4/ITMO_ICT_WebProgramming_2020
5296fcfe118490edbd9ec8758bcd9ffe2a0de333
[ "MIT" ]
null
null
null
students/k3340/laboratory_works/MariKh4/laboratory_work_1/scientific_conferences/forms.py
MariKh4/ITMO_ICT_WebProgramming_2020
5296fcfe118490edbd9ec8758bcd9ffe2a0de333
[ "MIT" ]
null
null
null
from django import forms from .models import Comment from django.contrib.auth.models import User class CommentForm(forms.ModelForm): class Meta: model = Comment fields = ('body',)
20.2
43
0.70297
0e9bc3aed69a3fe7ad20772a7dadbea92a8af146
4,484
py
Python
manila_tempest_tests/tests/api/admin/test_share_snapshot_instances_negative.py
openstack/manila-tempest-plugin
9c4a97b150e15b814acd4feb4da858a0eeff881e
[ "Apache-2.0" ]
9
2017-10-31T10:36:34.000Z
2020-10-07T01:31:38.000Z
manila_tempest_tests/tests/api/admin/test_share_snapshot_instances_negative.py
openstack/manila-tempest-plugin
9c4a97b150e15b814acd4feb4da858a0eeff881e
[ "Apache-2.0" ]
null
null
null
manila_tempest_tests/tests/api/admin/test_share_snapshot_instances_negative.py
openstack/manila-tempest-plugin
9c4a97b150e15b814acd4feb4da858a0eeff881e
[ "Apache-2.0" ]
4
2018-07-19T13:55:51.000Z
2021-11-05T17:50:27.000Z
# Copyright 2016 Huawei # 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...
40.396396
78
0.71521
6db43ed10d86518115fc639ba654d14345bd6fd5
2,027
py
Python
setup.py
klmitch/micropath
3de7f3d3da59dea802b502ebc71ec5e139e25e1f
[ "Apache-2.0" ]
1
2018-06-07T22:17:14.000Z
2018-06-07T22:17:14.000Z
setup.py
klmitch/micropath
3de7f3d3da59dea802b502ebc71ec5e139e25e1f
[ "Apache-2.0" ]
null
null
null
setup.py
klmitch/micropath
3de7f3d3da59dea802b502ebc71ec5e139e25e1f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import setuptools # Utility function to read the README file def readfile(filename): with open(filename) as f: return f.read() # Utility function to read requirements.txt files def readreq(filename): result = [] with open(filename) as f: for line in f: ...
29.808824
78
0.563394
063498a0e6c75b31e43af3d7926c1195bdeb64f5
54,278
py
Python
pypy/module/_cppyy/interp_cppyy.py
DinrusGroup/PyPy
9fb17e23a17e3cf511cf9c4d11408393df4748c2
[ "Apache-2.0", "OpenSSL" ]
4
2019-02-11T06:58:43.000Z
2020-03-15T14:12:32.000Z
pypy/module/_cppyy/interp_cppyy.py
DinrusGroup/PyPy
9fb17e23a17e3cf511cf9c4d11408393df4748c2
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/_cppyy/interp_cppyy.py
DinrusGroup/PyPy
9fb17e23a17e3cf511cf9c4d11408393df4748c2
[ "Apache-2.0", "OpenSSL" ]
null
null
null
import pypy.module._cppyy.capi as capi from pypy.interpreter.error import OperationError, oefmt from pypy.interpreter.gateway import interp2app, unwrap_spec from pypy.interpreter.typedef import TypeDef, GetSetProperty, interp_attrproperty from pypy.interpreter.baseobjspace import W_Root from rpython.rtyper.lltypesyst...
41.182094
104
0.658315
4ac03ef1da7114aa54fd5f519f17d2dee24e58b8
836
py
Python
utilities.py
MadReza/WebParser
0b048f16d861bf7113428bfffe97b24151660217
[ "MIT" ]
null
null
null
utilities.py
MadReza/WebParser
0b048f16d861bf7113428bfffe97b24151660217
[ "MIT" ]
null
null
null
utilities.py
MadReza/WebParser
0b048f16d861bf7113428bfffe97b24151660217
[ "MIT" ]
null
null
null
###~~File Retriver~~### from glob import glob def getFilePathsMatching(path): return glob(path); ###~~Cleaning~~### import string import re from nltk.corpus import stopwords from nltk import word_tokenize #from nltk import wordpunct_tokenize, Text cachedStopWords = stopwords.words("english") cachedPunctuation = ...
28.827586
84
0.697368
c3cdadc68295e379bc7e0ae992a11aab794979b0
2,639
py
Python
config/config.py
dataforgoodfr/batch8_actioncontrelafaim
0e28d42a10bc4734f1d618bd57ad3b3cfdae1cbe
[ "MIT" ]
null
null
null
config/config.py
dataforgoodfr/batch8_actioncontrelafaim
0e28d42a10bc4734f1d618bd57ad3b3cfdae1cbe
[ "MIT" ]
11
2020-10-17T13:37:35.000Z
2020-11-13T18:00:49.000Z
config/config.py
dataforgoodfr/batch8_actioncontrelafaim
0e28d42a10bc4734f1d618bd57ad3b3cfdae1cbe
[ "MIT" ]
null
null
null
# inspired from: https://stackoverflow.com/a/38409774/8086033 from pathlib import Path import inspect import yaml class sources: def __init__(self, abs_root): # WFP Hunger Covid Snapshots self.wfp_hunger_covid_snapshots_overview_url = "https://static.hungermapdata.org/hungermap/reports/hunger_covi...
51.745098
140
0.755589
ddbe37ae0609c196e81dd3d1ffcd9d3dc54e0f68
771
py
Python
configs/selfsup/_test_/models/resnet18_simsiam.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/_test_/models/resnet18_simsiam.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/_test_/models/resnet18_simsiam.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
1
2022-03-15T11:31:48.000Z
2022-03-15T11:31:48.000Z
# model settings model = dict( type='SimSiamL', backbone=dict( type='ResNet', depth=18, in_channels=3, out_indices=[4], # 0: conv-1, x: stage-x norm_cfg=dict(type='SyncBN'), zero_init_residual=True), neck=dict( type='NonLinearNeck', in_channel...
24.870968
49
0.551232
92dbf02ea3ada33896a8ea8ae29382f59f092c89
3,963
py
Python
fpms/modules/modes.py
joshschmelzle/wlanpi-fpms
0f57519170f8c164aa8420c98ee4a3f63a6673c1
[ "BSD-3-Clause" ]
null
null
null
fpms/modules/modes.py
joshschmelzle/wlanpi-fpms
0f57519170f8c164aa8420c98ee4a3f63a6673c1
[ "BSD-3-Clause" ]
null
null
null
fpms/modules/modes.py
joshschmelzle/wlanpi-fpms
0f57519170f8c164aa8420c98ee4a3f63a6673c1
[ "BSD-3-Clause" ]
null
null
null
import time import os.path import subprocess import fpms.modules.wlanpi_oled as oled from fpms.modules.pages.alert import Alert from fpms.modules.pages.simpletable import SimpleTable from fpms.modules.constants import ( WCONSOLE_SWITCHER_FILE, HOTSPOT_SWITCHER_FILE, WIPERF_SWITCHER_FILE, SERVER_SWITCHE...
31.204724
127
0.660611
50eb4a4cc975b84dc891495722641b27a2023ceb
4,966
py
Python
Indel_frequency_calculator.py
CRISPRJWCHOI/IndelSearcher
5824069868499bfbbd74582d5dc7a9a64a15035b
[ "MIT" ]
2
2020-05-13T03:13:24.000Z
2021-04-30T03:30:08.000Z
Indel_frequency_calculator.py
CRISPRJWCHOI/IndelSearcher
5824069868499bfbbd74582d5dc7a9a64a15035b
[ "MIT" ]
null
null
null
Indel_frequency_calculator.py
CRISPRJWCHOI/IndelSearcher
5824069868499bfbbd74582d5dc7a9a64a15035b
[ "MIT" ]
2
2021-01-30T01:43:19.000Z
2021-07-12T11:47:58.000Z
#!/usr/bin/env python import os import sys import pdb from datetime import datetime from collections import namedtuple as nt from collections import OrderedDict sOutput_dir = sys.argv[1] def Calculate_indel_freq(): if not os.path.isdir('{outdir}/result/freq/freq_result'.format(outdir=sOutput_dir)): os.mkdir('{o...
41.383333
160
0.538059
39410c02d654e24f14f675898acc5e62bc1647bc
2,078
py
Python
samples/polybench/heat-3d.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
227
2019-03-15T23:39:06.000Z
2022-03-30T07:49:08.000Z
samples/polybench/heat-3d.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
834
2019-07-31T22:49:31.000Z
2022-03-28T14:01:32.000Z
samples/polybench/heat-3d.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
64
2019-03-19T05:40:37.000Z
2022-03-11T15:02:42.000Z
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace import polybench N = dace.symbol('N') tsteps = dace.symbol('tsteps') #datatypes = [dace.float64, dace.int32, dace.float32] datatype = dace.float64 # Dataset sizes sizes = [{ tsteps: 20, N: 10 }, { tsteps: 40, N: 2...
25.341463
79
0.400385
23d0a2b67c525d9313fb7bf1db1366b63b71e27f
666
py
Python
core/audit/recorder.py
AntonioGr7/grimai
d3b4724ca5636d8afefa322a5020c5a927ce0db4
[ "MIT" ]
null
null
null
core/audit/recorder.py
AntonioGr7/grimai
d3b4724ca5636d8afefa322a5020c5a927ce0db4
[ "MIT" ]
null
null
null
core/audit/recorder.py
AntonioGr7/grimai
d3b4724ca5636d8afefa322a5020c5a927ce0db4
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt import numpy as np class Recorder: def __init__(self): self.loss = 0 self.loss_history = [] self.best_loss = np.inf self.metrics = {} self.accuracy = 0 self.f1_score = 0 self.count = 0 def __reset__(self): sel...
22.965517
43
0.567568
a9b366dddb639bbc774d318518c34224a21a5869
1,637
py
Python
bcc/urls.py
blkCodeCollctve/bcc-cms
25a6f91d603311e755f6104a4960c8b19e1ab986
[ "MIT" ]
1
2017-12-28T00:32:25.000Z
2017-12-28T00:32:25.000Z
bcc/urls.py
blkCodeCollctve/bcc-cms
25a6f91d603311e755f6104a4960c8b19e1ab986
[ "MIT" ]
1
2020-07-20T21:17:43.000Z
2020-07-20T21:17:43.000Z
bcc/urls.py
blkCodeCollctve/bcc-cms
25a6f91d603311e755f6104a4960c8b19e1ab986
[ "MIT" ]
1
2019-10-01T21:49:22.000Z
2019-10-01T21:49:22.000Z
"""bcc URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
44.243243
87
0.698228
3a0aefe62415327fe0d109f029de9ff96f036b89
1,958
py
Python
boards/views.py
yardy0x/infomate.club
d30a704ff1906bffd2d3d20309dfcc9015dd943c
[ "Apache-2.0" ]
1
2020-06-29T16:57:54.000Z
2020-06-29T16:57:54.000Z
boards/views.py
yardy0x/infomate.club
d30a704ff1906bffd2d3d20309dfcc9015dd943c
[ "Apache-2.0" ]
8
2021-04-08T21:57:00.000Z
2022-03-12T00:50:04.000Z
boards/views.py
yardy0x/infomate.club
d30a704ff1906bffd2d3d20309dfcc9015dd943c
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta from django.conf import settings from django.core.cache import cache from django.shortcuts import render, get_object_or_404 from django.views.decorators.cache import cache_page from django.views.decorators.http import last_modified from auth.helpers import authorized_user from...
29.666667
80
0.721655
c2937321a4461960fbe77ddbaacac035c18d3614
417
py
Python
aldryn_search/conf.py
jdgoettsch/aldryn-search
d9720a33ee6251d29e2ec86014af4eb998403f45
[ "BSD-3-Clause" ]
null
null
null
aldryn_search/conf.py
jdgoettsch/aldryn-search
d9720a33ee6251d29e2ec86014af4eb998403f45
[ "BSD-3-Clause" ]
1
2020-04-09T10:50:31.000Z
2020-04-10T08:21:08.000Z
aldryn_search/conf.py
jdgoettsch/aldryn-search
d9720a33ee6251d29e2ec86014af4eb998403f45
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings from appconf import AppConf class AldrynSearchAppConf(AppConf): CMS_PAGE = True DEFAULT_LANGUAGE = settings.LANGUAGE_CODE INDEX_BASE_CLASS = 'aldryn_search.base.AldrynIndexBase' LANGUAGE_FROM_ALIAS = 'aldryn_search.utils.language_from_alias' ...
23.166667
67
0.733813
cd93fd94f50ae6d432b278d9e8790c835acbf87c
58,382
py
Python
tests/test_coco_format.py
jenhaoyang/datumaro
add81ddb59502362fa65fa07e5bc4d8c9f61afde
[ "MIT" ]
null
null
null
tests/test_coco_format.py
jenhaoyang/datumaro
add81ddb59502362fa65fa07e5bc4d8c9f61afde
[ "MIT" ]
null
null
null
tests/test_coco_format.py
jenhaoyang/datumaro
add81ddb59502362fa65fa07e5bc4d8c9f61afde
[ "MIT" ]
1
2021-12-15T22:15:59.000Z
2021-12-15T22:15:59.000Z
from functools import partial from itertools import product from unittest import TestCase import os import os.path as osp import numpy as np from datumaro.components.annotation import ( AnnotationType, Bbox, Caption, Label, LabelCategories, Mask, Points, PointsCategories, Polygon, ) from datumaro.components.d...
42.959529
117
0.498527
28a81663ed9ef0dadf52fcce182b92acdbf7bef0
1,480
py
Python
vmware_nsx/shell/admin/plugins/nsxv3/resources/config.py
salv-orlando/vmware-nsx
6ad0d595aa8099004eb6dd5ff62c7a91b0e11dfd
[ "Apache-2.0" ]
null
null
null
vmware_nsx/shell/admin/plugins/nsxv3/resources/config.py
salv-orlando/vmware-nsx
6ad0d595aa8099004eb6dd5ff62c7a91b0e11dfd
[ "Apache-2.0" ]
null
null
null
vmware_nsx/shell/admin/plugins/nsxv3/resources/config.py
salv-orlando/vmware-nsx
6ad0d595aa8099004eb6dd5ff62c7a91b0e11dfd
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 VMware, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
36.097561
78
0.741216
f39c18706ce845aec0ce36d7d16aac0c32d22623
1,041
py
Python
list/migrations/0026_auto_20211116_1920.py
NiklasMerz/shoppinglist
38c494b2a2f80a0c543beaf0d9d9a75870bdbb22
[ "MIT" ]
null
null
null
list/migrations/0026_auto_20211116_1920.py
NiklasMerz/shoppinglist
38c494b2a2f80a0c543beaf0d9d9a75870bdbb22
[ "MIT" ]
45
2021-11-03T20:48:50.000Z
2021-12-14T21:22:12.000Z
list/migrations/0026_auto_20211116_1920.py
NiklasMerz/shoppinglist
38c494b2a2f80a0c543beaf0d9d9a75870bdbb22
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-11-16 19:20 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('list', '0025_remove_lineitem_time'), ] operations = [ migrations.RemoveField( model_name='linei...
32.53125
157
0.602305
e7115ab70839b3be92f80d5f7dbe422256d9979d
54,410
py
Python
Lib/site-packages/pymongo/mongo_client.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/pymongo/mongo_client.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pymongo/mongo_client.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
# Copyright 2009-2015 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you # may not use this file except in compliance with the License. You # may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
43.949919
83
0.600202
40e24f0e11b085370b32c95d9fd620cf2bbff9fc
3,418
py
Python
sample.py
vittorio-nardone/Image-Captioning-Project
fdbcc972e8ff96ff987893f78cf483dd0f32d4b2
[ "MIT" ]
null
null
null
sample.py
vittorio-nardone/Image-Captioning-Project
fdbcc972e8ff96ff987893f78cf483dd0f32d4b2
[ "MIT" ]
null
null
null
sample.py
vittorio-nardone/Image-Captioning-Project
fdbcc972e8ff96ff987893f78cf483dd0f32d4b2
[ "MIT" ]
null
null
null
def warn(*args, **kwargs): pass import warnings warnings.warn = warn import torch import matplotlib.pyplot as plt import numpy as np import argparse import sys sys.path.append('/opt/cocoapi/PythonAPI') import pickle import os from torchvision import transforms from model import EncoderCNN, DecoderRNN from PIL i...
33.841584
117
0.656524
bfcc0ce2d896c79b72808a2a4bd98facd79d208c
257
py
Python
app/__init__.py
HWaruguru/Global-News-Highlight
6c4fccf6eab0d4f9244d7f32aeb36bcf0070c2f3
[ "MIT" ]
null
null
null
app/__init__.py
HWaruguru/Global-News-Highlight
6c4fccf6eab0d4f9244d7f32aeb36bcf0070c2f3
[ "MIT" ]
null
null
null
app/__init__.py
HWaruguru/Global-News-Highlight
6c4fccf6eab0d4f9244d7f32aeb36bcf0070c2f3
[ "MIT" ]
null
null
null
from flask import Flask from .config import DevConfig # Initializing application app = Flask(__name__, instance_relative_config = True) # Setting up configuration app.config.from_object(DevConfig) app.config.from_pyfile('config.py') from app import views
23.363636
54
0.81323
f2068292aea5c2ad94ff02478b26757596355db5
345
py
Python
easy/Mars Lander - Episode 1.py
izanbf1803/Codingame
864c13b664e0609d0eded0fae4a655c8e3881c76
[ "MIT" ]
1
2018-02-04T13:40:31.000Z
2018-02-04T13:40:31.000Z
easy/Mars Lander - Episode 1.py
izanbf1803/Codingame-solutions
864c13b664e0609d0eded0fae4a655c8e3881c76
[ "MIT" ]
null
null
null
easy/Mars Lander - Episode 1.py
izanbf1803/Codingame-solutions
864c13b664e0609d0eded0fae4a655c8e3881c76
[ "MIT" ]
2
2020-07-28T05:21:00.000Z
2021-12-04T01:18:30.000Z
import sys import math surface_n = int(input()) # the number of points used to draw the surface of Mars. for i in range(surface_n): land_x, land_y = [int(j) for j in input().split()] while True: x, y, h_speed, v_speed, fuel, rotate, power = [int(i) for i in input().split()] if v_speed <= -40: print("0 4...
28.75
83
0.637681
fee220b770b99c2ba07b97dba49548f7d547a8ae
2,281
py
Python
py/testdir_single_jvm/test_exec2_result_race.py
gigliovale/h2o
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
882
2015-05-22T02:59:21.000Z
2022-02-17T05:02:48.000Z
py/testdir_single_jvm/test_exec2_result_race.py
VonRosenchild/h2o-2
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
1
2022-02-22T12:15:02.000Z
2022-02-22T12:15:02.000Z
py/testdir_single_jvm/test_exec2_result_race.py
VonRosenchild/h2o-2
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
392
2015-05-22T17:04:11.000Z
2022-02-22T09:04:39.000Z
import unittest, random, sys, time, os sys.path.extend(['.','..','../..','py']) import h2o, h2o_browse as h2b, h2o_exec as h2e initList = [ 'Result.hex = c(0)', 'Result.hex = c(1)', 'Result.hex = c(2)', 'Result.hex = c(3)', 'Result.hex = c(4)', 'Result.hex = c(5)', ...
31.246575
106
0.543621
6e830c26bce24007d61ffa5e9b1021d8a5ab991c
1,465
py
Python
blog/views.py
bonnygl/my-first-blog
52e595dfe37401e6ae6ac4bd89ba6801486a0046
[ "Apache-2.0" ]
null
null
null
blog/views.py
bonnygl/my-first-blog
52e595dfe37401e6ae6ac4bd89ba6801486a0046
[ "Apache-2.0" ]
null
null
null
blog/views.py
bonnygl/my-first-blog
52e595dfe37401e6ae6ac4bd89ba6801486a0046
[ "Apache-2.0" ]
null
null
null
from django.utils import timezone from django.shortcuts import render, get_object_or_404, redirect, render from .forms import PostForm from .models import Post # Create your views here. def post_list(request): posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date') return r...
35.731707
94
0.643003
5cd99f75bfda7a662e387ec07deac47aa6faad4e
394
py
Python
tests/storage_adapter_tests/integration_tests/json_integration_tests.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
1
2016-05-21T21:26:15.000Z
2016-05-21T21:26:15.000Z
tests/storage_adapter_tests/integration_tests/json_integration_tests.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
null
null
null
tests/storage_adapter_tests/integration_tests/json_integration_tests.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
null
null
null
from tests.base_case import ChatBotTestCase from .base import StorageIntegrationTests class JsonStorageIntegrationTests(StorageIntegrationTests, ChatBotTestCase): def setUp(self): super(JsonStorageIntegrationTests, self).setUp() self.chatbot.storage_adapters = [] self.chatbot.add_adapter...
28.142857
76
0.741117
2fcbfc48539661b93503421fb7a6a9df610c6395
7,204
py
Python
preatrained_model.py
ashishkishor/Machine-learning
eca60d24ce10820c9df32c050275cb838634b640
[ "MIT" ]
null
null
null
preatrained_model.py
ashishkishor/Machine-learning
eca60d24ce10820c9df32c050275cb838634b640
[ "MIT" ]
null
null
null
preatrained_model.py
ashishkishor/Machine-learning
eca60d24ce10820c9df32c050275cb838634b640
[ "MIT" ]
null
null
null
import re # For preprocessing import pandas as pd # For data handling from time import time # To time our operations from collections import defaultdict # For word frequency import spacy # For preprocessing df = pd.read_csv('result.csv') df.head() df.isnull().sum() nlp = spacy.load('en_core_web_sm') #...
29.165992
111
0.674764
659eebd891eb979369f2988357ab0b68d48e4384
1,828
py
Python
pyeiscp/tools.py
klaashoekstra94/python-eiscp
80e47603ff5755c2a809ff79eeb9474a7940add3
[ "MIT" ]
1
2021-01-01T18:12:19.000Z
2021-01-01T18:12:19.000Z
pyeiscp/tools.py
klaashoekstra94/python-eiscp
80e47603ff5755c2a809ff79eeb9474a7940add3
[ "MIT" ]
5
2020-07-30T11:33:37.000Z
2021-12-18T10:33:46.000Z
pyeiscp/tools.py
klaashoekstra94/python-eiscp
80e47603ff5755c2a809ff79eeb9474a7940add3
[ "MIT" ]
4
2020-07-11T07:58:07.000Z
2021-03-29T18:32:41.000Z
"""Provides a raw console to test module and demonstrate usage.""" import argparse import asyncio import logging import pyeiscp __all__ = ("console", "monitor") async def console(loop, log): """Connect to receiver and show events as they occur. Pulls the following arguments from the command line (not metho...
28.5625
104
0.66302
b181657f8c381bc97e85a908c5b859b2f11c933c
6,176
py
Python
config.py
saydulk/admin4
dc99fa7c8a1e0417b131b7627a748e5a9b12c1bb
[ "Apache-2.0" ]
null
null
null
config.py
saydulk/admin4
dc99fa7c8a1e0417b131b7627a748e5a9b12c1bb
[ "Apache-2.0" ]
null
null
null
config.py
saydulk/admin4
dc99fa7c8a1e0417b131b7627a748e5a9b12c1bb
[ "Apache-2.0" ]
14
2017-01-12T11:13:49.000Z
2019-04-19T10:02:50.000Z
# The Admin4 Project # (c) 2013-2014 Andreas Pflug # # Licensed under the Apache License, # see LICENSE.TXT for conditions of usage import wx import logger from wh import StringType, evalAsPython ignoreStoredPositions=False class Config(wx.Config): """ OSX: ~/Library/Preferences/<name> Preferences """ def ...
27.945701
76
0.630019
731b95e19254c98f675b255cf5d54b4f50a935e8
1,812
py
Python
tests/covid_health/test_ita.py
ggbaro/covid-health-ita
267801c3de021078a1ca5d3b93b47515315f0300
[ "MIT" ]
3
2020-03-25T22:20:07.000Z
2020-03-29T10:01:24.000Z
tests/covid_health/test_ita.py
ggbaro/covid-health-ita
267801c3de021078a1ca5d3b93b47515315f0300
[ "MIT" ]
null
null
null
tests/covid_health/test_ita.py
ggbaro/covid-health-ita
267801c3de021078a1ca5d3b93b47515315f0300
[ "MIT" ]
null
null
null
import pytest import pandas as pd from covid_health.ita import ( prep_istat, prep_salutegov, prep_other_data, prep_pcm_dpc, ) # ISTAT @pytest.mark.parametrize( "figure", ["2019_pop_regions", "2018_pop_regions", "2019_pop_provinces"], ) def test_istat_geodemo(figure): result = prep_istat.parse_i...
26.26087
77
0.715784
9a4859a891e2dd68a637983d4e62a91f9baced58
3,696
py
Python
tests/export/test_export_variants.py
szilvajuhos/scout
2f4a03fb3192a57c99fd62be626e8c22051e81af
[ "BSD-3-Clause" ]
null
null
null
tests/export/test_export_variants.py
szilvajuhos/scout
2f4a03fb3192a57c99fd62be626e8c22051e81af
[ "BSD-3-Clause" ]
null
null
null
tests/export/test_export_variants.py
szilvajuhos/scout
2f4a03fb3192a57c99fd62be626e8c22051e81af
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from scout.export.variant import export_mt_variants, export_verified_variants from scout.constants.variants_export import MT_EXPORT_HEADER, VERIFIED_VARIANTS_HEADER from scout.constants import CALLERS def test_export_mt_variants(case_obj, real_populated_database): """Test the function that...
40.615385
98
0.695617
db2426aba32becf712bed9e2d75ac7bdc121613a
5,207
py
Python
model/atturesnext_feat_nlocal.py
z1021190674/GMAUResNeXt_RS
a8a7444bf30e509cefc01b3be4b0587d367cda2e
[ "MIT" ]
1
2022-03-23T11:54:33.000Z
2022-03-23T11:54:33.000Z
model/atturesnext_feat_nlocal.py
z1021190674/GMAUResNeXt_RS
a8a7444bf30e509cefc01b3be4b0587d367cda2e
[ "MIT" ]
null
null
null
model/atturesnext_feat_nlocal.py
z1021190674/GMAUResNeXt_RS
a8a7444bf30e509cefc01b3be4b0587d367cda2e
[ "MIT" ]
null
null
null
""" uresnext_nlocal with global attention """ from model.block import * import torch.nn as nn import torch.nn.functional as F import torch import torchvision.models as models class AttUResNeXt_feat_nlocal(nn.Module): """Decoder part of the UNet Parameters: n_classes -- number of the classes of ...
36.159722
128
0.593048
605d02b525c617770c14eee3d85eb57eaaee717f
723
py
Python
yeast8_FBA_low_high_glucose_fluxes/merge_fluxes_yeast8.py
NCBI-Codeathons/Integrating-multi-omics-data-in-yeast
b8be2470bfecc7c2d69debfca15881aab0124c5a
[ "MIT" ]
3
2020-03-31T11:22:37.000Z
2021-03-20T09:56:23.000Z
yeast8_FBA_low_high_glucose_fluxes/merge_fluxes_yeast8.py
NCBI-Codeathons/Integrating-multi-omics-data-in-yeast
b8be2470bfecc7c2d69debfca15881aab0124c5a
[ "MIT" ]
null
null
null
yeast8_FBA_low_high_glucose_fluxes/merge_fluxes_yeast8.py
NCBI-Codeathons/Integrating-multi-omics-data-in-yeast
b8be2470bfecc7c2d69debfca15881aab0124c5a
[ "MIT" ]
2
2020-03-11T13:20:04.000Z
2020-03-13T20:38:15.000Z
# -*- coding: utf-8 -*- """ Created on Fri Mar 13 12:47:52 2020 @author: samur """ import numpy as np import matplotlib import matplotlib.pyplot as plt import scipy.io import os.path from numpy import linalg as LA import pandas as pd from os import listdir from os.path import isfile, join import ...
21.909091
89
0.753804
36b9bfe4f04af50f48511e8cb6ff412abbb1acdf
1,134
py
Python
3_1_4_keypadpiano.py
hajin-kim/Python-EV3
4d590772ee82697f43dea5a878275a917f13acc5
[ "MIT" ]
null
null
null
3_1_4_keypadpiano.py
hajin-kim/Python-EV3
4d590772ee82697f43dea5a878275a917f13acc5
[ "MIT" ]
null
null
null
3_1_4_keypadpiano.py
hajin-kim/Python-EV3
4d590772ee82697f43dea5a878275a917f13acc5
[ "MIT" ]
null
null
null
#!/usr/bin/env pybricks-micropython from pybricks.hubs import EV3Brick from pybricks.ev3devices import (Motor, TouchSensor, ColorSensor, InfraredSensor, UltrasonicSensor, GyroSensor) from pybricks.parameters import Port, Stop, Direction, Button, Color from pybricks.tools import wait, St...
27.658537
78
0.708995
148688603f2d4b75f1a1e3114a97f197120d5a64
3,514
py
Python
reactivex/scheduler/mainloop/pygamescheduler.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
reactivex/scheduler/mainloop/pygamescheduler.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
reactivex/scheduler/mainloop/pygamescheduler.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
import logging import threading from typing import Any, Optional, TypeVar from reactivex import abc, typing from reactivex.internal import PriorityQueue from reactivex.internal.constants import DELTA_ZERO from ..periodicscheduler import PeriodicScheduler from ..scheduleditem import ScheduledItem _TState = TypeVar("_...
30.824561
86
0.623506
21c1930d8f0c2baa48c618d813be9aba5edc67fa
1,555
py
Python
metaworld/policies/sawyer_drawer_open_v1_policy.py
Simon0xzx/metaworld
2d441eed70b6f5cb1f35883b0517c4bd2812268c
[ "MIT" ]
681
2019-09-09T19:34:37.000Z
2022-03-31T12:17:58.000Z
metaworld/policies/sawyer_drawer_open_v1_policy.py
Simon0xzx/metaworld
2d441eed70b6f5cb1f35883b0517c4bd2812268c
[ "MIT" ]
212
2019-09-18T14:43:44.000Z
2022-03-27T22:21:00.000Z
metaworld/policies/sawyer_drawer_open_v1_policy.py
Simon0xzx/metaworld
2d441eed70b6f5cb1f35883b0517c4bd2812268c
[ "MIT" ]
157
2019-09-12T05:06:05.000Z
2022-03-29T14:47:24.000Z
import numpy as np from metaworld.policies.action import Action from metaworld.policies.policy import Policy, assert_fully_parsed, move class SawyerDrawerOpenV1Policy(Policy): @staticmethod @assert_fully_parsed def _parse_obs(obs): return { 'hand_pos': obs[:3], 'drwr_pos'...
31.734694
74
0.578778
ad2f7440bd142e92bea6cf4f3b56e01632d58852
1,972
py
Python
ibmsecurity/isam/aac/api_protection/grants_user.py
zone-zero/ibmsecurity
7d3e38104b67e1b267e18a44845cb756a5302c3d
[ "Apache-2.0" ]
46
2017-03-21T21:08:59.000Z
2022-02-20T22:03:46.000Z
ibmsecurity/isam/aac/api_protection/grants_user.py
zone-zero/ibmsecurity
7d3e38104b67e1b267e18a44845cb756a5302c3d
[ "Apache-2.0" ]
201
2017-03-21T21:25:52.000Z
2022-03-30T21:38:20.000Z
ibmsecurity/isam/aac/api_protection/grants_user.py
zone-zero/ibmsecurity
7d3e38104b67e1b267e18a44845cb756a5302c3d
[ "Apache-2.0" ]
91
2017-03-22T16:25:36.000Z
2022-02-04T04:36:29.000Z
import logging logger = logging.getLogger(__name__) def get(isamAppliance, userid, check_mode=False, force=False): """ Get grants by userid """ return isamAppliance.invoke_get("Get grants by userid", "/iam/access/v8/grants/userIds/{0}".format(userid)) def get_rec...
31.301587
108
0.646552
bb44dd855b4a8e946ebc40f5b58db5f95d87ccb7
329
py
Python
networks/admin.py
KeoH/orchestrapi
575e66a86c42b5c249fd943bb5f40c8c310139aa
[ "MIT" ]
1
2021-07-05T19:37:37.000Z
2021-07-05T19:37:37.000Z
networks/admin.py
KeoH/orchestrapi
575e66a86c42b5c249fd943bb5f40c8c310139aa
[ "MIT" ]
6
2020-06-05T19:30:52.000Z
2021-07-05T19:28:53.000Z
networks/admin.py
KeoH/orchestrapi
575e66a86c42b5c249fd943bb5f40c8c310139aa
[ "MIT" ]
1
2020-05-15T23:58:24.000Z
2020-05-15T23:58:24.000Z
from django.contrib import admin from .models import NetworkBridge class NetworkBridgeAdmin(admin.ModelAdmin): list_display = ['slug', 'name', 'network_id', '_num_of_containers'] def _num_of_containers(self, obj): return len(obj.get_containers_list()) admin.site.register(NetworkBridge, NetworkBrid...
23.5
71
0.759878
1dc794d33fd362f3326cb2457d2a822da4e6ab39
891
py
Python
DaniMundo/blog/admin.py
vlajna95/DaniMundo_semaphore
36e39eaff07fd09ab2e1792fc13debf3f8f971ae
[ "CC0-1.0" ]
null
null
null
DaniMundo/blog/admin.py
vlajna95/DaniMundo_semaphore
36e39eaff07fd09ab2e1792fc13debf3f8f971ae
[ "CC0-1.0" ]
null
null
null
DaniMundo/blog/admin.py
vlajna95/DaniMundo_semaphore
36e39eaff07fd09ab2e1792fc13debf3f8f971ae
[ "CC0-1.0" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .forms import CustomUserCreationForm, CustomUserChangeForm from .models import CustomUser, Article @admin.register(CustomUser) class CustomUserAdmin(UserAdmin): model = CustomUser add_form = CustomUserCreationForm form = CustomUs...
37.125
93
0.744108
1ad96cc2f7e3fbf227e17dbd352d0b1df51f4b90
3,977
py
Python
chinese_whispers/chinese_whispers.py
3wille/chinese-whispers-python
e7257a69561858ef8ae278a595f76bbad2227d6a
[ "MIT" ]
null
null
null
chinese_whispers/chinese_whispers.py
3wille/chinese-whispers-python
e7257a69561858ef8ae278a595f76bbad2227d6a
[ "MIT" ]
null
null
null
chinese_whispers/chinese_whispers.py
3wille/chinese-whispers-python
e7257a69561858ef8ae278a595f76bbad2227d6a
[ "MIT" ]
null
null
null
import random import sys from collections import defaultdict from math import log2 from operator import itemgetter if sys.version_info[:2] >= (3, 5): from typing import Any, Callable, Sequence, Tuple, ItemsView, Union, Dict, Optional, Set from networkx.classes import Graph def top_weighting(G, node, neighbor): ...
28.818841
120
0.641438
d784b20db927c1098c92f89a39de29996269b94f
142
py
Python
patent/patent/utils/__init__.py
ld-xy/Classified-prediction-of-Medical-images
62431f72ab8698821f9955319db165f53f907e85
[ "Apache-2.0" ]
null
null
null
patent/patent/utils/__init__.py
ld-xy/Classified-prediction-of-Medical-images
62431f72ab8698821f9955319db165f53f907e85
[ "Apache-2.0" ]
null
null
null
patent/patent/utils/__init__.py
ld-xy/Classified-prediction-of-Medical-images
62431f72ab8698821f9955319db165f53f907e85
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/7/17 14:24 # @Author : LD!! # @FileName: __init__.py.py # @Software: PyCharm # @QQ :1614030192
17.75
28
0.56338
ab6063c03edc216d0802883c0357b70576cf69fb
4,017
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/kubevirt/plugins/modules/kubevirt_preset.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/kubevirt/plugins/modules/kubevirt_preset.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/kubevirt/plugins/modules/kubevirt_preset.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: kubevirt_preset short_d...
25.916129
120
0.66119
b31f244781021b0e996ba86ec22bec3ad107fe46
8,092
py
Python
library/nsxt_uplink_profiles.py
mbovo/ansible-for-nsxt
dc057d876e1f0de4bf4caa244577b07b96d2a517
[ "BSD-2-Clause" ]
null
null
null
library/nsxt_uplink_profiles.py
mbovo/ansible-for-nsxt
dc057d876e1f0de4bf4caa244577b07b96d2a517
[ "BSD-2-Clause" ]
null
null
null
library/nsxt_uplink_profiles.py
mbovo/ansible-for-nsxt
dc057d876e1f0de4bf4caa244577b07b96d2a517
[ "BSD-2-Clause" ]
1
2019-02-01T08:58:40.000Z
2019-02-01T08:58:40.000Z
#!/usr/bin/env python # # Copyright 2018 VMware, Inc. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHAL...
49.341463
165
0.700692
5c4eb065634013ed5319dba055bda7285af57ae4
5,947
py
Python
joulescope/parameters_v1.py
rnestler/pyjoulescope
b9eff73d2236e05d5c3631dbd112c1ef54854005
[ "Apache-2.0" ]
null
null
null
joulescope/parameters_v1.py
rnestler/pyjoulescope
b9eff73d2236e05d5c3631dbd112c1ef54854005
[ "Apache-2.0" ]
null
null
null
joulescope/parameters_v1.py
rnestler/pyjoulescope
b9eff73d2236e05d5c3631dbd112c1ef54854005
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Jetperch LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
22.107807
99
0.420548
c26ff3478a601ba2802359ecb516719ae4f99315
17,202
py
Python
intersight/model/chassis_config_result_entry.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/chassis_config_result_entry.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/chassis_config_result_entry.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
54.609524
1,678
0.642948
3b50c1598a6c31aa66440678551a57cd125e9207
22,468
py
Python
tests/scripts/thread-cert/config.py
kkasperczyk-no/sdk-openthread
385e19da1ae15f27872c2543b97276a42f102ead
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/config.py
kkasperczyk-no/sdk-openthread
385e19da1ae15f27872c2543b97276a42f102ead
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/config.py
kkasperczyk-no/sdk-openthread
385e19da1ae15f27872c2543b97276a42f102ead
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
41.684601
119
0.768649
35161c1e0197c0641e9475aa6c2510ded0a4ac7c
3,938
py
Python
templates/gd32-common/scripts/board_h_modify.py
flyghost/OneOS-V2.1.0
6fedab0558c07fe679d63ba1eb8ee9992c044d86
[ "Apache-2.0" ]
null
null
null
templates/gd32-common/scripts/board_h_modify.py
flyghost/OneOS-V2.1.0
6fedab0558c07fe679d63ba1eb8ee9992c044d86
[ "Apache-2.0" ]
null
null
null
templates/gd32-common/scripts/board_h_modify.py
flyghost/OneOS-V2.1.0
6fedab0558c07fe679d63ba1eb8ee9992c044d86
[ "Apache-2.0" ]
null
null
null
import os import sys import shutil import flash_size_table import sram_size_table import sector_size_table def modify(series,model,soc): old_path = os.getcwd() source_path = os.path.dirname(os.path.realpath(__file__)) os.chdir(source_path+'/../target/board') flash_size = flash_size_tabl...
48.02439
120
0.517522
887d65a108cd69d860b8de96d1b18ad172953ade
20,276
py
Python
12AX_task/lsnn/spiking_models.py
IGITUGraz/Spike-Frequency-Adaptation-Supports-Network-Computations
58a33584b34b477cfb1d3614460f66f94344fb9c
[ "MIT" ]
1
2021-07-17T10:34:15.000Z
2021-07-17T10:34:15.000Z
12AX_task/lsnn/spiking_models.py
IGITUGraz/Spike-Frequency-Adaptation-Supports-Network-Computations
58a33584b34b477cfb1d3614460f66f94344fb9c
[ "MIT" ]
null
null
null
12AX_task/lsnn/spiking_models.py
IGITUGraz/Spike-Frequency-Adaptation-Supports-Network-Computations
58a33584b34b477cfb1d3614460f66f94344fb9c
[ "MIT" ]
null
null
null
""" Copyright (C) 2019 the LSNN team, TU Graz """ from distutils.version import LooseVersion import datetime from collections import OrderedDict from collections import namedtuple import numpy as np import numpy.random as rd import tensorflow as tf from tensorflow.python.framework.ops import Tensor if LooseVersion(t...
38.328922
166
0.61378
cca4902ab57a5ad835a70205a55e0ef97ac1c0a6
1,601
py
Python
spacy/lang/ja/syntax_iterators.py
g4brielvs/spaCy
cca8651fc8133172ebaa9d9fc438ed1fbf34fb33
[ "BSD-3-Clause", "MIT" ]
4
2021-08-11T05:46:23.000Z
2021-09-11T05:16:57.000Z
spacy/lang/ja/syntax_iterators.py
g4brielvs/spaCy
cca8651fc8133172ebaa9d9fc438ed1fbf34fb33
[ "BSD-3-Clause", "MIT" ]
1
2021-03-01T19:01:37.000Z
2021-03-01T19:01:37.000Z
spacy/lang/ja/syntax_iterators.py
g4brielvs/spaCy
cca8651fc8133172ebaa9d9fc438ed1fbf34fb33
[ "BSD-3-Clause", "MIT" ]
2
2021-01-26T17:29:02.000Z
2021-03-13T08:54:53.000Z
from typing import Union, Iterator from ...symbols import NOUN, PROPN, PRON, VERB from ...tokens import Doc, Span # TODO: this can probably be pruned a bit # fmt: off labels = ["nsubj", "nmod", "ddoclike", "nsubjpass", "pcomp", "pdoclike", "doclike", "obl", "dative", "appos", "attr", "ROOT"] # fmt: on def noun_chu...
37.232558
125
0.603998
3047c699deae3c076ccc09ee33730faf41208b7d
10,372
py
Python
src/pytypes/onefuzztypes/enums.py
muhammadmeisam/onefuzz
a025d194547d39307bf804ebee0fc0e206759916
[ "MIT" ]
null
null
null
src/pytypes/onefuzztypes/enums.py
muhammadmeisam/onefuzz
a025d194547d39307bf804ebee0fc0e206759916
[ "MIT" ]
null
null
null
src/pytypes/onefuzztypes/enums.py
muhammadmeisam/onefuzz
a025d194547d39307bf804ebee0fc0e206759916
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from enum import Enum from typing import List class OS(Enum): windows = "windows" linux = "linux" class DashboardEvent(Enum): heartbeat = "heartbeat" new_file = "new_file" repro_state = "repro_state...
25.994987
125
0.655033
35bf432dc0d46d4bf55e5a86c13902bb143b22bb
1,689
py
Python
4-es-cluster-on-demand-creation-and-restore/register-snapshot-repo-read-only.py
muellerc/es-workshop
8d0a630fa3a06501f73e1aa72d4bf8125b6d164a
[ "MIT-0" ]
null
null
null
4-es-cluster-on-demand-creation-and-restore/register-snapshot-repo-read-only.py
muellerc/es-workshop
8d0a630fa3a06501f73e1aa72d4bf8125b6d164a
[ "MIT-0" ]
null
null
null
4-es-cluster-on-demand-creation-and-restore/register-snapshot-repo-read-only.py
muellerc/es-workshop
8d0a630fa3a06501f73e1aa72d4bf8125b6d164a
[ "MIT-0" ]
null
null
null
import boto3 import requests from requests_aws4auth import AWS4Auth host = 'https://vpc-elastic-search-domain-olp-kr3zgrug73z73lst4c675du3uq.eu-central-1.es.amazonaws.com/' # include https:// and trailing / region = 'eu-central-1' # e.g. us-west-1 service = 'es' credentials = boto3.Session().get_credentials() awsauth ...
23.788732
138
0.69627
0cb949164f54f44824a1f0ce27b08bd3c3458cd7
588
py
Python
setup.py
jackee777/pybabelfy
55c266a32564c003d35d129da4723fb74860e1d4
[ "MIT" ]
11
2016-11-03T10:09:14.000Z
2021-01-06T12:03:09.000Z
setup.py
jackee777/pybabelfy
55c266a32564c003d35d129da4723fb74860e1d4
[ "MIT" ]
2
2015-12-02T02:18:43.000Z
2021-05-23T16:11:11.000Z
setup.py
jackee777/pybabelfy
55c266a32564c003d35d129da4723fb74860e1d4
[ "MIT" ]
5
2016-11-07T14:51:21.000Z
2020-12-21T11:04:48.000Z
''' Created on 02/12/2015 @author: david ''' from distutils.core import setup setup( name = 'pybabelfy', packages = ['pybabelfy'], # this must be the same as the name above version = '0.1', description = 'A Python interface for Babelfy', author = 'David Vilares', author_email = 'david.vilares89@gmail.co...
28
98
0.680272
4689fbf1d0fb8c459c29f814e501a80c813dffb7
1,653
py
Python
applications/init/models/_init.py
himelpdas/pastebeam_web_server
607fe5aaab571fadd99e100fdd774fc953384cf1
[ "BSD-3-Clause" ]
null
null
null
applications/init/models/_init.py
himelpdas/pastebeam_web_server
607fe5aaab571fadd99e100fdd774fc953384cf1
[ "BSD-3-Clause" ]
null
null
null
applications/init/models/_init.py
himelpdas/pastebeam_web_server
607fe5aaab571fadd99e100fdd774fc953384cf1
[ "BSD-3-Clause" ]
null
null
null
from pymongo import MongoClient _client = MongoClient() _database = _client.test_database MONGO_ACCOUNTS = _database.auth_user import bson.json_util as json from bson.binary import Binary from Crypto.PublicKey import RSA from Crypto import Random from Crypto.Protocol.KDF import PBKDF2 from Crypto.Hash impo...
39.357143
145
0.690865
30c44702dcca19c7acf63ec5d5e96d9b9f512b35
9,924
py
Python
contrib/spendfrom/spendfrom.py
DiplexSoftfork/Skyrcoin
379ea3f22e8c75168230289be51ee24a7f1c1590
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
DiplexSoftfork/Skyrcoin
379ea3f22e8c75168230289be51ee24a7f1c1590
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
DiplexSoftfork/Skyrcoin
379ea3f22e8c75168230289be51ee24a7f1c1590
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Use the raw transactions API to spend PIVs received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a pivxd or pivx-Qt ru...
37.029851
111
0.628476
54380f3e8020bf093053f117e058a82681002633
1,527
py
Python
Zeroer.py
kwfredeen/Expression-Zeroer
31e3db180b8877c168ec7cf12c2468df6086102e
[ "MIT" ]
null
null
null
Zeroer.py
kwfredeen/Expression-Zeroer
31e3db180b8877c168ec7cf12c2468df6086102e
[ "MIT" ]
null
null
null
Zeroer.py
kwfredeen/Expression-Zeroer
31e3db180b8877c168ec7cf12c2468df6086102e
[ "MIT" ]
null
null
null
#MIT License #Copyright (c) 2021 Ki Fredeen #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publish, ...
38.175
79
0.722331
97b9c9ccf016cb7f926aab5d8cf7d051d62f8b34
785
py
Python
version.py
grycap/ec4docker
3895ae379446b6aed59af43a4841dacac4b2ca49
[ "Apache-2.0" ]
6
2016-02-28T08:23:40.000Z
2021-04-05T12:49:17.000Z
version.py
dealfonso/ec4docker
3895ae379446b6aed59af43a4841dacac4b2ca49
[ "Apache-2.0" ]
2
2016-07-25T02:04:17.000Z
2016-10-14T15:32:13.000Z
version.py
dealfonso/ec4docker
3895ae379446b6aed59af43a4841dacac4b2ca49
[ "Apache-2.0" ]
4
2016-03-10T10:35:07.000Z
2018-07-24T15:57:59.000Z
# coding: utf-8 # # EC4Docker - Elastic Cluster for Docker # https://github.com/grycap/ec4docker # # Copyright (C) GRyCAP - I3M - UPV # Developed by Carlos A. caralla@upv.es # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may ...
31.4
74
0.741401
62f9ff390cdce54e94ce5fbceb2bbeb7e40fdaac
8,078
py
Python
python/genconfigs.py
reap2sow1/general-purpose-scripts
4a83c2ad5b230145db346c5e1dc5c5a00f2aa02d
[ "MIT" ]
null
null
null
python/genconfigs.py
reap2sow1/general-purpose-scripts
4a83c2ad5b230145db346c5e1dc5c5a00f2aa02d
[ "MIT" ]
null
null
null
python/genconfigs.py
reap2sow1/general-purpose-scripts
4a83c2ad5b230145db346c5e1dc5c5a00f2aa02d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Generates/interaces common configurations for scripts in the below repo. This command line tool is used to generate the configurations used by the scripts in the general-purpose-scripts repo. The configurations are bare and are expected to be modified by the end user to take full advantage of...
28.747331
127
0.642238
99f6869e782fd99454a92733e5cff7564a933697
17,734
py
Python
ibllib/pipes/ephys_preprocessing.py
nbonacchi/ibllib
9066c00a8e9a65a1d209144a2ac54d0b87bec0b3
[ "MIT" ]
null
null
null
ibllib/pipes/ephys_preprocessing.py
nbonacchi/ibllib
9066c00a8e9a65a1d209144a2ac54d0b87bec0b3
[ "MIT" ]
null
null
null
ibllib/pipes/ephys_preprocessing.py
nbonacchi/ibllib
9066c00a8e9a65a1d209144a2ac54d0b87bec0b3
[ "MIT" ]
null
null
null
import logging import re import shutil import subprocess from collections import OrderedDict import traceback from pathlib import Path import numpy as np import pandas as pd import mtscomp import alf.io from ibllib.ephys import ephysqc, spikes, sync_probes from ibllib.io import ffmpeg, spikeglx from ibllib.io.video i...
38.975824
98
0.628961
e3806c313dbdaaba517fc1ed2285f9b1fe55aa72
3,141
py
Python
tests/api_tests.py
HusseinKabbout/qwc-document-service
c8d856390006e0f5ecc0d28b0d53da55e5505381
[ "MIT" ]
null
null
null
tests/api_tests.py
HusseinKabbout/qwc-document-service
c8d856390006e0f5ecc0d28b0d53da55e5505381
[ "MIT" ]
null
null
null
tests/api_tests.py
HusseinKabbout/qwc-document-service
c8d856390006e0f5ecc0d28b0d53da55e5505381
[ "MIT" ]
1
2020-04-24T11:36:26.000Z
2020-04-24T11:36:26.000Z
import os import unittest from urllib.parse import urlparse, parse_qs, urlencode from flask import Response, json from flask.testing import FlaskClient from flask_jwt_extended import JWTManager, create_access_token import server class ApiTestCase(unittest.TestCase): """Test case for server API""" def setUp...
33.414894
89
0.60936
a9648592d04d912b40f962ad10880dbd22394bc7
3,796
py
Python
math/ilp/ilp4.py
thammegowda/algos
a23f6129c2f031c86314a489c4a8a26f9c7130bf
[ "Apache-2.0" ]
3
2015-10-25T06:25:01.000Z
2017-02-03T01:51:49.000Z
math/ilp/ilp4.py
thammegowda/algos
a23f6129c2f031c86314a489c4a8a26f9c7130bf
[ "Apache-2.0" ]
null
null
null
math/ilp/ilp4.py
thammegowda/algos
a23f6129c2f031c86314a489c4a8a26f9c7130bf
[ "Apache-2.0" ]
1
2016-08-17T16:37:48.000Z
2016-08-17T16:37:48.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ Author : Thamme Gowda Date : December 6, 2017 Taken from http://people.brunel.ac.uk/~mastjjb/jeb/or/moreip.html """ """ A project manager in a company is considering a portfolio of 10 large project investments. These investments differ in the estimated long-run profit (...
40.382979
264
0.60432
2e020aef874347b492ea5766f5391bdff0b457eb
18,319
py
Python
tests/test_app_routers_ledger_{token_address}_details_data_GET.py
BoostryJP/ibet-Prime
924e7f8da4f8feea0a572e8b5532e09bcdf2dc99
[ "Apache-2.0" ]
2
2021-08-19T12:35:25.000Z
2022-02-16T04:13:38.000Z
tests/test_app_routers_ledger_{token_address}_details_data_GET.py
BoostryJP/ibet-Prime
924e7f8da4f8feea0a572e8b5532e09bcdf2dc99
[ "Apache-2.0" ]
46
2021-09-02T03:22:05.000Z
2022-03-31T09:20:00.000Z
tests/test_app_routers_ledger_{token_address}_details_data_GET.py
BoostryJP/ibet-Prime
924e7f8da4f8feea0a572e8b5532e09bcdf2dc99
[ "Apache-2.0" ]
1
2021-11-17T23:18:27.000Z
2021-11-17T23:18:27.000Z
""" Copyright BOOSTRY Co., 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 writing, software distr...
36.859155
100
0.520443
4c8763ecfe25602716aa03996eed70692ab53229
1,876
py
Python
src/gutils/per_cell_export.py
GavinHuttley/gutils
d8b2b51b56d36adbbe56cac7f5e2df6d75cc61dc
[ "BSD-3-Clause" ]
null
null
null
src/gutils/per_cell_export.py
GavinHuttley/gutils
d8b2b51b56d36adbbe56cac7f5e2df6d75cc61dc
[ "BSD-3-Clause" ]
1
2020-08-18T01:01:56.000Z
2020-08-25T23:41:32.000Z
src/gutils/per_cell_export.py
GavinHuttley/gutils
d8b2b51b56d36adbbe56cac7f5e2df6d75cc61dc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """Export grades for each cell to json""" import json import sys from nbgrader.api import MissingEntry from nbgrader.plugins import ExportPlugin class PerCellExporter(ExportPlugin): """ Export plugin for nbgrader which ouputs per-cell grades to a json formatted file. """ def ...
30.258065
85
0.504797
049b2ba18bfcade5eee2cd139b23d7b52a8a1175
10,455
py
Python
tests/test_mciipm.py
adelosa/cardutil
fa31223aaac1f0749d50368bb639a311d98e279a
[ "MIT" ]
null
null
null
tests/test_mciipm.py
adelosa/cardutil
fa31223aaac1f0749d50368bb639a311d98e279a
[ "MIT" ]
1
2022-03-25T20:15:24.000Z
2022-03-30T09:20:34.000Z
tests/test_mciipm.py
adelosa/cardutil
fa31223aaac1f0749d50368bb639a311d98e279a
[ "MIT" ]
null
null
null
import io import unittest from cardutil.mciipm import ( VbsWriter, VbsReader, IpmReader, IpmWriter, Block1014, Unblock1014, block_1014, unblock_1014, vbs_list_to_bytes, vbs_bytes_to_list, IpmParamReader) from tests import message_ascii_raw, message_ebcdic_raw, print_stream class MciIpmTestCase(unittest.Test...
33.834951
120
0.605452
4ecf68480532236cf0b75ecb4ca258417749bd60
19,089
py
Python
app.py
RekhaBhale/face-recognition
e26d6d0889a1e124dd9b59425f20e94fe687f55d
[ "BSL-1.0" ]
null
null
null
app.py
RekhaBhale/face-recognition
e26d6d0889a1e124dd9b59425f20e94fe687f55d
[ "BSL-1.0" ]
1
2019-04-27T12:00:55.000Z
2019-07-19T08:17:16.000Z
app.py
RekhaBhale/face-recognition
e26d6d0889a1e124dd9b59425f20e94fe687f55d
[ "BSL-1.0" ]
null
null
null
from flask import Flask, json, Response, request, render_template from werkzeug.utils import secure_filename from os import path, getcwd import time from db import Database from face import Face import db as dbHandler from md5 import test import sqlite3 import json app = Flask(__name__) #1.configuration settings app....
32.354237
385
0.616166
09061d6ab2e2a7e4c8a1bb88d943ba9ef2db2d5d
2,204
py
Python
src/testcase/GN_APP/case/GN_APP_REGISTER/GN_APP_REGISTER_018.py
maiyajj/AutoTest_script-Appium_Connect
f9c2c42c281a9e2f984acb4a72dda0694b053f22
[ "Apache-2.0" ]
28
2017-11-10T00:19:16.000Z
2022-02-19T16:42:05.000Z
src/testcase/GN_APP/case/GN_APP_REGISTER/GN_APP_REGISTER_018.py
maiyajj/AutoTest_script-Appium_Connect
f9c2c42c281a9e2f984acb4a72dda0694b053f22
[ "Apache-2.0" ]
null
null
null
src/testcase/GN_APP/case/GN_APP_REGISTER/GN_APP_REGISTER_018.py
maiyajj/AutoTest_script-Appium_Connect
f9c2c42c281a9e2f984acb4a72dda0694b053f22
[ "Apache-2.0" ]
23
2017-08-22T06:12:19.000Z
2021-09-18T05:45:41.000Z
# coding=utf-8 from src.testcase.GN_APP.WidgetOperation import * class GNAPPRegister18(WidgetOperation): @case_run(True) def run(self): self.case_module = u"注册" # 用例所属模块 self.case_title = u'注册页面-已经注册过的用户名,再次注册验证' # 用例名称 self.zentao_id = "1768" # 禅道ID # 用例动作 def case(self): ...
36.131148
105
0.582123
4aa769f20d8e5d5dccd15270621f5062f03445bc
22,323
py
Python
home/Lib/telnetlib.py
jbalint/spark
caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f
[ "CNRI-Jython" ]
1
2015-05-21T20:00:12.000Z
2015-05-21T20:00:12.000Z
home/Lib/telnetlib.py
jbalint/spark
caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f
[ "CNRI-Jython" ]
null
null
null
home/Lib/telnetlib.py
jbalint/spark
caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f
[ "CNRI-Jython" ]
null
null
null
"""TELNET client class. Based on RFC 854: TELNET Protocol Specification, by J. Postel and J. Reynolds Example: >>> from telnetlib import Telnet >>> tn = Telnet('www.python.org', 79) # connect to finger port >>> tn.write('guido\r\n') >>> print tn.read_all() Login Name TTY Idle...
33.669683
88
0.547597
de39fb2a79b370301e6ed75fc1bb2ca829d3ee96
1,852
py
Python
internal/notes/builtin-SAVE/packages/codar-cheetah/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
1
2019-01-17T20:07:19.000Z
2019-01-17T20:07:19.000Z
internal/notes/builtin-SAVE/packages/codar-cheetah/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
null
null
null
internal/notes/builtin-SAVE/packages/codar-cheetah/package.py
HPCToolkit/hpctest
5ff4455582bf39e75530a31badcf6142081b386b
[ "BSD-3-Clause" ]
2
2019-08-06T18:13:57.000Z
2021-11-05T18:19:49.000Z
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
40.26087
78
0.672786
c796bb4672bc2aabc708ca87c504edf92974e7ba
1,687
py
Python
free_style/app/views.py
yudongqiu/GomokuWeb
c7d887733250f4b69efd04edf72a22bbd8257206
[ "MIT" ]
5
2017-05-23T10:48:14.000Z
2019-03-24T09:53:45.000Z
free_style/app/views.py
yudongqiu/GomokuWeb
c7d887733250f4b69efd04edf72a22bbd8257206
[ "MIT" ]
null
null
null
free_style/app/views.py
yudongqiu/GomokuWeb
c7d887733250f4b69efd04edf72a22bbd8257206
[ "MIT" ]
4
2017-08-04T09:01:17.000Z
2018-07-18T10:30:04.000Z
from flask import render_template, request, jsonify from app import app import gomoku_web @app.route('/') @app.route('/index') def index(): return render_template('index.html') @app.route('/_start', methods=['GET']) def start(): game.reset() p1 = request.args.get('p1', 'You', type=str) p2 = request.ar...
28.59322
77
0.64019
3ca0070b6a8c4c0a032bd1f3c69c71e88f56eaf3
88,378
py
Python
airflow/jobs.py
beefjerky/cautious-invention
6cb785c8a97829833db5293ad3458dd16fcbf68c
[ "Apache-2.0" ]
4
2017-06-25T14:09:31.000Z
2020-11-20T09:51:24.000Z
airflow/jobs.py
beefjerky/new_airflow
6cb785c8a97829833db5293ad3458dd16fcbf68c
[ "Apache-2.0" ]
null
null
null
airflow/jobs.py
beefjerky/new_airflow
6cb785c8a97829833db5293ad3458dd16fcbf68c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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 ...
41.628827
110
0.546867
bd8f8072a351a5aca4bd8f2665a4d834505c5597
264
py
Python
pypytorch/functions/basic/add.py
dark-ai/pypytorch
d28e0f858ad7c33a14e4bb71dc68ae56ba97c5cf
[ "MIT" ]
10
2019-08-13T10:29:14.000Z
2022-02-21T01:57:33.000Z
pypytorch/functions/basic/add.py
dark-ai/pypytorch
d28e0f858ad7c33a14e4bb71dc68ae56ba97c5cf
[ "MIT" ]
1
2019-10-25T02:26:45.000Z
2019-10-25T11:15:10.000Z
pypytorch/functions/basic/add.py
dark-ai/pypytorch
d28e0f858ad7c33a14e4bb71dc68ae56ba97c5cf
[ "MIT" ]
2
2019-08-17T00:48:37.000Z
2019-10-24T09:22:37.000Z
# -*- coding: utf-8 -*- from pypytorch.functions.function import Function class Add(Function): def forward(self, a, b): return a + b def backward_0(self, grad): return grad def backward_1(self, grad): return grad
15.529412
49
0.590909
eb457d367b51ad96569e754d389f7d0bafbd57d2
4,093
py
Python
httpx_scan.py
ismailbozkurt/httpx_scan
31f0ba83a4a4d1c1beb3ae14fbbf6380b6965dc6
[ "MIT" ]
null
null
null
httpx_scan.py
ismailbozkurt/httpx_scan
31f0ba83a4a4d1c1beb3ae14fbbf6380b6965dc6
[ "MIT" ]
null
null
null
httpx_scan.py
ismailbozkurt/httpx_scan
31f0ba83a4a4d1c1beb3ae14fbbf6380b6965dc6
[ "MIT" ]
null
null
null
from time import sleep import docker client = docker.from_env() def check_image_exist(image_tag): try: updated_tag = image_tag + ":latest" image_list = client.images.list() if len(image_list) != 0: for image in image_list: exist_tag = image.tags[0] ...
49.313253
1,254
0.564867
6fc82cd32b72157e94e60ab7c7610ee0f30442be
472
py
Python
desafios/desafio043.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
1
2020-10-26T04:33:14.000Z
2020-10-26T04:33:14.000Z
desafios/desafio043.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
null
null
null
desafios/desafio043.py
genisyskernel/cursoemvideo-python
dec301e33933388c886fe78010f38adfb24dae82
[ "MIT" ]
null
null
null
altura = float(input("Informe sua altura: ")) peso = float(input("Informe seu peso: ")) imc = peso / (altura ** 2) if(imc <= 18.5): situacao = "ABAIXO DO PESO" elif(18.5 >= imc <= 25): situacao = "PESO IDEAL" elif(imc <= 30): situacao = "SOBREPESO" elif(imc <= 40): situacao = "OBESIDADE" else: si...
24.842105
121
0.603814