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
e9f868ff815024c1e16fbad4fecdd0555aa18e30
77c5e35467b91bb10967a141f7caa3a3c0b4095f
/associate_name_with_cat_reduce.py
a29676a9d7f78ae6f5f9930e603d8adcd190b9b8
[]
no_license
yan9liu/title_search
cab9cd19841dbf895dc165f0172e079129c8650d
b155c4c3b9a4e306a121e89247f4bad72c3bbe65
refs/heads/master
2021-01-09T21:52:24.787824
2016-01-04T07:32:40
2016-01-04T07:32:40
48,975,494
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
import sys def reduce(): cats = [] names = [] pre_pid = None for line in sys.stdin: splits = line.decode('utf-8').strip().split('\t', 1) pid = splits[0] if pid != pre_pid: if cats and names: output(pre_pid, cats, names) cats = [] ...
[ "liu.ocean@outlook.com" ]
liu.ocean@outlook.com
6dd5458bc61691ad70c9076ff0135c5343b37efb
cc343475ca61c167944a0c0f59f531ca4f43b5c8
/NetworksLabCode/httpclient.py
197f5da8fc07afac1bef6611ebba7a87d3d40e8d
[]
no_license
sambathkumar02/Python
55f20f47c333eb5bb3947c8b4d14495c9fb210dc
ce569a18c4f35de70aeba0007bbf4bc48730b3d4
refs/heads/master
2023-03-15T05:25:50.531048
2021-03-18T11:08:21
2021-03-18T11:08:21
257,019,558
2
0
null
null
null
null
UTF-8
Python
false
false
451
py
import socket client=socket.socket() server=('saranathan.ac.in',80) client.connect(server) header = b'GET / HTTP/1.1\r\n' header += b'Host: saranathan.ac.in:80\r\n' header += b'Accept:text/html\r\n' header += b'Connection: close\r\n' header += b'\r\n' client.send(header) response=b'' while True: ...
[ "noreply@github.com" ]
sambathkumar02.noreply@github.com
860ed367c2aca7e4dd6deba69f2855fdacc19f00
f49c866f416a0c2cf89347aa2e0814553f4b5d52
/train_eval_for_mrc.py
6c3a3cc2610e4fbcbbd86c58408dec97802e41b3
[]
no_license
thunderboom/NER_MRC
3fec4a4a821592fe9d092ac2b3b9b167dee25cb5
a0f6a9a77ed7ed5d6ff4d46d114b83871480b1e7
refs/heads/main
2022-12-31T17:06:08.782889
2020-10-27T10:04:31
2020-10-27T10:04:31
307,647,627
0
0
null
null
null
null
UTF-8
Python
false
false
14,300
py
# coding: UTF-8 import os import logging import numpy as np import torch import torch.nn as nn from sklearn import metrics from seqeval.metrics import f1_score, precision_score, recall_score, classification_report import time from utils import extract_flat_spans_batch from models.loss import DiceLoss from torch.nn.modu...
[ "470810634@qq.com" ]
470810634@qq.com
b0a496a2adad7d4299f3c94ceb3f5651a373a629
ee8c4c954b7c1711899b6d2527bdb12b5c79c9be
/assessment2/amazon/run/core/controllers/manage.py
436b9b54ecb5b87023cfad764e11bb94a803445a
[]
no_license
sqlconsult/byte
02ac9899aebea4475614969b594bfe2992ffe29a
548f6cb5038e927b54adca29caf02c981fdcecfc
refs/heads/master
2021-01-25T14:45:42.120220
2018-08-11T23:45:31
2018-08-11T23:45:31
117,135,069
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
#!/usr/bin/env python3 from flask import Blueprint, Flask, render_template, request, url_for controller = Blueprint('manage', __name__, url_prefix='/manage') # @controller.route('/<string:title>', methods=['GET']) # def lookup(title): # if title == 'Republic': # TODO 2 # return render_template('republi...
[ "sqlconsult@hotmail.com" ]
sqlconsult@hotmail.com
a6feea4e0041758fbcfcdf08169d6272e1d4ea41
bdba52c756cc09f192b720ea318510c265665dcd
/swagger_client/api/character_api.py
c1e1cd12abcec0f72554fd46436981b2dad6fbd7
[ "MIT" ]
permissive
rseichter/bootini-star
6b38195890f383615cc2b422c365ac28c5b87292
a80258f01a05e4df38748b8cb47dfadabd42c20d
refs/heads/master
2020-03-14T03:17:11.385048
2018-06-28T17:23:23
2018-06-28T17:23:23
131,416,504
0
0
MIT
2018-05-01T14:26:04
2018-04-28T14:28:46
Python
UTF-8
Python
false
false
94,170
py
# coding: utf-8 """ EVE Swagger Interface An OpenAPI for EVE Online # noqa: E501 OpenAPI spec version: 0.8.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library impo...
[ "github@seichter.de" ]
github@seichter.de
4dd3029190c967aa1021f127e1f73e6489ab3fb7
b012b7ce6a371511de44eee63e8bcceb29ae4a23
/manage.py
2aee2cf4a1d44bbe7e9e6f5984a50da229840468
[]
no_license
Srinivasu-Gillella/djtemplates1
f23974b7af13f64717eeb9d8547cc38e046e7383
f77b700e6a444362c2c4c68b7836bf6f417a1a96
refs/heads/master
2022-12-16T04:12:19.059026
2020-09-28T12:10:16
2020-09-28T12:10:16
299,296,765
0
0
null
null
null
null
UTF-8
Python
false
false
632
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djtemplates1.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise I...
[ "64829989+Srinivasu-Gillella@users.noreply.github.com" ]
64829989+Srinivasu-Gillella@users.noreply.github.com
1d04d3d4f51fb6e30bcbf047d655a4f3121f14ce
73dc6b3fdb07592f10b8e02b7ca053deb61a2dc9
/msof_api/comments/admin.py
4e3be735e10ca856e607a6d04ccf86bad757bf99
[]
no_license
likelion-kookmin/msof_api
4143c09f93b68d219aa20de3bd57ec544c2bdf32
f9fec7d31ebdb465a8935711da715db6d87c0fce
refs/heads/develop
2023-06-28T15:35:45.240871
2021-07-31T16:38:35
2021-07-31T16:38:35
347,298,658
3
1
null
2021-07-31T16:38:36
2021-03-13T07:02:56
Python
UTF-8
Python
false
false
784
py
"""# comments admin - CommentAdmin """ from django.contrib import admin from .models import Comment @admin.register(Comment) class CommentAdmin(admin.ModelAdmin): """## CommentAdmin - admin에서 관리할 Comment 모델 설정 """ list_display = [ 'author', 'question', 'parent', '...
[ "singun11@kookmin.ac.kr" ]
singun11@kookmin.ac.kr
652e8c01463ca031788666db93024bbc761ec75d
14856ffe01c711af7a41af0b1abf0378ba4ffde6
/Python/Fundamentals/Fun_with_Functions.py
4db600213841d74d4382c1514cc6f369abdc29a8
[]
no_license
sharonanchel/coding-dojo
9a8db24eec17b0ae0c220592e6864510297371c3
d6c4a7efd0804353b27a49e16255984c4f4b7f2a
refs/heads/master
2021-05-05T18:17:48.101853
2017-06-23T23:53:51
2017-06-23T23:53:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
# Odd/Even def odd_even(): for i in range(1,2001): if i%2 == 0: type = 'even' else: type = 'odd' print 'Number is',i, 'This is an',type,'number.' odd_even() # Multiply def multiply(arr, num): for i in range(0,len(arr)): arr[i] *= num return arr print multiply([2,4,10,16],5) # Hacker Challenge def l...
[ "jao.colin@gmail.com" ]
jao.colin@gmail.com
b32d0c2672ca5d2afe58d2b5c3af3ad37e89ffba
f23c9196b21e4ff189d2c8399f4a77de2813d2b2
/tests/Python + Tornado/simpleserver.py
1f5bb8f4f2c28b1d9f901d93d82e36fa91b26a74
[]
no_license
gchatelet/web-performance-tests
bcf903135bfcdc46a485c5a0acb9175d125ab3a2
3e0b526132abf840dfbc9dd235a94dd4713f9c9b
refs/heads/master
2020-04-14T23:54:02.606248
2013-03-18T11:10:18
2013-03-18T11:10:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
import tornado.ioloop import tornado.web class GreetingResourceHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, " + self.get_argument('name', True)) application = tornado.web.Application([ (r"/", GreetingResourceHandler), ]) if __name__ == "__main__": application.listen(80...
[ "chatelet.guillaume@gmail.com" ]
chatelet.guillaume@gmail.com
cf384ca62ab9185a7636264fbac38c353fd2bb0c
a7c6cf9663f1db1ed407f70e3ee2578ee38b0eca
/main.py
e452961320167ed3fba64a2ba5ca1561ae0dfe9e
[ "MIT" ]
permissive
theSlayer4089/EasyFNBotGlitch
bfce879c92c56a239b698b4802c45a04e1452053
fd214dc3984092b3a845b7ab6960ba389893dc50
refs/heads/master
2020-12-05T22:36:01.536330
2020-01-05T16:45:38
2020-01-05T16:45:38
232,265,289
1
0
MIT
2020-01-07T07:12:19
2020-01-07T07:12:19
null
UTF-8
Python
false
false
8,429
py
import json,fortniteAPI,functions,MultipleClients,os,UpdateCheck from functools import partial from Events import ready,friends,party,message from threading import Thread try: import fortnitepy,asyncio,aiofiles from termcolor import colored from flask import Flask except: os.system("pip3 inst...
[ "noreply@github.com" ]
theSlayer4089.noreply@github.com
a959feaae80f94e9b538502bda97297c7f29dc52
0d7085e202a232b419e4a2d0efca07ec30b474e6
/src/storage.py
6070abacfb99463a396ca4d48626e45a122dec50
[]
no_license
maconel/fastrun
8a0880cb4078d93da2f8ae24ab52044efb34e78b
131701aa6f95b9692965461d395d8a7d0e5f6c13
refs/heads/master
2021-01-01T19:39:28.499482
2011-10-30T13:37:06
2011-10-30T13:37:06
2,520,012
0
0
null
null
null
null
UTF-8
Python
false
false
1,915
py
# -*- coding: utf-8 -*- from __future__ import with_statement import os import sys import pinyinlib datafilepath = r'..\data\data.txt' #name |path |cmd0 :cmd1 :cmd2 |priority #记事本|c:\windows\notepad.exe|记事本:notepad.ex:jishibene|18 class Item(object): def __init__(self, nam...
[ "maconel.reg@gmail.com" ]
maconel.reg@gmail.com
4199440910460a422c013a0c40e9ecddfe383267
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnbelt.py
a561c79d95be99afc054e24528da2a296c42f2e6
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
1,067
py
ii = [('LyelCPG2.py', 1), ('MarrFDI.py', 1), ('CoolWHM2.py', 2), ('KembFFF.py', 1), ('RogePAV.py', 4), ('RennJIT.py', 1), ('LeakWTI2.py', 1), ('LeakWTI3.py', 1), ('PettTHE.py', 1), ('TennAP.py', 1), ('PeckJNG.py', 1), ('BailJD2.py', 1), ('FitzRNS3.py', 2), ('WilkJMC2.py', 3), ('CarlTFR.py', 4), ('LyttELD.py', 1), ('Bai...
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
4d3d7789762162ec46b85085c7c5971a1c7ab7cc
aab2f73ce75434ae127a00c708ec14e29d99dfec
/fermi_level/carrier_con_instrinsic_semi.py
7f2d08137e2169990632993d6e2db1a9438df8a2
[]
no_license
dadhikar/semiconductor_physics_and_modeling
29a7c008d93906d40d82a6ef4657da7c28830a6a
8e9c082daaf41b228641bc6741e04a491eb7a06f
refs/heads/master
2022-11-29T04:26:00.530412
2020-08-18T21:08:18
2020-08-18T21:08:18
256,613,677
4
0
null
null
null
null
UTF-8
Python
false
false
2,986
py
""" For an intrinsic semiconductor, calculating electron density at conduction band. This involves solving Fermi-Dirac integral """ # importing required libraries import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl mpl.rcParams['xtick.direction'] = 'in' mpl.rcParams['ytick.direction'] = 'in' m...
[ "dadhikar@dadhikar.local" ]
dadhikar@dadhikar.local
5f6535ea4fadf155e1c96cc0508e31a1a8227986
9c0bb2bd2788bac007f857eca11a672751c8d808
/hello_world.py
a2a497ef8c45ee1717f3cbe8af39a268a1c98ac3
[]
no_license
michaelorr/10gen
e52b5ff697fa845ab523e1268b38502b4bb61c61
e938d92a291c1986deb51de84043efff446bc170
refs/heads/master
2016-09-06T16:00:28.218176
2013-02-24T18:48:11
2013-02-24T18:48:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
from bottle import route, run, template @route('/hello/:name') def index(name='World'): return template('<b>Hello {{name}}</b>', name=name) run(host='localhost', port=8888)
[ "michael@orr.co" ]
michael@orr.co
e5f68e03c3e1f9546ede6129f969da71ae852f20
2369cb94be22a6dcaf5694faf7b40a440d24c3ef
/rally_plugins/scenarios/kubernetes/replication_controllers.py
bc305f074bf4bebeb74cfd3c4dc2a36732466f0b
[ "Apache-2.0" ]
permissive
xinhuihu/rally-plugins
c1c5c9a595c4fbe23e81923da224a7ddd06c15dc
a26fe046862b4fcf695dd237586134f81953d707
refs/heads/master
2020-08-09T13:38:53.745630
2019-08-02T10:33:57
2019-08-02T10:33:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,445
py
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software #...
[ "prazumovsky@mirantis.com" ]
prazumovsky@mirantis.com
fb7e3fc360eec3bf7e5029668cb7c5c927013bc2
aa43cbcef5414f240e72b6840b1acc462dccc528
/Functions exercises/18.py
147de8be9382b2833c8ca80cfe2d2ce048cf7bce
[]
no_license
Jeevan5955/Python
730a7fd70eb9719e59173231a0530946010da45b
7cd46e46787d5ee51524a551f68975c4c9806e48
refs/heads/master
2022-11-20T11:43:56.586066
2020-07-27T05:51:38
2020-07-27T05:51:38
278,003,415
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
def count_primes(num): primes = [2] x = 3 if num < 2: # for the case of num = 0 or 1 return 0 while x <= num: for y in range(3,x,2): # test all odd factors up to x-1 if x%y == 0: x += 2 break else: primes.append(x) ...
[ "noreply@github.com" ]
Jeevan5955.noreply@github.com
92d91153f08b294489b5212a168455b19ff4682c
cd8ca699f1f7ba14f731db76acc025ad97de01fe
/ref_sys/oper/migrations/0002_alter_invite_status.py
b5418854527b652a7a9dbde1148e21a3edcbc8d4
[]
no_license
valbayzak/ref_system
8784fef3e85683208bed9a0bf3ae7bd632f44146
67fc708d5f28ed2c007a825faa17230460e05481
refs/heads/main
2023-06-03T18:22:01.572896
2021-06-21T16:53:17
2021-06-21T16:53:17
378,987,422
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
# Generated by Django 3.2.4 on 2021-06-21 14:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('oper', '0001_initial'), ] operations = [ migrations.AlterField( model_name='invite', name='status', fiel...
[ "85289417+vallbay@users.noreply.github.com" ]
85289417+vallbay@users.noreply.github.com
5cf35eeab105fc35d939285aa6aaed87c88a0b92
a91b9cc658421d078520f73320bd4551b74ed51f
/dev3/demo3/models.py
cb564a1b90f3dcea0ac7262e543cc3dadbf0c4a0
[]
no_license
2519325088/dev3
e0ea12a54a36dc722747dc693974a0ccd11a5bd9
847a49542c2612d7fc879438d65a542158c93f12
refs/heads/master
2020-05-15T02:19:58.605565
2019-04-19T03:19:56
2019-04-19T03:19:56
182,047,444
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
from django.db import models # Create your models here. class Problem(models.Model): pname=models.CharField(max_length=200) def __str__(self): return self.pname class Option(models.Model): oname=models.CharField(max_length=100) oshu=models.IntegerField(default=0) pid=models.ForeignKey('P...
[ "2519325088@qq.com" ]
2519325088@qq.com
79c1cfdd225efbe367313be720d75fd7941a44b2
4eebce0d0c1132aed8227325bd58faf61a4010c7
/CONTEXT_178/d2.py
7a83e4ac92f0948ab14911f4a674624665be9101
[]
no_license
xu1718191411/AT_CODE_BEGINNER_SELECTION
05836cfcc63dab2a0a82166c8f4c43c82b72686b
e4e412733d1a632ce6c33c739064fe036367899e
refs/heads/master
2021-07-17T00:59:46.315645
2020-09-22T06:14:27
2020-09-22T06:14:27
214,153,758
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
def calculate(n): arr = [0 for i in range(2000 + 1)] arr[3] = 1 arr[4] = 1 arr[5] = 1 for i in range(6, n + 1): arr[i] = (arr[i - 2] + arr[i - 3] + arr[i - 4]) % (1000000000 + 7) print(arr[n]) calculate(int(input()))
[ "xu1718191411@gmail.com" ]
xu1718191411@gmail.com
9906f5196c28ef9676151c8ed0c701f327159f25
96afce5cdd9c636f066830aa41d4eb9fce1a42d1
/pull_list_of_books.py
ffd62cd7061bac27e5b98af8e110f5dcf60eee5b
[]
no_license
davehedengren/authors
d588026f8d29ac96f204bb89d196268ae9fb1faf
94c8a288ad5ea6c59313ce4a609ea7b0bc92e1b7
refs/heads/master
2016-09-06T15:19:03.836097
2014-09-20T02:15:36
2014-09-20T02:15:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
books = requests.get('https://www.goodreads.com/author/list.xml', params={'key':my_key,'id':author_id,'page':pg}) books2 = ET.fromstring(books.content) fields=[0,4,13,14,15,19] for book in books2[1][3]: x = unicode(str(author_id) + '|' + str(books2[1][1].text) + '|','utf-8','ignore') for f in fields: y ...
[ "davehedengren@gmail.com" ]
davehedengren@gmail.com
0f537880f6377398a6e8bee99458346243422035
3eab5590af67374ac8fab14111c3c9f62da3b809
/aes-tests.py
c86125adb3d0b0671a05954e0875255f56fca8a5
[]
no_license
ungear/cardinal
497ed16a0a348155a175d4efc510c3e72d0b5e9b
448ce9282d0fcf665fb5c49083367a8c4888c813
refs/heads/master
2021-09-04T02:08:32.286779
2018-01-14T12:37:26
2018-01-14T12:37:26
114,804,899
0
0
null
null
null
null
UTF-8
Python
false
false
6,915
py
import aes import unittest TEST_MESSAGE_BLOCK = [0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70] TEST_KEY_BYTES = [0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c] class TestKeyExpansion(unittest.TestCase): def testKeyS...
[ "redeemer@inbox.ru" ]
redeemer@inbox.ru
a1206366cfe0cff96c0e2306766ca9fd485e3b71
ec61946a176935044d08cf1244d2185f2460df32
/pyleecan/Methods/Machine/Lamination/comp_surface_axial_vent.py
67a12115e86fe145e22c9c128345b44e666dd252
[ "Apache-2.0" ]
permissive
Lunreth/pyleecan
d3974a144cb8a6c332339ab0426f1630b7516fc9
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
refs/heads/master
2023-06-07T01:46:32.453763
2021-07-01T21:29:51
2021-07-01T21:29:51
383,880,732
1
0
Apache-2.0
2021-07-07T17:47:01
2021-07-07T17:47:01
null
UTF-8
Python
false
false
426
py
# -*- coding: utf-8 -*- def comp_surface_axial_vent(self): """Compute the Lamination axial vent Parameters ---------- self : Lamination A Lamination object Returns ------- Svent: float Surface of the Lamination's axial ventilation [m**2] """ if len(self.axial_ve...
[ "pierre.bonneel@eomys.com" ]
pierre.bonneel@eomys.com
ab8a37c6cec2cd67dee3e609825cc30311aeeacd
6d8ed4233a766ed34f3e3924fcba241e11341cbc
/TestBase64.py
bccaf7d0f0bab3149626f3d0982c6fd43a30a27b
[]
no_license
kuxingseng/learnPython
56b77b01ddfbc3c8483d8abec2bd1eea186b6f19
73a746a9329f0ba3bfabb7f5e47864364ed44391
refs/heads/master
2021-09-12T11:07:33.951552
2018-04-08T02:42:05
2018-04-08T02:42:05
113,518,262
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
# Base64是一种用64个字符来表示任意二进制数据的方法。 # 每6个bit转换为一个字符 import base64 b64_encode = base64.b64encode(b'test') print(b64_encode) b64_decode = base64.b64decode(b64_encode) print(b64_decode) def safe_base64_decode(s): # 数字乘以字符,等于数字个字符组成的字符串 s = s + len(s) % 4 * b'=' return base64.b64decode(s) print(safe_base64_dec...
[ "chshuai@hotmail.com" ]
chshuai@hotmail.com
41496b02cff46275f641d32d95dd21b748f7f1e3
08ff60b74fe11b8aa3d01e69de58a12d44aa6c0b
/webServer/webServer.py
0a08cd1e39bef63318e3ee77a5247383260cec21
[]
no_license
jim-stickney/aquariumController
cee7dc477ff6db64adce91911d90b0158f9b31c1
a3c4de39fafe21a209c4eeae4a7d4712b9e51eb6
refs/heads/master
2016-09-06T09:35:27.389195
2016-02-27T19:13:52
2016-02-27T19:13:52
33,930,196
0
1
null
null
null
null
UTF-8
Python
false
false
2,875
py
from flask import Flask, render_template, Markup import datetime import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy plt.ioff() from dateutil import parser import mpld3 import Pyro4 app = Flask(__name__) data_logger = Pyro4.Proxy('PYRONAME:data.logger') @app.route("/") def hell...
[ "jim.stickney@gmail.com" ]
jim.stickney@gmail.com
0886616bd81e0a2e31e16fed2ae9620947223dac
ae326c4e6a2b2d5b67fa8d175249ef90f6a3021a
/leo/external/rope/ropetest/refactor/extracttest.py
167f7984d254f4be25e2554d9f39807e0827d542
[ "GPL-2.0-only", "GPL-1.0-or-later", "MIT" ]
permissive
frakel/leo-editor
f95e6c77d60485d80fddfbeaf35db961cf691177
b574118ee3b7ffe8344fa0d00dac603096117ac7
refs/heads/master
2020-03-28T10:40:24.621077
2018-10-23T14:39:31
2018-10-23T14:39:31
148,132,817
0
0
MIT
2018-09-10T09:40:18
2018-09-10T09:40:18
null
UTF-8
Python
false
false
42,781
py
try: import unittest2 as unittest except ImportError: import unittest import rope.base.codeanalyze import rope.base.exceptions from rope.refactor import extract from ropetest import testutils class ExtractMethodTest(unittest.TestCase): def setUp(self): super(ExtractMethodTest, self).setUp() ...
[ "edreamleo@gmail.com" ]
edreamleo@gmail.com
044bc7efb85e34003ae56c0d48f464ec535fc949
7700fd9502e46b9c742093ac8748c43919a84091
/rbac_blog/blog/forms.py
aebe7f6c213ef3608de4b1fb267456437a4e718d
[]
no_license
Guo-kai-feng/python_project
e825bf2e20d79bde3facf6e08a4482a025cfe2d4
5a24734ad5d4aa82ac47c5d912d1dc48c32c8f24
refs/heads/master
2020-07-13T22:00:37.493273
2019-08-29T13:07:46
2019-08-29T13:07:46
205,163,822
0
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
#!/usr/bin/env python # -*- coding:utf-8 -*- from blog import models from django import forms class AlterBlogForm(forms.ModelForm): class Meta: model = models.Blog fields = '__all__' exclude = [] error_messages = { 'name': {'required': '不能为空'}, 'user': {'req...
[ "798136317@qq.com" ]
798136317@qq.com
42860a6c8058042cf8d6eefda4f3cc8887a54477
b7ffa11d72642c5b547f4a48307401cbd379cc43
/src/cart/urls.py
5948162b0be5bb65c606f441ca98da30f69d521e
[]
no_license
gummigun/captainconsole-git
8d5a27d042c8a1fe4fa3bf7d89d45ce871ab4eac
886e9a86052684256a5473495759996894b261ce
refs/heads/master
2023-08-14T23:00:02.699957
2020-05-15T23:23:44
2020-05-15T23:23:44
259,331,163
0
0
null
2021-09-22T19:02:10
2020-04-27T13:32:13
Python
UTF-8
Python
false
false
515
py
from django.urls import path, include, re_path from . import views urlpatterns = [ # Home page url pattern path('', views.index, name="cart"), path('add/<int:id>', views.update_cart, name="update_cart"), path('remove/<int:id>', views.remove_cart, name="remove_cart"), path('review/', views.review, n...
[ "gummi.gunnlaugsson@gmail.com" ]
gummi.gunnlaugsson@gmail.com
fba3989988948bd693ff0403cfac404b8e39195b
fbf05e2d3eef31367f26af979150f1d8325f6b2f
/flask_dmango/query/exceptions.py
12742acd9013a856f68e40b5a47283c5465a20f1
[]
no_license
jungkoo/flask-dmango
0b653dac9b72935315244b9ff74b5fc89c5bb542
abecafa611fce10cd34c9b8401df179b163a9424
refs/heads/master
2021-01-10T09:29:01.651686
2016-03-27T08:27:57
2016-03-27T08:27:57
54,324,383
1
1
null
2016-03-22T04:18:53
2016-03-20T15:14:43
Python
UTF-8
Python
false
false
1,152
py
#-*- coding: utf-8 -*- class DmangoException(Exception): def __init__(self, message): self._message = message def _get_message(self): return self._message def _set_message(self, message): self._message = message message = property(_get_message, _set_message) ...
[ "deajang@gmail.com" ]
deajang@gmail.com
cd42b43018616531062a56884c91ab6fd2f1ea44
cc52dc8b6295c9617ae8df40d0dbe9a062f0d7de
/dinerindex.py
44a69ab9afc22b4c8821608ed28a80df8bd6729d
[]
no_license
mariopedregon/python-diner-bottega
f98cbcae3f67145b0a163666eb40ceebf91bdcfe
43829fed3cf982925c45c62932b839ccc5e30c22
refs/heads/master
2020-05-23T06:13:59.391487
2019-05-14T16:45:29
2019-05-14T16:45:29
186,662,610
0
0
null
null
null
null
UTF-8
Python
false
false
2,257
py
def main(): totalCost = 0 print(''' "Welcome to the Bottega Diner , What can we get you started today!" ''') name = input("What is your name?") print("Hello " + name + "!") print(''' You get one entree and two side choices at regular cost. ''') print(''' Here is our menu! ...
[ "mariopedregon93@gmail.com" ]
mariopedregon93@gmail.com
76958178b7438bb05a58d4bf3edd04bf9ee28403
cc212540f928a95fa56f4679e3eb58e2ad329ca5
/annpy/training/trainer.py
c93d497850a77427e0a1ba0888254a24da4a10e7
[ "LicenseRef-scancode-mit-taylor-variant", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
nirvguy/annpy
ec05e07316bddd4bc5fbbd3d9e73ec94dc52a4b9
ea5f92048173d0ebd1ad134cf626fa623569905e
refs/heads/master
2018-06-03T06:11:21.911758
2018-05-30T16:16:46
2018-05-30T16:16:48
118,555,614
0
0
null
null
null
null
UTF-8
Python
false
false
1,346
py
# See LICENSE file for copyright and license details. import torch class Trainer(object): def __init__(self, learning_rule): self._learning_rule = learning_rule self._epoch = 0 self._hooks = [] self._remaining_epochs = 0 @property def epoch(self): return self._epoch...
[ "nirvguy@gmail.com" ]
nirvguy@gmail.com
b089edef3519feb7f892bdd66d7ebb57fe321c27
d214b72b3ae340d288c683afe356de6846a9b09d
/动态规划/最大矩形_85.py
d5fa9f35ee7dab90956eab9b4c2c0e9f34d1993c
[]
no_license
Xiaoctw/LeetCode1_python
540af6402e82b3221dad8648bbdcce44954a9832
b2228230c90d7c91b0a40399fa631520c290b61d
refs/heads/master
2021-08-29T15:02:37.786181
2021-08-22T11:12:07
2021-08-22T11:12:07
168,444,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,071
py
from typing import * class Solution: def maximalRectangle(self, matrix: List[List[str]]) -> int: m, n = len(matrix), len(matrix[0]) num_up = [[0] * n for _ in range(m)] for i in range(n): if matrix[0][i] == '1': num_up[0][i] = 1 for i in range(1, m): ...
[ "m18846183092@163.com" ]
m18846183092@163.com
1fab3a455107a4685915923d7fdca0125d651eae
f7b47ac437f2c60c99fa004a5f11563cc2340c98
/migrations/versions/ba949b44fadf_.py
6caacd88df68bf1244959e34581efd7d76baafd4
[]
no_license
QYJiua/myblogproject
23586970b9b8ccdf7aa4a931adde1a7a4e04a673
0a6749306ca74bb2d7d1f876c03e945a259c0909
refs/heads/master
2023-07-29T22:27:07.373173
2021-09-16T14:43:29
2021-09-16T14:43:29
407,197,481
0
0
null
null
null
null
UTF-8
Python
false
false
1,876
py
"""empty message Revision ID: ba949b44fadf Revises: 7afb21f57fac Create Date: 2021-08-28 22:06:03.824638 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = 'ba949b44fadf' down_revision = '7afb21f57fac' branch_labels = None depe...
[ "1273884908@qq.com" ]
1273884908@qq.com
a7b5924d50b1d26afe48b186debeead1b5c2ba60
5e3768b724a93e834eca6c92f54f45bd45b05106
/automate_models.py
1da485abbe89f744c99b449feb929897d2d07ede
[ "MIT" ]
permissive
BorisBorshevsky/ML-Elections
e10bd578e2923ef15112165702280ceca8f0f285
26a0b7b184deceb7a1c2727ba8e458d565b19512
refs/heads/master
2021-05-06T19:08:15.226036
2018-01-15T00:57:55
2018-01-15T00:57:55
112,019,076
0
1
MIT
2017-12-04T00:48:08
2017-11-25T16:43:39
Jupyter Notebook
UTF-8
Python
false
false
3,584
py
import pandas as pd import numpy as np from IPython import embed from sklearn import clone from sklearn.model_selection import cross_val_score, train_test_split from sklearn.multiclass import OneVsOneClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.naive_bayes import GaussianNB from sklearn.t...
[ "BorisBorshevsky@gmail.com" ]
BorisBorshevsky@gmail.com
1f57a94143af972a289bfc920a65f67f1bd6adf6
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_17171.py
41ccf0e53304977e412d274d7efa76fe1482d35e
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
35
py
# Integer to Boolean return a != b
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
04777f286a93e171d45397ce0a3643795c4b76af
9d3cab321f1b940bc7ef0ffbd1c7779d58008e35
/hooks.py
b2c04ec8ba85f827c9081d4e87b7c411a59aea3d
[]
no_license
celsoflores/orbui
ae37d2497c1eebc3132097d98a1847950cfd6eed
6b8ac794832e4baa6cf5ef8e0d7ba5ed8eda12e6
refs/heads/master
2022-11-13T03:20:40.098283
2016-05-16T22:16:41
2016-05-16T22:16:41
276,276,112
0
0
null
null
null
null
UTF-8
Python
false
false
3,127
py
# -*- coding: utf-8 -*- # Validation hook for relationship # Author: Softtek - MLCS # Date: Jun 2014 # Project: Platypus from cubicweb import ValidationError from cubicweb.server.hook import Hook, match_rtype from cubes.orbui.views.autocomplete_edition_view import AutoCompleteEntityRetriever class Validate_Autocompl...
[ "walter.arriaga@softtek.com" ]
walter.arriaga@softtek.com
c96e3d5f4930ba27639b6713431e4463fe902921
74e516e50d5f7181d0ef340f0941e8ffc7b20022
/1-100/6/sum_square.py
872f7bf384605bbeae6bf4eb7891d10f3711eb67
[]
no_license
js837/project-euler
fb261a8fc2898f4e86bb66ad8c119c961a8178a6
8b32fdbdfda13cf7c8881b400c6ce59334749dad
refs/heads/master
2016-09-05T16:38:09.639874
2015-04-21T21:10:17
2015-04-21T21:10:17
34,351,684
0
0
null
null
null
null
UTF-8
Python
false
false
141
py
# Sum of squares forumla is: n*(n+1)(2*n+1)/6 n=100 sum_sqaures=n*(n+1)*(2*n+1)/6 square_sum=n**2*(n+1)**2/4 print square_sum-sum_sqaures
[ "stacey.jake@gmail.com" ]
stacey.jake@gmail.com
a519de5be7a9fc0af870c2e10b69c7887da9f26a
cf97a7de6fad3c917356a0c7fb75bda1b4e31981
/unravel/text/legal/glossary.py
e866b388acfda0220997586ac84c01a56dd5d2cf
[ "Apache-2.0" ]
permissive
unravel-text/unravel
a2614de23e0676d5b7027d2e397ee39a0d9942e4
d819b90bfd1e4c0dd3157f43595fdbb38ae82d50
refs/heads/master
2023-06-26T13:52:33.611158
2023-06-17T03:41:41
2023-06-17T03:41:41
155,546,598
1
0
null
null
null
null
UTF-8
Python
false
false
25
py
class Glossary: pass
[ "cofiem@gmail.com" ]
cofiem@gmail.com
f841e9e9170838ca8c2972ca807eedb0e4ecd954
e905abd9bb7bd7017657d0a0c4d724d16e37044c
/.history/article/settings_20210208181317.py
5959719e37fa4bb9dcbc2f1420a4a206f030284f
[]
no_license
tabdelbari/articles
a8b921841f84fb473f5ed1cdcda743863e6bc246
f0e1dfdc9e818e43095933139b6379a232647898
refs/heads/main
2023-03-05T10:21:35.565767
2021-02-10T13:35:14
2021-02-10T13:35:14
325,654,973
0
0
null
null
null
null
UTF-8
Python
false
false
3,437
py
# -*- coding: utf-8 -*- # Scrapy settings for article project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/top...
[ "abdelbari1996@hotmail.com" ]
abdelbari1996@hotmail.com
30bcc49e425481fed6a6df0a85ca78f5255b3b93
200abee8ebb5fa255e594c8d901c8c68eb9c1a9c
/venv/03_old/hello_world.py
3ef7463bc3ca43192af6add6ec132d91cd3a73f7
[]
no_license
Vestenar/PythonProjects
f083cbc07df57ea7a560c6b18efed2bb0dc42efb
f8fdf9faff013165f8d835b0ccb807f8bef6dac4
refs/heads/master
2021-07-20T14:14:15.739074
2019-03-12T18:05:38
2019-03-12T18:05:38
163,770,129
0
0
null
null
null
null
UTF-8
Python
false
false
9,760
py
'''def sum(param1, param2): return param1 + param2 # return result to the function caller param1 = int(input()) param2 = int(input()) c = sum(param1, param2) print(c) nlen=0 def checkPalindrome(inputString): nlen = len(inputString) if nlen == 1: t = True else: for i in range...
[ "vestenar@gmail.com" ]
vestenar@gmail.com
fde156d69337a167c10dea149b053022dba9878a
bd38b6be261e997e1a34694b70f3e9fa22e73c8e
/StatMyBallsApi/migrations/0003_goal_goal_date.py
a065c4260cca8911bebe0264d213452e776fbc15
[]
no_license
Strapontin/StatMyBallsDjango
05e73a502a8db8bdeeeef7533a1a3514773261b4
8082b2630a2ddf4dded999636c8fd39b0fb65b0a
refs/heads/main
2023-04-27T17:17:12.815401
2021-05-16T19:27:32
2021-05-16T19:27:32
305,686,523
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
# Generated by Django 3.1.3 on 2020-11-11 10:07 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('StatMyBallsApi', '0002_auto_20201111_1058'), ] operations = [ migrations.AddField( model_name='goal...
[ "cedric.hernandez.soto@gmail.com" ]
cedric.hernandez.soto@gmail.com
3cd5a1b7ce865bf7a94113f781c663ed6ae8ebe9
21ff624abb58c2af27d209f7b1d1e167244b7536
/adminLab/adminLab/settings.py
cb4f9842ab89239aec4bb420614f742c7ea339ef
[]
no_license
SachekDenisHomePc/DjangoLab2-3
95c858bcdcbd6458a5eedd6805245d4217e93e7d
e062898f91fbabb98605a4207953c3786e4751bf
refs/heads/master
2021-05-24T12:18:53.901085
2020-04-06T16:41:56
2020-04-06T16:41:56
253,558,121
0
0
null
null
null
null
UTF-8
Python
false
false
3,314
py
""" Django settings for adminLab project. Generated by 'django-admin startproject' using Django 3.0.4. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os ...
[ "sachek.denis@gmail.com" ]
sachek.denis@gmail.com
19907e7cb61cd025d174242e51357e774a777801
d257ddf7e6959d0989d76080a8a048e82393657f
/002_TemplateMatching/002_template_match_implemented.py
112464bcd0690858ab97442b59d77b3d552eca7f
[ "MIT" ]
permissive
remichartier/027_selfDrivingCarND_ObjectDetectionExercises
d210f37b7baf306dd034c09f62e125b263f8270d
ccd853c975d35df5f31e1a445a1a8757b8bd13f5
refs/heads/main
2023-04-17T08:09:55.465143
2021-05-03T07:11:16
2021-05-03T07:11:16
362,013,745
0
0
null
null
null
null
UTF-8
Python
false
false
2,661
py
import numpy as np import cv2 import matplotlib.pyplot as plt import matplotlib.image as mpimg image = mpimg.imread('bbox-example-image.jpg') #image = mpimg.imread('temp-matching-example-2.jpg') templist = ['cutout1.jpg', 'cutout2.jpg', 'cutout3.jpg', 'cutout4.jpg', 'cutout5.jpg', 'cutout6.jpg'] # Here is...
[ "remipr.chartier@gmail.com" ]
remipr.chartier@gmail.com
3f0ba0135eca1c3fa561a27e6ca70bbfd56d36ce
dbc35bdcec5f64ef8482c709a28e527c6b66d638
/company_admin/urls.py
d643efa64d0a8b4422c90ea707d9d82e77bb0054
[]
no_license
PkQDark/Dosa
2bc001f1ab7c2e15ae2c8fb0f2309185024be590
bcead811892b2f0c06e2cb5e03cf3f98a0dc9b7b
refs/heads/master
2021-01-01T06:56:46.259731
2017-09-19T17:29:43
2017-09-19T17:29:43
97,556,407
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
from django.conf.urls import url from .views import dosing, \ cistern_add, cistern_list, cistern_edit, cistern_info, \ add_fuel, fuels_list, fuel_info,\ keys, edit_key, \ users, add_local_user, edit_local_user urlpatterns = [ url(r'^$', dosing, name='dosing'), url(r'^cisterns/$', cis...
[ "blackbirdvlad@gmail.com" ]
blackbirdvlad@gmail.com
ed0d0eca931fce65500d604ab0cbc8aa1dbd612c
227a045665ea8c5b1822bed84c38b990a1343770
/libs/sms.py
f6376bdddca1492090f0f94c2f3fc68aebad1f1a
[ "Apache-2.0" ]
permissive
theEndProject/aboutTa
f31a1629afdf7fc157e219b2499b47c2c2181e98
33a1e391e56e76006ee6ef3d9102efc496251cb6
refs/heads/main
2023-01-02T01:31:10.635058
2020-10-26T09:33:05
2020-10-26T09:33:05
303,625,794
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
import time import json from hashlib import md5 import requests from aboutTa import config as cfg def send_sms(phonenum, vcode): '''发送短信''' args = { 'appid': cfg.SD_APPID, # APPID 'to': phonenum, # 手机号 'project': cfg.SD_PROJECT, # 短信模板的ID 'vars': json.dumps(...
[ "472437593@qq.com" ]
472437593@qq.com
d8a49d368a82b0008bacdd568c57aa745bde3133
d86ed2c37a55b4a3118131a04f9a68dbd3b51a7f
/sherpatest/lev3fft-bar.py
384437c626b0fbb39addb9d1c5274f6e57b5fd62
[]
no_license
hamogu/sherpa-test-data
f745cc907c2535a721d46472b33f7281bd6e6711
77d9fc563875c59a4acff2960d46180ee7a8ec14
refs/heads/master
2023-06-18T22:30:44.947033
2020-08-03T12:07:13
2020-08-03T12:07:13
275,202,255
0
0
null
2020-06-26T16:38:19
2020-06-26T16:38:19
null
UTF-8
Python
false
false
1,244
py
#!/usr/bin/env python from sherpa.astro.ui import * image_file = "acisf07999_000N001_r0035_regevt3_srcimg.fits" psf_file = "acisf07999_000N001_r0035b_psf3.fits" reg_file = "ellipse(3145.8947368421,4520.7894736842,37.0615234375,15.3881587982,92.2273254395)" srcid = 1 load_data(srcid, image_file) load_psf("psf%i" % sr...
[ "olaurino@cfa.harvard.edu" ]
olaurino@cfa.harvard.edu
51b331eccb9809f73598d78540ae4e6af635ee6f
f83839dfcbd8bfd5c535f819cf9bb9c303ff3f94
/MachineBookExtract/book_tools/characters_tool.py
8dce0f703472fc5e254302b519d10a0b74df7fbc
[]
no_license
pawo97/MachineBookExtract
8cabc4c18a65022c1b61a6bd9e9f47eb60753401
33fab023b7b0e48e5fe043f504269d80cb964237
refs/heads/main
2023-07-25T01:45:43.711512
2021-09-06T21:11:32
2021-09-06T21:11:32
345,401,332
2
0
null
null
null
null
UTF-8
Python
false
false
6,519
py
import traceback from book_tools.characters_person_rate import characters_person_rate class characters_tool: def get_list_non_alpha_numeric(self, words): non_alpha_words = [] for w in words: # blank if w != '': alphanumeric = "" for charact...
[ "pa-wo97@o2.pl" ]
pa-wo97@o2.pl
77c55d04b0a750c8b0c0dc571cf5927a6d78e179
356f3f1b7caf0ccb20cc830d40821dfb2cbda046
/sfit/sfit/doctype/items/items.py
c1943c13dec9e21c63e99267eb3e87e7de102726
[ "MIT" ]
permissive
vignesharumainayagam/sfit
f4b75b9a8b2de08d0eaa4eadbcd3d5e432ffba56
a96afbf35b0e1635e44cb5f83d7f86c83abedb8f
refs/heads/master
2021-09-05T18:22:43.494208
2018-01-30T07:23:02
2018-01-30T07:23:02
104,332,803
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
# -*- coding: utf-8 -*- # Copyright (c) 2017, Valiant Systems and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class Items(Document): pass
[ "vigneshwaran@valiantsystems.com" ]
vigneshwaran@valiantsystems.com
9bd93aab5d5388ddaa38608af37c4a2b0e8f8509
d46db380847d51cea1966ba514d856f22251019e
/app/core/migrations/0001_initial.py
0a6c4c2dffc565e27135176e19bd4e4b03b6e1ba
[ "MIT" ]
permissive
bilesanmiahmad/recipe-app-api
bc3b2004146ed46bbaf427947db63c8215c3230a
b292c0212627513bc62eb48cc187bfb6c5fd0aed
refs/heads/master
2022-12-22T10:08:15.240112
2020-10-01T09:48:27
2020-10-01T09:48:27
294,135,372
0
0
null
null
null
null
UTF-8
Python
false
false
1,715
py
# Generated by Django 3.1.1 on 2020-10-01 08:54 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='CustomUser',...
[ "fbilesanmi@gmail.com" ]
fbilesanmi@gmail.com
75d4242afd465b53edbc623e479a98134dddabf9
1735d7a35e9a3bc9b423d6960310b4bb80ca6b42
/py3bc/17_functions_03.py
deac79e8d38581446c4dc3a10ce91f3d7ee10321
[]
no_license
qwertyzhed/python3bootcamp
38c0c1f2d354094f90db0fb54c9955c1befe4a56
0257ab47155115bf9994e6da77f7daab89d64fc3
refs/heads/master
2020-03-20T18:39:40.989958
2018-06-19T15:54:30
2018-06-19T15:54:30
137,598,832
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
def yell(word): return print(word.upper() + '!') yell('fk you')
[ "alex@gmail.com" ]
alex@gmail.com
bc16f890677503af70743dd56dce78a66b1d4d0b
726c443d00ca8b43cc2a7559c2ae21fbad3bda10
/order/migrations/0008_auto_20191208_1242.py
a5bd9f20b96975e7f9a87f15c41c817b9ec1ba97
[]
no_license
djleeyuanfang/onlineshop
3af8ef9e213ccc3a18f5f61ab20e8c1bfbfdf5b0
f3d15614f4104475a98b3d387aee6d2121639c12
refs/heads/master
2020-11-24T13:37:46.709584
2020-08-29T11:36:38
2020-08-29T11:36:38
228,171,654
0
0
null
null
null
null
UTF-8
Python
false
false
1,498
py
# Generated by Django 3.0 on 2019-12-08 12:42 from django.db import migrations, models import django.db.models.deletion import order.models class Migration(migrations.Migration): dependencies = [ ('order', '0007_auto_20191207_1950'), ] operations = [ migrations.CreateModel( ...
[ "1025939769@qq.com" ]
1025939769@qq.com
fa09f73820c428ce2463a685f915692ae007b9f1
782160673937ccf69c809e1ed3edca6d08bbc171
/Chapter5/5-9.py
667e06267d49334e52d8fc311668b4d42a1e84dd
[]
no_license
ParkEunbin/17.02-Python
6549f4fd10fe366f100082dd3834135aef584562
8e3831d8a911263ddd7b9f83bb26bcc79e34efb0
refs/heads/master
2021-06-18T08:03:07.099654
2021-01-20T05:38:10
2021-01-20T05:38:10
158,062,168
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
#과일 가격계산 fruit={"apple":1500,"banana":1300,"melon":2000} for a,b in fruit.items(): print(a,b) total=0 for c in fruit.keys(): print("%s의 갯수:"%c, end=" ") num=int(input()) total+=(fruit[c]*num) print(total,"원")
[ "noreply@github.com" ]
ParkEunbin.noreply@github.com
2cd28a19444e56e138b55bd4f48633e1c6bb8a0f
085551650c697038bdfaebe4778e9741d3f1431a
/dashboard/urls.py
a596cb731368ad6c8cb3e4c609ca4d104d86ba18
[]
no_license
AlonsoCN/chat-school-project
8029f011645c7043c27fd6583532e6dbc4ad063f
946b19352406804fd363582be56cd58dc426d149
refs/heads/master
2020-04-05T23:15:44.616122
2016-06-07T18:46:18
2016-06-07T18:46:18
60,637,883
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
from django.conf.urls import patterns, url urlpatterns = patterns('dashboard.views', url(r'^$', 'dashboard_view', name='dashboard'), )
[ "luis.alonso.cn@gmail.com" ]
luis.alonso.cn@gmail.com
c42d909697d0db5a72ae51a3c5d635841a1787f8
a8fca7b6bc1f0eeaba12b682a81d880dc71cc929
/FlaskEndpoint/tests/system/test_home.py
38225c4925d80136cac8cbc7e3a04b5a0ac7ca4e
[]
no_license
sineczek/Automated-Software-Testing-with-Python
cb74d8714ad5b2ec9a6ffc013a400f0181f8095b
2e7c4ff4bb5acfd53afb43a4bfa7191eb58a899c
refs/heads/main
2023-04-14T08:15:53.917614
2021-04-24T17:18:23
2021-04-24T17:18:23
345,342,351
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
from tests.system.base_test import BaseTest import json class TestHome(BaseTest): def test_home(self): with self.app() as c: resp = c.get('/') self.assertEqual( resp.status_code, 200 ) self.assertEqual( json.loads(resp.get_dat...
[ "michalzaitz@gmail.com" ]
michalzaitz@gmail.com
8f885274db507628a34e8f8f094526a25c935972
cc9d1aeb8aefe3d4f86c94b4279a64e70bf5fd80
/setup.py
be0365371238e8e2c7a86eb0bd4aa3c81f749446
[ "MIT" ]
permissive
sdelquin/sendgrify
a520a2da7d6c6d7c4707c325f6d67523e53803eb
fe8ee1d0efd0c8d8034d1c57cfc07672f77d7e8e
refs/heads/main
2023-06-11T15:49:27.284693
2023-05-28T12:54:34
2023-05-28T12:54:34
342,843,979
0
0
null
null
null
null
UTF-8
Python
false
false
650
py
# read the contents of your README file from pathlib import Path from setuptools import setup this_directory = Path(__file__).parent long_description = (this_directory / 'README.md').read_text() REQUIREMENTS = ( 'sendgrid==5.3.0', 'markdown', ) setup( name='sendgrify', version='2.0.3', url='http...
[ "sdelquin@gmail.com" ]
sdelquin@gmail.com
4080d41a60b85ff5500efacfc8fa63c51b33899f
2d1ffb862ec65116f88b0986e4f36d36110cbfe5
/app/views.py
ced21fb3eae0537fbf78312e2c9f3eb801e59a90
[]
no_license
stkc282/wedding
c38afc7861119b8cf4490fa35007841d58e161c7
1799b72820787a59d0d5b7edf7748b1ab7af9a98
refs/heads/master
2021-06-18T04:15:20.293547
2019-08-19T10:17:13
2019-08-19T10:17:13
202,826,952
0
0
null
2021-06-10T21:52:12
2019-08-17T02:48:38
JavaScript
UTF-8
Python
false
false
3,288
py
# from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse_lazy from django.views.generic import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django_filters.views import FilterView from .filters import ItemFilter from .forms import ItemForm f...
[ "you@example.com" ]
you@example.com
39d7269798832e93cc7391c6516b8df87b50ca36
59c0669a38c4178f2f5cf8f9dca7553849c286a2
/MyPro/pythonScript/QRCodeDetect/Invoice/hough_tansform_bad.py
437f292bb460649c54b3fb981f99722309b81288
[]
no_license
AUGUSTRUSH8/ImageProcess
f33ceaabaac67436df47fd1e1f115a8f44a6f556
46fc85b61dab52c3876dfacb4dfd22c962dc13bf
refs/heads/master
2023-04-27T21:39:36.044320
2022-07-04T14:59:35
2022-07-04T14:59:35
174,789,186
31
17
null
2022-07-06T20:07:14
2019-03-10T07:01:13
Java
UTF-8
Python
false
false
4,007
py
# -*- coding: utf-8 -*- import cv2 import numpy as np from matplotlib import pyplot as plt import math def rotate_about_center2(src, radian, scale=1.): #入参:弧度 w = src.shape[1] h = src.shape[0] angle = radian * 180 / np.pi # now calculate new image width and height nw = (abs(np.sin(radian)*h) + ...
[ "l" ]
l
f879c61a6efd8aa975d90fa1e48070580dd1f2ae
8081310a546b0bd93abebbac5066c81b21c38482
/utils/helper.py
6aaa4e42e5327833afeea950df2eb77bfb12884c
[]
no_license
Xiang-Deng-DL/GFKD
dd9130169a59216aed63e9fc22baabf758f15add
e68e4d6777af526f84ef1efab0a261cb8f5ac968
refs/heads/main
2023-07-06T18:56:45.224307
2021-08-13T17:37:55
2021-08-13T17:37:55
366,174,979
24
2
null
null
null
null
UTF-8
Python
false
false
9,505
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Nov 13 01:33:09 2020 @author: xiangdeng """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import torch import copy from model.GIN import GIN_dict ...
[ "noreply@github.com" ]
Xiang-Deng-DL.noreply@github.com
0660e025dd554b5703ef032f89a0902e86d1a771
7dad4550554888a865334df8023970378e17ae56
/Longitud.py
e1fbc88390d8150834b146b0e08cdf5e05066f06
[]
no_license
JRLV14/Pensamiento_Computacional
8ba79875bfed8d67e76e3d24847c55d61f47e149
e2af455f1f7ae8922c414617c3b75ada40c7bc4f
refs/heads/master
2023-06-09T22:52:54.986837
2021-07-02T17:43:09
2021-07-02T17:43:09
381,734,397
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
def run(): Nombre = input("Escribe tu nombre: ") Nombre = Nombre.replace (" ", "") letras = int(len (Nombre)) print ("Hola " + Nombre + " Tu nombre tiene " + str(letras) + " letras") if __name__ == '__main__': run()
[ "jrlv4070@gmail.com" ]
jrlv4070@gmail.com
0085fd62735222af905666b50be03358a0c3f7ec
1b52887970b2ed95e73b950862a050b58fa7269d
/network/core_net.py
c17213c039d4648e74e04ed41b5518b5566d0c86
[]
no_license
FreescaleFlyaway/lizard
1516ff009f08a742ad835134f4278202a9714355
3db9d49cb45ff13f295f77fa592467cf793611c9
refs/heads/master
2020-05-19T10:12:13.315447
2018-03-26T08:36:43
2018-03-26T08:36:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,906
py
# $File: core_net.py # $Author: Harvey Chang import tensorflow as tf import numpy as np def actor_net(obs_ph, act_dim, suppress_ratio=1.0): with tf.variable_scope('actor'): obs_dim = obs_ph.shape.as_list()[-1] # the last dim of shape hid1_size = obs_dim * 10 hid3_size = act_dim * 10 ...
[ "zhengwxthu@163.com" ]
zhengwxthu@163.com
14a4fe4b25d073188b3eb9b8c1910bf1d861c999
97e06c68fe4ddb3a93ab665b6c8ae3d835eb484b
/catch/baidubaike_catch_data.py
64196fb01683723e6f1448a6e0a58b0462a3d1d7
[]
no_license
baby-H/MachineStudy
2b4545ff9af00f9121210fc94469db1f60ad259a
4bfb3f9cc13ebbfbf6652d94697d87fd12b47179
refs/heads/master
2020-04-28T03:25:04.244351
2019-05-25T07:44:05
2019-05-25T07:44:05
174,936,531
0
0
null
null
null
null
UTF-8
Python
false
false
1,519
py
# -*- coding: utf-8 -*- # Author: Hu Ying Jie ( huyingjie2123@163.com ) from bs4 import BeautifulSoup import urllib from urllib import request import re import os def get_html(url): return urllib.request.urlopen(url, timeout=20).read().decode('utf-8') temp_str = '' n = 0 f = open(r'test.txt', 'r', encoding='utf...
[ "huyj@tongc-soft.com" ]
huyj@tongc-soft.com
e69735542275999d2049a87b2ac118f4185c1903
5abdea0be9021f13909c38b09a68bde2d153b210
/src/imbalance_strategies.py
da7a33632423a1ac5fad4d93f683776a55ae6493
[]
no_license
NWPU-IST/hbrPredictor
cdcccf0f900d6135f8bab355a71f9b8bc2f2c981
a67ca29f7191f816e8bc388449059984e1d86e81
refs/heads/master
2023-03-19T04:50:15.458017
2021-03-09T15:15:44
2021-03-09T15:15:44
326,311,570
9
1
null
null
null
null
UTF-8
Python
false
false
6,948
py
# -*- coding: utf-8 -*- __author__ = 'Junzheng Chen' import random import numpy as np from sklearn.neighbors import NearestNeighbors from imblearn.over_sampling import SMOTE from imblearn.over_sampling import SMOTENC from imblearn.over_sampling import ADASYN from imblearn.over_sampling import BorderlineSMO...
[ "noreply@github.com" ]
NWPU-IST.noreply@github.com
342d4a56a9680e0518979d48af56e27109bc1403
56c89d49b0b5fd567783f056637a312d81b187bd
/lab 3/a5.py
10240b377d5d4806ada151f46c5f9b54e8e4067c
[]
no_license
vedeninvv/Algorithms
acdfb16721437a81d8b0c5abd5b5185abf45254d
8e4e0bbc9ebf872f44ebbe709b6045f453e42aee
refs/heads/master
2022-12-19T06:08:35.259425
2020-09-28T18:31:35
2020-09-28T18:31:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
fin = open("radixsort.in") fout = open("radixsort.out", "w") input = fin.readline().split() n = int(input[0]) m = int(input[1]) k = int(input[2]) strings = [] for line in fin: strings.append(line[0: len(line) - 1]) i = min(k, m) while i > 0: buf = [[] for j in range(57)] for j in range(n): buf[ord(s...
[ "vedeninvv@mail.ru" ]
vedeninvv@mail.ru
2bd8d6cbcaa1f087d3413725ed8af20316077c61
a20db420b58321756676ddf41a2833f0283c6f66
/src/Chrysalis.py
9b2b01b931d3063fbaa23bb87d37f3ec12972c9c
[]
no_license
CPSibo/Chrysalis
5a3194cfb0be8c24543ffb51dd52643afea9c2b1
a2cfaaf4aeb4ad7adb48f1229ba291a9af6dc263
refs/heads/master
2020-04-15T07:54:00.249188
2019-10-01T01:12:06
2019-10-01T01:12:06
164,506,527
0
0
null
null
null
null
UTF-8
Python
false
false
5,298
py
# region Imports import os import subprocess import pathlib import sys import argparse import json from dotenv import load_dotenv from Utilities.Arguments import args from Utilities.Logger import Logger from Subscription import Subscription from Repositories import REPOSITORIES from Destinations import DESTINATIONS ...
[ "cpsibo@gmail.com" ]
cpsibo@gmail.com
bb6e52fee441903389167e2b4292125b69cdb8b8
ce3964c7195de67e07818b08a43286f7ec9fec3e
/dl_poly/get_pvt.py
6fd5f7613ff6286470a47abe111c368b60d57ff7
[]
no_license
zhuligs/physics
82b601c856f12817c0cfedb17394b7b6ce6b843c
7cbac1be7904612fd65b66b34edef453aac77973
refs/heads/master
2021-05-28T07:39:19.822692
2013-06-05T04:53:08
2013-06-05T04:53:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,852
py
#!/usr/bin/env python # Try retrieving P,V,T, etc. from the STATIS file, may be easier than from OUTPUT... import os, sys, commands def readlines(FILE,n): '''Read n lines from FILE''' for i in range(n): FILE.readline() try: s = open('STATIS','r') header1 = s.readline() header2 = ...
[ "boates@gmail.com" ]
boates@gmail.com
bc643726dc086d01106b5695c1317266b5900390
f269b417034e397139adf2802514165b0eb26f7c
/Python/food_choice_assay/food_choice.py
cea19764b5e3f648af452c4bde1d79a5a3d5567d
[]
no_license
saulmoore1/PhD_Project
2d333f7fdbd8b2b1932007e7cc6e05b3108ed325
a235bf8700e4b5a311fc1dfd79c474c5467e9c7a
refs/heads/master
2023-08-03T17:51:17.262188
2023-07-26T12:35:37
2023-07-26T12:35:37
158,314,469
1
2
null
null
null
null
UTF-8
Python
false
false
27,255
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ SCRIPT: FOOD CHOICE A script written to analyse the food choice assay videos and Tierpsy-generated feature summary data. It calculates, plots and saves results for worm food preference (for each video separately). @author: sm5911 @date: 21/03/2019 """ #%% Imports ...
[ "saulmoore1@bitbucket.org" ]
saulmoore1@bitbucket.org
b536af523c5e69ea18ffeaf04df2fc80b986dd1f
a1aea2567fd4176fdcdf66250e933b32d1d3db27
/vdW_force.py
1587ff12264830cc0ea3cc4fa7f4c66e98e01689
[]
no_license
toftul/fiber_binding_advanced
c4df1a7b60d392745ac3eb8e4424659750ccafa4
5fc737de0ce6f4d4253932044f6f1ef8b4e11e0d
refs/heads/master
2021-05-15T15:02:11.976213
2018-05-25T11:39:00
2018-05-25T11:39:00
107,274,065
0
0
null
null
null
null
UTF-8
Python
false
false
2,400
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat May 12 12:06:10 2018 @author: ivan """ import numpy as np from scipy.integrate import quad import matplotlib.pyplot as plt def integrand_drho(H, A, y, phi): def f(rho): C1 = H + A + y + rho * np.cos(phi) return(rho...
[ "toftul.ivan@gmail.com" ]
toftul.ivan@gmail.com
9cfcec30b699e1871fb85a7b2b0c628a6a1052da
2502facbf895f3e27b3ce77b223452171ab1d532
/utilities/customLogger.py
be6c5325a9ac366defb8ba9f630e35b0df58ac5b
[]
no_license
Kavya1709/nopCommerce
538dac6e9f62dd8fa716a77bde4c119347d49c8d
024c149a2bf5caa493c82929feb6497fe22eda8a
refs/heads/master
2022-12-17T19:49:41.865873
2020-09-11T13:38:55
2020-09-11T13:38:55
294,701,209
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
import logging class LogGen: @staticmethod def loggen(): for handler in logging.root.handlers[:]: logging.root.removeHandler(handler) logging.basicConfig(filename='.\\Logs\\automation.log', format='%(asctime)s: %(levelname)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p') ...
[ "kavyaprakash17@gmail.com" ]
kavyaprakash17@gmail.com
6000fbee425fac253a92896202dbe378a0ccf7ea
e50994cf741d5221080cc5c4d7a5e53e43d58b36
/20190119/testcase2/test3.py
5c1a53666c46fa65064b98a62bfa812c154edbd9
[ "Apache-2.0" ]
permissive
sly1314sly/selenium_basic
5fff7f9aa11d95d892ebfe013007bc5aaba2ea84
53bc2bf4d8a81bcd71f7fe5910cbc34ecfc6869a
refs/heads/master
2020-04-13T08:49:01.812269
2020-01-10T09:29:10
2020-01-10T09:29:10
163,092,788
1
0
null
null
null
null
UTF-8
Python
false
false
544
py
import unittest class TestStringMethods3(unittest.TestCase): def test_upper3(self): self.assertEqual('foo'.upper(), 'FOO') def test_isupper3(self): self.assertTrue('FOO'.isupper()) self.assertFalse('Foo'.isupper()) def test_split3(self): s = 'hello world' self.ass...
[ "928446761@qq.com" ]
928446761@qq.com
edc58be22d8da0892938e5e2414d522b0016bddc
9b9ae524386d16396a8c69d671d1e588ac1fb7f9
/week13/maoyan/maoyan/items.py
25ca9521abf8bf9253dec44bfa2263b81e6b7382
[]
no_license
WeiZhixiong/Python006-006
d4d15977ac3f44566123cb029ae2015e2d24f133
6263b78f211c66332c27949bacadd28f6f19ffdb
refs/heads/main
2023-04-15T10:35:42.376722
2021-04-29T05:25:50
2021-04-29T05:25:50
322,471,510
0
0
null
2020-12-18T02:52:30
2020-12-18T02:52:30
null
UTF-8
Python
false
false
271
py
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class MaoYanItem(scrapy.Item): movie_name = scrapy.Field() movie_type = scrapy.Field() show_time = scrapy.Field()
[ "zhixiong.wei@qq.com" ]
zhixiong.wei@qq.com
df268ec9f4a7b257c6ca9892b85d4be9155b5b5c
27824a7e18764de82ad0a80025d1390094abfe65
/introduction/start.py
63a1e1009de6a0feceda5b9d04e8a08b2cf91b94
[]
no_license
oliviergimenez/python-training
aec501740130edc39b78dd87976384732e5fb7df
3d0f8f19d1d3dff9d372950dbb95a5f043d60f97
refs/heads/master
2023-01-28T21:06:46.182978
2020-12-08T07:40:34
2020-12-08T07:40:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,081
py
# --- # jupyter: # jupytext: # formats: ipynb,py # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.7.1 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Getting started # # ## Pyt...
[ "nicolas.barrier@ird.fr" ]
nicolas.barrier@ird.fr
07b351aef518fd66e7d562465c2c742ce426dfb8
f73d1fcf5ab749a703881971310518762c823713
/BarrettDylanRockPaperScissors/RPS.py
8824f750bb8b3436f96c8a008a04bf22e446583f
[]
no_license
DylanBarrett/IT1040-Mizzou
42f3766158b1c30178f8004303062ea06b7026f8
64c7e07af83d45c79974e469d4225adbf145ae08
refs/heads/master
2020-03-26T15:33:24.407276
2018-08-16T23:52:42
2018-08-16T23:52:42
145,050,316
0
1
null
null
null
null
UTF-8
Python
false
false
5,172
py
import random import pickle class GameStatus(): def __init__(self, name): self.tie = 0 self.playerWon = 0 self.pcWon = 0 self.name = name def get_round(self): return self.tie + self.playerWon + self.pcWon + 1 # Displays program information, start...
[ "noreply@github.com" ]
DylanBarrett.noreply@github.com
e396119de92c2a9d0442f560d6abcdd894436e17
484f111548e9d7192a5748eb202c08802484d747
/fw/flash.py
8361fc57a27f60367e21952493f6068dcb8a037a
[ "Apache-2.0" ]
permissive
cmcmurrough/moteus
dafb2e5224409aaf1d57b66f58965d298845678d
6780967ec40ad7f1ab76cdbd7021f2d07b739efe
refs/heads/main
2023-07-11T10:29:58.645291
2021-08-13T13:38:32
2021-08-13T13:38:32
396,627,837
2
0
Apache-2.0
2021-08-16T05:07:08
2021-08-16T05:07:07
null
UTF-8
Python
false
false
2,193
py
#!/usr/bin/python3 # Copyright 2021 Josh Pieper, jjp@pobox.com. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
[ "jjp@pobox.com" ]
jjp@pobox.com
df68a0ed14ee3d9143270beb9c86e524ff1c717e
907d9d6ab8a2bb296a704e9338badde755e7d9f3
/testSpn.py
1e0679dff3917a51a722731b42278161d6d16da2
[]
no_license
nisargap/spn-crypto
ddd6082629677fd21879e9feecac51b7bef73363
f072264123c0058b5e89356689e11b37723b9d8f
refs/heads/master
2021-01-10T05:43:45.970971
2015-10-05T19:31:30
2015-10-05T19:31:30
43,708,513
1
3
null
null
null
null
UTF-8
Python
false
false
1,541
py
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Author: Nisarga Patel ' Document: testSpn.py ' Description: This is a test file for the Substitution Permutation ' Network module created to encrypt binary plaintext strings. The ' exact key for this test is defined at the top of the SPNencrypt ' module...
[ "patelnisarga1@gmail.com" ]
patelnisarga1@gmail.com
fbb7c0b773c663b598397c813719054f055a6897
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/lib/python2.7/site-packages/openpyxl/worksheet/pivot.py
b1905be6298ea1c57f774cae821fbc482b8bf25b
[ "Python-2.0", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
4,984
py
from __future__ import absolute_import # Copyright (c) 2010-2015 openpyxl from openpyxl.descriptors import ( Bool, Integer, String, Set, NoneSet, ) from openpyxl.descriptors.serialisable import Serialisable class PivotSelection(Serialisable): pane = Set(values=("bottomRight", "topRight", "bo...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
40b5a7f814ed68cbc12969cb867747a1687e0e1b
ac1e60fd4bb3b7cc04e413ae394836abad8947b1
/email_verification_api/wsgi.py
e60483842d64ef833b28dfd12be0cfe5d6bf9eba
[]
no_license
Taycode/email-verification-api
9c48642f34671232c388a7c763541f02ff9ae614
f3abe35a010d5b2d3d2c269fa728eb40f26630a0
refs/heads/master
2020-08-04T11:00:29.103892
2019-10-01T14:49:14
2019-10-01T14:49:14
212,114,710
0
0
null
2019-10-01T14:16:59
2019-10-01T14:16:58
null
UTF-8
Python
false
false
421
py
""" WSGI config for email_verification_api 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefaul...
[ "tay2druh@gmail.com" ]
tay2druh@gmail.com
575ec3fde6902f2199dd97ec7bcc0c58ef03bab3
ec0b547830e10e11de13f6d5e375f2ee746c64ff
/pos_retail/wizards/__init__.py
8dfb1563dff3e3ae399cce0e45dc71a6969c3c6c
[]
no_license
babarlhr/third-party-apps
cc4a83df48e00d35c3fd7bbd06ed9ef738f1ba99
f882e65b9873a937aa7f62171bcefb8b4982366b
refs/heads/13.0
2023-04-02T14:32:37.980953
2021-04-10T19:58:07
2021-04-10T19:58:07
584,900,514
1
0
null
2023-01-03T20:06:22
2023-01-03T20:06:22
null
UTF-8
Python
false
false
150
py
from . import StockImmediateTransfer from . import RemovePosOrder from . import PosRemoteSession from . import PosMakePayment from . import CashBoxOut
[ "lucaslsoto95@gmail.com" ]
lucaslsoto95@gmail.com
84c1041757c13e9f14ac643dc4bfae4d661fad21
04a17e0f43befad7be3518a99eadbf5123e31dd3
/semana5/MyHolidays/myholidays/holidays.py
b49f9254358e14edfca59fffdb88133641e5f8d4
[]
no_license
grcopia/NappAcademy
587b49263e704b56d804567ec1efadc1c72bf0c0
64f3732c3ca4337c4811bee3736be61b6169985a
refs/heads/master
2023-04-23T04:47:45.789203
2021-04-17T18:33:32
2021-04-17T18:33:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,427
py
from datetime import date from datetime import datetime from dateutil.parser import parse class MyCalendar: def __init__(self, *args): self.datas = [] self.check_holiday() for item in args: if isinstance(item, date): self.datas.append(item) elif ty...
[ "vagnerpelais@gmail.com" ]
vagnerpelais@gmail.com
4d641b7b452b7e43378724205d8c5690b44cd11a
5b9c50baaa3182868c9f4a744a7361abe422a510
/tests/test_base.py
f7f5133f7951074f1287e3257df0b73b129805e8
[ "MIT" ]
permissive
jasontangxf/geometer
3307889c087a1f498d58b5ae6bbf1b037119ca46
931df0aff6c680ad13a6c5989f2a89c276370c5e
refs/heads/master
2023-01-06T17:39:41.837342
2020-11-07T15:42:10
2020-11-07T15:42:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,251
py
import numpy as np from geometer.base import TensorDiagram, Tensor, TensorCollection, LeviCivitaTensor, KroneckerDelta class TestTensor: def test_arithmetic(self): a = Tensor(2, 3) b = Tensor(5, 4) # vector operations assert a + b == Tensor(7, 7) assert a - b == Tensor(-3...
[ "jan.rv@t-online.de" ]
jan.rv@t-online.de
1c10e66617f17ae42de12803b880e514daca1829
e4e44097320d056f3768eb3a53f28f4c19cdc7ce
/findSubstring.py
cb2251aa8f1dbb867af20c7a065e334f694cbfda
[]
no_license
amisyy/leetcode
0640e009c02956778f402eb89b74c98c36882d44
ba8ab343a246aa3eead75a23dc69b5a76680d290
refs/heads/master
2021-06-03T06:27:38.216035
2020-11-08T06:59:40
2020-11-08T06:59:40
103,757,845
0
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
class Solution(object): def findSubstring(self, s, words): """ :type s: str :type words: List[str] :rtype: List[int] """ word_length = len(words[0]) word_num = len(words) length = len(s) words_dict = {} for i in words: if i ...
[ "amisyy@sina.cn" ]
amisyy@sina.cn
4c10f5dbe66a1ecd6b2cb0e0d1cb6a3481ac2ca0
1b94c7cfd66804fe8d40b5def35e4b9b18d69ba2
/old_py2/controllers/apiai_controller.py
dfff3930d0c210a7d0d4eb8c2af95d15d9d7e374
[ "MIT" ]
permissive
the-blue-alliance/the-blue-alliance
3dc210a9611ce9b240907ffd420f78040318dcdc
6d42f3cdb2f785d192f2871419e58aaae3445029
refs/heads/py3
2023-08-22T21:02:36.398100
2023-08-22T19:14:01
2023-08-22T19:14:01
888,427
344
263
MIT
2023-09-14T18:35:20
2010-09-04T20:34:11
HTML
UTF-8
Python
false
false
635
py
import json from base_controller import LoggedInHandler from helpers.apiai_helper import APIAIHelper from models.sitevar import Sitevar class APIAIHandler(LoggedInHandler): def __init__(self, *args, **kw): super(APIAIHandler, self).__init__(*args, **kw) def post(self): if self.request.headers...
[ "noreply@github.com" ]
the-blue-alliance.noreply@github.com
08273d87152e339e41af2407ff4bbad8cc28e79c
f2b91692a434ee79ff5d68ed3111d60d90315f00
/src/command_modules/azure-cli-servicebus/azure/cli/command_modules/servicebus/_validators.py
6a4509e9f662b17fe8494f89fce3441aa9719205
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cal5barton/azure-cli
f883bc7d481b163d4c4af1fa154a990182e5de80
6ebc6f810f32b8fce30a360633a70fcfdea15e7b
refs/heads/dev
2023-05-24T18:12:36.151238
2018-07-12T16:16:29
2018-07-12T16:16:29
140,749,210
0
0
MIT
2023-05-15T18:58:31
2018-07-12T18:13:18
Python
UTF-8
Python
false
false
4,322
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "tjprescott@users.noreply.github.com" ]
tjprescott@users.noreply.github.com
00cbe7556cb10b9d98cdd70f69f8f9392fef4b9a
325512acc574dffa50d3d7d9645391e2928df127
/main.py
137f8ee5729044c1f7a1566aec02584d702c168f
[]
no_license
sunca7/ff
8366d4d6d7c7f22201ae9c324960a16dea045437
a6f43f55dc7ed1602908f58c3710cf0b1846b8d9
refs/heads/master
2022-12-01T02:57:12.815321
2020-08-04T14:35:41
2020-08-04T14:35:41
285,006,260
0
0
null
null
null
null
UTF-8
Python
false
false
8,190
py
import os import requests from flask import Flask, render_template, request from bs4 import BeautifulSoup from save import save_to_file LIMIT = 20 db = {} level_four_db = [{'company': '삼성전자', 'company_url': '/item/main.nhn?code=005930'}, {'company': 'NAVER', 'company_url': '/item/main.nhn?code=035420'}, {'company': '셀...
[ "kosah302@gmail.com" ]
kosah302@gmail.com
9ec5875503577bf114e6521a6174ca229c968b95
c1e0874f55d05ee990ed2d637c2910701b32d246
/soft_uni_OOP/Defining Classes/lab/scope_mess_3.py
03d81f4774c92bdc435a7583da245e72d79f8461
[]
no_license
borislavstoychev/Soft_Uni
5d047bef402c50215e0abc825476326889ffd0be
ccc0b2fb18f8ad6809b475eb20e82a9e4eb4b0b0
refs/heads/master
2023-05-11T12:27:08.672058
2021-05-28T18:00:10
2021-05-28T18:00:10
277,556,731
3
2
null
2021-02-11T19:57:37
2020-07-06T13:58:23
Python
UTF-8
Python
false
false
311
py
x = "global" def outer(): x = "local" def inner(): nonlocal x x = "nonlocal" print("inner:", x) def change_global(): global x x = "global: changed!" print("outer:", x) inner() print("outer:", x) change_global() print(x) outer() print(x)
[ "stoy4ew@gmail.com" ]
stoy4ew@gmail.com
8ff2bd1fe3bcae9eaddea886a981234c02e1ccc7
8faa47c6b03940bc382a654fcc5ac99babd99d4e
/auth.py
9cbb74114c71c49a43a0eb158b05868fef3f1d79
[]
no_license
TobiasGrosch/sprint-velocity-planning
7262038cf2359f0d55834c9333386be1342f947c
e575416fcc3bb70ebe9d1c0702c1d2a6c4606bdd
refs/heads/master
2023-04-19T07:22:35.989809
2021-04-25T06:47:53
2021-04-25T06:47:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,050
py
import json from flask import request, _request_ctx_stack, abort from functools import wraps from jose import jwt from urllib.request import urlopen AUTH0_DOMAIN = 'fsnd-groscht.eu.auth0.com' ALGORITHMS = ['RS256'] API_AUDIENCE = 'sprint_vel' ## AuthError Exception ''' AuthError Exception A standardized way to commu...
[ "ubuntu@ip-10-101-1-61.eu-central-1.compute.internal" ]
ubuntu@ip-10-101-1-61.eu-central-1.compute.internal
2e93f6d19a1051930f841ffd22fefbc664870f58
3c2dd7932308cf47ca9910d963affa5a67beb97f
/model/callback.py
c2177b884353fae0e4f5603bcba99584c3450724
[]
no_license
HaroldLiuJ/CGSum
cb65dc65a7c300f32412bf7f3fbfea4c07d2680c
ef372b0b126553d531fedb53f0a1a72b36a82b63
refs/heads/main
2023-06-06T10:17:54.917198
2021-06-25T14:09:23
2021-06-25T14:09:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,289
py
import os import sys import time import numpy as np import torch from data_util.logging import logger from data_util.utils import calc_running_avg_loss from fastNLP.core.callback import Callback, EarlyStopError class TrainCallback(Callback): def __init__(self, config, patience=10, quit_all=True): ...
[ "cxan@ChenxindeMacBook-Pro.local" ]
cxan@ChenxindeMacBook-Pro.local
490df8c8807c725fdf915ccba2ff1496bd0ac937
60cb975f3e0251c73c457271bce8a7b2036e422b
/studysrc/mytest/websppider/transtest.py
23c308fa3b1c83bba1c6cd379e0c29e746a2f19d
[]
no_license
49257620/reboot
0a2341f23bc1a6f3ae47b59f772919228c623544
86b348228d1a25d78c45b0e9022d7c773544373b
refs/heads/master
2018-11-17T19:19:58.969710
2018-09-25T03:15:57
2018-09-25T03:15:57
125,727,532
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
# encoding: utf-8 # Author: LW import urllib.request import urllib.parse import time import random import hashlib content = 'what fuck' url = 'http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule' data = {} ''' 1523493384696 1523493371204 351ac046404e1bbcb9442615f964a96d cb2731255a15489013919b3788953b...
[ "49257620@qq.com" ]
49257620@qq.com
8b37209b33d201b789d2658845aa87843ef7a8e0
db144fdc9a1948cce066bed20912c32e1a18a8aa
/accounts/views.py
49c0aa25bf7c13a2faa3ed61bf4acc3c6a75f458
[]
no_license
masato932/django-blog3
cd01101cbffdbaa33d2cb9bf696e5a5cdf8cd6fa
769068ba356cf8e0cc0bbde76e82e116e58b8bab
refs/heads/main
2023-05-13T20:14:43.706480
2021-06-05T14:03:13
2021-06-05T14:03:13
365,480,981
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
from django.shortcuts import render, redirect from allauth.account import views class LoginView(views.LoginView): template_name = 'accounts/login.html' class LogoutView(views.LogoutView): template_name = 'accounts/logout.html' def post(self, *args, **kwargs): if self.request.user.is_authenticate...
[ "masatowada66@gmail.com" ]
masatowada66@gmail.com
9ed2c8e05d8b011321f54977f2d63a7de27935b1
e93117371d0c5c6b3eb0b177fc4b2acc8f9524de
/TestFiles/test_cp.py
8d5a4bfb1545f4f8b2be1b6b96f89b41a25a789c
[]
no_license
marthinwurer/TournamentRecorder
94dfc8af28455e3844628616cef45d1e3a3fdd6c
87f04c4caa68d12935e339d253525e3364ab8f68
refs/heads/master
2021-03-24T09:11:44.460711
2016-11-29T04:47:44
2016-11-29T04:47:44
67,151,794
0
0
null
null
null
null
UTF-8
Python
false
false
998
py
""" This file tests the create player (cp) method of the API Author: TangentTally """ import unittest import sys sys.path.insert(0, "../src") import tr_api class TestAp(unittest.TestCase): def setUp(self): tr_api.createPlayer(1, 'Evan') self.topdict = tr_api.listPlayers() self.topdict2 = t...
[ "evanditto9@gmail.com" ]
evanditto9@gmail.com
69f95154a6b1698708090146d7eafde38aea3f17
955781aa0539cb4b61c189ad86d61f332c60f307
/project/rmethods_rec_train.py
bfe1b663e861095bfec55ea328a660409faea4a1
[ "Apache-2.0" ]
permissive
LARC-CMU-SMU/coleridge-rich-context-larc
26039a436555fb0ab0d38f4af442f389f32da5ca
a0b6cba59b843bbaf98cdcb5e661b1c524a79db0
refs/heads/master
2020-04-08T18:45:30.960621
2019-06-15T10:02:11
2019-06-15T10:02:11
159,623,704
0
0
null
null
null
null
UTF-8
Python
false
false
2,811
py
import argparse import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.pipeline import Pipeline from sklearn.compose import ColumnTransformer from sklearn.linear_model import SGDClassifier from sklearn.utils import shuffle fr...
[ "philipskokoh@gmail.com" ]
philipskokoh@gmail.com
8c8a966e406d530b9ab30c7abb9645b76d1a5898
bf833d3048f1eabc3e47101412ac77d14a43f332
/src/augment_me.py
e546249219c040609b22161b7fa6182efc20e5ce
[]
no_license
DavidDavidsonDK/Person-Detection
c6c177ab0ddd42320741796edc372e4a5f42d11a
718d16e8cd1f5b4e876951365c75ee88d752c308
refs/heads/master
2020-04-11T22:34:42.747205
2018-12-29T07:15:33
2018-12-29T07:15:33
162,140,905
0
0
null
null
null
null
UTF-8
Python
false
false
2,962
py
import numpy as np import cv2 from ano_parser import PascalVocWriter,PascalVocReader from plot import draw_rect from PIL import Image import matplotlib.pyplot as plt import math from tqdm import tqdm from rotation import Rotation from random_translation import Translate from random_scale import Scale from horizontal_f...
[ "d.kprogrammer0.0@gmail.com" ]
d.kprogrammer0.0@gmail.com
e5be18291d8f73243a4c9f25f3a48e3ce073b814
a7e40fc92f2681beef1c41afb0e348a910d0dc06
/misc_tool/fixfix.py
07be6bea5d3f88e9f20eff4f8610623fda11e076
[]
no_license
yacheng1127/YW-Python
ae0e7480859e21c6aaab20a166561c818387ec44
e88cfd202c7449a23dd8bb8d659bbdc0df1a1ff9
refs/heads/package
2020-12-24T17:26:23.905392
2013-09-26T13:41:49
2013-09-26T13:41:49
7,425,035
0
1
null
2013-05-14T13:04:40
2013-01-03T15:36:42
Python
UTF-8
Python
false
false
22,076
py
################################################################################################ ## fixfix: post-processes drifter tracks ## xiuling.wu ## August 9, 2011 ## ## Jim Manning modifications ## October 2011 ## March 2012 ## Nov 2012 trouble with ginput causing segfault ## STEPS ARE AS FOLLOWS: # - load all...
[ "james.manning@noaa.gov" ]
james.manning@noaa.gov
9c85a3150d50dce18e37c4fd3faae85c74370fc8
32b628faa8b8ca8d11d8837cc495c0013f58b71a
/scripts/matrix2matrix.py
db91bd6468fb706939d9b97cc2c5810de2e084d0
[ "BSD-2-Clause" ]
permissive
jaquol/cgat
40b81617625ae9f0ba352caf38c2afd6a13c58f6
d26fab0dff2192d4accc128d2895e668254d7b65
refs/heads/master
2021-01-12T22:33:46.186451
2016-01-15T16:56:43
2016-01-15T16:56:43
49,868,597
1
0
null
2016-01-18T10:10:24
2016-01-18T10:10:24
null
UTF-8
Python
false
false
17,852
py
''' matrix2matrix.py - operate on matrices ====================================== :Author: Andreas Heger :Release: $Id$ :Date: |today| :Tags: Python Purpose ------- * full: full matrix with row and column headers (unless --no-headers is given.) * sparse: sparse matrix * phylip: phylip formatted matrix, but ...
[ "andreas.heger@gmail.com" ]
andreas.heger@gmail.com
b62893ee1712e3ddf4365071e6596e2d820ac5dc
cf57cd3355471f035ca429302742b4eb4baf1214
/Comparações/SHI-TOMASI/SHI-TOMASI_sift.py
7a91ba9cb2b4ae56f47b6d8069c64cbee54c797b
[]
no_license
RobotColony-UEFS/feature-match
c56d78230d86948e5612a9645c71a0647eb94604
ac421989aa1ee3893243122a0cf041b30e038a28
refs/heads/master
2022-11-27T15:31:20.570505
2020-08-04T19:24:17
2020-08-04T19:24:17
285,063,878
0
0
null
null
null
null
UTF-8
Python
false
false
3,365
py
#coding: utf-8 import cv2 import numpy as np import mysql.connector import math mydb = mysql.connector.connect( host="localhost", user="descritores", passwd="12345678", database="referencias" ) def desvio (vetResult): # Desvio padrão populacional soma = float(sum(vetResult)) media = soma/len(vetResult) r...
[ "samuelreboucas07@hotmail.com" ]
samuelreboucas07@hotmail.com
c7323c619a500829099442ad1c4249689bb1dc1e
ca292e954d548c62f0c4604dc46cb9faac914a2f
/max_of_two.py
b87410a3cb5d90d5d170799f4f46230a547ce7f4
[]
no_license
rawgni/empireofcode
e73ee032266e85bb062ad03e34f8c37bf69072c3
8f00029ddc38759c77ac6308fe65ae07c44960fc
refs/heads/master
2021-06-08T22:50:44.828587
2016-11-29T13:59:00
2016-11-29T13:59:00
71,658,210
0
1
null
null
null
null
UTF-8
Python
false
false
38
py
def my_max(a, b): return max(a,b)
[ "ingwar.wirjawan@gmail.com" ]
ingwar.wirjawan@gmail.com
b17874da1534c1635ec7a910c3ce1d32eda7ff50
5252efd0922ea5be93dfc63db6de282184505346
/ds/tests/test_linked_list.py
72dc77493dcc768bc3624b55b39b9e4ab6554da2
[]
no_license
faddy/ds-with-python
157b35a5f22107f6dfba7604ed3ca87d33df6c5e
6fba0eeb4552fa03fcbfb2f84ce747a2dc2c3e79
refs/heads/master
2016-09-11T05:02:18.879067
2013-08-18T21:47:46
2013-08-18T21:47:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,453
py
import unittest from data_structures.linked_lists import Node from data_structures.linked_lists import UnorderedList class TestNode(unittest.TestCase): def setUp(self): self.input_list = [0, -4, 10, None, 'one'] def test_object_creation(self): node_list = [Node(item)for item in self.input_l...
[ "fahadghanidgp@gmail.com" ]
fahadghanidgp@gmail.com
d716a64d25d8ed53904876bd54c1a98a7b88deb5
9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d
/python/uline/uline/uline/handlers/app/distributor/balance/distributorBalanceList.py
4116d637e99da40fb08daa5c8fdc82a1bdbb023b
[]
no_license
apollowesley/Demo
f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8
471c4af95d3a7222d6933afc571a8e52e8fe4aee
refs/heads/master
2021-02-15T04:01:51.590697
2018-01-29T01:44:29
2018-01-29T01:44:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,367
py
# -*- coding: utf-8 -*- from __future__ import division import tornado.web import tornado.gen from uline.handlers.baseHandlers import DtAdminHandler from .form import DistributorBalanceList from uline.public.constants import TO_PAY, PAY_CHANNEL from datetime import timedelta, datetime from uline.public.permit import ch...
[ "36821277@qq.com" ]
36821277@qq.com
6f4fda92cc404753602829b7b45f67c7d15c83ed
d3cc5966bccf06dd733bc6b51a0c4d9d8fc1baec
/ingest/ingest-equipment.py
0c39157df34390570655eea8020c053643c2272b
[]
no_license
zhongh/Additive-Manufacturing-Processing-Ontology
0229464dfe9e474b1e2b50abefe48a6436cb4569
a729aef5db049de13718c9b4de56ad93f7ec7985
refs/heads/master
2020-03-23T15:18:22.076341
2016-11-30T21:11:26
2016-11-30T21:11:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,639
py
__author__ = 'congrui_li' from SPARQLWrapper import SPARQLWrapper, JSON from rdflib import Namespace, RDF import json import requests import multiprocessing from itertools import chain import functools import argparse from Maybe import * import collections def load_file(filepath): with open(filepath) as _file: ...
[ "lic10@rpi.edu" ]
lic10@rpi.edu
48056c7a32622758cfb3818b9273a4f1de5b1921
0475b7d5791114c913e0ccc432ea7893fcd5182d
/webServer/webServer.py
f7b6750739694524227ed9c31fa897f53dcbaa67
[]
no_license
jonzhaocn/python_projects
5c7717f5e81248e99f3252bba94c81d0cf3b6d5f
22d171aebd46590661c0ea3fc20a3fa5bef8bafd
refs/heads/master
2021-09-13T00:25:45.990594
2018-04-23T07:20:06
2018-04-23T07:20:06
87,550,515
1
0
null
null
null
null
UTF-8
Python
false
false
7,828
py
import socket import os import logging import subprocess # 自己写的一个简单的we服务器代码,实现了get、post class WebServer(object): def __init__(self): self.HOST = '' self.PORT = 80 self.root_dir = 'd:/root_dir' # 文件的根目录 self.server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # 设置协议、套接字 ...
[ "1044264932@qq.com" ]
1044264932@qq.com
690ebfa7539e477c986cc44439b64ed513a1e44b
6356b828b1209c409be87783107ad2e96f7fc0e4
/data/main.py
aff69002d470a47b481ce58543aede4cf670b59e
[ "MIT" ]
permissive
vkazei/deeplogs
01e4d1eedbb220b921a2ccd7a2b015b684006086
4f6f853ce608a59e9d4b1a3160eb6b0035f333c0
refs/heads/master
2021-07-09T20:01:48.121545
2020-09-15T16:14:15
2020-09-15T16:14:15
194,487,355
33
18
null
null
null
null
UTF-8
Python
false
false
37,572
py
#%% [markdown] # # Smart velocity analysis : mapping raw data to velocity logs #%% #(c) Vladimir Kazei, Oleg Ovcharenko; KAUST 2020 # cell with imports import importlib import multiprocessing import os import sys import time import pickle import threading import random # learning import keras # madagascar API import ...
[ "vkazei@gmail.com" ]
vkazei@gmail.com
59c2e6f44d3b4e5943e33fae3055bca489248b1f
0d261e74c5cfcc7631cf17e5e5ea67ac146c9929
/1-Neural_Networks_and_Deep_Learning/vectorization.py
7a583c48d8b1449c4511c9e9c14c5de5001332b3
[]
no_license
zoro16/deep-learning
61c4b2d85867fc9761badf1286a29dcc1360130c
4130b3591bb04cff5771e7cca0e122ab897afff0
refs/heads/master
2021-09-10T12:19:14.013642
2018-03-26T06:11:30
2018-03-26T06:11:30
113,404,656
1
1
null
null
null
null
UTF-8
Python
false
false
383
py
import numpy as np import time a = np.random.rand(1000000) b = np.random.rand(1000000) started = time.time() c = np.dot(a, b) ended = time.time() print("Vertorized version: {} ms".format(str(1000*(ended-started)))) c = 0 started = time.time() for i in range(1000000): c += a[i] * b[i] ended = time.time() prin...
[ "mohamed.saleh16@gmail.com" ]
mohamed.saleh16@gmail.com