hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
36025813f30736519a15bcc3a36e39a6abea37a8
3,334
py
Python
src/spaceone/inventory/manager/cloud_sql_manager.py
spaceone-dev/plugin-google-cloud-state-inven-collector
211cdb448bf6ec1f6aefc277c880c5b57d39502b
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/manager/cloud_sql_manager.py
spaceone-dev/plugin-google-cloud-state-inven-collector
211cdb448bf6ec1f6aefc277c880c5b57d39502b
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/manager/cloud_sql_manager.py
spaceone-dev/plugin-google-cloud-state-inven-collector
211cdb448bf6ec1f6aefc277c880c5b57d39502b
[ "Apache-2.0" ]
null
null
null
import time from spaceone.inventory.libs.manager import GoogleCloudManager from spaceone.inventory.libs.schema.base import ReferenceModel from spaceone.inventory.connector.cloud_sql import CloudSQLConnector from spaceone.inventory.model.cloud_sql import * _LOGGER = logging.getLogger(__name__) class CloudSQLManager(Goo...
34.371134
113
0.577085
9e7b96750123ab754ee279c22256fae933b69095
297
py
Python
ex67.py
FernandaMakiHirose/programas-jupyter
40ebfc820fefceb14293715104641ef184acfff4
[ "MIT" ]
null
null
null
ex67.py
FernandaMakiHirose/programas-jupyter
40ebfc820fefceb14293715104641ef184acfff4
[ "MIT" ]
null
null
null
ex67.py
FernandaMakiHirose/programas-jupyter
40ebfc820fefceb14293715104641ef184acfff4
[ "MIT" ]
1
2021-06-09T22:33:11.000Z
2021-06-09T22:33:11.000Z
# Faça um programa que leia o peso de cinco pessoas. No final, mostre qual foi o maior e o menor peso lidos. lts=[] for peso in range(1, 6): pessoa = float(input(f'Peso da pessoa {peso}: ')) lts += [pessoa] print('O maior peso foi: ', max(lts)) print('O menor peso foi: ', min(lts))
29.7
108
0.643098
b0c1ec07d92c3a495d1040924eec730e29e7931f
17,897
py
Python
src/deps/pretorched/data/datasets/video.py
ericotjo001/neuron-descriptions
744fbf65c6538edd2fa423108eca7e2cd72f8b59
[ "MIT" ]
5
2022-02-22T21:58:10.000Z
2022-03-22T16:19:14.000Z
src/deps/pretorched/data/datasets/video.py
ericotjo001/neuron-descriptions
744fbf65c6538edd2fa423108eca7e2cd72f8b59
[ "MIT" ]
3
2022-02-27T06:43:34.000Z
2022-03-18T08:30:30.000Z
src/deps/pretorched/data/datasets/video.py
ericotjo001/neuron-descriptions
744fbf65c6538edd2fa423108eca7e2cd72f8b59
[ "MIT" ]
1
2022-02-27T05:18:30.000Z
2022-02-27T05:18:30.000Z
import numbers import io import os from pathlib import Path import zipfile from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union import numpy as np import PIL.Image import torch.utils.data from PIL.Image import Image from torchvideo.datasets import RecordSet, VideoDataset from torchvideo.inte...
36.155556
88
0.630553
914885c225c30e4492f3a02edbe95f87bd54248a
25,010
py
Python
delfin/drivers/dell_emc/vnx/vnx_block/component_handler.py
joseph-v/SIM
61fedb261aa745d715b8a30c0945a6244fb807e2
[ "Apache-2.0" ]
4
2020-05-07T07:43:43.000Z
2020-06-21T15:25:42.000Z
delfin/drivers/dell_emc/vnx/vnx_block/component_handler.py
joseph-v/SIM
61fedb261aa745d715b8a30c0945a6244fb807e2
[ "Apache-2.0" ]
210
2020-05-08T04:06:49.000Z
2020-06-22T12:59:02.000Z
delfin/drivers/dell_emc/vnx/vnx_block/component_handler.py
joseph-v/SIM
61fedb261aa745d715b8a30c0945a6244fb807e2
[ "Apache-2.0" ]
10
2020-04-11T07:09:55.000Z
2020-04-28T09:50:13.000Z
# Copyright 2021 The SODA 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 applicable law or agreed to in writin...
44.03169
79
0.482367
988d96303c9514808d6675df5d08c77642082a7c
608
py
Python
facebook_problems/problem_12.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
129
2018-10-14T17:52:29.000Z
2022-01-29T15:45:57.000Z
facebook_problems/problem_12.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
2
2019-11-30T23:28:23.000Z
2020-01-03T16:30:32.000Z
facebook_problems/problem_12.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
60
2019-02-21T09:18:31.000Z
2022-03-25T21:01:04.000Z
"""This problem was asked by Facebook. Given a list of integers, return the largest product that can be made by multiplying any three integers. For example, if the list is [-10, -10, 5, 2], we should return 500, since that's -10 * -10 * 5. You can assume the list has at least three integers.""" array = [-10, 10, 5, 2...
27.636364
95
0.669408
009e883ea7a1c3899d59fce048134147fb48a384
395
py
Python
mygallery/wsgi.py
sandrinemfuranzima/MAGallery
8eab586f0d5a7ab8169a6909f35d459253173a7b
[ "MIT" ]
null
null
null
mygallery/wsgi.py
sandrinemfuranzima/MAGallery
8eab586f0d5a7ab8169a6909f35d459253173a7b
[ "MIT" ]
12
2020-02-12T01:02:43.000Z
2022-03-11T23:53:48.000Z
mygallery/wsgi.py
Dnmrk4/Gallery
667248451b34832ff1f76abeb32b12f6ec591945
[ "MIT" ]
1
2019-07-22T12:05:44.000Z
2019-07-22T12:05:44.000Z
""" WSGI config for mygallery project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
211cf9cd1b5cb087b6c7cae4f99648f02fb422c8
3,959
py
Python
mindspore/numpy/dtypes.py
limberc/mindspore
e294acdffc9246cb6d77ea18ea00d08244d30c59
[ "Apache-2.0" ]
1
2021-01-25T07:39:46.000Z
2021-01-25T07:39:46.000Z
mindspore/numpy/dtypes.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
null
null
null
mindspore/numpy/dtypes.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies 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...
24.140244
85
0.587522
2e7c1f40b143e70beb8fd83f6b94576387301f58
8,312
py
Python
src/args.py
thunlp/DIAG-NRE
67922eca80909da8e68982b37f17f1047b37290d
[ "MIT" ]
60
2019-06-03T13:46:10.000Z
2021-07-22T11:43:52.000Z
src/args.py
lalalawenzheng/DIAG-NRE
67922eca80909da8e68982b37f17f1047b37290d
[ "MIT" ]
1
2019-08-13T08:17:50.000Z
2020-08-02T14:03:25.000Z
src/args.py
lalalawenzheng/DIAG-NRE
67922eca80909da8e68982b37f17f1047b37290d
[ "MIT" ]
13
2019-06-23T11:37:12.000Z
2021-10-06T01:15:40.000Z
# -*- coding: utf-8 -*- # @Time : 2/3/18 15:50 # @Author : Shun Zheng import argparse def parse_args(in_args=None): arg_parser = argparse.ArgumentParser() default_suffix = 'spouse' arg_parser.add_argument('--random_seed', type=int, default=0, help='Starting random seed fo...
67.032258
117
0.617661
6d355f5f89131e37e3bc16dda7866a64bfecfe37
900
py
Python
frappe/utils/pdf.py
vermettej/frappe
6b1640d795402a945c16006aeaf5286653b34107
[ "MIT" ]
null
null
null
frappe/utils/pdf.py
vermettej/frappe
6b1640d795402a945c16006aeaf5286653b34107
[ "MIT" ]
1
2015-04-27T09:11:56.000Z
2015-04-27T09:11:56.000Z
frappe/utils/pdf.py
vermettej/frappe
6b1640d795402a945c16006aeaf5286653b34107
[ "MIT" ]
2
2015-04-23T05:15:40.000Z
2018-03-21T19:57:03.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import pdfkit, os, frappe from frappe.utils import scrub_urls def get_pdf(html, options=None): if not options: options = {} options.update({ "print-media-type": None, "b...
23.684211
94
0.684444
7201988cdb4a9637b74e5cd1629aa690e75a810d
233
py
Python
demo/demo2/main.py
sd5682295/toanki
08ce17bfccd65d2c615e5263a1a46e81bf9cf497
[ "MIT" ]
12
2020-03-23T05:07:15.000Z
2022-02-23T08:25:32.000Z
demo/demo2/main.py
sd5682295/toanki
08ce17bfccd65d2c615e5263a1a46e81bf9cf497
[ "MIT" ]
null
null
null
demo/demo2/main.py
sd5682295/toanki
08ce17bfccd65d2c615e5263a1a46e81bf9cf497
[ "MIT" ]
6
2020-09-04T01:40:36.000Z
2022-01-07T01:58:34.000Z
# encoding = utf-8 from demo2.tool.dir_handle import dir_handle from demo2.tool.run_html import run_html if __name__ == "__main__": dh = dir_handle() files = dh.get_html_iter() [run_html(file).run() for file in files]
21.181818
44
0.708155
74c6d4ed712eb920c557feb13c8d17ef51771565
1,131
py
Python
src/main/Main.py
rossweinstein/Evolutionary-Computing-Python
ccc4025ce8bbf4290fb6634f9c22de5048c28f2c
[ "MIT" ]
null
null
null
src/main/Main.py
rossweinstein/Evolutionary-Computing-Python
ccc4025ce8bbf4290fb6634f9c22de5048c28f2c
[ "MIT" ]
null
null
null
src/main/Main.py
rossweinstein/Evolutionary-Computing-Python
ccc4025ce8bbf4290fb6634f9c22de5048c28f2c
[ "MIT" ]
null
null
null
from src.ecSystem.ECSystem import ECSystem from src.ecSystem.ECSystemParameters import ECSystemParameters # Where we actually run our EC System params = ECSystemParameters() # Governs the number of expressions in each generation params.generation_size = 200 # Governs the length of the expressions in the initial pop...
32.314286
98
0.782493
e7d83e48806b6564bde72241b98b27a665ae924b
2,609
py
Python
CAM/CAMVehicle.py
amrishAK/ITS-Simulation-Framework
3b482a542407655ee8f97e6a62bf73e97cf8265d
[ "MIT" ]
null
null
null
CAM/CAMVehicle.py
amrishAK/ITS-Simulation-Framework
3b482a542407655ee8f97e6a62bf73e97cf8265d
[ "MIT" ]
null
null
null
CAM/CAMVehicle.py
amrishAK/ITS-Simulation-Framework
3b482a542407655ee8f97e6a62bf73e97cf8265d
[ "MIT" ]
null
null
null
from Framework.RoadOption import RoadOption from Framework.Setup import Setup from Framework.Container import Container from Framework.BehaviourAgent import BaseVehicleAgent from Framework.FrameworkException import StopException from Framework.RxHandler import BaseRxHandler from Framework.Decrators import drivingAgent,...
26.353535
80
0.640475
f9586c3ee2151238bf1ccbf9b18a0f12afb3b8c4
2,848
py
Python
karapace/protobuf_schema.py
libretto/karapace
48f364ac2e06a7a8df9581fafdfe4e14bc6f24a3
[ "Apache-2.0" ]
null
null
null
karapace/protobuf_schema.py
libretto/karapace
48f364ac2e06a7a8df9581fafdfe4e14bc6f24a3
[ "Apache-2.0" ]
null
null
null
karapace/protobuf_schema.py
libretto/karapace
48f364ac2e06a7a8df9581fafdfe4e14bc6f24a3
[ "Apache-2.0" ]
null
null
null
from google.protobuf.descriptor import FieldDescriptor sTypeMap = { "double": FieldDescriptor.TYPE_DOUBLE, "float": FieldDescriptor.TYPE_FLOAT, "int32": FieldDescriptor.TYPE_INT32, "int64": FieldDescriptor.TYPE_INT64, "uint32": FieldDescriptor.TYPE_UINT32, "uint64": FieldDescriptor.TYPE_UINT64,...
26.616822
94
0.683638
d3dc1d8e0ca3357a2fe4f5798e0a9ce0713534f2
2,641
py
Python
Fixie/Tools/FixToJson.py
AgalmicVentures/Fixie
2bd36c6f5cc3dca34eb747dc47786525f16dc3d0
[ "MIT" ]
17
2017-01-24T19:28:11.000Z
2022-02-09T06:14:33.000Z
Fixie/Tools/FixToJson.py
AgalmicVentures/Fixie
2bd36c6f5cc3dca34eb747dc47786525f16dc3d0
[ "MIT" ]
null
null
null
Fixie/Tools/FixToJson.py
AgalmicVentures/Fixie
2bd36c6f5cc3dca34eb747dc47786525f16dc3d0
[ "MIT" ]
5
2017-02-26T09:30:05.000Z
2022-03-28T04:30:39.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2021 Agalmic Ventures LLC (www.agalmicventures.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limit...
29.674157
79
0.746687
25c01808350635c8bec6c4a8aa5e3a5e4c6e7de4
2,309
py
Python
irc.py
custardplanet/sub-counter
aad490458540e547b84d086e5a5426de136d8a15
[ "MIT" ]
null
null
null
irc.py
custardplanet/sub-counter
aad490458540e547b84d086e5a5426de136d8a15
[ "MIT" ]
null
null
null
irc.py
custardplanet/sub-counter
aad490458540e547b84d086e5a5426de136d8a15
[ "MIT" ]
null
null
null
import socket import sys class IRC: irc = socket.socket() def __init__(self): self.irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM) def send(self, chan, msg): self.irc.send(("PRIVMSG #" + chan + " :" + msg + "\r\n").encode()) def connect(self, server, port, channels...
29.602564
77
0.463404
2357ab9ba926bfe6704d57bccc8d8c6b6d3a35e5
4,436
py
Python
apps/slice_selection/optimizers/conductor/response_processor.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
3
2019-04-15T13:33:57.000Z
2019-10-21T17:19:19.000Z
apps/slice_selection/optimizers/conductor/response_processor.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
null
null
null
apps/slice_selection/optimizers/conductor/response_processor.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (C) 2020 Wipro Limited. # # 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.ap...
40.697248
116
0.598512
ecf962d7b90130561c192fa6dc9bc1ce1985bb48
13,300
py
Python
assets/src/ba_data/python/ba/_multiteamsession.py
SahandAslani/ballistica
7e3814cd2a1920ea8f5820cb1cdbb4dc5420d30e
[ "MIT" ]
null
null
null
assets/src/ba_data/python/ba/_multiteamsession.py
SahandAslani/ballistica
7e3814cd2a1920ea8f5820cb1cdbb4dc5420d30e
[ "MIT" ]
null
null
null
assets/src/ba_data/python/ba/_multiteamsession.py
SahandAslani/ballistica
7e3814cd2a1920ea8f5820cb1cdbb4dc5420d30e
[ "MIT" ]
null
null
null
# Copyright (c) 2011-2020 Eric Froemling # # 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,...
40.181269
79
0.617368
87b98e77558805e3e9f5eb2055c901e661471da9
1,268
py
Python
tests/test_loader.py
osu-anticheat/osu-anticheat
95078e834f798098e7b95e79d3361d3be7554de5
[ "MIT" ]
19
2019-01-31T11:50:58.000Z
2019-02-03T02:53:16.000Z
tests/test_loader.py
osu-anticheat/osu-anticheat
95078e834f798098e7b95e79d3361d3be7554de5
[ "MIT" ]
10
2019-01-31T06:40:28.000Z
2019-02-02T21:44:42.000Z
tests/test_loader.py
osu-anticheat/osu-anticheat
95078e834f798098e7b95e79d3361d3be7554de5
[ "MIT" ]
5
2019-01-31T12:01:32.000Z
2019-02-02T19:59:33.000Z
from circleguard import Loader, InvalidKeyException from tests.utils import CGTestCase, KEY class TestLoader(CGTestCase): @classmethod def setUpClass(cls): super().setUpClass() cls.loader = Loader(KEY) def test_loading_map_id(self): result = self.loader.map_id("E") self.ass...
32.512821
97
0.675079
2c4df2100aafaf9d54b0088aa3cfa95cc614e90e
4,332
py
Python
test_throughput.py
kevin-ssy/ViP
dedc27616ab24e78685e21291d1e6ef9b56de889
[ "MIT" ]
107
2021-07-12T03:31:39.000Z
2022-03-31T10:11:57.000Z
test_throughput.py
kevin-ssy/ViP
dedc27616ab24e78685e21291d1e6ef9b56de889
[ "MIT" ]
7
2021-07-20T03:32:59.000Z
2021-11-18T07:40:46.000Z
test_throughput.py
kevin-ssy/ViP
dedc27616ab24e78685e21291d1e6ef9b56de889
[ "MIT" ]
10
2021-08-07T06:56:24.000Z
2022-01-20T01:03:59.000Z
""" Throughput Measuring Script Copyright 2021 Shuyang Sun """ import time import yaml import torch import models import argparse import timm.models from timm.models import create_model def get_args(): parser = argparse.ArgumentParser('vis') parser.add_argument('--config', default=None) parser.add_argume...
44.204082
110
0.626039
716b656ac76105ea3f6f18b80a3c1b12ef2b4da6
5,391
py
Python
test/functional/wallet_listreceivedby.py
durgeshkmr/kcoin
6ea2af1d415f742222e01e5af4ffaa4b5a41e295
[ "MIT" ]
null
null
null
test/functional/wallet_listreceivedby.py
durgeshkmr/kcoin
6ea2af1d415f742222e01e5af4ffaa4b5a41e295
[ "MIT" ]
null
null
null
test/functional/wallet_listreceivedby.py
durgeshkmr/kcoin
6ea2af1d415f742222e01e5af4ffaa4b5a41e295
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listreceivedbyaddress RPC.""" from decimal import Decimal from test_framework.test_framework ...
43.128
142
0.634576
b0f6ecc2b68c90c056435780059a0edb176ef538
516
py
Python
polyhash/polyhsolver.py
Matsoy/hashcode2016-finalRound
85290f01a0e9e53788f711f610a574f44ca30bc0
[ "Unlicense" ]
null
null
null
polyhash/polyhsolver.py
Matsoy/hashcode2016-finalRound
85290f01a0e9e53788f711f610a574f44ca30bc0
[ "Unlicense" ]
null
null
null
polyhash/polyhsolver.py
Matsoy/hashcode2016-finalRound
85290f01a0e9e53788f711f610a574f44ca30bc0
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Module de résolution du problème d'images satellite posé par le projet Poly#. Usage: >>> from polyhash import solve >>> solve() """ from polyhutils import say_hello __all__ = ['solve'] # ajouter dans cette liste tous les symboles 'importables' ...
19.111111
79
0.622093
517cfea0a57f26044debaeff22daff112aa6973d
3,851
py
Python
docs/jnpr_healthbot_swagger/swagger_client/models/rule_schema_formula1_unique.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
10
2019-10-23T12:54:37.000Z
2022-02-07T19:24:30.000Z
lib/jnpr/healthbot/swagger/models/rule_schema_formula1_unique.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
5
2019-09-30T04:29:25.000Z
2022-02-16T12:21:06.000Z
lib/jnpr/healthbot/swagger/models/rule_schema_formula1_unique.py
Juniper/healthbot-py-client
49f0884b5d01ac8430aa7ed4c9acb4e7a2b717a6
[ "Apache-2.0" ]
4
2019-09-30T01:17:48.000Z
2020-08-25T07:27:54.000Z
# coding: utf-8 """ Paragon Insights APIs API interface for PI application # noqa: E501 OpenAPI spec version: 4.0.0 Contact: healthbot-feedback@juniper.net Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class RuleSchemaF...
31.826446
143
0.588419
1ecd160f3c604597e2780c4df1a339ea368d5737
1,441
py
Python
src/vmware/azext_vmware/vendored_sdks/models/tracked_resource.py
YingXue/azure-cli-extensions
30086b7fe22ed591daaae9019920db6c16aef9de
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/vmware/azext_vmware/vendored_sdks/models/tracked_resource.py
YingXue/azure-cli-extensions
30086b7fe22ed591daaae9019920db6c16aef9de
[ "MIT" ]
1
2020-06-12T01:39:40.000Z
2020-06-12T01:39:40.000Z
src/vmware/azext_vmware/vendored_sdks/models/tracked_resource.py
YingXue/azure-cli-extensions
30086b7fe22ed591daaae9019920db6c16aef9de
[ "MIT" ]
1
2019-05-02T00:55:30.000Z
2019-05-02T00:55:30.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
30.659574
76
0.530881
1fe5e742e6c3c40d1c1c9eadace9c8f54a8a745e
892
py
Python
Course I/Алгоритмы Python/Part1/лекции/examples/dict_generator.py
GeorgiyDemo/FA
641a29d088904302f5f2164c9b3e1f1c813849ec
[ "WTFPL" ]
27
2019-08-18T20:54:27.000Z
2022-02-22T02:39:45.000Z
Course I/Алгоритмы Python/Part1/лекции/examples/dict_generator.py
GeorgiyDemo/FA
641a29d088904302f5f2164c9b3e1f1c813849ec
[ "WTFPL" ]
217
2019-09-22T14:43:25.000Z
2022-03-30T13:49:18.000Z
Course I/Алгоритмы Python/Part1/лекции/examples/dict_generator.py
GeorgiyDemo/FA
641a29d088904302f5f2164c9b3e1f1c813849ec
[ "WTFPL" ]
42
2019-09-18T11:36:28.000Z
2022-03-19T18:43:00.000Z
lst_val = [1, 2, 7, 11, 8, 2] # создание списка с помощью цикла: lst_new = [] for el in lst_val: lst_new.append(el * 2) print(lst_new) # создание аналогичного списка при помощи генератора: lst_gen = [el * 2 for el in lst_val] print(lst_gen) # создание списка с помощью цикла и условия (фильтра): lst_new2 = [] for ...
27.875
81
0.639013
d834895ec67effd9da15f8af8ff71acd53ddd962
5,968
py
Python
code/systems/s_core.py
madhawav/neuraltexture
d63e04629339841f3e0b23aa150b54eefb48a86c
[ "MIT" ]
87
2020-03-06T06:50:30.000Z
2022-03-01T17:37:42.000Z
code/systems/s_core.py
madhawav/neuraltexture
d63e04629339841f3e0b23aa150b54eefb48a86c
[ "MIT" ]
7
2020-04-17T12:28:30.000Z
2021-07-27T13:11:18.000Z
code/systems/s_core.py
madhawav/neuraltexture
d63e04629339841f3e0b23aa150b54eefb48a86c
[ "MIT" ]
17
2020-03-06T00:34:10.000Z
2022-03-27T08:51:06.000Z
import torch import importlib from attrdict import AttrDict import numpy as np import random from datasets.dataset_handler import DatasetHandler import pytorch_lightning as pl from pathlib import Path import sys import os class CoreSystem(pl.LightningModule): def __init__(self, param, param_trainer=None): ...
32.434783
154
0.624162
9b7e2df0b09b3613c27a9a78a197b7e9b92777ae
895
py
Python
project/tests/test_user_model.py
clodo/flask-jwt-auth
bad20588dbad37df0f6394f7782d2bb43143b023
[ "MIT" ]
null
null
null
project/tests/test_user_model.py
clodo/flask-jwt-auth
bad20588dbad37df0f6394f7782d2bb43143b023
[ "MIT" ]
null
null
null
project/tests/test_user_model.py
clodo/flask-jwt-auth
bad20588dbad37df0f6394f7782d2bb43143b023
[ "MIT" ]
null
null
null
import unittest from project.server import db from project.server.models import User from project.tests.base import BaseTestCase class TestUserModel(BaseTestCase): def test_encode_auth_token(self): user = User( email='test@test.com', password='test' ) db.session.ad...
24.189189
79
0.637989
9c4246f9c677a38cf632eb247b6dbf8fabea2ce1
12,768
py
Python
ocvtest.py
pneumoo/stereovision
961c90168683e83e8b86dd9e57c02fc4d3dfb830
[ "MIT" ]
null
null
null
ocvtest.py
pneumoo/stereovision
961c90168683e83e8b86dd9e57c02fc4d3dfb830
[ "MIT" ]
null
null
null
ocvtest.py
pneumoo/stereovision
961c90168683e83e8b86dd9e57c02fc4d3dfb830
[ "MIT" ]
null
null
null
import numpy as np import cv2 import glob # termination criteria criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001) # prepare object points, like (0,0,0), (1,0,0), (2,0,0) ....,(6,5,0) chessBoardGrid = np.zeros((6*9,3), np.float32) chessBoardGrid[:,:2] = np.mgrid[0:9,0:6].T.reshape(...
34.508108
118
0.695802
0d67f56ed454128e2428b98ea8e02c03c6010a3e
3,072
py
Python
Network Traffic Fingerprinting for IoT Device Identification/hash_code/nim_hash.py
NateThom/SmartRecon
f41cb77da774b519e1bde992b9f36dfaa6b6dffa
[ "MIT" ]
null
null
null
Network Traffic Fingerprinting for IoT Device Identification/hash_code/nim_hash.py
NateThom/SmartRecon
f41cb77da774b519e1bde992b9f36dfaa6b6dffa
[ "MIT" ]
null
null
null
Network Traffic Fingerprinting for IoT Device Identification/hash_code/nim_hash.py
NateThom/SmartRecon
f41cb77da774b519e1bde992b9f36dfaa6b6dffa
[ "MIT" ]
null
null
null
# Load libraries from pandas import read_csv from pandas.plotting import scatter_matrix from matplotlib import pyplot from sklearn.model_selection import train_test_split from sklearn.model_selection import cross_val_score from sklearn.model_selection import StratifiedKFold from sklearn.metrics import classification_re...
35.72093
520
0.761068
089612f086c3eac25ad2196f8886787d57ee0cc8
2,743
py
Python
write_scaled_input_file.py
graceday/amorphous_backup
f79a12f53eeae19f46b65957e6ebbb1912942eef
[ "MIT" ]
null
null
null
write_scaled_input_file.py
graceday/amorphous_backup
f79a12f53eeae19f46b65957e6ebbb1912942eef
[ "MIT" ]
null
null
null
write_scaled_input_file.py
graceday/amorphous_backup
f79a12f53eeae19f46b65957e6ebbb1912942eef
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Feb 24 15:47:16 2021 @author: graceday """ import argparse parser = argparse.ArgumentParser( description="Generate LAMMPS input files for performing dynamics " "at 10000K at different densities." ) parser.add_argument( "--...
2,743
2,743
0.521327
3758e8148c5f5c651ba2ed1d30a9e9bd612a9727
2,880
py
Python
v2/goalnet/main.py
DaniloZZZ/GoalNet
d24102a5f0700fbf42c0868b321d6f6a097ee97b
[ "Apache-2.0" ]
null
null
null
v2/goalnet/main.py
DaniloZZZ/GoalNet
d24102a5f0700fbf42c0868b321d6f6a097ee97b
[ "Apache-2.0" ]
null
null
null
v2/goalnet/main.py
DaniloZZZ/GoalNet
d24102a5f0700fbf42c0868b321d6f6a097ee97b
[ "Apache-2.0" ]
null
null
null
""" Created by Danil Lykov @danlkv on 13/02/19 """ from goalnet.helpers.log_init import log #from .connectors.console import launch_console_connector from .core.modules.echo import EchoModule from .core.modules.logger import LoggerModule from .core.modules.database.db import DataBaseModule from .config_server import...
25.043478
103
0.649653
d80bd252b87d2c0033ea7ee0748c1afdb6ea71ec
6,714
py
Python
sdk/python/pulumi_azure/compute/get_shared_image_versions.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/compute/get_shared_image_versions.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/compute/get_shared_image_versions.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
40.203593
159
0.676497
1ca162323202f5f9f581f7de1679a6cb12409d32
1,359
py
Python
onepage/models.py
naichilab/onepage
b656ac76fd83d80e45a8d13835436865461432a1
[ "MIT" ]
null
null
null
onepage/models.py
naichilab/onepage
b656ac76fd83d80e45a8d13835436865461432a1
[ "MIT" ]
null
null
null
onepage/models.py
naichilab/onepage
b656ac76fd83d80e45a8d13835436865461432a1
[ "MIT" ]
null
null
null
from math import ceil from orator import DatabaseManager from orator import Model from orator.orm import scope from orator.orm import has_many from orator.orm import belongs_to from orator.orm import belongs_to_many from onepage.db import dbconfig from onepage.db import schema Model.set_connection_resolver(DatabaseM...
21.571429
66
0.688742
f67b765a37de3865e4e7dbf92ca0948e793b9adc
29,992
py
Python
tests/python/pants_test/backend/jvm/tasks/test_ivy_utils.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/test_ivy_utils.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/test_ivy_utils.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import json import os import xml.etree.ElementTree as ET from collections import namedtuple from textwrap import dedent from pants.backend.jvm.ivy_utils import ( FrozenResolution, ...
40.096257
101
0.569385
1d6a63becb8059e165f5cbbbcf98f6e66f2e639c
558
gyp
Python
src/content/content.gyp
izaman/tizen-extensions-crosswalk
e1373788f4e4e271e39b0fee66c26210e40dd86f
[ "Apache-2.0", "BSD-3-Clause" ]
10
2015-01-16T16:14:35.000Z
2018-12-25T16:01:43.000Z
src/content/content.gyp
liyingzh/tizen-extensions-crosswalk
5957945effafff02a507c35a4b7b4d5ee6ca14c1
[ "Apache-2.0", "BSD-3-Clause" ]
35
2015-01-04T02:11:22.000Z
2015-09-22T08:43:45.000Z
src/content/content.gyp
liyingzh/tizen-extensions-crosswalk
5957945effafff02a507c35a4b7b4d5ee6ca14c1
[ "Apache-2.0", "BSD-3-Clause" ]
14
2015-02-03T04:38:19.000Z
2022-01-20T10:38:01.000Z
{ 'includes':[ '../common/common.gypi', ], 'targets': [ { 'target_name': 'tizen_content', 'type': 'loadable_module', 'variables': { 'packages': [ 'capi-content-media-content' ], }, 'sources': [ 'content_api.js', 'content_extension.cc'...
19.241379
38
0.473118
13523059e1121a8505010fe48b30e052479816ce
6,067
py
Python
ivy/functional/backends/torch/layers.py
thatguuyG/ivy
09447a9670d440a309b62cfb468c1036e3a4f5ed
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/torch/layers.py
thatguuyG/ivy
09447a9670d440a309b62cfb468c1036e3a4f5ed
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/torch/layers.py
thatguuyG/ivy
09447a9670d440a309b62cfb468c1036e3a4f5ed
[ "Apache-2.0" ]
null
null
null
"""Collection of PyTorch network layers, wrapped to fit Ivy syntax and signature. """ # global import math as _math import torch from typing import List, Optional import numpy as np # noinspection PyUnresolvedReferences def conv1d( x: torch.Tensor, filters: torch.Tensor, strides: int, padding: str, ...
29.168269
88
0.59733
ae256acbfd9687e9727ba5e44d62b93d8eb793db
773
py
Python
pixiedust/display/chart/options/__init__.py
elgalu/pixiedust
e98b91b6ae5a974cbcda985fa305d0cb25b88ba0
[ "Apache-2.0" ]
598
2018-07-18T08:02:49.000Z
2022-03-29T06:22:10.000Z
pixiedust/display/chart/options/__init__.py
elgalu/pixiedust
e98b91b6ae5a974cbcda985fa305d0cb25b88ba0
[ "Apache-2.0" ]
236
2016-08-15T20:25:35.000Z
2017-06-23T17:13:39.000Z
pixiedust/display/chart/options/__init__.py
elgalu/pixiedust
e98b91b6ae5a974cbcda985fa305d0cb25b88ba0
[ "Apache-2.0" ]
87
2018-07-24T14:43:39.000Z
2022-03-06T15:31:50.000Z
# ------------------------------------------------------------------------------- # Copyright IBM Corp. 2018 # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licens...
45.470588
81
0.605433
55cf8cd6cb4be31ed1599ebbf94a264c1cc8a95c
514
py
Python
rooms.py
ahavenoname/async_deep_reinforce
8619c72395536c26899f31e0c8d1930889d04ba6
[ "Apache-2.0" ]
45
2016-09-07T03:30:52.000Z
2019-10-24T07:52:31.000Z
rooms.py
GitHubBeinner/async_deep_reinforce
8619c72395536c26899f31e0c8d1930889d04ba6
[ "Apache-2.0" ]
1
2016-09-07T01:57:21.000Z
2016-10-07T04:55:17.000Z
rooms.py
GitHubBeinner/async_deep_reinforce
8619c72395536c26899f31e0c8d1930889d04ba6
[ "Apache-2.0" ]
9
2016-09-06T11:25:34.000Z
2020-01-06T03:31:48.000Z
import numpy as np import argparse import time import re import sys parser = argparse.ArgumentParser(description="extract visited rooms in A3C") parser.add_argument('filename') args = parser.parse_args() f = open(args.filename, "r") prog = re.compile(".*ROOM\((\d+)\)") rooms = np.zeros(24) line = f.readline() while ...
20.56
76
0.692607
bdf3851e4658739c35cfd229e27804e011107e67
3,178
py
Python
data/p2DJ/New/program/qiskit/class/startQiskit_Class296.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/class/startQiskit_Class296.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/class/startQiskit_Class296.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=10 import cirq import qiskit from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy a...
28.630631
80
0.622719
552764af04f982d64a7468f55f491041b55e9e0f
5,439
py
Python
docs/conf.py
vishalbelsare/autom8
6721a4cd509d76b214a1e9fc874c3ddc7ec8924d
[ "MIT" ]
3
2019-01-02T20:23:12.000Z
2019-01-31T01:11:39.000Z
docs/conf.py
vishalbelsare/autom8
6721a4cd509d76b214a1e9fc874c3ddc7ec8924d
[ "MIT" ]
null
null
null
docs/conf.py
vishalbelsare/autom8
6721a4cd509d76b214a1e9fc874c3ddc7ec8924d
[ "MIT" ]
2
2019-01-02T20:23:23.000Z
2019-08-19T01:12:14.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
28.930851
79
0.649384
dcb00510f9a5f0f25d051f7fab65d5f4c502d4d6
1,127
py
Python
pyvisdk/do/invalid_guest_login.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/invalid_guest_login.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/invalid_guest_login.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def InvalidGuestLogin(vim, *args, **kwargs): '''An InvalidGuestLogin exception is thrown ...
32.2
124
0.62378
342c4ec0efe864abb97d484da00680438b3413e8
106,217
py
Python
sockeye/inference.py
talkhouli/sockeye
ef5fed26cda3151883efe446878f4d7f65b5852d
[ "Apache-2.0" ]
1
2019-11-14T14:31:07.000Z
2019-11-14T14:31:07.000Z
sockeye/inference.py
talkhouli/sockeye
ef5fed26cda3151883efe446878f4d7f65b5852d
[ "Apache-2.0" ]
null
null
null
sockeye/inference.py
talkhouli/sockeye
ef5fed26cda3151883efe446878f4d7f65b5852d
[ "Apache-2.0" ]
1
2019-11-05T14:42:05.000Z
2019-11-05T14:42:05.000Z
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License # is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
54.638374
172
0.606475
a5004a53e4234e74f14d276c6162373a14a383e2
3,780
py
Python
ServidorPython/python32_web/Lib/site-packages/mpl_toolkits/axisartist/clip_path.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
102
2016-10-09T01:33:00.000Z
2022-01-28T01:03:23.000Z
ServidorPython/python32_web/Lib/site-packages/mpl_toolkits/axisartist/clip_path.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
41
2017-06-04T16:09:43.000Z
2022-01-20T21:11:42.000Z
ServidorPython/python32_web/Lib/site-packages/mpl_toolkits/axisartist/clip_path.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
50
2017-05-10T06:25:36.000Z
2021-08-02T20:28:54.000Z
import numpy as np from math import degrees from matplotlib import cbook import math def atan2(dy, dx): if dx == 0 and dy == 0: cbook._warn_external("dx and dy are 0") return 0 else: return math.atan2(dy, dx) # FIXME : The current algorithm seems to return incorrect angle when the li...
31.764706
78
0.439153
03a84993a0a66e6b7ff515b746bf43fe6b86bc67
12,057
py
Python
test/functional/credit_create_eth_op_code.py
The-Terra-Foundation/Credit-Core
eff0485f19ce5c122f9d7f1f43c8c4ebe53d1470
[ "MIT" ]
3
2021-08-31T13:16:57.000Z
2022-03-27T16:06:06.000Z
test/functional/credit_create_eth_op_code.py
The-Terra-Foundation/Credit-Core
eff0485f19ce5c122f9d7f1f43c8c4ebe53d1470
[ "MIT" ]
null
null
null
test/functional/credit_create_eth_op_code.py
The-Terra-Foundation/Credit-Core
eff0485f19ce5c122f9d7f1f43c8c4ebe53d1470
[ "MIT" ]
2
2021-08-31T13:17:03.000Z
2021-09-07T08:02:07.000Z
#!/usr/bin/env python3 from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from test_framework.script import * from test_framework.mininode import * from test_framework.credit import * from test_framework.address import * class CreditCreateEthOpCodeTest(BitcoinTestFramewo...
64.475936
2,152
0.768102
493c28d28c25d57f4367961e484db21ba982f520
3,176
py
Python
mobot_ctrl_gui.py
alvinshi/Mobot_2018
2be14a771bc184bf92beb87b0ae4fd4d5deb36b2
[ "MIT" ]
null
null
null
mobot_ctrl_gui.py
alvinshi/Mobot_2018
2be14a771bc184bf92beb87b0ae4fd4d5deb36b2
[ "MIT" ]
null
null
null
mobot_ctrl_gui.py
alvinshi/Mobot_2018
2be14a771bc184bf92beb87b0ae4fd4d5deb36b2
[ "MIT" ]
null
null
null
from Tkinter import * from mobot import * # import line_following as lf #################################### # customize these functions #################################### def init(data): data.mobot = Mobot() data.cv_command = "" def keyPressed(event, data, root): charText = event.char keysymText ...
32.080808
108
0.598552
b65c9aa5cde80420be7b1e6464753108f666c6a6
70
py
Python
model/__init__.py
trueto/mebert
6ecb06bd4394dc8d1e6bd693b0eb175a8455eb93
[ "Apache-2.0" ]
37
2021-03-26T07:38:57.000Z
2022-03-29T08:17:00.000Z
model/__init__.py
Decem-Y/medbert
6ecb06bd4394dc8d1e6bd693b0eb175a8455eb93
[ "Apache-2.0" ]
4
2021-03-28T02:20:21.000Z
2021-10-08T09:36:17.000Z
model/__init__.py
Decem-Y/medbert
6ecb06bd4394dc8d1e6bd693b0eb175a8455eb93
[ "Apache-2.0" ]
3
2021-05-16T05:06:04.000Z
2022-01-03T04:29:16.000Z
from .ner_model import NER_Model from .classify_model import CLS_Model
35
37
0.871429
65aa7256af1b960591bc113a3818efd2144ce705
4,818
py
Python
pylith/topology/MeshImporter.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
null
null
null
pylith/topology/MeshImporter.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
null
null
null
pylith/topology/MeshImporter.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
null
null
null
# ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University of Chicago # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://geodynamics.org). # # Copy...
31.697368
111
0.607721
6526d99054677b2d6196e89700f8e663054783a2
2,797
py
Python
pipenv/resolver.py
ehebert/pipenv
b771621274fcdb6980b4c9682bd2b2879e3354d1
[ "MIT" ]
1
2018-10-29T18:41:01.000Z
2018-10-29T18:41:01.000Z
pipenv/resolver.py
ehebert/pipenv
b771621274fcdb6980b4c9682bd2b2879e3354d1
[ "MIT" ]
null
null
null
pipenv/resolver.py
ehebert/pipenv
b771621274fcdb6980b4c9682bd2b2879e3354d1
[ "MIT" ]
1
2021-07-03T03:30:45.000Z
2021-07-03T03:30:45.000Z
import os import sys import json import logging os.environ["PIP_PYTHON_PATH"] = sys.executable def _patch_path(): pipenv_libdir = os.path.dirname(os.path.abspath(__file__)) for _dir in ("vendor", "patched"): sys.path.insert(0, os.path.join(pipenv_libdir, _dir)) site_packages_dir = os.path.dirname...
27.421569
87
0.613157
889a2765961807d7bb9400ad45b4bb32a498ae63
2,233
py
Python
federatedml/framework/homo/sync/identify_uuid_sync.py
fqiang/FATE
36a5a41848f78df7be1e520ae804e64bc67d72fb
[ "Apache-2.0" ]
3
2021-11-01T01:22:58.000Z
2021-12-29T07:54:51.000Z
federatedml/framework/homo/sync/identify_uuid_sync.py
fqiang/FATE
36a5a41848f78df7be1e520ae804e64bc67d72fb
[ "Apache-2.0" ]
9
2020-01-28T23:05:25.000Z
2022-02-10T00:31:01.000Z
federatedml/framework/homo/sync/identify_uuid_sync.py
fqiang/FATE
36a5a41848f78df7be1e520ae804e64bc67d72fb
[ "Apache-2.0" ]
1
2022-01-04T07:05:52.000Z
2022-01-04T07:05:52.000Z
# # Copyright 2019 The FATE 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 appli...
32.838235
97
0.669503
c05c3c47a3dcb4fd52494d5e1f2d21d8456892f0
5,002
py
Python
tests/test_cancel.py
authbox-lib/puka3
2fea0f4124643514684b7e1da4fd696c78a9cb7d
[ "MIT" ]
null
null
null
tests/test_cancel.py
authbox-lib/puka3
2fea0f4124643514684b7e1da4fd696c78a9cb7d
[ "MIT" ]
null
null
null
tests/test_cancel.py
authbox-lib/puka3
2fea0f4124643514684b7e1da4fd696c78a9cb7d
[ "MIT" ]
null
null
null
import os import puka3 import base class TestCancel(base.TestCase): @base.connect def test_cancel_single(self, client): promise = client.queue_declare(queue=self.name) client.wait(promise) promise = client.basic_publish(exchange='', routing_key=self.name, ...
33.797297
81
0.594362
f0b0e1d54a8599ce4d34a8072fc1dc9ddb94dbc3
5,138
py
Python
expfactory_deploy/experiments/migrations/0005_auto_20211004_1416.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
null
null
null
expfactory_deploy/experiments/migrations/0005_auto_20211004_1416.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
31
2021-03-08T21:30:47.000Z
2022-03-01T12:09:09.000Z
expfactory_deploy/experiments/migrations/0005_auto_20211004_1416.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-10-04 14:16 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import model_utils.fields import uuid class Migration(migrations.Migration): dependencies = [ ('experiments', '0004_auto_20210804_1954'), ] oper...
37.779412
161
0.583885
27536560c446b5408ecfead53acf6fe739803ca1
1,895
py
Python
utils/draw_landmarks.py
Curli-quan/fewshot-select
34f8ce5069ed1fbd01c1fa73a3ef264c98dadafe
[ "Apache-2.0" ]
null
null
null
utils/draw_landmarks.py
Curli-quan/fewshot-select
34f8ce5069ed1fbd01c1fa73a3ef264c98dadafe
[ "Apache-2.0" ]
null
null
null
utils/draw_landmarks.py
Curli-quan/fewshot-select
34f8ce5069ed1fbd01c1fa73a3ef264c98dadafe
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch from torchvision.transforms import ToPILImage from PIL import Image, ImageDraw, ImageFont to_PIL = ToPILImage() def pred2gt(pred): if len(pred) != 2: return pred # Convert predicts to GT format # pred : list[ c(y) ; c(x) ] out = list() for i ...
32.118644
88
0.553562
3d7f5e5098be8c3f2fb0f75f5d468ff63c686ab2
5,416
py
Python
magpylib/_src/fields/field_wrap_BH_level2_dict.py
OrtnerMichael/magPyLib
4c7e7f56f6e0b915ec0e024c172c460fa80126e5
[ "BSD-2-Clause" ]
null
null
null
magpylib/_src/fields/field_wrap_BH_level2_dict.py
OrtnerMichael/magPyLib
4c7e7f56f6e0b915ec0e024c172c460fa80126e5
[ "BSD-2-Clause" ]
null
null
null
magpylib/_src/fields/field_wrap_BH_level2_dict.py
OrtnerMichael/magPyLib
4c7e7f56f6e0b915ec0e024c172c460fa80126e5
[ "BSD-2-Clause" ]
null
null
null
""" getBHv wrapper codes""" import numpy as np from scipy.spatial.transform import Rotation as R from magpylib._src.exceptions import MagpylibBadUserInput from magpylib._src.fields.field_wrap_BH_level1 import getBH_level1 from magpylib._src.utility import LIBRARY_BH_DICT_SOURCE_STRINGS def getBH_dict_level2(**kwargs...
37.611111
92
0.591581
a54111196b3419b947e2e08a52ab5051982c963c
5,689
py
Python
cinder/api/v3/clusters.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/api/v3/clusters.py
vexata/cinder
7b84c0842b685de7ee012acec40fb4064edde5e9
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/api/v3/clusters.py
vexata/cinder
7b84c0842b685de7ee012acec40fb4064edde5e9
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# Copyright (c) 2016 Red Hat Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
39.506944
78
0.668835
fadfe5f43753713c4f30f93bafc038f0447039e1
20,851
py
Python
ServidorPython/python32_web/Lib/site-packages/jedi/evaluate/imports.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
4
2019-07-26T11:32:22.000Z
2019-09-11T05:34:59.000Z
ServidorPython/python32_web/Lib/site-packages/jedi/evaluate/imports.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
9
2019-12-05T00:49:12.000Z
2021-09-08T01:31:25.000Z
ServidorPython/python32_web/Lib/site-packages/jedi/evaluate/imports.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
2
2019-08-28T14:57:54.000Z
2019-11-26T16:18:30.000Z
""" :mod:`jedi.evaluate.imports` is here to resolve import statements and return the modules/classes/functions/whatever, which they stand for. However there's not any actual importing done. This module is about finding modules in the filesystem. This can be quite tricky sometimes, because Python imports are not always ...
36.77425
97
0.614599
b8bdac90c633ae81a570ade116305753dacc8bab
8,964
py
Python
src/IceRayPy/core/material/instruction/convert.py
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
2
2020-09-04T12:27:15.000Z
2022-01-17T14:49:40.000Z
src/IceRayPy/core/material/instruction/convert.py
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
null
null
null
src/IceRayPy/core/material/instruction/convert.py
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
1
2020-09-04T12:27:52.000Z
2020-09-04T12:27:52.000Z
print( '<' + __name__ + ' name=\'' + __file__ + '\'>' ) import ctypes import IceRayPy SizeType = IceRayPy.type.basic.Size ScalarType = IceRayPy.type.basic.Scalar class _General: def __init__(self, P_native, P_dll, P_result, P_input ): self.m_cargo = {} self.m_cargo['dll'] = P_d...
52.729412
126
0.7973
c585fc603d0b1c9d523697d4daf7b291285ff660
6,671
py
Python
tests/unit/states/saltmod_test.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
2
2015-09-21T14:13:30.000Z
2016-02-12T11:33:46.000Z
tests/unit/states/saltmod_test.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
tests/unit/states/saltmod_test.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
2
2017-01-05T16:14:59.000Z
2019-01-31T23:15:25.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>` ''' # Import Python libs from __future__ import absolute_import # Import Salt Testing Libs from salttesting import skipIf, TestCase from salttesting.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch ) fro...
33.189055
84
0.520612
23531c87d821a91f626b37e20d4a697bcbd36e97
720
py
Python
release-bin.py
kutyel/stack-hpc-coveralls
842a15c64fd9410f10bd9f4fa8cf52779091418c
[ "ISC" ]
34
2015-11-22T00:26:39.000Z
2021-05-09T06:13:36.000Z
release-bin.py
kutyel/stack-hpc-coveralls
842a15c64fd9410f10bd9f4fa8cf52779091418c
[ "ISC" ]
26
2015-11-12T23:33:56.000Z
2021-03-17T20:15:01.000Z
release-bin.py
kutyel/stack-hpc-coveralls
842a15c64fd9410f10bd9f4fa8cf52779091418c
[ "ISC" ]
16
2015-11-19T05:46:48.000Z
2020-02-03T12:32:04.000Z
#!/bin/python3 import os import shutil import pathlib import subprocess cwd = pathlib.Path.cwd() dist = cwd.joinpath('dist') dist.mkdir(exist_ok=True) for config in cwd.glob('stack*.yaml'): new_env = os.environ.copy() new_env['STACK_YAML'] = str(config) subprocess.check_call(['stack', 'build'], env=new_...
30
74
0.618056
b78c70c548c0dd9ced5d7f22c07d8554c1f14f91
390
py
Python
src/waldur_core/structure/migrations/0020_drop_servicecertification_model.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_core/structure/migrations/0020_drop_servicecertification_model.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_core/structure/migrations/0020_drop_servicecertification_model.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
# Generated by Django 2.2.13 on 2021-01-13 13:07 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('structure', '0019_servicesettings_remove_deprecated_fields'), ] operations = [ migrations.RemoveField(model_name='project', name='certifications',)...
24.375
77
0.7
1ef67d8a1908f72d6b98b85bf58b0d38116322c8
9,836
py
Python
graspologic/inference/latent_position_test.py
j1c/graspologic
ff34382d1ffa0b7ea5f0e005525b7364f977e86f
[ "MIT" ]
null
null
null
graspologic/inference/latent_position_test.py
j1c/graspologic
ff34382d1ffa0b7ea5f0e005525b7364f977e86f
[ "MIT" ]
21
2018-09-07T18:01:53.000Z
2018-09-17T19:40:01.000Z
graspologic/inference/latent_position_test.py
j1c/graspologic
ff34382d1ffa0b7ea5f0e005525b7364f977e86f
[ "MIT" ]
1
2020-09-15T16:34:52.000Z
2020-09-15T16:34:52.000Z
# Copyright (c) Microsoft Corporation and contributors. # Licensed under the MIT License. from collections import namedtuple from typing import Optional, cast import numpy as np from joblib import Parallel, delayed from typing_extensions import Literal from graspologic.types import Tuple from ..align import Orthogo...
35.767273
93
0.652908
bf35e2ed6091d97b06276b66e3051cde45f5a473
3,027
py
Python
neutron/tests/unit/ofagent/test_ofswitch.py
venkataanil/juno_neutron
2e62e150c264ccae2dd75fb78caae453eaa77e9f
[ "Apache-2.0" ]
1
2021-02-19T05:54:04.000Z
2021-02-19T05:54:04.000Z
neutron/tests/unit/ofagent/test_ofswitch.py
venkataanil/juno_neutron
2e62e150c264ccae2dd75fb78caae453eaa77e9f
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/ofagent/test_ofswitch.py
venkataanil/juno_neutron
2e62e150c264ccae2dd75fb78caae453eaa77e9f
[ "Apache-2.0" ]
2
2016-11-29T11:22:58.000Z
2016-11-29T11:54:41.000Z
# Copyright (C) 2014 VA Linux Systems Japan K.K. # Copyright (C) 2014 YAMAMOTO Takashi <yamamoto at valinux co jp> # 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...
36.46988
78
0.644533
56b386726c072bd8f2d69b62f1745dbe9dbe22c9
326
py
Python
2015/04/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
2015/04/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
2015/04/solution.py
Artemigos/advent-of-code
0b2ae6af3788b9e6891219b2b64ce0d510b3e1aa
[ "MIT" ]
null
null
null
import hashlib data = b'iwrupvqb' base_hash = hashlib.md5(data) i = 0 while True: i += 1 i_str = bytes(str(i), 'utf8') cp = base_hash.copy() cp.update(i_str) hx = cp.hexdigest() if hx[:5] == '00000': print('5 zeros:', i) if hx[:6] == '000000': print('6 zeros:', i) ...
17.157895
33
0.52454
c853471d0860d125d7e3e9e9247634b10e3880cd
25
py
Python
delab/corpus/api_settings.py
juliandehne/delab
763dbab38527e3fcc1caa5e19c74678f591fcc64
[ "MIT" ]
null
null
null
delab/corpus/api_settings.py
juliandehne/delab
763dbab38527e3fcc1caa5e19c74678f591fcc64
[ "MIT" ]
12
2021-11-01T07:03:15.000Z
2022-03-31T13:03:38.000Z
delab/corpus/api_settings.py
juliandehne/whowhatwhy
fa4c89158e65d90b1cea62838f3d12f7c14e59fb
[ "MIT" ]
null
null
null
MERGE_SUBSEQUENT = False
12.5
24
0.84
45e4289ba49f05751da4ee971af212d8fb68139c
9,219
py
Python
nuitka/codegen/CodeHelpers.py
jayvdb/Nuitka
0ff702e065b1b53231ba0cae451385a3da0fe766
[ "Apache-2.0" ]
1
2019-03-31T09:56:11.000Z
2019-03-31T09:56:11.000Z
nuitka/codegen/CodeHelpers.py
jayvdb/Nuitka
0ff702e065b1b53231ba0cae451385a3da0fe766
[ "Apache-2.0" ]
null
null
null
nuitka/codegen/CodeHelpers.py
jayvdb/Nuitka
0ff702e065b1b53231ba0cae451385a3da0fe766
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
30.52649
89
0.672307
7b28643bdd8bdfd1d0a38148fbbb0de68d5e36c1
271
py
Python
haburas/urls.py
eraulo/Setup_haburas
a820836e20e56f7deab0ea6bfdedb0031246930d
[ "MIT-0" ]
null
null
null
haburas/urls.py
eraulo/Setup_haburas
a820836e20e56f7deab0ea6bfdedb0031246930d
[ "MIT-0" ]
null
null
null
haburas/urls.py
eraulo/Setup_haburas
a820836e20e56f7deab0ea6bfdedb0031246930d
[ "MIT-0" ]
null
null
null
from django.urls import path from . import views from django.contrib.auth.decorators import login_required urlpatterns = [ path('', login_required(views.Index.as_view()), name='index'), path('create/', login_required(views.Create.as_view()), name='create'), ]
24.636364
75
0.726937
614fc26ff540daca50dcc0af4eb7c6b2c67a067d
5,435
py
Python
ros/src/twist_controller/dbw_node.py
pascal-pfeiffer/CarND-Capstone
6235150aea532ce13ecaf9ef324330f332adc7da
[ "MIT" ]
null
null
null
ros/src/twist_controller/dbw_node.py
pascal-pfeiffer/CarND-Capstone
6235150aea532ce13ecaf9ef324330f332adc7da
[ "MIT" ]
null
null
null
ros/src/twist_controller/dbw_node.py
pascal-pfeiffer/CarND-Capstone
6235150aea532ce13ecaf9ef324330f332adc7da
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Bool from dbw_mkz_msgs.msg import ThrottleCmd, SteeringCmd, BrakeCmd, SteeringReport from geometry_msgs.msg import TwistStamped import math from twist_controller import Controller class DBWNode(object): """ You can build this node only after you ha...
40.559701
105
0.666605
94af2873c3a2aabf720ddbfb3a1780f28fcd555c
3,989
py
Python
sitio/settings.py
fabianabarca/feria
d83609283efda5878f6429354e16b3b33572aaec
[ "MIT" ]
null
null
null
sitio/settings.py
fabianabarca/feria
d83609283efda5878f6429354e16b3b33572aaec
[ "MIT" ]
6
2021-11-09T23:12:16.000Z
2021-12-21T01:20:29.000Z
sitio/settings.py
fabianabarca/feria
d83609283efda5878f6429354e16b3b33572aaec
[ "MIT" ]
2
2021-12-21T00:16:39.000Z
2022-01-25T23:36:23.000Z
""" Django settings for sitio project. Generated by 'django-admin startproject' using Django 3.1.6. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os from ...
26.593333
91
0.703685
b2dccc721d064a48c7c2819de5aa330d59f07fa9
37,272
py
Python
imutils/ml/data/datamodule.py
JacobARose/image-utils
aa0e005c0b4df5198d188b074f4e21f8d8f97962
[ "MIT" ]
null
null
null
imutils/ml/data/datamodule.py
JacobARose/image-utils
aa0e005c0b4df5198d188b074f4e21f8d8f97962
[ "MIT" ]
null
null
null
imutils/ml/data/datamodule.py
JacobARose/image-utils
aa0e005c0b4df5198d188b074f4e21f8d8f97962
[ "MIT" ]
null
null
null
""" imutils/ml/data/datamodule.py Created on: Wednesday March 16th, 2022 Created by: Jacob Alexander Rose - Update (Wednesday March 24th, 2022) - Refactored to make more modular BaseDataset and BaseDataModule, which Herbarium2022Dataset and Herbarium2022DataModule inherit, respectively. - Update (Wednesday Apri...
27.345561
189
0.696743
4f5356e70b12f258e31f3cba1e9a7c7b00cf6b87
4,092
py
Python
gumi/ops/mask_conv2d.py
kumasento/gconv-prune
f81c417d3754102c902bd153809130e12607bd7d
[ "MIT" ]
8
2019-08-29T07:43:03.000Z
2021-03-03T14:25:09.000Z
gumi/ops/mask_conv2d.py
kumasento/gconv-prune
f81c417d3754102c902bd153809130e12607bd7d
[ "MIT" ]
null
null
null
gumi/ops/mask_conv2d.py
kumasento/gconv-prune
f81c417d3754102c902bd153809130e12607bd7d
[ "MIT" ]
2
2019-09-15T03:39:30.000Z
2020-04-30T07:06:46.000Z
""" Weight masked convolution. Author: Ruizhe Zhao Date: 2019/02/11 """ import torch import torch.nn as nn import torch.nn.functional as F __all__ = ["MaskConv2d"] class MaskConv2d(nn.Module): """ The module of weight masked convolution. Attributes: conv2d(nn.Module): inner convolution mas...
27.836735
88
0.579668
1a789b64057b17cddabc561bf9b2b11479a84977
4,316
py
Python
codegentools/apigen/generateApis.py
learnopx/opx-flxreltools
71b8c182d34bb82aee6a3f0c582f71e9ea04dd4f
[ "Apache-2.0" ]
null
null
null
codegentools/apigen/generateApis.py
learnopx/opx-flxreltools
71b8c182d34bb82aee6a3f0c582f71e9ea04dd4f
[ "Apache-2.0" ]
null
null
null
codegentools/apigen/generateApis.py
learnopx/opx-flxreltools
71b8c182d34bb82aee6a3f0c582f71e9ea04dd4f
[ "Apache-2.0" ]
null
null
null
import os import json from flexObject import FlexObject from flexConfigObject import FlexConfigObject from flexStateObject import FlexStateObject from flexActionObject import FlexActionObject class apiGenie (object) : def __init__ (self, outputDir, objDescriptors, attrDescriptionsDir) : self.outputDir = ou...
53.283951
115
0.480538
b53c79256ab93530af83a0fde83ded491132c543
1,447
py
Python
035.py
CianciuStyles/project-euler
4ca131a490814ad35d2bf59f1b8676ef9824e5e3
[ "MIT" ]
null
null
null
035.py
CianciuStyles/project-euler
4ca131a490814ad35d2bf59f1b8676ef9824e5e3
[ "MIT" ]
null
null
null
035.py
CianciuStyles/project-euler
4ca131a490814ad35d2bf59f1b8676ef9824e5e3
[ "MIT" ]
null
null
null
import itertools import time def is_circular(num): rotations = rotate(num) rotations.add(int(num)) result = True for rot in rotations: if is_prime(rot) == False: result = False return result def rotate(num): result = set() result.add(int(num)) my_num = num[:] for _ in xrange(1, len(num)+1): num = nu...
21.597015
95
0.610228
63345389e0d749b2d90709002648b9499dfb4797
50
py
Python
third_party/antlr_grammars_v4/python/tiny-python/tiny-grammar-without-actions/test_auto_trailing_NEWLINE_1.py
mikhan808/rsyntaxtextarea-antlr4-extension
be6a7881e0f6e1a5e8c8e65f7ca4898a2298aa77
[ "BSD-3-Clause" ]
2
2021-04-20T21:24:09.000Z
2021-09-15T08:27:27.000Z
third_party/antlr_grammars_v4/python/tiny-python/tiny-grammar-without-actions/test_auto_trailing_NEWLINE_1.py
mikhan808/rsyntaxtextarea-antlr4-extension
be6a7881e0f6e1a5e8c8e65f7ca4898a2298aa77
[ "BSD-3-Clause" ]
null
null
null
third_party/antlr_grammars_v4/python/tiny-python/tiny-grammar-without-actions/test_auto_trailing_NEWLINE_1.py
mikhan808/rsyntaxtextarea-antlr4-extension
be6a7881e0f6e1a5e8c8e65f7ca4898a2298aa77
[ "BSD-3-Clause" ]
2
2021-09-06T08:50:58.000Z
2021-09-16T11:37:27.000Z
i = 1 # there is no NEWLINE at the end of the code
50
50
0.7
09a98024382a9646e5989d2f178c361749ad7dfe
653
bzl
Python
container/tests/versions_test.bzl
alexeagle/rules_container
885067eee3899ae71f61d99572157af8c09b5c35
[ "Apache-2.0" ]
null
null
null
container/tests/versions_test.bzl
alexeagle/rules_container
885067eee3899ae71f61d99572157af8c09b5c35
[ "Apache-2.0" ]
null
null
null
container/tests/versions_test.bzl
alexeagle/rules_container
885067eee3899ae71f61d99572157af8c09b5c35
[ "Apache-2.0" ]
null
null
null
"""Unit tests for starlark helpers See https://docs.bazel.build/versions/main/skylark/testing.html#for-testing-starlark-utilities """ load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") load("//container/private:versions.bzl", "TOOL_VERSIONS") def _smoke_test_impl(ctx): env = unittest.begin(ctx) as...
34.368421
94
0.751914
7e313dc59cd98381459efca9fdcfffb5ff46f3a2
4,361
py
Python
utils/signalDetection_utils.py
iamalex5156/Vehicle-Indicator-Toolset
cfc46f408cf3cc04a4f0c0f8841189b9dc8ffc2c
[ "MIT" ]
13
2021-03-22T15:37:29.000Z
2021-11-02T08:20:57.000Z
utils/signalDetection_utils.py
iamalex5156/Vehicle-Indicator-Toolset
cfc46f408cf3cc04a4f0c0f8841189b9dc8ffc2c
[ "MIT" ]
null
null
null
utils/signalDetection_utils.py
iamalex5156/Vehicle-Indicator-Toolset
cfc46f408cf3cc04a4f0c0f8841189b9dc8ffc2c
[ "MIT" ]
3
2021-03-23T06:24:24.000Z
2021-03-24T09:52:29.000Z
import numpy as np import os import sys import tensorflow as tf from imutils.video import VideoStream import cv2 import imutils import time from imutils.video import FPS from sklearn.metrics import pairwise import copy import pathlib from collections import defaultdict colors = np.random.uniform(0, 255, size=(100, 3))...
33.806202
142
0.627608
92a0bf48cbb813b0e9cb00939aeaf0cceeedb3a5
1,571
py
Python
checkov/kubernetes/checks/KubernetesDashboard.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
5
2021-07-29T18:08:40.000Z
2022-03-21T04:39:32.000Z
checkov/kubernetes/checks/KubernetesDashboard.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
16
2021-03-09T07:38:38.000Z
2021-06-09T03:53:55.000Z
checkov/kubernetes/checks/KubernetesDashboard.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
2
2021-08-23T13:25:36.000Z
2021-11-05T21:44:52.000Z
from checkov.common.models.enums import CheckCategories, CheckResult from checkov.kubernetes.base_spec_check import BaseK8Check class KubernetesDashboard(BaseK8Check): def __init__(self): name = "Ensure the Kubernetes dashboard is not deployed" id = "CKV_K8S_33" # Location: container .ima...
40.282051
100
0.620624
f594b775c0f74b6170b3c098abef42254b041374
38,860
py
Python
neutron/agent/linux/dhcp.py
aristanetworks/neutron
84d2638579dc92b8530ccc3e963ce0e80c36461e
[ "Apache-2.0" ]
5
2015-10-20T07:56:53.000Z
2017-12-31T22:39:15.000Z
neutron/agent/linux/dhcp.py
aristanetworks/neutron
84d2638579dc92b8530ccc3e963ce0e80c36461e
[ "Apache-2.0" ]
null
null
null
neutron/agent/linux/dhcp.py
aristanetworks/neutron
84d2638579dc92b8530ccc3e963ce0e80c36461e
[ "Apache-2.0" ]
3
2015-05-08T22:36:28.000Z
2015-10-24T21:25:35.000Z
# Copyright 2012 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...
39.331984
79
0.572234
c5d49d38ad32b40c9b8cf9af2efa378c79224a2b
3,149
py
Python
indexer/yolo/indexImages.py
spacemonkey1101/Vison-WoC-Backend
9feb3c9ad80ade6944d18958e498cd648454d1fe
[ "MIT" ]
11
2019-10-05T12:52:07.000Z
2020-09-25T04:01:26.000Z
indexer/yolo/indexImages.py
spacemonkey1101/Vison-WoC-Backend
9feb3c9ad80ade6944d18958e498cd648454d1fe
[ "MIT" ]
12
2019-10-06T14:37:13.000Z
2019-11-23T06:25:01.000Z
indexer/yolo/indexImages.py
spacemonkey1101/Vison-WoC-Backend
9feb3c9ad80ade6944d18958e498cd648454d1fe
[ "MIT" ]
10
2019-10-06T15:36:11.000Z
2019-11-10T08:15:54.000Z
# USAGE: python objectdetected_dictYOLO.py -y yolo-coco -b False # import the necessary packages import numpy as np import time import cv2 import os import argparse import psycopg2 from psycopg2 import Error from detection.Detection import yoloDetection # construct the argument parse and parse the arguments ap = arg...
30.872549
107
0.661797
4821ef61e711a1a4c3e557504d7577f899673be7
231
py
Python
utils/io.py
sniler/video2mocap
a961f33c53e2981f9de73e89d6703346a6a8f57e
[ "MIT" ]
141
2018-07-06T08:37:34.000Z
2022-03-28T01:58:50.000Z
utils/io.py
sniler/video2mocap
a961f33c53e2981f9de73e89d6703346a6a8f57e
[ "MIT" ]
14
2018-08-09T14:35:22.000Z
2021-03-05T09:51:43.000Z
utils/io.py
sniler/video2mocap
a961f33c53e2981f9de73e89d6703346a6a8f57e
[ "MIT" ]
40
2018-08-19T18:14:43.000Z
2022-01-28T06:22:51.000Z
import json def read_json(path): """ Read and load the json data from the provided path. :param str path: :return: Json data """ with open(path) as f: data = json.load(f) return data
15.4
55
0.5671
909bf097584a844b2c91d5da285e7c9b18e01534
673
py
Python
app/plugins/seo.py
jamesyangget/LickingDogAPI
9a3a4535d1683ca8942ff42d2af2d3dc4e9b4cf0
[ "MIT" ]
6
2020-03-29T12:47:58.000Z
2020-08-25T01:27:44.000Z
app/plugins/seo.py
jamesyangget/LickingDogAPI
9a3a4535d1683ca8942ff42d2af2d3dc4e9b4cf0
[ "MIT" ]
117
2020-09-30T06:20:56.000Z
2022-03-06T21:01:06.000Z
app/plugins/seo.py
jamesyangget/LickingDogAPI
9a3a4535d1683ca8942ff42d2af2d3dc4e9b4cf0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from config import ua from selenium import webdriver from selenium.webdriver.chrome.options import Options from lxml import etree def driver(url: str): """实例化driver""" options = Options() options.add_argument('--headless') options.add_argument('--disable-g...
24.035714
55
0.67162
d37019650b194275feff2b0116f6262ba687daaf
6,024
py
Python
scripts/add_places.py
oasis-art-project/oasis-server
63e8093ebafa76c90393eec7828221e255100252
[ "Artistic-2.0" ]
3
2022-03-07T23:40:29.000Z
2022-03-07T23:40:35.000Z
scripts/add_places.py
oasis-art-project/oasis-server
63e8093ebafa76c90393eec7828221e255100252
[ "Artistic-2.0" ]
null
null
null
scripts/add_places.py
oasis-art-project/oasis-server
63e8093ebafa76c90393eec7828221e255100252
[ "Artistic-2.0" ]
null
null
null
import requests import json import sys import os import csv import argparse import mimetypes from datetime import * import dateutil.parser from os import listdir from os.path import isfile, join def make_data_request(data): request = {"request": json.dumps(data)} return request def auth_header(token): ret...
34.62069
129
0.62749
530d8d6b8d97cfad1895a4b71e548d49cf10e3ed
18,865
py
Python
tensorflow/lite/python/tflite_convert.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
9
2019-12-29T01:47:37.000Z
2021-12-21T13:47:41.000Z
tensorflow/lite/python/tflite_convert.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
2
2018-03-23T00:03:36.000Z
2018-03-28T23:50:51.000Z
tensorflow/lite/python/tflite_convert.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
2
2021-01-26T08:23:41.000Z
2021-07-13T16:23:18.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.135827
80
0.684548
04da2371df1a42fa8ed132ebd90fa7f6ccf8682a
3,785
py
Python
sigep/sigep_exceptions.py
matheusjardimb/python-sigep
39a055fdb7ecaa256afd42e676823b2eab193660
[ "MIT" ]
1
2020-11-21T01:17:46.000Z
2020-11-21T01:17:46.000Z
pysigep/sigep_exceptions.py
danimaribeiro/pysigep
f0849529d686fd4aaf25a0229379199bf072dfb1
[ "MIT" ]
null
null
null
pysigep/sigep_exceptions.py
danimaribeiro/pysigep
f0849529d686fd4aaf25a0229379199bf072dfb1
[ "MIT" ]
2
2019-07-11T12:16:26.000Z
2020-07-29T00:50:56.000Z
# -*- coding: utf-8 -*- # ############################################################################# # # The MIT License (MIT) # # Copyright (c) 2016 Michell Stuttgart # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software...
29.80315
79
0.646499
9d76a3888bec7f21950db366daeab78e546c46af
403
py
Python
usb_protocol/contextmgrs/descriptors/dfu.py
DX-MON/python-usb-protocol
ce0649683ee6a0839a3be8d2776b85fb1ec10dd6
[ "BSD-3-Clause" ]
null
null
null
usb_protocol/contextmgrs/descriptors/dfu.py
DX-MON/python-usb-protocol
ce0649683ee6a0839a3be8d2776b85fb1ec10dd6
[ "BSD-3-Clause" ]
null
null
null
usb_protocol/contextmgrs/descriptors/dfu.py
DX-MON/python-usb-protocol
ce0649683ee6a0839a3be8d2776b85fb1ec10dd6
[ "BSD-3-Clause" ]
null
null
null
# # This file is part of usb-protocol. # from ..manager import DescriptorContextManager from ...emitters.descriptors.standard import InterfaceDescriptorEmitter from ...emitters.descriptors.dfu import FunctionalDescriptorEmitter class FunctionalDescriptor(DescriptorContextManager): ParentDescriptor = InterfaceDe...
28.785714
71
0.831266
859aad61a89a85eb66c4f310fadfa0b8a10035d5
148
py
Python
Codility/python/missing_integer.py
ajeet1308/code_problems
5d99839b6319295c6d81dd86775c46a536e7a1ca
[ "MIT" ]
61
2020-09-26T19:57:44.000Z
2022-03-09T18:51:44.000Z
Codility/python/missing_integer.py
ajeet1308/code_problems
5d99839b6319295c6d81dd86775c46a536e7a1ca
[ "MIT" ]
88
2020-09-19T20:00:27.000Z
2021-10-31T09:41:57.000Z
Codility/python/missing_integer.py
ajeet1308/code_problems
5d99839b6319295c6d81dd86775c46a536e7a1ca
[ "MIT" ]
218
2020-09-20T08:18:03.000Z
2022-01-30T23:13:16.000Z
def solution(A): dict_ = {} for elem in A: dict_[elem] = 1 for i in range(1, len(A)+1): if not dict_.get(i): return i return len(A) + 1
14.8
29
0.581081
48a8ab429a38efacc20fb017761b05b09b002bac
4,061
py
Python
src/the_tale/the_tale/game/cards/tests/test_use_card_task.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/cards/tests/test_use_card_task.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/cards/tests/test_use_card_task.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() class UseCardTaskTests(utils_testcase.TestCase): def setUp(self): super(UseCardTaskTests, self).setUp() self.place_1, self.place_2, self.place_3 = game_logic.create_test_map() self.account = self.accounts_factory.create_account() self.s...
50.135802
154
0.723221
2782977b4be861d59bdc3df56f80603c5cf55cbb
1,693
py
Python
afew/main.py
naegling/afew
547a3f0ccd9bfe651d277a8790cebce9ec840910
[ "0BSD" ]
null
null
null
afew/main.py
naegling/afew
547a3f0ccd9bfe651d277a8790cebce9ec840910
[ "0BSD" ]
null
null
null
afew/main.py
naegling/afew
547a3f0ccd9bfe651d277a8790cebce9ec840910
[ "0BSD" ]
null
null
null
# SPDX-License-Identifier: ISC # Copyright (c) Justus Winter <4winter@informatik.uni-hamburg.de> import sys from afew.MailMover import MailMover from afew.FolderTagSync import FolderTagSync try: from .files import watch_for_new_files, quick_find_dirs_hack except ImportError: watch_available = False else: ...
35.270833
117
0.670998
e776cb9955b0460388a84ee01ebcc5e90abdd6b1
282
py
Python
templatesadmin/urls.py
pyHammer/django-templatesadmin
7a77375d474e2398b18474085b8960cd7405ffa1
[ "BSD-3-Clause" ]
1
2015-04-07T09:30:46.000Z
2015-04-07T09:30:46.000Z
templatesadmin/urls.py
pyHammer/django-templatesadmin
7a77375d474e2398b18474085b8960cd7405ffa1
[ "BSD-3-Clause" ]
null
null
null
templatesadmin/urls.py
pyHammer/django-templatesadmin
7a77375d474e2398b18474085b8960cd7405ffa1
[ "BSD-3-Clause" ]
1
2018-09-06T02:36:13.000Z
2018-09-06T02:36:13.000Z
from django.contrib.admin.sites import AdminSite from django.conf.urls import * urlpatterns = patterns('', url(r'^$', 'templatesadmin.views.overview', name='templatesadmin-overview'), url(r'^edit/(?P<path>.*)/$', 'templatesadmin.views.edit', name='templatesadmin-edit'), )
35.25
90
0.70922
36bc866f58a5af4ab7120e3df8c7919ad3bbaa41
165,037
py
Python
leo/core/leoCommands.py
thomasbuttler/leo-editor
c1bddc31313b7788f0d6583dcb4ab75db73e9a09
[ "MIT" ]
null
null
null
leo/core/leoCommands.py
thomasbuttler/leo-editor
c1bddc31313b7788f0d6583dcb4ab75db73e9a09
[ "MIT" ]
null
null
null
leo/core/leoCommands.py
thomasbuttler/leo-editor
c1bddc31313b7788f0d6583dcb4ab75db73e9a09
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #@+leo-ver=5-thin #@+node:ekr.20031218072017.2810: * @file leoCommands.py #@@first #@+<< imports >> #@+node:ekr.20040712045933: ** << imports >> (leoCommands) import itertools import os import re import subprocess import sys import tabnanny import tempfile import time import tokenize from typing...
38.7229
118
0.559002
20a5b526dddb29269065dd16da519e73555cc447
5,638
py
Python
src/keyboards/iso/config.py
rubienr-kbd/parametric-model
f309d05479a514c8c76f30ca1a5e68e3882972b2
[ "Apache-2.0" ]
null
null
null
src/keyboards/iso/config.py
rubienr-kbd/parametric-model
f309d05479a514c8c76f30ca1a5e68e3882972b2
[ "Apache-2.0" ]
null
null
null
src/keyboards/iso/config.py
rubienr-kbd/parametric-model
f309d05479a514c8c76f30ca1a5e68e3882972b2
[ "Apache-2.0" ]
null
null
null
""" All dimensions are metric in [mm]. """ from typing import Optional # ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ class KeyBaseConfig(object): def __init_...
39.985816
200
0.605711
f145af1a4f1d08b4577421f30d3264de0eca3b66
15,616
py
Python
direction_net/dataset.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
direction_net/dataset.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
direction_net/dataset.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 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...
40.666667
80
0.6599
2121629b8d0f594c458a6502fc618badc3904884
2,264
py
Python
fig/progress_stream.py
dragonfly-science/fig
188274cb2372651a826ea76c942f192e2fda92e6
[ "Apache-2.0" ]
1
2016-04-25T08:43:35.000Z
2016-04-25T08:43:35.000Z
fig/progress_stream.py
dragonfly-science/fig
188274cb2372651a826ea76c942f192e2fda92e6
[ "Apache-2.0" ]
null
null
null
fig/progress_stream.py
dragonfly-science/fig
188274cb2372651a826ea76c942f192e2fda92e6
[ "Apache-2.0" ]
1
2019-10-08T17:31:23.000Z
2019-10-08T17:31:23.000Z
import json import os import codecs class StreamOutputError(Exception): pass def stream_output(output, stream): is_terminal = hasattr(stream, 'fileno') and os.isatty(stream.fileno()) stream = codecs.getwriter('utf-8')(stream) all_events = [] lines = {} diff = 0 for chunk in output: ...
26.952381
80
0.556095
238633c847da952eeec07d4536dcd3f444d52276
2,859
py
Python
EvolutionaryRatesRanking.py
NathanWhelan/Order-genes-by-evolutioanry-rate
c39bf29292e8275cb59018910c8d1e33f32641c8
[ "MIT" ]
2
2015-08-30T01:14:11.000Z
2020-05-20T15:49:21.000Z
EvolutionaryRatesRanking.py
NathanWhelan/Order-genes-by-evolutioanry-rate
c39bf29292e8275cb59018910c8d1e33f32641c8
[ "MIT" ]
null
null
null
EvolutionaryRatesRanking.py
NathanWhelan/Order-genes-by-evolutioanry-rate
c39bf29292e8275cb59018910c8d1e33f32641c8
[ "MIT" ]
null
null
null
#!/usr/bin/python ######################################################################################################################### #This script was written by Nathan Whelan. # THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES...
50.157895
136
0.657922
84f793f7564c1c6cb2e4fcc3ef031b215b1abd03
2,910
py
Python
flask_rbac/model.py
carlosgalvez-tiendeo/flask-rbac
e33ae5cef708ca7b56f06120a3598048025e79a0
[ "MIT" ]
1
2021-04-21T08:22:17.000Z
2021-04-21T08:22:17.000Z
flask_rbac/model.py
carlosgalvez-tiendeo/flask-rbac
e33ae5cef708ca7b56f06120a3598048025e79a0
[ "MIT" ]
null
null
null
flask_rbac/model.py
carlosgalvez-tiendeo/flask-rbac
e33ae5cef708ca7b56f06120a3598048025e79a0
[ "MIT" ]
null
null
null
class RoleMixin(object): """This provides implementations for the methods that Flask-RBAC wants the role model to have. :param name: The name of role. """ roles = {} def __init__(self, name=None): self.name = name if not hasattr(self.__class__, 'parents'): self.par...
26.454545
78
0.592784
fe541bb3585b056fe85aca6cc595e8156a79cc44
1,852
py
Python
NOTIFY/perkichat.py
aaronrandy/perkichat
236b270db698d2d2c3a63650806554a9ad6c0b5d
[ "MIT" ]
null
null
null
NOTIFY/perkichat.py
aaronrandy/perkichat
236b270db698d2d2c3a63650806554a9ad6c0b5d
[ "MIT" ]
2
2020-11-17T13:37:33.000Z
2020-11-20T11:32:22.000Z
NOTIFY/perkichat.py
aaronrandy/perkichat
236b270db698d2d2c3a63650806554a9ad6c0b5d
[ "MIT" ]
6
2020-11-17T13:31:19.000Z
2021-02-05T13:48:06.000Z
#! /usr/bin/env python3 import requests, json import datetime import yaml ##------------------------Global Variables-------------------------------## URL = "https://notify-api.line.me/api/notify" class PerkiChat: """ Class for chating in line messenger. ... Attributes ---------- mode :...
22.585366
83
0.509719
81329a60a162739451a039283b93c8f7df8de9e6
138,003
py
Python
GhidraBuild/IDAPro/Python/7xx/python/idaxml.py
oldmud0/ghidra
bbe07f5690bde0d3525d561d36e4d3ee059bc870
[ "Apache-2.0" ]
1
2021-12-02T10:00:14.000Z
2021-12-02T10:00:14.000Z
GhidraBuild/IDAPro/Python/7xx/python/idaxml.py
oldmud0/ghidra
bbe07f5690bde0d3525d561d36e4d3ee059bc870
[ "Apache-2.0" ]
null
null
null
GhidraBuild/IDAPro/Python/7xx/python/idaxml.py
oldmud0/ghidra
bbe07f5690bde0d3525d561d36e4d3ee059bc870
[ "Apache-2.0" ]
null
null
null
## ### # IP: GHIDRA # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
37.267891
92
0.567495
d2fa355801f2e5823e16011011e4c72469a3c843
2,634
py
Python
algos/a_recur.py
tpudlik/sbf
02ac18d39ad824d5ddc903e339e5af222a7b697a
[ "MIT" ]
4
2018-08-28T01:59:17.000Z
2021-10-31T11:11:49.000Z
algos/a_recur.py
tpudlik/sbf
02ac18d39ad824d5ddc903e339e5af222a7b697a
[ "MIT" ]
null
null
null
algos/a_recur.py
tpudlik/sbf
02ac18d39ad824d5ddc903e339e5af222a7b697a
[ "MIT" ]
3
2017-08-15T18:24:01.000Z
2021-10-31T11:12:00.000Z
"""Ascending recurrence algorithms for spherical Bessel functions. The recurrence relation used is http://dlmf.nist.gov/10.51.E1 . """ import numpy as np from scipy.misc import factorial, factorial2 def recurrence_pattern(n, z, f0, f1): """Ascending recurrence for jn, yn, h1n, h2n.""" s0 = f0 if n == 0:...
26.877551
71
0.476082
0f54bdcbbe893dd45f5dfc0f4a71f08b801164bb
302
py
Python
src/shortest_word.py
famavott/codewars-katas
fdc5574bcd13adc194975ac94ab90c59ee3aa398
[ "MIT" ]
null
null
null
src/shortest_word.py
famavott/codewars-katas
fdc5574bcd13adc194975ac94ab90c59ee3aa398
[ "MIT" ]
null
null
null
src/shortest_word.py
famavott/codewars-katas
fdc5574bcd13adc194975ac94ab90c59ee3aa398
[ "MIT" ]
null
null
null
"""Kata: Given string of words, return length of shortest.""" def find_short(strg): """Return length of shortest word in sentence.""" words = strg.split() min_size = float('inf') for word in words: if len(word) < min_size: min_size = len(word) return min_size
25.166667
61
0.619205
ac8efff75c738e8c8385eac28bb7a86545d1a656
4,154
py
Python
src/LightCNN/train/model.py
willyspinner/High-Performance-Face-Recognition
c5caad61be97fd20f9c47a727278ff938dc5cc8f
[ "MIT" ]
300
2019-01-28T07:37:53.000Z
2022-03-09T02:17:28.000Z
src/LightCNN/train/model.py
willyspinner/High-Performance-Face-Recognition
c5caad61be97fd20f9c47a727278ff938dc5cc8f
[ "MIT" ]
15
2019-04-22T14:23:01.000Z
2021-11-24T09:52:32.000Z
src/LightCNN/train/model.py
willyspinner/High-Performance-Face-Recognition
c5caad61be97fd20f9c47a727278ff938dc5cc8f
[ "MIT" ]
67
2019-01-29T05:42:09.000Z
2021-12-28T11:09:44.000Z
import tensorflow as tf import layer as L class Model(): def __init__(self, res, res_size): self.res = res self.res_size = res_size self.layer_num = 0 self.batch_norm = True def get_current_layer_res(self): return self.res def get_shape(self): return self.res_size def get_current_lay...
32.20155
124
0.678623
119304de98596c8a18ff835a9f6d7858454f89ea
891
py
Python
lifesospy/const.py
rorr73/LifeSOSpy
5d887892999e942da7bc89b3be547a3781916069
[ "MIT" ]
2
2019-08-09T17:50:28.000Z
2019-09-29T02:14:13.000Z
lifesospy/const.py
rorr73/LifeSOSpy
5d887892999e942da7bc89b3be547a3781916069
[ "MIT" ]
null
null
null
lifesospy/const.py
rorr73/LifeSOSpy
5d887892999e942da7bc89b3be547a3781916069
[ "MIT" ]
null
null
null
""" This module contains all common constants used by this library. """ # Project metadata PROJECT_NAME = 'lifesospy' PROJECT_DESCRIPTION = "Provides an interface to LifeSOS alarm systems." PROJECT_VERSION = '0.10.1' __version__ = PROJECT_VERSION # Command names CMD_CLEAR_STATUS = 'l5' CMD_DATETIME = 'dt' CMD_DEVBYID...
21.214286
71
0.741863
7856deaf7548903990ca6418749a24153e7b742b
1,179
py
Python
erniekit/data/reader_config.py
PaddlePaddle/LARK
94a2367ba7f0f83b48330233450ea095d8dc9382
[ "Apache-2.0" ]
1,552
2019-03-03T19:52:07.000Z
2019-07-19T06:47:57.000Z
erniekit/data/reader_config.py
PaddlePaddle/LARK
94a2367ba7f0f83b48330233450ea095d8dc9382
[ "Apache-2.0" ]
154
2019-03-06T08:19:57.000Z
2019-07-19T02:52:22.000Z
erniekit/data/reader_config.py
PaddlePaddle/LARK
94a2367ba7f0f83b48330233450ea095d8dc9382
[ "Apache-2.0" ]
382
2019-03-04T13:37:01.000Z
2019-07-19T06:33:44.000Z
# -*- coding: utf-8 -* """ :py:class:`ReaderConfig` is an abstract class representing """ class ReaderConfig(object): """ReaderConfig""" def __init__(self): self.data_path = None self.shuffle = False self.batch_size = 8 self.sampling_rate = 1.0 self.epoch = 1 # ...
33.685714
86
0.642918
47e7e9aff15de1f9684792ea434adbddd0fcbfc7
1,068
py
Python
jdcloud_sdk/services/mongodb/models/TopologyPair.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/mongodb/models/TopologyPair.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/mongodb/models/TopologyPair.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
31.411765
75
0.691948