blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
99ef6554d27b4f0a9b0dfd3e41bc1a933807db78
d22450fc2e66f624a1b63b127f7095974bd93b58
/iupload/forms.py
400df7780bc1ea86cb3bfe2703e707829d11fdfd
[]
no_license
openxe/iUpload
4b936a0cb5629dddaefbf2d3d52e838cadaafc47
c125d60057c5c55e5b0bc6aadf855fe04ad08011
refs/heads/master
2021-01-01T17:01:15.078869
2013-08-03T13:21:49
2013-08-03T13:21:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
893
py
# -*- coding: utf-8 -*- from django import forms from django.template.defaultfilters import filesizeformat from django.utils.translation import ugettext_lazy as _ from django.conf import settings from iupload.models import Images class ImagesForm(forms.ModelForm): def clean_file(self): content = self.cleaned_...
[ "openxe@yandex.ru" ]
openxe@yandex.ru
87e99fe3952f49f02cf8c50c98772bf298be2f40
742a0336851aca71fc2c49ae08867de3719763e0
/pyskew/isochron.py
ba5e0359bb191152b091790b4680e849aa877cf1
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Rice-Tectonics-Group/PySkew
96a23b793e12e52a1cf360b00ef2e19bc60d87f4
723eeccb15f254ac4b3f14c2c6fb8de988b0d9c5
refs/heads/master
2022-08-12T14:58:57.048209
2022-08-01T15:21:57
2022-08-01T15:21:57
110,262,737
2
1
null
null
null
null
UTF-8
Python
false
false
549
py
import os,sys from .utilities import * def open_isochron_file(iso_path): """ opens isochron file and returns it's data in a nested hashmap structure """ pass def get_isochron_files(iso_dir=""): """ gets all .iso files in the standard iso directory so they can be read """ pass def conv...
[ "kevin.gaastra@gmail.com" ]
kevin.gaastra@gmail.com
6554de078309dbfdcfa8d8ac01c20691fcc358e9
c6fae7eb79c15b6d29c54bf437f71570d90e389f
/resnet/main.py
120b25b78c5c76d34668711a7b30914bdc940096
[]
no_license
0oljyo0/Depth-Evaluation
34bce2270284a27dff24906765266b246dffb3cd
19ea01c8b1cc9e116e2e3390dc9e16ddc806dd19
refs/heads/master
2020-05-14T08:32:34.264487
2019-04-16T16:13:48
2019-04-16T16:13:48
181,724,604
1
0
null
null
null
null
UTF-8
Python
false
false
9,264
py
import tensorflow as tf import cv2 import numpy as np import os import matplotlib.pyplot as plt import pandas as pd import math batch_size = 30 input_size = [batch_size,271,338,3] output_size = [batch_size,271,338] step_num = 10000000 shrink = 10 base_learning_rate = 0.0009 examples_num = 200 decay_rate = 0.99 def ...
[ "noreply@github.com" ]
noreply@github.com
57613b4889c077bd17e83de414104a8315ad6bc5
a361a50a8d48ca7b582d94bc5ec4229a4ca0e75c
/enc_dec.py
ed60bd4417c3e504f10581848c54c64fb3496e59
[]
no_license
mastercaojie/gte-vnmt-pytorch
728063722176856f5eb0debeefcfaf17782426f9
ef588eccf90c5689f64c0137c79165f6a08ea289
refs/heads/master
2020-04-04T16:01:37.782634
2018-01-30T15:08:17
2018-01-30T15:08:17
156,061,824
1
0
null
2018-11-04T08:11:37
2018-11-04T09:11:37
null
UTF-8
Python
false
false
20,297
py
# ref: https://github.com/suragnair/seqGAN/blob/master/generator.py import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import numpy as np import pdb import math import torch.nn.init as init from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from t...
[ "ggando@umass.edu" ]
ggando@umass.edu
952864ce7904fc1199cb55db3743982e823bc1c3
1b461ec82c8dd1099021ce3a32a7f649fa970226
/Exercises/warm_up_bar_coding_string_match.py
4a3a9d80d11b210caf26c8c7eb8bcb83eb67f669
[]
no_license
AdamSierzan/Learn-to-code-in-Python-3-basics
9df20c80c33f40da8800d257ee2ec05881198419
ef298bcba72250e19080283cb81dbecf6a245563
refs/heads/master
2022-11-06T00:48:17.413322
2020-06-16T20:52:08
2020-06-16T20:52:08
250,247,475
0
0
null
null
null
null
UTF-8
Python
false
false
116
py
#def string_match(a, b): a = "xxcaazz" b = 'xxbaaz' for i in (len(a)): print(i,a[+1]) print(a[0],a[1])
[ "adagioo1993@gmail.com" ]
adagioo1993@gmail.com
5dc889dc0c1f2810982948456bf114a88b209c77
7f94f2f997a048e8c76f453a1c37e63633e5bba8
/api/routes/Alerts.py
4a36fdf7fae228f3c6f0480f496bbf264296145f
[ "BSD-2-Clause" ]
permissive
fdemian/Morpheus
a9cd831528d84b25a71fbdad4ba8bf7b33b6cce8
9e5e2d7a8001e5239c45c633bf8dbc204fb05146
refs/heads/master
2021-01-17T11:08:48.569988
2017-06-08T23:12:39
2017-06-08T23:12:39
84,011,449
0
0
null
null
null
null
UTF-8
Python
false
false
4,990
py
import json from api.model.sessionHelper import get_session from api.model.models import Notification from api.authentication.AuthenticatedHandler import AuthenticatedHandler from sqlalchemy.orm.exc import NoResultFound, MultipleResultsFound from tornado.gen import coroutine from api.Utils import authenticated class ...
[ "demian.fc@gmail.com" ]
demian.fc@gmail.com
6cc928a4c5f3c52f9ccfc684d8dad6248633b1d6
a4b3d7f06fae622b6661e2d4f4b6814b2f93d9a9
/app/api/sandbox/models.py
6079eced07d9dad2adb977fe07872d9d74c6ce85
[ "BSD-3-Clause" ]
permissive
DenRomanen/FEDOT.Web
c816d2cfe0edae0cfab8e6267ac51a7c9472f0bd
9b6f7b66de277ea34d6d5ed621b99a3f938db61b
refs/heads/master
2023-08-26T10:29:38.476317
2021-10-06T12:32:06
2021-10-06T12:32:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
from dataclasses import dataclass @dataclass class PipelineEpochMapping: epoch_num: int pipeline_id: str @dataclass class SandboxDefaultParams: task_id: str dataset_name: str metric_id: str
[ "noreply@github.com" ]
noreply@github.com
149dba0e1675f0df57d7656777cc3faa264892c5
2d297bd2f277a0a358ad4c74caa70f07e81f5359
/django_api/urls.py
c6fcef05fc1f387e857e6dfba93432f6aef99cb9
[]
no_license
dhaladitya108/todo-restapi
d195e50919dc649eb743bda34ddc0c82210dee31
e6deb54c036afeda3c52a144c02fa865fd2f5cf2
refs/heads/master
2022-12-09T12:03:33.231452
2020-09-16T18:30:31
2020-09-16T18:30:31
285,088,240
0
0
null
2020-09-16T18:30:32
2020-08-04T20:08:12
Python
UTF-8
Python
false
false
799
py
"""django_api URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
[ "dhaladitya108@gmail.com" ]
dhaladitya108@gmail.com
1c5d7027fa5eef98de7966ca7557214e4071e0d1
84baad5eae2bd1adb53e71429b17dcb7198e27ab
/glance/glance/registry/db/migrate_repo/versions/007_add_owner.py
35414d7a3b34d642cd10393f39bf28fc6cb4b751
[ "Apache-2.0" ]
permissive
bopopescu/x7_dep
396812eb50f431ab776bc63b8fce5f10f091d221
9a216e6fa3abdba1f63f9d36a4947c2a27de2bb7
refs/heads/master
2022-11-21T20:06:02.235330
2012-11-14T15:25:39
2012-11-14T15:25:39
282,193,462
0
0
null
2020-07-24T10:42:38
2020-07-24T10:42:38
null
UTF-8
Python
false
false
2,589
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/...
[ "c@c-Latitude-E6410.(none)" ]
c@c-Latitude-E6410.(none)
5a083a5caacded4d0503d61b1eed6d0a6b641e29
0cf6728548830b42c60e37ea1c38b54d0e019ddd
/Learning_Quant/python金融大数据挖掘与分析全流程详解/chapter12.py
05cc6faabfc1d70c38f3d38fc05b14eb7a328704
[]
no_license
MuSaCN/PythonLearning
8efe166f66f2bd020d00b479421878d91f580298
507f1d82a9228d0209c416626566cf390e1cf758
refs/heads/master
2022-11-11T09:13:08.863712
2022-11-08T04:20:09
2022-11-08T04:20:09
299,617,217
2
2
null
null
null
null
UTF-8
Python
false
false
2,889
py
# Author:Zhang Yuan from MyPackage import * import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib.patches as patches import seaborn as sns import statsmodels.api as sm from scipy import stats #------------------------------------------------------------ __mypath__ = MyPath.MyClass_Pa...
[ "39754824+MuSaCN@users.noreply.github.com" ]
39754824+MuSaCN@users.noreply.github.com
fce42ce50c7b4a121405dcbb98556d946bd3fbac
57d8c8f129bfb7cd600fbc4f68f68d83e3451f68
/examples/stream/cusparse.py
dbae89766c3bebdaa3aab6eb50cccb7b905e886f
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
anurocks1/cupy
4f979c6b16ef7f53dcccebf944103e7ec7e3de3b
1011b8085228c978ffad2154aba4b31e71f97c14
refs/heads/master
2021-01-06T00:49:18.441306
2020-02-17T13:10:15
2020-02-17T13:10:15
241,181,747
2
0
MIT
2020-02-17T18:44:06
2020-02-17T18:44:06
null
UTF-8
Python
false
false
743
py
# nvprof --print-gpu-trace python examples/stream/cusparse.py import cupy def _make(xp, sp, dtype): data = xp.array([0, 1, 3, 2], dtype) indices = xp.array([0, 0, 2, 1], 'i') indptr = xp.array([0, 1, 2, 3, 4], 'i') # 0, 1, 0, 0 # 0, 0, 0, 2 # 0, 0, 3, 0 return sp.csc_matrix((data, indices,...
[ "sonots@gmail.com" ]
sonots@gmail.com
eec17a7a150d0ca9fa2b43b823e755f2626c7219
ce63b7ba68ab18c9ce0079086441c8dee69a53d1
/bayesian_relational/example2.py
5e7c00f32182a74c16720dd816be020e0682c4fb
[]
no_license
akrajewska/bayesian_relational
eca9c1ec8871634deac62cc5155bbc53752eadd6
0d398742769ea779769397de7416590694da62c0
refs/heads/master
2021-01-05T08:44:16.898102
2020-05-17T09:03:51
2020-05-17T09:03:51
240,959,516
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
from bayesian_relational.crp import * from data.initial_data import * from evaluation.ecdf import * G = solution(20) G_init = initial_graph(20) z = initial_classes(20) error = 10 ** -8 initial = G_init, z, [] solution = G_init, z runtimes = meausure(step, initial, score, solution, error, sample_size=SAMPLE_SIZE, max...
[ "antonina.krajewska@gmail.com" ]
antonina.krajewska@gmail.com
f27837e23b09a26eefdf2310dfb8b68e4031e84d
0822d36728e9ed1d4e91d8ee8b5ea39010ac9371
/robo/pages/mato_grosso_do_sul/jd1noticias.py
738245155ef16987361a670e3484ee9f0add3ad5
[]
no_license
diegothuran/blog
11161e6f425d08bf7689190eac0ca5bd7cb65dd7
233135a1db24541de98a7aeffd840cf51e5e462e
refs/heads/master
2022-12-08T14:03:02.876353
2019-06-05T17:57:55
2019-06-05T17:57:55
176,329,704
0
0
null
2022-12-08T04:53:02
2019-03-18T16:46:43
Python
UTF-8
Python
false
false
924
py
# coding: utf-8 import sys sys.path.insert(0, '../../../blog') from bs4 import BeautifulSoup import requests from robo.pages.util.constantes import PAGE_LIMIT GLOBAL_RANK = 1125849 RANK_BRAZIL = 31946 NAME = 'jd1noticias.com' def get_urls(): try: urls = [] for i in range(1, PAGE_LIM...
[ "diego.thuran@gmail.com" ]
diego.thuran@gmail.com
299c3360d98aebb3d35976830345e1b5570228f7
5ae3bc1920fafc33693cdfa3928a48158aa6f725
/315/315-Segment.py
d49170abb3a3388d343616b67714c0002c5e9626
[]
no_license
sjzyjc/leetcode
2d0764aec6681d567bffd8ff9a8cc482c44336c2
5e09a5d36ac55d782628a888ad57d48e234b61ac
refs/heads/master
2021-04-03T08:26:38.232218
2019-08-15T21:54:59
2019-08-15T21:54:59
124,685,278
0
0
null
null
null
null
UTF-8
Python
false
false
2,317
py
class SegmentTreeNode: def __init__(self, start, end, val): self.start = start self.end = end self.val = val self.left = self.right = None class SegmentTree: def __init__(self, n): self.root = self.build(0, len(n) - 1, n) def build(self, start, end, ...
[ "jcyang@MacBook-Air.local" ]
jcyang@MacBook-Air.local
fa078a22376acad1e33777cf63792513fd4040cc
e6a79149145b2384bf9ef91b37214c5f5fb07a73
/setup.py
f47dbbc1ba2ed8e5d20afea35e157a4bcaa30623
[ "MIT" ]
permissive
Fumaloko92/venvctrl
799d4900534f147cb8b731822ec9673a6c17b319
0b76c9bcdda8bd7a24d25203bbb8992131c82e0d
refs/heads/master
2020-03-21T07:31:36.192110
2018-07-02T15:42:52
2018-07-02T15:44:10
138,285,167
0
0
null
2018-06-22T09:43:14
2018-06-22T09:43:13
null
UTF-8
Python
false
false
695
py
"""Setuptools configuration for venvctrl.""" from setuptools import setup from setuptools import find_packages with open('README.rst', 'r') as readmefile: README = readmefile.read() setup( name='venvctrl', version='0.2.1', url='https://github.com/kevinconway/venvctrl', description='API for virt...
[ "kevinjacobconway@gmail.com" ]
kevinjacobconway@gmail.com
9ece0bad38ced328e41d5e0d62d7b5eb93d786cd
5e4f86a7efacfc3e2a98a730b9856eb5c131e5c2
/BASIC/FOR/prime.py
a622ebe9bce54178e487619b9027e2e7ffbf5c13
[]
no_license
Yassueo/python-project
4b6709d4181f6dcc17076e010fd297b22ffe9cab
075180767221c187a6931e1f402f492be1701ea5
refs/heads/master
2020-09-02T01:16:43.540482
2019-11-09T04:43:26
2019-11-09T04:43:26
219,102,252
1
0
null
null
null
null
UTF-8
Python
false
false
206
py
prime = int(input(">>>")) flag = True for i in range(2, int(prime/2)+1): if prime % i == 0: flag = False break if flag: print(prime,"is prime") else: print(prime,"isn't prime")
[ "younrosjwjdgwj@gmail.com" ]
younrosjwjdgwj@gmail.com
28bfa7c4411bbfa32ac988bf622e8dde23b38ac8
ff9d0459248164d9aec9219cdd8122fdabebaf24
/Tools/video_analiz_v2.py
c45e2cd2cea89c881b115a2fbf0e8e2f8592e6ed
[]
no_license
SsAaFfIiKk/Models
bd2fae7dd6a4b880716bafe92ac7d74cc1a0c8ba
1f4ce48938c26d6b083ef640407a144afd1693ae
refs/heads/main
2023-05-03T10:57:32.108669
2021-05-13T13:56:16
2021-05-13T13:56:16
322,221,920
0
0
null
null
null
null
UTF-8
Python
false
false
4,605
py
import cv2 import json import time import torch import pickle import numpy as np from torchvision import transforms from Models import * device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') print(device) model_eye = torch.load("F:/Python/Models/pth/eyeB_91.8.pth", map_location=torch.device(device)) m...
[ "chf700@yandex.ru" ]
chf700@yandex.ru
b5a48bee4122375e750fbd069231b915eaffd323
7b2cbdddc9c71879d2268bab7bc81e1b066c0e89
/Dicegui.py
969f4f9778b46c26b76db90c4f52fa4ff7855ef0
[]
no_license
drifterr/DigitalDice
1684937e7e815bc5086e5fb033049cb9c1061506
40dbe5c62ef45bc83debad3dc280638698b94bdd
refs/heads/master
2020-03-11T06:35:19.931050
2018-04-17T02:47:33
2018-04-17T02:47:33
129,833,907
0
0
null
null
null
null
UTF-8
Python
false
false
3,156
py
from Dice import die, dieName, isIntList from guizero import App, Text, PushButton from time import localtime, strftime #roll the dice in the hand. def roll(hand,dice,results): #if there is a non zero amount of a die in hand, loop and roll them, #appending result to coresponding array in the total var tota...
[ "maser3+github-drifterr@gmail.com" ]
maser3+github-drifterr@gmail.com
73f7923b5825d9bf1260499fa1cc901620659557
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/Gio/UnixInputStreamClass.py
83dcff9394d0a3fa7e5dbf2594bcb42187c4ab48
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
5,125
py
# encoding: utf-8 # module gi.repository.Gio # from /usr/lib64/girepository-1.0/Gio-2.0.typelib # by generator 1.147 # no doc # imports import gi as __gi import gi.overrides as __gi_overrides import gi.overrides.Gio as __gi_overrides_Gio import gi.overrides.GObject as __gi_overrides_GObject import gi.repository.GObjec...
[ "ttys3@outlook.com" ]
ttys3@outlook.com
49f9dc5f66f8c586958b7c50757e05401a2d9cd7
5e7d0921887469c651faf90ecfcf3736d4802f6b
/kazuma/chapter03/knock21.py
8383989adbb13483af57bf33db4efe36740e9956
[]
no_license
tmu-nlp/100knock2021
5e4029f2ee330fa95269740d7bd372be533d125d
0a9f8150588648fbd86d51b4c9168acf3e45ed98
refs/heads/main
2023-07-03T14:00:08.604762
2021-08-05T09:23:16
2021-08-05T09:23:16
359,641,037
10
1
null
2021-08-05T09:22:25
2021-04-20T00:57:21
Jupyter Notebook
UTF-8
Python
false
false
166
py
import re with open("data/UK-text.txt", "r") as f: for line in f: rs = re.search(r"\[\[Category:.*\]\]",line) if rs: print(rs.group())
[ "kazuma.kobayashi.3t@gmail.com" ]
kazuma.kobayashi.3t@gmail.com
c9135d8bc839acb9df559e73377e0df9a5dc5901
edb10a06f56d9bd19b0b60581728900a03d9732a
/Python/leetcode/Anagrams.py
ca5c1a364909e0a69634540c9097753018bccfff
[ "MIT" ]
permissive
darrencheng0817/AlgorithmLearning
3ba19e6044bc14b0244d477903959730e9f9aaa8
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
refs/heads/master
2021-01-21T04:26:14.814810
2019-11-22T06:02:01
2019-11-22T06:02:01
47,100,767
2
0
null
null
null
null
UTF-8
Python
false
false
409
py
''' Created on 1.12.2016 @author: Darren '''''' Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: [ ["ate", "eat","tea"], ["nat","tan"], ["bat"] ] Note: For the return value, each inner list s element...
[ "darrencheng0817@gmail.com" ]
darrencheng0817@gmail.com
9f7a469ac8a83b0eef321658bc1b93d3a356122a
07eeb2e89dff17990da149c57929af3d262b1822
/code/nn.py
24f6d6db1f50e31e56dd5132963199f2343e8971
[]
no_license
iliagsy/aero
250e20c912dd53d007a430c7b50d38e76cd8ed2d
b5eacdf0509fcb6d759d031dd47fd03a9b0e3f8a
refs/heads/master
2021-04-29T07:10:35.496818
2017-01-04T08:58:41
2017-01-04T08:58:41
77,985,632
0
0
null
null
null
null
UTF-8
Python
false
false
2,998
py
#!/usr/bin/env python # coding=utf-8 # Neural network # usage (XOR problem example): # x = np.array([[0, 0], # [0, 1], # [1, 0], # [1, 1]]) # y = np.array([[0], # [1], # [1], # [0]]) # nn = NN([2, 4, 1]) # ...
[ "gaoshiyu@intern.douban.com" ]
gaoshiyu@intern.douban.com
5e85a996d93a6574a153ac2928fa3e1a96eef4d1
33bd6a6e92a32b0947ebac251a2ffb81894266e8
/SQLite/db_handler.py
93bda9248b99c1f44cc5c6e42c11d5ebf4aaffd4
[]
no_license
raikm/AutomationTools
edfc0c2be6ad46d888cc8c51c95ab8d34264ccc5
c00680b9ef4a540228decb6912dced1f430c457d
refs/heads/master
2023-02-16T09:17:38.953524
2020-12-23T19:19:57
2020-12-23T19:19:57
206,082,044
0
0
null
null
null
null
UTF-8
Python
false
false
3,929
py
import sqlite3 class DBHandler(object): def __init__(self, dbpath=None): try: self.db_connection = sqlite3.connect(dbpath) self.db = self.db_connection.cursor() print("Connected to SQLite") except: #TODO print("error") def get_all_v...
[ "raik.mueller@copra-system.de" ]
raik.mueller@copra-system.de
8873df4dcc3342af0094e1f35a19beb4867a439e
8ece493d51dd3c820e6aa7ae0d15c7b8f6cd0aad
/Sec6/DFS/07. Permutation/AA.py
418e6eb37bed3078881da04262553e6cc14f8e7f
[]
no_license
tae100k/Python-Algorithm
e25709af962692a5df74b35e358847c8ff5d5ea3
c0d5180c4b1296d3858be2f7f13819b4ad62ee93
refs/heads/master
2023-07-16T23:53:02.415125
2021-09-04T10:20:21
2021-09-04T10:20:21
386,344,654
0
0
null
null
null
null
UTF-8
Python
false
false
790
py
# 이렇게 해도 개수는 똑같은데 이렇게 하지 않고 res를 만드는 이유! # 해당 식은 for c in range(len(ch))를 하기 때문에 무조건 작은 숫자부터 나온다 # 따라서 그 순서쌍도 중요한 것들은 이렇게 ch용 리스트와 res리스트 두개를 사용! #참고로 아래거는 답이 아님! import sys sys.stdin = open("input.txt", "r") def DFS(v): global cnt if v == m: for c in range(len(ch)): if ch[c] == 1: ...
[ "tkim3@oswego.edu" ]
tkim3@oswego.edu
1001ba37f9f5a0d735843dd9ef36bf2619fa2715
62eb4f8dd7a5bbce4a9fcee0a08db91e699d5c57
/lib/models/graphs/BiconcaveGraph.py
9e709d8775971a501d190ab6953364cc28b66696
[]
no_license
R-Mosolov/optical_calculator
60873f737bdc5ab1203d9229be4792ea959987a2
0592e50c1ad152ccd5a82d1be0cc4e67be9213d6
refs/heads/master
2022-08-03T03:45:01.117487
2020-05-17T10:47:26
2020-05-17T10:47:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,591
py
from lib.models.graphs.LensGraph import LensGraph import matplotlib.pyplot as plt class BiconcaveGraph(LensGraph): """Класс для графиков с двояковыпуклыми рассеивающими линзами""" def build_axis(self, dist_subject, dist_image, focal_length, height_subject, is_real_image): """ Построение осей ...
[ "r.v.mosolov@ya.ru" ]
r.v.mosolov@ya.ru
a4e87d3fbf5daf9bafa306e7e3ed00ae74f7e018
13cccbc1bbaec02f53d2f4e654d480512f6c2bb5
/binary-search/leetcode-tutorial/Search_in_Rotated_Sorted_Array.py
5d641e52117e3dc735343227c664d4231e10097f
[]
no_license
sjdeak/interview-practice
580cc61ec0d20d548bbc1e9ebebb4a64cd7ac2dc
1746aaf5ab06603942f9c85c360e319c110d4df8
refs/heads/master
2020-07-20T21:06:23.864208
2019-09-08T10:54:16
2019-09-08T10:54:16
206,709,284
2
0
null
null
null
null
UTF-8
Python
false
false
2,079
py
# https://leetcode.com/explore/learn/card/binary-search/125/template-i/952/ import os, sys, shutil, glob, re import time, calendar from datetime import datetime, timezone import hashlib, zipfile, zlib from math import * from operator import itemgetter from functools import wraps, cmp_to_key from itertools import count,...
[ "sjdeak@yahoo.com" ]
sjdeak@yahoo.com
2c892ef284264182c990c45aea18817319eed913
259e5c56cfb7333c8c85d91c3ae4c5c62b4f4c82
/venv/Scripts/pip3-script.py
0dfadfc41afecfdc6ff9497ebc6291801e2a3f63
[]
no_license
PanRes/StartPrograms
a27345fbe90573cf5db44d5e15a0370afffcabdc
20f27741e02cf9612a7f403bf6d0449c26e42fab
refs/heads/master
2020-04-10T05:56:12.226208
2018-12-07T15:28:02
2018-12-07T15:28:02
160,841,061
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
#!C:\Users\pressos\PycharmProjects\StartPrograms\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s...
[ "p.ressos@hotmail.com" ]
p.ressos@hotmail.com
df69ecd68dbc05aa63ae2dc25a88a9c5272233bc
cec916f882afbd09fe68f6b88879e68eaea976f6
/bigmler/resourcesapi/fusions.py
1c8a17d3f87803d2ed503abbe367ac47e23f8336
[ "Apache-2.0" ]
permissive
jaor/bigmler
d86db6d7950768d7ba3e21b5f29bc265467f4cad
bbf221e41ef04e8d37a511a35a63216b64689449
refs/heads/master
2023-04-26T12:07:49.428263
2023-04-12T15:22:20
2023-04-12T15:22:20
15,663,632
0
0
null
null
null
null
UTF-8
Python
false
false
5,785
py
# -*- coding: utf-8 -*- # # Copyright 2020-2023 BigML # # 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 ...
[ "merce@bigml.com" ]
merce@bigml.com
820d0141ddd1005770849d9e401f6a14435fbca5
80922ad42ea7232c8b3f3de8e7928aaf2142e13f
/mylar/PostProcessor.py
9a5b8d2fed0506d985e26ef04ee12c11f42fbf48
[]
no_license
rykerwilliams/mylar
d2db698580898952afd1e1a7f29dd58411b8d5c4
e64b50a3ffaf5ddb3f944576104a05e845016fec
refs/heads/master
2021-01-16T21:52:29.098345
2014-07-28T18:48:56
2014-07-28T18:48:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
53,988
py
# This file is part of Mylar. # # Mylar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Mylar is distributed in the hope that...
[ "evilhero@gmail.com" ]
evilhero@gmail.com
8b298efd886c26c6cc53a15b22eb5b96064022d5
7d7da2d78526436aedbe44f2a1b26f31409993f5
/ABOUT/views.py
5c8a785178e768c6719b4701506222f43a77f655
[]
no_license
Arif553715/NGO
c4042b59a96de0b1f8c74f73ca166aa03ed6223c
7a901931dd70702e6e81d8e0880bca962da09443
refs/heads/master
2020-05-06T20:32:42.036796
2019-04-18T09:36:17
2019-04-18T09:36:17
180,239,663
0
0
null
null
null
null
UTF-8
Python
false
false
752
py
from django.shortcuts import render,HttpResponse,get_object_or_404 from .models import Author1,Artical,Catagory,Our_Team # Create your views here. # start blogapp def about(request): context={'post':Artical.objects.all(), 'teams':Our_Team.objects.all()} return render(request,'about.html',context)...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
555ca6a9c3244b0a09c9f72a46fa206069398e23
7dfa21d74dae975082c6d5deaa01248bac1dcc26
/tools/amd_build/pyHIPIFY/cuda_to_hip_mappings.py
31f69ec6a06383d6a969a1da3d79e906ea76c8e4
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
mruberry/pytorch
88cf536ed58d20a409c1e5119be4ec04ec960082
19f73180cfb39eb67110d2a1d541975a49211453
refs/heads/master
2022-02-03T16:25:31.070089
2019-04-22T17:52:28
2019-04-22T17:58:15
130,132,886
4
1
NOASSERTION
2020-01-16T16:51:39
2018-04-18T23:24:38
C++
UTF-8
Python
false
false
216,197
py
import collections from pyHIPIFY.constants import * """ Mapping of CUDA functions, include files, constants, and types to ROCm/HIP equivalents This closely follows the implementation in hipify-clang https://github.com/ROCm-Developer-Tools/HIP/blob/master/hipify-clang/src/CUDA2HipMap.cpp and its structure. There are d...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
3e1115e82b70e303476f7405710d3999ef757ed9
2fdf2d487bdc915426ed4434f718774563e7d188
/Pymug/server/storage/game.py
7c781b1b52b8fa1134a1e49c64aa73925ae38352
[ "MIT" ]
permissive
Aitocir/UnfoldingWorld
14b063f239f599cb055ba235a7536286b80d3936
70606eec694f006ccd6687912bce7b75d623287e
refs/heads/master
2020-03-14T09:00:50.964237
2018-05-20T21:06:40
2018-05-20T21:06:40
131,536,941
2
0
null
null
null
null
UTF-8
Python
false
false
6,968
py
import rethinkdb as r class GameDAO: def __init__(self, host='localhost', port=28015, db='game'): self._conn = r.connect(host=host, port=port, db=db) # # get a Component of an Entity # -> document def get_component_for_entity(self, component_name, entity_name): if isinstance(compo...
[ "aitocir@gmx.com" ]
aitocir@gmx.com
158b6eb8ed99037a42ce8dd1c6dc64436bd82884
77d9dce40e5aa1a4f549f96cacbac1eae2167c85
/capture-signals.py
5c923d3749e476c491b912072942e2a72a6596c8
[]
no_license
MaximilianKhan/WL-Signal-Classification
695de63725a52d62f939bbd184906a1595bc322c
fa512af42e9b868a55109587279e9ef42ccf1287
refs/heads/master
2021-05-04T23:42:04.437760
2018-02-09T16:50:05
2018-02-09T16:50:05
119,403,938
0
0
null
null
null
null
UTF-8
Python
false
false
8,498
py
import os from scipy.io import loadmat from scipy.signal import hilbert, chirp from scipy.stats import mode import matplotlib.pyplot as plt import numpy as np import timeit #==================================================================================== # Functions #=============================================...
[ "maxjkh@gmail.com" ]
maxjkh@gmail.com
b3bf40aae24a9c54a5e605f8fdf7d198f01f5370
23909342d121bdba6766e456d8083d3ef78590e0
/fetch-data.py
8a4fb3c904d90ddca7525ab5260ba7fb02af8004
[ "Apache-2.0" ]
permissive
gscdit/Sentiment-Analysis
a9c085e20173b1f7d25763b0723afb31b8c760b7
e897887a13ab879f8c76969d43b76552865b34f5
refs/heads/master
2020-04-12T19:20:16.887142
2018-12-21T13:17:02
2018-12-21T13:17:02
162,706,596
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
import tweepy import csv import pandas as pd ####input your credentials here consumer_key = '' consumer_secret = '' access_token = '' access_token_secret = '' auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.API(auth,wait_on_rate_limit=True...
[ "noreply@github.com" ]
noreply@github.com
ae8838adf5e2c8a4a43056e8aaf7f1ee21fe897d
18b2fb78365f84f006cadaf6bc371dc402aa83d9
/WPrime5F+SM_UFO/particles.py
78b4ebb5220e62290e381617de2c5bc4966afb37
[]
no_license
gustavoardila/WPrime5F
d6025d7f9a12af06311b243bb73f27464cb5ee60
87315f88131261b13738dcc51412946a9d9e9b7b
refs/heads/main
2023-09-02T21:22:14.627764
2021-10-14T11:39:50
2021-10-14T11:39:50
417,106,186
0
0
null
null
null
null
UTF-8
Python
false
false
10,970
py
# This file was automatically created by FeynRules 2.3.33 # Mathematica version: 12.0.0 for Mac OS X x86 (64-bit) (April 7, 2019) # Date: Thu 14 Oct 2021 06:27:30 from __future__ import division from object_library import all_particles, Particle import parameters as Param import propagators as Prop a = Particle(pdg...
[ "noreply@github.com" ]
noreply@github.com
b691ed3bf7fadce47e537b38369610cae2c67fdf
b963c9d513e0817661cb8416f7267422e60f4a56
/pratice/str/palindrome.py
109cf16166a1e355bfce17fa9cdfa3289d378ab2
[]
no_license
Aishwaryakotharu/GUVI
c8efaa98fcb491f83713482f4e6863825f0f55bd
20c01438fb72cc297932b97f4f5fd3fb4238cf65
refs/heads/master
2020-09-13T00:47:51.804835
2019-12-14T04:18:45
2019-12-14T04:18:45
222,610,457
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
n=input() n=list(n) c1=0 c2=0 for i in range(0,len(n)): if(n[i]=='{'): c1+=1 elif(n[i]=='}'): c1+=1 elif(n[i]=='('): c2+=1 elif(n[i]==')'): c2+=1 if(c1%2==0 and c2%2==0): print("1") else: print("0")
[ "noreply@github.com" ]
noreply@github.com
b9603c227e39f7d5e195f02d9a03afe31a826525
f9f2d8064943906e8ee0d305d405ca1e5dd0a6b7
/Hysteresis_Measurement/tooltip.py
d252b1f9c6760bf06e328eb70ab58b3b73bb2afb
[]
no_license
Jeffrey-Ede/Atomic-Force-Microscopy
a46930657b256f4dc772c1b2130a55486dbb6e2b
7df834b17ad9974016b02a72711f8847f6b15d4d
refs/heads/master
2021-01-18T12:06:38.779728
2017-10-06T07:24:12
2017-10-06T07:24:12
100,364,689
4
1
null
null
null
null
UTF-8
Python
false
false
1,336
py
# -*- coding: utf-8 -*- """ Created on Tue Aug 15 22:48:56 2017 @author: Jeffrey Ede """ import tkinter as Tk class ToolTip(object): def __init__(self, widget): self.widget = widget self.tipwindow = None self.id = None self.x = self.y = 0 def showtip(self, t...
[ "noreply@github.com" ]
noreply@github.com
31890c444e878cc29b0ebcd91b86d1dfdd2bdb8b
9bfca46f0cd1008e011bc61c2f23bbb284d74676
/src/clustaar/webhook/middlewares/authenticators.py
760d960aa14544c19881c1c83fc8d9273cb90e1d
[ "MIT" ]
permissive
Clustaar/clustaar.webhook
85d955be8ee4e8e87cfd22971bcbfe964e30a1a7
4849d75906ae54fd383c3def31284e96964b2912
refs/heads/develop
2023-05-24T12:17:31.695956
2023-05-11T14:02:45
2023-05-11T14:02:45
122,321,018
4
2
MIT
2023-05-11T14:02:47
2018-02-21T10:18:02
Python
UTF-8
Python
false
false
1,355
py
from abc import ABC, abstractmethod class InvalidCredentials(Exception): """Exception raised by Authenticator when authentication failed""" class Authenticator(ABC): """Authenticator interface. Used by authentication middlewares. Middleware provides credentials, authenticator validates them. """...
[ "aurelien.amilin@gmail.com" ]
aurelien.amilin@gmail.com
9104f63808f9f9fe450598bc2702d4591ea509de
5da9ec64957425cd357af6b8b1caa9f95f80be04
/Examples/ZeroDivisionErrorSolve.py
65eff4f38b715cf5a81d65fa81f18317c8059a53
[]
no_license
oliiiiiiiiiiiii/HowToFixPythonErrors
06af3c14984336189ac00bf58560f2cbcdfca476
9a1a430866f6c1bdcdf5450c21ec4192d05ec9a2
refs/heads/main
2023-08-29T15:25:35.998935
2021-11-12T07:22:57
2021-11-12T07:22:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
# lets say u ask for a user input like this user_input = int(input("Enter a number: ")) # and they input 0... value = 10 / user_input print("10 divided by", user_input, "is,", value) # this will raise the error saying you cant divide by 0 # an easy and good way to handle this is by using an if statement to check i...
[ "77537491+MarzaElise@users.noreply.github.com" ]
77537491+MarzaElise@users.noreply.github.com
87143404287306b84469a78d150e7ad685c15486
acafc67263578cb72a98be76d0c378bdc98a4dcb
/densenet/data.py
74562f44f4d5d96dc047fa1a1f3eb84de6e21b22
[]
no_license
laxminarayansystech/dl-zoo
3261acd002aeb367aab15ecba3a9016d1920ccd3
abdae1e09b5ad08526b21392aab62fb26b76ddf4
refs/heads/master
2022-03-04T20:58:37.977325
2019-08-13T08:57:01
2019-08-13T08:57:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,632
py
TRANSFORM_NORMALIZATION = ((0.53129727, 0.5259391, 0.52069134), (0.28938246, 0.28505746, 0.27971658)) BATCH_SIZE = 48 # global variables VALIDATION_SPLIT = 0.05 EPOCHS = 300 import torch import torchvision import torchvision.transforms as transforms # load data test_transform = transforms.Compose([ transforms.To...
[ "xiayunsun@gmail.com" ]
xiayunsun@gmail.com
2c130c4b4ed0935bb8d54afbba2cac68523ae562
8d12f2cea4989c3d64c49c0cee744c0a7e82dc61
/learning_logs/migrations/0002_entry.py
679dfcc6587ebbd053b1bfb6e90710348f6467f2
[]
no_license
tj1410780/learning_log
4b180cc56985d3b7ef35f47df12b536e5fbf1109
066f371f27b19030ee316c85730acbb8fcedb97d
refs/heads/master
2021-06-19T22:05:05.906016
2020-12-05T18:00:00
2020-12-05T18:00:00
131,808,852
0
0
null
null
null
null
UTF-8
Python
false
false
804
py
# Generated by Django 2.0.4 on 2018-04-25 08:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('learning_logs', '0001_initial'), ] operations = [ migrations.CreateModel( name='Entry', ...
[ "Amy.Zheng@amd.com" ]
Amy.Zheng@amd.com
49a19d4c0853636f528729a6a450f8944f35379b
e9e5607bc61273faaeb699cf147955d9348ab07a
/server/tests.py
551b03573fa1271d1f9d9da13ecb1859b4b15477
[]
no_license
Monicadelai/RatonGato_App
0c0c8aa3f7a57066a6d549537bdc17d04f738b8d
f14d527ee4ee24743292509e7fd418c94d49eb85
refs/heads/master
2021-04-29T22:29:16.032304
2018-02-15T14:37:41
2018-02-15T14:37:41
121,634,356
0
0
null
null
null
null
UTF-8
Python
false
false
13,819
py
# Uncomment if you want to run tests in transaction mode with a final rollback #from django.test import TestCase #uncomment this if you want to keep data after running tests from unittest import TestCase from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.test import Cli...
[ "monica.delaiglesia@estudiante.uam.es" ]
monica.delaiglesia@estudiante.uam.es
8282ac9e509ea26823c06b42d540b0a2f6247703
37c8a543f7ec1375db743cf059180d413480e795
/3-Reinforcement_learning/ex_1.py
c035c14f7ae77c723ceb882b7f778c2d8c4a8543
[]
no_license
redvinaa/smaa_excercises
8a94dba0238b50240dbdca8f416ded2d964230d8
535e6f29961739f5276010cad0ae33be1bc77fc0
refs/heads/main
2023-02-12T21:36:53.004295
2021-01-12T22:48:33
2021-01-12T22:48:33
319,279,985
0
0
null
null
null
null
UTF-8
Python
false
false
4,077
py
import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import Normalize import cvxpy as cp from cliffwalking import CliffWalkingEnv from time import sleep from ex_1_param import * ## Misc {{{ env = CliffWalkingEnv() def value_to_policy(V): policy = np.empty(shape=(env.observation_space.n,)) for...
[ "redvinaa@gmail.com" ]
redvinaa@gmail.com
7e3e7be19f05729de68d3b2bb76c9e10faaf3193
b3bf9d670f0b425d181b8dde366bbddc94177410
/analytics/views.py
2e602f73ed3042bf9d064db71484328b0719a0a0
[ "MIT" ]
permissive
us190190/url_shortener
fe27b4607f735cf14ee5d7cd2138ffa0120bd6d0
acf987bed8fbf910dc4171739b688d8d0c27f256
refs/heads/master
2022-08-23T23:00:16.000451
2020-05-15T15:24:36
2020-05-15T15:24:36
263,444,588
0
0
null
null
null
null
UTF-8
Python
false
false
651
py
from django.http.response import JsonResponse from rest_framework import status from rest_framework.decorators import api_view from .serializers import HistorySerializer from django.apps import apps History = apps.get_model("analytics", "History") @api_view(['GET']) def get_stats(request): date = request.GET.g...
[ "us190190@gmail.com" ]
us190190@gmail.com
6630ac011be319bb79d7f2b6259604df1fcae0c9
a32fb2a15fb10669d385b1fa9d37dbc86ccf1e9f
/UdemyPython/Ineratorler Ve Generatorler/proje1-iterator.py
b999bb600422f01cda15ee35ad535e8652a90619
[]
no_license
sezerkahraman/Python
d75324c50105fb5a04596da795d0a4f992a90ee1
d0c36dbfee487e1112ca213740f5356dbb3e62c2
refs/heads/master
2023-03-24T17:55:13.519403
2021-03-11T12:39:34
2021-03-11T12:39:34
346,692,720
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
class Kareler(): def __init__(self,max=0): self.max=max self.sayi=1 def __iter__(self): return self def __next__(self): if(self.sayi<=self.max): sonuc=self.sayi**2 self.sayi+=1 return sonuc else: raise StopIteration kare...
[ "thesezerkahraman@gmail.com" ]
thesezerkahraman@gmail.com
8088e111feb0c6e373b52debc22c1789345ce61f
0a1f8957a798006deaa53d10d09f733fab1e6b05
/bin/Python27/Lib/site-packages/sympy/geometry/polygon.py
f6b974c4f784fa93cf0c61d1f0cdce8aaa951310
[ "LicenseRef-scancode-other-permissive" ]
permissive
metamorph-inc/meta-core
a89504ccb1ed2f97cc6e792ba52e3a6df349efef
bc7a05e04c7901f477fe553c59e478a837116d92
refs/heads/master
2023-03-07T02:52:57.262506
2023-03-01T18:49:49
2023-03-01T18:49:49
40,361,476
25
15
NOASSERTION
2023-01-13T16:54:30
2015-08-07T13:21:24
Python
UTF-8
Python
false
false
59,827
py
from sympy.core import Expr, S, sympify, oo, pi, Symbol, zoo from sympy.core.compatibility import as_int from sympy.functions.elementary.piecewise import Piecewise from sympy.functions.elementary.trigonometric import cos, sin, tan, sqrt from sympy.simplify import simplify, nsimplify from sympy.geometry.exceptions impor...
[ "kevin.m.smyth@gmail.com" ]
kevin.m.smyth@gmail.com
37bf8c7b0152c0dc58cbad1f1dc6b119848ae1ea
fb5c5d50d87a6861393d31911b9fae39bdc3cc62
/Scripts/sims4communitylib/utils/sims/common_sim_posture_utils.py
942b6a83e30a1b592931b2b26886eea4d99d6716
[ "CC-BY-4.0" ]
permissive
ColonolNutty/Sims4CommunityLibrary
ee26126375f2f59e5567b72f6eb4fe9737a61df3
58e7beb30b9c818b294d35abd2436a0192cd3e82
refs/heads/master
2023-08-31T06:04:09.223005
2023-08-22T19:57:42
2023-08-22T19:57:42
205,197,959
183
38
null
2023-05-28T16:17:53
2019-08-29T15:48:35
Python
UTF-8
Python
false
false
12,599
py
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from typing import Tuple, Union, Any from postures.posture...
[ "ColonolNutty@hotmail.com" ]
ColonolNutty@hotmail.com
349b2be9f926e5186d63da726ea61cc465eb15c3
a685fa36823caa4b910969e80adbcae4f2829bd6
/python_Fundamentals/Find_Characters.py
70a7927579c0dbc033b28e77130ce161b8d75be1
[]
no_license
hmp36/Python
35e4fbc003b216ca6c7c45c558dd4f24edba5b9a
dcddf40a0428542d78f2e32d4755b54ebdaadffd
refs/heads/master
2021-09-15T01:35:41.013949
2018-05-23T13:05:59
2018-05-23T13:05:59
112,358,856
1
0
null
null
null
null
UTF-8
Python
false
false
302
py
#find_characters def find_character(word_list, char): new_list = [] for i in range(0, len(word_list)): if word_list[i].find(char) != -1: new_list.append(word_list[i]) print new_list test_list = ['hello','world','my','name','is','Hagan'] find_character(test_list,'o')
[ "haganpratt@gmail.com" ]
haganpratt@gmail.com
328e3452a10b2dc10ba64e1ab676bb46c52bfb83
0f5a9df96abe62a13e52bba7b465ff4725071889
/python-refresher-master/First app.py
7e37964cb5d7437a9bcbe38f6c60b732170cbd7f
[]
no_license
brentleewilliams/class
2f6d32893369b897aa1d449b7dfa26f1436745bb
ab80ac95302e5a47a8e5445b066141143601b40a
refs/heads/master
2023-03-27T22:30:35.374485
2020-08-03T03:30:56
2020-08-03T03:30:56
284,593,511
0
0
null
2021-03-26T00:33:36
2020-08-03T03:23:43
Python
UTF-8
Python
false
false
436
py
""" user_input = input("Whats your birth month?") if user_input == "October": print("Yay, mine too!") else: print("Thats a bummer, October birthdays are the best!") """ friends = [ {"name": "Brent", "age": 32, "sex": "male"}, {"name": "Michaela", "age": 36, "sex": "female"}, {"name":...
[ "brentwilliams@Brents-MacBook-Air.local" ]
brentwilliams@Brents-MacBook-Air.local
48753139e2bedf1f4d25b22fef674c8be654f059
13032d28c6932df11ae7957f0bfa6061bd02237a
/Day1/list.py
8fb3b27581c58776dcc245cff626bfb525d210e3
[]
no_license
Gzxcn/python_daily
3a8bdf463ed16a9bf66e1c0443195749f2f91ff9
80afafb9c1951c72144de6fd8738e75e91595d44
refs/heads/master
2020-03-19T11:13:25.378916
2018-06-12T01:15:36
2018-06-12T01:15:36
136,440,402
0
0
null
null
null
null
UTF-8
Python
false
false
494
py
print("hello world\n") # 计算list序列长度 l = [1,2,4,5] print(len(l),"\n") # 按下标获取值 print(l[1],"\n") # 遍历 for key in l : print(key) # list 添加数据和移出数据 l.append(10) # 从list 尾部添加数据 print(l) l.insert(7,5) # 从list 指定位置添加数据 print(l) l.pop() # 移出指定位置数据 默认 最后一项 l[2] = 1 # 修改指定位置 值 且下标不能超出现有长度(IndexError: list assignment...
[ "23269087@qq.com" ]
23269087@qq.com
61723176d8f107f09aa921c5b13fd058568de260
85e27209a7df58f76ab0f9f2ed13b1c6ac31ffc9
/src_python/habitat_sim/utils/gfx_replay_utils.py
f4a40ecbd3f41db0fa440ce577fe25b83c0612c5
[ "CC-BY-4.0", "CC-BY-3.0", "MIT" ]
permissive
facebookresearch/habitat-sim
72a78877c412fef1d42a553f896654c71c54d245
6f46bccc1733f4cec30b89d994ac55df2b46eb4a
refs/heads/main
2023-09-03T00:17:30.809849
2023-08-29T16:06:16
2023-08-29T16:06:16
169,164,539
1,924
432
MIT
2023-09-14T17:12:21
2019-02-04T23:14:28
C++
UTF-8
Python
false
false
1,009
py
# Copyright (c) Meta Platforms, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import magnum as mn import habitat_sim def add_node_user_transform(sim, node, name): translation = node.absolute_translation ro...
[ "noreply@github.com" ]
noreply@github.com
f3cea51fa24ed1b3bcff3995d808663d8a4aad6a
28e8ff11d8d4d633e9bd69390eb8504dc52d34ac
/python/paddle/optimizer/adamw.py
a5cb779835327a8c8dfdd02a1b62e87d3aa11988
[ "Apache-2.0" ]
permissive
zhupengyang/Paddle
1cda899a18de8725bfbbcedfcf45bce0bc2706a7
226b4a95df0c992dfaf37cca2c0e89eb730dd298
refs/heads/develop
2023-08-30T22:09:01.452182
2023-03-01T09:35:50
2023-03-01T09:35:50
186,746,928
0
0
Apache-2.0
2023-07-19T01:56:42
2019-05-15T04:05:53
C++
UTF-8
Python
false
false
26,979
py
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
noreply@github.com
b143c3a7fe1a74ff54eeef458d0cd6346efe1f59
e4cd2d6cd5010ac583d5c87af0f0930a8a3ef61c
/search/urls.py
cc31f1e55714a35cd31b2a6c980e75a2b23a1d44
[]
no_license
jamesharty/FYPDJANGOSTACKAPI
560a61b13a4022e87977eea2a84838792b7684f3
23c0322bf361fb080f6f5ac710bd5800b8dbfdce
refs/heads/master
2023-04-26T18:07:44.826628
2021-04-29T13:12:09
2021-04-29T13:12:09
362,820,778
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
from django.urls import path from . import views urlpatterns = [ path('searchResults', views.results, name='results'), path('moreInfo', views.moreInfo, name='moreInfo') ]
[ "james.harty@mycit.ie" ]
james.harty@mycit.ie
d95f0f775b8ec5eb5efe2a014a6131f51536ca4b
2e50b386295c259fa0c65f9131bef517fe161a97
/compression_PSNR.py
45b7d7cf899e56d449406860833fe45961e887b8
[]
no_license
lucasdenovoa/digital_processing_systems_UFPA
479d72c16f9b4cf84ec037a8fb9ae427478032cc
8c6336374bbdeeaf8beb4f9849111edee01cbf86
refs/heads/master
2023-08-14T13:20:35.864263
2021-10-13T12:24:26
2021-10-13T12:24:26
413,435,305
0
0
null
null
null
null
UTF-8
Python
false
false
1,937
py
from math import log10, sqrt import cv2 import numpy as np import matplotlib.pyplot as plt from PIL import Image import os MAX_PIXEL=255.0 ''' def read_image(): y = Image.open('./images/4.2.07.tiff') if os.path.exists('./images/gray_4.2.07.tiff'): pepper_image = Image.open('./images/4.2.07.tiff') ...
[ "lucasnmartins300@gmail.com" ]
lucasnmartins300@gmail.com
819269c5b7c99b58ee438405aba3696bf678014a
10166249c833a2c6d69c3482d2db26d942c5a11c
/Ejercicio4.py
f1856d0257f3e7d80e990c61590cea3cefe6fe38
[]
no_license
mirzapity/Python
ab93dadda25c2d0fda74bb80b9dd50427b155bf5
74c5c679987efd1185318468652b35507aa48e09
refs/heads/master
2020-08-20T11:27:41.710505
2019-10-18T12:19:13
2019-10-18T12:19:13
216,016,801
1
0
null
null
null
null
UTF-8
Python
false
false
212
py
lista = ['Mirza','Dani','Juan'] print ('tengo', len(lista), 'nombres') print('Dame un numero para mostrar') numero = int(input()) print('Has escogido el numero', numero, 'que es el nombre', (lista[numero-1]) )
[ "dam214@OLIMPIA.GA" ]
dam214@OLIMPIA.GA
67396d00e8f1b75a3c518d923951489a10807214
037ba3b508fd6314d2f99de47384e63ee5893fdf
/test_project.py
afacb652448f7b4c72b7ea12d6d0010cf27c3602
[ "MIT" ]
permissive
lurdray/EXABCal
e5113a299b435b7551c26a6f3afc55f2120c687c
4346282ff3e6e99fc38d8ecd39b2eff4e3777c25
refs/heads/master
2020-04-01T07:20:37.829742
2018-10-14T08:07:46
2018-10-14T08:07:46
152,986,248
0
0
null
null
null
null
UTF-8
Python
false
false
298,962
py
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QMainWindow, QInputDialog, QFileDialog from PyQt5 import QtGui, uic import sys from PyQt5.QtCore import QDir, Qt from PyQt5.QtGui import QFont, QPalette from PyQt5.QtWidgets import (QApplication, QCheckBox...
[ "odiagaraymondray@gmail.com" ]
odiagaraymondray@gmail.com
6667d91d2dc2e5499d62c236e18002f0b330d256
0777bc1bf763ae2f3b925bd6b2d91f382bef5c52
/src/wav_to_distance.py
a7f225614101aff29a1040f17985be9c0a35f52a
[]
no_license
geomphon/geomphon-perception-ABX
41258d36c7aa74a604fea22ab85c63f1a8197ab2
688935c07d2d283db6afcba6b550213eb3133ad2
refs/heads/master
2020-07-08T19:03:51.648126
2019-12-16T11:40:54
2019-12-16T11:40:54
144,007,318
0
2
null
null
null
null
UTF-8
Python
false
false
9,232
py
from __future__ import print_function import sys import argparse import os.path as osp import numpy as np import pandas as pd import standard_format as sf import python_speech_features as psf from fastdtw import fastdtw from scipy.stats.mstats import zscore import scipy.io.wavfile def eprint(*args, **kwargs): ...
[ "emd@umd.edu" ]
emd@umd.edu
fe3c0e9fcf1b7a826246533bfc857e0931e15050
adc6dc2a08b7e1eeb313e6fc8f89c13ebf90ec93
/tests/ext/django/test_settings.py
94870fd77e4b664bd0003485e479aa90bd857ae7
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lalvarezguillen/aws-xray-sdk-python
61a31451a8da60af8e7aa9b5613ae543a6d42e36
04494e58f0f9169e2c74cb696dff72058e9561d3
refs/heads/master
2023-02-02T14:39:16.395718
2020-12-07T18:06:05
2020-12-07T18:06:05
315,970,414
0
0
Apache-2.0
2020-11-26T17:22:18
2020-11-25T14:53:58
Python
UTF-8
Python
false
false
531
py
from unittest import mock import django from aws_xray_sdk import global_sdk_config from django.test import TestCase, override_settings from django.conf import settings from django.apps import apps from aws_xray_sdk.core import xray_recorder from aws_xray_sdk.core.sampling.sampler import LocalSampler class XRayConfi...
[ "noreply@github.com" ]
noreply@github.com
cb07766e9a6d0289fb0ed96d688a4bf491f475b3
6adad2f20fba60c504510674bbdb351bd5788251
/primetester.py
d60a03f4980167b7f9cbd91d7a63d1ed1c027d37
[]
no_license
satheeshgs/project-euler
c1adf2cfcfb5a3fb963441b90277ea3cf6b4ec4c
e36b7f5289bed413d79c4a9209582bb46a456738
refs/heads/master
2022-12-04T19:40:57.939689
2020-08-26T19:00:01
2020-08-26T19:00:01
287,000,254
1
0
null
null
null
null
UTF-8
Python
false
false
490
py
import math def isprime(n): if(n==1): return False elif(n<4): return True elif(n%2==0): return False elif(n<9): return True elif(n%3==0): return False else: r=floor(math.sqrt(n)) f=5 while(f<=r): if(n%f==0): ...
[ "satheesh.gowtham@gmail.com" ]
satheesh.gowtham@gmail.com
d805b30a955858083b830b3495ef1f703f8a2b16
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/all_models_plots/visualize_ozone_models_H_24.py
7ec221728ea8edac120e614e13a2947e37ba4e51
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
219
py
import pyaf.Bench.TS_datasets as tsds import model_esthetics_visualizer as viz lDataset = tsds.load_ozone() lDataset.mHorizon = 24 lVisualizer = viz.cModelEstheticsVisualizer() lVisualizer.generate_video(lDataset)
[ "antoine.carme@outlook.com" ]
antoine.carme@outlook.com
b5778d5e153dad7cf5cbf60db3f63020fa418514
1b3d868550ce6dd5de0945f6facd9e8796548c2a
/vyper/tests/parser/syntax/test_nested_list.py
00661402177d7591c639587be148b4eb7a75d222
[ "MIT" ]
permissive
ssteiger/Vyper-Contract-GUI-Depreciated
edd28a409419cefb9fe153645105e8b5af6ecb2c
3ba9df1b7f7cf871beaddd3ae2af06b6a94ef7fe
refs/heads/master
2020-05-16T04:20:53.139749
2019-04-22T12:03:24
2019-04-22T12:03:24
182,774,878
1
0
null
null
null
null
UTF-8
Python
false
false
1,518
py
import pytest from pytest import ( raises, ) from vyper import ( compiler, ) from vyper.exceptions import ( StructureException, TypeMismatchException, ) fail_list = [ """ bar: int128[3][3] @public def foo(): self.bar = [[1, 2], [3, 4, 5], [6, 7, 8]] """, """ bar: int128[3][3] @public d...
[ "soren1@gmx.net" ]
soren1@gmx.net
34d8581677193dbe31feda92918b8d70dbf6266c
f141524fe1d747f9bf482d60d06ed5eb4e541a81
/app/spider_utils.py
f5962c638f2a5d1d9334d05e9b5b7fe102bafbb8
[]
no_license
andrejlukic/fin-news-sa
80ec5a3d09e7ea2a090f2877b72e63deed0e3d2e
a3133994c72ae03d4cef92630668170c0912a271
refs/heads/master
2023-02-22T14:40:00.134891
2023-02-11T12:11:48
2023-02-11T12:11:48
178,445,671
1
0
null
null
null
null
UTF-8
Python
false
false
2,372
py
''' Created on 23 Apr 2019 @author: Andrej Lukic ''' import pandas as pd import os from subprocess import call from twisted.internet import reactor from scrapy.crawler import Crawler from scrapy import log, signals from scrapy.settings import Settings from scrapy.utils.project import get_project_settings from indianst...
[ "lukic.andrej@gmail.com" ]
lukic.andrej@gmail.com
28a72c36bcc1936b11f645d5e5266dc952e06d65
07f08fdc275a77d711735117473ef4e70d0bc83d
/screw.py
0e105ec04dcc8710a7b4e18fc3e10ffbc1fccc53
[ "Apache-2.0" ]
permissive
ytingalpha/screw
832b3f9ad12f7c0f2513cd9aba9b00305c84bf6b
e07bf781f41c8141e9996edbd2a6d9dd91952b74
refs/heads/master
2022-10-31T21:52:18.447242
2020-06-17T13:06:36
2020-06-17T13:06:36
272,689,754
0
0
null
null
null
null
UTF-8
Python
false
false
2,649
py
import tensorflow as tf from tensorflow.keras import datasets, layers, optimizers, Sequential, metrics import pandas as pd import numpy as np import math as mt (x, y), (test_x, test_y) = datasets.cifar100.load_data() PI = mt.pi def rgbThsv(r,g,b): Cmax = max(r,g,b) Cmin = min(r,g,b) delta = ...
[ "noreply@github.com" ]
noreply@github.com
7fee4fd946bee340b076a5d118d7ae9369ffdf6d
a10bf67f3c7232c05206ebe66b49d37141c94f99
/quick_classify_results/quick_classifier.py
205a8ed4ee6dc1d0146162519eb1f7c273534042
[]
no_license
kow1n16/dm-predictive-ml
795063c0e30c1d8a0c039d25b999ad5beef96efc
b73c995a4cc09b85eb6e6f353d24bc0c244d2b1e
refs/heads/master
2021-04-18T23:08:32.632219
2017-05-12T11:48:26
2017-05-12T11:48:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,917
py
#import all helpers import os import sys import warnings from datetime import datetime warnings.filterwarnings('ignore') import numpy as np import pandas as pd import math import statsmodels.api as sm from patsy import dmatrices from sklearn import preprocessing from sklearn.cross_validation import train_test_split, cr...
[ "multiks2200@gmail.com" ]
multiks2200@gmail.com
6867e7ed77f3401e0e844635056a7e48b7ca1112
e231b506d91a2174e12393d4dd12b05ab87c4039
/modules/decoders/wiener_cascade/wiener_cascade.py
55579d25c915de48cde798e2acc542cef3d094f2
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
NurmikkoLab-Brown/mikko
1b11cd342d3f4b0533b6f6677b769c0c49097b6e
73abbe70d4112dc567faf5e4ccff5ba6d8b1f49b
refs/heads/master
2023-07-23T16:28:12.874977
2020-03-18T20:17:45
2020-03-18T20:17:45
210,954,471
6
2
NOASSERTION
2023-07-06T21:46:48
2019-09-25T22:49:41
Python
UTF-8
Python
false
false
570
py
import os os.environ["PYTHONHASHSEED"] = "0" os.environ["OPENBLAS_NUM_THREADS"] = "1" os.environ["MKL_NUM_THREADS"] = "1" import sys from base_dockex.BaseJoblibModel import BaseJoblibModel from WienerCascadeRegression import WienerCascadeRegression class WienerCascade(BaseJoblibModel): def __init__(self, input_a...
[ "chris@connexonsystems.com" ]
chris@connexonsystems.com
b356f95970c3096485fed3d855a14e995a75be38
25d4e5b860ab82826e275e1df812eda2b6d76d34
/shape-detection/Phase2_3.py
d3b6119009b29065cab8ebce322a831ac3f93153
[]
no_license
mjavidiq/nsf_drone_challenge
33c34bf7ee4af52f29e56ae51ce2420982b6c2d7
2b215480d87572860b4237595cf759fb8e5b8df5
refs/heads/master
2022-11-05T15:03:02.609290
2020-06-11T22:34:38
2020-06-11T22:34:38
264,784,489
0
0
null
null
null
null
UTF-8
Python
false
false
13,022
py
# Importing Necessary Libraries import rospy import mavros from mavros import command from mavros_msgs.msg import * from mavros_msgs.srv import * from geometry_msgs.msg import PoseStamped, Point, Quaternion , PoseArray, Twist, Pose from nav_msgs.msg import Odometry from gazebo_msgs.msg import ContactsState import math ...
[ "mjavidiq@asu.edu" ]
mjavidiq@asu.edu
4360a1a5da296fb15264d7acedaa11d407422b83
fa2a569bcbaa1c3292043c50cca0d74d5b33d680
/array_manipulation/sort_characters_by_frequency/basic.py
0e1c9e21e16356ea7107368249680c6ad7935fba
[]
no_license
Bcdirito/algorithm_problems
e794be6e1fce54fe808d5eee8778a698fed7a879
027ac5980c90fdfc4a5834d1d7703205f2172bd7
refs/heads/master
2021-06-14T07:02:15.472493
2021-04-26T22:39:46
2021-04-26T22:39:46
170,243,353
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
# Runtime 56 ms, Memory Usage 15.5 MB def frequencySort(s: str): # declare an empty dictionary that will hold characters as keys and their occurrences as values # delcare an empty string that will be the sorted characters by frequency count_dict = {} sort_str = '' # iterate through the input st...
[ "bdirito91@gmail.com" ]
bdirito91@gmail.com
b9c5b08c14b36c8eba410e98110a97304941e22b
88a4f269b444d56f941b7cad2ff8d027441de954
/ex17.py
5cd4dccf7bbee3d2dc835b55ce775b8d2bc4a769
[]
no_license
krispingal/py_hardway
91256b330e69c8d4121b10ef616701ae71629401
2599447f6c1fa6ccbf96e3930ad836a3fb663d94
refs/heads/master
2016-09-10T18:34:17.162920
2012-09-21T16:05:07
2012-09-21T16:05:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
#!/usr/bin/python from sys import argv from os.path import exists script, from_file, to_file = argv print "Copying from %s to %s" % (from_file, to_file) input = open(from_file) indata = input.read() print "The input file is %d bytes long" % len(indata) print "Does the output file exist? %r" %exists(to_file) print...
[ "krishna.pingal@gmail.com" ]
krishna.pingal@gmail.com
165cf58210107d83b68af0b595d747bcd22dce0c
bc1886378e51537b3ab0e863f691777c7d9a1788
/venv/bin/normalizer
7fb124d9d4f5ceab8356c491c7c383bb77f1f762
[]
no_license
ashokgaire/pencil
5f805ecaad7c9a344d0d54c6642a6b79bca3f27c
0f7aced70f431ea7845460a7af16214eb11d22a8
refs/heads/master
2023-08-28T08:46:37.359268
2021-10-21T07:11:05
2021-10-21T07:11:05
410,829,987
0
0
null
null
null
null
UTF-8
Python
false
false
269
#!/home/oxy/practice/pencil/venv/bin/python # -*- coding: utf-8 -*- import re import sys from charset_normalizer.cli.normalizer import cli_detect if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(cli_detect())
[ "ashokgaire1@gmail.com" ]
ashokgaire1@gmail.com
d9328c849de96695289817bba2a049eb127b7bff
d9864d1a078c27fc4a72bf5e94d6eee71a0a0bd2
/airflowDAGS/csvToJson.py
dd96e11b9b5e221ef3e70f2bb24cf2c525b0f5af
[]
no_license
sbahaddi/DataEngineering_Infrastructure
e8187dc929b961ed186ebed4f7f60a7e0a16788d
d3355b42275692f4f4e1276bde55df1c79411c19
refs/heads/main
2023-03-28T07:15:42.787700
2021-04-01T16:36:58
2021-04-01T16:36:58
349,739,629
1
0
null
null
null
null
UTF-8
Python
false
false
1,412
py
""" Building a CSV to a JSON data pipeline Starting with a simple DAG will help you understand how Airflow works and will help you to add more functions to build a better data pipeline. The DAG you build will print out a message using Bash, then read the CSV and print a list of all the names. The following steps will...
[ "said.bahaddi@gmail.com" ]
said.bahaddi@gmail.com
e9d3c41e9894735d8d0ecdc613ced6782b602f0a
43f3e4873dc24b24a849f6db471d4c59918739a0
/initGlobal.py
d1e0c19423f78385220194633ae99db0877244f5
[]
no_license
rifaasyari/Genetic-Programing-for-automated-design-microstrip-antenna
587ac3f84524f3d05ca428e20079f58444f878bf
7ebc696b1350ca4a91ca64b850aa455eed74a0f0
refs/heads/main
2023-03-05T14:28:22.456653
2021-02-19T11:56:02
2021-02-19T11:56:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,739
py
# thuan.bb.hust@gmail.com - 2018 numProcess = [2]#,3] # number of the script process would be run in each computer. # = ['CRD02-PC'] #-- list of exist computers for running scripts. # PCnames = ['DESKTOP-K6646BG'] PCnames = ['HUPECRD-PC']#, 'CRD-SERVER'] #,'CRD01-PC'] users_and_pass = {'CRD01-PC': ['CRD01', 'crd60...
[ "noreply@github.com" ]
noreply@github.com
ef2e356bf57c377f09b460ddb28b36cf239114ae
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/hackerrank/HackerrankPractice-master/Algorithms/01. Warmup/008. Mini-Max Sum.py
426a1546f2599b3b1e1a4fc95470f8d1c9f0422f
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
162
py
# Problem: https://www.hackerrank.com/challenges/mini-max-sum/problem # Score: 10 arr l.. m..(i.., i.. ).s..())) print(s..(arr) - m..(arr), s..(arr) - m..(arr
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
ea32e155bc69f5ecfef229115adb9889c336ac4b
d194b66adafd15dbe11a1b78812b3ed4b94b8f3a
/Tasks/Task1/Homework1/DictMetod.py
3b21cc42988ac535eab467361408769db2f9e67f
[]
no_license
Dmi3y888/Project-Sky
6dc2639766f263ce25d61c3d438d95dd9b57b18d
4138c35af17912d3f2c2a6c1092ca0f96ab7e000
refs/heads/master
2020-06-02T14:58:40.051873
2019-09-10T16:00:55
2019-09-10T16:00:55
191,198,231
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
class Mydict(dict): def get(self, key, default=0): return dict.get(self, key, default) a = { 'a': 1, 'b': 2 } b = Mydict(a=1, b=2) print(a, b) print(a.get('12')) print(b.get('13'))
[ "dmi3y888@gmail.com" ]
dmi3y888@gmail.com
fff7d0a9890e471cbcfbe8118e8ba40cfadbe983
e08ad9b9c3391ad809c01358faab0a68241cef5d
/tun_client.py
6c33678b11a48f5aac733de17c69ca8b671297ef
[]
no_license
antonercool/TLS-based-VPN
2b95b2e76d87de017fc8d7d3a489e1529ffeb839
31665660b798125642539d92f26516eaa5ede465
refs/heads/master
2023-01-23T14:47:19.344556
2020-12-09T14:21:00
2020-12-09T14:21:00
319,898,385
0
0
null
null
null
null
UTF-8
Python
false
false
906
py
#!/usr/bin/python3 import fcntl import struct import os import time from scapy.all import * TUNSETIFF = 0x400454ca IFF_TUN = 0x0001 IFF_TAP = 0x0002 IFF_NO_PI = 0x1000 # Create the tun interface tun = os.open("/dev/net/tun", os.O_RDWR) ifr = struct.pack('16sH', b'SecureVPN%d', IFF_TUN | IFF_NO_PI) ifname_bytes = fcnt...
[ "antonsihm@gmail.com" ]
antonsihm@gmail.com
389ed4bf8fa79c83b8d3b3d7760289e87d629443
f58c508f05d5781770db05eb0acedf2525478828
/factorialLog.py
0ad3795c461583646df622945b41275d55234007
[]
no_license
AzuLiu/AutomateBoringStuff
786ad49fe1815af0f08ed48558703cfeeb209a41
25f34cfff0ffe985c258912325fa98e19030a0fd
refs/heads/master
2021-04-06T09:20:47.996691
2018-03-22T02:30:11
2018-03-22T02:30:11
125,294,415
5
0
null
null
null
null
UTF-8
Python
false
false
857
py
import logging #logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') logging.basicConfig(filename='myProgramLog.txt',level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') # logging.disable(logging.DEBUG) logging.debug('Start of program') def factorial(n): ...
[ "noreply@github.com" ]
noreply@github.com
6001ba346612f6f193597608f08320170e40f44b
05f668036da3c4295b7f5282b7a7c9bd387bdd0b
/spiders/start.py
1df95b4204485539feeb2f92e43feb231c054bc9
[ "MIT" ]
permissive
ProgramRipper/biliob-spider
8ae476f7ab096734ac9c24c3318f98ee41af8c7f
2fe3d5fd91bb301dd0d0eb21d03153d6882f6bcf
refs/heads/master
2022-04-11T09:51:42.037081
2020-03-23T16:31:12
2020-03-23T16:31:12
312,482,354
0
0
MIT
2023-05-17T00:33:30
2020-11-13T05:32:19
null
UTF-8
Python
false
false
1,500
py
from time import sleep import datetime import schedule import psutil import os def find_procs_by_name(name): "Return a list of processes matching 'name'." ls = [] for process in psutil.process_iter(): try: for each in process.cmdline(): if name in each: ls.append(process.pid) ...
[ "jannchie@gmail.com" ]
jannchie@gmail.com
2db8c675ef78c85dd8e9a761388903ce091245a6
c9830d74e9c0258cb12387c4b1eb09da95c4b47c
/taxamo/models/calculateTaxLocationOut.py
d92aaf87ab88efc14df98ade2d1f39b8829778ef
[ "Apache-2.0" ]
permissive
dougvictor/taxamo-python
b88678f3b174cf3b8fbd64fa07d80136fddb8efb
db01e924b8afbb2224b184c18b6973c28af6cc1a
refs/heads/master
2021-01-11T16:34:53.378679
2016-05-17T11:54:29
2016-05-17T11:54:29
80,114,339
0
0
null
2017-01-26T12:54:16
2017-01-26T12:54:16
null
UTF-8
Python
false
false
2,198
py
#!/usr/bin/env python """ Copyright 2014-2015 Taxamo, Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
[ "tomek.lipski@gmail.com" ]
tomek.lipski@gmail.com
70e2ac4467d52f6dbc784a045f8273bc8523d10b
628ee0a752511872df9c385dc2ccde6d17d5a068
/tests/cli_test.py
354c32695e79757520785c4546ae545ea0bc2cb2
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "Apache-2.0" ]
permissive
nchain/nchain
d64952a3916538051519e3e090a66270e0130fa3
e3b23ffbc9964e6830917a2f38e25d062dbb7d4c
refs/heads/master
2023-01-19T12:04:26.393819
2020-12-03T02:26:23
2020-12-03T02:26:23
294,656,640
3
2
MIT
2020-11-25T07:15:10
2020-09-11T09:50:10
C++
UTF-8
Python
false
false
2,411
py
#!/usr/bin/env python3 # This script tests that the compiled binaries produce expected output in # response to the `--help` option. It also contains a couple of additional # CLI-related checks as well as test cases for CLI bugfixes. import subprocess import re def nodeos_help_test(): """Test that nodeos help co...
[ "15220088021@163.com" ]
15220088021@163.com
a80aad236d7e5fdb9140e4bdcc5756b70e0e3d20
c24735126bc53829e2316dc4c6a2569c9bc76c70
/weight_simulation/six_bin.py
0ae1337814e3698afcfd76ba3548299c2a0f9804
[]
no_license
OuYangMinOa/Axion
1c0070c9bf6fc3143a67e3edf6cc42893438cebb
6fb366a6d568224006f6d9ea59532bd78be24953
refs/heads/master
2023-03-10T19:29:58.568778
2021-02-23T09:23:35
2021-02-23T09:23:35
290,477,437
0
0
null
null
null
null
UTF-8
Python
false
false
6,191
py
from matplotlib.pyplot import* from matplotlib.patches import Rectangle style.use("dark_background") from numpy import * c = 3e5 # speed of light km/s s11 = 0 # s11 QL = 70_000 # Q factor N = 16_001 # Integration time T = 5.6 # (k) kb = 1.38e-1 # 1e...
[ "noreply@github.com" ]
noreply@github.com
5609fd54d64171be86c083a1c97acedac6ee71b8
2b1d2abaa3c378bdc3f0f380e3542768931e2ae0
/dirshelve.py
d0c4112ed498694356794af2a19d28ce0bf0598e
[]
no_license
tf198/pyissues
c2be14a7f84d418c5c659dc1f366f55750fac735
15f9a8fa94e59e728b1c8840d6e97e690f1d20c3
refs/heads/master
2016-09-06T04:20:24.296160
2013-12-03T12:43:28
2013-12-03T12:43:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,549
py
''' dirshelve.py, v0.1 Implements shelve API using files in a directory. Supports path type keys e.g. 'subdir/testing'. Implements smart writeback. import dirshelve data = dirshelve.open('data', writeback=True) data['test1'] = 'one' data['subdir/test2'] = 'two' assert(data['test1'] ...
[ "tris@tfconsulting.com.au" ]
tris@tfconsulting.com.au
dd661aca0d4d716d072d831d5c4c9f829d0c396c
9fdcbd511aae38fe10fc2f2b786c15bdd44be9c6
/klubvino/winetasting/migrations/0002_winetasting_location.py
5a8239bb7da1db6fa017bc829ae5520a24cd5040
[]
no_license
Kuber-Ietermagog/Klub-Vino
477d43f62212ced69d4b190420fbbc232e96ec1d
eb6b8de5de262b32d1e47e489ed14e8d6d57a6fc
refs/heads/master
2020-03-22T23:40:23.854352
2018-07-13T08:58:11
2018-07-13T08:58:11
137,715,606
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
# Generated by Django 2.0.2 on 2018-06-27 11:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('winetasting', '0001_initial'), ] operations = [ migrations.AddField( model_name='winetasting', name='location', ...
[ "kuber.ietermagog@gmail.com" ]
kuber.ietermagog@gmail.com
23326109a32ee44d440a6f341936ae0653641b18
cd7a9193060cb397af6ded21f7088d0b3ab443b5
/keys.py
fac87898bd69472eb709c2d06d67b922360c8b5d
[]
no_license
alirezaismyname/news_bot_with_telegram
68622c56da83cc60546ac43606c9085d1d5c544f
c36c5720ce6d4af54ce6758f74d1df46a7a3d1ed
refs/heads/master
2022-12-17T16:55:14.216607
2020-09-23T07:31:47
2020-09-23T07:31:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
news_api_key = 'Your_newsApi_key' telegram_key = 'bot_your_botNo:your_Bot_key' def get_news_api_key(): return news_api_key def get_telegram_key(): return telegram_key
[ "abhinavsharma150@gmail.com" ]
abhinavsharma150@gmail.com
52929d016204f231c3ef7b0ad5381c354bcc358a
80093b8220f7e4f1426ef084b5719f238c02e197
/functional_tests/test_all_users.py
0366a41bcc16bc74e0b5ee993d9625b8b7852847
[ "MIT" ]
permissive
rolkov/taskbuster-boilerplate
c5a8759f9efa6127f050de23ae52d0635857ca63
e1fad13c54b84597304d40d616485675baf82b86
refs/heads/master
2021-09-09T12:03:57.416190
2018-03-15T21:18:48
2018-03-15T21:18:48
124,790,219
0
0
null
null
null
null
UTF-8
Python
false
false
2,519
py
# -*- coding: utf-8 -*- """Testing all users.""" from datetime import date from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.urls import reverse from django.utils import formats from django.utils.translation import activate from selenium import webdriver class HomeNewVisitorTest(Stat...
[ "rolkov+git@gmail.com" ]
rolkov+git@gmail.com
18927a4d6c41ee8f5750ed1b5eee62ec6a794d33
bdccb54daf0d0b0a19fabfe9ea9b90fcfc1bdfbf
/Interview Preparation Kits/Interview Preparation Kit/Miscellaneous/Flipping Bits/flipping_bits.py
cd52f26938ced69241748542cf1618a1bdcac0d9
[ "MIT" ]
permissive
xuedong/hacker-rank
aba1ad8587bc88efda1e90d7ecfef8dbd74ccd68
1ee76899d555850a257a7d3000d8c2be78339dc9
refs/heads/master
2022-08-08T07:43:26.633759
2022-07-16T11:02:27
2022-07-16T11:02:27
120,025,883
1
0
null
null
null
null
UTF-8
Python
false
false
410
py
#!/bin/python3 import math import os import random import re import sys # Complete the flippingBits function below. def flippingBits(n): return ~n & 0xffffffff if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') q = int(input()) for q_itr in range(q): n = int(input()) ...
[ "shang.xuedong@yahoo.fr" ]
shang.xuedong@yahoo.fr
a306e9ff6dede6a5968ac673f175af4739edc3be
1fd4273fa43a8a16855dc7587b56094264869ecc
/k_means_cluster_ramdom_blobs.py
cef459ce41e39aba0ce458473930fe4d129afd25
[]
no_license
chaiwon0724/Intro-Python-Machine-Learning
080bd59bcc4fa227e5e7e6fd00c40961d4a0ecb9
9a840eb65edabc20b3412814d64900e53b5b075e
refs/heads/master
2020-06-28T09:52:09.300591
2019-08-09T02:46:39
2019-08-09T02:46:39
200,203,937
0
0
null
null
null
null
UTF-8
Python
false
false
1,291
py
# -*- coding: utf-8 -*- """K-Means_Cluster_Ramdom_Blobs.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/17sGfHRCVZlsQmzL5kjozP8PPseB4VdLW """ from sklearn.datasets import make_blobs from sklearn.cluster import KMeans import matplotlib.pyplot as p...
[ "noreply@github.com" ]
noreply@github.com
abef17f912a8d9fe1afbba5a2745a82a4dde22ff
1f33488953befbc4d2df8a0311cd8c73cabfbcd3
/bangladesh-data/AutomatedCoronaInfoFetch.py
1f474b33a697f04d14e92023400caca23ea3e8c1
[]
no_license
rizveeredwan/Corona-History
3bd70b4c72982a6b78e4d0cb273fc305d595fb82
d9c39a646a83e14f05780ee18f63594c71dde2e0
refs/heads/master
2022-11-12T09:30:49.060014
2020-07-03T05:10:58
2020-07-03T05:10:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,733
py
import requests r = requests.get('http://covid19tracker.gov.bd/api/district') obj = r.json() keys = obj.keys() print(keys) keys = obj['features'] district={} def DistrictKeyMap(dis): if(dis=='Munshiganj'): return 'Munshigonj' if(dis=='Narsingdi'): return 'Narshingdi' if(dis == 'Chittagong'...
[ "rarndc@gmail.com" ]
rarndc@gmail.com
2cc05f57414ae3cd8b8ff916a8fadafcca29ae47
22436b29373d832a8558dfc92a9d5b2087bdbb92
/tools/axe/libWhere.py
78af91b8ef84a91d4e9b6040bcf8078eb936958f
[ "BSD-3-Clause", "MIT" ]
permissive
kpeng2019/TimeLIME
534c170095feec8418948fe1f0681804eefb63f4
31c165e0bb78862719ef9ba5237174f5cc6dc3ab
refs/heads/master
2023-01-04T17:57:48.177032
2020-11-04T12:36:43
2020-11-04T12:36:43
256,258,786
2
1
null
null
null
null
UTF-8
Python
false
false
7,554
py
""" # Support Code ## Standard Headers """ from __future__ import division, print_function import random import sys sys.dont_write_bytecode = True from settingsWhere import * """ ## Simple, low-level stuff ### Maths Stuff """ def gt(x, y): return x > y def lt(x, y): return x < y def medianIQR(lst, order...
[ "kpeng@ncsu.edu" ]
kpeng@ncsu.edu
46cbebe29d8e06a26284407995300025e5cdd12f
d7cfcee8da3707caa6b48f0869d26f59e0006d59
/process_delete.py
95fe810e48e010b68d56b429765ee44e5d21a22f
[]
no_license
seungbinpark/H-omiez
65103dca7e00303f8645aae9a01d68d45ff66612
8b53223c78a166941ad842d37e0b77c2b4bb33cb
refs/heads/master
2023-01-04T05:53:39.981552
2020-10-30T15:01:13
2020-10-30T15:01:13
298,144,088
0
0
null
2020-09-24T02:05:20
2020-09-24T02:05:19
null
UTF-8
Python
false
false
234
py
#!C:\Users\박승빈\AppData\Local\Programs\Python\Python38-32\python.exe import cgi, os form = cgi.FieldStorage() pageId = form["pageId"].value os.remove('data/'+pageId) #Redirection print("Location: index.py") print()
[ "noreply@github.com" ]
noreply@github.com
0a24af99b737a176005fe6e01f94384f2a45004b
6b8f1bfb467507779b50ee4113cd9aa90c97b487
/schemas/users.py
c0f3841559ad134823a5cc52849d266a79189854
[]
no_license
mr8bit/eliza-privacy
baa2e2b9f50eb7a8e67007171fdfe65e982cff55
e3f359b0acbd46507be919633ca861491c7f0e9c
refs/heads/main
2023-04-01T17:32:40.984214
2021-04-14T22:57:52
2021-04-14T22:57:52
357,627,580
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
from typing import Optional from pydantic import BaseModel class UserRegister(BaseModel): email: str first_name: str last_name: str password: str class UserLogin(BaseModel): email: str password: str class Token(BaseModel): access_token: str token_type: str class TokenData(BaseMod...
[ "a.mazaew@lambda-it.ru" ]
a.mazaew@lambda-it.ru
8b63a29441cb9e8d2602e6259654e50e3ae5e4be
8da91c26d423bacbeee1163ac7e969904c7e4338
/pyvisdk/mo/guest_operations_manager.py
42811965f87e374b8b96d6972b7bd55e7f8b7f68
[]
no_license
pexip/os-python-infi-pyvisdk
5d8f3a3858cdd61fb76485574e74ae525cdc7e25
1aadea0afbc306d09f6ecb9af0e683dbbf961d20
refs/heads/master
2023-08-28T02:40:28.789786
2020-07-16T04:00:53
2020-07-16T04:00:53
10,032,240
0
1
null
null
null
null
UTF-8
Python
false
false
1,275
py
from pyvisdk.base.managed_object_types import ManagedObjectTypes from pyvisdk.base.base_entity import BaseEntity import logging ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) class GuestOperationsManager(B...
[ "jmb@pexip.com" ]
jmb@pexip.com
b7d1651a167944e04977494a24fb4adde2a41e12
eaf4a4d8db4a4c4789ac6c3111658da5a399fdc1
/legacy/model_7/dataset_cnnb.py
16c8b7d56a81df6f7d36fd74052ee48da895ebaa
[]
no_license
remit0/SpeechRecognitionProject
7d1d435c654969952d49b9dca1e846c20a7d911a
1498abd81680cc9d0e03fe09b79049af99dbf28d
refs/heads/master
2020-03-17T13:49:29.226687
2018-08-15T10:10:21
2018-08-15T10:10:21
133,645,919
0
1
null
2018-06-09T22:56:14
2018-05-16T09:56:08
Python
UTF-8
Python
false
false
8,522
py
import torch import numpy as np from torch.utils.data import Dataset from random import randint from scipy.io.wavfile import read, write from math import floor from os import listdir from os.path import isfile, join import cv2 from librosa.effects import pitch_shift # pylint: disable=E1101, W0612 # 1853 labels = ['yes...
[ "remi-rosenthal@hotmail.fr" ]
remi-rosenthal@hotmail.fr
f0633a4738dfa3278acb689e5f24c8e947c7d767
92ecfd255c62ac56590f5183e3497a1e12f318bd
/mysite/polls/migrations/0001_initial.py
805f2cc252f82c30ae742b8d6b523387c57a47b5
[]
no_license
vincentburns42/django_tutorial
dc2bbff6d76de5d734c7a41bea855eb974662e36
b0f311f578aafbc77f75589974a821a3f9a42e04
refs/heads/main
2023-01-24T11:58:43.949690
2020-11-27T14:33:03
2020-11-27T14:33:03
311,092,789
0
0
null
null
null
null
UTF-8
Python
false
false
1,075
py
# Generated by Django 3.1.3 on 2020-11-27 13:38 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Question', fields=[ ...
[ "vincentburns42@gmail.com" ]
vincentburns42@gmail.com
bfb59e589c20d7e08a464a30d674222d506f6601
f1433b0b1ee0e172917a6b0a653556a15ad7e366
/app/mage.py
24c2598c8a98859d20c46c8e9e4108e8c28d4388
[ "Apache-2.0" ]
permissive
ordinem-net/core
7fa6e82dc2b90695f207d836c4624b142ace4398
f59a06a51fcac32ba79005ba25842bb258c3a08c
refs/heads/master
2023-01-11T16:02:36.749506
2019-05-25T06:27:37
2019-05-25T06:27:37
160,587,719
0
1
Apache-2.0
2023-01-03T20:44:36
2018-12-05T22:40:52
JavaScript
UTF-8
Python
false
false
2,369
py
from const import const from essense.secondary.fs.json_files import JsonFiles from essense.user import User import os class Mage(object): """Класс для функций, необходимых в самих шаблонах""" @staticmethod def action_user(): if JsonFiles().is_zero_file(const.PATH_TO_DATA): return False...
[ "lazaryan99@gmail.com" ]
lazaryan99@gmail.com
b3678b1daf05da8ddc9b85286e987e63d7a0814d
30fc07fc598bbf3f35e0ef46f42060e821d8cee5
/io_gfdl_w.py
c5e50675006ad2910cb034a3cf364104981e8256
[]
no_license
chiaweh2/OMIP_TropPac_SeaLevel
f88f54bbcda208520f7125782c2aa873c1aa0ce4
14338472215a588798670270616018ea9864fd0f
refs/heads/main
2023-04-06T23:14:48.328703
2021-04-03T14:51:35
2021-04-03T14:51:35
354,135,281
0
0
null
null
null
null
UTF-8
Python
false
false
9,214
py
#!/usr/bin/env python # coding: utf-8 # # Calculate vertical velocity field # # The script utilized the new zarr format for faster IO and dask array processing. # The output is in netcdf format for easy sharing with other import os import dask import xarray as xr import numpy as np import time as te from mem_...
[ "chiaweih@email.arizona.edu" ]
chiaweih@email.arizona.edu
853a9fd57311ae54a14614d5259048b766c97008
1b49e8caf51806c2223161a61d81ae507b095c2c
/media_management_scripts/commands/__init__.py
889550e276e4f18713a60dc929f6fcc121d1d551
[ "Apache-2.0" ]
permissive
wazerstar/media_management_scripts
7a2ea217340b8e62792228453f89d599357a3dd1
ec7c996e4e406eb4cb4e57f311c7953fbb7708a4
refs/heads/master
2020-06-13T05:07:19.225296
2019-06-30T01:02:42
2019-06-30T01:02:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,388
py
from abc import ABCMeta, abstractmethod import shutil from typing import List, Tuple, Callable from media_management_scripts.support.files import check_exists, create_dirs class SubCommand(metaclass=ABCMeta): def __init__(self): self.dry_run = False self.ns = None @property @abstractmetho...
[ "ray@raydouglass.com" ]
ray@raydouglass.com
e131e223089d88b9b8c0494374f56cfae43c853f
127dba34e2129ae75dc94bfefbf69a41d3091ae9
/Year3_Sem1/Cloud_Infrastructure_Lab/Lab1/application.py
040272668db51f66cbbf7970ba53b17b77810679
[]
no_license
NathanCrowley/College
1bf6f346ea94b35d222200363852592e0d50de81
5d2832553b1974d84839ca18818beeeb4ed5190f
refs/heads/main
2023-02-17T03:54:38.644881
2020-12-28T13:33:38
2020-12-28T13:33:38
307,514,028
1
0
null
null
null
null
UTF-8
Python
false
false
1,552
py
''' - TO RUN: 100,10 gives output of 10 times from 0 to 100 in increments of 10. Create an application, can be simple but must have a measurable execution time, And run this on the HOST, the VM and the Container. Compare these execution times and plot on a graph. Application: take in a number (i) from user s...
[ "noreply@github.com" ]
noreply@github.com
aeee34f5fff72504a9d9c4e9b41e0a0dd888889b
deb489ce396590ff026d07e4a525a30e06c891c6
/bark_meow/dataset.py
42acc241fb83c0feb91acdbe307349fa0305ad82
[]
no_license
dansuh17/barks-and-meow-classification
a4e66fa1a4993de8df8fd71051cb4cad32b3fc1a
2a786f1ea0eb03db65435352c3c6df3d79f0ffb4
refs/heads/master
2023-08-06T10:21:06.266581
2019-12-16T04:09:23
2019-12-16T04:09:23
200,587,213
2
1
null
2023-07-22T12:41:59
2019-08-05T05:20:31
Python
UTF-8
Python
false
false
1,644
py
import os from collections import namedtuple from torch.utils import data import numpy as np from scipy.io import wavfile # tuple representing the label and the full path of file containing audio segment AudioData = namedtuple('AudioFilePath', ['label', 'path']) class BarkMeowDB(data.Dataset): """ Dataset r...
[ "kaehops@gmail.com" ]
kaehops@gmail.com
a3170f0afed168b49438925daaa762eb0db1af25
8ec3620bfb9ca46bd732cae277da053a712d8591
/search.py
c1baf4691891fd5025f9f49de5a2b5d7e2e9bfd2
[]
no_license
NikolaosSokos/dr-project-elasticsearch
de0ea2a3c175e1410ebfbabe3ad3cbb523722a4a
29a649b28783861f6350238f564210cf80c36866
refs/heads/main
2023-03-17T15:47:24.810699
2021-03-11T10:28:39
2021-03-11T10:28:39
346,661,800
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
from elasticsearch import Elasticsearch import pandas as pd elastic_client = Elasticsearch() search_tag = input("Enter word you want to search:") query_body = { "query": { "bool": { "must": { "match": { "title": search_tag } } } } } dflst = [] # P...
[ "noreply@github.com" ]
noreply@github.com
796fb3923593aff09a76764b03a1b6e7e18b9a25
1990344218def595b8fe8a60d2367f8733289586
/Tape.py
ee1c22b1754b1f413c8732078cf15e7b640bfbea
[]
no_license
fortable1999/dynamicprogramming
7afd49a5bc8b2f92eb927581e718c57fdb040f51
976efa646cb16e40eb13772046e7d04ff109dc10
refs/heads/master
2020-04-09T15:31:08.153342
2018-12-06T02:17:51
2018-12-06T02:17:51
160,428,467
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
import math def solution(A): # write your code in Python 3.6 left, right = A[0], sum(A[1:]) diff = abs(left - right) for elem in A[1:-1]: left += elem right -= elem if abs(left - right) < diff: diff = abs(left - right) return diff print(solution([-1, 1, 1000, -...
[ "fortable1999@gmail.com" ]
fortable1999@gmail.com
3e1b101572027efd19f4f12fdca52fe92809ac40
fb7c1b112a92047145ded2e4c90ed93e119ea423
/44.py
97aff1368e8d50b710074bd9536bdd7203717b58
[]
no_license
CosmoAndrade/PythonExercicios2020
54d5285ca7f502f3d4186be583f506b75e8c4ff3
005bfae05473d7d22d929e9e7c1888abab514414
refs/heads/master
2022-11-26T02:56:55.165405
2020-08-05T23:40:01
2020-08-05T23:40:01
284,506,395
0
0
null
null
null
null
UTF-8
Python
false
false
978
py
''' Uma fruteira está vendendo frutas com a seguinte tabela de preços: Até 5 Kg Acima de 5 Kg Morango R$ 2,50 por Kg R$ 2,20 por Kg Maçã R$ 1,80 por Kg R$ 1,50 por Kg Se o cliente comprar mais de 8 Kg em frutas ou o valor total da compra ultrapassar ...
[ "cosmo.andrade@hotmail.com" ]
cosmo.andrade@hotmail.com