blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
ee5154e4a3e0cd71941ed12982005cc98c973533
992fb973ec03068346c725bbb2e9b9f54cb6d558
/revision.py
91eb4bbcd700596da82b0bfd6f690601df7c86f2
[]
no_license
vojoup/pokusy_python
3bc684faf7c692f5e27bf3b4b13dd4b3f71c4b87
78b37ddb4e53d28c6064e429ebd0a5c8dd30241c
refs/heads/master
2021-01-19T00:23:07.029598
2017-04-04T08:32:52
2017-04-04T08:32:52
87,163,959
0
0
null
null
null
null
UTF-8
Python
false
false
2,307
py
#written by usingpython.com #allows us to access a random 'key' in the dictionary import random #the questions/answer dictionary my_dict = { # "Milujes Zuzanku ?" : "Samozrejme", "Number system that uses the characters 0-F" : "hexidecimal", "7-bit text encoding standar...
[ "voj.oup@gmail.com" ]
voj.oup@gmail.com
578ecb92d16d1ca2da11a71e6aeb893f168da275
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-4295.py
b26269dd917ef0108851f9fca82d438ee34c6c2e
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
23,289
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
273a2e0109802764b4323222fe539993df97fdd1
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/335/usersdata/293/100631/submittedfiles/matriz1.py
d3968016a50b896aa83760e4097b6abf19b5ee9e
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
924
py
# -*- coding: utf-8 -*- import numpy as np ###CRIAR MATRIZ### matriz=[] m=int(input("Digite o número de linhas da lista: ")) n=int(input("Digite o número de colunas da lista: ")) for i in range(0,m,1): matriz_linha=[] for j in range(0,n,1): matriz_linha.append(int(input("Digite o valor do elemento (%d...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
06da86f0dc92577533174c9d475266b8cea806e0
8a202074cee11cb3e6f58aa097be776154fe9886
/app.py
4aa7badcb21957a7d3b17121696565ecd6e013e1
[]
no_license
abhinith1234/insurance-
c80453cd2c8a4b9995728997836597f5951c2042
62c1266b2a9b3ea4d68e12174f9298f3957e0558
refs/heads/master
2023-08-07T09:49:22.177085
2021-10-09T08:34:05
2021-10-09T08:34:05
415,249,262
1
0
null
null
null
null
UTF-8
Python
false
false
1,119
py
from flask import Flask, request, url_for, redirect, render_template, jsonify from pycaret.regression import * import pandas as pd import pickle import numpy as np app = Flask(__name__) model = load_model('deployment_28042020') cols = ['age', 'sex', 'bmi', 'children', 'smoker', 'region'] @app.route('/') def home(): ...
[ "59814150+abhinith1234@users.noreply.github.com" ]
59814150+abhinith1234@users.noreply.github.com
180079399426d78f9f9573051dd66b3ebc738ca6
db4cab37fadb26ed370affb72db5434e0f8ec790
/characters.py
c02055696076a1aa87134fc455c64c2586c16835
[]
no_license
ocastudios/bobots
2292888996f77a300421603906a360956c579614
0b6e844e1aa3d1d8826177fc31e44b085f24c19c
refs/heads/master
2021-10-11T05:43:35.433620
2015-09-21T17:26:45
2015-09-21T17:26:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,345
py
Lilly = { 'relative': 'Ms_Honey', 'town': 'SquirrelTown', 'area': 'School', 'win_phrase': "And isn't he pretty, too?", 'loss_phrase': "Mine is still the cutest", 'bet_base': 20, 'reward':10, 'bobots': [ {'type':'rodent1', 'attacks': ['push1'], 'fuel':['piston30'], 'coat':'yellow' }, ] } Parker =...
[ "nelson@ocastudios.com" ]
nelson@ocastudios.com
d0cd69c9a0f5a51db088a412feea67c1613a0780
5a67b2e196d972b9f728a507d8a7aa7722fc06e8
/FLAMES.py
8989b8edf9710f37e7555e8012d42ce2a63866e5
[]
no_license
BG-sword/gitlearn
c24617161830c7e2677de35db2ab29e25ce654ca
c9a992942c5a1f6f36ae072bddea81186f6050a2
refs/heads/master
2023-04-28T03:14:00.714535
2021-04-27T10:58:26
2021-04-27T10:58:26
362,011,051
0
0
null
2021-04-27T09:42:27
2021-04-27T06:54:20
Python
UTF-8
Python
false
false
1,976
py
#function def remove_match_char(list1, list2): #let remove same letters from two lists then concate with a special character between for i in range(len(list1)) : for j in range(len(list2)) : if list1[i] == list2[j] : c = list1[i] list1.remove(c) ...
[ "bhanugovardhan7070@gmail.com" ]
bhanugovardhan7070@gmail.com
ccf78adf8b93f1db9dfb7c33c83611af8c2b1bff
27277393356207c942ce3fc846de6fa8e2014a0a
/326. Power of Three.py
6526f958aea164355e17b038d036e1688cc60029
[]
no_license
TRKSasank/LeetCode
5d2f463a92c5ee9124939c7313fef39d6b9f9d2b
0c419ca138ca281e5defe28fe689d75ae5256011
refs/heads/master
2022-11-21T13:48:11.602162
2020-07-24T01:04:05
2020-07-24T01:04:05
266,245,997
0
0
null
null
null
null
UTF-8
Python
false
false
621
py
class Solution: def isPowerOfThree(self, n: int) -> bool: import math if(n<0): val = math.log(n*-1,3) val_c = math.ceil(val) val_f = math.floor(val) elif(n>0): val = math.log(n,3) val_c = math.ceil(val) val_f =...
[ "noreply@github.com" ]
noreply@github.com
3d70ab69d24576b88fa980a4f0ecfdbca3d8bb61
b8cc6d34ad44bf5c28fcca9e0df01d9ebe0ee339
/入门学习/threading-eg-01.py
4fdf372ac23e074b5104d82e001b51bacae3aca8
[]
no_license
python-yc/pycharm_script
ae0e72898ef44a9de47e7548170a030c0a752eb5
c8947849090c71e131df5dc32173ebe9754df951
refs/heads/master
2023-01-05T06:16:33.857668
2020-10-31T08:09:53
2020-10-31T08:09:53
296,778,670
0
0
null
null
null
null
UTF-8
Python
false
false
1,758
py
import time #这个是不被推荐的线程包:_thread import threading #这个主要是注意使用参数时的写法 #使用多线程 def loop1(in1): #ctime 得到当前时间 print('Start loop 1 at :',time.ctime()) #把参数打印出来 print("我是参数:",in1) #睡眠多长时间,单位是:秒 time.sleep(4) print('End loop 1 at :',time.ctime()) def loop2(in1,in2): #ctime 得到当前时间 print('Sta...
[ "15655982512.com" ]
15655982512.com
01be6d192d87648dd9c071a5da64462964f37bc8
b753db5f746d14529b70f86795e7e373e4dac61d
/ДЗ 1/3.py
58c2a409d4029e2e8903d5c0aa6deda44c544646
[]
no_license
kozik87/General_python_DZ
d3b08a03cf0132fa0ebced7816dad5878b127aa2
7e28a4fe3a1871a1168e84bb5bfab09e99fb7642
refs/heads/master
2023-08-17T21:59:40.852979
2021-10-19T20:03:45
2021-10-19T20:03:45
407,166,323
0
0
null
2021-10-19T20:03:47
2021-09-16T13:00:51
Python
UTF-8
Python
false
false
706
py
# 3.Склонение слова # Реализовать склонение слова «процент» во фразе «N процентов». Вывести эту фразу на экран отдельной строкой для каждого из чисел в интервале от 1 до 100: # 1 процент # 2 процента # 3 процента # 4 процента # 5 процентов # 6 процентов # ... # 100 процентов n = int(input('Введит число: ')) if n % 10...
[ "konstantin.karnaukhov@gmail.com" ]
konstantin.karnaukhov@gmail.com
3a2963a69495501d8338a91a6c65527ed390b24b
8a03b8459902d1bf0806f8d3387fb962bb57cf58
/Validations/SAR_click.py
44f05768023ecd4dc58d526a4c8da62232cd4494
[]
no_license
chetandg123/cQube
f95a0e86b1e98cb418de209ad26ae2ba463cfcbc
a862a1cdf46faaaff5cad49d78c4e5f0454a6407
refs/heads/master
2022-07-18T12:43:06.839896
2020-05-22T13:23:52
2020-05-22T13:23:52
258,089,042
0
0
null
2020-05-08T16:28:26
2020-04-23T03:55:52
HTML
UTF-8
Python
false
false
1,852
py
import time import unittest from Data.Paramters import Data from selenium import webdriver class SAROption(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome(Data.Path) self.driver.maximize_window() self.driver.implicitly_wait(10) self.driver.get(Data.URL) ...
[ "chetan.goudar@tibilsolutions.com" ]
chetan.goudar@tibilsolutions.com
6a7120426c27f2b414d8d164f7d3394028e271ec
2f85a2d3917a92d0d990620c9cbd7ad50956c876
/session17/quiz.py
6f0fbc5638ec15c1a5d729d4376b8a7c085af8c5
[]
no_license
KyleLawson16/mis3640
14e57203a495c6f40188e6f5c8bf3ec82605e924
647a86838ff77544970973196941cd433851b150
refs/heads/master
2020-03-27T16:41:37.798702
2018-11-01T19:40:03
2018-11-01T19:40:03
146,800,315
0
1
null
null
null
null
UTF-8
Python
false
false
1,689
py
ELECTORS = {'CA': 55, 'TX': 38, 'FL': 29, 'MA': 11} class Candidate: """The presidential candidate""" def __init__(self, name, winning_states=None, votes=0): """Initialize candidate. name: string winning_states: a list of strings representing initial winning state(s). votes: in...
[ "Kyle.Lawson7@yahoo.com" ]
Kyle.Lawson7@yahoo.com
e03e7e0b0f300b27cdb37a4f807759aa86873fbf
0e3df318ad818f7538ec5031dc4578fce3433c5c
/utils/project-pdf-generator/icGenerator.py
a1cea23ce07f1d117a8ca36efabb2038c05a244f
[]
no_license
amartya2969/Instruction-Division-2.0
49415ffb5260d2bc7c4e6b98f6f96463ff5e9a9e
eb08b1933ecb4e4422cec86f96235fae149bbaed
refs/heads/master
2020-03-20T02:08:30.082196
2018-06-09T13:45:25
2018-06-09T13:45:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,586
py
# This generates pdf for projects under each IC. # Place the csv file in the same directory with the name `ic_list.csv` and later run the script. # Format of ic_list.csv Course Code,Course Name,IC Name,Email ID # Format of allotement_list.csv ID NO , STUDENT NAME, FACULTY NAME, PROJECT CODE,EMAIL, ELE TYPE, PROJECT TIT...
[ "sohailrajdev97@gmail.com" ]
sohailrajdev97@gmail.com
083acf35d6ef201f3dcf6af52969995105021d24
2321eee8ae8b7ec0ceebe8005ec44d59c84166b9
/goal.py
5fd9ac3841f3fe84cc0323deba72c440a15e32fc
[]
no_license
the-lightstack/Raspberry_Game
ff2c1b3b5148b7e817d98f8d6ace7fd49c022500
3c44edf7c74168b96d5c626bfe130b06404e2da5
refs/heads/master
2022-12-15T01:21:07.737013
2020-09-13T16:08:18
2020-09-13T16:08:18
294,993,881
1
0
null
null
null
null
UTF-8
Python
false
false
505
py
import pygame pygame.init() class Goal: def __init__(self,x,y,r,var): self.rect=pygame.Rect(x,y,r,r) self.var=var def show(self): pygame.draw.circle(self.var.screen,(200,40,40),(int(self.rect.x-self.var.camera_scrolling.x),int(self.rect.y-self.var.camera_scrolling.y)),self.rect.w)...
[ "noreply@github.com" ]
noreply@github.com
6ef08e75be9eacb96de8274efee6509baa1de57b
cad7663ccdbdeb86dc08db498f4df038b311bc3e
/BOJ/Q2501-Q5000/Q2675.py
b67f1f1648d5e72770d3c8401b43dc99b6628074
[]
no_license
sbyeol3/Algorithm-Study
1a8d8a95707a2c9c8fe2095612b0908bf10b55b9
a21ac6ea1c32a22826f004c2eadbc586298489e0
refs/heads/master
2021-06-29T18:16:01.248410
2021-01-16T16:32:42
2021-01-16T16:32:42
212,065,340
2
0
null
null
null
null
UTF-8
Python
false
false
205
py
N = int(input()) s = [] for _ in range(N) : a, b = input().split() string = '' for i in range(len(b)): string += b[i] * int(a) s.append(string) for i in range(N) : print(s[i])
[ "ahnsbyeol3@gmail.com" ]
ahnsbyeol3@gmail.com
bb1de112084f04f13bb84c2e7d9eed6667fb993d
a05a0b0764d464515b3db8be0c1cd3a766e4c62c
/preprocessing/take.py
a4a4ab7a4c9996733b36048a0d3d63a7131dfcbf
[]
no_license
pei-hsin-chiu/ML-against-supraspinatus-calcific-tendinopathy
29e198549d3903a78744696c0383f7c5886beedb
d98379cdeea2eab3823cad6f5278f39c4219f31e
refs/heads/main
2023-04-21T20:45:01.744686
2021-05-13T03:24:53
2021-05-13T03:24:53
310,478,086
0
0
null
null
null
null
UTF-8
Python
false
false
4,608
py
import os import random import shutil ###short valid### short_calcification_path='C:/Users/user/Desktop/0622/valid/short calcification/' short_calcification_files=os.listdir(short_calcification_path) short_no_calcification_path='C:/Users/user/Desktop/0622/valid/short no calcification/' short_no_calcification_f...
[ "noreply@github.com" ]
noreply@github.com
e0a0b17520b4642b2b17c798f2328f86e1da532b
6137cf4dbfae8b0908090a82ba7a17bed410a31e
/python3/multiprocess_demo/multiprocess_task_worker.py
61960320fd4f6298bac43f0b234c663cbcbba702
[]
no_license
linwiker/learpython
5ba16283be032f6b3819be5888dd84088abd4c3b
1afdc62125f154c957a739e38cced3006cd52907
refs/heads/master
2020-05-21T12:27:52.821229
2017-02-03T07:42:46
2017-02-03T07:42:46
47,006,529
1
2
null
null
null
null
UTF-8
Python
false
false
1,073
py
#/usr/bin/env python # -*- coding: utf-8 -*- import time import sys import queue from multiprocessing.managers import BaseManager #创建类似的QueueManager class QueueManager(BaseManager): pass #由于这个QueueManager只从网络上获取Queue,所以注册时只提供名字 QueueManager.register('get_task_queue') QueueManager.register('get_result_queue') #链接...
[ "linwiker@gmail.com" ]
linwiker@gmail.com
6fbf91a5b1debbe4ab175fbfbdfeb60a2c27d21e
2f12d0342a1d725f3639a7b2772be0ea5fb50ba4
/personal_library/urls.py
ac8d7ee161bde64f074a4bb3ed082d57caf68ccb
[]
no_license
divyansh-zunroof/personal_library_backend
f5012b8f2de6dbfb91d38f65124e52a22c51a55c
f8d7dcd31b96696f4cd918e50536d32c6024f896
refs/heads/master
2023-05-04T03:17:30.653911
2021-05-16T13:51:23
2021-05-16T13:51:23
367,886,809
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
from django.urls import path from . import views urlpatterns = [ path('login', views.loginUser, name='Login User'), path('create', views.createUser, name='Create User'), path('get_books', views.getBooks, name='Get Books'), path('add_books', views.addBooks, name='Add Books'), ]
[ "84276290+divyansh-zunroof@users.noreply.github.com" ]
84276290+divyansh-zunroof@users.noreply.github.com
522a5c695089f792c0ee5a34b2e6eb98c2e75160
6604c21116d4b90c86740a99765b20129dc70728
/Python-Milestone-Project-1/1-Displaying_Information.py
23891dd1c3bc87639f0b89a57fa4f32fc05550c0
[]
no_license
oliver-mashari/Learning-Python
0951349f0d438a7d4f28d57cb47103e57337d70e
a7b25efd60fbbe044a5d0e1b8dd496704a2cc6bf
refs/heads/main
2023-06-14T05:47:13.925133
2021-06-24T18:16:56
2021-06-24T18:16:56
325,369,723
0
1
null
2021-01-03T19:48:38
2020-12-29T19:25:15
Python
UTF-8
Python
false
false
172
py
# Displaying information def display(row1,row2,row3): print(row1) print(row2) print(row3) example_row = [1,2,3] display(example_row, example_row, example_row)
[ "65712745+oliver-mashari@users.noreply.github.com" ]
65712745+oliver-mashari@users.noreply.github.com
5579477131eae8fee930193ef855ff00c05dcd6a
285fba7666d0365b89093b1c6ca80826012a1ba6
/safe_eats_app/admin.py
ea6ff22bd97242ab1354e9e6c5d7a34e832c03f0
[]
no_license
ron-s/safe_eats
66bb63a81713cb1beb744b697e2f007499ea79f2
efa5c7e60acbc6693f2933ffd5ae2e1cac1771d4
refs/heads/master
2021-01-15T09:14:47.967505
2017-08-17T22:25:27
2017-08-17T22:25:27
54,150,076
0
1
null
null
null
null
UTF-8
Python
false
false
246
py
from django.contrib import admin from .models import RestaurantInfo, InspectionReport, InspectionResult # Register your models here. admin.site.register(RestaurantInfo) admin.site.register(InspectionReport) admin.site.register(InspectionResult)
[ "ronshafii2@gmail.com" ]
ronshafii2@gmail.com
5bede63ddee814a5b13e391ff4f2efd3c891ae52
aa8ea5446aa147eb6643cc2ad98c1d03fd3ee6f2
/main.py
2f8cc2e51b5f25fb7fc96e0bbee76f84cc483537
[]
no_license
Rowanzhang/spider
925aade22d956aa44734513fb0d62a9d7708f468
937e47a5571debc557b029bbda785e08ba4fbe35
refs/heads/master
2021-01-14T16:39:25.676754
2020-02-24T08:28:09
2020-02-24T08:28:09
242,683,076
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
from package1.run import Run htmls = input() run = Run() run.go_all(htmls)
[ "hackzhang@outlook.com" ]
hackzhang@outlook.com
d381bed274f6bf34f749eff562c360753ab95206
e4cab1d00a90cfe4a52be637d070ffc82f8f215f
/Multitasking_programming/day10/group_chat/desc_group_chat.py
d16a52136971f50d16ed47175f936e5366eed3a5
[]
no_license
Ewardqifan/Net_Pro
dc75c9e1948d28e4b69fee9f74ae715cabd13ce3
7fdc45b77f52bd29f90f494901e0adba4294efe9
refs/heads/master
2020-05-17T13:46:34.554369
2019-04-27T08:01:03
2019-04-27T08:01:03
183,744,998
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
''' 群聊服务: 功能:类似QQ聊天群聊功能 [1]有人进入聊天室需要输入姓名(密码),姓名不能重复 [2]有人进入聊天室,其他人会收到通知(xx进入聊天室) [3]一个人发消息其他人会收到消息(xx:msg) [4]有人退出,则其他人会收到通知(xx离开了聊天室) [5]扩展:服务器可以项所有群用户发送公告(管理员消息:msg) 具体实现: 1.网络连接搭建(udp) 2.进入聊天室 1).client(input name\ send name\ receiver msg\ if OK into room else Re-enter name\ prin...
[ "471875949@qq.com" ]
471875949@qq.com
0bdb3b7ea639e486477738c5aba33786f1d1aa57
6ff3103158da07a40b501e746c0ecc6dc07c6c4f
/openks/models/pytorch/gen_learn.py
a92f563148f6e9251da4d0511211c1cfe588fa5c
[ "Apache-2.0" ]
permissive
jamesyifan/OpenKS
22f1550e5f0773d3d431106e61a3fe6babf90a3d
e8125e272d3f901f20c4e6c3a51603a0905b0808
refs/heads/master
2023-02-27T21:21:35.086454
2021-01-29T12:50:08
2021-01-29T12:50:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,387
py
# Copyright (c) 2021 OpenKS Authors, DCD Research Lab, Zhejiang University. # All Rights Reserved. import logging import argparse import torch import torch.nn as nn from sklearn.model_selection import train_test_split from ..model import GeneralModel @GeneralModel.register("general", "PyTorch") class GeneralTorch(Ge...
[ "zongchang@zju.edu.cn" ]
zongchang@zju.edu.cn
a46ac684734baa3f8ca8c5bbe81b463fcb7c751b
5ae8a8bf314f780381a1e9c4b6f49cf9abfff26e
/study/algorithm/bug_fixing_reader.py
a50464f1c77cb4ee9752ac0e910d59acdc90c187
[]
no_license
jsong00505/Python-Studies
d3227388ac99c55c0e3c79766000593dec40eceb
2618809e52d05bf41018f6f40f467709a8e236d5
refs/heads/master
2021-06-15T17:28:47.429926
2017-02-23T12:18:24
2017-02-23T12:18:24
69,872,936
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
def solution(A): n = len(A) print n L = [-1] + A L.sort() print L count = 0 pos = (n + 1) // 2 candidate = L[pos] for i in xrange(1, n + 1): print i if (L[i] == candidate): count = count + 1 if (2*count > n): return candidate return -1 A...
[ "jsong00505@gmail.com" ]
jsong00505@gmail.com
d9627bd2f10378d4ec95ae689ab346b05b1957f6
347de3ae38f260979bba8d87c6bd7b51fe716f29
/Bubble_Sort.py
e07e1680917db30f40b06c2974c3e494951125f8
[]
no_license
implse/Simple_Algorithms
522ba6f288ddb1b11c104dab313b6604a4a8204a
832cee90d7b0e64be91cd39a6068bdc94d19dbcc
refs/heads/master
2023-02-19T21:23:46.640904
2021-01-18T18:53:43
2021-01-18T18:53:43
119,513,862
0
0
null
null
null
null
UTF-8
Python
false
false
853
py
# Bubble Sort : Time Complexity O(n^2) # Bubble Sort : Time Complexity O(n^2) def bubble_sort(data): for i in range(len(data) - 1): for j in range(len(data) - 1 - i): if data[j] > data[j + 1]: data[j], data[j + 1] = data[j + 1], data[j] return data # Buble Sort Re...
[ "finite.impulse@gmail.com" ]
finite.impulse@gmail.com
41e29613679d045243c72743450cd0e2bbf693c0
9d95d4445f0a6f38653f74054fcbf4f3a2d64875
/web-app/model.py
a9c94ae49ae82b138964bd5eacbb0e10e4bb4708
[ "Apache-2.0" ]
permissive
Acveah/Analysis-of-DDoS-attack-from-Botnet-devices-using-Machine-Learning-Classifiers
acb3d078f1c1191866aa09b3744a3a62b293a514
b0ec05db61a630936633f4478f9b3b6718231cef
refs/heads/master
2023-03-26T09:36:37.299357
2020-06-20T18:23:09
2020-06-20T18:23:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
import pandas as pd from sklearn.preprocessing import LabelEncoder from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split from sklearn import neighbors from sklearn.metrics import accuracy_score from sklearn.externals import joblib pd.set_option('display.max_rows...
[ "siddharth.m98@gmail.com" ]
siddharth.m98@gmail.com
131cb39c816851db1179d81b3c2cff819d12db30
23d4b01214eae328637c22e5c6b5ceefecab6b7a
/lesson2-2/task6.py
4024d477543bfd09e078257170eafe6c0595e485
[]
no_license
TomAndy/python_qa
31aad52052b05907e89be2db75035ad61b14f4cf
0ecc712ef3022b81efbcb77afa7f7ca1c314355b
refs/heads/master
2021-06-25T12:04:03.710570
2017-04-12T19:15:51
2017-04-12T19:15:51
56,247,435
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
def create_dict(n=100): dd={} for i in range(2,n+1,2): dd[i]=i**2 return dd if __name__== '__main__': n=2 print (create_dict()) print (create_dict(n))
[ "andrufly@ukr.net" ]
andrufly@ukr.net
3f279d93291390085602cb925c163d1dfda17c69
4e89a680fda4fc7a48b41f287fff2ab7b7faafcc
/core/views.py
b7f53e1ea836e39407459e77393f30c19221bb85
[]
no_license
FeniixDev/AnimatFlix
42391d78bdafa685a0f96d28954201d022d4b9ee
99ab8d688cb43d6240b43db41aeb630f8fa85e2e
refs/heads/master
2022-11-04T13:15:51.227427
2020-06-16T14:35:39
2020-06-16T14:35:39
272,728,152
0
0
null
null
null
null
UTF-8
Python
false
false
1,305
py
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.models import User from django.http import HttpResponseRedirect from django.shortcuts import render, redirect from django.urls import reverse f...
[ "feniixdev@gmail.com" ]
feniixdev@gmail.com
5cfe770dc79080be825b5284d0244ccdc045ac0e
b359f3059cac0b6e9b27db7df531c043f1ce3d4c
/test_data2es.py
78fe1c27703b207b154a124368fc3a81c84d7aa7
[]
no_license
rotblade/csv2es
454844311b4b76fddb2c59e78f883c9e85273c22
1743226c2b08118161265ddc426c1c351b1116f1
refs/heads/master
2021-04-30T07:46:32.684595
2018-02-13T08:09:36
2018-02-13T08:09:36
121,355,590
0
0
null
null
null
null
UTF-8
Python
false
false
3,285
py
import csv import json import unittest from utils import str_to_esfield, t2i, get_fieldnames, \ isperiod, time_interval, index_op, index_body class TestOneGeneralFunc(unittest.TestCase): def test_1_strconvert(self): self.assertEqual(str_to_esfield('This is a--testString.!'), ...
[ "gavin.zhang@alcatel-lucent.com" ]
gavin.zhang@alcatel-lucent.com
056343cacdaddd53d8a581d0497978dd0f1f256f
1d455c7173a692368d50e8f2bb4cc17a4e1907a0
/Pdjango/AWS/UploadImage/serializer.py
8c30f4914d6b1ab8f01051de28e9cc1df8ddaa94
[ "Apache-2.0" ]
permissive
martin11106/amazonec2
ec4652c976e11b901639ae3a28af2533aa8b7ac7
708399bfbbd27dd755c2b2371713fcd4ba497976
refs/heads/master
2020-08-27T11:50:43.080337
2019-10-25T03:29:01
2019-10-25T03:29:01
217,354,220
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
from rest_framework import routers, serializers, viewsets from UploadImage.models import UploadImage class UploadImageSerializers(serializers.ModelSerializer): class Meta: model=UploadImage fields=('__all__')#visulisar
[ "173230@ids.upchiapas.edu.mx" ]
173230@ids.upchiapas.edu.mx
2cc7f466d91e7d724b471e72dd34875273300bf3
5311021d5a80dc073cb761778e1ae85cd25d6afe
/22-Algorithms/ChapterNotes.py
a2c23863d49db045955bf2dde9f8576cba44ff03
[]
no_license
tomgonzo/Learning-PY
83a3f61160acc65a2dcd0307ae336d479fdf3577
9a6580e8ab0f66be6999b3eb6cf56ea7edfaae4b
refs/heads/master
2021-05-05T23:05:15.554585
2018-01-25T02:57:19
2018-01-25T02:57:19
116,344,019
1
0
null
2019-10-18T15:32:06
2018-01-05T05:00:49
Python
UTF-8
Python
false
false
3,558
py
#Chapter 22 - Algorithms - ChapterNotes.py #An algorithm is a series of steps that solve a problem. #Fizzbuzz!!! #Fizzbuzz is a popular interview question designed to eliminate candidates. #Write a program that prints the numbers 1-100 #For multiples of 3 print "Fizz" instead of the number #For multiples of 5 print ...
[ "tomas.gonzo@gmail.com" ]
tomas.gonzo@gmail.com
fba9be84fa69074b96c2f2a81d06f46b69b1b01d
81d289b7dd9e8038b5dc37312b1ac7929d1f5bd0
/organization/models.py
970853fb420a9952596308a219fc58ad3f85ae25
[ "MIT" ]
permissive
paulmand3l/elevendance
8630b59f31fca62a4a8834c15ffac285aa6e587a
feca80cdd35cec63faecd972eb7225c0a1269e08
refs/heads/master
2020-05-03T04:20:56.931659
2014-03-03T06:58:29
2014-03-03T06:58:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,181
py
import recurrence.fields from django.db import models from django.contrib import admin from django.contrib.auth.models import User from django_extensions.db.fields import AutoSlugField from localflavor.us.models import USStateField from payroll.models import Formula class Organization(models.Model): name = mod...
[ "paul.mand3l@gmail.com" ]
paul.mand3l@gmail.com
0063fe58651525ee438dc4988247a7e448145146
b9a68a2135a92419203f78fbf98f67340ed04095
/marathon_waypoint/scripts/base_waypoints.py
e0baa376a25de62a479a14d418764507f7f4f8ee
[]
no_license
szenergy/szenergy-utility-programs
487002758f2edfe877b88fa0853931f862a3a8e1
2a3d5e0213a4d68afe1ea22f5f38d399791e7ec8
refs/heads/master
2023-05-27T16:14:17.140427
2023-05-18T14:58:31
2023-05-18T14:58:31
207,478,962
2
3
null
2022-06-03T10:34:47
2019-09-10T06:12:33
Jupyter Notebook
UTF-8
Python
false
false
2,826
py
#!/usr/bin/env python from matplotlib import transforms import rospy from std_msgs.msg import String from autoware_msgs.msg import Lane from geometry_msgs.msg import PoseStamped, Point from visualization_msgs.msg import Marker import math import tf2 import tf2_geometry_msgs current_pose = None pub = None marker_pub ...
[ "horverno@gmail.com" ]
horverno@gmail.com
e49e87cf1585357ecbb82fbfe88f473bd809164c
204292cd802bf4e67a048db8687ced229c3af86b
/I0320008_Exercise9.10.py
f3ec31399de91ea4a8a658dc82b6223f5217e0b0
[]
no_license
Alifianars03/I0320008_Alifiana-Rahma_Abyan_Tugas-9
d5ff548be6c70eb8d6b621bd79bd2ac90a869f2e
c004c0d405c9fb68e3cbfdc8735a002db45811ea
refs/heads/main
2023-04-12T04:22:20.818892
2021-04-30T15:19:21
2021-04-30T15:19:21
363,179,576
0
0
null
null
null
null
UTF-8
Python
false
false
693
py
import array # mendefinisikan fungsi untuk mengurutkan elemen array def sort(A): i = 0 while i < len(A) - 1: j = len(A) - 1 while j >= i + 1: if A[j] < A[j - 1]: temp = A[j] A[j] = A[j - 1] A[j - 1] = temp j -= ...
[ "noreply@github.com" ]
noreply@github.com
2568443a44d2f2073712d8d9fc8688892d4f3b12
4be879c3328cd2a645f1b332687e3c3272b08bd0
/collegeSpider/spiders/ustc.py
482c1bfc249eb1aac7dc39172c66e93fa06837d3
[]
no_license
px5xp/spider
c0fb4ca90557f18a61e0d63d703edca74cdd0c60
d4b9397a6e5c200ee06b9c1286e3191d0328b421
refs/heads/master
2020-05-07T14:00:24.271328
2019-04-10T12:05:06
2019-04-10T12:05:06
180,572,891
0
0
null
null
null
null
UTF-8
Python
false
false
1,006
py
# -*- coding: utf-8 -*- import scrapy from collegeSpider.items import CollegespiderItem class UstcSpider(scrapy.Spider): name = 'ustc' allowed_domains = ['news.ustc.edu.cn'] start_urls = ['http://news.ustc.edu.cn/xwbl/list.htm'] def parse(self, response): # 分组 li_list = response.xpa...
[ "1779461255@qq.com" ]
1779461255@qq.com
bdf728bea198defc7f289c24ef9e72a6d289f754
c579fc781ebfcb6706e99c8820137dc395a44984
/proyecto/codigo/benchmarking/benchmark.py
0eaa40b827fa5597281cccc170ba7ce7570a2709
[]
no_license
mjaramillu/ST0245-032
62bc550e7ee5f00b8f1069c9b1fb5e74bce87c70
babf3fd18628e989fb8bc680a20be827232515cf
refs/heads/master
2020-06-20T19:06:05.041449
2019-10-29T01:37:20
2019-10-29T01:37:20
197,216,969
2
1
null
null
null
null
UTF-8
Python
false
false
692
py
import matplotlib.pyplot as plt import numpy as np f = open("../benchmark", "r") data = {} for l in f: cols = l.split(" "); if not cols[0] in data: data[cols[0]] = 0 data[cols[0]] += float(cols[5]) / 100 names = [] averages = [] count = 0; for x,y in data.items(): print(x, y) names.appe...
[ "ozjuanpa@gmail.com" ]
ozjuanpa@gmail.com
ce34e0f3ab218380d54095a7ccde3bd02b64147c
5bff028053e815f0d760cab30aa63cf9d8363080
/test/functional/wallet_bumpfee.py
cfaafe498fb561e7b2b59c942cfe7268ffcee3f2
[ "MIT" ]
permissive
nyerium-core/nyerium
8080dd349f5f5bcc69a46c93a01992b03830c117
0bc3b4da2c8cf1c96ab3910cff4c743ff09fcd1e
refs/heads/master
2021-06-24T21:09:52.542446
2020-10-07T19:55:24
2020-10-07T19:55:24
128,843,519
2
4
null
null
null
null
UTF-8
Python
false
false
13,549
py
#!/usr/bin/env python3 # Copyright (c) 2016-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the bumpfee RPC. Verifies that the bumpfee RPC creates replacement transactions successfully when...
[ "emk4827@gmail.com" ]
emk4827@gmail.com
ef44599a73be31089f46960667f7965618dd1508
664169ae450742292321751b4709395454333276
/git_commands.py
22b77e2f24ca10b03287a4d46311f4f04ee96503
[]
no_license
KGODTAO/git_practice
fb9c715c4a3f6032a63f9ea8eeafe4843cd6ba2d
d626897a602f54c2357af365869645526e18859b
refs/heads/master
2023-04-21T21:01:20.843181
2021-05-21T08:51:40
2021-05-21T08:51:40
369,470,799
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
git init - .git git remote add name url git pull origin master git status git add git commit -m "comment" git branch git branch name branch git checkout name branch git push origin master git reset filename
[ "badumkgz@gmail.com" ]
badumkgz@gmail.com
997d0a19c362a6e5b2bc49d9edb9f33476a12db2
deeca7b37d73f4dfe8c16df9c87e4565a2a5361c
/mod_home/home.py
89330f80faaa8a1975634824f7f5d55f16981769
[]
no_license
thiagosartor/Integrador_Equipe07
f0c5fcd372e7177dac6049c43f3df86d6619c9d3
ab14657b22047960993e4fa3747fc0ad4e5a727f
refs/heads/master
2023-01-22T20:52:09.854970
2020-12-01T02:10:00
2020-12-01T02:10:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
from flask import Blueprint, render_template from mod_login.login import validaSessao bp_home = Blueprint('home', __name__, url_prefix='/home', template_folder='templates') @bp_home.route("/") @validaSessao def home(): return render_template("home.html")
[ "felipepg@uniplaclages.edu.br" ]
felipepg@uniplaclages.edu.br
edca8aa2ab4f9942f92cfd0ea06ce08206030690
5880e8c9b696a7021da7c7f1742349a3c93748d9
/Proyecto 1/pruebas.py
dae7e03203d65bcbac701b4966cde89cebbd96ca
[]
no_license
antoniolj07/201900810_TareasLFP
068bfdaab5e04e06586824d81ba674184c15452a
daa53c2cf34e2083aeb71ecb3fa37a9701df6528
refs/heads/master
2023-01-09T18:34:36.350331
2020-11-12T03:11:11
2020-11-12T03:11:11
286,088,759
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
objeto = { 'nombre_1': 'jorge', 'edad': '20', 'promedio-clase': '71', 'vivo': 'True' } keys = [] for key in objeto.keys(): keys.append(key) print(keys)
[ "jorgeperezlj@gmail.com" ]
jorgeperezlj@gmail.com
016de3502da414d0ad037a7d1341396097e20d27
112dbaab5ab30e91e3a86e844787dae1c25ecaae
/courses/algo_analysis_II/hw5_tsp/tsp.large.py
f3ae3ec3644275da4c0b464f11c23068e9c00672
[]
no_license
moose-pop/learning
9c88be2510664f3a219d374928b42ac615c3efb3
3ca8114f53aba86e0d03151ea22e1758c5398db1
refs/heads/master
2021-01-21T00:36:50.816766
2014-07-21T14:55:58
2014-07-21T14:55:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,078
py
import os, re, sys import numpy as np from math import sqrt from itertools import combinations import operator import gc finder = re.compile("-?\d+\.?\d*") def gen_name(lst): return reduce(lambda i, j: i+str(j), sorted(lst), '') def post_processing (half_way, old, graph, dict): bucket = {} for i in half_...
[ "creasywuqiong@gmail.com" ]
creasywuqiong@gmail.com
9478cdf288dc2dc7ba08e7f766c208f02106ad85
fe108bfc4ac5206949d8ae9f787acf2e46b78bed
/code/最长回文子串.py
e6e311d90f53da16281673ee87530a07aeb39dab
[]
no_license
Lmyxxn/JZoffer
88dc8ea71a72e4f1b6806de4e7af3323d6e12f7e
12b8889eda79a0af72b9326982c597e807d1ccea
refs/heads/master
2022-04-18T06:05:19.209089
2020-04-13T16:00:53
2020-04-13T16:00:53
255,370,848
2
0
null
null
null
null
UTF-8
Python
false
false
701
py
### 中心扩散法,核心是双指针,遍历一次字符串数组,时间复杂度o(n*n),空间o(1),labuladong的算法小抄里面的,讲得很好 class Solution: def longestPalindrome(self, s: str) -> str: s = list(s) n = len(s) res = [] for i in range(n): s1 = self.Palindrome(i, i, s) s2 = self.Palindrome(i, i + 1, s) if...
[ "noreply@github.com" ]
noreply@github.com
7081540fb1459cd7828c1989303485a8c6803b4d
c8a3e0308789c4558019949be10269b1ef6f012e
/test/unit/test_hpe3par_hostset.py
bf8befb1b2a211b2be541eddd5261d1e2a8e3cf3
[]
no_license
HewlettPackard/hpe3par_ansible_module
4b828d47eef24ee365032bac9f09160394483c78
d346db61d60c19771e9be9e190a8d408093d971c
refs/heads/master
2023-09-04T09:18:55.518339
2021-08-17T10:18:56
2021-08-17T10:18:56
132,178,404
18
37
null
2022-03-25T11:34:00
2018-05-04T19:00:43
Python
UTF-8
Python
false
false
22,367
py
# (C) Copyright 2018 Hewlett Packard Enterprise Development LP # # This program is free software; you can redistribute it and/or modify # it under the terms of version 3 of the GNU General Public License as # published by the Free Software Foundation. Alternatively, at your # choice, you may also redistribute it and/o...
[ "gautham-parameshwar.hegde@hpe.com" ]
gautham-parameshwar.hegde@hpe.com
91df59fc8d8534dc32f43a9d23f76c9ed78d2e4d
da3ab1d78408ca1d5de37fb7d230b5c507d853b5
/kevin/PointsInTumor.py
258315205c48103ccdbcc7c1fdc8be095ce832fc
[]
no_license
kz26/petpeeve
7f953324edbbffdb046118f295a4b35cc03be0db
04357f526ec362a2ea04fe4ec8d209998a856018
refs/heads/master
2021-01-10T08:05:30.429735
2011-08-16T21:59:32
2011-08-16T21:59:32
48,551,836
0
0
null
null
null
null
UTF-8
Python
false
false
998
py
#!/usr/bin/python # Kevin Zhang # 07/12/2011 # Reads in a text file of coordinate locations and calulates how many are true positives using a mask # Arguments: coordinatesFile dcm_mask_dir import os, sys, dicom, re if len(sys.argv) != 3: print "Usage: %s coordinatesFile dcm_mask_dir" % (sys.argv[0]) sys.exit(...
[ "whitehat2k9@gmail.com" ]
whitehat2k9@gmail.com
853be31b8f040ea8e1a3ee8140e4a31ba13b66ab
7a42d40a351824464a3c78dc0c3e78bbd8e0a92f
/derek_blog/django_comments/views/comments.py
385d97dbeca6f2d9f35dacb2707ad16c96e412d4
[]
no_license
AhMay/DerekBlogLearn
6595063eafbc237b932e187b5cb3ad8ff32637fc
fdd5ea2fc5732cdc82ad006f7be0a2a1f30d0ba9
refs/heads/master
2020-07-09T05:20:33.283672
2019-09-29T10:10:23
2019-09-29T10:10:23
203,891,215
0
0
null
null
null
null
UTF-8
Python
false
false
5,628
py
from __future__ import absolute_import from django import http from django.apps import apps from django.conf import settings from django.contrib.sites.shortcuts import get_current_site from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.shortcuts import render, redirect from django.templ...
[ "meizi111082@hotmail.com" ]
meizi111082@hotmail.com
93e49c0e51acf7546169651dc2c3db6f974afae5
f9b5afbbdeb62b06ad40a6b7497172adfc8e5377
/LockingSimultaneousAccess/library/get_epoch.py
f975bb2119c9d277f9d1b3f16842e1e4c49ee31c
[ "MIT" ]
permissive
david-vaczi/DeveloperRecipes
1987fed58aec350270c8d23afb53f47260d285e9
b334214fd1e66478c1be26d881fb6a4247a3c35f
refs/heads/master
2023-09-04T03:38:49.996511
2021-10-26T12:52:33
2021-10-26T12:52:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
#!/usr/bin/python3 DOCUMENTATION = ''' --- module: get_epoch short_description: Get the epoch ''' RETURN = ''' epoch: description: Epoch type: int returned: always ''' import time from ansible.module_utils.basic import AnsibleModule def main(): fields = { } module = AnsibleModule(argument...
[ "karve@us.ibm.com" ]
karve@us.ibm.com
ad474fb9e014b5f5901e785c5b93ded8bc42856f
68ccd5a88879d6b1d276a1150361d08b00863bf1
/lab01/task.py
654cbb2686d400f0656b83477a706a36af3cffbb
[]
no_license
nikitagolnyak/ML
2ea2803b9092e9638d554e306d957970d363c622
5009c0d1da480c2ce460c3816d79d3530940c344
refs/heads/master
2022-04-19T23:34:18.722212
2020-04-10T16:22:32
2020-04-10T16:22:32
254,682,033
0
0
null
null
null
null
UTF-8
Python
false
false
3,575
py
import pandas as pd from sklearn.model_selection import LeaveOneOut from lab01.normal import * from lab01.one_hot import * kernels = ["uniform", "gaussian", "triangular", "epanechnikov", "quartic", "triweight", "tricube", "cosine", "sigmoid", "logistic"] distances = ["manhattan", "euclidean", "c...
[ "annakapranova77@gmail.com" ]
annakapranova77@gmail.com
05b6dfaf90a2830649b9dfb154d8db9de0010111
e2a5912d65e65a1d1e30eb5163ec65d6da34e28d
/src/tf_nn/tf_utils_fr.py
e3c9c450e53079ef92ddad4c8a3ac57d2ab2bb53
[]
no_license
zach-dev/face_classification
57ec9414493d1ac2fe4910dd78ae6e67ac60c0de
4f4e8575fcaee589a88240d350c1fb053e495fbe
refs/heads/master
2020-03-08T23:51:32.435393
2018-04-09T01:57:01
2018-04-09T01:57:01
128,474,444
0
0
null
null
null
null
UTF-8
Python
false
false
9,098
py
import h5py import numpy as np import tensorflow as tf import math def load_dataset(): train_dataset = h5py.File('/Users/zwilson/school/coursera/deep_learning/code/tensorflow/data/train_signs.h5', "r") train_set_x_orig = np.array(train_dataset["train_set_x"][:]) # your train set features train_set_y_orig ...
[ "zsw9@rutgers.edu" ]
zsw9@rutgers.edu
287169d13572d17d23c6c809bbbffa7cb35f30a5
fca4d4398490b596158092407fc754de6bb1d836
/sim.py
7654ba9ea4e9c18777bebed68b9ba8f0934d1d1d
[]
no_license
Arash67/SimPyInt
8b021bc210c6eefc8e54c947f5d2e489633859f4
c05d1a9580edb83dd3b006115acdb8a146f14fb1
refs/heads/main
2023-08-18T21:19:14.813904
2021-10-08T02:49:18
2021-10-08T02:49:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,826
py
#!/usr/bin/env python3 # this code is developed to tune BC parameters to match target in the output using SimVascular 1D solver import os from pathlib import Path import sv import sys import vtk # A: ================================================ CODE INPUTS ============================================ # A1: pyt...
[ "noreply@github.com" ]
noreply@github.com
58bad32110dab6b2ff793befbea5142a61977784
70a50249cc740ecd7f2df0852f9fa42e1695d3ed
/src/app/views/login.py
fb68f173c5ff7986f4abc6cec5589535fe30680f
[]
no_license
Everaert-K/SecureApplication
b93283560ddad0e3708348ae27263ce4501462ca
976427adff72f481e18eb2bba68b27eb3ea7ce17
refs/heads/master
2022-12-18T04:50:20.269215
2020-09-18T12:13:18
2020-09-18T12:13:18
296,605,990
0
0
null
null
null
null
UTF-8
Python
false
false
4,157
py
import web from views.forms import login_form import models.user, models.lockout from views.forms import changepassword_form from views.utils import get_nav_bar import os, hmac, base64 #, pickle import json import hashlib import logging import bcrypt import struct, time from views.login_utils import * import views.log...
[ "Everaert.K@gmail.com" ]
Everaert.K@gmail.com
893322f8686b41ec344a6a46eeb4d4594104f94d
3989a0e658f79aef096fb2ccdaf546104a09b45b
/post/forms.py
a4261b4156e172b6e1c49de7dfef785ef64fad4b
[]
no_license
chanathip2323/project1
8f5bb7c541741ee7989f179740ea1fb1c15dad6f
9808aecee1b6e60aa8ca3fc03e444183c9a880af
refs/heads/main
2023-05-13T21:54:05.839045
2021-06-04T09:06:06
2021-06-04T09:06:06
373,782,768
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
from django import forms from .models import Post class PostForm(forms.ModelForm): class Meta: model = Post fields =( "title", "description",)
[ "chanathip.ru.60@ubu.ac.th" ]
chanathip.ru.60@ubu.ac.th
973db55e5433a85caa05a78824d960ca8e1087df
29ad25d1f7181eb3e321783b441e84fce877e79f
/others/recipt.py
f1072c0d72d3f8f0d767fa2596e57d37714a91f7
[]
no_license
sacrrie/reviewPractices
376a5f7106d1319b36f663127808dd19bd2bc486
946599119f5d9e0b00bc49b81767536766d5c46c
refs/heads/master
2021-07-15T23:05:33.727771
2020-06-21T04:29:50
2020-06-21T04:29:50
159,460,727
0
0
null
null
null
null
UTF-8
Python
false
false
3,569
py
import sys def main(lines): # このコードは標準入力と標準出力を用いたサンプルコードです。 # このコードは好きなように編集・削除してもらって構いません。 # --- # This is a sample code to use stdin and stdout. # Edit and remove this code as you like. for i, v in enumerate(lines): print("line[{0}]: {1}".format(i, v)) #function to process serial nu...
[ "guanyu.yan@gatech.edu" ]
guanyu.yan@gatech.edu
c58e66749d82650ff0a65697ea82f73272d3f245
09242cfafa604c96dfd2626bae84ec2b408c6bb8
/programming/accounts/views.py
df1aa891ccdf2a7052ccad66ef253887e4fc237b
[]
no_license
yooncobra/programming_commits
aa6b49add508c9a3207612d1bb1b139b10a49ba9
b34ac7349986f8d2aef505cf024a21f4902db4f7
refs/heads/master
2021-01-10T01:08:58.114177
2016-03-11T08:08:48
2016-03-11T08:08:48
52,246,453
0
0
null
null
null
null
UTF-8
Python
false
false
2,477
py
from django.conf import settings from django.contrib import messages from django.contrib.auth import get_user_model, get_backends, authenticate, login as auth_login from django.contrib.auth.decorators import login_required from django.contrib.auth.tokens import default_token_generator as token_generator from django.sho...
[ "yooncobra@gmail.com" ]
yooncobra@gmail.com
1de5122b10d1b9578093b53c9039e4eba2eb920b
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_55/825.py
62b52bb263ab2108fe53731c38ca67585cafd57e
[]
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
927
py
# roller coaster import psyco psyco.full() # open files fIn = open("input.txt") fOut = open("output.txt", "w") # get count count = int(fIn.readline()) # do each line for i in range(count): (rollerRuns, Kapacity, NumberOfPeople) = [int(x) for x in fIn.readline().split(' ')] peopleQueue = [int(x) for x in fIn...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
c99a21b5f57c4169802b35840986dcb3c904c7a6
358588a49140d630089c6e9d3f6cc5edcbbb5377
/chapter11/q5.py
6c80dab0b17909f77c424d6dc9cd372d81709fc4
[]
no_license
gzdshn/ctci-python
8c2583c50cb3987ecef6c9509fb67d3b78914d94
69bc48e8c8db21d36d3ea0c8c88a094f268e367b
refs/heads/master
2020-03-19T06:44:17.238168
2018-08-09T18:04:14
2018-08-09T18:04:14
136,050,363
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
## CTCI - Chapter 11 - Sorting and Searching Question 5 ## Find element in array of strings with empty strings def search(A,val,start,end): if start>end: return -1 ## Find a midpoint that is not empty mid = (start+end)/2 if A[mid] == "": midleft = mid - 1 midright = mid + 1 while midleft>=start and midri...
[ "gsahin@usc.edu" ]
gsahin@usc.edu
543ac6eec777a19d95246b4da21290dee7a577ac
3555deb5ac4a709a5f12bc3a8d0d92d7cb795431
/linear_program.py
d9072fe10c7119cff7efad96226a786224c8caa8
[]
no_license
miffyrcee/py
b5e941cfb1b3b1dc94436fe7b11e43c29de86993
57d7d6ead1394c5e80dedc73f2dc021a62c5b24c
refs/heads/master
2020-05-21T10:40:03.416893
2019-12-02T00:57:20
2019-12-02T00:57:20
186,017,721
3
1
null
null
null
null
UTF-8
Python
false
false
220
py
import numpy as np a = np.array(( [1, -1, -1, -1, -1], [0, -2, 8, 0, 10], [0, 5, 2, 0, 0], [0, 3, -5, 10, 2], [0, 1, 1, 1, 1], )) b = np.array(([1000, 50, 100, 25, 0])) print(np.linalg.solve(a, b))
[ "miffyrcee@outlook.com" ]
miffyrcee@outlook.com
54b5f5b70b4a6bc0573707d8953d1b52cdebaa06
0d5e8c05aca9e829425ef005c158c4c86f1c854b
/codes/Log_Kmeans.py
605b1a58efb9d41e0240090f7e34b99be7e0b889
[ "Apache-2.0" ]
permissive
ldwen/LogMerge
cc6398701494bf4ee259b20138d6f618f94e6be4
5ca497c5da19bbcfa137afb22c4fb5b897b1ff2e
refs/heads/master
2022-09-15T18:04:21.536993
2019-12-14T17:08:27
2019-12-14T17:08:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,233
py
#!/usr/bin/python # -*- coding: UTF-8 -*- import os import numpy as np from sklearn.cluster import KMeans from sklearn.externals import joblib import matplotlib.pyplot as plt class My_Kmeans(object): def __init__(self): object.__init__(self) def find_all_template(self): for i in self....
[ "2032374156@qq.com" ]
2032374156@qq.com
35f0222445493e05c7b929adffc6c0aa8daf0d0a
9dba8607dce414f9905700d7a4ac44668de5e1f1
/cracking_trials/cracking/fiber_section/fiber_section_test_macros.py
d731b9888a48909c41c978543ab1a75fa3e260fe
[]
no_license
anaiortega/XCmodels
c0463ffe38531578aee281456e88528882255cd7
e9b8c2f996a21b8aa3314242f3cc12b0e391b5df
refs/heads/master
2023-08-16T22:44:01.168775
2023-08-14T18:15:10
2023-08-14T18:15:10
141,140,177
3
3
null
null
null
null
UTF-8
Python
false
false
2,416
py
# -*- coding: utf-8 -*- import math __author__= "Luis C. Pérez Tato (LCPT)" __copyright__= "Copyright 2014, LCPT" __license__= "GPL" __version__= "3.0" __email__= "l.pereztato@gmail.com" def extractFiberSectionProperties(fiberSec,scc): fibers= fiberSec.getFibers() global nFibers; nFibers= fibers.getNumFibers() ...
[ "l.pereztato@gmail.com" ]
l.pereztato@gmail.com
e94f2e785dc3b1e0d4a94fbeedca7a535b5501a8
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2660/47920/321822.py
b1654b4ed61959703e197f2e508f4e4b307c0d7f
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
21
py
print("b") print("c")
[ "1069583789@qq.com" ]
1069583789@qq.com
85f5893f99da40c720585f284236bc9083117e57
ed872a0efb1db283f48176474e22f4c4ad31db79
/src/forum/migrations/0001_initial.py
59300a9cb2960e366054264f9ebbdfd7657895c9
[]
no_license
barontxu/djbookru
34c2bf90e5d3542e4cbd2f3e600e1c0a12795d35
388bff0491e961f8efdf3cabd6c47d9fa2988547
refs/heads/master
2021-01-16T20:39:33.949315
2014-06-20T12:22:56
2014-06-20T12:22:56
23,031,683
1
0
null
null
null
null
UTF-8
Python
false
false
12,793
py
# -*- coding: 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): # Adding model 'Category' db.create_table('forum_category', ( ('id', self.gf('django.db.models.f...
[ "alerion.um@gmail.com" ]
alerion.um@gmail.com
7183beb77f4dffe7f57f3cf725186dbf699e9697
d0a66aba48b8c3fb20d62a2444d05aaf86c1faf8
/numpy_array_1.py
9f796ebc2f95932b3c28ed766ac8153739f458ed
[]
no_license
zoro6908/test1
a273e1bee8e8db58759b1df98b657e35ba69df17
e49952334cc0ec4725c89ac199b1fd0c8127a73b
refs/heads/master
2022-07-11T00:20:13.560271
2020-05-11T07:48:04
2020-05-11T07:48:04
262,949,765
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
import numpy as np # a = np.array([1,2,3]) # a= np.arange(10,100) # a=np.zeros((5,5)) # a = np.linspace(0,20,5) # a = np.zeros(8) # print(a) # c=a.reshape((2,2,2)) # print(c) # arr=np.arange(2,20) # print(arr) # ele=arr[6] # print(type(ele)) # # arr=np.arange(20) # print(arr) # sli=slice(1,10,2) # print(arr[sli]) arr...
[ "zoro6908@naver.com" ]
zoro6908@naver.com
41691c156d4f99f8adb3d61df01035aa45c3fe7b
10ed27dfc0853704bdd6a39c9a18082783195e76
/configs.py
40797b8601bd6e1943bb31710fa7c5a6e1ef5754
[]
no_license
TanmDL/PGMA_tensorflow
d6d21b8614940b72065230f3ba5c2b88aec2e785
a25240eb59ed695ecc41abd40eebb25986c6f14c
refs/heads/master
2020-07-29T09:18:57.049428
2019-05-07T11:35:27
2019-05-07T11:35:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,551
py
""" MNIST configuratons. """ config_mnist = {} config_mnist['dataset'] = 'mnist' config_mnist['datashape'] = [28, 28, 1] config_mnist['verbose'] = True config_mnist['save_every_epoch'] = 20 ##print every config_mnist['print_every'] = 100 config_mnist['work_dir'] = 'results_mnist' config_mnist['plot_num_pics'] = 400 c...
[ "noreply@github.com" ]
noreply@github.com
ccd8674ff8ba9109ee2f8c297508b854a91acbc9
75f63c03ea5d7d9718fdf84fb2c9a2f428ce83e3
/experiments/07_learning_rate_selection/run_fmnist_mlp.py
a1f44076dc338a1f6e0362cbdc96e736871980aa
[]
no_license
h1j9d3q/cockpit
b7e662b8679cb1d8726e88644defbc8857b88419
b484f5728c793a9f17df09553e36943f86b5d5a4
refs/heads/master
2023-06-29T05:55:46.929033
2021-08-05T13:44:54
2021-08-05T13:44:54
370,411,681
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
"""Run SGD on Fashion MNIST using different learning rates.""" from gridsearch import run from cockpit.utils import schedules lrs = [1e-5, 5e-5, 1e-4, 5e-4, 1e-3, 5e-3, 1e-2, 5e-2, 1e-1, 5e-1] track_schedule = schedules.linear(1) run("fmnist_mlp", lrs, track_schedule)
[ "Anonymous" ]
Anonymous
94d0275ae55e0a157355c6e20b146de6d46c9659
87b60b88251f11367f3563557223a25716c008c3
/ascii.py
854e2adc9021f5d6b6c39b52f60e880a8725eadc
[]
no_license
shanepatel/Structure_Utils
b2931070045dce5d51968151210025135c1f8b7d
2fe4759598d7229de0ae9763a84a7ce6fb6214d2
refs/heads/master
2022-06-26T07:39:25.007254
2022-06-13T00:12:27
2022-06-13T00:32:01
135,334,883
0
0
null
null
null
null
UTF-8
Python
false
false
2,653
py
import sys import atoms from atoms import * #***************************************************************************************** def ascii_write(atoms,filename): if filename=="screen": print "%d" % atoms.nat #print "%s" % atoms.boundcond print "%24.15E%24.15E%24.15E" % (atoms.cellvec[0...
[ "mhguwop@ms92-234.ms.northwestern.edu" ]
mhguwop@ms92-234.ms.northwestern.edu
495e4800bad42a827e0b18c374ed2fd5b6049cc1
abd26cfcf75f8bc3841907bee363fc98d6294b53
/DRIMS/DRIMS/main/admin.py
2c4d0fb46fa2c440ef389d04e2c05460d1489368
[ "MIT" ]
permissive
EsraelDawit-a/Drims-Fse-Project
a6e5e5fc0ebd0982ed8925fb78f9404f6c7d8e15
a68d842e947450bc27711a6acab89ec8e3ba3b03
refs/heads/master
2023-06-06T05:44:58.719308
2021-06-27T11:27:53
2021-06-27T11:27:53
356,553,061
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
from django.contrib import admin from .models import * from django.contrib.auth.admin import UserAdmin as A from django.contrib import admin from django.contrib.auth.forms import UserCreationForm # Register your models here. class CustomUserAdmin(admin.ModelAdmin): list_display = ['username','phone','Adress','opti...
[ "esraeldawit0@gmail.com" ]
esraeldawit0@gmail.com
aea8383bf677353e270af874f52abb779e9b0bdc
132ef72cbb2d404d4520a2cb5e1b604835f70d8b
/src/poetry/utils/constants.py
0f799b16d7dd185bb05a8e5e7131aead1010958a
[ "MIT" ]
permissive
tianhm/poetry
b5e6d70a9fedebde3529915f990560ccaa9ceda6
2b15ce10f02b0c6347fe2f12ae902488edeaaf7c
refs/heads/master
2023-08-31T04:00:39.337388
2023-03-27T15:20:47
2023-03-27T15:20:47
240,429,186
0
0
MIT
2023-03-31T18:52:04
2020-02-14T04:39:43
Python
UTF-8
Python
false
false
115
py
from __future__ import annotations # Timeout for HTTP requests using the requests library. REQUESTS_TIMEOUT = 15
[ "noreply@github.com" ]
noreply@github.com
93f4a7b2d5f88879fe31f02794e2c14d975aed7a
b74f8a4e0e60a51a1d88b3f0ba85c000fc904708
/wgpu/_parsers.py
cd39b09ba8fc09b9c353d7ec3968d507ac3b2679
[ "BSD-2-Clause" ]
permissive
Korijn/wgpu-py
37d2afb4b263135f207837002d2489e83cb7c5dd
72f89be121ea6cd819a145ee3b037004211b3245
refs/heads/master
2020-11-27T19:11:07.080730
2019-12-22T09:50:36
2019-12-22T09:50:36
229,572,629
0
0
BSD-2-Clause
2019-12-22T13:33:46
2019-12-22T13:33:46
null
UTF-8
Python
false
false
17,180
py
""" This module provides classes to parse the .idl and .h files defining the WebGPU and wgpu API. These help us to generate code (definitions of flags, enums and stucts) and to provide help for developers. """ class BaseParser: """ An object that can be used to walk over a str in an easy way. Our parsers hav...
[ "almar.klein@gmail.com" ]
almar.klein@gmail.com
3ce005e8fcf85778005f67433c18694532ca1231
bcb161c349ef0dd32d6a1e349ecd409103cd7fd4
/app/__init__.py
83bc0bde530254cd5ccf01a1f465af4d765c2ceb
[]
no_license
apengok/jujulong_flask
8f2218cbe67903009eaacba794f8020ea7c90c28
9c8319d99521b6b6dfb4a9e901425a0369c36fed
refs/heads/master
2021-06-07T18:06:20.500540
2016-12-14T08:40:54
2016-12-14T08:40:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,544
py
import os from flask import Flask,render_template from flask_bootstrap import Bootstrap from flask_mail import Mail from flask_moment import Moment from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_pagedown import PageDown from flask_admin import Admin #from flask.ext.openid import...
[ "apengok@163.com" ]
apengok@163.com
fc407b3fedab2b8a564cbb560adedffef15ee8e3
c208954de92470c0144fad2e07a92ed1822edd59
/Facetool/data/banner_decompiled.py
55da4a85c78ac4b238e55f7d2dfd0f957023f249
[ "MIT" ]
permissive
rendy026/reverse-enginnering
4217f3b723569fb792bac0f22a56a305199db1dc
f04cec0bf518a2617fc4fd7155f755fafc2af799
refs/heads/master
2023-01-07T15:49:15.791052
2020-10-13T09:22:02
2020-10-13T09:22:02
303,575,571
0
0
MIT
2020-10-13T09:41:59
2020-10-13T03:17:42
Python
UTF-8
Python
false
false
9,313
py
# -*- coding: utf-8 -*- # coding=utf-8 import time,os,sys, requests import auto import v2 import v4 import v4b import v5 import v6 import v7 import v8 import vp import vip import get import new1, new2 W = '\033[1;37m' #Putih N = '\033[0m' # Tutup R = '\033[1;37m\033[31m' #Merah G = '\033[1;32m' #Ijo B = '\033[1;37m\03...
[ "noreply@github.com" ]
noreply@github.com
8ec36347697a024be3727ec528439673b06f7c31
54b6a91727b6275e77bf20a9c013888e5d81c7b5
/Inception-DenseNet/inference.py
af64a1ada3cd00675d1d2374236e5c71d14fd338
[]
no_license
AI-repo/Regularizations-DNN
1c2a02c6a88408b446079da4962426110f3a80c5
6ac08e62354385136b83f10c221da0cc1250b803
refs/heads/master
2022-03-25T06:32:22.469465
2019-12-23T09:10:01
2019-12-23T09:10:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,874
py
"""Sample PyTorch Inference script """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import argparse import logging import numpy as np import torch from timm.models import create_model, apply_test_time_pool from timm.data import Dat...
[ "noreply@github.com" ]
noreply@github.com
2a489f15271680f2e83a5c08d9434cf1ff97b209
6dde75c27bdae3e7be8470a555c90968be1169b6
/discoutils/prebyblo_filter.py
a8c29ac95ef0f1bf36530bb0730b4370f6e8d70f
[]
no_license
tttthomasssss/DiscoUtils
81936fed2fb504f3809d92913e4eab16707f2028
e1746533b7bd3d3bcbc7318128b925cdfb4282d7
refs/heads/master
2020-05-21T05:46:52.690587
2017-03-30T21:35:27
2017-03-30T21:35:27
36,299,367
0
0
null
2015-05-26T13:56:02
2015-05-26T13:56:02
null
UTF-8
Python
false
false
4,358
py
import argparse import logging import re __author__ = 'Julie' def count(filename, pos_patterns): logging.info('Counting entry patterns: %s', [x.pattern for x in pos_patterns]) counts = {} #dictionary to hold counts of items with open(filename, 'r') as instream: logging.info("Reading %s", filena...
[ "mbatchkarov@gmail.com" ]
mbatchkarov@gmail.com
d400e7e6970141f565c6fade749a505fffce6f5f
3a194cb61957235b9be6631161a50101d74de271
/1149_rgb_street.py
a4a46674a817626e8e57d2090711fd1c560dee79
[]
no_license
jada-gwon/MRA
0b7edf0a75c2de434cb563a68640c91baff34047
b4fbf17a45bdb95c9e0bd2bf9b0716e1d67087da
refs/heads/main
2023-08-21T18:42:39.671862
2021-09-15T08:58:18
2021-09-15T08:58:18
378,040,165
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
N = int(input()) H = [list(map(int, input().split())) for i in range(N)] DP = [[None for j in range(3)] for i in range(N)] for i in range(1, N): DP[i][0] = min(DP[i - 1][1], DP[i - 1][2]) + H[i][0]; DP[i][1] = min(DP[i - 1][0], DP[i - 1][2]) + H[i][1]; DP[i][2] = min(DP[i - 1][0], DP[i - 1][1]) + H[i][2]; p...
[ "jada.gwon@gmail.com" ]
jada.gwon@gmail.com
9f73dff52e84a197a2e2dd03db06765b6f79140e
4f510470b3093ab2c60f929221af82c79b121ca7
/ML/新建文件夹/Day04all/svm_bal.py
e008eb573c5604fe57aa655a601d1bf163158790
[]
no_license
q737645224/python3
ce98926c701214f0fc7da964af45ba0baf8edacf
4bfabe3f4bf5ba4133a16102c51bf079d500e4eb
refs/heads/master
2020-03-30T07:11:17.202996
2018-10-30T06:14:51
2018-10-30T06:14:51
150,921,088
2
0
null
null
null
null
UTF-8
Python
false
false
1,535
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import numpy as np import sklearn.model_selection as ms import sklearn.svm as svm import sklearn.metrics as sm import matplotlib.pyplot as mp x, y = [], [] with open('../../data/imbalance.txt', 'r') as f: for line in f.readlines(): da...
[ "764375224@qq.com" ]
764375224@qq.com
26e1b0a5223319c690a95aeec824d5f3299ce85a
4a2e98d2d744816ccd86baa61a1d8c30e47bb7ae
/pyhap/tlv.py
3308ee9ecd24b773cbf28f291eacabfb5fb639d4
[ "Apache-2.0" ]
permissive
partylover/HAP-python
7fce3dacc22a924244ad718d686cb130442fd7f6
7e630f60acfebb7f0f019267ca44b9579a93eb22
refs/heads/master
2021-05-06T17:48:38.086427
2017-10-27T09:13:49
2017-10-27T09:13:49
111,837,644
0
0
null
null
null
null
UTF-8
Python
false
false
1,188
py
# Encodes and decodes Tag-Length-Value data. import struct def encode(*args): assert len(args) % 2 == 0 pieces = [] for x in range(0, len(args), 2): tag = args[x] data = args[x + 1] total_length = len(data) if len(data) <= 255: encoded = tag + struct.pack("B", total_length) +...
[ "ivankalchev@IK-Pro.lan" ]
ivankalchev@IK-Pro.lan
e4b20dafd64ea2e3484414033db3f270a5e8067d
0a3bbce6b2ef1b0faf894d02a829cbc6e9c126f5
/request.py
1a975ed2297c2bd20adc9ea4be4cf32a2cbca0d4
[]
no_license
mznzgt/k8s_simulator
97f89756b22f1627d77ad0e986ffcce3ad56db7b
b04042f5937bdc0c75da25e1533882cb6ab0c085
refs/heads/master
2023-08-22T09:12:48.253508
2021-10-25T06:42:38
2021-10-25T06:42:38
420,079,034
1
0
null
null
null
null
UTF-8
Python
false
false
455
py
import threading #Requests stress Pod resources for a given period of time to simulate load #deploymentLabel is the Deployment that the request is beings sent to #cpuCost is the number of threads that the request will use on a pod #execTime is how long the request will use those resource for before completing class R...
[ "michaelzhou09@hotmail.com" ]
michaelzhou09@hotmail.com
fd719b8953b0c6fb6f22e6a3c8d510fe769cc54f
51a5b120d26dbfc6066e070bfdbf92680484cf53
/buggy/__init__.py
af09a898b379805986afb12363ab040bc27d2bee
[ "BSD-3-Clause" ]
permissive
fusionbox/buggy
c02d902fa1c0744541acdbf07cdc3765f6fb7d4e
fb6f4a34f6896b65c843ebe711f5bf3279d33049
refs/heads/master
2021-01-19T17:07:26.489733
2019-01-31T21:01:43
2019-01-31T21:01:43
88,305,496
2
2
BSD-3-Clause
2019-07-16T14:44:13
2017-04-14T21:43:37
Python
UTF-8
Python
false
false
46
py
default_app_config = 'buggy.apps.BuggyConfig'
[ "gwahl@fusionbox.com" ]
gwahl@fusionbox.com
0a600e2420bb8e38685b76c17c2afe383d5ec98c
c3f6562533f6924435b22c72e2a4e28f4ca0f89f
/scratch/machine_4/root.py
8da2240fa05e145e1b567d0a50415a471621ccd3
[ "MIT" ]
permissive
Strangemother/python-state-machine
cd19708749ad56c5fd59719c417254aafbdfeb84
c18e8cbbad9ebf1766c742c33e7fb7c92cd88328
refs/heads/master
2021-01-02T08:47:51.897217
2017-10-02T17:43:33
2017-10-02T17:43:38
34,356,886
1
0
null
2015-11-22T17:02:02
2015-04-21T23:07:37
Python
UTF-8
Python
false
false
132
py
from machine import Machine from conditions import Condition import node as nodes from node import Node import examples as examples
[ "jay@strangemother.com" ]
jay@strangemother.com
16f124addb862201b70610ede3335c4467feef06
174a10a913d2a91cadd5e8bacd6232c07d7addf9
/startcamp/20181218/write_file.py
1c07fe6ddda0450935c90b6e0b143ad8e79bcd77
[]
no_license
pjh6315/TIL
7cf161ecd208ac75768bffe158963a297bdd9e64
6a7d45778c57aca7225485a1894bb93fb8ba6c23
refs/heads/master
2020-04-12T00:41:04.761991
2019-03-18T08:46:20
2019-03-18T08:46:20
162,208,481
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
# f = open('ssafy.txt','w') # w: write , r: read , a: append # f.write('This is SSAFY!') # f.close() # \t : tab # \\ : 백슬래시 '\' 입력하고싶을때 # \' \" : 마찬가지 with open('ssafy.txt','w',encoding='utf8') as f: f.writelines(['1\n','2\n','3\n']) """ for i in range(10): f.write(f'This is \"SSAFY\"!!!!!...
[ "bluetruddnjs1@gmail.com" ]
bluetruddnjs1@gmail.com
139eb8b63126d23b949ba149133245ef3c622943
2260302d1c8847159ad5d9f6af11829e81495d4d
/venv/bin/django-admin.py
f2ce3960601e8ca2930c05fd69702a7c09ca2272
[]
no_license
ShaharAsraf/BBM
53b8b2588e640664aa31a7f0e680a1421df98737
03f6fee83154f1a0989f51c7afdb470d29695f49
refs/heads/master
2023-06-01T21:34:01.384383
2021-06-19T16:42:51
2021-06-19T16:42:51
378,416,333
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
#!/home/shahar/PycharmProjects/bloodbankmanagement/venv/bin/python from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "shaharassraf@gmail.com" ]
shaharassraf@gmail.com
6472574692488b25c0b61559769acc571a0679f3
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/BIANCA-BRICK-MIBMODEM-MIB.py
144003d311bdf77a5486fc1f282c845a1507b3a9
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
22,995
py
# # PySNMP MIB module BIANCA-BRICK-MIBMODEM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BIANCA-BRICK-MIBMODEM-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:38:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3....
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
e2863988a5be5d69a26c738e86a813522864128e
9fae57f33c3fae1607a5b0036c17195ed7dcd682
/urban_clap/urban_clap/urls.py
bbee1774f1774b913d9820399cec7e4b12acda38
[]
no_license
Nainagerwani07/urban_clap-clone
7baa605dfa7c29b3552d6f509513f3e1b2139fd3
60384c1acaa9692f472623fd4d8c3f0ac147437d
refs/heads/master
2020-06-27T03:04:41.171230
2019-07-31T09:51:02
2019-07-31T09:51:02
199,827,744
1
0
null
null
null
null
UTF-8
Python
false
false
1,626
py
"""urban_clap URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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') ...
[ "noreply@github.com" ]
noreply@github.com
cd6c9b787d9d968dda1a8d7cc9a4f7be1a6fbbe3
4e97cacd839adf7667e9c5de882213fd2c6be1f8
/hello2.py
4144e174d9932b9c4f951296ff8b65a91d697dac
[]
no_license
Marlar22/flask_mega_tutorial
0770a1ee47343625e6c713c9f9489cfb8f18c081
c583b138b0c32a992da6a01f9d52a7c18612a0e8
refs/heads/master
2020-03-20T04:28:34.866700
2018-06-18T03:45:35
2018-06-18T03:45:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return ''' <html> <head><title>This is my flask app</title></head> </body> ''' if __name__ == "__main__": app.run(debug=True)
[ "" ]
0b6c8e608458e1e42d180c5b59bc259f38398666
546f70077efb407d86d399dad1a3aeae250c1454
/phonescrubber/config.py
8f1020a9be2c1fb2c55a0ff03d1f7bff150486bc
[ "MIT" ]
permissive
hummans/phone-number-validator
3e942ab29ddb67c71dfeaf5ceb66ed6695446b03
762122efa03c3e6057204c8b5a7e3bdc468c94e4
refs/heads/master
2022-02-26T11:54:53.913787
2019-08-28T15:32:01
2019-08-28T15:32:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
import os class Config(object): def init_app(self): return class DevelopmentConfig(Config): DEBUG = True class TestingConfig(Config): TESTING = True class StagingConfig(Config): DEBUG = False class ProductionConfig(Config): DEBUG = False TESTING = False config = { 'development'...
[ "ian.dees@gmail.com" ]
ian.dees@gmail.com
249fe015b9c47bf50605b1299fc814a0741aef70
ec4ed516b15d96599f39c21c211830884a8561e2
/16020332.py
6f50c142067ead2d3458a1ec7fa4a8dce8f5d5ac
[]
no_license
Dhirasha/Server
4edac6b92bb14f83792965d0a925ec22e401fe14
ace77647c5fb08125e06cbceb0947709e619b458
refs/heads/master
2020-05-16T15:59:46.938791
2019-04-24T04:34:02
2019-04-24T04:34:02
161,175,487
0
0
null
null
null
null
UTF-8
Python
false
false
3,399
py
import socket HOST_NAME ,PORT_NUMBER = '127.0.0.1' , 8080 listen_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) def server_start(): try: print("Starting server on..... " + str(HOST_NAME) + ":" + str(PORT_NUMBER)) listen_socket.bind((HOST_NAME,PORT_NUMBER)) print("Started serve...
[ "42823001+Dhirasha@users.noreply.github.com" ]
42823001+Dhirasha@users.noreply.github.com
d78cba31e3a21e3b472b19e2b5f49e86497b5b29
2838c48dd51994fcc1f3d461877ca7189e5703bd
/api/handlers/base_handler.py
eb051462321caa737338d46a7a2929dab64db2d4
[]
no_license
maykonlf/TornadoAPI-Curso
06737c7ef8c47ed16d490a2cb7fe1b757530b9b9
c10e90ec9347789b682d8c3758f40f50d27f259e
refs/heads/master
2020-04-02T01:24:00.037407
2018-10-17T21:27:50
2018-10-17T21:27:50
153,853,671
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
from http import HTTPStatus import tornado.web class BaseHandler(tornado.web.RequestHandler): def data_received(self, chunk): pass def set_default_headers(self): self.set_header("Access-Control-Allow-Origin", "*") self.set_header("Access-Control-Allow-Headers", "") self.set_h...
[ "maykonlfonseca@cedrotech.com" ]
maykonlfonseca@cedrotech.com
d6147d6a9881a3793111bda1a6b618c434cc8aa3
8d42729aa769243c9bd908d95a963fc1711b1cbd
/psono/administration/serializers/delete_user.py
51103b8a6ddbc1e2f8b4eb143e6b2fdcc58ca07c
[ "BSD-3-Clause", "MIT", "Apache-2.0", "BSD-2-Clause", "CC0-1.0" ]
permissive
it-notify/psono-server
9450eb88b2ddd357a6e5298b35b662c85e07b030
4a5434a005e05db8e87e871559ed6c1ec5dd84a8
refs/heads/master
2020-08-08T20:48:33.896231
2019-09-28T14:21:02
2019-09-28T14:21:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers, exceptions from restapi.fields import UUIDField from restapi.models import User class DeleteUserSerializer(serializers.Serializer): user_id = UUIDField(required=True) def validate(self, attrs: dict) -> dict: ...
[ "sascha.pfeiffer@psono.com" ]
sascha.pfeiffer@psono.com
ecf0b967ad97d8010746961a1bf736916b7dcb1d
dbc17aeffac05409cc7c9c24d0c48cfd1539a5e9
/TopCoder/python/WordBreak.py
d78ff5a2c64c169e6b853113f2fa1e4a4f41296a
[]
no_license
sumanshil/TopCoder
031ea2003b8c906cc3ecb146c065db9b566ff0a4
a1fc7389d6f76fae2eb882c6ec751d668334fa42
refs/heads/master
2022-12-22T05:48:07.242153
2020-02-27T16:28:47
2020-02-27T16:28:47
29,289,890
0
3
null
2022-12-10T03:18:05
2015-01-15T09:20:15
Java
UTF-8
Python
false
false
1,579
py
from typing import List class Solution: def wordBreak(self, s: str, wordDict: List[str]) -> bool: #res = self.recursive(0, s, wordDict) dp = [False] * (len(s) + 1) dp[0] = True map = {} for word in wordDict: len_word = len(word) list = map.get(len_wo...
[ "sshil@vmware.com" ]
sshil@vmware.com
a559985e89ae89ef42c159ad5519e064cfc3ff87
6cc9b71006983db63bf4e2639861d9691ab9c8db
/src/crud.py
d42ffb7c1359d8c055fd01368f3d8d2576a03ea6
[]
no_license
get-aakash/fastapi_crud
905ba14ee4b8733831d6b7b87826aad2b54210ca
dfef435cdf74e16c3534c5149d66e18acbbfea85
refs/heads/master
2023-09-01T14:01:44.532620
2021-09-03T08:50:15
2021-09-03T08:50:15
388,077,248
0
0
null
null
null
null
UTF-8
Python
false
false
13,136
py
from datetime import datetime, timedelta from fastapi.exceptions import HTTPException from fastapi.param_functions import File from sqlalchemy.orm import Session, session from passlib.context import CryptContext from . import models, schemas import jwt from dotenv import dotenv_values from fastapi import status from f...
[ "mail.aakash108@gmail.com" ]
mail.aakash108@gmail.com
83845dddd9826d631ab6a2747c16c991a8de1421
03f40e1e96f78240904ee90ae3257611e0d2b981
/venv/lib/python3.8/site-packages/sqlalchemy/orm/session.py
95a25fd5dd58932867e34779df93df262568a416
[]
no_license
otr0624/StoreApp
bd584a37af668a4055969cdf03fa2e688f51e395
76ae4040ccfe1f415c8c2acf88550690cb537290
refs/heads/master
2022-04-22T19:35:03.231742
2020-04-14T23:43:19
2020-04-14T23:43:19
255,651,497
0
0
null
null
null
null
UTF-8
Python
false
false
129,485
py
# orm/session.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Provides the Session class and related utilities.""" import itertools import sys ...
[ "otr0624@mail.com" ]
otr0624@mail.com
36bddcd2bcbf06f731e1550d821f62cda442c623
28cb8580ec1e635d5050b800a5a71136cb91c5d7
/calculators.py
0fa5f2a01b884981f60d6d4bbeb5992c6be48c07
[ "MIT" ]
permissive
lxf-gzu/effective_mass_calculator
a760c269aafa07a23249b809aeb714498a76ac45
7e9ef8ae6e9e7dcbc3d4ff8d3f27e7ca964ce098
refs/heads/master
2021-10-25T06:22:42.475637
2019-04-02T06:55:04
2019-04-02T06:55:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,610
py
import numpy as np from numpy import linalg as la from scipy.optimize import curve_fit from scipy.spatial.distance import euclidean A_m=10e10 h_bar=1.0545718e-34 eV=1.6e-19 me=9.10938356e-31 ''' unit conversion relationship: E(eV)*1.6e-19=(1.0545e-34)^2 * (10^10)^2 * k2=^2 / 2m where the k is in unit of 1/...
[ "noreply@github.com" ]
noreply@github.com
5b65135d5eb8cb14bba2ee5cebc9e6ccf75c2200
ee3ba2af93581aaca5a1393f3eb22fa794be2a12
/manage.py
62b3538aa850e06f04c7eae23518adc851d8acbb
[]
no_license
wbchief/myflask
303ed98c969c58a07953aa37c28f90ace3b9a284
a4d82bc80df84cb7e418058de3519c29e29db7f1
refs/heads/master
2020-03-30T23:48:10.771252
2018-10-14T09:56:17
2018-10-14T09:56:17
151,713,761
0
0
null
null
null
null
UTF-8
Python
false
false
620
py
from flask_migrate import Migrate, MigrateCommand from flask_script import Manager from flask_script import Shell from app import create_app, db from app.models import User, Role, Post, Permission app = create_app('testing') @app.context_processor def include_permission_class(): return {'Permission': Permission}...
[ "712640388@qq.com" ]
712640388@qq.com
66a43ae1a34c4909c78db34a8062796dbc43165f
5ec89827284eaff56f800407eb111cf07835558c
/Capitulo3/Capitulo3-ListasSimples/MetodoAppend.py
480ed96698600ebe3d311f1f22a120d94e9c8660
[]
no_license
guilhermepuck/eadFiap20
c95a7a39c9a11135ca246fc6def7d1d8ecf9fdf3
e619991a050d41aed14e623402d36040e82bb5bd
refs/heads/master
2023-01-12T17:52:45.566133
2020-11-16T04:13:57
2020-11-16T04:13:57
308,762,742
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
inverntario = [] resposta = "S" while resposta == "S": inverntario.append(input('Equipamento: ')) inverntario.append(float(input('Valor: '))) inverntario.append(int(input('Número Serial: '))) inverntario.append(int(input('Departamento: '))) resposta = input('Digite \"S\" para continuar: ').upper() ...
[ "guilherme.engine@gmail.com" ]
guilherme.engine@gmail.com
0c16b3661deed643f15342b723114acc21bdc1d9
c719641899290d19cabce13663bd75520f89e268
/Assignment3.py
8cd801a419837ae05524d74b46a1e03242b88c75
[]
no_license
frason88/Python_Lab_MU
a21c2d5c7f541916b063b193227c2ae26b824d0b
c79a8046d54b60295329c812c41d07b658ebb489
refs/heads/main
2023-05-22T04:25:56.177066
2021-06-11T14:21:49
2021-06-11T14:21:49
374,122,515
0
0
null
null
null
null
UTF-8
Python
false
false
1,183
py
# -*- coding: utf-8 -*- """ @author: jkfrason """ class Vehicle: def __init__(self, name, max_speed, mileage, capacity): self.name = name self.max_speed = max_speed self.mileage = mileage self.capacity = capacity def seating_capacity(self, capacity): ...
[ "noreply@github.com" ]
noreply@github.com
761f670b17d74baddac4ecc8fa65e6f6a51ec262
ab75d43198c0521479136f6031891f47b3dadd52
/api_keys.py
bbbd4a025dbce08ad8afe2c35209145f04ba828a
[]
no_license
benbukowski/Weatherpy
91c4d076fc2ae67fea9c76441130ea67c4188056
1e272c92b4af6028e17e57e12319c7c43826c5ff
refs/heads/master
2020-06-25T06:31:50.929989
2019-08-05T21:31:43
2019-08-05T21:31:43
199,231,941
0
0
null
null
null
null
UTF-8
Python
false
false
70
py
# OpenWeatherMap API Key api_key = "c2b27c01620c4a483416ddd20ee5c790"
[ "noreply@github.com" ]
noreply@github.com
5eb65796119975d33b47e7c6ddab71c7e3c01492
9d684e5da274c561d5993ad4831e807ba7a123a5
/sdh/curator/actions/__init__.py
6504d43b44aba24374547d2d2e1a7e02f87d984b
[ "Apache-2.0" ]
permissive
SmartDeveloperHub/sdh-curator
fbdeb408d5c62128344cbdfe7cf85d3ad715e7a2
ceb06ac39d378d55ab2075c9d9f010e313ad31a0
refs/heads/master
2016-08-12T12:30:25.337192
2016-02-04T13:26:20
2016-02-04T13:26:20
44,231,359
0
0
null
null
null
null
UTF-8
Python
false
false
2,841
py
""" #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# This file is part of the Smart Developer Hub Project: http://www.smartdeveloperhub.org Center for Open Middleware http://www.centeropenmiddleware.com/ #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=...
[ "fernando.serena@centeropenmiddleware.com" ]
fernando.serena@centeropenmiddleware.com
c29f9d1d594784407c648eac9132edaa55c51fca
f68cd225b050d11616ad9542dda60288f6eeccff
/testscripts/RDKB/component/WIFIAgent/TS_WIFIAGENT_2.4GHZ_OperatingStdFromSupportedStds.py
71960884a4a9b04dfe0c880a739854581df956cb
[ "Apache-2.0" ]
permissive
cablelabs/tools-tdkb
18fb98fadcd169fa9000db8865285fbf6ff8dc9d
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
refs/heads/master
2020-03-28T03:06:50.595160
2018-09-04T11:11:00
2018-09-05T00:24:38
147,621,410
0
0
null
null
null
null
UTF-8
Python
false
false
7,310
py
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2016 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
[ "jim.lawton@accenture.com" ]
jim.lawton@accenture.com
329d3204dc3b2a84aab3c1ac936990725c674272
17ce3b1a263f7698cdb557db00dc04f419c98c30
/plotter.py
d1b55c1b1fcfd441902099ad719d863fd33323fb
[]
no_license
gioperalto/supervised-learning-algos
336e80c2b178d15b395117bec7266d6a1263beaf
6de5a5dced092ba6a0a481a0087dd7dc5dd5ae19
refs/heads/master
2022-12-14T23:11:33.256893
2020-09-20T19:50:46
2020-09-20T19:50:46
297,150,937
0
0
null
null
null
null
UTF-8
Python
false
false
1,987
py
import matplotlib.pyplot as plt class Plotter: def __init__(self, name, learner, axes): self.name = name self.learner = learner self.x_axis = axes['x'] self.y_axis = axes['y'] def add_plot(self, x, y, label, marker='.'): plt.plot(x, y, linestyle='-', marker=marker, labe...
[ "gyoperalto@gmail.com" ]
gyoperalto@gmail.com
221ab89d4bc6379c32813f24b04d6a884a96d362
10d98fecb882d4c84595364f715f4e8b8309a66f
/smith/preprocessing_smith.py
928937fe73d5a39a6c6dc6a5a096c56496bf1a3b
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
afcarl/google-research
51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42
320a49f768cea27200044c0d12f394aa6c795feb
refs/heads/master
2021-12-02T18:36:03.760434
2021-09-30T20:59:01
2021-09-30T21:07:02
156,725,548
1
0
Apache-2.0
2018-11-08T15:13:53
2018-11-08T15:13:52
null
UTF-8
Python
false
false
22,890
py
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
5a99e21e09133b8330af575f20aed0a74083b8e9
c522b0332ee42d01f1ee5bdd3cdd3d72eb9af24b
/venv/lib/python3.8/site-packages/lusid/models/version.py
b4a391fed53d87838174441a2083936e6230f96b
[]
no_license
Jeffkent01coder/trackphone
e5aad6f99efb0f0c11f260d1f2a0b232d5453dfe
3570375938c7e947eb272d2cec1589202351141c
refs/heads/master
2023-05-10T22:27:40.255686
2021-06-02T10:23:17
2021-06-02T10:23:17
373,125,235
1
0
null
null
null
null
UTF-8
Python
false
false
4,951
py
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2820 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Version(object): """NOTE: This class is auto ...
[ "geofreyerastus956@gmail.com" ]
geofreyerastus956@gmail.com
dd55d969908dd3f04d0e960b578e9d237be44a6e
db2c2f07fc34f96d72587154dadf0d5c6e78bec6
/rwalk2.py
f9f10d940bc8af2cebc90590df01d7f35b96e00c
[]
no_license
DavidVelez/Scientific-computing-hw
af744cbfc43140ea9a2b0beec4dc4856faf2dbdc
7aaa2570e89f8bb705b33565137019436219d71f
refs/heads/master
2021-01-10T18:04:20.422622
2016-05-01T01:43:29
2016-05-01T01:43:29
51,524,754
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
#uncoding: utf-8 import numpy as np import random N=2000 #N=pasos B=range(100) #B=Borrachos def rwalk1d(N): S=0 for i in range(N): h=1+(N/2-N*random.random()) if h < 0: S=S-1 else: if h > 0: S=S+1 else: S=S return S #print 'la posicion final es:',rwalk1d(1000,0.69) def rw(B,N): ...
[ "felipvelez@gmail.com" ]
felipvelez@gmail.com
b2db7ee4570dbb793eaa865fbfca30b6a76da4f5
fe01647fb8912e0d5711c907a8dfe06e9bd0f428
/date.py
0f010e5dad3106ab82ddfd160038dad7b49b036c
[]
no_license
shashidhar1305/demopygit
76d463b51ac515a0af699ff30b8e4f37c536a44e
ef4dac54f8dbfc277ce2ddbef37f657b17dd8385
refs/heads/main
2023-02-09T06:11:50.334751
2021-01-07T10:45:49
2021-01-07T10:45:49
327,581,290
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
import time import datetime print("current date and time: ",datetime.datetime.now()) print("current year: ",datetime.datetime.today().strftime("%Y")) print("month of year: ",datetime.datetime.today().strftime("%B")) print("week number of the year: ",datetime.datetime.today().strftime("%W")) print("weekdayof the week: ...
[ "noreply@github.com" ]
noreply@github.com