hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
5d426a552dd2b03b06476c8e56b7d8789bd45763
4,252
py
Python
tests/fhir_tests/test_picklejar.py
dnstone/fhirtordf
2ec2ac2ea66798a39fa0c3f27c9803f69e7710d1
[ "Apache-2.0" ]
null
null
null
tests/fhir_tests/test_picklejar.py
dnstone/fhirtordf
2ec2ac2ea66798a39fa0c3f27c9803f69e7710d1
[ "Apache-2.0" ]
null
null
null
tests/fhir_tests/test_picklejar.py
dnstone/fhirtordf
2ec2ac2ea66798a39fa0c3f27c9803f69e7710d1
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017, Mayo Clinic # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list of conditions and the f...
37.964286
99
0.676152
# Copyright (c) 2017, Mayo Clinic # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list of conditions and the f...
2,170
282
46
37ba785d1dcf0efb21e6755298fd6ec36a75c92c
1,614
py
Python
src/image_attacks/im_main.py
tahleen-rahman/all2friends
156ba257677def409661e8b68ccdfb1e896ba721
[ "Apache-2.0" ]
null
null
null
src/image_attacks/im_main.py
tahleen-rahman/all2friends
156ba257677def409661e8b68ccdfb1e896ba721
[ "Apache-2.0" ]
4
2021-06-08T21:47:39.000Z
2022-03-12T00:35:39.000Z
src/image_attacks/im_main.py
tahleen-rahman/all2friends
156ba257677def409661e8b68ccdfb1e896ba721
[ "Apache-2.0" ]
null
null
null
# Created by rahman at 15:20 2020-03-05 using PyCharm import subprocess from image_attacks.im_utils import slice_files, combine_files, clean_trim, count_cats, make_features_counts, score from shared_tools.utils import make_allPairs, classifiers, DATAPATH, city def attack_images(cores, prob_cutoff): """ :p...
25.619048
153
0.7057
# Created by rahman at 15:20 2020-03-05 using PyCharm import subprocess from image_attacks.im_utils import slice_files, combine_files, clean_trim, count_cats, make_features_counts, score from shared_tools.utils import make_allPairs, classifiers, DATAPATH, city def attack_images(cores, prob_cutoff): """ :p...
0
0
0
223a931e7e8f65f54729a2a3fd28e7671deed893
1,070
py
Python
dr/backend/mujoco.py
jigangkim/domain_randomization
07a309a9e824b5332219871abe8f0f657694b292
[ "MIT" ]
null
null
null
dr/backend/mujoco.py
jigangkim/domain_randomization
07a309a9e824b5332219871abe8f0f657694b292
[ "MIT" ]
null
null
null
dr/backend/mujoco.py
jigangkim/domain_randomization
07a309a9e824b5332219871abe8f0f657694b292
[ "MIT" ]
null
null
null
import numpy as np from dr.backend.base import Backend
26.097561
66
0.653271
import numpy as np from dr.backend.base import Backend class MujocoBackend(Backend): ENV_MAP = { 'Hopper': 'Hopper-v2', 'Cheetah': 'HalfCheetah-v2', 'Walker': 'Walker2d-v2', } def get_world(self, env): return env.env.model def get_masses(self, env): return np...
616
374
23
0ffc5834a2b713e166cfe5b56e3fdb43410997d9
570
py
Python
Exercicios Python/ex028.py
ClaudioSiqueira/Exercicios-Python
128387769b34b7d42aee5c1effda16de21216e10
[ "MIT" ]
null
null
null
Exercicios Python/ex028.py
ClaudioSiqueira/Exercicios-Python
128387769b34b7d42aee5c1effda16de21216e10
[ "MIT" ]
null
null
null
Exercicios Python/ex028.py
ClaudioSiqueira/Exercicios-Python
128387769b34b7d42aee5c1effda16de21216e10
[ "MIT" ]
null
null
null
from random import randint from time import sleep computador = randint(1, 5) print('\033[34m-==-\033[m'*17) print('Vamos jogar um jogo, tente adivinhar o número que estou pensando !') sleep(1) jogador = int(input('Chute um valor de 1 até 5: ')) print('PROCESSANDO...') sleep(1) if jogador == computador: print('\033...
35.625
118
0.7
from random import randint from time import sleep computador = randint(1, 5) print('\033[34m-==-\033[m'*17) print('Vamos jogar um jogo, tente adivinhar o número que estou pensando !') sleep(1) jogador = int(input('Chute um valor de 1 até 5: ')) print('PROCESSANDO...') sleep(1) if jogador == computador: print('\033...
0
0
0
baeefdfe853ae0bd15d1e1c0199aae78ab93acc6
6,372
py
Python
go/billing/tasks.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/billing/tasks.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/billing/tasks.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
from datetime import date from dateutil.relativedelta import relativedelta from celery.task import task, group from django.db.models import Sum, Count from go.billing import settings from go.billing.models import ( Account, Transaction, MessageCost, Statement, LineItem) from go.base.utils import vumi_api ...
29.775701
74
0.724419
from datetime import date from dateutil.relativedelta import relativedelta from celery.task import task, group from django.db.models import Sum, Count from go.billing import settings from go.billing.models import ( Account, Transaction, MessageCost, Statement, LineItem) from go.base.utils import vumi_api def ...
4,145
0
437
9fb59721e031ca2d2ad94260365575fbf0c263fc
69
py
Python
tests/data/config/i_child.py
jinliwei1997/mmcv
f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79
[ "Apache-2.0" ]
3,748
2018-10-12T08:39:46.000Z
2022-03-31T17:22:55.000Z
tests/data/config/i_child.py
jinliwei1997/mmcv
f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79
[ "Apache-2.0" ]
1,637
2018-10-12T06:06:18.000Z
2022-03-31T02:20:53.000Z
tests/data/config/i_child.py
jinliwei1997/mmcv
f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79
[ "Apache-2.0" ]
1,234
2018-10-12T09:28:20.000Z
2022-03-31T15:56:24.000Z
_base_ = './i_base.py' item_cfg = {'b': 2} item6 = {'cfg': item_cfg}
17.25
25
0.57971
_base_ = './i_base.py' item_cfg = {'b': 2} item6 = {'cfg': item_cfg}
0
0
0
c5740ab7ab678719ba6d2355a1a59e6f3c6dc3bc
17,820
py
Python
python/oneflow/nn/graph/graph.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/graph/graph.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/graph/graph.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
36.367347
107
0.565825
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
14,335
1,899
23
8a7c3ef46588513a00763c8fbd4bb9d87d5bd15a
848
py
Python
src/decoding/bin/decodePixelBased.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
src/decoding/bin/decodePixelBased.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
src/decoding/bin/decodePixelBased.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
import sys import csv import re from modules.pixelBasedDecoding import decodePixelBased # Input parsing: # needs to know up front how large the image is going to be x_dim = int(sys.argv[1]) y_dim = int(sys.argv[2]) # Extract tile nr tile_nr = sys.argv[3] tile_nr_int = int(re.findall(r"\d+", tile_nr)[0]) codebook ...
27.354839
101
0.746462
import sys import csv import re from modules.pixelBasedDecoding import decodePixelBased # Input parsing: # needs to know up front how large the image is going to be x_dim = int(sys.argv[1]) y_dim = int(sys.argv[2]) # Extract tile nr tile_nr = sys.argv[3] tile_nr_int = int(re.findall(r"\d+", tile_nr)[0]) codebook ...
0
0
0
cdbef3b5da47b0cf0e8e70e5d63b840baa5fdd6c
1,112
py
Python
book_club/book_club/book/migrations/0001_initial.py
Beshkov/Python-web-fundamentals
6b0e9cc9725ea80a33c2ebde6e29f2ab585ab8d9
[ "MIT" ]
null
null
null
book_club/book_club/book/migrations/0001_initial.py
Beshkov/Python-web-fundamentals
6b0e9cc9725ea80a33c2ebde6e29f2ab585ab8d9
[ "MIT" ]
null
null
null
book_club/book_club/book/migrations/0001_initial.py
Beshkov/Python-web-fundamentals
6b0e9cc9725ea80a33c2ebde6e29f2ab585ab8d9
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-08 21:52 from django.db import migrations, models
38.344828
161
0.560252
# Generated by Django 3.2.6 on 2021-08-08 21:52 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Book', fields=[ ('id', models.BigAutoField(...
0
998
23
1bb4c5017f9be7bdefa32170d540c123ac7888b3
1,209
py
Python
neural_heap/dataset/io_synthesis/io_synthesis.py
brandontrabucco/neural-heap
57a4823370c8e6b6c38562ebf3ca11489441a94b
[ "MIT" ]
null
null
null
neural_heap/dataset/io_synthesis/io_synthesis.py
brandontrabucco/neural-heap
57a4823370c8e6b6c38562ebf3ca11489441a94b
[ "MIT" ]
null
null
null
neural_heap/dataset/io_synthesis/io_synthesis.py
brandontrabucco/neural-heap
57a4823370c8e6b6c38562ebf3ca11489441a94b
[ "MIT" ]
null
null
null
import os, sys os.chdir("G:\\My Drive\\Academic\\Research\\Neural Heap") from neural_heap.dataset.io_synthesis.io_synthesis_args import IOSynthesisArgs from neural_heap.dataset.io_synthesis.io_synthesis_utils import IOSynthesisUtils
30.225
81
0.594706
import os, sys os.chdir("G:\\My Drive\\Academic\\Research\\Neural Heap") from neural_heap.dataset.io_synthesis.io_synthesis_args import IOSynthesisArgs from neural_heap.dataset.io_synthesis.io_synthesis_utils import IOSynthesisUtils class IOSynthesis(object): def __init__( self, p...
818
5
141
4f28caf061d0d3e8e16222acca82b34d0343937c
2,589
py
Python
SilverBash/Adam_Teal_Bash/algod_app.py
preciousM494/TEAL
7c4b6ee8b50842c568db5c984b7896219304a71a
[ "Apache-2.0" ]
3
2022-01-20T14:08:29.000Z
2022-01-30T11:08:09.000Z
SilverBash/Adam_Teal_Bash/algod_app.py
preciousM494/TEAL
7c4b6ee8b50842c568db5c984b7896219304a71a
[ "Apache-2.0" ]
7
2022-01-09T03:14:46.000Z
2022-01-27T22:51:51.000Z
SilverBash/Adam_Teal_Bash/algod_app.py
preciousM494/TEAL
7c4b6ee8b50842c568db5c984b7896219304a71a
[ "Apache-2.0" ]
26
2022-01-09T02:48:42.000Z
2022-01-26T15:02:51.000Z
from pyteal import * from algosdk.v2client import algod from algosdk import account, mnemonic import pyteal # from deploy import PytealDeploy algod_token = 'B3SU4KcVKi94Jap2VXkK83xx38bsv95K5UZm2lab' algod_addres = "http://testnet-algorand.api.purestake.io/ps2" purestack_token = { "X-Api-Key": algod_to...
30.821429
110
0.65392
from pyteal import * from algosdk.v2client import algod from algosdk import account, mnemonic import pyteal # from deploy import PytealDeploy algod_token = 'B3SU4KcVKi94Jap2VXkK83xx38bsv95K5UZm2lab' algod_addres = "http://testnet-algorand.api.purestake.io/ps2" purestack_token = { "X-Api-Key": algod_to...
1,963
0
49
a8494f2b5e36e61c41ba5193984ac5e32316d1a8
8,056
py
Python
murano_tempest_tests/tests/api/application_catalog/test_repository.py
zhur0ng/murano-tempest-plugin
c70cda4dc7b8208252e9741a96acba9fb6a5c6e9
[ "Apache-2.0" ]
6
2017-10-31T10:37:17.000Z
2019-01-28T22:05:05.000Z
murano_tempest_tests/tests/api/application_catalog/test_repository.py
zhur0ng/murano-tempest-plugin
c70cda4dc7b8208252e9741a96acba9fb6a5c6e9
[ "Apache-2.0" ]
1
2018-08-20T07:39:23.000Z
2018-08-20T07:39:23.000Z
murano_tempest_tests/tests/api/application_catalog/test_repository.py
zhur0ng/murano-tempest-plugin
c70cda4dc7b8208252e9741a96acba9fb6a5c6e9
[ "Apache-2.0" ]
2
2018-01-11T05:08:35.000Z
2018-08-20T07:32:33.000Z
# Copyright (c) 2016 Mirantis, 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...
36.288288
78
0.617925
# Copyright (c) 2016 Mirantis, 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...
6,060
1,133
46
ad1df4e9b490e6ef1278f8134c76f77a5ef9f80f
1,210
py
Python
setup.py
chaselgrove/hypothesis
07a9c436208ec62b6d8b33c1cb4305a67baff8c6
[ "BSD-2-Clause" ]
6
2018-11-11T02:10:56.000Z
2022-02-07T10:21:25.000Z
setup.py
chaselgrove/hypothesis
07a9c436208ec62b6d8b33c1cb4305a67baff8c6
[ "BSD-2-Clause" ]
2
2018-08-10T02:32:29.000Z
2018-08-21T15:34:13.000Z
setup.py
chaselgrove/hypothesis
07a9c436208ec62b6d8b33c1cb4305a67baff8c6
[ "BSD-2-Clause" ]
2
2018-07-24T03:31:32.000Z
2018-08-10T02:59:09.000Z
#!/usr/bin/python # See file COPYING distributed with python-hypothesis for copyright and # license. from setuptools import setup long_description = open('README.rst').read() setup(name='python-hypothesis', version='0.4.2', description='Python library for the Hypothes.is API', author='Christia...
34.571429
72
0.563636
#!/usr/bin/python # See file COPYING distributed with python-hypothesis for copyright and # license. from setuptools import setup long_description = open('README.rst').read() setup(name='python-hypothesis', version='0.4.2', description='Python library for the Hypothes.is API', author='Christia...
0
0
0
513206d0eb2312c92c22e659d7d284bcc14bff04
481
py
Python
showminder/frontend/migrations/0008_auto_20180422_1431.py
chassing/showminder
136ef3f1a41fa3aa45574770dd5751b0b7b9edd3
[ "MIT" ]
1
2017-01-26T09:12:55.000Z
2017-01-26T09:12:55.000Z
showminder/frontend/migrations/0008_auto_20180422_1431.py
chassing/showminder
136ef3f1a41fa3aa45574770dd5751b0b7b9edd3
[ "MIT" ]
null
null
null
showminder/frontend/migrations/0008_auto_20180422_1431.py
chassing/showminder
136ef3f1a41fa3aa45574770dd5751b0b7b9edd3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2018-04-22 14:31 from __future__ import unicode_literals from django.db import migrations, models
22.904762
74
0.627859
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2018-04-22 14:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('frontend', '0007_auto_20170505_1441'), ] operations = [ migrations.AlterFie...
0
302
23
4c494c9bae4f69ee732530ae8c366dc42ff79e88
2,028
py
Python
python/oneflow/framework/docstr/index_select.py
felixhao28/oneflow
e558af6ef6c4ed90e4abc7bc1ba895f55795626d
[ "Apache-2.0" ]
null
null
null
python/oneflow/framework/docstr/index_select.py
felixhao28/oneflow
e558af6ef6c4ed90e4abc7bc1ba895f55795626d
[ "Apache-2.0" ]
null
null
null
python/oneflow/framework/docstr/index_select.py
felixhao28/oneflow
e558af6ef6c4ed90e4abc7bc1ba895f55795626d
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
34.372881
129
0.649408
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
0
0
0
66a99117c2241962a9cb4fee444ebd3e46796813
186
py
Python
HomeWorks/Rostik/string.py
PhantomMind/FamousTeamDream
1268950a2f18236f0fda364a5484b478280f39f7
[ "Apache-2.0" ]
null
null
null
HomeWorks/Rostik/string.py
PhantomMind/FamousTeamDream
1268950a2f18236f0fda364a5484b478280f39f7
[ "Apache-2.0" ]
null
null
null
HomeWorks/Rostik/string.py
PhantomMind/FamousTeamDream
1268950a2f18236f0fda364a5484b478280f39f7
[ "Apache-2.0" ]
null
null
null
someList = ['470 градусов по фаренгейту', 'Сталкер', 'Наруто', 'Форсаж', 'Оно', 'Оно2', 'Смешарики', 'Лунтик'] print(someList) someList.append('frdfvty') del someList[8] print(someList)
31
110
0.704301
someList = ['470 градусов по фаренгейту', 'Сталкер', 'Наруто', 'Форсаж', 'Оно', 'Оно2', 'Смешарики', 'Лунтик'] print(someList) someList.append('frdfvty') del someList[8] print(someList)
0
0
0
50fda266a3d1133cdac7672b09442bedfca50aed
3,136
py
Python
scraper/modules/pgte_patreon.py
iburinoc/kindle_scraper
0929b0aaa0ce47cbdeb845bb7724fb5390ca2e3e
[ "MIT" ]
null
null
null
scraper/modules/pgte_patreon.py
iburinoc/kindle_scraper
0929b0aaa0ce47cbdeb845bb7724fb5390ca2e3e
[ "MIT" ]
3
2020-06-06T16:16:30.000Z
2021-04-30T20:47:07.000Z
scraper/modules/pgte_patreon.py
iburinoc/kindle_scraper
0929b0aaa0ce47cbdeb845bb7724fb5390ca2e3e
[ "MIT" ]
2
2019-06-22T22:40:04.000Z
2020-06-04T22:28:32.000Z
import asyncio from aiogoogle import Aiogoogle, GoogleAPI from aiogoogle.auth.creds import ClientCreds, UserCreds import base64 import bs4 import json import scraper.util import scraper.flags AUTHOR = "Erratic Errata"
29.308411
99
0.639031
import asyncio from aiogoogle import Aiogoogle, GoogleAPI from aiogoogle.auth.creds import ClientCreds, UserCreds import base64 import bs4 import json import scraper.util import scraper.flags AUTHOR = "Erratic Errata" def _get_user_creds(creds): return UserCreds( access_token=creds.token, refresh...
2,778
0
138
d223692d0a1aa94547a58cfe2d937308586051ab
97
py
Python
invokers/python/tests/functions/http/default/func.py
andrew-su/function-buildpacks-for-knative
dcb9a8c1e07a6288dbc096e2f5270eb5e16a625a
[ "BSD-2-Clause" ]
19
2021-11-03T15:02:24.000Z
2022-03-23T04:33:56.000Z
invokers/python/tests/functions/http/default/func.py
andrew-su/function-buildpacks-for-knative
dcb9a8c1e07a6288dbc096e2f5270eb5e16a625a
[ "BSD-2-Clause" ]
36
2021-11-05T14:33:37.000Z
2022-03-24T20:13:40.000Z
invokers/python/tests/functions/http/default/func.py
andrew-su/function-buildpacks-for-knative
dcb9a8c1e07a6288dbc096e2f5270eb5e16a625a
[ "BSD-2-Clause" ]
4
2021-11-16T08:27:58.000Z
2022-02-03T02:58:24.000Z
# Copyright 2021-2022 VMware, Inc. # SPDX-License-Identifier: BSD-2-Clause
16.166667
39
0.701031
# Copyright 2021-2022 VMware, Inc. # SPDX-License-Identifier: BSD-2-Clause def main(): pass
-1
0
23
48e14c33ef3c486ff575304d354ffdceab4264fd
5,193
py
Python
birds/test_storage.py
pitkali/birds-api
2c37995898abe1bbe0dab3307af11bb508ec4cca
[ "Apache-2.0" ]
null
null
null
birds/test_storage.py
pitkali/birds-api
2c37995898abe1bbe0dab3307af11bb508ec4cca
[ "Apache-2.0" ]
null
null
null
birds/test_storage.py
pitkali/birds-api
2c37995898abe1bbe0dab3307af11bb508ec4cca
[ "Apache-2.0" ]
null
null
null
"""Storage engine sanity tests""" from pymongo import MongoClient import copy import unittest import time from . import storage ITEM_VISIBLE = {"key" : "valueA", storage.VISIBLE_KEY : True} ITEM_HIDDEN = {"key" : "valueB"} def is_same_dictionary(a, b): """Shallow dictionary comparison""" keysA = set(a.keys...
31.472727
79
0.651261
"""Storage engine sanity tests""" from pymongo import MongoClient import copy import unittest import time from . import storage ITEM_VISIBLE = {"key" : "valueA", storage.VISIBLE_KEY : True} ITEM_HIDDEN = {"key" : "valueB"} def is_same_dictionary(a, b): """Shallow dictionary comparison""" keysA = set(a.keys...
3,464
209
589
503cae65e11fcbedcf30da20c844d8092c3b4bda
3,225
py
Python
models/utils/gcn.py
mhnaufal/parking-space-occupancy
ecc17478838506601b526b7488b343f14e2637e5
[ "MIT" ]
6
2021-07-29T04:15:15.000Z
2022-01-12T07:18:14.000Z
models/utils/gcn.py
mhnaufal/parking-space-occupancy
ecc17478838506601b526b7488b343f14e2637e5
[ "MIT" ]
null
null
null
models/utils/gcn.py
mhnaufal/parking-space-occupancy
ecc17478838506601b526b7488b343f14e2637e5
[ "MIT" ]
4
2021-07-27T10:04:33.000Z
2021-11-27T20:28:35.000Z
import torch import copy from torch import nn from torch.nn import functional as F from torch.nn.modules.container import ModuleList class NeighborAttention(nn.Module): """ A graph-based attention replacement. """ class NeighborEncoderLayer(nn.Module): """ Copy-paste of torch.nn.TransformerEnco...
33.947368
100
0.622326
import torch import copy from torch import nn from torch.nn import functional as F from torch.nn.modules.container import ModuleList class NeighborAttention(nn.Module): """ A graph-based attention replacement. """ def __init__(self, n, d_model): super().__init__() self.n = n s...
2,279
0
220
5542929b78e5e07d174778ee5e31247b762fa0bf
45
py
Python
EmployeeSQL/Config.py
XxTopShottaxX/SQL-challenge
a560b8fb28f55396913b95b44c8bf5ffb95267a3
[ "ADSL" ]
null
null
null
EmployeeSQL/Config.py
XxTopShottaxX/SQL-challenge
a560b8fb28f55396913b95b44c8bf5ffb95267a3
[ "ADSL" ]
null
null
null
EmployeeSQL/Config.py
XxTopShottaxX/SQL-challenge
a560b8fb28f55396913b95b44c8bf5ffb95267a3
[ "ADSL" ]
null
null
null
username="postgres" password="dr@g0ngThcetaG"
22.5
25
0.822222
username="postgres" password="dr@g0ngThcetaG"
0
0
0
a3de5b6bc51701b123efaaa48340189702b53808
2,805
py
Python
src/testoob/reporting/test_info.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
src/testoob/reporting/test_info.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
src/testoob/reporting/test_info.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
# Testoob, Python Testing Out Of (The) Box # Copyright (C) 2005-2006 The Testoob Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
30.16129
81
0.670945
# Testoob, Python Testing Out Of (The) Box # Copyright (C) 2005-2006 The Testoob Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
1,243
0
434
bf515a4686057296a620835ea20d27f153c36106
315
py
Python
cloudmesh_cmd/cygwin-install.py
cloudmesh/windows
f089e9ef83ae1cae9b29c877c462130a7b93b5e8
[ "Apache-2.0" ]
null
null
null
cloudmesh_cmd/cygwin-install.py
cloudmesh/windows
f089e9ef83ae1cae9b29c877c462130a7b93b5e8
[ "Apache-2.0" ]
1
2015-06-08T23:15:25.000Z
2015-06-08T23:15:25.000Z
cloudmesh_cmd/cygwin-install.py
cloudmesh/windows
f089e9ef83ae1cae9b29c877c462130a7b93b5e8
[ "Apache-2.0" ]
null
null
null
import urllib import os from subprocess import Popen directory = 'C:\\Temp\\cygwindownload' if not os.path.isdir(directory): os.makedirs(directory) urllib.urlretrieve("https://cygwin.com/setup-x86.exe", directory + '\\setup.exe') p = Popen("cygwin-install.bat") stdout, stderr = p.communicate()
22.5
82
0.704762
import urllib import os from subprocess import Popen directory = 'C:\\Temp\\cygwindownload' if not os.path.isdir(directory): os.makedirs(directory) urllib.urlretrieve("https://cygwin.com/setup-x86.exe", directory + '\\setup.exe') p = Popen("cygwin-install.bat") stdout, stderr = p.communicate()
0
0
0
77596c5e8f345c28d69336c3470785f0b1d58164
7,531
py
Python
availability_app/views.py
Brown-University-Library/OLD-ARCHIVED_availability_api
77ce8a557f46e195a55da93eb8985337ab0448ac
[ "MIT" ]
1
2017-06-13T16:57:48.000Z
2017-06-13T16:57:48.000Z
availability_app/views.py
Brown-University-Library/OLD-ARCHIVED_availability_api
77ce8a557f46e195a55da93eb8985337ab0448ac
[ "MIT" ]
9
2019-09-03T13:39:57.000Z
2020-09-14T20:39:44.000Z
availability_app/views.py
Brown-University-Library/availability_api
77ce8a557f46e195a55da93eb8985337ab0448ac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime, json, logging, os, pprint from availability_app import settings_app from availability_app.lib import view_info_helper from availability_app.lib.concurrency import AsyncHelper # temporary demo helper from availability_app.lib.ezb_v1_handler import EzbV1Helper from availability...
46.487654
143
0.688089
# -*- coding: utf-8 -*- import datetime, json, logging, os, pprint from availability_app import settings_app from availability_app.lib import view_info_helper from availability_app.lib.concurrency import AsyncHelper # temporary demo helper from availability_app.lib.ezb_v1_handler import EzbV1Helper from availability...
0
0
0
a8a0cc141e0d4ab8242d6a31e939794ff8719dbd
750
py
Python
selenium_basics.py
kethan1/Interacting_With_Websites
fa30aa5aa7a3c1bab7b552b1af217eff722815a9
[ "MIT" ]
null
null
null
selenium_basics.py
kethan1/Interacting_With_Websites
fa30aa5aa7a3c1bab7b552b1af217eff722815a9
[ "MIT" ]
null
null
null
selenium_basics.py
kethan1/Interacting_With_Websites
fa30aa5aa7a3c1bab7b552b1af217eff722815a9
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions import time wd = webdriver.Firefox() wd.get("https://www.google.com/search?q=python") # wd.find_element_by_css_selector("a").cl...
30
111
0.752
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions import time wd = webdriver.Firefox() wd.get("https://www.google.com/search?q=python") # wd.find_element_by_css_selector("a").cl...
0
0
0
88b84edd1b1f9a8746061b89dcbe123a92aecaa2
255
py
Python
src/estructura-flask/apiflaskdemo/project/auth/__init__.py
PythonistaMX/py231
734f5972948f7d23d581ec54ee7af581eca651ce
[ "MIT" ]
3
2020-05-05T23:38:45.000Z
2021-11-05T01:03:38.000Z
apiflaskdemo/project/auth/__init__.py
PythonistaMX/api-testing-demo
80443851e921506e0b259960867a5c1fa6c15402
[ "MIT" ]
null
null
null
apiflaskdemo/project/auth/__init__.py
PythonistaMX/api-testing-demo
80443851e921506e0b259960867a5c1fa6c15402
[ "MIT" ]
4
2020-10-20T01:15:23.000Z
2022-02-08T02:27:35.000Z
from functools import wraps from flask import g, abort
25.5
38
0.647059
from functools import wraps from flask import g, abort def login_required(view): @wraps(view) def wrapped_view(*args, **kwargs): if g.user is None: return abort(403) return view(*args,**kwargs) return wrapped_view
177
0
23
8912e1dc471c0edad5e00a6d7f9813c76ea52508
3,569
py
Python
elsa.py
Frostiee11/elsa
86f4c086b38ddd00ff8851e349c32dacf9df39fa
[ "MIT" ]
7
2018-11-29T13:55:43.000Z
2020-08-26T10:06:53.000Z
elsa.py
Frostiee11/elsa
86f4c086b38ddd00ff8851e349c32dacf9df39fa
[ "MIT" ]
null
null
null
elsa.py
Frostiee11/elsa
86f4c086b38ddd00ff8851e349c32dacf9df39fa
[ "MIT" ]
null
null
null
#Elsa by Frostmeister import discord import math import time import datetime import googlesearch as gs import urbandictionary as ud import random import asyncio import os from discord.ext import commands bot = commands.Bot(description=" The Snow Queen ❄️" , command_prefix=("e!","E!")) ################ EVENTS...
24.958042
135
0.585318
#Elsa by Frostmeister import discord import math import time import datetime import googlesearch as gs import urbandictionary as ud import random import asyncio import os from discord.ext import commands bot = commands.Bot(description=" The Snow Queen ❄️" , command_prefix=("e!","E!")) ################ EVENTS...
2,895
0
159
0d032fd16a7d176ee318c77e6007e9eb73906098
4,021
py
Python
Week 1/Introduction to Programming/Getting Computers to work for you/topic.py
chanchanchong/Crash-Course-On-Python
ce98bdd5c5355a582c76b864dae1c5eecdf6ea44
[ "MIT" ]
null
null
null
Week 1/Introduction to Programming/Getting Computers to work for you/topic.py
chanchanchong/Crash-Course-On-Python
ce98bdd5c5355a582c76b864dae1c5eecdf6ea44
[ "MIT" ]
null
null
null
Week 1/Introduction to Programming/Getting Computers to work for you/topic.py
chanchanchong/Crash-Course-On-Python
ce98bdd5c5355a582c76b864dae1c5eecdf6ea44
[ "MIT" ]
null
null
null
# Working in IT, a lot of what we do boils down to using a computer to perform a # certain task. In your job you might create user accounts, configure the network, # install software, backup existing data, or execute a whole range of other # computer based tasks from day to day. Back in my first IT job, I realized that...
75.867925
89
0.77518
# Working in IT, a lot of what we do boils down to using a computer to perform a # certain task. In your job you might create user accounts, configure the network, # install software, backup existing data, or execute a whole range of other # computer based tasks from day to day. Back in my first IT job, I realized that...
0
0
0
86598004b30724c1f0cdf45f58b67daa2649e2fa
11,200
py
Python
bfieldtools/integrals.py
SAFedorov/bfieldtools
7e64bc2033670f01d2b90df2210b60743731a948
[ "BSD-3-Clause" ]
17
2020-05-22T19:39:39.000Z
2022-03-15T19:03:09.000Z
bfieldtools/integrals.py
SAFedorov/bfieldtools
7e64bc2033670f01d2b90df2210b60743731a948
[ "BSD-3-Clause" ]
27
2020-05-20T14:22:41.000Z
2022-01-10T18:30:12.000Z
bfieldtools/integrals.py
SAFedorov/bfieldtools
7e64bc2033670f01d2b90df2210b60743731a948
[ "BSD-3-Clause" ]
8
2020-08-12T10:30:50.000Z
2022-03-22T12:21:33.000Z
""" Analytic integral for vectorized field / potential computation """ __all__ = [ "c_coeffs", "d_distance", "gamma0", "omega", "potential_dipoles", "potential_vertex_dipoles", "triangle_potential_approx", "triangle_potential_dipole_linear", "triangle_potential_uniform", "x_di...
30.352304
85
0.589107
""" Analytic integral for vectorized field / potential computation """ __all__ = [ "c_coeffs", "d_distance", "gamma0", "omega", "potential_dipoles", "potential_vertex_dipoles", "triangle_potential_approx", "triangle_potential_dipole_linear", "triangle_potential_uniform", "x_di...
0
0
0
5cad79a23d827aef5df6641cba6427bf158d210c
1,029
py
Python
src/python/T0/WMBS/Oracle/Tier0Feeder/GetNotClosedOutWorkflows.py
silviodonato/T0
a093729d08b31175ed35cd20e889bd7094ce152a
[ "Apache-2.0" ]
6
2016-03-09T14:36:19.000Z
2021-07-27T01:28:00.000Z
src/python/T0/WMBS/Oracle/Tier0Feeder/GetNotClosedOutWorkflows.py
silviodonato/T0
a093729d08b31175ed35cd20e889bd7094ce152a
[ "Apache-2.0" ]
193
2015-01-07T21:03:43.000Z
2022-03-31T12:22:18.000Z
src/python/T0/WMBS/Oracle/Tier0Feeder/GetNotClosedOutWorkflows.py
silviodonato/T0
a093729d08b31175ed35cd20e889bd7094ce152a
[ "Apache-2.0" ]
36
2015-01-28T19:01:54.000Z
2021-12-15T17:18:20.000Z
""" _GetNotClosedOutWorkflows_ Oracle implementation of GetNotClosedOutWorkflows Lists top level filesets not injected to monitoring """ from WMCore.Database.DBFormatter import DBFormatter
35.482759
117
0.669582
""" _GetNotClosedOutWorkflows_ Oracle implementation of GetNotClosedOutWorkflows Lists top level filesets not injected to monitoring """ from WMCore.Database.DBFormatter import DBFormatter class GetNotClosedOutWorkflows(DBFormatter): def execute(self, conn = None, transaction = False): sql = """SELECT ...
765
23
50
9bd44b4ee14e40bcdf488c3f5373a25ced1d890a
1,071
py
Python
setup.py
CyberSolutionsTech/cst-micro-chassis
236931f91b6622702615a06810871b3106c05fcc
[ "MIT" ]
null
null
null
setup.py
CyberSolutionsTech/cst-micro-chassis
236931f91b6622702615a06810871b3106c05fcc
[ "MIT" ]
null
null
null
setup.py
CyberSolutionsTech/cst-micro-chassis
236931f91b6622702615a06810871b3106c05fcc
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages __version__ = '0.1.0' setup( name='cst-micro-chassis', version=__version__, author='CyberSolutionsTech', license='MIT', author_email='nicolae.natrapeiu@cyber-solutions.com', description='Microservices chassis pattern library', long_description=...
28.184211
75
0.637722
from setuptools import setup, find_packages __version__ = '0.1.0' def read(filename): with open(filename, "r", encoding="utf-8") as fh: return fh.read() setup( name='cst-micro-chassis', version=__version__, author='CyberSolutionsTech', license='MIT', author_email='nicolae.natrapeiu@...
77
0
23
389ce309472ac29c718061120357cbdee9284804
1,314
py
Python
src/cli/command/status.py
oVirt/ovirt-engine-cli
422d70e1dc422f0ca248abea47a472e3605caa4b
[ "Apache-2.0" ]
4
2015-11-29T08:53:03.000Z
2022-02-05T14:10:24.000Z
src/cli/command/status.py
oVirt/ovirt-engine-cli
422d70e1dc422f0ca248abea47a472e3605caa4b
[ "Apache-2.0" ]
null
null
null
src/cli/command/status.py
oVirt/ovirt-engine-cli
422d70e1dc422f0ca248abea47a472e3605caa4b
[ "Apache-2.0" ]
4
2015-02-06T02:06:53.000Z
2020-03-24T07:13:05.000Z
# # Copyright (c) 2010 Red Hat, 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 t...
27.957447
74
0.62481
# # Copyright (c) 2010 Red Hat, 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 t...
423
234
23
5f7466b0ae98c93b9b60cf0a0fffea4cf7387dd8
383
py
Python
basicfunc.py
krshubham/ecc-elgamal
9a4e14b59580a6b71d33919e5dd9adc3867bf30f
[ "MIT" ]
1
2017-10-17T07:03:51.000Z
2017-10-17T07:03:51.000Z
basicfunc.py
krshubham/ecc-elgamal
9a4e14b59580a6b71d33919e5dd9adc3867bf30f
[ "MIT" ]
null
null
null
basicfunc.py
krshubham/ecc-elgamal
9a4e14b59580a6b71d33919e5dd9adc3867bf30f
[ "MIT" ]
null
null
null
import collections import os,sys Coord = collections.namedtuple("Coord", ["x", "y"])
18.238095
51
0.488251
import collections import os,sys def inv(n, q): for i in range(q): if (n * i) % q == 1: return i pass assert False, "unreached" pass def sqrt(n, q): assert n < q for i in range(1, q): if i * i % q == n: return (i, q - i) pass return (Fals...
251
0
46
f7bd2300804ef9ced2e61c57d150286efb4ecfff
6,089
py
Python
fero/datasource.py
FeroLabs/fero_client
57a8a6d321c6199f723ae123d554217b9a27a971
[ "MIT" ]
1
2021-11-24T16:59:21.000Z
2021-11-24T16:59:21.000Z
fero/datasource.py
FeroLabs/fero_client
57a8a6d321c6199f723ae123d554217b9a27a971
[ "MIT" ]
3
2020-11-17T19:45:05.000Z
2021-01-05T23:54:38.000Z
fero/datasource.py
FeroLabs/fero_client
57a8a6d321c6199f723ae123d554217b9a27a971
[ "MIT" ]
null
null
null
import os import time import fero from fero import FeroError from typing import Optional, Union from marshmallow import ( Schema, fields, validate, EXCLUDE, ) from .common import FeroObject
29.995074
107
0.626868
import os import time import fero from fero import FeroError from typing import Optional, Union from marshmallow import ( Schema, fields, validate, EXCLUDE, ) from .common import FeroObject class DataSourceSchema(Schema): class Meta: unknown = EXCLUDE uuid = fields.UUID(required=True...
479
5,307
92
746bc1433c13361daa899e88d819fb353b116316
3,290
py
Python
site_viewer_script.py
EmilFerrariHerzum/icons_substituter
07a7cdcb06400c25090378d38ae48f46a674bf40
[ "MIT" ]
null
null
null
site_viewer_script.py
EmilFerrariHerzum/icons_substituter
07a7cdcb06400c25090378d38ae48f46a674bf40
[ "MIT" ]
null
null
null
site_viewer_script.py
EmilFerrariHerzum/icons_substituter
07a7cdcb06400c25090378d38ae48f46a674bf40
[ "MIT" ]
null
null
null
from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium import webdriver from decouple import config import time import re import os url = "https://busyliving.co.uk/" username = config(...
40.617284
151
0.661702
from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium import webdriver from decouple import config import time import re import os url = "https://busyliving.co.uk/" username = config(...
2,251
-8
142
946bab785021927c61c57cce0106b761b8595f91
1,461
py
Python
evan/services/events/zoom.py
eillarra/evan
befe0f8daedd1b1f629097110d92e68534e43da1
[ "MIT" ]
null
null
null
evan/services/events/zoom.py
eillarra/evan
befe0f8daedd1b1f629097110d92e68534e43da1
[ "MIT" ]
20
2021-03-31T20:10:46.000Z
2022-02-15T09:58:13.000Z
evan/services/events/zoom.py
eillarra/evan
befe0f8daedd1b1f629097110d92e68534e43da1
[ "MIT" ]
null
null
null
import csv from datetime import datetime from typing import Dict, Optional, Union def attendee_report(csv_path: str) -> Dict: """Given a standard Zoom CSV attendee report, returns massaged information.""" report = [] field_map = { "email": ["Email", str], "first_name": ["First Name", s...
27.566038
82
0.557153
import csv from datetime import datetime from typing import Dict, Optional, Union def to_bool(val: str) -> bool: return val == "Yes" def to_datetime(dt: str) -> Optional[datetime]: return datetime.strptime(dt, "%b %d, %Y %H:%M:%S") if dt != "--" else None def to_minutes(minutes: Union[str, int]) -> int: ...
215
0
69
1c030e32a152ec1a34ad3b544ff9fd528e088b4e
4,811
py
Python
convert_model.py
NoVarlok/sova-tts-vocoder
1d44a7247341e404e503fb0de386af5f16d36806
[ "Apache-2.0" ]
45
2020-08-26T05:50:27.000Z
2021-01-27T15:40:09.000Z
convert_model.py
NoVarlok/sova-tts-vocoder
1d44a7247341e404e503fb0de386af5f16d36806
[ "Apache-2.0" ]
null
null
null
convert_model.py
NoVarlok/sova-tts-vocoder
1d44a7247341e404e503fb0de386af5f16d36806
[ "Apache-2.0" ]
3
2021-01-05T17:24:23.000Z
2022-03-31T15:20:21.000Z
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
47.166667
108
0.676782
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
2,699
0
92
8f4588bb23009cbf6d229ec7164249f2d69ad1bd
2,878
py
Python
python/pavement.py
Oskarmal/svlab3
c9ca65e8ef2d7d7b2938229901a88fa71dbbeb7e
[ "Apache-2.0" ]
null
null
null
python/pavement.py
Oskarmal/svlab3
c9ca65e8ef2d7d7b2938229901a88fa71dbbeb7e
[ "Apache-2.0" ]
null
null
null
python/pavement.py
Oskarmal/svlab3
c9ca65e8ef2d7d7b2938229901a88fa71dbbeb7e
[ "Apache-2.0" ]
null
null
null
# # Copyright IBM Corp. 2014 # # 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, s...
31.282609
109
0.54378
# # Copyright IBM Corp. 2014 # # 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, s...
1,672
0
222
5a5680130054180b553975fb2552c8384b096654
11,166
py
Python
frontend/animation/display.py
eldstal/CTF
29ae870a362257c132ee729befbed86473cfb21d
[ "MIT" ]
null
null
null
frontend/animation/display.py
eldstal/CTF
29ae870a362257c132ee729befbed86473cfb21d
[ "MIT" ]
2
2021-02-07T21:31:09.000Z
2021-02-18T10:33:01.000Z
frontend/animation/display.py
eldstal/CTF
29ae870a362257c132ee729befbed86473cfb21d
[ "MIT" ]
null
null
null
from asciimatics.effects import Effect from asciimatics.screen import Screen from pyfiglet import Figlet import re import ftfy import unicodedata # XXX: Should this be a Renderer?
34.462963
139
0.515135
from asciimatics.effects import Effect from asciimatics.screen import Screen from pyfiglet import Figlet import re import ftfy import unicodedata class FirstBloodDisplay(Effect): def __init__(self, screen, team, challenge, duration=None, color=None, shade_colors=None, team_color=None, chall_color=None, **kwarg...
10,160
775
45
416cbbc595a1d461047ca88d1b55531361f0ea82
10,031
py
Python
benchmarks/benchmark.py
findvid/main
dd9bd14255af8c642b39b08d59e64cbfa314d908
[ "MIT" ]
null
null
null
benchmarks/benchmark.py
findvid/main
dd9bd14255af8c642b39b08d59e64cbfa314d908
[ "MIT" ]
null
null
null
benchmarks/benchmark.py
findvid/main
dd9bd14255af8c642b39b08d59e64cbfa314d908
[ "MIT" ]
null
null
null
import pymongo import shutil import os import argparse import re import urllib2 import subprocess import time import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import kmeanstree from sys import exit # instanciate and configure an argument parser PARSER = argparse.ArgumentParser(description='')...
30.213855
165
0.692453
import pymongo import shutil import os import argparse import re import urllib2 import subprocess import time import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import kmeanstree from sys import exit # instanciate and configure an argument parser PARSER = argparse.ArgumentParser(description='')...
6,844
0
114
530100f067e6af290aeb323e1a855fc74b1333d2
2,703
py
Python
tests/unit/utils/test_AwkwardOps.py
shane-breeze/zinv-analysis
496abf9cb0e77831d580be417bcad7845c347704
[ "MIT" ]
1
2019-02-06T12:15:42.000Z
2019-02-06T12:15:42.000Z
tests/unit/utils/test_AwkwardOps.py
shane-breeze/zinv-analysis
496abf9cb0e77831d580be417bcad7845c347704
[ "MIT" ]
12
2019-03-27T15:52:34.000Z
2020-02-06T12:09:37.000Z
tests/unit/utils/test_AwkwardOps.py
shane-breeze/zinv-analysis
496abf9cb0e77831d580be417bcad7845c347704
[ "MIT" ]
1
2019-03-14T17:23:33.000Z
2019-03-14T17:23:33.000Z
import pytest import mock import numpy as np import awkward as awk from zinv.utils.AwkwardOps import ( get_nth_object, get_nth_sorted_object_indices, get_attr_for_min_ref, jagged_prod, ) @pytest.mark.parametrize("array,id,size,out", ([ awk.JaggedArray.fromiter([[0, 1, 2], [3, 4], [5, 6, 7, 8]]), ...
33.37037
107
0.557159
import pytest import mock import numpy as np import awkward as awk from zinv.utils.AwkwardOps import ( get_nth_object, get_nth_sorted_object_indices, get_attr_for_min_ref, jagged_prod, ) @pytest.mark.parametrize("array,id,size,out", ([ awk.JaggedArray.fromiter([[0, 1, 2], [3, 4], [5, 6, 7, 8]]), ...
488
0
88
3fa7227dd1d0fac4716379482b210f70d2f71a80
3,534
py
Python
kombucha_monitor.py
BeefKastle/Kombucha-Monitor
5c1440876a281e3b23f877984130fa450a0ef09d
[ "MIT" ]
null
null
null
kombucha_monitor.py
BeefKastle/Kombucha-Monitor
5c1440876a281e3b23f877984130fa450a0ef09d
[ "MIT" ]
null
null
null
kombucha_monitor.py
BeefKastle/Kombucha-Monitor
5c1440876a281e3b23f877984130fa450a0ef09d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import datetime import time import os from shutil import copyfile from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from grovepi import * SLEEP_TIME = 3 dht_sensor_port = 7 dht_sensor_type = 0 g_login = GoogleAuth() g_login.LocalWebserverAuth() drive = GoogleDrive(g_log...
30.465517
127
0.667233
#!/usr/bin/env python import datetime import time import os from shutil import copyfile from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from grovepi import * SLEEP_TIME = 3 dht_sensor_port = 7 dht_sensor_type = 0 g_login = GoogleAuth() g_login.LocalWebserverAuth() drive = GoogleDrive(g_log...
312
0
23
e78cd382c98ea849d056a08763555ee519c0dc04
145
py
Python
src/colors.py
imesut/alfred-yeelight-pbc
2678a2544d200c209afaa7d6dc383466f179966d
[ "Unlicense" ]
1
2021-08-09T09:47:00.000Z
2021-08-09T09:47:00.000Z
src/colors.py
imesut/alfred-yeelight-pbc
2678a2544d200c209afaa7d6dc383466f179966d
[ "Unlicense" ]
1
2022-03-22T10:42:39.000Z
2022-03-30T19:46:53.000Z
src/colors.py
imesut/alfred-yeelight-pbc
2678a2544d200c209afaa7d6dc383466f179966d
[ "Unlicense" ]
null
null
null
colors = { "white": (255, 255, 255), "red": (255, 0, 0), "green": (0, 255, 0), "blue": (0, 0, 255), "orange": (255, 128, 0) }
20.714286
29
0.413793
colors = { "white": (255, 255, 255), "red": (255, 0, 0), "green": (0, 255, 0), "blue": (0, 0, 255), "orange": (255, 128, 0) }
0
0
0
7b03396009d2739320de791d9e4f0892e0b95d29
1,947
py
Python
services/account.py
vulpemventures/gdk-ocean
5691e61f1cee99ae23203d069ac6043f1a18f96a
[ "MIT" ]
null
null
null
services/account.py
vulpemventures/gdk-ocean
5691e61f1cee99ae23203d069ac6043f1a18f96a
[ "MIT" ]
null
null
null
services/account.py
vulpemventures/gdk-ocean
5691e61f1cee99ae23203d069ac6043f1a18f96a
[ "MIT" ]
1
2022-02-07T08:45:27.000Z
2022-02-07T08:45:27.000Z
from domain.address_details import AddressDetails from domain.gdk_account import GdkAccount from domain.gdk_wallet import GdkWallet from typing import Dict, List from domain.utxo import Utxo from services.wallet import WalletService class AccountService: """create a new GDK account""" """derive ...
41.425532
92
0.694402
from domain.address_details import AddressDetails from domain.gdk_account import GdkAccount from domain.gdk_wallet import GdkWallet from typing import Dict, List from domain.utxo import Utxo from services.wallet import WalletService class AccountService: def __init__(self, wallet_svc: WalletService) -> None: ...
1,236
0
156
ed0e13f65780912f9e869e7db56a098453508cf9
537
py
Python
python/ngsi_v2/ngsi_v2/api/__init__.py
orchestracities/sdk
9dd1e618d6c013ab916f3880df84c7882f6beec6
[ "Apache-2.0" ]
2
2019-12-22T01:01:34.000Z
2021-07-03T20:30:03.000Z
python/ngsi_v2/ngsi_v2/api/__init__.py
orchestracities/sdk
9dd1e618d6c013ab916f3880df84c7882f6beec6
[ "Apache-2.0" ]
2
2019-06-06T05:45:45.000Z
2019-06-06T09:03:10.000Z
python/ngsi_v2/ngsi_v2/api/__init__.py
orchestracities/sdk
9dd1e618d6c013ab916f3880df84c7882f6beec6
[ "Apache-2.0" ]
2
2021-07-03T20:30:06.000Z
2021-11-30T21:55:02.000Z
from __future__ import absolute_import # flake8: noqa # import apis into api package from ngsi_v2.api.api_entry_point_api import APIEntryPointApi from ngsi_v2.api.attribute_value_api import AttributeValueApi from ngsi_v2.api.attributes_api import AttributesApi from ngsi_v2.api.batch_operations_api import BatchOperati...
38.357143
63
0.877095
from __future__ import absolute_import # flake8: noqa # import apis into api package from ngsi_v2.api.api_entry_point_api import APIEntryPointApi from ngsi_v2.api.attribute_value_api import AttributeValueApi from ngsi_v2.api.attributes_api import AttributesApi from ngsi_v2.api.batch_operations_api import BatchOperati...
0
0
0
c43fab04520df60172f22adeab2cfed564710d36
1,883
py
Python
analysis/models.py
haticeaydinn/AmazonReviewAnalysis
8ad2a2d894e7825ece76a16f4cc625db266e2a9a
[ "MIT" ]
1
2021-06-21T01:26:56.000Z
2021-06-21T01:26:56.000Z
analysis/models.py
haticeaydinn/AmazonReviewAnalysis
8ad2a2d894e7825ece76a16f4cc625db266e2a9a
[ "MIT" ]
null
null
null
analysis/models.py
haticeaydinn/AmazonReviewAnalysis
8ad2a2d894e7825ece76a16f4cc625db266e2a9a
[ "MIT" ]
null
null
null
from django.db import models
42.795455
77
0.744557
from django.db import models class ReviewTable(models.Model): title = models.CharField(max_length=500) content = models.CharField(max_length=6000) date = models.CharField(max_length=20) variant = models.CharField(max_length=1000, null=True) images = models.CharField(max_length=2083) verified =...
0
1,783
69
b465cf8b3f874ec4178fbb6ee355ed6a404956a9
1,403
py
Python
cli_stryket/read_input.py
mile95/cli-stryket
3c4ea10c1937a179a17881b0b235b5daa3d6de91
[ "MIT" ]
null
null
null
cli_stryket/read_input.py
mile95/cli-stryket
3c4ea10c1937a179a17881b0b235b5daa3d6de91
[ "MIT" ]
null
null
null
cli_stryket/read_input.py
mile95/cli-stryket
3c4ea10c1937a179a17881b0b235b5daa3d6de91
[ "MIT" ]
null
null
null
from __future__ import annotations from cli_stryket.system_exception import InvalidSystemException
30.5
76
0.613685
from __future__ import annotations from cli_stryket.system_exception import InvalidSystemException def read_input(filename: str) -> list(str): raw_system = parse_input_file(filename) validated_system = validate_system(raw_system) formatted_system = [format_system_row(row) for row in validated_system] ...
1,208
0
92
0d7f27fc43e340167cee28afdee347076b00555b
3,709
py
Python
politi_train/snoop.py
us241098/exif_consistency
d9bb27611564b5e566fc2b4593d3d22f967380bd
[ "Apache-2.0" ]
null
null
null
politi_train/snoop.py
us241098/exif_consistency
d9bb27611564b5e566fc2b4593d3d22f967380bd
[ "Apache-2.0" ]
5
2021-03-19T13:30:41.000Z
2022-03-12T00:35:05.000Z
politi_train/snoop.py
us241098/exif_consistency
d9bb27611564b5e566fc2b4593d3d22f967380bd
[ "Apache-2.0" ]
null
null
null
import pandas as pd import glob txt_files = glob.glob("*.txt") image_files=[] for i in txt_files: i=i.replace(".txt", ""); image_files.append(i) print(image_files) print(len(image_files)) #print((txt_files)) df=pd.read_csv('train.csv') # enter your filename with exiftags df['Assessment']='' df['Compress...
30.154472
84
0.465624
import pandas as pd import glob txt_files = glob.glob("*.txt") image_files=[] for i in txt_files: i=i.replace(".txt", ""); image_files.append(i) print(image_files) print(len(image_files)) #print((txt_files)) df=pd.read_csv('train.csv') # enter your filename with exiftags df['Assessment']='' df['Compress...
0
0
0
972f9280ed74904eaa019b25f28e79a5477d0743
1,426
py
Python
lib/modules/twitter.py
nkrios/omnibus
d73c1e720f1d97aa104a4286187f785ef0dcaae5
[ "MIT" ]
251
2018-05-08T20:40:37.000Z
2022-03-22T22:31:17.000Z
lib/modules/twitter.py
samyoyo/omnibus
65f6251137d6e38128c19120aa204a577b2cbcaf
[ "MIT" ]
33
2018-05-08T21:30:54.000Z
2020-08-19T16:24:28.000Z
lib/modules/twitter.py
samyoyo/omnibus
65f6251137d6e38128c19120aa204a577b2cbcaf
[ "MIT" ]
70
2018-05-16T12:53:05.000Z
2022-03-22T22:31:20.000Z
#!/usr/bin/env python ## # omnibus - deadbits # Twitter username search ## from BeautifulSoup import BeautifulSoup from http import get
30.340426
148
0.586255
#!/usr/bin/env python ## # omnibus - deadbits # Twitter username search ## from BeautifulSoup import BeautifulSoup from http import get class Plugin(object): def __init__(self, artifact): self.artifact = artifact self.artifact['data']['twitter'] = None self.headers = {'User-Agent': 'OSIN...
1,186
0
99
5e8ff68482070eb5109267cce3591f87f0e356e1
473
py
Python
tests/__main__.py
NiftyPET/NIPET
b1c3799c4a795e1db34dc36decd197ab74e95c6e
[ "Apache-2.0" ]
10
2019-12-11T07:05:07.000Z
2021-12-21T13:52:56.000Z
tests/__main__.py
NiftyPET/NIPET
b1c3799c4a795e1db34dc36decd197ab74e95c6e
[ "Apache-2.0" ]
21
2019-12-11T11:47:07.000Z
2022-02-08T19:42:40.000Z
tests/__main__.py
pjmark/NIPET
b1c3799c4a795e1db34dc36decd197ab74e95c6e
[ "Apache-2.0" ]
3
2019-02-19T21:19:00.000Z
2019-08-27T02:26:31.000Z
import logging from niftypet.ninst import install_tools as tls from .conftest import HOME log = logging.getLogger(__name__) DATA_URL = "https://zenodo.org/record/3877529/files/amyloidPET_FBP_TP0_extra.zip?download=1" if __name__ == "__main__": logging.basicConfig(level=logging.INFO) main()
23.65
92
0.72093
import logging from niftypet.ninst import install_tools as tls from .conftest import HOME log = logging.getLogger(__name__) DATA_URL = "https://zenodo.org/record/3877529/files/amyloidPET_FBP_TP0_extra.zip?download=1" def main(): log.info(f"Downloading {DATA_URL}\nto ${{DATA_ROOT:-~}} ({HOME})") with tls.ur...
145
0
23
26386774389ead7024b7022fe9cb7770be70ac81
466
py
Python
solution_cid_check.py
nmansard/wsmemmo_pinocchio
42722cc07e700140748f1d87a2671672d28cecc4
[ "MIT" ]
5
2019-01-28T15:02:50.000Z
2020-08-08T01:25:28.000Z
solution_cid_check.py
nmansard/wsmemmo_pinocchio
42722cc07e700140748f1d87a2671672d28cecc4
[ "MIT" ]
2
2019-01-28T13:07:48.000Z
2019-01-30T14:14:28.000Z
solution_cid_check.py
nmansard/wsmemmo_pinocchio
42722cc07e700140748f1d87a2671672d28cecc4
[ "MIT" ]
4
2019-05-05T19:29:20.000Z
2022-02-16T23:57:40.000Z
forces = pinocchio.StdVect_Force() for i in range(rmodel.njoints): forces.append(pinocchio.Force.Zero()) tau,fr,fl = pbm.x2vars(res) Mr = rmodel.frames[pbm.idR].placement jr = rmodel.frames[pbm.idR].parent forces[jr] = Mr.act(pinocchio.Force(fr)) Ml = rmodel.frames[pbm.idL].placement jl = rmodel.frames[pbm.idL].pare...
29.125
75
0.742489
forces = pinocchio.StdVect_Force() for i in range(rmodel.njoints): forces.append(pinocchio.Force.Zero()) tau,fr,fl = pbm.x2vars(res) Mr = rmodel.frames[pbm.idR].placement jr = rmodel.frames[pbm.idR].parent forces[jr] = Mr.act(pinocchio.Force(fr)) Ml = rmodel.frames[pbm.idL].placement jl = rmodel.frames[pbm.idL].pare...
0
0
0
c567ceae1a3c6867872194127272d492f0ef6adb
1,782
py
Python
boxdb/support_litebase.py
kshitij1235/boxdb
4aa121f856c148c5136368041a610a584fb1dbc6
[ "MIT" ]
1
2022-01-31T17:21:02.000Z
2022-01-31T17:21:02.000Z
boxdb/support_litebase.py
kshitij1235/boxdb
4aa121f856c148c5136368041a610a584fb1dbc6
[ "MIT" ]
null
null
null
boxdb/support_litebase.py
kshitij1235/boxdb
4aa121f856c148c5136368041a610a584fb1dbc6
[ "MIT" ]
null
null
null
''' boxdb/support_litebase -> v0.3 This file contain code for 1)get the data from file, and get row data [ ]get_content() speed optimization [ ]get_element() function added ''' def get_content(context, target): """ It gets the content from any file with data in it(auto generated) and returns in list ...
27.415385
87
0.594837
''' boxdb/support_litebase -> v0.3 This file contain code for 1)get the data from file, and get row data [ ]get_content() speed optimization [ ]get_element() function added ''' def get_content(context, target): """ It gets the content from any file with data in it(auto generated) and returns in list ...
0
0
0
5322bc5aa344a86a7e2d830119a5f46c1675a541
1,960
py
Python
city_translit.py
SergeiMinaev/city_translit
632e7c71a66e11591a41be8e6157c6d197c370ba
[ "MIT" ]
null
null
null
city_translit.py
SergeiMinaev/city_translit
632e7c71a66e11591a41be8e6157c6d197c370ba
[ "MIT" ]
null
null
null
city_translit.py
SergeiMinaev/city_translit
632e7c71a66e11591a41be8e6157c6d197c370ba
[ "MIT" ]
null
null
null
import re CITY_RE = re.compile('[^a-zA-Z- ]') DATA = { 'a': { 'anzherosudzhensk':'анжеро-судженск', 'ashukino':'ашукино', }, 'b': { 'bronnitsy':'бронницы', 'biysk':'бийск', }, 'c': { 'chelyabinsk':'челябинск', }, 'd': { }, 'e': { 'elektros...
19.405941
56
0.448469
import re CITY_RE = re.compile('[^a-zA-Z- ]') DATA = { 'a': { 'anzherosudzhensk':'анжеро-судженск', 'ashukino':'ашукино', }, 'b': { 'bronnitsy':'бронницы', 'biysk':'бийск', }, 'c': { 'chelyabinsk':'челябинск', }, 'd': { }, 'e': { 'elektros...
167
0
23
5b1105e73c18792d36bae18e66c4af3e8663d757
22,966
py
Python
checkpoint/sequences.py
rahul-netizen/checkpoint
6b42bd3ace57ffd91589109b7691ccdc68801d6b
[ "MIT" ]
17
2021-06-17T14:05:55.000Z
2022-03-10T19:14:15.000Z
checkpoint/sequences.py
rahul-netizen/checkpoint
6b42bd3ace57ffd91589109b7691ccdc68801d6b
[ "MIT" ]
25
2021-06-18T15:31:35.000Z
2022-03-28T04:22:47.000Z
checkpoint/sequences.py
rahul-netizen/checkpoint
6b42bd3ace57ffd91589109b7691ccdc68801d6b
[ "MIT" ]
10
2021-07-11T15:43:27.000Z
2022-03-20T14:12:56.000Z
import json import os from collections import OrderedDict from itertools import count from multiprocessing import cpu_count from tempfile import TemporaryDirectory as InTemporaryDirectory from types import MethodType from joblib import Parallel, delayed from checkpoint import __version__ as version from checkpoint.cr...
36.570064
99
0.587347
import json import os from collections import OrderedDict from itertools import count from multiprocessing import cpu_count from tempfile import TemporaryDirectory as InTemporaryDirectory from types import MethodType from joblib import Parallel, delayed from checkpoint import __version__ as version from checkpoint.cr...
76
0
52
f070a3fbb33a80cabd688d5c6bc9b192e7c3cc5b
1,168
py
Python
Gathered CTF writeups/ctf-7867/2020/cyber_security_rumble/hashfun/generate.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/ctf-7867/2020/cyber_security_rumble/hashfun/generate.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/ctf-7867/2020/cyber_security_rumble/hashfun/generate.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
# from secret import FLAG FLAG = "CSR{fuckingIdiotShitStupid}" c = hashfun(FLAG) print(c) print(len(FLAG)) print(len(c)) m = revhash(c) print(m) c = [10, 30, 31, 62, 27, 9, 4, 0, 1, 1, 4, 4, 7, 13, 8, 12, 21, 28, 12, 6, 60] m = revhash(c) print(m)
20.491228
78
0.52226
# from secret import FLAG FLAG = "CSR{fuckingIdiotShitStupid}" def hashfun(msg): digest = [] for i in range(len(msg) - 4): digest.append(ord(msg[i]) ^ ord(msg[i + 4])) return digest def revhash(cipher): msg_len = len(c) + 4 msg = ["."] * (msg_len + 1) msg[0:5] = "CSR{" ascii_st...
867
0
46
453f691706e832e723117b6a568b51a1c72e861c
164
py
Python
2019/01/part1.py
mihaip/adventofcode
3725668595bfcf619fe6c97d12e2f14b42e3f0cb
[ "Apache-2.0" ]
null
null
null
2019/01/part1.py
mihaip/adventofcode
3725668595bfcf619fe6c97d12e2f14b42e3f0cb
[ "Apache-2.0" ]
null
null
null
2019/01/part1.py
mihaip/adventofcode
3725668595bfcf619fe6c97d12e2f14b42e3f0cb
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python3 total_fuel = 0 with open("input.txt") as f: for line in f.readlines(): total_fuel += int(int(line) / 3) - 2 print(total_fuel)
20.5
44
0.634146
#!/usr/local/bin/python3 total_fuel = 0 with open("input.txt") as f: for line in f.readlines(): total_fuel += int(int(line) / 3) - 2 print(total_fuel)
0
0
0
915393967b0cdd20d663859048d87ba6b77ee1b8
3,134
py
Python
models/BugReport.py
SibylLab/Task-based-Bug-Report-Summerizer
2acd5d9a3d3ed6b009ab322dd5c73e39786fdfc5
[ "MIT" ]
null
null
null
models/BugReport.py
SibylLab/Task-based-Bug-Report-Summerizer
2acd5d9a3d3ed6b009ab322dd5c73e39786fdfc5
[ "MIT" ]
null
null
null
models/BugReport.py
SibylLab/Task-based-Bug-Report-Summerizer
2acd5d9a3d3ed6b009ab322dd5c73e39786fdfc5
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Akalanka Galappaththi" __email__ = "a.galappaththi@uleth.ca" __copyright__ = "Copyright 2020, The Bug Report Summarization Project @ Sybil-Lab" __license__ = "MIT" __maintainer__ = "Akalanka Galappaththi" from models.Turn import Turn class BugReport: """Class represents a com...
21.175676
82
0.49298
#!/usr/bin/env python __author__ = "Akalanka Galappaththi" __email__ = "a.galappaththi@uleth.ca" __copyright__ = "Copyright 2020, The Bug Report Summarization Project @ Sybil-Lab" __license__ = "MIT" __maintainer__ = "Akalanka Galappaththi" from models.Turn import Turn class BugReport: """Class represents a com...
166
0
27
5c4e6bb88bbc889fc1681cf32a3207b80306f5fe
1,540
py
Python
app_tools/tool_manager.py
planktontoolbox/plankton-toolbox
626930120329983fb9419a9aed94712148bac219
[ "MIT" ]
5
2016-12-02T08:24:35.000Z
2021-02-24T08:41:41.000Z
app_tools/tool_manager.py
planktontoolbox/plankton-toolbox
626930120329983fb9419a9aed94712148bac219
[ "MIT" ]
53
2016-11-14T13:11:41.000Z
2022-01-13T09:28:11.000Z
app_tools/tool_manager.py
planktontoolbox/plankton-toolbox
626930120329983fb9419a9aed94712148bac219
[ "MIT" ]
1
2020-11-27T01:20:10.000Z
2020-11-27T01:20:10.000Z
#!/usr/bin/python3 # -*- coding:utf-8 -*- # Project: http://plankton-toolbox.org # Copyright (c) 2010-2018 SMHI, Swedish Meteorological and Hydrological Institute # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). import app_tools import toolbox_utils @toolbox_utils.singleton ...
32.083333
91
0.601299
#!/usr/bin/python3 # -*- coding:utf-8 -*- # Project: http://plankton-toolbox.org # Copyright (c) 2010-2018 SMHI, Swedish Meteorological and Hydrological Institute # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). import app_tools import toolbox_utils @toolbox_utils.singleton ...
0
0
0
127f168e8ac3a233174a2e259c95e146ff00c3c9
4,724
py
Python
sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_container_registry.py
romahamu/azure-sdk-for-python
a57c9f73b9121f79d317e1679b81fd460d6a25b8
[ "MIT" ]
1
2021-04-05T17:38:42.000Z
2021-04-05T17:38:42.000Z
sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_container_registry.py
romahamu/azure-sdk-for-python
a57c9f73b9121f79d317e1679b81fd460d6a25b8
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_container_registry.py
romahamu/azure-sdk-for-python
a57c9f73b9121f79d317e1679b81fd460d6a25b8
[ "MIT" ]
1
2021-12-18T20:01:22.000Z
2021-12-18T20:01:22.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 may ...
46.313725
116
0.71613
# 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 may ...
1,474
0
108
d201337848c0e5c871726fae3c443daff8fb932e
1,062
py
Python
motor/motor.py
donaldong/RPIdrone
5e33597b1a8cfa6d4417dae14cd5a6bf2b9b8ec3
[ "MIT" ]
6
2018-11-11T09:11:06.000Z
2021-02-07T19:46:57.000Z
motor/motor.py
donaldong/RPIdrone
5e33597b1a8cfa6d4417dae14cd5a6bf2b9b8ec3
[ "MIT" ]
null
null
null
motor/motor.py
donaldong/RPIdrone
5e33597b1a8cfa6d4417dae14cd5a6bf2b9b8ec3
[ "MIT" ]
4
2019-04-04T13:23:10.000Z
2020-04-09T05:57:37.000Z
from RPIO import PWM
27.947368
86
0.619586
from RPIO import PWM class Motor: V = 11.1 KV = 920 __dma_channel = 0 __subcycle_time_us = 20000 __pulse_incr_us = 10 def __init__(self, gpio, name): self.__gpio = gpio self.name = name self.__servo = PWM.Servo( self.__dma_channel, self.__su...
783
234
23
5b4245a2b2b3e0e6cfc23ca588cf782c0dadae2d
2,254
py
Python
day14.py
davidfpc/AoC2021
b526e606dbf1cc59de4951a321aa9b98d04fde4c
[ "MIT" ]
null
null
null
day14.py
davidfpc/AoC2021
b526e606dbf1cc59de4951a321aa9b98d04fde4c
[ "MIT" ]
null
null
null
day14.py
davidfpc/AoC2021
b526e606dbf1cc59de4951a321aa9b98d04fde4c
[ "MIT" ]
null
null
null
# program to compute the time # of execution of any python code import time from collections import Counter if __name__ == "__main__": puzzle_input = read_input("day14.txt") start = time.time() print(f"Part 1: {part1(puzzle_input)}") print(f"Part 2: {part2(puzzle_input)}") end = time.time() ...
30.459459
68
0.61535
# program to compute the time # of execution of any python code import time from collections import Counter def read_input(file_name: str) -> (str, {str: str}): with open("inputFiles/" + file_name, "r") as file: lines = file.read().splitlines() rule = {} for i in lines[2:]: pai...
1,779
0
92
0768781c51dc064f20678bf1f84eed7a31493726
3,259
py
Python
models.py
aldragan0/voice-recognition
452bf9b9d1e2ad2a8e1c68ef960a82d6171708f0
[ "MIT" ]
12
2019-07-29T08:18:59.000Z
2021-09-17T09:34:25.000Z
models.py
aldragan0/voice-recognition
452bf9b9d1e2ad2a8e1c68ef960a82d6171708f0
[ "MIT" ]
null
null
null
models.py
aldragan0/voice-recognition
452bf9b9d1e2ad2a8e1c68ef960a82d6171708f0
[ "MIT" ]
4
2019-08-02T17:51:52.000Z
2022-03-12T17:59:59.000Z
import numpy as np from sklearn.model_selection import train_test_split from file_io import features_from_file, labels_from_file, add_history from utils import labels_to_categorical, transpose_vector, get_count, get_mean_stddev, normalize_data BATCH_SIZE = 128
35.423913
106
0.684873
import numpy as np from sklearn.model_selection import train_test_split from file_io import features_from_file, labels_from_file, add_history from utils import labels_to_categorical, transpose_vector, get_count, get_mean_stddev, normalize_data BATCH_SIZE = 128 def train_deepnn(model_file, inputs, outputs, model, n...
2,923
0
69
84efcf3645933b64b01ee37feb768493c8936a16
6,927
py
Python
CalibrationHelpers.py
omarubilla/3D
87820b3db4ee9789fd22b89cd4a0d61868eed02f
[ "BSD-3-Clause" ]
null
null
null
CalibrationHelpers.py
omarubilla/3D
87820b3db4ee9789fd22b89cd4a0d61868eed02f
[ "BSD-3-Clause" ]
null
null
null
CalibrationHelpers.py
omarubilla/3D
87820b3db4ee9789fd22b89cd4a0d61868eed02f
[ "BSD-3-Clause" ]
null
null
null
import cv2 import numpy as np import glob # This function records images from the connected camera to specified directory # when the "Space" key is pressed. # directory: should be a string corresponding to the name of an existing # directory print("Hello!") folder = 'calibration_data' ####### THE FOLDER YOU CREATED ...
47.445205
80
0.656561
import cv2 import numpy as np import glob # This function records images from the connected camera to specified directory # when the "Space" key is pressed. # directory: should be a string corresponding to the name of an existing # directory print("Hello!") folder = 'calibration_data' ####### THE FOLDER YOU CREATED ...
5,912
0
89
981e79f6d2a6d52ef160903b42183ea6a22283d5
260
py
Python
puzzle1/part_one.py
Tomer23/advent-of-code-2021
6781616807c9e5910cd4fe512aa9a3a9ec6738e2
[ "Apache-2.0" ]
null
null
null
puzzle1/part_one.py
Tomer23/advent-of-code-2021
6781616807c9e5910cd4fe512aa9a3a9ec6738e2
[ "Apache-2.0" ]
null
null
null
puzzle1/part_one.py
Tomer23/advent-of-code-2021
6781616807c9e5910cd4fe512aa9a3a9ec6738e2
[ "Apache-2.0" ]
null
null
null
FILENAME = './puzzle1/data/input' s = 0 previous_value = None with open(FILENAME) as file: for line in file: if previous_value: if int(line) > previous_value: s += 1 previous_value = int(line) print(s)
23.636364
43
0.565385
FILENAME = './puzzle1/data/input' s = 0 previous_value = None with open(FILENAME) as file: for line in file: if previous_value: if int(line) > previous_value: s += 1 previous_value = int(line) print(s)
0
0
0
adbf72a8eeb268e24a003c60a1b99687307e3bca
754
py
Python
Leetcode/0251-0300/0260-single-number-iii.py
MiKueen/Data-Structures-and-Algorithms
8788bde5349f326aac0267531f39ac7a2a708ee6
[ "MIT" ]
null
null
null
Leetcode/0251-0300/0260-single-number-iii.py
MiKueen/Data-Structures-and-Algorithms
8788bde5349f326aac0267531f39ac7a2a708ee6
[ "MIT" ]
null
null
null
Leetcode/0251-0300/0260-single-number-iii.py
MiKueen/Data-Structures-and-Algorithms
8788bde5349f326aac0267531f39ac7a2a708ee6
[ "MIT" ]
1
2019-10-06T15:46:14.000Z
2019-10-06T15:46:14.000Z
''' Author : MiKueen Level : Medium Problem Statement : Single Number III Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. Example: Input: [1,2,1,3,2,5] Output: [3,5] Note: The order of the re...
29
172
0.655172
''' Author : MiKueen Level : Medium Problem Statement : Single Number III Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. Example: Input: [1,2,1,3,2,5] Output: [3,5] Note: The order of the re...
194
-6
49
cad8825299209b87e93310e4923bb67289f4e2f4
142
py
Python
HelloWord/demo1.py
smockgithub/MyPythonDemo
583d4c4da4f68e4e19ed8a926c445d46fd743d25
[ "MIT" ]
null
null
null
HelloWord/demo1.py
smockgithub/MyPythonDemo
583d4c4da4f68e4e19ed8a926c445d46fd743d25
[ "MIT" ]
null
null
null
HelloWord/demo1.py
smockgithub/MyPythonDemo
583d4c4da4f68e4e19ed8a926c445d46fd743d25
[ "MIT" ]
null
null
null
print('hello word','sub2') name = input() print('hello,', name) if name=='test': print('hello1,', name) else: print('hello2,', name)
15.777778
26
0.598592
print('hello word','sub2') name = input() print('hello,', name) if name=='test': print('hello1,', name) else: print('hello2,', name)
0
0
0
c080bd9163a638975d4b96614dd410fd7ace058d
87
py
Python
blinds/apps.py
BoraDowon/BackendBlackberry
e177ac6a986e57534734c009edc12faa595415cc
[ "MIT" ]
2
2018-07-14T15:15:15.000Z
2018-07-28T03:37:55.000Z
blinds/apps.py
BoraDowon/BackendBlackberry
e177ac6a986e57534734c009edc12faa595415cc
[ "MIT" ]
null
null
null
blinds/apps.py
BoraDowon/BackendBlackberry
e177ac6a986e57534734c009edc12faa595415cc
[ "MIT" ]
null
null
null
from django.apps import AppConfig
14.5
33
0.747126
from django.apps import AppConfig class BlindsConfig(AppConfig): name = 'blinds'
0
29
23
cc09c9fd8563ee68ca002bb4d2e90c0b50d291c7
53
py
Python
Modulo_1/semana3/Ciclos/package-unpackage/package-unpackage.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
null
null
null
Modulo_1/semana3/Ciclos/package-unpackage/package-unpackage.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
null
null
null
Modulo_1/semana3/Ciclos/package-unpackage/package-unpackage.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
t = (1, 2, 3) a, b, c = t print(a) print(b) print(c)
8.833333
13
0.490566
t = (1, 2, 3) a, b, c = t print(a) print(b) print(c)
0
0
0
28365e241198cda38a59954fc4967d8d7545ac81
1,803
py
Python
datautil.py
ThorntheLetter/turbulent-guacamole
51b2541aa8dbaed1a22493289de67fbea8eaf709
[ "MIT" ]
null
null
null
datautil.py
ThorntheLetter/turbulent-guacamole
51b2541aa8dbaed1a22493289de67fbea8eaf709
[ "MIT" ]
null
null
null
datautil.py
ThorntheLetter/turbulent-guacamole
51b2541aa8dbaed1a22493289de67fbea8eaf709
[ "MIT" ]
null
null
null
import numpy as np import wave #takes input frame and width of sample in bytes and transforms it into a number between -1 and 1 #reverses squash() vunsquash = np.vectorize(unsquash) vsquash = np.vectorize(squash) #Gets next frame in the file #Arranges the file into numpy matrix for input using every possible sequ...
33.388889
96
0.715474
import numpy as np import wave #takes input frame and width of sample in bytes and transforms it into a number between -1 and 1 def squash(input, width = 2): return(input/(2 ** ((8 * width)-1))) #reverses squash() def unsquash(input, width = 2): return(input * (2 ** ((8 * width) - 1))) vunsquash = np.vectorize(uns...
1,304
0
110
6de75ede73cb4358ec40e29b11707cd5219d4a6a
2,970
py
Python
polr/cli.py
kylieCat/polr-py
0cf268fad8fa979b4d76fec1a984aa4c52f8c5ca
[ "MIT" ]
null
null
null
polr/cli.py
kylieCat/polr-py
0cf268fad8fa979b4d76fec1a984aa4c52f8c5ca
[ "MIT" ]
48
2020-10-18T03:35:58.000Z
2022-03-31T19:48:03.000Z
polr/cli.py
kylieCat/polr-py
0cf268fad8fa979b4d76fec1a984aa4c52f8c5ca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Console script for polr.""" import sys import click from .polr import Polr from . import utils from . import settings _client = None @click.group() def polr(args=None): """ Console script for polr. """ return 0 SHORTEN_HELP_STR = "Return an error if a link with the d...
25.826087
103
0.662963
# -*- coding: utf-8 -*- """Console script for polr.""" import sys import click from .polr import Polr from . import utils from . import settings _client = None def get_client(): global _client if _client is None: _client = Polr(settings.POLR_URL, settings.POLR_API_KEY) return _client @click...
846
0
111
be9f23e001c451d16d1dccd3c47505e909f38e70
839
py
Python
src/pynwb/tests/test_associated_files.py
NovelaNeuro/ndx-franklab-novela
d5b87f742cf5aeb2c88c6f3df699614ec3fb2328
[ "BSD-3-Clause" ]
null
null
null
src/pynwb/tests/test_associated_files.py
NovelaNeuro/ndx-franklab-novela
d5b87f742cf5aeb2c88c6f3df699614ec3fb2328
[ "BSD-3-Clause" ]
4
2021-03-18T22:34:00.000Z
2021-12-09T00:33:53.000Z
src/pynwb/tests/test_associated_files.py
NovelaNeuro/ndx-franklab-novela
d5b87f742cf5aeb2c88c6f3df699614ec3fb2328
[ "BSD-3-Clause" ]
2
2020-12-07T22:35:42.000Z
2021-02-17T18:55:07.000Z
from unittest import TestCase from src.pynwb.ndx_franklab_novela.associated_files import AssociatedFiles
38.136364
95
0.703218
from unittest import TestCase from src.pynwb.ndx_franklab_novela.associated_files import AssociatedFiles class TestApparatus(TestCase): def setUp(self): self.associated_files = AssociatedFiles( name='file1', description='description of file1', content='1 2 3 content o...
646
9
77
a23c43bba7834ddfeda3fcc6a85fe6ae7593ab6f
2,840
py
Python
core/dbt/clients/registry.py
f1fe/dbt
e943b9fc842535e958ef4fd0b8703adc91556bc6
[ "Apache-2.0" ]
3,156
2017-03-05T09:59:23.000Z
2021-06-30T01:27:52.000Z
core/dbt/clients/registry.py
f1fe/dbt
e943b9fc842535e958ef4fd0b8703adc91556bc6
[ "Apache-2.0" ]
2,608
2017-02-27T15:39:40.000Z
2021-06-30T01:49:20.000Z
core/dbt/clients/registry.py
f1fe/dbt
e943b9fc842535e958ef4fd0b8703adc91556bc6
[ "Apache-2.0" ]
693
2017-03-13T03:04:49.000Z
2021-06-25T15:57:41.000Z
import functools import requests from dbt.events.functions import fire_event from dbt.events.types import ( RegistryProgressMakingGETRequest, RegistryProgressGETResponse ) from dbt.utils import memoized, _connection_exception_retry as connection_exception_retry from dbt import deprecations import os if os.gete...
32.643678
91
0.737676
import functools import requests from dbt.events.functions import fire_event from dbt.events.types import ( RegistryProgressMakingGETRequest, RegistryProgressGETResponse ) from dbt.utils import memoized, _connection_exception_retry as connection_exception_retry from dbt import deprecations import os if os.gete...
2,139
0
184
6ad6d5451532f3f997a99686b38bd43e2437f651
1,273
py
Python
colorblend.py
shaunco/MoodMirror
6627ba9fb1df5d5db693cb9838a87f4c1c13a1d2
[ "Apache-2.0" ]
null
null
null
colorblend.py
shaunco/MoodMirror
6627ba9fb1df5d5db693cb9838a87f4c1c13a1d2
[ "Apache-2.0" ]
null
null
null
colorblend.py
shaunco/MoodMirror
6627ba9fb1df5d5db693cb9838a87f4c1c13a1d2
[ "Apache-2.0" ]
null
null
null
#from https://stackoverflow.com/questions/726549/algorithm-for-additive-color-mixing-for-rgb-values/726578 rgb_scale = 255 cmyk_scale = 100 def cmyk_to_rgb(c, m, y, k): """ """ r = rgb_scale*(1.0 - (c + k) / float(cmyk_scale)) g = rgb_scale*(1.0 - (m + k) / float(cmyk_scale)) b = rgb_scale*(1.0 - ...
24.480769
106
0.527101
#from https://stackoverflow.com/questions/726549/algorithm-for-additive-color-mixing-for-rgb-values/726578 rgb_scale = 255 cmyk_scale = 100 def rgb_to_cmyk(r, g, b): if (r == 0) and (g == 0) and (b == 0): # black return 0, 0, 0, cmyk_scale # rgb [0,255] -> cmy [0,1] c = 1 - r / float(rgb_...
482
0
23
b23ee3eb9a4f49b0aac4c2ffab6ce5c60165893e
12,658
py
Python
openpifpaf/plugins/apollocar3d/apollo_to_coco.py
anhvth/openpifpaf
a88edd744b50f76dfdae9dbb180d4a403cbfd060
[ "CC-BY-2.0", "CC-BY-4.0" ]
null
null
null
openpifpaf/plugins/apollocar3d/apollo_to_coco.py
anhvth/openpifpaf
a88edd744b50f76dfdae9dbb180d4a403cbfd060
[ "CC-BY-2.0", "CC-BY-4.0" ]
null
null
null
openpifpaf/plugins/apollocar3d/apollo_to_coco.py
anhvth/openpifpaf
a88edd744b50f76dfdae9dbb180d4a403cbfd060
[ "CC-BY-2.0", "CC-BY-4.0" ]
null
null
null
""" Convert txt files of ApolloCar3D into json file with COCO format """ import glob import os import time from shutil import copyfile import json import argparse import numpy as np from PIL import Image # Packages for data processing, crowd annotations and histograms try: import matplotlib.pyplot as plt # pyli...
38.012012
99
0.55143
""" Convert txt files of ApolloCar3D into json file with COCO format """ import glob import os import time from shutil import copyfile import json import argparse import numpy as np from PIL import Image # Packages for data processing, crowd annotations and histograms try: import matplotlib.pyplot as plt # pyli...
1,973
9,773
92
40cebe3a0b3916621ef060c49209893847634a5f
1,204
py
Python
.ci/prep_azure.py
ome/mitogen
a154b7b134d954ea34de4c1beaca3aaa6f7514b9
[ "BSD-3-Clause" ]
null
null
null
.ci/prep_azure.py
ome/mitogen
a154b7b134d954ea34de4c1beaca3aaa6f7514b9
[ "BSD-3-Clause" ]
null
null
null
.ci/prep_azure.py
ome/mitogen
a154b7b134d954ea34de4c1beaca3aaa6f7514b9
[ "BSD-3-Clause" ]
1
2020-09-18T05:46:01.000Z
2020-09-18T05:46:01.000Z
#!/usr/bin/env python import os import sys import ci_lib batches = [] if 0 and os.uname()[0] == 'Linux': batches += [ [ "sudo chown `whoami`: ~", "chmod u=rwx,g=rx,o= ~", "sudo mkdir /var/run/sshd", "sudo /etc/init.d/ssh start", "mkdir -p ~/....
25.617021
94
0.524917
#!/usr/bin/env python import os import sys import ci_lib batches = [] if 0 and os.uname()[0] == 'Linux': batches += [ [ "sudo chown `whoami`: ~", "chmod u=rwx,g=rx,o= ~", "sudo mkdir /var/run/sshd", "sudo /etc/init.d/ssh start", "mkdir -p ~/....
0
0
0
530f15fe9f040b2b08aa2e112c827e721e867894
3,610
py
Python
ubereats/views.py
ronchen0927/Django-logistics
916fac813a62abffc0499a7b7a06859622e254dd
[ "MIT" ]
null
null
null
ubereats/views.py
ronchen0927/Django-logistics
916fac813a62abffc0499a7b7a06859622e254dd
[ "MIT" ]
null
null
null
ubereats/views.py
ronchen0927/Django-logistics
916fac813a62abffc0499a7b7a06859622e254dd
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse, Http404 from .models import Order, _get_all_order from .forms import DriverModelForm, OrderModelForm, StoreModelForm
25.971223
67
0.654848
from django.shortcuts import render, redirect from django.http import HttpResponse, Http404 from .models import Order, _get_all_order from .forms import DriverModelForm, OrderModelForm, StoreModelForm def index(request): orders = _get_all_order() for order in orders: if order.is_store_completed and o...
3,275
0
161
a3ee50cf266ce13ddb09c4a9f165d1706e075509
1,500
py
Python
ngramchecker.py
ayimechan/writingwidgets
73e4751dfdded14206b9d53692a25f0eede2cfb6
[ "MIT" ]
null
null
null
ngramchecker.py
ayimechan/writingwidgets
73e4751dfdded14206b9d53692a25f0eede2cfb6
[ "MIT" ]
null
null
null
ngramchecker.py
ayimechan/writingwidgets
73e4751dfdded14206b9d53692a25f0eede2cfb6
[ "MIT" ]
null
null
null
# a simple Ngram finder # only feasible for 3.x version # original text file must be plain text n=1 # min N howmany = 5 # max N outlength = 200 white_list = [] white_punc = [',','。','“','”','—','?','!','…','"',"'",':','?','!','.',','] file_raw = open('put full path to youre text file here','r',encoding='utf-8') fil...
25.862069
77
0.532
# a simple Ngram finder # only feasible for 3.x version # original text file must be plain text n=1 # min N howmany = 5 # max N outlength = 200 white_list = [] white_punc = [',','。','“','”','—','?','!','…','"',"'",':','?','!','.',','] file_raw = open('put full path to youre text file here','r',encoding='utf-8') fil...
232
0
23
067862330c1fbab9370310f28ae2252927f597a0
2,585
py
Python
python/tHome/sma/report.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
18
2016-04-17T19:39:28.000Z
2020-11-19T06:55:20.000Z
python/tHome/sma/report.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
6
2016-10-31T13:53:45.000Z
2019-03-20T20:47:03.000Z
python/tHome/sma/report.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
12
2016-10-31T12:29:08.000Z
2021-12-28T12:18:28.000Z
#=========================================================================== # # Report functions # #=========================================================================== import time from ..util import Data from .Link import Link #=========================================================================== def po...
25.85
76
0.504836
#=========================================================================== # # Report functions # #=========================================================================== import time from ..util import Data from .Link import Link #=========================================================================== def po...
0
0
0
c9f6b2d99f1b19c404fefc6847e08b20ec621d9b
630
py
Python
test/integration/071_commented_yaml_regression_3568_test/test_all_comment_yml_files.py
jankytara2/dbt
3f4069ab6d4d5b3fc34f8fe785761b5617357b0f
[ "Apache-2.0" ]
3,156
2017-03-05T09:59:23.000Z
2021-06-30T01:27:52.000Z
test/integration/071_commented_yaml_regression_3568_test/test_all_comment_yml_files.py
jankytara2/dbt
3f4069ab6d4d5b3fc34f8fe785761b5617357b0f
[ "Apache-2.0" ]
2,608
2017-02-27T15:39:40.000Z
2021-06-30T01:49:20.000Z
test/integration/071_commented_yaml_regression_3568_test/test_all_comment_yml_files.py
jankytara2/dbt
3f4069ab6d4d5b3fc34f8fe785761b5617357b0f
[ "Apache-2.0" ]
693
2017-03-13T03:04:49.000Z
2021-06-25T15:57:41.000Z
from test.integration.base import DBTIntegrationTest, use_profile
30
116
0.671429
from test.integration.base import DBTIntegrationTest, use_profile class TestAllCommentYMLIsOk(DBTIntegrationTest): @property def schema(self): return "071_commented_yaml" @property def models(self): return "models" @use_profile('postgres') def test_postgres_parses_with_all_co...
376
164
23
afe690113b48cacd55d0b5f1e8f1492bae11b8c2
35
py
Python
pygraylog/__init__.py
zmallen/pygraylog
cda2c6b583e8c7de47e98458b3faeae7d05a94d3
[ "Apache-2.0" ]
14
2016-08-29T16:31:14.000Z
2021-11-30T10:39:29.000Z
pygraylog/__init__.py
zmallen/pygraylog
cda2c6b583e8c7de47e98458b3faeae7d05a94d3
[ "Apache-2.0" ]
9
2016-08-28T15:23:47.000Z
2018-02-07T20:11:18.000Z
pygraylog/__init__.py
zmallen/pygraylog
cda2c6b583e8c7de47e98458b3faeae7d05a94d3
[ "Apache-2.0" ]
16
2016-10-04T17:37:42.000Z
2021-07-08T15:43:50.000Z
import endpoints import graylogapi
11.666667
17
0.885714
import endpoints import graylogapi
0
0
0
c6899828cc13d6f77a3160c032666acbf80b7ec7
6,664
py
Python
app/controllers/api/private/v1/install.py
arxcdr/silverback
212139cbc1a648d1f877d60f2d7c4d750eefc3da
[ "BSD-3-Clause" ]
null
null
null
app/controllers/api/private/v1/install.py
arxcdr/silverback
212139cbc1a648d1f877d60f2d7c4d750eefc3da
[ "BSD-3-Clause" ]
null
null
null
app/controllers/api/private/v1/install.py
arxcdr/silverback
212139cbc1a648d1f877d60f2d7c4d750eefc3da
[ "BSD-3-Clause" ]
null
null
null
""" Install API Endpoint """ # Third Party Library from django.views import View from django.http import JsonResponse from django.utils.translation import gettext as _ # Local Library from pyvalitron.form import Form from app.modules.util.helpers import Helpers from app.modules.core.request import Request from app.mo...
34.890052
142
0.484094
""" Install API Endpoint """ # Third Party Library from django.views import View from django.http import JsonResponse from django.utils.translation import gettext as _ # Local Library from pyvalitron.form import Form from app.modules.util.helpers import Helpers from app.modules.core.request import Request from app.mo...
5,761
262
23
eaaf40f98644521dbdb576e92beeb38100def095
2,071
py
Python
tests/test_result.py
YoRHazzz/Python_Crawler
0b46baea32c2bb74593e02b4f6b4c9534a95444d
[ "MIT" ]
null
null
null
tests/test_result.py
YoRHazzz/Python_Crawler
0b46baea32c2bb74593e02b4f6b4c9534a95444d
[ "MIT" ]
1
2021-12-13T20:55:38.000Z
2021-12-13T20:55:38.000Z
tests/test_result.py
YoRHazzz/Python_Crawler
0b46baea32c2bb74593e02b4f6b4c9534a95444d
[ "MIT" ]
null
null
null
import pytest from crawler.core import Downloader, Config, UrlManager import os from shutil import rmtree DEFAULT_INI_PATH = "./tests/config/default.ini" CONFIG_DIR_PATH = "./tests/config" test_failed_urls = ["http://www.google.com"] test_finished_urls = ["http://www.baidu.com"] test_repeated_urls = [] for i in range...
36.982143
94
0.689039
import pytest from crawler.core import Downloader, Config, UrlManager import os from shutil import rmtree DEFAULT_INI_PATH = "./tests/config/default.ini" CONFIG_DIR_PATH = "./tests/config" test_failed_urls = ["http://www.google.com"] test_finished_urls = ["http://www.baidu.com"] test_repeated_urls = [] for i in range...
1,483
112
23
8bd5eaf35ce1a725bace783655316c953bf23e47
991
py
Python
backend/youngun/youngun/apps/campaigns/migrations/0004_auto_20200701_1759.py
aakashbajaj/Youngun-Campaign-Tracking
a3b4f283b22cefb92c72f7638ee2a9da72622de0
[ "Apache-2.0" ]
null
null
null
backend/youngun/youngun/apps/campaigns/migrations/0004_auto_20200701_1759.py
aakashbajaj/Youngun-Campaign-Tracking
a3b4f283b22cefb92c72f7638ee2a9da72622de0
[ "Apache-2.0" ]
1
2021-09-22T19:27:06.000Z
2021-09-22T19:27:06.000Z
backend/youngun/youngun/apps/campaigns/migrations/0004_auto_20200701_1759.py
aakashbajaj/Youngun-Campaign-Tracking
a3b4f283b22cefb92c72f7638ee2a9da72622de0
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-01 17:59 from django.db import migrations, models
30.030303
96
0.611504
# Generated by Django 3.0.7 on 2020-07-01 17:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('campaigns', '0003_auto_20200701_1354'), ] operations = [ migrations.RemoveField( model_name='campaign', name='storie...
0
877
23
7f8eecb8c68b5a66de42d3e38c778e99161cd2b3
7,917
py
Python
tests/cogctl/cli/test_relay.py
operable/cogctl
bec66471189376e0c33be88edb68f3af8797fc8c
[ "Apache-2.0" ]
3
2016-05-09T23:14:47.000Z
2017-01-15T20:41:25.000Z
tests/cogctl/cli/test_relay.py
operable/cogctl
bec66471189376e0c33be88edb68f3af8797fc8c
[ "Apache-2.0" ]
59
2016-03-10T20:53:04.000Z
2021-09-03T17:26:02.000Z
tests/cogctl/cli/test_relay.py
operable/cogctl
bec66471189376e0c33be88edb68f3af8797fc8c
[ "Apache-2.0" ]
7
2016-03-09T21:43:33.000Z
2019-01-24T15:44:06.000Z
import pytest from cogctl.cli.relay import relay import responses @pytest.fixture(autouse=True)
35.030973
96
0.506379
import pytest from cogctl.cli.relay import relay import responses @pytest.fixture(autouse=True) def mocks(request, cli_state): with responses.RequestsMock(assert_all_requests_are_fired=False) as rsps: base_url = "%s/v1" % cli_state.profile["url"] relay_id = "a6f95083-78e2-4ace-b034-725d80d91717" ...
7,533
0
275
777c1f85b5da471695d52bab6592cdc2f616c13b
1,918
py
Python
Problem Set 2 - Student Version/game.py
MuhammeedAlaa/MI-Assignemnets
c90deb44c609d55ac5f7be343fed93d32e44c1e8
[ "MIT" ]
null
null
null
Problem Set 2 - Student Version/game.py
MuhammeedAlaa/MI-Assignemnets
c90deb44c609d55ac5f7be343fed93d32e44c1e8
[ "MIT" ]
null
null
null
Problem Set 2 - Student Version/game.py
MuhammeedAlaa/MI-Assignemnets
c90deb44c609d55ac5f7be343fed93d32e44c1e8
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Callable, Generic, Iterable, List, Optional, Tuple, TypeVar, Union from helpers.utils import CacheContainer, with_cache # S and A are used for generic typing where S represents the state type and A represents the action type S = TypeVar("S") A = TypeVar("A") # Ga...
40.808511
121
0.715328
from abc import ABC, abstractmethod from typing import Callable, Generic, Iterable, List, Optional, Tuple, TypeVar, Union from helpers.utils import CacheContainer, with_cache # S and A are used for generic typing where S represents the state type and A represents the action type S = TypeVar("S") A = TypeVar("A") # Ga...
217
857
22
a969f8b821d12efcfc53eb351086358fc1bd1c35
325
py
Python
app/models/configuration.py
ComputeCanada/mc-hub
92b4c212ba8f7b5b1c8b8700f981275605a07067
[ "BSD-3-Clause" ]
5
2020-09-04T16:34:36.000Z
2020-09-25T19:14:59.000Z
app/models/configuration.py
ComputeCanada/mc-hub
92b4c212ba8f7b5b1c8b8700f981275605a07067
[ "BSD-3-Clause" ]
39
2020-09-12T17:37:14.000Z
2022-03-10T17:49:57.000Z
app/models/configuration.py
ComputeCanada/mc-hub
92b4c212ba8f7b5b1c8b8700f981275605a07067
[ "BSD-3-Clause" ]
1
2021-03-29T15:42:13.000Z
2021-03-29T15:42:13.000Z
from models.constants import CONFIGURATION_FILE_PATH, CONFIGURATION_FILENAME from os import path import json try: config = path.join(CONFIGURATION_FILE_PATH, CONFIGURATION_FILENAME) with open(config) as configuration_file: config = json.load(configuration_file) except FileNotFoundError: config = di...
29.545455
76
0.790769
from models.constants import CONFIGURATION_FILE_PATH, CONFIGURATION_FILENAME from os import path import json try: config = path.join(CONFIGURATION_FILE_PATH, CONFIGURATION_FILENAME) with open(config) as configuration_file: config = json.load(configuration_file) except FileNotFoundError: config = di...
0
0
0
81d2da92d3e1e8341c227c909668831664692b3d
1,613
py
Python
api/web/encoder.py
scitran/nimsapi
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
13
2016-05-31T14:32:58.000Z
2021-09-17T07:18:11.000Z
api/web/encoder.py
scitran/core
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
911
2016-02-16T18:40:27.000Z
2018-08-07T17:50:29.000Z
api/web/encoder.py
scitran/nimsapi
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
16
2016-02-17T15:54:34.000Z
2021-04-07T05:30:34.000Z
from pymongo.cursor import Cursor import bson.objectid import datetime import json import pytz from ..jobs.jobs import Job def sse_pack(d): """ Format a map with Server-Sent-Event-meaningful keys into a string for transport. Happily borrowed from: http://taoofmac.com/space/blog/2014/11/16/1940 ...
29.87037
144
0.6708
from pymongo.cursor import Cursor import bson.objectid import datetime import json import pytz from ..jobs.jobs import Job def custom_json_serializer(obj): if isinstance(obj, bson.objectid.ObjectId): return str(obj) elif isinstance(obj, datetime.datetime): return pytz.timezone('UTC').localize(...
366
0
23
ab58f25864314da53acc8ff2833933638094f80d
7,611
py
Python
kitsune/wiki/tests/test_notifications.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
kitsune/wiki/tests/test_notifications.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
kitsune/wiki/tests/test_notifications.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.core import mail from nose.tools import eq_ from kitsune.sumo.tests import post from kitsune.users.tests import add_permission, user from kitsune.wiki.config import ( SIGNIFICANCES, MEDIUM_SIGNIFICANCE, TYPO_SIGNIFICANCE) from kitsune.wiki.events import ( ReadyRevisionEvent...
39.848168
79
0.637893
# -*- coding: utf-8 -*- from django.core import mail from nose.tools import eq_ from kitsune.sumo.tests import post from kitsune.users.tests import add_permission, user from kitsune.wiki.config import ( SIGNIFICANCES, MEDIUM_SIGNIFICANCE, TYPO_SIGNIFICANCE) from kitsune.wiki.events import ( ReadyRevisionEvent...
1,390
0
123
ba82c7d03047efa772b1660459c2a454bd211965
2,567
py
Python
signal.py
edart76/tree
743d14a819c057c50bd4f84ed0712768cb4ba582
[ "Apache-2.0" ]
null
null
null
signal.py
edart76/tree
743d14a819c057c50bd4f84ed0712768cb4ba582
[ "Apache-2.0" ]
null
null
null
signal.py
edart76/tree
743d14a819c057c50bd4f84ed0712768cb4ba582
[ "Apache-2.0" ]
null
null
null
from sys import version_info import inspect from weakref import WeakSet, WeakKeyDictionary from collections import deque from functools import partial class Signal(object): """ basic signal emitter fired signals are added to this object's calling frame - if this becomes excessive, this also includes mode to ad...
24.216981
70
0.696143
from sys import version_info import inspect from weakref import WeakSet, WeakKeyDictionary from collections import deque from functools import partial class Signal(object): """ basic signal emitter fired signals are added to this object's calling frame - if this becomes excessive, this also includes mode to ad...
1,130
0
143
2b448f9d2c5f053ad9ec07d32972e64200a1cbe4
2,344
py
Python
gemini/classes/Order.py
amishmenon1/gemini-trading-bot
1fd368f95e0c159f4b5d85509aa028a236cdbe34
[ "MIT" ]
null
null
null
gemini/classes/Order.py
amishmenon1/gemini-trading-bot
1fd368f95e0c159f4b5d85509aa028a236cdbe34
[ "MIT" ]
null
null
null
gemini/classes/Order.py
amishmenon1/gemini-trading-bot
1fd368f95e0c159f4b5d85509aa028a236cdbe34
[ "MIT" ]
null
null
null
from json import JSONEncoder import json
41.122807
115
0.69198
from json import JSONEncoder import json class Order: order_id = None id = None symbol = None exchange = None avg_execution_price = None side = None tyoe = None timestamp = None is_live = None is_cancelled = None is_hidden = None was_forced = None executed_amount = ...
1,789
439
73
d1041f84e0b284f1c6cf9ef99386ef0b0763ac36
1,427
py
Python
demo.py
luther38/XivDbWeb
204d066232c04dce0ea5a03ec55f160cfbc62659
[ "MIT" ]
null
null
null
demo.py
luther38/XivDbWeb
204d066232c04dce0ea5a03ec55f160cfbc62659
[ "MIT" ]
null
null
null
demo.py
luther38/XivDbWeb
204d066232c04dce0ea5a03ec55f160cfbc62659
[ "MIT" ]
null
null
null
from xivdb.sql import DB, Base, Weapon, Repair, Materia, Stats from xivdb.importCsv import importCsv from typing import List from sqlalchemy.orm import sessionmaker from XivDbReader import Reader import sqlalchemy.orm d = DB(Base) session: sessionmaker = d.newSession() w = d.newWeapon() read: Reader = Reader(job='wh...
24.186441
79
0.602663
from xivdb.sql import DB, Base, Weapon, Repair, Materia, Stats from xivdb.importCsv import importCsv from typing import List from sqlalchemy.orm import sessionmaker from XivDbReader import Reader import sqlalchemy.orm d = DB(Base) session: sessionmaker = d.newSession() w = d.newWeapon() read: Reader = Reader(job='wh...
0
0
0
f8dd9101a0c14362d495693796971d912eed2201
10,854
py
Python
causallearn/search/FCMBased/lingam/multi_group_direct_lingam.py
softsys4ai/causal-config-labyrinth
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
[ "MIT" ]
15
2022-01-20T12:35:35.000Z
2022-03-24T16:25:24.000Z
causallearn/search/FCMBased/lingam/multi_group_direct_lingam.py
softsys4ai/unicorn
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
[ "MIT" ]
14
2022-01-23T00:20:00.000Z
2022-02-22T01:40:43.000Z
causallearn/search/FCMBased/lingam/multi_group_direct_lingam.py
softsys4ai/causal-config-labyrinth
4f50f9ff15429b0ac6ad0a99fbe4cfdd17e360fc
[ "MIT" ]
1
2022-02-23T08:59:24.000Z
2022-02-23T08:59:24.000Z
""" Python implementation of the LiNGAM algorithms. The LiNGAM Project: https://sites.google.com/site/sshimizu06/lingam """ import itertools import numbers import warnings import numpy as np from sklearn.utils import check_array, resample from .bootstrap import BootstrapResult from .direct_lingam import DirectLiNGAM ...
38.626335
124
0.570849
""" Python implementation of the LiNGAM algorithms. The LiNGAM Project: https://sites.google.com/site/sshimizu06/lingam """ import itertools import numbers import warnings import numpy as np from sklearn.utils import check_array, resample from .bootstrap import BootstrapResult from .direct_lingam import DirectLiNGAM ...
0
0
0
af4aef31b29eb7fac373d7af381d6a06f930385f
83
py
Python
ibkr/apps.py
westonplatter/pnl_reporting
8cf58cf16977bc5cb0109f047f0681e10e09abbc
[ "BSD-3-Clause" ]
12
2020-10-16T14:36:53.000Z
2022-01-29T10:11:19.000Z
ibkr/apps.py
westonplatter/pnl_reporting
8cf58cf16977bc5cb0109f047f0681e10e09abbc
[ "BSD-3-Clause" ]
9
2021-01-21T02:38:52.000Z
2022-01-08T22:42:04.000Z
ibkr/apps.py
westonplatter/pnl_reporting
8cf58cf16977bc5cb0109f047f0681e10e09abbc
[ "BSD-3-Clause" ]
4
2020-11-30T13:00:22.000Z
2021-11-30T09:33:02.000Z
from django.apps import AppConfig
13.833333
33
0.73494
from django.apps import AppConfig class IbkrConfig(AppConfig): name = "ibkr"
0
25
23
7e5ca3f9e7f33bdcb4fe3780578db3eb48b9c9dc
11,476
py
Python
bravado/client.py
analogue/swagger-py
ded3a811579ea4e0d1adb3582b90d8d941b7fb17
[ "BSD-3-Clause" ]
null
null
null
bravado/client.py
analogue/swagger-py
ded3a811579ea4e0d1adb3582b90d8d941b7fb17
[ "BSD-3-Clause" ]
null
null
null
bravado/client.py
analogue/swagger-py
ded3a811579ea4e0d1adb3582b90d8d941b7fb17
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ The :class:`SwaggerClient` provides an interface for making API calls based on a swagger spec, and returns responses of python objects which build from the API response. Structure Diagram:: +---------------------+ | | | SwaggerClient | ...
35.639752
79
0.622778
# -*- coding: utf-8 -*- """ The :class:`SwaggerClient` provides an interface for making API calls based on a swagger spec, and returns responses of python objects which build from the API response. Structure Diagram:: +---------------------+ | | | SwaggerClient | ...
711
0
185
488f805ead1ea81a412115f7c6e06f8427a0411c
6,844
py
Python
Login.py
MichaelToLearn/oh_my_course
ac00f132e931422430f5f8ed2079ce0fc21cfb37
[ "Apache-2.0" ]
1
2020-01-14T01:14:27.000Z
2020-01-14T01:14:27.000Z
Login.py
MichaelToLearn/oh_my_course
ac00f132e931422430f5f8ed2079ce0fc21cfb37
[ "Apache-2.0" ]
null
null
null
Login.py
MichaelToLearn/oh_my_course
ac00f132e931422430f5f8ed2079ce0fc21cfb37
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 import json import pickle import requests import os import re from io import BytesIO BASE_DIR = os.path.dirname(__file__) # LOGIN_URL = 'http://grdms.bit.edu.cn/yjs/login_cas.jsp' # LOGIN_URL = 'https://login.bit.edu.cn/cas/login?service=https://login.bit.edu.cn/campus-account/shiro-cas' LOGIN_URL = 'h...
30.690583
192
0.513296
# coding:utf-8 import json import pickle import requests import os import re from io import BytesIO BASE_DIR = os.path.dirname(__file__) # LOGIN_URL = 'http://grdms.bit.edu.cn/yjs/login_cas.jsp' # LOGIN_URL = 'https://login.bit.edu.cn/cas/login?service=https://login.bit.edu.cn/campus-account/shiro-cas' LOGIN_URL = 'h...
0
6,564
23
e1aad344e44883df09767703e8496275881b91e0
2,937
py
Python
bot.py
VicOfDlt/JesStats
f787d3d87900934632ac44144760c273731565b0
[ "MIT" ]
null
null
null
bot.py
VicOfDlt/JesStats
f787d3d87900934632ac44144760c273731565b0
[ "MIT" ]
null
null
null
bot.py
VicOfDlt/JesStats
f787d3d87900934632ac44144760c273731565b0
[ "MIT" ]
null
null
null
import discord, requests, os from discord.ext import commands, tasks from discord_components import DiscordComponents from config import token, db from typing import Union from help_ import CustomHelpCommand config = db["config"] links = db["linked"] presence_count = 0 intents = discord.Intents...
26.459459
86
0.607423
import discord, requests, os from discord.ext import commands, tasks from discord_components import DiscordComponents from config import token, db from typing import Union from help_ import CustomHelpCommand config = db["config"] links = db["linked"] presence_count = 0 async def get_embed(ctx: comman...
2,147
0
121
2dd3cd31fed4537a30510222bf73cf19535656b0
1,121
py
Python
Examples/Infovis/Python/boost_centrality.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
1
2020-05-04T05:59:07.000Z
2020-05-04T05:59:07.000Z
Examples/Infovis/Python/boost_centrality.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
Examples/Infovis/Python/boost_centrality.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
from vtk import * source = vtkRandomGraphSource() source.DirectedOff() source.SetNumberOfVertices(50) source.SetEdgeProbability(0.01) source.SetUseEdgeProbability(True) source.AllowParallelEdgesOn() source.AllowSelfLoopsOn() source.SetStartWithTree(True) # Connect to the Boost centrality filter. centrality = vtkBoos...
25.477273
69
0.831401
from vtk import * source = vtkRandomGraphSource() source.DirectedOff() source.SetNumberOfVertices(50) source.SetEdgeProbability(0.01) source.SetUseEdgeProbability(True) source.AllowParallelEdgesOn() source.AllowSelfLoopsOn() source.SetStartWithTree(True) # Connect to the Boost centrality filter. centrality = vtkBoos...
0
0
0
b8e0783ae0bf6f0f8523e6b5ddc9acc14987632e
2,731
py
Python
exam14_02/script_Davide_Abbondandolo.py
Abbodavi/programming_davide_abbondandolo
b985cb0af0c5cd46d6b643410b0e106ddf4a1148
[ "MIT" ]
null
null
null
exam14_02/script_Davide_Abbondandolo.py
Abbodavi/programming_davide_abbondandolo
b985cb0af0c5cd46d6b643410b0e106ddf4a1148
[ "MIT" ]
null
null
null
exam14_02/script_Davide_Abbondandolo.py
Abbodavi/programming_davide_abbondandolo
b985cb0af0c5cd46d6b643410b0e106ddf4a1148
[ "MIT" ]
null
null
null
import input_data #input import BLOSUM52=input_data.BLOSUM52 seq2=input_data.seq2 seq1=input_data.seq1 matrix=NW_matrix(seq1,seq2,BLOSUM52,-2) #compute 2 matrix, gap penality is set to -2 result=allign(matrix[0],matrix[1],seq1,seq2) #use matrix obtained before to get the alignment print(result[0],result[1])...
47.912281
93
0.645185
import input_data #input import BLOSUM52=input_data.BLOSUM52 seq2=input_data.seq2 seq1=input_data.seq1 def NW_matrix(s1,s2,matrix,gap): score_m=[[0] * (len(s1)+1) for i in range(len(s2)+1)] #create 2 equal matrix for score move_m=[[0] * (len(s1)+1) for i in range(len(s2)+1)] #and movement of size(n+1)*...
2,338
0
46
5c365fe033cb87c245810ffc125f74663dd50b0f
850
py
Python
2016/1/b.py
WilliamHayward/Advent-Of-Code
fdcc3677632dc79d96233f98527a1db2e41704dd
[ "MIT" ]
null
null
null
2016/1/b.py
WilliamHayward/Advent-Of-Code
fdcc3677632dc79d96233f98527a1db2e41704dd
[ "MIT" ]
null
null
null
2016/1/b.py
WilliamHayward/Advent-Of-Code
fdcc3677632dc79d96233f98527a1db2e41704dd
[ "MIT" ]
null
null
null
directions = open('input', 'r').read().strip().split(', ') x = 0 y = 0 facing = 0 #North visited = {} visited[(x, y)] = True for direction in directions: if direction[0] == 'R': facing += 1 else: facing -= 1 if facing < 0: facing = 3 elif facing > 3: facing = 0 cou...
22.368421
77
0.458824
directions = open('input', 'r').read().strip().split(', ') x = 0 y = 0 facing = 0 #North visited = {} visited[(x, y)] = True for direction in directions: if direction[0] == 'R': facing += 1 else: facing -= 1 if facing < 0: facing = 3 elif facing > 3: facing = 0 cou...
0
0
0
86434d75753f7cb9ab26d0db01b9cca8cf89f27c
71,882
py
Python
infoblox_netmri/api/broker/v2_3_0/routing_area_member_broker.py
infobloxopen/infoblox_netmri
aa1c744df7e439dbe163bb9edd165e4e85a9771b
[ "Apache-2.0" ]
12
2016-02-19T12:37:54.000Z
2022-03-04T20:11:08.000Z
infoblox_netmri/api/broker/v2_3_0/routing_area_member_broker.py
azinfoblox/infoblox-netmri
02372c5231e2677ab6299cb659a73c9a41b4b0f4
[ "Apache-2.0" ]
18
2015-11-12T18:37:00.000Z
2021-05-19T07:59:55.000Z
infoblox_netmri/api/broker/v2_3_0/routing_area_member_broker.py
azinfoblox/infoblox-netmri
02372c5231e2677ab6299cb659a73c9a41b4b0f4
[ "Apache-2.0" ]
18
2016-01-07T12:04:34.000Z
2022-03-31T11:05:41.000Z
from ..broker import Broker
56.644602
765
0.635903
from ..broker import Broker class RoutingAreaMemberBroker(Broker): controller = "routing_area_members" def show(self, **kwargs): """Shows the details for the specified routing area member. **Inputs** | ``api version min:`` None | ``api version max:`` None ...
0
71,830
23