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
3dd524d8e59e2c8188892e7a7fe2e15518d2a46b
5,294
py
Python
depthaware/data/sunrgbd_dataset.py
crmauceri/DepthAwareCNN-pytorch1.5
6d9b0cf001d7482df7d4cd7240fc36cbfc8356f9
[ "MIT" ]
3
2021-03-11T01:24:37.000Z
2021-06-29T03:46:40.000Z
depthaware/data/sunrgbd_dataset.py
crmauceri/DepthAwareCNN-pytorch1.5
6d9b0cf001d7482df7d4cd7240fc36cbfc8356f9
[ "MIT" ]
null
null
null
depthaware/data/sunrgbd_dataset.py
crmauceri/DepthAwareCNN-pytorch1.5
6d9b0cf001d7482df7d4cd7240fc36cbfc8356f9
[ "MIT" ]
null
null
null
import os.path from depthaware.data.base_dataset import * from PIL import Image import time def make_dataset_fromlst(dataroot, listfilename): """ NYUlist format: imagepath seglabelpath depthpath HHApath """ images = [] segs = [] depths = [] HHAs = [] with open(listfilename) as f: ...
44.116667
113
0.647526
3dd551aff5d9acdfce555b2997eb9c881f846544
1,382
py
Python
setup.py
elafefy11/flask_gtts
8f14b9f114127d8fba240a88f3aa16eb17628872
[ "MIT" ]
null
null
null
setup.py
elafefy11/flask_gtts
8f14b9f114127d8fba240a88f3aa16eb17628872
[ "MIT" ]
null
null
null
setup.py
elafefy11/flask_gtts
8f14b9f114127d8fba240a88f3aa16eb17628872
[ "MIT" ]
null
null
null
""" Flask-gTTS ------------- A Flask extension to add gTTS Google text to speech, into the template, it makes adding and configuring multiple text to speech audio files at a time much easier and less time consuming """ from setuptools import setup setup( name='Flask-gTTS', version='0.11', url='https://g...
29.404255
76
0.633864
3dd5a2aa827f14ee73dd8f5c2368476016523c81
232
py
Python
READ.py
BeatrizFS/MongoDB-Python
a23741d5f58ccad50e6239c963f78759f92098ac
[ "MIT" ]
null
null
null
READ.py
BeatrizFS/MongoDB-Python
a23741d5f58ccad50e6239c963f78759f92098ac
[ "MIT" ]
null
null
null
READ.py
BeatrizFS/MongoDB-Python
a23741d5f58ccad50e6239c963f78759f92098ac
[ "MIT" ]
null
null
null
from Arquivo1 import Produto #READ #Consultar o Banco de dados #1.Retorna todas as informaes do Banco de dados produtos = Produto.objects() print(produtos) for produto in produtos: print(produto.Nome, produto.Valor)
23.2
50
0.75
3dd7149bf486a0156690dac8d36a869ec269ebf6
9,280
py
Python
src/aux_funcs.py
ArunBaskaran/Image-Driven-Machine-Learning-Approach-for-Microstructure-Classification-and-Segmentation-Ti-6Al-4V
79ca40ababbc65464650c5519f9e7fdbf3c9d14d
[ "MIT" ]
7
2020-03-19T05:04:30.000Z
2022-03-31T10:29:42.000Z
src/aux_funcs.py
ArunBaskaran/Image-Driven-Machine-Learning-Approach-for-Microstructure-Classification-and-Segmentation-Ti-6Al-4V
79ca40ababbc65464650c5519f9e7fdbf3c9d14d
[ "MIT" ]
2
2020-08-19T03:24:31.000Z
2021-03-02T00:18:46.000Z
src/aux_funcs.py
ArunBaskaran/Image-Driven-Machine-Learning-Approach-for-Microstructure-Classification-and-Segmentation-Ti-6Al-4V
79ca40ababbc65464650c5519f9e7fdbf3c9d14d
[ "MIT" ]
3
2020-09-17T04:15:04.000Z
2021-01-18T08:37:39.000Z
""" ----------------------------------ABOUT----------------------------------- Author: Arun Baskaran -------------------------------------------------------------------------- """ import model_params df = pd.read_excel('labels.xlsx', header=None, names=['id', 'label']) total_labels = df['label'] for ...
44.830918
210
0.650108
3dd842d4edbdc348779300fb523036992a49b5b2
125
py
Python
manage.py
Stupnitskiy/BinaryAPI
e448936ceed96da72e2aa65847030ea56edb224f
[ "MIT" ]
null
null
null
manage.py
Stupnitskiy/BinaryAPI
e448936ceed96da72e2aa65847030ea56edb224f
[ "MIT" ]
null
null
null
manage.py
Stupnitskiy/BinaryAPI
e448936ceed96da72e2aa65847030ea56edb224f
[ "MIT" ]
null
null
null
from flask_script import Manager from src import app manager = Manager(app) if __name__ == "__main__": manager.run()
12.5
32
0.72
3dd84d6968111423f954120eed10897fd01c00ea
1,355
py
Python
CIFAR10.py
jimmyLeeMc/NeuralNetworkTesting
a6208cc8639a93ac24655495c9ace1acba21c76f
[ "MIT" ]
null
null
null
CIFAR10.py
jimmyLeeMc/NeuralNetworkTesting
a6208cc8639a93ac24655495c9ace1acba21c76f
[ "MIT" ]
null
null
null
CIFAR10.py
jimmyLeeMc/NeuralNetworkTesting
a6208cc8639a93ac24655495c9ace1acba21c76f
[ "MIT" ]
null
null
null
#CIFAR from tensorflow import keras import numpy as np import matplotlib.pyplot as plt data = keras.datasets.cifar10 activations=[keras.activations.sigmoid, keras.activations.relu, keras.layers.LeakyReLU(), keras.activations.tanh] results=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] class_names=[0,1,2,3,4,5,6,7,8,9] ...
38.714286
108
0.591882
3dd93f9bb15a42397c641e431fd3df72da46ab0d
3,127
py
Python
All_RasPy_Files/edgedetection.py
govindak-umd/Autonomous_Robotics
5293b871c7032b40cbff7814bd773871ee2c5946
[ "MIT" ]
2
2020-05-14T11:23:30.000Z
2020-05-25T06:30:57.000Z
All_RasPy_Files/edgedetection.py
govindak-umd/ENPM809T
5293b871c7032b40cbff7814bd773871ee2c5946
[ "MIT" ]
null
null
null
All_RasPy_Files/edgedetection.py
govindak-umd/ENPM809T
5293b871c7032b40cbff7814bd773871ee2c5946
[ "MIT" ]
5
2020-06-09T22:09:15.000Z
2022-01-31T17:11:19.000Z
# ENME 489Y: Remote Sensing # Edge detection import numpy as np import matplotlib import matplotlib.pyplot as plt # Define slice of an arbitrary original image f = np.empty((0)) index = np.empty((0)) # Create intensity data, including noise for i in range(2000): index = np.append(index, i) if i <= 950: ...
23.689394
76
0.68692
3dda1806de2d35a90208c505c2c72da1466cf4a9
1,850
py
Python
alipay/aop/api/domain/AlipayCommerceReceiptBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceReceiptBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceReceiptBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import *
28.90625
81
0.585405
3ddaf9735b2cb2b79bcc96e4e4c161028c28ae19
2,632
py
Python
tests/test_timeconversion.py
FObersteiner/pyFuppes
2a8c6e210855598dbf4fb491533bf22706340c9a
[ "MIT" ]
1
2020-06-02T08:02:36.000Z
2020-06-02T08:02:36.000Z
tests/test_timeconversion.py
FObersteiner/pyFuppes
2a8c6e210855598dbf4fb491533bf22706340c9a
[ "MIT" ]
3
2022-03-04T11:43:19.000Z
2022-03-25T00:26:46.000Z
tests/test_timeconversion.py
FObersteiner/pyFuppes
2a8c6e210855598dbf4fb491533bf22706340c9a
[ "MIT" ]
null
null
null
import unittest from datetime import datetime, timezone from pyfuppes import timeconversion if __name__ == "__main__": unittest.main()
32.9
81
0.587006
3ddb42001698eb4e38741ad5c0c31bf71b836bbd
1,111
py
Python
ucscentralsdk/methodmeta/LstorageCloneMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/methodmeta/LstorageCloneMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/methodmeta/LstorageCloneMeta.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
"""This module contains the meta information of LstorageClone ExternalMethod.""" from ..ucscentralcoremeta import MethodMeta, MethodPropertyMeta method_meta = MethodMeta("LstorageClone", "lstorageClone", "Version142b") prop_meta = { "cookie": MethodPropertyMeta("Cookie", "cookie", "Xs:string", "Version142b", "In...
44.44
122
0.706571
3ddd545e8ac1636ac0a7d92a17cca391f2e23803
7,468
py
Python
tool/powermon.py
virajpadte/Power_monitoring_JetsonTX1
3f337adb16ce09072d69147b705a0c705b3ad53c
[ "MIT" ]
null
null
null
tool/powermon.py
virajpadte/Power_monitoring_JetsonTX1
3f337adb16ce09072d69147b705a0c705b3ad53c
[ "MIT" ]
null
null
null
tool/powermon.py
virajpadte/Power_monitoring_JetsonTX1
3f337adb16ce09072d69147b705a0c705b3ad53c
[ "MIT" ]
null
null
null
import sys import glob import serial import ttk import tkFileDialog from Tkinter import * #for plotting we need these: import matplotlib matplotlib.use("TkAgg") import matplotlib.pyplot as plt from drawnow import * if __name__ == '__main__': root = Tk() root.title("Power Monitoring tool") main = MainView...
35.561905
138
0.595742
3ddeb574a2024dfb0d06c0c742bbc0a272df7e2d
900
py
Python
shop/tests/products/views/test_product_details_view.py
nikolaynikolov971/NftShop
09a535a6f708f0f6da5addeb8781f9bdcea72cf3
[ "MIT" ]
null
null
null
shop/tests/products/views/test_product_details_view.py
nikolaynikolov971/NftShop
09a535a6f708f0f6da5addeb8781f9bdcea72cf3
[ "MIT" ]
null
null
null
shop/tests/products/views/test_product_details_view.py
nikolaynikolov971/NftShop
09a535a6f708f0f6da5addeb8781f9bdcea72cf3
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.urls import reverse from shop.products.models import Product from tests.base.mixins import ProductTestUtils
30
94
0.66
3de34122732924fae3421861027e4399e17b6da8
4,558
py
Python
projetoFTP/servidor/sftps.py
MarciovsRocha/conectividade-sistemas-cyberfisicos
d76b8a540b55eb8a54ae99067b625010e85a2eb8
[ "MIT" ]
null
null
null
projetoFTP/servidor/sftps.py
MarciovsRocha/conectividade-sistemas-cyberfisicos
d76b8a540b55eb8a54ae99067b625010e85a2eb8
[ "MIT" ]
null
null
null
projetoFTP/servidor/sftps.py
MarciovsRocha/conectividade-sistemas-cyberfisicos
d76b8a540b55eb8a54ae99067b625010e85a2eb8
[ "MIT" ]
null
null
null
import socket import threading import os import sys from pathlib import Path #--------------------------------------------------- #------------------------------------------------ #----------------------------------------------- #------------------------------------------------ #---------------------...
28.4875
72
0.426942
3de3ed318e614e22c2b9f52348133eddba3a0fee
2,424
py
Python
messages.py
runjak/hoodedFigure
539c9839dd47bc181e592bf4a61eaab361b8d316
[ "MIT" ]
null
null
null
messages.py
runjak/hoodedFigure
539c9839dd47bc181e592bf4a61eaab361b8d316
[ "MIT" ]
null
null
null
messages.py
runjak/hoodedFigure
539c9839dd47bc181e592bf4a61eaab361b8d316
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random sentences = [ "Going into the #dogpark is not allowed, @%s.", "That's my favourite #dogpark @%s - no one is allowed to go into it!", "That #dogpark you mention is forbidden! Please don't, @%s", "The #dogpark should be secured with electrified barbwire. " "Don...
44.072727
79
0.636139
3de5ea40f8bf420e08e8aea386566d9bf26093f0
3,595
py
Python
detectron/tests/test_track_losses.py
orestis-z/track-rcnn
6b2405cb8308168106526b57027a1af3fe9df0f3
[ "Apache-2.0" ]
9
2020-10-16T22:20:09.000Z
2022-03-22T11:08:01.000Z
detectron/tests/test_track_losses.py
orestis-z/track-rcnn
6b2405cb8308168106526b57027a1af3fe9df0f3
[ "Apache-2.0" ]
null
null
null
detectron/tests/test_track_losses.py
orestis-z/track-rcnn
6b2405cb8308168106526b57027a1af3fe9df0f3
[ "Apache-2.0" ]
2
2021-10-04T14:27:52.000Z
2022-03-22T11:07:53.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np from scipy import spatial import unittest from caffe2.proto import caffe2_pb2 from caffe2.python import core from caffe2.python import workspace from...
43.313253
115
0.69096
3de7f52d572f048f38c1b4744268152292a54283
4,497
py
Python
torch/nn/_functions/thnn/upsampling.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
null
null
null
torch/nn/_functions/thnn/upsampling.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
null
null
null
torch/nn/_functions/thnn/upsampling.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
null
null
null
from numbers import Integral import torch from torch.autograd import Function from torch._thnn import type2backend from . import _all_functions from ...modules.utils import _pair from ...functional import _check_bilinear_2d_scale_factor _all_functions.append(UpsamplingNearest2d) _all_functions.append(UpsamplingBil...
34.328244
98
0.610407
3de882780eafbe1233cbdcdf8b3eb920ea7971b8
7,869
py
Python
Day17/17_trick_shot.py
schca675/my-code-for-advent-of-code-2021
e8bdb986930b444884d37e679a37ed25efe2b34e
[ "Apache-2.0" ]
null
null
null
Day17/17_trick_shot.py
schca675/my-code-for-advent-of-code-2021
e8bdb986930b444884d37e679a37ed25efe2b34e
[ "Apache-2.0" ]
null
null
null
Day17/17_trick_shot.py
schca675/my-code-for-advent-of-code-2021
e8bdb986930b444884d37e679a37ed25efe2b34e
[ "Apache-2.0" ]
null
null
null
# --- Day 17: Trick Shot --- import math import time print("TEST") start = time.time() resolve_puzzle_part1("test_data.txt") print("Time: {}".format(time.time()-start)) print("PUZZLE") start = time.time() resolve_puzzle_part1("data.txt") print("Time: {}".format(time.time()-start))
35.931507
115
0.490532
3de9f24b49937335e24db781a7e382e77643515c
568
py
Python
zip_files.py
VladimirsHisamutdinovs/Advanced_Python_Operations
509c219f70adcbe9b3dedd71bff819494bab9c83
[ "Apache-2.0" ]
null
null
null
zip_files.py
VladimirsHisamutdinovs/Advanced_Python_Operations
509c219f70adcbe9b3dedd71bff819494bab9c83
[ "Apache-2.0" ]
null
null
null
zip_files.py
VladimirsHisamutdinovs/Advanced_Python_Operations
509c219f70adcbe9b3dedd71bff819494bab9c83
[ "Apache-2.0" ]
null
null
null
import zipfile zip_file = zipfile.ZipFile("zip_archive.zip", "w") zip_file.write("textfile_for_zip_01") zip_file.write("textfile_for_zip_02") zip_file.write("textfile_for_zip_03") # print(zipfile.is_zipfile("zip_archive.zip")) # zip_file = zipfile.ZipFile("zip_archive.zip") # print(zip_file.namelist()) ...
24.695652
53
0.748239
3deab92507c5a88674b2ab8baa0fe1cd63998a28
21,024
py
Python
omdrivers/lifecycle/iDRAC/iDRACUpdate.py
rajroyce1212/Ansible-iDRAC
4ce00b605ee2e128ad98b572759e860bae3da3dc
[ "Apache-2.0" ]
61
2018-02-21T00:02:20.000Z
2022-01-26T03:47:19.000Z
omdrivers/lifecycle/iDRAC/iDRACUpdate.py
rajroyce1212/Ansible-iDRAC
4ce00b605ee2e128ad98b572759e860bae3da3dc
[ "Apache-2.0" ]
31
2018-03-24T05:43:39.000Z
2022-03-16T07:10:37.000Z
omdrivers/lifecycle/iDRAC/iDRACUpdate.py
rajroyce1212/Ansible-iDRAC
4ce00b605ee2e128ad98b572759e860bae3da3dc
[ "Apache-2.0" ]
25
2018-03-13T10:06:12.000Z
2022-01-26T03:47:21.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # # Copyright 2018 Dell Inc. or its subsidiaries. All rights reserved. # Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries. # Other trademarks may be trademarks of their respective owners. # # Licensed under the Apache License, Vers...
50.176611
137
0.581573
3dec8f27fe9f9465de4b1a61485314e099192b22
3,196
py
Python
playthrough/management/commands/migrate_shogun.py
SciADV-Community/genki
b86811695c428ca93bdab3ea2f68e3a99713d4db
[ "MIT" ]
null
null
null
playthrough/management/commands/migrate_shogun.py
SciADV-Community/genki
b86811695c428ca93bdab3ea2f68e3a99713d4db
[ "MIT" ]
11
2020-10-15T01:19:24.000Z
2022-03-28T04:09:43.000Z
playthrough/management/commands/migrate_shogun.py
SciADV-Community/genki
b86811695c428ca93bdab3ea2f68e3a99713d4db
[ "MIT" ]
1
2021-01-11T19:56:02.000Z
2021-01-11T19:56:02.000Z
import argparse import os import sqlite3 from django.core.management.base import BaseCommand from playthrough.models import Alias, Channel, Game, GameConfig, Guild, RoleTemplate, User
44.388889
104
0.59199
3ded44aff9cb2e2f9d8057ef0b9ba6ae462ea0c0
5,233
py
Python
backend/model/benchmark-metrics/service/ocr.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
3
2022-01-12T06:51:51.000Z
2022-02-23T18:54:33.000Z
backend/model/benchmark-metrics/service/ocr.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
6
2021-08-31T19:21:26.000Z
2022-01-03T05:53:42.000Z
backend/model/benchmark-metrics/service/ocr.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
8
2021-08-12T08:07:49.000Z
2022-01-25T04:40:51.000Z
import logging from datetime import datetime import numpy as np from logging.config import dictConfig from kafkawrapper.producer import Producer from utils.mongo_utils import BenchMarkingProcessRepo from configs.configs import ulca_notifier_input_topic, ulca_notifier_benchmark_completed_event, ulca_notifier_benchmark_f...
55.084211
200
0.608064
3deea7c2a0399d6a1677f78e7cc36afe63de0fc2
1,780
py
Python
keystroke/migrations/0001_initial.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
keystroke/migrations/0001_initial.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
keystroke/migrations/0001_initial.py
jstavanja/quiz-biometrics-api
75e0db348668b14a85f94261aac092ae2d5fa9c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-08-20 16:31 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
34.901961
115
0.591573
3deeb28e7a4a40609c5fe55751360abc1b88afba
1,603
py
Python
komposisjon/komposisjon/rektangler_kvadrater.py
knutsenfiksdal/Oving_8
4e5d3a358cfb9127509a86a61c9499f22da9eabc
[ "MIT" ]
null
null
null
komposisjon/komposisjon/rektangler_kvadrater.py
knutsenfiksdal/Oving_8
4e5d3a358cfb9127509a86a61c9499f22da9eabc
[ "MIT" ]
null
null
null
komposisjon/komposisjon/rektangler_kvadrater.py
knutsenfiksdal/Oving_8
4e5d3a358cfb9127509a86a61c9499f22da9eabc
[ "MIT" ]
null
null
null
# Kvadrat som bruker komposisjon og delegering if __name__ == "__main__": rektanglet = Rektangel(5, 5, 10, 5) print(rektanglet) print(rektanglet.areal()) rektanglet.strekk(0.5) print(rektanglet) print(rektanglet.areal()) kvadrat = Kvadrat(2, 2, 6) print(kvadrat) print(kvadrat.are...
26.278689
75
0.646288
3defd9479c2f0a53049990dbf13feea2c96391cf
16,024
py
Python
DiscordBot/Commands/DiscordPoints.py
aronjanosch/kirbec-bot
6d44e177c5cf6669564047fbbc8f6e8c342bca28
[ "MIT" ]
null
null
null
DiscordBot/Commands/DiscordPoints.py
aronjanosch/kirbec-bot
6d44e177c5cf6669564047fbbc8f6e8c342bca28
[ "MIT" ]
null
null
null
DiscordBot/Commands/DiscordPoints.py
aronjanosch/kirbec-bot
6d44e177c5cf6669564047fbbc8f6e8c342bca28
[ "MIT" ]
null
null
null
from datetime import datetime import discord import itertools from .utils import formatString, getUsageEmbed, getOopsEmbed # IDEAS # 1. Paying out points (without bets)
33.949153
119
0.602034
3df076848f2032b90ec31c8b5ee8c64134fd5e5c
1,579
py
Python
lunch/admin.py
KrzysztofSakowski/lunch-crawler
6a93d6cfad634fb98f89bc22d68547801865c9ae
[ "Apache-2.0" ]
1
2020-02-17T13:40:08.000Z
2020-02-17T13:40:08.000Z
lunch/admin.py
KrzysztofSakowski/lunch-crawler
6a93d6cfad634fb98f89bc22d68547801865c9ae
[ "Apache-2.0" ]
4
2020-02-11T23:06:14.000Z
2021-06-10T18:07:30.000Z
lunch/admin.py
KrzysztofSakowski/lunch-crawler
6a93d6cfad634fb98f89bc22d68547801865c9ae
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import MenuFacebook, MenuEmail, UserProfile, Occupation, FacebookRestaurant, EmailRestaurant admin.site.register(FacebookRestaurant, RestaurantAdmin) admin.site.register(EmailRestaurant, RestaurantAdmin) admin.site.register(MenuFacebook, MenuBaseAdmin) admin.site.re...
29.240741
105
0.723243
3df0af937b9149db956b0d8ec02537a403587abe
19,082
py
Python
src/oci/log_analytics/models/query_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/log_analytics/models/query_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/log_analytics/models/query_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
35.600746
245
0.672466
3df0f23a4341291aa332900c1b4adf982ac1f716
2,740
py
Python
moist.py
phiriv/moisture_sensor
1e6a5d967ab639c67bae03847bd58ede31bde564
[ "MIT" ]
null
null
null
moist.py
phiriv/moisture_sensor
1e6a5d967ab639c67bae03847bd58ede31bde564
[ "MIT" ]
null
null
null
moist.py
phiriv/moisture_sensor
1e6a5d967ab639c67bae03847bd58ede31bde564
[ "MIT" ]
null
null
null
Script to read temperature data from the DHT11: # Importeer Adafruit DHT bibliotheek. import Adafruit_DHT import time als = True while als: humidity, temperature = Adafruit_DHT.read_retry(Adafruit_DHT.DHT11, 4) #on gpio pin 4 or pin 7 if humidity is not None and temperature is not None: humidity ...
30.10989
104
0.622628
3df10878e5646297672b7b72bacac47ff05e414e
4,168
py
Python
route_distances/utils/routes.py
general-synthesis/route-distances
2bc09a607bd7fa488357dcee96325669d8295f90
[ "MIT" ]
null
null
null
route_distances/utils/routes.py
general-synthesis/route-distances
2bc09a607bd7fa488357dcee96325669d8295f90
[ "MIT" ]
null
null
null
route_distances/utils/routes.py
general-synthesis/route-distances
2bc09a607bd7fa488357dcee96325669d8295f90
[ "MIT" ]
null
null
null
""" Module containing helper routines for routes """ from typing import Dict, Any, Set, List, Tuple import numpy as np from route_distances.utils.type_utils import StrDict def calc_depth(tree_dict: StrDict, depth: int = 0) -> int: """ Calculate the depth of a route, recursively :param tree_dict: the ro...
28.744828
84
0.651631
3df45b763adea0ed603bc91664b6febfe07b4afe
1,920
py
Python
src/yafowil/tests/__init__.py
2silver/yafowil
b9776503f98f145f7aaaa4f61b73e238c92c534c
[ "BSD-3-Clause" ]
8
2015-12-15T21:14:00.000Z
2019-11-11T22:13:18.000Z
src/yafowil/tests/__init__.py
2silver/yafowil
b9776503f98f145f7aaaa4f61b73e238c92c534c
[ "BSD-3-Clause" ]
21
2015-11-21T10:12:12.000Z
2021-06-03T06:51:53.000Z
src/yafowil/tests/__init__.py
2silver/yafowil
b9776503f98f145f7aaaa4f61b73e238c92c534c
[ "BSD-3-Clause" ]
5
2016-11-23T13:41:52.000Z
2020-06-08T18:21:00.000Z
from __future__ import print_function from node.tests import NodeTestCase from yafowil.base import factory from yafowil.compat import IS_PY2 import lxml.etree as etree import sys import unittest import yafowil.common import yafowil.compound import yafowil.persistence import yafowil.table if not IS_PY2: from impor...
25.945946
64
0.752083
3df5aa98eb0d85a8d21eb7afce122f2c8fabce6b
1,350
py
Python
tools/foolbox/bim_attack.py
GianmarcoMidena/adversarial-ML-benchmarker
43cfcfdac36da88d37b12d956ea8735fd27ca4a9
[ "MIT" ]
null
null
null
tools/foolbox/bim_attack.py
GianmarcoMidena/adversarial-ML-benchmarker
43cfcfdac36da88d37b12d956ea8735fd27ca4a9
[ "MIT" ]
null
null
null
tools/foolbox/bim_attack.py
GianmarcoMidena/adversarial-ML-benchmarker
43cfcfdac36da88d37b12d956ea8735fd27ca4a9
[ "MIT" ]
null
null
null
from foolbox.attacks import LinfinityBasicIterativeAttack from foolbox.criteria import Misclassification from foolbox.distances import MSE from tools.foolbox.adversarial_attack import AdversarialAttack
51.923077
112
0.707407
3df5e6a39fd0846088495ee87733d03e26f82c02
292
py
Python
Tabuada.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
Tabuada.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
Tabuada.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
# Tabuada em Python if __name__ == '__main__': print(9 ) nro = int(input('Entre com um nmero: ')) print(f'\n\033[1;32mTabuada do {nro}'+'\n') tabuada(nro)
20.857143
61
0.513699
3df87a91ac53ca2678893bfc4dee7db4ace5bf95
3,235
py
Python
radix_tree.py
mouradmourafiq/data-analysis
1df2ca020a554f1fdab7cc9e53115e249cc199ac
[ "BSD-2-Clause" ]
17
2015-04-01T12:11:31.000Z
2022-03-15T16:44:01.000Z
radix_tree.py
mouradmourafiq/data-analysis
1df2ca020a554f1fdab7cc9e53115e249cc199ac
[ "BSD-2-Clause" ]
null
null
null
radix_tree.py
mouradmourafiq/data-analysis
1df2ca020a554f1fdab7cc9e53115e249cc199ac
[ "BSD-2-Clause" ]
17
2015-01-14T14:59:40.000Z
2021-07-01T05:46:14.000Z
# -*- coding: utf-8 -*- ''' Created on Dec 01, 2012 @author: Mourad Mourafiq About: This is an attempt to implement the radix tree algo. Features : -> insert -> remove -> search ''' NOK = "{'':[]}"
27.415254
77
0.483462
3df8c0e29455e554abfe1f3cc62c34726c6ded0b
1,264
py
Python
Python/PythonOOP/animals.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
2
2018-08-18T15:14:45.000Z
2019-10-16T16:14:13.000Z
Python/PythonOOP/animals.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
null
null
null
Python/PythonOOP/animals.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
6
2018-05-05T18:13:05.000Z
2021-05-20T11:32:48.000Z
# Create instance of Animal animal1 = Animal("Edgar",30) animal1.walk().walk().walk().run().run().display_health() # Create instance of Dog dog1 = Dog("Raspberry",150) dog1.walk().walk().walk().run().run().pet().display_health() # Create instance of Dragon dragon1 = Dragon("Phantoon", 500) dragon1.walk().run().fly()...
22.175439
60
0.630538
3dfa41325fc23f6087b7a1ae8181579baa35af0a
17,915
py
Python
ai4water/preprocessing/transformations/_wrapper.py
moonson619/AI4Water-1
285d46824502b6a787e42570b72432f4f6acf45e
[ "MIT" ]
17
2021-05-21T13:01:52.000Z
2022-03-19T15:17:10.000Z
ai4water/preprocessing/transformations/_wrapper.py
moonson619/AI4Water-1
285d46824502b6a787e42570b72432f4f6acf45e
[ "MIT" ]
3
2021-10-31T22:40:28.000Z
2021-11-08T02:28:35.000Z
ai4water/preprocessing/transformations/_wrapper.py
moonson619/AI4Water-1
285d46824502b6a787e42570b72432f4f6acf45e
[ "MIT" ]
7
2021-08-06T07:27:50.000Z
2022-01-26T00:38:32.000Z
from typing import Union, List, Dict import numpy as np import pandas as pd from ai4water.utils.utils import jsonize, deepcopy_dict_without_clone from ai4water.preprocessing.transformations import Transformation
42.252358
121
0.547251
3dfbbd5b64a3c6157f0b5de85518ecc1e0323285
3,684
py
Python
main/tagcn_training.py
Stanislas0/KDD_CUP_2020_MLTrack2_SPEIT
7362104002225055715f05ccfc5ee8f6ef433d50
[ "Apache-2.0" ]
18
2020-09-10T06:48:22.000Z
2022-01-25T18:22:52.000Z
main/tagcn_training.py
Stanislas0/KDD_CUP_2020_MLTrack2_SPEIT
7362104002225055715f05ccfc5ee8f6ef433d50
[ "Apache-2.0" ]
null
null
null
main/tagcn_training.py
Stanislas0/KDD_CUP_2020_MLTrack2_SPEIT
7362104002225055715f05ccfc5ee8f6ef433d50
[ "Apache-2.0" ]
null
null
null
import os import dgl import time import argparse import numpy as np import torch as th import distutils.util import torch.nn.functional as F import utils import models import data_loader os.environ["CUDA_VISIBLE_DEVICES"] = '0' dev = th.device('cuda' if th.cuda.is_available() else 'cpu') if __name__ == '__main__': ...
41.393258
114
0.683496
3dfd83b71400b6e832cb757945e612ae86e6bd4c
27,127
py
Python
AltFS.py
g-mc/AltFS
4d83a928cb1f1ec127e9565b578779ec4e659dae
[ "BSD-3-Clause" ]
54
2019-02-27T15:57:27.000Z
2021-10-10T21:51:50.000Z
AltFS.py
g-mc/AltFS
4d83a928cb1f1ec127e9565b578779ec4e659dae
[ "BSD-3-Clause" ]
null
null
null
AltFS.py
g-mc/AltFS
4d83a928cb1f1ec127e9565b578779ec4e659dae
[ "BSD-3-Clause" ]
11
2019-03-01T19:07:25.000Z
2020-12-03T14:56:44.000Z
#!/usr/bin/env python """ BSD 3-Clause License Copyright (c) 2017, SafeBreach Labs All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notic...
41.798151
79
0.629742
3dfe1030cd691567d0eb0ceab815ccdf039f3393
269
py
Python
python-crypt-service/services/dbservice.py
Shirish-Singh/crypt-analysis
eed6d00925389ee0973733e6b7397cd460f97f99
[ "Apache-2.0" ]
null
null
null
python-crypt-service/services/dbservice.py
Shirish-Singh/crypt-analysis
eed6d00925389ee0973733e6b7397cd460f97f99
[ "Apache-2.0" ]
null
null
null
python-crypt-service/services/dbservice.py
Shirish-Singh/crypt-analysis
eed6d00925389ee0973733e6b7397cd460f97f99
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from configurations import configuration from pymongo import MongoClient MONGO_HOST= configuration.MONGO_HOST client = MongoClient(MONGO_HOST)
20.692308
40
0.814126
3dffaaba0f49d4e4bcf7fb58f40e51bc3b413470
448
py
Python
simple_amqp_rpc/data.py
rudineirk/py-simple-amqp-rpc
823b6efe271732495d4e3ccdcb9f4d85138c1d42
[ "MIT" ]
null
null
null
simple_amqp_rpc/data.py
rudineirk/py-simple-amqp-rpc
823b6efe271732495d4e3ccdcb9f4d85138c1d42
[ "MIT" ]
1
2021-06-01T22:28:43.000Z
2021-06-01T22:28:43.000Z
simple_amqp_rpc/data.py
rudineirk/py-simple-amqp-rpc
823b6efe271732495d4e3ccdcb9f4d85138c1d42
[ "MIT" ]
null
null
null
from typing import Any, List from dataclasses import dataclass, replace from .consts import OK
15.448276
42
0.654018
ad000563b867048b766de0b54cb60801221e67a0
598
py
Python
fileparse/python/main.py
mlavergn/benchmarks
4663009772c71d7c94bcd13eec542d1ce33cef72
[ "Unlicense" ]
null
null
null
fileparse/python/main.py
mlavergn/benchmarks
4663009772c71d7c94bcd13eec542d1ce33cef72
[ "Unlicense" ]
null
null
null
fileparse/python/main.py
mlavergn/benchmarks
4663009772c71d7c94bcd13eec542d1ce33cef72
[ "Unlicense" ]
null
null
null
#!/usr/bin/python import timeit setup = ''' import os def FileTest(path): file = open(path, "r") lines = file.readlines() data = [None for i in range(len(lines))] i = 0 for line in lines: data[i] = line.split(',') j = 0 for field in data[i]: data[i][j] = field.strip('\\'\\n') j += 1 i += 1 re...
20.62069
93
0.605351
ad005ad94d7f773d61fa5f1363d44b1d458fd462
5,475
py
Python
boris/classification.py
fragaria/BorIS
9585c83f29220d8f63910dabd98641ab41ace6cf
[ "MIT" ]
1
2021-08-10T14:01:26.000Z
2021-08-10T14:01:26.000Z
boris/classification.py
fragaria/BorIS
9585c83f29220d8f63910dabd98641ab41ace6cf
[ "MIT" ]
5
2018-04-04T14:31:34.000Z
2020-06-08T07:50:23.000Z
boris/classification.py
fragaria/BorIS
9585c83f29220d8f63910dabd98641ab41ace6cf
[ "MIT" ]
4
2017-02-06T15:38:34.000Z
2018-03-21T09:40:12.000Z
# -*- coding: utf-8 -*- ''' Created on 25.9.2011 @author: xaralis ''' from model_utils import Choices SEXES = Choices( (1, 'FEMALE', u'ena'), (2, 'MALE', u'mu') ) NATIONALITIES = Choices( (1, 'CZ', u'esk republika'), (2, 'EU', u'Jin - EU'), (3, 'NON_EU', u'Jin - non-EU'), (4, 'UNKNOWN', u'Nezn...
32.589286
96
0.606575
9a735bf957ffc30fea6d0bb1fe8f079ce7582eb6
23,569
py
Python
extern/face_expression/face_expression/dataset.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
1
2022-02-07T06:12:26.000Z
2022-02-07T06:12:26.000Z
extern/face_expression/face_expression/dataset.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
null
null
null
extern/face_expression/face_expression/dataset.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
null
null
null
import os import sys import json import pickle import h5py from tqdm import tqdm import numpy as np import torch import cv2 import scipy.spatial import hydra from face_expression import utils from face_expression.third_party.face_mesh_mediapipe import FaceMeshMediaPipe # class VoxCeleb2FaceDataset(torch.utils.data...
37.058176
125
0.566252
9a75886d1c5240a727719c8116254cb13ec6d703
1,316
py
Python
session7/OLED_Clock.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
null
null
null
session7/OLED_Clock.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
null
null
null
session7/OLED_Clock.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
null
null
null
###################################################################### # OLED_Clock.py # # This program display date and time on OLED module ###################################################################### import Adafruit_SSD1306 from datetime import datetime import time from PIL import Image from PIL impo...
29.244444
70
0.634498
9a75a5f4ae8ec0f7ef5613e16f951ea62c4bd8de
9,601
py
Python
odim/router.py
belda/odim
ea49284c4bfc76ac6cb436577c128b20c2c4004c
[ "MIT" ]
5
2021-01-29T11:00:10.000Z
2021-05-18T23:23:32.000Z
odim/router.py
belda/odim
ea49284c4bfc76ac6cb436577c128b20c2c4004c
[ "MIT" ]
1
2021-11-16T10:22:43.000Z
2021-11-16T10:22:43.000Z
odim/router.py
belda/odim
ea49284c4bfc76ac6cb436577c128b20c2c4004c
[ "MIT" ]
1
2021-02-18T14:45:43.000Z
2021-02-18T14:45:43.000Z
''' Contains the extended FastAPI router, for simplified CRUD from a model ''' from typing import Any, List, Optional, Sequence, Set, Type, Union import fastapi from fastapi import Depends, params from pydantic import BaseModel, create_model from odim import Odim, OkResponse, SearchResponse from odim.dependencies imp...
43.247748
187
0.584939
9a760367155f89800e9ffffd081d1132a56544e5
194
py
Python
scripts/item/consume_2432803.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/item/consume_2432803.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/item/consume_2432803.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
# Princess No Damage Skin (30-Days) success = sm.addDamageSkin(2432803) if success: sm.chat("The Princess No Damage Skin (30-Days) has been added to your account's damage skin collection.")
38.8
109
0.747423
9a768a1c9833791d7a707ef08123594b6480d371
1,184
py
Python
tests/test_product.py
technicapital/stake-python
8d0a985923318ca7b92f23e0c9a8319a75f37ff2
[ "Apache-2.0" ]
null
null
null
tests/test_product.py
technicapital/stake-python
8d0a985923318ca7b92f23e0c9a8319a75f37ff2
[ "Apache-2.0" ]
null
null
null
tests/test_product.py
technicapital/stake-python
8d0a985923318ca7b92f23e0c9a8319a75f37ff2
[ "Apache-2.0" ]
null
null
null
import asyncio import aiohttp import pytest from .client import HttpClient from .constant import Url from .product import Product
26.909091
76
0.697635
9a76e7fea3dd34891002703a3d4d4adaf6c009dc
1,346
py
Python
data_utils.py
tar-bin/DeepAA
acdae33a410eec87eb22419fce0adb513fa97219
[ "MIT" ]
1
2021-07-27T09:31:20.000Z
2021-07-27T09:31:20.000Z
data_utils.py
tar-bin/DeepAA
acdae33a410eec87eb22419fce0adb513fa97219
[ "MIT" ]
null
null
null
data_utils.py
tar-bin/DeepAA
acdae33a410eec87eb22419fce0adb513fa97219
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image, ImageOps
26.392157
83
0.581724
9a77a425a1b61dc019f50e24ad07e8460b1a7df9
2,839
py
Python
ledfx/color.py
broccoliboy/LedFx
1c90d5c3ddaf993a072eab92d3e373dd3b0fb45c
[ "MIT" ]
524
2020-12-18T19:34:55.000Z
2022-03-31T14:52:25.000Z
ledfx/color.py
broccoliboy/LedFx
1c90d5c3ddaf993a072eab92d3e373dd3b0fb45c
[ "MIT" ]
119
2020-12-18T21:28:12.000Z
2022-03-31T14:44:02.000Z
ledfx/color.py
broccoliboy/LedFx
1c90d5c3ddaf993a072eab92d3e373dd3b0fb45c
[ "MIT" ]
85
2020-12-18T18:23:16.000Z
2022-03-29T16:37:52.000Z
from collections import namedtuple RGB = namedtuple("RGB", "red, green, blue") COLORS = { "red": RGB(255, 0, 0), "orange-deep": RGB(255, 40, 0), "orange": RGB(255, 120, 0), "yellow": RGB(255, 200, 0), "yellow-acid": RGB(160, 255, 0), "green": RGB(0, 255, 0), "green-forest": RGB(34, 139, 34...
27.833333
79
0.446988
9a7853c5ab201c882d582391f394325cd2ad7796
1,247
py
Python
src/test/nspawn_test/support/header_test.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
15
2019-10-10T17:35:48.000Z
2022-01-29T10:41:01.000Z
src/test/nspawn_test/support/header_test.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
null
null
null
src/test/nspawn_test/support/header_test.py
Andrei-Pozolotin/nspawn
9dd3926f1d1a3a0648f6ec14199cbf4069af1c98
[ "Apache-2.0" ]
2
2019-10-10T17:36:43.000Z
2020-06-20T15:28:33.000Z
from nspawn.support.header import *
25.44898
58
0.57498
9a786a26a6979489803db0c2519bf5cf50427d08
2,042
py
Python
game1.py
akulakov/learnprogramming
ed7d557dabbef697773b4b369c8ed9cd3cdd55a6
[ "Apache-2.0" ]
null
null
null
game1.py
akulakov/learnprogramming
ed7d557dabbef697773b4b369c8ed9cd3cdd55a6
[ "Apache-2.0" ]
null
null
null
game1.py
akulakov/learnprogramming
ed7d557dabbef697773b4b369c8ed9cd3cdd55a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from helpers import sjoin, cjoin from random import shuffle card_types = [ ("tax",1,1), # tax everyone 2 coins => bank ("soldier",2,1), ("sergeant",3,1), ("captain",4,2), ("emperor",1,5), ("prince",1,1), #...
24.023529
65
0.519589
9a78db38d0f259372303620cba450346c37cd245
683
py
Python
src/plotting/plot_permeability.py
pgniewko/Deep-Rock
b714b98a2c391b4a43c62412769e5732cbd0d07a
[ "BSD-3-Clause" ]
1
2019-11-18T04:51:02.000Z
2019-11-18T04:51:02.000Z
src/plotting/plot_permeability.py
pgniewko/Deep-Rock
b714b98a2c391b4a43c62412769e5732cbd0d07a
[ "BSD-3-Clause" ]
null
null
null
src/plotting/plot_permeability.py
pgniewko/Deep-Rock
b714b98a2c391b4a43c62412769e5732cbd0d07a
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # # Usage: # python # import sys import numpy as np import matplotlib.pyplot as plt import seaborn as sns sns.set(style="darkgrid") data = np.loadtxt(sys.argv[1]) kappa_LB, kappa_CNN = data.T kappa_LB = 10.0 ** kappa_LB kappa_CNN = 10.0 ** kappa_CNN fig, ax = plt.subplots(1, 1, sharey=True, ...
21.34375
57
0.707174
9a79ab000b884a1fa7eeff49e8a3570bf0211367
1,664
py
Python
functions/python/todo-app.py
swiftycloud/swifty.todoapp
1a36c6e6f1af4584a8c0151e15e9ffcf2453f8c1
[ "MIT" ]
5
2018-11-08T17:07:43.000Z
2019-04-23T15:18:31.000Z
functions/python/todo-app.py
swiftycloud/swifty.todoapp
1a36c6e6f1af4584a8c0151e15e9ffcf2453f8c1
[ "MIT" ]
null
null
null
functions/python/todo-app.py
swiftycloud/swifty.todoapp
1a36c6e6f1af4584a8c0151e15e9ffcf2453f8c1
[ "MIT" ]
3
2018-11-08T17:07:47.000Z
2020-11-22T00:20:38.000Z
import bson import json import swifty # # GET /tasks -- list tasks # POST /tasks $BODY -- add new task # GET /tasks/ID -- get info about task # PUT /tasks/ID -- update task (except status) # DELETE /tasks/ID -- remove task # POST /tasks/ID/done -- mark task as done #
25.6
82
0.477163
9a79fb2f2787441274d55999dc0843161af999b5
401
py
Python
dmoj/Uncategorized/tss17a.py
UserBlackBox/competitive-programming
2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc
[ "Unlicense" ]
null
null
null
dmoj/Uncategorized/tss17a.py
UserBlackBox/competitive-programming
2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc
[ "Unlicense" ]
null
null
null
dmoj/Uncategorized/tss17a.py
UserBlackBox/competitive-programming
2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc
[ "Unlicense" ]
null
null
null
# https://dmoj.ca/problem/tss17a # https://dmoj.ca/submission/2226280 import sys n = int(sys.stdin.readline()[:-1]) for i in range(n): instruction = sys.stdin.readline()[:-1].split() printed = False for j in range(3): if instruction.count(instruction[j]) >= 2: print(instruction[j]) ...
26.733333
51
0.578554
9a7ad9eea9244d2609a2517f92f7fc289fb240da
1,159
py
Python
todo/views/users_detail.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
null
null
null
todo/views/users_detail.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
41
2021-03-23T12:58:25.000Z
2021-05-25T11:38:42.000Z
todo/views/users_detail.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
null
null
null
from todo.templatetags.todo_tags import is_management from django.contrib.auth.decorators import login_required, user_passes_test from django.http import HttpResponse from django.shortcuts import render from todo.models import Designer, Management, Writer, Editor
30.5
75
0.667817
9a7cfcbc63f3c97c82737bfbbfa13e26624618e7
214
py
Python
src/librhc/cost/__init__.py
arnavthareja/mushr_pixelart_mpc
db6ee6cae9b4cb1d3b213fed06690074372c824b
[ "BSD-3-Clause" ]
5
2019-08-30T08:20:27.000Z
2021-08-01T17:16:16.000Z
src/librhc/cost/__init__.py
arnavthareja/mushr_pixelart_mpc
db6ee6cae9b4cb1d3b213fed06690074372c824b
[ "BSD-3-Clause" ]
1
2020-09-09T13:38:08.000Z
2020-12-15T12:20:26.000Z
src/librhc/cost/__init__.py
arnavthareja/mushr_pixelart_mpc
db6ee6cae9b4cb1d3b213fed06690074372c824b
[ "BSD-3-Clause" ]
4
2019-09-14T21:26:09.000Z
2021-08-27T23:01:41.000Z
# Copyright (c) 2019, The Personal Robotics Lab, The MuSHR Team, The Contributors of MuSHR # License: BSD 3-Clause. See LICENSE.md file in root directory. from .waypoints import Waypoints __all__ = ["Waypoints"]
30.571429
90
0.757009
9a7d3e4f21c385675dec5f7b1784429e468d978e
1,401
py
Python
759/Employee Free Time.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
759/Employee Free Time.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
759/Employee Free Time.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
from typing import List import heapq # Definition for an Interval. i1 = Interval(1,2) i2 = Interval(6,7) i3 = Interval(2,4) i4 = Interval(2,5) i5 = Interval(9,12) A = Solution() print(A.employeeFreeTime([[i1,i2],[i3],[i4,i5]]))
31.840909
104
0.532477
9a7d9c6b811efb6d15e0d51600e0fd5bb7bf8479
41,312
py
Python
Comms1_internal/Final.py
CoderStellaJ/CG4002
474bda123856d8a88bef5ff787259fcd9ba9f09a
[ "MIT" ]
null
null
null
Comms1_internal/Final.py
CoderStellaJ/CG4002
474bda123856d8a88bef5ff787259fcd9ba9f09a
[ "MIT" ]
10
2020-01-28T14:17:26.000Z
2020-02-05T04:53:06.000Z
Comms1_internal/Final.py
CoderStellaJ/CG4002
474bda123856d8a88bef5ff787259fcd9ba9f09a
[ "MIT" ]
5
2021-01-21T08:00:56.000Z
2021-09-28T05:06:36.000Z
from bluepy import btle import concurrent from concurrent import futures import threading import multiprocessing import time from time_sync import * import eval_client import dashBoardClient from joblib import dump, load import numpy # to count labels and store in dict import operator # to get most predicted label im...
47.052392
188
0.495788
9a7dca2e7b004aae5d55d6951056ac9880930921
3,100
py
Python
tests/test_relations.py
OneRaynyDay/treeno
ce11b8447f471c0b5ea596a211b3855625ec43eb
[ "MIT" ]
1
2021-12-28T19:00:01.000Z
2021-12-28T19:00:01.000Z
tests/test_relations.py
OneRaynyDay/treeno
ce11b8447f471c0b5ea596a211b3855625ec43eb
[ "MIT" ]
null
null
null
tests/test_relations.py
OneRaynyDay/treeno
ce11b8447f471c0b5ea596a211b3855625ec43eb
[ "MIT" ]
null
null
null
import unittest from treeno.base import PrintMode, PrintOptions from treeno.expression import Array, Field, wrap_literal from treeno.orderby import OrderTerm, OrderType from treeno.relation import ( AliasedRelation, Lateral, SampleType, Table, TableQuery, TableSample, Unnest, ValuesQuer...
31
84
0.560968
9a7dd31031b6e51089b5322681d7a6bf9e613fcf
4,257
py
Python
tests/preprocess/test_har.py
henry1jin/alohamora
e51e2488ecdf3e9692d5bb6b25ebc88622087c20
[ "MIT" ]
5
2020-12-16T03:13:59.000Z
2022-03-06T07:16:39.000Z
tests/preprocess/test_har.py
henry1jin/alohamora
e51e2488ecdf3e9692d5bb6b25ebc88622087c20
[ "MIT" ]
9
2020-09-25T23:25:59.000Z
2022-03-11T23:45:14.000Z
tests/preprocess/test_har.py
henry1jin/alohamora
e51e2488ecdf3e9692d5bb6b25ebc88622087c20
[ "MIT" ]
3
2019-10-16T21:22:07.000Z
2020-07-21T13:38:22.000Z
import random from blaze.chrome.har import har_from_json, Har, HarLog, HarEntry, Request, Response from blaze.config.environment import ResourceType from blaze.preprocess.har import get_har_entry_type, har_entries_to_resources from blaze.util.seq import ordered_uniq from tests.mocks.config import get_config from test...
45.287234
109
0.624383
9a7f8708794c267295590be4b52b94df73d85efd
1,245
py
Python
Loader.py
JaredDobry/Budgeting-Fool
0f4ab5dea3b0750b7bf018de1d456a5587dbeb17
[ "MIT" ]
null
null
null
Loader.py
JaredDobry/Budgeting-Fool
0f4ab5dea3b0750b7bf018de1d456a5587dbeb17
[ "MIT" ]
null
null
null
Loader.py
JaredDobry/Budgeting-Fool
0f4ab5dea3b0750b7bf018de1d456a5587dbeb17
[ "MIT" ]
null
null
null
from Budget import Budget, Item FILENAME = 'Budget.txt'
28.295455
115
0.480321
9a801f3178565c7f1b1008bb487a050d3079d8d5
448
py
Python
rush_hour/test_solution.py
ssebastianj/taip-2014
2a0e62c4bf755ff752136350c246456d65a8c3eb
[ "MIT" ]
null
null
null
rush_hour/test_solution.py
ssebastianj/taip-2014
2a0e62c4bf755ff752136350c246456d65a8c3eb
[ "MIT" ]
null
null
null
rush_hour/test_solution.py
ssebastianj/taip-2014
2a0e62c4bf755ff752136350c246456d65a8c3eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import pytest from .solution import calc_minimum_travels
23.578947
69
0.638393
9a822f57f1242bdc5f799bb28767d02eb1a10fd9
2,573
py
Python
wordle.py
ccattuto/wordle-device
65cbd95165cf6c8e7fae508358d58f7e013f5bc8
[ "CC0-1.0" ]
7
2022-02-01T17:20:29.000Z
2022-02-15T08:09:19.000Z
wordle.py
ccattuto/wordle-device
65cbd95165cf6c8e7fae508358d58f7e013f5bc8
[ "CC0-1.0" ]
1
2022-02-13T15:46:36.000Z
2022-02-13T15:46:36.000Z
wordle.py
ccattuto/wordle-device
65cbd95165cf6c8e7fae508358d58f7e013f5bc8
[ "CC0-1.0" ]
1
2022-02-03T17:33:13.000Z
2022-02-03T17:33:13.000Z
#!/usr/bin/env python import sys from serial.tools import list_ports import serial import tweepy # locate ESP32-C3 USB device port = None for device in list_ports.comports(): if device.vid == 0x303a and device.pid == 0x1001: break if not device: sys.exit(-1) ser = serial.Serial(device.device, baudrat...
24.504762
94
0.638943
9a8309c0c453e677a70c4041fea94265ebf3f4e3
4,664
py
Python
DeepAlignmentNetwork/menpofit/lk/result.py
chiawei-liu/DeepAlignmentNetwork
52621cd2f697abe372b88c9ea0ee08f0d93b43d8
[ "MIT" ]
220
2019-09-01T01:52:04.000Z
2022-03-28T12:52:07.000Z
DeepAlignmentNetwork/menpofit/lk/result.py
chiawei-liu/DeepAlignmentNetwork
52621cd2f697abe372b88c9ea0ee08f0d93b43d8
[ "MIT" ]
80
2015-01-05T16:17:39.000Z
2020-11-22T13:42:00.000Z
DeepAlignmentNetwork/menpofit/lk/result.py
chiawei-liu/DeepAlignmentNetwork
52621cd2f697abe372b88c9ea0ee08f0d93b43d8
[ "MIT" ]
64
2015-02-02T15:11:38.000Z
2022-02-28T06:19:31.000Z
from menpofit.result import (ParametricIterativeResult, MultiScaleParametricIterativeResult)
44
80
0.670455
9a831450ccec04bdfc6f981e2f3e5d2ad9771f21
6,533
py
Python
source/model.py
BecauseWeCanStudios/LEGOVNO
97654da906e5d8ee999fea6dbc062914cc5710b2
[ "MIT" ]
null
null
null
source/model.py
BecauseWeCanStudios/LEGOVNO
97654da906e5d8ee999fea6dbc062914cc5710b2
[ "MIT" ]
null
null
null
source/model.py
BecauseWeCanStudios/LEGOVNO
97654da906e5d8ee999fea6dbc062914cc5710b2
[ "MIT" ]
null
null
null
import os import keras import skimage.io import keras_contrib.applications from metrics import * from mrcnn import utils from mrcnn import config from imgaug import augmenters as iaa from dataset import Dataset, PoseEstimationDataset import numpy as np import keras.backend as K import mrcnn.model as modellib
30.386047
123
0.743762
9a83696d4e899b64faddbb5626cfd880f1149543
442
py
Python
donations/urls.py
nanorepublica/django-donations
349aaf17029f3f9b4723fead3fa28dd85959f14e
[ "BSD-3-Clause" ]
9
2015-10-13T11:41:20.000Z
2020-11-30T04:38:43.000Z
donations/urls.py
nanorepublica/django-donations
349aaf17029f3f9b4723fead3fa28dd85959f14e
[ "BSD-3-Clause" ]
63
2015-10-22T17:41:27.000Z
2021-11-20T12:18:26.000Z
donations/urls.py
nanorepublica/django-donations
349aaf17029f3f9b4723fead3fa28dd85959f14e
[ "BSD-3-Clause" ]
3
2017-08-29T02:44:12.000Z
2020-04-07T23:43:12.000Z
from django.conf.urls import include, url from donations.views import DonateAPI, VerifyAPI app_name = 'donations' api_urls = ([ url(r'^donate/$', DonateAPI.as_view(), name="donate"), url(r'^verify/(?P<pk>[0-9]+)$', VerifyAPI.as_view(), name="verify"), ], "donations") donations = ([ url(r'^api/', include...
23.263158
72
0.651584
9a83981c040624137fa42558baa04d53d347c0fc
3,004
py
Python
orc8r/tools/fab/vagrant.py
idoshveki/magma
8022267bd8b8d94913fbb9a0836880361d785446
[ "BSD-3-Clause" ]
2
2020-11-05T18:58:26.000Z
2021-02-09T06:42:49.000Z
orc8r/tools/fab/vagrant.py
idoshveki/magma
8022267bd8b8d94913fbb9a0836880361d785446
[ "BSD-3-Clause" ]
10
2021-03-31T20:19:00.000Z
2022-02-19T07:09:57.000Z
orc8r/tools/fab/vagrant.py
119Vik/magma-1
107a7b374466a837fc0a49b283ba9d6ff1d702e3
[ "BSD-3-Clause" ]
3
2020-08-20T18:45:34.000Z
2020-08-20T20:18:42.000Z
""" Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. """ import os.path from fabric.api import local from fabric.api import env def __ensure_in_vagrant_dir(): """ ...
31.957447
81
0.617843
9a83eb7c6cde3a0afbb0a6028180ce05131c4869
1,988
py
Python
cp_multiply/examples/make_box_packing_cp.py
gkonjevod/multiply_CP
2410d242a29a340db8184e127d05c5da9d26f1b4
[ "MIT" ]
null
null
null
cp_multiply/examples/make_box_packing_cp.py
gkonjevod/multiply_CP
2410d242a29a340db8184e127d05c5da9d26f1b4
[ "MIT" ]
null
null
null
cp_multiply/examples/make_box_packing_cp.py
gkonjevod/multiply_CP
2410d242a29a340db8184e127d05c5da9d26f1b4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Feb 19 23:38:25 2022 @author: goran """ from ..general_cp import GeneralCP from ..cp_utils import to_degrees, dihedral_angle, normal from math import sqrt, pi, tan, atan2 box_packing_cell_nodes = {'A': (2, 0), 'B': (4, 0), ...
30.121212
94
0.454728
9a862a138eaba7a151db1b55e4b4a041ae8dbd8a
11,001
py
Python
kq/queue.py
grofers/kq
1fc96e2a189901b91fdcde7f829b021b6555e217
[ "MIT" ]
null
null
null
kq/queue.py
grofers/kq
1fc96e2a189901b91fdcde7f829b021b6555e217
[ "MIT" ]
2
2018-09-24T15:43:48.000Z
2020-06-23T11:15:17.000Z
kq/queue.py
grofers/kq
1fc96e2a189901b91fdcde7f829b021b6555e217
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals import functools import logging import time import uuid import dill import kafka from kafka.errors import KafkaError from kq.job import Job def enqueue_with_key(self, key, obj, *args, **kwargs): """Place the function call (or the ...
32.937126
78
0.579947
9a87b0a003cfac44c4b71f5b09ccd17d4a3eced1
8,683
py
Python
python/accel_adxl345/accel_adxl345.py
iorodeo/accel_adxl345
aadbca1c57840f66a61556ff02e72e8b8e4e93e0
[ "Apache-2.0" ]
null
null
null
python/accel_adxl345/accel_adxl345.py
iorodeo/accel_adxl345
aadbca1c57840f66a61556ff02e72e8b8e4e93e0
[ "Apache-2.0" ]
null
null
null
python/accel_adxl345/accel_adxl345.py
iorodeo/accel_adxl345
aadbca1c57840f66a61556ff02e72e8b8e4e93e0
[ "Apache-2.0" ]
null
null
null
""" accel_adxl345.py This modules defines the AccelADXL345 class for streaming data from the ADXL345 accelerometers. """ import time import serial import sys import numpy import struct BUF_EMPTY_NUM = 5 BUF_EMPTY_DT = 0.05
27.741214
86
0.524012
9a8866fd681b05cff1de0c32ef8dae40aefe5351
831
py
Python
polling_stations/apps/data_collection/management/commands/import_tower_hamlets.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_tower_hamlets.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_tower_hamlets.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter
34.625
82
0.683514
9a89981de0ecebc2323be5e00e13a157cd8dc62f
8,490
py
Python
pynaja/common/struct.py
xiaoxiamiya/naja
222c3e1135bbd2b9a02181273a8a70201fbdf0f5
[ "Apache-2.0" ]
1
2021-09-07T07:13:53.000Z
2021-09-07T07:13:53.000Z
pynaja/common/struct.py
xiaoxiamiya/naja
222c3e1135bbd2b9a02181273a8a70201fbdf0f5
[ "Apache-2.0" ]
null
null
null
pynaja/common/struct.py
xiaoxiamiya/naja
222c3e1135bbd2b9a02181273a8a70201fbdf0f5
[ "Apache-2.0" ]
null
null
null
import struct from collections import OrderedDict from configparser import RawConfigParser from pynaja.common.async_base import Utils from pynaja.common.error import ConstError
21.493671
74
0.607538
9a8b2c9a4fe128befea072dd96f7b456a616ecd8
15,178
py
Python
YOLO/Stronger-yolo-pytorch/port2tf/yolov3.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
12
2020-03-25T01:24:22.000Z
2021-09-18T06:40:16.000Z
YOLO/Stronger-yolo-pytorch/port2tf/yolov3.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
1
2020-04-22T07:52:36.000Z
2020-04-22T07:52:36.000Z
YOLO/Stronger-yolo-pytorch/port2tf/yolov3.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
4
2020-03-25T01:24:26.000Z
2020-09-20T11:29:09.000Z
# coding:utf-8 import numpy as np import tensorflow as tf from layers import * from MobilenetV2 import MobilenetV2,MobilenetV2_dynamic
80.306878
158
0.566346
9a8ce9049f7230937ae69e4978f32515e2f46236
654
py
Python
saltlint/rules/CmdWaitRecommendRule.py
Poulpatine/salt-lint
304917d95d2730e7df8bd7b5dd29a3bd77c80250
[ "MIT" ]
null
null
null
saltlint/rules/CmdWaitRecommendRule.py
Poulpatine/salt-lint
304917d95d2730e7df8bd7b5dd29a3bd77c80250
[ "MIT" ]
null
null
null
saltlint/rules/CmdWaitRecommendRule.py
Poulpatine/salt-lint
304917d95d2730e7df8bd7b5dd29a3bd77c80250
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020 Warpnet B.V. import re from saltlint.linter.rule import DeprecationRule from saltlint.utils import LANGUAGE_SLS
28.434783
100
0.697248
9a8d3871c093dea84d65b938bf3c599a010db785
7,818
py
Python
sdks/python/apache_beam/ml/inference/pytorch_test.py
hengfengli/beam
83a8855e5997e0311e6274c03bcb38f94efbf8ef
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/ml/inference/pytorch_test.py
hengfengli/beam
83a8855e5997e0311e6274c03bcb38f94efbf8ef
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
sdks/python/apache_beam/ml/inference/pytorch_test.py
hengfengli/beam
83a8855e5997e0311e6274c03bcb38f94efbf8ef
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) 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 us...
37.228571
80
0.661678
9a8deeda4be2011a1d0dba2c5373aa43b91fc628
6,636
py
Python
example/test/L20_snake.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
2
2021-12-18T06:34:26.000Z
2022-01-05T05:08:47.000Z
example/test/L20_snake.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
example/test/L20_snake.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
import pygame import sys import time import random from pygame.locals import * # Pygame Init pygame.init() # Play Surface size = width, height = 800, 800 screen = pygame.display.set_mode(size) pygame.display.set_caption("Snake Change") # Colors red = (255, 0, 0) green = (0, 255, 0) black = (0, 0, 0) white = (255, 25...
25.231939
109
0.518987
9a8e3182ccf25a9266ba55ff765c256d44cf7bcc
4,203
py
Python
readgadget/readrockstar.py
danielmarostica/pygadgetreader
977949da7fcb6585f3e0270019d369c6967b317c
[ "BSD-3-Clause" ]
6
2020-09-02T21:11:59.000Z
2021-09-24T16:12:44.000Z
readgadget/readrockstar.py
danielmarostica/pygadgetreader
977949da7fcb6585f3e0270019d369c6967b317c
[ "BSD-3-Clause" ]
1
2021-09-24T14:40:03.000Z
2021-09-25T20:07:13.000Z
readgadget/readrockstar.py
danielmarostica/pygadgetreader
977949da7fcb6585f3e0270019d369c6967b317c
[ "BSD-3-Clause" ]
1
2020-11-18T19:15:39.000Z
2020-11-18T19:15:39.000Z
from .modules.common import * import numpy as np import os from .modules.rs_structs import getRSformat def compileReturnArray(RS,data): """compile data from RS binary and return requested value""" arr = [] singleval = False ## return particle ID data if data == 'particles': npart = 0 ...
30.23741
93
0.578158
9a8e4ada3be3bb52b1edcd6ad889f5b0b8142092
7,019
py
Python
src/backend/preprocess/preprocess_helper.py
scmc/vch-mri
ffd2a7b60d770a76b545ce271f85e12f53cfb3ad
[ "MIT" ]
1
2021-12-01T23:40:20.000Z
2021-12-01T23:40:20.000Z
src/backend/preprocess/preprocess_helper.py
scmc/vch-mri
ffd2a7b60d770a76b545ce271f85e12f53cfb3ad
[ "MIT" ]
5
2021-03-11T03:07:38.000Z
2021-03-11T03:11:43.000Z
src/backend/preprocess/preprocess_helper.py
scmc/vch-mri
ffd2a7b60d770a76b545ce271f85e12f53cfb3ad
[ "MIT" ]
18
2020-12-30T22:04:44.000Z
2021-12-01T23:40:23.000Z
import boto3 from datetime import datetime, date import re import string import pandas as pd from spellchecker import SpellChecker import uuid import psycopg2 from psycopg2 import sql import sys sys.path.append('.') from rule_processing import postgresql compr = boto3.client(service_name='comprehend') compr_m = bot...
34.747525
105
0.540248
9a8e57b168ea55c696b5fec3c4c437440c05734d
1,182
py
Python
script_example.py
op8867555/BGmi
22a7b0292f0fe435e87208154826d8f5baeb7b67
[ "MIT" ]
null
null
null
script_example.py
op8867555/BGmi
22a7b0292f0fe435e87208154826d8f5baeb7b67
[ "MIT" ]
null
null
null
script_example.py
op8867555/BGmi
22a7b0292f0fe435e87208154826d8f5baeb7b67
[ "MIT" ]
null
null
null
import datetime from bgmi.script import ScriptBase from bgmi.utils import parse_episode if __name__ == "__main__": s = Script() print(s.get_download_url())
26.863636
86
0.5
9a8e626f8a8e604d6b65b5bcce02a4426d19dada
677
py
Python
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/10. Exercise - Functions Advanced/11_fill_the_box.py
kzborisov/SoftUni
ccb2b8850adc79bfb2652a45124c3ff11183412e
[ "MIT" ]
1
2021-02-07T07:51:12.000Z
2021-02-07T07:51:12.000Z
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/10. Exercise - Functions Advanced/11_fill_the_box.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/10. Exercise - Functions Advanced/11_fill_the_box.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
from collections import deque print(fill_the_box(2, 8, 2, 2, 1, 7, 3, 1, 5, "Finish")) print(fill_the_box(5, 5, 2, 40, 11, 7, 3, 1, 5, "Finish")) print(fill_the_box(10, 10, 10, 40, "Finish", 2, 15, 30))
29.434783
92
0.583456
9a8fedf028eb554590720a2eafe70d6a08a4c617
19,617
py
Python
src/the_tale/the_tale/common/utils/views.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/common/utils/views.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/common/utils/views.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() # for external code ViewError = utils_exceptions.ViewError # TODO: write metaclass for processing processor arguments # TODO: refactor error/errors # TODO: refactor error/errors def mime_type_to_response_type(content_type): if content_type...
30.18
144
0.62247
9a90d892378e62b46598d590087d4afcc5ce7a6c
269
py
Python
NeoAnalysis_Py2.7/NeoAnalysis/__init__.py
Research-lab-KUMS/NeoAnalysis
32b508dfade3069b1ec5cc7664574b8d3f2d5f57
[ "MIT" ]
23
2017-09-04T13:20:38.000Z
2022-03-08T08:15:17.000Z
NeoAnalysis_Py2.7/NeoAnalysis/__init__.py
Research-lab-KUMS/NeoAnalysis
32b508dfade3069b1ec5cc7664574b8d3f2d5f57
[ "MIT" ]
4
2018-01-05T13:44:29.000Z
2021-09-30T17:08:15.000Z
NeoAnalysis_Py2.7/NeoAnalysis/__init__.py
neoanalysis/NeoAnalysis
c5f25b71e16997f3a05f70b1eead11f99a3b7e2b
[ "MIT" ]
5
2017-11-26T19:40:46.000Z
2021-03-11T17:25:23.000Z
__version__ = '0.10.0' from NeoAnalysis.spikedetection import SpikeDetection from NeoAnalysis.spikesorting import SpikeSorting from NeoAnalysis.analogfilter import AnalogFilter from NeoAnalysis.graphics import Graphics from NeoAnalysis.popuanalysis import PopuAnalysis
38.428571
53
0.877323
9a91a0bb1c2222107ec4d2fbb68724bb0b797301
247
py
Python
paperplane/backends/click/choice.py
abhilash1in/paperplane
1dfda182dc8a70fe08fa2284ea63b434246c394b
[ "MIT" ]
null
null
null
paperplane/backends/click/choice.py
abhilash1in/paperplane
1dfda182dc8a70fe08fa2284ea63b434246c394b
[ "MIT" ]
null
null
null
paperplane/backends/click/choice.py
abhilash1in/paperplane
1dfda182dc8a70fe08fa2284ea63b434246c394b
[ "MIT" ]
null
null
null
import click from typing import Any, Optional from paperplane.backends.click import _prompt
30.875
84
0.777328
9a95474d7bed8dc0c9bdace087bfb79423d63386
1,012
py
Python
lib/python/treadmill/api/nodeinfo.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
2
2017-10-31T18:48:20.000Z
2018-03-04T20:35:20.000Z
lib/python/treadmill/api/nodeinfo.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill/api/nodeinfo.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
"""Implementation of allocation API. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from treadmill import discovery from treadmill import context _LOGGER = logging.getLogger(__name__)
24.095238
66
0.609684
9a95d81d2c4081cc80031302b6a6bfe2482c9c94
167
py
Python
new/views.py
Sravan996/django
3a982382d5cfe9bfb498534f1effcf58a3771539
[ "MIT" ]
null
null
null
new/views.py
Sravan996/django
3a982382d5cfe9bfb498534f1effcf58a3771539
[ "MIT" ]
null
null
null
new/views.py
Sravan996/django
3a982382d5cfe9bfb498534f1effcf58a3771539
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.shortcuts import HttpResponse # Create your views here.
20.875
41
0.790419
9a969dcb4bdc1a8eee56b110c60c1611472a3520
1,834
py
Python
bob-ross/cluster-paintings.py
h4ckfu/data
bdc02fd5051dfb31e42f8e078832ceead92f9958
[ "CC-BY-4.0" ]
16,124
2015-01-01T06:18:12.000Z
2022-03-31T00:46:52.000Z
bob-ross/cluster-paintings.py
h4ckfu/data
bdc02fd5051dfb31e42f8e078832ceead92f9958
[ "CC-BY-4.0" ]
179
2015-01-07T10:19:57.000Z
2022-02-21T21:19:14.000Z
bob-ross/cluster-paintings.py
h4ckfu/data
bdc02fd5051dfb31e42f8e078832ceead92f9958
[ "CC-BY-4.0" ]
12,163
2015-01-03T14:23:36.000Z
2022-03-31T10:10:23.000Z
""" Clusters Bob Ross paintings by features. By Walter Hickey <walter.hickey@fivethirtyeight.com> See http://fivethirtyeight.com/features/a-statistical-analysis-of-the-work-of-bob-ross/ """ import numpy as np from scipy.cluster.vq import vq, kmeans, whiten import math import csv if __name__ == "__main__": main(...
31.084746
93
0.640676
9a96b491ff08bc06ac888649b8beb70e3e05070b
880
py
Python
corvette/__init__.py
philipkiely/corvette
71632f9ed9d628c207c79f6f1b2ee98d911657b7
[ "MIT" ]
null
null
null
corvette/__init__.py
philipkiely/corvette
71632f9ed9d628c207c79f6f1b2ee98d911657b7
[ "MIT" ]
null
null
null
corvette/__init__.py
philipkiely/corvette
71632f9ed9d628c207c79f6f1b2ee98d911657b7
[ "MIT" ]
null
null
null
import os import sys import json from corvette.autoindex import autoindex
30.344828
71
0.643182
9a970d49581e1f0dbf4db3373345dd1070a85ab1
1,965
py
Python
main.py
theoboldt/pitemp
366f2d1459144fa7f5e3e5526ee0a4e334f52d37
[ "Apache-2.0" ]
null
null
null
main.py
theoboldt/pitemp
366f2d1459144fa7f5e3e5526ee0a4e334f52d37
[ "Apache-2.0" ]
null
null
null
main.py
theoboldt/pitemp
366f2d1459144fa7f5e3e5526ee0a4e334f52d37
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sensor import lcd import csv import time import os import datetime import sys import re import circular_buffer lcd.init() last_time = datetime.datetime.now() last_minute = last_time.minute probe_minute_01 = circular_buffer.CircularBuffer(size=30) probe_minute_15 = circular_buffer.CircularBu...
30.230769
110
0.679898
9a9716f606a1775600dbcfac690fb2f212514d33
9,988
py
Python
package/github-endpoints.py
wahyu9kdl/wahyu9kdl.github.io
c7c8ee1c3e7a2eb072467cb43e979ef4fc76d6fa
[ "MIT" ]
2
2021-12-05T22:40:52.000Z
2022-01-17T08:48:13.000Z
package/github-endpoints.py
wahyu9kdl/wahyu9kdl.github.io
c7c8ee1c3e7a2eb072467cb43e979ef4fc76d6fa
[ "MIT" ]
1
2022-01-12T13:58:28.000Z
2022-01-12T13:58:28.000Z
package/github-endpoints.py
wahyu9kdl/wahyu9kdl.github.io
c7c8ee1c3e7a2eb072467cb43e979ef4fc76d6fa
[ "MIT" ]
1
2022-01-12T19:20:26.000Z
2022-01-12T19:20:26.000Z
#!/usr/bin/python3 # I don't believe in license. # You can do whatever you want with this program. import os import sys import re import time import requests import random import argparse from urllib.parse import urlparse from functools import partial from colored import fg, bg, attr from multiprocessing.dummy import...
31.507886
135
0.505406
9a983eb032aad5191f1e045e13d058aec5f59848
7,952
py
Python
information111/info/user/views.py
SNxiaobei/text
637018ff89d992c2ed23f5c90fa2010023bc2ff3
[ "MIT" ]
null
null
null
information111/info/user/views.py
SNxiaobei/text
637018ff89d992c2ed23f5c90fa2010023bc2ff3
[ "MIT" ]
null
null
null
information111/info/user/views.py
SNxiaobei/text
637018ff89d992c2ed23f5c90fa2010023bc2ff3
[ "MIT" ]
null
null
null
from flask import abort from flask import current_app from flask import g from flask import request from flask import session from info import constants from info import db from info.models import Category, News, User from info.utils.response_code import RET from . import profile_blue from flask import render_template...
26.774411
106
0.649774
9a9a15482e95aa7f0388513fb55229cb50c955bb
962
py
Python
code/magicsquares/mgsq/three_by_three.py
gerritjvv/blog
26dbba7b38ed7aae63467720fcac2d95da1a0d7f
[ "MIT" ]
null
null
null
code/magicsquares/mgsq/three_by_three.py
gerritjvv/blog
26dbba7b38ed7aae63467720fcac2d95da1a0d7f
[ "MIT" ]
null
null
null
code/magicsquares/mgsq/three_by_three.py
gerritjvv/blog
26dbba7b38ed7aae63467720fcac2d95da1a0d7f
[ "MIT" ]
null
null
null
""" Solves a 3x3 square programmatically. It is not meant to be a full blown solution for magic squares, but rather a writeup of my thoughts on how it can be solved. """ import statistics def make_pairs(I, mid): """ We take pairs as [ [9, 1], [8, 2], [7, 3], [6, 4]] :param I: :param mid: :return:...
20.041667
83
0.546778
9a9a50511abf52afcd61e02d8aeff1032454c0a6
3,379
py
Python
utils/videoJob.py
dbpeng/aws-lambda-python-example-zencoder
3c3e2d2ea88be824a62e41f16d6bdd79deeef2a0
[ "MIT" ]
1
2018-05-01T11:54:33.000Z
2018-05-01T11:54:33.000Z
utils/videoJob.py
dbpeng/aws-lambda-python-example-zencoder
3c3e2d2ea88be824a62e41f16d6bdd79deeef2a0
[ "MIT" ]
1
2021-06-01T22:18:53.000Z
2021-06-01T22:18:53.000Z
utils/videoJob.py
dbpeng/aws-lambda-python-example-zencoder
3c3e2d2ea88be824a62e41f16d6bdd79deeef2a0
[ "MIT" ]
null
null
null
import os import sys from sqlalchemy import Column, ForeignKey, Integer, String, DateTime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine from datetime import datetime import json from base import Session, engine, Base from enum import...
25.406015
76
0.629772
9a9af8b29d8ddd5b44627798d65817d8e0c206e0
3,411
py
Python
alipay/aop/api/domain/MybankCreditSceneprodCommonQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MybankCreditSceneprodCommonQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MybankCreditSceneprodCommonQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import *
29.405172
79
0.588977
9a9d13bd5f6b65068699065c4f4e5d2b6027979d
32,570
py
Python
train_end2end.py
lyn1874/daml
edd89c3baf018cdb407208d137364fcefd913896
[ "MIT" ]
null
null
null
train_end2end.py
lyn1874/daml
edd89c3baf018cdb407208d137364fcefd913896
[ "MIT" ]
null
null
null
train_end2end.py
lyn1874/daml
edd89c3baf018cdb407208d137364fcefd913896
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 13 18:23:08 2019 This scrip is for training the experiement end2end @author: li """ import tensorflow as tf import models.AE as AE import optimization.loss_tf as loss_tf from data import read_frame_temporal as rft import numpy as np import os import ...
49.725191
142
0.576727
9a9d1d892502aafdc91f1a1eaee4fb13e479814b
10,781
py
Python
cellfinder_napari/detect.py
neuromusic/cellfinder-napari
9a58a3b2174c5cb4c740ace6373744b5bcc4cc3d
[ "BSD-3-Clause" ]
7
2021-03-03T11:58:24.000Z
2021-12-24T08:40:12.000Z
cellfinder_napari/detect.py
neuromusic/cellfinder-napari
9a58a3b2174c5cb4c740ace6373744b5bcc4cc3d
[ "BSD-3-Clause" ]
87
2021-03-08T18:58:26.000Z
2022-03-30T15:37:08.000Z
cellfinder_napari/detect.py
neuromusic/cellfinder-napari
9a58a3b2174c5cb4c740ace6373744b5bcc4cc3d
[ "BSD-3-Clause" ]
5
2021-05-26T19:23:50.000Z
2022-03-06T13:03:13.000Z
import napari from pathlib import Path from magicgui import magicgui from typing import List from cellfinder_napari.utils import brainglobe_logo # TODO: # how to store & fetch pre-trained models? # TODO: params to add NETWORK_VOXEL_SIZES = [5, 1, 1] CUBE_WIDTH = 50 CUBE_HEIGHT = 20 CUBE_DEPTH = 20 # If using ROI, h...
32.969419
119
0.576384
9a9de9279be39ea51b643d07bcacfa3cc557f3f2
1,414
py
Python
setup.py
paxtonfitzpatrick/nltools
9d52e2e1d665a21feb641ab16424e450aca0c971
[ "MIT" ]
65
2018-08-26T19:39:11.000Z
2022-02-20T10:32:58.000Z
setup.py
paxtonfitzpatrick/nltools
9d52e2e1d665a21feb641ab16424e450aca0c971
[ "MIT" ]
138
2018-08-15T22:31:45.000Z
2022-02-14T18:23:46.000Z
setup.py
paxtonfitzpatrick/nltools
9d52e2e1d665a21feb641ab16424e450aca0c971
[ "MIT" ]
18
2018-08-23T16:52:35.000Z
2022-02-24T01:52:27.000Z
from setuptools import setup, find_packages version = {} with open("nltools/version.py") as f: exec(f.read(), version) with open("requirements.txt") as f: requirements = f.read().splitlines() extra_setuptools_args = dict(tests_require=["pytest"]) setup( name="nltools", version=version["__version__"]...
35.35
79
0.681047
9a9e35c047e006353fb6423b17d95459f785de56
4,028
py
Python
{{ cookiecutter.repo_name }}/src/config/config.py
johanngerberding/cookiecutter-data-science
db44c48cdce4886d42b610c04e758d758f834e32
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/src/config/config.py
johanngerberding/cookiecutter-data-science
db44c48cdce4886d42b610c04e758d758f834e32
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/src/config/config.py
johanngerberding/cookiecutter-data-science
db44c48cdce4886d42b610c04e758d758f834e32
[ "MIT" ]
null
null
null
import os import warnings from dotenv import find_dotenv, load_dotenv from yacs.config import CfgNode as ConfigurationNode from pathlib import Path # Please configure your own settings here # # YACS overwrite these settings using YAML __C = ConfigurationNode() ### EXAMPLE ### """ # data augmentation parameters with...
30.984615
115
0.712512
9a9e673814218a6b691d7522f64cfb8d20627d8f
475
py
Python
section_7/ex 30.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
section_7/ex 30.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
section_7/ex 30.py
thiagofreitascarneiro/Python-avancado-Geek-University
861b742ad6b30955fcbe63274b8cf8afc6ca028f
[ "MIT" ]
null
null
null
list1 = [] list2 = [] list3 = [] cont = 0 while cont < 10: valor = int(input('Digite um numero na lista 1: ')) list1.append(valor) valor2 = int(input('Digite um numero na lista 2: ')) list2.append(valor2) cont = cont + 1 if cont == 10: for i in list1: if i in list2: ...
23.75
65
0.562105
9a9ee79fbb5396d6313eb8172811069d5e290bd2
7,693
py
Python
scripts/eval/eval.py
p0l0satik/PlaneDetector
60d7330537b90ff0ca74247cd6dac2ca7fc627bc
[ "MIT" ]
null
null
null
scripts/eval/eval.py
p0l0satik/PlaneDetector
60d7330537b90ff0ca74247cd6dac2ca7fc627bc
[ "MIT" ]
null
null
null
scripts/eval/eval.py
p0l0satik/PlaneDetector
60d7330537b90ff0ca74247cd6dac2ca7fc627bc
[ "MIT" ]
null
null
null
import os from shutil import rmtree import cv2 import docker import numpy as np import open3d as o3d from pypcd import pypcd from src.metrics import metrics from src.metrics.metrics import multi_value, mean from src.parser import loaders, create_parser UNSEGMENTED_COLOR = np.asarray([0, 0, 0], dtype=int) algos = { ...
38.273632
118
0.66203
9a9f85fc451de9881426ccefc8e13f03669bb8d6
491
py
Python
cosmogrb/utils/fits_file.py
wematthias/cosmogrb
09852eb4e6e7315bbede507e19a2d57f1b927c3f
[ "BSD-2-Clause" ]
3
2020-03-08T18:20:32.000Z
2022-03-10T17:27:26.000Z
cosmogrb/utils/fits_file.py
wematthias/cosmogrb
09852eb4e6e7315bbede507e19a2d57f1b927c3f
[ "BSD-2-Clause" ]
11
2020-03-04T17:21:15.000Z
2020-06-09T12:20:00.000Z
cosmogrb/utils/fits_file.py
wematthias/cosmogrb
09852eb4e6e7315bbede507e19a2d57f1b927c3f
[ "BSD-2-Clause" ]
5
2020-03-18T18:05:05.000Z
2022-03-21T16:06:38.000Z
from responsum.utils.fits_file import FITSFile, FITSExtension as FE import pkg_resources
32.733333
106
0.757637
9a9fb2cd7765697e57d5b413e5af8232b235432f
121,557
py
Python
mi/instrument/seabird/sbe26plus/driver.py
rhan1498/marine-integrations
ad94c865e0e4cc7c8fd337870410c74b57d5c826
[ "BSD-2-Clause" ]
null
null
null
mi/instrument/seabird/sbe26plus/driver.py
rhan1498/marine-integrations
ad94c865e0e4cc7c8fd337870410c74b57d5c826
[ "BSD-2-Clause" ]
null
null
null
mi/instrument/seabird/sbe26plus/driver.py
rhan1498/marine-integrations
ad94c865e0e4cc7c8fd337870410c74b57d5c826
[ "BSD-2-Clause" ]
null
null
null
""" @package mi.instrument.seabird.sbe26plus.ooicore.driver @file /Users/unwin/OOI/Workspace/code/marine-integrations/mi/instrument/seabird/sbe26plus/ooicore/driver.py @author Roger Unwin @brief Driver for the ooicore Release notes: None. """ __author__ = 'Roger Unwin' __license__ = 'Apache 2.0' import re import tim...
45.054485
167
0.613276
9a9fc338c15aa55b529d0d570899ecd61a1b41cd
514
py
Python
Strings/count-index-find.py
tverma332/python3
544c4ec9c726c37293c8da5799f50575cc50852d
[ "MIT" ]
3
2022-03-28T09:10:08.000Z
2022-03-29T10:47:56.000Z
Strings/count-index-find.py
tverma332/python3
544c4ec9c726c37293c8da5799f50575cc50852d
[ "MIT" ]
1
2022-03-27T11:52:58.000Z
2022-03-27T11:52:58.000Z
Strings/count-index-find.py
tverma332/python3
544c4ec9c726c37293c8da5799f50575cc50852d
[ "MIT" ]
null
null
null
# 1) count = To count how many time a particular word & char. is appearing x = "Keep grinding keep hustling" print(x.count("t")) # 2) index = To get index of letter(gives the lowest index) x="Keep grinding keep hustling" print(x.index("t")) # will give the lowest index value of (t) # 3) find = To get index of lett...
25.7
82
0.684825