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
800a7638b90f8e7805a7a765fcec4663a227b318
39e0db79daff7708cd73bf710c7958d621f4d758
/toolroom/wsgi.py~
282dd64ceae3a0d862a4dcfa842741e55d4a4c73
[]
no_license
Ahshida/onlinecatalogue
7416c5635fb15c257c8a9a625a728bdfaa69703b
52950b351397ff19c6c62371f17be9fe10489e30
refs/heads/master
2021-06-15T19:49:18.630387
2016-10-24T08:07:45
2016-10-24T08:07:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
430
""" WSGI config for toolroom 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 from dj_static import Cling os.env...
[ "noreply@github.com" ]
noreply@github.com
a1b3558b03ae177a9ec695640ddab9481f1cfb65
093b9569be9d1c4e5daf92efbebc38f680917b2d
/.history/base/views_20210829090123.py
bfec5c7dacaf07d85a118c58236ec494edd47b23
[]
no_license
Justin-Panagos/todoList
95b1e97ff71af1b0be58e7f8937d726a687cea4d
10539219b59fcea00f8b19a406db3d4c3f4d289e
refs/heads/master
2023-08-04T13:27:13.309769
2021-08-29T14:06:43
2021-08-29T14:06:43
400,827,602
0
0
null
null
null
null
UTF-8
Python
false
false
2,107
py
from django.shortcuts import render from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView, FormView from django.urls import reverse_lazy from django.contrib.auth.views import LoginView from django.contr...
[ "justpanagos@gmail.com" ]
justpanagos@gmail.com
de6f081b660049b191f0e6ed0195cbdd809a17cb
77d3bc1a0e829339190aba999729023028e7a8e7
/api/views.py
698301a04810148ccab8b07c0452d0b77b66695f
[]
no_license
piymis/team-member-api
5f418241443aa7d8fdaef35bdfd4026ed199c4fd
d2292dcf498e55e6849dd6fd010cdacf62664820
refs/heads/master
2020-04-02T12:51:55.194362
2018-11-04T21:09:21
2018-11-04T21:09:21
154,455,467
1
0
null
2018-11-04T21:09:22
2018-10-24T07:12:12
null
UTF-8
Python
false
false
404
py
from rest_framework import generics from api.models import TeamMember from api.serializers import TeamMemberSerializer class TeamMemberList(generics.ListCreateAPIView): queryset = TeamMember.objects.all() serializer_class = TeamMemberSerializer class TeamMemberDetail(generics.RetrieveUpdateDestroyAPIView): ...
[ "piyush.mishra@amadeus.com" ]
piyush.mishra@amadeus.com
ee5c4b590e8ebe79e91bd36fe90998271da2f27e
17661d859860ef5bf8d667aed95917c6aeb1ed27
/keybindings/autokey/data/Mac/save.py
b4aa92d2423c5ccd6886afaf0068de68f948fe43
[ "MIT" ]
permissive
guoyiteng/linux-for-macos-user
92f491a69ce29feb980f1acd0f76bede2de79014
705baec9ddffb9ab73172cdc2b272ab123b1e402
refs/heads/master
2020-08-27T02:53:10.893074
2019-11-13T01:35:59
2019-11-13T01:35:59
217,224,786
1
0
null
null
null
null
UTF-8
Python
false
false
107
py
store.set_global_value('hotkey', '<meta>+s') engine.set_return_value('<ctrl>+s') engine.run_script('combo')
[ "guoyiteng@gmail.com" ]
guoyiteng@gmail.com
21a1af074033e23cadb65641d37da61de72e1f0f
8ea03815a13ada885363725b5acb0fb5a295a139
/tools/negative.py
0db189e20564de422d8cdbc7c60a48acef5cbfe5
[ "MIT" ]
permissive
Akshay-Kanawade/Image_Augmentation_Tool
c72faafe29ab5088dbc52be779c11cdf6368e887
bc8fef1c8f554f866b7f1e15de6ffa286617bb7e
refs/heads/main
2023-07-15T07:16:25.150980
2021-08-30T14:38:27
2021-08-30T14:38:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,827
py
# import library import cv2 import numpy as np def Read(image_path): """ This function basically used to read the image.It read images in form of numpy array. :param image_path: source image :return: ndarray """ # use cv2.imread() to read an images. # syntax : cv2.imread(filename, flag=No...
[ "akshay_kanawade" ]
akshay_kanawade
a6b331701eae7b10f4e48c40159d3e176e77fb9a
07e672a7674f5ec9463fc7a91f1d19a6d0c1e946
/forlearning.py
aeca099ccb35d73affff5775aef9a8cdadc47ba8
[]
no_license
Yensj/learn_python
6dcdc208ecf6cb5869b54f83d4db023ae7e9cef7
942f01765f8e1d90e25fb96591c7c224540f5493
refs/heads/master
2020-05-22T00:32:31.981030
2017-03-18T13:27:26
2017-03-18T13:27:26
84,655,439
0
0
null
null
null
null
UTF-8
Python
false
false
92
py
#... n_numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] for score in n_numbers: print(score + 1)
[ "Yensj@Artems-MacBook-Pro.local" ]
Yensj@Artems-MacBook-Pro.local
f20d475928df69d09c6d252002153880c58a7d63
1573d69b877d83c92387631cecf74005289d299c
/modelo.py
8ce734baf130ec1ee179f7c80d51363f0dc91ddc
[]
no_license
Yuricoelho/playlist-programa-de-tv
f73e1f7d9d6aef66ca874e6587f25a2cbc584392
a7f6e059fb28c078447d49c61552b3cb41e7e195
refs/heads/master
2023-04-28T12:18:56.606236
2021-05-06T13:34:47
2021-05-06T13:34:47
364,390,712
0
0
null
null
null
null
UTF-8
Python
false
false
1,997
py
class Programa: def __init__(self, nome, ano): self._nome = nome.title() self.ano = ano self._likes = 0 @property def likes(self): return self._likes def dar_like(self): self._likes += 1 @property def nome(self): return self._nome @nome.set...
[ "yuricoelho33@gmail.com" ]
yuricoelho33@gmail.com
cd7dcf61848a7044370577c55d676665e78d5842
c4df379f7d28410189907d07327a2894c5af2964
/genetic.py
e56b185f98733c6f4521f5c353032040e60b6140
[ "MIT" ]
permissive
zoso95/genetic-algorithm-fractals
c8dee664e77bdfaf91cd8b2e14b948c480bc92a5
881f3a87fc2c70583d8430bdb515cd73fae40fe3
refs/heads/master
2021-01-25T10:15:42.823125
2018-02-28T21:51:51
2018-02-28T21:51:51
123,345,693
4
2
null
null
null
null
UTF-8
Python
false
false
1,945
py
import numpy as np from scipy.stats import hmean import fractal def crossover_mean(list_of_coef): coefs = np.vstack(list_of_coef) return np.mean(coefs, axis=0) def crossover_hmean(list_of_coef): coefs = np.vstack(list_of_coef) return hmean(coefs, axis=0) def crossover_med(list_of_coef): coefs = n...
[ "geoff.bradway@gmail.com" ]
geoff.bradway@gmail.com
df8acf5bb865539d3309fae8e1493abda40caa64
457dcb293083cd57ccd330a51f7c709c4e2ed040
/week1/codes/mt17144_problem2_1.1.py
969a1fa28d70ecb1c11716292e46a8cf24f481a7
[]
no_license
meghalD/Algorithms-for-Computational-Biology
6c0ce0eb42cf2a3f5e4e5d2dce8315fdc44b2d5e
6863faae8bad54e9a02e51073eed4e1c6edf6334
refs/heads/master
2022-12-08T20:29:26.315051
2020-09-15T07:50:23
2020-09-15T07:50:23
291,276,899
0
0
null
null
null
null
UTF-8
Python
false
false
698
py
import timeit start = timeit.default_timer() l=['-','A','C','G','T'] set=[] def permutation(lst,i): if len(lst)-1 == i: print(lst) else: for j in range(i,len(lst)): lst[i],lst[j]=lst[j],lst[i] permutation(lst,i+1) lst[i], lst[j] = lst[j], ls...
[ "noreply@github.com" ]
noreply@github.com
eff6b7e3feaa7bdb6093751ef539172c59891a13
28f04941ef425e6ad5b846c22c66d3dcc7d76a9e
/plugins/macosx.py
687c9e8e8a398e024601f5ce6657ec850650923c
[ "Apache-2.0" ]
permissive
wt/repo-digg-dev-hackbuilder
627e693f521a47baaf240b51165322fe3a355f82
7e2068f3a00f4096e8e6e19a5c12362f4d76e10b
refs/heads/master
2021-01-18T14:29:00.076593
2013-10-23T11:04:41
2013-10-23T11:04:41
3,232,551
0
1
null
null
null
null
UTF-8
Python
false
false
5,107
py
# Copyright 2011 Digg, Inc. # Copyright 2012 Ooyala, Inc. # # 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 appl...
[ "wt@ooyala.com" ]
wt@ooyala.com
9732a0769741a60a5b7c0a0a66070a04ffbe1412
9f32993a904ee1a2af3f67f4d03f4e11ac6c7491
/equityDataClass.py
2c6e4de7db423eadc574c894e460ad3129de1534
[]
no_license
georgepruitt/TradingSimula-18-1.02
33f38239722d00e7e688056a1a7f21ef0b9eea44
41aec6464e89f55546f787755f9b2c9949404b01
refs/heads/main
2023-01-30T20:46:17.806879
2020-12-04T19:07:16
2020-12-04T19:07:16
310,117,494
0
0
null
2020-12-04T19:07:17
2020-11-04T21:04:51
Python
UTF-8
Python
false
false
1,280
py
class equityClass(object): def __init__(self): self.equityDate = list() self.equityItm = list() self.clsTrdEquity = list() self.openTrdEquity = list() self.cumuClsEquity = 0 self.dailyEquityVal = list() self.peakEquity = 0 self.minEquity = 0 ...
[ "noreply@github.com" ]
noreply@github.com
b983070276e9108430c515665fa30b6bce8cb8fb
f6841d5626d87e836f6012d88c783706fa46d769
/web_crawler.py
c736c3b9c98f9e2dabb384fc0182472094e813d0
[]
no_license
Jack-Valentine/python-seminar-4
850b22cd7c552b570e25e9432abf98a25cf0b7d6
cd6c8945f436fa5dc0d6dec14551d07e6dd3562a
refs/heads/master
2021-01-22T07:42:35.044924
2017-05-25T03:46:59
2017-05-25T03:46:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,010
py
from bs4 import BeautifulSoup from gevent import monkey import sys import gevent import time import urllib.request def crawling_product_price(product_url): try: with urllib.request.urlopen(product_url) as response: html = response.read() soup = BeautifulSoup(html, 'html.parser') ...
[ "kd980311@naver.com" ]
kd980311@naver.com
4497e8008f1c61c1dfeef5262fe13b9b76aead63
c9fd29813ebbef70755c962db0714b3d9b9a5906
/Managers/urls.py
8c4c7aaa62b894f60cfefefd80679eb1c78628e1
[]
no_license
yiluxiangdong/django_1026
00cd936c13ae53685941e3d3bccd189f811732c2
69228c45cd01f2f5fec2d5521c2f7bf8afdf014c
refs/heads/master
2021-07-18T05:04:31.383640
2017-10-26T02:18:19
2017-10-26T02:18:19
108,346,530
0
0
null
null
null
null
UTF-8
Python
false
false
766
py
"""Managers URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/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-b...
[ "liuxiaobing@xgd.com" ]
liuxiaobing@xgd.com
dc9af9d4b6a64f5e56356789ba5d4993111a85a6
a9e4df1b51bc6d8b5e409fd36662c5b748787b21
/django/dojoninja/manage.py
3a15db692d0943ea18a1a39d79fb8b4ca957c228
[]
no_license
EdAllenPoe/Python_Projects
643dd748357ade72c0f2f2b27bee3d9a9fe1f26e
ffab487ebbfe4ed52115f5da16e11b21f10a986b
refs/heads/master
2021-01-01T20:04:13.954539
2017-10-06T01:41:25
2017-10-06T01:41:25
98,760,533
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Freinds_Belt.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that...
[ "eric@ericgott.com" ]
eric@ericgott.com
69e51fdfc4869a7c3cbfdeaf0cb52e5fa0558a74
f69eccca4970bc898983b149bbadfc6a79e77916
/befh/api_socket.py
9252264f83791eecb5cd78803add2d6948531050
[ "Apache-2.0" ]
permissive
chrischris292/MarketDataGdax
a3cd911edafe7a246a1d553180e1edb66a125c8c
95dc398123f7878526df4af2402af3cbeee67057
refs/heads/master
2021-05-06T17:38:19.949472
2017-11-24T22:24:40
2017-11-24T22:24:40
111,900,487
1
0
null
null
null
null
UTF-8
Python
false
false
887
py
#!/bin/python class ApiSocket: """ API socket """ def __init__(self): pass @classmethod def parse_l2_depth(cls, instmt, raw): """ Parse raw data to L2 depth :param instmt: Instrument :param raw: Raw data in JSON """ return None @...
[ "gavincyi@gmail.com" ]
gavincyi@gmail.com
5f8d714422c7d691696299d9f7a93d52b2168c5c
59166105545cdd87626d15bf42e60a9ee1ef2413
/test/test_space_shuttle_api.py
f91c3cfb0e3cfbade624d087754e5913f39e478a
[]
no_license
mosoriob/dbpedia_api_client
8c594fc115ce75235315e890d55fbf6bd555fa85
8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc
refs/heads/master
2022-11-20T01:42:33.481024
2020-05-12T23:22:54
2020-05-12T23:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
995
py
# coding: utf-8 """ DBpedia This is the API of the DBpedia Ontology # noqa: E501 The version of the OpenAPI document: v0.0.1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import dbpedia from dbpedia.api.space_shuttle_api import SpaceShutt...
[ "maxiosorio@gmail.com" ]
maxiosorio@gmail.com
13a9ee7ca0588f5b36d4a9806c20fb505b2b3049
807d842325d62319ff98d539e559df9bbae68ee1
/model/model.py
47dc755df1d21d6ed7b95c2350b06122e36975ae
[]
no_license
AndrewVasilevskii/exc-power-supply
41d3f0e19dfc80f165c264abb33537349202476d
67e137426a95e7cf674cccb7c503b6bf69c258da
refs/heads/master
2020-09-14T21:31:04.113475
2019-11-21T20:48:11
2019-11-21T20:48:11
223,262,468
0
0
null
null
null
null
UTF-8
Python
false
false
5,377
py
from multiprocessing import Value, Array from threading import Thread from model.appdata import AppData from model.devicedata import DeviceData from model.connector.autoconnector import AutoConnector from model.pulldataloop import pullData FILAMENT_CHANNEL = 8 import zipfile import os def zipfolder(foldername, targe...
[ "andrew.vasilevskii@gmail.com" ]
andrew.vasilevskii@gmail.com
21e74be97b92974cfa8b16c63574de712dea4ff4
245bcf63bce2933948adead5734f86e11cc190dd
/test/test_sales_stats.py
c0a5903c533d4c297dd3be3f11187ca4bee0d403
[]
no_license
MarketcheckCarsInc/marketcheck_api_sdk_python
385c645c74805be3d8717304188e2b215786be56
aca339cc61a0860f31f2070c736af32f07d8fd5a
refs/heads/master
2020-03-23T23:53:32.292175
2018-08-25T03:06:52
2018-08-25T03:06:52
142,261,814
2
1
null
2018-08-25T03:06:53
2018-07-25T07:11:04
Python
UTF-8
Python
false
false
1,654
py
# coding: utf-8 """ Marketcheck Cars API <b>Access the New, Used and Certified cars inventories for all Car Dealers in US.</b> <br/>The data is sourced from online listings by over 44,000 Car dealers in US. At any time, there are about 6.2M searchable listings (about 1.9M unique VINs) for Used & Certified car...
[ "mahesh.hakeem@zerebral.co.in" ]
mahesh.hakeem@zerebral.co.in
ed58414933d033ea90fcc698ea0305f405614980
b2ff555164b6b20292c3c14680372d4e443845bf
/problems/problem30.py
6123c41fe53f957b04815b974c4e6d3f241a8b47
[ "MIT" ]
permissive
Julien-Verdun/Project-Euler
aeee823216253f575731989376edf73ae17ff9a0
94b073a9e4593960fcd74e678951bc27009e34f9
refs/heads/master
2020-11-28T06:43:07.580180
2020-01-07T16:59:32
2020-01-07T16:59:32
229,732,240
0
0
null
null
null
null
UTF-8
Python
false
false
648
py
# Problem 30 : Digit fifth powers def somme_nth_dgt_powers(n, limit=10**7): """ This function takes an integer n, a limit number of iterations and returns the list of numbers, lesser than limit, such that the sum of their n-th power digit equal this number, and also the sum of also such number. """ i = 2 ...
[ "verdun.julien@yahoo.fr" ]
verdun.julien@yahoo.fr
fda909f43d4f1878f1b1a2703e227364508fc39d
b02c690cb5471f721d0d3c74dd08ae6082cc479c
/pythontest/day30冒泡排序.py
7c22b21703cee1e524f874c4aff8e3cd5aa462df
[]
no_license
1914866205/python
d49207091337e970b488b18e5612fb74827195de
fb44197a27c230bad27162abd90001ac4ba4ae15
refs/heads/master
2022-06-14T04:12:29.580518
2022-06-01T12:03:06
2022-06-01T12:03:06
249,953,221
2
2
null
null
null
null
UTF-8
Python
false
false
942
py
""" 冒泡排序 """ def bubble_sort(items, comp=lambda x, y: x > y): items = items[:] for i in range(len(items)): swapped = False for j in range(len(items)-1-i): if comp(items[j], items[j+1]): items[j], items[j+1] = items[j+1], items[j] swapped = True ...
[ "1914866205@qq.com" ]
1914866205@qq.com
6d8e740363397000637a3ad5a4b53bcd8124be5e
e4e35adb3a779e6048df0725da9625c3d9ed36f2
/bebop_ws/devel/lib/python2.7/dist-packages/bebop_msgs/msg/_CommonARLibsVersionsStateDeviceLibARCommandsVersion.py
1797ea92108dbdfa04392fc310df232587a27750
[]
no_license
NimSon/ROS_Bebop
03644a061af0de3f7e3eff243e02bc0b099e9a5e
4ecf21140f83fdd52d0463a87a356019cb762eb5
refs/heads/master
2020-08-17T13:20:36.452766
2020-07-11T07:08:06
2020-07-11T07:08:06
215,672,375
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
/home/nim/bebop_ws/devel/.private/bebop_msgs/lib/python2.7/dist-packages/bebop_msgs/msg/_CommonARLibsVersionsStateDeviceLibARCommandsVersion.py
[ "snim326@gmail.com" ]
snim326@gmail.com
776a67d9e6d78daddbe8563a5d9a90a2d32415a4
f3c4cdf9f7b525e1eb16e6a169425d1683e780f5
/Tabs/Scenarios/CIProjection.py
d0944c54bcfe73eb81b9d79b5212409dfddeb386
[ "MIT" ]
permissive
MaheshBodas/IFRS9_UI_AUTH
8b8fc47f1ac769e851646510cf859b264f60c5c5
a284a5e2bd1f327ca4608110cbf23d53ead7d75a
refs/heads/master
2023-07-16T10:50:31.109713
2021-08-20T18:00:49
2021-08-20T18:00:49
398,360,800
0
0
null
null
null
null
UTF-8
Python
false
false
3,496
py
import dash_html_components as html import dash_core_components as dcc from tnp_dash_library.LayoutLibrary.ExpandableContent import ExpandableContent from tnp_dash_library.LayoutLibrary.FixedContent import FixedContent from tnp_dash_library.LayoutLibrary.TNPContent import TNPContent, TNPControl import Utility.Unzip as ...
[ "mahesh.bodas@gmail.com" ]
mahesh.bodas@gmail.com
4dc4f0c84a435d4b3aadf99d0942035e8d7a8a9f
176d95d61aeff9e884659d1fcd363c0d3f8626de
/server.py
775ef821a2352dc9e26570b7badf10874736e9ba
[]
no_license
vijaylingam/Secure-Server-UserLogin
ee036c66b9ab1772718e8a0ea5e26c1461398947
265effc17a0a58098a373c2c5fbd65df409e9905
refs/heads/master
2021-01-20T15:51:31.235238
2017-05-09T22:25:26
2017-05-09T22:25:26
90,797,226
0
0
null
null
null
null
UTF-8
Python
false
false
2,725
py
import socket import random from pyprimes import * # Use this in case the port is already in use: sudo lsof -t -i tcp:50007 | xargs kill -9 prime = primes() table = [] def compute_sum(line): return sum(int(i) for i in line.split(',')) HOST = 'localhost' # Symbolic name meaning all available interfaces PORT...
[ "vijay.lingam@ashoka.edu.in" ]
vijay.lingam@ashoka.edu.in
431dba391501f013d8df54541d4082405e02ae55
8567e0a1ae18393475a3a44f38f46302839d5485
/sandbox/sand/dashboard.py
0d82340d9322f3f90d0aa74bd82d0bd703777fff
[ "CC-BY-NC-SA-4.0", "LicenseRef-scancode-proprietary-license", "CC-BY-NC-4.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference" ]
permissive
marionleborgne/EIT_Dashboard
084935e554248bec1485602238d7310cb5e2afe4
057e05d20325fa6a9b9b0183f63a73c8b7e6cd3b
refs/heads/master
2020-03-23T15:40:37.698232
2018-10-04T22:57:32
2018-10-04T22:57:32
141,766,074
2
0
Apache-2.0
2018-07-20T23:25:10
2018-07-20T23:25:10
null
UTF-8
Python
false
false
2,626
py
# import matplotlib # matplotlib.use("TkAgg") import argparse import logging import OpenEIT.dashboard import configparser import Adafruit_BluefruitLE FORMAT = '%(asctime)-15s %(message)s' logging.basicConfig(format=FORMAT, level=logging.INFO) logger = logging.getLogger(__name__) # # Get the BLE provider for the cur...
[ "jean.rintoul@gmail.com" ]
jean.rintoul@gmail.com
03e57834e1fedbb40c070c90c5c0c36b1a2be91d
e9083889f75d32f93c5f5e270782e8570716c547
/app/__init__.py
e4b436c39e91f32fe560d55fde4c97170bd9b028
[]
no_license
Yusuke3974/vehicledetection
3c3d92ef219ae58495114c0c77a52bbdf0007e8b
96804bff383fb6aa01a7c3df1721b25aac4c25ca
refs/heads/master
2023-08-14T13:43:02.181494
2021-10-14T11:59:24
2021-10-14T11:59:24
417,080,575
0
0
null
null
null
null
UTF-8
Python
false
false
121
py
from flask import Flask app = Flask(__name__) app.config.from_object('config.DevelopmentConfig') from app import views
[ "ritchie.deep.purple@gmail.com" ]
ritchie.deep.purple@gmail.com
35a69309db6a13befb15b43719fa13faefa49af6
93334df29b59aeffc14feb6e1e08bc5bdfa17806
/find_clearance.py
90995a20ba5150fbe6e6f8fda5fa4191df5741aa
[ "MIT" ]
permissive
LakhouaMehdi/Robotic_Depth_Perception_System
bee377496584930aca3aa865f06bb4c81245012f
765403e61b60939adfefafb0fe9e31663479908d
refs/heads/master
2021-10-10T09:46:13.116483
2019-01-09T00:05:16
2019-01-09T00:05:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,650
py
import sys import cv2 import numpy as np def auto_canny(image, sigma=0.33): """ Detect image edge via Canny Function. :param image: ndarray, dtpye=np.uint8 :param sigma: float :return: ndarray edged image """ v = np.median(image) lower = int(max(0, (1.0 - sigma) * v)) upper = in...
[ "munoliver007@gmail.com" ]
munoliver007@gmail.com
83ce701ba540386ee9eaf7d386a2ee5e92a42456
cf9de34e18ee0aef7dc3e6a0a1d2aaa151534769
/day-07/main.py
d288170c3679728cae11df4806af020afbdb193d
[]
no_license
MikoGD/advent_of_code_2020
85fa31a366bd87d78457d3e107f1600512bd4941
b16771a10ae44e2cba737e7ecfda079080f9f788
refs/heads/main
2023-02-05T09:11:04.869572
2020-12-27T11:12:49
2020-12-27T11:12:49
323,669,597
0
0
null
null
null
null
UTF-8
Python
false
false
3,084
py
from collections import defaultdict, deque from pprint import pprint as pp from typing import List, Dict, Set, Tuple import math import sys import time def main(): start_time = time.time() part_one() print("---- Part one %s seconds ---- " % (time.time() - start_time)) start_time = time.time() part...
[ "mikaelescolin@gmail.com" ]
mikaelescolin@gmail.com
165d038ef67c6e5d9650811fb8eebb4c215a8874
1ad12a71c3d5d2b3810ce03e8bd138c4ffb66eb8
/xlsxwriter/test/comparison/test_chart_axis17.py
d77b584fbddf1629eaf7474c77dea6cb5512ae61
[ "BSD-2-Clause-Views" ]
permissive
idreamsfy/XlsxWriter
b52929229b16e2ee1eaca0cda9980a5a0aad5769
129044ed821de67895b4562c6b71f90eba5be6b4
refs/heads/master
2021-01-02T20:39:20.415882
2020-02-07T21:07:55
2020-02-07T21:07:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
de412810d3844cf5f8ee29bbd2e1e99a79ec08a8
31085d66c719c5c27aec57be693bb99c902d2596
/flux_tool/neutrino.py
f2e1a11c0da132e7731968f5bce499d1e10f630c
[]
no_license
bhokansonfasig/flux_tool
0fa0692a3a10cb0b493a1a34ffb3339db49ac585
a74d991d0a02d31eea00d5dd053405542d16247d
refs/heads/main
2023-02-12T04:13:10.814367
2021-01-08T23:54:45
2021-01-08T23:54:45
327,973,884
1
1
null
null
null
null
UTF-8
Python
false
false
9,805
py
"""Class for neutrino interaction physics calculations""" from enum import Enum import numpy as np import scipy.constants from . import units def get_from_enum(value, enum): """ Find the enum value given some representation of it. Transforms the given `value` into the corresponding value from the `enu...
[ "bhokansonfasig@gmail.com" ]
bhokansonfasig@gmail.com
b0ec485abeeaf472b4b5ce919bb5039ff99fea2e
6b51f1a03cc8f1ffe11c3663187f63c0c3dc83c2
/wsgi.py
ecf85a296f226b3c2aef454ea6df6c593fe936aa
[]
no_license
medvedodesa/artem-task
996803f968a1660d0d38538da72e6dbfb73f9726
bbdd6ea313e5a1c3244a09f874f6ffbb1580d376
refs/heads/master
2023-05-29T12:59:45.084159
2021-06-10T18:44:41
2021-06-10T18:44:41
375,766,347
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
from flask import Flask app = Flask(__name__) if __name__ == '__main__': app.run()
[ "medvedodesa@gmail.com" ]
medvedodesa@gmail.com
1222db5d93d5f79953beeaabc6e3d35f1f6460d7
d18aa06a5c9d093bbd58c1c556c786c700ff5142
/code/shutdown.py
168e8972d4bae73d9526da291aa64b33f32c0630
[]
no_license
AmrutRane/Raspi_DashCam
95c569876befeae05b02a054cdbc2f3e1f581c59
569e753831111db49de8e7fd655bc5f1f9739d75
refs/heads/main
2023-02-05T03:22:53.154339
2020-12-26T17:23:53
2020-12-26T17:23:53
319,759,936
3
1
null
null
null
null
UTF-8
Python
false
false
1,673
py
#!/usr/bin/env python # Safely shutdown Raspberry pi using a momentary switch # use a physical push button, toggle switch or just short two gpio jumper wires # You can salvage an old switch from a computer or other device. # Connect momentary switch to pin 5 and 6 (default) # or set gpio_pin variable below to desired ...
[ "arane_consultant@ciis.canon.com" ]
arane_consultant@ciis.canon.com
d84b47514c1052634e22a687f3e5112bc6cdd7b6
9db088609732b0aa1f428c73cc6775d54a00de7f
/p12.py
834262788dc56a5ead6a57f106926089ceedaed9
[]
no_license
Hemangi3598/chap-10_p12
3e6360970931822bf8c9a78f2c0328808c93d70d
d9afb63ef7eb9df19bbb690e7d91185743b2d4ca
refs/heads/main
2023-08-04T09:36:48.524380
2021-09-21T08:05:56
2021-09-21T08:05:56
408,736,452
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
# p12) delete an existing flie import os filename = input("enter filename to be deleted ") if os.path.exists(filename): os.remove(filename) print(filename, " file deleted ") else: print(filename, "does not exist ")
[ "noreply@github.com" ]
noreply@github.com
27eeeb653c05caa760b8785076bda08a096fb674
0eb599c3bbfa6e5b31516913b88cc9db3a1311ce
/AtCoder_unofficial/chokudai_speedrun_001_i.py
5148ec2cff2560f0cb7e129c29a7606713c0aa9f
[]
no_license
Linus-MK/AtCoder
5b84dc88c2d2773d0f97ed18265d303290da7879
a587e89a9e0c2ab4d36b09176bcc95e901e14326
refs/heads/master
2022-11-25T05:37:12.148722
2022-11-17T16:04:10
2022-11-17T16:04:10
169,840,698
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
n = int(input()) nums = list(map(int, input().split())) # 累積和 + α # 累積和が単調増加であることを利用して二分探索で解くか(NlogN) # 1からの相異なる数の和がnに達するのは割と早いことを利用して逐次計算で解くか(最悪N√Nだがそれより小さいはず) # 後者でやってみよう # 369ms, 余裕を持って間に合う cumsum = [0] * (n+1) for i in range(n): cumsum[i+1] = cumsum[i] + nums[i] ans = 0 for i in range(n+1): for j in ran...
[ "13600386+Linus-MK@users.noreply.github.com" ]
13600386+Linus-MK@users.noreply.github.com
ac0032fb8c3c73b7de8979c896fcd0df0b3a547f
263dc86ea58278d6e1db448c245f692049c73199
/employeedetails/customer/urls.py
00350cd841b461cd5617ec8e73ffdbac809561d7
[]
no_license
krishnanunni-pr/MyDjangoProjects
c3a81b193a659c47fd6aec01777d6f689479eb9f
3d644d2a261243be40f5678e9a61d508a5980143
refs/heads/master
2023-08-05T20:10:08.509167
2021-09-27T09:21:21
2021-09-27T09:21:21
394,686,590
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
from django.urls import path from customer import views urlpatterns=[ path("accounts/signup",views.signup,name="signup"), path("accounts/signin",views.signin,name="signin"), path("accounts/signout",views.signout,name="signout"), path("",views.home,name="home") ]
[ "krishna@gmail.com" ]
krishna@gmail.com
f63b4dd68f760c9f304342b9e16b4f91fa19bd8f
6a95112805b64322953429270a305d01fef3faea
/dist/weewx-3.6.2/bin/weewx/drivers/ws23xx.py
2b538e1eaf92814e477ceee58c4beccac5760015
[ "GPL-1.0-or-later", "GPL-3.0-only", "Apache-2.0" ]
permissive
tomdotorg/docker-weewx
c6d59dc492a9e53f3bc898f7b9f593717092d72c
7085654f455d39b06acc688738fde27e1f78ad1e
refs/heads/main
2023-06-08T17:57:44.184399
2023-01-30T11:21:23
2023-01-30T11:21:23
54,113,384
21
16
Apache-2.0
2022-10-19T23:46:26
2016-03-17T11:39:29
Dockerfile
UTF-8
Python
false
false
79,394
py
#!usr/bin/env python # # Copyright 2013 Matthew Wall # See the file LICENSE.txt for your full rights. # # Thanks to Kenneth Lavrsen for the Open2300 implementation: # http://www.lavrsen.dk/foswiki/bin/view/Open2300/WebHome # description of the station communication interface: # http://www.lavrsen.dk/foswiki/bin/vie...
[ "tom@tom.org" ]
tom@tom.org
305fb33556d286226494cf186720a7151194ecd0
f25938b59fb9f21f3dca2e71ae180025be32f346
/check.py
6ec9d49c74594d7758ca7d2bf02deb12c1a62983
[]
no_license
aaeviru/tools
cfe8dcb51f6d9158138a98cddf254c2d99427fca
447a8c17dd0332a46ac2c6c0d678f54f5e4d53f3
refs/heads/master
2020-04-05T23:08:33.195451
2017-01-17T13:35:11
2017-01-17T13:35:11
56,742,514
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
# -*- coding: utf-8 -*- import os import os.path import sys import re num = 0 for root, dirs, files in os.walk(sys.argv[1]): for name in files: filename = root + '/' + name if filename[len(filename)-3] == 't': num += 1 if os.path.isfile(filename+".chasen"): print "chasen:"+fil...
[ "aaeviru@gmail.com" ]
aaeviru@gmail.com
7f7584f9a0df9c11769a6e56e61135e48c6f0ef1
5a88761f950c13a4b33ea68a75126a71ea505964
/devilry/devilry_admin/tests/assignment/test_anonymizationmode.py
1da995173f9bb6291f69aedda24d7d654a03697d
[]
no_license
cas--/devilry-django
35d3087664f830d84c32f6270e4cd6ca7656bc78
15dc771084ea14cb4083cf1feca1fb00cc441aa1
refs/heads/master
2020-05-30T07:14:16.921949
2016-09-12T15:46:38
2016-09-12T15:46:38
69,559,633
0
0
null
2016-09-29T11:05:37
2016-09-29T11:05:36
null
UTF-8
Python
false
false
641
py
from django.test import TestCase from django_cradmin import cradmin_testhelpers from model_mommy import mommy from devilry.devilry_admin.views.assignment import anonymizationmode class TestOverviewAppUpdateFirstDeadline(TestCase, cradmin_testhelpers.TestCaseMixin): viewclass = anonymizationmode.AssignmentAnonymi...
[ "tor@torjohansen.no" ]
tor@torjohansen.no
e9dd7621414b404cc02b670971a3b410378d6154
3d8078096288e8355248bab6f419b935f11870f0
/python/turtle/multicoloredturtles.py
d3bd96d66b0967dd01795d00c25f27af7a8c2312
[]
no_license
tnameera/csci127-examrevision
43fd0484b33117866b00517ca3397eccd10d0fed
12f2563690ecd5853f3b8de22dc88922fb16bffa
refs/heads/main
2023-01-31T12:00:32.765820
2020-12-14T06:23:06
2020-12-14T06:23:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
# A program that uses multi-colored turtles import turtle azul = turtle.Turtle() azul.color("blue") verde = turtle.Turtle() verde.color("green") azul.forward(100) azul.right(90) azul.forward(50)
[ "syed.rahman@nielsen.com" ]
syed.rahman@nielsen.com
51ee9364650e8ff4c9afd76dfbc9257f9b9581ad
eab7a813d0530c618c6ff31880934d93904eb960
/backend/app/core/usuario/migrations/0003_auto_20201208_1903.py
c5d72a0b172146a8a96df21536edca3d3c23bb44
[]
no_license
CamiloArias47/Covid-Diejinueve
e670c7214a054f16beeef8d88fabb9b6f2026dfa
309ac6ef4ea5ec6be900ca3f1150b209376d7f3d
refs/heads/master
2023-01-28T11:32:02.559380
2020-12-10T15:33:15
2020-12-10T15:33:15
306,971,289
0
0
null
2020-12-10T15:33:18
2020-10-24T21:04:16
null
UTF-8
Python
false
false
622
py
# Generated by Django 3.1.2 on 2020-12-09 00:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('usuario', '0002_auto_20201208_1115'), ] operations = [ migrations.AddField( model_name='usuario', name='genero', ...
[ "daniel.luna@correounivalle.edu.co" ]
daniel.luna@correounivalle.edu.co
72b6edb172f7d0933e029be750e568d52a323e10
cc41b520c8fd75f151c66994076884ed77712e57
/squiz/quiz/migrations/0001_initial.py
b510657c1878d47568d9474905496daa84e6ccbb
[]
no_license
kks0101/squiz
12e64caf4da0f39e947f6a6d223ce8b6f382b664
ac83f69a1826ec16410132a09c25dcea55779743
refs/heads/master
2023-05-03T19:44:20.570754
2020-01-15T15:00:41
2020-01-15T15:00:41
191,167,585
2
5
null
2023-04-21T20:32:27
2019-06-10T12:52:53
JavaScript
UTF-8
Python
false
false
2,809
py
# Generated by Django 2.2.2 on 2019-06-10 21:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('Users', '0001_initial'), ] operations = [ migrations.CreateModel( name='Que...
[ "kks1102000@gmail.com" ]
kks1102000@gmail.com
b688a16b477adf91b9b20ba9b83bbcf7727d73a4
a548a8dd9179cc1c8a2b4eac4529dc30441f6a01
/tests/test_encode_document.py
9909d8b98cd01776073523c6e67b8177b3cf3f24
[ "Apache-2.0" ]
permissive
BTAutist/vectorhub
26c2d389446e97ffe23ccd5ef5f7bac910ad0647
7a88f03abb9387f4e9197f19ce95126028fdac2b
refs/heads/main
2023-07-15T10:56:40.035451
2021-08-31T06:47:11
2021-08-31T06:47:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,690
py
import pytest from vectorhub.encoders.text.tfhub import USE2Vec enc = USE2Vec() enc.__name__ = "sample" @pytest.fixture def docs(): return [ { "text": "hey" }, { "text": "weirdo" } ] @pytest.fixture def docs_with_errors(): return [ { ...
[ "noreply@github.com" ]
noreply@github.com
6c3ab5ccf246a5bf205480247dcdbe04bfab2cfe
16da2f8c7f16239c6a985599481b9932322b71f0
/masterWeiBo/apps.py
e5532ef145739f39085528a5ee4521e0d1e2bda0
[]
no_license
While1true/PYServer
c85f608a26c87253b2d7926904421a183bc798cc
d8d41ec31f39ab350c9b4e1ff873bc9921d9f8f9
refs/heads/master
2021-04-27T06:20:23.500532
2018-03-11T06:00:23
2018-03-11T06:00:23
122,610,840
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
from django.apps import AppConfig class MasterweiboConfig(AppConfig): name = 'masterWeiBo'
[ "893825883@qq.com" ]
893825883@qq.com
9b8abd96e7a9d1cf1657b05be3e7327c9595c874
f64e31cb76909a6f7fb592ad623e0a94deec25ae
/tests/test_p0380_insert_delete_getrandom_o1.py
6fb1b572dadda2d8a17a49d0331190489c5cd47b
[]
no_license
weak-head/leetcode
365d635cb985e1d154985188f6728c18cab1f877
9a20e1835652f5e6c33ef5c238f622e81f84ca26
refs/heads/main
2023-05-11T14:19:58.205709
2023-05-05T20:57:13
2023-05-05T20:57:13
172,853,059
0
1
null
2022-12-09T05:22:32
2019-02-27T05:58:54
Python
UTF-8
Python
false
false
1,572
py
# flake8: noqa: F403, F405 import pytest from leetcode.p0380_insert_delete_getrandom_o1 import * solutions = [ RandomizedSet, ] # ([args], expectation), test_cases = [ [ ("d", 2, False), ("i", 1, True), ("i", 1, False), ("r", None, {1}), ], [ ("d", 2, False), ...
[ "zinchenko@live.com" ]
zinchenko@live.com
b06d1cf69fab798694dd9919dbf98be6ae3625a1
28f5332bd313235fec220f9c84b8ee40743257b7
/env/motion_planners/rrt_connect.py
f078fdbd0e178a610ea90a25339072a9c1f1a826
[]
no_license
IrisLi17/bridge_construction
0096ff8b5445ab20f3dfccea50d3bf5177740246
34d75e7fbac438d0607b286e03beffdf05d3102f
refs/heads/main
2023-08-11T01:52:34.628517
2021-09-29T12:54:52
2021-09-29T12:54:52
411,630,645
13
3
null
null
null
null
UTF-8
Python
false
false
3,759
py
import time from itertools import takewhile from .smoothing import smooth_path from .rrt import TreeNode, configs from .utils import irange, argmin, RRT_ITERATIONS, RRT_RESTARTS, RRT_SMOOTHING, INF, elapsed_time, negate def asymmetric_extend(q1, q2, extend_fn, backward=False): if backward: return reverse...
[ "yunfeili.cloud@gmail.com" ]
yunfeili.cloud@gmail.com
f387b6aa04e93a35d93e07dd14b6b8491b80e692
d491aae08ffe85d3253f1cd1e9f861a1ffe8274a
/untitled/urls.py
242930073d175aa88b0f6b7878d988b077d3e6cb
[]
no_license
myxahev/Django_test
0336388b6e1b94fe78ea8151591a2fa095531bf3
5f2233fabd666d197b69c66da552a7d3c63713f5
refs/heads/master
2023-04-08T16:52:12.018845
2021-02-25T15:48:53
2021-02-25T15:48:53
342,295,538
0
0
null
2021-03-24T18:36:56
2021-02-25T15:48:11
Python
UTF-8
Python
false
false
864
py
"""untitled URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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-base...
[ "myxahev2@gmail.com" ]
myxahev2@gmail.com
3d2ca0223893cfcb17fd1d7bea3f906d3a7be1fd
ae6d62d2daa8f1d51b8f33199198338b52cbafa1
/node_modules/protractor/node_modules/selenium-webdriver/node_modules/ws/node_modules/bufferutil/build/config.gypi
6df3becc34206ba9f98f0348900ea9234e1211ac
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
aritzg/abc123
1c41e26182b2a01b3fedef64cfeaa58f606708ff
a4d2fbe65d47d0c3506d0b381571db3234c60f41
refs/heads/master
2020-06-06T05:16:04.078593
2015-10-09T09:20:24
2015-10-09T09:20:24
39,558,462
0
0
null
null
null
null
UTF-8
Python
false
false
3,159
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "clang": 0, "gcc_version": 48, "host_arch": "x64", "node_install_npm": ...
[ "galdos.aritz@gmail.com" ]
galdos.aritz@gmail.com
fb469050fad2ef0ce31ce7700ad67c9ae42f2aa1
a5a523fbfa2ce7800834b406c7ed892045c51bba
/modules/database.py
1f218124d9b122b37b66021465d21475e099f380
[]
no_license
ascherf-ml/IDA
f850328bb7821328e29252a9e17b4c87428d44ae
7d592c291b51dd469049b53080102e69a8d8fd01
refs/heads/main
2023-06-09T12:35:43.904955
2023-06-01T07:18:18
2023-06-01T07:18:18
310,251,250
0
0
null
null
null
null
UTF-8
Python
false
false
906
py
import pandas as pd import time def todo_database_create(): todo_data_columns = ['todo', 'date', 'priority'] todo_data = pd.DataFrame(columns=todo_data_columns) def note_database_create(): note_data_columns = ['note', 'date'] note_data = pd.DataFrame(columns=note_data_columns) return note_data, no...
[ "alexander-scherf@gmx.net" ]
alexander-scherf@gmx.net
42bdcefd5ebbbf29bb1fde03e25d27b62de032fc
e6329dfee74b6673786f0b8519827ec2acffa68b
/simplivity/resources/external_stores.py
68967df1d164bf070c772dd0c5959ef28afc8275
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mumblingMac/simplivity-python
09316ef733ba379f540aa296cd4fbdda685bd064
6e07d274ac75fa1aeff095e585b6b53f40446e2a
refs/heads/master
2022-11-06T10:31:38.907062
2020-06-19T12:17:10
2020-06-19T12:17:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,413
py
### # (C) Copyright [2019-2020] Hewlett Packard Enterprise Development LP # # 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 ...
[ "hchaudhari@hpe.com" ]
hchaudhari@hpe.com
82fb173cf47cd88083962ab2b73da46b3f4fcc51
817142283452fd6d351f2faaaccbeb1b012155ef
/ntc_rosetta_conf/usr_datastore.py
201738bef1e9d1f63cecf9c45559e4d5b2c7deac
[ "Apache-2.0" ]
permissive
networktocode/ntc-rosetta-conf
ada2356f9e717a9688300842dd613a9021a78456
06c8028e0bbafdd97d15e14ca13faa2601345d8b
refs/heads/develop
2021-09-26T13:02:30.495809
2019-08-14T15:53:25
2019-08-14T15:53:25
191,575,862
5
1
Apache-2.0
2021-09-16T15:04:24
2019-06-12T13:24:51
Python
UTF-8
Python
false
false
86
py
from jetconf.data import JsonDatastore class UserDatastore(JsonDatastore): pass
[ "dbarrosop@dravetech.com" ]
dbarrosop@dravetech.com
69352d67a7e884287a108ad00b3c4c7777b0a00a
8edd5d112cd34f229d4e00096d55c16df46ce81c
/WeatherDashboard/settings.py
d2a155c8c6a7bedde0f98c5c44eb2181503ba323
[]
no_license
vinaykakanuru/WeatherDashboard
2cd29ca4cd332e55f30f0aac652fdecf141a80a9
a2a2b485946d4fe823450086c84c16a81bdd72d2
refs/heads/main
2023-03-07T04:42:10.946995
2021-02-20T14:41:35
2021-02-20T14:41:35
340,676,472
0
0
null
null
null
null
UTF-8
Python
false
false
3,223
py
""" Django settings for WeatherDashboard project. Generated by 'django-admin startproject' using Django 3.1.7. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ fro...
[ "kvinaykumarreddy1995@gmail.com" ]
kvinaykumarreddy1995@gmail.com
a2f5d7d2f8d212d99c9871a3aaaaf73740fd9d75
b99f20a208a06093684a39f0c6346c23a2249909
/codetogether/wsgi.py
663d7f9cc9ba551ee60eb6513528d3d44d13d142
[]
no_license
ritikjaiswal019/CodeTogether
de0e8b4c87477f157ac41391f1f776e4480c8bc2
4e8c53632f7ad63a54c3f515790fedc7bad3d923
refs/heads/main
2023-06-19T04:48:46.184523
2021-07-18T18:51:40
2021-07-18T18:51:40
374,905,983
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" WSGI config for codetogether 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
[ "ritikjaiswal019@gmail.com" ]
ritikjaiswal019@gmail.com
47ea363768f04b52b108cc1522373cc3a8f7d61a
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/BAY-STACK-NOTIFICATIONS-MIB.py
9fe6dd9a7f0564c4dc72d5d5ffd161421012167e
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
19,230
py
# # PySNMP MIB module BAY-STACK-NOTIFICATIONS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BAY-STACK-NOTIFICATIONS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:19:14 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python versio...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
d4b561e512a4989690288120a874578673b81f51
436dfdb4ea52eb5d5f6f18cfd6573b5fe44ba2cb
/myvenv/bin/isort
576638f6c74c0b85b9732a3e2c8461e1ebca114c
[]
no_license
tnaswin/wisdom-pets
8083cd1e239007af3a5bd2d32d11fcaa7ecfb76a
ee2acff6d9eb2e3bf427cdd18613ca6a9287ae1f
refs/heads/master
2022-07-14T12:39:45.200932
2020-05-15T11:00:21
2020-05-15T11:00:21
262,817,261
0
0
null
null
null
null
UTF-8
Python
false
false
264
#!/home/aswin/Documents/Aswin/Development/learn-django/myvenv/bin/python3 # -*- coding: utf-8 -*- import re import sys from isort.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "tnaswin007@gmail.com" ]
tnaswin007@gmail.com
9f1337840235d5e135d72763e66000e0dd29022f
8e088033bd7c41988cc05aa2487ec4ac207e8268
/rust/src/python/libnmstate/nmpolicy.py
8fe4c498bb957f04a217778aeff82e77c9287774
[ "Apache-2.0", "LGPL-2.1-only" ]
permissive
nmstate/nmstate
43f513c289100c602370da7f73b4ab3a8be37c81
6baaa5ae5679f14bcec1791d43fb4080f73bb4e9
refs/heads/base
2023-08-31T01:26:06.985543
2023-08-24T11:18:17
2023-08-25T07:20:04
132,556,280
224
77
Apache-2.0
2023-09-10T08:47:13
2018-05-08T05:02:22
Rust
UTF-8
Python
false
false
217
py
# SPDX-License-Identifier: Apache-2.0 import json from .clib_wrapper import net_state_from_policy def gen_net_state_from_policy(policy, cur_state): return json.loads(net_state_from_policy(policy, cur_state))
[ "fge@redhat.com" ]
fge@redhat.com
278beccd4959f7b5d2b6bd3011a01f60c47f08e7
3f8de52ba41a7abb4a8b222908f98747d13e1afa
/rlpy/stats/_stats.py
13b84d0d9773808baa5d5c273610176409964df4
[ "ISC" ]
permissive
evenmarbles/rlpy
9c6b570ca3117d2171a897e06ec6deef8fdd918a
3c3c39a316285ca725268e81aef030e5c764f797
refs/heads/master
2016-08-11T06:50:19.679495
2016-03-12T22:04:05
2016-03-12T22:04:05
53,755,316
1
0
null
null
null
null
UTF-8
Python
false
false
12,387
py
from __future__ import division, print_function, absolute_import # noinspection PyUnresolvedReferences from six.moves import range import numpy as np # noinspection PyPackageRequirements from sklearn.utils.extmath import logsumexp from ..auxiliary.array import nunique __all__ = ['is_posdef', 'randpd', 'stacked_randp...
[ "ajackson.us@gmail.com" ]
ajackson.us@gmail.com
4455cb72e96eb201ce3bdde483934c9c4f9dfda3
54b10fbb396bcf991d349dda4e60755cb729abc5
/4_ML_models/DecisionTree2.py
0ab910cbbdb275add78804d59aedbcae0a35add4
[]
no_license
Fan-Wang-nl/ML_Course
6fe8bb8cca6fd586049d39dae6b1f0bd4b0b4beb
8a2290015336f64c388befa467fd069966daf03b
refs/heads/master
2020-09-02T06:31:27.993670
2020-06-28T09:27:49
2020-06-28T09:27:49
219,156,323
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
from sklearn.tree import DecisionTreeClassifier from sklearn import datasets from sklearn.model_selection import train_test_split iris = datasets.load_iris() x = iris.data y = iris.target train_x, test_x, train_y, test_y = train_test_split(x, y, test_size=0.3, random_state=3) dt_model = DecisionTreeClassifier() dt_m...
[ "buaawangfan@gmail.com" ]
buaawangfan@gmail.com
ec86d5a0c5bcbc3d96b339302624c3c3dc1ce497
da7ac09704fdb734731aef4b9a43f083a9c41dd6
/src/download_tweets.py
1c87120e47210c79b23d181e81db5eaa85e8dd85
[]
no_license
covix/laughing-computing-machine
400a73c7fcee0c5bbd978c366a05bd95e8b6df1d
a6dd682ce51db75f31415619c14abb0df6d2d550
refs/heads/master
2021-03-22T03:07:19.109405
2017-03-21T20:13:45
2017-03-21T20:13:45
76,380,810
0
0
null
null
null
null
UTF-8
Python
false
false
3,163
py
import sys import jsonpickle import os import tweepy import time from time import gmtime, strftime, strptime, mktime from datetime import datetime, date import numpy as np import glob from settings import * def download(query, output_folder='.'): lang = 'en' since = '2016-10-27' tweetsPerQry = 100 # th...
[ "luca.coviello@gmail.com" ]
luca.coviello@gmail.com
924f0a27d455b01da2672634bae9046e908394c2
cead312342b4436fc02c45394c148581bbcef0d3
/problem-010/primes-sum.py
14b16fa402af3b43db4929c99830bddf0ae02143
[]
no_license
johnboy5358/project-euler
0ccd17256a163d9f5607b36b0829372968671f78
f59c859d50ecfea128019e583805d972ff3e3870
refs/heads/master
2020-03-14T17:34:42.377077
2014-05-02T17:01:25
2014-05-02T17:01:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
496
py
# Summation of primes # Problem 10 # The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. # # Find the sum of all the primes below two million. from math import sqrt def is_prime(number): for x in range(2, int(sqrt(number)) + 1): if number % x == 0: return False return True def primes_sum(until): #...
[ "brunopsanches@gmail.com" ]
brunopsanches@gmail.com
5be9260be1d35c3ec39dee9d9998e130a94cb8c9
b0928c989560268e4163258aa2ff0dc604450377
/questions/views.py
f0e92c1fb5396d426d26086746b6db1de9653950
[]
no_license
Amandeep18-tech/Quizapp
0f65a805057542f5ea3158b660e227415a051c16
d3b589f792131c327a4dbc1a5898e783794fde97
refs/heads/master
2023-06-27T18:34:26.896584
2021-07-28T11:15:49
2021-07-28T11:15:49
326,179,201
0
1
null
2021-01-13T11:36:45
2021-01-02T12:34:43
Python
UTF-8
Python
false
false
6,115
py
from django.utils import decorators from django.views.generic import ListView from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import get_object_or_404 from django.utils.decorators import method_decorator from django.shortcuts import HttpResponseRedirect, reverse from datetime import date...
[ "amandeep@yodaplus.com" ]
amandeep@yodaplus.com
e7289fa1f549284d7e98f8964c2d31047a9bc6da
7c2c36ebf1a28a1b3990578bb59883d0a5fe74e6
/turbustat/tests/test_pdf.py
3ab83d5028113dcd19cf5de8be96265696ed77af
[ "MIT" ]
permissive
hopehhchen/TurbuStat
1ebb6dbdd9e80fcacc0e4ed75359909a1bad8a4d
3793c8b3a6deb4c14b1388b5290a21d93f1697cf
refs/heads/master
2020-07-09T23:58:07.035643
2015-06-08T14:43:38
2015-06-08T14:43:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,371
py
# Licensed under an MIT open source license - see LICENSE from unittest import TestCase import numpy as np import numpy.testing as npt from ..statistics.pdf import PDF, PDF_Distance from ._testing_data import \ dataset1, dataset2, computed_data, computed_distances class testPDF(TestCase): def setUp(self)...
[ "koch.eric.w@gmail.com" ]
koch.eric.w@gmail.com
c5e3e27748215ba1bf4e3dce156218b5b8e3bc26
de90103b3a3d021082efc358610a5d5164a91764
/OTHER/song_threading.py
c7c4120e32051cdf2701e695843944608a75994a
[]
no_license
anish-krishnan/Air-DJ
d28a3664a750056c3ec84adfecb557da6f9a62a6
0866b88a684f1983dbe1b6311a708ead29e44157
refs/heads/master
2020-03-12T07:42:15.174491
2018-04-23T19:30:04
2018-04-23T19:30:04
130,166,873
0
0
null
null
null
null
UTF-8
Python
false
false
3,285
py
import threading, random from Tkinter import * #pyAudio import _portaudio import pyaudio import wave from array import array from struct import pack #pydub import pydub from pydub.playback import play from pydub import AudioSegment def init(data): # load data.xyz as appropriate pass def mousePressed(event,...
[ "anishkrishnan@Shanmughavs-MBP.wv.cc.cmu.edu" ]
anishkrishnan@Shanmughavs-MBP.wv.cc.cmu.edu
83ac34c589d3f1a44e27f059c40cebcdad36f63d
b54d6a18bc5e86462c1f085386bc48065db5851c
/targetDF.py
0c442099cfd980035cfa5306b1d087212fa72489
[]
no_license
zoshs2/Percolation_Seoul
5b5b8ebabe186fbc9e265fc190c3d0641e196517
69c0aa99d1f7a2fb9259681a1ed63794cbe5ea5c
refs/heads/main
2023-07-28T20:50:13.393765
2021-09-28T13:25:31
2021-09-28T13:25:31
390,687,544
1
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
import pandas as pd def targetDF(dataset, YEAR, MONTH, DAY, HOUR=False, MINUTE=False) -> pd.DataFrame: ''' Return pd.DataFrame with only data that we concerned. Example ------- In[0] date_dataset = targetDF(dataset, 2021, 2, 1) In[1] date_dataset = extract_ratio_df(date_dataset) # Generate a r...
[ "zoshs27@gmail.com" ]
zoshs27@gmail.com
3170c04749e484a7ed6bc52dc2aac6b927bdd8f1
29790e8faa702dc52ff2ebf905d15ff8c6cfcda9
/pyvows/assertions/inclusion.py
fc1d51ea05f322686a78849c17c541a6ad3d37a1
[]
no_license
scraping-xx/pyvows
0227a2b3f16bcf562acb48902ed3c58d6e616791
b03e9bed37b93f24eca1dd910c05e78e81969ca2
refs/heads/master
2020-12-01T01:15:09.487368
2011-08-16T03:36:57
2011-08-16T03:36:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # pyVows testing engine # https://github.com/heynemann/pyvows # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 Bernardo Heynemann heynemann@gmail.com from pyvows import Vows @Vows.assertion def to_include(topic, exp...
[ "heynemann@gmail.com" ]
heynemann@gmail.com
5225cec94bbd84fd01b937451ec2e442f10c6b36
64aadced1900d9791099228fa91995c2f8444633
/python/prices.py
1865f0e7dfe64d2745c9ef79321c2b43b4be11fc
[]
no_license
ctmakro/playground
821a8c668b58ebd81cd48309e6f4c6cd16badea7
5d6e8e528f1913b6089322ef388213cec5264ae1
refs/heads/master
2020-12-25T01:51:12.041611
2020-07-14T19:17:24
2020-07-14T19:17:24
57,165,089
0
0
null
null
null
null
UTF-8
Python
false
false
1,044
py
wg = '''<!-- TradingView Widget BEGIN --> <div class="tradingview-widget-container"> <div class="asdf">{}</div> <div class="tradingview-widget-container__widget"></div> <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-mini-symbol-overview.js" async> {{ "symbol": "...
[ "ctmakro@gmail.com" ]
ctmakro@gmail.com
cc978a373d559f39eb6f5ff62ad07a09944bbb05
c06bbcdc6ca88988faa091056b7a8482454bed70
/MinimizeNoOfUniqueCharacters.py
949446120c7421b1ea085f9a66beea00b206c48e
[]
no_license
Pranjal1991-arch/Pranjal_WeatherAPI
4a9629d1f357271b02650deec29daeebef9c3274
8a889cfbac325a096a175059fe98a0d545182923
refs/heads/master
2022-08-01T01:54:57.523588
2020-05-20T17:00:31
2020-05-20T17:00:31
265,625,607
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
# Python code to print the string with minimum number of unique characters list = ['abc', 'qr', 'with', 'boywp', 'cabled'] print("Original List is:" + str(list)) dict = {i: len(set(i)) for i in list} pranjal = min(dict, key=dict.get) print("The string with minimum unique characters is:" + str(pranjal))
[ "gogoipranjal280@gmail.com" ]
gogoipranjal280@gmail.com
2b85ef7d80a4c8b70fdd1fc40484b8bede78a380
8a5da2aed1d1dff99bb511eea6a1cd835bec31cb
/deprecated/032/python/032.py
30451916adc99b30670108c5046166a58c2de9e3
[]
no_license
EricRovell/project-euler
653e7eefa517627f2b9a57e596ce93a838c045cf
fd7b47238cb3d9f581a792d525a416f941087002
refs/heads/master
2023-05-26T02:56:39.745587
2021-06-13T15:11:55
2021-06-13T15:11:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
941
py
# checks if the given number is pandigital for the given range of numbers [left, right] def is_pandigital(number, left, right): digits = {str(digit) for digit in range(left, right + 1)} for digit in str(number): if digit in digits: digits.remove(digit) else: return False return True if len(digits) == 0 el...
[ "ericrovell@gmail.com" ]
ericrovell@gmail.com
60cc8e4fbb8109e2193b0fda9b98ad46979787c9
419c5c969fb9662a7e859bbb106b060564e768c8
/problems/0206.reverse-linked-list/solution.py
b2e93db2769dd9431aaee5c39c67bc229879a51e
[]
no_license
SmoothMaverick/LeetCode-in-Python
5c3064717e25f22405704f1f0e290c2723d2c42c
e0488979331133a8a29e389e3ad632b9b3ba6e3d
refs/heads/master
2021-06-23T11:39:40.869419
2021-01-22T23:50:14
2021-01-23T01:42:39
182,631,478
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
class ListNode: def __init__(self, x): self.val = x self.next = None class Iterative: def reverseList(self, head: ListNode) -> ListNode: curr = head rev_head = None curr_next = None while curr != None: curr_next = curr.next curr.next = r...
[ "5660582+SmoothMaverick@users.noreply.github.com" ]
5660582+SmoothMaverick@users.noreply.github.com
004aea04e057d0b901f90d80584e3a1b4f9ef2d9
5ba36aea5750d5b828ed5c79aa497c7e37ea5bbc
/muaban/middlewares.py
9736adebfe2fea66e25768212a8583ce0df76287
[ "MIT" ]
permissive
miamor/HouseScraper
ac19277297339bcc1fe445a640429de027a6982a
35515ad89e3658c76e59cdd9f7512c7f3510e3f8
refs/heads/master
2021-07-23T01:31:22.825375
2017-10-31T17:14:23
2017-10-31T17:14:23
109,028,478
0
0
null
null
null
null
UTF-8
Python
false
false
1,880
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class muabanSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy ac...
[ "miamorwest@gmail.com" ]
miamorwest@gmail.com
7bebc72f0d2fad3b2561a09cf189327f7e627143
74d3674b94186c5a0462049797b15a210ae0871d
/backend/app.py
61035ca0013096bb784f901b770a1bcb062140eb
[ "MIT" ]
permissive
muhammetssen/dipSetup
6dd3a6cc0a8d6384f432470ed5442e4c7b047913
1b4e00cc023fae99e1a5988d3836a379f8c496af
refs/heads/main
2023-06-24T17:39:43.672461
2021-07-21T09:05:45
2021-07-21T09:05:45
388,057,192
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
import sys import os # run from root dir sys.path.append(".") def register_admin(): from backend_proxy.db.mongoDB import MongoConn, MongoDB import bcrypt password = "DIP_DEMO_ADMIN_PASS" # TODO: os.environ["DIP_DEMO_ADMIN_PASS"] pass_hashed = bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt())...
[ "enmuhammet23@gmail.com" ]
enmuhammet23@gmail.com
96a91761ad984b21cf44ecdfb8fd9d73222bffb5
30566c1ef1addabec6527fc7f3be7a1980bfba9a
/video_code/tests/unit/models/user_test.py
b83557dae4ad6957c1600e2f3316fa7c9d02452d
[]
no_license
PAKalucki/store-rest-api-test
7eae71ece4b191aee955bc4f02e43f585f766ad3
274249e3f8605af8560ff21e19f4f26cee4c38fa
refs/heads/master
2020-03-16T16:25:49.910872
2018-05-09T17:06:22
2018-05-09T17:06:22
132,783,702
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
from video_code.models.user import UserModel from video_code.tests.base import BaseTest class UserTest(BaseTest): def test_create_user(self): user = UserModel('test', 'abcd') self.assertEqual(user.username, 'test', "The name of the user after creation does not equal the c...
[ "jelitospudziszin@gmail.com" ]
jelitospudziszin@gmail.com
4251ed99e6c0aed660ad192fe39644c5f8348a6c
2f87f95bbaa7d50dd55b19af9db586f28d22642b
/career/apps.py
2a2e0fa76f236605cba97aed670b6127b63eabde
[]
no_license
willyborja95/ApiPaginaWeb
0bf136961c320a5edca4f857d95bac1d316db09b
dda607cda39fe3d4aaceb40d63bc20b91ebb6efd
refs/heads/master
2022-12-11T05:32:12.160881
2022-12-08T15:04:09
2022-12-08T15:04:09
215,600,253
2
0
null
2022-12-08T15:10:16
2019-10-16T16:59:35
Python
UTF-8
Python
false
false
104
py
from django.apps import AppConfig class CoordinatorAppConfig(AppConfig): name = 'coordinator_app'
[ "renatojobal@gmail.com" ]
renatojobal@gmail.com
e3af53fba43b0b71ce8efca13bf2a89e6455544d
cea45595be3e9ff0daa09b4443c7220368e5c512
/catalog/forms.py
d17b59b3d29f1d2a4beed6697d06d27d5e996bb9
[]
no_license
VladyslavHnatchenko/mdn
7b65ecf2e73eff2533aae4ffe5ad6a5a928750d9
f74736aeaf8c4b8ca51889c1a00571cb07f6dba2
refs/heads/master
2020-04-18T02:16:08.622726
2019-02-15T13:37:49
2019-02-15T13:37:49
167,149,898
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
import datetime from django import forms from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ class RenewBookForm(forms.Form): renewal_date = forms.DateField(help_text="Enter a date between now and" " 4 weeks (defa...
[ "hnatchenko.vladyslav@gmail.com" ]
hnatchenko.vladyslav@gmail.com
23b5f6e44bfa76c62daa7cde95d1d6423198972e
bac5acee40eb1ae4a67e2e4c5b6b7d2dee8a56b2
/2020年/9月17号/page_object.py
cd3fe7024b64b2f85eb6b7ab935d262f07077ebf
[]
no_license
mzp604183841/LearningSelenium
35399baa7491f253eaff1d9d6432ddc60d8a2dc9
44386de1e53ef4dbe717e1ba208fd638b65c2d74
refs/heads/master
2023-02-13T22:08:22.788387
2021-01-12T05:59:07
2021-01-12T05:59:07
267,318,156
0
0
null
null
null
null
UTF-8
Python
false
false
1,777
py
from selenium import webdriver from selenium.webdriver.common.by import By import time class Page(object): login_url = 'http://www.126.com' def __init__(self, webdriver, base_url=login_url): self.driver = webdriver self.base_url = base_url self.timeout = 30 def on_page(self): ...
[ "604183841@qq.com" ]
604183841@qq.com
444b728370c2918aaedc996832134d855adea7c4
9aa9af3f83a955c188eb1b5e6b92328f653988cd
/Work89_人工神经网络/Work7_2 copy.py
7a1f24b27133884366f693b50747d5562291ee23
[]
no_license
EkZzz/NN
a366f03532c98c9a1c8f17cec64469074575b398
cfec233ea1454d9690f6216f7744391f94e273bf
refs/heads/master
2023-06-15T17:08:07.620729
2021-07-19T13:12:19
2021-07-19T13:12:19
387,462,864
0
0
null
null
null
null
UTF-8
Python
false
false
2,541
py
import tensorflow as tf import pandas as pd import numpy as np import matplotlib.pyplot as plt TRAIN_URL = "http://download.tensorflow.org/data/iris_training.csv" train_path = tf.keras.utils.get_file(TRAIN_URL.split('/')[-1], TRAIN_URL) TEST_URL = "http://download.tensorflow.org/data/iris_test.csv" test_path = tf.ker...
[ "1746133694@qq.com" ]
1746133694@qq.com
c736c6c24d2e0d2f2e77cce6d33de185e00638b8
2e13f4af4f00a9de41883e6e50f220ba161278cc
/Basics II/IntroOOP.py
468f9f0b99232455855d954918c76c08ea4a5a5f
[ "MIT" ]
permissive
marinaoliveira96/python-exercises
53c7964ffbfd58fbc1477eba2dffcdf9f50182ce
13fc0ec30dec9bb6531cdeb41c80726971975835
refs/heads/master
2023-02-16T18:52:29.042708
2021-01-06T19:44:38
2021-01-06T19:44:38
322,955,205
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
class Car(): wheels = 4 doors = 4 windows = 4 seats = 4 porche = Car() #instanciate porche.color = 'Red' #properties ferrari = Car() ferrari.color = 'Yellow' print(ferrari.color)
[ "marina09oliveira@gmail.com" ]
marina09oliveira@gmail.com
59f47f5e4ae23a1d04ce88c8b002b9a486c1a0f7
b8d056355281d031915b7350c365321abaa2bdab
/app_python/aula11_personalizar_excecao.py
5d5b0d0342d8814a5390266700d347db1dbbf7a8
[]
no_license
ruancortez/aulas_python
6807811b896671681f1881632a83fc7966971194
a2462c05d175344248cb9ef31ccea34599cbf76d
refs/heads/master
2022-11-30T19:21:16.065974
2020-08-09T22:27:28
2020-08-09T22:27:28
286,325,847
1
0
null
null
null
null
UTF-8
Python
false
false
542
py
class Error(Exception): pass class ImputError(Error): def __init__ (self, message): self.message = message while True: try: x = int(input('Entre com uma nota de 0 a 10: ')) print(x) if x > 10: raise ImputError('Nota não pode ser maior que 10') elif x ...
[ "ruancortez@creci.org.br" ]
ruancortez@creci.org.br
371e2253a9dfed238c59e6c0d05d3ff759ba2f77
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/coverage-big-1134.py
ddbf3edc9d3761abdb1aadc07c33a7eef98fd2b1
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
13,176
py
count:int = 0 count2:int = 0 count3:int = 0 count4:int = 0 count5:int = 0 def foo(s: str) -> int: return len(s) def foo2(s: str, s2: str) -> int: return len(s) def foo3(s: str, s2: str, s3: str) -> int: return len(s) def foo4(s: str, s2: str, s3: str, s4: str) -> int: return len(s) def foo5(s: str,...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
90146830bfe90f1fccd9b4b89f96401860d91053
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part009372.py
79176e5034b71cfcfb2a2bf71973eb4b7665d2c3
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,292
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
b708556634bef720d9b495751dc8e9907a72d1e2
aa68a22d6403ffb93e89b828c075828960dcd7e9
/app/smalltool/modifier.py
dcddab194fd8cedb05d57a90caecb42e366033e5
[]
no_license
daigouwei/Python3
96b2f78c3471b88658470a0533659ae1aba4aa68
29cfa2ba334597f301abad53f15f3ceb40f94245
refs/heads/master
2020-12-23T20:30:08.507298
2017-11-09T09:20:08
2017-11-09T09:20:08
92,568,427
2
0
null
null
null
null
UTF-8
Python
false
false
1,293
py
#!/usr/bin/env #-*- coding:utf-8 -*- import subprocess import os import re def autoAlter(): folder = input('请输入文件夹路径: ')#'/Users/daigouwei/Downloads/两生花' name = input('请输入要修改成的电影名字: ')#'两生花' formatt = input('请输入电影格式: ') #'mp4' if not os.path.isdir(folder): print('没有该目录,请查实...') return ...
[ "daigouwei@gmail.com" ]
daigouwei@gmail.com
6399568472f674133ea232ed648f413406c0c095
fd15d1a9d0fdf6908bb7c8d1d4490bb6cf817d1f
/CareerFlash/migrations/0012_auto_20190918_0307.py
4a906d6dd1216a9a77ebe27977af08c7ec4755fd
[]
no_license
stanleysh/Career-Flash
8bca183ae2576c0aae7dbdb62c2abd60e8890e6d
6e062afb5ef8959141475e1d73af431a0cf047b4
refs/heads/master
2020-08-05T06:23:26.427944
2019-09-19T17:34:23
2019-09-19T17:34:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
# Generated by Django 2.2.5 on 2019-09-18 03:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('CareerFlash', '0011_orginization'), ] operations = [ migrations.AlterField( model_name='orginization', name='name', ...
[ "adam.cote66@gmail.com" ]
adam.cote66@gmail.com
66b447b3b55a5fce4e6553f39ecaa2294b17bcc3
c27c7de35f28dfbb899b06f8493df67f4ff9c175
/多线程测试HKR.py
1523f787f8bc8f193181a69e6f851ff2c597d970
[]
no_license
lanpangzi607/store1
04e000969bd6cf5eaaa405b04834fb86d1a983c1
a5c5c58739741c7f196676bc70c026aaad258109
refs/heads/master
2023-08-24T21:08:45.473206
2021-10-29T03:48:14
2021-10-29T03:48:14
405,877,046
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
import threading from HTMLTestRunner import HTMLTestRunner import unittest import os from threading import Thread class test(threading.Thread): pattern = '' file = '' def run(self) -> None: tests = unittest.defaultTestLoader.discover(os.getcwd(),pattern=self.pattern) runner = HTMLTestRunner....
[ "noreply@github.com" ]
noreply@github.com
7e8794eac421517bbadf351d3e6e64d9e0f0d469
17f68981e00001d9c678b99568dead343b5bb3ec
/particles/Particle.py
722a90493fe528945fc29cd782d6aca2a40978b2
[]
no_license
KodyVanRy/Particles
89e3cd50af7eff6cd28e018acaee251081ee9286
bb4e29e8b17eea3ad7e16868394bcb23f50895ff
refs/heads/master
2021-05-29T10:04:46.675586
2015-04-05T05:32:29
2015-04-05T05:32:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,280
py
__author__ = 'Kody' from pygame.sprite import Sprite from pygame.surface import Surface from pygame.locals import SRCALPHA import time from pygame import transform import random # Constants used to make code more readable and easier to edit IMAGE = "image" MAX_SIZE = "maxsize" MIN_SIZE = "minsize" ROTATE = "rotate" G...
[ "duhvanry@gmail.com" ]
duhvanry@gmail.com
937d8e2db74f664cc00fc23719080f6c4f09d024
a2d2f985f0bf6b65ae61148f1d4f9be7d8371f4b
/Problema/scp/repair/reparaTest.py
cf92d86dd72c538ddfb8e951375a9637377ee59a
[]
no_license
mauriceaux/solverMH
717b386ca9521163e7b1fee17d0ae5761e9958a7
bf7b2eb63bae6c09890fcbdfe1b65cf77e0e71ab
refs/heads/master
2022-12-24T08:44:38.953388
2020-09-29T17:52:11
2020-09-29T17:52:11
283,625,079
1
0
null
null
null
null
UTF-8
Python
false
false
813
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 21 22:19:40 2019 @author: mauri """ import readOrProblems as rOP import solution as sl import heuristic as he import numpy as np file = '/home/mauri/proyectos/mg/semestre1/autSearch/project/gso/instancesFinal/scpnre1.txt' pesos, matrix = rOP.genera...
[ "mauricio.castillo.delpino@gmail.com" ]
mauricio.castillo.delpino@gmail.com
5380054ff75f6b112875d44bda6bc4a922d3fd8f
a70a84c1312dee9a0b5139d7cbd69505373013a8
/django_server/RobotKiller/tasks.py
ca440d1e580d8d1249e56409db7770ae96eec397
[ "Apache-2.0" ]
permissive
strongbraver2017/deep_stack
df0c941b8c3f661605dc36a231ff361aee3aa0ba
d75087384b491276084c7dd2b68b35cba8434785
refs/heads/master
2021-05-07T18:17:54.552872
2017-05-18T08:47:37
2017-05-18T08:47:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,115
py
# -*- coding: utf-8 -*- """ @file: tasks.py @author: lyn @contact: tonylu716@gmail.com @python: 3.5 @editor: Vim @create: 3/29/17 2:20 AM @description: 用于反爬虫的一些异步任务,主要是刷新数据表中某些临时记录。 """ from __future__ import absolute_import, unicode_literals from celery import task as celery_task from .model...
[ "tonylu716@gmail.com" ]
tonylu716@gmail.com
cd622ab7f0a0b5f79c0dad734ebca28f26e92146
3c24c5d4e7c97d4d1ffd65d8cb538d13eb50c629
/__main__.py
afc7b56ee912b2a5309d18ef195f68e0b5c6ab97
[]
no_license
lemonez/air-emissions
bb12304fe106e6dd5ffeb3e6899955f9f2f0dfe0
89d1900bdf2c662dbed63024dc1867d1693b819a
refs/heads/master
2022-12-01T14:52:28.319654
2020-08-21T00:50:54
2020-08-21T00:50:54
243,612,811
0
0
null
null
null
null
UTF-8
Python
false
false
8,650
py
# global import external libraries import pandas as pd # module-level imports import config as cf def main(): """main script controller function""" import os, time # unpack arguments as dict and push back to config module args_dict = vars(get_args()) #if args_dict['log_suffix'] ...
[ "ecitron@wclyn-linux1.environcorp.int" ]
ecitron@wclyn-linux1.environcorp.int
9ad911452b74aa4e413cead0138c326cda4c69f4
92e5edcd4cf7621a62548a40462b6e813821c571
/Redundantdegree.py
cffba2e9c0ba3c61b6ec3647cd1388acfb26034a
[]
no_license
wz1900/one-many
62f027478a16d4506fd65c7b60745250be04e85f
59320fd241863cd18dea47c281c136b2c237ca59
refs/heads/master
2021-01-10T01:17:44.917528
2015-10-23T15:24:53
2015-10-23T15:24:53
43,594,396
0
0
null
null
null
null
UTF-8
Python
false
false
2,321
py
from TargetProvenance import readProvenance ; from BasicFunction import get_tuplelist_traces, get_edge_list, get_targets_karate ; # raw method def get_redundant_degree(mytrace, otherTargets): degree = 0 ; for target in otherTargets: flag = 0 ; for temp in target.prolist: mytraceset ...
[ "root@node13-100.(none)" ]
root@node13-100.(none)
d1c15709092c258b430c6ded3da4b80b379da6d7
bb1e0e89fcf1f1ffb61214ddf262ba327dd10757
/plotly_study/validators/scattergl/marker/__init__.py
5076833461f161bf0707c189a46671576aba5327
[ "MIT" ]
permissive
lucasiscovici/plotly_py
ccb8c3ced89a0f7eccf1ae98551fa712460033fe
42ab769febb45fbbe0a3c677dc4306a4f59cea36
refs/heads/master
2020-09-12T05:43:12.363609
2019-12-02T15:13:13
2019-12-02T15:13:13
222,328,180
0
0
null
null
null
null
UTF-8
Python
false
false
35,078
py
import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="symbolsrc", parent_name="scattergl.marker", **kwargs ): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_na...
[ "you@example.com" ]
you@example.com
841cd9e9d8193c58fdc4c4845d4a09b81a7bd904
2b8e7eadb920e96c75697880a9c5461aa8e0c5ed
/nabu/processing/processors/feature_computers/fbank.py
77c4ebb1d59833e9ebe2c1032e1545f7cb99d2f4
[ "MIT" ]
permissive
ishandutta2007/nabu
fb963ed3cd34ee340014e0c1e77927c838bba0ad
313018a46f68cec1d4a7eb15b8b1cf68111a959c
refs/heads/master
2020-04-03T04:57:57.911576
2018-12-14T11:02:52
2018-12-14T11:02:52
155,029,958
0
0
MIT
2018-12-06T18:20:12
2018-10-28T02:59:31
Python
UTF-8
Python
false
false
1,446
py
'''@file fbank.py contains the fbank feature computer''' import numpy as np import base import feature_computer from sigproc import snip class Fbank(feature_computer.FeatureComputer): '''the feature computer class to compute fbank features''' def comp_feat(self, sig, rate): ''' compute the fe...
[ "vincent.renkens@esat.kuleuven.be" ]
vincent.renkens@esat.kuleuven.be
3ebe5f1680c8def90fc1a2e88c430d6e45775dc0
3d32ffe2d942694ffbfd6042bf80556def4c40b7
/word_search.py
6473bbc2362e121760c466b6d6df2ddbd9d6523b
[]
no_license
aiiilii/py_code
5f26951027120acc0a61c5a2a6701df70543d050
59ff08d75333176d649f0f89988fa27214612cb1
refs/heads/master
2022-11-25T21:25:57.238575
2020-08-03T17:38:39
2020-08-03T17:38:39
277,424,852
0
0
null
null
null
null
UTF-8
Python
false
false
1,120
py
from typing import List class WordSearch: def exist(self, board: List[List[str]], word: str) -> bool: if not board: return False self.rows = len(board) self.cols = len(board[0]) self.board = board for row in range(self.rows): for col in range(self.c...
[ "aili.hgong@gmail.com" ]
aili.hgong@gmail.com
cdc243853b5430781b560f6d3f53ceeb14bb4b58
a0447b03ad89a41a5c2e2073e32aeaf4d6279340
/ironic/tests/unit/dhcp/test_dnsmasq.py
64fe46f3393fd13874809d60d2532be93e42bae0
[ "Apache-2.0" ]
permissive
openstack/ironic
2ae87e36d7a62d44b7ed62cad4e2e294d48e061b
ab76ff12e1c3c2208455e917f1a40d4000b4e990
refs/heads/master
2023-08-31T11:08:34.486456
2023-08-31T04:45:05
2023-08-31T04:45:05
10,066,301
411
365
Apache-2.0
2023-07-25T02:05:53
2013-05-14T22:28:24
Python
UTF-8
Python
false
false
5,237
py
# # Copyright 2022 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "sbaker@redhat.com" ]
sbaker@redhat.com
b25344284e08629b574c9ae158dba420ac087648
47a95e194d8df774c415d6d57ad2e4987367528d
/vehicles/vehicle.py
4a49877e3b5d2465e2545e50884790faf96bedab
[]
no_license
kwohl/python-inheritance
e0185648b9441ef6c0672ef930239273373d8707
b52f1890b7592514e1c5868952f425d544de7af7
refs/heads/master
2022-04-22T00:12:23.693760
2020-04-20T01:08:51
2020-04-20T01:08:51
257,136,805
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
class Vehicle: def __init__(self): self.main_color = "" self.maximum_occupancy = "" def drive(self): print("Vroooom!") def turn(self, direction): print(f"The vehicle has turned {direction}.") def stop(self): print("The vehicle has stopped.")
[ "ktwohl@gmail.com" ]
ktwohl@gmail.com
9c65ddf63bf600bbb544a5128c4c08c04cfa4145
791d7e411ec442786a40ecf6e911ff7b2dd1c261
/tests/garage/tf/algos/test_batch_polopt2.py
c5010d678834f50cc709f1d7f3b3fee0c63c1645
[ "MIT" ]
permissive
adibellathur/garage
4153e765134e70af89042fe76c9765d7f7dbccb4
8394f0cf2b77c0a5b3a7b1ea977fa6cb3f9df0ca
refs/heads/master
2021-03-03T07:30:16.201031
2020-03-06T23:54:25
2020-03-06T23:54:25
245,942,862
0
0
MIT
2020-03-09T04:20:43
2020-03-09T04:20:42
null
UTF-8
Python
false
false
8,858
py
from unittest import mock import numpy as np from garage.np.baselines import LinearFeatureBaseline from garage.tf.algos import BatchPolopt2 from garage.tf.baselines import GaussianMLPBaseline from garage.tf.envs import TfEnv from garage.tf.experiment import LocalTFRunner from garage.tf.policies import CategoricalLSTM...
[ "noreply@github.com" ]
noreply@github.com
e5c71a0cecf59d7144920a04c3f3d69e2191b512
5c7f4f3b3c8f202646bbaac6213aa398aa6fcdb1
/hw6/icp.py
f051a82ce04995aa6d43e49953fafcad94c5a91d
[]
no_license
zengweiyi1994/gvv-hw
dcd9717423649ec643d4a65beac8a4d388068097
f56f2baad887050221332c2423c76cecd163f2af
refs/heads/master
2021-01-15T11:20:46.830832
2016-03-07T02:32:44
2016-03-07T02:32:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,813
py
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import cv2 from sklearn.neighbors import NearestNeighbors as NN def latlonelev_to_xyz(points): EARTH_R = 6371004 #r of earth in meters if len(points.shape) == 1: points = points.reshape((-1, 3)) lat_rad = np....
[ "lostleaf@me.com" ]
lostleaf@me.com
da5ea17463b887c3acbf98ecc02eb5c23d360b40
cfb8b2403d64ca6aa2a336c67159144c55bf58e8
/module4/5_9_Excersises.py
48d38879f313c3a8a993a341cc34f4a8d6a2cc1d
[]
no_license
DomfeLacre/zyBooksPython_CS200
77bd43f89fbeec7589e50842365100cc9ce284f8
959dcc12dec808b39a42a25adee69dbf152bac96
refs/heads/master
2020-08-06T22:51:05.160759
2018-05-15T01:38:38
2018-05-15T01:38:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
865
py
empanada_cost = 3 taco_cost = 4 user_money = int(input('Enter money for meal: ')) num_diners = int(input('How many people are eating: ')) max_empanadas = user_money // empanada_cost max_tacos = user_money // taco_cost meal_cost = 0 num_options = 0 for num_tacos in range(max_tacos + 1): for num_empanadas in rang...
[ "thewickk@thewickk.com" ]
thewickk@thewickk.com
9c3603b3147898a39bca1a4753664309945f4886
264c6f1a2202704bbd63b6aa7a658a80d8c6f1c3
/sanctum/ClientMonitor/display/models.py
d8fee65d9a1235972777c62f3ae9aeea31f3ee77
[]
no_license
samiulla123/sanctum
9e3516ddfab7abce525196c8e376a96bbae24e6e
6d4ce505b51bfeff4157acdc9e73d78fff1e28ea
refs/heads/master
2021-08-22T10:30:50.281186
2018-12-22T12:39:55
2018-12-22T12:39:55
154,846,544
0
0
null
2021-06-10T20:56:42
2018-10-26T14:23:59
Python
UTF-8
Python
false
false
2,914
py
from django.db import models import hashlib from django.contrib.auth.models import User from uuid import uuid4 class NetworkStatus(models.Model): time_stamp=models.CharField(max_length=20,null=False) Hostname=models.CharField(max_length=20,null=False) HostIpAddress=models.CharField(max_length=20,null=False) def ...
[ "samiulla@example.com" ]
samiulla@example.com
9d57b09da4b4391784c31591838c0a1d22bae5ab
567feca28e22b7c7bd94a9906f84c6adcff0bbf4
/lists/tests.py
a6ab8c8725b351b459ccb4a7d1eabf3cc59e6bf5
[]
no_license
subliminimalist/ObeyTheTestingGoat
24244861c3c575cf856e43beda36706d5c5ec252
92326c10409e8c1d42bbc1aa8bc468b2bcb16c2d
refs/heads/master
2020-12-20T15:20:50.716999
2020-02-04T17:14:17
2020-02-04T17:14:17
236,121,328
0
0
null
null
null
null
UTF-8
Python
false
false
2,000
py
from django.urls import resolve from django.test import TestCase from django.http import HttpRequest from lists.views import home_page from lists.models import Item class HomePageTest(TestCase): def test_uses_home_template(self): response = self.client.get('/') self.assertTemplateUsed(re...
[ "benrhaas@gmail.com" ]
benrhaas@gmail.com
a9b258e2c573143ebd36f300f43573409fb33c3b
6b2efd7ad059a5e5590c51f97c11d550fbcd0e1b
/conftest.py
6b32d91b7000c813bb35fd2b7cd411d2e1ddd12c
[]
no_license
lumarodrigues/NovaBase
e320fe2d0660fec31acea6e3c61179e26f5c027a
951dd8e3f0a8eabc6520c7ccf5d32572df413dc2
refs/heads/main
2023-04-22T01:40:53.132868
2021-05-04T01:15:36
2021-05-04T01:31:49
341,574,369
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
from projeto import settings import pytest @pytest.fixture(autouse=True) def turn_ssl_rediret_off_for_tests(settings): """ There is no need to place secure=True in all client requests """ settings.SECURE_SSL_REDIRECT = False
[ "rdsluma@gmail.com" ]
rdsluma@gmail.com
ef034d35ea236f21d1a19087ab05e83dd80a2a16
77adfcad98a77d285deace435dbef5e8c85189a4
/Python Fundamentals/Regular Expressions/03_find_occurrences_of_word_in_sentence.py
878bcf33ace3fbfb122b5f12f4fad5cba5b6e307
[]
no_license
BillyDevEnthusiast/Programming-with-Python
8cd72b2a6eec144d1d5294c9e9abf522c33a7b1c
8c8971d1202d486a1c4eec1e70c00321c9c6c933
refs/heads/main
2023-01-06T00:57:26.193171
2020-10-28T14:54:37
2020-10-28T14:54:37
308,001,697
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
import re text = input() word = input() pattern = rf"\b{word}\b" res = re.findall(pattern, text, re.IGNORECASE) print(len(res))
[ "noreply@github.com" ]
noreply@github.com
013144d0925057c41b4f162bf5719a8c68bfacf1
50da1faff8cf2a2cb3fc813cd55fe20ba62339e9
/flipper/bucketing/percentage/linear_ramp_percentage.py
e5017c9aa7846afc9f8afe156cf32d7e7ca0fed3
[ "Apache-2.0" ]
permissive
carta/flipper-client
bba1345269c66569c253680d4c2ed3db144c8d67
8c07bae36279b549625eaa1dd7a293d495332a1f
refs/heads/master
2023-05-25T02:41:14.323629
2023-04-20T17:28:03
2023-04-20T17:42:15
138,798,243
92
19
NOASSERTION
2023-05-13T06:26:07
2018-06-26T21:59:59
Python
UTF-8
Python
false
false
2,469
py
# Copyright 2018 eShares, Inc. dba Carta, Inc. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
[ "adam.savitzky@gmail.com" ]
adam.savitzky@gmail.com
7ff5bfc8722ee1952627a56625b5addaa4d9622d
4dbff391e9474c83668515c995ac75680e8c78cd
/1106-404check.py
f5321ed46ea4611ce1f005ab9413483a9084ceab
[]
no_license
choser89/python-automation-practice
93accf08e622ab0bbb99f15999dc00cc46d99e43
c61a2fe44c696d6f948a9c6b75539f3810f84b1b
refs/heads/master
2021-06-19T03:07:59.135290
2017-06-29T08:38:09
2017-06-29T08:38:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
import sys, requests, bs4 W = '\033[0m' # white (normal) R = '\033[31m' # red G = '\033[32m' # green url = sys.argv[1] res = requests.get(url) res.raise_for_status() soup = bs4.BeautifulSoup(res.text, 'html.parser') anchors = soup.select('a') for anchor in anchors: href = anchor.get('href') if not href...
[ "samkami@icloud.com" ]
samkami@icloud.com