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
3533195f13e3ea818f2af16e979fbb241e157d75
6,108
py
Python
MWE/SDHM/sdhm_dpp_exact_sc.py
volpatto/porousdrake
ffc2cadebc0415daa86fbeab130489d095b76193
[ "MIT" ]
1
2020-09-03T14:07:05.000Z
2020-09-03T14:07:05.000Z
MWE/SDHM/sdhm_dpp_exact_sc.py
volpatto/porousdrake
ffc2cadebc0415daa86fbeab130489d095b76193
[ "MIT" ]
null
null
null
MWE/SDHM/sdhm_dpp_exact_sc.py
volpatto/porousdrake
ffc2cadebc0415daa86fbeab130489d095b76193
[ "MIT" ]
1
2020-11-15T18:05:43.000Z
2020-11-15T18:05:43.000Z
from firedrake import * import numpy as np from firedrake.petsc import PETSc from firedrake import COMM_WORLD try: import matplotlib.pyplot as plt plt.rcParams["contour.corner_mask"] = False plt.close("all") except: warning("Matplotlib not imported") nx, ny = 4, 4 Lx, Ly = 1.0, 1.0 quadrilateral = Fa...
30.38806
100
0.58628
3533347e3f6dd109c1cd29acee7a5024f75c5d7b
329
py
Python
data_sets/config.py
davidp94/data-sets
5db986de4ff0e2656cce142541a46e66ca6f02db
[ "MIT" ]
null
null
null
data_sets/config.py
davidp94/data-sets
5db986de4ff0e2656cce142541a46e66ca6f02db
[ "MIT" ]
null
null
null
data_sets/config.py
davidp94/data-sets
5db986de4ff0e2656cce142541a46e66ca6f02db
[ "MIT" ]
null
null
null
"""Definition and configuration of data sets""" import functools from data_sets import data_set def charts_color() -> str: """The color (rgb hex code) to be used in charts""" return '#008000'
20.5625
55
0.680851
3535c2f41fec283317a2615b85df36199539b828
163
py
Python
kafka/test/consume.py
nicovillanueva/docker-kafka
a3f229e9ebe28c947efe2be22bb88e54338c86e7
[ "Apache-2.0" ]
null
null
null
kafka/test/consume.py
nicovillanueva/docker-kafka
a3f229e9ebe28c947efe2be22bb88e54338c86e7
[ "Apache-2.0" ]
null
null
null
kafka/test/consume.py
nicovillanueva/docker-kafka
a3f229e9ebe28c947efe2be22bb88e54338c86e7
[ "Apache-2.0" ]
null
null
null
from kafka import KafkaConsumer consumer = KafkaConsumer('test-topic', bootstrap_servers='localhost:9092') print("listening") for msg in consumer: print(msg)
23.285714
74
0.773006
3535cde306fc5cbd97370f8331149b5039014dd2
9,354
py
Python
recognition/train_utils.py
Queuer/queue-vision
a09cfcad11cb058049893a1ebeb74709e83eab2f
[ "Apache-2.0" ]
null
null
null
recognition/train_utils.py
Queuer/queue-vision
a09cfcad11cb058049893a1ebeb74709e83eab2f
[ "Apache-2.0" ]
1
2016-12-18T16:07:55.000Z
2016-12-18T16:07:55.000Z
recognition/train_utils.py
Queuer/queue-vision
a09cfcad11cb058049893a1ebeb74709e83eab2f
[ "Apache-2.0" ]
null
null
null
import random import numpy as np import tensorflow as tf from recognition.utils import train_utils, googlenet_load try: from tensorflow.models.rnn import rnn_cell except ImportError: rnn_cell = tf.nn.rnn_cell from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops random.seed...
41.758929
120
0.557943
35361b12a2145f1e12f1ea888df65fc33ccd836c
1,627
py
Python
gtbook/linear.py
dellaert/nbdev_test
793932be45ad75f0f1f0a03af6e4ae41e54b7857
[ "Apache-2.0" ]
5
2021-12-19T02:58:48.000Z
2021-12-22T20:12:54.000Z
gtbook/linear.py
dellaert/nbdev_test
793932be45ad75f0f1f0a03af6e4ae41e54b7857
[ "Apache-2.0" ]
2
2022-01-08T14:58:20.000Z
2022-01-10T02:25:31.000Z
gtbook/linear.py
dellaert/nbdev_test
793932be45ad75f0f1f0a03af6e4ae41e54b7857
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: linear.ipynb (unless otherwise specified). __all__ = ['vv', 'denoising_MRF'] # Cell import numpy as np import gtsam from gtsam import noiseModel from .display import show from typing import Dict # Cell def vv(keys_vectors: Dict[int, np.ndarray]): """Create a VectorVal...
29.053571
86
0.598648
3539dc514be01a0a70e432b9eaf2771e8b35648e
899
py
Python
_0697_div3/D_Cleaning_the_Phone.py
mingweihe/codeforces
8395d68a09373775009b76dbde189ce5bbba58ae
[ "MIT" ]
null
null
null
_0697_div3/D_Cleaning_the_Phone.py
mingweihe/codeforces
8395d68a09373775009b76dbde189ce5bbba58ae
[ "MIT" ]
null
null
null
_0697_div3/D_Cleaning_the_Phone.py
mingweihe/codeforces
8395d68a09373775009b76dbde189ce5bbba58ae
[ "MIT" ]
null
null
null
for _ in xrange(int(raw_input())): n, m = map(int, raw_input().split()) A = map(int, raw_input().split()) B = map(int, raw_input().split()) print solve(n, m, A, B)
26.441176
49
0.404894
353a5d55eb876f494195bab8603dd502b77f30e8
1,319
py
Python
xpcs/calc_scattering.py
aryabhatt/xpcs-baseline
ad88044d1ec391dc1dd44d5b8f372a16e5c7d431
[ "BSD-2-Clause" ]
null
null
null
xpcs/calc_scattering.py
aryabhatt/xpcs-baseline
ad88044d1ec391dc1dd44d5b8f372a16e5c7d431
[ "BSD-2-Clause" ]
1
2020-03-23T22:54:40.000Z
2020-03-23T22:54:40.000Z
xpcs/calc_scattering.py
aryabhatt/xpcs-baseline
ad88044d1ec391dc1dd44d5b8f372a16e5c7d431
[ "BSD-2-Clause" ]
4
2019-08-30T12:12:59.000Z
2021-12-28T06:33:07.000Z
#! /usr/bin/env python import mdscatter import numpy as np import h5py import time import os from loader import list_lammps_txt_files, load_lammps_txt from detector import Lambda750k if __name__ == '__main__': wavelen = 0.1127 energy = 1.23984 / wavelen sdd = 4. scale = 28 center = (0, 768)...
25.365385
85
0.611069
353add44ddd63c2400e5193caf4b4d8f081b481a
895
py
Python
sphinxcontrib/collections/drivers/copy_file.py
useblocks/sphinx-collections
4f1fd7d4f4682a2df47cdde98b9668d59b2983ff
[ "MIT" ]
4
2020-05-22T16:22:14.000Z
2021-11-09T11:48:04.000Z
sphinxcontrib/collections/drivers/copy_file.py
useblocks/sphinx-collections
4f1fd7d4f4682a2df47cdde98b9668d59b2983ff
[ "MIT" ]
1
2020-07-10T23:03:24.000Z
2020-07-10T23:03:24.000Z
sphinxcontrib/collections/drivers/copy_file.py
useblocks/sphinx-collections
4f1fd7d4f4682a2df47cdde98b9668d59b2983ff
[ "MIT" ]
1
2020-05-22T17:27:39.000Z
2020-05-22T17:27:39.000Z
import os from shutil import copyfile from sphinxcontrib.collections.drivers import Driver
27.96875
99
0.587709
353b5a343ec76d28979a240a4db7c75dd7f261d3
6,598
py
Python
venv/lib/python3.6/site-packages/ansible_collections/ansible/utils/plugins/action/update_fact.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/ansible/utils/plugins/action/update_fact.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/ansible/utils/plugins/action/update_fact.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type import ast import re from ansible.plugins.action import ActionBase from ansible.module...
35.473118
93
0.507426
353bb0db8607a6842f81b42d90314c743ed67327
936
py
Python
PackageGen.py
Qudix/Buffout4
4ac65dca4854dfcea860cd6f3e2f9b7cf35701c0
[ "MIT" ]
null
null
null
PackageGen.py
Qudix/Buffout4
4ac65dca4854dfcea860cd6f3e2f9b7cf35701c0
[ "MIT" ]
null
null
null
PackageGen.py
Qudix/Buffout4
4ac65dca4854dfcea860cd6f3e2f9b7cf35701c0
[ "MIT" ]
null
null
null
import os import zipfile import zlib if __name__ == "__main__": main()
29.25
92
0.701923
353cbfa860da0589e9ef54e5529ecb9742d22ebd
8,246
py
Python
scripts/extract-traj.py
KeithLabPitt/scripts
a6631736ea2fbcd5ef85d93d793602f746f7277d
[ "MIT" ]
null
null
null
scripts/extract-traj.py
KeithLabPitt/scripts
a6631736ea2fbcd5ef85d93d793602f746f7277d
[ "MIT" ]
null
null
null
scripts/extract-traj.py
KeithLabPitt/scripts
a6631736ea2fbcd5ef85d93d793602f746f7277d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020, Alex M. Maldonado # # 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 right...
35.69697
82
0.576643
353d49fb2aa341e74610eef072c9aede1a4b9a62
3,553
py
Python
examples/M4_competition/evaluate_prophet.py
LeoTafti/darts
210605fafb730de564e3d723ab3919ed94da42b9
[ "Apache-2.0" ]
1
2021-07-15T11:12:05.000Z
2021-07-15T11:12:05.000Z
examples/M4_competition/evaluate_prophet.py
LeoTafti/darts
210605fafb730de564e3d723ab3919ed94da42b9
[ "Apache-2.0" ]
1
2021-02-02T11:22:36.000Z
2021-02-02T11:22:36.000Z
examples/M4_competition/evaluate_prophet.py
LeoTafti/darts
210605fafb730de564e3d723ab3919ed94da42b9
[ "Apache-2.0" ]
null
null
null
"""Evaluating Prophet model on M4 timeseries """ from darts.models import Prophet from darts.utils.statistics import check_seasonality from darts.utils import _build_tqdm_iterator import numpy as np import pandas as pd import pickle as pkl from M4_metrics import owa_m4, mase_m4, smape_m4 if __name__ == "__main__"...
41.313953
97
0.504363
353d634a1acddc64d1cd7c68b17cf48d708bb09b
1,100
py
Python
preprocess/step4/count.py
moore3930/dependency-based-w2v
03edc3e89c4af939a1eae50abc395e5dc53f886c
[ "MIT" ]
11
2017-12-28T12:00:37.000Z
2022-01-18T05:45:12.000Z
preprocess/step4/count.py
njirene/dependency-based-w2v
0b55147e32a856759f7922e1690771c316c5b8e7
[ "MIT" ]
3
2018-07-29T13:42:53.000Z
2018-11-22T07:33:07.000Z
preprocess/step4/count.py
njirene/dependency-based-w2v
0b55147e32a856759f7922e1690771c316c5b8e7
[ "MIT" ]
2
2019-07-27T05:10:22.000Z
2019-10-03T11:33:37.000Z
import codecs import sys import argparse parser = argparse.ArgumentParser(description='manual to this script') parser.add_argument('--file', type=str, default = None) parser.add_argument('--quantity', type=int, default=5785) args = parser.parse_args() output = codecs.open('weightcn.txt', 'w', 'utf-8') dic = {} i = 0 f...
27.5
69
0.516364
353e4f8031534b9754c44cd582947dcb265760b5
16,619
py
Python
pyannote/audio/applications/pyannote_audio.py
kan-cloud/pyannote-audio
5bcc57782849ecfc746e0404e480c262410b38cd
[ "MIT" ]
1
2020-12-01T07:03:01.000Z
2020-12-01T07:03:01.000Z
pyannote/audio/applications/pyannote_audio.py
kan-cloud/pyannote-audio
5bcc57782849ecfc746e0404e480c262410b38cd
[ "MIT" ]
null
null
null
pyannote/audio/applications/pyannote_audio.py
kan-cloud/pyannote-audio
5bcc57782849ecfc746e0404e480c262410b38cd
[ "MIT" ]
5
2020-06-06T23:56:06.000Z
2022-02-21T10:43:10.000Z
#!/usr/bin/env python # encoding: utf-8 # The MIT License (MIT) # Copyright (c) 2019-2020 CNRS # 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 limita...
37.599548
103
0.609363
353e538978effe724514576a6a13f995049887e9
1,352
py
Python
convert_data_to_tfrecords.py
richiesui/Deep-Association-Learning
70157b79f6ffb73aa7115e2a5a641c0cc09dd550
[ "MIT" ]
70
2018-08-23T01:54:37.000Z
2021-09-11T12:54:35.000Z
convert_data_to_tfrecords.py
richiesui/Deep-Association-Learning
70157b79f6ffb73aa7115e2a5a641c0cc09dd550
[ "MIT" ]
1
2019-01-20T14:58:46.000Z
2019-01-21T08:12:36.000Z
convert_data_to_tfrecords.py
yanbeic/Deep-Association-Learning
70157b79f6ffb73aa7115e2a5a641c0cc09dd550
[ "MIT" ]
32
2018-08-24T09:32:38.000Z
2022-02-05T05:59:50.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf import os from datasets import convert_data FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string('data_type', None, 'The type of the dataset to convert, ne...
34.666667
102
0.638314
353e59f2bd97a83046f221148d98e2324a9d87dd
1,933
py
Python
vispy/geometry/tests/test_generation.py
chongxi/vispy
3683ea1f58e43b4aa1b32a3e69656bead8a31e99
[ "BSD-3-Clause" ]
3
2018-05-09T17:55:53.000Z
2019-07-22T09:14:41.000Z
vispy/geometry/tests/test_generation.py
chongxi/vispy
3683ea1f58e43b4aa1b32a3e69656bead8a31e99
[ "BSD-3-Clause" ]
9
2017-04-07T01:44:15.000Z
2018-12-16T20:47:08.000Z
graphViz/vispy/geometry/tests/test_generation.py
onecklam/ethereum-graphviz
6993accf0cb85e23013bf7ae6b04145724a6dbd2
[ "Apache-2.0" ]
1
2021-09-15T08:52:26.000Z
2021-09-15T08:52:26.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. import numpy as np from numpy.testing import assert_array_equal, assert_allclose from vispy.testing import run_tests_if_main from vispy.geometry import (create_box, create_cub...
35.796296
76
0.689602
353f5e1b21c175277d0414b42c4543aa99713967
3,990
py
Python
bico/utils/BICONode.py
gallmerci/bico
b87cee155f64d40118817e888fd783084f04b013
[ "MIT" ]
39
2017-01-02T01:02:58.000Z
2022-02-22T13:58:14.000Z
bico/utils/BICONode.py
gallmerci/bico
b87cee155f64d40118817e888fd783084f04b013
[ "MIT" ]
2
2017-01-06T18:40:42.000Z
2017-01-12T21:49:46.000Z
bico/utils/BICONode.py
gallmerci/bico
b87cee155f64d40118817e888fd783084f04b013
[ "MIT" ]
10
2017-01-02T17:52:02.000Z
2022-02-22T14:07:24.000Z
import logging import numpy as np from bico.geometry.point import Point from bico.nearest_neighbor.base import NearestNeighbor from bico.utils.ClusteringFeature import ClusteringFeature from datetime import datetime from typing import Callable, TextIO, List logger = logging.getLogger(__name__)
42.903226
114
0.582206
354187da39692ce916dbf65d6fc9ecbdceb76905
239
py
Python
pythonScript.py
qinenergy/QinBox
9047d1fc6b7f1796820f13aabc1d7fe20cf8f34d
[ "MIT" ]
null
null
null
pythonScript.py
qinenergy/QinBox
9047d1fc6b7f1796820f13aabc1d7fe20cf8f34d
[ "MIT" ]
null
null
null
pythonScript.py
qinenergy/QinBox
9047d1fc6b7f1796820f13aabc1d7fe20cf8f34d
[ "MIT" ]
null
null
null
""" Lite install NLTK resource """ import nltk dler = nltk.downloader.Downloader() dler._update_index() dler._status_cache['panlex_lite'] = 'installed' # Trick the index to treat panlex_lite as it's already installed. dler.download('all')
26.555556
113
0.761506
3542ab8dbb20886a361a27ff5789ccca3ada3441
1,224
py
Python
py2450/misc.py
sveinrou/py2450
195a649efd282b15b60ee0e3184d096afce5e311
[ "MIT" ]
null
null
null
py2450/misc.py
sveinrou/py2450
195a649efd282b15b60ee0e3184d096afce5e311
[ "MIT" ]
null
null
null
py2450/misc.py
sveinrou/py2450
195a649efd282b15b60ee0e3184d096afce5e311
[ "MIT" ]
null
null
null
import pyvisa
22.666667
114
0.377451
3543867a3c8172578aa9304ce724339a82b0436c
5,406
py
Python
LinkedList/test XOR.py
ikaushikpal/DS-450-python
9466f77fb9db9e6a5bb3f20aa89ba6332f49e848
[ "MIT" ]
3
2021-06-28T12:04:19.000Z
2021-09-07T07:23:41.000Z
LinkedList/test XOR.py
SupriyoDam/DS-450-python
5dc21ce61b3279e9bd9d6ef3ad236667227ca283
[ "MIT" ]
null
null
null
LinkedList/test XOR.py
SupriyoDam/DS-450-python
5dc21ce61b3279e9bd9d6ef3ad236667227ca283
[ "MIT" ]
1
2021-06-28T15:42:55.000Z
2021-06-28T15:42:55.000Z
# import required module import ctypes # create node class # create linked list class # Driver Code # create object obj = XorLinkedList() # insert nodes obj.InsertAtEnd(2) obj.InsertAtEnd(3) obj.InsertAtEnd(4) obj.InsertAtEnd(0) obj.InsertAtEnd(6) obj.InsertAtEnd(55) # display length # pr...
24.026667
81
0.63744
3544ad58108f77d2815d664fdbba023d8958f9ac
354
py
Python
opticmedian/utils/file_reader.py
QuicqDev/OpticRescue
f857e3b770f43958f1d687f164ea896aa5390482
[ "MIT" ]
2
2021-08-09T01:35:06.000Z
2021-08-09T01:37:05.000Z
opticmedian/utils/file_reader.py
QuicqDev/OpticRescue
f857e3b770f43958f1d687f164ea896aa5390482
[ "MIT" ]
8
2021-08-07T15:27:48.000Z
2021-09-05T18:24:29.000Z
opticmedian/utils/file_reader.py
ASH1998/OpticRescue
f857e3b770f43958f1d687f164ea896aa5390482
[ "MIT" ]
1
2021-08-09T01:37:23.000Z
2021-08-09T01:37:23.000Z
""" class to read files in specific ways """ import glob import random
13.615385
50
0.677966
35459007a7ac1087649915a526d0359cf8ca1114
6,335
py
Python
pypiv/velofilter.py
jr7/pypiv
e43f33a905434f57cc7a7d448a63cdab10f4a8e6
[ "BSD-3-Clause" ]
7
2017-04-01T11:13:58.000Z
2020-06-11T19:42:11.000Z
pypiv/velofilter.py
jruebsam/pypiv
e43f33a905434f57cc7a7d448a63cdab10f4a8e6
[ "BSD-3-Clause" ]
2
2019-11-18T17:42:11.000Z
2019-11-26T14:55:41.000Z
pypiv/velofilter.py
jruebsam/pypiv
e43f33a905434f57cc7a7d448a63cdab10f4a8e6
[ "BSD-3-Clause" ]
2
2017-03-21T10:37:06.000Z
2020-06-22T13:29:57.000Z
import numpy as np from scipy.stats import linregress as li from math import exp def calc_factor(field,stepsize=0.01): """ Function for calculation of the summed binning. The returned result is an integral over the binning of the velocities. It is done for the negative and positive half separately. ...
35.391061
100
0.63015
354591beed6d1616f9cdab23d48fdf510319c266
4,347
py
Python
lib/floppy.py
FlorianPoot/Floppy
1b62e5ffce7c45ab82ced3b17172a37431b5c395
[ "MIT" ]
null
null
null
lib/floppy.py
FlorianPoot/Floppy
1b62e5ffce7c45ab82ced3b17172a37431b5c395
[ "MIT" ]
null
null
null
lib/floppy.py
FlorianPoot/Floppy
1b62e5ffce7c45ab82ced3b17172a37431b5c395
[ "MIT" ]
null
null
null
from machine import Pin, UART from grip import Grip import time floppy = Floppy()
25.273256
106
0.501035
35468d2fd3afa4235fa24ef45b8d2a4fc954d35d
891
py
Python
WeatherStationSensorsReader/controllers/wind_measurement_controller.py
weather-station-project/weather-station-sensors-reader
cda7902ee382248b41d14b9a2c0543817decbb4a
[ "MIT" ]
null
null
null
WeatherStationSensorsReader/controllers/wind_measurement_controller.py
weather-station-project/weather-station-sensors-reader
cda7902ee382248b41d14b9a2c0543817decbb4a
[ "MIT" ]
null
null
null
WeatherStationSensorsReader/controllers/wind_measurement_controller.py
weather-station-project/weather-station-sensors-reader
cda7902ee382248b41d14b9a2c0543817decbb4a
[ "MIT" ]
null
null
null
from controllers.controller import Controller from dao.wind_measurement_dao import WindMeasurementDao from sensors.wind_measurement_sensor import WindMeasurementSensor
59.4
132
0.560045
3546d98d4dfa60c74b37af1f19933322143ce069
750
py
Python
Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_Output_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_Output_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Alignment/CommonAlignmentProducer/python/ALCARECOTkAlMinBias_Output_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # AlCaReco for track based alignment using MinBias events OutALCARECOTkAlMinBias_noDrop = cms.PSet( SelectEvents = cms.untracked.PSet( SelectEvents = cms.vstring('pathALCARECOTkAlMinBias') ), outputCommands = cms.untracked.vstring( 'keep *_ALCARECOTk...
35.714286
69
0.729333
3547f355d42e86cac54a2fa19887cfc08f3e0eb5
984
py
Python
dashboard/migrations/0005_usercacherefreshtime.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
32
2016-03-25T01:03:13.000Z
2022-01-15T19:35:42.000Z
dashboard/migrations/0005_usercacherefreshtime.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
4,858
2016-03-03T13:48:30.000Z
2022-03-29T22:09:51.000Z
dashboard/migrations/0005_usercacherefreshtime.py
umarmughal824/micromasters
ea92d3bcea9be4601150fc497302ddacc1161622
[ "BSD-3-Clause" ]
20
2016-08-18T22:07:44.000Z
2021-11-15T13:35:35.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2016-11-04 21:12 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion
33.931034
118
0.644309
35481960fa84aa0d7d74f4ec46b633eb060d28fb
1,282
py
Python
easy/836-Rectangle Overlap.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
2
2020-05-08T02:17:17.000Z
2020-05-17T04:55:56.000Z
easy/836-Rectangle Overlap.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
easy/836-Rectangle Overlap.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
""" https://leetcode.com/problems/rectangle-overlap/ A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner, and (x2, y2) are the coordinates of its top-right corner. Two rectangles overlap if the area of their intersection is positive. To be clear, two rec...
35.611111
174
0.675507
35481fe584384c36a89d37bc77fef6fadfaeafc5
69
py
Python
src/vaccinebot_token.py
DPS0340/vaccine-dispenser
d43f2313de26a5e0a6d15621ffda3d9c505a664c
[ "MIT" ]
2
2021-08-07T17:28:49.000Z
2021-08-08T05:40:06.000Z
src/vaccinebot_token.py
DPS0340/vaccine-dispenser
d43f2313de26a5e0a6d15621ffda3d9c505a664c
[ "MIT" ]
null
null
null
src/vaccinebot_token.py
DPS0340/vaccine-dispenser
d43f2313de26a5e0a6d15621ffda3d9c505a664c
[ "MIT" ]
null
null
null
import os
17.25
41
0.73913
35489b42960c3642fb09f7d87e33db297be3e58b
2,651
py
Python
fluiddb/scripts/testing.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
3
2021-05-10T14:41:30.000Z
2021-12-16T05:53:30.000Z
fluiddb/scripts/testing.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
null
null
null
fluiddb/scripts/testing.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
2
2018-01-24T09:03:21.000Z
2021-06-25T08:34:54.000Z
import logging from fluiddb.data.store import getMainStore from fluiddb.exceptions import FeatureError from fluiddb.model.namespace import NamespaceAPI from fluiddb.model.tag import TagAPI from fluiddb.model.user import UserAPI, getUser TESTING_DATA = { u'users': [ u'testuser1', u'testuser2'], ...
33.987179
78
0.629951
3548f9938f3a5d5177badd45e2cdec5c57b3903f
6,752
py
Python
prediction/main_ml.py
Anukriti12/OptumStratethon2.0
b66dba07735bfa47d99e9907eb8bccdd3b77075c
[ "MIT" ]
1
2021-03-04T05:49:01.000Z
2021-03-04T05:49:01.000Z
prediction/main_ml.py
ankitpriyarup/optum_carewheel
f6c66f293b2980501e8bca8ab7e26ebd3b26cdd1
[ "Apache-2.0" ]
null
null
null
prediction/main_ml.py
ankitpriyarup/optum_carewheel
f6c66f293b2980501e8bca8ab7e26ebd3b26cdd1
[ "Apache-2.0" ]
1
2020-09-13T11:50:49.000Z
2020-09-13T11:50:49.000Z
import urllib3 import pandas as pd import numpy as np import zipfile import copy import pickle import os from esig import tosig from tqdm import tqdm from multiprocessing import Pool from functools import partial from os import listdir from os.path import isfile, join from sklearn.ensemble import RandomForestClassifier...
26.687747
109
0.618928
3549ef84efc1cdf33ac92611c87fc798eee128a4
7,254
py
Python
NeuralNetworkRef/create_pics.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
6
2019-11-04T07:04:24.000Z
2021-02-10T21:35:00.000Z
NeuralNetworkRef/create_pics.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
null
null
null
NeuralNetworkRef/create_pics.py
cmt-qo/cm-flakes
c11f37b50b088cf5c876ef8a6161b7d8d775e99b
[ "MIT" ]
2
2020-08-07T09:29:41.000Z
2021-02-10T21:35:05.000Z
#------------------------------------------------------------------------------- # Filename: create_pics.py # Description: creates square pictures out of a picture which is mostly empty # for training a neural network later. # The parameters to fool around with include: # factor: scaled down image for faster imag...
38.178947
104
0.553763
354a546386259b039381e2eef2517c0b0f0d4c22
150
py
Python
pyomt5/api/__init__.py
paulorodriguesxv/pyomt5
9287395f9f72b049c945e625e3b75c491ae50407
[ "MIT" ]
8
2019-09-06T02:44:04.000Z
2021-07-08T04:10:11.000Z
pyomt5/api/__init__.py
dausech/pyomt5
691dbf7b9732728425e57a7b9055d971838c5c4d
[ "MIT" ]
null
null
null
pyomt5/api/__init__.py
dausech/pyomt5
691dbf7b9732728425e57a7b9055d971838c5c4d
[ "MIT" ]
2
2019-09-10T16:41:16.000Z
2020-10-14T13:49:33.000Z
from .metatradercom import (MetatraderCom, ConnectionTimeoutError, DataNotFoundError) from .timeframe import MT5TimeFrame
37.5
66
0.706667
101e55aaa1d141b7b14f9e29fcdf1c97452cd043
2,600
py
Python
driverapp/models.py
gabyxbinnaeah/Bus-Booking
51d2a521f890986e4e7e17775708cec3cd71d2b4
[ "MIT" ]
null
null
null
driverapp/models.py
gabyxbinnaeah/Bus-Booking
51d2a521f890986e4e7e17775708cec3cd71d2b4
[ "MIT" ]
null
null
null
driverapp/models.py
gabyxbinnaeah/Bus-Booking
51d2a521f890986e4e7e17775708cec3cd71d2b4
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here.
29.545455
102
0.682308
101ea49bb93a3f7ed00d033876886b5bfdafa971
1,870
py
Python
tests/helper.py
MSLNZ/MSL-IO
0b7a1f6ddacc936a98f134fd67f209840a500030
[ "MIT" ]
6
2021-06-27T00:26:09.000Z
2022-02-11T06:04:23.000Z
tests/helper.py
MSLNZ/MSL-IO
0b7a1f6ddacc936a98f134fd67f209840a500030
[ "MIT" ]
null
null
null
tests/helper.py
MSLNZ/MSL-IO
0b7a1f6ddacc936a98f134fd67f209840a500030
[ "MIT" ]
1
2018-03-01T03:11:00.000Z
2018-03-01T03:11:00.000Z
""" Helper functions for the tests """ import os import numpy as np from msl.io import read def read_sample(filename, **kwargs): """Read a file in the 'samples' directory. Parameters ---------- filename : str The name of the file in the samples/ directory Returns ------- A root...
27.5
87
0.617647
101f9a1a4f2942de9319c207e8d75011f9f74070
1,019
py
Python
imagepy/tools/Draw/floodfill_tol.py
adines/imagepy
d7cdf3273d25e06046626ef2ef9200b1846ea49a
[ "BSD-4-Clause" ]
1
2019-02-22T03:09:24.000Z
2019-02-22T03:09:24.000Z
imagepy/tools/Draw/floodfill_tol.py
adines/imagepy
d7cdf3273d25e06046626ef2ef9200b1846ea49a
[ "BSD-4-Clause" ]
null
null
null
imagepy/tools/Draw/floodfill_tol.py
adines/imagepy
d7cdf3273d25e06046626ef2ef9200b1846ea49a
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 19 17:35:09 2016 @author: yxl """ from imagepy.core.engine import Tool import numpy as np from imagepy.core.manager import ColorManager from imagepy.core.draw.fill import floodfill
26.815789
87
0.557409
10204734fd1c1eef0317965dd5d5dbfb049ba8d9
953
py
Python
authors/apps/articles/signals.py
andela/ah-backend-summer
f842a3e02f8418f123dc5de36809ad67557b1c1d
[ "BSD-3-Clause" ]
1
2019-03-11T12:45:24.000Z
2019-03-11T12:45:24.000Z
authors/apps/articles/signals.py
andela/ah-backend-summer
f842a3e02f8418f123dc5de36809ad67557b1c1d
[ "BSD-3-Clause" ]
53
2019-01-29T08:02:23.000Z
2022-03-11T23:39:37.000Z
authors/apps/articles/signals.py
andela/ah-backend-summer
f842a3e02f8418f123dc5de36809ad67557b1c1d
[ "BSD-3-Clause" ]
5
2019-10-04T07:02:38.000Z
2020-06-11T12:39:22.000Z
"""Signal dispatchers and handlers for the articles module""" from django.db.models.signals import post_save from django.dispatch import receiver, Signal from authors.apps.articles.models import Article # our custom signal that will be sent when a new article is published # we could have stuck to using the post_save ...
36.653846
75
0.736621
1021bc2651a4687c5f86fe5d2e96514c84207cfb
4,923
py
Python
benchmarks/roberta/benchmark_tft.py
legacyai/tf-transformers
65a5f9a4bcb3236483daa598a37b91673f56cb97
[ "Apache-2.0" ]
116
2021-03-15T09:48:41.000Z
2022-03-24T05:15:51.000Z
benchmarks/roberta/benchmark_tft.py
legacyai/tf-transformers
65a5f9a4bcb3236483daa598a37b91673f56cb97
[ "Apache-2.0" ]
4
2021-03-20T11:20:57.000Z
2022-01-05T04:59:07.000Z
benchmarks/roberta/benchmark_tft.py
legacyai/tf-transformers
65a5f9a4bcb3236483daa598a37b91673f56cb97
[ "Apache-2.0" ]
9
2021-03-17T04:14:48.000Z
2021-09-13T07:15:31.000Z
"""TFTBechmark scripts""" import shutil import tempfile import time import tensorflow as tf import tqdm from datasets import load_dataset from transformers import RobertaTokenizerFast from tf_transformers.models import Classification_Model from tf_transformers.models import RobertaModel as Model _ALLOWED_DECODER_TYP...
31.967532
114
0.655495
102307b53d88ad118e69555cc2a3d59eca3bcc56
393
py
Python
Linear Structures/LinkedList/Single Linkedlist/LinkedList Traversal.py
Ash515/PyDataStructures
e8bd4f8866a85482f43a7db11c0db40f1c1151bc
[ "MIT" ]
7
2020-11-24T12:27:11.000Z
2021-09-28T14:51:35.000Z
Linear Structures/LinkedList/Single Linkedlist/LinkedList Traversal.py
Ash515/PyDataStructures
e8bd4f8866a85482f43a7db11c0db40f1c1151bc
[ "MIT" ]
null
null
null
Linear Structures/LinkedList/Single Linkedlist/LinkedList Traversal.py
Ash515/PyDataStructures
e8bd4f8866a85482f43a7db11c0db40f1c1151bc
[ "MIT" ]
null
null
null
ll=LinkedList() ll.Print_ll()
21.833333
40
0.519084
10241faf582974a58757a74fbc6ec5ed03a8cff3
170
py
Python
devlivery/ext/migrate/__init__.py
wlsouza/flasklivery
564c6135d29493ae5efe074488cb0df7f811d889
[ "Unlicense" ]
null
null
null
devlivery/ext/migrate/__init__.py
wlsouza/flasklivery
564c6135d29493ae5efe074488cb0df7f811d889
[ "Unlicense" ]
null
null
null
devlivery/ext/migrate/__init__.py
wlsouza/flasklivery
564c6135d29493ae5efe074488cb0df7f811d889
[ "Unlicense" ]
null
null
null
from flask import Flask from flask_migrate import Migrate from devlivery.ext.db import db migrate = Migrate()
15.454545
33
0.758824
1024a19ea737a54eb4b1646afd282457a464d5aa
1,027
py
Python
src/query_planner/storage_plan.py
alilakda/Eva
e3d447f81e1e47172e21758c059ad6f5ee21ffa4
[ "Apache-2.0" ]
null
null
null
src/query_planner/storage_plan.py
alilakda/Eva
e3d447f81e1e47172e21758c059ad6f5ee21ffa4
[ "Apache-2.0" ]
null
null
null
src/query_planner/storage_plan.py
alilakda/Eva
e3d447f81e1e47172e21758c059ad6f5ee21ffa4
[ "Apache-2.0" ]
1
2020-02-19T02:11:39.000Z
2020-02-19T02:11:39.000Z
from src.models.catalog.video_info import VideoMetaInfo from src.query_planner.abstract_plan import AbstractPlan from src.query_planner.types import PlanNodeType
25.675
78
0.665044
1025728984eda2735c08a9884289c0228f56f366
34
py
Python
env/lib/python3.6/base64.py
xianjunzhengbackup/Cloud-Native-Python
0b74303b444a74210bc2e95f13d17771f6f71583
[ "MIT" ]
2
2020-09-22T14:38:24.000Z
2020-10-30T03:11:36.000Z
SDK/Example/Linkage_demo/work_with_AlwaysAI/pedestrian_tracking_demo/venv/lib/python3.6/base64.py
EyecloudAi/OpenNCC-SDK
efeebfe385a900280de6f46d80bd6fff0416aba3
[ "Apache-2.0" ]
null
null
null
SDK/Example/Linkage_demo/work_with_AlwaysAI/pedestrian_tracking_demo/venv/lib/python3.6/base64.py
EyecloudAi/OpenNCC-SDK
efeebfe385a900280de6f46d80bd6fff0416aba3
[ "Apache-2.0" ]
1
2019-11-21T12:23:41.000Z
2019-11-21T12:23:41.000Z
/usr/local/lib/python3.6/base64.py
34
34
0.794118
10284f0ef7e85d673663fac1fed0f6fb76403071
2,802
py
Python
python-scripts/3nPlus1.py
leo237/scripts
6e530ba4afd89a9747e62f1bd63eb2310791091c
[ "MIT" ]
null
null
null
python-scripts/3nPlus1.py
leo237/scripts
6e530ba4afd89a9747e62f1bd63eb2310791091c
[ "MIT" ]
null
null
null
python-scripts/3nPlus1.py
leo237/scripts
6e530ba4afd89a9747e62f1bd63eb2310791091c
[ "MIT" ]
null
null
null
import logging import matplotlib.pyplot as plt import argparse from typing import List from enum import Enum from enum import Enum def get_arguments(): parser = argparse.ArgumentParser(description='Generate 3n+1 graphs') parser.add_argument('--num', '-n', type=int, help='Generate 3n+1 function till num ', default=30...
23.35
147
0.692363
102bacad1f71192a75efa312e5576727d5d197a4
2,894
py
Python
test/functional/tests/initialize/test_clean_reboot.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
139
2019-03-29T08:01:40.000Z
2022-03-19T01:01:44.000Z
test/functional/tests/initialize/test_clean_reboot.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
604
2019-04-12T14:18:59.000Z
2022-03-31T18:19:56.000Z
test/functional/tests/initialize/test_clean_reboot.py
Ostrokrzew/open-cas-linux
35eb5682c9aae13ee7b44da5acc2dd0b593a0b10
[ "BSD-3-Clause-Clear" ]
64
2019-03-29T08:44:01.000Z
2022-03-30T09:11:30.000Z
# # Copyright(c) 2020-2021 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause-Clear # import os import pytest from api.cas import casadm from api.cas.cache_config import CacheMode from core.test_run import TestRun from storage_devices.disk import DiskTypeSet, DiskType, DiskTypeLowerThan from test_tools.dd impo...
36.175
87
0.685211
102d40488d0cca4d36fca9f9b896d9f118df7173
393
py
Python
4/state/ResultState.py
ytyaru/Pygame.GameState.201707251432
c2a67c9f0c6ff9ee5c495be02d8c775b897f16d2
[ "CC0-1.0" ]
null
null
null
4/state/ResultState.py
ytyaru/Pygame.GameState.201707251432
c2a67c9f0c6ff9ee5c495be02d8c775b897f16d2
[ "CC0-1.0" ]
null
null
null
4/state/ResultState.py
ytyaru/Pygame.GameState.201707251432
c2a67c9f0c6ff9ee5c495be02d8c775b897f16d2
[ "CC0-1.0" ]
null
null
null
import pygame from pygame.locals import * from .GameState import GameState
35.727273
102
0.692112
102e04336b537dbf112a2ddd7fae2de699b6b707
7,093
py
Python
bindgen.py
fitzgen/wasmtime-py
02a2af5e012a44af77690d59fd97df4d3caba962
[ "Apache-2.0" ]
null
null
null
bindgen.py
fitzgen/wasmtime-py
02a2af5e012a44af77690d59fd97df4d3caba962
[ "Apache-2.0" ]
null
null
null
bindgen.py
fitzgen/wasmtime-py
02a2af5e012a44af77690d59fd97df4d3caba962
[ "Apache-2.0" ]
null
null
null
# type: ignore # This is a small script to parse the header files from wasmtime and generate # appropriate function definitions in Python for each exported function. This # also reflects types into Python with `ctypes`. While there's at least one # other generate that does this already it seemed to not quite fit our p...
34.100962
93
0.549556
102e1e5c55ff01d3808c58b77752bddaea6f8b94
1,115
py
Python
Chapter38.ManagedAttributes/3-desc-state-inst.py
mindnhand/Learning-Python-5th
3dc1b28d6e048d512bf851de6c7f6445edfe7b84
[ "MIT" ]
null
null
null
Chapter38.ManagedAttributes/3-desc-state-inst.py
mindnhand/Learning-Python-5th
3dc1b28d6e048d512bf851de6c7f6445edfe7b84
[ "MIT" ]
null
null
null
Chapter38.ManagedAttributes/3-desc-state-inst.py
mindnhand/Learning-Python-5th
3dc1b28d6e048d512bf851de6c7f6445edfe7b84
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #encoding=utf-8 #------------------------------------------------ # Usage: python3 3-desc-state-inst.py # Description: descriptor for attribute intercept #------------------------------------------------ # Client class if __name__ == '__main__': obj = CalcAttrs() print(obj.X, obj....
28.589744
63
0.556951
102f51bc17643b398143c26098d6f0bd199096fd
342
py
Python
src/property_app/app_info.py
almostprod/property-app
2e9dc6c64e7fd91d287fc95e513fa3ab1079fa54
[ "Apache-2.0" ]
2
2020-03-03T16:52:31.000Z
2020-03-17T21:35:30.000Z
src/property_app/app_info.py
amcclosky/property-app
9afb0210739955ff19bfcb477acdbd07521ce851
[ "Apache-2.0" ]
1
2021-05-11T16:54:56.000Z
2021-05-11T16:54:56.000Z
src/property_app/app_info.py
amcclosky/property-app
9afb0210739955ff19bfcb477acdbd07521ce851
[ "Apache-2.0" ]
1
2020-05-04T06:39:35.000Z
2020-05-04T06:39:35.000Z
import time from dataclasses import dataclass from datetime import date, datetime from property_app.config import get_config config = get_config()
20.117647
44
0.75731
1030df14c1adf08ce6691dd030b83b86e5a978e4
133
py
Python
services/explorer/config/gunicorn/config.py
cheperuiz/elasticskill
41d9e72a59468ee2676538a584448d16d59a7c51
[ "MIT" ]
null
null
null
services/explorer/config/gunicorn/config.py
cheperuiz/elasticskill
41d9e72a59468ee2676538a584448d16d59a7c51
[ "MIT" ]
2
2020-09-11T15:10:35.000Z
2022-01-22T10:29:45.000Z
services/explorer/config/gunicorn/config.py
cheperuiz/elasticskill
41d9e72a59468ee2676538a584448d16d59a7c51
[ "MIT" ]
null
null
null
bind = "0.0.0.0:5000" backlog = 2048 workers = 1 worker_class = "sync" threads = 16 spew = False reload = True loglevel = "debug"
11.083333
21
0.661654
103175058f2fa208dcde4dafb16a9cb6d6a48a58
723
py
Python
Boot2Root/hackthebox/Tenten/files/exploit.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
21
2016-02-06T14:30:01.000Z
2020-09-11T05:39:17.000Z
Boot2Root/hackthebox/Tenten/files/exploit.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
null
null
null
Boot2Root/hackthebox/Tenten/files/exploit.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
7
2017-02-02T16:27:02.000Z
2021-04-30T17:14:53.000Z
import requests print """ CVE-2015-6668 Title: CV filename disclosure on Job-Manager WP Plugin Author: Evangelos Mourikis Blog: https://vagmour.eu Plugin URL: http://www.wp-jobmanager.com Versions: <=0.7.25 """ website = raw_input('Enter a vulnerable website: ') filename = raw_input('Enter a file nam...
30.125
124
0.593361
10318f66a573c70a9037cd72320a499bd6bc01f7
1,129
py
Python
setup.py
iomintz/sql-remove-comma
503bb90c1fd3346ea783ef826247a5e44dc7c743
[ "BSD-2-Clause-Patent" ]
null
null
null
setup.py
iomintz/sql-remove-comma
503bb90c1fd3346ea783ef826247a5e44dc7c743
[ "BSD-2-Clause-Patent" ]
null
null
null
setup.py
iomintz/sql-remove-comma
503bb90c1fd3346ea783ef826247a5e44dc7c743
[ "BSD-2-Clause-Patent" ]
null
null
null
#!/usr/bin/env python3 import setuptools setuptools.setup( name='sql-remove-comma', description='remove illegal trailing commas from your SQL code', use_scm_version=True, author='Io Mintz', author_email='io@mintz.cc', long_description=open('README.md').read(), long_description_content_type='text/markdown', li...
26.255814
65
0.672276
1032c536542b9f2909cde345955741bac4143f87
418
py
Python
RQ1and2/code/results/test_all.py
CESEL/BatchBuilderResearch
0a1e3ee095e568fdf2f7ab1ce864efc9b490af6e
[ "MIT" ]
null
null
null
RQ1and2/code/results/test_all.py
CESEL/BatchBuilderResearch
0a1e3ee095e568fdf2f7ab1ce864efc9b490af6e
[ "MIT" ]
null
null
null
RQ1and2/code/results/test_all.py
CESEL/BatchBuilderResearch
0a1e3ee095e568fdf2f7ab1ce864efc9b490af6e
[ "MIT" ]
null
null
null
from utils import project_list from learning import IncrementalLearningModel main()
19.904762
58
0.696172
1033ffe67b91f750cd6a18292a63c21167fe56d7
228
py
Python
src/zebra_refresh.py
r0x73/alfred-zebra
fe802044fdc34172811c77433967bce46f084ed1
[ "MIT" ]
3
2017-08-10T12:54:03.000Z
2018-01-17T08:42:47.000Z
src/zebra_refresh.py
r0x73/alfred-zebra
fe802044fdc34172811c77433967bce46f084ed1
[ "MIT" ]
4
2016-08-03T09:41:06.000Z
2016-09-01T06:34:12.000Z
src/zebra_refresh.py
r0x73/alfred-zebra
fe802044fdc34172811c77433967bce46f084ed1
[ "MIT" ]
null
null
null
import zebra from workflow import Workflow if __name === '__main__': wf = Workflow() wf.cache_data('zebra_all_projects', zebra.get_all_projects()) wf.cache_data('zebra_aliased_activities', zebra.get_aliased_activities())
28.5
75
0.776316
103416f9713f35181916b130993432d39011fa96
10,729
py
Python
car_core/car.py
edwardyehuang/CAR
a9f179ebd9ac38516c9827ca95f1f38a28aa317f
[ "MIT" ]
6
2022-03-15T03:32:35.000Z
2022-03-31T13:43:33.000Z
car_core/car.py
edwardyehuang/CAR
a9f179ebd9ac38516c9827ca95f1f38a28aa317f
[ "MIT" ]
null
null
null
car_core/car.py
edwardyehuang/CAR
a9f179ebd9ac38516c9827ca95f1f38a28aa317f
[ "MIT" ]
1
2022-03-31T13:43:37.000Z
2022-03-31T13:43:37.000Z
# ================================================================ # MIT License # Copyright (c) 2022 edwardyehuang (https://github.com/edwardyehuang) # ================================================================ import tensorflow as tf from iseg.layers.normalizations import normalization from iseg.utils.attent...
37.383275
144
0.637245
1034d4fa21e4a774fdb7001458be9aa8431d220c
2,009
py
Python
packs/orion/actions/list_sdk_verb_args.py
prajwal222/prajwal
ce1431858a9b54ae2a9546e9afab9f4b722bd210
[ "Apache-2.0" ]
null
null
null
packs/orion/actions/list_sdk_verb_args.py
prajwal222/prajwal
ce1431858a9b54ae2a9546e9afab9f4b722bd210
[ "Apache-2.0" ]
1
2022-03-08T17:03:46.000Z
2022-03-08T17:03:46.000Z
packs/orion/actions/list_sdk_verb_args.py
isabella232/st2contrib
182af2fb6e26a1d002954b19a5cc7afc73307872
[ "Apache-2.0" ]
1
2019-07-10T21:23:49.000Z
2019-07-10T21:23:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
36.527273
74
0.648084
103601948f6165db5db865f0b5d72730ec02f8bd
5,979
py
Python
Ui_share.py
Mochongli/lanzou-gui
0da48c627c70d7be4662e3312d135b28acdc1b57
[ "MIT" ]
2
2020-09-17T14:27:07.000Z
2021-06-28T08:44:35.000Z
Ui_share.py
Mochongli/lanzou-gui
0da48c627c70d7be4662e3312d135b28acdc1b57
[ "MIT" ]
null
null
null
Ui_share.py
Mochongli/lanzou-gui
0da48c627c70d7be4662e3312d135b28acdc1b57
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/rach/Documents/lanzou-gui/share.ui' # # Created by: PyQt5 UI code generator 5.13.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
46.710938
95
0.68657
10360d23deea826893e597ec11b95b8d2db92420
129
py
Python
codeforces/anirudhak47/1335/A.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
3
2020-07-09T16:15:42.000Z
2020-07-17T13:19:42.000Z
codeforces/anirudhak47/1335/A.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
null
null
null
codeforces/anirudhak47/1335/A.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
1
2020-07-17T13:19:48.000Z
2020-07-17T13:19:48.000Z
for t in range(int(input())): n=int(input()) if n%2==0: print(int(n/2-1)) else: print(int(n//2))
21.5
30
0.449612
1037e099e65b884fd19f0953fbf98c040598fcd6
6,959
py
Python
imageclassification/training/session.py
aisosalo/CIFAR-10
8747ba2404bbe7043268dc8afa722938dc3db058
[ "MIT" ]
4
2019-03-01T21:47:40.000Z
2020-11-23T17:53:26.000Z
imageclassification/training/session.py
aisosalo/CIFAR-10
8747ba2404bbe7043268dc8afa722938dc3db058
[ "MIT" ]
null
null
null
imageclassification/training/session.py
aisosalo/CIFAR-10
8747ba2404bbe7043268dc8afa722938dc3db058
[ "MIT" ]
5
2019-11-28T13:31:50.000Z
2022-03-31T21:04:16.000Z
import sys import os import time import random import numpy as np from termcolor import colored from functools import partial from tensorboardX import SummaryWriter import torch from torch.utils.data import DataLoader from torchvision import transforms as tv_transforms import solt.transforms as slt import solt.c...
36.626316
132
0.620348
10387d5bca747ed2fb01a238f98496c602127cb4
293
py
Python
remotelogin/oper_sys/busybox/__init__.py
filintod/pyremotelogin
e2a4df7fd69d21eccdf1aec55c33a839de9157f1
[ "MIT" ]
1
2018-11-20T17:45:20.000Z
2018-11-20T17:45:20.000Z
remotelogin/oper_sys/busybox/__init__.py
filintod/pyremotelogin
e2a4df7fd69d21eccdf1aec55c33a839de9157f1
[ "MIT" ]
3
2018-10-16T18:07:50.000Z
2018-10-16T18:10:06.000Z
remotelogin/oper_sys/busybox/__init__.py
filintod/pyremotelogin
e2a4df7fd69d21eccdf1aec55c33a839de9157f1
[ "MIT" ]
null
null
null
from . import shellcommands from ..linux import LinuxOS __author__ = 'Filinto Duran (duranto@gmail.com)' # TODO: break unix/linux to a bare and expand from there
20.928571
56
0.696246
1038f2cc4542c018a0f73531e58b1bd026455441
11,988
py
Python
DIP/src/utils/utils.py
Jay-Lewis/phase_retrieval
799cef92852c53e62e2a548f605652923e979456
[ "MIT" ]
4
2019-01-27T11:46:11.000Z
2020-12-17T12:23:15.000Z
DIP/src/utils/utils.py
Jay-Lewis/phase_retrieval
799cef92852c53e62e2a548f605652923e979456
[ "MIT" ]
null
null
null
DIP/src/utils/utils.py
Jay-Lewis/phase_retrieval
799cef92852c53e62e2a548f605652923e979456
[ "MIT" ]
1
2020-10-15T02:53:12.000Z
2020-10-15T02:53:12.000Z
import math import numpy as np import os.path import urllib.request as urllib import gzip import pickle import pandas as pd from scipy.misc import imsave from src.utils.download import * import src.utils.image_load_helpers as image_load_helpers import glob def save_zip_data(object, filename, bin = 1): """Sav...
31.464567
120
0.611445
1039b022c5fb3fa4258162d12d3e7a230a204279
282
py
Python
2. Conditional and Repetitive Execution/2.2. Even or Odd.py
ahmetutkuozkan/my_ceng240_exercises_solutions
167bb9938515870ec1f01853933edc3b55937bff
[ "MIT" ]
null
null
null
2. Conditional and Repetitive Execution/2.2. Even or Odd.py
ahmetutkuozkan/my_ceng240_exercises_solutions
167bb9938515870ec1f01853933edc3b55937bff
[ "MIT" ]
null
null
null
2. Conditional and Repetitive Execution/2.2. Even or Odd.py
ahmetutkuozkan/my_ceng240_exercises_solutions
167bb9938515870ec1f01853933edc3b55937bff
[ "MIT" ]
null
null
null
value1 = int(input()); value2 = value1//100 if value1 % 2==0 and value2 % 2==0: print("Even") elif value1 % 2==0 and value2 % 2==1: print("Even Odd") elif value1 % 2==1 and value2 % 2==1: print("Odd") elif value1 % 2==1 and value2 % 2==0: print("Odd Even")
28.2
44
0.567376
103b74338ebd3a256125530370b8d63b824deb3c
339
py
Python
First_course/ex2_2.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
First_course/ex2_2.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
First_course/ex2_2.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python column1 = "NETWORK_NUMBER" column2 = "FIRST_OCTET_BINARY" column3 = "FIRST_OCTET_HEX" ip_addr = '88.19.107.0' formatter = '%-20s%-20s%-20s' octets = ip_addr.split('.') a = bin(int(octets[0])) b = hex(int(octets[0])) print "" print formatter % (column1, column2, column3) print formatter % (ip_ad...
19.941176
45
0.678466
103c0a4ba3c0768fdcf0d8428f050d11782bc6b9
511
py
Python
serendipity/set_and_map/singly_linked_list_set.py
globotree/serendipity
8380635a4760a5393330460bb625834ffe02967c
[ "Unlicense" ]
3
2019-03-12T10:00:53.000Z
2019-05-29T10:40:28.000Z
serendipity/set_and_map/singly_linked_list_set.py
globotree/serendipity
8380635a4760a5393330460bb625834ffe02967c
[ "Unlicense" ]
12
2018-12-17T13:31:19.000Z
2019-02-13T10:25:01.000Z
serendipity/set_and_map/singly_linked_list_set.py
globotree/serendipity
8380635a4760a5393330460bb625834ffe02967c
[ "Unlicense" ]
1
2020-01-24T00:48:57.000Z
2020-01-24T00:48:57.000Z
from serendipity.linear_structures.singly_linked_list import LinkedList
21.291667
71
0.614481
103ddecd77ffe2029b07f7ee212a250ddb0a808d
1,546
py
Python
settings.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
12
2017-12-24T13:58:17.000Z
2021-04-06T16:21:00.000Z
settings.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
null
null
null
settings.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
1
2021-10-17T14:45:44.000Z
2021-10-17T14:45:44.000Z
# -*- coding: utf-8 -*- """ settings = conf.default.py + settings_{env}.py """ # import os # import importlib from conf.default import * # ======================================================================================== # IMPORT ENV SETTINGS # =================================...
39.641026
107
0.493532
103ee262884abe730921725155217f60f63708d4
7,958
py
Python
scripts/elitech_device.py
grvstick/elitech-datareader
21b778066477a9ba81624c883b7ab7f13302edec
[ "MIT" ]
58
2015-06-16T06:08:11.000Z
2022-01-14T21:06:00.000Z
scripts/elitech_device.py
grvstick/elitech-datareader
21b778066477a9ba81624c883b7ab7f13302edec
[ "MIT" ]
29
2015-11-20T14:38:32.000Z
2022-02-16T20:26:05.000Z
scripts/elitech_device.py
grvstick/elitech-datareader
21b778066477a9ba81624c883b7ab7f13302edec
[ "MIT" ]
16
2016-05-18T20:56:36.000Z
2021-07-29T09:03:32.000Z
#!/usr/bin/env python # coding: utf-8 import argparse import elitech import datetime from elitech.msg import ( StopButton, ToneSet, AlarmSetting, TemperatureUnit, ) from elitech.msg import _bin import six import os def parse_args(): """ :rtype: argparse.Namespace """ parser = argparse...
35.846847
135
0.641995
103f2a791154bb415c83bcbe5d49dfe926f934f8
295
py
Python
Assignment 1/task3/map.py
JeetKamdar/Big-Data-Assignments
54760de4b2f815168f61539eb9e79ff5e1bd7266
[ "MIT" ]
null
null
null
Assignment 1/task3/map.py
JeetKamdar/Big-Data-Assignments
54760de4b2f815168f61539eb9e79ff5e1bd7266
[ "MIT" ]
null
null
null
Assignment 1/task3/map.py
JeetKamdar/Big-Data-Assignments
54760de4b2f815168f61539eb9e79ff5e1bd7266
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import string import re for line in sys.stdin: if '"' in line: entry = re.split(''',(?=(?:[^'"]|'[^']*'|"[^"]*")*$)''', line) else: entry = line.split(",") licence_type = entry[2] amount_due = entry[-6] print("%s\t%s" % (licence_type, amount_due))
16.388889
64
0.566102
103fc50711d0b0de84f01f2724705c3318868eda
273
py
Python
src/aijack/attack/inversion/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:44.000Z
2022-03-17T21:17:44.000Z
src/aijack/attack/inversion/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/attack/inversion/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:46.000Z
2022-03-17T21:17:46.000Z
from .gan_attack import GAN_Attack # noqa: F401 from .generator_attack import Generator_Attack # noqa: F401 from .gradientinversion import GradientInversion_Attack # noqa: F401 from .mi_face import MI_FACE # noqa: F401 from .utils import DataRepExtractor # noqa: F401
45.5
69
0.798535
104022f80f0cfe30ed3aab519ac4eeadac303cfa
867
py
Python
INBa/2015/ZORIN_D_I/task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ZORIN_D_I/task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ZORIN_D_I/task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# 4. 7. # , , . , , ( ), ( ). . Enter . # .. # 11.04.2016 name = " " birthplace = ", " date1 = 1931 date2 = 2016 age = date2 - date1 interest = "" print(name+"- - ") print(" : "+birthplace) print(" : ", date1) print(": ", age) print(" : "+interest) input("\n\n EN...
43.35
443
0.7797
10402fdf566c301bcd9dcb713ba61afdb6b551f7
676
py
Python
backend/api/models/request.py
haroldadmin/transportation-analytics-platform
366891dc422d3a72287b3224fbf5b0daf3d14751
[ "Apache-2.0" ]
null
null
null
backend/api/models/request.py
haroldadmin/transportation-analytics-platform
366891dc422d3a72287b3224fbf5b0daf3d14751
[ "Apache-2.0" ]
null
null
null
backend/api/models/request.py
haroldadmin/transportation-analytics-platform
366891dc422d3a72287b3224fbf5b0daf3d14751
[ "Apache-2.0" ]
null
null
null
from flask_restplus import fields, Model route_request_model = Model("Represents a Route Request", { "id": fields.Integer(description="Unique identifier for the ride"), "start_point_lat": fields.Float(description="Represents the latitude of the starting point"), "start_point_long": fields.Float(descripti...
45.066667
99
0.778107
10413843e688dfdc69f4f93d1b633fcb197a316d
4,554
py
Python
uitester/ui/main_window.py
IfengAutomation/uitester
6f9c78c86965b05efea875d38dbd9587386977fa
[ "Apache-2.0" ]
4
2016-07-12T09:01:52.000Z
2016-12-07T03:11:02.000Z
uitester/ui/main_window.py
IfengAutomation/uitester
6f9c78c86965b05efea875d38dbd9587386977fa
[ "Apache-2.0" ]
null
null
null
uitester/ui/main_window.py
IfengAutomation/uitester
6f9c78c86965b05efea875d38dbd9587386977fa
[ "Apache-2.0" ]
3
2016-11-29T02:13:17.000Z
2019-10-16T06:25:20.000Z
# @Time : 2016/8/17 10:56 # @Author : lixintong import logging import os import sys from PyQt5 import uic from PyQt5.QtCore import pyqtSignal, Qt from PyQt5.QtWidgets import QMainWindow, QApplication, QDesktopWidget, QMessageBox from uitester.test_manager.tester import Tester from uitester.ui.case_manager.case_ed...
35.030769
113
0.647343
1041fae3393c3977b85dd8a7c05c2822f0550318
13,034
py
Python
demos/DPSRGAN/dpsrmodels/basicblock.py
hduba/MDF
62eb2a1a5b8274206aae71903da2c2ad33ce687d
[ "BSD-3-Clause" ]
1
2021-05-18T06:20:49.000Z
2021-05-18T06:20:49.000Z
demos/DPSRGAN/dpsrmodels/basicblock.py
hduba/MDF
62eb2a1a5b8274206aae71903da2c2ad33ce687d
[ "BSD-3-Clause" ]
null
null
null
demos/DPSRGAN/dpsrmodels/basicblock.py
hduba/MDF
62eb2a1a5b8274206aae71903da2c2ad33ce687d
[ "BSD-3-Clause" ]
2
2021-09-09T19:07:57.000Z
2021-10-02T15:56:59.000Z
from collections import OrderedDict import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import Module ''' # =================================== # Advanced nn.Sequential # reform nn.Sequentials and nn.Modules # to a single nn.Sequential # =================================== ''' ''' # ===...
38.448378
160
0.529155
1042258a2c6461db6839a5ffc457fce5341726df
8,251
py
Python
ml-models-analyses/readahead-mixed-workload/kmlparsing.py
drewscottt/kernel-ml
713fd825e3681d2d7d5250120c992cb19b662351
[ "Apache-2.0" ]
167
2021-11-23T04:10:12.000Z
2022-03-19T21:31:22.000Z
ml-models-analyses/readahead-mixed-workload/kmlparsing.py
drewscottt/kernel-ml
713fd825e3681d2d7d5250120c992cb19b662351
[ "Apache-2.0" ]
null
null
null
ml-models-analyses/readahead-mixed-workload/kmlparsing.py
drewscottt/kernel-ml
713fd825e3681d2d7d5250120c992cb19b662351
[ "Apache-2.0" ]
9
2021-11-24T18:03:25.000Z
2022-02-06T01:30:23.000Z
# # Copyright (c) 2019-2021 Ibrahim Umit Akgun # Copyright (c) 2021-2021 Andrew Burford # Copyright (c) 2021-2021 Mike McNeill # Copyright (c) 2021-2021 Michael Arkhangelskiy # Copyright (c) 2020-2021 Aadil Shaikh # Copyright (c) 2020-2021 Lukas Velikov # Copyright (c) 2019-2021 Erez Zadok # Copyright (c) 2019-2021 Sto...
39.104265
119
0.533026
10425f3043aed2d9ee265e0c0950ea8c8e237a9e
6,374
py
Python
src/py_dss_tools/secondary/Circuit.py
eniovianna/py_dss_tools
3057fb0b74facd05a362e4e4a588f79f70aa9dd7
[ "MIT" ]
3
2021-05-29T00:40:10.000Z
2021-09-30T17:56:14.000Z
src/py_dss_tools/secondary/Circuit.py
eniovianna/py_dss_tools
3057fb0b74facd05a362e4e4a588f79f70aa9dd7
[ "MIT" ]
null
null
null
src/py_dss_tools/secondary/Circuit.py
eniovianna/py_dss_tools
3057fb0b74facd05a362e4e4a588f79f70aa9dd7
[ "MIT" ]
3
2021-05-29T00:40:46.000Z
2022-01-13T22:04:49.000Z
# -*- encoding: utf-8 -*- """ Created by nio Viana at 01/09/2021 at 19:51:44 Project: py_dss_tools [set, 2021] """ import attr import pandas as pd from py_dss_tools.model.other import VSource from py_dss_tools.utils import Utils
32.191919
119
0.588798
1045970cd8dff036939d1d34b09329c2cb8a87e3
1,270
py
Python
day2.py
cjfuller/adventofcode2015
1fbe75e29def156dbe1dc1336ff857945a6a365c
[ "MIT" ]
null
null
null
day2.py
cjfuller/adventofcode2015
1fbe75e29def156dbe1dc1336ff857945a6a365c
[ "MIT" ]
null
null
null
day2.py
cjfuller/adventofcode2015
1fbe75e29def156dbe1dc1336ff857945a6a365c
[ "MIT" ]
null
null
null
from dataclasses import dataclass from util import load_input, bear_init box_specs = load_input(2) boxes = [Box.from_str(spec) for spec in box_specs.splitlines()] total_sqft = sum(box.paper_area for box in boxes) print(f"Part 1: {total_sqft}") total_ribbon_ft = sum(box.ribbon_length for box in boxes) print(f"...
22.280702
84
0.588189
1047517a8fc519c2245e3ae4ac28ca41f0c16f09
7,928
py
Python
todo/commands/complete.py
Kuro-Rui/JojoCogs
57b86694e29462c5f5b561bc4a060ed04cfb8deb
[ "MIT" ]
null
null
null
todo/commands/complete.py
Kuro-Rui/JojoCogs
57b86694e29462c5f5b561bc4a060ed04cfb8deb
[ "MIT" ]
null
null
null
todo/commands/complete.py
Kuro-Rui/JojoCogs
57b86694e29462c5f5b561bc4a060ed04cfb8deb
[ "MIT" ]
null
null
null
# Copyright (c) 2021 - Jojo#7791 # Licensed under MIT import asyncio from contextlib import suppress from typing import List import discord from redbot.core import commands from redbot.core.utils.chat_formatting import pagify from redbot.core.utils.predicates import MessagePredicate from ..abc import TodoMixin from ...
41.507853
129
0.621342
10485a191600110454b70bb7ff198f1ba032639d
544
py
Python
network/demo_espat_ap_test.py
708yamaguchi/MaixPy_scripts
5f1774e739fb7eecab344d619c0cd63a71ff3d4f
[ "MIT" ]
485
2019-03-18T10:53:59.000Z
2022-03-27T09:02:08.000Z
network/demo_espat_ap_test.py
708yamaguchi/MaixPy_scripts
5f1774e739fb7eecab344d619c0cd63a71ff3d4f
[ "MIT" ]
110
2019-04-04T09:07:39.000Z
2022-03-03T08:08:19.000Z
network/demo_espat_ap_test.py
708yamaguchi/MaixPy_scripts
5f1774e739fb7eecab344d619c0cd63a71ff3d4f
[ "MIT" ]
379
2019-03-18T04:48:46.000Z
2022-03-30T00:29:29.000Z
# This file is part of MaixPY # Copyright (c) sipeed.com # # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license.php # from network_espat import wifi wifi.reset() print(wifi.at_cmd("AT\r\n")) print(wifi.at_cmd("AT+GMR\r\n")) ''' >>> reset... b'\r\n\r\nOK\r\n' b'AT version:1.1.0.0(May 1...
24.727273
121
0.696691
10491ce24b3f4d1202dbbd3d0299d988fc347ec0
1,513
py
Python
scripts/plot_pca.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
scripts/plot_pca.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
scripts/plot_pca.py
taoyilee/ml_final_project
0ac5ee3938d70e9ffcae8e186e0ef1a621391980
[ "Unlicense" ]
null
null
null
from preprocessing.dataset import SVHNDataset import numpy as np import configparser as cp from datetime import datetime as dt import os from sklearn.decomposition import PCA import pandas as pd import seaborn as sns import matplotlib.pyplot as plt if __name__ == "__main__": config = cp.ConfigParser() config.r...
36.902439
119
0.634501
104941aa6110b4212489737e4b75dd284643d08f
4,117
py
Python
DoodleParser.py
luigiberducci/turni-biblioteca
ae1c65dd768734de4795d38859f23eb655434ad7
[ "MIT" ]
null
null
null
DoodleParser.py
luigiberducci/turni-biblioteca
ae1c65dd768734de4795d38859f23eb655434ad7
[ "MIT" ]
null
null
null
DoodleParser.py
luigiberducci/turni-biblioteca
ae1c65dd768734de4795d38859f23eb655434ad7
[ "MIT" ]
null
null
null
# File: DoodleParser.py # # Author: Luigi Berducci # Date: 2018-11-30 import sys import datetime import requests import json def format_date(d): """ Format a datetime `date` """ days = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "July",...
32.936
98
0.549915
104a38928902816c83edccd5d37dfdec68ddd38c
381
py
Python
bot-stopots/configuracao.py
leosantosx/bot-stopots
b3de1610247ed6e64aba4313f087e7f373365502
[ "MIT" ]
2
2020-10-08T23:44:47.000Z
2022-03-30T17:17:44.000Z
bot-stopots/configuracao.py
leosantosx/bot-stopots
b3de1610247ed6e64aba4313f087e7f373365502
[ "MIT" ]
null
null
null
bot-stopots/configuracao.py
leosantosx/bot-stopots
b3de1610247ed6e64aba4313f087e7f373365502
[ "MIT" ]
2
2020-10-01T08:10:08.000Z
2022-02-23T20:27:09.000Z
""" VARIVEIS DE CONFIGURAO DO BOT True PARA ATIVAR E False PARA DESATIVAR """ escrever_nos_campos = True # PREENCHE OS CAMPOS COM AS RESPOSTAS modo_de_aprendizado = False # APRENDE NOVAS RESPOSTAS SALVANDO AS RESPOSTAS DOS OUTROS JOGADORES clica_botao_avaliar_respostas = True # CLICA NO BOTO "AVALIAR" clica_bo...
22.411765
96
0.784777
104bea37e718643afefd50f43683a9a85ce8b8b1
1,164
py
Python
InterpolLagrange.py
davidfotsa/Numerical_Methods_With_Python
78ed749f9c1f0005efa1b5ae1f529356a4057462
[ "MIT" ]
1
2021-09-18T18:32:40.000Z
2021-09-18T18:32:40.000Z
InterpolLagrange.py
davidfotsa/Numerical_Methods_With_Python
78ed749f9c1f0005efa1b5ae1f529356a4057462
[ "MIT" ]
null
null
null
InterpolLagrange.py
davidfotsa/Numerical_Methods_With_Python
78ed749f9c1f0005efa1b5ae1f529356a4057462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- X=[-2,0,1,2] Y=[49,5,7,49] #x=float(input(" Vous voulez estimer f(x) pour x= ")) #print(P(x,X,Y)) from numpy.polynomial import Polynomial as poly x=poly([0,1]) # Polynme p(x)=0+x p=P(x,X,Y) print(p) x=poly1d([1,0]) # Polynme p(x)=0+x p=P(x,X,Y) print(p) print(p.order) pri...
21.163636
58
0.495704
104c94905568b06f91f4a7f0d3ab448f5f6b6e7d
990
py
Python
stockroom_bot/stock_products.py
amjadmajid/rosbook
20d4ab94d910adc62c4aecb471ceac13b5cef5ad
[ "Apache-2.0" ]
442
2015-12-11T02:59:16.000Z
2022-03-31T22:10:25.000Z
stockroom_bot/stock_products.py
amjadmajid/rosbook
20d4ab94d910adc62c4aecb471ceac13b5cef5ad
[ "Apache-2.0" ]
41
2016-01-07T19:15:29.000Z
2021-12-03T01:52:58.000Z
stockroom_bot/stock_products.py
amjadmajid/rosbook
20d4ab94d910adc62c4aecb471ceac13b5cef5ad
[ "Apache-2.0" ]
249
2015-11-27T10:22:33.000Z
2022-03-28T09:52:05.000Z
#!/usr/bin/env python import rospy, tf from gazebo_msgs.srv import * from geometry_msgs.msg import * if __name__ == '__main__': rospy.init_node("stock_products") rospy.wait_for_service("gazebo/delete_model") # <1> rospy.wait_for_service("gazebo/spawn_sdf_model") delete_model = rospy.ServiceProxy("gazebo/delete...
41.25
73
0.692929
104fe8a69a8815914b9402756fc0c531d5a4a9ad
846
py
Python
code/GC_mass_evolv.py
EnthalpyBill/GC-formation
143a8cb464bd621e77092a010c9011ef056da400
[ "MIT" ]
null
null
null
code/GC_mass_evolv.py
EnthalpyBill/GC-formation
143a8cb464bd621e77092a010c9011ef056da400
[ "MIT" ]
null
null
null
code/GC_mass_evolv.py
EnthalpyBill/GC-formation
143a8cb464bd621e77092a010c9011ef056da400
[ "MIT" ]
null
null
null
''' Mass evolution of GC Created Apr. 2020 Last Edit Apr. 2020 By Bill Chen ''' import numpy as np # Note: all times in [Gyr] # ***** Dynamic evolution of GC in Choksi & Gnedin (2018) ***** # ***** Stellar evolution of GC in Prieto & Gnedin (2008) ***** # ***** Mass evolution of GC in Choksi & Gnedin (2018) **...
22.263158
68
0.625296
104fe95906a89882b90ee817c831630744acea53
355
py
Python
tests/test_deploy.py
NCAR/marbl-solutions
0840e2a594d49218b1510cd8cb95d9d058495a8a
[ "MIT" ]
null
null
null
tests/test_deploy.py
NCAR/marbl-solutions
0840e2a594d49218b1510cd8cb95d9d058495a8a
[ "MIT" ]
1
2022-02-11T22:53:37.000Z
2022-02-11T22:53:37.000Z
tests/test_deploy.py
NCAR/marbl-solutions
0840e2a594d49218b1510cd8cb95d9d058495a8a
[ "MIT" ]
null
null
null
import solutions
35.5
71
0.766197
10521ee81224fcf01be655be4e17446c05559c19
148
py
Python
backend/home/models.py
crowdbotics-apps/test-29106
34df3fa66e798f61d9189fa248f21cabb9bca0e1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/models.py
crowdbotics-apps/test-29106
34df3fa66e798f61d9189fa248f21cabb9bca0e1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/models.py
crowdbotics-apps/test-29106
34df3fa66e798f61d9189fa248f21cabb9bca0e1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.conf import settings from django.db import models
18.5
34
0.75
10527d2aa82328718d79fcf72f8bc5b68e57039d
405
py
Python
tests/urls.py
xiu1/django-rest
3ba381a8f8be8a27af464839dcdd5677857043ba
[ "MIT" ]
null
null
null
tests/urls.py
xiu1/django-rest
3ba381a8f8be8a27af464839dcdd5677857043ba
[ "MIT" ]
null
null
null
tests/urls.py
xiu1/django-rest
3ba381a8f8be8a27af464839dcdd5677857043ba
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin from rest.views import TestRestView, TestAuthHeaderView, TestAuthUrlView urlpatterns = [ url('^rest/$', TestRestView.as_view(), name='rest'), url('^auth_header_rest/$', TestAuthHeaderView.as_view(), name='rest_auth_header'), url('^a...
40.5
93
0.735802
1052c3a88b2dcf7166396c893200f90ad073a780
16,625
py
Python
services/controllers/thruster_controller.py
gizmo-cda/g2x-submarine-v2
2f4be8ad7234ab59fc6e98b8353a40195dd08ffb
[ "BSD-3-Clause" ]
1
2017-05-05T04:32:11.000Z
2017-05-05T04:32:11.000Z
services/controllers/thruster_controller.py
gizmo-cda/g2x-submarine-v2
2f4be8ad7234ab59fc6e98b8353a40195dd08ffb
[ "BSD-3-Clause" ]
26
2017-05-08T02:06:47.000Z
2017-06-02T02:50:18.000Z
services/controllers/thruster_controller.py
gizmo-cda/g2x-submarine-v2
2f4be8ad7234ab59fc6e98b8353a40195dd08ffb
[ "BSD-3-Clause" ]
1
2018-06-25T19:00:20.000Z
2018-06-25T19:00:20.000Z
import os import json from vector2d import Vector2D from interpolator import Interpolator from utils import map_range # Each game controller axis returns a value in the closed interval [-1, 1]. We # limit the number of decimal places we use with the PRECISION constant. This is # done for a few reasons: 1) it makes th...
45.925414
92
0.639759
1052f3c21d56f16c74fe435dcc9d878c1ebb23e3
2,387
py
Python
montagem/models.py
Glaysonvisgueira/agendamento-de-servico
a7715f45914f361830303241916c0b85cd3bdfdf
[ "MIT" ]
null
null
null
montagem/models.py
Glaysonvisgueira/agendamento-de-servico
a7715f45914f361830303241916c0b85cd3bdfdf
[ "MIT" ]
null
null
null
montagem/models.py
Glaysonvisgueira/agendamento-de-servico
a7715f45914f361830303241916c0b85cd3bdfdf
[ "MIT" ]
null
null
null
from django.db import models LOJAS = ( ('TES', 'TES'), ('TEU', 'TEU'), ('TMA', 'TMA'), ('TPI', 'TPI'), ('TMO', 'TMO'), ('TEZ', 'TEZ'), ('TED', 'TED'), ('TPP', 'TPP'), ('TIM', 'TIM'), ('TEC', 'TEC'), ('RTT', 'RTT'), ...
27.755814
138
0.56682
1053671d2efb3bcbff0f12731c2f9a421bb4da2e
7,377
py
Python
em/src/dataset/metrics.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
em/src/dataset/metrics.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
15
2019-06-17T16:13:39.000Z
2022-02-27T05:23:59.000Z
em/src/dataset/metrics.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
import numpy as np from scipy.optimize import linear_sum_assignment
37.830769
128
0.623153
10549d50d1cb53a2fb1a2551fb8532427ebf65e9
1,554
py
Python
asq/test/test_pre_scan.py
SlamJam/asq
e6e49a5ace421cb4f84f0bded5dbe5a2108b0cce
[ "MIT" ]
3
2015-03-13T23:02:29.000Z
2015-07-19T15:29:23.000Z
asq/test/test_pre_scan.py
SlamJam/asq
e6e49a5ace421cb4f84f0bded5dbe5a2108b0cce
[ "MIT" ]
null
null
null
asq/test/test_pre_scan.py
SlamJam/asq
e6e49a5ace421cb4f84f0bded5dbe5a2108b0cce
[ "MIT" ]
1
2020-12-19T07:57:20.000Z
2020-12-19T07:57:20.000Z
import operator import unittest from asq.queryables import Queryable __author__ = "Robert Smallshire"
29.884615
92
0.557915
105586dba443dd6bd6a2f0bfc1884ab1e9b6d1f5
504
py
Python
magicmethod__str__.py
maahi07m/OOPS
1faa5168dc66c3597adfc0703af5e4c84c52117a
[ "MIT" ]
1
2022-02-28T17:00:03.000Z
2022-02-28T17:00:03.000Z
magicmethod__str__.py
maahi07m/OOPS
1faa5168dc66c3597adfc0703af5e4c84c52117a
[ "MIT" ]
null
null
null
magicmethod__str__.py
maahi07m/OOPS
1faa5168dc66c3597adfc0703af5e4c84c52117a
[ "MIT" ]
4
2020-04-22T10:26:35.000Z
2020-05-15T16:27:36.000Z
if __name__ == "__main__": import json input_args = list(json.loads(input())) complex_number = ComplexNumber(*input_args) complex_number_str_value = str(complex_number) print(complex_number_str_value) ''' [1,2] 1+2i '''
22.909091
58
0.642857
10568ffdcff6c9ac4346c98dc2826ddaf3950010
1,853
py
Python
src/form/panel/ParamAdvancePanel.py
miu200521358/pmx_tailor
7f40ffd596f548d4c04f14b22d8796861056fdb5
[ "MIT" ]
4
2021-11-10T03:04:07.000Z
2022-01-11T09:02:02.000Z
src/form/panel/ParamAdvancePanel.py
miu200521358/pmx_tailor
7f40ffd596f548d4c04f14b22d8796861056fdb5
[ "MIT" ]
1
2022-01-05T01:23:18.000Z
2022-01-08T16:23:42.000Z
src/form/panel/ParamAdvancePanel.py
miu200521358/pmx_tailor
7f40ffd596f548d4c04f14b22d8796861056fdb5
[ "MIT" ]
3
2021-11-05T16:55:35.000Z
2021-12-04T16:28:21.000Z
# -*- coding: utf-8 -*- # import wx from form.panel.BasePanel import BasePanel from utils.MLogger import MLogger # noqa logger = MLogger(__name__)
38.604167
161
0.680518
1057b731456147b4b92c8df8a2606e402b2c86e3
10,830
py
Python
hexrd/ui/calibration/powder_calibration.py
bnmajor/hexrdgui
d19f7cf4a4469b0d3b6978f2f65c5e8a6bd81785
[ "BSD-3-Clause" ]
null
null
null
hexrd/ui/calibration/powder_calibration.py
bnmajor/hexrdgui
d19f7cf4a4469b0d3b6978f2f65c5e8a6bd81785
[ "BSD-3-Clause" ]
1
2020-10-29T14:34:42.000Z
2020-10-29T15:30:20.000Z
hexrd/ui/calibration/powder_calibration.py
cjh1/hexrdgui
eb8968ba763cebbffce61164f1bda1e2cc622461
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy.optimize import leastsq, least_squares from hexrd import instrument from hexrd.matrixutil import findDuplicateVectors from hexrd.fitting import fitpeak from hexrd.ui.hexrd_config import HexrdConfig from hexrd.ui.utils import convert_tilt_convention # %% def _extract_powder_lines...
33.119266
79
0.570175
1059338d2378b261aba08fb200894418dd9de4d1
503
py
Python
covid-tweets/process-tweets-2.py
kadams4/NLPCoronavirus
15936240adb6cd9d7a616c381980d17c03cdc8fd
[ "MIT" ]
1
2020-05-02T23:26:56.000Z
2020-05-02T23:26:56.000Z
covid-tweets/process-tweets-2.py
kadams4/NLPCoronavirus
15936240adb6cd9d7a616c381980d17c03cdc8fd
[ "MIT" ]
null
null
null
covid-tweets/process-tweets-2.py
kadams4/NLPCoronavirus
15936240adb6cd9d7a616c381980d17c03cdc8fd
[ "MIT" ]
null
null
null
import pandas as pd root = "Split/" types = ["train-70", "test-30"] for type in types: filenames = ["2020-03-"+str(i)+"-Labels-"+type for i in range(12, 29)] for suffix in ["pos", "neg", "neu"]: data = [] for filename in filenames: path = root + filename data += li...
22.863636
82
0.528827
105a1021873de5967ff4229ce3f7cb97d8adb0d8
1,638
py
Python
sample/crawler/login.py
xuegangliu/Python-Learning
43e8c57debf6ec186d093dcc0e83c1a628982715
[ "MIT" ]
null
null
null
sample/crawler/login.py
xuegangliu/Python-Learning
43e8c57debf6ec186d093dcc0e83c1a628982715
[ "MIT" ]
null
null
null
sample/crawler/login.py
xuegangliu/Python-Learning
43e8c57debf6ec186d093dcc0e83c1a628982715
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- """ @Project: python @Date: 8/30/2018 9:53 PM @Author: xuegangliu @Description: login """ import urllib.request import http.cookiejar import urllib.parse def getOpener(header): '''''' # cookiecookiecookie cookieJar = http.cookiejar.CookieJar() ...
27.762712
133
0.627595
105a2a73f5eecce7fac87dc8417f55ba6d3a6da8
1,277
py
Python
djangocms_comments/widgets.py
Nekmo/djangocms-comments-module
591138db28d5341fd7809fc75f3fa4d91b5d3ef8
[ "MIT" ]
11
2016-04-13T14:04:42.000Z
2020-06-21T10:48:37.000Z
djangocms_comments/widgets.py
Nekmo/djangocms-comments-module
591138db28d5341fd7809fc75f3fa4d91b5d3ef8
[ "MIT" ]
14
2016-04-14T10:09:20.000Z
2021-05-22T08:20:10.000Z
djangocms_comments/widgets.py
Nekmo/djangocms-comments-module
591138db28d5341fd7809fc75f3fa4d91b5d3ef8
[ "MIT" ]
11
2016-04-14T09:48:48.000Z
2021-04-11T03:43:08.000Z
from django.core.exceptions import SuspiciousOperation from django.core.signing import Signer, BadSignature from django.forms import HiddenInput signer = Signer()
34.513514
85
0.657009
105bb82bfc7b6f71c79e0e15226b493dbe1a9ea9
3,684
py
Python
openspeech/search/beam_search_ctc.py
techthiyanes/openspeech
71d28bae1232420da1d6f357f52ff1a607dc983f
[ "Apache-2.0", "MIT" ]
207
2021-07-22T02:04:47.000Z
2022-03-31T07:24:12.000Z
openspeech/search/beam_search_ctc.py
tqslj2/openspeech
10307587f08615224df5a868fb5249c68c70b12d
[ "Apache-2.0", "MIT" ]
81
2021-07-21T16:52:22.000Z
2022-03-31T14:56:54.000Z
openspeech/search/beam_search_ctc.py
tqslj2/openspeech
10307587f08615224df5a868fb5249c68c70b12d
[ "Apache-2.0", "MIT" ]
43
2021-07-21T16:33:27.000Z
2022-03-23T09:43:49.000Z
# MIT License # # Copyright (c) 2021 Soohwan Kim and Sangchun Ha and Soyoung Cho # # 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...
43.341176
119
0.678882
105c2eb00700830d7030c477994f8f358f536d08
1,231
py
Python
Software/Services/__init__.py
Hackin7/BlockComPi
36938e219b42c5d220db0a64e4718e95720c4850
[ "X11" ]
null
null
null
Software/Services/__init__.py
Hackin7/BlockComPi
36938e219b42c5d220db0a64e4718e95720c4850
[ "X11" ]
null
null
null
Software/Services/__init__.py
Hackin7/BlockComPi
36938e219b42c5d220db0a64e4718e95720c4850
[ "X11" ]
null
null
null
#Do Not Edit #colors R G B white = (255, 255, 255) red = (255, 0, 0) green = ( 0, 255, 0) blue = ( 0, 0, 255) black = ( 0, 0, 0) cyan = ( 50, 255, 255) magenta = (255, 0, 255) yellow = (255, 255, 0) orange = (255, 127, 0) #The Service/Notifications List # L...
24.62
122
0.57108
105d5ca23ac6dfb590f2af5c0e2d2ba6bb4c09a3
324
py
Python
src/ml_fastapi/routers.py
sebastianschramm/ml_fastapi
719f332b573f1ae021f4753b25a940da040c9ea3
[ "MIT" ]
2
2020-05-08T11:15:43.000Z
2020-05-08T11:29:52.000Z
src/ml_fastapi/routers.py
sebastianschramm/ml_fastapi
719f332b573f1ae021f4753b25a940da040c9ea3
[ "MIT" ]
null
null
null
src/ml_fastapi/routers.py
sebastianschramm/ml_fastapi
719f332b573f1ae021f4753b25a940da040c9ea3
[ "MIT" ]
null
null
null
from fastapi import APIRouter from starlette.requests import Request router = APIRouter()
20.25
43
0.740741
105dc9a0c2abe995709581929119eb84a98260a9
1,902
py
Python
spinoffs/inference_gym/inference_gym/targets/eight_schools_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
spinoffs/inference_gym/inference_gym/targets/eight_schools_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
spinoffs/inference_gym/inference_gym/targets/eight_schools_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
34.581818
78
0.699264
105f337c3b2cee574054705ec45a67cc94c84757
788
py
Python
ch01/dictionaries.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
5
2021-06-11T11:24:04.000Z
2022-03-22T03:22:57.000Z
ch01/dictionaries.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
null
null
null
ch01/dictionaries.py
PacktPublishing/Python-Networking-Cookbook
26945c781a51fe72cc01409df6b5c5fa7df53f4c
[ "MIT" ]
10
2021-04-18T12:31:14.000Z
2022-03-28T07:21:16.000Z
config = {} with open("config.txt", "r") as f: lines = f.readlines() for line in lines: key, value = line.split("=") value = value.replace("\n", "") config[key] = value print(f"Added key {key} with value {value}") user_key = input("Which key would you like to see? ") if user_ke...
30.307692
55
0.555838
105f6e89e6b0c9427d9b4f9d438c31c6041b503d
414
py
Python
letra_m/extensions.py
frotacaio/tutorial_flask
6b454bddfc32e384b765d831025fc54a22fc79c7
[ "MIT" ]
null
null
null
letra_m/extensions.py
frotacaio/tutorial_flask
6b454bddfc32e384b765d831025fc54a22fc79c7
[ "MIT" ]
null
null
null
letra_m/extensions.py
frotacaio/tutorial_flask
6b454bddfc32e384b765d831025fc54a22fc79c7
[ "MIT" ]
null
null
null
""" Extenses populares Flask Mail - Fornece uma interface SMTP para o aplicativo Flask Flask WTF - Adicione renderizao e validao de WTForms Flask SQLAlchemy - Adicionando suporte SQLAlchemy para o aplicativo Flask Flask Sijax-Sijax - biblioteca de interface-Python/jQuery para tornar o AJAX fcil de usar em aplicaes ...
24.352941
108
0.806763