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
2ed205c312b02dc19f7009c9b2b26de639d25969
dede18db20fd47c3059bcbf74562e8773096821e
/advent/2019/3/advent1.py
9e9514de476c5fa21130d1855c5b72d8f43406eb
[]
no_license
conradoboeira/CP
a70232d916c04d81c93f84de70afb2f252cff4ad
675b098a1c62c7d9bcfa5d8d9a2d7e359b24eef2
refs/heads/master
2020-03-31T19:55:21.417786
2020-02-18T03:56:40
2020-02-18T03:56:40
152,518,258
1
0
null
null
null
null
UTF-8
Python
false
false
2,794
py
line1 = input().split(',') line2 = input().split(',') pts_marked = [] pt= (0,0) for com in line1: direction = com[0] dist = int(com[1:]) if(direction == 'R'): end_point = (pt[0]+ dist, pt[1]) if(direction == 'L'): end_point = (pt[0]- dist, pt[1]) if(direction == 'U'): end_poi...
[ "conrado.boeira@acad.pucrs.br" ]
conrado.boeira@acad.pucrs.br
e0c7dd836f868d77b664a7a7d8b6cb4c6b8ce3e2
2d33afa6c666d839828473c65c9800df7ff40bec
/resume/urls.py
2544270ce66dba35c78124edce5ccb3c212356b5
[]
no_license
raphaelmulenda/cv_template
5ee1d10a462b3694556bd3ecb07591557df7151a
b9fc98d246f1efb50fd2cc404d3511b7214109b2
refs/heads/main
2023-08-25T02:39:43.169105
2021-10-19T12:15:28
2021-10-19T12:15:28
418,229,601
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
from django.urls import path from . import views urlpatterns = [ path("", views.HomePage.as_view(), name="home-page") ]
[ "mulendaraphael@yahoo.fr" ]
mulendaraphael@yahoo.fr
59411623046d6332476124e04690091dcaed47f4
25864296fe1d059bba11e999541828ea5eadc5b9
/DarkSUSY_mH_125/mGammaD_0275/cT_10000/DarkSUSY_LHE_read.py
67e6e5eb47bd296666d7acc0323970e5aa374aa6
[]
no_license
bmichlin/MuJetAnalysis_DarkSusySamples_LHE_13TeV_01
17965f8eddf65d24a7c3c8ab81f92c3fc21f4f58
1de8d11f1a2e86874cd92b9819adbad4a6780b81
refs/heads/master
2020-06-14T12:54:38.920627
2015-03-18T14:00:07
2015-03-18T14:00:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
111,093
py
import ROOT, array, os, re, math, random, string from math import * from operator import itemgetter def getStringBetween(name, first, second): begOf1 = name.find(first) endOf1 = len(first) + begOf1 begOf2 = name.find(second) desiredString = name[endOf1:begOf2] return desiredString muonID = 13 higgsID = 25 ...
[ "bmichlin@rice.edu" ]
bmichlin@rice.edu
71c99974459ee5974e36e755091f0d37914ff64c
87b55dd99e9828bed011fd7cf0a3cf059d70d391
/pythonPractice/ex26.py
9d6dc85354bd28fb93c4f707f95c16c35e6007d3
[]
no_license
David-GaTre/Python-the-hard-way
f2945a84b07a3c35d0d8d8f2b9e53b514043d9c9
558c7986b655b9f951181b73ac2de62a1e19d7dd
refs/heads/master
2022-01-18T09:43:28.303865
2019-08-04T07:21:53
2019-08-04T07:21:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,285
py
def break_words(stuff): """This function will break up words for us.""" words = stuff.split(' ') return words def sort_words(words): """Sorts the words.""" return sorted(words) def print_first_word(words): """Prints the first word after popping it off.""" word = words.pop(0) print word...
[ "gtdavid2013@gmail.com" ]
gtdavid2013@gmail.com
5d89b263f903257da771dc932d0f1474a6cc84f2
ca16db75d99903e135589da7c737dbe88a12bb4b
/Scripts/plottingCodes/DescritiveData.py
ea9999121b77355c9c4285d8c8a3b3b0f5df42e8
[]
no_license
iphyer/CS760_Twitter_Demographics
7b413ae3753bb7487a8f89b8ba09e9876fabea56
3354fde862dbbab8965c0dd709a02643849e0668
refs/heads/master
2021-09-13T06:42:48.524495
2018-04-26T02:42:16
2018-04-26T02:42:16
111,339,780
2
0
null
null
null
null
UTF-8
Python
false
false
1,365
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Dec 5 20:44:28 2017 @author: mingrenshen """ # import libarary needed import pandas as pd # data processing import matplotlib.pyplot as plt ###################################################### # read in data #######################################...
[ "iphyer@163.com" ]
iphyer@163.com
e9155963542c0338f2e00c360ebb229b888acae0
439f1b3e2e7a454abd2cfac99d3074ba02405c09
/code.py
9c2f9842cf2aaa24cd16140cf0d7ad625a5414ae
[ "MIT" ]
permissive
saikrishnan255/extracting-business-insights
10c1286fafa41d59907b7b9afabf39fdd1300c56
b79922148bd1aa80bea9d3571456f2891f06c713
refs/heads/main
2023-02-04T16:03:35.220099
2020-12-22T11:30:22
2020-12-22T11:30:22
323,607,104
0
0
null
null
null
null
UTF-8
Python
false
false
6,061
py
# -------------- import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd.read_csv(path) def visual_summary(type_, df, col): df[col].plot(kind = type_) plt.show() """Summarize the Data using Visual Method. This function accepts the type of visualization, the data frame ...
[ "70769945+saikrishnan255@users.noreply.github.com" ]
70769945+saikrishnan255@users.noreply.github.com
0ad9fe4925f4b28b1e4d34b71d268ddf45ccb8a2
301e55ee3990b2daf135197eac81e1cc244e6cd3
/python/search-in-rotated-sorted-array.py
ac8d648b579b72e53fc06f4ec7a23090d95a213e
[ "MIT" ]
permissive
alirezaghey/leetcode-solutions
74b1b645c324ea7c1511d9ce3a97c8d622554417
c32b786e52dd25ff6e4f84242cec5ff1c5a869df
refs/heads/master
2022-08-22T16:28:05.459163
2022-08-18T12:02:51
2022-08-18T12:02:51
203,028,081
3
1
null
null
null
null
UTF-8
Python
false
false
996
py
from typing import List class Solution: # Time complexity: O(log n) where n is the length of nums # Space complexity: O(1) def search(self, nums: List[int], target: int) -> int: left, right = 0, len(nums)-1 while left <= right: mid = left + (right - left) // 2 ...
[ "alireza.q1357@gmail.com" ]
alireza.q1357@gmail.com
d9c783ad8abf89d55348ad7b4a292cdac5bbf359
91a0bfacb61ae681860c560ba52ac09df4910b8f
/Codes/visualize.py
6289ddbd090a1437bbe538404c0c01dd6a2e14a9
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
AayushKadam/brain_age
98609293827778b978215b9d681f521fdab6d948
8a768e29046d525fdef3d57a58c742b52ed6f8e7
refs/heads/master
2021-10-15T19:18:22.779808
2019-02-05T20:12:46
2019-02-05T20:12:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
import os import matplotlib.pyplot as plt import numpy as np import random #import scipy.ndimage def show_slices(slices): """ Function to display row of image slices """ fig, axes = plt.subplots(1, len(slices)) for i, slice in enumerate(slices): axes[i].imshow(slice.T, cmap="gray", ori...
[ "zach_lyu@berkeley.edu" ]
zach_lyu@berkeley.edu
5277a28915df23b9142e32432af44be09e017f3a
3add20877ed753be70402e97f40ad3737a265515
/lecture_advanced/Lecture1.HotFollowupQuestions/386. Longest Substring with At Most K Distinct Characters.py
93cfa12ae7c8ad41d8048f0341ca09073b900826
[]
no_license
zhuohuwu0603/interview-algothims
85f48b7de2e87129fd353528b114cb80c8877d7b
338d3bc2f2916c5c4936767b07b2fd22b4121049
refs/heads/master
2022-01-08T11:27:16.441367
2019-06-12T05:49:25
2019-06-12T05:49:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,347
py
''' Given a string s, find the length of the longest substring T that contains at most k distinct characters. Example For example, Given s = "eceba", k = 3, T is "eceb" which its length is 4. Challenge O(n), n is the size of the string s. ''' import collections class Solution: """ @param s: A string @par...
[ "michaelz@squareup.com" ]
michaelz@squareup.com
9094d0aa7881214514389028e5649424dde7e59d
d180d7bea0db0aa65ee6d6112c14da903b1867b5
/run.py
58fee9cdd7064a02060da43ffe06f863a65d5852
[ "CC-BY-4.0" ]
permissive
willemsk/phdthesis-text
694eb21b0465b67f26291d0349c3fee821562311
43d0f0f68bb84e6305f6b430816f8585ce4e8112
refs/heads/main
2023-06-22T22:17:33.632485
2023-06-07T12:54:06
2023-06-07T12:54:06
345,727,833
1
0
null
null
null
null
UTF-8
Python
false
false
13,723
py
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (C), 2012-2014 by Wannes Meert, KU Leuven # # Very naive compilation script for the ADSPHD class. # # No file dependency checks are performed (use TeXnicCenter, Texmaker, latexmk, # rubber, SCons, or make if you want such a feature). # import glob import os import...
[ "kherim.willems@imec.be" ]
kherim.willems@imec.be
72fb24a240291a432d20c7b10d1f829948019281
ccf324383bce0a74ef3a4eca9f277e9db89800bb
/Chp8/8-3_exercises.py
0bba55f4dd698b068f18ad00a90cd7d1a4abef43
[]
no_license
tanktoptony/RealPython-Book1
825ef822cee8593bb80a95a840bda0a8214ea311
0c3cd79edf9e61236b0164e52d212d0bbd208c5a
refs/heads/master
2021-01-12T00:39:53.717091
2015-04-16T08:51:45
2015-04-16T08:51:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
# 1. Write a script that prompts the user to enter a word using the raw_input() function, # stores that input in a string object, and then displays whether the length of that string # is less than 5 characters, greater than 5 characters, or equal to 5 characters by using a # set of if, elif and else statements. #1 us...
[ "michael@mlnorman.com" ]
michael@mlnorman.com
0dfb49a2afd192c3a3d067f55be0b096846c7d5a
8b8af2d3a8c04ab75d0b331771fa16e0bfe96301
/storage/csv_dictwrite.py
87f5899f076e23b15d8bfb31811c34902727a421
[]
no_license
RyukerLiu/introducing-python
6a44b6560e0f82b1886d3359cd0b4bc21e486430
f902a1fa7b31cd6c1978d176fec3b1bf6bb23718
refs/heads/master
2020-05-03T01:25:10.869550
2019-04-02T07:20:20
2019-04-02T07:20:20
178,336,744
0
0
null
2019-03-29T05:13:19
2019-03-29T05:13:19
null
UTF-8
Python
false
false
254
py
import csv villains = [{'first': 'Doctor', 'last': 'No'} , {'first': 'Rosa', 'last' : 'Klebb'}] with open('villians', 'wt', newline='') as fout: csvout = csv.DictWriter(fout, ['first', 'last']) csvout.writeheader() csvout.writerows(villains)
[ "alex03108861@yahoo.com.tw" ]
alex03108861@yahoo.com.tw
f15ea5350f91db08607111b1b3da17afdb7e9df0
e10a6d844a286db26ef56469e31dc8488a8c6f0e
/compositional_rl/gwob/examples/web_environment_example.py
db65accda519a7ce01ec591613e7c7d0385b57be
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
Jimmy-INL/google-research
54ad5551f97977f01297abddbfc8a99a7900b791
5573d9c5822f4e866b6692769963ae819cb3f10d
refs/heads/master
2023-04-07T19:43:54.483068
2023-03-24T16:27:28
2023-03-24T16:32:17
282,682,170
1
0
Apache-2.0
2020-07-26T15:50:32
2020-07-26T15:50:31
null
UTF-8
Python
false
false
6,400
py
# coding=utf-8 # Copyright 2022 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
174aec0b7bfde27c24cc6abccfd345e1ef6dced6
48ac4b8138b490a876a2530dad1bca29f1823de5
/first_tests/colecciones.py
5c290b80eb83d6767835a388a0a42d158bb60b7a
[ "MIT" ]
permissive
Gorwast/python-tests
dbb7222d6a3ccdc2de0d5ad90156f02a4ba69607
342605fdfa50d05c645e12c15b4db24d3f7cb7f0
refs/heads/master
2023-01-08T20:24:03.893124
2020-11-18T21:16:18
2020-11-18T21:16:18
272,347,586
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
#Collections: List l1 = [22, True, "String", [4, 5]] l2 = [15, 30, 45, 60] var1 = l1[0] print("List: ") print(var1) print(l2[3]) print(l2[0:2]) for elemento in l2: print(elemento) ###Collections: Tupla t1 = (10, False, 3.2, (2, 3)) print(type(t1)) print(type(l1)) var2 = t1[1] print("Tuple: ") print(t1[2]) print(...
[ "lk23@live.com.mx" ]
lk23@live.com.mx
b235e47ceab2dde9ba3dcadac64258bc818f6667
0aa0c38985c11331b20e1d9bdeabfdcaf5dea90f
/ex10.py
c77558f62b5bebe437bd461e03d98e8d5357ebd7
[]
no_license
dongul11/lpthw
5dd92278a35166e2b465aafd3e171ebc60cd4340
35c973e65820601b6231d001d100c06f02558adc
refs/heads/master
2021-09-22T10:06:14.775565
2018-09-07T17:28:43
2018-09-07T17:28:43
114,300,461
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
tabby_cat = "\tI'm tabbed in." persian_cat = "I'm split\non a line." backslash_cat = "I'm \\ a \\ cat." fat_cat = ''' I'll do a list: \t* Cat food \t* Fishies \t* Catnip\n\t* Grass ''' print (tabby_cat) print (persian_cat) print(backslash_cat) print(fat_cat)
[ "donguljack11@gmail.com" ]
donguljack11@gmail.com
d7aac9af796fa2c15a1d847133e699fd19779ed9
63dc51b514faea7966d529440df80c4a6eab34b1
/src/test/TestLibSudoku.py
964c3f328a77ae5d348cff9cdca232b81d916c50
[]
no_license
caviedes93/PySudoku
af1368dac2f0c374552710cc75132f6799b049f1
d67e110684526fe188436884ec51ecc89ad6c388
refs/heads/master
2020-12-25T10:59:20.442887
2013-07-27T22:58:19
2013-07-27T22:58:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
962
py
''' Created on 26/07/2013 @author: dominik ''' import unittest from lib.libSudoku import get_new_board, is_board_valid class Test(unittest.TestCase): def testBoardCreationAndValidation(self): for i in range(1,100): newBoard = get_new_board() self.assertTrue(is_board_valid(newBoar...
[ "dominik@foop.at" ]
dominik@foop.at
e0b15df612ba3b856357439a9d6586d0186b146e
c0c4fe8f9aff2e7684fcaf10329f963873753b2a
/src/biotite/sequence/sequence.py
1a6b8230a35cd5b6afd265692459ee224fe40473
[ "BSD-3-Clause" ]
permissive
thomasnevolianis/biotite
85e1b9d6a1fbb5d9f81501a8ebc617bc26388ab9
916371eb602cfcacb2d5356659298ef38fa01fcc
refs/heads/master
2022-11-30T19:40:53.017368
2020-08-04T07:00:59
2020-08-04T07:00:59
285,375,415
0
0
BSD-3-Clause
2020-08-05T18:41:48
2020-08-05T18:41:47
null
UTF-8
Python
false
false
11,010
py
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. """ The module contains the :class:`Sequence` superclass and :class:`GeneralSequence`. """ __name__ = "biotite.sequence" __author__ = "Patrick Kunzmann" __all__ = ...
[ "patrick.kunzm@gmail.com" ]
patrick.kunzm@gmail.com
9bdfba61deccc4c6699bd54280a7728fb4b4069a
9612c53a9e666ba10510962a833a55fb7553be7b
/getDataSafir/jsonToCsv.py
6a2c199030293c790470a6ac6c375484ec09da6f
[]
no_license
raksmeyny/big-data
04098ed6fc6c51e9643c2dba0ee30f4c38d143ce
1222edd5ca59a3d04ad3ac4dd444bea4cfd727e6
refs/heads/master
2021-01-10T04:53:57.905212
2016-03-14T04:15:14
2016-03-14T04:15:14
52,132,443
2
0
null
null
null
null
UTF-8
Python
false
false
482
py
import csv import json with open('comment.json') as x: x = json.load(x) print x with open('data.csv','a') as f: csvfile=csv.writer(f) for item in x: csvfile.writerow([item["date"],item["comment"],item["link"],item["likes"]]); # f = csv.writer(open("comment.csv", "w+")) # f.writerow(["date", "comme...
[ "raksmey.ny" ]
raksmey.ny
8c5ffaaa66db4fcbb98cfd663e36037edaa8163a
abaa806550f6e6e7bcdf71b9ec23e09a85fe14fd
/data/global-configuration/packs/vmware/collectors/vmguestlib.py
eb9e2dabd67d95667afa30dc59ee76accdf5f3c7
[ "MIT" ]
permissive
naparuba/opsbro
02809ddfe22964cd5983c60c1325c965e8b02adf
98618a002cd47250d21e7b877a24448fc95fec80
refs/heads/master
2023-04-16T08:29:31.143781
2019-05-15T12:56:11
2019-05-15T12:56:11
31,333,676
34
7
null
null
null
null
UTF-8
Python
false
false
22,971
py
### This program is free software; you can redistribute it and/or ### modify it under the terms of the GNU General Public License ### as published by the Free Software Foundation; either version 2 ### of the License, or (at your option) any later version. ### ### This program is distributed in the hope that it will be ...
[ "naparuba@gmail.com" ]
naparuba@gmail.com
edde0aa8cdab82be21c8ef2341f0114662f4921c
2d89afd5ca29fc2735a00b0440ea7d5408c8e398
/Crash Course/chap07/cities.py
ca28aba1f3091b08eb1dc268634339b862f19435
[]
no_license
TrystanDames/Python
6b2c8721606e046d9ff0708569a97d7b78a0f88e
68b3f5f160b46fa4e876d58808ff78ac7f2d84df
refs/heads/main
2023-06-03T14:25:51.638345
2021-06-23T08:54:18
2021-06-23T08:54:18
357,112,394
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
prompt = "\nPlease enter the name of a city you have visited:" prompt += "\n(Enter 'quit' when you are finished.) " while True: city = input(prompt) if city == 'quit': break else: print(f"I'd love to go to {city.title()}!")
[ "trystandames08@gmail.com" ]
trystandames08@gmail.com
019278eb3581d9502a8dea534db2529d1d65b1bd
b52547e856f3dee82a332105f3b2553133c7e560
/ModelFreeRLPolicyLearning/policy_learning_sarsa.py
2c874536de7fef43e8b732237fb216c72c461639
[]
no_license
yuhsh24/RLlearning
0d3410b9254527e74dc932ccf502cd8972d0bb23
2a49ac9ea877cae27c0ce513b795c10a2266b166
refs/heads/master
2021-01-19T05:22:23.013144
2016-07-21T09:48:49
2016-07-21T09:48:49
63,664,017
0
0
null
null
null
null
UTF-8
Python
false
false
2,224
py
#!/usr/bin/python # -*- coding: UTF-8 -*- import grid_mdp import random random.seed(0) import matplotlib.pyplot as plt grid = grid_mdp.Grid_Mdp() states = grid.getStates() actions = grid.getActions() gamma = grid.getGamma() #epsilon greedy policy# def epsilon_greedy(qfunc, state, epsilon): amax = 0 key = "%d...
[ "yhshzju@163.com" ]
yhshzju@163.com
8484b482275e2ea081b24eac4c59213d8ff39e93
0889098368a18cc6ecfa442cfe86ed10a5ba32d6
/myblog/admin.py
300fd70c10c84a714d630170dbbed01102456364
[]
no_license
waaaaargh/myblog
9932ee5606497851f9ad99b4f1da1a9a604495f6
95cd823ea70bdc6e835f63590dfa36da5c4e6d25
refs/heads/master
2016-09-06T09:15:29.069543
2015-03-24T04:16:32
2015-03-24T04:16:32
9,065,605
0
0
null
2013-10-30T12:22:26
2013-03-27T23:02:40
Python
UTF-8
Python
false
false
662
py
from os.path import join from myblog import app, model, db, base_path from flask.ext.admin import Admin from flask.ext.admin.contrib.sqla import ModelView from flask.ext.admin.contrib.fileadmin import FileAdmin admin = Admin(app, name="MyBlog") class PostView(ModelView): form_excluded_columns = ['date', 'commen...
[ "johannes@weltraumpflege.org" ]
johannes@weltraumpflege.org
c3ff962e9bc2259450ab129275683d0d23c67865
2411ee54802c71aa40895e827171f07289194990
/w78.py
798cb1329435e69c608c816bdb9724c582d3101e
[]
no_license
GoodJob567/eweb-exp
aeaf14a715279f07307c6761110cdd2dcdff946d
26911dbf26563684a40646220788be04e9532fab
refs/heads/master
2023-02-16T03:28:46.829739
2021-01-14T11:30:21
2021-01-14T11:30:21
329,593,467
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
import requests key="cmd" requests.get("http://172.16.12.2/admin/ewebEditor/asp/upload.asp?action=save&type=image&style=popup&cusdir=hack.asp") # 要上传的文件 f = open('shell.gif', 'w') f.write('<%eval request("'+key+'")%>') f.close() f={'uploadfile':open('shell.gif','rb')} r=requests.post("http://172.16.12.2/admin/ewebE...
[ "52376699+GoodJob567@users.noreply.github.com" ]
52376699+GoodJob567@users.noreply.github.com
248d8b61cb8796e0a111657d391f2c4e4015226f
bb80ddf8324408705a30e8644a2d693252cf54e9
/products/migrations/0001_initial.py
d675a60a138b0ee81ea285f6556589b60a0cadad
[]
no_license
Code-Institute-Submissions/full_stack_stream_four_happy_box
483d4286b26825cf4428600b677147fd63201ff0
5c2fd5803bc8164d4028702b3859f5eb891d70e3
refs/heads/master
2020-03-27T19:57:01.538937
2018-09-01T18:37:26
2018-09-01T18:37:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,339
py
# Generated by Django 2.0.7 on 2018-07-11 12:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
[ "larkineva@gmail.com" ]
larkineva@gmail.com
f14053094b1246b3f7886581c70b392f158becb0
5b912db9e8bb7fa99d1e0932eb8a0dac7b1382f0
/t09_get_rid_of_it/rid.py
78d3728d97c74c9cb27f702750a297a07ef4ef65
[]
no_license
AwesomeCrystalCat/py_s00
3df7b285855ea276736d0a01d98df2d8465ad707
f4814a889b49d013b8285ab15992d0a309056ea6
refs/heads/main
2023-04-05T22:23:42.637972
2021-04-09T10:27:13
2021-04-09T10:27:13
356,228,064
0
0
null
null
null
null
UTF-8
Python
false
false
63
py
my_number = 1 print(my_number) del(my_number) print(my_number)
[ "slavabusya@Selmarinels-MacBook-Pro.local" ]
slavabusya@Selmarinels-MacBook-Pro.local
f8dab2f0e3f3dfa5c4a51b8eadc87e0c3034cb09
fd3436480761c48535da13752ed7681abdbd535d
/delegate.py
4131f9203dd01d50b2ff11f5c38eedbc49f49024
[]
no_license
jayantjain100/nfa_computation_delegation
ea932047ec0e99ec3490e45d62e86f377596a799
9632d5489e6a9332474496fae4d3f82d876c1009
refs/heads/master
2020-07-24T09:10:49.844887
2019-12-02T05:18:01
2019-12-02T05:18:01
207,878,002
0
0
null
null
null
null
UTF-8
Python
false
false
1,680
py
from nfa import NFA import socket from socket_sending import receive_object from socket_sending import send_object import argparse def verify_yes_ans(given_label, final_labels): if(given_label in final_labels): return True else: return False parser = argparse.ArgumentParser(description='client that...
[ "ansh.sapra2233@gmail.com" ]
ansh.sapra2233@gmail.com
36c64c45720f28189ea436e39cd685e6744f24e4
7a37bd797ea067685c887328e3b447e008e8c170
/resourceserver/resourceserver/urls.py
e551621de72683b31896faeaa5739218174e3612
[]
no_license
Telmediq/hydrapoc
2e73f1b82d64d9f6b0e429e124923ede080c40a7
b22e0a22e97705ced2379e145c798ea2f66de25d
refs/heads/master
2020-07-14T23:32:30.147831
2019-09-17T21:10:04
2019-09-17T21:10:04
205,427,268
0
0
null
2019-12-05T00:10:34
2019-08-30T17:23:05
C#
UTF-8
Python
false
false
1,059
py
"""resourceserver 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') Clas...
[ "alex@telmediq.com" ]
alex@telmediq.com
530cc38befdec212750b6f4b4eefc95536c4852c
39a7bc82dc6b08dc347816859eddc1ebd590138c
/chapter02/06-bisect.insort.py
a2a6b85c83d4b643e534321cd93627e1c0eebb3c
[]
no_license
mgw2168/fluent_python
1a21568a70708b390e169e4126eebe76a0296d29
ab075e33290f75d690d455e42d3ff17f4d1e29ba
refs/heads/master
2020-07-04T22:46:12.695267
2019-12-05T08:05:56
2019-12-05T08:05:56
202,447,177
1
0
null
null
null
null
UTF-8
Python
false
false
290
py
import bisect import random SIZE = 7 random.seed(1729) my_list = [] # insort(seq, item)将变量item插入序列seq中,并能保证seq的升序 for i in range(SIZE): new_item = random.randrange(SIZE*2) bisect.insort(my_list, new_item) print('%2d ->' % new_item, my_list)
[ "mgw2168@163.com" ]
mgw2168@163.com
ae970afe343d32e40e8270515b8495c93e849c6a
bd34847cf9e0e7c57f86c709bd0ab375b3eef682
/spark/word_count.py
3e27f4a950058d786f358811bf6c98674d325add
[]
no_license
vshaveyko/learn_py
68ad17c1353859d32997989ae12de6a6ccd113da
2ceb5ed599ce59a611fb5ad366c9b45e2db29a82
refs/heads/master
2021-09-01T22:44:16.980240
2017-12-29T01:06:25
2017-12-29T01:06:25
115,279,253
0
0
null
null
null
null
UTF-8
Python
false
false
939
py
'''Print the words and their frequencies in this file''' import operator import pyspark def main(): '''Program entry point''' #Intialize a spark context with pyspark.SparkContext("local", "PySparkWordCount") as sc: #Get a RDD containing lines from this script file lines = sc.textFile(__fi...
[ "vshaveyko@gmail.com" ]
vshaveyko@gmail.com
9518aed6232253576108cf492c812148ebcac253
90c9acae92fa0ccb63f796561aef10bb9a3a31c9
/python/analyze_db.py
37d1f04425e0e684e1da2427fa96e25906abe190
[]
no_license
chtlp/witness-mining
cc94f4d3249316e15eafa354ef513815fb919326
f27455bfab2d9557494e507665418db67fe7b43f
refs/heads/master
2021-01-19T20:27:48.079120
2012-08-08T09:41:54
2012-08-08T09:41:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,381
py
from collections import defaultdict, OrderedDict import csv, sqlite3, glob, sys, subprocess from pylab import * def analyze_columns(col_names, values): num = len(col_names) unique_values = [defaultdict(int) for _ in range(num)] for row in values: for k, c in enumerate(row): unique_valu...
[ "chnttlp@gmail.com" ]
chnttlp@gmail.com
edcede7c435a63d0e75eb252da4cc153f45acc02
68f04671ed3e2aeb2032a4fdecbede89cf9e1832
/ridge.py
de8b2783a7c235dd6d36114b04259136a70ee35a
[]
no_license
sushuang9210/machine_learning_algorithms
306c3fa086326cefd2c463f5d16cbe9829abc447
4aac5c664816612b1d4f078f5b7a548474bb9534
refs/heads/master
2020-03-18T17:07:35.444194
2018-06-11T04:18:25
2018-06-11T04:18:25
135,007,939
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
import numpy as np from sklearn.linear_model import RidgeClassifier class Ridge: def __init__(self,data_1,data_2,model_parameters): self.clf = RidgeClassifier(tol=float(model_parameters[0]), solver=model_parameters[1]) num_data_1 = data_1.shape[0] num_data_2 = data_2.shape[0] data_1[...
[ "sushuang9210@gmail.com" ]
sushuang9210@gmail.com
fde0cdf4ea3b11cec022c1c518b01a1f0e60eabc
4559036e4b91f064c85214276a526ed566107f1f
/surname_rnn/surname/containers.py
0a8b4fc2b42148f674fa2146ee9800ea9e96f927
[ "Apache-2.0" ]
permissive
sudarshan85/nlpbook
f55017e5ec0d20f0bf5816438835322a8eff70e4
41e59d706fb31f5185a0133789639ccffbddb41f
refs/heads/master
2020-04-28T01:49:42.739340
2019-05-03T16:09:08
2019-05-03T16:09:08
174,873,977
0
0
null
null
null
null
UTF-8
Python
false
false
2,614
py
#!/usr/bin/env python import pandas as pd from pathlib import Path from torch.utils.data import DataLoader class ModelContainer(object): def __init__(self, model, optimizer, loss_fn, scheduler=None): self.model = model self.optimizer = optimizer self.loss_fn = loss_fn self.scheduler = scheduler cl...
[ "su0@ornl.gov" ]
su0@ornl.gov
adaa3bcc2f1130b6551be40f14ba5bf15c68f983
5117ae47abf2b1c72c5c808b39048ae2686be0f9
/listings/models.py
6b8b3acddd8045715c14f5018ba637bdbbdbed0d
[]
no_license
nayanpsharma/nayan_property_project
a7cc18bbedccf7f12b7bde16658898581ad02146
1ef766444696b3049f6e630e6c6a9b75d779c2b4
refs/heads/master
2022-12-18T21:57:47.426545
2020-09-18T21:16:26
2020-09-18T21:16:26
296,731,065
0
0
null
null
null
null
UTF-8
Python
false
false
1,445
py
from django.db import models from datetime import datetime from realtors.models import Realtor class Listing(models.Model): realtor = models.ForeignKey(Realtor, on_delete=models.DO_NOTHING) title = models.CharField(max_length=200) address = models.CharField(max_length=200) city = models.CharField(max_l...
[ "nayansharma996@gmail.com" ]
nayansharma996@gmail.com
62ab32f13bfb48de1118f28c062ed0d2f5702325
6e5c83baa19e09bcc59300d764ce936f8cbe6b5b
/pybtex/style/names/plain.py
62c0c2ca311b0e086a1a078c4410d14d84d02f38
[ "MIT" ]
permissive
rybesh/pybtex
84e10b12f6c9ade0de2af638bfc23945109eff6d
18e0b5336f07ebc5dc97aa899362fb292ea7bb5a
refs/heads/master
2016-08-07T20:15:26.865726
2011-03-18T18:03:48
2011-03-18T18:03:48
1,246,178
0
0
null
null
null
null
UTF-8
Python
false
false
2,441
py
# Copyright (c) 2010, 2011 Andrey Golovizin # # 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, pub...
[ "ryanshaw@ischool.berkeley.edu" ]
ryanshaw@ischool.berkeley.edu
32b358403cf8563ce1aad3ed0d74d9abb0359e78
c5edd407319c80640ed4e2819838fec94ee7a345
/raterz/settings.py
31ebd662a31757c7cdfd225ed059c47ef34cb724
[ "MIT" ]
permissive
OwenMur21/raterz
41abece2ac878932a36367b3e12482a9c34ac68c
2e028e1fbb8832d90731fec10d5c3401b543384c
refs/heads/master
2020-04-01T01:31:08.865849
2018-10-17T04:48:41
2018-10-17T04:48:41
152,741,989
0
0
null
null
null
null
UTF-8
Python
false
false
3,577
py
import os import django_heroku import dj_database_url from decouple import config, Csv MODE=config("MODE", default="dev") SECRET_KEY = config('SECRET_KEY') DEBUG = config('DEBUG', default=False, cast=bool) # development if config('MODE')=="dev": DATABASES = { 'default': { 'ENGINE': 'django.db.backe...
[ "owenmuriithi@gmail.com" ]
owenmuriithi@gmail.com
1dccfb0f90cf749916c6492d1e8a811a652e9e72
39b916e8969712a31195586ba6666744342b0fcf
/inheritance.py
b94276e67bcb37d6bdd1c591fbef51731a5cbdf0
[]
no_license
bhumphris/Inheritance
165391f1e4125d63d6fd7bb7447fb3860f52020a
e61a833c9b4eb49981fa91db31b53b7f450cfc03
refs/heads/master
2020-06-13T15:48:09.292442
2016-12-02T05:27:28
2016-12-02T05:27:28
75,363,130
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
import officeFurniture def main(): desk = officeFurniture.Desk("Desk", "Metal", 48, 20, 36, 2, "Left", 3, 155.50) print("Product: " + desk.get_category()) print("Material: " + desk.get_material()) print("Length: " + str(desk.get_length())) print("Width: " + str(desk.get_width())) print("Height:...
[ "noreply@github.com" ]
bhumphris.noreply@github.com
df0a60238544af1eabcce7960d656b63097a4e40
d98b0d74639be1b7fdd737b4ddb6938d74157865
/mysite/settings.py
7e61b134ea0d195d268887d0a08fef0772a4b465
[]
no_license
sebastiansilbernagl/djangogirls-blog
e70d2d673be67145fc8cc12cde3d7dba5a9e5bf9
15df60e2af4dadf01165efe6817dea2f6a7e2c65
refs/heads/master
2020-05-23T10:14:35.840139
2017-01-30T12:52:44
2017-01-30T12:52:44
80,407,880
0
0
null
null
null
null
UTF-8
Python
false
false
3,232
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
[ "sebastian.silbernagl@gmail.com" ]
sebastian.silbernagl@gmail.com
797ecbc116b4a0204337d20868dc1e94f0595a59
d74cf31046b9cf7d6ea77ab3e9ed1f293beabeb9
/charts_analyzer.py
b1f4b099e9a0a8ed64b168ca5700f71a0350beed
[]
no_license
sampurkiss/song_features
789c6ad01455528af3c7c667218301ee8d1312b2
6ab81b4059645c143c1be478e335146283e85c73
refs/heads/master
2020-05-06T20:00:00.832903
2019-06-02T03:59:50
2019-06-02T03:59:50
180,215,794
1
0
null
null
null
null
UTF-8
Python
false
false
4,847
py
# -*- coding: utf-8 -*- """ Created on Wed Apr 3 13:05:13 2019 @author: Sam Purkiss """ import os os.chdir('C:/Users/sam purkiss/Documents/Code/Music/') import pandas as pd import spotipy import re from spotipy.oauth2 import SpotifyClientCredentials from credentials import CLIENT_ID,CLIENT_SECRET #Need to create a...
[ "samuelpurkiss@gmail.com" ]
samuelpurkiss@gmail.com
79db44dd6ae283d024b6f0487e48e369d2b2d272
83eadd220a58329ad7fdb6a223dcc02cb9e6dd81
/load_discussions.py
67d431ff934d2ae0fe8c1580dd8f0a00309eba1c
[]
no_license
LironRS/anyway
7d49a1d994d3685d62acf6e3435a38c9f58b0c35
813283a0c4fe966f1752d0e2e85aa30c6fad7693
refs/heads/master
2021-01-15T09:09:12.309208
2015-05-19T12:21:22
2015-05-19T12:21:22
35,944,465
0
0
null
2015-05-20T11:42:39
2015-05-20T11:42:39
null
UTF-8
Python
false
false
977
py
# -*- coding: utf-8 -*- from __future__ import print_function import argparse from models import DiscussionMarker import re from datetime import datetime from database import db_session def main(): parser = argparse.ArgumentParser() parser.add_argument('identifiers', type=str, nargs='+', ...
[ "daniel.hershcovich@gmail.com" ]
daniel.hershcovich@gmail.com
d591cfa31e9c148bfac88be4aefee2acdd0a8266
fc39e431bcf4ead647b3c4a2b8fb8dc772928852
/Indoor_Webapp_B/Indoor_Webapp_B/Indoor_Webapp_B/manage.py
eec6c95947e4ab94a6f3118584215b324c299e0c
[ "BSD-3-Clause" ]
permissive
DavidTF85/IndooeAir-Webapp-B
c129414be094c39a00fa397e4eed16dc39f7bb14
579f7593116d743e566e16219370c98e2937844b
refs/heads/master
2020-09-12T08:32:24.099793
2019-11-18T05:24:55
2019-11-18T05:24:55
222,369,279
0
0
null
null
null
null
UTF-8
Python
false
false
656
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Indoor_Webapp_B.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
[ "noreply@github.com" ]
DavidTF85.noreply@github.com
1da5693613af676b6218173be8e0870435f4b8b1
7b695f34ee8a45f7609064ec47e861825f2d96a8
/week4/multiplication.py
4b2154562589d72befaaa62da3ad7cee1620d82a
[]
no_license
deciduously/cmit135
de0c151c3642f25ecc6ef76d299d46b7810c753e
a74544f529a654e499ef34d6ca1a35c0b5cd71d2
refs/heads/master
2020-04-19T06:19:55.122853
2019-02-28T00:13:41
2019-02-28T00:13:41
168,014,573
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
# multiplication.py pretty prints a multiplication table # Function to return the number of digits a number n has def num_digits(n): # Converts it to a string a counts the length - the math way would work too but this is easy return len(str(n)) def draw_table(n): # calculate this outside the loop so we...
[ "ben@deciduously.com" ]
ben@deciduously.com
3523fe1ae052b3f169f7bc74db4e83be9b2377c2
40afc1f3790099d2d5270503d101f30c71a89f07
/usersys/views/user.py
d4c9af3172aaa675d041cfa02bcb920867dd7649
[]
no_license
fhydralisk/reviewing
a3d31af1e8fe8caf2e831b35816d638ac0cadcce
7a27f278f85f9fdbcc805b0290f6bbdbb7147609
refs/heads/master
2020-05-14T23:27:37.229343
2019-05-07T12:28:21
2019-05-07T12:28:21
181,997,119
0
2
null
2019-05-07T07:38:14
2019-04-18T01:49:53
Python
UTF-8
Python
false
false
431
py
from base.views import WLAPIGenericView from ..serializers import user as user_serializers from ..funcs import user as user_funcs class UserView(WLAPIGenericView): http_method_names = ['get', 'patch', 'options'] API_SERIALIZER = { 'patch': user_serializers.UserPartialUpdateSerializer } RESULT_...
[ "fhy14@mails.tsinghua.edu.cn" ]
fhy14@mails.tsinghua.edu.cn
2690dfe618649e308a0dc47ef332ab5e56e29930
84c38b838ca74cf80fe276d272537b1b840bfe6d
/Battleship.py
6ff503cc58f958d7415b052af718a3ad315768e3
[]
no_license
Chruffman/Personal-Projects
9c385a145e02661cf0dddc76d6f2b5034a6a35f9
d271573b4e48c3026d0cc09d4483c218bc3dfa97
refs/heads/master
2021-01-21T05:17:07.536173
2018-07-24T13:37:50
2018-07-24T13:37:50
83,166,561
0
0
null
null
null
null
UTF-8
Python
false
false
1,247
py
# my attempt at the Battleship! assignment from codeacademy.com from random import randint board = [] for quadrant in range(6): board.append(['O'] * 6) def display_board(board): for row in board: print (" ".join(row)) print ("Let's play Battleship!") display_board(board) def new_row(board): ...
[ "noreply@github.com" ]
Chruffman.noreply@github.com
4ec6a82a97d5f6196307fc39b56522e1fa8b4f01
a1e01939dfb63139271b137620f57a55420f8dbe
/utils/path_helper.py
85715b225a360b44fe77bf61e8fa0ca6a7f65723
[ "BSD-3-Clause" ]
permissive
KindRoach/NARRE-Pytorch
839becc7128a5875e6dbcab62eafea914b3b7c4f
14fec7e623e36350e43d24e2629297ab0d308170
refs/heads/master
2023-06-01T02:56:03.323533
2023-05-22T13:32:23
2023-05-22T13:32:23
270,171,507
8
3
null
null
null
null
UTF-8
Python
false
false
114
py
from pathlib import Path ROOT_DIR = Path(__file__).parent.parent if __name__ == "__main__": print(ROOT_DIR)
[ "kindroach@hotmail.com" ]
kindroach@hotmail.com
7e33879f634aa7e8d75988cebf28a1a0a95922cf
9918208c80a3c396d8a1e13783d501d60dbc2050
/digitalearthau/index.py
184f71b63443c944423a74ab43f21a32af6c40c5
[]
no_license
benjimin/digitalearthau
2d3010be76fad0d0b6b4854dbbad07e98254b239
5098bf3c88627cad78a8caa5ab703c586c17a6f7
refs/heads/develop
2022-02-27T07:36:16.009689
2017-09-14T05:51:27
2017-09-14T05:51:27
103,460,937
0
0
null
2017-09-13T23:10:15
2017-09-13T23:10:15
null
UTF-8
Python
false
false
7,353
py
import collections import uuid from datetime import datetime from typing import Iterable, Optional, Mapping, List from datacube.index import index_connect from datacube.index._api import Index from datacube.model import Dataset from datacube.scripts import dataset as dataset_script from datacube.utils import uri_to_lo...
[ "jez@stulk.com" ]
jez@stulk.com
86e497f7d8b7f8e601d5bdf3d3d634b51fbc04bf
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/hair_tool/curves_resample.py
bbf794543f831be09e4c96a6a4ed9485f74a8093
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,061
py
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful,...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
712c8911fb30a81f68341c8d02607fc01373169c
bc2effb57e82128b81371fb03547689255d5ef15
/백준/그래프/13549(숨바꼭질 3).py
3e27f94ac43b4efa403bf096775a59d3e8e538cd
[]
no_license
CharmingCheol/python-algorithm
393fa3a8921f76d25e0d3f02402eae529cc283ad
61c8cddb72ab3b1fba84171e03f3a36f8c672648
refs/heads/master
2023-03-01T11:00:52.801945
2021-01-31T13:38:29
2021-01-31T13:38:29
229,561,513
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
import sys from collections import deque MAX_SIZE = 100001 start, end = map(int, sys.stdin.readline().split()) board = [float("inf")] * MAX_SIZE board[start] = 0 queue = deque() queue.append((start, 0)) while queue: now, value = queue.popleft() if now == end: print(board[now]) break if val...
[ "54410332+chamincheol@users.noreply.github.com" ]
54410332+chamincheol@users.noreply.github.com
b64dcfd8310e0a91a5674a0426a212d4e4014f18
b12875980121be80628e3204a5a62fbbd6190222
/seesion7/minihack5.py
7dba52421d756d3b660a75259e7d867a584fab55
[]
no_license
hoangstillalive/hoangstillalive
ef2eb9a173b346e75ac0a35c455cebacd1a9fe91
304e0087792857815090cb890e18086d1128df6f
refs/heads/master
2020-06-12T10:07:33.319139
2019-09-13T12:31:57
2019-09-13T12:31:57
194,267,120
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
side = int(input("Enter side of shape you like:")) angle = 360/side from turtle import* shape("turtle") for i in range(side): forward(100) left (angle) mainloop()
[ "minhhoangtruong.a1@gmail.com" ]
minhhoangtruong.a1@gmail.com
c0b608d437f149d8760c931ec9488e38f0fefb57
b7634e92ed147a34cdb017598c6d8dd41c0def96
/aula05/migrations/0002_categoria_comentario_post.py
3a636face480cf6e0fdc9a2f6b875eb3ce1d9fd2
[]
no_license
mayronceccon/olist-django-labs
a4e9805489f4c9ad782f5085188dee342d4ac051
fbe6f314554e65f0a47dddc7c2c21165ccc1d828
refs/heads/master
2021-09-28T14:21:44.385979
2020-06-06T00:25:54
2020-06-06T00:25:54
240,728,135
1
0
null
2021-09-22T18:44:59
2020-02-15T14:36:27
Python
UTF-8
Python
false
false
1,411
py
# Generated by Django 3.0.3 on 2020-02-29 17:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('aula05', '0001_initial'), ] operations = [ migrations.CreateModel( name='Categoria', ...
[ "mayron.ceccon@gmail.com" ]
mayron.ceccon@gmail.com
b04ee7d509224ea32bcdc2abd3aa726509802b36
253296050582fbe0a8605353295ab27daae4deff
/main.py
32884c43658bae739d1868be5e5ce5b322bef693
[]
no_license
qiita-scraper/qiita-scraper-rocket-chat
a44d95d125431670dda97b5614f92d0ee0d09098
86c1b6e0d4d889deb9a468cd85a1d0f93eb9cc20
refs/heads/master
2023-05-14T23:39:42.637110
2019-12-17T15:50:51
2019-12-17T15:50:51
228,154,303
4
0
null
2023-05-07T13:10:45
2019-12-15T08:43:31
Python
UTF-8
Python
false
false
1,461
py
import os from rocket_chat import rocket_chat from qiita import qiita import yaml def main(): url, user, password = __get_os_environ() room_name, organization = __get_config() q = qiita.Qiita() rc = rocket_chat.RocketChat(url, user, password) for user in q.fetch_organization_users(organization...
[ "daisuke.awaji@i.softbank.jp" ]
daisuke.awaji@i.softbank.jp
bc54e1b48cf35f7afe4085bcfc57748031ff30b5
8ac0beeda7da3f6059f47dbd71f90a375589b8eb
/Ubiquiti/EdgeRouter-Lite.py
5c1e1a6a434fbfc723d8a192f78062264691d878
[]
no_license
evgenyzorin/Paramiko
f98dbabdb0954c4e55ecd88604de6ba81d421e6c
9deb3d6d0491717524117dfd2c1a9cb4c968d016
refs/heads/main
2023-09-02T16:43:13.279258
2021-11-11T08:34:49
2021-11-11T08:34:49
390,994,305
1
0
null
null
null
null
UTF-8
Python
false
false
1,628
py
from paramiko import SSHClient, AutoAddPolicy from datetime import datetime import re start_time = datetime.now() def send_show_command( devices, username, password, command, max_bytes=60000, delay=1, ): client = SSHClient() client.load_system_host_keys() cl...
[ "noreply@github.com" ]
evgenyzorin.noreply@github.com
7eaa3fc42b530ce553df3f478e57dfcb78907226
335efc133db52ce3dcbb114f6be1e2e5c308ab35
/backend/myprofile.py
677b25332bc919433660284ec8608f4900feeaf6
[]
no_license
mrclauderandall/CS-Capstone-Project
12c9987713bf398fee838b6a1025fafbf3a8885d
cc599ac7d836360bfb78c80e4bbfb893bca39c2f
refs/heads/master
2023-06-29T13:16:56.207602
2021-08-09T02:51:34
2021-08-09T02:51:34
394,126,058
0
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
import psycopg2 from flask import jsonify # # Should we migrate these functions to user.py? # def myprofile(username, conn): cur = conn.cursor() cur.execute( f"SELECT * FROM public.users WHERE email = '{username}'" ) result = cur.fetchall() conn.close() return(jsonify(result)) def edi...
[ "mrclauderandall@gmail.com" ]
mrclauderandall@gmail.com
a2f7ae216b410776277bf51f39352e0afd7a8354
cb892c75961eeae4e9c968403e823565d2b0056e
/periodic1D.py
ce67dcd6b4588f63f65e9a66e3aeef14fbdecd90
[]
no_license
victorstorchan/signal-processing
7deb60ed1e3f7ae09553cbe0faf6fce3fec97fc8
a51e9855cb8cb7a63ecbab9fac645fc4846b03a7
refs/heads/master
2021-01-19T03:02:07.791676
2016-07-16T12:32:27
2016-07-16T12:32:27
52,238,889
0
0
null
null
null
null
UTF-8
Python
false
false
1,917
py
import numpy as np import matplotlib.pyplot as plt from cmath import polar from math import sqrt #definition of the boxcars signals def boxcar(x,i): if x-i<-1 or x-i>1: return 0 else: return 1 x= np.arange(-2.,2.,0.05) n=len(x) print(n) True_signal=np.zeros(n) for i in range(n): True_signal...
[ "noreply@github.com" ]
victorstorchan.noreply@github.com
65e50e3080ce522797d0807c4a9ccf3ad3d59230
9cb4b1707c9cf2cb2d45849a32625ddcd5d2ce15
/data_structures/graph/graph.py
76c5509f826c0cf30c80e238bb6245540194a1f8
[]
no_license
paxzeno/CrackingTheCodingInterview
14b0a0bd8a8f9a0bf30defbd07c4e6d1c1b0a549
d082c704d8a2d4a4e61371091abb023a1dc5fa99
refs/heads/master
2020-04-26T17:24:55.098714
2019-03-16T17:35:03
2019-03-16T17:35:03
173,712,427
0
0
null
null
null
null
UTF-8
Python
false
false
4,397
py
import random import Queue from node import Node class RoadMap: def __init__(self, queue): self._queue = queue self._path = {} self._new_paths = set() def get_queue(self): return self._queue def set_path(self, node_name, parent_node_name): # think if there may b...
[ "paxzeno@gmail.com" ]
paxzeno@gmail.com
15660f72a517e3b32ec05f1edde94a333241df3b
1a41addd7ca9486b5392158984f0e5c14d92edff
/tests.py
331c9c2324a88becd6a3d030e51f2608966da740
[ "MIT" ]
permissive
humin11/sixquant
32e94c2d1035c87a5cad816dd1286613c54174cd
bf3614c34cdbd4373dcbfc0cb24f58a1d7957d47
refs/heads/master
2021-08-26T08:37:33.808255
2017-11-22T16:10:36
2017-11-22T16:10:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
# coding=utf-8 import os import sys import unittest root = os.path.abspath(os.path.expanduser(__file__ + '/../tests')) sys.path.append(root) if __name__ == '__main__': suite = unittest.TestSuite() suite.addTest(unittest.defaultTestLoader.discover('tests')) unittest.TextTestRunner().run(suite)
[ "caviler@gmail.com" ]
caviler@gmail.com
bb7d789c7df59f3ef3d4b7d31cc5b89a64bbb3c6
51cbd904e17e45f6adb5303c3532a6ff0519ab42
/sdk/tables/azure-data-tables/tests/test_table_service_properties_cosmos.py
139f3c1973a4a4d8f57e5f7f63813ae8c7bfbeef
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
heaths/azure-sdk-for-python
203e9a6052d7dff5b5f2346bced86b9406be3419
77feaf14471eba6642f5c7ae2f3f06981ff361d7
refs/heads/master
2022-07-26T06:46:57.067502
2021-04-15T21:35:26
2021-04-15T21:35:26
239,629,447
0
0
MIT
2020-02-10T22:46:20
2020-02-10T22:46:19
null
UTF-8
Python
false
false
9,896
py
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
heaths.noreply@github.com
6b6eff5bda3cf3377e02463065468ac0476d1bf8
38ecc2e4d128f2770c105673fba2c480a96d688f
/Задание №1 по наследованию.py
a44643ebcea89a7b2241ab2fc0a27647c14c4a1a
[]
no_license
Valentin31121967/Class-
288c4b2cf430bcb1b6c3dd756d0040867125b2f9
078ab77356e9d6b7532622a2d32c5ea29fb7ffcb
refs/heads/master
2022-04-15T05:09:11.094751
2020-04-15T04:45:29
2020-04-15T04:45:29
255,808,474
0
0
null
null
null
null
UTF-8
Python
false
false
2,352
py
# Задание №1. Взять задание из предыдущей лекции и отделить функции сохранения и загрузки в отдельный класс import json # Создаем новый класс User class User: # Функция конструктор класса User def _init_(self): self.first_name = None self.middle_name = None self.last_name = None ...
[ "askshatriy@ukr.net" ]
askshatriy@ukr.net
61496518c7782cbc99ab59bb0f240368c572137d
6fda3d57556c381de407898710b02244561ffa4e
/load_datasets.py
c6bd1af889b12f860b070b4aeab2aaf412827bd7
[]
no_license
pachecobeto95/Quality_POPEX
46679f7319aff44675b3ec41be2a4551a611e3d4
e98987c5ff8836723ef227c685dcd7d10363522b
refs/heads/master
2023-03-31T04:11:29.868823
2021-04-03T19:17:35
2021-04-03T19:17:35
335,408,076
1
0
null
null
null
null
UTF-8
Python
false
false
3,288
py
import torch import torchvision.transforms as transforms from torchvision import datasets from torch.utils.data import Dataset, DataLoader, random_split, SubsetRandomSampler class LoadDataset(): def __init__(self, input_dim, batch_size_train, batch_size_test): self.input_dim = input_dim self.batch_size_train...
[ "robertopvc@gmail.com" ]
robertopvc@gmail.com
07668772edfbe22ce75606f7b2dbddeeadeb083a
efcd8ea3f5419cd7d6eb7406875b7f727291492f
/IRIS/width_wise_l2/8w_l2.py
46704866ad62a1cdd2b0e5d8b54f553a21f127d6
[ "MIT" ]
permissive
jrepifano/xai_is_fragile
936612c2ecf7b020ab1a75719d18bff9bed564d2
fd7e21355582543fa2d00bf9f48d3e12725c3fb6
refs/heads/main
2023-08-28T00:45:36.066073
2021-11-13T20:12:51
2021-11-13T20:12:51
346,057,518
1
0
null
null
null
null
UTF-8
Python
false
false
13,542
py
import os import time import torch import numpy as np from pyhessian import hessian from sklearn.datasets import load_iris from sklearn.metrics import accuracy_score from scipy.stats import pearsonr, spearmanr from sklearn.model_selection import LeaveOneOut from sklearn.preprocessing import StandardScaler os.environ[...
[ "jrepifano@gmail.com" ]
jrepifano@gmail.com
43a1a88455943cde239ee14c15fa12fc73f1c4f9
3cf5638a12bb6a03a40aaffcab15b1789546948d
/ws4py/utf8validator.py
b457768a61646dc7cb6de895077c599b37bfe646
[]
no_license
GDur/LiveProcessingJs
8afeed64777d1df977967856f2c8b592ff671438
7b2c5a0e4cee0926a8c289e297cdb470a7fe48b2
refs/heads/master
2016-09-06T07:55:21.240721
2012-12-08T11:14:19
2012-12-08T11:14:19
6,513,730
1
0
null
null
null
null
UTF-8
Python
false
false
13,283
py
# coding=utf-8 ############################################################################### ## ## Copyright 2011 Tavendo GmbH ## ## Note: ## ## This code is a Python implementation of the algorithm ## ## "Flexible and Economical UTF-8 Decoder" ## ## by Bjoern Hoehrmann ## ## bjoern@hoehrmann.de...
[ "gdur.mugen@googlemail.com" ]
gdur.mugen@googlemail.com
c0b9fba0df580154ea29be2dc724cbe802318450
b8120b9a99b1aab3fa423bc28173b10523084301
/app/views.py
3980e892431891877c72c44e2da6ae5298a24185
[]
no_license
Trailblazerr1/iiita-hacks-musify
e0cc22a95b164399462750e5667b886090ca17bb
d7ab39622306e48e280fb350b9f416b64dc95f37
refs/heads/master
2020-12-25T14:38:34.028923
2016-09-12T11:28:49
2016-09-12T11:28:49
67,906,279
0
0
null
null
null
null
UTF-8
Python
false
false
4,195
py
""" Definition of views. """ from django.shortcuts import render from django.http import HttpRequest from django.template import RequestContext from datetime import datetime from app.forms import PostForm from django.http import HttpResponseRedirect from clarifai.client import ClarifaiApi import requests import json i...
[ "noreply@github.com" ]
Trailblazerr1.noreply@github.com
f1fb0b7965ea4496faa19f2a337c9563b82ab413
d12fe2658edc0db98b278aab507fc86efefd5541
/chat/forms.py
0d23f6da0892f36ce4d4af4442b0a0e72db168f1
[]
no_license
harumi-matsumoto/django-ai-chatbot
6190c1090e8aea877ff7573c45421e10158e4a64
90e2b8e8cec98c022892e8603eb090fc64197b3f
refs/heads/master
2020-08-05T16:10:09.162039
2019-10-12T03:10:54
2019-10-12T03:10:54
212,608,451
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
from django import forms class TestPredictForm(forms.Form): message = forms.CharField(widget=forms.Textarea, max_length=255)
[ "harumimatsumoto27@gmail.com" ]
harumimatsumoto27@gmail.com
a382122e088d085ebf613ab22954c0a051260e01
332e0fe0e109795a838ab75f91cacbd818eb8f26
/examples/tech_locator.py
430a9d69cc57fcef52eece431039f3d98c927476
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
yoyossy/open-city__dedupe
08fb505dda14992cd35fd41c0ff5c5fb98d54d68
187d0d6eeeba23046d7155fb9e593b36e21388fe
refs/heads/master
2021-01-15T19:22:36.191934
2012-07-23T14:48:39
2012-07-23T14:48:39
5,244,938
1
0
null
null
null
null
UTF-8
Python
false
false
4,104
py
import csv import re import os #dedupe modules from dedupe.training_sample import activeLearning, consoleLabel from dedupe.blocking import trainBlocking, blockingIndex, mergeBlocks from dedupe.predicates import * import dedupe.core import dedupe.clustering def techLocatorImport(filename) : data_d = {} duplicates_...
[ "derek.eder@gmail.com" ]
derek.eder@gmail.com
37886a99293824da426248ef167d6469762d4331
48d17885eda6401cde7e4ef563727ad4b5a7e851
/ex43_classes.py
18549bd62a8d355389e39399f65761f4a307dcb6
[]
no_license
bowen0701/learn-python-the-hard-way
635680d711dca044e2584ffe7dc3b129998f59db
73540c462cf1561271664d2058e902d60907c200
refs/heads/master
2021-09-22T11:01:35.059384
2018-09-08T23:30:38
2018-09-08T23:30:38
94,005,892
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
"""Basic Object-Oriented Anaysis and Design.""" class Scene(object): def enter(self): pass class Engine(object): def __init__(self, scene_map): pass def play(self): pass class Death(Scene): def enter(self): pass class CentralCorridor(Scene): def enter(self):...
[ "bowen0701@gmail.com" ]
bowen0701@gmail.com
de7ede51aae8aea701206a53f518f0d5ac082ce5
0090d4ab68de301b77c6c69a58464136fa04ba49
/trydjango/settings.py
a3933049574711d35e99e5e238ad8b94b8ac109f
[]
no_license
firdavsDev/Django_simple_blog
b70000194875d792838f916d035b89be59312cd9
f5999cf30091fce2246f44a5a55d55071aeb7a99
refs/heads/main
2023-08-23T04:10:52.570457
2021-09-23T10:19:18
2021-09-23T10:19:18
409,543,186
1
0
null
null
null
null
UTF-8
Python
false
false
3,905
py
""" Django settings for trydjango project. Generated by 'django-admin startproject' using Django 3.2.4. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathl...
[ "74819987+firdavsDev@users.noreply.github.com" ]
74819987+firdavsDev@users.noreply.github.com
f373e27e3ba576b9f7a22bbc7276a5e8c633bcb2
e65ac1ea21eee50e7b5b5d5f8e0d8ceea2cb1c9a
/import/its-behind-you/import.py
559133b57b5a5d8d7ca57d4823458c831c88daf3
[]
no_license
dracos/Theatricalia
539b42746dea86c0377db2593ba651e3563c1579
8cb417f5048a261329bc853bfcc6ba64c76daec8
refs/heads/master
2023-02-19T18:56:56.751263
2023-02-15T21:39:40
2023-02-15T22:13:42
1,178,517
5
2
null
2021-01-06T14:38:26
2010-12-17T23:02:50
Python
UTF-8
Python
false
false
2,718
py
#!/usr/bin/python import os, sys, re, time for i in range(3, 0, -1): sys.path.append('../' * i) os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.core.files.base import ContentFile from plays.models import Play from productions.models import Production, Part, ProductionCompany from productions.mode...
[ "matthew@theatricalia.com" ]
matthew@theatricalia.com
0733674fe504df151b23c469f99ef7d29df5489a
ac7828a5fb10daaba998a09b427de3076d3b06d8
/cnems/bbc/migrations/0011_comments.py
6f9bdeacd4e9f87e4b20563d4d02dab42fdb6293
[]
no_license
zkq123/django_1
950b1e8b4f94542e78e17de2744d212a7ac00ac9
9c5b498f7314ad9283da32b4a0e3793674bb7a7f
refs/heads/master
2022-11-07T02:12:33.318288
2018-12-08T02:26:19
2018-12-08T02:26:19
155,974,478
0
1
null
2022-10-07T22:55:44
2018-11-03T10:55:35
Python
UTF-8
Python
false
false
765
py
# Generated by Django 2.1.2 on 2018-12-04 12:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('bbc', '0010_remove_likes_sum'), ] operations = [ migrations.CreateModel( name='Comments', ...
[ "qingyun@email.com" ]
qingyun@email.com
266486163cb2f2c144efffc3cfa02050697431de
d7de23e521d73096f173318423cf6b0e5d06c97f
/CMGTools/LEP3/python/kinfitters.py
2721d051ec15e98ffabeebf5f9689b3c2383578a
[]
no_license
HemantAHK/CMG
3cf6c047b193e463e3632aa728cd49067e9dde76
7bec46d27e491397c4e13a52b34cf414a692d867
refs/heads/master
2021-05-29T20:01:04.390627
2013-08-15T15:24:22
2013-08-15T15:24:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
from CMGTools.RootTools.RootTools import * from ROOT import gSystem gSystem.Load("libCMGToolsLEP3") from ROOT import FourJetEpKinFitter from ROOT import FourJetEpMKinFitter from ROOT import DiJetMKinFitter
[ "" ]
56bfee5ce1520cf5059f5913eee9d2238b793119
eda3d6974a60a42a1ee35cd2327218029490a654
/develop/sanic_aiozipkin_test.py
9433fc32d133111cb645f42c7070691073e2669f
[]
no_license
1260228859/EvanKao-ms
4a4159123bfd3f3b960c9b81ca920f599fffc6cc
ae0e9dbf2803c6bd67ea8b0be012b64c57db7bbc
refs/heads/master
2020-09-26T19:39:48.587556
2020-07-08T03:00:01
2020-07-08T03:00:01
226,328,706
0
0
null
null
null
null
UTF-8
Python
false
false
2,131
py
from sanic import Sanic, response from sanic.response import json import aiohttp import aiozipkin as az """ integrate aiohttp to Sanic app, doc(CHN): https://www.jianshu.com/p/17bc4518b243 """ host = '127.0.0.1' port = 8000 zipkin_address = 'http://127.0.0.1:9411/api/v2/spans' app = Sanic(__name__) endpoint = az.cr...
[ "jiantao.gao@cityio.cn" ]
jiantao.gao@cityio.cn
b7a6cb5c45e46e496ff9ac7299b59ead5a70c670
6809cda579a7c1c88872f566d65f665c2dff20bb
/archive3/lib/prediction.py
43f01be6f1370c641d2afae4f8720168f3c9e38e
[]
no_license
hellojixian/stock-dummy
edb3e7447e26ec3e0481c938fcf8f72063d6c850
06b352ba3d78ac419e7672b0e6ec630f6f461ae8
refs/heads/master
2020-06-15T09:11:33.401689
2019-11-05T15:46:43
2019-11-05T15:46:43
195,256,649
0
0
null
null
null
null
UTF-8
Python
false
false
3,043
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import pandas as pd import sys,os,datetime,time import gc # 强制转换成整数 为了加速搜索 至少减少内存消耗了 def optimize_df(df): int_cols = df.columns[:-2] float_cols = ['future_profit','future_risk'] df_float = df[float_cols].copy() df = df.astype('b') d...
[ "hellojixian@gmail.com" ]
hellojixian@gmail.com
61327de1c6f0afb604104a7376dc24faaed7a103
42c6e00741a37d02880f14d49fa6f7d2f484cd22
/market_place/article/migrations/0001_initial.py
198b81c5bc9d5b6665d8db75449a4c76974684d4
[ "MIT" ]
permissive
otherland8/market-place
023d34f92809ff61a3ee3e60007c27597b10047f
ebf21a77cf9b3998e270ebd2d4422d7ce997e472
refs/heads/master
2021-01-17T12:47:51.847532
2016-07-08T20:20:31
2016-07-08T20:20:31
59,594,948
0
0
null
null
null
null
UTF-8
Python
false
false
1,308
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-07-08 16:02 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('public'...
[ "otherland@abv.bg" ]
otherland@abv.bg
c9a09e5b6cfdc643895b716f62e61cddeaf1f9ac
fe90bf63c34511ec9a4d7cb5a90957fbbb03a504
/boundary_layer/builders/base.py
06573b22f26400966c3a38fb8464d794b797405d
[ "Apache-2.0" ]
permissive
etsy/boundary-layer
778b115f94efc5d50986a289daf3ad265b38926c
c29594957c1fb47e308fcc89f7edcefc0797fc89
refs/heads/master
2023-07-21T17:03:15.769537
2023-01-04T14:05:53
2023-01-04T14:05:53
142,857,095
263
67
Apache-2.0
2023-07-19T19:57:04
2018-07-30T09:51:52
Python
UTF-8
Python
false
false
8,829
py
# -*- coding: utf-8 -*- # Copyright 2018 Etsy Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ "mchalek@gmail.com" ]
mchalek@gmail.com
9ac71ff258e15cccc153cde0ad3f3d89c6d93d2d
3850b80059dc5105504c56300dbbc5c70d3ac533
/models/__init__.py
a495e6c3da7339c6a90a4c7d428ad2be25088dba
[]
no_license
haohaom1/intrinsic-images
cea56f6991dbdde89dd26621716a08c5f51f7ac4
e3e0ddf85b843c3aa93bccf717f80364a15c38b0
refs/heads/master
2022-12-05T08:37:31.138944
2021-08-12T16:07:06
2021-08-12T16:07:06
193,809,832
0
3
null
2022-11-22T03:59:22
2019-06-26T01:45:51
Python
UTF-8
Python
false
false
34
py
# file to make this folder a model
[ "riallenma@gmail.com" ]
riallenma@gmail.com
7a883866c1dc23352c28cb30226f37e61c4eecf9
13884f547752c1f7d5b45d63a8e3aeebaea5a591
/newsproject/newsproject/settings.py
43da654da7fedf2f86c2779e0e66d4df147839d2
[]
no_license
azharashra05/newsapp_repo
5139a7d33767b43b83ebc255aa40f2ee6dc17efc
e487ae15f103aa3e0d7b4b405f1c6e2a729ffeb3
refs/heads/master
2022-12-10T21:07:49.371475
2020-09-05T07:57:28
2020-09-05T07:57:28
293,029,679
0
0
null
null
null
null
UTF-8
Python
false
false
3,253
py
""" Django settings for newsproject project. Generated by 'django-admin startproject' using Django 2.2.7. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import o...
[ "azharashraf05@gmail.com" ]
azharashraf05@gmail.com
ec782cbc862fb7d8fded12eba2199a87bd70e120
b186f73f14b5e93e763bc284cc0ca5737ad40c4a
/blog/forms.py
aa355e8bb86cd10ec6099e3cf945812cc5097ee6
[]
no_license
basmaaitbelarbi/blog_django
ba667174ecd7209c49b00a48e7f42b4fdf92c96d
af763b2db0704c9d41c2d3355a30f29b30ef8bf5
refs/heads/master
2021-05-23T14:41:36.841520
2020-04-24T00:25:03
2020-04-24T00:25:03
253,344,995
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
from django import forms from .models import Comment, Post #ntest cmass class NewComment(forms.ModelForm): class Meta: model = Comment fields = ('name', 'email', 'body') class PostCreateForm(forms.ModelForm): title = forms.CharField(label='title') content = forms.CharField(label='content'...
[ "basmaaitbelarbi@gmail.com" ]
basmaaitbelarbi@gmail.com
3ec32164666ac523827540b3380e72da6133f4c2
0d73e045f83f1765b9d598f9cebb2ec328353c99
/15A Reading the Program.py
89eeeace4a4fbac67b9fb6dd0f9013bfac0e2e2d
[]
no_license
Jalbanese1441/Waterloo-CS-Circles-Solutions
642553db986cf7d53af133eb79a9abc097107a91
0506e2f7f62ec9ff4a5fc412b0526995164844ab
refs/heads/master
2023-02-01T18:09:57.375959
2020-12-18T23:50:18
2020-12-18T23:50:18
277,946,727
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
def getBASIC(): holder=[] x="" while x.endswith("END")==False: x=input() holder.append(x) return holder
[ "67984785+Jalbanese1441@users.noreply.github.com" ]
67984785+Jalbanese1441@users.noreply.github.com
15b6ae2d70b9799cb8748159e727ba2aff01ca67
a7b4bd1db26f71ab941076691d894583e167a3fd
/tools/cli_auto_doc.py
3fa4e46f23cc9b1663fdece8826ea5510b80263b
[ "Apache-2.0" ]
permissive
Mirantis/stackalytics
c422ccb27baa3f1fd7e68b9732ba0203144a3657
96ec7c6c630a9f2532b808069e045d434bbac200
refs/heads/master
2021-01-18T21:58:38.904481
2017-01-25T11:14:12
2017-01-25T11:14:12
10,863,780
3
4
Apache-2.0
2020-02-26T11:45:53
2013-06-22T11:17:28
Python
UTF-8
Python
false
false
1,806
py
# Copyright (c) 2015 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
[ "ishakhat@mirantis.com" ]
ishakhat@mirantis.com
58893a54c197fb68eeb0d035302bf64d8d6e53e9
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/3/gD3.py
aa7152104068969fce4fab0f59d40adbf339df10
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
1a8b3763c8a94e48cf8da659c686babc72716600
80abe7427ca501da06a9507cefa52d5c290f2833
/Chapter04/topic_modeling.py
841891d56168915143ec57282aeab11713c75372
[]
no_license
CodedQuen/Raspberry-Pi-3-Cookbook-for-Python-Programmers
7910c9cf9ebaf6f42510bd531bf965fd03e6efe8
4a77452c4510fd9c7da62099a93fdbc95a86245a
refs/heads/master
2022-06-10T04:36:59.316284
2020-05-05T10:18:33
2020-05-05T10:18:33
261,421,883
0
0
null
null
null
null
UTF-8
Python
false
false
2,220
py
from nltk.tokenize import RegexpTokenizer from nltk.stem.snowball import SnowballStemmer from gensim import models, corpora from nltk.corpus import stopwords # Load input words def load_words(in_file): element = [] with open(in_file, 'r') as f: for line in f.readlines(): elem...
[ "noreply@github.com" ]
CodedQuen.noreply@github.com
be1bf8bedb3397c20eaccb3b6536f27ed3bc8b82
aab904ff48ee50db955ec844e5663a64404a1042
/gemini.py
8d0795d7c7c3de2e37d8d6b183f5eaf3dfa8072f
[]
no_license
walazdev/GeminiChallenge
b5bd82aefe2768b949589793a5c526e3e78893d5
459d38385c84697f188893b8d5f8e07cec29b4d2
refs/heads/main
2023-04-01T17:19:21.405599
2021-03-22T17:37:19
2021-03-22T17:37:19
350,207,460
0
0
null
null
null
null
UTF-8
Python
false
false
2,733
py
import requests, json, sys, time, datetime def main(): userInput = sys.argv[1] try: userInputFloat = float(userInput) except ValueError: print("Usage: python3 gemini.py [% threshold]") print("[% threshold] has to be a number") sys.exit(1) if (len(sys.argv) != 2): ...
[ "willzs@umich.edu" ]
willzs@umich.edu
8330dd686199cc1515e5595364a6d6fc22e245f6
5d9105fc2b36967ae99a09649021cdcaf71a72ed
/Project1_804587205_204617837_004589213_204587029/polynomial/plot_underfitting_overfitting.py
349f38db338997e934f086c19f6c5724fb38a987
[]
no_license
ishan793/EE239-Big-Data-Analysis
2a9e0a126f9054798f67b233f2fc50c5f7380225
310080a39f111705b2271a9c61b61b3f5b33e91e
refs/heads/master
2020-04-09T20:06:38.207491
2016-02-28T21:43:03
2016-02-28T21:43:03
50,261,455
1
2
null
null
null
null
UTF-8
Python
false
false
3,557
py
""" ============================ Underfitting vs. Overfitting ============================ This example demonstrates the problems of underfitting and overfitting and how we can use linear regression with polynomial features to approximate nonlinear functions. The plot shows the function that we want to approximate, wh...
[ "pulkitagrawal2311@gmail.com" ]
pulkitagrawal2311@gmail.com
25e2f3a9ceb559034509a531ca8eec0c56c15cdc
9fcf684509bf39dbd7fcf7999e847b88ffb27a44
/facebookbot/http_client.py
6ec1347131f9b4cf5b5e5e61f03e3e3dc1b1d139
[ "Apache-2.0" ]
permissive
tailin/python-messengerbot-sdk
916dd36279828ea76d21a5c90e26cf93c8ef1934
cbe04b1a6b94b7cd7c04d06348737c041643b242
refs/heads/master
2020-04-27T11:31:09.368708
2019-03-07T07:00:25
2019-03-07T07:00:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,280
py
from __future__ import unicode_literals from abc import ABCMeta, abstractmethod, abstractproperty import requests from future.utils import with_metaclass class HttpClient(with_metaclass(ABCMeta)): """Abstract Base Classes of HttpClient.""" DEFAULT_TIMEOUT = 5 def __init__(self, timeout=DEFAULT_TI...
[ "t0915290092@gmail.com" ]
t0915290092@gmail.com
985dad9eac8bbe27fa5b3adfb04734809e871ce4
ae16f9dd815605e5f52f27dda77bd735abafb587
/parser/councilors/elections_config.py
1bf0e2a7db9c45f4024b1026e1cd6c38e1f368c0
[ "CC0-1.0" ]
permissive
travishen/councilor-voter-guide
aa4a1aa3b86db9ca40b291baf461ff0330a369c0
09d9365676335854b2d4d0981f5cb925adf4c958
refs/heads/master
2020-04-13T10:09:07.688276
2018-11-28T14:51:05
2018-11-28T14:51:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,827
py
#! /usr/bin/env python # -*- coding: utf-8 -*- import sys sys.path.append('../') import re import json import psycopg2 import ast from sys import argv import gspread from oauth2client.service_account import ServiceAccountCredentials import db_settings conn = db_settings.con() c = conn.cursor() election_year = ast.li...
[ "twly.tw@gmail.com" ]
twly.tw@gmail.com
c47b2a335796c963552a994e83d36361618a343d
7073c53c421018bd1a2c8a14e55c61bcf7c8ed04
/ask_1.py
c1ef86a87a8fd62f35b2730de5a77d797f38205a
[]
no_license
AntonisEkatommatis/1o_Eksamino_PYTHON
0a0e075a2bff9705bca34ab3064ae58eab3305e1
d9c019d62bed1ed71f9c4a441c0fb814ffa3a730
refs/heads/master
2020-04-21T14:40:08.915040
2019-02-12T19:32:55
2019-02-12T19:32:55
169,642,646
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
#Ergasia 1 #Antonis Ekatommatis #Eisagwgh sthn episthmh twn ypologistwn #1o Eksamino #Dimiourgia Synartisis def sumIntervals (L): a=[] b=[] asin=0 bsin=0 apot=0 #Eisagawgi sthn lista a oles tis arxes apo ta oria for i in range(len(L)): a.append(L[i][0]) #Eisagwgi sthn lista b ta...
[ "antonismatis@gmail.com" ]
antonismatis@gmail.com
447d86e8e9209462fd50b2b94da10ea4ce9f191d
582cf2295d4b4666421da511507858435912ea30
/Sample.py
0a4cf81985e2de9af19913e6e31e192aa913f273
[]
no_license
limjisooooooo/z
bfe71ba18fe186e02be5e7908d3068d86e9f63db
cf0dc6f3de63decd69ecd7f139740334807054bc
refs/heads/master
2020-04-27T04:13:53.611372
2019-03-28T08:46:28
2019-03-28T08:46:28
174,047,811
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
import sys import base64 from PyQt5.QtWidgets import * #from PyQt5.QtGui import * class Form(QMainWindow): def __init__(self): super().__init__() self.browser = QTextBrowser(self) self.browser.setGeometry(0, 0, 471, 401) self.setGeometry(0, 0, 500, 500) self.btnFile = QPushButton(self) self.btnFile.set...
[ "trefrasd@gmail.com" ]
trefrasd@gmail.com
25b980a0be5f061c6bdc488b9c6e51969e8a81c7
ceb5b7c3882b2bf3f53219356e914462c680f059
/azure-mgmt-compute/azure/mgmt/compute/containerservice/v2017_01_31/models/container_service_client_enums.py
279f5dcb9d3ff37bd26b6e9a9c88b555f28c3dff
[ "MIT" ]
permissive
codalab/azure-sdk-for-python
b712da2a377cfa526e0ffa4fa40408e6a81e48e3
f4c92d02d46fcdee9da430a18a394b108a2f8920
refs/heads/master
2021-01-19T14:40:23.567035
2017-04-11T22:49:13
2017-04-11T22:49:13
88,180,409
1
0
null
2017-04-13T15:36:45
2017-04-13T15:36:44
null
UTF-8
Python
false
false
2,291
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
825006c894ca28563ceb49ebb22caa4eb6aead20
4e0c1615c467c63524db9a33d0e769f1370f5a12
/python-ops/training/exercise/test/murthy/r30.py
ae1cc0288d7548781efef0cae97dc498836eb388
[]
no_license
infra-ops/cloud-ops
1afb44ed29000491aaa5420ebc6e0b8d740fc55c
4f676fde13f33c838f7f17affd705966a6d31da2
refs/heads/master
2023-08-27T03:00:32.867645
2023-08-23T14:27:59
2023-08-23T14:27:59
140,283,053
3
1
null
null
null
null
UTF-8
Python
false
false
64
py
values = [100,200,300,400] slice = values[1:3] print(slice)
[ "chakraborty.rock@gmail.com" ]
chakraborty.rock@gmail.com
14c97cc76c6333d459e2b615402d70304853e1d8
520a9b3d11f4a4ce93d0927a8fd5c575252b3559
/lib/python2.7/site-packages/sphinx/registry.py
cdae7722411e7bcd78f8a786996f665d8862a229
[ "Apache-2.0" ]
permissive
Larsende/F5_Agility_2018_Security_in_AWS
90c7404962313b13cec63321e6fc38bdc9516dd0
1bebcf9d441a3e3b7348757fcbc83844fbb0132e
refs/heads/master
2020-03-20T02:23:59.099742
2018-08-12T15:28:50
2018-08-12T15:28:50
137,111,587
0
2
Apache-2.0
2018-08-03T21:19:48
2018-06-12T18:21:58
Python
UTF-8
Python
false
false
15,315
py
# -*- coding: utf-8 -*- """ sphinx.registry ~~~~~~~~~~~~~~~ Sphinx component registry. :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import print_function import traceback from pkg_resources import iter_entry_points f...
[ "davidelarsen@live.com" ]
davidelarsen@live.com
3f37df8301b6e1dbb044c648cb837c0f03ffdbc6
a1582cec6239f627c6740b391d751f429675ee39
/test_todo.py
039a3c22c18438751c553f7c5c877b02e940182e
[]
no_license
SolbiatiAlessandro/todos
7cabfd35d6c7d3cdd3232051be4a96c667d55f21
b85e74c4fc220dccc5a0a05a288465b2da98f6d0
refs/heads/master
2020-03-28T18:56:09.847298
2018-10-15T15:07:01
2018-10-15T15:07:01
148,928,531
1
0
null
null
null
null
UTF-8
Python
false
false
638
py
import unittest import todo from os import path dir_path = path.dirname(path.realpath(__file__)) class testTODO( unittest.TestCase ): def test_readElems( self ): self.assertIsNotNone( todo.readElems() ) def test_todoDone( self ): with open(dir_path+'/todos','a') as f: f.write('"[...
[ "alexsolbiati@hotmail.it" ]
alexsolbiati@hotmail.it
19ebe0e0280c2829c58678866cdc0eb3a1da7611
bbe6f37f7347cb83f08846d505ac4aa6bc0031e6
/purity_fb/purity_fb_1dot9/apis/arrays_api.py
7bd8335e17e2cf1d85d4d5361d2a51ff900af97e
[ "Apache-2.0" ]
permissive
bsamz-ps/purity_fb_python_client
02ff7213075cf1948e2db7b0835cc5fcc56f328a
11f27ef0c72d8aac1fc4e1ed036cca038b85dfa4
refs/heads/master
2021-02-19T08:11:04.042758
2020-02-12T23:56:08
2020-02-12T23:56:08
245,294,511
0
0
NOASSERTION
2020-03-06T00:14:27
2020-03-06T00:14:26
null
UTF-8
Python
false
false
43,419
py
# coding: utf-8 """ Pure Storage FlashBlade REST 1.9 Python SDK Pure Storage FlashBlade REST 1.9 Python SDK. Compatible with REST API versions 1.0 - 1.9. Developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). ...
[ "tlewis@purestorage.com" ]
tlewis@purestorage.com
d41c0a0dcfbff280e11e9fa43fbd1a64b889ce22
6444935a3e304e0d8f0fc4cf7fbb7153621cfc53
/technosphere_python_backend/homeworks/06_07/project/project/urls.py
6f1f921969039500acc29fa06730692f4e48846f
[]
no_license
SVasi1yev/other
d1032871dc36a22cc2b556d4cbf6c0dc0c968e87
1c31090e7b3e0ff04e00b4f5b0b7ac917fe83ed2
refs/heads/master
2023-08-04T16:28:05.163894
2023-07-17T14:32:09
2023-07-17T14:32:09
138,393,326
0
0
null
null
null
null
UTF-8
Python
false
false
1,141
py
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "vsemenm@gmail.com" ]
vsemenm@gmail.com
d9b1642074ff790c14fedd3afa80bc618136166c
2191d0e0d9fbec3dcef93386ba6c691d222bfed4
/new_user/migrations/0015_auto_20170428_1826.py
5aed1ff9f421cb90cdfeb799f1cda59759a131cd
[]
no_license
AnkitaVikramShetty/airbnbNewUserPredictions
19e7a74bd39cc663c23e0a7c407d9a151a37a954
86338384d565fcd017f18944559165ee806b751f
refs/heads/master
2021-01-19T04:40:59.235835
2017-05-02T16:14:55
2017-05-02T16:14:55
87,385,734
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('new_user', '0014_auto_20170428_1119'), ] operations = [ migrations.AddField( model_name='age_gender_bkts', ...
[ "smaaz015@gmail.com" ]
smaaz015@gmail.com
5893049dfab4f9e7702c5a3117f4468d5c72a98f
27bd7769798502bccbbc4b1bbc34e22d17f17d98
/regressao_linear.py
6dd8db7e2851e9a8717ad91bfc2f4b32d1eb00d7
[]
no_license
jcclark/regressao_linear
03f3bfd759de3e629788d7ba6891f081ae41a667
bcf27dd810eb3916809b3683098ae2c3bd4dc619
refs/heads/master
2020-08-01T09:29:57.254610
2019-10-05T22:35:14
2019-10-05T22:35:14
210,948,723
0
0
null
null
null
null
UTF-8
Python
false
false
2,757
py
import csv import math from random import randint import matplotlib.pyplot as plt def modelo( data, tipo, i): dados = dv_dados(data, tipo) b_treino, b_teste = dv_bases(dados, i) b_0, b_1 = regressao_linear(b_treino, tipo) x = [d[0] for d in dados] y = [(b_0 + (d[0] * b_1)) for d in dados] desv...
[ "juniorclark@gmail.com" ]
juniorclark@gmail.com
2ae5a8847cf48e47a874c90b02e69013112279ba
f9faa75c7a0608f5a03fde26fb494de9bfdaa895
/WEEK 1/part01-e05_two_dice/src/two_dice.py
a650e13f6172340c085080170522dc497bc76781
[]
no_license
LeguizamonLuciano/DataAnalysisHelsinkiUni
16a8bead739b35a75f9d72c5691eedee70efc4eb
84af79815a5bcd497f731c4c24a22bb569db0c7f
refs/heads/main
2023-01-15T20:18:01.487593
2020-11-09T23:11:19
2020-11-09T23:11:19
307,580,394
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
#!/usr/bin/env python3 def main(): for i in range(1,7): for j in range(1,7): if i+j == 5: print((i,j)) if __name__ == "__main__": main()
[ "lucianoleguizamon@outlook.com" ]
lucianoleguizamon@outlook.com
762b157f8689129dbb59a301f005e5c667ff34f1
9fe97e356baf38e92a46553a5eb21d6f0942ec14
/cluster/sdk/tests/e2e/conftest.py
534468ccc96285a9421e6e2bca799c442ed25e02
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
ezwiefel/feast-azure
1adbd9c3a12577c42164e7536d4afed6096a8e3c
ae94e7232439559205d5e1e84217d8274e3d2f3b
refs/heads/main
2023-08-27T00:43:26.233519
2021-11-04T10:53:01
2021-11-04T10:53:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,696
py
import os import pytest def pytest_addoption(parser): parser.addoption("--core-url", action="store", default="localhost:6565") parser.addoption("--serving-url", action="store", default="localhost:6566") parser.addoption("--job-service-url", action="store", default="localhost:6568") parser.addoption("...
[ "47040993+rramani@users.noreply.github.com" ]
47040993+rramani@users.noreply.github.com
fd6eff07502fb4045b9c9bea91c6e2e5360f0a6c
dfac09701ae836ca8ff682ac741535eb84fec3af
/Dasha/modules/info.py
e291873d2b028cd6961d07b17aaaa10885835902
[]
no_license
Srinath2006/Dasha
a166c2274e15e0b7a73a7216ae0a533843647f1d
54a2025c2cea0f89c322249578c271d132b90fd0
refs/heads/main
2023-08-23T02:23:26.245367
2021-11-02T14:28:39
2021-11-02T14:28:39
423,876,040
0
0
null
null
null
null
UTF-8
Python
false
false
2,235
py
from Dasha import ubot from Dasha.events import dasha from . import get_user from telethon.tl.functions.users import GetFullUserRequest @dasha(pattern="^/info ?(.*)") async def new(event): if not event.reply_to_msg_id and not event.pattern_match.group(1): user = await ubot.get_entity(event.sender_id) else: try:...
[ "percy@railway.app" ]
percy@railway.app
ee8d4a24f7c6068b54efb883495622825593dcad
065694179b7a132d989c373573a0e89686cc2c8c
/untitled/venv/include/task1.py
9fcae00b5f7e63cef0d7248881b10293e65e6e5b
[]
no_license
vksychev/PythonPlayground
ff267b1173f43cae2d11634b70e75c0aa3f715aa
99c4c1471b4e3e5a528486a58bd92cfd42b33c0e
refs/heads/master
2020-03-21T06:11:23.144147
2018-12-27T14:56:07
2018-12-27T14:56:07
138,204,660
0
0
null
null
null
null
UTF-8
Python
false
false
719
py
import math def genA(n): a = [] for i in range(n): new_element = i a.append(math.sin(new_element)) return a def solution(A): direction = 0 cur_direction = 0 count = 0 for i in range(len(A) - 1): if A[i] < A[i + 1]: cur_direction = 1 if dire...
[ "vksychev@yandex.ru" ]
vksychev@yandex.ru
bec5d5fbb09b6260d514209bc438f344d215832b
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-sblp/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=30/sched.py
a85202e958d39e172c17afa700742b708255c6d6
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
-S 0 -X RUN -Q 0 -L 2 84 250 -S 1 -X RUN -Q 0 -L 2 80 250 -S 0 -X RUN -Q 0 -L 2 74 250 -S 0 -X RUN -Q 0 -L 2 59 250 -S 2 -X RUN -Q 1 -L 1 57 200 -S 2 -X RUN -Q 1 -L 1 48 175 -S 2 -X RUN -Q 1 -L 1 40 125 -S 2 -X RUN -Q 1 -L 1 33 300 -S 3 -X RUN -Q 2 -L 1 29 100 -S 3 -X RUN -Q 2 -L 1...
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
9dae9e1cb02e03ac83133c64c0010ed526601e15
bd9c74247381121f71f3dde6b55c67856f58e124
/编程题/第4章-6 输出前 n 个Fibonacci数 (15分).py
d9428ceda6a9128e079ff4764f63ec641e09169e
[]
no_license
Redomeliu/Python
302cd5abd89f7040911c8afb1db6faee6d43de64
9f5568ec59d30ce0f7d572d072b86088e933abc8
refs/heads/master
2023-01-05T19:51:00.795864
2020-10-29T02:42:36
2020-10-29T02:42:36
308,293,416
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
def Fibonacci(i): lis = [1,1] n = 1 while(i>n): lis.append(lis[n]+lis[n-1]) n +=1 return lis[i] x = int(input()) count = 0 for i in range(x): count +=1 print(f'{Fibonacci(i):>11d}',end="") if count == 5 or i==x-1: print('\n') count=0 if x < 1: print(...
[ "1258995373@qq.com" ]
1258995373@qq.com
da11437adf2aba52e01ffabe242c48711dbfe401
d0a54183ad20c3e1bfb3d70d118b3a2ccf9256be
/pylearn2/pylearn2/training_algorithms/bgd.py
86cdd585642ea1c5ac01de3c8ab7785692360024
[ "BSD-3-Clause" ]
permissive
julius506/pylearn2
93973fafb80ccd724c9ec16d6f0dcab0544acbcb
9134a6438e954cf5d8a1684ef8f5e2767549d6bc
refs/heads/master
2020-05-18T08:52:43.499030
2014-12-03T05:26:25
2014-12-03T05:26:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,764
py
""" Module for performing batch gradient methods. Technically, SGD and BGD both work with any batch size, but SGD has no line search functionality and is thus best suited to small batches, while BGD supports line searches and thuse works best with large batches. """ __authors__ = "Ian Goodfellow" __copyright__ = "Copyr...
[ "julius506@gmail.com" ]
julius506@gmail.com