blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
3eb6d193517b5ddaa0e343c16513ad7fff94180c
216ee8ab7ca468638aa2dc6ccb7f89ea76dd0b35
/Project/Solutions/b_print_to_csv/scraper.py
53d02a6e14c5fe2a789323404aefe9f094fd9c4d
[]
no_license
satishkbe/python-level-2
7b44d0f676bc830f0a94f823aeb6e0f628215628
834411f74d54019b9675a87004fd39072dc5fba0
refs/heads/master
2023-03-13T20:32:17.993938
2021-03-16T00:19:07
2021-03-16T00:19:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,099
py
import csv import requests from bs4 import BeautifulSoup URL = "https://en.wikipedia.org/wiki/Member_states_of_the_United_Nations" # Todo: Update with your info name = None email = None assert name and email headers = {'User-Agent': f'{name} ({email})'} response = requests.get(URL, headers=headers) assert respons...
[ "ariannedee@gmail.com" ]
ariannedee@gmail.com
7b36da46e9525ecd5334eed1e12a60755f7ecced
3691f0b571612fd550095af0d7c93f22d5a8061c
/ERP/ERP/urls.py
c6682a389f1e01fb60f097995d0cfef7300d1560
[]
no_license
sambapython/db16
29db8c6be5a3628cd3063cc0d8e092ae8ea69d60
98d751ffc7277bb4e28f90b7cb470d667ab47593
refs/heads/master
2021-02-11T22:02:34.251113
2020-03-03T03:43:29
2020-03-03T03:43:29
244,532,780
0
1
null
null
null
null
UTF-8
Python
false
false
931
py
"""ERP URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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-based vie...
[ "sambapython@gmail.com" ]
sambapython@gmail.com
1571db30fcb1897a7c23bbc6da84249efffefe12
13cf11440998376d3b52a49f1e4fb8936c360ac4
/chainer_chemistry/saliency/visualizer/table_visualizer.py
4e27c19c5a807d63f9d5844832ecaecdfb772adc
[ "MIT" ]
permissive
k-ishiguro/chainer-chemistry
87e3db724de0e99042d9585cd4bd5fff38169339
aec33496def16e76bdfbefa508ba01ab9f79a592
refs/heads/master
2021-07-06T22:58:20.127907
2019-02-04T02:51:34
2019-02-04T02:51:34
169,345,375
1
1
MIT
2020-07-30T06:04:13
2019-02-06T02:27:39
Python
UTF-8
Python
false
false
3,289
py
import numpy import matplotlib.pyplot as plt from chainer_chemistry.saliency.visualizer.base_visualizer import BaseVisualizer # NOQA from chainer_chemistry.saliency.visualizer.visualizer_utils import abs_max_scaler # NOQA class TableVisualizer(BaseVisualizer): """Saliency visualizer for table data""" def...
[ "acc1ssnn9terias@gmail.com" ]
acc1ssnn9terias@gmail.com
af23bfe2581b749cad1c35dc75d23d8ece968b41
e756bfb5290cd336d20f0cf0cde04eec2a35caae
/src/actions/custom/utils/pick_card.py
9847ba74cd50d6deef5415fb9cb4dde04b52eee6
[ "MIT" ]
permissive
StetHD/Lonabot
ff1b9113f1e8d6618a271a17752e86679e0c6274
615ce2c176607d6da71c84d38644d8aaaf0d3a0b
refs/heads/master
2021-01-22T10:40:55.989293
2016-08-24T10:17:29
2016-08-24T10:17:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,101
py
from actions.action_base import ActionBase from random import choice, randint class PickCardAction(ActionBase): def __init__(self): super().__init__(name="PICK A CARD FROM THE DECK", keywords=['pick a card (INT)', 'pick (INT) cards?']) def a...
[ "totufals@hotmail.com" ]
totufals@hotmail.com
b26f46287c34e1c977675f1a1da4680ab338880a
d578dc0955028ee86656f06423ceaa4a50c5ba92
/Final Project/Centroid.py
6915378daa05fc205509cf703953b537c1f5ae35
[]
no_license
ohsuz/CSI4106-Repository
1b17482d9215c0dcfff60edb90494833d11e069a
d81c5a2600b7c8bf67dd02fbd30138a7f8245e47
refs/heads/master
2023-06-11T10:29:33.009843
2021-06-26T18:02:50
2021-06-26T18:02:50
230,781,524
3
1
null
null
null
null
UTF-8
Python
false
false
1,509
py
#!/usr/bin/env python # coding: utf-8 # In[33]: #import packages import glob import os import imutils import cv2 #read the images from the folder images = [cv2.imread(file) for file in glob.glob("C:/Users/cjtol/CSI4106/Pocket/*.png")] #covert image to grayscale gray = cv2.cvtColor(image, cv2.COLOR_...
[ "gl_gd@naver.com" ]
gl_gd@naver.com
b8b6bb828f4ec50c41c2757085e46ecb0e773461
38a4b0b758125419b21ea417530bd418c5eeb0d1
/Homework/Barker HW4-1.py
3d991d85ddc48a0a9878c15ab1eb43b045ae8463
[]
no_license
acbarker19/PHY299-Class-Assignments
4c12146bf83ac3737748dc25587a720ac2a61da8
d17d445e70c8228c247f92c772bb69471e69024f
refs/heads/master
2021-07-03T04:32:57.555060
2021-05-18T01:59:59
2021-05-18T01:59:59
236,010,951
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
# HW 4-1 # Alec Barker import math # Q2.5.2 a = 1 b = math.sqrt(2) while a != b: stored_a = a stored_b = b a = 0.5 * (stored_a + stored_b) b = math.sqrt(stored_a * stored_b) print(a, b) G = 1 / a print("Gauss's Constant: ", a)
[ "acbarker19@gmail.com" ]
acbarker19@gmail.com
cd6c93b19fecb396cb0458d2561de26a3b8b110a
f40ad51a600e64f12710fc4847c356a35cd0a3d2
/S08/oop/geometry.py
69181f8bd1a3113ef4a969527338183d111a722a
[]
no_license
pymft/py-mft1
0aa1b854ea80e17e18c0eacc6f4dc7428a71af39
f4657fe17e56b6f54bdc8b1076edfc388b85cb05
refs/heads/master
2020-05-09T09:32:59.020361
2019-07-05T13:59:19
2019-07-05T13:59:19
181,006,072
1
5
null
2019-05-03T20:06:03
2019-04-12T12:42:38
Python
UTF-8
Python
false
false
940
py
import math class Parallelogram: def __init__(self, a, b, angle): print("paralleogram", self.__class__) self.a = a self.b = b self.angle = angle @property def area(self): return self.a * self.b * math.sin(math.radians(self.angle)) @property def perimeter(se...
[ "naeini.v@gmail.com" ]
naeini.v@gmail.com
a40183d91dc5ab741e0f4a91dfb2c05c5b73b66f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02628/s785161467.py
3f9c154f8635eed3d0cb56f4538868a10a28d93d
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
n,k,*p=map(int,open(0).read().split());print(sum(sorted(p)[:k]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
836236628e6676f74198897e9bb09b26ef6e8926
37b0de1e37bc313ad5c4735d288f0f2ccc6bca88
/tests/test_paired.py
9cf3c361cabf9ee88f9f5d935c87a3044e68aeb9
[ "MIT" ]
permissive
kingdynasty/cutadapt
a65b46eb192fbff00ab404324d5960f1ab22cb79
49aa33ac46c5183a39acddbe85d58103ff7eecb8
refs/heads/master
2020-03-28T14:04:13.798989
2018-09-10T09:21:48
2018-09-10T09:21:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,702
py
import os.path import shutil import tempfile from itertools import product import pytest from cutadapt.__main__ import main from utils import run, assert_files_equal, datapath, cutpath, redirect_stderr, temporary_path @pytest.fixture(params=[1, 2]) def cores(request): return request.param def run_paired(params, ...
[ "marcel.martin@scilifelab.se" ]
marcel.martin@scilifelab.se
56e49ec8b756e2762d4f46ee992731ee54be86f1
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_116/379.py
45af30e36a16a8b8f0a6a9536d9e5d1ddb753e2b
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
def hasLine(squares, symbol): for i in range(4): if squares[i][0] == squares[i][1] == squares[i][2] == squares[i][3] == symbol: return True for i in range(4): if squares[0][i] == squares[1][i] == squares[2][i] == squares[3][i] == symbol: return True if squares[0][0] == squares[1][1] == squares[2][2]...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
c9b5f52e264f390c417cae5e4792a29258632755
14ecd6759326918a9875372244d3a340a8d7adb5
/lib/liba/__init__.py
db7e4b0f994814c0aef317c213a4b11cc6b86ea3
[]
no_license
tkhr-ssk/SamplePythonProject
65cf264c158d4705e5afc9c6acd45d16f4858334
a833946ed52a85b20812130351d5076073b6a8f0
refs/heads/master
2022-04-22T21:08:40.348668
2020-04-15T16:37:13
2020-04-15T16:37:13
255,956,301
0
0
null
null
null
null
UTF-8
Python
false
false
20
py
from .liba import *
[ "tkhr.ssk@gmail.com" ]
tkhr.ssk@gmail.com
04994d6cae6c4f70af3f4f30afa2278ef9092dfa
b38d648c04d766bc87b650aae9ec63b0c55e523b
/chapter2/k_bandit.py
33ac126a53bda17dd28c6f2bb4c77205d11a06fc
[]
no_license
MLasserre/reinforcement-learning
6346ccf39fb39d69b295246abcb1f3659ed310b9
4817c3c0ee1e0bcc43cc0e66d8e1601b4b5ae963
refs/heads/master
2022-12-17T06:04:09.550224
2020-09-25T14:09:22
2020-09-25T14:09:22
291,924,568
0
0
null
null
null
null
UTF-8
Python
false
false
4,719
py
import numpy as np import matplotlib as mpl import matplotlib.ticker as mtick import matplotlib.pyplot as plt mpl.rc('text', usetex=True) mpl.rc('font', family='serif') # Functions initializing the true action values def normal_initialization(k, mu=0., sigma=1.): return np.random.normal(mu, sigma, size=k) def con...
[ "marvin.lasserre@lip6.fr" ]
marvin.lasserre@lip6.fr
4d2d3bc59a972fe23893c7a994e048f6ef031328
e1591e08d14518483aad7058003a8b56f144e4fe
/route.py
24138f21cd1f31bffcfff06d147324bb4160fd18
[ "Apache-2.0" ]
permissive
ZhouRR/Baibumblebee
672db67c705e92c237ff319c2ab3bc6368b7b6ed
3100b9c2dc8cc4674ed1975bcda096f2f5d99033
refs/heads/master
2022-11-14T18:05:14.566928
2020-07-08T08:21:03
2020-07-08T08:21:03
277,741,367
1
0
null
null
null
null
UTF-8
Python
false
false
979
py
import os from fastapi import FastAPI import urls from models.models import * from views import media_view, headline_view, contents_view app = FastAPI() @app.get(urls.MEDIAS) async def get_medias(): return media_view.get_medias() @app.post(urls.MEDIAS) async def post_medias(media: Media): return media_vi...
[ "zhourr@ohs-sys.com" ]
zhourr@ohs-sys.com
75ca027e72150e7fcc19ed4fba648acdc5b2451e
f74f645082e7211ea2b84cd5f9e33b1f30ec0372
/Adafruit_I2C.py
c797bbdb693e10284fade282e46aa86e1f4bf272
[]
no_license
Dbroqua/Adafruit_CharLCDPlate
c859b52ff958cf2fab8d2fcc2744bb76c2953d3f
69c2c2a568df3dd84a4ebe9cd180ff90785ad127
refs/heads/master
2016-09-06T13:49:20.994566
2013-09-23T11:20:56
2013-09-23T11:20:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,581
py
#!/usr/bin/python import smbus # =========================================================================== # Adafruit_I2C Class # =========================================================================== class Adafruit_I2C : @staticmethod def getPiRevision(): "Gets the version number of the Raspberry Pi...
[ "damien.broqua@gmail.com" ]
damien.broqua@gmail.com
fd7326df55080e803d9ef5dcf9ef75f5bfd70c6c
2c872fedcdc12c89742d10c2f1c821eed0470726
/pbase/day12/code/text2.py
416a82954f3664da8fa1e1eb23e2cb329b0f8028
[]
no_license
zuigehulu/AID1811
581c3c7a37df9fa928bc632e4891fc9bafe69201
10cab0869875290646a9e5d815ff159d0116990e
refs/heads/master
2020-04-19T16:33:04.174841
2019-01-30T07:58:24
2019-01-30T07:58:24
168,307,918
1
0
null
null
null
null
UTF-8
Python
false
false
479
py
# 编写函数fun 基功能是计算下列多项式的和 # Sn = 1 + 1/1! + 1/2! + 1/3! + .... + 1/n! # (建议用数学模块中的factorial) # 求当n得20时 Sn的值 # 即: # print(fun(20)) # 2.718281828... import math # def sumfun(n): # Sn = 1 # for x in range(1,n+1): # Sn += 1/math.factorial(x) # return Sn # print(sumfun(20)) def ...
[ "442315617@qq.com" ]
442315617@qq.com
1fcd20eceee08a20fa3e8e20698adae133f508da
86cd22354f2431087c9b3ff06188f071afb3eb72
/71.Simplify Path.py
e9e05e520df721762f6fc00d81f8232f8e74ae22
[]
no_license
tlxxzj/leetcode
0c072a74d7e61ef4700388122f2270e46c4ac22e
06dbf4f5b505a6a41e0d93367eedd231b611a84b
refs/heads/master
2023-08-31T11:04:34.585532
2023-08-31T08:25:51
2023-08-31T08:25:51
94,386,828
2
0
null
null
null
null
UTF-8
Python
false
false
380
py
class Solution(object): def simplifyPath(self, path): """ :type path: str :rtype: str """ ret = [] for i in path.split('/'): if i == '' or i == '.': continue if i == '..': if len(ret)>0: ret.pop() else: ...
[ "tlxxzj@163.com" ]
tlxxzj@163.com
e1797abbb517a5b0d9e49e93536eb28f286dff74
a214e706c875e0af7221c0c9ae193d9d93ee20a7
/merge_pedmap.py
a521b00da550343f20052204c786390bad354afb
[]
no_license
inambioinfo/bioinformatics_scripts
fa2292e91ad4134204a09ace27c8a91ae70fa34c
3a23611f382b7f3dd60e5e2abe841b84408c0d44
refs/heads/master
2020-03-20T21:17:10.163061
2017-03-28T23:41:39
2017-03-28T23:41:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,809
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from optparse import OptionParser import os __author__ = "Raony Guimarães" __copyright__ = "Copyright 2012, Filter Analysis" __credits__ = ["Raony Guimarães"] __license__ = "GPL" __version__ = "1.0.1" __maintainer__ = "Raony Guimarães" __email__ = "raonyguimaraes@gmail.co...
[ "raonyguimaraes@gmail.com" ]
raonyguimaraes@gmail.com
6cdda0b14cf4b2da2cea3b94f55cf433cdb26ca6
bdc68211250e7945bb6705f65c6ab3a3246fb2b6
/src/util/tree/sequence_tokenize.py
471e40aa03260adee5c2307c0e9fc3ea67cfe88f
[]
no_license
dannykh/PCFG_mmn13_openu
83aba350c6e23c1fc8eb1d898abe22e39f447a84
d5d02666807fed3c71718f0833ad3769d31c8231
refs/heads/master
2020-06-16T18:56:18.717872
2019-07-09T22:27:58
2019-07-09T22:35:01
195,670,311
0
0
null
null
null
null
UTF-8
Python
false
false
621
py
def consume_tag(sequence, pos): tag = '' while sequence[pos] != ' ' and sequence[pos] != ')' and pos < len(sequence): tag += sequence[pos] pos += 1 return tag, pos def tokenize(sequence): ''' tokenizes the bracketed notation ''' tokens = [] pos = 0 while pos < len(sequenc...
[ "danny.kh93@gmail.com" ]
danny.kh93@gmail.com
b5d478ae0c2d08d401203a1943d48fbf5d4a2357
7e46b27029a2ef5c04dca00d1f631c16f59d03e0
/class_tree/class_tree/wsgi.py
3e2d7d6351c027444cb013150d1bb137e7e13dd5
[]
no_license
MCGallaspy/class_tree_proof
4141454e0154985548fc63297a11a930953176b8
eef71e950e2a7663ccc0924acd8f0cf288b90fec
refs/heads/master
2021-01-10T17:00:53.345047
2016-02-03T22:37:25
2016-02-03T22:37:25
50,004,234
0
1
null
2021-10-11T22:55:40
2016-01-20T04:26:08
Python
UTF-8
Python
false
false
397
py
""" WSGI config for class_tree project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
[ "gallaspy.michael@gmail.com" ]
gallaspy.michael@gmail.com
874f4efd56ce1004c56e15fdb3c4e2f34e10535b
6bd89a5be0e2052d987894c9c490b0cf4a483313
/Server/classLibrary/CreditDataClass.py
716a45acddca1cd2980ff0588883938a207f6840
[]
no_license
a0935210570602/credit_card_analize_project
c3a833174a13d5653d326e3158e5b9d580cfe255
46b8d14c0f92c3e289e16e04baab1a03bd461077
refs/heads/master
2023-01-24T06:00:22.205642
2020-11-16T07:28:18
2020-11-16T07:28:18
286,956,997
3
1
null
null
null
null
UTF-8
Python
false
false
1,991
py
class CreditData(): def __init__(self, datalist): self.datalist = datalist self.resultlist = [] self.result = [] self.flag = list(range(0,self.datalist.count())) for count in range (0,self.datalist.count()): self.resultlist.append({}) for key in self.d...
[ "t106820003@ntut.edu.tw" ]
t106820003@ntut.edu.tw
dd713f3a180a0c82f82e9b6a9e9358a8c8649ab4
f4d78406cda8cb7e8232873dfd4d735763a36f07
/result/migrations/0004_auto_20170331_2017.py
5ac9fa86e89e90bb810b3663b4339951b7cc5e5d
[]
no_license
pratulyab/ipu-results-bot
722b646a098f95e21bb12a47bcaff69d7e8a034a
aa000f28cad79ad49d14547203877247fae7327d
refs/heads/master
2022-07-13T18:03:39.107959
2019-06-24T20:45:56
2019-06-24T20:45:56
193,555,061
0
0
null
2022-06-21T22:12:19
2019-06-24T18:05:45
Python
UTF-8
Python
false
false
550
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-03-31 14:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('result', '0003_auto_20170331_1806'), ] operations = [ migrations.RemoveField(...
[ "pratulyabubna@outlook.com" ]
pratulyabubna@outlook.com
92ec5116f94e22513a33ddba3fce5e3a11905699
52ceddf5260bb96bbf34c1057c7973cfc1a265d9
/auctions/migrations/0002_auctionlistings.py
8d5cec639a04af032dccc704592dee2024d34e55
[]
no_license
soumyadeepm04/Project2
607ba4601abd7487c779d4187950ef581c4832f7
8ab40befc12555470ba0255f86b75c76672e7ba8
refs/heads/master
2023-06-01T05:37:27.855994
2021-06-17T20:08:44
2021-06-17T20:08:44
377,622,452
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
# Generated by Django 3.2.3 on 2021-06-12 02:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auctions', '0001_initial'), ] operations = [ migrations.CreateModel( name='AuctionListings', fields=[ ...
[ "bmahapatra@c02xk3umjgh5.myfiosgateway.com" ]
bmahapatra@c02xk3umjgh5.myfiosgateway.com
0b3788d4fbdbbf609b1d07cec5135630f51a7c4b
ed7b5c24d9a13d0c717fd6f6293f3464f43d7cbf
/demo/sjh_web/demo55.py
0dd3351eafd4b929e7b8c9d051f64ed3d14dee2a
[]
no_license
befallenStar/python
ccb93d456dc161a8087a78220a7aaab21320ab8b
e44ce8c11b820f03fe2d60dfa84053d8cc356c80
refs/heads/master
2022-12-07T18:34:03.091146
2020-08-20T02:33:56
2020-08-20T02:33:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,659
py
# -*- encoding: utf-8 -*- import urllib3 pcUserAgent = { 'IE-agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windwos NT 6.1; Trident/5.0;', 'firefox-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'chrome-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/5...
[ "sy5622_5@126.com" ]
sy5622_5@126.com
572b84a3f569162ee860e6f7b20ac524c04a19b9
6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5
/katas/kyu_7/linked_lists_get_nth_node.py
1f2b39f86f418fb40df8cc42b845bc21a735c961
[ "MIT" ]
permissive
mveselov/CodeWars
e4259194bfa018299906f42cd02b8ef4e5ab6caa
1eafd1247d60955a5dfb63e4882e8ce86019f43a
refs/heads/master
2021-06-09T04:17:10.053324
2017-01-08T06:36:17
2017-01-08T06:36:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
class Node(object): def __init__(self, data): self.data = data self.next = None def get_nth(node, index): current = node dex = -1 while current is not None: dex += 1 if dex == index: return current current = current.next raise Exception
[ "the-zebulan@users.noreply.github.com" ]
the-zebulan@users.noreply.github.com
d47b760098656ec22905595db57af143f04c9a99
b5cf99c4ed0ff18e351394ae85a91068a74dcc16
/libdemo/bs_demo.py
445ff43c30b45cdfd2a3a0e39920958a494e0f96
[]
no_license
srikanthpragada/DEMO_PYTHON_19_NOV_2019
8966d218af8531c8e77accf7e2740094e2c1902f
ac50fdbb7de94d671e0ab5274d6aadd133b70899
refs/heads/master
2020-09-14T08:19:55.453868
2019-12-23T03:00:07
2019-12-23T03:00:07
223,076,035
1
0
null
null
null
null
UTF-8
Python
false
false
204
py
from bs4 import BeautifulSoup st = "<html><body><h1>Title1</h1><h2>Title2.1</h2><h2>Title2.2</h2></body></html>" bs = BeautifulSoup(st, 'html.parser') for tag in bs.find_all("h2"): print(tag.text)
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
3103c090ae865762051578e4e5a1c6dd75ac7c27
4f96a22dc45d85047b36b270142a375c3e485587
/flossColor.py
3d2485e8b54d0b3da94f28de002764645b9b91a2
[]
no_license
rickbanghart/PythonDev
2e530f8f4ac8950422b103a5daf05079c1f1b936
a81b6288d41348f7c4c6b0277fe39a48e82a229d
refs/heads/master
2021-01-11T14:54:51.140472
2017-01-30T01:02:24
2017-01-30T01:02:24
80,249,762
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
import mysql.connector import csv from Tkinter import Tk, Frame, BOTH class Example(Frame): def __init__(self, parent): Frame.__init__(self, parent, background="white") self.parent = parent self.initUI() def initUI(self): self.parent.title("Si...
[ "banghart@msu.edu" ]
banghart@msu.edu
5858ee9c33f1c567825190fe61a5f7264ab65ba8
e9853ad41b738c2704287740ade0936c86438366
/garden.py
0601a998016e508ab9aef969f09f9b0878e1821c
[]
no_license
pierre-geeraert/Leek-Wars
37d2ca5d995e4e94d79c32f4f69e81d1716e0c58
d54fbbd460a658216c7de98033bef80f9d519929
refs/heads/master
2021-01-13T01:21:10.893041
2019-08-09T08:23:49
2019-08-09T08:23:49
81,462,434
0
0
null
null
null
null
UTF-8
Python
false
false
2,775
py
from random import randint from pipenv.utils import requests import globalVar from function_essential import request_api import function_essential import json source_api_address=function_essential.source_api_address+"garden/" def getGardenForLeek(leek_id): try: data_out_GetGardenForLeek = request_api(so...
[ "pi@pi.fr" ]
pi@pi.fr
5a991fed1d4a0e7596274c8eb7335d9e09592e6a
8f5f0c3ef83fdd482387973149738f6178477a42
/medium/trees/next_right_pointer.py
e1eb4ce5802ddc9adc9779869feb56faa06352f2
[]
no_license
nicokuzak/leetcode
79a5771ad83786cc7dbfd790f8fffcf1ce58794e
39b0235dc429a97a7cba0689d44641a6af6d7a32
refs/heads/main
2023-04-06T21:02:09.553185
2021-04-14T22:21:20
2021-04-14T22:21:20
336,847,511
0
0
null
null
null
null
UTF-8
Python
false
false
1,414
py
"""You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following definition: struct Node { int val; Node *left; Node *right; Node *next; } Populate each next pointer to point to its next right node. If there is no next right nod...
[ "nicokuzak95@gmail.com" ]
nicokuzak95@gmail.com
bc326f5540687fa91d3de9c892b798f6da959d3e
2bd804f1e6bf3fe60fc62064a2896fd05b6d2428
/main.py
cf303f65a9ef98d3c5d8ea496531b0e243d6a356
[]
no_license
phamtony/rain-alert
1a891577ef0f57342ad74e338ff84df0d94916e0
d77bbec6c63b8369028464f5a0bf004110cd1c5f
refs/heads/master
2023-04-13T22:46:59.857008
2021-04-21T01:02:50
2021-04-21T01:02:50
352,727,538
0
0
null
null
null
null
UTF-8
Python
false
false
1,001
py
import requests import os from twilio.rest import Client url = "https://api.openweathermap.org/data/2.5/onecall" api = os.environ.get("OWM_API_KEY") account_sid = os.environ.get("account_sid") auth_token= os.environ.get("auth_token") lat = 30.332184 long = -81.655647 parameters = { "lat": lat, "lon": long, ...
[ "tony.p@lashowroom.com" ]
tony.p@lashowroom.com
a68b946bee03f149a3cf844c5ea961d9f4502911
6c0389947b6a6c69254955f3646bca8c2882ad41
/app/static/lib/clasificador.py
7e161b706e11519ca8248acece71cfd74f514cb1
[]
no_license
Redoxfox/mysite
e9380e23164e170609decf14549f0c8e67e3d36b
318684e538227286680edcd05935258d7e70de11
refs/heads/master
2022-06-28T12:44:41.560625
2022-06-06T04:26:44
2022-06-06T04:26:44
190,919,199
0
0
null
null
null
null
UTF-8
Python
false
false
17,520
py
def clasificar(liga, id_eq1, id_eq2): import decimal import pymysql.cursors #from Ligas.lib.Bbinaria import binaria #from Ligas.lib.Oquicksort import quicksort from Bbinaria import binaria from Oquicksort import quicksort # Connect to the database connection = pymysql.connect(host='local...
[ "cmtrfenix@gmail.com" ]
cmtrfenix@gmail.com
a950a7a778b32ddbcd98fa1c1ccb038943d402eb
499df219e4698a9f7c1f507fb197bcd9c1d70750
/wiki_data_extraction.py
8d919722ae1a62071fffab44ca02ae4054c17f6c
[]
no_license
relwell/nlp-rest-client
020c2e75f8ca0c475d0edf9611f1a9a77bfa244e
3f8e8e6dd9db31d8c1f97737fcdffe4cc494e6ec
refs/heads/master
2020-04-12T21:02:58.160323
2013-10-03T18:26:33
2013-10-03T18:26:33
12,444,248
0
0
null
2013-09-23T16:41:59
2013-08-28T20:49:19
Python
UTF-8
Python
false
false
1,170
py
import requests import json import traceback import sys from boto import connect_s3 from boto.s3.prefix import Prefix from multiprocessing import Pool from nlp_client.services import TopEntitiesService, EntityDocumentCountsService, TopHeadsService from nlp_client.caching import useCaching useCaching(writeOnly=True) d...
[ "robert@wikia-inc.com" ]
robert@wikia-inc.com
e5f5323c7212d7287df0abcdd4111a39a6b78ce2
65747551b8fab58fce7c10355b1117f992d5ba38
/project/submissions/avneesh/dwa_notebook.py
3a1fc90d2c8dcffeeba30e292dc228234c12f2dd
[ "MIT" ]
permissive
naveenmoto/lablet102
4f88c95a93de22880afda3381466506a585a7b1a
24de9daa4ae75cbde93567a3239ede43c735cf03
refs/heads/main
2023-06-29T05:24:18.215235
2021-08-02T03:33:54
2021-08-02T03:33:54
380,767,879
1
0
null
null
null
null
UTF-8
Python
false
false
3,070
py
""" Testing DWA Current Notes: Forget the map for a while """ # %% Import everything # Libraries from grid_loader import Grid from astar_path import AStar from simulator import Lidar from dwa import DWA # Modules import numpy as np from matplotlib import pyplot as plt # %% Global variables V_MAX = 1...
[ "naveen@atimotors.com" ]
naveen@atimotors.com
5b21a4c2067e74e7ff233876453a7bbb84d6ebc6
3bc4b502fdb5ffecdbecc9239a0c25746dc31022
/Ch06/p157.py
9df9fb2464141935daf597c1cf1f74a731857083
[]
no_license
pkc-3/python
68da873bbe7ad9a3e0db4e22ddaa412a9377720f
d8410d897c3784c6017f7edc215ce8763e557518
refs/heads/master
2023-05-31T06:40:30.279748
2021-06-10T09:00:09
2021-06-10T09:00:09
361,634,592
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
#self 명령어 예 class multiply3: #멤버 변수 없음 #생성자 없음 #동적 멤버변수 생성/초기화 def data(self,x,y): self.x = x self.y = y #곱셈 연산 def mul(self): result = self.x * self.y self.display(result) #메서드 호출 #결과 출력 def display(self, result): print("곱셈 = %d" % (result)) ...
[ "pkc_3@naver.com" ]
pkc_3@naver.com
daf42c575a75cfd7aa10ea738eb758756f91f28a
2b9c398f8d39e41da3f8e3356b2ad3d2ea5cb995
/firestorage.py
eae4c03ba72ea1d06f21504ea49a0ce9943fa71b
[]
no_license
drDrozio/Firebase
770152ff158535a6641a1065699463f49983092f
618e98df1ebf5a774a2feccc4cbdd93402d47514
refs/heads/master
2022-12-01T10:39:48.558406
2020-08-12T15:24:48
2020-08-12T15:24:48
287,045,205
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
import pyrebase config={ "apiKey": "AIzaSyCJ_p-TCd7a16e5MiCSg0vcDPWGRjTAMbk", "authDomain": "fire-8a42b.firebaseapp.com", "databaseURL": "https://fire-8a42b.firebaseio.com", "projectId": "fire-8a42b", "storageBucket": "fire-8a42b.appspot.com", "messagingSenderId": "218150852345", "appId": "1:2...
[ "ishanss2018@gmail.com" ]
ishanss2018@gmail.com
1ad1cdf4c211d1ad2cfc0e6db523776b6a91d5d7
711756b796d68035dc6a39060515200d1d37a274
/output_cog_tags/initial_859.py
a64a24fccf2efc8b865aa813310e625203f34f62
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
4,330
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
[ "batxes@gmail.com" ]
batxes@gmail.com
d7f63dcc0bc4be0be92e1b193db9abad6b55f611
c9500ad778b8521aaa85cb7fe3239989efaa4799
/plugins/microsoft_intune/icon_microsoft_intune/actions/get_managed_apps/schema.py
950f7ebf08d7248b32cb5c69cb6007c0c35c5b04
[ "MIT" ]
permissive
rapid7/insightconnect-plugins
5a6465e720f114d71b1a82fe14e42e94db104a0b
718d15ca36c57231bb89df0aebc53d0210db400c
refs/heads/master
2023-09-01T09:21:27.143980
2023-08-31T10:25:36
2023-08-31T10:25:36
190,435,635
61
60
MIT
2023-09-14T08:47:37
2019-06-05T17:05:12
Python
UTF-8
Python
false
false
4,712
py
# GENERATED BY KOMAND SDK - DO NOT EDIT import insightconnect_plugin_runtime import json class Component: DESCRIPTION = "Returns InTune manageable apps" class Input: APP = "app" class Output: MANAGED_APPS = "managed_apps" class GetManagedAppsInput(insightconnect_plugin_runtime.Input): sc...
[ "noreply@github.com" ]
rapid7.noreply@github.com
00b5dccb42c8858ab9d32c59a2d6849cdaa5680c
7d68be5c777a34d7d0a8e6182f1954629fbbfe88
/Search_Stock_loop.py
34a694239c8e000f45047e7e2daf3c78267ad899
[]
no_license
guifacury/Check_Stock
979b14e33d627250c3493da0212650c45a573c45
d2345a4f8d9120f9d0e28418fcf870d1e69a47a7
refs/heads/master
2022-12-12T12:37:33.261098
2020-09-18T14:39:25
2020-09-18T14:39:25
296,637,679
0
0
null
null
null
null
UTF-8
Python
false
false
3,758
py
# -------------------------------- # -------------------------------- # MEU DISCORD É [ facury#0262 ] # -------------------------------- # -------------------------------- import selenium # CASO VOCÊ NUNCA TENHA INSTALADO O SELENIUM, ESCREVA NO CMD DO WINDOWS ---> pip install selenium from time import...
[ "noreply@github.com" ]
guifacury.noreply@github.com
682ff3d690856f794b02b0de622319a91a49cbda
db373aaec7f164138bafb97eb6798ac23ed6db3a
/src/env/lib/python3.6/sre_constants.py
3e09693e04ab823b242d8416c00275a4c2123435
[]
no_license
justinkwan20/fora
a0b2f4d2a383cba1797980cf1e1cf6846bbc895b
427b24ebef978bb103de6df50c71fe01c8723cc7
refs/heads/master
2020-03-13T10:11:35.321752
2018-04-22T15:59:35
2018-04-22T15:59:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
53
py
/home/iceman/anaconda3/lib/python3.6/sre_constants.py
[ "wpine215@gmail.com" ]
wpine215@gmail.com
d09cbbe00b827f394ca2273cd1219aa9bad0fd43
9c7091f82a5108261cbc3e5209f0e6df42f55530
/node/src/fuzzers/peach_fuzzbang.py
3a1d9883ba450b54c00eee87fd997b6a106f6edc
[ "MIT" ]
permissive
hatRiot/PeachOrchard
881b24bdf8ceb5c1e23c989fdb612f8b70dfd192
cd11ab0ccbcce2349408d5c2e4b651eb99a4e9c1
refs/heads/master
2021-06-18T03:27:03.835834
2019-09-23T19:24:02
2019-09-23T19:24:02
23,305,215
46
26
MIT
2021-06-10T19:48:39
2014-08-25T07:12:20
Python
UTF-8
Python
false
false
3,101
py
from src.core.log import * from src.core import config from src.core import utility from src.core.fuzzer import Fuzzer from re import findall import os class peach_fuzzbang(Fuzzer): """ Class implements the interface for the Peach fuzzer. This has been tested with FuzzBang as well as regular ol' Peach. "...
[ "shodivine@gmail.com" ]
shodivine@gmail.com
9dd49b3cf82fa3b52f4bc3b9c1514bcf1c23dca0
63ba933a294865f65409635f62e0f1d59f725f37
/src/trees/isBalanced.py
7ecb0495d36c1aecf3938a94d2007c4730bf1f19
[ "CC0-1.0" ]
permissive
way2arun/datastructures_algorithms
fc4302bdbb923ef8912a4acf75a286f2b695de2a
4ea4c1579c28308455be4dfa02bd45ebd88b2d0a
refs/heads/master
2021-12-07T04:34:35.732026
2021-09-30T12:11:32
2021-09-30T12:11:32
203,658,808
1
0
null
2020-08-08T15:55:09
2019-08-21T20:23:46
Python
UTF-8
Python
false
false
1,995
py
""" Balanced Binary Tree Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the left and right subtrees of every node differ in height by no more than 1. Example 1: Input: root = [3,9,20,null,null,15,7] Output: true Exam...
[ "way2aru@yahoo.com" ]
way2aru@yahoo.com
468476f6db7243c6bbaa9620e0a6d5e4ea3e22ff
110c5310346e0db4ea399c6a553d75fe3fbf5bcd
/test/sagemaker_tests/tensorflow/tensorflow1_training/resources/gpu_device_placement.py
11bbcdff72b00abf1b5610d0b709da216dae7a9a
[ "Apache-2.0" ]
permissive
Huahan98/deep-learning-containers
dc5f3391f4099326c8402832f87cc3c4bda86cc8
1510b917ebfb24a3bfb744e4590d46ba78657392
refs/heads/master
2023-09-03T13:29:32.142167
2021-11-10T17:42:43
2021-11-10T17:42:43
285,139,382
1
0
Apache-2.0
2020-08-05T00:57:54
2020-08-05T00:57:53
null
UTF-8
Python
false
false
1,031
py
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "l...
[ "saravsak@amazon.com" ]
saravsak@amazon.com
bda313940f2dc1b4bee68c1e809d1c719d15b34b
b74cc40a3a3bfa57437e2038db4e35942e0a2b48
/ProjectEuler/Python/p21.py
c5780d3870f64497a4923886f26515e873016516
[]
no_license
projectPythonator/portfolio
4a79492c1e8237b7aa0fc427ac3085941b9115c8
5d96c7f7c07e06e1653c25e818e0e299aaf6efb0
refs/heads/master
2022-03-07T06:32:15.416337
2022-02-22T22:15:36
2022-02-22T22:15:36
149,538,944
0
0
null
null
null
null
UTF-8
Python
false
false
1,306
py
#author agis daniels #Evaluate the sum of all the amicable numbers under 10000. from math import sqrt def sum1(n): return 1 + sum([i for i in range(2, n-1) if 0 == n%i]) def sum2(n): if 0 == n: return 0 ans = step = 1 f = 2 lim = int(sqrt(n)) if lim*lim == n: ans += lim lim -= 1 if 0 != n%2...
[ "noreply@github.com" ]
projectPythonator.noreply@github.com
64728e5c76187cf4177e6d19c48c73b797430c05
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/perso_arabic_norm/describe_splits.py
70788b7f48dbdc399d1fcc680fe3b99a08017009
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
2,067
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
fc3b24f8e844f358d301887f327d6eefee482f83
438bd0cbd5a7e2a42c27564f0a45d78471d355ef
/Testing.py
ec1ed9769da0ceb97c0bdb19366b8844c0cd0d24
[ "MIT" ]
permissive
Choco31415/DFTileConverter
bbfb92bc591ab1d726591c3e57784a0557fa6c8b
a228a558ac3c8dd1b60e48d549ad63fa47e39ac9
refs/heads/master
2020-03-25T07:54:47.120068
2018-08-06T17:59:53
2018-08-06T17:59:53
143,587,858
4
0
MIT
2018-08-06T03:54:48
2018-08-05T06:05:30
Python
UTF-8
Python
false
false
3,585
py
""" Need testing. """ # Handle imports import unittest from LoadTilesets import image_to_array, get_tileset_by_id, get_id_of_tileset, get_tileset from Convert import detect_tileset, check_tileset_all_offsets, get_tile_ids import numpy as np import json import os # Define constants test_screenshots = [os.path.join("re...
[ "parke.26@osu.edu" ]
parke.26@osu.edu
1658bbbafd6efc967d6e327b77a54890a2404475
322ee1bc4b175f1655176785867cd752dc764bdc
/custom_button.py
70ea35e27e623a4f3d36e700bd1fefd1e9e4685c
[]
no_license
zawhtetlinn/Calculator_test
2e32bb65be7889615eecca9d462e28b55efe5120
b92bba5fcadae9f0ca226c8af2c32601ec95a163
refs/heads/main
2023-07-11T10:39:54.533208
2021-08-14T13:19:48
2021-08-14T13:19:48
396,013,781
0
0
null
null
null
null
UTF-8
Python
false
false
12,754
py
import tkinter import sys class TkinterCustomButton(tkinter.Frame): """ tkinter custom button with border, rounded corners and hover effect Arguments: master= where to place button bg_color= background color, None is standard, fg_color= foreground color, blue is st...
[ "zawhtetz691@gmail.com" ]
zawhtetz691@gmail.com
cdb8d762485a925f85def4f00a98dd3df6ff07fb
92b3b091ee21d7310cf0e6569ac9b1fe057efe22
/see_tunning.py
333314be28bf943e882c3fb882d3c482f7d6183b
[]
no_license
chenhao1umbc/WSCDL
3c33476328f708c16fb3596dc4adda3703cd0121
7f3847b2ca932289126bab5af8454eef7239f048
refs/heads/master
2021-06-13T13:57:48.912084
2021-04-07T21:14:08
2021-04-07T21:14:08
186,867,233
0
0
null
null
null
null
UTF-8
Python
false
false
4,087
py
"""This is the main file to run Weakly supervised supervised dictionary learning The default data type is torch.tensor with precision float32 """ #%% from utils2 import * os.environ["CUDA_VISIBLE_DEVICES"] = "0" opts = OPT(C=10, K0=1, K=2) opts.init, opts.shuffle, opts.show_details = 'rand', False, True opts.Dh, opts.D...
[ "chenhao1@umbc.edu" ]
chenhao1@umbc.edu
4e8a6e2e759799da23d684e7ed113a3372cb6320
a41d781cad9af29a07da3cd4713bde2160da8f0f
/imgs2LMDB.py
494c01826a983c0cf19659b0d9960d71392af20d
[ "MIT" ]
permissive
johnnylili/AdvancedEAST-PyTorch
cee11bea353071806c21d62315747981893b9c35
a835c8cedce4ada1bc9580754245183d9f4aaa17
refs/heads/master
2022-12-04T08:51:57.823992
2020-08-22T18:38:29
2020-08-22T18:38:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,173
py
""" a modified version of CRNN torch repository https://github.com/bgshih/crnn/blob/master/tool/create_dataset.py """ # import fire import os import lmdb import cv2 # import imageio import cfg from PIL import Image, ImageDraw from tqdm import tqdm import numpy as np from preprocess import preprocess fr...
[ "noreply@github.com" ]
johnnylili.noreply@github.com
a0ead35d36d493c9845a43942f9861d6ba38d077
5ed2eb094c75da388af64247f77203d1fd825476
/visualizacionProba.py
37f847c81b0b7e106c50414096db4a9511447019
[]
no_license
aitorgolla10/textmining
acee8a4c3359270c40f8354d61f276acf642875b
9a31a53e8751697864a1ead38218b873e6f4108e
refs/heads/master
2022-11-05T08:16:09.630957
2019-11-17T22:38:14
2019-11-17T22:38:14
215,301,062
1
2
null
2022-10-10T06:44:55
2019-10-15T13:06:06
Python
UTF-8
Python
false
false
96
py
from visualizacion import Visualizacion as visualizar visualizar.visualizarClusters(visualizar)
[ "agomez257@ikasle.ehu.eus" ]
agomez257@ikasle.ehu.eus
3f3687f5bc5b251a3f3dfd1ab222f022f96e1572
f4f4ed24cda0a6febac02c93e023084056235830
/week13/onlineshop/onlineshop/settings.py
7df3ac64996c4d3f5fc64b5e01a0a29743b1c95d
[]
no_license
madinamantay/BFDjango
36163f2f5bf53e6a2ed7a244402c14d9bc5746eb
a364a5a16ecad65f09de4af20bdee0791d4a212f
refs/heads/master
2022-06-14T09:30:06.630511
2020-04-27T03:26:51
2020-04-27T03:26:51
237,785,225
0
0
null
2022-05-25T03:19:28
2020-02-02T14:41:51
Python
UTF-8
Python
false
false
5,628
py
""" Django settings for onlineshop project. Generated by 'django-admin startproject' using Django 2.2.10. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """...
[ "madinamantay@gmail.com" ]
madinamantay@gmail.com
24543972bc718a9ecee4d5687413361c96bdff0e
de5d5e533a8340011a93b7aad3a4584b1398d509
/webmus/cms/helpers.py
92c8b441a5ce5581185573216971e0d760d71df9
[]
no_license
jonrscott/webmus
1fd856eb67e9335116b415237ae32f7e34cbea0c
cdd3850deee7382af396f67bfbaa8e2fe20569cb
refs/heads/master
2021-06-06T13:58:52.323965
2021-04-13T13:25:03
2021-04-13T13:25:03
11,060,987
0
0
null
null
null
null
UTF-8
Python
false
false
5,065
py
from bs4 import BeautifulSoup from bs4.element import NavigableString from django.urls import reverse def _wrap_things(soup, start, end, number): assert(start.parent == end.parent) wrapper = soup.new_tag( 'div', **{'class': ['section'], 'id': 'section%d' % number}) content = soup.new_tag( ...
[ "jon@jonscott.co.uk" ]
jon@jonscott.co.uk
ad55a036719eab54161bb16e9344fa465842a9b0
003ffcf8144565404636f3d74590a8d6b10a90a4
/620-not-boring-movies/620-not-boring-movies.py
649086294562ebc1cd5148e624db643e5a39e3ab
[]
no_license
congve1/leetcode
fb31edf93049e21210d73f7b3e7b9b82057e1d7a
ce1e802b5052da2cdb919d6d7e39eed860e0b61b
refs/heads/master
2020-05-13T19:19:58.835432
2019-05-06T00:44:07
2019-05-06T00:44:07
181,652,371
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
# Write your MySQL query statement below select id,movie,description,rating from cinema where description != 'boring' and id%2 = 1 order by rating DESC
[ "congve1@live.com" ]
congve1@live.com
844f97b190cde2823b75910dc0064c3c08c8298b
cf6e1c6c27d269793e57119e1f86fec8533042f0
/Day4/hemant_q1.py
49895b2672d9529ea7247a990f4b22f0cd29f539
[]
no_license
rashidkhalid1212/Blend_with_python
621fea1668ded0d006649d97c5578bdbe902d79c
0a829dbdf12fc8d3801fc3327bd23a275c9b32b6
refs/heads/main
2023-07-02T06:14:01.045457
2020-11-04T06:36:34
2020-11-04T06:36:34
308,340,768
0
0
null
2020-10-29T13:42:13
2020-10-29T13:42:12
null
UTF-8
Python
false
false
359
py
a=float(input("Enter 1st Number: ")) b=float(input("Enter 2nd number: ")) c=input("What type calculations you want to do?\n1. Type 'm' for Multiply\n2. Type 'd' for division\n3. Type 'a' for addition\n4. Type 's' for substraction. ") if(c=='m'): print(a*b) elif(c=='d'): print(a/b) elif(c=='a'): print(a+b) elif(c...
[ "ksingh1617@gmail.com" ]
ksingh1617@gmail.com
6c4072c302692caf0fc1eefcb3cc828a7315e998
e56214188faae8ebfb36a463e34fc8324935b3c2
/intersight/models/hyperflex_server_model_all_of.py
00b213f2b14b684bad926afd34710dd805f3dc75
[ "Apache-2.0" ]
permissive
CiscoUcs/intersight-python
866d6c63e0cb8c33440771efd93541d679bb1ecc
a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4
refs/heads/master
2021-11-07T12:54:41.888973
2021-10-25T16:15:50
2021-10-25T16:15:50
115,440,875
25
18
Apache-2.0
2020-03-02T16:19:49
2017-12-26T17:14:03
Python
UTF-8
Python
false
false
5,600
py
# coding: utf-8 """ Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen...
[ "ucs-build@github.com" ]
ucs-build@github.com
9c833ca200046fae0f5390f5be87fd27f4d4812c
1d22fade6916bdff3a5843a94cfcd0bf988947cd
/String/Longest Common Prefix.py
5d94158496887607df2d5744afa541c5ad24127a
[]
no_license
Anishukla/InterviewBit
aafc75b1f0d8277b89eeeed21272a298dfdd0898
5a8d8a8f7b70ef64032ce237e8ff4db106d9738f
refs/heads/master
2022-11-12T03:13:15.258421
2020-07-02T06:42:30
2020-07-02T06:42:30
263,426,661
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
class Solution: # @param A : list of strings # @return a strings def longestCommonPrefix(self, A): if len(A) == 0: return '' first_letter = A[0] longest_prefix = '' for letter in range(1, len(first_letter)+1): prefix = first_letter[0:letter] ...
[ "shuklaneesh@gmail.com" ]
shuklaneesh@gmail.com
b4ed9c7379c08e759c855bff60427fc27ad90ca0
e1ec811a380d624b3c3c95c88f6369248862ca52
/matplotlib/Zadanie9.py
2aab46e9021017e92557088607c0a3aaab3c79e8
[]
no_license
michalj11121/Wd-155280
ac53e138de089d9a53fc287582052ccd9ed224a2
7eee6bf2334c39ddf0eb93a555df40f1c241ea1a
refs/heads/master
2022-08-21T16:27:27.506633
2020-05-31T17:43:01
2020-05-31T17:43:01
245,125,036
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt df= pd.read_csv("zamowienia.csv",header=0,delimiter=";") group=df.groupby(['Sprzedawca']).agg({"idZamowienia":['count']}) sprzedawca=group.index.values zamowienia=[group.values[y][0] for y in range(len(group.values))] Explode=[0 for i in ...
[ "noreply@github.com" ]
michalj11121.noreply@github.com
ee7369e682c31cf9d17610f4c1b6a6cddd40b41f
98ebd5d42c9badf37b377e83740317ab21d1b99a
/jogoForca.py
94b9832da6c4597f3c1bbe5a2d19a77a61f82452
[]
no_license
paola-rodrigues/JogoAdivinhacao
d21e4738a40219336c6af4c8461851e6d3291fb8
b2a83f7d78f974cbe823ac2e5a0e42b64c0c0413
refs/heads/main
2023-08-17T04:14:43.556448
2021-10-01T12:47:56
2021-10-01T12:47:56
409,313,190
0
0
null
null
null
null
UTF-8
Python
false
false
4,119
py
import random def imprime_mensagem_abertura(): print("**********************************") print("****Bem-Vindo no jogo de Forca****!") print("**********************************") def carrega_palavra_secreta(): arquivo = open("palavras.txt", "r") palavras = [] for linha in arquivo: li...
[ "paola.n.rodrigues@gmail.com" ]
paola.n.rodrigues@gmail.com
28433f824005544abf60673f5477c97075e02b7a
e2e1e2c27f9a9c13e7492fca93080ea093af7ae5
/COMP309/a4/Submission/part3/LinearRegression/src/simple_linear_regression.py
1f21dfbd940de5bc03e7fb0645ba5a97bd368ff4
[]
no_license
David-B-91/uni
30ebd03ab065ef96b5cc5033bcac1cbb7a46cab9
341c1d5b85f30bdfdfd977627f16aa862a48e923
refs/heads/master
2022-03-21T17:01:18.540959
2019-11-21T06:33:05
2019-11-21T06:33:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,706
py
# -*- coding: utf-8 -*- """ This is an example to perform simple linear regression algorithm on the dataset (weight and height), where x = weight and y = height. """ import pandas as pd import numpy as np import matplotlib.pyplot as plt import datetime import random from sklearn.linear_model import LinearRegression ...
[ "43230632+ImaDaveDave@users.noreply.github.com" ]
43230632+ImaDaveDave@users.noreply.github.com
5a7260bc899debcc1c45d30948eebd5d78510a4b
da91c0cc53de46f170cc219553cfa785f3bb8868
/search/management/commands/init_db.py
9ffe38cc0ac6e0bcb3ef3f45010a27fc401adcfb
[]
no_license
naomie-co/OC_P11
acded3f746d4db2a8b2d0fa647a55b9c0656cac8
0bf2a64a1bfcf9eac19a5a96618124fa897b4ec4
refs/heads/main
2022-12-28T21:49:26.879014
2020-10-14T15:32:44
2020-10-14T15:32:44
301,518,171
0
0
null
null
null
null
UTF-8
Python
false
false
2,864
py
"""Script to initialize the platform database from the OpenFoodFacts API""" import requests from django.core.management.base import BaseCommand from search.models import categorie, op_food, substitute from search.const import CATEGORIES class Command(BaseCommand): """This class aims to interact with the Openfoo...
[ "naomie.colombo@gmail.com" ]
naomie.colombo@gmail.com
656400a9a3c0238586b3bc67900a8c9c266c3cfb
5891051796778cfb44a255248ce38789bfef9e70
/DjangoLearn/bgfaith/urls.py
2fae220197d9f146c5fbb61d9e5154182b10d282
[]
no_license
Faithlmy/Python_base
cc546a5d86b123e102a69df1227cde9b6e567493
5a43557e6375dc9dbe5f6701d7c10e549873a5ab
refs/heads/master
2021-01-01T17:07:04.097978
2018-03-31T16:44:01
2018-03-31T16:44:01
98,000,621
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
"""bgfaith URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
[ "lmengyy@126.com" ]
lmengyy@126.com
1f041b1eff52d1d5f5e2b5a9f2ff0bb67bfcb298
db58eeac603cf4f5ef5a50b7a07ff466a8627ad5
/our_story/app_chat/views.py
4b3fbe7bea7f16305660bd73f2775963a87d9600
[]
no_license
moning02004/mybook
4ba0f26870a4e4289452f98bbfef9d85b15610ec
fc8d35862e90af2fe8f34a76d56cda8ad7b2b485
refs/heads/master
2020-06-25T18:39:02.856696
2020-01-25T23:55:41
2020-01-25T23:55:41
187,236,130
0
0
null
null
null
null
UTF-8
Python
false
false
1,929
py
from operator import itemgetter from django.contrib.auth.models import User from django.db.models import Q, Sum from django.http import HttpRequest, JsonResponse, Http404 from django.shortcuts import render, redirect from .models import MessageBox def index(request): assert isinstance(request, HttpRequest) ...
[ "moning02004@naver.com" ]
moning02004@naver.com
31929afdce7a96d43eb4dceed437583f24eb902f
d5adb3d18fe551f9b021457057cf86bdef71343d
/giant/defy_advanced/year_2018.py
d29d5828bbb771af06e1e3b33e43ea251d3496f3
[]
no_license
smopucilowski/bikegeo
52996a085de032c0c0c9bccc26687c4ea8c4e259
ca46743aec622ae443a6a9f674c9801c363bb783
refs/heads/master
2021-06-15T19:46:40.826331
2019-06-25T16:56:07
2019-09-05T06:27:23
107,863,308
9
2
null
2019-09-05T06:27:25
2017-10-22T12:20:43
Python
UTF-8
Python
false
false
1,273
py
sizes = ( 'xs', 's', 'm', 'ml', 'l', 'xl') geometry = { 'seat tube length': (410, 445, 480, 515, 535, 565), 'seat tube angle': (74.5, 74, 73.5, 73, 73, 72.5), 'top tube length': (510, 530, 545, 560, 575, 595), 'head ...
[ "smopucilowski@gmail.com" ]
smopucilowski@gmail.com
a66628917e9d57bacaf3bbfd12e66540e5012968
5eb685241d6ad86848b56fcefb525a24acdd77d6
/controllers/__init__.py
71c1f604183bb0ebfc5b05480a246d5baa56714c
[]
no_license
kForth/SubsystemAccelerationSimulator
d95fe96f159eb752751cbd956f905afe154358f9
fb35b44f9e1262dad412519907204ec1bbfda838
refs/heads/master
2021-05-06T19:58:00.584809
2018-02-16T00:01:25
2018-02-16T00:01:25
112,236,409
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
from controllers.bang_bang import BangBangController from controllers.pidf import PidfController
[ "kgoforth1503@gmail.com" ]
kgoforth1503@gmail.com
11d67fff98cefb075e7dbd155b00d6bef217ab3f
dd1ee9195c4d7b3a09fe31c7d26a31e26a4e2725
/laplacianFilter.py
2e0da5d737c0351dcd2caf9bbdaf2ee0f135995f
[ "MIT" ]
permissive
krishna1401/Digital-Image-Processing
0245175411c90055c2e5ce1b3cc221227c606cba
47a4da4bef9d08708ac84174b0fcd0ced6a8b5e2
refs/heads/master
2020-07-10T06:20:16.361033
2019-11-06T18:32:37
2019-11-06T18:32:37
204,191,421
3
0
null
null
null
null
UTF-8
Python
false
false
2,112
py
#Perform Laplacian Filtering on a Image import cv2 def laplacianFilteredImage(image, mask): #Objective: Create Filtered Image by Laplacian Filter #Input: Original Image & Laplacian Filter Mask #Output: Resultant Image image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) #Converting Image to Gray Scale...
[ "krishna.dduc@gmail.com" ]
krishna.dduc@gmail.com
5a783ed4e3f6c0a37f168ca46e333d7a5b023fac
180201955dc2a1902f17e4e38715f2e8e78fd703
/venv/Scripts/pip-script.py
bd6c4e62d876474585c9e4df096fbec258773e9c
[]
no_license
psruti/flask_song_catalogue
23ccad69059a99251270004469e35ab851d44e7e
dcce6ea28870d4df059717296b2829f2920837cc
refs/heads/master
2021-06-27T12:40:44.030859
2019-10-30T16:27:59
2019-10-30T16:27:59
218,568,615
0
0
null
2021-03-20T02:05:05
2019-10-30T16:09:01
Python
UTF-8
Python
false
false
416
py
#!C:\Users\sruti\PycharmProjects\book_catalog\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __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)?$', '', sys.a...
[ "peri.sruti@gmail.com" ]
peri.sruti@gmail.com
e5b83f893b2e670a76c3e80afe4f2b7a7c9ecff8
3637fe729395dac153f7abc3024dcc69e17f4e81
/reference/ucmdb/discovery/nnmi_api.py
5f1ad3f66d69e9c7f50fca6f28d7628e45ce3907
[]
no_license
madmonkyang/cda-record
daced6846c2456f20dddce7f9720602d1583a02a
c431e809e8d0f82e1bca7e3429dd0245560b5680
refs/heads/master
2023-06-15T08:16:46.230569
2021-07-15T16:27:36
2021-07-15T16:27:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
59,922
py
#!/usr/bin/env python # coding: utf8 import re import logger import types import time import os import ip_addr import itertools import nnmi_filters import java.net from java.lang import System, String from com.hp.ucmdb.discovery.library.clients.recorder import ExecutionRecorderManager import com.hp.ov.nms.sdk fro...
[ "silentbalanceyh@126.com" ]
silentbalanceyh@126.com
2ea442f87bc48f849933829bc5a2f5a2e0326669
9782f131643a9301eec546ad7281592614417b05
/vfeedbacknet/vfeedbacknet_simple_eccv_model1.py
711625ecf75b45a5abcf3eab2438ed80f546003f
[]
no_license
StanfordVisionSystems/vfeedbacknet
9d5bddb74a37c1fe8f01dddf2a48ca66151bbbf9
55865f595ac60891c594b225baf39c0ac5609800
refs/heads/master
2021-01-20T06:29:35.038083
2018-03-12T17:42:13
2018-03-12T17:42:13
89,887,050
3
0
null
null
null
null
UTF-8
Python
false
false
40,169
py
import numpy as np import tensorflow as tf import logging from vfeedbacknet.vfeedbacknet_convLSTM import ConvLSTMCell from vfeedbacknet.vfeedbacknet_utilities import ModelLogger from vfeedbacknet.vfeedbacknet_base import VFeedbackNetBase #from vfeedbacknet.vfeedbacknet_fb_base1 import Model as VFeedbackNetFBBase cla...
[ "emmons.john@gmail.com" ]
emmons.john@gmail.com
3b0c1f82cde68be68ba4467960932a855a2a113c
cd4791edf703ee7cec983c2039570b2627529144
/fall/15_login/app.py
7c4c9c942ee562f1881cab8116b7f6217b8f8e1d
[]
no_license
bmoses00/SoftDev
939c92b4ca0b9638e9dce7b7729fe880695e54c2
b457e7e1a2ca2ff1a6198fad6246ec8f7188abe6
refs/heads/master
2020-07-23T12:55:02.251968
2020-04-20T22:04:05
2020-04-20T22:04:05
207,563,231
0
0
null
null
null
null
UTF-8
Python
false
false
2,320
py
# Brian Moses # SoftDev pd 2 # k#16: Oh yes, perhaps I do # 10/3/19 from flask import Flask, render_template, request, session, redirect, url_for, flash import os app = Flask(__name__) @app.route('/') def main(): print ('-------------------------------------------') # print(login) # print("---------------...
[ "bmoses00@stuy.edu" ]
bmoses00@stuy.edu
b4cc44a8dc286587afe58cb6e7afd5a3a49ca17c
ff156385bfe5af19409baede4584035b7ab8e3b2
/bookshelf/bookshelf_app/models.py
73149245134db338e66982bef20cbb4ff3e0e50e
[]
no_license
Synnysyn/bookshelf
0f998e65a7a2faad813a67e44602b26e0b1207fb
dba55a6cd6a4ea7a8f0939f883fdca29f875fba0
refs/heads/main
2023-04-17T21:24:25.578910
2021-05-10T12:14:41
2021-05-10T12:14:41
364,503,338
0
0
null
2021-05-10T12:14:42
2021-05-05T08:03:49
null
UTF-8
Python
false
false
454
py
from django.db import models class Book(models.Model): """ - title - CharField - author - CharField - description - TextField - added - DateTimeField (auto) """ title = models.CharField(max_length=64) author = models.CharField(max_length=64) description = models.TextField(max_leng...
[ "69205616+Synnysyn@users.noreply.github.com" ]
69205616+Synnysyn@users.noreply.github.com
0acc93ad642a017f32f09919b908407abe44852a
6629d7831ced862ca7c513cbc46ca334ce649918
/Finance/forms.py
8f707e6cc0883ef580e5070811fda0a97653956c
[]
no_license
HunterProgram22/KudelaCorp
33db17091698d4d934ce7f58f0dc430bf203699f
ca6481309f5e0a530057065b7c23a960cdb10593
refs/heads/master
2022-12-13T19:56:02.533181
2019-11-25T19:43:27
2019-11-25T19:43:27
133,077,035
0
0
null
2022-12-03T05:42:24
2018-05-11T18:50:09
HTML
UTF-8
Python
false
false
2,606
py
from django import forms from .models import MonthBal, MonthInc, TaxReturn class MonthBalForm(forms.ModelForm): class Meta: model = MonthBal fields = ('date', 'huntington_check', 'fifththird_check', 'huntington_save', 'fifththird_save', 'capone_save', 'amex_save', 'robinhood_inv...
[ "HunterProgram22@github.com" ]
HunterProgram22@github.com
854a9ef00d9b3d18ea058a44ef58c188666c6094
9e110e4ab763ad3f93fa531949fc9696885f8f2c
/interface_graphique.py
4276599d24630505ae7607b9dbc44cdb1a204e94
[]
no_license
psychoumayma/calcul_mental
72a714159a96997ba2f492e7b58eaf38a24b6412
f72b022614282fb8cfc315877e970847ec3d47ff
refs/heads/master
2021-01-25T04:26:47.877248
2017-06-05T21:21:48
2017-06-05T21:21:48
93,444,302
0
0
null
null
null
null
UTF-8
Python
false
false
3,440
py
from tkinter import* from random import randint from random import choice import jeu fenetre = Tk() FRAME=Frame(fenetre, width=100, height =50).place(x=700,y=400) LABEL=Label(FRAME, text='', font = 'Papyrus 20 bold', fg="blue") BRAVO=Label(FRAME, text='', font = 'Papyrus 20 bold', fg="green") DOMMAGE=Label(...
[ "oumaymadraoui@MacBook-Air-de-Oumayma.local" ]
oumaymadraoui@MacBook-Air-de-Oumayma.local
e7b44d764adac0f9bb1fcfc066db793aee0cbfb8
7fd67691f37471363ab2bc6c08e9d7697af3509e
/reverse_and_reverse.py
38e90f618d86b13ece86d1a9dd230dd0a1fa93c6
[]
no_license
dishiao/leetCode
c992a6a220ec73b907a709220a785645b1513407
fa31c8a5ac9940e9e4e03f63520d8f16dcd5f81f
refs/heads/master
2020-05-16T08:16:45.793223
2019-10-21T02:47:00
2019-10-21T02:47:00
182,903,641
1
0
null
null
null
null
UTF-8
Python
false
false
453
py
class Solution: def flipAndInvertImage(self, A: List[List[int]]) -> List[List[int]]: listA = [] for a in A: #水平翻转 a = a[::-1] #反转图片 listB = [] for b in a: if b == 1: b=0 elif b == 0: ...
[ "729268381@qq.com" ]
729268381@qq.com
39f447838bd22667f92f23482d571f4de05c5fa3
e414ec62afaa75d187d68831df6c91919c5bad56
/build/husky/husky_gazebo/catkin_generated/pkg.installspace.context.pc.py
832143068bb9ca382fe6603616802306cfed0de1
[]
no_license
mark2n/tianbao-robtech
1458a9aca3d20adb0f62e92de271d7aa968be7da
771cd5ad9194d30fa358e65d3609ede3b643d332
refs/heads/master
2021-01-19T22:07:45.969245
2017-05-26T09:09:38
2017-05-26T09:09:38
83,771,271
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "husky_gazebo" PROJECT_SPACE_DIR = "/h...
[ "tianbao.zhang@yahoo.com" ]
tianbao.zhang@yahoo.com
e7f98660ed5a6c6d386e1f664e87461a5ba04dc1
93e65e85fade65db1705bf0f8958c2d1acc01bb2
/dataset/lsun/data.py
3c80c655391d48bce9839bd85d549c4910cc6bb6
[]
no_license
SunJiamei/GANExercise
530b9db7175c6bc18367abf63fd0a42c73674883
cfc3ce66d204a03d7d60b5bd038a0fc3cd8f82b9
refs/heads/master
2023-04-09T05:02:52.238289
2021-04-21T03:26:58
2021-04-21T03:26:58
346,563,923
0
0
null
null
null
null
UTF-8
Python
false
false
3,610
py
from __future__ import print_function import argparse import cv2 import lmdb import numpy import os from os.path import exists, join __author__ = 'Fisher Yu' __email__ = 'fy@cs.princeton.edu' __license__ = 'MIT' def view(db_path): print('Viewing', db_path) print('Press ESC to exist or SPACE to advance.') ...
[ "sunjiamei.hit@gmail.com" ]
sunjiamei.hit@gmail.com
3c1d722e1c738d4f343a7ee14495e90cd1acee39
453507707e8beb5d06a1338ac126ca7ef7f9cf35
/dns_resolver/my_dns_script.py
1675e619bfba992f635488142a76d0cadaab92af
[]
no_license
singhshivam55/Projects
4406a51c0d7d1ce3c8fb84a637d8657460c1eaa1
252ff70a8abb58191307e8c2a7e9aa13562309b3
refs/heads/main
2023-01-07T22:44:17.297302
2020-11-10T09:42:35
2020-11-10T09:42:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,403
py
import json import dns.resolver class Dns_resolver: def __init__(self): pass def get_records(self, domain): record_types = [ 'A', 'AAAA', 'ALIAS', 'NS', 'CNAME', 'SOA', 'MX', 'TXT', '...
[ "tshubham97@users.noreply.github.com" ]
tshubham97@users.noreply.github.com
7f2c50d07ca30681b73fb9d909e7f0aa975630a4
96646f705ccda76fed95005fbd507953bf803de6
/code/python/age_groupnum_scenario_I/obfuscations.py
a555539748865d9d6aedbffdb6ea6f53d79c301b
[]
no_license
scottshufe/HyObscure
dc6868a760826575bf6097dcc1cfeaac037117c3
14e3c480b00cd7384bfbb499a260e5180fa29570
refs/heads/master
2022-07-13T02:56:01.891252
2021-02-07T02:45:31
2021-02-07T02:45:31
238,379,797
0
0
null
null
null
null
UTF-8
Python
false
false
22,492
py
import os import copy import pandas as pd import numpy as np import funcs import matlab.engine import scipy.io import scipy.spatial.distance as dist from sklearn.metrics.pairwise import cosine_similarity def HyObscure(df_train, df_test, df_test_rec_items, df_item_age_uid, age_group_dict, group_age_dict, ...
[ "scottshufe@gmail.com" ]
scottshufe@gmail.com
98dfd5030c36ce5c10996ad0e1e826a84a1fc575
26bebf63dd015accb86a063da4b5bde074c3e1d1
/app.py
2fd86af5b3f9b1d5a22a1fe93490e4c864df967d
[]
no_license
Sagini-Dominic/AT-Workshop
9ef25a98055f0dafe03ade0e978dd96e9cadd179
4220c2418dcc244c48c04879168d11544638dde2
refs/heads/master
2020-04-28T06:41:38.330504
2019-03-11T19:32:21
2019-03-11T19:32:21
175,068,742
0
0
null
null
null
null
UTF-8
Python
false
false
546
py
from flask import Flask, render_template app = Flask(__name__) @app.route('/base') def base(): return render_template("base.html") @app.route('/index') def index(): return render_template("index.html") @app.route('/sms') def sms(): return render_template("sms.html") @app.route('/voice') def voice(): return ren...
[ "saginidominic@gmail.com" ]
saginidominic@gmail.com
cd7d5da0b443ac1fb04d89ebc2f8978329d57ef8
c62a4272f9cba5ae25c6695a07f9a1f9e9e2a0fe
/tracking/options.py
2b2c43dd698aad2ba0bca8c504442d68bd6f6605
[]
no_license
Alexadlu/MANet
43b14b23a92136de8eeda4f43148f964146579c3
50dc0c47591974159841407b05ac65542fa834f6
refs/heads/master
2021-11-21T16:39:25.473057
2021-10-05T05:55:03
2021-10-05T05:55:03
197,388,454
104
20
null
null
null
null
UTF-8
Python
false
false
1,213
py
from collections import OrderedDict opts = OrderedDict() opts['use_gpu'] = True # if you change to False ,it will use CPU to run,but is very slow opts['model_path1'] = "../models/MANet-2IC.pth" opts['img_size'] = 107 opts['padding'] = 16 opts['batch_pos'] = 32 opts['batch_neg'] = 96 opts['batch_neg_cand'] = 1024 opt...
[ "noreply@github.com" ]
Alexadlu.noreply@github.com
4fbda2699b9145b694ef3f7a10590380ae779cad
f3b233e5053e28fa95c549017bd75a30456eb50c
/mcl1_input/L54/54-23_MD_NVT_rerun/set_4.py
5cd6d8796cee46fdf49e2b9f80b0d39eff8896aa
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
import os dir = '/mnt/scratch/songlin3/run/mcl1/L54/MD_NVT_rerun/ti_one-step/54_23/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_4.in' temp_pbs = filesdir + 'temp_4.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lam...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
a09c3b7a2ffba2536acef7ea26411b186b8daf9e
989190bd7ea5160695da7248dec739c4d459c76d
/remember/handle_args.py
36a4194ccea931d43f7616beb06c93d1891e276d
[ "MIT" ]
permissive
behroozkhorashadi/remember-commands
0092576d3111259d9033c420b667578ef36d89f5
74e226c98cdcd9560f984346f0f18cb9ca4ae156
refs/heads/master
2020-04-06T04:00:57.442209
2019-11-10T20:13:55
2019-11-10T20:13:55
83,071,865
6
2
MIT
2019-11-08T19:59:29
2017-02-24T18:40:48
Python
UTF-8
Python
false
false
2,581
py
import argparse def setup_args_for_update(): parser = argparse.ArgumentParser() add_search(parser) add_json(parser) add_sql(parser) parser.add_argument( "-u", "--updateinfo", help="Search the commands AND the extra command context info .", action="store_true") p...
[ "beh@khorashadi.com" ]
beh@khorashadi.com
83095e99b9defb7aa6b20ed455273c71322c712c
9249fd887b943353cf59f94c115e508e67e83918
/lib/util.py
d0d52e695bf1b05e846ec31fb3f326fe6467a5b5
[]
no_license
fmidev/sasse-polygon-process
f4af2e442e26af61640fa2333a60f352e78b8853
8ade2764a4bcd3bb01a34c316120dcd065c59ea2
refs/heads/master
2023-03-04T19:56:43.949324
2020-12-16T09:44:44
2020-12-16T09:44:44
215,499,326
0
0
null
2020-06-22T12:57:48
2019-10-16T08:41:10
Jupyter Notebook
UTF-8
Python
false
false
27,393
py
import numpy as np import os, math, pyproj, yaml, logging, joblib, dask from shapely.ops import transform from functools import partial import pandas as pd from sklearn.model_selection import RandomizedSearchCV, TimeSeriesSplit from sklearn.metrics import accuracy_score, f1_score, precision_score, recall_score, mean_sq...
[ "roope.tervo@fmi.fi" ]
roope.tervo@fmi.fi
62be565d1ad0e2bc743c1f5b5682cd2bdeef76c1
2e9ffd88923b1eb90047fe5c6a633a6d29c111a8
/muddery/typeclasses/players.py
76d46460f1c6c62028e28ae5e66dedef392932d5
[ "BSD-3-Clause" ]
permissive
externIE/muddery
4f7424abf2eac4280baef86ba5752e8d8ddee16d
ee4165e97e1510e06fa1e8120a35878a6c2862b7
refs/heads/master
2020-04-06T06:48:41.501309
2016-08-16T12:58:47
2016-08-16T12:58:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,369
py
""" This is adapt from evennia/evennia/players/players.py. The licence of Evennia can be found in evennia/LICENSE.txt. Player The Player represents the game "account" and each login has only one Player object. A Player is what chats on default channels but has no other in-game-world existance. Rather the Player puppe...
[ "luyijun999@gmail.com" ]
luyijun999@gmail.com
f934beae75c687ea2711ab282598059dfd7ac6e2
8554c0b9e8355ab9f59d1441a442c7d00a2d75a8
/bin/pyrouge_write_config_file
9a48b85a331db407a8716f2be85fffbab49a7dfe
[ "MIT" ]
permissive
j-min/pyrouge
225d3fc2561f010cd90eb3bec057456f4016494d
3693dfba1339114d8d579dcca36a06f797fa7697
refs/heads/master
2020-04-16T14:16:02.153527
2019-01-14T12:52:19
2019-01-14T12:52:19
165,660,792
1
0
MIT
2019-01-14T12:50:33
2019-01-14T12:50:33
null
UTF-8
Python
false
false
570
#!/usr/bin/env python from __future__ import print_function, unicode_literals, division import argparse from pyrouge import Rouge155 from pyrouge.utils.argparsers import model_sys_parser, config_parser def get_args(): parser = argparse.ArgumentParser(parents=[model_sys_parser, config_parser]) return parser.parse_...
[ "benjamin.heinzerling@web.de" ]
benjamin.heinzerling@web.de
9a328d6d6b1a72fcd0b7857e9fa683554aff05df
8a171056b5d8d2ac184d66afa2c4573bf54ec8a0
/Examples/Python/PrivateDict.py
f0be4c7e9a780bf748503242cb905588592de166
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
radpointhq/GDCM
7b03d5a27c0f1f733d336fa24317d58329a3cf03
63bd2fc37b6ed3630183a3c2d8ee561027a9e574
refs/heads/master
2022-05-21T19:05:01.961938
2022-03-15T17:36:51
2022-03-15T17:36:51
189,388,523
1
0
NOASSERTION
2022-03-15T17:36:54
2019-05-30T09:50:16
C++
UTF-8
Python
false
false
1,170
py
############################################################################ # # Program: GDCM (Grassroots DICOM). A DICOM library # # Copyright (c) 2006-2011 Mathieu Malaterre # All rights reserved. # See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. # # This software is distributed ...
[ "mathieu.malaterre@gmail.com" ]
mathieu.malaterre@gmail.com
5d22c427ce31827178896189f398088506fd1a21
601949a8b82ebf88933531fc11b182281c026db6
/Final Year Project - 031218/bin/Debug/knn_Algo_DataSet_2.py
d04448338d49b5403bb0cbd6446f43c44a1ec2d2
[]
no_license
ase3002/FYP-Face_Recognition_Based_Attendance_System
9968efc4d789332c85c3e3300c405b0a0b08af40
92b9c3e6a26a3f73845ead79db2f3a2df6203a81
refs/heads/master
2020-04-24T08:34:44.507823
2018-12-05T14:01:11
2018-12-05T14:01:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,644
py
import importlib import imp import math from sklearn import neighbors import os import sys import pickle from PIL import Image, ImageDraw import numpy as np import face_recognition from face_recognition.face_recognition_cli import image_files_in_folder import cv2 import knn_predict as fra knp = fra.knn_prediction() # ...
[ "MOKW0007@e.ntu.edu.sg" ]
MOKW0007@e.ntu.edu.sg
ebee29d527fc121a6fd629371d6c54f8e2bf964b
3d85f716aaeb42592adcdeabd7cb76152b8104ed
/pugh_torch/tests/modules/test_meta.py
f0d9b2b90df93e06909ff520d3ab4bd9e412b746
[ "MIT" ]
permissive
BrianPugh/pugh_torch
a78836b9c286814b8df5df57d67b8dbfc8d6412d
d620a518d78ec03556c5089bfc76e4cf7bd0cd70
refs/heads/master
2023-02-14T16:53:07.625650
2020-11-03T16:23:22
2020-11-03T16:23:22
294,986,957
4
1
MIT
2020-11-03T16:23:23
2020-09-12T16:54:00
Python
UTF-8
Python
false
false
664
py
import pytest import torch from torch import nn import torch.nn.functional as F import pugh_torch as pt def test_batch_linear(): data = torch.rand(10, 2) feat_in = 2 feat_out = 4 linear = pt.modules.meta.BatchLinear(feat_in, feat_out) weight = linear.weight.clone() bias = linear.bias.clone(...
[ "noreply@github.com" ]
BrianPugh.noreply@github.com
00e2fbc37e5d8aa5a588fc4185c7bc8bab4c4f22
a39ed5db6c75c9ae1f5e05118794c64102dc5f7a
/2020/01_1/solution.py
091874824ee82bf49cb18909afad5b2272562b7c
[ "MIT" ]
permissive
budavariam/advent_of_code
b656d5caf5d05113b82357754eb225e61e89ac0d
635be485ec691f9c0cdeb83f944de190f51c1ba3
refs/heads/master
2022-12-25T18:12:00.981365
2022-12-20T08:20:51
2022-12-20T08:20:51
114,570,426
1
1
MIT
2022-12-09T09:29:06
2017-12-17T21:36:00
Python
UTF-8
Python
false
false
656
py
""" Advent of code 2020 day 1/1 """ import math from os import path def solution(data): """ Solution to the problem """ lines = data.split("\n") precalculate = dict() for line_value_str in lines: precalculate[2020 - int(line_value_str)] = True for line_value_str in lines: current...
[ "budavariam@gmail.com" ]
budavariam@gmail.com
ca18e55478a75ece6dbb496ea73cb385ee095b34
d2503df4d2baab1b7d13dd624ad0a0e32e6198f2
/blob_detect.py
218c80c3b1a33fe290b5ac2c0a452afa97388a59
[]
no_license
tpkelliher/drone_project
b02adb284d6aeb0c00e33f51f458a6b5389b5c96
8638b4e298b884e31b57d2e1d555a996e561cc92
refs/heads/master
2020-12-30T16:40:16.388671
2017-05-05T17:06:16
2017-05-05T17:06:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
from skimage import io, color from skimage.filters.rank import median from skimage.feature import blob_dog, blob_log, blob_doh from skimage.morphology import disk from matplotlib import pyplot as plt #Reads in image and runs it through a gray layer to help filter img = io.imread('test.jpg') img_gray = color.rgb2gray(i...
[ "angelesadilene@gmail.com" ]
angelesadilene@gmail.com
a765cbe96955bdac735e102715ca63e35d4ceee6
5cc7f0bfadbddf29671419a6a64b6046d055ddee
/database/mysql_connector.py
3e498755590152fdfc82779586e02e71ab1041b6
[ "LicenseRef-scancode-warranty-disclaimer", "CC-BY-NC-4.0", "BSD-2-Clause", "MIT" ]
permissive
webbpinner/openrvdas
270e661b9e4adff76cdb42cc200dfd7e1aa373ae
10342586e7406d55b72031f9b54ce2feb10f2f1a
refs/heads/master
2023-08-20T18:24:23.535467
2023-05-25T15:05:03
2023-05-25T15:05:03
137,220,057
0
0
MIT
2018-06-13T13:33:48
2018-06-13T13:33:45
Python
UTF-8
Python
false
false
12,452
py
#!/usr/bin/env python3 """Tables: data: pk timestamp field_name field_value source_record We don't know what type each value will have, so have a column for int, float, str and bool and leave all but the appropriate value type NULL. Docs claim that NULL values take no space, so... Still so many ways we could make ...
[ "david.cohn@gmail.com" ]
david.cohn@gmail.com
e93a54321ac2e1dd04cf8be3bd8441186da7436b
a1e488fbe7fa0a8b149900b113d21ed3819b20a4
/emotion_svmloss.py
c3dd5fe480fd61f91185479539d29b9847dff436
[]
no_license
henniekim/emotion_recognition
8c59d8ffe7c3d0203c7f336c480b04f31f14b242
19666ac1fc8f8d78d693e02fb51475f0b5bd73d3
refs/heads/master
2020-03-08T07:27:53.756586
2018-05-15T04:57:34
2018-05-15T04:57:34
127,994,765
1
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
import numpy as np def L_i(X, Y, W): # W : weight vector [7 x 2304] // x : [2304 x n] // y : [7 x n] delta = 1.0 scores = W.dot(X) scores2 = scores[Y, np.arange(scores.shape[1])] margins = np.maximum(0, scores - scores[Y, np.arange(scores.shape[1])] + delta ) margins[Y, np.arange(Y.shape[0])] = 0 ...
[ "seru_s@me.com" ]
seru_s@me.com
7fda317f3d51b3ef4a2d8943169411f809d09276
e00d41c9f4045b6c6f36c0494f92cad2bec771e2
/server/auth/libpwquality/actions.py
57d01c98bb75acba7733f963e4afcf4c5c26b8b8
[]
no_license
pisilinux/main
c40093a5ec9275c771eb5fb47a323e308440efef
bfe45a2e84ea43608e77fb9ffad1bf9850048f02
refs/heads/master
2023-08-19T00:17:14.685830
2023-08-18T20:06:02
2023-08-18T20:06:02
37,426,721
94
295
null
2023-09-14T08:22:22
2015-06-14T19:38:36
Python
UTF-8
Python
false
false
780
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/copyleft/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import get from pisi.actionsapi import pisitools def setup(): autotools.configure("--prefix=/usr \ ...
[ "ertugrulerata@gmail.com" ]
ertugrulerata@gmail.com
618eea552428cab909fb49cb511903632933d2f5
9497e845b38c2f1db1951d4d0d6ec9bbd1521d37
/user/views.py
eaf7aeebe654bf99b2540d0a3f25241d3588f999
[]
no_license
li2356927598/fresh
d2e5477253946ea4a290d467e18204babe5fc04e
849cb449a9cc3259d28f8ab8dce4c02d07c7bfdb
refs/heads/master
2020-04-01T23:44:36.867111
2018-10-18T01:02:49
2018-10-18T01:02:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,082
py
from django.shortcuts import render, redirect from django.http import JsonResponse, HttpResponseRedirect from django.contrib.auth.hashers import make_password, check_password from django.core.paginator import Paginator from user.models import UserModel from user.forms import UserRegisterForm, UserLoginForm from...
[ "yangguanyu_2006@126.com" ]
yangguanyu_2006@126.com
e00b001540311fda894268668d373470d1a5a152
327e1a902370289e04be2e6f05c8e3b6fa96f960
/leopulence_landingpage/about/views.py
b32d70ffc0efbc957bf0450dc87a7b8b747807ed
[]
no_license
leopulence/web-leopulence
eab30ac9a66a6b404f2c0f3adf6f4d6ecf9b541d
4bf631c2ba7956aebe75de7241839d2e172b896a
refs/heads/master
2020-04-10T18:41:09.083364
2019-03-28T22:06:37
2019-03-28T22:06:37
161,209,570
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
from django.shortcuts import render from django.views.generic.detail import DetailView from django.views.generic.list import ListView from .models import Pages, About from django.utils import timezone # Create your views here. def about(request): return render(request, "about/about.html") class PagesDetailView(Det...
[ "pugliesesm@gmail.com" ]
pugliesesm@gmail.com
85e231fb8ba4cfd6c1162cb823ec5bb8281d3e38
0920b50773cfd231137d2383695a6730d0678628
/pylib/options.py
aa0c0975c42ce82b8eb23f47fdaaa066b16f3010
[]
no_license
chyser/bin
05b67cf299b0e427e253abc42ca015fcdec8e84c
b54f23c6c5f1f19e426ee06c9e9faf9f561ee9a9
refs/heads/master
2021-01-19T19:35:05.801722
2015-08-19T17:58:29
2015-08-19T17:58:29
17,319,228
1
0
null
null
null
null
UTF-8
Python
false
false
23,201
py
#!/usr/bin/env python """ Library: """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals from __future__ import absolute_import import sys import glob class MOptException(Exception): pass #------------------------------------------------------------------...
[ "chris.hyser@oracle.com" ]
chris.hyser@oracle.com
88eb299875c8809ce432865ddb2e6437ff0b6dde
1ca2f86fff8c1e99a0ea8bc7750ddb50aeccb74b
/Homework 2/Zylabs_7_25_HW.py
b8d88bf656cd5b73b5aff7dd6f2adf159d42a1ee
[]
no_license
LGonzales930/My-Project
d27b310ef975c200fea2e78a5a3244eb7aa87c2a
dd6b89e84941796c78f09907bb0b05bfa1a1064f
refs/heads/main
2023-04-24T01:51:29.555504
2021-05-13T04:39:11
2021-05-13T04:39:11
332,325,370
0
0
null
null
null
null
UTF-8
Python
false
false
763
py
# Lorenzo Gonzales # ID: 1934789 # Use Functions # Exact Change Function program input_val = int(input()) def exact_change(user_total): for numdollars in range(100, 200): for numquarters in range(25, 99): for numdimes in ranage(10, 24): for numnickles i...
[ "noreply@github.com" ]
LGonzales930.noreply@github.com
30607bd2e7f1b69e4506595e22f4151a1ae38093
f67ec5bb21e564da87c3e29a9aff0b3393890fcc
/simobility/core/tools.py
6e637d08daeac01e7b8f62c9baaa343931c90614
[ "MIT" ]
permissive
LADDDUU/simobility
efc742cd38586b56c7228096d5bee70de294dd29
6411b8ca50523e1a7c436d4b00c5d11d9a45157b
refs/heads/master
2022-12-16T05:40:05.148567
2020-09-12T05:18:32
2020-09-12T05:18:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,918
py
import logging import pandas as pd import numpy as np from datetime import datetime import uuid import random from .itinerary import Itinerary from .vehicle import Vehicle from .booking import Booking from .position import Position def basic_booking_itinerary( current_time: int, vehicle: Vehicle, booking: Bookin...
[ "sashkolysenko@gmail.com" ]
sashkolysenko@gmail.com
2f7e54e0c60605a77ca218f06a13af39dfdcf37d
7d24cbc5da5f38ee4f70159f19e2a50e5fb1208a
/delete_docker_registry_image.py
37ba692609d59511e3463a139d67fca607f62f07
[]
no_license
donniezhanggit/demo-kubernetes-yml
c4aa3c8544f4b07f5e616bcf71cc84e550fd8117
ee9faae0cf05f7ea924dbda6bda5218d2d55d0d3
refs/heads/master
2023-07-19T06:21:44.027653
2021-08-18T08:23:54
2021-08-18T08:23:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,693
py
#!/usr/bin/env python """ Usage: Shut down your registry service to avoid race conditions and possible data loss and then run the command with an image repo like this: delete_docker_registry_image.py --image awesomeimage --dry-run """ import argparse import json import logging import os import sys import shutil import...
[ "fangang@LAPTOP-8BACI9IA" ]
fangang@LAPTOP-8BACI9IA
92c59a1156df87073eec8744b9a4011e1e6fd657
f07e66293cc41a9fe71fc44f765b432fd7a0997c
/selfdrive/controls/lib/cluster/SConscript
97eb4300d4da6618962e0430ca534fc43fb0640f
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
kegman/openpilot
c9ba96a72d905956f02c684e065091e023942883
b35291c91783657a5fc83abfff012d3bb49dd89f
refs/heads/kegman-ultimate
2022-05-22T17:07:16.656336
2021-10-25T13:35:28
2021-10-25T13:35:28
229,979,925
105
212
MIT
2022-03-13T05:47:51
2019-12-24T17:27:11
C
UTF-8
Python
false
false
185
Import('env') fc = env.SharedLibrary("fastcluster", "fastcluster.cpp") # TODO: how do I gate on test #env.Program("test", ["test.cpp"], LIBS=[fc]) #valgrind --leak-check=full ./test
[ "user@comma.ai" ]
user@comma.ai
55080cdf9d5d59207c01870952c49ae87b944c6b
eaf1eaa2756ffdb4405b7d5048212f10747c8d5a
/karatsuba_multiplication.py
6c8f851380fe250d7fff02d68be02552d4974674
[]
no_license
ingridcrant/algorithms-specialization-course
e87ebfd21e64150ebacf4c316553c20bb1d69422
d87c075e365a2e70a6c87db276f2adf4f52626d8
refs/heads/master
2023-06-19T23:53:48.023782
2021-07-20T23:55:55
2021-07-20T23:55:55
381,830,401
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
from math import log10 # karatsuba multiplication # python implementation from Tim Roughgarden's Algorithms course def karatsuba(x, y): if x < 10 or y < 10: return x * y else: n = max(int(log10(x)), int(log10(y))) + 1 # max number of digits n_over_2 = n // 2 # split x in...
[ "ingridcrant@gmail.com" ]
ingridcrant@gmail.com
f68c67977383e7d333b30f0ea34c322410459cb5
4fee75068edcf2fb64074e84b150ad7a744e55df
/stock_market.py
68549a9b79b0e8db27072edb80be07758f86993f
[]
no_license
satee143/zebuapi
5311e1b7011dc86e311fddc0355f02cc89474205
1fa57ffc1802fac2bfa6bee06125a2ea68c0756a
refs/heads/master
2022-12-07T00:20:42.126203
2020-08-26T18:15:28
2020-08-26T18:15:28
280,687,836
1
2
null
null
null
null
UTF-8
Python
false
false
91
py
from nsetools import Nse nse = Nse() q = nse.get_quote('infy') print(type(q)) # pprint(q)
[ "sdoosa@insulet.com" ]
sdoosa@insulet.com
5fc50f121069b89a5ab8f5583eb3199e86306300
bd2fcd9d9ca5808af8c13c557094fd6e5ac33984
/09_Exam/RevIT.py
2df7816b69d6a28ffc717228efbc34f06252b0e8
[]
no_license
danslavov/Programming-Basics-Python-2017-MAY
586a57ea586bd8e34d7b182116207cd1d2ec112a
2ed6256664f336e59f1941784f2c10fa9a561341
refs/heads/master
2021-01-23T07:37:43.259225
2017-09-05T17:49:40
2017-09-05T17:49:40
102,511,486
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
n = int(input()) print(n, end="") while n > 0: print(n % 10, end="") n //= 10 print()
[ "noreply@github.com" ]
danslavov.noreply@github.com