hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
1a33943d2cf0f6c01fc1fd72edefaa54e0e682d5
3,911
py
Python
distnet/keras_models/self_attention.py
jeanollion/dlutils
ea419e79486e1212219dc06d39c3a4f4c305ff49
[ "Apache-2.0" ]
4
2020-05-27T01:39:44.000Z
2021-09-03T18:20:33.000Z
distnet/keras_models/self_attention.py
jeanollion/dlutils
ea419e79486e1212219dc06d39c3a4f4c305ff49
[ "Apache-2.0" ]
null
null
null
distnet/keras_models/self_attention.py
jeanollion/dlutils
ea419e79486e1212219dc06d39c3a4f4c305ff49
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow.keras.layers import Layer, Dense, Reshape, Embedding, Concatenate, Conv2D from tensorflow.keras.models import Model import numpy as np def scaled_dot_product_attention(q, k, v): """Calculate the attention weights. q, k, v must have matching leading dimensions. k, v m...
43.455556
164
0.662746
1a3455e2c8f1c28a1b5a8b75f7074c1334a2652b
62,335
py
Python
src/UQpy/SampleMethods.py
bsaakash/new_repo
c188689d12a5e3f7ff3c81ff76524bdbc2569de9
[ "Apache-2.0" ]
null
null
null
src/UQpy/SampleMethods.py
bsaakash/new_repo
c188689d12a5e3f7ff3c81ff76524bdbc2569de9
[ "Apache-2.0" ]
null
null
null
src/UQpy/SampleMethods.py
bsaakash/new_repo
c188689d12a5e3f7ff3c81ff76524bdbc2569de9
[ "Apache-2.0" ]
null
null
null
"""This module contains functionality for all the sampling methods supported in UQpy.""" import sys import copy import numpy as np from scipy.spatial.distance import pdist import scipy.stats as sp import random from UQpy.Distributions import * import warnings #########################################################...
47.693191
121
0.521617
1a351fa5c4ad0647f5e47f61d98718d18c8f41de
5,366
py
Python
examples/python-api/simple_alu.py
ahmed-irfan/cosa2
200c7ce44aa57e2e3d55dddb22051896ad5ee81c
[ "BSD-3-Clause" ]
26
2020-07-23T01:15:03.000Z
2022-01-16T06:10:10.000Z
examples/python-api/simple_alu.py
ahmed-irfan/cosa2
200c7ce44aa57e2e3d55dddb22051896ad5ee81c
[ "BSD-3-Clause" ]
132
2020-06-29T19:40:19.000Z
2021-11-30T02:21:43.000Z
examples/python-api/simple_alu.py
ahmed-irfan/cosa2
200c7ce44aa57e2e3d55dddb22051896ad5ee81c
[ "BSD-3-Clause" ]
16
2020-10-12T11:53:46.000Z
2022-03-30T13:22:39.000Z
#!/usr/bin/env python3 import argparse import pono import smt_switch as ss from smt_switch.primops import And, BVAdd, BVSub, Equal, Ite from smt_switch.sortkinds import BOOL, BV def build_simple_alu_fts(s:ss.SmtSolver)->pono.Property: ''' Creates a simple alu transition system @param s - an SmtSolver from ...
34.397436
101
0.62076
1a3616b61cc48f65c6a7989293c9e978921dfdf8
55
py
Python
lrs/admin.py
ELSUru/ADL_LRS
aabeb9cf3e56795b148f37d07e1bb2b41e61e470
[ "Apache-2.0" ]
null
null
null
lrs/admin.py
ELSUru/ADL_LRS
aabeb9cf3e56795b148f37d07e1bb2b41e61e470
[ "Apache-2.0" ]
null
null
null
lrs/admin.py
ELSUru/ADL_LRS
aabeb9cf3e56795b148f37d07e1bb2b41e61e470
[ "Apache-2.0" ]
null
null
null
from util.util import autoregister autoregister('lrs')
18.333333
34
0.818182
1a3702be15ebcb4bd15bdff000d4d69a1406a580
2,279
py
Python
cloudmesh/key/Key.py
wang542/cloudmesh-cloud
f09f823172afedf55c008a5094b005eef6697551
[ "Apache-2.0" ]
null
null
null
cloudmesh/key/Key.py
wang542/cloudmesh-cloud
f09f823172afedf55c008a5094b005eef6697551
[ "Apache-2.0" ]
null
null
null
cloudmesh/key/Key.py
wang542/cloudmesh-cloud
f09f823172afedf55c008a5094b005eef6697551
[ "Apache-2.0" ]
null
null
null
# See also the methods already implemented we have in cm for ssh management # I think you reimplemented things that already exists. # see and inspect cloudmesh.common import os from os.path import expanduser # see content of path_expand it does expanduser as far as I know from cloudmesh.common.util import path_expand ...
33.028986
80
0.603335
1a378a9835c7850c8d5fc052d1abc3beb861f804
1,901
py
Python
code/DNN/dnn_regression-keras.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
3
2021-05-25T10:18:23.000Z
2022-02-09T08:55:14.000Z
code/DNN/dnn_regression-keras.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
null
null
null
code/DNN/dnn_regression-keras.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-# ''' # Name: dnn_regression-keras # Description: # Author: super # Date: 2020/6/2 ''' from HelperClass2.MnistImageDataReader import * from keras.models import Sequential from keras.layers import Dense import matplotlib.pyplot as plt import os os.environ['KMP_DUPLICATE...
27.550725
99
0.679642
1a3797269cc9f510ddd449f32834670da5b034b5
24
py
Python
milarun/models/ssd/__init__.py
laceyg/milabench
a314094a406c2e98a932f6d4f3a9588a991148d3
[ "MIT" ]
67
2020-09-22T10:17:53.000Z
2022-02-16T10:24:17.000Z
milarun/models/ssd/__init__.py
laceyg/milabench
a314094a406c2e98a932f6d4f3a9588a991148d3
[ "MIT" ]
6
2020-07-02T08:58:39.000Z
2021-02-01T20:31:28.000Z
milarun/models/ssd/__init__.py
laceyg/milabench
a314094a406c2e98a932f6d4f3a9588a991148d3
[ "MIT" ]
8
2020-06-19T17:16:19.000Z
2022-03-31T19:34:49.000Z
from .train import main
12
23
0.791667
1a385acf058d7c8902e6d45a5ac660ccee14a741
2,825
py
Python
separator.py
TimBossuyt/GcodeAnalyzer
eb52e7e2360692919a5128802b189b06dfdb20d0
[ "MIT" ]
2
2021-03-31T18:13:34.000Z
2021-03-31T18:26:03.000Z
separator.py
TimBossuyt/GcodeAnalyzer
eb52e7e2360692919a5128802b189b06dfdb20d0
[ "MIT" ]
null
null
null
separator.py
TimBossuyt/GcodeAnalyzer
eb52e7e2360692919a5128802b189b06dfdb20d0
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2020 Mitchell Lane # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, ...
32.471264
123
0.667611
1a39172f1ee4c2e6ed3de6f119bd4fc128421537
944
py
Python
corpustools/funcload/io.py
PhonologicalCorpusTools/CorpusTools
ff5a7c06e2f7a478c5a239de7a78ef7eb5f4a45e
[ "BSD-3-Clause" ]
97
2015-07-06T18:58:43.000Z
2022-03-10T23:00:07.000Z
corpustools/funcload/io.py
PhonologicalCorpusTools/CorpusTools
ff5a7c06e2f7a478c5a239de7a78ef7eb5f4a45e
[ "BSD-3-Clause" ]
443
2015-03-10T21:24:39.000Z
2022-03-22T22:20:13.000Z
corpustools/funcload/io.py
PhonologicalCorpusTools/CorpusTools
ff5a7c06e2f7a478c5a239de7a78ef7eb5f4a45e
[ "BSD-3-Clause" ]
22
2015-07-19T18:56:24.000Z
2020-09-17T17:58:12.000Z
import csv
36.307692
80
0.581568
1a394cf9c7eb99717e2514108e5f1a318701bbde
666
py
Python
src/modax/layers/network.py
GJBoth/modax
c7e1c128d4dd48b776f8ec4fa724c2e4b6e13c82
[ "MIT" ]
2
2021-12-10T14:36:37.000Z
2022-02-10T11:47:03.000Z
src/modax/layers/network.py
GJBoth/modax
c7e1c128d4dd48b776f8ec4fa724c2e4b6e13c82
[ "MIT" ]
null
null
null
src/modax/layers/network.py
GJBoth/modax
c7e1c128d4dd48b776f8ec4fa724c2e4b6e13c82
[ "MIT" ]
2
2020-12-22T14:49:13.000Z
2021-04-09T08:52:08.000Z
from typing import Callable from jax import lax from flax import linen as nn
28.956522
87
0.612613
1a3b3a34411e2661693d22cef2b7c67cd304a5f8
14,658
py
Python
tests/integrations/java/test_JDK__verify.py
pybee/briefcase
d7e9aa7bf15aa2abbc71e97aef9bea287129fdaa
[ "BSD-3-Clause" ]
522
2015-07-28T16:06:18.000Z
2019-03-25T17:16:55.000Z
tests/integrations/java/test_JDK__verify.py
pybee/briefcase
d7e9aa7bf15aa2abbc71e97aef9bea287129fdaa
[ "BSD-3-Clause" ]
154
2015-09-17T02:50:55.000Z
2019-03-22T07:10:34.000Z
tests/integrations/java/test_JDK__verify.py
pybee/briefcase
d7e9aa7bf15aa2abbc71e97aef9bea287129fdaa
[ "BSD-3-Clause" ]
105
2015-09-25T08:43:26.000Z
2019-03-25T15:59:27.000Z
import os import shutil import subprocess import sys from pathlib import Path from unittest import mock import pytest from requests import exceptions as requests_exceptions from briefcase.console import Log from briefcase.exceptions import BriefcaseCommandError, MissingToolError, NetworkFailure from briefcase.integra...
35.066986
93
0.68611
1a3d09039dd0883546bc6476b9cb21a1d00197ed
1,094
py
Python
Script Examples/selectionpickobject.py
chuongmep/CadPythonShell
c47d576596b1c2ffa054c8a17dafb2f4156f9a00
[ "MIT" ]
9
2022-03-15T17:19:34.000Z
2022-03-19T17:13:33.000Z
Script Examples/selectionpickobject.py
atultegar/CadPythonShell
cef1055f39fcd76f6638900a7e1517942181648b
[ "MIT" ]
2
2022-03-29T02:34:20.000Z
2022-03-31T03:34:44.000Z
Script Examples/selectionpickobject.py
atultegar/CadPythonShell
cef1055f39fcd76f6638900a7e1517942181648b
[ "MIT" ]
2
2022-03-16T14:10:09.000Z
2022-03-19T17:13:10.000Z
import clr import sys sys.path.append('C:\Program Files (x86)\IronPython 2.7\Lib') import os import math clr.AddReference('acmgd') clr.AddReference('acdbmgd') clr.AddReference('accoremgd') # Import references from AutoCAD from Autodesk.AutoCAD.Runtime import * from Autodesk.AutoCAD.ApplicationServices import * from Aut...
33.151515
84
0.760512
1a3d1f6c992c6dfd49b42ac641ef764ebd057319
11,751
py
Python
Katna/config.py
viddik13/katna
12256602a5fd24368ffffe2c1a82a46a49215c15
[ "MIT" ]
125
2019-08-22T06:53:55.000Z
2022-03-24T05:53:41.000Z
Katna/config.py
viddik13/katna
12256602a5fd24368ffffe2c1a82a46a49215c15
[ "MIT" ]
19
2020-02-13T07:14:59.000Z
2021-12-01T15:13:33.000Z
Katna/config.py
viddik13/katna
12256602a5fd24368ffffe2c1a82a46a49215c15
[ "MIT" ]
28
2019-09-03T07:00:29.000Z
2021-12-30T04:20:14.000Z
""" .. module:: Katna.config :platform: Platfrom Independent :synopsis: This module defines some helpful configuration variables """ import os # # Configuration parameters for Image class # # Configurations for Scoring crops for crop extractor # # Configurations for Text detection class # # Configuration...
28.521845
183
0.562676
1a3d73a6c52da2deb3d1d2f1db4c3862bf7713d4
350
py
Python
functions/closeAll.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
functions/closeAll.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
functions/closeAll.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012, Almar Klein # # Visvis is distributed under the terms of the (new) BSD License. # The full license can be found in 'license.txt'. import visvis as vv def closeAll(): """ closeAll() Closes all figures. """ for fig in vv.BaseFigure._figures.va...
19.444444
65
0.614286
1a3e656693ac2d53648f435ad47a133f2ee184fd
15,423
py
Python
gtrace/optics/geometric.py
terrencetec/gtrace
e471aa534e5b0fa4cfd7a79f83641b534e276b67
[ "BSD-2-Clause" ]
1
2021-03-25T04:08:47.000Z
2021-03-25T04:08:47.000Z
gtrace/optics/geometric.py
terrencetec/gtrace
e471aa534e5b0fa4cfd7a79f83641b534e276b67
[ "BSD-2-Clause" ]
1
2021-04-06T07:03:07.000Z
2021-04-06T07:03:07.000Z
gtrace/optics/geometric.py
terrencetec/gtrace
e471aa534e5b0fa4cfd7a79f83641b534e276b67
[ "BSD-2-Clause" ]
1
2021-03-24T14:16:45.000Z
2021-03-24T14:16:45.000Z
#{{{ Import import numpy as np pi = np.pi #}}} #{{{ Snell's Law def deflection_angle(theta, n1, n2, deg=True): """Calculate deflection angle according to Snell's law. Parameters ---------- theta : float Angle of incidence. n1 : float Refractive index of the first medium. n2 : ...
28.774254
108
0.607145
1a4315521e410535022480f1787d8082ba26bce9
24
py
Python
tpau_gtfsutilities/gtfs/process/__init__.py
anniekfifer/tpau-gtfsutils
a022d4c8465b7f736023ecc294ff0d7d0201b0e9
[ "BSD-3-Clause" ]
3
2019-09-25T10:05:42.000Z
2019-11-26T13:30:29.000Z
tpau_gtfsutilities/gtfs/process/__init__.py
anniekfifer/tpau-gtfsutils
a022d4c8465b7f736023ecc294ff0d7d0201b0e9
[ "BSD-3-Clause" ]
null
null
null
tpau_gtfsutilities/gtfs/process/__init__.py
anniekfifer/tpau-gtfsutils
a022d4c8465b7f736023ecc294ff0d7d0201b0e9
[ "BSD-3-Clause" ]
null
null
null
from . import preprocess
24
24
0.833333
1a43602ede101f6065f899eb4ae9c5972b6d4f2d
865
py
Python
setup.py
mlab-upenn/pyEp
14435158bba4c11df43dfac6b662e81d7d0029b9
[ "MIT" ]
11
2018-06-20T16:09:50.000Z
2021-06-28T18:48:01.000Z
setup.py
mlab-upenn/pyEp
14435158bba4c11df43dfac6b662e81d7d0029b9
[ "MIT" ]
4
2018-05-09T18:14:52.000Z
2018-08-21T13:59:52.000Z
setup.py
mlab-upenn/pyEp
14435158bba4c11df43dfac6b662e81d7d0029b9
[ "MIT" ]
2
2020-02-16T07:52:45.000Z
2021-09-19T05:19:41.000Z
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( n...
27.03125
64
0.717919
1a44e0b322e41eca3cc5fe2f6db02f126c139edf
1,918
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/jcq/models/Subscription.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/jcq/models/Subscription.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/jcq/models/Subscription.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
41.695652
226
0.728363
1a45326720b16c2af69d18465b3b98b47482317d
451
py
Python
aggregator/migrations/0033_auto_20190118_1735.py
dipapaspyros/bdo_platform
336de07c6ed14290c54f2154117dbf90a187e4ea
[ "MIT" ]
2
2018-02-07T10:26:28.000Z
2018-09-21T09:12:58.000Z
aggregator/migrations/0033_auto_20190118_1735.py
dipapaspyros/bdo_platform
336de07c6ed14290c54f2154117dbf90a187e4ea
[ "MIT" ]
5
2018-09-21T10:40:44.000Z
2019-04-06T10:59:57.000Z
aggregator/migrations/0033_auto_20190118_1735.py
dipapaspyros/bdo_platform
336de07c6ed14290c54f2154117dbf90a187e4ea
[ "MIT" ]
3
2019-06-09T15:42:02.000Z
2022-02-14T19:50:33.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-01-18 15:35 from __future__ import unicode_literals from django.db import migrations
21.47619
50
0.605322
1a4560e6c15b32f07d918f4f5ee71a7ff0eeadff
1,793
py
Python
src/lead2gold/tools/emd.py
plachta11b/lead2gold
96a0b2fda190d6ab6045b6045d5c621cea119306
[ "MIT" ]
null
null
null
src/lead2gold/tools/emd.py
plachta11b/lead2gold
96a0b2fda190d6ab6045b6045d5c621cea119306
[ "MIT" ]
null
null
null
src/lead2gold/tools/emd.py
plachta11b/lead2gold
96a0b2fda190d6ab6045b6045d5c621cea119306
[ "MIT" ]
null
null
null
import ntpath from lead2gold.tools.tool import Tool from lead2gold.util import pwm2consensus from lead2gold.util import sequence2pwm from lead2gold.motif import Motif
21.60241
71
0.693809
1a46c7e94441079b15b76f478077729aeb904fff
1,915
py
Python
plaso/formatters/manager.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
plaso/formatters/manager.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
plaso/formatters/manager.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
# -*- coding: utf-8 -*- """Manages custom event formatter helpers."""
30.887097
80
0.723238
1a47e16bbc1c9a27bb44a250b95b6dc46f70cbad
2,814
py
Python
scvae/analyses/metrics/summary.py
chgroenbech/deep-learning-for-single-cell-transcriptomics
d6148efabfb12eda8bd1b895e1bb72f592e39ab0
[ "Apache-2.0" ]
46
2019-06-05T14:17:12.000Z
2022-02-02T22:15:52.000Z
scvae/analyses/metrics/summary.py
chgroenbech/deep-learning-for-single-cell-transcriptomics
d6148efabfb12eda8bd1b895e1bb72f592e39ab0
[ "Apache-2.0" ]
12
2019-07-17T05:24:15.000Z
2021-08-17T23:02:06.000Z
scvae/analyses/metrics/summary.py
chgroenbech/deep-learning-for-single-cell-transcriptomics
d6148efabfb12eda8bd1b895e1bb72f592e39ab0
[ "Apache-2.0" ]
13
2017-03-03T02:56:20.000Z
2019-04-17T18:13:42.000Z
# ======================================================================== # # # Copyright (c) 2017 - 2020 scVAE authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apac...
29.93617
77
0.613717
1a48ff01cabe164e72d8f1b64353d48a4be49d51
5,137
py
Python
template.py
gtback/kuberwatcher
697b99d47b764dc59f8a46a2077693d25561a106
[ "Apache-2.0" ]
23
2018-06-29T09:12:40.000Z
2021-12-02T23:32:55.000Z
template.py
gtback/kuberwatcher
697b99d47b764dc59f8a46a2077693d25561a106
[ "Apache-2.0" ]
8
2018-07-12T10:02:23.000Z
2022-01-11T10:36:00.000Z
template.py
gtback/kuberwatcher
697b99d47b764dc59f8a46a2077693d25561a106
[ "Apache-2.0" ]
6
2018-07-17T14:07:18.000Z
2021-11-16T23:34:46.000Z
template_open = '{{#ctx.payload.aggregations.result.hits.hits.0._source}}' template_close = template_open.replace('{{#','{{/') kibana_url = ( "{{ctx.metadata.kibana_url}}/app/kibana#/discover?" "_a=(columns:!(_source),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f," "index:'metr...
28.538889
313
0.451041
1a4b282b49de9a38d9c3f3b091630a0e74fa7af6
2,504
py
Python
preset.py
IkhwanFikri1997/Exam-Schedule-Generation
33b8a7faf714cd05552faa5b8ed2a3717eafbb72
[ "MIT" ]
null
null
null
preset.py
IkhwanFikri1997/Exam-Schedule-Generation
33b8a7faf714cd05552faa5b8ed2a3717eafbb72
[ "MIT" ]
null
null
null
preset.py
IkhwanFikri1997/Exam-Schedule-Generation
33b8a7faf714cd05552faa5b8ed2a3717eafbb72
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ ZetCode wxPython tutorial In this example, we create a wx.ListBox widget. author: Jan Bodnar website: www.zetcode.com last modified: July 2020 """ import wx if __name__ == '__main__': main()
27.217391
75
0.57508
1a4b926977f46de6f98472226aaa5d3b9b4737c2
11,210
py
Python
CrySPY/interface/QE/collect_qe.py
sgbaird/CrySPY
fc24b312c999aebf6a8a2a56c8d9f17357a277a9
[ "MIT" ]
57
2018-01-13T13:01:48.000Z
2022-03-26T14:25:38.000Z
CrySPY/interface/QE/collect_qe.py
sgbaird/CrySPY
fc24b312c999aebf6a8a2a56c8d9f17357a277a9
[ "MIT" ]
9
2018-10-27T09:07:06.000Z
2022-03-26T15:12:19.000Z
CrySPY/interface/QE/collect_qe.py
sgbaird/CrySPY
fc24b312c999aebf6a8a2a56c8d9f17357a277a9
[ "MIT" ]
30
2017-08-18T07:31:31.000Z
2022-03-26T14:37:27.000Z
''' Collect results in Quantum ESPRESSO ''' import sys import numpy as np from pymatgen.core import Structure from . import structure as qe_structure from ... import utility from ...IO import pkl_data from ...IO import read_input as rin def get_energy_step_qe(energy_step_data, current_id, work_path): ''' ...
34.072948
91
0.550937
1a4c10e57be9c1ea98e7ba154fb2b42115d10876
778
py
Python
jobs/scripts/index_jobs.py
soheltarir/django-es-test
2cdce24fb0288f16f2526b38d139359dbe8472f5
[ "MIT" ]
5
2019-12-01T13:06:55.000Z
2020-01-22T04:21:54.000Z
jobs/scripts/index_jobs.py
soheltarir/django-es-test
2cdce24fb0288f16f2526b38d139359dbe8472f5
[ "MIT" ]
2
2020-06-06T00:15:11.000Z
2022-02-10T11:24:31.000Z
jobs/scripts/index_jobs.py
soheltarir/django-elastic-postgres
2cdce24fb0288f16f2526b38d139359dbe8472f5
[ "MIT" ]
null
null
null
import json from django.db import connection from elasticsearch import Elasticsearch from jobs.models import Job es_client = Elasticsearch('http://localhost:9200')
27.785714
87
0.673522
1a4cc0f2953e4278fff2eee0c3cc81e9ff8d35c1
2,543
py
Python
dealconvert/formats/bri.py
michzimny/deal-convert
76179bc58e50cd2e4d61ad782b4e65ae27f3173b
[ "BSD-2-Clause" ]
null
null
null
dealconvert/formats/bri.py
michzimny/deal-convert
76179bc58e50cd2e4d61ad782b4e65ae27f3173b
[ "BSD-2-Clause" ]
null
null
null
dealconvert/formats/bri.py
michzimny/deal-convert
76179bc58e50cd2e4d61ad782b4e65ae27f3173b
[ "BSD-2-Clause" ]
null
null
null
import warnings from . import DealFormat from .. import dto
35.319444
91
0.50177
1a4dc0ed40e0f9a9a400f39481d67c44613f9b9c
1,766
py
Python
src/test_sudoku_solver.py
tillschallau/sudoku-solver
c1de723b5c61776b9194abd9b93faf56c7ed9039
[ "MIT" ]
null
null
null
src/test_sudoku_solver.py
tillschallau/sudoku-solver
c1de723b5c61776b9194abd9b93faf56c7ed9039
[ "MIT" ]
null
null
null
src/test_sudoku_solver.py
tillschallau/sudoku-solver
c1de723b5c61776b9194abd9b93faf56c7ed9039
[ "MIT" ]
null
null
null
import src.sudoku_solver as sudoku_solver from src.sudoku import Sudoku correct_sudoku = Sudoku([[9, 5, 7, 6, 1, 3, 2, 8, 4], [4, 8, 3, 2, 5, 7, 1, 9, 6], [6, 1, 2, 8, 4, 9, 5, 3, 7], [1, 7, 8, 3, 6, 4, 9, 5, 2], [5, 2, 4, 9, 7, 1, 3, 6, 8], [3, 6, 9, 5, 2, 8, 7, 4, 1], ...
73.583333
113
0.286523
1a4e4f913b585a4e44da7276a8b5f88fb26ad331
599
py
Python
maquinaria/alquileres/serializers/alquileres.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
maquinaria/alquileres/serializers/alquileres.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
maquinaria/alquileres/serializers/alquileres.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
"""Serializers Alquileres""" #Django REST Framework from rest_framework import serializers #Model from maquinaria.alquileres.models import Alquiler from maquinaria.maquinas.models import Maquina
17.617647
59
0.724541
1a4f33963cc653151cea3eb94ee867a8bc500078
660
py
Python
test_RTC_DS1307.py
LeMaker/LeScratch
0dde167925afe40cf63cf8ccba13321761494c25
[ "Apache-2.0" ]
4
2015-06-23T17:57:47.000Z
2016-02-15T12:52:46.000Z
test_RTC_DS1307.py
LeMaker/LeScratch
0dde167925afe40cf63cf8ccba13321761494c25
[ "Apache-2.0" ]
1
2021-08-18T03:17:45.000Z
2021-08-18T03:17:45.000Z
test_RTC_DS1307.py
LeMaker/LeScratch
0dde167925afe40cf63cf8ccba13321761494c25
[ "Apache-2.0" ]
4
2015-07-13T14:43:24.000Z
2015-12-25T09:14:50.000Z
#!/usr/bin/env python # # Test RTC_DS1307 import sys import time import datetime import RTC_DS1307 # Main Program print "Program Started at:"+ time.strftime("%Y-%m-%d %H:%M:%S") filename = time.strftime("%Y-%m-%d%H:%M:%SRTCTest") + ".txt" starttime = datetime.datetime.utcnow() ds1307 = RTC_DS1307.RTC_DS1307(2, 0x...
18.333333
75
0.692424
1a4fe40aa6eef969719ab20b34d1e9156144719c
4,536
py
Python
VS State and Virtual IP Info/avi_virtual_service_info.py
jagmeetsingh91/AviSDK-Scripts
371c9dadc561efe5087e57beac8b24191d48834d
[ "Apache-2.0" ]
null
null
null
VS State and Virtual IP Info/avi_virtual_service_info.py
jagmeetsingh91/AviSDK-Scripts
371c9dadc561efe5087e57beac8b24191d48834d
[ "Apache-2.0" ]
null
null
null
VS State and Virtual IP Info/avi_virtual_service_info.py
jagmeetsingh91/AviSDK-Scripts
371c9dadc561efe5087e57beac8b24191d48834d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Created on Nov 14, 2017 # @author: aziz@avinetworks.com, jagmeet@avinetworks.com # # AVISDK based Script to get the status and configuration information of the Virtual Services # # Requires AVISDK ("pip install avisdk") and PrettyTable ("pip install PrettyTable") # Usage:- python avi_virtual_s...
37.8
111
0.592813
1a5078f614596e83a998507f278a0b9bd0a27b7f
1,035
py
Python
tomograph/transform.py
fkokosinski/tomograph
4e988e37441efb94d7010e3f1e95aa8519a5a686
[ "MIT" ]
4
2019-06-22T22:33:52.000Z
2021-04-21T09:17:26.000Z
tomograph/transform.py
fkokosinski/tomograph
4e988e37441efb94d7010e3f1e95aa8519a5a686
[ "MIT" ]
null
null
null
tomograph/transform.py
fkokosinski/tomograph
4e988e37441efb94d7010e3f1e95aa8519a5a686
[ "MIT" ]
null
null
null
import numpy as np def projective(coords): """ Convert 2D cartesian coordinates to homogeneus/projective. """ num = np.shape(coords)[0] w = np.array([[1], ]*num) return np.append(coords, w, axis=1) def cartesian(coords): """ Convert 2D homogeneus/projective coordinates to cartesian. """ ret...
21.5625
70
0.593237
1a50ac06cbf925305c38c7dc470aa1b2a01208f1
316
py
Python
tvl_backends/tvl-backends-nvdec/tests/test_nvdec.py
ashwhall/tvl
78fa8d2908d8eac8a032273d3142ab530cee1a33
[ "Apache-2.0" ]
21
2019-02-28T02:58:21.000Z
2021-06-02T03:36:34.000Z
tvl_backends/tvl-backends-nvdec/tests/test_nvdec.py
ashwhall/tvl
78fa8d2908d8eac8a032273d3142ab530cee1a33
[ "Apache-2.0" ]
25
2019-02-22T11:39:34.000Z
2021-06-02T00:12:26.000Z
tvl_backends/tvl-backends-nvdec/tests/test_nvdec.py
ashwhall/tvl
78fa8d2908d8eac8a032273d3142ab530cee1a33
[ "Apache-2.0" ]
6
2019-05-31T02:06:14.000Z
2021-07-14T06:27:17.000Z
import torch from tvl_backends.nvdec import nv12_to_rgb
22.571429
76
0.60443
1a50bdf63d5b3a9d4ad0df4d1fa835d50376c8f8
3,289
py
Python
agent/dxagent.py
Advanced-Observability/dxagent
552c50f465e3389a2784d9a459308693ce29315a
[ "MIT" ]
3
2021-11-13T16:41:00.000Z
2022-02-01T12:04:39.000Z
agent/dxagent.py
Advanced-Observability/dxagent
552c50f465e3389a2784d9a459308693ce29315a
[ "MIT" ]
null
null
null
agent/dxagent.py
Advanced-Observability/dxagent
552c50f465e3389a2784d9a459308693ce29315a
[ "MIT" ]
1
2021-06-19T13:45:16.000Z
2021-06-19T13:45:16.000Z
""" dxagent.py This file contains the core of dxagent @author: K.Edeline """ import sched import time import signal import importlib from .constants import AGENT_INPUT_PERIOD from .core.ios import IOManager from .core.daemon import Daemon from .input.sysinfo import SysInfo from .input.bm_input import BMWatcher ...
25.897638
73
0.631803
1a5399afafee0730303e2ab23186b2faba652525
2,410
py
Python
app/models.py
SFC-foundations/SFC-website
59f001bac558c0fd9b3eb17e41cc054b4de59e04
[ "MIT" ]
null
null
null
app/models.py
SFC-foundations/SFC-website
59f001bac558c0fd9b3eb17e41cc054b4de59e04
[ "MIT" ]
null
null
null
app/models.py
SFC-foundations/SFC-website
59f001bac558c0fd9b3eb17e41cc054b4de59e04
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone import os #BLOGS #News #EVENT
31.298701
88
0.705394
1a540e8d050b4c621923140a81a1cbce0129a5cb
1,794
py
Python
script/generate_default_repositories.py
peyanski/documentation
548f91b4391c9ebc7a12a285ea667f64e961760f
[ "MIT" ]
null
null
null
script/generate_default_repositories.py
peyanski/documentation
548f91b4391c9ebc7a12a285ea667f64e961760f
[ "MIT" ]
null
null
null
script/generate_default_repositories.py
peyanski/documentation
548f91b4391c9ebc7a12a285ea667f64e961760f
[ "MIT" ]
1
2021-08-15T02:57:02.000Z
2021-08-15T02:57:02.000Z
import requests import json import os from github import Github BASE = """--- id: default_repositories title: Default repositories description: "Default repositories in HACS" --- <!-- The content of this file is autogenerated during build with script/generate_default_repositories.py --> """ github = Github(os.environ...
38.170213
114
0.688406
1a5498f81765fb1eac207c52c6344cd3eedbeb35
164
py
Python
jp.atcoder/abc005/abc005_2/26220615.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc005/abc005_2/26220615.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc005/abc005_2/26220615.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys import typing main()
13.666667
47
0.536585
1a54b28acedd9ff633d1db4868301520a6ba9dcb
748
py
Python
List Events.py
hcaushi/higgs-hunters
f433a71ab01470fb6e72ebd8b69e697e77ae3c94
[ "MIT" ]
null
null
null
List Events.py
hcaushi/higgs-hunters
f433a71ab01470fb6e72ebd8b69e697e77ae3c94
[ "MIT" ]
null
null
null
List Events.py
hcaushi/higgs-hunters
f433a71ab01470fb6e72ebd8b69e697e77ae3c94
[ "MIT" ]
null
null
null
import csv import sys #This program was written in Python 3.6.3 by Henry Caushi. You are free to use it for any reason, without my permission, without having to inform myself or anyone else #This program was was written to aid other programs, by providing a list of all event IDs so that they appear only once #List o...
27.703704
167
0.713904
1a550f338065214a5625283d1ea0bc348f1499f6
268
py
Python
custom_latex_cell_style/scenario2/ipython_nbconvert_config.py
isabella232/nbconvert-examples
039724f4251cc8183f85534785fbee14809248ac
[ "BSD-3-Clause" ]
120
2015-09-26T22:16:59.000Z
2022-03-14T19:58:46.000Z
custom_latex_cell_style/scenario2/ipython_nbconvert_config.py
tarkantemizoz/nbconvert-examples
039724f4251cc8183f85534785fbee14809248ac
[ "BSD-3-Clause" ]
12
2015-09-23T19:52:38.000Z
2021-08-04T23:30:37.000Z
custom_latex_cell_style/scenario2/ipython_nbconvert_config.py
tarkantemizoz/nbconvert-examples
039724f4251cc8183f85534785fbee14809248ac
[ "BSD-3-Clause" ]
82
2015-12-11T22:04:01.000Z
2021-12-08T07:09:31.000Z
c = get_config() #Export all the notebooks in the current directory to the sphinx_howto format. c.NbConvertApp.notebooks = ['*.ipynb'] c.NbConvertApp.export_format = 'latex' c.NbConvertApp.postprocessor_class = 'PDF' c.Exporter.template_file = 'custom_article.tplx'
29.777778
78
0.779851
1a577854087d8ed49d83c5bd1d4c0683315c68ab
102
py
Python
setup.py
puhoy/django-s3file
6293e991feae77d7e18939770eecd264047bd7c3
[ "MIT" ]
null
null
null
setup.py
puhoy/django-s3file
6293e991feae77d7e18939770eecd264047bd7c3
[ "MIT" ]
null
null
null
setup.py
puhoy/django-s3file
6293e991feae77d7e18939770eecd264047bd7c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup(name='django-s3file', use_scm_version=True)
20.4
49
0.784314
1a57db3282ce89ea3a9210d6d6b1d1169726fdcf
668
py
Python
hard/python3/c0084_440_k-th-smallest-in-lexicographical-order/00_leetcode_0084.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
hard/python3/c0084_440_k-th-smallest-in-lexicographical-order/00_leetcode_0084.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
hard/python3/c0084_440_k-th-smallest-in-lexicographical-order/00_leetcode_0084.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #440. K-th Smallest in Lexicographical Order #Given integers n and k, find the lexicographically k-th smallest integer in the range from 1 to n. #Note: 1 ...
27.833333
111
0.657186
1a58e9cd302698322742d260b397d2fbee2e8755
1,255
py
Python
app/handlers.py
zjurelinac/Bitboard
4e17d04dff92e304e45a5416d7c2f2d927974c52
[ "MIT" ]
null
null
null
app/handlers.py
zjurelinac/Bitboard
4e17d04dff92e304e45a5416d7c2f2d927974c52
[ "MIT" ]
null
null
null
app/handlers.py
zjurelinac/Bitboard
4e17d04dff92e304e45a5416d7c2f2d927974c52
[ "MIT" ]
null
null
null
import logging import traceback import peewee from flask import request from east.exceptions import * from app import app, db print('TESTING') logger = DummyLogger() # logger = logging.getLogger(__name__)
23.679245
117
0.718725
1a5e0de647ef014672a59f0788a74144694185e3
28,438
py
Python
adapter.py
JuliaChae/Waymo-Kitti-Adapter
8b4ed7a183331169be72e0d147f289ef449728f1
[ "MIT" ]
4
2020-10-22T20:41:05.000Z
2021-12-07T02:58:56.000Z
adapter.py
JuliaChae/Waymo-Kitti-Adapter
8b4ed7a183331169be72e0d147f289ef449728f1
[ "MIT" ]
null
null
null
adapter.py
JuliaChae/Waymo-Kitti-Adapter
8b4ed7a183331169be72e0d147f289ef449728f1
[ "MIT" ]
1
2022-02-07T21:24:07.000Z
2022-02-07T21:24:07.000Z
import argparse import os import math # import time import numpy as np import cv2 import matplotlib.pyplot as plt import tensorflow as tf import progressbar from waymo_open_dataset.utils import range_image_utils from waymo_open_dataset.utils import transform_utils from waymo_open_dataset.utils import test_utils from ...
41.88218
153
0.550601
1a5ec4950e6cf0d029663368b47eef30213bdc82
1,924
py
Python
renku/cli/_providers/__init__.py
vigsterkr/renku-python
fb443d752436478a2903c4403ba6c702949b1b59
[ "Apache-2.0" ]
null
null
null
renku/cli/_providers/__init__.py
vigsterkr/renku-python
fb443d752436478a2903c4403ba6c702949b1b59
[ "Apache-2.0" ]
null
null
null
renku/cli/_providers/__init__.py
vigsterkr/renku-python
fb443d752436478a2903c4403ba6c702949b1b59
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 - Swiss Data Science Center (SDSC) # A partnership between cole Polytechnique Fdrale de Lausanne (EPFL) and # Eidgenssische Technische Hochschule Zrich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance ...
34.357143
77
0.660083
1a612743d582b02908a4b3a8f29574ce5358d4cb
865
py
Python
POPGEN/flashpca_to_smartpca.py
Hammarn/Scripts
eb9fb51b614d29aea425168aa16c58410d975f46
[ "MIT" ]
null
null
null
POPGEN/flashpca_to_smartpca.py
Hammarn/Scripts
eb9fb51b614d29aea425168aa16c58410d975f46
[ "MIT" ]
null
null
null
POPGEN/flashpca_to_smartpca.py
Hammarn/Scripts
eb9fb51b614d29aea425168aa16c58410d975f46
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import pandas as pd if __name__ == "__main__": # Command line arguments parser = argparse.ArgumentParser("""Converts FlashPCA output into SmartPCA output """) parser.add_argument("-i", "--input", default = 'king.kin', help="Input file from FlashPCA to conver...
30.892857
88
0.649711
1a62f4164187518caa99367786abcd22a21e6480
1,288
py
Python
registration_app/tests/frontend/test_view.py
radekska/django-network-controller
6bcb847cbe1efa7dee118974de5e49b4f411e5da
[ "MIT" ]
null
null
null
registration_app/tests/frontend/test_view.py
radekska/django-network-controller
6bcb847cbe1efa7dee118974de5e49b4f411e5da
[ "MIT" ]
null
null
null
registration_app/tests/frontend/test_view.py
radekska/django-network-controller
6bcb847cbe1efa7dee118974de5e49b4f411e5da
[ "MIT" ]
null
null
null
import pytest import requests import unittest from django.test import TestCase from django.urls import reverse from django.contrib.auth.models import User from selenium import webdriver from selenium.webdriver.chrome.options import Options from webdriver_manager.chrome import ChromeDriverManager # giving pytest ac...
33.894737
97
0.735248
1a6518f5fb8f864732a99e710e1d698d8dac1476
18,923
py
Python
export_util/normalize.py
amoghmatt/export-lib
ec0a5d3b81116e72cc76f1d16023041ae5df33c7
[ "Apache-2.0" ]
3
2019-05-23T10:56:36.000Z
2020-07-15T14:24:21.000Z
export_util/normalize.py
amoghmatt/export-lib
ec0a5d3b81116e72cc76f1d16023041ae5df33c7
[ "Apache-2.0" ]
1
2019-09-24T08:26:08.000Z
2019-09-24T08:26:08.000Z
export_util/normalize.py
amoghmatt/export-lib
ec0a5d3b81116e72cc76f1d16023041ae5df33c7
[ "Apache-2.0" ]
2
2020-03-26T10:57:50.000Z
2020-09-25T09:56:56.000Z
import collections import schematics from export_util import ( template as tpl, value as val ) __all__ = [ 'Normalizer', 'SchematicsNormalizer', ]
42.051111
119
0.531205
1a65dba3fb6b320ee85ba73a4571435a2d581c12
324
py
Python
gwent/vendor/pygwinc_clone/gwinc/ifo/aLIGO/__init__.py
ark0015/GWDetectorDesignToolkit
6ee2f7a633c973ea10b450257b1ad4dbd0323738
[ "MIT" ]
14
2019-10-16T13:27:19.000Z
2022-03-15T02:14:49.000Z
gwent/vendor/pygwinc_clone/gwinc/ifo/aLIGO/__init__.py
ark0015/GWDetectorDesignToolkit
6ee2f7a633c973ea10b450257b1ad4dbd0323738
[ "MIT" ]
1
2019-09-29T21:21:40.000Z
2019-09-29T21:21:40.000Z
gwent/vendor/pygwinc_clone/gwinc/ifo/aLIGO/__init__.py
ark0015/gwent
6ee2f7a633c973ea10b450257b1ad4dbd0323738
[ "MIT" ]
6
2019-11-27T09:45:31.000Z
2022-03-15T02:14:31.000Z
from gwinc.ifo.noises import *
17.052632
31
0.589506
1a67853ba17830fabf13e15748fa32cd51e99dee
8,397
py
Python
BioSTEAM 2.x.x/biorefineries/TAL/analyze_across_adsorption_design_space.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
2
2020-01-03T21:04:41.000Z
2020-01-09T01:15:48.000Z
BioSTEAM 2.x.x/biorefineries/TAL/analyze_across_adsorption_design_space.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
6
2020-01-03T21:31:27.000Z
2020-02-28T13:53:56.000Z
BioSTEAM 2.x.x/biorefineries/TAL/analyze_across_adsorption_design_space.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
2
2020-01-07T14:04:06.000Z
2020-01-08T23:05:25.000Z
# -*- coding: utf-8 -*- """ Created on Thu Mar 10 13:52:52 2022 @author: sarangbhagwat """ from biorefineries.TAL.system_TAL_adsorption_glucose import * from matplotlib import pyplot as plt import numpy as np column = AC401 #%% Across regeneration fluid velocity and cycle time regen_vels = np.linspace(3., 20., 40...
31.1
115
0.700965
1a6787210bec51c96bf435788743b6ad461d235d
1,700
py
Python
backtracking/python/rat_in_a_maze.py
CHuante/CSCognisanse
df0def906b41bd9651c72c6a76bb2d437eb257c1
[ "MIT" ]
2
2020-08-24T18:39:12.000Z
2020-08-30T06:45:26.000Z
backtracking/python/rat_in_a_maze.py
CHuante/CSCognisanse
df0def906b41bd9651c72c6a76bb2d437eb257c1
[ "MIT" ]
15
2020-08-25T04:29:15.000Z
2021-06-28T18:26:44.000Z
backtracking/python/rat_in_a_maze.py
CHuante/CSCognisanse
df0def906b41bd9651c72c6a76bb2d437eb257c1
[ "MIT" ]
4
2021-06-15T03:56:56.000Z
2021-06-29T07:34:27.000Z
#To solve Rat in a maze problem using backtracking #initializing the size of the maze and soution matrix N = 4 solution_maze = [ [ 0 for j in range(N) ] for i in range(N) ] def is_safe(maze, x, y ): '''A utility function to check if x, y is valid return true if it is valid move, return false otherwise ''' i...
25.757576
69
0.647059
1a67b90817fbafe39b6a3a57235954cc4307f058
1,014
py
Python
locate_cell.py
NCBI-Hackathons/Cells2Image
96fa7e4b3df63b6fecc415412693040bb59ba8d1
[ "MIT" ]
null
null
null
locate_cell.py
NCBI-Hackathons/Cells2Image
96fa7e4b3df63b6fecc415412693040bb59ba8d1
[ "MIT" ]
1
2018-03-21T15:16:40.000Z
2018-03-21T17:59:01.000Z
locate_cell.py
NCBI-Hackathons/Cells2Image
96fa7e4b3df63b6fecc415412693040bb59ba8d1
[ "MIT" ]
3
2018-03-19T16:22:42.000Z
2018-03-20T16:45:27.000Z
import matplotlib.pyplot as plt import numpy as np from scipy import ndimage import time import skimage.draw import image_data import image_processing as ip if __name__ == "__main__": movgen = image_data.all_movies() for em,movie in enumerate(movgen): framegen = image_data.all_frames(movie) ...
28.166667
106
0.589744
1a68efd44ff26d3fb4f69d27f40c9050e1b02446
875
py
Python
03/main.py
ajouellette/advent-of-code21
910d790ca6ac8c844e277c71d458726ff92a187d
[ "MIT" ]
null
null
null
03/main.py
ajouellette/advent-of-code21
910d790ca6ac8c844e277c71d458726ff92a187d
[ "MIT" ]
null
null
null
03/main.py
ajouellette/advent-of-code21
910d790ca6ac8c844e277c71d458726ff92a187d
[ "MIT" ]
null
null
null
import numpy as np def bin_to_dec(bin_str): """Convert a string of bits to decimal.""" result = 0 for i, bit in enumerate(bin_str[::-1]): result += int(bit) * 2**i return result if __name__ == "__main__": data = [] with open("input", 'r') as file: for line in file: ...
23.026316
48
0.521143
1a6a468047e8c5ffc11c31806e4527c666198d73
5,535
py
Python
firmware/m5mw.micropython.py
RAWSEQ/M5MouseWheel
08e89d5e5e1b60eb40aba81a16d015bc48077a89
[ "MIT" ]
null
null
null
firmware/m5mw.micropython.py
RAWSEQ/M5MouseWheel
08e89d5e5e1b60eb40aba81a16d015bc48077a89
[ "MIT" ]
null
null
null
firmware/m5mw.micropython.py
RAWSEQ/M5MouseWheel
08e89d5e5e1b60eb40aba81a16d015bc48077a89
[ "MIT" ]
2
2021-05-29T16:19:26.000Z
2021-09-05T13:24:02.000Z
from m5stack import * from m5stack_ui import * from uiflow import * from ble import ble_uart import face screen = M5Screen() screen.clean_screen() screen.set_screen_bg_color(0x000000) mb_click = None rb_click = None lb_click = None snd_val = None st_mode = None stval = None prval = None faces_encode = face.get(face...
31.271186
133
0.70551
1a6b813a27738acc87f6c6871852f93cc42f2b00
6,250
py
Python
python/cvi_toolkit/test/test_model.py
sophgo/tpu_compiler
6299ea0a3adae1e5c206bcb9bedf225d16e636db
[ "Apache-2.0" ]
3
2022-03-14T11:47:20.000Z
2022-03-16T01:45:37.000Z
python/cvi_toolkit/test/test_model.py
sophgo/tpu_compiler
6299ea0a3adae1e5c206bcb9bedf225d16e636db
[ "Apache-2.0" ]
null
null
null
python/cvi_toolkit/test/test_model.py
sophgo/tpu_compiler
6299ea0a3adae1e5c206bcb9bedf225d16e636db
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import shutil import argparse import subprocess import numpy as np import contextlib import onnx from cvi_toolkit.utils.mlir_shell import * from cvi_toolkit.utils.intermediate_file import IntermediateFile if __name__ == '__main__': parser = argparse.ArgumentP...
45.955882
126
0.60368
1a6d2d07b82c65f1c0ee7a25477d2386875f5077
12,181
py
Python
main.py
FSlowkey/_csmentor_
19db2e43a9418df9cd999cdeaa5845b4e9b721c8
[ "MIT" ]
null
null
null
main.py
FSlowkey/_csmentor_
19db2e43a9418df9cd999cdeaa5845b4e9b721c8
[ "MIT" ]
null
null
null
main.py
FSlowkey/_csmentor_
19db2e43a9418df9cd999cdeaa5845b4e9b721c8
[ "MIT" ]
null
null
null
import os import webapp2 import data import datetime from google.appengine.ext.webapp import template from google.appengine.api import users from google.appengine.api import images from google.appengine.api import blobstore from google.appengine.ext.webapp import blobstore_handlers from google.appengine.ext import ndb...
33.372603
93
0.628848
1a6e2ebd0bdf9701fe0279dfebacee08eeaaec3c
500
py
Python
tests/class/alias02.py
ktok07b6/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
83
2015-11-30T09:59:13.000Z
2021-08-03T09:12:28.000Z
tests/class/alias02.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
4
2017-02-10T01:43:11.000Z
2020-07-14T03:52:25.000Z
tests/class/alias02.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
11
2016-11-18T14:39:15.000Z
2021-02-23T10:05:20.000Z
from polyphony import testbench def alias02(x): c0 = C(x) c1 = C(x*x) d = D(c0) result0 = d.c.x == x d.c = c1 result1 = d.c.x == x*x c1.x = 0 result2 = d.c.x == 0 d.c = c0 result3 = d.c.x == x return result0 and result1 and result2 and result3 test()
15.625
54
0.54
1a6f01cf5ba5e8856303cd40d4810d936d1cb8f1
7,775
py
Python
text_scrambler/text_scrambler.py
GuillaumeLNB/text-scrambler
3c46b0cb5c516bdb7c93d0ac3e94595870a432b3
[ "MIT" ]
null
null
null
text_scrambler/text_scrambler.py
GuillaumeLNB/text-scrambler
3c46b0cb5c516bdb7c93d0ac3e94595870a432b3
[ "MIT" ]
null
null
null
text_scrambler/text_scrambler.py
GuillaumeLNB/text-scrambler
3c46b0cb5c516bdb7c93d0ac3e94595870a432b3
[ "MIT" ]
null
null
null
import inspect import os import sys from random import choice from typing import List __author__ = "GLNB" __copyright__ = "GLNB" __license__ = "mit" try: from .dictionaries import invisible_chars, dict_latin except ImportError: from dictionaries import invisible_chars, dict_latin __location__ = os.path.join...
33.951965
265
0.532862
1a7483bf107ea0fb77bb68f2d2dcf10700bcb562
443
py
Python
12_find the output/03_In Python/01_GeeksForGeeks/02_Set two/problem_2.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
1
2021-11-16T14:14:38.000Z
2021-11-16T14:14:38.000Z
12_find the output/03_In Python/01_GeeksForGeeks/02_Set two/problem_2.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
null
null
null
12_find the output/03_In Python/01_GeeksForGeeks/02_Set two/problem_2.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
null
null
null
for i in range(2): print(i) # print 0 then 1 for i in range(4,6): print (i) # print 4 then 5 """ Explanation: If only single argument is passed to the range method, Python considers this argument as the end of the range and the default start value of range is 0. So, it will print all the numbers starting from 0 an...
36.916667
98
0.742664
1a74c0efdf419694e46cd14eaaab1955587849bb
1,709
py
Python
bin/terminology.py
cedzz/python-patterns
7bd887d83f1081f5f00f199988736e452c2fea74
[ "MIT" ]
631
2018-01-31T14:55:59.000Z
2022-03-29T20:19:36.000Z
bin/terminology.py
cedzz/python-patterns
7bd887d83f1081f5f00f199988736e452c2fea74
[ "MIT" ]
11
2018-02-06T10:46:57.000Z
2022-03-18T11:31:31.000Z
bin/terminology.py
cedzz/python-patterns
7bd887d83f1081f5f00f199988736e452c2fea74
[ "MIT" ]
74
2018-02-04T08:55:37.000Z
2022-03-30T20:30:50.000Z
#!/usr/bin/env python3 """Count the frequency of various phrases, given the path to the Python PEPs. In Python PEPs, the opposite of subclass is almost always base class just remember that the builtin is named super(), not base()! Stats: 216 base class 0 child class 10 derived class 12 parent class 372 subc...
26.703125
142
0.59684
1a7607520d4b5dd399a1eb2353fdc3d3eed8595e
2,296
py
Python
sources/tests/test_regionsweep.py
tipech/OverlapGraph
0aa132802f2e174608ce33c6bfc24ff14551bf4a
[ "MIT" ]
null
null
null
sources/tests/test_regionsweep.py
tipech/OverlapGraph
0aa132802f2e174608ce33c6bfc24ff14551bf4a
[ "MIT" ]
1
2018-10-07T08:06:01.000Z
2018-10-07T08:06:01.000Z
sources/tests/test_regionsweep.py
tipech/OverlapGraph
0aa132802f2e174608ce33c6bfc24ff14551bf4a
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Unit tests for Generalized One-Pass Sweep-line Algorithm - test_regionsweep_simple - test_regionsweep_random """ from typing import List from unittest import TestCase from sources.algorithms import \ RegionSweep, RegionSweepDebug, RegionSweepOverlaps from sources.core import \ Re...
36.444444
109
0.655488
1a770b7b2184cec2d0be10a14b82d524840dca04
1,566
py
Python
rotkehlchen/externalapis/bisq_market.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
137
2018-03-05T11:53:29.000Z
2019-11-03T16:38:42.000Z
rotkehlchen/externalapis/bisq_market.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
385
2018-03-08T12:43:41.000Z
2019-11-10T09:15:36.000Z
rotkehlchen/externalapis/bisq_market.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
59
2018-03-08T10:08:27.000Z
2019-10-26T11:30:44.000Z
import json import requests from rotkehlchen.assets.asset import Asset from rotkehlchen.constants.timing import DEFAULT_TIMEOUT_TUPLE from rotkehlchen.errors.misc import RemoteError from rotkehlchen.errors.serialization import DeserializationError from rotkehlchen.history.deserialization import deserialize_price from...
35.590909
95
0.713921
1a7735124d5e69d466b80a312a23be896f940f79
505
py
Python
game.py
pricob/Strategy-Game
df9011b87b6521d1bb156e512eeb120e0b09962e
[ "MIT" ]
null
null
null
game.py
pricob/Strategy-Game
df9011b87b6521d1bb156e512eeb120e0b09962e
[ "MIT" ]
null
null
null
game.py
pricob/Strategy-Game
df9011b87b6521d1bb156e512eeb120e0b09962e
[ "MIT" ]
null
null
null
if __name__ == "__main__": game_main()
24.047619
48
0.625743
1a77e8d22e2de7b69e6a81de466c1158f6d73dc8
1,888
py
Python
catalyst/contrib/scripts/tests/test_tag2label.py
ferrine/catalyst
b5bc4fb5f692e1fde2d95ef4a534296dccd0f717
[ "MIT" ]
null
null
null
catalyst/contrib/scripts/tests/test_tag2label.py
ferrine/catalyst
b5bc4fb5f692e1fde2d95ef4a534296dccd0f717
[ "MIT" ]
null
null
null
catalyst/contrib/scripts/tests/test_tag2label.py
ferrine/catalyst
b5bc4fb5f692e1fde2d95ef4a534296dccd0f717
[ "MIT" ]
null
null
null
import shutil from pathlib import Path from ..tag2label import prepare_df_from_dirs
26.591549
59
0.635593
1a78717f3ade0f1b49b87652920497f50424fe03
387
py
Python
src/elementary_flask/components/general/favicon.py
xaled/flaskly
2ed66d89e42afba830d6c73c9f70f00d1dcac573
[ "MIT" ]
null
null
null
src/elementary_flask/components/general/favicon.py
xaled/flaskly
2ed66d89e42afba830d6c73c9f70f00d1dcac573
[ "MIT" ]
null
null
null
src/elementary_flask/components/general/favicon.py
xaled/flaskly
2ed66d89e42afba830d6c73c9f70f00d1dcac573
[ "MIT" ]
null
null
null
__all__ = ['FavIcon'] from dataclasses import dataclass, field from html import escape as html_escape
25.8
105
0.674419
1a79df4bedf9addcf7ba1bf876755a8c99a23c61
1,102
py
Python
assets/urls.py
ChanTerelLy/broker-account-analist
a723c83fe9a924905eb0754b4acb1231b31f9c87
[ "MIT" ]
null
null
null
assets/urls.py
ChanTerelLy/broker-account-analist
a723c83fe9a924905eb0754b4acb1231b31f9c87
[ "MIT" ]
11
2021-02-21T19:39:41.000Z
2021-06-13T16:29:47.000Z
assets/urls.py
ChanTerelLy/broker-account-analist
a723c83fe9a924905eb0754b4acb1231b31f9c87
[ "MIT" ]
2
2021-11-16T16:31:37.000Z
2022-02-11T02:55:37.000Z
from django.conf.urls import url from django.contrib.auth.decorators import login_required from django.urls import path from django.views.generic import RedirectView from .views import * urlpatterns = [ path('', login_required(assets), name='home'), path('assets/', login_required(assets), name='assets'), ...
44.08
105
0.725045
1a7a75323af52a5c4b5c6794853199c02e971141
616
py
Python
chapter4/chapter4_pydantic_types_01.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
107
2021-03-26T20:18:51.000Z
2022-03-26T03:38:08.000Z
chapter4/chapter4_pydantic_types_01.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
4
2021-06-09T08:48:21.000Z
2021-12-27T09:04:43.000Z
chapter4/chapter4_pydantic_types_01.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
58
2021-03-12T20:51:19.000Z
2022-03-27T15:49:49.000Z
from pydantic import BaseModel, EmailStr, HttpUrl, ValidationError # Invalid email try: User(email="jdoe", website="https://www.example.com") except ValidationError as e: print(str(e)) # Invalid URL try: User(email="jdoe@example.com", website="jdoe") except ValidationError as e: print(str(e)) # V...
22.814815
140
0.704545
1a7c20d2c7403ba77a9361f7048f0edc3fee0e49
226
py
Python
webware/Tests/TestSessions/Transaction.py
PeaceWorksTechnologySolutions/w4py3
7f9e7088034e3e3ac53158edfa4f377b5b2f45fe
[ "MIT" ]
11
2020-10-18T07:33:56.000Z
2021-09-27T21:03:38.000Z
webware/Tests/TestSessions/Transaction.py
PeaceWorksTechnologySolutions/w4py3
7f9e7088034e3e3ac53158edfa4f377b5b2f45fe
[ "MIT" ]
9
2020-01-03T18:58:25.000Z
2020-01-09T18:36:23.000Z
webware/Tests/TestSessions/Transaction.py
PeaceWorksTechnologySolutions/w4py3
7f9e7088034e3e3ac53158edfa4f377b5b2f45fe
[ "MIT" ]
4
2020-06-30T09:41:56.000Z
2021-02-20T13:48:08.000Z
""""Mock Webware Transaction class.""" from .Application import Application
17.384615
41
0.69469
1a7dedfc90a55341231451d1bcca08ff107c5213
2,517
py
Python
src/KENN2/layers/Kenn.py
DanieleAlessandro/KENN2
949620ca1734e85239115954b88370393d97a42e
[ "BSD-3-Clause" ]
6
2020-12-23T11:56:14.000Z
2022-02-10T10:28:09.000Z
src/KENN2/layers/Kenn.py
DanieleAlessandro/KENN2
949620ca1734e85239115954b88370393d97a42e
[ "BSD-3-Clause" ]
null
null
null
src/KENN2/layers/Kenn.py
DanieleAlessandro/KENN2
949620ca1734e85239115954b88370393d97a42e
[ "BSD-3-Clause" ]
1
2021-03-20T16:18:34.000Z
2021-03-20T16:18:34.000Z
import tensorflow as tf from KENN2.layers.residual.KnowledgeEnhancer import KnowledgeEnhancer
38.136364
131
0.680572
1a7fc96b729905953b1c7215ffb1a13a615d4713
518
py
Python
babysteps/6.combine_strings.py
mvoltz/realpython
622d700721d8475b1e81964d14c781e7936d120f
[ "BSD-2-Clause" ]
null
null
null
babysteps/6.combine_strings.py
mvoltz/realpython
622d700721d8475b1e81964d14c781e7936d120f
[ "BSD-2-Clause" ]
null
null
null
babysteps/6.combine_strings.py
mvoltz/realpython
622d700721d8475b1e81964d14c781e7936d120f
[ "BSD-2-Clause" ]
null
null
null
# called concatenation sometimes.. str1 = 'abra, ' str2 = 'cadabra. ' str3 = 'i wanna reach out and grab ya.' combo = str1 + str1 + str2 + str3 # you probably don't remember the song. print(combo) # you can also do it this way print('I heat up', '\n', "I can't cool down", '\n', 'my life is spinning', '\n', 'round...
25.9
99
0.660232
1a806f8b240d5ea2934fa21a668326f3e4f866cb
14,756
py
Python
lake/modules/strg_RAM.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
null
null
null
lake/modules/strg_RAM.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
null
null
null
lake/modules/strg_RAM.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
null
null
null
from lake.top.memory_interface import MemoryPort, MemoryPortType from lake.top.memory_controller import MemoryController from kratos import * from lake.attributes.config_reg_attr import ConfigRegAttr from lake.passes.passes import lift_config_reg from lake.modules.reg_fifo import RegFIFO import kratos as kts if __na...
41.683616
109
0.553131
1a82bd2a3228a557a4e93765d69c4bc3cf1313d3
3,781
py
Python
mdot_rest/migrations/0002_auto_20150722_2054.py
uw-it-aca/mdot-rest
3f5aa88ae2ac9693f283b8843ac8998b10dc7bb8
[ "Apache-2.0" ]
null
null
null
mdot_rest/migrations/0002_auto_20150722_2054.py
uw-it-aca/mdot-rest
3f5aa88ae2ac9693f283b8843ac8998b10dc7bb8
[ "Apache-2.0" ]
67
2015-07-23T23:22:14.000Z
2022-02-04T21:39:43.000Z
mdot_rest/migrations/0002_auto_20150722_2054.py
uw-it-aca/mdot-rest
3f5aa88ae2ac9693f283b8843ac8998b10dc7bb8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
34.063063
160
0.545887
1a854c8245d49247df7634f7b623ae8c8ca9bc39
1,145
py
Python
TEMP_PYTHON/lruCache.py
Tianyi6679/mincemeatpy
d0003ffb419417ba49413289ff3ec7bce17423d6
[ "MIT" ]
3
2019-11-05T00:18:33.000Z
2019-11-05T09:13:38.000Z
map-reduce with caching on HDFS/TEMP_PYTHON/lruCache.py
Tianyi6679/lightweight-MapReduce
d0003ffb419417ba49413289ff3ec7bce17423d6
[ "MIT" ]
null
null
null
map-reduce with caching on HDFS/TEMP_PYTHON/lruCache.py
Tianyi6679/lightweight-MapReduce
d0003ffb419417ba49413289ff3ec7bce17423d6
[ "MIT" ]
1
2020-02-16T04:58:46.000Z
2020-02-16T04:58:46.000Z
from functools4 import lru_cache import pickle import copy # @lru_cache(maxsize=16) # def fib(n): # return n # # for x in range(16): # fib(x) # print(fib.cache_info()) # # for x in range(16): # fib(x) # print(fib.cache_info()) # # result=fib.get_cache_dictionary() # result_1=fib.get_cache_1() # result_2=fib....
16.357143
63
0.684716
1a856cc906b1b3e3c1fa8cb307bd1067018e1f8e
4,761
py
Python
sandbox/addcoord.py
cmrajan/pygslib
acdf96d9ec17658f18fe9f078104c6259b479f52
[ "MIT" ]
94
2015-10-23T20:35:26.000Z
2022-03-23T08:24:49.000Z
sandbox/addcoord.py
kaufmanno/pygslib
7fb0c201eba6304b1914cf88a437aa9dc42e7021
[ "MIT" ]
55
2016-09-19T17:20:46.000Z
2022-03-20T03:44:01.000Z
sandbox/addcoord.py
kaufmanno/pygslib
7fb0c201eba6304b1914cf88a437aa9dc42e7021
[ "MIT" ]
47
2016-03-31T08:17:47.000Z
2022-03-18T02:35:33.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python # using naming on http://www.gslib.com/gslib_help/programs.html import subprocess import copy import pandas as pd import pygslib import numpy as np import os __addcoord_par = \ """ Parameters for ADDCOORD *********************** START O...
32.834483
123
0.543583
1a87c649fc76316f54ba7bd2a44723ae18e4d1cd
1,254
py
Python
disarm_gears/validators/array_validators.py
disarm-platform/disarm-gears
d9f747687e632102a4ef2821b33936daacb01b6c
[ "MIT" ]
null
null
null
disarm_gears/validators/array_validators.py
disarm-platform/disarm-gears
d9f747687e632102a4ef2821b33936daacb01b6c
[ "MIT" ]
11
2019-02-28T00:18:47.000Z
2020-02-22T20:36:00.000Z
disarm_gears/validators/array_validators.py
disarm-platform/disarm-gears
d9f747687e632102a4ef2821b33936daacb01b6c
[ "MIT" ]
null
null
null
import numpy as np def validate_1d_array(x, size=None): '''Validate type and dimensions of an object x.''' assert isinstance(x, np.ndarray), 'Expecting a numpy array.' assert x.ndim == 1, 'Expecting a one-dimensional array.' if size is not None: assert x.size == size, 'Array size is differen...
31.35
84
0.678628
1a88fb50886f9268470f8318d9b9f7b3031433b6
6,629
py
Python
tests/functional/gcs/test_collections.py
sirosen/globus-sdk-python
0d4e420f52329ab8f993bfe6f86729fb1ef07570
[ "ECL-2.0", "Apache-2.0" ]
47
2016-04-13T21:28:19.000Z
2022-02-28T18:28:18.000Z
tests/functional/gcs/test_collections.py
sirosen/globus-sdk-python
0d4e420f52329ab8f993bfe6f86729fb1ef07570
[ "ECL-2.0", "Apache-2.0" ]
314
2016-04-12T15:07:32.000Z
2022-03-14T21:00:50.000Z
tests/functional/gcs/test_collections.py
sirosen/globus-sdk-python
0d4e420f52329ab8f993bfe6f86729fb1ef07570
[ "ECL-2.0", "Apache-2.0" ]
36
2016-06-14T14:05:13.000Z
2022-02-18T17:20:51.000Z
import pytest from globus_sdk import GCSAPIError, GuestCollectionDocument, MappedCollectionDocument from tests.common import get_last_request, register_api_route_fixture_file
36.827778
88
0.689848
1a89c7c6d905fb7f8ad81df02cfe9dcabd63ca97
4,168
py
Python
extractocr.py
umd-lib/newspaper-batchload
0897d8526a6ee797540b7ea50c2e114165a8084e
[ "Apache-2.0" ]
1
2017-12-18T09:12:42.000Z
2017-12-18T09:12:42.000Z
extractocr.py
umd-lib/newspaper-batchload
0897d8526a6ee797540b7ea50c2e114165a8084e
[ "Apache-2.0" ]
33
2016-09-19T04:40:49.000Z
2018-04-13T19:37:42.000Z
extractocr.py
umd-lib/newspaper-batchload
0897d8526a6ee797540b7ea50c2e114165a8084e
[ "Apache-2.0" ]
1
2016-12-06T21:57:07.000Z
2016-12-06T21:57:07.000Z
#!/usr/bin/env python3 import argparse import sys import yaml import logging import logging.config from datetime import datetime from classes import pcdm,ocr,util from handler import ndnp import rdflib from rdflib import RDF from lxml import etree as ET from classes.exceptions import RESTAPIException, DataReadExceptio...
32.5625
79
0.600768
1a8a11ef27c7e2aabe226bd0f4e93280790db032
192
py
Python
1101-1200/1121-Divide Array Into Increasing Sequences/1121-Divide Array Into Increasing Sequences.py
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
1101-1200/1121-Divide Array Into Increasing Sequences/1121-Divide Array Into Increasing Sequences.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
1101-1200/1121-Divide Array Into Increasing Sequences/1121-Divide Array Into Increasing Sequences.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
import collections
38.4
82
0.692708
1a8a175fa2387d52d8058ad6b36f147bdb90e616
1,490
py
Python
KnowledgeMapping/SpiderExp/1-Code/dianhua.cn/save_prefix_mysql.py
nickliqian/ralph_doc_to_chinese
be120ce2bb94a8e8395630218985f5e51ae087d9
[ "MIT" ]
8
2018-05-22T01:11:33.000Z
2020-03-19T01:44:55.000Z
KnowledgeMapping/SpiderExp/1-Code/dianhua.cn/save_prefix_mysql.py
yangliangguang/keep_learning
47ab39c726cb28713ad22bf4cf39d6b146715910
[ "MIT" ]
null
null
null
KnowledgeMapping/SpiderExp/1-Code/dianhua.cn/save_prefix_mysql.py
yangliangguang/keep_learning
47ab39c726cb28713ad22bf4cf39d6b146715910
[ "MIT" ]
3
2018-07-25T09:31:53.000Z
2019-09-14T14:05:31.000Z
""" 192.168.70.40mysql """ import os import pymysql # # if __name__ == '__main__': # MySQL print("Connect to mysql...") mysql_conn = pymysql.connect(host='192.168.70.40', port=3306, user='root', passwd='mysql', db='phone_number_info', charset='utf8') mysql_cursor = mysql_conn.cursor() main_...
28.113208
138
0.616107
1a8b18dd5d6a57b2f69ce650aad58222ba730afb
1,788
py
Python
scripts/control/tray_balance/tray_renderer.py
adamheins/planar-playground
24b2eb2e9f50d0ac803539f8860b10dd1a501314
[ "MIT" ]
null
null
null
scripts/control/tray_balance/tray_renderer.py
adamheins/planar-playground
24b2eb2e9f50d0ac803539f8860b10dd1a501314
[ "MIT" ]
null
null
null
scripts/control/tray_balance/tray_renderer.py
adamheins/planar-playground
24b2eb2e9f50d0ac803539f8860b10dd1a501314
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np from mm2d import util
30.305085
100
0.587248
1a8bd1f13f351b7336c171be459cf320b1683b22
4,435
py
Python
src/web/users/forms.py
werelaxe/drapo
5f78da735819200f0e7efa6a5e6b3b45ba6e0d4b
[ "MIT" ]
10
2017-04-15T05:00:17.000Z
2019-08-27T21:08:48.000Z
src/web/users/forms.py
werelaxe/drapo
5f78da735819200f0e7efa6a5e6b3b45ba6e0d4b
[ "MIT" ]
2
2017-10-06T12:35:59.000Z
2018-12-03T07:17:12.000Z
src/web/users/forms.py
werelaxe/drapo
5f78da735819200f0e7efa6a5e6b3b45ba6e0d4b
[ "MIT" ]
4
2017-03-08T21:17:21.000Z
2019-05-10T16:22:58.000Z
from django import forms from django.utils.translation import ugettext_lazy as _
28.429487
121
0.559414
1a8e71aea7b32873518907cb5c906e9645f4d8e0
2,780
py
Python
sample/src/rdt_header.py
PANG-hans/CS305Proj
418b6f205ebb6101ec7445e359ad5df45cfc9d44
[ "MIT" ]
null
null
null
sample/src/rdt_header.py
PANG-hans/CS305Proj
418b6f205ebb6101ec7445e359ad5df45cfc9d44
[ "MIT" ]
null
null
null
sample/src/rdt_header.py
PANG-hans/CS305Proj
418b6f205ebb6101ec7445e359ad5df45cfc9d44
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 """ @Github: https://github.com/Certseeds @Organization: SUSTech @Author: nanoseeds @Date: 2020-07-12 17:46:45 @LastEditors : nanoseeds """ """ CS305_2019F_Remake Copyright (C) 2020 nanoseeds CS305_2019F_Remake is free software: you can redistribute it and/or modify ...
38.611111
114
0.653597
1a8f11a248ca1351bd360d4ea1e5e3435ee8c318
188
py
Python
functions/analytics_worker/test/conftest.py
epiphone/lambda-terraform-analytics
b569ee6a7bcb56c8c3c41b875edd4859350010ee
[ "MIT" ]
null
null
null
functions/analytics_worker/test/conftest.py
epiphone/lambda-terraform-analytics
b569ee6a7bcb56c8c3c41b875edd4859350010ee
[ "MIT" ]
null
null
null
functions/analytics_worker/test/conftest.py
epiphone/lambda-terraform-analytics
b569ee6a7bcb56c8c3c41b875edd4859350010ee
[ "MIT" ]
null
null
null
import os import sys here = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, os.path.join(here, '..', '..', '..', 'test_utils')) from fixtures import event, lambda_context
23.5
70
0.696809
1a9012d3bbaeed3c5502f33b98692347736e7973
213
wsgi
Python
darkweb.wsgi
robopt/Capstone
d0e092ed7f4a2a2fc2ec79bd2fdf06663de19c11
[ "Apache-2.0" ]
5
2016-04-11T20:24:40.000Z
2019-03-11T23:19:13.000Z
darkweb.wsgi
robopt/Capstone
d0e092ed7f4a2a2fc2ec79bd2fdf06663de19c11
[ "Apache-2.0" ]
null
null
null
darkweb.wsgi
robopt/Capstone
d0e092ed7f4a2a2fc2ec79bd2fdf06663de19c11
[ "Apache-2.0" ]
5
2016-04-18T19:08:59.000Z
2019-01-08T20:11:19.000Z
#!/usr/bin/python import sys import logging logging.basicConfig(stream=sys.stderr) sys.path.insert(0,"/var/www/capstone/") #from FlaskApp import app as application #application.secret_key = 'Add your secret key'
23.666667
47
0.779343
1a90e4152f8eb4914f77ba3c276a65abf4a75f61
13,600
py
Python
tests/dialog/test_router.py
uezo/minette-python
dd8cd7d244b6e6e4133c8e73d637ded8a8c6846f
[ "Apache-2.0" ]
31
2017-12-18T15:35:42.000Z
2021-12-16T07:27:33.000Z
tests/dialog/test_router.py
uezo/minette-python
dd8cd7d244b6e6e4133c8e73d637ded8a8c6846f
[ "Apache-2.0" ]
17
2017-07-13T22:25:08.000Z
2020-11-02T14:19:32.000Z
tests/dialog/test_router.py
uezo/minette-python
dd8cd7d244b6e6e4133c8e73d637ded8a8c6846f
[ "Apache-2.0" ]
2
2017-09-14T09:28:35.000Z
2021-01-17T12:31:54.000Z
import sys import os sys.path.append(os.pardir) import pytest from pytz import timezone from minette import DialogRouter, DialogService, EchoDialogService, ErrorDialogService from minette import ( Message, Context, PerformanceInfo, Priority ) def test_init_base(): dr = DialogRouter(timezone=t...
38.857143
98
0.693529
1a931fb1a28cc19934bbc31bca302f6be041992e
4,630
py
Python
manim2/for_tb_videos/chat.py
tigerking/manim2
93e8957e433b8e59acb5a5213a4074ee0125b823
[ "MIT" ]
null
null
null
manim2/for_tb_videos/chat.py
tigerking/manim2
93e8957e433b8e59acb5a5213a4074ee0125b823
[ "MIT" ]
null
null
null
manim2/for_tb_videos/chat.py
tigerking/manim2
93e8957e433b8e59acb5a5213a4074ee0125b823
[ "MIT" ]
null
null
null
from manim2.imports import * ''' Codigo por Miroslav Olsak https://github.com/mkoconnor/manim https://www.youtube.com/user/procdalsinazev/feed '''
34.044118
119
0.714687
1a937cd4db745f3c78096f89dfe2d4c82f2acf4d
1,065
py
Python
scripts/tests.py
hugoren/schedule_client
e5746e9c3e452819ca8e6e38686302bb8d8b6ead
[ "MIT" ]
null
null
null
scripts/tests.py
hugoren/schedule_client
e5746e9c3e452819ca8e6e38686302bb8d8b6ead
[ "MIT" ]
null
null
null
scripts/tests.py
hugoren/schedule_client
e5746e9c3e452819ca8e6e38686302bb8d8b6ead
[ "MIT" ]
null
null
null
import requests import json if __name__ == '__main__': # remote_command() file_sync(target="127.0.0.1", file_name="tests.py")
29.583333
97
0.622535
1a97bc0b24e4089561565f310ab2f569c2a887da
985
py
Python
projectroles/management/commands/syncgroups.py
holtgrewe/sodar_core
116c5c8abc1dea483a640ba68af6d5cf4d27c8d7
[ "MIT" ]
null
null
null
projectroles/management/commands/syncgroups.py
holtgrewe/sodar_core
116c5c8abc1dea483a640ba68af6d5cf4d27c8d7
[ "MIT" ]
null
null
null
projectroles/management/commands/syncgroups.py
holtgrewe/sodar_core
116c5c8abc1dea483a640ba68af6d5cf4d27c8d7
[ "MIT" ]
null
null
null
import logging from django.contrib import auth from django.core.management.base import BaseCommand from django.db import transaction from projectroles.utils import set_user_group User = auth.get_user_model() logger = logging.getLogger(__name__)
25.25641
79
0.581726
1a994d2673e207331e66eaa0919c98e095dffbbc
169
py
Python
config/settings/local.py
MattE-J/django-drf
0471673a544dcf089dac6752689ac2ea7869e633
[ "MIT" ]
null
null
null
config/settings/local.py
MattE-J/django-drf
0471673a544dcf089dac6752689ac2ea7869e633
[ "MIT" ]
null
null
null
config/settings/local.py
MattE-J/django-drf
0471673a544dcf089dac6752689ac2ea7869e633
[ "MIT" ]
null
null
null
from .base import * SECRET_KEY = env('DJANGO_SECRET_KEY' , default='f8$t@ah-8n9fh%1@(&^or#8((8x#+h0^6!#spyf6egk1gs!si7') DEBUG = env.bool('DJANGO_DEBUG', default=True)
33.8
100
0.704142
1a99874718e166ff8a90d8a9ae7cc2d62d45ee11
6,667
py
Python
morphablegraphs/constraints/spatial_constraints/splines/segment_list.py
dfki-asr/morphablegraphs
02c77aab72aa4b58f4067c720f5d124f0be3ea80
[ "MIT" ]
5
2020-03-03T21:07:01.000Z
2021-05-12T16:59:28.000Z
morphablegraphs/constraints/spatial_constraints/splines/segment_list.py
dfki-asr/morphablegraphs
02c77aab72aa4b58f4067c720f5d124f0be3ea80
[ "MIT" ]
null
null
null
morphablegraphs/constraints/spatial_constraints/splines/segment_list.py
dfki-asr/morphablegraphs
02c77aab72aa4b58f4067c720f5d124f0be3ea80
[ "MIT" ]
1
2020-07-20T06:57:08.000Z
2020-07-20T06:57:08.000Z
#!/usr/bin/env python # # Copyright 2019 DFKI GmbH. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merg...
43.292208
177
0.637318
1a9a080b7593d8c6b46cbb28b3da39887e1daca7
5,973
py
Python
edera/exceptions.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
3
2018-11-27T15:45:19.000Z
2018-12-21T20:32:10.000Z
edera/exceptions.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
18
2018-12-02T18:38:59.000Z
2020-02-05T22:09:37.000Z
edera/exceptions.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
null
null
null
""" This module declares all custom exception classes. """ import edera.helpers
23.702381
90
0.612925
1a9b95beef4372766d5b6cf6a163695415727640
1,153
py
Python
src/lib/todo_classes.py
louisroyer/todopy
8aef035bc82b13a8053394e8942c34de72fae3bf
[ "CC0-1.0" ]
null
null
null
src/lib/todo_classes.py
louisroyer/todopy
8aef035bc82b13a8053394e8942c34de72fae3bf
[ "CC0-1.0" ]
2
2020-09-01T12:32:25.000Z
2020-09-01T12:33:11.000Z
src/lib/todo_classes.py
louisroyer/todopy
8aef035bc82b13a8053394e8942c34de72fae3bf
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- '''Classes for todo files.''' # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 if __debug__: if __package__: from . import todo_parser as _todo_parser else: import todo_parser as _todo_parser if __name__ != '__main__': __author__ = 'Loui...
24.020833
67
0.61405
1a9bab58f096f85858252ac66383ad075450f3a8
82
py
Python
qmmm_neuralnets/files/__init__.py
adamduster/qmmm_neuralnets
70f35ec0659e8a424cb66ad874d22232c22fcba5
[ "MIT" ]
null
null
null
qmmm_neuralnets/files/__init__.py
adamduster/qmmm_neuralnets
70f35ec0659e8a424cb66ad874d22232c22fcba5
[ "MIT" ]
1
2021-09-17T18:19:48.000Z
2021-09-17T18:19:48.000Z
qmmm_neuralnets/files/__init__.py
lin-compchem/qmmm_neuralnets
70f35ec0659e8a424cb66ad874d22232c22fcba5
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ """ from .bpsf_keys import * from .h5_file_ops import *
16.4
26
0.670732
1a9c06b409cec023288fe5de8610286e3d8638d4
4,347
py
Python
attendees/persons/admin.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
1
2020-03-26T00:42:04.000Z
2020-03-26T00:42:04.000Z
attendees/persons/admin.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
null
null
null
attendees/persons/admin.py
xjlin0/attendees
3c337ee68c00f17cbbbe26f2e33131e57850e4ed
[ "MIT" ]
null
null
null
from django_summernote.admin import SummernoteModelAdmin from django.contrib.postgres import fields from django_json_widget.widgets import JSONEditorWidget from django.contrib import admin from attendees.occasions.models import * from attendees.whereabouts.models import * from .models import * # Register your models h...
34.776
126
0.707844
1a9cdff5db190924381f2d1339b1a86c96487d13
27,929
py
Python
AnalysisDAFM/program/DAFM/dafm.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
26
2016-09-14T18:15:29.000Z
2021-12-01T20:01:29.000Z
AnalysisDAFM/program/DAFM/dafm.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
122
2017-09-12T15:22:03.000Z
2021-09-27T17:25:08.000Z
AnalysisDAFM/program/DAFM/dafm.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
17
2017-02-16T16:04:41.000Z
2021-02-06T05:36:44.000Z
from sklearn.metrics import mean_squared_error, log_loss from keras.models import Model from keras.models import load_model from keras.layers import Input, Dense from keras.layers.recurrent import SimpleRNN from keras.layers.merge import multiply, concatenate, add from keras import backend as K from keras import initia...
54.655577
269
0.607362
1a9cfbd4589de28828d34cf4701ed63a665c6003
1,423
py
Python
python/misc/initialize.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
null
null
null
python/misc/initialize.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
2
2022-03-10T03:49:14.000Z
2022-03-14T00:49:54.000Z
python/misc/initialize.py
christopher-burke/warmups
140c96ada87ec5e9faa4622504ddee18840dce4a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Initialize. Turn full names into initials. Source: https://edabit.com/challenge/ANsubgd5zPGxov3u8 """ def __initialize(name: str, period: bool=False) -> str: """Turn full name string into a initials string. Private function used by initialize. Arguments: name {[str]}...
23.716667
104
0.613493
1a9e3905097491e316cd401df61464d8541b1d60
7,038
py
Python
examples/shapes_from_glsl/cylinder_shape.py
szabolcsdombi/zengl
2c9c26784285f2f049fb5d6fc9da0ad65d32d52f
[ "MIT" ]
116
2021-10-31T17:24:18.000Z
2022-02-01T05:47:18.000Z
examples/shapes_from_glsl/cylinder_shape.py
szabolcsdombi/zengl
2c9c26784285f2f049fb5d6fc9da0ad65d32d52f
[ "MIT" ]
9
2021-11-12T19:21:33.000Z
2022-01-20T09:48:31.000Z
examples/shapes_from_glsl/cylinder_shape.py
szabolcsdombi/zengl
2c9c26784285f2f049fb5d6fc9da0ad65d32d52f
[ "MIT" ]
3
2021-11-12T18:55:05.000Z
2022-01-19T13:58:26.000Z
import zengl from defaults import defaults from grid import grid_pipeline from window import Window window = Window(1280, 720) ctx = zengl.context() image = ctx.image(window.size, 'rgba8unorm', samples=4) depth = ctx.image(window.size, 'depth24plus', samples=4) image.clear_value = (0.2, 0.2, 0.2, 1.0) ctx.includes[...
38.67033
119
0.483376
1a9fc66dc44361b73876b4bba42e389f64a4a3a0
1,305
py
Python
arq.py
CesarOncala/Exercicios-em-Python
722e20204c8c1e2cb145a955d7ef8f80f73557d7
[ "MIT" ]
null
null
null
arq.py
CesarOncala/Exercicios-em-Python
722e20204c8c1e2cb145a955d7ef8f80f73557d7
[ "MIT" ]
null
null
null
arq.py
CesarOncala/Exercicios-em-Python
722e20204c8c1e2cb145a955d7ef8f80f73557d7
[ "MIT" ]
null
null
null
#Funes:__________________________________________________________________ #Main:____________________________________________________________________ print("Hey") o="s" while o.upper()!="N": cadastro() pesquisa() o=input(print("Continuar com o sistema S/N?")) #[[0 for c in range(3)] for l i...
33.461538
84
0.547126
1aa5cb26673be28d20ce4e1d7ff0bb74d202e4d0
274
py
Python
venv/Lib/site-packages/astroid/__pkginfo__.py
AnxhelaMehmetaj/is219_flask
1e88579f14a96c9826e9452b3c7f8e6477577ef7
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/astroid/__pkginfo__.py
AnxhelaMehmetaj/is219_flask
1e88579f14a96c9826e9452b3c7f8e6477577ef7
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/astroid/__pkginfo__.py
AnxhelaMehmetaj/is219_flask
1e88579f14a96c9826e9452b3c7f8e6477577ef7
[ "BSD-3-Clause" ]
null
null
null
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html # For details: https://github.com/PyCQA/astroid/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt __version__ = "2.11.2" version = __version__
39.142857
85
0.759124
1aa645d6214dc6ac17d39206b4dd6bba8e6281ea
921
py
Python
T_dynamic_programming/problems/A_longest_common_subsequence.py
Princeton21/DSA
0f2321b284fc54f4ddf73733cc1a8d05e549aeea
[ "MIT" ]
58
2021-01-06T10:05:51.000Z
2022-02-10T05:15:19.000Z
T_dynamic_programming/problems/A_longest_common_subsequence.py
Princeton21/DSA
0f2321b284fc54f4ddf73733cc1a8d05e549aeea
[ "MIT" ]
5
2021-02-22T04:14:24.000Z
2021-12-26T09:19:17.000Z
T_dynamic_programming/problems/A_longest_common_subsequence.py
Princeton21/DSA
0f2321b284fc54f4ddf73733cc1a8d05e549aeea
[ "MIT" ]
27
2021-02-09T13:58:33.000Z
2022-03-06T03:48:08.000Z
if __name__ == "__main__": """ from timeit import timeit X = "AGGTAB" Y = "GXTXAYB" print(timeit(lambda: method1(X, Y), number=10000)) # 0.14817858800233807 print( timeit(lambda: method2(X, Y, len(X), len(Y)), number=10000) ) # 0.5299446069984697 """
23.025
77
0.427796
1aa6c9a331682a90ddc2469eb7ca101775ba532a
661
py
Python
AtCoder/ABC057/D.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
1
2018-11-25T04:15:45.000Z
2018-11-25T04:15:45.000Z
AtCoder/ABC057/D.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
null
null
null
AtCoder/ABC057/D.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
2
2018-08-08T13:01:14.000Z
2018-11-25T12:38:36.000Z
N, A, B = map(int, input().split()) v_list = list(map(int, input().split())) v_list.sort(reverse=True) mean_max = sum(v_list[:A]) / A comb = 0 if v_list[0] != v_list[A - 1]: x = v_list.count(v_list[A - 1]) y = v_list[:A].count(v_list[A - 1]) comb = combination(x, y) else: x = v_list.count(v_list[A - ...
22.793103
40
0.534039