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
5b2e633438e6df952a07296adb3699013e3958b4
401a15e9196c2a9136982298b13394a87789bcb9
/sesion4.py
5f4fa9551479cda1846fbbb247d65fd5363a7d05
[]
no_license
afuen5/clase
f4f6aed41a720cf989e0c834a34552edf4b0d781
816f914e5ca8dcd1c89afbcf8cbe0e5f003f99f7
refs/heads/main
2023-04-21T14:09:10.982178
2021-05-10T22:52:21
2021-05-10T22:52:21
364,003,641
0
0
null
null
null
null
UTF-8
Python
false
false
1,328
py
### Investigacion (Modulos) # 1: Uso de Modulo tkinter: Crear una interfaz grafica (GUI) básica que sea de 600 px de ancho y 400 px de alto, fondo negro y un botton en el centrode la pantalla # 2: Como hacer manejo de archivos: Leer un archivo y mostrarlo en pantalla (consola), posteriormente agregar una linea al final...
[ "afuen5" ]
afuen5
28a5ec365a0f43f2dc31e01296e2913532096669
6d2bef91d3cb9bdd1e1b0728e2bb4e60781fdeee
/Regular Expression/1.py
bff9bfde8983f0250212f8c492015e63e17fa0b6
[]
no_license
AnuragT04/Python
e0f69ce098a772d8096926daee8f5a551eb0da71
946d6aef3073c667eb0aa4edbe6026c1600784f7
refs/heads/master
2022-10-17T17:37:39.887660
2020-06-12T11:04:10
2020-06-12T11:04:10
271,777,061
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
import re file=input() fh=open(file) sum=0 for line in fh: y=re.findall('[0-9]+',line) if len(y)==0: continue for x in y: sum=sum+int(x) print(sum)
[ "tanurag0@gmail.com" ]
tanurag0@gmail.com
df1132978b10c9d167cca545c9bcc2be89f811ca
7e729ea05a6a4e297bb832b77720a18cd0227805
/Projects/Online Workouts/w3resource/Basic - Part-II/program-6.py
5eee6ff572c22738bec57bd8df0328a6ebf7c813
[ "MIT" ]
permissive
ivenpoker/Python-Projects
943d127ae900df52b43aac07c395e9d717196115
2975e1bd687ec8dbcc7a4842c13466cb86292679
refs/heads/master
2022-12-18T16:36:37.954835
2020-09-14T19:42:46
2020-09-14T19:43:09
180,323,469
1
0
MIT
2022-12-08T01:05:35
2019-04-09T08:42:40
Python
UTF-8
Python
false
false
5,493
py
#!/usr/bin/env python3 ############################################################################################ # # # Program purpose: Print a long text, convert the string to a list and print all the # # ...
[ "nwaforhappiyvan@gmail.com" ]
nwaforhappiyvan@gmail.com
36beb244070ec712de47cbc8a3a96244deecd9f8
e3ed1561febf37999177dcd1721498361b7bc1ef
/programFlowChallenge_v2.py
29eb25360296c38800d6f63285463e5484296580
[]
no_license
ReginaGates/ControlFlowChalleng_CompletePythonMasterclass
f5820c88d57fb3721860793c5be5fe409b40e504
b9b911811f5583cb1c3a1ddf8c8f259e46164d9b
refs/heads/master
2021-06-30T12:11:35.921482
2017-09-16T23:09:38
2017-09-16T23:09:38
103,775,185
0
0
null
null
null
null
UTF-8
Python
false
false
1,487
py
#Complete Python Masterclass - Tim Buchalka & Jean-Paul Roberts #Challenge - Program Flow #Regina Gates - First efforts with many edits, but without checking, and without correcting for all cases, like the IP # address starting with '.' # Even though this code does not account for every error, including adding a ...
[ "noreply@github.com" ]
ReginaGates.noreply@github.com
0c0ac05186a84c2057b58b3d16491f2eb46e9c6e
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/anagram/063a2fcf6ae348c3a27d6d06c1cbfcb7.py
3b33fb0cd8f1cc2a526c7688c9e0f069636d306c
[]
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
286
py
def detect_anagrams(word, choices): anagrams = [] lWord = list(word.lower()) lWord.sort() for choice in choices: if choice.lower() == word.lower(): continue lChoice = list(choice.lower()) lChoice.sort() if lChoice == lWord: anagrams.append(choice) return anagrams
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
8d1cafb9fe59b6c383d923cdbbbb61bb7ec8646c
213a777b28766e9b0519d29429d603a5dd24d212
/utils.py
9249bc42700791d0ae16b17682d2efebc558f918
[]
no_license
DanyGLewin/EDV_calculator
4611e9cae5ae3f679986828b29b7fd45939fa4af
88d62117e3ed3059fb14cf7c10f45f10882e23c4
refs/heads/master
2020-06-04T15:33:42.941484
2019-12-08T06:51:11
2019-12-08T06:51:11
192,084,100
0
0
null
null
null
null
UTF-8
Python
false
false
520
py
ROLL_PATTERN = '(^\d+d\d+)|([\+\-]\d+d\d+)|([\+\-]\d+(?!d))' BONUS_PATTERN = '(^[+-]?\d+)|((?<=\/)[+-]?\d+)*' def concat_lists(list_of_iters): output = [] for sub in list_of_iters: for item in sub: output.append(item) return output def remove_nulls(origin_list): return [item for it...
[ "danyglewin@gmail.com" ]
danyglewin@gmail.com
35c2a7c8d0c931f45a0dd7d9628d753e03d26eeb
d5995f397c12fae062c9feb08912c8b3a109ead8
/src/src/settings.py
bde7335bd642f8bbd06b02735bd43ee1a73c7c90
[]
no_license
waffle-iron/eAccount
70cd1499da25cff4882885e239824498c57fb83b
e453164be127b1d957ceebd0d649a269d4dbce94
refs/heads/master
2021-01-18T11:15:15.558356
2016-06-17T16:23:39
2016-06-17T16:23:39
61,370,935
0
0
null
2016-06-17T12:06:51
2016-06-17T12:06:51
null
UTF-8
Python
false
false
3,554
py
""" Django settings for src project. Generated by 'django-admin startproject' using Django 1.9.6. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os # Bui...
[ "yugio33@yahoo.com" ]
yugio33@yahoo.com
2d55ad40d2015db0c2f791d3071e3206f93564f8
673f9f418a6c951bcca783cfece870a5d7420a14
/crocoite/browser.py
35187897acde3e293c4dddb9640a61699082096f
[ "MIT" ]
permissive
backwardn/crocoite
0253f15ca8375ce3a13db2c4c8e0234e341e5c7c
d93e59456e432562e6ceb7a275af47682cc30aa9
refs/heads/master
2020-07-02T10:35:36.834675
2019-12-30T11:02:03
2019-12-30T11:02:03
201,501,043
0
0
null
2019-08-09T16:08:48
2019-08-09T16:08:48
null
UTF-8
Python
false
false
20,130
py
# Copyright (c) 2017 crocoite contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publi...
[ "lars@6xq.net" ]
lars@6xq.net
7e7ef5d3b401e5fb75250bfbcaee25f66f613d00
8e3486b4a58f13f46d306b0aca8ff57f7de83fb2
/tennisGame/tennis.py
c5429138d195f2ff1ed85a8d86f1bec5265b26a8
[]
no_license
Minato007/python-dev
18f8c5af1da3877a64625f5c95546fd3fe34d752
ccd1904df3dccf959a2b5d7806ffd89e55f5a487
refs/heads/master
2020-04-09T08:43:55.498204
2018-12-10T06:03:06
2018-12-10T06:03:06
160,206,127
0
0
null
null
null
null
UTF-8
Python
false
false
5,490
py
import pygame import random state = 'gamestart' class Player: def __init__(self, x, y, width, height): self.x = x self.y = y self.width = width self.height = height self.dy = 0 self.score = 0 class Ball: def __init__(self, x, y, size): self.x = x ...
[ "yellow_sama@mail.ru" ]
yellow_sama@mail.ru
82104f52be98ba50d1033ca4bd55be1cbe90cd11
02e116cd7ae672d3ab999c6f389288c7aa1028ec
/ttt.py
d7da943ae9ce3a15f1f6c5a87697df020c978f6a
[]
no_license
tanxiumei/interfaceWushui
6abcd8ccb8948d2b596b654bac471d8d40abf868
ffa2ee71dbcbfed1f0153943eda9640bfc29e31e
refs/heads/master
2022-12-20T06:31:18.629197
2020-10-13T03:06:23
2020-10-13T03:06:23
303,572,596
0
0
null
null
null
null
UTF-8
Python
false
false
607
py
import datetime from xlrd import open_workbook from xlutils.copy import copy import os from test_excel import ParamFactory # r_xls = open_workbook('equipmentid_param.xls') # 读取excel文件 # row = r_xls.sheets()[0].nrows # 获取已有的行数 # excel = copy(r_xls) # 将xlrd的对象转化为xlwt的对象 # table = excel.get_sheet(0) # 获取要操作的sheet #...
[ "757560315@qq.com" ]
757560315@qq.com
b1e80f1195383a0d0027d1835ba47e97c66c74ae
97aa853c4e05fdade3938205e4e63b66ebb430b1
/Ex3.4.4.2-2.py
b0fdf4e6a6f6f2bb1e40cef84131016a95093aba
[]
no_license
EllenHoffmann/BasicTrack3
30fd397e5e60837c3e0c0fcf3b93f9e51ffc0a4e
95b57f5dfd0360288449f9eafb2e3cb1d51421a8
refs/heads/master
2022-12-23T17:20:27.656751
2020-09-30T15:58:02
2020-09-30T15:58:02
296,393,060
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] for element in range(12): print("One of the months of the year is "+str(months[element]))
[ "70917850+EllenHoffmann@users.noreply.github.com" ]
70917850+EllenHoffmann@users.noreply.github.com
15cc7da59b5b7e081c4812327c849244bde141ca
8e6c2c8fc95551416fe17b1f423f8ed80f44bce4
/example_scripts/getusers.py
fae0871815a9bd73f808424ad0e73120bad1a0ff
[ "MIT" ]
permissive
Tethik/eves-ornate-lockbox
b1b512aa0b7c4a32f5597478b7115f2d5cdd01a2
9eb9acbb19b193d0f852c70d6c626f62780f4f4e
refs/heads/master
2021-01-02T23:07:46.725732
2014-03-13T02:08:32
2014-03-13T02:08:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
#!/usr/bin/python import httplib import base64 import json addr = "127.0.0.1:5000" endpoint = "/users" auth = "secret:" use_ssl = False headers = {"Content-type": "application/json", "Accept": "text/plain", "Authorization": "Basic " + base64.b64encode(auth)} h1 = httplib.HTTPConnection(addr) if use_ssl: h1 = httpl...
[ "joakim@uddholm.com" ]
joakim@uddholm.com
317510238069e3293f597cd045c2e062ec2bbe4a
a4ee3873ccd4b09a26b9febff9cd1a678dd90cc2
/solved/swea5650.py
760e244f3f34133ef82a8671c933fefe7f975c8d
[]
no_license
young2141/PS_Codes
d37d97d9b92931d27cefcef052a7f3f897ef8e1c
856fe7646d133cfb7e107b05ffe8d03ab8901e2d
refs/heads/master
2023-02-25T19:10:41.890785
2023-02-14T04:16:36
2023-02-14T04:16:36
191,506,351
0
0
null
2019-06-14T04:06:42
2019-06-12T05:53:16
C++
UTF-8
Python
false
false
1,659
py
#sw expert academy 5650 dfs from pprint import pprint dir = {'UP':0,'RIGHT':1,'DOWN':2,'LEFT':3} bounce = [[2,2,1,3,2,2,0,0,0,0,0], [3,3,3,2,0,3,1,1,1,1,1], [0,1,0,0,3,0,2,2,2,2,2], [1,0,2,1,1,1,3,3,3,3,3],] dy = [-1,0,1,0] dx = [0,1,0,-1] def find(w,n,ii,jj,holes,d): count = 0 y,...
[ "noreply@github.com" ]
young2141.noreply@github.com
840826d546985b8d4f5d68fd09f358fd07b5351b
887f89e6e86b76a6fd128e76e3d198731fc3761d
/class_circle.py
a24894e0651641f8d0f76188d86baf3e67418cf8
[]
no_license
geovanne97/python_learn
5c38a26cf7a81ec28de400acee11d89320dfcfc9
5914d1bc4ee91244f0ef95537031fec25ffc0f97
refs/heads/master
2021-10-24T18:39:19.351875
2019-03-27T17:46:03
2019-03-27T17:46:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
class Circle(): pi = 3.14 def __init__(self,radius=1): self.radius = radius def area(self): return self.radius*self.radius * Circle.pi def set_radius(self,new_r): self.radius = new_r myc = Circle(3) myc.set_radius(100) print(myc.area())
[ "geovannessaraiva97@gmail.com" ]
geovannessaraiva97@gmail.com
57f7d154697ab944d89794d7699105e1d49cb04e
165d45b38f681f80c4f98372415835a14befb9dd
/bin/doc-format
3467037e15117c305cdbd5cc091647486e2f09ad
[]
no_license
Mark-Seaman/My-Book-Online
4f9c5c9c2b6bd21ee6e2105f6def29ce744d3366
0a280ef23b31dc26ab1522aac147f887314b4786
refs/heads/master
2016-08-12T17:21:15.336778
2014-08-16T04:04:47
2014-08-16T04:04:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
97
#!/usr/bin/env python # Wiki text formatter from util.doc import doc_format print doc_format()
[ "mark.seaman@shrinking-world.com" ]
mark.seaman@shrinking-world.com
e3750481e5642f2fbcf23111a5675c34b4bd7ebc
20d651e38f44b89da6bd0e0d0e0bd95d47a9fa59
/Offer_letter_Sender3.py
797743b2d5934d77ad7cf0dcc84c7089c373e6ee
[]
no_license
Lokesh2703/Offer_letter_Sender
1af3a1872781e6955f1476d59cd9d61a8a0b10f7
3d8028502300ffabfa5ffdf78850e1e6d09c3cf8
refs/heads/master
2020-07-02T18:09:51.994535
2019-12-08T17:52:45
2019-12-08T17:52:45
201,617,426
0
1
null
null
null
null
UTF-8
Python
false
false
4,824
py
import docx import pandas as pd from docx.shared import Pt import os.path from os import chdir, getcwd, listdir, path from time import strftime from win32com import client import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email...
[ "lokesh27dinu@gmail.com" ]
lokesh27dinu@gmail.com
2020450ea58f4a4a9171ab7759091f459163df60
f8d1f30ac8a84da3c2cce90b84877da0a319915c
/auctioning_platform/processes/processes/tests/test_repository.py
a15637ac306b094374f217a70d905913d0c0eb44
[ "MIT" ]
permissive
adarshkhanna/clean-architecture
422f688369ca4c903030ca6f1f4db8ecd98eec9c
ade099a0d0bcec94f40354f168b2d544fa5c963d
refs/heads/master
2022-07-18T01:05:28.784222
2020-03-24T10:33:07
2020-03-24T10:33:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,612
py
from datetime import datetime import json from uuid import UUID, uuid4 import pytest from sqlalchemy.engine import Connection, Engine from foundation.value_objects.factories import get_dollars from db_infrastructure import Base from processes.paying_for_won_item import PayingForWonItemSagaData from processes.paying...
[ "nnplaya@gmail.com" ]
nnplaya@gmail.com
27e7ead9ca8d68e2688dcaec1a4636af3e1847e3
636b06785f30842d06d0d46cdcb1962f4ba06f80
/TAREA3NOV.py
0b1b436d29728be3dfa1fe07fee2c38de56c5f8c
[]
no_license
danhertz/1729448MC
42513f9eb5ccbcc40ab15fac7a2fd47451bcd00d
f4a72c66d06d8e3673895cbb04e9a01c4ba6dfe3
refs/heads/master
2021-01-16T00:42:40.154663
2017-11-26T17:08:24
2017-11-26T17:08:24
99,973,729
0
0
null
null
null
null
UTF-8
Python
false
false
6,479
py
from heapq import heappop,heappush from copy import deepcopy import random import time def permutation(lst): if len(lst)==0: return[] if len(lst)==1: return[lst] l=[]#empty list that will store current permutation for i in range(len(lst)): m=lst[i] remlst=ls...
[ "noreply@github.com" ]
danhertz.noreply@github.com
e3f4a0d2c64a1cb5c48b01ab7fc2fac0d9a935db
cc9db03d28772a3c9eba55653520edb060214b6d
/client.py
e06f59adeefddf1e7300a62c0c3c4f9c7eab617b
[ "Apache-2.0" ]
permissive
absalon-james/slareporting
c9d4451577bca4db0c1a459d7f23f8061074890b
e5d40300980704a3127e051385df506fd8696e8a
refs/heads/master
2021-05-06T08:32:06.911198
2017-12-12T19:06:35
2017-12-12T19:06:35
114,028,504
0
0
null
null
null
null
UTF-8
Python
false
false
726
py
import conf from rackspace_monitoring.providers import get_driver from rackspace_monitoring.types import Provider _DRIVER_INSTANCE = None def get_instance(): """Get instance of the rackspace cloud monitoring driver. :returns: Driver instance :rtype: rackspace_monitoring.drivers.rackspace.RackspaceMonit...
[ "james.absalon@rackspace.com" ]
james.absalon@rackspace.com
ae6030a7ee1665e7560ad306041b5a4173b4cd97
c9d0f92ac66c5a3985561644af95104e280989ff
/shortpath_플로이드.py
01b64269d84e3ba59c2f1c83c75ed7d3387f761b
[]
no_license
yuheunk/practice_codes
e0dcafd9c0a9cadef65ac08608502e92123b37b5
4a32b89bc970d1a8fecd69246fa9a8564bd25a60
refs/heads/main
2023-06-13T08:22:41.164562
2021-07-06T16:24:42
2021-07-06T16:24:42
359,150,260
0
0
null
2021-06-22T10:49:15
2021-04-18T13:25:58
Python
UTF-8
Python
false
false
591
py
n = int(input()) # 도시의 개수 m = int(input()) # 버스의 개수 INF = int(1e9) graph = [[INF] * (n+1) for _ in range(n+1)] for i in range(1, n+1): for j in range(1, n+1): if i == j: graph[i][j] = 0 for _ in range(m): a, b, cost = map(int, input().split()) graph[a][b] = min(graph[a][b], cost) fo...
[ "noreply@github.com" ]
yuheunk.noreply@github.com
d2bdc5b50d1079d0023a7c74cdfee7ecc573f16e
0f5a1b4c8abeab2c745c74f5a25e41a76b7502b0
/playerset1.py
520ac5594e85d6b9194f5a74206d9a3350c80c04
[]
no_license
sujatha-2/test
d0c7af8a11061ce45acd19e86c3e7cfc50f43179
9a6338fabd4168ae327cdc61e790dddfda8bba9d
refs/heads/master
2021-07-19T13:28:46.356761
2019-01-09T09:19:10
2019-01-09T09:19:10
148,427,865
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
def reverse(test): n=len(test) x="" for i in range(n-1,-1,-1) x +=[i] return x
[ "noreply@github.com" ]
sujatha-2.noreply@github.com
99e8b72197f24e59ac04683b6008b7960dd77155
27531f9c4387fe06315cf9f7c6112075b697a287
/eshop/shop/urls.py
33fb75a029f8118556358362e709754f9a3dbd12
[]
no_license
HommerSimson/456
3a6e41354d9ebf64b8b1d9ffdf23e24db62dd6ca
14a324f32a068364928635de872cb4b9989900b3
refs/heads/master
2020-09-19T10:30:08.158039
2020-02-18T02:26:57
2020-02-18T02:26:57
224,223,215
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
from django.urls import path from . import views as v urlpatterns = [ path('', v.startpage, name='base'), path('product.html', v.product, name='product'), path('product/<str:name>', v.product, name='product'), path('tool1.html', v.product, name='index.html') ]
[ "nurgazy-b@mail.ru" ]
nurgazy-b@mail.ru
101a5696b8aad8c09f8916cead8f4f19cde869ac
2e1d9a5c08fc7a2206aeefc5e26f21bc8aae8cc0
/net/dev/experiments/ryu/simpleApp.py
002876a6f654f84c04f90fcfa1bff73b84a0a8f3
[ "Apache-2.0" ]
permissive
yuanzy97/DSSnet
7c0022b09287ada14c68d9bd7ba82560853c8100
32cda144e8671a81764f43a9f0136c0774194934
refs/heads/master
2021-06-13T19:51:59.087539
2017-03-05T23:30:12
2017-03-05T23:30:12
257,770,623
1
0
NOASSERTION
2020-04-22T02:31:33
2020-04-22T02:31:33
null
UTF-8
Python
false
false
762
py
#!/bin/python from ryu.base import app_manager from ryu.controller import ofp_event from ryu.controller.handler import MAIN_DISPATCHER from ryu.controller.handler import set_ev_cls class L2Switch(app_manager.RyuApp): def __init__(self, *args, **kwargs): super(L2Switch, self).__init__(*args, **kwargs) ...
[ "channon@hawk.iit.edu" ]
channon@hawk.iit.edu
38787be35c06d807255871c320e51e22f5c49f5c
6a8988d59f26cef3eeeedd9a79fb7e3423938dc7
/src/notifier.py
d5596bf7e817b75859756074c1c91e94f9ea60d5
[]
no_license
romanz/thesis
12734288ce0d65b48991ef17ec2f5c180c9b4219
cc322dacbb68f7ceb0df5e12b8cc35acbe97ee83
refs/heads/master
2023-01-27T17:08:44.809715
2023-01-07T18:41:23
2023-01-07T18:41:23
1,760,138
7
6
null
null
null
null
UTF-8
Python
false
false
136
py
import pynotify import sys title, msg = sys.argv[1:] assert( pynotify.init('MATLAB') ) n = pynotify.Notification(title, msg) n.show()
[ "roman.zeyde@gmail.com" ]
roman.zeyde@gmail.com
54ca65e1b54cd60842f6a27d6366cd637cc0b26a
c83e356d265a1d294733885c373d0a4c258c2d5e
/mayan/apps/redactions/permissions.py
760a850481312c00d610618552a6b5d7d38df2f4
[ "Apache-2.0" ]
permissive
TrellixVulnTeam/fall-2021-hw2-451-unavailable-for-legal-reasons_6YX3
4160809d2c96707a196b8c94ea9e4df1a119d96a
0e4e919fd2e1ded6711354a0330135283e87f8c7
refs/heads/master
2023-08-21T23:36:41.230179
2021-10-02T03:51:12
2021-10-02T03:51:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
from django.utils.translation import ugettext_lazy as _ from mayan.apps.permissions import PermissionNamespace namespace = PermissionNamespace(label=_('Redactions'), name='redactions') permission_redaction_create = namespace.add_permission( label=_('Create new redactions'), name='redaction_create' ) per...
[ "79801878+Meng87@users.noreply.github.com" ]
79801878+Meng87@users.noreply.github.com
8facef555e2fce74f3f4349268342956fbbb35d1
833073527929332580a77d6df477da7deb861b31
/harsh.py
ebcbb0749f0ee85dd46f755779d3e8407c3d1572
[]
no_license
harshjain1212/harsh.py
5d153afbe7fcfef0330db076a7ec1737aa30215f
e239fe5499ddd30c4fa2e5853f4b7c2633fbf8c5
refs/heads/main
2023-02-19T02:34:21.979175
2021-01-20T07:11:06
2021-01-20T07:11:06
331,222,385
0
0
null
null
null
null
UTF-8
Python
false
false
20
py
print("harsh jain")
[ "noreply@github.com" ]
harshjain1212.noreply@github.com
d084a05d64b5f1e53f4e8f957b543df711070822
f61b523ed1fe05dbd851b385584581aa92da92ab
/sigaram/portaladmin/forms/AdminForm.py
baa0a4927f94acae40400481653f69fc1618e7c3
[]
no_license
vjega/python-tutorial
1357318f14b86df1e82ec09249f7d6717bf20f3f
7387605298964db82a05b2da8202a520d12b4265
refs/heads/master
2016-09-06T03:13:15.708801
2015-07-12T12:04:18
2015-07-12T12:04:18
26,359,976
0
0
null
null
null
null
UTF-8
Python
false
false
1,692
py
from django.utils.translation import (ugettext as _,) from django import forms from crispy_forms.helper import FormHelper #from crispy_forms.layout import Submit class AdminForm(forms.Form): username = forms.CharField( label = _("User Name"), max_length = 100, required = True, widget...
[ "karthik@jega.in" ]
karthik@jega.in
c7a6d5dd8c41683db707f5e807851a5f4cf4e8bd
686810fe4ae24622dcd2dd191ddb97141232f191
/DepositionComponents/deposition_components/generic/ChamberCryoPump.py
9ad392564889361a2d763ccce5198ee3d4aede49
[]
no_license
JPHammonds/DepositionComponents
22f904f7d0c08af21a819affa5ec708771e080a9
600b74b8f2f35662597286af5d39ed462a16669d
refs/heads/master
2020-04-18T04:43:50.216740
2019-04-18T20:56:05
2019-04-18T20:56:05
167,250,224
0
0
null
null
null
null
UTF-8
Python
false
false
2,551
py
''' Created on Jan 23, 2019 @author: hammonds ''' from deposition_components.DepositionListDevice import DepositionListDevice from ophyd import (Component as Cpt, DynamicDeviceComponent as DDC, FormattedComponent as FC) from ophyd.signal import EpicsSignal class ChamberCryoPump(DepositionListDevice...
[ "JPHammonds@anl.gov" ]
JPHammonds@anl.gov
0af37c323dddce4b21f380367cbf84bb87457ff2
38915942f3719baea08396f819707c885b9315ce
/smartsheet/staircase/views/foup_wafer/wafer.py
9418871f86877c85c3bf6ca911d5c8e40e5c834e
[]
no_license
leopardary/smartsheet
a2c2b351dd86b904c110c458ffa587d0458158c4
4b51a672d6b13ec018a80fa0f88b7d22a5bb9d70
refs/heads/python3a
2022-11-28T19:23:32.072813
2019-04-21T23:23:41
2019-04-21T23:23:41
89,207,891
0
1
null
2022-11-19T19:21:30
2017-04-24T07:00:55
Python
UTF-8
Python
false
false
2,249
py
from ...models import Group,Foup from django.shortcuts import render from django.http import HttpResponseRedirect def reclaim_wafers(request,foup_name): staircase=Group.objects.filter(group_name='Staircase') foup_list=Foup.objects.filter(owner__group=staircase[0]) foup=Foup.objects.filter(foupname=foup_nam...
[ "wenjiao.wang1@gmail.com" ]
wenjiao.wang1@gmail.com
d0f2be29afccd729b75626d77f3edb71dca4e661
c9c6c77995923d50e93da62b95a21455f812aec1
/src/bumblebot/__main__.py
151bb2def08d243400a1af16196915300644d117
[]
no_license
Salade2chats/PyBumbleBot
cf463a1fda0a02c6c9de25b42648bb31452c88e4
c8db36a4ea1f6eb20dcd5351aede5760dd82506c
refs/heads/master
2020-03-26T13:35:29.019065
2018-08-16T06:32:05
2018-08-16T06:32:05
144,946,674
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
import os from pathlib import Path import click from aiohttp import web from dotenv import load_dotenv from bumblebot.controllers import Route from bumblebot.services.google import GoogleClient from .__about__ import __version__ from .services.logger import Logger @click.group(context_settings={'help_option_names':...
[ "dams_terdam@hotmail.fr" ]
dams_terdam@hotmail.fr
ff2509fe6271ef698b97954ab63a3aee5c0e98f2
1e7e56dbc226bddf380eec960588a393e98181cc
/CGI/scripts/genTable_F.py
be3c2271ad0452fddf498ad79ea7cc5d10da3052
[]
no_license
pratik-pato/SE01_UI_Database-Programming
a01926c2b915063529838d29c6102059f302b672
1ee16eb53c28acbeaa91e35430b295390915dca1
refs/heads/master
2020-05-20T06:03:11.571129
2016-06-20T16:37:37
2016-06-20T16:37:37
51,758,221
0
0
null
null
null
null
UTF-8
Python
false
false
4,645
py
#!/usr/bin/python import genJS, psycopg2, sys, cgi form = cgi.FieldStorage() sDbname = 'SE01' sUser = 'pratik_SE' sHost = 'localhost' sPass = 'easports' sTablename = form["tabName"].value conn = psycopg2.connect("dbname={} user={} host={} password={}".format(sDbname, sUser, sHost, sPass)) conn.autocommit = True cursor...
[ "charwad.pratik@gmail.com" ]
charwad.pratik@gmail.com
c710e670770a317ba2296df1ec8941a218f68280
d1aef0e74af3ed2e4f040ff0812ed13dd754db36
/ScrapyTieba/ScrapyTieba/items.py
660599df0aded2624f713ced087fa7cd2093aa64
[]
no_license
Sora-Shiro/ScrapyLearn
d5533c98c02b0b809051bee942a9580ed2b9a067
74e30f05e4ba1ff550647f09e4f05c9afd9fddb8
refs/heads/master
2021-03-16T05:17:21.005992
2017-10-24T11:58:20
2017-10-24T11:58:20
102,423,813
0
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class ScrapyTiebaItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass class AskScoreToUniversityIt...
[ "sora95shiro@gmail.com" ]
sora95shiro@gmail.com
8c7586d5846fb0da1f4c78ceef07a2846e702539
b3699724907850fd26cbce4509fec83a33b89760
/python/ray/tune/tests/tutorial.py
2a11f12a0a30ba85b8c40724372c07d9ccd6238f
[ "Apache-2.0", "MIT" ]
permissive
BonsaiAI/ray
5e2f26a81d865a795261d11f9182aca7f07c7b97
941d30f082fe879ea30618af14327c25b5a21a74
refs/heads/master
2023-06-12T05:15:29.370188
2021-05-06T07:03:53
2021-05-06T07:03:53
233,708,687
3
5
Apache-2.0
2023-05-27T08:06:37
2020-01-13T22:41:47
Python
UTF-8
Python
false
false
5,578
py
# flake8: noqa # Original Code: https://github.com/pytorch/examples/blob/master/mnist/main.py # yapf: disable # __tutorial_imports_begin__ import numpy as np import torch import torch.optim as optim import torch.nn as nn from torchvision import datasets, transforms from torch.utils.data import DataLoader import torch....
[ "noreply@github.com" ]
BonsaiAI.noreply@github.com
9cdc72971265fd7c826adf688d020d149cc8c294
bebf27238fa188fef8543734073dd4751ad55571
/novel_site/utils/chapterParser.py
48ed0aa4322faa7e8afed93565bec11b0c6e2d0f
[]
no_license
gzgdouru/novel_site_beta
0a37ec24deb5b6eafd865fb9c3776173d1861aaa
746add0e932ffebb67f8b8ec7e6d232c0db31a53
refs/heads/master
2020-04-10T04:34:30.438838
2019-03-08T09:36:55
2019-03-08T09:36:55
160,802,317
1
0
null
null
null
null
UTF-8
Python
false
false
551
py
import requests from scrapy.selector import Selector def biquge(chapter_url): response = requests.get(url=chapter_url, timeout=30) response.encoding = "gbk" selector = Selector(text=response.text) chapter_content = selector.css("#content").extract_first() return chapter_content def dingdian(chap...
[ "18719091650@163.com" ]
18719091650@163.com
6414e7086c1d84b2116fe4e08bbe5218f727d644
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/bce5dc09fb584ddbbf75a78974fd9b10.py
f42a5b206c0d0919b4d9754bfdb324e6e44c9797
[]
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
421
py
def isyelling(some_string): return some_string.isupper() def issilent(some_string): return not some_string or some_string.isspace() def isquestion(some_string): return some_string.strip().endswith('?') def hey(some_string): if issilent(some_string): return 'Fine. Be that way!' elif isyelling(some_string): r...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
d6f05fb498b4f1dd44b70803aa3d8600c9859ee7
c6f2c9a5b69364f7547872ca3c3e5d74aa7efffb
/PythonCode/ReadingAndWritingFile.py
667812fa59250c19ada2b1a6bc70a24a6beaf9d8
[ "MIT" ]
permissive
aredshaw/CodePractice
87886378d974da5e5f12379a6ee9f57b539fa1c8
1f5267d5cfc83b803a8b0da3cacc9b306492555e
refs/heads/master
2020-07-26T02:02:36.993207
2020-03-06T23:57:38
2020-03-06T23:57:38
208,496,198
1
1
null
null
null
null
UTF-8
Python
false
false
662
py
test_file = open("list.txt", "w" ) test_file.write("This is a test file. It is also a text file.\nI wonder how it will look altogether.\nWhen I write, I write a lot, \nso there is no telling where I will end up \nwith all the thoughts in my mind emptied out onto \nthe paper, or in this case, the screen.") test_file.clo...
[ "akredshaw@gmail.com" ]
akredshaw@gmail.com
039f6e3ac3e74a9d72e9a33b99502e945ff5acce
fe9b12cb370cc4f1682a04cb36e49132d3831bbe
/main.py
53361d009b4c04354c54122b30c23814e746e827
[]
no_license
nellyloh/capstone-dashboard
268bab57608f1528c4d69d9dba774729c16ee2f6
8a61cba81d3bfb9851661e2e8259c3e3d5e6814c
refs/heads/master
2023-08-22T09:12:21.715988
2021-10-29T20:27:18
2021-10-29T20:27:18
422,670,079
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
import individual_query import webscraper_confidence_score import sentiment_model def run(name=None, nationality=None, gender=None, dob=None): individual_dict = individual_query.preprocess_input_to_dict(name, nationality=nationality, gender=gender, dob=dob) print(individual_dict) articles = webscraper_confidence_...
[ "nellylohhj@gmail.com" ]
nellylohhj@gmail.com
afcf3e94534926410bf355eff01591a124e75f29
86c6012e7ff8b19db7db21606f7747cc6b9f3a01
/2018/11/2.py
1a5f89fedbd57a67f3c2ca221b66a91b442a49b3
[]
no_license
philipdexter/aoc
6af67f2e1bb7e073fc503c9299a7c02f63b85949
7300e8313f40e4e7011d13445bdad047a9cc3349
refs/heads/master
2023-07-21T15:28:32.106390
2023-07-19T16:29:50
2023-07-19T16:29:50
224,866,380
0
0
null
null
null
null
UTF-8
Python
false
false
1,223
py
grid_serial = 7347 def power_level(x, y): rack_id = x + 10 power_level = rack_id * y power_level += grid_serial power_level *= rack_id power_level = int(str(power_level)[len(str(power_level))-3]) power_level -= 5 return power_level grid = {} for x in range(1,300+1): for y in range(1,300+1): grid[...
[ "philip.dexter@gmail.com" ]
philip.dexter@gmail.com
ecb11a70f2b662b8e13c6273c3e6d58537f6ba8f
241d5598e142044cbbf3419e13ff34647fe3ecf7
/rplugin/python3/denite/modules/models/helper_file.py
273cb80f2273bb05fd3b6074f0bdb92c6da62541
[ "MIT" ]
permissive
5t111111/denite-rails
9c97b1bde19849b4bf972f02fc426b7721bbee9f
92051d48161b8b8405d841cd9afac568f4b6d3b7
refs/heads/master
2020-02-26T14:20:33.989571
2018-03-02T01:30:45
2018-03-02T01:30:45
83,693,724
16
4
MIT
2017-12-22T01:10:46
2017-03-02T15:33:30
Python
UTF-8
Python
false
false
217
py
import re import os from file_base import FileBase class HelperFile(FileBase): def remove_base_directory(self, filename, root_path): return re.sub(os.path.join(root_path, 'app/helpers/'), '', filename)
[ "baenej@gmail.com" ]
baenej@gmail.com
836b1542757d6be323c0dad4e47b22b765668668
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flasharray/FA_2_19/models/protection_group_performance_array_response.py
caf0612d16c7e59f33e6bc5ecee79508d9843abf
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
5,730
py
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.19 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
[ "noreply@github.com" ]
PureStorage-OpenConnect.noreply@github.com
4b86573d1ab2cc4435f396b62b8121820bdf8b2e
7c1eeff9d7f8d560a1185bfd08eb5e72ce3d16c8
/app/controllers/default.py
d01b1b1a469a9e8bd597e60aaa35da8beef03739
[]
no_license
ThuBitencourtt/Robotica
2dc47b1d298e6b6c96efbd26c6bbee45b4e0e300
a00dac34e388f1f514eb04c67c8beaae0053114f
refs/heads/master
2022-10-16T22:02:02.415991
2019-11-30T15:03:56
2019-11-30T15:03:56
225,048,615
0
1
null
2022-09-30T18:38:29
2019-11-30T17:45:23
Python
UTF-8
Python
false
false
3,679
py
from flask import render_template, flash, redirect, url_for, request from flask_login import login_user, logout_user from app import app, db, lm from app.models.tables import User, Equipe,Pessoa,Robo,Evento from app.models.forms import LoginForm, CadastroForm,EquipeForm,PessoaForm,RoboForm,EventoForm @lm.user_loader ...
[ "thubittencourt@gmail.com" ]
thubittencourt@gmail.com
5bb26fe6d3ac1cb96a4721f35a25d9b559af030d
d125c002a6447c3f14022b786b07712a7f5b4974
/tests/bugs/core_4342_test.py
97096578735a1274aa965853094b2e0e8017292a
[ "MIT" ]
permissive
FirebirdSQL/firebird-qa
89d5b0035071f9f69d1c869997afff60c005fca9
cae18186f8c31511a7f68248b20f03be2f0b97c6
refs/heads/master
2023-08-03T02:14:36.302876
2023-07-31T23:02:56
2023-07-31T23:02:56
295,681,819
3
2
MIT
2023-06-16T10:05:55
2020-09-15T09:41:22
Python
UTF-8
Python
false
false
3,787
py
#coding:utf-8 """ ID: issue-4664 ISSUE: 4664 TITLE: Non-privileged user can delete records from RDB$SECURITY_CLASSES table DESCRIPTION: JIRA: CORE-4342 FBTEST: bugs.core_4342 """ import pytest from firebird.qa import * db = db_factory() user_boss = user_factory('db', name='boss', pas...
[ "pcisar@ibphoenix.cz" ]
pcisar@ibphoenix.cz
5974c8ec865d8d87eb8b82c094fe53a8eb6590e5
f0e9ca3b430df6dab9fd751c303f13e4960f4525
/02_steamer.py
b4e1abba1f2cc9992b26c244d324149c54bc4235
[]
no_license
williampsena/python-text-mining
358c9584a3d6d2c04062c35936baa0f112c5498a
6965a79c1b56bd3c79ebaddc957a9d8a4a980a15
refs/heads/master
2020-07-04T16:35:54.996064
2019-08-21T12:08:57
2019-08-21T12:08:57
202,341,963
0
0
null
null
null
null
UTF-8
Python
false
false
1,277
py
import pprint from nltk.corpus import stopwords from nltk.tokenize import word_tokenize from nltk.stem import RSLPStemmer pp = pprint.PrettyPrinter(width=41, compact=True) vegeta_quotes = [ ('voce nao e derrotado quando perde, mais sim quando voce desiste.', 'confiante'), ('O melhor guerreiro nao e aquele que...
[ "william.sena@skyhub.com.br" ]
william.sena@skyhub.com.br
b7fe085ff8dce1ab31fe203403a7b410fa8a0c12
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_154/ch36_2019_03_31_18_21_54_470469.py
90561c9807d62d34458835e2a8c956f92b4a3b79
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
def eh_primo(n): test = 2 while(test < n): if ((n % test) == 0): return False test = test + 1 return True
[ "you@example.com" ]
you@example.com
aaef38487542dbdce3bb3d81b11cc3488e8bccb9
8bf986158c409f5ca6178625aae6da9ed3c1f220
/doc/sphinxext/altair_ext/altairplot.py
d5b3558f6c97d806fda09d5387a97580f060b36b
[ "BSD-3-Clause" ]
permissive
Sawon1234/altair
48585efcab53257f45333fad6cb7e6987ddf0f98
5f243e07fa1c29f76105c99aeb177e00f02ec87d
refs/heads/master
2020-05-21T06:06:11.950552
2017-02-27T16:26:14
2017-02-27T16:26:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,391
py
""" Altair Plot Sphinx Extension ============================ This extension provides a means of inserting live-rendered Altair plots within sphinx documentation. There are two directives defined: ``altair-setup`` and ``altiar-plot``. ``altair-setup`` code is used to set-up various options prior to running the plot co...
[ "jakevdp@gmail.com" ]
jakevdp@gmail.com
efaf48f8b7e9fa2ee10924f45b9ae140e3122820
09b8a76c8ae621fc761904823ab2cdc70f347432
/src/user_interface.py
1a5705afc43a1412e026818bef13e3ab4551bd67
[ "MIT" ]
permissive
dat-adi/alarm-clock
d99c94789a0b2f9e25f8deda8fec43d782998e73
2d877506fe518197fe5f36eab10f09843db42a83
refs/heads/master
2022-07-23T17:51:16.538454
2020-05-21T17:58:47
2020-05-21T17:58:47
264,455,545
1
0
MIT
2020-05-21T07:01:41
2020-05-16T14:31:11
Python
UTF-8
Python
false
false
563
py
from tkinter import Frame, Canvas, Tk, Text, LEFT, INSERT, END, messagebox, Button, X from alarming_service import time_diff def GUI_present(): root = Tk() canvas = Canvas(root) canvas.pack() frame = Frame(canvas) frame.pack() top_text = Text(frame) top_text.insert( INSERT, ...
[ "naruita201@gmail.com" ]
naruita201@gmail.com
e091044347fb78ed6d76d5bc87eacd18312f6d61
7f3c7a65d3723d0f48beea963fa9a7477cf6627f
/PSFModel.py
7a9ca0f6ee4be2d770b4e50171b8f389c9b02071
[]
no_license
chrisglass/yapsfm
a123ff453f0d443b12abb222c10a95b8b3f2d148
9f98236e9eed6bfec53b391a5a9b735311556f1a
refs/heads/master
2021-01-14T10:36:57.568234
2015-04-02T23:21:03
2015-04-02T23:21:03
33,686,906
0
0
null
2015-04-09T19:00:26
2015-04-09T19:00:26
null
UTF-8
Python
false
false
13,206
py
#! /usr/bin/env python import glob,os,sys import numpy as np import png import matplotlib.pyplot as plt from scipy.misc import imread # image handling import scipy.ndimage.interpolation # fits file handling and creation import pyfits from datetime import datetime as dt """ PSF modeling script: the pupil function P...
[ "glass.florian@gmail.com" ]
glass.florian@gmail.com
8a29d8ec0053b40edbbece96e608f56686f2d9a6
9ba95ea195c81fe30bffb198e79dc4714721a5b8
/mydjangoapp/settings.py
40aaadc3e922116dad4e2e3c69bec4f46a2b3384
[]
no_license
vincedgy/myDjangoApp
11b01d5f153a8b098191c4a88c5f4211c2f70592
e6e7c72eb1e867d18c86cff7d1841f33961a2d9c
refs/heads/master
2020-12-30T15:54:07.179984
2017-05-28T15:49:13
2017-05-28T15:49:13
91,178,863
0
0
null
null
null
null
UTF-8
Python
false
false
3,375
py
""" Django settings for mydjangoapp project. Generated by 'django-admin startproject' using Django 1.11.1. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impor...
[ "vincent.dagoury@gmail.com" ]
vincent.dagoury@gmail.com
76b47bd8eeca351c4f100b539b893b28f6a792cc
fa1ad0497672ac45496874fd126a5183a4adb732
/packages/fetchai/skills/http_echo/__init__.py
d3af87d5c5ab4695215fd225e1584a455b2c0a49
[ "Apache-2.0" ]
permissive
mandyohhh/agents-aea
ccb2733fb29b176e49cfe4e51c9c9b298d3f0e33
2aaddb7c21e1867c4d27ac9ebc24813bb0ebc383
refs/heads/master
2022-12-29T16:04:47.900424
2020-10-22T10:48:56
2020-10-22T10:48:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
971
py
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
[ "david.minarsch@googlemail.com" ]
david.minarsch@googlemail.com
17e2f6c60b01961da10ac63d2ac67f8fa340512e
d556f1fa146449372e936a949596491b96806103
/app/__init__.py
22be826c96db32727162b13681b36634865339c6
[ "Apache-2.0" ]
permissive
JoeCare/flask_geolocation_api
ab787f20671005826ac1e1002eed36f40516729d
ad9ea0d22b738a7af8421cc57c972bd0e0fa80da
refs/heads/main
2023-04-12T17:41:54.966314
2021-04-22T10:20:01
2021-04-22T10:20:01
345,092,700
1
0
null
2021-04-22T10:20:02
2021-03-06T12:50:12
Python
UTF-8
Python
false
false
1,195
py
import connexion, os from connexion.resolver import RestyResolver from flask import json from flask_sqlalchemy import SQLAlchemy from flask_marshmallow import Marshmallow # Globally accessible libraries db = SQLAlchemy() mm = Marshmallow() def init_app(): """Initialize the Connexion application.""" BASE_DIR...
[ "g.j.werpachowski@gmail.com" ]
g.j.werpachowski@gmail.com
4469a205271be71211792e4e410a31ceb73c97a3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03039/s380617982.py
05c63b4c723fb34981688390e758d41368de3c07
[]
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
934
py
facs = [] M = 1000000007 def modulo(n): global facs facs = [1]*(n+1) last = 1 for i in range(1,n+1): last = facs[i] = mulmod(last,i,M) def mulmod(x,y,p): return x*y % p def divmod(x,y,p): return mulmod(x,powmod(y,p-2,p),p) def ncr(n,r): if n<r: return 0 if n==r...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1dd2b3b4713bed074603e0875f7ea483ca5f70bd
a49ca01336d39f190f79260a42ed03767d5dcb0c
/utilities/videoReaderSanityCheck.py
a13fd1f288328b6e7b8e1e57256d246552fa6477
[ "MIT" ]
permissive
chuanzhidong/VehicleTracking
63db5b86edf6cc0badde1ba7bb0b40d8c9763213
99d5c284ee1dc5765e23ad13a87d82e12e7d576b
refs/heads/master
2021-06-07T12:17:14.289700
2016-10-24T14:59:34
2016-10-24T14:59:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,297
py
#opencv videoreader test import cv2 import os import sys import pdb import glob as glob import matplotlib.pyplot as plt from DataPathclass import * DataPathobj = DataPath(dataSource,VideoIndex) from parameterClass import * Parameterobj = parameter(dataSource,VideoIndex) def readVideo(cap,subSampRate): """when r...
[ "lichenge0223@gmail.com" ]
lichenge0223@gmail.com
f67f859a7e2900c934553cd65d4ef27df1d6ee01
d1ea0e695930dd4cfc3128c0da467e4bdceeabd9
/select_clinic.sikuli/select_clinic.py
c9a61cf8df20831634b720cf598f18232a644abb
[ "Apache-2.0" ]
permissive
openmash/medsphere-test
0f21ea89fed349a91598eb43e19814ed4dc14d52
2d5e1270b4109b8b8151e24fd3531ea02fcbfb8a
refs/heads/master
2016-09-06T05:53:09.605267
2013-06-13T15:45:45
2013-06-13T15:45:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
doubleClick(Pattern("1370982387429.png").similar(0.82)) click("SelectaClinic.png") click(Pattern("open.png").similar(0.74)) find(Pattern("day_week.png").similar(0.63))
[ "brian.lampe@medsphere.com" ]
brian.lampe@medsphere.com
fe179eb42dd6808abd571b1e19a57611dd1ede2f
571d36f865b545c0a72134e586fbcddd6953a68b
/eng/exp.py
73da614e6fd63870fbafd08e7aeab587133b8490
[]
no_license
andrew-turner/Ditto
a5a79faaf31cc44d08ac5f70fa2ac51e51d1b60f
72841fc503c716ac3b524e42f2311cbd9d18a092
refs/heads/master
2020-12-24T14:19:01.164846
2015-05-20T08:42:26
2015-05-20T08:42:26
35,935,568
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
#exp formulas as given by Bulbapedia GEN5_FORMULA = True def getExpGain(victor, defeated, isTrainer=False): #trainer trainer = 1.5 if isTrainer else 1.0 #traded traded = 1 #base exp baseExp = defeated.baseExp #lucky egg egg = 1 #levels levelVictor = victor.level levelDefeated = de...
[ "andrew.turner@merton.ox.ac.uk" ]
andrew.turner@merton.ox.ac.uk
b6af0a9db82f3be76d56551c91e3297834915960
fc5f91b253900aabb35b2f79efa40088581f29ec
/My_face_recognition/mtcnn_model.py
5f0f9421dffa4c1398526066765ec822acb45d6a
[]
no_license
lksshub/deeplearning
c153218698359bdfa32b1b7fbb77bd293dbd4932
9e812cbc6ef4a97742e9d3648748cfe60c85fac9
refs/heads/master
2020-05-04T08:16:56.752501
2019-05-09T15:28:50
2019-05-09T15:28:50
179,043,187
0
0
null
null
null
null
UTF-8
Python
false
false
14,887
py
#coding:utf-8 import tensorflow as tf from tensorflow.contrib import slim from tensorflow.contrib.tensorboard.plugins import projector import numpy as np num_keep_radio = 0.7 #define prelu def prelu(inputs): alphas = tf.get_variable("alphas", shape=inputs.get_shape()[-1], dtype=tf.float32, initializer=tf.constant_i...
[ "980294373@qq.com" ]
980294373@qq.com
d714174bbebc40b2b5cb7665cf0e3f7820e877ef
471af9c94770ee1e977f72f9f6bd2164db71096e
/ntuple/cmssw.py
6e7738e20c0318aec1656e2808016d99313737d4
[ "BSD-3-Clause", "MIT" ]
permissive
kreczko/ntuple
670e4625413121cff96fe6577954a2d88b5a04e7
6a2cebe3a416db5d7130056921e0c7c32caa1736
refs/heads/master
2016-08-10T08:37:08.966445
2016-02-16T11:33:55
2016-02-16T11:33:55
50,350,545
1
0
null
null
null
null
UTF-8
Python
false
false
476
py
''' Converter for the CMS SoftWare (CMSSW). It requires a fully set up CMSSW area ''' class CMSSWConverter(): def __init__(self): # check if CMSSW_BASE is set import os is_cmssw_set_up = 'CMSSW_base' in os.environ if not is_cmssw_set_up: import sys ...
[ "lkreczko@googlemail.com" ]
lkreczko@googlemail.com
672f3ed658454c5a1185392cddf2dbd60fabaa86
c6247cdc17bd1d1d88255d21e6f09c838fda2bf4
/tsp_utils.py
2dfe162783aab4fba0d3ceaa8ea4c132e159be9a
[]
no_license
maxgold/gcn
7925f86ff8b37eef9cea4101f5e15036a84bcf45
75f42e616d8fd76b0fea4e00f87b19d041eb6f02
refs/heads/master
2021-04-26T16:52:33.247542
2017-10-13T20:23:45
2017-10-13T20:23:45
106,869,800
0
0
null
null
null
null
UTF-8
Python
false
false
19,791
py
## Utility functions to help generate TSP instances import numpy as np import pickle from copy import copy import numpy.linalg as nlg import json import random #from tsp_utils import * class create_adj(object): def __init__(self, tsp_size): self.scale = 1000 self.matrix = np.round(np.random.rand(tsp_size,...
[ "noreply@github.com" ]
maxgold.noreply@github.com
01672a0b179f6d2567c1d6f70a6625e4008e3138
2f7ade102f564759bb55d7dfde2bf25ca78fe574
/Set5/Challenge33/CP5_33.py
f9e0aa941f2eddfdfd77bba48217aee1629f159b
[]
no_license
grandfoosier/Cryptopals
6d60948b148ab6edd433fb413e849a4e623ef9e2
a1f79e240ba9264b31569786ba7d05122e313958
refs/heads/master
2020-04-11T02:06:00.700555
2016-12-13T21:02:52
2016-12-13T21:02:52
68,222,057
1
0
null
null
null
null
UTF-8
Python
false
false
1,404
py
from hashlib import sha256 from random import randint import array ####################################################################### # Bignum given from challenge class Bignum(object): def __init__(self): self.ig = 0xffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a...
[ "noreply@github.com" ]
grandfoosier.noreply@github.com
713733903696af3343825284b53b29db939fa02c
7b971c4465797ef3561c69d7dd819fcd5d2a3736
/support/convexhull.py
09d10549b53809c9137859ed37245488e2207775
[]
no_license
rkdarst/pcd
978d898a3ab1a1fd8fbb48e644234d66fe7ab95f
54dda49ce8a248446b236a42b9d313ce410cf58b
refs/heads/master
2021-01-23T12:38:09.042817
2016-11-01T18:02:25
2016-11-01T18:02:25
22,289,583
5
4
null
null
null
null
UTF-8
Python
false
false
1,647
py
# See convexhull.txt def convex_hull(points): """Computes the convex hull of a set of 2D points. Input: an iterable sequence of (x, y) pairs representing the points. Output: a list of vertices of the convex hull in counter-clockwise order, starting from the vertex with the lexicographically smallest...
[ "rkd@zgib.net" ]
rkd@zgib.net
230ce511489abcd87db47480e34a007726c3f506
c971765ba3c96288f935455e3fdc587ddec3689c
/ir_cdk_stacks/in_clt_01_stack.py
1b12aea8a3c8ccb68582513593d5404b339379f6
[]
no_license
martinpham97/IR-CDK-Stacks
358f5d7e93fb896179b2223dc2eee9faed4824b0
1043f4bf1639b6736b3f7858ed7b2b82975ae7bb
refs/heads/master
2022-07-31T01:13:47.802511
2020-05-07T07:26:14
2020-05-07T07:26:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,550
py
from aws_cdk import ( core, aws_cloudwatch as cloudwatch, aws_events as events, aws_lambda as _lambda, aws_iam as iam, aws_events_targets as event_target, aws_sns as sns, aws_sns_subscriptions as subs ) import os import logging logger = logging.getLogger(__name__) class InClt01Stack(c...
[ "neel64tamakuwala@gmail.com" ]
neel64tamakuwala@gmail.com
e6013f393ec1ffdd449fa0e80b59f1a6ecfe2670
482d7d5770dfc17db5b1a0e780b634d3a9f5572a
/Project3/code/metrics.py
5e5138446ddf6d1d6ee23c6b0936f15c514201be
[]
no_license
fmsilver89/FYS_STK_4155
5b9a878330f06a29ec6416aff92a06ebf0ba8dd8
189b7ef0d18cd9395eeab82702376ae91ad24d17
refs/heads/master
2020-09-11T13:24:15.963157
2019-11-16T10:18:21
2019-11-16T10:18:21
222,078,923
0
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
# Required packages import numpy as np def mean_squared_error(y, yhat): """ y: True values. yhat: Predictions. """ res = y - yhat mse = np.divide(res.T@res, len(yhat)) return mse def r2_score(y, yhat): """ y: True values. yhat: Predictions. ...
[ "noreply@github.com" ]
fmsilver89.noreply@github.com
26384a8be39cfdd9cbc222c1b37af013b4f43337
1a330be03318d7402e4525d435ee169e0f796f04
/camera_info_publisher/camera_info_publisher.py
23f5ff979a3f1b82c640d1117abacef7769ce1aa
[]
no_license
purdue-arc/autonomous_car_misc
dd5f5998a86a97776428a4c8796c98c1b9cae9bf
235e2f15550c73a1adb8fb22f4ce25929164ed37
refs/heads/master
2020-05-02T17:26:11.180990
2019-04-14T23:39:16
2019-04-14T23:39:16
178,098,194
0
1
null
2019-10-01T00:27:45
2019-03-28T00:53:07
C++
UTF-8
Python
false
false
2,542
py
""" pointgrey_camera_driver (at least the version installed with apt-get) doesn't properly handle camera info in indigo. This node is a work-around that will read in a camera calibration .yaml file (as created by the cameracalibrator.py in the camera_calibration pkg), convert it to a valid sensor_msgs/CameraInfo m...
[ "baxter26@purdue.edu" ]
baxter26@purdue.edu
73487eec553a8ca6ee7d5c5a641a16f04d766f97
b0c071eabc7f51f335892d49b015e28fcc4e9193
/flaskRestFul/venv/bin/easy_install
dc197eb4ac7fa243d1b9ddba65756660efe84d2f
[]
no_license
namelessfintech/FlaskMastery
64627e4e8d361ec2e92794a39935342d356eb6d4
6b98d42f591ee8a0ff023f0f5b55f87e550c3c36
refs/heads/master
2021-11-04T17:26:52.323376
2019-04-28T00:53:11
2019-04-28T00:53:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
316
#!/Users/MichaelBallard/Documents/2019/Code/Python/April/FlaskMaster/flaskRestFul/venv/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "MichaelBallard@Michaels-MacBook-Pro-2.local" ]
MichaelBallard@Michaels-MacBook-Pro-2.local
d54f6d7bb54e5d14437247e6cb86fbff66c9e315
e980879b9b96e466fae0093d2aa10c90119f03a9
/splitPng/ToolFunctions.py
c653fc6777ec8c87a45e60b5b2827f831d7d974a
[]
no_license
a77654135/tools
dc05d3e6fba2b59ae8a8fa36b3e6160f15e2908a
c0028c108bf8ea46f6cc09076441f28cae640d63
refs/heads/master
2018-12-25T20:42:37.754086
2018-11-21T05:47:48
2018-11-21T05:47:48
120,172,453
0
0
null
null
null
null
UTF-8
Python
false
false
4,775
py
# encoding: utf-8 """ ------------------------------------------------- File Name: ToolFunctions @time: 2018/2/4 21:47 @author: talus @desc: 图片处理工具 ------------------------------------------------- """ import os from PIL import Image class Rectangle(): def __init__(self, l=0, t=0, w=1, h=1): ...
[ "330243319@qq.com" ]
330243319@qq.com
e251803edc18e68adf1d9ff53ea3f1996e1b583b
5ee6faeb3ba5959e09cbadbb72dc0b5e0398ea1e
/run_meta_mnist_test.py
46770d1a0b8387911dae1649342a086e2b2e4430
[]
no_license
jinxu06/hmaml
6ce2e5a6307da69eb848592ac0d351afcf07aa94
990c9faaa9731987c7514c61cfa40ce850312316
refs/heads/master
2020-03-20T17:56:08.689374
2018-06-30T11:24:38
2018-06-30T11:24:38
137,568,663
1
0
null
null
null
null
UTF-8
Python
false
false
2,312
py
import numpy as np import tensorflow as tf import argparse from models.classifiers import MNISTClassifier from components.learners import Learner import data.mnist as mnist parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--load_params', help='', action='sto...
[ "aaron.jin.xu@gmail.com" ]
aaron.jin.xu@gmail.com
d129125455e5894af610b0743efe026f7323fd5d
b79fc4af0ac609a843c72e62e048f3fd60874432
/dialogue_system/nlu/nlu_baseline.py
5eac696f4250123ad81457508eaabe187ba30ca8
[]
no_license
brunonishimoto/tcc
fbb69e5301976861eca96bcb8f6c2600720bdd48
65a0912568bb749efc9482ee764cb32525d7d863
refs/heads/master
2021-07-15T19:19:51.704993
2019-12-17T03:14:35
2019-12-17T03:14:35
183,078,387
0
0
null
null
null
null
UTF-8
Python
false
false
7,605
py
''' Created on Jul 13, 2016 @author: xiul ''' import pickle import copy import numpy as np import dialogue_system.constants as const from .models import lstm, biLSTM class NLUBaseline: def __init__(self, config): self.params = config["nlu"] self.load_model(self.params["model_pa...
[ "bruno_nishimoto@hotmail.com" ]
bruno_nishimoto@hotmail.com
8cfda395886a48b53b8e306391b70fbde83ef18a
3f46af2da32d9f02d1ebbdef6784ece1d64aace3
/Production/python/PrivateSamples/EMJ_2018_mMed-1200_mDark-20_ctau-100_unflavored-down_cff.py
2d231881276a2803259a3c8b46582978055f33c9
[]
no_license
cms-svj/TreeMaker
53bf4b1e35d2e2a4fa99c13c2c8b60a207676b6d
0ded877bcac801a2a394ad90ed987a20caa72a4c
refs/heads/Run2_2017
2023-07-19T07:14:39.175712
2020-10-06T21:10:26
2020-10-06T21:10:26
305,753,513
0
0
null
2021-01-26T18:58:54
2020-10-20T15:32:19
null
UTF-8
Python
false
false
1,892
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ 'gsiftp://hepcms-gridftp.u...
[ "enochnotsocool@gmail.com" ]
enochnotsocool@gmail.com
fd92b400aba7975634f692a9bc72e5a32d14007d
c41b7b8ef0d988705d27f596263dda348b813212
/utils/imessage.py
d203aa2ca31a9fcdd587a8a76a6ad2629936baf6
[ "MIT" ]
permissive
baileyparker/whatwouldisay.py
9f1f4dd9388f09d2e0d96ea42f93c5fd98275303
ce4369459a5f60fb17251db05bac0be01efe116e
refs/heads/master
2016-09-05T16:49:17.854025
2015-07-02T05:05:56
2015-07-02T05:05:56
31,518,049
4
0
null
null
null
null
UTF-8
Python
false
false
415
py
import sqlite3 from os.path import expanduser from operator import itemgetter MESSAGES_FROM_ME_QUERY = 'SELECT `text` FROM message WHERE `is_from_me` = 1' def get_messages_from_me(): """ Get all "from me" iMessages in the current users's chat db. """ with sqlite3.connect(expanduser('~/Library/Messag...
[ "b@ileyparker.com" ]
b@ileyparker.com
62037dc524fbfe889a05c6ccbeca2cba8372ee45
31648f7ba9eab4841eae211b36a5ea025570ba78
/exam_project_15_08_2021/project/drink/tea.py
17e302adc54276324b486af969746bdf9b962f1d
[ "MIT" ]
permissive
ivan-yosifov88/python_oop_june_2021
d7c4d3ba93f3085f019a4409c33b8ae9739de372
7ae6126065abbcce7ce97c86d1150ae307360249
refs/heads/main
2023-07-04T21:12:07.592730
2021-08-18T15:12:50
2021-08-18T15:12:50
385,363,143
1
0
null
null
null
null
UTF-8
Python
false
false
180
py
from project.drink.drink import Drink class Tea(Drink): _cost = 2.50 def __init__(self, name, portion, brand): super().__init__(name, portion, self._cost, brand)
[ "ivan.yosifov88@gmail.com" ]
ivan.yosifov88@gmail.com
a5d1257d55107efdb8b87da0580bf3aee73e665c
569bf419458b6304fb4e16bef80fb6ba4db287f5
/7 - Machine Learning/Decision Tree/Decision_Tree_example.py
888a9db7969d898895481459965f8e0f114aae73
[]
no_license
ilopezgazpio/UD_Intelligent_Systems
80629464baaed39dd06bdeb76ce4b0b662840806
f5c518a08760b70c3b8464b5e8ac84997ff6019f
refs/heads/master
2023-09-02T13:47:29.069765
2021-11-08T15:09:28
2021-11-08T15:09:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,658
py
#!/usr/bin/python3 #------------------------------------------- # Decision Trees Concepts # Intelligent Systems - University of Deusto # Inigo Lopez-Gazpio #------------------------------------------- #---------------------------------- # PART 1: Environment and libraries #---------------------------------- # We'll u...
[ "inigo.lopezgazpio@deusto.es" ]
inigo.lopezgazpio@deusto.es
e76e287685752e28fa2e8c5f6863ee900fe5fcbb
cbda89443b351bb2047180dad4e300c13dc3df7f
/Crystals/Morpurgo_all_sp_Reorgs/Jobs/Rubrene/Rubrene_cation_neut_inner3_outer0/Rubrene_cation_neut_inner3_outer0.py
ab3611a677adb23520fda61425992f20962063c3
[]
no_license
sheridanfew/pythonpolarisation
080f52979f98d26360a46412a10c8e3f51ee4549
178e2684e9a239a8e60af5f7b1eb414ac5f31e92
refs/heads/master
2021-07-10T01:07:40.978790
2021-03-11T16:56:37
2021-03-11T16:56:37
96,101,351
0
0
null
2017-07-03T13:37:06
2017-07-03T10:54:52
null
UTF-8
Python
false
false
7,186
py
import sys sys.path.append('../../../../../') from BasicElements import * from BasicElements.Register import GetRegister from BasicElements.MoleculeFactory import ReadMoleculeType from BasicElements.MoleculeFactory import GetMolecule from BasicElements.Crystal import * from Polarizability.GetDipoles import get_dipoles,...
[ "sheridan.few@gmail.com" ]
sheridan.few@gmail.com
1002495073d3e000e8aabd09b9992e5f51966b27
24c489f58213971f23e72a5aa8ba92758f14077d
/notario/tests/test_exceptions.py
a8b3a0092b261b8ddb89c724fff5dca4b6426e1b
[]
no_license
shaunduncan/notario
2ff7287903950d899d1c0bc2fa708221f2142de7
d6ba713f017ff9914aadf28f0694465d8996c223
refs/heads/master
2021-01-22T07:39:19.557961
2014-02-26T12:53:55
2014-02-26T12:53:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,996
py
from notario import exceptions def foo(): return True class Object(object): pass class TestInvalid(object): def test_include_the_key(self): error = exceptions.Invalid('key', ['foo', 'bar', 'key']) assert 'key' in error._format_path() def test_include_the_path_in_str(self): error =...
[ "alfredodeza@gmail.com" ]
alfredodeza@gmail.com
a325d753908629cb45ff4bb92d59c15ade88a68d
11d2c81d0b66f5742159e35442b1867bd44390a1
/production/Algorithm/python_code/line4.py
9016633fcfde697dba59d5e4d8e4d5286a8a36d5
[]
no_license
hyeongseoblim/Algorithm
2c482e240a7278a0fd487769d3b95527fae95e7f
a6c903ab13e3ba418ce4f94d2f20b6fdf8433131
refs/heads/master
2023-02-07T11:04:48.897168
2021-01-02T15:15:24
2021-01-02T15:15:24
255,542,563
0
0
null
null
null
null
UTF-8
Python
false
false
1,518
py
west = 0 north = 1 east = 2 south = 3 isgo = 4 dy = [-1, 1, 0, 0] dx = [0, 0, -1, 1] def solution(maze): answer = 0 st_x = 0 st_y = 0 n = len(maze) maze[n - 1][n - 1] = 'E' direction = nextDirection(st_x, st_y, maze) while (True): temp_x = st_x + dx[direction] temp_y = st...
[ "iii3@cnu.ac.kr" ]
iii3@cnu.ac.kr
dde06cae367508f8aae19177ac78dd22367a7276
1f76baa1a461a9b3e72deeef1b527a8ae51624bf
/mysite final/mysite/frasim/admin.py
f25cbf15a4dfe1eb0d704bdbc8c8d6d7e77c8285
[]
no_license
nnaser/pibidi
0e1fd222a16fc7baaaab8e6683df72e46b08cda3
b19ced18e08a4a93f898d3955084b44e05f1d086
refs/heads/master
2021-01-13T01:48:53.817906
2013-08-26T07:32:36
2013-08-26T07:32:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
from frasim.models import * from django.contrib import admin admin.site.register(Vendedor) admin.site.register(Material) admin.site.register(Proveedor) admin.site.register(Bodega) admin.site.register(Area) admin.site.register(Cotizacion) admin.site.register(Productos)
[ "nicolas.naser@usach.cl" ]
nicolas.naser@usach.cl
daf659e14bd42e00eb25e3082ca4417436c386b3
c25c5f7637dd7e259e9d1e3b47ee013c8b2a2f18
/Filtragem no domínio espacial/smoothing.py
d34bced244f027139ab3e1093db2cedc78c5c4bf
[]
no_license
JuliaOli/DIP
4083b09ffe2727661a66ade31cac5027699fda09
fb3bfccade0951ad42971c0d4cd5793f89d28e2c
refs/heads/master
2018-10-01T04:09:17.462068
2018-06-08T00:15:51
2018-06-08T00:15:51
120,705,039
0
0
null
null
null
null
UTF-8
Python
false
false
1,753
py
import cv2 import numpy as np def callback(img): pass def createWindow(img): wind = "Smoothing" slider_name = "1-Aver 2-Med 3-Gau 4-Bil" slider_Pos = 0 image = img.copy() #create window cv2.namedWindow(wind) #show image cv2.imshow(wind, image) #add slider (slider...
[ "maju.olivi@gmail.com" ]
maju.olivi@gmail.com
326af3c8492ea7522eef273a09e92137b6e039cf
1554e209866ddcfc75519278303229bfdff4c9d3
/tbjcconstants.py
6908d70687a7f62b9cfba799665336607001670a
[]
no_license
tbjc1magic/HELIOStrajectory
215b4da6515351811f08ece1289f48a17460fccf
c095c85f209f6bee5e51f96f028dd6fa67df76f7
refs/heads/master
2016-08-09T03:46:29.945441
2016-01-19T19:25:32
2016-01-19T19:25:32
49,976,166
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
__constant_u = 1.66e-27 __constant_MeV = 1.6e-13 __constant_e = 1.6e-19 __constant_c = 3.0e8
[ "tbjc1magic@gmail.com" ]
tbjc1magic@gmail.com
27ed96ecec25d22429ab603aebcd2572ce077373
5ab4ecce716fba15f0ee298320fd9ce81593b296
/src/app.py
59b1773e2715b89865968eb1b0cc28ebf7865ff7
[]
no_license
AdleyTales/img2text
c97f3726753cb31ce4db34f1443fc56079388c60
31c91c3aa64262b540e19fc0fb8d1ccde9a52cb7
refs/heads/main
2023-02-14T02:28:02.422838
2021-01-06T01:50:38
2021-01-06T01:50:38
326,582,225
0
0
null
null
null
null
UTF-8
Python
false
false
797
py
# -*- coding: utf-8 -*- """ pip install baidu-aip """ from aip import AipOcr # 定义常量 APP_ID = '10379743' API_KEY = 'xxx' SECRET_KEY = 'xxx' # 初始化文字识别分类器 aipOcr=AipOcr(APP_ID, API_KEY, SECRET_KEY) # 读取图片 filePath = "b.png" def get_file_content(filePath): with open(filePath, 'rb') as fp: return fp.read()...
[ "adleytales@126.com" ]
adleytales@126.com
72e363883d70ec2cd83764eb7d1bc618ecdb6e10
51f7db7ffac715e797f40af1dc8e5137b6f2244d
/test.py
2eb68b936771586eaac57e577ecb4b16c8cbf510
[]
no_license
fml1039/news
9e06d97f3a355a71dec60812b868db804e969357
f011ab3a6cb9bdeef8dbeb07f917719d6369267a
refs/heads/master
2021-05-01T03:39:49.588523
2016-12-27T06:05:28
2016-12-27T06:05:28
57,991,316
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
# -*- coding: UTF-8 -*- from selenium import webdriver from bs4 import BeautifulSoup from selenium.webdriver.support.ui import Select mykey = u"日本 地震" print mykey browser = webdriver.Firefox() browser.get('http://search.gmw.cn/search.do?advType=news') ''' The following statement can be used to fill the keyword...
[ "jp2011212847@qmul.ac.uk" ]
jp2011212847@qmul.ac.uk
1216545cef8974dac002e69e47472107dee90945
45efad4df4b57ba115badf2cc160e00cf509ef23
/Space Invader/space_invader_main.py
b501ac6e77ed4aee903504af5f4d340aed7197de
[ "MIT" ]
permissive
omar-zaman10/Space-Invaders-pygame
d1fdc848702aea75c1d06e39ca95f1abb7d23b36
59c0e7277cf01b7c7407f50ae45404726af2673f
refs/heads/main
2023-06-27T00:52:59.017050
2021-07-28T14:51:20
2021-07-28T14:51:20
388,486,498
0
0
null
null
null
null
UTF-8
Python
false
false
19,702
py
import pygame import numpy as np from pygame import mixer import random #initialise pygame pygame.init() # Initial screen diplay, title and background music screen_size = (900 ,600) screen = pygame.display.set_mode(screen_size) running = True clock = pygame.time.Clock() fps = 300 pygame.display.set_caption('Space ...
[ "noreply@github.com" ]
omar-zaman10.noreply@github.com
588b165dd9b200319f9781744df15bbf3cae530f
cf2cca49648c678c0912233584fe706f1ae7f377
/makereport.py
2904b449d4ef61665d4f70fe68e81ab2a7cb3324
[]
no_license
fancker1992/UnitTestCase
ee6936f64e95b86cf2cc090dfa09325c9bb73a12
fe3e67f9811e4acd1d94e4a4d9a6ce48f6c56450
refs/heads/master
2020-03-25T06:54:13.672318
2018-08-04T13:32:31
2018-08-04T13:32:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
# 导包 import unittest import time from Tools.HTMLTestReportCN import HTMLTestRunner if __name__ == '__main__': # 1.组装测试用例case case_dir = './Case/' discover = unittest.defaultTestLoader.discover(case_dir, pattern='test_*.py') # 2.准备报告生成的路径 report_dir = './Report/' # 3.获取当前时间 now_time = time...
[ "786087292@qq.com" ]
786087292@qq.com
00f889e4e3b1667cb40a686747476c42deb156f2
ad81f5a090cc68236c1333d526c13543da6b63b4
/authentication/helper/models.py
7be057a91b1c3dee8b9e87c7d52e1c71a345dafb
[]
no_license
dachieng/django-custom-user-model
41d5af86dddb0bf372cbd1e3050704a09cb2bf62
94a8ce4f4eb57d9d619c3ac0c9e36495c559d10c
refs/heads/main
2023-07-28T11:51:50.360871
2021-09-09T07:35:35
2021-09-09T07:35:35
398,224,398
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
from django.db import models from django.contrib.auth.models import User class TrackingModel(models.Model): created_at = models.DateTimeField(auto_now_add=True) end_date = models.DateTimeField(auto_now=True) class Meta: abstract = True ordering = ['-created_at']
[ "oloodorcas99@gmail.com" ]
oloodorcas99@gmail.com
3ef14a461d4a9a44aa2256ac72dfa740efb73669
2f304de8e0e76df4c615a65b60bde7a514ecb9a3
/Exercise3/code/Optimization/Optimizers.py
43adb4667dbdabb0f1c5e91ce1e7305dfeb99af3
[]
no_license
Chengjun-Xie/Deep-Learning
56d7b825ba192e31bda38cc1396492ac9707a038
ac8371b328dd949a3655cf69b72607ca156c9fa5
refs/heads/master
2022-04-05T19:00:19.864485
2020-02-03T16:31:06
2020-02-03T16:31:06
217,325,961
1
1
null
null
null
null
UTF-8
Python
false
false
1,486
py
import numpy as np import matplotlib.pyplot as plt class Sgd: def __init__(self, learning_rate): self.learning_rate = learning_rate def calculate_update(self, weight_tensor, gradient_tensor): return weight_tensor - self.learning_rate * gradient_tensor class SgdWithMomentum: def __init__...
[ "15863001671@gmail.com" ]
15863001671@gmail.com
ce3cdf2600b9127334c5c2d8af577397f215eb63
9bdbb1a1e8e1a047c1ccbdb2eb1506983de87d5d
/dev.py
b9a201de2d95de3d60f545a852023fd543c23165
[]
no_license
Tepuradesu/AutoReportTemperature
f0cb0e26841f421e22edff33264c2ae57ccbe616
8a991dd729ddfe2890eaed504186e972aa7109f1
refs/heads/main
2023-04-11T18:18:10.216335
2021-05-13T15:20:10
2021-05-13T15:20:10
365,046,025
0
0
null
null
null
null
UTF-8
Python
false
false
144
py
from line_notify import LineNotify #変数定義 token='' bot = LineNotify(access_token=token) bot.send( message='Your Message', )
[ "tepuracococo@gmail.com" ]
tepuracococo@gmail.com
e1fd272d8e52e2e89fa2cf54684cb2b059f80913
8f64d50494507fd51c0a51010b84d34c667bd438
/BeautyForMe/myvenv/Lib/site-packages/ebcli/operations/gitops.py
6c09162d6a835dada9ca3a41d4ff2f348657e9be
[ "MIT" ]
permissive
YooInKeun/CAU_CSE_Capstone_3
5a4a61a916dc13c8635d25a04d59c21279678477
51405c4bed2b55661aa0708c8acea17fe72aa701
refs/heads/master
2022-12-11T15:39:09.721019
2021-07-27T08:26:04
2021-07-27T08:26:04
207,294,862
6
1
MIT
2022-11-22T04:52:11
2019-09-09T11:37:13
Python
UTF-8
Python
false
false
4,769
py
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
[ "keun0390@naver.com" ]
keun0390@naver.com
ca2c875cae90738eeb0f49011918a9be4eafb3af
805edbc10dd808f4caab04a8bbb13408f7d4e82b
/website/migrations/0007_auto_20210205_2001.py
a8bcd0cba4ff6d25af52193d1483845700de8744
[]
no_license
counter-king/ongorWebsite
727bf0d1a1c657aaf71f490abd94c62775b8ec0b
894f7adc8148c779fcfa4884a56a4ead124d41fe
refs/heads/main
2023-03-01T13:55:59.456025
2021-02-12T10:02:50
2021-02-12T10:02:50
338,286,580
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
# Generated by Django 3.1.6 on 2021-02-05 15:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('website', '0006_auto_20210205_1904'), ] operations = [ migrations.RemoveField( model_name='menuitem', name='quantity...
[ "counterkingbarcelona@gmail,com" ]
counterkingbarcelona@gmail,com
3871535003cf0921b8de447ff5292f04ce82d085
4d6323ab73baf9433efd4b827df18df7bb3cd152
/DesignReports/SystemRefinement/UGV/drop/DropSimulation/drop.py
a7420c692964ca94b441a21b79538201533015ed
[]
no_license
linzgood/auvsi_documentation_2019
c4be2c1134f0b0fc777de0dc23a9ac6c3a30ba68
9650395cbd23e53c01572b7e3a9b7821991832fd
refs/heads/master
2022-02-18T03:18:49.865913
2019-08-12T19:44:33
2019-08-12T19:44:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,188
py
#! /usr/bin/env python3 """ drop.py Simulation of parachute unraveling and opening during a UGV drop. Author: Jacob Willis Date: 29-Jan-2019 """ import numpy as np import matplotlib.pyplot as plt # when the parachute is opening # times estimated from drop testing with actual parachute paraTrans = (1....
[ "trcritchfield@gmail.com" ]
trcritchfield@gmail.com
a5656b0c338beaf8803e251404e0427ad58596f9
a893d00bae0c0fa7db1d42cd14c368033e1c3d3f
/10-4存储数据/10-4-1使用json.dump()和json.load()/number_writer.py
ac470f9195d87a8cbb13ca9ca577f61092803636
[]
no_license
taozhenting/python_introductory
71ac4b5fe4aa45a9008c9510c77e34e31226f849
f88afa0b4232e7ba79b42c370f2266fde85e7462
refs/heads/master
2020-04-27T06:02:20.169314
2019-05-22T09:17:40
2019-05-22T09:17:40
174,096,850
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
import json numbers = [2,3,5,7,11,13] filename = 'numbers.json' with open(filename,'w') as f_obj: #函数json.dump()将数字列表存储到文件numbers.json中 json.dump(numbers,f_obj)
[ "taozt@ichile.com.cn" ]
taozt@ichile.com.cn
dbadda63c549dee0a4586fb947e7cbf6593c3c13
48f64950118ef0446d229de6f9b9cf977543a1e6
/resources/PTZgrid/cornerFinderPtzGrid.py
5d54525622f283c11cec537233bc9305569b03dd
[ "BSD-3-Clause" ]
permissive
LionelLeee/sebaPhD
36b7522160e434fc32e95c3a039f761bdcfcf105
0260094bd5143843ef372ce52aceb568834f90f4
refs/heads/master
2020-07-29T05:41:30.389518
2018-06-23T00:24:32
2018-06-23T00:24:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,649
py
# -*- coding: utf-8 -*- """ Created on Wed Jul 27 13:34:13 2016 @author: sebalander """ # %% import cv2 import numpy as np import matplotlib.pyplot as plt # %% # input # 6x9 chessboard #imageFile = "./resources/fishChessboard/Screenshot from fishSeba.mp4 - 12.png" # 8x11 A4 shetts chessboard imageFile = "ptz_(0....
[ "seba.arroyo7@gmail.com" ]
seba.arroyo7@gmail.com
2e176a997fb605afd7785a5526cd2ae18f743e19
c23c5f3edcab8604579ec3dacc2041b2452f72ab
/interpreter.py
1b95a85df80a9426de52d04618c965447c8c1c4c
[]
no_license
torchhound/bf
f0a8ef0dc86d76ec69c9cda086b88ab26c79de17
c28a0b7bac35f9d35f4475ac59e20413c1511dd0
refs/heads/master
2021-01-09T06:01:51.457190
2017-03-15T00:09:17
2017-03-15T00:09:17
80,895,897
0
0
null
null
null
null
UTF-8
Python
false
false
1,844
py
import sys array = {} previousWhile = 0 dataPtr = 0 prgPtr = 0 def parse(program): '''Parses a string of brainfuck commands''' global array global dataPtr global prgPtr while(prgPtr < len(program)): def goto(): global array global dataPtr global prgPtr try: if dataPtr < 0: dataPtr = 0 ...
[ "unknownmasayoshi@gmail.com" ]
unknownmasayoshi@gmail.com
16286276366ff0182e4003611f83c76206c62661
f05733abc47da5fd54826556af82dfb3d8901222
/pip_conda_demo/tests/mock_server.py
aa9e31aaacc7db8fdcad6bbed2b2d89a7d976e39
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
benthayer/pip_conda_demo
3523ad2b8eb1655f7ab27574600ea6977cb1f26b
fe230cd8abc720dfe5b67e3048d1c315b55f905b
refs/heads/master
2022-12-19T11:10:31.802150
2019-01-14T19:09:18
2019-01-14T19:09:18
292,656,787
0
0
MIT
2020-09-03T19:04:54
2020-09-03T19:04:53
null
UTF-8
Python
false
false
966
py
import os from http.server import HTTPServer as BaseHTTPServer, SimpleHTTPRequestHandler class HTTPHandler(SimpleHTTPRequestHandler): """This handler uses server.base_path instead of always using os.getcwd()""" def translate_path(self, path): path = SimpleHTTPRequestHandler.translate_path(self, path) ...
[ "wino6687@colorado.edu" ]
wino6687@colorado.edu
e7a54c6024928a0126b2c937618b368b4d1a6fd0
d2f10799a204c0ac0164f703ed830e1373b12f19
/算法/情景题/找重的球.py
e7295a98ca0bf6310feada91cdcf4b36966061f4
[]
no_license
RichieSong/algorithm
9d44685f38c240a4864ec100c2f83e4db1956652
069bb0b751ef7f469036b9897436eb5d138ffa24
refs/heads/master
2020-12-27T04:22:35.235548
2020-10-16T02:02:44
2020-10-16T02:02:44
237,763,531
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
# -*- coding: utf-8 -*- """ 8个球有一个重一点,最少称几次能找出来? 2次能称出来? 球分3堆 分别3、3、2个 1、先称 3-3 如果一样证明在2哪里,再来一次称就知道那个重就知道结果,如果不一样,将重的一端分别拿出2个放入天平上, 如果还一样,那剩下没称的就是重球,如果不一样,那么沉下去的就是重球 扩展:100个球找出一个轻的球的最少次数? """
[ "songming@luojilab.com" ]
songming@luojilab.com
9ebe8598f6c29dea90a52ac71f40f1bea73cd362
aa92aa27a85080b1a7aede69ba739fd89ce95756
/Simulation2.py
d1ca905f779da1a187bc17af398072697109f7b8
[]
no_license
sauchakr/def
fffa3b5a549eee2449777b70e33ac645373e3da6
256d348a29524778e5223adad85f749b1ba6a15f
refs/heads/master
2021-01-10T04:05:34.736213
2015-12-29T20:47:20
2015-12-29T20:47:20
48,766,077
0
0
null
null
null
null
UTF-8
Python
false
false
4,002
py
import math import random as rnd #!/usr/bin/env python try: import matplotlib.pyplot as plt except: raise import networkx as nx def create_barabasi_albert_graph(en,em): n = en m = em G = nx.nx.barabasi_albert_graph(n,m) node_total = 130 node_weight = node_total/ len(G.nodes(data=...
[ "saurav.c53@gmail.com" ]
saurav.c53@gmail.com
73396ae2e707456a405ee6204ffc4b90f82fd45b
86955443c25d116dd6d164a9e812017d86c07bc6
/engine/trainers/base_trainer.py
7ce4b1e07bd67e46b60d3e6041296c84c8269441
[ "MIT" ]
permissive
melgor/metric_learning.pytorch
88df1bb098fea95de0daf1036d824821d3c9ea90
955f13b83382d6d79ef067f2275c6875498151ad
refs/heads/master
2020-09-29T01:19:37.241744
2019-12-10T15:12:30
2019-12-10T15:13:06
226,912,342
0
1
null
null
null
null
UTF-8
Python
false
false
3,172
py
import logging import torch from tqdm.autonotebook import tqdm from utils.data_logger import find_device, MetricLogger class BaseTrainer: def __init__(self, models, optimizers, lr_schedulers, loss_funcs, train_dataset, ...
[ "bartosz.ludwiczuk@intive.com" ]
bartosz.ludwiczuk@intive.com
81845f1d6ef44c5f7e0e38f392a3088e19d63850
e67d38be1fda0d9c09fb169d73d9f3153f3c4610
/events/urls.py
2318893123ab4d4f8713b33ead420f33d8f9bb64
[]
no_license
s-kobets/book_me
965b95e92886baaeb389e4212a7c88e08626a200
d5999ac1cec08adc126b46615ecdd6ba753d2c35
refs/heads/master
2023-06-10T03:12:08.264666
2021-07-05T18:57:22
2021-07-05T18:57:22
382,767,972
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
from django.contrib import admin from django.urls import path, include from django.views.generic import ListView, DetailView from .models import Event from . import views, api from rest_framework import routers router = routers.DefaultRouter() router.register(r'events', api.EventViewSet, 'event') urlpatterns = [ ...
[ "s.kobets@semrush.com" ]
s.kobets@semrush.com
6afb9cbab6b859d87b8bf06d5ae9afbffa896968
6059b2c07cff534ca54c766a9a628992daf31a15
/Platform/utils/context_processors.py
958991575e23a3d0dbf5212e2a17b64916be47c4
[]
no_license
rac2895/Wishkaro
0ce5e01a0ebd7f54f88332bdd6f4469d85aa8f03
3430302f8f943ce5fe52890ca7dbf5a4cec90a63
refs/heads/master
2021-01-23T14:14:43.144391
2017-06-17T13:31:34
2017-06-17T13:31:34
93,248,791
2
1
null
null
null
null
UTF-8
Python
false
false
317
py
from products.models import Category from django.conf import settings def pycart_store(request): return { 'active_categories': Category.objects.filter(is_active=True), 'site_name': settings.SITE_NAME, 'meta_keywords': settings.META_KEYWORDS, 'meta_description': settings.META_DESCRIPTION, 'request': request }
[ "jainrachit28@gmail.com" ]
jainrachit28@gmail.com
63a64b3a4dc82edd47fdc95d4a457373004013fb
76173fc1c994a854d4e40591c79fcd261ff6f88c
/object_detection/protos/model_pb2.py
2e3b1bf639563eb8d6249d0a2dd1b08ba69164ad
[]
no_license
DongChen06/Icon_detector
4c5c87abf6836bb76dbff4384adff259d7f5dbfb
eac27e81624ce4b8d4c8da53fc9a3b21ca896858
refs/heads/master
2022-12-08T07:54:16.236694
2020-08-18T19:22:20
2020-08-18T19:22:20
null
0
0
null
null
null
null
UTF-8
Python
false
true
6,958
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: object_detection/protos/model.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message fr...
[ "2452291964@gmail.com" ]
2452291964@gmail.com
b94a889eb6767ea49216906720df55b94298b3bb
76e3a7f9853d731f4ef02d829bf2bae8dc056b4a
/vview/server/launch_server.py
c9044a6b760d05ad0993852e66a4053bad93a5f5
[ "LicenseRef-scancode-public-domain", "MIT", "BSD-3-Clause" ]
permissive
ppixiv/ppixiv
1521178e8b1668c67f9d2b9d76c215a6a8033d3d
d09fd1d6bb42386895270ddde48e57d974fb4f37
refs/heads/master
2023-07-25T09:27:26.087692
2023-07-23T01:44:25
2023-07-23T01:44:25
141,506,792
129
10
null
2023-09-11T04:52:19
2018-07-19T01:07:07
JavaScript
UTF-8
Python
false
false
863
py
# This module allows launching the server in another process if it's not already # running. # # This is separate from server.py, since that file imports a lot and can take some # time just to import (200-300ms), which is a waste of time if we're in a front-end # process that won't be running the server itself. import ...
[ "ppixiv@users.noreply.github.com" ]
ppixiv@users.noreply.github.com
093052f73dc45d04b79f6cea6212ffd7f1906cb4
91c5a1865717e6757bbfec825d411f96dcf2e2e5
/python/10_file/10.4/try/10-13.py
93ea04eae4afc0a8faad8d216f36e21678127699
[]
no_license
ydPro-G/Python_file
6f676d1b66e21548f5fad8a715a1767344c2b0c4
c035e7c344c3c224d55e33efc16ee941bc3d6ff2
refs/heads/master
2023-06-19T06:12:44.550778
2021-07-14T09:15:15
2021-07-14T09:15:15
261,126,468
0
0
null
null
null
null
UTF-8
Python
false
false
1,369
py
import json def get_stored_username(): # 存储了用户名这个函数就获取并返回它 """如果存储了用户名,就获取它""" filename = 'username.json' try: with open(filename) as f_obj: username = json.load(f_obj) # 使用json.load()来加载存储在json文件中的信息 except FileNotFoundError: # 值不存在返回None return None else: r...
[ "46178109+ydPro-G@users.noreply.github.com" ]
46178109+ydPro-G@users.noreply.github.com
caab9c4dcd28b1fed838b27677ee92281aae7c0f
d488423a19469e753a7b5c4074670dbae21c3679
/02.multiple_linear/multiple_linear.py
31c8aa8b7c430a539fa6348e634852773481f34f
[]
no_license
hiro9108/linear_regression
19105714db14a36cb4ef50fd24843eb6f0149292
0cb69fc08cff11fc2d9656abb0115c065eaffb90
refs/heads/master
2022-12-21T05:49:46.398774
2020-10-11T16:13:26
2020-10-11T16:13:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,590
py
# import numpy as np import pandas as pd # import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split import joblib # import seaborn as sns """ Multiple Linear Regression """ # Read csv file df = pd.read_csv('sample_multiple_liner_data.csv'...
[ "hiroshi.8.egawa@gmail.com" ]
hiroshi.8.egawa@gmail.com
20a220e42cb348b2ec6ce84271f291e56870174b
68f1a939e05009f8ac20fc7347bfbdeff5500535
/Scripts/metaDataService.py
d41ef1bc815df9b2476f499a62b4a30ef55517c8
[]
no_license
ChiniSinha/ASD-DynamoDB
a1c396e3b07654fca6391b76e70e9323632e364c
2f095385107869609b2b86a38b2c8f142c6f5736
refs/heads/master
2021-01-13T06:48:53.378979
2017-02-21T21:17:00
2017-02-21T21:17:00
81,150,816
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
#!/usr/bin/env python import boto3 import json username = 'Chini' client = boto3.client('dynamodb') response = client.get_item( TableName='MetaData', Key={'UserName': { 'S': username }}) print response
[ "chinisinha@gmail.com" ]
chinisinha@gmail.com