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
222718a959e5bd245577f86359c4d1d915c8e4de
4d159501df67958bfd036890e598ca183eec04d3
/2019-03/03-22/1987.py
f4cd0b55695d24126c08955b50b98b326c782924
[]
no_license
nonameP765/back-joon
96a413bff4e7d5b3716135981936d76880b871c9
4fceaa6d8dbbb65615b39c643dd809ad96104369
refs/heads/master
2020-04-21T08:01:20.666912
2019-03-22T04:59:18
2019-03-22T04:59:18
169,407,280
0
0
null
null
null
null
UTF-8
Python
false
false
999
py
R, C = map(int, input().split(' ')) ma = list() for _ in range(R): ma.append(list(input())) visited = dict() # for i in ma: # for j in i: # visited[j] = False stack = list() stack.append(((0, 0), {ma[0][0]}, 1)) result = 0 while stack: (i, j), his, w = stack.pop() result = max(result, w) ...
[ "nonamep765@gmail.com" ]
nonamep765@gmail.com
268d1107553e0d64655c555214adb75eadca9ab8
2c21254a661be85ed9c32a52eef59145fbff47f6
/vla_heracles/akl_21cm_basicplots.py
c14c912b2a56c5c21ca0a4df74f86cde58f6d126
[]
no_license
e-koch/hi_reduction_scripts
3c53f975c91fbc4165fb3161baf6cabedd388ebc
7bfa47e1ae9b7afaa5d2eb42fe59e06b5f0c108b
refs/heads/master
2020-05-30T15:08:34.796321
2015-02-09T17:39:49
2015-02-09T17:39:49
24,244,846
0
0
null
null
null
null
UTF-8
Python
false
false
1,572
py
""" NAME akl_21cm_basicplots DESCRIPTION Routines to make basic plots for archival VLA 21cm data sets in CASA. """ ###################### ### Python Imports ### ###################### # python stuff import os import string # casa stuff from tasks import * from taskinit import * import casac # my casa routines i...
[ "adam.leroy@gmail.com" ]
adam.leroy@gmail.com
05e30d153853d6385d245fca6c9009a2a9f99ad0
dbe5f1910740790424ee4b2ed532f6b1fd9c43ca
/Ch03/trees.py
748bdf0d232c9e22ff60306d26e65c91f7ba4906
[]
no_license
LilyEvansHogwarts/Machine-Learning-in-Action
fb9a6fb6e2e0ad74bd030423c91b25245671cfe1
a4b0fca65c9386691a0eafd928909b76ec199a04
refs/heads/master
2020-03-19T20:02:35.347487
2018-08-11T14:49:02
2018-08-11T14:49:02
136,885,464
0
0
null
null
null
null
UTF-8
Python
false
false
5,855
py
from math import log import operator import cPickle as pickle import matplotlib.pyplot as plt def createDataSet(): dataSet = [[1, 1, 'yes'], [1, 1, 'yes'], [1, 0, 'no'], [0, 1, 'no'], [0, 1, 'no']] labels = ['no surfacing','flippers'] return dataSet, labels def calcShannonEnt(dataSet): numEntries = l...
[ "825196119@qq.com" ]
825196119@qq.com
9417a2d81014f8d9d45e035d274bdd828ab730f5
ea6b1d189cf8790c63f20d44280b32dcb1241c53
/models.py
fd9f6cf9539b2466ea7abc5be76350bdf133ee51
[ "MIT" ]
permissive
shawnlwh/Intelicopter
4f6ed94e4f3bb649c7aef3c4b301c69fc8625c8d
63be713947e00190ffa26ff376903c8f766ccf20
refs/heads/master
2021-01-01T15:21:31.675132
2017-07-01T04:34:24
2017-07-01T04:34:24
97,601,199
0
0
null
2017-07-18T13:25:24
2017-07-18T13:25:24
null
UTF-8
Python
false
false
937
py
from django.db import models class Question(models.Model): id = models.IntegerField(primary_key=True) text = models.CharField(max_length=500) question_type = models.IntegerField() # 1 radio, 2 checkbox, 3 textbox, 4 number class Meta: app_label = 'intelicopter' class Option(models.Model): ...
[ "intelicopter@gmail.com" ]
intelicopter@gmail.com
62e00397bdca170e760161a284a8c644777dd7ed
912de9589ffe83dd24d93519640676fcb4697758
/app.py
7eda825ccff5d567990b4d37079d0afcb8eaed94
[]
no_license
GabsGear/python-chatbot
8c3d39a704d50ebc18e2b772ff007bd3b82de922
7d34a836dff83c1a079fe314e9454f0fec082ed3
refs/heads/master
2020-03-28T12:00:35.033836
2018-09-19T22:34:52
2018-09-19T22:34:52
148,263,661
2
1
null
2018-09-19T00:52:01
2018-09-11T05:11:41
Python
UTF-8
Python
false
false
2,494
py
# -*- coding: utf-8 -*- """ Aplicação flask para integração com javascript do chatbot. -Função: Esse módulo processa o as requisições ajax e cria as rotas para a comunicação do backend (python) com o frontend (javasript). São criadas duas rotas, a default do index e a roda /...
[ "gabriel_ghellere@hotmail.com" ]
gabriel_ghellere@hotmail.com
7c15bbbe621e0478c4b046f2d33f6dd8574221e0
2e9fff3c63d4ec1f06ae0eaa8866632d16c0da9a
/comboloader/utils/__init__.py
d6eb296808e31b4011e33c41d477ef01edaad80e
[ "MIT" ]
permissive
chrisgeo/comboloader
94d9c11e8dfc5cfca6072c77097f2193a4c68704
5e41030e4ee1d2c361ffccf9b8d740e0c6cc5942
refs/heads/master
2020-05-17T23:59:32.683451
2011-03-19T03:54:48
2011-03-19T03:54:48
703,488
1
0
null
null
null
null
UTF-8
Python
false
false
141
py
from comboloader.utils.request import HttpRequest from comboloader.utils.request import FileRequest __all__ = ['HttpRequest', 'FileRequest']
[ "chrisageorge@gmail.com" ]
chrisageorge@gmail.com
b1ce1d444d255954376ea5a95935dd7ed85b3984
6ed4e7982ab439ec328dc350c032e462032a1f52
/ecommerce/urls.py
c78cb2bf1d1bcb3c81d6b2f4f2615641d4c71884
[]
no_license
CarloAndrePonceMiranda/ecommerce-python-django-
160724845e9cc77ba984499a93b7f5a3dbe48c6a
7ff746a87cbe64264134409e7e226202eb3f657d
refs/heads/master
2020-03-17T08:46:28.032107
2018-05-28T03:27:50
2018-05-28T03:27:50
133,449,236
0
0
null
null
null
null
UTF-8
Python
false
false
2,338
py
"""ecommerce URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
[ "chinacles.p@gmail.com" ]
chinacles.p@gmail.com
78165711f9f54a6d337940ec1f5da4a9f0fdc181
15288dfd27c7d078220c4657c25f2d724a7814f9
/Hough/FindLinesWithConvolution_lineaFija_conLib.py
7d48a013b36097f34808c8de7b68694b3b3ade8e
[]
no_license
ulisesbussi/agriculturaUNQ
842b046e9b0736b096adfc1f140b155598393e6d
681d2b8951412fe316333cb36fc7b37ea793eb39
refs/heads/master
2022-09-08T21:36:57.051342
2020-06-06T00:08:54
2020-06-06T00:08:54
269,812,942
0
0
null
null
null
null
UTF-8
Python
false
false
3,047
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Oct 17 16:30:00 2019 @author: nicolascuedo """ import cv2 import numpy as np import matplotlib.pyplot as plt import imutils import sys sys.path.append('/home/braso/Agricultura_UNQ/') import imgTools path="" baseDir = '/home/braso/Agricultura_UNQ/gps...
[ "ulisesbussi@gmail.com" ]
ulisesbussi@gmail.com
8a25522473a43e8baf06083a54452cfeba9a122a
e50c2c36395a54314b81a6d49426bb1f0db63454
/0x0A-python-inheritance/2-is_same_class.py
e6f1931bad18bba614461651e0f174cfaba0876e
[]
no_license
mfcrespo/holbertonschool-higher_level_programming
7d68a5f5341199f7d8c89f97bb8ae53539200b32
0cc42c79f9e111e83ab6a4a922f734e479d45d6f
refs/heads/master
2022-12-16T03:16:50.558519
2020-09-22T03:51:36
2020-09-22T03:51:36
259,427,611
1
0
null
null
null
null
UTF-8
Python
false
false
378
py
#!/usr/bin/python3 """ My Module one testing objects """ def is_same_class(obj, a_class): """ Function that tests whether an object is part of a class Args: obj (object): the object to test whether it is part of a class a_class (class): tests if obj is part of it """ if type(obj) == a_...
[ "mafe_crespo@hotmail.com" ]
mafe_crespo@hotmail.com
d89f8d14b5c6239228b5ddd4ab94d560a840e0f5
21aa0d0ad6a1dbedaf25039c58b5b6b00acddf2f
/pppoe_clients/create_data_for_cont.py
db640105f0ae23cadf53aac79a32e61613aeaa39
[]
no_license
Mr-Method/radius_cluster
447866e1201cc3ffe8a48d6adf788d170b0dcc7d
68d9f24e30d9bd2e2e17db291f9f9ddd8245748e
refs/heads/master
2022-01-05T17:51:05.126657
2019-07-17T13:30:14
2019-07-17T13:30:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,716
py
#!/usr/bin/python3 import mysql.connector import sys import os docker_compose_config = open("/usr/local/docker/pppoe_clients/docker-compose-all.yaml", "w") docker_compose_config.write("version: \"3\"\nservices:\n") print("Start script") cnx = mysql.connector.connect(user="abills", database="abills", password="abi...
[ "devyaterikovrg@gmail.com" ]
devyaterikovrg@gmail.com
9569e88a4594523c588bf67478cf3e69e5fa07d3
eae3d77ac72c168cee7701462f1fc45d7d4dcd91
/Tree/5176_이진탐색.py
1d5de72b6fe0d9ddc3f43d237019f001829c7471
[]
no_license
ByeongjunCho/Algorithm-TIL
ed2f018d50bd2483bd1175ff9bf7e91913c14766
ad79125a1498915fe97c1d57ee6860b06c410958
refs/heads/master
2022-07-19T15:12:23.689319
2020-05-18T08:37:09
2020-05-18T08:37:09
256,399,493
0
0
null
null
null
null
UTF-8
Python
false
false
286
py
T = int(input()) for tc in range(1, T+1): N = int(input()) V = [0] * (N+1) L = [0] * (N+1) R = [0] * (N+1) # 이진트리 구현 i = 1 while (i << 1) < N+1: L[i] = i << 1 if (i << 1) + 1 < N+1: R[i] = (i << 1) + 1 i += 1
[ "jjgk91@naver.com" ]
jjgk91@naver.com
8c07092c0bcae4a40186249a8274441335e9611c
f6ff6d0543cf71fa7fb098398d4df0bfedb7796d
/scrapy/static/cvedetails_all/cvedetails/sqlitepiplines/pipelines.py
2a900b63f755838098a348d97251df05aaa31fec
[]
no_license
luweiwei1111/spider
f9b66bf70c2e0a062a77ee329f8463d3c4311eff
413e249ba7c01c9fb6f95014285ad7b18ab4f934
refs/heads/master
2020-04-13T04:52:20.407361
2019-01-14T11:37:04
2019-01-14T11:37:04
162,973,832
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
from .sql import Sql from twisted.internet.threads import deferToThread from cvedetails.items import CvedetailsItem class CvedetailsPipeline(object): def process_item(self, item, spider): Sql.ctl_tb_cve_details() if isinstance(item, CvedetailsItem): product_id = item['product_id'] ...
[ "499327236@qq.com" ]
499327236@qq.com
0390cf14a44d57b25e8b3c0ebc2916b8fc6d3a9e
0290ab831c3f8cfa15b96a10d365522186a1989b
/Chapter8.py
2bf2f871849612aa8757fab9432ab01597e7849d
[]
no_license
YaraShqairat/Data-Analytics
df32d3846cbebf2321dacbec4e8f8fc30ad1af0f
a6e76a2e12943b79fc42f339706894719f1891ad
refs/heads/master
2020-06-17T02:30:06.583004
2016-12-04T12:43:05
2016-12-04T12:43:05
75,048,240
0
0
null
2016-11-29T10:35:40
2016-11-29T05:53:17
null
UTF-8
Python
false
false
10,340
py
# -*- coding: utf-8 -*- """ Created on Fri Dec 02 19:35:30 2016 @author: Yara """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import pandas.tools.rplot as rplot from math import sqrt from scipy.stats.stats import pearsonr movie_user_preferences={'Jill': {'Avenger: Age of Ul...
[ "noreply@github.com" ]
YaraShqairat.noreply@github.com
5e727bcc433916148a8ee29a86d9215992dd31cb
b74d972dcfd49d1dc883ce05b6d986b7d7302b78
/PythonForDB/pyMongoDB/aggregate.py
36fa42ecd4b9f96727b7b9826ebd12375c9cf15c
[]
no_license
chibinjiang/PythonProgramming
89fd7e261e4240ab12a550b23100358684bd85be
1326f04ac9c60f8f08590e3de28c2da417fc7e85
refs/heads/master
2021-06-01T13:23:43.768372
2016-08-13T14:48:16
2016-08-13T14:48:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
from pymongo import MongoClient from datetime import datetime def Main(): client = MongoClient() db = client['test'] coll = db['restaurants'] cursor = db.restaurants.aggregate([ {"$group": {"_id": "$borough", "count": {"$sum": 1}}} ]) for document in cursor: ...
[ "jiangzhibin2014.xujie@gmail.com" ]
jiangzhibin2014.xujie@gmail.com
a5a7c1d9ef537a9a0aa51093cae9292d3fa855e5
0a470223cbd3913ebcb2884a378701281fd7e190
/Python/payPal.py
af33196b61338bfeed1a6f0c63fb7334703f2072
[ "MIT" ]
permissive
rgomeztinoco/poo_uber
e0148f5891ece4c7351029483acfffe161129476
c705268820408dc5ee60a8a23e2cd05967642988
refs/heads/main
2023-08-11T11:43:55.578502
2021-09-28T23:53:11
2021-09-28T23:53:11
410,744,951
3
0
null
null
null
null
UTF-8
Python
false
false
147
py
from payment import Payment class PayPal(Payment): email = str def __init__(self, id, email): super().__init__(id) self.email = email
[ "gricardo2213@gmail.com" ]
gricardo2213@gmail.com
8d8925efde16c4003a98fd70ac774e62a2624dca
330fc58b4e6c13191e7b33018ce08992b1e7e558
/webcrawler.py
f491a61889176274ea8a129e0702286b1811e3ce
[]
no_license
geekchick/webcrawler
95c8da0e89c3ee79b8bfda1c1b1814f4e6e28c93
64cede7cc3ed45594719de28252414745297623f
refs/heads/master
2020-06-19T08:35:05.155670
2019-07-12T20:45:33
2019-07-12T20:45:33
196,642,634
0
0
null
null
null
null
UTF-8
Python
false
false
1,802
py
import time import re import requests def get_page(url): try: html = requests.get(url).text # REGEX that removes HTML tags from content html_result = re.sub(r'^<\w+>+|<\D.*>+', '', html) return html_result except: return "" def lookup(index,keyword): if keyword in index: return ...
[ "tsims25@gmail" ]
tsims25@gmail
f54c397fddb8caace6c6c6214ff9823b3b661f1d
0dd45f7e1902203d444aea57eff0abcdeafdcac6
/mysite/polls/admin.py
d5771f19b6a322503e743eab6d1c694c2ad44e5d
[]
no_license
edgarapaza/django_test
db59b4f7eed3a7be0acfd19ccb669ed1fd89c0d8
102a4daf9b0262d6cd64c5d87fd656f387ab16f0
refs/heads/master
2021-01-02T08:19:25.545419
2015-03-17T16:17:42
2015-03-17T16:17:42
32,404,765
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
from django.contrib import admin from polls.models import Choice, Question, Alumno class ChoiceInline(admin.StackedInline): model = Choice extra = 3 class QuestionAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['question_text']}), ('Date information', {'fields': [...
[ "edgarapazac@gmail.com" ]
edgarapazac@gmail.com
6b4be6ecc9101d935111c0ed37e634b79186215c
335c1b0c61c657aaf99b7f619b6cd5afe713c2e9
/twilio/rest/ip_messaging/v1/service/__init__.py
3d0b8c883d40cc86b658fcefb75125dce27d5c1c
[ "MIT" ]
permissive
quippp/twilio-python-old
4be71100e401f64dcac1c67c8862b6aef56b3690
72f60dbadd10b592e2df1e09ae615ea450eee1d9
refs/heads/master
2020-12-31T01:22:56.054868
2016-03-30T20:00:10
2016-03-30T20:00:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,566
py
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio import deserialize from twilio import values from twilio.instance_context import InstanceContext from twilio.instance_resource import InstanceResource from twilio.list_resource impo...
[ "cdpadron@twilio.com" ]
cdpadron@twilio.com
9338a95c41cae7202c0e88725f49aa7c6e13ab84
f0accea25f6e4aba841b3f95738dcd1f435bb60d
/start.py
85bf6503e1b482d54d5909b1bb5711175073d947
[]
no_license
Marcel-B/python_and_c
e50f7d0e878fc5a9bb84602fc6abf6cddb48849c
760a28a46329dcf160e73dd9369ab000ec42e4c4
refs/heads/master
2021-01-20T06:04:47.774960
2017-08-29T21:00:47
2017-08-29T21:00:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
52
py
import sum print(sum.test_function([1,2,-3,4,-5,6]))
[ "git@b-velop.com" ]
git@b-velop.com
5348ca8caa5c82aced3d9f1de1cbe0371a60cdd7
f9a9cf28697864ddd22e5bef0c53876f990b84d1
/TaskB_evaluation/task4_subtaskB_evaluation.py
85b84b113660fa2622c891779141a025f734ec79
[ "Apache-2.0" ]
permissive
StevenLOL/Task-4-Large-scale-weakly-supervised-sound-event-detection-for-smart-cars
7c0daf1decc9b42ead877317a84b53bcfe8c9e2d
fb6ccfb2c701644f5730d067648d0763b297369c
refs/heads/master
2021-01-19T06:15:42.901344
2017-08-17T00:35:51
2017-08-17T00:35:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,007
py
import os import sys import sed_eval import numpy def test_dcase_style2(argument1,argument2): reference = os.path.join('data', 'sound_event', argument1) estimated = os.path.join('data', 'sound_event', argument2) print reference print estimated reference_event_list = sed_eval.io.load_eve...
[ "ankit.tronix@gmail.com" ]
ankit.tronix@gmail.com
b0b3c05453401ebbb64dba16ac466064debbfaa2
5b4d346111b48354761e54b414a18ca2a3525bd7
/run.py
2212ab6adaac961c8347ad6c9f16e0695f9bf8d2
[ "MIT" ]
permissive
adampetrie/lint-review
10dc85c7e88bb3ea8c9faf6a7f544a07553ad17f
cfa0b4fcc30bd5f86f977e95d93ab22dc8201592
refs/heads/master
2021-01-18T11:53:41.980426
2016-03-30T16:05:36
2016-03-30T16:05:36
53,705,602
0
0
null
2016-03-12T00:42:34
2016-03-12T00:42:34
null
UTF-8
Python
false
false
1,938
py
import argparse import lintreview import lintreview.github as github import lintreview.tasks as tasks import logging import pkg_resources import sys from flask import url_for from lintreview.web import app from lintreview.github import get_repository from lintreview.github import get_lintrc from flask import Flask, re...
[ "matt.mohan@wishabi.com" ]
matt.mohan@wishabi.com
e26590a60fff52527c78ee44f867845070c480c9
6bba9d31ace7942e55563aa407a0782ca1b77423
/model_time.py
2e15cd06e62300f287a1d27d8596a7d1094cafa3
[]
no_license
jodyphelan/minION
220fe05126437d997229b804e71e66b63a93134e
1453683cd9361ae3ff844111f393aab9e4aeff2f
refs/heads/master
2021-09-16T10:49:16.833455
2018-06-20T02:23:23
2018-06-20T02:23:23
113,188,937
0
0
null
null
null
null
UTF-8
Python
false
false
902
py
from __future__ import division import sys import gzip import datetime import re if len(sys.argv)!=2: print "python model_time.py <fastq>" quit() fastq = sys.argv[1] prefix = fastq.split("/")[-1].split(".fastq")[0] IN = gzip.open(fastq) times = [] i=0 while True: name = IN.readline() if name=="": break seq = IN....
[ "jody.phelan@lshtm.ac.uk" ]
jody.phelan@lshtm.ac.uk
eaa8c8e1adaeb2d380883ba7d6df82a6f5a7a9ec
0e1bcbc109e028849b3767c71a4fed4508488c33
/youtube/migrations/0032_delete_user.py
c54f32ce1477954ca20fb289fd9d1b13351f8966
[]
no_license
seunghyun1003/youtube
7dbc631d14556c15a767429caac45f7fc706c44c
59b88325693682a56f633bb68d7b4a78aaea0921
refs/heads/main
2023-03-24T03:39:04.300111
2021-03-24T06:48:32
2021-03-24T06:48:32
328,170,795
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
# Generated by Django 3.1.5 on 2021-01-26 11:35 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('youtube', '0031_user_email'), ] operations = [ migrations.DeleteModel( name='User', ), ]
[ "s961003-@naver.com" ]
s961003-@naver.com
efa5c09e00baf175a267323493146e4a079511df
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_5/sctjas002/question4.py
e4b18527ed1d0802f17d9b728e65f1ab2eec2bbd
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
import math (fx)=input('Enter a function f(x):\n') for y in range (10,-11,-1): for x in range (-10,11): if y==round((eval((fx)))): print('o',end='') elif y==0 and x==0: print('+',end='') elif y==0: print('-',end='') elif x==0: print...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
b92ace36f8eaa5fa5bd1a781ed1656742c2db3c5
a2c90d183ac66f39401cd8ece5207c492c811158
/Solving_Problem/daily_222/1111/17140.py
524cee2fdd156023f681b4bf34cde15944c9a1c3
[]
no_license
kwoneyng/TIL
0498cfc4dbebbb1f2c193cb7c9459aab7ebad02a
c6fbaa609b2e805f298b17b1f9504fd12cb63e8a
refs/heads/master
2020-06-17T11:53:38.685202
2020-03-18T01:29:36
2020-03-18T01:29:36
195,916,103
0
0
null
null
null
null
UTF-8
Python
false
false
1,924
py
from collections import deque from heapq import heappop, heappush def rcal(): global y ls = [] mx = 0 for i in range(x): su = len(bd[i]) cnt = 0 for j in range(1,101): if bd[i].count(j): heappush(ls,[bd[i].count(j),j]) cnt += bd[i].c...
[ "nan308@naver.com" ]
nan308@naver.com
007d27bff9bd5c24e936f616d5b2368292ab0cf1
512d49dd411a04c339bf99961cc8aa99c4533d5e
/W4/PCA_DowJones.py
075ca6a0cc3a085202f2c9f8a2305f4846793586
[]
no_license
ConsVin/DataAnalysis
dcea72d5065a05d28ad621e31515cd25ed53d104
d97f95aa59aaef98840b206f6ca11e65fe1bd63b
refs/heads/master
2021-01-12T01:19:30.742005
2017-03-12T17:54:09
2017-03-12T17:54:09
78,371,703
0
0
null
null
null
null
UTF-8
Python
false
false
1,484
py
# -*- coding: utf-8 -*- """ Created on Sun Feb 12 09:09:07 2017 @author: Const """ #%% Load data import pandas as pd data_train = pd.read_csv('close_prices.csv',parse_dates = True,index_col = 'date' ); #%% Run PCA and get minumum number of components to achive threshold Variace from sklearn.decomposition import PCA ...
[ "bwmuscat@gmail.com" ]
bwmuscat@gmail.com
d9f702fdfe98cd1a53fa3b8a951531a21492f339
d4748eba0dd6939cc8deb4e19d33e55ea618ddc6
/Rx/Synchronizer.py
e0307aa4778585067f20fc41baaccae561b36a40
[]
no_license
Freesail/thz_torch
83e4c7f6a631c5d6158f39dbe4a4a6d15c935832
1834e86e33a06867326d00e5808dcb474147bdcd
refs/heads/master
2022-12-05T23:27:41.617252
2020-08-23T10:22:33
2020-08-23T10:22:33
224,428,572
0
0
null
null
null
null
UTF-8
Python
false
false
7,459
py
import numpy as np import queue import threading from collections import deque import matplotlib.pyplot as plt from scipy.stats import linregress import ruptures as rpt DEBUG = False class Synchronizer: def __init__(self, sample_freq=1e3, mode='data', cal_syn_t=5e-3, cal_frame_t=5e-1, cal_reset_...
[ "imperialfreesail@gmail.com" ]
imperialfreesail@gmail.com
5cdf85ba465ab7aaaa182ded86ebf52307f484ae
15543f551edb912d18a482679f79add8737334b5
/fuzzers/060-iologic_modes/fuzzer.py
f1908e6c5085c4d6065bad75fa43b065e5c51e46
[ "ISC", "LicenseRef-scancode-dco-1.1" ]
permissive
ironsteel/prjtrellis
833dbee437456ff48156d309b6f301573f218da1
ed7f48f0b02eb656e63c62f9519e5249aa58e4c5
refs/heads/master
2020-04-02T03:47:01.270620
2018-10-17T11:00:21
2018-10-17T11:00:21
153,983,943
0
0
ISC
2018-10-21T07:31:38
2018-10-21T07:31:38
null
UTF-8
Python
false
false
1,469
py
from fuzzconfig import FuzzConfig import nonrouting import pytrellis import fuzzloops jobs = [ { "cfg": FuzzConfig(job="IOLOGICL", family="ECP5", device="LFE5U-25F", ncl="empty.ncl", tiles=["MIB_R14C0:PICL0", "MIB_R15C0:PICL1", "MIB_R16C0:PICL2"]), "side": "L", "si...
[ "davey1576@gmail.com" ]
davey1576@gmail.com
ffb8258cf1a80a62d1d90935856093f0714380cc
e6f396eb1c6d5eb0f01a40e8e5f74f5fd6376864
/metadata-ingestion/tests/integration/mongodb/setup/generate_large_collection.py
8c7ef0a0af5031e8b5ebd734c59d479ca7bcf1ce
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "MIT" ]
permissive
Echelon77/datahub
b612363efb1f63cd759be1bfcc0ff973a169d9da
5cc923a56894a72871d706de75f6b5e6ae93687d
refs/heads/master
2023-08-25T02:29:58.627864
2021-10-13T07:02:51
2021-10-13T07:02:51
404,210,407
1
0
Apache-2.0
2021-09-08T04:37:41
2021-09-08T04:27:29
null
UTF-8
Python
false
false
766
py
import random import string """ Generates a large "random" collection of fields to populate mongo init script Run it with `python generate_large_collection.py >> mongo_init.js` to add it to the init script """ num_fields = 500 # first 200 fields have low probability fields = [(f"field_{i}", (10 if i < 200 else 99)) f...
[ "noreply@github.com" ]
Echelon77.noreply@github.com
d05003a259c2b5693b88338c908b7f7ec5e82c33
c9491e79819feb5bf1c40185b5b327a1c67e3ee3
/coursera-nanjing-20190303-ex9.py
36a220167e70a330d6612d746f24aa22a7f68549
[]
no_license
volactina/Python-learn
b6d53042203dd8041eaa84b1a15bb2baae16afaf
95c8bf3f4665817ac6abdcfa05b35d5681eec3f5
refs/heads/master
2020-04-26T02:39:47.308352
2019-03-04T06:24:14
2019-03-04T06:24:14
173,241,213
0
0
null
null
null
null
UTF-8
Python
false
false
1,367
py
''' 用字典创建一个平台的用户信息(包含用户名和密码)管理系统, 新用户可以用与现有系统帐号不冲突的用户名创建帐号, 已存在的老用户则可以用用户名和密码登陆重返系统。 建议基本框架为: ''' userinfo={} def newusers(): username=input('create your user name:') if username in userinfo: print('name has been used, try another!') else: password=input('type your password...
[ "noreply@github.com" ]
volactina.noreply@github.com
39cf81d58260db13f7473d19227fae4bc09d4527
8c8600f4d4d775091da08c523b436a6fe3d2fde5
/amzmri/services/asin_summary_service.py
8a6141a980fdcda7f034c1f370561b8a55053686
[]
no_license
skucher/Baziiq-competitor-analisys
e07fb0d8e97b2aa042a1817d75ab396200aea546
1e7c3bad5139483f3a65c1af3a26bc41656974c8
refs/heads/master
2021-01-20T08:53:12.593776
2017-07-19T16:01:41
2017-07-19T16:01:41
90,190,964
0
0
null
null
null
null
UTF-8
Python
false
false
3,499
py
''' Created on 24 Aug 2016 @author: sergeykucher ''' class AsinSummaryService(object): ''' classdocs ''' def __init__(self, xcell_data_access_layer): self._xcell_data_access_layer = xcell_data_access_layer def _fillBsrChange(self, list_bsr_ranks, dict_asin_to_report): ...
[ "sergeyku4er@gmail.com" ]
sergeyku4er@gmail.com
86f3d3b6748e13a36db86d14877ef490983cf5f6
f9b4dfeac9d46e092a03eec66e40dc733dfaa43b
/Data_Structures/Linked list.py
c22aa8ef473f498f569e2fdc483a6501efb32b97
[]
no_license
Pavan-GL/Data-Structures-Using-Python
7a19f1055a9f04cb8b03f645ac6a69d4ff590da5
b221d74e157046ab19456ba13bc9ba559a90fa00
refs/heads/main
2023-08-14T16:33:30.257927
2021-09-21T12:24:37
2021-09-21T12:24:37
408,666,756
0
0
null
null
null
null
UTF-8
Python
false
false
2,282
py
# insert, delete at begin O(1) # end O(n) class Node: def __init__(self, data=None, next=None): self.data = data self.next = next class LinkedList: def __init__(self): self.head = None def print(self): if self.head is None: print("Linked list is empty") ...
[ "pavanglsmg@gmail.com" ]
pavanglsmg@gmail.com
947f2b5bf16862360348bec1cc27affc927bdb01
2f0465288c026a19262c5d24bb0c7c9d7a71bca5
/test/test_api.py
bc7b0a2083bec6ae87f1e7ab4374ace1daa44772
[ "MIT" ]
permissive
yeezon/yhsd-api-python
6f5b82d6613a3a3ee5620aa28eb0d8d7c8b99fbd
b693cfd90a256f45c8c8cc2c45a72cded59fff32
refs/heads/master
2021-01-10T01:14:53.536792
2016-01-26T07:35:55
2016-01-26T07:35:55
50,411,939
1
1
null
null
null
null
UTF-8
Python
false
false
1,152
py
# coding: utf-8 ''' API单元测试类 ''' import sys import unittest sys.path.append('..') from yhsd_sdk import api, utils import appconfig class TestPrivateApp(unittest.TestCase): def setUp(self): utils.disable_urllib3_warning() self._app = api.Api (appconfig.AppToken) def test_get(self): ...
[ "wangzilong@yeezon.com" ]
wangzilong@yeezon.com
8e1d2e59dc58a0bb2ba1e55f74ca0834e44ba5ef
e10217d377826fbfd59f2a6be524b8e7165a1168
/DetectPeople.py
243f3fcda33ce3eb09d1c8df412409f7ff359093
[ "MIT" ]
permissive
BeMg/AutoTrackCam
762453971aaee71eda79256846bbb380e5487a5c
5208bb849a8883a3d62f7837d4955591fd012127
refs/heads/master
2021-01-01T17:26:40.457269
2017-11-22T14:05:27
2017-11-22T14:05:27
98,075,464
2
1
null
null
null
null
UTF-8
Python
false
false
156
py
from utils import DetectFace def DetectPeople(frame): rects = DetectFace(frame) if len(rects) > 0: return rects else: return []
[ "gccbg04538@gmail.com" ]
gccbg04538@gmail.com
1e7c360ffc0f652d2c9965628fe6ad50c8384024
0772dc49c3f45fa5219a3396c678ecb9b06be5d0
/blog/migrations/0001_initial.py
b06887c15884edd71bd32226e829a5876aeb68bd
[]
no_license
theenvisionersnepal/theenvisionersnepal
de6a7fb85bf962623d39a8a601188e933721e006
3dae34bba74561f31584cc98f1904d0039a8768f
refs/heads/main
2023-03-17T13:25:46.275968
2021-03-13T06:49:09
2021-03-13T06:49:09
341,404,966
0
1
null
null
null
null
UTF-8
Python
false
false
562
py
# Generated by Django 3.1.6 on 2021-02-19 02:42 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField...
[ "49269819+sNishant011@users.noreply.github.com" ]
49269819+sNishant011@users.noreply.github.com
80d512046627f21ec6e5b8db3615ee5f70869009
f3d40fcd992b38132ff9634d2b76988a99cefb3b
/pycoinnet/util/BlockChainStore.py
86653b8c71a73bfe27c1a3f2bfbd1b35acc4ec52
[ "MIT" ]
permissive
richardkiss/pycoinnet
b9b999dbf0401722e4550c5926197881e5b13102
57a7f439f0b4c9102cd25f95c0b7e4db00fe2f5b
refs/heads/master
2022-04-27T19:15:39.098602
2021-12-25T23:26:24
2021-12-25T23:26:24
16,194,216
117
56
MIT
2021-12-25T23:26:24
2014-01-24T03:43:42
Python
UTF-8
Python
false
false
2,040
py
import logging import os class FakeHeader: def __init__(self, h, previous_block_hash): self.h = h self.previous_block_hash = previous_block_hash self.difficulty = 1 def hash(self): return self.h def __repr__(self): return "%s (parent %s)" % (self.h, self.previous_...
[ "him@richardkiss.com" ]
him@richardkiss.com
ae9e18092442c065bd24d39c8fe03fea3f1d54c3
903b0632fcd4947c2b0d8b5ebfa321f5ffdc6e75
/dialogs/XBRL/fAddTaxonomy_data.py
74b63da6fd356892cf76b01f58ac23fd5af4ecdb
[]
no_license
mech4/xReport
b08587b6e9f6e22342bb604464c93f1b86d7ba18
8800011120ba6688f1c156ace0d82cc39e66f22b
refs/heads/master
2021-01-01T15:55:20.266700
2014-03-14T04:02:00
2014-03-14T04:02:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,155
py
import sys, os, shutil import zipfile import com.ihsan.util.xmlio as xutil import com.ihsan.foundation.pobjecthelper as phelper import pyFlexcel def FormOnSetDataEx(uideflist, params): #rf = xutil.XMLFolder('Test') #raise Exception, rf.folderName pass def ProsesDTS(config, params, returns): ...
[ "client@ihsansolusi.com" ]
client@ihsansolusi.com
db99a7fae497a54bcf8582832888bcb9835fca74
30d1902232eb9ddb84fdf5404a3a1dfd6232406a
/wxpython/test/sxn.spec
9fb6f075ebf9e03cbe029bbde4b5335d0aaab5e1
[]
no_license
sxnys/mypython
c3a768b054077ed97ff1e2fac31cb93f0765deb3
de48cd883ad2de3320cb0c6b46b451ebb2311ac7
refs/heads/master
2022-11-07T15:11:48.936412
2019-04-14T12:04:30
2019-04-14T12:04:30
119,686,106
0
1
null
2022-10-31T05:13:00
2018-01-31T12:46:06
Python
UTF-8
Python
false
false
835
spec
# -*- mode: python -*- block_cipher = None a = Analysis(['sxn.py'], pathex=['F:\\Python\\wxpython\\test'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], win_no_prefer_redire...
[ "1119112647@qq.com" ]
1119112647@qq.com
b0ce6c8f156438d3d2a678eea60dbc1f52fe5884
cde8a7a3d8fd3b5b948d1fd2c5e1eb5d00ea75f7
/Ground_Speed_Upload/Distinguish_Aircraft_3.py
50bf471bcf39673b9486fef93c868d1f2c92e0ce
[]
no_license
yingying1968/Ground_Operation
cc56431f4fda20f65d5be20d29c5dc47f451d5bf
cc22a68ed178fd9bc2270b51f654a0f3952bd4fe
refs/heads/master
2023-05-08T13:14:07.567987
2021-05-28T03:57:43
2021-05-28T03:57:43
371,572,599
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
import pandas as pd import numpy as np import time as tm import csv import shutil import os import re def createFolder(directory): try: if not os.path.exists(directory): os.makedirs(directory) except OSError: print ('Error: Creating directory. ' + directory) Distinguished_All_Move...
[ "45858012+yingying1968@users.noreply.github.com" ]
45858012+yingying1968@users.noreply.github.com
4e0aaa23a082ebbd762ca335ffba5c31b5dcd333
51e5d2205b98db0bcbd63ce5e37e316740d5cdb1
/AntonioVersion/Lutein_Experiment/import_test2.py
cf787a85120b8d85c30a950e8ad9fca1708edc87
[]
no_license
fFiorelli/Lutein-Remote
50a515f0d9404e626f424c56187974d64152f23a
c7210c924b250965defec5d3aa3b715dbb2cd734
refs/heads/master
2021-01-11T07:24:39.515311
2016-11-03T16:41:16
2016-11-03T16:41:16
72,452,255
0
0
null
null
null
null
UTF-8
Python
false
false
5,391
py
import numpy as np import pandas as pd from pybrain.datasets import SupervisedDataSet from itertools import product import math from pybrain.structure import SigmoidLayer, LinearLayer from pybrain.tools.shortcuts import buildNetwork from pybrain.supervised.trainers import BackpropTrainer import pylab from utilities imp...
[ "ff278@cam.ac.uk" ]
ff278@cam.ac.uk
647085f178375f17f91fc842669bccebdbc5eee4
c5dc7fcecfcca12a491ac300509e9594703e01d6
/tests/test_hipchat.py
5f396ab586a5bc564fea2bfe214abe20bac11ef1
[]
no_license
gitter-badger/sarah
9007de890fe6d8cc03603fe79cb8e50b68105153
d2bde97c1fc0a52f341e51878ed84baa3784db76
refs/heads/master
2021-01-18T07:42:37.735200
2015-09-12T13:55:01
2015-09-12T13:55:01
42,396,728
0
0
null
2015-09-13T13:26:18
2015-09-13T13:26:17
null
UTF-8
Python
false
false
16,927
py
# -*- coding: utf-8 -*- import concurrent from concurrent.futures import ALL_COMPLETED from time import sleep import logging import types import pytest from sleekxmpp import ClientXMPP from sleekxmpp.test import TestSocket from sleekxmpp.stanza import Message from sleekxmpp.exceptions import IqTimeout, IqError from sl...
[ "hagiwara.go@gmail.com" ]
hagiwara.go@gmail.com
8dfe9a9df3bccbd5d817c8705b15fc06fd4569ce
ae06af824e864fab8d33f695ddb612e7867ab92f
/dashboard/dashboard/pinpoint/models/quest/read_value.py
be0fda52522ba5143cfe3a50720310b2db79bc77
[ "BSD-3-Clause" ]
permissive
takingmynetback/catapult
49402759c34dd07e424b47f4c9ec824dd1744526
f718fb12b8cfd16b07509674747abf56cf330ac8
refs/heads/master
2020-03-10T18:46:57.367789
2018-04-13T14:20:21
2018-04-13T15:06:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,183
py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json from dashboard.common import histogram_helpers from dashboard.pinpoint.models.quest import execution from dashboard.pinpoint.models.quest import...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
9d57626e8e4d0e3cc151388e18d5aa6f5596b400
72f752bc3fe1d9a911fec5a0f20e0f4b7916c43b
/pipelines.py
8fb7d9688d11eab2c0adefa6d702f8825df925f6
[]
no_license
gdd173/scrapy-elasticsearch
55cac988badbeb0cacee0ce5a2ecacc25643584c
7aeca677f6378e52dd3775d7d5e8ce953cab2d58
refs/heads/master
2020-05-03T02:18:29.625167
2019-03-29T08:44:20
2019-03-29T08:44:20
178,365,784
0
0
null
null
null
null
UTF-8
Python
false
false
1,472
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html from zhihuuser.models.es_type import ArticleType class ZhihuuserPipeline(object): def process_item(self, item, spider): ...
[ "noreply@github.com" ]
gdd173.noreply@github.com
ede81b56f27166e220e9c0cd9e2a70b57b1232ab
3b7cf22c169cb3df6226214f65c3643ceb9f03a0
/readBDT.py
656ffddd7e40d0fed86778c6bd8b4e0afe2be45b
[]
no_license
vincecr0ft/classificationworkflows
ebcf0f2b31921455e85d8a0f9ff36168592394b8
c1100f20ae5082e40e00d918b5d2b72dc3f5326f
refs/heads/master
2021-07-17T20:59:01.951940
2017-10-24T13:26:07
2017-10-24T13:26:07
107,462,075
0
0
null
null
null
null
UTF-8
Python
false
false
2,558
py
import ROOT import array import argparse parser = argparse.ArgumentParser(description='Read a BDT trained using TMVA') parser.add_argument("infile") parser.add_argument("datasetname") parser.add_argument("xmlpath") parser.add_argument("outfile") args = parser.parse_args() infile = args.infile datasetname = args.datas...
[ "vincent.croft@cern.ch" ]
vincent.croft@cern.ch
61e8010c00831ccbf46b71cd0f205103f1003359
d126513701440ba261b4f38f187613707bad2f1a
/rooms/menu_room.py
047ec21bd276f60dcdcc7cee2e01bceedb97739c
[]
no_license
JM-Miller/Python-Game
f570146327696b52638c4d4083d719de97017c8f
aecf709342c6728368aa2cd00518456eb506c8a3
refs/heads/master
2020-04-23T12:36:06.692826
2019-02-19T15:40:46
2019-02-19T15:40:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
from objects.tilemap.tilemap import TileMap from objects.player import Player from rooms.room import Room class MenuRoom(Room): screenWidth = 320 screenHeight = 320 menuFontSize = 24 menuFontColor = "white" def Render(self, canvas): menuItemText = " You won! \nOr alternatively,\...
[ "network@jonathan-m-miller.solutions" ]
network@jonathan-m-miller.solutions
f7ba3967932bddaa21409467165b583a0778590a
1eef594b1b829d008cee9dddbdb2f39b0f6c6485
/annotation/write_csv.py
003940d5d86786d611b678b5f054a4bb4a763692
[]
no_license
PSIG-EHESS/valleesAlpines
ac35a9314db9b8a21ed53759286a2ab9ac8400b1
f9bb34645028da7d178f743064d4faaa5433959b
refs/heads/master
2021-03-27T11:14:33.465658
2018-02-17T18:07:06
2018-02-17T18:07:06
118,781,526
0
1
null
null
null
null
UTF-8
Python
false
false
1,336
py
# -*- coding: utf-8 -*- """ Created on Wed Jan 10 11:00:33 2018 @author: Pierre """ #création du csv def createCSV(): ''' fonction createCSV: utilité: fonction qui renvoie un csv appelé rendu.csv return: rendu.csv; fichier csv de la forme ['ImageName','Date','MaskName','ImageCutN...
[ "carmen.brando@gmail.com" ]
carmen.brando@gmail.com
308b6b16a55851f143ffb7afe1ce0b0fa3f85bf3
e254c72d3fd11306c8625c5d8ad8ac394eabc6c6
/06.scrapy/AppleDailySearchMongo/AppleDailySearch/settings.py
68673e439c56176af474067092b73ea14f949c88
[]
no_license
Edward83528/crawlerToMachinLearningAndBot
87c7ea92779b949ad5015612a4e70275becab480
82818137b517f4c5a856535f83a8cb8b211da8aa
refs/heads/master
2022-11-06T19:41:20.473933
2020-07-04T14:01:07
2020-07-04T14:01:07
268,072,162
1
0
null
null
null
null
UTF-8
Python
false
false
3,426
py
# -*- coding: utf-8 -*- # Scrapy settings for AppleDailySearch project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/...
[ "u0151051@gmail.com" ]
u0151051@gmail.com
4b05388caf49263247f5a9216da4d2033fdccc11
c7f353cc14439fc47d351bd29258c9453cf16f32
/h2o-py/tests/testdir_munging/pyunit_ischaracter_isnumeric.py
aa42b41611f89e9681ba6234c5bba7e04441ba66
[ "Apache-2.0" ]
permissive
tamseo/h2o-3
a131f40a0cd7f0c52d359b06b300f87d627cfd83
cc59fa0d97325796c5a57085661cea7b34fa81e9
refs/heads/master
2020-12-11T09:27:54.589687
2015-10-19T21:56:12
2015-10-19T21:56:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
import sys sys.path.insert(1, "../../") import h2o, tests import random def pyunit_ischaracter_isnumeric(): iris = h2o.import_file(tests.locate("smalldata/iris/iris.csv")) assert iris[0].isnumeric(), "Expected the first column of iris to be numeric" assert not iris[0].ischaracter(), "Expected the first co...
[ "eric.eckstrand@gmail.com" ]
eric.eckstrand@gmail.com
f55eb77ce1c99b69e14e78ea2c057cb04d9f0428
75c334a13c49df53c4462fe15367d7e87cd97f78
/utils/financial.py
4a74789e2918bf8c0a22c6ae294dd37f05e9e98c
[]
no_license
MarcoBuratti/FinTechAPI
5da09a3c5d8225302e9ad6aba3c383bf7a86762c
f128efd1b16143bce56f4bac6c92ab0c4c8b9dd4
refs/heads/main
2023-04-04T05:17:15.479523
2021-04-22T08:26:17
2021-04-22T08:26:17
351,091,924
0
0
null
null
null
null
UTF-8
Python
false
false
8,128
py
import pandas as pd #(version 1.0.0) import plotly #(version 4.5.0) import plotly.express as px import plotly.graph_objects as go from requests import get from pandas import DataFrame import json def get_data(ticker): ratios = get('https://financialmodelingprep.com/api/v3/ratios/' + ticker +...
[ "ocr@Marcos-MacBook-Pro.local" ]
ocr@Marcos-MacBook-Pro.local
5091cb5707db9a1a41d3e9b1f476e5f8e6b7ebf7
9bf51c5d6a3666448ddfd4bf2f0b3301afaa4463
/app/commands/cmd_start/match.py
55077194c92d5cc3eae0e22e8ae24f702d77fc58
[]
no_license
Madscientiste/OpenClassrooms_P4
f997a9585fae8b62785832857ab22f80b8001c0d
18a6dfc63a2a6b709391d9e0a0265dc46da71c8b
refs/heads/main
2023-05-05T15:25:28.318984
2021-05-28T10:09:07
2021-05-28T10:09:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,832
py
from app.commands.base import BaseCommand from app.utilities import typings, errors from app.models import other, database class Command(BaseCommand): name = "match" usage = "match <match_id>" description = "Select a match to update the score" def run(self, context: typings.Context, tournament: datab...
[ "s.shaade77@gmail.com" ]
s.shaade77@gmail.com
178f8a42d2b574aa9b9f6f890d89a30942159045
18d9f67d3ec79166d51672b442c34184197d95a0
/env/lib/python3.7/re.py
3742a4721fd8623d3ee91807aa6332bfa9149398
[]
no_license
devo2ps/blog_example
5f792913c72c8f057490642221f65124f0f2c864
3bde4bc1239348a1daa85ade1884e5917b7a0a48
refs/heads/master
2022-02-21T16:31:29.336901
2019-10-25T06:29:36
2019-10-25T06:29:36
216,963,228
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
/home/jawnothyn/anaconda3/lib/python3.7/re.py
[ "jjbrandenbur@wisc.edu" ]
jjbrandenbur@wisc.edu
85648b612a8c417cf89769a4ed38cc4b6c9e7523
e0608b2daf486aec2190e6324451622c5f250510
/test/core/update_genome_test.py
e8d4a56a7410c2042e08adcf85eeb492430609a8
[ "MIT" ]
permissive
kellyhuang21/GenomeFileUtil
480e61ed1665c5a06fe1ee4489375e43bc82d083
b27cb746da542334d2758f6851f5f88b4d4991ec
refs/heads/master
2020-06-08T02:22:01.199417
2019-05-30T02:18:07
2019-05-30T02:18:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,607
py
import json import os import shutil import time import unittest from configparser import ConfigParser from os import environ from installed_clients.AssemblyUtilClient import AssemblyUtil from GenomeFileUtil.GenomeFileUtilImpl import GenomeFileUtil from GenomeFileUtil.GenomeFileUtilImpl import SDKConfig from GenomeFile...
[ "jamesgjeffryes@gmail.com" ]
jamesgjeffryes@gmail.com
00ee6e8b2941d6e3cd3d1713cf36490b5754624e
28cab1ef484a5796fc9b0897043e918f9a28e650
/account/urls/user.py
caca4ac46ecc06a22eb78a92276ad522c397c750
[]
no_license
bxxfighting/dalangshen
12cb58d2078804327dbf7a01be0fc2a0d27f4495
e174147b8778c188941d5fd0f5e33de65afc8b00
refs/heads/main
2023-01-15T08:07:57.429342
2020-11-16T03:49:34
2020-11-16T03:49:34
313,184,879
1
0
null
null
null
null
UTF-8
Python
false
false
547
py
from django.urls import path from account.apis import user as user_api urlpatterns = [ path('user/login/', user_api.LoginApi.as_view()), path('user/logout/', user_api.LogoutApi.as_view()), path('user/', user_api.UserApi.as_view()), path('user/current/', user_api.CurrentUserApi.as_view()), path('u...
[ "boxingxing@limikeji.com" ]
boxingxing@limikeji.com
a3727b8cfe56efbacbcacd86e87f8942894d446c
bbe308dd62bbbbaa9f9d2bb38dd8e342f9245237
/tests/ptf-tests/sai-tests/switch_qos.py
5871a347c46435dfc809c951f2da205d099d2614
[]
no_license
krambn/switch
282b8285391ee600dc502f61341dc0869867b679
e934752f356d3ad48cbec99067f47c83795ddcec
refs/heads/master
2021-01-18T15:02:12.546250
2017-03-26T18:05:38
2017-03-26T18:05:38
58,582,407
1
2
null
2016-12-25T20:46:15
2016-05-11T21:18:45
C
UTF-8
Python
false
false
5,785
py
# Copyright 2013-present Barefoot Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
[ "krishna@barefootnetworks.com" ]
krishna@barefootnetworks.com
803ab942bd6166a7b946f05475bd180151f1aee0
833038cc78bed5c59fbbf0bed424e33c4dc554d9
/Research/SweepAnalyzer/SweepAnalyzer.py
0249b1ebb685a3f8b2da870a64f0010587ff34e9
[]
no_license
Urmish/GPUProgramming
a0332f16ad12534f3abd299f632728aa6fc5e3ab
720e5de7e59c317c9ff7fc2c0d4e9ae8f4b64232
refs/heads/master
2021-01-20T09:30:13.171398
2015-11-04T21:30:49
2015-11-04T21:30:49
41,921,210
0
0
null
null
null
null
UTF-8
Python
false
false
2,778
py
#!/usr/bin/python import sys import re import argparse import os import itertools import collections from subprocess import call import itertools def drange(start, stop, step): while start <= stop: yield start start += step totalTests = dict([('Test12.txt',1), ('Test13.txt',1), (...
[ "uthakker@sally.cs.wisc.edu" ]
uthakker@sally.cs.wisc.edu
3634df65b7d345d0f78bec8a07e38e8a1f817aff
14c60b971adb7fb7f6499208e372f6e2291b883e
/task_4.py
6a256d3f3fbf942104f9f4f254cf608bdb1d041d
[]
no_license
Jasvinder99/Task_Solutions
227250858ba839f3d4f2c3db57f51f769f5c4758
3d8c0491ad653d09fe161b61394f3026cf36a7c1
refs/heads/main
2023-07-15T09:28:11.910542
2021-08-26T10:06:00
2021-08-26T10:06:00
398,372,238
0
0
null
null
null
null
UTF-8
Python
false
false
1,789
py
# Task 4 # Rock Paper Scissors # Make a two-player Rock-Paper-Scissors game. (Hint: Ask for player plays (using input), # compare them, print out a message of congratulations to the winner, and ask if the players want to start a new game. # Remember the rules: # # - Rock beats scissors # - Scissors beats p...
[ "noreply@github.com" ]
Jasvinder99.noreply@github.com
811b051ba9d08863f57f51ad70f9f32a115eb4e4
3804c1341d39c61d84c1b3a9b3ed38cce607ecaf
/src/item.py
cf49b6f45975fac9dc655a247d860f512bfbaf37
[]
no_license
alesslongaretti/Intro-Python-II
17ac5a407c4f320ae26e0871f04f53e870e550be
0d8577e66eeb882886f54e8632f92cf2cae076af
refs/heads/master
2022-12-09T00:19:25.598923
2020-09-16T03:36:45
2020-09-16T03:36:45
293,984,629
0
0
null
2020-09-16T03:36:46
2020-09-09T02:46:12
null
UTF-8
Python
false
false
272
py
class Item: def __init__(self,name,description): self.name = name self.description = description def on_take(self): print(f"\nYou have picked up *{self.name}*\n") def on_drop(self): print(f"\nYou have dropped *{self.name}*\n")
[ "alesslongaretti@gmail.com" ]
alesslongaretti@gmail.com
d71a496646b13ee2d91ccdf1da616cceb0cd16ab
75fcf5b23c9e586ee011c5d6cb05451961e023fe
/ekf_localization/ros/src/ekf_localization_ros/test_map_service.py
ce73ca2cf033f1cc2b1f8aa563b58266b1639831
[]
no_license
danieta/autonomous_systems
855f4ecaf76f38d6807858cca7a37eb298a0718c
e2b1a762645c9beab98f871e33d0e3572e0be090
refs/heads/master
2020-04-01T14:16:38.846728
2018-12-15T09:41:38
2018-12-15T09:41:38
153,287,857
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
#!/usr/bin/env python import rospy from nav_msgs.srv import GetMap if __name__ == '__main__': rospy.init_node('test_map') rospy.wait_for_service('static_map') try: getMap = rospy.ServiceProxy('static_map', GetMap) occMap = getMap() print(occMap) except rospy.ServiceException, e: print "Service call fail...
[ "fichtner.lukas@gmx.de" ]
fichtner.lukas@gmx.de
be4eaa71677d177ad1947d4675db4a9e200b9dc2
a593ba64bbb3556c450b9f4acd2b379910d6e38e
/hero.py
b524d04743d11ce3a4ea6b274b144e4486403dcb
[]
no_license
halldorel/Kvislgeir
98445ea4b52e0a36f3968dd667e6bbc9c745289b
e82997e8d9101d162822b7ca0d4d188a384b087a
refs/heads/master
2016-09-05T12:13:16.848811
2013-07-23T22:26:22
2013-07-23T22:26:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,084
py
import pygame, sys, os from pygame.locals import * import math class Hero: """Hero""" # Constants MAX_SPEED = 0.1 ACCEL = 0.3 TURN_SPEED = 8 def __init__(self, window_size): self.pos = [x/2-38 for x in window_size] self.render_pos = self.pos self.dir = 90 self.vel = (0,0) self.surf = pygame.image....
[ "halldor@admittor.com" ]
halldor@admittor.com
4d7eb47db1db14cd8f6b3f7c468d2b142d9dfc8c
16946f13aa1e000a8f9b9245b59f5423d0c78a5c
/build/comp313p/comp313p_reactive_planner_controller/cmake/comp313p_reactive_planner_controller-genmsg-context.py
80c056f51bf2f124b9449c6a360fb6867d226cb6
[]
no_license
tahlia5119/cw2_ws_fin
d0eb27d0d0650fa9b7f15df5ab061d929624154d
3d38549a316dabe1d07c598e1840e14fb579f6f0
refs/heads/master
2020-03-12T18:25:43.927382
2018-04-23T21:36:43
2018-04-23T21:36:43
130,759,687
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "" services_str = "/home/tahlia/cw2_redo/src/comp313p/comp313p_reactive_planner_controller/srv/Goal.srv" pkg_name = "comp313p_reactive_planner_controller" dependencies_str = "std_msgs" langs = "gencpp;geneus;genlisp;gennodejs;genpy" dep_include_paths_s...
[ "tahlia.cutifani@gmail.com" ]
tahlia.cutifani@gmail.com
b9d694917f4e92d2821dde5c835d3695d99aafd0
7c1f47ca30540b988514b50d85cc0b1389571934
/baseline_models.py
7e0ddc2a937b3f05aac8e0ac1cd408498f8afb1b
[]
no_license
GreenWizard2015/HW_18_MNIST-solver
03af68c7c8476bbd24e0890fd25cc60d795b9d3f
ec9a181a7b3b98903c390a0fcb1f28421c4b69c7
refs/heads/main
2023-04-15T04:27:34.982422
2021-05-05T19:34:19
2021-05-05T19:34:19
363,651,984
0
0
null
null
null
null
WINDOWS-1251
Python
false
false
2,170
py
from tensorflow.keras import Sequential from tensorflow.keras.layers import Dense, Flatten, Activation, Dropout from tensorflow.keras.optimizers import SGD, RMSprop def baselineModels(): return { 'V1': baselineV1, 'V2': baselineV2, 'V3': baselineV3, 'V4': baselineV4, } def baselineV1(shape=(28, 28...
[ "sizeof.2011@gmail.com" ]
sizeof.2011@gmail.com
207c6a2e4e7c097edd2dff1233f584c4fe6a7920
21baf25c9ac7d1ddf242d286c012e39e903c1823
/main.py
387f79de9d7203870e22c73bb095b821ac16d8a6
[]
no_license
lattai/schedify
5f24479597f7dec0a3928fb69be2431e7e6deb74
44ff0dde1040351659c41e1080271d4697d2a47f
refs/heads/master
2020-06-24T20:48:21.326254
2019-08-02T21:17:49
2019-08-02T21:17:49
199,084,414
2
0
null
2019-07-30T14:06:42
2019-07-26T21:55:04
HTML
UTF-8
Python
false
false
21,924
py
import webapp2 import os import jinja2 import logging from google.appengine.ext import ndb from google.appengine.api import users from models import SchedifyUser, Connect, Event, Attendance the_jinja_env = jinja2.Environment( loader=jinja2.FileSystemLoader(os.path.dirname(__file__)), extensions=['jinja2.ext.a...
[ "cssi@cssis-MacBook-Pro.local" ]
cssi@cssis-MacBook-Pro.local
48a608c4fbaacbfeb2ab3442ffcab9da022b1ba2
e818d2eecdfcec3ea864eac6a73d8de040fd0c37
/lyric_engine/tests/test_kget.py
63670165bf19b0616a31a7318f6e718d7de30d9f
[ "MIT" ]
permissive
franklai/lyric-get
d72415a43157158e3b89232c7b96de9a9214b7cc
b28aa26b882ae8741d20d39f7e7282717541c9b7
refs/heads/master
2020-05-21T15:08:34.069075
2018-05-01T13:03:03
2018-05-01T13:03:03
16,251,315
13
2
null
null
null
null
UTF-8
Python
false
false
1,381
py
import unittest from lyric_engine.modules.kget import KGet as Lyric class KGetTest(unittest.TestCase): def test_url_zutto(self): url = 'http://www.kget.jp/lyric/188989/' obj = Lyric(url) obj.parse() self.assertEqual(obj.title, 'ずっと feat.HAN-KUN & TEE') self.assertEqual(obj....
[ "franklai@cmlab.csie.ntu.edu.tw" ]
franklai@cmlab.csie.ntu.edu.tw
3ad03dbd44ae80f8df7d819c4b5ef0db0f6c6744
f60946792b7009c0b5dfcadca81a2b20da8f23c0
/doit.py
2ce4ae5b6eefefde8f42d61dd459d41150dcf621
[]
no_license
batteryshark/ghostdmp
a626e96c51bafe23a2a025b995cc31bdff333712
955a03ac8f5fe5e1ab9a5fbc4724d405f4b1cd79
refs/heads/main
2021-12-02T06:17:04.899618
2021-07-09T19:46:54
2021-07-09T19:46:54
186,669,562
17
6
null
null
null
null
UTF-8
Python
false
false
681
py
# Quick Binding against Memory Dumper from ctypes import * TARGET_PID = 768 dump_dll = cdll.LoadLibrary("libghostdmp.dll") dump_dll.dump_process_memory.argtypes = [c_uint32,POINTER(POINTER(c_ubyte)),POINTER(c_uint64)] def dump_process(pid): data_ptr = POINTER(c_ubyte)() data_len = c_uint64(0) if(not dump_dll.du...
[ "batteryshark@users.noreply.github.com" ]
batteryshark@users.noreply.github.com
1642b18b8de554877545fecdb3e9e5754258f518
163e0b62b11c051e400631376b11a6a4d4b3baac
/server/api/serializers.py
3fc2a43abd4c55f7287bf706621235324cad1e36
[]
no_license
Pesqa/Pesqa-take-2
0a746c9260008177e65415830d441bdd835a23f1
9eabd7ea870f8e6cd822a7e0796b7972edae40bf
refs/heads/master
2021-01-10T18:38:43.802859
2014-11-24T08:51:53
2014-11-24T08:51:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
from django.contrib.auth import get_user_model from rest_framework import serializers User = get_user_model() class UserSerializer(serializers.ModelSerializer): full_name = serializers.CharField(source='get_full_name', read_only=True) class Meta: model = User fields = ('id', User.US...
[ "developer@warplydesigned.com" ]
developer@warplydesigned.com
88ab2b28ac971e6554f3b86a62a8480cbc82b7cf
040e48f97e5b004a96be27c0f8a7b8b22e1e4ae9
/jd_yagmail.py
9ed956c350abe3108d00a3a3c70ddb42c9a5ff36
[ "MIT" ]
permissive
tlqtangok/perl_p
c283a5871d452577f4caae13cc7a25104c0a1511
55f07da7c0a058c308d94835e80e69d2844d7d18
refs/heads/master
2023-06-08T16:36:31.182326
2023-05-30T09:49:56
2023-05-30T09:49:56
87,253,791
0
1
null
null
null
null
UTF-8
Python
false
false
2,747
py
import yagmail import sys from pathlib import Path import re # pip3 install yagmail def s_(id_text, pat_old, pat_new): return re.sub(pat_old, pat_new, id_text) def get_subject(content_text): list_ret = [] for i in content_text: if i!="\n": list_ret.append(i) return...
[ "tlqtangok@126.com" ]
tlqtangok@126.com
751ad809171e672612f3e55816391624e6b4cd05
92ad7a0d1adb91390044b62190cbdc7d0de93a55
/CenterImagesWithImageDataGenerator.py
d07e9b427b0abd9e8aa0e2d8fb78a0802e3479a2
[]
no_license
MachinistNick/Computer_Vision
168f77da8fd6105d7a76e852f8e5e72e5f343d4a
bdeab01cad310eb4aaf16cbef840b43f425661cd
refs/heads/master
2023-03-05T13:48:26.950813
2021-02-15T13:01:23
2021-02-15T13:01:23
328,373,774
0
0
null
null
null
null
UTF-8
Python
false
false
2,379
py
# example of using ImageDataGenerator to center images from keras.datasets import mnist from keras.utils import to_categorical from keras.models import Sequential from keras.layers import Conv2D from keras.layers import MaxPooling2D from keras.layers import Dense from keras.layers import Flatten from keras.preprocessin...
[ "“machinistnarendra@gmail.com”" ]
“machinistnarendra@gmail.com”
eadc2b09f977f090342d4d38798f41a2b519990a
14b115c1ac1f7e33b08775c693cd7797a187818d
/scripts/common.py
7bd15b6e9147b43278c0b5fe89efb569cfe0401f
[ "Apache-2.0" ]
permissive
samking/code-the-change-projects
56c3ef65a467a6983f536aab72d1f46682391092
b722927f86a143c37ee76b41a8fea050467b1e32
refs/heads/master
2020-12-24T14:09:44.431342
2014-08-31T23:17:57
2014-08-31T23:17:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,838
py
"""Common utilities for scripts.""" import os import sys # The path, relative to the Google Cloud SDK directory, where the app engine # library lives. APP_ENGINE_API_PATH = 'platform/google_appengine/' def get_project_dir(): """Returns the directory of the project containing this script.""" # The parent of...
[ "sam@samking.org" ]
sam@samking.org
ac8ee928a460f0fa7d5ff0f0b67f71c93afe2006
ee58efb5a0df28a0c40c1bede8721e68c9e9feaa
/Flask_Server/send_sms.py
620129996d62011513ba4f5fa3886736f2c143ba
[]
no_license
jordanleex13/QHacks2017
3ba2d5508e4b90f0a9ba4873ca12759537d9b9c0
842bd717225e9617ef44ad6cc38eba92391b3ab9
refs/heads/master
2021-01-09T06:24:56.972058
2017-02-05T13:45:44
2017-02-05T13:45:44
80,984,665
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
from twilio.rest import TwilioRestClient # put your own credentials here ACCOUNT_SID = "ACeab64fc8375c9d2de92a3553f84db779" AUTH_TOKEN = "8a85c6f838a7713cd193fca07506e377" client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN) def send_sms(message): client.messages.create( to="+16048121916", from_= "...
[ "jordandlee@hotmail.ca" ]
jordandlee@hotmail.ca
9d3880f5ae6f97d5fc70725583b7dc21572c38a8
269cafa0cc801b5618e1e7fd12f4cf789954641d
/examples/webserver/webserver/__main__.py
ea3e02588264137b0a0cd42729fac22d0433026b
[]
no_license
thomas9911/imgopt_python
d9a960574c2c568c2c50eaa7da6a06d96c45b62b
1e79ffebdd7a3fc38b5125fb91fe6328f1a20aa0
refs/heads/main
2023-08-14T10:35:31.502341
2021-10-03T18:45:57
2021-10-03T18:45:57
408,884,358
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
from . import * if __name__ == "__main__": app = new_app() app.run(port="5050", debug=True)
[ "thomastimmer11@hotmail.com" ]
thomastimmer11@hotmail.com
1702b3f2b9cfc60fe67356368758cace5842cc8d
663187055740d7f807f286709d8fc1d378f6ae3a
/RAM_blocks/blocks-extras/tests/extensions/test_predict.py
4ea0d8f9475359dfbd8b5bda08a776a13951daee
[ "MIT" ]
permissive
malcolmregan/CNN3D
03ce271893d598a47cfbdf4db5a2123cd64a6a3f
681424fdc8f6fe73b4cb8ea45ca2cc9aa37d8930
refs/heads/master
2021-01-17T11:10:24.506348
2017-03-06T03:30:31
2017-03-06T03:30:31
84,017,973
1
0
null
null
null
null
UTF-8
Python
false
false
1,463
py
import os from collections import OrderedDict from tempfile import gettempdir import numpy from theano import tensor from fuel.schemes import SequentialScheme from fuel.datasets import IndexableDataset from fuel.streams import DataStream from blocks.utils.testing import MockMainLoop from blocks.extensions import Fin...
[ "mjregan1@asu.edu" ]
mjregan1@asu.edu
d69e0d5d5c948654c62078c37ad224b92b3831df
237591a18170e6a9850eb0becf85dfa23d7f8878
/blog/admin.py
023ef8273d193b59284fe18e0e6e80f9014c5c39
[]
no_license
StefSmlk/russia_with_yulyasha
de8a854ef918fa6044c278494a1402dbaecfd790
282dfc54b2a91e5a4097c9de0fb07a296e5bdf45
refs/heads/master
2023-06-27T03:43:20.603267
2021-07-26T13:49:57
2021-07-26T13:49:57
381,413,882
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
from django.contrib import admin from blog.models import BlogModel admin.site.register(BlogModel)
[ "gsstteeff7777@gmail.com" ]
gsstteeff7777@gmail.com
4635926ddd7271439918611c2c72b96f21a74d7e
1d59a8c8c1cb550a9c340782174be862efcb0bc5
/schunk_gripper_communication/bin/servo_control.py
4d57e0f40a625b7d1ae852267c888cea910a4186
[ "BSD-3-Clause" ]
permissive
JShep1/schunk_lwa4p
27b4e3bdf3cd374da26076beca51ba378ff3ab07
8945dbe69fd2a43670689ddbdfac84918892a81e
refs/heads/master
2018-06-05T05:26:25.633722
2018-05-25T17:26:25
2018-05-25T17:26:25
118,279,477
5
2
null
null
null
null
UTF-8
Python
false
false
535
py
#Example: "python servo_control 7" to close import Adafruit_BBIO.PWM as PWM import sys servoPin = "P8_13" def servo_control(a): PWM.start(servoPin, 10.7,50) #while(1): dutyCycle=a if dutyCycle >= 6.8 and dutyCycle <= 10.7: PWM.set_duty_cycle(servoPin,dutyCycle) ...
[ "johnshepherd96@yahoo.com" ]
johnshepherd96@yahoo.com
8d7745e480a92e97c24b07fc2907b767738180e7
cf2cc8ebb75e82b8213b2dd11b2e164bfd1e63ec
/core/views.py
f8fe903263dcb7bb9f8594bf83e171c1ab17659f
[]
no_license
georgeo23/studiofy_django
7bbb17c9d050facfdc3df9a47375f0db8615f1a7
f65e9960032f42091a36d016692d5c3e4efbbf63
refs/heads/master
2023-01-01T05:43:52.906515
2020-10-22T16:30:17
2020-10-22T16:30:17
306,407,705
0
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
from django.shortcuts import render from django.http import HttpResponseRedirect from django.contrib.auth.models import User from rest_framework import permissions, status from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.views import APIView from .serialize...
[ "olney.george@yahoo.co.uk" ]
olney.george@yahoo.co.uk
fd09b8c571cce21e46569630c1ee6c84d7420e24
12e85e99304426bebbc6250603d9f8f0b1d8923d
/blog/management/commands/addtobase.py
487cdc2962b985df2d59cc2da3add3c9cb207d0f
[]
no_license
a7emenov/technoWebsite
a5f6e605def755428cfe0a056631fb5ec5136661
39179cb98e238150e3f6cef42d40cab31da9f2aa
refs/heads/master
2021-06-10T09:19:53.646926
2017-02-13T21:52:46
2017-02-13T21:52:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,575
py
import random from django.core.management.base import BaseCommand, CommandError from django.contrib.auth.models import User from blog.models import Tag, Question, Answer, Profile, Vote class Command( BaseCommand ): help = 'Adds test data to base' def add_arguments( self, parser ): parser.add_argument( '-q'...
[ "tochka313@gmail.com" ]
tochka313@gmail.com
9b3c584d4821a9e4c379d1be5fe57de5e8495f17
b23679e038e8927393fa055819c682b9a68e9e02
/tglc/__init__.py
19e161e60bf92dd9aafe59f57323c6c298da5ac7
[ "MIT" ]
permissive
pont-us/tglc
355186006ac99fba87c9f80c861c40969fa4293e
7f0e0ea549f3362fea8466dacb930ad284590dac
refs/heads/main
2023-01-28T07:27:30.963314
2020-12-05T14:37:44
2020-12-05T14:37:44
318,775,559
0
0
null
null
null
null
UTF-8
Python
false
false
20
py
from .tglc import *
[ "pont@talvi.net" ]
pont@talvi.net
441485fe07e5c25ae8576dd856ccf28e30650cab
161d39cbdea7792ce1b155aeb912a63884f02868
/venv/bin/django-admin.py
1f3e6921b915265cec83d7930eec54dfb83a698c
[]
no_license
Biphyl/InstaClone
b824d442935cda9cc2796d4a205955bd7cf8e18c
03c582bf58ffe5dca15e96f84bcb21c507340b51
refs/heads/master
2022-10-06T04:51:12.617979
2020-06-09T07:09:25
2020-06-09T07:09:25
270,662,503
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
#!/home/biron/Documents/InstaClone/venv/bin/python3.6 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "bironodhiambo00@gmail.com" ]
bironodhiambo00@gmail.com
4e65a90fab57db8ac3dab6629762d4e6f4f7d1d7
9691a645c1e3b0c10f6aad100a1ce9ed00dde530
/sfotipy/artists/admin.py
d8ad7e6c003b341db2c14f4b82acc35e7571b2c1
[]
no_license
isaacBats/Sfoti.py-BackendPro_byPlatzi
4eef35b36554318b511b11fa31473f9d359eb635
045d5bb091eded791000b5059c2493df9427e369
refs/heads/master
2021-01-18T14:05:17.407391
2015-03-25T06:54:38
2015-03-25T06:54:38
32,138,241
0
0
null
null
null
null
UTF-8
Python
false
false
535
py
from django.contrib import admin from .models import Artist from tracks.models import Track from albums.models import Album # Register your models here. class TrackInLine(admin.StackedInline): model = Track extra = 1 class AlbumInline (admin.StackedInline): model = Album extra = 1 class ArtistAdmin(admin.ModelAd...
[ "disa.indus@gmail.com" ]
disa.indus@gmail.com
b68873477cb846ff0b1920cbec4a5871df5a40d7
d9f15ed4fc96d84da2f3ce58ed3ae813cf556cc1
/xpisign/api.py
7fa0d73784f65076341f0db2f4bc3173884aa07f
[]
no_license
Ayrico/xpisign.py
16af5d32544841fb5efc0f43c850d2377c6c041e
89e6bd1c7b0daba5574edba1fd465e202c6861e9
refs/heads/master
2021-01-18T06:03:15.723460
2012-05-07T17:36:52
2012-05-07T17:36:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,363
py
#!/usr/bin/env python """ XP-Install (xpi) code signing. Module Usage: xpisign("addon.xpi", "cert.pem", "addon.signed.xpi") open("addon.signed.xpi", "wb").write( xpisign("addon.xpi", "cert.pem").read() ) with open("addon.xpi", "wb") as ifp: with open("addon.signed.xpi") ofp: ...
[ "maierman@web.de" ]
maierman@web.de
45728b5ac6694d187009cdbb0893ba43526df2f6
d3a9021c1c67c9d5d0ee14333bb882a9be519f90
/python/python_essential_training/Chap15/jurl/jurl.py
249a8cb97dd8f99fc21f9718c1bfec5ec9eb8507
[]
no_license
elandt/devTools
9594f9e830ad40e2da549d5aee8fbe5bdc4f0222
e90f0ad83ad32ef4e6b26e46a0b28e05bc9b3bc3
refs/heads/main
2023-08-08T00:14:34.830348
2023-07-25T21:43:18
2023-07-25T21:43:18
205,256,237
0
0
null
2023-07-25T21:43:19
2019-08-29T21:52:24
Java
UTF-8
Python
false
false
1,461
py
#!/usr/bin/env python3 # # jurl.py by Bill Weinman <http://bw.org/contact/> # Jump to URL (a private short URL service) # Copyright (c) 2010-2017 The BearHeart Group, LLC # created 2017-03-10 # updated 2017-09-29 # from bwCGI import bwCGI from bwDB import bwDB from bwConfig import configFile # import random import os ...
[ "elandtdevelops@gmail.com" ]
elandtdevelops@gmail.com
559b9fee8d9641ed8d59e412f107768413313943
a8326da8989e3f70e27c3cc06ede44c2164b4f66
/question5_bst_balance_not.py
4a2a1db73c0b8b0d1d55f479ceb9df6484c1becb
[]
no_license
awaking33633/algorithm
d2cf70476d6b57bfb0568df58c3788846222345d
a387bd94bdcc8d9ffc53d88e1494761b054673a8
refs/heads/master
2021-03-01T21:55:09.596623
2017-04-13T22:15:50
2017-04-13T22:15:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
896
py
# -*- coding: utf-8 -*- ''' Leetcode (Python): Balanced Binary Tree Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1. Solution:''' # Definition for a bi...
[ "noreply@github.com" ]
awaking33633.noreply@github.com
04822f97c9761256155a3022915cb96421790c40
1ddd88a66c7c07c7d6383bf40eb18c969f87226a
/apps/xfzauth/urls.py
9b3a8b1dd028b07937885365d71131b7dd4da5ff
[]
no_license
syb666/mysite
35da57805d9ae05584f066663f23238f520bc283
0128289cfc3b6d2d99fc3b058a3a0b2a489b5376
refs/heads/master
2020-04-24T23:30:00.368424
2019-04-20T09:33:06
2019-04-20T09:33:06
172,346,460
1
0
null
null
null
null
UTF-8
Python
false
false
516
py
# -*- coding: utf-8 -*- from django.urls import path from . import views app_name='xfzauth' urlpatterns = [ path('login/',views.login_view,name='login'), path('logout/',views.logout_view,name='logout'), path('img_captcha/',views.img_captcha,name='img_captcha'), path('sms_captcha/',views.sms_captcha,name...
[ "39624492+syb666@users.noreply.github.com" ]
39624492+syb666@users.noreply.github.com
80bada6587002b0f7ccc3a46de8e88e2591be5c0
e2cec79eae0981a3a07f4131a9b3e018b5fdc261
/realtime_object_detection.py
f09747d77f0841e0d9203299a454895a2485919d
[]
no_license
leoprananta/realtime-object-detection
ad05c4a157d5750b8471f8d3592d39c4f91516a0
bbb57072a57671a0a508999a7a5999c204704fea
refs/heads/master
2022-11-30T05:59:07.431882
2020-08-03T08:44:19
2020-08-03T08:44:19
284,646,271
0
0
null
null
null
null
UTF-8
Python
false
false
3,502
py
# import packages # jika ada error ModuleNotFoundError: No module named 'imutils' dan 'cv2', maka instal melalui pip install opencv-python dan pip install imutils from imutils.video import VideoStream from imutils.video import FPS import numpy as np import argparse import imutils import time import cv2 # argument con...
[ "noreply@github.com" ]
leoprananta.noreply@github.com
8b4246df4e9e8bb970c0809d972016ef7188b9f1
b8d7c4e3476aae5c3bba7ffa28311f84fda5af9e
/main/apps/cart/views.py
0c406e7f828ea18dc57dda560f00ccd7024a78e5
[]
no_license
zhongzhiqiang/hotel-api
1744b8ecb63c4626f7a90f6f04f073aab052b312
25703713d0e8ab2314e07e983b98506a3551e762
refs/heads/master
2020-03-26T08:53:06.776003
2019-01-20T09:23:39
2019-01-20T09:23:39
144,724,134
0
0
null
2018-10-12T13:29:20
2018-08-14T13:28:51
Python
UTF-8
Python
false
false
2,081
py
# coding:utf-8 # Time : 2018/10/15 下午10:47 # Author : Zhongzq # Site : # File : views.py # Software: PyCharm from __future__ import unicode_literals from rest_framework import mixins, viewsets, status from rest_framework.response import Response from rest_framework.decorators import list_route from main.ap...
[ "200730249@qq.com" ]
200730249@qq.com
20ffceda05359bfcbba9fdf62ef548260b1a172b
153e7e57895392fea52920f0b85fa2d6f504e1a1
/env/bin/django-admin
d0609d6b05631ce54c1eeac6563f3f511652e7f7
[]
no_license
AsmaaHassan/Django-Scrapy
1d192409262c14fd2284b632d330fb16f7c82f6f
db3e01517714e22aa386a9544ad7333ca580057b
refs/heads/master
2022-12-11T08:30:13.323268
2018-11-19T08:23:44
2018-11-19T08:23:44
157,109,206
0
0
null
2022-12-08T01:17:20
2018-11-11T18:38:39
Python
UTF-8
Python
false
false
304
#!/home/asmaa/Desktop/Asmaa/Work/scrapy/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "asmaa.hassan@smart-medicalservices.com" ]
asmaa.hassan@smart-medicalservices.com
a807a1a843bf88cf36512e099d3aaca3261e2f3e
de9b8b7192a0a81e9249823bb2b86f0b7e452863
/.history/main_20171106232335.py
96c596fc3fcc185c546af76e74da5916cad83166
[ "MIT" ]
permissive
reecebenson/uwe-dadsa-tennis-a
f5eaeb1b96d4e61f29279514e68eeea8ad6533db
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
refs/heads/master
2023-07-08T16:13:23.963348
2017-11-30T12:07:01
2017-11-30T12:07:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,056
py
# DADSA - Assignment 1 # Reece Benson import random from classes import Menu as Menu from classes import Handler as Handler class App(): # Define the variables we will be using debug = True handler = None # Define all of the properties we will need to use def __init__(self): # Load our ha...
[ "me@reecebenson.me" ]
me@reecebenson.me
ad8091b0c2d44c57d12dfe6169b060cf5246631e
118e0650961bad7249b479926d9f71f0d873357b
/umtk/image/io.py
ea21f24c1bc360c85ebcc197a78ed063fb96a6a5
[ "Apache-2.0" ]
permissive
lemon126/umtk
7582645511fcc2095de2826a40871138ff03cbc3
746ed8421b0558447cd01756388153fa1277b07e
refs/heads/master
2023-01-21T09:16:29.208503
2020-11-28T03:17:43
2020-11-28T03:18:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,582
py
import os from pathlib import Path from typing import Any, Dict, Union import numpy as np import SimpleITK import umtk.error_handling as exc def _get_file_title(path: Union[str, Path]): file_title = os.path.splitext(os.path.basename(path))[0] if path.endswith(".nii.gz"): return os.path.splitext(file_t...
[ "kyle0x54@163.com" ]
kyle0x54@163.com
1389651ed9302bbd24030b7f324740c182a7242f
d4d6a3ab6cce1ce30270f4c92c2acbe884a0ab5b
/newcoder_offer/print_min_number.py
1b9f51136f4816c48a8382400c0b81233654d4af
[]
no_license
EarthChen/LeetCode_Record
e2e9d1a1460866afb85d3fdd115e082ab0ab3f5c
c756fe54e8e17e9ba0bfdab5fccc24ac89263d90
refs/heads/master
2021-01-06T20:36:30.075203
2018-05-27T04:34:06
2018-05-27T04:34:06
99,530,378
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
# 输入一个正整数数组,把数组里所有数字拼接起来排成一个数, # 打印能拼接出的所有数字中最小的一个。例如输入数组{3,32,321}, # 则打印出这三个数字能排成的最小数字为321323。 import itertools class Solution: def PrintMinNumber(self, numbers): # write code here if not numbers: return '' numbers = map(str, numbers) # 全排列去重转列表排序取最小值 res = ...
[ "1791538609@qq.com" ]
1791538609@qq.com
5aebded1bd43f617763f5a317c79e6496a01003d
26a9f88aa870aafee3198f52e0ff3925202dd90d
/app.py
5d3b9251eb4b9e93dc0eca4f377ccc65040fb3d6
[]
no_license
NaomiKriger/pdf_crawler
a8ebba20afa8c6585f882ecc337c4f5eecbc4e4b
5424cecb4dfe727214723079028d5366c2d1d99a
refs/heads/main
2023-04-22T16:27:12.665921
2021-05-22T10:05:34
2021-05-22T10:05:34
356,262,028
2
0
null
null
null
null
UTF-8
Python
false
false
616
py
from flask import Flask from flask_restful import Api from db import db from src.resources.pdf import Pdf, PdfList from src.resources.phone import Phone, PhoneList app = Flask(__name__) app.config['SQL_ALCHEMY_DATABASE_URI'] = 'sqlite://data.sb' app.config['SQL_ALCHEMY_TRACK_MODIFICATIONS'] = False api = Api(app) db...
[ "naomikriger@gmail.com" ]
naomikriger@gmail.com
de499b1d1ee6eebeb74c84cbf98ec9a1e9bfa0ad
84bd24e7aba23c7775f52d51c754f14601e28b61
/cars/migrations/0015_auto_20201222_0911.py
53cd0970e12348b27aef4a29fb5a55ef15ccf7ed
[]
no_license
hamzaumar8/sandvet
c0ad473e8f2f97d1c5bf5104e034e731ac0a0add
7f02d24f1b50cd4f64beff618b6d9c508b7a42d4
refs/heads/master
2023-02-18T01:28:25.252360
2021-01-18T19:26:39
2021-01-18T19:26:39
310,844,181
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
# Generated by Django 3.0.6 on 2020-12-22 01:11 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cars', '0014_auto_20201222_0911'), ] operations = [ migrations.AlterField( model_name='schoolim...
[ "humar6078@gmail.com" ]
humar6078@gmail.com
1b654ebcd2c2d25f671999f1338f7ee86d15e4a5
de3202e62598eb3e165b4b3930835d2e5dab3b2b
/build/catkin_generated/order_packages.py
83acbc032f197d1fe9452c293e04972016a34b91
[]
no_license
tehnanmanna/Project_5_Home_Service_Robot
dbe6830f080b51dafc3fd49fe5fa2e55beca6461
a76bdb9fa0a96f335c8ac4c5715710915583deb5
refs/heads/master
2022-11-14T23:44:34.681221
2020-07-13T14:53:46
2020-07-13T14:53:46
278,884,784
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
# generated from catkin/cmake/template/order_packages.context.py.in source_root_dir = "/home/tehnanmanna/Project_5/src" whitelisted_packages = "".split(';') if "" != "" else [] blacklisted_packages = "".split(';') if "" != "" else [] underlay_workspaces = "/home/tehnanmanna/Project_5/devel;/home/tehnanmanna/catkin_ws/d...
[ "tahnanmanna@gmail.com" ]
tahnanmanna@gmail.com
b0b6d7c78dcd663de9457763a254a05e716fbf81
dbef69201e2e3507564cde5dfc817cd966eb2a45
/backend/utils.py
30b217162a19ef0eae01f30c6df8277f47b69b5b
[]
no_license
Hackovit79/backend
086acc1fc901a0c0d6270388efa6630861d09aa3
45038d817c77f91494df64b5d3f30b42df390242
refs/heads/master
2021-05-26T21:58:14.814794
2020-04-12T20:21:11
2020-04-12T20:21:11
254,171,565
0
0
null
2020-04-11T19:09:59
2020-04-08T18:42:05
Python
UTF-8
Python
false
false
163
py
from guillotina.response import Response import json def json_response(status, body): return Response(body=json.dumps(body).encode("utf-8"), status=status)
[ "noreply@github.com" ]
Hackovit79.noreply@github.com
1cd7f7fe2262f547b545bce5583d232fd3056bcb
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/prepositions/_beside.py
412a30036868081724ff1297f7950ab0b9365210
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
#calss header class _BESIDE(): def __init__(self,): self.name = "BESIDE" self.definitions = [u'at the side of, next to: ', u'compared to another person or thing: ', u'to be in no way connected to the subject that is being discussed: '] self.parents = [] self.childen = [] self.properties = [] self.jsond...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
7baaebbe73463875e71e30b4f5ef2fdee3403dba
e3e7498794fd1874bbaf33c78511145c3f18dc76
/contract_management_app/contracts/migrations/0001_initial.py
e0bf88993663fde4d8a644b17a580149612ae936
[]
no_license
2Cheetah/Contracts_app
d45454d2dcb0262ea6b35d46a186fd460bba9a32
3e22bb6142b07b039c2c24725b21461d7e8175e4
refs/heads/master
2021-01-08T08:48:49.009407
2020-02-24T18:25:41
2020-02-24T18:25:41
241,975,815
0
0
null
null
null
null
UTF-8
Python
false
false
863
py
# Generated by Django 3.0.3 on 2020-02-21 18:31 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...
[ "fckninja@gmail.com" ]
fckninja@gmail.com
f825a44ca2f8569444a0bb8ff1c09627ae626fe2
1343ae32d27f65b8ce392723590c08b26a489e5b
/proyecto_cnn_v3.py
b54dc7c8a819b6d31d342b8264f17e1023411c71
[]
no_license
lcam21/patrones_disenio_proyecto
54999c0f1bafaad8b847179653f2b58b59c404d8
4374c983551b6f4220e418ed0aa7eccbe1081fca
refs/heads/master
2022-12-03T01:51:36.094163
2019-08-27T04:11:33
2019-08-27T04:11:33
202,960,648
1
1
null
2022-11-24T22:43:21
2019-08-18T04:44:03
Jupyter Notebook
UTF-8
Python
false
false
5,830
py
import pickle import helper import tensorflow as tf import numpy as np import sklearn.preprocessing import sklearn.metrics def cnn_model_fn(features, keep_prob): # CCN variables conv_ksize = [5, 5] pool_ksize = [2,2] pool_strides = 2 num_outputs = 128 n_nodes = 7 * 7 * 36 dropout_rate = 0.3 ...
[ "noreply@github.com" ]
lcam21.noreply@github.com
9bac4c8027b6b8102d2288a4ae7b4d617d5fded3
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/EightTeV/LongLivedChi0ToMuQQ_MSquark_1500_MChi_494_TuneZ2Star_8TeV_pythia6_cff.py
969c146bfb5a013812585e4739862cc042491409
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
2,634
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.PythiaUEZ2starSettings_cfi import * source = cms.Source("EmptySource") generator = cms.EDFilter("Pythia6GeneratorFilter", pythiaHepMCVerbosity = cms.untracked.bool(False), maxEventsToPrint = cms.untracked.int32(0), pythiaPylistVerbosit...
[ "sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch" ]
sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch
d8ef0eed037453e571a64310ee22c0bf436b8d52
a91feb3f7d4d4c9bacff274b48249a163d4c0773
/Django_venv/bin/pip2.7
809caaa762eab4deb8c901920b700c52e36174f0
[]
no_license
GuanqiaoW/Django
fb0ec1801cd34f68da36124d90828fa617add7e1
9ac47982ba02d6cf057d5f95a3d4e74b8d245e31
refs/heads/master
2021-01-09T20:21:24.898985
2016-07-16T13:18:45
2016-07-16T13:18:45
61,766,035
0
0
null
null
null
null
UTF-8
Python
false
false
239
7
#!/Users/guanqiaowang/Desktop/Django_venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "neilwang911@gmail.com" ]
neilwang911@gmail.com
c80bb4fc4a01b22227be21db6639fdbf685906b2
540c6c09004a079079ee69023f4ef18abc7258c2
/flask_server.py
7bb025b065e90ddeee6de1ece1c6ad89d6b52f94
[]
no_license
mictsai60229/sentence_similarity
2aeb0b7c9292e7f364343fc7ade5fa0b45a08bab
cd22283c136038f7dff8a3386646da7ca628cb79
refs/heads/master
2020-04-01T20:16:38.851287
2018-10-18T09:17:21
2018-10-18T09:17:21
153,596,620
0
0
null
null
null
null
UTF-8
Python
false
false
1,692
py
import operator import math # flask from flask import Flask, request, jsonify from flask_cors import CORS, cross_origin # my model import predictor import splitter import load_data app = Flask(__name__) app.config['CORS_HEADERS'] = 'Content-Type' CORS(app) ''' request json {"response" : doc} ''' @app.route('/', ...
[ "mictsai@nlplab.cc" ]
mictsai@nlplab.cc
7bb0d61592e0259113f0e1adfc6c01a29b3171e3
2b611bcb738b202f0cca7dd31e3fe89e119bb51c
/Law2.py
30e4362e7484f0a38722f77bcadb44af0aa4c3c0
[]
no_license
josiahbrooks21/ciss441
6faf1e75822d8612b440d103ab7d71dea7d1c5fb
6d07132ba6166dfd9b946342a267ebda224735dc
refs/heads/master
2021-05-13T19:26:21.232324
2018-03-21T00:22:18
2018-03-21T00:22:18
116,893,178
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
from bs4 import BeautifulSoup import requests fname, purl = 'slk_law','https://en.wikipedia.org/wiki/Rich_Wilkerson_Jr.' res = requests.get(purl) webcontent = res.text with open(fname + '.txt', encoding='utf-8', mode='w') as fo: fo.write(webcontent) soup = BeautifulSoup(webcontent, "html.parser") print('\...
[ "noreply@github.com" ]
josiahbrooks21.noreply@github.com
e64c699df93ca5619fa36bd10f267b0786259b19
b6b28e1588050597366907223bfcb71464d76734
/lr/minibatch_sgd/data_process/read_data.py
8f8d526e7b6cb9a6d1cef6757b7a8cac94cc8fb5
[ "MIT" ]
permissive
DiracSea/project-sxl
ea8af63643a2547493c32c83dc297180c072bd01
f458bec818d55f80a5eda461316a22d843fef753
refs/heads/master
2020-03-10T04:08:42.466142
2018-05-20T05:03:13
2018-05-20T05:03:13
129,184,316
0
0
null
null
null
null
UTF-8
Python
false
false
1,868
py
import numpy as np import random from .db import * from .tool.combine import first_stack from .tool.sperate import split_num #all array def read_rand_data(batchsize,table,db):#yield batch rand = conn_rand(db,table,'112.74.45.185',3306,'root','opal123456!@#')### counter = 0 size = 0 train_num, valid...
[ "sulz@mail.sustc.edu.cn" ]
sulz@mail.sustc.edu.cn