blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
4b5c57a1a97e7bd1e2d6a0e5181c1f4ccb65ba5a
4188f3ad34f69e7b2689322a5992014ed9aeed22
/csv_demo.py
cac442d489d0aaa68801ab4997638cfef1cc9a94
[]
no_license
killertilapia/ds-coe-training-2019
283f1e08cca0e179c5e9caa7be4e73fdf447b4a0
119217e0754aef5bc1a18b522432901e8dd0963f
refs/heads/master
2020-09-27T08:09:20.155985
2019-12-07T08:00:22
2019-12-07T08:00:22
226,471,789
0
0
null
null
null
null
UTF-8
Python
false
false
701
py
import os import csv # this is new def main(): src_path = os.path.join(os.getcwd(), 'ds', 'ds_parts_inductors.csv') write_path = os.path.join(os.getcwd(), 'ds', 'clean_parts.csv') # read csv with open(src_path, mode='r') as src_csv: with open(write_path, mode='w', encoding='utf-8') as write_f...
[ "killer.tilapia@gmail.com" ]
killer.tilapia@gmail.com
5eb21b17e0ce8d13350d66f54625e94bca759c7b
9441e20e3f30b64f332436733c0f6bc9b3c876d6
/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/__init__.py
c5e4c1a68515f712749a478e28939331d372378a
[]
no_license
zouluclara/cartridge
83d1cb6a0ff46881422c7cbc5581d6f82865a5db
d82d463223fd412ac8b1e8c5ea3c53243d8d124e
refs/heads/master
2021-01-16T18:00:55.091609
2014-02-26T14:25:54
2014-02-26T14:25:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
23
py
__version__ = "3.0.4"
[ "zouluclara@gmail.com" ]
zouluclara@gmail.com
ac6b9fe528fd1ff5e26e7278bd4b3878b9d4d877
f07d9d72721c24b4e79bd7847ddb0871c9d04023
/source/webapp/admin.py
b6b4f28e4e9baffb1222239121dc0d90abd3cdc5
[]
no_license
RagdIR/exam_end
57f330c5b885b5dbf86bb9159302ceabf33530af
06df2db37dc7ec7a04da0288fd6b4d11fcb6232b
refs/heads/main
2023-02-18T22:52:15.604416
2021-01-23T14:42:48
2021-01-23T14:42:48
331,971,949
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
from django.contrib import admin from webapp.models import Users, Friends, Message admin.site.register(Users) admin.site.register(Friends) admin.site.register(Message)
[ "ragdirstrogov@gmail.com" ]
ragdirstrogov@gmail.com
80927fd30b0c4980207e499565b91ff12d163eb7
e5a74a239d2519882cda53c3f586832c22ab0f41
/src/backend/app/main/model/book.py
5d6fbcc3bd565bf63a5f1fefdc018a648e95de3e
[ "MIT" ]
permissive
lnquy/Sale-Manager-Project
b8c568088ab19884ae7bc385de002652a5c957fe
5c4397d62d056caa24413284a2ae6c9052707e90
refs/heads/develop
2020-06-28T12:01:30.676450
2019-10-02T16:18:19
2019-10-02T16:18:19
200,229,132
0
0
MIT
2019-10-29T22:51:12
2019-08-02T12:15:11
Vue
UTF-8
Python
false
false
1,292
py
import datetime from .. import db from sqlalchemy.dialects import postgresql class Book(db.Model): """ Book model for storing user related details """ __tablename__ = "books" id = db.Column(db.Integer, autoincrement=True, primary_key=True) title = db.Column(db.String(500), nullable=False) sub_ti...
[ "lnquy.it@gmail.com" ]
lnquy.it@gmail.com
8c6a4092121b6afd50bfeb41fbe5f6e90c2a433f
ee70c449967f4c1f771da882e7f1b25091a34dc7
/website/admin.py
4d1046302bc7245b8e21f4484cec0905a71dea30
[]
no_license
mayurdhurpate/shilp16
6fec78ef8dab62bb0dd288486e8c9bd72578349b
a0f17a4eac0cf5631ade5d2b7b4c3783e7f8a22d
refs/heads/master
2021-03-19T13:44:17.959859
2016-10-03T12:08:19
2016-10-03T12:08:19
63,174,858
1
0
null
null
null
null
UTF-8
Python
false
false
261
py
from django.contrib import admin from .models import * # Register your models here. admin.site.register(CAUser) admin.site.register(PPTUser) admin.site.register(User) admin.site.register(WorkUser) admin.site.register(WorkdataUser) admin.site.register(greUser)
[ "kushagra.agrawal.civ14@itbhu.ac.in" ]
kushagra.agrawal.civ14@itbhu.ac.in
52fac62da61576ec22dc52af49eaae937130bdfd
9ec1242ae20b6f407f25a266456d83fb8a3d5f73
/src/nellCoin/lib/messages.py
dd5b6fb432476e6c8530ccf6e7483d3a9b8685ad
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
Nell-MDCoin/Nell-MDCoin
5b6d6af7e141844ba22970adacd4877d024e872b
9a1be366aba13539132dc7d0a9f0fdeaa2e19044
refs/heads/master
2020-03-21T23:17:23.329553
2018-06-29T17:32:53
2018-06-29T17:32:53
139,177,535
3
1
null
null
null
null
UTF-8
Python
false
false
9,907
py
# messages.py # # Distributed under the MIT/X11 software license from __future__ import absolute_import, division, print_function, unicode_literals import struct import time import random import cStringIO from nellCoin.lib.coredefs import * from nellCoin.lib.core import * MSG_TX = 1 MSG_BLOCK = 2 class msg_version(...
[ "justdvnsh2208@gmail.com" ]
justdvnsh2208@gmail.com
29418615cd3956b442698533f8144fa90d951f17
e17a6d897da03d11b0924223c37f92dd841390da
/Python/setoperations.py
ef20ea7b79a2252a9e86bb9e2b8717eefd64838a
[]
no_license
PrudhviRaju1999/Training-npci-iiht
746c7eb46f5d42d7371e99b4d75b822b33452ac1
ce42b260ee92a02871c9b5b27cf0dbeb1359d99b
refs/heads/master
2023-08-08T03:55:10.698492
2021-09-29T05:33:22
2021-09-29T05:33:22
406,335,985
0
0
null
null
null
null
UTF-8
Python
false
false
559
py
ls_set={1,7,3,9,22} print(ls_set) print(sorted(ls_set,reverse=True)) nw=[] ls_list=list(ls_set) while ls_list: max = ls_list[0] for x in ls_list: if x > max: max = x nw.append(max) ls_list.remove(max) print(nw) #asssignment 2 s1="mad" s2="bam" s3="adm" if sorted(s1)==sorte...
[ "90675358+PrudhviRaju1999@users.noreply.github.com" ]
90675358+PrudhviRaju1999@users.noreply.github.com
8e7580b71b90f48eb3da61675ce8b7001d524259
1f7ae75815f16fc64dcd15a62da8091c87d697ee
/ch2/KthLast.py
a0381b285cefc19b1fcc031ea8ce81c1ac635960
[]
no_license
danilolau/cracking_coding_interview_py
4cee0571fd4ba6f6767da6f4af99fe0e41b27912
450f00a6f2cfb826b24cbd2242187b892eee9e32
refs/heads/main
2023-06-04T11:36:10.302976
2021-07-01T19:03:21
2021-07-01T19:03:21
360,946,690
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
from structs.linkedlist import Node, LinkedList def kth_last(k,ll): pointer = ll.head kth = ll.head for _ in range(k): try: pointer = pointer.next except: break while pointer!=ll.tail: pointer = pointer.next kth = kth.next re...
[ "daniloaraujo@Danilos-MacBook-Pro.local" ]
daniloaraujo@Danilos-MacBook-Pro.local
9252a85cc583668635a22b48dfa5f1af859fcd61
d2e76cf29eff1e3a09790828e2cb3070aef53e6d
/CareHub/Profile/migrations/0004_auto_20190215_1717.py
e83314d086a9c618f220aa04724b414a8425d1d0
[]
no_license
ganzourii/SE2018G10
2774e0dde00ba0d8ea990ac3db26fd8c0b744ca5
22d314494bca84550a4cbbdcc7dbf713491588ed
refs/heads/master
2020-03-30T19:26:31.679332
2019-02-17T08:48:34
2019-02-17T08:48:34
151,542,753
0
7
null
null
null
null
UTF-8
Python
false
false
469
py
# Generated by Django 2.1.2 on 2019-02-15 15:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Profile', '0003_auto_20190215_1711'), ] operations = [ migrations.AlterField( model_name='patient', name='image', ...
[ "36420865+mr-rofl@users.noreply.github.com" ]
36420865+mr-rofl@users.noreply.github.com
0be50c038d2051c58ca35de90c9f30e0b014333a
fbf7f71ded0da35144e7890372fb966ceb24aa35
/generator/__init__.py
6c3ce4bfb0ab575c2528b6449413e4c3e3524d98
[ "MIT" ]
permissive
shivamswarnkar/Image-Generator
93477864db0a8b2cd50d717b6dfe450a365249d8
55b6d066c84c615403e48c27e77ee017cf260955
refs/heads/master
2021-07-15T20:47:23.379504
2021-07-10T07:54:23
2021-07-10T07:54:23
218,314,417
15
4
null
null
null
null
UTF-8
Python
false
false
1,016
py
import torch.nn as nn # Generator Network class Generator(nn.Module): def __init__(self, args): super(Generator, self).__init__() self.ngpu = args.ngpu self.main = nn.Sequential( # input Z; First nn.ConvTranspose2d(args.nz, args.ngf * 8, 4, 1, 0, bias=False), nn.BatchNorm2d(args.n...
[ "ss8464@nyu.edu" ]
ss8464@nyu.edu
9d9c1305ed57e2a327da571c32f06702b2a1fc11
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/Akx92Ldcy78xp5zCF_4.py
9d5e1d493ab24f7c6508ffe8f4080fda61583184
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
""" The function is given two strings `t` \- template, `s` \- to be sorted. Sort the characters in `s` such that if the character is present in `t` then it is sorted according to the order in `t` and other characters are sorted alphabetically after the ones found in `t`. ### Examples custom_sort("edc", "abcdef...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
bcf4526e435d550484e29273775b5f583c8ac4a2
d60d72fb2a43fe64382f00d4c99d9481e281a1bc
/Scripts RNA Adaline/TratamentoDadosIMDB.py
81b5a0cf0ddb08d6e3c9610d8ae1646de482e674
[]
no_license
MarcoAntonioGomes/Trabalho-de-IA---Classifica-o-de-Coment-rios-do-IMDB
94c0cf2c5830c253d88cbfd9f44170ebe125a086
2a0e095e1647852af57c5ea19d10162db6c4226e
refs/heads/master
2021-09-01T07:24:20.902673
2017-12-25T16:48:03
2017-12-25T16:48:03
115,351,640
0
0
null
null
null
null
UTF-8
Python
false
false
1,220
py
""" Created on Sun Dec 3 13:10:22 2017 @author: Marco """ from sklearn.datasets import* from sklearn.feature_extraction.text import * categorias = [ 'Negativo' , 'Positivo'] dados = load_files("C:\\Users\\Marco\\Desktop\\6º Periodo\\Inteligencia Artificial\\ComentariosIMDB", description = None , categories = ca...
[ "marcoantonio.gomes@yahoo.com.br" ]
marcoantonio.gomes@yahoo.com.br
a6388fd226aa360a3e348f2f9468dcad02a7a36f
f4e57645e92b594dcf611336b774f9febcd09923
/simics/monitorCore/genContextMgr.py
7d63179158f92977c44f66d185ba05a758005c85
[]
no_license
kingking888/RESim
24dc63f23df59c66a4aa455cef25a71ecbf2958a
cb3ea4536df5f93719894db83fbfbe42eb25309a
refs/heads/master
2023-03-21T00:11:12.327617
2021-03-19T22:37:32
2021-03-19T22:37:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
45,525
py
from simics import * ''' Track task context and set/remove beakpoints & haps accordingly. Currently recognises two contexts: default & RESim. Also has a carve-out for "maze_exit" breakpoints/haps, managed as an attribute of the hap. Designed to watch a single thread group. There is one instance of this module per c...
[ "mfthomps@nps.edu" ]
mfthomps@nps.edu
2e3157f0b093f2638437aa07b0c09b42299befbf
5b6269ad53eb8c3f4eae21c3b4a0667527e75172
/Challenges/Pwn/notepad--/solve.py
e0ba8f9166d9945089eb2a713fcf867b05ae7194
[]
no_license
NUSGreyhats/welcome-ctf-2021
15c28dc7aaab91b0c939a08caaf907454213235a
eda2a0e5ffd6293aafbabab141499c9c973b4d5f
refs/heads/main
2023-08-03T21:31:15.779090
2021-09-07T15:05:11
2021-09-07T15:05:11
376,068,403
21
6
null
null
null
null
UTF-8
Python
false
false
876
py
from pwn import * if args.REMOTE: p = remote('localhost', 5001) else: p = process("./dist/notepad.o", env={'LD_PRELOAD': './dist/libc.so.6'}) e = ELF("./dist/notepad.o") libc = ELF("./dist/libc.so.6") def view_note(idx): p.sendlineafter(">", "2") p.sendlineafter("Index: ", str(idx)) def create_n...
[ "enigmatrix2000@gmail.com" ]
enigmatrix2000@gmail.com
8f20c2f26ceb51e392dd210bf3dd5f07b794c615
2ff207e57902ccd0f1df23800c8f6e4628c06230
/SConstruct
76a19d372952617846cf8149f67131a16125506f
[]
no_license
mdrgon1/Z-1.5
af1d2f0b49434017522e26f6e518ce658935c5a9
a7ce5df6beb2bf616144d030456125398f3abe7e
refs/heads/master
2022-12-02T07:12:55.506397
2020-07-28T05:56:09
2020-07-28T05:56:09
246,069,381
0
0
null
2020-07-28T05:53:14
2020-03-09T15:15:36
C++
UTF-8
Python
false
false
3,719
#!python import os, subprocess opts = Variables([], ARGUMENTS) # Gets the standard flags CC, CCX, etc. env = DefaultEnvironment() # Define our options opts.Add(EnumVariable('target', "Compilation target", 'debug', ['d', 'debug', 'r', 'release'])) opts.Add(EnumVariable('platform', "Compilation platform", '', ['', 'wi...
[ "50722677+TheLoveDoctor@users.noreply.github.com" ]
50722677+TheLoveDoctor@users.noreply.github.com
d19481de277f3304a15ba5abd3e4aa8f62930e6d
6a9b10d56619e254e1563714082d8f284410c311
/Maxsum_Circular_Subarray.py
859a9343c3c2e7e1f1a3d643ad89ca1e5af205ff
[]
no_license
syedmujahedalih/LeetCode-Submissions
c05bf820675bee2d47eb4a23b38074c9ed807bb6
87ffd4f14784a1fb8d4c94f5f8592c77f354d78f
refs/heads/master
2022-11-18T11:21:16.089131
2020-07-12T10:20:23
2020-07-12T10:20:23
260,825,334
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
class Solution(object): def maxSubarraySumCircular(self, A): def kadane(gen): # Maximum non-empty subarray sum ans = cur = None for x in gen: cur = x + max(cur, 0) ans = max(ans, cur) return ans S = sum(A) ans1 ...
[ "syedmujahedalih@gmail.com" ]
syedmujahedalih@gmail.com
dd4bd12c5b84fdef186166bf91e7fbfa998243fa
51222a640bdfaf394af67601dc4e128f678743d3
/dpc/examples/daal/gradient_boosted_classification_batch.py
f61614e29bc6e0633f53fe18c4a344e642728e37
[]
no_license
pvelesko/testing
8294f5cd9af5634460f3b597c582ce7ff22238d0
5bdc53da65f67596858825d023852f7457937211
refs/heads/master
2023-06-29T00:42:37.744462
2021-08-04T04:24:08
2021-08-04T04:30:37
392,545,407
0
0
null
null
null
null
UTF-8
Python
false
false
2,983
py
#******************************************************************************* # Copyright 2014-2019 Intel Corporation # All Rights Reserved. # # This software is licensed under the Apache License, Version 2.0 (the # "License"), the following terms apply: # # You may not use this file except in compliance with the Li...
[ "paulius.velesko@intel.com" ]
paulius.velesko@intel.com
2b02636ab2bc26a17af696eb2a897748dd8228e1
9acd885f9f36f2ceb967100840997ecc97e5bc77
/kolichestvo _razlichniykh_chisel.py
94250905c31d05a7fbd03af0da654ec795c34673
[]
no_license
Botagoz-Ahm/Task-7
b09bf5143baf377fcd801c193dfa27c59d32cb2b
3b8d0d522ea7ff7ae79bfdbcdfdefbf2eab75c19
refs/heads/master
2022-06-03T22:53:27.375451
2020-05-02T18:56:42
2020-05-02T18:56:42
260,754,779
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
myList = (input().split()) mySet = (len(set((myList)))) print(mySet)
[ "noreply@github.com" ]
noreply@github.com
33bc1e2ac77d709acd563907b448ccc28ff6f4e0
91ddffce1c5167d2b4b8c3fa0150ba68779fd771
/Euler/problem1.py
0aefbc36206a125553154df5e79773dc053becea
[]
no_license
elbuo8/PythonSnips
8a1a5b91e5f4eff788fb4af6a79edb467d9e3448
8db0cc37651dbd88df8cfa6b79291bb5deec1c7b
refs/heads/master
2021-01-15T21:01:57.517386
2012-06-14T14:20:03
2012-06-14T14:20:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
''' Created on Jun 7, 2012 @author: yamilasusta ''' total = 0 for i in range(1000): if i%3 == 0 or i%5 == 0: total += i print total
[ "yamil.asusta@upr.edu" ]
yamil.asusta@upr.edu
c8a6e95a98f1348bd94cef5d52e00616ec83951d
086f048af5006329ab2697e23485a5b3be5bd46b
/link_finder.py
168c75713e3f174da9f01c1654bfb566e825b1a9
[]
no_license
derekwang1994/Web-Crawler---Python
b0d41cf74dd64a3bb4d5da842c7e7039b053a0e6
4c6401f7ef42a2d76ddb1caa78168f5840966a0c
refs/heads/master
2021-01-19T23:02:16.042192
2017-09-15T00:55:29
2017-09-15T00:55:29
101,261,973
0
0
null
null
null
null
UTF-8
Python
false
false
1,534
py
from html.parser import HTMLParser from urllib import parse from general import * class LinkFinder(HTMLParser): def __init__(self, base_url, page_url, keywords): super().__init__() self.base_url = base_url self.page_url = page_url self.links = set() self.jobs = set() ...
[ "derekwang1994@yahoo.com" ]
derekwang1994@yahoo.com
a768c2a7f1da1af77af686f85ec3b9cabda981a8
9f129912443acf712166209155fe071518cafa63
/wavenet.py
b13f48c5544da960dfc5d016eba79f8a4443b834
[]
no_license
KNFO-MIMUW/Stock_Prices_Prediction
740b4c429caf40b1058289bfb56b6751070cb4ee
4027642f5159aecd3d0347c6c39e19db3264cf39
refs/heads/master
2020-04-06T14:10:52.443302
2019-05-20T17:24:50
2019-05-20T17:24:50
157,531,020
6
5
null
null
null
null
UTF-8
Python
false
false
6,646
py
""" Time series forecasting based on: 1. A. Borovykh, S. Bohte, and C. W. Oosterlee, "Conditional Time Series Forecasting with Convolutional Neural Networks", arXiv:1703.04691, Mar. 2017. 2. Google DeepMind, "Wavenet: A generative model for raw audio", arXiv:1609.03499, Sep. 2016. 3. K. Papadopoulo...
[ "noreply@github.com" ]
noreply@github.com
64eeead6469a2f19391005c14238c5e10af48198
f402071c3b454ab12377e835306b8e8d5d961767
/v2.4/unsealed/advanced/rngverify.py
a7ce687167a2e6c08126e4a97c5395d70bbb6e92
[]
no_license
opendime/opendime
2f47ec08a5c51082590c7246a2579c7517f7a1ea
396c52085c22242346258f839093fe15b850d85b
refs/heads/master
2021-11-13T21:52:47.583955
2021-10-29T23:28:43
2021-10-29T23:28:43
59,141,180
131
30
null
2021-10-29T23:28:44
2016-05-18T18:28:08
HTML
UTF-8
Python
false
false
2,597
py
#!/usr/bin/env python from __future__ import print_function from binascii import a2b_hex ADDRESS = '1P431tezawsLq7ZDPqfp8CnGGKxuYpLTKR '.strip() PRIVKEY = '5K6QFi35PZaHqrP1G3wLv7n8sV29cmz2tU4gkMYzfTkEx463NkJ'.strip() OD_NONCE = a2b_hex('7a4deec6d8714f9e03988603789d20fa6cc3fb7921a6e51e0f4e5de75...
[ "peter@conalgo.com" ]
peter@conalgo.com
42cc9b12576207bc472765276c289082274ca608
8df3eea11bb8a88a03166e70eb1d77f7e307916c
/manage.py
35843ce4b130bd95065a9b0106a91706bd69d305
[]
no_license
geekyAmitchaurasia/djangoproj11
7a6acf09a2b7903dcae14d5b24fe2341ace4a8d3
9304a112d28dec32a46051216ef2d47b26291710
refs/heads/master
2020-03-26T06:35:35.635807
2018-08-13T17:38:22
2018-08-13T17:38:22
144,611,850
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangoproj11.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that...
[ "amitchaurasia37@gmail.com" ]
amitchaurasia37@gmail.com
46f50d9f595eb37b882f64158e40a5c7fc5d015c
1118bb87f67c2c619fff06eb8253533fd645dd1e
/Flask Main Server/route/auth.py
88d66a2e0d7d75e48625eda54ba6259d7849ab60
[]
no_license
sunsunza2009/Image-Classifier-Web-GUI
c37e4d97d84c63565774f274f47771cc739d5686
58ff59a0a9752b72dd411fd996538bc366cfb356
refs/heads/master
2022-04-08T19:20:27.200469
2020-03-13T10:22:30
2020-03-13T10:22:30
239,337,005
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
from flask import Blueprint, jsonify, session, request, redirect, url_for, render_template from database import Database app = Blueprint('AUTH', __name__) db = Database() @app.route('/login', methods=['GET', 'POST']) def login(): if 'username' in session: return redirect(url_for('index')) if request.method == '...
[ "14806377+zugetor@users.noreply.github.com" ]
14806377+zugetor@users.noreply.github.com
367d5083a97e5d006b5ed778da35518abfec3376
3f50e7f6894fc8eea825502b846dc0967493f7a4
/doc-src/objects/index.py
53bceb10edb9127c2df0acace412c55eba5bbc78
[ "MIT" ]
permissive
bavardage/qtile
92e62bc3195f3cfb0059afaa3dd008bd490caa6a
c384d354f00c8d025d0eff3e5e292303ad4b4e58
refs/heads/master
2021-01-16T00:49:34.141225
2009-03-26T16:54:51
2009-03-26T16:54:51
106,682
4
0
null
null
null
null
UTF-8
Python
false
false
235
py
from countershape.doc import * pages = [ Page("barsngaps.html", "Bars and Gaps"), Page("groups.html", "Groups"), Page("layouts.html", "Layouts"), Page("screens.html", "Screens"), Page("widgets.html", "Widgets"), ]
[ "aldo@nullcube.com" ]
aldo@nullcube.com
dffb8f1d28234925bf2aa668f60bba767b675746
f1a5d89b17e3bf0f354546cc47c329a81f15dfc9
/apps/__init__.py
9827ad08f3307fbdc79dfbb87ce314af564b62c8
[]
no_license
lucassimon/civilizations
067193e17e7651a9fecb53f2b6e459c15ff4c97b
db8db27bb56ccda8c23059de88c60ef8d9670cb0
refs/heads/master
2020-03-29T13:16:01.025175
2018-12-29T18:22:45
2018-12-29T18:22:45
149,949,155
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
# -*- coding: utf-8 -*- # Python Libs. from vibora import Vibora, Response # -*- coding: utf-8 -*- from vibora.hooks import Events from .config import config from .api import api def create_app(config_name): app = Vibora() @app.handle(Events.AFTER_ENDPOINT) async def before_response(response: Respons...
[ "lucassrod@gmail.com" ]
lucassrod@gmail.com
574e02bc0618918ca8d833a05d6771caed6c0d4b
7871437a6174b73a2e9a1bf1e7cc73288923bae1
/StackHack/StackHack/urls.py
82ae4f03e832ccfa11bff8c030c43939d6893161
[]
no_license
HarshilShrivastava/StackHAck
f4e0a22a9addbd8cc843be639e869fcc9730aefb
d1c5fc67be592cf2e0b279f03c24b0a71bef7cb4
refs/heads/master
2023-08-15T14:13:49.288802
2021-04-12T04:25:19
2021-04-12T04:25:19
266,839,559
0
0
null
2021-09-22T19:05:48
2020-05-25T17:25:48
JavaScript
UTF-8
Python
false
false
923
py
"""StackHack URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
[ "Shrivastavahharshil12@gmail.com" ]
Shrivastavahharshil12@gmail.com
d4a4964518e94e04e43b8698be6b2709644b4fcf
6fb0f2454da536882d195faded18656ea8074ed4
/django_ltree_utils/forms.py
73f8eea2b65952321b5671103a2e3bb6c8936c12
[ "BSD-3-Clause" ]
permissive
CDavantzis/django-ltree-utils
f401827259c27172f548a4374baea49beb0b09a9
97ff0e221743ed47bd2e690ae3ee969bc100c1ef
refs/heads/master
2023-07-17T01:19:18.664758
2021-08-25T16:57:03
2021-08-25T16:57:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,572
py
from django import forms def move_node_form_factory(manager): class Form(forms.ModelForm): position = forms.ChoiceField(choices=manager.Position.choices) relative_to = forms.ModelChoiceField( queryset=manager.all(), required=False ) def __init__(self, *args, **kwargs...
[ "john.parton.iv@gmail.com" ]
john.parton.iv@gmail.com
84f76a870e2ebb01edf941894ff23d363415fefc
ba9174be0c9312f2e34be1ba512db8bc1c71b024
/lesson3/mysql/lesson0/app1.py
d07095dad09f55e3a33948397f4b8eef7fe39c54
[]
no_license
Aliazhari/web-dev-python
8105caa97e9619ac67cce3c634c0775f8409a10e
1e5c76cdb63a0bd43d0747a153944f2a71ae7ca0
refs/heads/master
2020-04-17T09:59:31.903817
2019-05-15T20:48:48
2019-05-15T20:48:48
166,483,161
0
1
null
2019-01-22T03:59:21
2019-01-18T23:00:05
Python
UTF-8
Python
false
false
220
py
# Author: Ali Azhari import mysql.connector mydb = mysql.connector.connect( host="localhost", user="ali", passwd="ali" ) mycursor = mydb.cursor() mycursor.execute("SHOW DATABASES") for x in mycursor: print(x)
[ "Aliazhari@hotmail.com" ]
Aliazhari@hotmail.com
84f2ef9d7c6e1bbc2b274b9267ce6316e3588d2d
7d915f17983f2585cf600c1b97ae060dd48967b0
/WordCounter/Untitled.py
c1572e72b164c8b62a318d5a01aa39c75266c519
[]
no_license
aduxhi/learnpython
ca8b241d0b945fa29a53ba9a3ccb46640799e141
b72144c258d07915936908214ec0a1bcd8a0c56a
refs/heads/master
2022-12-13T03:44:35.136137
2020-09-02T14:24:42
2020-09-02T14:24:42
291,760,087
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
from os import path from wordcloud import WordCloud from collections import Counter import jieba d = path.dirname(__file__) f = open(path.join(d, '十九大报告.txt')).read() words = list(jieba.cut(f)) data = dict (Counter(words).most_common(50)) with open ("十九大词频.txt",'w',encoding= 'utf-8') as fw: for k,v in data.items():...
[ "aduxhi@aduxhideMBP.lan1" ]
aduxhi@aduxhideMBP.lan1
01d1ca7a568a563b1a79e26269f36e7c154cf789
31d5098fd714172a82d655f314c8b8ee3d7b13d0
/autokey/data/ptaylor/cmd-preferences.py
bbd19ea52d0aaa6794a2dc053d80a6e4ae75cf2c
[]
no_license
trxcllnt/ubuntu-setup
cabf75f917115c40a585187f2a0a045c9c1863d6
135247f08dcf4709684ec867efd9c494e5b323b0
refs/heads/master
2023-08-22T19:23:21.676537
2023-08-05T19:04:02
2023-08-05T19:04:02
197,261,945
30
9
null
2021-11-30T01:10:39
2019-07-16T20:22:09
Shell
UTF-8
Python
false
false
115
py
store.set_global_value('hotkey', '<alt>+,') store.set_global_value('keycmd', '<ctrl>+,') engine.run_script('combo')
[ "paul.e.taylor@me.com" ]
paul.e.taylor@me.com
1a5a3f46a3ef3e94d37b2d4f016f99a117c59da5
5704bf1f4e8d3bc0ded23406d5cd0dc93412ea27
/python/python_questions/locked_binary_tree.py
d4bf97884c0a949bafaa7981567ef64923147dc1
[]
no_license
apollopower/interview-prep
c6854b0e15a516fe46993f72ca8922f74881ec49
4d53b473efc001d41b989131762f0deaee5c7b13
refs/heads/master
2020-03-27T08:14:24.951750
2019-04-03T20:27:21
2019-04-03T20:27:21
146,235,471
1
0
null
null
null
null
UTF-8
Python
false
false
654
py
# locked binary tree problem class TreeNode: def __init__(self, val): self.val = val self.locked = False self.left = None self.right = None def is_locked(self): return self.locked def lock(self): if self.left: self.left.lock() if self.right: self.right.lock() ...
[ "erthaljonas@gmail.com" ]
erthaljonas@gmail.com
986d770ae16a5a17ea8ab21a9c8611ad9ec844f3
e62b1e748582584a5c2a05fff970fe09e72752b4
/app/migrations/0084_auto_20200312_2145.py
78c8618744d5f9bd75ef8f090009cc7f7e073750
[]
no_license
wlodekf/jpk
5957b515ecbcded9b4f27d6a0785ee89e3a0d585
1c200350f57469e890a124d07f741d836d9a0833
refs/heads/master
2023-07-10T20:15:11.111276
2021-08-11T12:21:14
2021-08-11T12:21:14
394,978,461
1
0
null
null
null
null
UTF-8
Python
false
false
645
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.14.dev20170906233242 on 2020-03-12 21:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0083_auto_20200304_1321'), ] operations = [ migrat...
[ "wlodekf@softprodukt.com.pl" ]
wlodekf@softprodukt.com.pl
d4e579745fae8a47e60cc476411f97325d51b3fc
9a9e47d9cf1f663de411218a533c10bbf288cc9d
/config/wsgi.py
bc1f238dd14822d7df2fe5c0fdcf05f70c23e3ec
[ "MIT" ]
permissive
eyobofficial/Gebeya-Schedule-Bot
110f862a5e905c127e23ec0ad9bc9406f4180859
8c757fa8c26cf5dda6f917997c521d0f37b28aa9
refs/heads/development
2022-12-14T10:23:17.323365
2019-09-16T18:28:37
2019-09-16T18:28:37
204,556,349
3
2
MIT
2022-04-22T22:17:15
2019-08-26T20:31:16
Python
UTF-8
Python
false
false
442
py
""" WSGI config for config project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from decouple import config from django.core.wsgi import get_wsgi_application os.envir...
[ "eyobtariku@gmail.com" ]
eyobtariku@gmail.com
03a4d393129093fd3cb0de5abf29c81b36c85ec2
d7d3775e373983c2db3fad814f961a8588e60e64
/main.py
527bc3f8eb8a298f867e69f8ef0bcfde405b2016
[]
no_license
arielbeje/Might_have_meant
2ed80b7ae789ef2aaca1c336ba0b06ba62d00138
ebba15010002cbf2a045e9b6ceae40a4da839297
refs/heads/master
2021-07-22T19:27:23.324799
2017-11-02T14:33:53
2017-11-02T14:33:53
108,294,838
0
0
null
null
null
null
UTF-8
Python
false
false
13,015
py
import praw import json import os import time import datetime import logging import traceback import re import threading if not os.path.isfile('log.txt'): f = open('log.txt', 'w+') f.close() logging.basicConfig(filename='log.txt', level=logging.WARNING, format='%(asctime)s %(levelname)s %(n...
[ "arielb624@gmail.com" ]
arielb624@gmail.com
0b9845a1dd7ff42f02f9dcf5f9f84eff059cf5b3
11dacddbfd4335419280b0ca63aaaa4dd49e2c42
/Ejercicio 3.py
51a3026505388eeed9d7785feeb57918e782597f
[]
no_license
Adrian-SB/XML
bf2ca0c9f429348d2b13cdf04b13ca140cc45c27
4d279ac63b32cd8d4849b1a5db21ef7ae471e8ea
refs/heads/master
2020-05-27T14:50:27.501614
2017-03-09T17:29:53
2017-03-09T17:29:53
82,561,130
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
# -*- coding: utf-8 -*- from lxml import etree doc = etree.parse("Empresas.xml") raiz=doc.getroot() #3-Lista las empresas con más de un teléfono. nombres=raiz.findall("empresa/titulo") telefonos=("empresa/telefono") sep="/" for n in nombres: if sep in telefonos: print "La empresa",n.text, "tiene 2 tele...
[ "noreply@github.com" ]
noreply@github.com
afc12a16980d6f8d26efb9e5861fdbff5be747a0
8650145ce5bf5f415f56d979b1a43cd3204628b8
/Week 6 - Python APIs/Activities/3/Activities/09-Stu_Census/Unsolved/config.py
d0690c8370feeafe7512d99d32a61de35007117a
[]
no_license
Axioma42/Data_Analytics_Boot_Camp
d26f9035475cc1272ecbeff4054bc30f098933bb
2c4be5eee7d016ba0f6505df2cb6e0a8ade0554c
refs/heads/master
2022-12-11T15:27:10.495147
2019-11-10T01:12:23
2019-11-10T01:12:23
219,831,300
2
0
null
2022-12-08T02:35:58
2019-11-05T19:14:18
Jupyter Notebook
UTF-8
Python
false
false
75
py
# Enter your API keys api_key = "YOUR KEY HERE!" gkey = "YOUR KEY HERE!"
[ "julio.padillaaviles@gmail.com" ]
julio.padillaaviles@gmail.com
b49846e8bb66b1799b99451978e59a5d83fc92e9
13d13f28031e6b89b4a49918792349f4eaaa9e4f
/Project 5 - Email Sender.py
bfd3b4d058a74256a4193cc0dc760fb1b628ecbf
[]
no_license
TheFREAK69/Udemy-Master_Tkinter_By_Building_5_Fully_Functioning_Apps
8d128614b6bfe7961f3a3837d3e437ddacc6ac08
170246976011eb6d813f1fbd29ab946158b53913
refs/heads/master
2020-03-15T07:04:24.768782
2018-05-03T16:30:54
2018-05-03T16:30:54
132,021,470
0
0
null
null
null
null
UTF-8
Python
false
false
5,033
py
######################################################################################################################## # # DATE: 2018-05-01 # # RELEASE Notes: # - Email function not working. # - Everything else is ok. # ##############################################################################################...
[ "noreply@github.com" ]
noreply@github.com
0d15a97572af7fdb6b7ca4d3361515e161ea6c19
7216bcfa10aa4d0c891d11845beda6139f608264
/Oeving1/tetraeder.py
9665b70963e8504c1fc3c9f744f16b75c2d55969
[]
no_license
kaffikaffi/ITGK
4fc6f2c0383b75e1439f3f87b9fe2498f019a6ee
c87cb9da129584e9269dd4ce1d6b8451f08b2c35
refs/heads/master
2020-07-13T18:07:17.635353
2019-10-06T19:16:11
2019-10-06T19:16:11
205,128,540
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
height = input("hva er høyden til tetraederet?: ") import math a = 3/(math.sqrt(6)) * int(height) surface_area = math.sqrt(3) * math.pow(a, 2) volume = (math.sqrt(2) * math.pow(a, 3) ) / 12 print("I et tetraeder der høyden er " + height + " blir overflatearealet " + str(surface_area) + " og volumet blir " + str(volume...
[ "35420892+kaffikaffi@users.noreply.github.com" ]
35420892+kaffikaffi@users.noreply.github.com
3ee9bb126a75e9e5ea4cf37cbc3ae41b39e9747b
c975fd016cdb72b5e4bbded9706f224bb993084c
/application.py
3a5e080e3f0b2f5d253a88bb9762641f156e5061
[ "MIT" ]
permissive
UCB-MIDS/w210_crime_machine_learning
5c5350fa628c90c8d8c7d3a1ee79ea516219979d
4105b3afd4d3457904d94d06abf2205fbda68e94
refs/heads/master
2020-04-20T20:15:50.890268
2019-04-14T23:34:28
2019-04-14T23:34:28
169,071,721
0
0
null
null
null
null
UTF-8
Python
false
false
23,420
py
# W210 Police Deployment # MACHINE LEARNING Microservices import numpy as np import pandas as pd import subprocess import shlex import threading import s3fs import tempfile import pickle import joblib import json import itertools import configparser from datetime import datetime from scipy.stats import t from collecti...
[ "felipe.pqi@gmail.com" ]
felipe.pqi@gmail.com
204aa6d13a66a0db1220d1ef9864c83c98c175d0
efd6a277c2d5bffdfba6ccb4d5efd555e652d29e
/chap7/7.7.py
7c207a1ed18a1835e5860abdacf3a292352aca05
[]
no_license
CavalcanteLucas/cookbook
dd57583c8b5271879bb086783c12795d1c0a7ee8
09ac71e291571e3add8d23d79b1684b356702a40
refs/heads/master
2020-03-25T03:09:39.608599
2019-09-13T04:43:23
2019-09-13T04:43:23
143,325,952
0
0
null
2020-09-25T05:46:30
2018-08-02T17:32:08
Python
UTF-8
Python
false
false
45
py
# Capturing Variable in Anonymous Functions
[ "thesupervisar@gmail.com" ]
thesupervisar@gmail.com
b1bca0d09d203d8208286ee334ddf76ec807a68e
c0d5fc26ba84365aae197541d946d79fa4eb8dae
/mechanics.py
a7adc77a82d6ec8aff8b46bf20a48456bb2849d2
[]
no_license
Amperthorpe/PythonTextGame
45ef7a21eba536afd4d2d9a0f6d6c62b520833ef
9178257133821f03526c29252aec801732caca8d
refs/heads/master
2021-09-24T02:59:16.975687
2018-10-02T06:15:15
2018-10-02T06:15:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
from __future__ import annotations import random def roll_dice(count, dice, full=False): rolls = [random.randint(1, dice) for _ in range(count)] if full: return sum(rolls), rolls else: return sum(rolls) class DiceRoller: """For persistent values for dice rolls""" def __init__(se...
[ "alleluid@users.noreply.github.com" ]
alleluid@users.noreply.github.com
4787afa1f34e43341bfb363697036945bc1f6b5a
bf4b4e3e0ee17633800e206f2a1b899de81d2284
/www/cgi-bin/backup/twitter/graph.py
9f7a47813485c83c6c1930c27361312747a6c2b3
[]
no_license
gurdasanivishal/hadoop_Automation_via_Dockers
5e9fcbb79185096f173deddcb794c8a1c20bff25
8badba4ebda2ce563e2e3593a32b8b919ed87acc
refs/heads/master
2020-06-02T08:40:08.730203
2019-11-21T06:28:15
2019-11-21T06:28:15
191,103,089
0
0
null
null
null
null
UTF-8
Python
false
false
942
py
#!/usr/bin/python import matplotlib.pyplot as plt import csv import commands # cutting file pnum commands.getoutput("sudo cat ttt.txt | awk -F'(' '{print $2}' | cut -d, -f1 | cut -d= -f2 >pnum.txt") commands.getoutput("sudo cat ttt.txt | awk -F'(' '{print $2}' | cut -d, -f2 | cut -d= -f2 | cut -d')' ...
[ "vishal.gurdasani@elogist.in" ]
vishal.gurdasani@elogist.in
466bd43facef0ff807850dc4caf2a5d061758411
72af42076bac692f9a42e0a914913e031738cc55
/01, 특강_210705_0706/02, source/CookData(2021.01.15)/Code03-02.py
77bba4c75ad3200137cbc7e4f6f9c010afb45baa
[]
no_license
goareum93/Algorithm
f0ab0ee7926f89802d851c2a80f98cba08116f6c
ec68f2526b1ea2904891b929a7bbc74139a6402e
refs/heads/master
2023-07-01T07:17:16.987779
2021-08-05T14:52:51
2021-08-05T14:52:51
376,908,264
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
katok = ["다현", "정연", "쯔위", "사나", "지효"] def insert_data(position, friend) : if position < 0 or position > len(katok) : print("데이터를 삽입할 범위를 벗어났습니다.") return katok.append(None) # 빈칸 추가 kLen = len(katok) # 배열의 현재 크기 for i in range(kLen-1, position, -1) : katok[i] = katok[i-1] katok[i-1] = None ...
[ "goareum7@gmail.com" ]
goareum7@gmail.com
911c2d2d63014735f36b0af77064c085eab848fe
bb5f310f342cf1a92bb11d02701ceda9a20d00b7
/article/migrations/0001_initial.py
3fcabbb6fca931534f4b3a529fadb579d7c5ca08
[]
no_license
agecspnt/djangoProject
f340ad3e437537bdf928e2e77e5d218e7f58d1da
bb4200e35c91c39b87f96988648e3b95b95041d9
refs/heads/master
2023-07-13T22:39:48.022470
2021-08-22T04:07:01
2021-08-22T04:07:01
398,515,520
0
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
# Generated by Django 3.2.6 on 2021-08-15 04:42 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
[ "agecspnt@gmail.com" ]
agecspnt@gmail.com
aada5ea54cf6f63628a5f4658d0f197fdaa086f1
10ed6af8759eb1d9875b98cba8612a0134afa563
/project_1/shortenersite/urls.py
ee9a9a26add4d08c629c7f14361662fc7807e019
[]
no_license
SanGlebovskii/UrlShortener
bc321482e1266fea5358102c4aad23c94fb3e903
fb726987a67b63fe1270b90c6a46ff76c5e2e473
refs/heads/master
2023-08-26T21:12:57.102118
2021-10-19T16:31:24
2021-10-19T16:31:24
419,461,813
0
0
null
null
null
null
UTF-8
Python
false
false
84
py
from django.contrib import admin from django.urls import path from .views import *
[ "bychkokatya@gmail.com" ]
bychkokatya@gmail.com
e8a73dea3080e6faa22a2f991da6b5bf4747d68b
a5a1230d8ae51b6b52b11333fd9fe8458eb7fe91
/phaseTest/user.py
d11d4848ffa9c9931d883bf016a18722315af349
[]
no_license
TTTTTong/Python_Blog_Demo
a8fef07718f255809603d64d952815f3fbb4c6a0
8e4bf43d3d8bd3d2af881fa433798cb4823bfbd2
refs/heads/master
2021-07-23T07:43:06.186538
2017-10-31T15:50:58
2017-10-31T15:50:58
106,183,113
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
# -*- coding: utf-8 -*- from www.orm import Model, StringField, IntegerField class User(Model): __table__ = 'users' id = IntegerField(primary_Key=True) name = StringField()
[ "t15529208705@gmail.com" ]
t15529208705@gmail.com
6e7271c8a1eb8bc295f3ece232488fbacef01969
a5483feae3a201d116629fa2e55a03e51bbe7478
/signin/models.py
93e2908a1739b155b10bc3d83355a69c00633c84
[]
no_license
basavaraj4321/WantBook_3
8f6f3e2b3e6e7166bc37b2947ac8aeda2368b46e
3ea402e6f0cbf9d99307114fe557247c74b9b5a4
refs/heads/master
2020-03-15T01:10:22.931127
2018-05-02T17:57:22
2018-05-02T17:57:22
131,887,051
0
0
null
null
null
null
UTF-8
Python
false
false
618
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save # Create your models here. class BookUser(models.Model): user1 = models.OneToOneField(User) email_id = models.EmailField(max_l...
[ "basu@Basavarajs-MacBook-Air.local" ]
basu@Basavarajs-MacBook-Air.local
e6c38b138e63c75a95de70360b78e6deecaa3870
a2f208c5cc0c941eec7a7d1307817ec7918f779d
/python_scripts/01.py
5db3f7067dd90934628fdaa5b0cc63d29ff72c42
[]
no_license
Asteriskers/NoteBook_Home_HP
fd3c98d9651981ba8faea786ba4ce3fac48b31a2
bdb52dfcf7f9a216df4e548188602241744a0389
refs/heads/master
2020-07-25T05:09:35.082484
2019-09-14T02:52:19
2019-09-14T02:52:19
208,175,513
0
0
null
null
null
null
UTF-8
Python
false
false
40
py
#/bin/python # var = "tesst" print(var)
[ "notebook_home_hp@163.com" ]
notebook_home_hp@163.com
ea92e1cf286bc36f8468711bae7e14fbe169fd0b
1ae0d8eb0cd5db0bd886b40912b910bbba908b70
/swapnum.py
7937865bc026c1d10ca5fff85ec2802ec275047e
[]
no_license
keerthanachinna/beginnerset3
fae07713eac49f121e103b118e495019bf4102af
1cc4fe785d35035a184f128865019acb17ccf4e5
refs/heads/master
2020-03-21T09:55:59.035254
2018-08-08T15:56:26
2018-08-08T15:56:26
138,424,981
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
def main(): printf("enter the numbers") n1=int(raw_input(enter the n1:)) n2=int(raw_input(enter the n2:)) print(n1) print(n2) if((n1<100000)&&(n2<100000)): t=n1 n1=n2 n2=t printf("after swappping the numbers are %d,%d",n1,n2) else printf("number with in only 100000");
[ "noreply@github.com" ]
noreply@github.com
0faba6d5b256068f61ae56a45c5afb98e6ce9c93
13bf5b764ee3b7b425991d03062490e6f28def6f
/accounts/urls.py
3ab45a5961ab3bbf549dafde96ef53d2c9bf5a6c
[]
no_license
joseChQ/sof2
806b0197ef95c0a67bc27fb4e56342b2a9f172a2
4c92581ad6b73bc4acf4392c3835dae66283fca0
refs/heads/master
2022-12-14T12:21:50.402638
2020-09-10T13:21:29
2020-09-10T13:21:29
294,418,844
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
# acounts/urls.py from django.urls import path from . import views urlpatterns = [ path('signup/', views.SignUpView.as_view(), name='signup'), ]
[ "63762044+joseChQ@users.noreply.github.com" ]
63762044+joseChQ@users.noreply.github.com
6757df9b87934f4ad429c3afdd0a94ab1d0c296d
721ad225fad30f599cc79bbb0c76a38c07214d7a
/K Fold Cross-Validated Neural Network with 2 Hidden Layers.py
68cd015efde17150031b85e456b454d4dd0bd297
[]
no_license
karimcarroum9/Master-of-Research-Data-Science-and-eSports
91ec1202e5526edb451065e5c1c012799ab9155f
e6bf0847a7a6d051f78b033a1326b552cdce5c47
refs/heads/master
2022-04-18T22:15:10.988764
2020-04-17T22:38:07
2020-04-17T22:38:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,205
py
### Neural Network with Cross-Validation of Activation Functions and Hidden Units (Two Hidden Layers) ### Karim Carroum Sanz - karim.carroum01@estudiant.upf.edu ### Dataset of League of Legends Season 9 Professional e-Sports Players' Statistics import pandas as pd import numpy as np import csv import tens...
[ "noreply@github.com" ]
noreply@github.com
67268010ff59ff1aae3d761a98739780226f70d5
82bf9b7dce20f045a02625b4d206a141ae63e99a
/PythonParticipant/core/transaction.py
cfe68c3315c10b57b70538d2edb3e2014e38a87e
[]
no_license
acidoth/Participants
408a53dfa4c4b17045ca5d0928040666141faea2
d7488a69c3411ee008f0c4767b5941d7f56d2790
refs/heads/master
2016-09-11T12:54:45.380017
2013-12-05T05:18:11
2013-12-05T05:18:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
#!/usr/bin/python import MySQLdb class Transaction: def __init__(self, transactionid, customername, fromdestination, todestination, date): self.transactionId = transactionid self.fromdestination = fromdestination self.todestination = todestination self.date = date self.cust...
[ "mpirinthapan@gmail.com" ]
mpirinthapan@gmail.com
f821ee1ff0b336f0de182dad015449661d02f140
935ee20c9eda46f352d0dc96537959b1a5bff0af
/venv/Scripts/django-admin.py
8a110aeff30cff1af03bbc084aae1ba9862b5895
[]
no_license
DASARIVAMSHI/basicdjango
168dd509a38fc46f5ed403913223b1a0f7162185
19d630feb8603c2a34679a3a0329473a4bc4bbc2
refs/heads/master
2023-03-28T23:53:32.412412
2021-03-30T17:18:41
2021-03-30T17:18:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
#!c:\users\d p naidu\pycharmprojects\08\03\15\03\model\venv\scripts\python.exe # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( '...
[ "190330272@klh.edu.in" ]
190330272@klh.edu.in
a26442c63dd7331ef05ba4ecd0d0945d4b74a43b
9750584fed8c5b89ff72c05db57023988be34b79
/app/views.py
6137fe5ff0a0f92deeb4e1b791a97a96ff78936c
[]
no_license
tariik/django-heroku-app
14ecf786837309626f79ec396d740070099a917c
fa2b29ab71f55b8cc7f51d364ac1134ced21f779
refs/heads/master
2023-08-17T19:20:30.490487
2020-06-06T17:14:44
2020-06-06T17:14:44
268,361,877
0
0
null
2021-09-22T19:07:41
2020-05-31T20:49:50
Python
UTF-8
Python
false
false
619
py
from django.shortcuts import render from django.http import HttpResponse from pprint import pprint from django.core import serializers from .models import User # Create your views here. def home(request): # return HttpResponse('Hello from Python!') users = User.objects.all() text = 'hello world' ...
[ "khalfaoui.t@hotmail.com" ]
khalfaoui.t@hotmail.com
fe67b587acb41838b627af66ca34a11ad458a34e
7aa4e4bfee6b0a265a4bcf1b7f81291f3299f43b
/Day17/quiz_brain.py
144287abfa11e8d10c95fbeb19d7332d51e1fc84
[]
no_license
fazer1929/100DaysOfCode_Python
464b54e33fdda25f985a4a7fde327ceafc88fa93
313cd77ad7266b18fd2442548569cf96f330ce26
refs/heads/main
2023-05-05T01:59:48.936964
2021-05-30T14:34:57
2021-05-30T14:34:57
311,775,381
0
0
null
null
null
null
UTF-8
Python
false
false
868
py
class QuizBrain: def __init__(self,qlist): self.question_list = qlist self.question_number = 0 self.score = 0 def nextQuestion(self): self.question_number += 1 question = self.question_list[self.question_number] ans = input(f"Q.{self.question_number}: {question.t...
[ "abhishekagrawal8888@gmail.com" ]
abhishekagrawal8888@gmail.com
e0061b8f859c7e53737179b193420ee642e22eb7
d94f26bf6579a5040212b4b9b4680cd1f29afa5b
/DS3_BaseStructures/lesson4_doubleENdedQueue.py
c8c499940c2234f254c8f702c1fac0124a8b50bb
[]
no_license
z1015784643/dataStucatures
c8a9b37534392c361cc6ab8fdcf5b403d824933d
98d2858263a22ce8ba708f053d86293d3ef1c1a3
refs/heads/master
2022-07-17T02:40:39.664487
2020-05-20T09:41:45
2020-05-20T09:41:45
261,633,190
0
0
null
null
null
null
UTF-8
Python
false
false
2,327
py
''' 栈:后进先出(顶部进顶部出) 队列:先进先出(队尾进,队首出) 双端队列:一系列元素的有序集合。其两端成为队首(front)和队尾(rear),元素在到达两端之前始终位于双端队列。 与队列不同的地方在于:双端队列对元素的添加和删除限制不那么严格,元素可以从两端插入,也可以从两端删除。 总结来说:双端队列拥有栈和队列各自拥有的所有功能 抽象数据类型(ADT) Deque() 创建一个空双队列,无参数,返回值为Deque对象 addFront() 在队首插入一个元素,参数为待插入元素,无返回值 addRear(item) 在队尾...
[ "1015784643@qq.com" ]
1015784643@qq.com
a26e37a02f4f4268885227fc0f04aa6bf61e454b
1c9c334d3de6217ca8a30c94e0f6fbb1104c8aa4
/api_server/urls.py
e812944931b33ed95e8766e342762f61b9ebd5e3
[]
no_license
rahulmishra24/notes-api-server
fbe556edb5d2dbf6c8b01929965081704a067280
75539486bbcff0b0f33374b57bcbabe48e343847
refs/heads/master
2023-02-24T11:29:05.872779
2021-01-27T18:02:10
2021-01-27T18:02:10
333,503,853
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
from django.urls import include, path from rest_framework import routers from . import views router = routers.DefaultRouter() router.register(r'notes', views.NoteViewSet) urlpatterns = [ path('', include(router.urls)), ]
[ "mishrarahul215@gmail.com" ]
mishrarahul215@gmail.com
86341d92d4860c2318af6b7c2be30b2b9d08ec06
156392eef4f888de81190e3d45e620fe55f55544
/yolo.py
e0abc816425d2482579473e34ca04ea2106bcd7d
[]
no_license
khordoo/traffic-watch-object-detection
6d29474360601721427ca42e1e1e885c2f6571f7
1040b8682f4ccecb0b88583b71bde56bbcc61184
refs/heads/master
2022-12-06T00:00:37.847641
2020-05-16T19:06:32
2020-05-16T19:06:32
207,481,530
8
2
null
2022-11-22T04:14:19
2019-09-10T06:27:47
Python
UTF-8
Python
false
false
419
py
from darkflow.net.build import TFNet class YOLO: """ Python Wrapper for YOLO """ displayImageWindow = False threshold = 0.12 options = { 'model': 'cfg/yolo.cfg', 'load': 'weights/yolov2.weights', 'threshold': threshold } def __init__(self): self.tfnet =...
[ "m.khordoo@gmail.com" ]
m.khordoo@gmail.com
8d22ca41c5fdd160170de7ddbeba78eb0decedcb
06fd2c4908e64a40bfd34ec20a8e7d7a59e3aa01
/roombooking/account/migrations/0006_delete_reservation.py
dc821fc0171a8482c5138c4713230441290aac2f
[ "MIT" ]
permissive
VirenKakasaniya/Roombooking-With-Django
d077fb039534325d816699ca3c7ac905f6c33b61
613e9bb9ee16ff2eb79782caca7480bdb095de57
refs/heads/master
2022-09-18T12:33:26.741868
2020-06-06T13:11:47
2020-06-06T13:11:47
269,979,589
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
# Generated by Django 3.0.3 on 2020-03-16 15:52 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('account', '0005_profile'), ] operations = [ migrations.DeleteModel( name='Reservation', ), ]
[ "kakasaniyaviren1893@gmail.com" ]
kakasaniyaviren1893@gmail.com
044aec0c5c23814bdfda79054ad101ae7c32827d
326ecf9fd3b8ff5670dfd1faeb71504aac07452b
/Code/host-python/venv/Scripts/easy_install-3.7-script.py
533d3be76b2f27a92232bdd4e87cc44d705a56bf
[]
no_license
y-cj123/beidou
6dc4fbec8e23124fc16f31337e9b3d4a94c74e4f
4b3a80cb8da4fb3464520024316b7399eb0bf457
refs/heads/master
2020-07-31T07:14:02.263772
2019-10-24T05:56:16
2019-10-24T05:56:16
210,526,165
1
2
null
null
null
null
UTF-8
Python
false
false
454
py
#!D:\Users\JN\PycharmProjects\WpfApp\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\....
[ "1975817668@qq.com" ]
1975817668@qq.com
65f9cfdb3e2d22893d9a562025b9bd322fc2b5d5
ca8fe12def17494b4fd8a97664d7d9fcb1f9121f
/notifier.py
5541ce560a39a17898c3957aad22a6fb585f744f
[]
no_license
pondelion/PassiveHealthMonitor
0d52c71bc8b8aa327680ef7585bd24a608bd4385
4072c4c161a0d4d1c7e86931edb70b4c076e96e4
refs/heads/main
2023-04-25T16:06:12.784931
2021-05-15T03:49:35
2021-05-15T03:49:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
from abc import ABCMeta, abstractmethod from overrides import overrides class Notifier(metaclass=ABCMeta): @abstractmethod def notify( self, monitoring_target: str, notified_cpunt: int ) -> None: raise NotImplementedError class MockNotifier(Notifier): @overrides ...
[ "programming.deve@gmail.com" ]
programming.deve@gmail.com
6d1d33b8e617fe23309aeba8ce6c41eca9dd1792
9f56ddc837f3559fc0b47216477084a1a040cb98
/shortageConf/apps.py
c94e4ac535c15b926f426a85f35eb5351aabb447
[]
no_license
davidgit888/opdashboard
2dc498731324657da8c0fc2c0dec11f548ae0d24
5f67628860ad655c787bafa810ca7fbd649952a8
refs/heads/master
2022-12-06T13:28:44.169926
2020-02-17T06:07:24
2020-02-17T06:07:24
163,798,432
0
0
null
2022-12-04T14:55:23
2019-01-02T05:38:15
HTML
UTF-8
Python
false
false
133
py
from django.apps import AppConfig class ShortageconfConfig(AppConfig): name = 'shortageConf' verbose_name = '缺件配置'
[ "rui.han@hexagon.com" ]
rui.han@hexagon.com
95777f69b147a12e645c3e223346ef92efc6ea31
2afa477a46b3e20f890113107d421201474ecc77
/game/intelligent_agent.py
2643ec308963b9f09d6f8af0708582a839adf88e
[]
no_license
evangineer/Secure-Self-Attachment-Therapy
d7bb8b7e25f652ccf832b15cc6c969e6905e9853
aa49cafa943669df6dad183b1e051e67df8b6394
refs/heads/master
2021-01-17T22:40:54.258810
2013-08-21T17:30:17
2013-08-21T17:30:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,771
py
# This script contains the Intelligent Agent used in the game to guide the user. # It is based of David Cittern's intelligent agent. It uses the GameLogic class and uses # MDP, Q-learning algoritm and Ordinal Matrices to imitate the player. # Q-learning equation: Q(s,a)' <- Q(s,a) + l*[R(s,s') + d*max[Q(s',a')] - Q(s...
[ "zero.caleb@gmail.com" ]
zero.caleb@gmail.com
6c5a5c0f95d2a5a614ffe10e688fb03a6e36acf4
d1fca4af511d0cfad53100e860c10a10345e95cd
/EntregasProyecto/SuanaCordovaYPaolaMartinez/PilarVazquez.py
b5de73a107a287fcc9b7f3be0f9c36746e7f3159
[]
no_license
pcruiher08/SnakeGame
d27c4ffbb1fd9e38b6f0e60658dad93857077777
69a78e1503c7448c3d2c8a721f91b1926c2e2db8
refs/heads/master
2022-12-02T10:49:13.113066
2020-08-07T23:23:12
2020-08-07T23:23:12
277,183,237
1
0
null
null
null
null
UTF-8
Python
false
false
6,538
py
# Libraries import pygame, random # Colors black=(0,0,0) background=(231,197,130) green=(77,228,145) red=(255,38,78) # Variables running=True pause=False screenSize=500 pixelSize=10 speed=10 direction="RIGHT" game_over=False pause=False headX=50 headY=50 screen=pygame.display.set_mode((screenSize,screenSize)) snak...
[ "pcruiher089@gmail.com" ]
pcruiher089@gmail.com
26b5869a3a73a98502d47e4cb090fc004ff119f9
c651e102de29f75a66daf5411bc3f3ddb49525ce
/day2_Homework/day2HW1.py
23e4234ce046d6430c1141a30d3a3cdcd18cd315
[]
no_license
ArtKorman/cmdb-bootcamp-homework
b926acf320cb97810d229fbee2ba6d29592bc76d
3c795050d2651eb9aed2664b1d4ef5c65fe375f6
refs/heads/master
2021-01-09T22:46:17.082937
2014-09-08T02:48:44
2014-09-08T02:48:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
#! /usr/bin/env python import pandas as pd import matplotlib.pyplot as plt cufflinks_output = "/Users/cmdb/data/results/SRR072893_clout/genes.fpkm_tracking" cufflinks_output2 = "/Users/cmdb/data/results/SRR072915_clout/genes.fpkm_tracking" df = pd.read_table( cufflinks_output ) df2 = pd.read_table( cufflinks_output2...
[ "IArthurKormanI@gmail.com" ]
IArthurKormanI@gmail.com
d9f6a916bca93eb5d16e2396026df0aa948f93f2
9b3863c6c1a7ee609e10e9a3f147724ebbcba541
/graph_search/component_manager_test.py
562678f0c9a9b3a5f3c41ce72da4d77bfe5afa7c
[]
no_license
naveenprao/algorithm
ad1745267f1def681889390ab64ecf7f7a899bcf
c95019ed279dd98e2d18c3d868263bb8242db0e9
refs/heads/master
2021-05-04T08:46:26.561369
2017-03-21T19:53:16
2017-03-21T19:53:16
70,366,134
0
0
null
null
null
null
UTF-8
Python
false
false
1,722
py
import unittest from component_manager import ComponentManager class TestAdd(unittest.TestCase): def test_add_two_component(self): cm = ComponentManager() cm.add_component('pgm1') cm.add_component('pgm2') self.assertTrue(len(cm.dep_graph) == 2) class TestMakeDependent(unittest.Te...
[ "nrao@salesforce.com" ]
nrao@salesforce.com
997b8530fba349b6c10f6d4738fbf52fe30b43e3
75769a749295320029d3a3b500a4b5a917638e4d
/qzone/login/testMain.py
13d06ea5e8c87c01993f6072cb3e522c892f8811
[]
no_license
haiboz/qzoneSpider
ed21b09a581eebbaf830b3e438806116523f1280
bcd25f6fc6fe8583128e8c51a0112e1f288eee6c
refs/heads/master
2021-01-20T15:59:30.735837
2016-07-15T16:33:30
2016-07-15T16:33:30
62,299,991
0
0
null
null
null
null
UTF-8
Python
false
false
2,968
py
#coding:utf8 ''' Created on 2016-6-24 @author: 浮生若梦 ''' import sqlConnect from qzone.spiderUtils import qqParser from qzone.login import login import qZoneMain import time # class TestMain(object): def __init__(self): self.parser = qqParser.QQParser() self.qZoneMain = qZoneMain....
[ "798102408@qq.com" ]
798102408@qq.com
eb84f4f3aa5f7e87dd2f03dcbcfa66d736fc84e6
17870e3a15504a7054ef59a532322baa39edba19
/web/web.py
09db76fc591b49e0e0e84c1ca5d81e194e99e396
[]
no_license
lorabit/yuerec
d1e2f86d1d7e1b869d3db93f3967db0150c02f85
dfe036ff1e5180189d467723dbf4387b092ed5cc
refs/heads/master
2021-01-01T16:05:42.754210
2017-10-25T02:52:15
2017-10-25T02:52:15
24,885,108
1
1
null
null
null
null
UTF-8
Python
false
false
2,686
py
# all the imports import sqlite3 from flask import Flask, request, session, g, redirect, url_for, \ abort, render_template, flash, json, send_file import settings import time import Image import os app = Flask(__name__) app.config.from_object(settings) def connect_db(): return sqlite3.connect(app.config['D...
[ "yanan.xyn@alibaba-inc.com" ]
yanan.xyn@alibaba-inc.com
7240fc84a515b8a73bc21daa1816e17899460734
8a6031c0cfa18c4b4d371f0b0bb434f01f62c48c
/RPGGamePython.py
8de45480e50b919aafbe76e070a3467c03364949
[]
no_license
jtroina8/python_game
ce4252d312639d3ed9a92c1bae4e112c8ddd07c5
914717b147fbb004d33bdb8def98582676961651
refs/heads/main
2023-03-25T07:33:42.258238
2021-03-20T19:05:16
2021-03-20T19:05:16
349,578,992
0
0
null
null
null
null
UTF-8
Python
false
false
8,316
py
import random def story(): print(''' _,. ,` -.) ( _/-\\-._ /,|`--._,-^| , \_| |`-._/|| ,'| | `-, / | / / | || | / / `r-._||/ __ / / Greetings, Holy Knight! __,-<_ )`-/ `./ / Welcome to the Kingdom of Pythoon! ...
[ "jtroinacoding@gmail.com" ]
jtroinacoding@gmail.com
7b0a346a7c56723dcae34715480a4cc1df0a10b2
91d931581891ca2f21403090f8192296f11bf6f4
/utils/threads.py
24c5e0fc538d7d94d6b76021c4c081fe55003fb1
[ "MIT" ]
permissive
svkampen/James
b496e22b218cefa8b419099cf8cb8a7f5aa1c761
dc2f6df19aeb8278ef5aabc2956e225f3234d693
refs/heads/master
2021-01-02T09:38:23.158331
2018-07-01T02:07:36
2018-07-01T02:07:36
3,297,746
0
1
null
2015-04-19T15:24:32
2012-01-29T15:13:35
Python
UTF-8
Python
false
false
1,193
py
""" Threads module """ from threading import Thread from queue import Queue import traceback import sys class HandlerThread(Thread): def __init__(self, bot): self.bot = bot self.queue = Queue() super().__init__() def guru_meditate(self, chan, exc_info): exc_name = str(exc_info...
[ "sam@tehsvk.net" ]
sam@tehsvk.net
a6573a47a9197fa74a3b1d54ce847a70a26f6592
01e8e67466b79d352d979ae24fc861be7e9b8b48
/backup_brain/wsgi.py
936fb7b14f5cc3ad36354ed46e08a9536770da59
[]
no_license
lucasousa/backup-brain
dcc2316d5236716ec821afb4489a87fcd1c5500a
a68ee46de4463b22fb23e075d89db465a247649b
refs/heads/master
2022-12-23T22:18:10.629705
2020-10-04T19:24:35
2020-10-04T19:24:35
281,097,015
5
2
null
2020-10-04T19:24:36
2020-07-20T11:23:26
null
UTF-8
Python
false
false
401
py
""" WSGI config for backup_brain project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
[ "marcosbarretopaulo@gmail.com" ]
marcosbarretopaulo@gmail.com
11d98c74eb38bbdb8bdd909712e62ed68d864dc5
0030e377308cdbcf520575670e18050a23bd2bd4
/homework_classes.py
60fba6d9379b99b8cd73e3e8ff602a3977d29f2e
[]
no_license
xx70x/py-16_hw
5b629d8a5d2530bdccee146e0f28f8cfc6a968aa
3941d88930cf52bddcc4c3aa1c5b5c178344acf7
refs/heads/master
2020-03-18T18:10:43.304878
2018-05-27T19:34:56
2018-05-27T19:34:56
135,075,685
0
0
null
null
null
null
UTF-8
Python
false
false
1,252
py
# Необходимо реализовать классы животных на ферме: # Коровы, козы, овцы, свиньи; # Утки, куры, гуси. # Условия: # Должен быть один базовый класс, который наследуют все остальные животные. # Базовый класс должен определять общие характеристики и интерфейс. class Fauna(): def __init__(self, name, size): s...
[ "xx70x@ya.ru" ]
xx70x@ya.ru
4749a3c0908091555e12a2d95d89a42aa01f83f6
b1571f4ee376d789b8094777fd81c4fb47a89cf1
/AtCoder/練習/Beginners Selection/ABC087B.py
23846c48ce3cc1eb755514d5511a6d7951002ae6
[]
no_license
hiroyaonoe/Competitive-programming
e49e43f8853602ba73e658cab423bd91ebbe9286
2949e10eec3a38498bedb57ea41a2491916bab1c
refs/heads/master
2021-06-23T21:56:33.232931
2021-05-30T15:27:31
2021-05-30T15:27:31
225,863,783
2
0
null
2020-06-14T17:54:28
2019-12-04T12:37:24
Python
UTF-8
Python
false
false
595
py
a=int(input()) b=int(input()) c=int(input()) x=int(input()) cnt=0 for i in range(a+1): for j in range(b+1): for k in range(c+1): if x == 500*i+100*j+50*k:cnt+=1 print(cnt) ''' coinA=min(a,x//500) coinB=min(b,(x-coinA*500)//100) coinC=min(c,(x-coinB*100)//50) cnt=0 changeB=coinB changeC=coinC if ...
[ "onoehiroya@gmail.com" ]
onoehiroya@gmail.com
ae7f384939e787900d1895652f876198cc9cf37a
c3fc7e1c2e20455c6913b545bb67af55a7fb7099
/selector/authbackend.py
1f106c555174569d29625f8e83d214660b5afb3a
[ "MIT" ]
permissive
mpassid/MPASSid-connect
aeb64f66804419dd2e70f6bf76aedb422b607ce2
61fafe0ffe02e8fa363473afd261dd5bc48aa9af
refs/heads/master
2021-05-26T05:14:28.591716
2019-02-13T10:11:15
2019-02-13T10:11:15
127,510,036
0
0
null
null
null
null
UTF-8
Python
false
false
2,182
py
# -*- encoding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2015 Haltu Oy, http://haltu.fi # # 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 li...
[ "raine.rapo@gmail.com" ]
raine.rapo@gmail.com
850406838a65e0394c64895605227d65b25e1812
70d35bcad8c3fc4aadfd5895e3e7c5909f667c7e
/mysite/mysite/settings.py
c2253d8a5124222d0d1ef82bb46196a4f2904f5c
[]
no_license
orestispanago/Django-rest
06ad28fb15f50d3b08bb404c24fce8ba7913842f
1429d809d16cb441df67ab7165e8835e107ba54a
refs/heads/master
2023-02-04T05:42:56.147913
2020-12-29T10:40:13
2020-12-29T10:40:13
324,542,400
0
0
null
null
null
null
UTF-8
Python
false
false
3,114
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib ...
[ "orestispanago@gmail.com" ]
orestispanago@gmail.com
aea56583114181ae10f2a4ede81ab4a9348b68c7
7e921c186c5bb76ecdec53c23c93ab1a815ef435
/tests/conftest.py
d26f569f209311ddda9c845b2ebb5586750b283a
[]
no_license
Serufim/yandex_backend
7db419719a57f0f44b7522d9e58497d9db4e1992
f85a278f956f3a660ce9edcc4e6e5571bd5a18a2
refs/heads/master
2020-07-05T05:32:47.401299
2019-08-19T19:28:11
2019-08-19T19:28:11
202,538,684
0
2
null
null
null
null
UTF-8
Python
false
false
1,344
py
import pytest from api.app import init_app from api.settings import BASE_DIR, get_config from init_db import ( setup_db, teardown_db, create_tables, drop_tables, sample_data ) TEST_CONFIG_PATH = BASE_DIR / 'config' / 'api_test.yaml' @pytest.fixture async def cli(loop, aiohttp_client, db): ap...
[ "serufim97@yandex.ru" ]
serufim97@yandex.ru
a5211b078bee3486f2f0f8630b3c79b6da2509ae
a89d97dca06d11db19d63c05922ca18506931a5e
/medibloc_coding_1.py
f3caeadedb77844c0ae70f056e8e81b2340372ed
[]
no_license
felixdies/leetcode
18c4bf8a28dc2fa1c78ab5f917405e0bf7058cc2
dbb51646880def3a69c313a1992ef03946839aaf
refs/heads/master
2020-03-24T13:33:59.238126
2018-07-31T03:44:22
2018-07-31T03:44:22
142,746,961
0
0
null
null
null
null
UTF-8
Python
false
false
719
py
""" 2018.07.30 메디블록 코딩 인터뷰 1번 문제 홀수 마방진 그리기 인터뷰 때에는 checkEdge(), next() 함수를 분리 하지 않고 하나의 스크립트로 짜려고 시도하면서 긴 시간을 소요했고, 결과 코드도 깔끔하지 못했음. """ W = 11 H = 11 ans = [[0]*W for x in range(H)] def checkEdge(i,j): if i==-1: i=H-1 if j==W: j=0 return (i,j) def next(i,j): ni=i-1 nj=j+1 (ni, nj) = che...
[ "johnpark@ebay.com" ]
johnpark@ebay.com
c3d4af16874f5a1eb418edd5730a4ef05849e80f
aa4b225b20c4ef6fbb8dea7c97f94d7e2185078b
/indeed.py
b19077405475abe12cbb9a7363cf7e856a7f5324
[]
no_license
joe-habel/IndeedScraperGUI
2436baed8d60044fb369063f6c1820fa30e4ad60
5f7169d8ef7d165c54622f09400d92c8b5835eb8
refs/heads/master
2020-04-16T04:54:57.412041
2019-01-11T21:24:13
2019-01-11T21:24:13
165,286,116
0
0
null
null
null
null
UTF-8
Python
false
false
3,215
py
import requests from bs4 import BeautifulSoup import time class job_posting(object): def __init__(self,title,company,loc,date,link): self.title = title self.company = company self.loc = loc self.date = date self.link = 'https://www.indeed.com/' + link def t...
[ "noreply@github.com" ]
noreply@github.com
a09341c86e8173d91eda01c6d82ec77bb981f957
ccdf3dffdc390b774ac3e6ba81c16dc48bc9a5fb
/notebooks/fct_network_functions.py
c5fd019ef04e663aa144ce32b34847f62fcc8c07
[]
no_license
CCSB-DFCI/HuRI_paper
90a69521e41d2a8dad9987895930ecd0ce6504b6
16c57919f4e0c3d1a78edf90c105ed42d3022f8f
refs/heads/master
2022-12-15T19:58:33.625633
2020-09-14T17:07:06
2020-09-14T17:07:06
226,145,775
25
8
null
2022-08-23T18:07:00
2019-12-05T16:38:19
Jupyter Notebook
UTF-8
Python
false
false
8,715
py
# script that contains code to generate functional profile matrices, some other scripts to process functional # annotation data and some code to facilitate analysis and plotting of data by doing some pre-calculations import numpy import os import sys import pandas import database_utils # function that generates a ma...
[ "lambourne.luke@gmail.com" ]
lambourne.luke@gmail.com
d9d02a33af01468509cdfe45de0709bdd35a6768
9788072f75865aef11a5d0e67020a47b61793486
/BMI.py
7ec8854786520d112c8cf4203507b491e3ac0243
[]
no_license
lokalawashington/-animated-spork-100daysofpython-
d7767a77343dbd0c8d83981d89231b9f7557dda9
f421ecac04a02d6c7b2a32f5136f17ed1f10c9f7
refs/heads/master
2023-04-17T09:30:31.686749
2021-05-12T13:27:51
2021-05-12T13:27:51
366,038,636
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
height = input("Enter your height in m: ") weight = input("Enter your weight in kg: ") height_new = float(height) weight_new = int(weight) BMI = (weight_new/(height_new * height_new)) print(BMI) BMI_as_int = int(BMI) print(BMI_as_int)
[ "lokalawashington2019@gmail.com" ]
lokalawashington2019@gmail.com
3fcf0c4d584831096040e3c3b747ff1a31794a01
c329260e4bd92fc177dac49fec9da0a121751e7e
/examples/http/server.py
d8244b3ec1ebfb96cf44fdeac4ae9e150aa9c58f
[ "BSD-2-Clause" ]
permissive
SECEF/python-idmefv2-examples
2d2ec851bb90bea47cd9a4b59d30aaabb18241a8
719b7d78032bc62b4da292db108ecedb70128019
refs/heads/main
2023-08-03T03:53:42.476532
2021-09-20T15:01:14
2021-09-20T15:03:03
355,274,002
0
2
null
null
null
null
UTF-8
Python
false
false
1,228
py
# Copyright (C) 2021 CS GROUP - France. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause import sys import tempfile from args import parse_args from idmefv2_transport import get_transport from os.path import dirname, join from queue import Queue, Empty import threading from http.server import BaseHTTPReq...
[ "francois.poirotte@csnovidys.com" ]
francois.poirotte@csnovidys.com
f7721c25cf493ef1ded4213a2d67b41a3474dcfc
14b5679d88afa782dc5d6b35878ab043089a060a
/students/贾帅杰/home0529/hachina5.py
36d8ba5bc9fbfdee8285432c97c1d565fbda2281
[]
no_license
mutiangua/EIS2020
c541ef32623f67f9277945cd39cff3c02f06e4dd
92aa2711b763a2c93be238825c445bf2db8da391
refs/heads/master
2022-11-18T05:21:47.567342
2020-07-11T10:11:21
2020-07-11T10:11:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,617
py
# 引入datetime库用于方便时间相关计算 from datetime import timedelta import logging import voluptuous as vol # 引入HomeAssitant中定义的一些类与函数 # track_time_interval是监听时间变化事件的一个函数 from homeassistant.helpers.event import track_time_interval import homeassistant.helpers.config_validation as cv DOMAIN = "hachina5" ENTITYID = D...
[ "noreply@github.com" ]
noreply@github.com
29034d4f7c58604dbb015618f3e88de8331a7636
5f01de2a024c21323d6c6f02be114edf45ba0775
/Lessen/oude opdrachten/Les 2/final assignmenst 2.py
f684d0d37aa176384dc874727f78e2a58bb4632d
[]
no_license
KishanSewnath/Python
03bd8dd11fde9fad9095773a36cfe81a5b310c96
fe2723205cb331f9532c288ee373eba8779dffbf
refs/heads/master
2021-05-03T11:27:51.262623
2016-11-02T12:50:26
2016-11-02T12:51:22
69,969,619
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
lst = ['aap', 'noot', 'mies', 'blaa', 'fooo', 'bar', 'bnb'] beginIndex = 3 eindIndex = 6 totaal = 0 for indexWoord in range(beginIndex, eindIndex + 1): lengteWoord = len(woord) woord = lst[indexWoord ] totaal = totaal + lengteWoord print(woord) print(totaal)
[ "kishan.sewnath@student.hu.nl" ]
kishan.sewnath@student.hu.nl
c23dd5e12ae719e7b4616d5f20ac6bbd59a2fadb
4073f351551c2f73c5659cb3038a68360cc5b369
/Lärobok/kap 6/kap. 6, sid. 76 - sätta ihop strängar.py
a6ec6841d16836e6f2de9f964e810fd69f375383
[ "MIT" ]
permissive
Pharou/programmering1python
b9a5aca72354d3e7e91a5023a621d22a962ecd7c
9b689027db1f7fbf06925f3094fcb126880453e4
refs/heads/master
2022-11-28T06:33:17.295157
2020-07-25T11:02:07
2020-07-25T11:02:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
#!/usr/bin/python3.8 # Filnamn: kap. 6, sid. 76 - sätta ihop strängar.py # Programmering 1 med Python - Lärobok # Kapitel 6 - Mer om teckensträngar i Python # Med plustecken kan du slå samman flera strängar till en enda. # Det kallas även konkatenering av strängar fn = 'Tage' ln = 'Test' name = fn + ln print(name) ...
[ "niklas_engvall@hotmail.com" ]
niklas_engvall@hotmail.com
d1dd96e68af28543c90ca88f0a73aba302923913
e824b1a37f72bfc182007217294e162f1317315c
/warmpup/lonely_integer/lonely.py
5c28ae428658a561b9a33ab080f875e153ed57dd
[]
no_license
guiambros/hackerrank
6428d1c78ada4d04bcd0e1f495edfa0bdc411d83
5ff5231526a1929fac993ca03ab231cbb4c5f300
refs/heads/master
2021-01-25T04:50:27.601947
2015-02-16T06:37:35
2015-02-16T06:37:35
30,397,719
0
0
null
null
null
null
UTF-8
Python
false
false
886
py
#!/usr/bin/python # There are N integers in an array A. All but one integer occur in pairs. Your task is to find out the number that occurs only once. # # The first line of the input contains an integer N indicating the number of integers. # The next line contains N space separated integers that form the array A. # ...
[ "gui@wrgms.com" ]
gui@wrgms.com
2c5bad20f3963b0a05c987b18b93b70740c5217f
543e4a93fd94a1ebcadb7ba9bd8b1f3afd3a12b8
/maza/modules/exploits/routers/dlink/multi_hedwig_cgi_exec.py
cda6380b6efab9cd5609c5c1aeab67de8cb19247
[ "MIT" ]
permissive
ArturSpirin/maza
e3127f07b90034f08ff294cc4afcad239bb6a6c3
56ae6325c08bcedd22c57b9fe11b58f1b38314ca
refs/heads/master
2020-04-10T16:24:47.245172
2018-12-11T07:13:15
2018-12-11T07:13:15
161,144,181
2
0
null
null
null
null
UTF-8
Python
false
false
2,810
py
import struct from maza.core.exploit import * from maza.core.http.http_client import HTTPClient class Exploit(HTTPClient): __info__ = { "name": "D-Link Hedwig CGI RCE", "description": "Module exploits buffer overflow vulnerablity in D-Link Hedwig CGI component, " "which lead...
[ "a.spirin@hotmail.com" ]
a.spirin@hotmail.com
adf39be48cd84696b0a4931048eca7f235b9f4cb
9ba2de52538216c2ee3636c199ce04d2352d9b68
/main.py
98939b1e5646a98a4874424ab59f9c4c4a13762d
[]
no_license
manncodes/ace-bot
f8a5d3f07b268e0323432f18da0574a8a811436a
8d132ac6a77634b130499cd5fa39a1cdad3b92f3
refs/heads/main
2023-06-05T12:53:43.516320
2021-06-29T15:21:54
2021-06-29T15:21:54
381,407,004
0
1
null
null
null
null
UTF-8
Python
false
false
14,772
py
import discord import os import random import requests import sys import threading import time import yaml sys.path.append("./objection_engine") from deletion import Deletion from discord.ext import commands, tasks from message import Message from objection_engine.beans.comment import Comment from objection_engine.re...
[ "manncodes@gmail.com" ]
manncodes@gmail.com
91dcf081ba91231f27d967ba1acc3391a6f0db0c
e84b4eeb10a568a6a2e6283b86444358c49b6fbf
/setup.py
8fa0a35b13068fe79fe6d06441983cb07399dc61
[ "MIT" ]
permissive
jeffypooo/agent-finder
e002b39b513755ebf28a5f19a8581a8b237ec37f
103f41f5c77bd9b4f5c42aed805442fad88e5f7f
refs/heads/master
2022-09-13T09:25:43.156024
2019-11-14T22:02:42
2019-11-14T22:02:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
872
py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="agent-finder-masterjefferson", version="0.2", author="Jefferson Jones", author_email="jeffersonmjones92@gmail.com", description="Find nearby auto insurance agents and dump them to a CSV fi...
[ "jeff@beartooth.com" ]
jeff@beartooth.com
834b1d7e8be891e345f7c11b0a22ff8a44e36725
039e3eb784605c3c4cc69027f236287671ed2cc8
/rogue_device/rogue_device.py
5b8dd976c62b00a79054421520d4b6660a6a38d2
[]
no_license
WirelessProject/ruckuscli
52c195898339948cba20693fb6e58c5bafb2580e
6c39f0bd0f19cb9e2444e4d89d8015f05f96daa5
refs/heads/master
2021-09-11T13:45:00.139505
2018-04-08T06:28:32
2018-04-08T06:28:32
111,395,363
0
1
null
null
null
null
UTF-8
Python
false
false
6,358
py
#!/usr/bin/env python import datetime import pexpect import getpass import re import smtplib import time from time import localtime, strftime from termcolor import colored username = '' password = '' fromaddr = '' toaddrs = '' rogue_device_detected = 0 _time = 0 log_in_account = '' log_in_password =...
[ "y60091534@gmail.com" ]
y60091534@gmail.com
b536f3f4b4dacb8735de899950a24df3f163176b
bfbef414923883abc522dc064feafb730ce3b34c
/advance_python_obj_and_data_structure/file_handle_exception.py
c6ec45c8ea460faa74be32c04b67d8b657295d49
[ "MIT" ]
permissive
alok-kumar8765/basic_python_practicse
ad5168fa3e8bcf4380d3f395d3dd76cb8d3faff5
9bd61f0b03fc1e703a75df39862a24692bb3fdb7
refs/heads/main
2023-07-26T01:46:36.168099
2021-09-03T06:10:40
2021-09-03T06:10:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
''' p=open('oops.txt','a') p.readlines() p.close() #let modify file p.write('add more text') p.close() ''' #protect file with try/except/finally p=open('oops.txt','a') try: p.readlines() except: print('an exception raised') finally: p.close() p.write('add more text') # save step with with with open('oops...
[ "85283226+alok-techqware@users.noreply.github.com" ]
85283226+alok-techqware@users.noreply.github.com
6a1d90a4e97b59248f282e363faf44e729a3aa2c
4cb06a6674d1dca463d5d9a5f471655d9b38c0a1
/rad416/Assignment4/tutorial3.py
2ebb5beab5697193697389f89172bd983812751d
[]
no_license
nyucusp/gx5003-fall2013
1fb98e603d27495704503954f06a800b90303b4b
b7c1e2ddb7540a995037db06ce7273bff30a56cd
refs/heads/master
2021-01-23T07:03:52.834758
2013-12-26T23:52:55
2013-12-26T23:52:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
import MySQLdb #connect to database db = MySQLdb.connect(host="localhost", # your host, usually localhost user="rad416", # your username passwd="mysql", # your password db="coursedb") # name of the data base # The Cursor object will let you execu...
[ "richarddunks@gmail.com" ]
richarddunks@gmail.com
8f87de5431b19e473791bd915dbfe6c442403abc
8b38873dc0236be98a258e984e1722a9f00ece5f
/MIS 2100/atomcust/game_stats.py
a970dd5f9331778299c4648d56c4d915537cab35
[]
no_license
danrludwig/MIS-2100
123557df38537c2750749e86bc3eed1142d0c5f2
a653eb24e4bada5d7356159d4f84f6eb37447b0e
refs/heads/master
2020-05-04T17:40:55.303909
2019-04-04T20:58:42
2019-04-04T20:58:42
179,321,895
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
import psycopg2 try: connection = psycopg2.connect(user = 'postgres', password = 'oysome!1', host = 'localhost', port = '5432', database = 'boys_basketball' ) c...
[ "noreply@github.com" ]
noreply@github.com
531852ea327771f1089a88d011fac0d74d818f24
49eaf0ccabb65b02da367764f9d5a3748ecddaf4
/03-rank.py
3d725273d96065f5be1768a62f909c7f1f69c5e4
[]
no_license
asharifara/tensorflow-examples
4ae8b037e4a5a13bec49bdb977d0338ce22be1e7
3babf63896dd954bd2925535bb4efa9dcd749533
refs/heads/master
2022-04-01T19:04:29.288983
2019-12-20T03:17:21
2019-12-20T03:17:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
import tensorflow as tf session = tf.Session() zeroD = tf.constant(4) oneD = tf.constant(['ali', 'sharifara']) twoD = tf.constant([[1.0, 2.9], [3.7, 4.4]]) threeD = tf.constant([[[1.0, 2.9], [3.7, 2.4]], [[3.7, 2.4], [3.7, 2.4]]]) print(session.run(tf.rank(zeroD))) print(session.run(tf.rank(oneD))) print(session.run...
[ "noreply@github.com" ]
noreply@github.com
7023ccfa04ae9db5e41aa1991b5c1bdc4d513f2a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02948/s243741324.py
2cffaa3be99d436febcc3c638d3fc41cc448b571
[]
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
491
py
from heapq import heappop,heappush,heapify from collections import deque N,M=map(int,input().split()) A,B,C = [0]*N,[0]*N,[0]*N for i in range(N): A[i],B[i] = map(int,input().split()) C[i]=[A[i],B[i]] C.sort() C=deque(C) a=[] heapify(a) ans=0 for i in range(M,-1,-1): while C: if C[0][0]<=M-i: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7ae77f3fc583e7b1cab76db09ec2b17e3baa6bc8
9fc69e503a4980efe2f47fb0416f2f414e95cde6
/theatre/shows/migrations/0010_auto_20150204_2008.py
1814bc2517dcbfe59b4c83a807780ca589d60f82
[]
no_license
mkgilbert/cs399_the_theatre
a5f05a5e95fc2b67fb74047c0adc3e5c92d43a68
a775065be3eaef5ed49e7007ac20f7bfbc7e0a1e
refs/heads/master
2016-09-05T09:09:22.385254
2015-02-06T02:09:13
2015-02-06T02:09:13
29,870,404
1
0
null
2015-02-03T06:13:22
2015-01-26T16:38:27
Python
UTF-8
Python
false
false
587
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations def delete_some_tickets(apps, schema_editor): Show = apps.get_model("shows", "Show") shows = Show.objects.all() for show in shows: tickets = show.tickets.all() for ticket in tickets: ...
[ "justin.poehnelt@gmail.com" ]
justin.poehnelt@gmail.com
b84dd9230ccb462252288d436554e4655ed6d463
58a82d4b72e8c83d8c93a3d3639aa65fbdc9fcbd
/BCPrompt/bc_operators.py
a9acc39d4ec5b58e487e2b05b20c2289164e5737
[]
no_license
8Observer8/myblendercontrib
4de9b880da56a909b3da19c732e32557ab48400b
71aa26457c50622cf5646a7aa39fbe11491f3e7b
refs/heads/master
2021-01-15T15:33:13.133667
2015-10-14T15:38:48
2015-10-14T15:38:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,961
py
import bpy from console_python import add_scrollback from .bc_command_dispatch import ( in_scene_commands, in_search_commands, in_sverchok_commands, in_core_dev_commands, in_modeling_tools, in_upgrade_commands, in_bpm_commands, in_fast_ops_commands) history_append = bpy.ops.console.his...
[ "Develop@Shaneware.Biz" ]
Develop@Shaneware.Biz
91c53302d52e9d5a99a4e0d0b685179371931b6d
cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45
/Personal/Jaypur/Jaypur/settings.py
76bd9d7c357d60980068b2b15d2475f763bef64f
[]
no_license
ProsenjitKumar/PycharmProjects
d90d0e7c2f4adc84e861c12a3fcb9174f15cde17
285692394581441ce7b706afa3b7af9e995f1c55
refs/heads/master
2022-12-13T01:09:55.408985
2019-05-08T02:21:47
2019-05-08T02:21:47
181,052,978
1
1
null
2022-12-08T02:31:17
2019-04-12T17:21:59
null
UTF-8
Python
false
false
3,158
py
""" Django settings for Jaypur project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # ...
[ "prosenjitearnkuar@gmail.com" ]
prosenjitearnkuar@gmail.com
a8520e9f05d38ae8d69d2db4c4af9f856b832dd5
37132d47fd22e98ffdb5f6673ebacb41ee12f762
/src/users/models.py
cb642d67f5734c9a87f3aecb5f67f2f823023dee
[ "Apache-2.0" ]
permissive
git-vish/CodeSpaceAPI
b0037dc46e28d108a23519492269f13adf0c9e4e
7ad4327e0eef3019098730358c4a23312bc85615
refs/heads/main
2023-06-23T16:49:53.749045
2021-07-25T19:13:32
2021-07-25T19:13:32
382,095,296
1
0
Apache-2.0
2021-07-01T16:32:20
2021-07-01T16:32:20
null
UTF-8
Python
false
false
1,553
py
"""Pydantic schemas for Users API. """ # Author Info __author__ = 'Vishwajeet Ghatage' __date__ = '11/07/21' __email__ = 'cloudmail.vishwajeet@gmail.com' # Library Imports from typing import List, Optional from pydantic import BaseModel, EmailStr class UserBase(BaseModel): """Base User model.""" email: Emai...
[ "cloudmail.vishwajeet@gmail.com" ]
cloudmail.vishwajeet@gmail.com
8652f163ca8f8ea1ea0d3cc5fceb48a51d48d380
4f2e01b2c9934aa3906482056a2eb89b0b09cd7f
/parse_data.py
c56b7db971f4b9de577faead453bcc7518208b5c
[]
no_license
dhruvinsh/influxdb
4c109bf51813a698d17d2a44cc0a815028e70c42
81335314b2e6698a5a0ab1b345de011050044de5
refs/heads/master
2020-05-23T20:50:44.006036
2019-05-18T17:19:37
2019-05-18T17:19:37
184,688,270
1
0
null
null
null
null
UTF-8
Python
false
false
793
py
def _dict_to_line(dikt: dict) -> str: return ','.join(['{}={}'.format(k, v) for k, v in dikt.items()]) def make_line(data: dict) -> str: """allows to make line out of json data = { 'measurement': 'cpu', 'tags': {'hostname': 'localhost', 'region': 'ca'}, 'fields': {'value': 0.51} ...
[ "dhruvin3@gmail.com" ]
dhruvin3@gmail.com