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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
230e3ed27028d62b79c582aac2591230e2b0549c | 2630b4c15aecc7df964f35862a20d16f513f33bf | /read.py | 1af5f8c9884c11a82ee1f9601d2087ed82efbba2 | [] | no_license | tejas01101001/Intro-to-Webd | 7d7f7dc67b88ef1cfd812ce87efc66aa31852786 | 8ce41a33b4403d1cad605d8003427381e552b3af | refs/heads/master | 2022-02-07T13:43:53.726967 | 2022-02-05T12:55:14 | 2022-02-05T12:55:14 | 161,655,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,316 | py | # Read a json file and print it
import json
import torch
from torch.utils.data import Dataset, DataLoader
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from torch import nn
from torch import optim
import torchvision
import torch.nn.functional as F
from torchvision import datasets... | [
"noreply@github.com"
] | tejas01101001.noreply@github.com |
0e61c375d1ae5de076e85565992c7111607dea39 | 6c5daca39b09b99f901a9c880eeccec8990ddb57 | /graph-1.py | 7fcf928a57b26e3e87d4d6230738310ac39475bd | [] | no_license | wshBak/DataStructuresandAlgorithms | 586b600203ce77fbd3641aa5d797e0d188261a61 | eb9568d4981f233d7ee232558d1d179e261c1bc6 | refs/heads/master | 2020-04-19T15:55:54.449873 | 2019-01-30T06:13:40 | 2019-01-30T06:13:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | from copy import deepcopy
# computing 2-hop neighbors, using adjacency matrix
def two_hop(G):
G2 = deepcopy(G)
n = len(G)
for i in range(n):
for j in range(n):
if G2[i][j]: continue
for k in range(n):
if G[i][k]==G[k][j]==1:
G2[i][j]==1
... | [
"noreply@github.com"
] | wshBak.noreply@github.com |
e2e2a92911571cea2a9d98533be6aee4f53dafc4 | 5e726f41a95e1fc79ed98b777ec85a386f7c7a13 | /Model/SqlAlchemy/Weibo/UserItemModel.py | f58664278378db417b03b6103d85c8edd0e81ac1 | [] | permissive | 825477418/XX | a3b43ff2061f2ec7e148671db26722e1e6c27195 | bf46e34749394002eec0fdc65e34c339ce022cab | refs/heads/master | 2022-08-02T23:51:31.009837 | 2020-06-03T13:54:09 | 2020-06-03T13:54:09 | 262,987,137 | 0 | 0 | MIT | 2020-06-03T13:54:10 | 2020-05-11T08:43:30 | null | UTF-8 | Python | false | false | 1,223 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/1/25 16:53
# @File : UserItemModel
# @Des :
# @Email : billsteve@126.com
import XX.Model.SqlAlchemy.BaseModel as BM
from sqlalchemy import Column, String
from sqlalchemy.dialects.mysql import INTEGER, TINYINT
from sqlalchem... | [
"billsteve@126.com"
] | billsteve@126.com |
00b4a41f2ad39b55e50c19204fe9a4c3b544db35 | f854012bf8c055210bafd76dad0228dc504e2909 | /TwitterScraper.py | 9e16d9a4bb51d050490c3c1a13cc4d9851581eb1 | [] | no_license | mburakeker/Twitter-Sentiment-Analysis | 3c33c198f5dba320984a558103db4075ab73d302 | ea8a002318e9b6b7300c185fa03b16e6aedf1191 | refs/heads/master | 2020-04-01T17:26:36.763623 | 2018-10-17T09:22:52 | 2018-10-17T09:22:52 | 153,429,965 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | try:
import json
except ImportError:
import simplejson as json
from twitter import Twitter, OAuth, TwitterHTTPError, TwitterStream
import re
from collections import Counter
import pandas as pd
from __init__ import *
def Scrape():
oauth = OAuth(ACCESS_TOKEN, ACCESS_SECRET, CONSUMER_KEY, CONSUMER_SECRET)
tw... | [
"Mehmet Burak Eker"
] | Mehmet Burak Eker |
7114e9711d1fbc991de8b742ae0bf07752a0f14a | 8d2b1765701f94f57d668200f042ef4a124dcc50 | /pythonOpenCV/src/opencv.py | 1d9d2813753a6ee4375bad90df69d31e5e76835b | [] | no_license | matthew-d-stringer/RandomProgramming | d221e5e355880a8375bd1d298e10bac4bdb7a82a | c70f5aff8e5a0b0c9e5939cd427d82882e7fce97 | refs/heads/master | 2022-10-16T04:40:32.674982 | 2019-03-18T06:34:06 | 2019-03-18T06:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | import cv2
import numpy as numpy
from grip import GripPipeline
def processImg(dir, gripCode):
img = cv2.imread(dir, cv2.IMREAD_COLOR)
img = cv2.resize(img, (320,240))
out = gripCode.process(img)
scale = 2
out = cv2.resize(out, (320*scale,240*scale))
cv2.imshow(dir,out)
dirBegin = '../resources... | [
"mdsflyboy@gmail.com"
] | mdsflyboy@gmail.com |
7aa20754e73500584b16fa11fcb4e735dcf67642 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_203/708.py | 44fcd75045e3a2a33513ec3f016b44d1ae028a58 | [] | 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,501 | py | import sys
testnum = int(input().strip())
for k in range(testnum):
R, C = map(int, input().strip().split(" "))
lines = []
string_set = []
first_line_flag = 0
for _ in range(R):
string_set.append(input().strip())
for i in range(R):
nonq_p = []
nonq_l = []
string ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
66a207690dc50d54e0b9e6421f8fe985d9860e0b | 97eaaa88e0094cfbb40d38937e49b013468b6dce | /spotify/Lib/site-packages/mockups/helpers.py | 03babc1324160f28de12958a5a243d4120daa6dc | [] | no_license | didiacosta/Backend | cd652bdd1a7ec971157a539cb066efe50b024670 | c3bc7053cb579244ad7c9b0c9690d983381f9b15 | refs/heads/master | 2022-11-09T21:23:43.053107 | 2016-04-06T15:44:48 | 2016-04-06T15:44:48 | 55,620,174 | 0 | 1 | null | 2022-10-19T14:56:09 | 2016-04-06T15:58:32 | Python | UTF-8 | Python | false | false | 4,939 | py | # -*- coding: utf-8 -*-
import copy
import warnings
from django.conf import settings
from django.utils.importlib import import_module
from django.utils.module_loading import module_has_submodule
__all__ = ('register', 'unregister', 'create', 'create_one', 'autodiscover')
_registry = {}
def get_mockup(model, *args... | [
"didi_acosta@hotmail.com"
] | didi_acosta@hotmail.com |
31b7b99cf7c1c28c6697a47542c7ce2e3e96cd5f | d0f0462a3782ce794d59e1d31c85a413956fcd16 | /yolo/bin/tensorboard | dcb5a8b9800112139c6ca99b6d41e23c35e74294 | [
"MIT"
] | permissive | gelloguiam/spot-directional-changes | 844c9ade5beab39892711980125000f2b5805b64 | 7183344904f485ae22f16026f98ca524ef48e77c | refs/heads/master | 2023-05-30T11:45:56.536744 | 2021-06-17T16:30:58 | 2021-06-17T16:30:58 | 372,836,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/home/gelloguiam/Desktop/object-tracking/yolov4-deepsort/yolo/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tensorboard.main import run_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_main())
| [
"acguiam@gmail.com"
] | acguiam@gmail.com | |
12bb01b08a32796837ebff59d0f75c72d5feaeae | 67e5a245210762b4af618c3ad6f511b39f1b3910 | /Predict.py | f56cca5275081987304793cd9740121a9e2a04e6 | [] | no_license | beibeisongs/Clothe_Locating_DeepFashion | e33325567f7a418248ae6ce6dd0e5a00580a6fc4 | 4ae1f33ec762b15c65ed18d15d770f5e48f47ae6 | refs/heads/master | 2020-04-02T17:01:42.391051 | 2018-11-01T15:24:03 | 2018-11-01T15:24:03 | 154,640,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | # encoding=utf-8
# Date: 2018-10-27
# Author: MJUZY
import cv2
from keras.models import load_model
import numpy as np
def show_points(x, y, im):
cv2.circle(im, (x, y), 1, (0, 0, 255), 10)
def showPrediction(img_path):
img_ori = cv2.imread(img_path)
img = img_ori / 255
... | [
"noreply@github.com"
] | beibeisongs.noreply@github.com |
97c88eed0e4437b0909ba2be2df7cd85e9dc66b9 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/2532790568a74d1bb3203027d01c8104.py | 1b8003a012f3b0829c56318a98f2eb2523e3b4a8 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 949 | py | ''' Simple module for talking to Bob
'''
import conversation
class LackadaisicalTeenager(object):
# stub class
pass
class Bob(LackadaisicalTeenager):
''' Bob is a lackadaisical teenager. He is able to respond to simple statements
in a limited manner via the 'hey' method.
'''
_questionResp... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
5f5c887abdeee61280dd8c2b3618df34f170e210 | 676cafa1cf3c4cf82aba4482801a97d5663dc691 | /plastex/plasTeX/Renderers/DocBook/__init__.py | 0a25e399b9831c0ed7ab541c6826b86962016850 | [
"MIT"
] | permissive | dvbrydon/plastex-oreilly | 92ef9bbc2d65d9e6285987876785c73c002494fc | 96f10732596c61b8189f4c10730bc7aee70785a8 | refs/heads/master | 2021-01-14T13:48:50.954902 | 2012-07-31T18:41:48 | 2012-07-31T18:41:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | #!/usr/bin/env python
import re
from plasTeX.Renderers.PageTemplate import Renderer as _Renderer
class DocBook(_Renderer):
""" Renderer for DocBook documents """
fileExtension = '.xml'
imageTypes = ['.png','.jpg','.jpeg','.gif']
vectorImageTypes = ['.svg']
def cleanup(self, document, files, postPr... | [
"downey@allendowney.com"
] | downey@allendowney.com |
ef5376de98514d66993141393bdc69264b97d558 | ed709ae8127fe36b7d239cf9c054bb6aa3ef868d | /accounts/templatetags/accounts_extras.py | 177835f5ccb2c63c669c212c612201d1c5a7df27 | [] | no_license | BoughezalaMohamedAimen/smartonline | 8ae2722ddb8d827b5d8081bdda0c2fadba15a404 | f8f5c31337c7c38f679529a3fd1b08d0c76be543 | refs/heads/master | 2022-04-14T22:25:46.225539 | 2020-04-02T18:58:59 | 2020-04-02T18:58:59 | 252,542,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from django import template
register = template.Library()
@register.filter
def add_class(field, class_name):
return field.as_widget(attrs={
"class": " ".join((field.css_classes(), class_name))
})
def htmlattributes(value, arg):
attrs = value.field.widget.attrs
data = arg.replace(' ', ' '... | [
"mamoumou121@gmail.com"
] | mamoumou121@gmail.com |
b8944c85a951a2418304345822782b4ced5c17d2 | bb483b4c71bc14e01c11ace181f7a4da180a7dd8 | /deploy_server.py | 9daa7fc7177e6e1ff427e4df7618b7ccf8ab0189 | [] | no_license | ddccffvv/ddc | 4e7e871c3529cddcb622b2aaaf8a57216a17f79a | 5ed62633a0046646201cb04eac67afeb5e9b96a3 | refs/heads/master | 2021-01-19T22:33:22.494654 | 2013-11-07T15:55:09 | 2013-11-07T15:55:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | import requests, sys
from optparse import OptionParser
from bs4 import BeautifulSoup
usage = "usage: %prog username password orgid netid imageid name password"
parser = OptionParser(usage=usage)
(options, args) = parser.parse_args()
if len(args) < 7:
print "Not enough arguments: "
print usage
sys.exit()
... | [
"stijnmuylle@gmail.com"
] | stijnmuylle@gmail.com |
8c10569cbd15464924113c5cd68a9fce1751682f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03998/s634973860.py | 10610faf3c898bc97f92a22e7c712172dd056575 | [] | 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 | 279 | py | a=input()
b=input()
c=input()
a+="A"
b+="B"
c+="C"
n=a
while True:
if len(n)>1:
k=n[0]
if n==a:
a=a[1:]
elif n==b:
b=b[1:]
else:
c=c[1:]
if k=="a":
n=a
elif k=="b":
n=b
else:
n=c
else:
print(n[-1])
break | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6f6855eab32f085c70b8c72993e1a08b3d780818 | e2618c25960a983ec82142f43fd64926012445f1 | /Single_Tello_Test/tello.py | dfeff9299931fbb8b1da0436be14cb61b758dcc7 | [] | no_license | alefaggravo/backend-drone | 979ad3b0f4c27d44297ac0680516ad829aed79e7 | 25df4a2a33afdc2fbff5b13344283739850106bc | refs/heads/master | 2023-03-15T18:33:39.145398 | 2019-05-20T20:06:04 | 2019-05-20T20:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,200 | py | #!/usr/bin/env python
"""
A class to represent a single Tello drone
"""
import socket
import threading
import time
from stats import Stats
class Tello:
def __init__(self):
self.local_ip = ''
self.local_port = 8889
self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRA... | [
"madarp@pobox.com"
] | madarp@pobox.com |
b1d73b8e7891d10a0cbe2ff31ffdefc70a2287d2 | 1cdb0fdc1431e0a59c39ff627c11c77b02ccc8cb | /scripts/SelectLongestContig.py | 4264efa3301975bd664e20e192fe667076547c9f | [] | no_license | ChongLab/B-assembler | fe0e8f4b97f030097b5863b7d493cbe454477b62 | 2e0d8026dd4edf9e75810ecec4a9bd075c8abe25 | refs/heads/master | 2023-03-01T17:07:26.367456 | 2021-02-07T00:14:43 | 2021-02-07T00:14:43 | 329,126,954 | 4 | 1 | null | 2021-02-07T00:14:44 | 2021-01-12T22:18:31 | Python | UTF-8 | Python | false | false | 887 | py | #!/usr/bin/env python
import sys
import numpy as np
fa=sys.argv[1]
outfile=sys.argv[2]
file = open(fa,'r')
output = open(outfile,'w')
current_name =""
max_name=""
maximal = 0
max_string=""
lst=[]
hash_line={}
for line in file:
if line.startswith(">"):
lst.append(line)
current_name=line
else... | [
"huangf@login001.cm.cluster"
] | huangf@login001.cm.cluster |
70bf85666bbfe41f9db54ff13b0a051f2168b236 | 21208873652ce9a35035801cea488004e337b07b | /modeling/head/CTC.py | 392646d7dd90b4b9de3b0fbff2c1dc64d1abc834 | [
"Apache-2.0"
] | permissive | zlszhonglongshen/crnn.pytorch | 55321a6764a6143be7ab9d2c6b3bcafcdd9470e7 | bf7a7c62376eee93943ca7c68e88e3d563c09aa8 | refs/heads/master | 2022-11-07T22:57:28.983335 | 2020-06-19T03:01:35 | 2020-06-19T03:01:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # -*- coding: utf-8 -*-
# @Time : 2020/6/17 10:57
# @Author : zhoujun
from torch import nn
class CTC(nn.Module):
def __init__(self, in_channels, n_class, **kwargs):
super().__init__()
self.fc = nn.Linear(in_channels, n_class)
def forward(self, x):
return self.fc(x)
| [
"572459439@qq.com"
] | 572459439@qq.com |
a37b5d504fc9797a51f5613b924b1c3e8b6d5d6e | fa73c553505667445bca81807581d1c56b1659c3 | /rotational-cipher/rotational_cipher.py | bdd0e5413206f229c5e39aa11784902774d77fe7 | [] | no_license | wanngyue/exercism-solutions | 623f9b15e6f640f6b95602ce35ccd5c0f56af3c3 | 79961e039a8c2fc8a8b0d696c35c862f9278ee4f | refs/heads/master | 2020-04-02T07:42:04.816761 | 2019-01-30T19:26:01 | 2019-01-30T19:26:01 | 154,210,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from string import ascii_lowercase as letters
def rotate(text, key):
l=letters[key:]+letters[:key]
trans= str.maketrans(letters+letters.upper(),l+l.upper())
return text.translate(trans)
| [
"wyue.leon@gmail.com"
] | wyue.leon@gmail.com |
e911ac92f69435499460db8f70d101c5dc2a02fb | 5b2a8a32784eb8e9a51d7f1614ee43c276a71c8a | /filter_plots.py | b521c54c9bfe1f147ac531fdb31b66548efb2f11 | [] | no_license | googa27/STAGE-1 | 69d3fbc774e94d875f4136c24eab5dfc941e689b | 0680c877e1cc701ad9b7765481186ce496108260 | refs/heads/master | 2022-05-10T19:05:45.487978 | 2019-02-27T02:48:28 | 2019-02-27T02:48:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,456 | py | import openpyxl as pyxl
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import itertools as itr
import time
import os
import datetime
import xlsxwriter
from sklearn.metrics import accuracy_score
from sklearn.naive_bayes import GaussianNB, MultinomialNB, BernoulliNB
from sklearn.neural_... | [
"noreply@github.com"
] | googa27.noreply@github.com |
c20f0f7a5868837ea73f41a8c8eee637f736c9b1 | 30c7a32daf4dd9e587580d35c1f4115745d210fe | /blog/views.py | 3103202228087eb6d9ee1d03cb437e8eae518b14 | [] | no_license | pritishjain2001/my-first-blog | 395382c3c596d3d45e48299006076b8ef464dc38 | 70799eab6bea0971deb128359738701657ca4d60 | refs/heads/master | 2020-04-03T13:19:02.267020 | 2018-11-02T08:45:23 | 2018-11-02T08:45:23 | 155,281,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | from django.shortcuts import redirect
from .forms import PostForm
from django.utils import timezone
from .models import Post
from django.shortcuts import render, get_object_or_404
# Create your views here.
def post_list(request):
posts =Post.objects.filter(published_date__lte=timezone.now()).order_by('published_da... | [
"pritishjain2001@gmail.com"
] | pritishjain2001@gmail.com |
8d1b0b844d2d2cab532cd11a19b57dd8d4fcf822 | 5600f24b1347d1c66dbaa75f504ce42ddcdba753 | /manage.py | 7a85cdb4f447820405f9956afa53fa17d238c421 | [
"Apache-2.0"
] | permissive | pygabo/qamkunapah | f3d3e32087518d25fa999c7d089568957ac54daf | af31a3b1a01351b80f219e591fbac265539bb77d | refs/heads/master | 2020-04-19T05:40:58.608074 | 2019-01-28T17:41:47 | 2019-01-28T17:41:47 | 167,995,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure tha... | [
"pygabo@gmail.com"
] | pygabo@gmail.com |
2aa3e8162fb25d6be4d1c22ceeefbc1179bc9e6e | bd29a8b647823f6589fe1d97e94b4ae92359df90 | /code/pesudo_predict.py | 37a4fea64b29becf29036ec17a6be6a64bb334f2 | [] | no_license | ziliwang/tweet-sentiment-extraction | df36fec9e4b72270a4f624985db3b84815dd985c | c2c41814e1c04bffffc94fa2dc161253230e08fd | refs/heads/master | 2022-10-21T19:43:11.981092 | 2020-06-18T03:35:44 | 2020-06-18T03:35:44 | 254,626,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,661 | py | import torch
from torch import nn, optim
from torch.nn import functional as F
from transformers import *
from torch.utils.data import DataLoader
from torch.nn.utils.rnn import pad_sequence
from sklearn.model_selection import train_test_split, KFold
import joblib
import click
import random
import numpy as np
import os
f... | [
"wzlnot@gmail.com"
] | wzlnot@gmail.com |
fa4317e5f94fd6a09b9a880d9212ead1a1af2a0e | bd18efaf3711c3e7c429d7ed43158ff66fa69511 | /Solutions/netmiko_exercise_sol.py | cd3e12ff2c9bab5794dca60fcf1f20708d68a191 | [] | no_license | aawarner/Workshop | db4bf940261f0903ffea364758b33c0f5cab6e96 | 6cbef41ba60539a49e5e2427d5e6b9911627a2c2 | refs/heads/master | 2020-06-21T09:22:29.633244 | 2019-07-18T20:38:57 | 2019-07-18T20:38:57 | 197,195,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | '''
EXERCISE:
Write a program that will log in to your CSR1000v and deploy the below access-list.
Changes should be written to a file called changes.txt.
ip access-list extended python_acl
remark ACL added by Python
permit ip any host 1.2.3.4
permit ip host 1.2.3.4 any
deny ip any any
BONUS:
After deploying ... | [
"aawarner@cisco.com"
] | aawarner@cisco.com |
4e56367be936d6b2ea5fa7e71d83e4f4d151b787 | e9c4845afff6d8e4b28a214699ff061778950362 | /summariser.py | e966ffd76acc0955b0112153a8e464cc93473efe | [
"Apache-2.0"
] | permissive | aronlebani/py-summariser | 9f9d095b6c08a20e2106af7fe4ebb5db9c019ff6 | 92ee252e7af4925f8126a22c125adaeb6431b8e7 | refs/heads/master | 2023-04-15T13:10:55.131307 | 2018-07-28T11:03:58 | 2018-07-28T11:03:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | from utilities import Utilities
class Summariser:
def __init__(self):
self.utes = Utilities()
def findMaxValue(self, list):
list.sort(reverse=True)
return list[0]
def getMostFrequentWords(self, count, wordFrequencies):
return self.utes.getMostFrequentWords(count, wordFreq... | [
"aron.lebani@gmail.com"
] | aron.lebani@gmail.com |
1658183b5c32965d1eafe7453747b27f7645785d | 76d16a25b3d0e96d6ba69139f2e85a7b7b6cfafa | /audio_file_handler.py | 36f1e7ba3f843244cc00ef75b56023c39a0a2e67 | [] | no_license | nksubramanian/LinkedIn | 8f1efb20211496abd8c055c528d5fa53c9060759 | 974b78ff4c4b475169fc0e23aeccd3395e660490 | refs/heads/master | 2023-04-07T23:04:41.986110 | 2021-04-16T19:12:59 | 2021-04-16T19:12:59 | 356,210,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,252 | py | from abc import abstractmethod
from datetime import datetime
from business_errors import UserInputError
class Handler:
def __init__(self, persistence_gateway):
self.persistence_gateway = persistence_gateway
@abstractmethod
def _assert_creation_parameters_are_correct(self, creation_parameters): #... | [
"subramanian.nk@live.com"
] | subramanian.nk@live.com |
ce111a096fc4010887c3e124847b0bd5b9a433d8 | cf1ae859ca1857bf6d87e22244df0a0762bdf1b1 | /AdventOfCode2017/day03.py | d3a19d2c127a0ba7332e4f51ff7283f3d2515a02 | [] | no_license | LysanderGG/AdventOfCode2017 | 19e1cf32497f7c6209a783c55c8d9448c41491cc | d432155c7e6278f178c045a24e78134657a13a4f | refs/heads/master | 2021-09-14T03:58:20.950638 | 2018-05-08T02:14:16 | 2018-05-08T02:14:16 | 112,997,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | input = 361527
from enum import Enum
class Direction(Enum):
LEFT = (-1, 0)
RIGHT = (1, 0)
TOP = (0, 1)
BOT = (0, -1)
def next_dir(d):
next_direction = {
Direction.LEFT: Direction.BOT,
Direction.BOT: Direction.RIGHT,
Direction.RIGHT: Direction.TOP,
Direction.TOP: Direction.LEFT,
}
return next_direc... | [
"lysandergc@gmail.com"
] | lysandergc@gmail.com |
22f45ce7c3eab8e3372b05c4c618757fa11bd942 | 419ff24d556bbf1078cb5106a67445c8dacd7220 | /sqllib.py | 251f1d7f79cfa133d32604036cb3f7ae846ed6d0 | [] | no_license | adtet/backend_elock | 9329cda534c593c0cfb7bd260777b9909e3b8e6c | f0ac8ebaa618e7587233b2cd9ca09fdb67a0c282 | refs/heads/main | 2023-06-09T21:27:18.297692 | 2021-06-28T00:10:02 | 2021-06-28T00:10:02 | 376,724,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,034 | py | from os import curdir
import mysql.connector
import json
from mysql.connector import cursor
def koneksi_sql():
db = mysql.connector.connect(host="localhost",
user="root",
password="",
database="db_elock")
return... | [
"adiyatma.padang@gmail.com"
] | adiyatma.padang@gmail.com |
99ce5f1f02dc4e30702849d04ebc43d8bc515a61 | 23c6a394d7376b5a296248b7fcc185d163939266 | /tests/test_specific.py | e1af03e1a6d2d585a93dbd6a6ef6f842534f1658 | [
"BSD-3-Clause"
] | permissive | xadrnd/display_sdk_android | eac6d9b3f9fb1b669bce6d770f6dc7ac8ff69ac2 | 42b83ab9e5fce52ba180b7b4911046a4b55c1b08 | refs/heads/master | 2021-09-12T12:44:13.582162 | 2018-04-16T19:42:30 | 2018-04-16T19:42:30 | 113,114,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,360 | py | from test_base import DisplaySDKTest
from utils import *
SLEEP_INTERVAL = 2
class SpecificTest(DisplaySDKTest):
def dev_test(self):
switch_on_testmode(self)
def test_banner(self):
set_channel_id(self, "22394")
click_load_ad_btn(self, "Banner")
accept_location(self)
... | [
"jacob.zelek@xad.com"
] | jacob.zelek@xad.com |
18222fbec173b1f264ef44678137c0537a20171a | 2baad3d7ac8df92ac7669bc5226b295f6e572109 | /openstack/cinder/exception.py | 47241139ccd27fd79ad6db6a5fa19c5baf884d53 | [] | no_license | naanal/reference | 649d61110c0200718de186012466183c35071399 | e5401ab6d185f9879da4b7fd20dead4823d662cc | refs/heads/master | 2020-04-12T07:33:59.989760 | 2016-12-21T12:26:30 | 2016-12-21T12:26:30 | 57,004,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,708 | py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a ... | [
"root@fuel.domain.tld"
] | root@fuel.domain.tld |
a279b4dd33c2332778b01ecfcb3b7b718e63bc99 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/resources.py | 35adc37ecc80c3cad66d112c38ed5ca85d9ad95c | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,638 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class Resources:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attri... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
b1bee79a770a853c0c9cd06cc7438554cfae08c9 | 4e7f0e438e7d156ac1a27551181ca5430b3ece4a | /api/category/migrations/0001_initial.py | 6b4d4f3f491204f9256fffd1348e51f4d8494187 | [] | no_license | amangoyalji/onlinemart | 9a355a43049489ead8fda0e41efc7ffc1f8565a5 | bac61801f6b0148e2a82153f66cecc6bab938518 | refs/heads/master | 2022-12-20T21:31:11.858072 | 2020-09-15T02:44:41 | 2020-09-15T02:44:41 | 288,076,418 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # Generated by Django 3.1 on 2020-08-16 10:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(a... | [
"amana6398@gmail.com"
] | amana6398@gmail.com |
ef455910a003cfc1abbbadb2a5f3bc5e9e71c438 | 66053d9fcfe5734a833b6afea7335e4bad6ce9cf | /move_zeroes.py | 9280bb7858558b59690f55e643f1254662b53e44 | [] | no_license | redi-vinogradov/leetcode | 27bc8954801f819e7144403c215615c5a5675c8d | 56c40c1a9af7466a4bfc423d9ab110d8a21cd751 | refs/heads/master | 2020-03-31T09:19:09.411661 | 2018-10-11T18:33:09 | 2018-10-11T18:33:09 | 152,091,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | def moveZeroes(nums):
""" The trick is very simple: check if value is equal to zero and if it is
than remove that value from the list and add it to the end.
"""
zeroes = []
for i in nums:
if i == 0:
nums.remove(i)
nums.append(i)
print(nums)
def main():
nums... | [
"anton.vinogradov@thomsonreuters.com"
] | anton.vinogradov@thomsonreuters.com |
5165637a2110ba9de1465ca309f7f4353168dd71 | 0a4f57a41b536aab19bef26df300a359f3f2d626 | /app/misc.py | 5fc638df5c5012bb4a48221081166681d15ccb5e | [] | no_license | ash11sh/remove-glass | 9d4b19ddd4bcaa307f5fdf0b5ea6967a214a3104 | 6c8483e82590b644dcfeed4841f737c280415381 | refs/heads/main | 2023-05-02T17:57:20.757302 | 2023-04-16T12:44:50 | 2023-04-16T12:44:50 | 334,052,835 | 15 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | py | import cv2
import torch
import numpy as np
from PIL import Image
from torchvision import transforms
from util.prepare_images import *
from torchvision.utils import save_image
import os
os.environ["LRU_CACHE_CAPACITY"] = "1"
def get_potrait(test_image, interpreter,input_details,output_details):
# get the potrai... | [
"ashish369@live.com"
] | ashish369@live.com |
5d8197d9782fdee45aca92a2884c0f7069f30274 | 1a38ae9466f84da7b7ee3cce2cb7f94bfdf40492 | /connect_four.py | 2c0dce3ed0d791c8977c7598b42c7a53f5b498e0 | [] | no_license | ayushmann01/connectFour | 74c138ecc33db42275de1e857ee3f85dcec85ad6 | a774eb32c0bc594e25a24f3601109271b4a42e7a | refs/heads/master | 2022-09-24T09:17:21.178212 | 2020-06-02T20:29:08 | 2020-06-02T20:29:08 | 268,901,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,021 | py | import numpy
import pygame
import sys
import math
ROW_COUNT = 6
COLUMN_COUNT = 7
BLUE = (0, 0, 250)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
YELLOW = (255, 255, 0)
# pygame initialization
pygame.init()
SQUARESIZE = 100
width = COLUMN_COUNT * SQUARESIZE
height = (ROW_COUNT + 1) * SQUARESIZE
RADIUS = int(SQUARESIZE / 2 - ... | [
"ayushmanraghav.ra@gmail.com"
] | ayushmanraghav.ra@gmail.com |
dedd1b7419b7e144c4b15461094538f0b7fc9a1b | 2b54f28c6c46962b77f53dcc1370a3e2d60f7e41 | /test/api/test_main.py | 3c98faa28a409c15993304b4c2ef7ce9c69aafc5 | [] | no_license | tales-cp/candidate-assessment | fb75cb8c8e585a4567d8c3ceaac835b9d0e7915a | dd82bfd5333ba7349a2e113796834a5ca09cdf62 | refs/heads/main | 2023-03-04T13:38:14.092212 | 2021-02-01T03:57:25 | 2021-02-01T03:57:25 | 334,732,197 | 0 | 0 | null | 2021-01-31T18:54:21 | 2021-01-31T18:54:21 | null | UTF-8 | Python | false | false | 269 | py | import http
from fastapi.testclient import TestClient
from project.api.main import app
client = TestClient(app)
class TestMainAPI:
def test_health_check(self) -> None:
response = client.get("/")
assert response.status_code == http.HTTPStatus.OK
| [
"tales_padua@yahoo.com.br"
] | tales_padua@yahoo.com.br |
2adff8a00299133ecea95a2ce55a9f1bde0b2cfa | 080608425194de78242606de286f26b616ce997b | /stage2/fill-in-the-blanks.py | 7d29902190c6cf0fc7f58d0dcf2ca01e424f6493 | [] | no_license | julianestebanquintana/IFND | 16f10d79f085b1d17fcce5dbdc1df1ac2e9b3b33 | 6843999a510a14ac28d47611afa0439ff0f36f6a | refs/heads/master | 2021-01-10T09:31:52.738353 | 2016-02-29T22:57:49 | 2016-02-29T22:57:49 | 50,877,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,546 | py | #################### DEFINITION OF VARIABLES ######################
questionary = [['To communicate with computers and make them do whatever is needed, we use programming languages; these have a different set of rules than natural languages (called a ______).', 'syntax'],
['Internet is a network of computers, they co... | [
"julianestebanquintana@MacBook-Pro-de-Julian.local"
] | julianestebanquintana@MacBook-Pro-de-Julian.local |
292a9082291f7cc0b1f5aef8055dd29a1ae5b269 | e99de265b090c26ed6ba012deab4edb13461e774 | /ortools/sat/samples/copy_model_sample_sat.py | 80cb6253b2aaf1788d238c769639e261e49896ea | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | szerfas1/or-tools | 753f0324b5c408691f72033ec0d12a69c5028a23 | fa84bc05e72641dddfbb98164d81b8bc9bef6ea5 | refs/heads/stable | 2023-04-09T07:45:27.702891 | 2021-03-02T14:21:44 | 2021-03-02T14:21:44 | 358,003,762 | 0 | 0 | Apache-2.0 | 2021-04-14T18:32:17 | 2021-04-14T18:25:33 | null | UTF-8 | Python | false | false | 1,988 | py | # Copyright 2010-2018 Google LLC
# 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 agreed to in writing... | [
"lperron@google.com"
] | lperron@google.com |
9ce7f7ecdf8e9315f04461d7914a303696ca3b46 | 4a3e4c20cc7de2e80ed038bbfe9b359ba75daf07 | /configs/RS-data/DOTA/train+val/FCOS/SENet/se-resnet101-caffe-center-FPN-R16.py | 28c2af5aa65deba151d0e2c9e38190d121f2e26e | [
"Apache-2.0"
] | permissive | CLIFF-BOT/mmdetection-1.0 | b0b4f9b5586476f96ef55cf68373110f28e503a7 | a16a7c6a8f0bf029100b85f0bd1b64093e7809af | refs/heads/master | 2023-01-02T07:02:35.496174 | 2020-10-29T03:26:18 | 2020-10-29T03:26:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,209 | py | # model settings
model = dict(
type='FCOS',
pretrained='open-mmlab://resnet101_caffe',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=False),
style='caffe'),
... | [
"nicholasirving@outlook.com"
] | nicholasirving@outlook.com |
045a6be87833d5889a4a60e4d0710d0699af059c | 34a427948b4cf8bffd977af9e4d0cd560808fe88 | /ARP_scanner_using_ip_as_command_argument.py | ae83a18a0e5eedaa193aaa38fbc874227546e439 | [] | no_license | tonnyshm/Networking-Tools | 4c7f0446d7fbc0877ca75902d25d002a110d9801 | 87d185765e321462639c1b4e483831d24d9d0686 | refs/heads/master | 2022-04-29T23:07:23.585941 | 2020-04-25T13:18:47 | 2020-04-25T13:18:47 | 258,777,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | #!/usr/bin/env python
import scapy.all as scapy
import optparse
def scan(ip):
arp_request = scapy.ARP(pdst=ip)
broadcast = scapy.Ether(dst="ff:ff:ff:ff:ff:ff")
arp_request_broadcast = broadcast/arp_request
answered_list = scapy.srp(arp_request_broadcast, timeout=1, verbose=False)[0]
client_list = []
... | [
"tonny.shema@gmail.com"
] | tonny.shema@gmail.com |
1db6e93bcc75a0f658463b5bb1f5b2c42b37d8cc | 20f4503aec624da9ba4161e7ee11f121df125be1 | /main.py | ddad880abdfc862f74da3b2f95ac6d37ce6787a4 | [] | no_license | Fdojeda/codigos | a9b178bef3aee6c1351953bbcc74f064823b555d | 11993a4b6d11a8957ba21eada5f0875b3996fd94 | refs/heads/master | 2022-12-16T19:35:44.022963 | 2020-09-17T18:36:03 | 2020-09-17T18:36:03 | 289,083,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | from menus import Menu_Inicio
from cargar_datos_y_deportes import Ciclismo
from entidades import Deportistas
juego = Menu_Inicio()
print(juego.ejecutar())
| [
"fdojeda@uc.cl"
] | fdojeda@uc.cl |
70737cee89450355c2633629a95169eec78ed415 | cb703e45cf56ec816eb9203f171c0636aff0b99c | /Dzien01/06-oop.py | 67b18d2f215297256e7a0f4c431841266248e762 | [] | no_license | marianwitkowskialx/Enzode | dc49f09f086e4ca128cd189852331d3c9b0e14fb | 67d8fd71838d53962b4e58f73b92cb3b71478663 | refs/heads/main | 2023-06-04T20:58:17.486273 | 2021-06-24T16:37:53 | 2021-06-24T16:37:53 | 366,424,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py |
# OOP
class MetaProduct:
pass
class Product:
def __init__(self, id, name, price):
self.__id = id
self.__name = name
self.__price = price
def get_info(self):
return f"Id={self.__id}, nazwa:{self.__name}, price: {self.__price}"
def set_price(self, new_pric... | [
"noreply@github.com"
] | marianwitkowskialx.noreply@github.com |
c3d64bef7ce1750281a51d09ee118b162fcfda8b | b0fcc5332dd74ccf8d0234ec40cb1cb62a2b935c | /gen-inst/instance_generator.py | 8e7dd5c4c02282e80b3968b657c8f2d2653d421b | [] | no_license | Year2999/MSPSP-InstLib | 7058bb7709200b4af4307e273be57dac6baa28d0 | f77644175b84beed3bd365315412abee1a15eea1 | refs/heads/master | 2020-05-02T18:08:11.410604 | 2017-08-14T08:18:05 | 2017-08-14T08:18:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,987 | py | # Data61 Summer Internship 2016/17
# Kenneth Young
# Instance Generator for the Multi-Skill PSP
# This file contains:
# Functions to generate all components of an input instance to the MSPSP
# Instance generator driver function
# Packages
from __future__ import division
import sys, pdb, time
import numpy as np
import... | [
"kendogy@gmail.com"
] | kendogy@gmail.com |
ac8dac173c77a7199c3b262a7c0e757a80dfe26b | bcd3c70e99c736eac44ce5dcb0643776fd141a3e | /tests/api/endpoints/test_send_upload_link.py | 4bd41f88aa175e3b129ce5550f2fc7f53e905516 | [
"Apache-2.0"
] | permissive | insky2005/seahub | 2ea6d41491cc27a091e8decda3667328614ce0dc | 99f0c340e50e1b30b7222ac870e5f0d15a8eb7f6 | refs/heads/master | 2021-01-24T15:33:08.683090 | 2016-04-08T02:02:18 | 2016-04-08T02:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | #coding: UTF-8
import json
from django.core.urlresolvers import reverse
from seahub.utils import IS_EMAIL_CONFIGURED
from seahub.test_utils import BaseTestCase
from seahub.share.models import UploadLinkShare
class SendUploadLinkApiTest(BaseTestCase):
def setUp(self):
uls = UploadLinkShare.objects.create_... | [
"imwhatiam123@gmail.com"
] | imwhatiam123@gmail.com |
21068f6abe3bcd72409dea125efb285c7605bbbd | 1099e2a2fb11f53c82f2206112c60a6c0149dfde | /exercise-validator-cli-phoenix/gf/app_controller.py | 497fd14fbfd9ab1f75604fa60b58b8715141efe7 | [] | no_license | green-fox-academy/bkorbuly | f652e9e75067a8dba280e5e79c21696dae9b847e | f09f59f75d1b6d221147a6810ae8ba1d0b0f4840 | refs/heads/master | 2021-08-14T20:03:26.012200 | 2017-11-16T15:55:41 | 2017-11-16T15:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | from external.local import user_presenter
from gf.config import config_service
from gf.verify import verify_service
from gf.start import start_service
from gf.rate import rate_service
from gf.docopt_adapter import get_filename, get_link, get_command_argument
def run():
try:
task_check(get_command_argument... | [
"b.korbuly@gmail.com"
] | b.korbuly@gmail.com |
1ef39d8f51378e2e4327ea08e562140f5bd63d05 | 0056abb227e467b8c97b40611cea3f3e2c4faa8e | /Project3/Code/eigenSolver.py | 9e5b4180e2586809a326f067dcffde16cb5099e3 | [] | no_license | michaesb/FYS-STK-Gruppe | dce6399037c4edfda19cbc72d2a7794a4837048a | ca7ebd685e0be7d24c0c63efbffd0774e2d03bbb | refs/heads/master | 2023-01-30T23:18:13.394089 | 2020-12-16T22:02:41 | 2020-12-16T22:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,427 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import time
from matplotlib import cm
from mpl_toolkits.mplot3d import axes3d
from tensorflow.keras.models import Sequential #This allows appending layers to existing models
from tensorflow.keras.layers import Dense #This allows d... | [
"KarlHenrik@users.noreply.github.com"
] | KarlHenrik@users.noreply.github.com |
1798fe340e001451dd3f7841460e5cccc795bcd7 | 4aaa03d414007552301c5fe4f5459fb652b7d79d | /chapter3/KNN.py | 0c9bd32acc9cb8c5beb95c8be7d35d5a9a7756eb | [] | no_license | panxmay/Web_Data_Mining | dc0c2815c68f44775ceb0243856f6851c849ab45 | c378b16179734a40fa396bc3be16369f7b24dc15 | refs/heads/master | 2022-11-18T09:50:18.307694 | 2020-07-24T13:59:04 | 2020-07-24T13:59:04 | 282,233,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | from sklearn import datasets
import random
import math
import pandas as pd
def get_dataset():
iris = datasets.load_iris()
names = ['sepal_length', 'sepal_width', 'petal_length', 'petal_width']
dataset = pd.DataFrame(iris.data, columns=names)
dataset['class'] = iris.target
return dataset
def get_ma... | [
"panxmay@gmail.com"
] | panxmay@gmail.com |
11d1418d410fc266a990a254a5cace5a126ea43e | b900ba81e7745cf5bcfebc0694e6d6a3f65bee68 | /Practice/CNN/Great_Model/Resnet-50Model/VGG_16.py | 776a14762ecdcdddbcba58e6b411d13ef645a417 | [] | no_license | SUMAN147/PROJECT | 8a0d4f92cb794e713e24c34d923ef97d6d72c915 | 5b21a755af2910508d49c6336e56bbb489b67f7b | refs/heads/master | 2020-03-24T20:28:59.586588 | 2019-01-25T00:55:40 | 2019-01-25T00:55:40 | 142,980,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,348 | py | # _*_ coding: utf-8 _*_
''' VGG-16 model for keras
# Reference:
-[Very Deep Convolutional Networks for Large-Scale Image Recognition](https://arxiv.org/abs/1409.1556)
'''
from __future__ import print_function
import numpy as np
import warnings
from keras.models import Model
from keras.layers import Flatten
... | [
"147sumansourav@gmail.com"
] | 147sumansourav@gmail.com |
859614ec81a12a9dea7997f2d6921b043b91bd6c | 8f6c7b9d641e002c1d66a740f431fd1f6b48371a | /callback_plugins/fail_if_no_hosts.py | 8b60c17cf5f825a40a0c88ef97794882cf50d716 | [
"Apache-2.0"
] | permissive | rbrady/tripleo-validations | 1740c546468f2019bed6b04443e67e1792fc7fdb | f1963a4e8396c9b833619e57d4b9509af887c2b0 | refs/heads/master | 2020-12-08T19:56:14.755187 | 2019-11-28T13:02:07 | 2020-02-10T09:00:16 | 233,080,253 | 0 | 0 | Apache-2.0 | 2020-01-10T15:52:45 | 2020-01-10T15:52:44 | null | UTF-8 | Python | false | false | 966 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 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 agreed ... | [
"gchamoul@redhat.com"
] | gchamoul@redhat.com |
7a7c344248c899170ceda58153c41986bb2e0dd0 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_devprof_system_replacemsg_auth.py | d1536bd18254cb360762c92c9424856696d9ac63 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 8,357 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | [
"sifang@cisco.com"
] | sifang@cisco.com |
d2e4e3064de9337880d4a005c8ef13f9c7c2f0e6 | 0e0670859d30ac0ca3cd889b496e066d44f1bad6 | /src/blog/admin.py | 0df8220f70e103dee9747b0968ccd8c3a7da566f | [] | no_license | marcinowski/devmate | 89dea8f153eb1b6f0adce0ea1144eb49ab32858e | cc13c31f41a278a7eb4eb2f04bf4574a880538f7 | refs/heads/master | 2021-05-14T23:47:25.245472 | 2017-10-24T13:11:57 | 2017-10-24T13:11:57 | 102,716,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | from django.contrib import admin
from .models import Tag, Article, Image
@admin.register(Tag)
class TagAdmin(admin.ModelAdmin):
list_display = ('id', 'tag', 'content_type', 'object_id')
list_filter = ('content_type',)
@admin.register(Article)
class ArticleAdmin(admin.ModelAdmin):
list_display = (
... | [
"muszynskimarcin@wp.pl"
] | muszynskimarcin@wp.pl |
9f89201d32f8e5978be60fb9bf41c1bcbfe7bf42 | b4f92f72dbec0c9e03a5c9d11a6c2c14aba1ab2b | /cuisine/migrations/0003_meal_customer.py | 098c91ec41013282c2367faa0fad4b8bda28597c | [] | no_license | devmanorg/foodplan | ad61dd68f65d2afd2a780430d0c13088c5155c5f | f682af47793e3db4302933bd63627df2bc4fdd94 | refs/heads/main | 2023-07-16T16:18:38.204053 | 2021-09-01T03:02:58 | 2021-09-01T03:02:58 | 399,474,915 | 0 | 0 | null | 2021-09-01T00:47:51 | 2021-08-24T13:26:07 | Python | UTF-8 | Python | false | false | 674 | py | # Generated by Django 3.2.6 on 2021-08-25 07:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('cuisine', '0002_auto_202... | [
"mashross@gmail.com"
] | mashross@gmail.com |
169230e4b2b4f6d8d4ed85bc81004a8234083182 | 031c66bb13e7fa21aec8cbfea74210b0458be96d | /utility/__init__.py | 1559457640c33168770b565cf36bf494fab2a1f5 | [] | no_license | cctecoo/personnel_management_system | 662880c684a74d66f221b23133fdff522e01dcf9 | 9c0d3d424311c0f8bf2ab42fcb34d5a52af789c8 | refs/heads/master | 2016-09-06T05:24:34.473551 | 2015-06-09T04:35:30 | 2015-06-09T04:35:30 | 33,525,154 | 0 | 0 | null | 2015-06-09T04:35:30 | 2015-04-07T06:02:04 | JavaScript | UTF-8 | Python | false | false | 64 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'cc'
| [
"358553880@qq.com"
] | 358553880@qq.com |
858fbf82eb6555838644cdefdf7c48696405baf2 | 22480f6a412b4ccf5f3ca02cee51a6bd8dde5d32 | /Hello.py | e8e21702b57f321a0c3f979bee6303cab4bd7df1 | [] | no_license | bethias/pi | 157ec493d9e287a98e9a0234e63291865f5fe7aa | 5ec284f9f5465e299ebb276085190f1632229080 | refs/heads/master | 2016-08-11T21:11:47.225331 | 2016-01-01T22:05:29 | 2016-01-01T22:05:29 | 48,852,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | user = input( 'I am a robot and Id like to talk to you. What is your name? : ' )
print( 'Hi' , user , end = '!\n')
lang = input( 'What is your favourite programming language? : ')
print( lang , 'is' , 'fun' , sep = ' * ' , end = '!\n' ) | [
"bethiaseager@bens-mbp.home"
] | bethiaseager@bens-mbp.home |
b0542480ade936383d803d7de35c312f5012cdc6 | 50ca0ee3dc1d104538205f8e2f942a4abd7eb234 | /trydjango/urls.py | f7bd17bcc8bfed1fcccb2b276aa4b528797d0f72 | [] | no_license | guptapranav4299/django-todo | b21381f27aefe0feeaa59bd266e107024de7e395 | 699c19eef345eda8b1d9474411c28bd64f826322 | refs/heads/master | 2023-04-12T17:13:12.874647 | 2021-05-06T09:40:49 | 2021-05-06T09:40:49 | 364,859,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """trydjango URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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-bas... | [
"guptapranav4299@gmail.com"
] | guptapranav4299@gmail.com |
db37f97137da36e0aa5862181d7e6039055b5542 | 4e8b78ea8909973ad4fb96bad9abece11e562f9f | /code/Wed-06/main_menu_scene.py | 6badb7719f80b67f925fe5f72a410e2c2158dd09 | [] | no_license | HamzaSalman/Wednesday-06 | 60b281814dc84575f746cf7ac34bc73dbb45ac9b | e7d31b3435279346b70a8668487822a688562ad0 | refs/heads/master | 2020-12-24T12:41:25.864238 | 2016-11-05T23:10:19 | 2016-11-05T23:10:19 | 72,957,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,475 | py | # Created by: Hamza Salman
# Created on: October 2016
# Created for: ICS3U
# This scene shows the main menu.
from scene import *
import ui
from game_scene import *
from help_scene import *
class MainMenuScene(Scene):
def setup(self):
# this method is called, when user moves to this scene
... | [
"hamza.salman@ocsbstudent.ca"
] | hamza.salman@ocsbstudent.ca |
ec97150d9242ddf0327f7c531aba3a086d5c3f25 | e68653fe1d5d4d611938333bdd3850102be4bc54 | /AlgorithmAndDataStructure/Basic/binary_search.py | 32cc082ff7763dda5d7f6b51260ae06789417a15 | [] | no_license | LUTLJS/algorithm_and_data_structure | 38a5654410949b3fcc644b0fbee57a5376ced711 | 1c449320c1bd6d5f3637eb257648a4c2156107e7 | refs/heads/master | 2021-04-15T09:14:15.921200 | 2018-03-30T15:50:38 | 2018-03-30T15:50:38 | 126,795,316 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | def binary_search(list, item):
low = 0
high = len(list) - 1
while low <= high:
mid = (low+high) // 2
guess = list[mid]
if guess == item:
return print('Yeah,found it:%d'%mid)
if guess > item:
high = mid - 1
else:
low = mid + 1
return print('Oops,there is no one.')
'''for example'''
my_list = [1... | [
"you@example.com"
] | you@example.com |
7e93b484dc2b6cdc86eddf2f7565b9d4b0f2c2f1 | 6581ff32670e4b30dd17c781975c95eac2153ebc | /libnode-v10.15.3/deps/openssl/config/archs/solaris64-x86_64-gcc/asm/openssl.gypi | bdef71da400d019db281b3592835d891f282de89 | [
"Apache-2.0",
"LicenseRef-scancode-unicode",
"Zlib",
"ISC",
"LicenseRef-scancode-public-domain",
"NAIST-2003",
"BSD-3-Clause",
"BSD-2-Clause",
"Artistic-2.0",
"LicenseRef-scancode-unknown-license-reference",
"NTP",
"LicenseRef-scancode-openssl",
"MIT",
"ICU",
"LicenseRef-scancode-free-un... | permissive | pxscene/Spark-Externals | 6f3a16bafae1d89015f635b1ad1aa2efe342a001 | 92501a5d10c2a167bac07915eb9c078dc9aab158 | refs/heads/master | 2023-01-22T12:48:39.455338 | 2020-05-01T14:19:54 | 2020-05-01T14:19:54 | 205,173,203 | 1 | 35 | Apache-2.0 | 2023-01-07T09:41:55 | 2019-08-29T13:43:36 | C | UTF-8 | Python | false | false | 27,945 | gypi | {
'variables': {
'openssl_sources': [
'openssl/ssl/bio_ssl.c',
'openssl/ssl/d1_lib.c',
'openssl/ssl/d1_msg.c',
'openssl/ssl/d1_srtp.c',
'openssl/ssl/methods.c',
'openssl/ssl/pqueue.c',
'openssl/ssl/record/dtls1_bitmap.c',
'openssl/ssl/record/rec_layer_d1.c',
'... | [
"madanagopal_thirumalai@comcast.com"
] | madanagopal_thirumalai@comcast.com |
dfcd5e0517a1eaa9536b12a9beb3aee6be961028 | dc3a4dac2980bd000007959ab24f072f3628f647 | /blogapp/migrations/0010_auto_20190430_2146.py | e54c392073719077e1bb7b92774065b1dc912c73 | [] | no_license | AlexisMunera98/blog-app-roiback | 42b473bdd6abf4c873f00c314bef65be305d4235 | 26d1772393000355a73c41423ebd3dbbc5b11782 | refs/heads/master | 2020-05-18T20:25:01.155931 | 2019-05-10T03:14:03 | 2019-05-10T03:14:03 | 184,628,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # Generated by Django 2.2 on 2019-05-01 02:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogapp', '0009_auto_20190430_2146'),
]
operations = [
migrations.AddField(
model_name='post',
name='is_active',
... | [
"AlexisMunera98@gmail.com"
] | AlexisMunera98@gmail.com |
78a56b01ff5944549b617302417c71ae0dfd2576 | 5f468f45aeb34721f18db9c44ea57f18522db0e7 | /posts/permissions.py | 4ff68af345ff2aad131e29fe1a8a3d5d1805f9ef | [] | no_license | patpio/diary_api | 3cb7f4c99f6ce483123be0832cd714ae1256ffaf | d6b8b87bdeb142d9c2ce894252ac8f77352b643c | refs/heads/master | 2023-03-15T02:35:13.071248 | 2021-03-15T17:51:06 | 2021-03-15T17:51:06 | 345,736,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from rest_framework import permissions
from rest_framework.permissions import BasePermission
class IsAuthorOrReadOnly(BasePermission):
def has_object_permission(self, request, view, obj):
if request.method in permissions.SAFE_METHODS:
return True
return obj.author == request.user
| [
"pat_pi@yahoo.com"
] | pat_pi@yahoo.com |
f4f761270a7a9f05522084b9a90f626f3507e957 | f2bcca3cca6f9745f550a37dabc78c06cf4e8551 | /calendar_bot/actions/direct_sign_out.py | a33f532b917db7b7b48a924adb7b2abf68a2348c | [] | no_license | wonsokoh1019/samplebot | d9bd10b9d1a41a6ad3af7640161f749770e3fdf9 | d937d9c7fb2c157df7716bc0138fed18a40b4008 | refs/heads/master | 2022-10-07T09:58:14.716833 | 2019-11-15T15:37:15 | 2019-11-15T15:37:15 | 221,910,461 | 0 | 1 | null | 2022-09-21T22:06:23 | 2019-11-15T11:27:45 | Python | UTF-8 | Python | false | false | 2,198 | py | # !/bin/env python
# -*- coding: utf-8 -*-
import tornado.web
import logging
from calendar_bot.model.data import i18n_text, make_text, make_quick_reply
from calendar_bot.externals.send_message import push_message
from calendar_bot.actions.message import invalid_message, TimeStruct, \
create_quick_replay_items
from ... | [
"noreply@github.com"
] | wonsokoh1019.noreply@github.com |
c888c63ec49ddbd0b70ca05f332728d7f71ad72a | ce7edd5e65194d339f26a7fbbfad18b6924924da | /MainUI.py | 4c18a6cb82db7ee8b6e4a057aeae7a6086a842df | [] | no_license | KHyoseon/Software_Design | 5e6bc806459940fd1f6e221f1bb038a0576ce0c1 | 77babeefca056d979efe643e108c162e6eb8cc00 | refs/heads/master | 2020-09-20T10:20:56.354866 | 2019-11-27T11:17:03 | 2019-11-27T11:17:03 | 224,449,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from tkinter import *
class MainUI:
def __init__(self, window: Tk, font):
self.window = window
self.frame_main = Frame(window)
| [
"gidskql6671@naver.com"
] | gidskql6671@naver.com |
cf12f36bcde98e4ea719531190bf64dc351d7f18 | 644a77f60a1c12127606bfff2ee0f9f54d55830b | /Tests/utils/docstring_parsers_ut.py | 0b70bdfdfc5a6f077978878461ef752db7b3504a | [] | no_license | FooBarShebang/pos | f825f649fcd8eaf7b5c84ec1687c2b121178cc44 | bff6d6ca8e9e4d64f8b9470beb5902c8e1ec86f0 | refs/heads/master | 2021-06-23T16:30:30.011955 | 2019-03-01T07:44:00 | 2019-03-01T07:44:00 | 133,469,732 | 1 | 0 | null | 2018-10-03T17:16:28 | 2018-05-15T06:31:43 | Python | UTF-8 | Python | false | false | 22,388 | py | #usr/bin/python
"""
Module pos.tests.utils.docstring_parsers_ut
Implements unit testing of the module pos.utils.docstring_parsers.
"""
__version__ = "0.0.1.0"
__date__ = "18-07-2018"
__status__ = "Testing"
#imports
#+ standard libraries
import sys
import unittest
#+ my libraries
import pos.utils.docstring_parser... | [
"a.azarov@diagnoptics.com"
] | a.azarov@diagnoptics.com |
a4faf0f197626e347318d3e265abfc2d9c3edd63 | c53b3e120c59557daaa2fa5b7626413105eb5965 | /tendenci/apps/forums/templatetags/forum_tags.py | 06fe81ca81cd78b74fc8d55d4ef04945694395b8 | [
"BSD-2-Clause"
] | permissive | chendong0444/ams | 8483334d9b687708d533190b62c1fa4fd4690f2c | f2ac4ecc076b223c262f2cde4fa3b35b4a5cd54e | refs/heads/master | 2021-05-01T03:59:18.682836 | 2018-07-23T06:33:41 | 2018-07-23T06:33:41 | 121,194,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | from datetime import datetime
from django.utils.translation import ugettext_lazy as _
from django.template import Library, TemplateSyntaxError
from tendenci.apps.base.template_tags import ListNode, parse_tag_kwargs
from tendenci.apps.forums.models import Category
register = Library()
class ListForumCategoriesNode... | [
"chendong@shinezone.com"
] | chendong@shinezone.com |
114e5402ccd06cb99473cae68e511b8125a40704 | e886a23776c4ecb05306359ada60b3c05651a9c8 | /appy/views.py | 0b9cf0e5739a56dbb26b6c51e169ce89bb0f556f | [] | no_license | brantphoto/appy | fc2350ff19cb9e3f96dd6b47543b69aab8980103 | 488b6a462bf611294f8bdf8303a89f223420d81e | refs/heads/master | 2021-01-10T14:21:23.648173 | 2015-10-05T00:31:47 | 2015-10-05T00:31:47 | 43,658,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from django.shortcuts import render
from appy.models import Question
from rest_framework import viewsets
from appy.serializers import QuestionsSerializer
class QuestionViewSet(viewsets.ModelViewSet):
queryset = Question.objects.all().order_by('-question_text')
serializer_class = QuestionsSerializer
# Create... | [
"brant.barger@gmail.com"
] | brant.barger@gmail.com |
8e7320ae839c6a49bf610bd542a4bdb860e12e84 | 0dabc6017efc0781550233ebb234ab4d22a9150b | /Avarijos_LT_2018.py | 4499d91af60862e8ad0a04a16150feaf7e7bbe91 | [] | no_license | viceruta/My-Final-Work-at-VSC | 27e468e64e074b0ab9ef38ee52fa51048bf26edc | 91213ea4781868059e061dd5e6aa0173a56ad62a | refs/heads/master | 2021-03-10T00:23:16.163455 | 2020-03-10T20:42:04 | 2020-03-10T20:42:04 | 246,398,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,770 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn import linear_model
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
def define(zod):
print("-" * 50)
print(zod)
define('Duomenų pasiėmimas iš failo')
filename = r'C:\Users\Adm... | [
"noreply@github.com"
] | viceruta.noreply@github.com |
769b06663d743e8246de42be5dca168725ef189d | 6e2dd019cec3baa0be2559683606448b5b38dcea | /data/dataset.py | 4107699cd3791b48b48531d7eedd7b3d66b5a800 | [] | no_license | godisboy/Image2image | 8b2b7763b60baf964e36a7955cca29d8a8018470 | ee018cde82ee594186307806df3de9b41c3d50a9 | refs/heads/master | 2020-03-24T11:20:30.095370 | 2018-08-01T07:22:22 | 2018-08-01T07:22:22 | 142,682,857 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | import torch
import numpy as np
import torch.utils.data as data
from os import listdir
from os.path import join
from utils.tools import is_image_file
import os
from PIL import Image
import random
def default_loader(path):
return Image.open(path).convert('RGB')
def ToTensor(pic):
"""Converts a PIL.Image or n... | [
"godisboy"
] | godisboy |
ce9b591e99a544c4dd9964895a9c9f5a26194790 | 8b634dc196162dff328d61bf6f8d4121dfb59bd4 | /Strings/defangIPaddr.py | 20984feacf4936ed4db56e61562583e5c5d002cd | [] | no_license | kqg13/LeetCode | 84268b2146dc8323cb71f041b6664069baaa339c | 1c584f4ca4cda7a3fb3148801a1ff4c73befed24 | refs/heads/master | 2023-08-05T09:46:28.103910 | 2023-07-29T21:02:26 | 2023-07-29T21:02:26 | 165,123,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # String problem 1108: Defanging an IP Address
# Given a valid (IPv4) IP address, return a defanged version of that IP.
# A defanged IP address replaces every period "." with "[.]".
# Input: address = "255.100.50.0" --> Output: "255[.]100[.]50[.]0"
class Solution(object):
def defangIPaddr(self, address):
... | [
"skg2016@nyu.edu"
] | skg2016@nyu.edu |
7910e5619f8e7ca8bc0b0a840627341121ff7be8 | 7a570977ac42ea25c61b812bd9fe3a5ea0a9f33b | /_GTW/_OMP/_SWP/Object_PN.py | a66375e7c7826fd361df7611466c9bdba562fe8d | [
"BSD-3-Clause"
] | permissive | YanjiaSun/tapyr | 6d6f3859abe5c6cf81e12b2319387d02c0d2749f | c261d3e06db1a4fbe0e6535bd97b0134049b3a79 | refs/heads/master | 2021-05-17T22:22:31.570349 | 2020-02-09T09:41:12 | 2020-02-09T09:41:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2013-2016 Mag. Christian Tanzer All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
# #*** <License> ************************************************************#
# This module is part of the package GTW.OMP.SWP.
#
# This module is licensed under the... | [
"tanzer@swing.co.at"
] | tanzer@swing.co.at |
36878b21074fb9d20051faa91f756787b0891e51 | 669e9241b02bdaa303fbc2fd4023b90d4d179a59 | /Beam Balance/base.py | 7b5195e30440e992c67459e272870ad27292cea1 | [] | no_license | benjaminpotter/HatchProjects | 0854cf46ae7c3781468116a5d63b703dd54ae68c | 7f6a948d3474c755d071751b725c059e6c7f3553 | refs/heads/master | 2022-01-28T16:58:03.449073 | 2019-08-16T13:47:30 | 2019-08-16T13:47:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | ang = 0
speed = 0.1
def drawSky():
noStroke()
background(240, 247, 111)
def drawPole():
strokeWeight(35)
stroke(130, 74, 9)
line((ang * 0.2) % (width + 40) - 20, height, (ang * 0.2) % (width + 40) - 20, height - 60)
strokeWeight(12)
stroke(204, 146, 71)
line(0 , height - 48 + 5 * sin(an... | [
"noreply@github.com"
] | benjaminpotter.noreply@github.com |
31f8cbe67b99ed9802497e2ff656d8e43e2f6858 | 039600de1e5bc1d4f21e839b94ae6b2ab6a21a16 | /cosmogrb/utils/time_interval.py | 26760a5a79480dca709255f60d78d37c73d3f28a | [
"BSD-2-Clause"
] | permissive | wematthias/cosmogrb | a9d5df797efecdb43ae3748cb7ca8bbacf36138b | 09852eb4e6e7315bbede507e19a2d57f1b927c3f | refs/heads/master | 2021-04-02T18:23:07.188673 | 2020-06-09T12:24:28 | 2020-06-09T12:24:28 | 248,306,640 | 0 | 0 | BSD-2-Clause | 2020-06-08T15:02:04 | 2020-03-18T18:05:04 | Python | UTF-8 | Python | false | false | 16,891 | py | # from 3ML
import matplotlib.pyplot as plt
import copy
from operator import itemgetter, attrgetter
import numpy as np
from cosmogrb.utils.plotting import step_plot
class IntervalsDoNotOverlap(RuntimeError):
pass
class IntervalsNotContiguous(RuntimeError):
pass
class TimeInterval(object):
def __init_... | [
"jmichaelburgess@gmail.com"
] | jmichaelburgess@gmail.com |
20d720a8873fba8e271892d0efe124a4d83e0a6d | 4139cc9048db5fcc6e2a74b1c736e33513705d6b | /exec.py | 5bd7076c13f97fc4c5509cd542bca960724f91e9 | [] | no_license | rtt987653/stunning-waffle | 1e2921c7b6c1021d13844aa4a7f5d8ef11c8093b | d5c5b856a74ca2b45a5ac22dc8daf48865a3492c | refs/heads/master | 2020-06-17T03:21:29.718349 | 2019-07-08T09:23:20 | 2019-07-08T09:23:20 | 195,778,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | import sys
import hashlib
import binascii
import os
import base64
import re
password = "blah"
salt = "blah"
exec sys.argv[1]
dk = hashlib.pbkdf2_hmac('sha256', password, salt, 100000)
hashed_input = binascii.hexlify(dk)
print hashed_input | [
"rtt@20190830.rtt987653.nccpentest.com"
] | rtt@20190830.rtt987653.nccpentest.com |
c3292163e54a72daf2ef68b081fe8871e31995ff | 6e23e1c235b2d7acdb4a7ee06909e5d4ab95f35f | /lol-leveling-bot/regions.py | b6c87c3b46f4dfe361daa2508d02be2a190fa9e0 | [] | no_license | 00-00-00-11/lol-leveling-bot | 498576cde55b041b124f4aa5a87250f69eeec71a | 05b85e549046f59b946fd4dd07f26fe16089ef3b | refs/heads/master | 2023-02-27T09:21:10.711958 | 2021-02-04T23:14:53 | 2021-02-04T23:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py |
# Champion select region
champ_select_left = (343, 131)
champ_select_right = (934, 583)
# To be removed after daily play is updated to pixel
UPPER_HALF_RECT = [0, 0, 1280, 360]
LOWER_HALF_RECT = [0, 360, 1280, 360]
# Champion Colors
ashe_color = (214, 179, 211)
annie_color = (234, 149, 163)
# Button Coordinates
pl... | [
"tplevesque2@gmail.com"
] | tplevesque2@gmail.com |
565ec351cfb9ac98ccaf321abdedfcdf21f3d13a | 3821904d92258b17117e55888078256659b00d95 | /Modelling.py | f8fb8e2d6d6addfb814cacd7cd470199d663e888 | [] | no_license | Alex-Veskoukis/Data-Science-Bowl-2019 | e50726118ae4d67842861b1855f55286dff51e2a | f11191bd5d7e578e466c7507880e5b33be52ce10 | refs/heads/master | 2022-04-08T10:20:04.810722 | 2022-04-02T12:32:01 | 2022-04-02T12:32:01 | 223,137,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,261 | py | import auxiliary_functions as af
from sklearn.ensemble import RandomForestClassifier
from mlxtend.classifier import EnsembleVoteClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.neighbors import KNeighborsClassifier
from skle... | [
"alex.veskoukis@hotmail.gr"
] | alex.veskoukis@hotmail.gr |
abf40f15a8ebe352af0fcbc8ebd565e54da121e0 | 956eb69ed44db4303bcce321f061dea5ea18371e | /bin/python-config | 9f83f1d3a634a2d69a5110b16bbf2ca52a664cba | [] | no_license | mgznv/intro-github-ubuntu | 975352b6b006d58f3010ac4e6a91851062b9ab1b | 36c6fe0152077324517e1f724c4f090ea7342e91 | refs/heads/master | 2021-01-10T06:30:50.252110 | 2016-02-22T16:08:50 | 2016-02-22T16:08:50 | 52,285,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | #!/home/manuel/__proyecto__/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_info >= ... | [
"leunam.toshi@gmail.com"
] | leunam.toshi@gmail.com | |
615e09be2ec42e5816dfe528abd05e9ec222fdde | 35bdc3bca1c1993db585b2d388a5e1a6aa7b8c34 | /pbc.py | b6adfaac498413d06ba9a3aee949f4eff51e4cf8 | [] | no_license | boudiccadaain/data-analyst-toolkit | 1feaad5c8c43c6e0009e909942ab6894f8e0646d | 215552a4ec4680e2b77bb45a8228894ea14ca3db | refs/heads/master | 2023-03-24T04:11:33.612202 | 2019-09-25T00:58:22 | 2019-09-25T00:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | import os
import utils
def list_files(parent_directory):
file_list = []
for path, dirs, files in os.walk(parent_directory):
for file in files:
file_list.append(os.path.join(path, file))
return file_list
class FileInfo:
def __init__(self, file_path):
self.file_stats = os.... | [
"dallen.mcnerney@gmail.com"
] | dallen.mcnerney@gmail.com |
c2d2edc87a7c610fcf3ad33dfb538bdf3a349ecd | 9ca5fd0228f262807a158038f038d5389b04762b | /김부용/eye blinking password/settings.py | 9cf1f843209c410bd75ad40b1a3e580c2de83150 | [] | no_license | KBY538/2021SMU-DL-eyeblinkingpassword | 4c9033837b9bffcfadaa8d345526446a2b9486a2 | efbe46ce0c97225c4ffb7f1135bd931ad514a614 | refs/heads/main | 2023-05-13T09:28:39.891733 | 2021-06-03T00:18:18 | 2021-06-03T00:18:18 | 356,547,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | #base properties
TITLE = "[Team.느낌알조~?]눈깜빡임잠금해제"
WIDTH = 640
HEIGHT = 480
FPS = 20
MODEL_VER = '2021_05_21_00_52_40.h5'
PATTERN_DATA_PATH = 'blinking/pattern.ini'
#Font
FONT_NAME = 'arial'
GG = "경기천년바탕OTF_Regular.otf"
#sound
INTRO = "Small Bell Jingle.mp3"
MAIN = "Poisoned Rose - Aakash Gandhi.mp3"
ENDING = "The New ... | [
"80605197+KBY538@users.noreply.github.com"
] | 80605197+KBY538@users.noreply.github.com |
c0b142fedc26e869d35ca35ac826b4138e953b8b | ed2ea2ce99a65472f8aad25c6bedcd0dd7d00829 | /cogs/setcommands.py | 4ba8562542de980a0b46587d51bca24f19f646d3 | [
"MIT"
] | permissive | SottaByte98/ham5teakbot3.0 | f8c9f03ae75c84c84b665f2bd8954d698c042fe3 | 2ee76c89fc9a8755b0d7a9cfbbe29638f021daca | refs/heads/main | 2023-07-14T20:28:24.163072 | 2021-08-20T17:13:58 | 2021-08-20T17:13:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,492 | py | import discord
from discord.ext import commands
from luhn import *
from utils.functions import *
class SetCommandCog(commands.Cog):
def __init__(self, client):
self.bot = client
@commands.command()
@commands.has_permissions(manage_guild=True)
@commands.guild_only()
async def setprefix(sel... | [
"ugurkurtulus06@gmail.com"
] | ugurkurtulus06@gmail.com |
07af59e4fd21911f0e83acdc6a37cd681fb09ee2 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/10-classes_20200406020619.py | 3c368bc7751070461a6cc8735fe4401547e784e0 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # A class is like a blueprint for creating objects. An object has properties and methods(functions) associated with it. Almost everything in Python is an object
# Create class
class User:
def __init__ (self, name, email, age):
self.name = name
self.email = email
self.age = age
def greet... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
ad18dc5bf88fb8322c5e3da5ec55f00d8e8bbcd1 | 4bf28ca3710692f89c58741ccfcf6b7169b1d558 | /exercise-5.py | f84b09681201b7614de4610051a1f8313ed70864 | [] | no_license | AbhishekGangula/python-assignment | eedaca002bc9755bcaf5086171958fe7bfdefed5 | fab17a7a1b83e1240e0ebb2b5d83326a44c1881b | refs/heads/master | 2020-08-06T16:59:33.480790 | 2019-10-21T02:59:08 | 2019-10-21T02:59:08 | 213,084,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,546 | py | class Aircraft:
def __init__(self, x=0, y=0):
self.x = x
self.y = y
print(self.x)
print(self.y)
def move_left(self):
print("Moved Left..")
self.x = self.x-1
def move_right(self):
print("Moved Right..")
self.x = self.x+1
def move_up(self... | [
"abhishekgangula@gmail.com"
] | abhishekgangula@gmail.com |
d200a50db49b6d5069a5b11158af97662fe6b5e8 | f90a65159a2dcd6bb39479a9f38f45690f801f82 | /TheoInf/Exercises/Sheet04/Task4/test.py | 3ba8bc26d575d721b5348e7e6780bc94bf8f5d57 | [] | no_license | BUCKFAE/Semester06 | a0471fd4edec2f8e21ff3fcbb5572a53c6b7915f | ef9098d2f534d14815cadd854971d91b3a196833 | refs/heads/master | 2023-06-24T05:06:49.400571 | 2021-07-20T08:47:16 | 2021-07-20T08:47:16 | 359,149,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from main import prodZ
import unittest
class TestMain(unittest.TestCase):
def test_prodZ(self):
self.assertEqual(prodZ(7, 43), 30)
if __name__ == '__main__':
unittest.main()
| [
"informatik.schubert@gmail.com"
] | informatik.schubert@gmail.com |
946d0aef8341a73ec959d323ddba4161150d250c | b9481ebae49cf19de3b5718c69b84f1b59a8e421 | /apps/catax/south_migrations/0004_auto__del_cacountycounts__del_cacountytax__del_cacountytaxcounts__del_.py | fbfcd071308880a2a7170eebbd4ea9af29d08f1a | [] | no_license | arun-skaria/eracks | 06db7e3715afa2c6992fe09f05d6546520c65459 | 532d8a2be31199e7b78ca5e29944deb0a1400753 | refs/heads/master | 2023-01-08T01:40:10.036585 | 2017-07-13T13:10:42 | 2017-07-13T13:10:42 | 97,123,722 | 0 | 0 | null | 2022-12-26T20:16:17 | 2017-07-13T13:08:12 | HTML | UTF-8 | Python | false | false | 3,563 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'Cacountycounts'
db.delete_table(u'cacountycounts')
# Deleting model 'Cacountyta... | [
"nijap@techversantinfotech.com"
] | nijap@techversantinfotech.com |
6ef5099badd87e97224f57a7ee93d45a1d6f7e1a | 87b1a551111b39ccaadaee413a108115a3cef1fb | /reader/read.py | 695a3f21f10dae0319d004b13e270c12e4d9de47 | [
"MIT"
] | permissive | callumfrance/brailler | 339e2dcd88e125aee756e08d08952538132fe43c | fddaa934618120702630fdb1b4d15033b868be79 | refs/heads/master | 2021-07-13T23:44:34.306629 | 2020-06-03T10:19:49 | 2020-06-03T10:19:49 | 236,134,154 | 0 | 0 | MIT | 2020-02-20T09:21:28 | 2020-01-25T06:23:47 | Python | UTF-8 | Python | false | false | 1,196 | py | """
This is the Reader class, which is responsible for directly interfacing
with the Liblouis library functions.
This class allows for the program to output Braille from English,
and to turn input Braille into English to be interpreted by the wider
program or to store in a text file.
"""
from louis import translateStr... | [
"france.callum@gmail.com"
] | france.callum@gmail.com |
746fe6753e7cb096fc1ca57045d8b2b3c6a25ccd | 208367e3e386b0d7b2ac018a3445e6f91bbbb983 | /backend/cmx.py | 750abdacf4f921ecd942760f2b9cffa76d42380e | [] | no_license | mboudreau/InformationAnywhere | 4b4d340067468d8a92031c34b82c6bb8612a9f58 | 7b6ddb95a725b0827d66b646dfbd8c9b76fda9be | refs/heads/master | 2020-03-28T19:35:31.421156 | 2015-03-19T01:13:54 | 2015-03-19T01:13:54 | 32,434,722 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | import urllib2
import ssl
from xml.dom.minidom import *
import os
import re
import xml.sax
import base64
from bottle import route, run, static_file
url = 'https://10.10.20.11/api/contextaware/v1/location/clients'
ssl._create_default_https_context = ssl._create_unverified_context
@route('/location')
def cmx_api():
tr... | [
"icosmine@gmail.com"
] | icosmine@gmail.com |
6dfc4898f0270733e52f179f1d9a16edb48cee2b | f81e2a5fd58a37076e9943347c4c35032f03d881 | /prediction/__init__.py | e6726be4083f4c109f2ff1ea2e42175bd03b702e | [] | no_license | adamlerer/Ca-Backbone-Prediction | 138216ebe70021bb51d9c22e67ae9e3a694e13a6 | c0e7b2372d9bca4a9de2d3f6a88a16f19a1ff921 | refs/heads/master | 2022-04-14T21:40:29.528843 | 2020-04-14T17:36:49 | 2020-04-14T17:36:49 | 255,676,349 | 7 | 5 | null | 2020-04-14T17:22:22 | 2020-04-14T17:22:21 | null | UTF-8 | Python | false | false | 24 | py | from . import prediction | [
"RyanHarlich@hotmail.com"
] | RyanHarlich@hotmail.com |
b1553fd37ce4d7023824e03dd47f186fba0c03f2 | 8ba1ffdb74308f2a58398d23656cb35f24fc2bbd | /jetstud/asgi.py | 2a41eb41b653c4fbada1648bacb2e2ce50b13e4a | [
"MIT"
] | permissive | dobbiedts/jet_stud | 53d7fd141a3a49bc7e237d2ffe92478655a0f839 | c872bdac6fc2fe4c23701bfa2efd8ec6577d9489 | refs/heads/main | 2023-03-06T13:50:56.382420 | 2021-02-18T11:30:07 | 2021-02-18T11:30:07 | 340,012,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for jetstud project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"olaoluwaakinloye@gmail.com"
] | olaoluwaakinloye@gmail.com |
e54152d7badc7d1101d0565e6b3f5e75b0ef9362 | 7dbae76b9db6ce69c560f96d4c8c642901443f8c | /solver.py | 6b8587c483f24ca6d7ac353cd00d1b676fba01e1 | [] | no_license | Aluriak/crack-fallout-terminals | f68eb23a2f57f0f40e6db95583028e6e39f19bdc | aa53a765bcdaf313fe83a5efed5b4e8a62e00d22 | refs/heads/master | 2020-04-07T00:13:30.292837 | 2018-11-21T15:41:30 | 2018-11-21T15:41:30 | 157,895,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,574 | py | """Module that implement the solving routines for the Fallout terminal puzzle.
Puzzle is:
Words (at least 5, no more than 100) are given.
One of them is the 'key'.
Player win if it gives the key before the 5-th try (therefore, 4 words can be tested).
If player gives a word that is not the key,
he gain knowledge about... | [
"lucas.bourneuf@laposte.net"
] | lucas.bourneuf@laposte.net |
0524c401446b5832cbb3571633fb75ead633e864 | 5147e8ddfd23cc0806f3447847f629a55207dc26 | /evaluation/loader.py | 79c12293e39654eaa61ced8b0e3908dbfca1e54e | [] | no_license | kyraropmet/session-rec | efab354aff1eb7569997e80b0ab8e26d4c12982e | b8a78c1ac92a299acca40a957096e28e211a02da | refs/heads/master | 2022-11-29T01:36:37.936495 | 2019-06-07T09:20:10 | 2019-06-07T09:20:10 | 182,852,579 | 6 | 4 | null | 2022-11-21T21:02:16 | 2019-04-22T19:18:01 | Python | UTF-8 | Python | false | false | 19,597 | py | import time
import os.path
import numpy as np
import pandas as pd
from _datetime import timezone, datetime
def load_data( path, file, rows_train=None, rows_test=None, slice_num=None, density=1, train_eval=False ):
'''
Loads a tuple of training and test set with the given parameters.
Parameters
-----... | [
"korw.yraro@gmail.com"
] | korw.yraro@gmail.com |
7e6054637c08dea4cd7585e802b01d0005e53500 | 71d355d11c7150c3dcf9b19100441188c0e10db0 | /DataPersistence/Survey.py | e4cadf86702a9bd1cb8664d68261455dcde597d6 | [] | no_license | VeeanPrasad/cu-feedback | efe0aee3e26223e14c43984b7a23d083dfd96e75 | d48c33b56a28362575bfe22b9252ad3f976a07b0 | refs/heads/master | 2023-04-25T08:04:29.408380 | 2021-05-04T21:08:29 | 2021-05-04T21:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | from __future__ import print_function
import pandas as pd
import numpy as np
from download_sheet_to_csv import download_sheet_to_csv
from get_api_services import get_api_services
from get_spreadsheet_id import get_spreadsheet_id
from db import Database
db = Database()
db.start_db()
SCOPES = ['https://www.googleapis... | [
"james.m.luther@gmail.com"
] | james.m.luther@gmail.com |
3535beab6740f78dbca4296b6132ad5ee5cf65b3 | 8078d588f00a21096ef64132d306b5018a27161e | /tf_mnist_test.py | ada70d0abfc2a7be1e9a5badb4927e5e2b605741 | [] | no_license | ZhangAoCanada/tf2_test | fa97a9ba795f4ca9bf153a81d092f1095b8f81d4 | 80e746577698f7b21addbbd9ebffd023dfddc838 | refs/heads/master | 2022-10-11T10:35:03.427944 | 2020-06-11T15:45:37 | 2020-06-11T15:45:37 | 271,570,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,727 | py | import os
##### set specific gpu #####
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" # see issue #152
os.environ["CUDA_VISIBLE_DEVICES"]="1"
import tensorflow as tf
import tensorflow.nn as nn
import tensorflow.keras as k
import numpy as np
from tqdm import tqdm
class TestModel(tf.Module):
def __init__(self, inpu... | [
"zhangaocanada@gmail.com"
] | zhangaocanada@gmail.com |
14e1ced50a009fefd68e6f8b8fd0bc506b335fb4 | c596fad20771dadba78c4be2b4ffb02ac62526f8 | /Lektion 6/opgave 2.py | 3d79fe0222497b40742e0584460f8b6a7cfe9ebb | [] | no_license | PanTroglodytes/pythonkursus | 717b34d3c97c89c38f6a0eb5508a2ba72b20133b | cdf6faecc37feef7679c470e1656952fe047315f | refs/heads/master | 2020-04-23T08:43:07.659029 | 2019-03-25T06:03:21 | 2019-03-25T06:03:21 | 171,046,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import klasser as k
bog1 = k.Bog(12345680,"Python Crash Course",1,0,2016,525,"Eric Matthes")
materiale2 = k.Materiale(12345679,"Absolute Jacoby",2,1,2020)
film1 = k.Film(12345681,"Alien",15,2,1978,"Ridley Scott",124)
print(bog1.tostring())
print(film1.tostring())
| [
"noreply@github.com"
] | PanTroglodytes.noreply@github.com |
1209bebfea5666bb0bb500481f397bfdbf6a3388 | 3ca67d69abd4e74b7145b340cdda65532f90053b | /programmers/난이도별/level01.숫자_문자열과_영단어/sangmandu.py | bb3a59dcba7d466757ec9492730d0ba4801d0876 | [] | no_license | DKU-STUDY/Algorithm | 19549516984b52a1c5cd73e1ed1e58f774d6d30e | 6f78efdbefd8eedab24e43d74c7dae7f95c2893b | refs/heads/master | 2023-02-18T06:48:39.309641 | 2023-02-09T07:16:14 | 2023-02-09T07:16:14 | 258,455,710 | 175 | 49 | null | 2023-02-09T07:16:16 | 2020-04-24T08:42:27 | Python | UTF-8 | Python | false | false | 559 | py | '''
https://programmers.co.kr/learn/courses/30/lessons/81301
숫자 문자열과 영단어
[풀이]
1. list의 index와 실제 영어 단어를 매칭
2. replace 함수는 한번만이 아니라 해당하는 모든 문자열을 바꾼다.
=> find 함수는 하나만 찾기 때문에 이런 문자열 함수들을 자세히 알아둬야함
'''
def solution(s):
number = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
... | [
"45033215+sangmandu@users.noreply.github.com"
] | 45033215+sangmandu@users.noreply.github.com |
05fed7e484d6901c2f187f70dbd36135174e0781 | c7ddc78c982348773ece7c81e46a8ec59fdf4e5f | /git2labnotebook/git2labnotebook.py | c4c834107d85d78ae893d25d88214b25638ac936 | [
"MIT"
] | permissive | afrendeiro/git2labnotebook | a96b476467c96838be6fea6e93490f2dc53e1ab3 | 4ddee343bcec33e123c267d75880f8196d3bb96f | refs/heads/master | 2021-01-22T06:28:36.007728 | 2017-10-24T09:44:40 | 2017-10-24T09:44:40 | 81,766,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,809 | py | #!/usr/bin/env python
import datetime
import os
import sys
from argparse import ArgumentParser
import git
import pandas as pd
from pkg_resources import resource_filename
try:
import pypandoc
except ImportError:
print("PDF output requires pandoc and pypandoc installed. Will not output PDF.")
def valid_date... | [
"afrendeiro@gmail.com"
] | afrendeiro@gmail.com |
6e08160889fe8d6df4d53493afc406ae76304417 | 8469ddb78cfd06e69bc56ce22f939a37d7631e91 | /train.py | 65dcf67139f1830cee317842147150f0374d4550 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | tsbiosky/Imbalanced-Dataset-Project | 7dcc4181467eaea62d27b426e9f862192a7b05f2 | 26037dc1edc51228c22372638a1187f5f0ae15e4 | refs/heads/master | 2023-01-12T07:23:49.821501 | 2020-11-16T07:10:08 | 2020-11-16T07:10:08 | 287,502,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | import time
from options.train_options import TrainOptions
from data.data_loader import CreateDataLoader
from models.models import create_model
import cv2
import os
import numpy as np
from util.visualizer import Visualizer
opt = TrainOptions().parse()
opt.filename='train45'
data_loader = CreateDataLoader(opt)
dataset ... | [
"a419348285@outlook.com"
] | a419348285@outlook.com |
e83dd2ce6bbdb98e463c2811eb360298bd7c06e6 | 70f3b003bd37b0485b4dc77cb7dd7a44eef22d11 | /Ball_Tracking_Class.py | 6d25199582a9d70651aba9082d74ed8709034322 | [] | no_license | fotherja/SoccerBot-Control-for-RPi3 | 5970915f5a2b46200cf2535175a1d708aa9efe13 | d3b51e9b7b1d9590d1560f26bd6890ee7307faa8 | refs/heads/master | 2020-04-07T00:32:39.485749 | 2018-11-24T16:11:18 | 2018-11-24T16:11:18 | 157,907,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,534 | py | import numpy as np
import time
import cv2
class TrackingBallFns:
def __init__(self):
self.Ball_Center = np.array([0,0])
self.Prev_Ball_C = np.array([0,0])
self.Displacement = np.array([0,0])
self.Gross_Travel_Displacement = np.array([0,0])
self.Position_200ms_ago = np.array([0,0])
self.Last... | [
"noreply@github.com"
] | fotherja.noreply@github.com |
1a73d0345f90c3568d494d72d2fd48dd037f3ee8 | 4a24e79774288b9a6cfeddafadbf6761c1bf6024 | /57. Insert Interval.py | 80429131e04979eb1231639a2d0ac0d870f63d4e | [] | no_license | NemanjaStamatovic/LeetCode | d8cb243419e96b86b799332edc70139e48c8e382 | fbe6187992547781e3abeee614e0c668a0f40150 | refs/heads/main | 2023-04-04T22:45:49.762445 | 2021-04-06T16:58:00 | 2021-04-06T16:58:00 | 316,270,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | class Solution:
def insert(self, intervals: List[List[int]], newInterval: List[int]) -> List[List[int]]:
intervals.append(newInterval)
intervals = sorted(intervals, key=lambda x: x[0])
merged = []
for interval in intervals:
if len(merge... | [
"noreply@github.com"
] | NemanjaStamatovic.noreply@github.com |
f680a1a80743e7f387486682b9717f2bc5353e9a | 68e2b27475f2073d9c76559406aec2f6c457cdcd | /Problems/Logistic function/task.py | d6a061be4477da878fcad1d7846b43c6128209b8 | [] | no_license | thuylinh225/Hyperskill_credit_calculator | 6cc15aadf5596dd3603a98d9a393918fd0815792 | d8bb85a9a195a700334923b7e10c67021c712151 | refs/heads/master | 2022-11-29T07:33:50.976990 | 2020-07-31T20:54:00 | 2020-07-31T20:54:00 | 284,127,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | import math
x = int(input())
logistic = math.exp(x) / (math.exp(x) + 1)
print(round(logistic, 2))
| [
"tranthuylinh225@gmail.com"
] | tranthuylinh225@gmail.com |
864c3a9ce4df58453c97c4f74092ffeb671660d1 | ea92cc24b190018e80d31f4810a8cb60e80bc937 | /greetings/urls.py | 42055bfcabd3781af6fc664bf6b4aa63f5743712 | [] | no_license | rahul2240/helloworld | c1f86475206ba97283a4d1f00a5cb5ce9e9311bc | 191ed9f8442c64e2f75c5dd601cd1bc50f3ec6b4 | refs/heads/master | 2021-08-06T08:00:37.406345 | 2017-11-04T06:17:05 | 2017-11-04T06:17:15 | 109,423,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from django.conf.urls import url
from .views import index
urlpatterns = [
url(r'^hello$', index),
]
| [
"rahulsingh2240@gmail.com"
] | rahulsingh2240@gmail.com |
e54b375edca33484ad465ffc60506649f2ce2916 | fcef3602a044a82b75eb1bdee87a5eb347a56769 | /recolo/demoData/dataverseData.py | 8c45c01e537a093ab4a725407bd8dc7ae84b4a57 | [
"MIT"
] | permissive | PolymerGuy/recolo | 5cb9c6b01d7eeb4108710606341518aa13efc1d1 | 05b14f0834fa675579eabdf43fac046259df19bb | refs/heads/master | 2023-04-12T00:17:50.150126 | 2022-03-11T12:42:44 | 2022-03-11T12:42:44 | 343,329,602 | 4 | 1 | MIT | 2022-03-05T08:04:49 | 2021-03-01T07:39:40 | Python | UTF-8 | Python | false | false | 4,815 | py | import numpy as np
import wget
import logging
import requests
from bs4 import BeautifulSoup
from urllib import parse
from recolo import list_files_in_folder
import os
import pathlib
cwd = pathlib.Path(__file__).parent.resolve()
"""" This module provides data from an impact hammer experiment where the hammer was knoc... | [
"sindre.n.olufsen@ntnu.no"
] | sindre.n.olufsen@ntnu.no |
82014c6a6505ef2b805778e153ee1eb3fe9cf736 | a54baf26c2404f47702efe13e6243916d65c9a92 | /models/helpers.py | 23e1839d79f9010cc3f80cee88f35d5e2034bdeb | [] | no_license | arjunchatterjee196/chatbot | 8c78a07ac49c5bf3f908dfa30b2c3bc241f6db63 | a6456d281739e3b802f25352367f43b970aab01b | refs/heads/master | 2020-06-19T16:40:26.249026 | 2016-11-26T19:36:19 | 2016-11-26T19:36:19 | 74,846,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | import array
import numpy as np
import tensorflow as tf
from collections import defaultdict
def load_vocab(filename):
vocab = None
with open(filename) as f:
vocab = f.read().splitlines()
dct = defaultdict(int)
for idx, word in enumerate(vocab):
dct[word] = idx
return [vocab, dct]
... | [
"arjruler93@gmail.com"
] | arjruler93@gmail.com |
adf624ec2cb3565ac1f3dc6efd122adb4042a1b1 | e74d3ecb941c358b03a8283a3530a66d7eafe7d4 | /run-mongo.py | 21649fbbe46f15ae70a683c4db04e16a22c65ded | [] | no_license | tracktor1/mongo | 53c72edbbc46b1719ead24673993899a2ba77a67 | f4ea46d734794e00e5886eabb678190543856eec | refs/heads/master | 2020-04-03T13:35:54.448050 | 2018-11-03T21:58:08 | 2018-11-03T21:58:08 | 155,289,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | #!/usr/bin/env python
import os
import sys
import subprocess
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-u", "--user", help='create user only', default="no_arg")
args = parser.parse_args()
if args.user == "no_arg":
subprocess.call(["ansible-playbook", "-K", "./mongo.yml"])
elif args... | [
"39525540+tracktor1@users.noreply.github.com"
] | 39525540+tracktor1@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.