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
461c6cec75ee834628870c31c6fd22e0cacb7714
eac51f9c87a522cb656b29ce7880e3216a6e58fa
/Sortedfunc.py
51f50dbf551dd9b9cf484b1afacb69ee2f465b2e
[]
no_license
awsanand2018/MyCodeFiles
947c8b56f67dea8d41418659b05e63b37912d7f5
7d1ed5da7711c31fbcce5d1ababfc12a8f16013f
refs/heads/master
2020-03-26T18:26:44.670337
2018-10-09T08:53:21
2018-10-09T08:53:21
145,213,342
0
1
null
null
null
null
UTF-8
Python
false
false
666
py
num_list=[34,3,53,0,10,1,-34,100,23] num_list1=[34,3,53,0,10,1,-34,100,23] asc_sorted_list=[] dsc_sorted_list=[] def asc_function(list_input): c=0 while list_input: min_value=min(list_input) x=list_input.pop(list_input.index(min_value)) asc_sorted_list.append(x) ...
[ "noreply@github.com" ]
awsanand2018.noreply@github.com
8f31d85510e5812f6fef5ea509e5d9ab779f7249
f8633675678bb57a1e9994a2287da0336e442acb
/DayanAbott1.2 - C_v.py
58955c98e012ffdc517a09f5342f42dbc5a70db3
[]
no_license
MEKogan/Theoretical-Neuroscience-Problems
3eb779be5a1a7851f62470cec3569b10b0a34aee
0da3a5710cf1954782d3fbc411ea83487975f2f9
refs/heads/main
2023-06-06T20:47:44.616732
2021-07-07T14:25:25
2021-07-07T14:25:25
383,820,606
0
0
null
null
null
null
UTF-8
Python
false
false
4,107
py
import numpy as np import scipy as sp import matplotlib.pyplot as plt n = 20 #Number of elements in tau_ref T = 10 #Length of trial, in s dt = .001 #minimum time step, in s t_j, t_p = np.meshgrid(np.arange(0,T,dt), np.arange(n)) #time steps of dt from 0 to T in meshgrid form, in s rate,y = np.meshgrid(np.zeros...
[ "noreply@github.com" ]
MEKogan.noreply@github.com
cd3a4c448b37604df838a0d2b35144b0fbb98eda
7629e40e79cb2ccb38a3902e5f39a757d3d0a6df
/video-generator/src/image/image_generator.py
be5d945681eaf00c1878e5f5fc74663323ddce76
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
toannhu96/product_video_ads
7700b0fe4723ff868699d6d37cbcb47339c49a6b
7cb59d33a0b4f3e2f113055ebecabe90856ddaf4
refs/heads/main
2023-07-31T20:08:27.182799
2021-09-13T03:50:58
2021-09-13T03:50:58
405,821,992
0
0
Apache-2.0
2021-09-13T03:36:22
2021-09-13T03:36:22
null
UTF-8
Python
false
false
4,967
py
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
[ "rgodoy@google.com" ]
rgodoy@google.com
0f1c7b775e18b0d091c6bd1c45c0f3b10c73d105
66ae262ef53ffd1c508217efd7217602a94f7f5a
/Course/Data structures and algorithms/2.Data structures/2.1 Arrays and Linked Lists/5.LinkedLists.py
26949a433f85f34218369c9fa585129947ebfa59
[ "MIT" ]
permissive
IP-Algorithmics/Udacity
8d8502eced3e2fa3c3b8cdfcbef59e0d3086198b
4349f4c12c838bcf3e53409f943ca8aacd58c94b
refs/heads/master
2022-08-03T02:42:31.357638
2020-05-29T19:33:12
2020-05-29T19:33:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,927
py
''' https://youtu.be/zxkpZrozDUk https://youtu.be/ZONGA5wmREI ''' ''' Implementing and traversing a linked list In this notebook we'll get some practice implementing a basic linked list—something like this: 2 -> 1 -> 4 -> 3 -> 5 -> None Note - This notebook contains a few audio walkthroughs of the code cells. If you ...
[ "iulian.octavian.preda@gmail.com" ]
iulian.octavian.preda@gmail.com
1b6688fd6a57724daa23f0329b9115745a80ec69
3499a6377146c03dbe7aa9af1ad2e1c6e215d6e7
/try-django/articles/migrations/0001_initial.py
3550049b5b34c412607502ff13d9315c6863d2b5
[]
no_license
Krishnamurtyp/django_tutorials
ce8cc213a141872b1f2ed01734fddc91d36c8854
2f7cfd0e8bff2430bd226cc8ef68bc46f1eee0a4
refs/heads/master
2023-09-04T00:55:26.776793
2021-10-10T12:18:38
2021-10-10T12:18:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
# Generated by Django 3.2.5 on 2021-10-04 19:21 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.BigAutoFie...
[ "mail@abogomolov.com" ]
mail@abogomolov.com
c279e12030d6850291b50ede25ac75ba3db5c7fd
24f664aa2344d4f5d5e7b048ac4e85231715c4c8
/experimental/dsmith/scrapheap/clsmith_run_cl_launcher.py
a8c4780ae8872e6567505e8112cc3a515308e79e
[]
no_license
speycode/clfuzz
79320655e879d1e0a06a481e8ec2e293c7c10db7
f2a96cf84a7971f70cb982c07b84207db407b3eb
refs/heads/master
2020-12-05T13:44:55.486419
2020-01-03T14:14:03
2020-01-03T14:15:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,786
py
#!/usr/bin/env python3 import os import re from argparse import ArgumentParser from collections import deque from tempfile import NamedTemporaryFile from time import strftime from typing import Tuple import progressbar from dsmith import clsmith from dsmith import db from dsmith.db import * from dsmith.lib import * f...
[ "chrisc.101@gmail.com" ]
chrisc.101@gmail.com
fbd532502d8fb9118d706e7f53e21c12bb10c1c6
097b83de5cb8a4448487a4a2049f2aacc6c8cda0
/Grupo1/Alumnos.py
1ebcba7901d1cf52d0ef420a1b6d60c2c3120d2d
[]
no_license
rpinedaec/pachaqtecH7
d136c8e14701b62998cf20c122ed8c22cb364db9
be83a12ee286e6f5f11a8d339d79359b3dba1fad
refs/heads/develop
2023-03-31T21:15:57.732980
2020-07-20T03:59:26
2020-07-20T03:59:26
278,874,498
0
7
null
2021-03-30T00:50:17
2020-07-11T14:10:29
Python
UTF-8
Python
false
false
5,961
py
from connection.conn import Connection import PySimpleGUI as sg from Semestres import Semestres from tabulate import tabulate import sys from termcolor import colored, cprint import gc # connection = Connection( # 'mongodb+srv://reyner:pachaqtec@pachaqtec.sdvq7.mongodb.net/pachaqtec?retryWrites=true&w=majori...
[ "rloza@pucp.pe" ]
rloza@pucp.pe
a2597854ab345457d084ca2e3bda09cd0e52988f
184107c757476e25d455e8614cdc048a91d3fbb7
/qa/rpc-tests/test_framework/script.py
3230f08ac4431cbb87eb589a82085371ba51905a
[ "MIT" ]
permissive
estamat/cryptotest
ed653787bdbababec590978ec892ecd7de595d49
24bce31b81e33e5eec259096b5a40322812c40cf
refs/heads/master
2020-05-02T11:41:08.003651
2019-03-27T06:59:00
2019-03-27T06:59:00
177,936,451
0
0
null
null
null
null
UTF-8
Python
false
false
24,008
py
# # script.py # # This file is modified from python-wikilib. # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # """Scripts Functionality to build scripts, as well as SignatureHash(). """ from __future__ import absolute_impo...
[ "44753202+Altcoinwiki@users.noreply.github.com" ]
44753202+Altcoinwiki@users.noreply.github.com
3ca239edda30f6e95c2398f5f8293930710fdb27
649b1885effdab8e898bbc0b500fcaf978d20522
/tasks.py
aa617e098cd4d4fb2b15fd3bb3c27a980d32dee2
[]
no_license
zxy1013/auto_timer
831776601f0f1c4276c10269c79026c1bad9931c
9a6de8e919d895abd3bb49a865b40b826fff24f6
refs/heads/master
2023-04-22T14:03:39.832821
2021-05-08T02:39:01
2021-05-08T02:39:01
365,398,652
0
0
null
null
null
null
UTF-8
Python
false
false
931
py
# -*-coding:utf-8-*- # @ Auth:zhao xy # @ Time:2021/5/7 20:48 # @ File:tasks.py # 创建celery task # 导入app对象 import time from app import app from celery import Celery # 创建celery对象,其中broker设置为app.config['CELERY_BROKER_URL'] celery = Celery(app.name, broker=app.config['CELERY_BROKER_URL'], backend=app.config['CELERY_RESU...
[ "1253141170@qq.com" ]
1253141170@qq.com
56d6d53b07810d51b36c4842c6af1666223e5ee3
d82ac08e029a340da546e6cfaf795519aca37177
/chapter_05_dimensionality_reduction/05_kernel_principal_component.py
609ded2a21b83c00d4f66aca64610875be219164
[]
no_license
CSwithJC/PythonMachineLearning
4409303c3f4d4177dc509c83e240d7a589b144a0
0c4508861e182a8eeacd4645fb93b51b698ece0f
refs/heads/master
2021-09-04T04:28:14.608662
2018-01-15T20:25:36
2018-01-15T20:25:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,810
py
import numpy as np import matplotlib.pyplot as plt from scipy.spatial.distance import pdist, squareform from scipy import exp from scipy.linalg import eigh from sklearn.datasets import make_moons from sklearn.datasets import make_circles from sklearn.decomposition import PCA from matplotlib.ticker import FormatStrFo...
[ "jean.mendez2@upr.edu" ]
jean.mendez2@upr.edu
ec3a4f6551deee04bcdac358fa630e8eeee8ad77
47f0ac3aab36d2f56c7a0683b4024b925967e7b7
/create_plot.py
0efdd14a9a91837a757019cffc589b06a08cf51f
[]
no_license
Joseph7e/Brain
b23f70f6af65e0ac82695248a8c15c18bdcc5342
d88e71b8e062a6a97eda2387ca56d371fae5cac2
refs/heads/master
2021-01-10T22:45:49.133412
2016-10-08T21:09:22
2016-10-08T21:09:22
70,356,411
1
1
null
null
null
null
UTF-8
Python
false
false
2,230
py
#!/usr/bin/python3 import matplotlib.pyplot as pyplot #node detail lists av_var_list = [] low_var_list = [] copy_number_list = [] length_low_list = [] length_high_list = [] with open('gene_stats/variation_table.xls', 'r') as v: for line in v.readlines(): if '#' in line or '%' in line: contin...
[ "joseph7e@brain.sr.unh.edu" ]
joseph7e@brain.sr.unh.edu
97ce640d8f9e55d51546c4a93f3597a7132318cf
33a747246dab38960c25520d5232d5a37dfe2a01
/starbucks/address_to_gecoords.py
d842315ca462c234888776d81feaa308e92f2f34
[]
no_license
Yxiaokuan/spider
6a79a950d170ea20dae13001697b9c214872f345
e51a398c7fdee1b1814c50c5a3121ce9a193e302
refs/heads/master
2022-04-02T16:01:18.104056
2020-02-11T03:49:44
2020-02-11T03:49:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,951
py
''' @author:KongWeiKun @file: address_to_gecoords.py @time: 18-1-2 下午5:55 @contact: 836242657@qq.com ''' import csv import json import random import re import requests import time ''' 地址转经纬度 ''' from urllib.request import quote #URL编码 def getLngLat(url,timeOutRetry=5): try: response = requests.get(url) ...
[ "kongwiki@163.com" ]
kongwiki@163.com
90f9330b3d27713f5534ec9e92191468c61d2b44
02fecf1730d9a5c68afcd5ae870c31189fa097c5
/project_101_dropbox.py
8f1ffac045a122b0bc3ef55562ec940752aa4c47
[]
no_license
saikeerthana-123/dropbox
d9570019bd9ba2854f47b59ea380e0c08166b241
b9086ca4f61e7150aea0a3b826edbf43e97169e2
refs/heads/main
2023-04-01T00:26:15.203970
2021-04-05T13:27:47
2021-04-05T13:27:47
354,843,884
0
0
null
null
null
null
UTF-8
Python
false
false
792
py
import dropbox import os class TransferData: def __init__(self, access_token): self.aT = access_token def upload_file(self, file_from, file_to): dbx = dropbox.Dropbox(self.access_token) fileName = os.path.split(file_from)[1] dropbox_file = '/CloudStorage/'+fileNam...
[ "noreply@github.com" ]
saikeerthana-123.noreply@github.com
922ebf912b8f213223b4db80d2fa8d9fcccf14fb
2f20b67079b4ce705fdc0cdbe0adf76a3eeb3fbf
/app.py
1641662517b0bbc659797b97958bc3f19bf480d5
[]
no_license
Dayanfreitas/BackpackProblem
5facc3f013a86f4e14e5719df29dca7abb03310c
9803af0226c978b39095e8df94092e42ff7a6e33
refs/heads/master
2023-04-18T17:33:41.275093
2021-04-25T21:05:00
2021-04-25T21:05:00
357,383,266
0
0
null
2021-04-25T21:05:01
2021-04-13T01:03:49
Python
UTF-8
Python
false
false
443
py
from model.DNA import DNA from Evaluator import Evaluator from Factory import Factory from Helper import Helper DNA_strand = [ DNA('Saco de dormir', 15, 15), DNA('Corda', 3, 7), DNA('Canivete', 2, 10), DNA('Tocha', 5, 5), DNA('Garrafa', 9, 8), DNA('Comida', 20, 17) ] factory = Factory(DNA...
[ "dayan.freitas@catolicasc.org.br" ]
dayan.freitas@catolicasc.org.br
d4532722bb553b31e15dc99ad0c6dca3d0b37e38
aab58b08392f1c089c7af916c6f68655c5895d8d
/Numpy/PandasBuiltIn.py
08affb79aa28e9faf681e390138e97b20159917c
[]
no_license
ParvathiRPai/python_DataScience
96b40850fd48f9ba2cba7351915ce59f75053db5
1a350f02d420c59b52d715ceecfe80304dd3bfcb
refs/heads/master
2020-05-19T20:50:41.819875
2019-05-11T06:31:44
2019-05-11T06:31:44
185,209,715
0
0
null
null
null
null
UTF-8
Python
false
false
821
py
#!/usr/bin/env python # coding: utf-8 # In[10]: import numpy as np # In[11]: import seaborn as sns # In[2]: import pandas as pd # In[3]: get_ipython().run_line_magic('matplotlib', 'inline') # In[4]: df1=pd.read_csv('df1', index_col=0) # In[5]: df1.head() # In[6]: df2=pd.read_csv('df2') df2.he...
[ "parvathirpai@outlook.com" ]
parvathirpai@outlook.com
e5df1c0b35f51feb421c1d558c4a25862bf036dd
cb2687f5e1f14a47ddeca268ea9139b11eb61440
/Assignment_7_2_importing_exploring.py
bea3d4de86736fe5881681c2625f9667296b4c75
[]
no_license
sutharshani/Webscraping-in-Python
f3bd6f80c568adbee4cffc0447f234f2794d9235
540f62e746eb72071e315a8aedea03a310adb012
refs/heads/main
2023-04-27T00:10:05.712028
2021-06-05T05:48:44
2021-06-05T05:48:44
352,489,184
0
0
null
null
null
null
UTF-8
Python
false
false
8,122
py
# File: Assignment_7_2_importing_exploring.py # Name: Shani Kumar # Date: 01/26/2020 # Course: DSC-540 - Data Preparation # Desc: Importing Data – # Create a function to take an empty list, iterate over the columns and create a full list of all the column # types for the dataset. Then load into ...
[ "noreply@github.com" ]
sutharshani.noreply@github.com
20b0ea9579d0886baeaed4bfa6287cb7360d5595
d7bc476f610d8b7d4abbeaf1545af4d2d827a7ef
/projeto/estoque/admin.py
62fe30997551edf3ee208581329a1eb027dab2eb
[]
no_license
CleitonSilvaT/ControleEstoque
0bcaa7168f93de124b10117aefeb636c492ac776
dd2c573fb53edb0904393c0897917b55f3afac13
refs/heads/master
2023-01-19T09:34:49.213727
2020-11-26T09:27:07
2020-11-26T09:27:07
260,329,018
0
0
null
null
null
null
UTF-8
Python
false
false
836
py
from django.contrib import admin from .models import EstoqueEntrada from .models import EstoqueSaida from .models import EstoqueItens # Register your models here. # admin.site.register(Estoque) # admin.site.register(EstoqueItens) class EstoqueItensInLine(admin.TabularInline): model = EstoqueItens extra = 0 ...
[ "cleitonsilvatavares@gmail.com" ]
cleitonsilvatavares@gmail.com
d85f353c4db0e01fb98731f43294df2b67d36da6
5beca294842cb28676dfc978c15f8ef9f10f2a84
/models/__init__.py
8bcb7d0a94bbcb683b9ed8b38b864d44154e33b3
[]
no_license
teddylew12/UQPINN_TF2
9caf6126c1ee7489ec5d2db10bcd44ede944a185
2673713f4616ae3a6052ab89ac20a32a566f180b
refs/heads/master
2022-10-10T13:03:51.662630
2020-06-10T17:35:45
2020-06-10T17:35:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
from .disp_stiff_hard_model import DISP_STIFF_UQPINN from .ODE_model import ODE_UQPINN
[ "theodore.k.lewitt@usc.edu" ]
theodore.k.lewitt@usc.edu
9be9b7ac663833cdc91a67a080f77c4d608d3c3f
764a416a97302c31067bde14ff76fdc74988b9d7
/virtual/lib/python3.6/site-packages/humanize/compat.py
ee79683d846bf76138f5dc2981e368dce74207ab
[ "MIT" ]
permissive
dracangelo/instaclone
2e2124ab6704d9184b0c8a98986eb368022edade
7f7ac1ea63df260e12d7ec8177b15ac3e9f0e750
refs/heads/master
2021-09-10T03:16:32.112802
2020-02-13T08:47:43
2020-02-13T08:47:43
238,876,855
0
1
null
2021-09-08T01:39:45
2020-02-07T08:33:35
Python
UTF-8
Python
false
false
119
py
import sys if sys.version_info < (3,): string_types = (basestring,) # noqa: F821 else: string_types = (str,)
[ "kelvinmbuguaw@gmail.com" ]
kelvinmbuguaw@gmail.com
8cf7209b6884d1a58920a1ea9c7dea54945b17fe
48053b5703865029fe03daf19897c7ffcf7f1b3b
/db/scripts/db_fix.py
46e04ff2c6709aac10d733d63bf0cb8167a40b47
[ "MIT", "Apache-2.0" ]
permissive
mrcdb/secured-verifier
2294bbe146f923b4500fd42498c7a0681025efad
d5ee0d5ec3e3f4132387aa4b47ca039023b69974
refs/heads/master
2021-08-26T04:42:06.748581
2016-11-11T11:08:20
2016-11-11T11:08:20
105,147,821
0
0
null
2017-09-28T12:53:00
2017-09-28T12:53:00
null
UTF-8
Python
false
false
1,882
py
#! /usr/bin/python # db_fix.py: tool to fix the database # # Copyright (C) 2014 Politecnico di Torino, Italy # TORSEC group -- http://security.polito.it # # Author: Roberto Sassu <roberto.sassu@polito.it> # # This library is free software; you can redistribute it and/or # modify it under the terms o...
[ "fulvio.valenza@polito.it" ]
fulvio.valenza@polito.it
6c6e12fa925c57be0fddd4074aa52393dca4eb69
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02787/s069996134.py
5242a0c98d9fb0fe819f9bb08a60a75b923ddb4e
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines sys.setrecursionlimit(10 ** 9) INF = 1 << 60 MOD = 1000000007 def main(): H, N, *AB = map(int, read().split()) magic = [0] * N for i, (a, b) in enumerate(zip(*[iter(AB)] * 2)): magic[i] = (a, b) d...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
505d9fd6acced78c6852d1acddf2ecf72dc39434
47c82bec808ebee8a5579de81ee7f5a45ab81db5
/api/mark.py
d9b463a9ae592f494ce2cd8ef36d701007a7606d
[ "MIT" ]
permissive
bitmaus/utopia
00d44f596a082e0f7ea5849e0dc5a4e8d5441c40
178bfcc76fe1e8b31868aa9d4c1bbdc6a0283ca9
refs/heads/master
2020-09-06T20:04:05.603015
2019-12-10T06:53:18
2019-12-10T06:53:18
220,534,899
2
0
null
null
null
null
UTF-8
Python
false
false
1,509
py
# pip install tornado import tornado.ioloop import tornado.web # pip install markdown import markdown import os from markdown.inlinepatterns import InlineProcessor from markdown.util import etree # for custom tags like "tab", add "<div class='tab'></div> # an oversimplified regex MYPATTERN = r'\*([^*]+)\*' NEWPATTER...
[ "v-masebo@microsoft.com" ]
v-masebo@microsoft.com
5ffaae4117bd4bf7e03132abd98fdc4fb41b7eb5
090b86c70dea42de7bc852e30207d2a3c6f60ec3
/flaskapp.py
bf2b548b68e3429b191d1d349018d5e49e21ddf4
[]
no_license
spacebared/stellarbuild
2dc48b996956f3668a548710066aa827ff406219
b88e1485fcc640bd127285e9a577cd054323b4df
refs/heads/master
2021-01-18T09:55:47.284721
2017-01-16T07:23:19
2017-01-16T07:23:19
79,092,651
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
#!/usr/bin/python from flask import Flask, render_template, request import os import generate import urllib2 import json app = Flask(__name__) @app.route("/", methods=["GET", "POST"] ) def home(): if request.method == "GET": return render_template('root.html') if request.method=="POST": pair=gener...
[ "noreply@github.com" ]
spacebared.noreply@github.com
b3391ed1ddf7e3ff1d1e526f45e1f80873ff81b5
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/python_all/39_11.py
2ab73f925b4bb8f6b56c6ea625257db987241936
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
2,960
py
Python – Replace words from Dictionary Given String, replace it’s words from lookup dictionary. > **Input** : test_str = ‘geekforgeeks best for geeks’, repl_dict = {“geeks” > : “all CS aspirants”} > **Output** : geekforgeeks best for all CS aspirants > **Explanation** : “geeks” word is replaced by l...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
a7d0c4e20dc5904c11057b80340bd0473a9e8386
ca7da2e65cac2be031bb0072a281fb450bf4e701
/eight/eight.py
ea2648ae961e51883f794fd8c4f6b5d1c7205ad6
[]
no_license
afroisalreadyinu/algorithms-etc
b38d8ae7b9b2d15a441d3c23b551ae20ce2287fa
916f1ed222ee24e56ce4728597bc73e7dd49d039
refs/heads/master
2022-12-26T07:09:18.223059
2020-10-08T11:04:46
2020-10-08T11:06:54
293,560,833
0
0
null
null
null
null
UTF-8
Python
false
false
4,246
py
import random import sys from collections import deque import copy SIZE = 3 DEFAULT_EMPTY_INDEX = (SIZE + 1)*(SIZE/2) FINAL = [list(range(i*SIZE, (i+1)*SIZE)) for i in range(SIZE)] class TreeNode: def __init__(self, key): self.key = key self.kids = [] def add_or_get_kid(self, key): fo...
[ "ulas.tuerkmen@gmail.com" ]
ulas.tuerkmen@gmail.com
91513fefe608f40805c943968ec466b05cc0e5f4
e6c944d9f03bf8f7d99f9ba0b50f1374c8903e54
/TestCancellationOfAddition_16534.py
2c1255fb0ee9a34ffc55382e89a0a0cfa75377d6
[]
no_license
ukolov-pavel/AIST
4fe5d113e1a8439d6f4a1858bf75b7c233b515c8
d0f44bfb057d7748851a79aaf9009be0ba12b757
refs/heads/master
2020-03-09T23:26:37.510021
2018-05-18T15:01:38
2018-05-18T15:01:38
115,633,839
0
0
null
2018-01-16T16:00:25
2017-12-28T15:03:28
Python
UTF-8
Python
false
false
3,916
py
# -*- coding: utf-8 -*- import pytest, allure, selenium, aistium from locators import donors_registry_locators as locators from base import BaseTest, Driver from additional_functions import get_data from donors_registry import DonorsModuleRegistryPage @pytest.allure.severity(pytest.allure.severity_level.CRITICA...
[ "noreply@github.com" ]
ukolov-pavel.noreply@github.com
39cd237334a038b1ff39b2dfba8cc9e2999a176c
49b57280c96a18a7e777cf333f16d91242c11e32
/visualizeData.py
3e4c166c926291231c05b4831d935ac1bef8e525
[]
no_license
cqiu32/TrackBot
c4d87a39542a4694414f262a816cd8c25dcd3b69
4f4decb122bde37a049786124f47cba91115bf3e
refs/heads/master
2021-04-15T16:34:15.660024
2018-03-25T20:53:13
2018-03-25T20:53:13
126,738,407
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
# -*- coding: utf-8 -*- """ Created on Wed Apr 27 20:00:14 2016 @author: badarim """ import numpy as np import utilities as util t = open('inputs/test01.txt'); f = open('training_data.txt'); data = np.loadtxt(f, delimiter = ','); util.plotData(data, 'Training data') data = np.loadtxt(t, delimiter = ','); util.plo...
[ "noreply@github.com" ]
cqiu32.noreply@github.com
b4fe770f4a895c8e71a2930295b5c5c898003e59
a04a62d99cde78fe75707f5e5377f0f806b4033e
/ch3/e6.py
6ef3b32de14e35931290a768be25b2a76a1e37cf
[]
no_license
pdavegit/simulation
61f8db5e9e133a148e451395b4b35f121254d78a
40098c910b2a3181e0f7340e067199a7b95b962f
refs/heads/master
2020-08-06T14:29:56.069618
2019-12-08T18:13:31
2019-12-08T18:13:31
213,006,481
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
import math import random def g(x): return x * (1 + x*x)**-2 def h(y): return g(1.0/y-1.0)/(y*y) def e6(iterations): s = 0 for i in range(iterations): r = random.random() s = s + h(r) return s/iterations # Value from WolframAlpha is 0.5 print(e6(1000000))
[ "prashant.dave.email@gmail.com" ]
prashant.dave.email@gmail.com
cc3bce0210aec5a6b37c5f661b815fede4f12a36
1b3f9157fc9703566673a1de54429e26b5c71875
/tests/hwsim/test_ap_ft.py
191fee8ccd292b48359c5dea74424ed5f9a6ce79
[ "BSD-3-Clause" ]
permissive
SKKU-ESLAB/ant-hostap
9cc8b2ed11e5287bdd69c1bc01eb95748f1495ea
3cd4c17ff4d4f1e265a150f88fec6a62e8c2ee01
refs/heads/master
2021-09-26T20:37:38.142347
2018-11-02T10:37:03
2018-11-02T10:37:03
104,550,566
0
0
null
null
null
null
UTF-8
Python
false
false
44,812
py
# Fast BSS Transition tests # Copyright (c) 2013-2015, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. from remotehost import remote_compatible import binascii import os import time import logging logger = logging.getLogger() import hwsim...
[ "redcarrottt@gmail.com" ]
redcarrottt@gmail.com
ba5965b9baf02a4b46b03c043fe9d31d0dc5e810
5ed2eb094c75da388af64247f77203d1fd825476
/venv/bin/rst2odt_prepstyles.py
c8c1e2ace582bddce4e18cc65da813a56e153039
[]
no_license
aitorgolla10/textmining
acee8a4c3359270c40f8354d61f276acf642875b
9a31a53e8751697864a1ead38218b873e6f4108e
refs/heads/master
2022-11-05T08:16:09.630957
2019-11-17T22:38:14
2019-11-17T22:38:14
215,301,062
1
2
null
2022-10-10T06:44:55
2019-10-15T13:06:06
Python
UTF-8
Python
false
false
1,736
py
#!/home/aitor/PycharmProjects/textmining/venv/bin/python # $Id: rst2odt_prepstyles.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ Fix a word-processor-generated styles.odt for odtwriter use: Drop page size specifica...
[ "agomez257@ikasle.ehu.eus" ]
agomez257@ikasle.ehu.eus
029b203d2855ea88a914710884650c4275ac4e46
eef8e20c653191bf6294102b234a0fca118b242b
/Docs/Handouts/sample_eval_server.py
a9669b2a37558e9a2f244b830e78998709d909a4
[]
no_license
nicolashww/CG3002-Dance-Dance-01
8d76d5899e97876f288dfe9b7d69500957d0962f
fa0159d4ee870f91288fb6a582518aba09df3347
refs/heads/master
2021-07-21T00:39:49.695502
2017-10-31T03:22:20
2017-10-31T03:22:20
108,950,555
0
0
null
2017-10-31T05:42:14
2017-10-31T05:42:14
null
UTF-8
Python
false
false
5,682
py
from tkinter import * import socket import sys import server_auth import random import time import threading import os import pandas as pd class server: def __init__(self, ip_addr, port_num): global action global action_set_time # init server self.auth = server_auth.server_auth() ...
[ "e0012616@u.nus.edu" ]
e0012616@u.nus.edu
4adb79e41d2e8d69e12cdbad0271e95920198fca
ea43c00f1f40af538e3fe65635ef4aa8488f29c7
/PycharmProjects/assignment/agents.py
b74852cb14339af319e48ede64aaa3545359915d
[]
no_license
ishrat134/python
13cae73e5f3a161a6a3342ce3d1545a26515f886
6432bb8b8a0b47cbd502c1caed20fde3330b2442
refs/heads/master
2022-11-09T17:12:10.426855
2020-06-21T11:26:46
2020-06-21T11:26:46
273,888,160
0
0
null
null
null
null
UTF-8
Python
false
false
1,519
py
import pandas as pd def agentAvailibility(agentData, selection_mode, selection_role): agents = [] df = pd.DataFrame(agentData) if selection_mode == "all_available": df1 = df[(df['is_available'] == "True")] i = 0 df3 = pd.DataFrame() for roles in df1['Roles']: re...
[ "ishratrmahajan@Apples-MacBook-Pro.local" ]
ishratrmahajan@Apples-MacBook-Pro.local
d8623f4624fd413559470e04029ceb65af97b499
d9095800a56e2bb48de9e20b901e5f8bc6356bc6
/Python/Lab4/challenge2_idle_detector.py
75871bc4f48f4e901fefece647295cf14b982eb8
[]
no_license
tajo0215/16LabPartnerships
c7cd7a879372a2343bfbe6c5eec52328132bae05
15b775eb79f289c6fef8049b76c6973d84f4d03a
refs/heads/main
2023-05-26T10:18:00.755142
2021-06-11T03:38:38
2021-06-11T03:38:38
364,988,318
1
2
null
null
null
null
UTF-8
Python
false
false
2,784
py
from ECE16Lib.Communication import Communication from ECE16Lib.CircularList import CircularList from matplotlib import pyplot as plt from time import time import numpy as np """ If the value is 100 greater than 2427 or 100 less, then it returns true to represent active state """ def checkIdle(value): return value...
[ "kanishkaroy0710@gmail.com" ]
kanishkaroy0710@gmail.com
0cb298185a5c4cfdbe1b0aaa35207797631ad1b4
0ad158a4b45ec7bc68c955d89ff37d1f59c5d429
/scripts/aa_analysis_w_iupred.py
2bdded64f4611deaf82e2e3dcf2708047eba1d1e
[]
no_license
ColdAdaptationScripts/cold_adaptation
7b78da636b9ec5413a5ee672c730e36ad58204c8
ef4dcdd89210d2af1954b6fb0fe9142163c2f0a0
refs/heads/master
2021-01-14T09:00:01.295226
2015-06-15T16:04:52
2015-06-15T16:04:52
37,476,426
2
1
null
2017-08-17T02:13:25
2015-06-15T16:15:47
Python
UTF-8
Python
false
false
4,445
py
from Bio import SeqIO from sqlalchemy import create_engine from Bio.SeqUtils.ProtParam import ProteinAnalysis from subprocess import check_output import os # set the environmental variable of IUPred os.environ['IUPred_PATH'] = "/home/yzolotarov/iupred" amino_acids = ['A', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'K', 'L', ...
[ "yevgen.zolotarov@mail.mcgill.ca" ]
yevgen.zolotarov@mail.mcgill.ca
7633108013a04f6e5ef0c4287c65002bd12e70c6
2c4f71012cda2f7c896ab0f08e06a5a678aadfb7
/FuncionesComp/func10.py
47317bf4ba39de3b06261b5b4bcf9b82571d953e
[]
no_license
rvrn2hdp/informatorio2020
6eb4a9e5f768bec4bc3f710699965491773851b7
96c2aa3b4fd85538ff8bf1254ea0bce449f407e2
refs/heads/master
2023-02-19T01:55:34.968318
2021-01-25T22:33:32
2021-01-25T22:33:32
332,902,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
'''Ejercicio 10: Precedencia del operador Escriba una función llamada precedencia que devuelve un número entero que representa la precedencia de un operador matemático. Una cadena que contiene el operador se pasará a la función como su único parámetro. Su función debe devolver 1 para + y -, 2 para * y /, y 3 para ˆ...
[ "ortizjuanarg@gmail.com" ]
ortizjuanarg@gmail.com
a5cc62bbcd61f788728da458ad2eeb0bd78592b3
f2dddfcc0044c68d45d05fa2384c0bb59eb56534
/2.11数组中常用的属性.py
8f1b47190ea3ffdc1aba3b0a8192ea03ce53b5ad
[]
no_license
JokerTongTong/Numpy_learn
796cc526e00e2348d6315720f000c6f5eb8249db
8cd7a658c239be203c9fa674c512b9ce47f3559c
refs/heads/master
2020-06-04T04:18:14.269327
2019-07-08T07:40:16
2019-07-08T07:40:16
191,870,094
1
2
null
null
null
null
UTF-8
Python
false
false
1,346
py
# 2.11数组中常用的属性 import numpy as np ''' 数组中常用的属性 1.shape 通过元组的形式返回数组每一维度元素的个数 2.dtype 返回数组的元素类型 3.ndim 返回数组的维度 4.size 返回数组元素的总数 5.itemsize 返回数组中的每个元素在内存中所占用的字节数 数组占用总字节 1)nbytes属性 2)itemsize * size 两个属性相乘 6.nbytes 返回数组所有元素一共在内存中所占用的字节数 7.T 返回一个原数组【行|列】转换后的数组 原数组为二维数组 -- T属性相当于transpose 原数组为一维数组 -- T属性...
[ "guoqiang19951212@163.com" ]
guoqiang19951212@163.com
64bacc9506ee8073571d4e6a9868841577b71d60
1f528631683f9d96c09dd4a4af243dd7213a4bd7
/thumbnail.py
6dffb24265b8649c5dce6c5d5183c7387998cc12
[]
no_license
wd5/artcontactmeru
4f8ede2a3f072c11ac0c8c8a74e0960382824537
2057f1b00db8eb808e0b4fb91a95fbe0a3e4f223
refs/heads/master
2020-12-30T14:55:54.067776
2009-11-12T07:30:00
2009-11-12T07:30:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,255
py
# -*- coding: utf-8 -*- import os, Image THUMBNAILS = 'thumbnails' SCALE_WIDTH = 'w' SCALE_HEIGHT = 'h' SCALE_BOTH = 'x' def scale(max_x, pair): x, y = pair new_y = (float(max_x) / x) * y return (int(max_x), int(new_y)) # Thumbnail filter based on code from # http://batiste.dosimple.ch/blog/2007-05-...
[ "ruslan.popov@gmail.com" ]
ruslan.popov@gmail.com
15c218589b4f903cada7d469128742f24234299d
98dccce37f452ea9afc71d6f509a09bbd7d4a73d
/h1ds/h1ds/version.py
5f2361b2d97e53f740467cd4bc3d3908a4575771
[ "MIT" ]
permissive
stellulata/h1ds
ac4f9b7d77c0a78a59467c32a0eb80ce103e7944
df2b3ae13c2dfabd9bf846e0905b0a0ce0ca2d54
refs/heads/master
2021-01-22T00:36:40.689600
2014-05-24T19:00:17
2014-05-24T19:00:17
16,189,640
1
1
null
null
null
null
UTF-8
Python
false
false
2,830
py
""" Current h1ds version constant plus version pretty-print method. Code copied from Fabric: https://github.com/bitprophet/fabric/raw/master/fabric/version.py This functionality is contained in its own module to prevent circular import problems with ``__init__.py`` (which is loaded by setup.py during installation,...
[ "david.pretty@anu.edu.au" ]
david.pretty@anu.edu.au
b818191531994619e2f64e216edd315786e81044
24927eac464cdb1bec665f1cb4bfee85728ec5e1
/entry_parser/balenciaga.py
ca5ea1f4cb43c5aaeece995f78a8da7d00683e75
[]
no_license
yingl/fashion-spider
d72ea8dfd4a49270fd3e64e7a507d6fcbaaf492c
0698768cd21d509ec335d7202a753be4f6ad378b
refs/heads/master
2021-01-01T18:14:17.848732
2017-09-27T08:44:47
2017-09-27T08:44:47
98,282,505
1
0
null
null
null
null
UTF-8
Python
false
false
541
py
""" Balenciaga """ # coding:utf-8 import sys sys.path.append('../') import util PREFIXES = ['www.balenciaga.cn'] def parse(driver, url): products = [] driver.get(url) elements = util.find_elements_by_css_selector(driver, 'a.item-display-image-container') for element in elements: products.appe...
[ "linying_43151@163.com" ]
linying_43151@163.com
af263a25de948b5b25b58ac7d00436867cd66cec
6fbbca77bfa06fd95c1b9d84379f31aa2c271d49
/nlsummary_utils/summarize/__init__.py
4e31d6f77a33517ad44cddcbeaa6fbac9a1ba4b8
[]
no_license
markliederbach/nlsummary-utils
61b4bd6059d8a4836da2f1a5a2180ac4ee4e7657
df0452267eec3fa8972ad25be30b920dd48d0ab6
refs/heads/master
2020-04-02T07:30:56.405380
2018-10-22T21:41:11
2018-10-22T21:41:11
154,200,207
0
0
null
2019-10-21T17:30:18
2018-10-22T19:06:14
Python
UTF-8
Python
false
false
2,726
py
import re import nltk import heapq class Summary: def __init__(self, text, language=None, max_sentence_length=30): self.text = text self.language = language or "english" self.max_sentence_length = max_sentence_length def get_summary(self, top_sentences=2): """ Provide...
[ "Mark.Liederbach@tdstelecom.com" ]
Mark.Liederbach@tdstelecom.com
60b22d53fbf1e5893ab6925972c16edebae8fa71
c6ae5d4c9b2a3acef09ee8254e1c1b67bc255b56
/okex/v5/billtype.py
1432ed9ee5152a20f37741012015561760391395
[ "MIT" ]
permissive
PattonChen/okex-py
ce36a4ded7cb051a7167e3ba9aeb88bc4e0417f3
cced7f1419da0940a2200ce66d62b4f9539949f2
refs/heads/main
2023-05-04T06:00:38.540463
2021-05-16T08:30:42
2021-05-16T08:30:42
367,833,565
1
0
MIT
2021-05-16T09:14:59
2021-05-16T09:14:59
null
UTF-8
Python
false
false
302
py
from enum import Enum class BillType(Enum): # 划转 TRANSFER = 1 # 交易 TRADE = 2 # 交割 DELIVERY = 3 # 强制换币 FORCE_SWAP = 4 # 强平 FORCED_LIQUIDATION = 5 # ... class BillSubType(Enum): LINEAR = "linear" INVERSE = "inverse" # ...
[ "1103870790@qq.com" ]
1103870790@qq.com
9ee6d085738441c5e04afe2534663c554139d8e8
fed0e4edf4df4b7a4abd52cbd1a0115243bdfcd0
/hello.py
11eec872b636492245036a4b82f4fe6982e46ba3
[]
no_license
TitanVA/hh_parser
62c5c9a87ab38a454c36d6ceba3dec1cd52f0ee3
0b51dc84ba5714de15629c8ec1d9da0dd9b2ecb1
refs/heads/master
2022-02-08T00:55:23.492072
2022-01-19T10:43:54
2022-01-19T10:43:54
236,823,784
0
1
null
null
null
null
UTF-8
Python
false
false
41
py
print("Hello World!") print("MR please")
[ "viktorbezai@gmail.com" ]
viktorbezai@gmail.com
3c23d5e63c1bf841488ae78f9c08cd61eccffa6e
4c0276ba91a35ec951b23e44941b00f0f453f4f4
/tech_project/bin/pyreverse
481f449fb8762d0a23ababea6ee552147c96d880
[ "MIT" ]
permissive
priyamshah112/Project-Descripton-Blog
5e63ff863c306a83c4cd5019fef379f683781a2e
8e01016c6be79776c4f5ca75563fa3daa839e39e
refs/heads/master
2020-04-27T18:41:04.416384
2019-03-14T19:48:41
2019-03-14T19:48:41
174,582,594
0
0
null
null
null
null
UTF-8
Python
false
false
273
#!/home/priyam/Project-Descripton-Blog/tech_project/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from pylint import run_pyreverse if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run_pyreverse())
[ "priyam.ds@somaiya.edu" ]
priyam.ds@somaiya.edu
7e57694591ccea12ade2aaeb5ac1524ce38461db
03dea3c0db7c8fafda71d23c3c2595f563ffb335
/SignalMC/python/AMSB_chargino900GeV_ctau1000cm_NoFilter_13TeV.py
d9b642184847712cc96ebbd952b587fe419eaacd
[]
no_license
Andersen98/DisappTrks
3952e9bf8ba270e2d88aa2e8d9ef805cf25dfc46
140a5efdc4c51a30e5fced6d34b7813876c2f2ee
refs/heads/master
2020-06-27T03:41:59.136790
2017-07-12T15:19:18
2017-07-12T15:19:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,706
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.PythiaUEZ2starSettings_cfi import * generator = cms.EDFilter("Pythia6GeneratorFilter", pythiaHepMCVerbosity = cms.untracked.bool(False), maxEventsToPrint = cms.untracked.int32(1), pythiaPylistVerbosity = cms.untracked.int32(3), filte...
[ "ahart@cern.ch" ]
ahart@cern.ch
7387594544abf24d14fe03730304610dfd2cb320
83714f63b17c46f9d002e74e43b9764019518ffa
/service/page/wechat/station.py
552339d939f88dafedca2a6937ef3283830ba059
[]
no_license
cash2one/DL-BIKE
db56f5b08dc9c690afecadbe80b22a6d8bacd92f
deced3892333f866525b46fa51ddbe0fa5ff8f58
refs/heads/master
2021-08-30T05:38:32.095432
2017-12-16T07:37:02
2017-12-16T07:37:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,120
py
# coding=utf-8 from tornado import gen from service.page.base import PageService class StationPageService(PageService): @gen.coroutine def get_station(self, conds, fields=None): """ 获得租赁点信息 :param conds: :param fields: 示例: conds = { "id": company_id ...
[ "panyuxin@moseeker.com" ]
panyuxin@moseeker.com
c33b1a9b9b8f0ee903bf5055430c997fe15c27aa
f75331a2d999dbaf526ad3817042c4a3a7a3b9ae
/Tutorial/thread1.py
aab9386ed8ca7b3f74c0673f3440ad8b6d001bd6
[]
no_license
Ken0327/Python
a51ca2dc1c88253159bffcb0e74781e6f814daa0
d3f8f23231ef0e5197b8b457720874f61529ac06
refs/heads/master
2020-05-22T11:41:27.006398
2020-05-02T07:47:35
2020-05-02T07:47:35
186,328,441
0
0
null
2019-05-26T01:59:52
2019-05-13T01:59:44
Python
UTF-8
Python
false
false
224
py
import threading def worker(num): """thread worker function""" print('Worker:', num) return threads = [] for i in range(5): t = threading.Thread(target=worker, args=(i,)) threads.append(t) t.start()
[ "dr.k0327@gmail.com" ]
dr.k0327@gmail.com
81b27a95d1df8125b4eeb7a6dc579656bf7802f0
61a204b5a51ff352f501004b9b2a5141238be1d7
/Omenat/omenat.py
ceae07d355e72586e4ac4a75214aa7fde123f306
[]
no_license
SampoPaukkonen/CSES-Algorithms
eb3c76fcdff21d6db776625405ff6b2c6bd51e93
1fc09a0481c740fce6218ea0cf9861bfc0d59bf8
refs/heads/master
2020-12-05T14:40:05.501578
2020-01-06T16:38:07
2020-01-06T16:38:07
232,141,411
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
def main(): n = int(input()) nums = [int(x) for x in input().split()] total_sum = sum(nums) def exhaust(i, sum_so_far): if (i == 0): return abs((total_sum - sum_so_far) - sum_so_far) return min(exhaust(i-1, sum_so_far+nums[i-1]), exhaust(i-1, sum_so_far)) print(exhaust(n...
[ "sampopaukkonen@localhost.localdomain" ]
sampopaukkonen@localhost.localdomain
0c3eb34ca123217876148bd6cbe34e978632e747
6657a43ee360177e578f67cf966e6aef5debda3c
/test/test_warning_api.py
7b7edb07cebe3c9a13d48a3b983ac64425eaa37f
[ "MIT" ]
permissive
NVE/python-varsom-avalanche-client
3cc8b9c366f566a99c6f309ccdfb477f73256659
c7787bf070d8ea91efd3a2a9e7782eedd4961528
refs/heads/master
2022-04-20T09:32:24.499284
2020-04-16T20:12:01
2020-04-16T20:12:01
256,318,660
0
0
null
null
null
null
UTF-8
Python
false
false
1,017
py
# coding: utf-8 """ Snøskredvarsel API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v5.0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import im...
[ "jorgen.kvalberg@gmail.com" ]
jorgen.kvalberg@gmail.com
b8cefab5509feb30987e49668738d7972c1a5b0b
4bc5a8aa032c125783265ba63832346162bd816c
/club_app/forms.py
2effd94e470002d39d6055ce286f178c7977d6cd
[]
no_license
gstearmit/DjangoJinjaBootrap4
ac6150cfbcbb1f9c2832b1e7fc38a3568f9ce4e1
7529f5d90edb04890b483032391e7a4f0803e13f
refs/heads/master
2022-04-07T06:04:04.326197
2020-02-29T10:50:26
2020-02-29T10:50:26
243,951,062
0
0
null
null
null
null
UTF-8
Python
false
false
9,083
py
from django.utils.html import format_html from django import forms from django.forms.models import BaseInlineFormSet from django_jinja_knockout.widgets import DisplayText, PrefillWidget, ForeignKeyGridWidget, MultipleKeyGridWidget from django_jinja_knockout.forms import ( RendererModelForm, WidgetInstancesMixin, D...
[ "questpc256@gmail.com" ]
questpc256@gmail.com
e58b131f07fa2a75b2676a80f3e936ed4481c7f7
6ae040579128d6dd90a12349d0d3935251a1c888
/static_website/models.py
63b1c660b5bccd5517a9c46f3814cf6ffca7bdae
[]
no_license
wkatbey/personal-website
018c3f033fecac1aa1030384b234c8c1ffb60fa0
f551b1f140d8d02511ffc13be2ffeb2a2362e0bb
refs/heads/master
2023-03-13T04:50:45.013377
2023-03-05T02:28:22
2023-03-05T02:28:22
184,034,612
0
0
null
2022-12-09T04:49:53
2019-04-29T08:49:27
Python
UTF-8
Python
false
false
393
py
from django.db import models class PageSectionText(models.Model): value = models.TextField() col_length = models.IntegerField() class PageSection(models.Model): heading = models.TextField() heading_icon = models.TextField() text = models.ManyToManyField(PageSectionText) class HomePage(models.Model): intro = mo...
[ "lunarxparallax@gmail.com" ]
lunarxparallax@gmail.com
961c58becc3bf6a9a9e1be3bd158eb47758d8de4
436da49d82df227fc2654c7e3c6acc72d6a6aad6
/hindi/migrations/0010_auto_20170801_1131.py
4be3c7fe387ce1731b1e77cf133e6677b9ffe53b
[]
no_license
mc639/Manavmitra
c91a2178f01427284d256ff152a4032f978e48a4
567d3b483d52e9285681916bfeda773a7b9ae0ed
refs/heads/master
2020-07-30T14:41:55.736634
2019-09-23T05:02:26
2019-09-23T05:02:26
210,266,603
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-08-01 11:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hindi', '0009_auto_20170801_1111'), ] operations = [ migrations.AlterField(...
[ "noreply@github.com" ]
mc639.noreply@github.com
1e0e692ce6ec7d7c5c94dae68627581085f24155
7abb86db144fa6aeb69fcff571496a5bb54f812a
/experiments_archived/leave_subject_out.py
b11c71c11d3a7b6235960065eb6dc26aea044020
[]
no_license
mamaj/shared-gpfa
821273899956bd5a288db46007b11d04e9c9b588
72ef34b3574b674d0d4b1c4006e6ea8f8bc0bb22
refs/heads/master
2022-12-04T17:33:17.538648
2020-08-26T01:10:55
2020-08-26T01:10:55
255,756,129
1
1
null
null
null
null
UTF-8
Python
false
false
1,253
py
import tensorflow as tf import tensorflow_probability as tfp import numpy as np import matplotlib.pyplot as plt import pandas as pd from tqdm import tqdm from sklearn.model_selection import KFold from shared_gpfa import SharedGpfa from ea_data_loader import load_ea_data import time import pickle import math tf.get_log...
[ "mamareza.e@gmail.com" ]
mamareza.e@gmail.com
34d8513c172a58e7d635c1cc20add3c5cfc710df
ffb4db36bf3959ed4a994f693c62d68092a91e63
/image_space/utils.py
405488ce25781aa69623a15abb722ef060c3b29d
[]
no_license
quasiben/image_solr
8bc25db1e47f19d83d5b51b89e250f8da2cd285b
cc2baafa170bdbfecc1a0450ffd041de485f19fa
refs/heads/master
2021-01-10T02:10:19.064770
2015-03-05T23:37:24
2015-03-05T23:37:24
31,621,600
2
1
null
2015-03-05T23:25:21
2015-03-03T21:12:28
JavaScript
UTF-8
Python
false
false
1,319
py
from image_space import app from image_space.models import Image, IMAGE_TABLE_NAME from image_space import db # Upload Handling def allowed_file(filename): return '.' in filename and \ filename.rsplit('.', 1)[1] in app.config['ALLOWED_EXTENSIONS'] # EXIF Processing def process_exif(exif_data, img_path...
[ "quasiben@gmail.com" ]
quasiben@gmail.com
b2dd51373cccb91f4deb163e655a49c0474caa3d
96f594328c678a4bb05d32b20f51cd51c77d6931
/Utility/NumpyFunctions.py
89a8a9f3480d8fdcd1aa8f46cb603554f9ad04b9
[]
no_license
LoganJF/CML_lib
b6bc7c0c96d305a50ddc3c816a338a8ee924cf02
4334da0755825e7d2c9f50cf1aab52dcbd81464b
refs/heads/master
2020-03-15T07:35:48.841464
2018-05-23T21:22:10
2018-05-23T21:22:10
132,031,686
0
0
null
null
null
null
UTF-8
Python
false
false
3,326
py
"""Purpose of this script is to hold functions used primarily with numpy arrays used in CML""" # Add some dimension to your life import numpy as np # I say numpy like 'lumpy', no I don't mean num-pie # -------> UTILITY FUNCTIONS FOR BEHAVIORAL EVENT MANIPULATIONS def append_fields(old_array, list_of_tuples_field_typ...
[ "loganfickling@gmail.com" ]
loganfickling@gmail.com
f1b93a801b706405ece1b35bcdcdbe5618322de2
372924b8d84c05b026ff2d54ef7c5142d2656e2e
/app/cors.py
def90bb3551cc8b421a4a866ea11f8c680868e50
[]
no_license
Tiberwood/proyecto1
bc842284dfb4b60da32f2c4ecab53b598b41d783
4146ab6eec95280972f5776fbb17e81068194090
refs/heads/master
2023-07-30T04:33:35.748506
2020-08-20T02:13:22
2020-08-20T02:13:22
278,509,278
0
0
null
2021-09-22T19:33:07
2020-07-10T01:29:12
Python
UTF-8
Python
false
false
155
py
class CorsMiddleware(object): def process_response(self, request, resp): response["Access-Control-Allow-Origin"] = "*" return response
[ "velero_chopin@MacBook-Pro-de-Belen.local" ]
velero_chopin@MacBook-Pro-de-Belen.local
1d80fe96db1c270109eea36af33536d1f681f4e0
0fa96aa3b1ee5cf752e20bad98ef02785c369225
/quaducom/quaducom/assess/assess_shell/mn_resistance/ecb_law_mn_diagram.py
971d0cc7a521f908aee65bce5fdb5716551192e2
[]
no_license
simvisage/simvisage
7a56ce0d13211513a86e3631db1b55dc62e85986
acb2a8eb8b6caa57c1e9e15f724a2b43843c7b10
refs/heads/master
2020-04-04T07:32:47.598636
2018-12-10T15:10:43
2018-12-10T15:10:43
3,583,342
0
3
null
null
null
null
UTF-8
Python
false
false
7,966
py
''' Created on Sep 4, 2012 @author: rch ''' from etsproxy.traits.api import \ HasTraits, Int, Instance, Property, cached_property, DelegatesTo, \ Event, Button from util.traits.editors.mpl_figure_editor import \ MPLFigureEditor from matplotlib.figure import \ Figure from etsproxy.traits.ui.api impor...
[ "rostislav.chudoba@rwth-aachen.de" ]
rostislav.chudoba@rwth-aachen.de
32947d0705476fc000360b6fd002966a4d7b6e6f
827eebd690d8781cacb3926881e3b5e7dfa59ced
/index/migrations/0019_userprofile_avatar.py
f124dc9ab43871b4359490c31c13a0f98ace39bf
[]
no_license
shadownetz/arena
91d1e8a97c4eae30b4c7513e3646d4f7338ffa92
8c507352055ef7ac8b7498684ad1273215d64715
refs/heads/master
2023-04-06T23:20:55.988807
2021-04-16T16:21:21
2021-04-16T16:21:21
192,147,942
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
# Generated by Django 2.2.1 on 2019-06-13 22:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('index', '0018_remove_userprofile_avatar'), ] operations = [ migrations.AddField( model_name='userprofile', name='ava...
[ "shadownetz@localhost.localdomain" ]
shadownetz@localhost.localdomain
795f936423965063c44b347705c53fd1c306692f
bf2aa4eab14a6a5347fe4af65cc4a37f512a465d
/people/migrations/0111_auto_20200530_0632.py
7320c7e9f7c6db4746b6c85c51fb4fef42dfea53
[]
no_license
drdavidknott/betterstart
0cda889f5cd6bb779f6d1fa75cb4f2ef08eb626c
59e2f8282b34b7c75e1e19e1cfa276b787118adf
refs/heads/master
2023-05-04T07:32:24.796488
2023-04-16T15:26:30
2023-04-16T15:26:30
173,626,906
0
0
null
2023-02-18T07:27:55
2019-03-03T20:37:01
Python
UTF-8
Python
false
false
623
py
# Generated by Django 3.0.3 on 2020-05-30 05:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('people', '0110_auto_20200530_0631'), ] operations = [ migrations.AlterField( model_name='site', name='password_reset...
[ "dkoysta@gmail.com" ]
dkoysta@gmail.com
e0619261dfff4b95e7c919d59207e57c8051ebce
b2767589d425d3c37c3d3d9fbcfa6e09fc5e7839
/Main.py
8e2570c69532cc9f87d51b826ae7550d38b97f76
[]
no_license
BigFlexLiu/Race_to_the_end
580f3b12cc3d5a90285651840c8a5472e9939237
9f4a8068961c984ee85a591149085bb9f9eb808f
refs/heads/master
2023-07-11T08:00:15.783523
2021-08-04T20:51:51
2021-08-04T20:51:51
392,821,710
0
0
null
null
null
null
UTF-8
Python
false
false
7,576
py
""" Jan 4, 2018 The main file for the game, not sure if there'll be more files Created by Shenjoe """ import pygame import time import random import sys pygame.init() black = (0, 0, 0) white = (255, 255, 255) red = (255, 0, 0) green = (0, 255, 0) blue = (0, 0, 255) gray = (180, 180, 180) car_width = 73 ...
[ "73266210+BigFlexLiu@users.noreply.github.com" ]
73266210+BigFlexLiu@users.noreply.github.com
585427d77563d77c16d827d2729df517d3925f1d
ea710bd809078e079a8cfd66b2b1390fb608f54d
/test1.py
db1a8533c39ee5d33d03dfaff438973074b57c73
[]
no_license
zq0324/zq
7a460ae13b9d035409ab6edf8588e1ca4c92f32d
62a159308076caf5ea97ffdf4b3260f4b82435c4
refs/heads/master
2020-06-24T12:25:05.611954
2020-04-29T06:07:32
2020-04-29T06:07:32
198,962,059
1
0
null
null
null
null
UTF-8
Python
false
false
267,582
py
# coding=utf-8 # @FileName: test1.py # @Author: ZhengQiang # Date: 2020/3/17 10:01 上午 import re b = b'POST /service/upload_pic.php?puid=139615558&chan=01&time=2020-03-17%2009:56:15&sequence=01 HTTP/1.1\r\nAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r\nReferer: http://192.168.1.149/testpic.php\r\nAc...
[ "p9p88ZLZkbHq5YB" ]
p9p88ZLZkbHq5YB
e66c0eafd98efd5eaba61523e197950c35f3dd27
99672205d51f6b21aee5ee554a0dd5b0ab07cf16
/tracer.py
748e04ffd0b51319c54162671ab614fef47636c1
[]
no_license
jukeks/FollowDatLight
48d8fd5c323b794d4887f52062dd0e5cd00dc824
477c7f683ef0580ddcb3ff42501ed0584c8f37bd
refs/heads/master
2020-12-25T18:20:34.538871
2013-02-03T12:05:05
2013-02-03T12:05:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,696
py
import colorsys from euclid import Vector3, Point3, Ray3, Line3, Plane from euclid import Sphere as Sphere3 from multiprocessing import Process from objects import * class Tracer(Process): def __init__(self, width, height, worker_id, worker_count, canvas, world, camera, recursion_depth, multisamp...
[ "jukkapekka.virtanen@gmail.com" ]
jukkapekka.virtanen@gmail.com
65ee34428a001611cc81d153a87842166b3b521d
9fbbfb3dd1990be27acfada1a91af980f474c8f1
/Chapter 07/rangesumBST.py
603891b6170f47a25ae103aebce7585ed63a2d86
[ "MIT" ]
permissive
bpbpublications/Python-Quick-Interview-Guide
61a48446f910144a050a5bb1515ad48567dc9481
ab4ff3e670b116a4db6b9e1f0ccba8424640704d
refs/heads/main
2023-04-08T12:18:14.605193
2021-04-13T09:18:30
2021-04-13T09:18:30
350,315,060
1
0
null
null
null
null
UTF-8
Python
false
false
1,665
py
from typing import List class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class BinTree: def printTree(self,root:TreeNode)->None: LevelList = [root] self.printLevel(LevelList) def printLevel(self,LevelList:...
[ "41231825+bpbpublications@users.noreply.github.com" ]
41231825+bpbpublications@users.noreply.github.com
e2e11ea69c4e7924998b15bb873a3ff24eb52dfe
abce6fa0083d17ef0db405bfceef2e48481634c4
/codeforces/dp/Flowers.py
f8039857a7fc99953fd98c964c6dc86bee22a04f
[]
no_license
chandrasekharpatra/programming
53586efd05d3e374770a32810b8fc27a576e316f
00034d53740600fff4fe42614126b0c660bc9280
refs/heads/master
2020-09-16T13:05:33.168721
2019-11-24T17:01:04
2019-11-24T17:01:04
223,779,143
0
0
null
null
null
null
UTF-8
Python
false
false
828
py
# https://codeforces.com/problemset/problem/474/D # # f(n) = f(n-k) + f(n-1) # MOD = 1000000007 SIZE = 100010 dp = [-1 for i in range(SIZE)] def flowers(n, k): if n == 0: return 1 if dp[n] != -1: return dp[n] temp = 0 if n >= k: temp = (flowers(n-k, k) % MOD) temp += (flow...
[ "chandrasekharpatra1@gmail.com" ]
chandrasekharpatra1@gmail.com
6d0ac1b874b42647dc1f9ae88bf71a781168b87f
e62d6ee0de22003a1458d99f5d2a73d85cbd4e6c
/algorithms.py
9e9b2d0bea8b9213276076dee09cace3c6075a19
[]
no_license
sarapple/AI-Search-Algorithms-Pure
ae34dca73c8bba42a872b117cb4688de37810ff6
ee0556a36fe1f6b35c1fb1c33288f35b50f8151d
refs/heads/master
2022-12-22T16:56:38.024966
2020-09-30T20:41:59
2020-09-30T20:41:59
227,245,818
0
0
null
2020-09-30T20:42:01
2019-12-11T01:03:04
Python
UTF-8
Python
false
false
6,639
py
from puzzle_state import PuzzleState from node import Node from utilities import Utilities import queue as q import resource import itertools class Algorithms: @staticmethod def search_wrapper( client_defined_expand, client_defined_goal_state_check, client_defined_hashed_state, client_defined_com...
[ "sarakwong1@gmail.com" ]
sarakwong1@gmail.com
fc15cd560d3f046123f961916546a3f7b77c6982
e30e4c62f4ca027c88ed091e6bc7a8e0a6a7f06d
/components test codes/detect_pulse.py
94af33d6ec29dfd1d9be2460e358508416fae17f
[]
no_license
ccgarces/DIYRobocar
d87937f6410e3d13ffa05c23ae69636ae8423f62
e61ef6519ef3ece2c47ab2233dadb7b951d30b99
refs/heads/master
2023-05-05T05:36:45.055219
2021-05-25T03:41:48
2021-05-25T03:41:48
122,472,742
0
0
null
null
null
null
UTF-8
Python
false
false
2,889
py
# -*- coding: utf-8 -*- """ Created on Sun Feb 11 21:23:15 2018 @author: ccgar """ # testing feedback 360 serving to get the steering angle or the car import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) pulse_starttime = time.time() pulse_endtime = pulse_starttime pulse_width = pulse_endtime -...
[ "noreply@github.com" ]
ccgarces.noreply@github.com
ee71398911054d72c2440fe57f222ff41fe9d50c
ebf997ac5814bd20a44646b6690de6913669f2e1
/plugins/btsync/resources/btsyncUI/freenas/urls.py
2b3a85c40b8dfa13a5dc5e20d84814d6cc7c5f00
[]
no_license
MadMarty/freenas-plugins-1
4add49728e07fb75191352902969a1ecea67b248
4940cd7cc39a26882ea7f4a61799bcea1cea6b34
refs/heads/master
2021-01-22T04:23:36.608602
2016-05-06T18:02:47
2016-05-06T18:02:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
from django.conf.urls import patterns, include, url urlpatterns = patterns('btsyncUI.freenas.views', url(r'^edit$', 'edit', name="btsync_edit"), url(r'^treemenu-icon$', 'treemenu_icon', name="treemenu_icon"), url(r'^_s/treemenu$', 'treemenu', name="treemenu"), url(r'^_s/start$', 'start', name="star...
[ "joshruehlig@gmail.com" ]
joshruehlig@gmail.com
4d3fa52ea925a9fb3c4d090b66218b5948c5d3b4
1e3a3294a2e03331f9c3dd503f0c843cf5bee233
/report_data/generate.py
a07a6707f6b8fad3046b05f46c8282b074ea4c49
[]
no_license
amith2208/QuickScan
69e8f80ef35949fb9182e476f943d7403515ffd3
d6b2eb0dd84d44246cfedbc0af2e8ccdc9fead8d
refs/heads/main
2023-08-23T21:42:53.745201
2021-10-10T07:40:05
2021-10-10T07:40:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,774
py
from threading import Thread import dominate #import pdfkit from dominate.tags import * #from PyPDF2 import PdfFileMerger, PdfFileReader import sys #from data import * from report_data.data import description from report_data.data import links from report_data.data import prevention_methods from report_data.data import...
[ "prajwalcbk38@gmail.com" ]
prajwalcbk38@gmail.com
20b6be7990c53a7581268c1002d933e95735033c
c8ff6492526834bf668999b4a4a1b391617adb86
/src/first_time.py
d722ef935ede91c8890118af31d09a52ccffbf0b
[]
no_license
bendaten/first
0ed4c73c328a5155138e5de8b8ba3f23050befe5
ac72acf1a1d060a105b0451e1cda9b886aa4c2af
refs/heads/master
2021-01-25T11:03:01.880344
2017-06-18T09:03:05
2017-06-18T09:03:05
93,906,557
0
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
from datetime import timedelta from dateutil.parser import parse class FirstTime(timedelta): """FirstTime adds restrictions to timedelta. It allows only positive values and a has a conversion method""" def __init__(self, hours=0, minutes=0, seconds=0): """ Constructor :param hours:...
[ "daniel.bendavid@adap.tv" ]
daniel.bendavid@adap.tv
c07f5f20db0ddcca9d3b07ecdb404f2a7e817bcb
1caf4418f3549567637f5e9893a445f52a38c6a0
/CmsAdmin/user_content/app/dtos/change_account_password_dto.py
29b05af87dbeee572f150ac6b43bf6236ec0b7b5
[]
no_license
Final-Game/social_network_backend
c601563e08c0fd7de72a614944f354ef8d2d31d8
8111787d1d20eb87733ae360d8baa745a65e2743
refs/heads/master
2023-03-04T21:12:43.147084
2021-02-23T03:45:22
2021-02-23T03:45:22
290,542,389
0
0
null
null
null
null
UTF-8
Python
false
false
560
py
from core.common import BaseApiException class ChangeAccountPasswordDto(object): old_password: str new_password: str def __init__(self, old_password: str, new_password: str) -> None: self.old_password = old_password self.new_password = new_password self.validate() def valida...
[ "kakavip.198.kaka@gmail.com" ]
kakavip.198.kaka@gmail.com
e76f03bb2f96d6ae3ce6a81c6e0b6e266df1d7cf
be62a62259025bf8ae6eae43ea1c0a0677239e36
/Fourth_day/exercices/resolution2/Banco.py
f00b71517f1cc80edce8b0578cd1169a256187d6
[]
no_license
MatheusGalhani/Python
128517c94cf01548190782b27cccbdb36a3ce918
5a232c70d7800f448b232640ce5d5c12f394a943
refs/heads/master
2021-12-01T00:58:47.594000
2021-11-26T19:52:28
2021-11-26T19:52:28
224,693,318
18
2
null
null
null
null
UTF-8
Python
false
false
408
py
class Banco: def __init__(self, agencia, gerente): """ Criando um construtor e inicializando as variaveis :param agencia: :param gerente: """ self.agencia = agencia self.gerente = gerente def __str__(self): """ Mensagem padrão da classe ...
[ "matheus.galhani@dxc.com" ]
matheus.galhani@dxc.com
232f046690d9f6130e0850886b3f080370df2f6f
3b12cbf24b7b0254ad65f8aba3314f2c75d3f6ac
/chnSegment.py
ac4659d638f229a237d1c3016fcdd0ae53806ec2
[]
no_license
Oohuo/GetBilibiliAllComment
d279fefb51865156a16c3ea4af48258097f0efe7
9c2af239b6979de07e52c70ae804f63c4704f685
refs/heads/master
2022-12-27T23:12:24.102481
2020-10-12T08:13:13
2020-10-12T08:13:13
294,630,838
0
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
# coding:utf-8 from collections import Counter from os import path import jieba jieba.load_userdict(path.join(path.dirname(__file__), 'userdict//dic.txt')) # 导入用户自定义词典 def word_segment(text): ''' 通过jieba进行分词并通过空格分隔,返回分词后的结果 ''' # 计算每个词出现的频率,并存入txt文件 jieba_word = jieba.cut(text, cut_all=False) ...
[ "zouhan@asiainfo.com" ]
zouhan@asiainfo.com
94525c4e1278e1b638d45df4e32589b8ea6e5133
3a891a79be468621aae43defd9a5516f9763f36e
/desktop/core/ext-py/pyasn1-0.1.8/test/codec/der/test_decoder.py
5f0bc0b8be193a1564d66e29a71c3e468855d6a1
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "Apache-2.0" ]
permissive
oyorooms/hue
b53eb87f805063a90f957fd2e1733f21406269aa
4082346ef8d5e6a8365b05752be41186840dc868
refs/heads/master
2020-04-15T20:31:56.931218
2019-01-09T19:02:21
2019-01-09T19:05:36
164,998,117
4
2
Apache-2.0
2019-01-10T05:47:36
2019-01-10T05:47:36
null
UTF-8
Python
false
false
963
py
from pyasn1.type import univ from pyasn1.codec.der import decoder from pyasn1.compat.octets import ints2octs from pyasn1.error import PyAsn1Error from sys import version_info if version_info[0:2] < (2, 7) or \ version_info[0:2] in ( (3, 0), (3, 1) ): try: import unittest2 as unittest except ImportErr...
[ "erickt@cloudera.com" ]
erickt@cloudera.com
62da7e7ad834064181e17740b6d6908c1a2d2afe
aa6b51e286f1ce1a728486b35e14a61ae292d17d
/Python Programs/Average.py
a74ca1889a3dea7289143c17d3dab5bb80eda784
[]
no_license
Gowrishankarvv/Hacktoberfest21-letshack
0f04f72e6eb9f9c27f9998eb5af9ea4572cd64d2
7b44be107ca16c4676e8606377c156037b89c687
refs/heads/main
2023-08-24T11:47:06.243943
2021-10-09T06:01:33
2021-10-09T06:01:33
414,051,131
3
1
null
2021-10-06T17:10:29
2021-10-06T03:05:27
Jupyter Notebook
UTF-8
Python
false
false
150
py
a = raw_input("Enter first number") b =raw_input("Enter second number") def average(a, b): return (a + b) / 2 m = average(a,b) print m print a
[ "noreply@github.com" ]
Gowrishankarvv.noreply@github.com
47e9e98fb07d00a3566e7282ccfcb34c32e58352
08c9f8ca4aa953be3c3c040c78148df9f9d464c0
/binary search tree(bst).py
9e4de2e3a3646bb28ce13d28ae000945de45af94
[]
no_license
vageesh-vag/data-structures
7750a49cc340f86d1bef68d0ddea5ce58c517425
2b455ab7b728a9858ad8f3ca4e23517c842424ba
refs/heads/main
2023-08-10T11:35:25.297150
2021-09-08T04:03:24
2021-09-08T04:03:24
309,274,786
0
0
null
null
null
null
UTF-8
Python
false
false
5,239
py
class node: def __init__(self): self.data=0 self.next=None self.prev=None class bst: def __init__(self): self.root=None def add(self): self.a=int(input('Enter data:')) self.new=node() self.new.data=self.a if self.root is None: ...
[ "noreply@github.com" ]
vageesh-vag.noreply@github.com
5192cca4e77259de02a4a24e8ff51ed496b5f1c5
4c94f00c35c055fed4c21f0a4302d7b48d5e691b
/hw3.py
e765256a5f9f4897b90b93d9a1b07fa18c0b637b
[]
no_license
kandmk/hw1
c035bfbd9dcf68dbaaf1751ede7233f1dd20645f
d3e7850d975c4b3e333d6a2ac6854d9f1ad17cdd
refs/heads/master
2020-03-18T23:17:58.828606
2018-06-21T17:27:10
2018-06-21T17:27:10
135,394,600
0
1
null
null
null
null
UTF-8
Python
false
false
4,012
py
def readNumber(line, index): number = 0 flag = 0 keta = 1 while index < len(line) and (line[index].isdigit() or line[index] == '.'): if line[index] == '.': flag = 1 else: number = number * 10 + int(line[index]) if flag == 1: keta *= 0.1...
[ "miku.rixia.0121@gmail.com" ]
miku.rixia.0121@gmail.com
3612b5e072cd20efa4dddf1146c44558b40b97d6
0258e0c9595406ceb3de32067aff776bc2a58fa8
/test1.py
8d7172f2fc5867f453187b5d1e84acd26e2737c4
[]
no_license
akromibn37/python_code
72c016c361b3ba2e04c83e1d1a703171b0bd8819
41d1a09f8ec8696e37ad83c1a0cb6506c7f0f4f6
refs/heads/master
2020-03-21T22:57:25.111642
2018-06-29T14:14:33
2018-06-29T14:14:33
139,157,588
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
s = "PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP-PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP-PPPP" c = s.rfind("-") print(c)
[ "apple@Apples-MacBook-Pro.local" ]
apple@Apples-MacBook-Pro.local
b3ac0a3390ef6660927064cd15d95012adf4bf95
8afb6b9c2ecf1b717301b2714cb62565d281b7d1
/server.py
8a302744c5fc7042d8d1868363b30554eac5846e
[]
no_license
sagutierrez10/D-N
f100bdad62881630abb3d4fd404301df33576b5b
71a962d92711f2868c1e480c36952bad1aa8dab0
refs/heads/master
2023-07-15T01:51:54.461506
2021-08-29T18:31:25
2021-08-29T18:31:25
401,099,951
0
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
from flask import Flask, render_template, request, redirect, url_for from ninja import Ninja from dojo import Dojo app = Flask(__name__) @app.route("/") def index(): dojos= Dojo.get_all() return render_template("ninjas.html", dojos=dojos) @app.route('/create', methods=['POST']) def create(): data = { ...
[ "susanag995@gmail.com" ]
susanag995@gmail.com
7042119118b6a349f705cc5540e5f3d55888e2fd
74eeeaeabf73f2909794eb767b5126460ce69d92
/object_detection2/modeling/onestage_heads/centernet_outputs.py
39e6afac159d44ec42cf2a8e27e537f1ab279705
[ "MIT" ]
permissive
seantangtao/wml
1bb9f699467e8c03143d8b92becb121db3717747
8fbf060088816cd1a366d7cbd5dfe1a0e00f8d79
refs/heads/master
2023-07-15T10:35:11.713990
2021-09-03T07:50:47
2021-09-03T07:50:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,294
py
# coding=utf-8 import tensorflow as tf import wml_tfutils as wmlt import wnn from basic_tftools import channel import functools import tfop import object_detection2.bboxes as odbox from object_detection2.standard_names import * import wmodule from .onestage_tools import * from object_detection2.datadef import * from ob...
[ "bluetornado@zju.edu.cn" ]
bluetornado@zju.edu.cn
40dbc8db421f0169754a1a634b4d9a9afecd14da
061bdeedc4c0be95c7d4cbc2f31c666b728e790e
/flask_mysql/burgers/server.py
92a50f2003c2f5e92093b8c9a5f898c0a5fe2ef8
[]
no_license
akawoa/python
49604157d296431c790bb4592eb8cbfffe42f225
3be5cdb7910f9cd6833d3648a6e3f8c5d93d3f49
refs/heads/master
2023-06-24T13:52:51.889428
2021-07-22T01:11:44
2021-07-22T01:11:44
383,282,161
1
1
null
null
null
null
UTF-8
Python
false
false
2,335
py
from flask_app import app,render_template,redirect,request,session from flask_app.controllers import burgers from mysqlconnection import connectToMySQL @app.route('/') def index(): return render_template("index.html") @app.route('/create',methods=['POST']) def create(): query = "INSERT INTO burgers (name,bu...
[ "72364753+akawoa@users.noreply.github.com" ]
72364753+akawoa@users.noreply.github.com
93b8f2a74c8eae204c3eff357a4132caa01d2157
9f103c2c952f21de1b42396eb1fb006aa09a4da2
/leak_R.py
756c1c7c485aae49c2b34eb51ed5b4a68e13c3f1
[]
no_license
loesZe/Side-Channel
11c52a135cbae03670938e44c6c4edc1c4bb74fb
f8d6f442798330015c1022955c777585174b6d89
refs/heads/master
2020-03-10T23:45:07.069360
2018-05-29T21:54:46
2018-05-29T21:54:46
129,647,419
0
0
null
null
null
null
UTF-8
Python
false
false
9,068
py
#!/usr/bin/python #################### # This script calculate the hypothetical leakage of the DES encryption of different inputs. # The leakage depends on the input but also on the round key. # For each input (m1, m2, .., m.) every sixet is considered one after the other. # 64 different values (k0 k1 k2 .. k65) are c...
[ "loise.zussa@gmail.com" ]
loise.zussa@gmail.com
cd611676720cb7809ae22a6dc6dfa15292483a52
84fb91b3574a9f9e712a66455836652fe255314f
/Code/04b_merge_sort.py
202716faccd8f019a4847f85ef9ffac7a30d4dea
[]
no_license
matiasvinicius/Algoritmos
c85220c4d81fa707b8b5027fbf0315921fc7f182
ab27d74bacf9ffc1e5a21489c8df643814bf405f
refs/heads/main
2023-06-19T21:42:15.674789
2021-07-16T03:43:27
2021-07-16T03:43:27
362,269,187
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
def merge(esq, dir): i, j = 0, 0 ordenados = list() while i < len(esq) and j < len(dir): if esq[i] <= dir[j]: ordenados.append(esq[i]) i += 1 else: ordenados.append(dir[j]) j += 1 if i < len(esq): ordenados += esq[i:] ...
[ "45612047+matiasvinicius@users.noreply.github.com" ]
45612047+matiasvinicius@users.noreply.github.com
59b36e6f70e181077d5021b948a4ee6e25aa097e
8872e82cd8654a01e3369f8fed44eba5603a0c47
/jsilasant_project/manage.py
51f20663eafe8ffb04301f3ff326cf6af21174d9
[]
no_license
Jsilasant/django_blog
d563cdce9a3ba110e186dcded90d39d3ab81910b
70d78e95d27a9404bcb8930f83622e5a6ebbe5b3
refs/heads/master
2022-12-22T00:12:17.966948
2020-09-18T09:07:24
2020-09-18T09:07:24
292,794,226
0
0
null
null
null
null
UTF-8
Python
false
false
673
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'jsilasant_project.settings') try: from django.core.management import execute_from_command_line e...
[ "36745524+Rekalous@users.noreply.github.com" ]
36745524+Rekalous@users.noreply.github.com
312b1e2bce53e43eed3cdd5faca54bc8a98d4c90
ce9d90ac5dfd61cc1d3ec57378186a4895323abb
/tests/filters/helpers.py
0bd99d08eb31da8ac72380689341d36b801acad4
[ "Apache-2.0" ]
permissive
min-a-youn/plaso
61ee7f280c471a2e9fcc3407445ddd4f3c5eb125
082ff564872f7dd1d0d5d68cca23b3f7b8cdedcb
refs/heads/master
2020-09-20T22:07:34.631095
2019-08-28T06:06:48
2019-08-28T06:06:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,455
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the event filter helper functions and classes.""" from __future__ import unicode_literals import unittest from plaso.filters import helpers from tests import test_lib as shared_test_lib class CopyValueToDateTimeTest(shared_test_lib.BaseTestCase): """Te...
[ "joachim.metz@gmail.com" ]
joachim.metz@gmail.com
cea632a0a8b982b9d16a62113fef8b1004a002d0
a99440e707629c9dcab96e55cd9e14b57dde64aa
/hw0/run.py
c6aca958c87c800b5ca62aa0e06c068f06462559
[]
no_license
b01901143/MLDS2017
03dc9816c795a983029a39ccd75905524e410c40
52575229bbcc48cf1c196e797e7beec613369309
refs/heads/master
2021-09-25T17:02:57.759109
2017-09-04T14:43:14
2017-09-04T14:43:14
154,452,322
0
0
null
null
null
null
UTF-8
Python
false
false
3,651
py
import os import csv import struct import numpy as np import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data #download data and unzip them mnist = input_data.read_data_sets("./data/", one_hot=True) #==========mnist info========== #mnist.train.images/labels, mnist.test.images/labels are arra...
[ "r05943135@ntu.edu.tw" ]
r05943135@ntu.edu.tw
d15fd0a6853b2f38a462ef37d462539753a53184
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_089/ch12_2020_03_09_12_58_17_378201.py
a48a67c58fe14187f66e923fd33e0299ab4d37f9
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
74
py
def resolve_equacao_1o_grau(x): f= a*x+b a*x+b=0 return f
[ "you@example.com" ]
you@example.com
5a990b82199ff52453e747acb3f7e6779b67e11c
bbab2f2e6cb9fd33bf633528e176639d7a5994c7
/tests/test_skeleton.py
a81cc2b1c5bb79bad3505d1b5549f6f315f2eeec
[ "MIT" ]
permissive
a8/discovergy
a96a6fbf36a8f3499c188a5165db9a09c15143c5
7766a6eb74e8c3cf9b09dfdac21d79b31f5922e5
refs/heads/master
2022-04-16T03:27:01.959196
2020-02-24T22:00:50
2020-02-24T22:00:50
234,806,177
4
1
null
null
null
null
UTF-8
Python
false
false
194
py
# -*- coding: utf-8 -*- import pytest import discovergy __author__ = "Frank Becker <fb@alien8.de>" __copyright__ = "Frank Becker" __license__ = "mit" def test_nop(): assert True == True
[ "fb@alien8.de" ]
fb@alien8.de
db90103be84bf22c955c484c6dca4719b5fe48ea
ba83e59e5ef968c14c3bafdd8fabdc2ae80427ce
/ISS_overhead/ISS_overhead.py
bfc607ba76eb8d4dfd5eb944f28e6f722cfd7624
[]
no_license
aingram702/ISS-International-Space-Station-Locator
567ac6b16e5fb18aed7b15dfb7d00d85be6366f8
5fc31a7b1aa29bb30efee2b9b13894cc3382d573
refs/heads/master
2020-06-03T22:25:17.367136
2019-06-13T12:11:48
2019-06-13T12:11:48
191,756,193
0
0
null
null
null
null
UTF-8
Python
false
false
1,131
py
#!/bin/python3 import json import time import turtle import urllib.request url = 'http://api.open-notify.org/iss-now.json' response = urllib.request.urlopen(url) result = json.loads(response.read()) location = result['iss_position'] lat = location['latitude'] lon = location['longitude'] print('Latitude...
[ "noreply@github.com" ]
aingram702.noreply@github.com
7391f96cccf5955c47fc65310e753bd626d74a11
4ecce9af282ddf98bf88dedfd97b6b5b4ae09dcc
/sistema/rfid/core/admin.py
8fc715ff7b61d9ddcaee5411ac7e8ef0cd22920e
[]
no_license
silviolleite/rfid
f32b3ef61624d955841a6e5f99b701e412dffa04
4925ce868d5b1e1a549da332f4391ef5d84eecef
refs/heads/master
2020-04-03T04:36:18.801714
2018-11-15T18:08:27
2018-11-15T18:08:27
155,018,520
0
0
null
null
null
null
UTF-8
Python
false
false
1,495
py
from django.contrib import admin from rfid.core.models import Tag, Access_log, User, Place admin.site.site_header = 'Sistema de Controle RFID' admin.site.site_title = "Painel Administrativo" admin.site.index_title = "Bem vindo ao sistema de controle RFID" class UserAdmin(admin.ModelAdmin): list_display = ('name...
[ "silviolleite@gmail.com" ]
silviolleite@gmail.com
23c9da32b69869238960f66a017f70336fff4f0d
41c7c5d62c09a393b88b232134bc948325931102
/reading_pictures.py
c8f2bc381ff40ceb134f74e4957e70f8f557aded
[]
no_license
livingbody/paddlehubweixinbox
a56e556fedbca80114e5f9c6f76329256690f665
cb881970ab309a1e084a7b1057e42352f3a083c0
refs/heads/master
2023-03-26T22:29:21.195092
2020-09-26T13:43:29
2020-09-26T13:43:29
298,594,780
14
1
null
2021-03-09T02:52:07
2020-09-25T14:23:14
HTML
UTF-8
Python
false
false
3,251
py
# coding:utf-8 # author: Livingbody # date: 2020.05.06 from flask import Flask, render_template, request, jsonify, Response from werkzeug.utils import secure_filename import os import requests import paddlehub as hub import cv2 import time from flask import Blueprint, render_template import requests impor...
[ "155203340@qq.com" ]
155203340@qq.com
ee8bbcc70a5cc065517522e8d1de01ba406fb8cf
828afc40037f3d8988ab61f3def393dd21d59498
/koren_master/scheduler/api_test.py
ff4a910f33973fd9a73d177342cf1624fb91881f
[]
no_license
Ji-Ha/Network-Aware-Placement-System-for-URLLC-service-in-Edge-cloud-environment
c11ff5bbd7a2fa2a3add4bd972f09d87978ef9e3
08c91064e98a0da9e8ab0f805e46ed093be204dd
refs/heads/master
2023-01-14T16:36:54.404920
2020-11-20T07:48:15
2020-11-20T07:48:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
590
py
import requests import json network_status = requests.get('http://10.20.12.83:4000/api/rtt/'+"10.20.12.83") # logger.info(network_status.json()) # filtering by rtt #print(network_status.json()) #print(type(network_status.json)) # json = json.loads(network_status.json()) rtt = dict() bdw = dict() for network in net...
[ "djatkdgus789@gmail.com" ]
djatkdgus789@gmail.com
bbd2ec9b046fce3a4eb1ef8ac8aa2fcd6687d9d1
9aaf10e9a1254c297f01f12ec3ef648c51ff3a11
/Iniciantes/1178.py
cee4f466a75f3f401b5212ec31e8daece9b6e490
[]
no_license
FelipeGabrielAmado/Uri-Problems
4f790852110ad1a65169ab40de54879024528ffa
53f8ae6e2ef94f8b101f2ebadce99e71fb0bed28
refs/heads/master
2022-02-21T05:39:48.057510
2019-09-28T11:36:36
2019-09-28T11:36:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
A = float(input()) V = [] for x in range(0,100): V.append(A) print('N[{}] = {:0.4f}'.format(x, A)) A -= A/2
[ "felipegabrielamado@gmail.com" ]
felipegabrielamado@gmail.com
612f28675276f7d89b2ecc3786da5525494c3549
3dfc1b17cc79187a2a3c5c24664d7ecbaf088596
/ccmProject/myapp/migrations/0004_delete_employee.py
289550b388160c1d526049c997b39453b5f9ac36
[]
no_license
haha547/ccmproject
12e54dd5856e9f24162ad5e7d38d191d037d4612
f14dded3a20a48a99f77504347dec778ff1b63e7
refs/heads/master
2022-10-08T14:26:29.738704
2018-05-22T08:23:14
2018-05-22T08:23:14
134,064,351
0
1
null
2022-10-05T06:35:51
2018-05-19T13:27:50
Python
UTF-8
Python
false
false
295
py
# Generated by Django 2.0.5 on 2018-05-21 12:11 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myapp', '0003_auto_20180519_2216'), ] operations = [ migrations.DeleteModel( name='Employee', ), ]
[ "howard19970613@gmail.com" ]
howard19970613@gmail.com
2cae2a5d7197ed5182a6d2cffdbfef61f3c7dfef
6cc337c1d7c0c7379ecd3d919ed7d847846c204e
/python/collections/defaultdict_tutorial.py
48294edc30f1c6fb74af3c788ea5b0d5b030057f
[]
no_license
YiFeiZhang2/HackerRank
c51766832bf00fbfcba2da2edb9c99f01646c9b4
52012cb855959660e59c2fa206b3fcc744495846
refs/heads/master
2021-01-21T15:04:38.917614
2017-08-01T23:04:06
2017-08-01T23:04:06
59,052,187
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
#!/usr/local/bin/python3 from collections import defaultdict word_tracker = defaultdict(list) n, m = map(int, input().strip().split(" ")) for i in range(n): word_tracker[input()].append(i+1) for i in range(m): a = input() if len(word_tracker[a]) > 0: print(' '.join(map(str, word_tracker[a])...
[ "richardzhang97@gmail.com" ]
richardzhang97@gmail.com
4097dc4928226ce67c6d923fff671e5ca2b9b7d3
e20ed90b9be7a0bcdc1603929d65b2375a224bf6
/generated-libraries/python/netapp/job/job_private_delete_iter_key_td.py
7dde8422f159e87e74cc57255dc0b70f0ea0cce6
[ "MIT" ]
permissive
radekg/netapp-ontap-lib-gen
530ec3248cff5ead37dc2aa47ced300b7585361b
6445ebb071ec147ea82a486fbe9f094c56c5c40d
refs/heads/master
2016-09-06T17:41:23.263133
2015-01-14T17:40:46
2015-01-14T17:40:46
29,256,898
2
0
null
null
null
null
UTF-8
Python
false
false
1,520
py
from netapp.netapp_object import NetAppObject class JobPrivateDeleteIterKeyTd(NetAppObject): """ Key typedef for table jm_local_jobs_table_remove """ _key_2 = None @property def key_2(self): """ Field vserver """ return self._key_2 @key_2.setter def ...
[ "radek@gruchalski.com" ]
radek@gruchalski.com
cb6b4e0e6d23842ffd173deb85ba367bdbd28c6f
e3926c54985f042c193905e06f32148037f094d6
/simulator/scripts/tier2s.py
ffa35918268688955c4b5c2a435c14a58c9dd03b
[]
no_license
RS1999ent/protocol-evolvability
8c398ee88c7ddc13f082bb20134fe804c4b0c24b
f406acbbabc7a34a3f8c0e4769f62f4e1e4c4f7b
refs/heads/master
2021-01-17T09:34:49.251338
2015-09-04T13:39:25
2015-09-04T13:39:25
35,635,209
0
0
null
null
null
null
UTF-8
Python
false
false
1,505
py
from sets import Set import sys f = open(sys.argv[1], 'r') nodes = Set() providers = {} customers = {} peers = {} numProviders = {} numCustomers = {} numPeers = {} def addNode(n): nodes.add(n) if n not in providers: providers[n] = [] if n not in customers: customers[n] = [] if n not i...
[ "tranlam@wisc.edu" ]
tranlam@wisc.edu
0c33b6b087134d2d154945f70cb86c1e18641dbc
f78bf2e853fd07aba9fb64617e7a3f6d169a5854
/MANUFACTURER.py
a8e8270ea55eb738a2c8c8d40e3236483b84a9e1
[]
no_license
daemonluo/ua-parser-python
b321e4581300bd6d59912a9e5e620d7d6637722a
a92fc61e44a11f24c834c754812425be2df44c40
refs/heads/master
2021-06-11T22:51:12.775335
2016-09-01T14:04:56
2016-09-01T14:04:56
67,136,467
1
0
null
null
null
null
UTF-8
Python
false
false
115,269
py
#coding=utf8 import re STRINGS_SAMSUNG = 'Samsung', STRINGS_SHARP = 'Sharp', STRINGS_SONY_ERICSSON = 'Sony Ericsson', STRINGS_MOTOROLA = 'Motorola', STRINGS_LG = 'LG', STRINGS_HUAWEI = 'Huawei', STRINGS_HTC = 'HTC', STRINGS_COOLPAD = 'Coolpad', STRINGS_ASUS = 'Asus', STRINGS_ACER = 'Acer'; STRINGS_BASED = ' based devi...
[ "woshiluolaifeng@hotmail.com" ]
woshiluolaifeng@hotmail.com
ebd1560c2026911a93809b748f87f9787212baa1
0417659607e56b674feaa201e5d0be2b666e3c4c
/blog/views.py
f49fb1f368e81c4df61e25a134cffcd2acec229b
[]
no_license
verastarlife/blog-django
9b4ff0001b78e527880d872cb628b3cfbfe49b4b
81b8b1cbfe49105ca9f528544849df34eadc5623
refs/heads/main
2023-01-21T13:06:56.191074
2020-11-29T22:04:16
2020-11-29T22:04:16
317,036,266
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
from django.shortcuts import render, get_object_or_404 from .models import Blog def allblogs(request): blogs = Blog.objects return render(request, 'blog/allblogs.html', {'blogs':blogs}) def detail(request, blog_id): detailblog = get_object_or_404(Blog, pk=blog_id) return render(request, 'blog/detail.h...
[ "verastarlife@gmail.com" ]
verastarlife@gmail.com
9a9aa7031ea30e35aab2b33f2280e8bd760eb381
f09ef8957e068d178408898bfb10720d557acf06
/sentiment.py
a7e28a98083430d56af013bd2b87ff205365bd91
[]
no_license
siddoshi93/Sentiment-Analysis-of-IMDB-movie-reviews
a0269b6bb10debaaaad2a3808e4de92be02146c0
ee52d601693e52f66d4d950ecdce190d2688e552
refs/heads/master
2020-04-19T13:05:25.057672
2016-08-27T21:19:07
2016-08-27T21:19:07
66,521,795
0
0
null
null
null
null
UTF-8
Python
false
false
9,269
py
import sys import collections import sklearn.naive_bayes import sklearn.linear_model import nltk import random random.seed(0) from gensim.models.doc2vec import LabeledSentence, Doc2Vec #nltk.download("stopwords") # Download the stop words from nltk import warnings warnings.filterwarnings("ignore") # User in...
[ "siddhant@Siddhants-MacBook-Pro.local" ]
siddhant@Siddhants-MacBook-Pro.local
7bb4179aa4bbbb1f06631d13ab17c3564a767a29
3e7b2ebb64e9e324ce47d19def21ae62cc1e56a6
/My Thought/reverse a string.py
296417613cb9272f294f6413f7eee55df1ccb0ce
[]
no_license
shuvo14051/python-data-algo
9b6622d9260e95ca9ffabd39b02996f13bdf20d1
8f66ff6f2bd88a0ae48dac72e4ea6c5382a836ec
refs/heads/master
2023-02-03T03:04:01.183093
2020-12-13T10:13:15
2020-12-13T10:13:15
274,106,480
0
0
null
2020-07-05T06:33:28
2020-06-22T10:24:05
Python
UTF-8
Python
false
false
188
py
# this is a complete pythonnic way # print(a[::-1]) a = "Shuvo" li = [] for i in a: li.append(i) reverse = '' for i in range(len(li)-1,-1,-1): reverse += li[i] print(reverse)
[ "shuvo1137017@gmail.com" ]
shuvo1137017@gmail.com
c1a9c9d7328644c97214524d3fff4f34452756db
1981662a960415ae0ed269224abd47678a8d2ebc
/backend/app/__init__.py
925157f8900ea6ddffba6cf5a2182f1dd4cdc793
[]
no_license
haydenhw/team-calendar
6bb52c65eeb7dc0cb387868b369a3a95fd057ef4
79d9e10213892995e877abb85f49e0af99d27540
refs/heads/master
2020-05-24T14:37:44.295882
2019-05-19T00:54:09
2019-05-19T00:54:09
187,312,856
0
1
null
2019-05-18T22:22:58
2019-05-18T04:12:11
JavaScript
UTF-8
Python
false
false
302
py
from flask import Flask from flask_cors import CORS from flask_sqlalchemy import SQLAlchemy from config import Config app = Flask(__name__) app.config.from_object(Config) CORS(app, resources={r"/rest/*": {"origins": "*"}}) db = SQLAlchemy(app) db.app = app db.init_app(app) from app import routes
[ "akshaydon93@gmail.com" ]
akshaydon93@gmail.com