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
1f125f92f62b4c5888b38d7319cd74ce3606f18d
63c5275249e536a327bc2914cc96775eb746ffbe
/day13_part2.py
5c2f005311e0c25244b671a746ddd94f4bb0b051
[ "MIT" ]
permissive
alu-/advent-of-code-2019
0e3df3015bd528d20407bb85535de1cb1679940e
117fc49cb6e89e6302cfbd64b1c3d58f21b47378
refs/heads/master
2020-09-22T13:46:39.322828
2019-12-22T02:19:22
2019-12-22T02:19:22
225,225,174
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
#!/usr/bin/env python3 from intcode.machine import Machine from intcode.screen import Screen def main(): with open("./inputs/day13.txt") as file: raw_input = file.read() raw_input = "2{}".format(raw_input[1:]) vm = Machine(raw_input) screen = Screen(vm) screen.run(interactive=True) if ...
[ "alu@pad" ]
alu@pad
4a086ff2b0cdebd555074cf5e647bb77e25ed7d5
0f19ec42bbee96db42a6973d99d679fa33d7aba1
/Chapter03/Exercise3.05/Test3_05.py
0812c195cb806f245289f2f397e31779311b9840
[ "MIT" ]
permissive
a1ip/The-Data-Science-Workshop
ab3aa67c24daac18cbccbf9dc96b5436e46e1754
5992a4d14f7ea06c8815e395d57a9941bac47254
refs/heads/master
2022-12-18T08:19:04.550755
2020-09-24T04:10:38
2020-09-24T04:10:38
286,596,069
1
0
MIT
2020-09-03T00:40:51
2020-08-10T23:05:29
Jupyter Notebook
UTF-8
Python
false
false
1,040
py
import unittest import import_ipynb import pandas as pd import pandas.testing as pd_testing from sklearn import preprocessing from matplotlib import pyplot class Test(unittest.TestCase): def setUp(self): import Exercise3_05 self.exercises = Exercise3_05 self.file_url = 'https://r...
[ "noreply@github.com" ]
a1ip.noreply@github.com
cb0b6b7036d3690b73505aa3107529ed3a66ec74
c1eefd525582b5ec6eb02fd0b11ccd4a6fde29bb
/sample_programs/python/1_HelloWorld/hello.py
3e1503e7e4231d1403aa97bd190f12a202624e23
[]
no_license
igoramidzic/robotics-projects
7e7f63a998f86ab6625bf47e37bd7492b32fd7c4
0ae1a2b29999ac728d586518b2571010248b681a
refs/heads/master
2020-12-19T05:43:52.776490
2020-04-02T18:52:39
2020-04-02T18:52:39
235,636,098
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
# This program prints hello world to the console every 500 milliseconds. # Open the folder that contains this file. # Then click Tools > Open current folder in terminal. # Enter the command "python3 hello.py" to execute it. # You can use the app named Thonny to modify Python files, # but we recommend using the above co...
[ "amidzicigor46@gmail.co" ]
amidzicigor46@gmail.co
4f6cd196808b377db603151bb34d561d3be9887c
4efd76755354b0b6e7684e0773df87d0f4fa7c5a
/asite/settings/base.py
a518894aaca4f87460fdcc8568db57259eeabf73
[]
no_license
peeterss/asite
301e59af070bf0fbbdb9914f35ca54693cc55db6
d50a3a14f10e61866344980d321eb104677585f8
refs/heads/master
2020-07-19T05:15:57.171245
2019-09-08T15:15:14
2019-09-08T15:15:14
206,380,870
0
0
null
null
null
null
UTF-8
Python
false
false
4,312
py
""" Django settings for asite project. Generated by 'django-admin startproject' using Django 2.2.5. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ # Build paths ...
[ "peeterss83@gmail.com" ]
peeterss83@gmail.com
f263a6183283d1f869704eda248b45826d33de58
3fd3da4f11a251cc43d44d1d61ff2ffe5c82a4ce
/零起点Tensorflow快速入门tf_demo/ty04_mnist_dae.py
b071fb373d15c86bd361c5e55a70e194e2361ef9
[]
no_license
dumpinfo/TsBook
d95faded917bce3e024e77ff06afd30717ed9ef4
8fadfcd2ebf935cd49784fd27d66b2fd9f307fbd
refs/heads/master
2023-05-27T07:56:24.149421
2019-07-31T20:51:52
2019-07-31T20:51:52
198,481,031
1
3
null
2023-05-22T21:13:31
2019-07-23T17:47:19
Jupyter Notebook
UTF-8
Python
false
false
5,205
py
#coding=utf-8 ''' Created on 2017.03.03 极宽版·深度学习·案例 摘自·极宽深度学习·系列培训课件 @ www.TopQuant.vip www.ziwang.com Top极宽量化开源团队 简单的MNIST手写字体识别案例 使用TensorLayer简化接口 @from: http://tensorlayer.org ''' import numpy as np import tensorflow as tf import tensorlayer as tl from tensorlayer.layers import set_keep import time,os #-...
[ "twtravel@126.com" ]
twtravel@126.com
0bec3f3d2f42ec3c4c5aaeb2e995a95f0fa7f9d7
3bbce1e8c88fe001ce17aa5c7a1d59f190f2fa97
/weibo/server/analysis_weibo.py
4da07c668929c3c2159f21683eddc5e70402b6d8
[]
no_license
flysky1991/weibo
2e975bc95d7c0b2f5b0f9e34f412c2b561a4132d
4c2b1a83c014d927939b1119086163cab6004e3c
refs/heads/master
2021-01-11T14:09:05.766341
2016-04-11T13:48:08
2016-04-11T13:48:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
# -*- coding: UTF-8 -*- import zerorpc import jieba.analyse import jieba import sys class AnalysisWeiboRPC(object): def __init__(self): jieba.set_dictionary('../dict/dict.txt.big') jieba.analyse.set_stop_words('../dict/stop_words.txt') jieba.initialize() def ExtractWeiboKeywords(self, content): ret...
[ "763687347@qq.com" ]
763687347@qq.com
c2d60a6202cd75d38d67da54d59570178aad0398
a9659f882c96507786f0a898c2ca8599a684ac8a
/k101cmap2.py
168476cc1c1b36e1b77d79446034fb6aed9f1fd0
[]
no_license
equalll/zk10
f2bbad2353cc0225a2761bf4170e4831372d35a2
dc52edc3b0aa34d68ca51141a6a8033c5c8acd91
refs/heads/master
2021-06-28T13:57:17.568075
2017-09-19T14:21:40
2017-09-19T14:21:40
104,084,868
3
2
null
null
null
null
UTF-8
Python
false
false
686
py
# -*- coding: utf-8 -*- import numpy as np import pandas as pd import matplotlib as mpl # ======================= mpl.style.use('seaborn-whitegrid'); def sta001(k,nyear,xd): d2=np.fv(k,nyear,-xd,-xd); d2=round(d2) return d2 # ======================= dx05=[sta001(0.05,x,1.4) ...
[ "zxcv@zxcvdeAir.lan" ]
zxcv@zxcvdeAir.lan
ecf0b538759f7f47899d95133baf31ffefb74016
1e87dc43f6b5d8a36dca8a34593616e8d44d3995
/nighthawk_web/nighthawk/settings.py
c2d9cfe36c3268d09a806f7a013b8038f24bd4cb
[]
no_license
nguyenducnhaty/nightHawkResponse
05de49847af24711d6ddd6f5da31252891cd837f
ff5d9310896944b39c9382ed7fb32d08445fc7d2
refs/heads/master
2021-01-24T21:41:10.557707
2016-07-18T11:21:32
2016-07-18T11:21:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,602
py
""" Django settings for brstriage project. Generated by 'django-admin startproject' using Django 1.9.6. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os ...
[ "biggiesmalls@biggiesmalls.local" ]
biggiesmalls@biggiesmalls.local
634a2453a9b4b2a8fc54994b877044ddb9b0b990
b5dca50903ef654f14ddc0b61a1a3d47caa2b3b9
/idlhelp2txt.py
0dc82e5ae507cad39abe36681bbd38410b9e77b6
[]
no_license
mgalloy/ridl
e58a3389ec338f0dd9851a05eeb02cdff60621bd
d846bbf3541095433d9d64514d5a9e62bacc1aea
refs/heads/master
2021-01-21T21:55:35.754220
2017-11-17T17:48:27
2017-11-17T17:48:27
6,301,833
6
3
null
null
null
null
UTF-8
Python
false
false
4,547
py
#!/usr/bin/env python from HTMLParser import HTMLParser from optparse import OptionParser import os class IDLHelpParser(HTMLParser): def handle_charref(self, name): if (name == "160"): self.current_text = self.current_text + " " def handle_data(self, data): # compress whitespace strip...
[ "mgalloy@6cd51d45-9568-0410-80bb-ac2a7bf28483" ]
mgalloy@6cd51d45-9568-0410-80bb-ac2a7bf28483
3d2cd1586ff2852fb05d9036828797e26eb6b87d
79d2bb228a15efaa9d793ecd80cdfa7a9a09f44c
/Assignment8/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build/config.gypi
442873c02fb3e7e796be9b43f3e64c27469c91bf
[ "Apache-2.0", "MIT" ]
permissive
eduardorojas/LearningWebAppDev
39b8c23aa20983e2fd0a011a488c0d26662b1465
2647b707214a5e5f940d6a0b58d7658955aa6bb9
refs/heads/master
2021-01-18T09:23:07.919472
2015-05-07T06:37:03
2015-05-07T06:37:03
30,628,663
0
0
null
2015-02-11T03:29:00
2015-02-11T03:29:00
null
UTF-8
Python
false
false
3,377
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "clang": 0, "gcc_version": 48, "host_arch": "x64", "icu_small": "false"...
[ "eduardorojas@csu.fullerton.edu" ]
eduardorojas@csu.fullerton.edu
ad83fdab6ab11cbf459e1859825e5ed321ea77dd
c6f432fe7dc88969c2a7bb4f9cf11794902a3ce7
/WEEK 6/newsmedia/newsmedia/pipelines.py
190f67dc57a2e1cb9801bc22f241aae51520f8c9
[]
no_license
muhammadsyafr/progress-internship
6b6073ef50c6a3bd59d2c606d2e8022c87718dea
7e3f6d8837b6372c301b7cb765bab97acf757a91
refs/heads/master
2023-02-11T11:33:22.549456
2021-01-07T09:46:05
2021-01-07T09:46:05
297,983,125
0
0
null
null
null
null
UTF-8
Python
false
false
2,532
py
from itemadapter import ItemAdapter import mysql.connector class NewsMediaPipeline: def __init__(self): self.create_connection() self.create_table() def create_connection(self): self.conn = mysql.connector.connect( host = 'localhost', user = 'root', ...
[ "muhammadsyafr@gmail.com" ]
muhammadsyafr@gmail.com
e3eca69358ba36f71ba1c9d09d6d5fe37180ae93
363283660da27c4f8858baf005df2a6953eee414
/plugin/relationships/depends_on_setting.py
7c881a1d618dadb6652fb055d97993cc7ec33e0a
[ "Apache-2.0" ]
permissive
MSO4SC/cloudify-im-extension
2b543e8f86fe1e4be8f33a291edd18ffc87f1c27
b8e6dfeb9a7902a38f602735780390a256fb72b7
refs/heads/master
2020-03-29T16:00:37.953408
2018-11-14T15:13:07
2018-11-14T15:13:07
150,092,366
1
1
Apache-2.0
2018-11-22T16:11:07
2018-09-24T11:27:20
Python
UTF-8
Python
false
false
1,381
py
from cloudify import ctx from cloudify.state import ctx_parameters as inputs from cloudify.decorators import operation from cloudify.exceptions import * from plugin.relationships.utils import * @operation def preconfigure(config, simulate, **kwargs): if (not simulate): reset_log_indentation() ctx.l...
[ "victorsv@gmail.com" ]
victorsv@gmail.com
ba0dc0c1dd56f8ee1b451ab59c07c29c3a801095
2d54ab7a1e829f89b554d6abc27527fdb38539ff
/inform/migrations/0004_informs.py
20c7996dc57f36f4fd18bc30a56bf45231e75bbf
[]
no_license
zhtjtcz/Software-Backend
1c3c73d8863d0d0df9cdfa08e4900f878127ed6c
ca865f1fe75493098050b236634f776f7b97d04d
refs/heads/main
2023-06-07T06:28:05.345830
2021-06-17T16:30:47
2021-06-17T16:30:47
367,622,524
8
0
null
null
null
null
UTF-8
Python
false
false
914
py
# Generated by Django 3.2 on 2021-06-13 11:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('inform', '0003_rename_infromid_score_informid'), ] operations = [ migrations.CreateModel( name='Informs', fields=[ ...
[ "18377221@buaa.edu.cn" ]
18377221@buaa.edu.cn
c1b8cb4afb317bb4a3ff1178eb82bc5bd069cdda
8020d31217cf69ebf567b6d3f33185eb708ef64d
/Author disambiguation/author_disambiguation6.py
4d5d09efa915635f3850c0040c6700553bdc8add
[]
no_license
myusernameforg/Codes-for-Web-of-Science-data
ed2e3d779988133b553b5b00bf0c37e695639ab6
fc15148d6f4d353b038a57132a1375dc63b06ba7
refs/heads/master
2022-01-24T04:00:22.868927
2018-04-17T01:51:58
2018-04-17T01:51:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,611
py
# -*- coding: utf-8 -*- """ Created on Tue Dec 12 16:24:32 2017 @description: Author disambiguation use the name of authors. Searching if the two cited each other at least one. @author: Lanry Fan """ import pymysql import cited_eachother db=pymysql.connect('localhost','user','psw','dbname') #Step-1:Initial [aid_raw5...
[ "noreply@github.com" ]
myusernameforg.noreply@github.com
32fa298487509f6a5acbaae51165cc28c565dd84
b7e1c8199a850cfc0545553b29efe84967fdb3a0
/BD Commission Reports Final.py
67e2ce11fc0cfdba9d217ab781defd9452476f7f
[]
no_license
BBBhot/future-commission-reports
7fd9c86125236351428ae8d33de054ab911a1d4f
210aae292899d9d079a28ed6a316d2a588c0e64f
refs/heads/main
2022-12-28T16:15:24.135925
2020-10-07T14:13:36
2020-10-07T14:13:36
302,057,634
0
0
null
null
null
null
UTF-8
Python
false
false
25,019
py
import pandas import locale import datetime minDate = datetime.date(2020, 5, 24) maxDate = datetime.date(2020, 5, 30) locale.setlocale( locale.LC_ALL, 'en_US.UTF-8' ) def Date(temp): month = int(temp[0:2]) day = int(temp[3:5]) year = int(temp[6:10]) a = datetime.date(year, month, day) ...
[ "noreply@github.com" ]
BBBhot.noreply@github.com
7ba765617c732426446d0c13e8c0adc258575241
849faf896a1e3f496821fc60886e2e5b3f9bac91
/BatteryLog_3.py
8dda8b44036745aaad87f0743fedbd51055ce5c8
[]
no_license
MeltryllisMew/mzi
c56c27c4c65c8cf842165211ef29433b8ed46c48
202df49dee46bb392cc099526eeaa7cc07a935e5
refs/heads/master
2023-04-28T19:09:23.556153
2021-05-09T09:27:02
2021-05-09T09:27:02
260,984,734
0
0
null
null
null
null
UTF-8
Python
false
false
4,800
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import re import datetime import tkinter import tkinter.filedialog def findFile(path): #path = r'D:\log' upcoming = [] yesterdayTest = [] today = datetime.datetime.now().strftime("%Y-%m-%d") for root, dirs, files in ...
[ "noreply@github.com" ]
MeltryllisMew.noreply@github.com
2b271423c0c7d2c1832e51e64884c5716ec4fae9
1af1cfb3969b1dfdf45a4f4fba53f7606e5ac2e2
/2) DataStructures/Week3-Files/upper.py
a71eeee2747f24c2e6e1c5e59abdc97f1a25e6e4
[]
no_license
lom360/python-programming
cf1c53055a1097167e0eeccc7a9075a3e301d285
c4dc24ea043d3f71507150637e201f2aa1393ffd
refs/heads/master
2021-10-10T19:44:14.720009
2019-01-16T04:29:20
2019-01-16T04:29:20
104,544,374
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
fname = input("Enter file name: ") try : fh = open(fname) except : print("File does not exist") quit() for line in fh : uppercase_line = line.rstrip().upper() print(uppercase_line)
[ "lom360@mail.fresnostate.edu" ]
lom360@mail.fresnostate.edu
135a39176baf66276303b33c1c9f55d9c7dded39
366c06f0a5395ccd12d3c7b777a1615d567bd163
/merge_sort.py
fe31b35b4daf772091489a381b905a53dc6adfaf
[ "MIT" ]
permissive
medisean/python-algorithm
86867ae8460157ed03945f4f24d548900317dd49
9eb5544917bc174f3fe79256240ed642282c339b
refs/heads/master
2021-01-23T21:55:19.323816
2017-02-27T06:43:39
2017-02-27T06:43:39
83,114,256
0
1
null
null
null
null
UTF-8
Python
false
false
606
py
''' Merge sort algorithm in python. It's a Stable sort. Time complexity: O(nlogn) Space complexity: O(1) ''' def merge_sort(lists): if len(lists) <= 1: return lists num = int(len(lists)/2) left = merge_sort(lists[:num]) right = merge_sort(lists[num:]) return merge(left, right) def merge(left, right): l, r ...
[ "liangmingzou@163.com" ]
liangmingzou@163.com
157140fde9ce354ada3a80ee3b931e9b01497b01
7ac2ca7c952d40844c6576c18c439b426cff0152
/2_planet_model.py
aeb54d34157da6c229c7d1056da8ac86062deb49
[]
no_license
anyakors/MEPHI
8c6067183e66bfc254a7eb38eb1f827d13c63c6d
7a1dbdb7d714db11ef8fedf08a17142f333c092c
refs/heads/master
2021-05-27T21:04:47.995510
2014-05-11T09:23:15
2014-05-11T09:23:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,117
py
import numpy as np import matplotlib import matplotlib.pyplot as plt class planet: def __init__(self,nm,nx,ny,nvx,nvy): self.x = np.zeros(1) self.y = np.zeros(1) self.vx = np.zeros(1) self.vy = np.zeros(1) self.x[0] = nx self.y[0] = ny self.vx[0] = n...
[ "johndoe@example.com" ]
johndoe@example.com
f47d699a3740bb2adf9a4b0d4de640ce00b693d2
f7110aaab742fc92179302c5874691078ed05158
/django_intro/First_Django_Project/your_app_name_here/views.py
5445d8f0cdae6d3ecf905d47d4e1203d4fe3da2d
[]
no_license
Moha327/python_extra
0f9252a46a652ffe83d97cd0d6906a1835c2abbf
a3e1b31831578484c651d76bfd01173fe9d6eb10
refs/heads/master
2023-05-23T14:03:21.962212
2021-06-16T13:50:06
2021-06-16T13:50:06
377,511,352
0
0
null
null
null
null
UTF-8
Python
false
false
1,230
py
from django.shortcuts import render, HttpResponse # return HttpResponse("this is the equivalent of @app.route('/')!") def index(request): return HttpResponse("placeholder to display a new form to create a new blog") def root_method(request): return HttpResponse("String response from root_method") ...
[ "m7amad9595@outlook.com" ]
m7amad9595@outlook.com
009b42576420f47a183322ed92f4a0f4305f11cc
578ccd29d176543df9c83bf6ec91a1c5646332e8
/backend/app/__init__.py
cd64be71ad057bb7d38cf45bf7261e09f46b1f30
[]
no_license
visheshdvn/Blockchain-and-Cryptocurrency
d651faa628a13ebedb5d0117308944ad98b5ef90
9f542e486a4ac99d9b95aa7f5bac25d2c4a850c6
refs/heads/master
2023-05-31T11:26:18.426633
2020-07-11T17:56:41
2020-07-11T17:56:41
273,066,703
0
0
null
2023-05-22T23:58:20
2020-06-17T19:58:23
Python
UTF-8
Python
false
false
1,129
py
from flask import Flask, jsonify import os, random, requests from backend.blockchain.blockchain import Blockchain from backend.pubsub import PubSub app = Flask(__name__) blockchain = Blockchain() pubsub = PubSub(blockchain) @app.route('/') def default(): return 'Welcome to the blockchain' @app.route('/blockch...
[ "vishesh.dh1@gmail.com" ]
vishesh.dh1@gmail.com
4eb52a424e73dd3a52be04cb5261f666c98948c0
7786d4c2f43a78f34ebc95bd0607842eae71c30c
/wordcount/views.py
76348506d8cf2638f4711ca4d78288eb1db65f05
[]
no_license
kstevens67/wordcount-project
c5a235f2f4279ffb6fd56f69a6a869e1f9c63b88
dcf6f8a80032e487a2c0ae9b5f059c95b70f1c0d
refs/heads/master
2020-05-15T19:47:00.383128
2019-04-20T23:40:12
2019-04-20T23:40:12
182,465,637
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
from django.http import HttpResponse from django.shortcuts import render import operator def home(request): return render(request, 'home.html') def about(request): return render(request, 'about.html') def count(request): fulltext = request.GET['fulltext'] wordlist = fulltext.split() worddictionary = {} for w...
[ "kstevens67@verizon.net" ]
kstevens67@verizon.net
4a2e9950369065b640636f78eb810414bda63ba3
b947e245d15c8b61e23c98b8010b0b668b547c69
/app/migrations/0001_initial.py
fba9cb852a64ddc08ef980a8275daf9972ea2dd1
[]
no_license
NoorAlqoj/mptt-wagtail-admin
accacfeef10525c86247e3e201b4223b3fca1dc3
22286ec57b6dc3fcfb17a223e541492e05919f08
refs/heads/master
2023-03-30T05:33:03.962886
2021-04-01T12:18:41
2021-04-01T12:18:41
353,672,143
0
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
# Generated by Django 3.1.7 on 2021-03-24 08:17 from django.db import migrations, models import django.db.models.deletion import mptt.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', ...
[ "noor.alqoj@kuwaitnet.com" ]
noor.alqoj@kuwaitnet.com
d971b4f7d0d4b32e87dfff46df709275c33adce2
461c78e97658e4a0c89655ca36af3774f7c40457
/src/apps/posts/serializers.py
efd30e5c1dcb63db6251314a3d4696821b9d1398
[]
no_license
AlekseiChirkov/social-network
62bfb76467c1b3e7a156b6265f1f23cac0d0d140
3f33b13ffdf03f41cfdfbd2291d23ddcb8d7f2ed
refs/heads/master
2023-06-20T03:06:47.886321
2021-07-23T10:36:32
2021-07-23T10:36:32
386,913,748
0
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
from django.db.models import Count from rest_framework import serializers from apps.posts.models import Post, Like class PostSerializer(serializers.ModelSerializer): """ Post's serializer """ class Meta: model = Post fields = "__all__" class LikeSerializer(serializers.ModelSerializ...
[ "tektonikboy98@gmail.com" ]
tektonikboy98@gmail.com
94d62c8b0f085a1c9ff8557bc9a8e36e12dcc526
11dd6436678fcfd608707145298dfb11aa22e59b
/Schedule Web Scraper.py
0dc159af57f641f4b2f04411e2fb22afc8b1d3e9
[ "MIT" ]
permissive
sezenack/Red-Army-App
2640f5530b6953ec3b85677d9a866ace27192857
d5a37dd5c59e27eccc805e566f5a4f908303855b
refs/heads/master
2020-04-17T20:17:28.268814
2019-08-06T18:11:28
2019-08-06T18:11:28
166,899,088
3
4
MIT
2019-04-16T19:34:49
2019-01-22T00:19:51
Swift
UTF-8
Python
false
false
424
py
import requests import urllib.request import time from bs4 import BeautifulSoup # Schedule url1 = 'https://rpiathletics.com/schedule.aspx?path=hockey&' response1 = requests.get(url1, headers={'User-Agent': 'Custom'}) soup1 = BeautifulSoup(response1.text, 'html.parser') table1 = soup1.findAll('span') infostri...
[ "noreply@github.com" ]
sezenack.noreply@github.com
e4b11c617b8c19e66071c18899d2212e6fbaf258
2463092c9bef6cb019ee369575a71d1c9e36c2e9
/scrape_mars.py
50e4497428a93294e97498fe2decd99cecd63255
[]
no_license
sarahgrant11/NASA-Data-Webscraping-Flask
f5b51e1fac5c78e22f8dde9ca2e5b952926739fd
6f3ccfbb0f86c5b4b4ff63d1b9cb734e300e65bb
refs/heads/master
2023-02-10T16:01:17.787367
2021-01-07T01:26:50
2021-01-07T01:26:50
294,553,116
0
0
null
null
null
null
UTF-8
Python
false
false
2,929
py
import pandas as pd from splinter import Browser from time import sleep from pprint import pprint from bs4 import BeautifulSoup import requests import pymongo import time news_url = 'https://mars.nasa.gov/news/?page=0&per_page=40&order=publish_date+desc%2Ccreated_at+desc&search=&category=19%2C165%2C184%2C204&blank_sco...
[ "sarahgrant11@gmail.com" ]
sarahgrant11@gmail.com
0922d95d605a8ff9ba191632f45196ebe588128e
c8c05bd2f7bd1cf5a9cbfc6b6250199977ba221f
/db/models.py
8f873f61b1836b9e1a68db63bb45334800b664b9
[]
no_license
unraveldata-org/saas
4d507d216fa13855ab348af663705018dbe1740d
8a82dd5dbce473af04a39d7a7fe58cf2e8b63971
refs/heads/master
2020-12-26T14:03:50.573762
2020-03-08T13:36:25
2020-03-09T05:06:33
237,532,153
0
0
null
2020-10-27T22:18:28
2020-01-31T23:13:48
Python
UTF-8
Python
false
false
39,671
py
# Python standard library imports from datetime import datetime, timedelta import random, string import logging # Third-party imports from sqlalchemy import create_engine from sqlalchemy import Column, Boolean, Integer, Float, String, DateTime, ForeignKey, Text from sqlalchemy import func, and_, or_, not_ from sqlalch...
[ "alejandro@apache.org" ]
alejandro@apache.org
8f60b6e2507dd0bdca21ab846f4ce4d9ce6205e5
82c05807fd24e85336643ca3920fc008291835c6
/apps/alert/models.py
1f0b5ee714323064138d77b8d16c8a709630b98e
[]
no_license
iyunw/server_alert
61ae5e4c101b551049773754caa49310b68dac20
65d33f7537175cc9546a8b6f793a25b73f056ced
refs/heads/master
2023-07-12T06:08:54.856230
2021-08-08T12:51:07
2021-08-08T12:51:07
390,762,507
2
0
null
null
null
null
UTF-8
Python
false
false
2,193
py
import os from server_alert.settings import BASE_DIR from django.db import models def get_alert_bankend(): """ 获取后端发送支持的列表,使整个系统动态 :return: """ bankend = set() for root, dirs, files in os.walk(os.path.join(BASE_DIR, "apps/utils/alert")): for file in files: if not str(file)....
[ "351937287@qq.com" ]
351937287@qq.com
1f2a223714d8ed37266c2d906d54ca3d841f623b
28a8a9fd5f334c8c3363be50e7d963003fa2ca4f
/upload.py
e77367831e2bce57bebea9d5f0652b9a2e9b6564
[]
no_license
shehasv/Medical-Image-Enhancement-
4a0644ba0fd00902b217e912729162122772b9ca
6841f390fdaff4c59d720759cf298d47aff4a208
refs/heads/master
2022-12-24T04:49:39.593173
2020-04-24T12:12:13
2020-04-24T12:12:13
258,500,592
0
2
null
2020-10-01T18:16:19
2020-04-24T12:02:31
Python
UTF-8
Python
false
false
3,514
py
from flask import * app = Flask(__name__) app = Flask(__name__) app.secret_key = "secret key" import os #import magic import urllib.request from PIL import Image from flask import Flask, flash, request, redirect, render_template from werkzeug.utils import secure_filename import os import pandas as pd import numpy ...
[ "noreply@github.com" ]
shehasv.noreply@github.com
46b584d31b0b8bd3d8b9ed488a0ecc0fdc9a730d
e24da8bd3329b6764fc7fdba28b9c09f79926eff
/scATAC/rules/sc_atac_link_fragment.smk
dea06c9f208803c0ead5f1e5e0e9081cdac778b5
[ "MIT" ]
permissive
crazyhottommy/pyflow-single-cell
f56a642e8798e23828aa69486a5cc2b47b290104
0ee9a0c1045ee3d1a46467e2fe630570298c41bd
refs/heads/master
2023-03-15T10:40:03.262732
2020-11-24T00:41:40
2020-11-24T00:41:40
269,082,123
4
2
MIT
2021-03-05T19:21:42
2020-06-03T12:28:25
Python
UTF-8
Python
false
false
453
smk
rule scatac_link_fragments: input: frag = lambda wildcards: FILES[wildcards.sample] output: frag_dedup = "Result/minimap2/{sample}/fragments_corrected_dedup_count.tsv", fraggz = "Result/minimap2/{sample}/fragments_corrected_dedup_count.tsv.gz" shell: """ # make sure it is sorted gunzip -c {input.frag}...
[ "tangming2005@gmail.com" ]
tangming2005@gmail.com
19496b155460372aa9099fd1c87da3ac74f7006a
c86aa739a506072ca476456794942f741410068f
/lstm_example/lstm-datascience-task/src/data/make_dataset.py
3a9838594a3a642ca347a3c34dd95c6691ca3ccd
[]
no_license
ENate/ml_models
23ecf46398d4a530217acca4ccd0ad91de1b0e78
169bccfc95e1705fa219c5b26cbb1e54d093cd4a
refs/heads/master
2023-01-29T18:18:42.772029
2020-12-14T16:46:12
2020-12-14T16:46:12
287,022,927
0
0
null
null
null
null
UTF-8
Python
false
false
3,852
py
# -*- coding: utf-8 -*- import click import logging import pandas as pd from pathlib import Path from dotenv import find_dotenv, load_dotenv @click.command() @click.argument('input_filepath', type=click.Path(exists=True)) @click.argument('output_filepath', type=click.Path()) def main(input_filepath, output_filepath):...
[ "diogenolaudah@gmail.com" ]
diogenolaudah@gmail.com
27d9bcabf55ce6e54de1de19687dd63e11857f24
7d67aa17a1cef639c05bf3bb159f53ebe89c277c
/reporter/models.py
ed5b5699dc065fb8ba8c6a62c0ddb332cb03348e
[]
no_license
AnushreeDhar/Geodjango-
08df36c6895629dd88edc9b489e2a57c098f009e
f1891a1670dc8f97cb8485dcb24a45e8d1ed5539
refs/heads/master
2020-03-27T06:02:16.286973
2018-08-25T08:35:25
2018-08-25T08:35:25
146,073,262
1
0
null
null
null
null
UTF-8
Python
false
false
672
py
from django.db import models from django.contrib.gis.db import models from django.contrib.gis.geos import GEOSGeometry # Create your models here. class Incidences(models.Model): name = models.CharField(max_length=200) location = models.PointField(srid=4326, spatial_index=False) def _u...
[ "noreply@github.com" ]
AnushreeDhar.noreply@github.com
61db1e21237d636d848987f0e5310e762d697737
21033e8ee7a76cce124438116001b11448fa2362
/scripts/test_sms.py
f391712fd95b562815c0b2113bd41bfe47d6b417
[]
no_license
koryd-bixly/nebri-gottovote
68b610db3c49b36ea3320fe83562791f24016f6d
974344cd97d6a06780a9a5c529a9fbcdb0fec6cb
refs/heads/master
2021-01-10T07:56:15.593290
2016-01-18T17:52:59
2016-01-18T17:52:59
49,894,359
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
class test_sms(NebriOS): # listens_to = ['korytest'] listens_to = ['auth_check'] def check(self): return True def action(self): send_email("koryd@bixly.com","""Test message test_sms""")
[ "koryd@bixly.com" ]
koryd@bixly.com
60ed092200dd2e61d66aedce4e6f34247952ea53
dc2a3100207046a41ff18b2a088c39eb3912a512
/crawler/spiders/games_3dm_shouyou_spider.py
c42aac152d57a95d8a306084609bc74442a913dd
[ "MIT" ]
permissive
ZhanZongHan/crawler
3ec8bd33f7e5ca52022f0a84d6e214d174792a45
9f9a14ff622eff75bc7762d4afb32285cc36c486
refs/heads/master
2020-06-30T07:45:09.315727
2019-09-06T03:18:18
2019-09-06T03:18:18
200,769,607
0
0
null
2019-08-06T03:29:07
2019-08-06T03:29:07
null
UTF-8
Python
false
false
3,360
py
# -*- coding: utf-8 -*- import scrapy from crawler.items import ThreeDMShouYouGame import requests from crawler.tool import random_filename class ThreedmconsolegameSpider(scrapy.Spider): name = 'games_3dm_shouyou_spider' allowed_domains = ['shouyou.3dmgame.com'] start_urls = ['https://shouyou.3dmgame.com/z...
[ "347649372@qq.com" ]
347649372@qq.com
1aef27e3303ff6b762d2d8d660504253da0b4768
25e92e706e98831a884f63b41ade3e7f7face2d2
/sim.py
6f00ac2aba021cee0afc2bb3f24a4e49c15a16f5
[]
no_license
CrueLu/freeliquid-ct
87bdcf21230f71230c9af01ad973b1dd6c6dcd8d
4e7dd1de5ad508158cd599a82ce64fe6a1221dc8
refs/heads/master
2023-03-24T16:41:05.930601
2021-03-21T07:36:08
2021-03-21T07:36:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,126
py
import numpy as np import pandas as pd import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt supply = 0 balance = {} lastUpdateTime = 0 rewardRate = 2 rewardPerTokenStored = 0 userRewardPerTokenPaid = {} rewards = {} def rewardPerToken(curTime): if supply == 0: return rewardPerToken...
[ "Freeliquid@Freeliquid.com" ]
Freeliquid@Freeliquid.com
8c1ae4c043ded390bd27c6dba01954f60b505fe0
4cecdad726371e467f62b8685a9e28ea825db843
/ch-02-linked-lists/02-kth-to-last.py
eab19496fcc481715cc017311ba3345cf21c1634
[]
no_license
kazuki-shin/CCI
cd0e6041d1d359243c9d3ac8b7922cec58a40c56
42e760b5df8f4910aac83f2f7c0d0d6860d89e37
refs/heads/master
2020-06-04T18:38:51.889606
2019-07-03T02:16:29
2019-07-03T02:16:29
192,147,954
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
# Return the k^{th} to last node in a linked list. import unittest def kth_to_last(head, k): node = head cnt = 0 if node: node.next cnt += 1 node2 = head if cnt > k: node.next cnt-=1 return node.data class Node(): def __init__(self, data, next=None): self.data, self.next =...
[ "kazukis2@illinois.edu" ]
kazukis2@illinois.edu
03bbac5bad7cdcbe038bb42411a7d63a714bc77c
ebf71cb2d7aff1d3908b92601680bd6f1f833d9d
/app/Course/view.py
30d669828a59fe11b764aa42719d251c167d8418
[ "MIT" ]
permissive
eq99/sophiadb
92c14764682e99d1b7bdea7f73dbcbe64562c3a6
74ac82bf32141ef502a93f005666e09ac0303d1a
refs/heads/master
2023-05-01T10:24:05.454897
2021-01-26T12:38:15
2021-01-26T12:38:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,484
py
from datetime import datetime from flask_restful import Resource, reqparse, abort, fields, marshal from flask import Blueprint, jsonify from plugins import db, api from app.Course.model import Course from app.User.view import user_fields from app.User.model import User from app.File.model import File from app.File.vie...
[ "zuiaiqiansen@163.com" ]
zuiaiqiansen@163.com
0a1006fe9c1e5871bd56c2e058f713f979000beb
d169d6f963b9f3aab3362ee964b94eee2d769b5c
/HubUpdateChoServer.py
04306916289992d78f1689b568407ceaa8bb060a
[]
no_license
thaduri-karunakar/UIMCHOInfraMonitoring
02da6797dc16e0f6973bdfb579dfdd8436a5f432
1322651c32fe1b2ab18df31f70703f88fd7c516d
refs/heads/master
2023-07-21T06:04:21.839472
2021-08-24T04:56:12
2021-08-24T04:56:12
299,653,402
0
0
null
null
null
null
UTF-8
Python
false
false
1,596
py
from pypsexec.client import Client import time import sys # to raise specific exception using sys.exc_info() start = time.time() ip ='10.17.162.2' try: c = Client('10.17.162.2', 'administrator', 'interOP@123', encrypt='False') c.connect() c.create_service() print('service created for following "{}"........
[ "reddy.karnakar4@gmail.com" ]
reddy.karnakar4@gmail.com
ea40c5db19399378ff47141803cfeb08151060b0
3bbe4abbb501b3dbfc24f9dbdb147c3376413b67
/.venv/lib/python3.7/encodings/oem.py
245f1ae53fad3f83ebb7583663d2fe17ae9c7cd3
[]
no_license
SonGokussj4/kbl2nas
38f02f2b0959f517294273604df9ce754ba8ec31
fd06f118795987648f08db40a2b877907360245c
refs/heads/master
2020-05-18T20:23:33.255556
2019-06-13T16:46:58
2019-06-13T16:46:58
184,627,997
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
/expSW/SOFTWARE/python371/lib/python3.7/encodings/oem.py
[ "jverner@evektor.cz" ]
jverner@evektor.cz
edc23ba6a96b09d762519c7a0dabfd4f0528c643
d382cdd35b700ae2d19b4847d80e07cddbf39b1e
/forum/views/readers.py
3b47757acb2f7f8773adc873f9f05e271c885831
[]
no_license
dal-bhaat/stack5
9509cda9b6b71d3729b95e903b53dbe30cbafccd
04989e48128398d1cd22759f0a7b3283a209e0f5
refs/heads/master
2020-05-30T11:30:24.510678
2014-07-24T10:53:46
2014-07-24T10:53:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
31,660
py
# encoding:utf-8 import datetime import logging from urllib import unquote from forum import settings as django_settings from forum.settings.privilege import * from forum.settings.minrep import * from django.shortcuts import render_to_response, get_object_or_404 from django.http import HttpResponseRedirect, HttpRespons...
[ "pappudada@mailinator.com" ]
pappudada@mailinator.com
5124df50c0b04b5c2156d4b43959f9d323071d3b
26b66f2d11b28bc5f859021e011d3b5d1e1ed8ee
/src/py-ds-local/nightjar_ds_local/__init__.py
1c88e778293d97f2c84cb7656012763674fc1020
[ "MIT" ]
permissive
groboclown/nightjar-mesh
8f12c8b90a0b4dd5b6f871123e2d3d0c89001db2
3655307b4a0ad00a0f18db835b3a0d04cb8e9615
refs/heads/master
2022-12-13T13:04:02.096054
2020-08-12T23:30:30
2020-08-12T23:30:30
207,360,091
3
1
MIT
2022-12-13T11:13:30
2019-09-09T16:59:02
Python
UTF-8
Python
false
false
529
py
""" Data Store for simple, flat files, stored locally. This stores one copy of the templates and configurations. These are just JSON formatted files. The template storage file is located in the environment variable `DM_LOCAL__TEMPLATE_FILE`, and if that is not given, then the default `/etc/data-store/templates.json...
[ "matt@groboclown.net" ]
matt@groboclown.net
0c8d03fe7d951c70eb7461057696b30e15622c45
32045e1aea61551badbe3b54f7de206c51feb8c3
/mysite2/settings.py
a049b09e42a01589da9368ab5c2de8cea8ab50eb
[]
no_license
jhwan04/my-first-blog
e79db0dd7fbd582b274bb200ef0cff7faa4fb229
95e78cdbbd0ec47501ab59eddb5369707b678029
refs/heads/master
2020-04-10T15:56:58.810805
2018-12-10T06:26:10
2018-12-10T06:26:10
161,127,939
0
0
null
null
null
null
UTF-8
Python
false
false
3,413
py
""" Django settings for mysite2 project. Generated by 'django-admin startproject' using Django 2.1.2. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os #...
[ "jhwan04@naver.com" ]
jhwan04@naver.com
7bae55f5cd68ee57c4d09fa42a12ca47aa791d39
c97ea13036c0dfdd97c7e4c0f286933935222754
/playground/pyramid_restapi/hello_world.py
3df201d59f1a716161a18f4c2cc273bfc3e13401
[]
no_license
marionleborgne/angular_webapp
2fe45204a865554d244450ecd7813b0ebd1ebed1
7d3c6f0f845d4389cda4cca91c4aef923994d18b
refs/heads/master
2021-01-22T12:07:40.036375
2015-07-11T20:02:55
2015-07-11T20:02:55
19,565,273
0
1
null
2019-09-04T21:57:47
2014-05-08T07:56:03
HTML
UTF-8
Python
false
false
1,097
py
#!python from wsgiref.simple_server import make_server from pyramid.config import Configurator from pyramid.response import Response def hello_world(request): return Response('Hello %(name)s!' % request.matchdict) class TestServer(object): """Pyramid Test""" global server global co...
[ "marion@lyatiss.com" ]
marion@lyatiss.com
fccc8567a3538d0dfa57c8bf90ef76e56e6eea2c
e846fe707fdd9d3ef645d8fd3b404eb8a16fc395
/splay-tree.py
94b4ac32313cc6a103f74f8a89e6b05b0b8664e3
[]
no_license
roma646/home_tasks
f156fc7a92cd7237ce1dabcc0ca032382d1fe17b
297cf8a16fa41abafb0c70e764af2112fa77aa4b
refs/heads/master
2022-12-26T16:29:36.327331
2020-10-05T12:22:49
2020-10-05T12:22:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,231
py
from Node import Node from splay import * import copy def F(x, s): return (x + s) % 1000000001 def plus(i, tree): if find(tree, i).key == i: return tree else: tree = add(tree, Node(i)) return tree def minos(i, tree): if find(tree, i).key != i: return else: tree = remove(find(tree, i)) return tre...
[ "noreply@github.com" ]
roma646.noreply@github.com
42c699193149a09a0da7464a1f0b0a15dd48c2be
52d96272ed356314bb0bcd1e5a5758a674d9f4aa
/module/extra/listpid.py
6f2f4b59d79fb2be08914eab9b33a26cb5b8019c
[]
no_license
mockillo/Brunobot
b1e52f458e73b15724e9ac6d3bb72df586c93c37
33ae796e20aaf224ac7506d1a2436aa5df044c45
refs/heads/master
2021-01-16T01:26:42.990525
2013-03-12T17:56:13
2013-03-12T17:56:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
841
py
''' Required for Brunobot module''' author = 'Russ Anderson, Vegard Veiset' version = '1.0' name = 'listpid' require = ['communication'] listen = ['cmd'] cmd = ['listpid','pid','pidlist'] usage = 'pid \.py' description = 'Displays processes matching a regular expression' from subprocess import Popen, PIPE ...
[ "veiset@gmail.com" ]
veiset@gmail.com
039223819b5506d0a34de149bdf7f9bee3fba418
f618cb7a1b1f49c02396a2bb969cc7518fd163ab
/doc/_gallery/2_3_instantaneous_frequency.py
a17ab147991133d5033cfc0b18306c67145421d0
[]
no_license
kingjr/pytftb
b968b8e2fc294a19cec8bf63e7d289f368ddf194
0bcacf5eef46bd173d90a23c00a7f4b8ee284b22
refs/heads/master
2021-01-16T22:27:05.587174
2015-06-25T05:16:02
2015-06-25T05:16:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2015 jaidev <jaidev@newton> # # Distributed under terms of the MIT license. """ Example in section 2.3 of the tutorial. """ from tftb.generators import fmlin from tftb.processing import plotifl, inst_freq import numpy as np signal, _ = ...
[ "deshpande.jaidev@gmail.com" ]
deshpande.jaidev@gmail.com
2b42bc0862e430557454e9b5a96192024a18c331
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02694/s576792057.py
701f7d18f2a81a811cc0bb6ccfa3946af1036f75
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
import math n=int(input()) c=100 for i in range(4000): c=(c*101)//100 if c>=n: print(i+1) break
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
75754cc97d069fa3a14220afd217e2f9a3f0eb7e
21a7725407f6d2ff73b42ae57c9014484a3ca875
/requestsCase/test_case1.py
09a3abda1f71e6ec5273f2d8024554d3e606f7dd
[]
no_license
niudaxx/Page_Object_Model
e7a16d148afc770ec1bce3a5869e0186159b25f1
0a64553c9877f8fc9c837c9674d0a305349c69b1
refs/heads/master
2023-04-06T08:41:39.410602
2021-04-19T09:40:18
2021-04-19T09:40:18
346,654,177
0
0
null
null
null
null
UTF-8
Python
false
false
1,975
py
# @Time:2021/4/13 13:42 # @Author:testDa # @File:test_case1.py # @Reason: from requestsCase.base_test import BaseTest from public.models.getyaml import getYaml from config import setting from public.models.log import Log import os log = Log() testData = getYaml(setting.REQUESTS_DIR + '/' + 'test_case1.yaml') class Tes...
[ "1134808131@qq.com" ]
1134808131@qq.com
80ea3e4d68dd65c0b8d23ae37c7d591e095f2e11
7efc2d4d0c8f985a6e2aae6b973767525b8af5a9
/tests/test_message.py
14e00582585e540f25b96beb0a94265543eae77f
[ "BSD-3-Clause" ]
permissive
wtolson/gnsq
d0db69b924cbeedf5713ab14fd36083e3117920e
1303230cbd977c81a06ff3d739fd0c915b57de3e
refs/heads/master
2020-12-24T16:24:12.732599
2020-10-21T19:12:03
2020-10-21T19:12:03
21,590,545
73
18
BSD-3-Clause
2020-10-12T02:36:20
2014-07-07T23:25:59
Python
UTF-8
Python
false
false
3,258
py
import pytest import gnsq class MockConnection(object): def __init__(self, message, operations): message.on_finish.connect(self.finish) message.on_requeue.connect(self.requeue) message.on_touch.connect(self.touch) self.operations = iter(operations) def finish(self, message): ...
[ "wtolson@gmail.com" ]
wtolson@gmail.com
fed31394e27df3de8d69c3d2a7f05eb06bbb7993
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/merula.py
c1f2d7293ba7348aea72669a9a5c6149d0381a0b
[]
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
158
py
ii = [('TennAP.py', 1), ('ClarGE2.py', 1), ('GellWPT2.py', 2), ('CarlTFR.py', 1), ('WadeJEB.py', 2), ('KirbWPW2.py', 1), ('SoutRD2.py', 1), ('DibdTRL.py', 1)]
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
bc79d20ccda8feb69ef9730b1672b3f4913fa27e
75dcb56e318688499bdab789262839e7f58bd4f6
/_algorithms_challenges/leetcode/lc-all-solutions/101.symmetric-tree/symmetric-tree.py
fa6722de53dc2ece0bc489f146b03a176b240eab
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
555
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def isSymmetric(self, node): """ :type root: TreeNode :rtype: bool """ def helper(root, mirror): ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
6ddeac1bfa135c0e88efc5de26c020aa9ead87b7
86d00c6ce86e9cc600530a044912abce652e4e60
/temp.py
ddb8f18cfa9b027251df9c36bdbe1102e0f120ce
[]
no_license
chihoxtra/AIND-Pacman
4ee4bfc7120edde5a7f738690c72ed40613ccb84
273c045ed60701f2f39c5c3e0419f985b884a358
refs/heads/master
2020-04-01T23:07:20.210947
2018-10-19T07:22:57
2018-10-19T07:22:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,415
py
""" manh distance + wall denstiy + block wall cost""" dCost = 0.0 wCost = 0.0 bCost = 0.0 dCostArray = [] wCostArray = [] bCostArray = [] if bool(foodGrid.asList()): for f in foodGrid.asList(): #distance component manhdist = util.manhattanDistance(currPos, f)...
[ "samuelpun@gmail.com" ]
samuelpun@gmail.com
6fbd4c3818fa153168ceecbdb8d21684998179b8
b7c32f83f92f3e75ee1e677bdb58fed6d9faac88
/modubot/bot.py
3af5324f1eaff95f36cc9201759997ce5fc28d76
[]
no_license
kryptx/sc2-bots
9abe27582a876f5092589d20eb9fc8ddbbd781d0
263e4670f472d57f925e1dbfb429f8293e1b837b
refs/heads/master
2022-12-15T10:07:39.038659
2021-05-15T05:04:46
2021-05-15T05:04:46
205,922,481
0
0
null
2022-12-08T08:20:25
2019-09-02T19:22:36
Python
UTF-8
Python
false
false
8,139
py
import logging import math import os import random import sc2 import sys import time from pythonjsonlogger import jsonlogger from sc2 import Race from sc2.constants import UnitTypeId, UpgradeId from sc2.unit_command import UnitCommand from sc2.units import Units from sc2.position import Point2 from modubot.modules.g...
[ "kryptx@gmail.com" ]
kryptx@gmail.com
33799c324715078a20e4aa313614ba00ba22a7fd
84455064ba5802840b1fea6d43cfea4034b1c7bb
/first_task.py
55b3e67214cc8edcf3ccd695c29159d2e944ac28
[]
no_license
hannan13231/most_frequent
2b6bb368eddccb7491671f09e87445e9c30c47a9
bf9a08b9d80a6390423bedaf4dc1c70daaef873d
refs/heads/main
2023-02-04T00:56:53.239741
2020-12-22T10:45:02
2020-12-22T10:45:02
323,597,099
0
0
null
null
null
null
UTF-8
Python
false
false
961
py
# most_frequent function def most_frequent(string) : # to remove duplicates from a string str1 = "".join(dict.fromkeys(string)) # check frequency of each alphabet and add the alphabet and count in dictonary for i in str1 : count = 0 for k in string : if i ...
[ "noreply@github.com" ]
hannan13231.noreply@github.com
0d1737f676248993459efa90b6363218f8da90ee
978caa22c8ccf0c92fce62bf39225201ea7976f9
/users/migrations/0006_prescreption.py
69a6537682fc79e8dccf194c400850e050d31670
[]
no_license
gaurav-patel-git/hospital-mng-sys
912a9140edfadd8b068ddbb52e9ee813678be9f9
79d48ac0f636ffa17f17ac708b6114bff893fed0
refs/heads/master
2023-01-06T14:57:45.814527
2020-11-03T08:48:54
2020-11-03T08:48:54
301,130,079
0
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
# Generated by Django 3.0.5 on 2020-05-25 04:25 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('users', '0005_profile_ph...
[ "gp8966891720@gmail.com" ]
gp8966891720@gmail.com
a9f466a4e4748119563e298e78b62432c49560bf
5dd1177d34759f78a08c96b4130ba9ffa25bda92
/des.py
6297bf3007c2f4cf1bbdb9fc8d05a53be8e34985
[]
no_license
TennoClash/5E-excel
bcc1a3bd8d9511df55d065b1bcad1427ab6d01f2
ac57c377984ffb8bb0ad107c9a162be6dba2b5d9
refs/heads/master
2022-11-07T18:30:31.327926
2020-06-25T06:13:37
2020-06-25T06:13:37
274,839,131
1
0
null
null
null
null
UTF-8
Python
false
false
1,029
py
# -*- coding: utf-8 -*- import xlsxwriter import datetime import os import time #startTime=datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')#现在 #print startTime startTime1 = time.time() #print startTime1 print(os.path.join(os.path.expanduser("~"), 'Desktop')) print(os.path.join(os.path.expanduser("~")...
[ "371349024@qq.com" ]
371349024@qq.com
06a7d49f4f3f197a089d05561ff0e7ac9e3d2e24
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/crsmithdev_arrow/arrow-master/tests/parser_tests.py
7682df8c3b3785f8f43a33bec67dffd88e6abf6a
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
26,860
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from chai import Chai from datetime import datetime from dateutil import tz import calendar import time from arrow import parser from arrow.parser import DateTimeParser, ParserError class DateTimeParserTests(Chai): def setUp(self): super(D...
[ "659338505@qq.com" ]
659338505@qq.com
e6905f4e1c0610dd44d7c8e75055f7ca166f85b7
18346732982b35516e5dba1edd3b079607882b69
/send_mail.py
4e9ad8b129724517e309513a584e935f9a192149
[]
no_license
srujana-patwari/python_codes
2fa5f2eb1830896335611c653140ea7caa0f99da
82b9a49f1ac52e96f8bf5480992d6c0a40020170
refs/heads/master
2022-12-07T07:55:35.788770
2020-08-29T17:41:23
2020-08-29T17:41:23
289,732,375
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email import encoders def send(filename): from_add = 'kulkarnisrujana66@gmail.com' to_add = 'srujanapatwari@gmail.com' subject = 'Finance Stock Report' ...
[ "noreply@github.com" ]
srujana-patwari.noreply@github.com
edb9e528fe0d4c12899483456a6a3c923e0792b3
2433bf78bc97396329f711b18ec2b8a5fc35ae3d
/ddmms/fcns/ml_fcns.py
f791191ff2638e06c4bdd4a1275ced9d2e4ef44d
[]
no_license
simon596/dataDrivenHomogenization
34b20856742542b3fad501ee9e0c74a7d858caa7
bc9b0123e05170ec53d0706dc87fb5b1a7ecebc4
refs/heads/master
2023-03-17T02:56:11.648473
2020-07-19T22:40:59
2020-07-19T22:40:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,075
py
import tensorflow as tf import numpy as np def get_mask_tensor_with_inner_zeros(shape=(5,5), dtype=tf.float32): """ create a m*n*1 tensor with the inner region to be zero """ mask_tensor = np.zeros(shape) mask_tensor[0,:] = 1 mask_tensor[-1,:] = 1 mask_tensor[:,0] = 1 mask_tensor[:,-1] = 1 ...
[ "zhangxx2643@gmail.com" ]
zhangxx2643@gmail.com
67d55d54687231d4e713766e49ec70a2377e53a9
bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd
/neekanee/job_scrapers/plugins/com/link/mzeal.py
c66dffc8ed7f69e9834f510183f61c44f6ba40c6
[]
no_license
thayton/neekanee
0890dd5e5cf5bf855d4867ae02de6554291dc349
f2b2a13e584469d982f7cc20b49a9b19fed8942d
refs/heads/master
2021-03-27T11:10:07.633264
2018-07-13T14:19:30
2018-07-13T14:19:30
11,584,212
2
0
null
null
null
null
UTF-8
Python
false
false
1,627
py
import re, urllib2, urlparse from neekanee.jobscrapers.jobscraper import JobScraper from neekanee.htmlparse.soupify import soupify, get_all_text, get_mailto from neekanee_solr.models import * COMPANY = { 'name': 'mZeal', 'hq': 'Fitchburg, MA', 'home_page_url': 'http://www.mzeal.com', 'jobs_page_url'...
[ "thayton@neekanee.com" ]
thayton@neekanee.com
13d4998fa967ed28daada838660962f5811b3fbe
1ba58b17f33122abf4236e9e430a51d375e0eb53
/km73/Kostetskiy_Nazar/4/task12.py
240d587ec18870449ebf92f0584f0174c5bec47d
[]
no_license
igortereshchenko/amis_python
c4f8d86b88ab036d08ff0ce35c9b42ebeabecc42
c6f0f2a70c82d5f269b3078eb296f82271b5bb10
refs/heads/master
2021-10-22T16:21:19.990650
2017-11-01T07:26:54
2017-11-01T07:26:54
104,785,028
0
139
null
2020-04-21T21:27:09
2017-09-25T18:11:42
Python
UTF-8
Python
false
false
122
py
m=int(input()) n=int(input()) if m%2==0 or n%2==0: answer = "Yes" else: answer = "NO" print(answer) input()
[ "noreply@github.com" ]
igortereshchenko.noreply@github.com
0f9d8f2e3fa2dd8d60f1cbe56ae09c2bbc4b8a8e
de5f0b48475772a4c5a44af099fe27e43f26e649
/code/23/part_2.py
17e27e6caa5c185978cc423a04edc36cd6aa320f
[]
no_license
lkboyles/advent
293010ad6f72ff8cf70b5b74bc7e61aebc56cd86
a1086956c03e508163b71a054b7247922d31b10e
refs/heads/master
2021-01-21T10:26:09.873302
2015-12-25T04:11:23
2015-12-25T04:11:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
#!/usr/bin/env python3 """Solve Day 23/Part 2 of the AdventOfCode """ import part_1 def main(filename): with open(filename, 'r') as f: instructions = [] instructions.append(part_1.parse_instruction('inc a')) for line in f: instructions.append(part_1.parse_instruction(line)) ...
[ "thobson125@gmail.com" ]
thobson125@gmail.com
f54cd3540ecc235efafc291f877fffaa52fcfb32
66a7338dab4443929badf73a180f4ac994732511
/Python/cubesat2017/soft/desktop/app/test/virtual/parser_test_virtual.py
e00daa6d92ee7bcdc85bf53465b87722a5b00906
[ "MIT" ]
permissive
Misha91908/Portfolio
0d1ecd2572de298abc68a446c9b399bc6a997b2a
c10b06462ec45f039778c77aa6c84e871cac34f6
refs/heads/main
2023-01-13T05:43:04.846916
2020-11-12T02:29:32
2020-11-12T02:29:32
302,099,311
0
0
null
null
null
null
UTF-8
Python
false
false
890
py
import sys import pytest import os def test_is_valid_packet_length(packet): counter = 0 valid_counter = 0 for i in range(len(packet)): if len(packet_parser.parse(packet[i])) == 16: counter += 1 valid_counter += 1 else: counter += 1 assert counter == ...
[ "misha91908@gmail.com" ]
misha91908@gmail.com
835d35129366cb6b7c7fe25a3b58cb31c862fcee
3d6f8dc406a18397c354df72ce7dbf5e87712567
/Threading/Thread_Lock.py
527cddf42033a3031b9bf111ad23034f0a96b633
[]
no_license
HonryZhang/Python-Learning
b7410153eff7cd4e51e6e5d69cf7a9bc739a8243
e29a75eb42588b2ac31d9b498827cba9c87fc157
refs/heads/master
2021-01-16T21:41:45.429416
2018-05-16T01:36:31
2018-05-16T01:36:31
100,246,266
0
0
null
null
null
null
UTF-8
Python
false
false
485
py
#!/usr/bin/env python # -*- coding:utf-8 -*- __author__ = 'Hongrui' import threading import time num = 0 lock = threading.Lock() def run(n): lock.acquire() global num # time.sleep(1) num+=1 lock.release() thread_list = [] for i in range(100): t = threading.Thread(target=run,...
[ "noreply@github.com" ]
HonryZhang.noreply@github.com
37862978e100f45c9b40e44de5af8037129df588
073d8aef7099fb40eb8fc4d9b443fab6a4c71912
/utils/tools.py
99a5179a0430721243e61986d5738875d91a67f6
[ "MIT" ]
permissive
xiaonanQua/experiment
7f4de2fbf5ff1b41a2480b0a2acd53497822ae57
19925c9af5cffc73451dc7674bc3afce25abf772
refs/heads/master
2020-09-23T14:03:03.960836
2020-06-04T12:17:55
2020-06-04T12:17:55
225,517,130
0
0
null
null
null
null
UTF-8
Python
false
false
16,731
py
# -*- coding:utf-8 -*- from __future__ import division, print_function, absolute_import import os, sys, time, math, torch, zipfile, random from torch.utils.data import random_split import numpy as np import pandas as pd import seaborn as sn import matplotlib.pyplot as plt from config.cifar10_config import Cifar10Config...
[ "1425877026@qq.com" ]
1425877026@qq.com
22ad2d08f0f429589ce8831fcda174a83dea41b4
2f8beb0b5b87057fce587e2273a6946627a0f167
/Samples/test_pk_v1.py
1d668e885bd64783c9e80b2b7bc9ae725935ed76
[ "Apache-2.0" ]
permissive
davidnugent2425/balder
0dee10b81c185c9e7484b4ff8cd11154662e015c
70b56da1df67025ba8c068a1c5a75eb47ec5155a
refs/heads/master
2021-09-24T17:40:15.204403
2018-10-12T16:25:27
2018-10-12T16:25:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,969
py
# coding: utf-8 # # # In[ ]: ## v1 import datetime import os import sys from timeit import default_timer as timer import logging import numpy as np import tensorflow as tf from PIL import Image # This is needed since the notebook is stored in the object_detection folder. sys.path.append("..") from object_detection.u...
[ "dennywangtenk@gmail.com" ]
dennywangtenk@gmail.com
96a0064c203eeb2ac596e10ba2d39ee3bf3c7811
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/ospf/rsextdeftoospfarea.py
02670cb210100358c19c0024717b98aed6513d1e
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
8,355
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
bae6e624ed20eb34036d0e3c8a708a7841ef770b
736015bd5edb7ccd96ea56e261b61f032e6a97a2
/setup.py
e8e9f5dd91b749075f53af6dac3d4c93fea31297
[ "MIT" ]
permissive
koalalee37/graphgraph.py
304ecb32eb7410f36515456fbfd80be7a4d1bc38
4e9b97c8a4b56c355317e62e7d81f0ecacf82e7c
refs/heads/main
2023-02-23T23:37:01.365122
2021-01-29T07:26:47
2021-01-29T07:30:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,223
py
from setuptools import setup, Extension from setuptools.command.build_ext import build_ext import sys import setuptools import os __version__ = '0.0.1.dev1' # Prepare and send a new release to PyPI if "release" in sys.argv[-1]: os.system("python setup.py sdist") os.system("twine upload dist/*") os.system(...
[ "jvmirca@gmail.com" ]
jvmirca@gmail.com
dfc11ea81a9e5e31ba1ed888074310f0d7523ceb
74912c10f66e90195bf87fd71e9a78fa09f017ec
/execroot/syntaxnet/bazel-out/local-opt/bin/syntaxnet/beam_reader_ops_test.runfiles/org_tensorflow/tensorflow/contrib/learn/python/learn/models.py
6d0daf4c6b55a6b96adcbeebf6e40287ffc3a1c3
[]
no_license
koorukuroo/821bda42e7dedbfae9d936785dd2d125-
1f0b8f496da8380c6e811ed294dc39a357a5a8b8
237fcc152ff436f32b2b5a3752a4181d279b3a57
refs/heads/master
2020-03-17T03:39:31.972750
2018-05-13T14:35:24
2018-05-13T14:35:24
133,244,956
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
/root/.cache/bazel/_bazel_root/821bda42e7dedbfae9d936785dd2d125/external/org_tensorflow/tensorflow/contrib/learn/python/learn/models.py
[ "k" ]
k
88b1c9f386eafb2d6a31fa233061bbcf655bec8c
c91775afdc25f8897c6839cf8294869f3e928083
/PythonFiles/snowmass_cfg_tj_14TEV_500_1000.py
6a4364571fa4ccee4878ee53e40059c5934e8c00
[]
no_license
Saptaparna/Miscellaneous
7e6df9cdfd10d4861e2e382b1837dbd4c26fb249
b954189d85e56a02fe257b5f5cbd779365719c00
refs/heads/master
2021-01-23T13:29:30.283308
2017-12-20T08:26:37
2017-12-20T08:26:37
42,525,018
0
0
null
null
null
null
UTF-8
Python
false
false
9,261
py
import FWCore.ParameterSet.Config as cms import FWCore.PythonUtilities.LumiList as LumiList import FWCore.ParameterSet.Types as CfgTypes # # Parameters that can be set via command line # when submitting Condor jobs # isMc_settable = True isSignalMc_settable = False def FindFile(name): fname = 'file.tx...
[ "saptaparna@gmail.com" ]
saptaparna@gmail.com
43009bda6f38abbff784e606cddd85f79ec39da5
a5698f82064aade6af0f1da21f504a9ef8c9ac6e
/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_order_coupons_by_order_id_response.py
efa3bfa42ebe822922501858843820138839f155
[ "Apache-2.0" ]
permissive
qizhidong/huaweicloud-sdk-python-v3
82a2046fbb7d62810984399abb2ca72b3b47fac6
6cdcf1da8b098427e58fc3335a387c14df7776d0
refs/heads/master
2023-04-06T02:58:15.175373
2021-03-30T10:47:29
2021-03-30T10:47:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,261
py
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ListOrderCouponsByOrderIdResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attrib...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
194217704d53d5a40b10e5d93d1fe04ec2e5f44c
c0fdf3ea874e2c88dd5b04dcd03fdfecf20d45fd
/utils.py
f51eeb099afb343c540094ed2359512592076771
[]
no_license
myplayareas/mypoo
141fae1707f3a071b7cbeb377c68bf57a6f5867e
f6583de47526798130168184262e885103702263
refs/heads/main
2023-09-01T08:48:02.209257
2021-10-08T14:40:18
2021-10-08T14:40:18
415,012,321
0
0
null
null
null
null
UTF-8
Python
false
false
1,851
py
import datetime import re class Validador: padrao_telefone_com_ddd = "[(][0-9]{2}[)][0-9]{4,5}[-]*[0-9]{4}" padrao_email = "[a-zA-Z0-9_.]{1,30}@[a-zA-Z0-9_.]{1,30}" padrao_data_nascimento = '[0-9]{2}[/][0-9]{2}[/][0-9]{4}' padrao_cep = '[0-9]{5}[-][0-9]{3}' @classmethod def valida_telefone(cls...
[ "armando.sousa@gmail.com" ]
armando.sousa@gmail.com
80096409522fce91ef9effa519a7c42de2d12216
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03607/s019750765.py
8cbf45ccab5124b64ddc5991fa8d4f7dfd2eb199
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
import sys ## io ## def IS(): return sys.stdin.readline().rstrip() def II(): return int(IS()) def MII(): return list(map(int, IS().split())) from functools import partial, reduce from collections import Counter #======================================================# def f_chain(*args): return reduce(lambda x, f: f...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
37ac761a18ecbf51d15178145d20d3c4a7ab073d
458e61dcae8bd16aaeceeece091399f195f7f252
/D4/source/WebInterface/wttune/urls.py
32f2c858c538f06ac317dcaaf81ccefb447fcac2
[]
no_license
hgagneja/WhatsThatTune
385c690b09dd11b272c66652987768df815c3008
dd0d5cff3aa669d0a650a88573c3a40bcf2f25db
refs/heads/master
2021-01-19T07:17:56.970692
2017-04-17T00:47:43
2017-04-17T00:48:38
80,393,908
1
1
null
null
null
null
UTF-8
Python
false
false
277
py
from django.conf.urls import url from wttune import views urlpatterns = [ url(r'^$', views.HomePage.as_view()), url(r'^about/$', views.AboutPage.as_view()), url(r'^services/$', views.ServicesPage.as_view()), url(r'^contact/$', views.ContactPage.as_view()), ]
[ "ganeshsanthar@gmail.com" ]
ganeshsanthar@gmail.com
1dc31fdf34250e91d0fc6c8d6501cceef736e66e
7e65f4e873f9a2d9c00f18460bccfe4a0ffa2ddc
/tests/__init__.py
e07d9c120061d1b97b052989a13b615309897574
[]
no_license
deathbeds/nostalgiaforever
6b00601363295fc3af0a8e0b8d8c68d1514c403d
50ea15ae2e6a608e0d90b7dd41a11354e1ea2e1c
refs/heads/master
2020-03-17T05:07:32.264543
2018-05-15T18:06:08
2018-05-15T18:06:08
133,303,188
1
0
null
null
null
null
UTF-8
Python
false
false
391
py
from pidgin.markdown import load_ipython_extension load_ipython_extension() from pidgin.conventions import load_ipython_extension load_ipython_extension() with __import__('importnb').Notebook(): from . import test_nostalgia from pidgin.markdown import unload_ipython_extension unload_ipython_extension() from pidgi...
[ "tony.fast@gmail.com" ]
tony.fast@gmail.com
21708cdebfba84b81ee7cb975756e0d8c5ed0f28
d302880316a4eb37952ac95fcfb6f4ae23979a41
/dataset.py
7686f793122940667fcddcb1a6391bc0a64d52db
[]
no_license
sivaprakashSP/FlaskAPI-Stuffs
c87f71788c03c53ee219ce330c533034b04ac648
bcdfafb00734b77c9822219fbecebdb1aa6fc5ab
refs/heads/master
2023-02-13T22:30:40.375613
2021-01-11T15:36:20
2021-01-11T15:36:20
268,286,583
0
0
null
null
null
null
UTF-8
Python
false
false
2,825
py
import flask import random #from flask import request,jsonify #import json app=flask.Flask(__name__) app.config["DEBUG"]=True @app.route('/api') def page(): return "API for collecting datasets" @app.route('/api/normal',methods=['GET']) def normal(): data={ "temparture":random.randint(36,37), ...
[ "sivaprakashsp@gmail.com" ]
sivaprakashsp@gmail.com
4e2da9b7e58dd7169f72fe62e4899f4b94ee4a4f
a8a5fb5ad28a2af8a12b4a7699ac7a24c9acdd98
/tests/test_io.py
8aa18e2e09f16b5a875e04119edec67cb075ca33
[ "MIT" ]
permissive
robtucker/pyspark-tooling
31a2cc1aa588642815c163f9d18c5821bc341feb
946773975b4069c448dca1590eff3ae77a25be98
refs/heads/master
2021-01-03T19:02:48.467728
2020-05-29T17:06:08
2020-05-29T17:06:08
240,201,045
1
0
null
null
null
null
UTF-8
Python
false
false
5,775
py
import pytest import psycopg2 import random import string from pyspark.sql import SQLContext from pyspark.sql.types import StructType, StructField, StringType, IntegerType from tests import base from pyspark_tooling import io # @pytest.mark.focus class TestIOUtils(base.BaseTest): @pytest.mark.usefixtures("spark...
[ "rob@coderlab.co.uk" ]
rob@coderlab.co.uk
8d5966f9480e8730f62c18c0b0bd037c1b64eaf0
fe75921a0f303f4954f1df91b7bbddc075ad4373
/product_importer/migrations/0001_initial.py
f3e50cd9e0b20a93563c550dc18a16479fc7605f
[]
no_license
jagadeesh-r1/fulfil
8f8e1a893b3ca506be4cbb54beb0ae8e7ad29c2a
da172e6f276e9ab32eb6bdd207dc244ad5445deb
refs/heads/main
2023-06-30T16:43:54.060309
2021-08-01T13:19:19
2021-08-01T13:19:19
390,650,920
0
0
null
2021-08-01T13:19:20
2021-07-29T08:14:23
Python
UTF-8
Python
false
false
617
py
# Generated by Django 3.2.5 on 2021-07-30 15:17 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Products', fields=[ ('id', models.BigAutoFi...
[ "mail4jagadeeshreddy@gmail.com" ]
mail4jagadeeshreddy@gmail.com
8b4db53c8bebf284a0620aba78a3fc463f9e0295
eb61d62ca1f6f0123e3771105f5dfbbd6115138d
/.history/19-08-21_20210912000723.py
4ea5b8ff6f4a3d8b68e5e42719cd1347908f6ed8
[]
no_license
Alopezm5/CORRECTO-2
e0f14bcc3a88c0e222d10e3261e68532008bc42e
223613f1fb04dce3fac9f82f243cb2f22fe100f3
refs/heads/main
2023-07-29T06:52:48.147424
2021-09-12T20:33:27
2021-09-12T20:33:27
388,995,308
0
0
null
null
null
null
UTF-8
Python
false
false
2,157
py
class Empresa: def __init__(self,nom="El mas barato",ruc="0999999999",tel="042971234",dir="Juan Montalvo"): self.nombre=nom self.ruc=ruc self.telefono=tel self.direccion=dir def mostrarEmpresa(self): print("Empresa: {:17}, RUC: {}".format(self.nombre,self.ruc)) clas...
[ "85761855+Alopezm5@users.noreply.github.com" ]
85761855+Alopezm5@users.noreply.github.com
cf406bcab3aa81a862ce748f8e3ba8feb952dfa3
592b671dd5badfd199f27422b442c65a7db4a697
/knowledge/cron/API_user_portrait/person_organization.py
0cafe2c8fb55f8db594111d55448c3de2d647436
[]
no_license
gaofeifei/knowledge_revised
eea10058a73454519a038a315e4b23a0ad4b3afa
0ee7fc70e54e99d5d70f78030b90aceaa43aa98c
refs/heads/master
2020-05-22T20:53:16.230561
2017-03-22T02:29:12
2017-03-22T02:29:12
84,723,562
0
0
null
2017-03-12T12:25:28
2017-03-12T12:25:28
null
UTF-8
Python
false
false
14,378
py
# -*- coding: UTF-8 -*- import os import time import scws import csv import sys import json import heapq from elasticsearch import Elasticsearch from config_relation import * #sys.path.append('../manage_neo4j/') from neo4j_relation import * class TopkHeap(object): def __init__(self, k): se...
[ "1257819385@qq.com" ]
1257819385@qq.com
fb814dd78c19550480f1867a3da068ab17c60a80
ec1fa293ccdb3b11ab0172aad1893c95a6aacbb5
/comm/pipeline.py
3793c7e5847820aa43b60e9cf1cf179f5f8b70f6
[]
no_license
benkehoe/python
c6ce388a488b87a63aaf8c07d28593beb147293c
e1ee1ef836b0bfe009c47e7991609db617c7826a
refs/heads/master
2021-01-18T10:31:52.209835
2012-07-23T22:05:29
2012-07-23T22:05:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,655
py
import networkx as nx from os.path import isdir, join, exists, basename from glob import glob import matplotlib.pyplot as plt from time import sleep, time from . import comm import subprocess, signal from utils.colorize import colorize import traceback, os, logging, json class Pipeline(object): env = {} def __...
[ "joschu@rhino.(none)" ]
joschu@rhino.(none)
d0757be0929862c2d268c72e9f6ef4c07bdec91f
a662ccb2b5fcddec6b5d987096cce1384b7ae347
/swinf/conf/code_templates/controller.py
6774dc14e2a53ce11ff1925421cb88fcfe1f0779
[]
no_license
swinf/Swinf
5d7c9790cfd6461871dc3fb0a00b5eebadb0a6b1
a961448636dc8de586d827b0aec2f9878ab3d4f7
refs/heads/master
2021-01-19T00:16:42.142213
2013-04-06T06:41:43
2013-04-06T06:41:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
from swinf.selector import handler, bind_environ __handlespace__ = {} bind_environ(__handlespace__) # ------------- your code here -------------------- @handler() def hello(): """ visit http://localhost:8080/hello in your brower """ return "<h1>Hello World!</h1>"
[ "superjom@gmail.com" ]
superjom@gmail.com
efedb27beb0b38e56bddf55c643519adf011af13
0958c7bd7cba2ba1784ce1594daebffd57a8b24c
/mentoruserapp/models.py
8d8a81cb854a92711ef5bf8120210735e9068c43
[]
no_license
boddachappu/mentoruser
e9bbea6c41fded954e92d5887c41a3fb5ed46c35
52ee9f64987a624cdcd7bf55df11c658d9f82d6a
refs/heads/master
2023-03-02T08:48:45.912954
2021-02-13T15:41:59
2021-02-13T15:41:59
338,606,184
0
0
null
null
null
null
UTF-8
Python
false
false
1,880
py
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin # Create your models here. class UserManager(BaseUserManager): def create_user(self, email, password=None): if not email: raise ValueError("Users must have an email address"...
[ "vinodcharan6@gmail.com" ]
vinodcharan6@gmail.com
b223f986c44a1b5fc45f07b1347a2f08b488a185
e5be73046c4c4f394fc953be50fb45c4d91c66e7
/tensorflow-tutorial-exercises/9_1(test inception-v3).py
821e582b4deef1c8ace708bc2ad68f11dbf899bc
[]
no_license
bei1994/Directed-Research
b6477f44b704490abc968a37f7317027c2696c23
7e39105acadad32301d0fce1a9f49b630ce417c6
refs/heads/master
2020-03-26T21:03:01.433964
2018-08-20T23:00:01
2018-08-20T23:00:01
145,363,029
0
0
null
null
null
null
UTF-8
Python
false
false
1,843
py
import tensorflow as tf import os import numpy as np from PIL import Image import matplotlib.pyplot as plt classId_strId_filepath = "retrain/output_labels.txt" lines = tf.gfile.GFile(classId_strId_filepath).readlines() classId_to_strId = {} for classId, line in enumerate(lines): line = line.strip("\n") class...
[ "noreply@github.com" ]
bei1994.noreply@github.com
583d2c467aa249663bf516584f21df08ceb777db
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/ThirteenTeV/GMSB/GMSB_L200TeV_Ctau1200cm_Pythia8_13TeV_cff.py
54ddbc89689a3f7e9c6eb29d5914856572088784
[]
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
1,018
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", comEnergy = cms.double(13000.0), pythiaHepMCVerbosity = cms.untracked.bool(False), pythiaPylis...
[ "shubhanshu.chauhan.cern.ch" ]
shubhanshu.chauhan.cern.ch
b931bf521cb6431486fd01c48dac2d10651941ea
d38a0692cd1759367b25a65261335a3be9040fb6
/Challenges/C_CPP/0007_buffer_under_read/feedback.py
9739d56cd93e103402e18f3207c4d24562fa7ab9
[ "MIT" ]
permissive
saucec0de/sifu
8308f43e70e084002233b944ca0c9becbcb91571
7924844e1737c7634016c677237bccd7e7651818
refs/heads/main
2023-01-28T11:22:18.058418
2020-12-02T14:10:01
2020-12-02T14:10:01
317,881,746
5
0
null
null
null
null
UTF-8
Python
false
false
642
py
#!/usr/bin/env python3 # # Copyright (c) Siemens AG, 2020 # tiago.gasiba@gmail.com # # SPDX-License-Identifier: MIT # # This will add tags to the findings in unit_test.json that were added by analyse.py import json FILE = './sifu_results/unit_test.json' with open(FILE, 'r+') as f: # read json # =========...
[ "tiago.gasiba@gmail.com" ]
tiago.gasiba@gmail.com
c839c009010060d138364ec7eebd197de5c57ed7
34b0492d2bb4a43673497a2c66e7d45245e3ec76
/scrapy.py
bf72eb4ca82cb12b53f7be52a24cfcdd485666b5
[]
no_license
liangweiSam/AutoTtScrapy
1230a83876a00f05321e2eb08ca562370bb21216
bb12f6fb41ddf12f68046ecebb635f4bfad704bb
refs/heads/master
2021-05-10T21:50:57.509081
2018-01-20T11:56:13
2018-01-20T11:56:13
118,241,025
0
0
null
null
null
null
UTF-8
Python
false
false
9,383
py
# -*- coding:utf-8 -*- from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.wait import WebDriverWait import xlwt, xlrd from PIL import Image from urllib import request import requests import time import io import sys, os import re import goods_Scrapy import shu...
[ "343580702@qq.com" ]
343580702@qq.com
997d741b76dbdc49051556bae1fafd9970539a60
92f28bf7f715a4afe9911962deae6ee1997a26a2
/Lexer.py
2c85a6ec7acab460e57120946310ec3bcb936da0
[]
no_license
JeedyTV/vsopcompiler
938010af94100877ad5fe18b1dcf7a0c7ca209ff
03f27641f18aa7a7a94730bd457dec49e920ac59
refs/heads/main
2023-03-26T11:07:02.929704
2021-03-22T12:31:13
2021-03-22T12:31:13
338,573,934
0
1
null
null
null
null
UTF-8
Python
false
false
12,618
py
from sly import Lexer import sys import re class CalcLexer(Lexer): def __init__(self,sourceCode,sourceCodeName): self.sourceCode = sourceCode self.sourceCodeName = sourceCodeName self.single_line_com = False #state of the lexer self.multiple_line_com = list() #state of the lexer ...
[ "jdmukolonga@student.uliege.be" ]
jdmukolonga@student.uliege.be
c63d9df36c8d3bccc10ed3002ed80b48a0cead8a
3ad3c58bc289fa1a556db153b55ae2bbdcec893f
/src/allocation/entrypoints/flask_app.py
dcf9a97ecc83fabb074c9f99b510c310080c1f7e
[]
no_license
vic3r/python-AP
7f25b9dc2523d561f53e8f03e1d8ac5820edce86
5c56c7a3e93e9ee0a56564efbbff449cb4dafc95
refs/heads/master
2023-02-10T10:43:31.728232
2021-01-02T01:22:35
2021-01-02T01:22:35
288,585,808
0
0
null
2021-01-02T01:22:36
2020-08-18T23:29:05
Python
UTF-8
Python
false
false
1,129
py
from datetime import datetime from flask import Flask, jsonify, request from allocation.domain import commands from allocation.service_layer.handlers import InvalidSku from allocation import bootstrap, views app = Flask(__name__) bus = bootstrap.bootstrap() @app.route("/add_batch", methods=['POST']) def add_batch():...
[ "victor.g64r@gmail.com" ]
victor.g64r@gmail.com
f3ba80aea7d10de31d95d357f068ca9979a88e6f
11923c207e27752127a39cb042af26c7809da910
/generator3.py
7c939e85cff301000006e8c36b97db39023c6303
[]
no_license
afsana1210/python-learning
a8aea5a66960c5bd88c48b85225aab0da7dd3603
df72b786fd133142a69f68edc6b2867f13fee6a6
refs/heads/master
2020-05-15T22:17:52.142594
2019-05-23T10:06:24
2019-05-23T10:06:24
182,523,690
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
s='hello' for letter in s: #print all the given vlaue print letter #iter() function print the one vlaue at a time s_iter=iter(s) print next(s_iter) print next(s_iter) print next(s_iter) print next(s_iter) print next(s_iter) print next(s_iter)
[ "afsanaansari1210@gmail.com" ]
afsanaansari1210@gmail.com
b428cfda4a16708b16e4e47233744ebc92cc5103
a0b1954a9cf89c2d601b885657cb9f8460e7dace
/py/test_jla.py
c044c5fe9795bdf98583ce20925d3c5b9519045b
[]
no_license
fhazenbe/lsst-calibration-impact
3e06b08dbbf2b028c14cee52362f713d74eb9b2b
55a5a11395bea73284e039bdc45db08606abd77e
refs/heads/master
2020-03-24T18:05:14.856371
2019-07-01T15:01:07
2019-07-01T15:01:07
142,882,291
0
0
null
null
null
null
UTF-8
Python
false
false
27,594
py
# -*- Encoding: utf-8 -*- import numpy as np from croaks import NTuple import os from saunerie import bspline # import example import matplotlib.pyplot as plt from saunerie.instruments import InstrumentModel from scipy.sparse import csr_matrix, coo_matrix from saunerie.interpolation import Func1D import saunerie.const...
[ "fhazenbe@lpnhe.in2p3.fr" ]
fhazenbe@lpnhe.in2p3.fr
f83ec57974835325041731f39e3af1492a47fad4
e1fb7d1ffe317bbfe0f7814b50c1087fe83382a9
/sales/autocomplete_light_registry.py
4ad410fdaf4236690c4dc08fb5a9a8ad058b740b
[]
no_license
drakejanier/management_system
27c8e12bd9599687281a4c7c7acb4b7fd43963a8
7771217be54975d555a4df478a44d646c14fd81a
refs/heads/master
2022-12-09T20:07:25.664557
2019-07-05T15:18:01
2019-07-05T15:18:01
193,214,121
0
0
null
2022-12-08T01:04:39
2019-06-22T09:08:15
JavaScript
UTF-8
Python
false
false
554
py
import autocomplete_light from inventory.models import Products autocomplete_light.register(Products, # Just like in ModelAdmin.search_fields search_fields=['^Name'], attrs={ 'placeholder': 'Search Item', # This will set the yourlabs.Autocomplete.minimumCharacters # options, the nam...
[ "jeromejanier2@gmail.com" ]
jeromejanier2@gmail.com
1fe72cd3503e9abbff83c580e23d9fe15bd11c8f
a91b80f0fa166a9630c41054b8f0c8a430f1905e
/time_evol.py
3ddaf7b6820b1fae1e000ccd85d90c50a8d08f93
[]
no_license
SES591/Manny_Economics
fe9630c7392aea444e005ca8fd00e3fd0641e8c5
6e6fd72a4e78bcf50333bd8a549373b60a173cd5
refs/heads/master
2021-01-10T15:32:38.294329
2016-05-04T18:37:00
2016-05-04T18:37:00
51,455,928
0
0
null
null
null
null
UTF-8
Python
false
false
11,606
py
#!/usr/bin/python #bioinfo.py __author__ = '''Hyunju Kim''' import os import sys import numpy as np import networkx as nx import matplotlib.pyplot as plt from collections import OrderedDict import input_net as inet import updating_rule as ur ################# BEGIN: decimal_to_binary(nodes_list, de...
[ "mbanda024@gmail.com" ]
mbanda024@gmail.com
e8dcfafb5a0535d8eeb92c52ede33dd3afb37626
a5fc0412036cc0b248736490c515037d42260211
/analysis/analyze.py
d2a4cbb86037047257507452aa890ed78789d5a0
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
Kortemme-Lab/ddg
7359fc1d81973263dff302b44019954bd70f4793
37d405af2dac41477c689e6e63d5f5c2b9f5a665
refs/heads/master
2016-09-15T16:29:02.249626
2016-01-31T01:34:03
2016-01-31T01:34:03
29,941,362
14
8
null
2016-01-31T01:34:03
2015-01-27T23:54:34
Python
UTF-8
Python
false
false
4,002
py
#!/usr/bin/env python2 # The MIT License (MIT) # # Copyright (c) 2015 Shane O'Connor # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the r...
[ "spiderbaby@gmail.com" ]
spiderbaby@gmail.com
e6f78f9667f29503faff37b2107387030d261c1a
f867599bfff077f3bf445edebc3ce603f2a0a304
/users/forms.py
fc0a2c567a10773cc03c0df72e8c8a47477efb58
[]
no_license
AntonMinski/Tennis_partner_Django_Vue
1f4e2e68a235d1998ae116aedaeebbc2d8be3591
5b535ff3402c2e472118d996b2c9c445f52dd430
refs/heads/main
2023-07-20T03:01:26.485635
2021-09-02T14:24:10
2021-09-02T14:24:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
from django_registration.forms import RegistrationForm from .models import BaseUser class CustomUserForm(RegistrationForm): class Meta(RegistrationForm.Meta): model = BaseUser
[ "anton_minski5@ukr.net" ]
anton_minski5@ukr.net
9cfc6a3f4581652820fad3125572fca2ba04efd1
9b5e9d74bb53b57a953a0f3ecf31ea98f889307e
/0Hacking Tools/Upload_de_arquivos.py
36ba4a57903b2f9702fa5d2d7b3d26418f7147bd
[]
no_license
luied/FIRST-ONE---PYTHON
e6718af72055486a66988f71486a4856b9c606cc
677be23d120e7121f0522e16eb239fc5bc2624f0
refs/heads/master
2020-03-22T19:24:54.160959
2018-09-27T23:43:49
2018-09-27T23:43:49
140,526,012
0
0
null
null
null
null
UTF-8
Python
false
false
847
py
import requests import re import time arquivo = "C://Users//Lui19//Desktop//shell_simples.php" username = ["natas13","jmLTY0qiPZBbaKc9341cqPQZBJv7MQbY"] url = "http://natas13.natas.labs.overthewire.org/" session = requests.Session() response = session.get(url, auth=(username[0],username[1])) print(response.te...
[ "noreply@github.com" ]
luied.noreply@github.com
1ec0367f10400adcbbae093589418ba83cf39a50
40aef10e5ef29db11746a2e25911c1c72cffdea6
/scripts/quantize_graph.py
03c309b62b5cd5469902f47cb6a420a23477e80e
[]
no_license
DevelopIdeas/tflite_tools
18c4fa476d7159c7064d9eed8cd99d315d3a8e4d
a7e09852b2fc428678588f3faeaf6701643b842e
refs/heads/master
2021-10-11T10:42:32.755126
2019-01-24T19:52:04
2019-01-24T19:52:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
57,206
py
#!/usr/bin/env python # Copyright 2015 The TensorFlow Authors. 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 # # Unle...
[ "jonrodd@gmail.com" ]
jonrodd@gmail.com
5adedc67e96039244bbac014cd28b4c08b0e6fb5
11ee4dd7b3770e183c8df92fd47d630dd85dde4b
/parse-detail_topreality.py
1d036777890fd6c25a1abe11706a4ca65c98800c
[]
no_license
marxsk/reality
789619eb697ba2c50186a6472166144906503dc2
33a59b49d01cb75e14a14a5d39f322961a244fae
refs/heads/master
2021-08-19T01:58:34.433189
2017-11-24T12:13:09
2017-11-24T12:13:09
111,900,941
0
0
null
null
null
null
UTF-8
Python
false
false
2,237
py
#!/usr/bin/python # coding=utf-8 ## time-spent: 1.5 + 1 import re import sys import reality from bs4 import BeautifulSoup reload(sys) sys.setdefaultencoding('utf-8') soup = BeautifulSoup(sys.stdin, 'html.parser') info = {} columns = ["url", "title", "text", "agency", "agency_person", "price", "price_currency", "ty...
[ "mgrac@redhat.com" ]
mgrac@redhat.com
f6bd894147860a53b1f4453f0f72476d39d72a26
3380b7307cee312bf48fee11e285286dc4c89e91
/ex41.py
7c16a5637f2632e9e0abae0f69cc05d3c950d53f
[]
no_license
yeduxiling/pythonmaster
f6f8a69d7679449a8037e5720ecbae7d6bc3f838
480adc80d322b07f92c6b4449dfca9379c5fc441
refs/heads/master
2020-09-12T07:21:43.213437
2020-01-20T01:32:28
2020-01-20T01:32:28
222,353,948
0
0
null
null
null
null
UTF-8
Python
false
false
2,318
py
import random from urllib.request import urlopen import sys WORD_URL = "http://learncodethehardway.org/words.txt" WORDS = [] PHRASES = { "class %%%(%%%)": "Make a class named %%% that is-a %%%.", "class %%%(object):\n\tdef __init__(self, ***)": "class %%% has-a __init__ that takes self and *** par...
[ "orcafang@163.com" ]
orcafang@163.com
cf691c493c3362720715afca7733fbfc619f3e72
cf01fdab4743790fb3bb330f1cbbe40687a8a5bf
/src/opnsense/scripts/dns/unbound_dhcpd.py
9e1732f82c06c132cb74578cd376d031633e7ec9
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
silvrwolfboy/core-1
7c636f9adaf4c856e4e54ebc1e59acf0d76a7f46
2c25b1cffa2e9cc5f916d235e02e85596f1038d4
refs/heads/master
2021-02-24T22:57:05.326556
2020-03-06T11:35:29
2020-03-06T11:37:27
245,442,971
0
1
BSD-2-Clause
2020-03-06T14:39:37
2020-03-06T14:39:36
null
UTF-8
Python
false
false
7,890
py
#!/usr/local/bin/python3 """ Copyright (c) 2016-2020 Ad Schellevis <ad@opnsense.org> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain th...
[ "ad@opnsense.org" ]
ad@opnsense.org